@iota-uz/sdk 0.45.0 → 0.47.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 (543) hide show
  1. package/README.md +5 -0
  2. package/dist/client-host/identity.d.ts +4 -4
  3. package/dist/client-host/identity.js +2 -2
  4. package/dist/lens/{CascadePanel-bXr7ekeZ.js → CascadePanel-BlYJd18G.js} +1 -1
  5. package/dist/lens/{ChartDataEquivalent-ZsncHfTF.js → ChartDataEquivalent-B6xSOdzC.js} +1 -1
  6. package/dist/lens/{ChartPanel-Cku9c87t.js → ChartPanel-BIJjrs5D.js} +159 -159
  7. package/dist/lens/{CoveragePanel-DE3fi5c7.js → CoveragePanel-CHtXDMtt.js} +1 -1
  8. package/dist/lens/{GaugePanel-DwR4zylR.js → GaugePanel-By0TOJPa.js} +1 -1
  9. package/dist/lens/LensDashboard.d.ts +13 -0
  10. package/dist/lens/LensDashboard.d.ts.map +1 -1
  11. package/dist/lens/{MapPanel-DJSiLZSz.js → MapPanel-Cw4ELCiM.js} +3 -3
  12. package/dist/lens/{MetricFlowPanel-Dsp_ntas.js → MetricFlowPanel-Gr5wi3nI.js} +2 -2
  13. package/dist/lens/{MetricHierarchyPanel-BYcy4FNw.js → MetricHierarchyPanel-VLA_5LXX.js} +2 -2
  14. package/dist/lens/{MetricRelationshipPanel-Gh5RKIu1.js → MetricRelationshipPanel-DFP566_c.js} +2 -2
  15. package/dist/lens/{PrintReport-RnKpLle9.js → PrintReport-C0OV1iHP.js} +5 -5
  16. package/dist/lens/{QualityChip-BxAn3wh6.js → QualityChip-DTi-0jdh.js} +1 -1
  17. package/dist/lens/SaveInvestigation-CX1Abyl8.js +309 -0
  18. package/dist/lens/TablePanel-BusKU7cU.js +994 -0
  19. package/dist/lens/{adapter-CZZIKpwb.js → adapter-CQg4-M7p.js} +7 -7
  20. package/dist/lens/contract/schemas.d.ts +2 -0
  21. package/dist/lens/contract/schemas.d.ts.map +1 -1
  22. package/dist/lens/contract/types.d.ts +14 -0
  23. package/dist/lens/contract/types.d.ts.map +1 -1
  24. package/dist/lens/{dashboardEdit-BLzL02OH.js → dashboardEdit-CJgCVfi_.js} +1 -1
  25. package/dist/lens/explore/DrillOverlay.d.ts +38 -0
  26. package/dist/lens/explore/DrillOverlay.d.ts.map +1 -1
  27. package/dist/lens/explore/ExplorePanel.d.ts.map +1 -1
  28. package/dist/lens/explore/SaveInvestigation.d.ts +21 -0
  29. package/dist/lens/explore/SaveInvestigation.d.ts.map +1 -0
  30. package/dist/lens/explore/drillHost.d.ts +25 -0
  31. package/dist/lens/explore/drillHost.d.ts.map +1 -0
  32. package/dist/lens/explore/investigation.d.ts +174 -0
  33. package/dist/lens/explore/investigation.d.ts.map +1 -0
  34. package/dist/lens/explore/provenanceLabels.d.ts +10 -0
  35. package/dist/lens/explore/provenanceLabels.d.ts.map +1 -0
  36. package/dist/lens/formula/FormulaTip.d.ts +5 -0
  37. package/dist/lens/formula/FormulaTip.d.ts.map +1 -1
  38. package/dist/lens/formula/FormulaView.d.ts.map +1 -1
  39. package/dist/lens/formula/PanelFormula.d.ts +2 -0
  40. package/dist/lens/formula/PanelFormula.d.ts.map +1 -1
  41. package/dist/lens/formula/element.d.ts.map +1 -1
  42. package/dist/lens/formula/values.d.ts +10 -1
  43. package/dist/lens/formula/values.d.ts.map +1 -1
  44. package/dist/lens/index-DR7Hf8Km.js +19805 -0
  45. package/dist/lens/{index-Dm3Y4NDq.js → index-DZFw4cqF.js} +1 -1
  46. package/dist/lens/index.d.ts +7 -1
  47. package/dist/lens/index.d.ts.map +1 -1
  48. package/dist/lens/index.js +67 -53
  49. package/dist/lens/{install-DCaRpfvv.js → install-B2lTK6uo.js} +1 -1
  50. package/dist/lens/{install-pvJpTP1f.js → install-BXr4Mnc0.js} +1 -1
  51. package/dist/lens/{install-C48hgC9S.js → install-CicNQ_ks.js} +1 -1
  52. package/dist/lens/{install-DB0eod1K.js → install-d8A0WPiw.js} +1 -1
  53. package/dist/lens/{keys-BAkGzg_y.js → keys-C-Akc9lZ.js} +2 -2
  54. package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
  55. package/dist/lens/panels/TablePanel.d.ts.map +1 -1
  56. package/dist/lens/panels/actions.d.ts.map +1 -1
  57. package/dist/lens/panels/panelFailure.d.ts.map +1 -1
  58. package/dist/lens/{prefetch-j8VKR0tY.js → prefetch-C9kxuIs8.js} +2 -2
  59. package/dist/lens/{prefetchPanels-vwQqxrs4.js → prefetchPanels-gbY9RIqL.js} +1 -1
  60. package/dist/lens/{print-CuBcYmVF.js → print-CllsAP3d.js} +1 -1
  61. package/dist/lens/reports/ReportCompositionEditor.d.ts +8 -2
  62. package/dist/lens/reports/ReportCompositionEditor.d.ts.map +1 -1
  63. package/dist/lens/reports/ReportDefinitionEditor.d.ts +54 -0
  64. package/dist/lens/reports/ReportDefinitionEditor.d.ts.map +1 -0
  65. package/dist/lens/reports/ReportPicker.d.ts +6 -0
  66. package/dist/lens/reports/ReportPicker.d.ts.map +1 -1
  67. package/dist/lens/reports/dashboardEdit.d.ts +3 -0
  68. package/dist/lens/reports/dashboardEdit.d.ts.map +1 -1
  69. package/dist/lens/reports/editing.d.ts +35 -0
  70. package/dist/lens/reports/editing.d.ts.map +1 -1
  71. package/dist/lens/reports/picker.d.ts +4 -1
  72. package/dist/lens/reports/picker.d.ts.map +1 -1
  73. package/dist/lens/runtime/index.d.ts +0 -1
  74. package/dist/lens/runtime/index.d.ts.map +1 -1
  75. package/dist/lens/runtime/messages.d.ts +2 -2
  76. package/dist/lens/runtime/messages.d.ts.map +1 -1
  77. package/dist/lens/runtime/provider.d.ts +5 -1
  78. package/dist/lens/runtime/provider.d.ts.map +1 -1
  79. package/dist/lens/runtime/returnContext.d.ts +62 -0
  80. package/dist/lens/runtime/returnContext.d.ts.map +1 -0
  81. package/dist/lens/runtime/tableSummary.d.ts +9 -0
  82. package/dist/lens/runtime/tableSummary.d.ts.map +1 -0
  83. package/dist/lens/{scales-BSDq-uby.js → scales-CO6Q9RtG.js} +1 -1
  84. package/dist/lens/style.css +1 -1
  85. package/dist/runtime/README.md +24 -0
  86. package/dist/runtime/assert.d.ts +51 -0
  87. package/dist/runtime/assert.js +172 -0
  88. package/dist/runtime/build/README.txt +1 -0
  89. package/dist/runtime/build/extract.mjs +342 -0
  90. package/dist/runtime/build/shared-exports.json +388 -0
  91. package/dist/runtime/build/test-child.mjs +136 -0
  92. package/dist/runtime/build/theme/tailwind.config.js +121 -0
  93. package/dist/runtime/build/theme/theme.css +462 -0
  94. package/dist/runtime/build/theme/utilities.css +1 -0
  95. package/dist/runtime/build/vendor/lib/lib.d.ts +22 -0
  96. package/dist/runtime/build/vendor/lib/lib.decorators.d.ts +384 -0
  97. package/dist/runtime/build/vendor/lib/lib.decorators.legacy.d.ts +22 -0
  98. package/dist/runtime/build/vendor/lib/lib.dom.asynciterable.d.ts +41 -0
  99. package/dist/runtime/build/vendor/lib/lib.dom.d.ts +28983 -0
  100. package/dist/runtime/build/vendor/lib/lib.dom.iterable.d.ts +491 -0
  101. package/dist/runtime/build/vendor/lib/lib.es2015.collection.d.ts +147 -0
  102. package/dist/runtime/build/vendor/lib/lib.es2015.core.d.ts +597 -0
  103. package/dist/runtime/build/vendor/lib/lib.es2015.d.ts +28 -0
  104. package/dist/runtime/build/vendor/lib/lib.es2015.generator.d.ts +77 -0
  105. package/dist/runtime/build/vendor/lib/lib.es2015.iterable.d.ts +590 -0
  106. package/dist/runtime/build/vendor/lib/lib.es2015.promise.d.ts +81 -0
  107. package/dist/runtime/build/vendor/lib/lib.es2015.proxy.d.ts +128 -0
  108. package/dist/runtime/build/vendor/lib/lib.es2015.reflect.d.ts +144 -0
  109. package/dist/runtime/build/vendor/lib/lib.es2015.symbol.d.ts +46 -0
  110. package/dist/runtime/build/vendor/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  111. package/dist/runtime/build/vendor/lib/lib.es2016.array.include.d.ts +116 -0
  112. package/dist/runtime/build/vendor/lib/lib.es2016.d.ts +21 -0
  113. package/dist/runtime/build/vendor/lib/lib.es2016.full.d.ts +23 -0
  114. package/dist/runtime/build/vendor/lib/lib.es2016.intl.d.ts +31 -0
  115. package/dist/runtime/build/vendor/lib/lib.es2017.arraybuffer.d.ts +21 -0
  116. package/dist/runtime/build/vendor/lib/lib.es2017.d.ts +26 -0
  117. package/dist/runtime/build/vendor/lib/lib.es2017.date.d.ts +31 -0
  118. package/dist/runtime/build/vendor/lib/lib.es2017.full.d.ts +23 -0
  119. package/dist/runtime/build/vendor/lib/lib.es2017.intl.d.ts +44 -0
  120. package/dist/runtime/build/vendor/lib/lib.es2017.object.d.ts +49 -0
  121. package/dist/runtime/build/vendor/lib/lib.es2017.sharedmemory.d.ts +135 -0
  122. package/dist/runtime/build/vendor/lib/lib.es2017.string.d.ts +45 -0
  123. package/dist/runtime/build/vendor/lib/lib.es2017.typedarrays.d.ts +53 -0
  124. package/dist/runtime/build/vendor/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  125. package/dist/runtime/build/vendor/lib/lib.es2018.asynciterable.d.ts +53 -0
  126. package/dist/runtime/build/vendor/lib/lib.es2018.d.ts +24 -0
  127. package/dist/runtime/build/vendor/lib/lib.es2018.full.d.ts +24 -0
  128. package/dist/runtime/build/vendor/lib/lib.es2018.intl.d.ts +83 -0
  129. package/dist/runtime/build/vendor/lib/lib.es2018.promise.d.ts +30 -0
  130. package/dist/runtime/build/vendor/lib/lib.es2018.regexp.d.ts +37 -0
  131. package/dist/runtime/build/vendor/lib/lib.es2019.array.d.ts +79 -0
  132. package/dist/runtime/build/vendor/lib/lib.es2019.d.ts +24 -0
  133. package/dist/runtime/build/vendor/lib/lib.es2019.full.d.ts +24 -0
  134. package/dist/runtime/build/vendor/lib/lib.es2019.intl.d.ts +23 -0
  135. package/dist/runtime/build/vendor/lib/lib.es2019.object.d.ts +33 -0
  136. package/dist/runtime/build/vendor/lib/lib.es2019.string.d.ts +37 -0
  137. package/dist/runtime/build/vendor/lib/lib.es2019.symbol.d.ts +24 -0
  138. package/dist/runtime/build/vendor/lib/lib.es2020.bigint.d.ts +731 -0
  139. package/dist/runtime/build/vendor/lib/lib.es2020.d.ts +27 -0
  140. package/dist/runtime/build/vendor/lib/lib.es2020.date.d.ts +42 -0
  141. package/dist/runtime/build/vendor/lib/lib.es2020.full.d.ts +24 -0
  142. package/dist/runtime/build/vendor/lib/lib.es2020.intl.d.ts +474 -0
  143. package/dist/runtime/build/vendor/lib/lib.es2020.number.d.ts +28 -0
  144. package/dist/runtime/build/vendor/lib/lib.es2020.promise.d.ts +47 -0
  145. package/dist/runtime/build/vendor/lib/lib.es2020.sharedmemory.d.ts +99 -0
  146. package/dist/runtime/build/vendor/lib/lib.es2020.string.d.ts +44 -0
  147. package/dist/runtime/build/vendor/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  148. package/dist/runtime/build/vendor/lib/lib.es2021.d.ts +23 -0
  149. package/dist/runtime/build/vendor/lib/lib.es2021.full.d.ts +24 -0
  150. package/dist/runtime/build/vendor/lib/lib.es2021.intl.d.ts +166 -0
  151. package/dist/runtime/build/vendor/lib/lib.es2021.promise.d.ts +48 -0
  152. package/dist/runtime/build/vendor/lib/lib.es2021.string.d.ts +33 -0
  153. package/dist/runtime/build/vendor/lib/lib.es2021.weakref.d.ts +78 -0
  154. package/dist/runtime/build/vendor/lib/lib.es2022.array.d.ts +121 -0
  155. package/dist/runtime/build/vendor/lib/lib.es2022.d.ts +25 -0
  156. package/dist/runtime/build/vendor/lib/lib.es2022.error.d.ts +75 -0
  157. package/dist/runtime/build/vendor/lib/lib.es2022.full.d.ts +24 -0
  158. package/dist/runtime/build/vendor/lib/lib.es2022.intl.d.ts +121 -0
  159. package/dist/runtime/build/vendor/lib/lib.es2022.object.d.ts +26 -0
  160. package/dist/runtime/build/vendor/lib/lib.es2022.regexp.d.ts +39 -0
  161. package/dist/runtime/build/vendor/lib/lib.es2022.string.d.ts +25 -0
  162. package/dist/runtime/build/vendor/lib/lib.es2023.array.d.ts +924 -0
  163. package/dist/runtime/build/vendor/lib/lib.es2023.collection.d.ts +21 -0
  164. package/dist/runtime/build/vendor/lib/lib.es2023.d.ts +22 -0
  165. package/dist/runtime/build/vendor/lib/lib.es2023.full.d.ts +24 -0
  166. package/dist/runtime/build/vendor/lib/lib.es2023.intl.d.ts +56 -0
  167. package/dist/runtime/build/vendor/lib/lib.es2024.arraybuffer.d.ts +65 -0
  168. package/dist/runtime/build/vendor/lib/lib.es2024.collection.d.ts +29 -0
  169. package/dist/runtime/build/vendor/lib/lib.es2024.d.ts +26 -0
  170. package/dist/runtime/build/vendor/lib/lib.es2024.full.d.ts +24 -0
  171. package/dist/runtime/build/vendor/lib/lib.es2024.object.d.ts +29 -0
  172. package/dist/runtime/build/vendor/lib/lib.es2024.promise.d.ts +35 -0
  173. package/dist/runtime/build/vendor/lib/lib.es2024.regexp.d.ts +25 -0
  174. package/dist/runtime/build/vendor/lib/lib.es2024.sharedmemory.d.ts +68 -0
  175. package/dist/runtime/build/vendor/lib/lib.es2024.string.d.ts +29 -0
  176. package/dist/runtime/build/vendor/lib/lib.es5.d.ts +4585 -0
  177. package/dist/runtime/build/vendor/lib/lib.es6.d.ts +23 -0
  178. package/dist/runtime/build/vendor/lib/lib.esnext.array.d.ts +35 -0
  179. package/dist/runtime/build/vendor/lib/lib.esnext.collection.d.ts +96 -0
  180. package/dist/runtime/build/vendor/lib/lib.esnext.d.ts +25 -0
  181. package/dist/runtime/build/vendor/lib/lib.esnext.decorators.d.ts +28 -0
  182. package/dist/runtime/build/vendor/lib/lib.esnext.disposable.d.ts +193 -0
  183. package/dist/runtime/build/vendor/lib/lib.esnext.full.d.ts +24 -0
  184. package/dist/runtime/build/vendor/lib/lib.esnext.intl.d.ts +21 -0
  185. package/dist/runtime/build/vendor/lib/lib.esnext.iterator.d.ts +148 -0
  186. package/dist/runtime/build/vendor/node-types/assert/strict.d.ts +111 -0
  187. package/dist/runtime/build/vendor/node-types/assert.d.ts +1115 -0
  188. package/dist/runtime/build/vendor/node-types/async_hooks.d.ts +619 -0
  189. package/dist/runtime/build/vendor/node-types/buffer.buffer.d.ts +477 -0
  190. package/dist/runtime/build/vendor/node-types/buffer.d.ts +1941 -0
  191. package/dist/runtime/build/vendor/node-types/child_process.d.ts +1480 -0
  192. package/dist/runtime/build/vendor/node-types/cluster.d.ts +578 -0
  193. package/dist/runtime/build/vendor/node-types/compatibility/iterators.d.ts +21 -0
  194. package/dist/runtime/build/vendor/node-types/console.d.ts +453 -0
  195. package/dist/runtime/build/vendor/node-types/constants.d.ts +21 -0
  196. package/dist/runtime/build/vendor/node-types/crypto.d.ts +5484 -0
  197. package/dist/runtime/build/vendor/node-types/dgram.d.ts +715 -0
  198. package/dist/runtime/build/vendor/node-types/diagnostics_channel.d.ts +576 -0
  199. package/dist/runtime/build/vendor/node-types/dns/promises.d.ts +503 -0
  200. package/dist/runtime/build/vendor/node-types/dns.d.ts +923 -0
  201. package/dist/runtime/build/vendor/node-types/domain.d.ts +166 -0
  202. package/dist/runtime/build/vendor/node-types/events.d.ts +967 -0
  203. package/dist/runtime/build/vendor/node-types/fs/promises.d.ts +1354 -0
  204. package/dist/runtime/build/vendor/node-types/fs.d.ts +4777 -0
  205. package/dist/runtime/build/vendor/node-types/globals.d.ts +170 -0
  206. package/dist/runtime/build/vendor/node-types/globals.typedarray.d.ts +41 -0
  207. package/dist/runtime/build/vendor/node-types/http.d.ts +2246 -0
  208. package/dist/runtime/build/vendor/node-types/http2.d.ts +2882 -0
  209. package/dist/runtime/build/vendor/node-types/https.d.ts +585 -0
  210. package/dist/runtime/build/vendor/node-types/index.d.ts +101 -0
  211. package/dist/runtime/build/vendor/node-types/inspector.d.ts +323 -0
  212. package/dist/runtime/build/vendor/node-types/inspector.generated.d.ts +4406 -0
  213. package/dist/runtime/build/vendor/node-types/module.d.ts +844 -0
  214. package/dist/runtime/build/vendor/node-types/net.d.ts +1197 -0
  215. package/dist/runtime/build/vendor/node-types/os.d.ts +507 -0
  216. package/dist/runtime/build/vendor/node-types/package.json +140 -0
  217. package/dist/runtime/build/vendor/node-types/path.d.ts +200 -0
  218. package/dist/runtime/build/vendor/node-types/perf_hooks.d.ts +1054 -0
  219. package/dist/runtime/build/vendor/node-types/process.d.ts +2101 -0
  220. package/dist/runtime/build/vendor/node-types/punycode.d.ts +117 -0
  221. package/dist/runtime/build/vendor/node-types/querystring.d.ts +152 -0
  222. package/dist/runtime/build/vendor/node-types/readline/promises.d.ts +161 -0
  223. package/dist/runtime/build/vendor/node-types/readline.d.ts +600 -0
  224. package/dist/runtime/build/vendor/node-types/repl.d.ts +438 -0
  225. package/dist/runtime/build/vendor/node-types/sea.d.ts +162 -0
  226. package/dist/runtime/build/vendor/node-types/sqlite.d.ts +1182 -0
  227. package/dist/runtime/build/vendor/node-types/stream/consumers.d.ts +45 -0
  228. package/dist/runtime/build/vendor/node-types/stream/promises.d.ts +90 -0
  229. package/dist/runtime/build/vendor/node-types/stream/web.d.ts +596 -0
  230. package/dist/runtime/build/vendor/node-types/stream.d.ts +1707 -0
  231. package/dist/runtime/build/vendor/node-types/string_decoder.d.ts +67 -0
  232. package/dist/runtime/build/vendor/node-types/test.d.ts +2656 -0
  233. package/dist/runtime/build/vendor/node-types/timers/promises.d.ts +108 -0
  234. package/dist/runtime/build/vendor/node-types/timers.d.ts +285 -0
  235. package/dist/runtime/build/vendor/node-types/tls.d.ts +1314 -0
  236. package/dist/runtime/build/vendor/node-types/trace_events.d.ts +197 -0
  237. package/dist/runtime/build/vendor/node-types/ts5.6/buffer.buffer.d.ts +473 -0
  238. package/dist/runtime/build/vendor/node-types/ts5.6/compatibility/float16array.d.ts +71 -0
  239. package/dist/runtime/build/vendor/node-types/ts5.6/globals.typedarray.d.ts +36 -0
  240. package/dist/runtime/build/vendor/node-types/ts5.6/index.d.ts +103 -0
  241. package/dist/runtime/build/vendor/node-types/ts5.7/compatibility/float16array.d.ts +72 -0
  242. package/dist/runtime/build/vendor/node-types/ts5.7/index.d.ts +103 -0
  243. package/dist/runtime/build/vendor/node-types/tty.d.ts +209 -0
  244. package/dist/runtime/build/vendor/node-types/url.d.ts +1103 -0
  245. package/dist/runtime/build/vendor/node-types/util.d.ts +2379 -0
  246. package/dist/runtime/build/vendor/node-types/v8.d.ts +1010 -0
  247. package/dist/runtime/build/vendor/node-types/vm.d.ts +1160 -0
  248. package/dist/runtime/build/vendor/node-types/wasi.d.ts +202 -0
  249. package/dist/runtime/build/vendor/node-types/web-globals/abortcontroller.d.ts +34 -0
  250. package/dist/runtime/build/vendor/node-types/web-globals/crypto.d.ts +32 -0
  251. package/dist/runtime/build/vendor/node-types/web-globals/domexception.d.ts +68 -0
  252. package/dist/runtime/build/vendor/node-types/web-globals/events.d.ts +97 -0
  253. package/dist/runtime/build/vendor/node-types/web-globals/fetch.d.ts +62 -0
  254. package/dist/runtime/build/vendor/node-types/web-globals/navigator.d.ts +25 -0
  255. package/dist/runtime/build/vendor/node-types/web-globals/storage.d.ts +24 -0
  256. package/dist/runtime/build/vendor/node-types/web-globals/streams.d.ts +22 -0
  257. package/dist/runtime/build/vendor/node-types/worker_threads.d.ts +894 -0
  258. package/dist/runtime/build/vendor/node-types/zlib.d.ts +768 -0
  259. package/dist/runtime/build/vendor/node_modules/csstype/LICENSE +19 -0
  260. package/dist/runtime/build/vendor/node_modules/csstype/index.d.ts +22569 -0
  261. package/dist/runtime/build/vendor/node_modules/csstype/index.js.flow +6863 -0
  262. package/dist/runtime/build/vendor/node_modules/csstype/package.json +70 -0
  263. package/dist/runtime/build/vendor/node_modules/seroval/LICENSE +7 -0
  264. package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/development/index.cjs +4232 -0
  265. package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/production/index.cjs +3 -0
  266. package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/development/index.mjs +4209 -0
  267. package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/production/index.mjs +3 -0
  268. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/Serializer.d.ts +28 -0
  269. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/base-primitives.d.ts +28 -0
  270. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/compat.d.ts +15 -0
  271. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constants.d.ts +105 -0
  272. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constructors.d.ts +50 -0
  273. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/async-parser.d.ts +20 -0
  274. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/deserializer.d.ts +52 -0
  275. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/parser.d.ts +62 -0
  276. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/serializer.d.ts +103 -0
  277. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/sync-parser.d.ts +61 -0
  278. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/cross/index.d.ts +24 -0
  279. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/errors.d.ts +47 -0
  280. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/function-string.d.ts +3 -0
  281. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/keys.d.ts +4 -0
  282. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/literals.d.ts +10 -0
  283. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/node.d.ts +8 -0
  284. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/opaque-reference.d.ts +9 -0
  285. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/plugin.d.ts +52 -0
  286. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/reference.d.ts +6 -0
  287. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/sequence.d.ts +11 -0
  288. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/special-reference.d.ts +16 -0
  289. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/stream.d.ts +17 -0
  290. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/string.d.ts +4 -0
  291. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/symbols.d.ts +14 -0
  292. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/tree/index.d.ts +21 -0
  293. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/types.d.ts +233 -0
  294. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/error.d.ts +6 -0
  295. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-identifier.d.ts +2 -0
  296. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-object-flag.d.ts +3 -0
  297. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/is-valid-identifier.d.ts +2 -0
  298. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/promise-to-result.d.ts +2 -0
  299. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/typed-array.d.ts +6 -0
  300. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/valid-properties.d.ts +3 -0
  301. package/dist/runtime/build/vendor/node_modules/seroval/dist/types/index.d.ts +18 -0
  302. package/dist/runtime/build/vendor/node_modules/seroval/package.json +67 -0
  303. package/dist/runtime/build/vendor/node_modules/seroval/src/core/Serializer.ts +119 -0
  304. package/dist/runtime/build/vendor/node_modules/seroval/src/core/base-primitives.ts +537 -0
  305. package/dist/runtime/build/vendor/node_modules/seroval/src/core/compat.ts +23 -0
  306. package/dist/runtime/build/vendor/node_modules/seroval/src/core/constants.ts +202 -0
  307. package/dist/runtime/build/vendor/node_modules/seroval/src/core/constructors.ts +265 -0
  308. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/async-parser.ts +666 -0
  309. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/deserializer.ts +832 -0
  310. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/parser.ts +335 -0
  311. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/serializer.ts +1524 -0
  312. package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/sync-parser.ts +943 -0
  313. package/dist/runtime/build/vendor/node_modules/seroval/src/core/cross/index.ts +190 -0
  314. package/dist/runtime/build/vendor/node_modules/seroval/src/core/errors.ts +196 -0
  315. package/dist/runtime/build/vendor/node_modules/seroval/src/core/function-string.ts +31 -0
  316. package/dist/runtime/build/vendor/node_modules/seroval/src/core/keys.ts +17 -0
  317. package/dist/runtime/build/vendor/node_modules/seroval/src/core/literals.ts +43 -0
  318. package/dist/runtime/build/vendor/node_modules/seroval/src/core/node.ts +40 -0
  319. package/dist/runtime/build/vendor/node_modules/seroval/src/core/opaque-reference.ts +9 -0
  320. package/dist/runtime/build/vendor/node_modules/seroval/src/core/plugin.ts +105 -0
  321. package/dist/runtime/build/vendor/node_modules/seroval/src/core/reference.ts +66 -0
  322. package/dist/runtime/build/vendor/node_modules/seroval/src/core/sequence.ts +59 -0
  323. package/dist/runtime/build/vendor/node_modules/seroval/src/core/special-reference.ts +42 -0
  324. package/dist/runtime/build/vendor/node_modules/seroval/src/core/stream.ts +71 -0
  325. package/dist/runtime/build/vendor/node_modules/seroval/src/core/string.ts +86 -0
  326. package/dist/runtime/build/vendor/node_modules/seroval/src/core/symbols.ts +20 -0
  327. package/dist/runtime/build/vendor/node_modules/seroval/src/core/tree/index.ts +134 -0
  328. package/dist/runtime/build/vendor/node_modules/seroval/src/core/types.ts +377 -0
  329. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/error.ts +73 -0
  330. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-identifier.ts +18 -0
  331. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-object-flag.ts +14 -0
  332. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/is-valid-identifier.ts +12 -0
  333. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/promise-to-result.ts +9 -0
  334. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/typed-array.ts +56 -0
  335. package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/valid-properties.ts +34 -0
  336. package/dist/runtime/build/vendor/node_modules/seroval/src/index.ts +36 -0
  337. package/dist/runtime/build/vendor/node_modules/seroval-plugins/LICENSE +7 -0
  338. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/development/web.cjs +826 -0
  339. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/production/web.cjs +1 -0
  340. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/development/web.mjs +803 -0
  341. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/production/web.mjs +1 -0
  342. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/abort-signal.d.ts +3 -0
  343. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/blob.d.ts +3 -0
  344. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/custom-event.d.ts +3 -0
  345. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/dom-exception.d.ts +3 -0
  346. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/event.d.ts +3 -0
  347. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/file.d.ts +3 -0
  348. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/form-data.d.ts +3 -0
  349. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/headers.d.ts +3 -0
  350. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/image-data.d.ts +3 -0
  351. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/index.d.ts +15 -0
  352. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/readable-stream.d.ts +3 -0
  353. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/request.d.ts +3 -0
  354. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/response.d.ts +3 -0
  355. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url-search-params.d.ts +3 -0
  356. package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url.d.ts +3 -0
  357. package/dist/runtime/build/vendor/node_modules/seroval-plugins/package.json +70 -0
  358. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/abort-signal.ts +131 -0
  359. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/blob.ts +41 -0
  360. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/custom-event.ts +66 -0
  361. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/dom-exception.ts +57 -0
  362. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/event.ts +62 -0
  363. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/file.ts +50 -0
  364. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/form-data.ts +105 -0
  365. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/headers.ts +49 -0
  366. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/image-data.ts +74 -0
  367. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/index.ts +14 -0
  368. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/readable-stream.ts +148 -0
  369. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/request.ts +82 -0
  370. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/response.ts +65 -0
  371. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url-search-params.ts +40 -0
  372. package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url.ts +37 -0
  373. package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.cjs +824 -0
  374. package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.js +770 -0
  375. package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.cjs +1808 -0
  376. package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.js +1753 -0
  377. package/dist/runtime/build/vendor/node_modules/solid-js/jsx-runtime.d.ts +1 -0
  378. package/dist/runtime/build/vendor/node_modules/solid-js/package.json +243 -0
  379. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.cjs +133 -0
  380. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.js +121 -0
  381. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.cjs +463 -0
  382. package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.js +454 -0
  383. package/dist/runtime/build/vendor/node_modules/solid-js/store/package.json +46 -0
  384. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/index.d.ts +12 -0
  385. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/modifiers.d.ts +6 -0
  386. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/mutable.d.ts +5 -0
  387. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/server.d.ts +17 -0
  388. package/dist/runtime/build/vendor/node_modules/solid-js/store/types/store.d.ts +108 -0
  389. package/dist/runtime/build/vendor/node_modules/solid-js/types/index.d.ts +23 -0
  390. package/dist/runtime/build/vendor/node_modules/solid-js/types/jsx.d.ts +4253 -0
  391. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/array.d.ts +44 -0
  392. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/observable.d.ts +36 -0
  393. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/scheduler.d.ts +10 -0
  394. package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/signal.d.ts +581 -0
  395. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/Suspense.d.ts +26 -0
  396. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/component.d.ts +111 -0
  397. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/flow.d.ts +118 -0
  398. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/hydration.d.ts +24 -0
  399. package/dist/runtime/build/vendor/node_modules/solid-js/types/render/index.d.ts +4 -0
  400. package/dist/runtime/build/vendor/node_modules/solid-js/types/server/index.d.ts +3 -0
  401. package/dist/runtime/build/vendor/node_modules/solid-js/types/server/reactive.d.ts +98 -0
  402. package/dist/runtime/build/vendor/node_modules/solid-js/types/server/rendering.d.ts +160 -0
  403. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.cjs +900 -0
  404. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.js +786 -0
  405. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.cjs +884 -0
  406. package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.js +772 -0
  407. package/dist/runtime/build/vendor/node_modules/solid-js/web/package.json +46 -0
  408. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.cjs +12 -0
  409. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.js +10 -0
  410. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/package.json +15 -0
  411. package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/types/index.d.ts +2 -0
  412. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/client.d.ts +93 -0
  413. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/core.d.ts +2 -0
  414. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/index.d.ts +50 -0
  415. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/jsx.d.ts +1 -0
  416. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server-mock.d.ts +65 -0
  417. package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server.d.ts +187 -0
  418. package/dist/runtime/build/worker.mjs +293415 -0
  419. package/dist/runtime/catalog/sdk-natives.json +655 -0
  420. package/dist/runtime/cli/iota-ext.mjs +1028 -0
  421. package/dist/runtime/client-host/entry.d.ts +10 -0
  422. package/dist/runtime/client-host/entry.js +124 -0
  423. package/dist/runtime/client-host/hooks.d.ts +43 -0
  424. package/dist/runtime/client-host/hooks.js +94 -0
  425. package/dist/runtime/client-host/index.d.ts +9 -0
  426. package/dist/runtime/client-host/index.js +9 -0
  427. package/dist/runtime/client-host/islands.d.ts +44 -0
  428. package/dist/runtime/client-host/islands.js +165 -0
  429. package/dist/runtime/client-host/kit.d.ts +10 -0
  430. package/dist/runtime/client-host/kit.js +37 -0
  431. package/dist/runtime/client-host/page.d.ts +53 -0
  432. package/dist/runtime/client-host/page.js +217 -0
  433. package/dist/runtime/client-host/params.d.ts +8 -0
  434. package/dist/runtime/client-host/params.js +36 -0
  435. package/dist/runtime/client-host/protocol.d.ts +78 -0
  436. package/dist/runtime/client-host/protocol.js +26 -0
  437. package/dist/runtime/client-host/shared.d.ts +12 -0
  438. package/dist/runtime/client-host/shared.js +49 -0
  439. package/dist/runtime/client-host/shell.d.ts +88 -0
  440. package/dist/runtime/client-host/shell.js +195 -0
  441. package/dist/runtime/client-host/slots.d.ts +54 -0
  442. package/dist/runtime/client-host/slots.js +90 -0
  443. package/dist/runtime/client-host/styles.d.ts +7 -0
  444. package/dist/runtime/client-host/styles.js +61 -0
  445. package/dist/runtime/client-host/transport.d.ts +45 -0
  446. package/dist/runtime/client-host/transport.js +115 -0
  447. package/dist/runtime/client.d.ts +226 -0
  448. package/dist/runtime/client.js +121 -0
  449. package/dist/runtime/contracts.d.ts +204 -0
  450. package/dist/runtime/contracts.js +195 -0
  451. package/dist/runtime/docs/authoring.md +1609 -0
  452. package/dist/runtime/docs/example/docs/en/admin/limits.md +10 -0
  453. package/dist/runtime/docs/example/docs/en/getting-started.md +13 -0
  454. package/dist/runtime/docs/example/docs/en/points.md +9 -0
  455. package/dist/runtime/docs/example/docs/ru/getting-started.md +12 -0
  456. package/dist/runtime/docs/example/package.json +27 -0
  457. package/dist/runtime/docs/example/src/ClientScreen.tsx +10 -0
  458. package/dist/runtime/docs/example/src/RedemptionScreen.tsx +7 -0
  459. package/dist/runtime/docs/example/src/RewardsScreen.module.css +13 -0
  460. package/dist/runtime/docs/example/src/RewardsScreen.tsx +51 -0
  461. package/dist/runtime/docs/example/src/client.tsx +40 -0
  462. package/dist/runtime/docs/example/src/contracts.ts +132 -0
  463. package/dist/runtime/docs/example/src/css-modules.d.ts +5 -0
  464. package/dist/runtime/docs/example/src/server.test.ts +156 -0
  465. package/dist/runtime/docs/example/src/server.ts +188 -0
  466. package/dist/runtime/docs/example/tsconfig.json +16 -0
  467. package/dist/runtime/entity.d.ts +237 -0
  468. package/dist/runtime/entity.js +201 -0
  469. package/dist/runtime/fakes.d.ts +80 -0
  470. package/dist/runtime/fakes.js +88 -0
  471. package/dist/runtime/fixtures.d.ts +34 -0
  472. package/dist/runtime/fixtures.js +60 -0
  473. package/dist/runtime/help.d.ts +22 -0
  474. package/dist/runtime/help.js +51 -0
  475. package/dist/runtime/host/context.mjs +392 -0
  476. package/dist/runtime/host/errors.mjs +64 -0
  477. package/dist/runtime/host/loader.mjs +28 -0
  478. package/dist/runtime/host/protocol.mjs +4 -0
  479. package/dist/runtime/host/register.mjs +8 -0
  480. package/dist/runtime/host/sdk/assert.mjs +153 -0
  481. package/dist/runtime/host/sdk/client-host/hooks.mjs +86 -0
  482. package/dist/runtime/host/sdk/client-host/protocol.mjs +30 -0
  483. package/dist/runtime/host/sdk/client-host/slots.mjs +82 -0
  484. package/dist/runtime/host/sdk/client-host/styles.mjs +45 -0
  485. package/dist/runtime/host/sdk/client-host/transport.mjs +102 -0
  486. package/dist/runtime/host/sdk/client.mjs +115 -0
  487. package/dist/runtime/host/sdk/contracts.mjs +185 -0
  488. package/dist/runtime/host/sdk/entity.mjs +183 -0
  489. package/dist/runtime/host/sdk/fakes.mjs +88 -0
  490. package/dist/runtime/host/sdk/fixtures.mjs +56 -0
  491. package/dist/runtime/host/sdk/help.mjs +37 -0
  492. package/dist/runtime/host/sdk/index.mjs +83 -0
  493. package/dist/runtime/host/sdk/kit.mjs +11 -0
  494. package/dist/runtime/host/sdk/manifest.mjs +276 -0
  495. package/dist/runtime/host/sdk/model.mjs +4 -0
  496. package/dist/runtime/host/sdk/resource.mjs +34 -0
  497. package/dist/runtime/host/sdk/schema.mjs +75 -0
  498. package/dist/runtime/host/sdk/server.mjs +43 -0
  499. package/dist/runtime/host/sdk/testhost.mjs +992 -0
  500. package/dist/runtime/host/sdk/testing.mjs +21 -0
  501. package/dist/runtime/host/sdk/wire.mjs +207 -0
  502. package/dist/runtime/host/worker.mjs +252 -0
  503. package/dist/runtime/index.d.ts +10 -0
  504. package/dist/runtime/index.js +5 -0
  505. package/dist/runtime/kit.d.ts +5 -0
  506. package/dist/runtime/kit.js +14 -0
  507. package/dist/runtime/manifest.d.ts +17 -0
  508. package/dist/runtime/manifest.js +323 -0
  509. package/dist/runtime/model.d.ts +224 -0
  510. package/dist/runtime/model.js +3 -0
  511. package/dist/runtime/resource.d.ts +31 -0
  512. package/dist/runtime/resource.js +35 -0
  513. package/dist/runtime/schema.d.ts +97 -0
  514. package/dist/runtime/schema.js +73 -0
  515. package/dist/runtime/server.d.ts +445 -0
  516. package/dist/runtime/server.js +41 -0
  517. package/dist/runtime/testhost.d.ts +216 -0
  518. package/dist/runtime/testhost.js +1146 -0
  519. package/dist/runtime/testing.d.ts +10 -0
  520. package/dist/runtime/testing.js +7 -0
  521. package/dist/runtime/wire.d.ts +26 -0
  522. package/dist/runtime/wire.js +236 -0
  523. package/dist/sdk-identity.cjs +3 -3
  524. package/dist/sdk-identity.js +3 -3
  525. package/dist/sdk-identity.json +2 -2
  526. package/dist/solid-ui/embedded-css.d.ts +2 -0
  527. package/dist/solid-ui/embedded-css.js +1 -0
  528. package/dist/solid-ui/embedded.css +2 -0
  529. package/dist/testing/components.d.ts +73 -0
  530. package/dist/testing/components.js +96 -0
  531. package/dist/testing/htmx.d.ts +44 -0
  532. package/dist/testing/htmx.js +284 -0
  533. package/dist/testing/index.d.ts +4 -41
  534. package/dist/testing/index.js +3 -206
  535. package/dist/testing/scenarios.d.ts +83 -0
  536. package/dist/testing/scenarios.js +74 -0
  537. package/dist/testing/wait.d.ts +7 -0
  538. package/dist/testing/wait.js +19 -0
  539. package/package.json +33 -2
  540. package/dist/lens/TablePanel-DU_ydQ1x.js +0 -980
  541. package/dist/lens/index-BJIuggdQ.js +0 -18403
  542. package/dist/lens/runtime/recovery.d.ts +0 -26
  543. package/dist/lens/runtime/recovery.d.ts.map +0 -1
@@ -0,0 +1,1753 @@
1
+ let taskIdCounter = 1,
2
+ isCallbackScheduled = false,
3
+ isPerformingWork = false,
4
+ taskQueue = [],
5
+ currentTask = null,
6
+ shouldYieldToHost = null,
7
+ yieldInterval = 5,
8
+ deadline = 0,
9
+ maxYieldInterval = 300,
10
+ maxDeadline = 0,
11
+ scheduleCallback = null,
12
+ scheduledCallback = null;
13
+ const maxSigned31BitInt = 1073741823;
14
+ function setupScheduler() {
15
+ const channel = new MessageChannel(),
16
+ port1 = channel.port1,
17
+ port = channel.port2;
18
+ if (typeof port1.unref === "function") port1.unref();
19
+ if (typeof port.unref === "function") port.unref();
20
+ scheduleCallback = () => port.postMessage(null);
21
+ port1.onmessage = () => {
22
+ if (scheduledCallback !== null) {
23
+ const currentTime = performance.now();
24
+ deadline = currentTime + yieldInterval;
25
+ maxDeadline = currentTime + maxYieldInterval;
26
+ try {
27
+ const hasMoreWork = scheduledCallback(currentTime);
28
+ if (!hasMoreWork) {
29
+ scheduledCallback = null;
30
+ } else port.postMessage(null);
31
+ } catch (error) {
32
+ port.postMessage(null);
33
+ throw error;
34
+ }
35
+ }
36
+ };
37
+ if (navigator && navigator.scheduling && navigator.scheduling.isInputPending) {
38
+ const scheduling = navigator.scheduling;
39
+ shouldYieldToHost = () => {
40
+ const currentTime = performance.now();
41
+ if (currentTime >= deadline) {
42
+ if (scheduling.isInputPending()) {
43
+ return true;
44
+ }
45
+ return currentTime >= maxDeadline;
46
+ } else {
47
+ return false;
48
+ }
49
+ };
50
+ } else {
51
+ shouldYieldToHost = () => performance.now() >= deadline;
52
+ }
53
+ }
54
+ function enqueue(taskQueue, task) {
55
+ function findIndex() {
56
+ let m = 0;
57
+ let n = taskQueue.length - 1;
58
+ while (m <= n) {
59
+ const k = n + m >> 1;
60
+ const cmp = task.expirationTime - taskQueue[k].expirationTime;
61
+ if (cmp > 0) m = k + 1;else if (cmp < 0) n = k - 1;else return k;
62
+ }
63
+ return m;
64
+ }
65
+ taskQueue.splice(findIndex(), 0, task);
66
+ }
67
+ function requestCallback(fn, options) {
68
+ if (!scheduleCallback) setupScheduler();
69
+ let startTime = performance.now(),
70
+ timeout = maxSigned31BitInt;
71
+ if (options && options.timeout) timeout = options.timeout;
72
+ const newTask = {
73
+ id: taskIdCounter++,
74
+ fn,
75
+ startTime,
76
+ expirationTime: startTime + timeout
77
+ };
78
+ enqueue(taskQueue, newTask);
79
+ if (!isCallbackScheduled && !isPerformingWork) {
80
+ isCallbackScheduled = true;
81
+ scheduledCallback = flushWork;
82
+ scheduleCallback();
83
+ }
84
+ return newTask;
85
+ }
86
+ function cancelCallback(task) {
87
+ task.fn = null;
88
+ }
89
+ function flushWork(initialTime) {
90
+ isCallbackScheduled = false;
91
+ isPerformingWork = true;
92
+ try {
93
+ return workLoop(initialTime);
94
+ } finally {
95
+ currentTask = null;
96
+ isPerformingWork = false;
97
+ }
98
+ }
99
+ function workLoop(initialTime) {
100
+ let currentTime = initialTime;
101
+ currentTask = taskQueue[0] || null;
102
+ while (currentTask !== null) {
103
+ if (currentTask.expirationTime > currentTime && shouldYieldToHost()) {
104
+ break;
105
+ }
106
+ const callback = currentTask.fn;
107
+ if (callback !== null) {
108
+ currentTask.fn = null;
109
+ const didUserCallbackTimeout = currentTask.expirationTime <= currentTime;
110
+ callback(didUserCallbackTimeout);
111
+ currentTime = performance.now();
112
+ if (currentTask === taskQueue[0]) {
113
+ taskQueue.shift();
114
+ }
115
+ } else taskQueue.shift();
116
+ currentTask = taskQueue[0] || null;
117
+ }
118
+ return currentTask !== null;
119
+ }
120
+
121
+ const sharedConfig = {
122
+ context: undefined,
123
+ registry: undefined,
124
+ effects: undefined,
125
+ done: false,
126
+ getContextId() {
127
+ return getContextId(this.context.count);
128
+ },
129
+ getNextContextId() {
130
+ return getContextId(this.context.count++);
131
+ }
132
+ };
133
+ function getContextId(count) {
134
+ const num = String(count),
135
+ len = num.length - 1;
136
+ return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
137
+ }
138
+ function setHydrateContext(context) {
139
+ sharedConfig.context = context;
140
+ }
141
+ function nextHydrateContext() {
142
+ return {
143
+ ...sharedConfig.context,
144
+ id: sharedConfig.getNextContextId(),
145
+ count: 0
146
+ };
147
+ }
148
+
149
+ const IS_DEV = false;
150
+ const equalFn = (a, b) => a === b;
151
+ const $PROXY = Symbol("solid-proxy");
152
+ const SUPPORTS_PROXY = typeof Proxy === "function";
153
+ const $TRACK = Symbol("solid-track");
154
+ const $DEVCOMP = Symbol("solid-dev-component");
155
+ const signalOptions = {
156
+ equals: equalFn
157
+ };
158
+ let ERROR = null;
159
+ let runEffects = runQueue;
160
+ const STALE = 1;
161
+ const PENDING = 2;
162
+ const UNOWNED = {
163
+ owned: null,
164
+ cleanups: null,
165
+ context: null,
166
+ owner: null
167
+ };
168
+ const NO_INIT = {};
169
+ var Owner = null;
170
+ let Transition = null;
171
+ let Scheduler = null;
172
+ let ExternalSourceConfig = null;
173
+ let Listener = null;
174
+ let Updates = null;
175
+ let Effects = null;
176
+ let ExecCount = 0;
177
+ function createRoot(fn, detachedOwner) {
178
+ const listener = Listener,
179
+ owner = Owner,
180
+ unowned = fn.length === 0,
181
+ current = detachedOwner === undefined ? owner : detachedOwner,
182
+ root = unowned ? UNOWNED : {
183
+ owned: null,
184
+ cleanups: null,
185
+ context: current ? current.context : null,
186
+ owner: current
187
+ },
188
+ updateFn = unowned ? fn : () => fn(() => untrack(() => cleanNode(root)));
189
+ Owner = root;
190
+ Listener = null;
191
+ try {
192
+ return runUpdates(updateFn, true);
193
+ } finally {
194
+ Listener = listener;
195
+ Owner = owner;
196
+ }
197
+ }
198
+ function createSignal(value, options) {
199
+ options = options ? Object.assign({}, signalOptions, options) : signalOptions;
200
+ const s = {
201
+ value,
202
+ observers: null,
203
+ observerSlots: null,
204
+ comparator: options.equals || undefined
205
+ };
206
+ const setter = value => {
207
+ if (typeof value === "function") {
208
+ if (Transition && Transition.running && Transition.sources.has(s)) value = value(s.tValue);else value = value(s.value);
209
+ }
210
+ return writeSignal(s, value);
211
+ };
212
+ return [readSignal.bind(s), setter];
213
+ }
214
+ function createComputed(fn, value, options) {
215
+ const c = createComputation(fn, value, true, STALE);
216
+ if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
217
+ }
218
+ function createRenderEffect(fn, value, options) {
219
+ const c = createComputation(fn, value, false, STALE);
220
+ if (Scheduler && Transition && Transition.running) Updates.push(c);else updateComputation(c);
221
+ }
222
+ function createEffect(fn, value, options) {
223
+ runEffects = runUserEffects;
224
+ const c = createComputation(fn, value, false, STALE),
225
+ s = SuspenseContext && useContext(SuspenseContext);
226
+ if (s) c.suspense = s;
227
+ if (!options || !options.render) c.user = true;
228
+ Effects ? Effects.push(c) : updateComputation(c);
229
+ }
230
+ function createReaction(onInvalidate, options) {
231
+ let fn;
232
+ const c = createComputation(() => {
233
+ fn ? fn() : untrack(onInvalidate);
234
+ fn = undefined;
235
+ }, undefined, false, 0),
236
+ s = SuspenseContext && useContext(SuspenseContext);
237
+ if (s) c.suspense = s;
238
+ c.user = true;
239
+ return tracking => {
240
+ fn = tracking;
241
+ updateComputation(c);
242
+ };
243
+ }
244
+ function createMemo(fn, value, options) {
245
+ options = options ? Object.assign({}, signalOptions, options) : signalOptions;
246
+ const c = createComputation(fn, value, true, 0);
247
+ c.observers = null;
248
+ c.observerSlots = null;
249
+ c.comparator = options.equals || undefined;
250
+ if (Scheduler && Transition && Transition.running) {
251
+ c.tState = STALE;
252
+ Updates.push(c);
253
+ } else updateComputation(c);
254
+ return readSignal.bind(c);
255
+ }
256
+ function isPromise(v) {
257
+ return v && typeof v === "object" && "then" in v;
258
+ }
259
+ function createResource(pSource, pFetcher, pOptions) {
260
+ let source;
261
+ let fetcher;
262
+ let options;
263
+ if (typeof pFetcher === "function") {
264
+ source = pSource;
265
+ fetcher = pFetcher;
266
+ options = pOptions || {};
267
+ } else {
268
+ source = true;
269
+ fetcher = pSource;
270
+ options = pFetcher || {};
271
+ }
272
+ let pr = null,
273
+ initP = NO_INIT,
274
+ id = null,
275
+ loadedUnderTransition = false,
276
+ scheduled = false,
277
+ resolved = "initialValue" in options,
278
+ dynamic = typeof source === "function" && createMemo(source);
279
+ const contexts = new Set(),
280
+ [value, setValue] = (options.storage || createSignal)(options.initialValue),
281
+ [error, setError] = createSignal(undefined),
282
+ [track, trigger] = createSignal(undefined, {
283
+ equals: false
284
+ }),
285
+ [state, setState] = createSignal(resolved ? "ready" : "unresolved");
286
+ if (Owner) onCleanup(() => {
287
+ for (const c of contexts.keys()) c.decrement();
288
+ contexts.clear();
289
+ if (Transition && pr) Transition.promises.delete(pr);
290
+ pr = null;
291
+ });
292
+ if (sharedConfig.context) {
293
+ id = sharedConfig.getNextContextId();
294
+ if (options.ssrLoadFrom === "initial") initP = options.initialValue;else if (sharedConfig.load && sharedConfig.has(id)) initP = sharedConfig.load(id);
295
+ }
296
+ function loadEnd(p, v, error, key) {
297
+ if (pr === p) {
298
+ pr = null;
299
+ key !== undefined && (resolved = true);
300
+ if ((p === initP || v === initP) && options.onHydrated) queueMicrotask(() => options.onHydrated(key, {
301
+ value: v
302
+ }));
303
+ initP = NO_INIT;
304
+ if (Transition && p && loadedUnderTransition) {
305
+ Transition.promises.delete(p);
306
+ loadedUnderTransition = false;
307
+ runUpdates(() => {
308
+ Transition.running = true;
309
+ completeLoad(v, error);
310
+ }, false);
311
+ } else completeLoad(v, error);
312
+ }
313
+ return v;
314
+ }
315
+ function completeLoad(v, err) {
316
+ runUpdates(() => {
317
+ if (err === undefined) setValue(() => v);
318
+ setState(err !== undefined ? "errored" : resolved ? "ready" : "unresolved");
319
+ setError(err);
320
+ for (const c of contexts.keys()) c.decrement();
321
+ contexts.clear();
322
+ }, false);
323
+ }
324
+ function read() {
325
+ const c = SuspenseContext && useContext(SuspenseContext),
326
+ v = value(),
327
+ err = error();
328
+ if (err !== undefined && !pr) throw err;
329
+ if (Listener && !Listener.user && c) {
330
+ createComputed(() => {
331
+ track();
332
+ if (pr) {
333
+ if (c.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);else if (!contexts.has(c)) {
334
+ c.increment();
335
+ contexts.add(c);
336
+ }
337
+ }
338
+ });
339
+ }
340
+ return v;
341
+ }
342
+ function load(refetching = true) {
343
+ if (refetching !== false && scheduled) return;
344
+ scheduled = false;
345
+ const lookup = dynamic ? dynamic() : source;
346
+ loadedUnderTransition = Transition && Transition.running;
347
+ if (lookup == null || lookup === false) {
348
+ loadEnd(pr, untrack(value));
349
+ return;
350
+ }
351
+ if (Transition && pr) Transition.promises.delete(pr);
352
+ let error;
353
+ const p = initP !== NO_INIT ? initP : untrack(() => {
354
+ try {
355
+ return fetcher(lookup, {
356
+ value: value(),
357
+ refetching
358
+ });
359
+ } catch (fetcherError) {
360
+ error = fetcherError;
361
+ }
362
+ });
363
+ if (error !== undefined) {
364
+ loadEnd(pr, undefined, castError(error), lookup);
365
+ return;
366
+ } else if (!isPromise(p)) {
367
+ loadEnd(pr, p, undefined, lookup);
368
+ return p;
369
+ }
370
+ pr = p;
371
+ if ("v" in p) {
372
+ if (p.s === 1) loadEnd(pr, p.v, undefined, lookup);else loadEnd(pr, undefined, castError(p.v), lookup);
373
+ return p;
374
+ }
375
+ scheduled = true;
376
+ queueMicrotask(() => scheduled = false);
377
+ runUpdates(() => {
378
+ setState(resolved ? "refreshing" : "pending");
379
+ trigger();
380
+ }, false);
381
+ return p.then(v => loadEnd(p, v, undefined, lookup), e => loadEnd(p, undefined, castError(e), lookup));
382
+ }
383
+ Object.defineProperties(read, {
384
+ state: {
385
+ get: () => state()
386
+ },
387
+ error: {
388
+ get: () => error()
389
+ },
390
+ loading: {
391
+ get() {
392
+ const s = state();
393
+ return s === "pending" || s === "refreshing";
394
+ }
395
+ },
396
+ latest: {
397
+ get() {
398
+ if (!resolved) return read();
399
+ const err = error();
400
+ if (err && !pr) throw err;
401
+ return value();
402
+ }
403
+ }
404
+ });
405
+ let owner = Owner;
406
+ if (dynamic) createComputed(() => (owner = Owner, load(false)));else load(false);
407
+ return [read, {
408
+ refetch: info => runWithOwner(owner, () => load(info)),
409
+ mutate: setValue
410
+ }];
411
+ }
412
+ function createDeferred(source, options) {
413
+ let t,
414
+ timeout = options ? options.timeoutMs : undefined;
415
+ const node = createComputation(() => {
416
+ if (!t || !t.fn) t = requestCallback(() => setDeferred(() => node.value), timeout !== undefined ? {
417
+ timeout
418
+ } : undefined);
419
+ return source();
420
+ }, undefined, true);
421
+ const [deferred, setDeferred] = createSignal(Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, options);
422
+ updateComputation(node);
423
+ setDeferred(() => Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value);
424
+ return deferred;
425
+ }
426
+ function createSelector(source, fn = equalFn, options) {
427
+ const subs = new Map();
428
+ const node = createComputation(p => {
429
+ const v = source();
430
+ for (const [key, val] of subs.entries()) if (fn(key, v) !== fn(key, p)) {
431
+ for (const c of val.values()) {
432
+ if (Transition && Transition.running) c.tState = STALE;else c.state = STALE;
433
+ if (c.pure) Updates.push(c);else Effects.push(c);
434
+ }
435
+ }
436
+ return v;
437
+ }, undefined, true, STALE);
438
+ updateComputation(node);
439
+ return key => {
440
+ const listener = Listener;
441
+ if (listener) {
442
+ let l;
443
+ if (l = subs.get(key)) l.add(listener);else subs.set(key, l = new Set([listener]));
444
+ onCleanup(() => {
445
+ l.delete(listener);
446
+ !l.size && subs.delete(key);
447
+ });
448
+ }
449
+ return fn(key, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value);
450
+ };
451
+ }
452
+ function batch(fn) {
453
+ return runUpdates(fn, false);
454
+ }
455
+ function untrack(fn) {
456
+ if (!ExternalSourceConfig && Listener === null) return fn();
457
+ const listener = Listener;
458
+ Listener = null;
459
+ try {
460
+ if (ExternalSourceConfig) return ExternalSourceConfig.untrack(fn);
461
+ return fn();
462
+ } finally {
463
+ Listener = listener;
464
+ }
465
+ }
466
+ function on(deps, fn, options) {
467
+ const isArray = Array.isArray(deps);
468
+ let prevInput;
469
+ let defer = options && options.defer;
470
+ return prevValue => {
471
+ let input;
472
+ if (isArray) {
473
+ input = Array(deps.length);
474
+ for (let i = 0; i < deps.length; i++) input[i] = deps[i]();
475
+ } else input = deps();
476
+ if (defer) {
477
+ defer = false;
478
+ return prevValue;
479
+ }
480
+ const result = untrack(() => fn(input, prevInput, prevValue));
481
+ prevInput = input;
482
+ return result;
483
+ };
484
+ }
485
+ function onMount(fn) {
486
+ createEffect(() => untrack(fn));
487
+ }
488
+ function onCleanup(fn) {
489
+ if (Owner === null) ;else if (Owner.cleanups === null) Owner.cleanups = [fn];else Owner.cleanups.push(fn);
490
+ return fn;
491
+ }
492
+ function catchError(fn, handler) {
493
+ ERROR || (ERROR = Symbol("error"));
494
+ Owner = createComputation(undefined, undefined, true);
495
+ Owner.context = {
496
+ ...Owner.context,
497
+ [ERROR]: [handler]
498
+ };
499
+ if (Transition && Transition.running) Transition.sources.add(Owner);
500
+ try {
501
+ return fn();
502
+ } catch (err) {
503
+ handleError(err);
504
+ } finally {
505
+ Owner = Owner.owner;
506
+ }
507
+ }
508
+ function getListener() {
509
+ return Listener;
510
+ }
511
+ function getOwner() {
512
+ return Owner;
513
+ }
514
+ function runWithOwner(o, fn) {
515
+ const prev = Owner;
516
+ const prevListener = Listener;
517
+ Owner = o;
518
+ Listener = null;
519
+ try {
520
+ return runUpdates(fn, true);
521
+ } catch (err) {
522
+ handleError(err);
523
+ } finally {
524
+ Owner = prev;
525
+ Listener = prevListener;
526
+ }
527
+ }
528
+ function enableScheduling(scheduler = requestCallback) {
529
+ Scheduler = scheduler;
530
+ }
531
+ function startTransition(fn) {
532
+ if (Transition && Transition.running) {
533
+ fn();
534
+ return Transition.done;
535
+ }
536
+ const l = Listener;
537
+ const o = Owner;
538
+ return Promise.resolve().then(() => {
539
+ Listener = l;
540
+ Owner = o;
541
+ let t;
542
+ if (Scheduler || SuspenseContext) {
543
+ t = Transition || (Transition = {
544
+ sources: new Set(),
545
+ effects: [],
546
+ promises: new Set(),
547
+ disposed: new Set(),
548
+ queue: new Set(),
549
+ running: true
550
+ });
551
+ t.done || (t.done = new Promise(res => t.resolve = res));
552
+ t.running = true;
553
+ }
554
+ runUpdates(fn, false);
555
+ Listener = Owner = null;
556
+ return t ? t.done : undefined;
557
+ });
558
+ }
559
+ const [transPending, setTransPending] = /*@__PURE__*/createSignal(false);
560
+ function useTransition() {
561
+ return [transPending, startTransition];
562
+ }
563
+ function resumeEffects(e) {
564
+ Effects.push.apply(Effects, e);
565
+ e.length = 0;
566
+ }
567
+ function createContext(defaultValue, options) {
568
+ const id = Symbol("context");
569
+ return {
570
+ id,
571
+ Provider: createProvider(id),
572
+ defaultValue
573
+ };
574
+ }
575
+ function useContext(context) {
576
+ let value;
577
+ return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined ? value : context.defaultValue;
578
+ }
579
+ function children(fn) {
580
+ const children = createMemo(fn);
581
+ const memo = createMemo(() => resolveChildren(children()));
582
+ memo.toArray = () => {
583
+ const c = memo();
584
+ return Array.isArray(c) ? c : c != null ? [c] : [];
585
+ };
586
+ return memo;
587
+ }
588
+ let SuspenseContext;
589
+ function getSuspenseContext() {
590
+ return SuspenseContext || (SuspenseContext = createContext());
591
+ }
592
+ function enableExternalSource(factory, untrack = fn => fn()) {
593
+ if (ExternalSourceConfig) {
594
+ const {
595
+ factory: oldFactory,
596
+ untrack: oldUntrack
597
+ } = ExternalSourceConfig;
598
+ ExternalSourceConfig = {
599
+ factory: (fn, trigger) => {
600
+ const oldSource = oldFactory(fn, trigger);
601
+ const source = factory(x => oldSource.track(x), trigger);
602
+ return {
603
+ track: x => source.track(x),
604
+ dispose() {
605
+ source.dispose();
606
+ oldSource.dispose();
607
+ }
608
+ };
609
+ },
610
+ untrack: fn => oldUntrack(() => untrack(fn))
611
+ };
612
+ } else {
613
+ ExternalSourceConfig = {
614
+ factory,
615
+ untrack
616
+ };
617
+ }
618
+ }
619
+ function readSignal() {
620
+ const runningTransition = Transition && Transition.running;
621
+ if (this.sources && (runningTransition ? this.tState : this.state)) {
622
+ if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);else {
623
+ const updates = Updates;
624
+ Updates = null;
625
+ runUpdates(() => lookUpstream(this), false);
626
+ Updates = updates;
627
+ }
628
+ }
629
+ if (Listener) {
630
+ const observers = this.observers;
631
+ if (!observers || observers[observers.length - 1] !== Listener) {
632
+ const sSlot = observers ? observers.length : 0;
633
+ if (!Listener.sources) {
634
+ Listener.sources = [this];
635
+ Listener.sourceSlots = [sSlot];
636
+ } else {
637
+ Listener.sources.push(this);
638
+ Listener.sourceSlots.push(sSlot);
639
+ }
640
+ if (!observers) {
641
+ this.observers = [Listener];
642
+ this.observerSlots = [Listener.sources.length - 1];
643
+ } else {
644
+ observers.push(Listener);
645
+ this.observerSlots.push(Listener.sources.length - 1);
646
+ }
647
+ }
648
+ }
649
+ if (runningTransition && Transition.sources.has(this)) return this.tValue;
650
+ return this.value;
651
+ }
652
+ function writeSignal(node, value, isComp) {
653
+ let current = Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value;
654
+ if (!node.comparator || !node.comparator(current, value)) {
655
+ if (Transition) {
656
+ const TransitionRunning = Transition.running;
657
+ if (TransitionRunning || !isComp && Transition.sources.has(node)) {
658
+ Transition.sources.add(node);
659
+ node.tValue = value;
660
+ }
661
+ if (!TransitionRunning) node.value = value;
662
+ } else node.value = value;
663
+ if (node.observers && node.observers.length) {
664
+ runUpdates(() => {
665
+ for (let i = 0; i < node.observers.length; i += 1) {
666
+ const o = node.observers[i];
667
+ const TransitionRunning = Transition && Transition.running;
668
+ if (TransitionRunning && Transition.disposed.has(o)) continue;
669
+ if (TransitionRunning ? !o.tState : !o.state) {
670
+ if (o.pure) Updates.push(o);else Effects.push(o);
671
+ if (o.observers) markDownstream(o);
672
+ }
673
+ if (!TransitionRunning) o.state = STALE;else o.tState = STALE;
674
+ }
675
+ if (Updates.length > 10e5) {
676
+ Updates = [];
677
+ if (IS_DEV) ;
678
+ throw new Error();
679
+ }
680
+ }, false);
681
+ }
682
+ }
683
+ return value;
684
+ }
685
+ function updateComputation(node) {
686
+ if (!node.fn) return;
687
+ cleanNode(node);
688
+ const time = ExecCount;
689
+ runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
690
+ if (Transition && !Transition.running && Transition.sources.has(node)) {
691
+ queueMicrotask(() => {
692
+ runUpdates(() => {
693
+ Transition && (Transition.running = true);
694
+ Listener = Owner = node;
695
+ runComputation(node, node.tValue, time);
696
+ Listener = Owner = null;
697
+ }, false);
698
+ });
699
+ }
700
+ }
701
+ function runComputation(node, value, time) {
702
+ let nextValue;
703
+ const owner = Owner,
704
+ listener = Listener;
705
+ Listener = Owner = node;
706
+ try {
707
+ nextValue = node.fn(value);
708
+ } catch (err) {
709
+ if (node.pure) {
710
+ if (Transition && Transition.running) {
711
+ node.tState = STALE;
712
+ node.tOwned && node.tOwned.forEach(cleanNode);
713
+ node.tOwned = undefined;
714
+ } else {
715
+ node.state = STALE;
716
+ node.owned && node.owned.forEach(cleanNode);
717
+ node.owned = null;
718
+ }
719
+ }
720
+ node.updatedAt = time + 1;
721
+ return handleError(err);
722
+ } finally {
723
+ Listener = listener;
724
+ Owner = owner;
725
+ }
726
+ if (!node.updatedAt || node.updatedAt <= time) {
727
+ if (node.updatedAt != null && "observers" in node) {
728
+ writeSignal(node, nextValue, true);
729
+ } else if (Transition && Transition.running && node.pure) {
730
+ if (!Transition.sources.has(node)) node.value = nextValue;
731
+ Transition.sources.add(node);
732
+ node.tValue = nextValue;
733
+ } else node.value = nextValue;
734
+ node.updatedAt = time;
735
+ }
736
+ }
737
+ function createComputation(fn, init, pure, state = STALE, options) {
738
+ const c = {
739
+ fn,
740
+ state: state,
741
+ updatedAt: null,
742
+ owned: null,
743
+ sources: null,
744
+ sourceSlots: null,
745
+ cleanups: null,
746
+ value: init,
747
+ owner: Owner,
748
+ context: Owner ? Owner.context : null,
749
+ pure
750
+ };
751
+ if (Transition && Transition.running) {
752
+ c.state = 0;
753
+ c.tState = state;
754
+ }
755
+ if (Owner === null) ;else if (Owner !== UNOWNED) {
756
+ if (Transition && Transition.running && Owner.pure) {
757
+ if (!Owner.tOwned) Owner.tOwned = [c];else Owner.tOwned.push(c);
758
+ } else {
759
+ if (!Owner.owned) Owner.owned = [c];else Owner.owned.push(c);
760
+ }
761
+ }
762
+ if (ExternalSourceConfig && c.fn) {
763
+ const sourceFn = c.fn;
764
+ const [track, trigger] = createSignal(undefined, {
765
+ equals: false
766
+ });
767
+ const ordinary = ExternalSourceConfig.factory(sourceFn, trigger);
768
+ onCleanup(() => ordinary.dispose());
769
+ let inTransition;
770
+ let trackedOrdinary = false;
771
+ const triggerInTransition = () => startTransition(trigger).then(() => {
772
+ if (inTransition) {
773
+ inTransition.dispose();
774
+ inTransition = undefined;
775
+ if (!trackedOrdinary) trigger();
776
+ }
777
+ });
778
+ c.fn = x => {
779
+ track();
780
+ if (Transition && Transition.running) {
781
+ if (!inTransition) inTransition = ExternalSourceConfig.factory(sourceFn, triggerInTransition);
782
+ return inTransition.track(x);
783
+ }
784
+ trackedOrdinary = true;
785
+ return ordinary.track(x);
786
+ };
787
+ }
788
+ return c;
789
+ }
790
+ function runTop(node) {
791
+ const runningTransition = Transition && Transition.running;
792
+ if ((runningTransition ? node.tState : node.state) === 0) return;
793
+ if ((runningTransition ? node.tState : node.state) === PENDING) return lookUpstream(node);
794
+ if (node.suspense && untrack(node.suspense.inFallback)) return node.suspense.effects.push(node);
795
+ const ancestors = [node];
796
+ while ((node = node.owner) && (!node.updatedAt || node.updatedAt < ExecCount)) {
797
+ if (runningTransition && Transition.disposed.has(node)) return;
798
+ if (runningTransition ? node.tState : node.state) ancestors.push(node);
799
+ }
800
+ for (let i = ancestors.length - 1; i >= 0; i--) {
801
+ node = ancestors[i];
802
+ if (runningTransition) {
803
+ let top = node,
804
+ prev = ancestors[i + 1];
805
+ while ((top = top.owner) && top !== prev) {
806
+ if (Transition.disposed.has(top)) return;
807
+ }
808
+ }
809
+ if ((runningTransition ? node.tState : node.state) === STALE) {
810
+ updateComputation(node);
811
+ } else if ((runningTransition ? node.tState : node.state) === PENDING) {
812
+ const updates = Updates;
813
+ Updates = null;
814
+ runUpdates(() => lookUpstream(node, ancestors[0]), false);
815
+ Updates = updates;
816
+ }
817
+ }
818
+ }
819
+ function runUpdates(fn, init) {
820
+ if (Updates) return fn();
821
+ let wait = false;
822
+ if (!init) Updates = [];
823
+ if (Effects) wait = true;else Effects = [];
824
+ ExecCount++;
825
+ try {
826
+ const res = fn();
827
+ completeUpdates(wait);
828
+ return res;
829
+ } catch (err) {
830
+ if (!wait) Effects = null;
831
+ Updates = null;
832
+ handleError(err);
833
+ }
834
+ }
835
+ function completeUpdates(wait) {
836
+ if (Updates) {
837
+ if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);else runQueue(Updates);
838
+ Updates = null;
839
+ }
840
+ if (wait) return;
841
+ let res;
842
+ if (Transition) {
843
+ if (!Transition.promises.size && !Transition.queue.size) {
844
+ const sources = Transition.sources;
845
+ const disposed = Transition.disposed;
846
+ Effects.push.apply(Effects, Transition.effects);
847
+ res = Transition.resolve;
848
+ for (const e of Effects) {
849
+ "tState" in e && (e.state = e.tState);
850
+ delete e.tState;
851
+ }
852
+ Transition = null;
853
+ runUpdates(() => {
854
+ for (const d of disposed) cleanNode(d);
855
+ for (const v of sources) {
856
+ v.value = v.tValue;
857
+ if (v.owned) {
858
+ for (let i = 0, len = v.owned.length; i < len; i++) cleanNode(v.owned[i]);
859
+ }
860
+ if (v.tOwned) v.owned = v.tOwned;
861
+ delete v.tValue;
862
+ delete v.tOwned;
863
+ v.tState = 0;
864
+ }
865
+ setTransPending(false);
866
+ }, false);
867
+ } else if (Transition.running) {
868
+ Transition.running = false;
869
+ Transition.effects.push.apply(Transition.effects, Effects);
870
+ Effects = null;
871
+ setTransPending(true);
872
+ return;
873
+ }
874
+ }
875
+ const e = Effects;
876
+ Effects = null;
877
+ if (e.length) runUpdates(() => runEffects(e), false);
878
+ if (res) res();
879
+ }
880
+ function runQueue(queue) {
881
+ for (let i = 0; i < queue.length; i++) runTop(queue[i]);
882
+ }
883
+ function scheduleQueue(queue) {
884
+ for (let i = 0; i < queue.length; i++) {
885
+ const item = queue[i];
886
+ const tasks = Transition.queue;
887
+ if (!tasks.has(item)) {
888
+ tasks.add(item);
889
+ Scheduler(() => {
890
+ tasks.delete(item);
891
+ runUpdates(() => {
892
+ Transition.running = true;
893
+ runTop(item);
894
+ }, false);
895
+ Transition && (Transition.running = false);
896
+ });
897
+ }
898
+ }
899
+ }
900
+ function runUserEffects(queue) {
901
+ let i,
902
+ userLength = 0;
903
+ for (i = 0; i < queue.length; i++) {
904
+ const e = queue[i];
905
+ if (!e.user) runTop(e);else queue[userLength++] = e;
906
+ }
907
+ if (sharedConfig.context) {
908
+ if (sharedConfig.count) {
909
+ sharedConfig.effects || (sharedConfig.effects = []);
910
+ sharedConfig.effects.push(...queue.slice(0, userLength));
911
+ return;
912
+ }
913
+ setHydrateContext();
914
+ }
915
+ if (sharedConfig.effects && (sharedConfig.done || !sharedConfig.count)) {
916
+ queue = [...sharedConfig.effects, ...queue];
917
+ userLength += sharedConfig.effects.length;
918
+ delete sharedConfig.effects;
919
+ }
920
+ for (i = 0; i < userLength; i++) runTop(queue[i]);
921
+ }
922
+ function lookUpstream(node, ignore) {
923
+ const runningTransition = Transition && Transition.running;
924
+ if (runningTransition) node.tState = 0;else node.state = 0;
925
+ for (let i = 0; i < node.sources.length; i += 1) {
926
+ const source = node.sources[i];
927
+ if (source.sources) {
928
+ const state = runningTransition ? source.tState : source.state;
929
+ if (state === STALE) {
930
+ if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
931
+ } else if (state === PENDING) lookUpstream(source, ignore);
932
+ }
933
+ }
934
+ }
935
+ function markDownstream(node) {
936
+ const runningTransition = Transition && Transition.running;
937
+ for (let i = 0; i < node.observers.length; i += 1) {
938
+ const o = node.observers[i];
939
+ if (runningTransition ? !o.tState : !o.state) {
940
+ if (runningTransition) o.tState = PENDING;else o.state = PENDING;
941
+ if (o.pure) Updates.push(o);else Effects.push(o);
942
+ o.observers && markDownstream(o);
943
+ }
944
+ }
945
+ }
946
+ function cleanNode(node) {
947
+ let i;
948
+ if (node.sources) {
949
+ while (node.sources.length) {
950
+ const source = node.sources.pop(),
951
+ index = node.sourceSlots.pop(),
952
+ obs = source.observers;
953
+ if (obs && obs.length) {
954
+ const n = obs.pop(),
955
+ s = source.observerSlots.pop();
956
+ if (index < obs.length) {
957
+ n.sourceSlots[s] = index;
958
+ obs[index] = n;
959
+ source.observerSlots[index] = s;
960
+ }
961
+ }
962
+ }
963
+ }
964
+ if (node.tOwned) {
965
+ for (i = node.tOwned.length - 1; i >= 0; i--) cleanNode(node.tOwned[i]);
966
+ delete node.tOwned;
967
+ }
968
+ if (Transition && Transition.running && node.pure) {
969
+ reset(node, true);
970
+ } else if (node.owned) {
971
+ for (i = node.owned.length - 1; i >= 0; i--) cleanNode(node.owned[i]);
972
+ node.owned = null;
973
+ }
974
+ if (node.cleanups) {
975
+ for (i = node.cleanups.length - 1; i >= 0; i--) node.cleanups[i]();
976
+ node.cleanups = null;
977
+ }
978
+ if (Transition && Transition.running) node.tState = 0;else node.state = 0;
979
+ }
980
+ function reset(node, top) {
981
+ if (!top) {
982
+ node.tState = 0;
983
+ Transition.disposed.add(node);
984
+ }
985
+ if (node.owned) {
986
+ for (let i = 0; i < node.owned.length; i++) reset(node.owned[i]);
987
+ }
988
+ }
989
+ function castError(err) {
990
+ if (err instanceof Error) return err;
991
+ return new Error(typeof err === "string" ? err : "Unknown error", {
992
+ cause: err
993
+ });
994
+ }
995
+ function runErrors(err, fns, owner) {
996
+ try {
997
+ for (const f of fns) f(err);
998
+ } catch (e) {
999
+ handleError(e, owner && owner.owner || null);
1000
+ }
1001
+ }
1002
+ function handleError(err, owner = Owner) {
1003
+ const fns = ERROR && owner && owner.context && owner.context[ERROR];
1004
+ const error = castError(err);
1005
+ if (!fns) throw error;
1006
+ if (Effects) Effects.push({
1007
+ fn() {
1008
+ runErrors(error, fns, owner);
1009
+ },
1010
+ state: STALE
1011
+ });else runErrors(error, fns, owner);
1012
+ }
1013
+ function resolveChildren(children) {
1014
+ if (typeof children === "function" && !children.length) return resolveChildren(children());
1015
+ if (Array.isArray(children)) {
1016
+ const results = [];
1017
+ for (let i = 0; i < children.length; i++) {
1018
+ const result = resolveChildren(children[i]);
1019
+ if (Array.isArray(result)) {
1020
+ if (result.length < 32768) results.push.apply(results, result);else for (let j = 0; j < result.length; j++) results.push(result[j]);
1021
+ } else {
1022
+ results.push(result);
1023
+ }
1024
+ }
1025
+ return results;
1026
+ }
1027
+ return children;
1028
+ }
1029
+ function createProvider(id, options) {
1030
+ return function provider(props) {
1031
+ let res;
1032
+ createRenderEffect(() => res = untrack(() => {
1033
+ Owner.context = {
1034
+ ...Owner.context,
1035
+ [id]: props.value
1036
+ };
1037
+ return children(() => props.children);
1038
+ }), undefined);
1039
+ return res;
1040
+ };
1041
+ }
1042
+ function onError(fn) {
1043
+ ERROR || (ERROR = Symbol("error"));
1044
+ if (Owner === null) ;else if (Owner.context === null || !Owner.context[ERROR]) {
1045
+ Owner.context = {
1046
+ ...Owner.context,
1047
+ [ERROR]: [fn]
1048
+ };
1049
+ mutateContext(Owner, ERROR, [fn]);
1050
+ } else Owner.context[ERROR].push(fn);
1051
+ }
1052
+ function mutateContext(o, key, value) {
1053
+ if (o.owned) {
1054
+ for (let i = 0; i < o.owned.length; i++) {
1055
+ if (o.owned[i].context === o.context) mutateContext(o.owned[i], key, value);
1056
+ if (!o.owned[i].context) {
1057
+ o.owned[i].context = o.context;
1058
+ mutateContext(o.owned[i], key, value);
1059
+ } else if (!o.owned[i].context[key]) {
1060
+ o.owned[i].context[key] = value;
1061
+ mutateContext(o.owned[i], key, value);
1062
+ }
1063
+ }
1064
+ }
1065
+ }
1066
+
1067
+ function observable(input) {
1068
+ return {
1069
+ subscribe(observer) {
1070
+ if (!(observer instanceof Object) || observer == null) {
1071
+ throw new TypeError("Expected the observer to be an object.");
1072
+ }
1073
+ const handler = typeof observer === "function" ? observer : observer.next && observer.next.bind(observer);
1074
+ if (!handler) {
1075
+ return {
1076
+ unsubscribe() {}
1077
+ };
1078
+ }
1079
+ const dispose = createRoot(disposer => {
1080
+ createEffect(() => {
1081
+ const v = input();
1082
+ untrack(() => handler(v));
1083
+ });
1084
+ return disposer;
1085
+ });
1086
+ if (getOwner()) onCleanup(dispose);
1087
+ return {
1088
+ unsubscribe() {
1089
+ dispose();
1090
+ }
1091
+ };
1092
+ },
1093
+ [Symbol.observable || "@@observable"]() {
1094
+ return this;
1095
+ }
1096
+ };
1097
+ }
1098
+ function from(producer, initalValue = undefined) {
1099
+ const [s, set] = createSignal(initalValue, {
1100
+ equals: false
1101
+ });
1102
+ if ("subscribe" in producer) {
1103
+ const unsub = producer.subscribe(v => set(() => v));
1104
+ onCleanup(() => "unsubscribe" in unsub ? unsub.unsubscribe() : unsub());
1105
+ } else {
1106
+ const clean = producer(set);
1107
+ onCleanup(clean);
1108
+ }
1109
+ return s;
1110
+ }
1111
+
1112
+ const FALLBACK = Symbol("fallback");
1113
+ function dispose(d) {
1114
+ for (let i = 0; i < d.length; i++) d[i]();
1115
+ }
1116
+ function mapArray(list, mapFn, options = {}) {
1117
+ let items = [],
1118
+ mapped = [],
1119
+ disposers = [],
1120
+ len = 0,
1121
+ indexes = mapFn.length > 1 ? [] : null;
1122
+ onCleanup(() => dispose(disposers));
1123
+ return () => {
1124
+ let newItems = list() || [],
1125
+ newLen = newItems.length,
1126
+ i,
1127
+ j;
1128
+ newItems[$TRACK];
1129
+ return untrack(() => {
1130
+ let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
1131
+ if (newLen === 0) {
1132
+ if (len !== 0) {
1133
+ dispose(disposers);
1134
+ disposers = [];
1135
+ items = [];
1136
+ mapped = [];
1137
+ len = 0;
1138
+ indexes && (indexes = []);
1139
+ }
1140
+ if (options.fallback) {
1141
+ items = [FALLBACK];
1142
+ mapped[0] = createRoot(disposer => {
1143
+ disposers[0] = disposer;
1144
+ return options.fallback();
1145
+ });
1146
+ len = 1;
1147
+ }
1148
+ }
1149
+ else if (len === 0) {
1150
+ mapped = new Array(newLen);
1151
+ for (j = 0; j < newLen; j++) {
1152
+ items[j] = newItems[j];
1153
+ mapped[j] = createRoot(mapper);
1154
+ }
1155
+ len = newLen;
1156
+ } else {
1157
+ temp = new Array(newLen);
1158
+ tempdisposers = new Array(newLen);
1159
+ indexes && (tempIndexes = new Array(newLen));
1160
+ for (start = 0, end = Math.min(len, newLen); start < end && items[start] === newItems[start]; start++);
1161
+ for (end = len - 1, newEnd = newLen - 1; end >= start && newEnd >= start && items[end] === newItems[newEnd]; end--, newEnd--) {
1162
+ temp[newEnd] = mapped[end];
1163
+ tempdisposers[newEnd] = disposers[end];
1164
+ indexes && (tempIndexes[newEnd] = indexes[end]);
1165
+ }
1166
+ newIndices = new Map();
1167
+ newIndicesNext = new Array(newEnd + 1);
1168
+ for (j = newEnd; j >= start; j--) {
1169
+ item = newItems[j];
1170
+ i = newIndices.get(item);
1171
+ newIndicesNext[j] = i === undefined ? -1 : i;
1172
+ newIndices.set(item, j);
1173
+ }
1174
+ for (i = start; i <= end; i++) {
1175
+ item = items[i];
1176
+ j = newIndices.get(item);
1177
+ if (j !== undefined && j !== -1) {
1178
+ temp[j] = mapped[i];
1179
+ tempdisposers[j] = disposers[i];
1180
+ indexes && (tempIndexes[j] = indexes[i]);
1181
+ j = newIndicesNext[j];
1182
+ newIndices.set(item, j);
1183
+ } else disposers[i]();
1184
+ }
1185
+ for (j = start; j < newLen; j++) {
1186
+ if (j in temp) {
1187
+ mapped[j] = temp[j];
1188
+ disposers[j] = tempdisposers[j];
1189
+ if (indexes) {
1190
+ indexes[j] = tempIndexes[j];
1191
+ indexes[j](j);
1192
+ }
1193
+ } else mapped[j] = createRoot(mapper);
1194
+ }
1195
+ mapped = mapped.slice(0, len = newLen);
1196
+ items = newItems.slice(0);
1197
+ }
1198
+ return mapped;
1199
+ });
1200
+ function mapper(disposer) {
1201
+ disposers[j] = disposer;
1202
+ if (indexes) {
1203
+ const [s, set] = createSignal(j);
1204
+ indexes[j] = set;
1205
+ return mapFn(newItems[j], s);
1206
+ }
1207
+ return mapFn(newItems[j]);
1208
+ }
1209
+ };
1210
+ }
1211
+ function indexArray(list, mapFn, options = {}) {
1212
+ let items = [],
1213
+ mapped = [],
1214
+ disposers = [],
1215
+ signals = [],
1216
+ len = 0,
1217
+ i;
1218
+ onCleanup(() => dispose(disposers));
1219
+ return () => {
1220
+ const newItems = list() || [],
1221
+ newLen = newItems.length;
1222
+ newItems[$TRACK];
1223
+ return untrack(() => {
1224
+ if (newLen === 0) {
1225
+ if (len !== 0) {
1226
+ dispose(disposers);
1227
+ disposers = [];
1228
+ items = [];
1229
+ mapped = [];
1230
+ len = 0;
1231
+ signals = [];
1232
+ }
1233
+ if (options.fallback) {
1234
+ items = [FALLBACK];
1235
+ mapped[0] = createRoot(disposer => {
1236
+ disposers[0] = disposer;
1237
+ return options.fallback();
1238
+ });
1239
+ len = 1;
1240
+ }
1241
+ return mapped;
1242
+ }
1243
+ if (items[0] === FALLBACK) {
1244
+ disposers[0]();
1245
+ disposers = [];
1246
+ items = [];
1247
+ mapped = [];
1248
+ len = 0;
1249
+ }
1250
+ for (i = 0; i < newLen; i++) {
1251
+ if (i < items.length && items[i] !== newItems[i]) {
1252
+ signals[i](() => newItems[i]);
1253
+ } else if (i >= items.length) {
1254
+ mapped[i] = createRoot(mapper);
1255
+ }
1256
+ }
1257
+ for (; i < items.length; i++) {
1258
+ disposers[i]();
1259
+ }
1260
+ len = signals.length = disposers.length = newLen;
1261
+ items = newItems.slice(0);
1262
+ return mapped = mapped.slice(0, len);
1263
+ });
1264
+ function mapper(disposer) {
1265
+ disposers[i] = disposer;
1266
+ const [s, set] = createSignal(newItems[i]);
1267
+ signals[i] = set;
1268
+ return mapFn(s, i);
1269
+ }
1270
+ };
1271
+ }
1272
+
1273
+ let hydrationEnabled = false;
1274
+ function enableHydration() {
1275
+ hydrationEnabled = true;
1276
+ }
1277
+ function createComponent(Comp, props) {
1278
+ if (hydrationEnabled) {
1279
+ if (sharedConfig.context) {
1280
+ const c = sharedConfig.context;
1281
+ setHydrateContext(nextHydrateContext());
1282
+ const r = untrack(() => Comp(props || {}));
1283
+ setHydrateContext(c);
1284
+ return r;
1285
+ }
1286
+ }
1287
+ return untrack(() => Comp(props || {}));
1288
+ }
1289
+ function trueFn() {
1290
+ return true;
1291
+ }
1292
+ const propTraps = {
1293
+ get(_, property, receiver) {
1294
+ if (property === $PROXY) return receiver;
1295
+ return _.get(property);
1296
+ },
1297
+ has(_, property) {
1298
+ if (property === $PROXY) return true;
1299
+ return _.has(property);
1300
+ },
1301
+ set: trueFn,
1302
+ deleteProperty: trueFn,
1303
+ getOwnPropertyDescriptor(_, property) {
1304
+ return {
1305
+ configurable: true,
1306
+ enumerable: true,
1307
+ get() {
1308
+ return _.get(property);
1309
+ },
1310
+ set: trueFn,
1311
+ deleteProperty: trueFn
1312
+ };
1313
+ },
1314
+ ownKeys(_) {
1315
+ return _.keys();
1316
+ }
1317
+ };
1318
+ function resolveSource(s) {
1319
+ return !(s = typeof s === "function" ? s() : s) ? {} : s;
1320
+ }
1321
+ function resolveSources() {
1322
+ for (let i = 0, length = this.length; i < length; ++i) {
1323
+ const v = this[i]();
1324
+ if (v !== undefined) return v;
1325
+ }
1326
+ }
1327
+ function mergeProps(...sources) {
1328
+ let proxy = false;
1329
+ for (let i = 0; i < sources.length; i++) {
1330
+ const s = sources[i];
1331
+ proxy = proxy || !!s && $PROXY in s;
1332
+ sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
1333
+ }
1334
+ if (SUPPORTS_PROXY && proxy) {
1335
+ return new Proxy({
1336
+ get(property) {
1337
+ for (let i = sources.length - 1; i >= 0; i--) {
1338
+ const v = resolveSource(sources[i])[property];
1339
+ if (v !== undefined) return v;
1340
+ }
1341
+ },
1342
+ has(property) {
1343
+ for (let i = sources.length - 1; i >= 0; i--) {
1344
+ if (property in resolveSource(sources[i])) return true;
1345
+ }
1346
+ return false;
1347
+ },
1348
+ keys() {
1349
+ const keys = [];
1350
+ for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
1351
+ return [...new Set(keys)];
1352
+ }
1353
+ }, propTraps);
1354
+ }
1355
+ const sourcesMap = {};
1356
+ const defined = Object.create(null);
1357
+ for (let i = sources.length - 1; i >= 0; i--) {
1358
+ const source = sources[i];
1359
+ if (!source) continue;
1360
+ const sourceKeys = Object.getOwnPropertyNames(source);
1361
+ for (let i = sourceKeys.length - 1; i >= 0; i--) {
1362
+ const key = sourceKeys[i];
1363
+ if (key === "__proto__" || key === "constructor") continue;
1364
+ const desc = Object.getOwnPropertyDescriptor(source, key);
1365
+ if (!defined[key]) {
1366
+ defined[key] = desc.get ? {
1367
+ enumerable: true,
1368
+ configurable: true,
1369
+ get: resolveSources.bind(sourcesMap[key] = [desc.get.bind(source)])
1370
+ } : desc.value !== undefined ? desc : undefined;
1371
+ } else {
1372
+ const sources = sourcesMap[key];
1373
+ if (sources) {
1374
+ if (desc.get) sources.push(desc.get.bind(source));else if (desc.value !== undefined) sources.push(() => desc.value);
1375
+ }
1376
+ }
1377
+ }
1378
+ }
1379
+ const target = {};
1380
+ const definedKeys = Object.keys(defined);
1381
+ for (let i = definedKeys.length - 1; i >= 0; i--) {
1382
+ const key = definedKeys[i],
1383
+ desc = defined[key];
1384
+ if (desc && desc.get) Object.defineProperty(target, key, desc);else target[key] = desc ? desc.value : undefined;
1385
+ }
1386
+ return target;
1387
+ }
1388
+ function splitProps(props, ...keys) {
1389
+ const len = keys.length;
1390
+ if (SUPPORTS_PROXY && $PROXY in props) {
1391
+ const blocked = len > 1 ? keys.flat() : keys[0];
1392
+ const claimed = new Set();
1393
+ const res = keys.map(k => {
1394
+ const owned = k.filter(property => !claimed.has(property) && (claimed.add(property), true));
1395
+ return new Proxy({
1396
+ get(property) {
1397
+ return owned.includes(property) ? props[property] : undefined;
1398
+ },
1399
+ has(property) {
1400
+ return owned.includes(property) && property in props;
1401
+ },
1402
+ keys() {
1403
+ return owned.filter(property => property in props);
1404
+ }
1405
+ }, propTraps);
1406
+ });
1407
+ res.push(new Proxy({
1408
+ get(property) {
1409
+ return blocked.includes(property) ? undefined : props[property];
1410
+ },
1411
+ has(property) {
1412
+ return blocked.includes(property) ? false : property in props;
1413
+ },
1414
+ keys() {
1415
+ return Object.keys(props).filter(k => !blocked.includes(k));
1416
+ }
1417
+ }, propTraps));
1418
+ return res;
1419
+ }
1420
+ const objects = [];
1421
+ for (let i = 0; i <= len; i++) {
1422
+ objects[i] = {};
1423
+ }
1424
+ for (const propName of Object.getOwnPropertyNames(props)) {
1425
+ let keyIndex = len;
1426
+ for (let i = 0; i < keys.length; i++) {
1427
+ if (keys[i].includes(propName)) {
1428
+ keyIndex = i;
1429
+ break;
1430
+ }
1431
+ }
1432
+ const desc = Object.getOwnPropertyDescriptor(props, propName);
1433
+ const isDefaultDesc = !desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
1434
+ isDefaultDesc ? objects[keyIndex][propName] = desc.value : Object.defineProperty(objects[keyIndex], propName, desc);
1435
+ }
1436
+ return objects;
1437
+ }
1438
+ function lazy(fn) {
1439
+ let comp;
1440
+ let p;
1441
+ const load = () => {
1442
+ if (!p) {
1443
+ const cur = p = fn();
1444
+ cur.then(mod => {
1445
+ comp = () => mod.default;
1446
+ }, () => {
1447
+ if (p === cur) p = undefined;
1448
+ });
1449
+ }
1450
+ return p;
1451
+ };
1452
+ const wrap = props => {
1453
+ const ctx = sharedConfig.context;
1454
+ if (ctx) {
1455
+ const [s, set] = createSignal();
1456
+ sharedConfig.count || (sharedConfig.count = 0);
1457
+ sharedConfig.count++;
1458
+ load().then(mod => {
1459
+ !sharedConfig.done && setHydrateContext(ctx);
1460
+ sharedConfig.count--;
1461
+ set(() => mod.default);
1462
+ setHydrateContext();
1463
+ }, err => {
1464
+ !sharedConfig.done && setHydrateContext(ctx);
1465
+ sharedConfig.count--;
1466
+ set(() => () => {
1467
+ throw err;
1468
+ });
1469
+ setHydrateContext();
1470
+ });
1471
+ comp = s;
1472
+ } else if (!comp) {
1473
+ const [s] = createResource(() => load().then(mod => mod.default));
1474
+ comp = s;
1475
+ onCleanup(() => comp = undefined);
1476
+ }
1477
+ let Comp;
1478
+ return createMemo(() => (Comp = comp?.()) ? untrack(() => {
1479
+ if (IS_DEV) ;
1480
+ if (!ctx || sharedConfig.done) return Comp(props);
1481
+ const c = sharedConfig.context;
1482
+ setHydrateContext(ctx);
1483
+ const r = Comp(props);
1484
+ setHydrateContext(c);
1485
+ return r;
1486
+ }) : "");
1487
+ };
1488
+ wrap.preload = () => load();
1489
+ return wrap;
1490
+ }
1491
+ let counter = 0;
1492
+ function createUniqueId() {
1493
+ const ctx = sharedConfig.context;
1494
+ return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
1495
+ }
1496
+
1497
+ const narrowedError = name => `Stale read from <${name}>.`;
1498
+ function For(props) {
1499
+ const fallback = "fallback" in props && {
1500
+ fallback: () => props.fallback
1501
+ };
1502
+ return createMemo(mapArray(() => props.each, props.children, fallback || undefined));
1503
+ }
1504
+ function Index(props) {
1505
+ const fallback = "fallback" in props && {
1506
+ fallback: () => props.fallback
1507
+ };
1508
+ return createMemo(indexArray(() => props.each, props.children, fallback || undefined));
1509
+ }
1510
+ function Show(props) {
1511
+ const keyed = props.keyed;
1512
+ const conditionValue = createMemo(() => props.when, undefined, undefined);
1513
+ const condition = keyed ? conditionValue : createMemo(conditionValue, undefined, {
1514
+ equals: (a, b) => !a === !b
1515
+ });
1516
+ return createMemo(() => {
1517
+ const c = condition();
1518
+ if (c) {
1519
+ const child = props.children;
1520
+ const fn = typeof child === "function" && child.length > 0;
1521
+ return fn ? untrack(() => child(keyed ? c : () => {
1522
+ if (!untrack(condition)) throw narrowedError("Show");
1523
+ return conditionValue();
1524
+ })) : child;
1525
+ }
1526
+ return props.fallback;
1527
+ }, undefined, undefined);
1528
+ }
1529
+ function Switch(props) {
1530
+ const chs = children(() => props.children);
1531
+ const switchFunc = createMemo(() => {
1532
+ const ch = chs();
1533
+ const mps = Array.isArray(ch) ? ch : [ch];
1534
+ let func = () => undefined;
1535
+ for (let i = 0; i < mps.length; i++) {
1536
+ const index = i;
1537
+ const mp = mps[i];
1538
+ const prevFunc = func;
1539
+ const conditionValue = createMemo(() => prevFunc() ? undefined : mp.when, undefined, undefined);
1540
+ const condition = mp.keyed ? conditionValue : createMemo(conditionValue, undefined, {
1541
+ equals: (a, b) => !a === !b
1542
+ });
1543
+ func = () => prevFunc() || (condition() ? [index, conditionValue, mp] : undefined);
1544
+ }
1545
+ return func;
1546
+ });
1547
+ return createMemo(() => {
1548
+ const sel = switchFunc()();
1549
+ if (!sel) return props.fallback;
1550
+ const [index, conditionValue, mp] = sel;
1551
+ const child = mp.children;
1552
+ const fn = typeof child === "function" && child.length > 0;
1553
+ return fn ? untrack(() => child(mp.keyed ? conditionValue() : () => {
1554
+ if (untrack(switchFunc)()?.[0] !== index) throw narrowedError("Match");
1555
+ return conditionValue();
1556
+ })) : child;
1557
+ }, undefined, undefined);
1558
+ }
1559
+ function Match(props) {
1560
+ return props;
1561
+ }
1562
+ let Errors;
1563
+ function resetErrorBoundaries() {
1564
+ Errors && [...Errors].forEach(fn => fn());
1565
+ }
1566
+ function ErrorBoundary(props) {
1567
+ let err;
1568
+ if (sharedConfig.context && sharedConfig.load) err = sharedConfig.load(sharedConfig.getContextId());
1569
+ const [errored, setErrored] = createSignal(err, undefined);
1570
+ Errors || (Errors = new Set());
1571
+ Errors.add(setErrored);
1572
+ onCleanup(() => Errors.delete(setErrored));
1573
+ return createMemo(() => {
1574
+ let e;
1575
+ if (e = errored()) {
1576
+ const f = props.fallback;
1577
+ return typeof f === "function" && f.length ? untrack(() => f(e, () => setErrored())) : f;
1578
+ }
1579
+ return catchError(() => props.children, setErrored);
1580
+ }, undefined, undefined);
1581
+ }
1582
+
1583
+ const suspenseListEquals = (a, b) => a.showContent === b.showContent && a.showFallback === b.showFallback;
1584
+ const SuspenseListContext = /* #__PURE__ */createContext();
1585
+ function SuspenseList(props) {
1586
+ let [wrapper, setWrapper] = createSignal(() => ({
1587
+ inFallback: false
1588
+ })),
1589
+ show;
1590
+ const listContext = useContext(SuspenseListContext);
1591
+ const [registry, setRegistry] = createSignal([]);
1592
+ if (listContext) {
1593
+ show = listContext.register(createMemo(() => wrapper()().inFallback));
1594
+ }
1595
+ const resolved = createMemo(prev => {
1596
+ const reveal = props.revealOrder,
1597
+ tail = props.tail,
1598
+ {
1599
+ showContent = true,
1600
+ showFallback = true
1601
+ } = show ? show() : {},
1602
+ reg = registry(),
1603
+ reverse = reveal === "backwards";
1604
+ if (reveal === "together") {
1605
+ const all = reg.every(inFallback => !inFallback());
1606
+ const res = reg.map(() => ({
1607
+ showContent: all && showContent,
1608
+ showFallback
1609
+ }));
1610
+ res.inFallback = !all;
1611
+ return res;
1612
+ }
1613
+ let stop = false;
1614
+ let inFallback = prev.inFallback;
1615
+ const res = [];
1616
+ for (let i = 0, len = reg.length; i < len; i++) {
1617
+ const n = reverse ? len - i - 1 : i,
1618
+ s = reg[n]();
1619
+ if (!stop && !s) {
1620
+ res[n] = {
1621
+ showContent,
1622
+ showFallback
1623
+ };
1624
+ } else {
1625
+ const next = !stop;
1626
+ if (next) inFallback = true;
1627
+ res[n] = {
1628
+ showContent: next,
1629
+ showFallback: !tail || next && tail === "collapsed" ? showFallback : false
1630
+ };
1631
+ stop = true;
1632
+ }
1633
+ }
1634
+ if (!stop) inFallback = false;
1635
+ res.inFallback = inFallback;
1636
+ return res;
1637
+ }, {
1638
+ inFallback: false
1639
+ });
1640
+ setWrapper(() => resolved);
1641
+ return createComponent(SuspenseListContext.Provider, {
1642
+ value: {
1643
+ register: inFallback => {
1644
+ let index;
1645
+ setRegistry(registry => {
1646
+ index = registry.length;
1647
+ return [...registry, inFallback];
1648
+ });
1649
+ return createMemo(() => resolved()[index], undefined, {
1650
+ equals: suspenseListEquals
1651
+ });
1652
+ }
1653
+ },
1654
+ get children() {
1655
+ return props.children;
1656
+ }
1657
+ });
1658
+ }
1659
+ function Suspense(props) {
1660
+ let counter = 0,
1661
+ show,
1662
+ ctx,
1663
+ p,
1664
+ flicker,
1665
+ error;
1666
+ const [inFallback, setFallback] = createSignal(false),
1667
+ SuspenseContext = getSuspenseContext(),
1668
+ store = {
1669
+ increment: () => {
1670
+ if (++counter === 1) setFallback(true);
1671
+ },
1672
+ decrement: () => {
1673
+ if (--counter === 0) setFallback(false);
1674
+ },
1675
+ inFallback,
1676
+ effects: [],
1677
+ resolved: false
1678
+ },
1679
+ owner = getOwner();
1680
+ if (sharedConfig.context && sharedConfig.load) {
1681
+ const key = sharedConfig.getContextId();
1682
+ let ref = sharedConfig.load(key);
1683
+ if (ref) {
1684
+ if (typeof ref !== "object" || ref.s !== 1) p = ref;else sharedConfig.gather(key);
1685
+ }
1686
+ if (p && p !== "$$f") {
1687
+ const [s, set] = createSignal(undefined, {
1688
+ equals: false
1689
+ });
1690
+ flicker = s;
1691
+ p.then(() => {
1692
+ if (sharedConfig.done) return set();
1693
+ sharedConfig.gather(key);
1694
+ setHydrateContext(ctx);
1695
+ set();
1696
+ setHydrateContext();
1697
+ }, err => {
1698
+ error = err;
1699
+ set();
1700
+ });
1701
+ }
1702
+ }
1703
+ const listContext = useContext(SuspenseListContext);
1704
+ if (listContext) show = listContext.register(store.inFallback);
1705
+ let dispose;
1706
+ onCleanup(() => dispose && dispose());
1707
+ return createComponent(SuspenseContext.Provider, {
1708
+ value: store,
1709
+ get children() {
1710
+ return createMemo(() => {
1711
+ if (error) throw error;
1712
+ ctx = sharedConfig.context;
1713
+ if (flicker) {
1714
+ flicker();
1715
+ return flicker = undefined;
1716
+ }
1717
+ if (ctx && p === "$$f") setHydrateContext();
1718
+ const rendered = createMemo(() => props.children);
1719
+ return createMemo(prev => {
1720
+ const inFallback = store.inFallback(),
1721
+ {
1722
+ showContent = true,
1723
+ showFallback = true
1724
+ } = show ? show() : {};
1725
+ if ((!inFallback || p && p !== "$$f") && showContent) {
1726
+ store.resolved = true;
1727
+ dispose && dispose();
1728
+ dispose = ctx = p = undefined;
1729
+ resumeEffects(store.effects);
1730
+ return rendered();
1731
+ }
1732
+ if (!showFallback) return;
1733
+ if (dispose) return prev;
1734
+ return createRoot(disposer => {
1735
+ dispose = disposer;
1736
+ if (ctx) {
1737
+ setHydrateContext({
1738
+ id: ctx.id + "F",
1739
+ count: 0
1740
+ });
1741
+ ctx = undefined;
1742
+ }
1743
+ return props.fallback;
1744
+ }, owner);
1745
+ });
1746
+ });
1747
+ }
1748
+ });
1749
+ }
1750
+
1751
+ const DEV = undefined;
1752
+
1753
+ export { $DEVCOMP, $PROXY, $TRACK, DEV, ErrorBoundary, For, Index, Match, Show, Suspense, SuspenseList, Switch, batch, cancelCallback, catchError, children, createComponent, createComputed, createContext, createDeferred, createEffect, createMemo, createReaction, createRenderEffect, createResource, createRoot, createSelector, createSignal, createUniqueId, enableExternalSource, enableHydration, enableScheduling, equalFn, from, getListener, getOwner, indexArray, lazy, mapArray, mergeProps, observable, on, onCleanup, onError, onMount, requestCallback, resetErrorBoundaries, runWithOwner, sharedConfig, splitProps, startTransition, untrack, useContext, useTransition };