@geekmidas/constructs 10.0.0-alpha.98 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (533) hide show
  1. package/CHANGELOG.md +437 -0
  2. package/README.md +193 -285
  3. package/dist/AWSScheduledFunction-BzGCUbkk.d.mts +117 -0
  4. package/dist/AWSScheduledFunction-BzGCUbkk.d.mts.map +1 -0
  5. package/dist/AWSScheduledFunction-C42adp8A.cjs +266 -0
  6. package/dist/AWSScheduledFunction-C42adp8A.cjs.map +1 -0
  7. package/dist/AWSScheduledFunction-CsNJhXQj.d.cts +117 -0
  8. package/dist/AWSScheduledFunction-CsNJhXQj.d.cts.map +1 -0
  9. package/dist/AWSScheduledFunction-KP6lqbsW.mjs +254 -0
  10. package/dist/AWSScheduledFunction-KP6lqbsW.mjs.map +1 -0
  11. package/dist/{Construct-B1vGBPme.mjs → Construct-BWF5HxaM.mjs} +37 -47
  12. package/dist/Construct-BWF5HxaM.mjs.map +1 -0
  13. package/dist/Construct-JlyQkBkv.d.cts +117 -0
  14. package/dist/Construct-JlyQkBkv.d.cts.map +1 -0
  15. package/dist/{Construct-DUSXuTHP.cjs → Construct-TGIM_E4o.cjs} +88 -67
  16. package/dist/Construct-TGIM_E4o.cjs.map +1 -0
  17. package/dist/Construct-pxwC6fDD.d.mts +117 -0
  18. package/dist/Construct-pxwC6fDD.d.mts.map +1 -0
  19. package/dist/{Endpoint-Du-NwPX2.d.mts → Endpoint-B0P_pEMr.d.mts} +85 -126
  20. package/dist/Endpoint-B0P_pEMr.d.mts.map +1 -0
  21. package/dist/{Endpoint-aCvBMPoH.d.cts → Endpoint-BLZ7r67m.d.cts} +84 -125
  22. package/dist/Endpoint-BLZ7r67m.d.cts.map +1 -0
  23. package/dist/{HonoEndpointAdaptor-PtPlbeKY.mjs → HonoEndpointAdaptor-BMVwx2cz.mjs} +69 -81
  24. package/dist/HonoEndpointAdaptor-BMVwx2cz.mjs.map +1 -0
  25. package/dist/{HonoEndpointAdaptor-zVzVLJEO.cjs → HonoEndpointAdaptor-DPDsDi-D.cjs} +77 -92
  26. package/dist/HonoEndpointAdaptor-DPDsDi-D.cjs.map +1 -0
  27. package/dist/Queue-BL68oDJ-.d.mts +66 -0
  28. package/dist/Queue-BL68oDJ-.d.mts.map +1 -0
  29. package/dist/Queue-DxJ6btRE.d.cts +66 -0
  30. package/dist/Queue-DxJ6btRE.d.cts.map +1 -0
  31. package/dist/Subscriber-BpVhcGhX.d.cts +47 -0
  32. package/dist/Subscriber-BpVhcGhX.d.cts.map +1 -0
  33. package/dist/Subscriber-DF6xsBAJ.d.mts +47 -0
  34. package/dist/Subscriber-DF6xsBAJ.d.mts.map +1 -0
  35. package/dist/Topic-DJXoDeMP.d.cts +60 -0
  36. package/dist/Topic-DJXoDeMP.d.cts.map +1 -0
  37. package/dist/Topic-DxWQBgMN.d.mts +60 -0
  38. package/dist/Topic-DxWQBgMN.d.mts.map +1 -0
  39. package/dist/adaptors/aws.cjs +205 -355
  40. package/dist/adaptors/aws.cjs.map +1 -1
  41. package/dist/adaptors/aws.d.cts +48 -126
  42. package/dist/adaptors/aws.d.cts.map +1 -1
  43. package/dist/adaptors/aws.d.mts +49 -127
  44. package/dist/adaptors/aws.d.mts.map +1 -1
  45. package/dist/adaptors/aws.mjs +178 -325
  46. package/dist/adaptors/aws.mjs.map +1 -1
  47. package/dist/adaptors/hono.cjs +9 -3
  48. package/dist/adaptors/hono.d.cts +15 -7
  49. package/dist/adaptors/hono.d.cts.map +1 -1
  50. package/dist/adaptors/hono.d.mts +17 -9
  51. package/dist/adaptors/hono.d.mts.map +1 -1
  52. package/dist/adaptors/hono.mjs +9 -2
  53. package/dist/adaptors/testing.cjs +209 -831
  54. package/dist/adaptors/testing.cjs.map +1 -1
  55. package/dist/adaptors/testing.d.cts +55 -351
  56. package/dist/adaptors/testing.d.cts.map +1 -1
  57. package/dist/adaptors/testing.d.mts +53 -349
  58. package/dist/adaptors/testing.d.mts.map +1 -1
  59. package/dist/adaptors/testing.mjs +195 -798
  60. package/dist/adaptors/testing.mjs.map +1 -1
  61. package/dist/{clone-UGJpvQnL.cjs → clone-I_WIpiFf.cjs} +8 -7
  62. package/dist/clone-I_WIpiFf.cjs.map +1 -0
  63. package/dist/{clone-EKNovYHu.mjs → clone-pdXxc0t3.mjs} +3 -3
  64. package/dist/clone-pdXxc0t3.mjs.map +1 -0
  65. package/dist/crons/index.cjs +66 -190
  66. package/dist/crons/index.cjs.map +1 -1
  67. package/dist/crons/index.d.cts +35 -70
  68. package/dist/crons/index.d.cts.map +1 -1
  69. package/dist/crons/index.d.mts +32 -70
  70. package/dist/crons/index.d.mts.map +1 -1
  71. package/dist/crons/index.mjs +63 -184
  72. package/dist/crons/index.mjs.map +1 -1
  73. package/dist/endpoints/index.cjs +761 -19
  74. package/dist/endpoints/index.cjs.map +1 -0
  75. package/dist/endpoints/index.d.cts +322 -22
  76. package/dist/endpoints/index.d.cts.map +1 -1
  77. package/dist/endpoints/index.d.mts +321 -22
  78. package/dist/endpoints/index.d.mts.map +1 -1
  79. package/dist/endpoints/index.mjs +751 -6
  80. package/dist/endpoints/index.mjs.map +1 -0
  81. package/dist/functions/index.cjs +5 -2
  82. package/dist/functions/index.d.cts +3 -3
  83. package/dist/functions/index.d.mts +3 -3
  84. package/dist/functions/index.mjs +5 -2
  85. package/dist/{functions-BFizikJU.mjs → functions-EqTloHjo.mjs} +331 -425
  86. package/dist/functions-EqTloHjo.mjs.map +1 -0
  87. package/dist/{functions-CfzJG9hK.cjs → functions-SqtCDc9c.cjs} +370 -459
  88. package/dist/functions-SqtCDc9c.cjs.map +1 -0
  89. package/dist/index-C7iynzLI.d.mts +139 -0
  90. package/dist/index-C7iynzLI.d.mts.map +1 -0
  91. package/dist/index-D4dM_WDY.d.cts +142 -0
  92. package/dist/index-D4dM_WDY.d.cts.map +1 -0
  93. package/dist/index.cjs +3 -6
  94. package/dist/index.d.cts +4 -27
  95. package/dist/index.d.mts +4 -27
  96. package/dist/index.mjs +3 -3
  97. package/dist/{Endpoint-BG4UJ9oA.mjs → lazyAccessors-CCTK19xj.mjs} +1040 -914
  98. package/dist/lazyAccessors-CCTK19xj.mjs.map +1 -0
  99. package/dist/{Endpoint-BoUg8ocM.cjs → lazyAccessors-D04oftGw.cjs} +1127 -960
  100. package/dist/lazyAccessors-D04oftGw.cjs.map +1 -0
  101. package/dist/monitors/index.cjs +49 -0
  102. package/dist/monitors/index.cjs.map +1 -0
  103. package/dist/monitors/index.d.cts +45 -0
  104. package/dist/monitors/index.d.cts.map +1 -0
  105. package/dist/monitors/index.d.mts +45 -0
  106. package/dist/monitors/index.d.mts.map +1 -0
  107. package/dist/monitors/index.mjs +48 -0
  108. package/dist/monitors/index.mjs.map +1 -0
  109. package/dist/processAudits-BJZT5gmy.cjs +92 -0
  110. package/dist/processAudits-BJZT5gmy.cjs.map +1 -0
  111. package/dist/processAudits-CwyaaSQc.mjs +80 -0
  112. package/dist/processAudits-CwyaaSQc.mjs.map +1 -0
  113. package/dist/publisher-BZgcrVPy.cjs +53 -0
  114. package/dist/publisher-BZgcrVPy.cjs.map +1 -0
  115. package/dist/publisher-CnpeMv-r.mjs +41 -0
  116. package/dist/publisher-CnpeMv-r.mjs.map +1 -0
  117. package/dist/queue/index.cjs +114 -6
  118. package/dist/queue/index.cjs.map +1 -0
  119. package/dist/queue/index.d.cts +45 -3
  120. package/dist/queue/index.d.cts.map +1 -0
  121. package/dist/queue/index.d.mts +44 -3
  122. package/dist/queue/index.d.mts.map +1 -0
  123. package/dist/queue/index.mjs +112 -3
  124. package/dist/queue/index.mjs.map +1 -0
  125. package/dist/subscribers/index.cjs +80 -111
  126. package/dist/subscribers/index.cjs.map +1 -1
  127. package/dist/subscribers/index.d.cts +43 -46
  128. package/dist/subscribers/index.d.cts.map +1 -1
  129. package/dist/subscribers/index.d.mts +42 -46
  130. package/dist/subscribers/index.d.mts.map +1 -1
  131. package/dist/subscribers/index.mjs +78 -108
  132. package/dist/subscribers/index.mjs.map +1 -1
  133. package/dist/{lambdaTelemetry-8vnmVZQ5.d.cts → telemetry-C--EgYVr.d.mts} +7 -4
  134. package/dist/telemetry-C--EgYVr.d.mts.map +1 -0
  135. package/dist/{lambdaTelemetry-8vnmVZQ5.d.mts → telemetry-Dqx-D3F7.d.cts} +7 -4
  136. package/dist/telemetry-Dqx-D3F7.d.cts.map +1 -0
  137. package/dist/topic/index.cjs +91 -3
  138. package/dist/topic/index.cjs.map +1 -0
  139. package/dist/topic/index.d.cts +32 -2
  140. package/dist/topic/index.d.cts.map +1 -0
  141. package/dist/topic/index.d.mts +32 -2
  142. package/dist/topic/index.d.mts.map +1 -0
  143. package/dist/topic/index.mjs +89 -2
  144. package/dist/topic/index.mjs.map +1 -0
  145. package/dist/{types-DMuSQeLL.d.cts → types-BdAaYDvd.d.cts} +5 -3
  146. package/dist/types-BdAaYDvd.d.cts.map +1 -0
  147. package/dist/{types-DMuSQeLL.d.mts → types-DNngH0fX.d.mts} +5 -3
  148. package/dist/types-DNngH0fX.d.mts.map +1 -0
  149. package/dist/types.d.cts +1 -1
  150. package/dist/types.d.mts +1 -1
  151. package/dist/types.mjs +0 -1
  152. package/package.json +55 -223
  153. package/src/Construct.ts +209 -0
  154. package/src/__benchmarks__/build-time-optimization.bench.ts +274 -0
  155. package/src/__benchmarks__/endpoint.bench.ts +494 -0
  156. package/src/__benchmarks__/fixtures.ts +241 -0
  157. package/src/__benchmarks__/hono-adaptor.bench.ts +533 -0
  158. package/src/__benchmarks__/hono-server.bench.ts +249 -0
  159. package/src/__benchmarks__/response-builder.bench.ts +428 -0
  160. package/src/__benchmarks__/strategies/strategy-a-lazy-services.ts +319 -0
  161. package/src/__benchmarks__/strategies/strategy-c-middleware.ts +530 -0
  162. package/src/__benchmarks__/strategies/strategy-d-opt-in-events.ts +567 -0
  163. package/src/__tests__/Construct.environment.spec.ts +704 -0
  164. package/src/__tests__/builder-reuse.spec.ts +587 -0
  165. package/src/__tests__/monitor.spec.ts +636 -0
  166. package/src/__tests__/publisher.setting.spec.ts +508 -0
  167. package/src/__tests__/publisher.spec.ts +452 -0
  168. package/src/adaptors/aws.ts +6 -0
  169. package/src/adaptors/hono.ts +1 -0
  170. package/src/adaptors/testing.ts +11 -0
  171. package/src/clone.ts +38 -0
  172. package/src/crons/AWSScheduledFunction.ts +73 -0
  173. package/src/crons/Cron.ts +149 -0
  174. package/src/crons/CronBuilder.ts +261 -0
  175. package/src/crons/__tests__/AWSScheduledFunction.spec.ts +152 -0
  176. package/src/crons/__tests__/Cron.spec.ts +472 -0
  177. package/src/crons/__tests__/CronBuilder.state-isolation.spec.ts +273 -0
  178. package/src/crons/index.ts +12 -0
  179. package/src/endpoints/AmazonApiGatewayEndpointAdaptor.ts +698 -0
  180. package/src/endpoints/AmazonApiGatewayV1EndpointAdaptor.ts +105 -0
  181. package/src/endpoints/AmazonApiGatewayV2EndpointAdaptor.ts +97 -0
  182. package/src/endpoints/Authorizer.ts +152 -0
  183. package/src/endpoints/Endpoint.ts +1287 -0
  184. package/src/endpoints/EndpointBuilder.ts +749 -0
  185. package/src/endpoints/EndpointFactory.ts +1179 -0
  186. package/src/endpoints/HonoEndpointAdaptor.ts +692 -0
  187. package/src/endpoints/MswEndpointAdaptor.ts +226 -0
  188. package/src/endpoints/TestEndpointAdaptor.ts +466 -0
  189. package/src/endpoints/__tests__/AmazonApiGatewayV1EndpointAdaptor.audits.spec.ts +499 -0
  190. package/src/endpoints/__tests__/AmazonApiGatewayV1EndpointAdaptor.events.spec.ts +560 -0
  191. package/src/endpoints/__tests__/AmazonApiGatewayV1EndpointAdaptor.spec.ts +1304 -0
  192. package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.audits.spec.ts +626 -0
  193. package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.events.spec.ts +732 -0
  194. package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.factory-publisher.spec.ts +296 -0
  195. package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.kysely-audit.integration.spec.ts +951 -0
  196. package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.responseType.spec.ts +111 -0
  197. package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.rls.spec.ts +307 -0
  198. package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.spec.ts +629 -0
  199. package/src/endpoints/__tests__/Authorizer.spec.ts +286 -0
  200. package/src/endpoints/__tests__/Endpoint.cookies.spec.ts +207 -0
  201. package/src/endpoints/__tests__/Endpoint.headers.spec.ts +187 -0
  202. package/src/endpoints/__tests__/Endpoint.manifest.spec.ts +175 -0
  203. package/src/endpoints/__tests__/Endpoint.spec.ts +857 -0
  204. package/src/endpoints/__tests__/EndpointBuilder.audit.spec.ts +451 -0
  205. package/src/endpoints/__tests__/EndpointBuilder.responseType.spec.ts +50 -0
  206. package/src/endpoints/__tests__/EndpointBuilder.spec.ts +531 -0
  207. package/src/endpoints/__tests__/EndpointFactory.authorizers.spec.ts +492 -0
  208. package/src/endpoints/__tests__/EndpointFactory.database-auditor.spec.ts +509 -0
  209. package/src/endpoints/__tests__/EndpointFactory.reference-audit.spec.ts +190 -0
  210. package/src/endpoints/__tests__/EndpointFactory.spec.ts +479 -0
  211. package/src/endpoints/__tests__/EndpointFactory.state-isolation.spec.ts +155 -0
  212. package/src/endpoints/__tests__/HonoEndpointAdaptor.audit-transactions.spec.ts +703 -0
  213. package/src/endpoints/__tests__/HonoEndpointAdaptor.audits.spec.ts +632 -0
  214. package/src/endpoints/__tests__/HonoEndpointAdaptor.events.spec.ts +577 -0
  215. package/src/endpoints/__tests__/HonoEndpointAdaptor.kysely-audit.integration.spec.ts +1067 -0
  216. package/src/endpoints/__tests__/HonoEndpointAdaptor.openapi.spec.ts +317 -0
  217. package/src/endpoints/__tests__/HonoEndpointAdaptor.pgboss-publisher.spec.ts +289 -0
  218. package/src/endpoints/__tests__/HonoEndpointAdaptor.responseType.spec.ts +128 -0
  219. package/src/endpoints/__tests__/HonoEndpointAdaptor.spec.ts +1207 -0
  220. package/src/endpoints/__tests__/MswEndpointAdaptor.spec.ts +211 -0
  221. package/src/endpoints/__tests__/ResponseBuilder.spec.ts +235 -0
  222. package/src/endpoints/__tests__/TestEndpointAdaptor.audits.spec.ts +602 -0
  223. package/src/endpoints/__tests__/TestEndpointAdaptor.spec.ts +1044 -0
  224. package/src/endpoints/__tests__/__snapshots__/HonoEndpointAdaptor.spec.ts.snap +54 -0
  225. package/src/endpoints/__tests__/endpoint-types.test.ts +88 -0
  226. package/src/endpoints/__tests__/helpers.spec.ts +37 -0
  227. package/src/endpoints/__tests__/lazyAccessors.spec.ts +330 -0
  228. package/src/endpoints/__tests__/processAudits.spec.ts +631 -0
  229. package/src/endpoints/audit.ts +87 -0
  230. package/src/endpoints/helpers.ts +98 -0
  231. package/src/endpoints/index.ts +42 -0
  232. package/src/endpoints/lazyAccessors.ts +241 -0
  233. package/src/endpoints/parseHonoQuery.ts +16 -0
  234. package/src/endpoints/parseQueryParams.ts +32 -0
  235. package/src/endpoints/processAudits.ts +371 -0
  236. package/src/endpoints/rls.ts +67 -0
  237. package/src/functions/AWSLambdaFunction.ts +374 -0
  238. package/src/functions/BaseFunctionBuilder.ts +212 -0
  239. package/src/functions/Function.ts +238 -0
  240. package/src/functions/FunctionBuilder.ts +381 -0
  241. package/src/functions/FunctionExecutionWrapper.ts +216 -0
  242. package/src/functions/TestFunctionAdaptor.ts +252 -0
  243. package/src/functions/__tests__/AWSLambdaFunctionAdaptor.spec.ts +513 -0
  244. package/src/functions/__tests__/Function.audits.spec.ts +393 -0
  245. package/src/functions/__tests__/Function.spec.ts +477 -0
  246. package/src/functions/__tests__/FunctionBuilder.state-isolation.spec.ts +250 -0
  247. package/src/functions/__tests__/TestFunctionAdaptor.spec.ts +480 -0
  248. package/src/functions/index.ts +12 -0
  249. package/src/index.ts +29 -0
  250. package/src/monitor.ts +145 -0
  251. package/src/monitors/heartbeat.ts +86 -0
  252. package/src/monitors/index.ts +6 -0
  253. package/src/publisher.ts +93 -0
  254. package/src/queue/AWSLambdaQueueAdaptor.ts +162 -0
  255. package/src/queue/Queue.ts +128 -0
  256. package/src/queue/QueueBuilder.ts +115 -0
  257. package/src/queue/TestQueueAdaptor.ts +63 -0
  258. package/src/queue/__tests__/QueueBuilder.spec.ts +137 -0
  259. package/src/queue/index.ts +12 -0
  260. package/src/subscribers/AWSLambdaSubscriberAdaptor.ts +342 -0
  261. package/src/subscribers/Subscriber.ts +117 -0
  262. package/src/subscribers/SubscriberBuilder.ts +183 -0
  263. package/src/subscribers/TestSubscriberAdaptor.ts +133 -0
  264. package/src/subscribers/__tests__/AWSLambdaSubscriberAdaptor.spec.ts +1018 -0
  265. package/src/subscribers/__tests__/Subscriber.spec.ts +430 -0
  266. package/src/subscribers/__tests__/TestSubscriberAdaptor.spec.ts +652 -0
  267. package/src/subscribers/index.ts +6 -0
  268. package/src/telemetry.ts +103 -0
  269. package/src/topic/Topic.ts +103 -0
  270. package/src/topic/TopicBuilder.ts +53 -0
  271. package/src/topic/__tests__/TopicBuilder.spec.ts +82 -0
  272. package/src/topic/index.ts +11 -0
  273. package/src/types.ts +13 -0
  274. package/test.ts +91 -0
  275. package/tsconfig.json +9 -0
  276. package/tsdown.config.ts +35 -0
  277. package/dist/Construct-B1vGBPme.mjs.map +0 -1
  278. package/dist/Construct-BQALFCh2.d.cts +0 -230
  279. package/dist/Construct-BQALFCh2.d.cts.map +0 -1
  280. package/dist/Construct-DUSXuTHP.cjs.map +0 -1
  281. package/dist/Construct-QXnl3VqT.d.mts +0 -230
  282. package/dist/Construct-QXnl3VqT.d.mts.map +0 -1
  283. package/dist/Cron-DI3nKoic.d.cts +0 -45
  284. package/dist/Cron-DI3nKoic.d.cts.map +0 -1
  285. package/dist/Cron-uYAHPnp7.d.mts +0 -45
  286. package/dist/Cron-uYAHPnp7.d.mts.map +0 -1
  287. package/dist/CronBuilder-C0Ek1-RA.cjs +0 -121
  288. package/dist/CronBuilder-C0Ek1-RA.cjs.map +0 -1
  289. package/dist/CronBuilder-DaSUm2Na.d.mts +0 -47
  290. package/dist/CronBuilder-DaSUm2Na.d.mts.map +0 -1
  291. package/dist/CronBuilder-Dmix_Pen.mjs +0 -109
  292. package/dist/CronBuilder-Dmix_Pen.mjs.map +0 -1
  293. package/dist/CronBuilder-g1lZLWyG.d.cts +0 -47
  294. package/dist/CronBuilder-g1lZLWyG.d.cts.map +0 -1
  295. package/dist/Endpoint-BG4UJ9oA.mjs.map +0 -1
  296. package/dist/Endpoint-BoUg8ocM.cjs.map +0 -1
  297. package/dist/Endpoint-Du-NwPX2.d.mts.map +0 -1
  298. package/dist/Endpoint-aCvBMPoH.d.cts.map +0 -1
  299. package/dist/EndpointFactory-BDtsrEvJ.mjs +0 -791
  300. package/dist/EndpointFactory-BDtsrEvJ.mjs.map +0 -1
  301. package/dist/EndpointFactory-DJ7gXLpR.cjs +0 -833
  302. package/dist/EndpointFactory-DJ7gXLpR.cjs.map +0 -1
  303. package/dist/EndpointFactory-DMYdJCOj.d.mts +0 -363
  304. package/dist/EndpointFactory-DMYdJCOj.d.mts.map +0 -1
  305. package/dist/EndpointFactory-I7s1co3Y.d.cts +0 -363
  306. package/dist/EndpointFactory-I7s1co3Y.d.cts.map +0 -1
  307. package/dist/Function-DuqGcbOI.d.mts +0 -76
  308. package/dist/Function-DuqGcbOI.d.mts.map +0 -1
  309. package/dist/Function-Pu-1kKZz.d.cts +0 -76
  310. package/dist/Function-Pu-1kKZz.d.cts.map +0 -1
  311. package/dist/HonoEndpointAdaptor-PtPlbeKY.mjs.map +0 -1
  312. package/dist/HonoEndpointAdaptor-zVzVLJEO.cjs.map +0 -1
  313. package/dist/Queue-A3wfD0it.cjs +0 -109
  314. package/dist/Queue-A3wfD0it.cjs.map +0 -1
  315. package/dist/Queue-D6USGS4q.mjs +0 -104
  316. package/dist/Queue-D6USGS4q.mjs.map +0 -1
  317. package/dist/Queue-DlsHRzUp.d.mts +0 -105
  318. package/dist/Queue-DlsHRzUp.d.mts.map +0 -1
  319. package/dist/Queue-HPyi0e1i.d.cts +0 -105
  320. package/dist/Queue-HPyi0e1i.d.cts.map +0 -1
  321. package/dist/QueueBuilder-BjuF0UBl.cjs +0 -135
  322. package/dist/QueueBuilder-BjuF0UBl.cjs.map +0 -1
  323. package/dist/QueueBuilder-Cue73M4t.mjs +0 -118
  324. package/dist/QueueBuilder-Cue73M4t.mjs.map +0 -1
  325. package/dist/QueueBuilder-OSi6LkV9.d.cts +0 -75
  326. package/dist/QueueBuilder-OSi6LkV9.d.cts.map +0 -1
  327. package/dist/QueueBuilder-QHsnVt1P.d.mts +0 -75
  328. package/dist/QueueBuilder-QHsnVt1P.d.mts.map +0 -1
  329. package/dist/Subscriber-Bpp02cGr.d.cts +0 -61
  330. package/dist/Subscriber-Bpp02cGr.d.cts.map +0 -1
  331. package/dist/Subscriber-CtN9R48-.d.mts +0 -61
  332. package/dist/Subscriber-CtN9R48-.d.mts.map +0 -1
  333. package/dist/SubscriberBuilder-CDy4nHCz.mjs +0 -134
  334. package/dist/SubscriberBuilder-CDy4nHCz.mjs.map +0 -1
  335. package/dist/SubscriberBuilder-CuCMFpYW.d.mts +0 -67
  336. package/dist/SubscriberBuilder-CuCMFpYW.d.mts.map +0 -1
  337. package/dist/SubscriberBuilder-D_owVoHo.cjs +0 -145
  338. package/dist/SubscriberBuilder-D_owVoHo.cjs.map +0 -1
  339. package/dist/SubscriberBuilder-g3fAVWgs.d.cts +0 -67
  340. package/dist/SubscriberBuilder-g3fAVWgs.d.cts.map +0 -1
  341. package/dist/Topic-D74b5cgs.mjs +0 -99
  342. package/dist/Topic-D74b5cgs.mjs.map +0 -1
  343. package/dist/Topic-GHxcU8AG.cjs +0 -104
  344. package/dist/Topic-GHxcU8AG.cjs.map +0 -1
  345. package/dist/auth-BMCJN30Y.d.cts +0 -268
  346. package/dist/auth-BMCJN30Y.d.cts.map +0 -1
  347. package/dist/auth-CcuceLYo.d.mts +0 -268
  348. package/dist/auth-CcuceLYo.d.mts.map +0 -1
  349. package/dist/auth.cjs +0 -433
  350. package/dist/auth.cjs.map +0 -1
  351. package/dist/auth.d.cts +0 -2
  352. package/dist/auth.d.mts +0 -2
  353. package/dist/auth.mjs +0 -426
  354. package/dist/auth.mjs.map +0 -1
  355. package/dist/cache-CXh6GIgb.d.mts +0 -44
  356. package/dist/cache-CXh6GIgb.d.mts.map +0 -1
  357. package/dist/cache-DnGDGly3.d.cts +0 -44
  358. package/dist/cache-DnGDGly3.d.cts.map +0 -1
  359. package/dist/cache.cjs +0 -69
  360. package/dist/cache.cjs.map +0 -1
  361. package/dist/cache.d.cts +0 -2
  362. package/dist/cache.d.mts +0 -2
  363. package/dist/cache.mjs +0 -68
  364. package/dist/cache.mjs.map +0 -1
  365. package/dist/cipher-C1lEFX63.mjs +0 -225
  366. package/dist/cipher-C1lEFX63.mjs.map +0 -1
  367. package/dist/cipher-CVxfwLjk.cjs +0 -332
  368. package/dist/cipher-CVxfwLjk.cjs.map +0 -1
  369. package/dist/clone-EKNovYHu.mjs.map +0 -1
  370. package/dist/clone-UGJpvQnL.cjs.map +0 -1
  371. package/dist/construct-interface-B1AfqRl4.d.cts +0 -162
  372. package/dist/construct-interface-B1AfqRl4.d.cts.map +0 -1
  373. package/dist/construct-interface-DluK3_da.d.mts +0 -162
  374. package/dist/construct-interface-DluK3_da.d.mts.map +0 -1
  375. package/dist/construct-interface.cjs +0 -114
  376. package/dist/construct-interface.cjs.map +0 -1
  377. package/dist/construct-interface.d.cts +0 -2
  378. package/dist/construct-interface.d.mts +0 -2
  379. package/dist/construct-interface.mjs +0 -107
  380. package/dist/construct-interface.mjs.map +0 -1
  381. package/dist/credential.cjs +0 -156
  382. package/dist/credential.cjs.map +0 -1
  383. package/dist/credential.d.cts +0 -86
  384. package/dist/credential.d.cts.map +0 -1
  385. package/dist/credential.d.mts +0 -86
  386. package/dist/credential.d.mts.map +0 -1
  387. package/dist/credential.mjs +0 -152
  388. package/dist/credential.mjs.map +0 -1
  389. package/dist/database/kysely.cjs +0 -4
  390. package/dist/database/kysely.d.cts +0 -2
  391. package/dist/database/kysely.d.mts +0 -2
  392. package/dist/database/kysely.mjs +0 -2
  393. package/dist/email.cjs +0 -72
  394. package/dist/email.cjs.map +0 -1
  395. package/dist/email.d.cts +0 -46
  396. package/dist/email.d.cts.map +0 -1
  397. package/dist/email.d.mts +0 -46
  398. package/dist/email.d.mts.map +0 -1
  399. package/dist/email.mjs +0 -71
  400. package/dist/email.mjs.map +0 -1
  401. package/dist/encryption.cjs +0 -96
  402. package/dist/encryption.cjs.map +0 -1
  403. package/dist/encryption.d.cts +0 -117
  404. package/dist/encryption.d.cts.map +0 -1
  405. package/dist/encryption.d.mts +0 -117
  406. package/dist/encryption.d.mts.map +0 -1
  407. package/dist/encryption.mjs +0 -83
  408. package/dist/encryption.mjs.map +0 -1
  409. package/dist/external-api-MJ8id87V.d.mts +0 -105
  410. package/dist/external-api-MJ8id87V.d.mts.map +0 -1
  411. package/dist/external-api-O107yzZJ.d.cts +0 -105
  412. package/dist/external-api-O107yzZJ.d.cts.map +0 -1
  413. package/dist/external-api.cjs +0 -142
  414. package/dist/external-api.cjs.map +0 -1
  415. package/dist/external-api.d.cts +0 -2
  416. package/dist/external-api.d.mts +0 -2
  417. package/dist/external-api.mjs +0 -139
  418. package/dist/external-api.mjs.map +0 -1
  419. package/dist/file-server.cjs +0 -186
  420. package/dist/file-server.cjs.map +0 -1
  421. package/dist/file-server.d.cts +0 -152
  422. package/dist/file-server.d.cts.map +0 -1
  423. package/dist/file-server.d.mts +0 -152
  424. package/dist/file-server.d.mts.map +0 -1
  425. package/dist/file-server.mjs +0 -184
  426. package/dist/file-server.mjs.map +0 -1
  427. package/dist/functions-BFizikJU.mjs.map +0 -1
  428. package/dist/functions-CfzJG9hK.cjs.map +0 -1
  429. package/dist/index-BuzRvKOQ.d.cts +0 -115
  430. package/dist/index-BuzRvKOQ.d.cts.map +0 -1
  431. package/dist/index-CTkKOer4.d.mts +0 -115
  432. package/dist/index-CTkKOer4.d.mts.map +0 -1
  433. package/dist/index-CeEtxDmK.d.cts +0 -79
  434. package/dist/index-CeEtxDmK.d.cts.map +0 -1
  435. package/dist/index-CeEtxDmK.d.mts +0 -79
  436. package/dist/index-CeEtxDmK.d.mts.map +0 -1
  437. package/dist/index.d.cts.map +0 -1
  438. package/dist/index.d.mts.map +0 -1
  439. package/dist/kms-B-Hm3d5r.cjs +0 -85
  440. package/dist/kms-B-Hm3d5r.cjs.map +0 -1
  441. package/dist/kms-BdUlMJEZ.mjs +0 -85
  442. package/dist/kms-BdUlMJEZ.mjs.map +0 -1
  443. package/dist/kysely-Bii4l6eP.mjs +0 -370
  444. package/dist/kysely-Bii4l6eP.mjs.map +0 -1
  445. package/dist/kysely-CO_Dk43W.cjs +0 -383
  446. package/dist/kysely-CO_Dk43W.cjs.map +0 -1
  447. package/dist/kysely-D0bpzgPs.d.cts +0 -175
  448. package/dist/kysely-D0bpzgPs.d.cts.map +0 -1
  449. package/dist/kysely-DUqC3Ie0.d.mts +0 -175
  450. package/dist/kysely-DUqC3Ie0.d.mts.map +0 -1
  451. package/dist/lambdaTelemetry-8vnmVZQ5.d.cts.map +0 -1
  452. package/dist/lambdaTelemetry-8vnmVZQ5.d.mts.map +0 -1
  453. package/dist/lazyAccessors-CFanua0O.mjs +0 -174
  454. package/dist/lazyAccessors-CFanua0O.mjs.map +0 -1
  455. package/dist/lazyAccessors-hJKGv8Ay.cjs +0 -221
  456. package/dist/lazyAccessors-hJKGv8Ay.cjs.map +0 -1
  457. package/dist/mobile-app.cjs +0 -73
  458. package/dist/mobile-app.cjs.map +0 -1
  459. package/dist/mobile-app.d.cts +0 -61
  460. package/dist/mobile-app.d.cts.map +0 -1
  461. package/dist/mobile-app.d.mts +0 -61
  462. package/dist/mobile-app.d.mts.map +0 -1
  463. package/dist/mobile-app.mjs +0 -72
  464. package/dist/mobile-app.mjs.map +0 -1
  465. package/dist/object-storage.cjs +0 -56
  466. package/dist/object-storage.cjs.map +0 -1
  467. package/dist/object-storage.d.cts +0 -32
  468. package/dist/object-storage.d.cts.map +0 -1
  469. package/dist/object-storage.d.mts +0 -32
  470. package/dist/object-storage.d.mts.map +0 -1
  471. package/dist/object-storage.mjs +0 -55
  472. package/dist/object-storage.mjs.map +0 -1
  473. package/dist/processAudits-BRRVVHUB.mjs +0 -131
  474. package/dist/processAudits-BRRVVHUB.mjs.map +0 -1
  475. package/dist/processAudits-DasOZjPl.cjs +0 -154
  476. package/dist/processAudits-DasOZjPl.cjs.map +0 -1
  477. package/dist/rest-api.cjs +0 -216
  478. package/dist/rest-api.cjs.map +0 -1
  479. package/dist/rest-api.d.cts +0 -241
  480. package/dist/rest-api.d.cts.map +0 -1
  481. package/dist/rest-api.d.mts +0 -241
  482. package/dist/rest-api.d.mts.map +0 -1
  483. package/dist/rest-api.mjs +0 -215
  484. package/dist/rest-api.mjs.map +0 -1
  485. package/dist/rolldown-runtime-y5ARvAq5.cjs +0 -35
  486. package/dist/runSubscriber-BHvJ8POr.mjs +0 -109
  487. package/dist/runSubscriber-BHvJ8POr.mjs.map +0 -1
  488. package/dist/runSubscriber-D8nLXIv1.cjs +0 -126
  489. package/dist/runSubscriber-D8nLXIv1.cjs.map +0 -1
  490. package/dist/shutdown-BMJmAhSt.cjs +0 -38
  491. package/dist/shutdown-BMJmAhSt.cjs.map +0 -1
  492. package/dist/shutdown-C7xa8x9S.mjs +0 -27
  493. package/dist/shutdown-C7xa8x9S.mjs.map +0 -1
  494. package/dist/site.cjs +0 -74
  495. package/dist/site.cjs.map +0 -1
  496. package/dist/site.d.cts +0 -104
  497. package/dist/site.d.cts.map +0 -1
  498. package/dist/site.d.mts +0 -104
  499. package/dist/site.d.mts.map +0 -1
  500. package/dist/site.mjs +0 -73
  501. package/dist/site.mjs.map +0 -1
  502. package/dist/stages-BSCF19o2.d.cts +0 -56
  503. package/dist/stages-BSCF19o2.d.cts.map +0 -1
  504. package/dist/stages-BSCF19o2.d.mts +0 -56
  505. package/dist/stages-BSCF19o2.d.mts.map +0 -1
  506. package/dist/surfaceEnv-CNimK76p.cjs +0 -56
  507. package/dist/surfaceEnv-CNimK76p.cjs.map +0 -1
  508. package/dist/surfaceEnv-wMT5QzgZ.mjs +0 -45
  509. package/dist/surfaceEnv-wMT5QzgZ.mjs.map +0 -1
  510. package/dist/telemetry-B48RLjyk.d.cts +0 -40
  511. package/dist/telemetry-B48RLjyk.d.cts.map +0 -1
  512. package/dist/telemetry-DRtT1_0A.d.mts +0 -40
  513. package/dist/telemetry-DRtT1_0A.d.mts.map +0 -1
  514. package/dist/telemetry.cjs +0 -56
  515. package/dist/telemetry.cjs.map +0 -1
  516. package/dist/telemetry.d.cts +0 -2
  517. package/dist/telemetry.d.mts +0 -2
  518. package/dist/telemetry.mjs +0 -55
  519. package/dist/telemetry.mjs.map +0 -1
  520. package/dist/tracing-CxaZ98IB.mjs +0 -110
  521. package/dist/tracing-CxaZ98IB.mjs.map +0 -1
  522. package/dist/tracing-DPMidF_r.cjs +0 -127
  523. package/dist/tracing-DPMidF_r.cjs.map +0 -1
  524. package/dist/types-DMuSQeLL.d.cts.map +0 -1
  525. package/dist/types-DMuSQeLL.d.mts.map +0 -1
  526. package/dist/worker.cjs +0 -191
  527. package/dist/worker.cjs.map +0 -1
  528. package/dist/worker.d.cts +0 -171
  529. package/dist/worker.d.cts.map +0 -1
  530. package/dist/worker.d.mts +0 -171
  531. package/dist/worker.d.mts.map +0 -1
  532. package/dist/worker.mjs +0 -190
  533. package/dist/worker.mjs.map +0 -1
@@ -1,10 +1,11 @@
1
- const require_rolldown_runtime = require("./rolldown-runtime-y5ARvAq5.cjs");
2
- require("./Construct-DUSXuTHP.cjs");
3
- const require_functions = require("./functions-CfzJG9hK.cjs");
4
- let _geekmidas_schema_conversion = require("@geekmidas/schema/conversion");
5
- let _geekmidas_schema_openapi = require("@geekmidas/schema/openapi");
6
- //#region ../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js
7
- var require_lodash_pick = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
1
+ const require_Construct = require('./Construct-TGIM_E4o.cjs');
2
+ const require_functions = require('./functions-SqtCDc9c.cjs');
3
+ const __geekmidas_schema_conversion = require_Construct.__toESM(require("@geekmidas/schema/conversion"));
4
+ const __geekmidas_schema_openapi = require_Construct.__toESM(require("@geekmidas/schema/openapi"));
5
+ const hono_cookie = require_Construct.__toESM(require("hono/cookie"));
6
+
7
+ //#region ../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js
8
+ var require_lodash$1 = require_Construct.__commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js"(exports, module) {
8
9
  /**
9
10
  * lodash (Custom Build) <https://lodash.com/>
10
11
  * Build: `lodash modularize exports="npm" -o ./`
@@ -13,943 +14,988 @@ var require_lodash_pick = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin
13
14
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
14
15
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
15
16
  */
17
+ /** Used as the `TypeError` message for "Functions" methods. */
18
+ var FUNC_ERROR_TEXT = "Expected a function";
19
+ /** Used to stand-in for `undefined` hash values. */
20
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
16
21
  /** Used as references for various `Number` constants. */
17
- var MAX_SAFE_INTEGER = 9007199254740991;
22
+ var INFINITY$1 = Infinity, MAX_SAFE_INTEGER$1 = 9007199254740991;
18
23
  /** `Object#toString` result references. */
19
- var argsTag = "[object Arguments]";
20
- var funcTag = "[object Function]";
21
- var genTag = "[object GeneratorFunction]";
22
- var symbolTag = "[object Symbol]";
24
+ var funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", symbolTag$1 = "[object Symbol]";
25
+ /** Used to match property names within property paths. */
26
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
27
+ /**
28
+ * Used to match `RegExp`
29
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
30
+ */
31
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
32
+ /** Used to match backslashes in property paths. */
33
+ var reEscapeChar = /\\(\\)?/g;
34
+ /** Used to detect host constructors (Safari). */
35
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
36
+ /** Used to detect unsigned integer values. */
37
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
23
38
  /** Detect free variable `global` from Node.js. */
24
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
39
+ var freeGlobal$1 = typeof global == "object" && global && global.Object === Object && global;
25
40
  /** Detect free variable `self`. */
26
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
41
+ var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
27
42
  /** Used as a reference to the global object. */
28
- var root = freeGlobal || freeSelf || Function("return this")();
43
+ var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
29
44
  /**
30
- * A faster alternative to `Function#apply`, this function invokes `func`
31
- * with the `this` binding of `thisArg` and the arguments of `args`.
45
+ * Gets the value at `key` of `object`.
32
46
  *
33
47
  * @private
34
- * @param {Function} func The function to invoke.
35
- * @param {*} thisArg The `this` binding of `func`.
36
- * @param {Array} args The arguments to invoke `func` with.
37
- * @returns {*} Returns the result of `func`.
48
+ * @param {Object} [object] The object to query.
49
+ * @param {string} key The key of the property to get.
50
+ * @returns {*} Returns the property value.
38
51
  */
39
- function apply(func, thisArg, args) {
40
- switch (args.length) {
41
- case 0: return func.call(thisArg);
42
- case 1: return func.call(thisArg, args[0]);
43
- case 2: return func.call(thisArg, args[0], args[1]);
44
- case 3: return func.call(thisArg, args[0], args[1], args[2]);
45
- }
46
- return func.apply(thisArg, args);
52
+ function getValue(object, key) {
53
+ return object == null ? void 0 : object[key];
47
54
  }
48
55
  /**
49
- * A specialized version of `_.map` for arrays without support for iteratee
50
- * shorthands.
56
+ * Checks if `value` is a host object in IE < 9.
51
57
  *
52
58
  * @private
53
- * @param {Array} [array] The array to iterate over.
54
- * @param {Function} iteratee The function invoked per iteration.
55
- * @returns {Array} Returns the new mapped array.
59
+ * @param {*} value The value to check.
60
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
56
61
  */
57
- function arrayMap(array, iteratee) {
58
- var index = -1, length = array ? array.length : 0, result = Array(length);
59
- while (++index < length) result[index] = iteratee(array[index], index, array);
62
+ function isHostObject(value) {
63
+ var result = false;
64
+ if (value != null && typeof value.toString != "function") try {
65
+ result = !!(value + "");
66
+ } catch (e) {}
60
67
  return result;
61
68
  }
62
- /**
63
- * Appends the elements of `values` to `array`.
64
- *
65
- * @private
66
- * @param {Array} array The array to modify.
67
- * @param {Array} values The values to append.
68
- * @returns {Array} Returns `array`.
69
- */
70
- function arrayPush(array, values) {
71
- var index = -1, length = values.length, offset = array.length;
72
- while (++index < length) array[offset + index] = values[index];
73
- return array;
74
- }
75
69
  /** Used for built-in method references. */
76
- var objectProto = Object.prototype;
70
+ var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto$1 = Object.prototype;
71
+ /** Used to detect overreaching core-js shims. */
72
+ var coreJsData = root$1["__core-js_shared__"];
73
+ /** Used to detect methods masquerading as native. */
74
+ var maskSrcKey = function() {
75
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
76
+ return uid ? "Symbol(src)_1." + uid : "";
77
+ }();
78
+ /** Used to resolve the decompiled source of functions. */
79
+ var funcToString = funcProto.toString;
77
80
  /** Used to check objects for own properties. */
78
- var hasOwnProperty = objectProto.hasOwnProperty;
81
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
79
82
  /**
80
83
  * Used to resolve the
81
84
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
82
85
  * of values.
83
86
  */
84
- var objectToString = objectProto.toString;
87
+ var objectToString$1 = objectProto$1.toString;
88
+ /** Used to detect if a method is native. */
89
+ var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$1).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
85
90
  /** Built-in value references. */
86
- var Symbol = root.Symbol;
87
- var propertyIsEnumerable = objectProto.propertyIsEnumerable;
88
- var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
89
- var nativeMax = Math.max;
91
+ var Symbol$1 = root$1.Symbol, splice = arrayProto.splice;
92
+ var Map$1 = getNative(root$1, "Map"), nativeCreate = getNative(Object, "create");
93
+ /** Used to convert symbols to primitives and strings. */
94
+ var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
90
95
  /**
91
- * The base implementation of `_.flatten` with support for restricting flattening.
96
+ * Creates a hash object.
92
97
  *
93
98
  * @private
94
- * @param {Array} array The array to flatten.
95
- * @param {number} depth The maximum recursion depth.
96
- * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
97
- * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
98
- * @param {Array} [result=[]] The initial result value.
99
- * @returns {Array} Returns the new flattened array.
99
+ * @constructor
100
+ * @param {Array} [entries] The key-value pairs to cache.
100
101
  */
101
- function baseFlatten(array, depth, predicate, isStrict, result) {
102
- var index = -1, length = array.length;
103
- predicate || (predicate = isFlattenable);
104
- result || (result = []);
102
+ function Hash(entries) {
103
+ var index = -1, length = entries ? entries.length : 0;
104
+ this.clear();
105
105
  while (++index < length) {
106
- var value = array[index];
107
- if (depth > 0 && predicate(value)) {
108
- if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
109
- else arrayPush(result, value);
110
- } else if (!isStrict) result[result.length] = value;
106
+ var entry = entries[index];
107
+ this.set(entry[0], entry[1]);
111
108
  }
112
- return result;
113
109
  }
114
110
  /**
115
- * The base implementation of `_.pick` without support for individual
116
- * property identifiers.
111
+ * Removes all key-value entries from the hash.
117
112
  *
118
113
  * @private
119
- * @param {Object} object The source object.
120
- * @param {string[]} props The property identifiers to pick.
121
- * @returns {Object} Returns the new object.
114
+ * @name clear
115
+ * @memberOf Hash
122
116
  */
123
- function basePick(object, props) {
124
- object = Object(object);
125
- return basePickBy(object, props, function(value, key) {
126
- return key in object;
127
- });
117
+ function hashClear() {
118
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
128
119
  }
129
120
  /**
130
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
121
+ * Removes `key` and its value from the hash.
131
122
  *
132
123
  * @private
133
- * @param {Object} object The source object.
134
- * @param {string[]} props The property identifiers to pick from.
135
- * @param {Function} predicate The function invoked per property.
136
- * @returns {Object} Returns the new object.
124
+ * @name delete
125
+ * @memberOf Hash
126
+ * @param {Object} hash The hash to modify.
127
+ * @param {string} key The key of the value to remove.
128
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
137
129
  */
138
- function basePickBy(object, props, predicate) {
139
- var index = -1, length = props.length, result = {};
140
- while (++index < length) {
141
- var key = props[index], value = object[key];
142
- if (predicate(value, key)) result[key] = value;
143
- }
144
- return result;
130
+ function hashDelete(key) {
131
+ return this.has(key) && delete this.__data__[key];
145
132
  }
146
133
  /**
147
- * The base implementation of `_.rest` which doesn't validate or coerce arguments.
134
+ * Gets the hash value for `key`.
148
135
  *
149
136
  * @private
150
- * @param {Function} func The function to apply a rest parameter to.
151
- * @param {number} [start=func.length-1] The start position of the rest parameter.
152
- * @returns {Function} Returns the new function.
137
+ * @name get
138
+ * @memberOf Hash
139
+ * @param {string} key The key of the value to get.
140
+ * @returns {*} Returns the entry value.
153
141
  */
154
- function baseRest(func, start) {
155
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
156
- return function() {
157
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
158
- while (++index < length) array[index] = args[start + index];
159
- index = -1;
160
- var otherArgs = Array(start + 1);
161
- while (++index < start) otherArgs[index] = args[index];
162
- otherArgs[start] = array;
163
- return apply(func, this, otherArgs);
164
- };
142
+ function hashGet(key) {
143
+ var data = this.__data__;
144
+ if (nativeCreate) {
145
+ var result = data[key];
146
+ return result === HASH_UNDEFINED ? void 0 : result;
147
+ }
148
+ return hasOwnProperty$1.call(data, key) ? data[key] : void 0;
165
149
  }
166
150
  /**
167
- * Checks if `value` is a flattenable `arguments` object or array.
151
+ * Checks if a hash value for `key` exists.
168
152
  *
169
153
  * @private
170
- * @param {*} value The value to check.
171
- * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
154
+ * @name has
155
+ * @memberOf Hash
156
+ * @param {string} key The key of the entry to check.
157
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
172
158
  */
173
- function isFlattenable(value) {
174
- return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
159
+ function hashHas(key) {
160
+ var data = this.__data__;
161
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
175
162
  }
176
163
  /**
177
- * Converts `value` to a string key if it's not a string or symbol.
164
+ * Sets the hash `key` to `value`.
178
165
  *
179
166
  * @private
180
- * @param {*} value The value to inspect.
181
- * @returns {string|symbol} Returns the key.
167
+ * @name set
168
+ * @memberOf Hash
169
+ * @param {string} key The key of the value to set.
170
+ * @param {*} value The value to set.
171
+ * @returns {Object} Returns the hash instance.
182
172
  */
183
- function toKey(value) {
184
- if (typeof value == "string" || isSymbol(value)) return value;
185
- var result = value + "";
186
- return result == "0" && 1 / value == -Infinity ? "-0" : result;
173
+ function hashSet(key, value) {
174
+ var data = this.__data__;
175
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
176
+ return this;
187
177
  }
178
+ Hash.prototype.clear = hashClear;
179
+ Hash.prototype["delete"] = hashDelete;
180
+ Hash.prototype.get = hashGet;
181
+ Hash.prototype.has = hashHas;
182
+ Hash.prototype.set = hashSet;
188
183
  /**
189
- * Checks if `value` is likely an `arguments` object.
190
- *
191
- * @static
192
- * @memberOf _
193
- * @since 0.1.0
194
- * @category Lang
195
- * @param {*} value The value to check.
196
- * @returns {boolean} Returns `true` if `value` is an `arguments` object,
197
- * else `false`.
198
- * @example
199
- *
200
- * _.isArguments(function() { return arguments; }());
201
- * // => true
184
+ * Creates an list cache object.
202
185
  *
203
- * _.isArguments([1, 2, 3]);
204
- * // => false
186
+ * @private
187
+ * @constructor
188
+ * @param {Array} [entries] The key-value pairs to cache.
205
189
  */
206
- function isArguments(value) {
207
- return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
190
+ function ListCache(entries) {
191
+ var index = -1, length = entries ? entries.length : 0;
192
+ this.clear();
193
+ while (++index < length) {
194
+ var entry = entries[index];
195
+ this.set(entry[0], entry[1]);
196
+ }
208
197
  }
209
198
  /**
210
- * Checks if `value` is classified as an `Array` object.
211
- *
212
- * @static
213
- * @memberOf _
214
- * @since 0.1.0
215
- * @category Lang
216
- * @param {*} value The value to check.
217
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
218
- * @example
219
- *
220
- * _.isArray([1, 2, 3]);
221
- * // => true
222
- *
223
- * _.isArray(document.body.children);
224
- * // => false
225
- *
226
- * _.isArray('abc');
227
- * // => false
199
+ * Removes all key-value entries from the list cache.
228
200
  *
229
- * _.isArray(_.noop);
230
- * // => false
201
+ * @private
202
+ * @name clear
203
+ * @memberOf ListCache
231
204
  */
232
- var isArray = Array.isArray;
205
+ function listCacheClear() {
206
+ this.__data__ = [];
207
+ }
233
208
  /**
234
- * Checks if `value` is array-like. A value is considered array-like if it's
235
- * not a function and has a `value.length` that's an integer greater than or
236
- * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
237
- *
238
- * @static
239
- * @memberOf _
240
- * @since 4.0.0
241
- * @category Lang
242
- * @param {*} value The value to check.
243
- * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
244
- * @example
245
- *
246
- * _.isArrayLike([1, 2, 3]);
247
- * // => true
248
- *
249
- * _.isArrayLike(document.body.children);
250
- * // => true
251
- *
252
- * _.isArrayLike('abc');
253
- * // => true
209
+ * Removes `key` and its value from the list cache.
254
210
  *
255
- * _.isArrayLike(_.noop);
256
- * // => false
211
+ * @private
212
+ * @name delete
213
+ * @memberOf ListCache
214
+ * @param {string} key The key of the value to remove.
215
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
257
216
  */
258
- function isArrayLike(value) {
259
- return value != null && isLength(value.length) && !isFunction(value);
217
+ function listCacheDelete(key) {
218
+ var data = this.__data__, index = assocIndexOf(data, key);
219
+ if (index < 0) return false;
220
+ var lastIndex = data.length - 1;
221
+ if (index == lastIndex) data.pop();
222
+ else splice.call(data, index, 1);
223
+ return true;
260
224
  }
261
225
  /**
262
- * This method is like `_.isArrayLike` except that it also checks if `value`
263
- * is an object.
264
- *
265
- * @static
266
- * @memberOf _
267
- * @since 4.0.0
268
- * @category Lang
269
- * @param {*} value The value to check.
270
- * @returns {boolean} Returns `true` if `value` is an array-like object,
271
- * else `false`.
272
- * @example
273
- *
274
- * _.isArrayLikeObject([1, 2, 3]);
275
- * // => true
276
- *
277
- * _.isArrayLikeObject(document.body.children);
278
- * // => true
279
- *
280
- * _.isArrayLikeObject('abc');
281
- * // => false
226
+ * Gets the list cache value for `key`.
282
227
  *
283
- * _.isArrayLikeObject(_.noop);
284
- * // => false
228
+ * @private
229
+ * @name get
230
+ * @memberOf ListCache
231
+ * @param {string} key The key of the value to get.
232
+ * @returns {*} Returns the entry value.
285
233
  */
286
- function isArrayLikeObject(value) {
287
- return isObjectLike(value) && isArrayLike(value);
234
+ function listCacheGet(key) {
235
+ var data = this.__data__, index = assocIndexOf(data, key);
236
+ return index < 0 ? void 0 : data[index][1];
288
237
  }
289
238
  /**
290
- * Checks if `value` is classified as a `Function` object.
291
- *
292
- * @static
293
- * @memberOf _
294
- * @since 0.1.0
295
- * @category Lang
296
- * @param {*} value The value to check.
297
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
298
- * @example
299
- *
300
- * _.isFunction(_);
301
- * // => true
239
+ * Checks if a list cache value for `key` exists.
302
240
  *
303
- * _.isFunction(/abc/);
304
- * // => false
241
+ * @private
242
+ * @name has
243
+ * @memberOf ListCache
244
+ * @param {string} key The key of the entry to check.
245
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
305
246
  */
306
- function isFunction(value) {
307
- var tag = isObject(value) ? objectToString.call(value) : "";
308
- return tag == funcTag || tag == genTag;
247
+ function listCacheHas(key) {
248
+ return assocIndexOf(this.__data__, key) > -1;
309
249
  }
310
250
  /**
311
- * Checks if `value` is a valid array-like length.
312
- *
313
- * **Note:** This method is loosely based on
314
- * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
315
- *
316
- * @static
317
- * @memberOf _
318
- * @since 4.0.0
319
- * @category Lang
320
- * @param {*} value The value to check.
321
- * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
322
- * @example
323
- *
324
- * _.isLength(3);
325
- * // => true
326
- *
327
- * _.isLength(Number.MIN_VALUE);
328
- * // => false
329
- *
330
- * _.isLength(Infinity);
331
- * // => false
251
+ * Sets the list cache `key` to `value`.
332
252
  *
333
- * _.isLength('3');
334
- * // => false
253
+ * @private
254
+ * @name set
255
+ * @memberOf ListCache
256
+ * @param {string} key The key of the value to set.
257
+ * @param {*} value The value to set.
258
+ * @returns {Object} Returns the list cache instance.
335
259
  */
336
- function isLength(value) {
337
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
260
+ function listCacheSet(key, value) {
261
+ var data = this.__data__, index = assocIndexOf(data, key);
262
+ if (index < 0) data.push([key, value]);
263
+ else data[index][1] = value;
264
+ return this;
338
265
  }
266
+ ListCache.prototype.clear = listCacheClear;
267
+ ListCache.prototype["delete"] = listCacheDelete;
268
+ ListCache.prototype.get = listCacheGet;
269
+ ListCache.prototype.has = listCacheHas;
270
+ ListCache.prototype.set = listCacheSet;
339
271
  /**
340
- * Checks if `value` is the
341
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
342
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
343
- *
344
- * @static
345
- * @memberOf _
346
- * @since 0.1.0
347
- * @category Lang
348
- * @param {*} value The value to check.
349
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
350
- * @example
351
- *
352
- * _.isObject({});
353
- * // => true
354
- *
355
- * _.isObject([1, 2, 3]);
356
- * // => true
357
- *
358
- * _.isObject(_.noop);
359
- * // => true
272
+ * Creates a map cache object to store key-value pairs.
360
273
  *
361
- * _.isObject(null);
362
- * // => false
274
+ * @private
275
+ * @constructor
276
+ * @param {Array} [entries] The key-value pairs to cache.
363
277
  */
364
- function isObject(value) {
365
- var type = typeof value;
366
- return !!value && (type == "object" || type == "function");
278
+ function MapCache(entries) {
279
+ var index = -1, length = entries ? entries.length : 0;
280
+ this.clear();
281
+ while (++index < length) {
282
+ var entry = entries[index];
283
+ this.set(entry[0], entry[1]);
284
+ }
367
285
  }
368
286
  /**
369
- * Checks if `value` is object-like. A value is object-like if it's not `null`
370
- * and has a `typeof` result of "object".
371
- *
372
- * @static
373
- * @memberOf _
374
- * @since 4.0.0
375
- * @category Lang
376
- * @param {*} value The value to check.
377
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
378
- * @example
379
- *
380
- * _.isObjectLike({});
381
- * // => true
382
- *
383
- * _.isObjectLike([1, 2, 3]);
384
- * // => true
385
- *
386
- * _.isObjectLike(_.noop);
387
- * // => false
287
+ * Removes all key-value entries from the map.
388
288
  *
389
- * _.isObjectLike(null);
390
- * // => false
289
+ * @private
290
+ * @name clear
291
+ * @memberOf MapCache
391
292
  */
392
- function isObjectLike(value) {
393
- return !!value && typeof value == "object";
293
+ function mapCacheClear() {
294
+ this.__data__ = {
295
+ "hash": new Hash(),
296
+ "map": new (Map$1 || ListCache)(),
297
+ "string": new Hash()
298
+ };
394
299
  }
395
300
  /**
396
- * Checks if `value` is classified as a `Symbol` primitive or object.
301
+ * Removes `key` and its value from the map.
397
302
  *
398
- * @static
399
- * @memberOf _
400
- * @since 4.0.0
401
- * @category Lang
402
- * @param {*} value The value to check.
403
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
404
- * @example
303
+ * @private
304
+ * @name delete
305
+ * @memberOf MapCache
306
+ * @param {string} key The key of the value to remove.
307
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
308
+ */
309
+ function mapCacheDelete(key) {
310
+ return getMapData(this, key)["delete"](key);
311
+ }
312
+ /**
313
+ * Gets the map value for `key`.
405
314
  *
406
- * _.isSymbol(Symbol.iterator);
407
- * // => true
315
+ * @private
316
+ * @name get
317
+ * @memberOf MapCache
318
+ * @param {string} key The key of the value to get.
319
+ * @returns {*} Returns the entry value.
320
+ */
321
+ function mapCacheGet(key) {
322
+ return getMapData(this, key).get(key);
323
+ }
324
+ /**
325
+ * Checks if a map value for `key` exists.
408
326
  *
409
- * _.isSymbol('abc');
410
- * // => false
327
+ * @private
328
+ * @name has
329
+ * @memberOf MapCache
330
+ * @param {string} key The key of the entry to check.
331
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
411
332
  */
412
- function isSymbol(value) {
413
- return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
333
+ function mapCacheHas(key) {
334
+ return getMapData(this, key).has(key);
414
335
  }
415
- module.exports = baseRest(function(object, props) {
416
- return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));
417
- });
418
- }));
419
- //#endregion
420
- //#region ../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js
421
- var require_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
422
336
  /**
423
- * lodash (Custom Build) <https://lodash.com/>
424
- * Build: `lodash modularize exports="npm" -o ./`
425
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
426
- * Released under MIT license <https://lodash.com/license>
427
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
428
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
337
+ * Sets the map `key` to `value`.
338
+ *
339
+ * @private
340
+ * @name set
341
+ * @memberOf MapCache
342
+ * @param {string} key The key of the value to set.
343
+ * @param {*} value The value to set.
344
+ * @returns {Object} Returns the map cache instance.
429
345
  */
430
- /** Used as the `TypeError` message for "Functions" methods. */
431
- var FUNC_ERROR_TEXT = "Expected a function";
432
- /** Used to stand-in for `undefined` hash values. */
433
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
434
- var MAX_SAFE_INTEGER = 9007199254740991;
435
- /** `Object#toString` result references. */
436
- var funcTag = "[object Function]";
437
- var genTag = "[object GeneratorFunction]";
438
- var symbolTag = "[object Symbol]";
439
- /** Used to match property names within property paths. */
440
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
441
- var reIsPlainProp = /^\w*$/;
442
- var reLeadingDot = /^\./;
443
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
346
+ function mapCacheSet(key, value) {
347
+ getMapData(this, key).set(key, value);
348
+ return this;
349
+ }
350
+ MapCache.prototype.clear = mapCacheClear;
351
+ MapCache.prototype["delete"] = mapCacheDelete;
352
+ MapCache.prototype.get = mapCacheGet;
353
+ MapCache.prototype.has = mapCacheHas;
354
+ MapCache.prototype.set = mapCacheSet;
444
355
  /**
445
- * Used to match `RegExp`
446
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
356
+ * Assigns `value` to `key` of `object` if the existing value is not equivalent
357
+ * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
358
+ * for equality comparisons.
359
+ *
360
+ * @private
361
+ * @param {Object} object The object to modify.
362
+ * @param {string} key The key of the property to assign.
363
+ * @param {*} value The value to assign.
447
364
  */
448
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
449
- /** Used to match backslashes in property paths. */
450
- var reEscapeChar = /\\(\\)?/g;
451
- /** Used to detect host constructors (Safari). */
452
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
453
- /** Used to detect unsigned integer values. */
454
- var reIsUint = /^(?:0|[1-9]\d*)$/;
455
- /** Detect free variable `global` from Node.js. */
456
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
457
- /** Detect free variable `self`. */
458
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
459
- /** Used as a reference to the global object. */
460
- var root = freeGlobal || freeSelf || Function("return this")();
365
+ function assignValue(object, key, value) {
366
+ var objValue = object[key];
367
+ if (!(hasOwnProperty$1.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) object[key] = value;
368
+ }
461
369
  /**
462
- * Gets the value at `key` of `object`.
370
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
463
371
  *
464
372
  * @private
465
- * @param {Object} [object] The object to query.
466
- * @param {string} key The key of the property to get.
467
- * @returns {*} Returns the property value.
373
+ * @param {Array} array The array to inspect.
374
+ * @param {*} key The key to search for.
375
+ * @returns {number} Returns the index of the matched value, else `-1`.
468
376
  */
469
- function getValue(object, key) {
470
- return object == null ? void 0 : object[key];
377
+ function assocIndexOf(array, key) {
378
+ var length = array.length;
379
+ while (length--) if (eq(array[length][0], key)) return length;
380
+ return -1;
471
381
  }
472
382
  /**
473
- * Checks if `value` is a host object in IE < 9.
383
+ * The base implementation of `_.isNative` without bad shim checks.
474
384
  *
475
385
  * @private
476
386
  * @param {*} value The value to check.
477
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
387
+ * @returns {boolean} Returns `true` if `value` is a native function,
388
+ * else `false`.
478
389
  */
479
- function isHostObject(value) {
480
- var result = false;
481
- if (value != null && typeof value.toString != "function") try {
482
- result = !!(value + "");
483
- } catch (e) {}
484
- return result;
390
+ function baseIsNative(value) {
391
+ if (!isObject$1(value) || isMasked(value)) return false;
392
+ var pattern = isFunction$1(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
393
+ return pattern.test(toSource(value));
485
394
  }
486
- /** Used for built-in method references. */
487
- var arrayProto = Array.prototype;
488
- var funcProto = Function.prototype;
489
- var objectProto = Object.prototype;
490
- /** Used to detect overreaching core-js shims. */
491
- var coreJsData = root["__core-js_shared__"];
492
- /** Used to detect methods masquerading as native. */
493
- var maskSrcKey = function() {
494
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
495
- return uid ? "Symbol(src)_1." + uid : "";
496
- }();
497
- /** Used to resolve the decompiled source of functions. */
498
- var funcToString = funcProto.toString;
499
- /** Used to check objects for own properties. */
500
- var hasOwnProperty = objectProto.hasOwnProperty;
501
395
  /**
502
- * Used to resolve the
503
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
504
- * of values.
396
+ * The base implementation of `_.set`.
397
+ *
398
+ * @private
399
+ * @param {Object} object The object to modify.
400
+ * @param {Array|string} path The path of the property to set.
401
+ * @param {*} value The value to set.
402
+ * @param {Function} [customizer] The function to customize path creation.
403
+ * @returns {Object} Returns `object`.
505
404
  */
506
- var objectToString = objectProto.toString;
507
- /** Used to detect if a method is native. */
508
- var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
509
- /** Built-in value references. */
510
- var Symbol = root.Symbol;
511
- var splice = arrayProto.splice;
512
- var Map = getNative(root, "Map");
513
- var nativeCreate = getNative(Object, "create");
514
- /** Used to convert symbols to primitives and strings. */
515
- var symbolProto = Symbol ? Symbol.prototype : void 0;
516
- var symbolToString = symbolProto ? symbolProto.toString : void 0;
405
+ function baseSet(object, path, value, customizer) {
406
+ if (!isObject$1(object)) return object;
407
+ path = isKey(path, object) ? [path] : castPath(path);
408
+ var index = -1, length = path.length, lastIndex = length - 1, nested = object;
409
+ while (nested != null && ++index < length) {
410
+ var key = toKey$1(path[index]), newValue = value;
411
+ if (index != lastIndex) {
412
+ var objValue = nested[key];
413
+ newValue = customizer ? customizer(objValue, key, nested) : void 0;
414
+ if (newValue === void 0) newValue = isObject$1(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
415
+ }
416
+ assignValue(nested, key, newValue);
417
+ nested = nested[key];
418
+ }
419
+ return object;
420
+ }
421
+ /**
422
+ * The base implementation of `_.toString` which doesn't convert nullish
423
+ * values to empty strings.
424
+ *
425
+ * @private
426
+ * @param {*} value The value to process.
427
+ * @returns {string} Returns the string.
428
+ */
429
+ function baseToString(value) {
430
+ if (typeof value == "string") return value;
431
+ if (isSymbol$1(value)) return symbolToString ? symbolToString.call(value) : "";
432
+ var result = value + "";
433
+ return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
434
+ }
517
435
  /**
518
- * Creates a hash object.
436
+ * Casts `value` to a path array if it's not one.
519
437
  *
520
438
  * @private
521
- * @constructor
522
- * @param {Array} [entries] The key-value pairs to cache.
439
+ * @param {*} value The value to inspect.
440
+ * @returns {Array} Returns the cast property path array.
523
441
  */
524
- function Hash(entries) {
525
- var index = -1, length = entries ? entries.length : 0;
526
- this.clear();
527
- while (++index < length) {
528
- var entry = entries[index];
529
- this.set(entry[0], entry[1]);
530
- }
442
+ function castPath(value) {
443
+ return isArray$1(value) ? value : stringToPath(value);
531
444
  }
532
445
  /**
533
- * Removes all key-value entries from the hash.
446
+ * Gets the data for `map`.
534
447
  *
535
448
  * @private
536
- * @name clear
537
- * @memberOf Hash
449
+ * @param {Object} map The map to query.
450
+ * @param {string} key The reference key.
451
+ * @returns {*} Returns the map data.
538
452
  */
539
- function hashClear() {
540
- this.__data__ = nativeCreate ? nativeCreate(null) : {};
453
+ function getMapData(map, key) {
454
+ var data = map.__data__;
455
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
541
456
  }
542
457
  /**
543
- * Removes `key` and its value from the hash.
458
+ * Gets the native function at `key` of `object`.
544
459
  *
545
460
  * @private
546
- * @name delete
547
- * @memberOf Hash
548
- * @param {Object} hash The hash to modify.
549
- * @param {string} key The key of the value to remove.
550
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
461
+ * @param {Object} object The object to query.
462
+ * @param {string} key The key of the method to get.
463
+ * @returns {*} Returns the function if it's native, else `undefined`.
551
464
  */
552
- function hashDelete(key) {
553
- return this.has(key) && delete this.__data__[key];
465
+ function getNative(object, key) {
466
+ var value = getValue(object, key);
467
+ return baseIsNative(value) ? value : void 0;
554
468
  }
555
469
  /**
556
- * Gets the hash value for `key`.
470
+ * Checks if `value` is a valid array-like index.
557
471
  *
558
472
  * @private
559
- * @name get
560
- * @memberOf Hash
561
- * @param {string} key The key of the value to get.
562
- * @returns {*} Returns the entry value.
473
+ * @param {*} value The value to check.
474
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
475
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
563
476
  */
564
- function hashGet(key) {
565
- var data = this.__data__;
566
- if (nativeCreate) {
567
- var result = data[key];
568
- return result === HASH_UNDEFINED ? void 0 : result;
569
- }
570
- return hasOwnProperty.call(data, key) ? data[key] : void 0;
477
+ function isIndex(value, length) {
478
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
479
+ return !!length && (typeof value == "number" || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
571
480
  }
572
481
  /**
573
- * Checks if a hash value for `key` exists.
482
+ * Checks if `value` is a property name and not a property path.
574
483
  *
575
484
  * @private
576
- * @name has
577
- * @memberOf Hash
578
- * @param {string} key The key of the entry to check.
579
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
485
+ * @param {*} value The value to check.
486
+ * @param {Object} [object] The object to query keys on.
487
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
580
488
  */
581
- function hashHas(key) {
582
- var data = this.__data__;
583
- return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
489
+ function isKey(value, object) {
490
+ if (isArray$1(value)) return false;
491
+ var type = typeof value;
492
+ if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$1(value)) return true;
493
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
584
494
  }
585
495
  /**
586
- * Sets the hash `key` to `value`.
496
+ * Checks if `value` is suitable for use as unique object key.
587
497
  *
588
498
  * @private
589
- * @name set
590
- * @memberOf Hash
591
- * @param {string} key The key of the value to set.
592
- * @param {*} value The value to set.
593
- * @returns {Object} Returns the hash instance.
499
+ * @param {*} value The value to check.
500
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
594
501
  */
595
- function hashSet(key, value) {
596
- var data = this.__data__;
597
- data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
598
- return this;
502
+ function isKeyable(value) {
503
+ var type = typeof value;
504
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
599
505
  }
600
- Hash.prototype.clear = hashClear;
601
- Hash.prototype["delete"] = hashDelete;
602
- Hash.prototype.get = hashGet;
603
- Hash.prototype.has = hashHas;
604
- Hash.prototype.set = hashSet;
605
506
  /**
606
- * Creates an list cache object.
507
+ * Checks if `func` has its source masked.
607
508
  *
608
509
  * @private
609
- * @constructor
610
- * @param {Array} [entries] The key-value pairs to cache.
510
+ * @param {Function} func The function to check.
511
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
611
512
  */
612
- function ListCache(entries) {
613
- var index = -1, length = entries ? entries.length : 0;
614
- this.clear();
615
- while (++index < length) {
616
- var entry = entries[index];
617
- this.set(entry[0], entry[1]);
618
- }
513
+ function isMasked(func) {
514
+ return !!maskSrcKey && maskSrcKey in func;
619
515
  }
620
516
  /**
621
- * Removes all key-value entries from the list cache.
517
+ * Converts `string` to a property path array.
622
518
  *
623
519
  * @private
624
- * @name clear
625
- * @memberOf ListCache
520
+ * @param {string} string The string to convert.
521
+ * @returns {Array} Returns the property path array.
626
522
  */
627
- function listCacheClear() {
628
- this.__data__ = [];
629
- }
523
+ var stringToPath = memoize(function(string) {
524
+ string = toString(string);
525
+ var result = [];
526
+ if (reLeadingDot.test(string)) result.push("");
527
+ string.replace(rePropName, function(match, number, quote, string$1) {
528
+ result.push(quote ? string$1.replace(reEscapeChar, "$1") : number || match);
529
+ });
530
+ return result;
531
+ });
630
532
  /**
631
- * Removes `key` and its value from the list cache.
533
+ * Converts `value` to a string key if it's not a string or symbol.
632
534
  *
633
535
  * @private
634
- * @name delete
635
- * @memberOf ListCache
636
- * @param {string} key The key of the value to remove.
637
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
536
+ * @param {*} value The value to inspect.
537
+ * @returns {string|symbol} Returns the key.
638
538
  */
639
- function listCacheDelete(key) {
640
- var data = this.__data__, index = assocIndexOf(data, key);
641
- if (index < 0) return false;
642
- if (index == data.length - 1) data.pop();
643
- else splice.call(data, index, 1);
644
- return true;
539
+ function toKey$1(value) {
540
+ if (typeof value == "string" || isSymbol$1(value)) return value;
541
+ var result = value + "";
542
+ return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
645
543
  }
646
544
  /**
647
- * Gets the list cache value for `key`.
545
+ * Converts `func` to its source code.
648
546
  *
649
547
  * @private
650
- * @name get
651
- * @memberOf ListCache
652
- * @param {string} key The key of the value to get.
653
- * @returns {*} Returns the entry value.
548
+ * @param {Function} func The function to process.
549
+ * @returns {string} Returns the source code.
654
550
  */
655
- function listCacheGet(key) {
656
- var data = this.__data__, index = assocIndexOf(data, key);
657
- return index < 0 ? void 0 : data[index][1];
551
+ function toSource(func) {
552
+ if (func != null) {
553
+ try {
554
+ return funcToString.call(func);
555
+ } catch (e) {}
556
+ try {
557
+ return func + "";
558
+ } catch (e) {}
559
+ }
560
+ return "";
658
561
  }
659
562
  /**
660
- * Checks if a list cache value for `key` exists.
563
+ * Creates a function that memoizes the result of `func`. If `resolver` is
564
+ * provided, it determines the cache key for storing the result based on the
565
+ * arguments provided to the memoized function. By default, the first argument
566
+ * provided to the memoized function is used as the map cache key. The `func`
567
+ * is invoked with the `this` binding of the memoized function.
661
568
  *
662
- * @private
663
- * @name has
664
- * @memberOf ListCache
665
- * @param {string} key The key of the entry to check.
666
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
569
+ * **Note:** The cache is exposed as the `cache` property on the memoized
570
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
571
+ * constructor with one whose instances implement the
572
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
573
+ * method interface of `delete`, `get`, `has`, and `set`.
574
+ *
575
+ * @static
576
+ * @memberOf _
577
+ * @since 0.1.0
578
+ * @category Function
579
+ * @param {Function} func The function to have its output memoized.
580
+ * @param {Function} [resolver] The function to resolve the cache key.
581
+ * @returns {Function} Returns the new memoized function.
582
+ * @example
583
+ *
584
+ * var object = { 'a': 1, 'b': 2 };
585
+ * var other = { 'c': 3, 'd': 4 };
586
+ *
587
+ * var values = _.memoize(_.values);
588
+ * values(object);
589
+ * // => [1, 2]
590
+ *
591
+ * values(other);
592
+ * // => [3, 4]
593
+ *
594
+ * object.a = 2;
595
+ * values(object);
596
+ * // => [1, 2]
597
+ *
598
+ * // Modify the result cache.
599
+ * values.cache.set(object, ['a', 'b']);
600
+ * values(object);
601
+ * // => ['a', 'b']
602
+ *
603
+ * // Replace `_.memoize.Cache`.
604
+ * _.memoize.Cache = WeakMap;
667
605
  */
668
- function listCacheHas(key) {
669
- return assocIndexOf(this.__data__, key) > -1;
606
+ function memoize(func, resolver) {
607
+ if (typeof func != "function" || resolver && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
608
+ var memoized = function() {
609
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
610
+ if (cache.has(key)) return cache.get(key);
611
+ var result = func.apply(this, args);
612
+ memoized.cache = cache.set(key, result);
613
+ return result;
614
+ };
615
+ memoized.cache = new (memoize.Cache || MapCache)();
616
+ return memoized;
670
617
  }
618
+ memoize.Cache = MapCache;
671
619
  /**
672
- * Sets the list cache `key` to `value`.
620
+ * Performs a
621
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
622
+ * comparison between two values to determine if they are equivalent.
673
623
  *
674
- * @private
675
- * @name set
676
- * @memberOf ListCache
677
- * @param {string} key The key of the value to set.
678
- * @param {*} value The value to set.
679
- * @returns {Object} Returns the list cache instance.
624
+ * @static
625
+ * @memberOf _
626
+ * @since 4.0.0
627
+ * @category Lang
628
+ * @param {*} value The value to compare.
629
+ * @param {*} other The other value to compare.
630
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
631
+ * @example
632
+ *
633
+ * var object = { 'a': 1 };
634
+ * var other = { 'a': 1 };
635
+ *
636
+ * _.eq(object, object);
637
+ * // => true
638
+ *
639
+ * _.eq(object, other);
640
+ * // => false
641
+ *
642
+ * _.eq('a', 'a');
643
+ * // => true
644
+ *
645
+ * _.eq('a', Object('a'));
646
+ * // => false
647
+ *
648
+ * _.eq(NaN, NaN);
649
+ * // => true
680
650
  */
681
- function listCacheSet(key, value) {
682
- var data = this.__data__, index = assocIndexOf(data, key);
683
- if (index < 0) data.push([key, value]);
684
- else data[index][1] = value;
685
- return this;
651
+ function eq(value, other) {
652
+ return value === other || value !== value && other !== other;
686
653
  }
687
- ListCache.prototype.clear = listCacheClear;
688
- ListCache.prototype["delete"] = listCacheDelete;
689
- ListCache.prototype.get = listCacheGet;
690
- ListCache.prototype.has = listCacheHas;
691
- ListCache.prototype.set = listCacheSet;
692
654
  /**
693
- * Creates a map cache object to store key-value pairs.
655
+ * Checks if `value` is classified as an `Array` object.
694
656
  *
695
- * @private
696
- * @constructor
697
- * @param {Array} [entries] The key-value pairs to cache.
657
+ * @static
658
+ * @memberOf _
659
+ * @since 0.1.0
660
+ * @category Lang
661
+ * @param {*} value The value to check.
662
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
663
+ * @example
664
+ *
665
+ * _.isArray([1, 2, 3]);
666
+ * // => true
667
+ *
668
+ * _.isArray(document.body.children);
669
+ * // => false
670
+ *
671
+ * _.isArray('abc');
672
+ * // => false
673
+ *
674
+ * _.isArray(_.noop);
675
+ * // => false
698
676
  */
699
- function MapCache(entries) {
700
- var index = -1, length = entries ? entries.length : 0;
701
- this.clear();
702
- while (++index < length) {
703
- var entry = entries[index];
704
- this.set(entry[0], entry[1]);
705
- }
706
- }
677
+ var isArray$1 = Array.isArray;
707
678
  /**
708
- * Removes all key-value entries from the map.
679
+ * Checks if `value` is classified as a `Function` object.
709
680
  *
710
- * @private
711
- * @name clear
712
- * @memberOf MapCache
681
+ * @static
682
+ * @memberOf _
683
+ * @since 0.1.0
684
+ * @category Lang
685
+ * @param {*} value The value to check.
686
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
687
+ * @example
688
+ *
689
+ * _.isFunction(_);
690
+ * // => true
691
+ *
692
+ * _.isFunction(/abc/);
693
+ * // => false
713
694
  */
714
- function mapCacheClear() {
715
- this.__data__ = {
716
- "hash": new Hash(),
717
- "map": new (Map || ListCache)(),
718
- "string": new Hash()
719
- };
695
+ function isFunction$1(value) {
696
+ var tag = isObject$1(value) ? objectToString$1.call(value) : "";
697
+ return tag == funcTag$1 || tag == genTag$1;
720
698
  }
721
699
  /**
722
- * Removes `key` and its value from the map.
700
+ * Checks if `value` is the
701
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
702
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
723
703
  *
724
- * @private
725
- * @name delete
726
- * @memberOf MapCache
727
- * @param {string} key The key of the value to remove.
728
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
704
+ * @static
705
+ * @memberOf _
706
+ * @since 0.1.0
707
+ * @category Lang
708
+ * @param {*} value The value to check.
709
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
710
+ * @example
711
+ *
712
+ * _.isObject({});
713
+ * // => true
714
+ *
715
+ * _.isObject([1, 2, 3]);
716
+ * // => true
717
+ *
718
+ * _.isObject(_.noop);
719
+ * // => true
720
+ *
721
+ * _.isObject(null);
722
+ * // => false
729
723
  */
730
- function mapCacheDelete(key) {
731
- return getMapData(this, key)["delete"](key);
724
+ function isObject$1(value) {
725
+ var type = typeof value;
726
+ return !!value && (type == "object" || type == "function");
732
727
  }
733
728
  /**
734
- * Gets the map value for `key`.
729
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
730
+ * and has a `typeof` result of "object".
735
731
  *
736
- * @private
737
- * @name get
738
- * @memberOf MapCache
739
- * @param {string} key The key of the value to get.
740
- * @returns {*} Returns the entry value.
732
+ * @static
733
+ * @memberOf _
734
+ * @since 4.0.0
735
+ * @category Lang
736
+ * @param {*} value The value to check.
737
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
738
+ * @example
739
+ *
740
+ * _.isObjectLike({});
741
+ * // => true
742
+ *
743
+ * _.isObjectLike([1, 2, 3]);
744
+ * // => true
745
+ *
746
+ * _.isObjectLike(_.noop);
747
+ * // => false
748
+ *
749
+ * _.isObjectLike(null);
750
+ * // => false
741
751
  */
742
- function mapCacheGet(key) {
743
- return getMapData(this, key).get(key);
752
+ function isObjectLike$1(value) {
753
+ return !!value && typeof value == "object";
744
754
  }
745
755
  /**
746
- * Checks if a map value for `key` exists.
756
+ * Checks if `value` is classified as a `Symbol` primitive or object.
747
757
  *
748
- * @private
749
- * @name has
750
- * @memberOf MapCache
751
- * @param {string} key The key of the entry to check.
752
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
758
+ * @static
759
+ * @memberOf _
760
+ * @since 4.0.0
761
+ * @category Lang
762
+ * @param {*} value The value to check.
763
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
764
+ * @example
765
+ *
766
+ * _.isSymbol(Symbol.iterator);
767
+ * // => true
768
+ *
769
+ * _.isSymbol('abc');
770
+ * // => false
753
771
  */
754
- function mapCacheHas(key) {
755
- return getMapData(this, key).has(key);
772
+ function isSymbol$1(value) {
773
+ return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
756
774
  }
757
775
  /**
758
- * Sets the map `key` to `value`.
776
+ * Converts `value` to a string. An empty string is returned for `null`
777
+ * and `undefined` values. The sign of `-0` is preserved.
759
778
  *
760
- * @private
761
- * @name set
762
- * @memberOf MapCache
763
- * @param {string} key The key of the value to set.
764
- * @param {*} value The value to set.
765
- * @returns {Object} Returns the map cache instance.
779
+ * @static
780
+ * @memberOf _
781
+ * @since 4.0.0
782
+ * @category Lang
783
+ * @param {*} value The value to process.
784
+ * @returns {string} Returns the string.
785
+ * @example
786
+ *
787
+ * _.toString(null);
788
+ * // => ''
789
+ *
790
+ * _.toString(-0);
791
+ * // => '-0'
792
+ *
793
+ * _.toString([1, 2, 3]);
794
+ * // => '1,2,3'
766
795
  */
767
- function mapCacheSet(key, value) {
768
- getMapData(this, key).set(key, value);
769
- return this;
796
+ function toString(value) {
797
+ return value == null ? "" : baseToString(value);
770
798
  }
771
- MapCache.prototype.clear = mapCacheClear;
772
- MapCache.prototype["delete"] = mapCacheDelete;
773
- MapCache.prototype.get = mapCacheGet;
774
- MapCache.prototype.has = mapCacheHas;
775
- MapCache.prototype.set = mapCacheSet;
776
799
  /**
777
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
778
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
779
- * for equality comparisons.
800
+ * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
801
+ * it's created. Arrays are created for missing index properties while objects
802
+ * are created for all other missing properties. Use `_.setWith` to customize
803
+ * `path` creation.
780
804
  *
781
- * @private
805
+ * **Note:** This method mutates `object`.
806
+ *
807
+ * @static
808
+ * @memberOf _
809
+ * @since 3.7.0
810
+ * @category Object
782
811
  * @param {Object} object The object to modify.
783
- * @param {string} key The key of the property to assign.
784
- * @param {*} value The value to assign.
785
- */
786
- function assignValue(object, key, value) {
787
- var objValue = object[key];
788
- if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) object[key] = value;
789
- }
790
- /**
791
- * Gets the index at which the `key` is found in `array` of key-value pairs.
812
+ * @param {Array|string} path The path of the property to set.
813
+ * @param {*} value The value to set.
814
+ * @returns {Object} Returns `object`.
815
+ * @example
792
816
  *
793
- * @private
794
- * @param {Array} array The array to inspect.
795
- * @param {*} key The key to search for.
796
- * @returns {number} Returns the index of the matched value, else `-1`.
817
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
818
+ *
819
+ * _.set(object, 'a[0].b.c', 4);
820
+ * console.log(object.a[0].b.c);
821
+ * // => 4
822
+ *
823
+ * _.set(object, ['x', '0', 'y', 'z'], 5);
824
+ * console.log(object.x[0].y.z);
825
+ * // => 5
797
826
  */
798
- function assocIndexOf(array, key) {
799
- var length = array.length;
800
- while (length--) if (eq(array[length][0], key)) return length;
801
- return -1;
827
+ function set$1(object, path, value) {
828
+ return object == null ? object : baseSet(object, path, value);
802
829
  }
830
+ module.exports = set$1;
831
+ } });
832
+
833
+ //#endregion
834
+ //#region ../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js
835
+ var require_lodash = require_Construct.__commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js"(exports, module) {
803
836
  /**
804
- * The base implementation of `_.isNative` without bad shim checks.
805
- *
806
- * @private
807
- * @param {*} value The value to check.
808
- * @returns {boolean} Returns `true` if `value` is a native function,
809
- * else `false`.
837
+ * lodash (Custom Build) <https://lodash.com/>
838
+ * Build: `lodash modularize exports="npm" -o ./`
839
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
840
+ * Released under MIT license <https://lodash.com/license>
841
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
842
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
810
843
  */
811
- function baseIsNative(value) {
812
- if (!isObject(value) || isMasked(value)) return false;
813
- return (isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor).test(toSource(value));
814
- }
844
+ /** Used as references for various `Number` constants. */
845
+ var INFINITY = Infinity, MAX_SAFE_INTEGER = 9007199254740991;
846
+ /** `Object#toString` result references. */
847
+ var argsTag = "[object Arguments]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", symbolTag = "[object Symbol]";
848
+ /** Detect free variable `global` from Node.js. */
849
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
850
+ /** Detect free variable `self`. */
851
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
852
+ /** Used as a reference to the global object. */
853
+ var root = freeGlobal || freeSelf || Function("return this")();
815
854
  /**
816
- * The base implementation of `_.set`.
855
+ * A faster alternative to `Function#apply`, this function invokes `func`
856
+ * with the `this` binding of `thisArg` and the arguments of `args`.
817
857
  *
818
858
  * @private
819
- * @param {Object} object The object to modify.
820
- * @param {Array|string} path The path of the property to set.
821
- * @param {*} value The value to set.
822
- * @param {Function} [customizer] The function to customize path creation.
823
- * @returns {Object} Returns `object`.
859
+ * @param {Function} func The function to invoke.
860
+ * @param {*} thisArg The `this` binding of `func`.
861
+ * @param {Array} args The arguments to invoke `func` with.
862
+ * @returns {*} Returns the result of `func`.
824
863
  */
825
- function baseSet(object, path, value, customizer) {
826
- if (!isObject(object)) return object;
827
- path = isKey(path, object) ? [path] : castPath(path);
828
- var index = -1, length = path.length, lastIndex = length - 1, nested = object;
829
- while (nested != null && ++index < length) {
830
- var key = toKey(path[index]), newValue = value;
831
- if (index != lastIndex) {
832
- var objValue = nested[key];
833
- newValue = customizer ? customizer(objValue, key, nested) : void 0;
834
- if (newValue === void 0) newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
835
- }
836
- assignValue(nested, key, newValue);
837
- nested = nested[key];
864
+ function apply(func, thisArg, args) {
865
+ switch (args.length) {
866
+ case 0: return func.call(thisArg);
867
+ case 1: return func.call(thisArg, args[0]);
868
+ case 2: return func.call(thisArg, args[0], args[1]);
869
+ case 3: return func.call(thisArg, args[0], args[1], args[2]);
838
870
  }
839
- return object;
871
+ return func.apply(thisArg, args);
840
872
  }
841
873
  /**
842
- * The base implementation of `_.toString` which doesn't convert nullish
843
- * values to empty strings.
874
+ * A specialized version of `_.map` for arrays without support for iteratee
875
+ * shorthands.
844
876
  *
845
877
  * @private
846
- * @param {*} value The value to process.
847
- * @returns {string} Returns the string.
878
+ * @param {Array} [array] The array to iterate over.
879
+ * @param {Function} iteratee The function invoked per iteration.
880
+ * @returns {Array} Returns the new mapped array.
848
881
  */
849
- function baseToString(value) {
850
- if (typeof value == "string") return value;
851
- if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
852
- var result = value + "";
853
- return result == "0" && 1 / value == -Infinity ? "-0" : result;
882
+ function arrayMap(array, iteratee) {
883
+ var index = -1, length = array ? array.length : 0, result = Array(length);
884
+ while (++index < length) result[index] = iteratee(array[index], index, array);
885
+ return result;
854
886
  }
855
887
  /**
856
- * Casts `value` to a path array if it's not one.
888
+ * Appends the elements of `values` to `array`.
857
889
  *
858
890
  * @private
859
- * @param {*} value The value to inspect.
860
- * @returns {Array} Returns the cast property path array.
891
+ * @param {Array} array The array to modify.
892
+ * @param {Array} values The values to append.
893
+ * @returns {Array} Returns `array`.
861
894
  */
862
- function castPath(value) {
863
- return isArray(value) ? value : stringToPath(value);
895
+ function arrayPush(array, values) {
896
+ var index = -1, length = values.length, offset = array.length;
897
+ while (++index < length) array[offset + index] = values[index];
898
+ return array;
864
899
  }
900
+ /** Used for built-in method references. */
901
+ var objectProto = Object.prototype;
902
+ /** Used to check objects for own properties. */
903
+ var hasOwnProperty = objectProto.hasOwnProperty;
865
904
  /**
866
- * Gets the data for `map`.
867
- *
868
- * @private
869
- * @param {Object} map The map to query.
870
- * @param {string} key The reference key.
871
- * @returns {*} Returns the map data.
905
+ * Used to resolve the
906
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
907
+ * of values.
872
908
  */
873
- function getMapData(map, key) {
874
- var data = map.__data__;
875
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
876
- }
909
+ var objectToString = objectProto.toString;
910
+ /** Built-in value references. */
911
+ var Symbol = root.Symbol, propertyIsEnumerable = objectProto.propertyIsEnumerable, spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
912
+ var nativeMax = Math.max;
877
913
  /**
878
- * Gets the native function at `key` of `object`.
914
+ * The base implementation of `_.flatten` with support for restricting flattening.
879
915
  *
880
916
  * @private
881
- * @param {Object} object The object to query.
882
- * @param {string} key The key of the method to get.
883
- * @returns {*} Returns the function if it's native, else `undefined`.
917
+ * @param {Array} array The array to flatten.
918
+ * @param {number} depth The maximum recursion depth.
919
+ * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
920
+ * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
921
+ * @param {Array} [result=[]] The initial result value.
922
+ * @returns {Array} Returns the new flattened array.
884
923
  */
885
- function getNative(object, key) {
886
- var value = getValue(object, key);
887
- return baseIsNative(value) ? value : void 0;
924
+ function baseFlatten(array, depth, predicate, isStrict, result) {
925
+ var index = -1, length = array.length;
926
+ predicate || (predicate = isFlattenable);
927
+ result || (result = []);
928
+ while (++index < length) {
929
+ var value = array[index];
930
+ if (depth > 0 && predicate(value)) if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
931
+ else arrayPush(result, value);
932
+ else if (!isStrict) result[result.length] = value;
933
+ }
934
+ return result;
888
935
  }
889
936
  /**
890
- * Checks if `value` is a valid array-like index.
937
+ * The base implementation of `_.pick` without support for individual
938
+ * property identifiers.
891
939
  *
892
940
  * @private
893
- * @param {*} value The value to check.
894
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
895
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
941
+ * @param {Object} object The source object.
942
+ * @param {string[]} props The property identifiers to pick.
943
+ * @returns {Object} Returns the new object.
896
944
  */
897
- function isIndex(value, length) {
898
- length = length == null ? MAX_SAFE_INTEGER : length;
899
- return !!length && (typeof value == "number" || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
945
+ function basePick(object, props) {
946
+ object = Object(object);
947
+ return basePickBy(object, props, function(value, key) {
948
+ return key in object;
949
+ });
900
950
  }
901
951
  /**
902
- * Checks if `value` is a property name and not a property path.
952
+ * The base implementation of `_.pickBy` without support for iteratee shorthands.
903
953
  *
904
954
  * @private
905
- * @param {*} value The value to check.
906
- * @param {Object} [object] The object to query keys on.
907
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
955
+ * @param {Object} object The source object.
956
+ * @param {string[]} props The property identifiers to pick from.
957
+ * @param {Function} predicate The function invoked per property.
958
+ * @returns {Object} Returns the new object.
908
959
  */
909
- function isKey(value, object) {
910
- if (isArray(value)) return false;
911
- var type = typeof value;
912
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
913
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
960
+ function basePickBy(object, props, predicate) {
961
+ var index = -1, length = props.length, result = {};
962
+ while (++index < length) {
963
+ var key = props[index], value = object[key];
964
+ if (predicate(value, key)) result[key] = value;
965
+ }
966
+ return result;
914
967
  }
915
968
  /**
916
- * Checks if `value` is suitable for use as unique object key.
969
+ * The base implementation of `_.rest` which doesn't validate or coerce arguments.
917
970
  *
918
971
  * @private
919
- * @param {*} value The value to check.
920
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
972
+ * @param {Function} func The function to apply a rest parameter to.
973
+ * @param {number} [start=func.length-1] The start position of the rest parameter.
974
+ * @returns {Function} Returns the new function.
921
975
  */
922
- function isKeyable(value) {
923
- var type = typeof value;
924
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
976
+ function baseRest(func, start) {
977
+ start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
978
+ return function() {
979
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
980
+ while (++index < length) array[index] = args[start + index];
981
+ index = -1;
982
+ var otherArgs = Array(start + 1);
983
+ while (++index < start) otherArgs[index] = args[index];
984
+ otherArgs[start] = array;
985
+ return apply(func, this, otherArgs);
986
+ };
925
987
  }
926
988
  /**
927
- * Checks if `func` has its source masked.
989
+ * Checks if `value` is a flattenable `arguments` object or array.
928
990
  *
929
991
  * @private
930
- * @param {Function} func The function to check.
931
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
992
+ * @param {*} value The value to check.
993
+ * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
932
994
  */
933
- function isMasked(func) {
934
- return !!maskSrcKey && maskSrcKey in func;
995
+ function isFlattenable(value) {
996
+ return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
935
997
  }
936
998
  /**
937
- * Converts `string` to a property path array.
938
- *
939
- * @private
940
- * @param {string} string The string to convert.
941
- * @returns {Array} Returns the property path array.
942
- */
943
- var stringToPath = memoize(function(string) {
944
- string = toString(string);
945
- var result = [];
946
- if (reLeadingDot.test(string)) result.push("");
947
- string.replace(rePropName, function(match, number, quote, string) {
948
- result.push(quote ? string.replace(reEscapeChar, "$1") : number || match);
949
- });
950
- return result;
951
- });
952
- /**
953
999
  * Converts `value` to a string key if it's not a string or symbol.
954
1000
  *
955
1001
  * @private
@@ -959,117 +1005,28 @@ var require_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(
959
1005
  function toKey(value) {
960
1006
  if (typeof value == "string" || isSymbol(value)) return value;
961
1007
  var result = value + "";
962
- return result == "0" && 1 / value == -Infinity ? "-0" : result;
963
- }
964
- /**
965
- * Converts `func` to its source code.
966
- *
967
- * @private
968
- * @param {Function} func The function to process.
969
- * @returns {string} Returns the source code.
970
- */
971
- function toSource(func) {
972
- if (func != null) {
973
- try {
974
- return funcToString.call(func);
975
- } catch (e) {}
976
- try {
977
- return func + "";
978
- } catch (e) {}
979
- }
980
- return "";
981
- }
982
- /**
983
- * Creates a function that memoizes the result of `func`. If `resolver` is
984
- * provided, it determines the cache key for storing the result based on the
985
- * arguments provided to the memoized function. By default, the first argument
986
- * provided to the memoized function is used as the map cache key. The `func`
987
- * is invoked with the `this` binding of the memoized function.
988
- *
989
- * **Note:** The cache is exposed as the `cache` property on the memoized
990
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
991
- * constructor with one whose instances implement the
992
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
993
- * method interface of `delete`, `get`, `has`, and `set`.
994
- *
995
- * @static
996
- * @memberOf _
997
- * @since 0.1.0
998
- * @category Function
999
- * @param {Function} func The function to have its output memoized.
1000
- * @param {Function} [resolver] The function to resolve the cache key.
1001
- * @returns {Function} Returns the new memoized function.
1002
- * @example
1003
- *
1004
- * var object = { 'a': 1, 'b': 2 };
1005
- * var other = { 'c': 3, 'd': 4 };
1006
- *
1007
- * var values = _.memoize(_.values);
1008
- * values(object);
1009
- * // => [1, 2]
1010
- *
1011
- * values(other);
1012
- * // => [3, 4]
1013
- *
1014
- * object.a = 2;
1015
- * values(object);
1016
- * // => [1, 2]
1017
- *
1018
- * // Modify the result cache.
1019
- * values.cache.set(object, ['a', 'b']);
1020
- * values(object);
1021
- * // => ['a', 'b']
1022
- *
1023
- * // Replace `_.memoize.Cache`.
1024
- * _.memoize.Cache = WeakMap;
1025
- */
1026
- function memoize(func, resolver) {
1027
- if (typeof func != "function" || resolver && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
1028
- var memoized = function() {
1029
- var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
1030
- if (cache.has(key)) return cache.get(key);
1031
- var result = func.apply(this, args);
1032
- memoized.cache = cache.set(key, result);
1033
- return result;
1034
- };
1035
- memoized.cache = new (memoize.Cache || MapCache)();
1036
- return memoized;
1008
+ return result == "0" && 1 / value == -INFINITY ? "-0" : result;
1037
1009
  }
1038
- memoize.Cache = MapCache;
1039
1010
  /**
1040
- * Performs a
1041
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1042
- * comparison between two values to determine if they are equivalent.
1011
+ * Checks if `value` is likely an `arguments` object.
1043
1012
  *
1044
1013
  * @static
1045
1014
  * @memberOf _
1046
- * @since 4.0.0
1015
+ * @since 0.1.0
1047
1016
  * @category Lang
1048
- * @param {*} value The value to compare.
1049
- * @param {*} other The other value to compare.
1050
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1017
+ * @param {*} value The value to check.
1018
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
1019
+ * else `false`.
1051
1020
  * @example
1052
1021
  *
1053
- * var object = { 'a': 1 };
1054
- * var other = { 'a': 1 };
1055
- *
1056
- * _.eq(object, object);
1057
- * // => true
1058
- *
1059
- * _.eq(object, other);
1060
- * // => false
1061
- *
1062
- * _.eq('a', 'a');
1022
+ * _.isArguments(function() { return arguments; }());
1063
1023
  * // => true
1064
1024
  *
1065
- * _.eq('a', Object('a'));
1025
+ * _.isArguments([1, 2, 3]);
1066
1026
  * // => false
1067
- *
1068
- * _.eq(NaN, NaN);
1069
- * // => true
1070
1027
  */
1071
- function eq(value, other) {
1072
- return value === other || value !== value && other !== other;
1028
+ function isArguments(value) {
1029
+ return isArrayLikeObject(value) && hasOwnProperty.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString.call(value) == argsTag);
1073
1030
  }
1074
1031
  /**
1075
1032
  * Checks if `value` is classified as an `Array` object.
@@ -1096,6 +1053,62 @@ var require_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(
1096
1053
  */
1097
1054
  var isArray = Array.isArray;
1098
1055
  /**
1056
+ * Checks if `value` is array-like. A value is considered array-like if it's
1057
+ * not a function and has a `value.length` that's an integer greater than or
1058
+ * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
1059
+ *
1060
+ * @static
1061
+ * @memberOf _
1062
+ * @since 4.0.0
1063
+ * @category Lang
1064
+ * @param {*} value The value to check.
1065
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
1066
+ * @example
1067
+ *
1068
+ * _.isArrayLike([1, 2, 3]);
1069
+ * // => true
1070
+ *
1071
+ * _.isArrayLike(document.body.children);
1072
+ * // => true
1073
+ *
1074
+ * _.isArrayLike('abc');
1075
+ * // => true
1076
+ *
1077
+ * _.isArrayLike(_.noop);
1078
+ * // => false
1079
+ */
1080
+ function isArrayLike(value) {
1081
+ return value != null && isLength(value.length) && !isFunction(value);
1082
+ }
1083
+ /**
1084
+ * This method is like `_.isArrayLike` except that it also checks if `value`
1085
+ * is an object.
1086
+ *
1087
+ * @static
1088
+ * @memberOf _
1089
+ * @since 4.0.0
1090
+ * @category Lang
1091
+ * @param {*} value The value to check.
1092
+ * @returns {boolean} Returns `true` if `value` is an array-like object,
1093
+ * else `false`.
1094
+ * @example
1095
+ *
1096
+ * _.isArrayLikeObject([1, 2, 3]);
1097
+ * // => true
1098
+ *
1099
+ * _.isArrayLikeObject(document.body.children);
1100
+ * // => true
1101
+ *
1102
+ * _.isArrayLikeObject('abc');
1103
+ * // => false
1104
+ *
1105
+ * _.isArrayLikeObject(_.noop);
1106
+ * // => false
1107
+ */
1108
+ function isArrayLikeObject(value) {
1109
+ return isObjectLike(value) && isArrayLike(value);
1110
+ }
1111
+ /**
1099
1112
  * Checks if `value` is classified as a `Function` object.
1100
1113
  *
1101
1114
  * @static
@@ -1117,6 +1130,35 @@ var require_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(
1117
1130
  return tag == funcTag || tag == genTag;
1118
1131
  }
1119
1132
  /**
1133
+ * Checks if `value` is a valid array-like length.
1134
+ *
1135
+ * **Note:** This method is loosely based on
1136
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
1137
+ *
1138
+ * @static
1139
+ * @memberOf _
1140
+ * @since 4.0.0
1141
+ * @category Lang
1142
+ * @param {*} value The value to check.
1143
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
1144
+ * @example
1145
+ *
1146
+ * _.isLength(3);
1147
+ * // => true
1148
+ *
1149
+ * _.isLength(Number.MIN_VALUE);
1150
+ * // => false
1151
+ *
1152
+ * _.isLength(Infinity);
1153
+ * // => false
1154
+ *
1155
+ * _.isLength('3');
1156
+ * // => false
1157
+ */
1158
+ function isLength(value) {
1159
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
1160
+ }
1161
+ /**
1120
1162
  * Checks if `value` is the
1121
1163
  * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1122
1164
  * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
@@ -1193,105 +1235,32 @@ var require_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(
1193
1235
  return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
1194
1236
  }
1195
1237
  /**
1196
- * Converts `value` to a string. An empty string is returned for `null`
1197
- * and `undefined` values. The sign of `-0` is preserved.
1198
- *
1199
- * @static
1200
- * @memberOf _
1201
- * @since 4.0.0
1202
- * @category Lang
1203
- * @param {*} value The value to process.
1204
- * @returns {string} Returns the string.
1205
- * @example
1206
- *
1207
- * _.toString(null);
1208
- * // => ''
1209
- *
1210
- * _.toString(-0);
1211
- * // => '-0'
1212
- *
1213
- * _.toString([1, 2, 3]);
1214
- * // => '1,2,3'
1215
- */
1216
- function toString(value) {
1217
- return value == null ? "" : baseToString(value);
1218
- }
1219
- /**
1220
- * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
1221
- * it's created. Arrays are created for missing index properties while objects
1222
- * are created for all other missing properties. Use `_.setWith` to customize
1223
- * `path` creation.
1224
- *
1225
- * **Note:** This method mutates `object`.
1238
+ * Creates an object composed of the picked `object` properties.
1226
1239
  *
1227
1240
  * @static
1241
+ * @since 0.1.0
1228
1242
  * @memberOf _
1229
- * @since 3.7.0
1230
1243
  * @category Object
1231
- * @param {Object} object The object to modify.
1232
- * @param {Array|string} path The path of the property to set.
1233
- * @param {*} value The value to set.
1234
- * @returns {Object} Returns `object`.
1244
+ * @param {Object} object The source object.
1245
+ * @param {...(string|string[])} [props] The property identifiers to pick.
1246
+ * @returns {Object} Returns the new object.
1235
1247
  * @example
1236
1248
  *
1237
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1238
- *
1239
- * _.set(object, 'a[0].b.c', 4);
1240
- * console.log(object.a[0].b.c);
1241
- * // => 4
1249
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
1242
1250
  *
1243
- * _.set(object, ['x', '0', 'y', 'z'], 5);
1244
- * console.log(object.x[0].y.z);
1245
- * // => 5
1251
+ * _.pick(object, ['a', 'c']);
1252
+ * // => { 'a': 1, 'c': 3 }
1246
1253
  */
1247
- function set(object, path, value) {
1248
- return object == null ? object : baseSet(object, path, value);
1249
- }
1250
- module.exports = set;
1251
- }));
1252
- //#endregion
1253
- //#region src/endpoints/sessionAuth.ts
1254
- var import_lodash_pick = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_lodash_pick(), 1);
1255
- var import_lodash_set = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_lodash_set(), 1);
1256
- /**
1257
- * What is forwarded to the auth server: the headers a session travels in, and
1258
- * whose request it is — nothing else.
1259
- *
1260
- * The client's address goes with the session because the auth server
1261
- * rate-limits by it, `/get-session` included. Without it every user's session
1262
- * check arrived from the surface itself — one shared bucket, so enough
1263
- * traffic from anyone turned every session check into a 429 — and in tests,
1264
- * concurrent tests queued on the same rate-limit row.
1265
- */
1266
- const SESSION_HEADERS = [
1267
- "cookie",
1268
- "authorization",
1269
- "x-forwarded-for"
1270
- ];
1271
- /** `auth` for one request on one surface. */
1272
- function sessionAuth(surface, header) {
1273
- return { async getSession() {
1274
- const authenticator = surface?.auth;
1275
- if (!surface || !authenticator) throw new NoAuthenticator(surface?.id);
1276
- const headers = new Headers();
1277
- for (const name of SESSION_HEADERS) {
1278
- const value = header(name);
1279
- if (value) headers.set(name, value);
1280
- }
1281
- return await authenticator.verify(headers, surface.envParser);
1282
- } };
1283
- }
1284
- /** `auth.getSession()` was called on a surface that names no authenticator. */
1285
- var NoAuthenticator = class extends Error {
1286
- surface;
1287
- constructor(surface) {
1288
- super(`auth.getSession() needs an authenticator, and ${surface ? `the surface '${surface}'` : "this endpoint"} declares none: declare one on the surface with .auth(construct).`);
1289
- this.surface = surface;
1290
- this.name = "NoAuthenticator";
1291
- }
1292
- };
1254
+ var pick$1 = baseRest(function(object, props) {
1255
+ return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));
1256
+ });
1257
+ module.exports = pick$1;
1258
+ } });
1259
+
1293
1260
  //#endregion
1294
1261
  //#region src/endpoints/Endpoint.ts
1262
+ var import_lodash = require_Construct.__toESM(require_lodash(), 1);
1263
+ var import_lodash$1 = require_Construct.__toESM(require_lodash$1(), 1);
1295
1264
  /**
1296
1265
  * Represents an HTTP endpoint that can handle requests with type-safe input/output validation,
1297
1266
  * dependency injection, session management, and authorization.
@@ -1323,14 +1292,6 @@ var Endpoint = class Endpoint extends require_functions.Function {
1323
1292
  route;
1324
1293
  /** The HTTP method for this endpoint */
1325
1294
  method;
1326
- /**
1327
- * The surface that serves it, when it was built from one.
1328
- *
1329
- * Carries the env parser the adaptors need, so a generated handler needs no
1330
- * import written for it — and the surface's id, so the build attributes the
1331
- * route to the API that serves it rather than inferring it by exclusion.
1332
- */
1333
- surface;
1334
1295
  /** Optional description for OpenAPI documentation */
1335
1296
  description;
1336
1297
  /** Optional tags for OpenAPI documentation */
@@ -1343,22 +1304,10 @@ var Endpoint = class Endpoint extends require_functions.Function {
1343
1304
  * Content-Type header instead of JSON-serializing.
1344
1305
  */
1345
1306
  responseType;
1346
- /**
1347
- * This route's telemetry — `.telemetry({ ignore, attributes })` — read by
1348
- * the build, which hands it to the request middleware.
1349
- */
1350
- telemetry;
1351
1307
  /** Default headers to apply to all responses */
1352
1308
  defaultHeaders = {};
1353
1309
  /** Function to extract session data from the request context */
1354
1310
  getSession = () => ({});
1355
- /**
1356
- * Whether a session callback was given — `.session()` on the factory it was
1357
- * built from. A generated handler reads the session only when it is, so
1358
- * an endpoint with a session and no authorizer must say so: it used to be
1359
- * handed `undefined` in a production build and its session in `gkm dev`.
1360
- */
1361
- hasSession = false;
1362
1311
  /** Function to determine if the request is authorized */
1363
1312
  authorize = () => true;
1364
1313
  /** Optional rate limiting configuration */
@@ -1394,7 +1343,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
1394
1343
  * ```
1395
1344
  */
1396
1345
  static async buildOpenApiSchema(endpoints, options) {
1397
- return (0, _geekmidas_schema_openapi.buildOpenApiSchema)(endpoints, options);
1346
+ return (0, __geekmidas_schema_openapi.buildOpenApiSchema)(endpoints, options);
1398
1347
  }
1399
1348
  /**
1400
1349
  * Gets the full path including HTTP method and route.
@@ -1524,11 +1473,12 @@ var Endpoint = class Endpoint extends require_functions.Function {
1524
1473
  * @internal
1525
1474
  */
1526
1475
  refineInput(ctx) {
1527
- return (0, import_lodash_pick.default)(ctx, [
1476
+ const input = (0, import_lodash.default)(ctx, [
1528
1477
  "body",
1529
1478
  "query",
1530
1479
  "params"
1531
1480
  ]);
1481
+ return input;
1532
1482
  }
1533
1483
  handler = (ctx, response) => {
1534
1484
  for (const [key, value] of Object.entries(this.defaultHeaders)) response.header(key, value);
@@ -1551,7 +1501,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
1551
1501
  * @returns True if the object is an Endpoint
1552
1502
  */
1553
1503
  static isEndpoint(obj) {
1554
- return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === "dev.geekmidas.function.endpoint");
1504
+ return Boolean(obj && obj.__IS_FUNCTION__ === true && obj.type === require_Construct.ConstructType.Endpoint);
1555
1505
  }
1556
1506
  /**
1557
1507
  * Helper to check if response has metadata
@@ -1573,23 +1523,17 @@ var Endpoint = class Endpoint extends require_functions.Function {
1573
1523
  * @returns OpenAPI route definition with operation details
1574
1524
  */
1575
1525
  async toOpenApi3Route(componentCollector) {
1576
- const status = String(this.status);
1577
1526
  const operation = {
1578
1527
  operationId: this.operationId,
1579
1528
  ...this.description && { description: this.description },
1580
1529
  ...this.tags && this.tags.length > 0 && { tags: this.tags },
1581
- responses: { [status]: { description: "Successful response" } }
1530
+ responses: { "200": { description: "Successful response" } }
1582
1531
  };
1583
- const scheme = this.authorizer?.securityScheme;
1584
- if (this.authorizer && scheme && componentCollector) {
1585
- componentCollector.addSecurityScheme(this.authorizer.name, scheme);
1586
- operation.security = [{ [this.authorizer.name]: [] }];
1587
- }
1588
1532
  if (this.outputSchema) {
1589
- const responseSchema = await (0, _geekmidas_schema_conversion.convertSchemaWithComponents)(this.outputSchema, componentCollector);
1590
- if (responseSchema) (0, import_lodash_set.default)(operation, [
1533
+ const responseSchema = await (0, __geekmidas_schema_conversion.convertSchemaWithComponents)(this.outputSchema, componentCollector);
1534
+ if (responseSchema) (0, import_lodash$1.default)(operation, [
1591
1535
  "responses",
1592
- status,
1536
+ "200",
1593
1537
  "content",
1594
1538
  this.responseType,
1595
1539
  "schema"
@@ -1603,14 +1547,14 @@ var Endpoint = class Endpoint extends require_functions.Function {
1603
1547
  "PUT",
1604
1548
  "PATCH"
1605
1549
  ].includes(this.method) && "body" in this.input && this.input.body) {
1606
- const bodySchema = await (0, _geekmidas_schema_conversion.convertSchemaWithComponents)(this.input.body, componentCollector);
1607
- if (bodySchema) (0, import_lodash_set.default)(operation, ["requestBody"], {
1550
+ const bodySchema = await (0, __geekmidas_schema_conversion.convertSchemaWithComponents)(this.input.body, componentCollector);
1551
+ if (bodySchema) (0, import_lodash$1.default)(operation, ["requestBody"], {
1608
1552
  required: true,
1609
1553
  content: { "application/json": { schema: bodySchema } }
1610
1554
  });
1611
1555
  }
1612
1556
  if ("params" in this.input && this.input.params) {
1613
- const paramsSchema = await (0, _geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.params);
1557
+ const paramsSchema = await (0, __geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.params);
1614
1558
  if (paramsSchema && paramsSchema.type === "object" && paramsSchema.properties) for (const [name, schema] of Object.entries(paramsSchema.properties)) pathParameters.push({
1615
1559
  name,
1616
1560
  in: "path",
@@ -1619,7 +1563,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
1619
1563
  });
1620
1564
  }
1621
1565
  if ("query" in this.input && this.input.query) {
1622
- const querySchema = await (0, _geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.query);
1566
+ const querySchema = await (0, __geekmidas_schema_conversion.convertStandardSchemaToJsonSchema)(this.input.query);
1623
1567
  if (querySchema && querySchema.type === "object" && querySchema.properties) for (const [name, schema] of Object.entries(querySchema.properties)) queryParameters.push({
1624
1568
  name,
1625
1569
  in: "query",
@@ -1652,8 +1596,8 @@ var Endpoint = class Endpoint extends require_functions.Function {
1652
1596
  * @param options.status - Success HTTP status code (default: 200)
1653
1597
  * @param options.authorizer - Optional authorizer configuration
1654
1598
  */
1655
- constructor({ fn, method, route, description, tags, input, logger, output: outputSchema, services, constructs, timeout, memorySize, getSession, authorize, rateLimit, status = 200, events, authorizer, surface, auditorStorageService, actorExtractor, audits, databaseService, rlsConfig, rlsBypass, responseType, telemetry }) {
1656
- super(fn, timeout, "dev.geekmidas.function.endpoint", input, outputSchema, services, logger, events, memorySize, auditorStorageService, void 0, constructs);
1599
+ constructor({ fn, method, route, description, tags, input, logger, output: outputSchema, services, timeout, memorySize, getSession, authorize, rateLimit, status = SuccessStatus.OK, publisherService, events, authorizer, auditorStorageService, actorExtractor, audits, databaseService, rlsConfig, rlsBypass, responseType }) {
1600
+ super(fn, timeout, require_Construct.ConstructType.Endpoint, input, outputSchema, services, logger, publisherService, events, memorySize, auditorStorageService);
1657
1601
  this.route = route;
1658
1602
  this.method = method;
1659
1603
  this.description = description;
@@ -1661,18 +1605,10 @@ var Endpoint = class Endpoint extends require_functions.Function {
1661
1605
  this.status = status;
1662
1606
  this.responseType = responseType ?? "application/json";
1663
1607
  this.endpointFn = fn;
1664
- if (telemetry) this.telemetry = telemetry;
1665
- if (getSession) {
1666
- this.hasSession = true;
1667
- this.getSession = (ctx) => getSession({
1668
- ...ctx,
1669
- auth: sessionAuth(surface, ctx.header)
1670
- });
1671
- }
1608
+ if (getSession) this.getSession = getSession;
1672
1609
  if (authorize) this.authorize = authorize;
1673
1610
  if (rateLimit) this.rateLimit = rateLimit;
1674
1611
  if (authorizer) this.authorizer = authorizer;
1675
- this.surface = surface;
1676
1612
  if (actorExtractor) this.actorExtractor = actorExtractor;
1677
1613
  if (audits) this.audits = audits;
1678
1614
  if (databaseService) this.databaseService = databaseService;
@@ -1724,30 +1660,261 @@ var ResponseBuilder = class {
1724
1660
  return this.metadata;
1725
1661
  }
1726
1662
  };
1663
+ /**
1664
+ * HTTP success status codes that can be returned by endpoints.
1665
+ */
1666
+ let SuccessStatus = /* @__PURE__ */ function(SuccessStatus$1) {
1667
+ /** Standard response for successful HTTP requests */
1668
+ SuccessStatus$1[SuccessStatus$1["OK"] = 200] = "OK";
1669
+ /** Request has been fulfilled and resulted in a new resource being created */
1670
+ SuccessStatus$1[SuccessStatus$1["Created"] = 201] = "Created";
1671
+ /** Request has been accepted for processing, but processing is not complete */
1672
+ SuccessStatus$1[SuccessStatus$1["Accepted"] = 202] = "Accepted";
1673
+ /** Server successfully processed the request but is not returning any content */
1674
+ SuccessStatus$1[SuccessStatus$1["NoContent"] = 204] = "NoContent";
1675
+ /** Server successfully processed the request and is not returning any content, client should reset the document view */
1676
+ SuccessStatus$1[SuccessStatus$1["ResetContent"] = 205] = "ResetContent";
1677
+ /** Server is delivering only part of the resource due to a range header */
1678
+ SuccessStatus$1[SuccessStatus$1["PartialContent"] = 206] = "PartialContent";
1679
+ return SuccessStatus$1;
1680
+ }({});
1681
+
1727
1682
  //#endregion
1728
- Object.defineProperty(exports, "Endpoint", {
1729
- enumerable: true,
1730
- get: function() {
1731
- return Endpoint;
1732
- }
1683
+ //#region src/endpoints/lazyAccessors.ts
1684
+ /**
1685
+ * Create a lazy header accessor for Hono.
1686
+ * Uses `c.req.header(name)` for single lookups (native, case-insensitive).
1687
+ * Only calls `c.req.header()` to get all headers when needed.
1688
+ */
1689
+ function createHonoHeaders(c) {
1690
+ let allHeaders = null;
1691
+ return (key) => {
1692
+ if (key !== void 0) return c.req.header(key);
1693
+ if (!allHeaders) allHeaders = c.req.header();
1694
+ return allHeaders;
1695
+ };
1696
+ }
1697
+ /**
1698
+ * Create a lazy cookie accessor for Hono.
1699
+ * Uses `getCookie(c, name)` for single lookups (native).
1700
+ * Only parses the cookie header when all cookies are requested.
1701
+ */
1702
+ function createHonoCookies(c) {
1703
+ let allCookies = null;
1704
+ return (name) => {
1705
+ if (name !== void 0) return (0, hono_cookie.getCookie)(c, name);
1706
+ if (!allCookies) {
1707
+ allCookies = {};
1708
+ const cookieHeader = c.req.header("cookie");
1709
+ if (cookieHeader) for (const part of cookieHeader.split(";")) {
1710
+ const trimmed = part.trim();
1711
+ const eqIndex = trimmed.indexOf("=");
1712
+ if (eqIndex > 0) {
1713
+ const key = trimmed.slice(0, eqIndex);
1714
+ const value = trimmed.slice(eqIndex + 1);
1715
+ allCookies[key] = value;
1716
+ }
1717
+ }
1718
+ }
1719
+ return allCookies;
1720
+ };
1721
+ }
1722
+ /**
1723
+ * Create a lazy header accessor for API Gateway events.
1724
+ * Handles case-insensitive lookups.
1725
+ */
1726
+ function createApiGatewayHeaders(headers) {
1727
+ let normalizedHeaders = null;
1728
+ const normalize = () => {
1729
+ if (!normalizedHeaders) {
1730
+ normalizedHeaders = {};
1731
+ if (headers) {
1732
+ for (const [k, v] of Object.entries(headers)) if (v !== void 0) normalizedHeaders[k.toLowerCase()] = v;
1733
+ }
1734
+ }
1735
+ return normalizedHeaders;
1736
+ };
1737
+ return (key) => {
1738
+ if (key !== void 0) {
1739
+ if (headers) {
1740
+ const direct = headers[key] ?? headers[key.toLowerCase()];
1741
+ if (direct !== void 0) return direct;
1742
+ return normalize()[key.toLowerCase()];
1743
+ }
1744
+ return void 0;
1745
+ }
1746
+ return normalize();
1747
+ };
1748
+ }
1749
+ /**
1750
+ * Create a lazy cookie accessor for API Gateway events.
1751
+ * Decodes URL-encoded values to match browser behavior.
1752
+ */
1753
+ function createApiGatewayCookies(cookies, cookieHeader) {
1754
+ let parsed = null;
1755
+ const parse = () => {
1756
+ if (!parsed) {
1757
+ parsed = {};
1758
+ if (cookies) for (const cookie of cookies) {
1759
+ const eqIndex = cookie.indexOf("=");
1760
+ if (eqIndex > 0) {
1761
+ const key = cookie.slice(0, eqIndex);
1762
+ const value = cookie.slice(eqIndex + 1);
1763
+ parsed[key] = decodeURIComponent(value);
1764
+ }
1765
+ }
1766
+ else if (cookieHeader) for (const part of cookieHeader.split(";")) {
1767
+ const trimmed = part.trim();
1768
+ const eqIndex = trimmed.indexOf("=");
1769
+ if (eqIndex > 0) {
1770
+ const key = trimmed.slice(0, eqIndex);
1771
+ const value = trimmed.slice(eqIndex + 1);
1772
+ parsed[key] = decodeURIComponent(value);
1773
+ }
1774
+ }
1775
+ }
1776
+ return parsed;
1777
+ };
1778
+ return (name) => {
1779
+ if (name !== void 0) return parse()[name];
1780
+ return parse();
1781
+ };
1782
+ }
1783
+ /**
1784
+ * Create a lazy header accessor for plain object headers (test adaptor, etc).
1785
+ * Headers are already available as an object, just provide lazy access.
1786
+ */
1787
+ function createObjectHeaders(headers) {
1788
+ let normalized = null;
1789
+ return (key) => {
1790
+ if (key !== void 0) {
1791
+ if (headers) {
1792
+ const direct = headers[key] ?? headers[key.toLowerCase()];
1793
+ if (direct !== void 0) return direct;
1794
+ }
1795
+ if (!normalized && headers) {
1796
+ normalized = {};
1797
+ for (const [k, v] of Object.entries(headers)) normalized[k.toLowerCase()] = v;
1798
+ }
1799
+ return normalized?.[key.toLowerCase()];
1800
+ }
1801
+ if (!normalized && headers) {
1802
+ normalized = {};
1803
+ for (const [k, v] of Object.entries(headers)) normalized[k.toLowerCase()] = v;
1804
+ }
1805
+ return normalized ?? {};
1806
+ };
1807
+ }
1808
+ /**
1809
+ * Create a lazy cookie accessor from a cookie header string.
1810
+ * Decodes URL-encoded values to match browser behavior.
1811
+ */
1812
+ function createCookieHeaderAccessor(cookieHeader) {
1813
+ let parsed = null;
1814
+ const parse = () => {
1815
+ if (!parsed) {
1816
+ parsed = {};
1817
+ if (cookieHeader) for (const part of cookieHeader.split(";")) {
1818
+ const trimmed = part.trim();
1819
+ const eqIndex = trimmed.indexOf("=");
1820
+ if (eqIndex > 0) {
1821
+ const key = trimmed.slice(0, eqIndex);
1822
+ const value = trimmed.slice(eqIndex + 1);
1823
+ parsed[key] = decodeURIComponent(value);
1824
+ }
1825
+ }
1826
+ }
1827
+ return parsed;
1828
+ };
1829
+ return (name) => {
1830
+ if (name !== void 0) return parse()[name];
1831
+ return parse();
1832
+ };
1833
+ }
1834
+ /**
1835
+ * Create a no-op header accessor (for minimal endpoints that don't use headers).
1836
+ */
1837
+ function createNoopHeaders() {
1838
+ return (key) => {
1839
+ if (key !== void 0) return void 0;
1840
+ return {};
1841
+ };
1842
+ }
1843
+ /**
1844
+ * Create a no-op cookie accessor (for minimal endpoints that don't use cookies).
1845
+ */
1846
+ function createNoopCookies() {
1847
+ return (name) => {
1848
+ if (name !== void 0) return void 0;
1849
+ return {};
1850
+ };
1851
+ }
1852
+
1853
+ //#endregion
1854
+ Object.defineProperty(exports, 'Endpoint', {
1855
+ enumerable: true,
1856
+ get: function () {
1857
+ return Endpoint;
1858
+ }
1733
1859
  });
1734
- Object.defineProperty(exports, "NoAuthenticator", {
1735
- enumerable: true,
1736
- get: function() {
1737
- return NoAuthenticator;
1738
- }
1860
+ Object.defineProperty(exports, 'ResponseBuilder', {
1861
+ enumerable: true,
1862
+ get: function () {
1863
+ return ResponseBuilder;
1864
+ }
1739
1865
  });
1740
- Object.defineProperty(exports, "ResponseBuilder", {
1741
- enumerable: true,
1742
- get: function() {
1743
- return ResponseBuilder;
1744
- }
1866
+ Object.defineProperty(exports, 'createApiGatewayCookies', {
1867
+ enumerable: true,
1868
+ get: function () {
1869
+ return createApiGatewayCookies;
1870
+ }
1745
1871
  });
1746
- Object.defineProperty(exports, "require_lodash_set", {
1747
- enumerable: true,
1748
- get: function() {
1749
- return require_lodash_set;
1750
- }
1872
+ Object.defineProperty(exports, 'createApiGatewayHeaders', {
1873
+ enumerable: true,
1874
+ get: function () {
1875
+ return createApiGatewayHeaders;
1876
+ }
1751
1877
  });
1752
-
1753
- //# sourceMappingURL=Endpoint-BoUg8ocM.cjs.map
1878
+ Object.defineProperty(exports, 'createCookieHeaderAccessor', {
1879
+ enumerable: true,
1880
+ get: function () {
1881
+ return createCookieHeaderAccessor;
1882
+ }
1883
+ });
1884
+ Object.defineProperty(exports, 'createHonoCookies', {
1885
+ enumerable: true,
1886
+ get: function () {
1887
+ return createHonoCookies;
1888
+ }
1889
+ });
1890
+ Object.defineProperty(exports, 'createHonoHeaders', {
1891
+ enumerable: true,
1892
+ get: function () {
1893
+ return createHonoHeaders;
1894
+ }
1895
+ });
1896
+ Object.defineProperty(exports, 'createNoopCookies', {
1897
+ enumerable: true,
1898
+ get: function () {
1899
+ return createNoopCookies;
1900
+ }
1901
+ });
1902
+ Object.defineProperty(exports, 'createNoopHeaders', {
1903
+ enumerable: true,
1904
+ get: function () {
1905
+ return createNoopHeaders;
1906
+ }
1907
+ });
1908
+ Object.defineProperty(exports, 'createObjectHeaders', {
1909
+ enumerable: true,
1910
+ get: function () {
1911
+ return createObjectHeaders;
1912
+ }
1913
+ });
1914
+ Object.defineProperty(exports, 'require_lodash', {
1915
+ enumerable: true,
1916
+ get: function () {
1917
+ return require_lodash$1;
1918
+ }
1919
+ });
1920
+ //# sourceMappingURL=lazyAccessors-D04oftGw.cjs.map