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

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 (328) hide show
  1. package/dist/cjs/SimpleBootHttpServer.js +930 -2
  2. package/dist/cjs/SimpleBootHttpServer.js.map +7 -0
  3. package/dist/cjs/codes/HttpHeaders.js +71 -1
  4. package/dist/cjs/codes/HttpHeaders.js.map +7 -0
  5. package/dist/cjs/codes/HttpMethod.js +41 -1
  6. package/dist/cjs/codes/HttpMethod.js.map +7 -0
  7. package/dist/cjs/codes/HttpStatus.js +49 -1
  8. package/dist/cjs/codes/HttpStatus.js.map +7 -0
  9. package/dist/cjs/codes/Mimes.js +57 -1
  10. package/dist/cjs/codes/Mimes.js.map +7 -0
  11. package/dist/cjs/codes/index.js +145 -1
  12. package/dist/cjs/codes/index.js.map +7 -0
  13. package/dist/cjs/decorators/MethodMapping.js +265 -2
  14. package/dist/cjs/decorators/MethodMapping.js.map +7 -0
  15. package/dist/cjs/decorators/index.js +267 -2
  16. package/dist/cjs/decorators/index.js.map +7 -0
  17. package/dist/cjs/endpoints/CrossDomainHeaderEndPoint.js +55 -1
  18. package/dist/cjs/endpoints/CrossDomainHeaderEndPoint.js.map +7 -0
  19. package/dist/cjs/endpoints/EndPoint.js +18 -1
  20. package/dist/cjs/endpoints/EndPoint.js.map +7 -0
  21. package/dist/cjs/endpoints/HeaderEndPoint.js +41 -1
  22. package/dist/cjs/endpoints/HeaderEndPoint.js.map +7 -0
  23. package/dist/cjs/endpoints/index.js +73 -1
  24. package/dist/cjs/endpoints/index.js.map +7 -0
  25. package/dist/cjs/errors/BadRequestError.js +45 -1
  26. package/dist/cjs/errors/BadRequestError.js.map +7 -0
  27. package/dist/cjs/errors/ForbiddenError.js +45 -1
  28. package/dist/cjs/errors/ForbiddenError.js.map +7 -0
  29. package/dist/cjs/errors/HttpError.js +36 -1
  30. package/dist/cjs/errors/HttpError.js.map +7 -0
  31. package/dist/cjs/errors/InternalServerError.js +45 -1
  32. package/dist/cjs/errors/InternalServerError.js.map +7 -0
  33. package/dist/cjs/errors/NotFoundError.js +45 -1
  34. package/dist/cjs/errors/NotFoundError.js.map +7 -0
  35. package/dist/cjs/errors/UnauthorizedError.js +45 -1
  36. package/dist/cjs/errors/UnauthorizedError.js.map +7 -0
  37. package/dist/cjs/errors/index.js +83 -1
  38. package/dist/cjs/errors/index.js.map +7 -0
  39. package/dist/cjs/filters/CacheFilter.js +153 -1
  40. package/dist/cjs/filters/CacheFilter.js.map +7 -0
  41. package/dist/cjs/filters/Filter.js +18 -1
  42. package/dist/cjs/filters/Filter.js.map +7 -0
  43. package/dist/cjs/filters/HttpStatusFilter.js +44 -1
  44. package/dist/cjs/filters/HttpStatusFilter.js.map +7 -0
  45. package/dist/cjs/filters/OpenApi3Filter.js +83 -2
  46. package/dist/cjs/filters/OpenApi3Filter.js.map +7 -0
  47. package/dist/cjs/filters/ResourceFilter.js +91 -2
  48. package/dist/cjs/filters/ResourceFilter.js.map +7 -0
  49. package/dist/cjs/filters/ThrowFilter.js +47 -1
  50. package/dist/cjs/filters/ThrowFilter.js.map +7 -0
  51. package/dist/cjs/filters/index.js +318 -2
  52. package/dist/cjs/filters/index.js.map +7 -0
  53. package/dist/cjs/index.js +1756 -2
  54. package/dist/cjs/index.js.map +7 -0
  55. package/dist/cjs/inject/InjectSituationType.js +33 -1
  56. package/dist/cjs/inject/InjectSituationType.js.map +7 -0
  57. package/dist/cjs/inject/index.js +35 -1
  58. package/dist/cjs/inject/index.js.map +7 -0
  59. package/dist/cjs/lifecycle/OnInit.js +18 -1
  60. package/dist/cjs/lifecycle/OnInit.js.map +7 -0
  61. package/dist/cjs/lifecycle/index.js +18 -1
  62. package/dist/cjs/lifecycle/index.js.map +7 -0
  63. package/dist/cjs/models/RequestResponse.js +500 -1
  64. package/dist/cjs/models/RequestResponse.js.map +7 -0
  65. package/dist/cjs/models/datas/HeaderData.js +35 -1
  66. package/dist/cjs/models/datas/HeaderData.js.map +7 -0
  67. package/dist/cjs/models/datas/MultipartData.js +18 -1
  68. package/dist/cjs/models/datas/MultipartData.js.map +7 -0
  69. package/dist/cjs/models/datas/ReqHeader.js +31 -1
  70. package/dist/cjs/models/datas/ReqHeader.js.map +7 -0
  71. package/dist/cjs/models/datas/Resource.js +550 -2
  72. package/dist/cjs/models/datas/Resource.js.map +7 -0
  73. package/dist/cjs/models/datas/body/ReqFormUrlBody.js +31 -1
  74. package/dist/cjs/models/datas/body/ReqFormUrlBody.js.map +7 -0
  75. package/dist/cjs/models/datas/body/ReqJsonBody.js +31 -1
  76. package/dist/cjs/models/datas/body/ReqJsonBody.js.map +7 -0
  77. package/dist/cjs/models/datas/body/ReqMultipartFormBody.js +34 -1
  78. package/dist/cjs/models/datas/body/ReqMultipartFormBody.js.map +7 -0
  79. package/dist/cjs/models/index.js +593 -2
  80. package/dist/cjs/models/index.js.map +7 -0
  81. package/dist/cjs/models/method/patch/PatchJson.js +49 -2
  82. package/dist/cjs/models/method/patch/PatchJson.js.map +7 -0
  83. package/dist/cjs/option/HttpServerOption.js +67 -1
  84. package/dist/cjs/option/HttpServerOption.js.map +7 -0
  85. package/dist/cjs/option/index.js +69 -1
  86. package/dist/cjs/option/index.js.map +7 -0
  87. package/dist/cjs/resolvers/Resolver.js +18 -1
  88. package/dist/cjs/resolvers/Resolver.js.map +7 -0
  89. package/dist/cjs/resolvers/{ResourceResorver.d.ts → ResourceResolver.d.ts} +2 -2
  90. package/dist/cjs/resolvers/{ResourceResorver.d.ts.map → ResourceResolver.d.ts.map} +1 -1
  91. package/dist/cjs/resolvers/ResourceResolver.js +571 -0
  92. package/dist/cjs/resolvers/ResourceResolver.js.map +7 -0
  93. package/dist/cjs/resolvers/index.d.ts +1 -1
  94. package/dist/cjs/resolvers/index.js +571 -2
  95. package/dist/cjs/resolvers/index.js.map +7 -0
  96. package/dist/cjs/session/SessionManager.js +577 -1
  97. package/dist/cjs/session/SessionManager.js.map +7 -0
  98. package/dist/cjs/session/index.js +579 -1
  99. package/dist/cjs/session/index.js.map +7 -0
  100. package/dist/esm/SimpleBootHttpServer.js +906 -2
  101. package/dist/esm/SimpleBootHttpServer.js.map +7 -0
  102. package/dist/esm/codes/HttpHeaders.js +47 -1
  103. package/dist/esm/codes/HttpHeaders.js.map +7 -0
  104. package/dist/esm/codes/HttpMethod.js +17 -1
  105. package/dist/esm/codes/HttpMethod.js.map +7 -0
  106. package/dist/esm/codes/HttpStatus.js +25 -1
  107. package/dist/esm/codes/HttpStatus.js.map +7 -0
  108. package/dist/esm/codes/Mimes.js +33 -1
  109. package/dist/esm/codes/Mimes.js.map +7 -0
  110. package/dist/esm/codes/index.js +116 -1
  111. package/dist/esm/codes/index.js.map +7 -0
  112. package/dist/esm/decorators/MethodMapping.js +211 -2
  113. package/dist/esm/decorators/MethodMapping.js.map +7 -0
  114. package/dist/esm/decorators/index.js +211 -2
  115. package/dist/esm/decorators/index.js.map +7 -0
  116. package/dist/esm/endpoints/CrossDomainHeaderEndPoint.js +31 -1
  117. package/dist/esm/endpoints/CrossDomainHeaderEndPoint.js.map +7 -0
  118. package/dist/esm/endpoints/EndPoint.js +1 -0
  119. package/dist/esm/endpoints/EndPoint.js.map +7 -0
  120. package/dist/esm/endpoints/HeaderEndPoint.js +17 -1
  121. package/dist/esm/endpoints/HeaderEndPoint.js.map +7 -0
  122. package/dist/esm/endpoints/index.js +46 -1
  123. package/dist/esm/endpoints/index.js.map +7 -0
  124. package/dist/esm/errors/BadRequestError.js +19 -1
  125. package/dist/esm/errors/BadRequestError.js.map +7 -0
  126. package/dist/esm/errors/ForbiddenError.js +19 -1
  127. package/dist/esm/errors/ForbiddenError.js.map +7 -0
  128. package/dist/esm/errors/HttpError.js +12 -1
  129. package/dist/esm/errors/HttpError.js.map +7 -0
  130. package/dist/esm/errors/InternalServerError.js +19 -1
  131. package/dist/esm/errors/InternalServerError.js.map +7 -0
  132. package/dist/esm/errors/NotFoundError.js +19 -1
  133. package/dist/esm/errors/NotFoundError.js.map +7 -0
  134. package/dist/esm/errors/UnauthorizedError.js +19 -1
  135. package/dist/esm/errors/UnauthorizedError.js.map +7 -0
  136. package/dist/esm/errors/index.js +52 -1
  137. package/dist/esm/errors/index.js.map +7 -0
  138. package/dist/esm/filters/CacheFilter.js +129 -1
  139. package/dist/esm/filters/CacheFilter.js.map +7 -0
  140. package/dist/esm/filters/Filter.js +1 -0
  141. package/dist/esm/filters/Filter.js.map +7 -0
  142. package/dist/esm/filters/HttpStatusFilter.js +20 -1
  143. package/dist/esm/filters/HttpStatusFilter.js.map +7 -0
  144. package/dist/esm/filters/OpenApi3Filter.js +57 -2
  145. package/dist/esm/filters/OpenApi3Filter.js.map +7 -0
  146. package/dist/esm/filters/ResourceFilter.js +57 -2
  147. package/dist/esm/filters/ResourceFilter.js.map +7 -0
  148. package/dist/esm/filters/ThrowFilter.js +23 -1
  149. package/dist/esm/filters/ThrowFilter.js.map +7 -0
  150. package/dist/esm/filters/index.js +278 -2
  151. package/dist/esm/filters/index.js.map +7 -0
  152. package/dist/esm/index.js +1662 -2
  153. package/dist/esm/index.js.map +7 -0
  154. package/dist/esm/inject/InjectSituationType.js +9 -1
  155. package/dist/esm/inject/InjectSituationType.js.map +7 -0
  156. package/dist/esm/inject/index.js +9 -1
  157. package/dist/esm/inject/index.js.map +7 -0
  158. package/dist/esm/lifecycle/OnInit.js +1 -0
  159. package/dist/esm/lifecycle/OnInit.js.map +7 -0
  160. package/dist/esm/lifecycle/index.js +1 -0
  161. package/dist/esm/lifecycle/index.js.map +7 -0
  162. package/dist/esm/models/RequestResponse.js +475 -1
  163. package/dist/esm/models/RequestResponse.js.map +7 -0
  164. package/dist/esm/models/datas/HeaderData.js +11 -1
  165. package/dist/esm/models/datas/HeaderData.js.map +7 -0
  166. package/dist/esm/models/datas/MultipartData.js +1 -0
  167. package/dist/esm/models/datas/MultipartData.js.map +7 -0
  168. package/dist/esm/models/datas/ReqHeader.js +7 -1
  169. package/dist/esm/models/datas/ReqHeader.js.map +7 -0
  170. package/dist/esm/models/datas/Resource.js +516 -2
  171. package/dist/esm/models/datas/Resource.js.map +7 -0
  172. package/dist/esm/models/datas/body/ReqFormUrlBody.js +7 -1
  173. package/dist/esm/models/datas/body/ReqFormUrlBody.js.map +7 -0
  174. package/dist/esm/models/datas/body/ReqJsonBody.js +7 -1
  175. package/dist/esm/models/datas/body/ReqJsonBody.js.map +7 -0
  176. package/dist/esm/models/datas/body/ReqMultipartFormBody.js +10 -1
  177. package/dist/esm/models/datas/body/ReqMultipartFormBody.js.map +7 -0
  178. package/dist/esm/models/index.js +549 -2
  179. package/dist/esm/models/index.js.map +7 -0
  180. package/dist/esm/models/method/patch/PatchJson.js +15 -2
  181. package/dist/esm/models/method/patch/PatchJson.js.map +7 -0
  182. package/dist/esm/option/HttpServerOption.d.ts +1 -1
  183. package/dist/esm/option/HttpServerOption.js +43 -1
  184. package/dist/esm/option/HttpServerOption.js.map +7 -0
  185. package/dist/esm/option/index.js +43 -1
  186. package/dist/esm/option/index.js.map +7 -0
  187. package/dist/esm/resolvers/Resolver.js +1 -0
  188. package/dist/esm/resolvers/Resolver.js.map +7 -0
  189. package/dist/esm/resolvers/{ResourceResorver.d.ts → ResourceResolver.d.ts} +2 -2
  190. package/dist/esm/resolvers/{ResourceResorver.d.ts.map → ResourceResolver.d.ts.map} +1 -1
  191. package/dist/esm/resolvers/ResourceResolver.js +538 -0
  192. package/dist/esm/resolvers/ResourceResolver.js.map +7 -0
  193. package/dist/esm/resolvers/index.d.ts +1 -1
  194. package/dist/esm/resolvers/index.js +538 -2
  195. package/dist/esm/resolvers/index.js.map +7 -0
  196. package/dist/esm/session/SessionManager.js +553 -1
  197. package/dist/esm/session/SessionManager.js.map +7 -0
  198. package/dist/esm/session/index.js +553 -1
  199. package/dist/esm/session/index.js.map +7 -0
  200. package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js +1662 -2
  201. package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js.map +7 -0
  202. package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js +1699 -2
  203. package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js.map +7 -0
  204. package/package.json +24 -21
  205. package/dist/cjs/SimpleBootHttpServer.js.LICENSE.txt +0 -20
  206. package/dist/cjs/decorators/MethodMapping.js.LICENSE.txt +0 -16
  207. package/dist/cjs/decorators/index.js.LICENSE.txt +0 -16
  208. package/dist/cjs/filters/OpenApi3Filter.js.LICENSE.txt +0 -16
  209. package/dist/cjs/filters/ResourceFilter.js.LICENSE.txt +0 -13
  210. package/dist/cjs/filters/index.js.LICENSE.txt +0 -30
  211. package/dist/cjs/index.js.LICENSE.txt +0 -46
  212. package/dist/cjs/models/datas/Resource.js.LICENSE.txt +0 -13
  213. package/dist/cjs/models/index.js.LICENSE.txt +0 -25
  214. package/dist/cjs/models/method/patch/PatchJson.js.LICENSE.txt +0 -11
  215. package/dist/cjs/resolvers/ResourceResorver.js +0 -2
  216. package/dist/cjs/resolvers/ResourceResorver.js.LICENSE.txt +0 -13
  217. package/dist/cjs/resolvers/index.js.LICENSE.txt +0 -13
  218. package/dist/esm/SimpleBootHttpServer.js.LICENSE.txt +0 -20
  219. package/dist/esm/decorators/MethodMapping.js.LICENSE.txt +0 -16
  220. package/dist/esm/decorators/index.js.LICENSE.txt +0 -16
  221. package/dist/esm/filters/OpenApi3Filter.js.LICENSE.txt +0 -16
  222. package/dist/esm/filters/ResourceFilter.js.LICENSE.txt +0 -13
  223. package/dist/esm/filters/index.js.LICENSE.txt +0 -30
  224. package/dist/esm/index.js.LICENSE.txt +0 -46
  225. package/dist/esm/models/datas/Resource.js.LICENSE.txt +0 -13
  226. package/dist/esm/models/index.js.LICENSE.txt +0 -25
  227. package/dist/esm/models/method/patch/PatchJson.js.LICENSE.txt +0 -11
  228. package/dist/esm/resolvers/ResourceResorver.js +0 -2
  229. package/dist/esm/resolvers/ResourceResorver.js.LICENSE.txt +0 -13
  230. package/dist/esm/resolvers/index.js.LICENSE.txt +0 -13
  231. package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js.LICENSE.txt +0 -54
  232. package/dist/umd-bundle/SimpleBootHttpServer.d.ts +0 -14
  233. package/dist/umd-bundle/SimpleBootHttpServer.d.ts.map +0 -1
  234. package/dist/umd-bundle/codes/HttpHeaders.d.ts +0 -42
  235. package/dist/umd-bundle/codes/HttpHeaders.d.ts.map +0 -1
  236. package/dist/umd-bundle/codes/HttpMethod.d.ts +0 -12
  237. package/dist/umd-bundle/codes/HttpMethod.d.ts.map +0 -1
  238. package/dist/umd-bundle/codes/HttpStatus.d.ts +0 -45
  239. package/dist/umd-bundle/codes/HttpStatus.d.ts.map +0 -1
  240. package/dist/umd-bundle/codes/Mimes.d.ts +0 -28
  241. package/dist/umd-bundle/codes/Mimes.d.ts.map +0 -1
  242. package/dist/umd-bundle/codes/index.d.ts +0 -5
  243. package/dist/umd-bundle/codes/index.d.ts.map +0 -1
  244. package/dist/umd-bundle/decorators/MethodMapping.d.ts +0 -74
  245. package/dist/umd-bundle/decorators/MethodMapping.d.ts.map +0 -1
  246. package/dist/umd-bundle/decorators/index.d.ts +0 -2
  247. package/dist/umd-bundle/decorators/index.d.ts.map +0 -1
  248. package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js.LICENSE.txt +0 -54
  249. package/dist/umd-bundle/endpoints/CrossDomainHeaderEndPoint.d.ts +0 -16
  250. package/dist/umd-bundle/endpoints/CrossDomainHeaderEndPoint.d.ts.map +0 -1
  251. package/dist/umd-bundle/endpoints/EndPoint.d.ts +0 -7
  252. package/dist/umd-bundle/endpoints/EndPoint.d.ts.map +0 -1
  253. package/dist/umd-bundle/endpoints/HeaderEndPoint.d.ts +0 -12
  254. package/dist/umd-bundle/endpoints/HeaderEndPoint.d.ts.map +0 -1
  255. package/dist/umd-bundle/endpoints/index.d.ts +0 -4
  256. package/dist/umd-bundle/endpoints/index.d.ts.map +0 -1
  257. package/dist/umd-bundle/errors/BadRequestError.d.ts +0 -8
  258. package/dist/umd-bundle/errors/BadRequestError.d.ts.map +0 -1
  259. package/dist/umd-bundle/errors/ForbiddenError.d.ts +0 -8
  260. package/dist/umd-bundle/errors/ForbiddenError.d.ts.map +0 -1
  261. package/dist/umd-bundle/errors/HttpError.d.ts +0 -12
  262. package/dist/umd-bundle/errors/HttpError.d.ts.map +0 -1
  263. package/dist/umd-bundle/errors/InternalServerError.d.ts +0 -8
  264. package/dist/umd-bundle/errors/InternalServerError.d.ts.map +0 -1
  265. package/dist/umd-bundle/errors/NotFoundError.d.ts +0 -8
  266. package/dist/umd-bundle/errors/NotFoundError.d.ts.map +0 -1
  267. package/dist/umd-bundle/errors/UnauthorizedError.d.ts +0 -8
  268. package/dist/umd-bundle/errors/UnauthorizedError.d.ts.map +0 -1
  269. package/dist/umd-bundle/errors/index.d.ts +0 -7
  270. package/dist/umd-bundle/errors/index.d.ts.map +0 -1
  271. package/dist/umd-bundle/filters/CacheFilter.d.ts +0 -45
  272. package/dist/umd-bundle/filters/CacheFilter.d.ts.map +0 -1
  273. package/dist/umd-bundle/filters/Filter.d.ts +0 -17
  274. package/dist/umd-bundle/filters/Filter.d.ts.map +0 -1
  275. package/dist/umd-bundle/filters/HttpStatusFilter.d.ts +0 -20
  276. package/dist/umd-bundle/filters/HttpStatusFilter.d.ts.map +0 -1
  277. package/dist/umd-bundle/filters/OpenApi3Filter.d.ts +0 -142
  278. package/dist/umd-bundle/filters/OpenApi3Filter.d.ts.map +0 -1
  279. package/dist/umd-bundle/filters/ResourceFilter.d.ts +0 -24
  280. package/dist/umd-bundle/filters/ResourceFilter.d.ts.map +0 -1
  281. package/dist/umd-bundle/filters/ThrowFilter.d.ts +0 -19
  282. package/dist/umd-bundle/filters/ThrowFilter.d.ts.map +0 -1
  283. package/dist/umd-bundle/filters/index.d.ts +0 -7
  284. package/dist/umd-bundle/filters/index.d.ts.map +0 -1
  285. package/dist/umd-bundle/index.d.ts +0 -13
  286. package/dist/umd-bundle/index.d.ts.map +0 -1
  287. package/dist/umd-bundle/inject/InjectSituationType.d.ts +0 -4
  288. package/dist/umd-bundle/inject/InjectSituationType.d.ts.map +0 -1
  289. package/dist/umd-bundle/inject/index.d.ts +0 -2
  290. package/dist/umd-bundle/inject/index.d.ts.map +0 -1
  291. package/dist/umd-bundle/lifecycle/OnInit.d.ts +0 -5
  292. package/dist/umd-bundle/lifecycle/OnInit.d.ts.map +0 -1
  293. package/dist/umd-bundle/lifecycle/index.d.ts +0 -2
  294. package/dist/umd-bundle/lifecycle/index.d.ts.map +0 -1
  295. package/dist/umd-bundle/models/RequestResponse.d.ts +0 -100
  296. package/dist/umd-bundle/models/RequestResponse.d.ts.map +0 -1
  297. package/dist/umd-bundle/models/datas/HeaderData.d.ts +0 -10
  298. package/dist/umd-bundle/models/datas/HeaderData.d.ts.map +0 -1
  299. package/dist/umd-bundle/models/datas/MultipartData.d.ts +0 -12
  300. package/dist/umd-bundle/models/datas/MultipartData.d.ts.map +0 -1
  301. package/dist/umd-bundle/models/datas/ReqHeader.d.ts +0 -68
  302. package/dist/umd-bundle/models/datas/ReqHeader.d.ts.map +0 -1
  303. package/dist/umd-bundle/models/datas/Resource.d.ts +0 -11
  304. package/dist/umd-bundle/models/datas/Resource.d.ts.map +0 -1
  305. package/dist/umd-bundle/models/datas/body/ReqFormUrlBody.d.ts +0 -4
  306. package/dist/umd-bundle/models/datas/body/ReqFormUrlBody.d.ts.map +0 -1
  307. package/dist/umd-bundle/models/datas/body/ReqJsonBody.d.ts +0 -4
  308. package/dist/umd-bundle/models/datas/body/ReqJsonBody.d.ts.map +0 -1
  309. package/dist/umd-bundle/models/datas/body/ReqMultipartFormBody.d.ts +0 -6
  310. package/dist/umd-bundle/models/datas/body/ReqMultipartFormBody.d.ts.map +0 -1
  311. package/dist/umd-bundle/models/index.d.ts +0 -10
  312. package/dist/umd-bundle/models/index.d.ts.map +0 -1
  313. package/dist/umd-bundle/models/method/patch/PatchJson.d.ts +0 -8
  314. package/dist/umd-bundle/models/method/patch/PatchJson.d.ts.map +0 -1
  315. package/dist/umd-bundle/option/HttpServerOption.d.ts +0 -83
  316. package/dist/umd-bundle/option/HttpServerOption.d.ts.map +0 -1
  317. package/dist/umd-bundle/option/index.d.ts +0 -2
  318. package/dist/umd-bundle/option/index.d.ts.map +0 -1
  319. package/dist/umd-bundle/resolvers/Resolver.d.ts +0 -5
  320. package/dist/umd-bundle/resolvers/Resolver.d.ts.map +0 -1
  321. package/dist/umd-bundle/resolvers/ResourceResorver.d.ts +0 -6
  322. package/dist/umd-bundle/resolvers/ResourceResorver.d.ts.map +0 -1
  323. package/dist/umd-bundle/resolvers/index.d.ts +0 -3
  324. package/dist/umd-bundle/resolvers/index.d.ts.map +0 -1
  325. package/dist/umd-bundle/session/SessionManager.d.ts +0 -57
  326. package/dist/umd-bundle/session/SessionManager.d.ts.map +0 -1
  327. package/dist/umd-bundle/session/index.d.ts +0 -2
  328. package/dist/umd-bundle/session/index.d.ts.map +0 -1
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,1756 @@
1
- /*! For license information please see index.js.LICENSE.txt */
2
- (()=>{var e={14:(e,t,n)=>{"use strict";n.d(t,{ResourceFilter:()=>p});var r=n(9896),i=n.n(r),a=n(6928),o=n.n(a),s=n(5506),c=n(7953),u=n(229);class p{constructor(e,t=[]){this.resourceDistPath=e,this.resourceRegex=t}async onInit(e){}async proceedBefore({rr:e,app:t}){const n=(e.reqUrlPathName??"").replace(/\.\./g,""),r=e.reqUrlObject;let a=!0;const p=this.resourceRegex.filter(r=>r instanceof RegExp?r.test(n):"string"==typeof r?RegExp(r).test(n):"function"==typeof r?r(e,t):"object"==typeof r&&"request"in r?"function"==typeof r.request?r.request(e,t):RegExp(r.request).test(n):void 0);for(const t of p){const n=o().join(this.resourceDistPath,"object"==typeof t&&"dist"in t?t.dist:r.pathname);if(a=!1,i().existsSync(n)){e.resStatusCode(u.HttpStatus.Ok),e.resSetHeader(c.HttpHeaders.ContentType,s.lookup(n).toString()),await e.resEnd(i().readFileSync(n));break}e.resStatusCode(u.HttpStatus.NotFound),await e.resEnd();break}return a}async proceedAfter({rr:e,app:t}){return!0}}},115:(e,t,n)=>{"use strict";n.d(t,{CrossDomainHeaderEndPoint:()=>i});var r=n(7953);class i{constructor(e){this.config=e}async endPoint(e,t){this.config?.accessControlAllowOrigin&&e.resSetHeader(r.HttpHeaders.AccessControlAllowOrigin,Array.isArray(this.config.accessControlAllowOrigin)?this.config.accessControlAllowOrigin.join(", "):this.config.accessControlAllowOrigin),this.config?.accessControlAllowMethods&&e.resSetHeader(r.HttpHeaders.AccessControlAllowMethods,Array.isArray(this.config.accessControlAllowMethods)?this.config.accessControlAllowMethods.join(", "):this.config.accessControlAllowMethods),this.config?.accessControlAllowHeaders&&e.resSetHeader(r.HttpHeaders.AccessControlAllowHeaders,Array.isArray(this.config.accessControlAllowHeaders)?this.config.accessControlAllowHeaders.join(", "):this.config.accessControlAllowHeaders),this.config?.accessControlExposeHeaders&&e.resSetHeader(r.HttpHeaders.AccessControlExposeHeaders,Array.isArray(this.config.accessControlExposeHeaders)?this.config.accessControlExposeHeaders.join(", "):this.config.accessControlExposeHeaders)}async onInit(e){}}},229:(e,t,n)=>{"use strict";var r;n.d(t,{HttpStatus:()=>r}),function(e){e[e.Ok=200]="Ok",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported"}(r||(r={}))},283:(e,t,n)=>{"use strict";n.d(t,{ForbiddenError:()=>a});var r=n(758),i=n(229);class a extends r.HttpError{constructor({status:e=i.HttpStatus.Forbidden,message:t="Forbidden"}={}){super({status:e,message:t})}}},346:(e,t,n)=>{"use strict";n.d(t,{InjectSituationType:()=>r.InjectSituationType});var r=n(5797)},426:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r,i={d:(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},a={};i.d(a,{T:()=>r}),function(e){e.toString=function(e,t){return null==e?"":"string"==typeof e?e:e.toString(t?.encoding??"utf-8",t?.start,t?.end)},e.toBuffer=(e,t)=>"base64"===t?.encoding?(e=e.split(";base64,").pop()||"",Buffer.from(e,"base64")):Buffer.from(e)}(r||(r={}));const o=a.T},758:(e,t,n)=>{"use strict";n.d(t,{HttpError:()=>r});class r{constructor({status:e,message:t="HttpError"}){this.name="Error",this.message=t,this.status=e}}},889:(e,t,n)=>{"use strict";n.d(t,{n:()=>u});var r={9284:(e,t,n)=>{var r;n.d(t,{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};a.d(o,{n:()=>s});var s,c=a(9284);!function(e){e.uniqueInts=(t,n,r)=>{const i=[];if(r>n-t)throw new Error("Count is greater than the range of unique integers");for(;i.length<r;){const r=e.int(t,n);i.includes(r)||i.push(r)}return i},e.chance=e=>{if(e<0||e>1)throw new Error("Percentage must be between 0 and 1");return Math.random()<e},e.int=(t,n)=>Math.floor(e.float(t,n)),e.float=(e,t)=>c.U.isNullOrUndefined(e)?Math.random():!c.U.isNullOrUndefined(e)&&c.U.isNullOrUndefined(t)?Math.random()*(e||0):Math.random()*((t||0)-(e||0))+(e||0),e.uuid=(e="xxxx-xxxx-xxxx-xxxx")=>e.replace(/[xy]/g,function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),e.uuid4=()=>{let e,t="";for(e=0;e<32;e+=1)switch(e){case 8:case 20:t+="-",t+=(16*Math.random()|0).toString(16);break;case 12:t+="-",t+="4";break;case 16:t+="-",t+=(4*Math.random()|8).toString(16);break;default:t+=(16*Math.random()|0).toString(16)}return t},e.hex=()=>{const e="0123456789ABCDEF".split("");let t="";for(let n=0;n<6;n++)t+=e[Math.floor(16*Math.random())];return t},e.rgb=()=>{const e="0123456789ABCDEF".split("");let t="#";for(let n=0;n<6;n++)t+=e[Math.floor(16*Math.random())];return t},e.rgba=()=>{const e="0123456789ABCDEF".split("");let t="#";for(let n=0;n<8;n++)t+=e[Math.floor(16*Math.random())];return t},e.alphabet=e=>{const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}}(s||(s={}));const u=o.n},1013:(e,t,n)=>{"use strict";n.d(t,{SimpleBootHttpServer:()=>Xe});var r={16:(e,t,n)=>{n.d(t,{p:()=>f});var r=n(2743),i=n(4647),a=n(970),o=n(9212),s=n(8259),c=n(742),u=n(532),p=n(4209),l=n(1448),d=n(653);let f=class{constructor(e,t){this.simstanceManager=e,this.simOption=t,this.subject=new d.B}get observable(){return this.subject.asObservable()}routingMap(e="",t){const n=t?.router??this.simOption.rootRouter;if(!n)throw new Error("no router");const r={};if(n){const i="object"==typeof n?n.constructor:n,s="object"==typeof n?n:void 0,c=new o.J({targetKeyType:i,originalType:i,value:s},this.simstanceManager).getConfig(a.sP);if(c){const n=e+c.path;c.route&&c.route[""]&&(r[n]=c.route[""]),c.route&&Object.entries(c.route).forEach(([e,t])=>{r[n+e]=t}),c.routers?.forEach(e=>{Object.assign(r,this.routingMap(n,{...t,router:e}))})}}return r}async routings(e,t){const n=t?.router??this.simOption.rootRouter;if(!n)throw new Error("no router");const r="object"==typeof n?n.constructor:n,i="object"==typeof n?n:void 0,a=new o.J({targetKeyType:r,originalType:r,value:i},this.simstanceManager),s=this._collectAllMatchingModules(a,e,[]),c=s.filter(t=>t.path===e.pathname&&t.module);if(c.length>0)return c.forEach(t=>this.subject.next({intent:e,routerManager:this,routerModule:t})),c;const u=s.filter(t=>t.path===e.pathname);return u.length>0?(u.forEach(t=>this.subject.next({intent:e,routerManager:this,routerModule:t})),u):[]}async routing(e,t){"string"==typeof e&&(e=new r.J(e));const n=t?.router??this.simOption.rootRouter;if(!n)throw new Error("no router");const i="object"==typeof n?n.constructor:n,a="object"==typeof n?n:void 0,s=new o.J({targetKeyType:i,originalType:i,value:a},this.simstanceManager),c=s.getValue(),u=this.getExecuteModule(s,e,[],t);if(u){const[t,n]=u;t.routerChains=n,this.activeRouterModule=t;const r={intent:e,routerModule:t,routerManager:this};if(n.length>0)for(let e=0;e<n.length;e++){const t=n[e],i=n[e+1],a=t.getValue();p.W.isCanActivate(a)&&i&&await a.canActivate(r,i.getValue()),p.W.isOnRouting(a)&&i&&await a.onRouting(r)}this.activeRouterModule=t;const i=t.getModuleInstance();if(t?.module){const e=t.router?.getValue();p.W.isCanActivate(e)&&await e.canActivate(r,i),p.W.isOnRouting(e)&&await e.onRouting(r),i&&p.W.isOnRouting(i)&&await i.onRouting(r)}else{const e=t.routerChains[t.routerChains.length-1],n=e?.getValue();p.W.isCanActivate(n)&&await n.canActivate(r,i),p.W.isOnRouting(n)&&await n.onRouting(r)}const a=this.activeRouterModule;return this.subject.next({intent:e,routerModule:a,routerManager:this}),a}{const t=await this._handleNotFoundRouting(c,e);return this.subject.next({intent:e,routerModule:t,routerManager:this}),t}}async _handleNotFoundRouting(e,t){const n=new i.i(this.simstanceManager,e,void 0,[]),r={intent:t,routerModule:n,routerManager:this},a=e;return p.W.isCanActivate(a)&&await a.canActivate(r,null),p.W.isOnRouting(a)&&await a.onRouting(r),this.activeRouterModule=n,this.activeRouterModule}getExecuteModule(e,t,n,r){const i=t.pathname,s=e.getConfig(a.sP);if(s){const c=[];if(Array.isArray(s.filters)?c.push(...s.filters):s.filters&&c.push(s.filters),c.some(e=>!1===("function"==typeof e?this.simstanceManager.getOrNewSim({target:e}):e)?.isAccept(t)))return;const u=n.map(e=>e.getConfig(a.sP)?.path||"");if(this.isRootUrl(s.path,u,i)){const i=[...n,e];if(s.routers&&s.routers.length>0){let e,n=-1;for(const a of s.routers){const s=new o.J({targetKeyType:a,originalType:a},this.simstanceManager),c=this.getExecuteModule(s,t,i,r);if(c){const[t,i]=c,a=t.path?.length||0;a>n?(n=a,e=c):a===n&&"last"===r?.find?.router&&(e=c)}}if(e)return e}const a=this.findRouterOrModule(e,s,u,t);if(a)return[a,i]}}}isRootUrl(e,t,n){const r=t.join("")+(e||"");if("/"===r)return!0;const i=r.split("/"),a=n.split("/").slice(0,i.length).join("/");return!!u.r.Path.pathNameData(a,r)}_collectAllMatchingModules(e,t,n){const r=[],i=t.pathname,s=e.getConfig(a.sP);if(s){const c=[];if(Array.isArray(s.filters)?c.push(...s.filters):s.filters&&c.push(s.filters),c.some(e=>!1===("function"==typeof e?this.simstanceManager.getOrNewSim({target:e}):e)?.isAccept(t)))return r;const u=n.map(e=>e.getConfig(a.sP)?.path||"");if(this.isRootUrl(s.path,u,i)){const i=[...n,e];if(s.routers&&s.routers.length>0)for(const e of s.routers){const n=new o.J({targetKeyType:e,originalType:e},this.simstanceManager);r.push(...this._collectAllMatchingModules(n,t,i))}const a=this.findRouterOrModule(e,s,u,t);a&&(a.routerChains=i,r.push(a))}}return r}findRouterOrModule(e,t,n,r){const a=this.findRouting(e,t,n,r);if(a?.module)return a.intent=r,a;const o=n.join("")+(t.path||"");if(this.isRootUrl(t.path,n,r.pathname)){const t=new i.i(this.simstanceManager,e);return t.intent=r,t.path=o,t.pathData=r.getPathnameData(o),t}}findRouting(e,t,n,r){const a=n.join("")+t.path;if(t.route)for(const n of Object.keys(t.route).filter(e=>!e.startsWith("_"))){const o=a+n,s=r.getPathnameData(o);if(s)try{const a=this.findRouteProperty(t.route,n,r),c=new i.i(this.simstanceManager,e,a.child);return c.data=a.data,c.path=o,c.pathData=s,c.propertyKeys=a.propertyKeys,c}catch(e){}}}findRouteProperty(e,t,n){let r,i,a;const o=e[t];if("function"==typeof o)r={targetKeyType:o,originalType:o};else if("symbol"==typeof o)r=this.simstanceManager.findLastSim(o)?.type;else{if("string"==typeof o)return this.findRouteProperty(e,o,n);if(Array.isArray(o)){const e=o?.[0];if("object"==typeof e&&"filters"in e&&"target"in e){const t=[];Array.isArray(e.filters)?t.push(...e.filters):e.filters&&t.push(e.filters),t.some(e=>!1===("function"==typeof e?this.simstanceManager.getOrNewSim({target:e}):e)?.isAccept(n))||(r={targetKeyType:e.target,originalType:e.target})}else r={targetKeyType:e,originalType:e};i=o?.[1]}else if("object"==typeof o&&"target"in o&&"propertyKeys"in o){const e=o.filters?.filter(e=>e).some(e=>!1===("function"==typeof e?this.simstanceManager.getOrNewSim({target:e}):e)?.isAccept(n));e||(r={targetKeyType:o.target,originalType:o.target},a=o.propertyKeys)}else if("object"==typeof o&&"filters"in o&&"target"in o){const e=[];Array.isArray(o.filters)?e.push(...o.filters):o.filters&&e.push(o.filters),e.some(e=>!1===("function"==typeof e?this.simstanceManager.getOrNewSim({target:e}):e)?.isAccept(n))||(r={targetKeyType:o.target,originalType:o.target})}}return{child:r,data:i,propertyKeys:a}}};f=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}([c.on,function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:paramtypes",t)}(0,[s.T,l.t])],f)},420:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(3966);class i extends r.W{constructor(e,t,n,r){super(e,t,r),this.propertyKeys=n}}},532:(e,t,n)=>{n.d(t,{r:()=>u});var r={3056:(e,t,n)=>{n.d(t,{$:()=>r});var r,i=n(9284);!function(e){e.deleteEnter=e=>e.replace(/\r?\n/g,""),e.pickEmoji=e=>e.match(/[\p{Emoji}]/gu)??[],e.regexExec=(e,t)=>{let n=e.exec(t);const r=[];for(;n;)r.push(n),n=e.exec(n.input);return r},e.regexExecArrayReplace=(t,n,r)=>((Array.isArray(n)?n:e.regexExec(n,t)).reverse().forEach(e=>{const n="string"==typeof r?r:r(e);t=t.substr(0,e.index)+t.substr(e.index).replace(e[0],n)}),t),e.escapeSpecialCharacterRegExp=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),e.trim=e=>e.trim(),e.rsubString=(e,t)=>e.substring(e.length-t,e.length),e.lsubString=(e,t)=>e.substring(0,t),e.lpad=(t,n,r)=>{for(;n>r.length;)r=t+r;return e.rsubString(r,n)},e.rpad=(t,n,r)=>{for(;n>r.length;)r+=t;return e.lsubString(r,n)},e.lappend=(e,t)=>{let n="",r=0;for(;r++<e;)n+=t;return n},e.unescape=e=>{if(!e)return"";const t={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 e.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(e,n)=>n.toLowerCase().split(";").map(n=>n in t?t[n]:e).join(""))},e.executeExpression=(e,t)=>e.replace(/\${([^{}]*)}/g,(e,n)=>String(t[n]??e)),e.ellipsis=(e,t)=>e.length>t?`${e.slice(0,t)}...`:e,e.appendPostposition=(e,{vowel:t,consonant:n})=>`${e}${i.U.lastConsonantLetter(e)?n:t}`}(r||(r={}))},9284:(e,t,n)=>{var r;n.d(t,{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};a.d(o,{r:()=>s});var s,c=a(3056);!function(e){let t,n;e.bindExpression=(e,t)=>(e??"").replace(/\$\{([\s\S.]*?)\}/g,(e,n)=>{const[r,i]=n.split(":"),a=t[r];return a?"function"==typeof a?a(t[i]):a:""}),function(e){e.isExpression=e=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(e??""),e.expressionGroups=e=>c.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,e??"")}(t=e.Group||(e.Group={})),function(e){e.pathNameData=(e,t)=>{const n=e.split("/"),r=t.split("/");if(n.length!==r.length)return;const i={};for(let e=0;e<r.length;e++){const t=r[e],a=n[e],o=/^\{(.+)\}$/g.exec(t);if(!o){if(t!==a)return;continue}const[s,c]=o[1].split(":");if(c&&!new RegExp(c).test(a))return;i[s]=a}return i}}(n=e.Path||(e.Path={}))}(s||(s={}));const u=o.r},653:(e,t,n)=>{n.d(t,{B:()=>u});var r={4817:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(6038);class i{constructor(e){this._producerFunction=e}subscribe(e,t,n){const i={next:"object"==typeof e?e.next:e,error:"object"==typeof e?e.error:t,complete:"object"==typeof e?e.complete:n},a=new r.v({next:e=>{i.next?.(e)},error:e=>{i.error?.(e)},complete:()=>{i.complete?.()}});let o;this._producerFunction&&(o=this._producerFunction(a));let s=!1;return{get closed(){return s},unsubscribe:()=>{"function"==typeof o?o():o&&"function"==typeof o.unsubscribe&&o.unsubscribe(),s=!0}}}toPromise(){return new Promise((e,t)=>{let n,r;r=this.subscribe({next:e=>{n=e},error:e=>{t(e),r.unsubscribe()},complete:()=>{e(n),r.unsubscribe()}})})}pipe(...e){return 0===e.length?this:e.reduce((e,t)=>t(e),this)}}},6038:(e,t,n)=>{n.d(t,{v:()=>r});class r{constructor(e){this.destination=e,this.closed=!1}next(e){this.closed||this.destination.next(e)}error(e){this.closed||(this.closed=!0,this.destination.error(e),this.unsubscribe())}complete(){this.closed||(this.closed=!0,this.destination.complete(),this.unsubscribe())}unsubscribe(){this.closed=!0}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};a.d(o,{B:()=>c});var s=a(4817);class c extends s.c{constructor(){super(e=>this._subscribeToSubject(e)),this._observers=new Set,this._isStopped=!1,this._hasError=!1}_subscribeToSubject(e){const t={next:e.next.bind(e),error:e.error.bind(e),complete:e.complete.bind(e)};if(this._isStopped)return this._hasError?t.error?.(this._error):t.complete?.(),{closed:!0,unsubscribe:()=>{}};this._observers.add(t);let n=!1;return{get closed(){return n},unsubscribe:()=>{this._observers.delete(t),n=!0}}}next(e){this._isStopped||this._observers.forEach(t=>{t.next?.(e)})}error(e){this._isStopped||(this._hasError=!0,this._error=e,this._isStopped=!0,this._observers.forEach(t=>t.error?.(e)),this._observers.clear())}complete(){this._isStopped||(this._isStopped=!0,this._observers.forEach(e=>e.complete?.()),this._observers.clear())}asObservable(){return new s.c(e=>this._subscribeToSubject(e))}}const u=o.B},742:(e,t,n)=>{n.d(t,{wB:()=>o}),n(6404),n(5053);var r,i,a={d:(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};a.d({},{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={})),function(e){e.Singleton="Singleton",e.Transient="Transient"}(i||(i={})),new Map,new Set;const o=Symbol("Sim");Symbol("PostConstruct")},970:(e,t,n)=>{n.d(t,{cI:()=>a,sP:()=>i});var r=n(5053);const i=Symbol("Router"),a=e=>{null!=e&&"object"==typeof e&&(e=e.constructor);try{return r.d.getMetadata(i,e)}catch(e){}};Symbol("RouteMetadataKey")},1252:(e,t,n)=>{n.d(t,{O:()=>l,n:()=>p});var r=n(2743),i=n(8259),a=n(742),o=n(9212),s=n(653),c=n(16),u=n(1448);const p=e=>"object"==typeof e&&"string"==typeof e.router&&"function"==typeof e.rootRouter;let l=class{constructor(e,t,n){this.simstanceManager=e,this.routerManager=t,this.simOption=n,this.subject=new s.B}get observable(){return this.subject.asObservable()}async publish(e,t){const n=[],i=p(e)?e.rootRouter:this.simOption.rootRouter,a="string"==typeof(e=p(e)?e.router:e)&&e.match(/^Router\((.+)\):\/(.*)$/);if(a&&"string"==typeof e){const o=a[1],s=a[2],c=(await this.routerManager.routing(o,{router:i})).getModuleInstance();c&&n.push(c),e=new r.J(s,t)}else"string"==typeof e&&(e=new r.J(e,t));let s=e;const c=[];a||(s.symbols?n.push(...s.symbols.map(e=>this.simstanceManager.findSims(e)).flat()):s.scheme?n.push(...this.simstanceManager.getSimConfig(s.scheme)):n.push(...this.simstanceManager.getSimAtomics()));const u=n.map(e=>e instanceof o.J?e.getValue():e);return this.subject.next(e),u.forEach(e=>{let t=e;if(t)if(s.paths.length>0){let e=t,n="";s.paths.filter(e=>e).forEach(r=>{e=t,t=t?.[r],n=r}),t&&"function"==typeof t?r.M.DATA_PARAMETERS===s.publishType?c.push(t.call(e,s.data)):r.M.INLINE_DATA_PARAMETERS===s.publishType?c.push(t.call(e,...s.data)):c.push(t.call(e,s)):t&&(e[n]=s.data,c.push(e[n]))}else r.M.DATA_PARAMETERS===s.publishType?c.push(t?.intentSubscribe?.(s.data)):r.M.INLINE_DATA_PARAMETERS===s.publishType?c.push(t?.intentSubscribe?.(...s.data)):c.push(t?.intentSubscribe?.(s))}),c}};l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}([a.on,function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:paramtypes",t)}(0,[i.T,c.p,u.t])],l)},1448:(e,t,n)=>{n.d(t,{t:()=>r});class r{constructor({rootRouter:e,container:t,cache:n,advice:r=[],proxy:i,using:a}={}){this.rootRouter=e,this.container=t,this.advice=r,this.proxy=i,this.using=a,this.cache=n}addAdvicce(e){this.advice??(this.advice=[]),this.advice.push(e)}setAdvice(...e){return this.advice=e,this}}},2018:(e,t,n)=>{n.d(t,{C:()=>i});var r=n(3966);class i extends r.W{constructor(e,t,n){super(e,t,n)}}},2225:(e,t,n)=>{n.d(t,{j1:()=>i}),n(6404);const r=Symbol("Sim:NoProxy"),i=(e,t)=>null!=e&&!0===((e,t)=>{try{return void 0===t?Reflect.getMetadata(r,e):Reflect.getMetadata(r,e,t)}catch(e){return}})(e,t)},2482:(e,t,n)=>{n.d(t,{Mq:()=>c,_t:()=>a,tr:()=>o}),n(6404);var r,i=n(5053);!function(e){e.INDEX="SIMPLE_BOOT_CORE://Inject/INDEX"}(r||(r={}));class a{constructor({situationType:e,data:t,index:n}){this.situationType=e,this.data=t,this.index=n}}class o{constructor(e){this.containers=[],e&&this.containers.push(...e)}push(...e){this.containers.push(...e)}get length(){return this.containers.length}find(e,t){return this.containers.find(e)}}const s=Symbol("Inject"),c=(e,t)=>(null!=e&&void 0!==e&&"object"==typeof e&&(e=e.constructor),t?Reflect.getOwnMetadata(s,e,t):i.d.getMetadata(s,e)??[])},2743:(e,t,n)=>{n.d(t,{J:()=>a,M:()=>r});var r,i=n(532);!function(e){e.DATA_PARAMETERS="DATA_PARAMETERS",e.INLINE_DATA_PARAMETERS="INLINE_DATA_PARAMETERS"}(r||(r={}));class a{constructor(e,t,n){if(this.uri=e,this.data=t,this.event=n,this.sessionData=new Map,"string"==typeof e){const t=e.match(/^Symbol\.for\((.+)\):\/(.*)$/);if(t){const e=Symbol.for(t[1]);this.uri={symbol:e,uri:t[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 e=this.uri.split("://");return e.length>1?e[0]:void 0}}get paths(){return this.pathname.split("/")??[]}get fullPath(){const e=("string"==typeof this.uri?this.uri:this.uri.uri).split("://");return e[e.length>=2?1:0]??""}get pathname(){return this.fullPath.split("?")[0]}get query(){return this.fullPath.split("?")[1]??""}get queryParams(){const e={};return this.query.split("&")?.forEach(t=>{const n=t.split("=");e[n[0]]=n[1]}),e}get queryParamsAfterDecodeURI(){const e=this.queryParams;for(const t in e)e.hasOwnProperty(t)&&(e[t]=decodeURIComponent(e[t]));return e}getPathnameData(e){return i.r.Path.pathNameData(this.pathname,e)}get isSymbolScheme(){return void 0!==this.symbols}}},3605:(e,t,n)=>{n.d(t,{i:()=>i}),n(6404);class r{constructor(e,t){this.target=e,this.metaData=t}}class i extends r{constructor(e,t,n,r){super(e,t),this.property=n,this.parameter=r}call(...e){return this.target[this.property](...e)}}},3896:(e,t,n)=>{n.d(t,{I:()=>r});const r=e=>"function"==typeof e?.onSimCreateProxyCompleted},3966:(e,t,n)=>{n.d(t,{W:()=>r});class r{constructor(e,t,n){this.message=e,this.name=t,this.stack=n}}},4209:(e,t,n)=>{var r;n.d(t,{W:()=>r}),function(e){e.isCanActivate=e=>"function"==typeof e?.canActivate,e.isOnRouting=e=>"function"==typeof e?.onRouting,e.isHasActivate=e=>"function"==typeof e?.hasActivate}(r||(r={}))},4297:(e,t,n)=>{n.d(t,{P:()=>r});const r=e=>"function"==typeof e?.onSimCreate},4642:(e,t,n)=>{n.d(t,{B:()=>p}),n(6404);var r=n(8259),i=n(1448),a=n(1252),o=n(16),s=n(2743),c=n(2018),u=n(742);class p{constructor(e=new i.t){this.option=e,this.simstanceManager=new r.T(this,e),this.simstanceManager.setStoreSet(r.T,this.simstanceManager),this.routerManager=this.simstanceManager.proxy(new o.p(this.simstanceManager,e)),this.intentManager=this.simstanceManager.proxy(new a.O(this.simstanceManager,this.routerManager,e)),this.simstanceManager.setStoreSet(a.O,this.intentManager),this.simstanceManager.setStoreSet(o.p,this.routerManager),u.l8.add(this)}getSimstanceManager(){return this.simstanceManager}getIntentManager(){return this.intentManager}getRouterManager(){return this.routerManager}run(e){return this.simstanceManager.run(e),this.simstanceManager}simAtomic(e){return"symbol"==typeof e?this.simstanceManager.findFirstSim(e):"function"==typeof e?this.simstanceManager.findFirstSim({type:e}):void 0}simAtomics(e){return"symbol"==typeof e?this.simstanceManager.findSims(e)??[]:"function"==typeof e?this.simstanceManager.findSims({type:e})??[]:[]}getInstance(e){const t=this.sim(e);if(t)return t;throw new c.C("SimNoSuch: no simple instance(getInstance) name:"+e?.prototype?.constructor?.name+","+e)}sim(e){return this.simAtomic(e)?.getValue()}sims(e){return this.simAtomics(e).map(e=>e.getValue())}addSim(e,t){const n=(0,u.on)(e);"function"==typeof n&&t&&n(t)}publishIntent(e,t){return e instanceof s.J?this.intentManager.publish(e):((0,a.n)(e),this.intentManager.publish(e,t))}routing(e,t){if(e instanceof s.J)return this.routerManager.routing(e,t);if("string"==typeof e){const n=new s.J(e);return this.routerManager.routing(n,t)}{const n=new s.J(e.path,e.data);return this.routerManager.routing(n,t)}}}},4647:(e,t,n)=>{n.d(t,{i:()=>c});var r=n(9212),i=n(5846),a=n(420),o=n(970),s=n(532);class c{get path(){return this._path}set path(e){this._path=e}get data(){return this._data}set data(e){this._data=e}get intent(){return this._intent}set intent(e){this._intent=e}get propertyKeys(){return this._propertyKeys}set propertyKeys(e){this._propertyKeys=e}get pathData(){return this._pathData}set pathData(e){this._pathData=e}constructor(e,t,n,r=[]){this.simstanceManager=e,this.router=t,this.module=n,this.routerChains=r}getRouterPath(e=""){return this.getRouterPaths().map(e=>e??"").join(e)}getRouterPaths(){return this.routerChains.map(e=>(0,o.cI)(e instanceof r.J?e.type.targetKeyType:e)?.path)}getRouterPathData(e){return s.r.Path.pathNameData(e,this.getRouterPath())}getModuleInstance(e,t=!0){const n=this.simstanceManager.getOrNewSim({target:this.module?.targetKeyType,originTypeTarget:this.module?.originalType});if(e&&this.propertyKeys&&this.propertyKeys.includes(e)){let r=n[e];return t&&"boolean"==typeof t?r=r.bind(n):t&&"object"==typeof t&&(r=r.bind(t)),r}return n}executeModuleProperty(e,...t){const n=this.getModuleInstance();if(e){if((0,i.A)(n,e)){const r=new Map;return t.forEach(e=>r.set(e.constructor,e)),this.simstanceManager.executeBindParameterSim({target:n,targetKey:e},r)}if(n[e])return n[e]?.(...t);throw new a.e(`${e.toString()} noSuch`,e.toString(),e)}}get firstRouteChain(){return this.routerChains[0]}get firstRouteChainValue(){return this.firstRouteChain.getValue()}get lastRouteChain(){return this.routerChains[this.routerChains.length-1]}get lastRouteChainValue(){return this.lastRouteChain.getValue()}hasActivateInLastRoute(e){return!0===this.lastRouteChainValue?.hasActivate(e)}get queryParams(){if(this.intent)return this.intent.queryParams}get queryParamsAfterDecodeURI(){if(this.intent)return this.intent.queryParamsAfterDecodeURI}}},5053:(e,t,n)=>{n.d(t,{d:()=>c});var r={9771:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t=N(e,i);if(void 0!==t){var n=t.call(e,"string");if(S(n))throw new TypeError;return n}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o,s={};a.d(s,{d:()=>o}),a(9771),function(e){e.getParameterTypes=(e,t)=>t?Reflect.getMetadata("design:paramtypes",e,t)||[]:Reflect.getMetadata("design:paramtypes",e)||[],e.getReturnType=(e,t)=>Reflect.getMetadata("design:returntype",e,t),e.getType=(e,t)=>t?Reflect.getMetadata("design:type",e,t):Reflect.getMetadata("design:type",e),e.getMetadata=(e,t,n)=>n?Reflect.getMetadata(e,t,n):Reflect.getMetadata(e,t),e.getMetadataKeys=e=>Reflect.getMetadataKeys(e),e.getOwnMetadata=(e,t,n)=>n?Reflect.getOwnMetadata(e,t,n):Reflect.getOwnMetadata(e,t),e.getMetadatas=t=>e.getMetadataKeys(t).map(n=>e.getMetadata(n,t)),e.metadata=(e,t)=>Reflect.metadata(e,t),e.defineMetadata=(e,t,n,r)=>{r&&Reflect.defineMetadata?Reflect.defineMetadata(e,t,n,r):Reflect.defineMetadata&&Reflect.defineMetadata(e,t,n)}}(o||(o={}));const c=s.d},5846:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(5053);const i=Symbol("Injection"),a=(e,t)=>r.d.getMetadata(i,e,t)},6165:(e,t,n)=>{n.d(t,{Ss:()=>u,to:()=>p}),n(6404);var r=n(5053),i=n(3605),a=n(7441);const o=Symbol("After"),s=Symbol("Before"),c=(Symbol("Around"),e=>a.B.allProtoTypeName(e).map(t=>new i.i(e,((e,t)=>r.d.getMetadata(o,e,t))(e,t),t)).filter(e=>void 0!==e.metaData)||[]),u=(e,t,n)=>c(e).filter(e=>t===e.metaData?.property&&n===e.metaData.type?.prototype)||[],p=(e,t,n)=>(e=>a.B.allProtoTypeName(e).map(t=>new i.i(e,((e,t)=>r.d.getMetadata(s,e,t))(e,t),t)).filter(e=>void 0!==e.metaData)||[])(e).filter(e=>t===e.metaData?.property&&n===e.metaData.type?.prototype)||[]},6404:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t="string",n=N(e,i);if(void 0!==n){var r=n.call(e,t);if(S(r))throw new TypeError;return r}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))},6622:(e,t,n)=>{n.d(t,{e:()=>s});var r=n(6165),i=n(7441),a=n(8537),o=n(2482);class s{constructor(e,t,n){this.simpleApplication=e,this.simstanceManager=t,this.simOption=n}get(e,t){return"_SimpleBoot_application"===t?this.simpleApplication:"_SimpleBoot_simstanceManager"===t?this.simstanceManager:"_SimpleBoot_simOption"===t?this.simOption:e[t]}set(e,t,n,r){return n=this.simstanceManager?.proxy(n),e[t]=n,!0}apply(e,t,n){let r;try{this.aopBefore(t,e);try{r=Reflect.apply(e,t,n)}catch(e){throw e}finally{this.aopAfter(t,e)}}catch(r){console.error(r);const i=this.getExceptionHandler(r,t,e);if(!(i.length>0&&i[0]))throw r;{const e=i[0];this.executeExceptionHandler(r,e,n)}}return r}executeExceptionHandler(e,t,n){const r=new Map;r.set(e.constructor,e);const i=new o._t({situationType:a.W$.ERROR_OBJECT,data:e}),s=new o._t({situationType:a.W$.PARAMETER,data:n});r.set(o.tr,new o.tr([i,s])),n?.forEach(e=>{r.set(e.constructor,e)});try{this.simstanceManager.executeBindParameterSim({target:t.thisArg,targetKey:t.config.propertyKey},r)}catch(t){e=t}if(t.config.config.throw){const r=this.getExceptionHandler(e,t.thisArg,t.config.method);(r?.length??0)>0&&this.executeExceptionHandler(e,r[0],n)}}getExceptionHandler(e,t,n){const r=this.simOption.advice.map(e=>this.simstanceManager?.getOrNewSim({target:e})).filter(e=>e).map(t=>({thisArg:t,config:(0,a.v0)(t,e,[n])}))??[];return[{thisArg:t,config:(0,a.v0)(t,e,[n])},...r].filter(e=>e&&e.config)}aopBefore(e,t){const n=i.B.prototypeName(e,t);if(n&&e){(0,r.to)(e,n).forEach(r=>{r.call(e,t,n)});for(let i=0;i<this.simOption.advice.length;i++){const a=this.simstanceManager?.getOrNewSim({target:this.simOption.advice[i]});(0,r.to)(a,n,Object.getPrototypeOf(e)).forEach(r=>{r.call(e,t,n)})}}}aopAfter(e,t){const n=i.B.prototypeName(e,t);if(n){(0,r.Ss)(e,n).forEach(r=>{r.call(e,t,n)});for(let i=0;i<this.simOption.advice.length;i++){const a=this.simstanceManager?.getOrNewSim({target:this.simOption.advice[i]});(0,r.Ss)(a,n,Object.getPrototypeOf(e)).forEach(r=>{r.call(e,t,n)})}}}has(e,t){return"isProxy"===t||t in e}}},7441:(e,t,n)=>{n.d(t,{B:()=>p});var r={7855:(e,t,n)=>{n.d(t,{O:()=>r});const r=e=>null!=e},9284:(e,t,n)=>{var r;n.d(t,{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};a.d(o,{B:()=>s});var s,c=a(7855),u=a(9284);!function(e){let t,n;e.constructorName=e=>e&&e.constructor&&e.constructor.name?e.constructor.name:e&&e.name?e.name:void 0,e.deepCopy=e=>e instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(e.entries())))):e instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(e.values())))):u.U.isNullOrUndefined(e)?e:JSON.parse(JSON.stringify(e)),e.allProtoTypeName=(t,n)=>{let r=[];if(t){const i=Object.getPrototypeOf(t);i&&(r=Object.keys(i)||[]).length>0&&(r=r.concat(e.allProtoTypeName(i,n)))}let i=r.filter(e=>"constructor"!==e);if(n&&t){const e=Object.getPrototypeOf(t);i=i.filter(t=>n(t,e?.[t]))}return i},e.uniqueKeys=e=>Array.from(new Set((Array.isArray(e)?e:[e]).flatMap(e=>Object.keys(e)))),e.ownPropertyNames=e=>{const t=[];if(e)if(e.prototype)t.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(e)));else{const n=Object.getPrototypeOf(e);t.push(...Object.getOwnPropertyNames(n))}return t.filter(e=>"constructor"!==e)},e.protoTypeName=e=>{let t=[];if(e){const n=Object.getPrototypeOf(e);t=Object.keys(n)||[]}return t.filter(e=>"constructor"!==e)},e.protoTypes=e=>{const t=[];if(e){const n=Object.getPrototypeOf(e);(Object.keys(n)||[]).filter(e=>"constructor"!==e).forEach(e=>{t.push(n[e])})}return t},e.seal=e=>Object.seal(e),e.isPrototypeOfTarget=(e,t)=>!(!e||!t)&&Object.prototype.isPrototypeOf.call(e.prototype,t),e.prototypeOfDepth=(e,t)=>{let n=e;const r=[];if(t)do{if(n=Object.getPrototypeOf(n),n?.constructor===t)break;r.push(n)}while(n);return r},e.allProtoType=e=>{const t=(e,n=[])=>(e.prototype&&(n.push(e),t(Object.getPrototypeOf(e),n)),n);return t(e)},e.prototypeOf=e=>Object.getPrototypeOf(e),e.prototypeKeyMap=e=>{const t=new Map;if(e){const n=Object.getPrototypeOf(e);(Object.keys(n)||[]).filter(e=>"constructor"!==e).forEach(e=>{t.set(n[e],e)})}return t},e.prototypeName=(t,n)=>e.prototypeKeyMap(t).get(n),e.pickRandomKey=e=>{const t=Object.keys(e);return t[Math.floor(Math.random()*t.length)]},e.pickRandomValue=e=>{const t=Object.keys(e);return e[t[Math.floor(Math.random()*t.length)]]},e.pickRandomKeyValue=e=>{const t=Object.keys(e),n=t[Math.floor(Math.random()*t.length)];return{key:n,value:e[n]}},e.keyValues=e=>Object.keys(e).map(t=>({key:t,value:e[t]})),e.entries=e=>Object.entries(e),e.values=e=>Object.values(e),e.keys=e=>Object.keys(e),e.keyLength=t=>e.keys(t).length,e.toDeleteUndefinedAndNull=(e,t)=>{const n=e=>Array.isArray(e)?e.filter(e=>null!=e).map(n):e&&"object"==typeof e?t?.deep?Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t).map(([e,t])=>[e,n(t)])):Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t)):e;return n(e)},function(e){e.isFunctionScript=e=>e.trim().startsWith("function"),e.isArrowFunctionScript=e=>/^\s*\([^)]*\)\s*=>/.test(e),e.toOptionalChainPath=t=>{if(!t)return"";if(t.trim().startsWith("{")&&t.trim().endsWith("}"))return t;if(e.isFunctionScript(t)||e.isArrowFunctionScript(t))return t;if(t.includes(" ? ")&&t.includes(" : ")){const e=t.split(/(\s+\?\s+|\s+:\s+)/).map((e,t)=>{if(0===t){const t=e.match(/[^?.[\]]+|\[[^\]]*\]/g);if(t&&t.length>1)return t.join("?.")}return e});return e.join("")}if(t.includes("(")){const n=[];let r=t,i=0;const a=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let o;for(;null!==(o=a.exec(t));){const t=o[0],a=o[1],s=o[2],c=`__FUNC_CALL_${i}__`,u=`${a}?.(${s?e.toOptionalChainPath(s):""})`;n.push({original:t,processed:u,placeholder:c}),r=r.replace(t,c),i++}const s=r.match(/[^?.[\]]+|\[[^\]]*\]/g);let c="";c=s&&s.length>1?s.join("?."):r;for(const e of n)c=c.replace(e.placeholder,e.processed);return c}const n=t.match(/[^?.[\]]+|\[[^\]]*\]/g);return n?n.join("?."):t},e.removeOptionalChainOperator=e=>e?e.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const t=e=>{const t=[],n=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let r,i=0;const a=e.match(n);if(a&&(a?.index??0)>0)t.push(e.substring(0,a.index)),i=a.index;else if(!a&&e.length>0)return t.push(e),t;for(;null!==(r=n.exec(e));){if(r.index>i){const n=e.substring(i,r.index);n.startsWith(".")?t.push(n.substring(1)):t.push(n)}r[1]?t.push(r[1]):r[2]?t.push(parseInt(r[2],10)):r[4]&&t.push(r[4]),i=n.lastIndex}if(i<e.length){const n=e.substring(i);n.startsWith(".")?t.push(n.substring(1)):t.push(n)}return t};e.to=t=>{const n={};return Object.entries(t).forEach(([t,r])=>{e.set(n,t,r)}),n},e.set=(e,n,r)=>{const i=t(n);let a=e;for(let e=0;e<i.length;e++){const t=i[e];if(e===i.length-1)a[t]=r;else{const n=i[e+1];if("number"==typeof n){if(Array.isArray(a[t])||(a[t]=[]),Array.isArray(a[t]))for(;a[t].length<=n;)a[t].push({})}else"object"==typeof a[t]&&null!==a[t]||(a[t]={});a=a[t]}}},e.get=(e,n,r)=>{const i=t(n);let a=e;for(let e=0;e<i.length;e++){const t=i[e];if(null==a)return r;if("object"!=typeof a||null===a||!(t in a))return r;a=a[t]}return a},e.deletePath=(e,n)=>{const r=t(n);if(0===r.length)return!1;let i=e;for(let e=0;e<r.length-1;e++){const t=r[e];if(null==i)return!1;if("object"!=typeof i||null===i||!(t in i))return!1;i=i[t]}const a=r[r.length-1];return null!==i&&"object"==typeof i&&a in i&&(Array.isArray(i)&&"number"==typeof a?i.splice(a,1):delete i[a],!0)},e.availablePath=(e,t)=>{const n=[],r=e=>"number"==typeof e?"["+e+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)?e:"['"+e+"']",i=(e,a,o)=>{null!==e&&"object"==typeof e&&(o.has(e)||(o.add(e),Array.isArray(e)?e.forEach((e,s)=>{const c=r(s),u=a?`${a}${c}`:c;t&&!t(u,e)||n.push(u),i(e,u,o)}):Object.keys(e).forEach(s=>{const c=r(s);let u;u=c.startsWith("[")?a?`${a}${c}`:c:a?`${a}.${c}`:c,t&&!t(u,e[s])||n.push(u),i(e[s],u,o)})))};return i(e,"",new Set),n},e.detectPathFromScript=(e,t)=>{const n=new Set;class r{constructor(e){this.prefix=e,this.usingVars=n}set(e,t,n,r){return!0}get(e,t,n){if("symbol"==typeof t)return this.createSafeProxy(this.prefix);let r;const i=String(t);return r=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,r&&this.usingVars.add(r),this.createSafeProxy(r)}apply(e,t,n){return this.createSafeProxy(this.prefix)}createSafeProxy(e){const t=new r(e);return new Proxy(()=>{},{get:(n,r,i)=>r===Symbol.toPrimitive?()=>"":"valueOf"===r?()=>t.createSafeProxy(e):"toString"===r?()=>"":t.get(n,r,i),set:t.set.bind(t),apply:t.apply.bind(t)})}}const i={window:new Proxy(()=>{},new r("window")),document:new Proxy(()=>{},new r("document")),console:new Proxy(()=>{},new r("console"))},a=new Proxy(()=>{},new r("this"));try{new Function("window","document","console",`"use strict"; ${e}; `).call(a,i.window,i.document,i.console)}catch(e){console.error("detectPathFromScript error:",e)}if(t?.excludeThis){const e=new Set;return n.forEach(t=>{"this"!==t&&(t.startsWith("this.")?e.add(t.substring(5)):e.add(t))}),e}return n}}(t=e.Path||(e.Path={})),e.toDeleteKey=(t,n)=>{const r={...t};return e.deleteKey(r,n),r},e.deleteKey=(e,t)=>{t.filter(e=>(0,c.O)(e)).forEach(t=>{delete e[t]})},function(e){e.evalReturn=(t,n={})=>{let r="",i="";return"object"==typeof t?(r=t.bodyScript,i=t.returnScript):i=t,e.eval(`${r}; return ${i} `,n)},e.eval=(e,t={})=>{try{return Function(`"use strict"; ${e} `).bind(t)()}catch(t){return console.error("eval error",t),void console.error(e)}}}(n=e.Script||(e.Script={}))}(s||(s={}));const p=o.B},8259:(e,t,n)=>{n.d(t,{T:()=>S}),n(6404);var r=n(9492),i=n(2018),a=n(742),o=n(7441),s=n(9212),c=n(5053),u=n(2482),p=n(1448),l=n(6622),d={2676:(e,t,n)=>{n.d(t,{B:()=>r});var r,i=n(7855),a=n(9284);!function(e){let t,n;e.constructorName=e=>e&&e.constructor&&e.constructor.name?e.constructor.name:e&&e.name?e.name:void 0,e.deepCopy=e=>e instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(e.entries())))):e instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(e.values())))):a.U.isNullOrUndefined(e)?e:JSON.parse(JSON.stringify(e)),e.allProtoTypeName=(t,n)=>{let r=[];if(t){const i=Object.getPrototypeOf(t);i&&(r=Object.keys(i)||[]).length>0&&(r=r.concat(e.allProtoTypeName(i,n)))}let i=r.filter(e=>"constructor"!==e);if(n&&t){const e=Object.getPrototypeOf(t);i=i.filter(t=>n(t,e?.[t]))}return i},e.uniqueKeys=e=>Array.from(new Set((Array.isArray(e)?e:[e]).flatMap(e=>Object.keys(e)))),e.ownPropertyNames=e=>{const t=[];if(e)if(e.prototype)t.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(e)));else{const n=Object.getPrototypeOf(e);t.push(...Object.getOwnPropertyNames(n))}return t.filter(e=>"constructor"!==e)},e.protoTypeName=e=>{let t=[];if(e){const n=Object.getPrototypeOf(e);t=Object.keys(n)||[]}return t.filter(e=>"constructor"!==e)},e.protoTypes=e=>{const t=[];if(e){const n=Object.getPrototypeOf(e);(Object.keys(n)||[]).filter(e=>"constructor"!==e).forEach(e=>{t.push(n[e])})}return t},e.seal=e=>Object.seal(e),e.isPrototypeOfTarget=(e,t)=>!(!e||!t)&&Object.prototype.isPrototypeOf.call(e.prototype,t),e.prototypeOfDepth=(e,t)=>{let n=e;const r=[];if(t)do{if(n=Object.getPrototypeOf(n),n?.constructor===t)break;r.push(n)}while(n);return r},e.allProtoType=e=>{const t=(e,n=[])=>(e.prototype&&(n.push(e),t(Object.getPrototypeOf(e),n)),n);return t(e)},e.prototypeOf=e=>Object.getPrototypeOf(e),e.prototypeKeyMap=e=>{const t=new Map;if(e){const n=Object.getPrototypeOf(e);(Object.keys(n)||[]).filter(e=>"constructor"!==e).forEach(e=>{t.set(n[e],e)})}return t},e.prototypeName=(t,n)=>e.prototypeKeyMap(t).get(n),e.pickRandomKey=e=>{const t=Object.keys(e);return t[Math.floor(Math.random()*t.length)]},e.pickRandomValue=e=>{const t=Object.keys(e);return e[t[Math.floor(Math.random()*t.length)]]},e.pickRandomKeyValue=e=>{const t=Object.keys(e),n=t[Math.floor(Math.random()*t.length)];return{key:n,value:e[n]}},e.keyValues=e=>Object.keys(e).map(t=>({key:t,value:e[t]})),e.entries=e=>Object.entries(e),e.values=e=>Object.values(e),e.keys=e=>Object.keys(e),e.keyLength=t=>e.keys(t).length,e.toDeleteUndefinedAndNull=(e,t)=>{const n=e=>Array.isArray(e)?e.filter(e=>null!=e).map(n):e&&"object"==typeof e?t?.deep?Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t).map(([e,t])=>[e,n(t)])):Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t)):e;return n(e)},function(e){e.isFunctionScript=e=>e.trim().startsWith("function"),e.isArrowFunctionScript=e=>/^\s*\([^)]*\)\s*=>/.test(e),e.toOptionalChainPath=t=>{if(!t)return"";if(t.trim().startsWith("{")&&t.trim().endsWith("}"))return t;if(e.isFunctionScript(t)||e.isArrowFunctionScript(t))return t;if(t.includes(" ? ")&&t.includes(" : ")){const e=t.split(/(\s+\?\s+|\s+:\s+)/).map((e,t)=>{if(0===t){const t=e.match(/[^?.[\]]+|\[[^\]]*\]/g);if(t&&t.length>1)return t.join("?.")}return e});return e.join("")}if(t.includes("(")){const n=[];let r=t,i=0;const a=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let o;for(;null!==(o=a.exec(t));){const t=o[0],a=o[1],s=o[2],c=`__FUNC_CALL_${i}__`,u=`${a}?.(${s?e.toOptionalChainPath(s):""})`;n.push({original:t,processed:u,placeholder:c}),r=r.replace(t,c),i++}const s=r.match(/[^?.[\]]+|\[[^\]]*\]/g);let c="";c=s&&s.length>1?s.join("?."):r;for(const e of n)c=c.replace(e.placeholder,e.processed);return c}const n=t.match(/[^?.[\]]+|\[[^\]]*\]/g);return n?n.join("?."):t},e.removeOptionalChainOperator=e=>e?e.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const t=e=>{const t=[],n=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let r,i=0;const a=e.match(n);if(a&&(a?.index??0)>0)t.push(e.substring(0,a.index)),i=a.index;else if(!a&&e.length>0)return t.push(e),t;for(;null!==(r=n.exec(e));){if(r.index>i){const n=e.substring(i,r.index);n.startsWith(".")?t.push(n.substring(1)):t.push(n)}r[1]?t.push(r[1]):r[2]?t.push(parseInt(r[2],10)):r[4]&&t.push(r[4]),i=n.lastIndex}if(i<e.length){const n=e.substring(i);n.startsWith(".")?t.push(n.substring(1)):t.push(n)}return t};e.to=t=>{const n={};return Object.entries(t).forEach(([t,r])=>{e.set(n,t,r)}),n},e.set=(e,n,r)=>{const i=t(n);let a=e;for(let e=0;e<i.length;e++){const t=i[e];if(e===i.length-1)a[t]=r;else{const n=i[e+1];if("number"==typeof n){if(Array.isArray(a[t])||(a[t]=[]),Array.isArray(a[t]))for(;a[t].length<=n;)a[t].push({})}else"object"==typeof a[t]&&null!==a[t]||(a[t]={});a=a[t]}}},e.get=(e,n,r)=>{const i=t(n);let a=e;for(let e=0;e<i.length;e++){const t=i[e];if(null==a)return r;if("object"!=typeof a||null===a||!(t in a))return r;a=a[t]}return a},e.deletePath=(e,n)=>{const r=t(n);if(0===r.length)return!1;let i=e;for(let e=0;e<r.length-1;e++){const t=r[e];if(null==i)return!1;if("object"!=typeof i||null===i||!(t in i))return!1;i=i[t]}const a=r[r.length-1];return null!==i&&"object"==typeof i&&a in i&&(Array.isArray(i)&&"number"==typeof a?i.splice(a,1):delete i[a],!0)},e.availablePath=(e,t)=>{const n=[],r=e=>"number"==typeof e?"["+e+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)?e:"['"+e+"']",i=(e,a,o)=>{null!==e&&"object"==typeof e&&(o.has(e)||(o.add(e),Array.isArray(e)?e.forEach((e,s)=>{const c=r(s),u=a?`${a}${c}`:c;t&&!t(u,e)||n.push(u),i(e,u,o)}):Object.keys(e).forEach(s=>{const c=r(s);let u;u=c.startsWith("[")?a?`${a}${c}`:c:a?`${a}.${c}`:c,t&&!t(u,e[s])||n.push(u),i(e[s],u,o)})))};return i(e,"",new Set),n},e.detectPathFromScript=(e,t)=>{const n=new Set;class r{constructor(e){this.prefix=e,this.usingVars=n}set(e,t,n,r){return!0}get(e,t,n){if("symbol"==typeof t)return this.createSafeProxy(this.prefix);let r;const i=String(t);return r=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,r&&this.usingVars.add(r),this.createSafeProxy(r)}apply(e,t,n){return this.createSafeProxy(this.prefix)}createSafeProxy(e){const t=new r(e);return new Proxy(()=>{},{get:(n,r,i)=>r===Symbol.toPrimitive?()=>"":"valueOf"===r?()=>t.createSafeProxy(e):"toString"===r?()=>"":t.get(n,r,i),set:t.set.bind(t),apply:t.apply.bind(t)})}}const i={window:new Proxy(()=>{},new r("window")),document:new Proxy(()=>{},new r("document")),console:new Proxy(()=>{},new r("console"))},a=new Proxy(()=>{},new r("this"));try{new Function("window","document","console",`"use strict"; ${e}; `).call(a,i.window,i.document,i.console)}catch(e){console.error("detectPathFromScript error:",e)}if(t?.excludeThis){const e=new Set;return n.forEach(t=>{"this"!==t&&(t.startsWith("this.")?e.add(t.substring(5)):e.add(t))}),e}return n}}(t=e.Path||(e.Path={})),e.toDeleteKey=(t,n)=>{const r={...t};return e.deleteKey(r,n),r},e.deleteKey=(e,t)=>{t.filter(e=>(0,i.O)(e)).forEach(t=>{delete e[t]})},function(e){e.evalReturn=(t,n={})=>{let r="",i="";return"object"==typeof t?(r=t.bodyScript,i=t.returnScript):i=t,e.eval(`${r}; return ${i} `,n)},e.eval=(e,t={})=>{try{return Function(`"use strict"; ${e} `).bind(t)()}catch(t){return console.error("eval error",t),void console.error(e)}}}(n=e.Script||(e.Script={}))}(r||(r={}))},3205:(e,t,n)=>{n.d(t,{O:()=>a});var r=n(7553),i=n(9244);class a extends r.M{constructor(e){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(e)}copyObj(){return new a({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(e){if(e){this.x=e.x??this.x,this.y=e.y??this.y,this.z=e.z??this.z,this.volume=e.volume??this.volume,this.mass=e.mass??this.mass,this.e=e.e??this.e,this.rotate=e.rotate??this.rotate,this.width=e.width??this.width,this.height=e.height??this.height,this.transform=[...e.transform??this.transform],this.color={...e.color??this.color};const t=e.data??this.data;this.data=t?{...t}:void 0}}setObj(e){if(e){this.x=e.x??0,this.y=e.y??0,this.z=e.z??0,this.volume=e.volume??0,this.mass=e.mass??0,this.e=e.e??0,this.rotate=e.rotate??0,this.width=e.width??0,this.height=e.height??0,this.transform=[...e.transform??[1,0,0,1,0,0]],this.color={...e.color??{r:0,g:0,b:0,a:255}};const t=e.data;this.data=t?{...t}:void 0}}toRect(){return new i.r(this.x,this.y,this.width,this.height)}}},3599:(e,t,n)=>{n.d(t,{z:()=>r});var r,i=n(8741),a=n(7553),o=n(3205),s=n(4068);!function(e){e.getMinByObjectArray=(e,t)=>{let n;if(t&&e&&e.length>0){n=e[0][t];for(let r=1;r<e.length;r++)n=Math.min(n,e[r][t])}return n},e.hypot=(...e)=>Math.hypot(...e),e.pythagorean=(e,t)=>Math.sqrt(e*e+t*t),e.getMaxByObjectArray=(e,t)=>{let n;if(t&&e&&e.length>0){n=e[0][t];for(let r=1;r<e.length;r++)n=Math.max(n,e[r][t])}return n},e.sum=e=>e.reduce((e,t)=>e+t,0),e.avg=t=>t.length>0?e.sum(t)/t.length:0,e.minMax=(e,t)=>Math.min(Math.max(e,t.min),t.max),e.max=e=>e.length>0?Math.max(...e):void 0,e.min=e=>e.length>0?Math.min(...e):void 0,e.getSumByObjectArray=(e,t)=>{let n=0;if(t&&e&&e.length>0)for(let r=0;r<e.length;r++)n+=e[r][t];return n},e.radians=(e,{type:t="degreeAngle"})=>"ratio"===t?2*e*Math.PI:"percent"===t?e/100*2*Math.PI:e/180*Math.PI,e.degrees=(e,{type:t="degreeAngle"})=>"ratio"===t?360*e:"percent"===t?e/100*360:180*e/Math.PI,e.ratio=(e,t,n=1)=>n*(t/e),e.getBetweenLength=(e,t)=>t-e,e.getPercentByTotal=(e,t)=>t/e*100,e.getRatioByTotal=(e,t)=>t/e,e.getValueByTotalInPercent=(e,t)=>e*t/100,e.getValueByTotalInRatio=(e,t)=>e*t,e.getValuePercentUp=(e,t)=>e*(1+t/100),e.getValueRatioUp=(e,t)=>e*(1+t),e.getValuePercentDown=(e,t)=>e*(1-t/100),e.getValueRatioDown=(e,t)=>e*(1-t),e.beziers=(t,n)=>{const r=new Array(n).fill(void 0);for(let i=0;i<r.length;i++)r[i]=e.bezier(t,n,i);return r},e.bezier=(t,n,r)=>{if(t&&t.length>0){const o=t.map(e=>new a.M(e.x,e.y,e.z)),s=[];return o.reduce((e,t)=>{const i=e.toSub(t).div(n).mult(r+1);return s.push(e.toSub(i)),t}),s.length<=1?s[0]:e.bezier(s.map(e=>new i.M(e)),n,r)}return new a.M},e.cubicBezier=function(t,n,r){if(t.start instanceof o.O&&t.end instanceof o.O){const i=e.cubicBezier({start:t.start.x,end:t.end.x},n,r),a=e.cubicBezier({start:t.start.y,end:t.end.y},n,r),s=e.cubicBezier({start:t.start.z,end:t.end.z},n,r),c=e.cubicBezier({start:t.start.volume,end:t.end.volume},n,r),u=e.cubicBezier({start:t.start.mass,end:t.end.mass},n,r),p=e.cubicBezier({start:t.start.e,end:t.end.e},n,r),l=e.cubicBezier({start:t.start.rotate,end:t.end.rotate},n,r),d=e.cubicBezier({start:t.start.width,end:t.end.width},n,r),f=e.cubicBezier({start:t.start.height,end:t.end.height},n,r),h=e.cubicBezier({start:t.start.transform[0],end:t.end.transform[0]},n,r),y=e.cubicBezier({start:t.start.transform[1],end:t.end.transform[1]},n,r),m=e.cubicBezier({start:t.start.transform[2],end:t.end.transform[2]},n,r),v=e.cubicBezier({start:t.start.transform[3],end:t.end.transform[3]},n,r),g=e.cubicBezier({start:t.start.transform[4],end:t.end.transform[4]},n,r),x=e.cubicBezier({start:t.start.transform[5],end:t.end.transform[5]},n,r),b=e.cubicBezier({start:t.start.color.r??0,end:t.end.color.r??0},n,r),w=e.cubicBezier({start:t.start.color.g??0,end:t.end.color.g??0},n,r),O=e.cubicBezier({start:t.start.color.b??0,end:t.end.color.b??0},n,r),_=e.cubicBezier({start:t.start.color.a??255,end:t.end.color.a??255},n,r);return i.map((e,t)=>{const n=new o.O({x:e,y:a[t],z:s[t]});return n.volume=c[t],n.mass=u[t],n.e=p[t],n.rotate=l[t],n.width=d[t],n.height=f[t],n.transform=[h[t],y[t],m[t],v[t],g[t],x[t]],n.color={r:b[t],g:w[t],b:O[t],a:_[t]},n})}if(t.start instanceof i.M&&t.end instanceof i.M){const a=e.cubicBezier({start:t.start.x,end:t.end.x},n,r),o=e.cubicBezier({start:t.start.y,end:t.end.y},n,r),s=e.cubicBezier({start:t.start.z,end:t.end.z},n,r);return a.map((e,t)=>new i.M(e,o[t],s[t]))}const{start:a,end:s}=t,{frame:c}=n;let{p1x:u,p1y:p,p2x:l,p2y:d}=Array.isArray(r)?{p1x:r[0],p1y:r[1],p2x:r[2],p2y:r[3]}:r;u="random"===u?Math.random():u,p="random"===p?Math.random():p,l="random"===l?Math.random():l,d="random"===d?Math.random():d;const f=[],h=s-a,y=e=>{const t=Number(e*e),n=Number(t*e),r=Number(1-e),i=Number(r*r);return 0*Number(i*r)+3*i*e*Number(p)+3*r*t*Number(d)+1*n},m=c+1;for(let e=1;e<m;e++){const t=a+h*y(e/m);f.push(t)}return f},e.diff=(e,t)=>Math.abs(e-t),e.distSqToLineSegment=(e,t,n)=>{const r=(t.x-n.x)**2+(t.y-n.y)**2;if(0===r)return(e.x-t.x)**2+(e.y-t.y)**2;let i=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;i=Math.max(0,Math.min(1,i));const a=t.x+i*(n.x-t.x),o=t.y+i*(n.y-t.y);return(e.x-a)**2+(e.y-o)**2},e.rotatePoint=(e,t,n)=>{const r=e.x-t.x,i=e.y-t.y,a=r*Math.cos(n)-i*Math.sin(n),o=r*Math.sin(n)+i*Math.cos(n);return new s.P(a+t.x,o+t.y)}}(r||(r={}))},4068:(e,t,n)=>{n.d(t,{P:()=>r});class r{constructor(e,t){"object"==typeof e?(this.x=e.x??0,this.y=e.y??0):(this.x=e??0,this.y=t??0)}copy(){return new r(this.x,this.y)}}},5275:(e,t,n)=>{n.d(t,{s:()=>r});const r=e=>!!e&&"number"==typeof e.width&&"number"==typeof e.height},7553:(e,t,n)=>{n.d(t,{M:()=>a});var r=n(8741),i=n(4068);class a{constructor(e,t,n){e instanceof r.M?(this.x=e.x,this.y=e.y,this.z=e.z):"object"==typeof e?(this.x=e.x??0,this.y=e.y??0,this.z=e.z??0):(this.x=e??0,this.y=t??0,this.z=n??0)}set(e,t=0,n=0){return e instanceof a||e instanceof r.M?this.set(e.x||0,e.y||0,e.z||0):(this.x=e,this.y=t,this.z=n),this}get(){return new a(this.x,this.y,this.z)}mag(){const e=this.x,t=this.y,n=this.z;return Math.sqrt(e*e+t*t+n*n)}add(e,t=0,n=0){e instanceof a||e instanceof r.M?(this.x+=e.x,this.y+=e.y,this.z+=e.z):(this.x+=e,this.y+=t,this.z+=n)}toAdd(e,t){return new a(e.x+t.x,e.y+t.y,e.x+t.y)}sub(e,t=0,n=0){e instanceof a||e instanceof r.M?(this.x-=e.x,this.y-=e.y,this.z-=e.z):(this.x-=e,this.y-=t,this.z-=n)}toSub(e){const t=this;return new a(t.x-e.x,t.y-e.y,t.z-e.z)}mult(e){return e instanceof a||e instanceof r.M?(this.x*=e.x,this.y*=e.y,this.z*=e.z):(this.x*=e,this.y*=e,this.z*=e),this}toMult(e){const t=this;return new a(t.x*=e.x,t.y*=e.y,t.z*=e.z)}div(e){return e instanceof a||e instanceof r.M?(this.x/=e.x,this.y/=e.y,this.z/=e.z):(this.x/=e,this.y/=e,this.z/=e),this}toDiv(e){const t=this.get();return t.x/=e,t.y/=e,t.z/=e,t}dist(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return Math.sqrt(t*t+n*n+r*r)}toDist(e){const t=this,n=t.x-e.x,r=t.y-e.y,i=t.z-e.z;return Math.sqrt(n*n+r*r+i*i)}dot(e,t,n){return e instanceof a||e instanceof r.M?this.x*e.x+this.y*e.y+this.z*e.z:this.x*e+this.y*t+this.z*n}cross(e){const t=this.x,n=this.y,r=this.z;return new a(n*e.z-e.y*r,r*e.x-e.z*t,t*e.y-e.x*n)}normalize(){const e=this.mag();e>0&&this.div(e)}limit(e){this.mag()>e&&(this.normalize(),this.mult(e))}heading2D(){return-Math.atan2(-this.y,this.x)}random2D(){return this.fromAngle(Math.random()*(2*Math.PI))}fromAngle(e,t=1){return new a(t*Math.cos(e),t*Math.sin(e),0)}fromAngles(e,t,n=1){const r=Math.cos(t),i=Math.sin(t),o=Math.cos(e),s=Math.sin(e);return new a(n*s*i,-n*o,n*s*r)}array(){return[this.x,this.y,this.z]}toPoint3D(){return new r.M(this.x,this.y,this.z)}toPoint2D(){return new i.P(this.x,this.y)}copy(){return new a(this.x,this.y,this.z)}toString(){return"["+this.x+", "+this.y+", "+this.z+"]"}}},7855:(e,t,n)=>{n.d(t,{O:()=>r});const r=e=>null!=e},8741:(e,t,n)=>{n.d(t,{M:()=>a});var r=n(7553),i=n(4068);class a extends i.P{constructor(e,t,n){e instanceof r.M?(super(e.x,e.y),this.z=e.z):"object"==typeof e?(super({x:e.x??0,y:e.y??0}),this.z=e.z??0):(super(e,t),this.z=n??0)}copy(){return new a(this.x,this.y,this.z)}}},9244:(e,t,n)=>{n.d(t,{r:()=>o});var r=n(4068),i=n(3599),a=n(5275);class o{constructor(e,t,n=0,i=0){(0,a.s)(e)?(this._start=new r.P(0,0),this._width=e.width,this._height=e.height):"object"==typeof e&&"object"==typeof t?(this._start=e instanceof r.P?e:new r.P(e.x,e.y),this.end=t instanceof r.P?t:new r.P(t.x,t.y)):"object"==typeof e&&"number"==typeof t?(this._start=e instanceof r.P?e:new r.P(e.x,e.y),this._width=t,this._height=n):"number"==typeof e&&"number"==typeof t&&(this._start=new r.P(e,t),this._width=n,this._height=i)}valueLinkControl(e){let t,n=!1;var r;return"object"==typeof(r=e)&&"value"in r&&"noLink"in r?(t=e.value,n=e.noLink):t=e,{value:t,noLink:n}}get width(){return this._width}get height(){return this._height}get start(){return this._start.copy()}set width(e){this.setWidth(e)}setWidth(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=i.z.getPercentByTotal(this._width,t);this._width=t,this.applyWidthPercentLinks({value:r,noLink:n})}set height(e){this.setHeight(e)}setHeight(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=i.z.getPercentByTotal(this._height,t);this._height=t,this.applyHeightPercentLinks({value:r,noLink:n})}set start(e){let{value:t,noLink:n}=this.valueLinkControl(e);const a=new r.P({x:i.z.getPercentByTotal(this._start.x,t.x),y:i.z.getPercentByTotal(this._start.y,t.y)});this._start=t,this.applyStartPercentLinks({value:a,noLink:n})}setWidthFromEnd(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=i.z.getPercentByTotal(this.start.x,t);this._start.x=this.end.x-t,this.applyStartXPercentLinks({value:r,noLink:n})}set widthFromEnd(e){this.setWidthFromEnd(e)}setHeightFromEnd(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=this.end.y-t,a=i.z.getPercentByTotal(this.start.y,r);this._start.y=r,this.applyStartYPercentLinks({value:a,noLink:n})}set heightFromEnd(e){this.setHeightFromEnd(e)}setWidthFromCenter(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=this.center.x-t/2,a=i.z.getPercentByTotal(this.start.x,r);this._start.x=r,this.applyStartXPercentLinks(a)}set widthFromCenter(e){this.setWidthFromCenter(e)}setHeightFromCenter(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=this.center.y-t/2,a=i.z.getPercentByTotal(this.start.y,r);this._start.y=r,this.applyStartYPercentLinks(a)}set heightFromCenter(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=this.center.y-t/2,a=i.z.getPercentByTotal(this.start.y,r);this._start.y=r,this.applyStartYPercentLinks(a)}set x(e){this.setX(e)}setX(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=t-this._start.x,a=i.z.getPercentByTotal(this.width,r);this._start.x=t,this.applyStartXPercentLinks({value:a,noLink:n})}set y(e){this.setY(e)}setY(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=t-this._start.y,a=i.z.getPercentByTotal(this.height,r);this._start.y=t,this.applyStartYPercentLinks({value:a,noLink:n})}applyWidthPercentLinks(e){let{value:t,noLink:n}=this.valueLinkControl(e);!this.linkRects||"boolean"==typeof n&&n||Array.from(this.linkRects.values()).filter(e=>"boolean"==typeof n||e!==n).forEach(e=>{e.setWidthByWidthPercent({value:t,noLink:this})})}applyHeightPercentLinks(e){let{value:t,noLink:n}=this.valueLinkControl(e);!this.linkRects||"boolean"==typeof n&&n||Array.from(this.linkRects.values()).filter(e=>"boolean"==typeof n||e!==n).forEach(e=>{e.setHeightByHeightPercent({value:t,noLink:this})})}applyStartPercentLinks(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.applyStartXPercentLinks({value:t.x,noLink:n}),this.applyStartYPercentLinks({value:t.y,noLink:n})}applyStartXPercentLinks(e){let{value:t,noLink:n}=this.valueLinkControl(e);!this.linkRects||"boolean"==typeof n&&n||Array.from(this.linkRects.values()).filter(e=>"boolean"==typeof n||e!==n).forEach(e=>{e.addXByWidthPercent({value:t,noLink:this})})}applyStartYPercentLinks(e){let{value:t,noLink:n}=this.valueLinkControl(e);!this.linkRects||"boolean"==typeof n&&n||Array.from(this.linkRects.values()).filter(e=>"boolean"==typeof n||e!==n).forEach(e=>{e.addYByHeightPercent({value:t,noLink:this})})}hasLink(e){return this.linkRects?.has(e)}isLinked(){return!!this.linkRects?.size}addLink(...e){this.linkRects??(this.linkRects=new Set),e.filter(e=>!this.linkRects?.has(e)).forEach(e=>{this.linkRects?.add(e),e.addLink(this)})}setLinks(e){this.unLinkAll(),this.addLink(...e)}unLinkAll(){this.linkRects&&(Array.from(this.linkRects.values()).forEach(e=>{this.unLink(e)}),this.linkRects.clear())}unLink(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.linkRects&&this.linkRects.delete(t),n||t.unLink({value:this,noLink:this})}addWidthPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setWidth({value:this.width+i.z.getValueByTotalInPercent(this.width,t),noLink:n})}addHeightPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setHeight({value:this.height+i.z.getValueByTotalInPercent(this.height,t),noLink:n})}addWidthRatio(e){this.width=this.width+i.z.getValueByTotalInRatio(this.width,e)}addHeightRatio(e){this.height=this.height+i.z.getValueByTotalInRatio(this.height,e)}addXPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,t),noLink:n})}addYPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,t),noLink:n})}addXRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,t),noLink:n})}addYRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,t),noLink:n})}set endX(e){const t=e-this.x;this.width=t}set endXPercent(e){this.endX=i.z.getValueByTotalInPercent(this.width,e)}set endYPercent(e){this.endY=i.z.getValueByTotalInPercent(this.height,e)}set endY(e){this.height=e-this.y}set end(e){this.width=e.x-this.x,this.height=e.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(e){const t=this.copy();return t.start=e,t}toRotate(e,{rotatePoint:t=this.center,type:n="degreeAngle"}){const a=i.z.radians(e,{type:n}),o=t instanceof r.P?t:new r.P(t.x,t.y);return[this.leftTop,this.rightTop,this.rightBottom,this.leftBottom].map(e=>i.z.rotatePoint(e,o,a))}get center(){return new r.P(this.start.x+this.width/2,this.start.y+this.height/2)}get end(){return new r.P(this.start.x+this.width,this.start.y+this.height)}get leftTop(){return this.start.copy()}get leftBottom(){return new r.P(this.start.x,this.end.y)}get rightTop(){return new r.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(e){return i.z.getPercentByTotal(this.width,e)}getWidthRatio(e){return i.z.getRatioByTotal(this.width,e)}getWidthByPercent(e){return i.z.getValueByTotalInPercent(this.width,e)}getWidthByRatio(e){return i.z.getValueByTotalInRatio(this.width,e)}getHeightPercent(e){return i.z.getPercentByTotal(this.height,e)}getHeightRatio(e){return i.z.getRatioByTotal(this.height,e)}getHeightByPercent(e){return i.z.getValueByTotalInPercent(this.height,e)}getHeightByRatio(e){return i.z.getValueByTotalInRatio(this.height,e)}getXPercent(e){return i.z.getPercentByTotal(this.width,e-this.x)}getXRatio(e){return i.z.getRatioByTotal(this.width,e-this.x)}getXByPercent(e){return this.x+i.z.getValueByTotalInPercent(this.width,e)}getXByRatio(e){return this.x+i.z.getValueByTotalInRatio(this.width,e)}getYPercent(e){return i.z.getPercentByTotal(this.height,e-this.y)}getYRatio(e){return i.z.getRatioByTotal(this.height,e-this.y)}getYByPercent(e){return this.y+i.z.getValueByTotalInPercent(this.height,e)}getYByRatio(e){return this.y+i.z.getValueByTotalInRatio(this.height,e)}getPercent(e){return new r.P(this.getXPercent(e.x),this.getYPercent(e.y))}toScaleByWidth(e){const t=this.height/this.width;return new o(this.x,this.y,e,e*t)}toScaleByHeight(e){const t=this.width/this.height;return new o(this.x,this.y,e*t,e)}toRatio(e){return new o(this.getXRatio(e.x),this.getYRatio(e.y),this.getWidthRatio(e instanceof o?e.width:e.w),this.getHeightRatio(e instanceof o?e.height:e.h))}getRatio(e){return new r.P(this.getXRatio(e.x),this.getYRatio(e.y))}getByPercent(e){return new r.P(this.getXByPercent(e.x),this.getYByPercent(e.y))}getByRatio(e){return new r.P(this.getXByRatio(e.x),this.getYByRatio(e.y))}getDiffX(e){return e-this.x}getDiffY(e){return e-this.y}getDiffLeft(e){this.getDiffX(e)}getDiffTop(e){this.getDiffY(e)}getDiffRight(e){return e-this.end.x}getDiffBottom(e){return e-this.end.y}getDiffWidth(e){return e-this.width}getDiffHeight(e){return e-this.height}toDiff(e){return new o(e.x-this.x,e.y-this.y,e.width-this.width,e.height-this.height)}setXByWidthPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:i.z.getValueByTotalInPercent(this.width,t),noLink:n})}set xByWidthPercent(e){this.setXByWidthPercent(e)}setXByWidthRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:i.z.getValueByTotalInRatio(this.width,t),noLink:n})}set xByWidthRatio(e){this.setXByWidthRatio(e)}setYByHeightPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:i.z.getValueByTotalInPercent(this.height,t),noLink:n})}set yByHeightPercent(e){this.setYByHeightPercent(e)}setYByHeightRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:i.z.getValueByTotalInRatio(this.height,t),noLink:n})}set yByHeightRatio(e){this.setYByHeightRatio(e)}addXByWidthPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,t),noLink:n})}addXByWidthRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,t),noLink:n})}addYByHeightPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,t),noLink:n})}addYByHeightRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,t),noLink:n})}setWidthByWidthPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setWidth({value:i.z.getValueByTotalInPercent(this.width,t),noLink:n})}set widthByWidthPercent(e){this.setWidthByWidthPercent(e)}setWidthByWidthRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setWidth({value:i.z.getValueByTotalInRatio(this.width,t),noLink:n})}set widthByWidthRatio(e){this.setWidthByWidthRatio(e)}setHeightByHeightPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setHeight({value:i.z.getValueByTotalInPercent(this.height,t),noLink:n})}set heightByHeightPercent(e){this.setHeightByHeightPercent(e)}setHeightByHeightRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setHeight({value:i.z.getValueByTotalInRatio(this.height,t),noLink:n})}set heightByHeightRatio(e){this.setHeightByHeightRatio(e)}copyByPercent(e,t){return new o(this.x,this.y,i.z.getValueByTotalInPercent(this.width,e),i.z.getValueByTotalInPercent(this.height,t??e))}copyByRatio(e,t){return new o(this.x,this.y,i.z.getValueByTotalInRatio(this.width,e),i.z.getValueByTotalInRatio(this.height,t??e))}isIn(e){return e instanceof o?this.isIn(e.start)&&this.isIn(e.end):e.x>=this.start.x&&e.x<=this.end.x&&e.y>=this.start.y&&e.y<=this.end.y}isOut(e){return e instanceof o?!this.isOverlap(e):!this.isIn(e)}isOverlap(e){return e instanceof o?!(this.endX<e.x||this.x>e.endX||this.endY<e.y||this.y>e.endY):this.isIn(e)}toString(){return`x:${this.x}, y:${this.y}, width: ${this.width}, height: ${this.height}`}}},9284:(e,t,n)=>{var r;n.d(t,{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={}))}},f={};function h(e){var t=f[e];if(void 0!==t)return t.exports;var n=f[e]={exports:{}};return d[e](n,n.exports,h),n.exports}h.d=(e,t)=>{for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var y={};h.d(y,{T:()=>m});var m,v=h(9284),g=h(4068),x=h(8741),b=h(9244),w=h(2676);!function(e){e.objToGetURL=e=>Object.keys(e).reduce((t,n,r)=>`${t}${0!==r?"&":""}${n}=${e[n]}`,""),e.mapToJson=e=>JSON.stringify(Array.from(e.entries()).reduce((e,[t,n])=>(e[t]=n,e),{})),e.jsonToMap=e=>new Map(JSON.parse(e)),e.decodeURIString=e=>decodeURIComponent(e),e.objToStrMap=e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},e.jsonToStrMap=t=>e.objToStrMap(JSON.parse(t)),e.strToObject=e=>JSON.parse(e),e.objToJson=e=>JSON.stringify(e),e.objToMap=e=>{const t=new Map;return Object.keys(e).forEach(n=>{t.set(n,e[n])}),t},e.mapToObj=e=>{const t={};return e.forEach((e,n)=>{t[n]=e}),t},e.snakeToCamelCase=e=>e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),e.camelToSnakeCase=e=>e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),e.toFormData=function(e){const t=new FormData;for(const n in e)t.append(n,e[n]);return t},e.toObject=function(t,n){if(t instanceof URLSearchParams){const e={};return t.forEach((t,r)=>{n?.firstValue&&void 0===e[r]?e[r]=t:n?.firstValue||(e[r]?Array.isArray(e[r])?e[r].push(t):e[r]=[e[r],t]:e[r]=t)}),e}if(t instanceof FormData){const e=e=>{const t={};for(const n of e.keys()){const r=e.getAll(n);t[n]=r.length>1?r:r[0]}return t};return e(t)}if(t&&"function"==typeof t[Symbol.iterator])return Object.fromEntries(t);if(Array.isArray(t))return Object.fromEntries(t);if(v.U.isMap(t)){const n=t;t=e.mapToObj(n)}if(v.U.isArray(t)){const n=t;for(let t=0;t<n.length;t++)n[t]=e.toObject(n[t])}if(v.U.isObject(t))for(const n in t)t[n]=e.toObject(t[n]);return t},e.toArray=e=>e instanceof Set?Array.from(e.values()):Array.isArray(e)?e:e?[e]:[],e.flatArray=(...e)=>e.flatMap(e=>e instanceof Object&&Symbol.iterator in e?Array.from(e):[e]),e.iteratorToArray=e=>Array.from(e),e.toJson=t=>{const n=e.toObject(t);return JSON.stringify(n)},e.concatenateToAttribute=t=>e.concatenateToString(t,"="," ","'"),e.concatenateToParameter=t=>e.concatenateToString(t,"=","&",""),e.concatenateToString=(e,t="=",n=" ",r="")=>{const i=[];for(const n in e){const a=e[n];a&&i.push(n.toString()+t+r+a+r)}return i.join(n)},e.specialCharsToEscape=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),e.decodeHTMLEscape=e=>e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&#x2F;/g,"/"),e.copyObject=(e,t={})=>({...e,...t}),e.copyArrayWithAddition=(e,t)=>[...e,...t||[]],e.hexToInt=e=>(e.startsWith("#")&&(e=e.slice(1)),3===e.length&&(e=e.split("").map(e=>e+e).join("")),parseInt(e,16)),e.toHex=e=>(e<0&&(e=4294967295+e+1),(e=Number(e.toFixed(0))).toString(16).padStart(2,"0").toUpperCase()),e.toHexColor=t=>`#${e.toHex(t.r??0)}${e.toHex(t.g??0)}${e.toHex(t.b??0)}${e.toHex(t.a??255)}`,e.avgColor=e=>{const t=e.reduce((e,t)=>(e.r+=t.r??0,e.g+=t.g??0,e.b+=t.b??0,e.a+=t.a??0,e),{r:0,g:0,b:0,a:0});return{r:Math.floor(t.r/e.length),g:Math.floor(t.g/e.length),b:Math.floor(t.b/e.length),a:Math.floor(t.a/e.length)}},e.toRGBA=e=>{e??(e="#000000FF");const t=e.replace("#","");return{r:parseInt(t.slice(0,2)||"0",16),g:parseInt(t.slice(2,4)||"0",16),b:parseInt(t.slice(4,6)||"0",16),a:t.length>6?parseInt(t.slice(6,8)||"0",16):255}},e.minMaxCenterAvg=e=>{const t={},n=w.B.uniqueKeys(e);for(const r of n){const n=e.map(e=>e[r]),i=Math.min(...n),a=Math.max(...n),o=(i+a)/2,s=n.reduce((e,t)=>e+t,0)/n.length;t[r]={min:i,max:a,center:o,avg:s,diff:a-i}}return t},e.minMaxCenterRectAvg2D=e=>{const t=new g.P(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),n=new g.P(Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);let r=new g.P(0,0);e.forEach(e=>{t.x=Math.min(t.x,e.x),t.y=Math.min(t.y,e.y),n.x=Math.max(n.x,e.x),n.y=Math.max(n.y,e.y),r.x+=e.x,r.y+=e.y});const i=new g.P((t.x+n.x)/2,(t.y+n.y)/2),a=new g.P(r.x/e.length,r.y/e.length),o=new b.r(t.x,t.y,n.x-t.x,n.y-t.y);return{min:t,max:n,center:i,avg:a,minMaxRect:o}},e.minMaxCenterAvg3D=e=>{const t=new x.M(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),n=new x.M(Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE);let r=new x.M(0,0,0);e.forEach(e=>{t.x=Math.min(t.x,e.x),t.y=Math.min(t.y,e.y),t.z=Math.max(t.z,e.z),n.x=Math.max(n.x,e.x),n.y=Math.max(n.y,e.y),n.z=Math.max(n.z,e.y),r.x+=e.x,r.y+=e.y,r.z+=e.z});const i=new x.M((t.x+n.x)/2,(t.y+n.y)/2,(t.z+n.z)/2),a=new x.M(r.x/e.length,r.y/e.length,r.z/e.length);return{min:t,max:n,center:i,avg:a}},e.roundRectRadiiToFullRadii=e=>e?1===e.length?[e[0]??0,e[0]??0,e[0]??0,e[0]??0]:2===e.length?[e[0]??0,e[1]??0,e[0]??0,e[1]??0]:3===e.length?[e[0]??0,e[1]??0,e[2]??0,e[1]??0]:e:[0,0,0,0],e.toArrayDirectionChange=e=>{if(!e||0===e.length||!e[0]||0===e[0].length)return[];const t=[],n=e[0].length,r=e.length;for(let i=0;i<n;i++){const n=[];for(let t=0;t<r;t++)n.push(e[t][i]);t.push(n)}return t},e.groupByMap=(e,t)=>e.reduce((e,n)=>{const r=t(n),i=e.get(r)||[];return i.push(n),e.set(r,i),e},new Map),e.groupByObject=(t,n)=>{const r=e.groupByMap(t,n);return Object.fromEntries(r)},e.toURLSearchParams=e=>{const t=new URLSearchParams;if("string"==typeof e)new URLSearchParams(e).forEach((e,n)=>{t.append(n,e)});else if("object"==typeof e){const n=e instanceof URLSearchParams?e.entries():Array.isArray(e)?e:Object.entries(e);for(const[e,r]of Array.from(n))Array.isArray(r)?r.forEach(n=>t.append(e,n)):t.append(e,r)}return t},e.stringJsonToKeyPairs=e=>Array.from(e.matchAll(/(\w+):\s*([^,}]+)/g)).map(e=>({key:e[1],value:e[2]}))}(m||(m={}));const O=y.T;var _=n(4297),k=n(3896),j=n(4642),M=n(2225);class S{constructor(e,t){this.simpleApplication=e,this.option=t,this._storage=new Map,this.setStoreSet(j.B,this.simpleApplication),this.setStoreSet(S,this),this.setStoreSet(t.constructor,t),this.setStoreSet(p.t,t),this.simProxyHandler=new l.e(this.simpleApplication,this,t)}get storage(){return this._storage}getSimAtomics(){const e=[];return Array.from(this.storage.entries()).forEach(([t,n])=>{e.push(...Array.from(Array.from(n.keys())).map(e=>new s.J({targetKeyType:t,originalType:e},this)))}),e}getSimConfig(e){return this.getSimAtomics().filter(t=>{const n=t?.getConfig(),r=O.flatArray(n?.symbol),i=O.flatArray(n?.scheme);return"symbol"==typeof e?e&&t&&r.includes(e):"string"==typeof e&&e&&t&&i.includes(e)})||[]}findSims(e){let t=[];return e&&(t=this.getSimAtomics().filter(t=>{let n=!1;const i=t.getConfig(),a=O.flatArray(i?.symbol).filter(r.O),o=O.flatArray(i?.scheme).filter(r.O);if("symbol"==typeof e)n=a.includes(e);else{const{scheme:r,type:i}=e;n=(!r||o.includes(r))&&(!i||t.type.targetKeyType===i)}return n})),t}findFirstSim(e){return this.findSims(e)[0]}findLastSim(e){return this.findSims(e).reverse()[0]}flatStoreSets(){return new Map(Array.from(this.storage.values()).map(e=>Array.from(e.entries())).flat())}getStoreSets(e){const t=this.storage.get(e);return(Array.from(t?.entries?.()??[])??[]).reverse().map(e=>({type:e[0],instance:e[1]}))}getStoreSet(e,t){const n=this.getStoreSets(e).find(e=>e.type===t);if(n?.instance)return n;{const n=t??e,r=this.flatStoreSets().get(n);return r&&this.setStoreSet(e,r,n),{type:n,instance:r}}}getStoreInstance(e,t){return this.getStoreSet(e,t)?.instance}getOrNewSim({target:e,originTypeTarget:t=e,newInstanceCarrier:n}){if(e){const r=this.getStoreSet(e,t);return r?.type&&!r?.instance?this.resolve({targetKey:e,target:t,newInstanceCarrier:n}):r?.instance}}setStoreSet(e,t,n=e){const r=this.storage.get(e)??new Map;r.set(n,t),this.storage.set(e,r)}registerStore(e,t){const n=this.storage.get(e)??new Map;t.forEach(e=>{const{type:t,value:r}="object"==typeof e?{type:e.constructor,value:e}:{type:e,value:void 0};n.has(t)||n.set(t,r)}),this.storage.set(e,n)}resolve({target:e,targetKey:t,newInstanceCarrier:n={newInstances:[],depth:0}}){const r=this.getStoreSet(t,e);if(r?.instance)return r.instance;if(this.storage.has(t)&&void 0===r?.instance){n.depth++;const i=this.newSim({target:r?.type??t,newInstanceCarrier:n,simCreateAfter:n=>{(0,a.Op)(r?.type??e??t)?.scope===a.v0.Singleton&&this.setStoreSet(t,n,e)}});return n.depth--,0===n.depth&&n.newInstances.forEach(e=>{this.callBindPostConstruct(e)}),(0,_.P)(i)&&i.onSimCreate(),i}const o=new i.C("SimNoSuch: no simple instance(resolve) name:"+t?.prototype?.constructor?.name+","+t);throw console.error(o),o}newSim({target:e,simCreateAfter:t,otherStorage:n,newInstanceCarrier:i}){const o=new e(...this.getParameterSim({target:e,otherStorage:n,newInstanceCarrier:i}));let s=this.proxy(o);const c=(0,a.Op)(e);return c?.proxy&&(Array.isArray(c.proxy)?c.proxy:[c.proxy]).filter(r.O).forEach(e=>{if("object"==typeof e)s=new Proxy(s,e);else{const t=(0,a.Op)(e);s=new Proxy(s,t?this.getOrNewSim({target:e}):this.newSim({target:e}))}}),i?.newInstances.push(s),t?.(s),(0,k.I)(s)&&s.onSimCreateProxyCompleted(s),s}callBindPostConstruct(e){(0,a.Dy)(e).forEach(t=>{e[t.property](...this.getParameterSim({target:e,targetKey:t.property}))})}async executeBindParameterSimPromise({target:e,targetKey:t,firstCheckMaker:n},r){let i=this.executeBindParameterSim({target:e,targetKey:t,firstCheckMaker:n},r);return i instanceof Promise&&(i=await i),i}executeBindParameterSim({target:e,targetKey:t,firstCheckMaker:n},r){const i=this.getParameterSim({target:e,targetKey:t,firstCheckMaker:n,otherStorage:r});if("object"==typeof e&&t){const n=e[t];return n?.bind(e)?.(...i)}if("function"==typeof e&&!t)return new e(...i)}getParameterSim({target:e,targetKey:t,firstCheckMaker:n,otherStorage:r,newInstanceCarrier:i}){const a=c.d.getParameterTypes(e,t);let o=[];const s=(0,u.Mq)(e,t);return o=a.map((a,o)=>{const c=s?.find(e=>e.index===o);if(!c?.config.disabled){for(const r of n??[]){const n=r({target:e,targetKey:t},a,o,c);if(void 0!==n)return n}if(c){const e=c.config;let t=r?.get(a);if(a===Array&&(e.type||e.scheme||e.symbol)){const t=[];return e.type&&t.push(...this.getStoreSets(e.type).map(t=>this.resolve({targetKey:e.type,target:t.type,newInstanceCarrier:i})).reverse()),e.symbol&&t.push(...this.getSimConfig(e.symbol).map(e=>e.getValue({newInstanceCarrier:i}))),e.scheme&&t.push(...this.getSimConfig(e.scheme).map(e=>e.getValue({newInstanceCarrier:i}))),t}if(e.situationType&&r){const n=r.get(u.tr),i=r.get(u._t);if(e.situationType===i?.situationType)t=i.data;else if(n&&n.length>0){const r=n.find(t=>void 0!==t.index?t.situationType===e.situationType&&t.index===o:t.situationType===e.situationType);r&&(t=r.data)}}if(!t){const n=e.symbol?this.findLastSim(e.symbol):this.findLastSim({scheme:e.scheme,type:e.type});try{t=n?this.resolve({targetKey:n?.type.targetKeyType??a,newInstanceCarrier:i}):this.resolve({targetKey:a,newInstanceCarrier:i})}catch(t){if(e.optional)return;throw t}}return e.applyProxy&&t&&(t=e.applyProxy.param?new Proxy(t,new e.applyProxy.type(...e.applyProxy.param)):new Proxy(t,new e.applyProxy.type)),t}return a?r?.get(a)??this.resolve({targetKey:a,newInstanceCarrier:i}):void 0}}),o}proxy(e){try{if(!(0,M.j1)(e)&&null!==e&&(0,a.Op)(e)&&"object"==typeof e&&!("isProxy"in e)){for(const t in e)(0,M.j1)(e,t)||(e[t]=this.proxy(e[t]));o.B.ownPropertyNames(e).filter(t=>"function"==typeof e[t]).filter(t=>!(0,M.j1)(e,t)).forEach(t=>{e[t]=new Proxy(e[t],this.simProxyHandler)}),this.simProxyHandler&&(e=new Proxy(e,this.simProxyHandler))}return this.option.proxy&&(e=this.option.proxy.onAfterProxy(e)),e}catch(e){throw console.log("sim proxy error"),e}}run(e=new Map){for(const[t,n]of Array.from(e.entries()))"object"==typeof t?(0,a.tS)(t,n):(0,a.tS)({type:t},n);const t=O.flatArray(this.option.container).filter(r.O);Array.from(a.hm.entries()).forEach(([e,n])=>{const i=O.flatArray((0,a.Op)(e)?.container).filter(r.O);let o=!1;o=t.length<=0&&i.length<=0||i.length<=0||t.some(e=>i.includes(e)),this.registerStore(e,n)}),this.callBindPostConstruct(this),this.getSimAtomics().forEach(e=>{e.getConfig()?.autoCreate&&e.getValue()})}}},8537:(e,t,n)=>{n.d(t,{W$:()=>r,v0:()=>s}),n(6404);var r,i=n(5053),a=n(7441);!function(e){e.ERROR_OBJECT="SIMPLE_BOOT_CORE://ExceptionHandler/ERROR_OBJECT",e.PARAMETER="SIMPLE_BOOT_CORE://ExceptionHandler/PARAMETER"}(r||(r={}));const o=Symbol("ExceptionHandler"),s=(e,t,n=[])=>{let r=((e,t)=>{const n=(e=>(null!=e&&"object"==typeof e&&(e=e.constructor),i.d.getMetadata(o,e)))(e),r=n?.filter(e=>void 0===e.config.type),s=n?.filter(e=>a.B.isPrototypeOfTarget(e.config.type,t)),c=s?.sort((e,n)=>{const r=a.B.prototypeOfDepth(t,e.config.type),i=a.B.prototypeOfDepth(t,n.config.type);return r.length-i.length});return(c??[]).concat(...r??[])})(e,t);return r=r?.filter(e=>!n.includes(e.method)),r&&r.length>0?r[0]:void 0}},9212:(e,t,n)=>{n.d(t,{J:()=>a});var r=n(742),i=n(5053);class a{constructor(e,t,n){this.type=e,this.simstanceManager=t,this.config=n,this.value=e.value}getConfig(e=r.wB){return i.d.getMetadata(e,this.type.originalType)}getConfigs(){return i.d.getMetadatas(this.type.originalType)}getValue(e){return e?.refresh&&(this.value=void 0),this.value||(this.value=this.simstanceManager.getOrNewSim({target:this.type.targetKeyType,originTypeTarget:this.type.originalType,newInstanceCarrier:e?.newInstanceCarrier})),this.value}}},9492:(e,t,n)=>{n.d(t,{O:()=>o});var r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},i={};r.d(i,{O:()=>a});const a=e=>null!=e,o=i.O}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const o=a(4642).B;var s=n(3587);const c=require("http"),u=require("https");var p=n(3500),l=n(9108),d=n(229),f=n(7953),h=n(1946),y={5053:(e,t,n)=>{n.d(t,{d:()=>c});var r={9771:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t=N(e,i);if(void 0!==t){var n=t.call(e,"string");if(S(n))throw new TypeError;return n}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o,s={};a.d(s,{d:()=>o}),a(9771),function(e){e.getParameterTypes=(e,t)=>t?Reflect.getMetadata("design:paramtypes",e,t)||[]:Reflect.getMetadata("design:paramtypes",e)||[],e.getReturnType=(e,t)=>Reflect.getMetadata("design:returntype",e,t),e.getType=(e,t)=>t?Reflect.getMetadata("design:type",e,t):Reflect.getMetadata("design:type",e),e.getMetadata=(e,t,n)=>n?Reflect.getMetadata(e,t,n):Reflect.getMetadata(e,t),e.getMetadataKeys=e=>Reflect.getMetadataKeys(e),e.getOwnMetadata=(e,t,n)=>n?Reflect.getOwnMetadata(e,t,n):Reflect.getOwnMetadata(e,t),e.getMetadatas=t=>e.getMetadataKeys(t).map(n=>e.getMetadata(n,t)),e.metadata=(e,t)=>Reflect.metadata(e,t),e.defineMetadata=(e,t,n,r)=>{r&&Reflect.defineMetadata?Reflect.defineMetadata(e,t,n,r):Reflect.defineMetadata&&Reflect.defineMetadata(e,t,n)}}(o||(o={}));const c=s.d},6404:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t="string",n=N(e,i);if(void 0!==n){var r=n.call(e,t);if(S(r))throw new TypeError;return r}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))},7441:(e,t,n)=>{n.d(t,{B:()=>p});var r={7855:(e,t,n)=>{n.d(t,{O:()=>r});const r=e=>null!=e},9284:(e,t,n)=>{var r;n.d(t,{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};a.d(o,{B:()=>s});var s,c=a(7855),u=a(9284);!function(e){let t,n;e.constructorName=e=>e&&e.constructor&&e.constructor.name?e.constructor.name:e&&e.name?e.name:void 0,e.deepCopy=e=>e instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(e.entries())))):e instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(e.values())))):u.U.isNullOrUndefined(e)?e:JSON.parse(JSON.stringify(e)),e.allProtoTypeName=(t,n)=>{let r=[];if(t){const i=Object.getPrototypeOf(t);i&&(r=Object.keys(i)||[]).length>0&&(r=r.concat(e.allProtoTypeName(i,n)))}let i=r.filter(e=>"constructor"!==e);if(n&&t){const e=Object.getPrototypeOf(t);i=i.filter(t=>n(t,e?.[t]))}return i},e.uniqueKeys=e=>Array.from(new Set((Array.isArray(e)?e:[e]).flatMap(e=>Object.keys(e)))),e.ownPropertyNames=e=>{const t=[];if(e)if(e.prototype)t.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(e)));else{const n=Object.getPrototypeOf(e);t.push(...Object.getOwnPropertyNames(n))}return t.filter(e=>"constructor"!==e)},e.protoTypeName=e=>{let t=[];if(e){const n=Object.getPrototypeOf(e);t=Object.keys(n)||[]}return t.filter(e=>"constructor"!==e)},e.protoTypes=e=>{const t=[];if(e){const n=Object.getPrototypeOf(e);(Object.keys(n)||[]).filter(e=>"constructor"!==e).forEach(e=>{t.push(n[e])})}return t},e.seal=e=>Object.seal(e),e.isPrototypeOfTarget=(e,t)=>!(!e||!t)&&Object.prototype.isPrototypeOf.call(e.prototype,t),e.prototypeOfDepth=(e,t)=>{let n=e;const r=[];if(t)do{if(n=Object.getPrototypeOf(n),n?.constructor===t)break;r.push(n)}while(n);return r},e.allProtoType=e=>{const t=(e,n=[])=>(e.prototype&&(n.push(e),t(Object.getPrototypeOf(e),n)),n);return t(e)},e.prototypeOf=e=>Object.getPrototypeOf(e),e.prototypeKeyMap=e=>{const t=new Map;if(e){const n=Object.getPrototypeOf(e);(Object.keys(n)||[]).filter(e=>"constructor"!==e).forEach(e=>{t.set(n[e],e)})}return t},e.prototypeName=(t,n)=>e.prototypeKeyMap(t).get(n),e.pickRandomKey=e=>{const t=Object.keys(e);return t[Math.floor(Math.random()*t.length)]},e.pickRandomValue=e=>{const t=Object.keys(e);return e[t[Math.floor(Math.random()*t.length)]]},e.pickRandomKeyValue=e=>{const t=Object.keys(e),n=t[Math.floor(Math.random()*t.length)];return{key:n,value:e[n]}},e.keyValues=e=>Object.keys(e).map(t=>({key:t,value:e[t]})),e.entries=e=>Object.entries(e),e.values=e=>Object.values(e),e.keys=e=>Object.keys(e),e.keyLength=t=>e.keys(t).length,e.toDeleteUndefinedAndNull=(e,t)=>{const n=e=>Array.isArray(e)?e.filter(e=>null!=e).map(n):e&&"object"==typeof e?t?.deep?Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t).map(([e,t])=>[e,n(t)])):Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t)):e;return n(e)},function(e){e.isFunctionScript=e=>e.trim().startsWith("function"),e.isArrowFunctionScript=e=>/^\s*\([^)]*\)\s*=>/.test(e),e.toOptionalChainPath=t=>{if(!t)return"";if(t.trim().startsWith("{")&&t.trim().endsWith("}"))return t;if(e.isFunctionScript(t)||e.isArrowFunctionScript(t))return t;if(t.includes(" ? ")&&t.includes(" : ")){const e=t.split(/(\s+\?\s+|\s+:\s+)/).map((e,t)=>{if(0===t){const t=e.match(/[^?.[\]]+|\[[^\]]*\]/g);if(t&&t.length>1)return t.join("?.")}return e});return e.join("")}if(t.includes("(")){const n=[];let r=t,i=0;const a=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let o;for(;null!==(o=a.exec(t));){const t=o[0],a=o[1],s=o[2],c=`__FUNC_CALL_${i}__`,u=`${a}?.(${s?e.toOptionalChainPath(s):""})`;n.push({original:t,processed:u,placeholder:c}),r=r.replace(t,c),i++}const s=r.match(/[^?.[\]]+|\[[^\]]*\]/g);let c="";c=s&&s.length>1?s.join("?."):r;for(const e of n)c=c.replace(e.placeholder,e.processed);return c}const n=t.match(/[^?.[\]]+|\[[^\]]*\]/g);return n?n.join("?."):t},e.removeOptionalChainOperator=e=>e?e.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const t=e=>{const t=[],n=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let r,i=0;const a=e.match(n);if(a&&(a?.index??0)>0)t.push(e.substring(0,a.index)),i=a.index;else if(!a&&e.length>0)return t.push(e),t;for(;null!==(r=n.exec(e));){if(r.index>i){const n=e.substring(i,r.index);n.startsWith(".")?t.push(n.substring(1)):t.push(n)}r[1]?t.push(r[1]):r[2]?t.push(parseInt(r[2],10)):r[4]&&t.push(r[4]),i=n.lastIndex}if(i<e.length){const n=e.substring(i);n.startsWith(".")?t.push(n.substring(1)):t.push(n)}return t};e.to=t=>{const n={};return Object.entries(t).forEach(([t,r])=>{e.set(n,t,r)}),n},e.set=(e,n,r)=>{const i=t(n);let a=e;for(let e=0;e<i.length;e++){const t=i[e];if(e===i.length-1)a[t]=r;else{const n=i[e+1];if("number"==typeof n){if(Array.isArray(a[t])||(a[t]=[]),Array.isArray(a[t]))for(;a[t].length<=n;)a[t].push({})}else"object"==typeof a[t]&&null!==a[t]||(a[t]={});a=a[t]}}},e.get=(e,n,r)=>{const i=t(n);let a=e;for(let e=0;e<i.length;e++){const t=i[e];if(null==a)return r;if("object"!=typeof a||null===a||!(t in a))return r;a=a[t]}return a},e.deletePath=(e,n)=>{const r=t(n);if(0===r.length)return!1;let i=e;for(let e=0;e<r.length-1;e++){const t=r[e];if(null==i)return!1;if("object"!=typeof i||null===i||!(t in i))return!1;i=i[t]}const a=r[r.length-1];return null!==i&&"object"==typeof i&&a in i&&(Array.isArray(i)&&"number"==typeof a?i.splice(a,1):delete i[a],!0)},e.availablePath=(e,t)=>{const n=[],r=e=>"number"==typeof e?"["+e+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)?e:"['"+e+"']",i=(e,a,o)=>{null!==e&&"object"==typeof e&&(o.has(e)||(o.add(e),Array.isArray(e)?e.forEach((e,s)=>{const c=r(s),u=a?`${a}${c}`:c;t&&!t(u,e)||n.push(u),i(e,u,o)}):Object.keys(e).forEach(s=>{const c=r(s);let u;u=c.startsWith("[")?a?`${a}${c}`:c:a?`${a}.${c}`:c,t&&!t(u,e[s])||n.push(u),i(e[s],u,o)})))};return i(e,"",new Set),n},e.detectPathFromScript=(e,t)=>{const n=new Set;class r{constructor(e){this.prefix=e,this.usingVars=n}set(e,t,n,r){return!0}get(e,t,n){if("symbol"==typeof t)return this.createSafeProxy(this.prefix);let r;const i=String(t);return r=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,r&&this.usingVars.add(r),this.createSafeProxy(r)}apply(e,t,n){return this.createSafeProxy(this.prefix)}createSafeProxy(e){const t=new r(e);return new Proxy(()=>{},{get:(n,r,i)=>r===Symbol.toPrimitive?()=>"":"valueOf"===r?()=>t.createSafeProxy(e):"toString"===r?()=>"":t.get(n,r,i),set:t.set.bind(t),apply:t.apply.bind(t)})}}const i={window:new Proxy(()=>{},new r("window")),document:new Proxy(()=>{},new r("document")),console:new Proxy(()=>{},new r("console"))},a=new Proxy(()=>{},new r("this"));try{new Function("window","document","console",`"use strict"; ${e}; `).call(a,i.window,i.document,i.console)}catch(e){console.error("detectPathFromScript error:",e)}if(t?.excludeThis){const e=new Set;return n.forEach(t=>{"this"!==t&&(t.startsWith("this.")?e.add(t.substring(5)):e.add(t))}),e}return n}}(t=e.Path||(e.Path={})),e.toDeleteKey=(t,n)=>{const r={...t};return e.deleteKey(r,n),r},e.deleteKey=(e,t)=>{t.filter(e=>(0,c.O)(e)).forEach(t=>{delete e[t]})},function(e){e.evalReturn=(t,n={})=>{let r="",i="";return"object"==typeof t?(r=t.bodyScript,i=t.returnScript):i=t,e.eval(`${r}; return ${i} `,n)},e.eval=(e,t={})=>{try{return Function(`"use strict"; ${e} `).bind(t)()}catch(t){return console.error("eval error",t),void console.error(e)}}}(n=e.Script||(e.Script={}))}(s||(s={}));const p=o.B}},m={};function v(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={exports:{}};return y[e](n,n.exports,v),n.exports}v.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return v.d(t,{a:t}),t},v.d=(e,t)=>{for(var n in t)v.o(t,n)&&!v.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},v.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var g={};v.d(g,{AR:()=>M,SX:()=>_,W$:()=>x,dM:()=>j,ey:()=>k,v0:()=>S}),v(6404);var x,b=v(5053),w=v(7441);!function(e){e.ERROR_OBJECT="SIMPLE_BOOT_CORE://ExceptionHandler/ERROR_OBJECT",e.PARAMETER="SIMPLE_BOOT_CORE://ExceptionHandler/PARAMETER"}(x||(x={}));const O=Symbol("ExceptionHandler"),_=(e={})=>(t,n,r)=>{const i=b.d.getMetadata(O,t.constructor)??[],a=t[n];i.push({propertyKey:n,method:a,config:e}),b.d.defineMetadata(O,i,t.constructor),b.d.defineMetadata(O,e,t,n)},k=(e,t)=>b.d.getMetadata(O,e,t),j=e=>(null!=e&&"object"==typeof e&&(e=e.constructor),b.d.getMetadata(O,e)),M=(e,t)=>{const n=j(e),r=n?.filter(e=>void 0===e.config.type),i=n?.filter(e=>w.B.isPrototypeOfTarget(e.config.type,t)),a=i?.sort((e,n)=>{const r=w.B.prototypeOfDepth(t,e.config.type),i=w.B.prototypeOfDepth(t,n.config.type);return r.length-i.length});return(a??[]).concat(...r??[])},S=(e,t,n=[])=>{let r=M(e,t);return r=r?.filter(e=>!n.includes(e.method)),r&&r.length>0?r[0]:void 0},P=g.W$,E=g.v0;var T={5053:(e,t,n)=>{n.d(t,{d:()=>c});var r={9771:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t=N(e,i);if(void 0!==t){var n=t.call(e,"string");if(S(n))throw new TypeError;return n}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o,s={};a.d(s,{d:()=>o}),a(9771),function(e){e.getParameterTypes=(e,t)=>t?Reflect.getMetadata("design:paramtypes",e,t)||[]:Reflect.getMetadata("design:paramtypes",e)||[],e.getReturnType=(e,t)=>Reflect.getMetadata("design:returntype",e,t),e.getType=(e,t)=>t?Reflect.getMetadata("design:type",e,t):Reflect.getMetadata("design:type",e),e.getMetadata=(e,t,n)=>n?Reflect.getMetadata(e,t,n):Reflect.getMetadata(e,t),e.getMetadataKeys=e=>Reflect.getMetadataKeys(e),e.getOwnMetadata=(e,t,n)=>n?Reflect.getOwnMetadata(e,t,n):Reflect.getOwnMetadata(e,t),e.getMetadatas=t=>e.getMetadataKeys(t).map(n=>e.getMetadata(n,t)),e.metadata=(e,t)=>Reflect.metadata(e,t),e.defineMetadata=(e,t,n,r)=>{r&&Reflect.defineMetadata?Reflect.defineMetadata(e,t,n,r):Reflect.defineMetadata&&Reflect.defineMetadata(e,t,n)}}(o||(o={}));const c=s.d},6404:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t="string",n=N(e,i);if(void 0!==n){var r=n.call(e,t);if(S(r))throw new TypeError;return r}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))}},A={};function R(e){var t=A[e];if(void 0!==t)return t.exports;var n=A[e]={exports:{}};return T[e](n,n.exports,R),n.exports}R.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return R.d(t,{a:t}),t},R.d=(e,t)=>{for(var n in t)R.o(t,n)&&!R.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},R.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var z={};R.d(z,{Mq:()=>H,Qp:()=>N,_t:()=>F,tr:()=>I,y_:()=>U}),R(6404);var N,C=R(5053);!function(e){e.INDEX="SIMPLE_BOOT_CORE://Inject/INDEX"}(N||(N={}));class F{constructor({situationType:e,data:t,index:n}){this.situationType=e,this.data=t,this.index=n}}class I{constructor(e){this.containers=[],e&&this.containers.push(...e)}push(...e){this.containers.push(...e)}get length(){return this.containers.length}find(e,t){return this.containers.find(e)}}const B=Symbol("Inject"),L=(e,t,n,r)=>{if(n&&"object"==typeof t){const i=t;t=t.constructor;const a=Reflect.getOwnMetadata(B,t,n)||[],o=C.d.getParameterTypes(i,n)[r];a.push({index:r,config:e,propertyKey:n,type:o}),C.d.defineMetadata(B,a,t,n)}else if(!n||"function"==typeof t){const n=C.d.getMetadata(B,t)||[],i=C.d.getParameterTypes(t)[r];n.push({index:r,config:e,type:i}),C.d.defineMetadata(B,n,t)}};function U(e,t,n){if(!t||void 0===n)return(t,n,r)=>{L(e,t,n,r)};L({},e,t,n)}const H=(e,t)=>(null!=e&&void 0!==e&&"object"==typeof e&&(e=e.constructor),t?Reflect.getOwnMetadata(B,e,t):C.d.getMetadata(B,e)??[]),D=z._t,q=z.tr,K=z.Mq;var W=n(5053),V=n(6377),$=n(1022),J=n(9434),X={420:(e,t,n)=>{n.d(t,{e:()=>i});var r=n(3966);class i extends r.W{constructor(e,t,n,r){super(e,t,r),this.propertyKeys=n}}},532:(e,t,n)=>{n.d(t,{r:()=>u});var r={3056:(e,t,n)=>{n.d(t,{$:()=>r});var r,i=n(9284);!function(e){e.deleteEnter=e=>e.replace(/\r?\n/g,""),e.pickEmoji=e=>e.match(/[\p{Emoji}]/gu)??[],e.regexExec=(e,t)=>{let n=e.exec(t);const r=[];for(;n;)r.push(n),n=e.exec(n.input);return r},e.regexExecArrayReplace=(t,n,r)=>((Array.isArray(n)?n:e.regexExec(n,t)).reverse().forEach(e=>{const n="string"==typeof r?r:r(e);t=t.substr(0,e.index)+t.substr(e.index).replace(e[0],n)}),t),e.escapeSpecialCharacterRegExp=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),e.trim=e=>e.trim(),e.rsubString=(e,t)=>e.substring(e.length-t,e.length),e.lsubString=(e,t)=>e.substring(0,t),e.lpad=(t,n,r)=>{for(;n>r.length;)r=t+r;return e.rsubString(r,n)},e.rpad=(t,n,r)=>{for(;n>r.length;)r+=t;return e.lsubString(r,n)},e.lappend=(e,t)=>{let n="",r=0;for(;r++<e;)n+=t;return n},e.unescape=e=>{if(!e)return"";const t={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 e.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(e,n)=>n.toLowerCase().split(";").map(n=>n in t?t[n]:e).join(""))},e.executeExpression=(e,t)=>e.replace(/\${([^{}]*)}/g,(e,n)=>String(t[n]??e)),e.ellipsis=(e,t)=>e.length>t?`${e.slice(0,t)}...`:e,e.appendPostposition=(e,{vowel:t,consonant:n})=>`${e}${i.U.lastConsonantLetter(e)?n:t}`}(r||(r={}))},9284:(e,t,n)=>{var r;n.d(t,{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};a.d(o,{r:()=>s});var s,c=a(3056);!function(e){let t,n;e.bindExpression=(e,t)=>(e??"").replace(/\$\{([\s\S.]*?)\}/g,(e,n)=>{const[r,i]=n.split(":"),a=t[r];return a?"function"==typeof a?a(t[i]):a:""}),function(e){e.isExpression=e=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(e??""),e.expressionGroups=e=>c.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,e??"")}(t=e.Group||(e.Group={})),function(e){e.pathNameData=(e,t)=>{const n=e.split("/"),r=t.split("/");if(n.length!==r.length)return;const i={};for(let e=0;e<r.length;e++){const t=r[e],a=n[e],o=/^\{(.+)\}$/g.exec(t);if(!o){if(t!==a)return;continue}const[s,c]=o[1].split(":");if(c&&!new RegExp(c).test(a))return;i[s]=a}return i}}(n=e.Path||(e.Path={}))}(s||(s={}));const u=o.r},742:(e,t,n)=>{n.d(t,{wB:()=>o}),n(6404),n(5053);var r,i,a={d:(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};a.d({},{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={})),function(e){e.Singleton="Singleton",e.Transient="Transient"}(i||(i={})),new Map,new Set;const o=Symbol("Sim");Symbol("PostConstruct")},970:(e,t,n)=>{n.d(t,{cI:()=>a});var r=n(5053);const i=Symbol("Router"),a=e=>{null!=e&&"object"==typeof e&&(e=e.constructor);try{return r.d.getMetadata(i,e)}catch(e){}};Symbol("RouteMetadataKey")},3966:(e,t,n)=>{n.d(t,{W:()=>r});class r{constructor(e,t,n){this.message=e,this.name=t,this.stack=n}}},5053:(e,t,n)=>{n.d(t,{d:()=>c});var r={9771:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t=N(e,i);if(void 0!==t){var n=t.call(e,"string");if(S(n))throw new TypeError;return n}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o,s={};a.d(s,{d:()=>o}),a(9771),function(e){e.getParameterTypes=(e,t)=>t?Reflect.getMetadata("design:paramtypes",e,t)||[]:Reflect.getMetadata("design:paramtypes",e)||[],e.getReturnType=(e,t)=>Reflect.getMetadata("design:returntype",e,t),e.getType=(e,t)=>t?Reflect.getMetadata("design:type",e,t):Reflect.getMetadata("design:type",e),e.getMetadata=(e,t,n)=>n?Reflect.getMetadata(e,t,n):Reflect.getMetadata(e,t),e.getMetadataKeys=e=>Reflect.getMetadataKeys(e),e.getOwnMetadata=(e,t,n)=>n?Reflect.getOwnMetadata(e,t,n):Reflect.getOwnMetadata(e,t),e.getMetadatas=t=>e.getMetadataKeys(t).map(n=>e.getMetadata(n,t)),e.metadata=(e,t)=>Reflect.metadata(e,t),e.defineMetadata=(e,t,n,r)=>{r&&Reflect.defineMetadata?Reflect.defineMetadata(e,t,n,r):Reflect.defineMetadata&&Reflect.defineMetadata(e,t,n)}}(o||(o={}));const c=s.d},5846:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(5053);const i=Symbol("Injection"),a=(e,t)=>r.d.getMetadata(i,e,t)},6404:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t="string",n=N(e,i);if(void 0!==n){var r=n.call(e,t);if(S(r))throw new TypeError;return r}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))},9212:(e,t,n)=>{n.d(t,{J:()=>a});var r=n(742),i=n(5053);class a{constructor(e,t,n){this.type=e,this.simstanceManager=t,this.config=n,this.value=e.value}getConfig(e=r.wB){return i.d.getMetadata(e,this.type.originalType)}getConfigs(){return i.d.getMetadatas(this.type.originalType)}getValue(e){return e?.refresh&&(this.value=void 0),this.value||(this.value=this.simstanceManager.getOrNewSim({target:this.type.targetKeyType,originTypeTarget:this.type.originalType,newInstanceCarrier:e?.newInstanceCarrier})),this.value}}}},G={};function Y(e){var t=G[e];if(void 0!==t)return t.exports;var n=G[e]={exports:{}};return X[e](n,n.exports,Y),n.exports}Y.d=(e,t)=>{for(var n in t)Y.o(t,n)&&!Y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Z={};Y.d(Z,{i:()=>ie});var Q=Y(9212),ee=Y(5846),te=Y(420),ne=Y(970),re=Y(532);class ie{get path(){return this._path}set path(e){this._path=e}get data(){return this._data}set data(e){this._data=e}get intent(){return this._intent}set intent(e){this._intent=e}get propertyKeys(){return this._propertyKeys}set propertyKeys(e){this._propertyKeys=e}get pathData(){return this._pathData}set pathData(e){this._pathData=e}constructor(e,t,n,r=[]){this.simstanceManager=e,this.router=t,this.module=n,this.routerChains=r}getRouterPath(e=""){return this.getRouterPaths().map(e=>e??"").join(e)}getRouterPaths(){return this.routerChains.map(e=>(0,ne.cI)(e instanceof Q.J?e.type.targetKeyType:e)?.path)}getRouterPathData(e){return re.r.Path.pathNameData(e,this.getRouterPath())}getModuleInstance(e,t=!0){const n=this.simstanceManager.getOrNewSim({target:this.module?.targetKeyType,originTypeTarget:this.module?.originalType});if(e&&this.propertyKeys&&this.propertyKeys.includes(e)){let r=n[e];return t&&"boolean"==typeof t?r=r.bind(n):t&&"object"==typeof t&&(r=r.bind(t)),r}return n}executeModuleProperty(e,...t){const n=this.getModuleInstance();if(e){if((0,ee.A)(n,e)){const r=new Map;return t.forEach(e=>r.set(e.constructor,e)),this.simstanceManager.executeBindParameterSim({target:n,targetKey:e},r)}if(n[e])return n[e]?.(...t);throw new te.e(`${e.toString()} noSuch`,e.toString(),e)}}get firstRouteChain(){return this.routerChains[0]}get firstRouteChainValue(){return this.firstRouteChain.getValue()}get lastRouteChain(){return this.routerChains[this.routerChains.length-1]}get lastRouteChainValue(){return this.lastRouteChain.getValue()}hasActivateInLastRoute(e){return!0===this.lastRouteChainValue?.hasActivate(e)}get queryParams(){if(this.intent)return this.intent.queryParams}get queryParamsAfterDecodeURI(){if(this.intent)return this.intent.queryParamsAfterDecodeURI}}const ae=Z.i;var oe=n(2188),se={5053:(e,t,n)=>{n.d(t,{d:()=>c});var r={9771:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t=N(e,i);if(void 0!==t){var n=t.call(e,"string");if(S(n))throw new TypeError;return n}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o,s={};a.d(s,{d:()=>o}),a(9771),function(e){e.getParameterTypes=(e,t)=>t?Reflect.getMetadata("design:paramtypes",e,t)||[]:Reflect.getMetadata("design:paramtypes",e)||[],e.getReturnType=(e,t)=>Reflect.getMetadata("design:returntype",e,t),e.getType=(e,t)=>t?Reflect.getMetadata("design:type",e,t):Reflect.getMetadata("design:type",e),e.getMetadata=(e,t,n)=>n?Reflect.getMetadata(e,t,n):Reflect.getMetadata(e,t),e.getMetadataKeys=e=>Reflect.getMetadataKeys(e),e.getOwnMetadata=(e,t,n)=>n?Reflect.getOwnMetadata(e,t,n):Reflect.getOwnMetadata(e,t),e.getMetadatas=t=>e.getMetadataKeys(t).map(n=>e.getMetadata(n,t)),e.metadata=(e,t)=>Reflect.metadata(e,t),e.defineMetadata=(e,t,n,r)=>{r&&Reflect.defineMetadata?Reflect.defineMetadata(e,t,n,r):Reflect.defineMetadata&&Reflect.defineMetadata(e,t,n)}}(o||(o={}));const c=s.d}},ce={};function ue(e){var t=ce[e];if(void 0!==t)return t.exports;var n=ce[e]={exports:{}};return se[e](n,n.exports,ue),n.exports}ue.d=(e,t)=>{for(var n in t)ue.o(t,n)&&!ue.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},ue.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var pe={};ue.d(pe,{BR:()=>_e,Hl:()=>fe,Lu:()=>we,OH:()=>me,QL:()=>ge,aK:()=>xe,by:()=>ve,nv:()=>he,q7:()=>Oe,xh:()=>be});var le=ue(5053);const de=Symbol("ValidMetadataKey"),fe=(e,t,n)=>{if(t&&"object"==typeof e){e=e.constructor;const r=Reflect.getOwnMetadata(de,e,t)||[];r.push(n),Reflect.defineMetadata(de,r,e,t)}else if(!t||"function"==typeof e){const t=Reflect.getOwnMetadata(de,e)||[];t.push(n),Reflect.defineMetadata(de,t,e)}},he=(e,t)=>(null!=e&&"object"==typeof e&&(e=e.constructor),t?Reflect.getOwnMetadata(de,e,t)??[]:le.d.getMetadata(de,e)??[]),ye=Symbol("ValidationMetadataKey"),me=e=>(t,n)=>{const r=le.d.getMetadata(ye,t.constructor)??[];r.push({propertyKey:n,validator:e}),le.d.defineMetadata(ye,r,t.constructor),le.d.defineMetadata(ye,e,t,n)},ve=(e,t)=>le.d.getMetadata(ye,e,t),ge=e=>(null!=e&&"object"==typeof e&&(e=e.constructor),le.d.getMetadata(ye,e)??[]),xe=e=>(t,...n)=>e.test(t),be=(e,...t)=>null!==e,we=(e,...t)=>null!=e&&("string"==typeof e&&e.length>0||Array.isArray(e)&&e.length>0),Oe=e=>_e(e).filter(e=>!e.valid),_e=e=>{const t=ge(e),n=[];return t.forEach(e=>{n.push({name:e.propertyKey,valid:e.validator(e.propertyKey,e),message:""})}),n},ke=pe.q7,je=pe.nv;var Me={d:(e,t)=>{for(var n in t)Me.o(t,n)&&!Me.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},Se={};Me.d(Se,{E:()=>Pe});class Pe{constructor(e){this.result=e}toString(){return this.result?JSON.stringify(this.result):"undefined"}get message(){return this.toString()}}const Ee=Se.E;var Te=n(758),Ae={5053:(e,t,n)=>{n.d(t,{d:()=>c});var r={9771:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t=N(e,i);if(void 0!==t){var n=t.call(e,"string");if(S(n))throw new TypeError;return n}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o,s={};a.d(s,{d:()=>o}),a(9771),function(e){e.getParameterTypes=(e,t)=>t?Reflect.getMetadata("design:paramtypes",e,t)||[]:Reflect.getMetadata("design:paramtypes",e)||[],e.getReturnType=(e,t)=>Reflect.getMetadata("design:returntype",e,t),e.getType=(e,t)=>t?Reflect.getMetadata("design:type",e,t):Reflect.getMetadata("design:type",e),e.getMetadata=(e,t,n)=>n?Reflect.getMetadata(e,t,n):Reflect.getMetadata(e,t),e.getMetadataKeys=e=>Reflect.getMetadataKeys(e),e.getOwnMetadata=(e,t,n)=>n?Reflect.getOwnMetadata(e,t,n):Reflect.getOwnMetadata(e,t),e.getMetadatas=t=>e.getMetadataKeys(t).map(n=>e.getMetadata(n,t)),e.metadata=(e,t)=>Reflect.metadata(e,t),e.defineMetadata=(e,t,n,r)=>{r&&Reflect.defineMetadata?Reflect.defineMetadata(e,t,n,r):Reflect.defineMetadata&&Reflect.defineMetadata(e,t,n)}}(o||(o={}));const c=s.d}},Re={};function ze(e){var t=Re[e];if(void 0!==t)return t.exports;var n=Re[e]={exports:{}};return Ae[e](n,n.exports,ze),n.exports}ze.d=(e,t)=>{for(var n in t)ze.o(t,n)&&!ze.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},ze.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Ne={};ze.d(Ne,{Ix:()=>Be,X5:()=>qe,aM:()=>De,cI:()=>Le,qh:()=>He,r3:()=>Ie,sP:()=>Fe,yL:()=>Ue});var Ce=ze(5053);const Fe=Symbol("Router"),Ie=(e,t)=>{qe(t)?.forEach(n=>{e.route=e.route??{};const r=Array.isArray(n.config.path)?n.config.path:[n.config.path];for(const i of r)if(e.route[i]){const t=e.route[i];t.propertyKeys.push(n.propertyKey),t.filters=t.filters??[],Array.isArray(n.config.filters)?t.filters.push(...n.config.filters):n.config.filters&&t.filters.push(n.config.filters)}else e.route[i]={target:t,propertyKeys:[n.propertyKey],filters:n.config.filters}}),Ce.d.defineMetadata(Fe,e,t)};function Be(e){if("function"!=typeof e)return t=>{e.path=e.path??"",Ie(e,t)};Ie({path:""},e)}const Le=e=>{null!=e&&"object"==typeof e&&(e=e.constructor);try{return Ce.d.getMetadata(Fe,e)}catch(e){}},Ue=Symbol("RouteMetadataKey"),He=e=>(t,n,r)=>{const i=Ce.d.getMetadata(Ue,t.constructor)??[],a=t[n];i.push({propertyKey:n,method:a,config:e}),Ce.d.defineMetadata(Ue,i,t.constructor),Ce.d.defineMetadata(Ue,e,t,n)},De=(e,t)=>Ce.d.getMetadata(Ue,e,t),qe=e=>(null!=e&&"object"==typeof e&&(e=e.constructor),Ce.d.getMetadata(Ue,e)),Ke=Ne.aM;var We=n(7016),Ve=n(5118),$e=n(1262),Je=n(5797);class Xe extends o{constructor(e=new s.HttpServerOption){super(e),this.option=e,this.sessionManager=new $e.SessionManager(this.option)}run(e){const t=super.run(e),n=[...this.option.closeEndPoints??[],...this.option.errorEndPoints??[],...this.option.requestEndPoints??[],...this.option.filters??[]];return Promise.all(n.map(e=>"function"==typeof e?this.simstanceManager.getOrNewSim({target:e}):e).map(e=>e.onInit(this))).then(e=>{this.startServer()}),t}startServer(){if(this.option.serverOption&&"key"in this.option.serverOption&&"cert"in this.option.serverOption){this.server=new u.Server(this.option.serverOption);const e=new c.Server;e.on("request",(e,t)=>{t.writeHead(301,{Location:`https://${e.headers.host}${e.url}`}),t.end()}),e.listen(80,this.option.listen.hostname,()=>{console.log("HTTP redirect server running on port 80")})}else this.option.serverOption?this.server=new c.Server(this.option.serverOption):this.server=new c.Server;this.server.on("request",async(e,t)=>{const n=this.option.transactionManagerFactory?await this.option.transactionManagerFactory():void 0;t.on("close",async()=>{if(this.option.closeEndPoints)for(const e of this.option.closeEndPoints)try{const t="function"==typeof e?this.simstanceManager.getOrNewSim({target:e}):e,n=t?.endPoint(r,this);n instanceof Promise&&await n}catch(e){}r.resIsDone()||r.resEnd()}),t.on("error",async()=>{if(this.option.errorEndPoints)for(const e of this.option.errorEndPoints)try{const t="function"==typeof e?this.simstanceManager.getOrNewSim({target:e}):e,n=t?.endPoint(r,this);n instanceof Promise&&await n}catch(e){}r.resIsDone()||r.resEnd()});const r=new p.RequestResponse(e,t,{sessionManager:this.sessionManager,option:this.option});if(r.resSetHeader(f.HttpHeaders.Server,"simple-boot-http-server"),!r.reqCookieGet(this.option.sessionOption.key)){const e=await this.sessionManager.session();r.resSetHeader(f.HttpHeaders.SetCookie,`${this.option.sessionOption.key}=${e.uuid}; Path=/; HttpOnly`)}const i=new Map;i.set(p.RequestResponse,r),i.set(c.IncomingMessage,e),i.set(c.ServerResponse,t);try{if(n?.try(),this.option.requestEndPoints)for(const e of this.option.requestEndPoints)try{const t="function"==typeof e?this.simstanceManager.getOrNewSim({target:e}):e;t?.endPoint(r,this)}catch(e){}const e={carrier:new Map,filters:[]};for(let t=0;this.option.filters&&t<this.option.filters.length;t++){const n=this.option.filters[t],i="function"==typeof n?this.simstanceManager.getOrNewSim({target:n}):n;let a=!0;if(i?.proceedBefore&&(a=await i.proceedBefore({rr:r,app:this,carrier:e.carrier}),e.filters.push({filter:i,sw:a})),!a)break}if(!r.resIsDone()){const e=await super.routing(r.reqIntent);i.set(ae,e);const t=e?.getModuleInstance?.();let a=[];if(e&&t){if(e.propertyKeys){const n=e.propertyKeys?.map(e=>({propertyKey:e,config:(0,l.getUrlMapping)(t,e)}));a.push(...n??[])}else a.push(...(0,l.getUrlMappings)(t).filter(e=>!Ke(t,e.propertyKey))??[]);if(r.reqMethod()?.toUpperCase()===Ve.HttpMethod.OPTIONS.toUpperCase()&&(r.resSetHeader(f.HttpHeaders.Allow,a.map(e=>e.config.method).join(", ")),r.resStatusCode(d.HttpStatus.Ok)),a=a.filter(e=>e&&e.propertyKey&&e.config&&r.reqMethod()?.toUpperCase()===e.config.method.toUpperCase()),a.sort((e,t)=>(t.config?.req?.contentType?.length??0)+(t.config?.req?.accept?.length??0)-((e.config?.req?.contentType?.length??0)+(e.config?.req?.accept?.length??0))),a=a.filter(e=>!e.config?.req?.contentType||!!e.config?.req?.contentType?.find(e=>r.reqHasContentTypeHeader(e))).filter(e=>!e.config?.req?.accept||!!e.config?.req?.accept?.find(e=>r.reqHasAcceptHeader(e))),a[0]){const e=a[0],o=W.d.getParameterTypes(t,e.propertyKey),s=K(t,e.propertyKey),c=je(t,e.propertyKey);if(s){const e=s.find(e=>e.config?.situationType===l.UrlMappingSituationType.REQ_JSON_BODY),t=s.find(e=>e.config?.situationType===l.UrlMappingSituationType.REQ_FORM_URL_BODY),a=s.find(e=>e.config?.situationType===Je.InjectSituationType.TransactionManager),o=new q;if(e){let t=await r.reqBodyJsonData();if(e.type&&(t=Object.assign(new e.type,t)),c.includes(e.index)){const e=ke(t);if((e?.length??0)>0)throw new Ee(e)}o.push(new D({situationType:l.UrlMappingSituationType.REQ_JSON_BODY,data:t}))}if(t){let e=await r.reqBodyFormUrlData();if(t.type&&(e=Object.assign(new t.type,e)),c.includes(t.index)){const t=ke(e);if((t?.length??0)>0)throw new Ee(t)}o.push(new D({situationType:l.UrlMappingSituationType.REQ_FORM_URL_BODY,data:e}))}if(a&&a.type&&n&&n.hasTransaction(a.type)){let e=await n.getTransaction(a.type);e&&(e=await e.try(a.config.argument),o.push(new D({situationType:Je.InjectSituationType.TransactionManager,data:e,index:a.index})))}o.length&&i.set(q,o)}for(const e of o)e===V.ReqFormUrlBody?i.set(V.ReqFormUrlBody,await r.reqBodyReqFormUrlBody()):e===$.ReqJsonBody?i.set($.ReqJsonBody,await r.reqBodyReqJsonBody()):e===We.URLSearchParams?i.set(We.URLSearchParams,r.reqUrlSearchParams):e===oe.ReqMultipartFormBody?i.set(oe.ReqMultipartFormBody,r.reqBodyMultipartFormData()):e===J.ReqHeader&&i.set(J.ReqHeader,r.reqHeaderObj);let u=await this.simstanceManager.executeBindParameterSimPromise({target:t,targetKey:e.propertyKey},i);if(e.config?.resolver){const t="function"==typeof e.config.resolver?this.simstanceManager.getOrNewSim({target:e.config.resolver}):e.config.resolver;u=await(t?.resolve?.(u,r))}const p=e.config?.res?.status??d.HttpStatus.Ok,y=e.config?.res?.header??{};e.config?.res?.contentType&&(y[f.HttpHeaders.ContentType]=e.config?.res?.contentType),((e.config?.res?.contentType?.toLowerCase().indexOf(h.Mimes.ApplicationJson.toLowerCase())??-1)>-1||u&&"object"==typeof u)&&(u=JSON.stringify(u)),r.resSetHeaders(y),r.resSetStatusCode(p),r.resWrite(u)}}if(this.option.noSuchRouteEndPointMappingThrow&&a.length<=0&&r.reqMethod()?.toUpperCase()!==Ve.HttpMethod.OPTIONS)throw this.option.noSuchRouteEndPointMappingThrow(r)}for(const t of e.filters.reverse())if(t.filter?.proceedAfter&&!await t.filter.proceedAfter({rr:r,app:this,before:t.sw,carrier:e.carrier}))break}catch(e){n?.catch(e),r.resStatusCode(e instanceof Te.HttpError?e.status:d.HttpStatus.InternalServerError);const t="function"==typeof this.option.globalAdvice?this.simstanceManager.getOrNewSim(this.option.globalAdvice):this.option.globalAdvice;if(!t)return void r.resEnd();e&&"object"==typeof e&&(i.set(e.constructor,e),i.set(D,new D({situationType:P.ERROR_OBJECT,data:e})));const a=E(t,e);a&&await this.simstanceManager.executeBindParameterSimPromise({target:t,targetKey:a.propertyKey},i)}finally{n?.finally()}r.resIsDone()||r.resEnd()}),this.server.listen(this.option.listen.port,this.option.listen.hostname,this.option.listen.backlog,()=>{this.option.listen.listeningListener?.(this,this.server)})}}},1022:(e,t,n)=>{"use strict";n.d(t,{ReqJsonBody:()=>r});class r{}},1262:(e,t,n)=>{"use strict";n.d(t,{SessionManager:()=>a});var r=n(889),i=n(3500);class a{constructor(e){this.option=e,this.sessions=new Map,this.sessionOption=e.sessionOption,setInterval(async()=>{const e=await this.getSessionUUIDs();for(const t of e){const e=await this.getSessionDataSet(t);e&&this.isExpired(e.access)&&await this.deleteSession(t)}},this.sessionOption.expiredTime)}async getSessionUUIDs(){return this.sessionOption.provider?.uuids?this.sessionOption.provider.uuids():Array.from(this.sessions.keys())}async deleteSession(e){this.sessionOption.provider?.delete?this.sessionOption.provider.delete(e):this.sessions.delete(e)}async getSessionDataSet(e){return this.sessionOption.provider?.get?this.sessionOption.provider.get(e):this.sessions.get(e)}async setSessionDataSet(e,t){this.sessionOption.provider?.set?this.sessionOption.provider.set(e,t):this.sessions.set(e,t)}isExpired(e,t=Date.now()){return t-e>=this.option.sessionOption.expiredTime}makeUUID(){return r.n.uuid("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")}async session(e){let t;t=e instanceof i.RequestResponse?e.reqCookieGet(this.sessionOption.key)??this.makeUUID():"string"==typeof e?e:this.makeUUID();let n=await this.getSessionDataSet(t);const r=Date.now();return n?(this.isExpired(n.access,r)&&delete n.data,n.access=r):n={access:r},await this.setSessionDataSet(t,n),{uuid:t,dataSet:n}}}},1506:(e,t,n)=>{"use strict";n.d(t,{HttpServerOption:()=>r.HttpServerOption});var r=n(3587)},1872:(e,t,n)=>{"use strict";n.d(t,{UnauthorizedError:()=>a});var r=n(758),i=n(229);class a extends r.HttpError{constructor({status:e=i.HttpStatus.Unauthorized,message:t="Unauthorized"}={}){super({status:e,message:t})}}},1946:(e,t,n)=>{"use strict";var r;n.d(t,{Mimes:()=>r}),function(e){e.ApplicationJson="application/json",e.ApplicationOctetStream="application/octet-stream",e.ApplicationXml="application/xml",e.ApplicationJsonPatch="application/json-patch+json",e.ApplicationXWwwFormUrlencoded="application/x-www-form-urlencoded",e.TextPlain="text/plain",e.TextHtml="text/html",e.All="*/*",e.TextCss="text/css",e.TextJavascript="text/javascript",e.TextXml="text/xml",e.TextXslt="text/xslt",e.TextXmlDtd="text/xml-dtd",e.TextPlainUtf8="text/plain; charset=utf-8",e.ImagePng="image/png",e.ImageGif="image/gif",e.ImageJpeg="image/jpeg",e.ImageSvg="image/svg+xml",e.ImageBmp="image/bmp",e.ImageTiff="image/tiff",e.ImagePdf="application/pdf",e.ImageXBmp="image/x-bmp",e.ImageXpixmap="image/x-xpixmap",e.ImageXxbm="image/x-xbm",e.MultipartFormData="multipart/form-data"}(r||(r={}))},2001:(e,t,n)=>{"use strict";n.d(t,{CONNECT:()=>r.CONNECT,DELETE:()=>r.DELETE,GET:()=>r.GET,HEAD:()=>r.HEAD,OPTIONS:()=>r.OPTIONS,PATCH:()=>r.PATCH,POST:()=>r.POST,PUT:()=>r.PUT,TRACE:()=>r.TRACE,UrlMapping:()=>r.UrlMapping,UrlMappingSituationType:()=>r.UrlMappingSituationType,getCONNECT:()=>r.getCONNECT,getCONNECTS:()=>r.getCONNECTS,getDELETE:()=>r.getDELETE,getDELETES:()=>r.getDELETES,getGET:()=>r.getGET,getGETS:()=>r.getGETS,getHEAD:()=>r.getHEAD,getHEADS:()=>r.getHEADS,getOPTIONS:()=>r.getOPTIONS,getOPTIONSS:()=>r.getOPTIONSS,getPATCH:()=>r.getPATCH,getPATCHS:()=>r.getPATCHS,getPOST:()=>r.getPOST,getPOSTS:()=>r.getPOSTS,getPUT:()=>r.getPUT,getPUTS:()=>r.getPUTS,getTRACE:()=>r.getTRACE,getTRACES:()=>r.getTRACES,getUrlMapping:()=>r.getUrlMapping,getUrlMappings:()=>r.getUrlMappings});var r=n(9108)},2188:(e,t,n)=>{"use strict";n.d(t,{ReqMultipartFormBody:()=>r});class r{constructor(e=[]){this.field=e}}},2240:(e,t,n)=>{"use strict";n.d(t,{ThrowFilter:()=>r});class r{constructor(e){this.error=e}async onInit(e){}async proceedBefore({rr:e,app:t}){return!0}async proceedAfter({rr:e,app:t}){if(!e.resIsDone())throw this.error;return!1}}},2302:(e,t,n)=>{"use strict";n.d(t,{ResourceResorver:()=>r.ResourceResorver});var r=n(3497)},2821:(e,t,n)=>{"use strict";n.d(t,{HeaderData:()=>i.HeaderData,PatchJson:()=>p.PatchJson,ReqFormUrlBody:()=>s.ReqFormUrlBody,ReqHeader:()=>a.ReqHeader,ReqJsonBody:()=>c.ReqJsonBody,ReqMultipartFormBody:()=>u.ReqMultipartFormBody,RequestResponse:()=>r.RequestResponse,RequestResponseChain:()=>r.RequestResponseChain,Resource:()=>o.Resource});var r=n(3500),i=n(7578),a=n(9434),o=n(3779),s=n(6377),c=n(1022),u=n(2188),p=n(9183)},3055:(e,t,n)=>{"use strict";n.d(t,{i:()=>y});const r=require("node:module"),i=(0,r.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"),a=(0,r.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,r.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 s={9284:(e,t,n)=>{var r;n.d(t,{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={}))}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return s[e](n,n.exports,u),n.exports}u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var p={};u.d(p,{n:()=>l});var l,d,f=u(9284);(d=l||(l={})).uniqueInts=(e,t,n)=>{const r=[];if(n>t-e)throw new Error("Count is greater than the range of unique integers");for(;r.length<n;){const n=d.int(e,t);r.includes(n)||r.push(n)}return r},d.chance=e=>{if(e<0||e>1)throw new Error("Percentage must be between 0 and 1");return Math.random()<e},d.int=(e,t)=>Math.floor(d.float(e,t)),d.float=(e,t)=>f.U.isNullOrUndefined(e)?Math.random():!f.U.isNullOrUndefined(e)&&f.U.isNullOrUndefined(t)?Math.random()*(e||0):Math.random()*((t||0)-(e||0))+(e||0),d.uuid=(e="xxxx-xxxx-xxxx-xxxx")=>e.replace(/[xy]/g,function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),d.uuid4=()=>{let e,t="";for(e=0;e<32;e+=1)switch(e){case 8:case 20:t+="-",t+=(16*Math.random()|0).toString(16);break;case 12:t+="-",t+="4";break;case 16:t+="-",t+=(4*Math.random()|8).toString(16);break;default:t+=(16*Math.random()|0).toString(16)}return t},d.hex=()=>{const e="0123456789ABCDEF".split("");let t="";for(let n=0;n<6;n++)t+=e[Math.floor(16*Math.random())];return t},d.rgb=()=>{const e="0123456789ABCDEF".split("");let t="#";for(let n=0;n<6;n++)t+=e[Math.floor(16*Math.random())];return t},d.rgba=()=>{const e="0123456789ABCDEF".split("");let t="#";for(let n=0;n<8;n++)t+=e[Math.floor(16*Math.random())];return t},d.alphabet=e=>{const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n};const h=p.n;var y;!function(e){class t{constructor(e){this._data=e,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 e=this._data.path.substring(this._data.path.lastIndexOf(".")+1);return e.length>0?e:void 0}async updateStats(){const e=await a.promises.stat(this._data.path);this.size=e.size}async delete(){await a.promises.unlink(this._data.path),this._data.path="",this.size=void 0}async copy(e){await a.promises.copyFile(this._data.path,e),this._data.path=e,this.size=(await a.promises.stat(e)).size}async move(e){const t=e.substring(0,e.lastIndexOf("/"));await a.promises.mkdir(t,{recursive:!0}),await a.promises.rename(this._data.path,e),this._data.path=e,this.size=(await a.promises.stat(e)).size}async rename(e){const t=`${this.directory}/${e}`;await a.promises.rename(this._data.path,t),this.size=(await a.promises.stat(t)).size,this._data.path=t}}e.File=t,e.writeFile=async(e,n)=>(n.path??(n.path=`${i.tmpdir()}/${h.uuid4()}_${Date.now()}`),await a.promises.mkdir(n.path.substring(0,n.path.lastIndexOf("/")),{recursive:!0}),await a.promises.writeFile(n.path,e),new t({path:n.path,originalName:n.originalName})),e.path=e=>Array.isArray(e)?o.join(...e):e,e.existsSync=(t,n)=>{const r=e.path(t);return a.existsSync(r)?(n?.existes?.(r),!0):(n?.noExistes?.(r),!1)},e.mkdirSync=(t,n)=>{e.existsSync(t,{noExistes:e=>{a.mkdirSync(e,n)}})},e.mkdir=async(t,n)=>new Promise((r,i)=>{e.existsSync(t,{noExistes:e=>{a.mkdirSync(e,n),r(e)},existes:e=>{r(e)}})}),e.readSync=(t,n)=>{const r=e.path(t);return n?.option?a.readFileSync(r,n.option):a.readFileSync(r)},e.read=async(t,n)=>{const r=e.path(t);return a.readFile(r,n.option)},e.write=(t,n)=>{const r=e.path(n.path);return n.options?a.writeFileSync(r,t,n.options):a.writeFileSync(r,t),r},e.writeAppend=(t,n)=>{const r=e.path(n.path);return n.options?a.appendFileSync(r,t,n.options):a.appendFileSync(r,t),r},e.deleteSync=(t,n)=>{const r=e.path(t);e.existsSync(r)&&(n?.options?a.rmSync(r,n?.options):a.rmSync(r))},e.deleteDirSync=(t,n)=>{const r=e.path(t);e.existsSync(r)&&(n?.options?a.rmdirSync(r,n?.options):a.rmdirSync(r))},e.deleteFileSync=t=>{const n=e.path(t);e.existsSync(n)&&a.unlinkSync(n)},e.copySync=(t,n,r)=>{const i=e.path(t),o=e.path(n);a.cpSync(i,o,r)}}(y||(y={}))},3106:e=>{"use strict";e.exports=require("zlib")},3367:(e,t,n)=>{"use strict";n.d(t,{HeaderEndPoint:()=>r});class r{constructor(e){this.headers=e}async endPoint(e,t){this.headers&&e.resSetHeaders(this.headers)}async onInit(e){}}},3497:(e,t,n)=>{"use strict";n.d(t,{ResourceResorver:()=>l});var r=n(3779),i={5053:(e,t,n)=>{n.d(t,{d:()=>c});var r={9771:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t=N(e,i);if(void 0!==t){var n=t.call(e,"string");if(S(n))throw new TypeError;return n}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o,s={};a.d(s,{d:()=>o}),a(9771),function(e){e.getParameterTypes=(e,t)=>t?Reflect.getMetadata("design:paramtypes",e,t)||[]:Reflect.getMetadata("design:paramtypes",e)||[],e.getReturnType=(e,t)=>Reflect.getMetadata("design:returntype",e,t),e.getType=(e,t)=>t?Reflect.getMetadata("design:type",e,t):Reflect.getMetadata("design:type",e),e.getMetadata=(e,t,n)=>n?Reflect.getMetadata(e,t,n):Reflect.getMetadata(e,t),e.getMetadataKeys=e=>Reflect.getMetadataKeys(e),e.getOwnMetadata=(e,t,n)=>n?Reflect.getOwnMetadata(e,t,n):Reflect.getOwnMetadata(e,t),e.getMetadatas=t=>e.getMetadataKeys(t).map(n=>e.getMetadata(n,t)),e.metadata=(e,t)=>Reflect.metadata(e,t),e.defineMetadata=(e,t,n,r)=>{r&&Reflect.defineMetadata?Reflect.defineMetadata(e,t,n,r):Reflect.defineMetadata&&Reflect.defineMetadata(e,t,n)}}(o||(o={}));const c=s.d},6404:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}(),r=function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,i)},t.prototype.values=function(){return new n(this._keys,this._values,o)},t.prototype.entries=function(){return new n(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();return r;function i(e,t){return e}function o(e,t){return t}function s(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t="string",n=N(e,i);if(void 0!==n){var r=n.call(e,t);if(S(r))throw new TypeError;return r}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s,c,u=(o(6404),o(5053),{d:(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)});u.d({},{U:()=>s}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(s||(s={})),function(e){e.Singleton="Singleton",e.Transient="Transient"}(c||(c={})),new Map,new Set,Symbol("Sim"),Symbol("PostConstruct");const p={}.on;let l=class{resolve(e,t){return new r.Resource(e??t).write(t)}};l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}([p],l)},3500:(e,t,n)=>{"use strict";n.d(t,{RequestResponse:()=>A,RequestResponseChain:()=>R});var r=n(7953),i={532:(e,t,n)=>{n.d(t,{r:()=>u});var r={3056:(e,t,n)=>{n.d(t,{$:()=>r});var r,i=n(9284);!function(e){e.deleteEnter=e=>e.replace(/\r?\n/g,""),e.pickEmoji=e=>e.match(/[\p{Emoji}]/gu)??[],e.regexExec=(e,t)=>{let n=e.exec(t);const r=[];for(;n;)r.push(n),n=e.exec(n.input);return r},e.regexExecArrayReplace=(t,n,r)=>((Array.isArray(n)?n:e.regexExec(n,t)).reverse().forEach(e=>{const n="string"==typeof r?r:r(e);t=t.substr(0,e.index)+t.substr(e.index).replace(e[0],n)}),t),e.escapeSpecialCharacterRegExp=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),e.trim=e=>e.trim(),e.rsubString=(e,t)=>e.substring(e.length-t,e.length),e.lsubString=(e,t)=>e.substring(0,t),e.lpad=(t,n,r)=>{for(;n>r.length;)r=t+r;return e.rsubString(r,n)},e.rpad=(t,n,r)=>{for(;n>r.length;)r+=t;return e.lsubString(r,n)},e.lappend=(e,t)=>{let n="",r=0;for(;r++<e;)n+=t;return n},e.unescape=e=>{if(!e)return"";const t={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 e.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(e,n)=>n.toLowerCase().split(";").map(n=>n in t?t[n]:e).join(""))},e.executeExpression=(e,t)=>e.replace(/\${([^{}]*)}/g,(e,n)=>String(t[n]??e)),e.ellipsis=(e,t)=>e.length>t?`${e.slice(0,t)}...`:e,e.appendPostposition=(e,{vowel:t,consonant:n})=>`${e}${i.U.lastConsonantLetter(e)?n:t}`}(r||(r={}))},9284:(e,t,n)=>{var r;n.d(t,{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};a.d(o,{r:()=>s});var s,c=a(3056);!function(e){let t,n;e.bindExpression=(e,t)=>(e??"").replace(/\$\{([\s\S.]*?)\}/g,(e,n)=>{const[r,i]=n.split(":"),a=t[r];return a?"function"==typeof a?a(t[i]):a:""}),function(e){e.isExpression=e=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(e??""),e.expressionGroups=e=>c.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,e??"")}(t=e.Group||(e.Group={})),function(e){e.pathNameData=(e,t)=>{const n=e.split("/"),r=t.split("/");if(n.length!==r.length)return;const i={};for(let e=0;e<r.length;e++){const t=r[e],a=n[e],o=/^\{(.+)\}$/g.exec(t);if(!o){if(t!==a)return;continue}const[s,c]=o[1].split(":");if(c&&!new RegExp(c).test(a))return;i[s]=a}return i}}(n=e.Path||(e.Path={}))}(s||(s={}));const u=o.r}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return i[e](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s={};o.d(s,{J:()=>p,M:()=>c});var c,u=o(532);!function(e){e.DATA_PARAMETERS="DATA_PARAMETERS",e.INLINE_DATA_PARAMETERS="INLINE_DATA_PARAMETERS"}(c||(c={}));class p{constructor(e,t,n){if(this.uri=e,this.data=t,this.event=n,this.sessionData=new Map,"string"==typeof e){const t=e.match(/^Symbol\.for\((.+)\):\/(.*)$/);if(t){const e=Symbol.for(t[1]);this.uri={symbol:e,uri:t[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 e=this.uri.split("://");return e.length>1?e[0]:void 0}}get paths(){return this.pathname.split("/")??[]}get fullPath(){const e=("string"==typeof this.uri?this.uri:this.uri.uri).split("://");return e[e.length>=2?1:0]??""}get pathname(){return this.fullPath.split("?")[0]}get query(){return this.fullPath.split("?")[1]??""}get queryParams(){const e={};return this.query.split("&")?.forEach(t=>{const n=t.split("=");e[n[0]]=n[1]}),e}get queryParamsAfterDecodeURI(){const e=this.queryParams;for(const t in e)e.hasOwnProperty(t)&&(e[t]=decodeURIComponent(e[t]));return e}getPathnameData(e){return u.r.Path.pathNameData(this.pathname,e)}get isSymbolScheme(){return void 0!==this.symbols}}const l=s.J;var d=n(7016);const f=require("buffer");var h=n(6377),y=n(1022),m=n(9434),v=n(5884),g=n(3055),x={2676:(e,t,n)=>{n.d(t,{B:()=>r});var r,i=n(7855),a=n(9284);!function(e){let t,n;e.constructorName=e=>e&&e.constructor&&e.constructor.name?e.constructor.name:e&&e.name?e.name:void 0,e.deepCopy=e=>e instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(e.entries())))):e instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(e.values())))):a.U.isNullOrUndefined(e)?e:JSON.parse(JSON.stringify(e)),e.allProtoTypeName=(t,n)=>{let r=[];if(t){const i=Object.getPrototypeOf(t);i&&(r=Object.keys(i)||[]).length>0&&(r=r.concat(e.allProtoTypeName(i,n)))}let i=r.filter(e=>"constructor"!==e);if(n&&t){const e=Object.getPrototypeOf(t);i=i.filter(t=>n(t,e?.[t]))}return i},e.uniqueKeys=e=>Array.from(new Set((Array.isArray(e)?e:[e]).flatMap(e=>Object.keys(e)))),e.ownPropertyNames=e=>{const t=[];if(e)if(e.prototype)t.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(e)));else{const n=Object.getPrototypeOf(e);t.push(...Object.getOwnPropertyNames(n))}return t.filter(e=>"constructor"!==e)},e.protoTypeName=e=>{let t=[];if(e){const n=Object.getPrototypeOf(e);t=Object.keys(n)||[]}return t.filter(e=>"constructor"!==e)},e.protoTypes=e=>{const t=[];if(e){const n=Object.getPrototypeOf(e);(Object.keys(n)||[]).filter(e=>"constructor"!==e).forEach(e=>{t.push(n[e])})}return t},e.seal=e=>Object.seal(e),e.isPrototypeOfTarget=(e,t)=>!(!e||!t)&&Object.prototype.isPrototypeOf.call(e.prototype,t),e.prototypeOfDepth=(e,t)=>{let n=e;const r=[];if(t)do{if(n=Object.getPrototypeOf(n),n?.constructor===t)break;r.push(n)}while(n);return r},e.allProtoType=e=>{const t=(e,n=[])=>(e.prototype&&(n.push(e),t(Object.getPrototypeOf(e),n)),n);return t(e)},e.prototypeOf=e=>Object.getPrototypeOf(e),e.prototypeKeyMap=e=>{const t=new Map;if(e){const n=Object.getPrototypeOf(e);(Object.keys(n)||[]).filter(e=>"constructor"!==e).forEach(e=>{t.set(n[e],e)})}return t},e.prototypeName=(t,n)=>e.prototypeKeyMap(t).get(n),e.pickRandomKey=e=>{const t=Object.keys(e);return t[Math.floor(Math.random()*t.length)]},e.pickRandomValue=e=>{const t=Object.keys(e);return e[t[Math.floor(Math.random()*t.length)]]},e.pickRandomKeyValue=e=>{const t=Object.keys(e),n=t[Math.floor(Math.random()*t.length)];return{key:n,value:e[n]}},e.keyValues=e=>Object.keys(e).map(t=>({key:t,value:e[t]})),e.entries=e=>Object.entries(e),e.values=e=>Object.values(e),e.keys=e=>Object.keys(e),e.keyLength=t=>e.keys(t).length,e.toDeleteUndefinedAndNull=(e,t)=>{const n=e=>Array.isArray(e)?e.filter(e=>null!=e).map(n):e&&"object"==typeof e?t?.deep?Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t).map(([e,t])=>[e,n(t)])):Object.fromEntries(Object.entries(e).filter(([e,t])=>null!=t)):e;return n(e)},function(e){e.isFunctionScript=e=>e.trim().startsWith("function"),e.isArrowFunctionScript=e=>/^\s*\([^)]*\)\s*=>/.test(e),e.toOptionalChainPath=t=>{if(!t)return"";if(t.trim().startsWith("{")&&t.trim().endsWith("}"))return t;if(e.isFunctionScript(t)||e.isArrowFunctionScript(t))return t;if(t.includes(" ? ")&&t.includes(" : ")){const e=t.split(/(\s+\?\s+|\s+:\s+)/).map((e,t)=>{if(0===t){const t=e.match(/[^?.[\]]+|\[[^\]]*\]/g);if(t&&t.length>1)return t.join("?.")}return e});return e.join("")}if(t.includes("(")){const n=[];let r=t,i=0;const a=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let o;for(;null!==(o=a.exec(t));){const t=o[0],a=o[1],s=o[2],c=`__FUNC_CALL_${i}__`,u=`${a}?.(${s?e.toOptionalChainPath(s):""})`;n.push({original:t,processed:u,placeholder:c}),r=r.replace(t,c),i++}const s=r.match(/[^?.[\]]+|\[[^\]]*\]/g);let c="";c=s&&s.length>1?s.join("?."):r;for(const e of n)c=c.replace(e.placeholder,e.processed);return c}const n=t.match(/[^?.[\]]+|\[[^\]]*\]/g);return n?n.join("?."):t},e.removeOptionalChainOperator=e=>e?e.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const t=e=>{const t=[],n=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let r,i=0;const a=e.match(n);if(a&&(a?.index??0)>0)t.push(e.substring(0,a.index)),i=a.index;else if(!a&&e.length>0)return t.push(e),t;for(;null!==(r=n.exec(e));){if(r.index>i){const n=e.substring(i,r.index);n.startsWith(".")?t.push(n.substring(1)):t.push(n)}r[1]?t.push(r[1]):r[2]?t.push(parseInt(r[2],10)):r[4]&&t.push(r[4]),i=n.lastIndex}if(i<e.length){const n=e.substring(i);n.startsWith(".")?t.push(n.substring(1)):t.push(n)}return t};e.to=t=>{const n={};return Object.entries(t).forEach(([t,r])=>{e.set(n,t,r)}),n},e.set=(e,n,r)=>{const i=t(n);let a=e;for(let e=0;e<i.length;e++){const t=i[e];if(e===i.length-1)a[t]=r;else{const n=i[e+1];if("number"==typeof n){if(Array.isArray(a[t])||(a[t]=[]),Array.isArray(a[t]))for(;a[t].length<=n;)a[t].push({})}else"object"==typeof a[t]&&null!==a[t]||(a[t]={});a=a[t]}}},e.get=(e,n,r)=>{const i=t(n);let a=e;for(let e=0;e<i.length;e++){const t=i[e];if(null==a)return r;if("object"!=typeof a||null===a||!(t in a))return r;a=a[t]}return a},e.deletePath=(e,n)=>{const r=t(n);if(0===r.length)return!1;let i=e;for(let e=0;e<r.length-1;e++){const t=r[e];if(null==i)return!1;if("object"!=typeof i||null===i||!(t in i))return!1;i=i[t]}const a=r[r.length-1];return null!==i&&"object"==typeof i&&a in i&&(Array.isArray(i)&&"number"==typeof a?i.splice(a,1):delete i[a],!0)},e.availablePath=(e,t)=>{const n=[],r=e=>"number"==typeof e?"["+e+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(e)?e:"['"+e+"']",i=(e,a,o)=>{null!==e&&"object"==typeof e&&(o.has(e)||(o.add(e),Array.isArray(e)?e.forEach((e,s)=>{const c=r(s),u=a?`${a}${c}`:c;t&&!t(u,e)||n.push(u),i(e,u,o)}):Object.keys(e).forEach(s=>{const c=r(s);let u;u=c.startsWith("[")?a?`${a}${c}`:c:a?`${a}.${c}`:c,t&&!t(u,e[s])||n.push(u),i(e[s],u,o)})))};return i(e,"",new Set),n},e.detectPathFromScript=(e,t)=>{const n=new Set;class r{constructor(e){this.prefix=e,this.usingVars=n}set(e,t,n,r){return!0}get(e,t,n){if("symbol"==typeof t)return this.createSafeProxy(this.prefix);let r;const i=String(t);return r=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,r&&this.usingVars.add(r),this.createSafeProxy(r)}apply(e,t,n){return this.createSafeProxy(this.prefix)}createSafeProxy(e){const t=new r(e);return new Proxy(()=>{},{get:(n,r,i)=>r===Symbol.toPrimitive?()=>"":"valueOf"===r?()=>t.createSafeProxy(e):"toString"===r?()=>"":t.get(n,r,i),set:t.set.bind(t),apply:t.apply.bind(t)})}}const i={window:new Proxy(()=>{},new r("window")),document:new Proxy(()=>{},new r("document")),console:new Proxy(()=>{},new r("console"))},a=new Proxy(()=>{},new r("this"));try{new Function("window","document","console",`"use strict"; ${e}; `).call(a,i.window,i.document,i.console)}catch(e){console.error("detectPathFromScript error:",e)}if(t?.excludeThis){const e=new Set;return n.forEach(t=>{"this"!==t&&(t.startsWith("this.")?e.add(t.substring(5)):e.add(t))}),e}return n}}(t=e.Path||(e.Path={})),e.toDeleteKey=(t,n)=>{const r={...t};return e.deleteKey(r,n),r},e.deleteKey=(e,t)=>{t.filter(e=>(0,i.O)(e)).forEach(t=>{delete e[t]})},function(e){e.evalReturn=(t,n={})=>{let r="",i="";return"object"==typeof t?(r=t.bodyScript,i=t.returnScript):i=t,e.eval(`${r}; return ${i} `,n)},e.eval=(e,t={})=>{try{return Function(`"use strict"; ${e} `).bind(t)()}catch(t){return console.error("eval error",t),void console.error(e)}}}(n=e.Script||(e.Script={}))}(r||(r={}))},3205:(e,t,n)=>{n.d(t,{O:()=>a});var r=n(7553),i=n(9244);class a extends r.M{constructor(e){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(e)}copyObj(){return new a({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(e){if(e){this.x=e.x??this.x,this.y=e.y??this.y,this.z=e.z??this.z,this.volume=e.volume??this.volume,this.mass=e.mass??this.mass,this.e=e.e??this.e,this.rotate=e.rotate??this.rotate,this.width=e.width??this.width,this.height=e.height??this.height,this.transform=[...e.transform??this.transform],this.color={...e.color??this.color};const t=e.data??this.data;this.data=t?{...t}:void 0}}setObj(e){if(e){this.x=e.x??0,this.y=e.y??0,this.z=e.z??0,this.volume=e.volume??0,this.mass=e.mass??0,this.e=e.e??0,this.rotate=e.rotate??0,this.width=e.width??0,this.height=e.height??0,this.transform=[...e.transform??[1,0,0,1,0,0]],this.color={...e.color??{r:0,g:0,b:0,a:255}};const t=e.data;this.data=t?{...t}:void 0}}toRect(){return new i.r(this.x,this.y,this.width,this.height)}}},3599:(e,t,n)=>{n.d(t,{z:()=>r});var r,i=n(8741),a=n(7553),o=n(3205),s=n(4068);!function(e){e.getMinByObjectArray=(e,t)=>{let n;if(t&&e&&e.length>0){n=e[0][t];for(let r=1;r<e.length;r++)n=Math.min(n,e[r][t])}return n},e.hypot=(...e)=>Math.hypot(...e),e.pythagorean=(e,t)=>Math.sqrt(e*e+t*t),e.getMaxByObjectArray=(e,t)=>{let n;if(t&&e&&e.length>0){n=e[0][t];for(let r=1;r<e.length;r++)n=Math.max(n,e[r][t])}return n},e.sum=e=>e.reduce((e,t)=>e+t,0),e.avg=t=>t.length>0?e.sum(t)/t.length:0,e.minMax=(e,t)=>Math.min(Math.max(e,t.min),t.max),e.max=e=>e.length>0?Math.max(...e):void 0,e.min=e=>e.length>0?Math.min(...e):void 0,e.getSumByObjectArray=(e,t)=>{let n=0;if(t&&e&&e.length>0)for(let r=0;r<e.length;r++)n+=e[r][t];return n},e.radians=(e,{type:t="degreeAngle"})=>"ratio"===t?2*e*Math.PI:"percent"===t?e/100*2*Math.PI:e/180*Math.PI,e.degrees=(e,{type:t="degreeAngle"})=>"ratio"===t?360*e:"percent"===t?e/100*360:180*e/Math.PI,e.ratio=(e,t,n=1)=>n*(t/e),e.getBetweenLength=(e,t)=>t-e,e.getPercentByTotal=(e,t)=>t/e*100,e.getRatioByTotal=(e,t)=>t/e,e.getValueByTotalInPercent=(e,t)=>e*t/100,e.getValueByTotalInRatio=(e,t)=>e*t,e.getValuePercentUp=(e,t)=>e*(1+t/100),e.getValueRatioUp=(e,t)=>e*(1+t),e.getValuePercentDown=(e,t)=>e*(1-t/100),e.getValueRatioDown=(e,t)=>e*(1-t),e.beziers=(t,n)=>{const r=new Array(n).fill(void 0);for(let i=0;i<r.length;i++)r[i]=e.bezier(t,n,i);return r},e.bezier=(t,n,r)=>{if(t&&t.length>0){const o=t.map(e=>new a.M(e.x,e.y,e.z)),s=[];return o.reduce((e,t)=>{const i=e.toSub(t).div(n).mult(r+1);return s.push(e.toSub(i)),t}),s.length<=1?s[0]:e.bezier(s.map(e=>new i.M(e)),n,r)}return new a.M},e.cubicBezier=function(t,n,r){if(t.start instanceof o.O&&t.end instanceof o.O){const i=e.cubicBezier({start:t.start.x,end:t.end.x},n,r),a=e.cubicBezier({start:t.start.y,end:t.end.y},n,r),s=e.cubicBezier({start:t.start.z,end:t.end.z},n,r),c=e.cubicBezier({start:t.start.volume,end:t.end.volume},n,r),u=e.cubicBezier({start:t.start.mass,end:t.end.mass},n,r),p=e.cubicBezier({start:t.start.e,end:t.end.e},n,r),l=e.cubicBezier({start:t.start.rotate,end:t.end.rotate},n,r),d=e.cubicBezier({start:t.start.width,end:t.end.width},n,r),f=e.cubicBezier({start:t.start.height,end:t.end.height},n,r),h=e.cubicBezier({start:t.start.transform[0],end:t.end.transform[0]},n,r),y=e.cubicBezier({start:t.start.transform[1],end:t.end.transform[1]},n,r),m=e.cubicBezier({start:t.start.transform[2],end:t.end.transform[2]},n,r),v=e.cubicBezier({start:t.start.transform[3],end:t.end.transform[3]},n,r),g=e.cubicBezier({start:t.start.transform[4],end:t.end.transform[4]},n,r),x=e.cubicBezier({start:t.start.transform[5],end:t.end.transform[5]},n,r),b=e.cubicBezier({start:t.start.color.r??0,end:t.end.color.r??0},n,r),w=e.cubicBezier({start:t.start.color.g??0,end:t.end.color.g??0},n,r),O=e.cubicBezier({start:t.start.color.b??0,end:t.end.color.b??0},n,r),_=e.cubicBezier({start:t.start.color.a??255,end:t.end.color.a??255},n,r);return i.map((e,t)=>{const n=new o.O({x:e,y:a[t],z:s[t]});return n.volume=c[t],n.mass=u[t],n.e=p[t],n.rotate=l[t],n.width=d[t],n.height=f[t],n.transform=[h[t],y[t],m[t],v[t],g[t],x[t]],n.color={r:b[t],g:w[t],b:O[t],a:_[t]},n})}if(t.start instanceof i.M&&t.end instanceof i.M){const a=e.cubicBezier({start:t.start.x,end:t.end.x},n,r),o=e.cubicBezier({start:t.start.y,end:t.end.y},n,r),s=e.cubicBezier({start:t.start.z,end:t.end.z},n,r);return a.map((e,t)=>new i.M(e,o[t],s[t]))}const{start:a,end:s}=t,{frame:c}=n;let{p1x:u,p1y:p,p2x:l,p2y:d}=Array.isArray(r)?{p1x:r[0],p1y:r[1],p2x:r[2],p2y:r[3]}:r;u="random"===u?Math.random():u,p="random"===p?Math.random():p,l="random"===l?Math.random():l,d="random"===d?Math.random():d;const f=[],h=s-a,y=e=>{const t=Number(e*e),n=Number(t*e),r=Number(1-e),i=Number(r*r);return 0*Number(i*r)+3*i*e*Number(p)+3*r*t*Number(d)+1*n},m=c+1;for(let e=1;e<m;e++){const t=a+h*y(e/m);f.push(t)}return f},e.diff=(e,t)=>Math.abs(e-t),e.distSqToLineSegment=(e,t,n)=>{const r=(t.x-n.x)**2+(t.y-n.y)**2;if(0===r)return(e.x-t.x)**2+(e.y-t.y)**2;let i=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;i=Math.max(0,Math.min(1,i));const a=t.x+i*(n.x-t.x),o=t.y+i*(n.y-t.y);return(e.x-a)**2+(e.y-o)**2},e.rotatePoint=(e,t,n)=>{const r=e.x-t.x,i=e.y-t.y,a=r*Math.cos(n)-i*Math.sin(n),o=r*Math.sin(n)+i*Math.cos(n);return new s.P(a+t.x,o+t.y)}}(r||(r={}))},4068:(e,t,n)=>{n.d(t,{P:()=>r});class r{constructor(e,t){"object"==typeof e?(this.x=e.x??0,this.y=e.y??0):(this.x=e??0,this.y=t??0)}copy(){return new r(this.x,this.y)}}},5275:(e,t,n)=>{n.d(t,{s:()=>r});const r=e=>!!e&&"number"==typeof e.width&&"number"==typeof e.height},7553:(e,t,n)=>{n.d(t,{M:()=>a});var r=n(8741),i=n(4068);class a{constructor(e,t,n){e instanceof r.M?(this.x=e.x,this.y=e.y,this.z=e.z):"object"==typeof e?(this.x=e.x??0,this.y=e.y??0,this.z=e.z??0):(this.x=e??0,this.y=t??0,this.z=n??0)}set(e,t=0,n=0){return e instanceof a||e instanceof r.M?this.set(e.x||0,e.y||0,e.z||0):(this.x=e,this.y=t,this.z=n),this}get(){return new a(this.x,this.y,this.z)}mag(){const e=this.x,t=this.y,n=this.z;return Math.sqrt(e*e+t*t+n*n)}add(e,t=0,n=0){e instanceof a||e instanceof r.M?(this.x+=e.x,this.y+=e.y,this.z+=e.z):(this.x+=e,this.y+=t,this.z+=n)}toAdd(e,t){return new a(e.x+t.x,e.y+t.y,e.x+t.y)}sub(e,t=0,n=0){e instanceof a||e instanceof r.M?(this.x-=e.x,this.y-=e.y,this.z-=e.z):(this.x-=e,this.y-=t,this.z-=n)}toSub(e){const t=this;return new a(t.x-e.x,t.y-e.y,t.z-e.z)}mult(e){return e instanceof a||e instanceof r.M?(this.x*=e.x,this.y*=e.y,this.z*=e.z):(this.x*=e,this.y*=e,this.z*=e),this}toMult(e){const t=this;return new a(t.x*=e.x,t.y*=e.y,t.z*=e.z)}div(e){return e instanceof a||e instanceof r.M?(this.x/=e.x,this.y/=e.y,this.z/=e.z):(this.x/=e,this.y/=e,this.z/=e),this}toDiv(e){const t=this.get();return t.x/=e,t.y/=e,t.z/=e,t}dist(e){const t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return Math.sqrt(t*t+n*n+r*r)}toDist(e){const t=this,n=t.x-e.x,r=t.y-e.y,i=t.z-e.z;return Math.sqrt(n*n+r*r+i*i)}dot(e,t,n){return e instanceof a||e instanceof r.M?this.x*e.x+this.y*e.y+this.z*e.z:this.x*e+this.y*t+this.z*n}cross(e){const t=this.x,n=this.y,r=this.z;return new a(n*e.z-e.y*r,r*e.x-e.z*t,t*e.y-e.x*n)}normalize(){const e=this.mag();e>0&&this.div(e)}limit(e){this.mag()>e&&(this.normalize(),this.mult(e))}heading2D(){return-Math.atan2(-this.y,this.x)}random2D(){return this.fromAngle(Math.random()*(2*Math.PI))}fromAngle(e,t=1){return new a(t*Math.cos(e),t*Math.sin(e),0)}fromAngles(e,t,n=1){const r=Math.cos(t),i=Math.sin(t),o=Math.cos(e),s=Math.sin(e);return new a(n*s*i,-n*o,n*s*r)}array(){return[this.x,this.y,this.z]}toPoint3D(){return new r.M(this.x,this.y,this.z)}toPoint2D(){return new i.P(this.x,this.y)}copy(){return new a(this.x,this.y,this.z)}toString(){return"["+this.x+", "+this.y+", "+this.z+"]"}}},7855:(e,t,n)=>{n.d(t,{O:()=>r});const r=e=>null!=e},8741:(e,t,n)=>{n.d(t,{M:()=>a});var r=n(7553),i=n(4068);class a extends i.P{constructor(e,t,n){e instanceof r.M?(super(e.x,e.y),this.z=e.z):"object"==typeof e?(super({x:e.x??0,y:e.y??0}),this.z=e.z??0):(super(e,t),this.z=n??0)}copy(){return new a(this.x,this.y,this.z)}}},9244:(e,t,n)=>{n.d(t,{r:()=>o});var r=n(4068),i=n(3599),a=n(5275);class o{constructor(e,t,n=0,i=0){(0,a.s)(e)?(this._start=new r.P(0,0),this._width=e.width,this._height=e.height):"object"==typeof e&&"object"==typeof t?(this._start=e instanceof r.P?e:new r.P(e.x,e.y),this.end=t instanceof r.P?t:new r.P(t.x,t.y)):"object"==typeof e&&"number"==typeof t?(this._start=e instanceof r.P?e:new r.P(e.x,e.y),this._width=t,this._height=n):"number"==typeof e&&"number"==typeof t&&(this._start=new r.P(e,t),this._width=n,this._height=i)}valueLinkControl(e){let t,n=!1;var r;return"object"==typeof(r=e)&&"value"in r&&"noLink"in r?(t=e.value,n=e.noLink):t=e,{value:t,noLink:n}}get width(){return this._width}get height(){return this._height}get start(){return this._start.copy()}set width(e){this.setWidth(e)}setWidth(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=i.z.getPercentByTotal(this._width,t);this._width=t,this.applyWidthPercentLinks({value:r,noLink:n})}set height(e){this.setHeight(e)}setHeight(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=i.z.getPercentByTotal(this._height,t);this._height=t,this.applyHeightPercentLinks({value:r,noLink:n})}set start(e){let{value:t,noLink:n}=this.valueLinkControl(e);const a=new r.P({x:i.z.getPercentByTotal(this._start.x,t.x),y:i.z.getPercentByTotal(this._start.y,t.y)});this._start=t,this.applyStartPercentLinks({value:a,noLink:n})}setWidthFromEnd(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=i.z.getPercentByTotal(this.start.x,t);this._start.x=this.end.x-t,this.applyStartXPercentLinks({value:r,noLink:n})}set widthFromEnd(e){this.setWidthFromEnd(e)}setHeightFromEnd(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=this.end.y-t,a=i.z.getPercentByTotal(this.start.y,r);this._start.y=r,this.applyStartYPercentLinks({value:a,noLink:n})}set heightFromEnd(e){this.setHeightFromEnd(e)}setWidthFromCenter(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=this.center.x-t/2,a=i.z.getPercentByTotal(this.start.x,r);this._start.x=r,this.applyStartXPercentLinks(a)}set widthFromCenter(e){this.setWidthFromCenter(e)}setHeightFromCenter(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=this.center.y-t/2,a=i.z.getPercentByTotal(this.start.y,r);this._start.y=r,this.applyStartYPercentLinks(a)}set heightFromCenter(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=this.center.y-t/2,a=i.z.getPercentByTotal(this.start.y,r);this._start.y=r,this.applyStartYPercentLinks(a)}set x(e){this.setX(e)}setX(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=t-this._start.x,a=i.z.getPercentByTotal(this.width,r);this._start.x=t,this.applyStartXPercentLinks({value:a,noLink:n})}set y(e){this.setY(e)}setY(e){let{value:t,noLink:n}=this.valueLinkControl(e);const r=t-this._start.y,a=i.z.getPercentByTotal(this.height,r);this._start.y=t,this.applyStartYPercentLinks({value:a,noLink:n})}applyWidthPercentLinks(e){let{value:t,noLink:n}=this.valueLinkControl(e);!this.linkRects||"boolean"==typeof n&&n||Array.from(this.linkRects.values()).filter(e=>"boolean"==typeof n||e!==n).forEach(e=>{e.setWidthByWidthPercent({value:t,noLink:this})})}applyHeightPercentLinks(e){let{value:t,noLink:n}=this.valueLinkControl(e);!this.linkRects||"boolean"==typeof n&&n||Array.from(this.linkRects.values()).filter(e=>"boolean"==typeof n||e!==n).forEach(e=>{e.setHeightByHeightPercent({value:t,noLink:this})})}applyStartPercentLinks(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.applyStartXPercentLinks({value:t.x,noLink:n}),this.applyStartYPercentLinks({value:t.y,noLink:n})}applyStartXPercentLinks(e){let{value:t,noLink:n}=this.valueLinkControl(e);!this.linkRects||"boolean"==typeof n&&n||Array.from(this.linkRects.values()).filter(e=>"boolean"==typeof n||e!==n).forEach(e=>{e.addXByWidthPercent({value:t,noLink:this})})}applyStartYPercentLinks(e){let{value:t,noLink:n}=this.valueLinkControl(e);!this.linkRects||"boolean"==typeof n&&n||Array.from(this.linkRects.values()).filter(e=>"boolean"==typeof n||e!==n).forEach(e=>{e.addYByHeightPercent({value:t,noLink:this})})}hasLink(e){return this.linkRects?.has(e)}isLinked(){return!!this.linkRects?.size}addLink(...e){this.linkRects??(this.linkRects=new Set),e.filter(e=>!this.linkRects?.has(e)).forEach(e=>{this.linkRects?.add(e),e.addLink(this)})}setLinks(e){this.unLinkAll(),this.addLink(...e)}unLinkAll(){this.linkRects&&(Array.from(this.linkRects.values()).forEach(e=>{this.unLink(e)}),this.linkRects.clear())}unLink(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.linkRects&&this.linkRects.delete(t),n||t.unLink({value:this,noLink:this})}addWidthPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setWidth({value:this.width+i.z.getValueByTotalInPercent(this.width,t),noLink:n})}addHeightPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setHeight({value:this.height+i.z.getValueByTotalInPercent(this.height,t),noLink:n})}addWidthRatio(e){this.width=this.width+i.z.getValueByTotalInRatio(this.width,e)}addHeightRatio(e){this.height=this.height+i.z.getValueByTotalInRatio(this.height,e)}addXPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,t),noLink:n})}addYPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,t),noLink:n})}addXRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,t),noLink:n})}addYRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,t),noLink:n})}set endX(e){const t=e-this.x;this.width=t}set endXPercent(e){this.endX=i.z.getValueByTotalInPercent(this.width,e)}set endYPercent(e){this.endY=i.z.getValueByTotalInPercent(this.height,e)}set endY(e){this.height=e-this.y}set end(e){this.width=e.x-this.x,this.height=e.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(e){const t=this.copy();return t.start=e,t}toRotate(e,{rotatePoint:t=this.center,type:n="degreeAngle"}){const a=i.z.radians(e,{type:n}),o=t instanceof r.P?t:new r.P(t.x,t.y);return[this.leftTop,this.rightTop,this.rightBottom,this.leftBottom].map(e=>i.z.rotatePoint(e,o,a))}get center(){return new r.P(this.start.x+this.width/2,this.start.y+this.height/2)}get end(){return new r.P(this.start.x+this.width,this.start.y+this.height)}get leftTop(){return this.start.copy()}get leftBottom(){return new r.P(this.start.x,this.end.y)}get rightTop(){return new r.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(e){return i.z.getPercentByTotal(this.width,e)}getWidthRatio(e){return i.z.getRatioByTotal(this.width,e)}getWidthByPercent(e){return i.z.getValueByTotalInPercent(this.width,e)}getWidthByRatio(e){return i.z.getValueByTotalInRatio(this.width,e)}getHeightPercent(e){return i.z.getPercentByTotal(this.height,e)}getHeightRatio(e){return i.z.getRatioByTotal(this.height,e)}getHeightByPercent(e){return i.z.getValueByTotalInPercent(this.height,e)}getHeightByRatio(e){return i.z.getValueByTotalInRatio(this.height,e)}getXPercent(e){return i.z.getPercentByTotal(this.width,e-this.x)}getXRatio(e){return i.z.getRatioByTotal(this.width,e-this.x)}getXByPercent(e){return this.x+i.z.getValueByTotalInPercent(this.width,e)}getXByRatio(e){return this.x+i.z.getValueByTotalInRatio(this.width,e)}getYPercent(e){return i.z.getPercentByTotal(this.height,e-this.y)}getYRatio(e){return i.z.getRatioByTotal(this.height,e-this.y)}getYByPercent(e){return this.y+i.z.getValueByTotalInPercent(this.height,e)}getYByRatio(e){return this.y+i.z.getValueByTotalInRatio(this.height,e)}getPercent(e){return new r.P(this.getXPercent(e.x),this.getYPercent(e.y))}toScaleByWidth(e){const t=this.height/this.width;return new o(this.x,this.y,e,e*t)}toScaleByHeight(e){const t=this.width/this.height;return new o(this.x,this.y,e*t,e)}toRatio(e){return new o(this.getXRatio(e.x),this.getYRatio(e.y),this.getWidthRatio(e instanceof o?e.width:e.w),this.getHeightRatio(e instanceof o?e.height:e.h))}getRatio(e){return new r.P(this.getXRatio(e.x),this.getYRatio(e.y))}getByPercent(e){return new r.P(this.getXByPercent(e.x),this.getYByPercent(e.y))}getByRatio(e){return new r.P(this.getXByRatio(e.x),this.getYByRatio(e.y))}getDiffX(e){return e-this.x}getDiffY(e){return e-this.y}getDiffLeft(e){this.getDiffX(e)}getDiffTop(e){this.getDiffY(e)}getDiffRight(e){return e-this.end.x}getDiffBottom(e){return e-this.end.y}getDiffWidth(e){return e-this.width}getDiffHeight(e){return e-this.height}toDiff(e){return new o(e.x-this.x,e.y-this.y,e.width-this.width,e.height-this.height)}setXByWidthPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:i.z.getValueByTotalInPercent(this.width,t),noLink:n})}set xByWidthPercent(e){this.setXByWidthPercent(e)}setXByWidthRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:i.z.getValueByTotalInRatio(this.width,t),noLink:n})}set xByWidthRatio(e){this.setXByWidthRatio(e)}setYByHeightPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:i.z.getValueByTotalInPercent(this.height,t),noLink:n})}set yByHeightPercent(e){this.setYByHeightPercent(e)}setYByHeightRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:i.z.getValueByTotalInRatio(this.height,t),noLink:n})}set yByHeightRatio(e){this.setYByHeightRatio(e)}addXByWidthPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,t),noLink:n})}addXByWidthRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,t),noLink:n})}addYByHeightPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,t),noLink:n})}addYByHeightRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,t),noLink:n})}setWidthByWidthPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setWidth({value:i.z.getValueByTotalInPercent(this.width,t),noLink:n})}set widthByWidthPercent(e){this.setWidthByWidthPercent(e)}setWidthByWidthRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setWidth({value:i.z.getValueByTotalInRatio(this.width,t),noLink:n})}set widthByWidthRatio(e){this.setWidthByWidthRatio(e)}setHeightByHeightPercent(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setHeight({value:i.z.getValueByTotalInPercent(this.height,t),noLink:n})}set heightByHeightPercent(e){this.setHeightByHeightPercent(e)}setHeightByHeightRatio(e){let{value:t,noLink:n}=this.valueLinkControl(e);this.setHeight({value:i.z.getValueByTotalInRatio(this.height,t),noLink:n})}set heightByHeightRatio(e){this.setHeightByHeightRatio(e)}copyByPercent(e,t){return new o(this.x,this.y,i.z.getValueByTotalInPercent(this.width,e),i.z.getValueByTotalInPercent(this.height,t??e))}copyByRatio(e,t){return new o(this.x,this.y,i.z.getValueByTotalInRatio(this.width,e),i.z.getValueByTotalInRatio(this.height,t??e))}isIn(e){return e instanceof o?this.isIn(e.start)&&this.isIn(e.end):e.x>=this.start.x&&e.x<=this.end.x&&e.y>=this.start.y&&e.y<=this.end.y}isOut(e){return e instanceof o?!this.isOverlap(e):!this.isIn(e)}isOverlap(e){return e instanceof o?!(this.endX<e.x||this.x>e.endX||this.endY<e.y||this.y>e.endY):this.isIn(e)}toString(){return`x:${this.x}, y:${this.y}, width: ${this.width}, height: ${this.height}`}}},9284:(e,t,n)=>{var r;n.d(t,{U:()=>r}),function(e){e.isArrowFunction=e=>"function"==typeof e&&void 0===e.prototype&&!e.toString().startsWith("class"),e.isPlainObject=e=>null!==e&&"object"==typeof e&&e.constructor===Object,e.isFrozen=e=>Object.isFrozen(e),e.isSealed=e=>Object.isSealed(e),e.isFrozenOrSealed=t=>e.isFrozen(t)||e.isSealed(t),e.isFrozenAndSealed=t=>e.isFrozen(t)&&e.isSealed(t),e.isNotFrozen=e=>!Object.isFrozen(e),e.isNotSealed=e=>!Object.isSealed(e),e.isNotFrozenOrSealed=t=>!e.isFrozen(t)&&!e.isSealed(t),e.isNotFrozenAndSealed=t=>!e.isFrozen(t)||!e.isSealed(t),e.isNullOrUndefined=e=>null==e||void 0===e,e.isConstructor=e=>"function"==typeof e&&void 0!==e.prototype&&e.prototype.constructor===e,e.isFunction=t=>"function"==typeof t&&!e.isConstructor(t),e.isNullish=t=>e.isNotNullish(t),e.isNotNullish=t=>Array.isArray(t)||e.isString(t)?t.length>0:t instanceof Set||t instanceof Map?t.size>0:"object"==typeof t&&null!==t?Object.keys(t).length>0:null!=t,e.isNotNullUndefined=e=>null!=e,e.isNull=e=>null===e,e.isUndefined=e=>void 0===e,e.isArray=t=>!e.isNullOrUndefined(t)&&"[object Array]"===Object.prototype.toString.call(t).trim(),e.isStringNumber=e=>"number"==typeof e?!isNaN(e):"string"==typeof e&&""!==e.trim()&&!isNaN(Number(e)),e.isNumber=t=>!e.isNullOrUndefined(t)&&"[object Number]"===Object.prototype.toString.call(t).trim(),e.isIterator=e=>null!=e&&"function"==typeof e[Symbol.iterator],e.isString=t=>!e.isNullOrUndefined(t)&&"[object String]"===Object.prototype.toString.call(t).trim(),e.isObject=t=>!e.isNullOrUndefined(t)&&"[object Object]"===Object.prototype.toString.call(t).trim(),e.isMap=t=>!e.isNullOrUndefined(t)&&"[object Map]"===Object.prototype.toString.call(t).trim(),e.isEmpty=t=>!!e.isNullOrUndefined(t)||(e.isArray(t)?0===t.length:e.isString(t)?0===t.trim().length:e.isMap(t)?0===t.size:!!e.isObject(t)&&0===Object.keys(t).length),e.isSet=e=>e instanceof Set,e.isNullishFiltered=e=>Array.isArray(e)?e.every(e=>null!=e):null!=e,e.isFalsyFiltered=e=>Array.isArray(e)?e.every(e=>e):!!e,e.includeValue=(e,t)=>Object.values(e).includes(t),e.includeKey=(e,t)=>Object.keys(e).includes(t),e.lastConsonantLetter=e=>(e.charCodeAt(e.length-1)-44032)%28>0,e.inRange=(e,t,n)=>t<=e&&e<=n,e.isBase64=e=>{let t=e;const n=e.split(";base64,");if(n.length>1)t=n[1];else if(e.startsWith("data:")){const n=e.indexOf(",");n>-1&&(t=e.substring(n+1))}return""===t||t.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}}(r||(r={}))}},b={};function w(e){var t=b[e];if(void 0!==t)return t.exports;var n=b[e]={exports:{}};return x[e](n,n.exports,w),n.exports}w.d=(e,t)=>{for(var n in t)w.o(t,n)&&!w.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},w.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var O={};w.d(O,{T:()=>_});var _,k=w(9284),j=w(4068),M=w(8741),S=w(9244),P=w(2676);!function(e){e.objToGetURL=e=>Object.keys(e).reduce((t,n,r)=>`${t}${0!==r?"&":""}${n}=${e[n]}`,""),e.mapToJson=e=>JSON.stringify(Array.from(e.entries()).reduce((e,[t,n])=>(e[t]=n,e),{})),e.jsonToMap=e=>new Map(JSON.parse(e)),e.decodeURIString=e=>decodeURIComponent(e),e.objToStrMap=e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},e.jsonToStrMap=t=>e.objToStrMap(JSON.parse(t)),e.strToObject=e=>JSON.parse(e),e.objToJson=e=>JSON.stringify(e),e.objToMap=e=>{const t=new Map;return Object.keys(e).forEach(n=>{t.set(n,e[n])}),t},e.mapToObj=e=>{const t={};return e.forEach((e,n)=>{t[n]=e}),t},e.snakeToCamelCase=e=>e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),e.camelToSnakeCase=e=>e.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),e.toFormData=function(e){const t=new FormData;for(const n in e)t.append(n,e[n]);return t},e.toObject=function(t,n){if(t instanceof URLSearchParams){const e={};return t.forEach((t,r)=>{n?.firstValue&&void 0===e[r]?e[r]=t:n?.firstValue||(e[r]?Array.isArray(e[r])?e[r].push(t):e[r]=[e[r],t]:e[r]=t)}),e}if(t instanceof FormData){const e=e=>{const t={};for(const n of e.keys()){const r=e.getAll(n);t[n]=r.length>1?r:r[0]}return t};return e(t)}if(t&&"function"==typeof t[Symbol.iterator])return Object.fromEntries(t);if(Array.isArray(t))return Object.fromEntries(t);if(k.U.isMap(t)){const n=t;t=e.mapToObj(n)}if(k.U.isArray(t)){const n=t;for(let t=0;t<n.length;t++)n[t]=e.toObject(n[t])}if(k.U.isObject(t))for(const n in t)t[n]=e.toObject(t[n]);return t},e.toArray=e=>e instanceof Set?Array.from(e.values()):Array.isArray(e)?e:e?[e]:[],e.flatArray=(...e)=>e.flatMap(e=>e instanceof Object&&Symbol.iterator in e?Array.from(e):[e]),e.iteratorToArray=e=>Array.from(e),e.toJson=t=>{const n=e.toObject(t);return JSON.stringify(n)},e.concatenateToAttribute=t=>e.concatenateToString(t,"="," ","'"),e.concatenateToParameter=t=>e.concatenateToString(t,"=","&",""),e.concatenateToString=(e,t="=",n=" ",r="")=>{const i=[];for(const n in e){const a=e[n];a&&i.push(n.toString()+t+r+a+r)}return i.join(n)},e.specialCharsToEscape=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),e.decodeHTMLEscape=e=>e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&#x2F;/g,"/"),e.copyObject=(e,t={})=>({...e,...t}),e.copyArrayWithAddition=(e,t)=>[...e,...t||[]],e.hexToInt=e=>(e.startsWith("#")&&(e=e.slice(1)),3===e.length&&(e=e.split("").map(e=>e+e).join("")),parseInt(e,16)),e.toHex=e=>(e<0&&(e=4294967295+e+1),(e=Number(e.toFixed(0))).toString(16).padStart(2,"0").toUpperCase()),e.toHexColor=t=>`#${e.toHex(t.r??0)}${e.toHex(t.g??0)}${e.toHex(t.b??0)}${e.toHex(t.a??255)}`,e.avgColor=e=>{const t=e.reduce((e,t)=>(e.r+=t.r??0,e.g+=t.g??0,e.b+=t.b??0,e.a+=t.a??0,e),{r:0,g:0,b:0,a:0});return{r:Math.floor(t.r/e.length),g:Math.floor(t.g/e.length),b:Math.floor(t.b/e.length),a:Math.floor(t.a/e.length)}},e.toRGBA=e=>{e??(e="#000000FF");const t=e.replace("#","");return{r:parseInt(t.slice(0,2)||"0",16),g:parseInt(t.slice(2,4)||"0",16),b:parseInt(t.slice(4,6)||"0",16),a:t.length>6?parseInt(t.slice(6,8)||"0",16):255}},e.minMaxCenterAvg=e=>{const t={},n=P.B.uniqueKeys(e);for(const r of n){const n=e.map(e=>e[r]),i=Math.min(...n),a=Math.max(...n),o=(i+a)/2,s=n.reduce((e,t)=>e+t,0)/n.length;t[r]={min:i,max:a,center:o,avg:s,diff:a-i}}return t},e.minMaxCenterRectAvg2D=e=>{const t=new j.P(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),n=new j.P(Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);let r=new j.P(0,0);e.forEach(e=>{t.x=Math.min(t.x,e.x),t.y=Math.min(t.y,e.y),n.x=Math.max(n.x,e.x),n.y=Math.max(n.y,e.y),r.x+=e.x,r.y+=e.y});const i=new j.P((t.x+n.x)/2,(t.y+n.y)/2),a=new j.P(r.x/e.length,r.y/e.length),o=new S.r(t.x,t.y,n.x-t.x,n.y-t.y);return{min:t,max:n,center:i,avg:a,minMaxRect:o}},e.minMaxCenterAvg3D=e=>{const t=new M.M(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),n=new M.M(Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE);let r=new M.M(0,0,0);e.forEach(e=>{t.x=Math.min(t.x,e.x),t.y=Math.min(t.y,e.y),t.z=Math.max(t.z,e.z),n.x=Math.max(n.x,e.x),n.y=Math.max(n.y,e.y),n.z=Math.max(n.z,e.y),r.x+=e.x,r.y+=e.y,r.z+=e.z});const i=new M.M((t.x+n.x)/2,(t.y+n.y)/2,(t.z+n.z)/2),a=new M.M(r.x/e.length,r.y/e.length,r.z/e.length);return{min:t,max:n,center:i,avg:a}},e.roundRectRadiiToFullRadii=e=>e?1===e.length?[e[0]??0,e[0]??0,e[0]??0,e[0]??0]:2===e.length?[e[0]??0,e[1]??0,e[0]??0,e[1]??0]:3===e.length?[e[0]??0,e[1]??0,e[2]??0,e[1]??0]:e:[0,0,0,0],e.toArrayDirectionChange=e=>{if(!e||0===e.length||!e[0]||0===e[0].length)return[];const t=[],n=e[0].length,r=e.length;for(let i=0;i<n;i++){const n=[];for(let t=0;t<r;t++)n.push(e[t][i]);t.push(n)}return t},e.groupByMap=(e,t)=>e.reduce((e,n)=>{const r=t(n),i=e.get(r)||[];return i.push(n),e.set(r,i),e},new Map),e.groupByObject=(t,n)=>{const r=e.groupByMap(t,n);return Object.fromEntries(r)},e.toURLSearchParams=e=>{const t=new URLSearchParams;if("string"==typeof e)new URLSearchParams(e).forEach((e,n)=>{t.append(n,e)});else if("object"==typeof e){const n=e instanceof URLSearchParams?e.entries():Array.isArray(e)?e:Object.entries(e);for(const[e,r]of Array.from(n))Array.isArray(r)?r.forEach(n=>t.append(e,n)):t.append(e,r)}return t},e.stringJsonToKeyPairs=e=>Array.from(e.matchAll(/(\w+):\s*([^,}]+)/g)).map(e=>({key:e[1],value:e[2]}))}(_||(_={}));const E=O.T;var T=n(426);class A{constructor(e,t,n){e instanceof A?(this.req=e.req,this.res=e.res,this.config=n):(this.req=e,this.res=t,this.config=n)}get reqSocket(){return this.req.socket}get reqCookieMap(){let e=this.reqHeader(r.HttpHeaders.Cookie)??"";Array.isArray(e)&&(e=e.join(";"));const t=new Map;return e.split(";").map(e=>e.trim().split("=")).forEach(e=>{t.set(e[0],e[1])}),t}reqCookieGet(e){return this.reqCookieMap.get(e)}get reqRemoteAddress(){const e=this.req.headers["x-forwarded-for"];let t=this.req.socket.remoteAddress;return Array.isArray(e)?t=e.join(",").split(",").shift():"string"==typeof e&&(t=e.split(",").shift()),t}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(e){return new d.URL(`${e?.scheme??"http"}://${e?.host?e?.host:this.reqHeaderFirst(r.HttpHeaders.Host)??"localhost"}${this.req.url??""}`)}get reqUrlSearchParamTuples(){return Array.from(this.reqUrlObj().searchParams)}get reqUrlSearchParams(){return this.reqUrlObj().searchParams}get reqUrlSearchParamsObj(){const e=this.reqUrlObj().searchParams;return E.toObject(e)}get reqPathSearchParamUrl(){const e=this.reqUrlObj();return e.pathname+(e.searchParams.toString()?"?"+e.searchParams.toString():"")}get reqReadable(){return this.req.readable}get reqIntent(){return new l(this.reqPathSearchParamUrl)}reqHasContentTypeHeader(e){return(this.reqHeaderFirst(r.HttpHeaders.ContentType)??"").toLowerCase().indexOf(e.toLocaleLowerCase())>-1}reqHasAcceptHeader(e){return(this.reqHeaderFirst(r.HttpHeaders.Accept)??"").toLowerCase().indexOf(e.toLocaleLowerCase())>-1}reqBodyData(){return new Promise((e,t)=>{if(this.reqReadable){const n=[];this.req.on("data",e=>n.push(e)),this.req.on("error",e=>t(e)),this.req.on("end",()=>{this.reqBodyChunk=f.Buffer.concat(n),e(this.reqBodyChunk)})}else e(this.reqBodyChunk??f.Buffer.alloc(0))})}resBodyData(){return this.resWriteChunk}async reqBodyMultipartFormDataObject(){const e=await this.reqBodyMultipartFormData(),t={};for(const n of e)if(n.isFile)t[n.name]=await g.i.writeFile(n.value,{originalName:n.filename});else{const e=t[n.name];Array.isArray(e)?e.push(n.value):t[n.name]="string"==typeof e?[e,n.value]:n.value}return t}reqBodyMultipartFormData(){return new Promise((e,t)=>{const n=this.req.headers["content-type"];if(!n||!n.startsWith("multipart/form-data"))return t(new Error("Invalid Content-Type. Expected multipart/form-data."));const r=n.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!r)return t(new Error("Boundary not found in Content-Type header."));const i=r[1]||r[2];if(!i)return t(new Error("Failed to extract boundary."));const a=f.Buffer.from(`--${i}`),o=f.Buffer.from("\r\n"),s=f.Buffer.from("\r\n\r\n"),c=[];let u=0;this.req.on("data",e=>{c.push(e),u+=e.length}),this.req.on("error",e=>{t(e)}),this.req.on("end",()=>{if(0===u)return e([]);const n=f.Buffer.concat(c,u),r=[];let i=0,p=n.indexOf(a,i);if(-1===p)return t(new Error("Initial boundary not found."));for(i=p+a.length,n.slice(i,i+o.length).equals(o)&&(i+=o.length);i<n.length;){const e=n.indexOf(a,i);if(-1===e)break;let t=e;t>o.length&&n.slice(t-o.length,t).equals(o)&&(t-=o.length);const c=n.slice(i,t),u=c.indexOf(s);if(-1===u){if(console.warn("Skipping malformed part: no header/body separator found."),i=e+a.length,n.slice(i,i+o.length).equals(o)&&(i+=o.length),"--"===n.slice(i,i+2).toString())break;continue}const p=c.slice(0,u),l=c.slice(u+s.length),d=p.toString("utf-8"),f={};d.split("\r\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.substring(0,t).trim().toLowerCase(),r=e.substring(t+1).trim();f[n]=r}});const h=f["content-disposition"];if(!h){if(console.warn("Skipping part: no Content-Disposition header."),i=e+a.length,n.slice(i,i+o.length).equals(o)&&(i+=o.length),"--"===n.slice(i,i+2).toString())break;continue}const y=h.match(/name="([^"]+)"/i),m=h.match(/filename="([^"]+)"/i),v=y?y[1]:null,g=m?m[1]:null,x=f["content-type"]||null;if(v){const e=!!g,t={name:v,isFile:e,filename:g,contentType:x,value:e?l:l.toString("utf-8")};r.push(t)}else console.warn("Skipping part: 'name' not found in Content-Disposition.");if(i=e+a.length,n.slice(i,i+o.length).equals(o)&&(i+=o.length),"--"===n.slice(i,i+2).toString())break}e(r)})})}async reqBodyStringData(){return(await this.reqBodyData()).toString()}async reqBodyJsonData(){return JSON.parse(await this.reqBodyStringData())}async reqBodyFormUrlData(){const e=await this.reqBodyStringData(),t={};return Array.from(new d.URLSearchParams(e).entries()).forEach(([e,n])=>{const r=t[e];Array.isArray(r)?r.push(n):t[e]="string"==typeof r?[r,n]:n}),t}async reqBodyReqFormUrlBody(){const e=await this.reqBodyFormUrlData();return Object.assign(new h.ReqFormUrlBody,e)}async reqBodyReqJsonBody(){const e=await this.reqBodyStringData();return Object.assign(new y.ReqJsonBody,e?JSON.parse(e):{})}resBodyJsonData(){const e=T.T.toString(this.resBodyData());return e?JSON.parse(e):null}resBodyStringData(){return T.T.toString(this.resBodyData())}reqMethod(){return this.req.method?.toUpperCase()}reqHeader(e){return this.req.headers[e.toLowerCase()]}get reqHost(){return this.reqHeaderFirst(r.HttpHeaders.Host)}get reqHeaderObj(){const e=new m.ReqHeader;return Object.entries(this.req.headers).forEach(([t,n])=>{e[t]=n}),e}reqHeaderFirst(e,t){const n=this.req.headers[e.toLowerCase()];return n&&Array.isArray(n)?n[0]??t:n??t}reqAuthorizationHeader(){return this.reqHeaderFirst(r.HttpHeaders.Authorization)}reqRefreshTokenHeader(){return this.reqHeaderFirst(r.HttpHeaders.Authorization)}resStatusCode(e){return e?(this.res.statusCode=e,new R(this.req,this.res,this.config,this.res.statusCode)):this.res.statusCode}resHeader(e){return this.res.getHeader(e.toLowerCase())}resHeaderFirst(e,t){const n=this.res.getHeader(e.toLowerCase());return n&&Array.isArray(n)?n[0]??t:n??t}async reqSession(){return this.config.sessionManager?(await this.config.sessionManager.session(this)).dataSet.data:Promise.reject(new Error("Not SessionManager"))}reqSessionSet(e,t){this.reqSession[e]=t}reqSessionGet(e){const t=this.reqSession;if(t)return t[e]}resSetStatusCode(e){return this.res.statusCode=e,this.createRequestResponseChain(this.res.statusCode)}resWrite(e,t="utf8"){return this.resWriteChunk=e,this.createRequestResponseChain(this.resWriteChunk)}resWriteJson(e,t="utf8"){return this.resWrite(JSON.stringify(e),t)}resSetHeader(e,t){return this.createRequestResponseChain(this.res.setHeader(e.toLowerCase(),t))}resAddHeader(e,t){const n=this.res.getHeader(e.toLowerCase()),r=Array.isArray(n)?n.concat(t):n?[n.toString(),...[].concat(t)]:t;return this.createRequestResponseChain(this.res.setHeader(e.toLowerCase(),r))}resSetHeaders(e){return Object.entries(e).forEach(([e,t])=>this.resSetHeader(e,t)),this.createRequestResponseChain()}resAddHeaders(e){return Object.entries(e).forEach(([e,t])=>this.resAddHeader(e,t)),this.createRequestResponseChain()}async resEndChunk(){const e=this.reqHeaderFirst(r.HttpHeaders.AcceptEncoding);let t=this.resWriteChunk;e?.includes("gzip")&&(t=await(0,v.gzip)(t),this.resSetHeader(r.HttpHeaders.ContentEncoding,"gzip")),this.res.end(t)}async resEnd(e){this.resWriteChunk=e??this.resWriteChunk,this.req.readable?(await this.reqBodyData(),await this.resEndChunk()):await this.resEndChunk()}resWriteHead(e,t){return this.createRequestResponseChain(this.res.writeHead(e,t))}resWriteHeadEnd(e,t){this.createRequestResponseChain(this.res.writeHead(e,t)),this.res.end()}resIsDone(){return this.res.finished||this.res.writableEnded||this.res.headersSent}createRequestResponseChain(e){const t=new R(this.req,this.res,this.config,e);return t.resWriteChunk=this.resWriteChunk,t.reqBodyChunk=this.reqBodyChunk,t}}class R extends A{constructor(e,t,n,r){super(e,t,n),this.result=r}}},3587:(e,t,n)=>{"use strict";n.d(t,{HttpServerOption:()=>s});var r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},i={};r.d(i,{t:()=>a});class a{constructor({rootRouter:e,container:t,cache:n,advice:r=[],proxy:i,using:a}={}){this.rootRouter=e,this.container=t,this.advice=r,this.proxy=i,this.using=a,this.cache=n}addAdvicce(e){this.advice??(this.advice=[]),this.advice.push(e)}setAdvice(...e){return this.advice=e,this}}const o=i.t;class s extends o{constructor({serverOption:e,listen:t,filters:n,requestEndPoints:r,closeEndPoints:i,errorEndPoints:a,sessionOption:o,globalAdvice:c,fileUploadTempPath:u,noSuchRouteEndPointMappingThrow:p,transactionManagerFactory:l}={},d){super(d),this.serverOption=e,this.listen=Object.assign({port:s.DEFAULT_PORT,hostname:s.DEFAULT_HOSTNAME},t),this.filters=n,this.requestEndPoints=r,this.closeEndPoints=i,this.errorEndPoints=a,this.sessionOption=Object.assign({key:"SBSESSIONID",expiredTime:18e5},o),this.globalAdvice=c,this.fileUploadTempPath=u,this.noSuchRouteEndPointMappingThrow=p,this.transactionManagerFactory=l}get hostname(){return this.listen.hostname}get port(){return this.listen.port}get protocol(){return this.isSecure?"https":"http"}get address(){return`${this.protocol}://${this.hostname}:${this.port}`}get isSecure(){return this.serverOption&&"key"in this.serverOption&&"cert"in this.serverOption}}s.DEFAULT_PORT=8081,s.DEFAULT_HOSTNAME="127.0.0.1"},3770:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},3779:(e,t,n)=>{"use strict";n.d(t,{Resource:()=>l});var r=n(9896),i=n.n(r),a=n(6928),o=n.n(a),s=n(5506),c=n(3500),u=n(229),p=n(7953);class l{constructor(e,t=process.cwd()){this.path=e,this.rootPath=t}get absolutePath(){return this.path instanceof c.RequestResponse?o().join(this.rootPath,this.path.reqUrlObj().pathname):this.path instanceof URL?o().join(this.rootPath,this.path.pathname):o().join(this.rootPath,this.path)}get conTentType(){return s.lookup(this.absolutePath).toString()}get data(){return new Promise((e,t)=>{i().readFile("",(n,r)=>{n&&t(n);const i=r.toString();e(i)})})}async write(e){e.resStatusCode(u.HttpStatus.Ok),e.resSetHeader(p.HttpHeaders.ContentType,this.conTentType),await e.resEnd(i().readFileSync(this.absolutePath))}}},4374:(e,t,n)=>{"use strict";n.d(t,{BadRequestError:()=>a});var r=n(758),i=n(229);class a extends r.HttpError{constructor({status:e=i.HttpStatus.BadRequest,message:t="Bad Request"}={}){super({status:e,message:t})}}},4843:(e,t,n)=>{"use strict";n.d(t,{NotFoundError:()=>a});var r=n(758),i=n(229);class a extends r.HttpError{constructor({status:e=i.HttpStatus.NotFound,message:t="Not Found"}={}){super({status:e,message:t})}}},5053:(e,t,n)=>{"use strict";n.d(t,{d:()=>c});var r={9771:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return H(Object.create(null))}:s?function(){return H({__proto__:null})}:function(){return H({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(z(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(){if("function"==typeof Uint8Array){var e=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):a(e,16),e}return a(new Array(16),16)}();e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:function(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}},getProvider:c,setProvider:function(e,t,n){if(!u(n))throw new Error("Metadata provider not registered.");var r=c(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}};return o;function s(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=C(i);;){var s=I(o);if(!s)return;var c=F(s);if(c.isProviderFor(t,a))return B(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function c(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=s(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function u(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&P(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=C(i.keys()),o=0;;){var s=I(a);if(!s)return n.length=o,n;var c=F(s);try{n[o]=c}catch(e){try{B(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=L(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=U(t,n,!1);return!j(r)&&P(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=L(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=U(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){U(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=L(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=U(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e){return!!e}function E(e){var t=function(e){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var t="string",n=N(e,i);if(void 0!==n){var r=n.call(e,t);if(S(r))throw new TypeError;return r}return function(e){var t,n,r=e.toString;if(A(r)&&!S(n=r.call(e)))return n;if(A(t=e.valueOf)&&!S(n=t.call(e)))return n;throw new TypeError}(e)}(e);return"symbol"==typeof t?t:function(e){return""+e}(t)}function T(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"function"==typeof e}function R(e){return"function"==typeof e}function z(e,t){return e===t||e!=e&&t!=t}function N(e,t){var n=e[t];if(null!=n){if(!A(n))throw new TypeError;return n}}function C(e){var t=N(e,a);if(!A(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function F(e){return e.value}function I(e){var t=e.next();return!t.done&&t}function B(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function U(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function H(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!T(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=E(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=E(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=E(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=E(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=E(n)),!S(t))throw new TypeError;j(n)||(n=E(n));var r=U(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o,s={};a.d(s,{d:()=>o}),a(9771),function(e){e.getParameterTypes=(e,t)=>t?Reflect.getMetadata("design:paramtypes",e,t)||[]:Reflect.getMetadata("design:paramtypes",e)||[],e.getReturnType=(e,t)=>Reflect.getMetadata("design:returntype",e,t),e.getType=(e,t)=>t?Reflect.getMetadata("design:type",e,t):Reflect.getMetadata("design:type",e),e.getMetadata=(e,t,n)=>n?Reflect.getMetadata(e,t,n):Reflect.getMetadata(e,t),e.getMetadataKeys=e=>Reflect.getMetadataKeys(e),e.getOwnMetadata=(e,t,n)=>n?Reflect.getOwnMetadata(e,t,n):Reflect.getOwnMetadata(e,t),e.getMetadatas=t=>e.getMetadataKeys(t).map(n=>e.getMetadata(n,t)),e.metadata=(e,t)=>Reflect.metadata(e,t),e.defineMetadata=(e,t,n,r)=>{r&&Reflect.defineMetadata?Reflect.defineMetadata(e,t,n,r):Reflect.defineMetadata&&Reflect.defineMetadata(e,t,n)}}(o||(o={}));const c=s.d},5118:(e,t,n)=>{"use strict";var r;n.d(t,{HttpMethod:()=>r}),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e.PATCH="PATCH",e.HEAD="HEAD",e.OPTIONS="OPTIONS",e.TRACE="TRACE",e.CONNECT="CONNECT"}(r||(r={}))},5161:(e,t,n)=>{"use strict";n.d(t,{SessionManager:()=>r.SessionManager});var r=n(1262)},5468:(e,t,n)=>{"use strict";n.d(t,{InternalServerError:()=>a});var r=n(758),i=n(229);class a extends r.HttpError{constructor({status:e=i.HttpStatus.InternalServerError,message:t="Internal Server Error"}={}){super({status:e,message:t})}}},5506:(e,t,n)=>{"use strict";var r,i,a,o=n(6439),s=n(6928).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,u=/^text\//i;function p(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&o[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!u.test(t[1]))&&"UTF-8"}t.charset=p,t.charsets={lookup:p},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var r=t.charset(n);r&&(n+="; charset="+r.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),r=n&&t.extensions[n[1].toLowerCase()];return!(!r||!r.length)&&r[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=s("x."+e).toLowerCase().substr(1);return n&&t.types[n]||!1},t.types=Object.create(null),r=t.extensions,i=t.types,a=["nginx","apache",void 0,"iana"],Object.keys(o).forEach(function(e){var t=o[e],n=t.extensions;if(n&&n.length){r[e]=n;for(var s=0;s<n.length;s++){var c=n[s];if(i[c]){var u=a.indexOf(o[i[c]].source),p=a.indexOf(t.source);if("application/octet-stream"!==i[c]&&(u>p||u===p&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}})},5797:(e,t,n)=>{"use strict";var r;n.d(t,{InjectSituationType:()=>r}),function(e){e.TransactionManager=Symbol("TransactionManager")}(r||(r={}))},5884:(e,t,n)=>{"use strict";var r=n(3106);e.exports={gzip:function(e,t){return new Promise(function(n,i){r.gzip(e,t,function(e,t){e?i(Error(e)):n(t)})})},ungzip:function(e,t){return new Promise(function(n,i){r.gunzip(e,t,function(e,t){e?i(Error(e)):n(t)})})}}},6079:(e,t,n)=>{"use strict";n.d(t,{HttpHeaders:()=>r.HttpHeaders,HttpMethod:()=>i.HttpMethod,HttpStatus:()=>a.HttpStatus,Mimes:()=>o.Mimes});var r=n(7953),i=n(5118),a=n(229),o=n(1946)},6377:(e,t,n)=>{"use strict";n.d(t,{ReqFormUrlBody:()=>r});class r{}},6439:(e,t,n)=>{e.exports=n(3770)},6799:(e,t,n)=>{"use strict";n.d(t,{CrossDomainHeaderEndPoint:()=>r.CrossDomainHeaderEndPoint,HeaderEndPoint:()=>i.HeaderEndPoint});var r=n(115),i=n(3367)},6928:e=>{"use strict";e.exports=require("path")},7016:e=>{"use strict";e.exports=require("url")},7035:(e,t,n)=>{"use strict";n.d(t,{OpenApi3Filter:()=>o});var r=n(229),i=n(9108);const a={openapi:"3.0.1",info:{title:"SimpleBootHttpServer OpenApi3",description:"SimpleBootHttpServer OpenApi3"}};class o{constructor(e,t){this.config=e,this.openApiConfig=Object.assign(Object.assign({},a),t??{})}async onInit(e){}async proceedBefore({rr:e,app:t}){if(e.reqUrl===this.config.path){const n=t.routerManager.routingMap(),a={paths:{}};return Object.entries(n).filter(([e,t])=>"string"!=typeof t).forEach(([e,t])=>{const n=a.paths[e]={};(0,i.getUrlMappings)(t)?.forEach(e=>{n[e.config.method]={summary:e.propertyKey,description:e.propertyKey}})}),e.resWriteJson(Object.assign(Object.assign({},this.openApiConfig),a)).resStatusCode(r.HttpStatus.Ok).resEnd(),!1}return!0}async proceedAfter({rr:e,app:t}){return!0}}},7522:(e,t,n)=>{"use strict";n.d(t,{CacheFilter:()=>r.CacheFilter,HttpStatusFilter:()=>i.HttpStatusFilter,OpenApi3Filter:()=>a.OpenApi3Filter,ResourceFilter:()=>o.ResourceFilter,ThrowFilter:()=>s.ThrowFilter});var r=n(9822),i=n(8864),a=n(7035),o=n(14),s=n(2240)},7578:(e,t,n)=>{"use strict";n.d(t,{HeaderData:()=>r});class r{constructor(e,t){this.header=e,this.data=t}}},7953:(e,t,n)=>{"use strict";var r;n.d(t,{HttpHeaders:()=>r}),function(e){e.ContentLength="Content-Length",e.ContentType="Content-Type",e.ContentEncoding="Content-Encoding",e.Accept="Accept",e.Authorization="Authorization",e.CacheControl="Cache-Control",e.Connection="Connection",e.Date="Date",e.Host="Host",e.Pragma="Pragma",e.Trailer="Trailer",e.TransferEncoding="Transfer-Encoding",e.Upgrade="Upgrade",e.Via="Via",e.Warning="Warning",e.AcceptCharset="Accept-Charset",e.AcceptEncoding="Accept-Encoding",e.AcceptLanguage="Accept-Language",e.AccessControlAllowOrigin="Access-Control-Allow-Origin",e.AccessControlAllowMethods="Access-Control-Allow-Methods",e.AccessControlAllowHeaders="Access-Control-Allow-Headers",e.AccessControlExposeHeaders="Access-Control-Expose-Headers",e.Expect="Expect",e.From="From",e.MaxForwards="Max-Forwards",e.Referer="Referer",e.UserAgent="User-Agent",e.Cookie="Cookie",e.SetCookie="Set-Cookie",e.Cookie2="Cookie2",e.SetCookie2="Set-Cookie2",e.Location="Location",e.IfModifiedSince="If-Modified-Since",e.IfUnmodifiedSince="If-Unmodified-Since",e.IfMatch="If-Match",e.IfNoneMatch="If-None-Match",e.IfRange="If-Range",e.Allow="Allow",e.Server="Server"}(r||(r={}))},8864:(e,t,n)=>{"use strict";n.d(t,{HttpStatusFilter:()=>r});class r{constructor(e){this.httpStatus=e}async proceedBefore({rr:e,app:t}){return e.resStatusCode(this.httpStatus),e.resEnd(),!1}async proceedAfter({rr:e,app:t}){return!0}async onInit(e){}}},9108:(e,t,n)=>{"use strict";n.d(t,{CONNECT:()=>C,DELETE:()=>v,GET:()=>l,HEAD:()=>E,OPTIONS:()=>M,PATCH:()=>_,POST:()=>h,PUT:()=>b,TRACE:()=>R,UrlMapping:()=>c,UrlMappingSituationType:()=>r,getCONNECT:()=>F,getCONNECTS:()=>I,getDELETE:()=>g,getDELETES:()=>x,getGET:()=>d,getGETS:()=>f,getHEAD:()=>T,getHEADS:()=>A,getOPTIONS:()=>S,getOPTIONSS:()=>P,getPATCH:()=>k,getPATCHS:()=>j,getPOST:()=>y,getPOSTS:()=>m,getPUT:()=>w,getPUTS:()=>O,getTRACE:()=>z,getTRACES:()=>N,getUrlMapping:()=>u,getUrlMappings:()=>p}),n(9771);var r,i=n(5053),a=n(5118);!function(e){e.REQ_JSON_BODY="SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY",e.REQ_FORM_URL_BODY="SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY"}(r||(r={}));const o=Symbol("MappingMetadataKey"),s=(e,t,n,r)=>{const a=i.d.getMetadata(o,t.constructor)??[];a.push({propertyKey:n,config:e}),i.d.defineMetadata(o,a,t.constructor),i.d.defineMetadata(o,e,t,n)};function c(e,t,n){if(!t||!n)return(t,n,r)=>{s(e,t,n,r)};s({method:a.HttpMethod.GET},e,t,n)}const u=(e,t)=>i.d.getMetadata(o,e,t),p=e=>(null!=e&&"object"==typeof e&&(e=e.constructor),i.d.getMetadata(o,e));function l(e,t,n){if(!t||!n)return(t,n,r)=>{e.method=a.HttpMethod.GET,s(e,t,n,r)};s({method:a.HttpMethod.GET},e,t,n)}const d=(e,t)=>u(e,t),f=e=>p(e)?.filter(e=>e.config?.method.toUpperCase()===a.HttpMethod.GET);function h(e,t,n){if(!t||!n)return(t,n,r)=>{e.method=a.HttpMethod.POST,s(e,t,n,r)};s({method:a.HttpMethod.POST},e,t,n)}const y=(e,t)=>u(e,t),m=e=>p(e)?.filter(e=>e.config?.method.toUpperCase()===a.HttpMethod.POST);function v(e,t,n){if(!t||!n)return(t,n,r)=>{e.method=a.HttpMethod.DELETE,s(e,t,n,r)};s({method:a.HttpMethod.DELETE},e,t,n)}const g=(e,t)=>u(e,t),x=e=>p(e)?.filter(e=>e.config?.method.toUpperCase()===a.HttpMethod.DELETE);function b(e,t,n){if(!t||!n)return(t,n,r)=>{e.method=a.HttpMethod.PUT,s(e,t,n,r)};s({method:a.HttpMethod.PUT},e,t,n)}const w=(e,t)=>u(e,t),O=e=>p(e)?.filter(e=>e.config?.method.toUpperCase()===a.HttpMethod.PUT);function _(e,t,n){if(!t||!n)return(t,n,r)=>{e.method=a.HttpMethod.PATCH,s(e,t,n,r)};s({method:a.HttpMethod.PATCH},e,t,n)}const k=(e,t)=>u(e,t),j=e=>p(e)?.filter(e=>e.config?.method.toUpperCase()===a.HttpMethod.GET);function M(e,t,n){if(!t||!n)return(t,n,r)=>{e.method=a.HttpMethod.OPTIONS,s(e,t,n,r)};s({method:a.HttpMethod.OPTIONS},e,t,n)}const S=(e,t)=>u(e,t),P=e=>p(e)?.filter(e=>e.config?.method.toUpperCase()===a.HttpMethod.OPTIONS);function E(e,t,n){if(!t||!n)return(t,n,r)=>{e.method=a.HttpMethod.HEAD,s(e,t,n,r)};s({method:a.HttpMethod.HEAD},e,t,n)}const T=(e,t)=>u(e,t),A=e=>p(e)?.filter(e=>e.config?.method.toUpperCase()===a.HttpMethod.GET);function R(e,t,n){if(!t||!n)return(t,n,r)=>{e.method=a.HttpMethod.TRACE,s(e,t,n,r)};s({method:a.HttpMethod.TRACE},e,t,n)}const z=(e,t)=>u(e,t),N=e=>p(e)?.filter(e=>e.config?.method.toUpperCase()===a.HttpMethod.TRACE);function C(e,t,n){if(!t||!n)return(t,n,r)=>{e.method=a.HttpMethod.CONNECT,s(e,t,n,r)};s({method:a.HttpMethod.CONNECT},e,t,n)}const F=(e,t)=>u(e,t),I=e=>p(e)?.filter(e=>e.config?.method.toUpperCase()===a.HttpMethod.CONNECT)},9183:(e,t,n)=>{"use strict";n.d(t,{PatchJson:()=>I});var r={};n.r(r),n.d(r,{JsonPatchError:()=>v,_areEquals:()=>S,applyOperation:()=>O,applyPatch:()=>_,applyReducer:()=>k,deepClone:()=>g,getValueByPointer:()=>w,validate:()=>M,validator:()=>j});var i={};n.r(i),n.d(i,{compare:()=>C,generate:()=>z,observe:()=>R,unobserve:()=>A});var a,o=(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=Object.prototype.hasOwnProperty;function c(e,t){return s.call(e,t)}function u(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var i in e)c(e,i)&&r.push(i);return r}function p(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function l(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function d(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function f(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function h(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(h(e[t]))return!0}else if("object"==typeof e)for(var r=u(e),i=r.length,a=0;a<i;a++)if(h(e[r[a]]))return!0;return!1}function y(e,t){var n=[e];for(var r in t){var i="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==i&&n.push(r+": "+i)}return n.join("\n")}var m=function(e){function t(t,n,r,i,a){var o=this.constructor,s=e.call(this,y(t,{name:n,index:r,operation:i,tree:a}))||this;return s.name=n,s.index=r,s.operation=i,s.tree=a,Object.setPrototypeOf(s,o.prototype),s.message=y(t,{name:n,index:r,operation:i,tree:a}),s}return o(t,e),t}(Error),v=m,g=p,x={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=w(n,this.path);r&&(r=p(r));var i=O(n,{op:"remove",path:this.from}).removed;return O(n,{op:"add",path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=w(n,this.from);return O(n,{op:"add",path:this.path,value:p(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:S(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},b={add:function(e,t,n){return l(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:x.move,copy:x.copy,test:x.test,_get:x._get};function w(e,t){if(""==t)return e;var n={op:"_get",path:t};return O(e,n),n.value}function O(e,t,n,r,i,a){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===i&&(i=!0),void 0===a&&(a=0),n&&("function"==typeof n?n(t,0,e,t.path):j(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=w(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=S(e,t.value),!1===o.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(n)throw new v("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",a,t,e);return o}r||(e=p(e));var s=(t.path||"").split("/"),c=e,u=1,d=s.length,h=void 0,y=void 0,m=void 0;for(m="function"==typeof n?n:j;;){if((y=s[u])&&-1!=y.indexOf("~")&&(y=f(y)),i&&("__proto__"==y||"prototype"==y&&u>0&&"constructor"==s[u-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===h&&(void 0===c[y]?h=s.slice(0,u).join("/"):u==d-1&&(h=t.path),void 0!==h&&m(t,0,e,h)),u++,Array.isArray(c)){if("-"===y)y=c.length;else{if(n&&!l(y))throw new v("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);l(y)&&(y=~~y)}if(u>=d){if(n&&"add"===t.op&&y>c.length)throw new v("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);if(!1===(o=b[t.op].call(t,c,y,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o}}else if(u>=d){if(!1===(o=x[t.op].call(t,c,y,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return o}if(c=c[y],n&&u<d&&(!c||"object"!=typeof c))throw new v("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",a,t,e)}}function _(e,t,n,r,i){if(void 0===r&&(r=!0),void 0===i&&(i=!0),n&&!Array.isArray(t))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=p(e));for(var a=new Array(t.length),o=0,s=t.length;o<s;o++)a[o]=O(e,t[o],n,!0,i,o),e=a[o].newDocument;return a.newDocument=e,a}function k(e,t,n){var r=O(e,t);if(!1===r.test)throw new v("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function j(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new v("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!x[e.op])throw new v("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new v("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new v('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new v("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&h(e.value))throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var i=e.path.split("/").length,a=r.split("/").length;if(i!==a+1&&i!==a)throw new v("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new v("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var o=M([{op:"_get",path:e.from,value:void 0}],n);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new v("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function M(e,t,n){try{if(!Array.isArray(e))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)_(p(t),p(e),n||!0);else{n=n||j;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof v)return e;throw e}}function S(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,i,a=Array.isArray(e),o=Array.isArray(t);if(a&&o){if((r=e.length)!=t.length)return!1;for(n=r;0!==n--;)if(!S(e[n],t[n]))return!1;return!0}if(a!=o)return!1;var s=Object.keys(e);if((r=s.length)!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!t.hasOwnProperty(s[n]))return!1;for(n=r;0!==n--;)if(!S(e[i=s[n]],t[i]))return!1;return!0}return e!=e&&t!=t}var P=new WeakMap,E=function(e){this.observers=new Map,this.obj=e},T=function(e,t){this.callback=e,this.observer=t};function A(e,t){t.unobserve()}function R(e,t){var n,r=function(e){return P.get(e)}(e);if(r){var i=function(e,t){return e.observers.get(t)}(r,t);n=i&&i.observer}else r=new E(e),P.set(e,r);if(n)return n;if(n={},r.value=p(e),t){n.callback=t,n.next=null;var a=function(){z(n)},o=function(){clearTimeout(n.next),n.next=setTimeout(a)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return n.patches=[],n.object=e,n.unobserve=function(){z(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},r.observers.set(t,new T(t,n)),n}function z(e,t){void 0===t&&(t=!1);var n=P.get(e.object);N(n.value,e.object,e.patches,"",t),e.patches.length&&_(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function N(e,t,n,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var a=u(t),o=u(e),s=!1,l=o.length-1;l>=0;l--){var f=e[y=o[l]];if(!c(t,y)||void 0===t[y]&&void 0!==f&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+d(y),value:p(f)}),n.push({op:"remove",path:r+"/"+d(y)}),s=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var h=t[y];"object"==typeof f&&null!=f&&"object"==typeof h&&null!=h&&Array.isArray(f)===Array.isArray(h)?N(f,h,n,r+"/"+d(y),i):f!==h&&(i&&n.push({op:"test",path:r+"/"+d(y),value:p(f)}),n.push({op:"replace",path:r+"/"+d(y),value:p(h)}))}}if(s||a.length!=o.length)for(l=0;l<a.length;l++){var y;c(e,y=a[l])||void 0===t[y]||n.push({op:"add",path:r+"/"+d(y),value:p(t[y])})}}}function C(e,t,n){void 0===n&&(n=!1);var r=[];return N(e,t,r,"",n),r}const F=Object.assign({},r,i,{JsonPatchError:m,deepClone:p,escapePathComponent:d,unescapePathComponent:f});class I{constructor(e){this.patch=e}apply(e){return F.applyPatch(e,this.patch).newDocument}}},9434:(e,t,n)=>{"use strict";n.d(t,{ReqHeader:()=>r});class r{}},9771:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",a=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!o&&!s,u={create:o?function(){return D(Object.create(null))}:s?function(){return D({__proto__:null})}:function(){return D({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},p=Object.getPrototypeOf(Function),l="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,N(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!N(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(N(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new l}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+o()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function a(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(){var e=function(e){if("function"==typeof Uint8Array){var t=new Uint8Array(e);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):a(t,e),t}return a(new Array(e),e)}(16);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),h=r?Symbol.for("@reflect-metadata:registry"):void 0,y=function(){var e;return!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[h]),j(e)&&(e=function(){var e,n,r,i;j(h)||void 0===t.Reflect||h in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new f;return{isProviderFor:function(e,t){var n=o.get(e);return!(j(n)||!n.has(t))||!!i(e,t).length&&(j(n)&&(n=new d,o.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}(t.Reflect));var a=new f,o={registerProvider:s,getProvider:u,setProvider:y};return o;function s(t){if(!Object.isExtensible(o))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(r):r=t;break;case r===t:break;default:void 0===i&&(i=new d),i.add(t)}}function c(t,a){if(!j(n)){if(n.isProviderFor(t,a))return n;if(!j(r)){if(r.isProviderFor(t,a))return n;if(!j(i))for(var o=F(i);;){var s=B(o);if(!s)return;var c=I(s);if(c.isProviderFor(t,a))return L(o),c}}}if(!j(e)&&e.isProviderFor(t,a))return e}function u(e,t){var n,r=a.get(e);return j(r)||(n=r.get(t)),j(n)?(j(n=c(e,t))||(j(r)&&(r=new l,a.set(e,r)),r.set(t,n)),n):n}function p(e){if(j(e))throw new TypeError;return n===e||r===e||!j(i)&&i.has(e)}function y(e,t,n){if(!p(n))throw new Error("Metadata provider not registered.");var r=u(e,t);if(r!==n){if(!j(r))return!1;var i=a.get(e);j(i)&&(i=new l,a.set(e,i)),i.set(t,n)}return!0}}()),!j(h)&&S(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,h,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),m=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!j(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!j(i)&&E(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!j(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(j(i))return n;for(var a=F(i.keys()),o=0;;){var s=B(a);if(!s)return n.length=o,n;var c=I(s);try{n[o]=c}catch(e){try{L(a)}finally{throw e}}o++}},OrdinaryDeleteMetadata:function(e,n,i){var a=r(n,i,!1);if(j(a))return!1;if(!a.delete(e))return!1;if(0===a.size){var o=t.get(n);j(o)||(o.delete(i),0===o.size&&t.delete(o))}return!0}};return y.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(j(o)){if(!a)return;o=new l,t.set(r,o),s=!0}var c=o.get(i);if(j(c)){if(!a)return;if(c=new l,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),new Error("Wrong provider for target.")}return c}}(y);function v(e,t,n){if(g(e,t,n))return!0;var r=U(t);return!M(r)&&v(e,r,n)}function g(e,t,n){var r=H(t,n,!1);return!j(r)&&E(r.OrdinaryHasOwnMetadata(e,t,n))}function x(e,t,n){if(g(e,t,n))return b(e,t,n);var r=U(t);return M(r)?void 0:x(e,r,n)}function b(e,t,n){var r=H(t,n,!1);if(!j(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function w(e,t,n,r){H(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function O(e,t){var n=_(e,t),r=U(e);if(null===r)return n;var i=O(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new d,o=[],s=0,c=n;s<c.length;s++){var u=c[s];a.has(u)||(a.add(u),o.push(u))}for(var p=0,l=i;p<l.length;p++)u=l[p],a.has(u)||(a.add(u),o.push(u));return o}function _(e,t){var n=H(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function k(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function j(e){return void 0===e}function M(e){return null===e}function S(e){return"object"==typeof e?null!==e:"function"==typeof e}function P(e,t){switch(k(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",r=C(e,i);if(void 0!==r){var a=r.call(e,n);if(S(a))throw new TypeError;return a}return function(e,t){if("string"===t){var n=e.toString;if(R(n)&&!S(i=n.call(e)))return i;if(R(r=e.valueOf)&&!S(i=r.call(e)))return i}else{var r;if(R(r=e.valueOf)&&!S(i=r.call(e)))return i;var i,a=e.toString;if(R(a)&&!S(i=a.call(e)))return i}throw new TypeError}(e,"default"===n?"number":n)}function E(e){return!!e}function T(e){var t=P(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function A(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function R(e){return"function"==typeof e}function z(e){return"function"==typeof e}function N(e,t){return e===t||e!=e&&t!=t}function C(e,t){var n=e[t];if(null!=n){if(!R(n))throw new TypeError;return n}}function F(e){var t=C(e,a);if(!R(t))throw new TypeError;var n=t.call(e);if(!S(n))throw new TypeError;return n}function I(e){return e.value}function B(e){var t=e.next();return!t.done&&t}function L(e){var t=e.return;t&&t.call(e)}function U(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===p)return t;if(t!==p)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function H(e,t,n){var r=y.getProvider(e,t);if(!j(r))return r;if(n){if(y.setProvider(e,t,m))return m;throw new Error("Illegal state.")}}function D(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(j(n)){if(!A(e))throw new TypeError;if(!z(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!j(r)&&!M(r)){if(!z(r))throw new TypeError;t=r}}return t}(e,t)}if(!A(e))throw new TypeError;if(!S(t))throw new TypeError;if(!S(r)&&!j(r)&&!M(r))throw new TypeError;return M(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=(0,e[i])(t,n,r);if(!j(a)&&!M(a)){if(!S(a))throw new TypeError;r=a}}return r}(e,t,n=T(n),r)}),e("metadata",function(e,t){return function(n,r){if(!S(n))throw new TypeError;if(!j(r)&&!function(e){switch(k(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;w(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!S(n))throw new TypeError;return j(r)||(r=T(r)),w(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=T(n)),v(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=T(n)),g(e,t,n)}),e("getMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=T(n)),x(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!S(t))throw new TypeError;return j(n)||(n=T(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=T(t)),O(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!S(e))throw new TypeError;return j(t)||(t=T(t)),_(e,t)}),e("deleteMetadata",function(e,t,n){if(!S(t))throw new TypeError;if(j(n)||(n=T(n)),!S(t))throw new TypeError;j(n)||(n=T(n));var r=H(t,n,!1);return!j(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))},9822:(e,t,n)=>{"use strict";n.d(t,{CacheFilter:()=>o});var r=n(3055),i=n(426),a=n(889);class o{constructor(e){this.config=e,this.storage=new Map,e.config.cacheDir&&e.config.startUpClean&&r.i.deleteSync(e.config.cacheDir,{options:{recursive:!0}})}async onInit(e){}async proceedBefore({rr:e,app:t,carrier:n}){var a,s,c;const u=this.config.filter?.(e,t);if(!u)return!0;if(this.config.config.cacheDir&&r.i.mkdirSync(this.config.config.cacheDir,{recursive:!0}),!this.cacheConfig&&this.config.config.cacheDir)try{this.cacheConfig=JSON.parse(i.T.toString(r.i.readSync([this.config.config.cacheDir,"cacheConfig.json"],{option:{encoding:"utf-8"}})))}catch(e){}const p=(new Date).toISOString();this.cacheConfig??(this.cacheConfig={createDate:p,updateDate:p,caches:{}}),(a=this.cacheConfig).createDate??(a.createDate=p),(s=this.cacheConfig).updateDate??(s.updateDate=p),(c=this.cacheConfig).caches??(c.caches={});const l=this.config.key(e,t),d={key:l.key,lifeTime:l.lifeTime??this.config.config.lifeTime,isUpdate:!1,responseHeaders:l.responseHeaders},f=this.cacheConfig.caches[d.key];if(f){const t=this.config.config.cacheDir?r.i.existsSync(f.path):this.storage.has(f.path),n=Date.now()-f.createTime;if(!t||n>f.lifeTime)delete this.cacheConfig[d.key],this.deleteChunk(f.path),d.isUpdate=!0;else{e.resSetHeaders({...f.responseHeader,cacheFilter:"true;remainTime="+(f.lifeTime-n)});try{const t=this.getChunk(f.path);await e.resEnd(t)}catch(e){console.log("--------e",e)}}}else d.isUpdate=!0;return n.set(o.CARRIER_KEY_NAME,d),d.isUpdate}deleteChunk(e){this.config.config.cacheDir&&r.i.existsSync(e)?r.i.deleteFileSync(e):this.storage.has(e)&&this.storage.delete(e)}getChunk(e){return this.config.config.cacheDir?r.i.readSync(e):this.storage.get(e)}async proceedAfter({rr:e,app:t,carrier:n}){var i;const s=n.get(o.CARRIER_KEY_NAME);if(s&&s.isUpdate)try{this.config.config.cacheDir&&r.i.mkdirSync([this.config.config.cacheDir,"caches"],{recursive:!0});const t=e.resBodyData();if(!t)return!0;let n;const o=a.n.uuid4();n=this.writeChunk(o,t);const c=Date.now(),u=new Date(c).toISOString();(i=this.cacheConfig).createDate??(i.createDate=u),this.cacheConfig.updateDate=u;const p={};s.responseHeaders?.map(e=>e.toLowerCase()).forEach(t=>{p[t]=e.resHeader(t)}),this.cacheConfig.caches[s.key]={path:n,createTime:c,lifeTime:s.lifeTime,responseHeader:p},this.config.config.cacheDir&&r.i.write(JSON.stringify(this.cacheConfig),{path:[this.config.config.cacheDir,"cacheConfig.json"]})}catch(e){console.log("---",e)}return!0}writeChunk(e,t){return this.config.config.cacheDir?r.i.write(t,{path:[this.config.config.cacheDir,"caches",e]}):(this.storage.set(e,t),e)}}o.CARRIER_KEY_NAME="_CARRIER_CACHE_FILTER_KEY_NAME"},9868:(e,t,n)=>{"use strict";n.d(t,{BadRequestError:()=>r.BadRequestError,ForbiddenError:()=>i.ForbiddenError,HttpError:()=>a.HttpError,InternalServerError:()=>o.InternalServerError,NotFoundError:()=>s.NotFoundError,UnauthorizedError:()=>c.UnauthorizedError});var r=n(4374),i=n(283),a=n(758),o=n(5468),s=n(4843),c=n(1872)},9896:e=>{"use strict";e.exports=require("fs")}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{BadRequestError:()=>o.BadRequestError,CONNECT:()=>i.CONNECT,CacheFilter:()=>s.CacheFilter,CrossDomainHeaderEndPoint:()=>a.CrossDomainHeaderEndPoint,DELETE:()=>i.DELETE,ForbiddenError:()=>o.ForbiddenError,GET:()=>i.GET,HEAD:()=>i.HEAD,HeaderData:()=>u.HeaderData,HeaderEndPoint:()=>a.HeaderEndPoint,HttpError:()=>o.HttpError,HttpHeaders:()=>t.HttpHeaders,HttpMethod:()=>t.HttpMethod,HttpServerOption:()=>p.HttpServerOption,HttpStatus:()=>t.HttpStatus,HttpStatusFilter:()=>s.HttpStatusFilter,InjectSituationType:()=>c.InjectSituationType,InternalServerError:()=>o.InternalServerError,Mimes:()=>t.Mimes,NotFoundError:()=>o.NotFoundError,OPTIONS:()=>i.OPTIONS,OpenApi3Filter:()=>s.OpenApi3Filter,PATCH:()=>i.PATCH,POST:()=>i.POST,PUT:()=>i.PUT,PatchJson:()=>u.PatchJson,ReqFormUrlBody:()=>u.ReqFormUrlBody,ReqHeader:()=>u.ReqHeader,ReqJsonBody:()=>u.ReqJsonBody,ReqMultipartFormBody:()=>u.ReqMultipartFormBody,RequestResponse:()=>u.RequestResponse,RequestResponseChain:()=>u.RequestResponseChain,Resource:()=>u.Resource,ResourceFilter:()=>s.ResourceFilter,ResourceResorver:()=>l.ResourceResorver,SessionManager:()=>d.SessionManager,SimpleBootHttpServer:()=>e.SimpleBootHttpServer,TRACE:()=>i.TRACE,ThrowFilter:()=>s.ThrowFilter,UnauthorizedError:()=>o.UnauthorizedError,UrlMapping:()=>i.UrlMapping,UrlMappingSituationType:()=>i.UrlMappingSituationType,getCONNECT:()=>i.getCONNECT,getCONNECTS:()=>i.getCONNECTS,getDELETE:()=>i.getDELETE,getDELETES:()=>i.getDELETES,getGET:()=>i.getGET,getGETS:()=>i.getGETS,getHEAD:()=>i.getHEAD,getHEADS:()=>i.getHEADS,getOPTIONS:()=>i.getOPTIONS,getOPTIONSS:()=>i.getOPTIONSS,getPATCH:()=>i.getPATCH,getPATCHS:()=>i.getPATCHS,getPOST:()=>i.getPOST,getPOSTS:()=>i.getPOSTS,getPUT:()=>i.getPUT,getPUTS:()=>i.getPUTS,getTRACE:()=>i.getTRACE,getTRACES:()=>i.getTRACES,getUrlMapping:()=>i.getUrlMapping,getUrlMappings:()=>i.getUrlMappings});var e=n(1013),t=n(6079),i=n(2001),a=n(6799),o=n(9868),s=n(7522),c=n(346),u=n(2821),p=n(1506),l=n(2302),d=n(5161)})(),module.exports=r})();
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var __decorateClass = (decorators, target, key, kind) => {
29
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
30
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
31
+ if (decorator = decorators[i])
32
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
33
+ if (kind && result) __defProp(target, key, result);
34
+ return result;
35
+ };
36
+
37
+ // src/index.ts
38
+ var src_exports = {};
39
+ __export(src_exports, {
40
+ BadRequestError: () => BadRequestError,
41
+ CONNECT: () => CONNECT,
42
+ CacheFilter: () => CacheFilter,
43
+ CrossDomainHeaderEndPoint: () => CrossDomainHeaderEndPoint,
44
+ DELETE: () => DELETE,
45
+ ForbiddenError: () => ForbiddenError,
46
+ GET: () => GET,
47
+ HEAD: () => HEAD,
48
+ HeaderData: () => HeaderData,
49
+ HeaderEndPoint: () => HeaderEndPoint,
50
+ HttpError: () => HttpError,
51
+ HttpHeaders: () => HttpHeaders,
52
+ HttpMethod: () => HttpMethod,
53
+ HttpServerOption: () => HttpServerOption,
54
+ HttpStatus: () => HttpStatus,
55
+ HttpStatusFilter: () => HttpStatusFilter,
56
+ InjectSituationType: () => InjectSituationType,
57
+ InternalServerError: () => InternalServerError,
58
+ Mimes: () => Mimes,
59
+ NotFoundError: () => NotFoundError,
60
+ OPTIONS: () => OPTIONS,
61
+ OpenApi3Filter: () => OpenApi3Filter,
62
+ PATCH: () => PATCH,
63
+ POST: () => POST,
64
+ PUT: () => PUT,
65
+ PatchJson: () => PatchJson,
66
+ ReqFormUrlBody: () => ReqFormUrlBody,
67
+ ReqHeader: () => ReqHeader,
68
+ ReqJsonBody: () => ReqJsonBody,
69
+ ReqMultipartFormBody: () => ReqMultipartFormBody,
70
+ RequestResponse: () => RequestResponse,
71
+ RequestResponseChain: () => RequestResponseChain,
72
+ Resource: () => Resource,
73
+ ResourceFilter: () => ResourceFilter,
74
+ ResourceResolver: () => ResourceResolver,
75
+ SessionManager: () => SessionManager,
76
+ SimpleBootHttpServer: () => SimpleBootHttpServer,
77
+ TRACE: () => TRACE,
78
+ ThrowFilter: () => ThrowFilter,
79
+ UnauthorizedError: () => UnauthorizedError,
80
+ UrlMapping: () => UrlMapping,
81
+ UrlMappingSituationType: () => UrlMappingSituationType,
82
+ getCONNECT: () => getCONNECT,
83
+ getCONNECTS: () => getCONNECTS,
84
+ getDELETE: () => getDELETE,
85
+ getDELETES: () => getDELETES,
86
+ getGET: () => getGET,
87
+ getGETS: () => getGETS,
88
+ getHEAD: () => getHEAD,
89
+ getHEADS: () => getHEADS,
90
+ getOPTIONS: () => getOPTIONS,
91
+ getOPTIONSS: () => getOPTIONSS,
92
+ getPATCH: () => getPATCH,
93
+ getPATCHS: () => getPATCHS,
94
+ getPOST: () => getPOST,
95
+ getPOSTS: () => getPOSTS,
96
+ getPUT: () => getPUT,
97
+ getPUTS: () => getPUTS,
98
+ getTRACE: () => getTRACE,
99
+ getTRACES: () => getTRACES,
100
+ getUrlMapping: () => getUrlMapping,
101
+ getUrlMappings: () => getUrlMappings
102
+ });
103
+ module.exports = __toCommonJS(src_exports);
104
+
105
+ // src/SimpleBootHttpServer.ts
106
+ var import_SimpleApplication = require("@dooboostore/simple-boot/SimpleApplication");
107
+
108
+ // src/option/HttpServerOption.ts
109
+ var import_SimOption = require("@dooboostore/simple-boot/SimOption");
110
+ var HttpServerOption = class _HttpServerOption extends import_SimOption.SimOption {
111
+ static {
112
+ this.DEFAULT_PORT = 8081;
113
+ }
114
+ static {
115
+ this.DEFAULT_HOSTNAME = "127.0.0.1";
116
+ }
117
+ constructor({ serverOption, listen, filters, requestEndPoints, closeEndPoints, errorEndPoints, sessionOption, globalAdvice, fileUploadTempPath, noSuchRouteEndPointMappingThrow, transactionManagerFactory } = {}, initSimOption) {
118
+ super(initSimOption);
119
+ this.serverOption = serverOption;
120
+ this.listen = Object.assign({ port: _HttpServerOption.DEFAULT_PORT, hostname: _HttpServerOption.DEFAULT_HOSTNAME }, listen);
121
+ this.filters = filters;
122
+ this.requestEndPoints = requestEndPoints;
123
+ this.closeEndPoints = closeEndPoints;
124
+ this.errorEndPoints = errorEndPoints;
125
+ this.sessionOption = Object.assign({ key: "SBSESSIONID", expiredTime: 1e3 * 60 * 30 }, sessionOption);
126
+ this.globalAdvice = globalAdvice;
127
+ this.fileUploadTempPath = fileUploadTempPath;
128
+ this.noSuchRouteEndPointMappingThrow = noSuchRouteEndPointMappingThrow;
129
+ this.transactionManagerFactory = transactionManagerFactory;
130
+ }
131
+ get hostname() {
132
+ return this.listen.hostname;
133
+ }
134
+ get port() {
135
+ return this.listen.port;
136
+ }
137
+ get protocol() {
138
+ return this.isSecure ? "https" : "http";
139
+ }
140
+ get address() {
141
+ return `${this.protocol}://${this.hostname}:${this.port}`;
142
+ }
143
+ get isSecure() {
144
+ return this.serverOption && "key" in this.serverOption && "cert" in this.serverOption;
145
+ }
146
+ };
147
+
148
+ // src/SimpleBootHttpServer.ts
149
+ var import_http = require("http");
150
+ var import_https = require("https");
151
+
152
+ // src/codes/HttpHeaders.ts
153
+ var HttpHeaders = /* @__PURE__ */ ((HttpHeaders2) => {
154
+ HttpHeaders2["ContentLength"] = "Content-Length";
155
+ HttpHeaders2["ContentType"] = "Content-Type";
156
+ HttpHeaders2["ContentEncoding"] = "Content-Encoding";
157
+ HttpHeaders2["Accept"] = "Accept";
158
+ HttpHeaders2["Authorization"] = "Authorization";
159
+ HttpHeaders2["CacheControl"] = "Cache-Control";
160
+ HttpHeaders2["Connection"] = "Connection";
161
+ HttpHeaders2["Date"] = "Date";
162
+ HttpHeaders2["Host"] = "Host";
163
+ HttpHeaders2["Pragma"] = "Pragma";
164
+ HttpHeaders2["Trailer"] = "Trailer";
165
+ HttpHeaders2["TransferEncoding"] = "Transfer-Encoding";
166
+ HttpHeaders2["Upgrade"] = "Upgrade";
167
+ HttpHeaders2["Via"] = "Via";
168
+ HttpHeaders2["Warning"] = "Warning";
169
+ HttpHeaders2["AcceptCharset"] = "Accept-Charset";
170
+ HttpHeaders2["AcceptEncoding"] = "Accept-Encoding";
171
+ HttpHeaders2["AcceptLanguage"] = "Accept-Language";
172
+ HttpHeaders2["AccessControlAllowOrigin"] = "Access-Control-Allow-Origin";
173
+ HttpHeaders2["AccessControlAllowMethods"] = "Access-Control-Allow-Methods";
174
+ HttpHeaders2["AccessControlAllowHeaders"] = "Access-Control-Allow-Headers";
175
+ HttpHeaders2["AccessControlExposeHeaders"] = "Access-Control-Expose-Headers";
176
+ HttpHeaders2["Expect"] = "Expect";
177
+ HttpHeaders2["From"] = "From";
178
+ HttpHeaders2["MaxForwards"] = "Max-Forwards";
179
+ HttpHeaders2["Referer"] = "Referer";
180
+ HttpHeaders2["UserAgent"] = "User-Agent";
181
+ HttpHeaders2["Cookie"] = "Cookie";
182
+ HttpHeaders2["SetCookie"] = "Set-Cookie";
183
+ HttpHeaders2["Cookie2"] = "Cookie2";
184
+ HttpHeaders2["SetCookie2"] = "Set-Cookie2";
185
+ HttpHeaders2["Location"] = "Location";
186
+ HttpHeaders2["IfModifiedSince"] = "If-Modified-Since";
187
+ HttpHeaders2["IfUnmodifiedSince"] = "If-Unmodified-Since";
188
+ HttpHeaders2["IfMatch"] = "If-Match";
189
+ HttpHeaders2["IfNoneMatch"] = "If-None-Match";
190
+ HttpHeaders2["IfRange"] = "If-Range";
191
+ HttpHeaders2["Allow"] = "Allow";
192
+ HttpHeaders2["Server"] = "Server";
193
+ return HttpHeaders2;
194
+ })(HttpHeaders || {});
195
+
196
+ // src/models/RequestResponse.ts
197
+ var import_Intent = require("@dooboostore/simple-boot/intent/Intent");
198
+ var import_url = require("url");
199
+ var import_buffer = require("buffer");
200
+
201
+ // src/models/datas/body/ReqFormUrlBody.ts
202
+ var ReqFormUrlBody = class {
203
+ };
204
+
205
+ // src/models/datas/body/ReqJsonBody.ts
206
+ var ReqJsonBody = class {
207
+ };
208
+
209
+ // src/models/datas/ReqHeader.ts
210
+ var ReqHeader = class {
211
+ };
212
+
213
+ // src/models/RequestResponse.ts
214
+ var import_node_gzip = require("node-gzip");
215
+ var import_FileUtils = require("@dooboostore/core-node/file/FileUtils");
216
+ var import_ConvertUtils = require("@dooboostore/core/convert/ConvertUtils");
217
+ var import_ConvertUtils2 = require("@dooboostore/core-node/convert/ConvertUtils");
218
+ var RequestResponse = class _RequestResponse {
219
+ // protected sessionManager?: SessionManager;
220
+ // constructor(req: IncomingMessage, res: ServerResponse);
221
+ // constructor(req: RequestResponse);
222
+ // constructor(req: IncomingMessage, res: ServerResponse, sessionManager?: SessionManager);
223
+ // constructor(req: IncomingMessage | RequestResponse, res?: ServerResponse, sessionManager?: SessionManager) {
224
+ // // this.req = req;
225
+ // // this.res = res;
226
+ // if (req instanceof RequestResponse) {
227
+ // this.req = req.req;
228
+ // this.res = req.res;
229
+ // this.sessionManager = req.sessionManager;
230
+ // } else {
231
+ // this.req = req;
232
+ // this.res = res!;
233
+ // this.sessionManager = sessionManager;
234
+ // }
235
+ // }
236
+ constructor(req, res, config) {
237
+ if (req instanceof _RequestResponse) {
238
+ this.req = req.req;
239
+ this.res = req.res;
240
+ this.config = config;
241
+ } else {
242
+ this.req = req;
243
+ this.res = res;
244
+ this.config = config;
245
+ }
246
+ }
247
+ get reqSocket() {
248
+ return this.req.socket;
249
+ }
250
+ get reqCookieMap() {
251
+ let cookies = this.reqHeader("Cookie" /* Cookie */) ?? "";
252
+ if (Array.isArray(cookies)) {
253
+ cookies = cookies.join(";");
254
+ }
255
+ const map = /* @__PURE__ */ new Map();
256
+ cookies.split(";").map((it) => it.trim().split("=")).forEach((it) => {
257
+ map.set(it[0], it[1]);
258
+ });
259
+ return map;
260
+ }
261
+ reqCookieGet(key) {
262
+ return this.reqCookieMap.get(key);
263
+ }
264
+ get reqRemoteAddress() {
265
+ const ipHeader = this.req.headers["x-forwarded-for"];
266
+ let ip = this.req.socket.remoteAddress;
267
+ if (Array.isArray(ipHeader)) {
268
+ ip = ipHeader.join(",").split(",").shift();
269
+ } else if (typeof ipHeader === "string") {
270
+ ip = ipHeader.split(",").shift();
271
+ }
272
+ return ip;
273
+ }
274
+ get reqUrlObject() {
275
+ return new import_url.URL(this.reqUrl, `${this.reqSocket ? "https://" : "http"}${this.reqHost ?? "localhost"}`);
276
+ }
277
+ get reqUrlPathName() {
278
+ return this.reqUrlObj().pathname ?? "";
279
+ }
280
+ get reqUrl() {
281
+ return this.req.url ?? "";
282
+ }
283
+ reqUrlObj(config) {
284
+ return new import_url.URL(`${config?.scheme ?? "http"}://${config?.host ? config?.host : this.reqHeaderFirst("Host" /* Host */) ?? "localhost"}${this.req.url ?? ""}`);
285
+ }
286
+ get reqUrlSearchParamTuples() {
287
+ return Array.from(this.reqUrlObj().searchParams);
288
+ }
289
+ get reqUrlSearchParams() {
290
+ return this.reqUrlObj().searchParams;
291
+ }
292
+ get reqUrlSearchParamsObj() {
293
+ const entries = this.reqUrlObj().searchParams;
294
+ return import_ConvertUtils.ConvertUtils.toObject(entries);
295
+ }
296
+ get reqPathSearchParamUrl() {
297
+ const reqUrlObj = this.reqUrlObj();
298
+ return reqUrlObj.pathname + (reqUrlObj.searchParams.toString() ? "?" + reqUrlObj.searchParams.toString() : "");
299
+ }
300
+ get reqReadable() {
301
+ return this.req.readable;
302
+ }
303
+ get reqIntent() {
304
+ return new import_Intent.Intent(this.reqPathSearchParamUrl);
305
+ }
306
+ reqHasContentTypeHeader(mime3) {
307
+ return (this.reqHeaderFirst("Content-Type" /* ContentType */) ?? "").toLowerCase().indexOf(mime3.toLocaleLowerCase()) > -1;
308
+ }
309
+ reqHasAcceptHeader(mime3) {
310
+ return (this.reqHeaderFirst("Accept" /* Accept */) ?? "").toLowerCase().indexOf(mime3.toLocaleLowerCase()) > -1;
311
+ }
312
+ reqBodyData() {
313
+ return new Promise((resolve, reject) => {
314
+ if (this.reqReadable) {
315
+ const data = [];
316
+ this.req.on("data", (chunk) => data.push(chunk));
317
+ this.req.on("error", (err) => reject(err));
318
+ this.req.on("end", () => {
319
+ this.reqBodyChunk = import_buffer.Buffer.concat(data);
320
+ resolve(this.reqBodyChunk);
321
+ });
322
+ } else {
323
+ resolve(this.reqBodyChunk ?? import_buffer.Buffer.alloc(0));
324
+ }
325
+ });
326
+ }
327
+ resBodyData() {
328
+ return this.resWriteChunk;
329
+ }
330
+ async reqBodyMultipartFormDataObject() {
331
+ const m = await this.reqBodyMultipartFormData();
332
+ const formData = {};
333
+ for (const it of m) {
334
+ if (it.isFile) {
335
+ formData[it.name] = await import_FileUtils.FileUtils.writeFile(it.value, { originalName: it.filename });
336
+ } else {
337
+ const target = formData[it.name];
338
+ if (Array.isArray(target)) {
339
+ target.push(it.value);
340
+ } else if (typeof target === "string") {
341
+ formData[it.name] = [target, it.value];
342
+ } else {
343
+ formData[it.name] = it.value;
344
+ }
345
+ }
346
+ }
347
+ ;
348
+ return formData;
349
+ }
350
+ reqBodyMultipartFormData() {
351
+ return new Promise((resolve, reject) => {
352
+ const contentTypeHeader = this.req.headers["content-type"];
353
+ if (!contentTypeHeader || !contentTypeHeader.startsWith("multipart/form-data")) {
354
+ return reject(new Error("Invalid Content-Type. Expected multipart/form-data."));
355
+ }
356
+ const boundaryMatch = contentTypeHeader.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
357
+ if (!boundaryMatch) {
358
+ return reject(new Error("Boundary not found in Content-Type header."));
359
+ }
360
+ const boundary = boundaryMatch[1] || boundaryMatch[2];
361
+ if (!boundary) {
362
+ return reject(new Error("Failed to extract boundary."));
363
+ }
364
+ const boundaryBuffer = import_buffer.Buffer.from(`--${boundary}`);
365
+ const crlfBuffer = import_buffer.Buffer.from("\r\n");
366
+ const doubleCrlfBuffer = import_buffer.Buffer.from("\r\n\r\n");
367
+ const chunks = [];
368
+ let totalLength = 0;
369
+ this.req.on("data", (chunk) => {
370
+ chunks.push(chunk);
371
+ totalLength += chunk.length;
372
+ });
373
+ this.req.on("error", (err) => {
374
+ reject(err);
375
+ });
376
+ this.req.on("end", () => {
377
+ if (totalLength === 0) {
378
+ return resolve([]);
379
+ }
380
+ const fullBuffer = import_buffer.Buffer.concat(chunks, totalLength);
381
+ const parsedParts = [];
382
+ let currentPosition = 0;
383
+ let boundaryStartIndex = fullBuffer.indexOf(boundaryBuffer, currentPosition);
384
+ if (boundaryStartIndex === -1) {
385
+ return reject(new Error("Initial boundary not found."));
386
+ }
387
+ currentPosition = boundaryStartIndex + boundaryBuffer.length;
388
+ if (fullBuffer.slice(currentPosition, currentPosition + crlfBuffer.length).equals(crlfBuffer)) {
389
+ currentPosition += crlfBuffer.length;
390
+ }
391
+ while (currentPosition < fullBuffer.length) {
392
+ const nextBoundaryIndex = fullBuffer.indexOf(boundaryBuffer, currentPosition);
393
+ if (nextBoundaryIndex === -1) {
394
+ break;
395
+ }
396
+ let partEndIndex = nextBoundaryIndex;
397
+ if (partEndIndex > crlfBuffer.length && fullBuffer.slice(partEndIndex - crlfBuffer.length, partEndIndex).equals(crlfBuffer)) {
398
+ partEndIndex -= crlfBuffer.length;
399
+ }
400
+ const partBuffer = fullBuffer.slice(currentPosition, partEndIndex);
401
+ const headerBodySeparatorIndex = partBuffer.indexOf(doubleCrlfBuffer);
402
+ if (headerBodySeparatorIndex === -1) {
403
+ console.warn("Skipping malformed part: no header/body separator found.");
404
+ currentPosition = nextBoundaryIndex + boundaryBuffer.length;
405
+ if (fullBuffer.slice(currentPosition, currentPosition + crlfBuffer.length).equals(crlfBuffer)) {
406
+ currentPosition += crlfBuffer.length;
407
+ }
408
+ if (fullBuffer.slice(currentPosition, currentPosition + 2).toString() === "--") break;
409
+ continue;
410
+ }
411
+ const headerBuffer = partBuffer.slice(0, headerBodySeparatorIndex);
412
+ const bodyBuffer = partBuffer.slice(headerBodySeparatorIndex + doubleCrlfBuffer.length);
413
+ const headersStr = headerBuffer.toString("utf-8");
414
+ const headers = {};
415
+ headersStr.split("\r\n").forEach((line) => {
416
+ const colonIndex = line.indexOf(":");
417
+ if (colonIndex > 0) {
418
+ const key = line.substring(0, colonIndex).trim().toLowerCase();
419
+ const value = line.substring(colonIndex + 1).trim();
420
+ headers[key] = value;
421
+ }
422
+ });
423
+ const contentDisposition = headers["content-disposition"];
424
+ if (!contentDisposition) {
425
+ console.warn("Skipping part: no Content-Disposition header.");
426
+ currentPosition = nextBoundaryIndex + boundaryBuffer.length;
427
+ if (fullBuffer.slice(currentPosition, currentPosition + crlfBuffer.length).equals(crlfBuffer)) {
428
+ currentPosition += crlfBuffer.length;
429
+ }
430
+ if (fullBuffer.slice(currentPosition, currentPosition + 2).toString() === "--") break;
431
+ continue;
432
+ }
433
+ const nameMatch = contentDisposition.match(/name="([^"]+)"/i);
434
+ const filenameMatch = contentDisposition.match(/filename="([^"]+)"/i);
435
+ const name = nameMatch ? nameMatch[1] : null;
436
+ const filename = filenameMatch ? filenameMatch[1] : null;
437
+ const contentType = headers["content-type"] || null;
438
+ if (name) {
439
+ const isFile = !!filename;
440
+ const multipartData = {
441
+ name,
442
+ isFile,
443
+ // filename이 있으면 파일로 간주
444
+ filename,
445
+ contentType,
446
+ value: isFile ? bodyBuffer : bodyBuffer.toString("utf-8")
447
+ };
448
+ parsedParts.push(multipartData);
449
+ } else {
450
+ console.warn("Skipping part: 'name' not found in Content-Disposition.");
451
+ }
452
+ currentPosition = nextBoundaryIndex + boundaryBuffer.length;
453
+ if (fullBuffer.slice(currentPosition, currentPosition + crlfBuffer.length).equals(crlfBuffer)) {
454
+ currentPosition += crlfBuffer.length;
455
+ }
456
+ if (fullBuffer.slice(currentPosition, currentPosition + 2).toString() === "--") {
457
+ break;
458
+ }
459
+ }
460
+ resolve(parsedParts);
461
+ });
462
+ });
463
+ }
464
+ async reqBodyStringData() {
465
+ const data = (await this.reqBodyData()).toString();
466
+ return data;
467
+ }
468
+ async reqBodyJsonData() {
469
+ return JSON.parse(await this.reqBodyStringData());
470
+ }
471
+ async reqBodyFormUrlData() {
472
+ const data = await this.reqBodyStringData();
473
+ const formData = {};
474
+ Array.from(new import_url.URLSearchParams(data).entries()).forEach(([k, v]) => {
475
+ const target = formData[k];
476
+ if (Array.isArray(target)) {
477
+ target.push(v);
478
+ } else if (typeof target === "string") {
479
+ formData[k] = [target, v];
480
+ } else {
481
+ formData[k] = v;
482
+ }
483
+ });
484
+ return formData;
485
+ }
486
+ async reqBodyReqFormUrlBody() {
487
+ const data = await this.reqBodyFormUrlData();
488
+ return Object.assign(new ReqFormUrlBody(), data);
489
+ }
490
+ async reqBodyReqJsonBody() {
491
+ const data = await this.reqBodyStringData();
492
+ return Object.assign(new ReqJsonBody(), data ? JSON.parse(data) : {});
493
+ }
494
+ // reqBodyReqMultipartFormBody(): Promise<ReqMultipartFormBody> {
495
+ // return this.reqBodyMultipartFormData().then(it => new ReqMultipartFormBody(it))
496
+ // }
497
+ resBodyJsonData() {
498
+ const data = import_ConvertUtils2.ConvertUtils.toString(this.resBodyData());
499
+ return data ? JSON.parse(data) : null;
500
+ }
501
+ resBodyStringData() {
502
+ return import_ConvertUtils2.ConvertUtils.toString(this.resBodyData());
503
+ }
504
+ reqMethod() {
505
+ return this.req.method?.toUpperCase();
506
+ }
507
+ reqHeader(key) {
508
+ return this.req.headers[key.toLowerCase()];
509
+ }
510
+ get reqHost() {
511
+ return this.reqHeaderFirst("Host" /* Host */);
512
+ }
513
+ get reqHeaderObj() {
514
+ const h = new ReqHeader();
515
+ Object.entries(this.req.headers).forEach(([k, v]) => {
516
+ h[k] = v;
517
+ });
518
+ return h;
519
+ }
520
+ reqHeaderFirst(key, defaultValue) {
521
+ const header = this.req.headers[key.toLowerCase()];
522
+ if (header && Array.isArray(header)) {
523
+ return header[0] ?? defaultValue;
524
+ } else {
525
+ return header ?? defaultValue;
526
+ }
527
+ }
528
+ reqAuthorizationHeader() {
529
+ return this.reqHeaderFirst("Authorization" /* Authorization */);
530
+ }
531
+ reqRefreshTokenHeader() {
532
+ return this.reqHeaderFirst("Authorization" /* Authorization */);
533
+ }
534
+ // eslint-disable-next-line no-dupe-class-members
535
+ resStatusCode(code) {
536
+ if (code) {
537
+ this.res.statusCode = code;
538
+ return new RequestResponseChain(this.req, this.res, this.config, this.res.statusCode);
539
+ } else {
540
+ return this.res.statusCode;
541
+ }
542
+ }
543
+ resHeader(key) {
544
+ return this.res.getHeader(key.toLowerCase());
545
+ }
546
+ resHeaderFirst(key, defaultValue) {
547
+ const header = this.res.getHeader(key.toLowerCase());
548
+ if (header && Array.isArray(header)) {
549
+ return header[0] ?? defaultValue;
550
+ } else {
551
+ return header ?? defaultValue;
552
+ }
553
+ }
554
+ async reqSession() {
555
+ if (this.config.sessionManager) {
556
+ return (await this.config.sessionManager.session(this)).dataSet.data;
557
+ } else {
558
+ return Promise.reject(new Error("Not SessionManager"));
559
+ }
560
+ }
561
+ reqSessionSet(key, value) {
562
+ this.reqSession[key] = value;
563
+ }
564
+ reqSessionGet(key) {
565
+ const session = this.reqSession;
566
+ if (session) {
567
+ return session[key];
568
+ }
569
+ }
570
+ resSetStatusCode(statusCode) {
571
+ this.res.statusCode = statusCode;
572
+ return this.createRequestResponseChain(this.res.statusCode);
573
+ }
574
+ // resEnd() {
575
+ // this.res.end();
576
+ // }
577
+ // eslint-disable-next-line no-undef
578
+ resWrite(chunk, encoding = "utf8") {
579
+ this.resWriteChunk = chunk;
580
+ return this.createRequestResponseChain(this.resWriteChunk);
581
+ }
582
+ // eslint-disable-next-line no-undef
583
+ resWriteJson(chunk, encoding = "utf8") {
584
+ return this.resWrite(JSON.stringify(chunk), encoding);
585
+ }
586
+ resSetHeader(key, value) {
587
+ return this.createRequestResponseChain(this.res.setHeader(key.toLowerCase(), value));
588
+ }
589
+ resAddHeader(key, value) {
590
+ const existingValue = this.res.getHeader(key.toLowerCase());
591
+ const newValue = Array.isArray(existingValue) ? existingValue.concat(value) : existingValue ? [existingValue.toString(), ...[].concat(value)] : value;
592
+ return this.createRequestResponseChain(this.res.setHeader(key.toLowerCase(), newValue));
593
+ }
594
+ resSetHeaders(headers) {
595
+ Object.entries(headers).forEach(([key, value]) => this.resSetHeader(key, value));
596
+ return this.createRequestResponseChain();
597
+ }
598
+ resAddHeaders(headers) {
599
+ Object.entries(headers).forEach(([key, value]) => this.resAddHeader(key, value));
600
+ return this.createRequestResponseChain();
601
+ }
602
+ // 마지막 종료될때 타는거.
603
+ async resEndChunk() {
604
+ const encoding = this.reqHeaderFirst("Accept-Encoding" /* AcceptEncoding */);
605
+ let data = this.resWriteChunk;
606
+ if (encoding?.includes("gzip")) {
607
+ data = await (0, import_node_gzip.gzip)(data);
608
+ this.resSetHeader("Content-Encoding" /* ContentEncoding */, "gzip");
609
+ }
610
+ this.res.end(data);
611
+ }
612
+ async resEnd(chunk) {
613
+ this.resWriteChunk = chunk ?? this.resWriteChunk;
614
+ if (this.req.readable) {
615
+ await this.reqBodyData();
616
+ await this.resEndChunk();
617
+ } else {
618
+ await this.resEndChunk();
619
+ }
620
+ }
621
+ // writeContinue(callback?: () => void) {
622
+ // this.res.writeContinue(callback);
623
+ // return new RequestResponseChain(this.req, this.res);
624
+ // }
625
+ // reqWrite(chunk?: any) {
626
+ // this.resWriteChunk = chunk;
627
+ // // this.res.write(chunk);
628
+ // return this.createRequestResponseChain();
629
+ // }
630
+ resWriteHead(statusCode, headers) {
631
+ return this.createRequestResponseChain(this.res.writeHead(statusCode, headers));
632
+ }
633
+ resWriteHeadEnd(statusCode, headers) {
634
+ this.createRequestResponseChain(this.res.writeHead(statusCode, headers));
635
+ this.res.end();
636
+ }
637
+ resIsDone() {
638
+ return this.res.finished || this.res.writableEnded || this.res.headersSent;
639
+ }
640
+ createRequestResponseChain(data) {
641
+ const requestResponseChain = new RequestResponseChain(this.req, this.res, this.config, data);
642
+ requestResponseChain.resWriteChunk = this.resWriteChunk;
643
+ requestResponseChain.reqBodyChunk = this.reqBodyChunk;
644
+ return requestResponseChain;
645
+ }
646
+ // res.on("readable", () => {
647
+ // console.log('readable???')
648
+ // });
649
+ // res.on('complete', function (details) {
650
+ // var size = details.req.bytes;
651
+ // console.log('complete-->', size)
652
+ // });
653
+ // res.on('finish', function() {
654
+ // console.log('finish??');
655
+ // });
656
+ // res.on('end', () => {
657
+ // console.log('end--?')
658
+ // });
659
+ };
660
+ var RequestResponseChain = class extends RequestResponse {
661
+ constructor(req, res, config, result) {
662
+ super(req, res, config);
663
+ this.result = result;
664
+ }
665
+ };
666
+
667
+ // src/decorators/MethodMapping.ts
668
+ var import_reflect_metadata = require("reflect-metadata");
669
+ var import_ReflectUtils = require("@dooboostore/core/reflect/ReflectUtils");
670
+
671
+ // src/codes/HttpMethod.ts
672
+ var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
673
+ HttpMethod2["GET"] = "GET";
674
+ HttpMethod2["POST"] = "POST";
675
+ HttpMethod2["PUT"] = "PUT";
676
+ HttpMethod2["DELETE"] = "DELETE";
677
+ HttpMethod2["PATCH"] = "PATCH";
678
+ HttpMethod2["HEAD"] = "HEAD";
679
+ HttpMethod2["OPTIONS"] = "OPTIONS";
680
+ HttpMethod2["TRACE"] = "TRACE";
681
+ HttpMethod2["CONNECT"] = "CONNECT";
682
+ return HttpMethod2;
683
+ })(HttpMethod || {});
684
+
685
+ // src/decorators/MethodMapping.ts
686
+ var UrlMappingSituationType = /* @__PURE__ */ ((UrlMappingSituationType2) => {
687
+ UrlMappingSituationType2["REQ_JSON_BODY"] = "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY";
688
+ UrlMappingSituationType2["REQ_FORM_URL_BODY"] = "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY";
689
+ return UrlMappingSituationType2;
690
+ })(UrlMappingSituationType || {});
691
+ var MappingMetadataKey = Symbol("MappingMetadataKey");
692
+ var process2 = (config, target, propertyKey, descriptor) => {
693
+ const saveMappingConfigs = import_ReflectUtils.ReflectUtils.getMetadata(MappingMetadataKey, target.constructor) ?? [];
694
+ saveMappingConfigs.push({ propertyKey, config });
695
+ import_ReflectUtils.ReflectUtils.defineMetadata(MappingMetadataKey, saveMappingConfigs, target.constructor);
696
+ import_ReflectUtils.ReflectUtils.defineMetadata(MappingMetadataKey, config, target, propertyKey);
697
+ };
698
+ function UrlMapping(configOrtarget, propertyKey, descriptor) {
699
+ if (propertyKey && descriptor) {
700
+ process2({ method: "GET" /* GET */ }, configOrtarget, propertyKey, descriptor);
701
+ } else {
702
+ return (target, propertyKey2, descriptor2) => {
703
+ process2(configOrtarget, target, propertyKey2, descriptor2);
704
+ };
705
+ }
706
+ }
707
+ var getUrlMapping = (target, propertyKey) => {
708
+ return import_ReflectUtils.ReflectUtils.getMetadata(MappingMetadataKey, target, propertyKey);
709
+ };
710
+ var getUrlMappings = (target) => {
711
+ if (target !== null && void 0 !== target && typeof target === "object") {
712
+ target = target.constructor;
713
+ }
714
+ return import_ReflectUtils.ReflectUtils.getMetadata(MappingMetadataKey, target);
715
+ };
716
+ function GET(configOrTarget, propertyKey, descriptor) {
717
+ if (propertyKey && descriptor) {
718
+ process2({ method: "GET" /* GET */ }, configOrTarget, propertyKey, descriptor);
719
+ } else {
720
+ return (target, propertyKey2, descriptor2) => {
721
+ configOrTarget.method = "GET" /* GET */;
722
+ process2(configOrTarget, target, propertyKey2, descriptor2);
723
+ };
724
+ }
725
+ }
726
+ var getGET = (target, propertyKey) => {
727
+ return getUrlMapping(target, propertyKey);
728
+ };
729
+ var getGETS = (target) => {
730
+ return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === "GET" /* GET */);
731
+ };
732
+ function POST(configOrTarget, propertyKey, descriptor) {
733
+ if (propertyKey && descriptor) {
734
+ process2({ method: "POST" /* POST */ }, configOrTarget, propertyKey, descriptor);
735
+ } else {
736
+ return (target, propertyKey2, descriptor2) => {
737
+ configOrTarget.method = "POST" /* POST */;
738
+ process2(configOrTarget, target, propertyKey2, descriptor2);
739
+ };
740
+ }
741
+ }
742
+ var getPOST = (target, propertyKey) => {
743
+ return getUrlMapping(target, propertyKey);
744
+ };
745
+ var getPOSTS = (target) => {
746
+ return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === "POST" /* POST */);
747
+ };
748
+ function DELETE(configOrTarget, propertyKey, descriptor) {
749
+ if (propertyKey && descriptor) {
750
+ process2({ method: "DELETE" /* DELETE */ }, configOrTarget, propertyKey, descriptor);
751
+ } else {
752
+ return (target, propertyKey2, descriptor2) => {
753
+ configOrTarget.method = "DELETE" /* DELETE */;
754
+ process2(configOrTarget, target, propertyKey2, descriptor2);
755
+ };
756
+ }
757
+ }
758
+ var getDELETE = (target, propertyKey) => {
759
+ return getUrlMapping(target, propertyKey);
760
+ };
761
+ var getDELETES = (target) => {
762
+ return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === "DELETE" /* DELETE */);
763
+ };
764
+ function PUT(configOrTarget, propertyKey, descriptor) {
765
+ if (propertyKey && descriptor) {
766
+ process2({ method: "PUT" /* PUT */ }, configOrTarget, propertyKey, descriptor);
767
+ } else {
768
+ return (target, propertyKey2, descriptor2) => {
769
+ configOrTarget.method = "PUT" /* PUT */;
770
+ process2(configOrTarget, target, propertyKey2, descriptor2);
771
+ };
772
+ }
773
+ }
774
+ var getPUT = (target, propertyKey) => {
775
+ return getUrlMapping(target, propertyKey);
776
+ };
777
+ var getPUTS = (target) => {
778
+ return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === "PUT" /* PUT */);
779
+ };
780
+ function PATCH(configOrTarget, propertyKey, descriptor) {
781
+ if (propertyKey && descriptor) {
782
+ process2({ method: "PATCH" /* PATCH */ }, configOrTarget, propertyKey, descriptor);
783
+ } else {
784
+ return (target, propertyKey2, descriptor2) => {
785
+ configOrTarget.method = "PATCH" /* PATCH */;
786
+ process2(configOrTarget, target, propertyKey2, descriptor2);
787
+ };
788
+ }
789
+ }
790
+ var getPATCH = (target, propertyKey) => {
791
+ return getUrlMapping(target, propertyKey);
792
+ };
793
+ var getPATCHS = (target) => {
794
+ return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === "GET" /* GET */);
795
+ };
796
+ function OPTIONS(configOrTarget, propertyKey, descriptor) {
797
+ if (propertyKey && descriptor) {
798
+ process2({ method: "OPTIONS" /* OPTIONS */ }, configOrTarget, propertyKey, descriptor);
799
+ } else {
800
+ return (target, propertyKey2, descriptor2) => {
801
+ configOrTarget.method = "OPTIONS" /* OPTIONS */;
802
+ process2(configOrTarget, target, propertyKey2, descriptor2);
803
+ };
804
+ }
805
+ }
806
+ var getOPTIONS = (target, propertyKey) => {
807
+ return getUrlMapping(target, propertyKey);
808
+ };
809
+ var getOPTIONSS = (target) => {
810
+ return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === "OPTIONS" /* OPTIONS */);
811
+ };
812
+ function HEAD(configOrTarget, propertyKey, descriptor) {
813
+ if (propertyKey && descriptor) {
814
+ process2({ method: "HEAD" /* HEAD */ }, configOrTarget, propertyKey, descriptor);
815
+ } else {
816
+ return (target, propertyKey2, descriptor2) => {
817
+ configOrTarget.method = "HEAD" /* HEAD */;
818
+ process2(configOrTarget, target, propertyKey2, descriptor2);
819
+ };
820
+ }
821
+ }
822
+ var getHEAD = (target, propertyKey) => {
823
+ return getUrlMapping(target, propertyKey);
824
+ };
825
+ var getHEADS = (target) => {
826
+ return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === "GET" /* GET */);
827
+ };
828
+ function TRACE(configOrTarget, propertyKey, descriptor) {
829
+ if (propertyKey && descriptor) {
830
+ process2({ method: "TRACE" /* TRACE */ }, configOrTarget, propertyKey, descriptor);
831
+ } else {
832
+ return (target, propertyKey2, descriptor2) => {
833
+ configOrTarget.method = "TRACE" /* TRACE */;
834
+ process2(configOrTarget, target, propertyKey2, descriptor2);
835
+ };
836
+ }
837
+ }
838
+ var getTRACE = (target, propertyKey) => {
839
+ return getUrlMapping(target, propertyKey);
840
+ };
841
+ var getTRACES = (target) => {
842
+ return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === "TRACE" /* TRACE */);
843
+ };
844
+ function CONNECT(configOrTarget, propertyKey, descriptor) {
845
+ if (propertyKey && descriptor) {
846
+ process2({ method: "CONNECT" /* CONNECT */ }, configOrTarget, propertyKey, descriptor);
847
+ } else {
848
+ return (target, propertyKey2, descriptor2) => {
849
+ configOrTarget.method = "CONNECT" /* CONNECT */;
850
+ process2(configOrTarget, target, propertyKey2, descriptor2);
851
+ };
852
+ }
853
+ }
854
+ var getCONNECT = (target, propertyKey) => {
855
+ return getUrlMapping(target, propertyKey);
856
+ };
857
+ var getCONNECTS = (target) => {
858
+ return getUrlMappings(target)?.filter((it) => it.config?.method.toUpperCase() === "CONNECT" /* CONNECT */);
859
+ };
860
+
861
+ // src/codes/HttpStatus.ts
862
+ var HttpStatus = /* @__PURE__ */ ((HttpStatus2) => {
863
+ HttpStatus2[HttpStatus2["Ok"] = 200] = "Ok";
864
+ HttpStatus2[HttpStatus2["MovedPermanently"] = 301] = "MovedPermanently";
865
+ HttpStatus2[HttpStatus2["Found"] = 302] = "Found";
866
+ HttpStatus2[HttpStatus2["SeeOther"] = 303] = "SeeOther";
867
+ HttpStatus2[HttpStatus2["NotModified"] = 304] = "NotModified";
868
+ HttpStatus2[HttpStatus2["TemporaryRedirect"] = 307] = "TemporaryRedirect";
869
+ HttpStatus2[HttpStatus2["PermanentRedirect"] = 308] = "PermanentRedirect";
870
+ HttpStatus2[HttpStatus2["BadRequest"] = 400] = "BadRequest";
871
+ HttpStatus2[HttpStatus2["Unauthorized"] = 401] = "Unauthorized";
872
+ HttpStatus2[HttpStatus2["Forbidden"] = 403] = "Forbidden";
873
+ HttpStatus2[HttpStatus2["NotFound"] = 404] = "NotFound";
874
+ HttpStatus2[HttpStatus2["InternalServerError"] = 500] = "InternalServerError";
875
+ HttpStatus2[HttpStatus2["NotImplemented"] = 501] = "NotImplemented";
876
+ HttpStatus2[HttpStatus2["BadGateway"] = 502] = "BadGateway";
877
+ HttpStatus2[HttpStatus2["ServiceUnavailable"] = 503] = "ServiceUnavailable";
878
+ HttpStatus2[HttpStatus2["GatewayTimeout"] = 504] = "GatewayTimeout";
879
+ HttpStatus2[HttpStatus2["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported";
880
+ return HttpStatus2;
881
+ })(HttpStatus || {});
882
+
883
+ // src/codes/Mimes.ts
884
+ var Mimes = /* @__PURE__ */ ((Mimes2) => {
885
+ Mimes2["ApplicationJson"] = "application/json";
886
+ Mimes2["ApplicationOctetStream"] = "application/octet-stream";
887
+ Mimes2["ApplicationXml"] = "application/xml";
888
+ Mimes2["ApplicationJsonPatch"] = "application/json-patch+json";
889
+ Mimes2["ApplicationXWwwFormUrlencoded"] = "application/x-www-form-urlencoded";
890
+ Mimes2["TextPlain"] = "text/plain";
891
+ Mimes2["TextHtml"] = "text/html";
892
+ Mimes2["All"] = "*/*";
893
+ Mimes2["TextCss"] = "text/css";
894
+ Mimes2["TextJavascript"] = "text/javascript";
895
+ Mimes2["TextXml"] = "text/xml";
896
+ Mimes2["TextXslt"] = "text/xslt";
897
+ Mimes2["TextXmlDtd"] = "text/xml-dtd";
898
+ Mimes2["TextPlainUtf8"] = "text/plain; charset=utf-8";
899
+ Mimes2["ImagePng"] = "image/png";
900
+ Mimes2["ImageGif"] = "image/gif";
901
+ Mimes2["ImageJpeg"] = "image/jpeg";
902
+ Mimes2["ImageSvg"] = "image/svg+xml";
903
+ Mimes2["ImageBmp"] = "image/bmp";
904
+ Mimes2["ImageTiff"] = "image/tiff";
905
+ Mimes2["ImagePdf"] = "application/pdf";
906
+ Mimes2["ImageXBmp"] = "image/x-bmp";
907
+ Mimes2["ImageXpixmap"] = "image/x-xpixmap";
908
+ Mimes2["ImageXxbm"] = "image/x-xbm";
909
+ Mimes2["MultipartFormData"] = "multipart/form-data";
910
+ return Mimes2;
911
+ })(Mimes || {});
912
+
913
+ // src/SimpleBootHttpServer.ts
914
+ var import_ExceptionDecorator = require("@dooboostore/simple-boot/decorators/exception/ExceptionDecorator");
915
+ var import_Inject = require("@dooboostore/simple-boot/decorators/inject/Inject");
916
+ var import_ReflectUtils2 = require("@dooboostore/core/reflect/ReflectUtils");
917
+ var import_RouterModule = require("@dooboostore/simple-boot/route/RouterModule");
918
+
919
+ // src/models/datas/body/ReqMultipartFormBody.ts
920
+ var ReqMultipartFormBody = class {
921
+ constructor(field = []) {
922
+ this.field = field;
923
+ }
924
+ };
925
+
926
+ // src/SimpleBootHttpServer.ts
927
+ var import_Validation = require("@dooboostore/simple-boot/decorators/validate/Validation");
928
+ var import_ValidException = require("@dooboostore/simple-boot/errors/ValidException");
929
+
930
+ // src/errors/HttpError.ts
931
+ var HttpError = class {
932
+ constructor({ status, message = "HttpError" }) {
933
+ this.name = "Error";
934
+ this.message = message;
935
+ this.status = status;
936
+ }
937
+ };
938
+
939
+ // src/SimpleBootHttpServer.ts
940
+ var import_Router = require("@dooboostore/simple-boot/decorators/route/Router");
941
+ var import_url2 = require("url");
942
+
943
+ // src/session/SessionManager.ts
944
+ var import_RandomUtils = require("@dooboostore/core/random/RandomUtils");
945
+ var SessionManager = class {
946
+ constructor(option) {
947
+ this.option = option;
948
+ this.sessions = /* @__PURE__ */ new Map();
949
+ this.sessionOption = option.sessionOption;
950
+ setInterval(async () => {
951
+ const uuids = await this.getSessionUUIDs();
952
+ for (const uuid of uuids) {
953
+ const dataSet = await this.getSessionDataSet(uuid);
954
+ if (dataSet && this.isExpired(dataSet.access)) {
955
+ await this.deleteSession(uuid);
956
+ }
957
+ }
958
+ }, this.sessionOption.expiredTime);
959
+ }
960
+ async getSessionUUIDs() {
961
+ if (this.sessionOption.provider?.uuids) {
962
+ return this.sessionOption.provider.uuids();
963
+ } else {
964
+ return Array.from(this.sessions.keys());
965
+ }
966
+ }
967
+ async deleteSession(uuid) {
968
+ if (this.sessionOption.provider?.delete) {
969
+ this.sessionOption.provider.delete(uuid);
970
+ } else {
971
+ this.sessions.delete(uuid);
972
+ }
973
+ }
974
+ async getSessionDataSet(uuid) {
975
+ if (this.sessionOption.provider?.get) {
976
+ return this.sessionOption.provider.get(uuid);
977
+ } else {
978
+ return this.sessions.get(uuid);
979
+ }
980
+ }
981
+ async setSessionDataSet(uuid, dataSet) {
982
+ if (this.sessionOption.provider?.set) {
983
+ this.sessionOption.provider.set(uuid, dataSet);
984
+ } else {
985
+ this.sessions.set(uuid, dataSet);
986
+ }
987
+ }
988
+ isExpired(access, now = Date.now()) {
989
+ return now - access >= this.option.sessionOption.expiredTime;
990
+ }
991
+ makeUUID() {
992
+ return import_RandomUtils.RandomUtils.uuid("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
993
+ }
994
+ async session(rrOrUUID) {
995
+ let uuid;
996
+ if (rrOrUUID instanceof RequestResponse) {
997
+ uuid = rrOrUUID.reqCookieGet(this.sessionOption.key) ?? this.makeUUID();
998
+ } else if (typeof rrOrUUID === "string") {
999
+ uuid = rrOrUUID;
1000
+ } else {
1001
+ uuid = this.makeUUID();
1002
+ }
1003
+ let dataSet = await this.getSessionDataSet(uuid);
1004
+ const now = Date.now();
1005
+ if (dataSet) {
1006
+ if (this.isExpired(dataSet.access, now)) {
1007
+ delete dataSet.data;
1008
+ }
1009
+ dataSet.access = now;
1010
+ } else {
1011
+ dataSet = {
1012
+ access: now
1013
+ };
1014
+ }
1015
+ await this.setSessionDataSet(uuid, dataSet);
1016
+ return { uuid, dataSet };
1017
+ }
1018
+ };
1019
+
1020
+ // src/inject/InjectSituationType.ts
1021
+ var InjectSituationType;
1022
+ ((InjectSituationType2) => {
1023
+ InjectSituationType2.TransactionManager = Symbol("TransactionManager");
1024
+ })(InjectSituationType || (InjectSituationType = {}));
1025
+
1026
+ // src/SimpleBootHttpServer.ts
1027
+ var SimpleBootHttpServer = class extends import_SimpleApplication.SimpleApplication {
1028
+ constructor(option = new HttpServerOption()) {
1029
+ super(option);
1030
+ this.option = option;
1031
+ this.sessionManager = new SessionManager(this.option);
1032
+ }
1033
+ run(otherInstanceSim) {
1034
+ const simstanceManager = super.run(otherInstanceSim);
1035
+ const targets = [...this.option.closeEndPoints ?? [], ...this.option.errorEndPoints ?? [], ...this.option.requestEndPoints ?? [], ...this.option.filters ?? []];
1036
+ Promise.all(targets.map((it) => typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it).map((it) => it.onInit(this))).then((it) => {
1037
+ this.startServer();
1038
+ });
1039
+ return simstanceManager;
1040
+ }
1041
+ startServer() {
1042
+ if (this.option.serverOption && "key" in this.option.serverOption && "cert" in this.option.serverOption) {
1043
+ this.server = new import_https.Server(this.option.serverOption);
1044
+ const httpServer = new import_http.Server();
1045
+ httpServer.on("request", (req, res) => {
1046
+ res.writeHead(301, { Location: `https://${req.headers.host}${req.url}` });
1047
+ res.end();
1048
+ });
1049
+ httpServer.listen(80, this.option.listen.hostname, () => {
1050
+ console.log("HTTP redirect server running on port 80");
1051
+ });
1052
+ } else if (this.option.serverOption) {
1053
+ this.server = new import_http.Server(this.option.serverOption);
1054
+ } else {
1055
+ this.server = new import_http.Server();
1056
+ }
1057
+ this.server.on("request", async (req, res) => {
1058
+ const transactionManager = this.option.transactionManagerFactory ? await this.option.transactionManagerFactory() : void 0;
1059
+ res.on("close", async () => {
1060
+ if (this.option.closeEndPoints) {
1061
+ for (const it of this.option.closeEndPoints) {
1062
+ try {
1063
+ const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
1064
+ const endPoint = execute?.endPoint(rr, this);
1065
+ if (endPoint instanceof Promise) {
1066
+ await endPoint;
1067
+ }
1068
+ } catch (e) {
1069
+ }
1070
+ }
1071
+ }
1072
+ if (!rr.resIsDone()) {
1073
+ rr.resEnd();
1074
+ }
1075
+ });
1076
+ res.on("error", async () => {
1077
+ if (this.option.errorEndPoints) {
1078
+ for (const it of this.option.errorEndPoints) {
1079
+ try {
1080
+ const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
1081
+ const endPoint = execute?.endPoint(rr, this);
1082
+ if (endPoint instanceof Promise) {
1083
+ await endPoint;
1084
+ }
1085
+ } catch (e) {
1086
+ }
1087
+ }
1088
+ }
1089
+ if (!rr.resIsDone()) {
1090
+ rr.resEnd();
1091
+ }
1092
+ });
1093
+ const rr = new RequestResponse(req, res, { sessionManager: this.sessionManager, option: this.option });
1094
+ rr.resSetHeader("Server" /* Server */, "simple-boot-http-server");
1095
+ const cookie = rr.reqCookieGet(this.option.sessionOption.key);
1096
+ if (!cookie) {
1097
+ const session = await this.sessionManager.session();
1098
+ rr.resSetHeader("Set-Cookie" /* SetCookie */, `${this.option.sessionOption.key}=${session.uuid}; Path=/; HttpOnly`);
1099
+ }
1100
+ const otherStorage = /* @__PURE__ */ new Map();
1101
+ otherStorage.set(RequestResponse, rr);
1102
+ otherStorage.set(import_http.IncomingMessage, req);
1103
+ otherStorage.set(import_http.ServerResponse, res);
1104
+ try {
1105
+ transactionManager?.try();
1106
+ if (this.option.requestEndPoints) {
1107
+ for (const it of this.option.requestEndPoints) {
1108
+ try {
1109
+ const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
1110
+ execute?.endPoint(rr, this);
1111
+ } catch (e) {
1112
+ }
1113
+ }
1114
+ }
1115
+ const filter = {
1116
+ carrier: /* @__PURE__ */ new Map(),
1117
+ filters: []
1118
+ };
1119
+ for (let i = 0; this.option.filters && i < this.option.filters.length; i++) {
1120
+ const it = this.option.filters[i];
1121
+ const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
1122
+ let sw = true;
1123
+ if (execute?.proceedBefore) {
1124
+ sw = await execute.proceedBefore({ rr, app: this, carrier: filter.carrier });
1125
+ filter.filters.push({ filter: execute, sw });
1126
+ }
1127
+ if (!sw) {
1128
+ break;
1129
+ }
1130
+ }
1131
+ if (!rr.resIsDone()) {
1132
+ const routerModule = await super.routing(rr.reqIntent);
1133
+ otherStorage.set(import_RouterModule.RouterModule, routerModule);
1134
+ const moduleInstance = routerModule?.getModuleInstance?.();
1135
+ let methods = [];
1136
+ if (routerModule && moduleInstance) {
1137
+ if (routerModule.propertyKeys) {
1138
+ const map = routerModule.propertyKeys?.map((it) => {
1139
+ return { propertyKey: it, config: getUrlMapping(moduleInstance, it) };
1140
+ });
1141
+ methods.push(...map ?? []);
1142
+ } else {
1143
+ methods.push(...getUrlMappings(moduleInstance).filter((it) => !(0, import_Router.getRoute)(moduleInstance, it.propertyKey)) ?? []);
1144
+ }
1145
+ if (rr.reqMethod()?.toUpperCase() === "OPTIONS" /* OPTIONS */.toUpperCase()) {
1146
+ rr.resSetHeader("Allow" /* Allow */, methods.map((it) => it.config.method).join(", "));
1147
+ rr.resStatusCode(200 /* Ok */);
1148
+ }
1149
+ methods = methods.filter((it) => it && it.propertyKey && it.config && rr.reqMethod()?.toUpperCase() === it.config.method.toUpperCase());
1150
+ methods.sort((a, b) => {
1151
+ return (b.config?.req?.contentType?.length ?? 0) + (b.config?.req?.accept?.length ?? 0) - ((a.config?.req?.contentType?.length ?? 0) + (a.config?.req?.accept?.length ?? 0));
1152
+ });
1153
+ methods = methods.filter((it) => it.config?.req?.contentType ? !!it.config?.req?.contentType?.find((sit) => rr.reqHasContentTypeHeader(sit)) : true).filter((it) => it.config?.req?.accept ? !!it.config?.req?.accept?.find((sit) => rr.reqHasAcceptHeader(sit)) : true);
1154
+ if (methods[0]) {
1155
+ const it = methods[0];
1156
+ const paramTypes = import_ReflectUtils2.ReflectUtils.getParameterTypes(moduleInstance, it.propertyKey);
1157
+ const injects = (0, import_Inject.getInject)(moduleInstance, it.propertyKey);
1158
+ const validIndexs = (0, import_Validation.getValidIndex)(moduleInstance, it.propertyKey);
1159
+ if (injects) {
1160
+ const isJson = injects.find((it2) => it2.config?.situationType === "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY" /* REQ_JSON_BODY */);
1161
+ const isFormUrl = injects.find((it2) => it2.config?.situationType === "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY" /* REQ_FORM_URL_BODY */);
1162
+ const isTransactionManager = injects.find((it2) => it2.config?.situationType === InjectSituationType.TransactionManager);
1163
+ const siturationContainers = new import_Inject.SituationTypeContainers();
1164
+ if (isJson) {
1165
+ let data2 = await rr.reqBodyJsonData();
1166
+ if (isJson.type) {
1167
+ data2 = Object.assign(new isJson.type(), data2);
1168
+ }
1169
+ if (validIndexs.includes(isJson.index)) {
1170
+ const inValid = (0, import_Validation.execValidationInValid)(data2);
1171
+ if ((inValid?.length ?? 0) > 0) {
1172
+ throw new import_ValidException.ValidException(inValid);
1173
+ }
1174
+ }
1175
+ siturationContainers.push(new import_Inject.SituationTypeContainer({
1176
+ situationType: "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY" /* REQ_JSON_BODY */,
1177
+ data: data2
1178
+ }));
1179
+ }
1180
+ if (isFormUrl) {
1181
+ let data2 = await rr.reqBodyFormUrlData();
1182
+ if (isFormUrl.type) {
1183
+ data2 = Object.assign(new isFormUrl.type(), data2);
1184
+ }
1185
+ if (validIndexs.includes(isFormUrl.index)) {
1186
+ const inValid = (0, import_Validation.execValidationInValid)(data2);
1187
+ if ((inValid?.length ?? 0) > 0) {
1188
+ throw new import_ValidException.ValidException(inValid);
1189
+ }
1190
+ }
1191
+ siturationContainers.push(new import_Inject.SituationTypeContainer({ situationType: "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY" /* REQ_FORM_URL_BODY */, data: data2 }));
1192
+ }
1193
+ if (isTransactionManager && isTransactionManager.type && transactionManager && transactionManager.hasTransaction(isTransactionManager.type)) {
1194
+ let data2 = await transactionManager.getTransaction(isTransactionManager.type);
1195
+ if (data2) {
1196
+ data2 = await data2.try(isTransactionManager.config.argument);
1197
+ siturationContainers.push(new import_Inject.SituationTypeContainer({ situationType: InjectSituationType.TransactionManager, data: data2, index: isTransactionManager.index }));
1198
+ }
1199
+ }
1200
+ if (siturationContainers.length) {
1201
+ otherStorage.set(import_Inject.SituationTypeContainers, siturationContainers);
1202
+ }
1203
+ }
1204
+ for (const paramType of paramTypes) {
1205
+ if (paramType === ReqFormUrlBody) {
1206
+ otherStorage.set(ReqFormUrlBody, await rr.reqBodyReqFormUrlBody());
1207
+ } else if (paramType === ReqJsonBody) {
1208
+ otherStorage.set(ReqJsonBody, await rr.reqBodyReqJsonBody());
1209
+ } else if (paramType === import_url2.URLSearchParams) {
1210
+ otherStorage.set(import_url2.URLSearchParams, rr.reqUrlSearchParams);
1211
+ } else if (paramType === ReqMultipartFormBody) {
1212
+ otherStorage.set(ReqMultipartFormBody, rr.reqBodyMultipartFormData());
1213
+ } else if (paramType === ReqHeader) {
1214
+ otherStorage.set(ReqHeader, rr.reqHeaderObj);
1215
+ }
1216
+ }
1217
+ let data = await this.simstanceManager.executeBindParameterSimPromise({
1218
+ target: moduleInstance,
1219
+ targetKey: it.propertyKey
1220
+ }, otherStorage);
1221
+ if (it.config?.resolver) {
1222
+ const execute = typeof it.config.resolver === "function" ? this.simstanceManager.getOrNewSim({ target: it.config.resolver }) : it.config.resolver;
1223
+ data = await execute?.resolve?.(data, rr);
1224
+ }
1225
+ const status = it.config?.res?.status ?? 200 /* Ok */;
1226
+ const headers = it.config?.res?.header ?? {};
1227
+ if (it.config?.res?.contentType) {
1228
+ headers["Content-Type" /* ContentType */] = it.config?.res?.contentType;
1229
+ }
1230
+ if ((it.config?.res?.contentType?.toLowerCase().indexOf("application/json" /* ApplicationJson */.toLowerCase()) ?? -1) > -1) {
1231
+ data = JSON.stringify(data);
1232
+ } else if (data && typeof data === "object") {
1233
+ data = JSON.stringify(data);
1234
+ }
1235
+ rr.resSetHeaders(headers);
1236
+ rr.resSetStatusCode(status);
1237
+ rr.resWrite(data);
1238
+ }
1239
+ }
1240
+ if (this.option.noSuchRouteEndPointMappingThrow && methods.length <= 0 && rr.reqMethod()?.toUpperCase() !== "OPTIONS" /* OPTIONS */) {
1241
+ throw this.option.noSuchRouteEndPointMappingThrow(rr);
1242
+ }
1243
+ }
1244
+ for (const it of filter.filters.reverse()) {
1245
+ if (it.filter?.proceedAfter && !await it.filter.proceedAfter({ rr, app: this, before: it.sw, carrier: filter.carrier })) {
1246
+ break;
1247
+ }
1248
+ }
1249
+ } catch (e) {
1250
+ transactionManager?.catch(e);
1251
+ rr.resStatusCode(e instanceof HttpError ? e.status : 500 /* InternalServerError */);
1252
+ const execute = typeof this.option.globalAdvice === "function" ? this.simstanceManager.getOrNewSim(this.option.globalAdvice) : this.option.globalAdvice;
1253
+ if (!execute) {
1254
+ rr.resEnd();
1255
+ return;
1256
+ }
1257
+ if (e && typeof e === "object") {
1258
+ otherStorage.set(e.constructor, e);
1259
+ otherStorage.set(import_Inject.SituationTypeContainer, new import_Inject.SituationTypeContainer({
1260
+ situationType: import_ExceptionDecorator.ExceptionHandlerSituationType.ERROR_OBJECT,
1261
+ data: e
1262
+ }));
1263
+ }
1264
+ const target = (0, import_ExceptionDecorator.targetExceptionHandler)(execute, e);
1265
+ if (target) {
1266
+ await this.simstanceManager.executeBindParameterSimPromise({
1267
+ target: execute,
1268
+ targetKey: target.propertyKey
1269
+ }, otherStorage);
1270
+ }
1271
+ } finally {
1272
+ transactionManager?.finally();
1273
+ }
1274
+ if (!rr.resIsDone()) {
1275
+ rr.resEnd();
1276
+ }
1277
+ });
1278
+ this.server.listen(this.option.listen.port, this.option.listen.hostname, this.option.listen.backlog, () => {
1279
+ this.option.listen.listeningListener?.(this, this.server);
1280
+ });
1281
+ }
1282
+ };
1283
+
1284
+ // src/endpoints/CrossDomainHeaderEndPoint.ts
1285
+ var CrossDomainHeaderEndPoint = class {
1286
+ constructor(config) {
1287
+ this.config = config;
1288
+ }
1289
+ /*
1290
+ rr.resSetHeader("Access-Control-Allow-Origin", "*")
1291
+ rr.resSetHeader("Access-Control-Allow-Methods", "DELETE, POST, GET, OPTIONS")
1292
+ rr.resSetHeader("Access-Control-Allow-Headers", "Content-Type, Authorization, X-Requested-With")
1293
+ */
1294
+ async endPoint(rr, app) {
1295
+ if (this.config?.accessControlAllowOrigin) {
1296
+ rr.resSetHeader("Access-Control-Allow-Origin" /* AccessControlAllowOrigin */, Array.isArray(this.config.accessControlAllowOrigin) ? this.config.accessControlAllowOrigin.join(", ") : this.config.accessControlAllowOrigin);
1297
+ }
1298
+ if (this.config?.accessControlAllowMethods) {
1299
+ rr.resSetHeader("Access-Control-Allow-Methods" /* AccessControlAllowMethods */, Array.isArray(this.config.accessControlAllowMethods) ? this.config.accessControlAllowMethods.join(", ") : this.config.accessControlAllowMethods);
1300
+ }
1301
+ if (this.config?.accessControlAllowHeaders) {
1302
+ rr.resSetHeader("Access-Control-Allow-Headers" /* AccessControlAllowHeaders */, Array.isArray(this.config.accessControlAllowHeaders) ? this.config.accessControlAllowHeaders.join(", ") : this.config.accessControlAllowHeaders);
1303
+ }
1304
+ if (this.config?.accessControlExposeHeaders) {
1305
+ rr.resSetHeader("Access-Control-Expose-Headers" /* AccessControlExposeHeaders */, Array.isArray(this.config.accessControlExposeHeaders) ? this.config.accessControlExposeHeaders.join(", ") : this.config.accessControlExposeHeaders);
1306
+ }
1307
+ }
1308
+ async onInit(app) {
1309
+ }
1310
+ };
1311
+
1312
+ // src/endpoints/HeaderEndPoint.ts
1313
+ var HeaderEndPoint = class {
1314
+ constructor(headers) {
1315
+ this.headers = headers;
1316
+ }
1317
+ async endPoint(rr, app) {
1318
+ if (this.headers) {
1319
+ rr.resSetHeaders(this.headers);
1320
+ }
1321
+ }
1322
+ async onInit(app) {
1323
+ }
1324
+ };
1325
+
1326
+ // src/errors/BadRequestError.ts
1327
+ var BadRequestError = class extends HttpError {
1328
+ constructor({ status = 400 /* BadRequest */, message = "Bad Request" } = {}) {
1329
+ super({ status, message });
1330
+ }
1331
+ };
1332
+
1333
+ // src/errors/ForbiddenError.ts
1334
+ var ForbiddenError = class extends HttpError {
1335
+ constructor({ status = 403 /* Forbidden */, message = "Forbidden" } = {}) {
1336
+ super({ status, message });
1337
+ }
1338
+ };
1339
+
1340
+ // src/errors/InternalServerError.ts
1341
+ var InternalServerError = class extends HttpError {
1342
+ constructor({ status = 500 /* InternalServerError */, message = "Internal Server Error" } = {}) {
1343
+ super({ status, message });
1344
+ }
1345
+ };
1346
+
1347
+ // src/errors/NotFoundError.ts
1348
+ var NotFoundError = class extends HttpError {
1349
+ constructor({ status = 404 /* NotFound */, message = "Not Found" } = {}) {
1350
+ super({ status, message });
1351
+ }
1352
+ };
1353
+
1354
+ // src/errors/UnauthorizedError.ts
1355
+ var UnauthorizedError = class extends HttpError {
1356
+ constructor({ status = 401 /* Unauthorized */, message = "Unauthorized" } = {}) {
1357
+ super({ status, message });
1358
+ }
1359
+ };
1360
+
1361
+ // src/filters/CacheFilter.ts
1362
+ var import_FileUtils2 = require("@dooboostore/core-node/file/FileUtils");
1363
+ var import_ConvertUtils3 = require("@dooboostore/core-node/convert/ConvertUtils");
1364
+ var import_RandomUtils2 = require("@dooboostore/core/random/RandomUtils");
1365
+ var CacheFilter = class _CacheFilter {
1366
+ constructor(config) {
1367
+ this.config = config;
1368
+ this.storage = /* @__PURE__ */ new Map();
1369
+ if (config.config.cacheDir && config.config.startUpClean) {
1370
+ import_FileUtils2.FileUtils.deleteSync(config.config.cacheDir, { options: { recursive: true } });
1371
+ }
1372
+ }
1373
+ static {
1374
+ this.CARRIER_KEY_NAME = "_CARRIER_CACHE_FILTER_KEY_NAME";
1375
+ }
1376
+ async onInit(app) {
1377
+ }
1378
+ async proceedBefore({ rr, app, carrier }) {
1379
+ const filter = this.config.filter?.(rr, app);
1380
+ if (!filter) {
1381
+ return true;
1382
+ }
1383
+ if (this.config.config.cacheDir) {
1384
+ import_FileUtils2.FileUtils.mkdirSync(this.config.config.cacheDir, { recursive: true });
1385
+ }
1386
+ if (!this.cacheConfig && this.config.config.cacheDir) {
1387
+ try {
1388
+ this.cacheConfig = JSON.parse(import_ConvertUtils3.ConvertUtils.toString(import_FileUtils2.FileUtils.readSync([this.config.config.cacheDir, "cacheConfig.json"], { option: { encoding: "utf-8" } })));
1389
+ } catch (e) {
1390
+ }
1391
+ }
1392
+ const date = (/* @__PURE__ */ new Date()).toISOString();
1393
+ this.cacheConfig ??= {
1394
+ createDate: date,
1395
+ updateDate: date,
1396
+ // accessDate: date,
1397
+ caches: {}
1398
+ };
1399
+ this.cacheConfig.createDate ??= date;
1400
+ this.cacheConfig.updateDate ??= date;
1401
+ this.cacheConfig.caches ??= {};
1402
+ const rkey = this.config.key(rr, app);
1403
+ const sessionData = { key: rkey.key, lifeTime: rkey.lifeTime ?? this.config.config.lifeTime, isUpdate: false, responseHeaders: rkey.responseHeaders };
1404
+ const cache = this.cacheConfig.caches[sessionData.key];
1405
+ if (cache) {
1406
+ const existes = this.config.config.cacheDir ? import_FileUtils2.FileUtils.existsSync(cache.path) : this.storage.has(cache.path);
1407
+ const diffTime = Date.now() - cache.createTime;
1408
+ if (!existes || diffTime > cache.lifeTime) {
1409
+ delete this.cacheConfig[sessionData.key];
1410
+ this.deleteChunk(cache.path);
1411
+ sessionData.isUpdate = true;
1412
+ } else {
1413
+ rr.resSetHeaders({
1414
+ ...cache.responseHeader,
1415
+ cacheFilter: `true;remainTime=${cache.lifeTime - diffTime}`
1416
+ });
1417
+ try {
1418
+ const chunk = this.getChunk(cache.path);
1419
+ await rr.resEnd(chunk);
1420
+ } catch (e) {
1421
+ console.log("--------e", e);
1422
+ }
1423
+ }
1424
+ } else {
1425
+ sessionData.isUpdate = true;
1426
+ }
1427
+ carrier.set(_CacheFilter.CARRIER_KEY_NAME, sessionData);
1428
+ return sessionData.isUpdate;
1429
+ }
1430
+ deleteChunk(path3) {
1431
+ if (this.config.config.cacheDir && import_FileUtils2.FileUtils.existsSync(path3)) {
1432
+ import_FileUtils2.FileUtils.deleteFileSync(path3);
1433
+ } else if (this.storage.has(path3)) {
1434
+ this.storage.delete(path3);
1435
+ }
1436
+ }
1437
+ getChunk(path3) {
1438
+ return this.config.config.cacheDir ? import_FileUtils2.FileUtils.readSync(path3) : this.storage.get(path3);
1439
+ }
1440
+ async proceedAfter({ rr, app, carrier }) {
1441
+ const sessionData = carrier.get(_CacheFilter.CARRIER_KEY_NAME);
1442
+ if (sessionData && sessionData.isUpdate) {
1443
+ try {
1444
+ if (this.config.config.cacheDir) {
1445
+ import_FileUtils2.FileUtils.mkdirSync([this.config.config.cacheDir, "caches"], { recursive: true });
1446
+ }
1447
+ const resBody = rr.resBodyData();
1448
+ if (!resBody) {
1449
+ return true;
1450
+ }
1451
+ let p = void 0;
1452
+ const destFileUUID = import_RandomUtils2.RandomUtils.uuid4();
1453
+ p = this.writeChunk(destFileUUID, resBody);
1454
+ const updateDateNow = Date.now();
1455
+ const updateDate = new Date(updateDateNow).toISOString();
1456
+ this.cacheConfig.createDate ??= updateDate;
1457
+ this.cacheConfig.updateDate = updateDate;
1458
+ const responseHeaders = {};
1459
+ sessionData.responseHeaders?.map((it) => it.toLowerCase()).forEach((it) => {
1460
+ responseHeaders[it] = rr.resHeader(it);
1461
+ });
1462
+ this.cacheConfig.caches[sessionData.key] = {
1463
+ path: p,
1464
+ createTime: updateDateNow,
1465
+ lifeTime: sessionData.lifeTime,
1466
+ responseHeader: responseHeaders
1467
+ };
1468
+ if (this.config.config.cacheDir) {
1469
+ import_FileUtils2.FileUtils.write(JSON.stringify(this.cacheConfig), { path: [this.config.config.cacheDir, "cacheConfig.json"] });
1470
+ }
1471
+ } catch (e) {
1472
+ console.log("---", e);
1473
+ }
1474
+ }
1475
+ return true;
1476
+ }
1477
+ writeChunk(destFileUUID, resBody) {
1478
+ if (this.config.config.cacheDir) {
1479
+ return import_FileUtils2.FileUtils.write(resBody, { path: [this.config.config.cacheDir, "caches", destFileUUID] });
1480
+ } else {
1481
+ this.storage.set(destFileUUID, resBody);
1482
+ return destFileUUID;
1483
+ }
1484
+ }
1485
+ };
1486
+
1487
+ // src/filters/HttpStatusFilter.ts
1488
+ var HttpStatusFilter = class {
1489
+ constructor(httpStatus) {
1490
+ this.httpStatus = httpStatus;
1491
+ }
1492
+ async proceedBefore({ rr, app }) {
1493
+ rr.resStatusCode(this.httpStatus);
1494
+ rr.resEnd();
1495
+ return false;
1496
+ }
1497
+ async proceedAfter({ rr, app }) {
1498
+ return true;
1499
+ }
1500
+ async onInit(app) {
1501
+ }
1502
+ };
1503
+
1504
+ // src/filters/OpenApi3Filter.ts
1505
+ var DefulatData = {
1506
+ openapi: "3.0.1",
1507
+ info: {
1508
+ title: "SimpleBootHttpServer OpenApi3",
1509
+ description: "SimpleBootHttpServer OpenApi3"
1510
+ }
1511
+ };
1512
+ var OpenApi3Filter = class {
1513
+ constructor(config, openApiConfig) {
1514
+ this.config = config;
1515
+ this.openApiConfig = Object.assign(Object.assign({}, DefulatData), openApiConfig ?? {});
1516
+ }
1517
+ async onInit(app) {
1518
+ }
1519
+ async proceedBefore({ rr, app }) {
1520
+ if (rr.reqUrl === this.config.path) {
1521
+ const map = app.routerManager.routingMap();
1522
+ const data = {
1523
+ paths: {}
1524
+ };
1525
+ Object.entries(map).filter(([k, v]) => typeof v !== "string").forEach(([k, v]) => {
1526
+ const method = data.paths[k] = {};
1527
+ getUrlMappings(v)?.forEach((it) => {
1528
+ method[it.config.method] = {
1529
+ summary: it.propertyKey,
1530
+ description: it.propertyKey
1531
+ // operationId: it.operationId,
1532
+ // parameters: it.parameters,
1533
+ // responses: it.responses,
1534
+ };
1535
+ });
1536
+ });
1537
+ rr.resWriteJson(Object.assign(Object.assign({}, this.openApiConfig), data)).resStatusCode(200 /* Ok */).resEnd();
1538
+ return false;
1539
+ }
1540
+ return true;
1541
+ }
1542
+ async proceedAfter({ rr, app }) {
1543
+ return true;
1544
+ }
1545
+ };
1546
+
1547
+ // src/filters/ResourceFilter.ts
1548
+ var import_fs = __toESM(require("fs"), 1);
1549
+ var import_path = __toESM(require("path"), 1);
1550
+ var import_mime_types = __toESM(require("mime-types"), 1);
1551
+ var ResourceFilter = class {
1552
+ constructor(resourceDistPath, resourceRegex = []) {
1553
+ this.resourceDistPath = resourceDistPath;
1554
+ this.resourceRegex = resourceRegex;
1555
+ }
1556
+ async onInit(app) {
1557
+ }
1558
+ async proceedBefore({ rr, app }) {
1559
+ const url = (rr.reqUrlPathName ?? "").replace(/\.\./g, "");
1560
+ const urlObj = rr.reqUrlObject;
1561
+ let sw = true;
1562
+ const regExps = this.resourceRegex.filter((it) => {
1563
+ if (it instanceof RegExp) {
1564
+ return it.test(url);
1565
+ }
1566
+ if (typeof it === "string") {
1567
+ return RegExp(it).test(url);
1568
+ }
1569
+ if (typeof it === "function") {
1570
+ return it(rr, app);
1571
+ }
1572
+ if (typeof it === "object" && "request" in it) {
1573
+ if (typeof it.request === "function") {
1574
+ return it.request(rr, app);
1575
+ }
1576
+ return RegExp(it.request).test(url);
1577
+ }
1578
+ });
1579
+ for (const it of regExps) {
1580
+ const resourcePath = import_path.default.join(this.resourceDistPath, typeof it === "object" && "dist" in it ? it.dist : urlObj.pathname);
1581
+ sw = false;
1582
+ if (import_fs.default.existsSync(resourcePath)) {
1583
+ rr.resStatusCode(200 /* Ok */);
1584
+ rr.resSetHeader("Content-Type" /* ContentType */, import_mime_types.default.lookup(resourcePath).toString());
1585
+ await rr.resEnd(import_fs.default.readFileSync(resourcePath));
1586
+ break;
1587
+ } else {
1588
+ rr.resStatusCode(404 /* NotFound */);
1589
+ await rr.resEnd();
1590
+ break;
1591
+ }
1592
+ sw = false;
1593
+ }
1594
+ return sw;
1595
+ }
1596
+ async proceedAfter({ rr, app }) {
1597
+ return true;
1598
+ }
1599
+ };
1600
+
1601
+ // src/filters/ThrowFilter.ts
1602
+ var ThrowFilter = class {
1603
+ constructor(error) {
1604
+ this.error = error;
1605
+ }
1606
+ async onInit(app) {
1607
+ }
1608
+ async proceedBefore({ rr, app }) {
1609
+ return true;
1610
+ }
1611
+ async proceedAfter({ rr, app }) {
1612
+ const sw = rr.resIsDone();
1613
+ if (!sw) {
1614
+ throw this.error;
1615
+ }
1616
+ ;
1617
+ return false;
1618
+ }
1619
+ };
1620
+
1621
+ // src/models/datas/HeaderData.ts
1622
+ var HeaderData = class {
1623
+ constructor(header, data) {
1624
+ this.header = header;
1625
+ this.data = data;
1626
+ }
1627
+ };
1628
+
1629
+ // src/models/datas/Resource.ts
1630
+ var import_fs2 = __toESM(require("fs"), 1);
1631
+ var import_path2 = __toESM(require("path"), 1);
1632
+ var import_mime_types2 = __toESM(require("mime-types"), 1);
1633
+ var Resource = class {
1634
+ constructor(path3, rootPath = process.cwd()) {
1635
+ this.path = path3;
1636
+ this.rootPath = rootPath;
1637
+ }
1638
+ get absolutePath() {
1639
+ if (this.path instanceof RequestResponse) {
1640
+ return import_path2.default.join(this.rootPath, this.path.reqUrlObj().pathname);
1641
+ } else if (this.path instanceof URL) {
1642
+ return import_path2.default.join(this.rootPath, this.path.pathname);
1643
+ } else {
1644
+ return import_path2.default.join(this.rootPath, this.path);
1645
+ }
1646
+ }
1647
+ get conTentType() {
1648
+ return import_mime_types2.default.lookup(this.absolutePath).toString();
1649
+ }
1650
+ get data() {
1651
+ const promise = new Promise((resolve, reject) => {
1652
+ import_fs2.default.readFile("", (error, fileBuffer) => {
1653
+ if (error) {
1654
+ reject(error);
1655
+ }
1656
+ const fileContent = fileBuffer.toString();
1657
+ resolve(fileContent);
1658
+ });
1659
+ });
1660
+ return promise;
1661
+ }
1662
+ async write(rr) {
1663
+ rr.resStatusCode(200 /* Ok */);
1664
+ rr.resSetHeader("Content-Type" /* ContentType */, this.conTentType);
1665
+ await rr.resEnd(import_fs2.default.readFileSync(this.absolutePath));
1666
+ }
1667
+ };
1668
+
1669
+ // src/models/method/patch/PatchJson.ts
1670
+ var import_fast_json_patch = __toESM(require("fast-json-patch"), 1);
1671
+ var PatchJson = class {
1672
+ constructor(patch) {
1673
+ this.patch = patch;
1674
+ }
1675
+ apply(obj) {
1676
+ obj = import_fast_json_patch.default.applyPatch(obj, this.patch).newDocument;
1677
+ return obj;
1678
+ }
1679
+ };
1680
+
1681
+ // src/resolvers/ResourceResolver.ts
1682
+ var import_SimDecorator = require("@dooboostore/simple-boot/decorators/SimDecorator");
1683
+ var ResourceResolver = class {
1684
+ resolve(data, rr) {
1685
+ return new Resource(data ?? rr).write(rr);
1686
+ }
1687
+ };
1688
+ ResourceResolver = __decorateClass([
1689
+ import_SimDecorator.Sim
1690
+ ], ResourceResolver);
1691
+ // Annotate the CommonJS export names for ESM import in node:
1692
+ 0 && (module.exports = {
1693
+ BadRequestError,
1694
+ CONNECT,
1695
+ CacheFilter,
1696
+ CrossDomainHeaderEndPoint,
1697
+ DELETE,
1698
+ ForbiddenError,
1699
+ GET,
1700
+ HEAD,
1701
+ HeaderData,
1702
+ HeaderEndPoint,
1703
+ HttpError,
1704
+ HttpHeaders,
1705
+ HttpMethod,
1706
+ HttpServerOption,
1707
+ HttpStatus,
1708
+ HttpStatusFilter,
1709
+ InjectSituationType,
1710
+ InternalServerError,
1711
+ Mimes,
1712
+ NotFoundError,
1713
+ OPTIONS,
1714
+ OpenApi3Filter,
1715
+ PATCH,
1716
+ POST,
1717
+ PUT,
1718
+ PatchJson,
1719
+ ReqFormUrlBody,
1720
+ ReqHeader,
1721
+ ReqJsonBody,
1722
+ ReqMultipartFormBody,
1723
+ RequestResponse,
1724
+ RequestResponseChain,
1725
+ Resource,
1726
+ ResourceFilter,
1727
+ ResourceResolver,
1728
+ SessionManager,
1729
+ SimpleBootHttpServer,
1730
+ TRACE,
1731
+ ThrowFilter,
1732
+ UnauthorizedError,
1733
+ UrlMapping,
1734
+ UrlMappingSituationType,
1735
+ getCONNECT,
1736
+ getCONNECTS,
1737
+ getDELETE,
1738
+ getDELETES,
1739
+ getGET,
1740
+ getGETS,
1741
+ getHEAD,
1742
+ getHEADS,
1743
+ getOPTIONS,
1744
+ getOPTIONSS,
1745
+ getPATCH,
1746
+ getPATCHS,
1747
+ getPOST,
1748
+ getPOSTS,
1749
+ getPUT,
1750
+ getPUTS,
1751
+ getTRACE,
1752
+ getTRACES,
1753
+ getUrlMapping,
1754
+ getUrlMappings
1755
+ });
1756
+ //# sourceMappingURL=index.js.map