@vibedeckx/linux-x64 0.1.16 → 0.1.17

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 (1438) hide show
  1. package/dist/process-manager.js +22 -9
  2. package/dist/routes/terminal-routes.js +7 -0
  3. package/dist/routes/websocket-routes.js +6 -0
  4. package/dist/ui/404/index.html +1 -1
  5. package/dist/ui/404.html +1 -1
  6. package/dist/ui/__next.__PAGE__.txt +2 -2
  7. package/dist/ui/__next._full.txt +2 -2
  8. package/dist/ui/__next._head.txt +1 -1
  9. package/dist/ui/__next._index.txt +1 -1
  10. package/dist/ui/__next._tree.txt +1 -1
  11. package/dist/ui/_next/static/chunks/{d272cd438400a22c.js → 869e15bfcbb5dbd1.js} +1 -1
  12. package/dist/ui/_not-found/__next._full.txt +1 -1
  13. package/dist/ui/_not-found/__next._head.txt +1 -1
  14. package/dist/ui/_not-found/__next._index.txt +1 -1
  15. package/dist/ui/_not-found/__next._not-found.__PAGE__.txt +1 -1
  16. package/dist/ui/_not-found/__next._not-found.txt +1 -1
  17. package/dist/ui/_not-found/__next._tree.txt +1 -1
  18. package/dist/ui/_not-found/index.html +1 -1
  19. package/dist/ui/_not-found/index.txt +1 -1
  20. package/dist/ui/index.html +1 -1
  21. package/dist/ui/index.txt +2 -2
  22. package/package.json +1 -1
  23. package/node_modules/@ai-sdk/deepseek/dist/index.d.mts +0 -68
  24. package/node_modules/@ai-sdk/deepseek/dist/index.d.ts +0 -68
  25. package/node_modules/@ai-sdk/deepseek/dist/index.js.map +0 -1
  26. package/node_modules/@ai-sdk/deepseek/dist/index.mjs.map +0 -1
  27. package/node_modules/@ai-sdk/gateway/dist/index.d.mts +0 -713
  28. package/node_modules/@ai-sdk/gateway/dist/index.d.ts +0 -713
  29. package/node_modules/@ai-sdk/gateway/dist/index.js.map +0 -1
  30. package/node_modules/@ai-sdk/gateway/dist/index.mjs.map +0 -1
  31. package/node_modules/@ai-sdk/provider/dist/index.d.mts +0 -4030
  32. package/node_modules/@ai-sdk/provider/dist/index.d.ts +0 -4030
  33. package/node_modules/@ai-sdk/provider/dist/index.js.map +0 -1
  34. package/node_modules/@ai-sdk/provider/dist/index.mjs.map +0 -1
  35. package/node_modules/@ai-sdk/provider-utils/dist/index.d.mts +0 -1433
  36. package/node_modules/@ai-sdk/provider-utils/dist/index.d.ts +0 -1433
  37. package/node_modules/@ai-sdk/provider-utils/dist/index.js.map +0 -1
  38. package/node_modules/@ai-sdk/provider-utils/dist/index.mjs.map +0 -1
  39. package/node_modules/@clerk/backend/dist/api/endpoints/APIKeysApi.d.ts +0 -76
  40. package/node_modules/@clerk/backend/dist/api/endpoints/APIKeysApi.d.ts.map +0 -1
  41. package/node_modules/@clerk/backend/dist/api/endpoints/AbstractApi.d.ts +0 -7
  42. package/node_modules/@clerk/backend/dist/api/endpoints/AbstractApi.d.ts.map +0 -1
  43. package/node_modules/@clerk/backend/dist/api/endpoints/AccountlessApplicationsAPI.d.ts +0 -11
  44. package/node_modules/@clerk/backend/dist/api/endpoints/AccountlessApplicationsAPI.d.ts.map +0 -1
  45. package/node_modules/@clerk/backend/dist/api/endpoints/ActorTokenApi.d.ts +0 -47
  46. package/node_modules/@clerk/backend/dist/api/endpoints/ActorTokenApi.d.ts.map +0 -1
  47. package/node_modules/@clerk/backend/dist/api/endpoints/AgentTaskApi.d.ts +0 -47
  48. package/node_modules/@clerk/backend/dist/api/endpoints/AgentTaskApi.d.ts.map +0 -1
  49. package/node_modules/@clerk/backend/dist/api/endpoints/AllowlistIdentifierApi.d.ts +0 -16
  50. package/node_modules/@clerk/backend/dist/api/endpoints/AllowlistIdentifierApi.d.ts.map +0 -1
  51. package/node_modules/@clerk/backend/dist/api/endpoints/BetaFeaturesApi.d.ts +0 -29
  52. package/node_modules/@clerk/backend/dist/api/endpoints/BetaFeaturesApi.d.ts.map +0 -1
  53. package/node_modules/@clerk/backend/dist/api/endpoints/BillingApi.d.ts +0 -47
  54. package/node_modules/@clerk/backend/dist/api/endpoints/BillingApi.d.ts.map +0 -1
  55. package/node_modules/@clerk/backend/dist/api/endpoints/BlocklistIdentifierApi.d.ts +0 -15
  56. package/node_modules/@clerk/backend/dist/api/endpoints/BlocklistIdentifierApi.d.ts.map +0 -1
  57. package/node_modules/@clerk/backend/dist/api/endpoints/ClientApi.d.ts +0 -16
  58. package/node_modules/@clerk/backend/dist/api/endpoints/ClientApi.d.ts.map +0 -1
  59. package/node_modules/@clerk/backend/dist/api/endpoints/DomainApi.d.ts +0 -46
  60. package/node_modules/@clerk/backend/dist/api/endpoints/DomainApi.d.ts.map +0 -1
  61. package/node_modules/@clerk/backend/dist/api/endpoints/EmailAddressApi.d.ts +0 -20
  62. package/node_modules/@clerk/backend/dist/api/endpoints/EmailAddressApi.d.ts.map +0 -1
  63. package/node_modules/@clerk/backend/dist/api/endpoints/EnterpriseConnectionApi.d.ts +0 -62
  64. package/node_modules/@clerk/backend/dist/api/endpoints/EnterpriseConnectionApi.d.ts.map +0 -1
  65. package/node_modules/@clerk/backend/dist/api/endpoints/IdPOAuthAccessTokenApi.d.ts +0 -6
  66. package/node_modules/@clerk/backend/dist/api/endpoints/IdPOAuthAccessTokenApi.d.ts.map +0 -1
  67. package/node_modules/@clerk/backend/dist/api/endpoints/InstanceApi.d.ts +0 -70
  68. package/node_modules/@clerk/backend/dist/api/endpoints/InstanceApi.d.ts.map +0 -1
  69. package/node_modules/@clerk/backend/dist/api/endpoints/InvitationApi.d.ts +0 -50
  70. package/node_modules/@clerk/backend/dist/api/endpoints/InvitationApi.d.ts.map +0 -1
  71. package/node_modules/@clerk/backend/dist/api/endpoints/JwksApi.d.ts +0 -6
  72. package/node_modules/@clerk/backend/dist/api/endpoints/JwksApi.d.ts.map +0 -1
  73. package/node_modules/@clerk/backend/dist/api/endpoints/JwtTemplatesApi.d.ts +0 -50
  74. package/node_modules/@clerk/backend/dist/api/endpoints/JwtTemplatesApi.d.ts.map +0 -1
  75. package/node_modules/@clerk/backend/dist/api/endpoints/M2MTokenApi.d.ts +0 -87
  76. package/node_modules/@clerk/backend/dist/api/endpoints/M2MTokenApi.d.ts.map +0 -1
  77. package/node_modules/@clerk/backend/dist/api/endpoints/MachineApi.d.ts +0 -81
  78. package/node_modules/@clerk/backend/dist/api/endpoints/MachineApi.d.ts.map +0 -1
  79. package/node_modules/@clerk/backend/dist/api/endpoints/OAuthApplicationsApi.d.ts +0 -49
  80. package/node_modules/@clerk/backend/dist/api/endpoints/OAuthApplicationsApi.d.ts.map +0 -1
  81. package/node_modules/@clerk/backend/dist/api/endpoints/OrganizationApi.d.ts +0 -200
  82. package/node_modules/@clerk/backend/dist/api/endpoints/OrganizationApi.d.ts.map +0 -1
  83. package/node_modules/@clerk/backend/dist/api/endpoints/PhoneNumberApi.d.ts +0 -22
  84. package/node_modules/@clerk/backend/dist/api/endpoints/PhoneNumberApi.d.ts.map +0 -1
  85. package/node_modules/@clerk/backend/dist/api/endpoints/ProxyCheckApi.d.ts +0 -11
  86. package/node_modules/@clerk/backend/dist/api/endpoints/ProxyCheckApi.d.ts.map +0 -1
  87. package/node_modules/@clerk/backend/dist/api/endpoints/RedirectUrlApi.d.ts +0 -14
  88. package/node_modules/@clerk/backend/dist/api/endpoints/RedirectUrlApi.d.ts.map +0 -1
  89. package/node_modules/@clerk/backend/dist/api/endpoints/SamlConnectionApi.d.ts +0 -69
  90. package/node_modules/@clerk/backend/dist/api/endpoints/SamlConnectionApi.d.ts.map +0 -1
  91. package/node_modules/@clerk/backend/dist/api/endpoints/SessionApi.d.ts +0 -52
  92. package/node_modules/@clerk/backend/dist/api/endpoints/SessionApi.d.ts.map +0 -1
  93. package/node_modules/@clerk/backend/dist/api/endpoints/SignInTokenApi.d.ts +0 -12
  94. package/node_modules/@clerk/backend/dist/api/endpoints/SignInTokenApi.d.ts.map +0 -1
  95. package/node_modules/@clerk/backend/dist/api/endpoints/SignUpApi.d.ts +0 -13
  96. package/node_modules/@clerk/backend/dist/api/endpoints/SignUpApi.d.ts.map +0 -1
  97. package/node_modules/@clerk/backend/dist/api/endpoints/TestingTokenApi.d.ts +0 -6
  98. package/node_modules/@clerk/backend/dist/api/endpoints/TestingTokenApi.d.ts.map +0 -1
  99. package/node_modules/@clerk/backend/dist/api/endpoints/UserApi.d.ts +0 -178
  100. package/node_modules/@clerk/backend/dist/api/endpoints/UserApi.d.ts.map +0 -1
  101. package/node_modules/@clerk/backend/dist/api/endpoints/WaitlistEntryApi.d.ts +0 -61
  102. package/node_modules/@clerk/backend/dist/api/endpoints/WaitlistEntryApi.d.ts.map +0 -1
  103. package/node_modules/@clerk/backend/dist/api/endpoints/WebhookApi.d.ts +0 -8
  104. package/node_modules/@clerk/backend/dist/api/endpoints/WebhookApi.d.ts.map +0 -1
  105. package/node_modules/@clerk/backend/dist/api/endpoints/index.d.ts +0 -33
  106. package/node_modules/@clerk/backend/dist/api/endpoints/index.d.ts.map +0 -1
  107. package/node_modules/@clerk/backend/dist/api/endpoints/util-types.d.ts +0 -2
  108. package/node_modules/@clerk/backend/dist/api/endpoints/util-types.d.ts.map +0 -1
  109. package/node_modules/@clerk/backend/dist/api/factory.d.ts +0 -51
  110. package/node_modules/@clerk/backend/dist/api/factory.d.ts.map +0 -1
  111. package/node_modules/@clerk/backend/dist/api/index.d.ts +0 -3
  112. package/node_modules/@clerk/backend/dist/api/index.d.ts.map +0 -1
  113. package/node_modules/@clerk/backend/dist/api/request.d.ts +0 -76
  114. package/node_modules/@clerk/backend/dist/api/request.d.ts.map +0 -1
  115. package/node_modules/@clerk/backend/dist/api/resources/APIKey.d.ts +0 -137
  116. package/node_modules/@clerk/backend/dist/api/resources/APIKey.d.ts.map +0 -1
  117. package/node_modules/@clerk/backend/dist/api/resources/AccountlessApplication.d.ts +0 -10
  118. package/node_modules/@clerk/backend/dist/api/resources/AccountlessApplication.d.ts.map +0 -1
  119. package/node_modules/@clerk/backend/dist/api/resources/ActorToken.d.ts +0 -15
  120. package/node_modules/@clerk/backend/dist/api/resources/ActorToken.d.ts.map +0 -1
  121. package/node_modules/@clerk/backend/dist/api/resources/AgentTask.d.ts +0 -42
  122. package/node_modules/@clerk/backend/dist/api/resources/AgentTask.d.ts.map +0 -1
  123. package/node_modules/@clerk/backend/dist/api/resources/AllowlistIdentifier.d.ts +0 -66
  124. package/node_modules/@clerk/backend/dist/api/resources/AllowlistIdentifier.d.ts.map +0 -1
  125. package/node_modules/@clerk/backend/dist/api/resources/BlocklistIdentifier.d.ts +0 -13
  126. package/node_modules/@clerk/backend/dist/api/resources/BlocklistIdentifier.d.ts.map +0 -1
  127. package/node_modules/@clerk/backend/dist/api/resources/Client.d.ts +0 -83
  128. package/node_modules/@clerk/backend/dist/api/resources/Client.d.ts.map +0 -1
  129. package/node_modules/@clerk/backend/dist/api/resources/CnameTarget.d.ts +0 -9
  130. package/node_modules/@clerk/backend/dist/api/resources/CnameTarget.d.ts.map +0 -1
  131. package/node_modules/@clerk/backend/dist/api/resources/CommercePlan.d.ts +0 -141
  132. package/node_modules/@clerk/backend/dist/api/resources/CommercePlan.d.ts.map +0 -1
  133. package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscription.d.ts +0 -99
  134. package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscription.d.ts.map +0 -1
  135. package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscriptionItem.d.ts +0 -167
  136. package/node_modules/@clerk/backend/dist/api/resources/CommerceSubscriptionItem.d.ts.map +0 -1
  137. package/node_modules/@clerk/backend/dist/api/resources/Cookies.d.ts +0 -7
  138. package/node_modules/@clerk/backend/dist/api/resources/Cookies.d.ts.map +0 -1
  139. package/node_modules/@clerk/backend/dist/api/resources/DeletedObject.d.ts +0 -10
  140. package/node_modules/@clerk/backend/dist/api/resources/DeletedObject.d.ts.map +0 -1
  141. package/node_modules/@clerk/backend/dist/api/resources/Deserializer.d.ts +0 -26
  142. package/node_modules/@clerk/backend/dist/api/resources/Deserializer.d.ts.map +0 -1
  143. package/node_modules/@clerk/backend/dist/api/resources/Domain.d.ts +0 -15
  144. package/node_modules/@clerk/backend/dist/api/resources/Domain.d.ts.map +0 -1
  145. package/node_modules/@clerk/backend/dist/api/resources/Email.d.ts +0 -17
  146. package/node_modules/@clerk/backend/dist/api/resources/Email.d.ts.map +0 -1
  147. package/node_modules/@clerk/backend/dist/api/resources/EmailAddress.d.ts +0 -47
  148. package/node_modules/@clerk/backend/dist/api/resources/EmailAddress.d.ts.map +0 -1
  149. package/node_modules/@clerk/backend/dist/api/resources/EnterpriseAccount.d.ts +0 -225
  150. package/node_modules/@clerk/backend/dist/api/resources/EnterpriseAccount.d.ts.map +0 -1
  151. package/node_modules/@clerk/backend/dist/api/resources/EnterpriseConnection.d.ts +0 -89
  152. package/node_modules/@clerk/backend/dist/api/resources/EnterpriseConnection.d.ts.map +0 -1
  153. package/node_modules/@clerk/backend/dist/api/resources/Enums.d.ts +0 -42
  154. package/node_modules/@clerk/backend/dist/api/resources/Enums.d.ts.map +0 -1
  155. package/node_modules/@clerk/backend/dist/api/resources/ExternalAccount.d.ts +0 -134
  156. package/node_modules/@clerk/backend/dist/api/resources/ExternalAccount.d.ts.map +0 -1
  157. package/node_modules/@clerk/backend/dist/api/resources/Feature.d.ts +0 -51
  158. package/node_modules/@clerk/backend/dist/api/resources/Feature.d.ts.map +0 -1
  159. package/node_modules/@clerk/backend/dist/api/resources/HandshakePayload.d.ts +0 -9
  160. package/node_modules/@clerk/backend/dist/api/resources/HandshakePayload.d.ts.map +0 -1
  161. package/node_modules/@clerk/backend/dist/api/resources/IdPOAuthAccessToken.d.ts +0 -23
  162. package/node_modules/@clerk/backend/dist/api/resources/IdPOAuthAccessToken.d.ts.map +0 -1
  163. package/node_modules/@clerk/backend/dist/api/resources/IdentificationLink.d.ts +0 -25
  164. package/node_modules/@clerk/backend/dist/api/resources/IdentificationLink.d.ts.map +0 -1
  165. package/node_modules/@clerk/backend/dist/api/resources/Instance.d.ts +0 -9
  166. package/node_modules/@clerk/backend/dist/api/resources/Instance.d.ts.map +0 -1
  167. package/node_modules/@clerk/backend/dist/api/resources/InstanceRestrictions.d.ts +0 -11
  168. package/node_modules/@clerk/backend/dist/api/resources/InstanceRestrictions.d.ts.map +0 -1
  169. package/node_modules/@clerk/backend/dist/api/resources/InstanceSettings.d.ts +0 -11
  170. package/node_modules/@clerk/backend/dist/api/resources/InstanceSettings.d.ts.map +0 -1
  171. package/node_modules/@clerk/backend/dist/api/resources/Invitation.d.ts +0 -76
  172. package/node_modules/@clerk/backend/dist/api/resources/Invitation.d.ts.map +0 -1
  173. package/node_modules/@clerk/backend/dist/api/resources/JSON.d.ts +0 -971
  174. package/node_modules/@clerk/backend/dist/api/resources/JSON.d.ts.map +0 -1
  175. package/node_modules/@clerk/backend/dist/api/resources/JwtTemplate.d.ts +0 -15
  176. package/node_modules/@clerk/backend/dist/api/resources/JwtTemplate.d.ts.map +0 -1
  177. package/node_modules/@clerk/backend/dist/api/resources/M2MToken.d.ts +0 -31
  178. package/node_modules/@clerk/backend/dist/api/resources/M2MToken.d.ts.map +0 -1
  179. package/node_modules/@clerk/backend/dist/api/resources/Machine.d.ts +0 -17
  180. package/node_modules/@clerk/backend/dist/api/resources/Machine.d.ts.map +0 -1
  181. package/node_modules/@clerk/backend/dist/api/resources/MachineScope.d.ts +0 -13
  182. package/node_modules/@clerk/backend/dist/api/resources/MachineScope.d.ts.map +0 -1
  183. package/node_modules/@clerk/backend/dist/api/resources/MachineSecretKey.d.ts +0 -10
  184. package/node_modules/@clerk/backend/dist/api/resources/MachineSecretKey.d.ts.map +0 -1
  185. package/node_modules/@clerk/backend/dist/api/resources/OAuthApplication.d.ts +0 -169
  186. package/node_modules/@clerk/backend/dist/api/resources/OAuthApplication.d.ts.map +0 -1
  187. package/node_modules/@clerk/backend/dist/api/resources/OauthAccessToken.d.ts +0 -83
  188. package/node_modules/@clerk/backend/dist/api/resources/OauthAccessToken.d.ts.map +0 -1
  189. package/node_modules/@clerk/backend/dist/api/resources/Organization.d.ts +0 -115
  190. package/node_modules/@clerk/backend/dist/api/resources/Organization.d.ts.map +0 -1
  191. package/node_modules/@clerk/backend/dist/api/resources/OrganizationDomain.d.ts +0 -18
  192. package/node_modules/@clerk/backend/dist/api/resources/OrganizationDomain.d.ts.map +0 -1
  193. package/node_modules/@clerk/backend/dist/api/resources/OrganizationInvitation.d.ts +0 -116
  194. package/node_modules/@clerk/backend/dist/api/resources/OrganizationInvitation.d.ts.map +0 -1
  195. package/node_modules/@clerk/backend/dist/api/resources/OrganizationMembership.d.ts +0 -140
  196. package/node_modules/@clerk/backend/dist/api/resources/OrganizationMembership.d.ts.map +0 -1
  197. package/node_modules/@clerk/backend/dist/api/resources/OrganizationSettings.d.ts +0 -17
  198. package/node_modules/@clerk/backend/dist/api/resources/OrganizationSettings.d.ts.map +0 -1
  199. package/node_modules/@clerk/backend/dist/api/resources/PhoneNumber.d.ts +0 -63
  200. package/node_modules/@clerk/backend/dist/api/resources/PhoneNumber.d.ts.map +0 -1
  201. package/node_modules/@clerk/backend/dist/api/resources/ProxyCheck.d.ts +0 -13
  202. package/node_modules/@clerk/backend/dist/api/resources/ProxyCheck.d.ts.map +0 -1
  203. package/node_modules/@clerk/backend/dist/api/resources/RedirectUrl.d.ts +0 -47
  204. package/node_modules/@clerk/backend/dist/api/resources/RedirectUrl.d.ts.map +0 -1
  205. package/node_modules/@clerk/backend/dist/api/resources/SMSMessage.d.ts +0 -13
  206. package/node_modules/@clerk/backend/dist/api/resources/SMSMessage.d.ts.map +0 -1
  207. package/node_modules/@clerk/backend/dist/api/resources/SamlConnection.d.ts +0 -215
  208. package/node_modules/@clerk/backend/dist/api/resources/SamlConnection.d.ts.map +0 -1
  209. package/node_modules/@clerk/backend/dist/api/resources/Session.d.ts +0 -176
  210. package/node_modules/@clerk/backend/dist/api/resources/Session.d.ts.map +0 -1
  211. package/node_modules/@clerk/backend/dist/api/resources/SignInTokens.d.ts +0 -13
  212. package/node_modules/@clerk/backend/dist/api/resources/SignInTokens.d.ts.map +0 -1
  213. package/node_modules/@clerk/backend/dist/api/resources/SignUpAttempt.d.ts +0 -44
  214. package/node_modules/@clerk/backend/dist/api/resources/SignUpAttempt.d.ts.map +0 -1
  215. package/node_modules/@clerk/backend/dist/api/resources/TestingToken.d.ts +0 -8
  216. package/node_modules/@clerk/backend/dist/api/resources/TestingToken.d.ts.map +0 -1
  217. package/node_modules/@clerk/backend/dist/api/resources/Token.d.ts +0 -7
  218. package/node_modules/@clerk/backend/dist/api/resources/Token.d.ts.map +0 -1
  219. package/node_modules/@clerk/backend/dist/api/resources/User.d.ts +0 -296
  220. package/node_modules/@clerk/backend/dist/api/resources/User.d.ts.map +0 -1
  221. package/node_modules/@clerk/backend/dist/api/resources/Verification.d.ts +0 -90
  222. package/node_modules/@clerk/backend/dist/api/resources/Verification.d.ts.map +0 -1
  223. package/node_modules/@clerk/backend/dist/api/resources/WaitlistEntry.d.ts +0 -67
  224. package/node_modules/@clerk/backend/dist/api/resources/WaitlistEntry.d.ts.map +0 -1
  225. package/node_modules/@clerk/backend/dist/api/resources/Web3Wallet.d.ts +0 -36
  226. package/node_modules/@clerk/backend/dist/api/resources/Web3Wallet.d.ts.map +0 -1
  227. package/node_modules/@clerk/backend/dist/api/resources/Webhooks.d.ts +0 -32
  228. package/node_modules/@clerk/backend/dist/api/resources/Webhooks.d.ts.map +0 -1
  229. package/node_modules/@clerk/backend/dist/api/resources/index.d.ts +0 -57
  230. package/node_modules/@clerk/backend/dist/api/resources/index.d.ts.map +0 -1
  231. package/node_modules/@clerk/backend/dist/chunk-7KLH7JRZ.mjs.map +0 -1
  232. package/node_modules/@clerk/backend/dist/chunk-I4B6KCGC.mjs.map +0 -1
  233. package/node_modules/@clerk/backend/dist/chunk-P263NW7Z.mjs.map +0 -1
  234. package/node_modules/@clerk/backend/dist/chunk-QR37SKMP.mjs.map +0 -1
  235. package/node_modules/@clerk/backend/dist/chunk-TOROEX6P.mjs.map +0 -1
  236. package/node_modules/@clerk/backend/dist/chunk-YBVFDYDR.mjs.map +0 -1
  237. package/node_modules/@clerk/backend/dist/constants.d.ts +0 -91
  238. package/node_modules/@clerk/backend/dist/constants.d.ts.map +0 -1
  239. package/node_modules/@clerk/backend/dist/createRedirect.d.ts +0 -25
  240. package/node_modules/@clerk/backend/dist/createRedirect.d.ts.map +0 -1
  241. package/node_modules/@clerk/backend/dist/errors.d.ts +0 -67
  242. package/node_modules/@clerk/backend/dist/errors.d.ts.map +0 -1
  243. package/node_modules/@clerk/backend/dist/errors.js.map +0 -1
  244. package/node_modules/@clerk/backend/dist/errors.mjs.map +0 -1
  245. package/node_modules/@clerk/backend/dist/fixtures/index.d.ts +0 -105
  246. package/node_modules/@clerk/backend/dist/fixtures/index.d.ts.map +0 -1
  247. package/node_modules/@clerk/backend/dist/fixtures/machine.d.ts +0 -72
  248. package/node_modules/@clerk/backend/dist/fixtures/machine.d.ts.map +0 -1
  249. package/node_modules/@clerk/backend/dist/index.d.ts +0 -49
  250. package/node_modules/@clerk/backend/dist/index.d.ts.map +0 -1
  251. package/node_modules/@clerk/backend/dist/index.js.map +0 -1
  252. package/node_modules/@clerk/backend/dist/index.mjs.map +0 -1
  253. package/node_modules/@clerk/backend/dist/internal.d.ts +0 -20
  254. package/node_modules/@clerk/backend/dist/internal.d.ts.map +0 -1
  255. package/node_modules/@clerk/backend/dist/internal.js.map +0 -1
  256. package/node_modules/@clerk/backend/dist/internal.mjs.map +0 -1
  257. package/node_modules/@clerk/backend/dist/jwt/algorithms.d.ts +0 -3
  258. package/node_modules/@clerk/backend/dist/jwt/algorithms.d.ts.map +0 -1
  259. package/node_modules/@clerk/backend/dist/jwt/assertions.d.ts +0 -10
  260. package/node_modules/@clerk/backend/dist/jwt/assertions.d.ts.map +0 -1
  261. package/node_modules/@clerk/backend/dist/jwt/cryptoKeys.d.ts +0 -2
  262. package/node_modules/@clerk/backend/dist/jwt/cryptoKeys.d.ts.map +0 -1
  263. package/node_modules/@clerk/backend/dist/jwt/index.d.ts +0 -7
  264. package/node_modules/@clerk/backend/dist/jwt/index.d.ts.map +0 -1
  265. package/node_modules/@clerk/backend/dist/jwt/index.js.map +0 -1
  266. package/node_modules/@clerk/backend/dist/jwt/index.mjs.map +0 -1
  267. package/node_modules/@clerk/backend/dist/jwt/legacyReturn.d.ts +0 -4
  268. package/node_modules/@clerk/backend/dist/jwt/legacyReturn.d.ts.map +0 -1
  269. package/node_modules/@clerk/backend/dist/jwt/signJwt.d.ts +0 -20
  270. package/node_modules/@clerk/backend/dist/jwt/signJwt.d.ts.map +0 -1
  271. package/node_modules/@clerk/backend/dist/jwt/types.d.ts +0 -18
  272. package/node_modules/@clerk/backend/dist/jwt/types.d.ts.map +0 -1
  273. package/node_modules/@clerk/backend/dist/jwt/verifyJwt.d.ts +0 -38
  274. package/node_modules/@clerk/backend/dist/jwt/verifyJwt.d.ts.map +0 -1
  275. package/node_modules/@clerk/backend/dist/jwt/verifyMachineJwt.d.ts +0 -19
  276. package/node_modules/@clerk/backend/dist/jwt/verifyMachineJwt.d.ts.map +0 -1
  277. package/node_modules/@clerk/backend/dist/mock-server.d.ts +0 -4
  278. package/node_modules/@clerk/backend/dist/mock-server.d.ts.map +0 -1
  279. package/node_modules/@clerk/backend/dist/proxy.d.ts +0 -72
  280. package/node_modules/@clerk/backend/dist/proxy.d.ts.map +0 -1
  281. package/node_modules/@clerk/backend/dist/proxy.js.map +0 -1
  282. package/node_modules/@clerk/backend/dist/proxy.mjs.map +0 -1
  283. package/node_modules/@clerk/backend/dist/runtime.d.ts +0 -26
  284. package/node_modules/@clerk/backend/dist/runtime.d.ts.map +0 -1
  285. package/node_modules/@clerk/backend/dist/tokens/authObjects.d.ts +0 -193
  286. package/node_modules/@clerk/backend/dist/tokens/authObjects.d.ts.map +0 -1
  287. package/node_modules/@clerk/backend/dist/tokens/authStatus.d.ts +0 -120
  288. package/node_modules/@clerk/backend/dist/tokens/authStatus.d.ts.map +0 -1
  289. package/node_modules/@clerk/backend/dist/tokens/authenticateContext.d.ts +0 -78
  290. package/node_modules/@clerk/backend/dist/tokens/authenticateContext.d.ts.map +0 -1
  291. package/node_modules/@clerk/backend/dist/tokens/clerkRequest.d.ts +0 -29
  292. package/node_modules/@clerk/backend/dist/tokens/clerkRequest.d.ts.map +0 -1
  293. package/node_modules/@clerk/backend/dist/tokens/clerkUrl.d.ts +0 -18
  294. package/node_modules/@clerk/backend/dist/tokens/clerkUrl.d.ts.map +0 -1
  295. package/node_modules/@clerk/backend/dist/tokens/cookie.d.ts +0 -3
  296. package/node_modules/@clerk/backend/dist/tokens/cookie.d.ts.map +0 -1
  297. package/node_modules/@clerk/backend/dist/tokens/factory.d.ts +0 -29
  298. package/node_modules/@clerk/backend/dist/tokens/factory.d.ts.map +0 -1
  299. package/node_modules/@clerk/backend/dist/tokens/handshake.d.ts +0 -64
  300. package/node_modules/@clerk/backend/dist/tokens/handshake.d.ts.map +0 -1
  301. package/node_modules/@clerk/backend/dist/tokens/keys.d.ts +0 -54
  302. package/node_modules/@clerk/backend/dist/tokens/keys.d.ts.map +0 -1
  303. package/node_modules/@clerk/backend/dist/tokens/machine.d.ts +0 -85
  304. package/node_modules/@clerk/backend/dist/tokens/machine.d.ts.map +0 -1
  305. package/node_modules/@clerk/backend/dist/tokens/organizationMatcher.d.ts +0 -11
  306. package/node_modules/@clerk/backend/dist/tokens/organizationMatcher.d.ts.map +0 -1
  307. package/node_modules/@clerk/backend/dist/tokens/request.d.ts +0 -60
  308. package/node_modules/@clerk/backend/dist/tokens/request.d.ts.map +0 -1
  309. package/node_modules/@clerk/backend/dist/tokens/tokenTypes.d.ts +0 -19
  310. package/node_modules/@clerk/backend/dist/tokens/tokenTypes.d.ts.map +0 -1
  311. package/node_modules/@clerk/backend/dist/tokens/types.d.ts +0 -253
  312. package/node_modules/@clerk/backend/dist/tokens/types.d.ts.map +0 -1
  313. package/node_modules/@clerk/backend/dist/tokens/verify.d.ts +0 -109
  314. package/node_modules/@clerk/backend/dist/tokens/verify.d.ts.map +0 -1
  315. package/node_modules/@clerk/backend/dist/util/decorateObjectWithResources.d.ts +0 -22
  316. package/node_modules/@clerk/backend/dist/util/decorateObjectWithResources.d.ts.map +0 -1
  317. package/node_modules/@clerk/backend/dist/util/mergePreDefinedOptions.d.ts +0 -2
  318. package/node_modules/@clerk/backend/dist/util/mergePreDefinedOptions.d.ts.map +0 -1
  319. package/node_modules/@clerk/backend/dist/util/optionsAssertions.d.ts +0 -3
  320. package/node_modules/@clerk/backend/dist/util/optionsAssertions.d.ts.map +0 -1
  321. package/node_modules/@clerk/backend/dist/util/path.d.ts +0 -4
  322. package/node_modules/@clerk/backend/dist/util/path.d.ts.map +0 -1
  323. package/node_modules/@clerk/backend/dist/util/rfc4648.d.ts +0 -26
  324. package/node_modules/@clerk/backend/dist/util/rfc4648.d.ts.map +0 -1
  325. package/node_modules/@clerk/backend/dist/util/shared.d.ts +0 -7
  326. package/node_modules/@clerk/backend/dist/util/shared.d.ts.map +0 -1
  327. package/node_modules/@clerk/backend/dist/webhooks.d.ts +0 -50
  328. package/node_modules/@clerk/backend/dist/webhooks.d.ts.map +0 -1
  329. package/node_modules/@clerk/backend/dist/webhooks.js.map +0 -1
  330. package/node_modules/@clerk/backend/dist/webhooks.mjs.map +0 -1
  331. package/node_modules/@clerk/fastify/dist/chunk-RY4T2JMQ.mjs.map +0 -1
  332. package/node_modules/@clerk/fastify/dist/index-CWnSaB0B.d.mts +0 -25
  333. package/node_modules/@clerk/fastify/dist/index-CWnSaB0B.d.ts +0 -25
  334. package/node_modules/@clerk/fastify/dist/index.d.mts +0 -16
  335. package/node_modules/@clerk/fastify/dist/index.d.ts +0 -16
  336. package/node_modules/@clerk/fastify/dist/index.js.map +0 -1
  337. package/node_modules/@clerk/fastify/dist/index.mjs.map +0 -1
  338. package/node_modules/@clerk/fastify/dist/types.d.mts +0 -4
  339. package/node_modules/@clerk/fastify/dist/types.d.ts +0 -4
  340. package/node_modules/@clerk/fastify/dist/types.js.map +0 -1
  341. package/node_modules/@clerk/fastify/dist/types.mjs.map +0 -1
  342. package/node_modules/@clerk/fastify/dist/webhooks.d.mts +0 -19
  343. package/node_modules/@clerk/fastify/dist/webhooks.d.ts +0 -19
  344. package/node_modules/@clerk/fastify/dist/webhooks.js.map +0 -1
  345. package/node_modules/@clerk/fastify/dist/webhooks.mjs.map +0 -1
  346. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.mts +0 -9
  347. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.mts.map +0 -1
  348. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.ts +0 -9
  349. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.d.ts.map +0 -1
  350. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.js.map +0 -1
  351. package/node_modules/@clerk/shared/dist/runtime/alternativePhoneCode.mjs.map +0 -1
  352. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.mts +0 -11
  353. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.mts.map +0 -1
  354. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.ts +0 -11
  355. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.d.ts.map +0 -1
  356. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.js.map +0 -1
  357. package/node_modules/@clerk/shared/dist/runtime/apiUrlFromPublishableKey.mjs.map +0 -1
  358. package/node_modules/@clerk/shared/dist/runtime/authorization-Du_JQmnH.js.map +0 -1
  359. package/node_modules/@clerk/shared/dist/runtime/authorization-Un7v7f6J.mjs.map +0 -1
  360. package/node_modules/@clerk/shared/dist/runtime/authorization-errors-B7aH39AU.js.map +0 -1
  361. package/node_modules/@clerk/shared/dist/runtime/authorization-errors-CBHAr6Ld.mjs.map +0 -1
  362. package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.mts +0 -26
  363. package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.mts.map +0 -1
  364. package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.ts +0 -26
  365. package/node_modules/@clerk/shared/dist/runtime/authorization-errors.d.ts.map +0 -1
  366. package/node_modules/@clerk/shared/dist/runtime/authorization.d.mts +0 -72
  367. package/node_modules/@clerk/shared/dist/runtime/authorization.d.mts.map +0 -1
  368. package/node_modules/@clerk/shared/dist/runtime/authorization.d.ts +0 -72
  369. package/node_modules/@clerk/shared/dist/runtime/authorization.d.ts.map +0 -1
  370. package/node_modules/@clerk/shared/dist/runtime/browser-CMFCxUv7.mjs.map +0 -1
  371. package/node_modules/@clerk/shared/dist/runtime/browser-CaHqvEp1.js.map +0 -1
  372. package/node_modules/@clerk/shared/dist/runtime/browser.d.mts +0 -35
  373. package/node_modules/@clerk/shared/dist/runtime/browser.d.mts.map +0 -1
  374. package/node_modules/@clerk/shared/dist/runtime/browser.d.ts +0 -35
  375. package/node_modules/@clerk/shared/dist/runtime/browser.d.ts.map +0 -1
  376. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.mts +0 -8
  377. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.mts.map +0 -1
  378. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.ts +0 -8
  379. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.d.ts.map +0 -1
  380. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.js.map +0 -1
  381. package/node_modules/@clerk/shared/dist/runtime/buildAccountsBaseUrl.mjs.map +0 -1
  382. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.mts +0 -22
  383. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.mts.map +0 -1
  384. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.ts +0 -22
  385. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.d.ts.map +0 -1
  386. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.js.map +0 -1
  387. package/node_modules/@clerk/shared/dist/runtime/clerkEventBus.mjs.map +0 -1
  388. package/node_modules/@clerk/shared/dist/runtime/clerkRuntimeError-CaS4sM5w.js.map +0 -1
  389. package/node_modules/@clerk/shared/dist/runtime/clerkRuntimeError-DqAmLuLY.mjs.map +0 -1
  390. package/node_modules/@clerk/shared/dist/runtime/color.d.mts +0 -18
  391. package/node_modules/@clerk/shared/dist/runtime/color.d.mts.map +0 -1
  392. package/node_modules/@clerk/shared/dist/runtime/color.d.ts +0 -18
  393. package/node_modules/@clerk/shared/dist/runtime/color.d.ts.map +0 -1
  394. package/node_modules/@clerk/shared/dist/runtime/color.js.map +0 -1
  395. package/node_modules/@clerk/shared/dist/runtime/color.mjs.map +0 -1
  396. package/node_modules/@clerk/shared/dist/runtime/complexity-DEun2UD2.js.map +0 -1
  397. package/node_modules/@clerk/shared/dist/runtime/complexity-DydNJOmy.mjs.map +0 -1
  398. package/node_modules/@clerk/shared/dist/runtime/constants-BUzkV8jh.js.map +0 -1
  399. package/node_modules/@clerk/shared/dist/runtime/constants-Bta24VLk.mjs.map +0 -1
  400. package/node_modules/@clerk/shared/dist/runtime/constants-BulbbNR9.mjs.map +0 -1
  401. package/node_modules/@clerk/shared/dist/runtime/constants-WYhx_umW.js.map +0 -1
  402. package/node_modules/@clerk/shared/dist/runtime/constants.d.mts +0 -21
  403. package/node_modules/@clerk/shared/dist/runtime/constants.d.mts.map +0 -1
  404. package/node_modules/@clerk/shared/dist/runtime/constants.d.ts +0 -21
  405. package/node_modules/@clerk/shared/dist/runtime/constants.d.ts.map +0 -1
  406. package/node_modules/@clerk/shared/dist/runtime/cookie.d.mts +0 -30
  407. package/node_modules/@clerk/shared/dist/runtime/cookie.d.mts.map +0 -1
  408. package/node_modules/@clerk/shared/dist/runtime/cookie.d.ts +0 -30
  409. package/node_modules/@clerk/shared/dist/runtime/cookie.d.ts.map +0 -1
  410. package/node_modules/@clerk/shared/dist/runtime/cookie.js.map +0 -1
  411. package/node_modules/@clerk/shared/dist/runtime/cookie.mjs.map +0 -1
  412. package/node_modules/@clerk/shared/dist/runtime/createDeferredPromise-Bq0Rf2GM.js.map +0 -1
  413. package/node_modules/@clerk/shared/dist/runtime/createDeferredPromise-CYCAgyvC.mjs.map +0 -1
  414. package/node_modules/@clerk/shared/dist/runtime/date.d.mts +0 -37
  415. package/node_modules/@clerk/shared/dist/runtime/date.d.mts.map +0 -1
  416. package/node_modules/@clerk/shared/dist/runtime/date.d.ts +0 -37
  417. package/node_modules/@clerk/shared/dist/runtime/date.d.ts.map +0 -1
  418. package/node_modules/@clerk/shared/dist/runtime/date.js.map +0 -1
  419. package/node_modules/@clerk/shared/dist/runtime/date.mjs.map +0 -1
  420. package/node_modules/@clerk/shared/dist/runtime/deprecated--jK9xTNh.mjs.map +0 -1
  421. package/node_modules/@clerk/shared/dist/runtime/deprecated-841w0zq7.js.map +0 -1
  422. package/node_modules/@clerk/shared/dist/runtime/deprecated.d.mts +0 -40
  423. package/node_modules/@clerk/shared/dist/runtime/deprecated.d.mts.map +0 -1
  424. package/node_modules/@clerk/shared/dist/runtime/deprecated.d.ts +0 -40
  425. package/node_modules/@clerk/shared/dist/runtime/deprecated.d.ts.map +0 -1
  426. package/node_modules/@clerk/shared/dist/runtime/deriveState-CQUgOdaO.mjs.map +0 -1
  427. package/node_modules/@clerk/shared/dist/runtime/deriveState-zgq99aY1.js.map +0 -1
  428. package/node_modules/@clerk/shared/dist/runtime/deriveState.d.mts +0 -28
  429. package/node_modules/@clerk/shared/dist/runtime/deriveState.d.mts.map +0 -1
  430. package/node_modules/@clerk/shared/dist/runtime/deriveState.d.ts +0 -28
  431. package/node_modules/@clerk/shared/dist/runtime/deriveState.d.ts.map +0 -1
  432. package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.mts +0 -13
  433. package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.mts.map +0 -1
  434. package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.ts +0 -13
  435. package/node_modules/@clerk/shared/dist/runtime/devBrowser.d.ts.map +0 -1
  436. package/node_modules/@clerk/shared/dist/runtime/devBrowser.js.map +0 -1
  437. package/node_modules/@clerk/shared/dist/runtime/devBrowser.mjs.map +0 -1
  438. package/node_modules/@clerk/shared/dist/runtime/dom/index.d.mts +0 -2
  439. package/node_modules/@clerk/shared/dist/runtime/dom/index.d.ts +0 -2
  440. package/node_modules/@clerk/shared/dist/runtime/dom/waitForElement.d.mts +0 -2
  441. package/node_modules/@clerk/shared/dist/runtime/dom/waitForElement.d.ts +0 -2
  442. package/node_modules/@clerk/shared/dist/runtime/encoders-CAjYroSe.mjs.map +0 -1
  443. package/node_modules/@clerk/shared/dist/runtime/encoders-C_EA3--l.js.map +0 -1
  444. package/node_modules/@clerk/shared/dist/runtime/error-D-ayZ5nL.mjs.map +0 -1
  445. package/node_modules/@clerk/shared/dist/runtime/error-kcck_bbZ.js.map +0 -1
  446. package/node_modules/@clerk/shared/dist/runtime/error.d.mts +0 -3
  447. package/node_modules/@clerk/shared/dist/runtime/error.d.ts +0 -3
  448. package/node_modules/@clerk/shared/dist/runtime/errors-FAXDzRsM.js.map +0 -1
  449. package/node_modules/@clerk/shared/dist/runtime/errors-oOcNTWU9.mjs.map +0 -1
  450. package/node_modules/@clerk/shared/dist/runtime/esm-D9kK-xzr.js.map +0 -1
  451. package/node_modules/@clerk/shared/dist/runtime/esm-DGPYZuZb.mjs.map +0 -1
  452. package/node_modules/@clerk/shared/dist/runtime/eventBus-TFTcHo0F.mjs.map +0 -1
  453. package/node_modules/@clerk/shared/dist/runtime/eventBus-mLhN9dkg.js.map +0 -1
  454. package/node_modules/@clerk/shared/dist/runtime/eventBus.d.mts +0 -117
  455. package/node_modules/@clerk/shared/dist/runtime/eventBus.d.mts.map +0 -1
  456. package/node_modules/@clerk/shared/dist/runtime/eventBus.d.ts +0 -117
  457. package/node_modules/@clerk/shared/dist/runtime/eventBus.d.ts.map +0 -1
  458. package/node_modules/@clerk/shared/dist/runtime/file.d.mts +0 -21
  459. package/node_modules/@clerk/shared/dist/runtime/file.d.mts.map +0 -1
  460. package/node_modules/@clerk/shared/dist/runtime/file.d.ts +0 -21
  461. package/node_modules/@clerk/shared/dist/runtime/file.d.ts.map +0 -1
  462. package/node_modules/@clerk/shared/dist/runtime/file.js.map +0 -1
  463. package/node_modules/@clerk/shared/dist/runtime/file.mjs.map +0 -1
  464. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.mts +0 -12
  465. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.mts.map +0 -1
  466. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.ts +0 -12
  467. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.d.ts.map +0 -1
  468. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.js.map +0 -1
  469. package/node_modules/@clerk/shared/dist/runtime/getEnvVariable.mjs.map +0 -1
  470. package/node_modules/@clerk/shared/dist/runtime/getToken.d.mts +0 -46
  471. package/node_modules/@clerk/shared/dist/runtime/getToken.d.mts.map +0 -1
  472. package/node_modules/@clerk/shared/dist/runtime/getToken.d.ts +0 -46
  473. package/node_modules/@clerk/shared/dist/runtime/getToken.d.ts.map +0 -1
  474. package/node_modules/@clerk/shared/dist/runtime/getToken.js.map +0 -1
  475. package/node_modules/@clerk/shared/dist/runtime/getToken.mjs.map +0 -1
  476. package/node_modules/@clerk/shared/dist/runtime/globs-D0Kpu4g1.js.map +0 -1
  477. package/node_modules/@clerk/shared/dist/runtime/globs-u_gXJPLt.mjs.map +0 -1
  478. package/node_modules/@clerk/shared/dist/runtime/globs.d.mts +0 -7
  479. package/node_modules/@clerk/shared/dist/runtime/globs.d.mts.map +0 -1
  480. package/node_modules/@clerk/shared/dist/runtime/globs.d.ts +0 -7
  481. package/node_modules/@clerk/shared/dist/runtime/globs.d.ts.map +0 -1
  482. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-4-yw9hYF.d.ts +0 -7
  483. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-4-yw9hYF.d.ts.map +0 -1
  484. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-BWsoUzyL.d.mts +0 -7
  485. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-BWsoUzyL.d.mts.map +0 -1
  486. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-BmJC8Cue.js.map +0 -1
  487. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn-iAIjw-kJ.mjs.map +0 -1
  488. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.mts +0 -11
  489. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.mts.map +0 -1
  490. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.ts +0 -11
  491. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.d.ts.map +0 -1
  492. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.js.map +0 -1
  493. package/node_modules/@clerk/shared/dist/runtime/handleValueOrFn.mjs.map +0 -1
  494. package/node_modules/@clerk/shared/dist/runtime/hex-txii11Pj.mjs.map +0 -1
  495. package/node_modules/@clerk/shared/dist/runtime/hex-zF8OyMcG.js.map +0 -1
  496. package/node_modules/@clerk/shared/dist/runtime/index-BK_NVS1t.d.ts +0 -10885
  497. package/node_modules/@clerk/shared/dist/runtime/index-BK_NVS1t.d.ts.map +0 -1
  498. package/node_modules/@clerk/shared/dist/runtime/index-Cc98l5ga.d.mts +0 -10885
  499. package/node_modules/@clerk/shared/dist/runtime/index-Cc98l5ga.d.mts.map +0 -1
  500. package/node_modules/@clerk/shared/dist/runtime/index.d.mts +0 -1
  501. package/node_modules/@clerk/shared/dist/runtime/index.d.ts +0 -1
  502. package/node_modules/@clerk/shared/dist/runtime/index.js.map +0 -1
  503. package/node_modules/@clerk/shared/dist/runtime/index.mjs.map +0 -1
  504. package/node_modules/@clerk/shared/dist/runtime/injectedWeb3EthProviders-BqNbQ8Of.js.map +0 -1
  505. package/node_modules/@clerk/shared/dist/runtime/injectedWeb3EthProviders-Cp_aXKsI.mjs.map +0 -1
  506. package/node_modules/@clerk/shared/dist/runtime/injectedWeb3SolanaProviders-Cbd4CVu9.js.map +0 -1
  507. package/node_modules/@clerk/shared/dist/runtime/injectedWeb3SolanaProviders-DRQuwtHF.mjs.map +0 -1
  508. package/node_modules/@clerk/shared/dist/runtime/instance-BmZr0cdE.mjs.map +0 -1
  509. package/node_modules/@clerk/shared/dist/runtime/instance-C1LlVxIp.js.map +0 -1
  510. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.mts +0 -31
  511. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.mts.map +0 -1
  512. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.ts +0 -31
  513. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.d.ts.map +0 -1
  514. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.js.map +0 -1
  515. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/completeSignUpFlow.mjs.map +0 -1
  516. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.mts +0 -18
  517. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.mts.map +0 -1
  518. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.ts +0 -18
  519. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.d.ts.map +0 -1
  520. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.js.map +0 -1
  521. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/componentGuards.mjs.map +0 -1
  522. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.mts +0 -54
  523. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.mts.map +0 -1
  524. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.ts +0 -54
  525. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/constants.d.ts.map +0 -1
  526. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.mts +0 -12
  527. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.mts.map +0 -1
  528. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.ts +0 -12
  529. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.d.ts.map +0 -1
  530. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.js.map +0 -1
  531. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/email.mjs.map +0 -1
  532. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.mts +0 -8
  533. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.mts.map +0 -1
  534. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.ts +0 -8
  535. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/encoders.d.ts.map +0 -1
  536. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.mts +0 -113
  537. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.mts.map +0 -1
  538. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.ts +0 -113
  539. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/errors.d.ts.map +0 -1
  540. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.mts +0 -5
  541. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.mts.map +0 -1
  542. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.ts +0 -5
  543. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/hex.d.ts.map +0 -1
  544. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.mts +0 -15
  545. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.mts.map +0 -1
  546. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.ts +0 -15
  547. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3EthProviders.d.ts.map +0 -1
  548. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.mts +0 -13
  549. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.mts.map +0 -1
  550. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.ts +0 -13
  551. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/injectedWeb3SolanaProviders.d.ts.map +0 -1
  552. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.mts +0 -10
  553. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.mts.map +0 -1
  554. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.ts +0 -10
  555. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.d.ts.map +0 -1
  556. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.js.map +0 -1
  557. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/organization.mjs.map +0 -1
  558. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.mts +0 -61
  559. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.mts.map +0 -1
  560. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.ts +0 -61
  561. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.d.ts.map +0 -1
  562. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.js.map +0 -1
  563. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passkeys.mjs.map +0 -1
  564. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.mts +0 -11
  565. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.mts.map +0 -1
  566. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.ts +0 -11
  567. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/complexity.d.ts.map +0 -1
  568. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.mts +0 -12
  569. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.mts.map +0 -1
  570. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.ts +0 -12
  571. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.d.ts.map +0 -1
  572. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.js.map +0 -1
  573. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/loadZxcvbn.mjs.map +0 -1
  574. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.mts +0 -19
  575. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.mts.map +0 -1
  576. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.ts +0 -19
  577. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.d.ts.map +0 -1
  578. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.js.map +0 -1
  579. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/password.mjs.map +0 -1
  580. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.mts +0 -20
  581. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.mts.map +0 -1
  582. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.ts +0 -20
  583. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/passwords/strength.d.ts.map +0 -1
  584. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.mts +0 -6
  585. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.mts.map +0 -1
  586. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.ts +0 -6
  587. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/path.d.ts.map +0 -1
  588. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.mts +0 -36
  589. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.mts.map +0 -1
  590. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.ts +0 -36
  591. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryParams.d.ts.map +0 -1
  592. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.mts +0 -19
  593. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.mts.map +0 -1
  594. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.ts +0 -19
  595. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.d.ts.map +0 -1
  596. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.js.map +0 -1
  597. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/queryStateParams.mjs.map +0 -1
  598. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.mts +0 -9
  599. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.mts.map +0 -1
  600. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.ts +0 -9
  601. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/querystring.d.ts.map +0 -1
  602. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.mts +0 -23
  603. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.mts.map +0 -1
  604. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.ts +0 -23
  605. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.d.ts.map +0 -1
  606. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.js.map +0 -1
  607. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/redirectUrls.mjs.map +0 -1
  608. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.mts +0 -8
  609. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.mts.map +0 -1
  610. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.ts +0 -8
  611. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.d.ts.map +0 -1
  612. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.js.map +0 -1
  613. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/runtime.mjs.map +0 -1
  614. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.mts +0 -31
  615. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.mts.map +0 -1
  616. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.ts +0 -31
  617. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.d.ts.map +0 -1
  618. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.js.map +0 -1
  619. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/sessionTasks.mjs.map +0 -1
  620. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.mts +0 -18
  621. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.mts.map +0 -1
  622. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.ts +0 -18
  623. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.d.ts.map +0 -1
  624. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.js.map +0 -1
  625. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/thirdPartyDomains.mjs.map +0 -1
  626. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/url.d.mts +0 -4
  627. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/url.d.ts +0 -4
  628. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.mts +0 -23
  629. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.mts.map +0 -1
  630. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.ts +0 -23
  631. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.d.ts.map +0 -1
  632. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.js.map +0 -1
  633. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/user.mjs.map +0 -1
  634. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.mts +0 -25
  635. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.mts.map +0 -1
  636. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.ts +0 -25
  637. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.d.ts.map +0 -1
  638. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.js.map +0 -1
  639. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/warnings.mjs.map +0 -1
  640. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.mts +0 -32
  641. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.mts.map +0 -1
  642. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.ts +0 -32
  643. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.d.ts.map +0 -1
  644. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.js.map +0 -1
  645. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/web3.mjs.map +0 -1
  646. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.mts +0 -15
  647. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.mts.map +0 -1
  648. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.ts +0 -15
  649. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.d.ts.map +0 -1
  650. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.js.map +0 -1
  651. package/node_modules/@clerk/shared/dist/runtime/internal/clerk-js/windowNavigate.mjs.map +0 -1
  652. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob-CoF80qYz.mjs.map +0 -1
  653. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob-Hkpnx2p8.js.map +0 -1
  654. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.mts +0 -9
  655. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.mts.map +0 -1
  656. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.ts +0 -9
  657. package/node_modules/@clerk/shared/dist/runtime/isomorphicAtob.d.ts.map +0 -1
  658. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa-DWmLcIHi.mjs.map +0 -1
  659. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa-_pSA92Q9.js.map +0 -1
  660. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.mts +0 -5
  661. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.mts.map +0 -1
  662. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.ts +0 -5
  663. package/node_modules/@clerk/shared/dist/runtime/isomorphicBtoa.d.ts.map +0 -1
  664. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.mts +0 -23
  665. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.mts.map +0 -1
  666. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.ts +0 -23
  667. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.d.ts.map +0 -1
  668. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.js.map +0 -1
  669. package/node_modules/@clerk/shared/dist/runtime/jwtPayloadParser.mjs.map +0 -1
  670. package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.mts +0 -271
  671. package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.mts.map +0 -1
  672. package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.ts +0 -271
  673. package/node_modules/@clerk/shared/dist/runtime/keyless/index.d.ts.map +0 -1
  674. package/node_modules/@clerk/shared/dist/runtime/keyless/index.js.map +0 -1
  675. package/node_modules/@clerk/shared/dist/runtime/keyless/index.mjs.map +0 -1
  676. package/node_modules/@clerk/shared/dist/runtime/keys-BI9hmfja.js.map +0 -1
  677. package/node_modules/@clerk/shared/dist/runtime/keys-DuxzP8MU.mjs.map +0 -1
  678. package/node_modules/@clerk/shared/dist/runtime/keys.d.mts +0 -103
  679. package/node_modules/@clerk/shared/dist/runtime/keys.d.mts.map +0 -1
  680. package/node_modules/@clerk/shared/dist/runtime/keys.d.ts +0 -103
  681. package/node_modules/@clerk/shared/dist/runtime/keys.d.ts.map +0 -1
  682. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.mts +0 -88
  683. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.mts.map +0 -1
  684. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.ts +0 -88
  685. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.d.ts.map +0 -1
  686. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.js.map +0 -1
  687. package/node_modules/@clerk/shared/dist/runtime/loadClerkJsScript.mjs.map +0 -1
  688. package/node_modules/@clerk/shared/dist/runtime/loadScript-BnB9d_IW.js.map +0 -1
  689. package/node_modules/@clerk/shared/dist/runtime/loadScript-UG_epen4.mjs.map +0 -1
  690. package/node_modules/@clerk/shared/dist/runtime/loadScript.d.mts +0 -15
  691. package/node_modules/@clerk/shared/dist/runtime/loadScript.d.mts.map +0 -1
  692. package/node_modules/@clerk/shared/dist/runtime/loadScript.d.ts +0 -15
  693. package/node_modules/@clerk/shared/dist/runtime/loadScript.d.ts.map +0 -1
  694. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.mts +0 -18
  695. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.mts.map +0 -1
  696. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.ts +0 -18
  697. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.d.ts.map +0 -1
  698. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.js.map +0 -1
  699. package/node_modules/@clerk/shared/dist/runtime/localStorageBroadcastChannel.mjs.map +0 -1
  700. package/node_modules/@clerk/shared/dist/runtime/logger-BOte4sQb.js.map +0 -1
  701. package/node_modules/@clerk/shared/dist/runtime/logger-DISzhF9M.mjs.map +0 -1
  702. package/node_modules/@clerk/shared/dist/runtime/logger.d.mts +0 -12
  703. package/node_modules/@clerk/shared/dist/runtime/logger.d.mts.map +0 -1
  704. package/node_modules/@clerk/shared/dist/runtime/logger.d.ts +0 -12
  705. package/node_modules/@clerk/shared/dist/runtime/logger.d.ts.map +0 -1
  706. package/node_modules/@clerk/shared/dist/runtime/moduleManager-BsmFyRrH.d.mts +0 -21
  707. package/node_modules/@clerk/shared/dist/runtime/moduleManager-BsmFyRrH.d.mts.map +0 -1
  708. package/node_modules/@clerk/shared/dist/runtime/moduleManager-WB15hU3T.d.ts +0 -21
  709. package/node_modules/@clerk/shared/dist/runtime/moduleManager-WB15hU3T.d.ts.map +0 -1
  710. package/node_modules/@clerk/shared/dist/runtime/moduleManager.d.mts +0 -2
  711. package/node_modules/@clerk/shared/dist/runtime/moduleManager.d.ts +0 -2
  712. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler-DFm5qdPh.js.map +0 -1
  713. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler-Dkdkho_6.mjs.map +0 -1
  714. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.mts +0 -34
  715. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.mts.map +0 -1
  716. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.ts +0 -34
  717. package/node_modules/@clerk/shared/dist/runtime/netlifyCacheHandler.d.ts.map +0 -1
  718. package/node_modules/@clerk/shared/dist/runtime/noop-B7RzLU-c.mjs.map +0 -1
  719. package/node_modules/@clerk/shared/dist/runtime/noop-CVg8oVJr.js.map +0 -1
  720. package/node_modules/@clerk/shared/dist/runtime/oauth.d.mts +0 -19
  721. package/node_modules/@clerk/shared/dist/runtime/oauth.d.mts.map +0 -1
  722. package/node_modules/@clerk/shared/dist/runtime/oauth.d.ts +0 -19
  723. package/node_modules/@clerk/shared/dist/runtime/oauth.d.ts.map +0 -1
  724. package/node_modules/@clerk/shared/dist/runtime/oauth.js.map +0 -1
  725. package/node_modules/@clerk/shared/dist/runtime/oauth.mjs.map +0 -1
  726. package/node_modules/@clerk/shared/dist/runtime/object-DYaB_9gA.mjs.map +0 -1
  727. package/node_modules/@clerk/shared/dist/runtime/object-DklYlVP-.js.map +0 -1
  728. package/node_modules/@clerk/shared/dist/runtime/object.d.mts +0 -8
  729. package/node_modules/@clerk/shared/dist/runtime/object.d.mts.map +0 -1
  730. package/node_modules/@clerk/shared/dist/runtime/object.d.ts +0 -8
  731. package/node_modules/@clerk/shared/dist/runtime/object.d.ts.map +0 -1
  732. package/node_modules/@clerk/shared/dist/runtime/organization-BzM6mhUv.js.map +0 -1
  733. package/node_modules/@clerk/shared/dist/runtime/organization-Cy_ag_4B.mjs.map +0 -1
  734. package/node_modules/@clerk/shared/dist/runtime/organization.d.mts +0 -15
  735. package/node_modules/@clerk/shared/dist/runtime/organization.d.mts.map +0 -1
  736. package/node_modules/@clerk/shared/dist/runtime/organization.d.ts +0 -15
  737. package/node_modules/@clerk/shared/dist/runtime/organization.d.ts.map +0 -1
  738. package/node_modules/@clerk/shared/dist/runtime/path-BLD6zl1u.mjs.map +0 -1
  739. package/node_modules/@clerk/shared/dist/runtime/path-ci3QmWY8.js.map +0 -1
  740. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.mts +0 -17
  741. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.mts.map +0 -1
  742. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.ts +0 -17
  743. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.d.ts.map +0 -1
  744. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.js.map +0 -1
  745. package/node_modules/@clerk/shared/dist/runtime/pathMatcher.mjs.map +0 -1
  746. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp-7eww5BY6.mjs.map +0 -1
  747. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp-Do-462DY.js.map +0 -1
  748. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.mts +0 -85
  749. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.mts.map +0 -1
  750. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.ts +0 -85
  751. package/node_modules/@clerk/shared/dist/runtime/pathToRegexp.d.ts.map +0 -1
  752. package/node_modules/@clerk/shared/dist/runtime/poller.d.mts +0 -20
  753. package/node_modules/@clerk/shared/dist/runtime/poller.d.mts.map +0 -1
  754. package/node_modules/@clerk/shared/dist/runtime/poller.d.ts +0 -20
  755. package/node_modules/@clerk/shared/dist/runtime/poller.d.ts.map +0 -1
  756. package/node_modules/@clerk/shared/dist/runtime/poller.js.map +0 -1
  757. package/node_modules/@clerk/shared/dist/runtime/poller.mjs.map +0 -1
  758. package/node_modules/@clerk/shared/dist/runtime/proxy-BcfViKjn.mjs.map +0 -1
  759. package/node_modules/@clerk/shared/dist/runtime/proxy-DahrnOq8.js.map +0 -1
  760. package/node_modules/@clerk/shared/dist/runtime/proxy.d.mts +0 -24
  761. package/node_modules/@clerk/shared/dist/runtime/proxy.d.mts.map +0 -1
  762. package/node_modules/@clerk/shared/dist/runtime/proxy.d.ts +0 -24
  763. package/node_modules/@clerk/shared/dist/runtime/proxy.d.ts.map +0 -1
  764. package/node_modules/@clerk/shared/dist/runtime/queryParams-DSUymAGT.js.map +0 -1
  765. package/node_modules/@clerk/shared/dist/runtime/queryParams-Dlt0oVDg.mjs.map +0 -1
  766. package/node_modules/@clerk/shared/dist/runtime/querystring-BFj_iDi0.js.map +0 -1
  767. package/node_modules/@clerk/shared/dist/runtime/querystring-pXtwII0l.mjs.map +0 -1
  768. package/node_modules/@clerk/shared/dist/runtime/react/index.d.mts +0 -1647
  769. package/node_modules/@clerk/shared/dist/runtime/react/index.d.mts.map +0 -1
  770. package/node_modules/@clerk/shared/dist/runtime/react/index.d.ts +0 -1647
  771. package/node_modules/@clerk/shared/dist/runtime/react/index.d.ts.map +0 -1
  772. package/node_modules/@clerk/shared/dist/runtime/react/index.js.map +0 -1
  773. package/node_modules/@clerk/shared/dist/runtime/react/index.mjs.map +0 -1
  774. package/node_modules/@clerk/shared/dist/runtime/retry-DGCmqlcR.js.map +0 -1
  775. package/node_modules/@clerk/shared/dist/runtime/retry-DqRIhHV5.mjs.map +0 -1
  776. package/node_modules/@clerk/shared/dist/runtime/retry.d.mts +0 -60
  777. package/node_modules/@clerk/shared/dist/runtime/retry.d.mts.map +0 -1
  778. package/node_modules/@clerk/shared/dist/runtime/retry.d.ts +0 -60
  779. package/node_modules/@clerk/shared/dist/runtime/retry.d.ts.map +0 -1
  780. package/node_modules/@clerk/shared/dist/runtime/router.d.mts +0 -100
  781. package/node_modules/@clerk/shared/dist/runtime/router.d.mts.map +0 -1
  782. package/node_modules/@clerk/shared/dist/runtime/router.d.ts +0 -100
  783. package/node_modules/@clerk/shared/dist/runtime/router.d.ts.map +0 -1
  784. package/node_modules/@clerk/shared/dist/runtime/router.js.map +0 -1
  785. package/node_modules/@clerk/shared/dist/runtime/router.mjs.map +0 -1
  786. package/node_modules/@clerk/shared/dist/runtime/runtimeEnvironment-D1yr0yUs.mjs.map +0 -1
  787. package/node_modules/@clerk/shared/dist/runtime/runtimeEnvironment-DJJWo5AR.js.map +0 -1
  788. package/node_modules/@clerk/shared/dist/runtime/safeImport.d.mts +0 -18
  789. package/node_modules/@clerk/shared/dist/runtime/safeImport.d.mts.map +0 -1
  790. package/node_modules/@clerk/shared/dist/runtime/safeImport.d.ts +0 -18
  791. package/node_modules/@clerk/shared/dist/runtime/safeImport.d.ts.map +0 -1
  792. package/node_modules/@clerk/shared/dist/runtime/safeImport.js.map +0 -1
  793. package/node_modules/@clerk/shared/dist/runtime/safeImport.mjs.map +0 -1
  794. package/node_modules/@clerk/shared/dist/runtime/saml.d.mts +0 -8
  795. package/node_modules/@clerk/shared/dist/runtime/saml.d.mts.map +0 -1
  796. package/node_modules/@clerk/shared/dist/runtime/saml.d.ts +0 -8
  797. package/node_modules/@clerk/shared/dist/runtime/saml.d.ts.map +0 -1
  798. package/node_modules/@clerk/shared/dist/runtime/saml.js.map +0 -1
  799. package/node_modules/@clerk/shared/dist/runtime/saml.mjs.map +0 -1
  800. package/node_modules/@clerk/shared/dist/runtime/strength-DMrZQDoO.js.map +0 -1
  801. package/node_modules/@clerk/shared/dist/runtime/strength-DPtAse7d.mjs.map +0 -1
  802. package/node_modules/@clerk/shared/dist/runtime/telemetry--P0a0tSk.js.map +0 -1
  803. package/node_modules/@clerk/shared/dist/runtime/telemetry-DE2JFEBf.mjs.map +0 -1
  804. package/node_modules/@clerk/shared/dist/runtime/telemetry.d.mts +0 -143
  805. package/node_modules/@clerk/shared/dist/runtime/telemetry.d.mts.map +0 -1
  806. package/node_modules/@clerk/shared/dist/runtime/telemetry.d.ts +0 -143
  807. package/node_modules/@clerk/shared/dist/runtime/telemetry.d.ts.map +0 -1
  808. package/node_modules/@clerk/shared/dist/runtime/types/index.d.mts +0 -3
  809. package/node_modules/@clerk/shared/dist/runtime/types/index.d.ts +0 -3
  810. package/node_modules/@clerk/shared/dist/runtime/ui/index.d.mts +0 -3
  811. package/node_modules/@clerk/shared/dist/runtime/ui/index.d.ts +0 -3
  812. package/node_modules/@clerk/shared/dist/runtime/underscore-BX6Ucmg5.js.map +0 -1
  813. package/node_modules/@clerk/shared/dist/runtime/underscore-ClYSgvuy.mjs.map +0 -1
  814. package/node_modules/@clerk/shared/dist/runtime/underscore.d.mts +0 -63
  815. package/node_modules/@clerk/shared/dist/runtime/underscore.d.mts.map +0 -1
  816. package/node_modules/@clerk/shared/dist/runtime/underscore.d.ts +0 -63
  817. package/node_modules/@clerk/shared/dist/runtime/underscore.d.ts.map +0 -1
  818. package/node_modules/@clerk/shared/dist/runtime/url-C6gPMFx5.mjs.map +0 -1
  819. package/node_modules/@clerk/shared/dist/runtime/url-CKcDCvyG.d.ts +0 -144
  820. package/node_modules/@clerk/shared/dist/runtime/url-CKcDCvyG.d.ts.map +0 -1
  821. package/node_modules/@clerk/shared/dist/runtime/url-CoXV4i87.js.map +0 -1
  822. package/node_modules/@clerk/shared/dist/runtime/url-DaPDWryr.mjs.map +0 -1
  823. package/node_modules/@clerk/shared/dist/runtime/url-Ou22U773.d.mts +0 -144
  824. package/node_modules/@clerk/shared/dist/runtime/url-Ou22U773.d.mts.map +0 -1
  825. package/node_modules/@clerk/shared/dist/runtime/url-sAcxbiir.js.map +0 -1
  826. package/node_modules/@clerk/shared/dist/runtime/url.d.mts +0 -78
  827. package/node_modules/@clerk/shared/dist/runtime/url.d.mts.map +0 -1
  828. package/node_modules/@clerk/shared/dist/runtime/url.d.ts +0 -78
  829. package/node_modules/@clerk/shared/dist/runtime/url.d.ts.map +0 -1
  830. package/node_modules/@clerk/shared/dist/runtime/utils/index.d.mts +0 -65
  831. package/node_modules/@clerk/shared/dist/runtime/utils/index.d.mts.map +0 -1
  832. package/node_modules/@clerk/shared/dist/runtime/utils/index.d.ts +0 -65
  833. package/node_modules/@clerk/shared/dist/runtime/utils/index.d.ts.map +0 -1
  834. package/node_modules/@clerk/shared/dist/runtime/utils-TXJdVJx7.mjs.map +0 -1
  835. package/node_modules/@clerk/shared/dist/runtime/utils-Y3tB5LFT.js.map +0 -1
  836. package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.mts +0 -58
  837. package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.mts.map +0 -1
  838. package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.ts +0 -58
  839. package/node_modules/@clerk/shared/dist/runtime/versionCheck.d.ts.map +0 -1
  840. package/node_modules/@clerk/shared/dist/runtime/versionCheck.js.map +0 -1
  841. package/node_modules/@clerk/shared/dist/runtime/versionCheck.mjs.map +0 -1
  842. package/node_modules/@clerk/shared/dist/runtime/versionSelector-BSa0YYBu.mjs.map +0 -1
  843. package/node_modules/@clerk/shared/dist/runtime/versionSelector-CoS6g9-B.js.map +0 -1
  844. package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.mts +0 -17
  845. package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.mts.map +0 -1
  846. package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.ts +0 -17
  847. package/node_modules/@clerk/shared/dist/runtime/versionSelector.d.ts.map +0 -1
  848. package/node_modules/@clerk/shared/dist/runtime/waitForElement-CB9iynCD.mjs.map +0 -1
  849. package/node_modules/@clerk/shared/dist/runtime/waitForElement-DGxKWlwM.js.map +0 -1
  850. package/node_modules/@clerk/shared/dist/runtime/waitForElement-DLpcirWQ.d.ts +0 -8
  851. package/node_modules/@clerk/shared/dist/runtime/waitForElement-DLpcirWQ.d.ts.map +0 -1
  852. package/node_modules/@clerk/shared/dist/runtime/waitForElement-DZxkXjac.d.mts +0 -8
  853. package/node_modules/@clerk/shared/dist/runtime/waitForElement-DZxkXjac.d.mts.map +0 -1
  854. package/node_modules/@clerk/shared/dist/runtime/web3.d.mts +0 -8
  855. package/node_modules/@clerk/shared/dist/runtime/web3.d.mts.map +0 -1
  856. package/node_modules/@clerk/shared/dist/runtime/web3.d.ts +0 -8
  857. package/node_modules/@clerk/shared/dist/runtime/web3.d.ts.map +0 -1
  858. package/node_modules/@clerk/shared/dist/runtime/web3.js.map +0 -1
  859. package/node_modules/@clerk/shared/dist/runtime/web3.mjs.map +0 -1
  860. package/node_modules/@clerk/shared/dist/runtime/webauthn.d.mts +0 -16
  861. package/node_modules/@clerk/shared/dist/runtime/webauthn.d.mts.map +0 -1
  862. package/node_modules/@clerk/shared/dist/runtime/webauthn.d.ts +0 -16
  863. package/node_modules/@clerk/shared/dist/runtime/webauthn.d.ts.map +0 -1
  864. package/node_modules/@clerk/shared/dist/runtime/webauthn.js.map +0 -1
  865. package/node_modules/@clerk/shared/dist/runtime/webauthn.mjs.map +0 -1
  866. package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.mts +0 -17
  867. package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.mts.map +0 -1
  868. package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.ts +0 -17
  869. package/node_modules/@clerk/shared/dist/runtime/workerTimers/index.d.ts.map +0 -1
  870. package/node_modules/@clerk/shared/dist/runtime/workerTimers-CDy8bBJS.mjs.map +0 -1
  871. package/node_modules/@clerk/shared/dist/runtime/workerTimers-D-HZtmjt.js.map +0 -1
  872. package/node_modules/@clerk/shared/dist/types/index.d.mts +0 -10584
  873. package/node_modules/@clerk/shared/dist/types/index.d.mts.map +0 -1
  874. package/node_modules/@clerk/shared/dist/types/index.d.ts +0 -10584
  875. package/node_modules/@clerk/shared/dist/types/index.d.ts.map +0 -1
  876. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts +0 -4
  877. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.d.ts.map +0 -1
  878. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js.map +0 -1
  879. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts +0 -34
  880. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.d.ts.map +0 -1
  881. package/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js.map +0 -1
  882. package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts +0 -6
  883. package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.d.ts.map +0 -1
  884. package/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js.map +0 -1
  885. package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts +0 -2
  886. package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.d.ts.map +0 -1
  887. package/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js.map +0 -1
  888. package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts +0 -41
  889. package/node_modules/@isaacs/cliui/dist/commonjs/index.d.ts.map +0 -1
  890. package/node_modules/@isaacs/cliui/dist/commonjs/index.js.map +0 -1
  891. package/node_modules/@isaacs/cliui/dist/commonjs/index.min.js.map +0 -7
  892. package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts +0 -5
  893. package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.d.ts.map +0 -1
  894. package/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js.map +0 -1
  895. package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts +0 -2
  896. package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.d.ts.map +0 -1
  897. package/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js.map +0 -1
  898. package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts +0 -7
  899. package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.d.ts.map +0 -1
  900. package/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js.map +0 -1
  901. package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts +0 -4
  902. package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.d.ts.map +0 -1
  903. package/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js.map +0 -1
  904. package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts +0 -34
  905. package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.d.ts.map +0 -1
  906. package/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js.map +0 -1
  907. package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts +0 -6
  908. package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.d.ts.map +0 -1
  909. package/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js.map +0 -1
  910. package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts +0 -2
  911. package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.d.ts.map +0 -1
  912. package/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js.map +0 -1
  913. package/node_modules/@isaacs/cliui/dist/esm/index.d.ts +0 -41
  914. package/node_modules/@isaacs/cliui/dist/esm/index.d.ts.map +0 -1
  915. package/node_modules/@isaacs/cliui/dist/esm/index.js.map +0 -1
  916. package/node_modules/@isaacs/cliui/dist/esm/index.min.js.map +0 -7
  917. package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts +0 -5
  918. package/node_modules/@isaacs/cliui/dist/esm/string-width/index.d.ts.map +0 -1
  919. package/node_modules/@isaacs/cliui/dist/esm/string-width/index.js.map +0 -1
  920. package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts +0 -2
  921. package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.d.ts.map +0 -1
  922. package/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js.map +0 -1
  923. package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts +0 -7
  924. package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.d.ts.map +0 -1
  925. package/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js.map +0 -1
  926. package/node_modules/@openrouter/ai-sdk-provider/dist/index.d.mts +0 -239
  927. package/node_modules/@openrouter/ai-sdk-provider/dist/index.d.ts +0 -239
  928. package/node_modules/@openrouter/ai-sdk-provider/dist/index.js.map +0 -1
  929. package/node_modules/@openrouter/ai-sdk-provider/dist/index.mjs.map +0 -1
  930. package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.d.mts +0 -156
  931. package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.d.ts +0 -156
  932. package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.js.map +0 -1
  933. package/node_modules/@openrouter/ai-sdk-provider/dist/internal/index.mjs.map +0 -1
  934. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.d.mts +0 -1252
  935. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.d.ts +0 -1252
  936. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.js.map +0 -1
  937. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider/dist/index.mjs.map +0 -1
  938. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.d.mts +0 -352
  939. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.d.ts +0 -352
  940. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.js.map +0 -1
  941. package/node_modules/@openrouter/ai-sdk-provider/node_modules/@ai-sdk/provider-utils/dist/index.mjs.map +0 -1
  942. package/node_modules/@standard-schema/spec/dist/index.d.cts +0 -119
  943. package/node_modules/@standard-schema/spec/dist/index.d.ts +0 -119
  944. package/node_modules/@stricli/core/dist/index.d.cts +0 -1443
  945. package/node_modules/@stricli/core/dist/index.d.ts +0 -1443
  946. package/node_modules/@vercel/oidc/dist/auth-config.d.ts +0 -30
  947. package/node_modules/@vercel/oidc/dist/get-context.d.ts +0 -6
  948. package/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.d.ts +0 -49
  949. package/node_modules/@vercel/oidc/dist/get-vercel-oidc-token.test.d.ts +0 -1
  950. package/node_modules/@vercel/oidc/dist/index-browser.d.ts +0 -3
  951. package/node_modules/@vercel/oidc/dist/index-browser.test.d.ts +0 -1
  952. package/node_modules/@vercel/oidc/dist/index.d.ts +0 -2
  953. package/node_modules/@vercel/oidc/dist/oauth.d.ts +0 -17
  954. package/node_modules/@vercel/oidc/dist/token-error.d.ts +0 -5
  955. package/node_modules/@vercel/oidc/dist/token-io.d.ts +0 -2
  956. package/node_modules/@vercel/oidc/dist/token-util.d.ts +0 -21
  957. package/node_modules/@vercel/oidc/dist/token-util.test.d.ts +0 -1
  958. package/node_modules/@vercel/oidc/dist/token.d.ts +0 -1
  959. package/node_modules/@vercel/oidc/dist/token.test.d.ts +0 -1
  960. package/node_modules/agent-base/dist/helpers.d.ts +0 -15
  961. package/node_modules/agent-base/dist/helpers.d.ts.map +0 -1
  962. package/node_modules/agent-base/dist/helpers.js.map +0 -1
  963. package/node_modules/agent-base/dist/index.d.ts +0 -41
  964. package/node_modules/agent-base/dist/index.d.ts.map +0 -1
  965. package/node_modules/agent-base/dist/index.js.map +0 -1
  966. package/node_modules/ai/dist/index.d.mts +0 -6403
  967. package/node_modules/ai/dist/index.d.ts +0 -6403
  968. package/node_modules/ai/dist/index.js.map +0 -1
  969. package/node_modules/ai/dist/index.mjs.map +0 -1
  970. package/node_modules/ai/dist/internal/index.d.mts +0 -314
  971. package/node_modules/ai/dist/internal/index.d.ts +0 -314
  972. package/node_modules/ai/dist/internal/index.js.map +0 -1
  973. package/node_modules/ai/dist/internal/index.mjs.map +0 -1
  974. package/node_modules/ajv/dist/2019.d.ts +0 -19
  975. package/node_modules/ajv/dist/2019.js.map +0 -1
  976. package/node_modules/ajv/dist/2020.d.ts +0 -19
  977. package/node_modules/ajv/dist/2020.js.map +0 -1
  978. package/node_modules/ajv/dist/ajv.d.ts +0 -18
  979. package/node_modules/ajv/dist/ajv.js.map +0 -1
  980. package/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
  981. package/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
  982. package/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
  983. package/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
  984. package/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
  985. package/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
  986. package/node_modules/ajv/dist/compile/errors.d.ts +0 -13
  987. package/node_modules/ajv/dist/compile/errors.js.map +0 -1
  988. package/node_modules/ajv/dist/compile/index.d.ts +0 -80
  989. package/node_modules/ajv/dist/compile/index.js.map +0 -1
  990. package/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
  991. package/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
  992. package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
  993. package/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
  994. package/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
  995. package/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
  996. package/node_modules/ajv/dist/compile/names.d.ts +0 -20
  997. package/node_modules/ajv/dist/compile/names.js.map +0 -1
  998. package/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
  999. package/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
  1000. package/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
  1001. package/node_modules/ajv/dist/compile/resolve.js.map +0 -1
  1002. package/node_modules/ajv/dist/compile/rules.d.ts +0 -28
  1003. package/node_modules/ajv/dist/compile/rules.js.map +0 -1
  1004. package/node_modules/ajv/dist/compile/util.d.ts +0 -40
  1005. package/node_modules/ajv/dist/compile/util.js.map +0 -1
  1006. package/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
  1007. package/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
  1008. package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
  1009. package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
  1010. package/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
  1011. package/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
  1012. package/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
  1013. package/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
  1014. package/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
  1015. package/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
  1016. package/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
  1017. package/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
  1018. package/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
  1019. package/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
  1020. package/node_modules/ajv/dist/core.d.ts +0 -174
  1021. package/node_modules/ajv/dist/core.js.map +0 -1
  1022. package/node_modules/ajv/dist/jtd.d.ts +0 -47
  1023. package/node_modules/ajv/dist/jtd.js.map +0 -1
  1024. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
  1025. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
  1026. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
  1027. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
  1028. package/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
  1029. package/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
  1030. package/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
  1031. package/node_modules/ajv/dist/runtime/equal.js.map +0 -1
  1032. package/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
  1033. package/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
  1034. package/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
  1035. package/node_modules/ajv/dist/runtime/quote.js.map +0 -1
  1036. package/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
  1037. package/node_modules/ajv/dist/runtime/re2.js.map +0 -1
  1038. package/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
  1039. package/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
  1040. package/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
  1041. package/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
  1042. package/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
  1043. package/node_modules/ajv/dist/runtime/uri.js.map +0 -1
  1044. package/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
  1045. package/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
  1046. package/node_modules/ajv/dist/standalone/index.d.ts +0 -6
  1047. package/node_modules/ajv/dist/standalone/index.js.map +0 -1
  1048. package/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
  1049. package/node_modules/ajv/dist/standalone/instance.js.map +0 -1
  1050. package/node_modules/ajv/dist/types/index.d.ts +0 -183
  1051. package/node_modules/ajv/dist/types/index.js.map +0 -1
  1052. package/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
  1053. package/node_modules/ajv/dist/types/json-schema.js.map +0 -1
  1054. package/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
  1055. package/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
  1056. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
  1057. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
  1058. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
  1059. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
  1060. package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
  1061. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
  1062. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
  1063. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
  1064. package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
  1065. package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
  1066. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
  1067. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
  1068. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
  1069. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
  1070. package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
  1071. package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
  1072. package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
  1073. package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
  1074. package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
  1075. package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
  1076. package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
  1077. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
  1078. package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
  1079. package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
  1080. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
  1081. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
  1082. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
  1083. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
  1084. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
  1085. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
  1086. package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
  1087. package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
  1088. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
  1089. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
  1090. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
  1091. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
  1092. package/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
  1093. package/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
  1094. package/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
  1095. package/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
  1096. package/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
  1097. package/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
  1098. package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
  1099. package/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
  1100. package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
  1101. package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
  1102. package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
  1103. package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
  1104. package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
  1105. package/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
  1106. package/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
  1107. package/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
  1108. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
  1109. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
  1110. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
  1111. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
  1112. package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
  1113. package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
  1114. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
  1115. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
  1116. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
  1117. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
  1118. package/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
  1119. package/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
  1120. package/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
  1121. package/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
  1122. package/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
  1123. package/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
  1124. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
  1125. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
  1126. package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
  1127. package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
  1128. package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
  1129. package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
  1130. package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
  1131. package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
  1132. package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
  1133. package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
  1134. package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
  1135. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
  1136. package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
  1137. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
  1138. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
  1139. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
  1140. package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
  1141. package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
  1142. package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
  1143. package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
  1144. package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
  1145. package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
  1146. package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
  1147. package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
  1148. package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
  1149. package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
  1150. package/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
  1151. package/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
  1152. package/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
  1153. package/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
  1154. package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
  1155. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
  1156. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
  1157. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
  1158. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
  1159. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
  1160. package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
  1161. package/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
  1162. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
  1163. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
  1164. package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
  1165. package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
  1166. package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
  1167. package/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
  1168. package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
  1169. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
  1170. package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
  1171. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
  1172. package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
  1173. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
  1174. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
  1175. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
  1176. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
  1177. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
  1178. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
  1179. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
  1180. package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
  1181. package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
  1182. package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
  1183. package/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
  1184. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
  1185. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
  1186. package/node_modules/ajv-formats/dist/formats.d.ts +0 -9
  1187. package/node_modules/ajv-formats/dist/formats.js.map +0 -1
  1188. package/node_modules/ajv-formats/dist/index.d.ts +0 -15
  1189. package/node_modules/ajv-formats/dist/index.js.map +0 -1
  1190. package/node_modules/ajv-formats/dist/limit.d.ts +0 -10
  1191. package/node_modules/ajv-formats/dist/limit.js.map +0 -1
  1192. package/node_modules/balanced-match/dist/commonjs/index.d.ts +0 -9
  1193. package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +0 -1
  1194. package/node_modules/balanced-match/dist/commonjs/index.js.map +0 -1
  1195. package/node_modules/balanced-match/dist/esm/index.d.ts +0 -9
  1196. package/node_modules/balanced-match/dist/esm/index.d.ts.map +0 -1
  1197. package/node_modules/balanced-match/dist/esm/index.js.map +0 -1
  1198. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +0 -6
  1199. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +0 -1
  1200. package/node_modules/brace-expansion/dist/commonjs/index.js.map +0 -1
  1201. package/node_modules/brace-expansion/dist/esm/index.d.ts +0 -6
  1202. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +0 -1
  1203. package/node_modules/brace-expansion/dist/esm/index.js.map +0 -1
  1204. package/node_modules/cookie/dist/index.d.ts +0 -148
  1205. package/node_modules/cookie/dist/index.js.map +0 -1
  1206. package/node_modules/eventsource-parser/dist/index.cjs.map +0 -1
  1207. package/node_modules/eventsource-parser/dist/index.d.cts +0 -144
  1208. package/node_modules/eventsource-parser/dist/index.d.ts +0 -144
  1209. package/node_modules/eventsource-parser/dist/index.js.map +0 -1
  1210. package/node_modules/eventsource-parser/dist/stream.cjs.map +0 -1
  1211. package/node_modules/eventsource-parser/dist/stream.d.cts +0 -118
  1212. package/node_modules/eventsource-parser/dist/stream.d.ts +0 -118
  1213. package/node_modules/eventsource-parser/dist/stream.js.map +0 -1
  1214. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts +0 -2
  1215. package/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +0 -1
  1216. package/node_modules/foreground-child/dist/commonjs/all-signals.js.map +0 -1
  1217. package/node_modules/foreground-child/dist/commonjs/index.d.ts +0 -58
  1218. package/node_modules/foreground-child/dist/commonjs/index.d.ts.map +0 -1
  1219. package/node_modules/foreground-child/dist/commonjs/index.js.map +0 -1
  1220. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts +0 -6
  1221. package/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +0 -1
  1222. package/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +0 -1
  1223. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts +0 -10
  1224. package/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +0 -1
  1225. package/node_modules/foreground-child/dist/commonjs/watchdog.js.map +0 -1
  1226. package/node_modules/foreground-child/dist/esm/all-signals.d.ts +0 -2
  1227. package/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +0 -1
  1228. package/node_modules/foreground-child/dist/esm/all-signals.js.map +0 -1
  1229. package/node_modules/foreground-child/dist/esm/index.d.ts +0 -58
  1230. package/node_modules/foreground-child/dist/esm/index.d.ts.map +0 -1
  1231. package/node_modules/foreground-child/dist/esm/index.js.map +0 -1
  1232. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts +0 -6
  1233. package/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +0 -1
  1234. package/node_modules/foreground-child/dist/esm/proxy-signals.js.map +0 -1
  1235. package/node_modules/foreground-child/dist/esm/watchdog.d.ts +0 -10
  1236. package/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +0 -1
  1237. package/node_modules/foreground-child/dist/esm/watchdog.js.map +0 -1
  1238. package/node_modules/glob/dist/commonjs/glob.d.ts +0 -388
  1239. package/node_modules/glob/dist/commonjs/glob.d.ts.map +0 -1
  1240. package/node_modules/glob/dist/commonjs/glob.js.map +0 -1
  1241. package/node_modules/glob/dist/commonjs/has-magic.d.ts +0 -14
  1242. package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +0 -1
  1243. package/node_modules/glob/dist/commonjs/has-magic.js.map +0 -1
  1244. package/node_modules/glob/dist/commonjs/ignore.d.ts +0 -24
  1245. package/node_modules/glob/dist/commonjs/ignore.d.ts.map +0 -1
  1246. package/node_modules/glob/dist/commonjs/ignore.js.map +0 -1
  1247. package/node_modules/glob/dist/commonjs/index.d.ts +0 -97
  1248. package/node_modules/glob/dist/commonjs/index.d.ts.map +0 -1
  1249. package/node_modules/glob/dist/commonjs/index.js.map +0 -1
  1250. package/node_modules/glob/dist/commonjs/pattern.d.ts +0 -76
  1251. package/node_modules/glob/dist/commonjs/pattern.d.ts.map +0 -1
  1252. package/node_modules/glob/dist/commonjs/pattern.js.map +0 -1
  1253. package/node_modules/glob/dist/commonjs/processor.d.ts +0 -59
  1254. package/node_modules/glob/dist/commonjs/processor.d.ts.map +0 -1
  1255. package/node_modules/glob/dist/commonjs/processor.js.map +0 -1
  1256. package/node_modules/glob/dist/commonjs/walker.d.ts +0 -97
  1257. package/node_modules/glob/dist/commonjs/walker.d.ts.map +0 -1
  1258. package/node_modules/glob/dist/commonjs/walker.js.map +0 -1
  1259. package/node_modules/glob/dist/esm/bin.d.mts +0 -3
  1260. package/node_modules/glob/dist/esm/bin.d.mts.map +0 -1
  1261. package/node_modules/glob/dist/esm/bin.mjs.map +0 -1
  1262. package/node_modules/glob/dist/esm/glob.d.ts +0 -388
  1263. package/node_modules/glob/dist/esm/glob.d.ts.map +0 -1
  1264. package/node_modules/glob/dist/esm/glob.js.map +0 -1
  1265. package/node_modules/glob/dist/esm/has-magic.d.ts +0 -14
  1266. package/node_modules/glob/dist/esm/has-magic.d.ts.map +0 -1
  1267. package/node_modules/glob/dist/esm/has-magic.js.map +0 -1
  1268. package/node_modules/glob/dist/esm/ignore.d.ts +0 -24
  1269. package/node_modules/glob/dist/esm/ignore.d.ts.map +0 -1
  1270. package/node_modules/glob/dist/esm/ignore.js.map +0 -1
  1271. package/node_modules/glob/dist/esm/index.d.ts +0 -97
  1272. package/node_modules/glob/dist/esm/index.d.ts.map +0 -1
  1273. package/node_modules/glob/dist/esm/index.js.map +0 -1
  1274. package/node_modules/glob/dist/esm/pattern.d.ts +0 -76
  1275. package/node_modules/glob/dist/esm/pattern.d.ts.map +0 -1
  1276. package/node_modules/glob/dist/esm/pattern.js.map +0 -1
  1277. package/node_modules/glob/dist/esm/processor.d.ts +0 -59
  1278. package/node_modules/glob/dist/esm/processor.d.ts.map +0 -1
  1279. package/node_modules/glob/dist/esm/processor.js.map +0 -1
  1280. package/node_modules/glob/dist/esm/walker.d.ts +0 -97
  1281. package/node_modules/glob/dist/esm/walker.d.ts.map +0 -1
  1282. package/node_modules/glob/dist/esm/walker.js.map +0 -1
  1283. package/node_modules/https-proxy-agent/dist/index.d.ts +0 -47
  1284. package/node_modules/https-proxy-agent/dist/index.d.ts.map +0 -1
  1285. package/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  1286. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -15
  1287. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +0 -1
  1288. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  1289. package/node_modules/ip-address/dist/address-error.d.ts +0 -5
  1290. package/node_modules/ip-address/dist/address-error.d.ts.map +0 -1
  1291. package/node_modules/ip-address/dist/address-error.js.map +0 -1
  1292. package/node_modules/ip-address/dist/common.d.ts +0 -15
  1293. package/node_modules/ip-address/dist/common.d.ts.map +0 -1
  1294. package/node_modules/ip-address/dist/common.js.map +0 -1
  1295. package/node_modules/ip-address/dist/ip-address.d.ts +0 -8
  1296. package/node_modules/ip-address/dist/ip-address.d.ts.map +0 -1
  1297. package/node_modules/ip-address/dist/ip-address.js.map +0 -1
  1298. package/node_modules/ip-address/dist/ipv4.d.ts +0 -209
  1299. package/node_modules/ip-address/dist/ipv4.d.ts.map +0 -1
  1300. package/node_modules/ip-address/dist/ipv4.js.map +0 -1
  1301. package/node_modules/ip-address/dist/ipv6.d.ts +0 -428
  1302. package/node_modules/ip-address/dist/ipv6.d.ts.map +0 -1
  1303. package/node_modules/ip-address/dist/ipv6.js.map +0 -1
  1304. package/node_modules/ip-address/dist/v4/constants.d.ts +0 -5
  1305. package/node_modules/ip-address/dist/v4/constants.d.ts.map +0 -1
  1306. package/node_modules/ip-address/dist/v4/constants.js.map +0 -1
  1307. package/node_modules/ip-address/dist/v6/constants.d.ts +0 -45
  1308. package/node_modules/ip-address/dist/v6/constants.d.ts.map +0 -1
  1309. package/node_modules/ip-address/dist/v6/constants.js.map +0 -1
  1310. package/node_modules/ip-address/dist/v6/helpers.d.ts +0 -18
  1311. package/node_modules/ip-address/dist/v6/helpers.d.ts.map +0 -1
  1312. package/node_modules/ip-address/dist/v6/helpers.js.map +0 -1
  1313. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts +0 -6
  1314. package/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map +0 -1
  1315. package/node_modules/ip-address/dist/v6/regular-expressions.js.map +0 -1
  1316. package/node_modules/jackspeak/dist/commonjs/index.d.ts +0 -323
  1317. package/node_modules/jackspeak/dist/commonjs/index.d.ts.map +0 -1
  1318. package/node_modules/jackspeak/dist/commonjs/index.js.map +0 -1
  1319. package/node_modules/jackspeak/dist/commonjs/index.min.js.map +0 -7
  1320. package/node_modules/jackspeak/dist/esm/index.d.ts +0 -323
  1321. package/node_modules/jackspeak/dist/esm/index.d.ts.map +0 -1
  1322. package/node_modules/jackspeak/dist/esm/index.js.map +0 -1
  1323. package/node_modules/jackspeak/dist/esm/index.min.js.map +0 -7
  1324. package/node_modules/lru-cache/dist/commonjs/index.d.ts +0 -1323
  1325. package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +0 -1
  1326. package/node_modules/lru-cache/dist/commonjs/index.js.map +0 -1
  1327. package/node_modules/lru-cache/dist/commonjs/index.min.js.map +0 -7
  1328. package/node_modules/lru-cache/dist/esm/index.d.ts +0 -1323
  1329. package/node_modules/lru-cache/dist/esm/index.d.ts.map +0 -1
  1330. package/node_modules/lru-cache/dist/esm/index.js.map +0 -1
  1331. package/node_modules/lru-cache/dist/esm/index.min.js.map +0 -7
  1332. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +0 -2
  1333. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +0 -1
  1334. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +0 -1
  1335. package/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -22
  1336. package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
  1337. package/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
  1338. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
  1339. package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
  1340. package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
  1341. package/node_modules/minimatch/dist/commonjs/escape.d.ts +0 -15
  1342. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +0 -1
  1343. package/node_modules/minimatch/dist/commonjs/escape.js.map +0 -1
  1344. package/node_modules/minimatch/dist/commonjs/index.d.ts +0 -174
  1345. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +0 -1
  1346. package/node_modules/minimatch/dist/commonjs/index.js.map +0 -1
  1347. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +0 -22
  1348. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +0 -1
  1349. package/node_modules/minimatch/dist/commonjs/unescape.js.map +0 -1
  1350. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +0 -2
  1351. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +0 -1
  1352. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +0 -1
  1353. package/node_modules/minimatch/dist/esm/ast.d.ts +0 -22
  1354. package/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
  1355. package/node_modules/minimatch/dist/esm/ast.js.map +0 -1
  1356. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
  1357. package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
  1358. package/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
  1359. package/node_modules/minimatch/dist/esm/escape.d.ts +0 -15
  1360. package/node_modules/minimatch/dist/esm/escape.d.ts.map +0 -1
  1361. package/node_modules/minimatch/dist/esm/escape.js.map +0 -1
  1362. package/node_modules/minimatch/dist/esm/index.d.ts +0 -174
  1363. package/node_modules/minimatch/dist/esm/index.d.ts.map +0 -1
  1364. package/node_modules/minimatch/dist/esm/index.js.map +0 -1
  1365. package/node_modules/minimatch/dist/esm/unescape.d.ts +0 -22
  1366. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +0 -1
  1367. package/node_modules/minimatch/dist/esm/unescape.js.map +0 -1
  1368. package/node_modules/minipass/dist/commonjs/index.d.ts +0 -545
  1369. package/node_modules/minipass/dist/commonjs/index.d.ts.map +0 -1
  1370. package/node_modules/minipass/dist/commonjs/index.js.map +0 -1
  1371. package/node_modules/minipass/dist/esm/index.d.ts +0 -545
  1372. package/node_modules/minipass/dist/esm/index.d.ts.map +0 -1
  1373. package/node_modules/minipass/dist/esm/index.js.map +0 -1
  1374. package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts +0 -89
  1375. package/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +0 -1
  1376. package/node_modules/package-json-from-dist/dist/commonjs/index.js.map +0 -1
  1377. package/node_modules/package-json-from-dist/dist/esm/index.d.ts +0 -89
  1378. package/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +0 -1
  1379. package/node_modules/package-json-from-dist/dist/esm/index.js.map +0 -1
  1380. package/node_modules/path-scurry/dist/commonjs/index.d.ts +0 -1115
  1381. package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +0 -1
  1382. package/node_modules/path-scurry/dist/commonjs/index.js.map +0 -1
  1383. package/node_modules/path-scurry/dist/esm/index.d.ts +0 -1115
  1384. package/node_modules/path-scurry/dist/esm/index.d.ts.map +0 -1
  1385. package/node_modules/path-scurry/dist/esm/index.js.map +0 -1
  1386. package/node_modules/ret/dist/index.d.ts +0 -7
  1387. package/node_modules/ret/dist/index.js.map +0 -1
  1388. package/node_modules/ret/dist/reconstruct.d.ts +0 -2
  1389. package/node_modules/ret/dist/reconstruct.js.map +0 -1
  1390. package/node_modules/ret/dist/sets-lookup.d.ts +0 -5
  1391. package/node_modules/ret/dist/sets-lookup.js.map +0 -1
  1392. package/node_modules/ret/dist/sets.d.ts +0 -9
  1393. package/node_modules/ret/dist/sets.js.map +0 -1
  1394. package/node_modules/ret/dist/tokenizer.d.ts +0 -8
  1395. package/node_modules/ret/dist/tokenizer.js.map +0 -1
  1396. package/node_modules/ret/dist/types/index.d.ts +0 -3
  1397. package/node_modules/ret/dist/types/index.js.map +0 -1
  1398. package/node_modules/ret/dist/types/set-lookup.d.ts +0 -8
  1399. package/node_modules/ret/dist/types/set-lookup.js.map +0 -1
  1400. package/node_modules/ret/dist/types/tokens.d.ts +0 -41
  1401. package/node_modules/ret/dist/types/tokens.js.map +0 -1
  1402. package/node_modules/ret/dist/types/types.d.ts +0 -10
  1403. package/node_modules/ret/dist/types/types.js.map +0 -1
  1404. package/node_modules/ret/dist/util.d.ts +0 -18
  1405. package/node_modules/ret/dist/util.js.map +0 -1
  1406. package/node_modules/ret/dist/write-set-tokens.d.ts +0 -14
  1407. package/node_modules/ret/dist/write-set-tokens.js.map +0 -1
  1408. package/node_modules/signal-exit/dist/cjs/browser.d.ts +0 -12
  1409. package/node_modules/signal-exit/dist/cjs/browser.d.ts.map +0 -1
  1410. package/node_modules/signal-exit/dist/cjs/browser.js.map +0 -1
  1411. package/node_modules/signal-exit/dist/cjs/index.d.ts +0 -48
  1412. package/node_modules/signal-exit/dist/cjs/index.d.ts.map +0 -1
  1413. package/node_modules/signal-exit/dist/cjs/index.js.map +0 -1
  1414. package/node_modules/signal-exit/dist/cjs/signals.d.ts +0 -29
  1415. package/node_modules/signal-exit/dist/cjs/signals.d.ts.map +0 -1
  1416. package/node_modules/signal-exit/dist/cjs/signals.js.map +0 -1
  1417. package/node_modules/signal-exit/dist/mjs/browser.d.ts +0 -12
  1418. package/node_modules/signal-exit/dist/mjs/browser.d.ts.map +0 -1
  1419. package/node_modules/signal-exit/dist/mjs/browser.js.map +0 -1
  1420. package/node_modules/signal-exit/dist/mjs/index.d.ts +0 -48
  1421. package/node_modules/signal-exit/dist/mjs/index.d.ts.map +0 -1
  1422. package/node_modules/signal-exit/dist/mjs/index.js.map +0 -1
  1423. package/node_modules/signal-exit/dist/mjs/signals.d.ts +0 -29
  1424. package/node_modules/signal-exit/dist/mjs/signals.d.ts.map +0 -1
  1425. package/node_modules/signal-exit/dist/mjs/signals.js.map +0 -1
  1426. package/node_modules/socks-proxy-agent/dist/index.d.ts +0 -27
  1427. package/node_modules/socks-proxy-agent/dist/index.d.ts.map +0 -1
  1428. package/node_modules/socks-proxy-agent/dist/index.js.map +0 -1
  1429. package/node_modules/standardwebhooks/dist/index.d.ts +0 -24
  1430. package/node_modules/standardwebhooks/dist/index.js.map +0 -1
  1431. package/node_modules/standardwebhooks/dist/timing_safe_equal.d.ts +0 -1
  1432. package/node_modules/standardwebhooks/dist/timing_safe_equal.js.map +0 -1
  1433. package/node_modules/std-env/dist/index.d.cts +0 -92
  1434. package/node_modules/std-env/dist/index.d.mts +0 -92
  1435. package/node_modules/std-env/dist/index.d.ts +0 -92
  1436. /package/dist/ui/_next/static/{XLzUBsNMptwXfIl9-a4z_ → KwSMuRKWgTp_quB8AMAmD}/_buildManifest.js +0 -0
  1437. /package/dist/ui/_next/static/{XLzUBsNMptwXfIl9-a4z_ → KwSMuRKWgTp_quB8AMAmD}/_clientMiddlewareManifest.json +0 -0
  1438. /package/dist/ui/_next/static/{XLzUBsNMptwXfIl9-a4z_ → KwSMuRKWgTp_quB8AMAmD}/_ssgManifest.js +0 -0
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["/**\n * @module LRUCache\n */\n\n// module-private names and types\n// this provides the default Perf object source.\n// it can be passed in via configuration to override it\n// for a single LRU object.\nexport type Perf = { now: () => number }\nconst defaultPerf: Perf =\n (\n typeof performance === 'object' &&\n performance &&\n typeof performance.now === 'function'\n ) ?\n performance\n : Date\n\nconst warned = new Set<string>()\n\n// either a function or a class\ntype ForC = ((...a: any[]) => any) | { new (...a: any[]): any }\n\n/* c8 ignore start */\nconst PROCESS = (\n typeof process === 'object' && !!process ?\n process\n : {}) as { [k: string]: any }\n/* c8 ignore start */\n\nconst emitWarning = (\n msg: string,\n type: string,\n code: string,\n fn: ForC,\n) => {\n typeof PROCESS.emitWarning === 'function' ?\n PROCESS.emitWarning(msg, type, code, fn)\n : console.error(`[${code}] ${type}: ${msg}`)\n}\n\nlet AC = globalThis.AbortController\nlet AS = globalThis.AbortSignal\n\n/* c8 ignore start */\nif (typeof AC === 'undefined') {\n //@ts-ignore\n AS = class AbortSignal {\n onabort?: (...a: any[]) => any\n _onabort: ((...a: any[]) => any)[] = []\n reason?: any\n aborted: boolean = false\n addEventListener(_: string, fn: (...a: any[]) => any) {\n this._onabort.push(fn)\n }\n }\n //@ts-ignore\n AC = class AbortController {\n constructor() {\n warnACPolyfill()\n }\n signal = new AS()\n abort(reason: any) {\n if (this.signal.aborted) return\n //@ts-ignore\n this.signal.reason = reason\n //@ts-ignore\n this.signal.aborted = true\n //@ts-ignore\n for (const fn of this.signal._onabort) {\n fn(reason)\n }\n this.signal.onabort?.(reason)\n }\n }\n let printACPolyfillWarning =\n PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING !== '1'\n const warnACPolyfill = () => {\n if (!printACPolyfillWarning) return\n printACPolyfillWarning = false\n emitWarning(\n 'AbortController is not defined. If using lru-cache in ' +\n 'node 14, load an AbortController polyfill from the ' +\n '`node-abort-controller` package. A minimal polyfill is ' +\n 'provided for use by LRUCache.fetch(), but it should not be ' +\n 'relied upon in other contexts (eg, passing it to other APIs that ' +\n 'use AbortController/AbortSignal might have undesirable effects). ' +\n 'You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.',\n 'NO_ABORT_CONTROLLER',\n 'ENOTSUP',\n warnACPolyfill,\n )\n }\n}\n/* c8 ignore stop */\n\nconst shouldWarn = (code: string) => !warned.has(code)\n\nconst TYPE = Symbol('type')\nexport type PosInt = number & { [TYPE]: 'Positive Integer' }\nexport type Index = number & { [TYPE]: 'LRUCache Index' }\n\nconst isPosInt = (n: any): n is PosInt =>\n n && n === Math.floor(n) && n > 0 && isFinite(n)\n\nexport type UintArray = Uint8Array | Uint16Array | Uint32Array\nexport type NumberArray = UintArray | number[]\n\n/* c8 ignore start */\n// This is a little bit ridiculous, tbh.\n// The maximum array length is 2^32-1 or thereabouts on most JS impls.\n// And well before that point, you're caching the entire world, I mean,\n// that's ~32GB of just integers for the next/prev links, plus whatever\n// else to hold that many keys and values. Just filling the memory with\n// zeroes at init time is brutal when you get that big.\n// But why not be complete?\n// Maybe in the future, these limits will have expanded.\nconst getUintArray = (max: number) =>\n !isPosInt(max) ? null\n : max <= Math.pow(2, 8) ? Uint8Array\n : max <= Math.pow(2, 16) ? Uint16Array\n : max <= Math.pow(2, 32) ? Uint32Array\n : max <= Number.MAX_SAFE_INTEGER ? ZeroArray\n : null\n/* c8 ignore stop */\n\nclass ZeroArray extends Array<number> {\n constructor(size: number) {\n super(size)\n this.fill(0)\n }\n}\nexport type { ZeroArray }\nexport type { Stack }\n\nexport type StackLike = Stack | Index[]\nclass Stack {\n heap: NumberArray\n length: number\n // private constructor\n static #constructing: boolean = false\n static create(max: number): StackLike {\n const HeapCls = getUintArray(max)\n if (!HeapCls) return []\n Stack.#constructing = true\n const s = new Stack(max, HeapCls)\n Stack.#constructing = false\n return s\n }\n constructor(max: number, HeapCls: { new (n: number): NumberArray }) {\n /* c8 ignore start */\n if (!Stack.#constructing) {\n throw new TypeError('instantiate Stack using Stack.create(n)')\n }\n /* c8 ignore stop */\n this.heap = new HeapCls(max)\n this.length = 0\n }\n push(n: Index) {\n this.heap[this.length++] = n\n }\n pop(): Index {\n return this.heap[--this.length] as Index\n }\n}\n\n/**\n * Promise representing an in-progress {@link LRUCache#fetch} call\n */\nexport type BackgroundFetch<V> = Promise<V | undefined> & {\n __returned: BackgroundFetch<V> | undefined\n __abortController: AbortController\n __staleWhileFetching: V | undefined\n}\n\nexport type DisposeTask<K, V> = [\n value: V,\n key: K,\n reason: LRUCache.DisposeReason,\n]\n\nexport namespace LRUCache {\n /**\n * An integer greater than 0, reflecting the calculated size of items\n */\n export type Size = number\n\n /**\n * Integer greater than 0, representing some number of milliseconds, or the\n * time at which a TTL started counting from.\n */\n export type Milliseconds = number\n\n /**\n * An integer greater than 0, reflecting a number of items\n */\n export type Count = number\n\n /**\n * The reason why an item was removed from the cache, passed\n * to the {@link Disposer} methods.\n *\n * - `evict`: The item was evicted because it is the least recently used,\n * and the cache is full.\n * - `set`: A new value was set, overwriting the old value being disposed.\n * - `delete`: The item was explicitly deleted, either by calling\n * {@link LRUCache#delete}, {@link LRUCache#clear}, or\n * {@link LRUCache#set} with an undefined value.\n * - `expire`: The item was removed due to exceeding its TTL.\n * - `fetch`: A {@link OptionsBase#fetchMethod} operation returned\n * `undefined` or was aborted, causing the item to be deleted.\n */\n export type DisposeReason =\n | 'evict'\n | 'set'\n | 'delete'\n | 'expire'\n | 'fetch'\n /**\n * A method called upon item removal, passed as the\n * {@link OptionsBase.dispose} and/or\n * {@link OptionsBase.disposeAfter} options.\n */\n export type Disposer<K, V> = (\n value: V,\n key: K,\n reason: DisposeReason,\n ) => void\n\n /**\n * The reason why an item was added to the cache, passed\n * to the {@link Inserter} methods.\n *\n * - `add`: the item was not found in the cache, and was added\n * - `update`: the item was in the cache, with the same value provided\n * - `replace`: the item was in the cache, and replaced\n */\n export type InsertReason = 'add' | 'update' | 'replace'\n\n /**\n * A method called upon item insertion, passed as the\n * {@link OptionsBase.insert}\n */\n export type Inserter<K, V> = (\n value: V,\n key: K,\n reason: InsertReason,\n ) => void\n\n /**\n * A function that returns the effective calculated size\n * of an entry in the cache.\n */\n export type SizeCalculator<K, V> = (value: V, key: K) => Size\n\n /**\n * Options provided to the\n * {@link OptionsBase.fetchMethod} function.\n */\n export interface FetcherOptions<K, V, FC = unknown> {\n signal: AbortSignal\n options: FetcherFetchOptions<K, V, FC>\n /**\n * Object provided in the {@link FetchOptions.context} option to\n * {@link LRUCache#fetch}\n */\n context: FC\n }\n\n /**\n * Occasionally, it may be useful to track the internal behavior of the\n * cache, particularly for logging, debugging, or for behavior within the\n * `fetchMethod`. To do this, you can pass a `status` object to the\n * {@link LRUCache#fetch}, {@link LRUCache#get}, {@link LRUCache#set},\n * {@link LRUCache#memo}, and {@link LRUCache#has} methods.\n *\n * The `status` option should be a plain JavaScript object. The following\n * fields will be set on it appropriately, depending on the situation.\n */\n export interface Status<V> {\n /**\n * The status of a set() operation.\n *\n * - add: the item was not found in the cache, and was added\n * - update: the item was in the cache, with the same value provided\n * - replace: the item was in the cache, and replaced\n * - miss: the item was not added to the cache for some reason\n */\n set?: 'add' | 'update' | 'replace' | 'miss'\n\n /**\n * the ttl stored for the item, or undefined if ttls are not used.\n */\n ttl?: Milliseconds\n\n /**\n * the start time for the item, or undefined if ttls are not used.\n */\n start?: Milliseconds\n\n /**\n * The timestamp used for TTL calculation\n */\n now?: Milliseconds\n\n /**\n * the remaining ttl for the item, or undefined if ttls are not used.\n */\n remainingTTL?: Milliseconds\n\n /**\n * The calculated size for the item, if sizes are used.\n */\n entrySize?: Size\n\n /**\n * The total calculated size of the cache, if sizes are used.\n */\n totalCalculatedSize?: Size\n\n /**\n * A flag indicating that the item was not stored, due to exceeding the\n * {@link OptionsBase.maxEntrySize}\n */\n maxEntrySizeExceeded?: true\n\n /**\n * The old value, specified in the case of `set:'update'` or\n * `set:'replace'`\n */\n oldValue?: V\n\n /**\n * The results of a {@link LRUCache#has} operation\n *\n * - hit: the item was found in the cache\n * - stale: the item was found in the cache, but is stale\n * - miss: the item was not found in the cache\n */\n has?: 'hit' | 'stale' | 'miss'\n\n /**\n * The status of a {@link LRUCache#fetch} operation.\n * Note that this can change as the underlying fetch() moves through\n * various states.\n *\n * - inflight: there is another fetch() for this key which is in process\n * - get: there is no {@link OptionsBase.fetchMethod}, so\n * {@link LRUCache#get} was called.\n * - miss: the item is not in cache, and will be fetched.\n * - hit: the item is in the cache, and was resolved immediately.\n * - stale: the item is in the cache, but stale.\n * - refresh: the item is in the cache, and not stale, but\n * {@link FetchOptions.forceRefresh} was specified.\n */\n fetch?: 'get' | 'inflight' | 'miss' | 'hit' | 'stale' | 'refresh'\n\n /**\n * The {@link OptionsBase.fetchMethod} was called\n */\n fetchDispatched?: true\n\n /**\n * The cached value was updated after a successful call to\n * {@link OptionsBase.fetchMethod}\n */\n fetchUpdated?: true\n\n /**\n * The reason for a fetch() rejection. Either the error raised by the\n * {@link OptionsBase.fetchMethod}, or the reason for an\n * AbortSignal.\n */\n fetchError?: Error\n\n /**\n * The fetch received an abort signal\n */\n fetchAborted?: true\n\n /**\n * The abort signal received was ignored, and the fetch was allowed to\n * continue.\n */\n fetchAbortIgnored?: true\n\n /**\n * The fetchMethod promise resolved successfully\n */\n fetchResolved?: true\n\n /**\n * The fetchMethod promise was rejected\n */\n fetchRejected?: true\n\n /**\n * The status of a {@link LRUCache#get} operation.\n *\n * - fetching: The item is currently being fetched. If a previous value\n * is present and allowed, that will be returned.\n * - stale: The item is in the cache, and is stale.\n * - hit: the item is in the cache\n * - miss: the item is not in the cache\n */\n get?: 'stale' | 'hit' | 'miss'\n\n /**\n * A fetch or get operation returned a stale value.\n */\n returnedStale?: true\n }\n\n /**\n * options which override the options set in the LRUCache constructor\n * when calling {@link LRUCache#fetch}.\n *\n * This is the union of {@link GetOptions} and {@link SetOptions}, plus\n * {@link OptionsBase.noDeleteOnFetchRejection},\n * {@link OptionsBase.allowStaleOnFetchRejection},\n * {@link FetchOptions.forceRefresh}, and\n * {@link FetcherOptions.context}\n *\n * Any of these may be modified in the {@link OptionsBase.fetchMethod}\n * function, but the {@link GetOptions} fields will of course have no\n * effect, as the {@link LRUCache#get} call already happened by the time\n * the fetchMethod is called.\n */\n export interface FetcherFetchOptions<K, V, FC = unknown>\n extends Pick<\n OptionsBase<K, V, FC>,\n | 'allowStale'\n | 'updateAgeOnGet'\n | 'noDeleteOnStaleGet'\n | 'sizeCalculation'\n | 'ttl'\n | 'noDisposeOnSet'\n | 'noUpdateTTL'\n | 'noDeleteOnFetchRejection'\n | 'allowStaleOnFetchRejection'\n | 'ignoreFetchAbort'\n | 'allowStaleOnFetchAbort'\n > {\n status?: Status<V>\n size?: Size\n }\n\n /**\n * Options that may be passed to the {@link LRUCache#fetch} method.\n */\n export interface FetchOptions<K, V, FC>\n extends FetcherFetchOptions<K, V, FC> {\n /**\n * Set to true to force a re-load of the existing data, even if it\n * is not yet stale.\n */\n forceRefresh?: boolean\n /**\n * Context provided to the {@link OptionsBase.fetchMethod} as\n * the {@link FetcherOptions.context} param.\n *\n * If the FC type is specified as unknown (the default),\n * undefined or void, then this is optional. Otherwise, it will\n * be required.\n */\n context?: FC\n signal?: AbortSignal\n status?: Status<V>\n }\n /**\n * Options provided to {@link LRUCache#fetch} when the FC type is something\n * other than `unknown`, `undefined`, or `void`\n */\n export interface FetchOptionsWithContext<K, V, FC>\n extends FetchOptions<K, V, FC> {\n context: FC\n }\n /**\n * Options provided to {@link LRUCache#fetch} when the FC type is\n * `undefined` or `void`\n */\n export interface FetchOptionsNoContext<K, V>\n extends FetchOptions<K, V, undefined> {\n context?: undefined\n }\n\n export interface MemoOptions<K, V, FC = unknown>\n extends Pick<\n OptionsBase<K, V, FC>,\n | 'allowStale'\n | 'updateAgeOnGet'\n | 'noDeleteOnStaleGet'\n | 'sizeCalculation'\n | 'ttl'\n | 'noDisposeOnSet'\n | 'noUpdateTTL'\n | 'noDeleteOnFetchRejection'\n | 'allowStaleOnFetchRejection'\n | 'ignoreFetchAbort'\n | 'allowStaleOnFetchAbort'\n > {\n /**\n * Set to true to force a re-load of the existing data, even if it\n * is not yet stale.\n */\n forceRefresh?: boolean\n /**\n * Context provided to the {@link OptionsBase.memoMethod} as\n * the {@link MemoizerOptions.context} param.\n *\n * If the FC type is specified as unknown (the default),\n * undefined or void, then this is optional. Otherwise, it will\n * be required.\n */\n context?: FC\n status?: Status<V>\n }\n /**\n * Options provided to {@link LRUCache#memo} when the FC type is something\n * other than `unknown`, `undefined`, or `void`\n */\n export interface MemoOptionsWithContext<K, V, FC>\n extends MemoOptions<K, V, FC> {\n context: FC\n }\n /**\n * Options provided to {@link LRUCache#memo} when the FC type is\n * `undefined` or `void`\n */\n export interface MemoOptionsNoContext<K, V>\n extends MemoOptions<K, V, undefined> {\n context?: undefined\n }\n\n /**\n * Options provided to the\n * {@link OptionsBase.memoMethod} function.\n */\n export interface MemoizerOptions<K, V, FC = unknown> {\n options: MemoizerMemoOptions<K, V, FC>\n /**\n * Object provided in the {@link MemoOptions.context} option to\n * {@link LRUCache#memo}\n */\n context: FC\n }\n\n /**\n * options which override the options set in the LRUCache constructor\n * when calling {@link LRUCache#memo}.\n *\n * This is the union of {@link GetOptions} and {@link SetOptions}, plus\n * {@link MemoOptions.forceRefresh}, and\n * {@link MemoOptions.context}\n *\n * Any of these may be modified in the {@link OptionsBase.memoMethod}\n * function, but the {@link GetOptions} fields will of course have no\n * effect, as the {@link LRUCache#get} call already happened by the time\n * the memoMethod is called.\n */\n export interface MemoizerMemoOptions<K, V, FC = unknown>\n extends Pick<\n OptionsBase<K, V, FC>,\n | 'allowStale'\n | 'updateAgeOnGet'\n | 'noDeleteOnStaleGet'\n | 'sizeCalculation'\n | 'ttl'\n | 'noDisposeOnSet'\n | 'noUpdateTTL'\n > {\n status?: Status<V>\n size?: Size\n start?: Milliseconds\n }\n\n /**\n * Options that may be passed to the {@link LRUCache#has} method.\n */\n export interface HasOptions<K, V, FC>\n extends Pick<OptionsBase<K, V, FC>, 'updateAgeOnHas'> {\n status?: Status<V>\n }\n\n /**\n * Options that may be passed to the {@link LRUCache#get} method.\n */\n export interface GetOptions<K, V, FC>\n extends Pick<\n OptionsBase<K, V, FC>,\n 'allowStale' | 'updateAgeOnGet' | 'noDeleteOnStaleGet'\n > {\n status?: Status<V>\n }\n\n /**\n * Options that may be passed to the {@link LRUCache#peek} method.\n */\n export interface PeekOptions<K, V, FC>\n extends Pick<OptionsBase<K, V, FC>, 'allowStale'> {}\n\n /**\n * Options that may be passed to the {@link LRUCache#set} method.\n */\n export interface SetOptions<K, V, FC>\n extends Pick<\n OptionsBase<K, V, FC>,\n 'sizeCalculation' | 'ttl' | 'noDisposeOnSet' | 'noUpdateTTL'\n > {\n /**\n * If size tracking is enabled, then setting an explicit size\n * in the {@link LRUCache#set} call will prevent calling the\n * {@link OptionsBase.sizeCalculation} function.\n */\n size?: Size\n /**\n * If TTL tracking is enabled, then setting an explicit start\n * time in the {@link LRUCache#set} call will override the\n * default time from `performance.now()` or `Date.now()`.\n *\n * Note that it must be a valid value for whichever time-tracking\n * method is in use.\n */\n start?: Milliseconds\n status?: Status<V>\n }\n\n /**\n * The type signature for the {@link OptionsBase.fetchMethod} option.\n */\n export type Fetcher<K, V, FC = unknown> = (\n key: K,\n staleValue: V | undefined,\n options: FetcherOptions<K, V, FC>,\n ) => Promise<V | undefined | void> | V | undefined | void\n\n /**\n * the type signature for the {@link OptionsBase.memoMethod} option.\n */\n export type Memoizer<K, V, FC = unknown> = (\n key: K,\n staleValue: V | undefined,\n options: MemoizerOptions<K, V, FC>,\n ) => V\n\n /**\n * Options which may be passed to the {@link LRUCache} constructor.\n *\n * Most of these may be overridden in the various options that use\n * them.\n *\n * Despite all being technically optional, the constructor requires that\n * a cache is at minimum limited by one or more of {@link OptionsBase.max},\n * {@link OptionsBase.ttl}, or {@link OptionsBase.maxSize}.\n *\n * If {@link OptionsBase.ttl} is used alone, then it is strongly advised\n * (and in fact required by the type definitions here) that the cache\n * also set {@link OptionsBase.ttlAutopurge}, to prevent potentially\n * unbounded storage.\n *\n * All options are also available on the {@link LRUCache} instance, making\n * it safe to pass an LRUCache instance as the options argumemnt to\n * make another empty cache of the same type.\n *\n * Some options are marked as read-only, because changing them after\n * instantiation is not safe. Changing any of the other options will of\n * course only have an effect on subsequent method calls.\n */\n export interface OptionsBase<K, V, FC> {\n /**\n * The maximum number of items to store in the cache before evicting\n * old entries. This is read-only on the {@link LRUCache} instance,\n * and may not be overridden.\n *\n * If set, then storage space will be pre-allocated at construction\n * time, and the cache will perform significantly faster.\n *\n * Note that significantly fewer items may be stored, if\n * {@link OptionsBase.maxSize} and/or {@link OptionsBase.ttl} are also\n * set.\n *\n * **It is strongly recommended to set a `max` to prevent unbounded growth\n * of the cache.**\n */\n max?: Count\n\n /**\n * Max time in milliseconds for items to live in cache before they are\n * considered stale. Note that stale items are NOT preemptively removed by\n * default, and MAY live in the cache, contributing to its LRU max, long\n * after they have expired, unless {@link OptionsBase.ttlAutopurge} is\n * set.\n *\n * If set to `0` (the default value), then that means \"do not track\n * TTL\", not \"expire immediately\".\n *\n * Also, as this cache is optimized for LRU/MRU operations, some of\n * the staleness/TTL checks will reduce performance, as they will incur\n * overhead by deleting items.\n *\n * This is not primarily a TTL cache, and does not make strong TTL\n * guarantees. There is no pre-emptive pruning of expired items, but you\n * _may_ set a TTL on the cache, and it will treat expired items as missing\n * when they are fetched, and delete them.\n *\n * Optional, but must be a non-negative integer in ms if specified.\n *\n * This may be overridden by passing an options object to `cache.set()`.\n *\n * At least one of `max`, `maxSize`, or `TTL` is required. This must be a\n * positive integer if set.\n *\n * Even if ttl tracking is enabled, **it is strongly recommended to set a\n * `max` to prevent unbounded growth of the cache.**\n *\n * If ttl tracking is enabled, and `max` and `maxSize` are not set,\n * and `ttlAutopurge` is not set, then a warning will be emitted\n * cautioning about the potential for unbounded memory consumption.\n * (The TypeScript definitions will also discourage this.)\n */\n ttl?: Milliseconds\n\n /**\n * Minimum amount of time in ms in which to check for staleness.\n * Defaults to 1, which means that the current time is checked\n * at most once per millisecond.\n *\n * Set to 0 to check the current time every time staleness is tested.\n * (This reduces performance, and is theoretically unnecessary.)\n *\n * Setting this to a higher value will improve performance somewhat\n * while using ttl tracking, albeit at the expense of keeping stale\n * items around a bit longer than their TTLs would indicate.\n *\n * @default 1\n */\n ttlResolution?: Milliseconds\n\n /**\n * Preemptively remove stale items from the cache.\n *\n * Note that this may *significantly* degrade performance, especially if\n * the cache is storing a large number of items. It is almost always best\n * to just leave the stale items in the cache, and let them fall out as new\n * items are added.\n *\n * Note that this means that {@link OptionsBase.allowStale} is a bit\n * pointless, as stale items will be deleted almost as soon as they\n * expire.\n *\n * Use with caution!\n */\n ttlAutopurge?: boolean\n\n /**\n * When using time-expiring entries with `ttl`, setting this to `true` will\n * make each item's age reset to 0 whenever it is retrieved from cache with\n * {@link LRUCache#get}, causing it to not expire. (It can still fall out\n * of cache based on recency of use, of course.)\n *\n * Has no effect if {@link OptionsBase.ttl} is not set.\n *\n * This may be overridden by passing an options object to `cache.get()`.\n */\n updateAgeOnGet?: boolean\n\n /**\n * When using time-expiring entries with `ttl`, setting this to `true` will\n * make each item's age reset to 0 whenever its presence in the cache is\n * checked with {@link LRUCache#has}, causing it to not expire. (It can\n * still fall out of cache based on recency of use, of course.)\n *\n * Has no effect if {@link OptionsBase.ttl} is not set.\n */\n updateAgeOnHas?: boolean\n\n /**\n * Allow {@link LRUCache#get} and {@link LRUCache#fetch} calls to return\n * stale data, if available.\n *\n * By default, if you set `ttl`, stale items will only be deleted from the\n * cache when you `get(key)`. That is, it's not preemptively pruning items,\n * unless {@link OptionsBase.ttlAutopurge} is set.\n *\n * If you set `allowStale:true`, it'll return the stale value *as well as*\n * deleting it. If you don't set this, then it'll return `undefined` when\n * you try to get a stale entry.\n *\n * Note that when a stale entry is fetched, _even if it is returned due to\n * `allowStale` being set_, it is removed from the cache immediately. You\n * can suppress this behavior by setting\n * {@link OptionsBase.noDeleteOnStaleGet}, either in the constructor, or in\n * the options provided to {@link LRUCache#get}.\n *\n * This may be overridden by passing an options object to `cache.get()`.\n * The `cache.has()` method will always return `false` for stale items.\n *\n * Only relevant if a ttl is set.\n */\n allowStale?: boolean\n\n /**\n * Function that is called on items when they are dropped from the\n * cache, as `dispose(value, key, reason)`.\n *\n * This can be handy if you want to close file descriptors or do\n * other cleanup tasks when items are no longer stored in the cache.\n *\n * **NOTE**: It is called _before_ the item has been fully removed\n * from the cache, so if you want to put it right back in, you need\n * to wait until the next tick. If you try to add it back in during\n * the `dispose()` function call, it will break things in subtle and\n * weird ways.\n *\n * Unlike several other options, this may _not_ be overridden by\n * passing an option to `set()`, for performance reasons.\n *\n * The `reason` will be one of the following strings, corresponding\n * to the reason for the item's deletion:\n *\n * - `evict` Item was evicted to make space for a new addition\n * - `set` Item was overwritten by a new value\n * - `expire` Item expired its TTL\n * - `fetch` Item was deleted due to a failed or aborted fetch, or a\n * fetchMethod returning `undefined.\n * - `delete` Item was removed by explicit `cache.delete(key)`,\n * `cache.clear()`, or `cache.set(key, undefined)`.\n */\n dispose?: Disposer<K, V>\n\n /**\n * Function that is called when new items are inserted into the cache,\n * as `onInsert(value, key, reason)`.\n *\n * This can be useful if you need to perform actions when an item is\n * added, such as logging or tracking insertions.\n *\n * Unlike some other options, this may _not_ be overridden by passing\n * an option to `set()`, for performance and consistency reasons.\n */\n onInsert?: Inserter<K, V>\n\n /**\n * The same as {@link OptionsBase.dispose}, but called *after* the entry\n * is completely removed and the cache is once again in a clean state.\n *\n * It is safe to add an item right back into the cache at this point.\n * However, note that it is *very* easy to inadvertently create infinite\n * recursion this way.\n */\n disposeAfter?: Disposer<K, V>\n\n /**\n * Set to true to suppress calling the\n * {@link OptionsBase.dispose} function if the entry key is\n * still accessible within the cache.\n *\n * This may be overridden by passing an options object to\n * {@link LRUCache#set}.\n *\n * Only relevant if `dispose` or `disposeAfter` are set.\n */\n noDisposeOnSet?: boolean\n\n /**\n * Boolean flag to tell the cache to not update the TTL when setting a new\n * value for an existing key (ie, when updating a value rather than\n * inserting a new value). Note that the TTL value is _always_ set (if\n * provided) when adding a new entry into the cache.\n *\n * Has no effect if a {@link OptionsBase.ttl} is not set.\n *\n * May be passed as an option to {@link LRUCache#set}.\n */\n noUpdateTTL?: boolean\n\n /**\n * Set to a positive integer to track the sizes of items added to the\n * cache, and automatically evict items in order to stay below this size.\n * Note that this may result in fewer than `max` items being stored.\n *\n * Attempting to add an item to the cache whose calculated size is greater\n * that this amount will be a no-op. The item will not be cached, and no\n * other items will be evicted.\n *\n * Optional, must be a positive integer if provided.\n *\n * Sets `maxEntrySize` to the same value, unless a different value is\n * provided for `maxEntrySize`.\n *\n * At least one of `max`, `maxSize`, or `TTL` is required. This must be a\n * positive integer if set.\n *\n * Even if size tracking is enabled, **it is strongly recommended to set a\n * `max` to prevent unbounded growth of the cache.**\n *\n * Note also that size tracking can negatively impact performance,\n * though for most cases, only minimally.\n */\n maxSize?: Size\n\n /**\n * The maximum allowed size for any single item in the cache.\n *\n * If a larger item is passed to {@link LRUCache#set} or returned by a\n * {@link OptionsBase.fetchMethod} or {@link OptionsBase.memoMethod}, then\n * it will not be stored in the cache.\n *\n * Attempting to add an item whose calculated size is greater than\n * this amount will not cache the item or evict any old items, but\n * WILL delete an existing value if one is already present.\n *\n * Optional, must be a positive integer if provided. Defaults to\n * the value of `maxSize` if provided.\n */\n maxEntrySize?: Size\n\n /**\n * A function that returns a number indicating the item's size.\n *\n * Requires {@link OptionsBase.maxSize} to be set.\n *\n * If not provided, and {@link OptionsBase.maxSize} or\n * {@link OptionsBase.maxEntrySize} are set, then all\n * {@link LRUCache#set} calls **must** provide an explicit\n * {@link SetOptions.size} or sizeCalculation param.\n */\n sizeCalculation?: SizeCalculator<K, V>\n\n /**\n * Method that provides the implementation for {@link LRUCache#fetch}\n *\n * ```ts\n * fetchMethod(key, staleValue, { signal, options, context })\n * ```\n *\n * If `fetchMethod` is not provided, then `cache.fetch(key)` is equivalent\n * to `Promise.resolve(cache.get(key))`.\n *\n * If at any time, `signal.aborted` is set to `true`, or if the\n * `signal.onabort` method is called, or if it emits an `'abort'` event\n * which you can listen to with `addEventListener`, then that means that\n * the fetch should be abandoned. This may be passed along to async\n * functions aware of AbortController/AbortSignal behavior.\n *\n * The `fetchMethod` should **only** return `undefined` or a Promise\n * resolving to `undefined` if the AbortController signaled an `abort`\n * event. In all other cases, it should return or resolve to a value\n * suitable for adding to the cache.\n *\n * The `options` object is a union of the options that may be provided to\n * `set()` and `get()`. If they are modified, then that will result in\n * modifying the settings to `cache.set()` when the value is resolved, and\n * in the case of\n * {@link OptionsBase.noDeleteOnFetchRejection} and\n * {@link OptionsBase.allowStaleOnFetchRejection}, the handling of\n * `fetchMethod` failures.\n *\n * For example, a DNS cache may update the TTL based on the value returned\n * from a remote DNS server by changing `options.ttl` in the `fetchMethod`.\n */\n fetchMethod?: Fetcher<K, V, FC>\n\n /**\n * Method that provides the implementation for {@link LRUCache#memo}\n */\n memoMethod?: Memoizer<K, V, FC>\n\n /**\n * Set to true to suppress the deletion of stale data when a\n * {@link OptionsBase.fetchMethod} returns a rejected promise.\n */\n noDeleteOnFetchRejection?: boolean\n\n /**\n * Do not delete stale items when they are retrieved with\n * {@link LRUCache#get}.\n *\n * Note that the `get` return value will still be `undefined`\n * unless {@link OptionsBase.allowStale} is true.\n *\n * When using time-expiring entries with `ttl`, by default stale\n * items will be removed from the cache when the key is accessed\n * with `cache.get()`.\n *\n * Setting this option will cause stale items to remain in the cache, until\n * they are explicitly deleted with `cache.delete(key)`, or retrieved with\n * `noDeleteOnStaleGet` set to `false`.\n *\n * This may be overridden by passing an options object to `cache.get()`.\n *\n * Only relevant if a ttl is used.\n */\n noDeleteOnStaleGet?: boolean\n\n /**\n * Set to true to allow returning stale data when a\n * {@link OptionsBase.fetchMethod} throws an error or returns a rejected\n * promise.\n *\n * This differs from using {@link OptionsBase.allowStale} in that stale\n * data will ONLY be returned in the case that the {@link LRUCache#fetch}\n * fails, not any other times.\n *\n * If a `fetchMethod` fails, and there is no stale value available, the\n * `fetch()` will resolve to `undefined`. Ie, all `fetchMethod` errors are\n * suppressed.\n *\n * Implies `noDeleteOnFetchRejection`.\n *\n * This may be set in calls to `fetch()`, or defaulted on the constructor,\n * or overridden by modifying the options object in the `fetchMethod`.\n */\n allowStaleOnFetchRejection?: boolean\n\n /**\n * Set to true to return a stale value from the cache when the\n * `AbortSignal` passed to the {@link OptionsBase.fetchMethod} dispatches\n * an `'abort'` event, whether user-triggered, or due to internal cache\n * behavior.\n *\n * Unless {@link OptionsBase.ignoreFetchAbort} is also set, the underlying\n * {@link OptionsBase.fetchMethod} will still be considered canceled, and\n * any value it returns will be ignored and not cached.\n *\n * Caveat: since fetches are aborted when a new value is explicitly\n * set in the cache, this can lead to fetch returning a stale value,\n * since that was the fallback value _at the moment the `fetch()` was\n * initiated_, even though the new updated value is now present in\n * the cache.\n *\n * For example:\n *\n * ```ts\n * const cache = new LRUCache<string, any>({\n * ttl: 100,\n * fetchMethod: async (url, oldValue, { signal }) => {\n * const res = await fetch(url, { signal })\n * return await res.json()\n * }\n * })\n * cache.set('https://example.com/', { some: 'data' })\n * // 100ms go by...\n * const result = cache.fetch('https://example.com/')\n * cache.set('https://example.com/', { other: 'thing' })\n * console.log(await result) // { some: 'data' }\n * console.log(cache.get('https://example.com/')) // { other: 'thing' }\n * ```\n */\n allowStaleOnFetchAbort?: boolean\n\n /**\n * Set to true to ignore the `abort` event emitted by the `AbortSignal`\n * object passed to {@link OptionsBase.fetchMethod}, and still cache the\n * resulting resolution value, as long as it is not `undefined`.\n *\n * When used on its own, this means aborted {@link LRUCache#fetch} calls\n * are not immediately resolved or rejected when they are aborted, and\n * instead take the full time to await.\n *\n * When used with {@link OptionsBase.allowStaleOnFetchAbort}, aborted\n * {@link LRUCache#fetch} calls will resolve immediately to their stale\n * cached value or `undefined`, and will continue to process and eventually\n * update the cache when they resolve, as long as the resulting value is\n * not `undefined`, thus supporting a \"return stale on timeout while\n * refreshing\" mechanism by passing `AbortSignal.timeout(n)` as the signal.\n *\n * For example:\n *\n * ```ts\n * const c = new LRUCache({\n * ttl: 100,\n * ignoreFetchAbort: true,\n * allowStaleOnFetchAbort: true,\n * fetchMethod: async (key, oldValue, { signal }) => {\n * // note: do NOT pass the signal to fetch()!\n * // let's say this fetch can take a long time.\n * const res = await fetch(`https://slow-backend-server/${key}`)\n * return await res.json()\n * },\n * })\n *\n * // this will return the stale value after 100ms, while still\n * // updating in the background for next time.\n * const val = await c.fetch('key', { signal: AbortSignal.timeout(100) })\n * ```\n *\n * **Note**: regardless of this setting, an `abort` event _is still\n * emitted on the `AbortSignal` object_, so may result in invalid results\n * when passed to other underlying APIs that use AbortSignals.\n *\n * This may be overridden in the {@link OptionsBase.fetchMethod} or the\n * call to {@link LRUCache#fetch}.\n */\n ignoreFetchAbort?: boolean\n\n /**\n * In some cases, you may want to swap out the performance/Date object\n * used for TTL tracking. This should almost certainly NOT be done in\n * production environments!\n *\n * This value defaults to `global.performance` if it has a `now()` method,\n * or the `global.Date` object otherwise.\n */\n perf?: Perf\n }\n\n export interface OptionsMaxLimit<K, V, FC>\n extends OptionsBase<K, V, FC> {\n max: Count\n }\n export interface OptionsTTLLimit<K, V, FC>\n extends OptionsBase<K, V, FC> {\n ttl: Milliseconds\n ttlAutopurge: boolean\n }\n export interface OptionsSizeLimit<K, V, FC>\n extends OptionsBase<K, V, FC> {\n maxSize: Size\n }\n\n /**\n * The valid safe options for the {@link LRUCache} constructor\n */\n export type Options<K, V, FC> =\n | OptionsMaxLimit<K, V, FC>\n | OptionsSizeLimit<K, V, FC>\n | OptionsTTLLimit<K, V, FC>\n\n /**\n * Entry objects used by {@link LRUCache#load} and {@link LRUCache#dump},\n * and returned by {@link LRUCache#info}.\n */\n export interface Entry<V> {\n value: V\n ttl?: Milliseconds\n size?: Size\n start?: Milliseconds\n }\n}\n\n/**\n * Default export, the thing you're using this module to get.\n *\n * The `K` and `V` types define the key and value types, respectively. The\n * optional `FC` type defines the type of the `context` object passed to\n * `cache.fetch()` and `cache.memo()`.\n *\n * Keys and values **must not** be `null` or `undefined`.\n *\n * All properties from the options object (with the exception of `max`,\n * `maxSize`, `fetchMethod`, `memoMethod`, `dispose` and `disposeAfter`) are\n * added as normal public members. (The listed options are read-only getters.)\n *\n * Changing any of these will alter the defaults for subsequent method calls.\n */\nexport class LRUCache<K extends {}, V extends {}, FC = unknown> {\n // options that cannot be changed without disaster\n readonly #max: LRUCache.Count\n readonly #maxSize: LRUCache.Size\n readonly #dispose?: LRUCache.Disposer<K, V>\n readonly #onInsert?: LRUCache.Inserter<K, V>\n readonly #disposeAfter?: LRUCache.Disposer<K, V>\n readonly #fetchMethod?: LRUCache.Fetcher<K, V, FC>\n readonly #memoMethod?: LRUCache.Memoizer<K, V, FC>\n readonly #perf: Perf\n\n /**\n * {@link LRUCache.OptionsBase.perf}\n */\n get perf() {\n return this.#perf\n }\n\n /**\n * {@link LRUCache.OptionsBase.ttl}\n */\n ttl: LRUCache.Milliseconds\n\n /**\n * {@link LRUCache.OptionsBase.ttlResolution}\n */\n ttlResolution: LRUCache.Milliseconds\n /**\n * {@link LRUCache.OptionsBase.ttlAutopurge}\n */\n ttlAutopurge: boolean\n /**\n * {@link LRUCache.OptionsBase.updateAgeOnGet}\n */\n updateAgeOnGet: boolean\n /**\n * {@link LRUCache.OptionsBase.updateAgeOnHas}\n */\n updateAgeOnHas: boolean\n /**\n * {@link LRUCache.OptionsBase.allowStale}\n */\n allowStale: boolean\n\n /**\n * {@link LRUCache.OptionsBase.noDisposeOnSet}\n */\n noDisposeOnSet: boolean\n /**\n * {@link LRUCache.OptionsBase.noUpdateTTL}\n */\n noUpdateTTL: boolean\n /**\n * {@link LRUCache.OptionsBase.maxEntrySize}\n */\n maxEntrySize: LRUCache.Size\n /**\n * {@link LRUCache.OptionsBase.sizeCalculation}\n */\n sizeCalculation?: LRUCache.SizeCalculator<K, V>\n /**\n * {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}\n */\n noDeleteOnFetchRejection: boolean\n /**\n * {@link LRUCache.OptionsBase.noDeleteOnStaleGet}\n */\n noDeleteOnStaleGet: boolean\n /**\n * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}\n */\n allowStaleOnFetchAbort: boolean\n /**\n * {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}\n */\n allowStaleOnFetchRejection: boolean\n /**\n * {@link LRUCache.OptionsBase.ignoreFetchAbort}\n */\n ignoreFetchAbort: boolean\n\n // computed properties\n #size: LRUCache.Count\n #calculatedSize: LRUCache.Size\n #keyMap: Map<K, Index>\n #keyList: (K | undefined)[]\n #valList: (V | BackgroundFetch<V> | undefined)[]\n #next: NumberArray\n #prev: NumberArray\n #head: Index\n #tail: Index\n #free: StackLike\n #disposed?: DisposeTask<K, V>[]\n #sizes?: ZeroArray\n #starts?: ZeroArray\n #ttls?: ZeroArray\n #autopurgeTimers?: (undefined | ReturnType<typeof setTimeout>)[]\n\n #hasDispose: boolean\n #hasFetchMethod: boolean\n #hasDisposeAfter: boolean\n #hasOnInsert: boolean\n\n /**\n * Do not call this method unless you need to inspect the\n * inner workings of the cache. If anything returned by this\n * object is modified in any way, strange breakage may occur.\n *\n * These fields are private for a reason!\n *\n * @internal\n */\n static unsafeExposeInternals<\n K extends {},\n V extends {},\n FC extends unknown = unknown,\n >(c: LRUCache<K, V, FC>) {\n return {\n // properties\n starts: c.#starts,\n ttls: c.#ttls,\n autopurgeTimers: c.#autopurgeTimers,\n sizes: c.#sizes,\n keyMap: c.#keyMap as Map<K, number>,\n keyList: c.#keyList,\n valList: c.#valList,\n next: c.#next,\n prev: c.#prev,\n get head() {\n return c.#head\n },\n get tail() {\n return c.#tail\n },\n free: c.#free,\n // methods\n isBackgroundFetch: (p: any) => c.#isBackgroundFetch(p),\n backgroundFetch: (\n k: K,\n index: number | undefined,\n options: LRUCache.FetchOptions<K, V, FC>,\n context: any,\n ): BackgroundFetch<V> =>\n c.#backgroundFetch(\n k,\n index as Index | undefined,\n options,\n context,\n ),\n moveToTail: (index: number): void => c.#moveToTail(index as Index),\n indexes: (options?: { allowStale: boolean }) => c.#indexes(options),\n rindexes: (options?: { allowStale: boolean }) =>\n c.#rindexes(options),\n isStale: (index: number | undefined) => c.#isStale(index as Index),\n }\n }\n\n // Protected read-only members\n\n /**\n * {@link LRUCache.OptionsBase.max} (read-only)\n */\n get max(): LRUCache.Count {\n return this.#max\n }\n /**\n * {@link LRUCache.OptionsBase.maxSize} (read-only)\n */\n get maxSize(): LRUCache.Count {\n return this.#maxSize\n }\n /**\n * The total computed size of items in the cache (read-only)\n */\n get calculatedSize(): LRUCache.Size {\n return this.#calculatedSize\n }\n /**\n * The number of items stored in the cache (read-only)\n */\n get size(): LRUCache.Count {\n return this.#size\n }\n /**\n * {@link LRUCache.OptionsBase.fetchMethod} (read-only)\n */\n get fetchMethod(): LRUCache.Fetcher<K, V, FC> | undefined {\n return this.#fetchMethod\n }\n get memoMethod(): LRUCache.Memoizer<K, V, FC> | undefined {\n return this.#memoMethod\n }\n /**\n * {@link LRUCache.OptionsBase.dispose} (read-only)\n */\n get dispose() {\n return this.#dispose\n }\n /**\n * {@link LRUCache.OptionsBase.onInsert} (read-only)\n */\n get onInsert() {\n return this.#onInsert\n }\n /**\n * {@link LRUCache.OptionsBase.disposeAfter} (read-only)\n */\n get disposeAfter() {\n return this.#disposeAfter\n }\n\n constructor(options: LRUCache.Options<K, V, FC> | LRUCache<K, V, FC>) {\n const {\n max = 0,\n ttl,\n ttlResolution = 1,\n ttlAutopurge,\n updateAgeOnGet,\n updateAgeOnHas,\n allowStale,\n dispose,\n onInsert,\n disposeAfter,\n noDisposeOnSet,\n noUpdateTTL,\n maxSize = 0,\n maxEntrySize = 0,\n sizeCalculation,\n fetchMethod,\n memoMethod,\n noDeleteOnFetchRejection,\n noDeleteOnStaleGet,\n allowStaleOnFetchRejection,\n allowStaleOnFetchAbort,\n ignoreFetchAbort,\n perf,\n } = options\n\n if (perf !== undefined) {\n if (typeof perf?.now !== 'function') {\n throw new TypeError(\n 'perf option must have a now() method if specified',\n )\n }\n }\n\n this.#perf = perf ?? defaultPerf\n\n if (max !== 0 && !isPosInt(max)) {\n throw new TypeError('max option must be a nonnegative integer')\n }\n\n const UintArray = max ? getUintArray(max) : Array\n if (!UintArray) {\n throw new Error('invalid max value: ' + max)\n }\n\n this.#max = max\n this.#maxSize = maxSize\n this.maxEntrySize = maxEntrySize || this.#maxSize\n this.sizeCalculation = sizeCalculation\n if (this.sizeCalculation) {\n if (!this.#maxSize && !this.maxEntrySize) {\n throw new TypeError(\n 'cannot set sizeCalculation without setting maxSize or maxEntrySize',\n )\n }\n if (typeof this.sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation set to non-function')\n }\n }\n\n if (memoMethod !== undefined && typeof memoMethod !== 'function') {\n throw new TypeError('memoMethod must be a function if defined')\n }\n this.#memoMethod = memoMethod\n\n if (fetchMethod !== undefined && typeof fetchMethod !== 'function') {\n throw new TypeError('fetchMethod must be a function if specified')\n }\n this.#fetchMethod = fetchMethod\n this.#hasFetchMethod = !!fetchMethod\n\n this.#keyMap = new Map()\n this.#keyList = new Array(max).fill(undefined)\n this.#valList = new Array(max).fill(undefined)\n this.#next = new UintArray(max)\n this.#prev = new UintArray(max)\n this.#head = 0 as Index\n this.#tail = 0 as Index\n this.#free = Stack.create(max)\n this.#size = 0\n this.#calculatedSize = 0\n\n if (typeof dispose === 'function') {\n this.#dispose = dispose\n }\n if (typeof onInsert === 'function') {\n this.#onInsert = onInsert\n }\n if (typeof disposeAfter === 'function') {\n this.#disposeAfter = disposeAfter\n this.#disposed = []\n } else {\n this.#disposeAfter = undefined\n this.#disposed = undefined\n }\n this.#hasDispose = !!this.#dispose\n this.#hasOnInsert = !!this.#onInsert\n this.#hasDisposeAfter = !!this.#disposeAfter\n\n this.noDisposeOnSet = !!noDisposeOnSet\n this.noUpdateTTL = !!noUpdateTTL\n this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection\n this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection\n this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort\n this.ignoreFetchAbort = !!ignoreFetchAbort\n\n // NB: maxEntrySize is set to maxSize if it's set\n if (this.maxEntrySize !== 0) {\n if (this.#maxSize !== 0) {\n if (!isPosInt(this.#maxSize)) {\n throw new TypeError(\n 'maxSize must be a positive integer if specified',\n )\n }\n }\n if (!isPosInt(this.maxEntrySize)) {\n throw new TypeError(\n 'maxEntrySize must be a positive integer if specified',\n )\n }\n this.#initializeSizeTracking()\n }\n\n this.allowStale = !!allowStale\n this.noDeleteOnStaleGet = !!noDeleteOnStaleGet\n this.updateAgeOnGet = !!updateAgeOnGet\n this.updateAgeOnHas = !!updateAgeOnHas\n this.ttlResolution =\n isPosInt(ttlResolution) || ttlResolution === 0 ? ttlResolution : 1\n this.ttlAutopurge = !!ttlAutopurge\n this.ttl = ttl || 0\n if (this.ttl) {\n if (!isPosInt(this.ttl)) {\n throw new TypeError('ttl must be a positive integer if specified')\n }\n this.#initializeTTLTracking()\n }\n\n // do not allow completely unbounded caches\n if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) {\n throw new TypeError(\n 'At least one of max, maxSize, or ttl is required',\n )\n }\n if (!this.ttlAutopurge && !this.#max && !this.#maxSize) {\n const code = 'LRU_CACHE_UNBOUNDED'\n if (shouldWarn(code)) {\n warned.add(code)\n const msg =\n 'TTL caching without ttlAutopurge, max, or maxSize can ' +\n 'result in unbounded memory consumption.'\n emitWarning(msg, 'UnboundedCacheWarning', code, LRUCache)\n }\n }\n }\n\n /**\n * Return the number of ms left in the item's TTL. If item is not in cache,\n * returns `0`. Returns `Infinity` if item is in cache without a defined TTL.\n */\n getRemainingTTL(key: K) {\n return this.#keyMap.has(key) ? Infinity : 0\n }\n\n #initializeTTLTracking() {\n const ttls = new ZeroArray(this.#max)\n const starts = new ZeroArray(this.#max)\n this.#ttls = ttls\n this.#starts = starts\n const purgeTimers =\n this.ttlAutopurge ?\n new Array<undefined | ReturnType<typeof setTimeout>>(this.#max)\n : undefined\n this.#autopurgeTimers = purgeTimers\n\n this.#setItemTTL = (index, ttl, start = this.#perf.now()) => {\n starts[index] = ttl !== 0 ? start : 0\n ttls[index] = ttl\n setPurgetTimer(index, ttl)\n }\n\n this.#updateItemAge = index => {\n starts[index] = ttls[index] !== 0 ? this.#perf.now() : 0\n setPurgetTimer(index, ttls[index])\n }\n\n // clear out the purge timer if we're setting TTL to 0, and\n // previously had a ttl purge timer running, so it doesn't\n // fire unnecessarily. Don't need to do this if we're not doing\n // autopurge.\n const setPurgetTimer =\n !this.ttlAutopurge ?\n () => {}\n : (index: Index, ttl?: number) => {\n if (purgeTimers?.[index]) {\n clearTimeout(purgeTimers[index])\n purgeTimers[index] = undefined\n }\n if (ttl && ttl !== 0 && purgeTimers) {\n const t = setTimeout(() => {\n if (this.#isStale(index)) {\n this.#delete(this.#keyList[index] as K, 'expire')\n }\n }, ttl + 1)\n // unref() not supported on all platforms\n /* c8 ignore start */\n if (t.unref) {\n t.unref()\n }\n /* c8 ignore stop */\n purgeTimers[index] = t\n }\n }\n\n this.#statusTTL = (status, index) => {\n if (ttls[index]) {\n const ttl = ttls[index]\n const start = starts[index]\n /* c8 ignore next */\n if (!ttl || !start) return\n status.ttl = ttl\n status.start = start\n status.now = cachedNow || getNow()\n const age = status.now - start\n status.remainingTTL = ttl - age\n }\n }\n\n // debounce calls to perf.now() to 1s so we're not hitting\n // that costly call repeatedly.\n let cachedNow = 0\n const getNow = () => {\n const n = this.#perf.now()\n if (this.ttlResolution > 0) {\n cachedNow = n\n const t = setTimeout(() => (cachedNow = 0), this.ttlResolution)\n // not available on all platforms\n /* c8 ignore start */\n if (t.unref) {\n t.unref()\n }\n /* c8 ignore stop */\n }\n return n\n }\n\n this.getRemainingTTL = key => {\n const index = this.#keyMap.get(key)\n if (index === undefined) {\n return 0\n }\n const ttl = ttls[index]\n const start = starts[index]\n if (!ttl || !start) {\n return Infinity\n }\n const age = (cachedNow || getNow()) - start\n return ttl - age\n }\n\n this.#isStale = index => {\n const s = starts[index]\n const t = ttls[index]\n return !!t && !!s && (cachedNow || getNow()) - s > t\n }\n }\n\n // conditionally set private methods related to TTL\n #updateItemAge: (index: Index) => void = () => {}\n #statusTTL: (status: LRUCache.Status<V>, index: Index) => void = () => {}\n #setItemTTL: (\n index: Index,\n ttl: LRUCache.Milliseconds,\n start?: LRUCache.Milliseconds,\n // ignore because we never call this if we're not already in TTL mode\n /* c8 ignore start */\n ) => void = () => {}\n /* c8 ignore stop */\n\n #isStale: (index: Index) => boolean = () => false\n\n #initializeSizeTracking() {\n const sizes = new ZeroArray(this.#max)\n this.#calculatedSize = 0\n this.#sizes = sizes\n this.#removeItemSize = index => {\n this.#calculatedSize -= sizes[index] as number\n sizes[index] = 0\n }\n this.#requireSize = (k, v, size, sizeCalculation) => {\n // provisionally accept background fetches.\n // actual value size will be checked when they return.\n if (this.#isBackgroundFetch(v)) {\n return 0\n }\n if (!isPosInt(size)) {\n if (sizeCalculation) {\n if (typeof sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation must be a function')\n }\n size = sizeCalculation(v, k)\n if (!isPosInt(size)) {\n throw new TypeError(\n 'sizeCalculation return invalid (expect positive integer)',\n )\n }\n } else {\n throw new TypeError(\n 'invalid size value (must be positive integer). ' +\n 'When maxSize or maxEntrySize is used, sizeCalculation ' +\n 'or size must be set.',\n )\n }\n }\n return size\n }\n this.#addItemSize = (\n index: Index,\n size: LRUCache.Size,\n status?: LRUCache.Status<V>,\n ) => {\n sizes[index] = size\n if (this.#maxSize) {\n const maxSize = this.#maxSize - (sizes[index] as number)\n while (this.#calculatedSize > maxSize) {\n this.#evict(true)\n }\n }\n this.#calculatedSize += sizes[index] as number\n if (status) {\n status.entrySize = size\n status.totalCalculatedSize = this.#calculatedSize\n }\n }\n }\n\n #removeItemSize: (index: Index) => void = _i => {}\n #addItemSize: (\n index: Index,\n size: LRUCache.Size,\n status?: LRUCache.Status<V>,\n ) => void = (_i, _s, _st) => {}\n #requireSize: (\n k: K,\n v: V | BackgroundFetch<V>,\n size?: LRUCache.Size,\n sizeCalculation?: LRUCache.SizeCalculator<K, V>,\n ) => LRUCache.Size = (\n _k: K,\n _v: V | BackgroundFetch<V>,\n size?: LRUCache.Size,\n sizeCalculation?: LRUCache.SizeCalculator<K, V>,\n ) => {\n if (size || sizeCalculation) {\n throw new TypeError(\n 'cannot set size without setting maxSize or maxEntrySize on cache',\n )\n }\n return 0\n };\n\n *#indexes({ allowStale = this.allowStale } = {}) {\n if (this.#size) {\n for (let i = this.#tail; true; ) {\n if (!this.#isValidIndex(i)) {\n break\n }\n if (allowStale || !this.#isStale(i)) {\n yield i\n }\n if (i === this.#head) {\n break\n } else {\n i = this.#prev[i] as Index\n }\n }\n }\n }\n\n *#rindexes({ allowStale = this.allowStale } = {}) {\n if (this.#size) {\n for (let i = this.#head; true; ) {\n if (!this.#isValidIndex(i)) {\n break\n }\n if (allowStale || !this.#isStale(i)) {\n yield i\n }\n if (i === this.#tail) {\n break\n } else {\n i = this.#next[i] as Index\n }\n }\n }\n }\n\n #isValidIndex(index: Index) {\n return (\n index !== undefined &&\n this.#keyMap.get(this.#keyList[index] as K) === index\n )\n }\n\n /**\n * Return a generator yielding `[key, value]` pairs,\n * in order from most recently used to least recently used.\n */\n *entries() {\n for (const i of this.#indexes()) {\n if (\n this.#valList[i] !== undefined &&\n this.#keyList[i] !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])\n ) {\n yield [this.#keyList[i], this.#valList[i]] as [K, V]\n }\n }\n }\n\n /**\n * Inverse order version of {@link LRUCache.entries}\n *\n * Return a generator yielding `[key, value]` pairs,\n * in order from least recently used to most recently used.\n */\n *rentries() {\n for (const i of this.#rindexes()) {\n if (\n this.#valList[i] !== undefined &&\n this.#keyList[i] !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])\n ) {\n yield [this.#keyList[i], this.#valList[i]]\n }\n }\n }\n\n /**\n * Return a generator yielding the keys in the cache,\n * in order from most recently used to least recently used.\n */\n *keys() {\n for (const i of this.#indexes()) {\n const k = this.#keyList[i]\n if (k !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {\n yield k\n }\n }\n }\n\n /**\n * Inverse order version of {@link LRUCache.keys}\n *\n * Return a generator yielding the keys in the cache,\n * in order from least recently used to most recently used.\n */\n *rkeys() {\n for (const i of this.#rindexes()) {\n const k = this.#keyList[i]\n if (k !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {\n yield k\n }\n }\n }\n\n /**\n * Return a generator yielding the values in the cache,\n * in order from most recently used to least recently used.\n */\n *values() {\n for (const i of this.#indexes()) {\n const v = this.#valList[i]\n if (v !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {\n yield this.#valList[i] as V\n }\n }\n }\n\n /**\n * Inverse order version of {@link LRUCache.values}\n *\n * Return a generator yielding the values in the cache,\n * in order from least recently used to most recently used.\n */\n *rvalues() {\n for (const i of this.#rindexes()) {\n const v = this.#valList[i]\n if (v !== undefined && !this.#isBackgroundFetch(this.#valList[i])) {\n yield this.#valList[i]\n }\n }\n }\n\n /**\n * Iterating over the cache itself yields the same results as\n * {@link LRUCache.entries}\n */\n [Symbol.iterator]() {\n return this.entries()\n }\n\n /**\n * A String value that is used in the creation of the default string\n * description of an object. Called by the built-in method\n * `Object.prototype.toString`.\n */\n [Symbol.toStringTag] = 'LRUCache'\n\n /**\n * Find a value for which the supplied fn method returns a truthy value,\n * similar to `Array.find()`. fn is called as `fn(value, key, cache)`.\n */\n find(\n fn: (v: V, k: K, self: LRUCache<K, V, FC>) => boolean,\n getOptions: LRUCache.GetOptions<K, V, FC> = {},\n ) {\n for (const i of this.#indexes()) {\n const v = this.#valList[i]\n const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v\n if (value === undefined) continue\n if (fn(value, this.#keyList[i] as K, this)) {\n return this.get(this.#keyList[i] as K, getOptions)\n }\n }\n }\n\n /**\n * Call the supplied function on each item in the cache, in order from most\n * recently used to least recently used.\n *\n * `fn` is called as `fn(value, key, cache)`.\n *\n * If `thisp` is provided, function will be called in the `this`-context of\n * the provided object, or the cache if no `thisp` object is provided.\n *\n * Does not update age or recenty of use, or iterate over stale values.\n */\n forEach(\n fn: (v: V, k: K, self: LRUCache<K, V, FC>) => any,\n thisp: any = this,\n ) {\n for (const i of this.#indexes()) {\n const v = this.#valList[i]\n const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v\n if (value === undefined) continue\n fn.call(thisp, value, this.#keyList[i] as K, this)\n }\n }\n\n /**\n * The same as {@link LRUCache.forEach} but items are iterated over in\n * reverse order. (ie, less recently used items are iterated over first.)\n */\n rforEach(\n fn: (v: V, k: K, self: LRUCache<K, V, FC>) => any,\n thisp: any = this,\n ) {\n for (const i of this.#rindexes()) {\n const v = this.#valList[i]\n const value = this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v\n if (value === undefined) continue\n fn.call(thisp, value, this.#keyList[i] as K, this)\n }\n }\n\n /**\n * Delete any stale entries. Returns true if anything was removed,\n * false otherwise.\n */\n purgeStale() {\n let deleted = false\n for (const i of this.#rindexes({ allowStale: true })) {\n if (this.#isStale(i)) {\n this.#delete(this.#keyList[i] as K, 'expire')\n deleted = true\n }\n }\n return deleted\n }\n\n /**\n * Get the extended info about a given entry, to get its value, size, and\n * TTL info simultaneously. Returns `undefined` if the key is not present.\n *\n * Unlike {@link LRUCache#dump}, which is designed to be portable and survive\n * serialization, the `start` value is always the current timestamp, and the\n * `ttl` is a calculated remaining time to live (negative if expired).\n *\n * Always returns stale values, if their info is found in the cache, so be\n * sure to check for expirations (ie, a negative {@link LRUCache.Entry#ttl})\n * if relevant.\n */\n info(key: K): LRUCache.Entry<V> | undefined {\n const i = this.#keyMap.get(key)\n if (i === undefined) return undefined\n const v = this.#valList[i]\n /* c8 ignore start - this isn't tested for the info function,\n * but it's the same logic as found in other places. */\n const value: V | undefined =\n this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v\n if (value === undefined) return undefined\n /* c8 ignore end */\n const entry: LRUCache.Entry<V> = { value }\n if (this.#ttls && this.#starts) {\n const ttl = this.#ttls[i]\n const start = this.#starts[i]\n if (ttl && start) {\n const remain = ttl - (this.#perf.now() - start)\n entry.ttl = remain\n entry.start = Date.now()\n }\n }\n if (this.#sizes) {\n entry.size = this.#sizes[i]\n }\n return entry\n }\n\n /**\n * Return an array of [key, {@link LRUCache.Entry}] tuples which can be\n * passed to {@link LRUCache#load}.\n *\n * The `start` fields are calculated relative to a portable `Date.now()`\n * timestamp, even if `performance.now()` is available.\n *\n * Stale entries are always included in the `dump`, even if\n * {@link LRUCache.OptionsBase.allowStale} is false.\n *\n * Note: this returns an actual array, not a generator, so it can be more\n * easily passed around.\n */\n dump() {\n const arr: [K, LRUCache.Entry<V>][] = []\n for (const i of this.#indexes({ allowStale: true })) {\n const key = this.#keyList[i]\n const v = this.#valList[i]\n const value: V | undefined =\n this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v\n if (value === undefined || key === undefined) continue\n const entry: LRUCache.Entry<V> = { value }\n if (this.#ttls && this.#starts) {\n entry.ttl = this.#ttls[i]\n // always dump the start relative to a portable timestamp\n // it's ok for this to be a bit slow, it's a rare operation.\n const age = this.#perf.now() - (this.#starts[i] as number)\n entry.start = Math.floor(Date.now() - age)\n }\n if (this.#sizes) {\n entry.size = this.#sizes[i]\n }\n arr.unshift([key, entry])\n }\n return arr\n }\n\n /**\n * Reset the cache and load in the items in entries in the order listed.\n *\n * The shape of the resulting cache may be different if the same options are\n * not used in both caches.\n *\n * The `start` fields are assumed to be calculated relative to a portable\n * `Date.now()` timestamp, even if `performance.now()` is available.\n */\n load(arr: [K, LRUCache.Entry<V>][]) {\n this.clear()\n for (const [key, entry] of arr) {\n if (entry.start) {\n // entry.start is a portable timestamp, but we may be using\n // node's performance.now(), so calculate the offset, so that\n // we get the intended remaining TTL, no matter how long it's\n // been on ice.\n //\n // it's ok for this to be a bit slow, it's a rare operation.\n const age = Date.now() - entry.start\n entry.start = this.#perf.now() - age\n }\n this.set(key, entry.value, entry)\n }\n }\n\n /**\n * Add a value to the cache.\n *\n * Note: if `undefined` is specified as a value, this is an alias for\n * {@link LRUCache#delete}\n *\n * Fields on the {@link LRUCache.SetOptions} options param will override\n * their corresponding values in the constructor options for the scope\n * of this single `set()` operation.\n *\n * If `start` is provided, then that will set the effective start\n * time for the TTL calculation. Note that this must be a previous\n * value of `performance.now()` if supported, or a previous value of\n * `Date.now()` if not.\n *\n * Options object may also include `size`, which will prevent\n * calling the `sizeCalculation` function and just use the specified\n * number if it is a positive integer, and `noDisposeOnSet` which\n * will prevent calling a `dispose` function in the case of\n * overwrites.\n *\n * If the `size` (or return value of `sizeCalculation`) for a given\n * entry is greater than `maxEntrySize`, then the item will not be\n * added to the cache.\n *\n * Will update the recency of the entry.\n *\n * If the value is `undefined`, then this is an alias for\n * `cache.delete(key)`. `undefined` is never stored in the cache.\n */\n set(\n k: K,\n v: V | BackgroundFetch<V> | undefined,\n setOptions: LRUCache.SetOptions<K, V, FC> = {},\n ) {\n if (v === undefined) {\n this.delete(k)\n return this\n }\n const {\n ttl = this.ttl,\n start,\n noDisposeOnSet = this.noDisposeOnSet,\n sizeCalculation = this.sizeCalculation,\n status,\n } = setOptions\n let { noUpdateTTL = this.noUpdateTTL } = setOptions\n\n const size = this.#requireSize(\n k,\n v,\n setOptions.size || 0,\n sizeCalculation,\n )\n // if the item doesn't fit, don't do anything\n // NB: maxEntrySize set to maxSize by default\n if (this.maxEntrySize && size > this.maxEntrySize) {\n if (status) {\n status.set = 'miss'\n status.maxEntrySizeExceeded = true\n }\n // have to delete, in case something is there already.\n this.#delete(k, 'set')\n return this\n }\n let index = this.#size === 0 ? undefined : this.#keyMap.get(k)\n if (index === undefined) {\n // addition\n index = (\n this.#size === 0 ? this.#tail\n : this.#free.length !== 0 ? this.#free.pop()\n : this.#size === this.#max ? this.#evict(false)\n : this.#size) as Index\n this.#keyList[index] = k\n this.#valList[index] = v\n this.#keyMap.set(k, index)\n this.#next[this.#tail] = index\n this.#prev[index] = this.#tail\n this.#tail = index\n this.#size++\n this.#addItemSize(index, size, status)\n if (status) status.set = 'add'\n noUpdateTTL = false\n if (this.#hasOnInsert) {\n this.#onInsert?.(v as V, k, 'add')\n }\n } else {\n // update\n this.#moveToTail(index)\n const oldVal = this.#valList[index] as V | BackgroundFetch<V>\n if (v !== oldVal) {\n if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {\n oldVal.__abortController.abort(new Error('replaced'))\n const { __staleWhileFetching: s } = oldVal\n if (s !== undefined && !noDisposeOnSet) {\n if (this.#hasDispose) {\n this.#dispose?.(s as V, k, 'set')\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([s as V, k, 'set'])\n }\n }\n } else if (!noDisposeOnSet) {\n if (this.#hasDispose) {\n this.#dispose?.(oldVal as V, k, 'set')\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([oldVal as V, k, 'set'])\n }\n }\n this.#removeItemSize(index)\n this.#addItemSize(index, size, status)\n this.#valList[index] = v\n if (status) {\n status.set = 'replace'\n const oldValue =\n oldVal && this.#isBackgroundFetch(oldVal) ?\n oldVal.__staleWhileFetching\n : oldVal\n if (oldValue !== undefined) status.oldValue = oldValue\n }\n } else if (status) {\n status.set = 'update'\n }\n\n if (this.#hasOnInsert) {\n this.onInsert?.(v as V, k, v === oldVal ? 'update' : 'replace')\n }\n }\n if (ttl !== 0 && !this.#ttls) {\n this.#initializeTTLTracking()\n }\n if (this.#ttls) {\n if (!noUpdateTTL) {\n this.#setItemTTL(index, ttl, start)\n }\n if (status) this.#statusTTL(status, index)\n }\n if (!noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {\n const dt = this.#disposed\n let task: DisposeTask<K, V> | undefined\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task)\n }\n }\n return this\n }\n\n /**\n * Evict the least recently used item, returning its value or\n * `undefined` if cache is empty.\n */\n pop(): V | undefined {\n try {\n while (this.#size) {\n const val = this.#valList[this.#head]\n this.#evict(true)\n if (this.#isBackgroundFetch(val)) {\n if (val.__staleWhileFetching) {\n return val.__staleWhileFetching\n }\n } else if (val !== undefined) {\n return val\n }\n }\n } finally {\n if (this.#hasDisposeAfter && this.#disposed) {\n const dt = this.#disposed\n let task: DisposeTask<K, V> | undefined\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task)\n }\n }\n }\n }\n\n #evict(free: boolean) {\n const head = this.#head\n const k = this.#keyList[head] as K\n const v = this.#valList[head] as V\n if (this.#hasFetchMethod && this.#isBackgroundFetch(v)) {\n v.__abortController.abort(new Error('evicted'))\n } else if (this.#hasDispose || this.#hasDisposeAfter) {\n if (this.#hasDispose) {\n this.#dispose?.(v, k, 'evict')\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([v, k, 'evict'])\n }\n }\n this.#removeItemSize(head)\n if (this.#autopurgeTimers?.[head]) {\n clearTimeout(this.#autopurgeTimers[head])\n this.#autopurgeTimers[head] = undefined\n }\n // if we aren't about to use the index, then null these out\n if (free) {\n this.#keyList[head] = undefined\n this.#valList[head] = undefined\n this.#free.push(head)\n }\n if (this.#size === 1) {\n this.#head = this.#tail = 0 as Index\n this.#free.length = 0\n } else {\n this.#head = this.#next[head] as Index\n }\n this.#keyMap.delete(k)\n this.#size--\n return head\n }\n\n /**\n * Check if a key is in the cache, without updating the recency of use.\n * Will return false if the item is stale, even though it is technically\n * in the cache.\n *\n * Check if a key is in the cache, without updating the recency of\n * use. Age is updated if {@link LRUCache.OptionsBase.updateAgeOnHas} is set\n * to `true` in either the options or the constructor.\n *\n * Will return `false` if the item is stale, even though it is technically in\n * the cache. The difference can be determined (if it matters) by using a\n * `status` argument, and inspecting the `has` field.\n *\n * Will not update item age unless\n * {@link LRUCache.OptionsBase.updateAgeOnHas} is set.\n */\n has(k: K, hasOptions: LRUCache.HasOptions<K, V, FC> = {}) {\n const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions\n const index = this.#keyMap.get(k)\n if (index !== undefined) {\n const v = this.#valList[index]\n if (\n this.#isBackgroundFetch(v) &&\n v.__staleWhileFetching === undefined\n ) {\n return false\n }\n if (!this.#isStale(index)) {\n if (updateAgeOnHas) {\n this.#updateItemAge(index)\n }\n if (status) {\n status.has = 'hit'\n this.#statusTTL(status, index)\n }\n return true\n } else if (status) {\n status.has = 'stale'\n this.#statusTTL(status, index)\n }\n } else if (status) {\n status.has = 'miss'\n }\n return false\n }\n\n /**\n * Like {@link LRUCache#get} but doesn't update recency or delete stale\n * items.\n *\n * Returns `undefined` if the item is stale, unless\n * {@link LRUCache.OptionsBase.allowStale} is set.\n */\n peek(k: K, peekOptions: LRUCache.PeekOptions<K, V, FC> = {}) {\n const { allowStale = this.allowStale } = peekOptions\n const index = this.#keyMap.get(k)\n if (index === undefined || (!allowStale && this.#isStale(index))) {\n return\n }\n const v = this.#valList[index]\n // either stale and allowed, or forcing a refresh of non-stale value\n return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v\n }\n\n #backgroundFetch(\n k: K,\n index: Index | undefined,\n options: LRUCache.FetchOptions<K, V, FC>,\n context: any,\n ): BackgroundFetch<V> {\n const v = index === undefined ? undefined : this.#valList[index]\n if (this.#isBackgroundFetch(v)) {\n return v\n }\n\n const ac = new AC()\n const { signal } = options\n // when/if our AC signals, then stop listening to theirs.\n signal?.addEventListener('abort', () => ac.abort(signal.reason), {\n signal: ac.signal,\n })\n\n const fetchOpts = {\n signal: ac.signal,\n options,\n context,\n }\n\n const cb = (v: V | undefined, updateCache = false): V | undefined => {\n const { aborted } = ac.signal\n const ignoreAbort = options.ignoreFetchAbort && v !== undefined\n const proceed =\n options.ignoreFetchAbort ||\n !!(options.allowStaleOnFetchAbort && v !== undefined)\n if (options.status) {\n if (aborted && !updateCache) {\n options.status.fetchAborted = true\n options.status.fetchError = ac.signal.reason\n if (ignoreAbort) options.status.fetchAbortIgnored = true\n } else {\n options.status.fetchResolved = true\n }\n }\n if (aborted && !ignoreAbort && !updateCache) {\n return fetchFail(ac.signal.reason, proceed)\n }\n // either we didn't abort, and are still here, or we did, and ignored\n const bf = p as BackgroundFetch<V>\n // if nothing else has been written there but we're set to update the\n // cache and ignore the abort, or if it's still pending on this specific\n // background request, then write it to the cache.\n const vl = this.#valList[index as Index]\n if (vl === p || (ignoreAbort && updateCache && vl === undefined)) {\n if (v === undefined) {\n if (bf.__staleWhileFetching !== undefined) {\n this.#valList[index as Index] = bf.__staleWhileFetching\n } else {\n this.#delete(k, 'fetch')\n }\n } else {\n if (options.status) options.status.fetchUpdated = true\n this.set(k, v, fetchOpts.options)\n }\n }\n return v\n }\n\n const eb = (er: any) => {\n if (options.status) {\n options.status.fetchRejected = true\n options.status.fetchError = er\n }\n // do not pass go, do not collect $200\n return fetchFail(er, false)\n }\n\n const fetchFail = (er: any, proceed: boolean): V | undefined => {\n const { aborted } = ac.signal\n const allowStaleAborted = aborted && options.allowStaleOnFetchAbort\n const allowStale =\n allowStaleAborted || options.allowStaleOnFetchRejection\n const noDelete = allowStale || options.noDeleteOnFetchRejection\n const bf = p as BackgroundFetch<V>\n if (this.#valList[index as Index] === p) {\n // if we allow stale on fetch rejections, then we need to ensure that\n // the stale value is not removed from the cache when the fetch fails.\n const del =\n !noDelete || (!proceed && bf.__staleWhileFetching === undefined)\n if (del) {\n this.#delete(k, 'fetch')\n } else if (!allowStaleAborted) {\n // still replace the *promise* with the stale value,\n // since we are done with the promise at this point.\n // leave it untouched if we're still waiting for an\n // aborted background fetch that hasn't yet returned.\n this.#valList[index as Index] = bf.__staleWhileFetching\n }\n }\n if (allowStale) {\n if (options.status && bf.__staleWhileFetching !== undefined) {\n options.status.returnedStale = true\n }\n return bf.__staleWhileFetching\n } else if (bf.__returned === bf) {\n throw er\n }\n }\n\n const pcall = (\n res: (v: V | undefined) => void,\n rej: (e: any) => void,\n ) => {\n const fmp = this.#fetchMethod?.(k, v, fetchOpts)\n if (fmp && fmp instanceof Promise) {\n fmp.then(v => res(v === undefined ? undefined : v), rej)\n }\n // ignored, we go until we finish, regardless.\n // defer check until we are actually aborting,\n // so fetchMethod can override.\n ac.signal.addEventListener('abort', () => {\n if (!options.ignoreFetchAbort || options.allowStaleOnFetchAbort) {\n res(undefined)\n // when it eventually resolves, update the cache.\n if (options.allowStaleOnFetchAbort) {\n res = v => cb(v, true)\n }\n }\n })\n }\n\n if (options.status) options.status.fetchDispatched = true\n const p = new Promise(pcall).then(cb, eb)\n const bf: BackgroundFetch<V> = Object.assign(p, {\n __abortController: ac,\n __staleWhileFetching: v,\n __returned: undefined,\n })\n\n if (index === undefined) {\n // internal, don't expose status.\n this.set(k, bf, { ...fetchOpts.options, status: undefined })\n index = this.#keyMap.get(k)\n } else {\n this.#valList[index] = bf\n }\n return bf\n }\n\n #isBackgroundFetch(p: any): p is BackgroundFetch<V> {\n if (!this.#hasFetchMethod) return false\n const b = p as BackgroundFetch<V>\n return (\n !!b &&\n b instanceof Promise &&\n b.hasOwnProperty('__staleWhileFetching') &&\n b.__abortController instanceof AC\n )\n }\n\n /**\n * Make an asynchronous cached fetch using the\n * {@link LRUCache.OptionsBase.fetchMethod} function.\n *\n * If the value is in the cache and not stale, then the returned\n * Promise resolves to the value.\n *\n * If not in the cache, or beyond its TTL staleness, then\n * `fetchMethod(key, staleValue, { options, signal, context })` is\n * called, and the value returned will be added to the cache once\n * resolved.\n *\n * If called with `allowStale`, and an asynchronous fetch is\n * currently in progress to reload a stale value, then the former\n * stale value will be returned.\n *\n * If called with `forceRefresh`, then the cached item will be\n * re-fetched, even if it is not stale. However, if `allowStale` is also\n * set, then the old value will still be returned. This is useful\n * in cases where you want to force a reload of a cached value. If\n * a background fetch is already in progress, then `forceRefresh`\n * has no effect.\n *\n * If multiple fetches for the same key are issued, then they will all be\n * coalesced into a single call to fetchMethod.\n *\n * Note that this means that handling options such as\n * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort},\n * {@link LRUCache.FetchOptions.signal},\n * and {@link LRUCache.OptionsBase.allowStaleOnFetchRejection} will be\n * determined by the FIRST fetch() call for a given key.\n *\n * This is a known (fixable) shortcoming which will be addresed on when\n * someone complains about it, as the fix would involve added complexity and\n * may not be worth the costs for this edge case.\n *\n * If {@link LRUCache.OptionsBase.fetchMethod} is not specified, then this is\n * effectively an alias for `Promise.resolve(cache.get(key))`.\n *\n * When the fetch method resolves to a value, if the fetch has not\n * been aborted due to deletion, eviction, or being overwritten,\n * then it is added to the cache using the options provided.\n *\n * If the key is evicted or deleted before the `fetchMethod`\n * resolves, then the AbortSignal passed to the `fetchMethod` will\n * receive an `abort` event, and the promise returned by `fetch()`\n * will reject with the reason for the abort.\n *\n * If a `signal` is passed to the `fetch()` call, then aborting the\n * signal will abort the fetch and cause the `fetch()` promise to\n * reject with the reason provided.\n *\n * **Setting `context`**\n *\n * If an `FC` type is set to a type other than `unknown`, `void`, or\n * `undefined` in the {@link LRUCache} constructor, then all\n * calls to `cache.fetch()` _must_ provide a `context` option. If\n * set to `undefined` or `void`, then calls to fetch _must not_\n * provide a `context` option.\n *\n * The `context` param allows you to provide arbitrary data that\n * might be relevant in the course of fetching the data. It is only\n * relevant for the course of a single `fetch()` operation, and\n * discarded afterwards.\n *\n * **Note: `fetch()` calls are inflight-unique**\n *\n * If you call `fetch()` multiple times with the same key value,\n * then every call after the first will resolve on the same\n * promise<sup>1</sup>,\n * _even if they have different settings that would otherwise change\n * the behavior of the fetch_, such as `noDeleteOnFetchRejection`\n * or `ignoreFetchAbort`.\n *\n * In most cases, this is not a problem (in fact, only fetching\n * something once is what you probably want, if you're caching in\n * the first place). If you are changing the fetch() options\n * dramatically between runs, there's a good chance that you might\n * be trying to fit divergent semantics into a single object, and\n * would be better off with multiple cache instances.\n *\n * **1**: Ie, they're not the \"same Promise\", but they resolve at\n * the same time, because they're both waiting on the same\n * underlying fetchMethod response.\n */\n\n fetch(\n k: K,\n fetchOptions: unknown extends FC ? LRUCache.FetchOptions<K, V, FC>\n : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V>\n : LRUCache.FetchOptionsWithContext<K, V, FC>,\n ): Promise<undefined | V>\n\n // this overload not allowed if context is required\n fetch(\n k: unknown extends FC ? K\n : FC extends undefined | void ? K\n : never,\n fetchOptions?: unknown extends FC ? LRUCache.FetchOptions<K, V, FC>\n : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V>\n : never,\n ): Promise<undefined | V>\n\n async fetch(\n k: K,\n fetchOptions: LRUCache.FetchOptions<K, V, FC> = {},\n ): Promise<undefined | V> {\n const {\n // get options\n allowStale = this.allowStale,\n updateAgeOnGet = this.updateAgeOnGet,\n noDeleteOnStaleGet = this.noDeleteOnStaleGet,\n // set options\n ttl = this.ttl,\n noDisposeOnSet = this.noDisposeOnSet,\n size = 0,\n sizeCalculation = this.sizeCalculation,\n noUpdateTTL = this.noUpdateTTL,\n // fetch exclusive options\n noDeleteOnFetchRejection = this.noDeleteOnFetchRejection,\n allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,\n ignoreFetchAbort = this.ignoreFetchAbort,\n allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,\n context,\n forceRefresh = false,\n status,\n signal,\n } = fetchOptions\n\n if (!this.#hasFetchMethod) {\n if (status) status.fetch = 'get'\n return this.get(k, {\n allowStale,\n updateAgeOnGet,\n noDeleteOnStaleGet,\n status,\n })\n }\n\n const options = {\n allowStale,\n updateAgeOnGet,\n noDeleteOnStaleGet,\n ttl,\n noDisposeOnSet,\n size,\n sizeCalculation,\n noUpdateTTL,\n noDeleteOnFetchRejection,\n allowStaleOnFetchRejection,\n allowStaleOnFetchAbort,\n ignoreFetchAbort,\n status,\n signal,\n }\n\n let index = this.#keyMap.get(k)\n if (index === undefined) {\n if (status) status.fetch = 'miss'\n const p = this.#backgroundFetch(k, index, options, context)\n return (p.__returned = p)\n } else {\n // in cache, maybe already fetching\n const v = this.#valList[index]\n if (this.#isBackgroundFetch(v)) {\n const stale = allowStale && v.__staleWhileFetching !== undefined\n if (status) {\n status.fetch = 'inflight'\n if (stale) status.returnedStale = true\n }\n return stale ? v.__staleWhileFetching : (v.__returned = v)\n }\n\n // if we force a refresh, that means do NOT serve the cached value,\n // unless we are already in the process of refreshing the cache.\n const isStale = this.#isStale(index)\n if (!forceRefresh && !isStale) {\n if (status) status.fetch = 'hit'\n this.#moveToTail(index)\n if (updateAgeOnGet) {\n this.#updateItemAge(index)\n }\n if (status) this.#statusTTL(status, index)\n return v\n }\n\n // ok, it is stale or a forced refresh, and not already fetching.\n // refresh the cache.\n const p = this.#backgroundFetch(k, index, options, context)\n const hasStale = p.__staleWhileFetching !== undefined\n const staleVal = hasStale && allowStale\n if (status) {\n status.fetch = isStale ? 'stale' : 'refresh'\n if (staleVal && isStale) status.returnedStale = true\n }\n return staleVal ? p.__staleWhileFetching : (p.__returned = p)\n }\n }\n\n /**\n * In some cases, `cache.fetch()` may resolve to `undefined`, either because\n * a {@link LRUCache.OptionsBase#fetchMethod} was not provided (turning\n * `cache.fetch(k)` into just an async wrapper around `cache.get(k)`) or\n * because `ignoreFetchAbort` was specified (either to the constructor or\n * in the {@link LRUCache.FetchOptions}). Also, the\n * {@link LRUCache.OptionsBase.fetchMethod} may return `undefined` or `void`, making\n * the test even more complicated.\n *\n * Because inferring the cases where `undefined` might be returned are so\n * cumbersome, but testing for `undefined` can also be annoying, this method\n * can be used, which will reject if `this.fetch()` resolves to undefined.\n */\n forceFetch(\n k: K,\n fetchOptions: unknown extends FC ? LRUCache.FetchOptions<K, V, FC>\n : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V>\n : LRUCache.FetchOptionsWithContext<K, V, FC>,\n ): Promise<V>\n // this overload not allowed if context is required\n forceFetch(\n k: unknown extends FC ? K\n : FC extends undefined | void ? K\n : never,\n fetchOptions?: unknown extends FC ? LRUCache.FetchOptions<K, V, FC>\n : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V>\n : never,\n ): Promise<V>\n async forceFetch(\n k: K,\n fetchOptions: LRUCache.FetchOptions<K, V, FC> = {},\n ): Promise<V> {\n const v = await this.fetch(\n k,\n fetchOptions as unknown extends FC ? LRUCache.FetchOptions<K, V, FC>\n : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V>\n : LRUCache.FetchOptionsWithContext<K, V, FC>,\n )\n if (v === undefined) throw new Error('fetch() returned undefined')\n return v\n }\n\n /**\n * If the key is found in the cache, then this is equivalent to\n * {@link LRUCache#get}. If not, in the cache, then calculate the value using\n * the {@link LRUCache.OptionsBase.memoMethod}, and add it to the cache.\n *\n * If an `FC` type is set to a type other than `unknown`, `void`, or\n * `undefined` in the LRUCache constructor, then all calls to `cache.memo()`\n * _must_ provide a `context` option. If set to `undefined` or `void`, then\n * calls to memo _must not_ provide a `context` option.\n *\n * The `context` param allows you to provide arbitrary data that might be\n * relevant in the course of fetching the data. It is only relevant for the\n * course of a single `memo()` operation, and discarded afterwards.\n */\n memo(\n k: K,\n memoOptions: unknown extends FC ? LRUCache.MemoOptions<K, V, FC>\n : FC extends undefined | void ? LRUCache.MemoOptionsNoContext<K, V>\n : LRUCache.MemoOptionsWithContext<K, V, FC>,\n ): V\n // this overload not allowed if context is required\n memo(\n k: unknown extends FC ? K\n : FC extends undefined | void ? K\n : never,\n memoOptions?: unknown extends FC ? LRUCache.MemoOptions<K, V, FC>\n : FC extends undefined | void ? LRUCache.MemoOptionsNoContext<K, V>\n : never,\n ): V\n memo(k: K, memoOptions: LRUCache.MemoOptions<K, V, FC> = {}) {\n const memoMethod = this.#memoMethod\n if (!memoMethod) {\n throw new Error('no memoMethod provided to constructor')\n }\n const { context, forceRefresh, ...options } = memoOptions\n const v = this.get(k, options)\n if (!forceRefresh && v !== undefined) return v\n const vv = memoMethod(k, v, {\n options,\n context,\n } as LRUCache.MemoizerOptions<K, V, FC>)\n this.set(k, vv, options)\n return vv\n }\n\n /**\n * Return a value from the cache. Will update the recency of the cache\n * entry found.\n *\n * If the key is not found, get() will return `undefined`.\n */\n get(k: K, getOptions: LRUCache.GetOptions<K, V, FC> = {}) {\n const {\n allowStale = this.allowStale,\n updateAgeOnGet = this.updateAgeOnGet,\n noDeleteOnStaleGet = this.noDeleteOnStaleGet,\n status,\n } = getOptions\n const index = this.#keyMap.get(k)\n if (index !== undefined) {\n const value = this.#valList[index]\n const fetching = this.#isBackgroundFetch(value)\n if (status) this.#statusTTL(status, index)\n if (this.#isStale(index)) {\n if (status) status.get = 'stale'\n // delete only if not an in-flight background fetch\n if (!fetching) {\n if (!noDeleteOnStaleGet) {\n this.#delete(k, 'expire')\n }\n if (status && allowStale) status.returnedStale = true\n return allowStale ? value : undefined\n } else {\n if (\n status &&\n allowStale &&\n value.__staleWhileFetching !== undefined\n ) {\n status.returnedStale = true\n }\n return allowStale ? value.__staleWhileFetching : undefined\n }\n } else {\n if (status) status.get = 'hit'\n // if we're currently fetching it, we don't actually have it yet\n // it's not stale, which means this isn't a staleWhileRefetching.\n // If it's not stale, and fetching, AND has a __staleWhileFetching\n // value, then that means the user fetched with {forceRefresh:true},\n // so it's safe to return that value.\n if (fetching) {\n return value.__staleWhileFetching\n }\n this.#moveToTail(index)\n if (updateAgeOnGet) {\n this.#updateItemAge(index)\n }\n return value\n }\n } else if (status) {\n status.get = 'miss'\n }\n }\n\n #connect(p: Index, n: Index) {\n this.#prev[n] = p\n this.#next[p] = n\n }\n\n #moveToTail(index: Index): void {\n // if tail already, nothing to do\n // if head, move head to next[index]\n // else\n // move next[prev[index]] to next[index] (head has no prev)\n // move prev[next[index]] to prev[index]\n // prev[index] = tail\n // next[tail] = index\n // tail = index\n if (index !== this.#tail) {\n if (index === this.#head) {\n this.#head = this.#next[index] as Index\n } else {\n this.#connect(\n this.#prev[index] as Index,\n this.#next[index] as Index,\n )\n }\n this.#connect(this.#tail, index)\n this.#tail = index\n }\n }\n\n /**\n * Deletes a key out of the cache.\n *\n * Returns true if the key was deleted, false otherwise.\n */\n delete(k: K) {\n return this.#delete(k, 'delete')\n }\n\n #delete(k: K, reason: LRUCache.DisposeReason) {\n let deleted = false\n if (this.#size !== 0) {\n const index = this.#keyMap.get(k)\n if (index !== undefined) {\n if (this.#autopurgeTimers?.[index]) {\n clearTimeout(this.#autopurgeTimers?.[index])\n this.#autopurgeTimers[index] = undefined\n }\n deleted = true\n if (this.#size === 1) {\n this.#clear(reason)\n } else {\n this.#removeItemSize(index)\n const v = this.#valList[index]\n if (this.#isBackgroundFetch(v)) {\n v.__abortController.abort(new Error('deleted'))\n } else if (this.#hasDispose || this.#hasDisposeAfter) {\n if (this.#hasDispose) {\n this.#dispose?.(v as V, k, reason)\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([v as V, k, reason])\n }\n }\n this.#keyMap.delete(k)\n this.#keyList[index] = undefined\n this.#valList[index] = undefined\n if (index === this.#tail) {\n this.#tail = this.#prev[index] as Index\n } else if (index === this.#head) {\n this.#head = this.#next[index] as Index\n } else {\n const pi = this.#prev[index] as number\n this.#next[pi] = this.#next[index] as number\n const ni = this.#next[index] as number\n this.#prev[ni] = this.#prev[index] as number\n }\n this.#size--\n this.#free.push(index)\n }\n }\n }\n if (this.#hasDisposeAfter && this.#disposed?.length) {\n const dt = this.#disposed\n let task: DisposeTask<K, V> | undefined\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task)\n }\n }\n return deleted\n }\n\n /**\n * Clear the cache entirely, throwing away all values.\n */\n clear() {\n return this.#clear('delete')\n }\n #clear(reason: LRUCache.DisposeReason) {\n for (const index of this.#rindexes({ allowStale: true })) {\n const v = this.#valList[index]\n if (this.#isBackgroundFetch(v)) {\n v.__abortController.abort(new Error('deleted'))\n } else {\n const k = this.#keyList[index]\n if (this.#hasDispose) {\n this.#dispose?.(v as V, k as K, reason)\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([v as V, k as K, reason])\n }\n }\n }\n\n this.#keyMap.clear()\n this.#valList.fill(undefined)\n this.#keyList.fill(undefined)\n if (this.#ttls && this.#starts) {\n this.#ttls.fill(0)\n this.#starts.fill(0)\n for (const t of this.#autopurgeTimers ?? []) {\n if (t !== undefined) clearTimeout(t)\n }\n this.#autopurgeTimers?.fill(undefined)\n }\n if (this.#sizes) {\n this.#sizes.fill(0)\n }\n this.#head = 0 as Index\n this.#tail = 0 as Index\n this.#free.length = 0\n this.#calculatedSize = 0\n this.#size = 0\n if (this.#hasDisposeAfter && this.#disposed) {\n const dt = this.#disposed\n let task: DisposeTask<K, V> | undefined\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task)\n }\n }\n }\n}\n"],
5
- "mappings": "AASA,IAAMA,EAEF,OAAO,a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P,KAAKA,GAAO,KAAK,CAAC,EAEpB,KAAKJ,GAAQ,EACb,KAAKC,GAAQ,EACb,KAAKC,GAAM,OAAS,EACpB,KAAKR,GAAkB,EACvB,KAAKD,GAAQ,EACT,KAAKiB,IAAoB,KAAKP,GAAW,CAC3C,IAAMoF,EAAK,KAAKpF,GACZqF,EACJ,KAAQA,EAAOD,GAAI,MAAK,GACtB,KAAKlG,KAAgB,GAAGmG,CAAI,CAEhC,CACF",
6
- "names": ["defaultPerf", "warned", "PROCESS", "emitWarning", "msg", "type", "code", "fn", "AC", "AS", "_", "warnACPolyfill", "reason", "printACPolyfillWarning", "shouldWarn", "TYPE", "isPosInt", "n", "getUintArray", "max", "ZeroArray", "size", "Stack", "_Stack", "#constructing", "HeapCls", "s", "LRUCache", "_LRUCache", "#max", "#maxSize", "#dispose", "#onInsert", "#disposeAfter", "#fetchMethod", "#memoMethod", "#perf", "#size", "#calculatedSize", "#keyMap", "#keyList", "#valList", "#next", "#prev", "#head", "#tail", "#free", "#disposed", "#sizes", "#starts", "#ttls", "#autopurgeTimers", "#hasDispose", "#hasFetchMethod", "#hasDisposeAfter", "#hasOnInsert", "c", "p", "#isBackgroundFetch", "k", "index", "options", "context", "#backgroundFetch", "#moveToTail", "#indexes", "#rindexes", "#isStale", "ttl", "ttlResolution", "ttlAutopurge", "updateAgeOnGet", "updateAgeOnHas", "allowStale", "dispose", "onInsert", "disposeAfter", "noDisposeOnSet", "noUpdateTTL", "maxSize", "maxEntrySize", "sizeCalculation", "fetchMethod", "memoMethod", "noDeleteOnFetchRejection", "noDeleteOnStaleGet", "allowStaleOnFetchRejection", "allowStaleOnFetchAbort", "ignoreFetchAbort", "perf", "UintArray", "#initializeSizeTracking", "#initializeTTLTracking", "key", "ttls", "starts", "purgeTimers", "#setItemTTL", "start", "setPurgetTimer", "#updateItemAge", "t", "#delete", "#statusTTL", "status", "cachedNow", "getNow", "age", "sizes", "#removeItemSize", "#requireSize", "v", "#addItemSize", "#evict", "_i", "_s", "_st", "_k", "_v", "i", "#isValidIndex", "getOptions", "value", "thisp", "deleted", "entry", "remain", "arr", "setOptions", "oldVal", "oldValue", "dt", "task", "val", "free", "head", "hasOptions", "peekOptions", "ac", "signal", "fetchOpts", "cb", "updateCache", "aborted", "ignoreAbort", "proceed", "fetchFail", "bf", "vl", "eb", "er", "allowStaleAborted", "noDelete", "pcall", "res", "rej", "fmp", "b", "fetchOptions", "forceRefresh", "stale", "isStale", "staleVal", "memoOptions", "vv", "fetching", "#connect", "#clear", "pi", "ni"]
7
- }
@@ -1,2 +0,0 @@
1
- export declare const assertValidPattern: (pattern: unknown) => void;
2
- //# sourceMappingURL=assert-valid-pattern.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assert-valid-pattern.d.ts","sourceRoot":"","sources":["../../src/assert-valid-pattern.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAUtD,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"assert-valid-pattern.js","sourceRoot":"","sources":["../../src/assert-valid-pattern.ts"],"names":[],"mappings":";;;AAAA,MAAM,kBAAkB,GAAG,IAAI,GAAG,EAAE,CAAA;AAC7B,MAAM,kBAAkB,GAA+B,CAC5D,OAAgB,EACW,EAAE;IAC7B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,SAAS,CAAC,iBAAiB,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,OAAO,CAAC,MAAM,GAAG,kBAAkB,EAAE,CAAC;QACxC,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAA;IAC5C,CAAC;AACH,CAAC,CAAA;AAVY,QAAA,kBAAkB,sBAU9B","sourcesContent":["const MAX_PATTERN_LENGTH = 1024 * 64\nexport const assertValidPattern: (pattern: unknown) => void = (\n pattern: unknown,\n): asserts pattern is string => {\n if (typeof pattern !== 'string') {\n throw new TypeError('invalid pattern')\n }\n\n if (pattern.length > MAX_PATTERN_LENGTH) {\n throw new TypeError('pattern is too long')\n }\n}\n"]}
@@ -1,22 +0,0 @@
1
- import type { MinimatchOptions, MMRegExp } from './index.js';
2
- export type ExtglobType = '!' | '?' | '+' | '*' | '@';
3
- export declare class AST {
4
- #private;
5
- type: ExtglobType | null;
6
- id: number;
7
- get depth(): number;
8
- constructor(type: ExtglobType | null, parent?: AST, options?: MinimatchOptions);
9
- get hasMagic(): boolean | undefined;
10
- toString(): string;
11
- push(...parts: (string | AST)[]): void;
12
- toJSON(): unknown[];
13
- isStart(): boolean;
14
- isEnd(): boolean;
15
- copyIn(part: AST | string): void;
16
- clone(parent: AST): AST;
17
- static fromGlob(pattern: string, options?: MinimatchOptions): AST;
18
- toMMPattern(): MMRegExp | string;
19
- get options(): MinimatchOptions;
20
- toRegExpSource(allowDot?: boolean): [re: string, body: string, hasMagic: boolean, uflag: boolean];
21
- }
22
- //# sourceMappingURL=ast.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../src/ast.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAwC5D,MAAM,MAAM,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;AAgJrD,qBAAa,GAAG;;IACd,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;IAexB,EAAE,SAAO;IAET,IAAI,KAAK,IAAI,MAAM,CAElB;gBAgBC,IAAI,EAAE,WAAW,GAAG,IAAI,EACxB,MAAM,CAAC,EAAE,GAAG,EACZ,OAAO,GAAE,gBAAqB;IAahC,IAAI,QAAQ,IAAI,OAAO,GAAG,SAAS,CAUlC;IAGD,QAAQ,IAAI,MAAM;IAkDlB,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,GAAG,GAAG,CAAC,EAAE;IAe/B,MAAM;IAkBN,OAAO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AAM,CAAC;oBACN,QAAQ,GAAG,IAAI,CAAA;gBACjB,CAAC;gBACD,SAAQ;YACV,CAAC;YACD,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;gBACd,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,GAAG,IAAA,iCAAU,EAAC,IAAI,EAAE,CAAC,CAAC,CAAA;gBAC7D,IAAI,QAAQ,EAAE,CAAC;oBACb,EAAE,IAAI,GAAG,CAAA;oBACT,KAAK,GAAG,KAAK,IAAI,SAAS,CAAA;oBAC1B,CAAC,IAAI,QAAQ,GAAG,CAAC,CAAA;oBACjB,QAAQ,GAAG,QAAQ,IAAI,KAAK,CAAA;oBAC5B,SAAQ;gBACV,CAAC;YACH,CAAC;YACD,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;gBACd,EAAE,IAAI,KAAK,CAAA;gBACX,QAAQ,GAAG,IAAI,CAAA;gBACf,SAAQ;YACV,CAAC;YACD,EAAE,IAAI,YAAY,CAAC,CAAC,CAAC,CAAA;QACvB,CAAC;QACD,OAAO,CAAC,EAAE,EAAE,IAAA,sBAAQ,EAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;IAChD,CAAC;CACF;AArxBD,kBAqxBC","sourcesContent":["// parse a single path portion\n\nimport { parseClass } from './brace-expressions.js'\nimport type { MinimatchOptions, MMRegExp } from './index.js'\nimport { unescape } from './unescape.js'\n\n// classes [] are handled by the parseClass method\n// for positive extglobs, we sub-parse the contents, and combine,\n// with the appropriate regexp close.\n// for negative extglobs, we sub-parse the contents, but then\n// have to include the rest of the pattern, then the parent, etc.,\n// as the thing that cannot be because RegExp negative lookaheads\n// are different from globs.\n//\n// So for example:\n// a@(i|w!(x|y)z|j)b => ^a(i|w((!?(x|y)zb).*)z|j)b$\n// 1 2 3 4 5 6 1 2 3 46 5 6\n//\n// Assembling the extglob requires not just the negated patterns themselves,\n// but also anything following the negative patterns up to the boundary\n// of the current pattern, plus anything following in the parent pattern.\n//\n//\n// So, first, we parse the string into an AST of extglobs, without turning\n// anything into regexps yet.\n//\n// ['a', {@ [['i'], ['w', {!['x', 'y']}, 'z'], ['j']]}, 'b']\n//\n// Then, for all the negative extglobs, we append whatever comes after in\n// each parent as their tail\n//\n// ['a', {@ [['i'], ['w', {!['x', 'y'], 'z', 'b'}, 'z'], ['j']]}, 'b']\n//\n// Lastly, we turn each of these pieces into a regexp, and join\n//\n// v----- .* because there's more following,\n// v v otherwise, .+ because it must be\n// v v *something* there.\n// ['^a', {@ ['i', 'w(?:(!?(?:x|y).*zb$).*)z', 'j' ]}, 'b$']\n// copy what follows into here--^^^^^\n// ['^a', '(?:i|w(?:(?!(?:x|y).*zb$).*)z|j)', 'b$']\n// ['^a(?:i|w(?:(?!(?:x|y).*zb$).*)z|j)b$']\n\nexport type ExtglobType = '!' | '?' | '+' | '*' | '@'\nconst types = new Set<ExtglobType>(['!', '?', '+', '*', '@'])\nconst isExtglobType = (c: string | null): c is ExtglobType =>\n types.has(c as ExtglobType)\nconst isExtglobAST = (c: AST): c is AST & { type: ExtglobType } =>\n isExtglobType(c.type)\n\n// Map of which extglob types can adopt the children of a nested extglob\n//\n// anything but ! can adopt a matching type:\n// +(a|+(b|c)|d) => +(a|b|c|d)\n// *(a|*(b|c)|d) => *(a|b|c|d)\n// @(a|@(b|c)|d) => @(a|b|c|d)\n// ?(a|?(b|c)|d) => ?(a|b|c|d)\n//\n// * can adopt anything, because 0 or repetition is allowed\n// *(a|?(b|c)|d) => *(a|b|c|d)\n// *(a|+(b|c)|d) => *(a|b|c|d)\n// *(a|@(b|c)|d) => *(a|b|c|d)\n//\n// + can adopt @, because 1 or repetition is allowed\n// +(a|@(b|c)|d) => +(a|b|c|d)\n//\n// + and @ CANNOT adopt *, because 0 would be allowed\n// +(a|*(b|c)|d) => would match \"\", on *(b|c)\n// @(a|*(b|c)|d) => would match \"\", on *(b|c)\n//\n// + and @ CANNOT adopt ?, because 0 would be allowed\n// +(a|?(b|c)|d) => would match \"\", on ?(b|c)\n// @(a|?(b|c)|d) => would match \"\", on ?(b|c)\n//\n// ? can adopt @, because 0 or 1 is allowed\n// ?(a|@(b|c)|d) => ?(a|b|c|d)\n//\n// ? and @ CANNOT adopt * or +, because >1 would be allowed\n// ?(a|*(b|c)|d) => would match bbb on *(b|c)\n// @(a|*(b|c)|d) => would match bbb on *(b|c)\n// ?(a|+(b|c)|d) => would match bbb on +(b|c)\n// @(a|+(b|c)|d) => would match bbb on +(b|c)\n//\n// ! CANNOT adopt ! (nothing else can either)\n// !(a|!(b|c)|d) => !(a|b|c|d) would fail to match on b (not not b|c)\n//\n// ! can adopt @\n// !(a|@(b|c)|d) => !(a|b|c|d)\n//\n// ! CANNOT adopt *\n// !(a|*(b|c)|d) => !(a|b|c|d) would match on bbb, not allowed\n//\n// ! CANNOT adopt +\n// !(a|+(b|c)|d) => !(a|b|c|d) would match on bbb, not allowed\n//\n// ! CANNOT adopt ?\n// x!(a|?(b|c)|d) => x!(a|b|c|d) would fail to match \"x\"\nconst adoptionMap = new Map<ExtglobType, ExtglobType[]>([\n ['!', ['@']],\n ['?', ['?', '@']],\n ['@', ['@']],\n ['*', ['*', '+', '?', '@']],\n ['+', ['+', '@']],\n])\n\n// nested extglobs that can be adopted in, but with the addition of\n// a blank '' element.\nconst adoptionWithSpaceMap = new Map<ExtglobType, ExtglobType[]>([\n ['!', ['?']],\n ['@', ['?']],\n ['+', ['?', '*']],\n])\n\n// union of the previous two maps\nconst adoptionAnyMap = new Map<ExtglobType, ExtglobType[]>([\n ['!', ['?', '@']],\n ['?', ['?', '@']],\n ['@', ['?', '@']],\n ['*', ['*', '+', '?', '@']],\n ['+', ['+', '@', '?', '*']],\n])\n\n// Extglobs that can take over their parent if they are the only child\n// the key is parent, value maps child to resulting extglob parent type\n// '@' is omitted because it's a special case. An `@` extglob with a single\n// member can always be usurped by that subpattern.\nconst usurpMap = new Map<\n ExtglobType,\n Map<ExtglobType | null, ExtglobType | null>\n>([\n ['!', new Map([['!', '@']])],\n [\n '?',\n new Map([\n ['*', '*'],\n ['+', '*'],\n ]),\n ],\n [\n '@',\n new Map([\n ['!', '!'],\n ['?', '?'],\n ['@', '@'],\n ['*', '*'],\n ['+', '+'],\n ]),\n ],\n [\n '+',\n new Map([\n ['?', '*'],\n ['*', '*'],\n ]),\n ],\n])\n\n// Patterns that get prepended to bind to the start of either the\n// entire string, or just a single path portion, to prevent dots\n// and/or traversal patterns, when needed.\n// Exts don't need the ^ or / bit, because the root binds that already.\nconst startNoTraversal = '(?!(?:^|/)\\\\.\\\\.?(?:$|/))'\nconst startNoDot = '(?!\\\\.)'\n\n// characters that indicate a start of pattern needs the \"no dots\" bit,\n// because a dot *might* be matched. ( is not in the list, because in\n// the case of a child extglob, it will handle the prevention itself.\nconst addPatternStart = new Set(['[', '.'])\n// cases where traversal is A-OK, no dot prevention needed\nconst justDots = new Set(['..', '.'])\nconst reSpecials = new Set('().*{}+?[]^$\\\\!')\nconst regExpEscape = (s: string) =>\n s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n\n// any single thing other than /\nconst qmark = '[^/]'\n\n// * => any number of characters\nconst star = qmark + '*?'\n// use + when we need to ensure that *something* matches, because the * is\n// the only thing in the path portion.\nconst starNoEmpty = qmark + '+?'\n\n// remove the \\ chars that we added if we end up doing a nonmagic compare\n// const deslash = (s: string) => s.replace(/\\\\(.)/g, '$1')\n\nlet ID = 0\nexport class AST {\n type: ExtglobType | null\n readonly #root: AST\n\n #hasMagic?: boolean\n #uflag: boolean = false\n #parts: (string | AST)[] = []\n #parent?: AST\n #parentIndex: number\n #negs: AST[]\n #filledNegs: boolean = false\n #options: MinimatchOptions\n #toString?: string\n // set to true if it's an extglob with no children\n // (which really means one child of '')\n #emptyExt: boolean = false\n id = ++ID\n\n get depth(): number {\n return (this.#parent?.depth ?? -1) + 1\n }\n\n [Symbol.for('nodejs.util.inspect.custom')]() {\n return {\n '@@type': 'AST',\n id: this.id,\n type: this.type,\n root: this.#root.id,\n parent: this.#parent?.id,\n depth: this.depth,\n partsLength: this.#parts.length,\n parts: this.#parts,\n }\n }\n\n constructor(\n type: ExtglobType | null,\n parent?: AST,\n options: MinimatchOptions = {},\n ) {\n this.type = type\n // extglobs are inherently magical\n if (type) this.#hasMagic = true\n this.#parent = parent\n this.#root = this.#parent ? this.#parent.#root : this\n this.#options = this.#root === this ? options : this.#root.#options\n this.#negs = this.#root === this ? [] : this.#root.#negs\n if (type === '!' && !this.#root.#filledNegs) this.#negs.push(this)\n this.#parentIndex = this.#parent ? this.#parent.#parts.length : 0\n }\n\n get hasMagic(): boolean | undefined {\n /* c8 ignore start */\n if (this.#hasMagic !== undefined) return this.#hasMagic\n /* c8 ignore stop */\n for (const p of this.#parts) {\n if (typeof p === 'string') continue\n if (p.type || p.hasMagic) return (this.#hasMagic = true)\n }\n // note: will be undefined until we generate the regexp src and find out\n return this.#hasMagic\n }\n\n // reconstructs the pattern\n toString(): string {\n return (\n this.#toString !== undefined ? this.#toString\n : !this.type ?\n (this.#toString = this.#parts.map(p => String(p)).join(''))\n : (this.#toString =\n this.type +\n '(' +\n this.#parts.map(p => String(p)).join('|') +\n ')')\n )\n }\n\n #fillNegs() {\n /* c8 ignore start */\n if (this !== this.#root) throw new Error('should only call on root')\n if (this.#filledNegs) return this\n /* c8 ignore stop */\n\n // call toString() once to fill this out\n this.toString()\n this.#filledNegs = true\n let n: AST | undefined\n while ((n = this.#negs.pop())) {\n if (n.type !== '!') continue\n // walk up the tree, appending everthing that comes AFTER parentIndex\n let p: AST | undefined = n\n let pp = p.#parent\n while (pp) {\n for (\n let i = p.#parentIndex + 1;\n !pp.type && i < pp.#parts.length;\n i++\n ) {\n for (const part of n.#parts) {\n /* c8 ignore start */\n if (typeof part === 'string') {\n throw new Error('string part in extglob AST??')\n }\n /* c8 ignore stop */\n part.copyIn(pp.#parts[i])\n }\n }\n p = pp\n pp = p.#parent\n }\n }\n return this\n }\n\n push(...parts: (string | AST)[]) {\n for (const p of parts) {\n if (p === '') continue\n /* c8 ignore start */\n if (\n typeof p !== 'string' &&\n !(p instanceof AST && p.#parent === this)\n ) {\n throw new Error('invalid part: ' + p)\n }\n /* c8 ignore stop */\n this.#parts.push(p)\n }\n }\n\n toJSON() {\n const ret: unknown[] =\n this.type === null ?\n this.#parts\n .slice()\n .map(p => (typeof p === 'string' ? p : p.toJSON()))\n : [this.type, ...this.#parts.map(p => (p as AST).toJSON())]\n if (this.isStart() && !this.type) ret.unshift([])\n if (\n this.isEnd() &&\n (this === this.#root ||\n (this.#root.#filledNegs && this.#parent?.type === '!'))\n ) {\n ret.push({})\n }\n return ret\n }\n\n isStart(): boolean {\n if (this.#root === this) return true\n // if (this.type) return !!this.#parent?.isStart()\n if (!this.#parent?.isStart()) return false\n if (this.#parentIndex === 0) return true\n // if everything AHEAD of this is a negation, then it's still the \"start\"\n const p = this.#parent\n for (let i = 0; i < this.#parentIndex; i++) {\n const pp = p.#parts[i]\n if (!(pp instanceof AST && pp.type === '!')) {\n return false\n }\n }\n return true\n }\n\n isEnd(): boolean {\n if (this.#root === this) return true\n if (this.#parent?.type === '!') return true\n if (!this.#parent?.isEnd()) return false\n if (!this.type) return this.#parent?.isEnd()\n // if not root, it'll always have a parent\n /* c8 ignore start */\n const pl = this.#parent ? this.#parent.#parts.length : 0\n /* c8 ignore stop */\n return this.#parentIndex === pl - 1\n }\n\n copyIn(part: AST | string) {\n if (typeof part === 'string') this.push(part)\n else this.push(part.clone(this))\n }\n\n clone(parent: AST) {\n const c = new AST(this.type, parent)\n for (const p of this.#parts) {\n c.copyIn(p)\n }\n return c\n }\n\n static #parseAST(\n str: string,\n ast: AST,\n pos: number,\n opt: MinimatchOptions,\n extDepth: number,\n ): number {\n const maxDepth = opt.maxExtglobRecursion ?? 2\n let escaping = false\n let inBrace = false\n let braceStart = -1\n let braceNeg = false\n if (ast.type === null) {\n // outside of a extglob, append until we find a start\n let i = pos\n let acc = ''\n while (i < str.length) {\n const c = str.charAt(i++)\n // still accumulate escapes at this point, but we do ignore\n // starts that are escaped\n if (escaping || c === '\\\\') {\n escaping = !escaping\n acc += c\n continue\n }\n\n if (inBrace) {\n if (i === braceStart + 1) {\n if (c === '^' || c === '!') {\n braceNeg = true\n }\n } else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {\n inBrace = false\n }\n acc += c\n continue\n } else if (c === '[') {\n inBrace = true\n braceStart = i\n braceNeg = false\n acc += c\n continue\n }\n\n // we don't have to check for adoption here, because that's\n // done at the other recursion point.\n const doRecurse =\n !opt.noext &&\n isExtglobType(c) &&\n str.charAt(i) === '(' &&\n extDepth <= maxDepth\n if (doRecurse) {\n ast.push(acc)\n acc = ''\n const ext = new AST(c, ast)\n i = AST.#parseAST(str, ext, i, opt, extDepth + 1)\n ast.push(ext)\n continue\n }\n acc += c\n }\n ast.push(acc)\n return i\n }\n\n // some kind of extglob, pos is at the (\n // find the next | or )\n let i = pos + 1\n let part = new AST(null, ast)\n const parts: AST[] = []\n let acc = ''\n while (i < str.length) {\n const c = str.charAt(i++)\n // still accumulate escapes at this point, but we do ignore\n // starts that are escaped\n if (escaping || c === '\\\\') {\n escaping = !escaping\n acc += c\n continue\n }\n\n if (inBrace) {\n if (i === braceStart + 1) {\n if (c === '^' || c === '!') {\n braceNeg = true\n }\n } else if (c === ']' && !(i === braceStart + 2 && braceNeg)) {\n inBrace = false\n }\n acc += c\n continue\n } else if (c === '[') {\n inBrace = true\n braceStart = i\n braceNeg = false\n acc += c\n continue\n }\n\n const doRecurse =\n !opt.noext &&\n isExtglobType(c) &&\n str.charAt(i) === '(' &&\n /* c8 ignore start - the maxDepth is sufficient here */\n (extDepth <= maxDepth || (ast && ast.#canAdoptType(c)))\n /* c8 ignore stop */\n if (doRecurse) {\n const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1\n part.push(acc)\n acc = ''\n const ext = new AST(c, part)\n part.push(ext)\n i = AST.#parseAST(str, ext, i, opt, extDepth + depthAdd)\n continue\n }\n if (c === '|') {\n part.push(acc)\n acc = ''\n parts.push(part)\n part = new AST(null, ast)\n continue\n }\n if (c === ')') {\n if (acc === '' && ast.#parts.length === 0) {\n ast.#emptyExt = true\n }\n part.push(acc)\n acc = ''\n ast.push(...parts, part)\n return i\n }\n acc += c\n }\n\n // unfinished extglob\n // if we got here, it was a malformed extglob! not an extglob, but\n // maybe something else in there.\n ast.type = null\n ast.#hasMagic = undefined\n ast.#parts = [str.substring(pos - 1)]\n return i\n }\n\n #canAdoptWithSpace(child?: AST | string): child is AST & {\n type: null\n parts: [AST & { type: ExtglobType }]\n } {\n return this.#canAdopt(child, adoptionWithSpaceMap)\n }\n\n #canAdopt(\n child?: AST | string,\n map: Map<ExtglobType, ExtglobType[]> = adoptionMap,\n ): child is AST & {\n type: null\n parts: [AST & { type: ExtglobType }]\n } {\n if (\n !child ||\n typeof child !== 'object' ||\n child.type !== null ||\n child.#parts.length !== 1 ||\n this.type === null\n ) {\n return false\n }\n const gc = child.#parts[0]\n if (!gc || typeof gc !== 'object' || gc.type === null) {\n return false\n }\n return (this as AST & { type: ExtglobType }).#canAdoptType(\n gc.type,\n map,\n )\n }\n #canAdoptType(\n c: string,\n map: Map<ExtglobType, ExtglobType[]> = adoptionAnyMap,\n ): c is ExtglobType {\n return !!map.get(this.type as ExtglobType)?.includes(c as ExtglobType)\n }\n\n #adoptWithSpace(\n this: AST & { type: ExtglobType },\n child: AST & {\n type: null\n },\n index: number,\n ) {\n const gc = child.#parts[0] as AST & { type: ExtglobType }\n const blank = new AST(null, gc, this.options)\n blank.#parts.push('')\n gc.push(blank)\n this.#adopt(child, index)\n }\n\n #adopt(\n child: AST & {\n type: null\n },\n index: number,\n ) {\n const gc = child.#parts[0] as AST & { type: ExtglobType }\n this.#parts.splice(index, 1, ...gc.#parts)\n for (const p of gc.#parts) {\n if (typeof p === 'object') p.#parent = this\n }\n this.#toString = undefined\n }\n\n #canUsurpType(c: string): boolean {\n const m = usurpMap.get(this.type as ExtglobType)\n return !!m?.has(c as ExtglobType)\n }\n\n #canUsurp(child?: AST | string): child is AST & {\n type: null\n parts: [AST & { type: ExtglobType }]\n } {\n if (\n !child ||\n typeof child !== 'object' ||\n child.type !== null ||\n child.#parts.length !== 1 ||\n this.type === null ||\n this.#parts.length !== 1\n ) {\n return false\n }\n const gc = child.#parts[0]\n if (!gc || typeof gc !== 'object' || gc.type === null) {\n return false\n }\n return (this as AST & { type: ExtglobType }).#canUsurpType(gc.type)\n }\n\n #usurp(this: AST & { type: ExtglobType }, child: AST & { type: null }) {\n const m = usurpMap.get(this.type as ExtglobType)\n const gc = child.#parts[0] as AST & { type: ExtglobType }\n const nt = m?.get(gc.type)\n /* c8 ignore start - impossible */\n if (!nt) return false\n /* c8 ignore stop */\n this.#parts = gc.#parts\n for (const p of this.#parts) {\n if (typeof p === 'object') {\n p.#parent = this\n }\n }\n this.type = nt\n this.#toString = undefined\n this.#emptyExt = false\n }\n\n static fromGlob(pattern: string, options: MinimatchOptions = {}) {\n const ast = new AST(null, undefined, options)\n AST.#parseAST(pattern, ast, 0, options, 0)\n return ast\n }\n\n // returns the regular expression if there's magic, or the unescaped\n // string if not.\n toMMPattern(): MMRegExp | string {\n // should only be called on root\n /* c8 ignore start */\n if (this !== this.#root) return this.#root.toMMPattern()\n /* c8 ignore stop */\n const glob = this.toString()\n const [re, body, hasMagic, uflag] = this.toRegExpSource()\n // if we're in nocase mode, and not nocaseMagicOnly, then we do\n // still need a regular expression if we have to case-insensitively\n // match capital/lowercase characters.\n const anyMagic =\n hasMagic ||\n this.#hasMagic ||\n (this.#options.nocase &&\n !this.#options.nocaseMagicOnly &&\n glob.toUpperCase() !== glob.toLowerCase())\n if (!anyMagic) {\n return body\n }\n\n const flags = (this.#options.nocase ? 'i' : '') + (uflag ? 'u' : '')\n return Object.assign(new RegExp(`^${re}$`, flags), {\n _src: re,\n _glob: glob,\n })\n }\n\n get options() {\n return this.#options\n }\n\n // returns the string match, the regexp source, whether there's magic\n // in the regexp (so a regular expression is required) and whether or\n // not the uflag is needed for the regular expression (for posix classes)\n // TODO: instead of injecting the start/end at this point, just return\n // the BODY of the regexp, along with the start/end portions suitable\n // for binding the start/end in either a joined full-path makeRe context\n // (where we bind to (^|/), or a standalone matchPart context (where\n // we bind to ^, and not /). Otherwise slashes get duped!\n //\n // In part-matching mode, the start is:\n // - if not isStart: nothing\n // - if traversal possible, but not allowed: ^(?!\\.\\.?$)\n // - if dots allowed or not possible: ^\n // - if dots possible and not allowed: ^(?!\\.)\n // end is:\n // - if not isEnd(): nothing\n // - else: $\n //\n // In full-path matching mode, we put the slash at the START of the\n // pattern, so start is:\n // - if first pattern: same as part-matching mode\n // - if not isStart(): nothing\n // - if traversal possible, but not allowed: /(?!\\.\\.?(?:$|/))\n // - if dots allowed or not possible: /\n // - if dots possible and not allowed: /(?!\\.)\n // end is:\n // - if last pattern, same as part-matching mode\n // - else nothing\n //\n // Always put the (?:$|/) on negated tails, though, because that has to be\n // there to bind the end of the negated pattern portion, and it's easier to\n // just stick it in now rather than try to inject it later in the middle of\n // the pattern.\n //\n // We can just always return the same end, and leave it up to the caller\n // to know whether it's going to be used joined or in parts.\n // And, if the start is adjusted slightly, can do the same there:\n // - if not isStart: nothing\n // - if traversal possible, but not allowed: (?:/|^)(?!\\.\\.?$)\n // - if dots allowed or not possible: (?:/|^)\n // - if dots possible and not allowed: (?:/|^)(?!\\.)\n //\n // But it's better to have a simpler binding without a conditional, for\n // performance, so probably better to return both start options.\n //\n // Then the caller just ignores the end if it's not the first pattern,\n // and the start always gets applied.\n //\n // But that's always going to be $ if it's the ending pattern, or nothing,\n // so the caller can just attach $ at the end of the pattern when building.\n //\n // So the todo is:\n // - better detect what kind of start is needed\n // - return both flavors of starting pattern\n // - attach $ at the end of the pattern when creating the actual RegExp\n //\n // Ah, but wait, no, that all only applies to the root when the first pattern\n // is not an extglob. If the first pattern IS an extglob, then we need all\n // that dot prevention biz to live in the extglob portions, because eg\n // +(*|.x*) can match .xy but not .yx.\n //\n // So, return the two flavors if it's #root and the first child is not an\n // AST, otherwise leave it to the child AST to handle it, and there,\n // use the (?:^|/) style of start binding.\n //\n // Even simplified further:\n // - Since the start for a join is eg /(?!\\.) and the start for a part\n // is ^(?!\\.), we can just prepend (?!\\.) to the pattern (either root\n // or start or whatever) and prepend ^ or / at the Regexp construction.\n toRegExpSource(\n allowDot?: boolean,\n ): [re: string, body: string, hasMagic: boolean, uflag: boolean] {\n const dot = allowDot ?? !!this.#options.dot\n if (this.#root === this) {\n this.#flatten()\n this.#fillNegs()\n }\n if (!isExtglobAST(this)) {\n const noEmpty =\n this.isStart() &&\n this.isEnd() &&\n !this.#parts.some(s => typeof s !== 'string')\n const src = this.#parts\n .map(p => {\n const [re, _, hasMagic, uflag] =\n typeof p === 'string' ?\n AST.#parseGlob(p, this.#hasMagic, noEmpty)\n : p.toRegExpSource(allowDot)\n this.#hasMagic = this.#hasMagic || hasMagic\n this.#uflag = this.#uflag || uflag\n return re\n })\n .join('')\n\n let start = ''\n if (this.isStart()) {\n if (typeof this.#parts[0] === 'string') {\n // this is the string that will match the start of the pattern,\n // so we need to protect against dots and such.\n\n // '.' and '..' cannot match unless the pattern is that exactly,\n // even if it starts with . or dot:true is set.\n const dotTravAllowed =\n this.#parts.length === 1 && justDots.has(this.#parts[0])\n if (!dotTravAllowed) {\n const aps = addPatternStart\n // check if we have a possibility of matching . or ..,\n // and prevent that.\n const needNoTrav =\n // dots are allowed, and the pattern starts with [ or .\n (dot && aps.has(src.charAt(0))) ||\n // the pattern starts with \\., and then [ or .\n (src.startsWith('\\\\.') && aps.has(src.charAt(2))) ||\n // the pattern starts with \\.\\., and then [ or .\n (src.startsWith('\\\\.\\\\.') && aps.has(src.charAt(4)))\n // no need to prevent dots if it can't match a dot, or if a\n // sub-pattern will be preventing it anyway.\n const needNoDot = !dot && !allowDot && aps.has(src.charAt(0))\n\n start =\n needNoTrav ? startNoTraversal\n : needNoDot ? startNoDot\n : ''\n }\n }\n }\n\n // append the \"end of path portion\" pattern to negation tails\n let end = ''\n if (\n this.isEnd() &&\n this.#root.#filledNegs &&\n this.#parent?.type === '!'\n ) {\n end = '(?:$|\\\\/)'\n }\n const final = start + src + end\n return [\n final,\n unescape(src),\n (this.#hasMagic = !!this.#hasMagic),\n this.#uflag,\n ]\n }\n\n // We need to calculate the body *twice* if it's a repeat pattern\n // at the start, once in nodot mode, then again in dot mode, so a\n // pattern like *(?) can match 'x.y'\n\n const repeated = this.type === '*' || this.type === '+'\n // some kind of extglob\n const start = this.type === '!' ? '(?:(?!(?:' : '(?:'\n let body = (this as AST & { type: ExtglobType }).#partsToRegExp(dot)\n\n if (this.isStart() && this.isEnd() && !body && this.type !== '!') {\n // invalid extglob, has to at least be *something* present, if it's\n // the entire path portion.\n const s = this.toString()\n const me = this as AST\n me.#parts = [s]\n me.type = null\n me.#hasMagic = undefined\n return [s, unescape(this.toString()), false, false]\n }\n\n let bodyDotAllowed =\n !repeated || allowDot || dot || !startNoDot ?\n ''\n : this.#partsToRegExp(true)\n if (bodyDotAllowed === body) {\n bodyDotAllowed = ''\n }\n if (bodyDotAllowed) {\n body = `(?:${body})(?:${bodyDotAllowed})*?`\n }\n\n // an empty !() is exactly equivalent to a starNoEmpty\n let final = ''\n if (this.type === '!' && this.#emptyExt) {\n final = (this.isStart() && !dot ? startNoDot : '') + starNoEmpty\n } else {\n const close =\n this.type === '!' ?\n // !() must match something,but !(x) can match ''\n '))' +\n (this.isStart() && !dot && !allowDot ? startNoDot : '') +\n star +\n ')'\n : this.type === '@' ? ')'\n : this.type === '?' ? ')?'\n : this.type === '+' && bodyDotAllowed ? ')'\n : this.type === '*' && bodyDotAllowed ? `)?`\n : `)${this.type}`\n final = start + body + close\n }\n return [\n final,\n unescape(body),\n (this.#hasMagic = !!this.#hasMagic),\n this.#uflag,\n ]\n }\n\n #flatten() {\n if (!isExtglobAST(this)) {\n for (const p of this.#parts) {\n if (typeof p === 'object') {\n p.#flatten()\n }\n }\n } else {\n // do up to 10 passes to flatten as much as possible\n let iterations = 0\n let done = false\n do {\n done = true\n for (let i = 0; i < this.#parts.length; i++) {\n const c = this.#parts[i]\n if (typeof c === 'object') {\n c.#flatten()\n if (this.#canAdopt(c)) {\n done = false\n this.#adopt(c, i)\n } else if (this.#canAdoptWithSpace(c)) {\n done = false\n ;(this as AST & { type: ExtglobType }).#adoptWithSpace(c, i)\n } else if (this.#canUsurp(c)) {\n done = false\n ;(this as AST & { type: ExtglobType }).#usurp(c)\n }\n }\n }\n } while (!done && ++iterations < 10)\n }\n this.#toString = undefined\n }\n\n #partsToRegExp(this: AST & { type: ExtglobType }, dot: boolean) {\n return this.#parts\n .map(p => {\n // extglob ASTs should only contain parent ASTs\n /* c8 ignore start */\n if (typeof p === 'string') {\n throw new Error('string type in extglob ast??')\n }\n /* c8 ignore stop */\n // can ignore hasMagic, because extglobs are already always magic\n const [re, _, _hasMagic, uflag] = p.toRegExpSource(dot)\n this.#uflag = this.#uflag || uflag\n return re\n })\n .filter(p => !(this.isStart() && this.isEnd()) || !!p)\n .join('|')\n }\n\n static #parseGlob(\n glob: string,\n hasMagic: boolean | undefined,\n noEmpty: boolean = false,\n ): [re: string, body: string, hasMagic: boolean, uflag: boolean] {\n let escaping = false\n let re = ''\n let uflag = false\n // multiple stars that aren't globstars coalesce into one *\n let inStar = false\n for (let i = 0; i < glob.length; i++) {\n const c = glob.charAt(i)\n if (escaping) {\n escaping = false\n re += (reSpecials.has(c) ? '\\\\' : '') + c\n continue\n }\n if (c === '*') {\n if (inStar) continue\n inStar = true\n re += noEmpty && /^[*]+$/.test(glob) ? starNoEmpty : star\n hasMagic = true\n continue\n } else {\n inStar = false\n }\n if (c === '\\\\') {\n if (i === glob.length - 1) {\n re += '\\\\\\\\'\n } else {\n escaping = true\n }\n continue\n }\n if (c === '[') {\n const [src, needUflag, consumed, magic] = parseClass(glob, i)\n if (consumed) {\n re += src\n uflag = uflag || needUflag\n i += consumed - 1\n hasMagic = hasMagic || magic\n continue\n }\n }\n if (c === '?') {\n re += qmark\n hasMagic = true\n continue\n }\n re += regExpEscape(c)\n }\n return [re, unescape(glob), !!hasMagic, uflag]\n }\n}\n"]}
@@ -1,8 +0,0 @@
1
- export type ParseClassResult = [
2
- src: string,
3
- uFlag: boolean,
4
- consumed: number,
5
- hasMagic: boolean
6
- ];
7
- export declare const parseClass: (glob: string, position: number) => ParseClassResult;
8
- //# sourceMappingURL=brace-expressions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"brace-expressions.d.ts","sourceRoot":"","sources":["../../src/brace-expressions.ts"],"names":[],"mappings":"AAgCA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,OAAO;CAClB,CAAA;AAQD,eAAO,MAAM,UAAU,GACrB,MAAM,MAAM,EACZ,UAAU,MAAM,KACf,gBA2HF,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"brace-expressions.js","sourceRoot":"","sources":["../../src/brace-expressions.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,wCAAwC;;;AAExC,8DAA8D;AAC9D,MAAM,YAAY,GAChB;IACE,WAAW,EAAE,CAAC,sBAAsB,EAAE,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,eAAe,EAAE,IAAI,CAAC;IACpC,WAAW,EAAE,CAAC,KAAK,GAAG,QAAQ,GAAG,IAAI,EAAE,KAAK,CAAC;IAC7C,WAAW,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC;IACjC,WAAW,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;IAC9B,WAAW,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;IAC9B,WAAW,EAAE,CAAC,cAAc,EAAE,IAAI,EAAE,IAAI,CAAC;IACzC,WAAW,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;IAC9B,WAAW,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC;IAC7B,WAA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MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG;QAChE,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;YACzB,CAAC,CAAC,KAAK,CAAA;IAET,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,CAAA;AAC1C,CAAC,CAAA;AA9HY,QAAA,UAAU,cA8HtB","sourcesContent":["// translate the various posix character classes into unicode properties\n// this works across all unicode locales\n\n// { <posix class>: [<translation>, /u flag required, negated]\nconst posixClasses: { [k: string]: [e: string, u: boolean, n?: boolean] } =\n {\n '[:alnum:]': ['\\\\p{L}\\\\p{Nl}\\\\p{Nd}', true],\n '[:alpha:]': ['\\\\p{L}\\\\p{Nl}', true],\n '[:ascii:]': ['\\\\x' + '00-\\\\x' + '7f', false],\n '[:blank:]': ['\\\\p{Zs}\\\\t', true],\n '[:cntrl:]': ['\\\\p{Cc}', true],\n '[:digit:]': ['\\\\p{Nd}', true],\n '[:graph:]': ['\\\\p{Z}\\\\p{C}', true, true],\n '[:lower:]': ['\\\\p{Ll}', true],\n '[:print:]': ['\\\\p{C}', true],\n '[:punct:]': ['\\\\p{P}', true],\n '[:space:]': ['\\\\p{Z}\\\\t\\\\r\\\\n\\\\v\\\\f', true],\n '[:upper:]': ['\\\\p{Lu}', true],\n '[:word:]': ['\\\\p{L}\\\\p{Nl}\\\\p{Nd}\\\\p{Pc}', true],\n '[:xdigit:]': ['A-Fa-f0-9', false],\n }\n\n// only need to escape a few things inside of brace expressions\n// escapes: [ \\ ] -\nconst braceEscape = (s: string) => s.replace(/[[\\]\\\\-]/g, '\\\\$&')\n// escape all regexp magic characters\nconst regexpEscape = (s: string) =>\n s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n\n// everything has already been escaped, we just have to join\nconst rangesToString = (ranges: string[]): string => ranges.join('')\n\nexport type ParseClassResult = [\n src: string,\n uFlag: boolean,\n consumed: number,\n hasMagic: boolean,\n]\n\n// takes a glob string at a posix brace expression, and returns\n// an equivalent regular expression source, and boolean indicating\n// whether the /u flag needs to be applied, and the number of chars\n// consumed to parse the character class.\n// This also removes out of order ranges, and returns ($.) if the\n// entire class just no good.\nexport const parseClass = (\n glob: string,\n position: number,\n): ParseClassResult => {\n const pos = position\n /* c8 ignore start */\n if (glob.charAt(pos) !== '[') {\n throw new Error('not in a brace expression')\n }\n /* c8 ignore stop */\n const ranges: string[] = []\n const negs: string[] = []\n\n let i = pos + 1\n let sawStart = false\n let uflag = false\n let escaping = false\n let negate = false\n let endPos = pos\n let rangeStart = ''\n WHILE: while (i < glob.length) {\n const c = glob.charAt(i)\n if ((c === '!' || c === '^') && i === pos + 1) {\n negate = true\n i++\n continue\n }\n\n if (c === ']' && sawStart && !escaping) {\n endPos = i + 1\n break\n }\n\n sawStart = true\n if (c === '\\\\') {\n if (!escaping) {\n escaping = true\n i++\n continue\n }\n // escaped \\ char, fall through and treat like normal char\n }\n if (c === '[' && !escaping) {\n // either a posix class, a collation equivalent, or just a [\n for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {\n if (glob.startsWith(cls, i)) {\n // invalid, [a-[] is fine, but not [a-[:alpha]]\n if (rangeStart) {\n return ['$.', false, glob.length - pos, true]\n }\n i += cls.length\n if (neg) negs.push(unip)\n else ranges.push(unip)\n uflag = uflag || u\n continue WHILE\n }\n }\n }\n\n // now it's just a normal character, effectively\n escaping = false\n if (rangeStart) {\n // throw this range away if it's not valid, but others\n // can still match.\n if (c > rangeStart) {\n ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c))\n } else if (c === rangeStart) {\n ranges.push(braceEscape(c))\n }\n rangeStart = ''\n i++\n continue\n }\n\n // now might be the start of a range.\n // can be either c-d or c-] or c<more...>] or c] at this point\n if (glob.startsWith('-]', i + 1)) {\n ranges.push(braceEscape(c + '-'))\n i += 2\n continue\n }\n if (glob.startsWith('-', i + 1)) {\n rangeStart = c\n i += 2\n continue\n }\n\n // not the start of a range, just a single character\n ranges.push(braceEscape(c))\n i++\n }\n\n if (endPos < i) {\n // didn't see the end of the class, not a valid class,\n // but might still be valid as a literal match.\n return ['', false, 0, false]\n }\n\n // if we got no ranges and no negates, then we have a range that\n // cannot possibly match anything, and that poisons the whole glob\n if (!ranges.length && !negs.length) {\n return ['$.', false, glob.length - pos, true]\n }\n\n // if we got one positive range, and it's a single character, then that's\n // not actually a magic pattern, it's just that one literal character.\n // we should not treat that as \"magic\", we should just return the literal\n // character. [_] is a perfectly valid way to escape glob magic chars.\n if (\n negs.length === 0 &&\n ranges.length === 1 &&\n /^\\\\?.$/.test(ranges[0]) &&\n !negate\n ) {\n const r = ranges[0].length === 2 ? ranges[0].slice(-1) : ranges[0]\n return [regexpEscape(r), false, endPos - pos, false]\n }\n\n const sranges = '[' + (negate ? '^' : '') + rangesToString(ranges) + ']'\n const snegs = '[' + (negate ? '' : '^') + rangesToString(negs) + ']'\n const comb =\n ranges.length && negs.length ? '(' + sranges + '|' + snegs + ')'\n : ranges.length ? sranges\n : snegs\n\n return [comb, uflag, endPos - pos, true]\n}\n"]}
@@ -1,15 +0,0 @@
1
- import type { MinimatchOptions } from './index.js';
2
- /**
3
- * Escape all magic characters in a glob pattern.
4
- *
5
- * If the {@link MinimatchOptions.windowsPathsNoEscape}
6
- * option is used, then characters are escaped by wrapping in `[]`, because
7
- * a magic character wrapped in a character class can only be satisfied by
8
- * that exact character. In this mode, `\` is _not_ escaped, because it is
9
- * not interpreted as a magic character, but instead as a path separator.
10
- *
11
- * If the {@link MinimatchOptions.magicalBraces} option is used,
12
- * then braces (`{` and `}`) will be escaped.
13
- */
14
- export declare const escape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
15
- //# sourceMappingURL=escape.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,GACjB,GAAG,MAAM,EACT,2CAGG,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,GAAG,eAAe,CAAM,WAazE,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"escape.js","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;GAWG;AACI,MAAM,MAAM,GAAG,CACpB,CAAS,EACT,EACE,oBAAoB,GAAG,KAAK,EAC5B,aAAa,GAAG,KAAK,MAC+C,EAAE,EACxE,EAAE;IACF,wDAAwD;IACxD,4DAA4D;IAC5D,sDAAsD;IACtD,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,oBAAoB,CAAC,CAAC;YACzB,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC;YACnC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACzC,CAAC;IACD,OAAO,oBAAoB,CAAC,CAAC;QACzB,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC;QACjC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAA;AACvC,CAAC,CAAA;AAlBY,QAAA,MAAM,UAkBlB","sourcesContent":["import type { MinimatchOptions } from './index.js'\n\n/**\n * Escape all magic characters in a glob pattern.\n *\n * If the {@link MinimatchOptions.windowsPathsNoEscape}\n * option is used, then characters are escaped by wrapping in `[]`, because\n * a magic character wrapped in a character class can only be satisfied by\n * that exact character. In this mode, `\\` is _not_ escaped, because it is\n * not interpreted as a magic character, but instead as a path separator.\n *\n * If the {@link MinimatchOptions.magicalBraces} option is used,\n * then braces (`{` and `}`) will be escaped.\n */\nexport const escape = (\n s: string,\n {\n windowsPathsNoEscape = false,\n magicalBraces = false,\n }: Pick<MinimatchOptions, 'windowsPathsNoEscape' | 'magicalBraces'> = {},\n) => {\n // don't need to escape +@! because we escape the parens\n // that make those magic, and escaping ! as [!] isn't valid,\n // because [!]] is a valid glob class meaning not ']'.\n if (magicalBraces) {\n return windowsPathsNoEscape ?\n s.replace(/[?*()[\\]{}]/g, '[$&]')\n : s.replace(/[?*()[\\]\\\\{}]/g, '\\\\$&')\n }\n return windowsPathsNoEscape ?\n s.replace(/[?*()[\\]]/g, '[$&]')\n : s.replace(/[?*()[\\]\\\\]/g, '\\\\$&')\n}\n"]}