@dooboostore/simple-boot-http-server 1.0.16 → 1.0.17

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 (453) hide show
  1. package/LICENSE.md +7 -0
  2. package/README.MD +6 -47
  3. package/dist/cjs/SimpleBootHttpServer.d.ts.map +1 -0
  4. package/dist/cjs/SimpleBootHttpServer.js +2 -0
  5. package/dist/cjs/SimpleBootHttpServer.js.LICENSE.txt +20 -0
  6. package/dist/cjs/codes/HttpHeaders.d.ts.map +1 -0
  7. package/dist/cjs/codes/HttpHeaders.js +1 -0
  8. package/dist/cjs/codes/HttpMethod.d.ts.map +1 -0
  9. package/dist/cjs/codes/HttpMethod.js +1 -0
  10. package/dist/cjs/codes/HttpStatus.d.ts +45 -0
  11. package/dist/cjs/codes/HttpStatus.d.ts.map +1 -0
  12. package/dist/cjs/codes/HttpStatus.js +1 -0
  13. package/dist/cjs/codes/Mimes.d.ts.map +1 -0
  14. package/dist/cjs/codes/Mimes.js +1 -0
  15. package/dist/cjs/codes/index.d.ts +5 -0
  16. package/dist/cjs/codes/index.d.ts.map +1 -0
  17. package/dist/cjs/codes/index.js +1 -0
  18. package/dist/cjs/decorators/MethodMapping.d.ts.map +1 -0
  19. package/dist/cjs/decorators/MethodMapping.js +2 -0
  20. package/dist/cjs/decorators/MethodMapping.js.LICENSE.txt +16 -0
  21. package/dist/cjs/decorators/index.d.ts +2 -0
  22. package/dist/cjs/decorators/index.d.ts.map +1 -0
  23. package/dist/cjs/decorators/index.js +2 -0
  24. package/dist/cjs/decorators/index.js.LICENSE.txt +16 -0
  25. package/dist/cjs/endpoints/CrossDomainHeaderEndPoint.d.ts.map +1 -0
  26. package/dist/cjs/endpoints/CrossDomainHeaderEndPoint.js +1 -0
  27. package/dist/cjs/endpoints/EndPoint.d.ts.map +1 -0
  28. package/dist/cjs/endpoints/EndPoint.js +1 -0
  29. package/dist/cjs/endpoints/HeaderEndPoint.d.ts.map +1 -0
  30. package/dist/cjs/endpoints/HeaderEndPoint.js +1 -0
  31. package/dist/cjs/endpoints/index.d.ts +4 -0
  32. package/dist/cjs/endpoints/index.d.ts.map +1 -0
  33. package/dist/cjs/endpoints/index.js +1 -0
  34. package/dist/cjs/errors/BadRequestError.d.ts.map +1 -0
  35. package/dist/cjs/errors/BadRequestError.js +1 -0
  36. package/dist/cjs/errors/ForbiddenError.d.ts.map +1 -0
  37. package/dist/cjs/errors/ForbiddenError.js +1 -0
  38. package/dist/cjs/errors/HttpError.d.ts.map +1 -0
  39. package/dist/cjs/errors/HttpError.js +1 -0
  40. package/dist/cjs/errors/InternalServerError.d.ts.map +1 -0
  41. package/dist/cjs/errors/InternalServerError.js +1 -0
  42. package/dist/cjs/errors/NotFoundError.d.ts.map +1 -0
  43. package/dist/cjs/errors/NotFoundError.js +1 -0
  44. package/dist/cjs/errors/UnauthorizedError.d.ts.map +1 -0
  45. package/dist/cjs/errors/UnauthorizedError.js +1 -0
  46. package/dist/cjs/errors/index.d.ts +7 -0
  47. package/dist/cjs/errors/index.d.ts.map +1 -0
  48. package/dist/cjs/errors/index.js +1 -0
  49. package/dist/cjs/filters/CacheFilter.d.ts.map +1 -0
  50. package/dist/cjs/filters/CacheFilter.js +1 -0
  51. package/dist/cjs/filters/Filter.d.ts.map +1 -0
  52. package/dist/cjs/filters/Filter.js +1 -0
  53. package/dist/cjs/filters/HttpStatusFilter.d.ts.map +1 -0
  54. package/dist/cjs/filters/HttpStatusFilter.js +1 -0
  55. package/dist/cjs/filters/OpenApi3Filter.d.ts.map +1 -0
  56. package/dist/cjs/filters/OpenApi3Filter.js +2 -0
  57. package/dist/cjs/filters/OpenApi3Filter.js.LICENSE.txt +16 -0
  58. package/dist/cjs/filters/ResourceFilter.d.ts.map +1 -0
  59. package/dist/cjs/filters/ResourceFilter.js +2 -0
  60. package/dist/cjs/filters/ResourceFilter.js.LICENSE.txt +13 -0
  61. package/dist/cjs/filters/ThrowFilter.d.ts.map +1 -0
  62. package/dist/cjs/filters/ThrowFilter.js +1 -0
  63. package/dist/cjs/filters/index.d.ts +7 -0
  64. package/dist/cjs/filters/index.d.ts.map +1 -0
  65. package/dist/cjs/filters/index.js +2 -0
  66. package/dist/cjs/filters/index.js.LICENSE.txt +30 -0
  67. package/dist/cjs/index.d.ts +13 -0
  68. package/dist/cjs/index.d.ts.map +1 -0
  69. package/dist/cjs/index.js +2 -0
  70. package/dist/cjs/index.js.LICENSE.txt +46 -0
  71. package/dist/cjs/inject/InjectSituationType.d.ts.map +1 -0
  72. package/dist/cjs/inject/InjectSituationType.js +1 -0
  73. package/dist/cjs/inject/index.d.ts +2 -0
  74. package/dist/cjs/inject/index.d.ts.map +1 -0
  75. package/dist/cjs/inject/index.js +1 -0
  76. package/dist/cjs/lifecycle/OnInit.d.ts.map +1 -0
  77. package/dist/cjs/lifecycle/OnInit.js +1 -0
  78. package/dist/cjs/lifecycle/index.d.ts +2 -0
  79. package/dist/cjs/lifecycle/index.d.ts.map +1 -0
  80. package/dist/cjs/lifecycle/index.js +1 -0
  81. package/{models → dist/cjs/models}/RequestResponse.d.ts +1 -3
  82. package/dist/cjs/models/RequestResponse.d.ts.map +1 -0
  83. package/dist/cjs/models/RequestResponse.js +1 -0
  84. package/dist/cjs/models/datas/HeaderData.d.ts.map +1 -0
  85. package/dist/cjs/models/datas/HeaderData.js +1 -0
  86. package/dist/cjs/models/datas/MultipartData.d.ts.map +1 -0
  87. package/dist/cjs/models/datas/MultipartData.js +1 -0
  88. package/dist/cjs/models/datas/ReqHeader.d.ts.map +1 -0
  89. package/dist/cjs/models/datas/ReqHeader.js +1 -0
  90. package/dist/cjs/models/datas/Resource.d.ts.map +1 -0
  91. package/dist/cjs/models/datas/Resource.js +2 -0
  92. package/dist/cjs/models/datas/Resource.js.LICENSE.txt +13 -0
  93. package/dist/cjs/models/datas/body/ReqFormUrlBody.d.ts.map +1 -0
  94. package/dist/cjs/models/datas/body/ReqFormUrlBody.js +1 -0
  95. package/dist/cjs/models/datas/body/ReqJsonBody.d.ts.map +1 -0
  96. package/dist/cjs/models/datas/body/ReqJsonBody.js +1 -0
  97. package/dist/cjs/models/datas/body/ReqMultipartFormBody.d.ts.map +1 -0
  98. package/dist/cjs/models/datas/body/ReqMultipartFormBody.js +1 -0
  99. package/dist/cjs/models/index.d.ts +10 -0
  100. package/dist/cjs/models/index.d.ts.map +1 -0
  101. package/dist/cjs/models/index.js +2 -0
  102. package/dist/cjs/models/index.js.LICENSE.txt +25 -0
  103. package/dist/cjs/models/method/patch/PatchJson.d.ts.map +1 -0
  104. package/dist/cjs/models/method/patch/PatchJson.js +2 -0
  105. package/dist/cjs/models/method/patch/PatchJson.js.LICENSE.txt +11 -0
  106. package/dist/cjs/option/HttpServerOption.d.ts.map +1 -0
  107. package/dist/cjs/option/HttpServerOption.js +1 -0
  108. package/dist/cjs/option/index.d.ts +2 -0
  109. package/dist/cjs/option/index.d.ts.map +1 -0
  110. package/dist/cjs/option/index.js +1 -0
  111. package/dist/cjs/package.json +3 -0
  112. package/dist/cjs/resolvers/Resolver.d.ts.map +1 -0
  113. package/dist/cjs/resolvers/Resolver.js +1 -0
  114. package/dist/cjs/resolvers/ResourceResorver.d.ts.map +1 -0
  115. package/dist/cjs/resolvers/ResourceResorver.js +2 -0
  116. package/dist/cjs/resolvers/ResourceResorver.js.LICENSE.txt +13 -0
  117. package/dist/cjs/resolvers/index.d.ts +3 -0
  118. package/dist/cjs/resolvers/index.d.ts.map +1 -0
  119. package/dist/cjs/resolvers/index.js +2 -0
  120. package/dist/cjs/resolvers/index.js.LICENSE.txt +13 -0
  121. package/dist/cjs/session/SessionManager.d.ts.map +1 -0
  122. package/dist/cjs/session/SessionManager.js +1 -0
  123. package/dist/cjs/session/index.d.ts +2 -0
  124. package/dist/cjs/session/index.d.ts.map +1 -0
  125. package/dist/cjs/session/index.js +1 -0
  126. package/dist/esm/SimpleBootHttpServer.d.ts +14 -0
  127. package/dist/esm/SimpleBootHttpServer.d.ts.map +1 -0
  128. package/dist/esm/SimpleBootHttpServer.js +2 -0
  129. package/dist/esm/SimpleBootHttpServer.js.LICENSE.txt +20 -0
  130. package/dist/esm/codes/HttpHeaders.d.ts +42 -0
  131. package/dist/esm/codes/HttpHeaders.d.ts.map +1 -0
  132. package/dist/esm/codes/HttpHeaders.js +1 -0
  133. package/dist/esm/codes/HttpMethod.d.ts +12 -0
  134. package/dist/esm/codes/HttpMethod.d.ts.map +1 -0
  135. package/dist/esm/codes/HttpMethod.js +1 -0
  136. package/dist/esm/codes/HttpStatus.d.ts +45 -0
  137. package/dist/esm/codes/HttpStatus.d.ts.map +1 -0
  138. package/dist/esm/codes/HttpStatus.js +1 -0
  139. package/dist/esm/codes/Mimes.d.ts +28 -0
  140. package/dist/esm/codes/Mimes.d.ts.map +1 -0
  141. package/dist/esm/codes/Mimes.js +1 -0
  142. package/dist/esm/codes/index.d.ts +5 -0
  143. package/dist/esm/codes/index.d.ts.map +1 -0
  144. package/dist/esm/codes/index.js +1 -0
  145. package/dist/esm/decorators/MethodMapping.d.ts +74 -0
  146. package/dist/esm/decorators/MethodMapping.d.ts.map +1 -0
  147. package/dist/esm/decorators/MethodMapping.js +2 -0
  148. package/dist/esm/decorators/MethodMapping.js.LICENSE.txt +16 -0
  149. package/dist/esm/decorators/index.d.ts +2 -0
  150. package/dist/esm/decorators/index.d.ts.map +1 -0
  151. package/dist/esm/decorators/index.js +2 -0
  152. package/dist/esm/decorators/index.js.LICENSE.txt +16 -0
  153. package/dist/esm/endpoints/CrossDomainHeaderEndPoint.d.ts +16 -0
  154. package/dist/esm/endpoints/CrossDomainHeaderEndPoint.d.ts.map +1 -0
  155. package/dist/esm/endpoints/CrossDomainHeaderEndPoint.js +1 -0
  156. package/dist/esm/endpoints/EndPoint.d.ts +7 -0
  157. package/dist/esm/endpoints/EndPoint.d.ts.map +1 -0
  158. package/dist/esm/endpoints/EndPoint.js +0 -0
  159. package/dist/esm/endpoints/HeaderEndPoint.d.ts +12 -0
  160. package/dist/esm/endpoints/HeaderEndPoint.d.ts.map +1 -0
  161. package/dist/esm/endpoints/HeaderEndPoint.js +1 -0
  162. package/dist/esm/endpoints/index.d.ts +4 -0
  163. package/dist/esm/endpoints/index.d.ts.map +1 -0
  164. package/dist/esm/endpoints/index.js +1 -0
  165. package/dist/esm/errors/BadRequestError.d.ts +8 -0
  166. package/dist/esm/errors/BadRequestError.d.ts.map +1 -0
  167. package/dist/esm/errors/BadRequestError.js +1 -0
  168. package/dist/esm/errors/ForbiddenError.d.ts +8 -0
  169. package/dist/esm/errors/ForbiddenError.d.ts.map +1 -0
  170. package/dist/esm/errors/ForbiddenError.js +1 -0
  171. package/dist/esm/errors/HttpError.d.ts +12 -0
  172. package/dist/esm/errors/HttpError.d.ts.map +1 -0
  173. package/dist/esm/errors/HttpError.js +1 -0
  174. package/dist/esm/errors/InternalServerError.d.ts +8 -0
  175. package/dist/esm/errors/InternalServerError.d.ts.map +1 -0
  176. package/dist/esm/errors/InternalServerError.js +1 -0
  177. package/dist/esm/errors/NotFoundError.d.ts +8 -0
  178. package/dist/esm/errors/NotFoundError.d.ts.map +1 -0
  179. package/dist/esm/errors/NotFoundError.js +1 -0
  180. package/dist/esm/errors/UnauthorizedError.d.ts +8 -0
  181. package/dist/esm/errors/UnauthorizedError.d.ts.map +1 -0
  182. package/dist/esm/errors/UnauthorizedError.js +1 -0
  183. package/dist/esm/errors/index.d.ts +7 -0
  184. package/dist/esm/errors/index.d.ts.map +1 -0
  185. package/dist/esm/errors/index.js +1 -0
  186. package/dist/esm/filters/CacheFilter.d.ts +45 -0
  187. package/dist/esm/filters/CacheFilter.d.ts.map +1 -0
  188. package/dist/esm/filters/CacheFilter.js +1 -0
  189. package/dist/esm/filters/Filter.d.ts +17 -0
  190. package/dist/esm/filters/Filter.d.ts.map +1 -0
  191. package/dist/esm/filters/Filter.js +0 -0
  192. package/dist/esm/filters/HttpStatusFilter.d.ts +20 -0
  193. package/dist/esm/filters/HttpStatusFilter.d.ts.map +1 -0
  194. package/dist/esm/filters/HttpStatusFilter.js +1 -0
  195. package/dist/esm/filters/OpenApi3Filter.d.ts +142 -0
  196. package/dist/esm/filters/OpenApi3Filter.d.ts.map +1 -0
  197. package/dist/esm/filters/OpenApi3Filter.js +2 -0
  198. package/dist/esm/filters/OpenApi3Filter.js.LICENSE.txt +16 -0
  199. package/dist/esm/filters/ResourceFilter.d.ts +24 -0
  200. package/dist/esm/filters/ResourceFilter.d.ts.map +1 -0
  201. package/dist/esm/filters/ResourceFilter.js +2 -0
  202. package/dist/esm/filters/ResourceFilter.js.LICENSE.txt +13 -0
  203. package/dist/esm/filters/ThrowFilter.d.ts +19 -0
  204. package/dist/esm/filters/ThrowFilter.d.ts.map +1 -0
  205. package/dist/esm/filters/ThrowFilter.js +1 -0
  206. package/dist/esm/filters/index.d.ts +7 -0
  207. package/dist/esm/filters/index.d.ts.map +1 -0
  208. package/dist/esm/filters/index.js +2 -0
  209. package/dist/esm/filters/index.js.LICENSE.txt +30 -0
  210. package/dist/esm/index.d.ts +13 -0
  211. package/dist/esm/index.d.ts.map +1 -0
  212. package/dist/esm/index.js +2 -0
  213. package/dist/esm/index.js.LICENSE.txt +46 -0
  214. package/dist/esm/inject/InjectSituationType.d.ts +4 -0
  215. package/dist/esm/inject/InjectSituationType.d.ts.map +1 -0
  216. package/dist/esm/inject/InjectSituationType.js +1 -0
  217. package/dist/esm/inject/index.d.ts +2 -0
  218. package/dist/esm/inject/index.d.ts.map +1 -0
  219. package/dist/esm/inject/index.js +1 -0
  220. package/dist/esm/lifecycle/OnInit.d.ts +5 -0
  221. package/dist/esm/lifecycle/OnInit.d.ts.map +1 -0
  222. package/dist/esm/lifecycle/OnInit.js +0 -0
  223. package/dist/esm/lifecycle/index.d.ts +2 -0
  224. package/dist/esm/lifecycle/index.d.ts.map +1 -0
  225. package/dist/esm/lifecycle/index.js +0 -0
  226. package/dist/esm/models/RequestResponse.d.ts +100 -0
  227. package/dist/esm/models/RequestResponse.d.ts.map +1 -0
  228. package/dist/esm/models/RequestResponse.js +1 -0
  229. package/dist/esm/models/datas/HeaderData.d.ts +10 -0
  230. package/dist/esm/models/datas/HeaderData.d.ts.map +1 -0
  231. package/dist/esm/models/datas/HeaderData.js +1 -0
  232. package/dist/esm/models/datas/MultipartData.d.ts +12 -0
  233. package/dist/esm/models/datas/MultipartData.d.ts.map +1 -0
  234. package/dist/esm/models/datas/MultipartData.js +0 -0
  235. package/dist/esm/models/datas/ReqHeader.d.ts +68 -0
  236. package/dist/esm/models/datas/ReqHeader.d.ts.map +1 -0
  237. package/dist/esm/models/datas/ReqHeader.js +1 -0
  238. package/dist/esm/models/datas/Resource.d.ts +11 -0
  239. package/dist/esm/models/datas/Resource.d.ts.map +1 -0
  240. package/dist/esm/models/datas/Resource.js +2 -0
  241. package/dist/esm/models/datas/Resource.js.LICENSE.txt +13 -0
  242. package/dist/esm/models/datas/body/ReqFormUrlBody.d.ts +4 -0
  243. package/dist/esm/models/datas/body/ReqFormUrlBody.d.ts.map +1 -0
  244. package/dist/esm/models/datas/body/ReqFormUrlBody.js +1 -0
  245. package/dist/esm/models/datas/body/ReqJsonBody.d.ts +4 -0
  246. package/dist/esm/models/datas/body/ReqJsonBody.d.ts.map +1 -0
  247. package/dist/esm/models/datas/body/ReqJsonBody.js +1 -0
  248. package/dist/esm/models/datas/body/ReqMultipartFormBody.d.ts +6 -0
  249. package/dist/esm/models/datas/body/ReqMultipartFormBody.d.ts.map +1 -0
  250. package/dist/esm/models/datas/body/ReqMultipartFormBody.js +1 -0
  251. package/dist/esm/models/index.d.ts +10 -0
  252. package/dist/esm/models/index.d.ts.map +1 -0
  253. package/dist/esm/models/index.js +2 -0
  254. package/dist/esm/models/index.js.LICENSE.txt +25 -0
  255. package/dist/esm/models/method/patch/PatchJson.d.ts +8 -0
  256. package/dist/esm/models/method/patch/PatchJson.d.ts.map +1 -0
  257. package/dist/esm/models/method/patch/PatchJson.js +2 -0
  258. package/dist/esm/models/method/patch/PatchJson.js.LICENSE.txt +11 -0
  259. package/dist/esm/option/HttpServerOption.d.ts +83 -0
  260. package/dist/esm/option/HttpServerOption.d.ts.map +1 -0
  261. package/dist/esm/option/HttpServerOption.js +1 -0
  262. package/dist/esm/option/index.d.ts +2 -0
  263. package/dist/esm/option/index.d.ts.map +1 -0
  264. package/dist/esm/option/index.js +1 -0
  265. package/dist/esm/resolvers/Resolver.d.ts +5 -0
  266. package/dist/esm/resolvers/Resolver.d.ts.map +1 -0
  267. package/dist/esm/resolvers/Resolver.js +0 -0
  268. package/dist/esm/resolvers/ResourceResorver.d.ts +6 -0
  269. package/dist/esm/resolvers/ResourceResorver.d.ts.map +1 -0
  270. package/dist/esm/resolvers/ResourceResorver.js +2 -0
  271. package/dist/esm/resolvers/ResourceResorver.js.LICENSE.txt +13 -0
  272. package/dist/esm/resolvers/index.d.ts +3 -0
  273. package/dist/esm/resolvers/index.d.ts.map +1 -0
  274. package/dist/esm/resolvers/index.js +2 -0
  275. package/dist/esm/resolvers/index.js.LICENSE.txt +13 -0
  276. package/dist/esm/session/SessionManager.d.ts +57 -0
  277. package/dist/esm/session/SessionManager.d.ts.map +1 -0
  278. package/dist/esm/session/SessionManager.js +1 -0
  279. package/dist/esm/session/index.d.ts +2 -0
  280. package/dist/esm/session/index.d.ts.map +1 -0
  281. package/dist/esm/session/index.js +1 -0
  282. package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js +2 -0
  283. package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js.LICENSE.txt +54 -0
  284. package/dist/umd-bundle/SimpleBootHttpServer.d.ts +14 -0
  285. package/dist/umd-bundle/SimpleBootHttpServer.d.ts.map +1 -0
  286. package/dist/umd-bundle/codes/HttpHeaders.d.ts +42 -0
  287. package/dist/umd-bundle/codes/HttpHeaders.d.ts.map +1 -0
  288. package/dist/umd-bundle/codes/HttpMethod.d.ts +12 -0
  289. package/dist/umd-bundle/codes/HttpMethod.d.ts.map +1 -0
  290. package/dist/umd-bundle/codes/HttpStatus.d.ts +45 -0
  291. package/dist/umd-bundle/codes/HttpStatus.d.ts.map +1 -0
  292. package/dist/umd-bundle/codes/Mimes.d.ts +28 -0
  293. package/dist/umd-bundle/codes/Mimes.d.ts.map +1 -0
  294. package/dist/umd-bundle/codes/index.d.ts +5 -0
  295. package/dist/umd-bundle/codes/index.d.ts.map +1 -0
  296. package/dist/umd-bundle/decorators/MethodMapping.d.ts +74 -0
  297. package/dist/umd-bundle/decorators/MethodMapping.d.ts.map +1 -0
  298. package/dist/umd-bundle/decorators/index.d.ts +2 -0
  299. package/dist/umd-bundle/decorators/index.d.ts.map +1 -0
  300. package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js +2 -0
  301. package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js.LICENSE.txt +54 -0
  302. package/dist/umd-bundle/endpoints/CrossDomainHeaderEndPoint.d.ts +16 -0
  303. package/dist/umd-bundle/endpoints/CrossDomainHeaderEndPoint.d.ts.map +1 -0
  304. package/dist/umd-bundle/endpoints/EndPoint.d.ts +7 -0
  305. package/dist/umd-bundle/endpoints/EndPoint.d.ts.map +1 -0
  306. package/dist/umd-bundle/endpoints/HeaderEndPoint.d.ts +12 -0
  307. package/dist/umd-bundle/endpoints/HeaderEndPoint.d.ts.map +1 -0
  308. package/dist/umd-bundle/endpoints/index.d.ts +4 -0
  309. package/dist/umd-bundle/endpoints/index.d.ts.map +1 -0
  310. package/dist/umd-bundle/errors/BadRequestError.d.ts +8 -0
  311. package/dist/umd-bundle/errors/BadRequestError.d.ts.map +1 -0
  312. package/dist/umd-bundle/errors/ForbiddenError.d.ts +8 -0
  313. package/dist/umd-bundle/errors/ForbiddenError.d.ts.map +1 -0
  314. package/dist/umd-bundle/errors/HttpError.d.ts +12 -0
  315. package/dist/umd-bundle/errors/HttpError.d.ts.map +1 -0
  316. package/dist/umd-bundle/errors/InternalServerError.d.ts +8 -0
  317. package/dist/umd-bundle/errors/InternalServerError.d.ts.map +1 -0
  318. package/dist/umd-bundle/errors/NotFoundError.d.ts +8 -0
  319. package/dist/umd-bundle/errors/NotFoundError.d.ts.map +1 -0
  320. package/dist/umd-bundle/errors/UnauthorizedError.d.ts +8 -0
  321. package/dist/umd-bundle/errors/UnauthorizedError.d.ts.map +1 -0
  322. package/dist/umd-bundle/errors/index.d.ts +7 -0
  323. package/dist/umd-bundle/errors/index.d.ts.map +1 -0
  324. package/dist/umd-bundle/filters/CacheFilter.d.ts +45 -0
  325. package/dist/umd-bundle/filters/CacheFilter.d.ts.map +1 -0
  326. package/dist/umd-bundle/filters/Filter.d.ts +17 -0
  327. package/dist/umd-bundle/filters/Filter.d.ts.map +1 -0
  328. package/dist/umd-bundle/filters/HttpStatusFilter.d.ts +20 -0
  329. package/dist/umd-bundle/filters/HttpStatusFilter.d.ts.map +1 -0
  330. package/dist/umd-bundle/filters/OpenApi3Filter.d.ts +142 -0
  331. package/dist/umd-bundle/filters/OpenApi3Filter.d.ts.map +1 -0
  332. package/dist/umd-bundle/filters/ResourceFilter.d.ts +24 -0
  333. package/dist/umd-bundle/filters/ResourceFilter.d.ts.map +1 -0
  334. package/dist/umd-bundle/filters/ThrowFilter.d.ts +19 -0
  335. package/dist/umd-bundle/filters/ThrowFilter.d.ts.map +1 -0
  336. package/dist/umd-bundle/filters/index.d.ts +7 -0
  337. package/dist/umd-bundle/filters/index.d.ts.map +1 -0
  338. package/dist/umd-bundle/index.d.ts +13 -0
  339. package/dist/umd-bundle/index.d.ts.map +1 -0
  340. package/dist/umd-bundle/inject/InjectSituationType.d.ts +4 -0
  341. package/dist/umd-bundle/inject/InjectSituationType.d.ts.map +1 -0
  342. package/dist/umd-bundle/inject/index.d.ts +2 -0
  343. package/dist/umd-bundle/inject/index.d.ts.map +1 -0
  344. package/dist/umd-bundle/lifecycle/OnInit.d.ts +5 -0
  345. package/dist/umd-bundle/lifecycle/OnInit.d.ts.map +1 -0
  346. package/dist/umd-bundle/lifecycle/index.d.ts +2 -0
  347. package/dist/umd-bundle/lifecycle/index.d.ts.map +1 -0
  348. package/dist/umd-bundle/models/RequestResponse.d.ts +100 -0
  349. package/dist/umd-bundle/models/RequestResponse.d.ts.map +1 -0
  350. package/dist/umd-bundle/models/datas/HeaderData.d.ts +10 -0
  351. package/dist/umd-bundle/models/datas/HeaderData.d.ts.map +1 -0
  352. package/dist/umd-bundle/models/datas/MultipartData.d.ts +12 -0
  353. package/dist/umd-bundle/models/datas/MultipartData.d.ts.map +1 -0
  354. package/dist/umd-bundle/models/datas/ReqHeader.d.ts +68 -0
  355. package/dist/umd-bundle/models/datas/ReqHeader.d.ts.map +1 -0
  356. package/dist/umd-bundle/models/datas/Resource.d.ts +11 -0
  357. package/dist/umd-bundle/models/datas/Resource.d.ts.map +1 -0
  358. package/dist/umd-bundle/models/datas/body/ReqFormUrlBody.d.ts +4 -0
  359. package/dist/umd-bundle/models/datas/body/ReqFormUrlBody.d.ts.map +1 -0
  360. package/dist/umd-bundle/models/datas/body/ReqJsonBody.d.ts +4 -0
  361. package/dist/umd-bundle/models/datas/body/ReqJsonBody.d.ts.map +1 -0
  362. package/dist/umd-bundle/models/datas/body/ReqMultipartFormBody.d.ts +6 -0
  363. package/dist/umd-bundle/models/datas/body/ReqMultipartFormBody.d.ts.map +1 -0
  364. package/dist/umd-bundle/models/index.d.ts +10 -0
  365. package/dist/umd-bundle/models/index.d.ts.map +1 -0
  366. package/dist/umd-bundle/models/method/patch/PatchJson.d.ts +8 -0
  367. package/dist/umd-bundle/models/method/patch/PatchJson.d.ts.map +1 -0
  368. package/dist/umd-bundle/option/HttpServerOption.d.ts +83 -0
  369. package/dist/umd-bundle/option/HttpServerOption.d.ts.map +1 -0
  370. package/dist/umd-bundle/option/index.d.ts +2 -0
  371. package/dist/umd-bundle/option/index.d.ts.map +1 -0
  372. package/dist/umd-bundle/resolvers/Resolver.d.ts +5 -0
  373. package/dist/umd-bundle/resolvers/Resolver.d.ts.map +1 -0
  374. package/dist/umd-bundle/resolvers/ResourceResorver.d.ts +6 -0
  375. package/dist/umd-bundle/resolvers/ResourceResorver.d.ts.map +1 -0
  376. package/dist/umd-bundle/resolvers/index.d.ts +3 -0
  377. package/dist/umd-bundle/resolvers/index.d.ts.map +1 -0
  378. package/dist/umd-bundle/session/SessionManager.d.ts +57 -0
  379. package/dist/umd-bundle/session/SessionManager.d.ts.map +1 -0
  380. package/dist/umd-bundle/session/index.d.ts +2 -0
  381. package/dist/umd-bundle/session/index.d.ts.map +1 -0
  382. package/package.json +57 -41
  383. package/SimpleBootHttpServer.js +0 -313
  384. package/codes/HttpHeaders.js +0 -43
  385. package/codes/HttpMethod.js +0 -13
  386. package/codes/HttpStatus.d.ts +0 -20
  387. package/codes/HttpStatus.js +0 -21
  388. package/codes/Mimes.js +0 -29
  389. package/decorators/MethodMapping.js +0 -198
  390. package/endpoints/CrossDomainHeaderEndPoint.js +0 -37
  391. package/endpoints/EndPoint.js +0 -2
  392. package/endpoints/HeaderEndPoint.js +0 -26
  393. package/errors/BadRequestError.js +0 -8
  394. package/errors/ForbiddenError.js +0 -8
  395. package/errors/HttpError.js +0 -8
  396. package/errors/InternalServerError.js +0 -8
  397. package/errors/NotFoundError.js +0 -8
  398. package/errors/UnauthorizedError.js +0 -8
  399. package/filters/CacheFilter.js +0 -145
  400. package/filters/Filter.js +0 -2
  401. package/filters/HttpStatusFilter.js +0 -31
  402. package/filters/OpenApi3Filter.js +0 -57
  403. package/filters/ResourceFilter.js +0 -72
  404. package/filters/ThrowFilter.js +0 -34
  405. package/inject/InjectSituationType.js +0 -5
  406. package/lifecycle/OnInit.js +0 -2
  407. package/models/RequestResponse.js +0 -467
  408. package/models/datas/HeaderData.js +0 -7
  409. package/models/datas/MultipartData.js +0 -2
  410. package/models/datas/ReqHeader.js +0 -3
  411. package/models/datas/Resource.js +0 -55
  412. package/models/datas/body/ReqFormUrlBody.js +0 -3
  413. package/models/datas/body/ReqJsonBody.js +0 -3
  414. package/models/datas/body/ReqMultipartFormBody.js +0 -6
  415. package/models/method/patch/PatchJson.js +0 -11
  416. package/option/HttpServerOption.js +0 -35
  417. package/resolvers/Resolver.js +0 -2
  418. package/resolvers/ResourceResorver.js +0 -18
  419. package/session/SessionManager.js +0 -108
  420. /package/{SimpleBootHttpServer.d.ts → dist/cjs/SimpleBootHttpServer.d.ts} +0 -0
  421. /package/{codes → dist/cjs/codes}/HttpHeaders.d.ts +0 -0
  422. /package/{codes → dist/cjs/codes}/HttpMethod.d.ts +0 -0
  423. /package/{codes → dist/cjs/codes}/Mimes.d.ts +0 -0
  424. /package/{decorators → dist/cjs/decorators}/MethodMapping.d.ts +0 -0
  425. /package/{endpoints → dist/cjs/endpoints}/CrossDomainHeaderEndPoint.d.ts +0 -0
  426. /package/{endpoints → dist/cjs/endpoints}/EndPoint.d.ts +0 -0
  427. /package/{endpoints → dist/cjs/endpoints}/HeaderEndPoint.d.ts +0 -0
  428. /package/{errors → dist/cjs/errors}/BadRequestError.d.ts +0 -0
  429. /package/{errors → dist/cjs/errors}/ForbiddenError.d.ts +0 -0
  430. /package/{errors → dist/cjs/errors}/HttpError.d.ts +0 -0
  431. /package/{errors → dist/cjs/errors}/InternalServerError.d.ts +0 -0
  432. /package/{errors → dist/cjs/errors}/NotFoundError.d.ts +0 -0
  433. /package/{errors → dist/cjs/errors}/UnauthorizedError.d.ts +0 -0
  434. /package/{filters → dist/cjs/filters}/CacheFilter.d.ts +0 -0
  435. /package/{filters → dist/cjs/filters}/Filter.d.ts +0 -0
  436. /package/{filters → dist/cjs/filters}/HttpStatusFilter.d.ts +0 -0
  437. /package/{filters → dist/cjs/filters}/OpenApi3Filter.d.ts +0 -0
  438. /package/{filters → dist/cjs/filters}/ResourceFilter.d.ts +0 -0
  439. /package/{filters → dist/cjs/filters}/ThrowFilter.d.ts +0 -0
  440. /package/{inject → dist/cjs/inject}/InjectSituationType.d.ts +0 -0
  441. /package/{lifecycle → dist/cjs/lifecycle}/OnInit.d.ts +0 -0
  442. /package/{models → dist/cjs/models}/datas/HeaderData.d.ts +0 -0
  443. /package/{models → dist/cjs/models}/datas/MultipartData.d.ts +0 -0
  444. /package/{models → dist/cjs/models}/datas/ReqHeader.d.ts +0 -0
  445. /package/{models → dist/cjs/models}/datas/Resource.d.ts +0 -0
  446. /package/{models → dist/cjs/models}/datas/body/ReqFormUrlBody.d.ts +0 -0
  447. /package/{models → dist/cjs/models}/datas/body/ReqJsonBody.d.ts +0 -0
  448. /package/{models → dist/cjs/models}/datas/body/ReqMultipartFormBody.d.ts +0 -0
  449. /package/{models → dist/cjs/models}/method/patch/PatchJson.d.ts +0 -0
  450. /package/{option → dist/cjs/option}/HttpServerOption.d.ts +0 -0
  451. /package/{resolvers → dist/cjs/resolvers}/Resolver.d.ts +0 -0
  452. /package/{resolvers → dist/cjs/resolvers}/ResourceResorver.d.ts +0 -0
  453. /package/{session → dist/cjs/session}/SessionManager.d.ts +0 -0
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * mime-db
3
+ * Copyright(c) 2014 Jonathan Ong
4
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
5
+ * MIT Licensed
6
+ */
7
+
8
+ /*!
9
+ * mime-types
10
+ * Copyright(c) 2014 Jonathan Ong
11
+ * Copyright(c) 2015 Douglas Christopher Wilson
12
+ * MIT Licensed
13
+ */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionManager.d.ts","sourceRoot":"","sources":["../../../src/session/SessionManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,qBAAa,cAAc;IAIX,OAAO,CAAC,MAAM;IAH1B,OAAO,CAAC,QAAQ,CAAqD;IAC9D,aAAa,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE;YAAC,KAAK,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;YAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;YAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;gBAAE,MAAM,EAAE,MAAM,CAAC;gBAAC,IAAI,CAAC,EAAE,GAAG,CAAA;aAAE,CAAC,CAAC;YAAC,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;gBAAE,MAAM,EAAE,MAAM,CAAC;gBAAC,IAAI,CAAC,EAAE,GAAG,CAAA;aAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;SAAC,CAAA;KAAE,CAAC;gBAEzQ,MAAM,EAAE,gBAAgB;IAatC,eAAe;IAQf,aAAa,CAAC,IAAI,EAAE,MAAM;IAQ1B,iBAAiB,CAAC,IAAI,EAAE,MAAM;gBAhCS,MAAM;eAAS,GAAG;;IAwCzD,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,GAAG,CAAA;KAAE;IAQ7E,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,GAAE,MAAmB;IAIlD,QAAQ;IAIF,OAAO,IAAI,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,GAAG,CAAA;SAAE,CAAA;KAAE,CAAC;IAC7E,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,GAAG,CAAA;SAAE,CAAA;KAAE,CAAC;IACzF,OAAO,CAAC,EAAE,EAAE,eAAe,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,GAAG,CAAA;SAAE,CAAA;KAAE,CAAC;CAyBzG"}
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={426:(t,e,r)=>{r.d(e,{T:()=>o});var i,n={d:(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},s={};n.d(s,{T:()=>i}),function(t){t.toString=function(t,e){return null==t?"":"string"==typeof t?t:t.toString(e?.encoding??"utf-8",e?.start,e?.end)},t.toBuffer=(t,e)=>"base64"===e?.encoding?(t=t.split(";base64,").pop()||"",Buffer.from(t,"base64")):Buffer.from(t)}(i||(i={}));const o=s.T},889:(t,e,r)=>{r.d(e,{n:()=>l});var i={9284:(t,e,r)=>{var i;r.d(e,{U:()=>i}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(i||(i={}))}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};s.d(o,{n:()=>a});var a,h=s(9284);!function(t){t.uniqueInts=(e,r,i)=>{const n=[];if(i>r-e)throw new Error("Count is greater than the range of unique integers");for(;n.length<i;){const i=t.int(e,r);n.includes(i)||n.push(i)}return n},t.chance=t=>{if(t<0||t>1)throw new Error("Percentage must be between 0 and 1");return Math.random()<t},t.int=(e,r)=>Math.floor(t.float(e,r)),t.float=(t,e)=>h.U.isNullOrUndefined(t)?Math.random():!h.U.isNullOrUndefined(t)&&h.U.isNullOrUndefined(e)?Math.random()*(t||0):Math.random()*((e||0)-(t||0))+(t||0),t.uuid=(t="xxxx-xxxx-xxxx-xxxx")=>t.replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),t.uuid4=()=>{let t,e="";for(t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e},t.hex=()=>{const t="0123456789ABCDEF".split("");let e="";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},t.rgb=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},t.rgba=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<8;r++)e+=t[Math.floor(16*Math.random())];return e},t.alphabet=t=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r}}(a||(a={}));const l=o.n},1022:(t,e,r)=>{r.d(e,{ReqJsonBody:()=>i});class i{}},3055:(t,e,r)=>{r.d(e,{i:()=>g});const i=require("node:module"),n=(0,i.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:os"),s=(0,i.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:fs"),o=(0,i.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:path");var a={9284:(t,e,r)=>{var i;r.d(e,{U:()=>i}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(i||(i={}))}},h={};function l(t){var e=h[t];if(void 0!==e)return e.exports;var r=h[t]={exports:{}};return a[t](r,r.exports,l),r.exports}l.d=(t,e)=>{for(var r in e)l.o(e,r)&&!l.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var c={};l.d(c,{n:()=>u});var u,d,y=l(9284);(d=u||(u={})).uniqueInts=(t,e,r)=>{const i=[];if(r>e-t)throw new Error("Count is greater than the range of unique integers");for(;i.length<r;){const r=d.int(t,e);i.includes(r)||i.push(r)}return i},d.chance=t=>{if(t<0||t>1)throw new Error("Percentage must be between 0 and 1");return Math.random()<t},d.int=(t,e)=>Math.floor(d.float(t,e)),d.float=(t,e)=>y.U.isNullOrUndefined(t)?Math.random():!y.U.isNullOrUndefined(t)&&y.U.isNullOrUndefined(e)?Math.random()*(t||0):Math.random()*((e||0)-(t||0))+(t||0),d.uuid=(t="xxxx-xxxx-xxxx-xxxx")=>t.replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),d.uuid4=()=>{let t,e="";for(t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e},d.hex=()=>{const t="0123456789ABCDEF".split("");let e="";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},d.rgb=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},d.rgba=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<8;r++)e+=t[Math.floor(16*Math.random())];return e},d.alphabet=t=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r};const p=c.n;var g;!function(t){class e{constructor(t){this._data=t,this.updateStats()}get originalName(){return this._data.originalName}get directory(){return this._data.path.substring(0,this._data.path.lastIndexOf("/"))}get fileName(){return this._data.path.substring(this._data.path.lastIndexOf("/")+1)}get path(){return this._data.path}get extension(){const t=this._data.path.substring(this._data.path.lastIndexOf(".")+1);return t.length>0?t:void 0}async updateStats(){const t=await s.promises.stat(this._data.path);this.size=t.size}async delete(){await s.promises.unlink(this._data.path),this._data.path="",this.size=void 0}async copy(t){await s.promises.copyFile(this._data.path,t),this._data.path=t,this.size=(await s.promises.stat(t)).size}async move(t){const e=t.substring(0,t.lastIndexOf("/"));await s.promises.mkdir(e,{recursive:!0}),await s.promises.rename(this._data.path,t),this._data.path=t,this.size=(await s.promises.stat(t)).size}async rename(t){const e=`${this.directory}/${t}`;await s.promises.rename(this._data.path,e),this.size=(await s.promises.stat(e)).size,this._data.path=e}}t.File=e,t.writeFile=async(t,r)=>(r.path??(r.path=`${n.tmpdir()}/${p.uuid4()}_${Date.now()}`),await s.promises.mkdir(r.path.substring(0,r.path.lastIndexOf("/")),{recursive:!0}),await s.promises.writeFile(r.path,t),new e({path:r.path,originalName:r.originalName})),t.path=t=>Array.isArray(t)?o.join(...t):t,t.existsSync=(e,r)=>{const i=t.path(e);return s.existsSync(i)?(r?.existes?.(i),!0):(r?.noExistes?.(i),!1)},t.mkdirSync=(e,r)=>{t.existsSync(e,{noExistes:t=>{s.mkdirSync(t,r)}})},t.mkdir=async(e,r)=>new Promise((i,n)=>{t.existsSync(e,{noExistes:t=>{s.mkdirSync(t,r),i(t)},existes:t=>{i(t)}})}),t.readSync=(e,r)=>{const i=t.path(e);return r?.option?s.readFileSync(i,r.option):s.readFileSync(i)},t.read=async(e,r)=>{const i=t.path(e);return s.readFile(i,r.option)},t.write=(e,r)=>{const i=t.path(r.path);return r.options?s.writeFileSync(i,e,r.options):s.writeFileSync(i,e),i},t.writeAppend=(e,r)=>{const i=t.path(r.path);return r.options?s.appendFileSync(i,e,r.options):s.appendFileSync(i,e),i},t.deleteSync=(e,r)=>{const i=t.path(e);t.existsSync(i)&&(r?.options?s.rmSync(i,r?.options):s.rmSync(i))},t.deleteDirSync=(e,r)=>{const i=t.path(e);t.existsSync(i)&&(r?.options?s.rmdirSync(i,r?.options):s.rmdirSync(i))},t.deleteFileSync=e=>{const r=t.path(e);t.existsSync(r)&&s.unlinkSync(r)},t.copySync=(e,r,i)=>{const n=t.path(e),o=t.path(r);s.cpSync(n,o,i)}}(g||(g={}))},3106:t=>{t.exports=require("zlib")},3500:(t,e,r)=>{r.d(e,{RequestResponse:()=>N});var i=r(7953),n={532:(t,e,r)=>{r.d(e,{r:()=>l});var i={3056:(t,e,r)=>{r.d(e,{$:()=>i});var i,n=r(9284);!function(t){t.deleteEnter=t=>t.replace(/\r?\n/g,""),t.pickEmoji=t=>t.match(/[\p{Emoji}]/gu)??[],t.regexExec=(t,e)=>{let r=t.exec(e);const i=[];for(;r;)i.push(r),r=t.exec(r.input);return i},t.regexExecArrayReplace=(e,r,i)=>((Array.isArray(r)?r:t.regexExec(r,e)).reverse().forEach(t=>{const r="string"==typeof i?i:i(t);e=e.substr(0,t.index)+e.substr(t.index).replace(t[0],r)}),e),t.escapeSpecialCharacterRegExp=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.trim=t=>t.trim(),t.rsubString=(t,e)=>t.substring(t.length-e,t.length),t.lsubString=(t,e)=>t.substring(0,e),t.lpad=(e,r,i)=>{for(;r>i.length;)i=e+i;return t.rsubString(i,r)},t.rpad=(e,r,i)=>{for(;r>i.length;)i+=e;return t.lsubString(i,r)},t.lappend=(t,e)=>{let r="",i=0;for(;i++<t;)r+=e;return r},t.unescape=t=>{if(!t)return"";const e={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿","#x27":"'"};return t.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(t,r)=>r.toLowerCase().split(";").map(r=>r in e?e[r]:t).join(""))},t.executeExpression=(t,e)=>t.replace(/\${([^{}]*)}/g,(t,r)=>String(e[r]??t)),t.ellipsis=(t,e)=>t.length>e?`${t.slice(0,e)}...`:t,t.appendPostposition=(t,{vowel:e,consonant:r})=>`${t}${n.U.lastConsonantLetter(t)?r:e}`}(i||(i={}))},9284:(t,e,r)=>{var i;r.d(e,{U:()=>i}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(i||(i={}))}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};s.d(o,{r:()=>a});var a,h=s(3056);!function(t){let e,r;t.bindExpression=(t,e)=>(t??"").replace(/\$\{([\s\S.]*?)\}/g,(t,r)=>{const[i,n]=r.split(":"),s=e[i];return s?"function"==typeof s?s(e[n]):s:""}),function(t){t.isExpression=t=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(t??""),t.expressionGroups=t=>h.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,t??"")}(e=t.Group||(t.Group={})),function(t){t.pathNameData=(t,e)=>{const r=t.split("/"),i=e.split("/");if(r.length!==i.length)return;const n={};for(let t=0;t<i.length;t++){const e=i[t],s=r[t],o=/^\{(.+)\}$/g.exec(e);if(!o){if(e!==s)return;continue}const[a,h]=o[1].split(":");if(h&&!new RegExp(h).test(s))return;n[a]=s}return n}}(r=t.Path||(t.Path={}))}(a||(a={}));const l=o.r}},s={};function o(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{J:()=>c,M:()=>h});var h,l=o(532);!function(t){t.DATA_PARAMETERS="DATA_PARAMETERS",t.INLINE_DATA_PARAMETERS="INLINE_DATA_PARAMETERS"}(h||(h={}));class c{constructor(t,e,r){if(this.uri=t,this.data=e,this.event=r,this.sessionData=new Map,"string"==typeof t){const e=t.match(/^Symbol\.for\((.+)\):\/(.*)$/);if(e){const t=Symbol.for(e[1]);this.uri={symbol:t,uri:e[2]}}}}get symbols(){if("object"==typeof this.uri)return Array.isArray(this.uri.symbol)?this.uri.symbol:[this.uri.symbol]}get scheme(){if("string"==typeof this.uri){const t=this.uri.split("://");return t.length>1?t[0]:void 0}}get paths(){return this.pathname.split("/")??[]}get fullPath(){const t=("string"==typeof this.uri?this.uri:this.uri.uri).split("://");return t[t.length>=2?1:0]??""}get pathname(){return this.fullPath.split("?")[0]}get query(){return this.fullPath.split("?")[1]??""}get queryParams(){const t={};return this.query.split("&")?.forEach(e=>{const r=e.split("=");t[r[0]]=r[1]}),t}get queryParamsAfterDecodeURI(){const t=this.queryParams;for(const e in t)t.hasOwnProperty(e)&&(t[e]=decodeURIComponent(t[e]));return t}getPathnameData(t){return l.r.Path.pathNameData(this.pathname,t)}get isSymbolScheme(){return void 0!==this.symbols}}const u=a.J;var d=r(7016);const y=require("buffer");var p=r(6377),g=r(1022),f=r(9434),m=r(5884),b=r(3055),x={2676:(t,e,r)=>{r.d(e,{B:()=>i});var i,n=r(7855),s=r(9284);!function(t){let e,r;t.constructorName=t=>t&&t.constructor&&t.constructor.name?t.constructor.name:t&&t.name?t.name:void 0,t.deepCopy=t=>t instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(t.entries())))):t instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(t.values())))):s.U.isNullOrUndefined(t)?t:JSON.parse(JSON.stringify(t)),t.allProtoTypeName=(e,r)=>{let i=[];if(e){const n=Object.getPrototypeOf(e);n&&(i=Object.keys(n)||[]).length>0&&(i=i.concat(t.allProtoTypeName(n,r)))}let n=i.filter(t=>"constructor"!==t);if(r&&e){const t=Object.getPrototypeOf(e);n=n.filter(e=>r(e,t?.[e]))}return n},t.uniqueKeys=t=>Array.from(new Set((Array.isArray(t)?t:[t]).flatMap(t=>Object.keys(t)))),t.ownPropertyNames=t=>{const e=[];if(t)if(t.prototype)e.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));else{const r=Object.getPrototypeOf(t);e.push(...Object.getOwnPropertyNames(r))}return e.filter(t=>"constructor"!==t)},t.protoTypeName=t=>{let e=[];if(t){const r=Object.getPrototypeOf(t);e=Object.keys(r)||[]}return e.filter(t=>"constructor"!==t)},t.protoTypes=t=>{const e=[];if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.push(r[t])})}return e},t.seal=t=>Object.seal(t),t.isPrototypeOfTarget=(t,e)=>!(!t||!e)&&Object.prototype.isPrototypeOf.call(t.prototype,e),t.prototypeOfDepth=(t,e)=>{let r=t;const i=[];if(e)do{if(r=Object.getPrototypeOf(r),r?.constructor===e)break;i.push(r)}while(r);return i},t.allProtoType=t=>{const e=(t,r=[])=>(t.prototype&&(r.push(t),e(Object.getPrototypeOf(t),r)),r);return e(t)},t.prototypeOf=t=>Object.getPrototypeOf(t),t.prototypeKeyMap=t=>{const e=new Map;if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.set(r[t],t)})}return e},t.prototypeName=(e,r)=>t.prototypeKeyMap(e).get(r),t.pickRandomKey=t=>{const e=Object.keys(t);return e[Math.floor(Math.random()*e.length)]},t.pickRandomValue=t=>{const e=Object.keys(t);return t[e[Math.floor(Math.random()*e.length)]]},t.pickRandomKeyValue=t=>{const e=Object.keys(t),r=e[Math.floor(Math.random()*e.length)];return{key:r,value:t[r]}},t.keyValues=t=>Object.keys(t).map(e=>({key:e,value:t[e]})),t.entries=t=>Object.entries(t),t.values=t=>Object.values(t),t.keys=t=>Object.keys(t),t.keyLength=e=>t.keys(e).length,t.toDeleteUndefinedAndNull=(t,e)=>{const r=t=>Array.isArray(t)?t.filter(t=>null!=t).map(r):t&&"object"==typeof t?e?.deep?Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e).map(([t,e])=>[t,r(e)])):Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e)):t;return r(t)},function(t){t.isFunctionScript=t=>t.trim().startsWith("function"),t.isArrowFunctionScript=t=>/^\s*\([^)]*\)\s*=>/.test(t),t.toOptionalChainPath=e=>{if(!e)return"";if(e.trim().startsWith("{")&&e.trim().endsWith("}"))return e;if(t.isFunctionScript(e)||t.isArrowFunctionScript(e))return e;if(e.includes(" ? ")&&e.includes(" : ")){const t=e.split(/(\s+\?\s+|\s+:\s+)/).map((t,e)=>{if(0===e){const e=t.match(/[^?.[\]]+|\[[^\]]*\]/g);if(e&&e.length>1)return e.join("?.")}return t});return t.join("")}if(e.includes("(")){const r=[];let i=e,n=0;const s=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let o;for(;null!==(o=s.exec(e));){const e=o[0],s=o[1],a=o[2],h=`__FUNC_CALL_${n}__`,l=`${s}?.(${a?t.toOptionalChainPath(a):""})`;r.push({original:e,processed:l,placeholder:h}),i=i.replace(e,h),n++}const a=i.match(/[^?.[\]]+|\[[^\]]*\]/g);let h="";h=a&&a.length>1?a.join("?."):i;for(const t of r)h=h.replace(t.placeholder,t.processed);return h}const r=e.match(/[^?.[\]]+|\[[^\]]*\]/g);return r?r.join("?."):e},t.removeOptionalChainOperator=t=>t?t.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const e=t=>{const e=[],r=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let i,n=0;const s=t.match(r);if(s&&(s?.index??0)>0)e.push(t.substring(0,s.index)),n=s.index;else if(!s&&t.length>0)return e.push(t),e;for(;null!==(i=r.exec(t));){if(i.index>n){const r=t.substring(n,i.index);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}i[1]?e.push(i[1]):i[2]?e.push(parseInt(i[2],10)):i[4]&&e.push(i[4]),n=r.lastIndex}if(n<t.length){const r=t.substring(n);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}return e};t.to=e=>{const r={};return Object.entries(e).forEach(([e,i])=>{t.set(r,e,i)}),r},t.set=(t,r,i)=>{const n=e(r);let s=t;for(let t=0;t<n.length;t++){const e=n[t];if(t===n.length-1)s[e]=i;else{const r=n[t+1];if("number"==typeof r){if(Array.isArray(s[e])||(s[e]=[]),Array.isArray(s[e]))for(;s[e].length<=r;)s[e].push({})}else"object"==typeof s[e]&&null!==s[e]||(s[e]={});s=s[e]}}},t.get=(t,r,i)=>{const n=e(r);let s=t;for(let t=0;t<n.length;t++){const e=n[t];if(null==s)return i;if("object"!=typeof s||null===s||!(e in s))return i;s=s[e]}return s},t.deletePath=(t,r)=>{const i=e(r);if(0===i.length)return!1;let n=t;for(let t=0;t<i.length-1;t++){const e=i[t];if(null==n)return!1;if("object"!=typeof n||null===n||!(e in n))return!1;n=n[e]}const s=i[i.length-1];return null!==n&&"object"==typeof n&&s in n&&(Array.isArray(n)&&"number"==typeof s?n.splice(s,1):delete n[s],!0)},t.availablePath=(t,e)=>{const r=[],i=t=>"number"==typeof t?"["+t+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?t:"['"+t+"']",n=(t,s,o)=>{null!==t&&"object"==typeof t&&(o.has(t)||(o.add(t),Array.isArray(t)?t.forEach((t,a)=>{const h=i(a),l=s?`${s}${h}`:h;e&&!e(l,t)||r.push(l),n(t,l,o)}):Object.keys(t).forEach(a=>{const h=i(a);let l;l=h.startsWith("[")?s?`${s}${h}`:h:s?`${s}.${h}`:h,e&&!e(l,t[a])||r.push(l),n(t[a],l,o)})))};return n(t,"",new Set),r},t.detectPathFromScript=(t,e)=>{const r=new Set;class i{constructor(t){this.prefix=t,this.usingVars=r}set(t,e,r,i){return!0}get(t,e,r){if("symbol"==typeof e)return this.createSafeProxy(this.prefix);let i;const n=String(e);return i=isNaN(Number(n))?this.prefix?`${this.prefix}.${n}`:n:this.prefix?`${this.prefix}[${n}]`:n,i&&this.usingVars.add(i),this.createSafeProxy(i)}apply(t,e,r){return this.createSafeProxy(this.prefix)}createSafeProxy(t){const e=new i(t);return new Proxy(()=>{},{get:(r,i,n)=>i===Symbol.toPrimitive?()=>"":"valueOf"===i?()=>e.createSafeProxy(t):"toString"===i?()=>"":e.get(r,i,n),set:e.set.bind(e),apply:e.apply.bind(e)})}}const n={window:new Proxy(()=>{},new i("window")),document:new Proxy(()=>{},new i("document")),console:new Proxy(()=>{},new i("console"))},s=new Proxy(()=>{},new i("this"));try{new Function("window","document","console",`"use strict"; ${t}; `).call(s,n.window,n.document,n.console)}catch(t){console.error("detectPathFromScript error:",t)}if(e?.excludeThis){const t=new Set;return r.forEach(e=>{"this"!==e&&(e.startsWith("this.")?t.add(e.substring(5)):t.add(e))}),t}return r}}(e=t.Path||(t.Path={})),t.toDeleteKey=(e,r)=>{const i={...e};return t.deleteKey(i,r),i},t.deleteKey=(t,e)=>{e.filter(t=>(0,n.O)(t)).forEach(e=>{delete t[e]})},function(t){t.evalReturn=(e,r={})=>{let i="",n="";return"object"==typeof e?(i=e.bodyScript,n=e.returnScript):n=e,t.eval(`${i}; return ${n} `,r)},t.eval=(t,e={})=>{try{return Function(`"use strict"; ${t} `).bind(e)()}catch(e){return console.error("eval error",e),void console.error(t)}}}(r=t.Script||(t.Script={}))}(i||(i={}))},3205:(t,e,r)=>{r.d(e,{O:()=>s});var i=r(7553),n=r(9244);class s extends i.M{constructor(t){super(),this.volume=0,this.mass=0,this.e=0,this.rotate=0,this.width=0,this.height=0,this.transform=[1,0,0,1,0,0],this.color={r:0,g:0,b:0,a:255},this.updateObjWithDefaults(t)}copyObj(){return new s({x:this.x,y:this.y,z:this.z,volume:this.volume,mass:this.mass,e:this.e,rotate:this.rotate,width:this.width,height:this.height,transform:[...this.transform],color:{...this.color},data:{...this.data}})}updateObjWithDefaults(t){if(t){this.x=t.x??this.x,this.y=t.y??this.y,this.z=t.z??this.z,this.volume=t.volume??this.volume,this.mass=t.mass??this.mass,this.e=t.e??this.e,this.rotate=t.rotate??this.rotate,this.width=t.width??this.width,this.height=t.height??this.height,this.transform=[...t.transform??this.transform],this.color={...t.color??this.color};const e=t.data??this.data;this.data=e?{...e}:void 0}}setObj(t){if(t){this.x=t.x??0,this.y=t.y??0,this.z=t.z??0,this.volume=t.volume??0,this.mass=t.mass??0,this.e=t.e??0,this.rotate=t.rotate??0,this.width=t.width??0,this.height=t.height??0,this.transform=[...t.transform??[1,0,0,1,0,0]],this.color={...t.color??{r:0,g:0,b:0,a:255}};const e=t.data;this.data=e?{...e}:void 0}}toRect(){return new n.r(this.x,this.y,this.width,this.height)}}},3599:(t,e,r)=>{r.d(e,{z:()=>i});var i,n=r(8741),s=r(7553),o=r(3205),a=r(4068);!function(t){t.getMinByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let i=1;i<t.length;i++)r=Math.min(r,t[i][e])}return r},t.hypot=(...t)=>Math.hypot(...t),t.pythagorean=(t,e)=>Math.sqrt(t*t+e*e),t.getMaxByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let i=1;i<t.length;i++)r=Math.max(r,t[i][e])}return r},t.sum=t=>t.reduce((t,e)=>t+e,0),t.avg=e=>e.length>0?t.sum(e)/e.length:0,t.minMax=(t,e)=>Math.min(Math.max(t,e.min),e.max),t.max=t=>t.length>0?Math.max(...t):void 0,t.min=t=>t.length>0?Math.min(...t):void 0,t.getSumByObjectArray=(t,e)=>{let r=0;if(e&&t&&t.length>0)for(let i=0;i<t.length;i++)r+=t[i][e];return r},t.radians=(t,{type:e="degreeAngle"})=>"ratio"===e?2*t*Math.PI:"percent"===e?t/100*2*Math.PI:t/180*Math.PI,t.degrees=(t,{type:e="degreeAngle"})=>"ratio"===e?360*t:"percent"===e?t/100*360:180*t/Math.PI,t.ratio=(t,e,r=1)=>r*(e/t),t.getBetweenLength=(t,e)=>e-t,t.getPercentByTotal=(t,e)=>e/t*100,t.getRatioByTotal=(t,e)=>e/t,t.getValueByTotalInPercent=(t,e)=>t*e/100,t.getValueByTotalInRatio=(t,e)=>t*e,t.getValuePercentUp=(t,e)=>t*(1+e/100),t.getValueRatioUp=(t,e)=>t*(1+e),t.getValuePercentDown=(t,e)=>t*(1-e/100),t.getValueRatioDown=(t,e)=>t*(1-e),t.beziers=(e,r)=>{const i=new Array(r).fill(void 0);for(let n=0;n<i.length;n++)i[n]=t.bezier(e,r,n);return i},t.bezier=(e,r,i)=>{if(e&&e.length>0){const o=e.map(t=>new s.M(t.x,t.y,t.z)),a=[];return o.reduce((t,e)=>{const n=t.toSub(e).div(r).mult(i+1);return a.push(t.toSub(n)),e}),a.length<=1?a[0]:t.bezier(a.map(t=>new n.M(t)),r,i)}return new s.M},t.cubicBezier=function(e,r,i){if(e.start instanceof o.O&&e.end instanceof o.O){const n=t.cubicBezier({start:e.start.x,end:e.end.x},r,i),s=t.cubicBezier({start:e.start.y,end:e.end.y},r,i),a=t.cubicBezier({start:e.start.z,end:e.end.z},r,i),h=t.cubicBezier({start:e.start.volume,end:e.end.volume},r,i),l=t.cubicBezier({start:e.start.mass,end:e.end.mass},r,i),c=t.cubicBezier({start:e.start.e,end:e.end.e},r,i),u=t.cubicBezier({start:e.start.rotate,end:e.end.rotate},r,i),d=t.cubicBezier({start:e.start.width,end:e.end.width},r,i),y=t.cubicBezier({start:e.start.height,end:e.end.height},r,i),p=t.cubicBezier({start:e.start.transform[0],end:e.end.transform[0]},r,i),g=t.cubicBezier({start:e.start.transform[1],end:e.end.transform[1]},r,i),f=t.cubicBezier({start:e.start.transform[2],end:e.end.transform[2]},r,i),m=t.cubicBezier({start:e.start.transform[3],end:e.end.transform[3]},r,i),b=t.cubicBezier({start:e.start.transform[4],end:e.end.transform[4]},r,i),x=t.cubicBezier({start:e.start.transform[5],end:e.end.transform[5]},r,i),S=t.cubicBezier({start:e.start.color.r??0,end:e.end.color.r??0},r,i),O=t.cubicBezier({start:e.start.color.g??0,end:e.end.color.g??0},r,i),w=t.cubicBezier({start:e.start.color.b??0,end:e.end.color.b??0},r,i),v=t.cubicBezier({start:e.start.color.a??255,end:e.end.color.a??255},r,i);return n.map((t,e)=>{const r=new o.O({x:t,y:s[e],z:a[e]});return r.volume=h[e],r.mass=l[e],r.e=c[e],r.rotate=u[e],r.width=d[e],r.height=y[e],r.transform=[p[e],g[e],f[e],m[e],b[e],x[e]],r.color={r:S[e],g:O[e],b:w[e],a:v[e]},r})}if(e.start instanceof n.M&&e.end instanceof n.M){const s=t.cubicBezier({start:e.start.x,end:e.end.x},r,i),o=t.cubicBezier({start:e.start.y,end:e.end.y},r,i),a=t.cubicBezier({start:e.start.z,end:e.end.z},r,i);return s.map((t,e)=>new n.M(t,o[e],a[e]))}const{start:s,end:a}=e,{frame:h}=r;let{p1x:l,p1y:c,p2x:u,p2y:d}=Array.isArray(i)?{p1x:i[0],p1y:i[1],p2x:i[2],p2y:i[3]}:i;l="random"===l?Math.random():l,c="random"===c?Math.random():c,u="random"===u?Math.random():u,d="random"===d?Math.random():d;const y=[],p=a-s,g=t=>{const e=Number(t*t),r=Number(e*t),i=Number(1-t),n=Number(i*i);return 0*Number(n*i)+3*n*t*Number(c)+3*i*e*Number(d)+1*r},f=h+1;for(let t=1;t<f;t++){const e=s+p*g(t/f);y.push(e)}return y},t.diff=(t,e)=>Math.abs(t-e),t.distSqToLineSegment=(t,e,r)=>{const i=(e.x-r.x)**2+(e.y-r.y)**2;if(0===i)return(t.x-e.x)**2+(t.y-e.y)**2;let n=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/i;n=Math.max(0,Math.min(1,n));const s=e.x+n*(r.x-e.x),o=e.y+n*(r.y-e.y);return(t.x-s)**2+(t.y-o)**2},t.rotatePoint=(t,e,r)=>{const i=t.x-e.x,n=t.y-e.y,s=i*Math.cos(r)-n*Math.sin(r),o=i*Math.sin(r)+n*Math.cos(r);return new a.P(s+e.x,o+e.y)}}(i||(i={}))},4068:(t,e,r)=>{r.d(e,{P:()=>i});class i{constructor(t,e){"object"==typeof t?(this.x=t.x??0,this.y=t.y??0):(this.x=t??0,this.y=e??0)}copy(){return new i(this.x,this.y)}}},5275:(t,e,r)=>{r.d(e,{s:()=>i});const i=t=>!!t&&"number"==typeof t.width&&"number"==typeof t.height},7553:(t,e,r)=>{r.d(e,{M:()=>s});var i=r(8741),n=r(4068);class s{constructor(t,e,r){t instanceof i.M?(this.x=t.x,this.y=t.y,this.z=t.z):"object"==typeof t?(this.x=t.x??0,this.y=t.y??0,this.z=t.z??0):(this.x=t??0,this.y=e??0,this.z=r??0)}set(t,e=0,r=0){return t instanceof s||t instanceof i.M?this.set(t.x||0,t.y||0,t.z||0):(this.x=t,this.y=e,this.z=r),this}get(){return new s(this.x,this.y,this.z)}mag(){const t=this.x,e=this.y,r=this.z;return Math.sqrt(t*t+e*e+r*r)}add(t,e=0,r=0){t instanceof s||t instanceof i.M?(this.x+=t.x,this.y+=t.y,this.z+=t.z):(this.x+=t,this.y+=e,this.z+=r)}toAdd(t,e){return new s(t.x+e.x,t.y+e.y,t.x+e.y)}sub(t,e=0,r=0){t instanceof s||t instanceof i.M?(this.x-=t.x,this.y-=t.y,this.z-=t.z):(this.x-=t,this.y-=e,this.z-=r)}toSub(t){const e=this;return new s(e.x-t.x,e.y-t.y,e.z-t.z)}mult(t){return t instanceof s||t instanceof i.M?(this.x*=t.x,this.y*=t.y,this.z*=t.z):(this.x*=t,this.y*=t,this.z*=t),this}toMult(t){const e=this;return new s(e.x*=t.x,e.y*=t.y,e.z*=t.z)}div(t){return t instanceof s||t instanceof i.M?(this.x/=t.x,this.y/=t.y,this.z/=t.z):(this.x/=t,this.y/=t,this.z/=t),this}toDiv(t){const e=this.get();return e.x/=t,e.y/=t,e.z/=t,e}dist(t){const e=this.x-t.x,r=this.y-t.y,i=this.z-t.z;return Math.sqrt(e*e+r*r+i*i)}toDist(t){const e=this,r=e.x-t.x,i=e.y-t.y,n=e.z-t.z;return Math.sqrt(r*r+i*i+n*n)}dot(t,e,r){return t instanceof s||t instanceof i.M?this.x*t.x+this.y*t.y+this.z*t.z:this.x*t+this.y*e+this.z*r}cross(t){const e=this.x,r=this.y,i=this.z;return new s(r*t.z-t.y*i,i*t.x-t.z*e,e*t.y-t.x*r)}normalize(){const t=this.mag();t>0&&this.div(t)}limit(t){this.mag()>t&&(this.normalize(),this.mult(t))}heading2D(){return-Math.atan2(-this.y,this.x)}random2D(){return this.fromAngle(Math.random()*(2*Math.PI))}fromAngle(t,e=1){return new s(e*Math.cos(t),e*Math.sin(t),0)}fromAngles(t,e,r=1){const i=Math.cos(e),n=Math.sin(e),o=Math.cos(t),a=Math.sin(t);return new s(r*a*n,-r*o,r*a*i)}array(){return[this.x,this.y,this.z]}toPoint3D(){return new i.M(this.x,this.y,this.z)}toPoint2D(){return new n.P(this.x,this.y)}copy(){return new s(this.x,this.y,this.z)}toString(){return"["+this.x+", "+this.y+", "+this.z+"]"}}},7855:(t,e,r)=>{r.d(e,{O:()=>i});const i=t=>null!=t},8741:(t,e,r)=>{r.d(e,{M:()=>s});var i=r(7553),n=r(4068);class s extends n.P{constructor(t,e,r){t instanceof i.M?(super(t.x,t.y),this.z=t.z):"object"==typeof t?(super({x:t.x??0,y:t.y??0}),this.z=t.z??0):(super(t,e),this.z=r??0)}copy(){return new s(this.x,this.y,this.z)}}},9244:(t,e,r)=>{r.d(e,{r:()=>o});var i=r(4068),n=r(3599),s=r(5275);class o{constructor(t,e,r=0,n=0){(0,s.s)(t)?(this._start=new i.P(0,0),this._width=t.width,this._height=t.height):"object"==typeof t&&"object"==typeof e?(this._start=t instanceof i.P?t:new i.P(t.x,t.y),this.end=e instanceof i.P?e:new i.P(e.x,e.y)):"object"==typeof t&&"number"==typeof e?(this._start=t instanceof i.P?t:new i.P(t.x,t.y),this._width=e,this._height=r):"number"==typeof t&&"number"==typeof e&&(this._start=new i.P(t,e),this._width=r,this._height=n)}valueLinkControl(t){let e,r=!1;var i;return"object"==typeof(i=t)&&"value"in i&&"noLink"in i?(e=t.value,r=t.noLink):e=t,{value:e,noLink:r}}get width(){return this._width}get height(){return this._height}get start(){return this._start.copy()}set width(t){this.setWidth(t)}setWidth(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=n.z.getPercentByTotal(this._width,e);this._width=e,this.applyWidthPercentLinks({value:i,noLink:r})}set height(t){this.setHeight(t)}setHeight(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=n.z.getPercentByTotal(this._height,e);this._height=e,this.applyHeightPercentLinks({value:i,noLink:r})}set start(t){let{value:e,noLink:r}=this.valueLinkControl(t);const s=new i.P({x:n.z.getPercentByTotal(this._start.x,e.x),y:n.z.getPercentByTotal(this._start.y,e.y)});this._start=e,this.applyStartPercentLinks({value:s,noLink:r})}setWidthFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=n.z.getPercentByTotal(this.start.x,e);this._start.x=this.end.x-e,this.applyStartXPercentLinks({value:i,noLink:r})}set widthFromEnd(t){this.setWidthFromEnd(t)}setHeightFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=this.end.y-e,s=n.z.getPercentByTotal(this.start.y,i);this._start.y=i,this.applyStartYPercentLinks({value:s,noLink:r})}set heightFromEnd(t){this.setHeightFromEnd(t)}setWidthFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=this.center.x-e/2,s=n.z.getPercentByTotal(this.start.x,i);this._start.x=i,this.applyStartXPercentLinks(s)}set widthFromCenter(t){this.setWidthFromCenter(t)}setHeightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=this.center.y-e/2,s=n.z.getPercentByTotal(this.start.y,i);this._start.y=i,this.applyStartYPercentLinks(s)}set heightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=this.center.y-e/2,s=n.z.getPercentByTotal(this.start.y,i);this._start.y=i,this.applyStartYPercentLinks(s)}set x(t){this.setX(t)}setX(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=e-this._start.x,s=n.z.getPercentByTotal(this.width,i);this._start.x=e,this.applyStartXPercentLinks({value:s,noLink:r})}set y(t){this.setY(t)}setY(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=e-this._start.y,s=n.z.getPercentByTotal(this.height,i);this._start.y=e,this.applyStartYPercentLinks({value:s,noLink:r})}applyWidthPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setWidthByWidthPercent({value:e,noLink:this})})}applyHeightPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setHeightByHeightPercent({value:e,noLink:this})})}applyStartPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.applyStartXPercentLinks({value:e.x,noLink:r}),this.applyStartYPercentLinks({value:e.y,noLink:r})}applyStartXPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addXByWidthPercent({value:e,noLink:this})})}applyStartYPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addYByHeightPercent({value:e,noLink:this})})}hasLink(t){return this.linkRects?.has(t)}isLinked(){return!!this.linkRects?.size}addLink(...t){this.linkRects??(this.linkRects=new Set),t.filter(t=>!this.linkRects?.has(t)).forEach(t=>{this.linkRects?.add(t),t.addLink(this)})}setLinks(t){this.unLinkAll(),this.addLink(...t)}unLinkAll(){this.linkRects&&(Array.from(this.linkRects.values()).forEach(t=>{this.unLink(t)}),this.linkRects.clear())}unLink(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.linkRects&&this.linkRects.delete(e),r||e.unLink({value:this,noLink:this})}addWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:this.width+n.z.getValueByTotalInPercent(this.width,e),noLink:r})}addHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:this.height+n.z.getValueByTotalInPercent(this.height,e),noLink:r})}addWidthRatio(t){this.width=this.width+n.z.getValueByTotalInRatio(this.width,t)}addHeightRatio(t){this.height=this.height+n.z.getValueByTotalInRatio(this.height,t)}addXPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+n.z.getValueByTotalInPercent(this.width,e),noLink:r})}addYPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+n.z.getValueByTotalInPercent(this.height,e),noLink:r})}addXRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+n.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+n.z.getValueByTotalInRatio(this.height,e),noLink:r})}set endX(t){const e=t-this.x;this.width=e}set endXPercent(t){this.endX=n.z.getValueByTotalInPercent(this.width,t)}set endYPercent(t){this.endY=n.z.getValueByTotalInPercent(this.height,t)}set endY(t){this.height=t-this.y}set end(t){this.width=t.x-this.x,this.height=t.y-this.y}get x(){return this.start.x}get y(){return this.start.y}get endX(){return this.end.x}get endY(){return this.end.y}to(t){const e=this.copy();return e.start=t,e}toRotate(t,{rotatePoint:e=this.center,type:r="degreeAngle"}){const s=n.z.radians(t,{type:r}),o=e instanceof i.P?e:new i.P(e.x,e.y);return[this.leftTop,this.rightTop,this.rightBottom,this.leftBottom].map(t=>n.z.rotatePoint(t,o,s))}get center(){return new i.P(this.start.x+this.width/2,this.start.y+this.height/2)}get end(){return new i.P(this.start.x+this.width,this.start.y+this.height)}get leftTop(){return this.start.copy()}get leftBottom(){return new i.P(this.start.x,this.end.y)}get rightTop(){return new i.P(this.end.x,this.start.y)}get rightBottom(){return this.end}copy(){return new o(this.x,this.y,this.width,this.height)}getWidthPercent(t){return n.z.getPercentByTotal(this.width,t)}getWidthRatio(t){return n.z.getRatioByTotal(this.width,t)}getWidthByPercent(t){return n.z.getValueByTotalInPercent(this.width,t)}getWidthByRatio(t){return n.z.getValueByTotalInRatio(this.width,t)}getHeightPercent(t){return n.z.getPercentByTotal(this.height,t)}getHeightRatio(t){return n.z.getRatioByTotal(this.height,t)}getHeightByPercent(t){return n.z.getValueByTotalInPercent(this.height,t)}getHeightByRatio(t){return n.z.getValueByTotalInRatio(this.height,t)}getXPercent(t){return n.z.getPercentByTotal(this.width,t-this.x)}getXRatio(t){return n.z.getRatioByTotal(this.width,t-this.x)}getXByPercent(t){return this.x+n.z.getValueByTotalInPercent(this.width,t)}getXByRatio(t){return this.x+n.z.getValueByTotalInRatio(this.width,t)}getYPercent(t){return n.z.getPercentByTotal(this.height,t-this.y)}getYRatio(t){return n.z.getRatioByTotal(this.height,t-this.y)}getYByPercent(t){return this.y+n.z.getValueByTotalInPercent(this.height,t)}getYByRatio(t){return this.y+n.z.getValueByTotalInRatio(this.height,t)}getPercent(t){return new i.P(this.getXPercent(t.x),this.getYPercent(t.y))}toScaleByWidth(t){const e=this.height/this.width;return new o(this.x,this.y,t,t*e)}toScaleByHeight(t){const e=this.width/this.height;return new o(this.x,this.y,t*e,t)}toRatio(t){return new o(this.getXRatio(t.x),this.getYRatio(t.y),this.getWidthRatio(t instanceof o?t.width:t.w),this.getHeightRatio(t instanceof o?t.height:t.h))}getRatio(t){return new i.P(this.getXRatio(t.x),this.getYRatio(t.y))}getByPercent(t){return new i.P(this.getXByPercent(t.x),this.getYByPercent(t.y))}getByRatio(t){return new i.P(this.getXByRatio(t.x),this.getYByRatio(t.y))}getDiffX(t){return t-this.x}getDiffY(t){return t-this.y}getDiffLeft(t){this.getDiffX(t)}getDiffTop(t){this.getDiffY(t)}getDiffRight(t){return t-this.end.x}getDiffBottom(t){return t-this.end.y}getDiffWidth(t){return t-this.width}getDiffHeight(t){return t-this.height}toDiff(t){return new o(t.x-this.x,t.y-this.y,t.width-this.width,t.height-this.height)}setXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:n.z.getValueByTotalInPercent(this.width,e),noLink:r})}set xByWidthPercent(t){this.setXByWidthPercent(t)}setXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:n.z.getValueByTotalInRatio(this.width,e),noLink:r})}set xByWidthRatio(t){this.setXByWidthRatio(t)}setYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:n.z.getValueByTotalInPercent(this.height,e),noLink:r})}set yByHeightPercent(t){this.setYByHeightPercent(t)}setYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:n.z.getValueByTotalInRatio(this.height,e),noLink:r})}set yByHeightRatio(t){this.setYByHeightRatio(t)}addXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+n.z.getValueByTotalInPercent(this.width,e),noLink:r})}addXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+n.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+n.z.getValueByTotalInPercent(this.height,e),noLink:r})}addYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+n.z.getValueByTotalInRatio(this.height,e),noLink:r})}setWidthByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:n.z.getValueByTotalInPercent(this.width,e),noLink:r})}set widthByWidthPercent(t){this.setWidthByWidthPercent(t)}setWidthByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:n.z.getValueByTotalInRatio(this.width,e),noLink:r})}set widthByWidthRatio(t){this.setWidthByWidthRatio(t)}setHeightByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:n.z.getValueByTotalInPercent(this.height,e),noLink:r})}set heightByHeightPercent(t){this.setHeightByHeightPercent(t)}setHeightByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:n.z.getValueByTotalInRatio(this.height,e),noLink:r})}set heightByHeightRatio(t){this.setHeightByHeightRatio(t)}copyByPercent(t,e){return new o(this.x,this.y,n.z.getValueByTotalInPercent(this.width,t),n.z.getValueByTotalInPercent(this.height,e??t))}copyByRatio(t,e){return new o(this.x,this.y,n.z.getValueByTotalInRatio(this.width,t),n.z.getValueByTotalInRatio(this.height,e??t))}isIn(t){return t instanceof o?this.isIn(t.start)&&this.isIn(t.end):t.x>=this.start.x&&t.x<=this.end.x&&t.y>=this.start.y&&t.y<=this.end.y}isOut(t){return t instanceof o?!this.isOverlap(t):!this.isIn(t)}isOverlap(t){return t instanceof o?!(this.endX<t.x||this.x>t.endX||this.endY<t.y||this.y>t.endY):this.isIn(t)}toString(){return`x:${this.x}, y:${this.y}, width: ${this.width}, height: ${this.height}`}}},9284:(t,e,r)=>{var i;r.d(e,{U:()=>i}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(i||(i={}))}},S={};function O(t){var e=S[t];if(void 0!==e)return e.exports;var r=S[t]={exports:{}};return x[t](r,r.exports,O),r.exports}O.d=(t,e)=>{for(var r in e)O.o(e,r)&&!O.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},O.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var w={};O.d(w,{T:()=>v});var v,k=O(9284),z=O(4068),A=O(8741),P=O(9244),j=O(2676);!function(t){t.objToGetURL=t=>Object.keys(t).reduce((e,r,i)=>`${e}${0!==i?"&":""}${r}=${t[r]}`,""),t.mapToJson=t=>JSON.stringify(Array.from(t.entries()).reduce((t,[e,r])=>(t[e]=r,t),{})),t.jsonToMap=t=>new Map(JSON.parse(t)),t.decodeURIString=t=>decodeURIComponent(t),t.objToStrMap=t=>{const e=new Map;for(const r of Object.keys(t))e.set(r,t[r]);return e},t.jsonToStrMap=e=>t.objToStrMap(JSON.parse(e)),t.strToObject=t=>JSON.parse(t),t.objToJson=t=>JSON.stringify(t),t.objToMap=t=>{const e=new Map;return Object.keys(t).forEach(r=>{e.set(r,t[r])}),e},t.mapToObj=t=>{const e={};return t.forEach((t,r)=>{e[r]=t}),e},t.snakeToCamelCase=t=>t.replace(/_([a-z])/g,(t,e)=>e.toUpperCase()),t.camelToSnakeCase=t=>t.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),t.toFormData=function(t){const e=new FormData;for(const r in t)e.append(r,t[r]);return e},t.toObject=function(e,r){if(e instanceof URLSearchParams){const t={};return e.forEach((e,i)=>{r?.firstValue&&void 0===t[i]?t[i]=e:r?.firstValue||(t[i]?Array.isArray(t[i])?t[i].push(e):t[i]=[t[i],e]:t[i]=e)}),t}if(e instanceof FormData){const t=t=>{const e={};for(const r of t.keys()){const i=t.getAll(r);e[r]=i.length>1?i:i[0]}return e};return t(e)}if(e&&"function"==typeof e[Symbol.iterator])return Object.fromEntries(e);if(Array.isArray(e))return Object.fromEntries(e);if(k.U.isMap(e)){const r=e;e=t.mapToObj(r)}if(k.U.isArray(e)){const r=e;for(let e=0;e<r.length;e++)r[e]=t.toObject(r[e])}if(k.U.isObject(e))for(const r in e)e[r]=t.toObject(e[r]);return e},t.toArray=t=>t instanceof Set?Array.from(t.values()):Array.isArray(t)?t:t?[t]:[],t.flatArray=(...t)=>t.flatMap(t=>t instanceof Object&&Symbol.iterator in t?Array.from(t):[t]),t.iteratorToArray=t=>Array.from(t),t.toJson=e=>{const r=t.toObject(e);return JSON.stringify(r)},t.concatenateToAttribute=e=>t.concatenateToString(e,"="," ","'"),t.concatenateToParameter=e=>t.concatenateToString(e,"=","&",""),t.concatenateToString=(t,e="=",r=" ",i="")=>{const n=[];for(const r in t){const s=t[r];s&&n.push(r.toString()+e+i+s+i)}return n.join(r)},t.specialCharsToEscape=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.decodeHTMLEscape=t=>t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&#x2F;/g,"/"),t.copyObject=(t,e={})=>({...t,...e}),t.copyArrayWithAddition=(t,e)=>[...t,...e||[]],t.hexToInt=t=>(t.startsWith("#")&&(t=t.slice(1)),3===t.length&&(t=t.split("").map(t=>t+t).join("")),parseInt(t,16)),t.toHex=t=>(t<0&&(t=4294967295+t+1),(t=Number(t.toFixed(0))).toString(16).padStart(2,"0").toUpperCase()),t.toHexColor=e=>`#${t.toHex(e.r??0)}${t.toHex(e.g??0)}${t.toHex(e.b??0)}${t.toHex(e.a??255)}`,t.avgColor=t=>{const e=t.reduce((t,e)=>(t.r+=e.r??0,t.g+=e.g??0,t.b+=e.b??0,t.a+=e.a??0,t),{r:0,g:0,b:0,a:0});return{r:Math.floor(e.r/t.length),g:Math.floor(e.g/t.length),b:Math.floor(e.b/t.length),a:Math.floor(e.a/t.length)}},t.toRGBA=t=>{t??(t="#000000FF");const e=t.replace("#","");return{r:parseInt(e.slice(0,2)||"0",16),g:parseInt(e.slice(2,4)||"0",16),b:parseInt(e.slice(4,6)||"0",16),a:e.length>6?parseInt(e.slice(6,8)||"0",16):255}},t.minMaxCenterAvg=t=>{const e={},r=j.B.uniqueKeys(t);for(const i of r){const r=t.map(t=>t[i]),n=Math.min(...r),s=Math.max(...r),o=(n+s)/2,a=r.reduce((t,e)=>t+e,0)/r.length;e[i]={min:n,max:s,center:o,avg:a,diff:s-n}}return e},t.minMaxCenterRectAvg2D=t=>{const e=new z.P(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),r=new z.P(Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);let i=new z.P(0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),i.x+=t.x,i.y+=t.y});const n=new z.P((e.x+r.x)/2,(e.y+r.y)/2),s=new z.P(i.x/t.length,i.y/t.length),o=new P.r(e.x,e.y,r.x-e.x,r.y-e.y);return{min:e,max:r,center:n,avg:s,minMaxRect:o}},t.minMaxCenterAvg3D=t=>{const e=new A.M(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),r=new A.M(Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE);let i=new A.M(0,0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),e.z=Math.max(e.z,t.z),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),r.z=Math.max(r.z,t.y),i.x+=t.x,i.y+=t.y,i.z+=t.z});const n=new A.M((e.x+r.x)/2,(e.y+r.y)/2,(e.z+r.z)/2),s=new A.M(i.x/t.length,i.y/t.length,i.z/t.length);return{min:e,max:r,center:n,avg:s}},t.roundRectRadiiToFullRadii=t=>t?1===t.length?[t[0]??0,t[0]??0,t[0]??0,t[0]??0]:2===t.length?[t[0]??0,t[1]??0,t[0]??0,t[1]??0]:3===t.length?[t[0]??0,t[1]??0,t[2]??0,t[1]??0]:t:[0,0,0,0],t.toArrayDirectionChange=t=>{if(!t||0===t.length||!t[0]||0===t[0].length)return[];const e=[],r=t[0].length,i=t.length;for(let n=0;n<r;n++){const r=[];for(let e=0;e<i;e++)r.push(t[e][n]);e.push(r)}return e},t.groupByMap=(t,e)=>t.reduce((t,r)=>{const i=e(r),n=t.get(i)||[];return n.push(r),t.set(i,n),t},new Map),t.groupByObject=(e,r)=>{const i=t.groupByMap(e,r);return Object.fromEntries(i)},t.toURLSearchParams=t=>{const e=new URLSearchParams;if("string"==typeof t)new URLSearchParams(t).forEach((t,r)=>{e.append(r,t)});else if("object"==typeof t){const r=t instanceof URLSearchParams?t.entries():Array.isArray(t)?t:Object.entries(t);for(const[t,i]of Array.from(r))Array.isArray(i)?i.forEach(r=>e.append(t,r)):e.append(t,i)}return e},t.stringJsonToKeyPairs=t=>Array.from(t.matchAll(/(\w+):\s*([^,}]+)/g)).map(t=>({key:t[1],value:t[2]}))}(v||(v={}));const M=w.T;var B=r(426);class N{constructor(t,e,r){t instanceof N?(this.req=t.req,this.res=t.res,this.config=r):(this.req=t,this.res=e,this.config=r)}get reqSocket(){return this.req.socket}get reqCookieMap(){let t=this.reqHeader(i.HttpHeaders.Cookie)??"";Array.isArray(t)&&(t=t.join(";"));const e=new Map;return t.split(";").map(t=>t.trim().split("=")).forEach(t=>{e.set(t[0],t[1])}),e}reqCookieGet(t){return this.reqCookieMap.get(t)}get reqRemoteAddress(){const t=this.req.headers["x-forwarded-for"];let e=this.req.socket.remoteAddress;return Array.isArray(t)?e=t.join(",").split(",").shift():"string"==typeof t&&(e=t.split(",").shift()),e}get reqUrlObject(){return new d.URL(this.reqUrl,`${this.reqSocket?"https://":"http"}${this.reqHost??"localhost"}`)}get reqUrlPathName(){return this.reqUrlObj().pathname??""}get reqUrl(){return this.req.url??""}reqUrlObj(t){return new d.URL(`${t?.scheme??"http"}://${t?.host?t?.host:this.reqHeaderFirst(i.HttpHeaders.Host)??"localhost"}${this.req.url??""}`)}get reqUrlSearchParamTuples(){return Array.from(this.reqUrlObj().searchParams)}get reqUrlSearchParams(){return this.reqUrlObj().searchParams}get reqUrlSearchParamsObj(){const t=this.reqUrlObj().searchParams;return M.toObject(t)}get reqPathSearchParamUrl(){const t=this.reqUrlObj();return t.pathname+(t.searchParams.toString()?"?"+t.searchParams.toString():"")}get reqReadable(){return this.req.readable}get reqIntent(){return new u(this.reqPathSearchParamUrl)}reqHasContentTypeHeader(t){return(this.reqHeaderFirst(i.HttpHeaders.ContentType)??"").toLowerCase().indexOf(t.toLocaleLowerCase())>-1}reqHasAcceptHeader(t){return(this.reqHeaderFirst(i.HttpHeaders.Accept)??"").toLowerCase().indexOf(t.toLocaleLowerCase())>-1}reqBodyData(){return new Promise((t,e)=>{if(this.reqReadable){const r=[];this.req.on("data",t=>r.push(t)),this.req.on("error",t=>e(t)),this.req.on("end",()=>{this.reqBodyChunk=y.Buffer.concat(r),t(this.reqBodyChunk)})}else t(this.reqBodyChunk??y.Buffer.alloc(0))})}resBodyData(){return this.resWriteChunk}async reqBodyMultipartFormDataObject(){const t=await this.reqBodyMultipartFormData(),e={};for(const r of t)if(r.isFile)e[r.name]=await b.i.writeFile(r.value,{originalName:r.filename});else{const t=e[r.name];Array.isArray(t)?t.push(r.value):e[r.name]="string"==typeof t?[t,r.value]:r.value}return e}reqBodyMultipartFormData(){return new Promise((t,e)=>{const r=this.req.headers["content-type"];if(!r||!r.startsWith("multipart/form-data"))return e(new Error("Invalid Content-Type. Expected multipart/form-data."));const i=r.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!i)return e(new Error("Boundary not found in Content-Type header."));const n=i[1]||i[2];if(!n)return e(new Error("Failed to extract boundary."));const s=y.Buffer.from(`--${n}`),o=y.Buffer.from("\r\n"),a=y.Buffer.from("\r\n\r\n"),h=[];let l=0;this.req.on("data",t=>{h.push(t),l+=t.length}),this.req.on("error",t=>{e(t)}),this.req.on("end",()=>{if(0===l)return t([]);const r=y.Buffer.concat(h,l),i=[];let n=0,c=r.indexOf(s,n);if(-1===c)return e(new Error("Initial boundary not found."));for(n=c+s.length,r.slice(n,n+o.length).equals(o)&&(n+=o.length);n<r.length;){const t=r.indexOf(s,n);if(-1===t)break;let e=t;e>o.length&&r.slice(e-o.length,e).equals(o)&&(e-=o.length);const h=r.slice(n,e),l=h.indexOf(a);if(-1===l){if(console.warn("Skipping malformed part: no header/body separator found."),n=t+s.length,r.slice(n,n+o.length).equals(o)&&(n+=o.length),"--"===r.slice(n,n+2).toString())break;continue}const c=h.slice(0,l),u=h.slice(l+a.length),d=c.toString("utf-8"),y={};d.split("\r\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const r=t.substring(0,e).trim().toLowerCase(),i=t.substring(e+1).trim();y[r]=i}});const p=y["content-disposition"];if(!p){if(console.warn("Skipping part: no Content-Disposition header."),n=t+s.length,r.slice(n,n+o.length).equals(o)&&(n+=o.length),"--"===r.slice(n,n+2).toString())break;continue}const g=p.match(/name="([^"]+)"/i),f=p.match(/filename="([^"]+)"/i),m=g?g[1]:null,b=f?f[1]:null,x=y["content-type"]||null;if(m){const t=!!b,e={name:m,isFile:t,filename:b,contentType:x,value:t?u:u.toString("utf-8")};i.push(e)}else console.warn("Skipping part: 'name' not found in Content-Disposition.");if(n=t+s.length,r.slice(n,n+o.length).equals(o)&&(n+=o.length),"--"===r.slice(n,n+2).toString())break}t(i)})})}async reqBodyStringData(){return(await this.reqBodyData()).toString()}async reqBodyJsonData(){return JSON.parse(await this.reqBodyStringData())}async reqBodyFormUrlData(){const t=await this.reqBodyStringData(),e={};return Array.from(new d.URLSearchParams(t).entries()).forEach(([t,r])=>{const i=e[t];Array.isArray(i)?i.push(r):e[t]="string"==typeof i?[i,r]:r}),e}async reqBodyReqFormUrlBody(){const t=await this.reqBodyFormUrlData();return Object.assign(new p.ReqFormUrlBody,t)}async reqBodyReqJsonBody(){const t=await this.reqBodyStringData();return Object.assign(new g.ReqJsonBody,t?JSON.parse(t):{})}resBodyJsonData(){const t=B.T.toString(this.resBodyData());return t?JSON.parse(t):null}resBodyStringData(){return B.T.toString(this.resBodyData())}reqMethod(){return this.req.method?.toUpperCase()}reqHeader(t){return this.req.headers[t.toLowerCase()]}get reqHost(){return this.reqHeaderFirst(i.HttpHeaders.Host)}get reqHeaderObj(){const t=new f.ReqHeader;return Object.entries(this.req.headers).forEach(([e,r])=>{t[e]=r}),t}reqHeaderFirst(t,e){const r=this.req.headers[t.toLowerCase()];return r&&Array.isArray(r)?r[0]??e:r??e}reqAuthorizationHeader(){return this.reqHeaderFirst(i.HttpHeaders.Authorization)}reqRefreshTokenHeader(){return this.reqHeaderFirst(i.HttpHeaders.Authorization)}resStatusCode(t){return t?(this.res.statusCode=t,new L(this.req,this.res,this.config,this.res.statusCode)):this.res.statusCode}resHeader(t){return this.res.getHeader(t.toLowerCase())}resHeaderFirst(t,e){const r=this.res.getHeader(t.toLowerCase());return r&&Array.isArray(r)?r[0]??e:r??e}async reqSession(){return this.config.sessionManager?(await this.config.sessionManager.session(this)).dataSet.data:Promise.reject(new Error("Not SessionManager"))}reqSessionSet(t,e){this.reqSession[t]=e}reqSessionGet(t){const e=this.reqSession;if(e)return e[t]}resSetStatusCode(t){return this.res.statusCode=t,this.createRequestResponseChain(this.res.statusCode)}resWrite(t,e="utf8"){return this.resWriteChunk=t,this.createRequestResponseChain(this.resWriteChunk)}resWriteJson(t,e="utf8"){return this.resWrite(JSON.stringify(t),e)}resSetHeader(t,e){return this.createRequestResponseChain(this.res.setHeader(t.toLowerCase(),e))}resAddHeader(t,e){const r=this.res.getHeader(t.toLowerCase()),i=Array.isArray(r)?r.concat(e):r?[r.toString(),...[].concat(e)]:e;return this.createRequestResponseChain(this.res.setHeader(t.toLowerCase(),i))}resSetHeaders(t){return Object.entries(t).forEach(([t,e])=>this.resSetHeader(t,e)),this.createRequestResponseChain()}resAddHeaders(t){return Object.entries(t).forEach(([t,e])=>this.resAddHeader(t,e)),this.createRequestResponseChain()}async resEndChunk(){const t=this.reqHeaderFirst(i.HttpHeaders.AcceptEncoding);let e=this.resWriteChunk;t?.includes("gzip")&&(e=await(0,m.gzip)(e),this.resSetHeader(i.HttpHeaders.ContentEncoding,"gzip")),this.res.end(e)}async resEnd(t){this.resWriteChunk=t??this.resWriteChunk,this.req.readable?(await this.reqBodyData(),await this.resEndChunk()):await this.resEndChunk()}resWriteHead(t,e){return this.createRequestResponseChain(this.res.writeHead(t,e))}resWriteHeadEnd(t,e){this.createRequestResponseChain(this.res.writeHead(t,e)),this.res.end()}resIsDone(){return this.res.finished||this.res.writableEnded||this.res.headersSent}createRequestResponseChain(t){const e=new L(this.req,this.res,this.config,t);return e.resWriteChunk=this.resWriteChunk,e.reqBodyChunk=this.reqBodyChunk,e}}class L extends N{constructor(t,e,r,i){super(t,e,r),this.result=i}}},5884:(t,e,r)=>{var i=r(3106);t.exports={gzip:function(t,e){return new Promise(function(r,n){i.gzip(t,e,function(t,e){t?n(Error(t)):r(e)})})},ungzip:function(t,e){return new Promise(function(r,n){i.gunzip(t,e,function(t,e){t?n(Error(t)):r(e)})})}}},6377:(t,e,r)=>{r.d(e,{ReqFormUrlBody:()=>i});class i{}},7016:t=>{t.exports=require("url")},7953:(t,e,r)=>{var i;r.d(e,{HttpHeaders:()=>i}),function(t){t.ContentLength="Content-Length",t.ContentType="Content-Type",t.ContentEncoding="Content-Encoding",t.Accept="Accept",t.Authorization="Authorization",t.CacheControl="Cache-Control",t.Connection="Connection",t.Date="Date",t.Host="Host",t.Pragma="Pragma",t.Trailer="Trailer",t.TransferEncoding="Transfer-Encoding",t.Upgrade="Upgrade",t.Via="Via",t.Warning="Warning",t.AcceptCharset="Accept-Charset",t.AcceptEncoding="Accept-Encoding",t.AcceptLanguage="Accept-Language",t.AccessControlAllowOrigin="Access-Control-Allow-Origin",t.AccessControlAllowMethods="Access-Control-Allow-Methods",t.AccessControlAllowHeaders="Access-Control-Allow-Headers",t.AccessControlExposeHeaders="Access-Control-Expose-Headers",t.Expect="Expect",t.From="From",t.MaxForwards="Max-Forwards",t.Referer="Referer",t.UserAgent="User-Agent",t.Cookie="Cookie",t.SetCookie="Set-Cookie",t.Cookie2="Cookie2",t.SetCookie2="Set-Cookie2",t.Location="Location",t.IfModifiedSince="If-Modified-Since",t.IfUnmodifiedSince="If-Unmodified-Since",t.IfMatch="If-Match",t.IfNoneMatch="If-None-Match",t.IfRange="If-Range",t.Allow="Allow",t.Server="Server"}(i||(i={}))},9434:(t,e,r)=>{r.d(e,{ReqHeader:()=>i});class i{}}},e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,r),s.exports}r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};r.r(i),r.d(i,{SessionManager:()=>o});var n=r(889),s=r(3500);class o{constructor(t){this.option=t,this.sessions=new Map,this.sessionOption=t.sessionOption,setInterval(async()=>{const t=await this.getSessionUUIDs();for(const e of t){const t=await this.getSessionDataSet(e);t&&this.isExpired(t.access)&&await this.deleteSession(e)}},this.sessionOption.expiredTime)}async getSessionUUIDs(){return this.sessionOption.provider?.uuids?this.sessionOption.provider.uuids():Array.from(this.sessions.keys())}async deleteSession(t){this.sessionOption.provider?.delete?this.sessionOption.provider.delete(t):this.sessions.delete(t)}async getSessionDataSet(t){return this.sessionOption.provider?.get?this.sessionOption.provider.get(t):this.sessions.get(t)}async setSessionDataSet(t,e){this.sessionOption.provider?.set?this.sessionOption.provider.set(t,e):this.sessions.set(t,e)}isExpired(t,e=Date.now()){return e-t>=this.option.sessionOption.expiredTime}makeUUID(){return n.n.uuid("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")}async session(t){let e;e=t instanceof s.RequestResponse?t.reqCookieGet(this.sessionOption.key)??this.makeUUID():"string"==typeof t?t:this.makeUUID();let r=await this.getSessionDataSet(e);const i=Date.now();return r?(this.isExpired(r.access,i)&&delete r.data,r.access=i):r={access:i},await this.setSessionDataSet(e,r),{uuid:e,dataSet:r}}}module.exports=i})();
@@ -0,0 +1,2 @@
1
+ export * from './SessionManager';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/session/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={426:(t,e,r)=>{r.d(e,{T:()=>o});var i,n={d:(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},s={};n.d(s,{T:()=>i}),function(t){t.toString=function(t,e){return null==t?"":"string"==typeof t?t:t.toString(e?.encoding??"utf-8",e?.start,e?.end)},t.toBuffer=(t,e)=>"base64"===e?.encoding?(t=t.split(";base64,").pop()||"",Buffer.from(t,"base64")):Buffer.from(t)}(i||(i={}));const o=s.T},889:(t,e,r)=>{r.d(e,{n:()=>l});var i={9284:(t,e,r)=>{var i;r.d(e,{U:()=>i}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(i||(i={}))}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};s.d(o,{n:()=>a});var a,h=s(9284);!function(t){t.uniqueInts=(e,r,i)=>{const n=[];if(i>r-e)throw new Error("Count is greater than the range of unique integers");for(;n.length<i;){const i=t.int(e,r);n.includes(i)||n.push(i)}return n},t.chance=t=>{if(t<0||t>1)throw new Error("Percentage must be between 0 and 1");return Math.random()<t},t.int=(e,r)=>Math.floor(t.float(e,r)),t.float=(t,e)=>h.U.isNullOrUndefined(t)?Math.random():!h.U.isNullOrUndefined(t)&&h.U.isNullOrUndefined(e)?Math.random()*(t||0):Math.random()*((e||0)-(t||0))+(t||0),t.uuid=(t="xxxx-xxxx-xxxx-xxxx")=>t.replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),t.uuid4=()=>{let t,e="";for(t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e},t.hex=()=>{const t="0123456789ABCDEF".split("");let e="";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},t.rgb=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},t.rgba=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<8;r++)e+=t[Math.floor(16*Math.random())];return e},t.alphabet=t=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r}}(a||(a={}));const l=o.n},1022:(t,e,r)=>{r.d(e,{ReqJsonBody:()=>i});class i{}},1262:(t,e,r)=>{r.d(e,{SessionManager:()=>s});var i=r(889),n=r(3500);class s{constructor(t){this.option=t,this.sessions=new Map,this.sessionOption=t.sessionOption,setInterval(async()=>{const t=await this.getSessionUUIDs();for(const e of t){const t=await this.getSessionDataSet(e);t&&this.isExpired(t.access)&&await this.deleteSession(e)}},this.sessionOption.expiredTime)}async getSessionUUIDs(){return this.sessionOption.provider?.uuids?this.sessionOption.provider.uuids():Array.from(this.sessions.keys())}async deleteSession(t){this.sessionOption.provider?.delete?this.sessionOption.provider.delete(t):this.sessions.delete(t)}async getSessionDataSet(t){return this.sessionOption.provider?.get?this.sessionOption.provider.get(t):this.sessions.get(t)}async setSessionDataSet(t,e){this.sessionOption.provider?.set?this.sessionOption.provider.set(t,e):this.sessions.set(t,e)}isExpired(t,e=Date.now()){return e-t>=this.option.sessionOption.expiredTime}makeUUID(){return i.n.uuid("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")}async session(t){let e;e=t instanceof n.RequestResponse?t.reqCookieGet(this.sessionOption.key)??this.makeUUID():"string"==typeof t?t:this.makeUUID();let r=await this.getSessionDataSet(e);const i=Date.now();return r?(this.isExpired(r.access,i)&&delete r.data,r.access=i):r={access:i},await this.setSessionDataSet(e,r),{uuid:e,dataSet:r}}}},3055:(t,e,r)=>{r.d(e,{i:()=>g});const i=require("node:module"),n=(0,i.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:os"),s=(0,i.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:fs"),o=(0,i.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:path");var a={9284:(t,e,r)=>{var i;r.d(e,{U:()=>i}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(i||(i={}))}},h={};function l(t){var e=h[t];if(void 0!==e)return e.exports;var r=h[t]={exports:{}};return a[t](r,r.exports,l),r.exports}l.d=(t,e)=>{for(var r in e)l.o(e,r)&&!l.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var c={};l.d(c,{n:()=>u});var u,d,y=l(9284);(d=u||(u={})).uniqueInts=(t,e,r)=>{const i=[];if(r>e-t)throw new Error("Count is greater than the range of unique integers");for(;i.length<r;){const r=d.int(t,e);i.includes(r)||i.push(r)}return i},d.chance=t=>{if(t<0||t>1)throw new Error("Percentage must be between 0 and 1");return Math.random()<t},d.int=(t,e)=>Math.floor(d.float(t,e)),d.float=(t,e)=>y.U.isNullOrUndefined(t)?Math.random():!y.U.isNullOrUndefined(t)&&y.U.isNullOrUndefined(e)?Math.random()*(t||0):Math.random()*((e||0)-(t||0))+(t||0),d.uuid=(t="xxxx-xxxx-xxxx-xxxx")=>t.replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),d.uuid4=()=>{let t,e="";for(t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e},d.hex=()=>{const t="0123456789ABCDEF".split("");let e="";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},d.rgb=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},d.rgba=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<8;r++)e+=t[Math.floor(16*Math.random())];return e},d.alphabet=t=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let r="";for(let i=0;i<t;i++)r+=e[Math.floor(Math.random()*e.length)];return r};const p=c.n;var g;!function(t){class e{constructor(t){this._data=t,this.updateStats()}get originalName(){return this._data.originalName}get directory(){return this._data.path.substring(0,this._data.path.lastIndexOf("/"))}get fileName(){return this._data.path.substring(this._data.path.lastIndexOf("/")+1)}get path(){return this._data.path}get extension(){const t=this._data.path.substring(this._data.path.lastIndexOf(".")+1);return t.length>0?t:void 0}async updateStats(){const t=await s.promises.stat(this._data.path);this.size=t.size}async delete(){await s.promises.unlink(this._data.path),this._data.path="",this.size=void 0}async copy(t){await s.promises.copyFile(this._data.path,t),this._data.path=t,this.size=(await s.promises.stat(t)).size}async move(t){const e=t.substring(0,t.lastIndexOf("/"));await s.promises.mkdir(e,{recursive:!0}),await s.promises.rename(this._data.path,t),this._data.path=t,this.size=(await s.promises.stat(t)).size}async rename(t){const e=`${this.directory}/${t}`;await s.promises.rename(this._data.path,e),this.size=(await s.promises.stat(e)).size,this._data.path=e}}t.File=e,t.writeFile=async(t,r)=>(r.path??(r.path=`${n.tmpdir()}/${p.uuid4()}_${Date.now()}`),await s.promises.mkdir(r.path.substring(0,r.path.lastIndexOf("/")),{recursive:!0}),await s.promises.writeFile(r.path,t),new e({path:r.path,originalName:r.originalName})),t.path=t=>Array.isArray(t)?o.join(...t):t,t.existsSync=(e,r)=>{const i=t.path(e);return s.existsSync(i)?(r?.existes?.(i),!0):(r?.noExistes?.(i),!1)},t.mkdirSync=(e,r)=>{t.existsSync(e,{noExistes:t=>{s.mkdirSync(t,r)}})},t.mkdir=async(e,r)=>new Promise((i,n)=>{t.existsSync(e,{noExistes:t=>{s.mkdirSync(t,r),i(t)},existes:t=>{i(t)}})}),t.readSync=(e,r)=>{const i=t.path(e);return r?.option?s.readFileSync(i,r.option):s.readFileSync(i)},t.read=async(e,r)=>{const i=t.path(e);return s.readFile(i,r.option)},t.write=(e,r)=>{const i=t.path(r.path);return r.options?s.writeFileSync(i,e,r.options):s.writeFileSync(i,e),i},t.writeAppend=(e,r)=>{const i=t.path(r.path);return r.options?s.appendFileSync(i,e,r.options):s.appendFileSync(i,e),i},t.deleteSync=(e,r)=>{const i=t.path(e);t.existsSync(i)&&(r?.options?s.rmSync(i,r?.options):s.rmSync(i))},t.deleteDirSync=(e,r)=>{const i=t.path(e);t.existsSync(i)&&(r?.options?s.rmdirSync(i,r?.options):s.rmdirSync(i))},t.deleteFileSync=e=>{const r=t.path(e);t.existsSync(r)&&s.unlinkSync(r)},t.copySync=(e,r,i)=>{const n=t.path(e),o=t.path(r);s.cpSync(n,o,i)}}(g||(g={}))},3106:t=>{t.exports=require("zlib")},3500:(t,e,r)=>{r.d(e,{RequestResponse:()=>N});var i=r(7953),n={532:(t,e,r)=>{r.d(e,{r:()=>l});var i={3056:(t,e,r)=>{r.d(e,{$:()=>i});var i,n=r(9284);!function(t){t.deleteEnter=t=>t.replace(/\r?\n/g,""),t.pickEmoji=t=>t.match(/[\p{Emoji}]/gu)??[],t.regexExec=(t,e)=>{let r=t.exec(e);const i=[];for(;r;)i.push(r),r=t.exec(r.input);return i},t.regexExecArrayReplace=(e,r,i)=>((Array.isArray(r)?r:t.regexExec(r,e)).reverse().forEach(t=>{const r="string"==typeof i?i:i(t);e=e.substr(0,t.index)+e.substr(t.index).replace(t[0],r)}),e),t.escapeSpecialCharacterRegExp=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.trim=t=>t.trim(),t.rsubString=(t,e)=>t.substring(t.length-e,t.length),t.lsubString=(t,e)=>t.substring(0,e),t.lpad=(e,r,i)=>{for(;r>i.length;)i=e+i;return t.rsubString(i,r)},t.rpad=(e,r,i)=>{for(;r>i.length;)i+=e;return t.lsubString(i,r)},t.lappend=(t,e)=>{let r="",i=0;for(;i++<t;)r+=e;return r},t.unescape=t=>{if(!t)return"";const e={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿","#x27":"'"};return t.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(t,r)=>r.toLowerCase().split(";").map(r=>r in e?e[r]:t).join(""))},t.executeExpression=(t,e)=>t.replace(/\${([^{}]*)}/g,(t,r)=>String(e[r]??t)),t.ellipsis=(t,e)=>t.length>e?`${t.slice(0,e)}...`:t,t.appendPostposition=(t,{vowel:e,consonant:r})=>`${t}${n.U.lastConsonantLetter(t)?r:e}`}(i||(i={}))},9284:(t,e,r)=>{var i;r.d(e,{U:()=>i}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(i||(i={}))}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};s.d(o,{r:()=>a});var a,h=s(3056);!function(t){let e,r;t.bindExpression=(t,e)=>(t??"").replace(/\$\{([\s\S.]*?)\}/g,(t,r)=>{const[i,n]=r.split(":"),s=e[i];return s?"function"==typeof s?s(e[n]):s:""}),function(t){t.isExpression=t=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(t??""),t.expressionGroups=t=>h.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,t??"")}(e=t.Group||(t.Group={})),function(t){t.pathNameData=(t,e)=>{const r=t.split("/"),i=e.split("/");if(r.length!==i.length)return;const n={};for(let t=0;t<i.length;t++){const e=i[t],s=r[t],o=/^\{(.+)\}$/g.exec(e);if(!o){if(e!==s)return;continue}const[a,h]=o[1].split(":");if(h&&!new RegExp(h).test(s))return;n[a]=s}return n}}(r=t.Path||(t.Path={}))}(a||(a={}));const l=o.r}},s={};function o(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{J:()=>c,M:()=>h});var h,l=o(532);!function(t){t.DATA_PARAMETERS="DATA_PARAMETERS",t.INLINE_DATA_PARAMETERS="INLINE_DATA_PARAMETERS"}(h||(h={}));class c{constructor(t,e,r){if(this.uri=t,this.data=e,this.event=r,this.sessionData=new Map,"string"==typeof t){const e=t.match(/^Symbol\.for\((.+)\):\/(.*)$/);if(e){const t=Symbol.for(e[1]);this.uri={symbol:t,uri:e[2]}}}}get symbols(){if("object"==typeof this.uri)return Array.isArray(this.uri.symbol)?this.uri.symbol:[this.uri.symbol]}get scheme(){if("string"==typeof this.uri){const t=this.uri.split("://");return t.length>1?t[0]:void 0}}get paths(){return this.pathname.split("/")??[]}get fullPath(){const t=("string"==typeof this.uri?this.uri:this.uri.uri).split("://");return t[t.length>=2?1:0]??""}get pathname(){return this.fullPath.split("?")[0]}get query(){return this.fullPath.split("?")[1]??""}get queryParams(){const t={};return this.query.split("&")?.forEach(e=>{const r=e.split("=");t[r[0]]=r[1]}),t}get queryParamsAfterDecodeURI(){const t=this.queryParams;for(const e in t)t.hasOwnProperty(e)&&(t[e]=decodeURIComponent(t[e]));return t}getPathnameData(t){return l.r.Path.pathNameData(this.pathname,t)}get isSymbolScheme(){return void 0!==this.symbols}}const u=a.J;var d=r(7016);const y=require("buffer");var p=r(6377),g=r(1022),f=r(9434),m=r(5884),b=r(3055),x={2676:(t,e,r)=>{r.d(e,{B:()=>i});var i,n=r(7855),s=r(9284);!function(t){let e,r;t.constructorName=t=>t&&t.constructor&&t.constructor.name?t.constructor.name:t&&t.name?t.name:void 0,t.deepCopy=t=>t instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(t.entries())))):t instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(t.values())))):s.U.isNullOrUndefined(t)?t:JSON.parse(JSON.stringify(t)),t.allProtoTypeName=(e,r)=>{let i=[];if(e){const n=Object.getPrototypeOf(e);n&&(i=Object.keys(n)||[]).length>0&&(i=i.concat(t.allProtoTypeName(n,r)))}let n=i.filter(t=>"constructor"!==t);if(r&&e){const t=Object.getPrototypeOf(e);n=n.filter(e=>r(e,t?.[e]))}return n},t.uniqueKeys=t=>Array.from(new Set((Array.isArray(t)?t:[t]).flatMap(t=>Object.keys(t)))),t.ownPropertyNames=t=>{const e=[];if(t)if(t.prototype)e.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));else{const r=Object.getPrototypeOf(t);e.push(...Object.getOwnPropertyNames(r))}return e.filter(t=>"constructor"!==t)},t.protoTypeName=t=>{let e=[];if(t){const r=Object.getPrototypeOf(t);e=Object.keys(r)||[]}return e.filter(t=>"constructor"!==t)},t.protoTypes=t=>{const e=[];if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.push(r[t])})}return e},t.seal=t=>Object.seal(t),t.isPrototypeOfTarget=(t,e)=>!(!t||!e)&&Object.prototype.isPrototypeOf.call(t.prototype,e),t.prototypeOfDepth=(t,e)=>{let r=t;const i=[];if(e)do{if(r=Object.getPrototypeOf(r),r?.constructor===e)break;i.push(r)}while(r);return i},t.allProtoType=t=>{const e=(t,r=[])=>(t.prototype&&(r.push(t),e(Object.getPrototypeOf(t),r)),r);return e(t)},t.prototypeOf=t=>Object.getPrototypeOf(t),t.prototypeKeyMap=t=>{const e=new Map;if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.set(r[t],t)})}return e},t.prototypeName=(e,r)=>t.prototypeKeyMap(e).get(r),t.pickRandomKey=t=>{const e=Object.keys(t);return e[Math.floor(Math.random()*e.length)]},t.pickRandomValue=t=>{const e=Object.keys(t);return t[e[Math.floor(Math.random()*e.length)]]},t.pickRandomKeyValue=t=>{const e=Object.keys(t),r=e[Math.floor(Math.random()*e.length)];return{key:r,value:t[r]}},t.keyValues=t=>Object.keys(t).map(e=>({key:e,value:t[e]})),t.entries=t=>Object.entries(t),t.values=t=>Object.values(t),t.keys=t=>Object.keys(t),t.keyLength=e=>t.keys(e).length,t.toDeleteUndefinedAndNull=(t,e)=>{const r=t=>Array.isArray(t)?t.filter(t=>null!=t).map(r):t&&"object"==typeof t?e?.deep?Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e).map(([t,e])=>[t,r(e)])):Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e)):t;return r(t)},function(t){t.isFunctionScript=t=>t.trim().startsWith("function"),t.isArrowFunctionScript=t=>/^\s*\([^)]*\)\s*=>/.test(t),t.toOptionalChainPath=e=>{if(!e)return"";if(e.trim().startsWith("{")&&e.trim().endsWith("}"))return e;if(t.isFunctionScript(e)||t.isArrowFunctionScript(e))return e;if(e.includes(" ? ")&&e.includes(" : ")){const t=e.split(/(\s+\?\s+|\s+:\s+)/).map((t,e)=>{if(0===e){const e=t.match(/[^?.[\]]+|\[[^\]]*\]/g);if(e&&e.length>1)return e.join("?.")}return t});return t.join("")}if(e.includes("(")){const r=[];let i=e,n=0;const s=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let o;for(;null!==(o=s.exec(e));){const e=o[0],s=o[1],a=o[2],h=`__FUNC_CALL_${n}__`,l=`${s}?.(${a?t.toOptionalChainPath(a):""})`;r.push({original:e,processed:l,placeholder:h}),i=i.replace(e,h),n++}const a=i.match(/[^?.[\]]+|\[[^\]]*\]/g);let h="";h=a&&a.length>1?a.join("?."):i;for(const t of r)h=h.replace(t.placeholder,t.processed);return h}const r=e.match(/[^?.[\]]+|\[[^\]]*\]/g);return r?r.join("?."):e},t.removeOptionalChainOperator=t=>t?t.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const e=t=>{const e=[],r=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let i,n=0;const s=t.match(r);if(s&&(s?.index??0)>0)e.push(t.substring(0,s.index)),n=s.index;else if(!s&&t.length>0)return e.push(t),e;for(;null!==(i=r.exec(t));){if(i.index>n){const r=t.substring(n,i.index);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}i[1]?e.push(i[1]):i[2]?e.push(parseInt(i[2],10)):i[4]&&e.push(i[4]),n=r.lastIndex}if(n<t.length){const r=t.substring(n);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}return e};t.to=e=>{const r={};return Object.entries(e).forEach(([e,i])=>{t.set(r,e,i)}),r},t.set=(t,r,i)=>{const n=e(r);let s=t;for(let t=0;t<n.length;t++){const e=n[t];if(t===n.length-1)s[e]=i;else{const r=n[t+1];if("number"==typeof r){if(Array.isArray(s[e])||(s[e]=[]),Array.isArray(s[e]))for(;s[e].length<=r;)s[e].push({})}else"object"==typeof s[e]&&null!==s[e]||(s[e]={});s=s[e]}}},t.get=(t,r,i)=>{const n=e(r);let s=t;for(let t=0;t<n.length;t++){const e=n[t];if(null==s)return i;if("object"!=typeof s||null===s||!(e in s))return i;s=s[e]}return s},t.deletePath=(t,r)=>{const i=e(r);if(0===i.length)return!1;let n=t;for(let t=0;t<i.length-1;t++){const e=i[t];if(null==n)return!1;if("object"!=typeof n||null===n||!(e in n))return!1;n=n[e]}const s=i[i.length-1];return null!==n&&"object"==typeof n&&s in n&&(Array.isArray(n)&&"number"==typeof s?n.splice(s,1):delete n[s],!0)},t.availablePath=(t,e)=>{const r=[],i=t=>"number"==typeof t?"["+t+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?t:"['"+t+"']",n=(t,s,o)=>{null!==t&&"object"==typeof t&&(o.has(t)||(o.add(t),Array.isArray(t)?t.forEach((t,a)=>{const h=i(a),l=s?`${s}${h}`:h;e&&!e(l,t)||r.push(l),n(t,l,o)}):Object.keys(t).forEach(a=>{const h=i(a);let l;l=h.startsWith("[")?s?`${s}${h}`:h:s?`${s}.${h}`:h,e&&!e(l,t[a])||r.push(l),n(t[a],l,o)})))};return n(t,"",new Set),r},t.detectPathFromScript=(t,e)=>{const r=new Set;class i{constructor(t){this.prefix=t,this.usingVars=r}set(t,e,r,i){return!0}get(t,e,r){if("symbol"==typeof e)return this.createSafeProxy(this.prefix);let i;const n=String(e);return i=isNaN(Number(n))?this.prefix?`${this.prefix}.${n}`:n:this.prefix?`${this.prefix}[${n}]`:n,i&&this.usingVars.add(i),this.createSafeProxy(i)}apply(t,e,r){return this.createSafeProxy(this.prefix)}createSafeProxy(t){const e=new i(t);return new Proxy(()=>{},{get:(r,i,n)=>i===Symbol.toPrimitive?()=>"":"valueOf"===i?()=>e.createSafeProxy(t):"toString"===i?()=>"":e.get(r,i,n),set:e.set.bind(e),apply:e.apply.bind(e)})}}const n={window:new Proxy(()=>{},new i("window")),document:new Proxy(()=>{},new i("document")),console:new Proxy(()=>{},new i("console"))},s=new Proxy(()=>{},new i("this"));try{new Function("window","document","console",`"use strict"; ${t}; `).call(s,n.window,n.document,n.console)}catch(t){console.error("detectPathFromScript error:",t)}if(e?.excludeThis){const t=new Set;return r.forEach(e=>{"this"!==e&&(e.startsWith("this.")?t.add(e.substring(5)):t.add(e))}),t}return r}}(e=t.Path||(t.Path={})),t.toDeleteKey=(e,r)=>{const i={...e};return t.deleteKey(i,r),i},t.deleteKey=(t,e)=>{e.filter(t=>(0,n.O)(t)).forEach(e=>{delete t[e]})},function(t){t.evalReturn=(e,r={})=>{let i="",n="";return"object"==typeof e?(i=e.bodyScript,n=e.returnScript):n=e,t.eval(`${i}; return ${n} `,r)},t.eval=(t,e={})=>{try{return Function(`"use strict"; ${t} `).bind(e)()}catch(e){return console.error("eval error",e),void console.error(t)}}}(r=t.Script||(t.Script={}))}(i||(i={}))},3205:(t,e,r)=>{r.d(e,{O:()=>s});var i=r(7553),n=r(9244);class s extends i.M{constructor(t){super(),this.volume=0,this.mass=0,this.e=0,this.rotate=0,this.width=0,this.height=0,this.transform=[1,0,0,1,0,0],this.color={r:0,g:0,b:0,a:255},this.updateObjWithDefaults(t)}copyObj(){return new s({x:this.x,y:this.y,z:this.z,volume:this.volume,mass:this.mass,e:this.e,rotate:this.rotate,width:this.width,height:this.height,transform:[...this.transform],color:{...this.color},data:{...this.data}})}updateObjWithDefaults(t){if(t){this.x=t.x??this.x,this.y=t.y??this.y,this.z=t.z??this.z,this.volume=t.volume??this.volume,this.mass=t.mass??this.mass,this.e=t.e??this.e,this.rotate=t.rotate??this.rotate,this.width=t.width??this.width,this.height=t.height??this.height,this.transform=[...t.transform??this.transform],this.color={...t.color??this.color};const e=t.data??this.data;this.data=e?{...e}:void 0}}setObj(t){if(t){this.x=t.x??0,this.y=t.y??0,this.z=t.z??0,this.volume=t.volume??0,this.mass=t.mass??0,this.e=t.e??0,this.rotate=t.rotate??0,this.width=t.width??0,this.height=t.height??0,this.transform=[...t.transform??[1,0,0,1,0,0]],this.color={...t.color??{r:0,g:0,b:0,a:255}};const e=t.data;this.data=e?{...e}:void 0}}toRect(){return new n.r(this.x,this.y,this.width,this.height)}}},3599:(t,e,r)=>{r.d(e,{z:()=>i});var i,n=r(8741),s=r(7553),o=r(3205),a=r(4068);!function(t){t.getMinByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let i=1;i<t.length;i++)r=Math.min(r,t[i][e])}return r},t.hypot=(...t)=>Math.hypot(...t),t.pythagorean=(t,e)=>Math.sqrt(t*t+e*e),t.getMaxByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let i=1;i<t.length;i++)r=Math.max(r,t[i][e])}return r},t.sum=t=>t.reduce((t,e)=>t+e,0),t.avg=e=>e.length>0?t.sum(e)/e.length:0,t.minMax=(t,e)=>Math.min(Math.max(t,e.min),e.max),t.max=t=>t.length>0?Math.max(...t):void 0,t.min=t=>t.length>0?Math.min(...t):void 0,t.getSumByObjectArray=(t,e)=>{let r=0;if(e&&t&&t.length>0)for(let i=0;i<t.length;i++)r+=t[i][e];return r},t.radians=(t,{type:e="degreeAngle"})=>"ratio"===e?2*t*Math.PI:"percent"===e?t/100*2*Math.PI:t/180*Math.PI,t.degrees=(t,{type:e="degreeAngle"})=>"ratio"===e?360*t:"percent"===e?t/100*360:180*t/Math.PI,t.ratio=(t,e,r=1)=>r*(e/t),t.getBetweenLength=(t,e)=>e-t,t.getPercentByTotal=(t,e)=>e/t*100,t.getRatioByTotal=(t,e)=>e/t,t.getValueByTotalInPercent=(t,e)=>t*e/100,t.getValueByTotalInRatio=(t,e)=>t*e,t.getValuePercentUp=(t,e)=>t*(1+e/100),t.getValueRatioUp=(t,e)=>t*(1+e),t.getValuePercentDown=(t,e)=>t*(1-e/100),t.getValueRatioDown=(t,e)=>t*(1-e),t.beziers=(e,r)=>{const i=new Array(r).fill(void 0);for(let n=0;n<i.length;n++)i[n]=t.bezier(e,r,n);return i},t.bezier=(e,r,i)=>{if(e&&e.length>0){const o=e.map(t=>new s.M(t.x,t.y,t.z)),a=[];return o.reduce((t,e)=>{const n=t.toSub(e).div(r).mult(i+1);return a.push(t.toSub(n)),e}),a.length<=1?a[0]:t.bezier(a.map(t=>new n.M(t)),r,i)}return new s.M},t.cubicBezier=function(e,r,i){if(e.start instanceof o.O&&e.end instanceof o.O){const n=t.cubicBezier({start:e.start.x,end:e.end.x},r,i),s=t.cubicBezier({start:e.start.y,end:e.end.y},r,i),a=t.cubicBezier({start:e.start.z,end:e.end.z},r,i),h=t.cubicBezier({start:e.start.volume,end:e.end.volume},r,i),l=t.cubicBezier({start:e.start.mass,end:e.end.mass},r,i),c=t.cubicBezier({start:e.start.e,end:e.end.e},r,i),u=t.cubicBezier({start:e.start.rotate,end:e.end.rotate},r,i),d=t.cubicBezier({start:e.start.width,end:e.end.width},r,i),y=t.cubicBezier({start:e.start.height,end:e.end.height},r,i),p=t.cubicBezier({start:e.start.transform[0],end:e.end.transform[0]},r,i),g=t.cubicBezier({start:e.start.transform[1],end:e.end.transform[1]},r,i),f=t.cubicBezier({start:e.start.transform[2],end:e.end.transform[2]},r,i),m=t.cubicBezier({start:e.start.transform[3],end:e.end.transform[3]},r,i),b=t.cubicBezier({start:e.start.transform[4],end:e.end.transform[4]},r,i),x=t.cubicBezier({start:e.start.transform[5],end:e.end.transform[5]},r,i),S=t.cubicBezier({start:e.start.color.r??0,end:e.end.color.r??0},r,i),O=t.cubicBezier({start:e.start.color.g??0,end:e.end.color.g??0},r,i),w=t.cubicBezier({start:e.start.color.b??0,end:e.end.color.b??0},r,i),v=t.cubicBezier({start:e.start.color.a??255,end:e.end.color.a??255},r,i);return n.map((t,e)=>{const r=new o.O({x:t,y:s[e],z:a[e]});return r.volume=h[e],r.mass=l[e],r.e=c[e],r.rotate=u[e],r.width=d[e],r.height=y[e],r.transform=[p[e],g[e],f[e],m[e],b[e],x[e]],r.color={r:S[e],g:O[e],b:w[e],a:v[e]},r})}if(e.start instanceof n.M&&e.end instanceof n.M){const s=t.cubicBezier({start:e.start.x,end:e.end.x},r,i),o=t.cubicBezier({start:e.start.y,end:e.end.y},r,i),a=t.cubicBezier({start:e.start.z,end:e.end.z},r,i);return s.map((t,e)=>new n.M(t,o[e],a[e]))}const{start:s,end:a}=e,{frame:h}=r;let{p1x:l,p1y:c,p2x:u,p2y:d}=Array.isArray(i)?{p1x:i[0],p1y:i[1],p2x:i[2],p2y:i[3]}:i;l="random"===l?Math.random():l,c="random"===c?Math.random():c,u="random"===u?Math.random():u,d="random"===d?Math.random():d;const y=[],p=a-s,g=t=>{const e=Number(t*t),r=Number(e*t),i=Number(1-t),n=Number(i*i);return 0*Number(n*i)+3*n*t*Number(c)+3*i*e*Number(d)+1*r},f=h+1;for(let t=1;t<f;t++){const e=s+p*g(t/f);y.push(e)}return y},t.diff=(t,e)=>Math.abs(t-e),t.distSqToLineSegment=(t,e,r)=>{const i=(e.x-r.x)**2+(e.y-r.y)**2;if(0===i)return(t.x-e.x)**2+(t.y-e.y)**2;let n=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/i;n=Math.max(0,Math.min(1,n));const s=e.x+n*(r.x-e.x),o=e.y+n*(r.y-e.y);return(t.x-s)**2+(t.y-o)**2},t.rotatePoint=(t,e,r)=>{const i=t.x-e.x,n=t.y-e.y,s=i*Math.cos(r)-n*Math.sin(r),o=i*Math.sin(r)+n*Math.cos(r);return new a.P(s+e.x,o+e.y)}}(i||(i={}))},4068:(t,e,r)=>{r.d(e,{P:()=>i});class i{constructor(t,e){"object"==typeof t?(this.x=t.x??0,this.y=t.y??0):(this.x=t??0,this.y=e??0)}copy(){return new i(this.x,this.y)}}},5275:(t,e,r)=>{r.d(e,{s:()=>i});const i=t=>!!t&&"number"==typeof t.width&&"number"==typeof t.height},7553:(t,e,r)=>{r.d(e,{M:()=>s});var i=r(8741),n=r(4068);class s{constructor(t,e,r){t instanceof i.M?(this.x=t.x,this.y=t.y,this.z=t.z):"object"==typeof t?(this.x=t.x??0,this.y=t.y??0,this.z=t.z??0):(this.x=t??0,this.y=e??0,this.z=r??0)}set(t,e=0,r=0){return t instanceof s||t instanceof i.M?this.set(t.x||0,t.y||0,t.z||0):(this.x=t,this.y=e,this.z=r),this}get(){return new s(this.x,this.y,this.z)}mag(){const t=this.x,e=this.y,r=this.z;return Math.sqrt(t*t+e*e+r*r)}add(t,e=0,r=0){t instanceof s||t instanceof i.M?(this.x+=t.x,this.y+=t.y,this.z+=t.z):(this.x+=t,this.y+=e,this.z+=r)}toAdd(t,e){return new s(t.x+e.x,t.y+e.y,t.x+e.y)}sub(t,e=0,r=0){t instanceof s||t instanceof i.M?(this.x-=t.x,this.y-=t.y,this.z-=t.z):(this.x-=t,this.y-=e,this.z-=r)}toSub(t){const e=this;return new s(e.x-t.x,e.y-t.y,e.z-t.z)}mult(t){return t instanceof s||t instanceof i.M?(this.x*=t.x,this.y*=t.y,this.z*=t.z):(this.x*=t,this.y*=t,this.z*=t),this}toMult(t){const e=this;return new s(e.x*=t.x,e.y*=t.y,e.z*=t.z)}div(t){return t instanceof s||t instanceof i.M?(this.x/=t.x,this.y/=t.y,this.z/=t.z):(this.x/=t,this.y/=t,this.z/=t),this}toDiv(t){const e=this.get();return e.x/=t,e.y/=t,e.z/=t,e}dist(t){const e=this.x-t.x,r=this.y-t.y,i=this.z-t.z;return Math.sqrt(e*e+r*r+i*i)}toDist(t){const e=this,r=e.x-t.x,i=e.y-t.y,n=e.z-t.z;return Math.sqrt(r*r+i*i+n*n)}dot(t,e,r){return t instanceof s||t instanceof i.M?this.x*t.x+this.y*t.y+this.z*t.z:this.x*t+this.y*e+this.z*r}cross(t){const e=this.x,r=this.y,i=this.z;return new s(r*t.z-t.y*i,i*t.x-t.z*e,e*t.y-t.x*r)}normalize(){const t=this.mag();t>0&&this.div(t)}limit(t){this.mag()>t&&(this.normalize(),this.mult(t))}heading2D(){return-Math.atan2(-this.y,this.x)}random2D(){return this.fromAngle(Math.random()*(2*Math.PI))}fromAngle(t,e=1){return new s(e*Math.cos(t),e*Math.sin(t),0)}fromAngles(t,e,r=1){const i=Math.cos(e),n=Math.sin(e),o=Math.cos(t),a=Math.sin(t);return new s(r*a*n,-r*o,r*a*i)}array(){return[this.x,this.y,this.z]}toPoint3D(){return new i.M(this.x,this.y,this.z)}toPoint2D(){return new n.P(this.x,this.y)}copy(){return new s(this.x,this.y,this.z)}toString(){return"["+this.x+", "+this.y+", "+this.z+"]"}}},7855:(t,e,r)=>{r.d(e,{O:()=>i});const i=t=>null!=t},8741:(t,e,r)=>{r.d(e,{M:()=>s});var i=r(7553),n=r(4068);class s extends n.P{constructor(t,e,r){t instanceof i.M?(super(t.x,t.y),this.z=t.z):"object"==typeof t?(super({x:t.x??0,y:t.y??0}),this.z=t.z??0):(super(t,e),this.z=r??0)}copy(){return new s(this.x,this.y,this.z)}}},9244:(t,e,r)=>{r.d(e,{r:()=>o});var i=r(4068),n=r(3599),s=r(5275);class o{constructor(t,e,r=0,n=0){(0,s.s)(t)?(this._start=new i.P(0,0),this._width=t.width,this._height=t.height):"object"==typeof t&&"object"==typeof e?(this._start=t instanceof i.P?t:new i.P(t.x,t.y),this.end=e instanceof i.P?e:new i.P(e.x,e.y)):"object"==typeof t&&"number"==typeof e?(this._start=t instanceof i.P?t:new i.P(t.x,t.y),this._width=e,this._height=r):"number"==typeof t&&"number"==typeof e&&(this._start=new i.P(t,e),this._width=r,this._height=n)}valueLinkControl(t){let e,r=!1;var i;return"object"==typeof(i=t)&&"value"in i&&"noLink"in i?(e=t.value,r=t.noLink):e=t,{value:e,noLink:r}}get width(){return this._width}get height(){return this._height}get start(){return this._start.copy()}set width(t){this.setWidth(t)}setWidth(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=n.z.getPercentByTotal(this._width,e);this._width=e,this.applyWidthPercentLinks({value:i,noLink:r})}set height(t){this.setHeight(t)}setHeight(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=n.z.getPercentByTotal(this._height,e);this._height=e,this.applyHeightPercentLinks({value:i,noLink:r})}set start(t){let{value:e,noLink:r}=this.valueLinkControl(t);const s=new i.P({x:n.z.getPercentByTotal(this._start.x,e.x),y:n.z.getPercentByTotal(this._start.y,e.y)});this._start=e,this.applyStartPercentLinks({value:s,noLink:r})}setWidthFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=n.z.getPercentByTotal(this.start.x,e);this._start.x=this.end.x-e,this.applyStartXPercentLinks({value:i,noLink:r})}set widthFromEnd(t){this.setWidthFromEnd(t)}setHeightFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=this.end.y-e,s=n.z.getPercentByTotal(this.start.y,i);this._start.y=i,this.applyStartYPercentLinks({value:s,noLink:r})}set heightFromEnd(t){this.setHeightFromEnd(t)}setWidthFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=this.center.x-e/2,s=n.z.getPercentByTotal(this.start.x,i);this._start.x=i,this.applyStartXPercentLinks(s)}set widthFromCenter(t){this.setWidthFromCenter(t)}setHeightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=this.center.y-e/2,s=n.z.getPercentByTotal(this.start.y,i);this._start.y=i,this.applyStartYPercentLinks(s)}set heightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=this.center.y-e/2,s=n.z.getPercentByTotal(this.start.y,i);this._start.y=i,this.applyStartYPercentLinks(s)}set x(t){this.setX(t)}setX(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=e-this._start.x,s=n.z.getPercentByTotal(this.width,i);this._start.x=e,this.applyStartXPercentLinks({value:s,noLink:r})}set y(t){this.setY(t)}setY(t){let{value:e,noLink:r}=this.valueLinkControl(t);const i=e-this._start.y,s=n.z.getPercentByTotal(this.height,i);this._start.y=e,this.applyStartYPercentLinks({value:s,noLink:r})}applyWidthPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setWidthByWidthPercent({value:e,noLink:this})})}applyHeightPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setHeightByHeightPercent({value:e,noLink:this})})}applyStartPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.applyStartXPercentLinks({value:e.x,noLink:r}),this.applyStartYPercentLinks({value:e.y,noLink:r})}applyStartXPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addXByWidthPercent({value:e,noLink:this})})}applyStartYPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addYByHeightPercent({value:e,noLink:this})})}hasLink(t){return this.linkRects?.has(t)}isLinked(){return!!this.linkRects?.size}addLink(...t){this.linkRects??(this.linkRects=new Set),t.filter(t=>!this.linkRects?.has(t)).forEach(t=>{this.linkRects?.add(t),t.addLink(this)})}setLinks(t){this.unLinkAll(),this.addLink(...t)}unLinkAll(){this.linkRects&&(Array.from(this.linkRects.values()).forEach(t=>{this.unLink(t)}),this.linkRects.clear())}unLink(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.linkRects&&this.linkRects.delete(e),r||e.unLink({value:this,noLink:this})}addWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:this.width+n.z.getValueByTotalInPercent(this.width,e),noLink:r})}addHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:this.height+n.z.getValueByTotalInPercent(this.height,e),noLink:r})}addWidthRatio(t){this.width=this.width+n.z.getValueByTotalInRatio(this.width,t)}addHeightRatio(t){this.height=this.height+n.z.getValueByTotalInRatio(this.height,t)}addXPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+n.z.getValueByTotalInPercent(this.width,e),noLink:r})}addYPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+n.z.getValueByTotalInPercent(this.height,e),noLink:r})}addXRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+n.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+n.z.getValueByTotalInRatio(this.height,e),noLink:r})}set endX(t){const e=t-this.x;this.width=e}set endXPercent(t){this.endX=n.z.getValueByTotalInPercent(this.width,t)}set endYPercent(t){this.endY=n.z.getValueByTotalInPercent(this.height,t)}set endY(t){this.height=t-this.y}set end(t){this.width=t.x-this.x,this.height=t.y-this.y}get x(){return this.start.x}get y(){return this.start.y}get endX(){return this.end.x}get endY(){return this.end.y}to(t){const e=this.copy();return e.start=t,e}toRotate(t,{rotatePoint:e=this.center,type:r="degreeAngle"}){const s=n.z.radians(t,{type:r}),o=e instanceof i.P?e:new i.P(e.x,e.y);return[this.leftTop,this.rightTop,this.rightBottom,this.leftBottom].map(t=>n.z.rotatePoint(t,o,s))}get center(){return new i.P(this.start.x+this.width/2,this.start.y+this.height/2)}get end(){return new i.P(this.start.x+this.width,this.start.y+this.height)}get leftTop(){return this.start.copy()}get leftBottom(){return new i.P(this.start.x,this.end.y)}get rightTop(){return new i.P(this.end.x,this.start.y)}get rightBottom(){return this.end}copy(){return new o(this.x,this.y,this.width,this.height)}getWidthPercent(t){return n.z.getPercentByTotal(this.width,t)}getWidthRatio(t){return n.z.getRatioByTotal(this.width,t)}getWidthByPercent(t){return n.z.getValueByTotalInPercent(this.width,t)}getWidthByRatio(t){return n.z.getValueByTotalInRatio(this.width,t)}getHeightPercent(t){return n.z.getPercentByTotal(this.height,t)}getHeightRatio(t){return n.z.getRatioByTotal(this.height,t)}getHeightByPercent(t){return n.z.getValueByTotalInPercent(this.height,t)}getHeightByRatio(t){return n.z.getValueByTotalInRatio(this.height,t)}getXPercent(t){return n.z.getPercentByTotal(this.width,t-this.x)}getXRatio(t){return n.z.getRatioByTotal(this.width,t-this.x)}getXByPercent(t){return this.x+n.z.getValueByTotalInPercent(this.width,t)}getXByRatio(t){return this.x+n.z.getValueByTotalInRatio(this.width,t)}getYPercent(t){return n.z.getPercentByTotal(this.height,t-this.y)}getYRatio(t){return n.z.getRatioByTotal(this.height,t-this.y)}getYByPercent(t){return this.y+n.z.getValueByTotalInPercent(this.height,t)}getYByRatio(t){return this.y+n.z.getValueByTotalInRatio(this.height,t)}getPercent(t){return new i.P(this.getXPercent(t.x),this.getYPercent(t.y))}toScaleByWidth(t){const e=this.height/this.width;return new o(this.x,this.y,t,t*e)}toScaleByHeight(t){const e=this.width/this.height;return new o(this.x,this.y,t*e,t)}toRatio(t){return new o(this.getXRatio(t.x),this.getYRatio(t.y),this.getWidthRatio(t instanceof o?t.width:t.w),this.getHeightRatio(t instanceof o?t.height:t.h))}getRatio(t){return new i.P(this.getXRatio(t.x),this.getYRatio(t.y))}getByPercent(t){return new i.P(this.getXByPercent(t.x),this.getYByPercent(t.y))}getByRatio(t){return new i.P(this.getXByRatio(t.x),this.getYByRatio(t.y))}getDiffX(t){return t-this.x}getDiffY(t){return t-this.y}getDiffLeft(t){this.getDiffX(t)}getDiffTop(t){this.getDiffY(t)}getDiffRight(t){return t-this.end.x}getDiffBottom(t){return t-this.end.y}getDiffWidth(t){return t-this.width}getDiffHeight(t){return t-this.height}toDiff(t){return new o(t.x-this.x,t.y-this.y,t.width-this.width,t.height-this.height)}setXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:n.z.getValueByTotalInPercent(this.width,e),noLink:r})}set xByWidthPercent(t){this.setXByWidthPercent(t)}setXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:n.z.getValueByTotalInRatio(this.width,e),noLink:r})}set xByWidthRatio(t){this.setXByWidthRatio(t)}setYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:n.z.getValueByTotalInPercent(this.height,e),noLink:r})}set yByHeightPercent(t){this.setYByHeightPercent(t)}setYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:n.z.getValueByTotalInRatio(this.height,e),noLink:r})}set yByHeightRatio(t){this.setYByHeightRatio(t)}addXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+n.z.getValueByTotalInPercent(this.width,e),noLink:r})}addXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+n.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+n.z.getValueByTotalInPercent(this.height,e),noLink:r})}addYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+n.z.getValueByTotalInRatio(this.height,e),noLink:r})}setWidthByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:n.z.getValueByTotalInPercent(this.width,e),noLink:r})}set widthByWidthPercent(t){this.setWidthByWidthPercent(t)}setWidthByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:n.z.getValueByTotalInRatio(this.width,e),noLink:r})}set widthByWidthRatio(t){this.setWidthByWidthRatio(t)}setHeightByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:n.z.getValueByTotalInPercent(this.height,e),noLink:r})}set heightByHeightPercent(t){this.setHeightByHeightPercent(t)}setHeightByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:n.z.getValueByTotalInRatio(this.height,e),noLink:r})}set heightByHeightRatio(t){this.setHeightByHeightRatio(t)}copyByPercent(t,e){return new o(this.x,this.y,n.z.getValueByTotalInPercent(this.width,t),n.z.getValueByTotalInPercent(this.height,e??t))}copyByRatio(t,e){return new o(this.x,this.y,n.z.getValueByTotalInRatio(this.width,t),n.z.getValueByTotalInRatio(this.height,e??t))}isIn(t){return t instanceof o?this.isIn(t.start)&&this.isIn(t.end):t.x>=this.start.x&&t.x<=this.end.x&&t.y>=this.start.y&&t.y<=this.end.y}isOut(t){return t instanceof o?!this.isOverlap(t):!this.isIn(t)}isOverlap(t){return t instanceof o?!(this.endX<t.x||this.x>t.endX||this.endY<t.y||this.y>t.endY):this.isIn(t)}toString(){return`x:${this.x}, y:${this.y}, width: ${this.width}, height: ${this.height}`}}},9284:(t,e,r)=>{var i;r.d(e,{U:()=>i}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(i||(i={}))}},S={};function O(t){var e=S[t];if(void 0!==e)return e.exports;var r=S[t]={exports:{}};return x[t](r,r.exports,O),r.exports}O.d=(t,e)=>{for(var r in e)O.o(e,r)&&!O.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},O.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var w={};O.d(w,{T:()=>v});var v,k=O(9284),z=O(4068),A=O(8741),P=O(9244),j=O(2676);!function(t){t.objToGetURL=t=>Object.keys(t).reduce((e,r,i)=>`${e}${0!==i?"&":""}${r}=${t[r]}`,""),t.mapToJson=t=>JSON.stringify(Array.from(t.entries()).reduce((t,[e,r])=>(t[e]=r,t),{})),t.jsonToMap=t=>new Map(JSON.parse(t)),t.decodeURIString=t=>decodeURIComponent(t),t.objToStrMap=t=>{const e=new Map;for(const r of Object.keys(t))e.set(r,t[r]);return e},t.jsonToStrMap=e=>t.objToStrMap(JSON.parse(e)),t.strToObject=t=>JSON.parse(t),t.objToJson=t=>JSON.stringify(t),t.objToMap=t=>{const e=new Map;return Object.keys(t).forEach(r=>{e.set(r,t[r])}),e},t.mapToObj=t=>{const e={};return t.forEach((t,r)=>{e[r]=t}),e},t.snakeToCamelCase=t=>t.replace(/_([a-z])/g,(t,e)=>e.toUpperCase()),t.camelToSnakeCase=t=>t.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),t.toFormData=function(t){const e=new FormData;for(const r in t)e.append(r,t[r]);return e},t.toObject=function(e,r){if(e instanceof URLSearchParams){const t={};return e.forEach((e,i)=>{r?.firstValue&&void 0===t[i]?t[i]=e:r?.firstValue||(t[i]?Array.isArray(t[i])?t[i].push(e):t[i]=[t[i],e]:t[i]=e)}),t}if(e instanceof FormData){const t=t=>{const e={};for(const r of t.keys()){const i=t.getAll(r);e[r]=i.length>1?i:i[0]}return e};return t(e)}if(e&&"function"==typeof e[Symbol.iterator])return Object.fromEntries(e);if(Array.isArray(e))return Object.fromEntries(e);if(k.U.isMap(e)){const r=e;e=t.mapToObj(r)}if(k.U.isArray(e)){const r=e;for(let e=0;e<r.length;e++)r[e]=t.toObject(r[e])}if(k.U.isObject(e))for(const r in e)e[r]=t.toObject(e[r]);return e},t.toArray=t=>t instanceof Set?Array.from(t.values()):Array.isArray(t)?t:t?[t]:[],t.flatArray=(...t)=>t.flatMap(t=>t instanceof Object&&Symbol.iterator in t?Array.from(t):[t]),t.iteratorToArray=t=>Array.from(t),t.toJson=e=>{const r=t.toObject(e);return JSON.stringify(r)},t.concatenateToAttribute=e=>t.concatenateToString(e,"="," ","'"),t.concatenateToParameter=e=>t.concatenateToString(e,"=","&",""),t.concatenateToString=(t,e="=",r=" ",i="")=>{const n=[];for(const r in t){const s=t[r];s&&n.push(r.toString()+e+i+s+i)}return n.join(r)},t.specialCharsToEscape=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.decodeHTMLEscape=t=>t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&#x2F;/g,"/"),t.copyObject=(t,e={})=>({...t,...e}),t.copyArrayWithAddition=(t,e)=>[...t,...e||[]],t.hexToInt=t=>(t.startsWith("#")&&(t=t.slice(1)),3===t.length&&(t=t.split("").map(t=>t+t).join("")),parseInt(t,16)),t.toHex=t=>(t<0&&(t=4294967295+t+1),(t=Number(t.toFixed(0))).toString(16).padStart(2,"0").toUpperCase()),t.toHexColor=e=>`#${t.toHex(e.r??0)}${t.toHex(e.g??0)}${t.toHex(e.b??0)}${t.toHex(e.a??255)}`,t.avgColor=t=>{const e=t.reduce((t,e)=>(t.r+=e.r??0,t.g+=e.g??0,t.b+=e.b??0,t.a+=e.a??0,t),{r:0,g:0,b:0,a:0});return{r:Math.floor(e.r/t.length),g:Math.floor(e.g/t.length),b:Math.floor(e.b/t.length),a:Math.floor(e.a/t.length)}},t.toRGBA=t=>{t??(t="#000000FF");const e=t.replace("#","");return{r:parseInt(e.slice(0,2)||"0",16),g:parseInt(e.slice(2,4)||"0",16),b:parseInt(e.slice(4,6)||"0",16),a:e.length>6?parseInt(e.slice(6,8)||"0",16):255}},t.minMaxCenterAvg=t=>{const e={},r=j.B.uniqueKeys(t);for(const i of r){const r=t.map(t=>t[i]),n=Math.min(...r),s=Math.max(...r),o=(n+s)/2,a=r.reduce((t,e)=>t+e,0)/r.length;e[i]={min:n,max:s,center:o,avg:a,diff:s-n}}return e},t.minMaxCenterRectAvg2D=t=>{const e=new z.P(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),r=new z.P(Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);let i=new z.P(0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),i.x+=t.x,i.y+=t.y});const n=new z.P((e.x+r.x)/2,(e.y+r.y)/2),s=new z.P(i.x/t.length,i.y/t.length),o=new P.r(e.x,e.y,r.x-e.x,r.y-e.y);return{min:e,max:r,center:n,avg:s,minMaxRect:o}},t.minMaxCenterAvg3D=t=>{const e=new A.M(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),r=new A.M(Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE);let i=new A.M(0,0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),e.z=Math.max(e.z,t.z),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),r.z=Math.max(r.z,t.y),i.x+=t.x,i.y+=t.y,i.z+=t.z});const n=new A.M((e.x+r.x)/2,(e.y+r.y)/2,(e.z+r.z)/2),s=new A.M(i.x/t.length,i.y/t.length,i.z/t.length);return{min:e,max:r,center:n,avg:s}},t.roundRectRadiiToFullRadii=t=>t?1===t.length?[t[0]??0,t[0]??0,t[0]??0,t[0]??0]:2===t.length?[t[0]??0,t[1]??0,t[0]??0,t[1]??0]:3===t.length?[t[0]??0,t[1]??0,t[2]??0,t[1]??0]:t:[0,0,0,0],t.toArrayDirectionChange=t=>{if(!t||0===t.length||!t[0]||0===t[0].length)return[];const e=[],r=t[0].length,i=t.length;for(let n=0;n<r;n++){const r=[];for(let e=0;e<i;e++)r.push(t[e][n]);e.push(r)}return e},t.groupByMap=(t,e)=>t.reduce((t,r)=>{const i=e(r),n=t.get(i)||[];return n.push(r),t.set(i,n),t},new Map),t.groupByObject=(e,r)=>{const i=t.groupByMap(e,r);return Object.fromEntries(i)},t.toURLSearchParams=t=>{const e=new URLSearchParams;if("string"==typeof t)new URLSearchParams(t).forEach((t,r)=>{e.append(r,t)});else if("object"==typeof t){const r=t instanceof URLSearchParams?t.entries():Array.isArray(t)?t:Object.entries(t);for(const[t,i]of Array.from(r))Array.isArray(i)?i.forEach(r=>e.append(t,r)):e.append(t,i)}return e},t.stringJsonToKeyPairs=t=>Array.from(t.matchAll(/(\w+):\s*([^,}]+)/g)).map(t=>({key:t[1],value:t[2]}))}(v||(v={}));const M=w.T;var B=r(426);class N{constructor(t,e,r){t instanceof N?(this.req=t.req,this.res=t.res,this.config=r):(this.req=t,this.res=e,this.config=r)}get reqSocket(){return this.req.socket}get reqCookieMap(){let t=this.reqHeader(i.HttpHeaders.Cookie)??"";Array.isArray(t)&&(t=t.join(";"));const e=new Map;return t.split(";").map(t=>t.trim().split("=")).forEach(t=>{e.set(t[0],t[1])}),e}reqCookieGet(t){return this.reqCookieMap.get(t)}get reqRemoteAddress(){const t=this.req.headers["x-forwarded-for"];let e=this.req.socket.remoteAddress;return Array.isArray(t)?e=t.join(",").split(",").shift():"string"==typeof t&&(e=t.split(",").shift()),e}get reqUrlObject(){return new d.URL(this.reqUrl,`${this.reqSocket?"https://":"http"}${this.reqHost??"localhost"}`)}get reqUrlPathName(){return this.reqUrlObj().pathname??""}get reqUrl(){return this.req.url??""}reqUrlObj(t){return new d.URL(`${t?.scheme??"http"}://${t?.host?t?.host:this.reqHeaderFirst(i.HttpHeaders.Host)??"localhost"}${this.req.url??""}`)}get reqUrlSearchParamTuples(){return Array.from(this.reqUrlObj().searchParams)}get reqUrlSearchParams(){return this.reqUrlObj().searchParams}get reqUrlSearchParamsObj(){const t=this.reqUrlObj().searchParams;return M.toObject(t)}get reqPathSearchParamUrl(){const t=this.reqUrlObj();return t.pathname+(t.searchParams.toString()?"?"+t.searchParams.toString():"")}get reqReadable(){return this.req.readable}get reqIntent(){return new u(this.reqPathSearchParamUrl)}reqHasContentTypeHeader(t){return(this.reqHeaderFirst(i.HttpHeaders.ContentType)??"").toLowerCase().indexOf(t.toLocaleLowerCase())>-1}reqHasAcceptHeader(t){return(this.reqHeaderFirst(i.HttpHeaders.Accept)??"").toLowerCase().indexOf(t.toLocaleLowerCase())>-1}reqBodyData(){return new Promise((t,e)=>{if(this.reqReadable){const r=[];this.req.on("data",t=>r.push(t)),this.req.on("error",t=>e(t)),this.req.on("end",()=>{this.reqBodyChunk=y.Buffer.concat(r),t(this.reqBodyChunk)})}else t(this.reqBodyChunk??y.Buffer.alloc(0))})}resBodyData(){return this.resWriteChunk}async reqBodyMultipartFormDataObject(){const t=await this.reqBodyMultipartFormData(),e={};for(const r of t)if(r.isFile)e[r.name]=await b.i.writeFile(r.value,{originalName:r.filename});else{const t=e[r.name];Array.isArray(t)?t.push(r.value):e[r.name]="string"==typeof t?[t,r.value]:r.value}return e}reqBodyMultipartFormData(){return new Promise((t,e)=>{const r=this.req.headers["content-type"];if(!r||!r.startsWith("multipart/form-data"))return e(new Error("Invalid Content-Type. Expected multipart/form-data."));const i=r.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!i)return e(new Error("Boundary not found in Content-Type header."));const n=i[1]||i[2];if(!n)return e(new Error("Failed to extract boundary."));const s=y.Buffer.from(`--${n}`),o=y.Buffer.from("\r\n"),a=y.Buffer.from("\r\n\r\n"),h=[];let l=0;this.req.on("data",t=>{h.push(t),l+=t.length}),this.req.on("error",t=>{e(t)}),this.req.on("end",()=>{if(0===l)return t([]);const r=y.Buffer.concat(h,l),i=[];let n=0,c=r.indexOf(s,n);if(-1===c)return e(new Error("Initial boundary not found."));for(n=c+s.length,r.slice(n,n+o.length).equals(o)&&(n+=o.length);n<r.length;){const t=r.indexOf(s,n);if(-1===t)break;let e=t;e>o.length&&r.slice(e-o.length,e).equals(o)&&(e-=o.length);const h=r.slice(n,e),l=h.indexOf(a);if(-1===l){if(console.warn("Skipping malformed part: no header/body separator found."),n=t+s.length,r.slice(n,n+o.length).equals(o)&&(n+=o.length),"--"===r.slice(n,n+2).toString())break;continue}const c=h.slice(0,l),u=h.slice(l+a.length),d=c.toString("utf-8"),y={};d.split("\r\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const r=t.substring(0,e).trim().toLowerCase(),i=t.substring(e+1).trim();y[r]=i}});const p=y["content-disposition"];if(!p){if(console.warn("Skipping part: no Content-Disposition header."),n=t+s.length,r.slice(n,n+o.length).equals(o)&&(n+=o.length),"--"===r.slice(n,n+2).toString())break;continue}const g=p.match(/name="([^"]+)"/i),f=p.match(/filename="([^"]+)"/i),m=g?g[1]:null,b=f?f[1]:null,x=y["content-type"]||null;if(m){const t=!!b,e={name:m,isFile:t,filename:b,contentType:x,value:t?u:u.toString("utf-8")};i.push(e)}else console.warn("Skipping part: 'name' not found in Content-Disposition.");if(n=t+s.length,r.slice(n,n+o.length).equals(o)&&(n+=o.length),"--"===r.slice(n,n+2).toString())break}t(i)})})}async reqBodyStringData(){return(await this.reqBodyData()).toString()}async reqBodyJsonData(){return JSON.parse(await this.reqBodyStringData())}async reqBodyFormUrlData(){const t=await this.reqBodyStringData(),e={};return Array.from(new d.URLSearchParams(t).entries()).forEach(([t,r])=>{const i=e[t];Array.isArray(i)?i.push(r):e[t]="string"==typeof i?[i,r]:r}),e}async reqBodyReqFormUrlBody(){const t=await this.reqBodyFormUrlData();return Object.assign(new p.ReqFormUrlBody,t)}async reqBodyReqJsonBody(){const t=await this.reqBodyStringData();return Object.assign(new g.ReqJsonBody,t?JSON.parse(t):{})}resBodyJsonData(){const t=B.T.toString(this.resBodyData());return t?JSON.parse(t):null}resBodyStringData(){return B.T.toString(this.resBodyData())}reqMethod(){return this.req.method?.toUpperCase()}reqHeader(t){return this.req.headers[t.toLowerCase()]}get reqHost(){return this.reqHeaderFirst(i.HttpHeaders.Host)}get reqHeaderObj(){const t=new f.ReqHeader;return Object.entries(this.req.headers).forEach(([e,r])=>{t[e]=r}),t}reqHeaderFirst(t,e){const r=this.req.headers[t.toLowerCase()];return r&&Array.isArray(r)?r[0]??e:r??e}reqAuthorizationHeader(){return this.reqHeaderFirst(i.HttpHeaders.Authorization)}reqRefreshTokenHeader(){return this.reqHeaderFirst(i.HttpHeaders.Authorization)}resStatusCode(t){return t?(this.res.statusCode=t,new L(this.req,this.res,this.config,this.res.statusCode)):this.res.statusCode}resHeader(t){return this.res.getHeader(t.toLowerCase())}resHeaderFirst(t,e){const r=this.res.getHeader(t.toLowerCase());return r&&Array.isArray(r)?r[0]??e:r??e}async reqSession(){return this.config.sessionManager?(await this.config.sessionManager.session(this)).dataSet.data:Promise.reject(new Error("Not SessionManager"))}reqSessionSet(t,e){this.reqSession[t]=e}reqSessionGet(t){const e=this.reqSession;if(e)return e[t]}resSetStatusCode(t){return this.res.statusCode=t,this.createRequestResponseChain(this.res.statusCode)}resWrite(t,e="utf8"){return this.resWriteChunk=t,this.createRequestResponseChain(this.resWriteChunk)}resWriteJson(t,e="utf8"){return this.resWrite(JSON.stringify(t),e)}resSetHeader(t,e){return this.createRequestResponseChain(this.res.setHeader(t.toLowerCase(),e))}resAddHeader(t,e){const r=this.res.getHeader(t.toLowerCase()),i=Array.isArray(r)?r.concat(e):r?[r.toString(),...[].concat(e)]:e;return this.createRequestResponseChain(this.res.setHeader(t.toLowerCase(),i))}resSetHeaders(t){return Object.entries(t).forEach(([t,e])=>this.resSetHeader(t,e)),this.createRequestResponseChain()}resAddHeaders(t){return Object.entries(t).forEach(([t,e])=>this.resAddHeader(t,e)),this.createRequestResponseChain()}async resEndChunk(){const t=this.reqHeaderFirst(i.HttpHeaders.AcceptEncoding);let e=this.resWriteChunk;t?.includes("gzip")&&(e=await(0,m.gzip)(e),this.resSetHeader(i.HttpHeaders.ContentEncoding,"gzip")),this.res.end(e)}async resEnd(t){this.resWriteChunk=t??this.resWriteChunk,this.req.readable?(await this.reqBodyData(),await this.resEndChunk()):await this.resEndChunk()}resWriteHead(t,e){return this.createRequestResponseChain(this.res.writeHead(t,e))}resWriteHeadEnd(t,e){this.createRequestResponseChain(this.res.writeHead(t,e)),this.res.end()}resIsDone(){return this.res.finished||this.res.writableEnded||this.res.headersSent}createRequestResponseChain(t){const e=new L(this.req,this.res,this.config,t);return e.resWriteChunk=this.resWriteChunk,e.reqBodyChunk=this.reqBodyChunk,e}}class L extends N{constructor(t,e,r,i){super(t,e,r),this.result=i}}},5884:(t,e,r)=>{var i=r(3106);t.exports={gzip:function(t,e){return new Promise(function(r,n){i.gzip(t,e,function(t,e){t?n(Error(t)):r(e)})})},ungzip:function(t,e){return new Promise(function(r,n){i.gunzip(t,e,function(t,e){t?n(Error(t)):r(e)})})}}},6377:(t,e,r)=>{r.d(e,{ReqFormUrlBody:()=>i});class i{}},7016:t=>{t.exports=require("url")},7953:(t,e,r)=>{var i;r.d(e,{HttpHeaders:()=>i}),function(t){t.ContentLength="Content-Length",t.ContentType="Content-Type",t.ContentEncoding="Content-Encoding",t.Accept="Accept",t.Authorization="Authorization",t.CacheControl="Cache-Control",t.Connection="Connection",t.Date="Date",t.Host="Host",t.Pragma="Pragma",t.Trailer="Trailer",t.TransferEncoding="Transfer-Encoding",t.Upgrade="Upgrade",t.Via="Via",t.Warning="Warning",t.AcceptCharset="Accept-Charset",t.AcceptEncoding="Accept-Encoding",t.AcceptLanguage="Accept-Language",t.AccessControlAllowOrigin="Access-Control-Allow-Origin",t.AccessControlAllowMethods="Access-Control-Allow-Methods",t.AccessControlAllowHeaders="Access-Control-Allow-Headers",t.AccessControlExposeHeaders="Access-Control-Expose-Headers",t.Expect="Expect",t.From="From",t.MaxForwards="Max-Forwards",t.Referer="Referer",t.UserAgent="User-Agent",t.Cookie="Cookie",t.SetCookie="Set-Cookie",t.Cookie2="Cookie2",t.SetCookie2="Set-Cookie2",t.Location="Location",t.IfModifiedSince="If-Modified-Since",t.IfUnmodifiedSince="If-Unmodified-Since",t.IfMatch="If-Match",t.IfNoneMatch="If-None-Match",t.IfRange="If-Range",t.Allow="Allow",t.Server="Server"}(i||(i={}))},9434:(t,e,r)=>{r.d(e,{ReqHeader:()=>i});class i{}}},e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,r),s.exports}r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};r.r(i),r.d(i,{SessionManager:()=>n.SessionManager});var n=r(1262);module.exports=i})();
@@ -0,0 +1,14 @@
1
+ import { SimpleApplication } from '@dooboostore/simple-boot/SimpleApplication';
2
+ import { HttpServerOption } from './option/HttpServerOption';
3
+ import { ConstructorType } from '@dooboostore/core/types';
4
+ import { Server as HttpServer } from 'http';
5
+ import { Server as HttpsServer } from 'https';
6
+ export declare class SimpleBootHttpServer extends SimpleApplication {
7
+ option: HttpServerOption;
8
+ server?: HttpServer | HttpsServer;
9
+ private sessionManager;
10
+ constructor(option?: HttpServerOption);
11
+ run(otherInstanceSim?: Map<ConstructorType<any>, any>): import("@dooboostore/simple-boot/simstance/SimstanceManager").SimstanceManager;
12
+ private startServer;
13
+ }
14
+ //# sourceMappingURL=SimpleBootHttpServer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimpleBootHttpServer.d.ts","sourceRoot":"","sources":["../../src/SimpleBootHttpServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,4CAA4C,CAAC;AAC7E,OAAO,EAAC,gBAAgB,EAAC,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAkB,MAAM,IAAI,UAAU,EAAiB,MAAM,MAAM,CAAA;AAC1E,OAAO,EAAE,MAAM,IAAI,WAAW,EAAsC,MAAM,OAAO,CAAC;AA0BlF,qBAAa,oBAAqB,SAAQ,iBAAiB;IAGpC,MAAM,EAAE,gBAAgB;IAFpC,MAAM,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IACzC,OAAO,CAAC,cAAc,CAAiB;gBACpB,MAAM,GAAE,gBAAyC;IAM7D,GAAG,CAAC,gBAAgB,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC;IAS5D,OAAO,CAAC,WAAW;CAwRtB"}