@mastra/server 1.51.0-alpha.11 → 1.51.0-alpha.13

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 (339) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/{api-schema-manifest-G2SC5CFQ.cjs → api-schema-manifest-4TI7FSNK.cjs} +6 -6
  3. package/dist/{api-schema-manifest-G2SC5CFQ.cjs.map → api-schema-manifest-4TI7FSNK.cjs.map} +1 -1
  4. package/dist/{api-schema-manifest-UXI5JTRL.js → api-schema-manifest-AJIZCNSL.js} +4 -4
  5. package/dist/{api-schema-manifest-UXI5JTRL.js.map → api-schema-manifest-AJIZCNSL.js.map} +1 -1
  6. package/dist/{chunk-MCWL6335.cjs → chunk-27F2AJU2.cjs} +6 -6
  7. package/dist/{chunk-MCWL6335.cjs.map → chunk-27F2AJU2.cjs.map} +1 -1
  8. package/dist/{chunk-BWTM7QBG.js → chunk-2H2SGSP4.js} +3 -3
  9. package/dist/{chunk-BWTM7QBG.js.map → chunk-2H2SGSP4.js.map} +1 -1
  10. package/dist/{chunk-O7HH6SBJ.cjs → chunk-2S4SNS5D.cjs} +10 -10
  11. package/dist/{chunk-O7HH6SBJ.cjs.map → chunk-2S4SNS5D.cjs.map} +1 -1
  12. package/dist/{chunk-CDVWZOPU.js → chunk-3F5MV2ED.js} +3 -3
  13. package/dist/{chunk-CDVWZOPU.js.map → chunk-3F5MV2ED.js.map} +1 -1
  14. package/dist/{chunk-VL23G2YJ.js → chunk-44G63V6E.js} +5 -5
  15. package/dist/{chunk-VL23G2YJ.js.map → chunk-44G63V6E.js.map} +1 -1
  16. package/dist/{chunk-FEUXFWF5.cjs → chunk-4VDJYNCU.cjs} +4 -4
  17. package/dist/{chunk-FEUXFWF5.cjs.map → chunk-4VDJYNCU.cjs.map} +1 -1
  18. package/dist/{chunk-HNOAHMN4.cjs → chunk-52LEKN7E.cjs} +6 -6
  19. package/dist/{chunk-HNOAHMN4.cjs.map → chunk-52LEKN7E.cjs.map} +1 -1
  20. package/dist/{chunk-XYWMMHEC.js → chunk-5535L5CG.js} +3 -3
  21. package/dist/{chunk-XYWMMHEC.js.map → chunk-5535L5CG.js.map} +1 -1
  22. package/dist/{chunk-PJPR5YFS.js → chunk-5VEVLTZC.js} +5 -5
  23. package/dist/{chunk-PJPR5YFS.js.map → chunk-5VEVLTZC.js.map} +1 -1
  24. package/dist/{chunk-MSTNHQU2.cjs → chunk-6LFFIOT4.cjs} +9 -9
  25. package/dist/{chunk-MSTNHQU2.cjs.map → chunk-6LFFIOT4.cjs.map} +1 -1
  26. package/dist/{chunk-PVPXK52S.cjs → chunk-6NNCDLZC.cjs} +29 -29
  27. package/dist/{chunk-PVPXK52S.cjs.map → chunk-6NNCDLZC.cjs.map} +1 -1
  28. package/dist/{chunk-BT4DGQFS.js → chunk-6QIJVEVN.js} +3 -3
  29. package/dist/{chunk-BT4DGQFS.js.map → chunk-6QIJVEVN.js.map} +1 -1
  30. package/dist/{chunk-3R4HNV6B.js → chunk-7NBIALK4.js} +3 -3
  31. package/dist/{chunk-3R4HNV6B.js.map → chunk-7NBIALK4.js.map} +1 -1
  32. package/dist/{chunk-DMFYLU2A.js → chunk-7PXSB34V.js} +39 -7
  33. package/dist/chunk-7PXSB34V.js.map +1 -0
  34. package/dist/{chunk-LQSQWD2F.cjs → chunk-A2NBGGMX.cjs} +8 -8
  35. package/dist/{chunk-LQSQWD2F.cjs.map → chunk-A2NBGGMX.cjs.map} +1 -1
  36. package/dist/{chunk-W2ATM2RI.cjs → chunk-APMXFPSU.cjs} +13 -13
  37. package/dist/{chunk-W2ATM2RI.cjs.map → chunk-APMXFPSU.cjs.map} +1 -1
  38. package/dist/{chunk-3RQNJCTP.cjs → chunk-AX3JNQ27.cjs} +19 -19
  39. package/dist/{chunk-3RQNJCTP.cjs.map → chunk-AX3JNQ27.cjs.map} +1 -1
  40. package/dist/{chunk-TDSDLPLC.js → chunk-BH354CYO.js} +3 -3
  41. package/dist/{chunk-TDSDLPLC.js.map → chunk-BH354CYO.js.map} +1 -1
  42. package/dist/{chunk-536ERKFJ.js → chunk-BMGJWPCE.js} +3 -3
  43. package/dist/{chunk-536ERKFJ.js.map → chunk-BMGJWPCE.js.map} +1 -1
  44. package/dist/{chunk-Q6D6YN36.js → chunk-CH5VUESZ.js} +4 -4
  45. package/dist/{chunk-Q6D6YN36.js.map → chunk-CH5VUESZ.js.map} +1 -1
  46. package/dist/{chunk-BHOFB3CF.cjs → chunk-CTYOUJ2J.cjs} +11 -11
  47. package/dist/{chunk-BHOFB3CF.cjs.map → chunk-CTYOUJ2J.cjs.map} +1 -1
  48. package/dist/{chunk-NE5VRVVK.cjs → chunk-DJGKM4TB.cjs} +4 -4
  49. package/dist/{chunk-NE5VRVVK.cjs.map → chunk-DJGKM4TB.cjs.map} +1 -1
  50. package/dist/{chunk-RRQZAJDZ.js → chunk-E43WB5QM.js} +5 -2
  51. package/dist/chunk-E43WB5QM.js.map +1 -0
  52. package/dist/{chunk-VXZGDPW2.cjs → chunk-EJFYAD2W.cjs} +8 -8
  53. package/dist/{chunk-VXZGDPW2.cjs.map → chunk-EJFYAD2W.cjs.map} +1 -1
  54. package/dist/{chunk-26WG2OUY.cjs → chunk-ELVO5SFM.cjs} +8 -8
  55. package/dist/{chunk-26WG2OUY.cjs.map → chunk-ELVO5SFM.cjs.map} +1 -1
  56. package/dist/{chunk-OI3USMND.cjs → chunk-G7RPSZUK.cjs} +71 -71
  57. package/dist/{chunk-OI3USMND.cjs.map → chunk-G7RPSZUK.cjs.map} +1 -1
  58. package/dist/{chunk-CAHPP34Z.cjs → chunk-GGPRZBVJ.cjs} +11 -11
  59. package/dist/{chunk-CAHPP34Z.cjs.map → chunk-GGPRZBVJ.cjs.map} +1 -1
  60. package/dist/{chunk-JNFYIWNB.cjs → chunk-GO6Y47XC.cjs} +101 -101
  61. package/dist/{chunk-JNFYIWNB.cjs.map → chunk-GO6Y47XC.cjs.map} +1 -1
  62. package/dist/{chunk-CP5LPQIZ.cjs → chunk-GULBOJRY.cjs} +6 -6
  63. package/dist/{chunk-CP5LPQIZ.cjs.map → chunk-GULBOJRY.cjs.map} +1 -1
  64. package/dist/{chunk-UY5FTPBZ.cjs → chunk-H32FN255.cjs} +5 -2
  65. package/dist/chunk-H32FN255.cjs.map +1 -0
  66. package/dist/{chunk-7Z7JQRMK.js → chunk-HI4E75YH.js} +3 -3
  67. package/dist/{chunk-7Z7JQRMK.js.map → chunk-HI4E75YH.js.map} +1 -1
  68. package/dist/{chunk-BJESJLXW.cjs → chunk-I5K3Z37P.cjs} +293 -287
  69. package/dist/chunk-I5K3Z37P.cjs.map +1 -0
  70. package/dist/{chunk-UUMG5HMP.cjs → chunk-IEEP4JWJ.cjs} +12 -12
  71. package/dist/{chunk-UUMG5HMP.cjs.map → chunk-IEEP4JWJ.cjs.map} +1 -1
  72. package/dist/{chunk-Y5DUPEQF.cjs → chunk-IKIMKEA3.cjs} +8 -8
  73. package/dist/{chunk-Y5DUPEQF.cjs.map → chunk-IKIMKEA3.cjs.map} +1 -1
  74. package/dist/{chunk-ZSMQDHMV.cjs → chunk-IRIBLEBI.cjs} +10 -10
  75. package/dist/{chunk-ZSMQDHMV.cjs.map → chunk-IRIBLEBI.cjs.map} +1 -1
  76. package/dist/{chunk-PWW7XZFS.js → chunk-IWIWEX2Y.js} +5 -5
  77. package/dist/{chunk-PWW7XZFS.js.map → chunk-IWIWEX2Y.js.map} +1 -1
  78. package/dist/{chunk-7RAQVA42.cjs → chunk-J6TRVKBB.cjs} +11 -11
  79. package/dist/{chunk-7RAQVA42.cjs.map → chunk-J6TRVKBB.cjs.map} +1 -1
  80. package/dist/{chunk-WRAFGZ43.js → chunk-JGEOOOSP.js} +3 -3
  81. package/dist/{chunk-WRAFGZ43.js.map → chunk-JGEOOOSP.js.map} +1 -1
  82. package/dist/{chunk-KGZYP6YS.js → chunk-JQWULXKN.js} +5 -5
  83. package/dist/{chunk-KGZYP6YS.js.map → chunk-JQWULXKN.js.map} +1 -1
  84. package/dist/{chunk-KLD4KYXH.cjs → chunk-K6WZK5RX.cjs} +21 -21
  85. package/dist/{chunk-KLD4KYXH.cjs.map → chunk-K6WZK5RX.cjs.map} +1 -1
  86. package/dist/{chunk-MRD47GBP.cjs → chunk-K7KLUGGM.cjs} +74 -74
  87. package/dist/{chunk-MRD47GBP.cjs.map → chunk-K7KLUGGM.cjs.map} +1 -1
  88. package/dist/{chunk-6ZXLYXPA.js → chunk-KN6HJVZK.js} +4 -4
  89. package/dist/{chunk-6ZXLYXPA.js.map → chunk-KN6HJVZK.js.map} +1 -1
  90. package/dist/{chunk-OGYVHIJQ.cjs → chunk-KOMWGC24.cjs} +7 -7
  91. package/dist/{chunk-OGYVHIJQ.cjs.map → chunk-KOMWGC24.cjs.map} +1 -1
  92. package/dist/{chunk-RK2FLBQ5.js → chunk-LTKBD2RQ.js} +3 -3
  93. package/dist/{chunk-RK2FLBQ5.js.map → chunk-LTKBD2RQ.js.map} +1 -1
  94. package/dist/{chunk-5QB32PNO.cjs → chunk-LXP7DQAP.cjs} +37 -37
  95. package/dist/{chunk-5QB32PNO.cjs.map → chunk-LXP7DQAP.cjs.map} +1 -1
  96. package/dist/{chunk-GCGJKH4A.cjs → chunk-LYOM6EQP.cjs} +8 -8
  97. package/dist/{chunk-GCGJKH4A.cjs.map → chunk-LYOM6EQP.cjs.map} +1 -1
  98. package/dist/{chunk-F7KRU6ZU.js → chunk-M7OJEIOD.js} +3 -3
  99. package/dist/{chunk-F7KRU6ZU.js.map → chunk-M7OJEIOD.js.map} +1 -1
  100. package/dist/{chunk-MASP4GYH.js → chunk-MCRQRKRI.js} +3 -3
  101. package/dist/{chunk-MASP4GYH.js.map → chunk-MCRQRKRI.js.map} +1 -1
  102. package/dist/{chunk-SS7P2THJ.js → chunk-MG2QPYJD.js} +41 -41
  103. package/dist/{chunk-SS7P2THJ.js.map → chunk-MG2QPYJD.js.map} +1 -1
  104. package/dist/{chunk-FPFSXIHI.js → chunk-NMIBDLQD.js} +4 -4
  105. package/dist/{chunk-FPFSXIHI.js.map → chunk-NMIBDLQD.js.map} +1 -1
  106. package/dist/{chunk-2E3UBZ6Z.js → chunk-OMNQYWK3.js} +2 -2
  107. package/dist/chunk-OMNQYWK3.js.map +1 -0
  108. package/dist/{chunk-TPM6PMWU.js → chunk-ONEOOPSN.js} +3 -3
  109. package/dist/{chunk-TPM6PMWU.js.map → chunk-ONEOOPSN.js.map} +1 -1
  110. package/dist/{chunk-BXMGLJWL.js → chunk-OSTYHNSM.js} +3 -3
  111. package/dist/{chunk-BXMGLJWL.js.map → chunk-OSTYHNSM.js.map} +1 -1
  112. package/dist/{chunk-XEHXAE6M.cjs → chunk-OU7J7PA7.cjs} +4 -4
  113. package/dist/{chunk-XEHXAE6M.cjs.map → chunk-OU7J7PA7.cjs.map} +1 -1
  114. package/dist/{chunk-H3CPBOE4.js → chunk-P6EQTV2Y.js} +3 -3
  115. package/dist/{chunk-H3CPBOE4.js.map → chunk-P6EQTV2Y.js.map} +1 -1
  116. package/dist/{chunk-2NGKAQQE.cjs → chunk-QAKI6K3C.cjs} +5 -5
  117. package/dist/{chunk-2NGKAQQE.cjs.map → chunk-QAKI6K3C.cjs.map} +1 -1
  118. package/dist/{chunk-YN4RDOPA.js → chunk-QDVO3DAW.js} +3 -3
  119. package/dist/{chunk-YN4RDOPA.js.map → chunk-QDVO3DAW.js.map} +1 -1
  120. package/dist/{chunk-ORQHCHAU.js → chunk-QJEXUABN.js} +4 -4
  121. package/dist/{chunk-ORQHCHAU.js.map → chunk-QJEXUABN.js.map} +1 -1
  122. package/dist/{chunk-K3XMNUQT.js → chunk-QJHZIGQG.js} +3 -3
  123. package/dist/{chunk-K3XMNUQT.js.map → chunk-QJHZIGQG.js.map} +1 -1
  124. package/dist/{chunk-ZMMHUTQG.cjs → chunk-QOGEYWQA.cjs} +24 -24
  125. package/dist/{chunk-ZMMHUTQG.cjs.map → chunk-QOGEYWQA.cjs.map} +1 -1
  126. package/dist/{chunk-GG7J3ITE.cjs → chunk-RKGCJXZO.cjs} +6 -6
  127. package/dist/{chunk-GG7J3ITE.cjs.map → chunk-RKGCJXZO.cjs.map} +1 -1
  128. package/dist/{chunk-U3AC2DM6.js → chunk-RKUFUE6P.js} +3 -3
  129. package/dist/{chunk-U3AC2DM6.js.map → chunk-RKUFUE6P.js.map} +1 -1
  130. package/dist/{chunk-FTXUZBZI.cjs → chunk-RSCLEVN3.cjs} +28 -28
  131. package/dist/{chunk-FTXUZBZI.cjs.map → chunk-RSCLEVN3.cjs.map} +1 -1
  132. package/dist/{chunk-CCVV75AI.js → chunk-SB4CG73V.js} +3 -3
  133. package/dist/{chunk-CCVV75AI.js.map → chunk-SB4CG73V.js.map} +1 -1
  134. package/dist/{chunk-2ONW75MN.cjs → chunk-SCCERKQS.cjs} +5 -5
  135. package/dist/{chunk-2ONW75MN.cjs.map → chunk-SCCERKQS.cjs.map} +1 -1
  136. package/dist/{chunk-SMQOFEYY.js → chunk-SEV4GJWB.js} +4 -4
  137. package/dist/{chunk-SMQOFEYY.js.map → chunk-SEV4GJWB.js.map} +1 -1
  138. package/dist/{chunk-NQLS4Z3W.js → chunk-SH7XKBWN.js} +5 -5
  139. package/dist/{chunk-NQLS4Z3W.js.map → chunk-SH7XKBWN.js.map} +1 -1
  140. package/dist/{chunk-3YBCWOF6.js → chunk-SIBCVLYV.js} +3 -3
  141. package/dist/{chunk-3YBCWOF6.js.map → chunk-SIBCVLYV.js.map} +1 -1
  142. package/dist/{chunk-C364W23O.js → chunk-SLHJWJR3.js} +4 -4
  143. package/dist/{chunk-C364W23O.js.map → chunk-SLHJWJR3.js.map} +1 -1
  144. package/dist/{chunk-2TKEZ5UE.js → chunk-SLWYNPH6.js} +3 -3
  145. package/dist/{chunk-2TKEZ5UE.js.map → chunk-SLWYNPH6.js.map} +1 -1
  146. package/dist/{chunk-ZMETLXPM.js → chunk-SU4ZAHUZ.js} +3 -3
  147. package/dist/{chunk-ZMETLXPM.js.map → chunk-SU4ZAHUZ.js.map} +1 -1
  148. package/dist/{chunk-TR2X57M3.cjs → chunk-SX2AJUSP.cjs} +2 -2
  149. package/dist/chunk-SX2AJUSP.cjs.map +1 -0
  150. package/dist/{chunk-AYHL7EEE.cjs → chunk-SXOMGGNC.cjs} +8 -8
  151. package/dist/{chunk-AYHL7EEE.cjs.map → chunk-SXOMGGNC.cjs.map} +1 -1
  152. package/dist/{chunk-OUHXNZBK.cjs → chunk-T7JR2CZV.cjs} +16 -16
  153. package/dist/{chunk-OUHXNZBK.cjs.map → chunk-T7JR2CZV.cjs.map} +1 -1
  154. package/dist/{chunk-GME4WQE6.js → chunk-TEIKCIX2.js} +5 -5
  155. package/dist/{chunk-GME4WQE6.js.map → chunk-TEIKCIX2.js.map} +1 -1
  156. package/dist/{chunk-7BZUW6TQ.cjs → chunk-TLBW3NWJ.cjs} +8 -8
  157. package/dist/{chunk-7BZUW6TQ.cjs.map → chunk-TLBW3NWJ.cjs.map} +1 -1
  158. package/dist/{chunk-MELQ2AU3.cjs → chunk-TPB44HAO.cjs} +10 -10
  159. package/dist/{chunk-MELQ2AU3.cjs.map → chunk-TPB44HAO.cjs.map} +1 -1
  160. package/dist/{chunk-PRDZRNPQ.cjs → chunk-TS2WBQFI.cjs} +13 -13
  161. package/dist/{chunk-PRDZRNPQ.cjs.map → chunk-TS2WBQFI.cjs.map} +1 -1
  162. package/dist/{chunk-6RHPKT2B.js → chunk-U5AYX5QW.js} +4 -4
  163. package/dist/{chunk-6RHPKT2B.js.map → chunk-U5AYX5QW.js.map} +1 -1
  164. package/dist/{chunk-HIGUQ2H3.js → chunk-UO4HGWYR.js} +3 -3
  165. package/dist/{chunk-HIGUQ2H3.js.map → chunk-UO4HGWYR.js.map} +1 -1
  166. package/dist/{chunk-H4LV3HUC.js → chunk-UWJ25WPB.js} +293 -287
  167. package/dist/chunk-UWJ25WPB.js.map +1 -0
  168. package/dist/{chunk-RNDEJYFW.cjs → chunk-W4XN6DDQ.cjs} +10 -10
  169. package/dist/{chunk-RNDEJYFW.cjs.map → chunk-W4XN6DDQ.cjs.map} +1 -1
  170. package/dist/{chunk-2WRJFEJK.js → chunk-WBPOFUFH.js} +3 -3
  171. package/dist/{chunk-2WRJFEJK.js.map → chunk-WBPOFUFH.js.map} +1 -1
  172. package/dist/chunk-WDLTCIDV.cjs +744 -0
  173. package/dist/{chunk-ZIFVFLJK.cjs.map → chunk-WDLTCIDV.cjs.map} +1 -1
  174. package/dist/{chunk-AKJHICI7.js → chunk-WJAV35G4.js} +4 -4
  175. package/dist/{chunk-AKJHICI7.js.map → chunk-WJAV35G4.js.map} +1 -1
  176. package/dist/{chunk-VHW5GZRA.js → chunk-WW37XHKJ.js} +4 -4
  177. package/dist/{chunk-VHW5GZRA.js.map → chunk-WW37XHKJ.js.map} +1 -1
  178. package/dist/{chunk-VMJ6UWBH.js → chunk-XFHXVKUV.js} +3 -3
  179. package/dist/{chunk-VMJ6UWBH.js.map → chunk-XFHXVKUV.js.map} +1 -1
  180. package/dist/{chunk-44HRN3OK.cjs → chunk-XNL6KN4F.cjs} +10 -10
  181. package/dist/{chunk-44HRN3OK.cjs.map → chunk-XNL6KN4F.cjs.map} +1 -1
  182. package/dist/{chunk-YS3A5BZH.cjs → chunk-XUKT5XLE.cjs} +37 -37
  183. package/dist/{chunk-YS3A5BZH.cjs.map → chunk-XUKT5XLE.cjs.map} +1 -1
  184. package/dist/{chunk-RQDW42XU.cjs → chunk-Y6BBB5S7.cjs} +8 -8
  185. package/dist/{chunk-RQDW42XU.cjs.map → chunk-Y6BBB5S7.cjs.map} +1 -1
  186. package/dist/{chunk-AD4P2UCI.cjs → chunk-YH4H2AJO.cjs} +8 -8
  187. package/dist/{chunk-AD4P2UCI.cjs.map → chunk-YH4H2AJO.cjs.map} +1 -1
  188. package/dist/{chunk-UVGAYAEV.js → chunk-Z2QGIB47.js} +4 -4
  189. package/dist/{chunk-UVGAYAEV.js.map → chunk-Z2QGIB47.js.map} +1 -1
  190. package/dist/{chunk-FYQHPT2E.js → chunk-Z5OBB3DJ.js} +3 -3
  191. package/dist/{chunk-FYQHPT2E.js.map → chunk-Z5OBB3DJ.js.map} +1 -1
  192. package/dist/{chunk-JCJIGPVP.cjs → chunk-ZG6ZAG5V.cjs} +41 -41
  193. package/dist/{chunk-JCJIGPVP.cjs.map → chunk-ZG6ZAG5V.cjs.map} +1 -1
  194. package/dist/{chunk-X6ZXQ3MZ.cjs → chunk-ZIBI62YT.cjs} +127 -95
  195. package/dist/chunk-ZIBI62YT.cjs.map +1 -0
  196. package/dist/{chunk-ZQLMTK5J.js → chunk-ZNGJHQKB.js} +3 -3
  197. package/dist/{chunk-ZQLMTK5J.js.map → chunk-ZNGJHQKB.js.map} +1 -1
  198. package/dist/{dist-2YFKAQMY.js → dist-3IOY4UDH.js} +3 -3
  199. package/dist/{dist-2YFKAQMY.js.map → dist-3IOY4UDH.js.map} +1 -1
  200. package/dist/{dist-JWLVQJFQ.js → dist-5PUBSY65.js} +3 -3
  201. package/dist/{dist-JWLVQJFQ.js.map → dist-5PUBSY65.js.map} +1 -1
  202. package/dist/{dist-MR5IMYFM.js → dist-5RUREC34.js} +9 -9
  203. package/dist/{dist-MR5IMYFM.js.map → dist-5RUREC34.js.map} +1 -1
  204. package/dist/{dist-WBYMZPKB.cjs → dist-7ROGUSJI.cjs} +26 -26
  205. package/dist/{dist-WBYMZPKB.cjs.map → dist-7ROGUSJI.cjs.map} +1 -1
  206. package/dist/dist-BJSMOQXN.cjs +16 -0
  207. package/dist/{dist-NYM3IQLY.cjs.map → dist-BJSMOQXN.cjs.map} +1 -1
  208. package/dist/{dist-6VCC76Q3.cjs → dist-I2O6YPDX.cjs} +30 -30
  209. package/dist/{dist-6VCC76Q3.cjs.map → dist-I2O6YPDX.cjs.map} +1 -1
  210. package/dist/{dist-M3P3YMJP.cjs → dist-I5TS34XK.cjs} +28 -28
  211. package/dist/{dist-M3P3YMJP.cjs.map → dist-I5TS34XK.cjs.map} +1 -1
  212. package/dist/{dist-J4UWKVDM.js → dist-IB5HRZQW.js} +3 -3
  213. package/dist/{dist-J4UWKVDM.js.map → dist-IB5HRZQW.js.map} +1 -1
  214. package/dist/{dist-QOH7MNRH.cjs → dist-RW46FX3B.cjs} +13 -13
  215. package/dist/{dist-QOH7MNRH.cjs.map → dist-RW46FX3B.cjs.map} +1 -1
  216. package/dist/dist-SOVT5P5X.js +3 -0
  217. package/dist/{dist-CB67HEFG.js.map → dist-SOVT5P5X.js.map} +1 -1
  218. package/dist/{dist-CIZY7VDE.cjs → dist-YPPUCXOD.cjs} +20 -20
  219. package/dist/{dist-CIZY7VDE.cjs.map → dist-YPPUCXOD.cjs.map} +1 -1
  220. package/dist/{dist-IPZQFQMB.js → dist-Z62354D3.js} +3 -3
  221. package/dist/{dist-IPZQFQMB.js.map → dist-Z62354D3.js.map} +1 -1
  222. package/dist/docs/SKILL.md +1 -1
  223. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  224. package/dist/{observational-memory-SF36C4XR-VIMLDSHT.cjs → observational-memory-OJN26RQ4-DTEVO3PP.cjs} +29 -29
  225. package/dist/{observational-memory-SF36C4XR-VIMLDSHT.cjs.map → observational-memory-OJN26RQ4-DTEVO3PP.cjs.map} +1 -1
  226. package/dist/{observational-memory-SF36C4XR-2DQQF4XZ.js → observational-memory-OJN26RQ4-QC5U3UMA.js} +3 -3
  227. package/dist/{observational-memory-SF36C4XR-2DQQF4XZ.js.map → observational-memory-OJN26RQ4-QC5U3UMA.js.map} +1 -1
  228. package/dist/server/handlers/a2a.cjs +14 -14
  229. package/dist/server/handlers/a2a.js +1 -1
  230. package/dist/server/handlers/agent-builder.cjs +17 -17
  231. package/dist/server/handlers/agent-builder.js +1 -1
  232. package/dist/server/handlers/agent-controller.cjs +35 -35
  233. package/dist/server/handlers/agent-controller.js +1 -1
  234. package/dist/server/handlers/agent-versions.cjs +8 -8
  235. package/dist/server/handlers/agent-versions.js +1 -1
  236. package/dist/server/handlers/agents.cjs +48 -48
  237. package/dist/server/handlers/agents.js +1 -1
  238. package/dist/server/handlers/auth.cjs +13 -13
  239. package/dist/server/handlers/auth.js +1 -1
  240. package/dist/server/handlers/background-tasks.cjs +4 -4
  241. package/dist/server/handlers/background-tasks.js +1 -1
  242. package/dist/server/handlers/builder-registry.cjs +6 -6
  243. package/dist/server/handlers/builder-registry.js +1 -1
  244. package/dist/server/handlers/channels.cjs +5 -5
  245. package/dist/server/handlers/channels.js +1 -1
  246. package/dist/server/handlers/conversations.cjs +5 -5
  247. package/dist/server/handlers/conversations.js +1 -1
  248. package/dist/server/handlers/datasets.cjs +26 -26
  249. package/dist/server/handlers/datasets.d.ts +16 -0
  250. package/dist/server/handlers/datasets.d.ts.map +1 -1
  251. package/dist/server/handlers/datasets.js +1 -1
  252. package/dist/server/handlers/editor-builder.cjs +6 -6
  253. package/dist/server/handlers/editor-builder.js +1 -1
  254. package/dist/server/handlers/favorites-enrichment.cjs +4 -4
  255. package/dist/server/handlers/favorites-enrichment.js +1 -1
  256. package/dist/server/handlers/logs.cjs +4 -4
  257. package/dist/server/handlers/logs.js +1 -1
  258. package/dist/server/handlers/mcp-client-versions.cjs +8 -8
  259. package/dist/server/handlers/mcp-client-versions.js +1 -1
  260. package/dist/server/handlers/mcp.cjs +11 -11
  261. package/dist/server/handlers/mcp.js +1 -1
  262. package/dist/server/handlers/memory.cjs +27 -27
  263. package/dist/server/handlers/memory.js +1 -1
  264. package/dist/server/handlers/observability-new-endpoints.cjs +29 -29
  265. package/dist/server/handlers/observability-new-endpoints.js +1 -1
  266. package/dist/server/handlers/observability-shared.cjs +9 -9
  267. package/dist/server/handlers/observability-shared.js +1 -1
  268. package/dist/server/handlers/observability.cjs +40 -40
  269. package/dist/server/handlers/observability.js +2 -2
  270. package/dist/server/handlers/processor-providers.cjs +3 -3
  271. package/dist/server/handlers/processor-providers.js +1 -1
  272. package/dist/server/handlers/processors.cjs +4 -4
  273. package/dist/server/handlers/processors.js +1 -1
  274. package/dist/server/handlers/prompt-block-versions.cjs +8 -8
  275. package/dist/server/handlers/prompt-block-versions.js +1 -1
  276. package/dist/server/handlers/responses.cjs +4 -4
  277. package/dist/server/handlers/responses.js +1 -1
  278. package/dist/server/handlers/schedules.cjs +10 -10
  279. package/dist/server/handlers/schedules.js +1 -1
  280. package/dist/server/handlers/scorer-versions.cjs +8 -8
  281. package/dist/server/handlers/scorer-versions.js +1 -1
  282. package/dist/server/handlers/scores.cjs +7 -7
  283. package/dist/server/handlers/scores.js +1 -1
  284. package/dist/server/handlers/stored-agent-favorites.cjs +3 -3
  285. package/dist/server/handlers/stored-agent-favorites.js +1 -1
  286. package/dist/server/handlers/stored-agents.cjs +10 -10
  287. package/dist/server/handlers/stored-agents.js +1 -1
  288. package/dist/server/handlers/stored-mcp-clients.cjs +6 -6
  289. package/dist/server/handlers/stored-mcp-clients.js +1 -1
  290. package/dist/server/handlers/stored-prompt-blocks.cjs +6 -6
  291. package/dist/server/handlers/stored-prompt-blocks.js +1 -1
  292. package/dist/server/handlers/stored-scorers.cjs +6 -6
  293. package/dist/server/handlers/stored-scorers.js +1 -1
  294. package/dist/server/handlers/stored-skill-favorites.cjs +3 -3
  295. package/dist/server/handlers/stored-skill-favorites.js +1 -1
  296. package/dist/server/handlers/stored-skills.cjs +7 -7
  297. package/dist/server/handlers/stored-skills.js +1 -1
  298. package/dist/server/handlers/stored-workspaces.cjs +6 -6
  299. package/dist/server/handlers/stored-workspaces.js +1 -1
  300. package/dist/server/handlers/system.cjs +3 -3
  301. package/dist/server/handlers/system.js +1 -1
  302. package/dist/server/handlers/tool-providers.cjs +14 -14
  303. package/dist/server/handlers/tool-providers.js +1 -1
  304. package/dist/server/handlers/tools.cjs +6 -6
  305. package/dist/server/handlers/tools.js +1 -1
  306. package/dist/server/handlers/vector.cjs +16 -16
  307. package/dist/server/handlers/vector.js +1 -1
  308. package/dist/server/handlers/workflows.cjs +27 -27
  309. package/dist/server/handlers/workflows.js +1 -1
  310. package/dist/server/handlers/workspace.cjs +26 -26
  311. package/dist/server/handlers/workspace.js +1 -1
  312. package/dist/server/handlers.cjs +28 -28
  313. package/dist/server/handlers.js +14 -14
  314. package/dist/server/schemas/datasets.d.ts +5 -0
  315. package/dist/server/schemas/datasets.d.ts.map +1 -1
  316. package/dist/server/schemas/index.cjs +43 -43
  317. package/dist/server/schemas/index.js +1 -1
  318. package/dist/server/server-adapter/index.cjs +21 -21
  319. package/dist/server/server-adapter/index.js +4 -4
  320. package/dist/server/server-adapter/routes/datasets.d.ts +16 -0
  321. package/dist/server/server-adapter/routes/datasets.d.ts.map +1 -1
  322. package/dist/working-memory-state-OMSMSYAW-6OXJFZFI.js +3 -0
  323. package/dist/{working-memory-state-OMSMSYAW-NEULPFZX.js.map → working-memory-state-OMSMSYAW-6OXJFZFI.js.map} +1 -1
  324. package/dist/working-memory-state-OMSMSYAW-GCNI4HPX.cjs +24 -0
  325. package/dist/{working-memory-state-OMSMSYAW-4THWAGFK.cjs.map → working-memory-state-OMSMSYAW-GCNI4HPX.cjs.map} +1 -1
  326. package/package.json +6 -6
  327. package/dist/chunk-2E3UBZ6Z.js.map +0 -1
  328. package/dist/chunk-BJESJLXW.cjs.map +0 -1
  329. package/dist/chunk-DMFYLU2A.js.map +0 -1
  330. package/dist/chunk-H4LV3HUC.js.map +0 -1
  331. package/dist/chunk-RRQZAJDZ.js.map +0 -1
  332. package/dist/chunk-TR2X57M3.cjs.map +0 -1
  333. package/dist/chunk-UY5FTPBZ.cjs.map +0 -1
  334. package/dist/chunk-X6ZXQ3MZ.cjs.map +0 -1
  335. package/dist/chunk-ZIFVFLJK.cjs +0 -744
  336. package/dist/dist-CB67HEFG.js +0 -3
  337. package/dist/dist-NYM3IQLY.cjs +0 -16
  338. package/dist/working-memory-state-OMSMSYAW-4THWAGFK.cjs +0 -24
  339. package/dist/working-memory-state-OMSMSYAW-NEULPFZX.js +0 -3
@@ -1455,7 +1455,7 @@ var require_dist = __commonJS({
1455
1455
  var t = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 48, 8, 96, 3, 127, 127, 127, 1, 127, 96, 3, 127, 127, 127, 0, 96, 2, 127, 127, 0, 96, 1, 127, 1, 127, 96, 3, 127, 127, 126, 1, 126, 96, 3, 126, 127, 127, 1, 126, 96, 2, 127, 126, 0, 96, 1, 127, 1, 126, 3, 11, 10, 0, 0, 2, 1, 3, 4, 5, 6, 1, 7, 5, 3, 1, 0, 1, 7, 85, 9, 3, 109, 101, 109, 2, 0, 5, 120, 120, 104, 51, 50, 0, 0, 6, 105, 110, 105, 116, 51, 50, 0, 2, 8, 117, 112, 100, 97, 116, 101, 51, 50, 0, 3, 8, 100, 105, 103, 101, 115, 116, 51, 50, 0, 4, 5, 120, 120, 104, 54, 52, 0, 5, 6, 105, 110, 105, 116, 54, 52, 0, 7, 8, 117, 112, 100, 97, 116, 101, 54, 52, 0, 8, 8, 100, 105, 103, 101, 115, 116, 54, 52, 0, 9, 10, 251, 22, 10, 242, 1, 1, 4, 127, 32, 0, 32, 1, 106, 33, 3, 32, 1, 65, 16, 79, 4, 127, 32, 3, 65, 16, 107, 33, 6, 32, 2, 65, 168, 136, 141, 161, 2, 106, 33, 3, 32, 2, 65, 137, 235, 208, 208, 7, 107, 33, 4, 32, 2, 65, 207, 140, 162, 142, 6, 106, 33, 5, 3, 64, 32, 3, 32, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 3, 32, 4, 32, 0, 65, 4, 106, 34, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 4, 32, 2, 32, 0, 65, 4, 106, 34, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 2, 32, 5, 32, 0, 65, 4, 106, 34, 0, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 5, 32, 6, 32, 0, 65, 4, 106, 34, 0, 79, 13, 0, 11, 32, 2, 65, 12, 119, 32, 5, 65, 18, 119, 106, 32, 4, 65, 7, 119, 106, 32, 3, 65, 1, 119, 106, 5, 32, 2, 65, 177, 207, 217, 178, 1, 106, 11, 32, 1, 106, 32, 0, 32, 1, 65, 15, 113, 16, 1, 11, 146, 1, 0, 32, 1, 32, 2, 106, 33, 2, 3, 64, 32, 1, 65, 4, 106, 32, 2, 75, 69, 4, 64, 32, 0, 32, 1, 40, 2, 0, 65, 189, 220, 202, 149, 124, 108, 106, 65, 17, 119, 65, 175, 214, 211, 190, 2, 108, 33, 0, 32, 1, 65, 4, 106, 33, 1, 12, 1, 11, 11, 3, 64, 32, 1, 32, 2, 79, 69, 4, 64, 32, 0, 32, 1, 45, 0, 0, 65, 177, 207, 217, 178, 1, 108, 106, 65, 11, 119, 65, 177, 243, 221, 241, 121, 108, 33, 0, 32, 1, 65, 1, 106, 33, 1, 12, 1, 11, 11, 32, 0, 32, 0, 65, 15, 118, 115, 65, 247, 148, 175, 175, 120, 108, 34, 0, 65, 13, 118, 32, 0, 115, 65, 189, 220, 202, 149, 124, 108, 34, 0, 65, 16, 118, 32, 0, 115, 11, 63, 0, 32, 0, 65, 8, 106, 32, 1, 65, 168, 136, 141, 161, 2, 106, 54, 2, 0, 32, 0, 65, 12, 106, 32, 1, 65, 137, 235, 208, 208, 7, 107, 54, 2, 0, 32, 0, 65, 16, 106, 32, 1, 54, 2, 0, 32, 0, 65, 20, 106, 32, 1, 65, 207, 140, 162, 142, 6, 106, 54, 2, 0, 11, 195, 4, 1, 6, 127, 32, 1, 32, 2, 106, 33, 6, 32, 0, 65, 24, 106, 33, 4, 32, 0, 65, 40, 106, 40, 2, 0, 33, 3, 32, 0, 32, 0, 40, 2, 0, 32, 2, 106, 54, 2, 0, 32, 0, 65, 4, 106, 34, 5, 32, 5, 40, 2, 0, 32, 2, 65, 16, 79, 32, 0, 40, 2, 0, 65, 16, 79, 114, 114, 54, 2, 0, 32, 2, 32, 3, 106, 65, 16, 73, 4, 64, 32, 3, 32, 4, 106, 32, 1, 32, 2, 252, 10, 0, 0, 32, 0, 65, 40, 106, 32, 2, 32, 3, 106, 54, 2, 0, 15, 11, 32, 3, 4, 64, 32, 3, 32, 4, 106, 32, 1, 65, 16, 32, 3, 107, 34, 2, 252, 10, 0, 0, 32, 0, 65, 8, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 12, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 65, 4, 106, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 16, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 65, 8, 106, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 20, 106, 34, 3, 32, 3, 40, 2, 0, 32, 4, 65, 12, 106, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 54, 2, 0, 32, 0, 65, 40, 106, 65, 0, 54, 2, 0, 32, 1, 32, 2, 106, 33, 1, 11, 32, 1, 32, 6, 65, 16, 107, 77, 4, 64, 32, 6, 65, 16, 107, 33, 8, 32, 0, 65, 8, 106, 40, 2, 0, 33, 2, 32, 0, 65, 12, 106, 40, 2, 0, 33, 3, 32, 0, 65, 16, 106, 40, 2, 0, 33, 5, 32, 0, 65, 20, 106, 40, 2, 0, 33, 7, 3, 64, 32, 2, 32, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 2, 32, 3, 32, 1, 65, 4, 106, 34, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 3, 32, 5, 32, 1, 65, 4, 106, 34, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 5, 32, 7, 32, 1, 65, 4, 106, 34, 1, 40, 2, 0, 65, 247, 148, 175, 175, 120, 108, 106, 65, 13, 119, 65, 177, 243, 221, 241, 121, 108, 33, 7, 32, 8, 32, 1, 65, 4, 106, 34, 1, 79, 13, 0, 11, 32, 0, 65, 8, 106, 32, 2, 54, 2, 0, 32, 0, 65, 12, 106, 32, 3, 54, 2, 0, 32, 0, 65, 16, 106, 32, 5, 54, 2, 0, 32, 0, 65, 20, 106, 32, 7, 54, 2, 0, 11, 32, 1, 32, 6, 73, 4, 64, 32, 4, 32, 1, 32, 6, 32, 1, 107, 34, 1, 252, 10, 0, 0, 32, 0, 65, 40, 106, 32, 1, 54, 2, 0, 11, 11, 97, 1, 1, 127, 32, 0, 65, 16, 106, 40, 2, 0, 33, 1, 32, 0, 65, 4, 106, 40, 2, 0, 4, 127, 32, 1, 65, 12, 119, 32, 0, 65, 20, 106, 40, 2, 0, 65, 18, 119, 106, 32, 0, 65, 12, 106, 40, 2, 0, 65, 7, 119, 106, 32, 0, 65, 8, 106, 40, 2, 0, 65, 1, 119, 106, 5, 32, 1, 65, 177, 207, 217, 178, 1, 106, 11, 32, 0, 40, 2, 0, 106, 32, 0, 65, 24, 106, 32, 0, 65, 40, 106, 40, 2, 0, 16, 1, 11, 255, 3, 2, 3, 126, 1, 127, 32, 0, 32, 1, 106, 33, 6, 32, 1, 65, 32, 79, 4, 126, 32, 6, 65, 32, 107, 33, 6, 32, 2, 66, 214, 235, 130, 238, 234, 253, 137, 245, 224, 0, 124, 33, 3, 32, 2, 66, 177, 169, 172, 193, 173, 184, 212, 166, 61, 125, 33, 4, 32, 2, 66, 249, 234, 208, 208, 231, 201, 161, 228, 225, 0, 124, 33, 5, 3, 64, 32, 3, 32, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 3, 32, 4, 32, 0, 65, 8, 106, 34, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 4, 32, 2, 32, 0, 65, 8, 106, 34, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 2, 32, 5, 32, 0, 65, 8, 106, 34, 0, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 5, 32, 6, 32, 0, 65, 8, 106, 34, 0, 79, 13, 0, 11, 32, 2, 66, 12, 137, 32, 5, 66, 18, 137, 124, 32, 4, 66, 7, 137, 124, 32, 3, 66, 1, 137, 124, 32, 3, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 4, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 2, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 5, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 5, 32, 2, 66, 197, 207, 217, 178, 241, 229, 186, 234, 39, 124, 11, 32, 1, 173, 124, 32, 0, 32, 1, 65, 31, 113, 16, 6, 11, 134, 2, 0, 32, 1, 32, 2, 106, 33, 2, 3, 64, 32, 2, 32, 1, 65, 8, 106, 79, 4, 64, 32, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 32, 0, 133, 66, 27, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 33, 0, 32, 1, 65, 8, 106, 33, 1, 12, 1, 11, 11, 32, 1, 65, 4, 106, 32, 2, 77, 4, 64, 32, 0, 32, 1, 53, 2, 0, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 23, 137, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 249, 243, 221, 241, 153, 246, 153, 171, 22, 124, 33, 0, 32, 1, 65, 4, 106, 33, 1, 11, 3, 64, 32, 1, 32, 2, 73, 4, 64, 32, 0, 32, 1, 49, 0, 0, 66, 197, 207, 217, 178, 241, 229, 186, 234, 39, 126, 133, 66, 11, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 0, 32, 1, 65, 1, 106, 33, 1, 12, 1, 11, 11, 32, 0, 32, 0, 66, 33, 136, 133, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 34, 0, 32, 0, 66, 29, 136, 133, 66, 249, 243, 221, 241, 153, 246, 153, 171, 22, 126, 34, 0, 32, 0, 66, 32, 136, 133, 11, 77, 0, 32, 0, 65, 8, 106, 32, 1, 66, 214, 235, 130, 238, 234, 253, 137, 245, 224, 0, 124, 55, 3, 0, 32, 0, 65, 16, 106, 32, 1, 66, 177, 169, 172, 193, 173, 184, 212, 166, 61, 125, 55, 3, 0, 32, 0, 65, 24, 106, 32, 1, 55, 3, 0, 32, 0, 65, 32, 106, 32, 1, 66, 249, 234, 208, 208, 231, 201, 161, 228, 225, 0, 124, 55, 3, 0, 11, 244, 4, 2, 3, 127, 4, 126, 32, 1, 32, 2, 106, 33, 5, 32, 0, 65, 40, 106, 33, 4, 32, 0, 65, 200, 0, 106, 40, 2, 0, 33, 3, 32, 0, 32, 0, 41, 3, 0, 32, 2, 173, 124, 55, 3, 0, 32, 2, 32, 3, 106, 65, 32, 73, 4, 64, 32, 3, 32, 4, 106, 32, 1, 32, 2, 252, 10, 0, 0, 32, 0, 65, 200, 0, 106, 32, 2, 32, 3, 106, 54, 2, 0, 15, 11, 32, 3, 4, 64, 32, 3, 32, 4, 106, 32, 1, 65, 32, 32, 3, 107, 34, 2, 252, 10, 0, 0, 32, 0, 65, 8, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 16, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 65, 8, 106, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 24, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 65, 16, 106, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 32, 106, 34, 3, 32, 3, 41, 3, 0, 32, 4, 65, 24, 106, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 55, 3, 0, 32, 0, 65, 200, 0, 106, 65, 0, 54, 2, 0, 32, 1, 32, 2, 106, 33, 1, 11, 32, 1, 65, 32, 106, 32, 5, 77, 4, 64, 32, 5, 65, 32, 107, 33, 2, 32, 0, 65, 8, 106, 41, 3, 0, 33, 6, 32, 0, 65, 16, 106, 41, 3, 0, 33, 7, 32, 0, 65, 24, 106, 41, 3, 0, 33, 8, 32, 0, 65, 32, 106, 41, 3, 0, 33, 9, 3, 64, 32, 6, 32, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 6, 32, 7, 32, 1, 65, 8, 106, 34, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 7, 32, 8, 32, 1, 65, 8, 106, 34, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 8, 32, 9, 32, 1, 65, 8, 106, 34, 1, 41, 3, 0, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 124, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 33, 9, 32, 2, 32, 1, 65, 8, 106, 34, 1, 79, 13, 0, 11, 32, 0, 65, 8, 106, 32, 6, 55, 3, 0, 32, 0, 65, 16, 106, 32, 7, 55, 3, 0, 32, 0, 65, 24, 106, 32, 8, 55, 3, 0, 32, 0, 65, 32, 106, 32, 9, 55, 3, 0, 11, 32, 1, 32, 5, 73, 4, 64, 32, 4, 32, 1, 32, 5, 32, 1, 107, 34, 1, 252, 10, 0, 0, 32, 0, 65, 200, 0, 106, 32, 1, 54, 2, 0, 11, 11, 188, 2, 1, 5, 126, 32, 0, 65, 24, 106, 41, 3, 0, 33, 1, 32, 0, 41, 3, 0, 34, 2, 66, 32, 90, 4, 126, 32, 0, 65, 8, 106, 41, 3, 0, 34, 3, 66, 1, 137, 32, 0, 65, 16, 106, 41, 3, 0, 34, 4, 66, 7, 137, 124, 32, 1, 66, 12, 137, 32, 0, 65, 32, 106, 41, 3, 0, 34, 5, 66, 18, 137, 124, 124, 32, 3, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 4, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 1, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 32, 5, 66, 207, 214, 211, 190, 210, 199, 171, 217, 66, 126, 66, 31, 137, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 133, 66, 135, 149, 175, 175, 152, 182, 222, 155, 158, 127, 126, 66, 157, 163, 181, 234, 131, 177, 141, 138, 250, 0, 125, 5, 32, 1, 66, 197, 207, 217, 178, 241, 229, 186, 234, 39, 124, 11, 32, 2, 124, 32, 0, 65, 40, 106, 32, 2, 66, 31, 131, 167, 16, 6, 11]);
1456
1456
  async function e() {
1457
1457
  return (function(t2) {
1458
- const { exports: { mem: e2, xxh32: n, xxh64: r, init32: i, update32: a, digest32: o, init64: s, update64: u3, digest64: c } } = t2;
1458
+ const { exports: { mem: e2, xxh32: n, xxh64: r, init32: i, update32: a, digest32: o, init64: s, update64: u, digest64: c } } = t2;
1459
1459
  let h = new Uint8Array(e2.buffer);
1460
1460
  function g(t3, n2) {
1461
1461
  if (e2.buffer.byteLength < t3 + n2) {
@@ -1475,17 +1475,17 @@ async function e() {
1475
1475
  return t3 >>> 0;
1476
1476
  }
1477
1477
  const b = 2n ** 64n - 1n;
1478
- function d(t3) {
1478
+ function d3(t3) {
1479
1479
  return t3 & b;
1480
1480
  }
1481
1481
  const w = new TextEncoder(), l = 0, p = 0n;
1482
- function x(t3, e3 = l) {
1482
+ function x2(t3, e3 = l) {
1483
1483
  return g(3 * t3.length, 0), y(n(0, w.encodeInto(t3, h).written, e3));
1484
1484
  }
1485
1485
  function L2(t3, e3 = p) {
1486
- return g(3 * t3.length, 0), d(r(0, w.encodeInto(t3, h).written, e3));
1486
+ return g(3 * t3.length, 0), d3(r(0, w.encodeInto(t3, h).written, e3));
1487
1487
  }
1488
- return { h32: x, h32ToString: (t3, e3 = l) => x(t3, e3).toString(16).padStart(8, "0"), h32Raw: (t3, e3 = l) => (g(t3.byteLength, 0), h.set(t3), y(n(0, t3.byteLength, e3))), create32: (t3 = l) => f(48, t3, i, a, o, y), h64: L2, h64ToString: (t3, e3 = p) => L2(t3, e3).toString(16).padStart(16, "0"), h64Raw: (t3, e3 = p) => (g(t3.byteLength, 0), h.set(t3), d(r(0, t3.byteLength, e3))), create64: (t3 = p) => f(88, t3, s, u3, c, d) };
1488
+ return { h32: x2, h32ToString: (t3, e3 = l) => x2(t3, e3).toString(16).padStart(8, "0"), h32Raw: (t3, e3 = l) => (g(t3.byteLength, 0), h.set(t3), y(n(0, t3.byteLength, e3))), create32: (t3 = l) => f(48, t3, i, a, o, y), h64: L2, h64ToString: (t3, e3 = p) => L2(t3, e3).toString(16).padStart(16, "0"), h64Raw: (t3, e3 = p) => (g(t3.byteLength, 0), h.set(t3), d3(r(0, t3.byteLength, e3))), create64: (t3 = p) => f(88, t3, s, u, c, d3) };
1489
1489
  })((await WebAssembly.instantiate(t)).instance);
1490
1490
  }
1491
1491
 
@@ -1745,34 +1745,34 @@ var Mutex = class {
1745
1745
  };
1746
1746
  var S = channel("lru-cache:metrics");
1747
1747
  var W = tracingChannel("lru-cache");
1748
- var C = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
1749
- var D = () => S.hasSubscribers || W.hasSubscribers;
1748
+ var L = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
1749
+ var R = () => S.hasSubscribers || W.hasSubscribers;
1750
1750
  var U = /* @__PURE__ */ new Set();
1751
- var L = typeof process == "object" && process ? process : {};
1752
- var P = (u3, e2, t2, i) => {
1753
- typeof L.emitWarning == "function" ? L.emitWarning(u3, e2, t2, i) : console.error(`[${t2}] ${e2}: ${u3}`);
1751
+ var M = typeof process == "object" && process ? process : {};
1752
+ var k = (d3, e2, t2, i) => {
1753
+ typeof M.emitWarning == "function" ? M.emitWarning(d3, e2, t2, i) : console.error(`[${t2}] ${e2}: ${d3}`);
1754
1754
  };
1755
- var H = (u3) => !U.has(u3);
1756
- var F = (u3) => !!u3 && u3 === Math.floor(u3) && u3 > 0 && isFinite(u3);
1757
- var j = (u3) => F(u3) ? u3 <= Math.pow(2, 8) ? Uint8Array : u3 <= Math.pow(2, 16) ? Uint16Array : u3 <= Math.pow(2, 32) ? Uint32Array : u3 <= Number.MAX_SAFE_INTEGER ? O : null : null;
1755
+ var H = (d3) => !U.has(d3);
1756
+ var T = (d3) => !!d3 && d3 === Math.floor(d3) && d3 > 0 && isFinite(d3);
1757
+ var j = (d3) => T(d3) ? d3 <= Math.pow(2, 8) ? Uint8Array : d3 <= Math.pow(2, 16) ? Uint16Array : d3 <= Math.pow(2, 32) ? Uint32Array : d3 <= Number.MAX_SAFE_INTEGER ? O : null : null;
1758
1758
  var O = class extends Array {
1759
1759
  constructor(e2) {
1760
1760
  super(e2), this.fill(0);
1761
1761
  }
1762
1762
  };
1763
- var R = class u {
1763
+ var x = class d {
1764
1764
  heap;
1765
1765
  length;
1766
1766
  static #o = false;
1767
1767
  static create(e2) {
1768
1768
  let t2 = j(e2);
1769
1769
  if (!t2) return [];
1770
- u.#o = true;
1771
- let i = new u(e2, t2);
1772
- return u.#o = false, i;
1770
+ d.#o = true;
1771
+ let i = new d(e2, t2);
1772
+ return d.#o = false, i;
1773
1773
  }
1774
1774
  constructor(e2, t2) {
1775
- if (!u.#o) throw new TypeError("instantiate Stack using Stack.create(n)");
1775
+ if (!d.#o) throw new TypeError("instantiate Stack using Stack.create(n)");
1776
1776
  this.heap = new t2(e2), this.length = 0;
1777
1777
  }
1778
1778
  push(e2) {
@@ -1782,14 +1782,14 @@ var R = class u {
1782
1782
  return this.heap[--this.length];
1783
1783
  }
1784
1784
  };
1785
- var M = class u2 {
1785
+ var I = class d2 {
1786
1786
  #o;
1787
- #u;
1788
- #w;
1789
- #x;
1787
+ #c;
1790
1788
  #S;
1789
+ #O;
1790
+ #w;
1791
1791
  #M;
1792
- #U;
1792
+ #I;
1793
1793
  #m;
1794
1794
  get perf() {
1795
1795
  return this.#m;
@@ -1809,14 +1809,15 @@ var M = class u2 {
1809
1809
  allowStaleOnFetchAbort;
1810
1810
  allowStaleOnFetchRejection;
1811
1811
  ignoreFetchAbort;
1812
+ backgroundFetchSize;
1812
1813
  #n;
1813
1814
  #b;
1814
1815
  #s;
1815
1816
  #i;
1816
1817
  #t;
1817
- #a;
1818
- #c;
1819
1818
  #l;
1819
+ #u;
1820
+ #a;
1820
1821
  #h;
1821
1822
  #y;
1822
1823
  #r;
@@ -1825,12 +1826,12 @@ var M = class u2 {
1825
1826
  #d;
1826
1827
  #g;
1827
1828
  #T;
1828
- #W;
1829
+ #U;
1829
1830
  #f;
1830
- #j;
1831
+ #D;
1831
1832
  static unsafeExposeInternals(e2) {
1832
- return { starts: e2.#F, ttls: e2.#d, autopurgeTimers: e2.#g, sizes: e2.#_, keyMap: e2.#s, keyList: e2.#i, valList: e2.#t, next: e2.#a, prev: e2.#c, get head() {
1833
- return e2.#l;
1833
+ return { starts: e2.#F, ttls: e2.#d, autopurgeTimers: e2.#g, sizes: e2.#_, keyMap: e2.#s, keyList: e2.#i, valList: e2.#t, next: e2.#l, prev: e2.#u, get head() {
1834
+ return e2.#a;
1834
1835
  }, get tail() {
1835
1836
  return e2.#h;
1836
1837
  }, free: e2.#y, isBackgroundFetch: (t2) => e2.#e(t2), backgroundFetch: (t2, i, s, n) => e2.#P(t2, i, s, n), moveToTail: (t2) => e2.#L(t2), indexes: (t2) => e2.#A(t2), rindexes: (t2) => e2.#z(t2), isStale: (t2) => e2.#p(t2) };
@@ -1839,7 +1840,7 @@ var M = class u2 {
1839
1840
  return this.#o;
1840
1841
  }
1841
1842
  get maxSize() {
1842
- return this.#u;
1843
+ return this.#c;
1843
1844
  }
1844
1845
  get calculatedSize() {
1845
1846
  return this.#b;
@@ -1851,134 +1852,139 @@ var M = class u2 {
1851
1852
  return this.#M;
1852
1853
  }
1853
1854
  get memoMethod() {
1854
- return this.#U;
1855
+ return this.#I;
1855
1856
  }
1856
1857
  get dispose() {
1857
- return this.#w;
1858
+ return this.#S;
1858
1859
  }
1859
1860
  get onInsert() {
1860
- return this.#x;
1861
+ return this.#O;
1861
1862
  }
1862
1863
  get disposeAfter() {
1863
- return this.#S;
1864
+ return this.#w;
1864
1865
  }
1865
1866
  constructor(e2) {
1866
- let { max: t2 = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: r, allowStale: h, dispose: l, onInsert: c, disposeAfter: f, noDisposeOnSet: g, noUpdateTTL: p, maxSize: T = 0, maxEntrySize: w = 0, sizeCalculation: y, fetchMethod: a, memoMethod: m, noDeleteOnFetchRejection: _, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: d, allowStaleOnFetchAbort: A, ignoreFetchAbort: z2, perf: x } = e2;
1867
- if (x !== void 0 && typeof x?.now != "function") throw new TypeError("perf option must have a now() method if specified");
1868
- if (this.#m = x ?? C, t2 !== 0 && !F(t2)) throw new TypeError("max option must be a nonnegative integer");
1867
+ let { max: t2 = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: o, updateAgeOnHas: l, allowStale: h, dispose: r, onInsert: c, disposeAfter: m, noDisposeOnSet: _, noUpdateTTL: u, maxSize: g = 0, maxEntrySize: f = 0, sizeCalculation: y, fetchMethod: a, memoMethod: w, noDeleteOnFetchRejection: F, noDeleteOnStaleGet: b, allowStaleOnFetchRejection: p, allowStaleOnFetchAbort: A, ignoreFetchAbort: z2, backgroundFetchSize: C = 1, perf: E } = e2;
1868
+ if (this.backgroundFetchSize = C, E !== void 0 && typeof E?.now != "function") throw new TypeError("perf option must have a now() method if specified");
1869
+ if (this.#m = E ?? L, t2 !== 0 && !T(t2)) throw new TypeError("max option must be a nonnegative integer");
1869
1870
  let v = t2 ? j(t2) : Array;
1870
1871
  if (!v) throw new Error("invalid max value: " + t2);
1871
- if (this.#o = t2, this.#u = T, this.maxEntrySize = w || this.#u, this.sizeCalculation = y, this.sizeCalculation) {
1872
- if (!this.#u && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
1872
+ if (this.#o = t2, this.#c = g, this.maxEntrySize = f || this.#c, this.sizeCalculation = y, this.sizeCalculation) {
1873
+ if (!this.#c && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
1873
1874
  if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
1874
1875
  }
1875
- if (m !== void 0 && typeof m != "function") throw new TypeError("memoMethod must be a function if defined");
1876
- if (this.#U = m, a !== void 0 && typeof a != "function") throw new TypeError("fetchMethod must be a function if specified");
1877
- if (this.#M = a, this.#W = !!a, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: t2 }).fill(void 0), this.#t = Array.from({ length: t2 }).fill(void 0), this.#a = new v(t2), this.#c = new v(t2), this.#l = 0, this.#h = 0, this.#y = R.create(t2), this.#n = 0, this.#b = 0, typeof l == "function" && (this.#w = l), typeof c == "function" && (this.#x = c), typeof f == "function" ? (this.#S = f, this.#r = []) : (this.#S = void 0, this.#r = void 0), this.#T = !!this.#w, this.#j = !!this.#x, this.#f = !!this.#S, this.noDisposeOnSet = !!g, this.noUpdateTTL = !!p, this.noDeleteOnFetchRejection = !!_, this.allowStaleOnFetchRejection = !!d, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z2, this.maxEntrySize !== 0) {
1878
- if (this.#u !== 0 && !F(this.#u)) throw new TypeError("maxSize must be a positive integer if specified");
1879
- if (!F(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
1876
+ if (w !== void 0 && typeof w != "function") throw new TypeError("memoMethod must be a function if defined");
1877
+ if (this.#I = w, a !== void 0 && typeof a != "function") throw new TypeError("fetchMethod must be a function if specified");
1878
+ if (this.#M = a, this.#U = !!a, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: t2 }).fill(void 0), this.#t = Array.from({ length: t2 }).fill(void 0), this.#l = new v(t2), this.#u = new v(t2), this.#a = 0, this.#h = 0, this.#y = x.create(t2), this.#n = 0, this.#b = 0, typeof r == "function" && (this.#S = r), typeof c == "function" && (this.#O = c), typeof m == "function" ? (this.#w = m, this.#r = []) : (this.#w = void 0, this.#r = void 0), this.#T = !!this.#S, this.#D = !!this.#O, this.#f = !!this.#w, this.noDisposeOnSet = !!_, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!F, this.allowStaleOnFetchRejection = !!p, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z2, this.maxEntrySize !== 0) {
1879
+ if (this.#c !== 0 && !T(this.#c)) throw new TypeError("maxSize must be a positive integer if specified");
1880
+ if (!T(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
1880
1881
  this.#X();
1881
1882
  }
1882
- if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!r, this.ttlResolution = F(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
1883
- if (!F(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
1884
- this.#H();
1883
+ if (this.allowStale = !!h, this.noDeleteOnStaleGet = !!b, this.updateAgeOnGet = !!o, this.updateAgeOnHas = !!l, this.ttlResolution = T(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
1884
+ if (!T(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
1885
+ this.#k();
1885
1886
  }
1886
- if (this.#o === 0 && this.ttl === 0 && this.#u === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
1887
- if (!this.ttlAutopurge && !this.#o && !this.#u) {
1888
- let E = "LRU_CACHE_UNBOUNDED";
1889
- H(E) && (U.add(E), P("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", E, u2));
1887
+ if (this.#o === 0 && this.ttl === 0 && this.#c === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
1888
+ if (!this.ttlAutopurge && !this.#o && !this.#c) {
1889
+ let D = "LRU_CACHE_UNBOUNDED";
1890
+ H(D) && (U.add(D), k("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", D, d2));
1890
1891
  }
1891
1892
  }
1892
1893
  getRemainingTTL(e2) {
1893
1894
  return this.#s.has(e2) ? 1 / 0 : 0;
1894
1895
  }
1895
- #H() {
1896
+ #k() {
1896
1897
  let e2 = new O(this.#o), t2 = new O(this.#o);
1897
1898
  this.#d = e2, this.#F = t2;
1898
1899
  let i = this.ttlAutopurge ? Array.from({ length: this.#o }) : void 0;
1899
- this.#g = i, this.#N = (r, h, l = this.#m.now()) => {
1900
- t2[r] = h !== 0 ? l : 0, e2[r] = h, s(r, h);
1901
- }, this.#D = (r) => {
1902
- t2[r] = e2[r] !== 0 ? this.#m.now() : 0, s(r, e2[r]);
1903
- };
1904
- let s = this.ttlAutopurge ? (r, h) => {
1905
- if (i?.[r] && (clearTimeout(i[r]), i[r] = void 0), h && h !== 0 && i) {
1906
- let l = setTimeout(() => {
1907
- this.#p(r) && this.#v(this.#i[r], "expire");
1908
- }, h + 1);
1909
- l.unref && l.unref(), i[r] = l;
1900
+ this.#g = i, this.#H = (h, r, c = this.#m.now()) => {
1901
+ t2[h] = r !== 0 ? c : 0, e2[h] = r, s(h, r);
1902
+ }, this.#R = (h) => {
1903
+ t2[h] = e2[h] !== 0 ? this.#m.now() : 0, s(h, e2[h]);
1904
+ };
1905
+ let s = this.ttlAutopurge ? (h, r) => {
1906
+ if (i?.[h] && (clearTimeout(i[h]), i[h] = void 0), r && r !== 0 && i) {
1907
+ let c = setTimeout(() => {
1908
+ this.#p(h) ? (this.#E(this.#i[h], "expire"), i[h] = void 0) : s(h, l(h));
1909
+ }, r + 1);
1910
+ c.unref && c.unref(), i[h] = c;
1910
1911
  }
1911
1912
  } : () => {
1912
1913
  };
1913
- this.#E = (r, h) => {
1914
- if (e2[h]) {
1915
- let l = e2[h], c = t2[h];
1916
- if (!l || !c) return;
1917
- r.ttl = l, r.start = c, r.now = n || o();
1918
- let f = r.now - c;
1919
- r.remainingTTL = l - f;
1914
+ this.#v = (h, r) => {
1915
+ if (e2[r]) {
1916
+ let c = e2[r], m = t2[r];
1917
+ if (!c || !m) return;
1918
+ h.ttl = c, h.start = m, h.now = n || o();
1919
+ let _ = h.now - m;
1920
+ h.remainingTTL = c - _;
1920
1921
  }
1921
1922
  };
1922
1923
  let n = 0, o = () => {
1923
- let r = this.#m.now();
1924
+ let h = this.#m.now();
1924
1925
  if (this.ttlResolution > 0) {
1925
- n = r;
1926
- let h = setTimeout(() => n = 0, this.ttlResolution);
1927
- h.unref && h.unref();
1926
+ n = h;
1927
+ let r = setTimeout(() => n = 0, this.ttlResolution);
1928
+ r.unref && r.unref();
1928
1929
  }
1929
- return r;
1930
+ return h;
1931
+ };
1932
+ this.getRemainingTTL = (h) => {
1933
+ let r = this.#s.get(h);
1934
+ return r === void 0 ? 0 : l(r);
1930
1935
  };
1931
- this.getRemainingTTL = (r) => {
1932
- let h = this.#s.get(r);
1933
- if (h === void 0) return 0;
1934
- let l = e2[h], c = t2[h];
1935
- if (!l || !c) return 1 / 0;
1936
- let f = (n || o()) - c;
1937
- return l - f;
1938
- }, this.#p = (r) => {
1939
- let h = t2[r], l = e2[r];
1940
- return !!l && !!h && (n || o()) - h > l;
1936
+ let l = (h) => {
1937
+ let r = e2[h], c = t2[h];
1938
+ if (!r || !c) return 1 / 0;
1939
+ let m = (n || o()) - c;
1940
+ return r - m;
1941
+ };
1942
+ this.#p = (h) => {
1943
+ let r = t2[h], c = e2[h];
1944
+ return !!c && !!r && (n || o()) - r > c;
1941
1945
  };
1942
1946
  }
1943
- #D = () => {
1947
+ #R = () => {
1944
1948
  };
1945
- #E = () => {
1949
+ #v = () => {
1946
1950
  };
1947
- #N = () => {
1951
+ #H = () => {
1948
1952
  };
1949
1953
  #p = () => false;
1950
1954
  #X() {
1951
1955
  let e2 = new O(this.#o);
1952
- this.#b = 0, this.#_ = e2, this.#R = (t2) => {
1956
+ this.#b = 0, this.#_ = e2, this.#x = (t2) => {
1953
1957
  this.#b -= e2[t2], e2[t2] = 0;
1954
- }, this.#k = (t2, i, s, n) => {
1955
- if (this.#e(i)) return 0;
1956
- if (!F(s)) if (n) {
1957
- if (typeof n != "function") throw new TypeError("sizeCalculation must be a function");
1958
- if (s = n(i, t2), !F(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
1959
- } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
1958
+ }, this.#N = (t2, i, s, n) => {
1959
+ if (!T(s)) {
1960
+ if (this.#e(i)) return this.backgroundFetchSize;
1961
+ if (n) {
1962
+ if (typeof n != "function") throw new TypeError("sizeCalculation must be a function");
1963
+ if (s = n(i, t2), !T(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
1964
+ } else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
1965
+ }
1960
1966
  return s;
1961
- }, this.#I = (t2, i, s) => {
1962
- if (e2[t2] = i, this.#u) {
1963
- let n = this.#u - e2[t2];
1967
+ }, this.#j = (t2, i, s) => {
1968
+ if (e2[t2] = i, this.#c) {
1969
+ let n = this.#c - e2[t2];
1964
1970
  for (; this.#b > n; ) this.#G(true);
1965
1971
  }
1966
1972
  this.#b += e2[t2], s && (s.entrySize = i, s.totalCalculatedSize = this.#b);
1967
1973
  };
1968
1974
  }
1969
- #R = (e2) => {
1975
+ #x = (e2) => {
1970
1976
  };
1971
- #I = (e2, t2, i) => {
1977
+ #j = (e2, t2, i) => {
1972
1978
  };
1973
- #k = (e2, t2, i, s) => {
1979
+ #N = (e2, t2, i, s) => {
1974
1980
  if (i || s) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
1975
1981
  return 0;
1976
1982
  };
1977
1983
  *#A({ allowStale: e2 = this.allowStale } = {}) {
1978
- if (this.#n) for (let t2 = this.#h; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#l); ) t2 = this.#c[t2];
1984
+ if (this.#n) for (let t2 = this.#h; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#a); ) t2 = this.#u[t2];
1979
1985
  }
1980
1986
  *#z({ allowStale: e2 = this.allowStale } = {}) {
1981
- if (this.#n) for (let t2 = this.#l; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#h); ) t2 = this.#a[t2];
1987
+ if (this.#n) for (let t2 = this.#a; this.#V(t2) && ((e2 || !this.#p(t2)) && (yield t2), t2 !== this.#h); ) t2 = this.#l[t2];
1982
1988
  }
1983
1989
  #V(e2) {
1984
1990
  return e2 !== void 0 && this.#s.get(this.#i[e2]) === e2;
@@ -2031,7 +2037,7 @@ var M = class u2 {
2031
2037
  }
2032
2038
  purgeStale() {
2033
2039
  let e2 = false;
2034
- for (let t2 of this.#z({ allowStale: true })) this.#p(t2) && (this.#v(this.#i[t2], "expire"), e2 = true);
2040
+ for (let t2 of this.#z({ allowStale: true })) this.#p(t2) && (this.#E(this.#i[t2], "expire"), e2 = true);
2035
2041
  return e2;
2036
2042
  }
2037
2043
  info(e2) {
@@ -2041,9 +2047,9 @@ var M = class u2 {
2041
2047
  if (s === void 0) return;
2042
2048
  let n = { value: s };
2043
2049
  if (this.#d && this.#F) {
2044
- let o = this.#d[t2], r = this.#F[t2];
2045
- if (o && r) {
2046
- let h = o - (this.#m.now() - r);
2050
+ let o = this.#d[t2], l = this.#F[t2];
2051
+ if (o && l) {
2052
+ let h = o - (this.#m.now() - l);
2047
2053
  n.ttl = h, n.start = Date.now();
2048
2054
  }
2049
2055
  }
@@ -2057,8 +2063,8 @@ var M = class u2 {
2057
2063
  let o = { value: n };
2058
2064
  if (this.#d && this.#F) {
2059
2065
  o.ttl = this.#d[t2];
2060
- let r = this.#m.now() - this.#F[t2];
2061
- o.start = Math.floor(Date.now() - r);
2066
+ let l = this.#m.now() - this.#F[t2];
2067
+ o.start = Math.floor(Date.now() - l);
2062
2068
  }
2063
2069
  this.#_ && (o.size = this.#_[t2]), e2.unshift([i, o]);
2064
2070
  }
@@ -2071,51 +2077,49 @@ var M = class u2 {
2071
2077
  let s = Date.now() - i.start;
2072
2078
  i.start = this.#m.now() - s;
2073
2079
  }
2074
- this.#O(t2, i.value, i);
2080
+ this.#W(t2, i.value, i);
2075
2081
  }
2076
2082
  }
2077
2083
  set(e2, t2, i = {}) {
2078
2084
  let { status: s = S.hasSubscribers ? {} : void 0 } = i;
2079
- i.status = s, s && (s.op = "set", s.key = e2, t2 !== void 0 && (s.value = t2));
2080
- let n = this.#O(e2, t2, i);
2085
+ i.status = s, s && (s.op = "set", s.key = e2, t2 !== void 0 && (s.value = t2), s.cache = this);
2086
+ let n = this.#W(e2, t2, i);
2081
2087
  return s && S.hasSubscribers && S.publish(s), n;
2082
2088
  }
2083
- #O(e2, t2, i = {}) {
2084
- let { ttl: s = this.ttl, start: n, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: r = this.sizeCalculation, status: h } = i;
2085
- if (t2 === void 0) return h && (h.set = "deleted"), this.delete(e2), this;
2086
- let { noUpdateTTL: l = this.noUpdateTTL } = i;
2087
- h && !this.#e(t2) && (h.value = t2);
2088
- let c = this.#k(e2, t2, i.size || 0, r, h);
2089
- if (this.maxEntrySize && c > this.maxEntrySize) return this.#v(e2, "set"), h && (h.set = "miss", h.maxEntrySizeExceeded = true), this;
2090
- let f = this.#n === 0 ? void 0 : this.#s.get(e2);
2091
- if (f === void 0) f = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[f] = e2, this.#t[f] = t2, this.#s.set(e2, f), this.#a[this.#h] = f, this.#c[f] = this.#h, this.#h = f, this.#n++, this.#I(f, c, h), h && (h.set = "add"), l = false, this.#j && this.#x?.(t2, e2, "add");
2089
+ #W(e2, t2, i, s) {
2090
+ let { ttl: n = this.ttl, start: o, noDisposeOnSet: l = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: r } = i, c = this.#e(t2);
2091
+ if (t2 === void 0) return r && (r.set = "deleted"), this.delete(e2), this;
2092
+ let { noUpdateTTL: m = this.noUpdateTTL } = i;
2093
+ r && !c && (r.value = t2);
2094
+ let _ = this.#N(e2, t2, i.size || 0, h, r);
2095
+ if (this.maxEntrySize && _ > this.maxEntrySize) return this.#E(e2, "set"), r && (r.set = "miss", r.maxEntrySizeExceeded = true), this;
2096
+ let u = this.#n === 0 ? void 0 : this.#s.get(e2);
2097
+ if (u === void 0) u = this.#n === 0 ? this.#h : this.#y.length !== 0 ? this.#y.pop() : this.#n === this.#o ? this.#G(false) : this.#n, this.#i[u] = e2, this.#t[u] = t2, this.#s.set(e2, u), this.#l[this.#h] = u, this.#u[u] = this.#h, this.#h = u, this.#n++, this.#j(u, _, r), r && (r.set = "add"), m = false, this.#D && !c && this.#O?.(t2, e2, "add");
2092
2098
  else {
2093
- this.#L(f);
2094
- let g = this.#t[f];
2099
+ this.#L(u);
2100
+ let g = this.#t[u];
2095
2101
  if (t2 !== g) {
2096
- if (this.#W && this.#e(g)) {
2097
- g.__abortController.abort(new Error("replaced"));
2098
- let { __staleWhileFetching: p } = g;
2099
- p !== void 0 && !o && (this.#T && this.#w?.(p, e2, "set"), this.#f && this.#r?.push([p, e2, "set"]));
2100
- } else o || (this.#T && this.#w?.(g, e2, "set"), this.#f && this.#r?.push([g, e2, "set"]));
2101
- if (this.#R(f), this.#I(f, c, h), this.#t[f] = t2, h) {
2102
- h.set = "replace";
2103
- let p = g && this.#e(g) ? g.__staleWhileFetching : g;
2104
- p !== void 0 && (h.oldValue = p);
2105
- }
2106
- } else h && (h.set = "update");
2107
- this.#j && this.onInsert?.(t2, e2, t2 === g ? "update" : "replace");
2108
- }
2109
- if (s !== 0 && !this.#d && this.#H(), this.#d && (l || this.#N(f, s, n), h && this.#E(h, f)), !o && this.#f && this.#r) {
2110
- let g = this.#r, p;
2111
- for (; p = g?.shift(); ) this.#S?.(...p);
2102
+ if (!l) if (this.#e(g)) {
2103
+ g !== s && g.__abortController.abort(new Error("replaced"));
2104
+ let { __staleWhileFetching: f } = g;
2105
+ f !== void 0 && f !== t2 && (this.#T && this.#S?.(f, e2, "set"), this.#f && this.#r?.push([f, e2, "set"]));
2106
+ } else this.#T && this.#S?.(g, e2, "set"), this.#f && this.#r?.push([g, e2, "set"]);
2107
+ if (this.#x(u), this.#j(u, _, r), this.#t[u] = t2, !c) {
2108
+ let f = g && this.#e(g) ? g.__staleWhileFetching : g, y = f === void 0 ? "add" : t2 !== f ? "replace" : "update";
2109
+ r && (r.set = y, f !== void 0 && (r.oldValue = f)), this.#D && this.onInsert?.(t2, e2, y);
2110
+ }
2111
+ } else c || (r && (r.set = "update"), this.#D && this.onInsert?.(t2, e2, "update"));
2112
+ }
2113
+ if (n !== 0 && !this.#d && this.#k(), this.#d && (m || this.#H(u, n, o), r && this.#v(r, u)), !l && this.#f && this.#r) {
2114
+ let g = this.#r, f;
2115
+ for (; f = g?.shift(); ) this.#w?.(...f);
2112
2116
  }
2113
2117
  return this;
2114
2118
  }
2115
2119
  pop() {
2116
2120
  try {
2117
2121
  for (; this.#n; ) {
2118
- let e2 = this.#t[this.#l];
2122
+ let e2 = this.#t[this.#a];
2119
2123
  if (this.#G(true), this.#e(e2)) {
2120
2124
  if (e2.__staleWhileFetching) return e2.__staleWhileFetching;
2121
2125
  } else if (e2 !== void 0) return e2;
@@ -2123,17 +2127,19 @@ var M = class u2 {
2123
2127
  } finally {
2124
2128
  if (this.#f && this.#r) {
2125
2129
  let e2 = this.#r, t2;
2126
- for (; t2 = e2?.shift(); ) this.#S?.(...t2);
2130
+ for (; t2 = e2?.shift(); ) this.#w?.(...t2);
2127
2131
  }
2128
2132
  }
2129
2133
  }
2130
2134
  #G(e2) {
2131
- let t2 = this.#l, i = this.#i[t2], s = this.#t[t2];
2132
- return this.#W && this.#e(s) ? s.__abortController.abort(new Error("evicted")) : (this.#T || this.#f) && (this.#T && this.#w?.(s, i, "evict"), this.#f && this.#r?.push([s, i, "evict"])), this.#R(t2), this.#g?.[t2] && (clearTimeout(this.#g[t2]), this.#g[t2] = void 0), e2 && (this.#i[t2] = void 0, this.#t[t2] = void 0, this.#y.push(t2)), this.#n === 1 ? (this.#l = this.#h = 0, this.#y.length = 0) : this.#l = this.#a[t2], this.#s.delete(i), this.#n--, t2;
2135
+ let t2 = this.#a, i = this.#i[t2], s = this.#t[t2], n = this.#e(s);
2136
+ n && s.__abortController.abort(new Error("evicted"));
2137
+ let o = n ? s.__staleWhileFetching : s;
2138
+ return (this.#T || this.#f) && o !== void 0 && (this.#T && this.#S?.(o, i, "evict"), this.#f && this.#r?.push([o, i, "evict"])), this.#x(t2), this.#g?.[t2] && (clearTimeout(this.#g[t2]), this.#g[t2] = void 0), e2 && (this.#i[t2] = void 0, this.#t[t2] = void 0, this.#y.push(t2)), this.#n === 1 ? (this.#a = this.#h = 0, this.#y.length = 0) : this.#a = this.#l[t2], this.#s.delete(i), this.#n--, t2;
2133
2139
  }
2134
2140
  has(e2, t2 = {}) {
2135
2141
  let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
2136
- t2.status = i, i && (i.op = "has", i.key = e2);
2142
+ t2.status = i, i && (i.op = "has", i.key = e2, i.cache = this);
2137
2143
  let s = this.#Y(e2, t2);
2138
2144
  return S.hasSubscribers && S.publish(i), s;
2139
2145
  }
@@ -2142,14 +2148,14 @@ var M = class u2 {
2142
2148
  if (n !== void 0) {
2143
2149
  let o = this.#t[n];
2144
2150
  if (this.#e(o) && o.__staleWhileFetching === void 0) return false;
2145
- if (this.#p(n)) s && (s.has = "stale", this.#E(s, n));
2146
- else return i && this.#D(n), s && (s.has = "hit", this.#E(s, n)), true;
2151
+ if (this.#p(n)) s && (s.has = "stale", this.#v(s, n));
2152
+ else return i && this.#R(n), s && (s.has = "hit", this.#v(s, n)), true;
2147
2153
  } else s && (s.has = "miss");
2148
2154
  return false;
2149
2155
  }
2150
2156
  peek(e2, t2 = {}) {
2151
- let { status: i = D() ? {} : void 0 } = t2;
2152
- i && (i.op = "peek", i.key = e2), t2.status = i;
2157
+ let { status: i = R() ? {} : void 0 } = t2;
2158
+ i && (i.op = "peek", i.key = e2, i.cache = this), t2.status = i;
2153
2159
  let s = this.#J(e2, t2);
2154
2160
  return S.hasSubscribers && S.publish(i), s;
2155
2161
  }
@@ -2159,67 +2165,67 @@ var M = class u2 {
2159
2165
  i && (i.peek = n === void 0 ? "miss" : "stale");
2160
2166
  return;
2161
2167
  }
2162
- let o = this.#t[n], r = this.#e(o) ? o.__staleWhileFetching : o;
2163
- return i && (r !== void 0 ? (i.peek = "hit", i.value = r) : i.peek = "miss"), r;
2168
+ let o = this.#t[n], l = this.#e(o) ? o.__staleWhileFetching : o;
2169
+ return i && (l !== void 0 ? (i.peek = "hit", i.value = l) : i.peek = "miss"), l;
2164
2170
  }
2165
2171
  #P(e2, t2, i, s) {
2166
2172
  let n = t2 === void 0 ? void 0 : this.#t[t2];
2167
2173
  if (this.#e(n)) return n;
2168
- let o = new AbortController(), { signal: r } = i;
2169
- r?.addEventListener("abort", () => o.abort(r.reason), { signal: o.signal });
2170
- let h = { signal: o.signal, options: i, context: s }, l = (w, y = false) => {
2171
- let { aborted: a } = o.signal, m = i.ignoreFetchAbort && w !== void 0, _ = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && w !== void 0);
2172
- if (i.status && (a && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason, m && (i.status.fetchAbortIgnored = true)) : i.status.fetchResolved = true), a && !m && !y) return f(o.signal.reason, _);
2173
- let b = p, d = this.#t[t2];
2174
- return (d === p || d === void 0 && m && y) && (w === void 0 ? b.__staleWhileFetching !== void 0 ? this.#t[t2] = b.__staleWhileFetching : this.#v(e2, "fetch") : (i.status && (i.status.fetchUpdated = true), this.#O(e2, w, h.options))), w;
2175
- }, c = (w) => (i.status && (i.status.fetchRejected = true, i.status.fetchError = w), f(w, false)), f = (w, y) => {
2176
- let { aborted: a } = o.signal, m = a && i.allowStaleOnFetchAbort, _ = m || i.allowStaleOnFetchRejection, b = _ || i.noDeleteOnFetchRejection, d = p;
2177
- if (this.#t[t2] === p && (!b || !y && d.__staleWhileFetching === void 0 ? this.#v(e2, "fetch") : m || (this.#t[t2] = d.__staleWhileFetching)), _) return i.status && d.__staleWhileFetching !== void 0 && (i.status.returnedStale = true), d.__staleWhileFetching;
2178
- if (d.__returned === d) throw w;
2179
- }, g = (w, y) => {
2174
+ let o = new AbortController(), { signal: l } = i;
2175
+ l?.addEventListener("abort", () => o.abort(l.reason), { signal: o.signal });
2176
+ let h = { signal: o.signal, options: i, context: s }, r = (f, y = false) => {
2177
+ let { aborted: a } = o.signal, w = i.ignoreFetchAbort && f !== void 0, F = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && f !== void 0);
2178
+ if (i.status && (a && !y ? (i.status.fetchAborted = true, i.status.fetchError = o.signal.reason, w && (i.status.fetchAbortIgnored = true)) : i.status.fetchResolved = true), a && !w && !y) return m(o.signal.reason, F);
2179
+ let b = u, p = this.#t[t2];
2180
+ return (p === u || p === void 0 && w && y) && (f === void 0 ? b.__staleWhileFetching !== void 0 ? this.#t[t2] = b.__staleWhileFetching : this.#E(e2, "fetch") : (i.status && (i.status.fetchUpdated = true), this.#W(e2, f, h.options, b))), f;
2181
+ }, c = (f) => (i.status && (i.status.fetchRejected = true, i.status.fetchError = f), m(f, false)), m = (f, y) => {
2182
+ let { aborted: a } = o.signal, w = a && i.allowStaleOnFetchAbort, F = w || i.allowStaleOnFetchRejection, b = F || i.noDeleteOnFetchRejection, p = u;
2183
+ if (this.#t[t2] === u && (!b || !y && p.__staleWhileFetching === void 0 ? this.#E(e2, "fetch") : w || (this.#t[t2] = p.__staleWhileFetching)), F) return i.status && p.__staleWhileFetching !== void 0 && (i.status.returnedStale = true), p.__staleWhileFetching;
2184
+ if (p.__returned === p) throw f;
2185
+ }, _ = (f, y) => {
2180
2186
  let a = this.#M?.(e2, n, h);
2181
- a && a instanceof Promise && a.then((m) => w(m === void 0 ? void 0 : m), y), o.signal.addEventListener("abort", () => {
2182
- (!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (w(void 0), i.allowStaleOnFetchAbort && (w = (m) => l(m, true)));
2183
- });
2187
+ o.signal.addEventListener("abort", () => {
2188
+ (!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (f(void 0), i.allowStaleOnFetchAbort && (f = (w) => r(w, true)));
2189
+ }), a && a instanceof Promise ? a.then((w) => f(w === void 0 ? void 0 : w), y) : a !== void 0 && f(a);
2184
2190
  };
2185
2191
  i.status && (i.status.fetchDispatched = true);
2186
- let p = new Promise(g).then(l, c), T = Object.assign(p, { __abortController: o, __staleWhileFetching: n, __returned: void 0 });
2187
- return t2 === void 0 ? (this.#O(e2, T, { ...h.options, status: void 0 }), t2 = this.#s.get(e2)) : this.#t[t2] = T, T;
2192
+ let u = new Promise(_).then(r, c), g = Object.assign(u, { __abortController: o, __staleWhileFetching: n, __returned: void 0 });
2193
+ return t2 === void 0 ? (this.#W(e2, g, { ...h.options, status: void 0 }), t2 = this.#s.get(e2)) : this.#t[t2] = g, g;
2188
2194
  }
2189
2195
  #e(e2) {
2190
- if (!this.#W) return false;
2196
+ if (!this.#U) return false;
2191
2197
  let t2 = e2;
2192
2198
  return !!t2 && t2 instanceof Promise && t2.hasOwnProperty("__staleWhileFetching") && t2.__abortController instanceof AbortController;
2193
2199
  }
2194
2200
  fetch(e2, t2 = {}) {
2195
- let i = W.hasSubscribers, { status: s = D() ? {} : void 0 } = t2;
2201
+ let i = W.hasSubscribers, { status: s = R() ? {} : void 0 } = t2;
2196
2202
  t2.status = s, s && t2.context && (s.context = t2.context);
2197
2203
  let n = this.#B(e2, t2);
2198
2204
  return s && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {
2199
2205
  })), n;
2200
2206
  }
2201
2207
  async #B(e2, t2 = {}) {
2202
- let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: r = this.noDisposeOnSet, size: h = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: f = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: g = this.allowStaleOnFetchRejection, ignoreFetchAbort: p = this.ignoreFetchAbort, allowStaleOnFetchAbort: T = this.allowStaleOnFetchAbort, context: w, forceRefresh: y = false, status: a, signal: m } = t2;
2203
- if (a && (a.op = "fetch", a.key = e2, y && (a.forceRefresh = true)), !this.#W) return a && (a.fetch = "get"), this.#C(e2, { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: a });
2204
- let _ = { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: r, size: h, sizeCalculation: l, noUpdateTTL: c, noDeleteOnFetchRejection: f, allowStaleOnFetchRejection: g, allowStaleOnFetchAbort: T, ignoreFetchAbort: p, status: a, signal: m }, b = this.#s.get(e2);
2208
+ let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: l = this.noDisposeOnSet, size: h = 0, sizeCalculation: r = this.sizeCalculation, noUpdateTTL: c = this.noUpdateTTL, noDeleteOnFetchRejection: m = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: _ = this.allowStaleOnFetchRejection, ignoreFetchAbort: u = this.ignoreFetchAbort, allowStaleOnFetchAbort: g = this.allowStaleOnFetchAbort, context: f, forceRefresh: y = false, status: a, signal: w } = t2;
2209
+ if (a && (a.op = "fetch", a.key = e2, y && (a.forceRefresh = true), a.cache = this), !this.#U) return a && (a.fetch = "get"), this.#C(e2, { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, status: a });
2210
+ let F = { allowStale: i, updateAgeOnGet: s, noDeleteOnStaleGet: n, ttl: o, noDisposeOnSet: l, size: h, sizeCalculation: r, noUpdateTTL: c, noDeleteOnFetchRejection: m, allowStaleOnFetchRejection: _, allowStaleOnFetchAbort: g, ignoreFetchAbort: u, status: a, signal: w }, b = this.#s.get(e2);
2205
2211
  if (b === void 0) {
2206
2212
  a && (a.fetch = "miss");
2207
- let d = this.#P(e2, b, _, w);
2208
- return d.__returned = d;
2213
+ let p = this.#P(e2, b, F, f);
2214
+ return p.__returned = p;
2209
2215
  } else {
2210
- let d = this.#t[b];
2211
- if (this.#e(d)) {
2212
- let E = i && d.__staleWhileFetching !== void 0;
2213
- return a && (a.fetch = "inflight", E && (a.returnedStale = true)), E ? d.__staleWhileFetching : d.__returned = d;
2216
+ let p = this.#t[b];
2217
+ if (this.#e(p)) {
2218
+ let v = i && p.__staleWhileFetching !== void 0;
2219
+ return a && (a.fetch = "inflight", v && (a.returnedStale = true)), v ? p.__staleWhileFetching : p.__returned = p;
2214
2220
  }
2215
2221
  let A = this.#p(b);
2216
- if (!y && !A) return a && (a.fetch = "hit"), this.#L(b), s && this.#D(b), a && this.#E(a, b), d;
2217
- let z2 = this.#P(e2, b, _, w), v = z2.__staleWhileFetching !== void 0 && i;
2218
- return a && (a.fetch = A ? "stale" : "refresh", v && A && (a.returnedStale = true)), v ? z2.__staleWhileFetching : z2.__returned = z2;
2222
+ if (!y && !A) return a && (a.fetch = "hit"), this.#L(b), s && this.#R(b), a && this.#v(a, b), p;
2223
+ let z2 = this.#P(e2, b, F, f), E = z2.__staleWhileFetching !== void 0 && i;
2224
+ return a && (a.fetch = A ? "stale" : "refresh", E && A && (a.returnedStale = true)), E ? z2.__staleWhileFetching : z2.__returned = z2;
2219
2225
  }
2220
2226
  }
2221
2227
  forceFetch(e2, t2 = {}) {
2222
- let i = W.hasSubscribers, { status: s = D() ? {} : void 0 } = t2;
2228
+ let i = W.hasSubscribers, { status: s = R() ? {} : void 0 } = t2;
2223
2229
  t2.status = s, s && t2.context && (s.context = t2.context);
2224
2230
  let n = this.#K(e2, t2);
2225
2231
  return s && i && (s.trace = true, W.tracePromise(() => n, s).catch(() => {
@@ -2232,67 +2238,67 @@ var M = class u2 {
2232
2238
  }
2233
2239
  memo(e2, t2 = {}) {
2234
2240
  let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
2235
- t2.status = i, i && (i.op = "memo", i.key = e2, t2.context && (i.context = t2.context));
2241
+ t2.status = i, i && (i.op = "memo", i.key = e2, t2.context && (i.context = t2.context), i.cache = this);
2236
2242
  let s = this.#Q(e2, t2);
2237
2243
  return i && (i.value = s), S.hasSubscribers && S.publish(i), s;
2238
2244
  }
2239
2245
  #Q(e2, t2 = {}) {
2240
- let i = this.#U;
2246
+ let i = this.#I;
2241
2247
  if (!i) throw new Error("no memoMethod provided to constructor");
2242
- let { context: s, status: n, forceRefresh: o, ...r } = t2;
2248
+ let { context: s, status: n, forceRefresh: o, ...l } = t2;
2243
2249
  n && o && (n.forceRefresh = true);
2244
- let h = this.#C(e2, r), l = o || h === void 0;
2245
- if (n && (n.memo = l ? "miss" : "hit", l || (n.value = h)), !l) return h;
2246
- let c = i(e2, h, { options: r, context: s });
2247
- return n && (n.value = c), this.#O(e2, c, r), c;
2250
+ let h = this.#C(e2, l), r = o || h === void 0;
2251
+ if (n && (n.memo = r ? "miss" : "hit", r || (n.value = h)), !r) return h;
2252
+ let c = i(e2, h, { options: l, context: s });
2253
+ return n && (n.value = c), this.#W(e2, c, l), c;
2248
2254
  }
2249
2255
  get(e2, t2 = {}) {
2250
2256
  let { status: i = S.hasSubscribers ? {} : void 0 } = t2;
2251
- t2.status = i, i && (i.op = "get", i.key = e2);
2257
+ t2.status = i, i && (i.op = "get", i.key = e2, i.cache = this);
2252
2258
  let s = this.#C(e2, t2);
2253
2259
  return i && (s !== void 0 && (i.value = s), S.hasSubscribers && S.publish(i)), s;
2254
2260
  }
2255
2261
  #C(e2, t2 = {}) {
2256
- let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = t2, r = this.#s.get(e2);
2257
- if (r === void 0) {
2262
+ let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: o } = t2, l = this.#s.get(e2);
2263
+ if (l === void 0) {
2258
2264
  o && (o.get = "miss");
2259
2265
  return;
2260
2266
  }
2261
- let h = this.#t[r], l = this.#e(h);
2262
- return o && this.#E(o, r), this.#p(r) ? l ? (o && (o.get = "stale-fetching"), i && h.__staleWhileFetching !== void 0 ? (o && (o.returnedStale = true), h.__staleWhileFetching) : void 0) : (n || this.#v(e2, "expire"), o && (o.get = "stale"), i ? (o && (o.returnedStale = true), h) : void 0) : (o && (o.get = l ? "fetching" : "hit"), this.#L(r), s && this.#D(r), l ? h.__staleWhileFetching : h);
2267
+ let h = this.#t[l], r = this.#e(h);
2268
+ return o && this.#v(o, l), this.#p(l) ? r ? (o && (o.get = "stale-fetching"), i && h.__staleWhileFetching !== void 0 ? (o && (o.returnedStale = true), h.__staleWhileFetching) : void 0) : (n || this.#E(e2, "expire"), o && (o.get = "stale"), i ? (o && (o.returnedStale = true), h) : void 0) : (o && (o.get = r ? "fetching" : "hit"), this.#L(l), s && this.#R(l), r ? h.__staleWhileFetching : h);
2263
2269
  }
2264
2270
  #$(e2, t2) {
2265
- this.#c[t2] = e2, this.#a[e2] = t2;
2271
+ this.#u[t2] = e2, this.#l[e2] = t2;
2266
2272
  }
2267
2273
  #L(e2) {
2268
- e2 !== this.#h && (e2 === this.#l ? this.#l = this.#a[e2] : this.#$(this.#c[e2], this.#a[e2]), this.#$(this.#h, e2), this.#h = e2);
2274
+ e2 !== this.#h && (e2 === this.#a ? this.#a = this.#l[e2] : this.#$(this.#u[e2], this.#l[e2]), this.#$(this.#h, e2), this.#h = e2);
2269
2275
  }
2270
2276
  delete(e2) {
2271
- return this.#v(e2, "delete");
2277
+ return this.#E(e2, "delete");
2272
2278
  }
2273
- #v(e2, t2) {
2274
- S.hasSubscribers && S.publish({ op: "delete", delete: t2, key: e2 });
2279
+ #E(e2, t2) {
2280
+ S.hasSubscribers && S.publish({ op: "delete", delete: t2, key: e2, cache: this });
2275
2281
  let i = false;
2276
2282
  if (this.#n !== 0) {
2277
2283
  let s = this.#s.get(e2);
2278
- if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = void 0), i = true, this.#n === 1) this.#q(t2);
2284
+ if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g[s]), this.#g[s] = void 0), i = true, this.#n === 1) this.#q(t2);
2279
2285
  else {
2280
- this.#R(s);
2286
+ this.#x(s);
2281
2287
  let n = this.#t[s];
2282
- if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#w?.(n, e2, t2), this.#f && this.#r?.push([n, e2, t2])), this.#s.delete(e2), this.#i[s] = void 0, this.#t[s] = void 0, s === this.#h) this.#h = this.#c[s];
2283
- else if (s === this.#l) this.#l = this.#a[s];
2288
+ if (this.#e(n) ? n.__abortController.abort(new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#S?.(n, e2, t2), this.#f && this.#r?.push([n, e2, t2])), this.#s.delete(e2), this.#i[s] = void 0, this.#t[s] = void 0, s === this.#h) this.#h = this.#u[s];
2289
+ else if (s === this.#a) this.#a = this.#l[s];
2284
2290
  else {
2285
- let o = this.#c[s];
2286
- this.#a[o] = this.#a[s];
2287
- let r = this.#a[s];
2288
- this.#c[r] = this.#c[s];
2291
+ let o = this.#u[s];
2292
+ this.#l[o] = this.#l[s];
2293
+ let l = this.#l[s];
2294
+ this.#u[l] = this.#u[s];
2289
2295
  }
2290
2296
  this.#n--, this.#y.push(s);
2291
2297
  }
2292
2298
  }
2293
2299
  if (this.#f && this.#r?.length) {
2294
2300
  let s = this.#r, n;
2295
- for (; n = s?.shift(); ) this.#S?.(...n);
2301
+ for (; n = s?.shift(); ) this.#w?.(...n);
2296
2302
  }
2297
2303
  return i;
2298
2304
  }
@@ -2305,7 +2311,7 @@ var M = class u2 {
2305
2311
  if (this.#e(i)) i.__abortController.abort(new Error("deleted"));
2306
2312
  else {
2307
2313
  let s = this.#i[t2];
2308
- this.#T && this.#w?.(i, s, e2), this.#f && this.#r?.push([i, s, e2]);
2314
+ this.#T && this.#S?.(i, s, e2), this.#f && this.#r?.push([i, s, e2]);
2309
2315
  }
2310
2316
  }
2311
2317
  if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#F) {
@@ -2313,14 +2319,14 @@ var M = class u2 {
2313
2319
  for (let t2 of this.#g ?? []) t2 !== void 0 && clearTimeout(t2);
2314
2320
  this.#g?.fill(void 0);
2315
2321
  }
2316
- if (this.#_ && this.#_.fill(0), this.#l = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
2322
+ if (this.#_ && this.#_.fill(0), this.#a = 0, this.#h = 0, this.#y.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
2317
2323
  let t2 = this.#r, i;
2318
- for (; i = t2?.shift(); ) this.#S?.(...i);
2324
+ for (; i = t2?.shift(); ) this.#w?.(...i);
2319
2325
  }
2320
2326
  }
2321
2327
  };
2322
2328
 
2323
- // ../memory/dist/chunk-KJT62NHY.js
2329
+ // ../memory/dist/chunk-6ACCFKAN.js
2324
2330
  var import_image_size = __toESM(require_dist(), 1);
2325
2331
  var MINUTE = 6e4;
2326
2332
  var HOUR = 60 * MINUTE;
@@ -7787,7 +7793,7 @@ function parseIntersectionDef(def, refs) {
7787
7793
  ...refs,
7788
7794
  currentPath: [...refs.currentPath, "allOf", "1"]
7789
7795
  })
7790
- ].filter((x) => !!x);
7796
+ ].filter((x2) => !!x2);
7791
7797
  let unevaluatedProperties = refs.target === "jsonSchema2019-09" ? { unevaluatedProperties: false } : void 0;
7792
7798
  const mergedAllOf = [];
7793
7799
  allOf.forEach((schema) => {
@@ -8016,7 +8022,7 @@ function escapeNonAlphaNumeric(source) {
8016
8022
  return result;
8017
8023
  }
8018
8024
  function addFormat(schema, value, message, refs) {
8019
- if (schema.format || schema.anyOf?.some((x) => x.format)) {
8025
+ if (schema.format || schema.anyOf?.some((x2) => x2.format)) {
8020
8026
  if (!schema.anyOf) {
8021
8027
  schema.anyOf = [];
8022
8028
  }
@@ -8044,7 +8050,7 @@ function addFormat(schema, value, message, refs) {
8044
8050
  }
8045
8051
  }
8046
8052
  function addPattern(schema, regex, message, refs) {
8047
- if (schema.pattern || schema.allOf?.some((x) => x.pattern)) {
8053
+ if (schema.pattern || schema.allOf?.some((x2) => x2.pattern)) {
8048
8054
  if (!schema.allOf) {
8049
8055
  schema.allOf = [];
8050
8056
  }
@@ -8252,17 +8258,17 @@ function parseUnionDef(def, refs) {
8252
8258
  if (refs.target === "openApi3")
8253
8259
  return asAnyOf(def, refs);
8254
8260
  const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
8255
- if (options.every((x) => x._def.typeName in primitiveMappings && (!x._def.checks || !x._def.checks.length))) {
8256
- const types = options.reduce((types2, x) => {
8257
- const type = primitiveMappings[x._def.typeName];
8261
+ if (options.every((x2) => x2._def.typeName in primitiveMappings && (!x2._def.checks || !x2._def.checks.length))) {
8262
+ const types = options.reduce((types2, x2) => {
8263
+ const type = primitiveMappings[x2._def.typeName];
8258
8264
  return type && !types2.includes(type) ? [...types2, type] : types2;
8259
8265
  }, []);
8260
8266
  return {
8261
8267
  type: types.length > 1 ? types : types[0]
8262
8268
  };
8263
- } else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
8264
- const types = options.reduce((acc, x) => {
8265
- const type = typeof x._def.value;
8269
+ } else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
8270
+ const types = options.reduce((acc, x2) => {
8271
+ const type = typeof x2._def.value;
8266
8272
  switch (type) {
8267
8273
  case "string":
8268
8274
  case "number":
@@ -8271,7 +8277,7 @@ function parseUnionDef(def, refs) {
8271
8277
  case "bigint":
8272
8278
  return [...acc, "integer"];
8273
8279
  case "object":
8274
- if (x._def.value === null)
8280
+ if (x2._def.value === null)
8275
8281
  return [...acc, "null"];
8276
8282
  case "symbol":
8277
8283
  case "undefined":
@@ -8281,30 +8287,30 @@ function parseUnionDef(def, refs) {
8281
8287
  }
8282
8288
  }, []);
8283
8289
  if (types.length === options.length) {
8284
- const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
8290
+ const uniqueTypes = types.filter((x2, i, a) => a.indexOf(x2) === i);
8285
8291
  return {
8286
8292
  type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
8287
- enum: options.reduce((acc, x) => {
8288
- return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
8293
+ enum: options.reduce((acc, x2) => {
8294
+ return acc.includes(x2._def.value) ? acc : [...acc, x2._def.value];
8289
8295
  }, [])
8290
8296
  };
8291
8297
  }
8292
- } else if (options.every((x) => x._def.typeName === "ZodEnum")) {
8298
+ } else if (options.every((x2) => x2._def.typeName === "ZodEnum")) {
8293
8299
  return {
8294
8300
  type: "string",
8295
- enum: options.reduce((acc, x) => [
8301
+ enum: options.reduce((acc, x2) => [
8296
8302
  ...acc,
8297
- ...x._def.values.filter((x2) => !acc.includes(x2))
8303
+ ...x2._def.values.filter((x22) => !acc.includes(x22))
8298
8304
  ], [])
8299
8305
  };
8300
8306
  }
8301
8307
  return asAnyOf(def, refs);
8302
8308
  }
8303
8309
  var asAnyOf = (def, refs) => {
8304
- const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((x, i) => parseDef(x._def, {
8310
+ const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map((x2, i) => parseDef(x2._def, {
8305
8311
  ...refs,
8306
8312
  currentPath: [...refs.currentPath, "anyOf", `${i}`]
8307
- })).filter((x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0));
8313
+ })).filter((x2) => !!x2 && (!refs.strictUnions || typeof x2 === "object" && Object.keys(x2).length > 0));
8308
8314
  return anyOf.length ? { anyOf } : void 0;
8309
8315
  };
8310
8316
  function parseNullableDef(def, refs) {
@@ -8484,7 +8490,7 @@ var parsePipelineDef = (def, refs) => {
8484
8490
  currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
8485
8491
  });
8486
8492
  return {
8487
- allOf: [a, b].filter((x) => x !== void 0)
8493
+ allOf: [a, b].filter((x2) => x2 !== void 0)
8488
8494
  };
8489
8495
  };
8490
8496
  function parsePromiseDef(def, refs) {
@@ -8513,10 +8519,10 @@ function parseTupleDef(def, refs) {
8513
8519
  return {
8514
8520
  type: "array",
8515
8521
  minItems: def.items.length,
8516
- items: def.items.map((x, i) => parseDef(x._def, {
8522
+ items: def.items.map((x2, i) => parseDef(x2._def, {
8517
8523
  ...refs,
8518
8524
  currentPath: [...refs.currentPath, "items", `${i}`]
8519
- })).reduce((acc, x) => x === void 0 ? acc : [...acc, x], []),
8525
+ })).reduce((acc, x2) => x2 === void 0 ? acc : [...acc, x2], []),
8520
8526
  additionalItems: parseDef(def.rest._def, {
8521
8527
  ...refs,
8522
8528
  currentPath: [...refs.currentPath, "additionalItems"]
@@ -8527,10 +8533,10 @@ function parseTupleDef(def, refs) {
8527
8533
  type: "array",
8528
8534
  minItems: def.items.length,
8529
8535
  maxItems: def.items.length,
8530
- items: def.items.map((x, i) => parseDef(x._def, {
8536
+ items: def.items.map((x2, i) => parseDef(x2._def, {
8531
8537
  ...refs,
8532
8538
  currentPath: [...refs.currentPath, "items", `${i}`]
8533
- })).reduce((acc, x) => x === void 0 ? acc : [...acc, x], [])
8539
+ })).reduce((acc, x2) => x2 === void 0 ? acc : [...acc, x2], [])
8534
8540
  };
8535
8541
  }
8536
8542
  }
@@ -12503,7 +12509,7 @@ function parseIntersectionDef2(def, refs) {
12503
12509
  ...refs,
12504
12510
  currentPath: [...refs.currentPath, "allOf", "1"]
12505
12511
  })
12506
- ].filter((x) => !!x);
12512
+ ].filter((x2) => !!x2);
12507
12513
  const mergedAllOf = [];
12508
12514
  allOf.forEach((schema) => {
12509
12515
  if (isJsonSchema7AllOfType2(schema)) {
@@ -12738,7 +12744,7 @@ function escapeNonAlphaNumeric2(source) {
12738
12744
  }
12739
12745
  function addFormat2(schema, value, message, refs) {
12740
12746
  var _a223;
12741
- if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x) => x.format))) {
12747
+ if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x2) => x2.format))) {
12742
12748
  if (!schema.anyOf) {
12743
12749
  schema.anyOf = [];
12744
12750
  }
@@ -12758,7 +12764,7 @@ function addFormat2(schema, value, message, refs) {
12758
12764
  }
12759
12765
  function addPattern2(schema, regex, message, refs) {
12760
12766
  var _a223;
12761
- if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x) => x.pattern))) {
12767
+ if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x2) => x2.pattern))) {
12762
12768
  if (!schema.allOf) {
12763
12769
  schema.allOf = [];
12764
12770
  }
@@ -12937,19 +12943,19 @@ var primitiveMappings2 = {
12937
12943
  function parseUnionDef2(def, refs) {
12938
12944
  const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
12939
12945
  if (options.every(
12940
- (x) => x._def.typeName in primitiveMappings2 && (!x._def.checks || !x._def.checks.length)
12946
+ (x2) => x2._def.typeName in primitiveMappings2 && (!x2._def.checks || !x2._def.checks.length)
12941
12947
  )) {
12942
- const types = options.reduce((types2, x) => {
12943
- const type = primitiveMappings2[x._def.typeName];
12948
+ const types = options.reduce((types2, x2) => {
12949
+ const type = primitiveMappings2[x2._def.typeName];
12944
12950
  return type && !types2.includes(type) ? [...types2, type] : types2;
12945
12951
  }, []);
12946
12952
  return {
12947
12953
  type: types.length > 1 ? types : types[0]
12948
12954
  };
12949
- } else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
12955
+ } else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
12950
12956
  const types = options.reduce(
12951
- (acc, x) => {
12952
- const type = typeof x._def.value;
12957
+ (acc, x2) => {
12958
+ const type = typeof x2._def.value;
12953
12959
  switch (type) {
12954
12960
  case "string":
12955
12961
  case "number":
@@ -12958,7 +12964,7 @@ function parseUnionDef2(def, refs) {
12958
12964
  case "bigint":
12959
12965
  return [...acc, "integer"];
12960
12966
  case "object":
12961
- if (x._def.value === null) return [...acc, "null"];
12967
+ if (x2._def.value === null) return [...acc, "null"];
12962
12968
  case "symbol":
12963
12969
  case "undefined":
12964
12970
  case "function":
@@ -12969,24 +12975,24 @@ function parseUnionDef2(def, refs) {
12969
12975
  []
12970
12976
  );
12971
12977
  if (types.length === options.length) {
12972
- const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
12978
+ const uniqueTypes = types.filter((x2, i, a) => a.indexOf(x2) === i);
12973
12979
  return {
12974
12980
  type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
12975
12981
  enum: options.reduce(
12976
- (acc, x) => {
12977
- return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
12982
+ (acc, x2) => {
12983
+ return acc.includes(x2._def.value) ? acc : [...acc, x2._def.value];
12978
12984
  },
12979
12985
  []
12980
12986
  )
12981
12987
  };
12982
12988
  }
12983
- } else if (options.every((x) => x._def.typeName === "ZodEnum")) {
12989
+ } else if (options.every((x2) => x2._def.typeName === "ZodEnum")) {
12984
12990
  return {
12985
12991
  type: "string",
12986
12992
  enum: options.reduce(
12987
- (acc, x) => [
12993
+ (acc, x2) => [
12988
12994
  ...acc,
12989
- ...x._def.values.filter((x2) => !acc.includes(x2))
12995
+ ...x2._def.values.filter((x22) => !acc.includes(x22))
12990
12996
  ],
12991
12997
  []
12992
12998
  )
@@ -12996,12 +13002,12 @@ function parseUnionDef2(def, refs) {
12996
13002
  }
12997
13003
  var asAnyOf2 = (def, refs) => {
12998
13004
  const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map(
12999
- (x, i) => parseDef2(x._def, {
13005
+ (x2, i) => parseDef2(x2._def, {
13000
13006
  ...refs,
13001
13007
  currentPath: [...refs.currentPath, "anyOf", `${i}`]
13002
13008
  })
13003
13009
  ).filter(
13004
- (x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0)
13010
+ (x2) => !!x2 && (!refs.strictUnions || typeof x2 === "object" && Object.keys(x2).length > 0)
13005
13011
  );
13006
13012
  return anyOf.length ? { anyOf } : void 0;
13007
13013
  };
@@ -13137,7 +13143,7 @@ var parsePipelineDef2 = (def, refs) => {
13137
13143
  currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
13138
13144
  });
13139
13145
  return {
13140
- allOf: [a, b].filter((x) => x !== void 0)
13146
+ allOf: [a, b].filter((x2) => x2 !== void 0)
13141
13147
  };
13142
13148
  };
13143
13149
  function parsePromiseDef2(def, refs) {
@@ -13167,12 +13173,12 @@ function parseTupleDef2(def, refs) {
13167
13173
  type: "array",
13168
13174
  minItems: def.items.length,
13169
13175
  items: def.items.map(
13170
- (x, i) => parseDef2(x._def, {
13176
+ (x2, i) => parseDef2(x2._def, {
13171
13177
  ...refs,
13172
13178
  currentPath: [...refs.currentPath, "items", `${i}`]
13173
13179
  })
13174
13180
  ).reduce(
13175
- (acc, x) => x === void 0 ? acc : [...acc, x],
13181
+ (acc, x2) => x2 === void 0 ? acc : [...acc, x2],
13176
13182
  []
13177
13183
  ),
13178
13184
  additionalItems: parseDef2(def.rest._def, {
@@ -13186,12 +13192,12 @@ function parseTupleDef2(def, refs) {
13186
13192
  minItems: def.items.length,
13187
13193
  maxItems: def.items.length,
13188
13194
  items: def.items.map(
13189
- (x, i) => parseDef2(x._def, {
13195
+ (x2, i) => parseDef2(x2._def, {
13190
13196
  ...refs,
13191
13197
  currentPath: [...refs.currentPath, "items", `${i}`]
13192
13198
  })
13193
13199
  ).reduce(
13194
- (acc, x) => x === void 0 ? acc : [...acc, x],
13200
+ (acc, x2) => x2 === void 0 ? acc : [...acc, x2],
13195
13201
  []
13196
13202
  )
13197
13203
  };
@@ -17736,7 +17742,7 @@ function parseIntersectionDef3(def, refs) {
17736
17742
  ...refs,
17737
17743
  currentPath: [...refs.currentPath, "allOf", "1"]
17738
17744
  })
17739
- ].filter((x) => !!x);
17745
+ ].filter((x2) => !!x2);
17740
17746
  const mergedAllOf = [];
17741
17747
  allOf.forEach((schema) => {
17742
17748
  if (isJsonSchema7AllOfType3(schema)) {
@@ -17971,7 +17977,7 @@ function escapeNonAlphaNumeric3(source) {
17971
17977
  }
17972
17978
  function addFormat3(schema, value, message, refs) {
17973
17979
  var _a223;
17974
- if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x) => x.format))) {
17980
+ if (schema.format || ((_a223 = schema.anyOf) == null ? void 0 : _a223.some((x2) => x2.format))) {
17975
17981
  if (!schema.anyOf) {
17976
17982
  schema.anyOf = [];
17977
17983
  }
@@ -17991,7 +17997,7 @@ function addFormat3(schema, value, message, refs) {
17991
17997
  }
17992
17998
  function addPattern3(schema, regex, message, refs) {
17993
17999
  var _a223;
17994
- if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x) => x.pattern))) {
18000
+ if (schema.pattern || ((_a223 = schema.allOf) == null ? void 0 : _a223.some((x2) => x2.pattern))) {
17995
18001
  if (!schema.allOf) {
17996
18002
  schema.allOf = [];
17997
18003
  }
@@ -18170,19 +18176,19 @@ var primitiveMappings3 = {
18170
18176
  function parseUnionDef3(def, refs) {
18171
18177
  const options = def.options instanceof Map ? Array.from(def.options.values()) : def.options;
18172
18178
  if (options.every(
18173
- (x) => x._def.typeName in primitiveMappings3 && (!x._def.checks || !x._def.checks.length)
18179
+ (x2) => x2._def.typeName in primitiveMappings3 && (!x2._def.checks || !x2._def.checks.length)
18174
18180
  )) {
18175
- const types = options.reduce((types2, x) => {
18176
- const type = primitiveMappings3[x._def.typeName];
18181
+ const types = options.reduce((types2, x2) => {
18182
+ const type = primitiveMappings3[x2._def.typeName];
18177
18183
  return type && !types2.includes(type) ? [...types2, type] : types2;
18178
18184
  }, []);
18179
18185
  return {
18180
18186
  type: types.length > 1 ? types : types[0]
18181
18187
  };
18182
- } else if (options.every((x) => x._def.typeName === "ZodLiteral" && !x.description)) {
18188
+ } else if (options.every((x2) => x2._def.typeName === "ZodLiteral" && !x2.description)) {
18183
18189
  const types = options.reduce(
18184
- (acc, x) => {
18185
- const type = typeof x._def.value;
18190
+ (acc, x2) => {
18191
+ const type = typeof x2._def.value;
18186
18192
  switch (type) {
18187
18193
  case "string":
18188
18194
  case "number":
@@ -18191,7 +18197,7 @@ function parseUnionDef3(def, refs) {
18191
18197
  case "bigint":
18192
18198
  return [...acc, "integer"];
18193
18199
  case "object":
18194
- if (x._def.value === null) return [...acc, "null"];
18200
+ if (x2._def.value === null) return [...acc, "null"];
18195
18201
  case "symbol":
18196
18202
  case "undefined":
18197
18203
  case "function":
@@ -18202,24 +18208,24 @@ function parseUnionDef3(def, refs) {
18202
18208
  []
18203
18209
  );
18204
18210
  if (types.length === options.length) {
18205
- const uniqueTypes = types.filter((x, i, a) => a.indexOf(x) === i);
18211
+ const uniqueTypes = types.filter((x2, i, a) => a.indexOf(x2) === i);
18206
18212
  return {
18207
18213
  type: uniqueTypes.length > 1 ? uniqueTypes : uniqueTypes[0],
18208
18214
  enum: options.reduce(
18209
- (acc, x) => {
18210
- return acc.includes(x._def.value) ? acc : [...acc, x._def.value];
18215
+ (acc, x2) => {
18216
+ return acc.includes(x2._def.value) ? acc : [...acc, x2._def.value];
18211
18217
  },
18212
18218
  []
18213
18219
  )
18214
18220
  };
18215
18221
  }
18216
- } else if (options.every((x) => x._def.typeName === "ZodEnum")) {
18222
+ } else if (options.every((x2) => x2._def.typeName === "ZodEnum")) {
18217
18223
  return {
18218
18224
  type: "string",
18219
18225
  enum: options.reduce(
18220
- (acc, x) => [
18226
+ (acc, x2) => [
18221
18227
  ...acc,
18222
- ...x._def.values.filter((x2) => !acc.includes(x2))
18228
+ ...x2._def.values.filter((x22) => !acc.includes(x22))
18223
18229
  ],
18224
18230
  []
18225
18231
  )
@@ -18229,12 +18235,12 @@ function parseUnionDef3(def, refs) {
18229
18235
  }
18230
18236
  var asAnyOf3 = (def, refs) => {
18231
18237
  const anyOf = (def.options instanceof Map ? Array.from(def.options.values()) : def.options).map(
18232
- (x, i) => parseDef3(x._def, {
18238
+ (x2, i) => parseDef3(x2._def, {
18233
18239
  ...refs,
18234
18240
  currentPath: [...refs.currentPath, "anyOf", `${i}`]
18235
18241
  })
18236
18242
  ).filter(
18237
- (x) => !!x && (!refs.strictUnions || typeof x === "object" && Object.keys(x).length > 0)
18243
+ (x2) => !!x2 && (!refs.strictUnions || typeof x2 === "object" && Object.keys(x2).length > 0)
18238
18244
  );
18239
18245
  return anyOf.length ? { anyOf } : void 0;
18240
18246
  };
@@ -18370,7 +18376,7 @@ var parsePipelineDef3 = (def, refs) => {
18370
18376
  currentPath: [...refs.currentPath, "allOf", a ? "1" : "0"]
18371
18377
  });
18372
18378
  return {
18373
- allOf: [a, b].filter((x) => x !== void 0)
18379
+ allOf: [a, b].filter((x2) => x2 !== void 0)
18374
18380
  };
18375
18381
  };
18376
18382
  function parsePromiseDef3(def, refs) {
@@ -18400,12 +18406,12 @@ function parseTupleDef3(def, refs) {
18400
18406
  type: "array",
18401
18407
  minItems: def.items.length,
18402
18408
  items: def.items.map(
18403
- (x, i) => parseDef3(x._def, {
18409
+ (x2, i) => parseDef3(x2._def, {
18404
18410
  ...refs,
18405
18411
  currentPath: [...refs.currentPath, "items", `${i}`]
18406
18412
  })
18407
18413
  ).reduce(
18408
- (acc, x) => x === void 0 ? acc : [...acc, x],
18414
+ (acc, x2) => x2 === void 0 ? acc : [...acc, x2],
18409
18415
  []
18410
18416
  ),
18411
18417
  additionalItems: parseDef3(def.rest._def, {
@@ -18419,12 +18425,12 @@ function parseTupleDef3(def, refs) {
18419
18425
  minItems: def.items.length,
18420
18426
  maxItems: def.items.length,
18421
18427
  items: def.items.map(
18422
- (x, i) => parseDef3(x._def, {
18428
+ (x2, i) => parseDef3(x2._def, {
18423
18429
  ...refs,
18424
18430
  currentPath: [...refs.currentPath, "items", `${i}`]
18425
18431
  })
18426
18432
  ).reduce(
18427
- (acc, x) => x === void 0 ? acc : [...acc, x],
18433
+ (acc, x2) => x2 === void 0 ? acc : [...acc, x2],
18428
18434
  []
18429
18435
  )
18430
18436
  };
@@ -27198,7 +27204,7 @@ ${workingMemory}`;
27198
27204
  // Embedding is computationally expensive, so cache content -> embeddings/chunks.
27199
27205
  // Bounded by an LRU so a long-running instance can't retain every embedded
27200
27206
  // message/query (and its vectors + chunk text) for the life of the process.
27201
- embeddingCache = new M({ max: DEFAULT_EMBEDDING_CACHE_MAX_SIZE });
27207
+ embeddingCache = new I({ max: DEFAULT_EMBEDDING_CACHE_MAX_SIZE });
27202
27208
  firstEmbed;
27203
27209
  async embedMessageContent(content) {
27204
27210
  const key = (await this.hasher).h64(content);
@@ -27635,7 +27641,7 @@ ${workingMemory}`;
27635
27641
  "Observational memory requires @mastra/core support for request-response-id-rotation. Please bump @mastra/core to a newer version."
27636
27642
  );
27637
27643
  }
27638
- const { ObservationalMemory: OMClass } = await import('./observational-memory-SF36C4XR-2DQQF4XZ.js');
27644
+ const { ObservationalMemory: OMClass } = await import('./observational-memory-OJN26RQ4-QC5U3UMA.js');
27639
27645
  const onIndexObservations = this.hasRetrievalSearch(omConfig.retrieval) ? async (observation) => {
27640
27646
  await this.indexObservation(observation);
27641
27647
  } : void 0;
@@ -28683,7 +28689,7 @@ Notes:
28683
28689
  if (!effectiveConfig) return null;
28684
28690
  const engine = await this.omEngine;
28685
28691
  if (!engine) return null;
28686
- const { ObservationalMemoryProcessor: ObservationalMemoryProcessor2 } = await import('./observational-memory-SF36C4XR-2DQQF4XZ.js');
28692
+ const { ObservationalMemoryProcessor: ObservationalMemoryProcessor2 } = await import('./observational-memory-OJN26RQ4-QC5U3UMA.js');
28687
28693
  return new ObservationalMemoryProcessor2(engine, this, {
28688
28694
  temporalMarkers: effectiveConfig.temporalMarkers
28689
28695
  });
@@ -28699,7 +28705,7 @@ Notes:
28699
28705
  this.assertWorkingMemoryStateSignalsCompatibility(mergedConfig);
28700
28706
  if (!mergedConfig.workingMemory?.enabled) return null;
28701
28707
  if (!mergedConfig.workingMemory?.useStateSignals) return null;
28702
- const { WORKING_MEMORY_STATE_PROCESSOR_ID: WORKING_MEMORY_STATE_PROCESSOR_ID2, WorkingMemoryStateProcessor: WorkingMemoryStateProcessor2 } = await import('./working-memory-state-OMSMSYAW-NEULPFZX.js');
28708
+ const { WORKING_MEMORY_STATE_PROCESSOR_ID: WORKING_MEMORY_STATE_PROCESSOR_ID2, WorkingMemoryStateProcessor: WorkingMemoryStateProcessor2 } = await import('./working-memory-state-OMSMSYAW-6OXJFZFI.js');
28703
28709
  const alreadyConfigured = configuredProcessors.some(
28704
28710
  (p) => !("workflow" in p) && p.id === WORKING_MEMORY_STATE_PROCESSOR_ID2
28705
28711
  );
@@ -33620,5 +33626,5 @@ function getObservationsAsOf(activeObservations, asOf) {
33620
33626
  }
33621
33627
 
33622
33628
  export { Extractor, Memory, ModelByInputTokens, OBSERVER_SYSTEM_PROMPT, ObservationalMemory, ObservationalMemoryProcessor, TokenCounter, WorkingMemoryExtractor, buildObserverPrompt, buildObserverSystemPrompt, combineObservationGroupRanges, deriveObservationGroupProvenance, extractCurrentTask, formatMessagesForObserver, getObservationsAsOf, hasCurrentTaskSection, injectAnchorIds, optimizeObservationsForContext, parseAnchorId, parseObservationGroups, parseObserverOutput, reconcileObservationGroupsFromReflection, renderObservationGroupsForReflection, stripEphemeralAnchorIds, stripObservationGroups, summarizeConversation, wrapInObservationGroup };
33623
- //# sourceMappingURL=chunk-H4LV3HUC.js.map
33624
- //# sourceMappingURL=chunk-H4LV3HUC.js.map
33629
+ //# sourceMappingURL=chunk-UWJ25WPB.js.map
33630
+ //# sourceMappingURL=chunk-UWJ25WPB.js.map