@directus/api 35.0.2 → 35.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.js +1 -24
- package/dist/ai/chat/controllers/chat.post.js +9 -22
- package/dist/ai/chat/controllers/object.post.js +58 -0
- package/dist/ai/chat/lib/create-ui-stream.js +10 -18
- package/dist/ai/chat/lib/transform-file-parts.js +1 -3
- package/dist/ai/chat/middleware/load-settings.js +1 -2
- package/dist/ai/chat/models/chat-request.js +2 -9
- package/dist/ai/chat/models/object-request.js +19 -0
- package/dist/ai/chat/router.js +3 -2
- package/dist/ai/chat/utils/add-additional-properties-to-json-schema.js +37 -0
- package/dist/ai/chat/utils/chat-request-tool-to-ai-sdk-tool.js +3 -8
- package/dist/ai/chat/utils/fix-error-tool-calls.js +4 -6
- package/dist/ai/chat/utils/format-context.js +17 -27
- package/dist/ai/chat/utils/parse-json-schema-7.js +3 -6
- package/dist/ai/chat/utils/zod-jsonschema7-parser.js +16 -0
- package/dist/ai/devtools/index.js +1 -2
- package/dist/ai/files/adapters/anthropic.js +1 -3
- package/dist/ai/files/adapters/google.js +5 -12
- package/dist/ai/files/adapters/openai.js +1 -3
- package/dist/ai/files/controllers/upload.js +8 -24
- package/dist/ai/files/lib/fetch-provider.js +1 -3
- package/dist/ai/files/lib/upload-to-provider.js +6 -16
- package/dist/ai/mcp/server.js +58 -102
- package/dist/ai/mcp/transport.js +2 -6
- package/dist/ai/providers/anthropic-file-support.js +28 -41
- package/dist/ai/providers/anthropic-tool-search.js +10 -14
- package/dist/ai/providers/index.js +0 -1
- package/dist/ai/providers/options.js +2 -7
- package/dist/ai/providers/registry.js +38 -48
- package/dist/ai/telemetry/braintrust.js +3 -9
- package/dist/ai/telemetry/index.js +14 -13
- package/dist/ai/telemetry/langfuse.js +8 -22
- package/dist/ai/tools/assets/index.js +15 -23
- package/dist/ai/tools/collections/index.js +9 -19
- package/dist/ai/tools/fields/index.js +13 -27
- package/dist/ai/tools/files/index.js +11 -24
- package/dist/ai/tools/flows/index.js +8 -16
- package/dist/ai/tools/folders/index.js +11 -23
- package/dist/ai/tools/items/index.js +19 -44
- package/dist/ai/tools/operations/index.js +7 -13
- package/dist/ai/tools/relations/index.js +5 -11
- package/dist/ai/tools/schema/index.js +39 -91
- package/dist/ai/tools/trigger-flow/index.js +9 -16
- package/dist/ai/tools/utils.js +4 -8
- package/dist/app.js +19 -51
- package/dist/auth/auth.js +3 -9
- package/dist/auth/drivers/ldap.js +39 -82
- package/dist/auth/drivers/local.js +4 -12
- package/dist/auth/drivers/oauth2.js +32 -63
- package/dist/auth/drivers/openid.js +49 -89
- package/dist/auth/drivers/saml.js +16 -31
- package/dist/auth/utils/generate-callback-url.js +2 -7
- package/dist/auth/utils/resolve-login-redirect.js +11 -21
- package/dist/auth.js +2 -5
- package/dist/bus/lib/use-bus.js +3 -7
- package/dist/cache.js +11 -24
- package/dist/cli/commands/bootstrap/index.js +10 -19
- package/dist/cli/commands/cache/clear.js +1 -3
- package/dist/cli/commands/database/migrate.js +2 -5
- package/dist/cli/commands/init/index.js +3 -5
- package/dist/cli/commands/init/questions.js +2 -3
- package/dist/cli/commands/schema/apply.js +39 -81
- package/dist/cli/commands/schema/snapshot.js +3 -8
- package/dist/cli/commands/users/create.js +3 -5
- package/dist/cli/commands/users/passwd.js +2 -5
- package/dist/cli/index.js +1 -2
- package/dist/cli/load-extensions.js +3 -6
- package/dist/cli/utils/create-db-connection.js +7 -12
- package/dist/cli/utils/create-env/index.js +2 -6
- package/dist/cli/utils/drivers.js +1 -3
- package/dist/controllers/access.js +15 -30
- package/dist/controllers/activity.js +5 -10
- package/dist/controllers/assets.js +24 -61
- package/dist/controllers/auth.js +19 -52
- package/dist/controllers/collections.js +8 -17
- package/dist/controllers/comments.js +15 -30
- package/dist/controllers/dashboards.js +13 -25
- package/dist/controllers/deployment-webhooks.js +6 -12
- package/dist/controllers/deployment.js +39 -90
- package/dist/controllers/extensions.js +53 -98
- package/dist/controllers/fields.js +17 -38
- package/dist/controllers/files.js +31 -68
- package/dist/controllers/flows.js +15 -30
- package/dist/controllers/folders.js +16 -32
- package/dist/controllers/graphql.js +2 -6
- package/dist/controllers/items.js +18 -38
- package/dist/controllers/mcp.js +4 -8
- package/dist/controllers/metrics.js +4 -12
- package/dist/controllers/not-found.js +2 -5
- package/dist/controllers/notifications.js +16 -32
- package/dist/controllers/operations.js +13 -25
- package/dist/controllers/panels.js +13 -25
- package/dist/controllers/permissions.js +18 -35
- package/dist/controllers/policies.js +15 -30
- package/dist/controllers/presets.js +16 -32
- package/dist/controllers/relations.js +12 -24
- package/dist/controllers/revisions.js +2 -3
- package/dist/controllers/roles.js +13 -25
- package/dist/controllers/schema.js +19 -30
- package/dist/controllers/server.js +32 -44
- package/dist/controllers/settings.js +5 -9
- package/dist/controllers/shares.js +20 -40
- package/dist/controllers/translations.js +16 -32
- package/dist/controllers/tus.js +4 -11
- package/dist/controllers/users.js +46 -100
- package/dist/controllers/utils/handle-registry-error.js +26 -0
- package/dist/controllers/utils.js +20 -41
- package/dist/controllers/versions.js +20 -41
- package/dist/database/errors/dialects/mssql.js +8 -21
- package/dist/database/errors/dialects/mysql.js +7 -14
- package/dist/database/errors/dialects/oracle.js +3 -6
- package/dist/database/errors/dialects/postgres.js +8 -18
- package/dist/database/errors/dialects/sqlite.js +16 -21
- package/dist/database/errors/translate.js +1 -2
- package/dist/database/get-ast-from-query/get-ast-from-query.js +4 -12
- package/dist/database/get-ast-from-query/lib/convert-wildcards.js +15 -29
- package/dist/database/get-ast-from-query/lib/parse-fields.js +17 -41
- package/dist/database/get-ast-from-query/utils/get-allowed-sort.js +5 -14
- package/dist/database/get-ast-from-query/utils/get-related-collection.js +2 -6
- package/dist/database/helpers/date/dialects/mysql.js +1 -1
- package/dist/database/helpers/date/dialects/oracle.js +3 -9
- package/dist/database/helpers/date/dialects/sqlite.js +3 -9
- package/dist/database/helpers/date/types.js +1 -3
- package/dist/database/helpers/fn/dialects/mssql.js +4 -12
- package/dist/database/helpers/fn/dialects/mysql.js +5 -14
- package/dist/database/helpers/fn/dialects/oracle.js +4 -12
- package/dist/database/helpers/fn/dialects/postgres.js +5 -14
- package/dist/database/helpers/fn/dialects/sqlite.js +4 -12
- package/dist/database/helpers/fn/json/parse-function.js +9 -27
- package/dist/database/helpers/fn/types.js +1 -3
- package/dist/database/helpers/geometry/dialects/mssql.js +1 -3
- package/dist/database/helpers/geometry/dialects/oracle.js +1 -3
- package/dist/database/helpers/geometry/dialects/postgres.js +1 -2
- package/dist/database/helpers/geometry/dialects/redshift.js +1 -3
- package/dist/database/helpers/geometry/dialects/sqlite.js +1 -2
- package/dist/database/helpers/index.js +1 -2
- package/dist/database/helpers/number/dialects/postgres.js +1 -3
- package/dist/database/helpers/number/utils/decimal-limit.js +2 -4
- package/dist/database/helpers/number/utils/maybe-stringify-big-int.js +1 -3
- package/dist/database/helpers/schema/dialects/cockroachdb.js +8 -15
- package/dist/database/helpers/schema/dialects/mssql.js +8 -15
- package/dist/database/helpers/schema/dialects/mysql.js +8 -14
- package/dist/database/helpers/schema/dialects/oracle.js +13 -28
- package/dist/database/helpers/schema/dialects/postgres.js +6 -10
- package/dist/database/helpers/schema/dialects/sqlite.js +1 -3
- package/dist/database/helpers/schema/types.js +12 -35
- package/dist/database/helpers/schema/utils/prep-query-params.js +4 -7
- package/dist/database/helpers/sequence/types.js +1 -3
- package/dist/database/index.js +41 -79
- package/dist/database/migrations/20201029A-remove-system-relations.js +1 -5
- package/dist/database/migrations/20201029B-remove-system-collections.js +1 -5
- package/dist/database/migrations/20201029C-remove-system-fields.js +1 -5
- package/dist/database/migrations/20201105A-add-cascade-system-relations.js +9 -15
- package/dist/database/migrations/20210225A-add-relations-sort-field.js +4 -6
- package/dist/database/migrations/20210415A-make-filesize-nullable.js +2 -4
- package/dist/database/migrations/20210506A-rename-interfaces.js +13 -20
- package/dist/database/migrations/20210518A-add-foreign-key-constraints.js +7 -18
- package/dist/database/migrations/20210519A-add-system-fk-triggers.js +58 -67
- package/dist/database/migrations/20210626A-change-filesize-bigint.js +2 -8
- package/dist/database/migrations/20210802A-replace-groups.js +7 -9
- package/dist/database/migrations/20210805A-update-groups.js +4 -14
- package/dist/database/migrations/20210805B-change-image-metadata-structure.js +2 -6
- package/dist/database/migrations/20210920A-webhooks-url-not-null.js +2 -6
- package/dist/database/migrations/20210927A-replace-fields-group.js +5 -11
- package/dist/database/migrations/20211007A-update-presets.js +4 -12
- package/dist/database/migrations/20220303A-remove-default-project-color.js +2 -4
- package/dist/database/migrations/20220322A-rename-field-typecast-flags.js +2 -6
- package/dist/database/migrations/20220325A-fix-typecast-flags.js +3 -8
- package/dist/database/migrations/20220402A-remove-default-value-panel-icon.js +2 -4
- package/dist/database/migrations/20220429A-add-flows.js +2 -4
- package/dist/database/migrations/20220801A-update-notifications-timestamp-column.js +2 -4
- package/dist/database/migrations/20230401A-update-material-icons.js +2 -4
- package/dist/database/migrations/20230526A-migrate-translation-strings.js +9 -16
- package/dist/database/migrations/20230721A-require-shares-fields.js +9 -20
- package/dist/database/migrations/20231009A-update-csv-fields-to-text.js +15 -22
- package/dist/database/migrations/20231009B-update-panel-options.js +4 -12
- package/dist/database/migrations/20240204A-marketplace.js +20 -26
- package/dist/database/migrations/20240311A-deprecate-webhooks.js +1 -1
- package/dist/database/migrations/20240716A-update-files-date-fields.js +8 -14
- package/dist/database/migrations/20240806A-permissions-policies.js +17 -39
- package/dist/database/migrations/20240909A-separate-comments.js +14 -17
- package/dist/database/migrations/20240924A-migrate-legacy-comments.js +6 -11
- package/dist/database/migrations/20240924B-populate-versioning-deltas.js +1 -3
- package/dist/database/migrations/20250224A-visual-editor.js +1 -2
- package/dist/database/migrations/20250609A-license-banner.js +1 -2
- package/dist/database/migrations/20250613A-add-project-id.js +2 -5
- package/dist/database/migrations/20251014A-add-project-owner.js +7 -10
- package/dist/database/migrations/20251028A-add-retention-indexes.js +7 -15
- package/dist/database/migrations/20260113A-add-revisions-index.js +7 -15
- package/dist/database/migrations/run.js +23 -50
- package/dist/database/run-ast/lib/apply-query/add-join.js +8 -20
- package/dist/database/run-ast/lib/apply-query/aggregate.js +1 -3
- package/dist/database/run-ast/lib/apply-query/filter/get-filter-type.js +3 -9
- package/dist/database/run-ast/lib/apply-query/filter/index.js +9 -27
- package/dist/database/run-ast/lib/apply-query/filter/operator.js +42 -107
- package/dist/database/run-ast/lib/apply-query/filter/validate-operator.js +3 -9
- package/dist/database/run-ast/lib/apply-query/get-filter-path.js +2 -6
- package/dist/database/run-ast/lib/apply-query/get-operation.js +9 -14
- package/dist/database/run-ast/lib/apply-query/index.js +20 -39
- package/dist/database/run-ast/lib/apply-query/join-filter-with-cases.js +3 -7
- package/dist/database/run-ast/lib/apply-query/pagination.js +2 -6
- package/dist/database/run-ast/lib/apply-query/search.js +17 -41
- package/dist/database/run-ast/lib/apply-query/sort.js +16 -30
- package/dist/database/run-ast/lib/get-db-query.js +7 -15
- package/dist/database/run-ast/lib/parse-current-level.js +10 -23
- package/dist/database/run-ast/modules/fetch-permitted-ast-root-fields.js +10 -14
- package/dist/database/run-ast/run-ast.js +30 -52
- package/dist/database/run-ast/utils/apply-case-when.js +1 -3
- package/dist/database/run-ast/utils/apply-function-to-column-name.js +2 -6
- package/dist/database/run-ast/utils/apply-parent-filters.js +14 -19
- package/dist/database/run-ast/utils/generate-alias.js +9 -14
- package/dist/database/run-ast/utils/get-column-pre-processor.js +14 -26
- package/dist/database/run-ast/utils/get-column.js +5 -14
- package/dist/database/run-ast/utils/get-inner-query-column-pre-processor.js +1 -3
- package/dist/database/run-ast/utils/merge-with-parent-items.js +31 -63
- package/dist/database/run-ast/utils/remove-temporary-fields.js +15 -29
- package/dist/database/run-ast/utils/with-preprocess-bindings.js +2 -6
- package/dist/database/seeds/run.js +19 -45
- package/dist/deployment/deployment.js +2 -8
- package/dist/deployment/drivers/netlify.js +43 -88
- package/dist/deployment/drivers/vercel.js +34 -72
- package/dist/deployment.js +8 -14
- package/dist/emitter.js +14 -21
- package/dist/extensions/index.js +1 -3
- package/dist/extensions/lib/get-extensions-path.js +1 -3
- package/dist/extensions/lib/get-extensions-settings.js +26 -42
- package/dist/extensions/lib/get-extensions.js +3 -7
- package/dist/extensions/lib/get-shared-deps-mapping.js +3 -7
- package/dist/extensions/lib/installation/index.js +1 -3
- package/dist/extensions/lib/installation/manager.js +9 -23
- package/dist/extensions/lib/sandbox/generate-host-function-reference.js +2 -5
- package/dist/extensions/lib/sandbox/register/call-reference.js +1 -1
- package/dist/extensions/lib/sandbox/register/filter.js +1 -2
- package/dist/extensions/lib/sandbox/register/operation.js +1 -2
- package/dist/extensions/lib/sandbox/register/route.js +2 -4
- package/dist/extensions/lib/sandbox/sdk/generators/log.js +1 -1
- package/dist/extensions/lib/sandbox/sdk/generators/request.js +13 -28
- package/dist/extensions/lib/sandbox/sdk/generators/sleep.js +2 -3
- package/dist/extensions/lib/sandbox/sdk/utils/wrap.js +4 -9
- package/dist/extensions/lib/sync/status.js +4 -11
- package/dist/extensions/lib/sync/sync.js +6 -12
- package/dist/extensions/lib/sync/tracker.js +7 -10
- package/dist/extensions/lib/sync/utils.js +5 -9
- package/dist/extensions/manager.js +59 -107
- package/dist/flows.js +233 -275
- package/dist/lock/lib/use-lock.js +3 -7
- package/dist/logger/index.js +37 -57
- package/dist/logger/redact-query.js +1 -3
- package/dist/mailer.js +12 -18
- package/dist/metrics/lib/create-metrics.js +69 -117
- package/dist/metrics/lib/use-metrics.js +3 -8
- package/dist/middleware/authenticate.js +1 -3
- package/dist/middleware/cache.js +5 -8
- package/dist/middleware/collection-exists.js +3 -8
- package/dist/middleware/cors.js +8 -10
- package/dist/middleware/error-handler.js +10 -21
- package/dist/middleware/extract-token.js +3 -9
- package/dist/middleware/graphql.js +16 -27
- package/dist/middleware/rate-limiter-global.js +1 -3
- package/dist/middleware/rate-limiter-ip.js +9 -11
- package/dist/middleware/rate-limiter-registration.js +9 -11
- package/dist/middleware/request-counter.js +8 -15
- package/dist/middleware/respond.js +8 -16
- package/dist/middleware/validate-batch.js +5 -15
- package/dist/operations/condition/index.js +4 -10
- package/dist/operations/exec/index.js +1 -2
- package/dist/operations/item-create/index.js +18 -26
- package/dist/operations/item-delete/index.js +21 -31
- package/dist/operations/item-read/index.js +21 -31
- package/dist/operations/item-update/index.js +23 -36
- package/dist/operations/log/index.js +1 -2
- package/dist/operations/mail/index.js +5 -8
- package/dist/operations/mail/rate-limiter.js +6 -10
- package/dist/operations/notification/index.js +13 -19
- package/dist/operations/request/index.js +8 -13
- package/dist/operations/throw-error/index.js +1 -2
- package/dist/operations/trigger/index.js +4 -8
- package/dist/packages/types/dist/index.js +219 -231
- package/dist/permissions/cache.js +2 -3
- package/dist/permissions/lib/fetch-permissions.js +1 -3
- package/dist/permissions/lib/fetch-policies.js +5 -10
- package/dist/permissions/modules/fetch-accountability-collection-access/fetch-accountability-collection-access.js +19 -32
- package/dist/permissions/modules/fetch-allowed-collections/fetch-allowed-collections.js +7 -12
- package/dist/permissions/modules/fetch-allowed-field-map/fetch-allowed-field-map.js +8 -17
- package/dist/permissions/modules/fetch-global-access/fetch-global-access.js +1 -1
- package/dist/permissions/modules/fetch-inconsistent-field-map/fetch-inconsistent-field-map.js +6 -10
- package/dist/permissions/modules/fetch-policies-ip-access/fetch-policies-ip-access.js +9 -15
- package/dist/permissions/modules/process-ast/lib/extract-fields-from-children.js +2 -8
- package/dist/permissions/modules/process-ast/lib/extract-fields-from-query.js +32 -34
- package/dist/permissions/modules/process-ast/lib/field-map-from-ast.js +2 -2
- package/dist/permissions/modules/process-ast/lib/get-cases.js +3 -8
- package/dist/permissions/modules/process-ast/lib/inject-cases.js +6 -19
- package/dist/permissions/modules/process-ast/process-ast.js +4 -12
- package/dist/permissions/modules/process-ast/utils/collections-in-field-map.js +2 -4
- package/dist/permissions/modules/process-ast/utils/dedupe-access.js +6 -10
- package/dist/permissions/modules/process-ast/utils/extract-paths-from-query.js +9 -25
- package/dist/permissions/modules/process-ast/utils/find-related-collection.js +1 -3
- package/dist/permissions/modules/process-ast/utils/flatten-filter.js +7 -10
- package/dist/permissions/modules/process-ast/utils/get-info-for-path.js +4 -6
- package/dist/permissions/modules/process-ast/utils/validate-path/create-error.js +1 -2
- package/dist/permissions/modules/process-ast/utils/validate-path/validate-path-existence.js +3 -8
- package/dist/permissions/modules/process-ast/utils/validate-path/validate-path-permissions.js +5 -13
- package/dist/permissions/modules/process-payload/lib/is-field-nullable.js +1 -2
- package/dist/permissions/modules/process-payload/process-payload.js +6 -15
- package/dist/permissions/modules/validate-access/lib/validate-collection-access.js +2 -3
- package/dist/permissions/modules/validate-access/lib/validate-item-access.js +14 -28
- package/dist/permissions/modules/validate-access/validate-access.js +5 -15
- package/dist/permissions/modules/validate-remaining-admin/validate-remaining-admin-count.js +1 -3
- package/dist/permissions/utils/extract-required-dynamic-variable-context.js +10 -15
- package/dist/permissions/utils/fetch-dynamic-variable-data.js +17 -35
- package/dist/permissions/utils/fetch-raw-permissions.js +3 -9
- package/dist/permissions/utils/fetch-share-info.js +1 -2
- package/dist/permissions/utils/filter-policies-by-ip.js +2 -6
- package/dist/permissions/utils/get-permissions-for-share.js +22 -47
- package/dist/permissions/utils/get-unaliased-field-key.js +2 -5
- package/dist/permissions/utils/merge-permissions.js +13 -36
- package/dist/permissions/utils/with-cache.js +1 -3
- package/dist/rate-limiter.js +2 -7
- package/dist/redis/lib/create-redis.js +1 -2
- package/dist/redis/lib/use-redis.js +1 -1
- package/dist/redis/utils/redis-config-available.js +1 -3
- package/dist/request/agent-with-ip-validation.js +3 -7
- package/dist/request/is-denied-ip.js +1 -3
- package/dist/schedules/metrics.js +4 -11
- package/dist/schedules/retention.js +17 -33
- package/dist/schedules/telemetry.js +1 -2
- package/dist/schedules/tus.js +5 -7
- package/dist/server.js +12 -24
- package/dist/services/access.js +1 -3
- package/dist/services/assets/name-deduper.js +2 -6
- package/dist/services/assets.js +43 -79
- package/dist/services/authentication.js +63 -96
- package/dist/services/collections.js +107 -218
- package/dist/services/comments.js +18 -32
- package/dist/services/deployment-projects.js +17 -31
- package/dist/services/deployment.js +63 -106
- package/dist/services/extensions.js +25 -63
- package/dist/services/fields/build-collection-and-field-relations.js +8 -14
- package/dist/services/fields/get-collection-meta-updates.js +4 -12
- package/dist/services/fields/get-collection-relation-list.js +2 -4
- package/dist/services/fields.js +162 -314
- package/dist/services/files/lib/extract-metadata.js +7 -20
- package/dist/services/files/utils/get-metadata.js +31 -64
- package/dist/services/files/utils/parse-image-metadata.js +7 -19
- package/dist/services/files.js +102 -173
- package/dist/services/flows.js +3 -6
- package/dist/services/folders.js +13 -17
- package/dist/services/graphql/errors/format.js +2 -2
- package/dist/services/graphql/index.js +4 -13
- package/dist/services/graphql/resolvers/get-collection-type.js +1 -3
- package/dist/services/graphql/resolvers/get-field-type.js +1 -3
- package/dist/services/graphql/resolvers/get-relation-type.js +1 -3
- package/dist/services/graphql/resolvers/mutation.js +6 -14
- package/dist/services/graphql/resolvers/query.js +3 -10
- package/dist/services/graphql/resolvers/system-admin.js +13 -27
- package/dist/services/graphql/resolvers/system-global.js +31 -71
- package/dist/services/graphql/resolvers/system.js +209 -245
- package/dist/services/graphql/schema/get-types.js +69 -101
- package/dist/services/graphql/schema/index.js +74 -92
- package/dist/services/graphql/schema/parse-args.js +1 -2
- package/dist/services/graphql/schema/parse-query.js +8 -21
- package/dist/services/graphql/schema/read.js +83 -106
- package/dist/services/graphql/schema/write.js +36 -41
- package/dist/services/graphql/subscription.js +30 -51
- package/dist/services/graphql/types/bigint.js +5 -15
- package/dist/services/graphql/types/string-or-float.js +2 -6
- package/dist/services/graphql/utils/add-path-to-validation-error.js +1 -3
- package/dist/services/graphql/utils/aggregate-query.js +2 -6
- package/dist/services/graphql/utils/dedupe-resolvers.js +8 -13
- package/dist/services/graphql/utils/filter-replace-m2a.js +9 -18
- package/dist/services/graphql/utils/process-error.js +21 -31
- package/dist/services/graphql/utils/replace-fragments.js +2 -5
- package/dist/services/graphql/utils/replace-funcs.js +2 -5
- package/dist/services/graphql/utils/sanitize-gql-schema.js +10 -21
- package/dist/services/import-export.js +68 -143
- package/dist/services/items.js +126 -271
- package/dist/services/mail/index.js +13 -26
- package/dist/services/mail/rate-limiter.js +6 -10
- package/dist/services/meta.js +4 -9
- package/dist/services/notifications.js +2 -3
- package/dist/services/operations.js +3 -6
- package/dist/services/payload.js +188 -316
- package/dist/services/permissions.js +14 -26
- package/dist/services/policies.js +7 -18
- package/dist/services/relations.js +82 -181
- package/dist/services/revisions.js +8 -15
- package/dist/services/roles.js +4 -12
- package/dist/services/schema.js +4 -9
- package/dist/services/server.js +31 -66
- package/dist/services/shares.js +25 -35
- package/dist/services/specifications.js +87 -139
- package/dist/services/tfa.js +8 -24
- package/dist/services/translations.js +6 -12
- package/dist/services/tus/data-store.js +23 -55
- package/dist/services/tus/lockers.js +4 -10
- package/dist/services/tus/server.js +2 -5
- package/dist/services/users.js +79 -153
- package/dist/services/utils.js +12 -31
- package/dist/services/versions.js +52 -96
- package/dist/services/websocket.js +8 -12
- package/dist/storage/get-storage-driver.js +2 -5
- package/dist/storage/register-drivers.js +1 -3
- package/dist/storage/register-locations.js +2 -4
- package/dist/synchronization.js +6 -17
- package/dist/telemetry/counter/use-buffered-counter.js +6 -22
- package/dist/telemetry/counter/use-counters.js +2 -6
- package/dist/telemetry/lib/send-report.js +2 -6
- package/dist/telemetry/lib/track.js +3 -8
- package/dist/telemetry/utils/check-user-limits.js +3 -9
- package/dist/telemetry/utils/format-api-request-counts.js +1 -3
- package/dist/telemetry/utils/get-extension-count.js +3 -8
- package/dist/telemetry/utils/get-item-count.js +2 -5
- package/dist/telemetry/utils/get-settings.js +2 -3
- package/dist/telemetry/utils/get-user-item-count.js +2 -4
- package/dist/telemetry/utils/should-check-user-limits.js +1 -3
- package/dist/types/index.js +0 -6
- package/dist/utils/apply-diff.js +111 -143
- package/dist/utils/apply-snapshot.js +1 -2
- package/dist/utils/calculate-field-depth.js +6 -19
- package/dist/utils/construct-flow-tree.js +5 -12
- package/dist/utils/create-admin.js +1 -2
- package/dist/utils/deep-map-response.js +31 -35
- package/dist/utils/encrypt.js +2 -3
- package/dist/utils/fetch-user-count/fetch-access-lookup.js +5 -15
- package/dist/utils/fetch-user-count/get-user-count-query.js +4 -12
- package/dist/utils/filter-items.js +9 -14
- package/dist/utils/freeze-schema.js +3 -8
- package/dist/utils/generate-translations.js +87 -137
- package/dist/utils/get-accountability-for-role.js +12 -17
- package/dist/utils/get-accountability-for-token.js +25 -31
- package/dist/utils/get-address.js +2 -7
- package/dist/utils/get-allowed-log-levels.js +1 -3
- package/dist/utils/get-auth-providers.js +12 -14
- package/dist/utils/get-cache-headers.js +2 -4
- package/dist/utils/get-cache-key.js +16 -4
- package/dist/utils/get-collection-from-alias.js +1 -6
- package/dist/utils/get-column-path.js +10 -21
- package/dist/utils/get-config-from-env.js +6 -15
- package/dist/utils/get-default-index-name.js +2 -4
- package/dist/utils/get-default-value.js +5 -9
- package/dist/utils/get-field-relational-depth.js +2 -5
- package/dist/utils/get-graphql-query-and-variables.js +1 -2
- package/dist/utils/get-graphql-type.js +1 -3
- package/dist/utils/get-ip-from-req.js +6 -15
- package/dist/utils/get-local-type.js +5 -13
- package/dist/utils/get-milliseconds.js +1 -3
- package/dist/utils/get-module-default.js +1 -3
- package/dist/utils/get-schema.js +9 -21
- package/dist/utils/get-secret.js +2 -6
- package/dist/utils/get-snapshot-diff.js +15 -23
- package/dist/utils/get-snapshot.js +6 -17
- package/dist/utils/is-directus-jwt.js +1 -2
- package/dist/utils/is-field-allowed.js +1 -3
- package/dist/utils/job-queue.js +2 -7
- package/dist/utils/jwt.js +7 -13
- package/dist/utils/md.js +1 -2
- package/dist/utils/parse-filter-key.js +2 -4
- package/dist/utils/parse-numeric-string.js +5 -11
- package/dist/utils/permissions-cacheable.js +9 -22
- package/dist/utils/redact-object.js +27 -57
- package/dist/utils/reduce-schema.js +8 -25
- package/dist/utils/sanitize-query.js +46 -98
- package/dist/utils/sanitize-schema.js +2 -3
- package/dist/utils/schedule.js +2 -6
- package/dist/utils/should-clear-cache.js +2 -6
- package/dist/utils/should-skip-cache.js +3 -8
- package/dist/utils/split-fields.js +4 -12
- package/dist/utils/stall.js +1 -3
- package/dist/utils/store.js +2 -5
- package/dist/utils/transaction.js +29 -58
- package/dist/utils/transformations.js +28 -43
- package/dist/utils/translations-shared.js +4 -12
- package/dist/utils/url.js +3 -10
- package/dist/utils/user-name.js +4 -12
- package/dist/utils/validate-diff.js +10 -35
- package/dist/utils/validate-env.js +3 -5
- package/dist/utils/validate-keys.js +4 -10
- package/dist/utils/validate-query.js +67 -118
- package/dist/utils/validate-snapshot.js +3 -9
- package/dist/utils/validate-storage.js +12 -19
- package/dist/utils/validate-user-count-integrity.js +3 -9
- package/dist/utils/verify-session-jwt.js +2 -6
- package/dist/utils/versioning/handle-version.js +10 -29
- package/dist/utils/versioning/merge-version-data.js +1 -5
- package/dist/utils/versioning/split-recursive.js +6 -3
- package/dist/websocket/authenticate.js +7 -18
- package/dist/websocket/collab/calculate-cache-metadata.js +33 -51
- package/dist/websocket/collab/collab.js +49 -113
- package/dist/websocket/collab/filter-to-fields.js +2 -5
- package/dist/websocket/collab/messenger.js +48 -73
- package/dist/websocket/collab/payload-permissions.js +20 -51
- package/dist/websocket/collab/permissions-cache.js +17 -46
- package/dist/websocket/collab/room.js +57 -124
- package/dist/websocket/collab/verify-permissions.js +37 -48
- package/dist/websocket/controllers/base.js +34 -61
- package/dist/websocket/controllers/graphql.js +11 -18
- package/dist/websocket/controllers/index.js +3 -12
- package/dist/websocket/controllers/logs.js +3 -7
- package/dist/websocket/errors.js +2 -5
- package/dist/websocket/handlers/heartbeat.js +11 -19
- package/dist/websocket/handlers/index.js +5 -15
- package/dist/websocket/handlers/items.js +15 -26
- package/dist/websocket/handlers/logs.js +24 -41
- package/dist/websocket/handlers/subscribe.js +37 -66
- package/dist/websocket/utils/get-expires-at-for-token.js +1 -3
- package/dist/websocket/utils/items.js +10 -27
- package/dist/websocket/utils/message.js +6 -10
- package/package.json +23 -23
- package/dist/__utils__/items-utils.js +0 -32
- package/dist/__utils__/schemas.js +0 -297
- package/dist/__utils__/snapshots.js +0 -899
- package/dist/database/run-ast/lib/apply-query/mock.js +0 -9
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +0 -445
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/index.js +0 -176
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/system/policy.js +0 -54
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/any/any.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/any/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/argument/argument.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/argument/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/array/array.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/array/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/async-iterator/async-iterator.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/async-iterator/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/awaited/awaited.js +0 -37
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/awaited/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/bigint/bigint.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/bigint/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/boolean/boolean.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/boolean/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/clone/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/clone/type.js +0 -17
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/clone/value.js +0 -35
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/composite/composite.js +0 -42
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/composite/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/computed/computed.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/computed/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/const/const.js +0 -52
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/const/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor/constructor.js +0 -17
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/constructor-parameters.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/constructor-parameters/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/create/immutable.js +0 -32
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/create/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/create/type.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/date/date.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/date/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/discard/discard.js +0 -12
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/discard/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/enum/enum.js +0 -23
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/enum/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/error/error.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/error/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-mapped-result.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude-from-template-literal.js +0 -11
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/exclude.js +0 -25
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/exclude/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-check.js +0 -267
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-key.js +0 -29
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-from-mapped-result.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends-undefined.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/extends.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extends/index.js +0 -7
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-mapped-result.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/extract-from-template-literal.js +0 -11
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/extract.js +0 -25
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/extract/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/function/function.js +0 -17
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/function/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/kind.js +0 -204
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/type.js +0 -293
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/guard/value.js +0 -68
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/helpers/helpers.js +0 -8
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/helpers/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/index.js +0 -6
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-key.js +0 -27
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-from-mapped-result.js +0 -24
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed-property-keys.js +0 -24
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/indexed/indexed.js +0 -67
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instance-type/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instance-type/instance-type.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instantiate/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/instantiate/instantiate.js +0 -102
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/integer/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/integer/integer.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-create.js +0 -23
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-evaluated.js +0 -35
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect-type.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intersect/intersect.js +0 -17
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/capitalize.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/index.js +0 -8
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic-from-mapped-key.js +0 -30
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/intrinsic.js +0 -54
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/lowercase.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uncapitalize.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/intrinsic/uppercase.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/iterator/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/iterator/iterator.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/index.js +0 -6
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-from-mapped-result.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-entries.js +0 -17
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof-property-keys.js +0 -52
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/keyof/keyof.js +0 -38
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/literal/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/literal/literal.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-key.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped-result.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/mapped/mapped.js +0 -86
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/module/compute.js +0 -144
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/module/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/module/module.js +0 -44
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/never/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/never/never.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/not/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/not/not.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/null/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/null/null.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/number/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/number/number.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/object/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/object/object.js +0 -33
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-key.js +0 -27
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/omit-from-mapped-result.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/omit/omit.js +0 -65
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/optional/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/optional/optional-from-mapped-result.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/optional/optional.js +0 -29
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/parameters/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/parameters/parameters.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/partial/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/partial/partial-from-mapped-result.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/partial/partial.js +0 -62
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/patterns/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/patterns/patterns.js +0 -12
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-key.js +0 -27
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/pick-from-mapped-result.js +0 -21
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/pick/pick.js +0 -63
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/promise/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/promise/promise.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly-from-mapped-result.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly/readonly.js +0 -29
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/readonly-optional/readonly-optional.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/record/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/record/record.js +0 -92
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/recursive/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/recursive/recursive.js +0 -24
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/ref/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/ref/ref.js +0 -19
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/regexp/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/regexp/regexp.js +0 -19
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/registry/format.js +0 -30
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/registry/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/registry/type.js +0 -30
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/required/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/required/required-from-mapped-result.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/required/required.js +0 -60
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/rest/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/rest/rest.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/return-type/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/return-type/return-type.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/schema/anyschema.js +0 -1
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/schema/index.js +0 -4
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/schema/schema.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/sets/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/sets/set.js +0 -42
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/static/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/static/static.js +0 -1
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/string/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/string/string.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbol/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbol/symbol.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbols/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/symbols/symbols.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/finite.js +0 -28
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/generate.js +0 -37
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/index.js +0 -9
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/parse.js +0 -125
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/pattern.js +0 -24
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/syntax.js +0 -55
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/template-literal.js +0 -20
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/template-literal/union.js +0 -16
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/transform/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/transform/transform.js +0 -51
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/tuple/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/tuple/tuple.js +0 -24
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/index.js +0 -10
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/javascript.js +0 -123
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/json.js +0 -263
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/type/type.js +0 -191
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/uint8array/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/uint8array/uint8array.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/undefined/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/undefined/undefined.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/index.js +0 -5
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union-create.js +0 -14
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union-evaluated.js +0 -33
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union-type.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/union/union.js +0 -13
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unknown/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unknown/unknown.js +0 -12
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unsafe/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/unsafe/unsafe.js +0 -12
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/void/index.js +0 -3
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/type/void/void.js +0 -15
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/value/guard/guard.js +0 -140
- package/dist/node_modules/.pnpm/@sinclair_typebox@0.34.41/node_modules/@sinclair/typebox/build/esm/value/guard/index.js +0 -3
- package/dist/node_modules/.pnpm/@vitest_expect@3.2.4/node_modules/@vitest/expect/dist/index.js +0 -1714
- package/dist/node_modules/.pnpm/@vitest_pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js +0 -1287
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/chunk-hooks.js +0 -2151
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/index.js +0 -8
- package/dist/node_modules/.pnpm/@vitest_runner@3.2.4/node_modules/@vitest/runner/dist/utils.js +0 -8
- package/dist/node_modules/.pnpm/@vitest_snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js +0 -2082
- package/dist/node_modules/.pnpm/@vitest_spy@3.2.4/node_modules/@vitest/spy/dist/index.js +0 -192
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +0 -158
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/diff.js +0 -1535
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/error.js +0 -155
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/helpers.js +0 -244
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/index.js +0 -621
- package/dist/node_modules/.pnpm/@vitest_utils@3.2.4/node_modules/@vitest/utils/dist/source-map.js +0 -890
- package/dist/node_modules/.pnpm/chai@5.3.3/node_modules/chai/index.js +0 -3558
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/branding.js +0 -13
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/index.js +0 -115
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/messages.js +0 -77
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/overloads.js +0 -13
- package/dist/node_modules/.pnpm/expect-type@1.2.2/node_modules/expect-type/dist/utils.js +0 -30
- package/dist/node_modules/.pnpm/js-tokens@9.0.1/node_modules/js-tokens/index.js +0 -398
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/MockClient.js +0 -79
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/MockConnection.js +0 -64
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/Tracker.js +0 -185
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/constants.js +0 -30
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/index.js +0 -37
- package/dist/node_modules/.pnpm/knex-mock-client@3.0.2_knex@3.1.0_mysql2@3.15.3_pg@8.16.3_sqlite3@5.1.7_tedious@18.6.1_/node_modules/knex-mock-client/dist/utils.js +0 -17
- package/dist/node_modules/.pnpm/lodash.clonedeep@4.5.0/node_modules/lodash.clonedeep/index.js +0 -1486
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/arguments.js +0 -11
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/array.js +0 -18
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/bigint.js +0 -11
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/class.js +0 -19
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/date.js +0 -15
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/error.js +0 -39
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/function.js +0 -14
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/helpers.js +0 -141
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/html.js +0 -43
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/index.js +0 -138
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/map.js +0 -25
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/number.js +0 -22
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/object.js +0 -27
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/promise.js +0 -6
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/regexp.js +0 -12
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/set.js +0 -18
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/string.js +0 -27
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/symbol.js +0 -10
- package/dist/node_modules/.pnpm/loupe@3.2.1/node_modules/loupe/lib/typedarray.js +0 -36
- package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js +0 -1258
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.js +0 -21
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +0 -478
- package/dist/node_modules/.pnpm/strip-literal@3.1.0/node_modules/strip-literal/dist/index.js +0 -84
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +0 -85
- package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js +0 -15
- package/dist/node_modules/.pnpm/tinyspy@4.0.4/node_modules/tinyspy/dist/index.js +0 -158
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -8
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/benchmark.CYdenmiT.js +0 -41
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +0 -50
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/index.CdQS2e2Q.js +0 -38
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/utils.XdZDrNZV.js +0 -66
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/chunks/vi.bdSIJ99Y.js +0 -2986
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_node@22.13.14_@vitest_ui@3.2.4_happy-dom@20.8.9_jiti@2.6.1_jsdom@20_c24d183060b6f93f55300b66d0779768/node_modules/vitest/dist/index.js +0 -24
- package/dist/test-utils/cache.js +0 -64
- package/dist/test-utils/controllers.js +0 -101
- package/dist/test-utils/database.js +0 -54
- package/dist/test-utils/emitter.js +0 -38
- package/dist/test-utils/env.js +0 -77
- package/dist/test-utils/knex.js +0 -222
- package/dist/test-utils/schema.js +0 -35
- package/dist/test-utils/services/fields-service.js +0 -38
- package/dist/test-utils/services/files-service.js +0 -35
- package/dist/test-utils/services/folders-service.js +0 -34
- package/dist/test-utils/services/items-service.js +0 -52
- package/dist/test-utils/storage.js +0 -150
|
@@ -1,1287 +0,0 @@
|
|
|
1
|
-
import { u } from "../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js";
|
|
2
|
-
|
|
3
|
-
//#region ../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js
|
|
4
|
-
function _mergeNamespaces(n, m) {
|
|
5
|
-
m.forEach(function(e) {
|
|
6
|
-
e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
7
|
-
if (k !== "default" && !(k in n)) {
|
|
8
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
9
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return e[k];
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
return Object.freeze(n);
|
|
19
|
-
}
|
|
20
|
-
function getKeysOfEnumerableProperties(object, compareKeys) {
|
|
21
|
-
const rawKeys = Object.keys(object);
|
|
22
|
-
const keys = compareKeys === null ? rawKeys : rawKeys.sort(compareKeys);
|
|
23
|
-
if (Object.getOwnPropertySymbols) {
|
|
24
|
-
for (const symbol of Object.getOwnPropertySymbols(object)) {
|
|
25
|
-
if (Object.getOwnPropertyDescriptor(object, symbol).enumerable) {
|
|
26
|
-
keys.push(symbol);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return keys;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Return entries (for example, of a map)
|
|
34
|
-
* with spacing, indentation, and comma
|
|
35
|
-
* without surrounding punctuation (for example, braces)
|
|
36
|
-
*/
|
|
37
|
-
function printIteratorEntries(iterator, config, indentation, depth, refs, printer$1, separator = ": ") {
|
|
38
|
-
let result = "";
|
|
39
|
-
let width = 0;
|
|
40
|
-
let current = iterator.next();
|
|
41
|
-
if (!current.done) {
|
|
42
|
-
result += config.spacingOuter;
|
|
43
|
-
const indentationNext = indentation + config.indent;
|
|
44
|
-
while (!current.done) {
|
|
45
|
-
result += indentationNext;
|
|
46
|
-
if (width++ === config.maxWidth) {
|
|
47
|
-
result += "…";
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
const name = printer$1(current.value[0], config, indentationNext, depth, refs);
|
|
51
|
-
const value = printer$1(current.value[1], config, indentationNext, depth, refs);
|
|
52
|
-
result += name + separator + value;
|
|
53
|
-
current = iterator.next();
|
|
54
|
-
if (!current.done) {
|
|
55
|
-
result += `,${config.spacingInner}`;
|
|
56
|
-
} else if (!config.min) {
|
|
57
|
-
result += ",";
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
result += config.spacingOuter + indentation;
|
|
61
|
-
}
|
|
62
|
-
return result;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Return values (for example, of a set)
|
|
66
|
-
* with spacing, indentation, and comma
|
|
67
|
-
* without surrounding punctuation (braces or brackets)
|
|
68
|
-
*/
|
|
69
|
-
function printIteratorValues(iterator, config, indentation, depth, refs, printer$1) {
|
|
70
|
-
let result = "";
|
|
71
|
-
let width = 0;
|
|
72
|
-
let current = iterator.next();
|
|
73
|
-
if (!current.done) {
|
|
74
|
-
result += config.spacingOuter;
|
|
75
|
-
const indentationNext = indentation + config.indent;
|
|
76
|
-
while (!current.done) {
|
|
77
|
-
result += indentationNext;
|
|
78
|
-
if (width++ === config.maxWidth) {
|
|
79
|
-
result += "…";
|
|
80
|
-
break;
|
|
81
|
-
}
|
|
82
|
-
result += printer$1(current.value, config, indentationNext, depth, refs);
|
|
83
|
-
current = iterator.next();
|
|
84
|
-
if (!current.done) {
|
|
85
|
-
result += `,${config.spacingInner}`;
|
|
86
|
-
} else if (!config.min) {
|
|
87
|
-
result += ",";
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
result += config.spacingOuter + indentation;
|
|
91
|
-
}
|
|
92
|
-
return result;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Return items (for example, of an array)
|
|
96
|
-
* with spacing, indentation, and comma
|
|
97
|
-
* without surrounding punctuation (for example, brackets)
|
|
98
|
-
*/
|
|
99
|
-
function printListItems(list, config, indentation, depth, refs, printer$1) {
|
|
100
|
-
let result = "";
|
|
101
|
-
list = list instanceof ArrayBuffer ? new DataView(list) : list;
|
|
102
|
-
const isDataView = (l) => l instanceof DataView;
|
|
103
|
-
const length = isDataView(list) ? list.byteLength : list.length;
|
|
104
|
-
if (length > 0) {
|
|
105
|
-
result += config.spacingOuter;
|
|
106
|
-
const indentationNext = indentation + config.indent;
|
|
107
|
-
for (let i = 0; i < length; i++) {
|
|
108
|
-
result += indentationNext;
|
|
109
|
-
if (i === config.maxWidth) {
|
|
110
|
-
result += "…";
|
|
111
|
-
break;
|
|
112
|
-
}
|
|
113
|
-
if (isDataView(list) || i in list) {
|
|
114
|
-
result += printer$1(isDataView(list) ? list.getInt8(i) : list[i], config, indentationNext, depth, refs);
|
|
115
|
-
}
|
|
116
|
-
if (i < length - 1) {
|
|
117
|
-
result += `,${config.spacingInner}`;
|
|
118
|
-
} else if (!config.min) {
|
|
119
|
-
result += ",";
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
result += config.spacingOuter + indentation;
|
|
123
|
-
}
|
|
124
|
-
return result;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Return properties of an object
|
|
128
|
-
* with spacing, indentation, and comma
|
|
129
|
-
* without surrounding punctuation (for example, braces)
|
|
130
|
-
*/
|
|
131
|
-
function printObjectProperties(val, config, indentation, depth, refs, printer$1) {
|
|
132
|
-
let result = "";
|
|
133
|
-
const keys = getKeysOfEnumerableProperties(val, config.compareKeys);
|
|
134
|
-
if (keys.length > 0) {
|
|
135
|
-
result += config.spacingOuter;
|
|
136
|
-
const indentationNext = indentation + config.indent;
|
|
137
|
-
for (let i = 0; i < keys.length; i++) {
|
|
138
|
-
const key = keys[i];
|
|
139
|
-
const name = printer$1(key, config, indentationNext, depth, refs);
|
|
140
|
-
const value = printer$1(val[key], config, indentationNext, depth, refs);
|
|
141
|
-
result += `${indentationNext + name}: ${value}`;
|
|
142
|
-
if (i < keys.length - 1) {
|
|
143
|
-
result += `,${config.spacingInner}`;
|
|
144
|
-
} else if (!config.min) {
|
|
145
|
-
result += ",";
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
result += config.spacingOuter + indentation;
|
|
149
|
-
}
|
|
150
|
-
return result;
|
|
151
|
-
}
|
|
152
|
-
const asymmetricMatcher = typeof Symbol === "function" && Symbol.for ? Symbol.for("jest.asymmetricMatcher") : 1267621;
|
|
153
|
-
const SPACE$2 = " ";
|
|
154
|
-
const serialize$5 = (val, config, indentation, depth, refs, printer$1) => {
|
|
155
|
-
const stringedValue = val.toString();
|
|
156
|
-
if (stringedValue === "ArrayContaining" || stringedValue === "ArrayNotContaining") {
|
|
157
|
-
if (++depth > config.maxDepth) {
|
|
158
|
-
return `[${stringedValue}]`;
|
|
159
|
-
}
|
|
160
|
-
return `${stringedValue + SPACE$2}[${printListItems(val.sample, config, indentation, depth, refs, printer$1)}]`;
|
|
161
|
-
}
|
|
162
|
-
if (stringedValue === "ObjectContaining" || stringedValue === "ObjectNotContaining") {
|
|
163
|
-
if (++depth > config.maxDepth) {
|
|
164
|
-
return `[${stringedValue}]`;
|
|
165
|
-
}
|
|
166
|
-
return `${stringedValue + SPACE$2}{${printObjectProperties(val.sample, config, indentation, depth, refs, printer$1)}}`;
|
|
167
|
-
}
|
|
168
|
-
if (stringedValue === "StringMatching" || stringedValue === "StringNotMatching") {
|
|
169
|
-
return stringedValue + SPACE$2 + printer$1(val.sample, config, indentation, depth, refs);
|
|
170
|
-
}
|
|
171
|
-
if (stringedValue === "StringContaining" || stringedValue === "StringNotContaining") {
|
|
172
|
-
return stringedValue + SPACE$2 + printer$1(val.sample, config, indentation, depth, refs);
|
|
173
|
-
}
|
|
174
|
-
if (typeof val.toAsymmetricMatcher !== "function") {
|
|
175
|
-
throw new TypeError(`Asymmetric matcher ${val.constructor.name} does not implement toAsymmetricMatcher()`);
|
|
176
|
-
}
|
|
177
|
-
return val.toAsymmetricMatcher();
|
|
178
|
-
};
|
|
179
|
-
const test$5 = (val) => val && val.$$typeof === asymmetricMatcher;
|
|
180
|
-
const plugin$5 = {
|
|
181
|
-
serialize: serialize$5,
|
|
182
|
-
test: test$5
|
|
183
|
-
};
|
|
184
|
-
const SPACE$1 = " ";
|
|
185
|
-
const OBJECT_NAMES = new Set(["DOMStringMap", "NamedNodeMap"]);
|
|
186
|
-
const ARRAY_REGEXP = /^(?:HTML\w*Collection|NodeList)$/;
|
|
187
|
-
function testName(name) {
|
|
188
|
-
return OBJECT_NAMES.has(name) || ARRAY_REGEXP.test(name);
|
|
189
|
-
}
|
|
190
|
-
const test$4 = (val) => val && val.constructor && !!val.constructor.name && testName(val.constructor.name);
|
|
191
|
-
function isNamedNodeMap(collection) {
|
|
192
|
-
return collection.constructor.name === "NamedNodeMap";
|
|
193
|
-
}
|
|
194
|
-
const serialize$4 = (collection, config, indentation, depth, refs, printer$1) => {
|
|
195
|
-
const name = collection.constructor.name;
|
|
196
|
-
if (++depth > config.maxDepth) {
|
|
197
|
-
return `[${name}]`;
|
|
198
|
-
}
|
|
199
|
-
return (config.min ? "" : name + SPACE$1) + (OBJECT_NAMES.has(name) ? `{${printObjectProperties(isNamedNodeMap(collection) ? [...collection].reduce((props, attribute) => {
|
|
200
|
-
props[attribute.name] = attribute.value;
|
|
201
|
-
return props;
|
|
202
|
-
}, {}) : { ...collection }, config, indentation, depth, refs, printer$1)}}` : `[${printListItems([...collection], config, indentation, depth, refs, printer$1)}]`);
|
|
203
|
-
};
|
|
204
|
-
const plugin$4 = {
|
|
205
|
-
serialize: serialize$4,
|
|
206
|
-
test: test$4
|
|
207
|
-
};
|
|
208
|
-
/**
|
|
209
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
210
|
-
*
|
|
211
|
-
* This source code is licensed under the MIT license found in the
|
|
212
|
-
* LICENSE file in the root directory of this source tree.
|
|
213
|
-
*/
|
|
214
|
-
function escapeHTML(str) {
|
|
215
|
-
return str.replaceAll("<", "<").replaceAll(">", ">");
|
|
216
|
-
}
|
|
217
|
-
function printProps(keys, props, config, indentation, depth, refs, printer$1) {
|
|
218
|
-
const indentationNext = indentation + config.indent;
|
|
219
|
-
const colors = config.colors;
|
|
220
|
-
return keys.map((key) => {
|
|
221
|
-
const value = props[key];
|
|
222
|
-
let printed = printer$1(value, config, indentationNext, depth, refs);
|
|
223
|
-
if (typeof value !== "string") {
|
|
224
|
-
if (printed.includes("\n")) {
|
|
225
|
-
printed = config.spacingOuter + indentationNext + printed + config.spacingOuter + indentation;
|
|
226
|
-
}
|
|
227
|
-
printed = `{${printed}}`;
|
|
228
|
-
}
|
|
229
|
-
return `${config.spacingInner + indentation + colors.prop.open + key + colors.prop.close}=${colors.value.open}${printed}${colors.value.close}`;
|
|
230
|
-
}).join("");
|
|
231
|
-
}
|
|
232
|
-
function printChildren(children, config, indentation, depth, refs, printer$1) {
|
|
233
|
-
return children.map((child) => config.spacingOuter + indentation + (typeof child === "string" ? printText(child, config) : printer$1(child, config, indentation, depth, refs))).join("");
|
|
234
|
-
}
|
|
235
|
-
function printText(text, config) {
|
|
236
|
-
const contentColor = config.colors.content;
|
|
237
|
-
return contentColor.open + escapeHTML(text) + contentColor.close;
|
|
238
|
-
}
|
|
239
|
-
function printComment(comment, config) {
|
|
240
|
-
const commentColor = config.colors.comment;
|
|
241
|
-
return `${commentColor.open}<!--${escapeHTML(comment)}-->${commentColor.close}`;
|
|
242
|
-
}
|
|
243
|
-
function printElement(type, printedProps, printedChildren, config, indentation) {
|
|
244
|
-
const tagColor = config.colors.tag;
|
|
245
|
-
return `${tagColor.open}<${type}${printedProps && tagColor.close + printedProps + config.spacingOuter + indentation + tagColor.open}${printedChildren ? `>${tagColor.close}${printedChildren}${config.spacingOuter}${indentation}${tagColor.open}</${type}` : `${printedProps && !config.min ? "" : " "}/`}>${tagColor.close}`;
|
|
246
|
-
}
|
|
247
|
-
function printElementAsLeaf(type, config) {
|
|
248
|
-
const tagColor = config.colors.tag;
|
|
249
|
-
return `${tagColor.open}<${type}${tagColor.close} …${tagColor.open} />${tagColor.close}`;
|
|
250
|
-
}
|
|
251
|
-
const ELEMENT_NODE = 1;
|
|
252
|
-
const TEXT_NODE = 3;
|
|
253
|
-
const COMMENT_NODE = 8;
|
|
254
|
-
const FRAGMENT_NODE = 11;
|
|
255
|
-
const ELEMENT_REGEXP = /^(?:(?:HTML|SVG)\w*)?Element$/;
|
|
256
|
-
function testHasAttribute(val) {
|
|
257
|
-
try {
|
|
258
|
-
return typeof val.hasAttribute === "function" && val.hasAttribute("is");
|
|
259
|
-
} catch {
|
|
260
|
-
return false;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
function testNode(val) {
|
|
264
|
-
const constructorName = val.constructor.name;
|
|
265
|
-
const { nodeType, tagName } = val;
|
|
266
|
-
const isCustomElement = typeof tagName === "string" && tagName.includes("-") || testHasAttribute(val);
|
|
267
|
-
return nodeType === ELEMENT_NODE && (ELEMENT_REGEXP.test(constructorName) || isCustomElement) || nodeType === TEXT_NODE && constructorName === "Text" || nodeType === COMMENT_NODE && constructorName === "Comment" || nodeType === FRAGMENT_NODE && constructorName === "DocumentFragment";
|
|
268
|
-
}
|
|
269
|
-
const test$3 = (val) => {
|
|
270
|
-
var _val$constructor;
|
|
271
|
-
return (val === null || val === void 0 || (_val$constructor = val.constructor) === null || _val$constructor === void 0 ? void 0 : _val$constructor.name) && testNode(val);
|
|
272
|
-
};
|
|
273
|
-
function nodeIsText(node) {
|
|
274
|
-
return node.nodeType === TEXT_NODE;
|
|
275
|
-
}
|
|
276
|
-
function nodeIsComment(node) {
|
|
277
|
-
return node.nodeType === COMMENT_NODE;
|
|
278
|
-
}
|
|
279
|
-
function nodeIsFragment(node) {
|
|
280
|
-
return node.nodeType === FRAGMENT_NODE;
|
|
281
|
-
}
|
|
282
|
-
const serialize$3 = (node, config, indentation, depth, refs, printer$1) => {
|
|
283
|
-
if (nodeIsText(node)) {
|
|
284
|
-
return printText(node.data, config);
|
|
285
|
-
}
|
|
286
|
-
if (nodeIsComment(node)) {
|
|
287
|
-
return printComment(node.data, config);
|
|
288
|
-
}
|
|
289
|
-
const type = nodeIsFragment(node) ? "DocumentFragment" : node.tagName.toLowerCase();
|
|
290
|
-
if (++depth > config.maxDepth) {
|
|
291
|
-
return printElementAsLeaf(type, config);
|
|
292
|
-
}
|
|
293
|
-
return printElement(type, printProps(nodeIsFragment(node) ? [] : Array.from(node.attributes, (attr) => attr.name).sort(), nodeIsFragment(node) ? {} : [...node.attributes].reduce((props, attribute) => {
|
|
294
|
-
props[attribute.name] = attribute.value;
|
|
295
|
-
return props;
|
|
296
|
-
}, {}), config, indentation + config.indent, depth, refs, printer$1), printChildren(Array.prototype.slice.call(node.childNodes || node.children), config, indentation + config.indent, depth, refs, printer$1), config, indentation);
|
|
297
|
-
};
|
|
298
|
-
const plugin$3 = {
|
|
299
|
-
serialize: serialize$3,
|
|
300
|
-
test: test$3
|
|
301
|
-
};
|
|
302
|
-
const IS_ITERABLE_SENTINEL = "@@__IMMUTABLE_ITERABLE__@@";
|
|
303
|
-
const IS_LIST_SENTINEL = "@@__IMMUTABLE_LIST__@@";
|
|
304
|
-
const IS_KEYED_SENTINEL = "@@__IMMUTABLE_KEYED__@@";
|
|
305
|
-
const IS_MAP_SENTINEL = "@@__IMMUTABLE_MAP__@@";
|
|
306
|
-
const IS_ORDERED_SENTINEL = "@@__IMMUTABLE_ORDERED__@@";
|
|
307
|
-
const IS_RECORD_SENTINEL = "@@__IMMUTABLE_RECORD__@@";
|
|
308
|
-
const IS_SEQ_SENTINEL = "@@__IMMUTABLE_SEQ__@@";
|
|
309
|
-
const IS_SET_SENTINEL = "@@__IMMUTABLE_SET__@@";
|
|
310
|
-
const IS_STACK_SENTINEL = "@@__IMMUTABLE_STACK__@@";
|
|
311
|
-
const getImmutableName = (name) => `Immutable.${name}`;
|
|
312
|
-
const printAsLeaf = (name) => `[${name}]`;
|
|
313
|
-
const SPACE = " ";
|
|
314
|
-
const LAZY = "…";
|
|
315
|
-
function printImmutableEntries(val, config, indentation, depth, refs, printer$1, type) {
|
|
316
|
-
return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}{${printIteratorEntries(val.entries(), config, indentation, depth, refs, printer$1)}}`;
|
|
317
|
-
}
|
|
318
|
-
function getRecordEntries(val) {
|
|
319
|
-
let i = 0;
|
|
320
|
-
return { next() {
|
|
321
|
-
if (i < val._keys.length) {
|
|
322
|
-
const key = val._keys[i++];
|
|
323
|
-
return {
|
|
324
|
-
done: false,
|
|
325
|
-
value: [key, val.get(key)]
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
return {
|
|
329
|
-
done: true,
|
|
330
|
-
value: undefined
|
|
331
|
-
};
|
|
332
|
-
} };
|
|
333
|
-
}
|
|
334
|
-
function printImmutableRecord(val, config, indentation, depth, refs, printer$1) {
|
|
335
|
-
const name = getImmutableName(val._name || "Record");
|
|
336
|
-
return ++depth > config.maxDepth ? printAsLeaf(name) : `${name + SPACE}{${printIteratorEntries(getRecordEntries(val), config, indentation, depth, refs, printer$1)}}`;
|
|
337
|
-
}
|
|
338
|
-
function printImmutableSeq(val, config, indentation, depth, refs, printer$1) {
|
|
339
|
-
const name = getImmutableName("Seq");
|
|
340
|
-
if (++depth > config.maxDepth) {
|
|
341
|
-
return printAsLeaf(name);
|
|
342
|
-
}
|
|
343
|
-
if (val[IS_KEYED_SENTINEL]) {
|
|
344
|
-
return `${name + SPACE}{${val._iter || val._object ? printIteratorEntries(val.entries(), config, indentation, depth, refs, printer$1) : LAZY}}`;
|
|
345
|
-
}
|
|
346
|
-
return `${name + SPACE}[${val._iter || val._array || val._collection || val._iterable ? printIteratorValues(val.values(), config, indentation, depth, refs, printer$1) : LAZY}]`;
|
|
347
|
-
}
|
|
348
|
-
function printImmutableValues(val, config, indentation, depth, refs, printer$1, type) {
|
|
349
|
-
return ++depth > config.maxDepth ? printAsLeaf(getImmutableName(type)) : `${getImmutableName(type) + SPACE}[${printIteratorValues(val.values(), config, indentation, depth, refs, printer$1)}]`;
|
|
350
|
-
}
|
|
351
|
-
const serialize$2 = (val, config, indentation, depth, refs, printer$1) => {
|
|
352
|
-
if (val[IS_MAP_SENTINEL]) {
|
|
353
|
-
return printImmutableEntries(val, config, indentation, depth, refs, printer$1, val[IS_ORDERED_SENTINEL] ? "OrderedMap" : "Map");
|
|
354
|
-
}
|
|
355
|
-
if (val[IS_LIST_SENTINEL]) {
|
|
356
|
-
return printImmutableValues(val, config, indentation, depth, refs, printer$1, "List");
|
|
357
|
-
}
|
|
358
|
-
if (val[IS_SET_SENTINEL]) {
|
|
359
|
-
return printImmutableValues(val, config, indentation, depth, refs, printer$1, val[IS_ORDERED_SENTINEL] ? "OrderedSet" : "Set");
|
|
360
|
-
}
|
|
361
|
-
if (val[IS_STACK_SENTINEL]) {
|
|
362
|
-
return printImmutableValues(val, config, indentation, depth, refs, printer$1, "Stack");
|
|
363
|
-
}
|
|
364
|
-
if (val[IS_SEQ_SENTINEL]) {
|
|
365
|
-
return printImmutableSeq(val, config, indentation, depth, refs, printer$1);
|
|
366
|
-
}
|
|
367
|
-
return printImmutableRecord(val, config, indentation, depth, refs, printer$1);
|
|
368
|
-
};
|
|
369
|
-
const test$2 = (val) => val && (val[IS_ITERABLE_SENTINEL] === true || val[IS_RECORD_SENTINEL] === true);
|
|
370
|
-
const plugin$2 = {
|
|
371
|
-
serialize: serialize$2,
|
|
372
|
-
test: test$2
|
|
373
|
-
};
|
|
374
|
-
function getDefaultExportFromCjs(x) {
|
|
375
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
376
|
-
}
|
|
377
|
-
var reactIs$1 = { exports: {} };
|
|
378
|
-
var reactIs_production = {};
|
|
379
|
-
/**
|
|
380
|
-
* @license React
|
|
381
|
-
* react-is.production.js
|
|
382
|
-
*
|
|
383
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
384
|
-
*
|
|
385
|
-
* This source code is licensed under the MIT license found in the
|
|
386
|
-
* LICENSE file in the root directory of this source tree.
|
|
387
|
-
*/
|
|
388
|
-
var hasRequiredReactIs_production;
|
|
389
|
-
function requireReactIs_production() {
|
|
390
|
-
if (hasRequiredReactIs_production) return reactIs_production;
|
|
391
|
-
hasRequiredReactIs_production = 1;
|
|
392
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
393
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
394
|
-
function typeOf(object) {
|
|
395
|
-
if ("object" === typeof object && null !== object) {
|
|
396
|
-
var $$typeof = object.$$typeof;
|
|
397
|
-
switch ($$typeof) {
|
|
398
|
-
case REACT_ELEMENT_TYPE: switch (object = object.type, object) {
|
|
399
|
-
case REACT_FRAGMENT_TYPE:
|
|
400
|
-
case REACT_PROFILER_TYPE:
|
|
401
|
-
case REACT_STRICT_MODE_TYPE:
|
|
402
|
-
case REACT_SUSPENSE_TYPE:
|
|
403
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
404
|
-
case REACT_VIEW_TRANSITION_TYPE: return object;
|
|
405
|
-
default: switch (object = object && object.$$typeof, object) {
|
|
406
|
-
case REACT_CONTEXT_TYPE:
|
|
407
|
-
case REACT_FORWARD_REF_TYPE:
|
|
408
|
-
case REACT_LAZY_TYPE:
|
|
409
|
-
case REACT_MEMO_TYPE: return object;
|
|
410
|
-
case REACT_CONSUMER_TYPE: return object;
|
|
411
|
-
default: return $$typeof;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
case REACT_PORTAL_TYPE: return $$typeof;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
419
|
-
reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
|
|
420
|
-
reactIs_production.Element = REACT_ELEMENT_TYPE;
|
|
421
|
-
reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
422
|
-
reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
423
|
-
reactIs_production.Lazy = REACT_LAZY_TYPE;
|
|
424
|
-
reactIs_production.Memo = REACT_MEMO_TYPE;
|
|
425
|
-
reactIs_production.Portal = REACT_PORTAL_TYPE;
|
|
426
|
-
reactIs_production.Profiler = REACT_PROFILER_TYPE;
|
|
427
|
-
reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
428
|
-
reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
429
|
-
reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
430
|
-
reactIs_production.isContextConsumer = function(object) {
|
|
431
|
-
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
432
|
-
};
|
|
433
|
-
reactIs_production.isContextProvider = function(object) {
|
|
434
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
435
|
-
};
|
|
436
|
-
reactIs_production.isElement = function(object) {
|
|
437
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
438
|
-
};
|
|
439
|
-
reactIs_production.isForwardRef = function(object) {
|
|
440
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
441
|
-
};
|
|
442
|
-
reactIs_production.isFragment = function(object) {
|
|
443
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
444
|
-
};
|
|
445
|
-
reactIs_production.isLazy = function(object) {
|
|
446
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
447
|
-
};
|
|
448
|
-
reactIs_production.isMemo = function(object) {
|
|
449
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
450
|
-
};
|
|
451
|
-
reactIs_production.isPortal = function(object) {
|
|
452
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
453
|
-
};
|
|
454
|
-
reactIs_production.isProfiler = function(object) {
|
|
455
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
456
|
-
};
|
|
457
|
-
reactIs_production.isStrictMode = function(object) {
|
|
458
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
459
|
-
};
|
|
460
|
-
reactIs_production.isSuspense = function(object) {
|
|
461
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
462
|
-
};
|
|
463
|
-
reactIs_production.isSuspenseList = function(object) {
|
|
464
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
465
|
-
};
|
|
466
|
-
reactIs_production.isValidElementType = function(type) {
|
|
467
|
-
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
468
|
-
};
|
|
469
|
-
reactIs_production.typeOf = typeOf;
|
|
470
|
-
return reactIs_production;
|
|
471
|
-
}
|
|
472
|
-
var reactIs_development$1 = {};
|
|
473
|
-
/**
|
|
474
|
-
* @license React
|
|
475
|
-
* react-is.development.js
|
|
476
|
-
*
|
|
477
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
478
|
-
*
|
|
479
|
-
* This source code is licensed under the MIT license found in the
|
|
480
|
-
* LICENSE file in the root directory of this source tree.
|
|
481
|
-
*/
|
|
482
|
-
var hasRequiredReactIs_development$1;
|
|
483
|
-
function requireReactIs_development$1() {
|
|
484
|
-
if (hasRequiredReactIs_development$1) return reactIs_development$1;
|
|
485
|
-
hasRequiredReactIs_development$1 = 1;
|
|
486
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
487
|
-
function typeOf(object) {
|
|
488
|
-
if ("object" === typeof object && null !== object) {
|
|
489
|
-
var $$typeof = object.$$typeof;
|
|
490
|
-
switch ($$typeof) {
|
|
491
|
-
case REACT_ELEMENT_TYPE: switch (object = object.type, object) {
|
|
492
|
-
case REACT_FRAGMENT_TYPE:
|
|
493
|
-
case REACT_PROFILER_TYPE:
|
|
494
|
-
case REACT_STRICT_MODE_TYPE:
|
|
495
|
-
case REACT_SUSPENSE_TYPE:
|
|
496
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
497
|
-
case REACT_VIEW_TRANSITION_TYPE: return object;
|
|
498
|
-
default: switch (object = object && object.$$typeof, object) {
|
|
499
|
-
case REACT_CONTEXT_TYPE:
|
|
500
|
-
case REACT_FORWARD_REF_TYPE:
|
|
501
|
-
case REACT_LAZY_TYPE:
|
|
502
|
-
case REACT_MEMO_TYPE: return object;
|
|
503
|
-
case REACT_CONSUMER_TYPE: return object;
|
|
504
|
-
default: return $$typeof;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
case REACT_PORTAL_TYPE: return $$typeof;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
512
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
|
513
|
-
reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE;
|
|
514
|
-
reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE;
|
|
515
|
-
reactIs_development$1.Element = REACT_ELEMENT_TYPE;
|
|
516
|
-
reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
517
|
-
reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE;
|
|
518
|
-
reactIs_development$1.Lazy = REACT_LAZY_TYPE;
|
|
519
|
-
reactIs_development$1.Memo = REACT_MEMO_TYPE;
|
|
520
|
-
reactIs_development$1.Portal = REACT_PORTAL_TYPE;
|
|
521
|
-
reactIs_development$1.Profiler = REACT_PROFILER_TYPE;
|
|
522
|
-
reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
523
|
-
reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE;
|
|
524
|
-
reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
525
|
-
reactIs_development$1.isContextConsumer = function(object) {
|
|
526
|
-
return typeOf(object) === REACT_CONSUMER_TYPE;
|
|
527
|
-
};
|
|
528
|
-
reactIs_development$1.isContextProvider = function(object) {
|
|
529
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
530
|
-
};
|
|
531
|
-
reactIs_development$1.isElement = function(object) {
|
|
532
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
533
|
-
};
|
|
534
|
-
reactIs_development$1.isForwardRef = function(object) {
|
|
535
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
536
|
-
};
|
|
537
|
-
reactIs_development$1.isFragment = function(object) {
|
|
538
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
539
|
-
};
|
|
540
|
-
reactIs_development$1.isLazy = function(object) {
|
|
541
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
542
|
-
};
|
|
543
|
-
reactIs_development$1.isMemo = function(object) {
|
|
544
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
545
|
-
};
|
|
546
|
-
reactIs_development$1.isPortal = function(object) {
|
|
547
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
548
|
-
};
|
|
549
|
-
reactIs_development$1.isProfiler = function(object) {
|
|
550
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
551
|
-
};
|
|
552
|
-
reactIs_development$1.isStrictMode = function(object) {
|
|
553
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
554
|
-
};
|
|
555
|
-
reactIs_development$1.isSuspense = function(object) {
|
|
556
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
557
|
-
};
|
|
558
|
-
reactIs_development$1.isSuspenseList = function(object) {
|
|
559
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
560
|
-
};
|
|
561
|
-
reactIs_development$1.isValidElementType = function(type) {
|
|
562
|
-
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
|
563
|
-
};
|
|
564
|
-
reactIs_development$1.typeOf = typeOf;
|
|
565
|
-
})();
|
|
566
|
-
return reactIs_development$1;
|
|
567
|
-
}
|
|
568
|
-
var hasRequiredReactIs$1;
|
|
569
|
-
function requireReactIs$1() {
|
|
570
|
-
if (hasRequiredReactIs$1) return reactIs$1.exports;
|
|
571
|
-
hasRequiredReactIs$1 = 1;
|
|
572
|
-
if (process.env.NODE_ENV === "production") {
|
|
573
|
-
reactIs$1.exports = requireReactIs_production();
|
|
574
|
-
} else {
|
|
575
|
-
reactIs$1.exports = requireReactIs_development$1();
|
|
576
|
-
}
|
|
577
|
-
return reactIs$1.exports;
|
|
578
|
-
}
|
|
579
|
-
var reactIsExports$1 = requireReactIs$1();
|
|
580
|
-
var index$1 = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports$1);
|
|
581
|
-
var ReactIs19 = /* @__PURE__ */ _mergeNamespaces({
|
|
582
|
-
__proto__: null,
|
|
583
|
-
default: index$1
|
|
584
|
-
}, [reactIsExports$1]);
|
|
585
|
-
var reactIs = { exports: {} };
|
|
586
|
-
var reactIs_production_min = {};
|
|
587
|
-
/**
|
|
588
|
-
* @license React
|
|
589
|
-
* react-is.production.min.js
|
|
590
|
-
*
|
|
591
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
592
|
-
*
|
|
593
|
-
* This source code is licensed under the MIT license found in the
|
|
594
|
-
* LICENSE file in the root directory of this source tree.
|
|
595
|
-
*/
|
|
596
|
-
var hasRequiredReactIs_production_min;
|
|
597
|
-
function requireReactIs_production_min() {
|
|
598
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
599
|
-
hasRequiredReactIs_production_min = 1;
|
|
600
|
-
var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u$1;
|
|
601
|
-
u$1 = Symbol.for("react.module.reference");
|
|
602
|
-
function v(a) {
|
|
603
|
-
if ("object" === typeof a && null !== a) {
|
|
604
|
-
var r = a.$$typeof;
|
|
605
|
-
switch (r) {
|
|
606
|
-
case b: switch (a = a.type, a) {
|
|
607
|
-
case d:
|
|
608
|
-
case f:
|
|
609
|
-
case e:
|
|
610
|
-
case m:
|
|
611
|
-
case n: return a;
|
|
612
|
-
default: switch (a = a && a.$$typeof, a) {
|
|
613
|
-
case k:
|
|
614
|
-
case h:
|
|
615
|
-
case l:
|
|
616
|
-
case q:
|
|
617
|
-
case p:
|
|
618
|
-
case g: return a;
|
|
619
|
-
default: return r;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
case c: return r;
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
reactIs_production_min.ContextConsumer = h;
|
|
627
|
-
reactIs_production_min.ContextProvider = g;
|
|
628
|
-
reactIs_production_min.Element = b;
|
|
629
|
-
reactIs_production_min.ForwardRef = l;
|
|
630
|
-
reactIs_production_min.Fragment = d;
|
|
631
|
-
reactIs_production_min.Lazy = q;
|
|
632
|
-
reactIs_production_min.Memo = p;
|
|
633
|
-
reactIs_production_min.Portal = c;
|
|
634
|
-
reactIs_production_min.Profiler = f;
|
|
635
|
-
reactIs_production_min.StrictMode = e;
|
|
636
|
-
reactIs_production_min.Suspense = m;
|
|
637
|
-
reactIs_production_min.SuspenseList = n;
|
|
638
|
-
reactIs_production_min.isAsyncMode = function() {
|
|
639
|
-
return false;
|
|
640
|
-
};
|
|
641
|
-
reactIs_production_min.isConcurrentMode = function() {
|
|
642
|
-
return false;
|
|
643
|
-
};
|
|
644
|
-
reactIs_production_min.isContextConsumer = function(a) {
|
|
645
|
-
return v(a) === h;
|
|
646
|
-
};
|
|
647
|
-
reactIs_production_min.isContextProvider = function(a) {
|
|
648
|
-
return v(a) === g;
|
|
649
|
-
};
|
|
650
|
-
reactIs_production_min.isElement = function(a) {
|
|
651
|
-
return "object" === typeof a && null !== a && a.$$typeof === b;
|
|
652
|
-
};
|
|
653
|
-
reactIs_production_min.isForwardRef = function(a) {
|
|
654
|
-
return v(a) === l;
|
|
655
|
-
};
|
|
656
|
-
reactIs_production_min.isFragment = function(a) {
|
|
657
|
-
return v(a) === d;
|
|
658
|
-
};
|
|
659
|
-
reactIs_production_min.isLazy = function(a) {
|
|
660
|
-
return v(a) === q;
|
|
661
|
-
};
|
|
662
|
-
reactIs_production_min.isMemo = function(a) {
|
|
663
|
-
return v(a) === p;
|
|
664
|
-
};
|
|
665
|
-
reactIs_production_min.isPortal = function(a) {
|
|
666
|
-
return v(a) === c;
|
|
667
|
-
};
|
|
668
|
-
reactIs_production_min.isProfiler = function(a) {
|
|
669
|
-
return v(a) === f;
|
|
670
|
-
};
|
|
671
|
-
reactIs_production_min.isStrictMode = function(a) {
|
|
672
|
-
return v(a) === e;
|
|
673
|
-
};
|
|
674
|
-
reactIs_production_min.isSuspense = function(a) {
|
|
675
|
-
return v(a) === m;
|
|
676
|
-
};
|
|
677
|
-
reactIs_production_min.isSuspenseList = function(a) {
|
|
678
|
-
return v(a) === n;
|
|
679
|
-
};
|
|
680
|
-
reactIs_production_min.isValidElementType = function(a) {
|
|
681
|
-
return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u$1 || void 0 !== a.getModuleId) ? true : false;
|
|
682
|
-
};
|
|
683
|
-
reactIs_production_min.typeOf = v;
|
|
684
|
-
return reactIs_production_min;
|
|
685
|
-
}
|
|
686
|
-
var reactIs_development = {};
|
|
687
|
-
/**
|
|
688
|
-
* @license React
|
|
689
|
-
* react-is.development.js
|
|
690
|
-
*
|
|
691
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
692
|
-
*
|
|
693
|
-
* This source code is licensed under the MIT license found in the
|
|
694
|
-
* LICENSE file in the root directory of this source tree.
|
|
695
|
-
*/
|
|
696
|
-
var hasRequiredReactIs_development;
|
|
697
|
-
function requireReactIs_development() {
|
|
698
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
699
|
-
hasRequiredReactIs_development = 1;
|
|
700
|
-
if (process.env.NODE_ENV !== "production") {
|
|
701
|
-
(function() {
|
|
702
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
703
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
704
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
705
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
706
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
707
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
708
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
709
|
-
var REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context");
|
|
710
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
711
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
712
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
713
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
714
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
715
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
716
|
-
var enableScopeAPI = false;
|
|
717
|
-
var enableCacheElement = false;
|
|
718
|
-
var enableTransitionTracing = false;
|
|
719
|
-
var enableLegacyHidden = false;
|
|
720
|
-
var enableDebugTracing = false;
|
|
721
|
-
var REACT_MODULE_REFERENCE;
|
|
722
|
-
{
|
|
723
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
724
|
-
}
|
|
725
|
-
function isValidElementType(type) {
|
|
726
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
727
|
-
return true;
|
|
728
|
-
}
|
|
729
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
730
|
-
return true;
|
|
731
|
-
}
|
|
732
|
-
if (typeof type === "object" && type !== null) {
|
|
733
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
734
|
-
return true;
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
return false;
|
|
738
|
-
}
|
|
739
|
-
function typeOf(object) {
|
|
740
|
-
if (typeof object === "object" && object !== null) {
|
|
741
|
-
var $$typeof = object.$$typeof;
|
|
742
|
-
switch ($$typeof) {
|
|
743
|
-
case REACT_ELEMENT_TYPE:
|
|
744
|
-
var type = object.type;
|
|
745
|
-
switch (type) {
|
|
746
|
-
case REACT_FRAGMENT_TYPE:
|
|
747
|
-
case REACT_PROFILER_TYPE:
|
|
748
|
-
case REACT_STRICT_MODE_TYPE:
|
|
749
|
-
case REACT_SUSPENSE_TYPE:
|
|
750
|
-
case REACT_SUSPENSE_LIST_TYPE: return type;
|
|
751
|
-
default:
|
|
752
|
-
var $$typeofType = type && type.$$typeof;
|
|
753
|
-
switch ($$typeofType) {
|
|
754
|
-
case REACT_SERVER_CONTEXT_TYPE:
|
|
755
|
-
case REACT_CONTEXT_TYPE:
|
|
756
|
-
case REACT_FORWARD_REF_TYPE:
|
|
757
|
-
case REACT_LAZY_TYPE:
|
|
758
|
-
case REACT_MEMO_TYPE:
|
|
759
|
-
case REACT_PROVIDER_TYPE: return $$typeofType;
|
|
760
|
-
default: return $$typeof;
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
case REACT_PORTAL_TYPE: return $$typeof;
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
return undefined;
|
|
767
|
-
}
|
|
768
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
769
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
770
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
771
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
772
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
773
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
774
|
-
var Memo = REACT_MEMO_TYPE;
|
|
775
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
776
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
777
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
778
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
779
|
-
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
780
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
781
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
|
782
|
-
function isAsyncMode(object) {
|
|
783
|
-
{
|
|
784
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
785
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
786
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, " + "and will be removed in React 18+.");
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
return false;
|
|
790
|
-
}
|
|
791
|
-
function isConcurrentMode(object) {
|
|
792
|
-
{
|
|
793
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
794
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true;
|
|
795
|
-
console["warn"]("The ReactIs.isConcurrentMode() alias has been deprecated, " + "and will be removed in React 18+.");
|
|
796
|
-
}
|
|
797
|
-
}
|
|
798
|
-
return false;
|
|
799
|
-
}
|
|
800
|
-
function isContextConsumer(object) {
|
|
801
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
802
|
-
}
|
|
803
|
-
function isContextProvider(object) {
|
|
804
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
805
|
-
}
|
|
806
|
-
function isElement(object) {
|
|
807
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
808
|
-
}
|
|
809
|
-
function isForwardRef(object) {
|
|
810
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
811
|
-
}
|
|
812
|
-
function isFragment(object) {
|
|
813
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
814
|
-
}
|
|
815
|
-
function isLazy(object) {
|
|
816
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
817
|
-
}
|
|
818
|
-
function isMemo(object) {
|
|
819
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
820
|
-
}
|
|
821
|
-
function isPortal(object) {
|
|
822
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
823
|
-
}
|
|
824
|
-
function isProfiler(object) {
|
|
825
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
826
|
-
}
|
|
827
|
-
function isStrictMode(object) {
|
|
828
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
829
|
-
}
|
|
830
|
-
function isSuspense(object) {
|
|
831
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
832
|
-
}
|
|
833
|
-
function isSuspenseList(object) {
|
|
834
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
835
|
-
}
|
|
836
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
837
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
838
|
-
reactIs_development.Element = Element;
|
|
839
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
840
|
-
reactIs_development.Fragment = Fragment;
|
|
841
|
-
reactIs_development.Lazy = Lazy;
|
|
842
|
-
reactIs_development.Memo = Memo;
|
|
843
|
-
reactIs_development.Portal = Portal;
|
|
844
|
-
reactIs_development.Profiler = Profiler;
|
|
845
|
-
reactIs_development.StrictMode = StrictMode;
|
|
846
|
-
reactIs_development.Suspense = Suspense;
|
|
847
|
-
reactIs_development.SuspenseList = SuspenseList;
|
|
848
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
849
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
850
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
851
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
852
|
-
reactIs_development.isElement = isElement;
|
|
853
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
854
|
-
reactIs_development.isFragment = isFragment;
|
|
855
|
-
reactIs_development.isLazy = isLazy;
|
|
856
|
-
reactIs_development.isMemo = isMemo;
|
|
857
|
-
reactIs_development.isPortal = isPortal;
|
|
858
|
-
reactIs_development.isProfiler = isProfiler;
|
|
859
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
860
|
-
reactIs_development.isSuspense = isSuspense;
|
|
861
|
-
reactIs_development.isSuspenseList = isSuspenseList;
|
|
862
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
863
|
-
reactIs_development.typeOf = typeOf;
|
|
864
|
-
})();
|
|
865
|
-
}
|
|
866
|
-
return reactIs_development;
|
|
867
|
-
}
|
|
868
|
-
var hasRequiredReactIs;
|
|
869
|
-
function requireReactIs() {
|
|
870
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
|
871
|
-
hasRequiredReactIs = 1;
|
|
872
|
-
if (process.env.NODE_ENV === "production") {
|
|
873
|
-
reactIs.exports = requireReactIs_production_min();
|
|
874
|
-
} else {
|
|
875
|
-
reactIs.exports = requireReactIs_development();
|
|
876
|
-
}
|
|
877
|
-
return reactIs.exports;
|
|
878
|
-
}
|
|
879
|
-
var reactIsExports = requireReactIs();
|
|
880
|
-
var index = /* @__PURE__ */ getDefaultExportFromCjs(reactIsExports);
|
|
881
|
-
var ReactIs18 = /* @__PURE__ */ _mergeNamespaces({
|
|
882
|
-
__proto__: null,
|
|
883
|
-
default: index
|
|
884
|
-
}, [reactIsExports]);
|
|
885
|
-
const reactIsMethods = [
|
|
886
|
-
"isAsyncMode",
|
|
887
|
-
"isConcurrentMode",
|
|
888
|
-
"isContextConsumer",
|
|
889
|
-
"isContextProvider",
|
|
890
|
-
"isElement",
|
|
891
|
-
"isForwardRef",
|
|
892
|
-
"isFragment",
|
|
893
|
-
"isLazy",
|
|
894
|
-
"isMemo",
|
|
895
|
-
"isPortal",
|
|
896
|
-
"isProfiler",
|
|
897
|
-
"isStrictMode",
|
|
898
|
-
"isSuspense",
|
|
899
|
-
"isSuspenseList",
|
|
900
|
-
"isValidElementType"
|
|
901
|
-
];
|
|
902
|
-
const ReactIs = Object.fromEntries(reactIsMethods.map((m) => [m, (v) => ReactIs18[m](v) || ReactIs19[m](v)]));
|
|
903
|
-
function getChildren(arg, children = []) {
|
|
904
|
-
if (Array.isArray(arg)) {
|
|
905
|
-
for (const item of arg) {
|
|
906
|
-
getChildren(item, children);
|
|
907
|
-
}
|
|
908
|
-
} else if (arg != null && arg !== false && arg !== "") {
|
|
909
|
-
children.push(arg);
|
|
910
|
-
}
|
|
911
|
-
return children;
|
|
912
|
-
}
|
|
913
|
-
function getType(element) {
|
|
914
|
-
const type = element.type;
|
|
915
|
-
if (typeof type === "string") {
|
|
916
|
-
return type;
|
|
917
|
-
}
|
|
918
|
-
if (typeof type === "function") {
|
|
919
|
-
return type.displayName || type.name || "Unknown";
|
|
920
|
-
}
|
|
921
|
-
if (ReactIs.isFragment(element)) {
|
|
922
|
-
return "React.Fragment";
|
|
923
|
-
}
|
|
924
|
-
if (ReactIs.isSuspense(element)) {
|
|
925
|
-
return "React.Suspense";
|
|
926
|
-
}
|
|
927
|
-
if (typeof type === "object" && type !== null) {
|
|
928
|
-
if (ReactIs.isContextProvider(element)) {
|
|
929
|
-
return "Context.Provider";
|
|
930
|
-
}
|
|
931
|
-
if (ReactIs.isContextConsumer(element)) {
|
|
932
|
-
return "Context.Consumer";
|
|
933
|
-
}
|
|
934
|
-
if (ReactIs.isForwardRef(element)) {
|
|
935
|
-
if (type.displayName) {
|
|
936
|
-
return type.displayName;
|
|
937
|
-
}
|
|
938
|
-
const functionName = type.render.displayName || type.render.name || "";
|
|
939
|
-
return functionName === "" ? "ForwardRef" : `ForwardRef(${functionName})`;
|
|
940
|
-
}
|
|
941
|
-
if (ReactIs.isMemo(element)) {
|
|
942
|
-
const functionName = type.displayName || type.type.displayName || type.type.name || "";
|
|
943
|
-
return functionName === "" ? "Memo" : `Memo(${functionName})`;
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
return "UNDEFINED";
|
|
947
|
-
}
|
|
948
|
-
function getPropKeys$1(element) {
|
|
949
|
-
const { props } = element;
|
|
950
|
-
return Object.keys(props).filter((key) => key !== "children" && props[key] !== undefined).sort();
|
|
951
|
-
}
|
|
952
|
-
const serialize$1 = (element, config, indentation, depth, refs, printer$1) => ++depth > config.maxDepth ? printElementAsLeaf(getType(element), config) : printElement(getType(element), printProps(getPropKeys$1(element), element.props, config, indentation + config.indent, depth, refs, printer$1), printChildren(getChildren(element.props.children), config, indentation + config.indent, depth, refs, printer$1), config, indentation);
|
|
953
|
-
const test$1 = (val) => val != null && ReactIs.isElement(val);
|
|
954
|
-
const plugin$1 = {
|
|
955
|
-
serialize: serialize$1,
|
|
956
|
-
test: test$1
|
|
957
|
-
};
|
|
958
|
-
const testSymbol = typeof Symbol === "function" && Symbol.for ? Symbol.for("react.test.json") : 245830487;
|
|
959
|
-
function getPropKeys(object) {
|
|
960
|
-
const { props } = object;
|
|
961
|
-
return props ? Object.keys(props).filter((key) => props[key] !== undefined).sort() : [];
|
|
962
|
-
}
|
|
963
|
-
const serialize = (object, config, indentation, depth, refs, printer$1) => ++depth > config.maxDepth ? printElementAsLeaf(object.type, config) : printElement(object.type, object.props ? printProps(getPropKeys(object), object.props, config, indentation + config.indent, depth, refs, printer$1) : "", object.children ? printChildren(object.children, config, indentation + config.indent, depth, refs, printer$1) : "", config, indentation);
|
|
964
|
-
const test = (val) => val && val.$$typeof === testSymbol;
|
|
965
|
-
const plugin = {
|
|
966
|
-
serialize,
|
|
967
|
-
test
|
|
968
|
-
};
|
|
969
|
-
const toString = Object.prototype.toString;
|
|
970
|
-
const toISOString = Date.prototype.toISOString;
|
|
971
|
-
const errorToString = Error.prototype.toString;
|
|
972
|
-
const regExpToString = RegExp.prototype.toString;
|
|
973
|
-
/**
|
|
974
|
-
* Explicitly comparing typeof constructor to function avoids undefined as name
|
|
975
|
-
* when mock identity-obj-proxy returns the key as the value for any key.
|
|
976
|
-
*/
|
|
977
|
-
function getConstructorName(val) {
|
|
978
|
-
return typeof val.constructor === "function" && val.constructor.name || "Object";
|
|
979
|
-
}
|
|
980
|
-
/** Is val is equal to global window object? Works even if it does not exist :) */
|
|
981
|
-
function isWindow(val) {
|
|
982
|
-
return typeof window !== "undefined" && val === window;
|
|
983
|
-
}
|
|
984
|
-
const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
|
|
985
|
-
const NEWLINE_REGEXP = /\n/g;
|
|
986
|
-
var PrettyFormatPluginError = class extends Error {
|
|
987
|
-
constructor(message, stack) {
|
|
988
|
-
super(message);
|
|
989
|
-
this.stack = stack;
|
|
990
|
-
this.name = this.constructor.name;
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
function isToStringedArrayType(toStringed) {
|
|
994
|
-
return toStringed === "[object Array]" || toStringed === "[object ArrayBuffer]" || toStringed === "[object DataView]" || toStringed === "[object Float32Array]" || toStringed === "[object Float64Array]" || toStringed === "[object Int8Array]" || toStringed === "[object Int16Array]" || toStringed === "[object Int32Array]" || toStringed === "[object Uint8Array]" || toStringed === "[object Uint8ClampedArray]" || toStringed === "[object Uint16Array]" || toStringed === "[object Uint32Array]";
|
|
995
|
-
}
|
|
996
|
-
function printNumber(val) {
|
|
997
|
-
return Object.is(val, -0) ? "-0" : String(val);
|
|
998
|
-
}
|
|
999
|
-
function printBigInt(val) {
|
|
1000
|
-
return String(`${val}n`);
|
|
1001
|
-
}
|
|
1002
|
-
function printFunction(val, printFunctionName) {
|
|
1003
|
-
if (!printFunctionName) {
|
|
1004
|
-
return "[Function]";
|
|
1005
|
-
}
|
|
1006
|
-
return `[Function ${val.name || "anonymous"}]`;
|
|
1007
|
-
}
|
|
1008
|
-
function printSymbol(val) {
|
|
1009
|
-
return String(val).replace(SYMBOL_REGEXP, "Symbol($1)");
|
|
1010
|
-
}
|
|
1011
|
-
function printError(val) {
|
|
1012
|
-
return `[${errorToString.call(val)}]`;
|
|
1013
|
-
}
|
|
1014
|
-
/**
|
|
1015
|
-
* The first port of call for printing an object, handles most of the
|
|
1016
|
-
* data-types in JS.
|
|
1017
|
-
*/
|
|
1018
|
-
function printBasicValue(val, printFunctionName, escapeRegex, escapeString) {
|
|
1019
|
-
if (val === true || val === false) {
|
|
1020
|
-
return `${val}`;
|
|
1021
|
-
}
|
|
1022
|
-
if (val === undefined) {
|
|
1023
|
-
return "undefined";
|
|
1024
|
-
}
|
|
1025
|
-
if (val === null) {
|
|
1026
|
-
return "null";
|
|
1027
|
-
}
|
|
1028
|
-
const typeOf = typeof val;
|
|
1029
|
-
if (typeOf === "number") {
|
|
1030
|
-
return printNumber(val);
|
|
1031
|
-
}
|
|
1032
|
-
if (typeOf === "bigint") {
|
|
1033
|
-
return printBigInt(val);
|
|
1034
|
-
}
|
|
1035
|
-
if (typeOf === "string") {
|
|
1036
|
-
if (escapeString) {
|
|
1037
|
-
return `"${val.replaceAll(/"|\\/g, "\\$&")}"`;
|
|
1038
|
-
}
|
|
1039
|
-
return `"${val}"`;
|
|
1040
|
-
}
|
|
1041
|
-
if (typeOf === "function") {
|
|
1042
|
-
return printFunction(val, printFunctionName);
|
|
1043
|
-
}
|
|
1044
|
-
if (typeOf === "symbol") {
|
|
1045
|
-
return printSymbol(val);
|
|
1046
|
-
}
|
|
1047
|
-
const toStringed = toString.call(val);
|
|
1048
|
-
if (toStringed === "[object WeakMap]") {
|
|
1049
|
-
return "WeakMap {}";
|
|
1050
|
-
}
|
|
1051
|
-
if (toStringed === "[object WeakSet]") {
|
|
1052
|
-
return "WeakSet {}";
|
|
1053
|
-
}
|
|
1054
|
-
if (toStringed === "[object Function]" || toStringed === "[object GeneratorFunction]") {
|
|
1055
|
-
return printFunction(val, printFunctionName);
|
|
1056
|
-
}
|
|
1057
|
-
if (toStringed === "[object Symbol]") {
|
|
1058
|
-
return printSymbol(val);
|
|
1059
|
-
}
|
|
1060
|
-
if (toStringed === "[object Date]") {
|
|
1061
|
-
return Number.isNaN(+val) ? "Date { NaN }" : toISOString.call(val);
|
|
1062
|
-
}
|
|
1063
|
-
if (toStringed === "[object Error]") {
|
|
1064
|
-
return printError(val);
|
|
1065
|
-
}
|
|
1066
|
-
if (toStringed === "[object RegExp]") {
|
|
1067
|
-
if (escapeRegex) {
|
|
1068
|
-
return regExpToString.call(val).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&");
|
|
1069
|
-
}
|
|
1070
|
-
return regExpToString.call(val);
|
|
1071
|
-
}
|
|
1072
|
-
if (val instanceof Error) {
|
|
1073
|
-
return printError(val);
|
|
1074
|
-
}
|
|
1075
|
-
return null;
|
|
1076
|
-
}
|
|
1077
|
-
/**
|
|
1078
|
-
* Handles more complex objects ( such as objects with circular references.
|
|
1079
|
-
* maps and sets etc )
|
|
1080
|
-
*/
|
|
1081
|
-
function printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON) {
|
|
1082
|
-
if (refs.includes(val)) {
|
|
1083
|
-
return "[Circular]";
|
|
1084
|
-
}
|
|
1085
|
-
refs = [...refs];
|
|
1086
|
-
refs.push(val);
|
|
1087
|
-
const hitMaxDepth = ++depth > config.maxDepth;
|
|
1088
|
-
const min = config.min;
|
|
1089
|
-
if (config.callToJSON && !hitMaxDepth && val.toJSON && typeof val.toJSON === "function" && !hasCalledToJSON) {
|
|
1090
|
-
return printer(val.toJSON(), config, indentation, depth, refs, true);
|
|
1091
|
-
}
|
|
1092
|
-
const toStringed = toString.call(val);
|
|
1093
|
-
if (toStringed === "[object Arguments]") {
|
|
1094
|
-
return hitMaxDepth ? "[Arguments]" : `${min ? "" : "Arguments "}[${printListItems(val, config, indentation, depth, refs, printer)}]`;
|
|
1095
|
-
}
|
|
1096
|
-
if (isToStringedArrayType(toStringed)) {
|
|
1097
|
-
return hitMaxDepth ? `[${val.constructor.name}]` : `${min ? "" : !config.printBasicPrototype && val.constructor.name === "Array" ? "" : `${val.constructor.name} `}[${printListItems(val, config, indentation, depth, refs, printer)}]`;
|
|
1098
|
-
}
|
|
1099
|
-
if (toStringed === "[object Map]") {
|
|
1100
|
-
return hitMaxDepth ? "[Map]" : `Map {${printIteratorEntries(val.entries(), config, indentation, depth, refs, printer, " => ")}}`;
|
|
1101
|
-
}
|
|
1102
|
-
if (toStringed === "[object Set]") {
|
|
1103
|
-
return hitMaxDepth ? "[Set]" : `Set {${printIteratorValues(val.values(), config, indentation, depth, refs, printer)}}`;
|
|
1104
|
-
}
|
|
1105
|
-
return hitMaxDepth || isWindow(val) ? `[${getConstructorName(val)}]` : `${min ? "" : !config.printBasicPrototype && getConstructorName(val) === "Object" ? "" : `${getConstructorName(val)} `}{${printObjectProperties(val, config, indentation, depth, refs, printer)}}`;
|
|
1106
|
-
}
|
|
1107
|
-
const ErrorPlugin = {
|
|
1108
|
-
test: (val) => val && val instanceof Error,
|
|
1109
|
-
serialize(val, config, indentation, depth, refs, printer$1) {
|
|
1110
|
-
if (refs.includes(val)) {
|
|
1111
|
-
return "[Circular]";
|
|
1112
|
-
}
|
|
1113
|
-
refs = [...refs, val];
|
|
1114
|
-
const hitMaxDepth = ++depth > config.maxDepth;
|
|
1115
|
-
const { message, cause,...rest } = val;
|
|
1116
|
-
const entries = {
|
|
1117
|
-
message,
|
|
1118
|
-
...typeof cause !== "undefined" ? { cause } : {},
|
|
1119
|
-
...val instanceof AggregateError ? { errors: val.errors } : {},
|
|
1120
|
-
...rest
|
|
1121
|
-
};
|
|
1122
|
-
const name = val.name !== "Error" ? val.name : getConstructorName(val);
|
|
1123
|
-
return hitMaxDepth ? `[${name}]` : `${name} {${printIteratorEntries(Object.entries(entries).values(), config, indentation, depth, refs, printer$1)}}`;
|
|
1124
|
-
}
|
|
1125
|
-
};
|
|
1126
|
-
function isNewPlugin(plugin$6) {
|
|
1127
|
-
return plugin$6.serialize != null;
|
|
1128
|
-
}
|
|
1129
|
-
function printPlugin(plugin$6, val, config, indentation, depth, refs) {
|
|
1130
|
-
let printed;
|
|
1131
|
-
try {
|
|
1132
|
-
printed = isNewPlugin(plugin$6) ? plugin$6.serialize(val, config, indentation, depth, refs, printer) : plugin$6.print(val, (valChild) => printer(valChild, config, indentation, depth, refs), (str) => {
|
|
1133
|
-
const indentationNext = indentation + config.indent;
|
|
1134
|
-
return indentationNext + str.replaceAll(NEWLINE_REGEXP, `\n${indentationNext}`);
|
|
1135
|
-
}, {
|
|
1136
|
-
edgeSpacing: config.spacingOuter,
|
|
1137
|
-
min: config.min,
|
|
1138
|
-
spacing: config.spacingInner
|
|
1139
|
-
}, config.colors);
|
|
1140
|
-
} catch (error) {
|
|
1141
|
-
throw new PrettyFormatPluginError(error.message, error.stack);
|
|
1142
|
-
}
|
|
1143
|
-
if (typeof printed !== "string") {
|
|
1144
|
-
throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof printed}".`);
|
|
1145
|
-
}
|
|
1146
|
-
return printed;
|
|
1147
|
-
}
|
|
1148
|
-
function findPlugin(plugins$1, val) {
|
|
1149
|
-
for (const plugin$6 of plugins$1) {
|
|
1150
|
-
try {
|
|
1151
|
-
if (plugin$6.test(val)) {
|
|
1152
|
-
return plugin$6;
|
|
1153
|
-
}
|
|
1154
|
-
} catch (error) {
|
|
1155
|
-
throw new PrettyFormatPluginError(error.message, error.stack);
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
return null;
|
|
1159
|
-
}
|
|
1160
|
-
function printer(val, config, indentation, depth, refs, hasCalledToJSON) {
|
|
1161
|
-
const plugin$6 = findPlugin(config.plugins, val);
|
|
1162
|
-
if (plugin$6 !== null) {
|
|
1163
|
-
return printPlugin(plugin$6, val, config, indentation, depth, refs);
|
|
1164
|
-
}
|
|
1165
|
-
const basicResult = printBasicValue(val, config.printFunctionName, config.escapeRegex, config.escapeString);
|
|
1166
|
-
if (basicResult !== null) {
|
|
1167
|
-
return basicResult;
|
|
1168
|
-
}
|
|
1169
|
-
return printComplexValue(val, config, indentation, depth, refs, hasCalledToJSON);
|
|
1170
|
-
}
|
|
1171
|
-
const DEFAULT_THEME = {
|
|
1172
|
-
comment: "gray",
|
|
1173
|
-
content: "reset",
|
|
1174
|
-
prop: "yellow",
|
|
1175
|
-
tag: "cyan",
|
|
1176
|
-
value: "green"
|
|
1177
|
-
};
|
|
1178
|
-
const DEFAULT_THEME_KEYS = Object.keys(DEFAULT_THEME);
|
|
1179
|
-
const DEFAULT_OPTIONS = {
|
|
1180
|
-
callToJSON: true,
|
|
1181
|
-
compareKeys: undefined,
|
|
1182
|
-
escapeRegex: false,
|
|
1183
|
-
escapeString: true,
|
|
1184
|
-
highlight: false,
|
|
1185
|
-
indent: 2,
|
|
1186
|
-
maxDepth: Number.POSITIVE_INFINITY,
|
|
1187
|
-
maxWidth: Number.POSITIVE_INFINITY,
|
|
1188
|
-
min: false,
|
|
1189
|
-
plugins: [],
|
|
1190
|
-
printBasicPrototype: true,
|
|
1191
|
-
printFunctionName: true,
|
|
1192
|
-
theme: DEFAULT_THEME
|
|
1193
|
-
};
|
|
1194
|
-
function validateOptions(options) {
|
|
1195
|
-
for (const key of Object.keys(options)) {
|
|
1196
|
-
if (!Object.prototype.hasOwnProperty.call(DEFAULT_OPTIONS, key)) {
|
|
1197
|
-
throw new Error(`pretty-format: Unknown option "${key}".`);
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
if (options.min && options.indent !== undefined && options.indent !== 0) {
|
|
1201
|
-
throw new Error("pretty-format: Options \"min\" and \"indent\" cannot be used together.");
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
function getColorsHighlight() {
|
|
1205
|
-
return DEFAULT_THEME_KEYS.reduce((colors, key) => {
|
|
1206
|
-
const value = DEFAULT_THEME[key];
|
|
1207
|
-
const color = value && u[value];
|
|
1208
|
-
if (color && typeof color.close === "string" && typeof color.open === "string") {
|
|
1209
|
-
colors[key] = color;
|
|
1210
|
-
} else {
|
|
1211
|
-
throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
|
|
1212
|
-
}
|
|
1213
|
-
return colors;
|
|
1214
|
-
}, Object.create(null));
|
|
1215
|
-
}
|
|
1216
|
-
function getColorsEmpty() {
|
|
1217
|
-
return DEFAULT_THEME_KEYS.reduce((colors, key) => {
|
|
1218
|
-
colors[key] = {
|
|
1219
|
-
close: "",
|
|
1220
|
-
open: ""
|
|
1221
|
-
};
|
|
1222
|
-
return colors;
|
|
1223
|
-
}, Object.create(null));
|
|
1224
|
-
}
|
|
1225
|
-
function getPrintFunctionName(options) {
|
|
1226
|
-
return (options === null || options === void 0 ? void 0 : options.printFunctionName) ?? DEFAULT_OPTIONS.printFunctionName;
|
|
1227
|
-
}
|
|
1228
|
-
function getEscapeRegex(options) {
|
|
1229
|
-
return (options === null || options === void 0 ? void 0 : options.escapeRegex) ?? DEFAULT_OPTIONS.escapeRegex;
|
|
1230
|
-
}
|
|
1231
|
-
function getEscapeString(options) {
|
|
1232
|
-
return (options === null || options === void 0 ? void 0 : options.escapeString) ?? DEFAULT_OPTIONS.escapeString;
|
|
1233
|
-
}
|
|
1234
|
-
function getConfig(options) {
|
|
1235
|
-
return {
|
|
1236
|
-
callToJSON: (options === null || options === void 0 ? void 0 : options.callToJSON) ?? DEFAULT_OPTIONS.callToJSON,
|
|
1237
|
-
colors: (options === null || options === void 0 ? void 0 : options.highlight) ? getColorsHighlight() : getColorsEmpty(),
|
|
1238
|
-
compareKeys: typeof (options === null || options === void 0 ? void 0 : options.compareKeys) === "function" || (options === null || options === void 0 ? void 0 : options.compareKeys) === null ? options.compareKeys : DEFAULT_OPTIONS.compareKeys,
|
|
1239
|
-
escapeRegex: getEscapeRegex(options),
|
|
1240
|
-
escapeString: getEscapeString(options),
|
|
1241
|
-
indent: (options === null || options === void 0 ? void 0 : options.min) ? "" : createIndent((options === null || options === void 0 ? void 0 : options.indent) ?? DEFAULT_OPTIONS.indent),
|
|
1242
|
-
maxDepth: (options === null || options === void 0 ? void 0 : options.maxDepth) ?? DEFAULT_OPTIONS.maxDepth,
|
|
1243
|
-
maxWidth: (options === null || options === void 0 ? void 0 : options.maxWidth) ?? DEFAULT_OPTIONS.maxWidth,
|
|
1244
|
-
min: (options === null || options === void 0 ? void 0 : options.min) ?? DEFAULT_OPTIONS.min,
|
|
1245
|
-
plugins: (options === null || options === void 0 ? void 0 : options.plugins) ?? DEFAULT_OPTIONS.plugins,
|
|
1246
|
-
printBasicPrototype: (options === null || options === void 0 ? void 0 : options.printBasicPrototype) ?? true,
|
|
1247
|
-
printFunctionName: getPrintFunctionName(options),
|
|
1248
|
-
spacingInner: (options === null || options === void 0 ? void 0 : options.min) ? " " : "\n",
|
|
1249
|
-
spacingOuter: (options === null || options === void 0 ? void 0 : options.min) ? "" : "\n"
|
|
1250
|
-
};
|
|
1251
|
-
}
|
|
1252
|
-
function createIndent(indent) {
|
|
1253
|
-
return Array.from({ length: indent + 1 }).join(" ");
|
|
1254
|
-
}
|
|
1255
|
-
/**
|
|
1256
|
-
* Returns a presentation string of your `val` object
|
|
1257
|
-
* @param val any potential JavaScript object
|
|
1258
|
-
* @param options Custom settings
|
|
1259
|
-
*/
|
|
1260
|
-
function format(val, options) {
|
|
1261
|
-
if (options) {
|
|
1262
|
-
validateOptions(options);
|
|
1263
|
-
if (options.plugins) {
|
|
1264
|
-
const plugin$6 = findPlugin(options.plugins, val);
|
|
1265
|
-
if (plugin$6 !== null) {
|
|
1266
|
-
return printPlugin(plugin$6, val, getConfig(options), "", 0, []);
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
const basicResult = printBasicValue(val, getPrintFunctionName(options), getEscapeRegex(options), getEscapeString(options));
|
|
1271
|
-
if (basicResult !== null) {
|
|
1272
|
-
return basicResult;
|
|
1273
|
-
}
|
|
1274
|
-
return printComplexValue(val, getConfig(options), "", 0, []);
|
|
1275
|
-
}
|
|
1276
|
-
const plugins = {
|
|
1277
|
-
AsymmetricMatcher: plugin$5,
|
|
1278
|
-
DOMCollection: plugin$4,
|
|
1279
|
-
DOMElement: plugin$3,
|
|
1280
|
-
Immutable: plugin$2,
|
|
1281
|
-
ReactElement: plugin$1,
|
|
1282
|
-
ReactTestComponent: plugin,
|
|
1283
|
-
Error: ErrorPlugin
|
|
1284
|
-
};
|
|
1285
|
-
|
|
1286
|
-
//#endregion
|
|
1287
|
-
export { format, plugins };
|