@mastra/server 1.51.0-alpha.10 → 1.51.0-alpha.12

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