@alivault/pico 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/.output/nitro.json +17 -0
  2. package/.output/public/apple-touch-icon.png +0 -0
  3. package/.output/public/assets/abap-smLpETzL.js +1 -0
  4. package/.output/public/assets/actionscript-3-o-aRvjY5.js +1 -0
  5. package/.output/public/assets/ada-D5RRX1i4.js +1 -0
  6. package/.output/public/assets/andromeeda-N4z3YzmR.js +1 -0
  7. package/.output/public/assets/angular-html-BZNntD0J.js +1 -0
  8. package/.output/public/assets/angular-ts-SQQMYL2C.js +1 -0
  9. package/.output/public/assets/apache-DttKlSqg.js +1 -0
  10. package/.output/public/assets/apex-DL7j-a2n.js +1 -0
  11. package/.output/public/assets/apl-D5V6uPDr.js +1 -0
  12. package/.output/public/assets/applescript-DCbL_2FX.js +1 -0
  13. package/.output/public/assets/ara-DqheWJCe.js +1 -0
  14. package/.output/public/assets/asciidoc-BH2sf2K4.js +1 -0
  15. package/.output/public/assets/asm-rfjOMz3U.js +1 -0
  16. package/.output/public/assets/astro-DeXKSaFP.js +1 -0
  17. package/.output/public/assets/aurora-x-CND-FqEb.js +1 -0
  18. package/.output/public/assets/awk-CMV5n9Z7.js +1 -0
  19. package/.output/public/assets/ayu-dark-on7xzq_B.js +1 -0
  20. package/.output/public/assets/ayu-light-DnGeGGc2.js +1 -0
  21. package/.output/public/assets/ayu-mirage-DG3LlYC_.js +1 -0
  22. package/.output/public/assets/ballerina-BjMqJjlr.js +1 -0
  23. package/.output/public/assets/bat-BaVbo_qw.js +1 -0
  24. package/.output/public/assets/beancount-DBt5Mbc_.js +1 -0
  25. package/.output/public/assets/berry-Cyjuxiss.js +1 -0
  26. package/.output/public/assets/bibtex-BV_0nsPq.js +1 -0
  27. package/.output/public/assets/bicep-C2gEwu4J.js +1 -0
  28. package/.output/public/assets/bird2-BRyaEJd0.js +1 -0
  29. package/.output/public/assets/blade-Bu5re0Vg.js +1 -0
  30. package/.output/public/assets/bsl-B1qbqNES.js +1 -0
  31. package/.output/public/assets/c-Nc9zJT78.js +1 -0
  32. package/.output/public/assets/c3-DTTbp5N2.js +1 -0
  33. package/.output/public/assets/cadence-CPz83cmI.js +1 -0
  34. package/.output/public/assets/cairo-BDj8wWhy.js +1 -0
  35. package/.output/public/assets/catppuccin-frappe-Dr22sraq.js +1 -0
  36. package/.output/public/assets/catppuccin-latte-C57EeX8c.js +1 -0
  37. package/.output/public/assets/catppuccin-macchiato-CpheI4uD.js +1 -0
  38. package/.output/public/assets/catppuccin-mocha-D8Lmdks_.js +1 -0
  39. package/.output/public/assets/clarity-CFJ2Yc3q.js +1 -0
  40. package/.output/public/assets/clojure-6R01QgJC.js +1 -0
  41. package/.output/public/assets/cmake-D5rSbMir.js +1 -0
  42. package/.output/public/assets/cobol-nvZDS9LT.js +1 -0
  43. package/.output/public/assets/codeowners-_3A-ClkN.js +1 -0
  44. package/.output/public/assets/codeql-DlIhJTR7.js +1 -0
  45. package/.output/public/assets/coffee-BKLOTq4e.js +1 -0
  46. package/.output/public/assets/common-lisp-BvQzz173.js +1 -0
  47. package/.output/public/assets/coq-DTNXReIC.js +1 -0
  48. package/.output/public/assets/cpp-D6g1DVNt.js +1 -0
  49. package/.output/public/assets/crystal-DfoZI57w.js +1 -0
  50. package/.output/public/assets/csharp-BDKQY1K9.js +1 -0
  51. package/.output/public/assets/css-DRmnABqB.js +1 -0
  52. package/.output/public/assets/csv-DNUpVBxl.js +1 -0
  53. package/.output/public/assets/cue-DDdBc2s3.js +1 -0
  54. package/.output/public/assets/cypher-CguaznO2.js +1 -0
  55. package/.output/public/assets/d-CHcoyjv3.js +1 -0
  56. package/.output/public/assets/dark-plus-CqeW_0kH.js +1 -0
  57. package/.output/public/assets/dart-RM3aRphk.js +1 -0
  58. package/.output/public/assets/dax-nbnY1d79.js +1 -0
  59. package/.output/public/assets/desktop-BD76cvxT.js +1 -0
  60. package/.output/public/assets/diff-CdkWtnkL.js +1 -0
  61. package/.output/public/assets/docker-ZyPHc6zB.js +1 -0
  62. package/.output/public/assets/dotenv-BdJZEwA6.js +1 -0
  63. package/.output/public/assets/dracula-CtqCPLGa.js +1 -0
  64. package/.output/public/assets/dracula-soft-DmBpwRAy.js +1 -0
  65. package/.output/public/assets/dream-maker-BJL4qlg3.js +1 -0
  66. package/.output/public/assets/edge-DwocGnOF.js +1 -0
  67. package/.output/public/assets/elixir-Dtbfds1r.js +1 -0
  68. package/.output/public/assets/elm-CpPtm471.js +1 -0
  69. package/.output/public/assets/emacs-lisp-_LyYa2Ky.js +1 -0
  70. package/.output/public/assets/erb--z3IM9Cb.js +1 -0
  71. package/.output/public/assets/erlang-Bc4hQuqa.js +1 -0
  72. package/.output/public/assets/everforest-dark-CrbyKk4n.js +1 -0
  73. package/.output/public/assets/everforest-light-DRbSh8Tm.js +1 -0
  74. package/.output/public/assets/fennel-CC2BkRsS.js +1 -0
  75. package/.output/public/assets/fish-D2ZCzqcE.js +1 -0
  76. package/.output/public/assets/fluent-DKAm3m7q.js +1 -0
  77. package/.output/public/assets/fortran-fixed-form-B02FOYI-.js +1 -0
  78. package/.output/public/assets/fortran-free-form-BPTf0lbT.js +1 -0
  79. package/.output/public/assets/fsharp-DhdR18vN.js +1 -0
  80. package/.output/public/assets/gdresource-DgnrMPIx.js +1 -0
  81. package/.output/public/assets/gdscript-CsadCSaZ.js +1 -0
  82. package/.output/public/assets/gdshader-PfnN_8tR.js +1 -0
  83. package/.output/public/assets/genie-Bj-orPAV.js +1 -0
  84. package/.output/public/assets/gherkin-COVWpJ-Q.js +1 -0
  85. package/.output/public/assets/git-commit-DGJi7qBD.js +1 -0
  86. package/.output/public/assets/git-rebase-Ce47xoa6.js +1 -0
  87. package/.output/public/assets/github-dark-default-DX3IG_X0.js +1 -0
  88. package/.output/public/assets/github-dark-dimmed-CH6p_7ez.js +1 -0
  89. package/.output/public/assets/github-dark-high-contrast-Bg2sSao5.js +1 -0
  90. package/.output/public/assets/github-dark-ipGuFGYC.js +1 -0
  91. package/.output/public/assets/github-light-BxjqOQl0.js +1 -0
  92. package/.output/public/assets/github-light-default-DwpDd1IQ.js +1 -0
  93. package/.output/public/assets/github-light-high-contrast-C0QeixPf.js +1 -0
  94. package/.output/public/assets/gleam-BF2NigGj.js +1 -0
  95. package/.output/public/assets/glimmer-js-C0BuzxQC.js +1 -0
  96. package/.output/public/assets/glimmer-ts-irOZ-cAQ.js +1 -0
  97. package/.output/public/assets/glsl-JAhLUe0P.js +1 -0
  98. package/.output/public/assets/gn-CMIt9roj.js +1 -0
  99. package/.output/public/assets/gnuplot-DgWlRTEj.js +1 -0
  100. package/.output/public/assets/go-DLnOLj8q.js +1 -0
  101. package/.output/public/assets/graphql-D2ba3BkR.js +1 -0
  102. package/.output/public/assets/groovy-B9qLWIkE.js +1 -0
  103. package/.output/public/assets/gruvbox-dark-hard-BIMX9ePb.js +1 -0
  104. package/.output/public/assets/gruvbox-dark-medium-DxuwyVzM.js +1 -0
  105. package/.output/public/assets/gruvbox-dark-soft-ba2fjht0.js +1 -0
  106. package/.output/public/assets/gruvbox-light-hard-DAJK2PqC.js +1 -0
  107. package/.output/public/assets/gruvbox-light-medium-WRifDAJD.js +1 -0
  108. package/.output/public/assets/gruvbox-light-soft-B0dBOoVB.js +1 -0
  109. package/.output/public/assets/hack-CgzUpY8l.js +1 -0
  110. package/.output/public/assets/haml-C-oIZcDo.js +1 -0
  111. package/.output/public/assets/handlebars-CbP-Mhzf.js +1 -0
  112. package/.output/public/assets/haskell-BaGpmm_c.js +1 -0
  113. package/.output/public/assets/haxe-DfXTCEOz.js +1 -0
  114. package/.output/public/assets/hcl-CbCtpSbi.js +1 -0
  115. package/.output/public/assets/hjson-_4-w-pHU.js +1 -0
  116. package/.output/public/assets/hlsl-DpuYn7pp.js +1 -0
  117. package/.output/public/assets/horizon-C5RtD1fY.js +1 -0
  118. package/.output/public/assets/horizon-bright-pEOice34.js +1 -0
  119. package/.output/public/assets/houston-A0zg9vNP.js +1 -0
  120. package/.output/public/assets/html-ddqpqPg0.js +1 -0
  121. package/.output/public/assets/html-derivative-DWGxf_At.js +1 -0
  122. package/.output/public/assets/http-Bg1nG1nG.js +1 -0
  123. package/.output/public/assets/hurl-zm47Pi1n.js +1 -0
  124. package/.output/public/assets/hxml-adC65L_J.js +1 -0
  125. package/.output/public/assets/hy-t9zDXBje.js +1 -0
  126. package/.output/public/assets/imba-Bxu-TDfw.js +1 -0
  127. package/.output/public/assets/index-CthXqlK7.js +53 -0
  128. package/.output/public/assets/ini-D-v34c8N.js +1 -0
  129. package/.output/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  130. package/.output/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  131. package/.output/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  132. package/.output/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  133. package/.output/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  134. package/.output/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  135. package/.output/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  136. package/.output/public/assets/java-DVLnIrqC.js +1 -0
  137. package/.output/public/assets/javascript-Cop1kpy_.js +1 -0
  138. package/.output/public/assets/jinja-Bnj4awH5.js +1 -0
  139. package/.output/public/assets/jison-CuCNs9Q3.js +1 -0
  140. package/.output/public/assets/json-CTw4n7kn.js +1 -0
  141. package/.output/public/assets/json5-D0XL1D5m.js +1 -0
  142. package/.output/public/assets/jsonc-BBgf3TX3.js +1 -0
  143. package/.output/public/assets/jsonl-KrKLbtB7.js +1 -0
  144. package/.output/public/assets/jsonnet-B2ZwWMOt.js +1 -0
  145. package/.output/public/assets/jssm-ByRpI9-B.js +1 -0
  146. package/.output/public/assets/jsx-0oMUGqZj.js +1 -0
  147. package/.output/public/assets/julia-DNYHzXlE.js +1 -0
  148. package/.output/public/assets/just-BlWkkmf2.js +1 -0
  149. package/.output/public/assets/kanagawa-dragon-CtPmcCMp.js +1 -0
  150. package/.output/public/assets/kanagawa-lotus-DpOXEGCa.js +1 -0
  151. package/.output/public/assets/kanagawa-wave-CLVCyc-n.js +1 -0
  152. package/.output/public/assets/kdl-6FPPEH4H.js +1 -0
  153. package/.output/public/assets/kotlin-D4L3Nd2D.js +1 -0
  154. package/.output/public/assets/kusto-D-mmc07O.js +1 -0
  155. package/.output/public/assets/laserwave-7fEj4XGb.js +1 -0
  156. package/.output/public/assets/latex-DqPzjMIt.js +1 -0
  157. package/.output/public/assets/lean-BMVMuP2E.js +1 -0
  158. package/.output/public/assets/less-C95PyOu0.js +1 -0
  159. package/.output/public/assets/light-plus-DHI2dh3p.js +1 -0
  160. package/.output/public/assets/liquid-BURJK16h.js +1 -0
  161. package/.output/public/assets/llvm-Dy3qORTl.js +1 -0
  162. package/.output/public/assets/log-BQop7fzg.js +1 -0
  163. package/.output/public/assets/logo-DKtnYmrp.js +1 -0
  164. package/.output/public/assets/lua-31hdJClp.js +1 -0
  165. package/.output/public/assets/luau-Dha4KG0q.js +1 -0
  166. package/.output/public/assets/make-DfmS6buu.js +1 -0
  167. package/.output/public/assets/markdown-BaI9LyM4.js +1 -0
  168. package/.output/public/assets/marko-C2ZcdSLh.js +1 -0
  169. package/.output/public/assets/material-theme-Dm6ETY8i.js +1 -0
  170. package/.output/public/assets/material-theme-darker-BeyjmM5Z.js +1 -0
  171. package/.output/public/assets/material-theme-lighter-CCOYYzKL.js +1 -0
  172. package/.output/public/assets/material-theme-ocean-CUtPiiX3.js +1 -0
  173. package/.output/public/assets/material-theme-palenight-2L4zMwIM.js +1 -0
  174. package/.output/public/assets/matlab-BT79Cq_j.js +1 -0
  175. package/.output/public/assets/mdc-N1ii9pk5.js +1 -0
  176. package/.output/public/assets/mdx-CxGBwLNt.js +1 -0
  177. package/.output/public/assets/mermaid-DLf3axBN.js +1 -0
  178. package/.output/public/assets/min-dark-B8TUPGHg.js +1 -0
  179. package/.output/public/assets/min-light-BDOoBxcA.js +1 -0
  180. package/.output/public/assets/mipsasm-DXuU_0cI.js +1 -0
  181. package/.output/public/assets/mojo-1Omp2pIo.js +1 -0
  182. package/.output/public/assets/monokai-E_VBmXGZ.js +1 -0
  183. package/.output/public/assets/moonbit-DZzq699o.js +1 -0
  184. package/.output/public/assets/move-DxDAOJVd.js +1 -0
  185. package/.output/public/assets/narrat-CxDcPPb9.js +1 -0
  186. package/.output/public/assets/nextflow-JEyYUlIq.js +1 -0
  187. package/.output/public/assets/nextflow-groovy-wvmJO4hi.js +1 -0
  188. package/.output/public/assets/nginx-BuomO0W8.js +1 -0
  189. package/.output/public/assets/night-owl-DefhalNX.js +1 -0
  190. package/.output/public/assets/night-owl-light-byb3AbEn.js +1 -0
  191. package/.output/public/assets/nim-hKoEPsYL.js +1 -0
  192. package/.output/public/assets/nix-DsFTDHWT.js +1 -0
  193. package/.output/public/assets/nord-D5rQzHT-.js +1 -0
  194. package/.output/public/assets/nushell-BQ_rO0AM.js +1 -0
  195. package/.output/public/assets/objective-c-BMq6JT_m.js +1 -0
  196. package/.output/public/assets/objective-cpp-DRwojuGv.js +1 -0
  197. package/.output/public/assets/ocaml-e4_gKO6E.js +1 -0
  198. package/.output/public/assets/odin-mdTPwYOg.js +1 -0
  199. package/.output/public/assets/one-dark-pro-DxXww9jg.js +1 -0
  200. package/.output/public/assets/one-light-D9c03w7t.js +1 -0
  201. package/.output/public/assets/openscad-D2aTdNfr.js +1 -0
  202. package/.output/public/assets/pascal-D4n_G8vj.js +1 -0
  203. package/.output/public/assets/perl-CAGVW6Ra.js +1 -0
  204. package/.output/public/assets/php-BycclmzS.js +1 -0
  205. package/.output/public/assets/pierre-dark-CizZ1Z5z.js +1 -0
  206. package/.output/public/assets/pierre-light-CHMWfAMe.js +1 -0
  207. package/.output/public/assets/pkl-DcjhAp0L.js +1 -0
  208. package/.output/public/assets/plastic-uOsw7z1x.js +1 -0
  209. package/.output/public/assets/plsql-BSy3Ag0J.js +1 -0
  210. package/.output/public/assets/po-Be96RYkA.js +1 -0
  211. package/.output/public/assets/poimandres-CyO4HORD.js +1 -0
  212. package/.output/public/assets/polar-BmhMKWum.js +1 -0
  213. package/.output/public/assets/postcss-BTQso3H9.js +1 -0
  214. package/.output/public/assets/powerquery-DVyQv3M2.js +1 -0
  215. package/.output/public/assets/powershell-BmtCGJVD.js +1 -0
  216. package/.output/public/assets/prisma-CCFA9rEj.js +1 -0
  217. package/.output/public/assets/prolog-DWGEEo78.js +1 -0
  218. package/.output/public/assets/proto-C3eop1kM.js +1 -0
  219. package/.output/public/assets/pug-4maJHz9G.js +1 -0
  220. package/.output/public/assets/puppet-C0_7Nv5A.js +1 -0
  221. package/.output/public/assets/purescript-Bv-B8yRw.js +1 -0
  222. package/.output/public/assets/python-CKg5r0C3.js +1 -0
  223. package/.output/public/assets/qml-JLIQfzyb.js +1 -0
  224. package/.output/public/assets/qmldir-Cqfb4Lox.js +1 -0
  225. package/.output/public/assets/qss-Csho9BH8.js +1 -0
  226. package/.output/public/assets/r-UcxRcvcA.js +1 -0
  227. package/.output/public/assets/racket-D8-uWeQH.js +1 -0
  228. package/.output/public/assets/raku-Cj4JSa8p.js +1 -0
  229. package/.output/public/assets/razor-P8rbooCh.js +1 -0
  230. package/.output/public/assets/red-z4H4llUY.js +1 -0
  231. package/.output/public/assets/reg-DXGFiJSl.js +1 -0
  232. package/.output/public/assets/regexp-3-A0406L.js +1 -0
  233. package/.output/public/assets/rel-CunnVTBK.js +1 -0
  234. package/.output/public/assets/riscv-C8BcOCkS.js +1 -0
  235. package/.output/public/assets/rolldown-runtime-S-ySWqyJ.js +1 -0
  236. package/.output/public/assets/ron-DiDyR9oa.js +1 -0
  237. package/.output/public/assets/rose-pine-BADquuIH.js +1 -0
  238. package/.output/public/assets/rose-pine-dawn-BLcEeBoh.js +1 -0
  239. package/.output/public/assets/rose-pine-moon-BK_tLY1Y.js +1 -0
  240. package/.output/public/assets/rosmsg-CHmL1Uyj.js +1 -0
  241. package/.output/public/assets/routes-Bp0r03R8.js +2147 -0
  242. package/.output/public/assets/rst-C6GHyL-N.js +1 -0
  243. package/.output/public/assets/ruby-Cl8PVkbY.js +1 -0
  244. package/.output/public/assets/rust-DjJFInu3.js +1 -0
  245. package/.output/public/assets/sas-CXoVwlZN.js +1 -0
  246. package/.output/public/assets/sass-D3xZ5o-v.js +1 -0
  247. package/.output/public/assets/scala-B0IRml5w.js +1 -0
  248. package/.output/public/assets/scheme-BhwcV3Av.js +1 -0
  249. package/.output/public/assets/scss-DNczJ95n.js +1 -0
  250. package/.output/public/assets/sdbl-BmWYR-pI.js +1 -0
  251. package/.output/public/assets/shaderlab-DZ3Lsiak.js +1 -0
  252. package/.output/public/assets/shellscript-DaVPunOM.js +1 -0
  253. package/.output/public/assets/shellsession-COm1V40U.js +1 -0
  254. package/.output/public/assets/slack-dark-DOnVms5P.js +1 -0
  255. package/.output/public/assets/slack-ochin-DcRTft4q.js +1 -0
  256. package/.output/public/assets/smalltalk-DVQuUMII.js +1 -0
  257. package/.output/public/assets/snazzy-light-x9CLJ1W9.js +1 -0
  258. package/.output/public/assets/solarized-dark-BB1sh-pe.js +1 -0
  259. package/.output/public/assets/solarized-light-9-RPS998.js +1 -0
  260. package/.output/public/assets/solidity-gQ4WXILB.js +1 -0
  261. package/.output/public/assets/soy-DwewhJ_3.js +1 -0
  262. package/.output/public/assets/sparql-B9c85a_o.js +1 -0
  263. package/.output/public/assets/splunk-OB48_RcD.js +1 -0
  264. package/.output/public/assets/sql-CrTmZCMa.js +1 -0
  265. package/.output/public/assets/ssh-config-DA9YMRGV.js +1 -0
  266. package/.output/public/assets/stata-Bl--TAbZ.js +1 -0
  267. package/.output/public/assets/styles-DEX5mU_p.css +2 -0
  268. package/.output/public/assets/stylus-sKwvsUaC.js +1 -0
  269. package/.output/public/assets/surrealql-BW79EE-U.js +1 -0
  270. package/.output/public/assets/svelte-ziMErdPi.js +1 -0
  271. package/.output/public/assets/swift-C72NbAtg.js +1 -0
  272. package/.output/public/assets/synthwave-84-eJ9uRN_S.js +1 -0
  273. package/.output/public/assets/system-verilog-CnWMF7Nq.js +1 -0
  274. package/.output/public/assets/systemd-DMzItW5N.js +1 -0
  275. package/.output/public/assets/talonscript-DopQCWDL.js +1 -0
  276. package/.output/public/assets/tasl-C28SYKbq.js +1 -0
  277. package/.output/public/assets/tcl-DHq7zmoF.js +1 -0
  278. package/.output/public/assets/templ-C_9I6ncv.js +1 -0
  279. package/.output/public/assets/terraform-CogS1YKX.js +1 -0
  280. package/.output/public/assets/tex-D8LVuLf5.js +1 -0
  281. package/.output/public/assets/tokyo-night-B9N7LyrF.js +1 -0
  282. package/.output/public/assets/toml-BH_iPsgK.js +1 -0
  283. package/.output/public/assets/ts-tags-DKuFCGsc.js +1 -0
  284. package/.output/public/assets/tsv-BIkdBZX1.js +1 -0
  285. package/.output/public/assets/tsx-BjkCKOtw.js +1 -0
  286. package/.output/public/assets/turtle-CqNXyJWZ.js +1 -0
  287. package/.output/public/assets/twig-Bs1kcsO6.js +1 -0
  288. package/.output/public/assets/typescript-BoHeP9q1.js +1 -0
  289. package/.output/public/assets/typespec-CQ9LYD_e.js +1 -0
  290. package/.output/public/assets/typst-T-Fsk-Sv.js +1 -0
  291. package/.output/public/assets/v-BhMEOw9x.js +1 -0
  292. package/.output/public/assets/vala-DzajMnwt.js +1 -0
  293. package/.output/public/assets/vb-7Xr8dEYW.js +1 -0
  294. package/.output/public/assets/verilog-AvXtwZir.js +1 -0
  295. package/.output/public/assets/vesper-CtgQQ2sf.js +1 -0
  296. package/.output/public/assets/vhdl-BHu0zg1P.js +1 -0
  297. package/.output/public/assets/viml-Di0QpLfC.js +1 -0
  298. package/.output/public/assets/vitesse-black-jXdfyqgD.js +1 -0
  299. package/.output/public/assets/vitesse-dark-B88PxG1r.js +1 -0
  300. package/.output/public/assets/vitesse-light-BXxZh2iV.js +1 -0
  301. package/.output/public/assets/vue-Dnf0y5RU.js +1 -0
  302. package/.output/public/assets/vue-html-CRtKS76J.js +1 -0
  303. package/.output/public/assets/vue-vine-BxjPqU7T.js +1 -0
  304. package/.output/public/assets/vyper-C3R5yXgx.js +1 -0
  305. package/.output/public/assets/wasm-CEUrWlVz.js +1 -0
  306. package/.output/public/assets/wasm-Chsuwt1A.js +1 -0
  307. package/.output/public/assets/wenyan-BonVcr2i.js +1 -0
  308. package/.output/public/assets/wgsl-D59WYmNq.js +1 -0
  309. package/.output/public/assets/wikitext-ariTI2Wk.js +1 -0
  310. package/.output/public/assets/wit-EA4fa3Dt.js +1 -0
  311. package/.output/public/assets/wolfram-DDp7LhyU.js +1 -0
  312. package/.output/public/assets/xml-eU7M3iZJ.js +1 -0
  313. package/.output/public/assets/xsl-DSqe4nTO.js +1 -0
  314. package/.output/public/assets/yaml-BTD1XHJG.js +1 -0
  315. package/.output/public/assets/zenscript-4WaROUyc.js +1 -0
  316. package/.output/public/assets/zig-CJoLJGwV.js +1 -0
  317. package/.output/public/favicon.png +0 -0
  318. package/.output/public/favicon.svg +7 -0
  319. package/.output/public/manifest.json +28 -0
  320. package/.output/public/robots.txt +3 -0
  321. package/.output/public/screenshots/pico-workspace-alt.png +0 -0
  322. package/.output/public/screenshots/pico-workspace.png +0 -0
  323. package/.output/public/sounds/session-done.mp3 +0 -0
  324. package/.output/server/__23tanstack-start-plugin-adapters-y_fshQDY.mjs +5 -0
  325. package/.output/server/_chunks/ssr-renderer.mjs +15 -0
  326. package/.output/server/_libs/@base-ui/react+[...].mjs +14407 -0
  327. package/.output/server/_libs/@dnd-kit/core+[...].mjs +2748 -0
  328. package/.output/server/_libs/@pierre/diffs+[...].mjs +19074 -0
  329. package/.output/server/_libs/@pierre/trees+[...].mjs +9236 -0
  330. package/.output/server/_libs/@radix-ui/react-dialog+[...].mjs +1789 -0
  331. package/.output/server/_libs/@radix-ui/react-primitive+[...].mjs +136 -0
  332. package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +196 -0
  333. package/.output/server/_libs/@tanstack/hotkeys+[...].mjs +1607 -0
  334. package/.output/server/_libs/@tanstack/react-router+[...].mjs +13950 -0
  335. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +90 -0
  336. package/.output/server/_libs/bail.mjs +13 -0
  337. package/.output/server/_libs/character-entities.mjs +2135 -0
  338. package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
  339. package/.output/server/_libs/cmdk.mjs +473 -0
  340. package/.output/server/_libs/decode-named-character-reference+[...].mjs +19 -0
  341. package/.output/server/_libs/devlop.mjs +5 -0
  342. package/.output/server/_libs/diff.mjs +732 -0
  343. package/.output/server/_libs/dnd-kit__accessibility.mjs +46 -0
  344. package/.output/server/_libs/dnd-kit__sortable.mjs +400 -0
  345. package/.output/server/_libs/escape-string-regexp.mjs +7 -0
  346. package/.output/server/_libs/estree-util-is-identifier-name.mjs +20 -0
  347. package/.output/server/_libs/extend.mjs +75 -0
  348. package/.output/server/_libs/h3+rou3+srvx.mjs +1210 -0
  349. package/.output/server/_libs/hast-util-to-jsx-runtime+[...].mjs +1244 -0
  350. package/.output/server/_libs/hookable.mjs +41 -0
  351. package/.output/server/_libs/html-url-attributes.mjs +44 -0
  352. package/.output/server/_libs/is-plain-obj.mjs +8 -0
  353. package/.output/server/_libs/longest-streak.mjs +29 -0
  354. package/.output/server/_libs/lucide-react.mjs +632 -0
  355. package/.output/server/_libs/markdown-table.mjs +289 -0
  356. package/.output/server/_libs/mdast-util-find-and-replace+[...].mjs +636 -0
  357. package/.output/server/_libs/mdast-util-from-markdown+[...].mjs +8409 -0
  358. package/.output/server/_libs/mdast-util-gfm+[...].mjs +2346 -0
  359. package/.output/server/_libs/mdast-util-to-hast+[...].mjs +1772 -0
  360. package/.output/server/_libs/micromark-extension-gfm+[...].mjs +2234 -0
  361. package/.output/server/_libs/next-themes.mjs +124 -0
  362. package/.output/server/_libs/pierre__theme.mjs +10 -0
  363. package/.output/server/_libs/radix-ui__primitive.mjs +9 -0
  364. package/.output/server/_libs/radix-ui__react-compose-refs.mjs +30 -0
  365. package/.output/server/_libs/radix-ui__react-context.mjs +88 -0
  366. package/.output/server/_libs/react-markdown+[...].mjs +2316 -0
  367. package/.output/server/_libs/remark-gfm.mjs +34 -0
  368. package/.output/server/_libs/shiki.mjs +16 -0
  369. package/.output/server/_libs/shikijs__langs.mjs +1355 -0
  370. package/.output/server/_libs/shikijs__themes.mjs +262 -0
  371. package/.output/server/_libs/sonner.mjs +908 -0
  372. package/.output/server/_libs/sugar-high.mjs +1036 -0
  373. package/.output/server/_libs/tailwind-merge.mjs +1962 -0
  374. package/.output/server/_libs/tanstack__history.mjs +342 -0
  375. package/.output/server/_libs/tanstack__pacer.mjs +1111 -0
  376. package/.output/server/_libs/tanstack__query-core.mjs +2202 -0
  377. package/.output/server/_libs/tanstack__react-hotkeys.mjs +152 -0
  378. package/.output/server/_libs/tanstack__react-query.mjs +180 -0
  379. package/.output/server/_libs/tanstack__react-store.mjs +39 -0
  380. package/.output/server/_libs/tanstack__router-core.mjs +6 -0
  381. package/.output/server/_libs/tanstack__store.mjs +28 -0
  382. package/.output/server/_libs/ufo.mjs +64 -0
  383. package/.output/server/_libs/unctx.mjs +82 -0
  384. package/.output/server/_libs/ungap__structured-clone.mjs +197 -0
  385. package/.output/server/_libs/vaul.mjs +1250 -0
  386. package/.output/server/_libs/zod.mjs +3341 -0
  387. package/.output/server/_runtime.mjs +35 -0
  388. package/.output/server/_ssr/router-Bz70uQ0p.mjs +7231 -0
  389. package/.output/server/_ssr/routes-C7oV8l68.mjs +21622 -0
  390. package/.output/server/_ssr/routes-DGvt0TQ-.mjs +1275 -0
  391. package/.output/server/_ssr/ssr.mjs +5176 -0
  392. package/.output/server/_ssr/start-C9AjCGlr.mjs +4 -0
  393. package/.output/server/_tanstack-start-manifest_v-D0yEuwRY.mjs +65 -0
  394. package/.output/server/index.mjs +2563 -0
  395. package/.output/server/node_modules/tslib/modules/index.js +70 -0
  396. package/.output/server/node_modules/tslib/modules/package.json +3 -0
  397. package/.output/server/node_modules/tslib/package.json +47 -0
  398. package/.output/server/node_modules/tslib/tslib.js +484 -0
  399. package/.output/server/package.json +9 -0
  400. package/LICENSE +8 -0
  401. package/README.md +111 -0
  402. package/bin/pico.mjs +206 -0
  403. package/package.json +105 -0
  404. package/public/screenshots/pico-workspace-alt.png +0 -0
  405. package/public/screenshots/pico-workspace.png +0 -0
  406. package/scripts/patch-react-jsx-dev-runtime.mjs +93 -0
@@ -0,0 +1,2202 @@
1
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/subscribable.js
2
+ var Subscribable = class {
3
+ constructor() {
4
+ this.listeners = /* @__PURE__ */ new Set();
5
+ this.subscribe = this.subscribe.bind(this);
6
+ }
7
+ subscribe(listener) {
8
+ this.listeners.add(listener);
9
+ this.onSubscribe();
10
+ return () => {
11
+ this.listeners.delete(listener);
12
+ this.onUnsubscribe();
13
+ };
14
+ }
15
+ hasListeners() {
16
+ return this.listeners.size > 0;
17
+ }
18
+ onSubscribe() {}
19
+ onUnsubscribe() {}
20
+ };
21
+ //#endregion
22
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/focusManager.js
23
+ var FocusManager = class extends Subscribable {
24
+ #focused;
25
+ #cleanup;
26
+ #setup;
27
+ constructor() {
28
+ super();
29
+ this.#setup = (onFocus) => {
30
+ if (typeof window !== "undefined" && window.addEventListener) {
31
+ const listener = () => onFocus();
32
+ window.addEventListener("visibilitychange", listener, false);
33
+ return () => {
34
+ window.removeEventListener("visibilitychange", listener);
35
+ };
36
+ }
37
+ };
38
+ }
39
+ onSubscribe() {
40
+ if (!this.#cleanup) this.setEventListener(this.#setup);
41
+ }
42
+ onUnsubscribe() {
43
+ if (!this.hasListeners()) {
44
+ this.#cleanup?.();
45
+ this.#cleanup = void 0;
46
+ }
47
+ }
48
+ setEventListener(setup) {
49
+ this.#setup = setup;
50
+ this.#cleanup?.();
51
+ this.#cleanup = setup((focused) => {
52
+ if (typeof focused === "boolean") this.setFocused(focused);
53
+ else this.onFocus();
54
+ });
55
+ }
56
+ setFocused(focused) {
57
+ if (this.#focused !== focused) {
58
+ this.#focused = focused;
59
+ this.onFocus();
60
+ }
61
+ }
62
+ onFocus() {
63
+ const isFocused = this.isFocused();
64
+ this.listeners.forEach((listener) => {
65
+ listener(isFocused);
66
+ });
67
+ }
68
+ isFocused() {
69
+ if (typeof this.#focused === "boolean") return this.#focused;
70
+ return globalThis.document?.visibilityState !== "hidden";
71
+ }
72
+ };
73
+ var focusManager = new FocusManager();
74
+ //#endregion
75
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/timeoutManager.js
76
+ var defaultTimeoutProvider = {
77
+ setTimeout: (callback, delay) => setTimeout(callback, delay),
78
+ clearTimeout: (timeoutId) => clearTimeout(timeoutId),
79
+ setInterval: (callback, delay) => setInterval(callback, delay),
80
+ clearInterval: (intervalId) => clearInterval(intervalId)
81
+ };
82
+ var TimeoutManager = class {
83
+ #provider = defaultTimeoutProvider;
84
+ #providerCalled = false;
85
+ setTimeoutProvider(provider) {
86
+ this.#provider = provider;
87
+ }
88
+ setTimeout(callback, delay) {
89
+ return this.#provider.setTimeout(callback, delay);
90
+ }
91
+ clearTimeout(timeoutId) {
92
+ this.#provider.clearTimeout(timeoutId);
93
+ }
94
+ setInterval(callback, delay) {
95
+ return this.#provider.setInterval(callback, delay);
96
+ }
97
+ clearInterval(intervalId) {
98
+ this.#provider.clearInterval(intervalId);
99
+ }
100
+ };
101
+ var timeoutManager = new TimeoutManager();
102
+ function systemSetTimeoutZero(callback) {
103
+ setTimeout(callback, 0);
104
+ }
105
+ //#endregion
106
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/utils.js
107
+ var isServer = typeof window === "undefined" || "Deno" in globalThis;
108
+ function noop() {}
109
+ function functionalUpdate(updater, input) {
110
+ return typeof updater === "function" ? updater(input) : updater;
111
+ }
112
+ function isValidTimeout(value) {
113
+ return typeof value === "number" && value >= 0 && value !== Infinity;
114
+ }
115
+ function timeUntilStale(updatedAt, staleTime) {
116
+ return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0);
117
+ }
118
+ function resolveStaleTime(staleTime, query) {
119
+ return typeof staleTime === "function" ? staleTime(query) : staleTime;
120
+ }
121
+ function resolveEnabled(enabled, query) {
122
+ return typeof enabled === "function" ? enabled(query) : enabled;
123
+ }
124
+ function matchQuery(filters, query) {
125
+ const { type = "all", exact, fetchStatus, predicate, queryKey, stale } = filters;
126
+ if (queryKey) {
127
+ if (exact) {
128
+ if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) return false;
129
+ } else if (!partialMatchKey(query.queryKey, queryKey)) return false;
130
+ }
131
+ if (type !== "all") {
132
+ const isActive = query.isActive();
133
+ if (type === "active" && !isActive) return false;
134
+ if (type === "inactive" && isActive) return false;
135
+ }
136
+ if (typeof stale === "boolean" && query.isStale() !== stale) return false;
137
+ if (fetchStatus && fetchStatus !== query.state.fetchStatus) return false;
138
+ if (predicate && !predicate(query)) return false;
139
+ return true;
140
+ }
141
+ function matchMutation(filters, mutation) {
142
+ const { exact, status, predicate, mutationKey } = filters;
143
+ if (mutationKey) {
144
+ if (!mutation.options.mutationKey) return false;
145
+ if (exact) {
146
+ if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) return false;
147
+ } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) return false;
148
+ }
149
+ if (status && mutation.state.status !== status) return false;
150
+ if (predicate && !predicate(mutation)) return false;
151
+ return true;
152
+ }
153
+ function hashQueryKeyByOptions(queryKey, options) {
154
+ return (options?.queryKeyHashFn || hashKey)(queryKey);
155
+ }
156
+ function hashKey(queryKey) {
157
+ return JSON.stringify(queryKey, (_, val) => isPlainObject(val) ? Object.keys(val).sort().reduce((result, key) => {
158
+ result[key] = val[key];
159
+ return result;
160
+ }, {}) : val);
161
+ }
162
+ function partialMatchKey(a, b) {
163
+ if (a === b) return true;
164
+ if (typeof a !== typeof b) return false;
165
+ if (a && b && typeof a === "object" && typeof b === "object") return Object.keys(b).every((key) => partialMatchKey(a[key], b[key]));
166
+ return false;
167
+ }
168
+ var hasOwn = Object.prototype.hasOwnProperty;
169
+ function replaceEqualDeep(a, b, depth = 0) {
170
+ if (a === b) return a;
171
+ if (depth > 500) return b;
172
+ const array = isPlainArray(a) && isPlainArray(b);
173
+ if (!array && !(isPlainObject(a) && isPlainObject(b))) return b;
174
+ const aSize = (array ? a : Object.keys(a)).length;
175
+ const bItems = array ? b : Object.keys(b);
176
+ const bSize = bItems.length;
177
+ const copy = array ? new Array(bSize) : {};
178
+ let equalItems = 0;
179
+ for (let i = 0; i < bSize; i++) {
180
+ const key = array ? i : bItems[i];
181
+ const aItem = a[key];
182
+ const bItem = b[key];
183
+ if (aItem === bItem) {
184
+ copy[key] = aItem;
185
+ if (array ? i < aSize : hasOwn.call(a, key)) equalItems++;
186
+ continue;
187
+ }
188
+ if (aItem === null || bItem === null || typeof aItem !== "object" || typeof bItem !== "object") {
189
+ copy[key] = bItem;
190
+ continue;
191
+ }
192
+ const v = replaceEqualDeep(aItem, bItem, depth + 1);
193
+ copy[key] = v;
194
+ if (v === aItem) equalItems++;
195
+ }
196
+ return aSize === bSize && equalItems === aSize ? a : copy;
197
+ }
198
+ function shallowEqualObjects(a, b) {
199
+ if (!b || Object.keys(a).length !== Object.keys(b).length) return false;
200
+ for (const key in a) if (a[key] !== b[key]) return false;
201
+ return true;
202
+ }
203
+ function isPlainArray(value) {
204
+ return Array.isArray(value) && value.length === Object.keys(value).length;
205
+ }
206
+ function isPlainObject(o) {
207
+ if (!hasObjectPrototype(o)) return false;
208
+ const ctor = o.constructor;
209
+ if (ctor === void 0) return true;
210
+ const prot = ctor.prototype;
211
+ if (!hasObjectPrototype(prot)) return false;
212
+ if (!prot.hasOwnProperty("isPrototypeOf")) return false;
213
+ if (Object.getPrototypeOf(o) !== Object.prototype) return false;
214
+ return true;
215
+ }
216
+ function hasObjectPrototype(o) {
217
+ return Object.prototype.toString.call(o) === "[object Object]";
218
+ }
219
+ function sleep(timeout) {
220
+ return new Promise((resolve) => {
221
+ timeoutManager.setTimeout(resolve, timeout);
222
+ });
223
+ }
224
+ function replaceData(prevData, data, options) {
225
+ if (typeof options.structuralSharing === "function") return options.structuralSharing(prevData, data);
226
+ else if (options.structuralSharing !== false) return replaceEqualDeep(prevData, data);
227
+ return data;
228
+ }
229
+ function addToEnd(items, item, max = 0) {
230
+ const newItems = [...items, item];
231
+ return max && newItems.length > max ? newItems.slice(1) : newItems;
232
+ }
233
+ function addToStart(items, item, max = 0) {
234
+ const newItems = [item, ...items];
235
+ return max && newItems.length > max ? newItems.slice(0, -1) : newItems;
236
+ }
237
+ var skipToken = /* @__PURE__ */ Symbol();
238
+ function ensureQueryFn(options, fetchOptions) {
239
+ if (!options.queryFn && fetchOptions?.initialPromise) return () => fetchOptions.initialPromise;
240
+ if (!options.queryFn || options.queryFn === skipToken) return () => Promise.reject(/* @__PURE__ */ new Error(`Missing queryFn: '${options.queryHash}'`));
241
+ return options.queryFn;
242
+ }
243
+ function shouldThrowError(throwOnError, params) {
244
+ if (typeof throwOnError === "function") return throwOnError(...params);
245
+ return !!throwOnError;
246
+ }
247
+ function addConsumeAwareSignal(object, getSignal, onCancelled) {
248
+ let consumed = false;
249
+ let signal;
250
+ Object.defineProperty(object, "signal", {
251
+ enumerable: true,
252
+ get: () => {
253
+ signal ??= getSignal();
254
+ if (consumed) return signal;
255
+ consumed = true;
256
+ if (signal.aborted) onCancelled();
257
+ else signal.addEventListener("abort", onCancelled, { once: true });
258
+ return signal;
259
+ }
260
+ });
261
+ return object;
262
+ }
263
+ //#endregion
264
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/environmentManager.js
265
+ var environmentManager = /* @__PURE__ */ (() => {
266
+ let isServerFn = () => isServer;
267
+ return {
268
+ isServer() {
269
+ return isServerFn();
270
+ },
271
+ setIsServer(isServerValue) {
272
+ isServerFn = isServerValue;
273
+ }
274
+ };
275
+ })();
276
+ //#endregion
277
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/thenable.js
278
+ function pendingThenable() {
279
+ let resolve;
280
+ let reject;
281
+ const thenable = new Promise((_resolve, _reject) => {
282
+ resolve = _resolve;
283
+ reject = _reject;
284
+ });
285
+ thenable.status = "pending";
286
+ thenable.catch(() => {});
287
+ function finalize(data) {
288
+ Object.assign(thenable, data);
289
+ delete thenable.resolve;
290
+ delete thenable.reject;
291
+ }
292
+ thenable.resolve = (value) => {
293
+ finalize({
294
+ status: "fulfilled",
295
+ value
296
+ });
297
+ resolve(value);
298
+ };
299
+ thenable.reject = (reason) => {
300
+ finalize({
301
+ status: "rejected",
302
+ reason
303
+ });
304
+ reject(reason);
305
+ };
306
+ return thenable;
307
+ }
308
+ function tryResolveSync(promise) {
309
+ let data;
310
+ promise.then((result) => {
311
+ data = result;
312
+ return result;
313
+ }, noop)?.catch(noop);
314
+ if (data !== void 0) return { data };
315
+ }
316
+ //#endregion
317
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/hydration.js
318
+ function defaultTransformerFn(data) {
319
+ return data;
320
+ }
321
+ function dehydrateMutation(mutation) {
322
+ return {
323
+ mutationKey: mutation.options.mutationKey,
324
+ state: mutation.state,
325
+ ...mutation.options.scope && { scope: mutation.options.scope },
326
+ ...mutation.meta && { meta: mutation.meta }
327
+ };
328
+ }
329
+ function dehydrateQuery(query, serializeData, shouldRedactErrors) {
330
+ const dehydratePromise = () => {
331
+ const promise = query.promise?.then(serializeData).catch((error) => {
332
+ if (!shouldRedactErrors(error)) return Promise.reject(error);
333
+ return Promise.reject(/* @__PURE__ */ new Error("redacted"));
334
+ });
335
+ promise?.catch(noop);
336
+ return promise;
337
+ };
338
+ return {
339
+ dehydratedAt: Date.now(),
340
+ state: {
341
+ ...query.state,
342
+ ...query.state.data !== void 0 && { data: serializeData(query.state.data) }
343
+ },
344
+ queryKey: query.queryKey,
345
+ queryHash: query.queryHash,
346
+ ...query.state.status === "pending" && { promise: dehydratePromise() },
347
+ ...query.meta && { meta: query.meta }
348
+ };
349
+ }
350
+ function defaultShouldDehydrateMutation(mutation) {
351
+ return mutation.state.isPaused;
352
+ }
353
+ function defaultShouldDehydrateQuery(query) {
354
+ return query.state.status === "success";
355
+ }
356
+ function defaultShouldRedactErrors(_) {
357
+ return true;
358
+ }
359
+ function dehydrate(client, options = {}) {
360
+ const filterMutation = options.shouldDehydrateMutation ?? client.getDefaultOptions().dehydrate?.shouldDehydrateMutation ?? defaultShouldDehydrateMutation;
361
+ const mutations = client.getMutationCache().getAll().flatMap((mutation) => filterMutation(mutation) ? [dehydrateMutation(mutation)] : []);
362
+ const filterQuery = options.shouldDehydrateQuery ?? client.getDefaultOptions().dehydrate?.shouldDehydrateQuery ?? defaultShouldDehydrateQuery;
363
+ const shouldRedactErrors = options.shouldRedactErrors ?? client.getDefaultOptions().dehydrate?.shouldRedactErrors ?? defaultShouldRedactErrors;
364
+ const serializeData = options.serializeData ?? client.getDefaultOptions().dehydrate?.serializeData ?? defaultTransformerFn;
365
+ return {
366
+ mutations,
367
+ queries: client.getQueryCache().getAll().flatMap((query) => filterQuery(query) ? [dehydrateQuery(query, serializeData, shouldRedactErrors)] : [])
368
+ };
369
+ }
370
+ function hydrate(client, dehydratedState, options) {
371
+ if (typeof dehydratedState !== "object" || dehydratedState === null) return;
372
+ const mutationCache = client.getMutationCache();
373
+ const queryCache = client.getQueryCache();
374
+ const deserializeData = options?.defaultOptions?.deserializeData ?? client.getDefaultOptions().hydrate?.deserializeData ?? defaultTransformerFn;
375
+ const mutations = dehydratedState.mutations || [];
376
+ const queries = dehydratedState.queries || [];
377
+ mutations.forEach(({ state, ...mutationOptions }) => {
378
+ mutationCache.build(client, {
379
+ ...client.getDefaultOptions().hydrate?.mutations,
380
+ ...options?.defaultOptions?.mutations,
381
+ ...mutationOptions
382
+ }, state);
383
+ });
384
+ queries.forEach(({ queryKey, state, queryHash, meta, promise, dehydratedAt }) => {
385
+ const syncData = promise ? tryResolveSync(promise) : void 0;
386
+ const rawData = state.data === void 0 ? syncData?.data : state.data;
387
+ const data = rawData === void 0 ? rawData : deserializeData(rawData);
388
+ let query = queryCache.get(queryHash);
389
+ const existingQueryIsPending = query?.state.status === "pending";
390
+ const existingQueryIsFetching = query?.state.fetchStatus === "fetching";
391
+ if (query) {
392
+ const hasNewerSyncData = syncData && dehydratedAt !== void 0 && dehydratedAt > query.state.dataUpdatedAt;
393
+ if (state.dataUpdatedAt > query.state.dataUpdatedAt || hasNewerSyncData) {
394
+ const { fetchStatus: _ignored, ...serializedState } = state;
395
+ query.setState({
396
+ ...serializedState,
397
+ data
398
+ });
399
+ }
400
+ } else query = queryCache.build(client, {
401
+ ...client.getDefaultOptions().hydrate?.queries,
402
+ ...options?.defaultOptions?.queries,
403
+ queryKey,
404
+ queryHash,
405
+ meta
406
+ }, {
407
+ ...state,
408
+ data,
409
+ fetchStatus: "idle",
410
+ status: data !== void 0 ? "success" : state.status
411
+ });
412
+ if (promise && !existingQueryIsPending && !existingQueryIsFetching && (dehydratedAt === void 0 || dehydratedAt > query.state.dataUpdatedAt)) query.fetch(void 0, { initialPromise: Promise.resolve(promise).then(deserializeData) }).catch(noop);
413
+ });
414
+ }
415
+ //#endregion
416
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/notifyManager.js
417
+ var defaultScheduler = systemSetTimeoutZero;
418
+ function createNotifyManager() {
419
+ let queue = [];
420
+ let transactions = 0;
421
+ let notifyFn = (callback) => {
422
+ callback();
423
+ };
424
+ let batchNotifyFn = (callback) => {
425
+ callback();
426
+ };
427
+ let scheduleFn = defaultScheduler;
428
+ const schedule = (callback) => {
429
+ if (transactions) queue.push(callback);
430
+ else scheduleFn(() => {
431
+ notifyFn(callback);
432
+ });
433
+ };
434
+ const flush = () => {
435
+ const originalQueue = queue;
436
+ queue = [];
437
+ if (originalQueue.length) scheduleFn(() => {
438
+ batchNotifyFn(() => {
439
+ originalQueue.forEach((callback) => {
440
+ notifyFn(callback);
441
+ });
442
+ });
443
+ });
444
+ };
445
+ return {
446
+ batch: (callback) => {
447
+ let result;
448
+ transactions++;
449
+ try {
450
+ result = callback();
451
+ } finally {
452
+ transactions--;
453
+ if (!transactions) flush();
454
+ }
455
+ return result;
456
+ },
457
+ batchCalls: (callback) => {
458
+ return (...args) => {
459
+ schedule(() => {
460
+ callback(...args);
461
+ });
462
+ };
463
+ },
464
+ schedule,
465
+ setNotifyFunction: (fn) => {
466
+ notifyFn = fn;
467
+ },
468
+ setBatchNotifyFunction: (fn) => {
469
+ batchNotifyFn = fn;
470
+ },
471
+ setScheduler: (fn) => {
472
+ scheduleFn = fn;
473
+ }
474
+ };
475
+ }
476
+ var notifyManager = createNotifyManager();
477
+ //#endregion
478
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/onlineManager.js
479
+ var OnlineManager = class extends Subscribable {
480
+ #online = true;
481
+ #cleanup;
482
+ #setup;
483
+ constructor() {
484
+ super();
485
+ this.#setup = (onOnline) => {
486
+ if (typeof window !== "undefined" && window.addEventListener) {
487
+ const onlineListener = () => onOnline(true);
488
+ const offlineListener = () => onOnline(false);
489
+ window.addEventListener("online", onlineListener, false);
490
+ window.addEventListener("offline", offlineListener, false);
491
+ return () => {
492
+ window.removeEventListener("online", onlineListener);
493
+ window.removeEventListener("offline", offlineListener);
494
+ };
495
+ }
496
+ };
497
+ }
498
+ onSubscribe() {
499
+ if (!this.#cleanup) this.setEventListener(this.#setup);
500
+ }
501
+ onUnsubscribe() {
502
+ if (!this.hasListeners()) {
503
+ this.#cleanup?.();
504
+ this.#cleanup = void 0;
505
+ }
506
+ }
507
+ setEventListener(setup) {
508
+ this.#setup = setup;
509
+ this.#cleanup?.();
510
+ this.#cleanup = setup(this.setOnline.bind(this));
511
+ }
512
+ setOnline(online) {
513
+ if (this.#online !== online) {
514
+ this.#online = online;
515
+ this.listeners.forEach((listener) => {
516
+ listener(online);
517
+ });
518
+ }
519
+ }
520
+ isOnline() {
521
+ return this.#online;
522
+ }
523
+ };
524
+ var onlineManager = new OnlineManager();
525
+ //#endregion
526
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/retryer.js
527
+ function defaultRetryDelay(failureCount) {
528
+ return Math.min(1e3 * 2 ** failureCount, 3e4);
529
+ }
530
+ function canFetch(networkMode) {
531
+ return (networkMode ?? "online") === "online" ? onlineManager.isOnline() : true;
532
+ }
533
+ var CancelledError = class extends Error {
534
+ constructor(options) {
535
+ super("CancelledError");
536
+ this.revert = options?.revert;
537
+ this.silent = options?.silent;
538
+ }
539
+ };
540
+ function createRetryer(config) {
541
+ let isRetryCancelled = false;
542
+ let failureCount = 0;
543
+ let continueFn;
544
+ const thenable = pendingThenable();
545
+ const isResolved = () => thenable.status !== "pending";
546
+ const cancel = (cancelOptions) => {
547
+ if (!isResolved()) {
548
+ const error = new CancelledError(cancelOptions);
549
+ reject(error);
550
+ config.onCancel?.(error);
551
+ }
552
+ };
553
+ const cancelRetry = () => {
554
+ isRetryCancelled = true;
555
+ };
556
+ const continueRetry = () => {
557
+ isRetryCancelled = false;
558
+ };
559
+ const canContinue = () => focusManager.isFocused() && (config.networkMode === "always" || onlineManager.isOnline()) && config.canRun();
560
+ const canStart = () => canFetch(config.networkMode) && config.canRun();
561
+ const resolve = (value) => {
562
+ if (!isResolved()) {
563
+ continueFn?.();
564
+ thenable.resolve(value);
565
+ }
566
+ };
567
+ const reject = (value) => {
568
+ if (!isResolved()) {
569
+ continueFn?.();
570
+ thenable.reject(value);
571
+ }
572
+ };
573
+ const pause = () => {
574
+ return new Promise((continueResolve) => {
575
+ continueFn = (value) => {
576
+ if (isResolved() || canContinue()) continueResolve(value);
577
+ };
578
+ config.onPause?.();
579
+ }).then(() => {
580
+ continueFn = void 0;
581
+ if (!isResolved()) config.onContinue?.();
582
+ });
583
+ };
584
+ const run = () => {
585
+ if (isResolved()) return;
586
+ let promiseOrValue;
587
+ const initialPromise = failureCount === 0 ? config.initialPromise : void 0;
588
+ try {
589
+ promiseOrValue = initialPromise ?? config.fn();
590
+ } catch (error) {
591
+ promiseOrValue = Promise.reject(error);
592
+ }
593
+ Promise.resolve(promiseOrValue).then(resolve).catch((error) => {
594
+ if (isResolved()) return;
595
+ const retry = config.retry ?? (environmentManager.isServer() ? 0 : 3);
596
+ const retryDelay = config.retryDelay ?? defaultRetryDelay;
597
+ const delay = typeof retryDelay === "function" ? retryDelay(failureCount, error) : retryDelay;
598
+ const shouldRetry = retry === true || typeof retry === "number" && failureCount < retry || typeof retry === "function" && retry(failureCount, error);
599
+ if (isRetryCancelled || !shouldRetry) {
600
+ reject(error);
601
+ return;
602
+ }
603
+ failureCount++;
604
+ config.onFail?.(failureCount, error);
605
+ sleep(delay).then(() => {
606
+ return canContinue() ? void 0 : pause();
607
+ }).then(() => {
608
+ if (isRetryCancelled) reject(error);
609
+ else run();
610
+ });
611
+ });
612
+ };
613
+ return {
614
+ promise: thenable,
615
+ status: () => thenable.status,
616
+ cancel,
617
+ continue: () => {
618
+ continueFn?.();
619
+ return thenable;
620
+ },
621
+ cancelRetry,
622
+ continueRetry,
623
+ canStart,
624
+ start: () => {
625
+ if (canStart()) run();
626
+ else pause().then(run);
627
+ return thenable;
628
+ }
629
+ };
630
+ }
631
+ //#endregion
632
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/removable.js
633
+ var Removable = class {
634
+ #gcTimeout;
635
+ destroy() {
636
+ this.clearGcTimeout();
637
+ }
638
+ scheduleGc() {
639
+ this.clearGcTimeout();
640
+ if (isValidTimeout(this.gcTime)) this.#gcTimeout = timeoutManager.setTimeout(() => {
641
+ this.optionalRemove();
642
+ }, this.gcTime);
643
+ }
644
+ updateGcTime(newGcTime) {
645
+ this.gcTime = Math.max(this.gcTime || 0, newGcTime ?? (environmentManager.isServer() ? Infinity : 300 * 1e3));
646
+ }
647
+ clearGcTimeout() {
648
+ if (this.#gcTimeout !== void 0) {
649
+ timeoutManager.clearTimeout(this.#gcTimeout);
650
+ this.#gcTimeout = void 0;
651
+ }
652
+ }
653
+ };
654
+ //#endregion
655
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/query.js
656
+ var Query = class extends Removable {
657
+ #initialState;
658
+ #revertState;
659
+ #cache;
660
+ #client;
661
+ #retryer;
662
+ #defaultOptions;
663
+ #abortSignalConsumed;
664
+ constructor(config) {
665
+ super();
666
+ this.#abortSignalConsumed = false;
667
+ this.#defaultOptions = config.defaultOptions;
668
+ this.setOptions(config.options);
669
+ this.observers = [];
670
+ this.#client = config.client;
671
+ this.#cache = this.#client.getQueryCache();
672
+ this.queryKey = config.queryKey;
673
+ this.queryHash = config.queryHash;
674
+ this.#initialState = getDefaultState$1(this.options);
675
+ this.state = config.state ?? this.#initialState;
676
+ this.scheduleGc();
677
+ }
678
+ get meta() {
679
+ return this.options.meta;
680
+ }
681
+ get promise() {
682
+ return this.#retryer?.promise;
683
+ }
684
+ setOptions(options) {
685
+ this.options = {
686
+ ...this.#defaultOptions,
687
+ ...options
688
+ };
689
+ this.updateGcTime(this.options.gcTime);
690
+ if (this.state && this.state.data === void 0) {
691
+ const defaultState = getDefaultState$1(this.options);
692
+ if (defaultState.data !== void 0) {
693
+ this.setState(successState(defaultState.data, defaultState.dataUpdatedAt));
694
+ this.#initialState = defaultState;
695
+ }
696
+ }
697
+ }
698
+ optionalRemove() {
699
+ if (!this.observers.length && this.state.fetchStatus === "idle") this.#cache.remove(this);
700
+ }
701
+ setData(newData, options) {
702
+ const data = replaceData(this.state.data, newData, this.options);
703
+ this.#dispatch({
704
+ data,
705
+ type: "success",
706
+ dataUpdatedAt: options?.updatedAt,
707
+ manual: options?.manual
708
+ });
709
+ return data;
710
+ }
711
+ setState(state, setStateOptions) {
712
+ this.#dispatch({
713
+ type: "setState",
714
+ state,
715
+ setStateOptions
716
+ });
717
+ }
718
+ cancel(options) {
719
+ const promise = this.#retryer?.promise;
720
+ this.#retryer?.cancel(options);
721
+ return promise ? promise.then(noop).catch(noop) : Promise.resolve();
722
+ }
723
+ destroy() {
724
+ super.destroy();
725
+ this.cancel({ silent: true });
726
+ }
727
+ get resetState() {
728
+ return this.#initialState;
729
+ }
730
+ reset() {
731
+ this.destroy();
732
+ this.setState(this.resetState);
733
+ }
734
+ isActive() {
735
+ return this.observers.some((observer) => resolveEnabled(observer.options.enabled, this) !== false);
736
+ }
737
+ isDisabled() {
738
+ if (this.getObserversCount() > 0) return !this.isActive();
739
+ return this.options.queryFn === skipToken || !this.isFetched();
740
+ }
741
+ isFetched() {
742
+ return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
743
+ }
744
+ isStatic() {
745
+ if (this.getObserversCount() > 0) return this.observers.some((observer) => resolveStaleTime(observer.options.staleTime, this) === "static");
746
+ return false;
747
+ }
748
+ isStale() {
749
+ if (this.getObserversCount() > 0) return this.observers.some((observer) => observer.getCurrentResult().isStale);
750
+ return this.state.data === void 0 || this.state.isInvalidated;
751
+ }
752
+ isStaleByTime(staleTime = 0) {
753
+ if (this.state.data === void 0) return true;
754
+ if (staleTime === "static") return false;
755
+ if (this.state.isInvalidated) return true;
756
+ return !timeUntilStale(this.state.dataUpdatedAt, staleTime);
757
+ }
758
+ onFocus() {
759
+ this.observers.find((x) => x.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: false });
760
+ this.#retryer?.continue();
761
+ }
762
+ onOnline() {
763
+ this.observers.find((x) => x.shouldFetchOnReconnect())?.refetch({ cancelRefetch: false });
764
+ this.#retryer?.continue();
765
+ }
766
+ addObserver(observer) {
767
+ if (!this.observers.includes(observer)) {
768
+ this.observers.push(observer);
769
+ this.clearGcTimeout();
770
+ this.#cache.notify({
771
+ type: "observerAdded",
772
+ query: this,
773
+ observer
774
+ });
775
+ }
776
+ }
777
+ removeObserver(observer) {
778
+ if (this.observers.includes(observer)) {
779
+ this.observers = this.observers.filter((x) => x !== observer);
780
+ if (!this.observers.length) {
781
+ if (this.#retryer) if (this.#abortSignalConsumed || this.#isInitialPausedFetch()) this.#retryer.cancel({ revert: true });
782
+ else this.#retryer.cancelRetry();
783
+ this.scheduleGc();
784
+ }
785
+ this.#cache.notify({
786
+ type: "observerRemoved",
787
+ query: this,
788
+ observer
789
+ });
790
+ }
791
+ }
792
+ getObserversCount() {
793
+ return this.observers.length;
794
+ }
795
+ #isInitialPausedFetch() {
796
+ return this.state.fetchStatus === "paused" && this.state.status === "pending";
797
+ }
798
+ invalidate() {
799
+ if (!this.state.isInvalidated) this.#dispatch({ type: "invalidate" });
800
+ }
801
+ async fetch(options, fetchOptions) {
802
+ if (this.state.fetchStatus !== "idle" && this.#retryer?.status() !== "rejected") {
803
+ if (this.state.data !== void 0 && fetchOptions?.cancelRefetch) this.cancel({ silent: true });
804
+ else if (this.#retryer) {
805
+ this.#retryer.continueRetry();
806
+ return this.#retryer.promise;
807
+ }
808
+ }
809
+ if (options) this.setOptions(options);
810
+ if (!this.options.queryFn) {
811
+ const observer = this.observers.find((x) => x.options.queryFn);
812
+ if (observer) this.setOptions(observer.options);
813
+ }
814
+ const abortController = new AbortController();
815
+ const addSignalProperty = (object) => {
816
+ Object.defineProperty(object, "signal", {
817
+ enumerable: true,
818
+ get: () => {
819
+ this.#abortSignalConsumed = true;
820
+ return abortController.signal;
821
+ }
822
+ });
823
+ };
824
+ const fetchFn = () => {
825
+ const queryFn = ensureQueryFn(this.options, fetchOptions);
826
+ const createQueryFnContext = () => {
827
+ const queryFnContext2 = {
828
+ client: this.#client,
829
+ queryKey: this.queryKey,
830
+ meta: this.meta
831
+ };
832
+ addSignalProperty(queryFnContext2);
833
+ return queryFnContext2;
834
+ };
835
+ const queryFnContext = createQueryFnContext();
836
+ this.#abortSignalConsumed = false;
837
+ if (this.options.persister) return this.options.persister(queryFn, queryFnContext, this);
838
+ return queryFn(queryFnContext);
839
+ };
840
+ const createFetchContext = () => {
841
+ const context2 = {
842
+ fetchOptions,
843
+ options: this.options,
844
+ queryKey: this.queryKey,
845
+ client: this.#client,
846
+ state: this.state,
847
+ fetchFn
848
+ };
849
+ addSignalProperty(context2);
850
+ return context2;
851
+ };
852
+ const context = createFetchContext();
853
+ this.options.behavior?.onFetch(context, this);
854
+ this.#revertState = this.state;
855
+ if (this.state.fetchStatus === "idle" || this.state.fetchMeta !== context.fetchOptions?.meta) this.#dispatch({
856
+ type: "fetch",
857
+ meta: context.fetchOptions?.meta
858
+ });
859
+ this.#retryer = createRetryer({
860
+ initialPromise: fetchOptions?.initialPromise,
861
+ fn: context.fetchFn,
862
+ onCancel: (error) => {
863
+ if (error instanceof CancelledError && error.revert) this.setState({
864
+ ...this.#revertState,
865
+ fetchStatus: "idle"
866
+ });
867
+ abortController.abort();
868
+ },
869
+ onFail: (failureCount, error) => {
870
+ this.#dispatch({
871
+ type: "failed",
872
+ failureCount,
873
+ error
874
+ });
875
+ },
876
+ onPause: () => {
877
+ this.#dispatch({ type: "pause" });
878
+ },
879
+ onContinue: () => {
880
+ this.#dispatch({ type: "continue" });
881
+ },
882
+ retry: context.options.retry,
883
+ retryDelay: context.options.retryDelay,
884
+ networkMode: context.options.networkMode,
885
+ canRun: () => true
886
+ });
887
+ try {
888
+ const data = await this.#retryer.start();
889
+ if (data === void 0) throw new Error(`${this.queryHash} data is undefined`);
890
+ this.setData(data);
891
+ this.#cache.config.onSuccess?.(data, this);
892
+ this.#cache.config.onSettled?.(data, this.state.error, this);
893
+ return data;
894
+ } catch (error) {
895
+ if (error instanceof CancelledError) {
896
+ if (error.silent) return this.#retryer.promise;
897
+ else if (error.revert) {
898
+ if (this.state.data === void 0) throw error;
899
+ return this.state.data;
900
+ }
901
+ }
902
+ this.#dispatch({
903
+ type: "error",
904
+ error
905
+ });
906
+ this.#cache.config.onError?.(error, this);
907
+ this.#cache.config.onSettled?.(this.state.data, error, this);
908
+ throw error;
909
+ } finally {
910
+ this.scheduleGc();
911
+ }
912
+ }
913
+ #dispatch(action) {
914
+ const reducer = (state) => {
915
+ switch (action.type) {
916
+ case "failed": return {
917
+ ...state,
918
+ fetchFailureCount: action.failureCount,
919
+ fetchFailureReason: action.error
920
+ };
921
+ case "pause": return {
922
+ ...state,
923
+ fetchStatus: "paused"
924
+ };
925
+ case "continue": return {
926
+ ...state,
927
+ fetchStatus: "fetching"
928
+ };
929
+ case "fetch": return {
930
+ ...state,
931
+ ...fetchState(state.data, this.options),
932
+ fetchMeta: action.meta ?? null
933
+ };
934
+ case "success":
935
+ const newState = {
936
+ ...state,
937
+ ...successState(action.data, action.dataUpdatedAt),
938
+ dataUpdateCount: state.dataUpdateCount + 1,
939
+ ...!action.manual && {
940
+ fetchStatus: "idle",
941
+ fetchFailureCount: 0,
942
+ fetchFailureReason: null
943
+ }
944
+ };
945
+ this.#revertState = action.manual ? newState : void 0;
946
+ return newState;
947
+ case "error":
948
+ const error = action.error;
949
+ return {
950
+ ...state,
951
+ error,
952
+ errorUpdateCount: state.errorUpdateCount + 1,
953
+ errorUpdatedAt: Date.now(),
954
+ fetchFailureCount: state.fetchFailureCount + 1,
955
+ fetchFailureReason: error,
956
+ fetchStatus: "idle",
957
+ status: "error",
958
+ isInvalidated: true
959
+ };
960
+ case "invalidate": return {
961
+ ...state,
962
+ isInvalidated: true
963
+ };
964
+ case "setState": return {
965
+ ...state,
966
+ ...action.state
967
+ };
968
+ }
969
+ };
970
+ this.state = reducer(this.state);
971
+ notifyManager.batch(() => {
972
+ this.observers.forEach((observer) => {
973
+ observer.onQueryUpdate();
974
+ });
975
+ this.#cache.notify({
976
+ query: this,
977
+ type: "updated",
978
+ action
979
+ });
980
+ });
981
+ }
982
+ };
983
+ function fetchState(data, options) {
984
+ return {
985
+ fetchFailureCount: 0,
986
+ fetchFailureReason: null,
987
+ fetchStatus: canFetch(options.networkMode) ? "fetching" : "paused",
988
+ ...data === void 0 && {
989
+ error: null,
990
+ status: "pending"
991
+ }
992
+ };
993
+ }
994
+ function successState(data, dataUpdatedAt) {
995
+ return {
996
+ data,
997
+ dataUpdatedAt: dataUpdatedAt ?? Date.now(),
998
+ error: null,
999
+ isInvalidated: false,
1000
+ status: "success"
1001
+ };
1002
+ }
1003
+ function getDefaultState$1(options) {
1004
+ const data = typeof options.initialData === "function" ? options.initialData() : options.initialData;
1005
+ const hasData = data !== void 0;
1006
+ const initialDataUpdatedAt = hasData ? typeof options.initialDataUpdatedAt === "function" ? options.initialDataUpdatedAt() : options.initialDataUpdatedAt : 0;
1007
+ return {
1008
+ data,
1009
+ dataUpdateCount: 0,
1010
+ dataUpdatedAt: hasData ? initialDataUpdatedAt ?? Date.now() : 0,
1011
+ error: null,
1012
+ errorUpdateCount: 0,
1013
+ errorUpdatedAt: 0,
1014
+ fetchFailureCount: 0,
1015
+ fetchFailureReason: null,
1016
+ fetchMeta: null,
1017
+ isInvalidated: false,
1018
+ status: hasData ? "success" : "pending",
1019
+ fetchStatus: "idle"
1020
+ };
1021
+ }
1022
+ //#endregion
1023
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/queryObserver.js
1024
+ var QueryObserver = class extends Subscribable {
1025
+ constructor(client, options) {
1026
+ super();
1027
+ this.options = options;
1028
+ this.#client = client;
1029
+ this.#selectError = null;
1030
+ this.#currentThenable = pendingThenable();
1031
+ this.bindMethods();
1032
+ this.setOptions(options);
1033
+ }
1034
+ #client;
1035
+ #currentQuery = void 0;
1036
+ #currentQueryInitialState = void 0;
1037
+ #currentResult = void 0;
1038
+ #currentResultState;
1039
+ #currentResultOptions;
1040
+ #currentThenable;
1041
+ #selectError;
1042
+ #selectFn;
1043
+ #selectResult;
1044
+ #lastQueryWithDefinedData;
1045
+ #staleTimeoutId;
1046
+ #refetchIntervalId;
1047
+ #currentRefetchInterval;
1048
+ #trackedProps = /* @__PURE__ */ new Set();
1049
+ bindMethods() {
1050
+ this.refetch = this.refetch.bind(this);
1051
+ }
1052
+ onSubscribe() {
1053
+ if (this.listeners.size === 1) {
1054
+ this.#currentQuery.addObserver(this);
1055
+ if (shouldFetchOnMount(this.#currentQuery, this.options)) this.#executeFetch();
1056
+ else this.updateResult();
1057
+ this.#updateTimers();
1058
+ }
1059
+ }
1060
+ onUnsubscribe() {
1061
+ if (!this.hasListeners()) this.destroy();
1062
+ }
1063
+ shouldFetchOnReconnect() {
1064
+ return shouldFetchOn(this.#currentQuery, this.options, this.options.refetchOnReconnect);
1065
+ }
1066
+ shouldFetchOnWindowFocus() {
1067
+ return shouldFetchOn(this.#currentQuery, this.options, this.options.refetchOnWindowFocus);
1068
+ }
1069
+ destroy() {
1070
+ this.listeners = /* @__PURE__ */ new Set();
1071
+ this.#clearStaleTimeout();
1072
+ this.#clearRefetchInterval();
1073
+ this.#currentQuery.removeObserver(this);
1074
+ }
1075
+ setOptions(options) {
1076
+ const prevOptions = this.options;
1077
+ const prevQuery = this.#currentQuery;
1078
+ this.options = this.#client.defaultQueryOptions(options);
1079
+ if (this.options.enabled !== void 0 && typeof this.options.enabled !== "boolean" && typeof this.options.enabled !== "function" && typeof resolveEnabled(this.options.enabled, this.#currentQuery) !== "boolean") throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");
1080
+ this.#updateQuery();
1081
+ this.#currentQuery.setOptions(this.options);
1082
+ if (prevOptions._defaulted && !shallowEqualObjects(this.options, prevOptions)) this.#client.getQueryCache().notify({
1083
+ type: "observerOptionsUpdated",
1084
+ query: this.#currentQuery,
1085
+ observer: this
1086
+ });
1087
+ const mounted = this.hasListeners();
1088
+ if (mounted && shouldFetchOptionally(this.#currentQuery, prevQuery, this.options, prevOptions)) this.#executeFetch();
1089
+ this.updateResult();
1090
+ if (mounted && (this.#currentQuery !== prevQuery || resolveEnabled(this.options.enabled, this.#currentQuery) !== resolveEnabled(prevOptions.enabled, this.#currentQuery) || resolveStaleTime(this.options.staleTime, this.#currentQuery) !== resolveStaleTime(prevOptions.staleTime, this.#currentQuery))) this.#updateStaleTimeout();
1091
+ const nextRefetchInterval = this.#computeRefetchInterval();
1092
+ if (mounted && (this.#currentQuery !== prevQuery || resolveEnabled(this.options.enabled, this.#currentQuery) !== resolveEnabled(prevOptions.enabled, this.#currentQuery) || nextRefetchInterval !== this.#currentRefetchInterval)) this.#updateRefetchInterval(nextRefetchInterval);
1093
+ }
1094
+ getOptimisticResult(options) {
1095
+ const query = this.#client.getQueryCache().build(this.#client, options);
1096
+ const result = this.createResult(query, options);
1097
+ if (shouldAssignObserverCurrentProperties(this, result)) {
1098
+ this.#currentResult = result;
1099
+ this.#currentResultOptions = this.options;
1100
+ this.#currentResultState = this.#currentQuery.state;
1101
+ }
1102
+ return result;
1103
+ }
1104
+ getCurrentResult() {
1105
+ return this.#currentResult;
1106
+ }
1107
+ trackResult(result, onPropTracked) {
1108
+ return new Proxy(result, { get: (target, key) => {
1109
+ this.trackProp(key);
1110
+ onPropTracked?.(key);
1111
+ if (key === "promise") {
1112
+ this.trackProp("data");
1113
+ if (!this.options.experimental_prefetchInRender && this.#currentThenable.status === "pending") this.#currentThenable.reject(/* @__PURE__ */ new Error("experimental_prefetchInRender feature flag is not enabled"));
1114
+ }
1115
+ return Reflect.get(target, key);
1116
+ } });
1117
+ }
1118
+ trackProp(key) {
1119
+ this.#trackedProps.add(key);
1120
+ }
1121
+ getCurrentQuery() {
1122
+ return this.#currentQuery;
1123
+ }
1124
+ refetch({ ...options } = {}) {
1125
+ return this.fetch({ ...options });
1126
+ }
1127
+ fetchOptimistic(options) {
1128
+ const defaultedOptions = this.#client.defaultQueryOptions(options);
1129
+ const query = this.#client.getQueryCache().build(this.#client, defaultedOptions);
1130
+ return query.fetch().then(() => this.createResult(query, defaultedOptions));
1131
+ }
1132
+ fetch(fetchOptions) {
1133
+ return this.#executeFetch({
1134
+ ...fetchOptions,
1135
+ cancelRefetch: fetchOptions.cancelRefetch ?? true
1136
+ }).then(() => {
1137
+ this.updateResult();
1138
+ return this.#currentResult;
1139
+ });
1140
+ }
1141
+ #executeFetch(fetchOptions) {
1142
+ this.#updateQuery();
1143
+ let promise = this.#currentQuery.fetch(this.options, fetchOptions);
1144
+ if (!fetchOptions?.throwOnError) promise = promise.catch(noop);
1145
+ return promise;
1146
+ }
1147
+ #updateStaleTimeout() {
1148
+ this.#clearStaleTimeout();
1149
+ const staleTime = resolveStaleTime(this.options.staleTime, this.#currentQuery);
1150
+ if (environmentManager.isServer() || this.#currentResult.isStale || !isValidTimeout(staleTime)) return;
1151
+ const timeout = timeUntilStale(this.#currentResult.dataUpdatedAt, staleTime) + 1;
1152
+ this.#staleTimeoutId = timeoutManager.setTimeout(() => {
1153
+ if (!this.#currentResult.isStale) this.updateResult();
1154
+ }, timeout);
1155
+ }
1156
+ #computeRefetchInterval() {
1157
+ return (typeof this.options.refetchInterval === "function" ? this.options.refetchInterval(this.#currentQuery) : this.options.refetchInterval) ?? false;
1158
+ }
1159
+ #updateRefetchInterval(nextInterval) {
1160
+ this.#clearRefetchInterval();
1161
+ this.#currentRefetchInterval = nextInterval;
1162
+ if (environmentManager.isServer() || resolveEnabled(this.options.enabled, this.#currentQuery) === false || !isValidTimeout(this.#currentRefetchInterval) || this.#currentRefetchInterval === 0) return;
1163
+ this.#refetchIntervalId = timeoutManager.setInterval(() => {
1164
+ if (this.options.refetchIntervalInBackground || focusManager.isFocused()) this.#executeFetch();
1165
+ }, this.#currentRefetchInterval);
1166
+ }
1167
+ #updateTimers() {
1168
+ this.#updateStaleTimeout();
1169
+ this.#updateRefetchInterval(this.#computeRefetchInterval());
1170
+ }
1171
+ #clearStaleTimeout() {
1172
+ if (this.#staleTimeoutId !== void 0) {
1173
+ timeoutManager.clearTimeout(this.#staleTimeoutId);
1174
+ this.#staleTimeoutId = void 0;
1175
+ }
1176
+ }
1177
+ #clearRefetchInterval() {
1178
+ if (this.#refetchIntervalId !== void 0) {
1179
+ timeoutManager.clearInterval(this.#refetchIntervalId);
1180
+ this.#refetchIntervalId = void 0;
1181
+ }
1182
+ }
1183
+ createResult(query, options) {
1184
+ const prevQuery = this.#currentQuery;
1185
+ const prevOptions = this.options;
1186
+ const prevResult = this.#currentResult;
1187
+ const prevResultState = this.#currentResultState;
1188
+ const prevResultOptions = this.#currentResultOptions;
1189
+ const queryInitialState = query !== prevQuery ? query.state : this.#currentQueryInitialState;
1190
+ const { state } = query;
1191
+ let newState = { ...state };
1192
+ let isPlaceholderData = false;
1193
+ let data;
1194
+ if (options._optimisticResults) {
1195
+ const mounted = this.hasListeners();
1196
+ const fetchOnMount = !mounted && shouldFetchOnMount(query, options);
1197
+ const fetchOptionally = mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions);
1198
+ if (fetchOnMount || fetchOptionally) newState = {
1199
+ ...newState,
1200
+ ...fetchState(state.data, query.options)
1201
+ };
1202
+ if (options._optimisticResults === "isRestoring") newState.fetchStatus = "idle";
1203
+ }
1204
+ let { error, errorUpdatedAt, status } = newState;
1205
+ data = newState.data;
1206
+ let skipSelect = false;
1207
+ if (options.placeholderData !== void 0 && data === void 0 && status === "pending") {
1208
+ let placeholderData;
1209
+ if (prevResult?.isPlaceholderData && options.placeholderData === prevResultOptions?.placeholderData) {
1210
+ placeholderData = prevResult.data;
1211
+ skipSelect = true;
1212
+ } else placeholderData = typeof options.placeholderData === "function" ? options.placeholderData(this.#lastQueryWithDefinedData?.state.data, this.#lastQueryWithDefinedData) : options.placeholderData;
1213
+ if (placeholderData !== void 0) {
1214
+ status = "success";
1215
+ data = replaceData(prevResult?.data, placeholderData, options);
1216
+ isPlaceholderData = true;
1217
+ }
1218
+ }
1219
+ if (options.select && data !== void 0 && !skipSelect) if (prevResult && data === prevResultState?.data && options.select === this.#selectFn) data = this.#selectResult;
1220
+ else try {
1221
+ this.#selectFn = options.select;
1222
+ data = options.select(data);
1223
+ data = replaceData(prevResult?.data, data, options);
1224
+ this.#selectResult = data;
1225
+ this.#selectError = null;
1226
+ } catch (selectError) {
1227
+ this.#selectError = selectError;
1228
+ }
1229
+ if (this.#selectError) {
1230
+ error = this.#selectError;
1231
+ data = this.#selectResult;
1232
+ errorUpdatedAt = Date.now();
1233
+ status = "error";
1234
+ }
1235
+ const isFetching = newState.fetchStatus === "fetching";
1236
+ const isPending = status === "pending";
1237
+ const isError = status === "error";
1238
+ const isLoading = isPending && isFetching;
1239
+ const hasData = data !== void 0;
1240
+ const nextResult = {
1241
+ status,
1242
+ fetchStatus: newState.fetchStatus,
1243
+ isPending,
1244
+ isSuccess: status === "success",
1245
+ isError,
1246
+ isInitialLoading: isLoading,
1247
+ isLoading,
1248
+ data,
1249
+ dataUpdatedAt: newState.dataUpdatedAt,
1250
+ error,
1251
+ errorUpdatedAt,
1252
+ failureCount: newState.fetchFailureCount,
1253
+ failureReason: newState.fetchFailureReason,
1254
+ errorUpdateCount: newState.errorUpdateCount,
1255
+ isFetched: query.isFetched(),
1256
+ isFetchedAfterMount: newState.dataUpdateCount > queryInitialState.dataUpdateCount || newState.errorUpdateCount > queryInitialState.errorUpdateCount,
1257
+ isFetching,
1258
+ isRefetching: isFetching && !isPending,
1259
+ isLoadingError: isError && !hasData,
1260
+ isPaused: newState.fetchStatus === "paused",
1261
+ isPlaceholderData,
1262
+ isRefetchError: isError && hasData,
1263
+ isStale: isStale(query, options),
1264
+ refetch: this.refetch,
1265
+ promise: this.#currentThenable,
1266
+ isEnabled: resolveEnabled(options.enabled, query) !== false
1267
+ };
1268
+ if (this.options.experimental_prefetchInRender) {
1269
+ const hasResultData = nextResult.data !== void 0;
1270
+ const isErrorWithoutData = nextResult.status === "error" && !hasResultData;
1271
+ const finalizeThenableIfPossible = (thenable) => {
1272
+ if (isErrorWithoutData) thenable.reject(nextResult.error);
1273
+ else if (hasResultData) thenable.resolve(nextResult.data);
1274
+ };
1275
+ const recreateThenable = () => {
1276
+ finalizeThenableIfPossible(this.#currentThenable = nextResult.promise = pendingThenable());
1277
+ };
1278
+ const prevThenable = this.#currentThenable;
1279
+ switch (prevThenable.status) {
1280
+ case "pending":
1281
+ if (query.queryHash === prevQuery.queryHash) finalizeThenableIfPossible(prevThenable);
1282
+ break;
1283
+ case "fulfilled":
1284
+ if (isErrorWithoutData || nextResult.data !== prevThenable.value) recreateThenable();
1285
+ break;
1286
+ case "rejected":
1287
+ if (!isErrorWithoutData || nextResult.error !== prevThenable.reason) recreateThenable();
1288
+ break;
1289
+ }
1290
+ }
1291
+ return nextResult;
1292
+ }
1293
+ updateResult() {
1294
+ const prevResult = this.#currentResult;
1295
+ const nextResult = this.createResult(this.#currentQuery, this.options);
1296
+ this.#currentResultState = this.#currentQuery.state;
1297
+ this.#currentResultOptions = this.options;
1298
+ if (this.#currentResultState.data !== void 0) this.#lastQueryWithDefinedData = this.#currentQuery;
1299
+ if (shallowEqualObjects(nextResult, prevResult)) return;
1300
+ this.#currentResult = nextResult;
1301
+ const shouldNotifyListeners = () => {
1302
+ if (!prevResult) return true;
1303
+ const { notifyOnChangeProps } = this.options;
1304
+ const notifyOnChangePropsValue = typeof notifyOnChangeProps === "function" ? notifyOnChangeProps() : notifyOnChangeProps;
1305
+ if (notifyOnChangePropsValue === "all" || !notifyOnChangePropsValue && !this.#trackedProps.size) return true;
1306
+ const includedProps = new Set(notifyOnChangePropsValue ?? this.#trackedProps);
1307
+ if (this.options.throwOnError) includedProps.add("error");
1308
+ return Object.keys(this.#currentResult).some((key) => {
1309
+ const typedKey = key;
1310
+ return this.#currentResult[typedKey] !== prevResult[typedKey] && includedProps.has(typedKey);
1311
+ });
1312
+ };
1313
+ this.#notify({ listeners: shouldNotifyListeners() });
1314
+ }
1315
+ #updateQuery() {
1316
+ const query = this.#client.getQueryCache().build(this.#client, this.options);
1317
+ if (query === this.#currentQuery) return;
1318
+ const prevQuery = this.#currentQuery;
1319
+ this.#currentQuery = query;
1320
+ this.#currentQueryInitialState = query.state;
1321
+ if (this.hasListeners()) {
1322
+ prevQuery?.removeObserver(this);
1323
+ query.addObserver(this);
1324
+ }
1325
+ }
1326
+ onQueryUpdate() {
1327
+ this.updateResult();
1328
+ if (this.hasListeners()) this.#updateTimers();
1329
+ }
1330
+ #notify(notifyOptions) {
1331
+ notifyManager.batch(() => {
1332
+ if (notifyOptions.listeners) this.listeners.forEach((listener) => {
1333
+ listener(this.#currentResult);
1334
+ });
1335
+ this.#client.getQueryCache().notify({
1336
+ query: this.#currentQuery,
1337
+ type: "observerResultsUpdated"
1338
+ });
1339
+ });
1340
+ }
1341
+ };
1342
+ function shouldLoadOnMount(query, options) {
1343
+ return resolveEnabled(options.enabled, query) !== false && query.state.data === void 0 && !(query.state.status === "error" && options.retryOnMount === false);
1344
+ }
1345
+ function shouldFetchOnMount(query, options) {
1346
+ return shouldLoadOnMount(query, options) || query.state.data !== void 0 && shouldFetchOn(query, options, options.refetchOnMount);
1347
+ }
1348
+ function shouldFetchOn(query, options, field) {
1349
+ if (resolveEnabled(options.enabled, query) !== false && resolveStaleTime(options.staleTime, query) !== "static") {
1350
+ const value = typeof field === "function" ? field(query) : field;
1351
+ return value === "always" || value !== false && isStale(query, options);
1352
+ }
1353
+ return false;
1354
+ }
1355
+ function shouldFetchOptionally(query, prevQuery, options, prevOptions) {
1356
+ return (query !== prevQuery || resolveEnabled(prevOptions.enabled, query) === false) && (!options.suspense || query.state.status !== "error") && isStale(query, options);
1357
+ }
1358
+ function isStale(query, options) {
1359
+ return resolveEnabled(options.enabled, query) !== false && query.isStaleByTime(resolveStaleTime(options.staleTime, query));
1360
+ }
1361
+ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
1362
+ if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) return true;
1363
+ return false;
1364
+ }
1365
+ //#endregion
1366
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
1367
+ function infiniteQueryBehavior(pages) {
1368
+ return { onFetch: (context, query) => {
1369
+ const options = context.options;
1370
+ const direction = context.fetchOptions?.meta?.fetchMore?.direction;
1371
+ const oldPages = context.state.data?.pages || [];
1372
+ const oldPageParams = context.state.data?.pageParams || [];
1373
+ let result = {
1374
+ pages: [],
1375
+ pageParams: []
1376
+ };
1377
+ let currentPage = 0;
1378
+ const fetchFn = async () => {
1379
+ let cancelled = false;
1380
+ const addSignalProperty = (object) => {
1381
+ addConsumeAwareSignal(object, () => context.signal, () => cancelled = true);
1382
+ };
1383
+ const queryFn = ensureQueryFn(context.options, context.fetchOptions);
1384
+ const fetchPage = async (data, param, previous) => {
1385
+ if (cancelled) return Promise.reject();
1386
+ if (param == null && data.pages.length) return Promise.resolve(data);
1387
+ const createQueryFnContext = () => {
1388
+ const queryFnContext2 = {
1389
+ client: context.client,
1390
+ queryKey: context.queryKey,
1391
+ pageParam: param,
1392
+ direction: previous ? "backward" : "forward",
1393
+ meta: context.options.meta
1394
+ };
1395
+ addSignalProperty(queryFnContext2);
1396
+ return queryFnContext2;
1397
+ };
1398
+ const page = await queryFn(createQueryFnContext());
1399
+ const { maxPages } = context.options;
1400
+ const addTo = previous ? addToStart : addToEnd;
1401
+ return {
1402
+ pages: addTo(data.pages, page, maxPages),
1403
+ pageParams: addTo(data.pageParams, param, maxPages)
1404
+ };
1405
+ };
1406
+ if (direction && oldPages.length) {
1407
+ const previous = direction === "backward";
1408
+ const pageParamFn = previous ? getPreviousPageParam : getNextPageParam;
1409
+ const oldData = {
1410
+ pages: oldPages,
1411
+ pageParams: oldPageParams
1412
+ };
1413
+ result = await fetchPage(oldData, pageParamFn(options, oldData), previous);
1414
+ } else {
1415
+ const remainingPages = pages ?? oldPages.length;
1416
+ do {
1417
+ const param = currentPage === 0 ? oldPageParams[0] ?? options.initialPageParam : getNextPageParam(options, result);
1418
+ if (currentPage > 0 && param == null) break;
1419
+ result = await fetchPage(result, param);
1420
+ currentPage++;
1421
+ } while (currentPage < remainingPages);
1422
+ }
1423
+ return result;
1424
+ };
1425
+ if (context.options.persister) context.fetchFn = () => {
1426
+ return context.options.persister?.(fetchFn, {
1427
+ client: context.client,
1428
+ queryKey: context.queryKey,
1429
+ meta: context.options.meta,
1430
+ signal: context.signal
1431
+ }, query);
1432
+ };
1433
+ else context.fetchFn = fetchFn;
1434
+ } };
1435
+ }
1436
+ function getNextPageParam(options, { pages, pageParams }) {
1437
+ const lastIndex = pages.length - 1;
1438
+ return pages.length > 0 ? options.getNextPageParam(pages[lastIndex], pages, pageParams[lastIndex], pageParams) : void 0;
1439
+ }
1440
+ function getPreviousPageParam(options, { pages, pageParams }) {
1441
+ return pages.length > 0 ? options.getPreviousPageParam?.(pages[0], pages, pageParams[0], pageParams) : void 0;
1442
+ }
1443
+ //#endregion
1444
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/mutation.js
1445
+ var Mutation = class extends Removable {
1446
+ #client;
1447
+ #observers;
1448
+ #mutationCache;
1449
+ #retryer;
1450
+ constructor(config) {
1451
+ super();
1452
+ this.#client = config.client;
1453
+ this.mutationId = config.mutationId;
1454
+ this.#mutationCache = config.mutationCache;
1455
+ this.#observers = [];
1456
+ this.state = config.state || getDefaultState();
1457
+ this.setOptions(config.options);
1458
+ this.scheduleGc();
1459
+ }
1460
+ setOptions(options) {
1461
+ this.options = options;
1462
+ this.updateGcTime(this.options.gcTime);
1463
+ }
1464
+ get meta() {
1465
+ return this.options.meta;
1466
+ }
1467
+ addObserver(observer) {
1468
+ if (!this.#observers.includes(observer)) {
1469
+ this.#observers.push(observer);
1470
+ this.clearGcTimeout();
1471
+ this.#mutationCache.notify({
1472
+ type: "observerAdded",
1473
+ mutation: this,
1474
+ observer
1475
+ });
1476
+ }
1477
+ }
1478
+ removeObserver(observer) {
1479
+ this.#observers = this.#observers.filter((x) => x !== observer);
1480
+ this.scheduleGc();
1481
+ this.#mutationCache.notify({
1482
+ type: "observerRemoved",
1483
+ mutation: this,
1484
+ observer
1485
+ });
1486
+ }
1487
+ optionalRemove() {
1488
+ if (!this.#observers.length) if (this.state.status === "pending") this.scheduleGc();
1489
+ else this.#mutationCache.remove(this);
1490
+ }
1491
+ continue() {
1492
+ return this.#retryer?.continue() ?? this.execute(this.state.variables);
1493
+ }
1494
+ async execute(variables) {
1495
+ const onContinue = () => {
1496
+ this.#dispatch({ type: "continue" });
1497
+ };
1498
+ const mutationFnContext = {
1499
+ client: this.#client,
1500
+ meta: this.options.meta,
1501
+ mutationKey: this.options.mutationKey
1502
+ };
1503
+ this.#retryer = createRetryer({
1504
+ fn: () => {
1505
+ if (!this.options.mutationFn) return Promise.reject(/* @__PURE__ */ new Error("No mutationFn found"));
1506
+ return this.options.mutationFn(variables, mutationFnContext);
1507
+ },
1508
+ onFail: (failureCount, error) => {
1509
+ this.#dispatch({
1510
+ type: "failed",
1511
+ failureCount,
1512
+ error
1513
+ });
1514
+ },
1515
+ onPause: () => {
1516
+ this.#dispatch({ type: "pause" });
1517
+ },
1518
+ onContinue,
1519
+ retry: this.options.retry ?? 0,
1520
+ retryDelay: this.options.retryDelay,
1521
+ networkMode: this.options.networkMode,
1522
+ canRun: () => this.#mutationCache.canRun(this)
1523
+ });
1524
+ const restored = this.state.status === "pending";
1525
+ const isPaused = !this.#retryer.canStart();
1526
+ try {
1527
+ if (restored) onContinue();
1528
+ else {
1529
+ this.#dispatch({
1530
+ type: "pending",
1531
+ variables,
1532
+ isPaused
1533
+ });
1534
+ if (this.#mutationCache.config.onMutate) await this.#mutationCache.config.onMutate(variables, this, mutationFnContext);
1535
+ const context = await this.options.onMutate?.(variables, mutationFnContext);
1536
+ if (context !== this.state.context) this.#dispatch({
1537
+ type: "pending",
1538
+ context,
1539
+ variables,
1540
+ isPaused
1541
+ });
1542
+ }
1543
+ const data = await this.#retryer.start();
1544
+ await this.#mutationCache.config.onSuccess?.(data, variables, this.state.context, this, mutationFnContext);
1545
+ await this.options.onSuccess?.(data, variables, this.state.context, mutationFnContext);
1546
+ await this.#mutationCache.config.onSettled?.(data, null, this.state.variables, this.state.context, this, mutationFnContext);
1547
+ await this.options.onSettled?.(data, null, variables, this.state.context, mutationFnContext);
1548
+ this.#dispatch({
1549
+ type: "success",
1550
+ data
1551
+ });
1552
+ return data;
1553
+ } catch (error) {
1554
+ try {
1555
+ await this.#mutationCache.config.onError?.(error, variables, this.state.context, this, mutationFnContext);
1556
+ } catch (e) {
1557
+ Promise.reject(e);
1558
+ }
1559
+ try {
1560
+ await this.options.onError?.(error, variables, this.state.context, mutationFnContext);
1561
+ } catch (e) {
1562
+ Promise.reject(e);
1563
+ }
1564
+ try {
1565
+ await this.#mutationCache.config.onSettled?.(void 0, error, this.state.variables, this.state.context, this, mutationFnContext);
1566
+ } catch (e) {
1567
+ Promise.reject(e);
1568
+ }
1569
+ try {
1570
+ await this.options.onSettled?.(void 0, error, variables, this.state.context, mutationFnContext);
1571
+ } catch (e) {
1572
+ Promise.reject(e);
1573
+ }
1574
+ this.#dispatch({
1575
+ type: "error",
1576
+ error
1577
+ });
1578
+ throw error;
1579
+ } finally {
1580
+ this.#mutationCache.runNext(this);
1581
+ }
1582
+ }
1583
+ #dispatch(action) {
1584
+ const reducer = (state) => {
1585
+ switch (action.type) {
1586
+ case "failed": return {
1587
+ ...state,
1588
+ failureCount: action.failureCount,
1589
+ failureReason: action.error
1590
+ };
1591
+ case "pause": return {
1592
+ ...state,
1593
+ isPaused: true
1594
+ };
1595
+ case "continue": return {
1596
+ ...state,
1597
+ isPaused: false
1598
+ };
1599
+ case "pending": return {
1600
+ ...state,
1601
+ context: action.context,
1602
+ data: void 0,
1603
+ failureCount: 0,
1604
+ failureReason: null,
1605
+ error: null,
1606
+ isPaused: action.isPaused,
1607
+ status: "pending",
1608
+ variables: action.variables,
1609
+ submittedAt: Date.now()
1610
+ };
1611
+ case "success": return {
1612
+ ...state,
1613
+ data: action.data,
1614
+ failureCount: 0,
1615
+ failureReason: null,
1616
+ error: null,
1617
+ status: "success",
1618
+ isPaused: false
1619
+ };
1620
+ case "error": return {
1621
+ ...state,
1622
+ data: void 0,
1623
+ error: action.error,
1624
+ failureCount: state.failureCount + 1,
1625
+ failureReason: action.error,
1626
+ isPaused: false,
1627
+ status: "error"
1628
+ };
1629
+ }
1630
+ };
1631
+ this.state = reducer(this.state);
1632
+ notifyManager.batch(() => {
1633
+ this.#observers.forEach((observer) => {
1634
+ observer.onMutationUpdate(action);
1635
+ });
1636
+ this.#mutationCache.notify({
1637
+ mutation: this,
1638
+ type: "updated",
1639
+ action
1640
+ });
1641
+ });
1642
+ }
1643
+ };
1644
+ function getDefaultState() {
1645
+ return {
1646
+ context: void 0,
1647
+ data: void 0,
1648
+ error: null,
1649
+ failureCount: 0,
1650
+ failureReason: null,
1651
+ isPaused: false,
1652
+ status: "idle",
1653
+ variables: void 0,
1654
+ submittedAt: 0
1655
+ };
1656
+ }
1657
+ //#endregion
1658
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/mutationCache.js
1659
+ var MutationCache = class extends Subscribable {
1660
+ constructor(config = {}) {
1661
+ super();
1662
+ this.config = config;
1663
+ this.#mutations = /* @__PURE__ */ new Set();
1664
+ this.#scopes = /* @__PURE__ */ new Map();
1665
+ this.#mutationId = 0;
1666
+ }
1667
+ #mutations;
1668
+ #scopes;
1669
+ #mutationId;
1670
+ build(client, options, state) {
1671
+ const mutation = new Mutation({
1672
+ client,
1673
+ mutationCache: this,
1674
+ mutationId: ++this.#mutationId,
1675
+ options: client.defaultMutationOptions(options),
1676
+ state
1677
+ });
1678
+ this.add(mutation);
1679
+ return mutation;
1680
+ }
1681
+ add(mutation) {
1682
+ this.#mutations.add(mutation);
1683
+ const scope = scopeFor(mutation);
1684
+ if (typeof scope === "string") {
1685
+ const scopedMutations = this.#scopes.get(scope);
1686
+ if (scopedMutations) scopedMutations.push(mutation);
1687
+ else this.#scopes.set(scope, [mutation]);
1688
+ }
1689
+ this.notify({
1690
+ type: "added",
1691
+ mutation
1692
+ });
1693
+ }
1694
+ remove(mutation) {
1695
+ if (this.#mutations.delete(mutation)) {
1696
+ const scope = scopeFor(mutation);
1697
+ if (typeof scope === "string") {
1698
+ const scopedMutations = this.#scopes.get(scope);
1699
+ if (scopedMutations) {
1700
+ if (scopedMutations.length > 1) {
1701
+ const index = scopedMutations.indexOf(mutation);
1702
+ if (index !== -1) scopedMutations.splice(index, 1);
1703
+ } else if (scopedMutations[0] === mutation) this.#scopes.delete(scope);
1704
+ }
1705
+ }
1706
+ }
1707
+ this.notify({
1708
+ type: "removed",
1709
+ mutation
1710
+ });
1711
+ }
1712
+ canRun(mutation) {
1713
+ const scope = scopeFor(mutation);
1714
+ if (typeof scope === "string") {
1715
+ const firstPendingMutation = this.#scopes.get(scope)?.find((m) => m.state.status === "pending");
1716
+ return !firstPendingMutation || firstPendingMutation === mutation;
1717
+ } else return true;
1718
+ }
1719
+ runNext(mutation) {
1720
+ const scope = scopeFor(mutation);
1721
+ if (typeof scope === "string") return (this.#scopes.get(scope)?.find((m) => m !== mutation && m.state.isPaused))?.continue() ?? Promise.resolve();
1722
+ else return Promise.resolve();
1723
+ }
1724
+ clear() {
1725
+ notifyManager.batch(() => {
1726
+ this.#mutations.forEach((mutation) => {
1727
+ this.notify({
1728
+ type: "removed",
1729
+ mutation
1730
+ });
1731
+ });
1732
+ this.#mutations.clear();
1733
+ this.#scopes.clear();
1734
+ });
1735
+ }
1736
+ getAll() {
1737
+ return Array.from(this.#mutations);
1738
+ }
1739
+ find(filters) {
1740
+ const defaultedFilters = {
1741
+ exact: true,
1742
+ ...filters
1743
+ };
1744
+ return this.getAll().find((mutation) => matchMutation(defaultedFilters, mutation));
1745
+ }
1746
+ findAll(filters = {}) {
1747
+ return this.getAll().filter((mutation) => matchMutation(filters, mutation));
1748
+ }
1749
+ notify(event) {
1750
+ notifyManager.batch(() => {
1751
+ this.listeners.forEach((listener) => {
1752
+ listener(event);
1753
+ });
1754
+ });
1755
+ }
1756
+ resumePausedMutations() {
1757
+ const pausedMutations = this.getAll().filter((x) => x.state.isPaused);
1758
+ return notifyManager.batch(() => Promise.all(pausedMutations.map((mutation) => mutation.continue().catch(noop))));
1759
+ }
1760
+ };
1761
+ function scopeFor(mutation) {
1762
+ return mutation.options.scope?.id;
1763
+ }
1764
+ //#endregion
1765
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/mutationObserver.js
1766
+ var MutationObserver = class extends Subscribable {
1767
+ #client;
1768
+ #currentResult = void 0;
1769
+ #currentMutation;
1770
+ #mutateOptions;
1771
+ constructor(client, options) {
1772
+ super();
1773
+ this.#client = client;
1774
+ this.setOptions(options);
1775
+ this.bindMethods();
1776
+ this.#updateResult();
1777
+ }
1778
+ bindMethods() {
1779
+ this.mutate = this.mutate.bind(this);
1780
+ this.reset = this.reset.bind(this);
1781
+ }
1782
+ setOptions(options) {
1783
+ const prevOptions = this.options;
1784
+ this.options = this.#client.defaultMutationOptions(options);
1785
+ if (!shallowEqualObjects(this.options, prevOptions)) this.#client.getMutationCache().notify({
1786
+ type: "observerOptionsUpdated",
1787
+ mutation: this.#currentMutation,
1788
+ observer: this
1789
+ });
1790
+ if (prevOptions?.mutationKey && this.options.mutationKey && hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)) this.reset();
1791
+ else if (this.#currentMutation?.state.status === "pending") this.#currentMutation.setOptions(this.options);
1792
+ }
1793
+ onUnsubscribe() {
1794
+ if (!this.hasListeners()) this.#currentMutation?.removeObserver(this);
1795
+ }
1796
+ onMutationUpdate(action) {
1797
+ this.#updateResult();
1798
+ this.#notify(action);
1799
+ }
1800
+ getCurrentResult() {
1801
+ return this.#currentResult;
1802
+ }
1803
+ reset() {
1804
+ this.#currentMutation?.removeObserver(this);
1805
+ this.#currentMutation = void 0;
1806
+ this.#updateResult();
1807
+ this.#notify();
1808
+ }
1809
+ mutate(variables, options) {
1810
+ this.#mutateOptions = options;
1811
+ this.#currentMutation?.removeObserver(this);
1812
+ this.#currentMutation = this.#client.getMutationCache().build(this.#client, this.options);
1813
+ this.#currentMutation.addObserver(this);
1814
+ return this.#currentMutation.execute(variables);
1815
+ }
1816
+ #updateResult() {
1817
+ const state = this.#currentMutation?.state ?? getDefaultState();
1818
+ this.#currentResult = {
1819
+ ...state,
1820
+ isPending: state.status === "pending",
1821
+ isSuccess: state.status === "success",
1822
+ isError: state.status === "error",
1823
+ isIdle: state.status === "idle",
1824
+ mutate: this.mutate,
1825
+ reset: this.reset
1826
+ };
1827
+ }
1828
+ #notify(action) {
1829
+ notifyManager.batch(() => {
1830
+ if (this.#mutateOptions && this.hasListeners()) {
1831
+ const variables = this.#currentResult.variables;
1832
+ const onMutateResult = this.#currentResult.context;
1833
+ const context = {
1834
+ client: this.#client,
1835
+ meta: this.options.meta,
1836
+ mutationKey: this.options.mutationKey
1837
+ };
1838
+ if (action?.type === "success") {
1839
+ try {
1840
+ this.#mutateOptions.onSuccess?.(action.data, variables, onMutateResult, context);
1841
+ } catch (e) {
1842
+ Promise.reject(e);
1843
+ }
1844
+ try {
1845
+ this.#mutateOptions.onSettled?.(action.data, null, variables, onMutateResult, context);
1846
+ } catch (e) {
1847
+ Promise.reject(e);
1848
+ }
1849
+ } else if (action?.type === "error") {
1850
+ try {
1851
+ this.#mutateOptions.onError?.(action.error, variables, onMutateResult, context);
1852
+ } catch (e) {
1853
+ Promise.reject(e);
1854
+ }
1855
+ try {
1856
+ this.#mutateOptions.onSettled?.(void 0, action.error, variables, onMutateResult, context);
1857
+ } catch (e) {
1858
+ Promise.reject(e);
1859
+ }
1860
+ }
1861
+ }
1862
+ this.listeners.forEach((listener) => {
1863
+ listener(this.#currentResult);
1864
+ });
1865
+ });
1866
+ }
1867
+ };
1868
+ //#endregion
1869
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/queryCache.js
1870
+ var QueryCache = class extends Subscribable {
1871
+ constructor(config = {}) {
1872
+ super();
1873
+ this.config = config;
1874
+ this.#queries = /* @__PURE__ */ new Map();
1875
+ }
1876
+ #queries;
1877
+ build(client, options, state) {
1878
+ const queryKey = options.queryKey;
1879
+ const queryHash = options.queryHash ?? hashQueryKeyByOptions(queryKey, options);
1880
+ let query = this.get(queryHash);
1881
+ if (!query) {
1882
+ query = new Query({
1883
+ client,
1884
+ queryKey,
1885
+ queryHash,
1886
+ options: client.defaultQueryOptions(options),
1887
+ state,
1888
+ defaultOptions: client.getQueryDefaults(queryKey)
1889
+ });
1890
+ this.add(query);
1891
+ }
1892
+ return query;
1893
+ }
1894
+ add(query) {
1895
+ if (!this.#queries.has(query.queryHash)) {
1896
+ this.#queries.set(query.queryHash, query);
1897
+ this.notify({
1898
+ type: "added",
1899
+ query
1900
+ });
1901
+ }
1902
+ }
1903
+ remove(query) {
1904
+ const queryInMap = this.#queries.get(query.queryHash);
1905
+ if (queryInMap) {
1906
+ query.destroy();
1907
+ if (queryInMap === query) this.#queries.delete(query.queryHash);
1908
+ this.notify({
1909
+ type: "removed",
1910
+ query
1911
+ });
1912
+ }
1913
+ }
1914
+ clear() {
1915
+ notifyManager.batch(() => {
1916
+ this.getAll().forEach((query) => {
1917
+ this.remove(query);
1918
+ });
1919
+ });
1920
+ }
1921
+ get(queryHash) {
1922
+ return this.#queries.get(queryHash);
1923
+ }
1924
+ getAll() {
1925
+ return [...this.#queries.values()];
1926
+ }
1927
+ find(filters) {
1928
+ const defaultedFilters = {
1929
+ exact: true,
1930
+ ...filters
1931
+ };
1932
+ return this.getAll().find((query) => matchQuery(defaultedFilters, query));
1933
+ }
1934
+ findAll(filters = {}) {
1935
+ const queries = this.getAll();
1936
+ return Object.keys(filters).length > 0 ? queries.filter((query) => matchQuery(filters, query)) : queries;
1937
+ }
1938
+ notify(event) {
1939
+ notifyManager.batch(() => {
1940
+ this.listeners.forEach((listener) => {
1941
+ listener(event);
1942
+ });
1943
+ });
1944
+ }
1945
+ onFocus() {
1946
+ notifyManager.batch(() => {
1947
+ this.getAll().forEach((query) => {
1948
+ query.onFocus();
1949
+ });
1950
+ });
1951
+ }
1952
+ onOnline() {
1953
+ notifyManager.batch(() => {
1954
+ this.getAll().forEach((query) => {
1955
+ query.onOnline();
1956
+ });
1957
+ });
1958
+ }
1959
+ };
1960
+ //#endregion
1961
+ //#region node_modules/.pnpm/@tanstack+query-core@5.99.0/node_modules/@tanstack/query-core/build/modern/queryClient.js
1962
+ var QueryClient = class {
1963
+ #queryCache;
1964
+ #mutationCache;
1965
+ #defaultOptions;
1966
+ #queryDefaults;
1967
+ #mutationDefaults;
1968
+ #mountCount;
1969
+ #unsubscribeFocus;
1970
+ #unsubscribeOnline;
1971
+ constructor(config = {}) {
1972
+ this.#queryCache = config.queryCache || new QueryCache();
1973
+ this.#mutationCache = config.mutationCache || new MutationCache();
1974
+ this.#defaultOptions = config.defaultOptions || {};
1975
+ this.#queryDefaults = /* @__PURE__ */ new Map();
1976
+ this.#mutationDefaults = /* @__PURE__ */ new Map();
1977
+ this.#mountCount = 0;
1978
+ }
1979
+ mount() {
1980
+ this.#mountCount++;
1981
+ if (this.#mountCount !== 1) return;
1982
+ this.#unsubscribeFocus = focusManager.subscribe(async (focused) => {
1983
+ if (focused) {
1984
+ await this.resumePausedMutations();
1985
+ this.#queryCache.onFocus();
1986
+ }
1987
+ });
1988
+ this.#unsubscribeOnline = onlineManager.subscribe(async (online) => {
1989
+ if (online) {
1990
+ await this.resumePausedMutations();
1991
+ this.#queryCache.onOnline();
1992
+ }
1993
+ });
1994
+ }
1995
+ unmount() {
1996
+ this.#mountCount--;
1997
+ if (this.#mountCount !== 0) return;
1998
+ this.#unsubscribeFocus?.();
1999
+ this.#unsubscribeFocus = void 0;
2000
+ this.#unsubscribeOnline?.();
2001
+ this.#unsubscribeOnline = void 0;
2002
+ }
2003
+ isFetching(filters) {
2004
+ return this.#queryCache.findAll({
2005
+ ...filters,
2006
+ fetchStatus: "fetching"
2007
+ }).length;
2008
+ }
2009
+ isMutating(filters) {
2010
+ return this.#mutationCache.findAll({
2011
+ ...filters,
2012
+ status: "pending"
2013
+ }).length;
2014
+ }
2015
+ /**
2016
+ * Imperative (non-reactive) way to retrieve data for a QueryKey.
2017
+ * Should only be used in callbacks or functions where reading the latest data is necessary, e.g. for optimistic updates.
2018
+ *
2019
+ * Hint: Do not use this function inside a component, because it won't receive updates.
2020
+ * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
2021
+ */
2022
+ getQueryData(queryKey) {
2023
+ const options = this.defaultQueryOptions({ queryKey });
2024
+ return this.#queryCache.get(options.queryHash)?.state.data;
2025
+ }
2026
+ ensureQueryData(options) {
2027
+ const defaultedOptions = this.defaultQueryOptions(options);
2028
+ const query = this.#queryCache.build(this, defaultedOptions);
2029
+ const cachedData = query.state.data;
2030
+ if (cachedData === void 0) return this.fetchQuery(options);
2031
+ if (options.revalidateIfStale && query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query))) this.prefetchQuery(defaultedOptions);
2032
+ return Promise.resolve(cachedData);
2033
+ }
2034
+ getQueriesData(filters) {
2035
+ return this.#queryCache.findAll(filters).map(({ queryKey, state }) => {
2036
+ return [queryKey, state.data];
2037
+ });
2038
+ }
2039
+ setQueryData(queryKey, updater, options) {
2040
+ const defaultedOptions = this.defaultQueryOptions({ queryKey });
2041
+ const prevData = this.#queryCache.get(defaultedOptions.queryHash)?.state.data;
2042
+ const data = functionalUpdate(updater, prevData);
2043
+ if (data === void 0) return;
2044
+ return this.#queryCache.build(this, defaultedOptions).setData(data, {
2045
+ ...options,
2046
+ manual: true
2047
+ });
2048
+ }
2049
+ setQueriesData(filters, updater, options) {
2050
+ return notifyManager.batch(() => this.#queryCache.findAll(filters).map(({ queryKey }) => [queryKey, this.setQueryData(queryKey, updater, options)]));
2051
+ }
2052
+ getQueryState(queryKey) {
2053
+ const options = this.defaultQueryOptions({ queryKey });
2054
+ return this.#queryCache.get(options.queryHash)?.state;
2055
+ }
2056
+ removeQueries(filters) {
2057
+ const queryCache = this.#queryCache;
2058
+ notifyManager.batch(() => {
2059
+ queryCache.findAll(filters).forEach((query) => {
2060
+ queryCache.remove(query);
2061
+ });
2062
+ });
2063
+ }
2064
+ resetQueries(filters, options) {
2065
+ const queryCache = this.#queryCache;
2066
+ return notifyManager.batch(() => {
2067
+ queryCache.findAll(filters).forEach((query) => {
2068
+ query.reset();
2069
+ });
2070
+ return this.refetchQueries({
2071
+ type: "active",
2072
+ ...filters
2073
+ }, options);
2074
+ });
2075
+ }
2076
+ cancelQueries(filters, cancelOptions = {}) {
2077
+ const defaultedCancelOptions = {
2078
+ revert: true,
2079
+ ...cancelOptions
2080
+ };
2081
+ const promises = notifyManager.batch(() => this.#queryCache.findAll(filters).map((query) => query.cancel(defaultedCancelOptions)));
2082
+ return Promise.all(promises).then(noop).catch(noop);
2083
+ }
2084
+ invalidateQueries(filters, options = {}) {
2085
+ return notifyManager.batch(() => {
2086
+ this.#queryCache.findAll(filters).forEach((query) => {
2087
+ query.invalidate();
2088
+ });
2089
+ if (filters?.refetchType === "none") return Promise.resolve();
2090
+ return this.refetchQueries({
2091
+ ...filters,
2092
+ type: filters?.refetchType ?? filters?.type ?? "active"
2093
+ }, options);
2094
+ });
2095
+ }
2096
+ refetchQueries(filters, options = {}) {
2097
+ const fetchOptions = {
2098
+ ...options,
2099
+ cancelRefetch: options.cancelRefetch ?? true
2100
+ };
2101
+ const promises = notifyManager.batch(() => this.#queryCache.findAll(filters).filter((query) => !query.isDisabled() && !query.isStatic()).map((query) => {
2102
+ let promise = query.fetch(void 0, fetchOptions);
2103
+ if (!fetchOptions.throwOnError) promise = promise.catch(noop);
2104
+ return query.state.fetchStatus === "paused" ? Promise.resolve() : promise;
2105
+ }));
2106
+ return Promise.all(promises).then(noop);
2107
+ }
2108
+ fetchQuery(options) {
2109
+ const defaultedOptions = this.defaultQueryOptions(options);
2110
+ if (defaultedOptions.retry === void 0) defaultedOptions.retry = false;
2111
+ const query = this.#queryCache.build(this, defaultedOptions);
2112
+ return query.isStaleByTime(resolveStaleTime(defaultedOptions.staleTime, query)) ? query.fetch(defaultedOptions) : Promise.resolve(query.state.data);
2113
+ }
2114
+ prefetchQuery(options) {
2115
+ return this.fetchQuery(options).then(noop).catch(noop);
2116
+ }
2117
+ fetchInfiniteQuery(options) {
2118
+ options.behavior = infiniteQueryBehavior(options.pages);
2119
+ return this.fetchQuery(options);
2120
+ }
2121
+ prefetchInfiniteQuery(options) {
2122
+ return this.fetchInfiniteQuery(options).then(noop).catch(noop);
2123
+ }
2124
+ ensureInfiniteQueryData(options) {
2125
+ options.behavior = infiniteQueryBehavior(options.pages);
2126
+ return this.ensureQueryData(options);
2127
+ }
2128
+ resumePausedMutations() {
2129
+ if (onlineManager.isOnline()) return this.#mutationCache.resumePausedMutations();
2130
+ return Promise.resolve();
2131
+ }
2132
+ getQueryCache() {
2133
+ return this.#queryCache;
2134
+ }
2135
+ getMutationCache() {
2136
+ return this.#mutationCache;
2137
+ }
2138
+ getDefaultOptions() {
2139
+ return this.#defaultOptions;
2140
+ }
2141
+ setDefaultOptions(options) {
2142
+ this.#defaultOptions = options;
2143
+ }
2144
+ setQueryDefaults(queryKey, options) {
2145
+ this.#queryDefaults.set(hashKey(queryKey), {
2146
+ queryKey,
2147
+ defaultOptions: options
2148
+ });
2149
+ }
2150
+ getQueryDefaults(queryKey) {
2151
+ const defaults = [...this.#queryDefaults.values()];
2152
+ const result = {};
2153
+ defaults.forEach((queryDefault) => {
2154
+ if (partialMatchKey(queryKey, queryDefault.queryKey)) Object.assign(result, queryDefault.defaultOptions);
2155
+ });
2156
+ return result;
2157
+ }
2158
+ setMutationDefaults(mutationKey, options) {
2159
+ this.#mutationDefaults.set(hashKey(mutationKey), {
2160
+ mutationKey,
2161
+ defaultOptions: options
2162
+ });
2163
+ }
2164
+ getMutationDefaults(mutationKey) {
2165
+ const defaults = [...this.#mutationDefaults.values()];
2166
+ const result = {};
2167
+ defaults.forEach((queryDefault) => {
2168
+ if (partialMatchKey(mutationKey, queryDefault.mutationKey)) Object.assign(result, queryDefault.defaultOptions);
2169
+ });
2170
+ return result;
2171
+ }
2172
+ defaultQueryOptions(options) {
2173
+ if (options._defaulted) return options;
2174
+ const defaultedOptions = {
2175
+ ...this.#defaultOptions.queries,
2176
+ ...this.getQueryDefaults(options.queryKey),
2177
+ ...options,
2178
+ _defaulted: true
2179
+ };
2180
+ if (!defaultedOptions.queryHash) defaultedOptions.queryHash = hashQueryKeyByOptions(defaultedOptions.queryKey, defaultedOptions);
2181
+ if (defaultedOptions.refetchOnReconnect === void 0) defaultedOptions.refetchOnReconnect = defaultedOptions.networkMode !== "always";
2182
+ if (defaultedOptions.throwOnError === void 0) defaultedOptions.throwOnError = !!defaultedOptions.suspense;
2183
+ if (!defaultedOptions.networkMode && defaultedOptions.persister) defaultedOptions.networkMode = "offlineFirst";
2184
+ if (defaultedOptions.queryFn === skipToken) defaultedOptions.enabled = false;
2185
+ return defaultedOptions;
2186
+ }
2187
+ defaultMutationOptions(options) {
2188
+ if (options?._defaulted) return options;
2189
+ return {
2190
+ ...this.#defaultOptions.mutations,
2191
+ ...options?.mutationKey && this.getMutationDefaults(options.mutationKey),
2192
+ ...options,
2193
+ _defaulted: true
2194
+ };
2195
+ }
2196
+ clear() {
2197
+ this.#queryCache.clear();
2198
+ this.#mutationCache.clear();
2199
+ }
2200
+ };
2201
+ //#endregion
2202
+ export { dehydrate as a, noop as c, notifyManager as i, replaceEqualDeep as l, MutationObserver as n, hydrate as o, QueryObserver as r, environmentManager as s, QueryClient as t, shouldThrowError as u };