@geekmidas/constructs 7.0.1 → 10.0.0-alpha.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.
- package/README.md +71 -44
- package/dist/{AWSScheduledFunction-ysaCsdWx.d.mts → AWSScheduledFunction-BvFvBsBN.d.cts} +10 -5
- package/dist/{AWSScheduledFunction-ysaCsdWx.d.mts.map → AWSScheduledFunction-BvFvBsBN.d.cts.map} +1 -1
- package/dist/{AWSScheduledFunction-CTIa90EH.d.cts → AWSScheduledFunction-CVccZO-L.d.mts} +10 -5
- package/dist/{AWSScheduledFunction-CTIa90EH.d.cts.map → AWSScheduledFunction-CVccZO-L.d.mts.map} +1 -1
- package/dist/{AWSScheduledFunction-CufMMhGB.mjs → AWSScheduledFunction-Db1lttJH.mjs} +3 -3
- package/dist/{AWSScheduledFunction-CufMMhGB.mjs.map → AWSScheduledFunction-Db1lttJH.mjs.map} +1 -1
- package/dist/{AWSScheduledFunction-DbkDr8CA.cjs → AWSScheduledFunction-qu4ieRZR.cjs} +9 -9
- package/dist/{AWSScheduledFunction-DbkDr8CA.cjs.map → AWSScheduledFunction-qu4ieRZR.cjs.map} +1 -1
- package/dist/{Construct-_1wX7p_Y.d.cts → Construct-B-xc0SE9.d.mts} +27 -5
- package/dist/Construct-B-xc0SE9.d.mts.map +1 -0
- package/dist/{Construct-r0U2zBwW.mjs → Construct-HmWM6YYu.mjs} +4 -3
- package/dist/Construct-HmWM6YYu.mjs.map +1 -0
- package/dist/{Construct-DCMuYOox.d.mts → Construct-WhCXIOPV.d.cts} +29 -7
- package/dist/Construct-WhCXIOPV.d.cts.map +1 -0
- package/dist/{Construct-vXMZJgRp.cjs → Construct-roId57cU.cjs} +7 -43
- package/dist/Construct-roId57cU.cjs.map +1 -0
- package/dist/{lazyAccessors-DmTG8sQH.cjs → Endpoint-BBkV6l0k.cjs} +869 -1079
- package/dist/Endpoint-BBkV6l0k.cjs.map +1 -0
- package/dist/{lazyAccessors-DfqZR6C4.mjs → Endpoint-BGwpNEX4.mjs} +840 -1003
- package/dist/Endpoint-BGwpNEX4.mjs.map +1 -0
- package/dist/{Endpoint-CAzNbDEt.d.cts → Endpoint-BnxZqIX-.d.cts} +53 -4
- package/dist/Endpoint-BnxZqIX-.d.cts.map +1 -0
- package/dist/{Endpoint-CLPSIl6S.d.mts → Endpoint-ROcXU-eH.d.mts} +55 -6
- package/dist/Endpoint-ROcXU-eH.d.mts.map +1 -0
- package/dist/EndpointFactory-DYoGLaIT.cjs +850 -0
- package/dist/EndpointFactory-DYoGLaIT.cjs.map +1 -0
- package/dist/EndpointFactory-Di0X9AWp.mjs +808 -0
- package/dist/EndpointFactory-Di0X9AWp.mjs.map +1 -0
- package/dist/{HonoEndpointAdaptor-DJDT3PMx.mjs → HonoEndpointAdaptor-DFKIIG2o.mjs} +5 -4
- package/dist/HonoEndpointAdaptor-DFKIIG2o.mjs.map +1 -0
- package/dist/{HonoEndpointAdaptor-CkJENANP.cjs → HonoEndpointAdaptor-wMsCyMgt.cjs} +24 -23
- package/dist/HonoEndpointAdaptor-wMsCyMgt.cjs.map +1 -0
- package/dist/{Queue-DaxjwmOQ.d.cts → Queue-D6WeziRD.d.cts} +43 -4
- package/dist/Queue-D6WeziRD.d.cts.map +1 -0
- package/dist/{Queue-HBDf0fqz.d.mts → Queue-DpUeqdC8.d.mts} +43 -4
- package/dist/Queue-DpUeqdC8.d.mts.map +1 -0
- package/dist/{Subscriber-B69ngPwl.d.cts → Subscriber-4rBJgDKI.d.mts} +9 -4
- package/dist/{Subscriber-B69ngPwl.d.cts.map → Subscriber-4rBJgDKI.d.mts.map} +1 -1
- package/dist/{Subscriber-D8Xm-86W.d.mts → Subscriber-DVQowdyj.d.cts} +11 -6
- package/dist/Subscriber-DVQowdyj.d.cts.map +1 -0
- package/dist/{Topic-C5ZMfveW.d.cts → Topic-Ohx9dvWr.d.cts} +33 -2
- package/dist/Topic-Ohx9dvWr.d.cts.map +1 -0
- package/dist/{Topic-DT10AqHk.d.mts → Topic-cmy2jOUy.d.mts} +33 -2
- package/dist/Topic-cmy2jOUy.d.mts.map +1 -0
- package/dist/adaptors/aws.cjs +39 -26
- package/dist/adaptors/aws.cjs.map +1 -1
- package/dist/adaptors/aws.d.cts +24 -16
- package/dist/adaptors/aws.d.cts.map +1 -1
- package/dist/adaptors/aws.d.mts +25 -17
- package/dist/adaptors/aws.d.mts.map +1 -1
- package/dist/adaptors/aws.mjs +26 -14
- package/dist/adaptors/aws.mjs.map +1 -1
- package/dist/adaptors/hono.cjs +9 -6
- package/dist/adaptors/hono.d.cts +7 -6
- package/dist/adaptors/hono.d.cts.map +1 -1
- package/dist/adaptors/hono.d.mts +8 -7
- package/dist/adaptors/hono.d.mts.map +1 -1
- package/dist/adaptors/hono.mjs +9 -6
- package/dist/adaptors/testing.cjs +18 -14
- package/dist/adaptors/testing.cjs.map +1 -1
- package/dist/adaptors/testing.d.cts +7 -6
- package/dist/adaptors/testing.d.cts.map +1 -1
- package/dist/adaptors/testing.d.mts +11 -10
- package/dist/adaptors/testing.d.mts.map +1 -1
- package/dist/adaptors/testing.mjs +10 -7
- package/dist/adaptors/testing.mjs.map +1 -1
- package/dist/auth.cjs +165 -0
- package/dist/auth.cjs.map +1 -0
- package/dist/auth.d.cts +108 -0
- package/dist/auth.d.cts.map +1 -0
- package/dist/auth.d.mts +108 -0
- package/dist/auth.d.mts.map +1 -0
- package/dist/auth.mjs +164 -0
- package/dist/auth.mjs.map +1 -0
- package/dist/cache-0ANvRQnD.mjs +51 -0
- package/dist/cache-0ANvRQnD.mjs.map +1 -0
- package/dist/cache-3WSvAulx.cjs +57 -0
- package/dist/cache-3WSvAulx.cjs.map +1 -0
- package/dist/cache-CdQ7OLpR.d.cts +47 -0
- package/dist/cache-CdQ7OLpR.d.cts.map +1 -0
- package/dist/cache-DYoJFcfd.d.mts +47 -0
- package/dist/cache-DYoJFcfd.d.mts.map +1 -0
- package/dist/cache.cjs +3 -0
- package/dist/cache.d.cts +3 -0
- package/dist/cache.d.mts +3 -0
- package/dist/cache.mjs +3 -0
- package/dist/chunk-DWy1uDak.cjs +39 -0
- package/dist/clone-DblgEZZa.mjs +39 -0
- package/dist/clone-DblgEZZa.mjs.map +1 -0
- package/dist/clone-Dy0cR2SZ.cjs +45 -0
- package/dist/clone-Dy0cR2SZ.cjs.map +1 -0
- package/dist/construct-interface-BfjcOD_E.cjs +117 -0
- package/dist/construct-interface-BfjcOD_E.cjs.map +1 -0
- package/dist/construct-interface-BqwRNYA2.d.mts +131 -0
- package/dist/construct-interface-BqwRNYA2.d.mts.map +1 -0
- package/dist/construct-interface-D2nNkHUN.d.cts +131 -0
- package/dist/construct-interface-D2nNkHUN.d.cts.map +1 -0
- package/dist/construct-interface-Z4CpS8tK.mjs +81 -0
- package/dist/construct-interface-Z4CpS8tK.mjs.map +1 -0
- package/dist/construct-interface.cjs +8 -0
- package/dist/construct-interface.d.cts +2 -0
- package/dist/construct-interface.d.mts +2 -0
- package/dist/construct-interface.mjs +3 -0
- package/dist/credential.cjs +96 -0
- package/dist/credential.cjs.map +1 -0
- package/dist/credential.d.cts +61 -0
- package/dist/credential.d.cts.map +1 -0
- package/dist/credential.d.mts +61 -0
- package/dist/credential.d.mts.map +1 -0
- package/dist/credential.mjs +94 -0
- package/dist/credential.mjs.map +1 -0
- package/dist/crons/index.cjs +39 -37
- package/dist/crons/index.cjs.map +1 -1
- package/dist/crons/index.d.cts +21 -8
- package/dist/crons/index.d.cts.map +1 -1
- package/dist/crons/index.d.mts +29 -13
- package/dist/crons/index.d.mts.map +1 -1
- package/dist/crons/index.mjs +37 -36
- package/dist/crons/index.mjs.map +1 -1
- package/dist/database/kysely.cjs +181 -0
- package/dist/database/kysely.cjs.map +1 -0
- package/dist/database/kysely.d.cts +152 -0
- package/dist/database/kysely.d.cts.map +1 -0
- package/dist/database/kysely.d.mts +152 -0
- package/dist/database/kysely.d.mts.map +1 -0
- package/dist/database/kysely.mjs +180 -0
- package/dist/database/kysely.mjs.map +1 -0
- package/dist/email.cjs +59 -0
- package/dist/email.cjs.map +1 -0
- package/dist/email.d.cts +50 -0
- package/dist/email.d.cts.map +1 -0
- package/dist/email.d.mts +50 -0
- package/dist/email.d.mts.map +1 -0
- package/dist/email.mjs +58 -0
- package/dist/email.mjs.map +1 -0
- package/dist/endpoints/index.cjs +21 -747
- package/dist/endpoints/index.d.cts +7 -343
- package/dist/endpoints/index.d.mts +7 -342
- package/dist/endpoints/index.mjs +11 -738
- package/dist/file-server.cjs +154 -0
- package/dist/file-server.cjs.map +1 -0
- package/dist/file-server.d.cts +156 -0
- package/dist/file-server.d.cts.map +1 -0
- package/dist/file-server.d.mts +156 -0
- package/dist/file-server.d.mts.map +1 -0
- package/dist/file-server.mjs +152 -0
- package/dist/file-server.mjs.map +1 -0
- package/dist/functions/index.cjs +4 -2
- package/dist/functions/index.d.cts +3 -2
- package/dist/functions/index.d.mts +3 -2
- package/dist/functions/index.mjs +4 -2
- package/dist/{functions-B-qt91O7.mjs → functions-CvT_q7Y4.mjs} +55 -51
- package/dist/functions-CvT_q7Y4.mjs.map +1 -0
- package/dist/{functions-C8i1kCMM.cjs → functions-DukjG8ov.cjs} +62 -57
- package/dist/functions-DukjG8ov.cjs.map +1 -0
- package/dist/index-7OcOWe75.d.cts +419 -0
- package/dist/index-7OcOWe75.d.cts.map +1 -0
- package/dist/index-Bt-F7u8L.d.mts +419 -0
- package/dist/index-Bt-F7u8L.d.mts.map +1 -0
- package/dist/{index-DP6fqv0I.d.mts → index-CPeqtKgq.d.mts} +48 -19
- package/dist/index-CPeqtKgq.d.mts.map +1 -0
- package/dist/{index-BGeTScmi.d.cts → index-Dadljnh_.d.cts} +36 -9
- package/dist/index-Dadljnh_.d.cts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/lazyAccessors-DM6HcXQk.mjs +175 -0
- package/dist/lazyAccessors-DM6HcXQk.mjs.map +1 -0
- package/dist/lazyAccessors-DrJj8NpA.cjs +223 -0
- package/dist/lazyAccessors-DrJj8NpA.cjs.map +1 -0
- package/dist/object-storage.cjs +48 -0
- package/dist/object-storage.cjs.map +1 -0
- package/dist/object-storage.d.cts +36 -0
- package/dist/object-storage.d.cts.map +1 -0
- package/dist/object-storage.d.mts +36 -0
- package/dist/object-storage.d.mts.map +1 -0
- package/dist/object-storage.mjs +47 -0
- package/dist/object-storage.mjs.map +1 -0
- package/dist/{processAudits-CKjjivyz.cjs → processAudits-Bc8rz6Ev.cjs} +3 -3
- package/dist/{processAudits-CKjjivyz.cjs.map → processAudits-Bc8rz6Ev.cjs.map} +1 -1
- package/dist/{processAudits-ySnizdMG.mjs → processAudits-D89tICM4.mjs} +1 -1
- package/dist/{processAudits-ySnizdMG.mjs.map → processAudits-D89tICM4.mjs.map} +1 -1
- package/dist/{publisher-BrFOF847.mjs → publisher-CGEo8UKD.mjs} +1 -1
- package/dist/{publisher-BrFOF847.mjs.map → publisher-CGEo8UKD.mjs.map} +1 -1
- package/dist/{publisher-lFQleddL.cjs → publisher-CqGsXB2X.cjs} +1 -1
- package/dist/{publisher-lFQleddL.cjs.map → publisher-CqGsXB2X.cjs.map} +1 -1
- package/dist/queue/index.cjs +92 -30
- package/dist/queue/index.cjs.map +1 -1
- package/dist/queue/index.d.cts +19 -4
- package/dist/queue/index.d.cts.map +1 -1
- package/dist/queue/index.d.mts +22 -6
- package/dist/queue/index.d.mts.map +1 -1
- package/dist/queue/index.mjs +90 -29
- package/dist/queue/index.mjs.map +1 -1
- package/dist/rest-api.cjs +187 -0
- package/dist/rest-api.cjs.map +1 -0
- package/dist/rest-api.d.cts +221 -0
- package/dist/rest-api.d.cts.map +1 -0
- package/dist/rest-api.d.mts +221 -0
- package/dist/rest-api.d.mts.map +1 -0
- package/dist/rest-api.mjs +186 -0
- package/dist/rest-api.mjs.map +1 -0
- package/dist/site.cjs +48 -0
- package/dist/site.cjs.map +1 -0
- package/dist/site.d.cts +101 -0
- package/dist/site.d.cts.map +1 -0
- package/dist/site.d.mts +101 -0
- package/dist/site.d.mts.map +1 -0
- package/dist/site.mjs +47 -0
- package/dist/site.mjs.map +1 -0
- package/dist/subscribers/index.cjs +35 -27
- package/dist/subscribers/index.cjs.map +1 -1
- package/dist/subscribers/index.d.cts +20 -5
- package/dist/subscribers/index.d.cts.map +1 -1
- package/dist/subscribers/index.d.mts +23 -7
- package/dist/subscribers/index.d.mts.map +1 -1
- package/dist/subscribers/index.mjs +34 -27
- package/dist/subscribers/index.mjs.map +1 -1
- package/dist/surfaceEnv-BFXEms2f.cjs +39 -0
- package/dist/surfaceEnv-BFXEms2f.cjs.map +1 -0
- package/dist/surfaceEnv-C3Ktahea.mjs +27 -0
- package/dist/surfaceEnv-C3Ktahea.mjs.map +1 -0
- package/dist/{telemetry-3vdxGn4q.d.mts → telemetry-C3L0iS28.d.cts} +2 -2
- package/dist/{telemetry-3vdxGn4q.d.mts.map → telemetry-C3L0iS28.d.cts.map} +1 -1
- package/dist/{telemetry-Dqx-D3F7.d.cts → telemetry-D7bVFLGi.d.mts} +2 -2
- package/dist/{telemetry-Dqx-D3F7.d.cts.map → telemetry-D7bVFLGi.d.mts.map} +1 -1
- package/dist/topic/index.cjs +56 -13
- package/dist/topic/index.cjs.map +1 -1
- package/dist/topic/index.d.cts +2 -2
- package/dist/topic/index.d.cts.map +1 -1
- package/dist/topic/index.d.mts +2 -2
- package/dist/topic/index.d.mts.map +1 -1
- package/dist/topic/index.mjs +54 -12
- package/dist/topic/index.mjs.map +1 -1
- package/dist/{types-BDNGr7pv.d.mts → types-BlAkSuGI.d.cts} +1 -1
- package/dist/{types-BDNGr7pv.d.mts.map → types-BlAkSuGI.d.cts.map} +1 -1
- package/dist/{types-BdAaYDvd.d.cts → types-aKksMEWL.d.mts} +1 -1
- package/dist/{types-BdAaYDvd.d.cts.map → types-aKksMEWL.d.mts.map} +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +155 -23
- package/CHANGELOG.md +0 -366
- package/dist/Construct-DCMuYOox.d.mts.map +0 -1
- package/dist/Construct-_1wX7p_Y.d.cts.map +0 -1
- package/dist/Construct-r0U2zBwW.mjs.map +0 -1
- package/dist/Construct-vXMZJgRp.cjs.map +0 -1
- package/dist/Endpoint-CAzNbDEt.d.cts.map +0 -1
- package/dist/Endpoint-CLPSIl6S.d.mts.map +0 -1
- package/dist/HonoEndpointAdaptor-CkJENANP.cjs.map +0 -1
- package/dist/HonoEndpointAdaptor-DJDT3PMx.mjs.map +0 -1
- package/dist/Queue-DaxjwmOQ.d.cts.map +0 -1
- package/dist/Queue-HBDf0fqz.d.mts.map +0 -1
- package/dist/Subscriber-D8Xm-86W.d.mts.map +0 -1
- package/dist/Topic-C5ZMfveW.d.cts.map +0 -1
- package/dist/Topic-DT10AqHk.d.mts.map +0 -1
- package/dist/endpoints/index.cjs.map +0 -1
- package/dist/endpoints/index.d.cts.map +0 -1
- package/dist/endpoints/index.d.mts.map +0 -1
- package/dist/endpoints/index.mjs.map +0 -1
- package/dist/functions-B-qt91O7.mjs.map +0 -1
- package/dist/functions-C8i1kCMM.cjs.map +0 -1
- package/dist/index-BGeTScmi.d.cts.map +0 -1
- package/dist/index-DP6fqv0I.d.mts.map +0 -1
- package/dist/lazyAccessors-DfqZR6C4.mjs.map +0 -1
- package/dist/lazyAccessors-DmTG8sQH.cjs.map +0 -1
- package/src/Construct.ts +0 -204
- package/src/__benchmarks__/build-time-optimization.bench.ts +0 -274
- package/src/__benchmarks__/endpoint.bench.ts +0 -494
- package/src/__benchmarks__/fixtures.ts +0 -241
- package/src/__benchmarks__/hono-adaptor.bench.ts +0 -533
- package/src/__benchmarks__/hono-server.bench.ts +0 -249
- package/src/__benchmarks__/response-builder.bench.ts +0 -428
- package/src/__benchmarks__/strategies/strategy-a-lazy-services.ts +0 -319
- package/src/__benchmarks__/strategies/strategy-c-middleware.ts +0 -530
- package/src/__benchmarks__/strategies/strategy-d-opt-in-events.ts +0 -567
- package/src/__tests__/Construct.environment.spec.ts +0 -704
- package/src/__tests__/publisher.setting.spec.ts +0 -508
- package/src/__tests__/publisher.spec.ts +0 -452
- package/src/adaptors/aws.ts +0 -6
- package/src/adaptors/hono.ts +0 -1
- package/src/adaptors/testing.ts +0 -11
- package/src/crons/AWSScheduledFunction.ts +0 -73
- package/src/crons/Cron.ts +0 -149
- package/src/crons/CronBuilder.ts +0 -271
- package/src/crons/__tests__/AWSScheduledFunction.spec.ts +0 -152
- package/src/crons/__tests__/Cron.spec.ts +0 -464
- package/src/crons/__tests__/CronBuilder.state-isolation.spec.ts +0 -227
- package/src/crons/index.ts +0 -12
- package/src/endpoints/AmazonApiGatewayEndpointAdaptor.ts +0 -677
- package/src/endpoints/AmazonApiGatewayV1EndpointAdaptor.ts +0 -105
- package/src/endpoints/AmazonApiGatewayV2EndpointAdaptor.ts +0 -97
- package/src/endpoints/Authorizer.ts +0 -152
- package/src/endpoints/Endpoint.ts +0 -1287
- package/src/endpoints/EndpointBuilder.ts +0 -758
- package/src/endpoints/EndpointFactory.ts +0 -1148
- package/src/endpoints/HonoEndpointAdaptor.ts +0 -677
- package/src/endpoints/MswEndpointAdaptor.ts +0 -226
- package/src/endpoints/TestEndpointAdaptor.ts +0 -422
- package/src/endpoints/__tests__/AmazonApiGatewayV1EndpointAdaptor.audits.spec.ts +0 -499
- package/src/endpoints/__tests__/AmazonApiGatewayV1EndpointAdaptor.events.spec.ts +0 -560
- package/src/endpoints/__tests__/AmazonApiGatewayV1EndpointAdaptor.spec.ts +0 -1304
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.audits.spec.ts +0 -626
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.events.spec.ts +0 -732
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.factory-publisher.spec.ts +0 -296
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.kysely-audit.integration.spec.ts +0 -951
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.responseType.spec.ts +0 -111
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.rls.spec.ts +0 -307
- package/src/endpoints/__tests__/AmazonApiGatewayV2EndpointAdaptor.spec.ts +0 -629
- package/src/endpoints/__tests__/Authorizer.spec.ts +0 -286
- package/src/endpoints/__tests__/Endpoint.cookies.spec.ts +0 -207
- package/src/endpoints/__tests__/Endpoint.headers.spec.ts +0 -187
- package/src/endpoints/__tests__/Endpoint.manifest.spec.ts +0 -175
- package/src/endpoints/__tests__/Endpoint.spec.ts +0 -857
- package/src/endpoints/__tests__/EndpointBuilder.audit.spec.ts +0 -448
- package/src/endpoints/__tests__/EndpointBuilder.responseType.spec.ts +0 -47
- package/src/endpoints/__tests__/EndpointBuilder.spec.ts +0 -523
- package/src/endpoints/__tests__/EndpointFactory.authorizers.spec.ts +0 -492
- package/src/endpoints/__tests__/EndpointFactory.database-auditor.spec.ts +0 -509
- package/src/endpoints/__tests__/EndpointFactory.reference-audit.spec.ts +0 -190
- package/src/endpoints/__tests__/EndpointFactory.spec.ts +0 -479
- package/src/endpoints/__tests__/EndpointFactory.state-isolation.spec.ts +0 -155
- package/src/endpoints/__tests__/HonoEndpointAdaptor.audit-transactions.spec.ts +0 -703
- package/src/endpoints/__tests__/HonoEndpointAdaptor.audits.spec.ts +0 -632
- package/src/endpoints/__tests__/HonoEndpointAdaptor.events.spec.ts +0 -577
- package/src/endpoints/__tests__/HonoEndpointAdaptor.kysely-audit.integration.spec.ts +0 -1067
- package/src/endpoints/__tests__/HonoEndpointAdaptor.openapi.spec.ts +0 -317
- package/src/endpoints/__tests__/HonoEndpointAdaptor.pgboss-publisher.spec.ts +0 -289
- package/src/endpoints/__tests__/HonoEndpointAdaptor.responseType.spec.ts +0 -128
- package/src/endpoints/__tests__/HonoEndpointAdaptor.spec.ts +0 -1207
- package/src/endpoints/__tests__/MswEndpointAdaptor.spec.ts +0 -211
- package/src/endpoints/__tests__/ResponseBuilder.spec.ts +0 -235
- package/src/endpoints/__tests__/TestEndpointAdaptor.audits.spec.ts +0 -602
- package/src/endpoints/__tests__/TestEndpointAdaptor.spec.ts +0 -1044
- package/src/endpoints/__tests__/__snapshots__/HonoEndpointAdaptor.spec.ts.snap +0 -54
- package/src/endpoints/__tests__/endpoint-types.test.ts +0 -88
- package/src/endpoints/__tests__/helpers.spec.ts +0 -37
- package/src/endpoints/__tests__/lazyAccessors.spec.ts +0 -330
- package/src/endpoints/__tests__/processAudits.spec.ts +0 -631
- package/src/endpoints/audit.ts +0 -87
- package/src/endpoints/helpers.ts +0 -98
- package/src/endpoints/index.ts +0 -42
- package/src/endpoints/lazyAccessors.ts +0 -241
- package/src/endpoints/parseHonoQuery.ts +0 -16
- package/src/endpoints/parseQueryParams.ts +0 -32
- package/src/endpoints/processAudits.ts +0 -371
- package/src/endpoints/rls.ts +0 -67
- package/src/functions/AWSLambdaFunction.ts +0 -348
- package/src/functions/BaseFunctionBuilder.ts +0 -201
- package/src/functions/Function.ts +0 -238
- package/src/functions/FunctionBuilder.ts +0 -391
- package/src/functions/FunctionExecutionWrapper.ts +0 -216
- package/src/functions/TestFunctionAdaptor.ts +0 -217
- package/src/functions/__tests__/AWSLambdaFunctionAdaptor.spec.ts +0 -513
- package/src/functions/__tests__/Function.audits.spec.ts +0 -393
- package/src/functions/__tests__/Function.spec.ts +0 -477
- package/src/functions/__tests__/FunctionBuilder.state-isolation.spec.ts +0 -207
- package/src/functions/__tests__/TestFunctionAdaptor.spec.ts +0 -480
- package/src/functions/index.ts +0 -12
- package/src/index.ts +0 -23
- package/src/publisher.ts +0 -93
- package/src/queue/AWSLambdaQueueAdaptor.ts +0 -162
- package/src/queue/Queue.ts +0 -128
- package/src/queue/QueueBuilder.ts +0 -115
- package/src/queue/TestQueueAdaptor.ts +0 -63
- package/src/queue/__tests__/QueueBuilder.spec.ts +0 -137
- package/src/queue/index.ts +0 -12
- package/src/subscribers/AWSLambdaSubscriberAdaptor.ts +0 -342
- package/src/subscribers/Subscriber.ts +0 -117
- package/src/subscribers/SubscriberBuilder.ts +0 -186
- package/src/subscribers/TestSubscriberAdaptor.ts +0 -133
- package/src/subscribers/__tests__/AWSLambdaSubscriberAdaptor.spec.ts +0 -1018
- package/src/subscribers/__tests__/Subscriber.spec.ts +0 -430
- package/src/subscribers/__tests__/TestSubscriberAdaptor.spec.ts +0 -652
- package/src/subscribers/index.ts +0 -6
- package/src/telemetry.ts +0 -103
- package/src/topic/Topic.ts +0 -103
- package/src/topic/TopicBuilder.ts +0 -51
- package/src/topic/__tests__/TopicBuilder.spec.ts +0 -82
- package/src/topic/index.ts +0 -11
- package/src/types.ts +0 -13
- package/test.ts +0 -91
- package/tsconfig.json +0 -9
- package/tsdown.config.ts +0 -34
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
1
|
+
const require_chunk = require('./chunk-DWy1uDak.cjs');
|
|
2
|
+
const require_Construct = require('./Construct-roId57cU.cjs');
|
|
3
|
+
const require_functions = require('./functions-DukjG8ov.cjs');
|
|
4
|
+
const __geekmidas_schema_conversion = require_chunk.__toESM(require("@geekmidas/schema/conversion"));
|
|
5
|
+
const __geekmidas_schema_openapi = require_chunk.__toESM(require("@geekmidas/schema/openapi"));
|
|
6
6
|
|
|
7
|
-
//#region ../../node_modules/.pnpm/lodash.
|
|
8
|
-
var require_lodash$1 =
|
|
7
|
+
//#region ../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js
|
|
8
|
+
var require_lodash$1 = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash.pick@4.4.0/node_modules/lodash.pick/index.js"(exports, module) {
|
|
9
9
|
/**
|
|
10
10
|
* lodash (Custom Build) <https://lodash.com/>
|
|
11
11
|
* Build: `lodash modularize exports="npm" -o ./`
|
|
@@ -14,27 +14,10 @@ var require_lodash$1 = require_Construct.__commonJS({ "../../node_modules/.pnpm/
|
|
|
14
14
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
15
15
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
16
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__";
|
|
21
17
|
/** Used as references for various `Number` constants. */
|
|
22
18
|
var INFINITY$1 = Infinity, MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
23
19
|
/** `Object#toString` result references. */
|
|
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*)$/;
|
|
20
|
+
var argsTag = "[object Arguments]", funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", symbolTag$1 = "[object Symbol]";
|
|
38
21
|
/** Detect free variable `global` from Node.js. */
|
|
39
22
|
var freeGlobal$1 = typeof global == "object" && global && global.Object === Object && global;
|
|
40
23
|
/** Detect free variable `self`. */
|
|
@@ -42,41 +25,53 @@ var require_lodash$1 = require_Construct.__commonJS({ "../../node_modules/.pnpm/
|
|
|
42
25
|
/** Used as a reference to the global object. */
|
|
43
26
|
var root$1 = freeGlobal$1 || freeSelf$1 || Function("return this")();
|
|
44
27
|
/**
|
|
45
|
-
*
|
|
28
|
+
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
29
|
+
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
46
30
|
*
|
|
47
31
|
* @private
|
|
48
|
-
* @param {
|
|
49
|
-
* @param {
|
|
50
|
-
* @
|
|
32
|
+
* @param {Function} func The function to invoke.
|
|
33
|
+
* @param {*} thisArg The `this` binding of `func`.
|
|
34
|
+
* @param {Array} args The arguments to invoke `func` with.
|
|
35
|
+
* @returns {*} Returns the result of `func`.
|
|
51
36
|
*/
|
|
52
|
-
function
|
|
53
|
-
|
|
37
|
+
function apply(func, thisArg, args) {
|
|
38
|
+
switch (args.length) {
|
|
39
|
+
case 0: return func.call(thisArg);
|
|
40
|
+
case 1: return func.call(thisArg, args[0]);
|
|
41
|
+
case 2: return func.call(thisArg, args[0], args[1]);
|
|
42
|
+
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
|
43
|
+
}
|
|
44
|
+
return func.apply(thisArg, args);
|
|
54
45
|
}
|
|
55
46
|
/**
|
|
56
|
-
*
|
|
47
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
48
|
+
* shorthands.
|
|
57
49
|
*
|
|
58
50
|
* @private
|
|
59
|
-
* @param {
|
|
60
|
-
* @
|
|
51
|
+
* @param {Array} [array] The array to iterate over.
|
|
52
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
53
|
+
* @returns {Array} Returns the new mapped array.
|
|
61
54
|
*/
|
|
62
|
-
function
|
|
63
|
-
var result =
|
|
64
|
-
|
|
65
|
-
result = !!(value + "");
|
|
66
|
-
} catch (e) {}
|
|
55
|
+
function arrayMap(array, iteratee) {
|
|
56
|
+
var index = -1, length = array ? array.length : 0, result = Array(length);
|
|
57
|
+
while (++index < length) result[index] = iteratee(array[index], index, array);
|
|
67
58
|
return result;
|
|
68
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Appends the elements of `values` to `array`.
|
|
62
|
+
*
|
|
63
|
+
* @private
|
|
64
|
+
* @param {Array} array The array to modify.
|
|
65
|
+
* @param {Array} values The values to append.
|
|
66
|
+
* @returns {Array} Returns `array`.
|
|
67
|
+
*/
|
|
68
|
+
function arrayPush(array, values) {
|
|
69
|
+
var index = -1, length = values.length, offset = array.length;
|
|
70
|
+
while (++index < length) array[offset + index] = values[index];
|
|
71
|
+
return array;
|
|
72
|
+
}
|
|
69
73
|
/** Used for built-in method references. */
|
|
70
|
-
var
|
|
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;
|
|
74
|
+
var objectProto$1 = Object.prototype;
|
|
80
75
|
/** Used to check objects for own properties. */
|
|
81
76
|
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
82
77
|
/**
|
|
@@ -85,917 +80,883 @@ var require_lodash$1 = require_Construct.__commonJS({ "../../node_modules/.pnpm/
|
|
|
85
80
|
* of values.
|
|
86
81
|
*/
|
|
87
82
|
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.*?") + "$");
|
|
90
83
|
/** Built-in value references. */
|
|
91
|
-
var Symbol$1 = root$1.Symbol,
|
|
92
|
-
var
|
|
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;
|
|
84
|
+
var Symbol$1 = root$1.Symbol, propertyIsEnumerable = objectProto$1.propertyIsEnumerable, spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
|
|
85
|
+
var nativeMax = Math.max;
|
|
95
86
|
/**
|
|
96
|
-
*
|
|
87
|
+
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
97
88
|
*
|
|
98
89
|
* @private
|
|
99
|
-
* @
|
|
100
|
-
* @param {
|
|
90
|
+
* @param {Array} array The array to flatten.
|
|
91
|
+
* @param {number} depth The maximum recursion depth.
|
|
92
|
+
* @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
|
|
93
|
+
* @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
|
|
94
|
+
* @param {Array} [result=[]] The initial result value.
|
|
95
|
+
* @returns {Array} Returns the new flattened array.
|
|
101
96
|
*/
|
|
102
|
-
function
|
|
103
|
-
var index = -1, length =
|
|
104
|
-
|
|
97
|
+
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
98
|
+
var index = -1, length = array.length;
|
|
99
|
+
predicate || (predicate = isFlattenable);
|
|
100
|
+
result || (result = []);
|
|
105
101
|
while (++index < length) {
|
|
106
|
-
var
|
|
107
|
-
|
|
102
|
+
var value = array[index];
|
|
103
|
+
if (depth > 0 && predicate(value)) if (depth > 1) baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
104
|
+
else arrayPush(result, value);
|
|
105
|
+
else if (!isStrict) result[result.length] = value;
|
|
108
106
|
}
|
|
107
|
+
return result;
|
|
109
108
|
}
|
|
110
109
|
/**
|
|
111
|
-
*
|
|
110
|
+
* The base implementation of `_.pick` without support for individual
|
|
111
|
+
* property identifiers.
|
|
112
112
|
*
|
|
113
113
|
* @private
|
|
114
|
-
* @
|
|
115
|
-
* @
|
|
114
|
+
* @param {Object} object The source object.
|
|
115
|
+
* @param {string[]} props The property identifiers to pick.
|
|
116
|
+
* @returns {Object} Returns the new object.
|
|
116
117
|
*/
|
|
117
|
-
function
|
|
118
|
-
|
|
118
|
+
function basePick(object, props) {
|
|
119
|
+
object = Object(object);
|
|
120
|
+
return basePickBy(object, props, function(value, key) {
|
|
121
|
+
return key in object;
|
|
122
|
+
});
|
|
119
123
|
}
|
|
120
124
|
/**
|
|
121
|
-
*
|
|
125
|
+
* The base implementation of `_.pickBy` without support for iteratee shorthands.
|
|
122
126
|
*
|
|
123
127
|
* @private
|
|
124
|
-
* @
|
|
125
|
-
* @
|
|
126
|
-
* @param {
|
|
127
|
-
* @
|
|
128
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
128
|
+
* @param {Object} object The source object.
|
|
129
|
+
* @param {string[]} props The property identifiers to pick from.
|
|
130
|
+
* @param {Function} predicate The function invoked per property.
|
|
131
|
+
* @returns {Object} Returns the new object.
|
|
129
132
|
*/
|
|
130
|
-
function
|
|
131
|
-
|
|
133
|
+
function basePickBy(object, props, predicate) {
|
|
134
|
+
var index = -1, length = props.length, result = {};
|
|
135
|
+
while (++index < length) {
|
|
136
|
+
var key = props[index], value = object[key];
|
|
137
|
+
if (predicate(value, key)) result[key] = value;
|
|
138
|
+
}
|
|
139
|
+
return result;
|
|
132
140
|
}
|
|
133
141
|
/**
|
|
134
|
-
*
|
|
142
|
+
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
135
143
|
*
|
|
136
144
|
* @private
|
|
137
|
-
* @
|
|
138
|
-
* @
|
|
139
|
-
* @
|
|
140
|
-
* @returns {*} Returns the entry value.
|
|
145
|
+
* @param {Function} func The function to apply a rest parameter to.
|
|
146
|
+
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
147
|
+
* @returns {Function} Returns the new function.
|
|
141
148
|
*/
|
|
142
|
-
function
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
var
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
+
function baseRest(func, start) {
|
|
150
|
+
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
151
|
+
return function() {
|
|
152
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
153
|
+
while (++index < length) array[index] = args[start + index];
|
|
154
|
+
index = -1;
|
|
155
|
+
var otherArgs = Array(start + 1);
|
|
156
|
+
while (++index < start) otherArgs[index] = args[index];
|
|
157
|
+
otherArgs[start] = array;
|
|
158
|
+
return apply(func, this, otherArgs);
|
|
159
|
+
};
|
|
149
160
|
}
|
|
150
161
|
/**
|
|
151
|
-
* Checks if
|
|
162
|
+
* Checks if `value` is a flattenable `arguments` object or array.
|
|
152
163
|
*
|
|
153
164
|
* @private
|
|
154
|
-
* @
|
|
155
|
-
* @
|
|
156
|
-
* @param {string} key The key of the entry to check.
|
|
157
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
165
|
+
* @param {*} value The value to check.
|
|
166
|
+
* @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
|
|
158
167
|
*/
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
-
return nativeCreate ? data[key] !== void 0 : hasOwnProperty$1.call(data, key);
|
|
168
|
+
function isFlattenable(value) {
|
|
169
|
+
return isArray$1(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
162
170
|
}
|
|
163
171
|
/**
|
|
164
|
-
*
|
|
172
|
+
* Converts `value` to a string key if it's not a string or symbol.
|
|
165
173
|
*
|
|
166
174
|
* @private
|
|
167
|
-
* @
|
|
168
|
-
* @
|
|
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.
|
|
175
|
+
* @param {*} value The value to inspect.
|
|
176
|
+
* @returns {string|symbol} Returns the key.
|
|
172
177
|
*/
|
|
173
|
-
function
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
return
|
|
178
|
+
function toKey$1(value) {
|
|
179
|
+
if (typeof value == "string" || isSymbol$1(value)) return value;
|
|
180
|
+
var result = value + "";
|
|
181
|
+
return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
|
177
182
|
}
|
|
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;
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* Checks if `value` is likely an `arguments` object.
|
|
185
185
|
*
|
|
186
|
-
* @
|
|
187
|
-
* @
|
|
188
|
-
* @
|
|
186
|
+
* @static
|
|
187
|
+
* @memberOf _
|
|
188
|
+
* @since 0.1.0
|
|
189
|
+
* @category Lang
|
|
190
|
+
* @param {*} value The value to check.
|
|
191
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
192
|
+
* else `false`.
|
|
193
|
+
* @example
|
|
194
|
+
*
|
|
195
|
+
* _.isArguments(function() { return arguments; }());
|
|
196
|
+
* // => true
|
|
197
|
+
*
|
|
198
|
+
* _.isArguments([1, 2, 3]);
|
|
199
|
+
* // => false
|
|
189
200
|
*/
|
|
190
|
-
function
|
|
191
|
-
|
|
192
|
-
this.clear();
|
|
193
|
-
while (++index < length) {
|
|
194
|
-
var entry = entries[index];
|
|
195
|
-
this.set(entry[0], entry[1]);
|
|
196
|
-
}
|
|
201
|
+
function isArguments(value) {
|
|
202
|
+
return isArrayLikeObject(value) && hasOwnProperty$1.call(value, "callee") && (!propertyIsEnumerable.call(value, "callee") || objectToString$1.call(value) == argsTag);
|
|
197
203
|
}
|
|
198
204
|
/**
|
|
199
|
-
*
|
|
205
|
+
* Checks if `value` is classified as an `Array` object.
|
|
200
206
|
*
|
|
201
|
-
* @
|
|
202
|
-
* @
|
|
203
|
-
* @
|
|
207
|
+
* @static
|
|
208
|
+
* @memberOf _
|
|
209
|
+
* @since 0.1.0
|
|
210
|
+
* @category Lang
|
|
211
|
+
* @param {*} value The value to check.
|
|
212
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
213
|
+
* @example
|
|
214
|
+
*
|
|
215
|
+
* _.isArray([1, 2, 3]);
|
|
216
|
+
* // => true
|
|
217
|
+
*
|
|
218
|
+
* _.isArray(document.body.children);
|
|
219
|
+
* // => false
|
|
220
|
+
*
|
|
221
|
+
* _.isArray('abc');
|
|
222
|
+
* // => false
|
|
223
|
+
*
|
|
224
|
+
* _.isArray(_.noop);
|
|
225
|
+
* // => false
|
|
204
226
|
*/
|
|
205
|
-
|
|
206
|
-
this.__data__ = [];
|
|
207
|
-
}
|
|
227
|
+
var isArray$1 = Array.isArray;
|
|
208
228
|
/**
|
|
209
|
-
*
|
|
229
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
230
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
231
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
210
232
|
*
|
|
211
|
-
* @
|
|
212
|
-
* @
|
|
213
|
-
* @
|
|
214
|
-
* @
|
|
215
|
-
* @
|
|
216
|
-
|
|
217
|
-
|
|
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;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Gets the list cache value for `key`.
|
|
233
|
+
* @static
|
|
234
|
+
* @memberOf _
|
|
235
|
+
* @since 4.0.0
|
|
236
|
+
* @category Lang
|
|
237
|
+
* @param {*} value The value to check.
|
|
238
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
239
|
+
* @example
|
|
227
240
|
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
* @memberOf ListCache
|
|
231
|
-
* @param {string} key The key of the value to get.
|
|
232
|
-
* @returns {*} Returns the entry value.
|
|
233
|
-
*/
|
|
234
|
-
function listCacheGet(key) {
|
|
235
|
-
var data = this.__data__, index = assocIndexOf(data, key);
|
|
236
|
-
return index < 0 ? void 0 : data[index][1];
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Checks if a list cache value for `key` exists.
|
|
241
|
+
* _.isArrayLike([1, 2, 3]);
|
|
242
|
+
* // => true
|
|
240
243
|
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
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`.
|
|
246
|
-
*/
|
|
247
|
-
function listCacheHas(key) {
|
|
248
|
-
return assocIndexOf(this.__data__, key) > -1;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Sets the list cache `key` to `value`.
|
|
244
|
+
* _.isArrayLike(document.body.children);
|
|
245
|
+
* // => true
|
|
252
246
|
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
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.
|
|
259
|
-
*/
|
|
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;
|
|
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;
|
|
271
|
-
/**
|
|
272
|
-
* Creates a map cache object to store key-value pairs.
|
|
247
|
+
* _.isArrayLike('abc');
|
|
248
|
+
* // => true
|
|
273
249
|
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
250
|
+
* _.isArrayLike(_.noop);
|
|
251
|
+
* // => false
|
|
277
252
|
*/
|
|
278
|
-
function
|
|
279
|
-
|
|
280
|
-
this.clear();
|
|
281
|
-
while (++index < length) {
|
|
282
|
-
var entry = entries[index];
|
|
283
|
-
this.set(entry[0], entry[1]);
|
|
284
|
-
}
|
|
253
|
+
function isArrayLike(value) {
|
|
254
|
+
return value != null && isLength(value.length) && !isFunction$1(value);
|
|
285
255
|
}
|
|
286
256
|
/**
|
|
287
|
-
*
|
|
257
|
+
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
258
|
+
* is an object.
|
|
288
259
|
*
|
|
289
|
-
* @
|
|
290
|
-
* @
|
|
291
|
-
* @
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
"string": new Hash()
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* Removes `key` and its value from the map.
|
|
260
|
+
* @static
|
|
261
|
+
* @memberOf _
|
|
262
|
+
* @since 4.0.0
|
|
263
|
+
* @category Lang
|
|
264
|
+
* @param {*} value The value to check.
|
|
265
|
+
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
266
|
+
* else `false`.
|
|
267
|
+
* @example
|
|
302
268
|
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
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`.
|
|
269
|
+
* _.isArrayLikeObject([1, 2, 3]);
|
|
270
|
+
* // => true
|
|
314
271
|
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
272
|
+
* _.isArrayLikeObject(document.body.children);
|
|
273
|
+
* // => true
|
|
274
|
+
*
|
|
275
|
+
* _.isArrayLikeObject('abc');
|
|
276
|
+
* // => false
|
|
277
|
+
*
|
|
278
|
+
* _.isArrayLikeObject(_.noop);
|
|
279
|
+
* // => false
|
|
320
280
|
*/
|
|
321
|
-
function
|
|
322
|
-
return
|
|
281
|
+
function isArrayLikeObject(value) {
|
|
282
|
+
return isObjectLike$1(value) && isArrayLike(value);
|
|
323
283
|
}
|
|
324
284
|
/**
|
|
325
|
-
* Checks if
|
|
285
|
+
* Checks if `value` is classified as a `Function` object.
|
|
326
286
|
*
|
|
327
|
-
* @
|
|
328
|
-
* @
|
|
329
|
-
* @
|
|
330
|
-
* @
|
|
331
|
-
* @
|
|
287
|
+
* @static
|
|
288
|
+
* @memberOf _
|
|
289
|
+
* @since 0.1.0
|
|
290
|
+
* @category Lang
|
|
291
|
+
* @param {*} value The value to check.
|
|
292
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
293
|
+
* @example
|
|
294
|
+
*
|
|
295
|
+
* _.isFunction(_);
|
|
296
|
+
* // => true
|
|
297
|
+
*
|
|
298
|
+
* _.isFunction(/abc/);
|
|
299
|
+
* // => false
|
|
332
300
|
*/
|
|
333
|
-
function
|
|
334
|
-
|
|
301
|
+
function isFunction$1(value) {
|
|
302
|
+
var tag = isObject$1(value) ? objectToString$1.call(value) : "";
|
|
303
|
+
return tag == funcTag$1 || tag == genTag$1;
|
|
335
304
|
}
|
|
336
305
|
/**
|
|
337
|
-
*
|
|
306
|
+
* Checks if `value` is a valid array-like length.
|
|
338
307
|
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
* @
|
|
343
|
-
* @
|
|
344
|
-
* @
|
|
308
|
+
* **Note:** This method is loosely based on
|
|
309
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
310
|
+
*
|
|
311
|
+
* @static
|
|
312
|
+
* @memberOf _
|
|
313
|
+
* @since 4.0.0
|
|
314
|
+
* @category Lang
|
|
315
|
+
* @param {*} value The value to check.
|
|
316
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
317
|
+
* @example
|
|
318
|
+
*
|
|
319
|
+
* _.isLength(3);
|
|
320
|
+
* // => true
|
|
321
|
+
*
|
|
322
|
+
* _.isLength(Number.MIN_VALUE);
|
|
323
|
+
* // => false
|
|
324
|
+
*
|
|
325
|
+
* _.isLength(Infinity);
|
|
326
|
+
* // => false
|
|
327
|
+
*
|
|
328
|
+
* _.isLength('3');
|
|
329
|
+
* // => false
|
|
345
330
|
*/
|
|
346
|
-
function
|
|
347
|
-
|
|
348
|
-
return this;
|
|
331
|
+
function isLength(value) {
|
|
332
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
349
333
|
}
|
|
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;
|
|
355
334
|
/**
|
|
356
|
-
*
|
|
357
|
-
*
|
|
358
|
-
*
|
|
335
|
+
* Checks if `value` is the
|
|
336
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
337
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
359
338
|
*
|
|
360
|
-
* @
|
|
361
|
-
* @
|
|
362
|
-
* @
|
|
363
|
-
* @
|
|
339
|
+
* @static
|
|
340
|
+
* @memberOf _
|
|
341
|
+
* @since 0.1.0
|
|
342
|
+
* @category Lang
|
|
343
|
+
* @param {*} value The value to check.
|
|
344
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
345
|
+
* @example
|
|
346
|
+
*
|
|
347
|
+
* _.isObject({});
|
|
348
|
+
* // => true
|
|
349
|
+
*
|
|
350
|
+
* _.isObject([1, 2, 3]);
|
|
351
|
+
* // => true
|
|
352
|
+
*
|
|
353
|
+
* _.isObject(_.noop);
|
|
354
|
+
* // => true
|
|
355
|
+
*
|
|
356
|
+
* _.isObject(null);
|
|
357
|
+
* // => false
|
|
364
358
|
*/
|
|
365
|
-
function
|
|
366
|
-
var
|
|
367
|
-
|
|
359
|
+
function isObject$1(value) {
|
|
360
|
+
var type = typeof value;
|
|
361
|
+
return !!value && (type == "object" || type == "function");
|
|
368
362
|
}
|
|
369
363
|
/**
|
|
370
|
-
*
|
|
364
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
365
|
+
* and has a `typeof` result of "object".
|
|
371
366
|
*
|
|
372
|
-
* @
|
|
373
|
-
* @
|
|
374
|
-
* @
|
|
375
|
-
* @
|
|
367
|
+
* @static
|
|
368
|
+
* @memberOf _
|
|
369
|
+
* @since 4.0.0
|
|
370
|
+
* @category Lang
|
|
371
|
+
* @param {*} value The value to check.
|
|
372
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
373
|
+
* @example
|
|
374
|
+
*
|
|
375
|
+
* _.isObjectLike({});
|
|
376
|
+
* // => true
|
|
377
|
+
*
|
|
378
|
+
* _.isObjectLike([1, 2, 3]);
|
|
379
|
+
* // => true
|
|
380
|
+
*
|
|
381
|
+
* _.isObjectLike(_.noop);
|
|
382
|
+
* // => false
|
|
383
|
+
*
|
|
384
|
+
* _.isObjectLike(null);
|
|
385
|
+
* // => false
|
|
376
386
|
*/
|
|
377
|
-
function
|
|
378
|
-
|
|
379
|
-
while (length--) if (eq(array[length][0], key)) return length;
|
|
380
|
-
return -1;
|
|
387
|
+
function isObjectLike$1(value) {
|
|
388
|
+
return !!value && typeof value == "object";
|
|
381
389
|
}
|
|
382
390
|
/**
|
|
383
|
-
*
|
|
391
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
384
392
|
*
|
|
385
|
-
* @
|
|
393
|
+
* @static
|
|
394
|
+
* @memberOf _
|
|
395
|
+
* @since 4.0.0
|
|
396
|
+
* @category Lang
|
|
386
397
|
* @param {*} value The value to check.
|
|
387
|
-
* @returns {boolean} Returns `true` if `value` is a
|
|
388
|
-
*
|
|
398
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
399
|
+
* @example
|
|
400
|
+
*
|
|
401
|
+
* _.isSymbol(Symbol.iterator);
|
|
402
|
+
* // => true
|
|
403
|
+
*
|
|
404
|
+
* _.isSymbol('abc');
|
|
405
|
+
* // => false
|
|
389
406
|
*/
|
|
390
|
-
function
|
|
391
|
-
|
|
392
|
-
var pattern = isFunction$1(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
|
|
393
|
-
return pattern.test(toSource(value));
|
|
407
|
+
function isSymbol$1(value) {
|
|
408
|
+
return typeof value == "symbol" || isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1;
|
|
394
409
|
}
|
|
395
410
|
/**
|
|
396
|
-
*
|
|
411
|
+
* Creates an object composed of the picked `object` properties.
|
|
397
412
|
*
|
|
398
|
-
* @
|
|
399
|
-
* @
|
|
400
|
-
* @
|
|
401
|
-
* @
|
|
402
|
-
* @param {
|
|
403
|
-
* @
|
|
413
|
+
* @static
|
|
414
|
+
* @since 0.1.0
|
|
415
|
+
* @memberOf _
|
|
416
|
+
* @category Object
|
|
417
|
+
* @param {Object} object The source object.
|
|
418
|
+
* @param {...(string|string[])} [props] The property identifiers to pick.
|
|
419
|
+
* @returns {Object} Returns the new object.
|
|
420
|
+
* @example
|
|
421
|
+
*
|
|
422
|
+
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
423
|
+
*
|
|
424
|
+
* _.pick(object, ['a', 'c']);
|
|
425
|
+
* // => { 'a': 1, 'c': 3 }
|
|
404
426
|
*/
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
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
|
-
}
|
|
427
|
+
var pick$1 = baseRest(function(object, props) {
|
|
428
|
+
return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey$1));
|
|
429
|
+
});
|
|
430
|
+
module.exports = pick$1;
|
|
431
|
+
} });
|
|
432
|
+
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region ../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js
|
|
435
|
+
var require_lodash = require_chunk.__commonJS({ "../../node_modules/.pnpm/lodash.set@4.3.2/node_modules/lodash.set/index.js"(exports, module) {
|
|
421
436
|
/**
|
|
422
|
-
*
|
|
423
|
-
*
|
|
424
|
-
*
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
437
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
438
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
439
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
440
|
+
* Released under MIT license <https://lodash.com/license>
|
|
441
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
442
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
428
443
|
*/
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
444
|
+
/** Used as the `TypeError` message for "Functions" methods. */
|
|
445
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
446
|
+
/** Used to stand-in for `undefined` hash values. */
|
|
447
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
448
|
+
/** Used as references for various `Number` constants. */
|
|
449
|
+
var INFINITY = Infinity, MAX_SAFE_INTEGER = 9007199254740991;
|
|
450
|
+
/** `Object#toString` result references. */
|
|
451
|
+
var funcTag = "[object Function]", genTag = "[object GeneratorFunction]", symbolTag = "[object Symbol]";
|
|
452
|
+
/** Used to match property names within property paths. */
|
|
453
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
435
454
|
/**
|
|
436
|
-
*
|
|
437
|
-
*
|
|
438
|
-
* @private
|
|
439
|
-
* @param {*} value The value to inspect.
|
|
440
|
-
* @returns {Array} Returns the cast property path array.
|
|
455
|
+
* Used to match `RegExp`
|
|
456
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
441
457
|
*/
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
458
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
459
|
+
/** Used to match backslashes in property paths. */
|
|
460
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
461
|
+
/** Used to detect host constructors (Safari). */
|
|
462
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
463
|
+
/** Used to detect unsigned integer values. */
|
|
464
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
465
|
+
/** Detect free variable `global` from Node.js. */
|
|
466
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
467
|
+
/** Detect free variable `self`. */
|
|
468
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
469
|
+
/** Used as a reference to the global object. */
|
|
470
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
|
445
471
|
/**
|
|
446
|
-
* Gets the
|
|
472
|
+
* Gets the value at `key` of `object`.
|
|
447
473
|
*
|
|
448
474
|
* @private
|
|
449
|
-
* @param {Object}
|
|
450
|
-
* @param {string} key The
|
|
451
|
-
* @returns {*} Returns the
|
|
475
|
+
* @param {Object} [object] The object to query.
|
|
476
|
+
* @param {string} key The key of the property to get.
|
|
477
|
+
* @returns {*} Returns the property value.
|
|
452
478
|
*/
|
|
453
|
-
function
|
|
454
|
-
|
|
455
|
-
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
479
|
+
function getValue(object, key) {
|
|
480
|
+
return object == null ? void 0 : object[key];
|
|
456
481
|
}
|
|
457
482
|
/**
|
|
458
|
-
*
|
|
483
|
+
* Checks if `value` is a host object in IE < 9.
|
|
459
484
|
*
|
|
460
485
|
* @private
|
|
461
|
-
* @param {
|
|
462
|
-
* @
|
|
463
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
486
|
+
* @param {*} value The value to check.
|
|
487
|
+
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
464
488
|
*/
|
|
465
|
-
function
|
|
466
|
-
var
|
|
467
|
-
|
|
489
|
+
function isHostObject(value) {
|
|
490
|
+
var result = false;
|
|
491
|
+
if (value != null && typeof value.toString != "function") try {
|
|
492
|
+
result = !!(value + "");
|
|
493
|
+
} catch (e) {}
|
|
494
|
+
return result;
|
|
468
495
|
}
|
|
496
|
+
/** Used for built-in method references. */
|
|
497
|
+
var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto = Object.prototype;
|
|
498
|
+
/** Used to detect overreaching core-js shims. */
|
|
499
|
+
var coreJsData = root["__core-js_shared__"];
|
|
500
|
+
/** Used to detect methods masquerading as native. */
|
|
501
|
+
var maskSrcKey = function() {
|
|
502
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
|
503
|
+
return uid ? "Symbol(src)_1." + uid : "";
|
|
504
|
+
}();
|
|
505
|
+
/** Used to resolve the decompiled source of functions. */
|
|
506
|
+
var funcToString = funcProto.toString;
|
|
507
|
+
/** Used to check objects for own properties. */
|
|
508
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
469
509
|
/**
|
|
470
|
-
*
|
|
510
|
+
* Used to resolve the
|
|
511
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
512
|
+
* of values.
|
|
513
|
+
*/
|
|
514
|
+
var objectToString = objectProto.toString;
|
|
515
|
+
/** Used to detect if a method is native. */
|
|
516
|
+
var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
517
|
+
/** Built-in value references. */
|
|
518
|
+
var Symbol = root.Symbol, splice = arrayProto.splice;
|
|
519
|
+
var Map$1 = getNative(root, "Map"), nativeCreate = getNative(Object, "create");
|
|
520
|
+
/** Used to convert symbols to primitives and strings. */
|
|
521
|
+
var symbolProto = Symbol ? Symbol.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
522
|
+
/**
|
|
523
|
+
* Creates a hash object.
|
|
471
524
|
*
|
|
472
525
|
* @private
|
|
473
|
-
* @
|
|
474
|
-
* @param {
|
|
475
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
526
|
+
* @constructor
|
|
527
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
476
528
|
*/
|
|
477
|
-
function
|
|
478
|
-
|
|
479
|
-
|
|
529
|
+
function Hash(entries) {
|
|
530
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
531
|
+
this.clear();
|
|
532
|
+
while (++index < length) {
|
|
533
|
+
var entry = entries[index];
|
|
534
|
+
this.set(entry[0], entry[1]);
|
|
535
|
+
}
|
|
480
536
|
}
|
|
481
537
|
/**
|
|
482
|
-
*
|
|
538
|
+
* Removes all key-value entries from the hash.
|
|
483
539
|
*
|
|
484
540
|
* @private
|
|
485
|
-
* @
|
|
486
|
-
* @
|
|
487
|
-
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
541
|
+
* @name clear
|
|
542
|
+
* @memberOf Hash
|
|
488
543
|
*/
|
|
489
|
-
function
|
|
490
|
-
|
|
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);
|
|
544
|
+
function hashClear() {
|
|
545
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
494
546
|
}
|
|
495
547
|
/**
|
|
496
|
-
*
|
|
548
|
+
* Removes `key` and its value from the hash.
|
|
497
549
|
*
|
|
498
550
|
* @private
|
|
499
|
-
* @
|
|
500
|
-
* @
|
|
551
|
+
* @name delete
|
|
552
|
+
* @memberOf Hash
|
|
553
|
+
* @param {Object} hash The hash to modify.
|
|
554
|
+
* @param {string} key The key of the value to remove.
|
|
555
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
501
556
|
*/
|
|
502
|
-
function
|
|
503
|
-
|
|
504
|
-
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
557
|
+
function hashDelete(key) {
|
|
558
|
+
return this.has(key) && delete this.__data__[key];
|
|
505
559
|
}
|
|
506
560
|
/**
|
|
507
|
-
*
|
|
561
|
+
* Gets the hash value for `key`.
|
|
508
562
|
*
|
|
509
563
|
* @private
|
|
510
|
-
* @
|
|
511
|
-
* @
|
|
564
|
+
* @name get
|
|
565
|
+
* @memberOf Hash
|
|
566
|
+
* @param {string} key The key of the value to get.
|
|
567
|
+
* @returns {*} Returns the entry value.
|
|
512
568
|
*/
|
|
513
|
-
function
|
|
514
|
-
|
|
569
|
+
function hashGet(key) {
|
|
570
|
+
var data = this.__data__;
|
|
571
|
+
if (nativeCreate) {
|
|
572
|
+
var result = data[key];
|
|
573
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
574
|
+
}
|
|
575
|
+
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
515
576
|
}
|
|
516
577
|
/**
|
|
517
|
-
*
|
|
578
|
+
* Checks if a hash value for `key` exists.
|
|
518
579
|
*
|
|
519
580
|
* @private
|
|
520
|
-
* @
|
|
521
|
-
* @
|
|
581
|
+
* @name has
|
|
582
|
+
* @memberOf Hash
|
|
583
|
+
* @param {string} key The key of the entry to check.
|
|
584
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
522
585
|
*/
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
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
|
-
});
|
|
586
|
+
function hashHas(key) {
|
|
587
|
+
var data = this.__data__;
|
|
588
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
589
|
+
}
|
|
532
590
|
/**
|
|
533
|
-
*
|
|
591
|
+
* Sets the hash `key` to `value`.
|
|
534
592
|
*
|
|
535
593
|
* @private
|
|
536
|
-
* @
|
|
537
|
-
* @
|
|
594
|
+
* @name set
|
|
595
|
+
* @memberOf Hash
|
|
596
|
+
* @param {string} key The key of the value to set.
|
|
597
|
+
* @param {*} value The value to set.
|
|
598
|
+
* @returns {Object} Returns the hash instance.
|
|
538
599
|
*/
|
|
539
|
-
function
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
return
|
|
600
|
+
function hashSet(key, value) {
|
|
601
|
+
var data = this.__data__;
|
|
602
|
+
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
603
|
+
return this;
|
|
543
604
|
}
|
|
605
|
+
Hash.prototype.clear = hashClear;
|
|
606
|
+
Hash.prototype["delete"] = hashDelete;
|
|
607
|
+
Hash.prototype.get = hashGet;
|
|
608
|
+
Hash.prototype.has = hashHas;
|
|
609
|
+
Hash.prototype.set = hashSet;
|
|
544
610
|
/**
|
|
545
|
-
*
|
|
611
|
+
* Creates an list cache object.
|
|
546
612
|
*
|
|
547
613
|
* @private
|
|
548
|
-
* @
|
|
549
|
-
* @
|
|
614
|
+
* @constructor
|
|
615
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
550
616
|
*/
|
|
551
|
-
function
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
return func + "";
|
|
558
|
-
} catch (e) {}
|
|
617
|
+
function ListCache(entries) {
|
|
618
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
619
|
+
this.clear();
|
|
620
|
+
while (++index < length) {
|
|
621
|
+
var entry = entries[index];
|
|
622
|
+
this.set(entry[0], entry[1]);
|
|
559
623
|
}
|
|
560
|
-
return "";
|
|
561
624
|
}
|
|
562
625
|
/**
|
|
563
|
-
*
|
|
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.
|
|
568
|
-
*
|
|
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']
|
|
626
|
+
* Removes all key-value entries from the list cache.
|
|
602
627
|
*
|
|
603
|
-
*
|
|
604
|
-
*
|
|
628
|
+
* @private
|
|
629
|
+
* @name clear
|
|
630
|
+
* @memberOf ListCache
|
|
605
631
|
*/
|
|
606
|
-
function
|
|
607
|
-
|
|
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;
|
|
632
|
+
function listCacheClear() {
|
|
633
|
+
this.__data__ = [];
|
|
617
634
|
}
|
|
618
|
-
memoize.Cache = MapCache;
|
|
619
635
|
/**
|
|
620
|
-
*
|
|
621
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
622
|
-
* comparison between two values to determine if they are equivalent.
|
|
623
|
-
*
|
|
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
|
|
636
|
+
* Removes `key` and its value from the list cache.
|
|
647
637
|
*
|
|
648
|
-
*
|
|
649
|
-
*
|
|
638
|
+
* @private
|
|
639
|
+
* @name delete
|
|
640
|
+
* @memberOf ListCache
|
|
641
|
+
* @param {string} key The key of the value to remove.
|
|
642
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
650
643
|
*/
|
|
651
|
-
function
|
|
652
|
-
|
|
644
|
+
function listCacheDelete(key) {
|
|
645
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
646
|
+
if (index < 0) return false;
|
|
647
|
+
var lastIndex = data.length - 1;
|
|
648
|
+
if (index == lastIndex) data.pop();
|
|
649
|
+
else splice.call(data, index, 1);
|
|
650
|
+
return true;
|
|
653
651
|
}
|
|
654
652
|
/**
|
|
655
|
-
*
|
|
656
|
-
*
|
|
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
|
|
653
|
+
* Gets the list cache value for `key`.
|
|
673
654
|
*
|
|
674
|
-
*
|
|
675
|
-
*
|
|
655
|
+
* @private
|
|
656
|
+
* @name get
|
|
657
|
+
* @memberOf ListCache
|
|
658
|
+
* @param {string} key The key of the value to get.
|
|
659
|
+
* @returns {*} Returns the entry value.
|
|
676
660
|
*/
|
|
677
|
-
|
|
661
|
+
function listCacheGet(key) {
|
|
662
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
663
|
+
return index < 0 ? void 0 : data[index][1];
|
|
664
|
+
}
|
|
678
665
|
/**
|
|
679
|
-
* Checks if
|
|
680
|
-
*
|
|
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
|
|
666
|
+
* Checks if a list cache value for `key` exists.
|
|
691
667
|
*
|
|
692
|
-
*
|
|
693
|
-
*
|
|
668
|
+
* @private
|
|
669
|
+
* @name has
|
|
670
|
+
* @memberOf ListCache
|
|
671
|
+
* @param {string} key The key of the entry to check.
|
|
672
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
694
673
|
*/
|
|
695
|
-
function
|
|
696
|
-
|
|
697
|
-
return tag == funcTag$1 || tag == genTag$1;
|
|
674
|
+
function listCacheHas(key) {
|
|
675
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
698
676
|
}
|
|
699
677
|
/**
|
|
700
|
-
*
|
|
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('')`)
|
|
703
|
-
*
|
|
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
|
|
678
|
+
* Sets the list cache `key` to `value`.
|
|
720
679
|
*
|
|
721
|
-
*
|
|
722
|
-
*
|
|
680
|
+
* @private
|
|
681
|
+
* @name set
|
|
682
|
+
* @memberOf ListCache
|
|
683
|
+
* @param {string} key The key of the value to set.
|
|
684
|
+
* @param {*} value The value to set.
|
|
685
|
+
* @returns {Object} Returns the list cache instance.
|
|
723
686
|
*/
|
|
724
|
-
function
|
|
725
|
-
var
|
|
726
|
-
|
|
687
|
+
function listCacheSet(key, value) {
|
|
688
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
689
|
+
if (index < 0) data.push([key, value]);
|
|
690
|
+
else data[index][1] = value;
|
|
691
|
+
return this;
|
|
727
692
|
}
|
|
693
|
+
ListCache.prototype.clear = listCacheClear;
|
|
694
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
695
|
+
ListCache.prototype.get = listCacheGet;
|
|
696
|
+
ListCache.prototype.has = listCacheHas;
|
|
697
|
+
ListCache.prototype.set = listCacheSet;
|
|
728
698
|
/**
|
|
729
|
-
*
|
|
730
|
-
* and has a `typeof` result of "object".
|
|
731
|
-
*
|
|
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
|
|
699
|
+
* Creates a map cache object to store key-value pairs.
|
|
748
700
|
*
|
|
749
|
-
*
|
|
750
|
-
*
|
|
701
|
+
* @private
|
|
702
|
+
* @constructor
|
|
703
|
+
* @param {Array} [entries] The key-value pairs to cache.
|
|
751
704
|
*/
|
|
752
|
-
function
|
|
753
|
-
|
|
705
|
+
function MapCache(entries) {
|
|
706
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
707
|
+
this.clear();
|
|
708
|
+
while (++index < length) {
|
|
709
|
+
var entry = entries[index];
|
|
710
|
+
this.set(entry[0], entry[1]);
|
|
711
|
+
}
|
|
754
712
|
}
|
|
755
713
|
/**
|
|
756
|
-
*
|
|
757
|
-
*
|
|
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
|
|
714
|
+
* Removes all key-value entries from the map.
|
|
768
715
|
*
|
|
769
|
-
*
|
|
770
|
-
*
|
|
716
|
+
* @private
|
|
717
|
+
* @name clear
|
|
718
|
+
* @memberOf MapCache
|
|
771
719
|
*/
|
|
772
|
-
function
|
|
773
|
-
|
|
720
|
+
function mapCacheClear() {
|
|
721
|
+
this.__data__ = {
|
|
722
|
+
"hash": new Hash(),
|
|
723
|
+
"map": new (Map$1 || ListCache)(),
|
|
724
|
+
"string": new Hash()
|
|
725
|
+
};
|
|
774
726
|
}
|
|
775
727
|
/**
|
|
776
|
-
*
|
|
777
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
778
|
-
*
|
|
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
|
-
* // => ''
|
|
728
|
+
* Removes `key` and its value from the map.
|
|
789
729
|
*
|
|
790
|
-
*
|
|
791
|
-
*
|
|
730
|
+
* @private
|
|
731
|
+
* @name delete
|
|
732
|
+
* @memberOf MapCache
|
|
733
|
+
* @param {string} key The key of the value to remove.
|
|
734
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
735
|
+
*/
|
|
736
|
+
function mapCacheDelete(key) {
|
|
737
|
+
return getMapData(this, key)["delete"](key);
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Gets the map value for `key`.
|
|
792
741
|
*
|
|
793
|
-
*
|
|
794
|
-
*
|
|
742
|
+
* @private
|
|
743
|
+
* @name get
|
|
744
|
+
* @memberOf MapCache
|
|
745
|
+
* @param {string} key The key of the value to get.
|
|
746
|
+
* @returns {*} Returns the entry value.
|
|
795
747
|
*/
|
|
796
|
-
function
|
|
797
|
-
return
|
|
748
|
+
function mapCacheGet(key) {
|
|
749
|
+
return getMapData(this, key).get(key);
|
|
798
750
|
}
|
|
799
751
|
/**
|
|
800
|
-
*
|
|
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.
|
|
752
|
+
* Checks if a map value for `key` exists.
|
|
804
753
|
*
|
|
805
|
-
*
|
|
754
|
+
* @private
|
|
755
|
+
* @name has
|
|
756
|
+
* @memberOf MapCache
|
|
757
|
+
* @param {string} key The key of the entry to check.
|
|
758
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
759
|
+
*/
|
|
760
|
+
function mapCacheHas(key) {
|
|
761
|
+
return getMapData(this, key).has(key);
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Sets the map `key` to `value`.
|
|
806
765
|
*
|
|
807
|
-
* @
|
|
808
|
-
* @
|
|
809
|
-
* @
|
|
810
|
-
* @
|
|
811
|
-
* @param {Object} object The object to modify.
|
|
812
|
-
* @param {Array|string} path The path of the property to set.
|
|
766
|
+
* @private
|
|
767
|
+
* @name set
|
|
768
|
+
* @memberOf MapCache
|
|
769
|
+
* @param {string} key The key of the value to set.
|
|
813
770
|
* @param {*} value The value to set.
|
|
814
|
-
* @returns {Object} Returns
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
771
|
+
* @returns {Object} Returns the map cache instance.
|
|
772
|
+
*/
|
|
773
|
+
function mapCacheSet(key, value) {
|
|
774
|
+
getMapData(this, key).set(key, value);
|
|
775
|
+
return this;
|
|
776
|
+
}
|
|
777
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
778
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
779
|
+
MapCache.prototype.get = mapCacheGet;
|
|
780
|
+
MapCache.prototype.has = mapCacheHas;
|
|
781
|
+
MapCache.prototype.set = mapCacheSet;
|
|
782
|
+
/**
|
|
783
|
+
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
784
|
+
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
785
|
+
* for equality comparisons.
|
|
822
786
|
*
|
|
823
|
-
*
|
|
824
|
-
*
|
|
825
|
-
*
|
|
787
|
+
* @private
|
|
788
|
+
* @param {Object} object The object to modify.
|
|
789
|
+
* @param {string} key The key of the property to assign.
|
|
790
|
+
* @param {*} value The value to assign.
|
|
826
791
|
*/
|
|
827
|
-
function
|
|
828
|
-
|
|
792
|
+
function assignValue(object, key, value) {
|
|
793
|
+
var objValue = object[key];
|
|
794
|
+
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) object[key] = value;
|
|
829
795
|
}
|
|
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) {
|
|
836
796
|
/**
|
|
837
|
-
*
|
|
838
|
-
*
|
|
839
|
-
*
|
|
840
|
-
*
|
|
841
|
-
*
|
|
842
|
-
*
|
|
797
|
+
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
798
|
+
*
|
|
799
|
+
* @private
|
|
800
|
+
* @param {Array} array The array to inspect.
|
|
801
|
+
* @param {*} key The key to search for.
|
|
802
|
+
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
843
803
|
*/
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
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")();
|
|
804
|
+
function assocIndexOf(array, key) {
|
|
805
|
+
var length = array.length;
|
|
806
|
+
while (length--) if (eq(array[length][0], key)) return length;
|
|
807
|
+
return -1;
|
|
808
|
+
}
|
|
854
809
|
/**
|
|
855
|
-
*
|
|
856
|
-
*
|
|
810
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
811
|
+
*
|
|
812
|
+
* @private
|
|
813
|
+
* @param {*} value The value to check.
|
|
814
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
815
|
+
* else `false`.
|
|
816
|
+
*/
|
|
817
|
+
function baseIsNative(value) {
|
|
818
|
+
if (!isObject(value) || isMasked(value)) return false;
|
|
819
|
+
var pattern = isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor;
|
|
820
|
+
return pattern.test(toSource(value));
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* The base implementation of `_.set`.
|
|
857
824
|
*
|
|
858
825
|
* @private
|
|
859
|
-
* @param {
|
|
860
|
-
* @param {
|
|
861
|
-
* @param {
|
|
862
|
-
* @
|
|
826
|
+
* @param {Object} object The object to modify.
|
|
827
|
+
* @param {Array|string} path The path of the property to set.
|
|
828
|
+
* @param {*} value The value to set.
|
|
829
|
+
* @param {Function} [customizer] The function to customize path creation.
|
|
830
|
+
* @returns {Object} Returns `object`.
|
|
863
831
|
*/
|
|
864
|
-
function
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
832
|
+
function baseSet(object, path, value, customizer) {
|
|
833
|
+
if (!isObject(object)) return object;
|
|
834
|
+
path = isKey(path, object) ? [path] : castPath(path);
|
|
835
|
+
var index = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
836
|
+
while (nested != null && ++index < length) {
|
|
837
|
+
var key = toKey(path[index]), newValue = value;
|
|
838
|
+
if (index != lastIndex) {
|
|
839
|
+
var objValue = nested[key];
|
|
840
|
+
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
841
|
+
if (newValue === void 0) newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
|
|
842
|
+
}
|
|
843
|
+
assignValue(nested, key, newValue);
|
|
844
|
+
nested = nested[key];
|
|
870
845
|
}
|
|
871
|
-
return
|
|
846
|
+
return object;
|
|
872
847
|
}
|
|
873
848
|
/**
|
|
874
|
-
*
|
|
875
|
-
*
|
|
849
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
850
|
+
* values to empty strings.
|
|
876
851
|
*
|
|
877
852
|
* @private
|
|
878
|
-
* @param {
|
|
879
|
-
* @
|
|
880
|
-
* @returns {Array} Returns the new mapped array.
|
|
853
|
+
* @param {*} value The value to process.
|
|
854
|
+
* @returns {string} Returns the string.
|
|
881
855
|
*/
|
|
882
|
-
function
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
856
|
+
function baseToString(value) {
|
|
857
|
+
if (typeof value == "string") return value;
|
|
858
|
+
if (isSymbol(value)) return symbolToString ? symbolToString.call(value) : "";
|
|
859
|
+
var result = value + "";
|
|
860
|
+
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
886
861
|
}
|
|
887
862
|
/**
|
|
888
|
-
*
|
|
863
|
+
* Casts `value` to a path array if it's not one.
|
|
889
864
|
*
|
|
890
865
|
* @private
|
|
891
|
-
* @param {
|
|
892
|
-
* @
|
|
893
|
-
* @returns {Array} Returns `array`.
|
|
866
|
+
* @param {*} value The value to inspect.
|
|
867
|
+
* @returns {Array} Returns the cast property path array.
|
|
894
868
|
*/
|
|
895
|
-
function
|
|
896
|
-
|
|
897
|
-
while (++index < length) array[offset + index] = values[index];
|
|
898
|
-
return array;
|
|
869
|
+
function castPath(value) {
|
|
870
|
+
return isArray(value) ? value : stringToPath(value);
|
|
899
871
|
}
|
|
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;
|
|
904
872
|
/**
|
|
905
|
-
*
|
|
906
|
-
*
|
|
907
|
-
*
|
|
873
|
+
* Gets the data for `map`.
|
|
874
|
+
*
|
|
875
|
+
* @private
|
|
876
|
+
* @param {Object} map The map to query.
|
|
877
|
+
* @param {string} key The reference key.
|
|
878
|
+
* @returns {*} Returns the map data.
|
|
908
879
|
*/
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
880
|
+
function getMapData(map, key) {
|
|
881
|
+
var data = map.__data__;
|
|
882
|
+
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
883
|
+
}
|
|
913
884
|
/**
|
|
914
|
-
*
|
|
885
|
+
* Gets the native function at `key` of `object`.
|
|
915
886
|
*
|
|
916
887
|
* @private
|
|
917
|
-
* @param {
|
|
918
|
-
* @param {
|
|
919
|
-
* @
|
|
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.
|
|
888
|
+
* @param {Object} object The object to query.
|
|
889
|
+
* @param {string} key The key of the method to get.
|
|
890
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
923
891
|
*/
|
|
924
|
-
function
|
|
925
|
-
var
|
|
926
|
-
|
|
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;
|
|
892
|
+
function getNative(object, key) {
|
|
893
|
+
var value = getValue(object, key);
|
|
894
|
+
return baseIsNative(value) ? value : void 0;
|
|
935
895
|
}
|
|
936
896
|
/**
|
|
937
|
-
*
|
|
938
|
-
* property identifiers.
|
|
897
|
+
* Checks if `value` is a valid array-like index.
|
|
939
898
|
*
|
|
940
899
|
* @private
|
|
941
|
-
* @param {
|
|
942
|
-
* @param {
|
|
943
|
-
* @returns {
|
|
900
|
+
* @param {*} value The value to check.
|
|
901
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
902
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
944
903
|
*/
|
|
945
|
-
function
|
|
946
|
-
|
|
947
|
-
return
|
|
948
|
-
return key in object;
|
|
949
|
-
});
|
|
904
|
+
function isIndex(value, length) {
|
|
905
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
906
|
+
return !!length && (typeof value == "number" || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
950
907
|
}
|
|
951
908
|
/**
|
|
952
|
-
*
|
|
909
|
+
* Checks if `value` is a property name and not a property path.
|
|
953
910
|
*
|
|
954
911
|
* @private
|
|
955
|
-
* @param {
|
|
956
|
-
* @param {
|
|
957
|
-
* @
|
|
958
|
-
* @returns {Object} Returns the new object.
|
|
912
|
+
* @param {*} value The value to check.
|
|
913
|
+
* @param {Object} [object] The object to query keys on.
|
|
914
|
+
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
959
915
|
*/
|
|
960
|
-
function
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
}
|
|
966
|
-
return result;
|
|
916
|
+
function isKey(value, object) {
|
|
917
|
+
if (isArray(value)) return false;
|
|
918
|
+
var type = typeof value;
|
|
919
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) return true;
|
|
920
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
967
921
|
}
|
|
968
922
|
/**
|
|
969
|
-
*
|
|
923
|
+
* Checks if `value` is suitable for use as unique object key.
|
|
970
924
|
*
|
|
971
925
|
* @private
|
|
972
|
-
* @param {
|
|
973
|
-
* @
|
|
974
|
-
* @returns {Function} Returns the new function.
|
|
926
|
+
* @param {*} value The value to check.
|
|
927
|
+
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
975
928
|
*/
|
|
976
|
-
function
|
|
977
|
-
|
|
978
|
-
return
|
|
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
|
-
};
|
|
929
|
+
function isKeyable(value) {
|
|
930
|
+
var type = typeof value;
|
|
931
|
+
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
987
932
|
}
|
|
988
933
|
/**
|
|
989
|
-
* Checks if `
|
|
934
|
+
* Checks if `func` has its source masked.
|
|
990
935
|
*
|
|
991
936
|
* @private
|
|
992
|
-
* @param {
|
|
993
|
-
* @returns {boolean} Returns `true` if `
|
|
937
|
+
* @param {Function} func The function to check.
|
|
938
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
994
939
|
*/
|
|
995
|
-
function
|
|
996
|
-
return
|
|
940
|
+
function isMasked(func) {
|
|
941
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
997
942
|
}
|
|
998
943
|
/**
|
|
944
|
+
* Converts `string` to a property path array.
|
|
945
|
+
*
|
|
946
|
+
* @private
|
|
947
|
+
* @param {string} string The string to convert.
|
|
948
|
+
* @returns {Array} Returns the property path array.
|
|
949
|
+
*/
|
|
950
|
+
var stringToPath = memoize(function(string) {
|
|
951
|
+
string = toString(string);
|
|
952
|
+
var result = [];
|
|
953
|
+
if (reLeadingDot.test(string)) result.push("");
|
|
954
|
+
string.replace(rePropName, function(match, number, quote, string$1) {
|
|
955
|
+
result.push(quote ? string$1.replace(reEscapeChar, "$1") : number || match);
|
|
956
|
+
});
|
|
957
|
+
return result;
|
|
958
|
+
});
|
|
959
|
+
/**
|
|
999
960
|
* Converts `value` to a string key if it's not a string or symbol.
|
|
1000
961
|
*
|
|
1001
962
|
* @private
|
|
@@ -1008,25 +969,114 @@ var require_lodash = require_Construct.__commonJS({ "../../node_modules/.pnpm/lo
|
|
|
1008
969
|
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
|
1009
970
|
}
|
|
1010
971
|
/**
|
|
1011
|
-
*
|
|
972
|
+
* Converts `func` to its source code.
|
|
973
|
+
*
|
|
974
|
+
* @private
|
|
975
|
+
* @param {Function} func The function to process.
|
|
976
|
+
* @returns {string} Returns the source code.
|
|
977
|
+
*/
|
|
978
|
+
function toSource(func) {
|
|
979
|
+
if (func != null) {
|
|
980
|
+
try {
|
|
981
|
+
return funcToString.call(func);
|
|
982
|
+
} catch (e) {}
|
|
983
|
+
try {
|
|
984
|
+
return func + "";
|
|
985
|
+
} catch (e) {}
|
|
986
|
+
}
|
|
987
|
+
return "";
|
|
988
|
+
}
|
|
989
|
+
/**
|
|
990
|
+
* Creates a function that memoizes the result of `func`. If `resolver` is
|
|
991
|
+
* provided, it determines the cache key for storing the result based on the
|
|
992
|
+
* arguments provided to the memoized function. By default, the first argument
|
|
993
|
+
* provided to the memoized function is used as the map cache key. The `func`
|
|
994
|
+
* is invoked with the `this` binding of the memoized function.
|
|
995
|
+
*
|
|
996
|
+
* **Note:** The cache is exposed as the `cache` property on the memoized
|
|
997
|
+
* function. Its creation may be customized by replacing the `_.memoize.Cache`
|
|
998
|
+
* constructor with one whose instances implement the
|
|
999
|
+
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
|
|
1000
|
+
* method interface of `delete`, `get`, `has`, and `set`.
|
|
1001
|
+
*
|
|
1002
|
+
* @static
|
|
1003
|
+
* @memberOf _
|
|
1004
|
+
* @since 0.1.0
|
|
1005
|
+
* @category Function
|
|
1006
|
+
* @param {Function} func The function to have its output memoized.
|
|
1007
|
+
* @param {Function} [resolver] The function to resolve the cache key.
|
|
1008
|
+
* @returns {Function} Returns the new memoized function.
|
|
1009
|
+
* @example
|
|
1010
|
+
*
|
|
1011
|
+
* var object = { 'a': 1, 'b': 2 };
|
|
1012
|
+
* var other = { 'c': 3, 'd': 4 };
|
|
1013
|
+
*
|
|
1014
|
+
* var values = _.memoize(_.values);
|
|
1015
|
+
* values(object);
|
|
1016
|
+
* // => [1, 2]
|
|
1017
|
+
*
|
|
1018
|
+
* values(other);
|
|
1019
|
+
* // => [3, 4]
|
|
1020
|
+
*
|
|
1021
|
+
* object.a = 2;
|
|
1022
|
+
* values(object);
|
|
1023
|
+
* // => [1, 2]
|
|
1024
|
+
*
|
|
1025
|
+
* // Modify the result cache.
|
|
1026
|
+
* values.cache.set(object, ['a', 'b']);
|
|
1027
|
+
* values(object);
|
|
1028
|
+
* // => ['a', 'b']
|
|
1029
|
+
*
|
|
1030
|
+
* // Replace `_.memoize.Cache`.
|
|
1031
|
+
* _.memoize.Cache = WeakMap;
|
|
1032
|
+
*/
|
|
1033
|
+
function memoize(func, resolver) {
|
|
1034
|
+
if (typeof func != "function" || resolver && typeof resolver != "function") throw new TypeError(FUNC_ERROR_TEXT);
|
|
1035
|
+
var memoized = function() {
|
|
1036
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
1037
|
+
if (cache.has(key)) return cache.get(key);
|
|
1038
|
+
var result = func.apply(this, args);
|
|
1039
|
+
memoized.cache = cache.set(key, result);
|
|
1040
|
+
return result;
|
|
1041
|
+
};
|
|
1042
|
+
memoized.cache = new (memoize.Cache || MapCache)();
|
|
1043
|
+
return memoized;
|
|
1044
|
+
}
|
|
1045
|
+
memoize.Cache = MapCache;
|
|
1046
|
+
/**
|
|
1047
|
+
* Performs a
|
|
1048
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1049
|
+
* comparison between two values to determine if they are equivalent.
|
|
1012
1050
|
*
|
|
1013
1051
|
* @static
|
|
1014
1052
|
* @memberOf _
|
|
1015
|
-
* @since 0.
|
|
1053
|
+
* @since 4.0.0
|
|
1016
1054
|
* @category Lang
|
|
1017
|
-
* @param {*} value The value to
|
|
1018
|
-
* @
|
|
1019
|
-
*
|
|
1055
|
+
* @param {*} value The value to compare.
|
|
1056
|
+
* @param {*} other The other value to compare.
|
|
1057
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
1020
1058
|
* @example
|
|
1021
1059
|
*
|
|
1022
|
-
*
|
|
1060
|
+
* var object = { 'a': 1 };
|
|
1061
|
+
* var other = { 'a': 1 };
|
|
1062
|
+
*
|
|
1063
|
+
* _.eq(object, object);
|
|
1023
1064
|
* // => true
|
|
1024
1065
|
*
|
|
1025
|
-
* _.
|
|
1066
|
+
* _.eq(object, other);
|
|
1067
|
+
* // => false
|
|
1068
|
+
*
|
|
1069
|
+
* _.eq('a', 'a');
|
|
1070
|
+
* // => true
|
|
1071
|
+
*
|
|
1072
|
+
* _.eq('a', Object('a'));
|
|
1026
1073
|
* // => false
|
|
1074
|
+
*
|
|
1075
|
+
* _.eq(NaN, NaN);
|
|
1076
|
+
* // => true
|
|
1027
1077
|
*/
|
|
1028
|
-
function
|
|
1029
|
-
return
|
|
1078
|
+
function eq(value, other) {
|
|
1079
|
+
return value === other || value !== value && other !== other;
|
|
1030
1080
|
}
|
|
1031
1081
|
/**
|
|
1032
1082
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -1053,62 +1103,6 @@ var require_lodash = require_Construct.__commonJS({ "../../node_modules/.pnpm/lo
|
|
|
1053
1103
|
*/
|
|
1054
1104
|
var isArray = Array.isArray;
|
|
1055
1105
|
/**
|
|
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
|
-
/**
|
|
1112
1106
|
* Checks if `value` is classified as a `Function` object.
|
|
1113
1107
|
*
|
|
1114
1108
|
* @static
|
|
@@ -1130,35 +1124,6 @@ var require_lodash = require_Construct.__commonJS({ "../../node_modules/.pnpm/lo
|
|
|
1130
1124
|
return tag == funcTag || tag == genTag;
|
|
1131
1125
|
}
|
|
1132
1126
|
/**
|
|
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
|
-
/**
|
|
1162
1127
|
* Checks if `value` is the
|
|
1163
1128
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
1164
1129
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
@@ -1235,32 +1200,67 @@ var require_lodash = require_Construct.__commonJS({ "../../node_modules/.pnpm/lo
|
|
|
1235
1200
|
return typeof value == "symbol" || isObjectLike(value) && objectToString.call(value) == symbolTag;
|
|
1236
1201
|
}
|
|
1237
1202
|
/**
|
|
1238
|
-
*
|
|
1203
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
1204
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
1205
|
+
*
|
|
1206
|
+
* @static
|
|
1207
|
+
* @memberOf _
|
|
1208
|
+
* @since 4.0.0
|
|
1209
|
+
* @category Lang
|
|
1210
|
+
* @param {*} value The value to process.
|
|
1211
|
+
* @returns {string} Returns the string.
|
|
1212
|
+
* @example
|
|
1213
|
+
*
|
|
1214
|
+
* _.toString(null);
|
|
1215
|
+
* // => ''
|
|
1216
|
+
*
|
|
1217
|
+
* _.toString(-0);
|
|
1218
|
+
* // => '-0'
|
|
1219
|
+
*
|
|
1220
|
+
* _.toString([1, 2, 3]);
|
|
1221
|
+
* // => '1,2,3'
|
|
1222
|
+
*/
|
|
1223
|
+
function toString(value) {
|
|
1224
|
+
return value == null ? "" : baseToString(value);
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* Sets the value at `path` of `object`. If a portion of `path` doesn't exist,
|
|
1228
|
+
* it's created. Arrays are created for missing index properties while objects
|
|
1229
|
+
* are created for all other missing properties. Use `_.setWith` to customize
|
|
1230
|
+
* `path` creation.
|
|
1231
|
+
*
|
|
1232
|
+
* **Note:** This method mutates `object`.
|
|
1239
1233
|
*
|
|
1240
1234
|
* @static
|
|
1241
|
-
* @since 0.1.0
|
|
1242
1235
|
* @memberOf _
|
|
1236
|
+
* @since 3.7.0
|
|
1243
1237
|
* @category Object
|
|
1244
|
-
* @param {Object} object The
|
|
1245
|
-
* @param {
|
|
1246
|
-
* @
|
|
1238
|
+
* @param {Object} object The object to modify.
|
|
1239
|
+
* @param {Array|string} path The path of the property to set.
|
|
1240
|
+
* @param {*} value The value to set.
|
|
1241
|
+
* @returns {Object} Returns `object`.
|
|
1247
1242
|
* @example
|
|
1248
1243
|
*
|
|
1249
|
-
* var object = { 'a':
|
|
1244
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }] };
|
|
1250
1245
|
*
|
|
1251
|
-
* _.
|
|
1252
|
-
*
|
|
1246
|
+
* _.set(object, 'a[0].b.c', 4);
|
|
1247
|
+
* console.log(object.a[0].b.c);
|
|
1248
|
+
* // => 4
|
|
1249
|
+
*
|
|
1250
|
+
* _.set(object, ['x', '0', 'y', 'z'], 5);
|
|
1251
|
+
* console.log(object.x[0].y.z);
|
|
1252
|
+
* // => 5
|
|
1253
1253
|
*/
|
|
1254
|
-
|
|
1255
|
-
return object == null ?
|
|
1256
|
-
}
|
|
1257
|
-
module.exports =
|
|
1254
|
+
function set$1(object, path, value) {
|
|
1255
|
+
return object == null ? object : baseSet(object, path, value);
|
|
1256
|
+
}
|
|
1257
|
+
module.exports = set$1;
|
|
1258
1258
|
} });
|
|
1259
1259
|
|
|
1260
1260
|
//#endregion
|
|
1261
1261
|
//#region src/endpoints/Endpoint.ts
|
|
1262
|
-
var import_lodash =
|
|
1263
|
-
var import_lodash$1 =
|
|
1262
|
+
var import_lodash = require_chunk.__toESM(require_lodash$1(), 1);
|
|
1263
|
+
var import_lodash$1 = require_chunk.__toESM(require_lodash(), 1);
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Represents an HTTP endpoint that can handle requests with type-safe input/output validation,
|
|
1266
1266
|
* dependency injection, session management, and authorization.
|
|
@@ -1292,6 +1292,14 @@ var Endpoint = class Endpoint extends require_functions.Function {
|
|
|
1292
1292
|
route;
|
|
1293
1293
|
/** The HTTP method for this endpoint */
|
|
1294
1294
|
method;
|
|
1295
|
+
/**
|
|
1296
|
+
* The surface that serves it, when it was built from one.
|
|
1297
|
+
*
|
|
1298
|
+
* Carries the env parser the adaptors need, so a generated handler needs no
|
|
1299
|
+
* import written for it — and the surface's id, so the build attributes the
|
|
1300
|
+
* route to the API that serves it rather than inferring it by exclusion.
|
|
1301
|
+
*/
|
|
1302
|
+
surface;
|
|
1295
1303
|
/** Optional description for OpenAPI documentation */
|
|
1296
1304
|
description;
|
|
1297
1305
|
/** Optional tags for OpenAPI documentation */
|
|
@@ -1596,8 +1604,8 @@ var Endpoint = class Endpoint extends require_functions.Function {
|
|
|
1596
1604
|
* @param options.status - Success HTTP status code (default: 200)
|
|
1597
1605
|
* @param options.authorizer - Optional authorizer configuration
|
|
1598
1606
|
*/
|
|
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);
|
|
1607
|
+
constructor({ fn, method, route, description, tags, input, logger, output: outputSchema, services, constructs, timeout, memorySize, getSession, authorize, rateLimit, status = SuccessStatus.OK, publisherService, events, authorizer, surface, auditorStorageService, actorExtractor, audits, databaseService, rlsConfig, rlsBypass, responseType }) {
|
|
1608
|
+
super(fn, timeout, require_Construct.ConstructType.Endpoint, input, outputSchema, services, logger, publisherService, events, memorySize, auditorStorageService, void 0, constructs);
|
|
1601
1609
|
this.route = route;
|
|
1602
1610
|
this.method = method;
|
|
1603
1611
|
this.description = description;
|
|
@@ -1609,6 +1617,7 @@ var Endpoint = class Endpoint extends require_functions.Function {
|
|
|
1609
1617
|
if (authorize) this.authorize = authorize;
|
|
1610
1618
|
if (rateLimit) this.rateLimit = rateLimit;
|
|
1611
1619
|
if (authorizer) this.authorizer = authorizer;
|
|
1620
|
+
this.surface = surface;
|
|
1612
1621
|
if (actorExtractor) this.actorExtractor = actorExtractor;
|
|
1613
1622
|
if (audits) this.audits = audits;
|
|
1614
1623
|
if (databaseService) this.databaseService = databaseService;
|
|
@@ -1679,177 +1688,6 @@ let SuccessStatus = /* @__PURE__ */ function(SuccessStatus$1) {
|
|
|
1679
1688
|
return SuccessStatus$1;
|
|
1680
1689
|
}({});
|
|
1681
1690
|
|
|
1682
|
-
//#endregion
|
|
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
1691
|
//#endregion
|
|
1854
1692
|
Object.defineProperty(exports, 'Endpoint', {
|
|
1855
1693
|
enumerable: true,
|
|
@@ -1863,58 +1701,10 @@ Object.defineProperty(exports, 'ResponseBuilder', {
|
|
|
1863
1701
|
return ResponseBuilder;
|
|
1864
1702
|
}
|
|
1865
1703
|
});
|
|
1866
|
-
Object.defineProperty(exports, 'createApiGatewayCookies', {
|
|
1867
|
-
enumerable: true,
|
|
1868
|
-
get: function () {
|
|
1869
|
-
return createApiGatewayCookies;
|
|
1870
|
-
}
|
|
1871
|
-
});
|
|
1872
|
-
Object.defineProperty(exports, 'createApiGatewayHeaders', {
|
|
1873
|
-
enumerable: true,
|
|
1874
|
-
get: function () {
|
|
1875
|
-
return createApiGatewayHeaders;
|
|
1876
|
-
}
|
|
1877
|
-
});
|
|
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
1704
|
Object.defineProperty(exports, 'require_lodash', {
|
|
1915
1705
|
enumerable: true,
|
|
1916
1706
|
get: function () {
|
|
1917
|
-
return require_lodash
|
|
1707
|
+
return require_lodash;
|
|
1918
1708
|
}
|
|
1919
1709
|
});
|
|
1920
|
-
//# sourceMappingURL=
|
|
1710
|
+
//# sourceMappingURL=Endpoint-BBkV6l0k.cjs.map
|