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