lakutata 2.0.24 → 2.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (403) hide show
  1. package/com/database.cjs +16 -16
  2. package/com/database.mjs +16 -16
  3. package/com/docker.cjs +14 -14
  4. package/com/docker.mjs +14 -14
  5. package/com/entrypoint.cjs +9 -9
  6. package/com/entrypoint.mjs +9 -9
  7. package/com/logger.cjs +12 -12
  8. package/com/logger.mjs +12 -12
  9. package/decorator/asst.cjs +2 -2
  10. package/decorator/asst.mjs +2 -2
  11. package/decorator/ctrl.cjs +4 -4
  12. package/decorator/ctrl.mjs +4 -4
  13. package/decorator/di.cjs +3 -3
  14. package/decorator/di.mjs +3 -3
  15. package/decorator/dto.cjs +3 -3
  16. package/decorator/dto.mjs +3 -3
  17. package/decorator/orm.cjs +21 -21
  18. package/decorator/orm.d.ts +1 -1
  19. package/decorator/orm.mjs +21 -21
  20. package/helper.cjs +5 -5
  21. package/helper.mjs +5 -5
  22. package/lakutata.cjs +13 -13
  23. package/lakutata.mjs +13 -13
  24. package/orm.cjs +22 -22
  25. package/orm.d.ts +2 -2
  26. package/orm.mjs +34 -34
  27. package/package.json +6 -1
  28. package/provider/database.cjs +196 -0
  29. package/provider/database.d.ts +189 -0
  30. package/provider/database.mjs +183 -0
  31. package/src/components/Database.cjs +15 -15
  32. package/src/components/Database.mjs +15 -15
  33. package/src/components/Logger.cjs +12 -12
  34. package/src/components/Logger.mjs +12 -12
  35. package/src/components/docker/ConnectionOptionsBuilder.cjs +14 -14
  36. package/src/components/docker/ConnectionOptionsBuilder.mjs +14 -14
  37. package/src/components/docker/Docker.cjs +11 -11
  38. package/src/components/docker/Docker.mjs +11 -11
  39. package/src/components/docker/exceptions/DockerConnectionException.cjs +1 -1
  40. package/src/components/docker/exceptions/DockerConnectionException.mjs +1 -1
  41. package/src/components/docker/exceptions/DockerImageBuildException.cjs +1 -1
  42. package/src/components/docker/exceptions/DockerImageBuildException.mjs +1 -1
  43. package/src/components/docker/exceptions/DockerImageImportException.cjs +1 -1
  44. package/src/components/docker/exceptions/DockerImageImportException.mjs +1 -1
  45. package/src/components/docker/exceptions/DockerImageNotFoundException.cjs +1 -1
  46. package/src/components/docker/exceptions/DockerImageNotFoundException.mjs +1 -1
  47. package/src/components/docker/exceptions/DockerImagePullException.cjs +1 -1
  48. package/src/components/docker/exceptions/DockerImagePullException.mjs +1 -1
  49. package/src/components/docker/exceptions/DockerImagePushException.cjs +1 -1
  50. package/src/components/docker/exceptions/DockerImagePushException.mjs +1 -1
  51. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.cjs +1 -1
  52. package/src/components/docker/exceptions/DockerImageRepoTagNotFoundException.mjs +1 -1
  53. package/src/components/docker/exceptions/DockerNetworkNotFoundException.cjs +1 -1
  54. package/src/components/docker/exceptions/DockerNetworkNotFoundException.mjs +1 -1
  55. package/src/components/docker/lib/DockerContainer.cjs +14 -14
  56. package/src/components/docker/lib/DockerContainer.mjs +14 -14
  57. package/src/components/docker/lib/DockerContainerTTY.cjs +14 -14
  58. package/src/components/docker/lib/DockerContainerTTY.mjs +14 -14
  59. package/src/components/docker/lib/DockerImage.cjs +8 -8
  60. package/src/components/docker/lib/DockerImage.mjs +8 -8
  61. package/src/components/docker/options/DockerPruneOptions.cjs +3 -3
  62. package/src/components/docker/options/DockerPruneOptions.mjs +3 -3
  63. package/src/components/docker/options/auth/DockerAuthOptions.cjs +3 -3
  64. package/src/components/docker/options/auth/DockerAuthOptions.mjs +3 -3
  65. package/src/components/docker/options/container/ContainerCommitOptions.cjs +3 -3
  66. package/src/components/docker/options/container/ContainerCommitOptions.mjs +3 -3
  67. package/src/components/docker/options/container/ContainerCreateTTYOptions.cjs +3 -3
  68. package/src/components/docker/options/container/ContainerCreateTTYOptions.mjs +3 -3
  69. package/src/components/docker/options/container/ContainerExecOptions.cjs +3 -3
  70. package/src/components/docker/options/container/ContainerExecOptions.mjs +3 -3
  71. package/src/components/docker/options/container/ContainerExportDirectoryOptions.cjs +3 -3
  72. package/src/components/docker/options/container/ContainerExportDirectoryOptions.mjs +3 -3
  73. package/src/components/docker/options/container/ContainerKillOptions.cjs +3 -3
  74. package/src/components/docker/options/container/ContainerKillOptions.mjs +3 -3
  75. package/src/components/docker/options/container/ContainerLogsOptions.cjs +3 -3
  76. package/src/components/docker/options/container/ContainerLogsOptions.mjs +3 -3
  77. package/src/components/docker/options/container/ContainerRemoveOptions.cjs +3 -3
  78. package/src/components/docker/options/container/ContainerRemoveOptions.mjs +3 -3
  79. package/src/components/docker/options/container/ContainerSettingOptions.cjs +3 -3
  80. package/src/components/docker/options/container/ContainerSettingOptions.mjs +3 -3
  81. package/src/components/docker/options/container/ContainerStopOptions.cjs +3 -3
  82. package/src/components/docker/options/container/ContainerStopOptions.mjs +3 -3
  83. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.cjs +3 -3
  84. package/src/components/docker/options/container/ContainerTTYConsoleSizeOptions.mjs +3 -3
  85. package/src/components/docker/options/image/ImageBuildOptions.cjs +3 -3
  86. package/src/components/docker/options/image/ImageBuildOptions.mjs +3 -3
  87. package/src/components/docker/options/image/ImageExportOptions.cjs +3 -3
  88. package/src/components/docker/options/image/ImageExportOptions.mjs +3 -3
  89. package/src/components/docker/options/image/ImageImportOptions.cjs +3 -3
  90. package/src/components/docker/options/image/ImageImportOptions.mjs +3 -3
  91. package/src/components/docker/options/image/ImagePullOptions.cjs +3 -3
  92. package/src/components/docker/options/image/ImagePullOptions.mjs +3 -3
  93. package/src/components/docker/options/image/ImagePushOptions.cjs +3 -3
  94. package/src/components/docker/options/image/ImagePushOptions.mjs +3 -3
  95. package/src/components/docker/options/image/ImageRemoveOptions.cjs +3 -3
  96. package/src/components/docker/options/image/ImageRemoveOptions.mjs +3 -3
  97. package/src/components/docker/options/image/ImageTagOptions.cjs +3 -3
  98. package/src/components/docker/options/image/ImageTagOptions.mjs +3 -3
  99. package/src/components/docker/options/network/NetworkCreateOptions.cjs +3 -3
  100. package/src/components/docker/options/network/NetworkCreateOptions.mjs +3 -3
  101. package/src/components/entrypoint/Entrypoint.cjs +9 -9
  102. package/src/components/entrypoint/Entrypoint.mjs +9 -9
  103. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.cjs +1 -1
  104. package/src/components/entrypoint/exceptions/ControllerActionNotFoundException.mjs +1 -1
  105. package/src/components/entrypoint/lib/Controller.cjs +8 -8
  106. package/src/components/entrypoint/lib/Controller.mjs +8 -8
  107. package/src/constants/DIMetadataKey.cjs +2 -2
  108. package/src/constants/DIMetadataKey.mjs +2 -2
  109. package/src/constants/DTOMetadataKey.cjs +2 -2
  110. package/src/constants/DTOMetadataKey.mjs +2 -2
  111. package/src/decorators/asst/After.cjs +1 -1
  112. package/src/decorators/asst/After.mjs +1 -1
  113. package/src/decorators/asst/Before.cjs +1 -1
  114. package/src/decorators/asst/Before.mjs +1 -1
  115. package/src/decorators/ctrl/CLIAction.cjs +4 -4
  116. package/src/decorators/ctrl/CLIAction.mjs +4 -4
  117. package/src/decorators/ctrl/HTTPAction.cjs +4 -4
  118. package/src/decorators/ctrl/HTTPAction.mjs +4 -4
  119. package/src/decorators/ctrl/ServiceAction.cjs +4 -4
  120. package/src/decorators/ctrl/ServiceAction.mjs +4 -4
  121. package/src/decorators/di/Autoload.cjs +2 -2
  122. package/src/decorators/di/Autoload.mjs +2 -2
  123. package/src/decorators/di/Configurable.cjs +3 -3
  124. package/src/decorators/di/Configurable.mjs +3 -3
  125. package/src/decorators/di/Inject.cjs +3 -3
  126. package/src/decorators/di/Inject.mjs +3 -3
  127. package/src/decorators/di/Lifetime.cjs +2 -2
  128. package/src/decorators/di/Lifetime.mjs +2 -2
  129. package/src/decorators/dto/Accept.cjs +3 -3
  130. package/src/decorators/dto/Accept.mjs +3 -3
  131. package/src/decorators/dto/Expect.cjs +3 -3
  132. package/src/decorators/dto/Expect.mjs +3 -3
  133. package/src/decorators/dto/IndexSignature.cjs +3 -3
  134. package/src/decorators/dto/IndexSignature.mjs +3 -3
  135. package/src/decorators/dto/Return.cjs +3 -3
  136. package/src/decorators/dto/Return.mjs +3 -3
  137. package/src/decorators/orm/AfterInsert.cjs +20 -20
  138. package/src/decorators/orm/AfterInsert.mjs +20 -20
  139. package/src/decorators/orm/AfterLoad.cjs +20 -20
  140. package/src/decorators/orm/AfterLoad.mjs +20 -20
  141. package/src/decorators/orm/AfterRecover.cjs +20 -20
  142. package/src/decorators/orm/AfterRecover.mjs +20 -20
  143. package/src/decorators/orm/AfterRemove.cjs +20 -20
  144. package/src/decorators/orm/AfterRemove.mjs +25 -25
  145. package/src/decorators/orm/AfterSoftRemove.cjs +20 -20
  146. package/src/decorators/orm/AfterSoftRemove.mjs +25 -25
  147. package/src/decorators/orm/AfterUpdate.cjs +20 -20
  148. package/src/decorators/orm/AfterUpdate.mjs +20 -20
  149. package/src/decorators/orm/BeforeInsert.cjs +20 -20
  150. package/src/decorators/orm/BeforeInsert.mjs +20 -20
  151. package/src/decorators/orm/BeforeRecover.cjs +20 -20
  152. package/src/decorators/orm/BeforeRecover.mjs +25 -25
  153. package/src/decorators/orm/BeforeRemove.cjs +20 -20
  154. package/src/decorators/orm/BeforeRemove.mjs +20 -20
  155. package/src/decorators/orm/BeforeSoftRemove.cjs +20 -20
  156. package/src/decorators/orm/BeforeSoftRemove.mjs +26 -26
  157. package/src/decorators/orm/BeforeUpdate.cjs +20 -20
  158. package/src/decorators/orm/BeforeUpdate.mjs +25 -25
  159. package/src/decorators/orm/Check.cjs +20 -20
  160. package/src/decorators/orm/Check.mjs +20 -20
  161. package/src/decorators/orm/ChildEntity.cjs +20 -20
  162. package/src/decorators/orm/ChildEntity.mjs +20 -20
  163. package/src/decorators/orm/Column.cjs +20 -20
  164. package/src/decorators/orm/Column.mjs +20 -20
  165. package/src/decorators/orm/CreateDateColumn.cjs +20 -20
  166. package/src/decorators/orm/CreateDateColumn.mjs +28 -28
  167. package/src/decorators/orm/DeleteDateColumn.cjs +20 -20
  168. package/src/decorators/orm/DeleteDateColumn.mjs +20 -20
  169. package/src/decorators/orm/Entity.cjs +20 -20
  170. package/src/decorators/orm/Entity.mjs +20 -20
  171. package/src/decorators/orm/EventSubscriber.cjs +20 -20
  172. package/src/decorators/orm/EventSubscriber.mjs +20 -20
  173. package/src/decorators/orm/Exclusion.cjs +20 -20
  174. package/src/decorators/orm/Exclusion.mjs +20 -20
  175. package/src/decorators/orm/Generated.cjs +20 -20
  176. package/src/decorators/orm/Generated.mjs +20 -20
  177. package/src/decorators/orm/Index.cjs +20 -20
  178. package/src/decorators/orm/Index.mjs +20 -20
  179. package/src/decorators/orm/JoinColumn.cjs +20 -20
  180. package/src/decorators/orm/JoinColumn.mjs +20 -20
  181. package/src/decorators/orm/JoinTable.cjs +20 -20
  182. package/src/decorators/orm/JoinTable.mjs +20 -20
  183. package/src/decorators/orm/ManyToMany.cjs +20 -20
  184. package/src/decorators/orm/ManyToMany.mjs +20 -20
  185. package/src/decorators/orm/ManyToOne.cjs +20 -20
  186. package/src/decorators/orm/ManyToOne.mjs +20 -20
  187. package/src/decorators/orm/ObjectIdColumn.cjs +20 -20
  188. package/src/decorators/orm/ObjectIdColumn.mjs +20 -20
  189. package/src/decorators/orm/OneToMany.cjs +20 -20
  190. package/src/decorators/orm/OneToMany.mjs +20 -20
  191. package/src/decorators/orm/OneToOne.cjs +20 -20
  192. package/src/decorators/orm/OneToOne.mjs +20 -20
  193. package/src/decorators/orm/PrimaryColumn.cjs +20 -20
  194. package/src/decorators/orm/PrimaryColumn.mjs +36 -36
  195. package/src/decorators/orm/PrimaryGeneratedColumn.cjs +20 -20
  196. package/src/decorators/orm/PrimaryGeneratedColumn.mjs +20 -20
  197. package/src/decorators/orm/RelationId.cjs +20 -20
  198. package/src/decorators/orm/RelationId.mjs +22 -22
  199. package/src/decorators/orm/TableInheritance.cjs +20 -20
  200. package/src/decorators/orm/TableInheritance.mjs +31 -31
  201. package/src/decorators/orm/Tree.cjs +20 -20
  202. package/src/decorators/orm/Tree.mjs +20 -20
  203. package/src/decorators/orm/TreeChildren.cjs +20 -20
  204. package/src/decorators/orm/TreeChildren.mjs +25 -25
  205. package/src/decorators/orm/TreeLevelColumn.cjs +20 -20
  206. package/src/decorators/orm/TreeLevelColumn.mjs +28 -28
  207. package/src/decorators/orm/TreeParent.cjs +20 -20
  208. package/src/decorators/orm/TreeParent.mjs +20 -20
  209. package/src/decorators/orm/Unique.cjs +20 -20
  210. package/src/decorators/orm/Unique.mjs +23 -23
  211. package/src/decorators/orm/UpdateDateColumn.cjs +20 -20
  212. package/src/decorators/orm/UpdateDateColumn.mjs +20 -20
  213. package/src/decorators/orm/VersionColumn.cjs +20 -20
  214. package/src/decorators/orm/VersionColumn.mjs +20 -20
  215. package/src/decorators/orm/ViewColumn.cjs +20 -20
  216. package/src/decorators/orm/ViewColumn.mjs +20 -20
  217. package/src/decorators/orm/ViewEntity.cjs +20 -20
  218. package/src/decorators/orm/ViewEntity.mjs +24 -24
  219. package/src/decorators/orm/VirtualColumn.cjs +20 -20
  220. package/src/decorators/orm/VirtualColumn.mjs +23 -23
  221. package/src/exceptions/DestroyRuntimeContainerException.cjs +1 -1
  222. package/src/exceptions/DestroyRuntimeContainerException.mjs +1 -1
  223. package/src/exceptions/InvalidActionPatternDepthException.cjs +1 -1
  224. package/src/exceptions/InvalidActionPatternDepthException.mjs +1 -1
  225. package/src/exceptions/InvalidAssistantFunctionTypeException.cjs +1 -1
  226. package/src/exceptions/InvalidAssistantFunctionTypeException.mjs +1 -1
  227. package/src/exceptions/InvalidObjectTypeException.cjs +1 -1
  228. package/src/exceptions/InvalidObjectTypeException.mjs +1 -1
  229. package/src/exceptions/MethodNotFoundException.cjs +1 -1
  230. package/src/exceptions/MethodNotFoundException.mjs +1 -1
  231. package/src/exceptions/alias/AliasExistsException.cjs +1 -1
  232. package/src/exceptions/alias/AliasExistsException.mjs +1 -1
  233. package/src/exceptions/alias/AliasNotFoundException.cjs +1 -1
  234. package/src/exceptions/alias/AliasNotFoundException.mjs +1 -1
  235. package/src/exceptions/alias/InvalidAliasNameException.cjs +1 -1
  236. package/src/exceptions/alias/InvalidAliasNameException.mjs +1 -1
  237. package/src/exceptions/di/DependencyInjectionException.cjs +1 -1
  238. package/src/exceptions/di/DependencyInjectionException.mjs +1 -1
  239. package/src/exceptions/di/LifetimeLockedException.cjs +1 -1
  240. package/src/exceptions/di/LifetimeLockedException.mjs +1 -1
  241. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.cjs +1 -1
  242. package/src/exceptions/di/OverridableObjectTargetConfigNotFoundException.mjs +1 -1
  243. package/src/exceptions/dto/InvalidMethodAcceptException.cjs +1 -1
  244. package/src/exceptions/dto/InvalidMethodAcceptException.mjs +1 -1
  245. package/src/exceptions/dto/InvalidMethodReturnException.cjs +1 -1
  246. package/src/exceptions/dto/InvalidMethodReturnException.mjs +1 -1
  247. package/src/exceptions/dto/InvalidValueException.cjs +1 -1
  248. package/src/exceptions/dto/InvalidValueException.mjs +1 -1
  249. package/src/lib/base/BaseObject.cjs +8 -8
  250. package/src/lib/base/BaseObject.mjs +8 -8
  251. package/src/lib/base/Context.cjs +3 -3
  252. package/src/lib/base/Context.mjs +3 -3
  253. package/src/lib/base/EventEmitter.cjs +1 -1
  254. package/src/lib/base/EventEmitter.mjs +1 -1
  255. package/src/lib/base/abstracts/Exception.cjs +1 -1
  256. package/src/lib/base/abstracts/Exception.mjs +1 -1
  257. package/src/lib/base/internal/ApplicationConfigLoader.cjs +8 -8
  258. package/src/lib/base/internal/ApplicationConfigLoader.mjs +8 -8
  259. package/src/lib/base/internal/BasicInfo.cjs +1 -1
  260. package/src/lib/base/internal/BasicInfo.mjs +1 -1
  261. package/src/lib/base/internal/ConfigurableRecordsInjection.cjs +2 -2
  262. package/src/lib/base/internal/ConfigurableRecordsInjection.mjs +2 -2
  263. package/src/lib/base/internal/ConstructorSymbol.cjs +2 -2
  264. package/src/lib/base/internal/ConstructorSymbol.mjs +2 -2
  265. package/src/lib/base/internal/ControllerEntrypoint.cjs +2 -2
  266. package/src/lib/base/internal/ControllerEntrypoint.mjs +2 -2
  267. package/src/lib/base/internal/DataValidator.cjs +2 -2
  268. package/src/lib/base/internal/DataValidator.mjs +2 -2
  269. package/src/lib/base/internal/FlexibleDTO.cjs +3 -3
  270. package/src/lib/base/internal/FlexibleDTO.mjs +3 -3
  271. package/src/lib/base/internal/MethodAssistantFunction.cjs +1 -1
  272. package/src/lib/base/internal/MethodAssistantFunction.mjs +1 -1
  273. package/src/lib/base/internal/MethodValidation.cjs +3 -3
  274. package/src/lib/base/internal/MethodValidation.mjs +3 -3
  275. package/src/lib/base/internal/ModuleConfigLoader.cjs +8 -8
  276. package/src/lib/base/internal/ModuleConfigLoader.mjs +8 -8
  277. package/src/lib/base/internal/ObjectConfiguration.cjs +3 -3
  278. package/src/lib/base/internal/ObjectConfiguration.mjs +3 -3
  279. package/src/lib/base/internal/ObjectContainer.cjs +2 -2
  280. package/src/lib/base/internal/ObjectContainer.mjs +2 -2
  281. package/src/lib/base/internal/ObjectInjection.cjs +2 -2
  282. package/src/lib/base/internal/ObjectInjection.mjs +2 -2
  283. package/src/lib/base/internal/ObjectLifetime.cjs +2 -2
  284. package/src/lib/base/internal/ObjectLifetime.mjs +2 -2
  285. package/src/lib/base/internal/ObjectSchemaValidation.cjs +3 -3
  286. package/src/lib/base/internal/ObjectSchemaValidation.mjs +3 -3
  287. package/src/lib/base/internal/ObjectType.cjs +8 -8
  288. package/src/lib/base/internal/ObjectType.mjs +8 -8
  289. package/src/lib/base/internal/PatternManager.cjs +1 -1
  290. package/src/lib/base/internal/PatternManager.mjs +1 -1
  291. package/src/lib/context/CLIContext.cjs +3 -3
  292. package/src/lib/context/CLIContext.mjs +3 -3
  293. package/src/lib/context/HTTPContext.cjs +3 -3
  294. package/src/lib/context/HTTPContext.mjs +3 -3
  295. package/src/lib/context/ServiceContext.cjs +3 -3
  296. package/src/lib/context/ServiceContext.mjs +3 -3
  297. package/src/lib/core/Alias.cjs +1 -1
  298. package/src/lib/core/Alias.mjs +1 -1
  299. package/src/lib/core/Application.cjs +13 -13
  300. package/src/lib/core/Application.mjs +13 -13
  301. package/src/lib/core/Component.cjs +8 -8
  302. package/src/lib/core/Component.mjs +8 -8
  303. package/src/lib/core/Container.cjs +8 -8
  304. package/src/lib/core/Container.mjs +8 -8
  305. package/src/lib/core/DTO.cjs +3 -3
  306. package/src/lib/core/DTO.mjs +3 -3
  307. package/src/lib/core/Module.cjs +9 -9
  308. package/src/lib/core/Module.mjs +9 -9
  309. package/src/lib/core/Provider.cjs +8 -8
  310. package/src/lib/core/Provider.mjs +8 -8
  311. package/src/lib/core/Time.cjs +2 -2
  312. package/src/lib/core/Time.mjs +2 -2
  313. package/src/lib/helpers/Glob.cjs +1 -1
  314. package/src/lib/helpers/Glob.mjs +1 -1
  315. package/src/lib/helpers/IsGlobString.cjs +1 -1
  316. package/src/lib/helpers/IsGlobString.mjs +1 -1
  317. package/src/lib/helpers/IsHtml.cjs +1 -1
  318. package/src/lib/helpers/IsHtml.mjs +1 -1
  319. package/src/lib/helpers/IsSymbol.cjs +3 -3
  320. package/src/lib/helpers/IsSymbol.mjs +3 -3
  321. package/src/lib/helpers/IsXML.cjs +1 -1
  322. package/src/lib/helpers/IsXML.mjs +1 -1
  323. package/src/lib/helpers/MD5.cjs +2 -2
  324. package/src/lib/helpers/MD5.mjs +2 -2
  325. package/src/lib/helpers/NonceStr.cjs +2 -2
  326. package/src/lib/helpers/NonceStr.mjs +2 -2
  327. package/src/lib/helpers/ObjectHash.cjs +2 -2
  328. package/src/lib/helpers/ObjectHash.mjs +2 -2
  329. package/src/lib/helpers/RandomString.cjs +2 -2
  330. package/src/lib/helpers/RandomString.mjs +2 -2
  331. package/src/lib/helpers/SHA1.cjs +2 -2
  332. package/src/lib/helpers/SHA1.mjs +2 -2
  333. package/src/lib/helpers/SHA256.cjs +2 -2
  334. package/src/lib/helpers/SHA256.mjs +2 -2
  335. package/src/lib/ioc/DependencyInjectionContainer.cjs +7 -7
  336. package/src/lib/ioc/DependencyInjectionContainer.mjs +7 -7
  337. package/src/lib/ioc/Errors.cjs +3 -3
  338. package/src/lib/ioc/Errors.mjs +3 -3
  339. package/src/lib/ioc/ListModules.cjs +4 -4
  340. package/src/lib/ioc/ListModules.mjs +4 -4
  341. package/src/lib/ioc/LoadModules.cjs +3 -3
  342. package/src/lib/ioc/LoadModules.mjs +3 -3
  343. package/src/lib/ioc/Resolvers.cjs +3 -3
  344. package/src/lib/ioc/Resolvers.mjs +3 -3
  345. package/src/lib/ioc/Utils.cjs +3 -3
  346. package/src/lib/ioc/Utils.mjs +3 -3
  347. package/src/lib/validation/VLD.cjs +1787 -1672
  348. package/src/lib/validation/VLD.mjs +1795 -1680
  349. package/src/options/ApplicationOptions.cjs +8 -8
  350. package/src/options/ApplicationOptions.mjs +8 -8
  351. package/src/options/LoadAnonymousObjectOptions.cjs +8 -8
  352. package/src/options/LoadAnonymousObjectOptions.mjs +8 -8
  353. package/src/options/LoadNamedObjectOptions.cjs +8 -8
  354. package/src/options/LoadNamedObjectOptions.mjs +8 -8
  355. package/src/options/LoadObjectOptions.cjs +8 -8
  356. package/src/options/LoadObjectOptions.mjs +8 -8
  357. package/src/options/ModuleLoadObjectsOptions.cjs +8 -8
  358. package/src/options/ModuleLoadObjectsOptions.mjs +8 -8
  359. package/src/options/ModuleOptions.cjs +8 -8
  360. package/src/options/ModuleOptions.mjs +8 -8
  361. package/src/options/OverridableNamedObjectOptions.cjs +8 -8
  362. package/src/options/OverridableNamedObjectOptions.mjs +8 -8
  363. package/src/options/OverridableObjectOptions.cjs +8 -8
  364. package/src/options/OverridableObjectOptions.mjs +8 -8
  365. package/src/providers/Database.cjs +287 -0
  366. package/src/providers/Database.mjs +281 -0
  367. package/vendor/Package.10.cjs +79 -5
  368. package/vendor/Package.10.mjs +73 -5
  369. package/vendor/Package.11.cjs +9 -1
  370. package/vendor/Package.11.mjs +9 -1
  371. package/vendor/Package.12.cjs +1 -14055
  372. package/vendor/Package.12.mjs +1 -14029
  373. package/vendor/Package.13.cjs +365 -47129
  374. package/vendor/Package.13.mjs +356 -47074
  375. package/vendor/Package.14.cjs +14051 -5
  376. package/vendor/Package.14.mjs +14025 -5
  377. package/vendor/Package.15.cjs +326 -334
  378. package/vendor/Package.15.mjs +260 -264
  379. package/vendor/Package.2.cjs +5 -6978
  380. package/vendor/Package.2.mjs +5 -6968
  381. package/vendor/Package.22.cjs +47244 -0
  382. package/vendor/Package.22.mjs +47178 -0
  383. package/vendor/Package.3.cjs +925 -455
  384. package/vendor/Package.3.mjs +925 -437
  385. package/vendor/Package.4.cjs +37 -939
  386. package/vendor/Package.4.mjs +35 -941
  387. package/vendor/Package.5.cjs +6992 -32
  388. package/vendor/Package.5.mjs +6984 -30
  389. package/vendor/Package.7.cjs +1 -1
  390. package/vendor/Package.7.mjs +1 -1
  391. package/vendor/Package.72.cjs +547 -4092
  392. package/vendor/Package.72.mjs +538 -4093
  393. package/vendor/Package.73.cjs +1 -1
  394. package/vendor/Package.73.mjs +1 -1
  395. package/vendor/Package.74.cjs +4148 -67
  396. package/vendor/Package.74.mjs +4157 -62
  397. package/vendor/Package.9.cjs +1 -1
  398. package/vendor/Package.9.mjs +1 -1
  399. package/vendor/TypeDef.12.d.ts +1 -1
  400. package/vendor/TypeDef.4.d.ts +2 -2
  401. package/vendor/TypeDef.5.d.ts +37 -1
  402. package/vendor/Package.75.cjs +0 -621
  403. package/vendor/Package.75.mjs +0 -617
@@ -1,480 +1,950 @@
1
1
  "use strict";
2
2
 
3
- const e = require("./Package.1.cjs");
3
+ const e = require("./Package.4.cjs");
4
4
 
5
- const t = require("../src/lib/base/async-constructor/AsyncConstructor.cjs");
5
+ var t = {};
6
6
 
7
- const s = require("../src/decorators/di/Lifetime.cjs");
7
+ var r;
8
8
 
9
- const r = require("../src/exceptions/MethodNotFoundException.cjs");
10
-
11
- const i = require("../src/lib/ioc/DependencyInjectionContainer.cjs");
12
-
13
- const o = require("node:crypto");
14
-
15
- const n = require("../src/lib/base/internal/ConfigurableRecordsInjection.cjs");
16
-
17
- const a = require("../src/lib/base/internal/ObjectConfiguration.cjs");
18
-
19
- const c = require("../src/lib/base/internal/ObjectInjection.cjs");
20
-
21
- const l = require("../src/lib/base/internal/ObjectContainer.cjs");
22
-
23
- const d = require("./Package.2.cjs");
24
-
25
- const h = require("../src/lib/helpers/ObjectConstructor.cjs");
26
-
27
- const u = require("../src/lib/helpers/As.cjs");
28
-
29
- const p = require("../src/lib/helpers/DevNull.cjs");
30
-
31
- const b = require("../src/lib/helpers/ObjectParentConstructors.cjs");
32
-
33
- const y = require("../src/exceptions/di/DependencyInjectionException.cjs");
34
-
35
- const O = require("../src/lib/base/internal/ConstructorSymbol.cjs");
36
-
37
- const f = require("../src/decorators/dto/Expect.cjs");
38
-
39
- const j = require("../src/decorators/dto/IndexSignature.cjs");
40
-
41
- const m = require("../src/lib/ioc/Resolvers.cjs");
42
-
43
- const g = require("../src/lib/base/internal/ObjectLifetime.cjs");
44
-
45
- const w = require("../src/decorators/dto/Accept.cjs");
46
-
47
- const C = require("../src/lib/ioc/ListModules.cjs");
9
+ (function(t) {
10
+ (function(r) {
11
+ var n = typeof globalThis === "object" ? globalThis : typeof e.commonjsGlobal === "object" ? e.commonjsGlobal : typeof self === "object" ? self : typeof this === "object" ? this : o();
12
+ var i = a(t);
13
+ if (typeof n.Reflect !== "undefined") {
14
+ i = a(n.Reflect, i);
15
+ }
16
+ r(i, n);
17
+ if (typeof n.Reflect === "undefined") {
18
+ n.Reflect = t;
19
+ }
20
+ function a(e, t) {
21
+ return function(r, n) {
22
+ Object.defineProperty(e, r, {
23
+ configurable: true,
24
+ writable: true,
25
+ value: n
26
+ });
27
+ if (t) t(r, n);
28
+ };
29
+ }
30
+ function u() {
31
+ try {
32
+ return Function("return this;")();
33
+ } catch (e) {}
34
+ }
35
+ function f() {
36
+ try {
37
+ return (void 0, eval)("(function() { return this; })()");
38
+ } catch (e) {}
39
+ }
40
+ function o() {
41
+ return u() || f();
42
+ }
43
+ })((function(e, t) {
44
+ var r = Object.prototype.hasOwnProperty;
45
+ var n = typeof Symbol === "function";
46
+ var i = n && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive";
47
+ var a = n && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator";
48
+ var u = typeof Object.create === "function";
49
+ var f = {
50
+ __proto__: []
51
+ } instanceof Array;
52
+ var o = !u && !f;
53
+ var s = {
54
+ create: u ? function() {
55
+ return le(Object.create(null));
56
+ } : f ? function() {
57
+ return le({
58
+ __proto__: null
59
+ });
60
+ } : function() {
61
+ return le({});
62
+ },
63
+ has: o ? function(e, t) {
64
+ return r.call(e, t);
65
+ } : function(e, t) {
66
+ return t in e;
67
+ },
68
+ get: o ? function(e, t) {
69
+ return r.call(e, t) ? e[t] : undefined;
70
+ } : function(e, t) {
71
+ return e[t];
72
+ }
73
+ };
74
+ var c = Object.getPrototypeOf(Function);
75
+ var l = typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : oe();
76
+ var d = typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : se();
77
+ var h = typeof WeakMap === "function" ? WeakMap : ce();
78
+ var y = n ? Symbol.for("@reflect-metadata:registry") : undefined;
79
+ var v = ie();
80
+ var p = ae(v);
81
+ function w(e, t, r, n) {
82
+ if (!D(r)) {
83
+ if (!B(e)) throw new TypeError;
84
+ if (!W(t)) throw new TypeError;
85
+ if (!W(n) && !D(n) && !G(n)) throw new TypeError;
86
+ if (G(n)) n = undefined;
87
+ r = L(r);
88
+ return T(e, t, r, n);
89
+ } else {
90
+ if (!B(e)) throw new TypeError;
91
+ if (!N(t)) throw new TypeError;
92
+ return P(e, t);
93
+ }
94
+ }
95
+ e("decorate", w);
96
+ function _(e, t) {
97
+ function r(r, n) {
98
+ if (!W(r)) throw new TypeError;
99
+ if (!D(n) && !Q(n)) throw new TypeError;
100
+ A(e, t, r, n);
101
+ }
102
+ return r;
103
+ }
104
+ e("metadata", _);
105
+ function g(e, t, r, n) {
106
+ if (!W(r)) throw new TypeError;
107
+ if (!D(n)) n = L(n);
108
+ return A(e, t, r, n);
109
+ }
110
+ e("defineMetadata", g);
111
+ function b(e, t, r) {
112
+ if (!W(t)) throw new TypeError;
113
+ if (!D(r)) r = L(r);
114
+ return x(e, t, r);
115
+ }
116
+ e("hasMetadata", b);
117
+ function O(e, t, r) {
118
+ if (!W(t)) throw new TypeError;
119
+ if (!D(r)) r = L(r);
120
+ return R(e, t, r);
121
+ }
122
+ e("hasOwnMetadata", O);
123
+ function k(e, t, r) {
124
+ if (!W(t)) throw new TypeError;
125
+ if (!D(r)) r = L(r);
126
+ return S(e, t, r);
127
+ }
128
+ e("getMetadata", k);
129
+ function m(e, t, r) {
130
+ if (!W(t)) throw new TypeError;
131
+ if (!D(r)) r = L(r);
132
+ return K(e, t, r);
133
+ }
134
+ e("getOwnMetadata", m);
135
+ function M(e, t) {
136
+ if (!W(e)) throw new TypeError;
137
+ if (!D(t)) t = L(t);
138
+ return I(e, t);
139
+ }
140
+ e("getMetadataKeys", M);
141
+ function E(e, t) {
142
+ if (!W(e)) throw new TypeError;
143
+ if (!D(t)) t = L(t);
144
+ return F(e, t);
145
+ }
146
+ e("getOwnMetadataKeys", E);
147
+ function j(e, t, r) {
148
+ if (!W(t)) throw new TypeError;
149
+ if (!D(r)) r = L(r);
150
+ if (!W(t)) throw new TypeError;
151
+ if (!D(r)) r = L(r);
152
+ var n = fe(t, r, false);
153
+ if (D(n)) return false;
154
+ return n.OrdinaryDeleteMetadata(e, t, r);
155
+ }
156
+ e("deleteMetadata", j);
157
+ function P(e, t) {
158
+ for (var r = e.length - 1; r >= 0; --r) {
159
+ var n = e[r];
160
+ var i = n(t);
161
+ if (!D(i) && !G(i)) {
162
+ if (!N(i)) throw new TypeError;
163
+ t = i;
164
+ }
165
+ }
166
+ return t;
167
+ }
168
+ function T(e, t, r, n) {
169
+ for (var i = e.length - 1; i >= 0; --i) {
170
+ var a = e[i];
171
+ var u = a(t, r, n);
172
+ if (!D(u) && !G(u)) {
173
+ if (!W(u)) throw new TypeError;
174
+ n = u;
175
+ }
176
+ }
177
+ return n;
178
+ }
179
+ function x(e, t, r) {
180
+ var n = R(e, t, r);
181
+ if (n) return true;
182
+ var i = re(t);
183
+ if (!G(i)) return x(e, i, r);
184
+ return false;
185
+ }
186
+ function R(e, t, r) {
187
+ var n = fe(t, r, false);
188
+ if (D(n)) return false;
189
+ return V(n.OrdinaryHasOwnMetadata(e, t, r));
190
+ }
191
+ function S(e, t, r) {
192
+ var n = R(e, t, r);
193
+ if (n) return K(e, t, r);
194
+ var i = re(t);
195
+ if (!G(i)) return S(e, i, r);
196
+ return undefined;
197
+ }
198
+ function K(e, t, r) {
199
+ var n = fe(t, r, false);
200
+ if (D(n)) return;
201
+ return n.OrdinaryGetOwnMetadata(e, t, r);
202
+ }
203
+ function A(e, t, r, n) {
204
+ var i = fe(r, n, true);
205
+ i.OrdinaryDefineOwnMetadata(e, t, r, n);
206
+ }
207
+ function I(e, t) {
208
+ var r = F(e, t);
209
+ var n = re(e);
210
+ if (n === null) return r;
211
+ var i = I(n, t);
212
+ if (i.length <= 0) return r;
213
+ if (r.length <= 0) return i;
214
+ var a = new d;
215
+ var u = [];
216
+ for (var f = 0, o = r; f < o.length; f++) {
217
+ var s = o[f];
218
+ var c = a.has(s);
219
+ if (!c) {
220
+ a.add(s);
221
+ u.push(s);
222
+ }
223
+ }
224
+ for (var l = 0, h = i; l < h.length; l++) {
225
+ var s = h[l];
226
+ var c = a.has(s);
227
+ if (!c) {
228
+ a.add(s);
229
+ u.push(s);
230
+ }
231
+ }
232
+ return u;
233
+ }
234
+ function F(e, t) {
235
+ var r = fe(e, t, false);
236
+ if (!r) {
237
+ return [];
238
+ }
239
+ return r.OrdinaryOwnMetadataKeys(e, t);
240
+ }
241
+ function z(e) {
242
+ if (e === null) return 1;
243
+ switch (typeof e) {
244
+ case "undefined":
245
+ return 0;
48
246
 
49
- const P = require("url");
247
+ case "boolean":
248
+ return 2;
50
249
 
51
- const S = require("../src/lib/ioc/Utils.cjs");
250
+ case "string":
251
+ return 3;
52
252
 
53
- const T = require("../src/lib/helpers/IsEmptyObject.cjs");
253
+ case "symbol":
254
+ return 4;
54
255
 
55
- const R = require("../src/lib/base/internal/ObjectWeakRefs.cjs");
256
+ case "number":
257
+ return 5;
56
258
 
57
- var x;
259
+ case "object":
260
+ return e === null ? 1 : 6;
58
261
 
59
- const I = Symbol("OBJECT_ID");
262
+ default:
263
+ return 6;
264
+ }
265
+ }
266
+ function D(e) {
267
+ return e === undefined;
268
+ }
269
+ function G(e) {
270
+ return e === null;
271
+ }
272
+ function C(e) {
273
+ return typeof e === "symbol";
274
+ }
275
+ function W(e) {
276
+ return typeof e === "object" ? e !== null : typeof e === "function";
277
+ }
278
+ function H(e, t) {
279
+ switch (z(e)) {
280
+ case 0:
281
+ return e;
60
282
 
61
- exports.LoadObjectOptions = class LoadObjectOptions extends d.DTO {
62
- static {
63
- x = I;
64
- }
65
- };
283
+ case 1:
284
+ return e;
66
285
 
67
- e.__decorate([ f.Expect(d.DTO.Alternatives(d.DTO.String(), d.DTO.Symbol()).optional()), e.__metadata("design:type", Object) ], exports.LoadObjectOptions.prototype, x, void 0);
286
+ case 2:
287
+ return e;
68
288
 
69
- e.__decorate([ f.Expect(d.DTO.Class((() => exports.BaseObject)).required()), e.__metadata("design:type", Object) ], exports.LoadObjectOptions.prototype, "class", void 0);
289
+ case 3:
290
+ return e;
70
291
 
71
- exports.LoadObjectOptions = e.__decorate([ j.IndexSignature(d.DTO.Any()) ], exports.LoadObjectOptions);
292
+ case 4:
293
+ return e;
72
294
 
73
- const A = Symbol("LAKUTATA.DI.CONTAINER.SYMBOL");
295
+ case 5:
296
+ return e;
297
+ }
298
+ var r = t === 3 ? "string" : t === 5 ? "number" : "default";
299
+ var n = Y(e, i);
300
+ if (n !== undefined) {
301
+ var a = n.call(e, r);
302
+ if (W(a)) throw new TypeError;
303
+ return a;
304
+ }
305
+ return U(e, r === "default" ? "number" : r);
306
+ }
307
+ function U(e, t) {
308
+ if (t === "string") {
309
+ var r = e.toString;
310
+ if (J(r)) {
311
+ var n = r.call(e);
312
+ if (!W(n)) return n;
313
+ }
314
+ var i = e.valueOf;
315
+ if (J(i)) {
316
+ var n = i.call(e);
317
+ if (!W(n)) return n;
318
+ }
319
+ } else {
320
+ var i = e.valueOf;
321
+ if (J(i)) {
322
+ var n = i.call(e);
323
+ if (!W(n)) return n;
324
+ }
325
+ var a = e.toString;
326
+ if (J(a)) {
327
+ var n = a.call(e);
328
+ if (!W(n)) return n;
329
+ }
330
+ }
331
+ throw new TypeError;
332
+ }
333
+ function V(e) {
334
+ return !!e;
335
+ }
336
+ function q(e) {
337
+ return "" + e;
338
+ }
339
+ function L(e) {
340
+ var t = H(e, 3);
341
+ if (C(t)) return t;
342
+ return q(t);
343
+ }
344
+ function B(e) {
345
+ return Array.isArray ? Array.isArray(e) : e instanceof Object ? e instanceof Array : Object.prototype.toString.call(e) === "[object Array]";
346
+ }
347
+ function J(e) {
348
+ return typeof e === "function";
349
+ }
350
+ function N(e) {
351
+ return typeof e === "function";
352
+ }
353
+ function Q(e) {
354
+ switch (z(e)) {
355
+ case 3:
356
+ return true;
74
357
 
75
- const N = Symbol("LAKUTATA.DI.OWNER.SYMBOL");
358
+ case 4:
359
+ return true;
76
360
 
77
- class Container {
78
- #e;
79
- #t;
80
- #s;
81
- constructor(e, t) {
82
- this.#t = new Set;
83
- this.#s = false;
84
- this.injectionNames = new Set;
85
- this.parent = e;
86
- this.#e = e ? e.#e.createScope() : i.createContainer({
87
- injectionMode: "PROXY",
88
- strict: false
89
- });
90
- if (this.parent) this.parent.#t.add(this);
91
- this.#e.register(A, m.asValue(this));
92
- if (t) this.#e.register(N, m.asValue(new WeakRef(t)));
93
- }
94
- async disposer(e) {
95
- try {
96
- await e.getMethod(B, false)();
97
- } catch (e) {
98
- p.DevNull(e);
99
- }
100
- }
101
- buildResolverOptions(e) {
102
- const t = g.GetObjectLifetime(e);
103
- return {
104
- lifetime: t,
105
- dispose: e => this.disposer(e)
106
- };
107
- }
108
- async processResolved(e, t, s = {}) {
109
- const r = n.GetConfigurableRecords(u.As(e.constructor), t);
110
- const i = d.DTO.isValid(e.constructor, d.DTO.Class(exports.BaseObject));
111
- if (i) {
112
- n.SetIdToInstance(u.As(e), t);
113
- n.SetConfigurableRecordsToInstance(u.As(e), {
114
- ...r,
115
- ...s
116
- });
117
- }
118
- return Promise.resolve(e);
119
- }
120
- buildNameAndRegistrationPairFromOptions(e) {
121
- const t = {};
122
- const s = e[I] ? e[I] : O.ConstructorSymbol(e.class);
123
- const r = {
124
- ...e,
125
- class: void 0
126
- };
127
- delete r.id;
128
- delete r.class;
129
- n.SetConfigurableRecords(e.class, s, r);
130
- t[s] = m.asClass(e.class, this.buildResolverOptions(e.class));
131
- return t;
132
- }
133
- async buildNameAndRegistrationPairFromGlob(e) {
134
- const t = [];
135
- C.listModules(e).forEach((e => {
136
- t.push(new Promise((t => {
137
- import(P.pathToFileURL(e.path).toString()).then((e => {
138
- Object.keys(e).forEach((s => {
139
- const r = e[s];
140
- if (S.isClass(r) && d.DTO.isValid(r, d.DTO.Class(exports.BaseObject))) {
141
- const e = r;
142
- const s = {};
143
- s[O.ConstructorSymbol(e)] = m.asClass(e, this.buildResolverOptions(e));
144
- return t(s);
145
- } else {
146
- return t({});
361
+ default:
362
+ return false;
363
+ }
364
+ }
365
+ function X(e, t) {
366
+ return e === t || e !== e && t !== t;
367
+ }
368
+ function Y(e, t) {
369
+ var r = e[t];
370
+ if (r === undefined || r === null) return undefined;
371
+ if (!J(r)) throw new TypeError;
372
+ return r;
373
+ }
374
+ function Z(e) {
375
+ var t = Y(e, a);
376
+ if (!J(t)) throw new TypeError;
377
+ var r = t.call(e);
378
+ if (!W(r)) throw new TypeError;
379
+ return r;
380
+ }
381
+ function $(e) {
382
+ return e.value;
383
+ }
384
+ function ee(e) {
385
+ var t = e.next();
386
+ return t.done ? false : t;
387
+ }
388
+ function te(e) {
389
+ var t = e["return"];
390
+ if (t) t.call(e);
391
+ }
392
+ function re(e) {
393
+ var t = Object.getPrototypeOf(e);
394
+ if (typeof e !== "function" || e === c) return t;
395
+ if (t !== c) return t;
396
+ var r = e.prototype;
397
+ var n = r && Object.getPrototypeOf(r);
398
+ if (n == null || n === Object.prototype) return t;
399
+ var i = n.constructor;
400
+ if (typeof i !== "function") return t;
401
+ if (i === e) return t;
402
+ return i;
403
+ }
404
+ function ne() {
405
+ var e;
406
+ if (!D(y) && typeof t.Reflect !== "undefined" && !(y in t.Reflect) && typeof t.Reflect.defineMetadata === "function") {
407
+ e = ue(t.Reflect);
408
+ }
409
+ var r;
410
+ var n;
411
+ var i;
412
+ var a = new h;
413
+ var u = {
414
+ registerProvider: f,
415
+ getProvider: s,
416
+ setProvider: v
417
+ };
418
+ return u;
419
+ function f(t) {
420
+ if (!Object.isExtensible(u)) {
421
+ throw new Error("Cannot add provider to a frozen registry.");
422
+ }
423
+ switch (true) {
424
+ case e === t:
425
+ break;
426
+
427
+ case D(r):
428
+ r = t;
429
+ break;
430
+
431
+ case r === t:
432
+ break;
433
+
434
+ case D(n):
435
+ n = t;
436
+ break;
437
+
438
+ case n === t:
439
+ break;
440
+
441
+ default:
442
+ if (i === undefined) i = new d;
443
+ i.add(t);
444
+ break;
445
+ }
446
+ }
447
+ function o(t, a) {
448
+ if (!D(r)) {
449
+ if (r.isProviderFor(t, a)) return r;
450
+ if (!D(n)) {
451
+ if (n.isProviderFor(t, a)) return r;
452
+ if (!D(i)) {
453
+ var u = Z(i);
454
+ while (true) {
455
+ var f = ee(u);
456
+ if (!f) {
457
+ return undefined;
458
+ }
459
+ var o = $(f);
460
+ if (o.isProviderFor(t, a)) {
461
+ te(u);
462
+ return o;
463
+ }
464
+ }
147
465
  }
148
- }));
149
- })).catch((() => t({})));
150
- })));
151
- }));
152
- const s = await Promise.all(t);
153
- let r = {};
154
- s.forEach((e => {
155
- r = {
156
- ...r,
157
- ...e
466
+ }
467
+ }
468
+ if (!D(e) && e.isProviderFor(t, a)) {
469
+ return e;
470
+ }
471
+ return undefined;
472
+ }
473
+ function s(e, t) {
474
+ var r = a.get(e);
475
+ var n;
476
+ if (!D(r)) {
477
+ n = r.get(t);
478
+ }
479
+ if (!D(n)) {
480
+ return n;
481
+ }
482
+ n = o(e, t);
483
+ if (!D(n)) {
484
+ if (D(r)) {
485
+ r = new l;
486
+ a.set(e, r);
487
+ }
488
+ r.set(t, n);
489
+ }
490
+ return n;
491
+ }
492
+ function c(e) {
493
+ if (D(e)) throw new TypeError;
494
+ return r === e || n === e || !D(i) && i.has(e);
495
+ }
496
+ function v(e, t, r) {
497
+ if (!c(r)) {
498
+ throw new Error("Metadata provider not registered.");
499
+ }
500
+ var n = s(e, t);
501
+ if (n !== r) {
502
+ if (!D(n)) {
503
+ return false;
504
+ }
505
+ var i = a.get(e);
506
+ if (D(i)) {
507
+ i = new l;
508
+ a.set(e, i);
509
+ }
510
+ i.set(t, r);
511
+ }
512
+ return true;
513
+ }
514
+ }
515
+ function ie() {
516
+ var e;
517
+ if (!D(y) && W(t.Reflect) && Object.isExtensible(t.Reflect)) {
518
+ e = t.Reflect[y];
519
+ }
520
+ if (D(e)) {
521
+ e = ne();
522
+ }
523
+ if (!D(y) && W(t.Reflect) && Object.isExtensible(t.Reflect)) {
524
+ Object.defineProperty(t.Reflect, y, {
525
+ enumerable: false,
526
+ configurable: false,
527
+ writable: false,
528
+ value: e
529
+ });
530
+ }
531
+ return e;
532
+ }
533
+ function ae(e) {
534
+ var t = new h;
535
+ var r = {
536
+ isProviderFor: function(e, r) {
537
+ var n = t.get(e);
538
+ if (D(n)) return false;
539
+ return n.has(r);
540
+ },
541
+ OrdinaryDefineOwnMetadata: u,
542
+ OrdinaryHasOwnMetadata: i,
543
+ OrdinaryGetOwnMetadata: a,
544
+ OrdinaryOwnMetadataKeys: f,
545
+ OrdinaryDeleteMetadata: o
158
546
  };
159
- }));
160
- return r;
161
- }
162
- owner() {
163
- const e = this.#e.resolve(N, {
164
- allowUnregistered: true
165
- });
166
- return e ? e.deref() : undefined;
167
- }
168
- async load(e) {
169
- let t = {};
170
- const s = [];
171
- e.forEach((e => {
172
- if (typeof e === "string") {
173
- s.push(new Promise(((t, s) => this.buildNameAndRegistrationPairFromGlob(e).then(t).catch(s))));
174
- } else if (S.isClass(u.As(e))) {
175
- const s = {
176
- class: u.As(e)
547
+ v.registerProvider(r);
548
+ return r;
549
+ function n(n, i, a) {
550
+ var u = t.get(n);
551
+ var f = false;
552
+ if (D(u)) {
553
+ if (!a) return undefined;
554
+ u = new l;
555
+ t.set(n, u);
556
+ f = true;
557
+ }
558
+ var o = u.get(i);
559
+ if (D(o)) {
560
+ if (!a) return undefined;
561
+ o = new l;
562
+ u.set(i, o);
563
+ if (!e.setProvider(n, i, r)) {
564
+ u.delete(i);
565
+ if (f) {
566
+ t.delete(n);
567
+ }
568
+ throw new Error("Wrong provider for target.");
569
+ }
570
+ }
571
+ return o;
572
+ }
573
+ function i(e, t, r) {
574
+ var i = n(t, r, false);
575
+ if (D(i)) return false;
576
+ return V(i.has(e));
577
+ }
578
+ function a(e, t, r) {
579
+ var i = n(t, r, false);
580
+ if (D(i)) return undefined;
581
+ return i.get(e);
582
+ }
583
+ function u(e, t, r, i) {
584
+ var a = n(r, i, true);
585
+ a.set(e, t);
586
+ }
587
+ function f(e, t) {
588
+ var r = [];
589
+ var i = n(e, t, false);
590
+ if (D(i)) return r;
591
+ var a = i.keys();
592
+ var u = Z(a);
593
+ var f = 0;
594
+ while (true) {
595
+ var o = ee(u);
596
+ if (!o) {
597
+ r.length = f;
598
+ return r;
599
+ }
600
+ var s = $(o);
601
+ try {
602
+ r[f] = s;
603
+ } catch (e) {
604
+ try {
605
+ te(u);
606
+ } finally {
607
+ throw e;
608
+ }
609
+ }
610
+ f++;
611
+ }
612
+ }
613
+ function o(e, r, i) {
614
+ var a = n(r, i, false);
615
+ if (D(a)) return false;
616
+ if (!a.delete(e)) return false;
617
+ if (a.size === 0) {
618
+ var u = t.get(r);
619
+ if (!D(u)) {
620
+ u.delete(i);
621
+ if (u.size === 0) {
622
+ t.delete(u);
623
+ }
624
+ }
625
+ }
626
+ return true;
627
+ }
628
+ }
629
+ function ue(e) {
630
+ var t = e.defineMetadata, r = e.hasOwnMetadata, n = e.getOwnMetadata, i = e.getOwnMetadataKeys, a = e.deleteMetadata;
631
+ var u = new h;
632
+ var f = {
633
+ isProviderFor: function(e, t) {
634
+ var r = u.get(e);
635
+ if (!D(r) && r.has(t)) {
636
+ return true;
637
+ }
638
+ if (i(e, t).length) {
639
+ if (D(r)) {
640
+ r = new d;
641
+ u.set(e, r);
642
+ }
643
+ r.add(t);
644
+ return true;
645
+ }
646
+ return false;
647
+ },
648
+ OrdinaryDefineOwnMetadata: t,
649
+ OrdinaryHasOwnMetadata: r,
650
+ OrdinaryGetOwnMetadata: n,
651
+ OrdinaryOwnMetadataKeys: i,
652
+ OrdinaryDeleteMetadata: a
653
+ };
654
+ return f;
655
+ }
656
+ function fe(e, t, r) {
657
+ var n = v.getProvider(e, t);
658
+ if (!D(n)) {
659
+ return n;
660
+ }
661
+ if (r) {
662
+ if (v.setProvider(e, t, p)) {
663
+ return p;
664
+ }
665
+ throw new Error("Illegal state.");
666
+ }
667
+ return undefined;
668
+ }
669
+ function oe() {
670
+ var e = {};
671
+ var t = [];
672
+ var r = function() {
673
+ function e(e, t, r) {
674
+ this._index = 0;
675
+ this._keys = e;
676
+ this._values = t;
677
+ this._selector = r;
678
+ }
679
+ e.prototype["@@iterator"] = function() {
680
+ return this;
177
681
  };
178
- t = {
179
- ...t,
180
- ...this.buildNameAndRegistrationPairFromOptions(s)
682
+ e.prototype[a] = function() {
683
+ return this;
181
684
  };
182
- } else {
183
- const s = u.As(e);
184
- t = {
185
- ...t,
186
- ...this.buildNameAndRegistrationPairFromOptions(s)
685
+ e.prototype.next = function() {
686
+ var e = this._index;
687
+ if (e >= 0 && e < this._keys.length) {
688
+ var r = this._selector(this._keys[e], this._values[e]);
689
+ if (e + 1 >= this._keys.length) {
690
+ this._index = -1;
691
+ this._keys = t;
692
+ this._values = t;
693
+ } else {
694
+ this._index++;
695
+ }
696
+ return {
697
+ value: r,
698
+ done: false
699
+ };
700
+ }
701
+ return {
702
+ value: undefined,
703
+ done: true
704
+ };
705
+ };
706
+ e.prototype.throw = function(e) {
707
+ if (this._index >= 0) {
708
+ this._index = -1;
709
+ this._keys = t;
710
+ this._values = t;
711
+ }
712
+ throw e;
713
+ };
714
+ e.prototype.return = function(e) {
715
+ if (this._index >= 0) {
716
+ this._index = -1;
717
+ this._keys = t;
718
+ this._values = t;
719
+ }
720
+ return {
721
+ value: e,
722
+ done: true
723
+ };
724
+ };
725
+ return e;
726
+ }();
727
+ var n = function() {
728
+ function t() {
729
+ this._keys = [];
730
+ this._values = [];
731
+ this._cacheKey = e;
732
+ this._cacheIndex = -2;
733
+ }
734
+ Object.defineProperty(t.prototype, "size", {
735
+ get: function() {
736
+ return this._keys.length;
737
+ },
738
+ enumerable: true,
739
+ configurable: true
740
+ });
741
+ t.prototype.has = function(e) {
742
+ return this._find(e, false) >= 0;
743
+ };
744
+ t.prototype.get = function(e) {
745
+ var t = this._find(e, false);
746
+ return t >= 0 ? this._values[t] : undefined;
747
+ };
748
+ t.prototype.set = function(e, t) {
749
+ var r = this._find(e, true);
750
+ this._values[r] = t;
751
+ return this;
752
+ };
753
+ t.prototype.delete = function(t) {
754
+ var r = this._find(t, false);
755
+ if (r >= 0) {
756
+ var n = this._keys.length;
757
+ for (var i = r + 1; i < n; i++) {
758
+ this._keys[i - 1] = this._keys[i];
759
+ this._values[i - 1] = this._values[i];
760
+ }
761
+ this._keys.length--;
762
+ this._values.length--;
763
+ if (X(t, this._cacheKey)) {
764
+ this._cacheKey = e;
765
+ this._cacheIndex = -2;
766
+ }
767
+ return true;
768
+ }
769
+ return false;
770
+ };
771
+ t.prototype.clear = function() {
772
+ this._keys.length = 0;
773
+ this._values.length = 0;
774
+ this._cacheKey = e;
775
+ this._cacheIndex = -2;
187
776
  };
777
+ t.prototype.keys = function() {
778
+ return new r(this._keys, this._values, i);
779
+ };
780
+ t.prototype.values = function() {
781
+ return new r(this._keys, this._values, u);
782
+ };
783
+ t.prototype.entries = function() {
784
+ return new r(this._keys, this._values, f);
785
+ };
786
+ t.prototype["@@iterator"] = function() {
787
+ return this.entries();
788
+ };
789
+ t.prototype[a] = function() {
790
+ return this.entries();
791
+ };
792
+ t.prototype._find = function(e, t) {
793
+ if (!X(this._cacheKey, e)) {
794
+ this._cacheIndex = -1;
795
+ for (var r = 0; r < this._keys.length; r++) {
796
+ if (X(this._keys[r], e)) {
797
+ this._cacheIndex = r;
798
+ break;
799
+ }
800
+ }
801
+ }
802
+ if (this._cacheIndex < 0 && t) {
803
+ this._cacheIndex = this._keys.length;
804
+ this._keys.push(e);
805
+ this._values.push(undefined);
806
+ }
807
+ return this._cacheIndex;
808
+ };
809
+ return t;
810
+ }();
811
+ return n;
812
+ function i(e, t) {
813
+ return e;
814
+ }
815
+ function u(e, t) {
816
+ return t;
817
+ }
818
+ function f(e, t) {
819
+ return [ e, t ];
188
820
  }
189
- }));
190
- if (s.length) {
191
- const e = await Promise.all(s);
192
- e.forEach((e => {
193
- t = {
194
- ...e,
195
- ...t
821
+ }
822
+ function se() {
823
+ var e = function() {
824
+ function e() {
825
+ this._map = new l;
826
+ }
827
+ Object.defineProperty(e.prototype, "size", {
828
+ get: function() {
829
+ return this._map.size;
830
+ },
831
+ enumerable: true,
832
+ configurable: true
833
+ });
834
+ e.prototype.has = function(e) {
835
+ return this._map.has(e);
196
836
  };
197
- }));
198
- }
199
- if (!T.IsEmptyObject(t)) {
200
- Object.getOwnPropertyNames(t).forEach((e => this.injectionNames.add(e)));
201
- Object.getOwnPropertySymbols(t).forEach((e => this.injectionNames.add(e)));
202
- this.#e.register(t);
203
- }
204
- }
205
- async get(e, t = {}) {
206
- const s = typeof e === "function" ? O.ConstructorSymbol(e) : e;
207
- if (!this.#e.hasRegistration(s) && typeof e === "function" && c.GetObjectIsAutoload(u.As(e))) {
208
- await this.load([ {
209
- id: s,
210
- class: u.As(e)
211
- } ]);
212
- }
213
- return (this.#e.getRegistration(s)?.lifetime === "SINGLETON" || this.#e.getRegistration(s)?.lifetime === "MODULE_SINGLETON") && !this.injectionNames.has(s) && this.parent ? await this.parent.get(s, t) : await this.processResolved(this.#e.resolve(s), s, t);
214
- }
215
- has(e) {
216
- if (typeof e === "function") return this.#e.hasRegistration(O.ConstructorSymbol(e));
217
- return this.#e.hasRegistration(e);
218
- }
219
- async set(e, t = {}) {
220
- await this.load([ {
221
- ...t,
222
- class: e
223
- } ]);
224
- return await this.get(e);
225
- }
226
- async register(e, t = {}) {
227
- await this.load([ {
228
- ...t,
229
- class: e
230
- } ]);
231
- }
232
- async build(e, t = {}) {
233
- const s = await this.processResolved(this.#e.build(e, this.buildResolverOptions(e)), O.ConstructorSymbol(e), t);
234
- R.AppendObjectWeakRefs(this.#e, s);
235
- return s;
236
- }
237
- createScope() {
238
- return new Container(this, this.owner());
239
- }
240
- registerContainerToItsParent() {
241
- if (this.parent) this.parent.#t.add(this);
242
- }
243
- async clear() {
244
- const e = [];
245
- this.#t.forEach((t => e.push(new Promise(((e, s) => t.destroy().then(e).catch(s))))));
246
- await Promise.all(e);
247
- await this.#e.dispose();
248
- const t = [];
249
- R.GetObjectWeakRefs(this.#e).forEach((e => {
250
- let s = e.deref();
251
- if (!s) return;
252
- if (s[B]) {
253
- t.push(new Promise((e => s ? Promise.resolve(s[B]()).then((() => {
254
- s = undefined;
255
- return e();
256
- })).catch(p.DevNull) : e())));
257
- }
258
- }));
259
- await Promise.all(t);
260
- R.ClearObjectWeakRefs(this.#e);
261
- }
262
- async destroy() {
263
- if (this.#s) return;
264
- this.#s = true;
265
- if (this.parent) this.parent.#t.delete(this);
266
- await this.clear();
267
- }
268
- }
269
-
270
- e.__decorate([ w.Accept(d.DTO.Array(d.DTO.Alternatives(exports.LoadObjectOptions.Schema(), d.DTO.Class((() => exports.BaseObject)), d.DTO.Glob()))), e.__metadata("design:type", Function), e.__metadata("design:paramtypes", [ Array ]), e.__metadata("design:returntype", Promise) ], Container.prototype, "load", null);
271
-
272
- const _ = Symbol("OBJECT.TYPE");
273
-
274
- exports.ObjectType = void 0;
275
-
276
- (function(e) {
277
- e["Unknown"] = "Unknown";
278
- e["Object"] = "Object";
279
- e["Provider"] = "Provider";
280
- e["Controller"] = "Controller";
281
- e["Component"] = "Component";
282
- e["Module"] = "Module";
283
- })(exports.ObjectType || (exports.ObjectType = {}));
284
-
285
- function D(e) {
286
- return t => v(t, e);
287
- }
288
-
289
- function v(e, t) {
290
- Reflect.defineMetadata(_, d.DTO.isValid(e, d.DTO.Class(exports.BaseObject)) ? t : exports.ObjectType.Unknown, e);
291
- return e;
292
- }
293
-
294
- function E(e) {
295
- if (Reflect.hasOwnMetadata(_, e)) return Reflect.getOwnMetadata(_, e);
296
- let t = exports.ObjectType.Unknown;
297
- for (const s of b.ObjectParentConstructors(e)) {
298
- if (Reflect.hasOwnMetadata(_, s)) {
299
- t = Reflect.getOwnMetadata(_, s);
300
- break;
301
- }
302
- }
303
- v(e, t);
304
- return E(e);
305
- }
306
-
307
- var q;
308
-
309
- var M;
310
-
311
- const L = Symbol("__init");
312
-
313
- const B = Symbol("__destroy");
314
-
315
- const G = Symbol("anonymous");
316
-
317
- const k = Symbol("OBJECT.SYMBOL.PROPERTY");
318
-
319
- exports.BaseObject = M = class BaseObject extends t.AsyncConstructor {
320
- #r;
321
- #i;
322
- #o=o.randomUUID();
323
- #n=false;
324
- async #a() {
325
- const e = n.GetConfigurableRecordsFromInstance(this);
326
- const t = [];
327
- a.GetObjectConfigurableProperties(this).forEach(((s, r) => {
328
- if (d.IsSymbol(r)) return;
329
- t.push(new Promise(((t, i) => {
330
- d.DTO.validateAsync(e[u.As(r)], s.schema, {
331
- targetName: r
332
- }).then((e => Promise.resolve(s.fn.bind(this)(e)).then((e => {
333
- this[r] = e;
334
- return t();
335
- })).catch(i))).catch(i);
336
- })));
337
- }));
338
- await Promise.all(t);
339
- }
340
- async #c() {
341
- const e = c.GetObjectInjectItemsByPrototype(this);
342
- const t = [];
343
- e.forEach(((e, s) => {
344
- const r = e.name;
345
- t.push(new Promise(((t, i) => {
346
- this.#r.get(r).then((r => {
347
- Promise.resolve(e.transform(r)).then((e => {
348
- Reflect.set(this, s, e);
349
- return t();
350
- })).catch(i);
351
- })).catch((e => i(new y.DependencyInjectionException("Unable to inject value for property {0} of {1} because: {2}", [ s, this.className, e.message ]))));
352
- })));
353
- }));
354
- await Promise.all(t);
355
- }
356
- #l() {
357
- const e = n.GetIdFromInstance(this);
358
- this.#i = e ? e : G;
359
- }
360
- constructor(e) {
361
- super((async () => {
362
- this.#l();
363
- const e = Object.getOwnPropertyDescriptor(this, "then");
364
- if (e) Object.defineProperty(this, "then", {
365
- enumerable: false
366
- });
367
- await this[L]();
368
- }));
369
- this.#r = new Container(e[A], this);
370
- l.SetObjectContainerGetter(this, this.#r);
371
- }
372
- static get className() {
373
- return this.name;
374
- }
375
- get className() {
376
- return h.ObjectConstructor(this).name;
377
- }
378
- async [L](...e) {
379
- this.#r.registerContainerToItsParent();
380
- if (!this.#n) {
381
- await this.#c();
382
- await this.#a();
383
- this.#n = true;
384
- }
385
- for (const t of e) await t();
386
- await this.init();
387
- }
388
- async [B](...e) {
389
- await this.#r.destroy();
390
- for (const t of e) await t();
391
- await this.destroy();
392
- }
393
- async init() {}
394
- async destroy() {}
395
- async getObject(e, t = {}) {
396
- return await this.#r.get(e, t);
397
- }
398
- async buildObject(e, t = {}) {
399
- return this.#r.build(e, t);
400
- }
401
- getParent() {
402
- return this.#r.parent?.owner();
403
- }
404
- getModule() {
405
- let e = this.getParent();
406
- while (e && E(u.As(h.ObjectConstructor(e))) !== exports.ObjectType.Module) {
407
- e = this.getParent();
408
- }
409
- return u.As(e);
410
- }
411
- get $uuid() {
412
- return this.#o;
413
- }
414
- get $id() {
415
- return this.#i;
416
- }
417
- get $symbol() {
418
- if (Reflect.hasOwnMetadata(k, this)) return Reflect.getOwnMetadata(k, this);
419
- Reflect.defineMetadata(k, Symbol(this.$uuid), this);
420
- return this.$symbol;
421
- }
422
- setProperty(e, t) {
423
- this[e] = t;
424
- }
425
- getProperty(e, t) {
426
- if (this.hasProperty(e)) return u.As(this[e]);
427
- return u.As(t);
428
- }
429
- hasProperty(e) {
430
- return typeof e === "string" ? this.propertyNames().includes(e) : this.propertySymbols().includes(e);
431
- }
432
- propertySymbols() {
433
- return Object.getOwnPropertySymbols(this);
434
- }
435
- propertyNames() {
436
- return Object.getOwnPropertyNames(this);
437
- }
438
- hasMethod(e) {
439
- const t = this.hasProperty(e);
440
- if (t) return false;
441
- return typeof this[e] === "function";
442
- }
443
- getMethod(e, t = false) {
444
- if (this.hasMethod(e)) {
445
- return (...t) => this[e](...t);
446
- } else if (t) {
447
- throw new r.MethodNotFoundException('Method "{methodName}" not found in "{className}"', {
448
- methodName: e,
449
- className: this.constructor.name
450
- });
451
- } else {
452
- return (...e) => p.DevNull(...e);
453
- }
454
- }
455
- async dispose() {
456
- await this.destroy();
457
- }
458
- };
459
-
460
- exports.BaseObject = M = e.__decorate([ s.Transient(), D(exports.ObjectType.Object), e.__metadata("design:paramtypes", [ Object ]) ], exports.BaseObject);
461
-
462
- exports.Container = Container;
463
-
464
- exports.DefineObjectType = D;
465
-
466
- exports.GetObjectType = E;
467
-
468
- exports.OBJECT_ID = I;
469
-
470
- exports.SetObjectType = v;
471
-
472
- exports.__destroy = B;
473
-
474
- exports.__init = L;
475
-
476
- exports.anonymousId = G;
477
-
478
- exports.containerSymbol = A;
479
-
480
- exports.ownerSymbol = N;
837
+ e.prototype.add = function(e) {
838
+ return this._map.set(e, e), this;
839
+ };
840
+ e.prototype.delete = function(e) {
841
+ return this._map.delete(e);
842
+ };
843
+ e.prototype.clear = function() {
844
+ this._map.clear();
845
+ };
846
+ e.prototype.keys = function() {
847
+ return this._map.keys();
848
+ };
849
+ e.prototype.values = function() {
850
+ return this._map.keys();
851
+ };
852
+ e.prototype.entries = function() {
853
+ return this._map.entries();
854
+ };
855
+ e.prototype["@@iterator"] = function() {
856
+ return this.keys();
857
+ };
858
+ e.prototype[a] = function() {
859
+ return this.keys();
860
+ };
861
+ return e;
862
+ }();
863
+ return e;
864
+ }
865
+ function ce() {
866
+ var e = 16;
867
+ var t = s.create();
868
+ var n = i();
869
+ return function() {
870
+ function e() {
871
+ this._key = i();
872
+ }
873
+ e.prototype.has = function(e) {
874
+ var t = a(e, false);
875
+ return t !== undefined ? s.has(t, this._key) : false;
876
+ };
877
+ e.prototype.get = function(e) {
878
+ var t = a(e, false);
879
+ return t !== undefined ? s.get(t, this._key) : undefined;
880
+ };
881
+ e.prototype.set = function(e, t) {
882
+ var r = a(e, true);
883
+ r[this._key] = t;
884
+ return this;
885
+ };
886
+ e.prototype.delete = function(e) {
887
+ var t = a(e, false);
888
+ return t !== undefined ? delete t[this._key] : false;
889
+ };
890
+ e.prototype.clear = function() {
891
+ this._key = i();
892
+ };
893
+ return e;
894
+ }();
895
+ function i() {
896
+ var e;
897
+ do {
898
+ e = "@@WeakMap@@" + o();
899
+ } while (s.has(t, e));
900
+ t[e] = true;
901
+ return e;
902
+ }
903
+ function a(e, t) {
904
+ if (!r.call(e, n)) {
905
+ if (!t) return undefined;
906
+ Object.defineProperty(e, n, {
907
+ value: s.create()
908
+ });
909
+ }
910
+ return e[n];
911
+ }
912
+ function u(e, t) {
913
+ for (var r = 0; r < t; ++r) e[r] = Math.random() * 255 | 0;
914
+ return e;
915
+ }
916
+ function f(e) {
917
+ if (typeof Uint8Array === "function") {
918
+ var t = new Uint8Array(e);
919
+ if (typeof crypto !== "undefined") {
920
+ crypto.getRandomValues(t);
921
+ } else if (typeof msCrypto !== "undefined") {
922
+ msCrypto.getRandomValues(t);
923
+ } else {
924
+ u(t, e);
925
+ }
926
+ return t;
927
+ }
928
+ return u(new Array(e), e);
929
+ }
930
+ function o() {
931
+ var t = f(e);
932
+ t[6] = t[6] & 79 | 64;
933
+ t[8] = t[8] & 191 | 128;
934
+ var r = "";
935
+ for (var n = 0; n < e; ++n) {
936
+ var i = t[n];
937
+ if (n === 4 || n === 6 || n === 8) r += "-";
938
+ if (i < 16) r += "0";
939
+ r += i.toString(16).toLowerCase();
940
+ }
941
+ return r;
942
+ }
943
+ }
944
+ function le(e) {
945
+ e.__ = undefined;
946
+ delete e.__;
947
+ return e;
948
+ }
949
+ }));
950
+ })(r || (r = {}));