lakutata 2.0.114 → 2.0.117
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/com/cacher.cjs +1 -1
- package/com/cacher.mjs +1 -1
- package/com/database.cjs +1 -1
- package/com/database.mjs +1 -1
- package/com/docker.cjs +1 -1
- package/com/docker.mjs +1 -1
- package/com/entrypoint.cjs +1 -1
- package/com/entrypoint.mjs +1 -1
- package/com/logger.cjs +1 -1
- package/com/logger.mjs +1 -1
- package/com/monitor.cjs +1 -1
- package/com/monitor.mjs +1 -1
- package/decorator/asst.cjs +1 -1
- package/decorator/asst.mjs +1 -1
- package/decorator/ctrl.cjs +1 -1
- package/decorator/ctrl.mjs +1 -1
- package/decorator/di.cjs +1 -1
- package/decorator/di.mjs +1 -1
- package/decorator/dto.cjs +1 -1
- package/decorator/dto.mjs +1 -1
- package/decorator/orm.cjs +1 -1
- package/decorator/orm.mjs +1 -1
- package/dtos.cjs +1 -1
- package/dtos.mjs +1 -1
- package/helper.cjs +13 -9
- package/helper.d.ts +1 -1
- package/helper.mjs +3 -1
- package/lakutata.cjs +1 -1
- package/lakutata.mjs +1 -1
- package/orm.cjs +1 -1
- package/orm.mjs +1 -1
- package/package.json +1 -1
- package/provider/database.cjs +1 -1
- package/provider/database.mjs +1 -1
- package/provider/passwordHash.cjs +1 -1
- package/provider/passwordHash.mjs +1 -1
- package/src/components/Database.cjs +1 -1
- package/src/components/Database.mjs +1 -1
- package/src/components/Logger.cjs +1 -1
- package/src/components/Logger.mjs +1 -1
- package/src/components/cacher/Cacher.cjs +1 -1
- package/src/components/cacher/Cacher.mjs +1 -1
- package/src/components/cacher/adapters/CreateFileCacheAdapter.cjs +1 -1
- package/src/components/cacher/adapters/CreateFileCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.cjs +1 -1
- package/src/components/cacher/adapters/CreateMemcacheCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.cjs +1 -1
- package/src/components/cacher/adapters/CreateMongoCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.cjs +1 -1
- package/src/components/cacher/adapters/CreateMysqlCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.cjs +1 -1
- package/src/components/cacher/adapters/CreatePostgresCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.cjs +1 -1
- package/src/components/cacher/adapters/CreateRedisCacheAdapter.mjs +1 -1
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.cjs +1 -1
- package/src/components/cacher/adapters/CreateSqliteCacheAdapter.mjs +1 -1
- package/src/components/cacher/exceptions/CacheDriverNotFoundException.cjs +1 -1
- package/src/components/cacher/exceptions/CacheDriverNotFoundException.mjs +1 -1
- package/src/components/cacher/interfaces/CacherOptions.cjs +1 -1
- package/src/components/cacher/interfaces/CacherOptions.mjs +1 -1
- package/src/components/cacher/lib/IsDriverPackageInstalled.cjs +1 -1
- package/src/components/cacher/lib/IsDriverPackageInstalled.mjs +1 -1
- package/src/components/cacher/options/FileCacheOptions.cjs +1 -1
- package/src/components/cacher/options/FileCacheOptions.mjs +1 -1
- package/src/components/cacher/options/MemcacheCacheOptions.cjs +1 -1
- package/src/components/cacher/options/MemcacheCacheOptions.mjs +1 -1
- package/src/components/cacher/options/MongoCacheOptions.cjs +1 -1
- package/src/components/cacher/options/MongoCacheOptions.mjs +1 -1
- package/src/components/cacher/options/MysqlCacheOptions.cjs +1 -1
- package/src/components/cacher/options/MysqlCacheOptions.mjs +1 -1
- package/src/components/cacher/options/PostgresCacheOptions.cjs +1 -1
- package/src/components/cacher/options/PostgresCacheOptions.mjs +1 -1
- package/src/components/cacher/options/RedisCacheOptions.cjs +1 -1
- package/src/components/cacher/options/RedisCacheOptions.mjs +1 -1
- package/src/components/cacher/options/SqliteCacheOptions.cjs +1 -1
- package/src/components/cacher/options/SqliteCacheOptions.mjs +1 -1
- package/src/components/cacher/types/CacheStoreOptions.cjs +1 -1
- package/src/components/cacher/types/CacheStoreOptions.mjs +1 -1
- package/src/components/docker/ConnectionOptionsBuilder.cjs +1 -1
- package/src/components/docker/ConnectionOptionsBuilder.mjs +1 -1
- package/src/components/docker/Docker.cjs +1 -1
- package/src/components/docker/Docker.mjs +1 -1
- package/src/components/docker/exceptions/DockerConnectionException.cjs +1 -1
- package/src/components/docker/exceptions/DockerConnectionException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImageBuildException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImageBuildException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImageImportException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImageImportException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImageNotFoundException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImageNotFoundException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImagePullException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImagePullException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImagePushException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImagePushException.mjs +1 -1
- package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.cjs +1 -1
- package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.mjs +1 -1
- package/src/components/docker/exceptions/DockerNetworkNotFoundException.cjs +1 -1
- package/src/components/docker/exceptions/DockerNetworkNotFoundException.mjs +1 -1
- package/src/components/docker/interfaces/IDockerConnectionOptions.cjs +1 -1
- package/src/components/docker/interfaces/IDockerConnectionOptions.mjs +1 -1
- package/src/components/docker/interfaces/IDockerHttpConnectionOptions.cjs +1 -1
- package/src/components/docker/interfaces/IDockerHttpConnectionOptions.mjs +1 -1
- package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.cjs +1 -1
- package/src/components/docker/interfaces/IDockerHttpsConnectionOptions.mjs +1 -1
- package/src/components/docker/interfaces/IDockerKeyObject.cjs +1 -1
- package/src/components/docker/interfaces/IDockerKeyObject.mjs +1 -1
- package/src/components/docker/interfaces/IDockerSSHConnectionOptions.cjs +1 -1
- package/src/components/docker/interfaces/IDockerSSHConnectionOptions.mjs +1 -1
- package/src/components/docker/interfaces/IDockerSocketConnectionOptions.cjs +1 -1
- package/src/components/docker/interfaces/IDockerSocketConnectionOptions.mjs +1 -1
- package/src/components/docker/lib/DockerContainer.cjs +1 -1
- package/src/components/docker/lib/DockerContainer.mjs +1 -1
- package/src/components/docker/lib/DockerContainerTTY.cjs +1 -1
- package/src/components/docker/lib/DockerContainerTTY.mjs +1 -1
- package/src/components/docker/lib/DockerImage.cjs +1 -1
- package/src/components/docker/lib/DockerImage.mjs +1 -1
- package/src/components/docker/lib/ParseEnvToRecord.cjs +1 -1
- package/src/components/docker/lib/ParseEnvToRecord.mjs +1 -1
- package/src/components/docker/lib/ParseRepositoryTag.cjs +1 -1
- package/src/components/docker/lib/ParseRepositoryTag.mjs +1 -1
- package/src/components/docker/options/DockerPruneOptions.cjs +1 -1
- package/src/components/docker/options/DockerPruneOptions.mjs +1 -1
- package/src/components/docker/options/auth/DockerAuthOptions.cjs +1 -1
- package/src/components/docker/options/auth/DockerAuthOptions.mjs +1 -1
- package/src/components/docker/options/container/ContainerCommitOptions.cjs +1 -1
- package/src/components/docker/options/container/ContainerCommitOptions.mjs +1 -1
- package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +1 -1
- package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +1 -1
- package/src/components/docker/options/container/ContainerExecOptions.cjs +1 -1
- package/src/components/docker/options/container/ContainerExecOptions.mjs +1 -1
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +1 -1
- package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +1 -1
- package/src/components/docker/options/container/ContainerKillOptions.cjs +1 -1
- package/src/components/docker/options/container/ContainerKillOptions.mjs +1 -1
- package/src/components/docker/options/container/ContainerLogsOptions.cjs +1 -1
- package/src/components/docker/options/container/ContainerLogsOptions.mjs +1 -1
- package/src/components/docker/options/container/ContainerRemoveOptions.cjs +1 -1
- package/src/components/docker/options/container/ContainerRemoveOptions.mjs +1 -1
- package/src/components/docker/options/container/ContainerSettingOptions.cjs +1 -1
- package/src/components/docker/options/container/ContainerSettingOptions.mjs +1 -1
- package/src/components/docker/options/container/ContainerStopOptions.cjs +1 -1
- package/src/components/docker/options/container/ContainerStopOptions.mjs +1 -1
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +1 -1
- package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +1 -1
- package/src/components/docker/options/image/ImageBuildOptions.cjs +1 -1
- package/src/components/docker/options/image/ImageBuildOptions.mjs +1 -1
- package/src/components/docker/options/image/ImageExportOptions.cjs +1 -1
- package/src/components/docker/options/image/ImageExportOptions.mjs +1 -1
- package/src/components/docker/options/image/ImageImportOptions.cjs +1 -1
- package/src/components/docker/options/image/ImageImportOptions.mjs +1 -1
- package/src/components/docker/options/image/ImagePullOptions.cjs +1 -1
- package/src/components/docker/options/image/ImagePullOptions.mjs +1 -1
- package/src/components/docker/options/image/ImagePushOptions.cjs +1 -1
- package/src/components/docker/options/image/ImagePushOptions.mjs +1 -1
- package/src/components/docker/options/image/ImageRemoveOptions.cjs +1 -1
- package/src/components/docker/options/image/ImageRemoveOptions.mjs +1 -1
- package/src/components/docker/options/image/ImageTagOptions.cjs +1 -1
- package/src/components/docker/options/image/ImageTagOptions.mjs +1 -1
- package/src/components/docker/options/network/NetworkCreateOptions.cjs +1 -1
- package/src/components/docker/options/network/NetworkCreateOptions.mjs +1 -1
- package/src/components/docker/types/ContainerBind.cjs +1 -1
- package/src/components/docker/types/ContainerBind.mjs +1 -1
- package/src/components/docker/types/ContainerCapability.cjs +1 -1
- package/src/components/docker/types/ContainerCapability.mjs +1 -1
- package/src/components/docker/types/ContainerConfig.cjs +1 -1
- package/src/components/docker/types/ContainerConfig.mjs +1 -1
- package/src/components/docker/types/ContainerDevice.cjs +1 -1
- package/src/components/docker/types/ContainerDevice.mjs +1 -1
- package/src/components/docker/types/ContainerNetwork.cjs +1 -1
- package/src/components/docker/types/ContainerNetwork.mjs +1 -1
- package/src/components/docker/types/ContainerPort.cjs +1 -1
- package/src/components/docker/types/ContainerPort.mjs +1 -1
- package/src/components/docker/types/ContainerRestartPolicy.cjs +1 -1
- package/src/components/docker/types/ContainerRestartPolicy.mjs +1 -1
- package/src/components/docker/types/ContainerState.cjs +1 -1
- package/src/components/docker/types/ContainerState.mjs +1 -1
- package/src/components/docker/types/ContainerStats.cjs +1 -1
- package/src/components/docker/types/ContainerStats.mjs +1 -1
- package/src/components/docker/types/DockerOutputCallback.cjs +1 -1
- package/src/components/docker/types/DockerOutputCallback.mjs +1 -1
- package/src/components/docker/types/ImageConfig.cjs +1 -1
- package/src/components/docker/types/ImageConfig.mjs +1 -1
- package/src/components/docker/types/ImageExposePort.cjs +1 -1
- package/src/components/docker/types/ImageExposePort.mjs +1 -1
- package/src/components/docker/types/NetworkInfo.cjs +1 -1
- package/src/components/docker/types/NetworkInfo.mjs +1 -1
- package/src/components/entrypoint/Entrypoint.cjs +1 -1
- package/src/components/entrypoint/Entrypoint.mjs +1 -1
- package/src/components/entrypoint/exceptions/AccessDenyException.cjs +1 -1
- package/src/components/entrypoint/exceptions/AccessDenyException.mjs +1 -1
- package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.cjs +1 -1
- package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.mjs +1 -1
- package/src/components/entrypoint/exceptions/DuplicateActionNameException.cjs +1 -1
- package/src/components/entrypoint/exceptions/DuplicateActionNameException.mjs +1 -1
- package/src/components/entrypoint/exceptions/InvalidActionGroupException.cjs +1 -1
- package/src/components/entrypoint/exceptions/InvalidActionGroupException.mjs +1 -1
- package/src/components/entrypoint/lib/AccessControl.cjs +1 -1
- package/src/components/entrypoint/lib/AccessControl.mjs +1 -1
- package/src/components/entrypoint/lib/AccessControlRule.cjs +1 -1
- package/src/components/entrypoint/lib/AccessControlRule.mjs +1 -1
- package/src/components/entrypoint/lib/Controller.cjs +1 -1
- package/src/components/entrypoint/lib/Controller.mjs +1 -1
- package/src/components/monitor/CpuMonitor.cjs +1 -1
- package/src/components/monitor/CpuMonitor.mjs +1 -1
- package/src/components/monitor/EventLoopMonitor.cjs +1 -1
- package/src/components/monitor/EventLoopMonitor.mjs +1 -1
- package/src/components/monitor/HttpRequestMonitor.cjs +1 -1
- package/src/components/monitor/HttpRequestMonitor.mjs +1 -1
- package/src/components/monitor/MemoryMonitor.cjs +1 -1
- package/src/components/monitor/MemoryMonitor.mjs +1 -1
- package/src/components/monitor/interfaces/ICpuMonitorStatistics.cjs +1 -1
- package/src/components/monitor/interfaces/ICpuMonitorStatistics.mjs +1 -1
- package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.cjs +1 -1
- package/src/components/monitor/interfaces/IEventLoopMonitorStatistics.mjs +1 -1
- package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.cjs +1 -1
- package/src/components/monitor/interfaces/IHttpRequestMonitorStatistics.mjs +1 -1
- package/src/components/monitor/interfaces/IMemoryMonitorStatistics.cjs +1 -1
- package/src/components/monitor/interfaces/IMemoryMonitorStatistics.mjs +1 -1
- package/src/components/monitor/interfaces/IMonitor.cjs +1 -1
- package/src/components/monitor/interfaces/IMonitor.mjs +1 -1
- package/src/constants/DIMetadataKey.cjs +1 -1
- package/src/constants/DIMetadataKey.mjs +1 -1
- package/src/constants/DTOMetadataKey.cjs +1 -1
- package/src/constants/DTOMetadataKey.mjs +1 -1
- package/src/decorators/asst/After.cjs +1 -1
- package/src/decorators/asst/After.mjs +1 -1
- package/src/decorators/asst/Before.cjs +1 -1
- package/src/decorators/asst/Before.mjs +1 -1
- package/src/decorators/ctrl/CLIAction.cjs +1 -1
- package/src/decorators/ctrl/CLIAction.mjs +1 -1
- package/src/decorators/ctrl/HTTPAction.cjs +1 -1
- package/src/decorators/ctrl/HTTPAction.mjs +1 -1
- package/src/decorators/ctrl/ServiceAction.cjs +1 -1
- package/src/decorators/ctrl/ServiceAction.mjs +1 -1
- package/src/decorators/ctrl/http/DELETE.cjs +1 -1
- package/src/decorators/ctrl/http/DELETE.mjs +1 -1
- package/src/decorators/ctrl/http/GET.cjs +1 -1
- package/src/decorators/ctrl/http/GET.mjs +1 -1
- package/src/decorators/ctrl/http/HEAD.cjs +1 -1
- package/src/decorators/ctrl/http/HEAD.mjs +1 -1
- package/src/decorators/ctrl/http/OPTIONS.cjs +1 -1
- package/src/decorators/ctrl/http/OPTIONS.mjs +1 -1
- package/src/decorators/ctrl/http/PATCH.cjs +1 -1
- package/src/decorators/ctrl/http/PATCH.mjs +1 -1
- package/src/decorators/ctrl/http/POST.cjs +1 -1
- package/src/decorators/ctrl/http/POST.mjs +1 -1
- package/src/decorators/ctrl/http/PUT.cjs +1 -1
- package/src/decorators/ctrl/http/PUT.mjs +1 -1
- package/src/decorators/di/Autoload.cjs +1 -1
- package/src/decorators/di/Autoload.mjs +1 -1
- package/src/decorators/di/Configurable.cjs +1 -1
- package/src/decorators/di/Configurable.mjs +1 -1
- package/src/decorators/di/Inject.cjs +1 -1
- package/src/decorators/di/Inject.mjs +1 -1
- package/src/decorators/di/Lifetime.cjs +1 -1
- package/src/decorators/di/Lifetime.mjs +1 -1
- package/src/decorators/dto/Accept.cjs +1 -1
- package/src/decorators/dto/Accept.mjs +1 -1
- package/src/decorators/dto/Expect.cjs +1 -1
- package/src/decorators/dto/Expect.mjs +1 -1
- package/src/decorators/dto/IndexSignature.cjs +1 -1
- package/src/decorators/dto/IndexSignature.mjs +1 -1
- package/src/decorators/dto/Return.cjs +1 -1
- package/src/decorators/dto/Return.mjs +1 -1
- package/src/decorators/orm/AfterInsert.cjs +1 -1
- package/src/decorators/orm/AfterInsert.mjs +1 -1
- package/src/decorators/orm/AfterLoad.cjs +1 -1
- package/src/decorators/orm/AfterLoad.mjs +1 -1
- package/src/decorators/orm/AfterRecover.cjs +1 -1
- package/src/decorators/orm/AfterRecover.mjs +1 -1
- package/src/decorators/orm/AfterRemove.cjs +1 -1
- package/src/decorators/orm/AfterRemove.mjs +1 -1
- package/src/decorators/orm/AfterSoftRemove.cjs +1 -1
- package/src/decorators/orm/AfterSoftRemove.mjs +1 -1
- package/src/decorators/orm/AfterUpdate.cjs +1 -1
- package/src/decorators/orm/AfterUpdate.mjs +1 -1
- package/src/decorators/orm/BeforeInsert.cjs +1 -1
- package/src/decorators/orm/BeforeInsert.mjs +1 -1
- package/src/decorators/orm/BeforeRecover.cjs +1 -1
- package/src/decorators/orm/BeforeRecover.mjs +1 -1
- package/src/decorators/orm/BeforeRemove.cjs +1 -1
- package/src/decorators/orm/BeforeRemove.mjs +1 -1
- package/src/decorators/orm/BeforeSoftRemove.cjs +1 -1
- package/src/decorators/orm/BeforeSoftRemove.mjs +1 -1
- package/src/decorators/orm/BeforeUpdate.cjs +1 -1
- package/src/decorators/orm/BeforeUpdate.mjs +1 -1
- package/src/decorators/orm/Check.cjs +1 -1
- package/src/decorators/orm/Check.mjs +1 -1
- package/src/decorators/orm/ChildEntity.cjs +1 -1
- package/src/decorators/orm/ChildEntity.mjs +1 -1
- package/src/decorators/orm/Column.cjs +1 -1
- package/src/decorators/orm/Column.mjs +1 -1
- package/src/decorators/orm/CreateDateColumn.cjs +1 -1
- package/src/decorators/orm/CreateDateColumn.mjs +1 -1
- package/src/decorators/orm/DeleteDateColumn.cjs +1 -1
- package/src/decorators/orm/DeleteDateColumn.mjs +1 -1
- package/src/decorators/orm/Entity.cjs +1 -1
- package/src/decorators/orm/Entity.mjs +1 -1
- package/src/decorators/orm/EventSubscriber.cjs +1 -1
- package/src/decorators/orm/EventSubscriber.mjs +1 -1
- package/src/decorators/orm/Exclusion.cjs +1 -1
- package/src/decorators/orm/Exclusion.mjs +1 -1
- package/src/decorators/orm/Generated.cjs +1 -1
- package/src/decorators/orm/Generated.mjs +1 -1
- package/src/decorators/orm/Index.cjs +1 -1
- package/src/decorators/orm/Index.mjs +1 -1
- package/src/decorators/orm/JoinColumn.cjs +1 -1
- package/src/decorators/orm/JoinColumn.mjs +1 -1
- package/src/decorators/orm/JoinTable.cjs +1 -1
- package/src/decorators/orm/JoinTable.mjs +1 -1
- package/src/decorators/orm/ManyToMany.cjs +1 -1
- package/src/decorators/orm/ManyToMany.mjs +1 -1
- package/src/decorators/orm/ManyToOne.cjs +1 -1
- package/src/decorators/orm/ManyToOne.mjs +1 -1
- package/src/decorators/orm/ObjectIdColumn.cjs +1 -1
- package/src/decorators/orm/ObjectIdColumn.mjs +1 -1
- package/src/decorators/orm/OneToMany.cjs +1 -1
- package/src/decorators/orm/OneToMany.mjs +1 -1
- package/src/decorators/orm/OneToOne.cjs +1 -1
- package/src/decorators/orm/OneToOne.mjs +1 -1
- package/src/decorators/orm/PrimaryColumn.cjs +1 -1
- package/src/decorators/orm/PrimaryColumn.mjs +1 -1
- package/src/decorators/orm/PrimaryGeneratedColumn.cjs +1 -1
- package/src/decorators/orm/PrimaryGeneratedColumn.mjs +1 -1
- package/src/decorators/orm/RelationId.cjs +1 -1
- package/src/decorators/orm/RelationId.mjs +1 -1
- package/src/decorators/orm/TableInheritance.cjs +1 -1
- package/src/decorators/orm/TableInheritance.mjs +1 -1
- package/src/decorators/orm/Tree.cjs +1 -1
- package/src/decorators/orm/Tree.mjs +1 -1
- package/src/decorators/orm/TreeChildren.cjs +1 -1
- package/src/decorators/orm/TreeChildren.mjs +1 -1
- package/src/decorators/orm/TreeLevelColumn.cjs +1 -1
- package/src/decorators/orm/TreeLevelColumn.mjs +1 -1
- package/src/decorators/orm/TreeParent.cjs +1 -1
- package/src/decorators/orm/TreeParent.mjs +1 -1
- package/src/decorators/orm/Unique.cjs +1 -1
- package/src/decorators/orm/Unique.mjs +1 -1
- package/src/decorators/orm/UpdateDateColumn.cjs +1 -1
- package/src/decorators/orm/UpdateDateColumn.mjs +1 -1
- package/src/decorators/orm/VersionColumn.cjs +1 -1
- package/src/decorators/orm/VersionColumn.mjs +1 -1
- package/src/decorators/orm/ViewColumn.cjs +1 -1
- package/src/decorators/orm/ViewColumn.mjs +1 -1
- package/src/decorators/orm/ViewEntity.cjs +1 -1
- package/src/decorators/orm/ViewEntity.mjs +1 -1
- package/src/decorators/orm/VirtualColumn.cjs +1 -1
- package/src/decorators/orm/VirtualColumn.mjs +1 -1
- package/src/dto/PaginationResultDTO.cjs +1 -1
- package/src/dto/PaginationResultDTO.mjs +1 -1
- package/src/dto/PaginationSearchDTO.cjs +1 -1
- package/src/dto/PaginationSearchDTO.mjs +1 -1
- package/src/exceptions/DestroyRuntimeContainerException.cjs +1 -1
- package/src/exceptions/DestroyRuntimeContainerException.mjs +1 -1
- package/src/exceptions/InvalidActionPatternDepthException.cjs +1 -1
- package/src/exceptions/InvalidActionPatternDepthException.mjs +1 -1
- package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +1 -1
- package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +1 -1
- package/src/exceptions/InvalidObjectTypeException.cjs +1 -1
- package/src/exceptions/InvalidObjectTypeException.mjs +1 -1
- package/src/exceptions/MethodNotFoundException.cjs +1 -1
- package/src/exceptions/MethodNotFoundException.mjs +1 -1
- package/src/exceptions/alias/AliasExistsException.cjs +1 -1
- package/src/exceptions/alias/AliasExistsException.mjs +1 -1
- package/src/exceptions/alias/AliasNotFoundException.cjs +1 -1
- package/src/exceptions/alias/AliasNotFoundException.mjs +1 -1
- package/src/exceptions/alias/InvalidAliasNameException.cjs +1 -1
- package/src/exceptions/alias/InvalidAliasNameException.mjs +1 -1
- package/src/exceptions/di/DependencyInjectionException.cjs +1 -1
- package/src/exceptions/di/DependencyInjectionException.mjs +1 -1
- package/src/exceptions/di/LifetimeLockedException.cjs +1 -1
- package/src/exceptions/di/LifetimeLockedException.mjs +1 -1
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +1 -1
- package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +1 -1
- package/src/exceptions/dto/InvalidMethodAcceptException.cjs +1 -1
- package/src/exceptions/dto/InvalidMethodAcceptException.mjs +1 -1
- package/src/exceptions/dto/InvalidMethodReturnException.cjs +1 -1
- package/src/exceptions/dto/InvalidMethodReturnException.mjs +1 -1
- package/src/exceptions/dto/InvalidValueException.cjs +1 -1
- package/src/exceptions/dto/InvalidValueException.mjs +1 -1
- package/src/interfaces/IBaseObjectConstructor.cjs +1 -1
- package/src/interfaces/IBaseObjectConstructor.mjs +1 -1
- package/src/interfaces/IConstructor.cjs +1 -1
- package/src/interfaces/IConstructor.mjs +1 -1
- package/src/interfaces/IPatRun.cjs +1 -1
- package/src/interfaces/IPatRun.mjs +1 -1
- package/src/lib/base/BaseObject.cjs +1 -1
- package/src/lib/base/BaseObject.mjs +1 -1
- package/src/lib/base/Context.cjs +1 -1
- package/src/lib/base/Context.mjs +1 -1
- package/src/lib/base/EventEmitter.cjs +1 -1
- package/src/lib/base/EventEmitter.mjs +1 -1
- package/src/lib/base/abstracts/Exception.cjs +1 -1
- package/src/lib/base/abstracts/Exception.mjs +1 -1
- package/src/lib/base/async-constructor/Append.cjs +1 -1
- package/src/lib/base/async-constructor/Append.mjs +1 -1
- package/src/lib/base/async-constructor/AsyncConstructor.cjs +1 -1
- package/src/lib/base/async-constructor/AsyncConstructor.mjs +1 -1
- package/src/lib/base/internal/ActionOptions.cjs +1 -1
- package/src/lib/base/internal/ActionOptions.mjs +1 -1
- package/src/lib/base/internal/ApplicationConfigLoader.cjs +1 -1
- package/src/lib/base/internal/ApplicationConfigLoader.mjs +1 -1
- package/src/lib/base/internal/BasicInfo.cjs +1 -1
- package/src/lib/base/internal/BasicInfo.mjs +1 -1
- package/src/lib/base/internal/CamelCase.cjs +1 -1
- package/src/lib/base/internal/CamelCase.mjs +1 -1
- package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +1 -1
- package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +1 -1
- package/src/lib/base/internal/ConstructorSymbol.cjs +1 -1
- package/src/lib/base/internal/ConstructorSymbol.mjs +1 -1
- package/src/lib/base/internal/ControllerEntrypoint.cjs +1 -1
- package/src/lib/base/internal/ControllerEntrypoint.mjs +1 -1
- package/src/lib/base/internal/DataValidator.cjs +1 -1
- package/src/lib/base/internal/DataValidator.mjs +1 -1
- package/src/lib/base/internal/DatabaseSymbol.cjs +1 -1
- package/src/lib/base/internal/DatabaseSymbol.mjs +1 -1
- package/src/lib/base/internal/FlexibleDTO.cjs +1 -1
- package/src/lib/base/internal/FlexibleDTO.mjs +1 -1
- package/src/lib/base/internal/GetActionDTOAndOptions.cjs +1 -1
- package/src/lib/base/internal/GetActionDTOAndOptions.mjs +1 -1
- package/src/lib/base/internal/IEEE754.cjs +1 -1
- package/src/lib/base/internal/IEEE754.mjs +1 -1
- package/src/lib/base/internal/MethodAssistantFunction.cjs +1 -1
- package/src/lib/base/internal/MethodAssistantFunction.mjs +1 -1
- package/src/lib/base/internal/MethodValidation.cjs +1 -1
- package/src/lib/base/internal/MethodValidation.mjs +1 -1
- package/src/lib/base/internal/ModuleConfigLoader.cjs +1 -1
- package/src/lib/base/internal/ModuleConfigLoader.mjs +1 -1
- package/src/lib/base/internal/ObjectConfiguration.cjs +1 -1
- package/src/lib/base/internal/ObjectConfiguration.mjs +1 -1
- package/src/lib/base/internal/ObjectContainer.cjs +1 -1
- package/src/lib/base/internal/ObjectContainer.mjs +1 -1
- package/src/lib/base/internal/ObjectInjection.cjs +1 -1
- package/src/lib/base/internal/ObjectInjection.mjs +1 -1
- package/src/lib/base/internal/ObjectLifetime.cjs +1 -1
- package/src/lib/base/internal/ObjectLifetime.mjs +1 -1
- package/src/lib/base/internal/ObjectSchemaValidation.cjs +1 -1
- package/src/lib/base/internal/ObjectSchemaValidation.mjs +1 -1
- package/src/lib/base/internal/ObjectType.cjs +1 -1
- package/src/lib/base/internal/ObjectType.mjs +1 -1
- package/src/lib/base/internal/ObjectWeakRefs.cjs +1 -1
- package/src/lib/base/internal/ObjectWeakRefs.mjs +1 -1
- package/src/lib/base/internal/PatternManager.cjs +1 -1
- package/src/lib/base/internal/PatternManager.mjs +1 -1
- package/src/lib/base/internal/StringifyPattern.cjs +1 -1
- package/src/lib/base/internal/StringifyPattern.mjs +1 -1
- package/src/lib/base/internal/ThrowWarning.cjs +1 -1
- package/src/lib/base/internal/ThrowWarning.mjs +1 -1
- package/src/lib/context/CLIContext.cjs +1 -1
- package/src/lib/context/CLIContext.mjs +1 -1
- package/src/lib/context/HTTPContext.cjs +1 -1
- package/src/lib/context/HTTPContext.mjs +1 -1
- package/src/lib/context/ServiceContext.cjs +1 -1
- package/src/lib/context/ServiceContext.mjs +1 -1
- package/src/lib/core/Alias.cjs +1 -1
- package/src/lib/core/Alias.mjs +1 -1
- package/src/lib/core/Application.cjs +1 -1
- package/src/lib/core/Application.mjs +1 -1
- package/src/lib/core/Component.cjs +1 -1
- package/src/lib/core/Component.mjs +1 -1
- package/src/lib/core/Container.cjs +1 -1
- package/src/lib/core/Container.mjs +1 -1
- package/src/lib/core/DTO.cjs +1 -1
- package/src/lib/core/DTO.mjs +1 -1
- package/src/lib/core/Module.cjs +1 -1
- package/src/lib/core/Module.mjs +1 -1
- package/src/lib/core/Provider.cjs +1 -1
- package/src/lib/core/Provider.mjs +1 -1
- package/src/lib/core/Time.cjs +1 -1
- package/src/lib/core/Time.mjs +1 -1
- package/src/lib/helpers/ArrayToSet.cjs +1 -1
- package/src/lib/helpers/ArrayToSet.mjs +1 -1
- package/src/lib/helpers/As.cjs +1 -1
- package/src/lib/helpers/As.mjs +1 -1
- package/src/lib/helpers/ConvertArrayLikeToIterable.cjs +1 -1
- package/src/lib/helpers/ConvertArrayLikeToIterable.mjs +1 -1
- package/src/lib/helpers/ConvertArrayLikeToStream.cjs +1 -1
- package/src/lib/helpers/ConvertArrayLikeToStream.mjs +1 -1
- package/src/lib/helpers/Delay.cjs +1 -1
- package/src/lib/helpers/Delay.mjs +1 -1
- package/src/lib/helpers/DevNull.cjs +1 -1
- package/src/lib/helpers/DevNull.mjs +1 -1
- package/src/lib/helpers/GetObjectNestingDepth.cjs +1 -1
- package/src/lib/helpers/GetObjectNestingDepth.mjs +1 -1
- package/src/lib/helpers/GetObjectPropertyPaths.cjs +1 -1
- package/src/lib/helpers/GetObjectPropertyPaths.mjs +1 -1
- package/src/lib/helpers/Glob.cjs +1 -1
- package/src/lib/helpers/Glob.mjs +1 -1
- package/src/lib/helpers/GraceExit.cjs +1 -1
- package/src/lib/helpers/GraceExit.mjs +1 -1
- package/src/lib/helpers/HexToIEEE754.cjs +1 -1
- package/src/lib/helpers/HexToIEEE754.mjs +1 -1
- package/src/lib/helpers/HexToSigned.cjs +1 -1
- package/src/lib/helpers/HexToSigned.mjs +1 -1
- package/src/lib/helpers/HexToUnsigned.cjs +1 -1
- package/src/lib/helpers/HexToUnsigned.mjs +1 -1
- package/src/lib/helpers/IEEE754ToHex.cjs +1 -1
- package/src/lib/helpers/IEEE754ToHex.mjs +1 -1
- package/src/lib/helpers/IPToolkit.cjs +1 -1
- package/src/lib/helpers/IPToolkit.mjs +1 -1
- package/src/lib/helpers/IsAbortError.cjs +1 -1
- package/src/lib/helpers/IsAbortError.mjs +1 -1
- package/src/lib/helpers/IsEmptyObject.cjs +1 -1
- package/src/lib/helpers/IsEmptyObject.mjs +1 -1
- package/src/lib/helpers/IsExists.cjs +1 -1
- package/src/lib/helpers/IsExists.mjs +1 -1
- package/src/lib/helpers/IsGlobString.cjs +1 -1
- package/src/lib/helpers/IsGlobString.mjs +1 -1
- package/src/lib/helpers/IsHtml.cjs +1 -1
- package/src/lib/helpers/IsHtml.mjs +1 -1
- package/src/lib/helpers/IsNativeFunction.cjs +1 -1
- package/src/lib/helpers/IsNativeFunction.mjs +1 -1
- package/src/lib/helpers/IsPath.cjs +1 -1
- package/src/lib/helpers/IsPath.mjs +1 -1
- package/src/lib/helpers/IsPromise.cjs +1 -1
- package/src/lib/helpers/IsPromise.mjs +1 -1
- package/src/lib/helpers/IsPromiseLike.cjs +1 -1
- package/src/lib/helpers/IsPromiseLike.mjs +1 -1
- package/src/lib/helpers/IsSymbol.cjs +1 -1
- package/src/lib/helpers/IsSymbol.mjs +1 -1
- package/src/lib/helpers/IsXML.cjs +1 -1
- package/src/lib/helpers/IsXML.mjs +1 -1
- package/src/lib/helpers/MD5.cjs +1 -1
- package/src/lib/helpers/MD5.mjs +1 -1
- package/src/lib/helpers/MergeArray.cjs +1 -1
- package/src/lib/helpers/MergeArray.mjs +1 -1
- package/src/lib/helpers/MergeMap.cjs +1 -1
- package/src/lib/helpers/MergeMap.mjs +1 -1
- package/src/lib/helpers/MergeSet.cjs +1 -1
- package/src/lib/helpers/MergeSet.mjs +1 -1
- package/src/lib/helpers/MessagePack.cjs +1489 -0
- package/src/lib/helpers/MessagePack.mjs +1483 -0
- package/src/lib/helpers/NoCase.cjs +1 -1
- package/src/lib/helpers/NoCase.mjs +1 -1
- package/src/lib/helpers/NonceStr.cjs +1 -1
- package/src/lib/helpers/NonceStr.mjs +1 -1
- package/src/lib/helpers/ObjectConstructor.cjs +1 -1
- package/src/lib/helpers/ObjectConstructor.mjs +1 -1
- package/src/lib/helpers/ObjectHash.cjs +1 -1
- package/src/lib/helpers/ObjectHash.mjs +1 -1
- package/src/lib/helpers/ObjectParentConstructor.cjs +1 -1
- package/src/lib/helpers/ObjectParentConstructor.mjs +1 -1
- package/src/lib/helpers/ObjectParentConstructors.cjs +1 -1
- package/src/lib/helpers/ObjectParentConstructors.mjs +1 -1
- package/src/lib/helpers/ObjectPath.cjs +1 -1
- package/src/lib/helpers/ObjectPath.mjs +1 -1
- package/src/lib/helpers/ObjectPrototype.cjs +1 -1
- package/src/lib/helpers/ObjectPrototype.mjs +1 -1
- package/src/lib/helpers/ObjectToMap.cjs +1 -1
- package/src/lib/helpers/ObjectToMap.mjs +1 -1
- package/src/lib/helpers/Paginator.cjs +1 -1
- package/src/lib/helpers/Paginator.mjs +1 -1
- package/src/lib/helpers/RandomString.cjs +1 -1
- package/src/lib/helpers/RandomString.mjs +1 -1
- package/src/lib/helpers/SHA1.cjs +1 -1
- package/src/lib/helpers/SHA1.mjs +1 -1
- package/src/lib/helpers/SHA256.cjs +1 -1
- package/src/lib/helpers/SHA256.mjs +1 -1
- package/src/lib/helpers/SetToArray.cjs +1 -1
- package/src/lib/helpers/SetToArray.mjs +1 -1
- package/src/lib/helpers/SignedToHex.cjs +1 -1
- package/src/lib/helpers/SignedToHex.mjs +1 -1
- package/src/lib/helpers/SortArray.cjs +1 -1
- package/src/lib/helpers/SortArray.mjs +1 -1
- package/src/lib/helpers/SortKeys.cjs +1 -1
- package/src/lib/helpers/SortKeys.mjs +1 -1
- package/src/lib/helpers/SortObject.cjs +1 -1
- package/src/lib/helpers/SortObject.mjs +1 -1
- package/src/lib/helpers/Statistics.cjs +1 -1
- package/src/lib/helpers/Statistics.mjs +1 -1
- package/src/lib/helpers/Templating.cjs +1 -1
- package/src/lib/helpers/Templating.mjs +1 -1
- package/src/lib/helpers/URLBuilder.cjs +1 -1
- package/src/lib/helpers/URLBuilder.mjs +1 -1
- package/src/lib/helpers/UUID.cjs +1 -1
- package/src/lib/helpers/UUID.mjs +1 -1
- package/src/lib/helpers/UniqueArray.cjs +1 -1
- package/src/lib/helpers/UniqueArray.mjs +1 -1
- package/src/lib/helpers/UnsignedToHex.cjs +1 -1
- package/src/lib/helpers/UnsignedToHex.mjs +1 -1
- package/src/lib/ioc/DependencyInjectionContainer.cjs +1 -1
- package/src/lib/ioc/DependencyInjectionContainer.mjs +1 -1
- package/src/lib/ioc/Errors.cjs +1 -1
- package/src/lib/ioc/Errors.mjs +1 -1
- package/src/lib/ioc/FunctionTokenizer.cjs +1 -1
- package/src/lib/ioc/FunctionTokenizer.mjs +1 -1
- package/src/lib/ioc/InjectionMode.cjs +1 -1
- package/src/lib/ioc/InjectionMode.mjs +1 -1
- package/src/lib/ioc/Lifetime.cjs +1 -1
- package/src/lib/ioc/Lifetime.mjs +1 -1
- package/src/lib/ioc/ListModules.cjs +1 -1
- package/src/lib/ioc/ListModules.mjs +1 -1
- package/src/lib/ioc/LoadModules.cjs +1 -1
- package/src/lib/ioc/LoadModules.mjs +1 -1
- package/src/lib/ioc/ParamParser.cjs +1 -1
- package/src/lib/ioc/ParamParser.mjs +1 -1
- package/src/lib/ioc/Resolvers.cjs +1 -1
- package/src/lib/ioc/Resolvers.mjs +1 -1
- package/src/lib/ioc/Utils.cjs +1 -1
- package/src/lib/ioc/Utils.mjs +1 -1
- package/src/lib/validation/VLD.cjs +1 -1
- package/src/lib/validation/VLD.mjs +1 -1
- package/src/lib/validation/interfaces/AlternativesSchema.cjs +1 -1
- package/src/lib/validation/interfaces/AlternativesSchema.mjs +1 -1
- package/src/lib/validation/interfaces/AnySchema.cjs +1 -1
- package/src/lib/validation/interfaces/AnySchema.mjs +1 -1
- package/src/lib/validation/interfaces/ArraySchema.cjs +1 -1
- package/src/lib/validation/interfaces/ArraySchema.mjs +1 -1
- package/src/lib/validation/interfaces/Base64Options.cjs +1 -1
- package/src/lib/validation/interfaces/Base64Options.mjs +1 -1
- package/src/lib/validation/interfaces/BaseValidationOptions.cjs +1 -1
- package/src/lib/validation/interfaces/BaseValidationOptions.mjs +1 -1
- package/src/lib/validation/interfaces/BigIntSchema.cjs +1 -1
- package/src/lib/validation/interfaces/BigIntSchema.mjs +1 -1
- package/src/lib/validation/interfaces/BinarySchema.cjs +1 -1
- package/src/lib/validation/interfaces/BinarySchema.mjs +1 -1
- package/src/lib/validation/interfaces/BooleanSchema.cjs +1 -1
- package/src/lib/validation/interfaces/BooleanSchema.mjs +1 -1
- package/src/lib/validation/interfaces/CustomHelpers.cjs +1 -1
- package/src/lib/validation/interfaces/CustomHelpers.mjs +1 -1
- package/src/lib/validation/interfaces/DataUriOptions.cjs +1 -1
- package/src/lib/validation/interfaces/DataUriOptions.mjs +1 -1
- package/src/lib/validation/interfaces/DateSchema.cjs +1 -1
- package/src/lib/validation/interfaces/DateSchema.mjs +1 -1
- package/src/lib/validation/interfaces/DependencyOptions.cjs +1 -1
- package/src/lib/validation/interfaces/DependencyOptions.mjs +1 -1
- package/src/lib/validation/interfaces/DomainOptions.cjs +1 -1
- package/src/lib/validation/interfaces/DomainOptions.mjs +1 -1
- package/src/lib/validation/interfaces/EmailOptions.cjs +1 -1
- package/src/lib/validation/interfaces/EmailOptions.mjs +1 -1
- package/src/lib/validation/interfaces/ErrorFormattingOptions.cjs +1 -1
- package/src/lib/validation/interfaces/ErrorFormattingOptions.mjs +1 -1
- package/src/lib/validation/interfaces/ErrorReport.cjs +1 -1
- package/src/lib/validation/interfaces/ErrorReport.mjs +1 -1
- package/src/lib/validation/interfaces/ErrorValidationOptions.cjs +1 -1
- package/src/lib/validation/interfaces/ErrorValidationOptions.mjs +1 -1
- package/src/lib/validation/interfaces/ExtensionFlag.cjs +1 -1
- package/src/lib/validation/interfaces/ExtensionFlag.mjs +1 -1
- package/src/lib/validation/interfaces/ExternalHelpers.cjs +1 -1
- package/src/lib/validation/interfaces/ExternalHelpers.mjs +1 -1
- package/src/lib/validation/interfaces/FunctionSchema.cjs +1 -1
- package/src/lib/validation/interfaces/FunctionSchema.mjs +1 -1
- package/src/lib/validation/interfaces/GuidOptions.cjs +1 -1
- package/src/lib/validation/interfaces/GuidOptions.mjs +1 -1
- package/src/lib/validation/interfaces/HexOptions.cjs +1 -1
- package/src/lib/validation/interfaces/HexOptions.mjs +1 -1
- package/src/lib/validation/interfaces/HierarchySeparatorOptions.cjs +1 -1
- package/src/lib/validation/interfaces/HierarchySeparatorOptions.mjs +1 -1
- package/src/lib/validation/interfaces/IpOptions.cjs +1 -1
- package/src/lib/validation/interfaces/IpOptions.mjs +1 -1
- package/src/lib/validation/interfaces/LanguageMessageTemplate.cjs +1 -1
- package/src/lib/validation/interfaces/LanguageMessageTemplate.mjs +1 -1
- package/src/lib/validation/interfaces/LinkSchema.cjs +1 -1
- package/src/lib/validation/interfaces/LinkSchema.mjs +1 -1
- package/src/lib/validation/interfaces/NumberSchema.cjs +1 -1
- package/src/lib/validation/interfaces/NumberSchema.mjs +1 -1
- package/src/lib/validation/interfaces/ObjectPatternOptions.cjs +1 -1
- package/src/lib/validation/interfaces/ObjectPatternOptions.mjs +1 -1
- package/src/lib/validation/interfaces/ObjectSchema.cjs +1 -1
- package/src/lib/validation/interfaces/ObjectSchema.mjs +1 -1
- package/src/lib/validation/interfaces/Reference.cjs +1 -1
- package/src/lib/validation/interfaces/Reference.mjs +1 -1
- package/src/lib/validation/interfaces/ReferenceOptions.cjs +1 -1
- package/src/lib/validation/interfaces/ReferenceOptions.mjs +1 -1
- package/src/lib/validation/interfaces/RenameOptions.cjs +1 -1
- package/src/lib/validation/interfaces/RenameOptions.mjs +1 -1
- package/src/lib/validation/interfaces/State.cjs +1 -1
- package/src/lib/validation/interfaces/State.mjs +1 -1
- package/src/lib/validation/interfaces/StringRegexOptions.cjs +1 -1
- package/src/lib/validation/interfaces/StringRegexOptions.mjs +1 -1
- package/src/lib/validation/interfaces/StringSchema.cjs +1 -1
- package/src/lib/validation/interfaces/StringSchema.mjs +1 -1
- package/src/lib/validation/interfaces/SwitchCases.cjs +1 -1
- package/src/lib/validation/interfaces/SwitchCases.mjs +1 -1
- package/src/lib/validation/interfaces/SwitchDefault.cjs +1 -1
- package/src/lib/validation/interfaces/SwitchDefault.mjs +1 -1
- package/src/lib/validation/interfaces/SymbolSchema.cjs +1 -1
- package/src/lib/validation/interfaces/SymbolSchema.mjs +1 -1
- package/src/lib/validation/interfaces/TopLevelDomainOptions.cjs +1 -1
- package/src/lib/validation/interfaces/TopLevelDomainOptions.mjs +1 -1
- package/src/lib/validation/interfaces/UriOptions.cjs +1 -1
- package/src/lib/validation/interfaces/UriOptions.mjs +1 -1
- package/src/lib/validation/interfaces/ValidationOptions.cjs +1 -1
- package/src/lib/validation/interfaces/ValidationOptions.mjs +1 -1
- package/src/lib/validation/interfaces/WhenOptions.cjs +1 -1
- package/src/lib/validation/interfaces/WhenOptions.mjs +1 -1
- package/src/lib/validation/interfaces/WhenSchemaOptions.cjs +1 -1
- package/src/lib/validation/interfaces/WhenSchemaOptions.mjs +1 -1
- package/src/lib/validation/types/CustomValidator.cjs +1 -1
- package/src/lib/validation/types/CustomValidator.mjs +1 -1
- package/src/lib/validation/types/ExtensionBoundSchema.cjs +1 -1
- package/src/lib/validation/types/ExtensionBoundSchema.mjs +1 -1
- package/src/lib/validation/types/ExternalValidationFunction.cjs +1 -1
- package/src/lib/validation/types/ExternalValidationFunction.mjs +1 -1
- package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.cjs +1 -1
- package/src/lib/validation/types/IsNonPrimitiveSubsetUnion.mjs +1 -1
- package/src/lib/validation/types/IsPrimitiveSubset.cjs +1 -1
- package/src/lib/validation/types/IsPrimitiveSubset.mjs +1 -1
- package/src/lib/validation/types/IsUnion.cjs +1 -1
- package/src/lib/validation/types/IsUnion.mjs +1 -1
- package/src/lib/validation/types/LanguageMessages.cjs +1 -1
- package/src/lib/validation/types/LanguageMessages.mjs +1 -1
- package/src/lib/validation/types/NoNestedArrays.cjs +1 -1
- package/src/lib/validation/types/NoNestedArrays.mjs +1 -1
- package/src/lib/validation/types/NullableType.cjs +1 -1
- package/src/lib/validation/types/NullableType.mjs +1 -1
- package/src/lib/validation/types/ObjectPropertiesSchema.cjs +1 -1
- package/src/lib/validation/types/ObjectPropertiesSchema.mjs +1 -1
- package/src/lib/validation/types/PartialSchemaMap.cjs +1 -1
- package/src/lib/validation/types/PartialSchemaMap.mjs +1 -1
- package/src/lib/validation/types/PresenceMode.cjs +1 -1
- package/src/lib/validation/types/PresenceMode.mjs +1 -1
- package/src/lib/validation/types/Primitives.cjs +1 -1
- package/src/lib/validation/types/Primitives.mjs +1 -1
- package/src/lib/validation/types/Schema.cjs +1 -1
- package/src/lib/validation/types/Schema.mjs +1 -1
- package/src/lib/validation/types/SchemaFunction.cjs +1 -1
- package/src/lib/validation/types/SchemaFunction.mjs +1 -1
- package/src/lib/validation/types/SchemaLike.cjs +1 -1
- package/src/lib/validation/types/SchemaLike.mjs +1 -1
- package/src/lib/validation/types/SchemaLikeWithoutArray.cjs +1 -1
- package/src/lib/validation/types/SchemaLikeWithoutArray.mjs +1 -1
- package/src/lib/validation/types/SchemaMap.cjs +1 -1
- package/src/lib/validation/types/SchemaMap.mjs +1 -1
- package/src/lib/validation/types/StrictSchemaMap.cjs +1 -1
- package/src/lib/validation/types/StrictSchemaMap.mjs +1 -1
- package/src/lib/validation/types/Types.cjs +1 -1
- package/src/lib/validation/types/Types.mjs +1 -1
- package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.cjs +1 -1
- package/src/lib/validation/types/UnwrapSchemaLikeWithoutArray.mjs +1 -1
- package/src/options/ApplicationOptions.cjs +1 -1
- package/src/options/ApplicationOptions.mjs +1 -1
- package/src/options/LoadAnonymousObjectOptions.cjs +1 -1
- package/src/options/LoadAnonymousObjectOptions.mjs +1 -1
- package/src/options/LoadNamedObjectOptions.cjs +1 -1
- package/src/options/LoadNamedObjectOptions.mjs +1 -1
- package/src/options/LoadObjectOptions.cjs +1 -1
- package/src/options/LoadObjectOptions.mjs +1 -1
- package/src/options/ModuleLoadObjectsOptions.cjs +1 -1
- package/src/options/ModuleLoadObjectsOptions.mjs +1 -1
- package/src/options/ModuleOptions.cjs +1 -1
- package/src/options/ModuleOptions.mjs +1 -1
- package/src/options/OverridableNamedObjectOptions.cjs +1 -1
- package/src/options/OverridableNamedObjectOptions.mjs +1 -1
- package/src/options/OverridableObjectOptions.cjs +1 -1
- package/src/options/OverridableObjectOptions.mjs +1 -1
- package/src/providers/Database.cjs +1 -1
- package/src/providers/Database.mjs +1 -1
- package/src/providers/PasswordHash.cjs +1 -1
- package/src/providers/PasswordHash.mjs +1 -1
- package/src/providers/migration/GenerateMigration.cjs +1 -1
- package/src/providers/migration/GenerateMigration.mjs +1 -1
- package/src/types/ActionPattern.cjs +1 -1
- package/src/types/ActionPattern.mjs +1 -1
- package/src/types/ClassDecorator.cjs +1 -1
- package/src/types/ClassDecorator.mjs +1 -1
- package/src/types/ComponentOptions.cjs +1 -1
- package/src/types/ComponentOptions.mjs +1 -1
- package/src/types/JSONSchema.cjs +1 -1
- package/src/types/JSONSchema.mjs +1 -1
- package/src/types/MethodDecorator.cjs +1 -1
- package/src/types/MethodDecorator.mjs +1 -1
- package/src/types/ModuleOptions.cjs +1 -1
- package/src/types/ModuleOptions.mjs +1 -1
- package/src/types/ObjectOptions.cjs +1 -1
- package/src/types/ObjectOptions.mjs +1 -1
- package/src/types/ParameterDecorator.cjs +1 -1
- package/src/types/ParameterDecorator.mjs +1 -1
- package/src/types/PropertyDecorator.cjs +1 -1
- package/src/types/PropertyDecorator.mjs +1 -1
- package/src/types/ProviderOptions.cjs +1 -1
- package/src/types/ProviderOptions.mjs +1 -1
- package/vendor/Package.internal.1.cjs +1 -1
- package/vendor/Package.internal.1.mjs +1 -1
- package/vendor/Package.internal.10.cjs +1 -1
- package/vendor/Package.internal.10.mjs +1 -1
- package/vendor/Package.internal.11.cjs +1 -1
- package/vendor/Package.internal.11.mjs +1 -1
- package/vendor/Package.internal.12.cjs +1 -1
- package/vendor/Package.internal.12.mjs +1 -1
- package/vendor/Package.internal.13.cjs +1 -1
- package/vendor/Package.internal.13.mjs +1 -1
- package/vendor/Package.internal.14.cjs +1 -1
- package/vendor/Package.internal.14.mjs +1 -1
- package/vendor/Package.internal.15.cjs +1 -1
- package/vendor/Package.internal.15.mjs +1 -1
- package/vendor/Package.internal.16.cjs +1 -1
- package/vendor/Package.internal.16.mjs +1 -1
- package/vendor/Package.internal.17.cjs +1 -1
- package/vendor/Package.internal.17.mjs +1 -1
- package/vendor/Package.internal.18.cjs +1 -1
- package/vendor/Package.internal.18.mjs +1 -1
- package/vendor/Package.internal.19.cjs +1 -1
- package/vendor/Package.internal.19.mjs +1 -1
- package/vendor/Package.internal.2.cjs +1 -1
- package/vendor/Package.internal.2.mjs +1 -1
- package/vendor/Package.internal.20.cjs +1 -1
- package/vendor/Package.internal.20.mjs +1 -1
- package/vendor/Package.internal.21.cjs +1 -1
- package/vendor/Package.internal.21.mjs +1 -1
- package/vendor/Package.internal.22.cjs +1 -1
- package/vendor/Package.internal.22.mjs +1 -1
- package/vendor/Package.internal.23.cjs +1 -1
- package/vendor/Package.internal.23.mjs +1 -1
- package/vendor/Package.internal.24.cjs +1 -1
- package/vendor/Package.internal.24.mjs +1 -1
- package/vendor/Package.internal.25.cjs +1 -1
- package/vendor/Package.internal.25.mjs +1 -1
- package/vendor/Package.internal.26.cjs +1 -1
- package/vendor/Package.internal.26.mjs +1 -1
- package/vendor/Package.internal.27.cjs +1 -1
- package/vendor/Package.internal.27.mjs +1 -1
- package/vendor/Package.internal.28.cjs +1 -1
- package/vendor/Package.internal.28.mjs +1 -1
- package/vendor/Package.internal.29.cjs +1 -1
- package/vendor/Package.internal.29.mjs +1 -1
- package/vendor/Package.internal.3.cjs +1 -1
- package/vendor/Package.internal.3.mjs +1 -1
- package/vendor/Package.internal.30.cjs +1 -1
- package/vendor/Package.internal.30.mjs +1 -1
- package/vendor/Package.internal.31.cjs +1 -1
- package/vendor/Package.internal.31.mjs +1 -1
- package/vendor/Package.internal.310.cjs +1 -1
- package/vendor/Package.internal.310.mjs +1 -1
- package/vendor/Package.internal.32.cjs +1 -1
- package/vendor/Package.internal.32.mjs +1 -1
- package/vendor/Package.internal.33.cjs +1 -1
- package/vendor/Package.internal.33.mjs +1 -1
- package/vendor/Package.internal.34.cjs +1 -1
- package/vendor/Package.internal.34.mjs +1 -1
- package/vendor/Package.internal.35.cjs +1 -1
- package/vendor/Package.internal.35.mjs +1 -1
- package/vendor/Package.internal.36.cjs +1 -1
- package/vendor/Package.internal.36.mjs +1 -1
- package/vendor/Package.internal.37.cjs +1 -1
- package/vendor/Package.internal.37.mjs +1 -1
- package/vendor/Package.internal.38.cjs +1 -1
- package/vendor/Package.internal.38.mjs +1 -1
- package/vendor/Package.internal.39.cjs +1 -1
- package/vendor/Package.internal.39.mjs +1 -1
- package/vendor/Package.internal.4.cjs +1 -1
- package/vendor/Package.internal.4.mjs +1 -1
- package/vendor/Package.internal.40.cjs +1 -1
- package/vendor/Package.internal.40.mjs +1 -1
- package/vendor/Package.internal.41.cjs +1 -1
- package/vendor/Package.internal.41.mjs +1 -1
- package/vendor/Package.internal.42.cjs +1 -1
- package/vendor/Package.internal.42.mjs +1 -1
- package/vendor/Package.internal.43.cjs +1 -1
- package/vendor/Package.internal.43.mjs +1 -1
- package/vendor/Package.internal.44.cjs +1 -1
- package/vendor/Package.internal.44.mjs +1 -1
- package/vendor/Package.internal.45.cjs +1 -1
- package/vendor/Package.internal.45.mjs +1 -1
- package/vendor/Package.internal.46.cjs +1 -1
- package/vendor/Package.internal.46.mjs +1 -1
- package/vendor/Package.internal.47.cjs +1 -1
- package/vendor/Package.internal.47.mjs +1 -1
- package/vendor/Package.internal.48.cjs +1 -1
- package/vendor/Package.internal.48.mjs +1 -1
- package/vendor/Package.internal.49.cjs +1 -1
- package/vendor/Package.internal.49.mjs +1 -1
- package/vendor/Package.internal.5.cjs +1 -1
- package/vendor/Package.internal.5.mjs +1 -1
- package/vendor/Package.internal.50.cjs +1 -1
- package/vendor/Package.internal.50.mjs +1 -1
- package/vendor/Package.internal.51.cjs +1 -1
- package/vendor/Package.internal.51.mjs +1 -1
- package/vendor/Package.internal.512.cjs +1 -1
- package/vendor/Package.internal.512.mjs +1 -1
- package/vendor/Package.internal.52.cjs +7 -34
- package/vendor/Package.internal.52.mjs +56 -83
- package/vendor/Package.internal.5210.cjs +1 -1
- package/vendor/Package.internal.5210.mjs +1 -1
- package/vendor/Package.internal.522.cjs +1 -1
- package/vendor/Package.internal.522.mjs +1 -1
- package/vendor/Package.internal.523.cjs +1 -1
- package/vendor/Package.internal.523.mjs +1 -1
- package/vendor/Package.internal.524.cjs +1 -1
- package/vendor/Package.internal.524.mjs +1 -1
- package/vendor/Package.internal.525.cjs +1 -1
- package/vendor/Package.internal.525.mjs +1 -1
- package/vendor/Package.internal.526.cjs +1 -1
- package/vendor/Package.internal.526.mjs +1 -1
- package/vendor/Package.internal.527.cjs +1 -1
- package/vendor/Package.internal.527.mjs +1 -1
- package/vendor/Package.internal.528.cjs +1 -1
- package/vendor/Package.internal.528.mjs +1 -1
- package/vendor/Package.internal.529.cjs +1 -1
- package/vendor/Package.internal.529.mjs +1 -1
- package/vendor/Package.internal.53.cjs +1 -1
- package/vendor/Package.internal.53.mjs +1 -1
- package/vendor/Package.internal.54.cjs +1 -1
- package/vendor/Package.internal.54.mjs +1 -1
- package/vendor/Package.internal.55.cjs +1 -1
- package/vendor/Package.internal.55.mjs +1 -1
- package/vendor/Package.internal.56.cjs +152 -171
- package/vendor/Package.internal.56.mjs +605 -624
- package/vendor/Package.internal.6.cjs +1 -1
- package/vendor/Package.internal.6.mjs +1 -1
- package/vendor/Package.internal.7.cjs +1 -1
- package/vendor/Package.internal.7.mjs +1 -1
- package/vendor/Package.internal.8.cjs +1 -1
- package/vendor/Package.internal.8.mjs +1 -1
- package/vendor/Package.internal.9.cjs +1 -1
- package/vendor/Package.internal.9.mjs +1 -1
- package/vendor/TypeDef.internal.138.d.ts +26 -1
|
@@ -0,0 +1,1489 @@
|
|
|
1
|
+
/* Build Date: Sat Dec 27 2025 17:35:07 GMT+0800 (China Standard Time) */
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
5
|
+
value: "Module"
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
function e(e) {
|
|
9
|
+
const t = e.length;
|
|
10
|
+
let s = 0;
|
|
11
|
+
let i = 0;
|
|
12
|
+
while (i < t) {
|
|
13
|
+
let n = e.charCodeAt(i++);
|
|
14
|
+
if ((n & 4294967168) === 0) {
|
|
15
|
+
s++;
|
|
16
|
+
continue;
|
|
17
|
+
} else if ((n & 4294965248) === 0) {
|
|
18
|
+
s += 2;
|
|
19
|
+
} else {
|
|
20
|
+
if (n >= 55296 && n <= 56319) {
|
|
21
|
+
if (i < t) {
|
|
22
|
+
const t = e.charCodeAt(i);
|
|
23
|
+
if ((t & 64512) === 56320) {
|
|
24
|
+
++i;
|
|
25
|
+
n = ((n & 1023) << 10) + (t & 1023) + 65536;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if ((n & 4294901760) === 0) {
|
|
30
|
+
s += 3;
|
|
31
|
+
} else {
|
|
32
|
+
s += 4;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return s;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function t(e, t, s) {
|
|
40
|
+
const i = e.length;
|
|
41
|
+
let n = s;
|
|
42
|
+
let r = 0;
|
|
43
|
+
while (r < i) {
|
|
44
|
+
let s = e.charCodeAt(r++);
|
|
45
|
+
if ((s & 4294967168) === 0) {
|
|
46
|
+
t[n++] = s;
|
|
47
|
+
continue;
|
|
48
|
+
} else if ((s & 4294965248) === 0) {
|
|
49
|
+
t[n++] = s >> 6 & 31 | 192;
|
|
50
|
+
} else {
|
|
51
|
+
if (s >= 55296 && s <= 56319) {
|
|
52
|
+
if (r < i) {
|
|
53
|
+
const t = e.charCodeAt(r);
|
|
54
|
+
if ((t & 64512) === 56320) {
|
|
55
|
+
++r;
|
|
56
|
+
s = ((s & 1023) << 10) + (t & 1023) + 65536;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if ((s & 4294901760) === 0) {
|
|
61
|
+
t[n++] = s >> 12 & 15 | 224;
|
|
62
|
+
t[n++] = s >> 6 & 63 | 128;
|
|
63
|
+
} else {
|
|
64
|
+
t[n++] = s >> 18 & 7 | 240;
|
|
65
|
+
t[n++] = s >> 12 & 63 | 128;
|
|
66
|
+
t[n++] = s >> 6 & 63 | 128;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
t[n++] = s & 63 | 128;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const s = new TextEncoder;
|
|
74
|
+
|
|
75
|
+
const i = 50;
|
|
76
|
+
|
|
77
|
+
function n(e, t, i) {
|
|
78
|
+
s.encodeInto(e, t.subarray(i));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function r(e, s, r) {
|
|
82
|
+
if (e.length > i) {
|
|
83
|
+
n(e, s, r);
|
|
84
|
+
} else {
|
|
85
|
+
t(e, s, r);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const o = 4096;
|
|
90
|
+
|
|
91
|
+
function h(e, t, s) {
|
|
92
|
+
let i = t;
|
|
93
|
+
const n = i + s;
|
|
94
|
+
const r = [];
|
|
95
|
+
let h = "";
|
|
96
|
+
while (i < n) {
|
|
97
|
+
const t = e[i++];
|
|
98
|
+
if ((t & 128) === 0) {
|
|
99
|
+
r.push(t);
|
|
100
|
+
} else if ((t & 224) === 192) {
|
|
101
|
+
const s = e[i++] & 63;
|
|
102
|
+
r.push((t & 31) << 6 | s);
|
|
103
|
+
} else if ((t & 240) === 224) {
|
|
104
|
+
const s = e[i++] & 63;
|
|
105
|
+
const n = e[i++] & 63;
|
|
106
|
+
r.push((t & 31) << 12 | s << 6 | n);
|
|
107
|
+
} else if ((t & 248) === 240) {
|
|
108
|
+
const s = e[i++] & 63;
|
|
109
|
+
const n = e[i++] & 63;
|
|
110
|
+
const o = e[i++] & 63;
|
|
111
|
+
let h = (t & 7) << 18 | s << 12 | n << 6 | o;
|
|
112
|
+
if (h > 65535) {
|
|
113
|
+
h -= 65536;
|
|
114
|
+
r.push(h >>> 10 & 1023 | 55296);
|
|
115
|
+
h = 56320 | h & 1023;
|
|
116
|
+
}
|
|
117
|
+
r.push(h);
|
|
118
|
+
} else {
|
|
119
|
+
r.push(t);
|
|
120
|
+
}
|
|
121
|
+
if (r.length >= o) {
|
|
122
|
+
h += String.fromCharCode(...r);
|
|
123
|
+
r.length = 0;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
if (r.length > 0) {
|
|
127
|
+
h += String.fromCharCode(...r);
|
|
128
|
+
}
|
|
129
|
+
return h;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const a = new TextDecoder;
|
|
133
|
+
|
|
134
|
+
const c = 200;
|
|
135
|
+
|
|
136
|
+
function f(e, t, s) {
|
|
137
|
+
const i = e.subarray(t, t + s);
|
|
138
|
+
return a.decode(i);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function d(e, t, s) {
|
|
142
|
+
if (s > c) {
|
|
143
|
+
return f(e, t, s);
|
|
144
|
+
} else {
|
|
145
|
+
return h(e, t, s);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
class ExtData {
|
|
150
|
+
type;
|
|
151
|
+
data;
|
|
152
|
+
constructor(e, t) {
|
|
153
|
+
this.type = e;
|
|
154
|
+
this.data = t;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
class DecodeError extends Error {
|
|
159
|
+
constructor(e) {
|
|
160
|
+
super(e);
|
|
161
|
+
const t = Object.create(DecodeError.prototype);
|
|
162
|
+
Object.setPrototypeOf(this, t);
|
|
163
|
+
Object.defineProperty(this, "name", {
|
|
164
|
+
configurable: true,
|
|
165
|
+
enumerable: false,
|
|
166
|
+
value: DecodeError.name
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const l = 4294967295;
|
|
172
|
+
|
|
173
|
+
function u(e, t, s) {
|
|
174
|
+
const i = s / 4294967296;
|
|
175
|
+
const n = s;
|
|
176
|
+
e.setUint32(t, i);
|
|
177
|
+
e.setUint32(t + 4, n);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function w(e, t, s) {
|
|
181
|
+
const i = Math.floor(s / 4294967296);
|
|
182
|
+
const n = s;
|
|
183
|
+
e.setUint32(t, i);
|
|
184
|
+
e.setUint32(t + 4, n);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function g(e, t) {
|
|
188
|
+
const s = e.getInt32(t);
|
|
189
|
+
const i = e.getUint32(t + 4);
|
|
190
|
+
return s * 4294967296 + i;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function y(e, t) {
|
|
194
|
+
const s = e.getUint32(t);
|
|
195
|
+
const i = e.getUint32(t + 4);
|
|
196
|
+
return s * 4294967296 + i;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
const p = -1;
|
|
200
|
+
|
|
201
|
+
const U = 4294967296 - 1;
|
|
202
|
+
|
|
203
|
+
const x = 17179869184 - 1;
|
|
204
|
+
|
|
205
|
+
function m({sec: e, nsec: t}) {
|
|
206
|
+
if (e >= 0 && t >= 0 && e <= x) {
|
|
207
|
+
if (t === 0 && e <= U) {
|
|
208
|
+
const t = new Uint8Array(4);
|
|
209
|
+
const s = new DataView(t.buffer);
|
|
210
|
+
s.setUint32(0, e);
|
|
211
|
+
return t;
|
|
212
|
+
} else {
|
|
213
|
+
const s = e / 4294967296;
|
|
214
|
+
const i = e & 4294967295;
|
|
215
|
+
const n = new Uint8Array(8);
|
|
216
|
+
const r = new DataView(n.buffer);
|
|
217
|
+
r.setUint32(0, t << 2 | s & 3);
|
|
218
|
+
r.setUint32(4, i);
|
|
219
|
+
return n;
|
|
220
|
+
}
|
|
221
|
+
} else {
|
|
222
|
+
const s = new Uint8Array(12);
|
|
223
|
+
const i = new DataView(s.buffer);
|
|
224
|
+
i.setUint32(0, t);
|
|
225
|
+
w(i, 4, e);
|
|
226
|
+
return s;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function B(e) {
|
|
231
|
+
const t = e.getTime();
|
|
232
|
+
const s = Math.floor(t / 1e3);
|
|
233
|
+
const i = (t - s * 1e3) * 1e6;
|
|
234
|
+
const n = Math.floor(i / 1e9);
|
|
235
|
+
return {
|
|
236
|
+
sec: s + n,
|
|
237
|
+
nsec: i - n * 1e9
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function b(e) {
|
|
242
|
+
if (e instanceof Date) {
|
|
243
|
+
const t = B(e);
|
|
244
|
+
return m(t);
|
|
245
|
+
} else {
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function S(e) {
|
|
251
|
+
const t = new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
252
|
+
switch (e.byteLength) {
|
|
253
|
+
case 4:
|
|
254
|
+
{
|
|
255
|
+
const e = t.getUint32(0);
|
|
256
|
+
const s = 0;
|
|
257
|
+
return {
|
|
258
|
+
sec: e,
|
|
259
|
+
nsec: s
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
case 8:
|
|
264
|
+
{
|
|
265
|
+
const e = t.getUint32(0);
|
|
266
|
+
const s = t.getUint32(4);
|
|
267
|
+
const i = (e & 3) * 4294967296 + s;
|
|
268
|
+
const n = e >>> 2;
|
|
269
|
+
return {
|
|
270
|
+
sec: i,
|
|
271
|
+
nsec: n
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
case 12:
|
|
276
|
+
{
|
|
277
|
+
const e = g(t, 4);
|
|
278
|
+
const s = t.getUint32(0);
|
|
279
|
+
return {
|
|
280
|
+
sec: e,
|
|
281
|
+
nsec: s
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
default:
|
|
286
|
+
throw new DecodeError(`Unrecognized data size for timestamp (expected 4, 8, or 12): ${e.length}`);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
function E(e) {
|
|
291
|
+
const t = S(e);
|
|
292
|
+
return new Date(t.sec * 1e3 + t.nsec / 1e6);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
const I = {
|
|
296
|
+
type: p,
|
|
297
|
+
encode: b,
|
|
298
|
+
decode: E
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
class ExtensionCodec {
|
|
302
|
+
static defaultCodec=new ExtensionCodec;
|
|
303
|
+
__brand;
|
|
304
|
+
builtInEncoders=[];
|
|
305
|
+
builtInDecoders=[];
|
|
306
|
+
encoders=[];
|
|
307
|
+
decoders=[];
|
|
308
|
+
constructor() {
|
|
309
|
+
this.register(I);
|
|
310
|
+
}
|
|
311
|
+
register({type: e, encode: t, decode: s}) {
|
|
312
|
+
if (e >= 0) {
|
|
313
|
+
this.encoders[e] = t;
|
|
314
|
+
this.decoders[e] = s;
|
|
315
|
+
} else {
|
|
316
|
+
const i = -1 - e;
|
|
317
|
+
this.builtInEncoders[i] = t;
|
|
318
|
+
this.builtInDecoders[i] = s;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
tryToEncode(e, t) {
|
|
322
|
+
for (let s = 0; s < this.builtInEncoders.length; s++) {
|
|
323
|
+
const i = this.builtInEncoders[s];
|
|
324
|
+
if (i != null) {
|
|
325
|
+
const n = i(e, t);
|
|
326
|
+
if (n != null) {
|
|
327
|
+
const e = -1 - s;
|
|
328
|
+
return new ExtData(e, n);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
for (let s = 0; s < this.encoders.length; s++) {
|
|
333
|
+
const i = this.encoders[s];
|
|
334
|
+
if (i != null) {
|
|
335
|
+
const n = i(e, t);
|
|
336
|
+
if (n != null) {
|
|
337
|
+
const e = s;
|
|
338
|
+
return new ExtData(e, n);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
if (e instanceof ExtData) {
|
|
343
|
+
return e;
|
|
344
|
+
}
|
|
345
|
+
return null;
|
|
346
|
+
}
|
|
347
|
+
decode(e, t, s) {
|
|
348
|
+
const i = t < 0 ? this.builtInDecoders[-1 - t] : this.decoders[t];
|
|
349
|
+
if (i) {
|
|
350
|
+
return i(e, t, s);
|
|
351
|
+
} else {
|
|
352
|
+
return new ExtData(t, e);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function A(e) {
|
|
358
|
+
return e instanceof ArrayBuffer || typeof SharedArrayBuffer !== "undefined" && e instanceof SharedArrayBuffer;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
function k(e) {
|
|
362
|
+
if (e instanceof Uint8Array) {
|
|
363
|
+
return e;
|
|
364
|
+
} else if (ArrayBuffer.isView(e)) {
|
|
365
|
+
return new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
|
|
366
|
+
} else if (A(e)) {
|
|
367
|
+
return new Uint8Array(e);
|
|
368
|
+
} else {
|
|
369
|
+
return Uint8Array.from(e);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
const L = 100;
|
|
374
|
+
|
|
375
|
+
const D = 2048;
|
|
376
|
+
|
|
377
|
+
class Encoder {
|
|
378
|
+
extensionCodec;
|
|
379
|
+
context;
|
|
380
|
+
useBigInt64;
|
|
381
|
+
maxDepth;
|
|
382
|
+
initialBufferSize;
|
|
383
|
+
sortKeys;
|
|
384
|
+
forceFloat32;
|
|
385
|
+
ignoreUndefined;
|
|
386
|
+
forceIntegerToFloat;
|
|
387
|
+
pos;
|
|
388
|
+
view;
|
|
389
|
+
bytes;
|
|
390
|
+
entered=false;
|
|
391
|
+
constructor(e) {
|
|
392
|
+
this.extensionCodec = e?.extensionCodec ?? ExtensionCodec.defaultCodec;
|
|
393
|
+
this.context = e?.context;
|
|
394
|
+
this.useBigInt64 = e?.useBigInt64 ?? false;
|
|
395
|
+
this.maxDepth = e?.maxDepth ?? L;
|
|
396
|
+
this.initialBufferSize = e?.initialBufferSize ?? D;
|
|
397
|
+
this.sortKeys = e?.sortKeys ?? false;
|
|
398
|
+
this.forceFloat32 = e?.forceFloat32 ?? false;
|
|
399
|
+
this.ignoreUndefined = e?.ignoreUndefined ?? false;
|
|
400
|
+
this.forceIntegerToFloat = e?.forceIntegerToFloat ?? false;
|
|
401
|
+
this.pos = 0;
|
|
402
|
+
this.view = new DataView(new ArrayBuffer(this.initialBufferSize));
|
|
403
|
+
this.bytes = new Uint8Array(this.view.buffer);
|
|
404
|
+
}
|
|
405
|
+
clone() {
|
|
406
|
+
return new Encoder({
|
|
407
|
+
extensionCodec: this.extensionCodec,
|
|
408
|
+
context: this.context,
|
|
409
|
+
useBigInt64: this.useBigInt64,
|
|
410
|
+
maxDepth: this.maxDepth,
|
|
411
|
+
initialBufferSize: this.initialBufferSize,
|
|
412
|
+
sortKeys: this.sortKeys,
|
|
413
|
+
forceFloat32: this.forceFloat32,
|
|
414
|
+
ignoreUndefined: this.ignoreUndefined,
|
|
415
|
+
forceIntegerToFloat: this.forceIntegerToFloat
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
reinitializeState() {
|
|
419
|
+
this.pos = 0;
|
|
420
|
+
}
|
|
421
|
+
encodeSharedRef(e) {
|
|
422
|
+
if (this.entered) {
|
|
423
|
+
const t = this.clone();
|
|
424
|
+
return t.encodeSharedRef(e);
|
|
425
|
+
}
|
|
426
|
+
try {
|
|
427
|
+
this.entered = true;
|
|
428
|
+
this.reinitializeState();
|
|
429
|
+
this.doEncode(e, 1);
|
|
430
|
+
return this.bytes.subarray(0, this.pos);
|
|
431
|
+
} finally {
|
|
432
|
+
this.entered = false;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
encode(e) {
|
|
436
|
+
if (this.entered) {
|
|
437
|
+
const t = this.clone();
|
|
438
|
+
return t.encode(e);
|
|
439
|
+
}
|
|
440
|
+
try {
|
|
441
|
+
this.entered = true;
|
|
442
|
+
this.reinitializeState();
|
|
443
|
+
this.doEncode(e, 1);
|
|
444
|
+
return this.bytes.slice(0, this.pos);
|
|
445
|
+
} finally {
|
|
446
|
+
this.entered = false;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
doEncode(e, t) {
|
|
450
|
+
if (t > this.maxDepth) {
|
|
451
|
+
throw new Error(`Too deep objects in depth ${t}`);
|
|
452
|
+
}
|
|
453
|
+
if (e == null) {
|
|
454
|
+
this.encodeNil();
|
|
455
|
+
} else if (typeof e === "boolean") {
|
|
456
|
+
this.encodeBoolean(e);
|
|
457
|
+
} else if (typeof e === "number") {
|
|
458
|
+
if (!this.forceIntegerToFloat) {
|
|
459
|
+
this.encodeNumber(e);
|
|
460
|
+
} else {
|
|
461
|
+
this.encodeNumberAsFloat(e);
|
|
462
|
+
}
|
|
463
|
+
} else if (typeof e === "string") {
|
|
464
|
+
this.encodeString(e);
|
|
465
|
+
} else if (this.useBigInt64 && typeof e === "bigint") {
|
|
466
|
+
this.encodeBigInt64(e);
|
|
467
|
+
} else {
|
|
468
|
+
this.encodeObject(e, t);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
ensureBufferSizeToWrite(e) {
|
|
472
|
+
const t = this.pos + e;
|
|
473
|
+
if (this.view.byteLength < t) {
|
|
474
|
+
this.resizeBuffer(t * 2);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
resizeBuffer(e) {
|
|
478
|
+
const t = new ArrayBuffer(e);
|
|
479
|
+
const s = new Uint8Array(t);
|
|
480
|
+
const i = new DataView(t);
|
|
481
|
+
s.set(this.bytes);
|
|
482
|
+
this.view = i;
|
|
483
|
+
this.bytes = s;
|
|
484
|
+
}
|
|
485
|
+
encodeNil() {
|
|
486
|
+
this.writeU8(192);
|
|
487
|
+
}
|
|
488
|
+
encodeBoolean(e) {
|
|
489
|
+
if (e === false) {
|
|
490
|
+
this.writeU8(194);
|
|
491
|
+
} else {
|
|
492
|
+
this.writeU8(195);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
encodeNumber(e) {
|
|
496
|
+
if (!this.forceIntegerToFloat && Number.isSafeInteger(e)) {
|
|
497
|
+
if (e >= 0) {
|
|
498
|
+
if (e < 128) {
|
|
499
|
+
this.writeU8(e);
|
|
500
|
+
} else if (e < 256) {
|
|
501
|
+
this.writeU8(204);
|
|
502
|
+
this.writeU8(e);
|
|
503
|
+
} else if (e < 65536) {
|
|
504
|
+
this.writeU8(205);
|
|
505
|
+
this.writeU16(e);
|
|
506
|
+
} else if (e < 4294967296) {
|
|
507
|
+
this.writeU8(206);
|
|
508
|
+
this.writeU32(e);
|
|
509
|
+
} else if (!this.useBigInt64) {
|
|
510
|
+
this.writeU8(207);
|
|
511
|
+
this.writeU64(e);
|
|
512
|
+
} else {
|
|
513
|
+
this.encodeNumberAsFloat(e);
|
|
514
|
+
}
|
|
515
|
+
} else {
|
|
516
|
+
if (e >= -32) {
|
|
517
|
+
this.writeU8(224 | e + 32);
|
|
518
|
+
} else if (e >= -128) {
|
|
519
|
+
this.writeU8(208);
|
|
520
|
+
this.writeI8(e);
|
|
521
|
+
} else if (e >= -32768) {
|
|
522
|
+
this.writeU8(209);
|
|
523
|
+
this.writeI16(e);
|
|
524
|
+
} else if (e >= -2147483648) {
|
|
525
|
+
this.writeU8(210);
|
|
526
|
+
this.writeI32(e);
|
|
527
|
+
} else if (!this.useBigInt64) {
|
|
528
|
+
this.writeU8(211);
|
|
529
|
+
this.writeI64(e);
|
|
530
|
+
} else {
|
|
531
|
+
this.encodeNumberAsFloat(e);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
} else {
|
|
535
|
+
this.encodeNumberAsFloat(e);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
encodeNumberAsFloat(e) {
|
|
539
|
+
if (this.forceFloat32) {
|
|
540
|
+
this.writeU8(202);
|
|
541
|
+
this.writeF32(e);
|
|
542
|
+
} else {
|
|
543
|
+
this.writeU8(203);
|
|
544
|
+
this.writeF64(e);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
encodeBigInt64(e) {
|
|
548
|
+
if (e >= BigInt(0)) {
|
|
549
|
+
this.writeU8(207);
|
|
550
|
+
this.writeBigUint64(e);
|
|
551
|
+
} else {
|
|
552
|
+
this.writeU8(211);
|
|
553
|
+
this.writeBigInt64(e);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
writeStringHeader(e) {
|
|
557
|
+
if (e < 32) {
|
|
558
|
+
this.writeU8(160 + e);
|
|
559
|
+
} else if (e < 256) {
|
|
560
|
+
this.writeU8(217);
|
|
561
|
+
this.writeU8(e);
|
|
562
|
+
} else if (e < 65536) {
|
|
563
|
+
this.writeU8(218);
|
|
564
|
+
this.writeU16(e);
|
|
565
|
+
} else if (e < 4294967296) {
|
|
566
|
+
this.writeU8(219);
|
|
567
|
+
this.writeU32(e);
|
|
568
|
+
} else {
|
|
569
|
+
throw new Error(`Too long string: ${e} bytes in UTF-8`);
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
encodeString(t) {
|
|
573
|
+
const s = 1 + 4;
|
|
574
|
+
const i = e(t);
|
|
575
|
+
this.ensureBufferSizeToWrite(s + i);
|
|
576
|
+
this.writeStringHeader(i);
|
|
577
|
+
r(t, this.bytes, this.pos);
|
|
578
|
+
this.pos += i;
|
|
579
|
+
}
|
|
580
|
+
encodeObject(e, t) {
|
|
581
|
+
const s = this.extensionCodec.tryToEncode(e, this.context);
|
|
582
|
+
if (s != null) {
|
|
583
|
+
this.encodeExtension(s);
|
|
584
|
+
} else if (Array.isArray(e)) {
|
|
585
|
+
this.encodeArray(e, t);
|
|
586
|
+
} else if (ArrayBuffer.isView(e)) {
|
|
587
|
+
this.encodeBinary(e);
|
|
588
|
+
} else if (typeof e === "object") {
|
|
589
|
+
this.encodeMap(e, t);
|
|
590
|
+
} else {
|
|
591
|
+
throw new Error(`Unrecognized object: ${Object.prototype.toString.apply(e)}`);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
encodeBinary(e) {
|
|
595
|
+
const t = e.byteLength;
|
|
596
|
+
if (t < 256) {
|
|
597
|
+
this.writeU8(196);
|
|
598
|
+
this.writeU8(t);
|
|
599
|
+
} else if (t < 65536) {
|
|
600
|
+
this.writeU8(197);
|
|
601
|
+
this.writeU16(t);
|
|
602
|
+
} else if (t < 4294967296) {
|
|
603
|
+
this.writeU8(198);
|
|
604
|
+
this.writeU32(t);
|
|
605
|
+
} else {
|
|
606
|
+
throw new Error(`Too large binary: ${t}`);
|
|
607
|
+
}
|
|
608
|
+
const s = k(e);
|
|
609
|
+
this.writeU8a(s);
|
|
610
|
+
}
|
|
611
|
+
encodeArray(e, t) {
|
|
612
|
+
const s = e.length;
|
|
613
|
+
if (s < 16) {
|
|
614
|
+
this.writeU8(144 + s);
|
|
615
|
+
} else if (s < 65536) {
|
|
616
|
+
this.writeU8(220);
|
|
617
|
+
this.writeU16(s);
|
|
618
|
+
} else if (s < 4294967296) {
|
|
619
|
+
this.writeU8(221);
|
|
620
|
+
this.writeU32(s);
|
|
621
|
+
} else {
|
|
622
|
+
throw new Error(`Too large array: ${s}`);
|
|
623
|
+
}
|
|
624
|
+
for (const s of e) {
|
|
625
|
+
this.doEncode(s, t + 1);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
countWithoutUndefined(e, t) {
|
|
629
|
+
let s = 0;
|
|
630
|
+
for (const i of t) {
|
|
631
|
+
if (e[i] !== undefined) {
|
|
632
|
+
s++;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
return s;
|
|
636
|
+
}
|
|
637
|
+
encodeMap(e, t) {
|
|
638
|
+
const s = Object.keys(e);
|
|
639
|
+
if (this.sortKeys) {
|
|
640
|
+
s.sort();
|
|
641
|
+
}
|
|
642
|
+
const i = this.ignoreUndefined ? this.countWithoutUndefined(e, s) : s.length;
|
|
643
|
+
if (i < 16) {
|
|
644
|
+
this.writeU8(128 + i);
|
|
645
|
+
} else if (i < 65536) {
|
|
646
|
+
this.writeU8(222);
|
|
647
|
+
this.writeU16(i);
|
|
648
|
+
} else if (i < 4294967296) {
|
|
649
|
+
this.writeU8(223);
|
|
650
|
+
this.writeU32(i);
|
|
651
|
+
} else {
|
|
652
|
+
throw new Error(`Too large map object: ${i}`);
|
|
653
|
+
}
|
|
654
|
+
for (const i of s) {
|
|
655
|
+
const s = e[i];
|
|
656
|
+
if (!(this.ignoreUndefined && s === undefined)) {
|
|
657
|
+
this.encodeString(i);
|
|
658
|
+
this.doEncode(s, t + 1);
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
encodeExtension(e) {
|
|
663
|
+
if (typeof e.data === "function") {
|
|
664
|
+
const t = e.data(this.pos + 6);
|
|
665
|
+
const s = t.length;
|
|
666
|
+
if (s >= 4294967296) {
|
|
667
|
+
throw new Error(`Too large extension object: ${s}`);
|
|
668
|
+
}
|
|
669
|
+
this.writeU8(201);
|
|
670
|
+
this.writeU32(s);
|
|
671
|
+
this.writeI8(e.type);
|
|
672
|
+
this.writeU8a(t);
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
const t = e.data.length;
|
|
676
|
+
if (t === 1) {
|
|
677
|
+
this.writeU8(212);
|
|
678
|
+
} else if (t === 2) {
|
|
679
|
+
this.writeU8(213);
|
|
680
|
+
} else if (t === 4) {
|
|
681
|
+
this.writeU8(214);
|
|
682
|
+
} else if (t === 8) {
|
|
683
|
+
this.writeU8(215);
|
|
684
|
+
} else if (t === 16) {
|
|
685
|
+
this.writeU8(216);
|
|
686
|
+
} else if (t < 256) {
|
|
687
|
+
this.writeU8(199);
|
|
688
|
+
this.writeU8(t);
|
|
689
|
+
} else if (t < 65536) {
|
|
690
|
+
this.writeU8(200);
|
|
691
|
+
this.writeU16(t);
|
|
692
|
+
} else if (t < 4294967296) {
|
|
693
|
+
this.writeU8(201);
|
|
694
|
+
this.writeU32(t);
|
|
695
|
+
} else {
|
|
696
|
+
throw new Error(`Too large extension object: ${t}`);
|
|
697
|
+
}
|
|
698
|
+
this.writeI8(e.type);
|
|
699
|
+
this.writeU8a(e.data);
|
|
700
|
+
}
|
|
701
|
+
writeU8(e) {
|
|
702
|
+
this.ensureBufferSizeToWrite(1);
|
|
703
|
+
this.view.setUint8(this.pos, e);
|
|
704
|
+
this.pos++;
|
|
705
|
+
}
|
|
706
|
+
writeU8a(e) {
|
|
707
|
+
const t = e.length;
|
|
708
|
+
this.ensureBufferSizeToWrite(t);
|
|
709
|
+
this.bytes.set(e, this.pos);
|
|
710
|
+
this.pos += t;
|
|
711
|
+
}
|
|
712
|
+
writeI8(e) {
|
|
713
|
+
this.ensureBufferSizeToWrite(1);
|
|
714
|
+
this.view.setInt8(this.pos, e);
|
|
715
|
+
this.pos++;
|
|
716
|
+
}
|
|
717
|
+
writeU16(e) {
|
|
718
|
+
this.ensureBufferSizeToWrite(2);
|
|
719
|
+
this.view.setUint16(this.pos, e);
|
|
720
|
+
this.pos += 2;
|
|
721
|
+
}
|
|
722
|
+
writeI16(e) {
|
|
723
|
+
this.ensureBufferSizeToWrite(2);
|
|
724
|
+
this.view.setInt16(this.pos, e);
|
|
725
|
+
this.pos += 2;
|
|
726
|
+
}
|
|
727
|
+
writeU32(e) {
|
|
728
|
+
this.ensureBufferSizeToWrite(4);
|
|
729
|
+
this.view.setUint32(this.pos, e);
|
|
730
|
+
this.pos += 4;
|
|
731
|
+
}
|
|
732
|
+
writeI32(e) {
|
|
733
|
+
this.ensureBufferSizeToWrite(4);
|
|
734
|
+
this.view.setInt32(this.pos, e);
|
|
735
|
+
this.pos += 4;
|
|
736
|
+
}
|
|
737
|
+
writeF32(e) {
|
|
738
|
+
this.ensureBufferSizeToWrite(4);
|
|
739
|
+
this.view.setFloat32(this.pos, e);
|
|
740
|
+
this.pos += 4;
|
|
741
|
+
}
|
|
742
|
+
writeF64(e) {
|
|
743
|
+
this.ensureBufferSizeToWrite(8);
|
|
744
|
+
this.view.setFloat64(this.pos, e);
|
|
745
|
+
this.pos += 8;
|
|
746
|
+
}
|
|
747
|
+
writeU64(e) {
|
|
748
|
+
this.ensureBufferSizeToWrite(8);
|
|
749
|
+
u(this.view, this.pos, e);
|
|
750
|
+
this.pos += 8;
|
|
751
|
+
}
|
|
752
|
+
writeI64(e) {
|
|
753
|
+
this.ensureBufferSizeToWrite(8);
|
|
754
|
+
w(this.view, this.pos, e);
|
|
755
|
+
this.pos += 8;
|
|
756
|
+
}
|
|
757
|
+
writeBigUint64(e) {
|
|
758
|
+
this.ensureBufferSizeToWrite(8);
|
|
759
|
+
this.view.setBigUint64(this.pos, e);
|
|
760
|
+
this.pos += 8;
|
|
761
|
+
}
|
|
762
|
+
writeBigInt64(e) {
|
|
763
|
+
this.ensureBufferSizeToWrite(8);
|
|
764
|
+
this.view.setBigInt64(this.pos, e);
|
|
765
|
+
this.pos += 8;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
function v(e, t) {
|
|
770
|
+
const s = new Encoder(t);
|
|
771
|
+
return s.encodeSharedRef(e);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
function z(e) {
|
|
775
|
+
return `${e < 0 ? "-" : ""}0x${Math.abs(e).toString(16).padStart(2, "0")}`;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
const C = 16;
|
|
779
|
+
|
|
780
|
+
const T = 16;
|
|
781
|
+
|
|
782
|
+
class CachedKeyDecoder {
|
|
783
|
+
hit=0;
|
|
784
|
+
miss=0;
|
|
785
|
+
caches;
|
|
786
|
+
maxKeyLength;
|
|
787
|
+
maxLengthPerKey;
|
|
788
|
+
constructor(e = C, t = T) {
|
|
789
|
+
this.maxKeyLength = e;
|
|
790
|
+
this.maxLengthPerKey = t;
|
|
791
|
+
this.caches = [];
|
|
792
|
+
for (let e = 0; e < this.maxKeyLength; e++) {
|
|
793
|
+
this.caches.push([]);
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
canBeCached(e) {
|
|
797
|
+
return e > 0 && e <= this.maxKeyLength;
|
|
798
|
+
}
|
|
799
|
+
find(e, t, s) {
|
|
800
|
+
const i = this.caches[s - 1];
|
|
801
|
+
e: for (const n of i) {
|
|
802
|
+
const i = n.bytes;
|
|
803
|
+
for (let n = 0; n < s; n++) {
|
|
804
|
+
if (i[n] !== e[t + n]) {
|
|
805
|
+
continue e;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
return n.str;
|
|
809
|
+
}
|
|
810
|
+
return null;
|
|
811
|
+
}
|
|
812
|
+
store(e, t) {
|
|
813
|
+
const s = this.caches[e.length - 1];
|
|
814
|
+
const i = {
|
|
815
|
+
bytes: e,
|
|
816
|
+
str: t
|
|
817
|
+
};
|
|
818
|
+
if (s.length >= this.maxLengthPerKey) {
|
|
819
|
+
s[Math.random() * s.length | 0] = i;
|
|
820
|
+
} else {
|
|
821
|
+
s.push(i);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
decode(e, t, s) {
|
|
825
|
+
const i = this.find(e, t, s);
|
|
826
|
+
if (i != null) {
|
|
827
|
+
this.hit++;
|
|
828
|
+
return i;
|
|
829
|
+
}
|
|
830
|
+
this.miss++;
|
|
831
|
+
const n = h(e, t, s);
|
|
832
|
+
const r = Uint8Array.prototype.slice.call(e, t, t + s);
|
|
833
|
+
this.store(r, n);
|
|
834
|
+
return n;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
const M = "array";
|
|
839
|
+
|
|
840
|
+
const F = "map_key";
|
|
841
|
+
|
|
842
|
+
const P = "map_value";
|
|
843
|
+
|
|
844
|
+
const $ = e => {
|
|
845
|
+
if (typeof e === "string" || typeof e === "number") {
|
|
846
|
+
return e;
|
|
847
|
+
}
|
|
848
|
+
throw new DecodeError("The type of key must be string or number but " + typeof e);
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
class StackPool {
|
|
852
|
+
stack=[];
|
|
853
|
+
stackHeadPosition=-1;
|
|
854
|
+
get length() {
|
|
855
|
+
return this.stackHeadPosition + 1;
|
|
856
|
+
}
|
|
857
|
+
top() {
|
|
858
|
+
return this.stack[this.stackHeadPosition];
|
|
859
|
+
}
|
|
860
|
+
pushArrayState(e) {
|
|
861
|
+
const t = this.getUninitializedStateFromPool();
|
|
862
|
+
t.type = M;
|
|
863
|
+
t.position = 0;
|
|
864
|
+
t.size = e;
|
|
865
|
+
t.array = new Array(e);
|
|
866
|
+
}
|
|
867
|
+
pushMapState(e) {
|
|
868
|
+
const t = this.getUninitializedStateFromPool();
|
|
869
|
+
t.type = F;
|
|
870
|
+
t.readCount = 0;
|
|
871
|
+
t.size = e;
|
|
872
|
+
t.map = {};
|
|
873
|
+
}
|
|
874
|
+
getUninitializedStateFromPool() {
|
|
875
|
+
this.stackHeadPosition++;
|
|
876
|
+
if (this.stackHeadPosition === this.stack.length) {
|
|
877
|
+
const e = {
|
|
878
|
+
type: undefined,
|
|
879
|
+
size: 0,
|
|
880
|
+
array: undefined,
|
|
881
|
+
position: 0,
|
|
882
|
+
readCount: 0,
|
|
883
|
+
map: undefined,
|
|
884
|
+
key: null
|
|
885
|
+
};
|
|
886
|
+
this.stack.push(e);
|
|
887
|
+
}
|
|
888
|
+
return this.stack[this.stackHeadPosition];
|
|
889
|
+
}
|
|
890
|
+
release(e) {
|
|
891
|
+
const t = this.stack[this.stackHeadPosition];
|
|
892
|
+
if (t !== e) {
|
|
893
|
+
throw new Error("Invalid stack state. Released state is not on top of the stack.");
|
|
894
|
+
}
|
|
895
|
+
if (e.type === M) {
|
|
896
|
+
const t = e;
|
|
897
|
+
t.size = 0;
|
|
898
|
+
t.array = undefined;
|
|
899
|
+
t.position = 0;
|
|
900
|
+
t.type = undefined;
|
|
901
|
+
}
|
|
902
|
+
if (e.type === F || e.type === P) {
|
|
903
|
+
const t = e;
|
|
904
|
+
t.size = 0;
|
|
905
|
+
t.map = undefined;
|
|
906
|
+
t.readCount = 0;
|
|
907
|
+
t.type = undefined;
|
|
908
|
+
}
|
|
909
|
+
this.stackHeadPosition--;
|
|
910
|
+
}
|
|
911
|
+
reset() {
|
|
912
|
+
this.stack.length = 0;
|
|
913
|
+
this.stackHeadPosition = -1;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
const K = -1;
|
|
918
|
+
|
|
919
|
+
const R = new DataView(new ArrayBuffer(0));
|
|
920
|
+
|
|
921
|
+
const W = new Uint8Array(R.buffer);
|
|
922
|
+
|
|
923
|
+
try {
|
|
924
|
+
R.getInt8(0);
|
|
925
|
+
} catch (e) {
|
|
926
|
+
if (!(e instanceof RangeError)) {
|
|
927
|
+
throw new Error("This module is not supported in the current JavaScript engine because DataView does not throw RangeError on out-of-bounds access");
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
const j = new RangeError("Insufficient data");
|
|
932
|
+
|
|
933
|
+
const H = new CachedKeyDecoder;
|
|
934
|
+
|
|
935
|
+
class Decoder {
|
|
936
|
+
extensionCodec;
|
|
937
|
+
context;
|
|
938
|
+
useBigInt64;
|
|
939
|
+
rawStrings;
|
|
940
|
+
maxStrLength;
|
|
941
|
+
maxBinLength;
|
|
942
|
+
maxArrayLength;
|
|
943
|
+
maxMapLength;
|
|
944
|
+
maxExtLength;
|
|
945
|
+
keyDecoder;
|
|
946
|
+
mapKeyConverter;
|
|
947
|
+
totalPos=0;
|
|
948
|
+
pos=0;
|
|
949
|
+
view=R;
|
|
950
|
+
bytes=W;
|
|
951
|
+
headByte=K;
|
|
952
|
+
stack=new StackPool;
|
|
953
|
+
entered=false;
|
|
954
|
+
constructor(e) {
|
|
955
|
+
this.extensionCodec = e?.extensionCodec ?? ExtensionCodec.defaultCodec;
|
|
956
|
+
this.context = e?.context;
|
|
957
|
+
this.useBigInt64 = e?.useBigInt64 ?? false;
|
|
958
|
+
this.rawStrings = e?.rawStrings ?? false;
|
|
959
|
+
this.maxStrLength = e?.maxStrLength ?? l;
|
|
960
|
+
this.maxBinLength = e?.maxBinLength ?? l;
|
|
961
|
+
this.maxArrayLength = e?.maxArrayLength ?? l;
|
|
962
|
+
this.maxMapLength = e?.maxMapLength ?? l;
|
|
963
|
+
this.maxExtLength = e?.maxExtLength ?? l;
|
|
964
|
+
this.keyDecoder = e?.keyDecoder !== undefined ? e.keyDecoder : H;
|
|
965
|
+
this.mapKeyConverter = e?.mapKeyConverter ?? $;
|
|
966
|
+
}
|
|
967
|
+
clone() {
|
|
968
|
+
return new Decoder({
|
|
969
|
+
extensionCodec: this.extensionCodec,
|
|
970
|
+
context: this.context,
|
|
971
|
+
useBigInt64: this.useBigInt64,
|
|
972
|
+
rawStrings: this.rawStrings,
|
|
973
|
+
maxStrLength: this.maxStrLength,
|
|
974
|
+
maxBinLength: this.maxBinLength,
|
|
975
|
+
maxArrayLength: this.maxArrayLength,
|
|
976
|
+
maxMapLength: this.maxMapLength,
|
|
977
|
+
maxExtLength: this.maxExtLength,
|
|
978
|
+
keyDecoder: this.keyDecoder
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
reinitializeState() {
|
|
982
|
+
this.totalPos = 0;
|
|
983
|
+
this.headByte = K;
|
|
984
|
+
this.stack.reset();
|
|
985
|
+
}
|
|
986
|
+
setBuffer(e) {
|
|
987
|
+
const t = k(e);
|
|
988
|
+
this.bytes = t;
|
|
989
|
+
this.view = new DataView(t.buffer, t.byteOffset, t.byteLength);
|
|
990
|
+
this.pos = 0;
|
|
991
|
+
}
|
|
992
|
+
appendBuffer(e) {
|
|
993
|
+
if (this.headByte === K && !this.hasRemaining(1)) {
|
|
994
|
+
this.setBuffer(e);
|
|
995
|
+
} else {
|
|
996
|
+
const t = this.bytes.subarray(this.pos);
|
|
997
|
+
const s = k(e);
|
|
998
|
+
const i = new Uint8Array(t.length + s.length);
|
|
999
|
+
i.set(t);
|
|
1000
|
+
i.set(s, t.length);
|
|
1001
|
+
this.setBuffer(i);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
hasRemaining(e) {
|
|
1005
|
+
return this.view.byteLength - this.pos >= e;
|
|
1006
|
+
}
|
|
1007
|
+
createExtraByteError(e) {
|
|
1008
|
+
const {view: t, pos: s} = this;
|
|
1009
|
+
return new RangeError(`Extra ${t.byteLength - s} of ${t.byteLength} byte(s) found at buffer[${e}]`);
|
|
1010
|
+
}
|
|
1011
|
+
decode(e) {
|
|
1012
|
+
if (this.entered) {
|
|
1013
|
+
const t = this.clone();
|
|
1014
|
+
return t.decode(e);
|
|
1015
|
+
}
|
|
1016
|
+
try {
|
|
1017
|
+
this.entered = true;
|
|
1018
|
+
this.reinitializeState();
|
|
1019
|
+
this.setBuffer(e);
|
|
1020
|
+
const t = this.doDecodeSync();
|
|
1021
|
+
if (this.hasRemaining(1)) {
|
|
1022
|
+
throw this.createExtraByteError(this.pos);
|
|
1023
|
+
}
|
|
1024
|
+
return t;
|
|
1025
|
+
} finally {
|
|
1026
|
+
this.entered = false;
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
* decodeMulti(e) {
|
|
1030
|
+
if (this.entered) {
|
|
1031
|
+
const t = this.clone();
|
|
1032
|
+
yield* t.decodeMulti(e);
|
|
1033
|
+
return;
|
|
1034
|
+
}
|
|
1035
|
+
try {
|
|
1036
|
+
this.entered = true;
|
|
1037
|
+
this.reinitializeState();
|
|
1038
|
+
this.setBuffer(e);
|
|
1039
|
+
while (this.hasRemaining(1)) {
|
|
1040
|
+
yield this.doDecodeSync();
|
|
1041
|
+
}
|
|
1042
|
+
} finally {
|
|
1043
|
+
this.entered = false;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
async decodeAsync(e) {
|
|
1047
|
+
if (this.entered) {
|
|
1048
|
+
const t = this.clone();
|
|
1049
|
+
return t.decodeAsync(e);
|
|
1050
|
+
}
|
|
1051
|
+
try {
|
|
1052
|
+
this.entered = true;
|
|
1053
|
+
let t = false;
|
|
1054
|
+
let s;
|
|
1055
|
+
for await (const i of e) {
|
|
1056
|
+
if (t) {
|
|
1057
|
+
this.entered = false;
|
|
1058
|
+
throw this.createExtraByteError(this.totalPos);
|
|
1059
|
+
}
|
|
1060
|
+
this.appendBuffer(i);
|
|
1061
|
+
try {
|
|
1062
|
+
s = this.doDecodeSync();
|
|
1063
|
+
t = true;
|
|
1064
|
+
} catch (e) {
|
|
1065
|
+
if (!(e instanceof RangeError)) {
|
|
1066
|
+
throw e;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
this.totalPos += this.pos;
|
|
1070
|
+
}
|
|
1071
|
+
if (t) {
|
|
1072
|
+
if (this.hasRemaining(1)) {
|
|
1073
|
+
throw this.createExtraByteError(this.totalPos);
|
|
1074
|
+
}
|
|
1075
|
+
return s;
|
|
1076
|
+
}
|
|
1077
|
+
const {headByte: i, pos: n, totalPos: r} = this;
|
|
1078
|
+
throw new RangeError(`Insufficient data in parsing ${z(i)} at ${r} (${n} in the current buffer)`);
|
|
1079
|
+
} finally {
|
|
1080
|
+
this.entered = false;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
decodeArrayStream(e) {
|
|
1084
|
+
return this.decodeMultiAsync(e, true);
|
|
1085
|
+
}
|
|
1086
|
+
decodeStream(e) {
|
|
1087
|
+
return this.decodeMultiAsync(e, false);
|
|
1088
|
+
}
|
|
1089
|
+
async* decodeMultiAsync(e, t) {
|
|
1090
|
+
if (this.entered) {
|
|
1091
|
+
const s = this.clone();
|
|
1092
|
+
yield* s.decodeMultiAsync(e, t);
|
|
1093
|
+
return;
|
|
1094
|
+
}
|
|
1095
|
+
try {
|
|
1096
|
+
this.entered = true;
|
|
1097
|
+
let s = t;
|
|
1098
|
+
let i = -1;
|
|
1099
|
+
for await (const n of e) {
|
|
1100
|
+
if (t && i === 0) {
|
|
1101
|
+
throw this.createExtraByteError(this.totalPos);
|
|
1102
|
+
}
|
|
1103
|
+
this.appendBuffer(n);
|
|
1104
|
+
if (s) {
|
|
1105
|
+
i = this.readArraySize();
|
|
1106
|
+
s = false;
|
|
1107
|
+
this.complete();
|
|
1108
|
+
}
|
|
1109
|
+
try {
|
|
1110
|
+
while (true) {
|
|
1111
|
+
yield this.doDecodeSync();
|
|
1112
|
+
if (--i === 0) {
|
|
1113
|
+
break;
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
} catch (e) {
|
|
1117
|
+
if (!(e instanceof RangeError)) {
|
|
1118
|
+
throw e;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
this.totalPos += this.pos;
|
|
1122
|
+
}
|
|
1123
|
+
} finally {
|
|
1124
|
+
this.entered = false;
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
doDecodeSync() {
|
|
1128
|
+
e: while (true) {
|
|
1129
|
+
const e = this.readHeadByte();
|
|
1130
|
+
let t;
|
|
1131
|
+
if (e >= 224) {
|
|
1132
|
+
t = e - 256;
|
|
1133
|
+
} else if (e < 192) {
|
|
1134
|
+
if (e < 128) {
|
|
1135
|
+
t = e;
|
|
1136
|
+
} else if (e < 144) {
|
|
1137
|
+
const s = e - 128;
|
|
1138
|
+
if (s !== 0) {
|
|
1139
|
+
this.pushMapState(s);
|
|
1140
|
+
this.complete();
|
|
1141
|
+
continue e;
|
|
1142
|
+
} else {
|
|
1143
|
+
t = {};
|
|
1144
|
+
}
|
|
1145
|
+
} else if (e < 160) {
|
|
1146
|
+
const s = e - 144;
|
|
1147
|
+
if (s !== 0) {
|
|
1148
|
+
this.pushArrayState(s);
|
|
1149
|
+
this.complete();
|
|
1150
|
+
continue e;
|
|
1151
|
+
} else {
|
|
1152
|
+
t = [];
|
|
1153
|
+
}
|
|
1154
|
+
} else {
|
|
1155
|
+
const s = e - 160;
|
|
1156
|
+
t = this.decodeString(s, 0);
|
|
1157
|
+
}
|
|
1158
|
+
} else if (e === 192) {
|
|
1159
|
+
t = null;
|
|
1160
|
+
} else if (e === 194) {
|
|
1161
|
+
t = false;
|
|
1162
|
+
} else if (e === 195) {
|
|
1163
|
+
t = true;
|
|
1164
|
+
} else if (e === 202) {
|
|
1165
|
+
t = this.readF32();
|
|
1166
|
+
} else if (e === 203) {
|
|
1167
|
+
t = this.readF64();
|
|
1168
|
+
} else if (e === 204) {
|
|
1169
|
+
t = this.readU8();
|
|
1170
|
+
} else if (e === 205) {
|
|
1171
|
+
t = this.readU16();
|
|
1172
|
+
} else if (e === 206) {
|
|
1173
|
+
t = this.readU32();
|
|
1174
|
+
} else if (e === 207) {
|
|
1175
|
+
if (this.useBigInt64) {
|
|
1176
|
+
t = this.readU64AsBigInt();
|
|
1177
|
+
} else {
|
|
1178
|
+
t = this.readU64();
|
|
1179
|
+
}
|
|
1180
|
+
} else if (e === 208) {
|
|
1181
|
+
t = this.readI8();
|
|
1182
|
+
} else if (e === 209) {
|
|
1183
|
+
t = this.readI16();
|
|
1184
|
+
} else if (e === 210) {
|
|
1185
|
+
t = this.readI32();
|
|
1186
|
+
} else if (e === 211) {
|
|
1187
|
+
if (this.useBigInt64) {
|
|
1188
|
+
t = this.readI64AsBigInt();
|
|
1189
|
+
} else {
|
|
1190
|
+
t = this.readI64();
|
|
1191
|
+
}
|
|
1192
|
+
} else if (e === 217) {
|
|
1193
|
+
const e = this.lookU8();
|
|
1194
|
+
t = this.decodeString(e, 1);
|
|
1195
|
+
} else if (e === 218) {
|
|
1196
|
+
const e = this.lookU16();
|
|
1197
|
+
t = this.decodeString(e, 2);
|
|
1198
|
+
} else if (e === 219) {
|
|
1199
|
+
const e = this.lookU32();
|
|
1200
|
+
t = this.decodeString(e, 4);
|
|
1201
|
+
} else if (e === 220) {
|
|
1202
|
+
const e = this.readU16();
|
|
1203
|
+
if (e !== 0) {
|
|
1204
|
+
this.pushArrayState(e);
|
|
1205
|
+
this.complete();
|
|
1206
|
+
continue e;
|
|
1207
|
+
} else {
|
|
1208
|
+
t = [];
|
|
1209
|
+
}
|
|
1210
|
+
} else if (e === 221) {
|
|
1211
|
+
const e = this.readU32();
|
|
1212
|
+
if (e !== 0) {
|
|
1213
|
+
this.pushArrayState(e);
|
|
1214
|
+
this.complete();
|
|
1215
|
+
continue e;
|
|
1216
|
+
} else {
|
|
1217
|
+
t = [];
|
|
1218
|
+
}
|
|
1219
|
+
} else if (e === 222) {
|
|
1220
|
+
const e = this.readU16();
|
|
1221
|
+
if (e !== 0) {
|
|
1222
|
+
this.pushMapState(e);
|
|
1223
|
+
this.complete();
|
|
1224
|
+
continue e;
|
|
1225
|
+
} else {
|
|
1226
|
+
t = {};
|
|
1227
|
+
}
|
|
1228
|
+
} else if (e === 223) {
|
|
1229
|
+
const e = this.readU32();
|
|
1230
|
+
if (e !== 0) {
|
|
1231
|
+
this.pushMapState(e);
|
|
1232
|
+
this.complete();
|
|
1233
|
+
continue e;
|
|
1234
|
+
} else {
|
|
1235
|
+
t = {};
|
|
1236
|
+
}
|
|
1237
|
+
} else if (e === 196) {
|
|
1238
|
+
const e = this.lookU8();
|
|
1239
|
+
t = this.decodeBinary(e, 1);
|
|
1240
|
+
} else if (e === 197) {
|
|
1241
|
+
const e = this.lookU16();
|
|
1242
|
+
t = this.decodeBinary(e, 2);
|
|
1243
|
+
} else if (e === 198) {
|
|
1244
|
+
const e = this.lookU32();
|
|
1245
|
+
t = this.decodeBinary(e, 4);
|
|
1246
|
+
} else if (e === 212) {
|
|
1247
|
+
t = this.decodeExtension(1, 0);
|
|
1248
|
+
} else if (e === 213) {
|
|
1249
|
+
t = this.decodeExtension(2, 0);
|
|
1250
|
+
} else if (e === 214) {
|
|
1251
|
+
t = this.decodeExtension(4, 0);
|
|
1252
|
+
} else if (e === 215) {
|
|
1253
|
+
t = this.decodeExtension(8, 0);
|
|
1254
|
+
} else if (e === 216) {
|
|
1255
|
+
t = this.decodeExtension(16, 0);
|
|
1256
|
+
} else if (e === 199) {
|
|
1257
|
+
const e = this.lookU8();
|
|
1258
|
+
t = this.decodeExtension(e, 1);
|
|
1259
|
+
} else if (e === 200) {
|
|
1260
|
+
const e = this.lookU16();
|
|
1261
|
+
t = this.decodeExtension(e, 2);
|
|
1262
|
+
} else if (e === 201) {
|
|
1263
|
+
const e = this.lookU32();
|
|
1264
|
+
t = this.decodeExtension(e, 4);
|
|
1265
|
+
} else {
|
|
1266
|
+
throw new DecodeError(`Unrecognized type byte: ${z(e)}`);
|
|
1267
|
+
}
|
|
1268
|
+
this.complete();
|
|
1269
|
+
const s = this.stack;
|
|
1270
|
+
while (s.length > 0) {
|
|
1271
|
+
const e = s.top();
|
|
1272
|
+
if (e.type === M) {
|
|
1273
|
+
e.array[e.position] = t;
|
|
1274
|
+
e.position++;
|
|
1275
|
+
if (e.position === e.size) {
|
|
1276
|
+
t = e.array;
|
|
1277
|
+
s.release(e);
|
|
1278
|
+
} else {
|
|
1279
|
+
continue e;
|
|
1280
|
+
}
|
|
1281
|
+
} else if (e.type === F) {
|
|
1282
|
+
if (t === "__proto__") {
|
|
1283
|
+
throw new DecodeError("The key __proto__ is not allowed");
|
|
1284
|
+
}
|
|
1285
|
+
e.key = this.mapKeyConverter(t);
|
|
1286
|
+
e.type = P;
|
|
1287
|
+
continue e;
|
|
1288
|
+
} else {
|
|
1289
|
+
e.map[e.key] = t;
|
|
1290
|
+
e.readCount++;
|
|
1291
|
+
if (e.readCount === e.size) {
|
|
1292
|
+
t = e.map;
|
|
1293
|
+
s.release(e);
|
|
1294
|
+
} else {
|
|
1295
|
+
e.key = null;
|
|
1296
|
+
e.type = F;
|
|
1297
|
+
continue e;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
return t;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
readHeadByte() {
|
|
1305
|
+
if (this.headByte === K) {
|
|
1306
|
+
this.headByte = this.readU8();
|
|
1307
|
+
}
|
|
1308
|
+
return this.headByte;
|
|
1309
|
+
}
|
|
1310
|
+
complete() {
|
|
1311
|
+
this.headByte = K;
|
|
1312
|
+
}
|
|
1313
|
+
readArraySize() {
|
|
1314
|
+
const e = this.readHeadByte();
|
|
1315
|
+
switch (e) {
|
|
1316
|
+
case 220:
|
|
1317
|
+
return this.readU16();
|
|
1318
|
+
|
|
1319
|
+
case 221:
|
|
1320
|
+
return this.readU32();
|
|
1321
|
+
|
|
1322
|
+
default:
|
|
1323
|
+
{
|
|
1324
|
+
if (e < 160) {
|
|
1325
|
+
return e - 144;
|
|
1326
|
+
} else {
|
|
1327
|
+
throw new DecodeError(`Unrecognized array type byte: ${z(e)}`);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
pushMapState(e) {
|
|
1333
|
+
if (e > this.maxMapLength) {
|
|
1334
|
+
throw new DecodeError(`Max length exceeded: map length (${e}) > maxMapLengthLength (${this.maxMapLength})`);
|
|
1335
|
+
}
|
|
1336
|
+
this.stack.pushMapState(e);
|
|
1337
|
+
}
|
|
1338
|
+
pushArrayState(e) {
|
|
1339
|
+
if (e > this.maxArrayLength) {
|
|
1340
|
+
throw new DecodeError(`Max length exceeded: array length (${e}) > maxArrayLength (${this.maxArrayLength})`);
|
|
1341
|
+
}
|
|
1342
|
+
this.stack.pushArrayState(e);
|
|
1343
|
+
}
|
|
1344
|
+
decodeString(e, t) {
|
|
1345
|
+
if (!this.rawStrings || this.stateIsMapKey()) {
|
|
1346
|
+
return this.decodeUtf8String(e, t);
|
|
1347
|
+
}
|
|
1348
|
+
return this.decodeBinary(e, t);
|
|
1349
|
+
}
|
|
1350
|
+
decodeUtf8String(e, t) {
|
|
1351
|
+
if (e > this.maxStrLength) {
|
|
1352
|
+
throw new DecodeError(`Max length exceeded: UTF-8 byte length (${e}) > maxStrLength (${this.maxStrLength})`);
|
|
1353
|
+
}
|
|
1354
|
+
if (this.bytes.byteLength < this.pos + t + e) {
|
|
1355
|
+
throw j;
|
|
1356
|
+
}
|
|
1357
|
+
const s = this.pos + t;
|
|
1358
|
+
let i;
|
|
1359
|
+
if (this.stateIsMapKey() && this.keyDecoder?.canBeCached(e)) {
|
|
1360
|
+
i = this.keyDecoder.decode(this.bytes, s, e);
|
|
1361
|
+
} else {
|
|
1362
|
+
i = d(this.bytes, s, e);
|
|
1363
|
+
}
|
|
1364
|
+
this.pos += t + e;
|
|
1365
|
+
return i;
|
|
1366
|
+
}
|
|
1367
|
+
stateIsMapKey() {
|
|
1368
|
+
if (this.stack.length > 0) {
|
|
1369
|
+
const e = this.stack.top();
|
|
1370
|
+
return e.type === F;
|
|
1371
|
+
}
|
|
1372
|
+
return false;
|
|
1373
|
+
}
|
|
1374
|
+
decodeBinary(e, t) {
|
|
1375
|
+
if (e > this.maxBinLength) {
|
|
1376
|
+
throw new DecodeError(`Max length exceeded: bin length (${e}) > maxBinLength (${this.maxBinLength})`);
|
|
1377
|
+
}
|
|
1378
|
+
if (!this.hasRemaining(e + t)) {
|
|
1379
|
+
throw j;
|
|
1380
|
+
}
|
|
1381
|
+
const s = this.pos + t;
|
|
1382
|
+
const i = this.bytes.subarray(s, s + e);
|
|
1383
|
+
this.pos += t + e;
|
|
1384
|
+
return i;
|
|
1385
|
+
}
|
|
1386
|
+
decodeExtension(e, t) {
|
|
1387
|
+
if (e > this.maxExtLength) {
|
|
1388
|
+
throw new DecodeError(`Max length exceeded: ext length (${e}) > maxExtLength (${this.maxExtLength})`);
|
|
1389
|
+
}
|
|
1390
|
+
const s = this.view.getInt8(this.pos + t);
|
|
1391
|
+
const i = this.decodeBinary(e, t + 1);
|
|
1392
|
+
return this.extensionCodec.decode(i, s, this.context);
|
|
1393
|
+
}
|
|
1394
|
+
lookU8() {
|
|
1395
|
+
return this.view.getUint8(this.pos);
|
|
1396
|
+
}
|
|
1397
|
+
lookU16() {
|
|
1398
|
+
return this.view.getUint16(this.pos);
|
|
1399
|
+
}
|
|
1400
|
+
lookU32() {
|
|
1401
|
+
return this.view.getUint32(this.pos);
|
|
1402
|
+
}
|
|
1403
|
+
readU8() {
|
|
1404
|
+
const e = this.view.getUint8(this.pos);
|
|
1405
|
+
this.pos++;
|
|
1406
|
+
return e;
|
|
1407
|
+
}
|
|
1408
|
+
readI8() {
|
|
1409
|
+
const e = this.view.getInt8(this.pos);
|
|
1410
|
+
this.pos++;
|
|
1411
|
+
return e;
|
|
1412
|
+
}
|
|
1413
|
+
readU16() {
|
|
1414
|
+
const e = this.view.getUint16(this.pos);
|
|
1415
|
+
this.pos += 2;
|
|
1416
|
+
return e;
|
|
1417
|
+
}
|
|
1418
|
+
readI16() {
|
|
1419
|
+
const e = this.view.getInt16(this.pos);
|
|
1420
|
+
this.pos += 2;
|
|
1421
|
+
return e;
|
|
1422
|
+
}
|
|
1423
|
+
readU32() {
|
|
1424
|
+
const e = this.view.getUint32(this.pos);
|
|
1425
|
+
this.pos += 4;
|
|
1426
|
+
return e;
|
|
1427
|
+
}
|
|
1428
|
+
readI32() {
|
|
1429
|
+
const e = this.view.getInt32(this.pos);
|
|
1430
|
+
this.pos += 4;
|
|
1431
|
+
return e;
|
|
1432
|
+
}
|
|
1433
|
+
readU64() {
|
|
1434
|
+
const e = y(this.view, this.pos);
|
|
1435
|
+
this.pos += 8;
|
|
1436
|
+
return e;
|
|
1437
|
+
}
|
|
1438
|
+
readI64() {
|
|
1439
|
+
const e = g(this.view, this.pos);
|
|
1440
|
+
this.pos += 8;
|
|
1441
|
+
return e;
|
|
1442
|
+
}
|
|
1443
|
+
readU64AsBigInt() {
|
|
1444
|
+
const e = this.view.getBigUint64(this.pos);
|
|
1445
|
+
this.pos += 8;
|
|
1446
|
+
return e;
|
|
1447
|
+
}
|
|
1448
|
+
readI64AsBigInt() {
|
|
1449
|
+
const e = this.view.getBigInt64(this.pos);
|
|
1450
|
+
this.pos += 8;
|
|
1451
|
+
return e;
|
|
1452
|
+
}
|
|
1453
|
+
readF32() {
|
|
1454
|
+
const e = this.view.getFloat32(this.pos);
|
|
1455
|
+
this.pos += 4;
|
|
1456
|
+
return e;
|
|
1457
|
+
}
|
|
1458
|
+
readF64() {
|
|
1459
|
+
const e = this.view.getFloat64(this.pos);
|
|
1460
|
+
this.pos += 8;
|
|
1461
|
+
return e;
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
function O(e, t) {
|
|
1466
|
+
const s = new Decoder(t);
|
|
1467
|
+
return s.decode(e);
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
class MessagePack {
|
|
1471
|
+
static encode(e) {
|
|
1472
|
+
return v(e, {
|
|
1473
|
+
useBigInt64: true
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
static decode(e) {
|
|
1477
|
+
return O(e, {
|
|
1478
|
+
useBigInt64: true
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
static stringify(e, t = "base64") {
|
|
1482
|
+
return Buffer.from(this.encode(e)).toString(t);
|
|
1483
|
+
}
|
|
1484
|
+
static parse(e, t = "base64") {
|
|
1485
|
+
return this.decode(Buffer.from(e, t));
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
exports.MessagePack = MessagePack;
|