@infinilabs/ui-web-cli 0.0.10 → 0.0.12

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 (660) hide show
  1. package/lib/0079e63f520938463592cd7a0843212f.svg +14 -0
  2. package/lib/0a571b96d387f4634a7befe2f2bc53c8.svg +3 -0
  3. package/lib/0e765667a8748de641076b11f6486de8.svg +56 -0
  4. package/lib/194377418b2fbf8afa9e56eb76c2d9a4.svg +4 -0
  5. package/lib/30ab1c0680929f3a6787122511936e32.svg +92 -0
  6. package/lib/3f9e1a9c42604b1c961506b4b5b46308.svg +1 -0
  7. package/lib/4170056f6bbc0aded5171e160be26f9a.svg +3 -0
  8. package/lib/4d9ecf31b50c995fe93f95c152e6603e.svg +3 -0
  9. package/lib/65a0c13e69351c205ce0437592b8378b.svg +3 -0
  10. package/lib/75060ae827382b9be77f78d92beb74a7.svg +1 -0
  11. package/lib/9f89ab723e3c903880aa63e3fb556457.svg +16 -0
  12. package/lib/b471ea86c61b7950245176eebc5387fc.svg +3 -0
  13. package/lib/bfa5974347290867ce342cbbd33447aa.svg +3 -0
  14. package/lib/bundle.js +2 -0
  15. package/lib/bundle.js.LICENSE.txt +111 -0
  16. package/lib/d2b493d7bea46c12d63b69675f394353.svg +17 -0
  17. package/lib/d739fe5f0e3f0aa0777bc50578e2daff.svg +18 -0
  18. package/lib/f21a3ea489eedafc16b07759f34b40a9.svg +22 -0
  19. package/package.json +55 -52
  20. package/dist/_common-5n7Nh4LD.js +0 -10
  21. package/dist/_common-5n7Nh4LD.js.map +0 -1
  22. package/dist/_common-CMOqKs8V.cjs +0 -2
  23. package/dist/_common-CMOqKs8V.cjs.map +0 -1
  24. package/dist/bulk-5mm3LC-n.cjs +0 -2
  25. package/dist/bulk-5mm3LC-n.cjs.map +0 -1
  26. package/dist/bulk-Cb_gp4HI.js +0 -34
  27. package/dist/bulk-Cb_gp4HI.js.map +0 -1
  28. package/dist/cat.aliases-CTdyGkCx.js +0 -31
  29. package/dist/cat.aliases-CTdyGkCx.js.map +0 -1
  30. package/dist/cat.aliases-DnMoMbH3.cjs +0 -2
  31. package/dist/cat.aliases-DnMoMbH3.cjs.map +0 -1
  32. package/dist/cat.allocation-BM_YASyK.cjs +0 -2
  33. package/dist/cat.allocation-BM_YASyK.cjs.map +0 -1
  34. package/dist/cat.allocation-Dk_NKrJm.js +0 -38
  35. package/dist/cat.allocation-Dk_NKrJm.js.map +0 -1
  36. package/dist/cat.count-BaRuV9k0.js +0 -23
  37. package/dist/cat.count-BaRuV9k0.js.map +0 -1
  38. package/dist/cat.count-DtahJB4e.cjs +0 -2
  39. package/dist/cat.count-DtahJB4e.cjs.map +0 -1
  40. package/dist/cat.fielddata-Bf4DFcNn.cjs +0 -2
  41. package/dist/cat.fielddata-Bf4DFcNn.cjs.map +0 -1
  42. package/dist/cat.fielddata-Dsj8JZdl.js +0 -37
  43. package/dist/cat.fielddata-Dsj8JZdl.js.map +0 -1
  44. package/dist/cat.health-B8rSXJl5.cjs +0 -2
  45. package/dist/cat.health-B8rSXJl5.cjs.map +0 -1
  46. package/dist/cat.health-BUroHIiP.js +0 -32
  47. package/dist/cat.health-BUroHIiP.js.map +0 -1
  48. package/dist/cat.help-BBfM7V--.cjs +0 -2
  49. package/dist/cat.help-BBfM7V--.cjs.map +0 -1
  50. package/dist/cat.help-DkymuYTu.js +0 -19
  51. package/dist/cat.help-DkymuYTu.js.map +0 -1
  52. package/dist/cat.indices-B7dGCeWZ.cjs +0 -2
  53. package/dist/cat.indices-B7dGCeWZ.cjs.map +0 -1
  54. package/dist/cat.indices-CVI1MQM0.js +0 -61
  55. package/dist/cat.indices-CVI1MQM0.js.map +0 -1
  56. package/dist/cat.master-BO1xbYN-.cjs +0 -2
  57. package/dist/cat.master-BO1xbYN-.cjs.map +0 -1
  58. package/dist/cat.master-CO-hm2xx.js +0 -24
  59. package/dist/cat.master-CO-hm2xx.js.map +0 -1
  60. package/dist/cat.nodeattrs-CDPi2wGi.cjs +0 -2
  61. package/dist/cat.nodeattrs-CDPi2wGi.cjs.map +0 -1
  62. package/dist/cat.nodeattrs-Ff4nNeXI.js +0 -24
  63. package/dist/cat.nodeattrs-Ff4nNeXI.js.map +0 -1
  64. package/dist/cat.nodes-D4_vs31Q.js +0 -47
  65. package/dist/cat.nodes-D4_vs31Q.js.map +0 -1
  66. package/dist/cat.nodes-XNPR1TfD.cjs +0 -2
  67. package/dist/cat.nodes-XNPR1TfD.cjs.map +0 -1
  68. package/dist/cat.pending_tasks-BNkCJpdi.js +0 -33
  69. package/dist/cat.pending_tasks-BNkCJpdi.js.map +0 -1
  70. package/dist/cat.pending_tasks-C3LGOdj_.cjs +0 -2
  71. package/dist/cat.pending_tasks-C3LGOdj_.cjs.map +0 -1
  72. package/dist/cat.plugins-BtvSUMfZ.cjs +0 -2
  73. package/dist/cat.plugins-BtvSUMfZ.cjs.map +0 -1
  74. package/dist/cat.plugins-Dehk5__o.js +0 -24
  75. package/dist/cat.plugins-Dehk5__o.js.map +0 -1
  76. package/dist/cat.recovery-B6UD-IA8.js +0 -48
  77. package/dist/cat.recovery-B6UD-IA8.js.map +0 -1
  78. package/dist/cat.recovery-DYY_mQze.cjs +0 -2
  79. package/dist/cat.recovery-DYY_mQze.cjs.map +0 -1
  80. package/dist/cat.repositories-C_lz02zW.js +0 -24
  81. package/dist/cat.repositories-C_lz02zW.js.map +0 -1
  82. package/dist/cat.repositories-DHM-neKo.cjs +0 -2
  83. package/dist/cat.repositories-DHM-neKo.cjs.map +0 -1
  84. package/dist/cat.segments-B7AYrkZs.cjs +0 -2
  85. package/dist/cat.segments-B7AYrkZs.cjs.map +0 -1
  86. package/dist/cat.segments-DApYGj2j.js +0 -36
  87. package/dist/cat.segments-DApYGj2j.js.map +0 -1
  88. package/dist/cat.shards-BFohEeDv.cjs +0 -2
  89. package/dist/cat.shards-BFohEeDv.cjs.map +0 -1
  90. package/dist/cat.shards-Cknp8qqf.js +0 -47
  91. package/dist/cat.shards-Cknp8qqf.js.map +0 -1
  92. package/dist/cat.snapshots-B79mLWvF.cjs +0 -2
  93. package/dist/cat.snapshots-B79mLWvF.cjs.map +0 -1
  94. package/dist/cat.snapshots-D4WfvKVf.js +0 -34
  95. package/dist/cat.snapshots-D4WfvKVf.js.map +0 -1
  96. package/dist/cat.tasks-CSZT2FwV.js +0 -35
  97. package/dist/cat.tasks-CSZT2FwV.js.map +0 -1
  98. package/dist/cat.tasks-DzXoXAP3.cjs +0 -2
  99. package/dist/cat.tasks-DzXoXAP3.cjs.map +0 -1
  100. package/dist/cat.templates--VBAJ79z.cjs +0 -2
  101. package/dist/cat.templates--VBAJ79z.cjs.map +0 -1
  102. package/dist/cat.templates-BDob6Rfd.js +0 -25
  103. package/dist/cat.templates-BDob6Rfd.js.map +0 -1
  104. package/dist/cat.thread_pool-Dve3vc7H.cjs +0 -2
  105. package/dist/cat.thread_pool-Dve3vc7H.cjs.map +0 -1
  106. package/dist/cat.thread_pool-Oa7LMSqa.js +0 -33
  107. package/dist/cat.thread_pool-Oa7LMSqa.js.map +0 -1
  108. package/dist/clear_scroll-CGgyOrmQ.cjs +0 -2
  109. package/dist/clear_scroll-CGgyOrmQ.cjs.map +0 -1
  110. package/dist/clear_scroll-CoeqJJM6.cjs +0 -2
  111. package/dist/clear_scroll-CoeqJJM6.cjs.map +0 -1
  112. package/dist/clear_scroll-DTHb-58C.js +0 -16
  113. package/dist/clear_scroll-DTHb-58C.js.map +0 -1
  114. package/dist/clear_scroll-DVgMvvXT.js +0 -12
  115. package/dist/clear_scroll-DVgMvvXT.js.map +0 -1
  116. package/dist/cluster.allocation_explain-5uMsnyRu.cjs +0 -2
  117. package/dist/cluster.allocation_explain-5uMsnyRu.cjs.map +0 -1
  118. package/dist/cluster.allocation_explain-CYdNP0G_.js +0 -20
  119. package/dist/cluster.allocation_explain-CYdNP0G_.js.map +0 -1
  120. package/dist/cluster.delete_component_template-DBwaFwdW.js +0 -19
  121. package/dist/cluster.delete_component_template-DBwaFwdW.js.map +0 -1
  122. package/dist/cluster.delete_component_template-WYaVdav2.cjs +0 -2
  123. package/dist/cluster.delete_component_template-WYaVdav2.cjs.map +0 -1
  124. package/dist/cluster.get_component_template-DrQV6tby.js +0 -21
  125. package/dist/cluster.get_component_template-DrQV6tby.js.map +0 -1
  126. package/dist/cluster.get_component_template-uPK7ZXdY.cjs +0 -2
  127. package/dist/cluster.get_component_template-uPK7ZXdY.cjs.map +0 -1
  128. package/dist/cluster.get_settings-BLxROkUF.js +0 -21
  129. package/dist/cluster.get_settings-BLxROkUF.js.map +0 -1
  130. package/dist/cluster.get_settings-C5WGvBat.cjs +0 -2
  131. package/dist/cluster.get_settings-C5WGvBat.cjs.map +0 -1
  132. package/dist/cluster.health-BIY-QH5E.cjs +0 -2
  133. package/dist/cluster.health-BIY-QH5E.cjs.map +0 -1
  134. package/dist/cluster.health-C9RtOTFZ.cjs +0 -2
  135. package/dist/cluster.health-C9RtOTFZ.cjs.map +0 -1
  136. package/dist/cluster.health-Cy0MsK-_.js +0 -42
  137. package/dist/cluster.health-Cy0MsK-_.js.map +0 -1
  138. package/dist/cluster.health-c9Oq5JvO.js +0 -50
  139. package/dist/cluster.health-c9Oq5JvO.js.map +0 -1
  140. package/dist/cluster.pending_tasks-BByEdB17.cjs +0 -2
  141. package/dist/cluster.pending_tasks-BByEdB17.cjs.map +0 -1
  142. package/dist/cluster.pending_tasks-BPvnGEr-.js +0 -19
  143. package/dist/cluster.pending_tasks-BPvnGEr-.js.map +0 -1
  144. package/dist/cluster.put_component_template-B9SJPXm_.js +0 -26
  145. package/dist/cluster.put_component_template-B9SJPXm_.js.map +0 -1
  146. package/dist/cluster.put_component_template-Bs8kvYYz.cjs +0 -2
  147. package/dist/cluster.put_component_template-Bs8kvYYz.cjs.map +0 -1
  148. package/dist/cluster.put_component_template-Cu3GNNzk.js +0 -19
  149. package/dist/cluster.put_component_template-Cu3GNNzk.js.map +0 -1
  150. package/dist/cluster.put_component_template-Dpp0iPob.cjs +0 -2
  151. package/dist/cluster.put_component_template-Dpp0iPob.cjs.map +0 -1
  152. package/dist/cluster.put_settings-BjqeejQ_.js +0 -20
  153. package/dist/cluster.put_settings-BjqeejQ_.js.map +0 -1
  154. package/dist/cluster.put_settings-BufMweSm.cjs +0 -2
  155. package/dist/cluster.put_settings-BufMweSm.cjs.map +0 -1
  156. package/dist/cluster.put_settings-CmVNw-la.cjs +0 -2
  157. package/dist/cluster.put_settings-CmVNw-la.cjs.map +0 -1
  158. package/dist/cluster.put_settings-DFSjMdRK.js +0 -154
  159. package/dist/cluster.put_settings-DFSjMdRK.js.map +0 -1
  160. package/dist/cluster.remote_info-D2lcZ1Ym.cjs +0 -2
  161. package/dist/cluster.remote_info-D2lcZ1Ym.cjs.map +0 -1
  162. package/dist/cluster.remote_info-DZ5BtQXp.js +0 -15
  163. package/dist/cluster.remote_info-DZ5BtQXp.js.map +0 -1
  164. package/dist/cluster.reroute-B6f6Gmgu.js +0 -64
  165. package/dist/cluster.reroute-B6f6Gmgu.js.map +0 -1
  166. package/dist/cluster.reroute-CVmCu_5D.cjs +0 -2
  167. package/dist/cluster.reroute-CVmCu_5D.cjs.map +0 -1
  168. package/dist/cluster.reroute-Ca7B3s4P.cjs +0 -2
  169. package/dist/cluster.reroute-Ca7B3s4P.cjs.map +0 -1
  170. package/dist/cluster.reroute-ChOpPtnE.js +0 -23
  171. package/dist/cluster.reroute-ChOpPtnE.js.map +0 -1
  172. package/dist/cluster.state-BZZfYTNi.cjs +0 -2
  173. package/dist/cluster.state-BZZfYTNi.cjs.map +0 -1
  174. package/dist/cluster.state-C3p10h39.js +0 -46
  175. package/dist/cluster.state-C3p10h39.js.map +0 -1
  176. package/dist/cluster.stats-Da5JRRh6.cjs +0 -2
  177. package/dist/cluster.stats-Da5JRRh6.cjs.map +0 -1
  178. package/dist/cluster.stats-DlMsa15f.js +0 -20
  179. package/dist/cluster.stats-DlMsa15f.js.map +0 -1
  180. package/dist/count-C4MIuAZw.cjs +0 -2
  181. package/dist/count-C4MIuAZw.cjs.map +0 -1
  182. package/dist/count-CeHTsGbe.js +0 -43
  183. package/dist/count-CeHTsGbe.js.map +0 -1
  184. package/dist/count-DpQhibag.js +0 -13
  185. package/dist/count-DpQhibag.js.map +0 -1
  186. package/dist/count-XFzlrndY.cjs +0 -2
  187. package/dist/count-XFzlrndY.cjs.map +0 -1
  188. package/dist/create-BNeLmmv4.cjs +0 -2
  189. package/dist/create-BNeLmmv4.cjs.map +0 -1
  190. package/dist/create-bDnlL29y.js +0 -34
  191. package/dist/create-bDnlL29y.js.map +0 -1
  192. package/dist/delete-DfL1cQ5-.cjs +0 -2
  193. package/dist/delete-DfL1cQ5-.cjs.map +0 -1
  194. package/dist/delete-a9O4r-Al.js +0 -34
  195. package/dist/delete-a9O4r-Al.js.map +0 -1
  196. package/dist/delete_by_query-CFDMiFmM.cjs +0 -2
  197. package/dist/delete_by_query-CFDMiFmM.cjs.map +0 -1
  198. package/dist/delete_by_query-UXK0VTi1.js +0 -66
  199. package/dist/delete_by_query-UXK0VTi1.js.map +0 -1
  200. package/dist/delete_by_query_rethrottle-BykCpP0w.cjs +0 -2
  201. package/dist/delete_by_query_rethrottle-BykCpP0w.cjs.map +0 -1
  202. package/dist/delete_by_query_rethrottle-C0rKdW5t.js +0 -19
  203. package/dist/delete_by_query_rethrottle-C0rKdW5t.js.map +0 -1
  204. package/dist/delete_script-CV-JzzD3.cjs +0 -2
  205. package/dist/delete_script-CV-JzzD3.cjs.map +0 -1
  206. package/dist/delete_script-aoWW-JKY.js +0 -20
  207. package/dist/delete_script-aoWW-JKY.js.map +0 -1
  208. package/dist/exists-3-a1BjWn.cjs +0 -2
  209. package/dist/exists-3-a1BjWn.cjs.map +0 -1
  210. package/dist/exists-ny-4PdOG.js +0 -33
  211. package/dist/exists-ny-4PdOG.js.map +0 -1
  212. package/dist/exists_source-CPKUGlNi.js +0 -32
  213. package/dist/exists_source-CPKUGlNi.js.map +0 -1
  214. package/dist/exists_source-CZgoQsbu.cjs +0 -2
  215. package/dist/exists_source-CZgoQsbu.cjs.map +0 -1
  216. package/dist/explain-CRM7OZkG.js +0 -34
  217. package/dist/explain-CRM7OZkG.js.map +0 -1
  218. package/dist/explain-CUI_flx7.cjs +0 -2
  219. package/dist/explain-CUI_flx7.cjs.map +0 -1
  220. package/dist/favicon.ico +0 -0
  221. package/dist/field_caps-B64nCuEZ.js +0 -31
  222. package/dist/field_caps-B64nCuEZ.js.map +0 -1
  223. package/dist/field_caps-Cun8gqi4.cjs +0 -2
  224. package/dist/field_caps-Cun8gqi4.cjs.map +0 -1
  225. package/dist/get-BmbJZ5vO.js +0 -33
  226. package/dist/get-BmbJZ5vO.js.map +0 -1
  227. package/dist/get-DaALtELy.cjs +0 -2
  228. package/dist/get-DaALtELy.cjs.map +0 -1
  229. package/dist/get_script-DTHXjUfG.cjs +0 -2
  230. package/dist/get_script-DTHXjUfG.cjs.map +0 -1
  231. package/dist/get_script-WdoVCyAu.js +0 -19
  232. package/dist/get_script-WdoVCyAu.js.map +0 -1
  233. package/dist/get_script_context-BR7GsLOb.js +0 -15
  234. package/dist/get_script_context-BR7GsLOb.js.map +0 -1
  235. package/dist/get_script_context-oiMyBvK1.cjs +0 -2
  236. package/dist/get_script_context-oiMyBvK1.cjs.map +0 -1
  237. package/dist/get_script_languages-BCydMSc2.js +0 -15
  238. package/dist/get_script_languages-BCydMSc2.js.map +0 -1
  239. package/dist/get_script_languages-CLmFVKlG.cjs +0 -2
  240. package/dist/get_script_languages-CLmFVKlG.cjs.map +0 -1
  241. package/dist/get_source-CPfBrc6C.cjs +0 -2
  242. package/dist/get_source-CPfBrc6C.cjs.map +0 -1
  243. package/dist/get_source-ycYopG9R.js +0 -32
  244. package/dist/get_source-ycYopG9R.js.map +0 -1
  245. package/dist/index-CsL0mn-5.cjs +0 -2
  246. package/dist/index-CsL0mn-5.cjs.map +0 -1
  247. package/dist/index-DjzB7hu6.js +0 -41
  248. package/dist/index-DjzB7hu6.js.map +0 -1
  249. package/dist/indices.analyze-ByoFggw9.cjs +0 -2
  250. package/dist/indices.analyze-ByoFggw9.cjs.map +0 -1
  251. package/dist/indices.analyze-Ca_LdrpG.cjs +0 -2
  252. package/dist/indices.analyze-Ca_LdrpG.cjs.map +0 -1
  253. package/dist/indices.analyze-ClHIyNrM.js +0 -20
  254. package/dist/indices.analyze-ClHIyNrM.js.map +0 -1
  255. package/dist/indices.analyze-Cnk8z9Es.js +0 -23
  256. package/dist/indices.analyze-Cnk8z9Es.js.map +0 -1
  257. package/dist/indices.clear_cache-Bn2UQoFp.js +0 -32
  258. package/dist/indices.clear_cache-Bn2UQoFp.js.map +0 -1
  259. package/dist/indices.clear_cache-_YwdaEs0.cjs +0 -2
  260. package/dist/indices.clear_cache-_YwdaEs0.cjs.map +0 -1
  261. package/dist/indices.clone-8RL66eeg.cjs +0 -2
  262. package/dist/indices.clone-8RL66eeg.cjs.map +0 -1
  263. package/dist/indices.clone-BUxFyBRc.cjs +0 -2
  264. package/dist/indices.clone-BUxFyBRc.cjs.map +0 -1
  265. package/dist/indices.clone-CTqC1b-E.js +0 -21
  266. package/dist/indices.clone-CTqC1b-E.js.map +0 -1
  267. package/dist/indices.clone-OsTOcQwU.js +0 -18
  268. package/dist/indices.clone-OsTOcQwU.js.map +0 -1
  269. package/dist/indices.close-505GURha.js +0 -29
  270. package/dist/indices.close-505GURha.js.map +0 -1
  271. package/dist/indices.close-DTa6uPUz.cjs +0 -2
  272. package/dist/indices.close-DTa6uPUz.cjs.map +0 -1
  273. package/dist/indices.create-BiWtozmw.cjs +0 -2
  274. package/dist/indices.create-BiWtozmw.cjs.map +0 -1
  275. package/dist/indices.create-BxbZU62B.cjs +0 -2
  276. package/dist/indices.create-BxbZU62B.cjs.map +0 -1
  277. package/dist/indices.create-CiDS2KoE.js +0 -21
  278. package/dist/indices.create-CiDS2KoE.js.map +0 -1
  279. package/dist/indices.create-D6vAt5ML.js +0 -21
  280. package/dist/indices.create-D6vAt5ML.js.map +0 -1
  281. package/dist/indices.delete-CE2lZntY.cjs +0 -2
  282. package/dist/indices.delete-CE2lZntY.cjs.map +0 -1
  283. package/dist/indices.delete-xiFC1EGi.js +0 -28
  284. package/dist/indices.delete-xiFC1EGi.js.map +0 -1
  285. package/dist/indices.delete_alias-CdCUnANG.js +0 -20
  286. package/dist/indices.delete_alias-CdCUnANG.js.map +0 -1
  287. package/dist/indices.delete_alias-DQYnlM2Z.cjs +0 -2
  288. package/dist/indices.delete_alias-DQYnlM2Z.cjs.map +0 -1
  289. package/dist/indices.delete_template-Ce29Zn4u.js +0 -11
  290. package/dist/indices.delete_template-Ce29Zn4u.js.map +0 -1
  291. package/dist/indices.delete_template-DkYccHYX.cjs +0 -2
  292. package/dist/indices.delete_template-DkYccHYX.cjs.map +0 -1
  293. package/dist/indices.delete_template-KcMvxl6n.cjs +0 -2
  294. package/dist/indices.delete_template-KcMvxl6n.cjs.map +0 -1
  295. package/dist/indices.delete_template-f4TIEAKW.js +0 -19
  296. package/dist/indices.delete_template-f4TIEAKW.js.map +0 -1
  297. package/dist/indices.exists-CIaNfOEf.js +0 -29
  298. package/dist/indices.exists-CIaNfOEf.js.map +0 -1
  299. package/dist/indices.exists-Dwhj4QKp.cjs +0 -2
  300. package/dist/indices.exists-Dwhj4QKp.cjs.map +0 -1
  301. package/dist/indices.exists_alias-7t7EFwPH.cjs +0 -2
  302. package/dist/indices.exists_alias-7t7EFwPH.cjs.map +0 -1
  303. package/dist/indices.exists_alias-Dcjzo6TW.js +0 -28
  304. package/dist/indices.exists_alias-Dcjzo6TW.js.map +0 -1
  305. package/dist/indices.exists_template-BCKLcFt8.js +0 -20
  306. package/dist/indices.exists_template-BCKLcFt8.js.map +0 -1
  307. package/dist/indices.exists_template-CCI4XB1B.js +0 -11
  308. package/dist/indices.exists_template-CCI4XB1B.js.map +0 -1
  309. package/dist/indices.exists_template-CF_8-Wny.cjs +0 -2
  310. package/dist/indices.exists_template-CF_8-Wny.cjs.map +0 -1
  311. package/dist/indices.exists_template-CRpLrsu7.cjs +0 -2
  312. package/dist/indices.exists_template-CRpLrsu7.cjs.map +0 -1
  313. package/dist/indices.exists_type-D_gplC1G.js +0 -27
  314. package/dist/indices.exists_type-D_gplC1G.js.map +0 -1
  315. package/dist/indices.exists_type-wQ9DvIxA.cjs +0 -2
  316. package/dist/indices.exists_type-wQ9DvIxA.cjs.map +0 -1
  317. package/dist/indices.flush-BQ9SOVxx.js +0 -30
  318. package/dist/indices.flush-BQ9SOVxx.js.map +0 -1
  319. package/dist/indices.flush-NSDkNUwg.cjs +0 -2
  320. package/dist/indices.flush-NSDkNUwg.cjs.map +0 -1
  321. package/dist/indices.flush_synced-DWXJDccX.js +0 -27
  322. package/dist/indices.flush_synced-DWXJDccX.js.map +0 -1
  323. package/dist/indices.flush_synced-Dl6Y4gsT.cjs +0 -2
  324. package/dist/indices.flush_synced-Dl6Y4gsT.cjs.map +0 -1
  325. package/dist/indices.forcemerge-BySPCum-.cjs +0 -2
  326. package/dist/indices.forcemerge-BySPCum-.cjs.map +0 -1
  327. package/dist/indices.forcemerge-YZuwINa5.js +0 -30
  328. package/dist/indices.forcemerge-YZuwINa5.js.map +0 -1
  329. package/dist/indices.get-BdIK83rw.cjs +0 -2
  330. package/dist/indices.get-BdIK83rw.cjs.map +0 -1
  331. package/dist/indices.get-BmFk9klr.js +0 -31
  332. package/dist/indices.get-BmFk9klr.js.map +0 -1
  333. package/dist/indices.get_alias-BH5R9F7U.js +0 -30
  334. package/dist/indices.get_alias-BH5R9F7U.js.map +0 -1
  335. package/dist/indices.get_alias-BnSvYNtw.cjs +0 -2
  336. package/dist/indices.get_alias-BnSvYNtw.cjs.map +0 -1
  337. package/dist/indices.get_field_mapping-BGnjtBQZ.js +0 -30
  338. package/dist/indices.get_field_mapping-BGnjtBQZ.js.map +0 -1
  339. package/dist/indices.get_field_mapping-CYG2wNHO.cjs +0 -2
  340. package/dist/indices.get_field_mapping-CYG2wNHO.cjs.map +0 -1
  341. package/dist/indices.get_field_mapping-CvA9AE6t.js +0 -9
  342. package/dist/indices.get_field_mapping-CvA9AE6t.js.map +0 -1
  343. package/dist/indices.get_field_mapping-DXlWi4h4.cjs +0 -2
  344. package/dist/indices.get_field_mapping-DXlWi4h4.cjs.map +0 -1
  345. package/dist/indices.get_mapping-1X-z0p-G.js +0 -30
  346. package/dist/indices.get_mapping-1X-z0p-G.js.map +0 -1
  347. package/dist/indices.get_mapping-CICPJLBi.cjs +0 -2
  348. package/dist/indices.get_mapping-CICPJLBi.cjs.map +0 -1
  349. package/dist/indices.get_mapping-CrtmSCvN.cjs +0 -2
  350. package/dist/indices.get_mapping-CrtmSCvN.cjs.map +0 -1
  351. package/dist/indices.get_mapping-oH01DAQw.js +0 -9
  352. package/dist/indices.get_mapping-oH01DAQw.js.map +0 -1
  353. package/dist/indices.get_settings-DENLmeOj.js +0 -33
  354. package/dist/indices.get_settings-DENLmeOj.js.map +0 -1
  355. package/dist/indices.get_settings-DI3-Xphq.cjs +0 -2
  356. package/dist/indices.get_settings-DI3-Xphq.cjs.map +0 -1
  357. package/dist/indices.get_template-CKMQIoTZ.js +0 -22
  358. package/dist/indices.get_template-CKMQIoTZ.js.map +0 -1
  359. package/dist/indices.get_template-Cut8qYjL.js +0 -12
  360. package/dist/indices.get_template-Cut8qYjL.js.map +0 -1
  361. package/dist/indices.get_template-DGkghljU.cjs +0 -2
  362. package/dist/indices.get_template-DGkghljU.cjs.map +0 -1
  363. package/dist/indices.get_template-DzPfsFeU.cjs +0 -2
  364. package/dist/indices.get_template-DzPfsFeU.cjs.map +0 -1
  365. package/dist/indices.get_upgrade-Cwepj_3S.cjs +0 -2
  366. package/dist/indices.get_upgrade-Cwepj_3S.cjs.map +0 -1
  367. package/dist/indices.get_upgrade-XcKrUFWM.js +0 -27
  368. package/dist/indices.get_upgrade-XcKrUFWM.js.map +0 -1
  369. package/dist/indices.open-55bv4ufO.js +0 -29
  370. package/dist/indices.open-55bv4ufO.js.map +0 -1
  371. package/dist/indices.open-BPqJqVIp.cjs +0 -2
  372. package/dist/indices.open-BPqJqVIp.cjs.map +0 -1
  373. package/dist/indices.put_alias-BvKCrFYc.js +0 -21
  374. package/dist/indices.put_alias-BvKCrFYc.js.map +0 -1
  375. package/dist/indices.put_alias-Cf6m-sUg.cjs +0 -2
  376. package/dist/indices.put_alias-Cf6m-sUg.cjs.map +0 -1
  377. package/dist/indices.put_alias-DRGMKIZH.js +0 -14
  378. package/dist/indices.put_alias-DRGMKIZH.js.map +0 -1
  379. package/dist/indices.put_alias-Dl0nLnFj.cjs +0 -2
  380. package/dist/indices.put_alias-Dl0nLnFj.cjs.map +0 -1
  381. package/dist/indices.put_mapping-CubbpiC5.cjs +0 -2
  382. package/dist/indices.put_mapping-CubbpiC5.cjs.map +0 -1
  383. package/dist/indices.put_mapping-DBrIqvkv.js +0 -30
  384. package/dist/indices.put_mapping-DBrIqvkv.js.map +0 -1
  385. package/dist/indices.put_settings-ApYmb-G6.cjs +0 -2
  386. package/dist/indices.put_settings-ApYmb-G6.cjs.map +0 -1
  387. package/dist/indices.put_settings-BkNNavUe.js +0 -11
  388. package/dist/indices.put_settings-BkNNavUe.js.map +0 -1
  389. package/dist/indices.put_settings-DlaEA2qI.cjs +0 -2
  390. package/dist/indices.put_settings-DlaEA2qI.cjs.map +0 -1
  391. package/dist/indices.put_settings-ubg7XoYH.js +0 -31
  392. package/dist/indices.put_settings-ubg7XoYH.js.map +0 -1
  393. package/dist/indices.put_template-ByuVJUou.js +0 -23
  394. package/dist/indices.put_template-ByuVJUou.js.map +0 -1
  395. package/dist/indices.put_template-CkmLUYRN.cjs +0 -2
  396. package/dist/indices.put_template-CkmLUYRN.cjs.map +0 -1
  397. package/dist/indices.put_template-D4DgOXNy.js +0 -27
  398. package/dist/indices.put_template-D4DgOXNy.js.map +0 -1
  399. package/dist/indices.put_template-Y2qnGcJL.cjs +0 -2
  400. package/dist/indices.put_template-Y2qnGcJL.cjs.map +0 -1
  401. package/dist/indices.recovery-BvGicjmF.js +0 -20
  402. package/dist/indices.recovery-BvGicjmF.js.map +0 -1
  403. package/dist/indices.recovery-wXwYhDT0.cjs +0 -2
  404. package/dist/indices.recovery-wXwYhDT0.cjs.map +0 -1
  405. package/dist/indices.refresh-B0i-iy3V.js +0 -28
  406. package/dist/indices.refresh-B0i-iy3V.js.map +0 -1
  407. package/dist/indices.refresh-D-1MhdaQ.cjs +0 -2
  408. package/dist/indices.refresh-D-1MhdaQ.cjs.map +0 -1
  409. package/dist/indices.rollover-CwmmlQz1.cjs +0 -2
  410. package/dist/indices.rollover-CwmmlQz1.cjs.map +0 -1
  411. package/dist/indices.rollover-D8QUsaTN.cjs +0 -2
  412. package/dist/indices.rollover-D8QUsaTN.cjs.map +0 -1
  413. package/dist/indices.rollover-DUUD9dzm.js +0 -23
  414. package/dist/indices.rollover-DUUD9dzm.js.map +0 -1
  415. package/dist/indices.rollover-Db8YZpKM.js +0 -26
  416. package/dist/indices.rollover-Db8YZpKM.js.map +0 -1
  417. package/dist/indices.segments-BNJbwGhI.cjs +0 -2
  418. package/dist/indices.segments-BNJbwGhI.cjs.map +0 -1
  419. package/dist/indices.segments-BNzIRPkt.js +0 -28
  420. package/dist/indices.segments-BNzIRPkt.js.map +0 -1
  421. package/dist/indices.shard_stores-D6RBlJlX.cjs +0 -2
  422. package/dist/indices.shard_stores-D6RBlJlX.cjs.map +0 -1
  423. package/dist/indices.shard_stores-NeCJW61I.js +0 -28
  424. package/dist/indices.shard_stores-NeCJW61I.js.map +0 -1
  425. package/dist/indices.shrink-BskJk9Va.cjs +0 -2
  426. package/dist/indices.shrink-BskJk9Va.cjs.map +0 -1
  427. package/dist/indices.shrink-HTHaYCNw.js +0 -22
  428. package/dist/indices.shrink-HTHaYCNw.js.map +0 -1
  429. package/dist/indices.split-C031jsQI.cjs +0 -2
  430. package/dist/indices.split-C031jsQI.cjs.map +0 -1
  431. package/dist/indices.split-CMOvLpHL.js +0 -22
  432. package/dist/indices.split-CMOvLpHL.js.map +0 -1
  433. package/dist/indices.stats-B2GKe51V.cjs +0 -2
  434. package/dist/indices.stats-B2GKe51V.cjs.map +0 -1
  435. package/dist/indices.stats-lZbc7nYY.js +0 -61
  436. package/dist/indices.stats-lZbc7nYY.js.map +0 -1
  437. package/dist/indices.update_aliases-B-Xh15nC.js +0 -36
  438. package/dist/indices.update_aliases-B-Xh15nC.js.map +0 -1
  439. package/dist/indices.update_aliases-BSOeXVyL.cjs +0 -2
  440. package/dist/indices.update_aliases-BSOeXVyL.cjs.map +0 -1
  441. package/dist/indices.update_aliases-CrZkDgP3.js +0 -19
  442. package/dist/indices.update_aliases-CrZkDgP3.js.map +0 -1
  443. package/dist/indices.update_aliases-DEi6eajk.cjs +0 -2
  444. package/dist/indices.update_aliases-DEi6eajk.cjs.map +0 -1
  445. package/dist/indices.upgrade-F08HJEJh.js +0 -29
  446. package/dist/indices.upgrade-F08HJEJh.js.map +0 -1
  447. package/dist/indices.upgrade-pZP_rCzh.cjs +0 -2
  448. package/dist/indices.upgrade-pZP_rCzh.cjs.map +0 -1
  449. package/dist/indices.validate_query-BmgN43C3.cjs +0 -2
  450. package/dist/indices.validate_query-BmgN43C3.cjs.map +0 -1
  451. package/dist/indices.validate_query-DR2M4so7.js +0 -11
  452. package/dist/indices.validate_query-DR2M4so7.js.map +0 -1
  453. package/dist/indices.validate_query-DilTwlSI.cjs +0 -2
  454. package/dist/indices.validate_query-DilTwlSI.cjs.map +0 -1
  455. package/dist/indices.validate_query-VPrxVylH.js +0 -40
  456. package/dist/indices.validate_query-VPrxVylH.js.map +0 -1
  457. package/dist/info-Bihl3ycX.cjs +0 -2
  458. package/dist/info-Bihl3ycX.cjs.map +0 -1
  459. package/dist/info-Uq39Tk5I.js +0 -16
  460. package/dist/info-Uq39Tk5I.js.map +0 -1
  461. package/dist/ingest.delete_pipeline-8sqPIBEw.cjs +0 -2
  462. package/dist/ingest.delete_pipeline-8sqPIBEw.cjs.map +0 -1
  463. package/dist/ingest.delete_pipeline-DRtC3Dqh.js +0 -19
  464. package/dist/ingest.delete_pipeline-DRtC3Dqh.js.map +0 -1
  465. package/dist/ingest.get_pipeline-CoyMO45r.cjs +0 -2
  466. package/dist/ingest.get_pipeline-CoyMO45r.cjs.map +0 -1
  467. package/dist/ingest.get_pipeline-JM9q1oH8.js +0 -19
  468. package/dist/ingest.get_pipeline-JM9q1oH8.js.map +0 -1
  469. package/dist/ingest.processor_grok-8QBngXVm.js +0 -15
  470. package/dist/ingest.processor_grok-8QBngXVm.js.map +0 -1
  471. package/dist/ingest.processor_grok-B-R3mNZz.cjs +0 -2
  472. package/dist/ingest.processor_grok-B-R3mNZz.cjs.map +0 -1
  473. package/dist/ingest.put_pipeline-BHYfeIUR.js +0 -19
  474. package/dist/ingest.put_pipeline-BHYfeIUR.js.map +0 -1
  475. package/dist/ingest.put_pipeline-C48N8VLb.cjs +0 -2
  476. package/dist/ingest.put_pipeline-C48N8VLb.cjs.map +0 -1
  477. package/dist/ingest.simulate-Cfu8Bayu.js +0 -20
  478. package/dist/ingest.simulate-Cfu8Bayu.js.map +0 -1
  479. package/dist/ingest.simulate-xTiA-ntV.cjs +0 -2
  480. package/dist/ingest.simulate-xTiA-ntV.cjs.map +0 -1
  481. package/dist/mget-BeU340PZ.js +0 -28
  482. package/dist/mget-BeU340PZ.js.map +0 -1
  483. package/dist/mget-CTm-_LOH.cjs +0 -2
  484. package/dist/mget-CTm-_LOH.cjs.map +0 -1
  485. package/dist/msearch-D2RYRdg9.cjs +0 -2
  486. package/dist/msearch-D2RYRdg9.cjs.map +0 -1
  487. package/dist/msearch-VXpUl7IB.js +0 -32
  488. package/dist/msearch-VXpUl7IB.js.map +0 -1
  489. package/dist/msearch_template-D-5waRCZ.cjs +0 -2
  490. package/dist/msearch_template-D-5waRCZ.cjs.map +0 -1
  491. package/dist/msearch_template-DIu31ouW.js +0 -30
  492. package/dist/msearch_template-DIu31ouW.js.map +0 -1
  493. package/dist/mtermvectors-DgB5RWBU.js +0 -37
  494. package/dist/mtermvectors-DgB5RWBU.js.map +0 -1
  495. package/dist/mtermvectors-Iob1EyZq.cjs +0 -2
  496. package/dist/mtermvectors-Iob1EyZq.cjs.map +0 -1
  497. package/dist/nodes.hot_threads-DtdspLBs.cjs +0 -2
  498. package/dist/nodes.hot_threads-DtdspLBs.cjs.map +0 -1
  499. package/dist/nodes.hot_threads-JeTUhoqt.js +0 -28
  500. package/dist/nodes.hot_threads-JeTUhoqt.js.map +0 -1
  501. package/dist/nodes.info-B5qBn4bJ.cjs +0 -2
  502. package/dist/nodes.info-B5qBn4bJ.cjs.map +0 -1
  503. package/dist/nodes.info-CG3dssML.js +0 -36
  504. package/dist/nodes.info-CG3dssML.js.map +0 -1
  505. package/dist/nodes.reload_secure_settings-DWyLnaF3.js +0 -19
  506. package/dist/nodes.reload_secure_settings-DWyLnaF3.js.map +0 -1
  507. package/dist/nodes.reload_secure_settings-IT7wkb4F.cjs +0 -2
  508. package/dist/nodes.reload_secure_settings-IT7wkb4F.cjs.map +0 -1
  509. package/dist/nodes.stats-ByRup3kp.cjs +0 -2
  510. package/dist/nodes.stats-ByRup3kp.cjs.map +0 -1
  511. package/dist/nodes.stats-C4GRYbPh.js +0 -68
  512. package/dist/nodes.stats-C4GRYbPh.js.map +0 -1
  513. package/dist/nodes.usage-BOB6uZgC.cjs +0 -2
  514. package/dist/nodes.usage-BOB6uZgC.cjs.map +0 -1
  515. package/dist/nodes.usage-CIENCxoR.js +0 -28
  516. package/dist/nodes.usage-CIENCxoR.js.map +0 -1
  517. package/dist/ping-BQ2zs_iF.cjs +0 -2
  518. package/dist/ping-BQ2zs_iF.cjs.map +0 -1
  519. package/dist/ping-Bji5pHwk.js +0 -16
  520. package/dist/ping-Bji5pHwk.js.map +0 -1
  521. package/dist/put_script-CCLRxaG6.js +0 -23
  522. package/dist/put_script-CCLRxaG6.js.map +0 -1
  523. package/dist/put_script-Wtk-J1KT.cjs +0 -2
  524. package/dist/put_script-Wtk-J1KT.cjs.map +0 -1
  525. package/dist/rank_eval-Bu5vQ2D6.js +0 -33
  526. package/dist/rank_eval-Bu5vQ2D6.js.map +0 -1
  527. package/dist/rank_eval-XW5Sepg2.cjs +0 -2
  528. package/dist/rank_eval-XW5Sepg2.cjs.map +0 -1
  529. package/dist/reindex-BIG_sxiH.cjs +0 -2
  530. package/dist/reindex-BIG_sxiH.cjs.map +0 -1
  531. package/dist/reindex-D4uElthB.js +0 -26
  532. package/dist/reindex-D4uElthB.js.map +0 -1
  533. package/dist/reindex_rethrottle-CRN0zTwg.cjs +0 -2
  534. package/dist/reindex_rethrottle-CRN0zTwg.cjs.map +0 -1
  535. package/dist/reindex_rethrottle-CcKws1M4.js +0 -19
  536. package/dist/reindex_rethrottle-CcKws1M4.js.map +0 -1
  537. package/dist/render_search_template-ay6iLNqt.js +0 -18
  538. package/dist/render_search_template-ay6iLNqt.js.map +0 -1
  539. package/dist/render_search_template-ot0hZ0W8.cjs +0 -2
  540. package/dist/render_search_template-ot0hZ0W8.cjs.map +0 -1
  541. package/dist/scripts_painless_execute-BZJwr2WZ.cjs +0 -2
  542. package/dist/scripts_painless_execute-BZJwr2WZ.cjs.map +0 -1
  543. package/dist/scripts_painless_execute-ChAFju6q.js +0 -17
  544. package/dist/scripts_painless_execute-ChAFju6q.js.map +0 -1
  545. package/dist/scroll-Dl5sjO9s.cjs +0 -2
  546. package/dist/scroll-Dl5sjO9s.cjs.map +0 -1
  547. package/dist/scroll-rh-CV6XG.js +0 -22
  548. package/dist/scroll-rh-CV6XG.js.map +0 -1
  549. package/dist/search-Bsayi2Z7.cjs +0 -2
  550. package/dist/search-Bsayi2Z7.cjs.map +0 -1
  551. package/dist/search-UrY8NhdC.js +0 -78
  552. package/dist/search-UrY8NhdC.js.map +0 -1
  553. package/dist/search_shards-CQHOad6m.cjs +0 -2
  554. package/dist/search_shards-CQHOad6m.cjs.map +0 -1
  555. package/dist/search_shards-pfmDaePl.js +0 -32
  556. package/dist/search_shards-pfmDaePl.js.map +0 -1
  557. package/dist/search_template-BCt1HTyk.js +0 -44
  558. package/dist/search_template-BCt1HTyk.js.map +0 -1
  559. package/dist/search_template-BjlH72xD.cjs +0 -2
  560. package/dist/search_template-BjlH72xD.cjs.map +0 -1
  561. package/dist/snapshot.cleanup_repository-Cnh4nsU4.js +0 -19
  562. package/dist/snapshot.cleanup_repository-Cnh4nsU4.js.map +0 -1
  563. package/dist/snapshot.cleanup_repository-DhLuWH_4.cjs +0 -2
  564. package/dist/snapshot.cleanup_repository-DhLuWH_4.cjs.map +0 -1
  565. package/dist/snapshot.create-Cikcfjas.cjs +0 -2
  566. package/dist/snapshot.create-Cikcfjas.cjs.map +0 -1
  567. package/dist/snapshot.create-CmKQjbNG.js +0 -29
  568. package/dist/snapshot.create-CmKQjbNG.js.map +0 -1
  569. package/dist/snapshot.create-D305SikA.cjs +0 -2
  570. package/dist/snapshot.create-D305SikA.cjs.map +0 -1
  571. package/dist/snapshot.create-DZ4Tu9Qk.js +0 -20
  572. package/dist/snapshot.create-DZ4Tu9Qk.js.map +0 -1
  573. package/dist/snapshot.create_repository-BmOMeVMH.js +0 -21
  574. package/dist/snapshot.create_repository-BmOMeVMH.js.map +0 -1
  575. package/dist/snapshot.create_repository-CJ-t7HOq.cjs +0 -2
  576. package/dist/snapshot.create_repository-CJ-t7HOq.cjs.map +0 -1
  577. package/dist/snapshot.create_repository-DJO_LqwU.js +0 -129
  578. package/dist/snapshot.create_repository-DJO_LqwU.js.map +0 -1
  579. package/dist/snapshot.create_repository-DSfPE9Re.cjs +0 -2
  580. package/dist/snapshot.create_repository-DSfPE9Re.cjs.map +0 -1
  581. package/dist/snapshot.delete-DZQxQUz4.js +0 -18
  582. package/dist/snapshot.delete-DZQxQUz4.js.map +0 -1
  583. package/dist/snapshot.delete-LRvaQDyl.cjs +0 -2
  584. package/dist/snapshot.delete-LRvaQDyl.cjs.map +0 -1
  585. package/dist/snapshot.delete_repository-BaNhSl9L.cjs +0 -2
  586. package/dist/snapshot.delete_repository-BaNhSl9L.cjs.map +0 -1
  587. package/dist/snapshot.delete_repository-CQW1kKrI.js +0 -19
  588. package/dist/snapshot.delete_repository-CQW1kKrI.js.map +0 -1
  589. package/dist/snapshot.get-DHSFcDIR.js +0 -20
  590. package/dist/snapshot.get-DHSFcDIR.js.map +0 -1
  591. package/dist/snapshot.get-RH1NvbXk.cjs +0 -2
  592. package/dist/snapshot.get-RH1NvbXk.cjs.map +0 -1
  593. package/dist/snapshot.get_repository-BUSeINoE.cjs +0 -2
  594. package/dist/snapshot.get_repository-BUSeINoE.cjs.map +0 -1
  595. package/dist/snapshot.get_repository-BxwEHWpH.js +0 -20
  596. package/dist/snapshot.get_repository-BxwEHWpH.js.map +0 -1
  597. package/dist/snapshot.restore-CmdKDppJ.js +0 -20
  598. package/dist/snapshot.restore-CmdKDppJ.js.map +0 -1
  599. package/dist/snapshot.restore-D11iTuaW.cjs +0 -2
  600. package/dist/snapshot.restore-D11iTuaW.cjs.map +0 -1
  601. package/dist/snapshot.restore-DTrdiduA.cjs +0 -2
  602. package/dist/snapshot.restore-DTrdiduA.cjs.map +0 -1
  603. package/dist/snapshot.restore-cGEgaiIV.js +0 -19
  604. package/dist/snapshot.restore-cGEgaiIV.js.map +0 -1
  605. package/dist/snapshot.status-BJ3wLJ-6.cjs +0 -2
  606. package/dist/snapshot.status-BJ3wLJ-6.cjs.map +0 -1
  607. package/dist/snapshot.status-GWfxy7Av.js +0 -21
  608. package/dist/snapshot.status-GWfxy7Av.js.map +0 -1
  609. package/dist/snapshot.verify_repository-BAovUJEf.cjs +0 -2
  610. package/dist/snapshot.verify_repository-BAovUJEf.cjs.map +0 -1
  611. package/dist/snapshot.verify_repository-qrdfHcWm.js +0 -19
  612. package/dist/snapshot.verify_repository-qrdfHcWm.js.map +0 -1
  613. package/dist/tasks.cancel-DUgfGug0.js +0 -21
  614. package/dist/tasks.cancel-DUgfGug0.js.map +0 -1
  615. package/dist/tasks.cancel-uev3HNwn.cjs +0 -2
  616. package/dist/tasks.cancel-uev3HNwn.cjs.map +0 -1
  617. package/dist/tasks.get-BpJX-eED.js +0 -19
  618. package/dist/tasks.get-BpJX-eED.js.map +0 -1
  619. package/dist/tasks.get-Dx5AatEN.cjs +0 -2
  620. package/dist/tasks.get-Dx5AatEN.cjs.map +0 -1
  621. package/dist/tasks.list-D5EnZIyw.js +0 -28
  622. package/dist/tasks.list-D5EnZIyw.js.map +0 -1
  623. package/dist/tasks.list-DF8jKoLv.cjs +0 -2
  624. package/dist/tasks.list-DF8jKoLv.cjs.map +0 -1
  625. package/dist/termvectors-CCD0RzNB.cjs +0 -2
  626. package/dist/termvectors-CCD0RzNB.cjs.map +0 -1
  627. package/dist/termvectors-CX5hi46K.js +0 -36
  628. package/dist/termvectors-CX5hi46K.js.map +0 -1
  629. package/dist/update-B8xVC7Qt.js +0 -33
  630. package/dist/update-B8xVC7Qt.js.map +0 -1
  631. package/dist/update-Df56o2sS.cjs +0 -2
  632. package/dist/update-Df56o2sS.cjs.map +0 -1
  633. package/dist/update_by_query-C99J5V_Y.cjs +0 -2
  634. package/dist/update_by_query-C99J5V_Y.cjs.map +0 -1
  635. package/dist/update_by_query-Cg4ruhuj.cjs +0 -2
  636. package/dist/update_by_query-Cg4ruhuj.cjs.map +0 -1
  637. package/dist/update_by_query-DSN1rIIE.js +0 -22
  638. package/dist/update_by_query-DSN1rIIE.js.map +0 -1
  639. package/dist/update_by_query-DdbkrOvL.js +0 -68
  640. package/dist/update_by_query-DdbkrOvL.js.map +0 -1
  641. package/dist/update_by_query_rethrottle-BfRXVPcQ.js +0 -19
  642. package/dist/update_by_query_rethrottle-BfRXVPcQ.js.map +0 -1
  643. package/dist/update_by_query_rethrottle-SiTIU_2D.cjs +0 -2
  644. package/dist/update_by_query_rethrottle-SiTIU_2D.cjs.map +0 -1
  645. package/dist/webCli.cjs +0 -304
  646. package/dist/webCli.cjs.map +0 -1
  647. package/dist/webCli.iife.js +0 -323
  648. package/dist/webCli.iife.js.map +0 -1
  649. package/dist/webCli.js +0 -38539
  650. package/dist/webCli.js.map +0 -1
  651. package/dist/webCli.umd.cjs +0 -323
  652. package/dist/webCli.umd.cjs.map +0 -1
  653. package/dist/worker-CJ5plMu3.cjs +0 -11
  654. package/dist/worker-CJ5plMu3.cjs.map +0 -1
  655. package/dist/worker-ch3NBDaE.js +0 -1070
  656. package/dist/worker-ch3NBDaE.js.map +0 -1
  657. package/dist/x_json.ace.worker-BDOD9Mcu.cjs +0 -12
  658. package/dist/x_json.ace.worker-BDOD9Mcu.cjs.map +0 -1
  659. package/dist/x_json.ace.worker-D81Bgpkk.js +0 -1129
  660. package/dist/x_json.ace.worker-D81Bgpkk.js.map +0 -1
@@ -1,323 +0,0 @@
1
- (function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode(".conApp{display:flex}.conApp__editor{width:100%;display:flex;flex:0 0 auto;position:relative}.conApp__editor__spinner{width:100%}.conApp__output{display:flex;flex:1 1 1px}.conApp__editorContent,.conApp__outputContent{height:100%;flex:1 1 1px;font-size:14px}.conApp__editorActions{position:absolute;z-index:1000;top:0;right:8px;line-height:1;min-width:20px;display:flex;align-items:center}.conApp__editorActions button{line-height:inherit;cursor:pointer}.conApp__editorActionButton{padding:0 4px;appearance:none;border:none;background:none}.conApp__editorActionButton--success{color:#017d73}.conApp__resizer{z-index:1000}.conApp__autoComplete{position:absolute;left:-1000px;visibility:hidden;z-index:1002;margin-top:22px}.conApp__settingsModal{min-width:460px}.conApp__requestProgressBarContainer{position:relative;z-index:2000}.conApp__tabsExtension{border-bottom:1px solid #cccccc}.ace_method,.ace_select_keyword{color:#c80a68!important}.ace_url,.ace_start_triple_quote,.ace_end_triple_quote{color:#00756c}.conApp .euiButtonIcon--primary:not([class*=isDisabled]){box-shadow:none!important;background-color:transparent!important}.request-status-bar,.request-status-bar .bar-item{height:100%}.request-status-bar .bar-item .base-info{display:flex;font-size:12px;align-items:center;margin-top:2px}.request-status-bar .bar-item .base-info .info-item{margin:0 12px;position:relative;flex:0 0 auto}.request-status-bar .bar-item .base-info .info-item.health{padding-right:14px}.request-status-bar .bar-item .status_info{display:flex;font-size:12px;align-items:center}.request-status-bar .bar-item .status_info .info-item{margin:0 12px}.Console{position:relative;width:100%;height:100vh;display:flex}.Console .ConsoleInput_wrapper{flex:1;min-width:0}.Console .ConsoleOutput_wrapper{width:50%}.Console .resizer{position:relative;z-index:999;width:14px;height:100%;display:flex;align-items:center;justify-content:center;background:#fafbfd;padding:0;margin:0;outline:none;border:none;cursor:col-resize}.Console .resizer:hover{background-color:#cce1f0}.Console .ant-tabs-right-content{padding-right:0}.Console .ant-tabs-right-bar .ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.Console .ant-tabs-right>.ant-tabs-nav>.ant-tabs-nav-wrap>.ant-tabs-nav-list>.ant-tabs-tab{padding:8px 10px;writing-mode:vertical-lr;height:max-content}.flex-tabbar,.flex-tabbar .ant-tabs{height:100%}.flex-tabbar .ant-tabs-top-bar{display:flex}.flex-tabbar .ant-tabs-extra-left{order:1;flex:0 0 auto}.flex-tabbar .ant-tabs-nav-container{order:2;flex:0 0 auto}.flex-tabbar .ant-tabs-top-bar .ant-tabs-nav-container{max-width:calc(100% - 140px)}.flex-tabbar .tabbar-icon{padding:0 10px;cursor:pointer}.flex-tabbar .tabbar-icon:hover{background-color:#efefef}.ant-tabs-extra-append{order:3}.ant-tabs-extra-right{order:4;margin-left:auto;flex:0 0 auto}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab{border-radius:0;height:32px}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content{line-height:30px;display:flex}#console .ant-tabs.ant-tabs-card .ant-tabs-extra-content .tabbar-icon{padding:0 10px}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-nav-container{height:30px;max-width:calc(100% - 156px)}#console .ant-tabs.ant-tabs-card .ant-tabs-card-bar .ant-tabs-tab .ant-tabs-close-x{margin-bottom:18px}#console .ant-tabs-nav-wrap{height:30px}#console .ant-tabs-nav-list .ant-tabs-tab{padding:3px 8px;display:flex}#console .ant-tabs{height:100%}#console .ant-tabs-nav-add{min-height:30px}#console .ant-tabs-nav{margin-bottom:5px}#console .ant-tabs-content,#console .ant-tabs-tabpane{height:100%}#console .ant-tabs-nav .ant-tabs-nav-wrap-ping-bottom .ant-tabs-tab{margin:0}#console .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:16px}#console .ant-tabs-card.ant-tabs-top>div>.ant-tabs-nav .ant-tabs-tab{border-radius:0}#console .ant-tabs>div>.ant-tabs-nav .ant-tabs-nav-add{border:none;border-radius:0}#console .ant-tabs .ant-tabs-tab-btn{line-height:22px}#console .ant-tabs .ant-tabs-tab-btn .ant-tabs-tab-icon:not(:last-child){margin-inline-end:0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active{font-weight:400;background-color:#939ea0;color:#fff;border-color:#939ea0}#console .ant-tabs .ant-tabs-nav-list .ant-tabs-tab-active .ant-tabs-tab-btn{color:#fff}.resize-bar{display:flex;height:10px;background:#eee;margin-top:-5px;align-items:center;justify-content:center}.resize-bar .dash{height:1px;width:16px;background:#666;margin-top:1px}.fullscreen{position:fixed;width:100%;left:0;top:0;height:100vh;z-index:100}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}.slideInUp{animation-name:slideInUp;animation-duration:.2s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.55,0,.55,.2)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- var webCli=function(A,de,zt,wn,Qa,wr,Za,Qe,It,ye,Rt,OS,J5,Q5,es,$S,TS){"use strict";var K5=Object.defineProperty,X5=Object.defineProperties;var Y5=Object.getOwnPropertyDescriptors;var ac=Object.getOwnPropertySymbols;var xS=Object.prototype.hasOwnProperty,SS=Object.prototype.propertyIsEnumerable;var ln=Math.pow,kp=(A,de,zt)=>de in A?K5(A,de,{enumerable:!0,configurable:!0,writable:!0,value:zt}):A[de]=zt,Me=(A,de)=>{for(var zt in de||(de={}))xS.call(de,zt)&&kp(A,zt,de[zt]);if(ac)for(var zt of ac(de))SS.call(de,zt)&&kp(A,zt,de[zt]);return A},Bt=(A,de)=>X5(A,Y5(de));var CS=(A,de)=>{var zt={};for(var wn in A)xS.call(A,wn)&&de.indexOf(wn)<0&&(zt[wn]=A[wn]);if(A!=null&&ac)for(var wn of ac(A))de.indexOf(wn)<0&&SS.call(A,wn)&&(zt[wn]=A[wn]);return zt};var ES=(A,de,zt)=>kp(A,typeof de!="symbol"?de+"":de,zt);var Et=(A,de,zt)=>new Promise((wn,Qa)=>{var wr=It=>{try{Qe(zt.next(It))}catch(ye){Qa(ye)}},Za=It=>{try{Qe(zt.throw(It))}catch(ye){Qa(ye)}},Qe=It=>It.done?wn(It.value):Promise.resolve(It.value).then(wr,Za);Qe((zt=zt.apply(A,de)).next())});function sc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const v=sc(A),PS=sc(wr),RS=sc(TS);function jS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lp={exports:{}},Xt=Lp.exports={},dr,fr;function lc(){throw new Error("setTimeout has not been defined")}function cc(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?dr=setTimeout:dr=lc}catch(e){dr=lc}try{typeof clearTimeout=="function"?fr=clearTimeout:fr=cc}catch(e){fr=cc}})();function Fp(e){if(dr===setTimeout)return setTimeout(e,0);if((dr===lc||!dr)&&setTimeout)return dr=setTimeout,setTimeout(e,0);try{return dr(e,0)}catch(t){try{return dr.call(null,e,0)}catch(n){return dr.call(this,e,0)}}}function MS(e){if(fr===clearTimeout)return clearTimeout(e);if((fr===cc||!fr)&&clearTimeout)return fr=clearTimeout,clearTimeout(e);try{return fr(e)}catch(t){try{return fr.call(null,e)}catch(n){return fr.call(this,e)}}}var xr=[],Vo=!1,co,ts=-1;function IS(){!Vo||!co||(Vo=!1,co.length?xr=co.concat(xr):ts=-1,xr.length&&Dp())}function Dp(){if(!Vo){var e=Fp(IS);Vo=!0;for(var t=xr.length;t;){for(co=xr,xr=[];++ts<t;)co&&co[ts].run();ts=-1,t=xr.length}co=null,Vo=!1,MS(e)}}Xt.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];xr.push(new Bp(e,t)),xr.length===1&&!Vo&&Fp(Dp)};function Bp(e,t){this.fun=e,this.array=t}Bp.prototype.run=function(){this.fun.apply(null,this.array)},Xt.title="browser",Xt.browser=!0,Xt.env={},Xt.argv=[],Xt.version="",Xt.versions={};function Sr(){}Xt.on=Sr,Xt.addListener=Sr,Xt.once=Sr,Xt.off=Sr,Xt.removeListener=Sr,Xt.removeAllListeners=Sr,Xt.emit=Sr,Xt.prependListener=Sr,Xt.prependOnceListener=Sr,Xt.listeners=function(e){return[]},Xt.binding=function(e){throw new Error("process.binding is not supported")},Xt.cwd=function(){return"/"},Xt.chdir=function(e){throw new Error("process.chdir is not supported")},Xt.umask=function(){return 0};var AS=Lp.exports;const oe=jS(AS);var bt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var dc={exports:{}},Fi={};/**
3
- * @license React
4
- * react-jsx-runtime.production.min.js
5
- *
6
- * Copyright (c) Facebook, Inc. and its affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var qp;function NS(){if(qp)return Fi;qp=1;var e=A,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,s,c){var u,f={},d=null,b=null;c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+s.key),s.ref!==void 0&&(b=s.ref);for(u in s)r.call(s,u)&&!i.hasOwnProperty(u)&&(f[u]=s[u]);if(l&&l.defaultProps)for(u in s=l.defaultProps,s)f[u]===void 0&&(f[u]=s[u]);return{$$typeof:t,type:l,key:d,ref:b,props:f,_owner:o.current}}return Fi.Fragment=n,Fi.jsx=a,Fi.jsxs=a,Fi}var Di={},Vp;function kS(){return Vp||(Vp=1,oe.env.NODE_ENV!=="production"&&function(){var e=A,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),x=Symbol.iterator,O="@@iterator";function h(ee){if(ee===null||typeof ee!="object")return null;var pe=x&&ee[x]||ee[O];return typeof pe=="function"?pe:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(ee){{for(var pe=arguments.length,we=new Array(pe>1?pe-1:0),Pe=1;Pe<pe;Pe++)we[Pe-1]=arguments[Pe];m("error",ee,we)}}function m(ee,pe,we){{var Pe=y.ReactDebugCurrentFrame,Be=Pe.getStackAddendum();Be!==""&&(pe+="%s",we=we.concat([Be]));var Fe=we.map(function(Ve){return String(Ve)});Fe.unshift("Warning: "+pe),Function.prototype.apply.call(console[ee],console,Fe)}}var g=!1,w=!1,E=!1,S=!1,C=!1,T;T=Symbol.for("react.module.reference");function M(ee){return!!(typeof ee=="string"||typeof ee=="function"||ee===r||ee===i||C||ee===o||ee===c||ee===u||S||ee===b||g||w||E||typeof ee=="object"&&ee!==null&&(ee.$$typeof===d||ee.$$typeof===f||ee.$$typeof===a||ee.$$typeof===l||ee.$$typeof===s||ee.$$typeof===T||ee.getModuleId!==void 0))}function N(ee,pe,we){var Pe=ee.displayName;if(Pe)return Pe;var Be=pe.displayName||pe.name||"";return Be!==""?we+"("+Be+")":we}function R(ee){return ee.displayName||"Context"}function D(ee){if(ee==null)return null;if(typeof ee.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof ee=="function")return ee.displayName||ee.name||null;if(typeof ee=="string")return ee;switch(ee){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof ee=="object")switch(ee.$$typeof){case l:var pe=ee;return R(pe)+".Consumer";case a:var we=ee;return R(we._context)+".Provider";case s:return N(ee,ee.render,"ForwardRef");case f:var Pe=ee.displayName||null;return Pe!==null?Pe:D(ee.type)||"Memo";case d:{var Be=ee,Fe=Be._payload,Ve=Be._init;try{return D(Ve(Fe))}catch(Ge){return null}}}return null}var V=Object.assign,Z=0,J,I,U,K,z,G,L;function F(){}F.__reactDisabledLog=!0;function X(){{if(Z===0){J=console.log,I=console.info,U=console.warn,K=console.error,z=console.group,G=console.groupCollapsed,L=console.groupEnd;var ee={configurable:!0,enumerable:!0,value:F,writable:!0};Object.defineProperties(console,{info:ee,log:ee,warn:ee,error:ee,group:ee,groupCollapsed:ee,groupEnd:ee})}Z++}}function te(){{if(Z--,Z===0){var ee={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:V({},ee,{value:J}),info:V({},ee,{value:I}),warn:V({},ee,{value:U}),error:V({},ee,{value:K}),group:V({},ee,{value:z}),groupCollapsed:V({},ee,{value:G}),groupEnd:V({},ee,{value:L})})}Z<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var H=y.ReactCurrentDispatcher,W;function Q(ee,pe,we){{if(W===void 0)try{throw Error()}catch(Be){var Pe=Be.stack.trim().match(/\n( *(at )?)/);W=Pe&&Pe[1]||""}return`
11
- `+W+ee}}var ie=!1,ce;{var B=typeof WeakMap=="function"?WeakMap:Map;ce=new B}function q(ee,pe){if(!ee||ie)return"";{var we=ce.get(ee);if(we!==void 0)return we}var Pe;ie=!0;var Be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Fe;Fe=H.current,H.current=null,X();try{if(pe){var Ve=function(){throw Error()};if(Object.defineProperty(Ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ve,[])}catch(Vt){Pe=Vt}Reflect.construct(ee,[],Ve)}else{try{Ve.call()}catch(Vt){Pe=Vt}ee.call(Ve.prototype)}}else{try{throw Error()}catch(Vt){Pe=Vt}ee()}}catch(Vt){if(Vt&&Pe&&typeof Vt.stack=="string"){for(var Ge=Vt.stack.split(`
12
- `),Tt=Pe.stack.split(`
13
- `),yt=Ge.length-1,et=Tt.length-1;yt>=1&&et>=0&&Ge[yt]!==Tt[et];)et--;for(;yt>=1&&et>=0;yt--,et--)if(Ge[yt]!==Tt[et]){if(yt!==1||et!==1)do if(yt--,et--,et<0||Ge[yt]!==Tt[et]){var Gt=`
14
- `+Ge[yt].replace(" at new "," at ");return ee.displayName&&Gt.includes("<anonymous>")&&(Gt=Gt.replace("<anonymous>",ee.displayName)),typeof ee=="function"&&ce.set(ee,Gt),Gt}while(yt>=1&&et>=0);break}}}finally{ie=!1,H.current=Fe,te(),Error.prepareStackTrace=Be}var On=ee?ee.displayName||ee.name:"",sn=On?Q(On):"";return typeof ee=="function"&&ce.set(ee,sn),sn}function le(ee,pe,we){return q(ee,!1)}function ne(ee){var pe=ee.prototype;return!!(pe&&pe.isReactComponent)}function ve(ee,pe,we){if(ee==null)return"";if(typeof ee=="function")return q(ee,ne(ee));if(typeof ee=="string")return Q(ee);switch(ee){case c:return Q("Suspense");case u:return Q("SuspenseList")}if(typeof ee=="object")switch(ee.$$typeof){case s:return le(ee.render);case f:return ve(ee.type,pe,we);case d:{var Pe=ee,Be=Pe._payload,Fe=Pe._init;try{return ve(Fe(Be),pe,we)}catch(Ve){}}}return""}var me=Object.prototype.hasOwnProperty,Ce={},Le=y.ReactDebugCurrentFrame;function fe(ee){if(ee){var pe=ee._owner,we=ve(ee.type,ee._source,pe?pe.type:null);Le.setExtraStackFrame(we)}else Le.setExtraStackFrame(null)}function Ne(ee,pe,we,Pe,Be){{var Fe=Function.call.bind(me);for(var Ve in ee)if(Fe(ee,Ve)){var Ge=void 0;try{if(typeof ee[Ve]!="function"){var Tt=Error((Pe||"React class")+": "+we+" type `"+Ve+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof ee[Ve]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Tt.name="Invariant Violation",Tt}Ge=ee[Ve](pe,Ve,Pe,we,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(yt){Ge=yt}Ge&&!(Ge instanceof Error)&&(fe(Be),p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Pe||"React class",we,Ve,typeof Ge),fe(null)),Ge instanceof Error&&!(Ge.message in Ce)&&(Ce[Ge.message]=!0,fe(Be),p("Failed %s type: %s",we,Ge.message),fe(null))}}}var Ie=Array.isArray;function Re(ee){return Ie(ee)}function be(ee){{var pe=typeof Symbol=="function"&&Symbol.toStringTag,we=pe&&ee[Symbol.toStringTag]||ee.constructor.name||"Object";return we}}function Se(ee){try{return Oe(ee),!1}catch(pe){return!0}}function Oe(ee){return""+ee}function Te(ee){if(Se(ee))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",be(ee)),Oe(ee)}var Ke=y.ReactCurrentOwner,Xe={key:!0,ref:!0,__self:!0,__source:!0},tt,_t,St;St={};function ht(ee){if(me.call(ee,"ref")){var pe=Object.getOwnPropertyDescriptor(ee,"ref").get;if(pe&&pe.isReactWarning)return!1}return ee.ref!==void 0}function We(ee){if(me.call(ee,"key")){var pe=Object.getOwnPropertyDescriptor(ee,"key").get;if(pe&&pe.isReactWarning)return!1}return ee.key!==void 0}function Ae(ee,pe){if(typeof ee.ref=="string"&&Ke.current&&pe&&Ke.current.stateNode!==pe){var we=D(Ke.current.type);St[we]||(p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',D(Ke.current.type),ee.ref),St[we]=!0)}}function ft(ee,pe){{var we=function(){tt||(tt=!0,p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};we.isReactWarning=!0,Object.defineProperty(ee,"key",{get:we,configurable:!0})}}function dt(ee,pe){{var we=function(){_t||(_t=!0,p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",pe))};we.isReactWarning=!0,Object.defineProperty(ee,"ref",{get:we,configurable:!0})}}var nt=function(ee,pe,we,Pe,Be,Fe,Ve){var Ge={$$typeof:t,type:ee,key:pe,ref:we,props:Ve,_owner:Fe};return Ge._store={},Object.defineProperty(Ge._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ge,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Pe}),Object.defineProperty(Ge,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.freeze&&(Object.freeze(Ge.props),Object.freeze(Ge)),Ge};function Nt(ee,pe,we,Pe,Be){{var Fe,Ve={},Ge=null,Tt=null;we!==void 0&&(Te(we),Ge=""+we),We(pe)&&(Te(pe.key),Ge=""+pe.key),ht(pe)&&(Tt=pe.ref,Ae(pe,Be));for(Fe in pe)me.call(pe,Fe)&&!Xe.hasOwnProperty(Fe)&&(Ve[Fe]=pe[Fe]);if(ee&&ee.defaultProps){var yt=ee.defaultProps;for(Fe in yt)Ve[Fe]===void 0&&(Ve[Fe]=yt[Fe])}if(Ge||Tt){var et=typeof ee=="function"?ee.displayName||ee.name||"Unknown":ee;Ge&&ft(Ve,et),Tt&&dt(Ve,et)}return nt(ee,Ge,Tt,Be,Pe,Ke.current,Ve)}}var Qt=y.ReactCurrentOwner,an=y.ReactDebugCurrentFrame;function Ct(ee){if(ee){var pe=ee._owner,we=ve(ee.type,ee._source,pe?pe.type:null);an.setExtraStackFrame(we)}else an.setExtraStackFrame(null)}var kt;kt=!1;function rt(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===t}function pt(){{if(Qt.current){var ee=D(Qt.current.type);if(ee)return`
15
-
16
- Check the render method of \``+ee+"`."}return""}}function Lt(ee){return""}var Ze={};function De(ee){{var pe=pt();if(!pe){var we=typeof ee=="string"?ee:ee.displayName||ee.name;we&&(pe=`
17
-
18
- Check the top-level render call using <`+we+">.")}return pe}}function k(ee,pe){{if(!ee._store||ee._store.validated||ee.key!=null)return;ee._store.validated=!0;var we=De(pe);if(Ze[we])return;Ze[we]=!0;var Pe="";ee&&ee._owner&&ee._owner!==Qt.current&&(Pe=" It was passed a child from "+D(ee._owner.type)+"."),Ct(ee),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',we,Pe),Ct(null)}}function P(ee,pe){{if(typeof ee!="object")return;if(Re(ee))for(var we=0;we<ee.length;we++){var Pe=ee[we];rt(Pe)&&k(Pe,pe)}else if(rt(ee))ee._store&&(ee._store.validated=!0);else if(ee){var Be=h(ee);if(typeof Be=="function"&&Be!==ee.entries)for(var Fe=Be.call(ee),Ve;!(Ve=Fe.next()).done;)rt(Ve.value)&&k(Ve.value,pe)}}}function j(ee){{var pe=ee.type;if(pe==null||typeof pe=="string")return;var we;if(typeof pe=="function")we=pe.propTypes;else if(typeof pe=="object"&&(pe.$$typeof===s||pe.$$typeof===f))we=pe.propTypes;else return;if(we){var Pe=D(pe);Ne(we,ee.props,"prop",Pe,ee)}else if(pe.PropTypes!==void 0&&!kt){kt=!0;var Be=D(pe);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Be||"Unknown")}typeof pe.getDefaultProps=="function"&&!pe.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Y(ee){{for(var pe=Object.keys(ee.props),we=0;we<pe.length;we++){var Pe=pe[we];if(Pe!=="children"&&Pe!=="key"){Ct(ee),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Pe),Ct(null);break}}ee.ref!==null&&(Ct(ee),p("Invalid attribute `ref` supplied to `React.Fragment`."),Ct(null))}}var re={};function ue(ee,pe,we,Pe,Be,Fe){{var Ve=M(ee);if(!Ve){var Ge="";(ee===void 0||typeof ee=="object"&&ee!==null&&Object.keys(ee).length===0)&&(Ge+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Tt=Lt();Tt?Ge+=Tt:Ge+=pt();var yt;ee===null?yt="null":Re(ee)?yt="array":ee!==void 0&&ee.$$typeof===t?(yt="<"+(D(ee.type)||"Unknown")+" />",Ge=" Did you accidentally export a JSX literal instead of a component?"):yt=typeof ee,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",yt,Ge)}var et=Nt(ee,pe,we,Be,Fe);if(et==null)return et;if(Ve){var Gt=pe.children;if(Gt!==void 0)if(Pe)if(Re(Gt)){for(var On=0;On<Gt.length;On++)P(Gt[On],ee);Object.freeze&&Object.freeze(Gt)}else p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else P(Gt,ee)}if(me.call(pe,"key")){var sn=D(ee),Vt=Object.keys(pe).filter(function(Un){return Un!=="key"}),Nr=Vt.length>0?"{key: someKey, "+Vt.join(": ..., ")+": ...}":"{key: someKey}";if(!re[sn+Nr]){var kr=Vt.length>0?"{"+Vt.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
19
- let props = %s;
20
- <%s {...props} />
21
- React keys must be passed directly to JSX without using spread:
22
- let props = %s;
23
- <%s key={someKey} {...props} />`,Nr,sn,kr,sn),re[sn+Nr]=!0}}return ee===r?Y(et):j(et),et}}function _e(ee,pe,we){return ue(ee,pe,we,!0)}function ze(ee,pe,we){return ue(ee,pe,we,!1)}var ot=ze,at=_e;Di.Fragment=r,Di.jsx=ot,Di.jsxs=at}()),Di}oe.env.NODE_ENV==="production"?dc.exports=NS():dc.exports=kS();var he=dc.exports,fc=A.createContext({});function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$e.apply(null,arguments)}function Hp(e){if(Array.isArray(e))return e}function LS(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,o=u}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}function pc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hc(e,t){if(e){if(typeof e=="string")return pc(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pc(e,t):void 0}}function Wp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e,t){return Hp(e)||LS(e,t)||hc(e,t)||Wp()}function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(e)}function FS(e,t){if(qe(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(qe(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Up(e){var t=FS(e,"string");return qe(t)=="symbol"?t:t+""}function ae(e,t,n){return(t=Up(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function st(e,t){if(e==null)return{};var n,r,o=DS(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function fn(e,t){BS(e)&&(e="100%");var n=zS(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function ns(e){return Math.min(1,Math.max(0,e))}function BS(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function zS(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Gp(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function rs(e){return e<=1?"".concat(Number(e)*100,"%"):e}function uo(e){return e.length===1?"0"+e:String(e)}function qS(e,t,n){return{r:fn(e,255)*255,g:fn(t,255)*255,b:fn(n,255)*255}}function Kp(e,t,n){e=fn(e,255),t=fn(t,255),n=fn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:a,l}}function mc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*(6*n):n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function VS(e,t,n){var r,o,i;if(e=fn(e,360),t=fn(t,100),n=fn(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=mc(l,a,e+.3333333333333333),o=mc(l,a,e),i=mc(l,a,e-.3333333333333333)}return{r:r*255,g:o*255,b:i*255}}function gc(e,t,n){e=fn(e,255),t=fn(t,255),n=fn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s,v:a}}function HS(e,t,n){e=fn(e,360)*6,t=fn(t,100),n=fn(n,100);var r=Math.floor(e),o=e-r,i=n*(1-t),a=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,c=[n,a,i,i,l,n][s],u=[l,n,n,a,i,i][s],f=[i,i,l,n,n,a][s];return{r:c*255,g:u*255,b:f*255}}function vc(e,t,n,r){var o=[uo(Math.round(e).toString(16)),uo(Math.round(t).toString(16)),uo(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function WS(e,t,n,r,o){var i=[uo(Math.round(e).toString(16)),uo(Math.round(t).toString(16)),uo(Math.round(n).toString(16)),uo(US(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function US(e){return Math.round(parseFloat(e)*255).toString(16)}function Xp(e){return Tn(e)/255}function Tn(e){return parseInt(e,16)}function GS(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var _c={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ho(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,l=!1;return typeof e=="string"&&(e=YS(e)),typeof e=="object"&&(Cr(e.r)&&Cr(e.g)&&Cr(e.b)?(t=qS(e.r,e.g,e.b),a=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Cr(e.h)&&Cr(e.s)&&Cr(e.v)?(r=rs(e.s),o=rs(e.v),t=HS(e.h,r,o),a=!0,l="hsv"):Cr(e.h)&&Cr(e.s)&&Cr(e.l)&&(r=rs(e.s),i=rs(e.l),t=VS(e.h,r,i),a=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Gp(n),{ok:a,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var KS="[-\\+]?\\d+%?",XS="[-\\+]?\\d*\\.\\d+%?",Br="(?:".concat(XS,")|(?:").concat(KS,")"),yc="[\\s|\\(]+(".concat(Br,")[,|\\s]+(").concat(Br,")[,|\\s]+(").concat(Br,")\\s*\\)?"),bc="[\\s|\\(]+(".concat(Br,")[,|\\s]+(").concat(Br,")[,|\\s]+(").concat(Br,")[,|\\s]+(").concat(Br,")\\s*\\)?"),Xn={CSS_UNIT:new RegExp(Br),rgb:new RegExp("rgb"+yc),rgba:new RegExp("rgba"+bc),hsl:new RegExp("hsl"+yc),hsla:new RegExp("hsla"+bc),hsv:new RegExp("hsv"+yc),hsva:new RegExp("hsva"+bc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function YS(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(_c[e])e=_c[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Xn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Xn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Xn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Xn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Xn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Xn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Xn.hex8.exec(e),n?{r:Tn(n[1]),g:Tn(n[2]),b:Tn(n[3]),a:Xp(n[4]),format:t?"name":"hex8"}:(n=Xn.hex6.exec(e),n?{r:Tn(n[1]),g:Tn(n[2]),b:Tn(n[3]),format:t?"name":"hex"}:(n=Xn.hex4.exec(e),n?{r:Tn(n[1]+n[1]),g:Tn(n[2]+n[2]),b:Tn(n[3]+n[3]),a:Xp(n[4]+n[4]),format:t?"name":"hex8"}:(n=Xn.hex3.exec(e),n?{r:Tn(n[1]+n[1]),g:Tn(n[2]+n[2]),b:Tn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Cr(e){return!!Xn.CSS_UNIT.exec(String(e))}var Cn=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=GS(t)),this.originalInput=t;var o=Ho(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,l=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Gp(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=gc(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=gc(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Kp(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Kp(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),vc(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),WS(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(fn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(fn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+vc(this.r,this.g,this.b,!1),n=0,r=Object.entries(_c);n<r.length;n++){var o=r[n],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t!=null?t:this.format;var r=!1,o=this.a<1&&this.a>=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=ns(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=ns(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=ns(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=ns(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(r+a*i)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),os=2,Yp=.16,JS=.05,QS=.05,ZS=.15,Jp=5,Qp=4,eC=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Zp(e){var t=e.r,n=e.g,r=e.b,o=gc(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function is(e){var t=e.r,n=e.g,r=e.b;return"#".concat(vc(t,n,r,!1))}function tC(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function eh(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-os*t:Math.round(e.h)+os*t:r=n?Math.round(e.h)+os*t:Math.round(e.h)-os*t,r<0?r+=360:r>=360&&(r-=360),r}function th(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Yp*t:t===Qp?r=e.s+Yp:r=e.s+JS*t,r>1&&(r=1),n&&t===Jp&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function nh(e,t,n){var r;return n?r=e.v+QS*t:r=e.v-ZS*t,r>1&&(r=1),Number(r.toFixed(2))}function Bi(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Ho(e),o=Jp;o>0;o-=1){var i=Zp(r),a=is(Ho({h:eh(i,o,!0),s:th(i,o,!0),v:nh(i,o,!0)}));n.push(a)}n.push(is(r));for(var l=1;l<=Qp;l+=1){var s=Zp(r),c=is(Ho({h:eh(s,l),s:th(s,l),v:nh(s,l)}));n.push(c)}return t.theme==="dark"?eC.map(function(u){var f=u.index,d=u.opacity,b=is(tC(Ho(t.backgroundColor||"#141414"),Ho(n[f]),d*100));return b}):n}var wc={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},xc=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];xc.primary=xc[5];var Sc=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Sc.primary=Sc[5];var Cc=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Cc.primary=Cc[5];var Ec=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ec.primary=Ec[5];var Oc=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Oc.primary=Oc[5];var $c=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];$c.primary=$c[5];var Tc=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Tc.primary=Tc[5];var Pc=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Pc.primary=Pc[5];var as=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];as.primary=as[5];var Rc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Rc.primary=Rc[5];var jc=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];jc.primary=jc[5];var Mc=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Mc.primary=Mc[5];var Ic=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ic.primary=Ic[5];var Ac={red:xc,volcano:Sc,orange:Cc,gold:Ec,yellow:Oc,lime:$c,green:Tc,cyan:Pc,blue:as,geekblue:Rc,purple:jc,magenta:Mc,grey:Ic};function rh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rh(Object(n),!0).forEach(function(r){ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function Nc(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var oh="data-rc-order",ih="data-rc-priority",nC="rc-util-key",kc=new Map;function ah(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):nC}function ss(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function rC(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lc(e){return Array.from((kc.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function sh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xn())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=rC(r),l=a==="prependQueue",s=document.createElement("style");s.setAttribute(oh,a),l&&i&&s.setAttribute(ih,"".concat(i)),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;var c=ss(t),u=c.firstChild;if(r){if(l){var f=(t.styles||Lc(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(oh)))return!1;var b=Number(d.getAttribute(ih)||0);return i>=b});if(f.length)return c.insertBefore(s,f[f.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function lh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ss(t);return(t.styles||Lc(n)).find(function(r){return r.getAttribute(ah(t))===e})}function zi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=lh(e,t);if(n){var r=ss(t);r.removeChild(n)}}function oC(e,t){var n=kc.get(e);if(!n||!Nc(document,n)){var r=sh("",t),o=r.parentNode;kc.set(e,o),e.removeChild(r)}}function Er(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ss(n),o=Lc(r),i=se(se({},n),{},{styles:o});oC(r,i);var a=lh(t,i);if(a){var l,s;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((s=i.csp)===null||s===void 0?void 0:s.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=sh(e,i);return u.setAttribute(ah(i),t),u}function ch(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function iC(e){return ch(e)instanceof ShadowRoot}function ls(e){return iC(e)?ch(e):null}var Fc={},Dc=[],aC=function(t){Dc.push(t)};function zr(e,t){if(oe.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Dc.reduce(function(r,o){return o(r!=null?r:"","warning")},t);n&&console.error("Warning: ".concat(n))}}function sC(e,t){if(oe.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=Dc.reduce(function(r,o){return o(r!=null?r:"","note")},t);n&&console.warn("Note: ".concat(n))}}function uh(){Fc={}}function dh(e,t,n){!t&&!Fc[n]&&(e(!1,n),Fc[n]=!0)}function gt(e,t){dh(zr,e,t)}function lC(e,t){dh(sC,e,t)}gt.preMessage=aC,gt.resetWarned=uh,gt.noteOnce=lC;function cC(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function uC(e,t){gt(e,"[@ant-design/icons] ".concat(t))}function fh(e){return qe(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(qe(e.icon)==="object"||typeof e.icon=="function")}function ph(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[cC(n)]=r}return t},{})}function Bc(e,t,n){return n?A.createElement(e.tag,se(se({key:t},ph(e.attrs)),n),(e.children||[]).map(function(r,o){return Bc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):A.createElement(e.tag,se({key:t},ph(e.attrs)),(e.children||[]).map(function(r,o){return Bc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function hh(e){return Bi(e)[0]}function mh(e){return e?Array.isArray(e)?e:[e]:[]}var dC=`
25
- .anticon {
26
- display: inline-flex;
27
- align-items: center;
28
- color: inherit;
29
- font-style: normal;
30
- line-height: 0;
31
- text-align: center;
32
- text-transform: none;
33
- vertical-align: -0.125em;
34
- text-rendering: optimizeLegibility;
35
- -webkit-font-smoothing: antialiased;
36
- -moz-osx-font-smoothing: grayscale;
37
- }
38
-
39
- .anticon > * {
40
- line-height: 1;
41
- }
42
-
43
- .anticon svg {
44
- display: inline-block;
45
- }
46
-
47
- .anticon::before {
48
- display: none;
49
- }
50
-
51
- .anticon .anticon-icon {
52
- display: block;
53
- }
54
-
55
- .anticon[tabindex] {
56
- cursor: pointer;
57
- }
58
-
59
- .anticon-spin::before,
60
- .anticon-spin {
61
- display: inline-block;
62
- -webkit-animation: loadingCircle 1s infinite linear;
63
- animation: loadingCircle 1s infinite linear;
64
- }
65
-
66
- @-webkit-keyframes loadingCircle {
67
- 100% {
68
- -webkit-transform: rotate(360deg);
69
- transform: rotate(360deg);
70
- }
71
- }
72
-
73
- @keyframes loadingCircle {
74
- 100% {
75
- -webkit-transform: rotate(360deg);
76
- transform: rotate(360deg);
77
- }
78
- }
79
- `,fC=function(t){var n=A.useContext(fc),r=n.csp,o=n.prefixCls,i=dC;o&&(i=i.replace(/anticon/g,o)),A.useEffect(function(){var a=t.current,l=ls(a);Er(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:l})},[])},pC=["icon","className","onClick","style","primaryColor","secondaryColor"],qi={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function hC(e){var t=e.primaryColor,n=e.secondaryColor;qi.primaryColor=t,qi.secondaryColor=n||hh(t),qi.calculated=!!n}function mC(){return se({},qi)}var Wo=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,s=st(t,pC),c=v.useRef(),u=qi;if(a&&(u={primaryColor:a,secondaryColor:l||hh(a)}),fC(c),uC(fh(n),"icon should be icon definiton, but got ".concat(n)),!fh(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=se(se({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Bc(f.icon,"svg-".concat(f.name),se(se({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s),{},{ref:c}))};Wo.displayName="IconReact",Wo.getTwoToneColors=mC,Wo.setTwoToneColors=hC;function gh(e){var t=mh(e),n=ge(t,2),r=n[0],o=n[1];return Wo.setTwoToneColors({primaryColor:r,secondaryColor:o})}function gC(){var e=Wo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var vC=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];gh(as.primary);var qt=v.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,s=e.twoToneColor,c=st(e,vC),u=v.useContext(fc),f=u.prefixCls,d=f===void 0?"anticon":f,b=u.rootClassName,x=de(b,d,ae(ae({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!o||r.name==="loading"),n),O=a;O===void 0&&l&&(O=-1);var h=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=mh(s),p=ge(y,2),m=p[0],g=p[1];return v.createElement("span",$e({role:"img","aria-label":r.name},c,{ref:t,tabIndex:O,onClick:l,className:x}),v.createElement(Wo,{icon:r,primaryColor:m,secondaryColor:g,style:h}))});qt.displayName="AntdIcon",qt.getTwoToneColor=gC,qt.setTwoToneColor=gh;var _C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},yC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:_C}))},Vi=v.forwardRef(yC);oe.env.NODE_ENV!=="production"&&(Vi.displayName="CheckCircleFilled");var bC={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},wC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:bC}))},Uo=v.forwardRef(wC);oe.env.NODE_ENV!=="production"&&(Uo.displayName="CloseCircleFilled");var xC={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},SC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:xC}))},vh=v.forwardRef(SC);oe.env.NODE_ENV!=="production"&&(vh.displayName="CloseCircleOutlined");var CC={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},EC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:CC}))},fo=v.forwardRef(EC);oe.env.NODE_ENV!=="production"&&(fo.displayName="CloseOutlined");var OC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},$C=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:OC}))},_h=v.forwardRef($C);oe.env.NODE_ENV!=="production"&&(_h.displayName="CodeOutlined");var TC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},PC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:TC}))},yh=v.forwardRef(PC);oe.env.NODE_ENV!=="production"&&(yh.displayName="CopyOutlined");var RC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},jC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:RC}))},bh=v.forwardRef(jC);oe.env.NODE_ENV!=="production"&&(bh.displayName="DotChartOutlined");var MC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},IC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:MC}))},wh=v.forwardRef(IC);oe.env.NODE_ENV!=="production"&&(wh.displayName="EllipsisOutlined");var AC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},NC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:AC}))},Hi=v.forwardRef(NC);oe.env.NODE_ENV!=="production"&&(Hi.displayName="ExclamationCircleFilled");var kC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},LC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:kC}))},xh=v.forwardRef(LC);oe.env.NODE_ENV!=="production"&&(xh.displayName="EyeInvisibleOutlined");var FC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},DC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:FC}))},Sh=v.forwardRef(DC);oe.env.NODE_ENV!=="production"&&(Sh.displayName="EyeOutlined");var BC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},zC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:BC}))},cs=v.forwardRef(zC);oe.env.NODE_ENV!=="production"&&(cs.displayName="InfoCircleFilled");var qC={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},VC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:qC}))},us=v.forwardRef(VC);oe.env.NODE_ENV!=="production"&&(us.displayName="LoadingOutlined");var HC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},WC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:HC}))},Ch=v.forwardRef(WC);oe.env.NODE_ENV!=="production"&&(Ch.displayName="MinusOutlined");var UC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"},GC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:UC}))},Eh=v.forwardRef(GC);oe.env.NODE_ENV!=="production"&&(Eh.displayName="PauseOutlined");var KC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},XC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:KC}))},Oh=v.forwardRef(XC);oe.env.NODE_ENV!=="production"&&(Oh.displayName="PlayCircleOutlined");var YC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},JC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:YC}))},ds=v.forwardRef(JC);oe.env.NODE_ENV!=="production"&&(ds.displayName="PlusOutlined");var QC={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},ZC=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:QC}))},$h=v.forwardRef(ZC);oe.env.NODE_ENV!=="production"&&($h.displayName="QuestionCircleOutlined");var e1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},t1=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:e1}))},Th=v.forwardRef(t1);oe.env.NODE_ENV!=="production"&&(Th.displayName="SearchOutlined");var n1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},r1=function(t,n){return v.createElement(qt,$e({},t,{ref:n,icon:n1}))},Ph=v.forwardRef(r1);oe.env.NODE_ENV!=="production"&&(Ph.displayName="SettingOutlined");var zc={exports:{}},wt={};/**
80
- * @license React
81
- * react-is.production.min.js
82
- *
83
- * Copyright (c) Facebook, Inc. and its affiliates.
84
- *
85
- * This source code is licensed under the MIT license found in the
86
- * LICENSE file in the root directory of this source tree.
87
- */var Rh;function o1(){if(Rh)return wt;Rh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function O(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case e:switch(h=h.type,h){case n:case o:case r:case c:case u:return h;default:switch(h=h&&h.$$typeof,h){case l:case a:case s:case d:case f:case i:return h;default:return y}}case t:return y}}}return wt.ContextConsumer=a,wt.ContextProvider=i,wt.Element=e,wt.ForwardRef=s,wt.Fragment=n,wt.Lazy=d,wt.Memo=f,wt.Portal=t,wt.Profiler=o,wt.StrictMode=r,wt.Suspense=c,wt.SuspenseList=u,wt.isAsyncMode=function(){return!1},wt.isConcurrentMode=function(){return!1},wt.isContextConsumer=function(h){return O(h)===a},wt.isContextProvider=function(h){return O(h)===i},wt.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},wt.isForwardRef=function(h){return O(h)===s},wt.isFragment=function(h){return O(h)===n},wt.isLazy=function(h){return O(h)===d},wt.isMemo=function(h){return O(h)===f},wt.isPortal=function(h){return O(h)===t},wt.isProfiler=function(h){return O(h)===o},wt.isStrictMode=function(h){return O(h)===r},wt.isSuspense=function(h){return O(h)===c},wt.isSuspenseList=function(h){return O(h)===u},wt.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===c||h===u||h===b||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===f||h.$$typeof===i||h.$$typeof===a||h.$$typeof===s||h.$$typeof===x||h.getModuleId!==void 0)},wt.typeOf=O,wt}var xt={},jh;function i1(){return jh||(jh=1,oe.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),x=!1,O=!1,h=!1,y=!1,p=!1,m;m=Symbol.for("react.module.reference");function g(ne){return!!(typeof ne=="string"||typeof ne=="function"||ne===n||ne===o||p||ne===r||ne===c||ne===u||y||ne===b||x||O||h||typeof ne=="object"&&ne!==null&&(ne.$$typeof===d||ne.$$typeof===f||ne.$$typeof===i||ne.$$typeof===a||ne.$$typeof===s||ne.$$typeof===m||ne.getModuleId!==void 0))}function w(ne){if(typeof ne=="object"&&ne!==null){var ve=ne.$$typeof;switch(ve){case e:var me=ne.type;switch(me){case n:case o:case r:case c:case u:return me;default:var Ce=me&&me.$$typeof;switch(Ce){case l:case a:case s:case d:case f:case i:return Ce;default:return ve}}case t:return ve}}}var E=a,S=i,C=e,T=s,M=n,N=d,R=f,D=t,V=o,Z=r,J=c,I=u,U=!1,K=!1;function z(ne){return U||(U=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(ne){return K||(K=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(ne){return w(ne)===a}function F(ne){return w(ne)===i}function X(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===e}function te(ne){return w(ne)===s}function H(ne){return w(ne)===n}function W(ne){return w(ne)===d}function Q(ne){return w(ne)===f}function ie(ne){return w(ne)===t}function ce(ne){return w(ne)===o}function B(ne){return w(ne)===r}function q(ne){return w(ne)===c}function le(ne){return w(ne)===u}xt.ContextConsumer=E,xt.ContextProvider=S,xt.Element=C,xt.ForwardRef=T,xt.Fragment=M,xt.Lazy=N,xt.Memo=R,xt.Portal=D,xt.Profiler=V,xt.StrictMode=Z,xt.Suspense=J,xt.SuspenseList=I,xt.isAsyncMode=z,xt.isConcurrentMode=G,xt.isContextConsumer=L,xt.isContextProvider=F,xt.isElement=X,xt.isForwardRef=te,xt.isFragment=H,xt.isLazy=W,xt.isMemo=Q,xt.isPortal=ie,xt.isProfiler=ce,xt.isStrictMode=B,xt.isSuspense=q,xt.isSuspenseList=le,xt.isValidElementType=g,xt.typeOf=w}()),xt}oe.env.NODE_ENV==="production"?zc.exports=o1():zc.exports=i1();var Wi=zc.exports;function fs(e,t,n){var r=v.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var qc=function(t,n){typeof t=="function"?t(n):qe(t)==="object"&&t&&"current"in t&&(t.current=n)},Yn=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(i){n.forEach(function(a){qc(a,i)})}},Go=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return fs(function(){return Yn.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},qr=function(t){var n,r,o=Wi.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Wi.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Wi.ForwardRef)};function Mh(e){return A.isValidElement(e)&&!Wi.isFragment(e)}Number(A.version.split(".")[0])>=19;function po(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return A.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(po(r)):Wi.isFragment(r)&&r.props?n=n.concat(po(r.props.children,t)):n.push(r))}),n}function Ui(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ih(e){return e&&qe(e)==="object"&&Ui(e.nativeElement)?e.nativeElement:Ui(e)?e:null}function ps(e){var t=Ih(e);if(t)return t;if(e instanceof A.Component){var n;return(n=wr.findDOMNode)===null||n===void 0?void 0:n.call(wr,e)}return null}var Vc=v.createContext(null);function a1(e){var t=e.children,n=e.onBatchResize,r=v.useRef(0),o=v.useRef([]),i=v.useContext(Vc),a=v.useCallback(function(l,s,c){r.current+=1;var u=r.current;o.current.push({size:l,element:s,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,s,c)},[n,i]);return v.createElement(Vc.Provider,{value:a},t)}var Or=new Map;function Ah(e){e.forEach(function(t){var n,r=t.target;(n=Or.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Nh=new Za(Ah);oe.env.NODE_ENV,oe.env.NODE_ENV;function s1(e,t){Or.has(e)||(Or.set(e,new Set),Nh.observe(e)),Or.get(e).add(t)}function l1(e,t){Or.has(e)&&(Or.get(e).delete(t),Or.get(e).size||(Nh.unobserve(e),Or.delete(e)))}function pn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Up(r.key),r)}}function hn(e,t,n){return t&&kh(e.prototype,t),n&&kh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gi(e,t){return Gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gi(e,t)}function Vr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gi(e,t)}function Ki(e){return Ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ki(e)}function Hc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Hc=function(){return!!e})()}function it(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c1(e,t){if(t&&(qe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return it(e)}function Hr(e){var t=Hc();return function(){var n,r=Ki(e);if(t){var o=Ki(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c1(this,n)}}var u1=function(e){Vr(n,e);var t=Hr(n);function n(){return pn(this,n),t.apply(this,arguments)}return hn(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);function d1(e,t){var n=e.children,r=e.disabled,o=v.useRef(null),i=v.useRef(null),a=v.useContext(Vc),l=typeof n=="function",s=l?n(o):n,c=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!l&&v.isValidElement(s)&&qr(s),f=u?s.ref:null,d=Go(f,o),b=function(){var y;return ps(o.current)||(o.current&&qe(o.current)==="object"?ps((y=o.current)===null||y===void 0?void 0:y.nativeElement):null)||ps(i.current)};v.useImperativeHandle(t,function(){return b()});var x=v.useRef(e);x.current=e;var O=v.useCallback(function(h){var y=x.current,p=y.onResize,m=y.data,g=h.getBoundingClientRect(),w=g.width,E=g.height,S=h.offsetWidth,C=h.offsetHeight,T=Math.floor(w),M=Math.floor(E);if(c.current.width!==T||c.current.height!==M||c.current.offsetWidth!==S||c.current.offsetHeight!==C){var N={width:T,height:M,offsetWidth:S,offsetHeight:C};c.current=N;var R=S===Math.round(w)?w:S,D=C===Math.round(E)?E:C,V=se(se({},N),{},{offsetWidth:R,offsetHeight:D});a==null||a(V,h,m),p&&Promise.resolve().then(function(){p(V,h)})}},[]);return v.useEffect(function(){var h=b();return h&&!r&&s1(h,O),function(){return l1(h,O)}},[o.current,r]),v.createElement(u1,{ref:i},u?v.cloneElement(s,{ref:d}):s)}var Lh=v.forwardRef(d1);oe.env.NODE_ENV!=="production"&&(Lh.displayName="SingleObserver");var f1="rc-observer-key";function p1(e,t){var n=e.children,r=typeof n=="function"?[n]:po(n);return oe.env.NODE_ENV!=="production"&&(r.length>1?zr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&zr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(f1,"-").concat(i);return v.createElement(Lh,$e({},e,{key:a,ref:i===0?t:void 0}),o)})}var pr=v.forwardRef(p1);oe.env.NODE_ENV!=="production"&&(pr.displayName="ResizeObserver"),pr.Collection=a1;function Jn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function h1(e){if(Array.isArray(e))return pc(e)}function Fh(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function m1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
88
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ee(e){return h1(e)||Fh(e)||hc(e)||m1()}var Dh=function(t){return+setTimeout(t,16)},Bh=function(t){return clearTimeout(t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Dh=function(t){return window.requestAnimationFrame(t)},Bh=function(t){return window.cancelAnimationFrame(t)});var zh=0,hs=new Map;function qh(e){hs.delete(e)}var Ht=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;zh+=1;var r=zh;function o(i){if(i===0)qh(r),t();else{var a=Dh(function(){o(i-1)});hs.set(r,a)}}return o(n),r};Ht.cancel=function(e){var t=hs.get(e);return qh(e),Bh(t)},oe.env.NODE_ENV!=="production"&&(Ht.ids=function(){return hs});function Xi(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Yi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,s=r.has(i);if(gt(!s,"Warning: There may be circular references"),s)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var c=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],c))return!1;return!0}if(i&&a&&qe(i)==="object"&&qe(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(d){return o(i[d],a[d],c)})}return!1}return o(e,t)}var g1="%";function Wc(e){return e.join(g1)}var v1=function(){function e(t){pn(this,e),ae(this,"instanceId",void 0),ae(this,"cache",new Map),this.instanceId=t}return hn(e,[{key:"get",value:function(n){return this.opGet(Wc(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Wc(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),Ko="data-token-hash",Qn="data-css-hash",_1="data-cache-path",Wr="__cssinjs_instance__";function y1(){var e=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Qn,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Wr]=o[Wr]||e,o[Wr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Qn,"]"))).forEach(function(o){var i=o.getAttribute(Qn);if(r[i]){if(o[Wr]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new v1(e)}var ms=v.createContext({hashPriority:"low",cache:y1(),defaultCache:!0});function b1(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Uc=function(){function e(){pn(this,e),ae(this,"cache",void 0),ae(this,"keys",void 0),ae(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return hn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var s;a=(s=a)===null||s===void 0||(s=s.map)===null||s===void 0?void 0:s.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=ge(c,2),d=f[1];return o.internalGet(u)[1]<d?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),a=ge(i,1),l=a[0];this.delete(l)}this.keys.push(n)}var s=this.cache;n.forEach(function(c,u){if(u===n.length-1)s.set(c,{value:[r,o.cacheCallTimes++]});else{var f=s.get(c);f?f.map||(f.map=new Map):s.set(c,{map:new Map}),s=s.get(c).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!b1(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();ae(Uc,"MAX_CACHE_SIZE",20),ae(Uc,"MAX_CACHE_OFFSET",5);var Vh=0,Hh=function(){function e(t){pn(this,e),ae(this,"derivatives",void 0),ae(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Vh,t.length===0&&zr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Vh+=1}return hn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Gc=new Uc;function Kc(e){var t=Array.isArray(e)?e:[e];return Gc.has(t)||Gc.set(t,new Hh(t)),Gc.get(t)}var w1=new WeakMap,Xc={};function x1(e,t){for(var n=w1,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Xc)||n.set(Xc,e()),n.get(Xc)}var Wh=new WeakMap;function Ji(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Wh.get(e)||"";return n||(Object.keys(e).forEach(function(r){var o=e[r];n+=r,o instanceof Hh?n+=o.id:o&&qe(o)==="object"?n+=Ji(o,t):n+=o}),t&&(n=Xi(n)),Wh.set(e,n)),n}function Uh(e,t){return Xi("".concat(t,"_").concat(Ji(e,!0)))}var Yc=xn();function xe(e){return typeof e=="number"?"".concat(e,"px"):e}function gs(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var i=se(se({},r),{},ae(ae({},Ko,t),Qn,n)),a=Object.keys(i).map(function(l){var s=i[l];return s?"".concat(l,'="').concat(s,'"'):null}).filter(function(l){return l}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var vs=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},S1=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var i=ge(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},Gh=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,s,c=ge(a,2),u=c[0],f=c[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(s=r.ignore)!==null&&s!==void 0&&s[u])){var d,b=vs(u,r==null?void 0:r.prefix);o[b]=typeof f=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(b,")")}}),[i,S1(o,n,{scope:r==null?void 0:r.scope})]},Kh=oe.env.NODE_ENV!=="test"&&xn()?v.useLayoutEffect:v.useEffect,nn=function(t,n){var r=v.useRef(!0);Kh(function(){return t(r.current)},n),Kh(function(){return r.current=!1,function(){r.current=!0}},[])},Jc=function(t,n){nn(function(r){if(!r)return t()},n)},C1=se({},v),Xh=C1.useInsertionEffect,E1=function(t,n,r){v.useMemo(t,r),nn(function(){return n(!0)},r)},O1=Xh?function(e,t,n){return Xh(function(){return e(),t()},n)}:E1,$1=se({},v),T1=$1.useInsertionEffect,P1=function(t){var n=[],r=!1;function o(i){if(r){oe.env.NODE_ENV!=="production"&&zr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return v.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},R1=function(){return function(t){t()}},j1=typeof T1!="undefined"?P1:R1;function M1(){return!1}var Qc=!1;function I1(){return Qc}const A1=oe.env.NODE_ENV==="production"?M1:I1;if(oe.env.NODE_ENV!=="production"&&typeof module!="undefined"&&module&&module.hot&&typeof window!="undefined"){var Zc=window;if(typeof Zc.webpackHotUpdate=="function"){var N1=Zc.webpackHotUpdate;Zc.webpackHotUpdate=function(){return Qc=!0,setTimeout(function(){Qc=!1},0),N1.apply(void 0,arguments)}}}function eu(e,t,n,r,o){var i=v.useContext(ms),a=i.cache,l=[e].concat(Ee(t)),s=Wc(l),c=j1([s]),u=A1(),f=function(O){a.opUpdate(s,function(h){var y=h||[void 0,void 0],p=ge(y,2),m=p[0],g=m===void 0?0:m,w=p[1],E=w;oe.env.NODE_ENV!=="production"&&w&&u&&(r==null||r(E,u),E=null);var S=E||n(),C=[g,S];return O?O(C):C})};v.useMemo(function(){f()},[s]);var d=a.opGet(s);oe.env.NODE_ENV!=="production"&&!d&&(f(),d=a.opGet(s));var b=d[1];return O1(function(){o==null||o(b)},function(x){return f(function(O){var h=ge(O,2),y=h[0],p=h[1];return x&&y===0&&(o==null||o(b)),[y+1,p]}),function(){a.opUpdate(s,function(O){var h=O||[],y=ge(h,2),p=y[0],m=p===void 0?0:p,g=y[1],w=m-1;return w===0?(c(function(){(x||!a.opGet(s))&&(r==null||r(g,!1))}),null):[m-1,g]})}},[s]),b}var k1={},L1=oe.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",ho=new Map;function F1(e){ho.set(e,(ho.get(e)||0)+1)}function D1(e,t){if(typeof document!="undefined"){var n=document.querySelectorAll("style[".concat(Ko,'="').concat(e,'"]'));n.forEach(function(r){if(r[Wr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var B1=0;function z1(e,t){ho.set(e,(ho.get(e)||0)-1);var n=Array.from(ho.keys()),r=n.filter(function(o){var i=ho.get(o)||0;return i<=0});n.length-r.length>B1&&r.forEach(function(o){D1(o,t),ho.delete(o)})}var q1=function(t,n,r,o){var i=r.getDerivativeToken(t),a=se(se({},i),n);return o&&(a=o(a)),a},Yh="token";function V1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=A.useContext(ms),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,s=n.override,c=s===void 0?k1:s,u=n.formatToken,f=n.getComputedToken,d=n.cssVar,b=x1(function(){return Object.assign.apply(Object,[{}].concat(Ee(t)))},t),x=Ji(b),O=Ji(c),h=d?Ji(d):"",y=eu(Yh,[l,e.id,x,O,h],function(){var p,m=f?f(b,c,e):q1(b,c,e,u),g=se({},m),w="";if(d){var E=Gh(m,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),S=ge(E,2);m=S[0],w=S[1]}var C=Uh(m,l);m._tokenKey=C,g._tokenKey=Uh(g,l);var T=(p=d==null?void 0:d.key)!==null&&p!==void 0?p:C;m._themeKey=T,F1(T);var M="".concat(L1,"-").concat(Xi(C));return m._hashId=M,[m,M,g,w,(d==null?void 0:d.key)||""]},function(p){z1(p[0]._themeKey,o)},function(p){var m=ge(p,4),g=m[0],w=m[3];if(d&&w){var E=Er(w,Xi("css-variables-".concat(g._themeKey)),{mark:Qn,prepend:"queue",attachTo:i,priority:-999});E[Wr]=o,E.setAttribute(Ko,g._themeKey)}});return y}var H1=function(t,n,r){var o=ge(t,5),i=o[2],a=o[3],l=o[4],s=r||{},c=s.plain;if(!a)return null;var u=i._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},b=gs(a,l,u,d,c);return[f,u,b]},W1={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Jh="comm",Qh="rule",Zh="decl",U1="@import",G1="@keyframes",K1="@layer",em=Math.abs,tu=String.fromCharCode;function tm(e){return e.trim()}function _s(e,t,n){return e.replace(t,n)}function X1(e,t,n){return e.indexOf(t,n)}function Qi(e,t){return e.charCodeAt(t)|0}function Xo(e,t,n){return e.slice(t,n)}function hr(e){return e.length}function Y1(e){return e.length}function ys(e,t){return t.push(e),e}var bs=1,Yo=1,nm=0,kn=0,en=0,Jo="";function nu(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:bs,column:Yo,length:a,return:"",siblings:l}}function J1(){return en}function Q1(){return en=kn>0?Qi(Jo,--kn):0,Yo--,en===10&&(Yo=1,bs--),en}function Zn(){return en=kn<nm?Qi(Jo,kn++):0,Yo++,en===10&&(Yo=1,bs++),en}function Ur(){return Qi(Jo,kn)}function ws(){return kn}function xs(e,t){return Xo(Jo,e,t)}function Zi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Z1(e){return bs=Yo=1,nm=hr(Jo=e),kn=0,[]}function eE(e){return Jo="",e}function ru(e){return tm(xs(kn-1,ou(e===91?e+2:e===40?e+1:e)))}function tE(e){for(;(en=Ur())&&en<33;)Zn();return Zi(e)>2||Zi(en)>3?"":" "}function nE(e,t){for(;--t&&Zn()&&!(en<48||en>102||en>57&&en<65||en>70&&en<97););return xs(e,ws()+(t<6&&Ur()==32&&Zn()==32))}function ou(e){for(;Zn();)switch(en){case e:return kn;case 34:case 39:e!==34&&e!==39&&ou(en);break;case 40:e===41&&ou(e);break;case 92:Zn();break}return kn}function rE(e,t){for(;Zn()&&e+en!==57;)if(e+en===84&&Ur()===47)break;return"/*"+xs(t,kn-1)+"*"+tu(e===47?e:Zn())}function oE(e){for(;!Zi(Ur());)Zn();return xs(e,kn)}function iE(e){return eE(Ss("",null,null,null,[""],e=Z1(e),0,[0],e))}function Ss(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,f=a,d=0,b=0,x=0,O=1,h=1,y=1,p=0,m="",g=o,w=i,E=r,S=m;h;)switch(x=p,p=Zn()){case 40:if(x!=108&&Qi(S,f-1)==58){X1(S+=_s(ru(p),"&","&\f"),"&\f",em(c?l[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:S+=ru(p);break;case 9:case 10:case 13:case 32:S+=tE(x);break;case 92:S+=nE(ws()-1,7);continue;case 47:switch(Ur()){case 42:case 47:ys(aE(rE(Zn(),ws()),t,n,s),s),(Zi(x||1)==5||Zi(Ur()||1)==5)&&hr(S)&&Xo(S,-1,void 0)!==" "&&(S+=" ");break;default:S+="/"}break;case 123*O:l[c++]=hr(S)*y;case 125*O:case 59:case 0:switch(p){case 0:case 125:h=0;case 59+u:y==-1&&(S=_s(S,/\f/g,"")),b>0&&(hr(S)-f||O===0&&x===47)&&ys(b>32?om(S+";",r,n,f-1,s):om(_s(S," ","")+";",r,n,f-2,s),s);break;case 59:S+=";";default:if(ys(E=rm(S,t,n,c,u,o,l,m,g=[],w=[],f,i),i),p===123)if(u===0)Ss(S,t,E,E,g,i,f,l,w);else switch(d===99&&Qi(S,3)===110?100:d){case 100:case 108:case 109:case 115:Ss(e,E,E,r&&ys(rm(e,E,E,0,0,o,l,m,o,g=[],f,w),w),o,w,f,l,r?g:w);break;default:Ss(S,E,E,E,[""],w,0,l,w)}}c=u=b=0,O=y=1,m=S="",f=a;break;case 58:f=1+hr(S),b=x;default:if(O<1){if(p==123)--O;else if(p==125&&O++==0&&Q1()==125)continue}switch(S+=tu(p),p*O){case 38:y=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(hr(S)-1)*y,y=1;break;case 64:Ur()===45&&(S+=ru(Zn())),d=Ur(),u=f=hr(m=S+=oE(ws())),p++;break;case 45:x===45&&hr(S)==2&&(O=0)}}return i}function rm(e,t,n,r,o,i,a,l,s,c,u,f){for(var d=o-1,b=o===0?i:[""],x=Y1(b),O=0,h=0,y=0;O<r;++O)for(var p=0,m=Xo(e,d+1,d=em(h=a[O])),g=e;p<x;++p)(g=tm(h>0?b[p]+" "+m:_s(m,/&\f/g,b[p])))&&(s[y++]=g);return nu(e,t,n,o===0?Qh:l,s,c,u,f)}function aE(e,t,n,r){return nu(e,t,n,Jh,tu(J1()),Xo(e,2,-2),0,r)}function om(e,t,n,r,o){return nu(e,t,n,Zh,Xo(e,0,r),Xo(e,r+1,-1),r,o)}function iu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function sE(e,t,n,r){switch(e.type){case K1:if(e.children.length)break;case U1:case Zh:return e.return=e.return||e.value;case Jh:return"";case G1:return e.return=e.value+"{"+iu(e.children,r)+"}";case Qh:if(!hr(e.value=e.props.join(",")))return""}return hr(n=iu(e.children,r))?e.return=e.value+"{"+n+"}":""}function im(e,t){var n=t.path,r=t.parentSelectors;gt(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var lE=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&im("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},cE=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&im("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},am="data-ant-cssinjs-cache-path",sm="_FILE_STYLE__",mo,lm=!0;function uE(){if(!mo&&(mo={},xn())){var e=document.createElement("div");e.className=am,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var i=o.split(":"),a=ge(i,2),l=a[0],s=a[1];mo[l]=s});var n=document.querySelector("style[".concat(am,"]"));if(n){var r;lm=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function dE(e){return uE(),!!mo[e]}function fE(e){var t=mo[e],n=null;if(t&&xn())if(lm)n=sm;else{var r=document.querySelector("style[".concat(Qn,'="').concat(mo[e],'"]'));r?n=r.innerHTML:delete mo[e]}return[n,t]}var cm="_skip_check_",um="_multi_value_";function Cs(e){var t=iu(iE(e),sE);return t.replace(/\{%%%\:[^;];}/g,";")}function pE(e){return qe(e)==="object"&&e&&(cm in e||um in e)}function dm(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var l,s=a.trim().split(/\s+/),c=s[0]||"",u=((l=c.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Ee(s.slice(1))).join(" ")});return i.join(",")}var hE=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer,c=n.path,u=n.hashPriority,f=n.transformers,d=f===void 0?[]:f,b=n.linters,x=b===void 0?[]:b,O="",h={};function y(g){var w=g.getName(l);if(!h[w]){var E=e(g.style,n,{root:!1,parentSelectors:a}),S=ge(E,1),C=S[0];h[w]="@keyframes ".concat(g.getName(l)).concat(C)}}function p(g){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return g.forEach(function(E){Array.isArray(E)?p(E,w):E&&w.push(E)}),w}var m=p(Array.isArray(t)?t:[t]);return m.forEach(function(g){var w=typeof g=="string"&&!o?{}:g;if(typeof w=="string")O+="".concat(w,`
89
- `);else if(w._keyframe)y(w);else{var E=d.reduce(function(S,C){var T;return(C==null||(T=C.visit)===null||T===void 0?void 0:T.call(C,S))||S},w);Object.keys(E).forEach(function(S){var C=E[S];if(qe(C)==="object"&&C&&(S!=="animationName"||!C._keyframe)&&!pE(C)){var T=!1,M=S.trim(),N=!1;(o||i)&&l?M.startsWith("@")?T=!0:M==="&"?M=dm("",l,u):M=dm(S,l,u):o&&!l&&(M==="&"||M==="")&&(M="",N=!0);var R=e(C,n,{root:N,injectHash:T,parentSelectors:[].concat(Ee(a),[M])}),D=ge(R,2),V=D[0],Z=D[1];h=se(se({},h),Z),O+="".concat(M).concat(V)}else{let U=function(K,z){oe.env.NODE_ENV!=="production"&&(qe(C)!=="object"||!(C!=null&&C[cm]))&&[lE,cE].concat(Ee(x)).forEach(function(F){return F(K,z,{path:c,hashId:l,parentSelectors:a})});var G=K.replace(/[A-Z]/g,function(F){return"-".concat(F.toLowerCase())}),L=z;!W1[K]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),K==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(y(z),L=z.getName(l)),O+="".concat(G,":").concat(L,";")};var J,I=(J=C==null?void 0:C.value)!==null&&J!==void 0?J:C;qe(C)==="object"&&C!==null&&C!==void 0&&C[um]&&Array.isArray(I)?I.forEach(function(K){U(S,K)}):U(S,I)}})}}),o?s&&(O="@layer ".concat(s.name," {").concat(O,"}"),s.dependencies&&(h["@layer ".concat(s.name)]=s.dependencies.map(function(g){return"@layer ".concat(g,", ").concat(s.name,";")}).join(`
90
- `))):O="{".concat(O,"}"),[O,h]};function fm(e,t){return Xi("".concat(e.join("%")).concat(t))}function mE(){return null}var pm="style";function au(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,s=e.order,c=s===void 0?0:s,u=v.useContext(ms),f=u.autoClear,d=u.mock,b=u.defaultCache,x=u.hashPriority,O=u.container,h=u.ssrInline,y=u.transformers,p=u.linters,m=u.cache,g=u.layer,w=n._tokenKey,E=[w];g&&E.push("layer"),E.push.apply(E,Ee(r));var S=Yc;oe.env.NODE_ENV!=="production"&&d!==void 0&&(S=d==="client");var C=eu(pm,E,function(){var D=E.join("|");if(dE(D)){var V=fE(D),Z=ge(V,2),J=Z[0],I=Z[1];if(J)return[J,w,I,{},l,c]}var U=t(),K=hE(U,{hashId:o,hashPriority:x,layer:g?i:void 0,path:r.join("-"),transformers:y,linters:p}),z=ge(K,2),G=z[0],L=z[1],F=Cs(G),X=fm(E,F);return[F,w,X,L,l,c]},function(D,V){var Z=ge(D,3),J=Z[2];(V||f)&&Yc&&zi(J,{mark:Qn})},function(D){var V=ge(D,4),Z=V[0];V[1];var J=V[2],I=V[3];if(S&&Z!==sm){var U={mark:Qn,prepend:g?!1:"queue",attachTo:O,priority:c},K=typeof a=="function"?a():a;K&&(U.csp={nonce:K});var z=[],G=[];Object.keys(I).forEach(function(F){F.startsWith("@layer")?z.push(F):G.push(F)}),z.forEach(function(F){Er(Cs(I[F]),"_layer-".concat(F),se(se({},U),{},{prepend:!0}))});var L=Er(Z,J,U);L[Wr]=m.instanceId,L.setAttribute(Ko,w),oe.env.NODE_ENV!=="production"&&L.setAttribute(_1,E.join("|")),G.forEach(function(F){Er(Cs(I[F]),"_effect-".concat(F),U)})}}),T=ge(C,3),M=T[0],N=T[1],R=T[2];return function(D){var V;return!h||S||!b?V=v.createElement(mE,null):V=v.createElement("style",$e({},ae(ae({},Ko,N),Qn,R),{dangerouslySetInnerHTML:{__html:M}})),v.createElement(v.Fragment,null,V,D)}}var gE=function(t,n,r){var o=ge(t,6),i=o[0],a=o[1],l=o[2],s=o[3],c=o[4],u=o[5],f=r||{},d=f.plain;if(c)return null;var b=i,x={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return b=gs(i,a,l,x,d),s&&Object.keys(s).forEach(function(O){if(!n[O]){n[O]=!0;var h=Cs(s[O]),y=gs(h,a,"_effect-".concat(O),x,d);O.startsWith("@layer")?b=y+b:b+=y}}),[u,l,b]},hm="cssVar",vE=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=s===void 0?"":s,u=A.useContext(ms),f=u.cache.instanceId,d=u.container,b=l._tokenKey,x=[].concat(Ee(t.path),[r,c,b]),O=eu(hm,x,function(){var h=n(),y=Gh(h,r,{prefix:o,unitless:i,ignore:a,scope:c}),p=ge(y,2),m=p[0],g=p[1],w=fm(x,g);return[m,g,w,r]},function(h){var y=ge(h,3),p=y[2];Yc&&zi(p,{mark:Qn})},function(h){var y=ge(h,3),p=y[1],m=y[2];if(p){var g=Er(p,m,{mark:Qn,prepend:"queue",attachTo:d,priority:-999});g[Wr]=f,g.setAttribute(Ko,r)}});return O},_E=function(t,n,r){var o=ge(t,4),i=o[1],a=o[2],l=o[3],s=r||{},c=s.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=gs(i,l,a,f,c);return[u,a,d]};ae(ae(ae({},pm,gE),Yh,H1),hm,_E);var lt=function(){function e(t,n){pn(this,e),ae(this,"name",void 0),ae(this,"style",void 0),ae(this,"_keyframe",!0),this.name=t,this.style=n}return hn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Qo(e){return e.notSplit=!0,e}Qo(["borderTop","borderBottom"]),Qo(["borderTop"]),Qo(["borderBottom"]),Qo(["borderLeft","borderRight"]),Qo(["borderLeft"]),Qo(["borderRight"]);function yE(e){return Hp(e)||Fh(e)||hc(e)||Wp()}function mr(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function mm(e,t,n,r){if(!t.length)return n;var o=yE(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=Ee(e):l=se({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=mm(l[i],a,n,r),l}function er(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!mr(e,t.slice(0,-1))?e:mm(e,t,n,r)}function bE(e){return qe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function gm(e){return Array.isArray(e)?[]:{}}var wE=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Zo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=gm(t[0]);return t.forEach(function(o){function i(a,l){var s=new Set(l),c=mr(o,a),u=Array.isArray(c);if(u||bE(c)){if(!s.has(c)){s.add(c);var f=mr(r,a);u?r=er(r,a,[]):(!f||qe(f)!=="object")&&(r=er(r,a,gm(c))),wE(c).forEach(function(d){i([].concat(Ee(a),[d]),s)})}}else r=er(r,a,c)}i([])}),r}function vm(){}let $r=null;function xE(){$r=null,uh()}let su=vm;oe.env.NODE_ENV!=="production"&&(su=(e,t,n)=>{gt(e,`[antd: ${t}] ${n}`),oe.env.NODE_ENV==="test"&&xE()});const _m=v.createContext({}),At=oe.env.NODE_ENV!=="production"?e=>{const{strict:t}=v.useContext(_m),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=$r;$r||($r={}),$r[e]=$r[e]||[],$r[e].includes(i||"")||$r[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",$r)}else oe.env.NODE_ENV!=="production"&&su(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=vm,e},go=su,ym=A.createContext(void 0);var SE={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},CE={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},EE=se(se({},CE),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const bm={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},wm={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},EE),timePickerLocale:Object.assign({},bm)},Pn="${label} is not a valid ${type}",Gr={locale:"en",Pagination:SE,DatePicker:wm,TimePicker:bm,Calendar:wm,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Pn,method:Pn,array:Pn,object:Pn,number:Pn,date:Pn,boolean:Pn,integer:Pn,float:Pn,regexp:Pn,email:Pn,url:Pn,hex:Pn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Es=Object.assign({},Gr.Modal),Os=[];const xm=()=>Os.reduce((e,t)=>Object.assign(Object.assign({},e),t),Gr.Modal);function OE(e){if(e){const t=Object.assign({},e);return Os.push(t),Es=xm(),()=>{Os=Os.filter(n=>n!==t),Es=xm()}}Es=Object.assign({},Gr.Modal)}function Sm(){return Es}const lu=A.createContext(void 0),$s=(e,t)=>{const n=v.useContext(lu),r=v.useMemo(()=>{var i;const a=t||Gr[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=v.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Gr.locale:i},[n]);return[r,o]},Cm="internalMark",Em=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(oe.env.NODE_ENV!=="production"){const i=At("LocaleProvider");oe.env.NODE_ENV!=="production"&&i(r===Cm,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}v.useEffect(()=>OE(t==null?void 0:t.Modal),[t]);const o=v.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return v.createElement(lu.Provider,{value:o},n)};oe.env.NODE_ENV!=="production"&&(Em.displayName="LocaleProvider");const Om={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},ea=Object.assign(Object.assign({},Om),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
91
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
92
- 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function $E(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,f=n(s),d=n(o),b=n(i),x=n(a),O=n(l),h=r(c,u),y=e.colorLink||e.colorInfo,p=n(y);return Object.assign(Object.assign({},h),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:x[1],colorErrorBgHover:x[2],colorErrorBgActive:x[3],colorErrorBorder:x[3],colorErrorBorderHover:x[4],colorErrorHover:x[5],colorError:x[6],colorErrorActive:x[7],colorErrorTextHover:x[8],colorErrorText:x[9],colorErrorTextActive:x[10],colorWarningBg:b[1],colorWarningBgHover:b[2],colorWarningBorder:b[3],colorWarningBorderHover:b[4],colorWarningHover:b[4],colorWarning:b[6],colorWarningActive:b[7],colorWarningTextHover:b[8],colorWarningText:b[9],colorWarningTextActive:b[10],colorInfoBg:O[1],colorInfoBgHover:O[2],colorInfoBorder:O[3],colorInfoBorderHover:O[4],colorInfoHover:O[4],colorInfo:O[6],colorInfoActive:O[7],colorInfoTextHover:O[8],colorInfoText:O[9],colorInfoTextActive:O[10],colorLinkHover:p[4],colorLink:p[6],colorLinkActive:p[7],colorBgMask:new Cn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const TE=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function PE(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},TE(r))}const RE=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Ts(e){return(e+8)/e}function jE(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Ts(n)}))}const ME=e=>{const t=jE(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function IE(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Tr=(e,t)=>new Cn(e).setAlpha(t).toRgbString(),ta=(e,t)=>new Cn(e).darken(t).toHexString(),AE=e=>{const t=Bi(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},NE=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Tr(r,.88),colorTextSecondary:Tr(r,.65),colorTextTertiary:Tr(r,.45),colorTextQuaternary:Tr(r,.25),colorFill:Tr(r,.15),colorFillSecondary:Tr(r,.06),colorFillTertiary:Tr(r,.04),colorFillQuaternary:Tr(r,.02),colorBgLayout:ta(n,4),colorBgContainer:ta(n,0),colorBgElevated:ta(n,0),colorBgSpotlight:Tr(r,.85),colorBgBlur:"transparent",colorBorder:ta(n,15),colorBorderSecondary:ta(n,6)}};function kE(e){wc.pink=wc.magenta,Ac.pink=Ac.magenta;const t=Object.keys(Om).map(n=>{const r=e[n]===wc[n]?Ac[n]:Bi(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),$E(e,{generateColorPalettes:AE,generateNeutralColorPalettes:NE})),ME(e.fontSize)),IE(e)),RE(e)),PE(e))}const $m=Kc(kE),cu={token:ea,override:{override:ea},hashed:!0},Tm=A.createContext(cu),na="ant",uu="anticon",LE=["outlined","borderless","filled"],FE=(e,t)=>t||(e?`${na}-${e}`:na),Je=v.createContext({getPrefixCls:FE,iconPrefixCls:uu}),DE=`-ant-${Date.now()}-${Math.random()}`;function BE(e,t){const n={},r=(a,l)=>{let s=a.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(a,l)=>{const s=new Cn(a),c=Bi(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=c[1],n[`${l}-color-hover`]=c[4],n[`${l}-color-active`]=c[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=c[0],n[`${l}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Cn(t.primaryColor),l=Bi(a.toRgbString());l.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const s=new Cn(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
93
- :root {
94
- ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
95
- `)}
96
- }
97
- `.trim()}function zE(e,t){const n=BE(e,t);xn()?Er(n,`${DE}-dynamic-theme`):oe.env.NODE_ENV!=="production"&&go(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Kr=v.createContext(!1),du=e=>{let{children:t,disabled:n}=e;const r=v.useContext(Kr);return v.createElement(Kr.Provider,{value:n!=null?n:r},t)},vo=v.createContext(void 0),qE=e=>{let{children:t,size:n}=e;const r=v.useContext(vo);return v.createElement(vo.Provider,{value:n||r},t)};function VE(){const e=A.useContext(Kr),t=A.useContext(vo);return{componentDisabled:e,componentSize:t}}var Pm=hn(function e(){pn(this,e)}),Rm="CALC_UNIT",HE=new RegExp(Rm,"g");function fu(e){return typeof e=="number"?"".concat(e).concat(Rm):e}var WE=function(e){Vr(n,e);var t=Hr(n);function n(r,o){var i;pn(this,n),i=t.call(this),ae(it(i),"result",""),ae(it(i),"unitlessCssVar",void 0),ae(it(i),"lowPriority",void 0);var a=qe(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=fu(r):a==="string"&&(i.result=r),i}return hn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(fu(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(fu(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var i=this,a=o||{},l=a.unit,s=!0;return typeof l=="boolean"?s=l:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(s=!1),this.result=this.result.replace(HE,s?"px":""),typeof this.lowPriority!="undefined"?"calc(".concat(this.result,")"):this.result}}]),n}(Pm),UE=function(e){Vr(n,e);var t=Hr(n);function n(r){var o;return pn(this,n),o=t.call(this),ae(it(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return hn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n}(Pm),GE=function(t,n){var r=t==="css"?WE:UE;return function(o){return new r(o,n)}},jm=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function cn(e){var t=v.useRef();t.current=e;var n=v.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function _o(e){var t=v.useRef(!1),n=v.useState(e),r=ge(n,2),o=r[0],i=r[1];v.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,s){s&&t.current||i(l)}return[o,a]}function pu(e){return e!==void 0}function tr(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=_o(function(){return pu(o)?o:pu(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),s=ge(l,2),c=s[0],u=s[1],f=o!==void 0?o:c,d=a?a(f):f,b=cn(i),x=_o([f]),O=ge(x,2),h=O[0],y=O[1];Jc(function(){var m=h[0];c!==m&&b(c,m)},[h]),Jc(function(){pu(o)||u(o)},[o]);var p=cn(function(m,g){u(m,g),y([f],g)});return[d,p]}function Mm(e,t,n,r){var o=se({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var s=ge(l,2),c=s[0],u=s[1];if(oe.env.NODE_ENV!=="production"&&gt(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var f;(f=o[u])!==null&&f!==void 0||(o[u]=o==null?void 0:o[c])}})}var a=se(se({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var Im=oe.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC!="undefined",hu=!0;function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Im)return Object.assign.apply(Object,[{}].concat(t));hu=!1;var r={};return t.forEach(function(o){if(qe(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),hu=!0,r}var Am={};function KE(){}var XE=function(t){var n,r=t,o=KE;return Im&&typeof Proxy!="undefined"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(hu){var s;(s=n)===null||s===void 0||s.add(l)}return a[l]}}),o=function(a,l){var s;Am[a]={global:Array.from(n),component:se(se({},(s=Am[a])===null||s===void 0?void 0:s.component),l)}}),{token:r,keys:n,flush:o}};function Nm(e,t,n){if(typeof n=="function"){var r;return n(Wt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n!=null?n:{}}function YE(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(i){return xe(i)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(i){return xe(i)}).join(","),")")}}}var JE=1e3*60*10,QE=function(){function e(){pn(this,e),ae(this,"map",new Map),ae(this,"objectIDMap",new WeakMap),ae(this,"nextID",0),ae(this,"lastAccessBeat",new Map),ae(this,"accessBeat",0)}return hn(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(i){return i&&qe(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(qe(i),"_").concat(i)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>JE&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),km=new QE;function ZE(e,t){return A.useMemo(function(){var n=km.get(t);if(n)return n;var r=e();return km.set(t,r),r},t)}var eO=function(){return{}};function tO(e){var t=e.useCSP,n=t===void 0?eO:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function s(d,b,x,O){var h=Array.isArray(d)?d[0]:d;function y(C){return"".concat(String(h)).concat(C.slice(0,1).toUpperCase()).concat(C.slice(1))}var p=(O==null?void 0:O.unitless)||{},m=typeof l=="function"?l(d):{},g=se(se({},m),{},ae({},y("zIndexPopup"),!0));Object.keys(p).forEach(function(C){g[y(C)]=p[C]});var w=se(se({},O),{},{unitless:g,prefixToken:y}),E=u(d,b,x,w),S=c(h,x,w);return function(C){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,M=E(C,T),N=ge(M,2),R=N[1],D=S(T),V=ge(D,2),Z=V[0],J=V[1];return[Z,R,J]}}function c(d,b,x){var O=x.unitless,h=x.injectStyle,y=h===void 0?!0:h,p=x.prefixToken,m=x.ignore,g=function(S){var C=S.rootCls,T=S.cssVar,M=T===void 0?{}:T,N=r(),R=N.realToken;return vE({path:[d],prefix:M.prefix,key:M.key,unitless:O,ignore:m,token:R,scope:C},function(){var D=Nm(d,R,b),V=Mm(d,R,D,{deprecatedTokens:x==null?void 0:x.deprecatedTokens});return Object.keys(D).forEach(function(Z){V[p(Z)]=V[Z],delete V[Z]}),V}),null},w=function(S){var C=r(),T=C.cssVar;return[function(M){return y&&T?A.createElement(A.Fragment,null,A.createElement(g,{rootCls:S,cssVar:T,component:d}),M):M},T==null?void 0:T.key]};return w}function u(d,b,x){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(d)?d:[d,d],y=ge(h,1),p=y[0],m=h.join("-"),g=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,S=r(),C=S.theme,T=S.realToken,M=S.hashId,N=S.token,R=S.cssVar,D=o(),V=D.rootPrefixCls,Z=D.iconPrefixCls,J=n(),I=R?"css":"js",U=ZE(function(){var X=new Set;return R&&Object.keys(O.unitless||{}).forEach(function(te){X.add(vs(te,R.prefix)),X.add(vs(te,jm(p,R.prefix)))}),GE(I,X)},[I,p,R==null?void 0:R.prefix]),K=YE(I),z=K.max,G=K.min,L={theme:C,token:N,hashId:M,nonce:function(){return J.nonce},clientOnly:O.clientOnly,layer:g,order:O.order||-999};au(se(se({},L),{},{clientOnly:!1,path:["Shared",V]}),function(){return typeof i=="function"?i(N):[]});var F=au(se(se({},L),{},{path:[m,w,Z]}),function(){if(O.injectStyle===!1)return[];var X=XE(N),te=X.token,H=X.flush,W=Nm(p,T,x),Q=".".concat(w),ie=Mm(p,T,W,{deprecatedTokens:O.deprecatedTokens});R&&W&&qe(W)==="object"&&Object.keys(W).forEach(function(le){W[le]="var(".concat(vs(le,jm(p,R.prefix)),")")});var ce=Wt(te,{componentCls:Q,prefixCls:w,iconCls:".".concat(Z),antCls:".".concat(V),calc:U,max:z,min:G},R?W:ie),B=b(ce,{hashId:M,prefixCls:w,rootPrefixCls:V,iconPrefixCls:Z});H(p,ie);var q=typeof a=="function"?a(ce,w,E,O.resetFont):null;return[O.resetStyle===!1?null:q,B]});return[F,M]}}function f(d,b,x){var O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=u(d,b,x,se({resetStyle:!1,order:-998},O)),y=function(m){var g=m.prefixCls,w=m.rootCls,E=w===void 0?g:w;return h(g,E),null};return oe.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(d)?d.join("."):d))),y}return{genStyleHooks:s,genSubStyleComponent:f,genComponentStyleHook:u}}const ra=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],nO="5.20.6";function mu(e){return e>=0&&e<=255}function Ps(e,t){const{r:n,g:r,b:o,a:i}=new Cn(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Cn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-l*(1-c))/c),d=Math.round((o-s*(1-c))/c);if(mu(u)&&mu(f)&&mu(d))return new Cn({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new Cn({r:n,g:r,b:o,a:1}).toRgbString()}var rO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Lm(e){const{override:t}=e,n=rO(e,["override"]),r=Object.assign({},t);Object.keys(ea).forEach(d=>{delete r[d]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,s=992,c=1200,u=1600;if(o.motion===!1){const d="0s";o.motionDurationFast=d,o.motionDurationMid=d,o.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ps(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Ps(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ps(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ps(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
98
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
99
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
100
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
101
- `,boxShadowSecondary:`
102
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
103
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
104
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
105
- `,boxShadowTertiary:`
106
- 0 1px 2px 0 rgba(0, 0, 0, 0.03),
107
- 0 1px 6px -1px rgba(0, 0, 0, 0.02),
108
- 0 2px 4px 0 rgba(0, 0, 0, 0.02)
109
- `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
110
- 0 1px 2px -2px ${new Cn("rgba(0, 0, 0, 0.16)").toRgbString()},
111
- 0 3px 6px 0 ${new Cn("rgba(0, 0, 0, 0.12)").toRgbString()},
112
- 0 5px 12px 4px ${new Cn("rgba(0, 0, 0, 0.09)").toRgbString()}
113
- `,boxShadowDrawerRight:`
114
- -6px 0 16px 0 rgba(0, 0, 0, 0.08),
115
- -3px 0 6px -4px rgba(0, 0, 0, 0.12),
116
- -9px 0 28px 8px rgba(0, 0, 0, 0.05)
117
- `,boxShadowDrawerLeft:`
118
- 6px 0 16px 0 rgba(0, 0, 0, 0.08),
119
- 3px 0 6px -4px rgba(0, 0, 0, 0.12),
120
- 9px 0 28px 8px rgba(0, 0, 0, 0.05)
121
- `,boxShadowDrawerUp:`
122
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
123
- 0 3px 6px -4px rgba(0, 0, 0, 0.12),
124
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
125
- `,boxShadowDrawerDown:`
126
- 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
127
- 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
128
- 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
129
- `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var Fm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Dm={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},oO={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},iO={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Bm=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Fm(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=Lm(a),i&&Object.entries(i).forEach(l=>{let[s,c]=l;const{theme:u}=c,f=Fm(c,["theme"]);let d=f;u&&(d=Bm(Object.assign(Object.assign({},a),f),{override:f},u)),a[s]=d}),a};function nr(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=A.useContext(Tm),i=`${nO}-${t||""}`,a=n||$m,[l,s,c]=V1(a,[ea,e],{salt:i,override:r,getComputedToken:Bm,formatToken:Lm,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Dm,ignore:oO,preserve:iO}});return[a,c,t?s:"",l,o]}const aO={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},En=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},sO=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),zm=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),lO=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),cO=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},uO=e=>({outline:`${xe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),oa=e=>({"&:focus-visible":Object.assign({},uO(e))}),qm=(e,t)=>{const[n,r]=nr();return au({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},sO()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:gn,genComponentStyleHook:dO,genSubStyleComponent:ei}=tO({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=A.useContext(Je);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=nr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=A.useContext(Je);return qm(t,e),e!=null?e:{}},getResetStyles:e=>[{"&":lO(e)}],getCommonStyle:cO,getCompUnitless:()=>Dm});function Rs(e,t){return ra.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const fO=Object.assign({},v),{useId:Vm}=fO,pO=typeof Vm=="undefined"?()=>"":Vm;function hO(e,t,n){var r,o;const i=At("ConfigProvider"),a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},cu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:cu.hashed,cssVar:t==null?void 0:t.cssVar}):t,s=pO();if(oe.env.NODE_ENV!=="production"){const c=a.cssVar||l.cssVar,u=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||s);oe.env.NODE_ENV!=="production"&&i(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return fs(()=>{var c,u;if(!e)return t;const f=Object.assign({},l.components);Object.keys(e.components||{}).forEach(x=>{f[x]=Object.assign(Object.assign({},f[x]),e.components[x])});const d=`css-var-${s.replace(/:/g,"")}`,b=((c=a.cssVar)!==null&&c!==void 0?c:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((u=a.cssVar)===null||u===void 0?void 0:u.key)||d});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:f,cssVar:b})},[a,l],(c,u)=>c.some((f,d)=>{const b=u[d];return!Yi(f,b,!0)}))}var mO=["children"],Hm=v.createContext({});function gO(e){var t=e.children,n=st(e,mO);return v.createElement(Hm.Provider,{value:n},t)}var vO=function(e){Vr(n,e);var t=Hr(n);function n(){return pn(this,n),t.apply(this,arguments)}return hn(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);function _O(e){var t=v.useReducer(function(l){return l+1},0),n=ge(t,2),r=n[1],o=v.useRef(e),i=cn(function(){return o.current}),a=cn(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[i,a]}var Xr="none",js="appear",Ms="enter",Is="leave",Wm="none",rr="prepare",ti="start",ni="active",gu="end",Um="prepared";function Gm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function yO(e,t){var n={animationend:Gm("Animation","AnimationEnd"),transitionend:Gm("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var bO=yO(xn(),typeof window!="undefined"?window:{}),Km={};if(xn()){var wO=document.createElement("div");Km=wO.style}var As={};function Xm(e){if(As[e])return As[e];var t=bO[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Km)return As[e]=t[i],As[e]}return""}var Ym=Xm("animationend"),Jm=Xm("transitionend"),Qm=!!(Ym&&Jm),Zm=Ym||"animationend",eg=Jm||"transitionend";function tg(e,t){if(!e)return null;if(qe(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const xO=function(e){var t=A.useRef();function n(o){o&&(o.removeEventListener(eg,e),o.removeEventListener(Zm,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(eg,e),o.addEventListener(Zm,e),t.current=o)}return v.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var ng=xn()?A.useLayoutEffect:A.useEffect;const SO=function(){var e=v.useRef(null);function t(){Ht.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Ht(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return v.useEffect(function(){return function(){t()}},[]),[n,t]};var CO=[rr,ti,ni,gu],EO=[rr,Um],rg=!1,OO=!0;function og(e){return e===ni||e===gu}const $O=function(e,t,n){var r=_o(Wm),o=ge(r,2),i=o[0],a=o[1],l=SO(),s=ge(l,2),c=s[0],u=s[1];function f(){a(rr,!0)}var d=t?EO:CO;return ng(function(){if(i!==Wm&&i!==gu){var b=d.indexOf(i),x=d[b+1],O=n(i);O===rg?a(x,!0):x&&c(function(h){function y(){h.isCanceled()||a(x,!0)}O===!0?y():Promise.resolve(O).then(y)})}},[e,i]),v.useEffect(function(){return function(){u()}},[]),[f,i]};function TO(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,s=r.motionLeave,c=s===void 0?!0:s,u=r.motionDeadline,f=r.motionLeaveImmediately,d=r.onAppearPrepare,b=r.onEnterPrepare,x=r.onLeavePrepare,O=r.onAppearStart,h=r.onEnterStart,y=r.onLeaveStart,p=r.onAppearActive,m=r.onEnterActive,g=r.onLeaveActive,w=r.onAppearEnd,E=r.onEnterEnd,S=r.onLeaveEnd,C=r.onVisibleChanged,T=_o(),M=ge(T,2),N=M[0],R=M[1],D=_O(Xr),V=ge(D,2),Z=V[0],J=V[1],I=_o(null),U=ge(I,2),K=U[0],z=U[1],G=Z(),L=A.useRef(!1),F=A.useRef(null);function X(){return n()}var te=A.useRef(!1);function H(){J(Xr),z(null,!0)}var W=cn(function(Ne){var Ie=Z();if(Ie!==Xr){var Re=X();if(!(Ne&&!Ne.deadline&&Ne.target!==Re)){var be=te.current,Se;Ie===js&&be?Se=w==null?void 0:w(Re,Ne):Ie===Ms&&be?Se=E==null?void 0:E(Re,Ne):Ie===Is&&be&&(Se=S==null?void 0:S(Re,Ne)),be&&Se!==!1&&H()}}}),Q=xO(W),ie=ge(Q,1),ce=ie[0],B=function(Ie){switch(Ie){case js:return ae(ae(ae({},rr,d),ti,O),ni,p);case Ms:return ae(ae(ae({},rr,b),ti,h),ni,m);case Is:return ae(ae(ae({},rr,x),ti,y),ni,g);default:return{}}},q=v.useMemo(function(){return B(G)},[G]),le=$O(G,!e,function(Ne){if(Ne===rr){var Ie=q[rr];return Ie?Ie(X()):rg}if(me in q){var Re;z(((Re=q[me])===null||Re===void 0?void 0:Re.call(q,X(),null))||null)}return me===ni&&G!==Xr&&(ce(X()),u>0&&(clearTimeout(F.current),F.current=setTimeout(function(){W({deadline:!0})},u))),me===Um&&H(),OO}),ne=ge(le,2),ve=ne[0],me=ne[1],Ce=og(me);te.current=Ce,ng(function(){R(t);var Ne=L.current;L.current=!0;var Ie;!Ne&&t&&l&&(Ie=js),Ne&&t&&i&&(Ie=Ms),(Ne&&!t&&c||!Ne&&f&&!t&&c)&&(Ie=Is);var Re=B(Ie);Ie&&(e||Re[rr])?(J(Ie),ve()):J(Xr)},[t]),A.useEffect(function(){(G===js&&!l||G===Ms&&!i||G===Is&&!c)&&J(Xr)},[l,i,c]),A.useEffect(function(){return function(){L.current=!1,clearTimeout(F.current)}},[]);var Le=v.useRef(!1);A.useEffect(function(){N&&(Le.current=!0),N!==void 0&&G===Xr&&((Le.current||N)&&(C==null||C(N)),Le.current=!0)},[N,G]);var fe=K;return q[rr]&&me===ti&&(fe=se({transition:"none"},fe)),[G,me,fe,N!=null?N:t]}function PO(e){var t=e;qe(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=v.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,s=o.removeOnLeave,c=s===void 0?!0:s,u=o.forceRender,f=o.children,d=o.motionName,b=o.leavedClassName,x=o.eventProps,O=v.useContext(Hm),h=O.motion,y=n(o,h),p=A.useRef(),m=A.useRef();function g(){try{return p.current instanceof HTMLElement?p.current:ps(m.current)}catch(K){return null}}var w=TO(y,l,g,o),E=ge(w,4),S=E[0],C=E[1],T=E[2],M=E[3],N=v.useRef(M);M&&(N.current=!0);var R=v.useCallback(function(K){p.current=K,qc(i,K)},[i]),D,V=se(se({},x),{},{visible:l});if(!f)D=null;else if(S===Xr)M?D=f(se({},V),R):!c&&N.current&&b?D=f(se(se({},V),{},{className:b}),R):u||!c&&!b?D=f(se(se({},V),{},{style:{display:"none"}}),R):D=null;else{var Z;C===rr?Z="prepare":og(C)?Z="active":C===ti&&(Z="start");var J=tg(d,"".concat(S,"-").concat(Z));D=f(se(se({},V),{},{className:de(tg(d,S),ae(ae({},J,J&&Z),d,typeof d=="string")),style:T}),R)}if(v.isValidElement(D)&&qr(D)){var I=D,U=I.ref;U||(D=v.cloneElement(D,{ref:R}))}return v.createElement(vO,{ref:m},D)});return r.displayName="CSSMotion",r}const or=PO(Qm);var vu="add",_u="keep",yu="remove",bu="removed";function RO(e){var t;return e&&qe(e)==="object"&&"key"in e?t=e:t={key:e},se(se({},t),{},{key:String(t.key)})}function wu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(RO)}function jO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=wu(e),a=wu(t);i.forEach(function(c){for(var u=!1,f=r;f<o;f+=1){var d=a[f];if(d.key===c.key){r<f&&(n=n.concat(a.slice(r,f).map(function(b){return se(se({},b),{},{status:vu})})),r=f),n.push(se(se({},d),{},{status:_u})),r+=1,u=!0;break}}u||n.push(se(se({},c),{},{status:yu}))}),r<o&&(n=n.concat(a.slice(r).map(function(c){return se(se({},c),{},{status:vu})})));var l={};n.forEach(function(c){var u=c.key;l[u]=(l[u]||0)+1});var s=Object.keys(l).filter(function(c){return l[c]>1});return s.forEach(function(c){n=n.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==yu}),n.forEach(function(u){u.key===c&&(u.status=_u)})}),n}var MO=["component","children","onVisibleChanged","onAllRemoved"],IO=["status"],AO=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function NO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:or,n=function(r){Vr(i,r);var o=Hr(i);function i(){var a;pn(this,i);for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];return a=o.call.apply(o,[this].concat(s)),ae(it(a),"state",{keyEntities:[]}),ae(it(a),"removeKey",function(u){var f=a.state.keyEntities,d=f.map(function(b){return b.key!==u?b:se(se({},b),{},{status:bu})});return a.setState({keyEntities:d}),d.filter(function(b){var x=b.status;return x!==bu}).length}),a}return hn(i,[{key:"render",value:function(){var l=this,s=this.state.keyEntities,c=this.props,u=c.component,f=c.children,d=c.onVisibleChanged,b=c.onAllRemoved,x=st(c,MO),O=u||v.Fragment,h={};return AO.forEach(function(y){h[y]=x[y],delete x[y]}),delete x.keys,v.createElement(O,x,s.map(function(y,p){var m=y.status,g=st(y,IO),w=m===vu||m===_u;return v.createElement(t,$e({},h,{key:g.key,visible:w,eventProps:g,onVisibleChanged:function(S){if(d==null||d(S,{key:g.key}),!S){var C=l.removeKey(g.key);C===0&&b&&b()}}}),function(E,S){return f(se(se({},E),{},{index:p}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,s){var c=l.keys,u=s.keyEntities,f=wu(c),d=jO(u,f);return{keyEntities:d.filter(function(b){var x=u.find(function(O){var h=O.key;return b.key===h});return!(x&&x.status===bu&&b.status===yu)})}}}]),i}(v.Component);return ae(n,"defaultProps",{component:"div"}),n}const ig=NO(Qm);function kO(e){const{children:t}=e,[,n]=nr(),{motion:r}=n,o=v.useRef(!1);return o.current=o.current||r===!1,o.current?v.createElement(gO,{motion:r},t):t}const ag=v.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return At("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});oe.env.NODE_ENV!=="production"&&(ag.displayName="PropWarning");const LO=oe.env.NODE_ENV!=="production"?ag:()=>null;var FO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let xu=!1;const Su=oe.env.NODE_ENV!=="production"?e=>{oe.env.NODE_ENV!=="production"&&go(!xu,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,DO=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ns,sg,lg,cg;function ks(){return Ns||na}function BO(){return sg||uu}function zO(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const qO=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Ns=t),n!==void 0&&(sg=n),"holderRender"in e&&(cg=o),r&&(zO(r)?(oe.env.NODE_ENV!=="production"&&go(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),zE(ks(),r)):lg=r)},ia=()=>({getPrefixCls:(e,t)=>t||(e?`${ks()}-${e}`:ks()),getIconPrefixCls:BO,getRootPrefixCls:()=>Ns||ks(),getTheme:()=>lg,holderRender:cg}),VO=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:s,direction:c,space:u,virtual:f,dropdownMatchSelectWidth:d,popupMatchSelectWidth:b,popupOverflow:x,legacyLocale:O,parentContext:h,iconPrefixCls:y,theme:p,componentDisabled:m,segmented:g,statistic:w,spin:E,calendar:S,carousel:C,cascader:T,collapse:M,typography:N,checkbox:R,descriptions:D,divider:V,drawer:Z,skeleton:J,steps:I,image:U,layout:K,list:z,mentions:G,modal:L,progress:F,result:X,slider:te,breadcrumb:H,menu:W,pagination:Q,input:ie,textArea:ce,empty:B,badge:q,radio:le,rate:ne,switch:ve,transfer:me,avatar:Ce,message:Le,tag:fe,table:Ne,card:Ie,tabs:Re,timeline:be,timePicker:Se,upload:Oe,notification:Te,tree:Ke,colorPicker:Xe,datePicker:tt,rangePicker:_t,flex:St,wave:ht,dropdown:We,warning:Ae,tour:ft,floatButtonGroup:dt,variant:nt,inputNumber:Nt,treeSelect:Qt}=e,an=v.useCallback((Y,re)=>{const{prefixCls:ue}=e;if(re)return re;const _e=ue||h.getPrefixCls("");return Y?`${_e}-${Y}`:_e},[h.getPrefixCls,e.prefixCls]),Ct=y||h.iconPrefixCls||uu,kt=n||h.csp;qm(Ct,kt);const rt=hO(p,h.theme,{prefixCls:an("")});oe.env.NODE_ENV!=="production"&&(xu=xu||!!rt);const pt={csp:kt,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||O,direction:c,space:u,virtual:f,popupMatchSelectWidth:b!=null?b:d,popupOverflow:x,getPrefixCls:an,iconPrefixCls:Ct,theme:rt,segmented:g,statistic:w,spin:E,calendar:S,carousel:C,cascader:T,collapse:M,typography:N,checkbox:R,descriptions:D,divider:V,drawer:Z,skeleton:J,steps:I,image:U,input:ie,textArea:ce,layout:K,list:z,mentions:G,modal:L,progress:F,result:X,slider:te,breadcrumb:H,menu:W,pagination:Q,empty:B,badge:q,radio:le,rate:ne,switch:ve,transfer:me,avatar:Ce,message:Le,tag:fe,table:Ne,card:Ie,tabs:Re,timeline:be,timePicker:Se,upload:Oe,notification:Te,tree:Ke,colorPicker:Xe,datePicker:tt,rangePicker:_t,flex:St,wave:ht,dropdown:We,warning:Ae,tour:ft,floatButtonGroup:dt,variant:nt,inputNumber:Nt,treeSelect:Qt};oe.env.NODE_ENV!=="production"&&At("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Lt=Object.assign({},h);Object.keys(pt).forEach(Y=>{pt[Y]!==void 0&&(Lt[Y]=pt[Y])}),DO.forEach(Y=>{const re=e[Y];re&&(Lt[Y]=re)}),typeof r!="undefined"&&(Lt.button=Object.assign({autoInsertSpace:r},Lt.button));const Ze=fs(()=>Lt,Lt,(Y,re)=>{const ue=Object.keys(Y),_e=Object.keys(re);return ue.length!==_e.length||ue.some(ze=>Y[ze]!==re[ze])}),De=v.useMemo(()=>({prefixCls:Ct,csp:kt}),[Ct,kt]);let k=v.createElement(v.Fragment,null,v.createElement(LO,{dropdownMatchSelectWidth:d}),t);const P=v.useMemo(()=>{var Y,re,ue,_e;return Zo(((Y=Gr.Form)===null||Y===void 0?void 0:Y.defaultValidateMessages)||{},((ue=(re=Ze.locale)===null||re===void 0?void 0:re.Form)===null||ue===void 0?void 0:ue.defaultValidateMessages)||{},((_e=Ze.form)===null||_e===void 0?void 0:_e.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ze,a==null?void 0:a.validateMessages]);Object.keys(P).length>0&&(k=v.createElement(ym.Provider,{value:P},k)),l&&(k=v.createElement(Em,{locale:l,_ANT_MARK__:Cm},k)),(Ct||kt)&&(k=v.createElement(fc.Provider,{value:De},k)),s&&(k=v.createElement(qE,{size:s},k)),k=v.createElement(kO,null,k);const j=v.useMemo(()=>{const Y=rt||{},{algorithm:re,token:ue,components:_e,cssVar:ze}=Y,ot=FO(Y,["algorithm","token","components","cssVar"]),at=re&&(!Array.isArray(re)||re.length>0)?Kc(re):$m,ee={};Object.entries(_e||{}).forEach(we=>{let[Pe,Be]=we;const Fe=Object.assign({},Be);"algorithm"in Fe&&(Fe.algorithm===!0?Fe.theme=at:(Array.isArray(Fe.algorithm)||typeof Fe.algorithm=="function")&&(Fe.theme=Kc(Fe.algorithm)),delete Fe.algorithm),ee[Pe]=Fe});const pe=Object.assign(Object.assign({},ea),ue);return Object.assign(Object.assign({},ot),{theme:at,token:pe,components:ee,override:Object.assign({override:pe},ee),cssVar:ze})},[rt]);return p&&(k=v.createElement(Tm.Provider,{value:j},k)),Ze.warning&&(k=v.createElement(_m.Provider,{value:Ze.warning},k)),m!==void 0&&(k=v.createElement(du,{disabled:m},k)),v.createElement(Je.Provider,{value:Ze},k)},ir=e=>{const t=v.useContext(Je),n=v.useContext(lu);return v.createElement(VO,Object.assign({parentContext:t,legacyLocale:n},e))};ir.ConfigContext=Je,ir.SizeContext=vo,ir.config=qO,ir.useConfig=VE,Object.defineProperty(ir,"SizeContext",{get:()=>(oe.env.NODE_ENV!=="production"&&go(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),vo)}),oe.env.NODE_ENV!=="production"&&(ir.displayName="ConfigProvider");var HO=`accept acceptCharset accessKey action allowFullScreen allowTransparency
130
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
131
- charSet checked classID className colSpan cols content contentEditable contextMenu
132
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
133
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
134
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
135
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
136
- mediaGroup method min minLength multiple muted name noValidate nonce open
137
- optimum pattern placeholder poster preload radioGroup readOnly rel required
138
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
139
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
140
- summary tabIndex target title type useMap value width wmode wrap`,WO=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
141
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
142
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
143
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
144
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
145
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
146
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,UO="".concat(HO," ").concat(WO).split(/[\s\n]+/),GO="aria-",KO="data-";function ug(e,t){return e.indexOf(t)===0}function aa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=se({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||ug(o,GO))||n.data&&ug(o,KO)||n.attr&&UO.includes(o))&&(r[o]=e[o])}),r}function dg(e){return e&&A.isValidElement(e)&&e.type===A.Fragment}const fg=(e,t,n)=>A.isValidElement(e)?A.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Pr(e,t){return fg(e,e,t)}const pg=e=>typeof e=="object"&&e!=null&&e.nodeType===1,hg=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Cu=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return hg(n.overflowY,t)||hg(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Ls=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,XO=e=>{const t=e.parentElement;return t==null?e.getRootNode().host||null:t},mg=(e,t)=>{var n,r,o,i;if(typeof document=="undefined")return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:J=>J!==c;if(!pg(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,b=[];let x=e;for(;pg(x)&&f(x);){if(x=XO(x),x===d){b.push(x);break}x!=null&&x===document.body&&Cu(x)&&!Cu(document.documentElement)||x!=null&&Cu(x,u)&&b.push(x)}const O=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,h=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:y,scrollY:p}=window,{height:m,width:g,top:w,right:E,bottom:S,left:C}=e.getBoundingClientRect(),{top:T,right:M,bottom:N,left:R}=(J=>{const I=window.getComputedStyle(J);return{top:parseFloat(I.scrollMarginTop)||0,right:parseFloat(I.scrollMarginRight)||0,bottom:parseFloat(I.scrollMarginBottom)||0,left:parseFloat(I.scrollMarginLeft)||0}})(e);let D=l==="start"||l==="nearest"?w-T:l==="end"?S+N:w+m/2-T+N,V=s==="center"?C+g/2-R+M:s==="end"?E+M:C-R;const Z=[];for(let J=0;J<b.length;J++){const I=b[J],{height:U,width:K,top:z,right:G,bottom:L,left:F}=I.getBoundingClientRect();if(a==="if-needed"&&w>=0&&C>=0&&S<=h&&E<=O&&w>=z&&S<=L&&C>=F&&E<=G)return Z;const X=getComputedStyle(I),te=parseInt(X.borderLeftWidth,10),H=parseInt(X.borderTopWidth,10),W=parseInt(X.borderRightWidth,10),Q=parseInt(X.borderBottomWidth,10);let ie=0,ce=0;const B="offsetWidth"in I?I.offsetWidth-I.clientWidth-te-W:0,q="offsetHeight"in I?I.offsetHeight-I.clientHeight-H-Q:0,le="offsetWidth"in I?I.offsetWidth===0?0:K/I.offsetWidth:0,ne="offsetHeight"in I?I.offsetHeight===0?0:U/I.offsetHeight:0;if(d===I)ie=l==="start"?D:l==="end"?D-h:l==="nearest"?Ls(p,p+h,h,H,Q,p+D,p+D+m,m):D-h/2,ce=s==="start"?V:s==="center"?V-O/2:s==="end"?V-O:Ls(y,y+O,O,te,W,y+V,y+V+g,g),ie=Math.max(0,ie+p),ce=Math.max(0,ce+y);else{ie=l==="start"?D-z-H:l==="end"?D-L+Q+q:l==="nearest"?Ls(z,L,U,H,Q+q,D,D+m,m):D-(z+U/2)+q/2,ce=s==="start"?V-F-te:s==="center"?V-(F+K/2)+B/2:s==="end"?V-G+W+B:Ls(F,G,K,te,W+B,V,V+g,g);const{scrollLeft:ve,scrollTop:me}=I;ie=ne===0?0:Math.max(0,Math.min(me+ie/ne,I.scrollHeight-U/ne+q)),ce=le===0?0:Math.max(0,Math.min(ve+ce/le,I.scrollWidth-K/le+B)),D+=me-ie,V+=ve-ce}Z.push({el:I,top:ie,left:ce})}return Z},YO=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function JO(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(mg(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of mg(e,YO(t))){const l=i-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:l,left:s,behavior:r})}}const Rn=e=>{const[,,,,t]=nr();return t?`${e}-css-var`:""};var je={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=je.F1&&n<=je.F12)return!1;switch(n){case je.ALT:case je.CAPS_LOCK:case je.CONTEXT_MENU:case je.CTRL:case je.DOWN:case je.END:case je.ESC:case je.HOME:case je.INSERT:case je.LEFT:case je.MAC_FF_META:case je.META:case je.NUMLOCK:case je.NUM_CENTER:case je.PAGE_DOWN:case je.PAGE_UP:case je.PAUSE:case je.PRINT_SCREEN:case je.RIGHT:case je.SHIFT:case je.UP:case je.WIN_KEY:case je.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=je.ZERO&&t<=je.NINE||t>=je.NUM_ZERO&&t<=je.NUM_MULTIPLY||t>=je.A&&t<=je.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case je.SPACE:case je.QUESTION_MARK:case je.NUM_PLUS:case je.NUM_MINUS:case je.NUM_PERIOD:case je.NUM_DIVISION:case je.SEMICOLON:case je.DASH:case je.EQUALS:case je.COMMA:case je.PERIOD:case je.SLASH:case je.APOSTROPHE:case je.SINGLE_QUOTE:case je.OPEN_SQUARE_BRACKET:case je.BACKSLASH:case je.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Eu=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.showProgress,s=e.pauseOnHover,c=s===void 0?!0:s,u=e.eventKey,f=e.content,d=e.closable,b=e.closeIcon,x=b===void 0?"x":b,O=e.props,h=e.onClick,y=e.onNoticeClose,p=e.times,m=e.hovering,g=v.useState(!1),w=ge(g,2),E=w[0],S=w[1],C=v.useState(0),T=ge(C,2),M=T[0],N=T[1],R=v.useState(0),D=ge(R,2),V=D[0],Z=D[1],J=m||E,I=a>0&&l,U=function(){y(u)},K=function(te){(te.key==="Enter"||te.code==="Enter"||te.keyCode===je.ENTER)&&U()};v.useEffect(function(){if(!J&&a>0){var X=Date.now()-V,te=setTimeout(function(){U()},a*1e3-V);return function(){c&&clearTimeout(te),Z(Date.now()-X)}}},[a,J,p]),v.useEffect(function(){if(!J&&I&&(c||V===0)){var X=performance.now(),te,H=function W(){cancelAnimationFrame(te),te=requestAnimationFrame(function(Q){var ie=Q+V-X,ce=Math.min(ie/(a*1e3),1);N(ce*100),ce<1&&W()})};return H(),function(){c&&cancelAnimationFrame(te)}}},[a,V,J,I,p]);var z=v.useMemo(function(){return qe(d)==="object"&&d!==null?d:d?{closeIcon:x}:{}},[d,x]),G=aa(z,!0),L=100-(!M||M<0?0:M>100?100:M),F="".concat(n,"-notice");return v.createElement("div",$e({},O,{ref:t,className:de(F,o,ae({},"".concat(F,"-closable"),d)),style:r,onMouseEnter:function(te){var H;S(!0),O==null||(H=O.onMouseEnter)===null||H===void 0||H.call(O,te)},onMouseLeave:function(te){var H;S(!1),O==null||(H=O.onMouseLeave)===null||H===void 0||H.call(O,te)},onClick:h}),v.createElement("div",{className:"".concat(F,"-content")},f),d&&v.createElement("a",$e({tabIndex:0,className:"".concat(F,"-close"),onKeyDown:K,"aria-label":"Close"},G,{onClick:function(te){te.preventDefault(),te.stopPropagation(),U()}}),z.closeIcon),I&&v.createElement("progress",{className:"".concat(F,"-progress"),max:"100",value:L},L+"%"))}),gg=A.createContext({}),vg=function(t){var n=t.children,r=t.classNames;return A.createElement(gg.Provider,{value:{classNames:r}},n)},_g=8,yg=3,bg=16,QO=function(t){var n={offset:_g,threshold:yg,gap:bg};if(t&&qe(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:_g,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:yg,n.gap=(i=t.gap)!==null&&i!==void 0?i:bg}return[!!t,n]},ZO=["className","style","classNames","styles"],wg=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,l=t.motion,s=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=A.useContext(gg),d=f.classNames,b=A.useRef({}),x=A.useRef(null),O=A.useState([]),h=ge(O,2),y=h[0],p=h[1],m=n.map(function(D){return{config:D,key:String(D.key)}}),g=QO(u),w=ge(g,2),E=w[0],S=w[1],C=S.offset,T=S.threshold,M=S.gap,N=E&&(y.length>0||m.length<=T),R=typeof l=="function"?l(r):l;return A.useEffect(function(){E&&y.length>1&&p(function(D){return D.filter(function(V){return m.some(function(Z){var J=Z.key;return V===J})})})},[y,m,E]),A.useEffect(function(){var D;if(E&&b.current[(D=m[m.length-1])===null||D===void 0?void 0:D.key]){var V;x.current=b.current[(V=m[m.length-1])===null||V===void 0?void 0:V.key]}},[m,E]),A.createElement(ig,$e({key:r,className:de(o,"".concat(o,"-").concat(r),d==null?void 0:d.list,i,ae(ae({},"".concat(o,"-stack"),!!E),"".concat(o,"-stack-expanded"),N)),style:a,keys:m,motionAppear:!0},R,{onAllRemoved:function(){s(r)}}),function(D,V){var Z=D.config,J=D.className,I=D.style,U=D.index,K=Z,z=K.key,G=K.times,L=String(z),F=Z,X=F.className,te=F.style,H=F.classNames,W=F.styles,Q=st(F,ZO),ie=m.findIndex(function(Se){return Se.key===L}),ce={};if(E){var B=m.length-1-(ie>-1?ie:U-1),q=r==="top"||r==="bottom"?"-50%":"0";if(B>0){var le,ne,ve,me,Ce,Le;ce.height=N?(le=b.current[L])===null||le===void 0?void 0:le.offsetHeight:(ne=x.current)===null||ne===void 0?void 0:ne.offsetHeight;for(var fe=0,Ne=0;Ne<B;Ne++){var Ie;fe+=((Ie=b.current[m[m.length-1-Ne].key])===null||Ie===void 0?void 0:Ie.offsetHeight)+M}var Re=(N?fe:B*C)*(r.startsWith("top")?1:-1),be=!N&&(ve=x.current)!==null&&ve!==void 0&&ve.offsetWidth&&(me=b.current[L])!==null&&me!==void 0&&me.offsetWidth?(((Ce=x.current)===null||Ce===void 0?void 0:Ce.offsetWidth)-C*2*(B<3?B:3))/((Le=b.current[L])===null||Le===void 0?void 0:Le.offsetWidth):1;ce.transform="translate3d(".concat(q,", ").concat(Re,"px, 0) scaleX(").concat(be,")")}else ce.transform="translate3d(".concat(q,", 0, 0)")}return A.createElement("div",{ref:V,className:de("".concat(o,"-notice-wrapper"),J,H==null?void 0:H.wrapper),style:se(se(se({},I),ce),W==null?void 0:W.wrapper),onMouseEnter:function(){return p(function(Oe){return Oe.includes(L)?Oe:[].concat(Ee(Oe),[L])})},onMouseLeave:function(){return p(function(Oe){return Oe.filter(function(Te){return Te!==L})})}},A.createElement(Eu,$e({},Q,{ref:function(Oe){ie>-1?b.current[L]=Oe:delete b.current[L]},prefixCls:o,classNames:H,styles:W,className:de(X,d==null?void 0:d.notice),style:te,times:G,key:z,eventKey:z,onNoticeClose:c,hovering:E&&y.length>0})))})};oe.env.NODE_ENV!=="production"&&(wg.displayName="NoticeList");var xg=v.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,d=v.useState([]),b=ge(d,2),x=b[0],O=b[1],h=function(T){var M,N=x.find(function(R){return R.key===T});N==null||(M=N.onClose)===null||M===void 0||M.call(N),O(function(R){return R.filter(function(D){return D.key!==T})})};v.useImperativeHandle(t,function(){return{open:function(T){O(function(M){var N=Ee(M),R=N.findIndex(function(Z){return Z.key===T.key}),D=se({},T);if(R>=0){var V;D.times=(((V=M[R])===null||V===void 0?void 0:V.times)||0)+1,N[R]=D}else D.times=0,N.push(D);return a>0&&N.length>a&&(N=N.slice(-a)),N})},close:function(T){h(T)},destroy:function(){O([])}}});var y=v.useState({}),p=ge(y,2),m=p[0],g=p[1];v.useEffect(function(){var C={};x.forEach(function(T){var M=T.placement,N=M===void 0?"topRight":M;N&&(C[N]=C[N]||[],C[N].push(T))}),Object.keys(m).forEach(function(T){C[T]=C[T]||[]}),g(C)},[x]);var w=function(T){g(function(M){var N=se({},M),R=N[T]||[];return R.length||delete N[T],N})},E=v.useRef(!1);if(v.useEffect(function(){Object.keys(m).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[m]),!o)return null;var S=Object.keys(m);return wr.createPortal(v.createElement(v.Fragment,null,S.map(function(C){var T=m[C],M=v.createElement(wg,{key:C,configList:T,placement:C,prefixCls:r,className:l==null?void 0:l(C),style:s==null?void 0:s(C),motion:i,onNoticeClose:h,onAllNoticeRemoved:w,stack:u});return f?f(M,{prefixCls:r,key:C}):M})),o)});oe.env.NODE_ENV!=="production"&&(xg.displayName="Notifications");var e$=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],t$=function(){return document.body},Sg=0;function n$(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function Cg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?t$:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,s=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=st(e,e$),d=v.useState(),b=ge(d,2),x=b[0],O=b[1],h=v.useRef(),y=v.createElement(xg,{container:x,ref:h,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:s,stack:c,renderNotifications:u}),p=v.useState([]),m=ge(p,2),g=m[0],w=m[1],E=v.useMemo(function(){return{open:function(C){var T=n$(f,C);(T.key===null||T.key===void 0)&&(T.key="rc-notification-".concat(Sg),Sg+=1),w(function(M){return[].concat(Ee(M),[{type:"open",config:T}])})},close:function(C){w(function(T){return[].concat(Ee(T),[{type:"close",key:C}])})},destroy:function(){w(function(C){return[].concat(Ee(C),[{type:"destroy"}])})}}},[]);return v.useEffect(function(){O(n())}),v.useEffect(function(){h.current&&g.length&&(g.forEach(function(S){switch(S.type){case"open":h.current.open(S.config);break;case"close":h.current.close(S.key);break;case"destroy":h.current.destroy();break}}),w(function(S){return S.filter(function(C){return!g.includes(C)})}))},[g]),[E,y]}const Fs=A.createContext(void 0);oe.env.NODE_ENV!=="production"&&(Fs.displayName="zIndexContext");const yo=100,Ds=yo*10,Eg={Modal:yo,Drawer:yo,Popover:yo,Popconfirm:yo,Tooltip:yo,Tour:yo},r$={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function o$(e){return e in Eg}function Og(e,t){const[,n]=nr(),r=A.useContext(Fs),o=o$(e);let i;if(t!==void 0)i=[t,t];else{let a=r!=null?r:0;o?a+=(r?0:n.zIndexPopupBase)+Eg[e]:a+=r$[e],i=[r===void 0?t:a,a]}if(oe.env.NODE_ENV!=="production"){const a=At(e),l=n.zIndexPopupBase+Ds,s=i[0]||0;oe.env.NODE_ENV!=="production"&&a(t!==void 0||s<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i}const i$=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:b,borderRadiusLG:x,zIndexPopup:O,contentPadding:h,contentBg:y}=e,p=`${t}-notice`,m=new lt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:b,transform:"translateY(0)",opacity:1}}),g=new lt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:b,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:b,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:d,fontSize:c},[`${p}-content`]:{display:"inline-block",padding:h,background:y,borderRadius:x,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
147
- ${t}-loading > ${n}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},En(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:O,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
148
- ${t}-move-up-appear,
149
- ${t}-move-up-enter
150
- `]:{animationName:m,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`
151
- ${t}-move-up-appear${t}-move-up-appear-active,
152
- ${t}-move-up-enter${t}-move-up-enter-active
153
- `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:g,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${p}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},$g=gn("Message",e=>{const t=Wt(e,{height:150});return[i$(t)]},e=>({zIndexPopup:e.zIndexPopupBase+Ds+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var a$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const s$={info:v.createElement(cs,null),success:v.createElement(Vi,null),error:v.createElement(Uo,null),warning:v.createElement(Hi,null),loading:v.createElement(us,null)},Tg=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return v.createElement("div",{className:de(`${t}-custom-content`,`${t}-${n}`)},r||s$[n],v.createElement("span",null,o))},l$=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=a$(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=v.useContext(Je),s=t||l("message"),c=Rn(s),[u,f,d]=$g(s,c);return u(v.createElement(Eu,Object.assign({},a,{prefixCls:s,className:de(n,f,`${s}-notice-pure-panel`,d,c),eventKey:"pure",duration:null,content:v.createElement(Tg,{prefixCls:s,type:r,icon:o},i)})))};function c$(e,t){return{motionName:t!=null?t:`${e}-move-up`}}function Ou(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var u$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const d$=8,f$=3,p$=e=>{let{children:t,prefixCls:n}=e;const r=Rn(n),[o,i,a]=$g(n,r);return o(v.createElement(vg,{classNames:{list:de(i,a,r)}},t))},h$=(e,t)=>{let{prefixCls:n,key:r}=t;return v.createElement(p$,{prefixCls:n,key:r},e)},m$=v.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=f$,rtl:l,transitionName:s,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:d,direction:b}=v.useContext(Je),x=r||u("message"),O=()=>({left:"50%",transform:"translateX(-50%)",top:n!=null?n:d$}),h=()=>de({[`${x}-rtl`]:l!=null?l:b==="rtl"}),y=()=>c$(x,s),p=v.createElement("span",{className:`${x}-close-x`},v.createElement(fo,{className:`${x}-close-icon`})),[m,g]=Cg({prefixCls:x,style:O,className:h,motion:y,closable:!1,closeIcon:p,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:h$});return v.useImperativeHandle(t,()=>Object.assign(Object.assign({},m),{prefixCls:x,message:d})),g});let Pg=0;function Rg(e){const t=v.useRef(null),n=At("Message");return[v.useMemo(()=>{const o=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},i=c=>{if(!t.current){oe.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const S=()=>{};return S.then=()=>{},S}const{open:u,prefixCls:f,message:d}=t.current,b=`${f}-notice`,{content:x,icon:O,type:h,key:y,className:p,style:m,onClose:g}=c,w=u$(c,["content","icon","type","key","className","style","onClose"]);let E=y;return E==null&&(Pg+=1,E=`antd-message-${Pg}`),Ou(S=>(u(Object.assign(Object.assign({},w),{key:E,content:v.createElement(Tg,{prefixCls:f,type:h,icon:O},x),placement:"top",className:de(h&&`${b}-${h}`,p,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),m),onClose:()=>{g==null||g(),S()}})),()=>{o(E)}))},l={open:i,destroy:c=>{var u;c!==void 0?o(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(f,d,b)=>{let x;f&&typeof f=="object"&&"content"in f?x=f:x={content:f};let O,h;typeof d=="function"?h=d:(O=d,h=b);const y=Object.assign(Object.assign({onClose:h,duration:O},x),{type:c});return i(y)};l[c]=u}),l},[]),v.createElement(m$,Object.assign({key:"message-holder"},e,{ref:t}))]}function g$(e){return Rg(e)}function v$(){const[e,t]=v.useState([]),n=v.useCallback(r=>(t(o=>[].concat(Ee(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function Sn(){Sn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(J,I,U){J[I]=U.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(J,I,U){return Object.defineProperty(J,I,{value:U,enumerable:!0,configurable:!0,writable:!0}),J[I]}try{c({},"")}catch(J){c=function(U,K,z){return U[K]=z}}function u(J,I,U,K){var z=I&&I.prototype instanceof y?I:y,G=Object.create(z.prototype),L=new V(K||[]);return o(G,"_invoke",{value:M(J,U,L)}),G}function f(J,I,U){try{return{type:"normal",arg:J.call(I,U)}}catch(K){return{type:"throw",arg:K}}}t.wrap=u;var d="suspendedStart",b="suspendedYield",x="executing",O="completed",h={};function y(){}function p(){}function m(){}var g={};c(g,a,function(){return this});var w=Object.getPrototypeOf,E=w&&w(w(Z([])));E&&E!==n&&r.call(E,a)&&(g=E);var S=m.prototype=y.prototype=Object.create(g);function C(J){["next","throw","return"].forEach(function(I){c(J,I,function(U){return this._invoke(I,U)})})}function T(J,I){function U(z,G,L,F){var X=f(J[z],J,G);if(X.type!=="throw"){var te=X.arg,H=te.value;return H&&qe(H)=="object"&&r.call(H,"__await")?I.resolve(H.__await).then(function(W){U("next",W,L,F)},function(W){U("throw",W,L,F)}):I.resolve(H).then(function(W){te.value=W,L(te)},function(W){return U("throw",W,L,F)})}F(X.arg)}var K;o(this,"_invoke",{value:function(G,L){function F(){return new I(function(X,te){U(G,L,X,te)})}return K=K?K.then(F,F):F()}})}function M(J,I,U){var K=d;return function(z,G){if(K===x)throw Error("Generator is already running");if(K===O){if(z==="throw")throw G;return{value:e,done:!0}}for(U.method=z,U.arg=G;;){var L=U.delegate;if(L){var F=N(L,U);if(F){if(F===h)continue;return F}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(K===d)throw K=O,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);K=x;var X=f(J,I,U);if(X.type==="normal"){if(K=U.done?O:b,X.arg===h)continue;return{value:X.arg,done:U.done}}X.type==="throw"&&(K=O,U.method="throw",U.arg=X.arg)}}}function N(J,I){var U=I.method,K=J.iterator[U];if(K===e)return I.delegate=null,U==="throw"&&J.iterator.return&&(I.method="return",I.arg=e,N(J,I),I.method==="throw")||U!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+U+"' method")),h;var z=f(K,J.iterator,I.arg);if(z.type==="throw")return I.method="throw",I.arg=z.arg,I.delegate=null,h;var G=z.arg;return G?G.done?(I[J.resultName]=G.value,I.next=J.nextLoc,I.method!=="return"&&(I.method="next",I.arg=e),I.delegate=null,h):G:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,h)}function R(J){var I={tryLoc:J[0]};1 in J&&(I.catchLoc=J[1]),2 in J&&(I.finallyLoc=J[2],I.afterLoc=J[3]),this.tryEntries.push(I)}function D(J){var I=J.completion||{};I.type="normal",delete I.arg,J.completion=I}function V(J){this.tryEntries=[{tryLoc:"root"}],J.forEach(R,this),this.reset(!0)}function Z(J){if(J||J===""){var I=J[a];if(I)return I.call(J);if(typeof J.next=="function")return J;if(!isNaN(J.length)){var U=-1,K=function z(){for(;++U<J.length;)if(r.call(J,U))return z.value=J[U],z.done=!1,z;return z.value=e,z.done=!0,z};return K.next=K}}throw new TypeError(qe(J)+" is not iterable")}return p.prototype=m,o(S,"constructor",{value:m,configurable:!0}),o(m,"constructor",{value:p,configurable:!0}),p.displayName=c(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(J){var I=typeof J=="function"&&J.constructor;return!!I&&(I===p||(I.displayName||I.name)==="GeneratorFunction")},t.mark=function(J){return Object.setPrototypeOf?Object.setPrototypeOf(J,m):(J.__proto__=m,c(J,s,"GeneratorFunction")),J.prototype=Object.create(S),J},t.awrap=function(J){return{__await:J}},C(T.prototype),c(T.prototype,l,function(){return this}),t.AsyncIterator=T,t.async=function(J,I,U,K,z){z===void 0&&(z=Promise);var G=new T(u(J,I,U,K),z);return t.isGeneratorFunction(I)?G:G.next().then(function(L){return L.done?L.value:G.next()})},C(S),c(S,s,"Generator"),c(S,a,function(){return this}),c(S,"toString",function(){return"[object Generator]"}),t.keys=function(J){var I=Object(J),U=[];for(var K in I)U.push(K);return U.reverse(),function z(){for(;U.length;){var G=U.pop();if(G in I)return z.value=G,z.done=!1,z}return z.done=!0,z}},t.values=Z,V.prototype={constructor:V,reset:function(I){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!I)for(var U in this)U.charAt(0)==="t"&&r.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=e)},stop:function(){this.done=!0;var I=this.tryEntries[0].completion;if(I.type==="throw")throw I.arg;return this.rval},dispatchException:function(I){if(this.done)throw I;var U=this;function K(te,H){return L.type="throw",L.arg=I,U.next=te,H&&(U.method="next",U.arg=e),!!H}for(var z=this.tryEntries.length-1;z>=0;--z){var G=this.tryEntries[z],L=G.completion;if(G.tryLoc==="root")return K("end");if(G.tryLoc<=this.prev){var F=r.call(G,"catchLoc"),X=r.call(G,"finallyLoc");if(F&&X){if(this.prev<G.catchLoc)return K(G.catchLoc,!0);if(this.prev<G.finallyLoc)return K(G.finallyLoc)}else if(F){if(this.prev<G.catchLoc)return K(G.catchLoc,!0)}else{if(!X)throw Error("try statement without catch or finally");if(this.prev<G.finallyLoc)return K(G.finallyLoc)}}}},abrupt:function(I,U){for(var K=this.tryEntries.length-1;K>=0;--K){var z=this.tryEntries[K];if(z.tryLoc<=this.prev&&r.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var G=z;break}}G&&(I==="break"||I==="continue")&&G.tryLoc<=U&&U<=G.finallyLoc&&(G=null);var L=G?G.completion:{};return L.type=I,L.arg=U,G?(this.method="next",this.next=G.finallyLoc,h):this.complete(L)},complete:function(I,U){if(I.type==="throw")throw I.arg;return I.type==="break"||I.type==="continue"?this.next=I.arg:I.type==="return"?(this.rval=this.arg=I.arg,this.method="return",this.next="end"):I.type==="normal"&&U&&(this.next=U),h},finish:function(I){for(var U=this.tryEntries.length-1;U>=0;--U){var K=this.tryEntries[U];if(K.finallyLoc===I)return this.complete(K.completion,K.afterLoc),D(K),h}},catch:function(I){for(var U=this.tryEntries.length-1;U>=0;--U){var K=this.tryEntries[U];if(K.tryLoc===I){var z=K.completion;if(z.type==="throw"){var G=z.arg;D(K)}return G}}throw Error("illegal catch attempt")},delegateYield:function(I,U,K){return this.delegate={iterator:Z(I),resultName:U,nextLoc:K},this.method==="next"&&(this.arg=e),h}},t}function jg(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function bo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(s){jg(i,r,o,a,l,"next",s)}function l(s){jg(i,r,o,a,l,"throw",s)}a(void 0)})}}var sa=se({},PS),_$=sa.version,y$=sa.render,b$=sa.unmountComponentAtNode,Bs;try{var w$=Number((_$||"").split(".")[0]);w$>=18&&(Bs=sa.createRoot)}catch(e){}function Mg(e){var t=sa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&qe(t)==="object"&&(t.usingClientEntryPoint=e)}var zs="__rc_react_root__";function x$(e,t){Mg(!0);var n=t[zs]||Bs(t);Mg(!1),n.render(e),t[zs]=n}function S$(e,t){y$(e,t)}function qs(e,t){if(Bs){x$(e,t);return}S$(e,t)}function C$(e){return $u.apply(this,arguments)}function $u(){return $u=bo(Sn().mark(function e(t){return Sn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[zs])===null||o===void 0||o.unmount(),delete t[zs]}));case 1:case"end":return r.stop()}},e)})),$u.apply(this,arguments)}function E$(e){b$(e)}function Ig(e){return Tu.apply(this,arguments)}function Tu(){return Tu=bo(Sn().mark(function e(t){return Sn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Bs===void 0){r.next=2;break}return r.abrupt("return",C$(t));case 2:E$(t);case 3:case"end":return r.stop()}},e)})),Tu.apply(this,arguments)}const Pu=()=>({height:0,opacity:0}),Ag=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},O$=e=>({height:e?e.offsetHeight:0}),Ru=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ng=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:na}-motion-collapse`,onAppearStart:Pu,onEnterStart:Pu,onAppearActive:Ag,onEnterActive:Ag,onLeaveStart:O$,onLeaveActive:Pu,onAppearEnd:Ru,onEnterEnd:Ru,onLeaveEnd:Ru,motionDeadline:500}},wo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Vs=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},$$=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},T$=dO("Wave",e=>[$$(e)]),kg=`${na}-wave-target`;function P$(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function ju(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&P$(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function R$(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return ju(t)?t:ju(n)?n:ju(r)?r:null}function Mu(e){return Number.isNaN(e)?0:e}const j$=e=>{const{className:t,target:n,component:r}=e,o=v.useRef(null),[i,a]=v.useState(null),[l,s]=v.useState([]),[c,u]=v.useState(0),[f,d]=v.useState(0),[b,x]=v.useState(0),[O,h]=v.useState(0),[y,p]=v.useState(!1),m={left:c,top:f,width:b,height:O,borderRadius:l.map(E=>`${E}px`).join(" ")};i&&(m["--wave-color"]=i);function g(){const E=getComputedStyle(n);a(R$(n));const S=E.position==="static",{borderLeftWidth:C,borderTopWidth:T}=E;u(S?n.offsetLeft:Mu(-parseFloat(C))),d(S?n.offsetTop:Mu(-parseFloat(T))),x(n.offsetWidth),h(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:N,borderBottomLeftRadius:R,borderBottomRightRadius:D}=E;s([M,N,D,R].map(V=>Mu(parseFloat(V))))}if(v.useEffect(()=>{if(n){const E=Ht(()=>{g(),p(!0)});let S;return typeof ResizeObserver!="undefined"&&(S=new ResizeObserver(g),S.observe(n)),()=>{Ht.cancel(E),S==null||S.disconnect()}}},[]),!y)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(kg));return v.createElement(or,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(E,S)=>{var C;if(S.deadline||S.propertyName==="opacity"){const T=(C=o.current)===null||C===void 0?void 0:C.parentElement;Ig(T).then(()=>{T==null||T.remove()})}return!1}},(E,S)=>{let{className:C}=E;return v.createElement("div",{ref:Yn(o,S),className:de(t,C,{"wave-quick":w}),style:m})})},M$=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild),qs(v.createElement(j$,Object.assign({},t,{target:e})),o)},I$=(e,t,n)=>{const{wave:r}=v.useContext(Je),[,o,i]=nr(),a=cn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${kg}`)||u,{showEffect:d}=r||{};(d||M$)(f,{className:t,token:o,component:n,event:c,hashId:i})}),l=v.useRef();return c=>{Ht.cancel(l.current),l.current=Ht(()=>{a(c)})}},Iu=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=A.useContext(Je),i=A.useRef(null),a=o("wave"),[,l]=T$(a),s=I$(i,de(a,l),r);if(A.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const f=d=>{!Vs(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||s(d)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!A.isValidElement(t))return t!=null?t:null;const c=qr(t)?Yn(t.ref,i):i;return Pr(t,{ref:c})};oe.env.NODE_ENV!=="production"&&(Iu.displayName="Wave");const xo=e=>{const t=A.useContext(vo);return A.useMemo(()=>e?typeof e=="string"?e!=null?e:t:e instanceof Function?e(t):t:t,[e,t])},Lg=v.createContext(null),Au=(e,t)=>{const n=v.useContext(Lg),r=v.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return de(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},A$=e=>{let{children:t}=e;return v.createElement(Lg.Provider,{value:null},t)};var N$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Fg=v.createContext(void 0),k$=e=>{const{getPrefixCls:t,direction:n}=v.useContext(Je),{prefixCls:r,size:o,className:i}=e,a=N$(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,s]=nr();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}if(oe.env.NODE_ENV!=="production"){const f=At("Button.Group");oe.env.NODE_ENV!=="production"&&f(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=de(l,{[`${l}-${c}`]:c,[`${l}-rtl`]:n==="rtl"},i,s);return v.createElement(Fg.Provider,{value:o},v.createElement("div",Object.assign({},a,{className:u})))},Dg=/^[\u4e00-\u9fa5]{2}$/,Nu=Dg.test.bind(Dg);function Bg(e){return e==="danger"?{danger:!0}:{type:e}}function zg(e){return typeof e=="string"}function Hs(e){return e==="text"||e==="link"}function L$(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&zg(e.type)&&Nu(e.props.children)?Pr(e,{children:e.props.children.split("").join(n)}):zg(e)?Nu(e)?A.createElement("span",null,e.split("").join(n)):A.createElement("span",null,e):dg(e)?A.createElement("span",null,e):e}function F$(e,t){let n=!1;const r=[];return A.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,s=r[l];r[l]=`${s}${o}`}else r.push(o);n=a}),A.Children.map(r,o=>L$(o,t))}const qg=A.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=de(`${i}-icon`,n);return A.createElement("span",{ref:t,className:a,style:r},o)}),Vg=A.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=de(`${n}-loading-icon`,r);return A.createElement(qg,{prefixCls:n,className:a,style:o,ref:t},A.createElement(us,{className:i}))}),ku=()=>({width:0,opacity:0,transform:"scale(0)"}),Lu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),D$=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i}=e,a=!!n;return r?A.createElement(Vg,{prefixCls:t,className:o,style:i}):A.createElement(or,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:ku,onAppearActive:Lu,onEnterStart:ku,onEnterActive:Lu,onLeaveStart:Lu,onLeaveActive:ku},(l,s)=>{let{className:c,style:u}=l;return A.createElement(Vg,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:s,iconClassName:c})})},Hg=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),B$=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Hg(`${t}-primary`,o),Hg(`${t}-danger`,i)]}},Wg=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return Wt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},Ug=e=>{var t,n,r,o,i,a;const l=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,s=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:Ts(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Ts(s),d=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Ts(c);return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*d)/2-e.lineWidth,0)}},z$=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${xe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},oa(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},Rr=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),q$=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),V$=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),H$=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),la=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},Rr(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Fu=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},H$(e))}),Gg=e=>Object.assign({},Fu(e)),Ws=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Kg=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gg(e)),{background:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Rr(e.componentCls,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),la(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Rr(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),la(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Fu(e))}),W$=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gg(e)),{color:e.primaryColor,background:e.colorPrimary,boxShadow:e.primaryShadow}),Rr(e.componentCls,{color:e.colorTextLightSolid,background:e.colorPrimaryHover},{color:e.colorTextLightSolid,background:e.colorPrimaryActive})),la(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Rr(e.componentCls,{background:e.colorErrorHover},{background:e.colorErrorActive})),la(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Fu(e))}),U$=e=>Object.assign(Object.assign({},Kg(e)),{borderStyle:"dashed"}),G$=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Rr(e.componentCls,{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Ws(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Rr(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ws(e))}),K$=e=>Object.assign(Object.assign(Object.assign({},Rr(e.componentCls,{color:e.colorText,background:e.textHoverBg},{color:e.colorText,background:e.colorBgTextActive})),Ws(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ws(e)),Rr(e.componentCls,{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive}))}),X$=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Kg(e),[`${t}-primary`]:W$(e),[`${t}-dashed`]:U$(e),[`${t}-link`]:G$(e),[`${t}-text`]:K$(e),[`${t}-ghost`]:la(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},Du=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,lineHeight:i,borderRadius:a,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:o,lineHeight:i,height:r,padding:`${xe(c)} ${xe(l)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:q$(e)},{[`${n}${n}-round${t}`]:V$(e)}]},Y$=e=>{const t=Wt(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return Du(t,e.componentCls)},J$=e=>{const t=Wt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Du(t,`${e.componentCls}-sm`)},Q$=e=>{const t=Wt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Du(t,`${e.componentCls}-lg`)},Z$=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},eT=gn("Button",e=>{const t=Wg(e);return[z$(t),Y$(t),J$(t),Q$(t),Z$(t),X$(t),B$(t)]},Ug,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function tT(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function nT(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Xg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},tT(e,r,t)),nT(n,r,t))}}function rT(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function oT(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function iT(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},rT(e,t)),oT(e.componentCls,t))}}const aT=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${xe(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${xe(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},sT=ei(["Button","compact"],e=>{const t=Wg(e);return[Xg(t),iT(t),aT(t)]},Ug);var lT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function cT(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const gr=A.forwardRef((e,t)=>{var n,r,o;const{loading:i=!1,prefixCls:a,type:l,danger:s=!1,shape:c="default",size:u,styles:f,disabled:d,className:b,rootClassName:x,children:O,icon:h,iconPosition:y="start",ghost:p=!1,block:m=!1,htmlType:g="button",classNames:w,style:E={},autoInsertSpace:S}=e,C=lT(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),T=l||"default",{getPrefixCls:M,direction:N,button:R}=A.useContext(Je),D=(n=S!=null?S:R==null?void 0:R.autoInsertSpace)!==null&&n!==void 0?n:!0,V=M("btn",a),[Z,J,I]=eT(V),U=A.useContext(Kr),K=d!=null?d:U,z=A.useContext(Fg),G=A.useMemo(()=>cT(i),[i]),[L,F]=A.useState(G.loading),[X,te]=A.useState(!1),W=Yn(t,A.createRef()),Q=A.Children.count(O)===1&&!h&&!Hs(T);A.useEffect(()=>{let Se=null;G.delay>0?Se=setTimeout(()=>{Se=null,F(!0)},G.delay):F(G.loading);function Oe(){Se&&(clearTimeout(Se),Se=null)}return Oe},[G]),A.useEffect(()=>{if(!W||!W.current||!D)return;const Se=W.current.textContent;Q&&Nu(Se)?X||te(!0):X&&te(!1)},[W]);const ie=Se=>{const{onClick:Oe}=e;if(L||K){Se.preventDefault();return}Oe==null||Oe(Se)};if(oe.env.NODE_ENV!=="production"){const Se=At("Button");oe.env.NODE_ENV!=="production"&&Se(!(typeof h=="string"&&h.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${h}\` at https://ant.design/components/icon`),oe.env.NODE_ENV!=="production"&&Se(!(p&&Hs(T)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ce,compactItemClassnames:B}=Au(V,N),q={large:"lg",small:"sm",middle:void 0},le=xo(Se=>{var Oe,Te;return(Te=(Oe=u!=null?u:ce)!==null&&Oe!==void 0?Oe:z)!==null&&Te!==void 0?Te:Se}),ne=le&&q[le]||"",ve=L?"loading":h,me=Jn(C,["navigate"]),Ce=de(V,J,I,{[`${V}-${c}`]:c!=="default"&&c,[`${V}-${T}`]:T,[`${V}-${ne}`]:ne,[`${V}-icon-only`]:!O&&O!==0&&!!ve,[`${V}-background-ghost`]:p&&!Hs(T),[`${V}-loading`]:L,[`${V}-two-chinese-chars`]:X&&D&&!L,[`${V}-block`]:m,[`${V}-dangerous`]:s,[`${V}-rtl`]:N==="rtl",[`${V}-icon-end`]:y==="end"},B,b,x,R==null?void 0:R.className),Le=Object.assign(Object.assign({},R==null?void 0:R.style),E),fe=de(w==null?void 0:w.icon,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.icon),Ne=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),((o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.icon)||{}),Ie=h&&!L?A.createElement(qg,{prefixCls:V,className:fe,style:Ne},h):A.createElement(D$,{existIcon:!!h,prefixCls:V,loading:L}),Re=O||O===0?F$(O,Q&&D):null;if(me.href!==void 0)return Z(A.createElement("a",Object.assign({},me,{className:de(Ce,{[`${V}-disabled`]:K}),href:K?void 0:me.href,style:Le,onClick:ie,ref:W,tabIndex:K?-1:0}),Ie,Re));let be=A.createElement("button",Object.assign({},C,{type:g,className:Ce,style:Le,onClick:ie,disabled:K,ref:W}),Ie,Re,!!B&&A.createElement(sT,{key:"compact",prefixCls:V}));return Hs(T)||(be=A.createElement(Iu,{component:"Button",disabled:L},be)),Z(be)});gr.Group=k$,gr.__ANT_BUTTON=!0,oe.env.NODE_ENV!=="production"&&(gr.displayName="Button");function Bu(e){return!!(e!=null&&e.then)}const Yg=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:s,quitOnNullishReturnValue:c,actionFn:u}=e,f=v.useRef(!1),d=v.useRef(null),[b,x]=_o(!1),O=function(){i==null||i.apply(void 0,arguments)};v.useEffect(()=>{let p=null;return a&&(p=setTimeout(()=>{var m;(m=d.current)===null||m===void 0||m.focus()})),()=>{p&&clearTimeout(p)}},[]);const h=p=>{Bu(p)&&(x(!0),p.then(function(){x(!1,!0),O.apply(void 0,arguments),f.current=!1},m=>{if(x(!1,!0),f.current=!1,!(s!=null&&s()))return Promise.reject(m)}))},y=p=>{if(f.current)return;if(f.current=!0,!u){O();return}let m;if(l){if(m=u(p),c&&!Bu(m)){f.current=!1,O(p);return}}else if(u.length)m=u(i),f.current=!1;else if(m=u(),!Bu(m)){O();return}h(m)};return v.createElement(gr,Object.assign({},Bg(t),{onClick:y,loading:b,prefixCls:r},o,{ref:d}),n)},ca=A.createContext({}),{Provider:Jg}=ca,Qg=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:s}=A.useContext(ca);return o?A.createElement(Yg,{isSilent:r,actionFn:l,close:function(){a==null||a.apply(void 0,arguments),s==null||s(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},Zg=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:s}=A.useContext(ca);return A.createElement(Yg,{isSilent:n,type:a||"primary",actionFn:s,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var ev=v.createContext(null),tv=[];function uT(e,t){var n=v.useState(function(){if(!xn())return null;var x=document.createElement("div");return oe.env.NODE_ENV!=="production"&&t&&x.setAttribute("data-debug",t),x}),r=ge(n,1),o=r[0],i=v.useRef(!1),a=v.useContext(ev),l=v.useState(tv),s=ge(l,2),c=s[0],u=s[1],f=a||(i.current?void 0:function(x){u(function(O){var h=[x].concat(Ee(O));return h})});function d(){o.parentElement||document.body.appendChild(o),i.current=!0}function b(){var x;(x=o.parentElement)===null||x===void 0||x.removeChild(o),i.current=!1}return nn(function(){return e?a?a(d):d():b(),b},[e]),nn(function(){c.length&&(c.forEach(function(x){return x()}),u(tv))},[c]),[o,f]}function dT(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=s?"width: ".concat(l.width,";"):"",f=c?"height: ".concat(l.height,";"):"";Er(`
154
- #`.concat(t,`::-webkit-scrollbar {
155
- `).concat(u,`
156
- `).concat(f,`
157
- }`),t)}catch(x){console.error(x),o=s,i=c}}document.body.appendChild(n);var d=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,b=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),zi(t),{width:d,height:b}}function fT(e){return typeof document=="undefined"||!e||!(e instanceof Element)?{width:0,height:0}:dT(e)}function pT(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var hT="rc-util-locker-".concat(Date.now()),nv=0;function mT(e){var t=!!e,n=v.useState(function(){return nv+=1,"".concat(hT,"_").concat(nv)}),r=ge(n,1),o=r[0];nn(function(){if(t){var i=fT(document.body).width,a=pT();Er(`
158
- html body {
159
- overflow-y: hidden;
160
- `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
161
- }`),o)}else zi(o);return function(){zi(o)}},[t,o])}var gT=!1;function vT(e){return gT}var rv=function(t){return t===!1?!1:!xn()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Us=v.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,l=a===void 0?!0:a,s=e.children,c=v.useState(n),u=ge(c,2),f=u[0],d=u[1],b=f||n;oe.env.NODE_ENV!=="production"&&gt(xn()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),v.useEffect(function(){(l||n)&&d(n)},[n,l]);var x=v.useState(function(){return rv(o)}),O=ge(x,2),h=O[0],y=O[1];v.useEffect(function(){var R=rv(o);y(R!=null?R:null)});var p=uT(b&&!h,i),m=ge(p,2),g=m[0],w=m[1],E=h!=null?h:g;mT(r&&n&&xn()&&(E===g||E===document.body));var S=null;if(s&&qr(s)&&t){var C=s;S=C.ref}var T=Go(S,t);if(!b||!xn()||h===void 0)return null;var M=E===!1||vT(),N=s;return t&&(N=v.cloneElement(s,{ref:T})),v.createElement(ev.Provider,{value:w},M?N:wr.createPortal(N,E))});oe.env.NODE_ENV!=="production"&&(Us.displayName="Portal");var ov=v.createContext({});function _T(){var e=se({},v);return e.useId}var iv=0,av=_T();const sv=av?function(t){var n=av();return t||(oe.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=v.useState("ssr-id"),r=ge(n,2),o=r[0],i=r[1];return v.useEffect(function(){var a=iv;iv+=1,i("rc_unique_".concat(a))},[]),t||(oe.env.NODE_ENV==="test"?"test-id":o)};function lv(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function cv(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function yT(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=cv(o),n.top+=cv(o,!0),n}const bT=v.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var uv={width:0,height:0,overflow:"hidden",outline:"none"},wT={outline:"none"},zu=A.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,s=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,d=e.bodyStyle,b=e.bodyProps,x=e.modalRender,O=e.onMouseDown,h=e.onMouseUp,y=e.holderRef,p=e.visible,m=e.forceRender,g=e.width,w=e.height,E=e.classNames,S=e.styles,C=A.useContext(ov),T=C.panel,M=Go(y,T),N=A.useRef(),R=A.useRef(),D=A.useRef();A.useImperativeHandle(t,function(){return{focus:function(){var F;(F=D.current)===null||F===void 0||F.focus({preventScroll:!0})},changeActive:function(F){var X=document,te=X.activeElement;F&&te===R.current?N.current.focus({preventScroll:!0}):!F&&te===N.current&&R.current.focus({preventScroll:!0})}}});var V={};g!==void 0&&(V.width=g),w!==void 0&&(V.height=w);var Z=l?A.createElement("div",{className:de("".concat(n,"-footer"),E==null?void 0:E.footer),style:se({},S==null?void 0:S.footer)},l):null,J=i?A.createElement("div",{className:de("".concat(n,"-header"),E==null?void 0:E.header),style:se({},S==null?void 0:S.header)},A.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,I=A.useMemo(function(){return qe(s)==="object"&&s!==null?s:s?{closeIcon:c!=null?c:A.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[s,c,n]),U=aa(I,!0),K=qe(s)==="object"&&s.disabled,z=s?A.createElement("button",$e({type:"button",onClick:u,"aria-label":"Close"},U,{className:"".concat(n,"-close"),disabled:K}),I.closeIcon):null,G=A.createElement("div",{className:de("".concat(n,"-content"),E==null?void 0:E.content),style:S==null?void 0:S.content},z,J,A.createElement("div",$e({className:de("".concat(n,"-body"),E==null?void 0:E.body),style:se(se({},d),S==null?void 0:S.body)},b),f),Z);return A.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:M,style:se(se({},o),V),className:de(n,r),onMouseDown:O,onMouseUp:h},A.createElement("div",{tabIndex:0,ref:N,style:uv,"aria-hidden":"true"}),A.createElement("div",{ref:D,tabIndex:-1,style:wT},A.createElement(bT,{shouldUpdate:p||m},x?x(G):G)),A.createElement("div",{tabIndex:0,ref:R,style:uv,"aria-hidden":"true"}))});oe.env.NODE_ENV!=="production"&&(zu.displayName="Panel");var dv=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,s=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,d=e.mousePosition,b=A.useRef(),x=v.useState(),O=ge(x,2),h=O[0],y=O[1],p={};h&&(p.transformOrigin=h);function m(){var g=yT(b.current);y(d&&(d.x||d.y)?"".concat(d.x-g.left,"px ").concat(d.y-g.top,"px"):"")}return v.createElement(or,{visible:a,onVisibleChanged:f,onAppearPrepare:m,onEnterPrepare:m,forceRender:l,motionName:c,removeOnLeave:s,ref:b},function(g,w){var E=g.className,S=g.style;return v.createElement(zu,$e({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:w,style:se(se(se({},S),o),p),className:de(i,E)}))})});dv.displayName="Content";var xT=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,l=t.className;return v.createElement(or,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(s,c){var u=s.className,f=s.style;return v.createElement("div",$e({ref:c,style:se(se({},f),r),className:de("".concat(n,"-mask"),u,l)},i))})},ST=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,l=t.keyboard,s=l===void 0?!0:l,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,d=t.wrapClassName,b=t.wrapProps,x=t.onClose,O=t.afterOpenChange,h=t.afterClose,y=t.transitionName,p=t.animation,m=t.closable,g=m===void 0?!0:m,w=t.mask,E=w===void 0?!0:w,S=t.maskTransitionName,C=t.maskAnimation,T=t.maskClosable,M=T===void 0?!0:T,N=t.maskStyle,R=t.maskProps,D=t.rootClassName,V=t.classNames,Z=t.styles;oe.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(function(ve){zr(!(ve in t),"".concat(ve," is deprecated, please use styles instead."))}),"wrapClassName"in t&&zr(!1,"wrapClassName is deprecated, please use classNames instead."));var J=A.useRef(),I=A.useRef(),U=A.useRef(),K=v.useState(a),z=ge(K,2),G=z[0],L=z[1],F=sv();function X(){Nc(I.current,document.activeElement)||(J.current=document.activeElement)}function te(){if(!Nc(I.current,document.activeElement)){var ve;(ve=U.current)===null||ve===void 0||ve.focus()}}function H(ve){if(ve)te();else{if(L(!1),E&&J.current&&u){try{J.current.focus({preventScroll:!0})}catch(me){}J.current=null}G&&(h==null||h())}O==null||O(ve)}function W(ve){x==null||x(ve)}var Q=A.useRef(!1),ie=A.useRef(),ce=function(){clearTimeout(ie.current),Q.current=!0},B=function(){ie.current=setTimeout(function(){Q.current=!1})},q=null;M&&(q=function(me){Q.current?Q.current=!1:I.current===me.target&&W(me)});function le(ve){if(s&&ve.keyCode===je.ESC){ve.stopPropagation(),W(ve);return}a&&ve.keyCode===je.TAB&&U.current.changeActive(!ve.shiftKey)}A.useEffect(function(){a&&(L(!0),X())},[a]),A.useEffect(function(){return function(){clearTimeout(ie.current)}},[]);var ne=se(se(se({zIndex:o},f),Z==null?void 0:Z.wrapper),{},{display:G?null:"none"});return v.createElement("div",$e({className:de("".concat(r,"-root"),D)},aa(t,{data:!0})),v.createElement(xT,{prefixCls:r,visible:E&&a,motionName:lv(r,S,C),style:se(se({zIndex:o},N),Z==null?void 0:Z.mask),maskProps:R,className:V==null?void 0:V.mask}),v.createElement("div",$e({tabIndex:-1,onKeyDown:le,className:de("".concat(r,"-wrap"),d,V==null?void 0:V.wrapper),ref:I,onClick:q,style:ne},b),v.createElement(dv,$e({},t,{onMouseDown:ce,onMouseUp:B,ref:U,closable:g,ariaId:F,prefixCls:r,visible:a&&G,onClose:W,onVisibleChanged:H,motionName:lv(r,y,p)}))))},fv=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,l=t.afterClose,s=t.panelRef,c=v.useState(n),u=ge(c,2),f=u[0],d=u[1],b=v.useMemo(function(){return{panel:s}},[s]);return v.useEffect(function(){n&&d(!0)},[n]),!o&&a&&!f?null:v.createElement(ov.Provider,{value:b},v.createElement(Us,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},v.createElement(ST,$e({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),d(!1)}}))))};fv.displayName="Dialog";var So="RC_FORM_INTERNAL_HOOKS",Ot=function(){gt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Co=v.createContext({getFieldValue:Ot,getFieldsValue:Ot,getFieldError:Ot,getFieldWarning:Ot,getFieldsError:Ot,isFieldsTouched:Ot,isFieldTouched:Ot,isFieldValidating:Ot,isFieldsValidating:Ot,resetFields:Ot,setFields:Ot,setFieldValue:Ot,setFieldsValue:Ot,validateFields:Ot,submit:Ot,getInternalHooks:function(){return Ot(),{dispatch:Ot,initEntityValue:Ot,registerField:Ot,useSubscribe:Ot,setInitialValues:Ot,destroyForm:Ot,setCallbacks:Ot,registerWatch:Ot,getFields:Ot,setValidateMessages:Ot,setPreserve:Ot,getInitialValue:Ot}}}),ua=v.createContext(null);function qu(e){return e==null?[]:Array.isArray(e)?e:[e]}function CT(e){return e&&!!e._init}function Vu(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Hu=Vu();function ET(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function OT(e,t,n){if(Hc())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Gi(o,n.prototype),o}function Wu(e){var t=typeof Map=="function"?new Map:void 0;return Wu=function(r){if(r===null||!ET(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return OT(r,arguments,Ki(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Gi(o,r)},Wu(e)}var $T=/%[sdj%]/g,pv=function(){};typeof oe!="undefined"&&oe.env&&oe.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(pv=function(t,n){typeof console!="undefined"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING=="undefined"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function Uu(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function jn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace($T,function(l){if(l==="%%")return"%";if(o>=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(s){return"[Circular]"}break;default:return l}});return a}return e}function TT(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function rn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||TT(t)&&typeof e=="string"&&!e)}function PT(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,Ee(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function hv(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],i):n([])}i([])}function RT(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ee(e[n]||[]))}),t}var mv=function(e){Vr(n,e);var t=Hr(n);function n(r,o){var i;return pn(this,n),i=t.call(this,"Async Validation Error"),ae(it(i),"errors",void 0),ae(it(i),"fields",void 0),i.errors=r,i.fields=o,i}return hn(n)}(Wu(Error));function jT(e,t,n,r,o){if(t.first){var i=new Promise(function(d,b){var x=function(y){return r(y),y.length?b(new mv(y,Uu(y))):d(o)},O=RT(e);hv(O,n,x)});return i.catch(function(d){return d}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],f=new Promise(function(d,b){var x=function(h){if(u.push.apply(u,h),c++,c===s)return r(u),u.length?b(new mv(u,Uu(u))):d(o)};l.length||(r(u),d(o)),l.forEach(function(O){var h=e[O];a.indexOf(O)!==-1?hv(h,n,x):PT(h,n,x)})});return f.catch(function(d){return d}),f}function MT(e){return!!(e&&e.message!==void 0)}function IT(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function gv(e,t){return function(n){var r;return e.fullFields?r=IT(t,e.fullFields):r=t[n.field||e.fullField],MT(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function vv(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];qe(r)==="object"&&qe(e[n])==="object"?e[n]=se(se({},e[n]),r):e[n]=r}}return e}var ri="enum",AT=function(t,n,r,o,i){t[ri]=Array.isArray(t[ri])?t[ri]:[],t[ri].indexOf(n)===-1&&o.push(jn(i.messages[ri],t.fullField,t[ri].join(", ")))},NT=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(jn(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(jn(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},kT=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,d=typeof n=="number",b=typeof n=="string",x=Array.isArray(n);if(d?f="number":b?f="string":x&&(f="array"),!f)return!1;x&&(u=n.length),b&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(jn(i.messages[f].len,t.fullField,t.len)):l&&!s&&u<t.min?o.push(jn(i.messages[f].min,t.fullField,t.min)):s&&!l&&u>t.max?o.push(jn(i.messages[f].max,t.fullField,t.max)):l&&s&&(u<t.min||u>t.max)&&o.push(jn(i.messages[f].range,t.fullField,t.min,t.max))},_v=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||rn(n,a||t.type))&&o.push(jn(i.messages.required,t.fullField))},Gs;const LT=function(){if(Gs)return Gs;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),s=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(E){return E&&E.exact?l:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(a).concat(t(E),")"),"g")};u.v4=function(w){return w&&w.exact?s:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",b=u.v4().source,x=u.v6().source,O="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',g="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(b,"|").concat(x,"|").concat(O).concat(h).concat(y,")").concat(p).concat(m);return Gs=new RegExp("(?:^".concat(g,"$)"),"i"),Gs};var yv={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},da={integer:function(t){return da.number(t)&&parseInt(t,10)===t},float:function(t){return da.number(t)&&!da.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return qe(t)==="object"&&!da.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(yv.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(LT())},hex:function(t){return typeof t=="string"&&!!t.match(yv.hex)}},FT=function(t,n,r,o,i){if(t.required&&n===void 0){_v(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?da[l](n)||o.push(jn(i.messages.types[l],t.fullField,t.type)):l&&qe(n)!==t.type&&o.push(jn(i.messages.types[l],t.fullField,t.type))},DT=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(jn(i.messages.whitespace,t.fullField))};const ct={required:_v,whitespace:DT,type:FT,range:kT,enum:AT,pattern:NT};var BT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n)&&!t.required)return r();ct.required(t,n,o,a,i)}r(a)},zT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();ct.required(t,n,o,a,i,"array"),n!=null&&(ct.type(t,n,o,a,i),ct.range(t,n,o,a,i))}r(a)},qT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&ct.type(t,n,o,a,i)}r(a)},VT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n,"date")&&!t.required)return r();if(ct.required(t,n,o,a,i),!rn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),ct.type(t,s,o,a,i),s&&ct.range(t,s.getTime(),o,a,i)}}r(a)},HT="enum",WT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&ct[HT](t,n,o,a,i)}r(a)},UT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&(ct.type(t,n,o,a,i),ct.range(t,n,o,a,i))}r(a)},GT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&(ct.type(t,n,o,a,i),ct.range(t,n,o,a,i))}r(a)},KT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&ct.type(t,n,o,a,i)}r(a)},XT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),rn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&(ct.type(t,n,o,a,i),ct.range(t,n,o,a,i))}r(a)},YT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n)&&!t.required)return r();ct.required(t,n,o,a,i),n!==void 0&&ct.type(t,n,o,a,i)}r(a)},JT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n,"string")&&!t.required)return r();ct.required(t,n,o,a,i),rn(n,"string")||ct.pattern(t,n,o,a,i)}r(a)},QT=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n)&&!t.required)return r();ct.required(t,n,o,a,i),rn(n)||ct.type(t,n,o,a,i)}r(a)},ZT=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":qe(n);ct.required(t,n,o,a,i,l),r(a)},eP=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(rn(n,"string")&&!t.required)return r();ct.required(t,n,o,a,i,"string"),rn(n,"string")||(ct.type(t,n,o,a,i),ct.range(t,n,o,a,i),ct.pattern(t,n,o,a,i),t.whitespace===!0&&ct.whitespace(t,n,o,a,i))}r(a)},Gu=function(t,n,r,o,i){var a=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(rn(n,a)&&!t.required)return r();ct.required(t,n,o,l,i,a),rn(n,a)||ct.type(t,n,o,l,i)}r(l)};const fa={string:eP,method:KT,number:XT,boolean:qT,regexp:QT,integer:GT,float:UT,array:zT,object:YT,enum:WT,pattern:JT,date:VT,url:Gu,hex:Gu,email:Gu,required:ZT,any:BT};var pa=function(){function e(t){pn(this,e),ae(this,"rules",null),ae(this,"_messages",Hu),this.define(t)}return hn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(qe(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=vv(Vu(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=o,s=i;if(typeof l=="function"&&(s=l,l={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(x){var O=[],h={};function y(m){if(Array.isArray(m)){var g;O=(g=O).concat.apply(g,Ee(m))}else O.push(m)}for(var p=0;p<x.length;p++)y(x[p]);O.length?(h=Uu(O),s(O,h)):s(null,a)}if(l.messages){var u=this.messages();u===Hu&&(u=Vu()),vv(u,l.messages),l.messages=u}else l.messages=this.messages();var f={},d=l.keys||Object.keys(this.rules);d.forEach(function(x){var O=r.rules[x],h=a[x];O.forEach(function(y){var p=y;typeof p.transform=="function"&&(a===n&&(a=se({},a)),h=a[x]=p.transform(h),h!=null&&(p.type=p.type||(Array.isArray(h)?"array":qe(h)))),typeof p=="function"?p={validator:p}:p=se({},p),p.validator=r.getValidationMethod(p),p.validator&&(p.field=x,p.fullField=p.fullField||x,p.type=r.getType(p),f[x]=f[x]||[],f[x].push({rule:p,value:h,source:a,field:x}))})});var b={};return jT(f,l,function(x,O){var h=x.rule,y=(h.type==="object"||h.type==="array")&&(qe(h.fields)==="object"||qe(h.defaultField)==="object");y=y&&(h.required||!h.required&&x.value),h.field=x.field;function p(S,C){return se(se({},C),{},{fullField:"".concat(h.fullField,".").concat(S),fullFields:h.fullFields?[].concat(Ee(h.fullFields),[S]):[S]})}function m(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=Array.isArray(S)?S:[S];!l.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&h.message!==void 0&&(C=[].concat(h.message));var T=C.map(gv(h,a));if(l.first&&T.length)return b[h.field]=1,O(T);if(!y)O(T);else{if(h.required&&!x.value)return h.message!==void 0?T=[].concat(h.message).map(gv(h,a)):l.error&&(T=[l.error(h,jn(l.messages.required,h.field))]),O(T);var M={};h.defaultField&&Object.keys(x.value).map(function(D){M[D]=h.defaultField}),M=se(se({},M),x.rule.fields);var N={};Object.keys(M).forEach(function(D){var V=M[D],Z=Array.isArray(V)?V:[V];N[D]=Z.map(p.bind(null,D))});var R=new e(N);R.messages(l.messages),x.rule.options&&(x.rule.options.messages=l.messages,x.rule.options.error=l.error),R.validate(x.value,x.rule.options||l,function(D){var V=[];T&&T.length&&V.push.apply(V,Ee(T)),D&&D.length&&V.push.apply(V,Ee(D)),O(V.length?V:null)})}}var g;if(h.asyncValidator)g=h.asyncValidator(h,x.value,m,x.source,l);else if(h.validator){try{g=h.validator(h,x.value,m,x.source,l)}catch(S){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,S),l.suppressValidatorError||setTimeout(function(){throw S},0),m(S.message)}g===!0?m():g===!1?m(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):g instanceof Array?m(g):g instanceof Error&&m(g.message)}g&&g.then&&g.then(function(){return m()},function(S){return m(S)})},function(x){c(x)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!fa.hasOwnProperty(n.type))throw new Error(jn("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?fa.required:fa[this.getType(n)]||void 0}}]),e}();ae(pa,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");fa[t]=n}),ae(pa,"warning",pv),ae(pa,"messages",Hu),ae(pa,"validators",fa);var Mn="'${name}' is not a valid ${type}",bv={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Mn,method:Mn,array:Mn,object:Mn,number:Mn,date:Mn,boolean:Mn,integer:Mn,float:Mn,regexp:Mn,email:Mn,url:Mn,hex:Mn},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},wv=pa;function tP(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var xv="CODE_LOGIC_ERROR";function Ku(e,t,n,r,o){return Xu.apply(this,arguments)}function Xu(){return Xu=bo(Sn().mark(function e(t,n,r,o,i){var a,l,s,c,u,f,d,b,x;return Sn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return a=se({},r),delete a.ruleIndex,wv.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(xv)}}),s=null,a&&a.type==="array"&&a.defaultField&&(s=a.defaultField,delete a.defaultField),c=new wv(ae({},t,[a])),u=Zo(bv,o.validateMessages),c.messages(u),f=[],h.prev=10,h.next=13,Promise.resolve(c.validate(ae({},t,n),se({},o)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(f=h.t0.errors.map(function(y,p){var m=y.message,g=m===xv?u.default:m;return v.isValidElement(g)?v.cloneElement(g,{key:"error_".concat(p)}):g}));case 18:if(!(!f.length&&s)){h.next=23;break}return h.next=21,Promise.all(n.map(function(y,p){return Ku("".concat(t,".").concat(p),y,s,o,i)}));case 21:return d=h.sent,h.abrupt("return",d.reduce(function(y,p){return[].concat(Ee(y),Ee(p))},[]));case 23:return b=se(se({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),x=f.map(function(y){return typeof y=="string"?tP(y,b):y}),h.abrupt("return",x);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),Xu.apply(this,arguments)}function nP(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(u,f){var d=u.validator,b=se(se({},u),{},{ruleIndex:f});return d&&(b.validator=function(x,O,h){var y=!1,p=function(){for(var w=arguments.length,E=new Array(w),S=0;S<w;S++)E[S]=arguments[S];Promise.resolve().then(function(){gt(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||h.apply(void 0,E)})},m=d(x,O,p);y=m&&typeof m.then=="function"&&typeof m.catch=="function",gt(y,"`callback` is deprecated. Please return a promise instead."),y&&m.then(function(){h()}).catch(function(g){h(g||" ")})}),b}).sort(function(u,f){var d=u.warningOnly,b=u.ruleIndex,x=f.warningOnly,O=f.ruleIndex;return!!d==!!x?b-O:d?1:-1}),s;if(o===!0)s=new Promise(function(){var u=bo(Sn().mark(function f(d,b){var x,O,h;return Sn().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:x=0;case 1:if(!(x<l.length)){p.next=12;break}return O=l[x],p.next=5,Ku(a,t,O,r,i);case 5:if(h=p.sent,!h.length){p.next=9;break}return b([{errors:h,rule:O}]),p.abrupt("return");case 9:x+=1,p.next=1;break;case 12:d([]);case 13:case"end":return p.stop()}},f)}));return function(f,d){return u.apply(this,arguments)}}());else{var c=l.map(function(u){return Ku(a,t,u,r,i).then(function(f){return{errors:f,rule:u}})});s=(o?oP(c):rP(c)).then(function(u){return Promise.reject(u)})}return s.catch(function(u){return u}),s}function rP(e){return Yu.apply(this,arguments)}function Yu(){return Yu=bo(Sn().mark(function e(t){return Sn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,Ee(o));return a}));case 1:case"end":return r.stop()}},e)})),Yu.apply(this,arguments)}function oP(e){return Ju.apply(this,arguments)}function Ju(){return Ju=bo(Sn().mark(function e(t){var n;return Sn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(l){l.errors.length&&i([l]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),Ju.apply(this,arguments)}function Yt(e){return qu(e)}function Sv(e,t){var n={};return t.forEach(function(r){var o=mr(e,r);n=er(n,r,o)}),n}function oi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Cv(t,r,n)})}function Cv(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function iP(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||qe(e)!=="object"||qe(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ee(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function aP(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&qe(t.target)==="object"&&e in t.target?t.target[e]:t}function Ev(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ee(e.slice(0,n)),[o],Ee(e.slice(n,t)),Ee(e.slice(t+1,r))):i<0?[].concat(Ee(e.slice(0,t)),Ee(e.slice(t+1,n+1)),[o],Ee(e.slice(n+1,r))):e}var sP=["name"],Ln=[];function Qu(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var Zu=function(e){Vr(n,e);var t=Hr(n);function n(r){var o;if(pn(this,n),o=t.call(this,r),ae(it(o),"state",{resetCount:0}),ae(it(o),"cancelRegisterFunc",null),ae(it(o),"mounted",!1),ae(it(o),"touched",!1),ae(it(o),"dirty",!1),ae(it(o),"validatePromise",void 0),ae(it(o),"prevValidating",void 0),ae(it(o),"errors",Ln),ae(it(o),"warnings",Ln),ae(it(o),"cancelRegister",function(){var s=o.props,c=s.preserve,u=s.isListField,f=s.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Yt(f)),o.cancelRegisterFunc=null}),ae(it(o),"getNamePath",function(){var s=o.props,c=s.name,u=s.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(Ee(d),Ee(c)):[]}),ae(it(o),"getRules",function(){var s=o.props,c=s.rules,u=c===void 0?[]:c,f=s.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),ae(it(o),"refresh",function(){o.mounted&&o.setState(function(s){var c=s.resetCount;return{resetCount:c+1}})}),ae(it(o),"metaCache",null),ae(it(o),"triggerMetaEvent",function(s){var c=o.props.onMetaChange;if(c){var u=se(se({},o.getMeta()),{},{destroy:s});Yi(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),ae(it(o),"onStoreChange",function(s,c,u){var f=o.props,d=f.shouldUpdate,b=f.dependencies,x=b===void 0?[]:b,O=f.onReset,h=u.store,y=o.getNamePath(),p=o.getValue(s),m=o.getValue(h),g=c&&oi(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!Yi(p,m)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Ln,o.warnings=Ln,o.triggerMetaEvent()),u.type){case"reset":if(!c||g){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Ln,o.warnings=Ln,o.triggerMetaEvent(),O==null||O(),o.refresh();return}break;case"remove":{if(d&&Qu(d,s,h,p,m,u)){o.reRender();return}break}case"setField":{var w=u.data;if(g){"touched"in w&&(o.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(o.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(o.errors=w.errors||Ln),"warnings"in w&&(o.warnings=w.warnings||Ln),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in w&&oi(c,y,!0)){o.reRender();return}if(d&&!y.length&&Qu(d,s,h,p,m,u)){o.reRender();return}break}case"dependenciesUpdate":{var E=x.map(Yt);if(E.some(function(S){return oi(u.relatedFields,S)})){o.reRender();return}break}default:if(g||(!x.length||y.length||d)&&Qu(d,s,h,p,m,u)){o.reRender();return}break}d===!0&&o.reRender()}),ae(it(o),"validateRules",function(s){var c=o.getNamePath(),u=o.getValue(),f=s||{},d=f.triggerName,b=f.validateOnly,x=b===void 0?!1:b,O=Promise.resolve().then(bo(Sn().mark(function h(){var y,p,m,g,w,E,S;return Sn().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(o.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(y=o.props,p=y.validateFirst,m=p===void 0?!1:p,g=y.messageVariables,w=y.validateDebounce,E=o.getRules(),d&&(E=E.filter(function(M){return M}).filter(function(M){var N=M.validateTrigger;if(!N)return!0;var R=qu(N);return R.includes(d)})),!(w&&d)){T.next=10;break}return T.next=8,new Promise(function(M){setTimeout(M,w)});case 8:if(o.validatePromise===O){T.next=10;break}return T.abrupt("return",[]);case 10:return S=nP(c,u,E,s,m,g),S.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ln;if(o.validatePromise===O){var N;o.validatePromise=null;var R=[],D=[];(N=M.forEach)===null||N===void 0||N.call(M,function(V){var Z=V.rule.warningOnly,J=V.errors,I=J===void 0?Ln:J;Z?D.push.apply(D,Ee(I)):R.push.apply(R,Ee(I))}),o.errors=R,o.warnings=D,o.triggerMetaEvent(),o.reRender()}}),T.abrupt("return",S);case 13:case"end":return T.stop()}},h)})));return x||(o.validatePromise=O,o.dirty=!0,o.errors=Ln,o.warnings=Ln,o.triggerMetaEvent(),o.reRender()),O}),ae(it(o),"isFieldValidating",function(){return!!o.validatePromise}),ae(it(o),"isFieldTouched",function(){return o.touched}),ae(it(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var s=o.props.fieldContext,c=s.getInternalHooks(So),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),ae(it(o),"getErrors",function(){return o.errors}),ae(it(o),"getWarnings",function(){return o.warnings}),ae(it(o),"isListField",function(){return o.props.isListField}),ae(it(o),"isList",function(){return o.props.isList}),ae(it(o),"isPreserve",function(){return o.props.preserve}),ae(it(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var s={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return s}),ae(it(o),"getOnlyChild",function(s){if(typeof s=="function"){var c=o.getMeta();return se(se({},o.getOnlyChild(s(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=po(s);return u.length!==1||!v.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ae(it(o),"getValue",function(s){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return mr(s||c(!0),u)}),ae(it(o),"getControlled",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,d=c.validateTrigger,b=c.getValueFromEvent,x=c.normalize,O=c.valuePropName,h=c.getValueProps,y=c.fieldContext,p=d!==void 0?d:y.validateTrigger,m=o.getNamePath(),g=y.getInternalHooks,w=y.getFieldsValue,E=g(So),S=E.dispatch,C=o.getValue(),T=h||function(V){return ae({},O,V)},M=s[f],N=u!==void 0?T(C):{};oe.env.NODE_ENV!=="production"&&N&&Object.keys(N).forEach(function(V){gt(typeof N[V]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(V,")"))});var R=se(se({},s),N);R[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var V,Z=arguments.length,J=new Array(Z),I=0;I<Z;I++)J[I]=arguments[I];b?V=b.apply(void 0,J):V=aP.apply(void 0,[O].concat(J)),x&&(V=x(V,C,w(!0))),S({type:"updateValue",namePath:m,value:V}),M&&M.apply(void 0,J)};var D=qu(p||[]);return D.forEach(function(V){var Z=R[V];R[V]=function(){Z&&Z.apply(void 0,arguments);var J=o.props.rules;J&&J.length&&S({type:"validateField",namePath:m,triggerName:V})}}),R}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(So),l=a.initEntityValue;l(it(o))}return o}return hn(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,s=l(So),c=s.registerField;this.cancelRegisterFunc=c(this)}i===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,i=this.props.children,a=this.getOnlyChild(i),l=a.child,s=a.isFunction,c;return s?c=l:v.isValidElement(l)?c=v.cloneElement(l,this.getControlled(l.props)):(gt(!l,"`children` of Field is not validate ReactElement."),c=l),v.createElement(v.Fragment,{key:o},c)}}]),n}(v.Component);ae(Zu,"contextType",Co),ae(Zu,"defaultProps",{trigger:"onChange",valuePropName:"value"});function ed(e){var t=e.name,n=st(e,sP),r=v.useContext(Co),o=v.useContext(ua),i=t!==void 0?Yt(t):void 0,a="keep";return n.isListField||(a="_".concat((i||[]).join("_"))),oe.env.NODE_ENV!=="production"&&n.preserve===!1&&n.isListField&&i.length<=1&&gt(!1,"`preserve` should not apply on Form.List fields."),v.createElement(Zu,$e({key:a,name:i,isListField:!!o},n,{fieldContext:r}))}function Ov(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=v.useContext(Co),s=v.useContext(ua),c=v.useRef({keys:[],id:0}),u=c.current,f=v.useMemo(function(){var O=Yt(l.prefixName)||[];return[].concat(Ee(O),Ee(Yt(t)))},[l.prefixName,t]),d=v.useMemo(function(){return se(se({},l),{},{prefixName:f})},[l,f]),b=v.useMemo(function(){return{getKey:function(h){var y=f.length,p=h[y];return[u.keys[p],h.slice(y+1)]}}},[f]);if(typeof r!="function")return gt(!1,"Form.List only accepts function as children."),null;var x=function(h,y,p){var m=p.source;return m==="internal"?!1:h!==y};return v.createElement(ua.Provider,{value:b},v.createElement(Co.Provider,{value:d},v.createElement(ed,{name:[],shouldUpdate:x,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a!=null?a:!!s},function(O,h){var y=O.value,p=y===void 0?[]:y,m=O.onChange,g=l.getFieldValue,w=function(){var T=g(f||[]);return T||[]},E={add:function(T,M){var N=w();M>=0&&M<=N.length?(u.keys=[].concat(Ee(u.keys.slice(0,M)),[u.id],Ee(u.keys.slice(M))),m([].concat(Ee(N.slice(0,M)),[T],Ee(N.slice(M))))):(oe.env.NODE_ENV!=="production"&&(M<0||M>N.length)&&gt(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Ee(u.keys),[u.id]),m([].concat(Ee(N),[T]))),u.id+=1},remove:function(T){var M=w(),N=new Set(Array.isArray(T)?T:[T]);N.size<=0||(u.keys=u.keys.filter(function(R,D){return!N.has(D)}),m(M.filter(function(R,D){return!N.has(D)})))},move:function(T,M){if(T!==M){var N=w();T<0||T>=N.length||M<0||M>=N.length||(u.keys=Ev(u.keys,T,M),m(Ev(N,T,M)))}}},S=p||[];return Array.isArray(S)||(S=[],oe.env.NODE_ENV!=="production"&&gt(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(S.map(function(C,T){var M=u.keys[T];return M===void 0&&(u.keys[T]=u.id,M=u.keys[T],u.id+=1),{name:T,key:M,isListField:!0}}),E,h)})))}function lP(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(s){return t=!0,s}).then(function(s){n-=1,r[l]=s,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var $v="__@field_split__";function td(e){return e.map(function(t){return"".concat(qe(t),":").concat(t)}).join($v)}var ii=function(){function e(){pn(this,e),ae(this,"kvs",new Map)}return hn(e,[{key:"set",value:function(n,r){this.kvs.set(td(n),r)}},{key:"get",value:function(n){return this.kvs.get(td(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(td(n))}},{key:"map",value:function(n){return Ee(this.kvs.entries()).map(function(r){var o=ge(r,2),i=o[0],a=o[1],l=i.split($v);return n({key:l.map(function(s){var c=s.match(/^([^:]*):(.*)$/),u=ge(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),cP=["name"],uP=hn(function e(t){var n=this;pn(this,e),ae(this,"formHooked",!1),ae(this,"forceRootUpdate",void 0),ae(this,"subscribable",!0),ae(this,"store",{}),ae(this,"fieldEntities",[]),ae(this,"initialValues",{}),ae(this,"callbacks",{}),ae(this,"validateMessages",null),ae(this,"preserve",null),ae(this,"lastValidatePromise",null),ae(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),ae(this,"getInternalHooks",function(r){return r===So?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(gt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ae(this,"useSubscribe",function(r){n.subscribable=r}),ae(this,"prevWithoutPreserves",null),ae(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Zo(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var s=l.key;a=er(a,s,mr(r,s))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),ae(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ii;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),ae(this,"getInitialValue",function(r){var o=mr(n.initialValues,r);return r.length?Zo(o):o}),ae(this,"setCallbacks",function(r){n.callbacks=r}),ae(this,"setValidateMessages",function(r){n.validateMessages=r}),ae(this,"setPreserve",function(r){n.preserve=r}),ae(this,"watchList",[]),ae(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),ae(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),ae(this,"timeoutId",null),ae(this,"warningUnhooked",function(){oe.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window!="undefined"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||gt(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),ae(this,"updateStore",function(r){n.store=r}),ae(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),ae(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ii;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),ae(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Yt(i);return o.get(a)||{INVALIDATE_NAME_PATH:Yt(i)}})}),ae(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&qe(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var s=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return s.forEach(function(u){var f,d,b="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(l){var x,O;if((x=(O=u).isList)!==null&&x!==void 0&&x.call(O))return}else if(!i&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)c.push(b);else{var h="getMeta"in u?u.getMeta():null;a(h)&&c.push(b)}}),Sv(n.store,c.map(Yt))}),ae(this,"getFieldValue",function(r){n.warningUnhooked();var o=Yt(r);return mr(n.store,o)}),ae(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Yt(r[a]),errors:[],warnings:[]}})}),ae(this,"getFieldError",function(r){n.warningUnhooked();var o=Yt(r),i=n.getFieldsError([o])[0];return i.errors}),ae(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Yt(r),i=n.getFieldsError([o])[0];return i.warnings}),ae(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],l=o[1],s,c=!1;o.length===0?s=null:o.length===1?Array.isArray(a)?(s=a.map(Yt),c=!1):(s=null,c=a):(s=a.map(Yt),c=l);var u=n.getFieldEntities(!0),f=function(h){return h.isFieldTouched()};if(!s)return c?u.every(function(O){return f(O)||O.isList()}):u.some(f);var d=new ii;s.forEach(function(O){d.set(O,[])}),u.forEach(function(O){var h=O.getNamePath();s.forEach(function(y){y.every(function(p,m){return h[m]===p})&&d.update(y,function(p){return[].concat(Ee(p),[O])})})});var b=function(h){return h.some(f)},x=d.map(function(O){var h=O.value;return h});return c?x.every(b):x.some(b)}),ae(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),ae(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(Yt);return o.some(function(a){var l=a.getNamePath();return oi(i,l)&&a.isFieldValidating()})}),ae(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),ae(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ii,i=n.getFieldEntities(!0);i.forEach(function(s){var c=s.props.initialValue,u=s.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:s,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),b=n.getInitialValue(d);if(b!==void 0)gt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var x=o.get(d);if(x&&x.size>1)gt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(x){var O=n.getFieldValue(d),h=u.isListField();!h&&(!r.skipExist||O===void 0)&&n.updateStore(er(n.store,d,Ee(x)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(s){var c=o.get(s);if(c){var u;(u=l).push.apply(u,Ee(Ee(c).map(function(f){return f.entity})))}})):l=i,a(l)}),ae(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Zo(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Yt);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(er(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),ae(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,s=st(a,cP),c=Yt(l);i.push(c),"value"in s&&n.updateStore(er(n.store,c,s.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),ae(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),s=se(se({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(s,"originRCField",{value:!0}),s});return o}),ae(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=mr(n.store,i);a===void 0&&n.updateStore(er(n.store,i,o))}}),ae(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o!=null?o:!0}),ae(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||s.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!Cv(f.getNamePath(),o)})){var u=n.store;n.updateStore(er(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),ae(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),ae(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=se(se({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var s=l.onStoreChange;s(r,o,a)})}else n.forceRootUpdate()}),ae(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Ee(i))}),i}),ae(this,"updateValue",function(r,o){var i=Yt(r),a=n.store;n.updateStore(er(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),s=n.callbacks.onValuesChange;if(s){var c=Sv(n.store,[i]);s(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ee(l)))}),ae(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Zo(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),ae(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o}])}),ae(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new ii;n.getFieldEntities().forEach(function(s){var c=s.props.dependencies;(c||[]).forEach(function(u){var f=Yt(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(s),d})})});var l=function s(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(i.push(d),s(d))}})};return l(r),i}),ae(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new ii;o.forEach(function(c){var u=c.name,f=c.errors;l.set(u,f)}),a.forEach(function(c){c.errors=l.get(c.name)||c.errors})}var s=a.filter(function(c){var u=c.name;return oi(r,u)});s.length&&i(s,a)}}),ae(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,s=l?i.map(Yt):[],c=[],u=String(Date.now()),f=new Set,d=a||{},b=d.recursive,x=d.dirty;n.getFieldEntities(!0).forEach(function(p){if(l||s.push(p.getNamePath()),!(!p.props.rules||!p.props.rules.length)&&!(x&&!p.isFieldDirty())){var m=p.getNamePath();if(f.add(m.join(u)),!l||oi(s,m,b)){var g=p.validateRules(se({validateMessages:se(se({},bv),n.validateMessages)},a));c.push(g.then(function(){return{name:m,errors:[],warnings:[]}}).catch(function(w){var E,S=[],C=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(T){var M=T.rule.warningOnly,N=T.errors;M?C.push.apply(C,Ee(N)):S.push.apply(S,Ee(N))}),S.length?Promise.reject({name:m,errors:S,warnings:C}):{name:m,errors:S,warnings:C}}))}}});var O=lP(c);n.lastValidatePromise=O,O.catch(function(p){return p}).then(function(p){var m=p.map(function(g){var w=g.name;return w});n.notifyObservers(n.store,m,{type:"validateFinish"}),n.triggerOnFieldsChange(m,p)});var h=O.then(function(){return n.lastValidatePromise===O?Promise.resolve(n.getFieldsValue(s)):Promise.reject([])}).catch(function(p){var m=p.filter(function(g){return g&&g.errors.length});return Promise.reject({values:n.getFieldsValue(s),errorFields:m,outOfDate:n.lastValidatePromise!==O})});h.catch(function(p){return p});var y=s.filter(function(p){return f.has(p.join(u))});return n.triggerOnFieldsChange(y),h}),ae(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function nd(e){var t=v.useRef(),n=v.useState({}),r=ge(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new uP(i);t.current=a.getForm()}return[t.current]}var rd=v.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Tv=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=v.useContext(rd),l=v.useRef({});return v.createElement(rd.Provider,{value:se(se({},a),{},{validateMessages:se(se({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:l.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:l.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(l.current=se(se({},l.current),{},ae({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=se({},l.current);delete u[c],l.current=u,a.unregisterForm(c)}})},i)},dP=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],fP=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,b=d===void 0?"onChange":d,x=t.onValuesChange,O=t.onFieldsChange,h=t.onFinish,y=t.onFinishFailed,p=t.clearOnDestroy,m=st(t,dP),g=v.useRef(null),w=v.useContext(rd),E=nd(a),S=ge(E,1),C=S[0],T=C.getInternalHooks(So),M=T.useSubscribe,N=T.setInitialValues,R=T.setCallbacks,D=T.setValidateMessages,V=T.setPreserve,Z=T.destroyForm;v.useImperativeHandle(n,function(){return se(se({},C),{},{nativeElement:g.current})}),v.useEffect(function(){return w.registerForm(r,C),function(){w.unregisterForm(r)}},[w,C,r]),D(se(se({},w.validateMessages),f)),R({onValuesChange:x,onFieldsChange:function(X){if(w.triggerFormChange(r,X),O){for(var te=arguments.length,H=new Array(te>1?te-1:0),W=1;W<te;W++)H[W-1]=arguments[W];O.apply(void 0,[X].concat(H))}},onFinish:function(X){w.triggerFormFinish(r,X),h&&h(X)},onFinishFailed:y}),V(l);var J=v.useRef(null);N(o,!J.current),J.current||(J.current=!0),v.useEffect(function(){return function(){return Z(p)}},[]);var I,U=typeof s=="function";if(U){var K=C.getFieldsValue(!0);I=s(K,C)}else I=s;M(!U);var z=v.useRef();v.useEffect(function(){iP(z.current||[],i||[])||C.setFields(i||[]),z.current=i},[i,C]);var G=v.useMemo(function(){return se(se({},C),{},{validateTrigger:b})},[C,b]),L=v.createElement(ua.Provider,{value:null},v.createElement(Co.Provider,{value:G},I));return u===!1?L:v.createElement(u,$e({},m,{ref:g,onSubmit:function(X){X.preventDefault(),X.stopPropagation(),C.submit()},onReset:function(X){var te;X.preventDefault(),C.resetFields(),(te=m.onReset)===null||te===void 0||te.call(m,X)}}),L)};function Pv(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var pP=oe.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=A.useRef(t);gt(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function Rv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=o===void 0?{}:o,a=CT(i)?{form:i}:i,l=a.form,s=A.useState(),c=ge(s,2),u=c[0],f=c[1],d=A.useMemo(function(){return Pv(u)},[u]),b=A.useRef(d);b.current=d;var x=A.useContext(Co),O=l||x,h=O&&O._init;oe.env.NODE_ENV!=="production"&&gt(t.length===2?l?h:!0:h,"useWatch requires a form instance since it can not auto detect from context.");var y=Yt(r),p=A.useRef(y);return p.current=y,pP(y),A.useEffect(function(){if(h){var m=O.getFieldsValue,g=O.getInternalHooks,w=g(So),E=w.registerWatch,S=function(N,R){var D=a.preserve?R:N;return typeof r=="function"?r(D):mr(D,p.current)},C=E(function(M,N){var R=S(M,N),D=Pv(R);b.current!==D&&(b.current=D,f(R))}),T=S(m(),m(!0));return u!==T&&f(T),C}},[h]),u}var hP=v.forwardRef(fP),ai=hP;ai.FormProvider=Tv,ai.Field=ed,ai.List=Ov,ai.useForm=nd,ai.useWatch=Rv;const jr=v.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),jv=v.createContext(null),Mv=e=>{const t=Jn(e,["prefixCls"]);return v.createElement(Tv,Object.assign({},t))},od=v.createContext({prefixCls:""}),In=v.createContext({});oe.env.NODE_ENV!=="production"&&(In.displayName="FormItemInputContext");const mP=e=>{let{children:t,status:n,override:r}=e;const o=A.useContext(In),i=A.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return v.createElement(In.Provider,{value:i},t)},Iv=A.createContext(void 0),Ks=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=A.createElement(mP,{override:!0,status:!0},o)),t&&(o=A.createElement(A$,null,o)),o};function Xs(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Av(e){const{closable:t,closeIcon:n}=e||{};return A.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function Nv(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}const gP={};function kv(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gP;const r=Av(e),o=Av(t),i=A.useMemo(()=>Object.assign({closeIcon:A.createElement(fo,null)},n),[n]),a=A.useMemo(()=>r===!1?!1:r?Nv(i,o,r):o===!1?!1:o?Nv(i,o):i.closable?i:!1,[r,o,i]);return A.useMemo(()=>{if(a===!1)return[!1,null];const{closeIconRender:l}=i,{closeIcon:s}=a;let c=s;if(c!=null){l&&(c=l(s));const u=aa(a,!0);Object.keys(u).length&&(c=A.isValidElement(c)?A.cloneElement(c,u):A.createElement("span",Object.assign({},u),c))}return[!0,c]},[a,i])}const vP=()=>xn()&&window.document.documentElement,Ys=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=de({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=de({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),s=v.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return v.createElement("span",{className:de(t,a,l,n),style:Object.assign(Object.assign({},s),r)})},_P=new lt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Js=e=>({height:e,lineHeight:xe(e)}),si=e=>Object.assign({width:e},Js(e)),yP=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:_P,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),id=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Js(e)),bP=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},si(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},si(o)),[`${t}${t}-sm`]:Object.assign({},si(i))}},wP=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},id(t,l)),[`${r}-lg`]:Object.assign({},id(o,l)),[`${r}-sm`]:Object.assign({},id(i,l))}},Lv=e=>Object.assign({width:e},Js(e)),xP=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},Lv(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Lv(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ad=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},sd=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Js(e)),SP=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},sd(r,l))},ad(e,r,n)),{[`${n}-lg`]:Object.assign({},sd(o,l))}),ad(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},sd(i,l))}),ad(e,i,`${n}-sm`))},CP=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:s,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:d,marginSM:b,borderRadius:x,titleHeight:O,blockRadius:h,paragraphLiHeight:y,controlHeightXS:p,paragraphMarginTop:m}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:d,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},si(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},si(c)),[`${n}-sm`]:Object.assign({},si(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:O,background:f,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:h,"+ li":{marginBlockStart:p}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:x}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:b,[`+ ${o}`]:{marginBlockStart:m}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},SP(e)),bP(e)),wP(e)),xP(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
162
- ${r},
163
- ${o} > li,
164
- ${n},
165
- ${i},
166
- ${a},
167
- ${l}
168
- `]:Object.assign({},yP(e))}}},li=gn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Wt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[CP(r)]},e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),EP=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=v.useContext(Je),s=l("skeleton",t),[c,u,f]=li(s),d=Jn(e,["prefixCls","className"]),b=de(s,`${s}-element`,{[`${s}-active`]:o},n,r,u,f);return c(v.createElement("div",{className:b},v.createElement(Ys,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:a},d))))},OP=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=v.useContext(Je),s=l("skeleton",t),[c,u,f]=li(s),d=Jn(e,["prefixCls"]),b=de(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,f);return c(v.createElement("div",{className:b},v.createElement(Ys,Object.assign({prefixCls:`${s}-button`,size:a},d))))},$P="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",TP=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=v.useContext(Je),l=a("skeleton",t),[s,c,u]=li(l),f=de(l,`${l}-element`,{[`${l}-active`]:i},n,r,c,u);return s(v.createElement("div",{className:f},v.createElement("div",{className:de(`${l}-image`,n),style:o},v.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},v.createElement("title",null,"Image placeholder"),v.createElement("path",{d:$P,className:`${l}-image-path`})))))},PP=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=v.useContext(Je),s=l("skeleton",t),[c,u,f]=li(s),d=Jn(e,["prefixCls"]),b=de(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:i},n,r,u,f);return c(v.createElement("div",{className:b},v.createElement(Ys,Object.assign({prefixCls:`${s}-input`,size:a},d))))},RP=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=v.useContext(Je),s=l("skeleton",t),[c,u,f]=li(s),d=de(s,`${s}-element`,{[`${s}-active`]:i},u,n,r,f),b=a!=null?a:v.createElement(bh,null);return c(v.createElement("div",{className:d},v.createElement("div",{className:de(`${s}-image`,n),style:o},b)))},jP=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},MP=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Ee(Array(o)).map((a,l)=>v.createElement("li",{key:l,style:{width:jP(l,e)}}));return v.createElement("ul",{className:de(t,n),style:r},i)},IP=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return v.createElement("h3",{className:de(t,n),style:Object.assign({width:r},o)})};function ld(e){return e&&typeof e=="object"?e:{}}function AP(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function NP(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function kP(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Eo=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:s=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:d,direction:b,skeleton:x}=v.useContext(Je),O=d("skeleton",t),[h,y,p]=li(O);if(n||!("loading"in e)){const m=!!l,g=!!s,w=!!c;let E;if(m){const T=Object.assign(Object.assign({prefixCls:`${O}-avatar`},AP(g,w)),ld(l));E=v.createElement("div",{className:`${O}-header`},v.createElement(Ys,Object.assign({},T)))}let S;if(g||w){let T;if(g){const N=Object.assign(Object.assign({prefixCls:`${O}-title`},NP(m,w)),ld(s));T=v.createElement(IP,Object.assign({},N))}let M;if(w){const N=Object.assign(Object.assign({prefixCls:`${O}-paragraph`},kP(m,g)),ld(c));M=v.createElement(MP,Object.assign({},N))}S=v.createElement("div",{className:`${O}-content`},T,M)}const C=de(O,{[`${O}-with-avatar`]:m,[`${O}-active`]:u,[`${O}-rtl`]:b==="rtl",[`${O}-round`]:f},x==null?void 0:x.className,r,o,y,p);return h(v.createElement("div",{className:C,style:Object.assign(Object.assign({},x==null?void 0:x.style),i)},E,S))}return a!=null?a:null};Eo.Button=OP,Eo.Avatar=EP,Eo.Input=PP,Eo.Image=TP,Eo.Node=RP,oe.env.NODE_ENV!=="production"&&(Eo.displayName="Skeleton");function Fv(){}const LP=v.createContext({add:Fv,remove:Fv});function FP(e){const t=v.useContext(LP),n=v.useRef();return cn(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const Dv=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=A.useContext(ca);return A.createElement(gr,Object.assign({onClick:n},e),t)},Bv=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=A.useContext(ca);return A.createElement(gr,Object.assign({},Bg(n),{loading:e,onClick:o},t),r)};function zv(e,t){return A.createElement("span",{className:`${e}-close-x`},t||A.createElement(fo,{className:`${e}-close-icon`}))}const qv=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:s,footer:c}=e,[u]=$s("Modal",Sm()),f=t||(u==null?void 0:u.okText),d=r||(u==null?void 0:u.cancelText),b={confirmLoading:o,okButtonProps:l,cancelButtonProps:s,okTextLocale:f,cancelTextLocale:d,okType:n,onOk:i,onCancel:a},x=A.useMemo(()=>b,Ee(Object.values(b)));let O;return typeof c=="function"||typeof c=="undefined"?(O=A.createElement(A.Fragment,null,A.createElement(Dv,null),A.createElement(Bv,null)),typeof c=="function"&&(O=c(O,{OkBtn:Bv,CancelBtn:Dv})),O=A.createElement(Jg,{value:x},O)):O=c,A.createElement(du,{disabled:!1},O)},DP=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
169
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
170
- opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),BP=e=>({animationDuration:e,animationFillMode:"both"}),zP=e=>({animationDuration:e,animationFillMode:"both"}),cd=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
171
- ${i}${e}-enter,
172
- ${i}${e}-appear
173
- `]:Object.assign(Object.assign({},BP(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},zP(r)),{animationPlayState:"paused"}),[`
174
- ${i}${e}-enter${e}-enter-active,
175
- ${i}${e}-appear${e}-appear-active
176
- `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},qP=new lt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),VP=new lt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),HP=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[cd(r,qP,VP,e.motionDurationMid,t),{[`
177
- ${o}${r}-enter,
178
- ${o}${r}-appear
179
- `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},WP=new lt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),UP=new lt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),GP=new lt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),KP=new lt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),XP=new lt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),YP=new lt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),JP=new lt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),QP=new lt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ZP={"slide-up":{inKeyframes:WP,outKeyframes:UP},"slide-down":{inKeyframes:GP,outKeyframes:KP},"slide-left":{inKeyframes:XP,outKeyframes:YP},"slide-right":{inKeyframes:JP,outKeyframes:QP}},Vv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ZP[t];return[cd(r,o,i,e.motionDurationMid),{[`
180
- ${r}-enter,
181
- ${r}-appear
182
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},ud=new lt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),eR=new lt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Hv=new lt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Wv=new lt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),tR=new lt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),nR=new lt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),rR=new lt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),oR=new lt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),iR=new lt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),aR=new lt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),sR=new lt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),lR=new lt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),cR={zoom:{inKeyframes:ud,outKeyframes:eR},"zoom-big":{inKeyframes:Hv,outKeyframes:Wv},"zoom-big-fast":{inKeyframes:Hv,outKeyframes:Wv},"zoom-left":{inKeyframes:rR,outKeyframes:oR},"zoom-right":{inKeyframes:iR,outKeyframes:aR},"zoom-up":{inKeyframes:tR,outKeyframes:nR},"zoom-down":{inKeyframes:sR,outKeyframes:lR}},dd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=cR[t];return[cd(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
183
- ${r}-enter,
184
- ${r}-appear
185
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Uv(e){return{position:e,inset:0}}const uR=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Uv("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Uv("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:HP(e)}]},dR=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${xe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},En(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${xe(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:xe(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},oa(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${xe(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
186
- ${t}-body,
187
- ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},fR=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Gv=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Wt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Kv=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${xe(e.paddingMD)} ${xe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${xe(e.padding)} ${xe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${xe(e.paddingXS)} ${xe(e.padding)}`:0,footerBorderTop:e.wireframe?`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${xe(e.padding*2)} ${xe(e.padding*2)} ${xe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Xv=gn("Modal",e=>{const t=Gv(e);return[dR(t),fR(t),uR(t),dd(t,"zoom")]},Kv,{unitless:{titleLineHeight:!0}});var pR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let fd;const hR=e=>{fd={x:e.pageX,y:e.pageY},setTimeout(()=>{fd=null},100)};vP()&&document.documentElement.addEventListener("click",hR,!0);const Yv=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=v.useContext(Je),a=L=>{const{onCancel:F}=e;F==null||F(L)},l=L=>{const{onOk:F}=e;F==null||F(L)};if(oe.env.NODE_ENV!=="production"){const L=At("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(F=>{let[X,te]=F;L.deprecated(!(X in e),X,te)})}const{prefixCls:s,className:c,rootClassName:u,open:f,wrapClassName:d,centered:b,getContainer:x,focusTriggerAfterClose:O=!0,style:h,visible:y,width:p=520,footer:m,classNames:g,styles:w,children:E,loading:S}=e,C=pR(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),T=r("modal",s),M=r(),N=Rn(T),[R,D,V]=Xv(T,N),Z=de(d,{[`${T}-centered`]:!!b,[`${T}-wrap-rtl`]:o==="rtl"}),J=m!==null&&!S?v.createElement(qv,Object.assign({},e,{onOk:l,onCancel:a})):null,[I,U]=kv(Xs(e),Xs(i),{closable:!0,closeIcon:v.createElement(fo,{className:`${T}-close-icon`}),closeIconRender:L=>zv(T,L)}),K=FP(`.${T}-content`),[z,G]=Og("Modal",C.zIndex);return R(v.createElement(Ks,{form:!0,space:!0},v.createElement(Fs.Provider,{value:G},v.createElement(fv,Object.assign({width:p},C,{zIndex:z,getContainer:x===void 0?n:x,prefixCls:T,rootClassName:de(D,u,V,N),footer:J,visible:f!=null?f:y,mousePosition:(t=C.mousePosition)!==null&&t!==void 0?t:fd,onClose:a,closable:I,closeIcon:U,focusTriggerAfterClose:O,transitionName:wo(M,"zoom",e.transitionName),maskTransitionName:wo(M,"fade",e.maskTransitionName),className:de(D,c,i==null?void 0:i.className),style:Object.assign(Object.assign({},i==null?void 0:i.style),h),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),g),{wrapper:de(Z,g==null?void 0:g.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),w),panelRef:K}),S?v.createElement(Eo,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):E))))},mR=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:s,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},zm()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${xe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
188
- ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},gR=ei(["Modal","confirm"],e=>{const t=Gv(e);return[mR(t)]},Kv,{order:-1e3});var vR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Jv(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:s,locale:c}=e,u=vR(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(oe.env.NODE_ENV!=="production"){const S=At("Modal");oe.env.NODE_ENV!=="production"&&S(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let f=n;if(!n&&n!==null)switch(a){case"info":f=v.createElement(cs,null);break;case"success":f=v.createElement(Vi,null);break;case"error":f=v.createElement(Uo,null);break;default:f=v.createElement(Hi,null)}const d=l!=null?l:a==="confirm",b=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[x]=$s("Modal"),O=c||x,h=r||(d?O==null?void 0:O.okText:O==null?void 0:O.justOkText),y=o||(O==null?void 0:O.cancelText),p=Object.assign({autoFocusButton:b,cancelTextLocale:y,okTextLocale:h,mergedOkCancel:d},u),m=v.useMemo(()=>p,Ee(Object.values(p))),g=v.createElement(v.Fragment,null,v.createElement(Qg,null),v.createElement(Zg,null)),w=e.title!==void 0&&e.title!==null,E=`${i}-body`;return v.createElement("div",{className:`${i}-body-wrapper`},v.createElement("div",{className:de(E,{[`${E}-has-title`]:w})},f,v.createElement("div",{className:`${i}-paragraph`},w&&v.createElement("span",{className:`${i}-title`},e.title),v.createElement("div",{className:`${i}-content`},e.content))),s===void 0||typeof s=="function"?v.createElement(Jg,{value:m},v.createElement("div",{className:`${i}-btns`},typeof s=="function"?s(g,{OkBtn:Zg,CancelBtn:Qg}):g)):s,v.createElement(gR,{prefixCls:t}))}const Qv=e=>{const{close:t,zIndex:n,afterClose:r,open:o,keyboard:i,centered:a,getContainer:l,maskStyle:s,direction:c,prefixCls:u,wrapClassName:f,rootPrefixCls:d,bodyStyle:b,closable:x=!1,closeIcon:O,modalRender:h,focusTriggerAfterClose:y,onConfirm:p,styles:m}=e;if(oe.env.NODE_ENV!=="production"){const R=At("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(D=>{let[V,Z]=D;R.deprecated(!(V in e),V,Z)})}const g=`${u}-confirm`,w=e.width||416,E=e.style||{},S=e.mask===void 0?!0:e.mask,C=e.maskClosable===void 0?!1:e.maskClosable,T=de(g,`${g}-${e.type}`,{[`${g}-rtl`]:c==="rtl"},e.className),[,M]=nr(),N=v.useMemo(()=>n!==void 0?n:M.zIndexPopupBase+Ds,[n,M]);return v.createElement(Yv,{prefixCls:u,className:T,wrapClassName:de({[`${g}-centered`]:!!e.centered},f),onCancel:()=>{t==null||t({triggerCancel:!0}),p==null||p(!1)},open:o,title:"",footer:null,transitionName:wo(d||"","zoom",e.transitionName),maskTransitionName:wo(d||"","fade",e.maskTransitionName),mask:S,maskClosable:C,style:E,styles:Object.assign({body:b,mask:s},m),width:w,zIndex:N,afterClose:r,keyboard:i,centered:a,getContainer:l,closable:x,closeIcon:O,modalRender:h,focusTriggerAfterClose:y},v.createElement(Jv,Object.assign({},e,{confirmPrefixCls:g})))},pd=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return v.createElement(ir,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},v.createElement(Qv,Object.assign({},e)))};oe.env.NODE_ENV!=="production"&&(Qv.displayName="ConfirmDialog",pd.displayName="ConfirmDialogWrapper");const Oo=[];let Zv="";function e_(){return Zv}const _R=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Sm(),l=A.useContext(Je),s=e_()||l.getPrefixCls(),c=r||`${s}-modal`;let u=o;return u===!1&&(u=void 0,oe.env.NODE_ENV!=="production"&&oe.env.NODE_ENV!=="production"&&go(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),A.createElement(pd,Object.assign({},e,{rootPrefixCls:s,prefixCls:c,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:i!=null?i:l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function ha(e){const t=ia();oe.env.NODE_ENV!=="production"&&!t.holderRender&&Su("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o;function i(){for(var c,u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];if(f.some(O=>O==null?void 0:O.triggerCancel)){var x;(c=e.onCancel)===null||c===void 0||(x=c).call.apply(x,[e,()=>{}].concat(Ee(f.slice(1))))}for(let O=0;O<Oo.length;O++)if(Oo[O]===l){Oo.splice(O,1);break}Ig(n)}function a(c){clearTimeout(o),o=setTimeout(()=>{const u=t.getPrefixCls(void 0,e_()),f=t.getIconPrefixCls(),d=t.getTheme(),b=A.createElement(_R,Object.assign({},c));qs(A.createElement(ir,{prefixCls:u,iconPrefixCls:f,theme:d},t.holderRender?t.holderRender(b):b),n)})}function l(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,u)}}),r.visible&&delete r.visible,a(r)}function s(c){typeof c=="function"?r=c(r):r=Object.assign(Object.assign({},r),c),a(r)}return a(r),Oo.push(l),{destroy:l,update:s}}function t_(e){return Object.assign(Object.assign({},e),{type:"warning"})}function n_(e){return Object.assign(Object.assign({},e),{type:"info"})}function r_(e){return Object.assign(Object.assign({},e),{type:"success"})}function o_(e){return Object.assign(Object.assign({},e),{type:"error"})}function i_(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function yR(e){let{rootPrefixCls:t}=e;oe.env.NODE_ENV!=="production"&&go(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),Zv=t}var bR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wR=(e,t)=>{var n,{afterClose:r,config:o}=e,i=bR(e,["afterClose","config"]);const[a,l]=v.useState(!0),[s,c]=v.useState(o),{direction:u,getPrefixCls:f}=v.useContext(Je),d=f("modal"),b=f(),x=()=>{var p;r(),(p=s.afterClose)===null||p===void 0||p.call(s)},O=function(){var p;l(!1);for(var m=arguments.length,g=new Array(m),w=0;w<m;w++)g[w]=arguments[w];if(g.some(C=>C==null?void 0:C.triggerCancel)){var S;(p=s.onCancel)===null||p===void 0||(S=p).call.apply(S,[s,()=>{}].concat(Ee(g.slice(1))))}};v.useImperativeHandle(t,()=>({destroy:O,update:p=>{c(m=>Object.assign(Object.assign({},m),p))}}));const h=(n=s.okCancel)!==null&&n!==void 0?n:s.type==="confirm",[y]=$s("Modal",Gr.Modal);return v.createElement(pd,Object.assign({prefixCls:d,rootPrefixCls:b},s,{close:O,open:a,afterClose:x,okText:s.okText||(h?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:s.direction||u,cancelText:s.cancelText||(y==null?void 0:y.cancelText)},i))},xR=v.forwardRef(wR);let a_=0;const SR=v.memo(v.forwardRef((e,t)=>{const[n,r]=v$();return v.useImperativeHandle(t,()=>({patchElement:r}),[]),v.createElement(v.Fragment,null,n)}));function CR(){const e=v.useRef(null),[t,n]=v.useState([]);v.useEffect(()=>{t.length&&(Ee(t).forEach(a=>{a()}),n([]))},[t]);const r=v.useCallback(i=>function(l){var s;a_+=1;const c=v.createRef();let u;const f=new Promise(h=>{u=h});let d=!1,b;const x=v.createElement(xR,{key:`modal-${a_}`,config:i(l),ref:c,afterClose:()=>{b==null||b()},isSilent:()=>d,onConfirm:h=>{u(h)}});return b=(s=e.current)===null||s===void 0?void 0:s.patchElement(x),b&&Oo.push(b),{destroy:()=>{function h(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?h():n(y=>[].concat(Ee(y),[h]))},update:h=>{function y(){var p;(p=c.current)===null||p===void 0||p.update(h)}c.current?y():n(p=>[].concat(Ee(p),[y]))},then:h=>(d=!0,f.then(h))}},[]);return[v.useMemo(()=>({info:r(n_),success:r(r_),error:r(o_),warning:r(t_),confirm:r(i_)}),[]),v.createElement(SR,{key:"modal-holder",ref:e})]}const ER=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new lt("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new lt("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new lt("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new lt("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},OR=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],$R={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},TR=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[$R[t]]:{value:0,_skip_check_:!0}}}}},PR=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},RR=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},jR=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},PR(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},RR(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},OR.map(n=>TR(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},s_=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:d,notificationPadding:b,notificationMarginEdge:x,notificationProgressBg:O,notificationProgressHeight:h,fontSize:y,lineHeight:p,width:m,notificationIconSize:g,colorText:w}=e,E=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:d,borderRadius:a,boxShadow:r,[E]:{padding:b,width:m,maxWidth:`calc(100vw - ${xe(e.calc(x).mul(2).equal())})`,overflow:"hidden",lineHeight:p,wordWrap:"break-word"},[`${E}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${E}-description`]:{fontSize:y,color:w},[`${E}-closable ${E}-message`]:{paddingInlineEnd:e.paddingLG},[`${E}-with-icon ${E}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(g).equal(),fontSize:o},[`${E}-with-icon ${E}-description`]:{marginInlineStart:e.calc(e.marginSM).add(g).equal(),fontSize:y},[`${E}-icon`]:{position:"absolute",fontSize:g,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${E}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},oa(e)),[`${E}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${xe(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:h,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:O},"&::-webkit-progress-value":{borderRadius:a,background:O}},[`${E}-btn`]:{float:"right",marginTop:e.marginSM}}},MR=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new lt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},En(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},s_(e))}}]},l_=e=>({zIndexPopup:e.zIndexPopupBase+Ds+50,width:384}),c_=e=>{const t=e.paddingMD,n=e.paddingLG;return Wt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${xe(e.paddingMD)} ${xe(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},u_=gn("Notification",e=>{const t=c_(e);return[MR(t),ER(t),jR(t)]},l_),IR=ei(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=c_(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},s_(n)),{width:n.width,maxWidth:`calc(100vw - ${xe(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},l_);var AR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function hd(e,t){return t===null||t===!1?null:t||v.createElement(fo,{className:`${e}-close-icon`})}const NR={success:Vi,info:cs,error:Uo,warning:Hi},d_=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:l="alert"}=e;let s=null;return n?s=v.createElement("span",{className:`${t}-icon`},n):r&&(s=v.createElement(NR[r]||null,{className:de(`${t}-icon`,`${t}-icon-${r}`)})),v.createElement("div",{className:de({[`${t}-with-icon`]:s}),role:l},s,v.createElement("div",{className:`${t}-message`},o),v.createElement("div",{className:`${t}-description`},i),a&&v.createElement("div",{className:`${t}-btn`},a))},kR=e=>{const{prefixCls:t,className:n,icon:r,type:o,message:i,description:a,btn:l,closable:s=!0,closeIcon:c,className:u}=e,f=AR(e,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:d}=v.useContext(Je),b=t||d("notification"),x=`${b}-notice`,O=Rn(b),[h,y,p]=u_(b,O);return h(v.createElement("div",{className:de(`${x}-pure-panel`,y,n,p,O)},v.createElement(IR,{prefixCls:b}),v.createElement(Eu,Object.assign({},f,{prefixCls:b,eventKey:"pure",duration:null,closable:s,className:de({notificationClassName:u}),closeIcon:hd(b,c),content:v.createElement(d_,{prefixCls:x,icon:r,type:o,message:i,description:a,btn:l})}))))};function LR(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function FR(e){return{motionName:`${e}-fade`}}var DR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const f_=24,BR=4.5,zR="topRight",qR=e=>{let{children:t,prefixCls:n}=e;const r=Rn(n),[o,i,a]=u_(n,r);return o(A.createElement(vg,{classNames:{list:de(i,a,r)}},t))},VR=(e,t)=>{let{prefixCls:n,key:r}=t;return A.createElement(qR,{prefixCls:n,key:r},e)},HR=A.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:s,stack:c,duration:u,pauseOnHover:f=!0,showProgress:d}=e,{getPrefixCls:b,getPopupContainer:x,notification:O,direction:h}=A.useContext(Je),[,y]=nr(),p=o||b("notification"),m=C=>LR(C,n!=null?n:f_,r!=null?r:f_),g=()=>de({[`${p}-rtl`]:l!=null?l:h==="rtl"}),w=()=>FR(p),[E,S]=Cg({prefixCls:p,style:m,className:g,motion:w,closable:!0,closeIcon:hd(p),duration:u!=null?u:BR,getContainer:()=>(i==null?void 0:i())||(x==null?void 0:x())||document.body,maxCount:a,pauseOnHover:f,showProgress:d,onAllRemoved:s,renderNotifications:VR,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:y.margin}});return A.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:p,notification:O})),S});function p_(e){const t=A.useRef(null),n=At("Notification");return[A.useMemo(()=>{const o=s=>{var c;if(!t.current){oe.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:u,prefixCls:f,notification:d}=t.current,b=`${f}-notice`,{message:x,description:O,icon:h,type:y,btn:p,className:m,style:g,role:w="alert",closeIcon:E,closable:S}=s,C=DR(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),T=hd(b,typeof E!="undefined"?E:d==null?void 0:d.closeIcon);return u(Object.assign(Object.assign({placement:(c=e==null?void 0:e.placement)!==null&&c!==void 0?c:zR},C),{content:A.createElement(d_,{prefixCls:b,icon:h,type:y,message:x,description:O,btn:p,role:w}),className:de(y&&`${b}-${y}`,m,d==null?void 0:d.className),style:Object.assign(Object.assign({},d==null?void 0:d.style),g),closeIcon:T,closable:S!=null?S:!!T}))},a={open:o,destroy:s=>{var c,u;s!==void 0?(c=t.current)===null||c===void 0||c.close(s):(u=t.current)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=c=>o(Object.assign(Object.assign({},c),{type:s}))}),a},[]),A.createElement(HR,Object.assign({key:"notification-holder"},e,{ref:t}))]}function WR(e){return p_(e)}const h_=A.createContext({});function UR(e){return t=>v.createElement(ir,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(e,Object.assign({},t)))}const m_=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var GR=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ci=void 0;function KR(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,s=e.registerSize,c=e.itemKey,u=e.className,f=e.style,d=e.children,b=e.display,x=e.order,O=e.component,h=O===void 0?"div":O,y=st(e,GR),p=a&&!b;function m(C){s(c,C)}v.useEffect(function(){return function(){m(null)}},[]);var g=i&&o!==ci?i(o):d,w;r||(w={opacity:p?0:1,height:p?0:ci,overflowY:p?"hidden":ci,order:a?x:ci,pointerEvents:p?"none":ci,position:p?"absolute":ci});var E={};p&&(E["aria-hidden"]=!0);var S=v.createElement(h,$e({className:de(!r&&n,u),style:se(se({},w),f)},E,y,{ref:t}),g);return a&&(S=v.createElement(pr,{onResize:function(T){var M=T.offsetWidth;m(M)},disabled:l},S)),S}var ma=v.forwardRef(KR);ma.displayName="Item";function XR(e){if(typeof MessageChannel=="undefined")Ht(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function YR(){var e=v.useRef(null),t=function(r){e.current||(e.current=[],XR(function(){wr.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function ga(e,t){var n=v.useState(t),r=ge(n,2),o=r[0],i=r[1],a=cn(function(l){e(function(){i(l)})});return[o,a]}var Qs=A.createContext(null),JR=["component"],QR=["className"],ZR=["className"],ej=function(t,n){var r=v.useContext(Qs);if(!r){var o=t.component,i=o===void 0?"div":o,a=st(t,JR);return v.createElement(i,$e({},a,{ref:n}))}var l=r.className,s=st(r,QR),c=t.className,u=st(t,ZR);return v.createElement(Qs.Provider,{value:null},v.createElement(ma,$e({ref:n,className:de(l,c)},s,u)))},g_=v.forwardRef(ej);g_.displayName="RawItem";var tj=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],v_="responsive",__="invalidate";function nj(e){return"+ ".concat(e.length," ...")}function rj(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,s=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,d=e.style,b=e.className,x=e.maxCount,O=e.renderRest,h=e.renderRawRest,y=e.suffix,p=e.component,m=p===void 0?"div":p,g=e.itemComponent,w=e.onVisibleChange,E=st(e,tj),S=f==="full",C=YR(),T=ga(C,null),M=ge(T,2),N=M[0],R=M[1],D=N||0,V=ga(C,new Map),Z=ge(V,2),J=Z[0],I=Z[1],U=ga(C,0),K=ge(U,2),z=K[0],G=K[1],L=ga(C,0),F=ge(L,2),X=F[0],te=F[1],H=ga(C,0),W=ge(H,2),Q=W[0],ie=W[1],ce=A.useState(null),B=ge(ce,2),q=B[0],le=B[1],ne=A.useState(null),ve=ge(ne,2),me=ve[0],Ce=ve[1],Le=v.useMemo(function(){return me===null&&S?Number.MAX_SAFE_INTEGER:me||0},[me,N]),fe=A.useState(!1),Ne=ge(fe,2),Ie=Ne[0],Re=Ne[1],be="".concat(r,"-item"),Se=Math.max(z,X),Oe=x===v_,Te=i.length&&Oe,Ke=x===__,Xe=Te||typeof x=="number"&&i.length>x,tt=A.useMemo(function(){var De=i;return Te?N===null&&S?De=i:De=i.slice(0,Math.min(i.length,D/u)):typeof x=="number"&&(De=i.slice(0,x)),De},[i,u,N,x,Te]),_t=A.useMemo(function(){return Te?i.slice(Le+1):i.slice(tt.length)},[i,tt,Te,Le]),St=A.useCallback(function(De,k){var P;return typeof s=="function"?s(De):(P=s&&(De==null?void 0:De[s]))!==null&&P!==void 0?P:k},[s]),ht=A.useCallback(a||function(De){return De},[a]);function We(De,k,P){me===De&&(k===void 0||k===q)||(Ce(De),P||(Re(De<i.length-1),w==null||w(De)),k!==void 0&&le(k))}function Ae(De,k){R(k.clientWidth)}function ft(De,k){I(function(P){var j=new Map(P);return k===null?j.delete(De):j.set(De,k),j})}function dt(De,k){te(k),G(X)}function nt(De,k){ie(k)}function Nt(De){return J.get(St(tt[De],De))}nn(function(){if(D&&typeof Se=="number"&&tt){var De=Q,k=tt.length,P=k-1;if(!k){We(0,null);return}for(var j=0;j<k;j+=1){var Y=Nt(j);if(S&&(Y=Y||0),Y===void 0){We(j-1,void 0,!0);break}if(De+=Y,P===0&&De<=D||j===P-1&&De+Nt(P)<=D){We(P,null);break}else if(De+Se>D){We(j-1,De-Y-Q+X);break}}y&&Nt(0)+Q>D&&le(null)}},[D,J,X,Q,St,tt]);var Qt=Ie&&!!_t.length,an={};q!==null&&Te&&(an={position:"absolute",left:q,top:0});var Ct={prefixCls:be,responsive:Te,component:g,invalidate:Ke},kt=l?function(De,k){var P=St(De,k);return v.createElement(Qs.Provider,{key:P,value:se(se({},Ct),{},{order:k,item:De,itemKey:P,registerSize:ft,display:k<=Le})},l(De,k))}:function(De,k){var P=St(De,k);return v.createElement(ma,$e({},Ct,{order:k,key:P,item:De,renderItem:ht,itemKey:P,registerSize:ft,display:k<=Le}))},rt,pt={order:Qt?Le:Number.MAX_SAFE_INTEGER,className:"".concat(be,"-rest"),registerSize:dt,display:Qt};if(h)h&&(rt=v.createElement(Qs.Provider,{value:se(se({},Ct),pt)},h(_t)));else{var Lt=O||nj;rt=v.createElement(ma,$e({},Ct,pt),typeof Lt=="function"?Lt(_t):Lt)}var Ze=v.createElement(m,$e({className:de(!Ke&&r,b),style:d,ref:t},E),tt.map(kt),Xe?rt:null,y&&v.createElement(ma,$e({},Ct,{responsive:Oe,responsiveDisabled:!Te,order:Le,className:"".concat(be,"-suffix"),registerSize:nt,display:!0,style:an}),y));return Oe&&(Ze=v.createElement(pr,{onResize:Ae,disabled:!Te},Ze)),Ze}var Mr=v.forwardRef(rj);Mr.displayName="Overflow",Mr.Item=g_,Mr.RESPONSIVE=v_,Mr.INVALIDATE=__;function oj(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,s=o.x,c=s===void 0?0:s,u=o.y,f=u===void 0?0:u,d=v.useRef();if(!n||!n.points)return null;var b={position:"absolute"};if(n.autoArrow!==!1){var x=n.points[0],O=n.points[1],h=x[0],y=x[1],p=O[0],m=O[1];h===p||!["t","b"].includes(h)?b.top=f:h==="t"?b.top=0:b.bottom=0,y===m||!["l","r"].includes(y)?b.left=c:y==="l"?b.left=0:b.right=0}return v.createElement("div",{ref:d,className:de("".concat(t,"-arrow"),a),style:b},l)}function ij(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?v.createElement(or,$e({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return v.createElement("div",{style:{zIndex:r},className:de("".concat(t,"-mask"),l)})}):null}var y_=v.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});oe.env.NODE_ENV!=="production"&&(y_.displayName="PopupContent");var b_=v.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,s=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,b=e.arrow,x=e.arrowPos,O=e.align,h=e.motion,y=e.maskMotion,p=e.forceRender,m=e.getPopupContainer,g=e.autoDestroy,w=e.portal,E=e.zIndex,S=e.onMouseEnter,C=e.onMouseLeave,T=e.onPointerEnter,M=e.ready,N=e.offsetX,R=e.offsetY,D=e.offsetR,V=e.offsetB,Z=e.onAlign,J=e.onPrepare,I=e.stretch,U=e.targetWidth,K=e.targetHeight,z=typeof n=="function"?n():n,G=s||c,L=(m==null?void 0:m.length)>0,F=v.useState(!m||!L),X=ge(F,2),te=X[0],H=X[1];if(nn(function(){!te&&L&&a&&H(!0)},[te,L,a]),!te)return null;var W="auto",Q={left:"-1000vw",top:"-1000vh",right:W,bottom:W};if(M||!s){var ie,ce=O.points,B=O.dynamicInset||((ie=O._experimental)===null||ie===void 0?void 0:ie.dynamicInset),q=B&&ce[0][1]==="r",le=B&&ce[0][0]==="b";q?(Q.right=D,Q.left=W):(Q.left=N,Q.right=W),le?(Q.bottom=V,Q.top=W):(Q.top=R,Q.bottom=W)}var ne={};return I&&(I.includes("height")&&K?ne.height=K:I.includes("minHeight")&&K&&(ne.minHeight=K),I.includes("width")&&U?ne.width=U:I.includes("minWidth")&&U&&(ne.minWidth=U)),s||(ne.pointerEvents="none"),v.createElement(w,{open:p||G,getContainer:m&&function(){return m(a)},autoDestroy:g},v.createElement(ij,{prefixCls:o,open:s,zIndex:E,mask:d,motion:y}),v.createElement(pr,{onResize:Z,disabled:!s},function(ve){return v.createElement(or,$e({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(o,"-hidden")},h,{onAppearPrepare:J,onEnterPrepare:J,visible:s,onVisibleChanged:function(Ce){var Le;h==null||(Le=h.onVisibleChanged)===null||Le===void 0||Le.call(h,Ce),l(Ce)}}),function(me,Ce){var Le=me.className,fe=me.style,Ne=de(o,Le,r);return v.createElement("div",{ref:Yn(ve,t,Ce),className:Ne,style:se(se(se(se({"--arrow-x":"".concat(x.x||0,"px"),"--arrow-y":"".concat(x.y||0,"px")},Q),ne),fe),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:S,onMouseLeave:C,onPointerEnter:T,onClick:f},b&&v.createElement(oj,{prefixCls:o,arrow:b,arrowPos:x,align:O}),v.createElement(y_,{cache:!s&&!u},z))})}))});oe.env.NODE_ENV!=="production"&&(b_.displayName="Popup");var w_=v.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=qr(n),i=v.useCallback(function(l){qc(t,r?r(l):l)},[r]),a=Go(i,n.ref);return o?v.cloneElement(n,{ref:a}):n});oe.env.NODE_ENV!=="production"&&(w_.displayName="TriggerWrapper");var x_=v.createContext(null);function S_(e){return e?Array.isArray(e)?e:[e]:[]}function aj(e,t,n,r){return v.useMemo(function(){var o=S_(n!=null?n:t),i=S_(r!=null?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function sj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function lj(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(sj((l=e[s])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}function C_(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function va(e){return e.ownerDocument.defaultView}function md(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=va(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(s){return r.includes(s)})&&t.push(n),n=n.parentElement}return t}function _a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ya(e){return _a(parseFloat(e),0)}function E_(e,t){var n=se({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=va(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,s=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=r.getBoundingClientRect(),d=r.offsetHeight,b=r.clientHeight,x=r.offsetWidth,O=r.clientWidth,h=ya(l),y=ya(s),p=ya(c),m=ya(u),g=_a(Math.round(f.width/x*1e3)/1e3),w=_a(Math.round(f.height/d*1e3)/1e3),E=(x-O-p-m)*g,S=(d-b-h-y)*w,C=h*w,T=y*w,M=p*g,N=m*g,R=0,D=0;if(i==="clip"){var V=ya(a);R=V*g,D=V*w}var Z=f.x+M-R,J=f.y+C-D,I=Z+f.width+2*R-M-N-E,U=J+f.height+2*D-C-T-S;n.left=Math.max(n.left,Z),n.top=Math.max(n.top,J),n.right=Math.min(n.right,I),n.bottom=Math.min(n.bottom,U)}}),n}function O_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function $_(e,t){var n=t||[],r=ge(n,2),o=r[0],i=r[1];return[O_(e.width,o),O_(e.height,i)]}function T_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ui(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function Yr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function cj(e,t,n,r,o,i,a){var l=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),s=ge(l,2),c=s[0],u=s[1],f=v.useRef(0),d=v.useMemo(function(){return t?md(t):[]},[t]),b=v.useRef({}),x=function(){b.current={}};e||x();var O=cn(function(){if(t&&n&&e){let $n=function(Ja,Dr){var qo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se,nc=X.x+Ja,rc=X.y+Dr,Ip=nc+le,Ap=rc+q,ke=Math.max(nc,qo.left),Ye=Math.max(rc,qo.top),Dt=Math.min(Ip,qo.right),Zt=Math.min(Ap,qo.bottom);return Math.max(0,(Dt-ke)*(Zt-Ye))},Li=function(){Be=X.y+P,Fe=Be+q,Ve=X.x+k,Ge=Ve+le};var p,m,g,w,E=t,S=E.ownerDocument,C=va(E),T=C.getComputedStyle(E),M=T.width,N=T.height,R=T.position,D=E.style.left,V=E.style.top,Z=E.style.right,J=E.style.bottom,I=E.style.overflow,U=se(se({},o[r]),i),K=S.createElement("div");(p=E.parentElement)===null||p===void 0||p.appendChild(K),K.style.left="".concat(E.offsetLeft,"px"),K.style.top="".concat(E.offsetTop,"px"),K.style.position=R,K.style.height="".concat(E.offsetHeight,"px"),K.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var z;if(Array.isArray(n))z={x:n[0],y:n[1],width:0,height:0};else{var G,L,F=n.getBoundingClientRect();F.x=(G=F.x)!==null&&G!==void 0?G:F.left,F.y=(L=F.y)!==null&&L!==void 0?L:F.top,z={x:F.x,y:F.y,width:F.width,height:F.height}}var X=E.getBoundingClientRect();X.x=(m=X.x)!==null&&m!==void 0?m:X.left,X.y=(g=X.y)!==null&&g!==void 0?g:X.top;var te=S.documentElement,H=te.clientWidth,W=te.clientHeight,Q=te.scrollWidth,ie=te.scrollHeight,ce=te.scrollTop,B=te.scrollLeft,q=X.height,le=X.width,ne=z.height,ve=z.width,me={left:0,top:0,right:H,bottom:W},Ce={left:-B,top:-ce,right:Q-B,bottom:ie-ce},Le=U.htmlRegion,fe="visible",Ne="visibleFirst";Le!=="scroll"&&Le!==Ne&&(Le=fe);var Ie=Le===Ne,Re=E_(Ce,d),be=E_(me,d),Se=Le===fe?be:Re,Oe=Ie?be:Se;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var Te=E.getBoundingClientRect();E.style.left=D,E.style.top=V,E.style.right=Z,E.style.bottom=J,E.style.overflow=I,(w=E.parentElement)===null||w===void 0||w.removeChild(K);var Ke=_a(Math.round(le/parseFloat(M)*1e3)/1e3),Xe=_a(Math.round(q/parseFloat(N)*1e3)/1e3);if(Ke===0||Xe===0||Ui(n)&&!Vs(n))return;var tt=U.offset,_t=U.targetOffset,St=$_(X,tt),ht=ge(St,2),We=ht[0],Ae=ht[1],ft=$_(z,_t),dt=ge(ft,2),nt=dt[0],Nt=dt[1];z.x-=nt,z.y-=Nt;var Qt=U.points||[],an=ge(Qt,2),Ct=an[0],kt=an[1],rt=T_(kt),pt=T_(Ct),Lt=ui(z,rt),Ze=ui(X,pt),De=se({},U),k=Lt.x-Ze.x+We,P=Lt.y-Ze.y+Ae,j=$n(k,P),Y=$n(k,P,be),re=ui(z,["t","l"]),ue=ui(X,["t","l"]),_e=ui(z,["b","r"]),ze=ui(X,["b","r"]),ot=U.overflow||{},at=ot.adjustX,ee=ot.adjustY,pe=ot.shiftX,we=ot.shiftY,Pe=function(Dr){return typeof Dr=="boolean"?Dr:Dr>=0},Be,Fe,Ve,Ge;Li();var Tt=Pe(ee),yt=pt[0]===rt[0];if(Tt&&pt[0]==="t"&&(Fe>Oe.bottom||b.current.bt)){var et=P;yt?et-=q-ne:et=re.y-ze.y-Ae;var Gt=$n(k,et),On=$n(k,et,be);Gt>j||Gt===j&&(!Ie||On>=Y)?(b.current.bt=!0,P=et,Ae=-Ae,De.points=[Yr(pt,0),Yr(rt,0)]):b.current.bt=!1}if(Tt&&pt[0]==="b"&&(Be<Oe.top||b.current.tb)){var sn=P;yt?sn+=q-ne:sn=_e.y-ue.y-Ae;var Vt=$n(k,sn),Nr=$n(k,sn,be);Vt>j||Vt===j&&(!Ie||Nr>=Y)?(b.current.tb=!0,P=sn,Ae=-Ae,De.points=[Yr(pt,0),Yr(rt,0)]):b.current.tb=!1}var kr=Pe(at),Un=pt[1]===rt[1];if(kr&&pt[1]==="l"&&(Ge>Oe.right||b.current.rl)){var cr=k;Un?cr-=le-ve:cr=re.x-ze.x-We;var Ai=$n(cr,P),oo=$n(cr,P,be);Ai>j||Ai===j&&(!Ie||oo>=Y)?(b.current.rl=!0,k=cr,We=-We,De.points=[Yr(pt,1),Yr(rt,1)]):b.current.rl=!1}if(kr&&pt[1]==="r"&&(Ve<Oe.left||b.current.lr)){var ur=k;Un?ur+=le-ve:ur=_e.x-ue.x-We;var Do=$n(ur,P),Lr=$n(ur,P,be);Do>j||Do===j&&(!Ie||Lr>=Y)?(b.current.lr=!0,k=ur,We=-We,De.points=[Yr(pt,1),Yr(rt,1)]):b.current.lr=!1}Li();var Gn=pe===!0?0:pe;typeof Gn=="number"&&(Ve<be.left&&(k-=Ve-be.left-We,z.x+ve<be.left+Gn&&(k+=z.x-be.left+ve-Gn)),Ge>be.right&&(k-=Ge-be.right-We,z.x>be.right-Gn&&(k+=z.x-be.right+Gn)));var Nn=we===!0?0:we;typeof Nn=="number"&&(Be<be.top&&(P-=Be-be.top-Ae,z.y+ne<be.top+Nn&&(P+=z.y-be.top+ne-Nn)),Fe>be.bottom&&(P-=Fe-be.bottom-Ae,z.y>be.bottom-Nn&&(P+=z.y-be.bottom+Nn)));var io=X.x+k,Fr=io+le,Kn=X.y+P,Ka=Kn+q,Ni=z.x,Xa=Ni+ve,Bo=z.y,Mt=Bo+ne,mt=Math.max(io,Ni),Pt=Math.min(Fr,Xa),dn=(mt+Pt)/2,mn=dn-io,ao=Math.max(Kn,Bo),so=Math.min(Ka,Mt),Ya=(ao+so)/2,ki=Ya-Kn;a==null||a(t,De);var lo=Te.right-X.x-(k+X.width),bn=Te.bottom-X.y-(P+X.height);Ke===1&&(k=Math.round(k),lo=Math.round(lo)),Xe===1&&(P=Math.round(P),bn=Math.round(bn));var zo={ready:!0,offsetX:k/Ke,offsetY:P/Xe,offsetR:lo/Ke,offsetB:bn/Xe,arrowX:mn/Ke,arrowY:ki/Xe,scaleX:Ke,scaleY:Xe,align:De};u(zo)}}),h=function(){f.current+=1;var m=f.current;Promise.resolve().then(function(){f.current===m&&O()})},y=function(){u(function(m){return se(se({},m),{},{ready:!1})})};return nn(y,[r]),nn(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,h]}function uj(e,t,n,r,o){nn(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,l=md(i),s=md(a),c=va(a),u=new Set([c].concat(Ee(l),Ee(s)));return u.forEach(function(d){d.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(d){d.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function dj(e,t,n,r,o,i,a,l){var s=v.useRef(e);s.current=e,v.useEffect(function(){if(t&&r&&(!o||i)){var c=function(y){var p;s.current&&!a(((p=y.composedPath)===null||p===void 0||(p=p.call(y))===null||p===void 0?void 0:p[0])||y.target)&&l(!1)},u=va(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var f=ls(n);if(f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),oe.env.NODE_ENV!=="production"){var d,b,x=n==null||(d=n.getRootNode)===null||d===void 0?void 0:d.call(n),O=(b=r.getRootNode)===null||b===void 0?void 0:b.call(r);zr(x===O,"trigger element and popup element should in same shadow root.")}return function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,o,i])}var fj=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function pj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Us,t=v.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,s=l===void 0?"hover":l,c=n.showAction,u=n.hideAction,f=n.popupVisible,d=n.defaultPopupVisible,b=n.onPopupVisibleChange,x=n.afterPopupVisibleChange,O=n.mouseEnterDelay,h=n.mouseLeaveDelay,y=h===void 0?.1:h,p=n.focusDelay,m=n.blurDelay,g=n.mask,w=n.maskClosable,E=w===void 0?!0:w,S=n.getPopupContainer,C=n.forceRender,T=n.autoDestroy,M=n.destroyPopupOnHide,N=n.popup,R=n.popupClassName,D=n.popupStyle,V=n.popupPlacement,Z=n.builtinPlacements,J=Z===void 0?{}:Z,I=n.popupAlign,U=n.zIndex,K=n.stretch,z=n.getPopupClassNameFromAlign,G=n.fresh,L=n.alignPoint,F=n.onPopupClick,X=n.onPopupAlign,te=n.arrow,H=n.popupMotion,W=n.maskMotion,Q=n.popupTransitionName,ie=n.popupAnimation,ce=n.maskTransitionName,B=n.maskAnimation,q=n.className,le=n.getTriggerDOMNode,ne=st(n,fj),ve=T||M||!1,me=v.useState(!1),Ce=ge(me,2),Le=Ce[0],fe=Ce[1];nn(function(){fe(m_())},[]);var Ne=v.useRef({}),Ie=v.useContext(x_),Re=v.useMemo(function(){return{registerSubPopup:function(Ye,Dt){Ne.current[Ye]=Dt,Ie==null||Ie.registerSubPopup(Ye,Dt)}}},[Ie]),be=sv(),Se=v.useState(null),Oe=ge(Se,2),Te=Oe[0],Ke=Oe[1],Xe=v.useRef(null),tt=cn(function(ke){Xe.current=ke,Ui(ke)&&Te!==ke&&Ke(ke),Ie==null||Ie.registerSubPopup(be,ke)}),_t=v.useState(null),St=ge(_t,2),ht=St[0],We=St[1],Ae=v.useRef(null),ft=cn(function(ke){Ui(ke)&&ht!==ke&&(We(ke),Ae.current=ke)}),dt=v.Children.only(a),nt=(dt==null?void 0:dt.props)||{},Nt={},Qt=cn(function(ke){var Ye,Dt,Zt=ht;return(Zt==null?void 0:Zt.contains(ke))||((Ye=ls(Zt))===null||Ye===void 0?void 0:Ye.host)===ke||ke===Zt||(Te==null?void 0:Te.contains(ke))||((Dt=ls(Te))===null||Dt===void 0?void 0:Dt.host)===ke||ke===Te||Object.values(Ne.current).some(function(Kt){return(Kt==null?void 0:Kt.contains(ke))||ke===Kt})}),an=C_(i,H,ie,Q),Ct=C_(i,W,B,ce),kt=v.useState(d||!1),rt=ge(kt,2),pt=rt[0],Lt=rt[1],Ze=f!=null?f:pt,De=cn(function(ke){f===void 0&&Lt(ke)});nn(function(){Lt(f||!1)},[f]);var k=v.useRef(Ze);k.current=Ze;var P=v.useRef([]);P.current=[];var j=cn(function(ke){var Ye;De(ke),((Ye=P.current[P.current.length-1])!==null&&Ye!==void 0?Ye:Ze)!==ke&&(P.current.push(ke),b==null||b(ke))}),Y=v.useRef(),re=function(){clearTimeout(Y.current)},ue=function(Ye){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;re(),Dt===0?j(Ye):Y.current=setTimeout(function(){j(Ye)},Dt*1e3)};v.useEffect(function(){return re},[]);var _e=v.useState(!1),ze=ge(_e,2),ot=ze[0],at=ze[1];nn(function(ke){(!ke||Ze)&&at(!0)},[Ze]);var ee=v.useState(null),pe=ge(ee,2),we=pe[0],Pe=pe[1],Be=v.useState(null),Fe=ge(Be,2),Ve=Fe[0],Ge=Fe[1],Tt=function(Ye){Ge([Ye.clientX,Ye.clientY])},yt=cj(Ze,Te,L&&Ve!==null?Ve:ht,V,J,I,X),et=ge(yt,11),Gt=et[0],On=et[1],sn=et[2],Vt=et[3],Nr=et[4],kr=et[5],Un=et[6],cr=et[7],Ai=et[8],oo=et[9],ur=et[10],Do=aj(Le,s,c,u),Lr=ge(Do,2),Gn=Lr[0],Nn=Lr[1],io=Gn.has("click"),Fr=Nn.has("click")||Nn.has("contextMenu"),Kn=cn(function(){ot||ur()}),Ka=function(){k.current&&L&&Fr&&ue(!1)};uj(Ze,ht,Te,Kn,Ka),nn(function(){Kn()},[Ve,V]),nn(function(){Ze&&!(J!=null&&J[V])&&Kn()},[JSON.stringify(I)]);var Ni=v.useMemo(function(){var ke=lj(J,i,oo,L);return de(ke,z==null?void 0:z(oo))},[oo,z,J,i,L]);v.useImperativeHandle(r,function(){return{nativeElement:Ae.current,popupElement:Xe.current,forceAlign:Kn}});var Xa=v.useState(0),Bo=ge(Xa,2),Mt=Bo[0],mt=Bo[1],Pt=v.useState(0),dn=ge(Pt,2),mn=dn[0],ao=dn[1],so=function(){if(K&&ht){var Ye=ht.getBoundingClientRect();mt(Ye.width),ao(Ye.height)}},Ya=function(){so(),Kn()},ki=function(Ye){at(!1),ur(),x==null||x(Ye)},lo=function(){return new Promise(function(Ye){so(),Pe(function(){return Ye})})};nn(function(){we&&(ur(),we(),Pe(null))},[we]);function bn(ke,Ye,Dt,Zt){Nt[ke]=function(Kt){var oc;Zt==null||Zt(Kt),ue(Ye,Dt);for(var Np=arguments.length,wS=new Array(Np>1?Np-1:0),ic=1;ic<Np;ic++)wS[ic-1]=arguments[ic];(oc=nt[ke])===null||oc===void 0||oc.call.apply(oc,[nt,Kt].concat(wS))}}(io||Fr)&&(Nt.onClick=function(ke){var Ye;k.current&&Fr?ue(!1):!k.current&&io&&(Tt(ke),ue(!0));for(var Dt=arguments.length,Zt=new Array(Dt>1?Dt-1:0),Kt=1;Kt<Dt;Kt++)Zt[Kt-1]=arguments[Kt];(Ye=nt.onClick)===null||Ye===void 0||Ye.call.apply(Ye,[nt,ke].concat(Zt))}),dj(Ze,Fr,ht,Te,g,E,Qt,ue);var zo=Gn.has("hover"),$n=Nn.has("hover"),Li,Ja;zo&&(bn("onMouseEnter",!0,O,function(ke){Tt(ke)}),bn("onPointerEnter",!0,O,function(ke){Tt(ke)}),Li=function(Ye){(Ze||ot)&&Te!==null&&Te!==void 0&&Te.contains(Ye.target)&&ue(!0,O)},L&&(Nt.onMouseMove=function(ke){var Ye;(Ye=nt.onMouseMove)===null||Ye===void 0||Ye.call(nt,ke)})),$n&&(bn("onMouseLeave",!1,y),bn("onPointerLeave",!1,y),Ja=function(){ue(!1,y)}),Gn.has("focus")&&bn("onFocus",!0,p),Nn.has("focus")&&bn("onBlur",!1,m),Gn.has("contextMenu")&&(Nt.onContextMenu=function(ke){var Ye;k.current&&Nn.has("contextMenu")?ue(!1):(Tt(ke),ue(!0)),ke.preventDefault();for(var Dt=arguments.length,Zt=new Array(Dt>1?Dt-1:0),Kt=1;Kt<Dt;Kt++)Zt[Kt-1]=arguments[Kt];(Ye=nt.onContextMenu)===null||Ye===void 0||Ye.call.apply(Ye,[nt,ke].concat(Zt))}),q&&(Nt.className=de(nt.className,q));var Dr=se(se({},nt),Nt),qo={},nc=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];nc.forEach(function(ke){ne[ke]&&(qo[ke]=function(){for(var Ye,Dt=arguments.length,Zt=new Array(Dt),Kt=0;Kt<Dt;Kt++)Zt[Kt]=arguments[Kt];(Ye=Dr[ke])===null||Ye===void 0||Ye.call.apply(Ye,[Dr].concat(Zt)),ne[ke].apply(ne,Zt)})});var rc=v.cloneElement(dt,se(se({},Dr),qo)),Ip={x:kr,y:Un},Ap=te?se({},te!==!0?te:{}):null;return v.createElement(v.Fragment,null,v.createElement(pr,{disabled:!Ze,ref:ft,onResize:Ya},v.createElement(w_,{getTriggerDOMNode:le},rc)),v.createElement(x_.Provider,{value:Re},v.createElement(b_,{portal:e,ref:tt,prefixCls:i,popup:N,className:de(R,Ni),style:D,target:ht,onMouseEnter:Li,onMouseLeave:Ja,onPointerEnter:Li,zIndex:U,open:Ze,keepDom:ot,fresh:G,onClick:F,mask:g,motion:an,maskMotion:Ct,onVisibleChanged:ki,onPrepare:lo,forceRender:C,autoDestroy:ve,getPopupContainer:S,align:oo,arrow:Ap,arrowPos:Ip,ready:Gt,offsetX:On,offsetY:sn,offsetR:Vt,offsetB:Nr,onAlign:Kn,stretch:K,targetWidth:Mt/cr,targetHeight:mn/Ai})))});return oe.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const gd=pj(Us);function vd(e,t,n){return de({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const _d=(e,t)=>t||e,P_=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=A.useContext(Je),l=A.useContext(Iv),s=a==null?void 0:a.variant;let c;typeof t!="undefined"?c=t:n===!1?c="borderless":c=(o=(r=l!=null?l:s)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=LE.includes(c);return[c,u]},ba=["xxl","xl","lg","md","sm","xs"],hj=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),mj=e=>{const t=e,n=[].concat(ba).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const s=`screen${i}Max`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);const u=`screen${n[o+1].toUpperCase()}Min`;if(!(t[s]<=t[u]))throw new Error(`${s}<=${u} fails : !(${t[s]}<=${t[u]})`)}}),e};function gj(){const[,e]=nr(),t=hj(mj(e));return A.useMemo(()=>{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],l=this.matchHandlers[a];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],l=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},s=window.matchMedia(a);s.addListener(l),this.matchHandlers[a]={mql:s,listener:l},l(s)})},responsiveMap:t}},[e])}const Zs=e=>e?typeof e=="function"?e():e:null;function yd(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return v.createElement("div",{className:de("".concat(n,"-content"),i),style:a},v.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var di={shiftX:64,adjustY:1},fi={adjustX:1,shiftY:!0},Fn=[0,0],vj={left:{points:["cr","cl"],overflow:fi,offset:[-4,0],targetOffset:Fn},right:{points:["cl","cr"],overflow:fi,offset:[4,0],targetOffset:Fn},top:{points:["bc","tc"],overflow:di,offset:[0,-4],targetOffset:Fn},bottom:{points:["tc","bc"],overflow:di,offset:[0,4],targetOffset:Fn},topLeft:{points:["bl","tl"],overflow:di,offset:[0,-4],targetOffset:Fn},leftTop:{points:["tr","tl"],overflow:fi,offset:[-4,0],targetOffset:Fn},topRight:{points:["br","tr"],overflow:di,offset:[0,-4],targetOffset:Fn},rightTop:{points:["tl","tr"],overflow:fi,offset:[4,0],targetOffset:Fn},bottomRight:{points:["tr","br"],overflow:di,offset:[0,4],targetOffset:Fn},rightBottom:{points:["bl","br"],overflow:fi,offset:[4,0],targetOffset:Fn},bottomLeft:{points:["tl","bl"],overflow:di,offset:[0,4],targetOffset:Fn},leftBottom:{points:["br","bl"],overflow:fi,offset:[-4,0],targetOffset:Fn}},_j=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],yj=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,s=t.mouseLeaveDelay,c=s===void 0?.1:s,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,b=t.children,x=t.onVisibleChange,O=t.afterVisibleChange,h=t.transitionName,y=t.animation,p=t.motion,m=t.placement,g=m===void 0?"right":m,w=t.align,E=w===void 0?{}:w,S=t.destroyTooltipOnHide,C=S===void 0?!1:S,T=t.defaultVisible,M=t.getTooltipContainer,N=t.overlayInnerStyle;t.arrowContent;var R=t.overlay,D=t.id,V=t.showArrow,Z=V===void 0?!0:V,J=st(t,_j),I=A.useRef(null);A.useImperativeHandle(n,function(){return I.current});var U=se({},J);"visible"in t&&(U.popupVisible=t.visible);var K=function(){return v.createElement(yd,{key:"content",prefixCls:d,id:D,overlayInnerStyle:N},R)};return v.createElement(gd,$e({popupClassName:r,prefixCls:d,popup:K,action:i,builtinPlacements:vj,popupPlacement:g,ref:I,popupAlign:E,getPopupContainer:M,onPopupVisibleChange:x,afterPopupVisibleChange:O,popupTransitionName:h,popupAnimation:y,popupMotion:p,defaultPopupVisible:T,autoDestroy:C,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:l,arrow:Z},U),b)};const bj=A.forwardRef(yj);function R_(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=r*1/Math.sqrt(2),s=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,d=u,b=2*o-l,x=s,O=2*o-i,h=a,y=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),p=r*(Math.sqrt(2)-1),m=`polygon(${p}px 100%, 50% ${p}px, ${2*o-p}px 100%, ${p}px 100%)`,g=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${s} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${d} L ${b} ${x} A ${r} ${r} 0 0 0 ${O} ${h} Z')`;return{arrowShadowWidth:y,arrowPath:g,arrowPolygon:m}}const wj=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${xe(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},j_=8;function bd(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?j_:r}}function el(e,t){return e?t:{}}function M_(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},wj(e,t,o)),{"&:before":{background:t}})]},el(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${xe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),el(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${xe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),el(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),el(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function xj(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const I_={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Sj={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},Cj=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Ej(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={};return Object.keys(I_).forEach(c=>{const u=r&&Sj[c]||I_[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=f,Cj.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const d=bd({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-l;break}f.overflow=xj(c,d,t,n),a&&(f.htmlRegion="visibleFirst")}),s}const Oj=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:i,zIndexPopup:a,controlHeight:l,boxShadowSecondary:s,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:"1em",minHeight:l,padding:`${xe(e.calc(c).div(2).equal())} ${xe(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:i,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(i,j_)}},[`${t}-content`]:{position:"relative"}}),Rs(e,(f,d)=>{let{darkColor:b}=d;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:b},[`${t}-arrow`]:{"--antd-arrow-background-color":b}}}})),{"&-rtl":{direction:"rtl"}})},M_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},$j=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},bd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),R_(Wt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),A_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return gn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=Wt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[Oj(l),dd(r,"zoom-big-fast")]},$j,{resetStyle:!1,injectStyle:t})(e)},Tj=ra.map(e=>`${e}-inverse`),Pj=["success","processing","error","default","warning"];function tl(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ee(Tj),Ee(ra)).includes(e):ra.includes(e)}function Rj(e){return Pj.includes(e)}function N_(e,t){const n=tl(t),r=de({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const jj=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=v.useContext(Je),s=l("tooltip",t),[c,u,f]=A_(s),d=N_(s,i),b=d.arrowStyle,x=Object.assign(Object.assign({},a),d.overlayStyle),O=de(u,f,s,`${s}-pure`,`${s}-placement-${r}`,n,d.className);return c(v.createElement("div",{className:O,style:b},v.createElement("div",{className:`${s}-arrow`}),v.createElement(yd,Object.assign({},e,{className:u,prefixCls:s,overlayInnerStyle:x}),o)))};var Mj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Jr=v.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,overlayClassName:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:b,arrow:x=!0,title:O,overlay:h,builtinPlacements:y,arrowPointAtCenter:p=!1,autoAdjustOverflow:m=!0}=e,g=!!x,[,w]=nr(),{getPopupContainer:E,getPrefixCls:S,direction:C}=v.useContext(Je),T=At("Tooltip"),M=v.useRef(null),N=()=>{var be;(be=M.current)===null||be===void 0||be.forceAlign()};v.useImperativeHandle(t,()=>{var be;return{forceAlign:N,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:(be=M.current)===null||be===void 0?void 0:be.nativeElement}}),oe.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach(be=>{let[Se,Oe]=be;T.deprecated(!(Se in e),Se,Oe)}),oe.env.NODE_ENV!=="production"&&T(!b||typeof b=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),oe.env.NODE_ENV!=="production"&&T(!x||typeof x=="boolean"||!("arrowPointAtCenter"in x),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[R,D]=tr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),V=!O&&!h&&O!==0,Z=be=>{var Se,Oe;D(V?!1:be),V||((Se=e.onOpenChange)===null||Se===void 0||Se.call(e,be),(Oe=e.onVisibleChange)===null||Oe===void 0||Oe.call(e,be))},J=v.useMemo(()=>{var be,Se;let Oe=p;return typeof x=="object"&&(Oe=(Se=(be=x.pointAtCenter)!==null&&be!==void 0?be:x.arrowPointAtCenter)!==null&&Se!==void 0?Se:p),y||Ej({arrowPointAtCenter:Oe,autoAdjustOverflow:m,arrowWidth:g?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[p,x,y,w]),I=v.useMemo(()=>O===0?O:h||O||"",[h,O]),U=v.createElement(Ks,{space:!0},typeof I=="function"?I():I),{getPopupContainer:K,placement:z="top",mouseEnterDelay:G=.1,mouseLeaveDelay:L=.1,overlayStyle:F,rootClassName:X}=e,te=Mj(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),H=S("tooltip",o),W=S(),Q=e["data-popover-inject"];let ie=R;!("open"in e)&&!("visible"in e)&&V&&(ie=!1);const ce=v.isValidElement(u)&&!dg(u)?u:v.createElement("span",null,u),B=ce.props,q=!B.className||typeof B.className=="string"?de(B.className,i||`${H}-open`):B.className,[le,ne,ve]=A_(H,!Q),me=N_(H,s),Ce=me.arrowStyle,Le=Object.assign(Object.assign({},c),me.overlayStyle),fe=de(l,{[`${H}-rtl`]:C==="rtl"},me.className,X,ne,ve),[Ne,Ie]=Og("Tooltip",te.zIndex),Re=v.createElement(bj,Object.assign({},te,{zIndex:Ne,showArrow:g,placement:z,mouseEnterDelay:G,mouseLeaveDelay:L,prefixCls:H,overlayClassName:fe,overlayStyle:Object.assign(Object.assign({},Ce),F),getTooltipContainer:K||a||E,ref:M,builtinPlacements:J,overlay:U,visible:ie,onVisibleChange:Z,afterVisibleChange:f!=null?f:d,overlayInnerStyle:Le,arrowContent:v.createElement("span",{className:`${H}-arrow-content`}),motion:{motionName:wo(W,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!b}),ie?Pr(ce,{className:q}):ce);return le(v.createElement(Fs.Provider,{value:Ie},Re))});oe.env.NODE_ENV!=="production"&&(Jr.displayName="Tooltip"),Jr._InternalPanelDoNotUseOrYouWillBeFired=jj;const Ij=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:d,titleBorderBottom:b,innerContentPadding:x,titlePadding:O}=e;return[{[t]:Object.assign(Object.assign({},En(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:d,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:b,padding:O},[`${t}-inner-content`]:{color:n,padding:x}})},M_(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},Aj=e=>{const{componentCls:t}=e;return{[t]:ra.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},k_=gn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Wt(e,{popoverBg:t,popoverColor:n});return[Ij(r),Aj(r),dd(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:f}=e,d=n-r,b=d/2,x=d/2-t,O=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},R_(e)),bd({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${b}px ${O}px ${x}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${f}px ${O}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Nj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const L_=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:v.createElement(v.Fragment,null,t&&v.createElement("div",{className:`${r}-title`},t),n&&v.createElement("div",{className:`${r}-inner-content`},n))},kj=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:s}=e,c=Zs(a),u=Zs(l),f=de(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return v.createElement("div",{className:f,style:o},v.createElement("div",{className:`${n}-arrow`}),v.createElement(yd,Object.assign({},e,{className:t,prefixCls:n}),s||v.createElement(L_,{prefixCls:n,title:c,content:u})))},Lj=e=>{const{prefixCls:t,className:n}=e,r=Nj(e,["prefixCls","className"]),{getPrefixCls:o}=v.useContext(Je),i=o("popover",t),[a,l,s]=k_(i);return a(v.createElement(kj,Object.assign({},r,{prefixCls:i,hashId:l,className:de(n,s)})))};var Fj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wd=v.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:l,placement:s="top",trigger:c="hover",children:u,mouseEnterDelay:f=.1,mouseLeaveDelay:d=.1,onOpenChange:b,overlayStyle:x={}}=e,O=Fj(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle"]),{getPrefixCls:h}=v.useContext(Je),y=h("popover",o),[p,m,g]=k_(y),w=h(),E=de(l,m,g),[S,C]=tr(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),T=(V,Z)=>{C(V,!0),b==null||b(V,Z)},M=V=>{V.keyCode===je.ESC&&T(!1,V)},N=V=>{T(V)},R=Zs(i),D=Zs(a);return p(v.createElement(Jr,Object.assign({placement:s,trigger:c,mouseEnterDelay:f,mouseLeaveDelay:d,overlayStyle:x},O,{prefixCls:y,overlayClassName:E,ref:t,open:S,onOpenChange:N,overlay:R||D?v.createElement(L_,{prefixCls:y,title:R,content:D}):null,transitionName:wo(w,"zoom-big",O.transitionName),"data-popover-inject":!0}),Pr(u,{onKeyDown:V=>{var Z,J;v.isValidElement(u)&&((J=u==null?void 0:(Z=u.props).onKeyDown)===null||J===void 0||J.call(Z,V)),M(V)}})))});wd._InternalPanelDoNotUseOrYouWillBeFired=Lj,oe.env.NODE_ENV!=="production"&&(wd.displayName="Popover");const Dj=new lt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Bj=new lt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),zj=new lt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),qj=new lt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Vj=new lt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Hj=new lt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Wj=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:s,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:d,calc:b}=e,x=`${r}-scroll-number`,O=Rs(e,(h,y)=>{let{darkColor:p}=y;return{[`&${t} ${t}-color-${h}`]:{background:p,[`&:not(${t}-count)`]:{color:p},"a:hover &":{background:p}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:xe(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:b(u).div(2).equal(),boxShadow:`0 0 0 ${xe(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:a,lineHeight:xe(f),borderRadius:b(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${xe(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${xe(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${x}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:Hj,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Dj,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:d,color:e.colorText,fontSize:e.fontSize}}}),O),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Bj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:zj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:qj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Vj,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${x}-custom-component, ${t}-count`]:{transform:"none"},[`${x}-custom-component, ${x}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[x]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${x}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${x}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${x}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${x}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},F_=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,l=e.colorBgContainer,s=e.colorError,c=e.colorErrorHover;return Wt(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:l,badgeColor:s,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},D_=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},Uj=gn("Badge",e=>{const t=F_(e);return Wj(t)},D_),Gj=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=Rs(e,(c,u)=>{let{darkColor:f}=u;return{[`&${a}-color-${c}`]:{background:f,color:f}}});return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{position:"absolute",top:r,padding:`0 ${xe(e.paddingXS)}`,color:e.colorPrimary,lineHeight:xe(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.colorTextLightSolid},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${xe(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),s),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},Kj=gn(["Badge","Ribbon"],e=>{const t=F_(e);return Gj(t)},D_),B_=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:l="end",rootClassName:s}=e,{getPrefixCls:c,direction:u}=v.useContext(Je),f=c("ribbon",n),d=`${f}-wrapper`,[b,x,O]=Kj(f,d),h=tl(o,!1),y=de(f,`${f}-placement-${l}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:h},t),p={},m={};return o&&!h&&(p.background=o,m.color=o),b(v.createElement("div",{className:de(d,s,x,O)},i,v.createElement("div",{className:de(y,x),style:Object.assign(Object.assign({},p),r)},v.createElement("span",{className:`${f}-text`},a),v.createElement("div",{className:`${f}-corner`,style:m}))))};oe.env.NODE_ENV!=="production"&&(B_.displayName="Ribbon");const z_=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),v.createElement("span",{style:i,className:de(`${t}-only-unit`,{current:r})},n)};function Xj(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const Yj=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,l]=v.useState(o),[s,c]=v.useState(i),u=()=>{l(o),c(i)};v.useEffect(()=>{const b=setTimeout(u,1e3);return()=>clearTimeout(b)},[o]);let f,d;if(a===o||Number.isNaN(o)||Number.isNaN(a))f=[v.createElement(z_,Object.assign({},e,{key:o,current:!0}))],d={transition:"none"};else{f=[];const b=o+10,x=[];for(let y=o;y<=b;y+=1)x.push(y);const O=x.findIndex(y=>y%10===a);f=x.map((y,p)=>{const m=y%10;return v.createElement(z_,Object.assign({},e,{key:y,value:m,offset:p-O,current:p===O}))});const h=s<i?1:-1;d={transform:`translateY(${-Xj(a,o,h)}00%)`}}return v.createElement("span",{className:`${t}-only`,style:d,onTransitionEnd:u},f)};var Jj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Qj=v.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:l,show:s,component:c="sup",children:u}=e,f=Jj(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=v.useContext(Je),b=d("scroll-number",n),x=Object.assign(Object.assign({},f),{"data-show":s,style:a,className:de(b,o,i),title:l});let O=r;if(r&&Number(r)%1===0){const h=String(r).split("");O=v.createElement("bdi",null,h.map((y,p)=>v.createElement(Yj,{prefixCls:b,count:Number(r),value:y,key:h.length-p})))}return a!=null&&a.borderColor&&(x.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?Pr(u,h=>({className:de(`${b}-custom-component`,h==null?void 0:h.className,i)})):v.createElement(c,Object.assign({},x,{ref:t}),O)});var Zj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $o=v.forwardRef((e,t)=>{var n,r,o,i,a;const{prefixCls:l,scrollNumberPrefixCls:s,children:c,status:u,text:f,color:d,count:b=null,overflowCount:x=99,dot:O=!1,size:h="default",title:y,offset:p,style:m,className:g,rootClassName:w,classNames:E,styles:S,showZero:C=!1}=e,T=Zj(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:M,direction:N,badge:R}=v.useContext(Je),D=M("badge",l),[V,Z,J]=Uj(D),I=b>x?`${x}+`:b,U=I==="0"||I===0,K=b===null||U&&!C,z=(u!=null||d!=null)&&K,G=O&&!U,L=G?"":I,F=A.useMemo(()=>(L==null||L===""||U&&!C)&&!G,[L,U,C,G]),X=A.useRef(b);F||(X.current=b);const te=X.current,H=A.useRef(L);F||(H.current=L);const W=H.current,Q=A.useRef(G);F||(Q.current=G);const ie=A.useMemo(()=>{if(!p)return Object.assign(Object.assign({},R==null?void 0:R.style),m);const Ce={marginTop:p[1]};return N==="rtl"?Ce.left=parseInt(p[0],10):Ce.right=-parseInt(p[0],10),Object.assign(Object.assign(Object.assign({},Ce),R==null?void 0:R.style),m)},[N,p,m,R==null?void 0:R.style]),ce=y!=null?y:typeof te=="string"||typeof te=="number"?te:void 0,B=F||!f?null:v.createElement("span",{className:`${D}-status-text`},f),q=!te||typeof te!="object"?void 0:Pr(te,Ce=>({style:Object.assign(Object.assign({},ie),Ce.style)})),le=tl(d,!1),ne=de(E==null?void 0:E.indicator,(n=R==null?void 0:R.classNames)===null||n===void 0?void 0:n.indicator,{[`${D}-status-dot`]:z,[`${D}-status-${u}`]:!!u,[`${D}-color-${d}`]:le}),ve={};d&&!le&&(ve.color=d,ve.background=d);const me=de(D,{[`${D}-status`]:z,[`${D}-not-a-wrapper`]:!c,[`${D}-rtl`]:N==="rtl"},g,w,R==null?void 0:R.className,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.root,E==null?void 0:E.root,Z,J);if(!c&&z){const Ce=ie.color;return V(v.createElement("span",Object.assign({},T,{className:me,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.root),(o=R==null?void 0:R.styles)===null||o===void 0?void 0:o.root),ie)}),v.createElement("span",{className:ne,style:Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.indicator),ve)}),f&&v.createElement("span",{style:{color:Ce},className:`${D}-status-text`},f)))}return V(v.createElement("span",Object.assign({ref:t},T,{className:me,style:Object.assign(Object.assign({},(a=R==null?void 0:R.styles)===null||a===void 0?void 0:a.root),S==null?void 0:S.root)}),c,v.createElement(or,{visible:!F,motionName:`${D}-zoom`,motionAppear:!1,motionDeadline:1e3},Ce=>{let{className:Le}=Ce;var fe,Ne;const Ie=M("scroll-number",s),Re=Q.current,be=de(E==null?void 0:E.indicator,(fe=R==null?void 0:R.classNames)===null||fe===void 0?void 0:fe.indicator,{[`${D}-dot`]:Re,[`${D}-count`]:!Re,[`${D}-count-sm`]:h==="small",[`${D}-multiple-words`]:!Re&&W&&W.toString().length>1,[`${D}-status-${u}`]:!!u,[`${D}-color-${d}`]:le});let Se=Object.assign(Object.assign(Object.assign({},S==null?void 0:S.indicator),(Ne=R==null?void 0:R.styles)===null||Ne===void 0?void 0:Ne.indicator),ie);return d&&!le&&(Se=Se||{},Se.background=d),v.createElement(Qj,{prefixCls:Ie,show:!F,motionClassName:Le,className:be,count:W,title:ce,style:Se,key:"scrollNumber"},q)}),B))});$o.Ribbon=B_,oe.env.NODE_ENV!=="production"&&($o.displayName="Badge");var eM=je.ESC,tM=je.TAB;function nM(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=v.useRef(!1),l=function(){if(t){var f,d;(f=n.current)===null||f===void 0||(d=f.focus)===null||d===void 0||d.call(f),r==null||r(!1)}},s=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case eM:l();break;case tM:{var d=!1;a.current||(d=s()),d?f.preventDefault():l();break}}};v.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&Ht(s,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var rM=A.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=A.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Yn(t,i==null?void 0:i.ref);return A.createElement(A.Fragment,null,r&&A.createElement("div",{className:"".concat(o,"-arrow")}),A.cloneElement(i,{ref:qr(i)?a:void 0}))}),pi={adjustX:1,adjustY:1},hi=[0,0],oM={topLeft:{points:["bl","tl"],overflow:pi,offset:[0,-4],targetOffset:hi},top:{points:["bc","tc"],overflow:pi,offset:[0,-4],targetOffset:hi},topRight:{points:["br","tr"],overflow:pi,offset:[0,-4],targetOffset:hi},bottomLeft:{points:["tl","bl"],overflow:pi,offset:[0,4],targetOffset:hi},bottom:{points:["tc","bc"],overflow:pi,offset:[0,4],targetOffset:hi},bottomRight:{points:["tr","br"],overflow:pi,offset:[0,4],targetOffset:hi}},iM=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function aM(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,s=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,d=e.placements,b=d===void 0?oM:d,x=e.getPopupContainer,O=e.showAction,h=e.hideAction,y=e.overlayClassName,p=e.overlayStyle,m=e.visible,g=e.trigger,w=g===void 0?["hover"]:g,E=e.autoFocus,S=e.overlay,C=e.children,T=e.onVisibleChange,M=st(e,iM),N=A.useState(),R=ge(N,2),D=R[0],V=R[1],Z="visible"in e?m:D,J=A.useRef(null),I=A.useRef(null),U=A.useRef(null);A.useImperativeHandle(t,function(){return J.current});var K=function(Q){V(Q),T==null||T(Q)};nM({visible:Z,triggerRef:U,onVisibleChange:K,autoFocus:E,overlayRef:I});var z=function(Q){var ie=e.onOverlayClick;V(!1),ie&&ie(Q)},G=function(){return A.createElement(rM,{ref:I,overlay:S,prefixCls:a,arrow:o})},L=function(){return typeof S=="function"?G:G()},F=function(){var Q=e.minOverlayWidthMatchTrigger,ie=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Q:!ie},X=function(){var Q=e.openClassName;return Q!==void 0?Q:"".concat(a,"-open")},te=A.cloneElement(C,{className:de((n=C.props)===null||n===void 0?void 0:n.className,Z&&X()),ref:qr(C)?Yn(U,C.ref):void 0}),H=h;return!H&&w.indexOf("contextMenu")!==-1&&(H=["click"]),A.createElement(gd,$e({builtinPlacements:b},M,{prefixCls:a,ref:J,popupClassName:de(y,ae({},"".concat(a,"-show-arrow"),o)),popupStyle:p,action:w,showAction:O,hideAction:H,popupPlacement:f,popupAlign:c,popupTransitionName:l,popupAnimation:s,popupVisible:Z,stretch:F()?"minWidth":"",popup:L(),onPopupVisibleChange:K,onPopupClick:z,getPopupContainer:x}),te)}const sM=A.forwardRef(aM);var q_=v.createContext(null);function V_(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function H_(e){var t=v.useContext(q_);return V_(t,e)}var lM=["children","locked"],ar=v.createContext(null);function cM(e,t){var n=se({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function wa(e){var t=e.children,n=e.locked,r=st(e,lM),o=v.useContext(ar),i=fs(function(){return cM(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!Yi(a[1],l[1],!0))});return v.createElement(ar.Provider,{value:i},t)}var uM=[],W_=v.createContext(null);function nl(){return v.useContext(W_)}var U_=v.createContext(uM);function xa(e){var t=v.useContext(U_);return v.useMemo(function(){return e!==void 0?[].concat(Ee(t),[e]):t},[t,e])}var G_=v.createContext(null),xd=v.createContext({});function K_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Vs(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function dM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ee(e.querySelectorAll("*")).filter(function(r){return K_(r,t)});return K_(e,t)&&n.unshift(e),n}var Sd=je.LEFT,Cd=je.RIGHT,Ed=je.UP,rl=je.DOWN,ol=je.ENTER,X_=je.ESC,Sa=je.HOME,Ca=je.END,Y_=[Ed,rl,Sd,Cd];function fM(e,t,n,r){var o,i,a,l,s="prev",c="next",u="children",f="parent";if(e==="inline"&&r===ol)return{inlineTrigger:!0};var d=(o={},ae(o,Ed,s),ae(o,rl,c),o),b=(i={},ae(i,Sd,n?c:s),ae(i,Cd,n?s:c),ae(i,rl,u),ae(i,ol,u),i),x=(a={},ae(a,Ed,s),ae(a,rl,c),ae(a,ol,u),ae(a,X_,f),ae(a,Sd,n?u:f),ae(a,Cd,n?f:u),a),O={inline:d,horizontal:b,vertical:x,inlineSub:d,horizontalSub:x,verticalSub:x},h=(l=O["".concat(e).concat(t?"":"Sub")])===null||l===void 0?void 0:l[r];switch(h){case s:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case f:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}function pM(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function hM(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Od(e,t){var n=dM(e,!0);return n.filter(function(r){return t.has(r)})}function J_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=Od(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var $d=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(V_(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function mM(e,t,n,r,o,i,a,l,s,c){var u=v.useRef(),f=v.useRef();f.current=t;var d=function(){Ht.cancel(u.current)};return v.useEffect(function(){return function(){d()}},[]),function(b){var x=b.which;if([].concat(Y_,[ol,X_,Sa,Ca]).includes(x)){var O=i(),h=$d(O,r),y=h,p=y.elements,m=y.key2element,g=y.element2key,w=m.get(t),E=hM(w,p),S=g.get(E),C=fM(e,a(S,!0).length===1,n,x);if(!C&&x!==Sa&&x!==Ca)return;(Y_.includes(x)||[Sa,Ca].includes(x))&&b.preventDefault();var T=function(I){if(I){var U=I,K=I.querySelector("a");K!=null&&K.getAttribute("href")&&(U=K);var z=g.get(I);l(z),d(),u.current=Ht(function(){f.current===z&&U.focus()})}};if([Sa,Ca].includes(x)||C.sibling||!E){var M;!E||e==="inline"?M=o.current:M=pM(E);var N,R=Od(M,p);x===Sa?N=R[0]:x===Ca?N=R[R.length-1]:N=J_(M,p,E,C.offset),T(N)}else if(C.inlineTrigger)s(S);else if(C.offset>0)s(S,!0),d(),u.current=Ht(function(){h=$d(O,r);var J=E.getAttribute("aria-controls"),I=document.getElementById(J),U=J_(I,h.elements);T(U)},5);else if(C.offset<0){var D=a(S,!0),V=D[D.length-2],Z=m.get(V);s(V,!1),T(Z)}}c==null||c(b)}}function gM(e){Promise.resolve().then(e)}var Td="__RC_UTIL_PATH_SPLIT__",Q_=function(t){return t.join(Td)},vM=function(t){return t.split(Td)},Pd="rc-menu-more";function _M(){var e=v.useState({}),t=ge(e,2),n=t[1],r=A.useRef(new Map),o=A.useRef(new Map),i=v.useState([]),a=ge(i,2),l=a[0],s=a[1],c=A.useRef(0),u=A.useRef(!1),f=function(){u.current||n({})},d=A.useCallback(function(m,g){oe.env.NODE_ENV!=="production"&&gt(!r.current.has(m),"Duplicated key '".concat(m,"' used in Menu by path [").concat(g.join(" > "),"]"));var w=Q_(g);o.current.set(w,m),r.current.set(m,w),c.current+=1;var E=c.current;gM(function(){E===c.current&&f()})},[]),b=A.useCallback(function(m,g){var w=Q_(g);o.current.delete(w),r.current.delete(m)},[]),x=A.useCallback(function(m){s(m)},[]),O=A.useCallback(function(m,g){var w=r.current.get(m)||"",E=vM(w);return g&&l.includes(E[0])&&E.unshift(Pd),E},[l]),h=A.useCallback(function(m,g){return m.filter(function(w){return w!==void 0}).some(function(w){var E=O(w,!0);return E.includes(g)})},[O]),y=function(){var g=Ee(r.current.keys());return l.length&&g.push(Pd),g},p=A.useCallback(function(m){var g="".concat(r.current.get(m)).concat(Td),w=new Set;return Ee(o.current.keys()).forEach(function(E){E.startsWith(g)&&w.add(o.current.get(E))}),w},[]);return v.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:b,refreshOverflowKeys:x,isSubPathKey:h,getKeyPath:O,getKeys:y,getSubPathKeys:p}}function Ea(e){var t=v.useRef(e);t.current=e;var n=v.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var yM=Math.random().toFixed(5).toString().slice(2),Z_=0;function bM(e){var t=tr(e,{value:e}),n=ge(t,2),r=n[0],o=n[1];return v.useEffect(function(){Z_+=1;var i=oe.env.NODE_ENV==="test"?"test":"".concat(yM,"-").concat(Z_);o("rc-menu-uuid-".concat(i))},[]),r}function ey(e,t,n,r){var o=v.useContext(ar),i=o.activeKey,a=o.onActive,l=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(c){n==null||n({key:e,domEvent:c}),a(e)},s.onMouseLeave=function(c){r==null||r({key:e,domEvent:c}),l(e)}),s}function ty(e){var t=v.useContext(ar),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function ny(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=v.createElement(t,se({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var wM=["item"];function il(e){var t=e.item,n=st(e,wM);return Object.defineProperty(n,"item",{get:function(){return gt(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var xM=["title","attribute","elementRef"],SM=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],CM=["active"],EM=function(e){Vr(n,e);var t=Hr(n);function n(){return pn(this,n),t.apply(this,arguments)}return hn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,s=st(o,xM),c=Jn(s,["eventKey","popupClassName","popupOffset","onTitleClick"]);return gt(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(Mr.Item,$e({},a,{title:typeof i=="string"?i:void 0},c,{ref:l}))}}]),n}(v.Component),OM=v.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.eventKey,a=e.warnKey,l=e.disabled,s=e.itemIcon,c=e.children,u=e.role,f=e.onMouseEnter,d=e.onMouseLeave,b=e.onClick,x=e.onKeyDown,O=e.onFocus,h=st(e,SM),y=H_(i),p=v.useContext(ar),m=p.prefixCls,g=p.onItemClick,w=p.disabled,E=p.overflowDisabled,S=p.itemIcon,C=p.selectedKeys,T=p.onActive,M=v.useContext(xd),N=M._internalRenderMenuItem,R="".concat(m,"-item"),D=v.useRef(),V=v.useRef(),Z=w||l,J=Go(t,V),I=xa(i);oe.env.NODE_ENV!=="production"&&a&&gt(!1,"MenuItem should not leave undefined `key`.");var U=function(B){return{key:i,keyPath:Ee(I).reverse(),item:D.current,domEvent:B}},K=s||S,z=ey(i,Z,f,d),G=z.active,L=st(z,CM),F=C.includes(i),X=ty(I.length),te=function(B){if(!Z){var q=U(B);b==null||b(il(q)),g(q)}},H=function(B){if(x==null||x(B),B.which===je.ENTER){var q=U(B);b==null||b(il(q)),g(q)}},W=function(B){T(i),O==null||O(B)},Q={};e.role==="option"&&(Q["aria-selected"]=F);var ie=v.createElement(EM,$e({ref:D,elementRef:J,role:u===null?"none":u||"menuitem",tabIndex:l?null:-1,"data-menu-id":E&&y?null:y},h,L,Q,{component:"li","aria-disabled":l,style:se(se({},X),r),className:de(R,(n={},ae(n,"".concat(R,"-active"),G),ae(n,"".concat(R,"-selected"),F),ae(n,"".concat(R,"-disabled"),Z),n),o),onClick:te,onKeyDown:H,onFocus:W}),c,v.createElement(ny,{props:se(se({},e),{},{isSelected:F}),icon:K}));return N&&(ie=N(ie,e,{selected:F})),ie});function $M(e,t){var n=e.eventKey,r=nl(),o=xa(n);return v.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:v.createElement(OM,$e({},e,{ref:t}))}const al=v.forwardRef($M);var TM=["className","children"],PM=function(t,n){var r=t.className,o=t.children,i=st(t,TM),a=v.useContext(ar),l=a.prefixCls,s=a.mode,c=a.rtl;return v.createElement("ul",$e({className:de(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(s==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},Rd=v.forwardRef(PM);Rd.displayName="SubMenuList";function jd(e,t){return po(e).map(function(n,r){if(v.isValidElement(n)){var o,i,a=n.key,l=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,s=l==null;s&&(l="tmp_key-".concat([].concat(Ee(t),[r]).join("-")));var c={key:l,eventKey:l};return oe.env.NODE_ENV!=="production"&&s&&(c.warnKey=!0),v.cloneElement(n,c)}return n})}var vn={adjustX:1,adjustY:1},RM={topLeft:{points:["bl","tl"],overflow:vn},topRight:{points:["br","tr"],overflow:vn},bottomLeft:{points:["tl","bl"],overflow:vn},bottomRight:{points:["tr","br"],overflow:vn},leftTop:{points:["tr","tl"],overflow:vn},leftBottom:{points:["br","bl"],overflow:vn},rightTop:{points:["tl","tr"],overflow:vn},rightBottom:{points:["bl","br"],overflow:vn}},jM={topLeft:{points:["bl","tl"],overflow:vn},topRight:{points:["br","tr"],overflow:vn},bottomLeft:{points:["tl","bl"],overflow:vn},bottomRight:{points:["tr","br"],overflow:vn},rightTop:{points:["tr","tl"],overflow:vn},rightBottom:{points:["br","bl"],overflow:vn},leftTop:{points:["tl","tr"],overflow:vn},leftBottom:{points:["bl","br"],overflow:vn}};function ry(e,t,n){if(t)return t;if(n)return n[e]||n.other}var MM={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function IM(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,s=e.disabled,c=e.mode,u=e.onVisibleChange,f=v.useContext(ar),d=f.getPopupContainer,b=f.rtl,x=f.subMenuOpenDelay,O=f.subMenuCloseDelay,h=f.builtinPlacements,y=f.triggerSubMenuAction,p=f.forceSubMenuRender,m=f.rootClassName,g=f.motion,w=f.defaultMotions,E=v.useState(!1),S=ge(E,2),C=S[0],T=S[1],M=se(b?se({},jM):se({},RM),h),N=MM[c],R=ry(c,g,w),D=v.useRef(R);c!=="inline"&&(D.current=R);var V=se(se({},D.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Z=v.useRef();return v.useEffect(function(){return Z.current=Ht(function(){T(n)}),function(){Ht.cancel(Z.current)}},[n]),v.createElement(gd,{prefixCls:t,popupClassName:de("".concat(t,"-popup"),ae({},"".concat(t,"-rtl"),b),a,m),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:d,builtinPlacements:M,popupPlacement:N,popupVisible:C,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:s?[]:[y],mouseEnterDelay:x,mouseLeaveDelay:O,onPopupVisibleChange:u,forceRender:p,popupMotion:V,fresh:!0},r)}function AM(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=v.useContext(ar),l=a.prefixCls,s=a.forceSubMenuRender,c=a.motion,u=a.defaultMotions,f=a.mode,d=v.useRef(!1);d.current=f===i;var b=v.useState(!d.current),x=ge(b,2),O=x[0],h=x[1],y=d.current?n:!1;v.useEffect(function(){d.current&&h(!1)},[f]);var p=se({},ry(i,c,u));r.length>1&&(p.motionAppear=!1);var m=p.onVisibleChanged;return p.onVisibleChanged=function(g){return!d.current&&!g&&h(!0),m==null?void 0:m(g)},O?null:v.createElement(wa,{mode:i,locked:!d.current},v.createElement(or,$e({visible:y},p,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(g){var w=g.className,E=g.style;return v.createElement(Rd,{id:t,className:w,style:E},o)}))}var NM=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],kM=["active"],LM=v.forwardRef(function(e,t){var n,r=e.style,o=e.className,i=e.title,a=e.eventKey,l=e.warnKey,s=e.disabled,c=e.internalPopupClose,u=e.children,f=e.itemIcon,d=e.expandIcon,b=e.popupClassName,x=e.popupOffset,O=e.popupStyle,h=e.onClick,y=e.onMouseEnter,p=e.onMouseLeave,m=e.onTitleClick,g=e.onTitleMouseEnter,w=e.onTitleMouseLeave,E=st(e,NM),S=H_(a),C=v.useContext(ar),T=C.prefixCls,M=C.mode,N=C.openKeys,R=C.disabled,D=C.overflowDisabled,V=C.activeKey,Z=C.selectedKeys,J=C.itemIcon,I=C.expandIcon,U=C.onItemClick,K=C.onOpenChange,z=C.onActive,G=v.useContext(xd),L=G._internalRenderSubMenuItem,F=v.useContext(G_),X=F.isSubPathKey,te=xa(),H="".concat(T,"-submenu"),W=R||s,Q=v.useRef(),ie=v.useRef();oe.env.NODE_ENV!=="production"&&l&&gt(!1,"SubMenu should not leave undefined `key`.");var ce=f!=null?f:J,B=d!=null?d:I,q=N.includes(a),le=!D&&q,ne=X(Z,a),ve=ey(a,W,g,w),me=ve.active,Ce=st(ve,kM),Le=v.useState(!1),fe=ge(Le,2),Ne=fe[0],Ie=fe[1],Re=function(nt){W||Ie(nt)},be=function(nt){Re(!0),y==null||y({key:a,domEvent:nt})},Se=function(nt){Re(!1),p==null||p({key:a,domEvent:nt})},Oe=v.useMemo(function(){return me||(M!=="inline"?Ne||X([V],a):!1)},[M,me,V,Ne,a,X]),Te=ty(te.length),Ke=function(nt){W||(m==null||m({key:a,domEvent:nt}),M==="inline"&&K(a,!q))},Xe=Ea(function(dt){h==null||h(il(dt)),U(dt)}),tt=function(nt){M!=="inline"&&K(a,nt)},_t=function(){z(a)},St=S&&"".concat(S,"-popup"),ht=v.createElement("div",$e({role:"menuitem",style:Te,className:"".concat(H,"-title"),tabIndex:W?null:-1,ref:Q,title:typeof i=="string"?i:null,"data-menu-id":D&&S?null:S,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":St,"aria-disabled":W,onClick:Ke,onFocus:_t},Ce),i,v.createElement(ny,{icon:M!=="horizontal"?B:void 0,props:se(se({},e),{},{isOpen:le,isSubMenu:!0})},v.createElement("i",{className:"".concat(H,"-arrow")}))),We=v.useRef(M);if(M!=="inline"&&te.length>1?We.current="vertical":We.current=M,!D){var Ae=We.current;ht=v.createElement(IM,{mode:Ae,prefixCls:H,visible:!c&&le&&M!=="inline",popupClassName:b,popupOffset:x,popupStyle:O,popup:v.createElement(wa,{mode:Ae==="horizontal"?"vertical":Ae},v.createElement(Rd,{id:St,ref:ie},u)),disabled:W,onVisibleChange:tt},ht)}var ft=v.createElement(Mr.Item,$e({ref:t,role:"none"},E,{component:"li",style:r,className:de(H,"".concat(H,"-").concat(M),o,(n={},ae(n,"".concat(H,"-open"),le),ae(n,"".concat(H,"-active"),Oe),ae(n,"".concat(H,"-selected"),ne),ae(n,"".concat(H,"-disabled"),W),n)),onMouseEnter:be,onMouseLeave:Se}),ht,!D&&v.createElement(AM,{id:St,open:le,keyPath:te},u));return L&&(ft=L(ft,e,{selected:ne,active:Oe,open:le,disabled:W})),v.createElement(wa,{onItemClick:Xe,mode:M==="horizontal"?"vertical":M,itemIcon:ce,expandIcon:B},ft)}),sl=v.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=xa(n),i=jd(r,o),a=nl();v.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var l;return a?l=i:l=v.createElement(LM,$e({ref:t},e),i),v.createElement(U_.Provider,{value:o},l)});oe.env.NODE_ENV!=="production"&&(sl.displayName="SubMenu");function oy(e){var t=e.className,n=e.style,r=v.useContext(ar),o=r.prefixCls,i=nl();return i?null:v.createElement("li",{role:"separator",className:de("".concat(o,"-item-divider"),t),style:n})}var FM=["className","title","eventKey","children"],DM=v.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=st(e,FM),a=v.useContext(ar),l=a.prefixCls,s="".concat(l,"-item-group");return v.createElement("li",$e({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:de(s,n)}),v.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:typeof r=="string"?r:void 0},r),v.createElement("ul",{role:"group",className:"".concat(s,"-list")},o))}),Md=v.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=xa(n),i=jd(r,o),a=nl();return a?i:v.createElement(DM,$e({ref:t},Jn(e,["warnKey"])),i)});oe.env.NODE_ENV!=="production"&&(Md.displayName="MenuItemGroup");var BM=["label","children","key","type"];function Id(e,t){var n=t.item,r=t.group,o=t.submenu,i=t.divider;return(e||[]).map(function(a,l){if(a&&qe(a)==="object"){var s=a,c=s.label,u=s.children,f=s.key,d=s.type,b=st(s,BM),x=f!=null?f:"tmp-".concat(l);return u||d==="group"?d==="group"?v.createElement(r,$e({key:x},b,{title:c}),Id(u,t)):v.createElement(o,$e({key:x},b,{title:c}),Id(u,t)):d==="divider"?v.createElement(i,$e({key:x},b)):v.createElement(n,$e({key:x},b),c)}return null}).filter(function(a){return a})}function iy(e,t,n,r){var o=e,i=se({divider:oy,item:al,group:Md,submenu:sl},r);return t&&(o=Id(t,i)),jd(o,n)}var zM=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],To=[],qM=v.forwardRef(function(e,t){var n,r,o=e,i=o.prefixCls,a=i===void 0?"rc-menu":i,l=o.rootClassName,s=o.style,c=o.className,u=o.tabIndex,f=u===void 0?0:u,d=o.items,b=o.children,x=o.direction,O=o.id,h=o.mode,y=h===void 0?"vertical":h,p=o.inlineCollapsed,m=o.disabled,g=o.disabledOverflow,w=o.subMenuOpenDelay,E=w===void 0?.1:w,S=o.subMenuCloseDelay,C=S===void 0?.1:S,T=o.forceSubMenuRender,M=o.defaultOpenKeys,N=o.openKeys,R=o.activeKey,D=o.defaultActiveFirst,V=o.selectable,Z=V===void 0?!0:V,J=o.multiple,I=J===void 0?!1:J,U=o.defaultSelectedKeys,K=o.selectedKeys,z=o.onSelect,G=o.onDeselect,L=o.inlineIndent,F=L===void 0?24:L,X=o.motion,te=o.defaultMotions,H=o.triggerSubMenuAction,W=H===void 0?"hover":H,Q=o.builtinPlacements,ie=o.itemIcon,ce=o.expandIcon,B=o.overflowedIndicator,q=B===void 0?"...":B,le=o.overflowedIndicatorPopupClassName,ne=o.getPopupContainer,ve=o.onClick,me=o.onOpenChange,Ce=o.onKeyDown,Le=o.openAnimation,fe=o.openTransitionName,Ne=o._internalRenderMenuItem,Ie=o._internalRenderSubMenuItem,Re=o._internalComponents,be=st(o,zM),Se=v.useMemo(function(){return[iy(b,d,To,Re),iy(b,d,To,{})]},[b,d,Re]),Oe=ge(Se,2),Te=Oe[0],Ke=Oe[1],Xe=v.useState(!1),tt=ge(Xe,2),_t=tt[0],St=tt[1],ht=v.useRef(),We=bM(O),Ae=x==="rtl";oe.env.NODE_ENV!=="production"&&gt(!Le&&!fe,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var ft=tr(M,{value:N,postState:function(mt){return mt||To}}),dt=ge(ft,2),nt=dt[0],Nt=dt[1],Qt=function(mt){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function dn(){Nt(mt),me==null||me(mt)}Pt?wr.flushSync(dn):dn()},an=v.useState(nt),Ct=ge(an,2),kt=Ct[0],rt=Ct[1],pt=v.useRef(!1),Lt=v.useMemo(function(){return(y==="inline"||y==="vertical")&&p?["vertical",p]:[y,!1]},[y,p]),Ze=ge(Lt,2),De=Ze[0],k=Ze[1],P=De==="inline",j=v.useState(De),Y=ge(j,2),re=Y[0],ue=Y[1],_e=v.useState(k),ze=ge(_e,2),ot=ze[0],at=ze[1];v.useEffect(function(){ue(De),at(k),pt.current&&(P?Nt(kt):Qt(To))},[De,k]);var ee=v.useState(0),pe=ge(ee,2),we=pe[0],Pe=pe[1],Be=we>=Te.length-1||re!=="horizontal"||g;v.useEffect(function(){P&&rt(nt)},[nt]),v.useEffect(function(){return pt.current=!0,function(){pt.current=!1}},[]);var Fe=_M(),Ve=Fe.registerPath,Ge=Fe.unregisterPath,Tt=Fe.refreshOverflowKeys,yt=Fe.isSubPathKey,et=Fe.getKeyPath,Gt=Fe.getKeys,On=Fe.getSubPathKeys,sn=v.useMemo(function(){return{registerPath:Ve,unregisterPath:Ge}},[Ve,Ge]),Vt=v.useMemo(function(){return{isSubPathKey:yt}},[yt]);v.useEffect(function(){Tt(Be?To:Te.slice(we+1).map(function(Mt){return Mt.key}))},[we,Be]);var Nr=tr(R||D&&((n=Te[0])===null||n===void 0?void 0:n.key),{value:R}),kr=ge(Nr,2),Un=kr[0],cr=kr[1],Ai=Ea(function(Mt){cr(Mt)}),oo=Ea(function(){cr(void 0)});A.useImperativeHandle(t,function(){return{list:ht.current,focus:function(mt){var Pt,dn=Gt(),mn=$d(dn,We),ao=mn.elements,so=mn.key2element,Ya=mn.element2key,ki=Od(ht.current,ao),lo=Un!=null?Un:ki[0]?Ya.get(ki[0]):(Pt=Te.find(function($n){return!$n.props.disabled}))===null||Pt===void 0?void 0:Pt.key,bn=so.get(lo);if(lo&&bn){var zo;bn==null||(zo=bn.focus)===null||zo===void 0||zo.call(bn,mt)}}}});var ur=tr(U||[],{value:K,postState:function(mt){return Array.isArray(mt)?mt:mt==null?To:[mt]}}),Do=ge(ur,2),Lr=Do[0],Gn=Do[1],Nn=function(mt){if(Z){var Pt=mt.key,dn=Lr.includes(Pt),mn;I?dn?mn=Lr.filter(function(so){return so!==Pt}):mn=[].concat(Ee(Lr),[Pt]):mn=[Pt],Gn(mn);var ao=se(se({},mt),{},{selectedKeys:mn});dn?G==null||G(ao):z==null||z(ao)}!I&&nt.length&&re!=="inline"&&Qt(To)},io=Ea(function(Mt){ve==null||ve(il(Mt)),Nn(Mt)}),Fr=Ea(function(Mt,mt){var Pt=nt.filter(function(mn){return mn!==Mt});if(mt)Pt.push(Mt);else if(re!=="inline"){var dn=On(Mt);Pt=Pt.filter(function(mn){return!dn.has(mn)})}Yi(nt,Pt,!0)||Qt(Pt,!0)}),Kn=function(mt,Pt){var dn=Pt!=null?Pt:!nt.includes(mt);Fr(mt,dn)},Ka=mM(re,Un,Ae,We,ht,Gt,et,cr,Kn,Ce);v.useEffect(function(){St(!0)},[]);var Ni=v.useMemo(function(){return{_internalRenderMenuItem:Ne,_internalRenderSubMenuItem:Ie}},[Ne,Ie]),Xa=re!=="horizontal"||g?Te:Te.map(function(Mt,mt){return v.createElement(wa,{key:Mt.key,overflowDisabled:mt>we},Mt)}),Bo=v.createElement(Mr,$e({id:O,ref:ht,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:al,className:de(a,"".concat(a,"-root"),"".concat(a,"-").concat(re),c,(r={},ae(r,"".concat(a,"-inline-collapsed"),ot),ae(r,"".concat(a,"-rtl"),Ae),r),l),dir:x,style:s,role:"menu",tabIndex:f,data:Xa,renderRawItem:function(mt){return mt},renderRawRest:function(mt){var Pt=mt.length,dn=Pt?Te.slice(-Pt):null;return v.createElement(sl,{eventKey:Pd,title:q,disabled:Be,internalPopupClose:Pt===0,popupClassName:le},dn)},maxCount:re!=="horizontal"||g?Mr.INVALIDATE:Mr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(mt){Pe(mt)},onKeyDown:Ka},be));return v.createElement(xd.Provider,{value:Ni},v.createElement(q_.Provider,{value:We},v.createElement(wa,{prefixCls:a,rootClassName:l,mode:re,openKeys:nt,rtl:Ae,disabled:m,motion:_t?X:null,defaultMotions:_t?te:null,activeKey:Un,onActive:Ai,onInactive:oo,selectedKeys:Lr,inlineIndent:F,subMenuOpenDelay:E,subMenuCloseDelay:C,forceSubMenuRender:T,builtinPlacements:Q,triggerSubMenuAction:W,getPopupContainer:ne,itemIcon:ie,expandIcon:ce,onItemClick:io,onOpenChange:Fr},v.createElement(G_.Provider,{value:Vt},Bo),v.createElement("div",{style:{display:"none"},"aria-hidden":!0},v.createElement(W_.Provider,{value:sn},Ke)))))}),Oa=qM;Oa.Item=al,Oa.SubMenu=sl,Oa.ItemGroup=Md,Oa.Divider=oy;function ay(e){return Wt(e,{inputAffixPadding:e.paddingXXS})}const sy=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:b,colorPrimary:x,controlOutlineWidth:O,controlOutline:h,colorErrorOutline:y,colorWarningOutline:p,colorBgContainer:m}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-l*s)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:d,activeBorderColor:x,hoverBorderColor:b,activeShadow:`0 0 0 ${O}px ${h}`,errorActiveShadow:`0 0 0 ${O}px ${y}`,warningActiveShadow:`0 0 0 ${O}px ${p}`,hoverBg:m,activeBg:m,inputFontSize:n,inputFontSizeLG:l,inputFontSizeSM:n}},VM=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Ad=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},VM(Wt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),ly=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),cy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ly(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),HM=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ly(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ad(e))}),cy(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),cy(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),uy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),WM=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},uy(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),uy(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Ad(e))}})}),UM=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},dy=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),fy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},dy(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),GM=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dy(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Ad(e))}),fy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),fy(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),py=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),KM=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${xe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},py(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),py(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),XM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),hy=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${xe(t)} ${xe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},my=e=>({padding:`${xe(e.paddingBlockSM)} ${xe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),gy=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${xe(e.paddingBlock)} ${xe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},XM(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},hy(e)),"&-sm":Object.assign({},my(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),YM=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},hy(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},my(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${xe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${xe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${xe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${xe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px ${xe(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},zm()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
189
- & > ${t}-affix-wrapper,
190
- & > ${t}-number-affix-wrapper,
191
- & > ${n}-picker-range
192
- `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
193
- & > ${n}-select-auto-complete ${t},
194
- & > ${n}-cascader-picker ${t},
195
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
196
- & > ${n}-select:first-child > ${n}-select-selector,
197
- & > ${n}-select-auto-complete:first-child ${t},
198
- & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
199
- & > ${n}-select:last-child > ${n}-select-selector,
200
- & > ${n}-cascader-picker:last-child ${t},
201
- & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},JM=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),gy(e)),HM(e)),GM(e)),UM(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},QM=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${xe(e.inputAffixPadding)}`}}}},ZM=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},gy(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),QM(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},e2=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},En(e)),YM(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},WM(e)),KM(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},t2=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
202
- > ${t},
203
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},n2=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
204
- &-allow-clear > ${t},
205
- &-affix-wrapper${r}-has-feedback ${t}
206
- `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},r2=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Nd=gn("Input",e=>{const t=Wt(e,ay(e));return[JM(t),n2(t),ZM(t),e2(t),t2(t),r2(t),Xg(t)]},sy,{resetFont:!1}),ll=A.createContext(null);var o2=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,l=a.size,s=a.align,c=s===void 0?"center":s,u=A.useState(),f=ge(u,2),d=f[0],b=f[1],x=A.useRef(),O=A.useCallback(function(y){return typeof l=="function"?l(y):typeof l=="number"?l:y},[l]);function h(){Ht.cancel(x.current)}return A.useEffect(function(){var y={};if(n)if(r){y.width=O(n.width);var p=o?"right":"left";c==="start"&&(y[p]=n[p]),c==="center"&&(y[p]=n[p]+n.width/2,y.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[p]=n[p]+n.width,y.transform="translateX(-100%)")}else y.height=O(n.height),c==="start"&&(y.top=n.top),c==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return h(),x.current=Ht(function(){b(y)}),h},[n,r,o,c,O]),{style:d}},vy={width:0,height:0,left:0,top:0};function i2(e,t,n){return A.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||vy,a=i.left+i.width,l=0;l<e.length;l+=1){var s=e[l].key,c=t.get(s);if(!c){var u;c=t.get((u=e[l-1])===null||u===void 0?void 0:u.key)||vy}var f=o.get(s)||se({},c);f.right=a-f.left-f.width,o.set(s,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function _y(e,t){var n=v.useRef(e),r=v.useState({}),o=ge(r,2),i=o[1];function a(l){var s=typeof l=="function"?l(n.current):l;s!==n.current&&t(s,n.current),n.current=s,i({})}return[n.current,a]}var a2=.1,yy=.01,cl=20,by=Math.pow(.995,cl);function s2(e,t){var n=A.useState(),r=ge(n,2),o=r[0],i=r[1],a=A.useState(0),l=ge(a,2),s=l[0],c=l[1],u=A.useState(0),f=ge(u,2),d=f[0],b=f[1],x=A.useState(),O=ge(x,2),h=O[0],y=O[1],p=A.useRef();function m(T){var M=T.touches[0],N=M.screenX,R=M.screenY;i({x:N,y:R}),window.clearInterval(p.current)}function g(T){if(o){T.preventDefault();var M=T.touches[0],N=M.screenX,R=M.screenY;i({x:N,y:R});var D=N-o.x,V=R-o.y;t(D,V);var Z=Date.now();c(Z),b(Z-s),y({x:D,y:V})}}function w(){if(o&&(i(null),y(null),h)){var T=h.x/d,M=h.y/d,N=Math.abs(T),R=Math.abs(M);if(Math.max(N,R)<a2)return;var D=T,V=M;p.current=window.setInterval(function(){if(Math.abs(D)<yy&&Math.abs(V)<yy){window.clearInterval(p.current);return}D*=by,V*=by,t(D*cl,V*cl)},cl)}}var E=A.useRef();function S(T){var M=T.deltaX,N=T.deltaY,R=0,D=Math.abs(M),V=Math.abs(N);D===V?R=E.current==="x"?M:N:D>V?(R=M,E.current="x"):(R=N,E.current="y"),t(-R,-R)&&T.preventDefault()}var C=A.useRef(null);C.current={onTouchStart:m,onTouchMove:g,onTouchEnd:w,onWheel:S},v.useEffect(function(){function T(D){C.current.onTouchStart(D)}function M(D){C.current.onTouchMove(D)}function N(D){C.current.onTouchEnd(D)}function R(D){C.current.onWheel(D)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",N,{passive:!0}),e.current.addEventListener("touchstart",T,{passive:!0}),e.current.addEventListener("wheel",R,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",N)}},[])}function wy(e){var t=A.useState(0),n=ge(t,2),r=n[0],o=n[1],i=A.useRef(0),a=A.useRef();return a.current=e,Jc(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function l2(e){var t=A.useRef([]),n=A.useState({}),r=ge(n,2),o=r[1],i=A.useRef(typeof e=="function"?e():e),a=wy(function(){var s=i.current;t.current.forEach(function(c){s=c(s)}),t.current=[],i.current=s,o({})});function l(s){t.current.push(s),a()}return[i.current,l]}var xy={width:0,height:0,left:0,top:0,right:0};function c2(e,t,n,r,o,i,a){var l=a.tabs,s=a.tabPosition,c=a.rtl,u,f,d;return["top","bottom"].includes(s)?(u="width",f=c?"right":"left",d=Math.abs(n)):(u="height",f="top",d=-n),A.useMemo(function(){if(!l.length)return[0,0];for(var b=l.length,x=b,O=0;O<b;O+=1){var h=e.get(l[O].key)||xy;if(h[f]+h[u]>d+t){x=O-1;break}}for(var y=0,p=b-1;p>=0;p-=1){var m=e.get(l[p].key)||xy;if(m[f]<d){y=p+1;break}}return y>=x?[0,0]:[y,x]},[e,t,r,o,i,d,s,l.map(function(b){return b.key}).join("_"),c])}function Sy(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var u2="TABS_DQ";function Cy(e){return String(e).replace(/"/g,u2)}function Ey(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Oy=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:v.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),kd=v.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return qe(o)==="object"&&!v.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?v.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});oe.env.NODE_ENV!=="production"&&(kd.displayName="ExtraContent");var d2=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.more,s=l===void 0?{}:l,c=e.style,u=e.className,f=e.editable,d=e.tabBarGutter,b=e.rtl,x=e.removeAriaLabel,O=e.onTabClick,h=e.getPopupContainer,y=e.popupClassName,p=A.useState(!1),m=ge(p,2),g=m[0],w=m[1],E=A.useState(null),S=ge(E,2),C=S[0],T=S[1],M=s.icon,N=M===void 0?"More":M,R="".concat(r,"-more-popup"),D="".concat(n,"-dropdown"),V=C!==null?"".concat(R,"-").concat(C):null,Z=i==null?void 0:i.dropdownAriaLabel;function J(F,X){F.preventDefault(),F.stopPropagation(),f.onEdit("remove",{key:X,event:F})}var I=v.createElement(Oa,{onClick:function(X){var te=X.key,H=X.domEvent;O(te,H),w(!1)},prefixCls:"".concat(D,"-menu"),id:R,tabIndex:-1,role:"listbox","aria-activedescendant":V,selectedKeys:[C],"aria-label":Z!==void 0?Z:"expanded dropdown"},o.map(function(F){var X=F.closable,te=F.disabled,H=F.closeIcon,W=F.key,Q=F.label,ie=Ey(X,H,f,te);return v.createElement(al,{key:W,id:"".concat(R,"-").concat(W),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(W),disabled:te},v.createElement("span",null,Q),ie&&v.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(B){B.stopPropagation(),J(B,W)}},H||f.removeIcon||"×"))}));function U(F){for(var X=o.filter(function(ie){return!ie.disabled}),te=X.findIndex(function(ie){return ie.key===C})||0,H=X.length,W=0;W<H;W+=1){te=(te+F+H)%H;var Q=X[te];if(!Q.disabled){T(Q.key);return}}}function K(F){var X=F.which;if(!g){[je.DOWN,je.SPACE,je.ENTER].includes(X)&&(w(!0),F.preventDefault());return}switch(X){case je.UP:U(-1),F.preventDefault();break;case je.DOWN:U(1),F.preventDefault();break;case je.ESC:w(!1);break;case je.SPACE:case je.ENTER:C!==null&&O(C,F);break}}A.useEffect(function(){var F=document.getElementById(V);F&&F.scrollIntoView&&F.scrollIntoView(!1)},[C]),A.useEffect(function(){g||T(null)},[g]);var z=ae({},b?"marginRight":"marginLeft",d);o.length||(z.visibility="hidden",z.order=1);var G=de(ae({},"".concat(D,"-rtl"),b)),L=a?null:v.createElement(sM,$e({prefixCls:D,overlay:I,visible:o.length?g:!1,onVisibleChange:w,overlayClassName:de(G,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),v.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":R,id:"".concat(r,"-more"),"aria-expanded":g,onKeyDown:K},N));return v.createElement("div",{className:de("".concat(n,"-nav-operations"),u),style:c,ref:t},L,v.createElement(Oy,{prefixCls:n,locale:i,editable:f}))});const f2=v.memo(d2,function(e,t){return t.tabMoving});var p2=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.tab,a=i.key,l=i.label,s=i.disabled,c=i.closeIcon,u=i.icon,f=t.closable,d=t.renderWrapper,b=t.removeAriaLabel,x=t.editable,O=t.onClick,h=t.onFocus,y=t.style,p="".concat(n,"-tab"),m=Ey(f,c,x,s);function g(C){s||O(C)}function w(C){C.preventDefault(),C.stopPropagation(),x.onEdit("remove",{key:a,event:C})}var E=v.useMemo(function(){return u&&typeof l=="string"?v.createElement("span",null,l):l},[l,u]),S=v.createElement("div",{key:a,"data-node-key":Cy(a),className:de(p,ae(ae(ae({},"".concat(p,"-with-remove"),m),"".concat(p,"-active"),o),"".concat(p,"-disabled"),s)),style:y,onClick:g},v.createElement("div",{role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(a),className:"".concat(p,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(a),"aria-disabled":s,tabIndex:s?null:0,onClick:function(T){T.stopPropagation(),g(T)},onKeyDown:function(T){[je.SPACE,je.ENTER].includes(T.which)&&(T.preventDefault(),g(T))},onFocus:h},u&&v.createElement("span",{className:"".concat(p,"-icon")},u),l&&E),m&&v.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(p,"-remove"),onClick:function(T){T.stopPropagation(),w(T)}},c||x.removeIcon||"×"));return d?d(S):S},h2=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,l=t.getBoundingClientRect(),s=l.width,c=l.height,u=l.x,f=l.y;return Math.abs(s-r)<1?[s,c,u-n.x,f-n.y]:[r,o,a,i]},mi=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;if(t.current){var l=t.current.getBoundingClientRect(),s=l.width,c=l.height;if(Math.abs(s-o)<1)return[s,c]}return[o,a]},ul=function(t,n){return t[n?0:1]},$y=v.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,l=e.rtl,s=e.extra,c=e.editable,u=e.locale,f=e.tabPosition,d=e.tabBarGutter,b=e.children,x=e.onTabClick,O=e.onTabScroll,h=e.indicator,y=v.useContext(ll),p=y.prefixCls,m=y.tabs,g=A.useRef(null),w=A.useRef(null),E=A.useRef(null),S=A.useRef(null),C=A.useRef(null),T=A.useRef(null),M=A.useRef(null),N=f==="top"||f==="bottom",R=_y(0,function(pe,we){N&&O&&O({direction:pe>we?"left":"right"})}),D=ge(R,2),V=D[0],Z=D[1],J=_y(0,function(pe,we){!N&&O&&O({direction:pe>we?"top":"bottom"})}),I=ge(J,2),U=I[0],K=I[1],z=A.useState([0,0]),G=ge(z,2),L=G[0],F=G[1],X=A.useState([0,0]),te=ge(X,2),H=te[0],W=te[1],Q=A.useState([0,0]),ie=ge(Q,2),ce=ie[0],B=ie[1],q=A.useState([0,0]),le=ge(q,2),ne=le[0],ve=le[1],me=l2(new Map),Ce=ge(me,2),Le=Ce[0],fe=Ce[1],Ne=i2(m,Le,H[0]),Ie=ul(L,N),Re=ul(H,N),be=ul(ce,N),Se=ul(ne,N),Oe=Ie<Re+be,Te=Oe?Ie-Se:Ie-be,Ke="".concat(p,"-nav-operations-hidden"),Xe=0,tt=0;N&&l?(Xe=0,tt=Math.max(0,Re-Te)):(Xe=Math.min(0,Te-Re),tt=0);function _t(pe){return pe<Xe?Xe:pe>tt?tt:pe}var St=A.useRef(null),ht=A.useState(),We=ge(ht,2),Ae=We[0],ft=We[1];function dt(){ft(Date.now())}function nt(){St.current&&clearTimeout(St.current)}s2(S,function(pe,we){function Pe(Be,Fe){Be(function(Ve){var Ge=_t(Ve+Fe);return Ge})}return Oe?(N?Pe(Z,pe):Pe(K,we),nt(),dt(),!0):!1}),A.useEffect(function(){return nt(),Ae&&(St.current=setTimeout(function(){ft(0)},100)),nt},[Ae]);var Nt=c2(Ne,Te,N?V:U,Re,be,Se,se(se({},e),{},{tabs:m})),Qt=ge(Nt,2),an=Qt[0],Ct=Qt[1],kt=cn(function(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,we=Ne.get(pe)||{width:0,height:0,left:0,right:0,top:0};if(N){var Pe=V;l?we.right<V?Pe=we.right:we.right+we.width>V+Te&&(Pe=we.right+we.width-Te):we.left<-V?Pe=-we.left:we.left+we.width>-V+Te&&(Pe=-(we.left+we.width-Te)),K(0),Z(_t(Pe))}else{var Be=U;we.top<-U?Be=-we.top:we.top+we.height>-U+Te&&(Be=-(we.top+we.height-Te)),Z(0),K(_t(Be))}}),rt={};f==="top"||f==="bottom"?rt[l?"marginRight":"marginLeft"]=d:rt.marginTop=d;var pt=m.map(function(pe,we){var Pe=pe.key;return v.createElement(p2,{id:o,prefixCls:p,key:Pe,tab:pe,style:we===0?void 0:rt,closable:pe.closable,editable:c,active:Pe===a,renderWrapper:b,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(Fe){x(Pe,Fe)},onFocus:function(){kt(Pe),dt(),S.current&&(l||(S.current.scrollLeft=0),S.current.scrollTop=0)}})}),Lt=function(){return fe(function(){var we,Pe=new Map,Be=(we=C.current)===null||we===void 0?void 0:we.getBoundingClientRect();return m.forEach(function(Fe){var Ve,Ge=Fe.key,Tt=(Ve=C.current)===null||Ve===void 0?void 0:Ve.querySelector('[data-node-key="'.concat(Cy(Ge),'"]'));if(Tt){var yt=h2(Tt,Be),et=ge(yt,4),Gt=et[0],On=et[1],sn=et[2],Vt=et[3];Pe.set(Ge,{width:Gt,height:On,left:sn,top:Vt})}}),Pe})};A.useEffect(function(){Lt()},[m.map(function(pe){return pe.key}).join("_")]);var Ze=wy(function(){var pe=mi(g),we=mi(w),Pe=mi(E);F([pe[0]-we[0]-Pe[0],pe[1]-we[1]-Pe[1]]);var Be=mi(M);B(Be);var Fe=mi(T);ve(Fe);var Ve=mi(C);W([Ve[0]-Be[0],Ve[1]-Be[1]]),Lt()}),De=m.slice(0,an),k=m.slice(Ct+1),P=[].concat(Ee(De),Ee(k)),j=Ne.get(a),Y=o2({activeTabOffset:j,horizontal:N,indicator:h,rtl:l}),re=Y.style;A.useEffect(function(){kt()},[a,Xe,tt,Sy(j),Sy(Ne),N]),A.useEffect(function(){Ze()},[l]);var ue=!!P.length,_e="".concat(p,"-nav-wrap"),ze,ot,at,ee;return N?l?(ot=V>0,ze=V!==tt):(ze=V<0,ot=V!==Xe):(at=U<0,ee=U!==Xe),v.createElement(pr,{onResize:Ze},v.createElement("div",{ref:Go(t,g),role:"tablist",className:de("".concat(p,"-nav"),n),style:r,onKeyDown:function(){dt()}},v.createElement(kd,{ref:w,position:"left",extra:s,prefixCls:p}),v.createElement(pr,{onResize:Ze},v.createElement("div",{className:de(_e,ae(ae(ae(ae({},"".concat(_e,"-ping-left"),ze),"".concat(_e,"-ping-right"),ot),"".concat(_e,"-ping-top"),at),"".concat(_e,"-ping-bottom"),ee)),ref:S},v.createElement(pr,{onResize:Ze},v.createElement("div",{ref:C,className:"".concat(p,"-nav-list"),style:{transform:"translate(".concat(V,"px, ").concat(U,"px)"),transition:Ae?"none":void 0}},pt,v.createElement(Oy,{ref:M,prefixCls:p,locale:u,editable:c,style:se(se({},pt.length===0?void 0:rt),{},{visibility:ue?"hidden":null})}),v.createElement("div",{className:de("".concat(p,"-ink-bar"),ae({},"".concat(p,"-ink-bar-animated"),i.inkBar)),style:re}))))),v.createElement(f2,$e({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:T,prefixCls:p,tabs:P,className:!ue&&Ke,tabMoving:!!Ae})),v.createElement(kd,{ref:E,position:"right",extra:s,prefixCls:p})))}),Ld=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,s=e.children;return v.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:de(n,a&&"".concat(n,"-active"),r),ref:t},s)});oe.env.NODE_ENV!=="production"&&(Ld.displayName="TabPane");var m2=["renderTabBar"],g2=["label","key"],Ty=function(t){var n=t.renderTabBar,r=st(t,m2),o=v.useContext(ll),i=o.tabs;if(n){var a=se(se({},r),{},{panes:i.map(function(l){var s=l.label,c=l.key,u=st(l,g2);return v.createElement(Ld,$e({tab:s,key:c,tabKey:c},u))})});return n(a,$y)}return v.createElement($y,r)};oe.env.NODE_ENV!=="production"&&(Ty.displayName="TabNavListWrapper");var v2=["key","forceRender","style","className","destroyInactiveTabPane"],_2=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=v.useContext(ll),s=l.prefixCls,c=l.tabs,u=o.tabPane,f="".concat(s,"-tabpane");return v.createElement("div",{className:de("".concat(s,"-content-holder"))},v.createElement("div",{className:de("".concat(s,"-content"),"".concat(s,"-content-").concat(i),ae({},"".concat(s,"-content-animated"),u))},c.map(function(d){var b=d.key,x=d.forceRender,O=d.style,h=d.className,y=d.destroyInactiveTabPane,p=st(d,v2),m=b===r;return v.createElement(or,$e({key:b,visible:m,forceRender:x,removeOnLeave:!!(a||y),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(g,w){var E=g.style,S=g.className;return v.createElement(Ld,$e({},p,{prefixCls:f,id:n,tabKey:b,animated:u,active:m,style:se(se({},O),E),className:de(h,S),ref:w}))})})))};function y2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=se({inkBar:!0},qe(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(oe.env.NODE_ENV!=="production"&&gt(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var b2=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Py=0,Ry=v.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,s=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,d=e.tabPosition,b=d===void 0?"top":d,x=e.tabBarGutter,O=e.tabBarStyle,h=e.tabBarExtraContent,y=e.locale,p=e.more,m=e.destroyInactiveTabPane,g=e.renderTabBar,w=e.onChange,E=e.onTabClick,S=e.onTabScroll,C=e.getPopupContainer,T=e.popupClassName,M=e.indicator,N=st(e,b2),R=v.useMemo(function(){return(a||[]).filter(function(ne){return ne&&qe(ne)==="object"&&"key"in ne})},[a]),D=l==="rtl",V=y2(f),Z=A.useState(!1),J=ge(Z,2),I=J[0],U=J[1];A.useEffect(function(){U(m_())},[]);var K=tr(function(){var ne;return(ne=R[0])===null||ne===void 0?void 0:ne.key},{value:s,defaultValue:c}),z=ge(K,2),G=z[0],L=z[1],F=A.useState(function(){return R.findIndex(function(ne){return ne.key===G})}),X=ge(F,2),te=X[0],H=X[1];A.useEffect(function(){var ne=R.findIndex(function(me){return me.key===G});if(ne===-1){var ve;ne=Math.max(0,Math.min(te,R.length-1)),L((ve=R[ne])===null||ve===void 0?void 0:ve.key)}H(ne)},[R.map(function(ne){return ne.key}).join("_"),G,te]);var W=tr(null,{value:n}),Q=ge(W,2),ie=Q[0],ce=Q[1];A.useEffect(function(){n||(ce("rc-tabs-".concat(oe.env.NODE_ENV==="test"?"test":Py)),Py+=1)},[]);function B(ne,ve){E==null||E(ne,ve);var me=ne!==G;L(ne),me&&(w==null||w(ne))}var q={id:ie,activeKey:G,animated:V,tabPosition:b,rtl:D,mobile:I},le=se(se({},q),{},{editable:u,locale:y,more:p,tabBarGutter:x,onTabClick:B,onTabScroll:S,extra:h,style:O,panes:null,getPopupContainer:C,popupClassName:T,indicator:M});return v.createElement(ll.Provider,{value:{tabs:R,prefixCls:o}},v.createElement("div",$e({ref:t,id:n,className:de(o,"".concat(o,"-").concat(b),ae(ae(ae({},"".concat(o,"-mobile"),I),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),D),i)},N),v.createElement(Ty,$e({},le,{renderTabBar:g})),v.createElement(_2,$e({destroyInactiveTabPane:m},q,{animated:V}))))});oe.env.NODE_ENV!=="production"&&(Ry.displayName="Tabs");const w2={motionAppear:!1,motionEnter:!0,motionLeave:!0};function x2(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},w2),{motionName:wo(e,"switch")})),n}var S2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function C2(e){return e.filter(t=>t)}function E2(e,t){if(oe.env.NODE_ENV!=="production"&&At("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e;const n=po(t).map(r=>{if(v.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,s=S2(a,["tab"]);return Object.assign(Object.assign({key:String(o)},s),{label:l})}return null});return C2(n)}const O2=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Vv(e,"slide-up"),Vv(e,"slide-down")]]},$2=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${xe(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:xe(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:xe(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xe(e.borderRadiusLG)} 0 0 ${xe(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},T2=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},En(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${xe(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},aO),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${xe(e.paddingXXS)} ${xe(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},P2=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${xe(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
207
- right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
208
- > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:xe(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},R2=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${xe(e.borderRadius)} ${xe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${xe(e.borderRadius)} ${xe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${xe(e.borderRadius)} ${xe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${xe(e.borderRadius)} 0 0 ${xe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},j2=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:s}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},oa(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},M2=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:xe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:xe(e.marginXS)},marginLeft:{_skip_check_:!0,value:xe(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},I2=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},En(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${xe(e.paddingXS)}`,background:"transparent",border:`${xe(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${xe(e.borderRadiusLG)} ${xe(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},oa(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),j2(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},A2=gn("Tabs",e=>{const t=Wt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${xe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${xe(e.horizontalItemGutter)}`});return[R2(t),M2(t),P2(t),T2(t),$2(t),I2(t),O2(t)]},e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),jy=()=>null;oe.env.NODE_ENV!=="production"&&(jy.displayName="DeprecatedTabPane");var N2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $a=e=>{var t,n,r,o,i,a,l,s,c,u,f;const{type:d,className:b,rootClassName:x,size:O,onEdit:h,hideAdd:y,centered:p,addIcon:m,removeIcon:g,moreIcon:w,more:E,popupClassName:S,children:C,items:T,animated:M,style:N,indicatorSize:R,indicator:D}=e,V=N2(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:Z}=V,{direction:J,tabs:I,getPrefixCls:U,getPopupContainer:K}=v.useContext(Je),z=U("tabs",Z),G=Rn(z),[L,F,X]=A2(z,G);let te;d==="editable-card"&&(te={onEdit:(q,le)=>{let{key:ne,event:ve}=le;h==null||h(q==="add"?ve:ne,q)},removeIcon:(t=g!=null?g:I==null?void 0:I.removeIcon)!==null&&t!==void 0?t:v.createElement(fo,null),addIcon:(m!=null?m:I==null?void 0:I.addIcon)||v.createElement(ds,null),showAdd:y!==!0});const H=U();if(oe.env.NODE_ENV!=="production"){const q=At("Tabs");oe.env.NODE_ENV!=="production"&&q(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),oe.env.NODE_ENV!=="production"&&q(!(R||I!=null&&I.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead.")}const W=xo(O),Q=E2(T,C),ie=x2(z,M),ce=Object.assign(Object.assign({},I==null?void 0:I.style),N),B={align:(n=D==null?void 0:D.align)!==null&&n!==void 0?n:(r=I==null?void 0:I.indicator)===null||r===void 0?void 0:r.align,size:(l=(i=(o=D==null?void 0:D.size)!==null&&o!==void 0?o:R)!==null&&i!==void 0?i:(a=I==null?void 0:I.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:I==null?void 0:I.indicatorSize};return L(v.createElement(Ry,Object.assign({direction:J,getPopupContainer:K},V,{items:Q,className:de({[`${z}-${W}`]:W,[`${z}-card`]:["card","editable-card"].includes(d),[`${z}-editable-card`]:d==="editable-card",[`${z}-centered`]:p},I==null?void 0:I.className,b,x,F,X,G),popupClassName:de(S,F,X,G),style:ce,editable:te,more:Object.assign({icon:(f=(u=(c=(s=I==null?void 0:I.more)===null||s===void 0?void 0:s.icon)!==null&&c!==void 0?c:I==null?void 0:I.moreIcon)!==null&&u!==void 0?u:w)!==null&&f!==void 0?f:v.createElement(wh,null),transitionName:`${H}-slide-up`},E),prefixCls:z,animated:ie,indicator:B})))};$a.TabPane=jy,oe.env.NODE_ENV!=="production"&&($a.displayName="Tabs");const My=A.createContext({}),k2=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},L2=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},F2=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Fd=(e,t)=>F2(e,t),D2=(e,t,n)=>({[`@media (min-width: ${xe(t)})`]:Object.assign({},Fd(e,n))}),B2=()=>({}),z2=()=>({}),q2=gn("Grid",k2,B2),V2=gn("Grid",e=>{const t=Wt(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[L2(t),Fd(t,""),Fd(t,"-xs"),Object.keys(n).map(r=>D2(t,n[r],r)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},z2);var H2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Iy(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const W2=["xs","sm","md","lg","xl","xxl"],Dd=v.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=v.useContext(Je),{gutter:o,wrap:i}=v.useContext(My),{prefixCls:a,span:l,order:s,offset:c,push:u,pull:f,className:d,children:b,flex:x,style:O}=e,h=H2(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[p,m,g]=V2(y),w={};let E={};W2.forEach(T=>{let M={};const N=e[T];typeof N=="number"?M.span=N:typeof N=="object"&&(M=N||{}),delete h[T],E=Object.assign(Object.assign({},E),{[`${y}-${T}-${M.span}`]:M.span!==void 0,[`${y}-${T}-order-${M.order}`]:M.order||M.order===0,[`${y}-${T}-offset-${M.offset}`]:M.offset||M.offset===0,[`${y}-${T}-push-${M.push}`]:M.push||M.push===0,[`${y}-${T}-pull-${M.pull}`]:M.pull||M.pull===0,[`${y}-rtl`]:r==="rtl"}),M.flex&&(E[`${y}-${T}-flex`]=!0,w[`--${y}-${T}-flex`]=Iy(M.flex))});const S=de(y,{[`${y}-${l}`]:l!==void 0,[`${y}-order-${s}`]:s,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${f}`]:f},d,E,m,g),C={};if(o&&o[0]>0){const T=o[0]/2;C.paddingLeft=T,C.paddingRight=T}return x&&(C.flex=Iy(x),i===!1&&!C.minWidth&&(C.minWidth=0)),p(v.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign(Object.assign({},C),O),w),className:S,ref:t}),b))});oe.env.NODE_ENV!=="production"&&(Dd.displayName="Col");var U2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Ay(e,t){const[n,r]=v.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<ba.length;i++){const a=ba[i];if(!t[a])continue;const l=e[a];if(l!==void 0){r(l);return}}};return v.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const Ny=v.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:s=0,wrap:c}=e,u=U2(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=v.useContext(Je),[b,x]=v.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[O,h]=v.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),y=Ay(o,O),p=Ay(r,O),m=v.useRef(s),g=gj();v.useEffect(()=>{const I=g.subscribe(U=>{h(U);const K=m.current||0;(!Array.isArray(K)&&typeof K=="object"||Array.isArray(K)&&(typeof K[0]=="object"||typeof K[1]=="object"))&&x(U)});return()=>g.unsubscribe(I)},[]);const w=()=>{const I=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((K,z)=>{if(typeof K=="object")for(let G=0;G<ba.length;G++){const L=ba[G];if(b[L]&&K[L]!==void 0){I[z]=K[L];break}}else I[z]=K}),I},E=f("row",n),[S,C,T]=q2(E),M=w(),N=de(E,{[`${E}-no-wrap`]:c===!1,[`${E}-${p}`]:p,[`${E}-${y}`]:y,[`${E}-rtl`]:d==="rtl"},i,C,T),R={},D=M[0]!=null&&M[0]>0?M[0]/-2:void 0;D&&(R.marginLeft=D,R.marginRight=D);const[V,Z]=M;R.rowGap=Z;const J=v.useMemo(()=>({gutter:[V,Z],wrap:c}),[V,Z,c]);return S(v.createElement(My.Provider,{value:J},v.createElement("div",Object.assign({},u,{className:N,style:Object.assign(Object.assign({},R),a),ref:t}),l)))});oe.env.NODE_ENV!=="production"&&(Ny.displayName="Row");function G2(e){return!!(e.addonBefore||e.addonAfter)}function K2(e){return!!(e.prefix||e.suffix||e.allowClear)}function ky(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function dl(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=ky(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=ky(t,e,r),n(o);return}n(o)}}function X2(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Ly=A.forwardRef(function(e,t){var n,r,o=e.inputElement,i=e.children,a=e.prefixCls,l=e.prefix,s=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.style,b=e.disabled,x=e.readOnly,O=e.focused,h=e.triggerFocus,y=e.allowClear,p=e.value,m=e.handleReset,g=e.hidden,w=e.classes,E=e.classNames,S=e.dataAttrs,C=e.styles,T=e.components,M=e.onClear,N=i!=null?i:o,R=(T==null?void 0:T.affixWrapper)||"span",D=(T==null?void 0:T.groupWrapper)||"span",V=(T==null?void 0:T.wrapper)||"span",Z=(T==null?void 0:T.groupAddon)||"span",J=A.useRef(null),I=function(ne){var ve;(ve=J.current)!==null&&ve!==void 0&&ve.contains(ne.target)&&(h==null||h())},U=K2(e),K=A.cloneElement(N,{value:p,className:de(N.props.className,!U&&(E==null?void 0:E.variant))||null}),z=A.useRef(null);if(A.useImperativeHandle(t,function(){return{nativeElement:z.current||J.current}}),U){var G=null;if(y){var L=!b&&!x&&p,F="".concat(a,"-clear-icon"),X=qe(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";G=A.createElement("span",{onClick:function(ne){m==null||m(ne),M==null||M()},onMouseDown:function(ne){return ne.preventDefault()},className:de(F,ae(ae({},"".concat(F,"-hidden"),!L),"".concat(F,"-has-suffix"),!!s)),role:"button",tabIndex:-1},X)}var te="".concat(a,"-affix-wrapper"),H=de(te,ae(ae(ae(ae(ae({},"".concat(a,"-disabled"),b),"".concat(te,"-disabled"),b),"".concat(te,"-focused"),O),"".concat(te,"-readonly"),x),"".concat(te,"-input-with-clear-btn"),s&&y&&p),w==null?void 0:w.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),W=(s||y)&&A.createElement("span",{className:de("".concat(a,"-suffix"),E==null?void 0:E.suffix),style:C==null?void 0:C.suffix},G,s);K=A.createElement(R,$e({className:H,style:C==null?void 0:C.affixWrapper,onClick:I},S==null?void 0:S.affixWrapper,{ref:J}),l&&A.createElement("span",{className:de("".concat(a,"-prefix"),E==null?void 0:E.prefix),style:C==null?void 0:C.prefix},l),K,W)}if(G2(e)){var Q="".concat(a,"-group"),ie="".concat(Q,"-addon"),ce="".concat(Q,"-wrapper"),B=de("".concat(a,"-wrapper"),Q,w==null?void 0:w.wrapper,E==null?void 0:E.wrapper),q=de(ce,ae({},"".concat(ce,"-disabled"),b),w==null?void 0:w.group,E==null?void 0:E.groupWrapper);K=A.createElement(D,{className:q,ref:z},A.createElement(V,{className:B},c&&A.createElement(Z,{className:ie},c),K,u&&A.createElement(Z,{className:ie},u)))}return A.cloneElement(K,{className:de((n=K.props)===null||n===void 0?void 0:n.className,f)||null,style:se(se({},(r=K.props)===null||r===void 0?void 0:r.style),d),hidden:g})}),Y2=["show"];function Fy(e,t){return v.useMemo(function(){var n={};t&&(n.show=qe(t)==="object"&&t.formatter?t.formatter:!!t),n=se(se({},n),e);var r=n,o=r.show,i=st(r,Y2);return se(se({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var J2=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Q2=A.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,s=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,d=e.htmlSize,b=e.className,x=e.maxLength,O=e.suffix,h=e.showCount,y=e.count,p=e.type,m=p===void 0?"text":p,g=e.classes,w=e.classNames,E=e.styles,S=e.onCompositionStart,C=e.onCompositionEnd,T=st(e,J2),M=A.useState(!1),N=ge(M,2),R=N[0],D=N[1],V=A.useRef(!1),Z=A.useRef(!1),J=A.useRef(null),I=A.useRef(null),U=function(Se){J.current&&X2(J.current,Se)},K=tr(e.defaultValue,{value:e.value}),z=ge(K,2),G=z[0],L=z[1],F=G==null?"":String(G),X=A.useState(null),te=ge(X,2),H=te[0],W=te[1],Q=Fy(y,h),ie=Q.max||x,ce=Q.strategy(F),B=!!ie&&ce>ie;A.useImperativeHandle(t,function(){var be;return{focus:U,blur:function(){var Oe;(Oe=J.current)===null||Oe===void 0||Oe.blur()},setSelectionRange:function(Oe,Te,Ke){var Xe;(Xe=J.current)===null||Xe===void 0||Xe.setSelectionRange(Oe,Te,Ke)},select:function(){var Oe;(Oe=J.current)===null||Oe===void 0||Oe.select()},input:J.current,nativeElement:((be=I.current)===null||be===void 0?void 0:be.nativeElement)||J.current}}),A.useEffect(function(){D(function(be){return be&&f?!1:be})},[f]);var q=function(Se,Oe,Te){var Ke=Oe;if(!V.current&&Q.exceedFormatter&&Q.max&&Q.strategy(Oe)>Q.max){if(Ke=Q.exceedFormatter(Oe,{max:Q.max}),Oe!==Ke){var Xe,tt;W([((Xe=J.current)===null||Xe===void 0?void 0:Xe.selectionStart)||0,((tt=J.current)===null||tt===void 0?void 0:tt.selectionEnd)||0])}}else if(Te.source==="compositionEnd")return;L(Ke),J.current&&dl(J.current,Se,r,Ke)};A.useEffect(function(){if(H){var be;(be=J.current)===null||be===void 0||be.setSelectionRange.apply(be,Ee(H))}},[H]);var le=function(Se){q(Se,Se.target.value,{source:"change"})},ne=function(Se){V.current=!1,q(Se,Se.currentTarget.value,{source:"compositionEnd"}),C==null||C(Se)},ve=function(Se){a&&Se.key==="Enter"&&!Z.current&&(Z.current=!0,a(Se)),l==null||l(Se)},me=function(Se){Se.key==="Enter"&&(Z.current=!1),s==null||s(Se)},Ce=function(Se){D(!0),o==null||o(Se)},Le=function(Se){D(!1),i==null||i(Se)},fe=function(Se){L(""),U(),J.current&&dl(J.current,Se,r)},Ne=B&&"".concat(u,"-out-of-range"),Ie=function(){var Se=Jn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return A.createElement("input",$e({autoComplete:n},Se,{onChange:le,onFocus:Ce,onBlur:Le,onKeyDown:ve,onKeyUp:me,className:de(u,ae({},"".concat(u,"-disabled"),f),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:J,size:d,type:m,onCompositionStart:function(Te){V.current=!0,S==null||S(Te)},onCompositionEnd:ne}))},Re=function(){var Se=Number(ie)>0;if(O||Q.show){var Oe=Q.showFormatter?Q.showFormatter({value:F,count:ce,maxLength:ie}):"".concat(ce).concat(Se?" / ".concat(ie):"");return A.createElement(A.Fragment,null,Q.show&&A.createElement("span",{className:de("".concat(u,"-show-count-suffix"),ae({},"".concat(u,"-show-count-has-suffix"),!!O),w==null?void 0:w.count),style:se({},E==null?void 0:E.count)},Oe),O)}return null};return A.createElement(Ly,$e({},T,{prefixCls:u,className:de(b,Ne),handleReset:fe,value:F,focused:R,triggerFocus:U,suffix:Re(),disabled:f,classes:g,classNames:w,styles:E}),Ie())});const Z2=e=>{const{getPrefixCls:t,direction:n}=A.useContext(Je),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,s]=Nd(a),c=de(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},s,o),u=A.useContext(In),f=A.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return oe.env.NODE_ENV!=="production"&&At("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),l(v.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},v.createElement(In.Provider,{value:f},e.children)))},Dy=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:A.createElement(Uo,null)}),t};function By(e,t){const n=A.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return A.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function eI(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var tI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function nI(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Ta=A.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:f,addonAfter:d,addonBefore:b,className:x,style:O,styles:h,rootClassName:y,onChange:p,classNames:m,variant:g}=e,w=tI(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(oe.env.NODE_ENV!=="production"){const{deprecated:ne}=At("Input");ne(!("bordered"in e),"bordered","variant")}const{getPrefixCls:E,direction:S,input:C}=A.useContext(Je),T=E("input",r),M=A.useRef(null),N=Rn(T),[R,D,V]=Nd(T,N),{compactSize:Z,compactItemClassnames:J}=Au(T,S),I=xo(ne=>{var ve;return(ve=a!=null?a:Z)!==null&&ve!==void 0?ve:ne}),U=A.useContext(Kr),K=l!=null?l:U,{status:z,hasFeedback:G,feedbackIcon:L}=A.useContext(In),F=_d(z,i),X=eI(e)||!!G,te=A.useRef(X);if(oe.env.NODE_ENV!=="production"){const ne=At("Input");A.useEffect(()=>{var ve;X&&!te.current&&oe.env.NODE_ENV!=="production"&&ne(document.activeElement===((ve=M.current)===null||ve===void 0?void 0:ve.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),te.current=X},[X])}const H=By(M,!0),W=ne=>{H(),s==null||s(ne)},Q=ne=>{H(),c==null||c(ne)},ie=ne=>{H(),p==null||p(ne)},ce=(G||u)&&A.createElement(A.Fragment,null,u,G&&L),B=Dy(f!=null?f:C==null?void 0:C.allowClear),[q,le]=P_("input",g,o);return R(A.createElement(Q2,Object.assign({ref:Yn(t,M),prefixCls:T,autoComplete:C==null?void 0:C.autoComplete},w,{disabled:K,onBlur:W,onFocus:Q,style:Object.assign(Object.assign({},C==null?void 0:C.style),O),styles:Object.assign(Object.assign({},C==null?void 0:C.styles),h),suffix:ce,allowClear:B,className:de(x,y,V,N,J,C==null?void 0:C.className),onChange:ie,addonBefore:b&&A.createElement(Ks,{form:!0,space:!0},b),addonAfter:d&&A.createElement(Ks,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},m),C==null?void 0:C.classNames),{input:de({[`${T}-sm`]:I==="small",[`${T}-lg`]:I==="large",[`${T}-rtl`]:S==="rtl"},m==null?void 0:m.input,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.input,D),variant:de({[`${T}-${q}`]:le},vd(T,F)),affixWrapper:de({[`${T}-affix-wrapper-sm`]:I==="small",[`${T}-affix-wrapper-lg`]:I==="large",[`${T}-affix-wrapper-rtl`]:S==="rtl"},D),wrapper:de({[`${T}-group-rtl`]:S==="rtl"},D),groupWrapper:de({[`${T}-group-wrapper-sm`]:I==="small",[`${T}-group-wrapper-lg`]:I==="large",[`${T}-group-wrapper-rtl`]:S==="rtl",[`${T}-group-wrapper-${q}`]:le},vd(`${T}-group-wrapper`,F,G),D)})})))});oe.env.NODE_ENV!=="production"&&(Ta.displayName="Input");const rI=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},oI=gn(["Input","OTP"],e=>{const t=Wt(e,ay(e));return[rI(t)]},sy);var iI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const aI=v.forwardRef((e,t)=>{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,l=iI(e,["value","onChange","onActiveChange","index","mask"]),s=n&&typeof a=="string"?a:n,c=x=>{r(i,x.target.value)},u=v.useRef(null);v.useImperativeHandle(t,()=>u.current);const f=()=>{Ht(()=>{var x;const O=(x=u.current)===null||x===void 0?void 0:x.input;document.activeElement===O&&O&&O.select()})},d=x=>{let{key:O}=x;O==="ArrowLeft"?o(i-1):O==="ArrowRight"&&o(i+1),f()},b=x=>{x.key==="Backspace"&&!n&&o(i-1),f()};return v.createElement(Ta,Object.assign({},l,{ref:u,value:s,onInput:c,onFocus:f,onKeyDown:d,onKeyUp:b,onMouseDown:f,onMouseUp:f,type:a===!0?"password":"text"}))});var sI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function fl(e){return(e||"").split("")}const lI=v.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:s,variant:c,disabled:u,status:f,autoFocus:d,mask:b}=e,x=sI(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask"]);if(oe.env.NODE_ENV!=="production"){const G=At("Input.OTP");oe.env.NODE_ENV!=="production"&&G(!(typeof b=="string"&&b.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:O,direction:h}=v.useContext(Je),y=O("otp",n),p=aa(x,{aria:!0,data:!0,attr:!0}),m=Rn(y),[g,w,E]=oI(y,m),S=xo(G=>o!=null?o:G),C=v.useContext(In),T=_d(C.status,f),M=v.useMemo(()=>Object.assign(Object.assign({},C),{status:T,hasFeedback:!1,feedbackIcon:null}),[C,T]),N=v.useRef(null),R=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{var G;(G=R.current[0])===null||G===void 0||G.focus()},blur:()=>{var G;for(let L=0;L<r;L+=1)(G=R.current[L])===null||G===void 0||G.blur()},nativeElement:N.current}));const D=G=>s?s(G):G,[V,Z]=v.useState(fl(D(i||"")));v.useEffect(()=>{a!==void 0&&Z(fl(a))},[a]);const J=cn(G=>{Z(G),l&&G.length===r&&G.every(L=>L)&&G.some((L,F)=>V[F]!==L)&&l(G.join(""))}),I=cn((G,L)=>{let F=Ee(V);for(let te=0;te<G;te+=1)F[te]||(F[te]="");L.length<=1?F[G]=L:F=F.slice(0,G).concat(fl(L)),F=F.slice(0,r);for(let te=F.length-1;te>=0&&!F[te];te-=1)F.pop();const X=D(F.map(te=>te||" ").join(""));return F=fl(X).map((te,H)=>te===" "&&!F[H]?F[H]:te),F}),U=(G,L)=>{var F;const X=I(G,L),te=Math.min(G+L.length,r-1);te!==G&&((F=R.current[te])===null||F===void 0||F.focus()),J(X)},K=G=>{var L;(L=R.current[G])===null||L===void 0||L.focus()},z={variant:c,disabled:u,status:T,mask:b};return g(v.createElement("div",Object.assign({},p,{ref:N,className:de(y,{[`${y}-sm`]:S==="small",[`${y}-lg`]:S==="large",[`${y}-rtl`]:h==="rtl"},E,w)}),v.createElement(In.Provider,{value:M},Array.from({length:r}).map((G,L)=>{const F=`otp-${L}`,X=V[L]||"";return v.createElement(aI,Object.assign({ref:te=>{R.current[L]=te},key:F,index:L,size:S,htmlSize:1,className:`${y}-input`,onChange:U,value:X,onActiveChange:K,autoFocus:L===0&&d},z))}))))});var cI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uI=e=>e?v.createElement(Sh,null):v.createElement(xh,null),dI={click:"onClick",hover:"onMouseOver"},zy=v.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=uI}=e,a=v.useContext(Kr),l=n!=null?n:a,s=typeof o=="object"&&o.visible!==void 0,[c,u]=A.useState(()=>s?o.visible:!1),f=A.useRef(null);v.useEffect(()=>{s&&u(o.visible)},[s,o]);const d=By(f),b=()=>{l||(c&&d(),u(M=>{var N;const R=!M;return typeof o=="object"&&((N=o.onVisibleChange)===null||N===void 0||N.call(o,R)),R}))},x=M=>{const N=dI[r]||"",R=i(c),D={[N]:b,className:`${M}-icon`,key:"passwordIcon",onMouseDown:V=>{V.preventDefault()},onMouseUp:V=>{V.preventDefault()}};return v.cloneElement(v.isValidElement(R)?R:v.createElement("span",null,R),D)},{className:O,prefixCls:h,inputPrefixCls:y,size:p}=e,m=cI(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:g}=v.useContext(Je),w=g("input",y),E=g("input-password",h),S=o&&x(E),C=de(E,O,{[`${E}-${p}`]:!!p}),T=Object.assign(Object.assign({},Jn(m,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:C,prefixCls:w,suffix:S});return p&&(T.size=p),v.createElement(Ta,Object.assign({ref:Yn(t,f)},T))});oe.env.NODE_ENV!=="production"&&(zy.displayName="Input.Password");var fI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qy=v.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:s,loading:c,disabled:u,onSearch:f,onChange:d,onCompositionStart:b,onCompositionEnd:x}=e,O=fI(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:h,direction:y}=v.useContext(Je),p=v.useRef(!1),m=h("input-search",n),g=h("input",r),{compactSize:w}=Au(m,y),E=xo(z=>{var G;return(G=i!=null?i:w)!==null&&G!==void 0?G:z}),S=v.useRef(null),C=z=>{z!=null&&z.target&&z.type==="click"&&f&&f(z.target.value,z,{source:"clear"}),d==null||d(z)},T=z=>{var G;document.activeElement===((G=S.current)===null||G===void 0?void 0:G.input)&&z.preventDefault()},M=z=>{var G,L;f&&f((L=(G=S.current)===null||G===void 0?void 0:G.input)===null||L===void 0?void 0:L.value,z,{source:"input"})},N=z=>{p.current||c||M(z)},R=typeof l=="boolean"?v.createElement(Th,null):null,D=`${m}-button`;let V;const Z=l||{},J=Z.type&&Z.type.__ANT_BUTTON===!0;J||Z.type==="button"?V=Pr(Z,Object.assign({onMouseDown:T,onClick:z=>{var G,L;(L=(G=Z==null?void 0:Z.props)===null||G===void 0?void 0:G.onClick)===null||L===void 0||L.call(G,z),M(z)},key:"enterButton"},J?{className:D,size:E}:{})):V=v.createElement(gr,{className:D,type:l?"primary":void 0,size:E,disabled:u,key:"enterButton",onMouseDown:T,onClick:M,loading:c,icon:R},l),s&&(V=[V,Pr(s,{key:"addonAfter"})]);const I=de(m,{[`${m}-rtl`]:y==="rtl",[`${m}-${E}`]:!!E,[`${m}-with-button`]:!!l},o),U=z=>{p.current=!0,b==null||b(z)},K=z=>{p.current=!1,x==null||x(z)};return v.createElement(Ta,Object.assign({ref:Yn(S,t),onPressEnter:N},O,{size:E,onCompositionStart:U,onCompositionEnd:K,prefixCls:g,addonAfter:V,suffix:a,onChange:C,className:I,disabled:u}))});oe.env.NODE_ENV!=="production"&&(qy.displayName="Search");var pI=`
209
- min-height:0 !important;
210
- max-height:none !important;
211
- height:0 !important;
212
- visibility:hidden !important;
213
- overflow:hidden !important;
214
- position:absolute !important;
215
- z-index:-1000 !important;
216
- top:0 !important;
217
- right:0 !important;
218
- pointer-events: none !important;
219
- `,hI=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Bd={},Dn;function mI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Bd[n])return Bd[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=hI.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Bd[n]=s),s}function gI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Dn||(Dn=document.createElement("textarea"),Dn.setAttribute("tab-index","-1"),Dn.setAttribute("aria-hidden","true"),document.body.appendChild(Dn)),e.getAttribute("wrap")?Dn.setAttribute("wrap",e.getAttribute("wrap")):Dn.removeAttribute("wrap");var o=mI(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;Dn.setAttribute("style","".concat(s,";").concat(pI)),Dn.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,d=Dn.scrollHeight;if(l==="border-box"?d+=a:l==="content-box"&&(d-=i),n!==null||r!==null){Dn.value=" ";var b=Dn.scrollHeight-i;n!==null&&(c=b*n,l==="border-box"&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(u=b*r,l==="border-box"&&(u=u+i+a),f=d>u?"":"hidden",d=Math.min(u,d))}var x={height:d,overflowY:f,resize:"none"};return c&&(x.minHeight=c),u&&(x.maxHeight=u),x}var vI=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],zd=0,qd=1,Vd=2,_I=v.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,s=n.className,c=n.style,u=n.disabled,f=n.onChange,d=n.onInternalAutoSize,b=st(n,vI),x=tr(o,{value:i,postState:function(te){return te!=null?te:""}}),O=ge(x,2),h=O[0],y=O[1],p=function(te){y(te.target.value),f==null||f(te)},m=v.useRef();v.useImperativeHandle(t,function(){return{textArea:m.current}});var g=v.useMemo(function(){return a&&qe(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=ge(g,2),E=w[0],S=w[1],C=!!a,T=function(){try{if(document.activeElement===m.current){var te=m.current,H=te.selectionStart,W=te.selectionEnd,Q=te.scrollTop;m.current.setSelectionRange(H,W),m.current.scrollTop=Q}}catch(ie){}},M=v.useState(Vd),N=ge(M,2),R=N[0],D=N[1],V=v.useState(),Z=ge(V,2),J=Z[0],I=Z[1],U=function(){D(zd),oe.env.NODE_ENV==="test"&&(d==null||d())};nn(function(){C&&U()},[i,E,S,C]),nn(function(){if(R===zd)D(qd);else if(R===qd){var X=gI(m.current,!1,E,S);D(Vd),I(X)}else T()},[R]);var K=v.useRef(),z=function(){Ht.cancel(K.current)},G=function(te){R===Vd&&(l==null||l(te),a&&(z(),K.current=Ht(function(){U()})))};v.useEffect(function(){return z},[]);var L=C?J:null,F=se(se({},c),L);return(R===zd||R===qd)&&(F.overflowY="hidden",F.overflowX="hidden"),v.createElement(pr,{onResize:G,disabled:!(a||l)},v.createElement("textarea",$e({},b,{ref:m,style:F,className:de(r,s,ae({},"".concat(r,"-disabled"),u)),disabled:u,value:h,onChange:p})))}),yI=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],bI=A.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,s=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,d=e.suffix,b=e.prefixCls,x=b===void 0?"rc-textarea":b,O=e.showCount,h=e.count,y=e.className,p=e.style,m=e.disabled,g=e.hidden,w=e.classNames,E=e.styles,S=e.onResize,C=e.onClear,T=e.onPressEnter,M=e.readOnly,N=e.autoSize,R=e.onKeyDown,D=st(e,yI),V=tr(r,{value:o,defaultValue:r}),Z=ge(V,2),J=Z[0],I=Z[1],U=J==null?"":String(J),K=A.useState(!1),z=ge(K,2),G=z[0],L=z[1],F=A.useRef(!1),X=A.useState(null),te=ge(X,2),H=te[0],W=te[1],Q=A.useRef(null),ie=A.useRef(null),ce=function(){var Ae;return(Ae=ie.current)===null||Ae===void 0?void 0:Ae.textArea},B=function(){ce().focus()};A.useImperativeHandle(t,function(){var We;return{resizableTextArea:ie.current,focus:B,blur:function(){ce().blur()},nativeElement:((We=Q.current)===null||We===void 0?void 0:We.nativeElement)||ce()}}),A.useEffect(function(){L(function(We){return!m&&We})},[m]);var q=A.useState(null),le=ge(q,2),ne=le[0],ve=le[1];A.useEffect(function(){if(ne){var We;(We=ce()).setSelectionRange.apply(We,Ee(ne))}},[ne]);var me=Fy(h,O),Ce=(n=me.max)!==null&&n!==void 0?n:c,Le=Number(Ce)>0,fe=me.strategy(U),Ne=!!Ce&&fe>Ce,Ie=function(Ae,ft){var dt=ft;!F.current&&me.exceedFormatter&&me.max&&me.strategy(ft)>me.max&&(dt=me.exceedFormatter(ft,{max:me.max}),ft!==dt&&ve([ce().selectionStart||0,ce().selectionEnd||0])),I(dt),dl(Ae.currentTarget,Ae,l,dt)},Re=function(Ae){F.current=!0,u==null||u(Ae)},be=function(Ae){F.current=!1,Ie(Ae,Ae.currentTarget.value),f==null||f(Ae)},Se=function(Ae){Ie(Ae,Ae.target.value)},Oe=function(Ae){Ae.key==="Enter"&&T&&T(Ae),R==null||R(Ae)},Te=function(Ae){L(!0),i==null||i(Ae)},Ke=function(Ae){L(!1),a==null||a(Ae)},Xe=function(Ae){I(""),B(),dl(ce(),Ae,l)},tt=d,_t;me.show&&(me.showFormatter?_t=me.showFormatter({value:U,count:fe,maxLength:Ce}):_t="".concat(fe).concat(Le?" / ".concat(Ce):""),tt=A.createElement(A.Fragment,null,tt,A.createElement("span",{className:de("".concat(x,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},_t)));var St=function(Ae){var ft;S==null||S(Ae),(ft=ce())!==null&&ft!==void 0&&ft.style.height&&W(!0)},ht=!N&&!O&&!s;return A.createElement(Ly,{ref:Q,value:U,allowClear:s,handleReset:Xe,suffix:tt,prefixCls:x,classNames:se(se({},w),{},{affixWrapper:de(w==null?void 0:w.affixWrapper,ae(ae({},"".concat(x,"-show-count"),O),"".concat(x,"-textarea-allow-clear"),s))}),disabled:m,focused:G,className:de(y,Ne&&"".concat(x,"-out-of-range")),style:se(se({},p),H&&!ht?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _t=="string"?_t:void 0}},hidden:g,readOnly:M,onClear:C},A.createElement(_I,$e({},D,{autoSize:N,maxLength:c,onKeyDown:Oe,onChange:Se,onFocus:Te,onBlur:Ke,onCompositionStart:Re,onCompositionEnd:be,className:de(w==null?void 0:w.textarea),style:se(se({},E==null?void 0:E.textarea),{},{resize:p==null?void 0:p.resize}),disabled:m,prefixCls:x,onResize:St,ref:ie,readOnly:M})))}),wI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xI=A.forwardRef((e,t)=>{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:s,allowClear:c,classNames:u,rootClassName:f,className:d,style:b,styles:x,variant:O}=e,h=wI(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]);if(oe.env.NODE_ENV!=="production"){const{deprecated:z}=At("TextArea");z(!("bordered"in e),"bordered","variant")}const{getPrefixCls:y,direction:p,textArea:m}=v.useContext(Je),g=xo(a),w=v.useContext(Kr),E=l!=null?l:w,{status:S,hasFeedback:C,feedbackIcon:T}=v.useContext(In),M=_d(S,s),N=v.useRef(null);v.useImperativeHandle(t,()=>{var z;return{resizableTextArea:(z=N.current)===null||z===void 0?void 0:z.resizableTextArea,focus:G=>{var L,F;nI((F=(L=N.current)===null||L===void 0?void 0:L.resizableTextArea)===null||F===void 0?void 0:F.textArea,G)},blur:()=>{var G;return(G=N.current)===null||G===void 0?void 0:G.blur()}}});const R=y("input",o),D=Rn(R),[V,Z,J]=Nd(R,D),[I,U]=P_("textArea",O,i),K=Dy(c!=null?c:m==null?void 0:m.allowClear);return V(v.createElement(bI,Object.assign({autoComplete:m==null?void 0:m.autoComplete},h,{style:Object.assign(Object.assign({},m==null?void 0:m.style),b),styles:Object.assign(Object.assign({},m==null?void 0:m.styles),x),disabled:E,allowClear:K,className:de(J,D,d,f,m==null?void 0:m.className),classNames:Object.assign(Object.assign(Object.assign({},u),m==null?void 0:m.classNames),{textarea:de({[`${R}-sm`]:g==="small",[`${R}-lg`]:g==="large"},Z,u==null?void 0:u.textarea,(n=m==null?void 0:m.classNames)===null||n===void 0?void 0:n.textarea),variant:de({[`${R}-${I}`]:U},vd(R,M)),affixWrapper:de(`${R}-textarea-affix-wrapper`,{[`${R}-affix-wrapper-rtl`]:p==="rtl",[`${R}-affix-wrapper-sm`]:g==="small",[`${R}-affix-wrapper-lg`]:g==="large",[`${R}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},Z)}),prefixCls:R,suffix:C&&v.createElement("span",{className:`${R}-textarea-suffix`},T),ref:N})))}),Po=Ta;Po.Group=Z2,Po.Search=qy,Po.TextArea=xI,Po.Password=zy,Po.OTP=lI;function pl(e){const[t,n]=v.useState(e);return v.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const SI=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},
220
- opacity ${e.motionDurationSlow} ${e.motionEaseInOut},
221
- transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},CI=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${xe(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Vy=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},EI=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},En(e)),CI(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Vy(e,e.controlHeightSM)),"&-large":Object.assign({},Vy(e,e.controlHeightLG))})}},OI=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:l,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},En(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
222
- &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:ud,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Hy=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},$I=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
223
- > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},sr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Wy=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:sr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},TI=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
224
- ${r}-col-24${n}-label,
225
- ${r}-col-xl-24${n}-label`]:sr(e)}},[`@media (max-width: ${xe(e.screenXSMax)})`]:[Wy(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:sr(e)}}}],[`@media (max-width: ${xe(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:sr(e)}}},[`@media (max-width: ${xe(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:sr(e)}}},[`@media (max-width: ${xe(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:sr(e)}}}}},PI=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
226
- ${n}-col-24${t}-label,
227
- ${n}-col-xl-24${t}-label`]:sr(e),[`@media (max-width: ${xe(e.screenXSMax)})`]:[Wy(e),{[t]:{[`${n}-col-xs-24${t}-label`]:sr(e)}}],[`@media (max-width: ${xe(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:sr(e)}},[`@media (max-width: ${xe(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:sr(e)}},[`@media (max-width: ${xe(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:sr(e)}}}},RI=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Uy=(e,t)=>Wt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Hd=gn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Uy(e,n);return[EI(r),OI(r),SI(r),Hy(r,r.componentCls),Hy(r,r.formItemCls),$I(r),TI(r),PI(r),DP(r),ud]},RI,{order:-1e3}),Gy=[];function Wd(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const Ky=e=>{let{help:t,helpStatus:n,errors:r=Gy,warnings:o=Gy,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:s}=v.useContext(od),c=`${s}-item-explain`,u=Rn(s),[f,d,b]=Hd(s,u),x=A.useMemo(()=>Ng(s),[s]),O=pl(r),h=pl(o),y=v.useMemo(()=>t!=null?[Wd(t,"help",n)]:[].concat(Ee(O.map((m,g)=>Wd(m,"error","error",g))),Ee(h.map((m,g)=>Wd(m,"warning","warning",g)))),[t,n,O,h]),p={};return a&&(p.id=`${a}_help`),f(v.createElement(or,{motionDeadline:x.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:l},m=>{const{className:g,style:w}=m;return v.createElement("div",Object.assign({},p,{className:de(c,g,b,u,i,d),style:w,role:"alert"}),v.createElement(ig,Object.assign({keys:y},Ng(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:S,error:C,errorStatus:T,className:M,style:N}=E;return v.createElement("div",{key:S,className:de(M,{[`${c}-${T}`]:T}),style:N},C)}))}))},jI=["parentNode"],MI="form_item";function Pa(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Xy(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:jI.includes(n)?`${MI}_${n}`:n}function Yy(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function Jy(e){return Pa(e).join("_")}function II(e,t){const n=t.getFieldInstance(e),r=Ih(n);if(r)return r;const o=Xy(Pa(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function Qy(e){const[t]=nd(),n=v.useRef({}),r=v.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=Jy(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=II(o,r);a&&JO(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=Jy(o);return n.current[i]}}),[e,t]);return[r]}const hl={};function AI(e){let{name:t}=e;const n=At("Form");A.useEffect(()=>{if(t)return hl[t]=(hl[t]||0)+1,oe.env.NODE_ENV!=="production"&&n(hl[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{hl[t]-=1}},[t])}var NI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const kI=(e,t)=>{const n=v.useContext(Kr),{getPrefixCls:r,direction:o,form:i}=v.useContext(Je),{prefixCls:a,className:l,rootClassName:s,size:c,disabled:u=n,form:f,colon:d,labelAlign:b,labelWrap:x,labelCol:O,wrapperCol:h,hideRequiredMark:y,layout:p="horizontal",scrollToFirstError:m,requiredMark:g,onFinishFailed:w,name:E,style:S,feedbackIcons:C,variant:T}=e,M=NI(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=xo(c),R=v.useContext(ym);oe.env.NODE_ENV!=="production"&&AI(e);const D=A.useMemo(()=>g!==void 0?g:y?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[y,g,i]),V=d!=null?d:i==null?void 0:i.colon,Z=r("form",a),J=Rn(Z),[I,U,K]=Hd(Z,J),z=de(Z,`${Z}-${p}`,{[`${Z}-hide-required-mark`]:D===!1,[`${Z}-rtl`]:o==="rtl",[`${Z}-${N}`]:N},K,J,U,i==null?void 0:i.className,l,s),[G]=Qy(f),{__INTERNAL__:L}=G;L.name=E;const F=A.useMemo(()=>({name:E,labelAlign:b,labelCol:O,labelWrap:x,wrapperCol:h,vertical:p==="vertical",colon:V,requiredMark:D,itemRef:L.itemRef,form:G,feedbackIcons:C}),[E,b,O,h,p,V,D,G,C]),X=v.useRef(null);v.useImperativeHandle(t,()=>{var W;return Object.assign(Object.assign({},G),{nativeElement:(W=X.current)===null||W===void 0?void 0:W.nativeElement})});const te=(W,Q)=>{if(W){let ie={block:"nearest"};typeof W=="object"&&(ie=W),G.scrollToField(Q,ie)}},H=W=>{if(w==null||w(W),W.errorFields.length){const Q=W.errorFields[0].name;if(m!==void 0){te(m,Q);return}i&&i.scrollToFirstError!==void 0&&te(i.scrollToFirstError,Q)}};return I(v.createElement(Iv.Provider,{value:T},v.createElement(du,{disabled:u},v.createElement(vo.Provider,{value:N},v.createElement(Mv,{validateMessages:R},v.createElement(jr.Provider,{value:F},v.createElement(ai,Object.assign({id:E},M,{name:E,onFinishFailed:H,form:G,ref:X,style:Object.assign(Object.assign({},i==null?void 0:i.style),S),className:z}))))))))},Zy=v.forwardRef(kI);oe.env.NODE_ENV!=="production"&&(Zy.displayName="Form");function LI(e){if(typeof e=="function")return e;const t=po(e);return t.length<=1?t[0]:t}const eb=()=>{const{status:e,errors:t=[],warnings:n=[]}=A.useContext(In);if(oe.env.NODE_ENV!=="production"){const r=At("Form.Item");oe.env.NODE_ENV!=="production"&&r(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:n}};eb.Context=In;function FI(e){const[t,n]=v.useState(e),r=A.useRef(null),o=A.useRef([]),i=A.useRef(!1);v.useEffect(()=>(i.current=!1,()=>{i.current=!0,Ht.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=Ht(()=>{r.current=null,n(s=>{let c=s;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(l))}return[t,a]}function DI(){const{itemRef:e}=v.useContext(jr),t=v.useRef({});function n(r,o){const i=o&&typeof o=="object"&&o.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Yn(e(r),i)),t.current.ref}return n}const BI=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},zI=ei(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Uy(e,n);return[BI(r)]}),qI=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:o,errors:i,warnings:a,_internalItemRender:l,extra:s,help:c,fieldId:u,marginBottom:f,onErrorVisibleChanged:d}=e,b=`${t}-item`,x=v.useContext(jr),O=r||x.wrapperCol||{},h=de(`${b}-control`,O.className),y=v.useMemo(()=>Object.assign({},x),[x]);delete y.labelCol,delete y.wrapperCol;const p=v.createElement("div",{className:`${b}-control-input`},v.createElement("div",{className:`${b}-control-input-content`},o)),m=v.useMemo(()=>({prefixCls:t,status:n}),[t,n]),g=f!==null||i.length||a.length?v.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},v.createElement(od.Provider,{value:m},v.createElement(Ky,{fieldId:u,errors:i,warnings:a,help:c,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:d})),!!f&&v.createElement("div",{style:{width:0,height:f}})):null,w={};u&&(w.id=`${u}_extra`);const E=s?v.createElement("div",Object.assign({},w,{className:`${b}-extra`}),s):null,S=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:p,errorList:g,extra:E}):v.createElement(v.Fragment,null,p,g,E);return v.createElement(jr.Provider,{value:y},v.createElement(Dd,Object.assign({},O,{className:h}),S),v.createElement(zI,{prefixCls:t}))};var VI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function HI(e){return e?typeof e=="object"&&!v.isValidElement(e)?e:{title:e}:null}const WI=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:s,tooltip:c,vertical:u}=e;var f;const[d]=$s("Form"),{labelAlign:b,labelCol:x,labelWrap:O,colon:h}=v.useContext(jr);if(!n)return null;const y=o||x||{},p=i||b,m=`${t}-item-label`,g=de(m,p==="left"&&`${m}-left`,y.className,{[`${m}-wrap`]:!!O});let w=n;const E=a===!0||h!==!1&&a!==!1;E&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const C=HI(c);if(C){const{icon:R=v.createElement($h,null)}=C,D=VI(C,["icon"]),V=v.createElement(Jr,Object.assign({},D),v.cloneElement(R,{className:`${t}-item-tooltip`,title:"",onClick:Z=>{Z.preventDefault()},tabIndex:null}));w=v.createElement(v.Fragment,null,w,V)}const T=s==="optional",M=typeof s=="function";M?w=s(w,{required:!!l}):T&&!l&&(w=v.createElement(v.Fragment,null,w,v.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((f=Gr.Form)===null||f===void 0?void 0:f.optional))));const N=de({[`${t}-item-required`]:l,[`${t}-item-required-mark-optional`]:T||M,[`${t}-item-no-colon`]:!E});return v.createElement(Dd,Object.assign({},y,{className:g}),v.createElement("label",{htmlFor:r,className:N,title:typeof n=="string"?n:""},w))},UI={success:Vi,warning:Hi,error:Uo,validating:us};function tb(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s}=e;const c=`${a}-item`,{feedbackIcons:u}=v.useContext(jr),f=Yy(n,r,l,null,!!o,i),{isFormItemInput:d,status:b,hasFeedback:x,feedbackIcon:O}=v.useContext(In),h=v.useMemo(()=>{var y;let p;if(o){const g=o!==!0&&o.icons||u,w=f&&((y=g==null?void 0:g({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),E=f&&UI[f];p=w!==!1&&E?v.createElement("span",{className:de(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},w||v.createElement(E,null)):null}const m={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:p,isFormItemInput:!0};return s&&(m.status=(f!=null?f:b)||"",m.isFormItemInput=d,m.hasFeedback=!!(o!=null?o:x),m.feedbackIcon=o!==void 0?m.feedbackIcon:O),m},[f,o,s,d,b]);return v.createElement(In.Provider,{value:h},t)}var GI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function KI(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:s,meta:c,hasFeedback:u,hidden:f,children:d,fieldId:b,required:x,isRequired:O,onSubItemMetaChange:h,layout:y}=e,p=GI(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),m=`${t}-item`,{requiredMark:g,vertical:w}=v.useContext(jr),E=w||y==="vertical",S=v.useRef(null),C=pl(a),T=pl(l),M=i!=null,N=!!(M||a.length||l.length),R=!!S.current&&Vs(S.current),[D,V]=v.useState(null);nn(()=>{if(N&&S.current){const K=getComputedStyle(S.current);V(parseInt(K.marginBottom,10))}},[N,R]);const Z=K=>{K||V(null)},I=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const z=K?C:c.errors,G=K?T:c.warnings;return Yy(z,G,c,"",!!u,s)}(),U=de(m,n,r,{[`${m}-with-help`]:M||C.length||T.length,[`${m}-has-feedback`]:I&&u,[`${m}-has-success`]:I==="success",[`${m}-has-warning`]:I==="warning",[`${m}-has-error`]:I==="error",[`${m}-is-validating`]:I==="validating",[`${m}-hidden`]:f,[`${m}-${y}`]:y});return v.createElement("div",{className:U,style:o,ref:S},v.createElement(Ny,Object.assign({className:`${m}-row`},Jn(p,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),v.createElement(WI,Object.assign({htmlFor:b},e,{requiredMark:g,required:x!=null?x:O,prefixCls:t,vertical:E})),v.createElement(qI,Object.assign({},e,c,{errors:C,warnings:T,prefixCls:t,status:I,help:i,marginBottom:D,onErrorVisibleChanged:Z}),v.createElement(jv.Provider,{value:h},v.createElement(tb,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:I},d)))),!!D&&v.createElement("div",{className:`${m}-margin-offset`,style:{marginBottom:-D}}))}const XI="__SPLIT__";function YI(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const JI=v.memo(e=>{let{children:t}=e;return t},(e,t)=>YI(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function nb(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function QI(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:s,required:c,label:u,messageVariables:f,trigger:d="onChange",validateTrigger:b,hidden:x,help:O,layout:h}=e,{getPrefixCls:y}=v.useContext(Je),{name:p}=v.useContext(jr),m=LI(s),g=typeof m=="function",w=v.useContext(jv),{validateTrigger:E}=v.useContext(Co),S=b!==void 0?b:E,C=t!=null,T=y("form",i),M=Rn(T),[N,R,D]=Hd(T,M),V=At("Form.Item");oe.env.NODE_ENV!=="production"&&oe.env.NODE_ENV!=="production"&&V(t!==null,"usage","`null` is passed as `name` property");const Z=v.useContext(ua),J=v.useRef(),[I,U]=FI({}),[K,z]=_o(()=>nb()),G=Q=>{const ie=Z==null?void 0:Z.getKey(Q.name);if(z(Q.destroy?nb():Q,!0),n&&O!==!1&&w){let ce=Q.name;if(Q.destroy)ce=J.current||ce;else if(ie!==void 0){const[B,q]=ie;ce=[B].concat(Ee(q)),J.current=ce}w(Q,ce)}},L=(Q,ie)=>{U(ce=>{const B=Object.assign({},ce),le=[].concat(Ee(Q.name.slice(0,-1)),Ee(ie)).join(XI);return Q.destroy?delete B[le]:B[le]=Q,B})},[F,X]=v.useMemo(()=>{const Q=Ee(K.errors),ie=Ee(K.warnings);return Object.values(I).forEach(ce=>{Q.push.apply(Q,Ee(ce.errors||[])),ie.push.apply(ie,Ee(ce.warnings||[]))}),[Q,ie]},[I,K.errors,K.warnings]),te=DI();function H(Q,ie,ce){return n&&!x?v.createElement(tb,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:K,errors:F,warnings:X,noStyle:!0},Q):v.createElement(KI,Object.assign({key:"row"},e,{className:de(r,D,M,R),prefixCls:T,fieldId:ie,isRequired:ce,errors:F,warnings:X,meta:K,onSubItemMetaChange:L,layout:h}),Q)}if(!C&&!g&&!o)return N(H(m));let W={};return typeof u=="string"?W.label=u:t&&(W.label=String(t)),f&&(W=Object.assign(Object.assign({},W),f)),N(v.createElement(ed,Object.assign({},e,{messageVariables:W,trigger:d,validateTrigger:S,onMetaChange:G}),(Q,ie,ce)=>{const B=Pa(t).length&&ie?ie.name:[],q=Xy(B,p),le=c!==void 0?c:!!(l!=null&&l.some(me=>{if(me&&typeof me=="object"&&me.required&&!me.warningOnly)return!0;if(typeof me=="function"){const Ce=me(ce);return(Ce==null?void 0:Ce.required)&&!(Ce!=null&&Ce.warningOnly)}return!1})),ne=Object.assign({},Q);let ve=null;if(oe.env.NODE_ENV!=="production"&&V(!(a&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(m)&&C)oe.env.NODE_ENV!=="production"&&V(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),ve=m;else if(g&&(!(a||o)||C))oe.env.NODE_ENV!=="production"&&V(!!(a||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),oe.env.NODE_ENV!=="production"&&V(!C,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!g&&!C)oe.env.NODE_ENV!=="production"&&V(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(v.isValidElement(m)){oe.env.NODE_ENV!=="production"&&V(m.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const me=Object.assign(Object.assign({},m.props),ne);if(me.id||(me.id=q),O||F.length>0||X.length>0||e.extra){const fe=[];(O||F.length>0)&&fe.push(`${q}_help`),e.extra&&fe.push(`${q}_extra`),me["aria-describedby"]=fe.join(" ")}F.length>0&&(me["aria-invalid"]="true"),le&&(me["aria-required"]="true"),qr(m)&&(me.ref=te(B,m)),new Set([].concat(Ee(Pa(d)),Ee(Pa(S)))).forEach(fe=>{me[fe]=function(){for(var Ne,Ie,Re,be,Se,Oe=arguments.length,Te=new Array(Oe),Ke=0;Ke<Oe;Ke++)Te[Ke]=arguments[Ke];(Re=ne[fe])===null||Re===void 0||(Ne=Re).call.apply(Ne,[ne].concat(Te)),(Se=(be=m.props)[fe])===null||Se===void 0||(Ie=Se).call.apply(Ie,[be].concat(Te))}});const Le=[me["aria-required"],me["aria-invalid"],me["aria-describedby"]];ve=v.createElement(JI,{control:ne,update:m,childProps:Le},Pr(m,me))}else g&&(a||o)&&!C?ve=m(ce):(oe.env.NODE_ENV!=="production"&&V(!B.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),ve=m);return H(ve,q,le)}))}const rb=QI;rb.useStatus=eb;var ZI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const eA=e=>{var{prefixCls:t,children:n}=e,r=ZI(e,["prefixCls","children"]);if(oe.env.NODE_ENV!=="production"){const l=At("Form.List");oe.env.NODE_ENV!=="production"&&l(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=v.useContext(Je),i=o("form",t),a=v.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return v.createElement(Ov,Object.assign({},r),(l,s,c)=>v.createElement(od.Provider,{value:a},n(l.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),s,{errors:c.errors,warnings:c.warnings})))};function tA(){const{form:e}=A.useContext(jr);return e}const Bn=Zy;Bn.Item=rb,Bn.List=eA,Bn.ErrorList=Ky,Bn.useForm=Qy,Bn.useFormInstance=tA,Bn.useWatch=Rv,Bn.Provider=Mv,Bn.create=()=>{oe.env.NODE_ENV!=="production"&&go(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};let zn=null,Ro=e=>e(),Ra=[],ja={};function ob(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=ja,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const nA=A.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=A.useContext(Je),i=ja.prefixCls||o("message"),a=A.useContext(h_),[l,s]=Rg(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return A.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),l[u].apply(l,arguments)}}),{instance:c,sync:r}}),s}),rA=A.forwardRef((e,t)=>{const[n,r]=A.useState(ob),o=()=>{r(ob)};A.useEffect(o,[]);const i=ia(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=A.createElement(nA,{ref:t,sync:o,messageConfig:n});return A.createElement(ir,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function ml(){if(!zn){const e=document.createDocumentFragment(),t={fragment:e};zn=t,Ro(()=>{qs(A.createElement(rA,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,ml())})}}),e)});return}zn.instance&&(Ra.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ro(()=>{const r=zn.instance.open(Object.assign(Object.assign({},ja),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ro(()=>{zn==null||zn.instance.destroy(e.key)});break;default:Ro(()=>{var r;const o=(r=zn.instance)[t].apply(r,Ee(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Ra=[])}function oA(e){ja=Object.assign(Object.assign({},ja),e),Ro(()=>{var t;(t=zn==null?void 0:zn.sync)===null||t===void 0||t.call(zn)})}function iA(e){const t=Ou(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Ra.push(o),()=>{r?Ro(()=>{r()}):o.skipped=!0}});return ml(),t}function aA(e,t){const n=ia();oe.env.NODE_ENV!=="production"&&!n.holderRender&&Su("message");const r=Ou(o=>{let i;const a={type:e,args:t,resolve:o,setCloseFn:l=>{i=l}};return Ra.push(a),()=>{i?Ro(()=>{i()}):a.skipped=!0}});return ml(),r}const sA=e=>{Ra.push({type:"destroy",key:e}),ml()},lA=["success","info","warning","error","loading"],ib={open:iA,destroy:sA,config:oA,useMessage:g$,_InternalPanelDoNotUseOrYouWillBeFired:l$};lA.forEach(e=>{ib[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return aA(e,n)}}),oe.env.NODE_ENV,oe.env.NODE_ENV;var cA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uA=UR(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:s}=e,c=cA(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=v.useContext(Je),f=u(),d=t||u("modal"),b=Rn(f),[x,O,h]=Xv(d,b),y=`${d}-confirm`;let p={};return i?p={closable:o!=null?o:!1,title:"",footer:"",children:v.createElement(Jv,Object.assign({},e,{prefixCls:d,confirmPrefixCls:y,rootPrefixCls:f,content:l}))}:p={closable:o!=null?o:!0,title:a,footer:s!==null&&v.createElement(qv,Object.assign({},e)),children:l},x(v.createElement(zu,Object.assign({prefixCls:d,className:de(O,`${d}-pure-panel`,i&&y,i&&`${y}-${i}`,n,h,b)},c,{closeIcon:zv(d,r),closable:o},p)))});function ab(e){return ha(t_(e))}const qn=Yv;qn.useModal=CR,qn.info=function(t){return ha(n_(t))},qn.success=function(t){return ha(r_(t))},qn.error=function(t){return ha(o_(t))},qn.warning=ab,qn.warn=ab,qn.confirm=function(t){return ha(i_(t))},qn.destroyAll=function(){for(;Oo.length;){const t=Oo.pop();t&&t()}},qn.config=yR,qn._InternalPanelDoNotUseOrYouWillBeFired=uA,oe.env.NODE_ENV!=="production"&&(qn.displayName="Modal");let lr=null,gl=e=>e(),vl=[],Ma={};function sb(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=Ma,l=(e==null?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const dA=A.forwardRef((e,t)=>{const{notificationConfig:n,sync:r}=e,{getPrefixCls:o}=A.useContext(Je),i=Ma.prefixCls||o("notification"),a=A.useContext(h_),[l,s]=p_(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.notification));return A.useEffect(r,[]),A.useImperativeHandle(t,()=>{const c=Object.assign({},l);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),l[u].apply(l,arguments)}}),{instance:c,sync:r}}),s}),fA=A.forwardRef((e,t)=>{const[n,r]=A.useState(sb),o=()=>{r(sb)};A.useEffect(o,[]);const i=ia(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),s=i.getTheme(),c=A.createElement(dA,{ref:t,sync:o,notificationConfig:n});return A.createElement(ir,{prefixCls:a,iconPrefixCls:l,theme:s},i.holderRender?i.holderRender(c):c)});function Ud(){if(!lr){const e=document.createDocumentFragment(),t={fragment:e};lr=t,gl(()=>{qs(A.createElement(fA,{ref:n=>{const{instance:r,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=o,Ud())})}}),e)});return}lr.instance&&(vl.forEach(e=>{switch(e.type){case"open":{gl(()=>{lr.instance.open(Object.assign(Object.assign({},Ma),e.config))});break}case"destroy":gl(()=>{lr==null||lr.instance.destroy(e.key)});break}}),vl=[])}function pA(e){Ma=Object.assign(Object.assign({},Ma),e),gl(()=>{var t;(t=lr==null?void 0:lr.sync)===null||t===void 0||t.call(lr)})}function lb(e){const t=ia();oe.env.NODE_ENV!=="production"&&!t.holderRender&&Su("notification"),vl.push({type:"open",config:e}),Ud()}const hA=e=>{vl.push({type:"destroy",key:e}),Ud()},mA=["success","info","warning","error"],Ia={open:lb,destroy:hA,config:pA,useNotification:WR,_InternalPanelDoNotUseOrYouWillBeFired:kR};mA.forEach(e=>{Ia[e]=t=>lb(Object.assign(Object.assign({},t),{type:e}))}),oe.env.NODE_ENV,oe.env.NODE_ENV;const gA=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},En(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${xe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},Gd=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return Wt(e,{tagFontSize:o,tagLineHeight:xe(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Kd=e=>({defaultBg:new Cn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),cb=gn("Tag",e=>{const t=Gd(e);return gA(t)},Kd);var vA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _A=v.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,s=vA(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=v.useContext(Je),f=y=>{a==null||a(!i),l==null||l(y)},d=c("tag",n),[b,x,O]=cb(d),h=de(d,`${d}-checkable`,{[`${d}-checkable-checked`]:i},u==null?void 0:u.className,o,x,O);return b(v.createElement("span",Object.assign({},s,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:h,onClick:f})))}),yA=e=>Rs(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),bA=ei(["Tag","preset"],e=>{const t=Gd(e);return yA(t)},Kd);function wA(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const _l=(e,t,n)=>{const r=wA(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},xA=ei(["Tag","status"],e=>{const t=Gd(e);return[_l(t,"success","Success"),_l(t,"processing","Info"),_l(t,"error","Error"),_l(t,"warning","Warning")]},Kd);var SA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yl=v.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:s,onClose:c,bordered:u=!0,visible:f}=e,d=SA(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:b,direction:x,tag:O}=v.useContext(Je),[h,y]=v.useState(!0),p=Jn(d,["closeIcon","closable"]);oe.env.NODE_ENV!=="production"&&At("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />"),v.useEffect(()=>{f!==void 0&&y(f)},[f]);const m=tl(s),g=Rj(s),w=m||g,E=Object.assign(Object.assign({backgroundColor:s&&!w?s:void 0},O==null?void 0:O.style),i),S=b("tag",n),[C,T,M]=cb(S),N=de(S,O==null?void 0:O.className,{[`${S}-${s}`]:w,[`${S}-has-color`]:s&&!w,[`${S}-hidden`]:!h,[`${S}-rtl`]:x==="rtl",[`${S}-borderless`]:!u},r,o,T,M),R=U=>{U.stopPropagation(),c==null||c(U),!U.defaultPrevented&&y(!1)},[,D]=kv(Xs(e),Xs(O),{closable:!1,closeIconRender:U=>{const K=v.createElement("span",{className:`${S}-close-icon`,onClick:R},U);return fg(U,K,z=>({onClick:G=>{var L;(L=z==null?void 0:z.onClick)===null||L===void 0||L.call(z,G),R(G)},className:de(z==null?void 0:z.className,`${S}-close-icon`)}))}}),V=typeof d.onClick=="function"||a&&a.type==="a",Z=l||null,J=Z?v.createElement(v.Fragment,null,Z,a&&v.createElement("span",null,a)):a,I=v.createElement("span",Object.assign({},p,{ref:t,className:N,style:E}),J,D,m&&v.createElement(bA,{key:"preset",prefixCls:S}),g&&v.createElement(xA,{key:"status",prefixCls:S}));return C(V?v.createElement(Iu,{component:"Tag"},I):I)});oe.env.NODE_ENV!=="production"&&(yl.displayName="Tag"),yl.CheckableTag=_A;const ub=({code:e})=>{const[t,n]=A.useState(!1),r=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)};return he.jsxs("div",{style:{position:"relative"},children:[e?he.jsx(Jr,{title:t?"Copied!":"Copy",children:he.jsx(yh,{style:{position:"absolute",top:"10px",right:"10px",zIndex:1,border:"none",padding:"5px",cursor:"pointer"},onClick:r})}):null,e?he.jsx("pre",{style:{padding:"8px",margin:0,backgroundColor:"F5F7FA",color:"#343741",fontSize:"12px",fontWeight:400,border:"none",whiteSpace:"pre-wrap",wordBreak:"break-word",overflowX:"auto"},children:he.jsx("code",{children:e})}):null]})},CA=":",db='"',EA="\\",OA=e=>{let t=0,n,r=!1;const o=[];function i(){return e[t]}function a(){let s=t+1;for(;s<e.length;){const c=e[s];if(c.match(/[^\s\r\n]/))return c;++s}}function l(){++t}for(;t<e.length;){const s=i();r?s===EA?l():s===db&&(a()!==CA&&o.push({startIndex:n,endIndex:t}),r=!1):s===db&&(n=t,r=!0),l()}return{stringValues:o}};function fb(e){const t=e.split('"""');for(let n=1;n<t.length-1;n+=2)t[n]=JSON.stringify(t[n]);return t.join("")}const $A=5*1024*1024;function TA(e){if(e.length>$A)return e;const{stringValues:t}=OA(e);if(t.length===0)return e;let n=e.substring(0,t[0].startIndex);for(let r=0;r<t.length;r++){const{startIndex:o,endIndex:i}=t[r],a=e.substring(o,i+1);!(a[1]==="\\"&&a[2]==='"'||a[a.length-2]==='"'&&a[a.length-3]==="\\")&&a.match(/\\./)?n+=`"""${JSON.parse(a)}"""`:n+=a,t[r+1]&&(n+=e.substring(i+1,t[r+1].startIndex))}return n+=e.substring(t[t.length-1].endIndex+1),n}function PA(e,t){return e<t.position.column?!1:e<=t.position.column+t.value.length}class RA{constructor(t,n){this.provider=t,this.currentTokenIdx=-1,this.currentPosition={lineNumber:-1,column:-1},this.tokensLineCache=this.provider.getTokens(n.lineNumber)||[];const r=this.tokensLineCache.findIndex(o=>PA(n.column,o));r>-1?this.updatePosition({tokenIdx:r,position:this.tokensLineCache[r].position}):this.updatePosition({tokenIdx:-1,position:n})}updateLineTokens(t){this.tokensLineCache=t}updatePosition(t){this.currentTokenIdx=t.tokenIdx,this.currentPosition=Me({},t.position)}step(t){const n=this.currentTokenIdx+t;let r=this.tokensLineCache[n];if(r)return this.updatePosition({tokenIdx:n,position:r.position}),r;const o=this.currentPosition.lineNumber+t,i=this.provider.getTokens(o);if(i){this.updateLineTokens(i);let a;t>0?(r=i[0],a=0):(r=i[i.length-1],a=r?i.length-1:0);const l=r?r.position:{column:1,lineNumber:o};return this.updatePosition({tokenIdx:a,position:l}),r||null}return null}getCurrentToken(){return this.tokensLineCache[this.currentTokenIdx]||null}getCurrentPosition(){return this.currentPosition}stepBackward(){return this.step(-1)}stepForward(){return this.step(1)}getCurrentTokenLineNumber(){const t=this.getCurrentToken();return t?t.position.lineNumber:null}getCurrentTokenColumn(){const t=this.getCurrentToken();return t?t.position.column:null}}function jo({editor:e,position:t}){const n=e.getTokenProvider();return new RA(n,t)}function jA(e){let t=e.data;return typeof t!="string"&&(t=t.join(`
228
- `)),e.method+" "+e.url+`
229
- `+t}function pb(e,t){return JSON.stringify(e,null,t?2:0)}function hb(e,t){let n=!1;const r=[];for(let o=0;o<e.length;o++){const i=e[o];try{let a=pb(JSON.parse(fb(i)),t);t&&(a=TA(a)),n=n||a!==i,r.push(a)}catch(a){console.log(a),r.push(i)}}return{changed:n,data:r}}const mb="/_search-center",MA="/elasticsearch",IA="team_id",AA="project_id",Xd=()=>localStorage.getItem(IA),Yd=()=>localStorage.getItem(AA);function NA(e){return"text/plain"}function kA(e,t,n,{clusterID:r}={}){const o=Rt.Deferred(),i={"X-Team-ID":Xd(),"X-Project-ID":Yd()},a={url:`${MA}/${r}/_proxy?`+OS.stringify({path:t,method:e}),headers:i,data:n,contentType:NA(),cache:!1,type:"POST",dataType:"json"};return Rt.ajax(a).then((l,s,c)=>{o.resolveWith({},[l,s,c])},(l,s,c)=>{l.status===0&&(l.responseText=`
230
-
231
- Failed to connect to Console's backend.
232
- Please check the server is up and running`),o.rejectWith({},[l,s,c])}),o}function LA(e){const t={"content-type":"application/json","X-Team-ID":Xd(),"X-Project-ID":Yd()};let n=`${mb}/elasticsearch/command?size=1000`;return fetch(n,{method:"GET",headers:t})}function FA(e,t){return e&&(e=e.replace(/\/+$/,"")),t=t.replace(/^\/+/,""),e+"/"+t}function DA(e){const t={"content-type":"application/json","X-Team-ID":Xd(),"X-Project-ID":Yd()};return fetch(`${mb}/elasticsearch/command`,{method:"POST",body:JSON.stringify(e),headers:t})}class BA{constructor(t){this.coreEditor=t,this.prevRequestStart=n=>{let r;for(n==null?r=this.coreEditor.getCurrentPosition().lineNumber:ye.isObject(n)?r=n.lineNumber:r=n;r>0&&!this.parser.isStartRequestRow(r,this.coreEditor);)r--;return{lineNumber:r,column:1}},this.nextRequestStart=n=>{let r;n==null?r=this.coreEditor.getCurrentPosition().lineNumber:ye.isObject(n)?r=n.lineNumber:r=n;const o=this.coreEditor.getLineCount();for(;r<o-1&&!this.parser.isStartRequestRow(r,this.coreEditor);r++);return{row:r,column:0}},this.autoIndent=ye.debounce(()=>Et(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const n=yield this.getRequestRange();if(!n)return;const r=yield this.getRequest();if(r&&r.data&&r.data.length>0){let o=r.data.length===1,i=hb(r.data,o);i.changed||(o=!o,i=hb(r.data,o)),r.data=i.data,this.replaceRequestRange(r,n)}}),25),this.update=(n,r=!1)=>Et(this,null,function*(){return this.coreEditor.setValue(n,r)}),this.replaceRequestRange=(n,r)=>{const o=jA(n);r?this.coreEditor.replaceRange(r,o):this.coreEditor.insert(this.coreEditor.getCurrentPosition(),o)},this.getRequestRange=n=>Et(this,null,function*(){if(yield this.coreEditor.waitForLatestTokens(),this.parser.isInBetweenRequestsRow(n))return null;const r=this.prevRequestStart(n),o=this.nextRequestEnd(r);return{start:Me({},r),end:Me({},o)}}),this.expandRangeToRequestEdges=(...r)=>Et(this,[...r],function*(n=this.coreEditor.getSelectionRange()){yield this.coreEditor.waitForLatestTokens();let o=n.start.lineNumber,i=n.end.lineNumber;const a=Math.max(1,this.coreEditor.getLineCount());if(!this.parser.isInBetweenRequestsRow(o))for(;o>=1&&!this.parser.isStartRequestRow(o);o--);if(o<1||o>i)return null;if(this.parser.isInBetweenRequestsRow(i))for(;i>=o&&!this.parser.isEndRequestRow(i);i--);else for(;i<=a&&!this.parser.isEndRequestRow(i);i++);if(i<o||i>a)return null;const l=(this.coreEditor.getLineValue(i)||"").replace(/\s+$/,"").length+1;return{start:{lineNumber:o,column:1},end:{lineNumber:i,column:l}}}),this.getRequestInRange=n=>Et(this,null,function*(){if(yield this.coreEditor.waitForLatestTokens(),!n)return null;const r={method:"",data:[],url:"",range:n},o=n.start,i=jo({editor:this.coreEditor,position:o});let a=i.getCurrentToken();if(this.parser.isEmptyToken(a)&&(a=this.parser.nextNonEmptyToken(i)),a==null||(r.method=a.value,a=this.parser.nextNonEmptyToken(i),!a||a.type==="method"))return null;for(r.url="";a&&a.type&&a.type.indexOf("url")===0;)r.url+=a.value,a=i.stepForward();this.parser.isEmptyToken(a)&&(a=this.parser.nextNonEmptyToken(i));let l=(a?0:1)+i.getCurrentPosition().lineNumber,s;for(;l<n.end.lineNumber||l===n.end.lineNumber&&1<n.end.column;){s=this.nextDataDocEnd({lineNumber:l,column:1});const c={start:{lineNumber:l,column:1},end:s},u=this.coreEditor.getValueInRange(c);r.data.push(u.trim()),l=s.lineNumber+1}return r}),this.getRequestsInRange=(...o)=>Et(this,[...o],function*(n=this.coreEditor.getSelectionRange(),r=!1){if(yield this.coreEditor.waitForLatestTokens(),!n)return[];const i=yield this.expandRangeToRequestEdges(n);if(!i)return[];const a=[];let l=i.start.lineNumber;const s=i.end.lineNumber;let c=i.start.lineNumber;const u=()=>{if(r){const f=this.coreEditor.getLines(l,c-1).join(`
233
- `);f&&a.push(f)}};for(;c<=s;)if(this.parser.isStartRequestRow(c)){u();const f=yield this.getRequest(c);if(f)a.push(f),l=c=f.range.end.lineNumber+1;else return a}else++c;return u(),a}),this.getRequest=n=>Et(this,null,function*(){if(yield this.coreEditor.waitForLatestTokens(),this.parser.isInBetweenRequestsRow(n))return null;const r=yield this.getRequestRange(n);return this.getRequestInRange(r)}),this.moveToPreviousRequestEdge=()=>Et(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const n=this.coreEditor.getCurrentPosition();for(n.lineNumber--;n.lineNumber>1&&!this.parser.isRequestEdge(n.lineNumber);n.lineNumber--);this.coreEditor.moveCursorToPosition({lineNumber:n.lineNumber,column:1})}),this.moveToNextRequestEdge=n=>Et(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const r=this.coreEditor.getCurrentPosition(),o=this.coreEditor.getLineCount();for(n||r.lineNumber++;r.lineNumber<o&&!this.parser.isRequestEdge(r.lineNumber);r.lineNumber++);this.coreEditor.moveCursorToPosition({lineNumber:r.lineNumber,column:1})}),this.nextRequestEnd=n=>{n=n||this.coreEditor.getCurrentPosition();const r=this.coreEditor.getLineCount();let o=n.lineNumber;for(;o<=r;++o){const a=this.parser.getRowParseMode(o);if((a&this.parser.MODE.REQUEST_END)>0||o!==n.lineNumber&&(a&this.parser.MODE.REQUEST_START)>0)break}const i=(this.coreEditor.getLineValue(o)||"").replace(/\s+$/,"").length+1;return{lineNumber:o,column:i}},this.nextDataDocEnd=n=>{n=n||this.coreEditor.getCurrentPosition();let r=n.lineNumber;const o=this.coreEditor.getLineCount();for(;r<o;r++){const a=this.parser.getRowParseMode(r);if((a&this.parser.MODE.REQUEST_END)>0||(a&this.parser.MODE.MULTI_DOC_CUR_DOC_END)>0||r!==n.lineNumber&&(a&this.parser.MODE.REQUEST_START)>0)break}const i=(this.coreEditor.getLineValue(r)||"").length+1;return{lineNumber:r,column:i}},this.highlightCurrentRequestsAndUpdateActionBar=ye.debounce(()=>Et(this,null,function*(){yield this.coreEditor.waitForLatestTokens();const n=yield this.expandRangeToRequestEdges();if(!(n===null&&this.currentReqRange===null)){if(n!==null&&this.currentReqRange!==null&&n.start.lineNumber===this.currentReqRange.start.lineNumber&&n.end.lineNumber===this.currentReqRange.end.lineNumber){this.coreEditor.getCurrentPosition().lineNumber===this.currentReqRange.start.lineNumber&&this.updateActionsBar();return}this.currentReqRange&&this.coreEditor.removeMarker(this.currentReqRange.markerRef),this.currentReqRange=n,this.currentReqRange&&(this.currentReqRange.markerRef=this.coreEditor.addMarker(this.currentReqRange)),this.updateActionsBar()}}),25),this.getRequestsAsCURL=(n,r)=>Et(this,null,function*(){const o=yield this.getRequestsInRange(r,!0);return ye.map(o,a=>{if(typeof a=="string")return a;const l=a.url,s=a.method,c=a.data,u=FA(n,l);let f="curl -X"+s+' "'+u+'"';if(c&&c.length){f+=` -H 'Content-Type: application/json' -d'
234
- `;const d=fb(c.join(`
235
- `));f+=d.replace(/'/g,"'\\''"),c.length>1&&(f+=`
236
- `),f+="'"}return f}).join(`
237
- `)}),this.updateActionsBar=()=>this.coreEditor.legacyUpdateUI(this.currentReqRange),this.currentReqRange=null,this.parser=t.getParser(),this.coreEditor.on("tokenizerUpdate",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeCursor",this.highlightCurrentRequestsAndUpdateActionBar.bind(this)),this.coreEditor.on("changeScrollTop",this.updateActionsBar.bind(this))}getCoreEditor(){return this.coreEditor}}ace.define("ace/snippets",["require","exports","module","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/anchor","ace/keyboard/hash_handler","ace/tokenizer","ace/lib/dom","ace/editor"],function(e,t,n){var r=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,i=e("./lib/lang"),a=e("./range").Range,l=e("./anchor").Anchor,s=e("./keyboard/hash_handler").HashHandler,c=e("./tokenizer").Tokenizer,u=a.comparePoints,f=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,o),this.getTokenizer=function(){function h(p,m,g){return p=p.substr(1),/^\d+$/.test(p)&&!g.inFormatString?[{tabstopId:parseInt(p,10)}]:[{text:p}]}function y(p){return"(?:[^\\\\"+p+"]|\\\\.)"}return f.$tokenizer=new c({start:[{regex:/:/,onMatch:function(p,m,g){return g.length&&g[0].expectIf?(g[0].expectIf=!1,g[0].elseBranch=g[0],[g[0]]):":"}},{regex:/\\./,onMatch:function(p,m,g){var w=p[1];return w=="}"&&g.length||"`$\\".indexOf(w)!=-1?p=w:g.inFormatString&&(w=="n"||w=="t"?p=`
238
- `:"ulULE".indexOf(w)!=-1&&(p={changeCase:w,local:w>"a"})),[p]}},{regex:/}/,onMatch:function(p,m,g){return[g.length?g.shift():p]}},{regex:/\$(?:\d+|\w+)/,onMatch:h},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(p,m,g){var w=h(p.substr(1),m,g);return g.unshift(w[0]),w},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+y("\\|")+"*\\|",onMatch:function(p,m,g){g[0].choices=p.slice(1,-1).split(",")},next:"start"},{regex:"/("+y("/")+"+)/(?:("+y("/")+"*)/)(\\w*):?",onMatch:function(p,m,g){var w=g[0];return w.fmtString=p,p=this.splitRegex.exec(p),w.guard=p[1],w.fmt=p[2],w.flag=p[3],""},next:"start"},{regex:"`"+y("`")+"*`",onMatch:function(p,m,g){return g[0].code=p.splice(1,-1),""},next:"start"},{regex:"\\?",onMatch:function(p,m,g){g[0]&&(g[0].expectIf=!0)},next:"start"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:"/("+y("/")+"+)/",token:"regex"},{regex:"",onMatch:function(p,m,g){g.inFormatString=!0},next:"start"}]}),f.prototype.getTokenizer=function(){return f.$tokenizer},f.$tokenizer},this.tokenizeTmSnippet=function(h,y){return this.getTokenizer().getLineTokens(h,y).tokens.map(function(p){return p.value||p})},this.$getDefaultValue=function(h,y){if(/^[A-Z]\d+$/.test(y)){var p=y.substr(1);return(this.variables[y[0]+"__"]||{})[p]}if(/^\d+$/.test(y))return(this.variables.__||{})[y];if(y=y.replace(/^TM_/,""),!!h){var m=h.session;switch(y){case"CURRENT_WORD":var g=m.getWordRange();case"SELECTION":case"SELECTED_TEXT":return m.getTextRange(g);case"CURRENT_LINE":return m.getLine(h.getCursorPosition().row);case"PREV_LINE":return m.getLine(h.getCursorPosition().row-1);case"LINE_INDEX":return h.getCursorPosition().column;case"LINE_NUMBER":return h.getCursorPosition().row+1;case"SOFT_TABS":return m.getUseSoftTabs()?"YES":"NO";case"TAB_SIZE":return m.getTabSize();case"FILENAME":case"FILEPATH":return"";case"FULLNAME":return"Ace"}}},this.variables={},this.getVariableValue=function(h,y){return this.variables.hasOwnProperty(y)?this.variables[y](h,y)||"":this.$getDefaultValue(h,y)||""},this.tmStrFormat=function(h,y,p){var m=y.flag||"",g=y.guard;g=new RegExp(g,m.replace(/[^gi]/,""));var w=this.tokenizeTmSnippet(y.fmt,"formatString"),E=this,S=h.replace(g,function(){E.variables.__=arguments;for(var C=E.resolveVariables(w,p),T="E",M=0;M<C.length;M++){var N=C[M];if(typeof N=="object")if(C[M]="",N.changeCase&&N.local){var R=C[M+1];R&&typeof R=="string"&&(N.changeCase=="u"?C[M]=R[0].toUpperCase():C[M]=R[0].toLowerCase(),C[M+1]=R.substr(1))}else N.changeCase&&(T=N.changeCase);else T=="U"?C[M]=N.toUpperCase():T=="L"&&(C[M]=N.toLowerCase())}return C.join("")});return this.variables.__=null,S},this.resolveVariables=function(h,y){for(var p=[],m=0;m<h.length;m++){var g=h[m];if(typeof g=="string")p.push(g);else{if(typeof g!="object")continue;if(g.skip)E(g);else{if(g.processed<m)continue;if(g.text){var w=this.getVariableValue(y,g.text);w&&g.fmtString&&(w=this.tmStrFormat(w,g)),g.processed=m,g.expectIf==null?w&&(p.push(w),E(g)):w?g.skip=g.elseBranch:E(g)}else(g.tabstopId!=null||g.changeCase!=null)&&p.push(g)}}}function E(S){var C=h.indexOf(S,m+1);C!=-1&&(m=C)}return p},this.insertSnippetForSelection=function(h,y){var p=h.getCursorPosition(),m=h.session.getLine(p.row),g=h.session.getTabString(),w=m.match(/^\s*/)[0];p.column<w.length&&(w=w.slice(0,p.column)),y=y.replace(/\r/g,"");var E=this.tokenizeTmSnippet(y);E=this.resolveVariables(E,h),E=E.map(function(F){return F==`
239
- `?F+w:typeof F=="string"?F.replace(/\t/g,g):F});var S=[];E.forEach(function(F,X){if(typeof F=="object"){var te=F.tabstopId,H=S[te];if(H||(H=S[te]=[],H.index=te,H.value=""),H.indexOf(F)===-1){H.push(F);var W=E.indexOf(F,X+1);if(W!==-1){var Q=E.slice(X+1,W),ie=Q.some(function(ce){return typeof ce=="object"});ie&&!H.value?H.value=Q:Q.length&&(!H.value||typeof H.value!="string")&&(H.value=Q.join(""))}}}}),S.forEach(function(F){F.length=0});var C={};function T(F){for(var X=[],te=0;te<F.length;te++){var H=F[te];if(typeof H=="object"){if(C[H.tabstopId])continue;var W=F.lastIndexOf(H,te-1);H=X[W]||{tabstopId:H.tabstopId}}X[te]=H}return X}for(var M=0;M<E.length;M++){var N=E[M];if(typeof N=="object"){var R=N.tabstopId,D=E.indexOf(N,M+1);if(C[R]){C[R]===N&&(C[R]=null);continue}var V=S[R],Z=typeof V.value=="string"?[V.value]:T(V.value);Z.unshift(M+1,Math.max(0,D-M)),Z.push(N),C[R]=N,E.splice.apply(E,Z),V.indexOf(N)===-1&&V.push(N)}}var J=0,I=0,U="";E.forEach(function(F){if(typeof F=="string"){var X=F.split(`
240
- `);X.length>1?(I=X[X.length-1].length,J+=X.length-1):I+=F.length,U+=F}else F.start?F.end={row:J,column:I}:F.start={row:J,column:I}});var K=h.getSelectionRange(),z=h.session.replace(K,U),G=new d(h),L=h.inVirtualSelectionMode&&h.selection.index;G.addTabstops(S,K.start,z,L)},this.insertSnippet=function(h,y){var p=this;if(h.inVirtualSelectionMode)return p.insertSnippetForSelection(h,y);h.forEachSelection(function(){p.insertSnippetForSelection(h,y)},null,{keepOrder:!0}),h.tabstopManager&&h.tabstopManager.tabNext()},this.$getScope=function(h){var y=h.session.$mode.$id||"";if(y=y.split("/").pop(),y==="html"||y==="php"){y==="php"&&!h.session.$mode.inlinePhp&&(y="html");var p=h.getCursorPosition(),m=h.session.getState(p.row);typeof m=="object"&&(m=m[0]),m.substring&&(m.substring(0,3)=="js-"?y="javascript":m.substring(0,4)=="css-"?y="css":m.substring(0,4)=="php-"&&(y="php"))}return y},this.getActiveScopes=function(h){var y=this.$getScope(h),p=[y],m=this.snippetMap;return m[y]&&m[y].includeScopes&&p.push.apply(p,m[y].includeScopes),p.push("_"),p},this.expandWithTab=function(h,y){var p=this,m=h.forEachSelection(function(){return p.expandSnippetForSelection(h,y)},null,{keepOrder:!0});return m&&h.tabstopManager&&h.tabstopManager.tabNext(),m},this.expandSnippetForSelection=function(h,y){var p=h.getCursorPosition(),m=h.session.getLine(p.row),g=m.substring(0,p.column),w=m.substr(p.column),E=this.snippetMap,S;return this.getActiveScopes(h).some(function(C){var T=E[C];return T&&(S=this.findMatchingSnippet(T,g,w)),!!S},this),S?(y&&y.dryRun||(h.session.doc.removeInLine(p.row,p.column-S.replaceBefore.length,p.column+S.replaceAfter.length),this.variables.M__=S.matchBefore,this.variables.T__=S.matchAfter,this.insertSnippetForSelection(h,S.content),this.variables.M__=this.variables.T__=null),!0):!1},this.findMatchingSnippet=function(h,y,p){for(var m=h.length;m--;){var g=h[m];if(!(g.startRe&&!g.startRe.test(y))&&!(g.endRe&&!g.endRe.test(p))&&!(!g.startRe&&!g.endRe))return g.matchBefore=g.startRe?g.startRe.exec(y):[""],g.matchAfter=g.endRe?g.endRe.exec(p):[""],g.replaceBefore=g.triggerRe?g.triggerRe.exec(y)[0]:"",g.replaceAfter=g.endTriggerRe?g.endTriggerRe.exec(p)[0]:"",g}},this.snippetMap={},this.snippetNameMap={},this.register=function(h,y){var p=this.snippetMap,m=this.snippetNameMap,g=this;h||(h=[]);function w(C){return C&&!/^\^?\(.*\)\$?$|^\\b$/.test(C)&&(C="(?:"+C+")"),C||""}function E(C,T,M){return C=w(C),T=w(T),C=T+C,C&&C[C.length-1]!="$"&&(C=C+"$"),new RegExp(C)}function S(C){C.scope||(C.scope=y||"_"),y=C.scope,p[y]||(p[y]=[],m[y]={});var T=m[y];if(C.name){var M=T[C.name];M&&g.unregister(M),T[C.name]=C}p[y].push(C),C.tabTrigger&&!C.trigger&&(!C.guard&&/^\w/.test(C.tabTrigger)&&(C.guard="\\b"),C.trigger=i.escapeRegExp(C.tabTrigger)),!(!C.trigger&&!C.guard&&!C.endTrigger&&!C.endGuard)&&(C.startRe=E(C.trigger,C.guard),C.triggerRe=new RegExp(C.trigger,"",!0),C.endRe=E(C.endTrigger,C.endGuard),C.endTriggerRe=new RegExp(C.endTrigger,"",!0))}h&&h.content?S(h):Array.isArray(h)&&h.forEach(S),this._signal("registerSnippets",{scope:y})},this.unregister=function(h,y){var p=this.snippetMap,m=this.snippetNameMap;function g(w){var E=m[w.scope||y];if(E&&E[w.name]){delete E[w.name];var S=p[w.scope||y],C=S&&S.indexOf(w);C>=0&&S.splice(C,1)}}h.content?g(h):Array.isArray(h)&&h.forEach(g)},this.parseSnippetFile=function(h){h=h.replace(/\r/g,"");for(var y=[],p={},m=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,g;g=m.exec(h);){if(g[1])try{p=JSON.parse(g[1]),y.push(p)}catch(C){}if(g[4])p.content=g[4].replace(/^\t/gm,""),y.push(p),p={};else{var w=g[2],E=g[3];if(w=="regex"){var S=/\/((?:[^\/\\]|\\.)*)|$/g;p.guard=S.exec(E)[1],p.trigger=S.exec(E)[1],p.endTrigger=S.exec(E)[1],p.endGuard=S.exec(E)[1]}else w=="snippet"?(p.tabTrigger=E.match(/^\S*/)[0],p.name||(p.name=E)):p[w]=E}}return y},this.getSnippetByName=function(h,y){var p=this.snippetNameMap,m;return this.getActiveScopes(y).some(function(g){var w=p[g];return w&&(m=w[h]),!!m},this),m}}).call(f.prototype);var d=function(h){if(h.tabstopManager)return h.tabstopManager;h.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=i.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(h)};(function(){this.attach=function(h){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=h,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(h){var y=h.action[0]=="r",p=h.start,m=h.end,g=p.row,w=m.row,E=w-g,S=m.column-p.column;if(y&&(E=-E,S=-S),!this.$inChange&&y){var C=this.selectedTabstop,T=C&&!C.some(function(D){return u(D.start,p)<=0&&u(D.end,m)>=0});if(T)return this.detach()}for(var M=this.ranges,N=0;N<M.length;N++){var R=M[N];if(!(R.end.row<p.row)){if(y&&u(p,R.start)<0&&u(m,R.end)>0){this.removeRange(R),N--;continue}R.start.row==g&&R.start.column>p.column&&(R.start.column+=S),R.end.row==g&&R.end.column>=p.column&&(R.end.column+=S),R.start.row>=g&&(R.start.row+=E),R.end.row>=g&&(R.end.row+=E),u(R.start,R.end)>0&&this.removeRange(R)}}M.length||this.detach()},this.updateLinkedFields=function(){var h=this.selectedTabstop;if(!(!h||!h.hasLinkedRanges)){this.$inChange=!0;for(var y=this.editor.session,p=y.getTextRange(h.firstNonLinked),m=h.length;m--;){var g=h[m];if(g.linked){var w=t.snippetManager.tmStrFormat(p,g.original);y.replace(g,w)}}this.$inChange=!1}},this.onAfterExec=function(h){h.command&&!h.command.readOnly&&this.updateLinkedFields()},this.onChangeSelection=function(){if(this.editor){for(var h=this.editor.selection.lead,y=this.editor.selection.anchor,p=this.editor.selection.isEmpty(),m=this.ranges.length;m--;)if(!this.ranges[m].linked){var g=this.ranges[m].contains(h.row,h.column),w=p||this.ranges[m].contains(y.row,y.column);if(g&&w)return}this.detach()}},this.onChangeSession=function(){this.detach()},this.tabNext=function(h){var y=this.tabstops.length,p=this.index+(h||1);p=Math.min(Math.max(p,1),y),p==y&&(p=0),this.selectTabstop(p),p===0&&this.detach()},this.selectTabstop=function(h){this.$openTabstops=null;var y=this.tabstops[this.index];if(y&&this.addTabstopMarkers(y),this.index=h,y=this.tabstops[this.index],!(!y||!y.length)){if(this.selectedTabstop=y,this.editor.inVirtualSelectionMode)this.editor.selection.setRange(y.firstNonLinked);else{var p=this.editor.multiSelect;p.toSingleRange(y.firstNonLinked.clone());for(var m=y.length;m--;)y.hasLinkedRanges&&y[m].linked||p.addRange(y[m].clone(),!0);p.ranges[0]&&p.addRange(p.ranges[0].clone())}this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)}},this.addTabstops=function(h,y,p){if(this.$openTabstops||(this.$openTabstops=[]),!h[0]){var m=a.fromPoints(p,p);x(m.start,y),x(m.end,y),h[0]=[m],h[0].index=0}var g=this.index,w=[g+1,0],E=this.ranges;h.forEach(function(S,C){for(var T=this.$openTabstops[C]||S,M=S.length;M--;){var N=S[M],R=a.fromPoints(N.start,N.end||N.start);b(R.start,y),b(R.end,y),R.original=N,R.tabstop=T,E.push(R),T!=S?T.unshift(R):T[M]=R,N.fmtString?(R.linked=!0,T.hasLinkedRanges=!0):T.firstNonLinked||(T.firstNonLinked=R)}T.firstNonLinked||(T.hasLinkedRanges=!1),T===S&&(w.push(T),this.$openTabstops[C]=T),this.addTabstopMarkers(T)},this),w.length>2&&(this.tabstops.length&&w.push(w.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,w))},this.addTabstopMarkers=function(h){var y=this.editor.session;h.forEach(function(p){p.markerId||(p.markerId=y.addMarker(p,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(h){var y=this.editor.session;h.forEach(function(p){y.removeMarker(p.markerId),p.markerId=null})},this.removeRange=function(h){var y=h.tabstop.indexOf(h);h.tabstop.splice(y,1),y=this.ranges.indexOf(h),this.ranges.splice(y,1),this.editor.session.removeMarker(h.markerId),h.tabstop.length||(y=this.tabstops.indexOf(h.tabstop),y!=-1&&this.tabstops.splice(y,1),this.tabstops.length||this.detach())},this.keyboardHandler=new s,this.keyboardHandler.bindKeys({Tab:function(h){t.snippetManager&&t.snippetManager.expandWithTab(h)||h.tabstopManager.tabNext(1)},"Shift-Tab":function(h){h.tabstopManager.tabNext(-1)},Esc:function(h){h.tabstopManager.detach()},Return:function(h){return!1}})}).call(d.prototype),l.prototype.onChange;var b=function(h,y){h.row==0&&(h.column+=y.column),h.row+=y.row},x=function(h,y){h.row==y.row&&(h.column-=y.column),h.row-=y.row};e("./lib/dom").importCssString(".ace_snippet-marker { -moz-box-sizing: border-box; box-sizing: border-box; background: rgba(194, 193, 208, 0.09); border: 1px dotted rgba(211, 208, 235, 0.62); position: absolute;}"),t.snippetManager=new f;var O=e("./editor").Editor;(function(){this.insertSnippet=function(h,y){return t.snippetManager.insertSnippet(this,h,y)},this.expandSnippet=function(h){return t.snippetManager.expandWithTab(this,h)}}).call(O.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(e,t,n){var r=e("../virtual_renderer").VirtualRenderer,o=e("../editor").Editor,i=e("../range").Range,a=e("../lib/event"),l=e("../lib/lang"),s=e("../lib/dom"),c=function(f){var d=new r(f);d.$maxLines=4;var b=new o(d);return b.setHighlightActiveLine(!1),b.setShowPrintMargin(!1),b.renderer.setShowGutter(!1),b.renderer.setHighlightGutterLine(!1),b.$mouseHandler.$focusWaitTimout=0,b.$highlightTagPending=!0,b},u=function(f){var d=s.createElement("div"),b=new c(d);f&&f.appendChild(d),d.style.display="none",b.renderer.content.style.cursor="default",b.renderer.setStyle("ace_autocomplete"),b.setOption("displayIndentGuides",!1),b.setOption("dragDelay",150);var x=function(){};b.focus=x,b.$isFocused=!0,b.renderer.$cursorLayer.restartTimer=x,b.renderer.$cursorLayer.element.style.opacity=0,b.renderer.$maxLines=8,b.renderer.$keepTextAreaAtCursor=!1,b.setHighlightActiveLine(!1),b.session.highlight(""),b.session.$searchHighlight.clazz="ace_highlight-marker",b.on("mousedown",function(w){var E=w.getDocumentPosition();b.selection.moveToPosition(E),y.start.row=y.end.row=E.row,w.stop()});var O,h=new i(-1,0,-1,1/0),y=new i(-1,0,-1,1/0);y.id=b.session.addMarker(y,"ace_active-line","fullLine"),b.setSelectOnHover=function(w){w?h.id&&(b.session.removeMarker(h.id),h.id=null):h.id=b.session.addMarker(h,"ace_line-hover","fullLine")},b.setSelectOnHover(!1),b.on("mousemove",function(w){if(!O){O=w;return}if(!(O.x==w.x&&O.y==w.y)){O=w,O.scrollTop=b.renderer.scrollTop;var E=O.getDocumentPosition().row;h.start.row!=E&&(h.id||b.setRow(E),m(E))}}),b.renderer.on("beforeRender",function(){if(O&&h.start.row!=-1){O.$pos=null;var w=O.getDocumentPosition().row;h.id||b.setRow(w),m(w,!0)}}),b.renderer.on("afterRender",function(){var w=b.getRow(),E=b.renderer.$textLayer,S=E.element.childNodes[w-E.config.firstRow];S!=E.selectedNode&&(E.selectedNode&&s.removeCssClass(E.selectedNode,"ace_selected"),E.selectedNode=S,S&&s.addCssClass(S,"ace_selected"))});var p=function(){m(-1)},m=function(w,E){w!==h.start.row&&(h.start.row=h.end.row=w,E||b.session._emit("changeBackMarker"),b._emit("changeHoverMarker"))};b.getHoveredRow=function(){return h.start.row},a.addListener(b.container,"mouseout",p),b.on("hide",p),b.on("changeSelection",p),b.session.doc.getLength=function(){return b.data.length},b.session.doc.getLine=function(w){var E=b.data[w];return typeof E=="string"?E:E&&E.value||""};var g=b.session.bgTokenizer;return g.$tokenizeRow=function(w){var E=b.data[w],S=[];if(!E)return S;typeof E=="string"&&(E={value:E}),E.caption||(E.caption=E.value||E.name);for(var C=-1,T,M,N=0;N<E.caption.length;N++)M=E.caption[N],T=E.matchMask&1<<N?1:0,C!==T?(S.push({type:E.className||(T?"completion-highlight":""),value:M}),C=T):S[S.length-1].value+=M;if(E.meta){var R=b.renderer.$size.scrollerWidth/b.renderer.layerConfig.characterWidth,D=E.meta;D.length+E.caption.length>R-2&&(D=D.substr(0,R-E.caption.length-3)+"…"),S.push({type:"rightAlignedText",value:D})}return S},g.$updateOnChange=x,g.start=x,b.session.$computeWidth=function(){return this.screenWidth=0},b.$blockScrolling=1/0,b.isOpen=!1,b.isTopdown=!1,b.autoSelect=!0,b.data=[],b.setData=function(w){b.setValue(l.stringRepeat(`
241
- `,w.length),-1),b.data=w||[],b.setRow(0)},b.getData=function(w){return b.data[w]},b.getRow=function(){return y.start.row},b.setRow=function(w){w=Math.max(this.autoSelect?0:-1,Math.min(this.data.length,w)),y.start.row!=w&&(b.selection.clearSelection(),y.start.row=y.end.row=w||0,b.session._emit("changeBackMarker"),b.moveCursorTo(w||0,0),b.isOpen&&b._signal("select"))},b.on("changeSelection",function(){b.isOpen&&b.setRow(b.selection.lead.row),b.renderer.scrollCursorIntoView()}),b.hide=function(){this.container.style.display="none",this._signal("hide"),b.isOpen=!1},b.show=function(w,E,S){var C=this.container,T=window.innerHeight,M=window.innerWidth,N=this.renderer,R=N.$maxLines*E*1.4,D=w.top+this.$borderSize,V=D>T/2&&!S;V&&D+E+R>T?(N.$maxPixelHeight=D-2*this.$borderSize,C.style.top="",C.style.bottom=T-D+"px",b.isTopdown=!1):(D+=E,N.$maxPixelHeight=T-D-.2*E,C.style.top=D+"px",C.style.bottom="",b.isTopdown=!0),C.style.display="",this.renderer.$textLayer.checkForSizeChanges();var Z=w.left;Z+C.offsetWidth>M&&(Z=M-C.offsetWidth),C.style.left=Z+"px",this._signal("show"),O=null,b.isOpen=!0},b.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},b.$imageSize=0,b.$borderSize=1,b};s.importCssString(".ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { background-color: #CAD6FA; z-index: 1;}.ace_editor.ace_autocomplete .ace_line-hover { border: 1px solid #abbffe; margin-top: -1px; background: rgba(233,233,253,0.4);}.ace_editor.ace_autocomplete .ace_line-hover { position: absolute; z-index: 2;}.ace_editor.ace_autocomplete .ace_scroller { background: none; border: none; box-shadow: none;}.ace_rightAlignedText { color: gray; display: inline-block; position: absolute; right: 4px; text-align: right; z-index: -1;}.ace_editor.ace_autocomplete .ace_completion-highlight{ color: #000; text-shadow: 0 0 0.01em;}.ace_editor.ace_autocomplete { width: 280px; z-index: 200000; background: #fbfbfb; color: #444; border: 1px lightgray solid; position: fixed; box-shadow: 2px 3px 5px rgba(0,0,0,.2); line-height: 1.4;}"),t.AcePopup=u}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,n){t.parForEach=function(o,i,a){var l=0,s=o.length;s===0&&a();for(var c=0;c<s;c++)i(o[c],function(u,f){l++,l===s&&a(u,f)})};var r=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/;t.retrievePrecedingIdentifier=function(o,i,a){a=a||r;for(var l=[],s=i-1;s>=0&&a.test(o[s]);s--)l.push(o[s]);return l.reverse().join("")},t.retrieveFollowingIdentifier=function(o,i,a){a=a||r;for(var l=[],s=i;s<o.length&&a.test(o[s]);s++)l.push(o[s]);return l},t.getCompletionPrefix=function(o){var i=o.getCursorPosition(),a=o.session.getLine(i.row),l;return o.completers.forEach(function(s){s.identifierRegexps&&s.identifierRegexps.forEach(function(c){!l&&c&&(l=this.retrievePrecedingIdentifier(a,i.column,c))}.bind(this))}.bind(this)),l||this.retrievePrecedingIdentifier(a,i.column)}}),ace.define("ace/autocomplete",["require","exports","module","ace/keyboard/hash_handler","ace/autocomplete/popup","ace/autocomplete/util","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/snippets"],function(e,t,n){var r=e("./keyboard/hash_handler").HashHandler,o=e("./autocomplete/popup").AcePopup,i=e("./autocomplete/util");e("./lib/event");var a=e("./lib/lang"),l=e("./lib/dom"),s=e("./snippets").snippetManager,c=function(){this.autoInsert=!1,this.autoSelect=!0,this.exactMatch=!1,this.gatherCompletionsId=0,this.keyboardHandler=new r,this.keyboardHandler.bindKeys(this.commands),this.blurListener=this.blurListener.bind(this),this.changeListener=this.changeListener.bind(this),this.mousedownListener=this.mousedownListener.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this),this.changeTimer=a.delayedCall(function(){this.updateCompletions(!0)}.bind(this)),this.tooltipTimer=a.delayedCall(this.updateDocTooltip.bind(this),50)};(function(){this.$init=function(){return this.popup=new o(document.body||document.documentElement),this.popup.on("click",function(f){this.insertMatch(),f.stop()}.bind(this)),this.popup.focus=this.editor.focus.bind(this.editor),this.popup.on("show",this.tooltipTimer.bind(null,null)),this.popup.on("select",this.tooltipTimer.bind(null,null)),this.popup.on("changeHoverMarker",this.tooltipTimer.bind(null,null)),this.popup},this.getPopup=function(){return this.popup||this.$init()},this.openPopup=function(f,d,b){this.popup||this.$init(),this.popup.autoSelect=this.autoSelect,this.popup.setData(this.completions.filtered),f.keyBinding.addKeyboardHandler(this.keyboardHandler);var x=f.renderer;if(this.popup.setRow(this.autoSelect?0:-1),b)b&&!d&&this.detach();else{this.popup.setTheme(f.getTheme()),this.popup.setFontSize(f.getFontSize());var O=x.layerConfig.lineHeight,h=x.$cursorLayer.getPixelPosition(this.base,!0);h.left-=this.popup.getTextLeftOffset();var y=f.container.getBoundingClientRect();h.top+=y.top-x.layerConfig.offset,h.left+=y.left-f.renderer.scrollLeft,h.left+=x.gutterWidth,this.popup.show(h,O)}},this.detach=function(){this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener),this.changeTimer.cancel(),this.hideDocTooltip(),this.gatherCompletionsId+=1,this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completions=this.base=null},this.changeListener=function(f){var d=this.editor.selection.lead;(d.row!=this.base.row||d.column<this.base.column)&&this.detach(),this.activated?this.changeTimer.schedule():this.detach()},this.blurListener=function(f){var d=document.activeElement,b=this.editor.textInput.getElement(),x=f.relatedTarget&&this.tooltipNode&&this.tooltipNode.contains(f.relatedTarget),O=this.popup&&this.popup.container;d!=b&&d.parentNode!=O&&!x&&d!=this.tooltipNode&&f.relatedTarget!=b&&this.detach()},this.mousedownListener=function(f){this.detach()},this.mousewheelListener=function(f){this.detach()},this.goTo=function(f){var d=this.popup.getRow(),b=this.popup.session.getLength()-1;switch(f){case"up":d=d<=0?b:d-1;break;case"down":d=d>=b?-1:d+1;break;case"start":d=0;break;case"end":d=b;break}this.popup.setRow(d)},this.insertMatch=function(f,d){if(f||(f=this.popup.getData(this.popup.getRow())),!f)return!1;if(f.completer&&f.completer.insertMatch)f.completer.insertMatch(this.editor,f);else{if(this.completions.filterText)for(var b=this.editor.selection.getAllRanges(),x=0,O;O=b[x];x++)O.start.column-=this.completions.filterText.length,this.editor.session.remove(O);f.snippet?s.insertSnippet(this.editor,f.snippet):this.editor.execCommand("insertstring",f.value||f)}this.detach()},this.commands={Up:function(f){f.completer.goTo("up")},Down:function(f){f.completer.goTo("down")},"Ctrl-Up|Ctrl-Home":function(f){f.completer.goTo("start")},"Ctrl-Down|Ctrl-End":function(f){f.completer.goTo("end")},Esc:function(f){f.completer.detach()},Return:function(f){return f.completer.insertMatch()},"Shift-Return":function(f){f.completer.insertMatch(null,{deleteSuffix:!0})},Tab:function(f){var d=f.completer.insertMatch();if(!d&&!f.tabstopManager)f.completer.goTo("down");else return d},PageUp:function(f){f.completer.popup.gotoPageUp()},PageDown:function(f){f.completer.popup.gotoPageDown()}},this.gatherCompletions=function(f,d){var b=f.getSession(),x=f.getCursorPosition(),O=i.getCompletionPrefix(f);this.base=b.doc.createAnchor(x.row,x.column-O.length),this.base.$insertRight=!0;var h=[],y=f.completers.length;return f.completers.forEach(function(p,m){p.getCompletions(f,b,x,O,function(g,w){!g&&w&&(h=h.concat(w)),d(null,{prefix:i.getCompletionPrefix(f),matches:h,finished:--y===0})})}),!0},this.showPopup=function(f){this.editor&&this.detach(),this.activated=!0,this.editor=f,f.completer!=this&&(f.completer&&f.completer.detach(),f.completer=this),f.on("changeSelection",this.changeListener),f.on("blur",this.blurListener),f.on("mousedown",this.mousedownListener),f.on("mousewheel",this.mousewheelListener),this.updateCompletions()},this.updateCompletions=function(f){if(f&&this.base&&this.completions){var d=this.editor.getCursorPosition(),b=this.editor.session.getTextRange({start:this.base,end:d});if(b==this.completions.filterText)return;if(this.completions.setFilter(b),!this.completions.filtered.length)return this.detach();if(this.completions.filtered.length==1&&this.completions.filtered[0].value==b&&!this.completions.filtered[0].snippet)return this.detach();this.openPopup(this.editor,b,f);return}var x=this.gatherCompletionsId;this.gatherCompletions(this.editor,function(O,h){var y=function(){if(h.finished)return this.detach()}.bind(this),p=h.prefix,m=h&&h.matches;if(!m||!m.length)return y();if(!(p.indexOf(h.prefix)!==0||x!=this.gatherCompletionsId)){this.completions=new u(m),this.exactMatch&&(this.completions.exactMatch=!0),this.completions.setFilter(p);var g=this.completions.filtered;if(!g.length||g.length==1&&g[0].value==p&&!g[0].snippet)return y();if(this.autoInsert&&g.length==1&&h.finished)return this.insertMatch(g[0]);this.openPopup(this.editor,p,f)}}.bind(this))},this.cancelContextMenu=function(){this.editor.$mouseHandler.cancelContextMenu()},this.updateDocTooltip=function(){var f=this.popup,d=f.data,b=d&&(d[f.getHoveredRow()]||d[f.getRow()]),x=null;if(!b||!this.editor||!this.popup.isOpen)return this.hideDocTooltip();if(this.editor.completers.some(function(O){return O.getDocTooltip&&(x=O.getDocTooltip(b)),x}),x||(x=b),typeof x=="string"&&(x={docText:x}),!x||!(x.docHTML||x.docText))return this.hideDocTooltip();this.showDocTooltip(x)},this.showDocTooltip=function(f){this.tooltipNode||(this.tooltipNode=l.createElement("div"),this.tooltipNode.className="ace_tooltip ace_doc-tooltip",this.tooltipNode.style.margin=0,this.tooltipNode.style.pointerEvents="auto",this.tooltipNode.tabIndex=-1,this.tooltipNode.onblur=this.blurListener.bind(this),this.tooltipNode.onclick=this.onTooltipClick.bind(this));var d=this.tooltipNode;f.docHTML?d.innerHTML=f.docHTML:f.docText&&(d.textContent=f.docText),d.parentNode||document.body.appendChild(d);var b=this.popup,x=b.container.getBoundingClientRect();d.style.top=b.container.style.top,d.style.bottom=b.container.style.bottom,window.innerWidth-x.right<320?(d.style.right=window.innerWidth-x.left+"px",d.style.left=""):(d.style.left=x.right+1+"px",d.style.right=""),d.style.display="block"},this.hideDocTooltip=function(){if(this.tooltipTimer.cancel(),!!this.tooltipNode){var f=this.tooltipNode;!this.editor.isFocused()&&document.activeElement==f&&this.editor.focus(),this.tooltipNode=null,f.parentNode&&f.parentNode.removeChild(f)}},this.onTooltipClick=function(f){for(var d=f.target;d&&d!=this.tooltipNode;){if(d.nodeName=="A"&&d.href){d.rel="noreferrer",d.target="_blank";break}d=d.parentNode}}}).call(c.prototype),c.startCommand={name:"startAutocomplete",exec:function(f){f.completer||(f.completer=new c),f.completer.autoInsert=!1,f.completer.autoSelect=!0,f.completer.showPopup(f),f.completer.cancelContextMenu()},bindKey:"Ctrl-Space|Ctrl-Shift-Space|Alt-Space"};var u=function(f,d){this.all=f,this.filtered=f,this.filterText=d||"",this.exactMatch=!1};(function(){this.setFilter=function(f){if(f.length>this.filterText&&f.lastIndexOf(this.filterText,0)===0)var d=this.filtered;else var d=this.all;this.filterText=f,d=this.filterCompletions(d,this.filterText),d=d.sort(function(x,O){return O.exactMatch-x.exactMatch||O.score-x.score});var b=null;d=d.filter(function(x){var O=x.snippet||x.caption||x.value;return O===b?!1:(b=O,!0)}),this.filtered=d},this.filterCompletions=function(f,d){var b=[],x=d.toUpperCase(),O=d.toLowerCase();e:for(var h=0,y;y=f[h];h++){var p=y.value||y.caption||y.snippet;if(p){var m=-1,g=0,w=0,E,S;if(this.exactMatch){if(d!==p.substr(0,d.length))continue e}else for(var C=0;C<d.length;C++){var T=p.indexOf(O[C],m+1),M=p.indexOf(x[C],m+1);if(E=T>=0&&(M<0||T<M)?T:M,E<0)continue e;S=E-m-1,S>0&&(m===-1&&(w+=10),w+=S),g=g|1<<E,m=E}y.matchMask=g,y.exactMatch=w?0:1,y.score=(y.score||0)-w,b.push(y)}}return b}}).call(u.prototype),t.Autocomplete=c,t.FilteredList=u}),ace.define("ace/autocomplete/text_completer",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=/[^a-zA-Z_0-9\$\-\u00C0-\u1FFF\u2C00-\uD7FF\w]+/;function i(l,s){var c=l.getTextRange(r.fromPoints({row:0,column:0},s));return c.split(o).length-1}function a(l,s){var c=i(l,s),u=l.getValue().split(o),f=Object.create(null),d=u[c];return u.forEach(function(b,x){if(!(!b||b===d)){var O=Math.abs(c-x),h=u.length-O;f[b]?f[b]=Math.max(h,f[b]):f[b]=h}}),f}t.getCompletions=function(l,s,c,u,f){var d=a(s,c),b=Object.keys(d);f(null,b.map(function(x){return{caption:x,value:x,score:d[x],meta:"local"}}))}}),ace.define("ace/ext/language_tools",["require","exports","module","ace/snippets","ace/autocomplete","ace/config","ace/lib/lang","ace/autocomplete/util","ace/autocomplete/text_completer","ace/editor","ace/config"],function(e,t,n){var r=e("../snippets").snippetManager,o=e("../autocomplete").Autocomplete,i=e("../config"),a=e("../lib/lang"),l=e("../autocomplete/util"),s=e("../autocomplete/text_completer"),c={getCompletions:function(p,m,g,w,E){if(m.$mode.completer)return m.$mode.completer.getCompletions(p,m,g,w,E);var S=p.session.getState(g.row),C=m.$mode.getCompletions(S,m,g,w);E(null,C)}},u={getCompletions:function(p,m,g,w,E){var S=r.snippetMap,C=[];r.getActiveScopes(p).forEach(function(T){for(var M=S[T]||[],N=M.length;N--;){var R=M[N],D=R.name||R.tabTrigger;D&&C.push({caption:D,snippet:R.content,meta:R.tabTrigger&&!R.name?R.tabTrigger+"⇥ ":"snippet",type:"snippet"})}},this),E(null,C)},getDocTooltip:function(p){p.type=="snippet"&&!p.docHTML&&(p.docHTML=["<b>",a.escapeHTML(p.caption),"</b>","<hr></hr>",a.escapeHTML(p.snippet)].join(""))}},f=[u,s,c];t.setCompleters=function(p){f.length=0,p&&f.push.apply(f,p)},t.addCompleter=function(p){f.push(p)},t.textCompleter=s,t.keyWordCompleter=c,t.snippetCompleter=u;var d={name:"expandSnippet",exec:function(p){return r.expandWithTab(p)},bindKey:"Tab"},b=function(p,m){x(m.session.$mode)},x=function(p){var m=p.$id;r.files||(r.files={}),O(m),p.modes&&p.modes.forEach(x)},O=function(p){if(!(!p||r.files[p])){var m=p.replace("mode","snippets");r.files[p]={},i.loadModule(m,function(g){g&&(r.files[p]=g,!g.snippets&&g.snippetText&&(g.snippets=r.parseSnippetFile(g.snippetText)),r.register(g.snippets||[],g.scope),g.includeScopes&&(r.snippetMap[g.scope].includeScopes=g.includeScopes,g.includeScopes.forEach(function(w){O("ace/mode/"+w)})))})}},h=function(p){var m=p.editor,g=m.completer&&m.completer.activated;if(p.command.name==="backspace")g&&!l.getCompletionPrefix(m)&&m.completer.detach();else if(p.command.name==="insertstring"){var w=l.getCompletionPrefix(m);w&&!g&&(m.completer||(m.completer=new o),m.completer.autoInsert=!1,m.completer.showPopup(m))}},y=e("../editor").Editor;e("../config").defineOptions(y.prototype,"editor",{enableBasicAutocompletion:{set:function(p){p?(this.completers||(this.completers=Array.isArray(p)?p:f),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(p){p?(this.completers||(this.completers=Array.isArray(p)?p:f),this.commands.on("afterExec",h)):this.commands.removeListener("afterExec",h)},value:!1},enableSnippets:{set:function(p){p?(this.commands.addCommand(d),this.on("changeMode",b),b(null,this)):(this.commands.removeCommand(d),this.off("changeMode",b))},value:!1}})}),function(){ace.acequire(["ace/ext/language_tools"],function(){})}(),ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"],function(e,t,n){var r=e("../lib/dom"),o=e("../lib/lang"),i=e("../lib/event"),a='.ace_search {background-color: #ddd;color: #666;border: 1px solid #cbcbcb;border-top: 0 none;overflow: hidden;margin: 0;padding: 4px 6px 0 4px;position: absolute;top: 0;z-index: 99;white-space: normal;}.ace_search.left {border-left: 0 none;border-radius: 0px 0px 5px 0px;left: 0;}.ace_search.right {border-radius: 0px 0px 0px 5px;border-right: 0 none;right: 0;}.ace_search_form, .ace_replace_form {margin: 0 20px 4px 0;overflow: hidden;line-height: 1.9;}.ace_replace_form {margin-right: 0;}.ace_search_form.ace_nomatch {outline: 1px solid red;}.ace_search_field {border-radius: 3px 0 0 3px;background-color: white;color: black;border: 1px solid #cbcbcb;border-right: 0 none;box-sizing: border-box!important;outline: 0;padding: 0;font-size: inherit;margin: 0;line-height: inherit;padding: 0 6px;min-width: 17em;vertical-align: top;}.ace_searchbtn {border: 1px solid #cbcbcb;line-height: inherit;display: inline-block;padding: 0 6px;background: #fff;border-right: 0 none;border-left: 1px solid #dcdcdc;cursor: pointer;margin: 0;position: relative;box-sizing: content-box!important;color: #666;}.ace_searchbtn:last-child {border-radius: 0 3px 3px 0;border-right: 1px solid #cbcbcb;}.ace_searchbtn:disabled {background: none;cursor: default;}.ace_searchbtn:hover {background-color: #eef1f6;}.ace_searchbtn.prev, .ace_searchbtn.next {padding: 0px 0.7em}.ace_searchbtn.prev:after, .ace_searchbtn.next:after {content: "";border: solid 2px #888;width: 0.5em;height: 0.5em;border-width: 2px 0 0 2px;display:inline-block;transform: rotate(-45deg);}.ace_searchbtn.next:after {border-width: 0 2px 2px 0 ;}.ace_searchbtn_close {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAcCAYAAABRVo5BAAAAZ0lEQVR42u2SUQrAMAhDvazn8OjZBilCkYVVxiis8H4CT0VrAJb4WHT3C5xU2a2IQZXJjiQIRMdkEoJ5Q2yMqpfDIo+XY4k6h+YXOyKqTIj5REaxloNAd0xiKmAtsTHqW8sR2W5f7gCu5nWFUpVjZwAAAABJRU5ErkJggg==) no-repeat 50% 0;border-radius: 50%;border: 0 none;color: #656565;cursor: pointer;font: 16px/16px Arial;padding: 0;height: 14px;width: 14px;top: 9px;right: 7px;position: absolute;}.ace_searchbtn_close:hover {background-color: #656565;background-position: 50% 100%;color: white;}.ace_button {margin-left: 2px;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;overflow: hidden;opacity: 0.7;border: 1px solid rgba(100,100,100,0.23);padding: 1px;box-sizing: border-box!important;color: black;}.ace_button:hover {background-color: #eee;opacity:1;}.ace_button:active {background-color: #ddd;}.ace_button.checked {border-color: #3399ff;opacity:1;}.ace_search_options{margin-bottom: 3px;text-align: right;-webkit-user-select: none;-moz-user-select: none;-o-user-select: none;-ms-user-select: none;user-select: none;clear: both;}.ace_search_counter {float: left;font-family: arial;padding: 0 8px;}',l=e("../keyboard/hash_handler").HashHandler,s=e("../lib/keys"),c=999;r.importCssString(a,"ace_searchbox");var u='<div class="ace_search right"> <span action="hide" class="ace_searchbtn_close"></span> <div class="ace_search_form"> <input class="ace_search_field" placeholder="Search for" spellcheck="false"></input> <span action="findPrev" class="ace_searchbtn prev"></span> <span action="findNext" class="ace_searchbtn next"></span> <span action="findAll" class="ace_searchbtn" title="Alt-Enter">All</span> </div> <div class="ace_replace_form"> <input class="ace_search_field" placeholder="Replace with" spellcheck="false"></input> <span action="replaceAndFindNext" class="ace_searchbtn">Replace</span> <span action="replaceAll" class="ace_searchbtn">All</span> </div> <div class="ace_search_options"> <span action="toggleReplace" class="ace_button" title="Toggel Replace mode" style="float:left;margin-top:-2px;padding:0 5px;">+</span> <span class="ace_search_counter"></span> <span action="toggleRegexpMode" class="ace_button" title="RegExp Search">.*</span> <span action="toggleCaseSensitive" class="ace_button" title="CaseSensitive Search">Aa</span> <span action="toggleWholeWords" class="ace_button" title="Whole Word Search">\\b</span> <span action="searchInSelection" class="ace_button" title="Search In Selection">S</span> </div></div>'.replace(/> +/g,">"),f=function(d,b,x){var O=r.createElement("div");O.innerHTML=u,this.element=O.firstChild,this.setSession=this.setSession.bind(this),this.$init(),this.setEditor(d)};(function(){this.setEditor=function(d){d.searchBox=this,d.renderer.scroller.appendChild(this.element),this.editor=d},this.setSession=function(d){this.searchRange=null,this.$syncOptions(!0)},this.$initElements=function(d){this.searchBox=d.querySelector(".ace_search_form"),this.replaceBox=d.querySelector(".ace_replace_form"),this.searchOption=d.querySelector("[action=searchInSelection]"),this.replaceOption=d.querySelector("[action=toggleReplace]"),this.regExpOption=d.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=d.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=d.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field"),this.searchCounter=d.querySelector(".ace_search_counter")},this.$init=function(){var d=this.element;this.$initElements(d);var b=this;i.addListener(d,"mousedown",function(x){setTimeout(function(){b.activeInput.focus()},0),i.stopPropagation(x)}),i.addListener(d,"click",function(x){var O=x.target||x.srcElement,h=O.getAttribute("action");h&&b[h]?b[h]():b.$searchBarKb.commands[h]&&b.$searchBarKb.commands[h].exec(b),i.stopPropagation(x)}),i.addCommandKeyListener(d,function(x,O,h){var y=s.keyCodeToString(h),p=b.$searchBarKb.findKeyCommand(O,y);p&&p.exec&&(p.exec(b),i.stopEvent(x))}),this.$onChange=o.delayedCall(function(){b.find(!1,!1)}),i.addListener(this.searchInput,"input",function(){b.$onChange.schedule(20)}),i.addListener(this.searchInput,"focus",function(){b.activeInput=b.searchInput,b.searchInput.value&&b.highlight()}),i.addListener(this.replaceInput,"focus",function(){b.activeInput=b.replaceInput,b.searchInput.value&&b.highlight()})},this.$closeSearchBarKb=new l([{bindKey:"Esc",name:"closeSearchBar",exec:function(d){d.searchBox.hide()}}]),this.$searchBarKb=new l,this.$searchBarKb.bindKeys({"Ctrl-f|Command-f":function(d){var b=d.isReplace=!d.isReplace;d.replaceBox.style.display=b?"":"none",d.replaceOption.checked=!1,d.$syncOptions(),d.searchInput.focus()},"Ctrl-H|Command-Option-F":function(d){d.replaceOption.checked=!0,d.$syncOptions(),d.replaceInput.focus()},"Ctrl-G|Command-G":function(d){d.findNext()},"Ctrl-Shift-G|Command-Shift-G":function(d){d.findPrev()},esc:function(d){setTimeout(function(){d.hide()})},Return:function(d){d.activeInput==d.replaceInput&&d.replace(),d.findNext()},"Shift-Return":function(d){d.activeInput==d.replaceInput&&d.replace(),d.findPrev()},"Alt-Return":function(d){d.activeInput==d.replaceInput&&d.replaceAll(),d.findAll()},Tab:function(d){(d.activeInput==d.replaceInput?d.searchInput:d.replaceInput).focus()}}),this.$searchBarKb.addCommands([{name:"toggleRegexpMode",bindKey:{win:"Alt-R|Alt-/",mac:"Ctrl-Alt-R|Ctrl-Alt-/"},exec:function(d){d.regExpOption.checked=!d.regExpOption.checked,d.$syncOptions()}},{name:"toggleCaseSensitive",bindKey:{win:"Alt-C|Alt-I",mac:"Ctrl-Alt-R|Ctrl-Alt-I"},exec:function(d){d.caseSensitiveOption.checked=!d.caseSensitiveOption.checked,d.$syncOptions()}},{name:"toggleWholeWords",bindKey:{win:"Alt-B|Alt-W",mac:"Ctrl-Alt-B|Ctrl-Alt-W"},exec:function(d){d.wholeWordOption.checked=!d.wholeWordOption.checked,d.$syncOptions()}},{name:"toggleReplace",exec:function(d){d.replaceOption.checked=!d.replaceOption.checked,d.$syncOptions()}},{name:"searchInSelection",exec:function(d){d.searchOption.checked=!d.searchRange,d.setSearchRange(d.searchOption.checked&&d.editor.getSelectionRange()),d.$syncOptions()}}]),this.setSearchRange=function(d){this.searchRange=d,d?this.searchRangeMarker=this.editor.session.addMarker(d,"ace_active-line"):this.searchRangeMarker&&(this.editor.session.removeMarker(this.searchRangeMarker),this.searchRangeMarker=null)},this.$syncOptions=function(d){r.setCssClass(this.replaceOption,"checked",this.searchRange),r.setCssClass(this.searchOption,"checked",this.searchOption.checked),this.replaceOption.textContent=this.replaceOption.checked?"-":"+",r.setCssClass(this.regExpOption,"checked",this.regExpOption.checked),r.setCssClass(this.wholeWordOption,"checked",this.wholeWordOption.checked),r.setCssClass(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),this.replaceBox.style.display=this.replaceOption.checked?"":"none",this.find(!1,!1,d)},this.highlight=function(d){this.editor.session.highlight(d||this.editor.$search.$options.re),this.editor.renderer.updateBackMarkers()},this.find=function(d,b,x){var O=this.editor.find(this.searchInput.value,{skipCurrent:d,backwards:b,wrap:!0,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked,preventScroll:x,range:this.searchRange}),h=!O&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",h),this.editor._emit("findSearchBox",{match:!h}),this.highlight(),this.updateCounter()},this.updateCounter=function(){var d=this.editor,b=d.$search.$options.re,x=0,O=0;if(b){var h=this.searchRange?d.session.getTextRange(this.searchRange):d.getValue(),y=d.session.doc.positionToIndex(d.selection.anchor);this.searchRange&&(y-=d.session.doc.positionToIndex(this.searchRange.start));for(var p=b.lastIndex=0,m;(m=b.exec(h))&&(x++,p=m.index,p<=y&&O++,!(x>c||!m[0]&&(b.lastIndex=p+=1,p>=h.length))););}this.searchCounter.textContent=O+" of "+(x>c?c+"+":x)},this.findNext=function(){this.find(!0,!1)},this.findPrev=function(){this.find(!0,!0)},this.findAll=function(){var d=this.editor.findAll(this.searchInput.value,{regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked}),b=!d&&this.searchInput.value;r.setCssClass(this.searchBox,"ace_nomatch",b),this.editor._emit("findSearchBox",{match:!b}),this.highlight(),this.hide()},this.replace=function(){this.editor.getReadOnly()||this.editor.replace(this.replaceInput.value)},this.replaceAndFindNext=function(){this.editor.getReadOnly()||(this.editor.replace(this.replaceInput.value),this.findNext())},this.replaceAll=function(){this.editor.getReadOnly()||this.editor.replaceAll(this.replaceInput.value)},this.hide=function(){this.active=!1,this.setSearchRange(null),this.editor.off("changeSession",this.setSession),this.element.style.display="none",this.editor.keyBinding.removeKeyboardHandler(this.$closeSearchBarKb),this.editor.focus()},this.show=function(d,b){this.active=!0,this.editor.on("changeSession",this.setSession),this.element.style.display="",this.replaceOption.checked=b,d&&(this.searchInput.value=d),this.searchInput.focus(),this.searchInput.select(),this.editor.keyBinding.addKeyboardHandler(this.$closeSearchBarKb),this.$syncOptions(!0)},this.isFocused=function(){var d=document.activeElement;return d==this.searchInput||d==this.replaceInput}}).call(f.prototype),t.SearchBox=f,t.Search=function(d,b){var x=d.searchBox||new f(d);x.show(d.session.getTextRange(),b)}}),function(){ace.acequire(["ace/ext/searchbox"],function(){})}();var bl={},gb;function zA(){return gb||(gb=1,bl.id="ace/mode/json_worker",bl.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.column<point2.column;return point1.row<point2.row||point1.row==point2.row&&bColIsAfter}function $getTransformedPoint(delta,point,moveIfEqual){var deltaIsInsert="insert"==delta.action,deltaRowShift=(deltaIsInsert?1:-1)*(delta.end.row-delta.start.row),deltaColShift=(deltaIsInsert?1:-1)*(delta.end.column-delta.start.column),deltaStart=delta.start,deltaEnd=deltaIsInsert?deltaStart:delta.end;return $pointsInOrder(point,deltaStart,moveIfEqual)?{row:point.row,column:point.column}:$pointsInOrder(deltaEnd,point,!moveIfEqual)?{row:point.row+deltaRowShift,column:point.column+(point.row==deltaEnd.row?deltaColShift:0)}:{row:deltaStart.row,column:deltaStart.column}}oop.implement(this,EventEmitter),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(delta){if(!(delta.start.row==delta.end.row&&delta.start.row!=this.row||delta.start.row>this.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},exports.getMatchOffsets=function(string,regExp){var matches=[];return string.replace(regExp,function(str){matches.push({offset:arguments[arguments.length-2],length:str.length})}),matches},exports.deferredCall=function(fcn){var timer=null,callback=function(){timer=null,fcn()},deferred=function(timeout){return deferred.cancel(),timer=setTimeout(callback,timeout||0),deferred};return deferred.schedule=deferred,deferred.call=function(){return this.cancel(),fcn(),deferred},deferred.cancel=function(){return clearTimeout(timer),timer=null,deferred},deferred.isPending=function(){return timer},deferred},exports.delayedCall=function(fcn,defaultTimeout){var timer=null,callback=function(){timer=null,fcn()},_self=function(timeout){null==timer&&(timer=setTimeout(callback,timeout||defaultTimeout))};return _self.delay=function(timeout){timer&&clearTimeout(timer),timer=setTimeout(callback,timeout||defaultTimeout)},_self.schedule=_self,_self.call=function(){this.cancel(),fcn()},_self.cancel=function(){timer&&clearTimeout(timer),timer=null},_self.isPending=function(){return timer},_self}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(acequire,exports){"use strict";acequire("../range").Range;var Document=acequire("../document").Document,lang=acequire("../lib/lang"),Mirror=exports.Mirror=function(sender){this.sender=sender;var doc=this.doc=new Document(""),deferredUpdate=this.deferredUpdate=lang.delayedCall(this.onUpdate.bind(this)),_self=this;sender.on("change",function(e){var data=e.data;if(data[0].start)doc.applyDeltas(data);else for(var i=0;data.length>i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={'"':'"',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:" "},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0
242
- }()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r   ᠎              \\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`),bl}ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(i,o),t.JsonHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){var r=e("../../lib/oop"),o=e("../../range").Range,i=e("./fold_mode").FoldMode,a=t.FoldMode=function(l){l&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+l.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+l.end)))};r.inherits(a,i),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(l,s,c){var u=l.getLine(c);if(this.singleLineBlockCommentRe.test(u)&&!this.startRegionRe.test(u)&&!this.tripleStarBlockCommentRe.test(u))return"";var f=this._getFoldWidgetBase(l,s,c);return!f&&this.startRegionRe.test(u)?"start":f},this.getFoldWidgetRange=function(l,s,c,u){var f=l.getLine(c);if(this.startRegionRe.test(f))return this.getCommentRegionBlock(l,f,c);var x=f.match(this.foldingStartMarker);if(x){var d=x.index;if(x[1])return this.openingBracketBlock(l,x[1],c,d);var b=l.getCommentFoldRange(c,d+x[0].length,1);return b&&!b.isMultiLine()&&(u?b=this.getSectionRange(l,c):s!="all"&&(b=null)),b}if(s!=="markbegin"){var x=f.match(this.foldingStopMarker);if(x){var d=x.index+x[0].length;return x[1]?this.closingBracketBlock(l,x[1],c,d):l.getCommentFoldRange(c,d,-1)}}},this.getSectionRange=function(l,s){var c=l.getLine(s),u=c.search(/\S/),f=s,d=c.length;s=s+1;for(var b=s,x=l.getLength();++s<x;){c=l.getLine(s);var O=c.search(/\S/);if(O!==-1){if(u>O)break;var h=this.getFoldWidgetRange(l,"all",s);if(h){if(h.start.row<=f)break;if(h.isMultiLine())s=h.end.row;else if(u==O)break}b=s}}return new o(f,d,b,l.getLine(b).length)},this.getCommentRegionBlock=function(l,s,c){for(var u=s.search(/\s*$/),f=l.getLength(),d=c,b=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,x=1;++c<f;){s=l.getLine(c);var O=b.exec(s);if(O&&(O[1]?x--:x++,!x))break}var h=c;if(h>d)return new o(d,u,h,s.length)}}.call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./behaviour/cstyle").CstyleBehaviour,s=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new a,this.$behaviour=new l,this.foldingRules=new s};r.inherits(u,o),function(){this.getNextLineIndent=function(f,d,b){var x=this.$getIndent(d);if(f=="start"){var O=d.match(/^.*[\{\(\[]\s*$/);O&&(x+=b)}return x},this.checkOutdent=function(f,d,b){return this.$outdent.checkOutdent(d,b)},this.autoOutdent=function(f,d,b){this.$outdent.autoOutdent(d,b)},this.createWorker=function(f){var d=new c(["ace"],zA(),"JsonWorker");return d.attachToDocument(f.getDocument()),d.on("annotate",function(b){f.setAnnotations(b.data)}),d.on("terminate",function(){f.clearAnnotations()}),d},this.$id="ace/mode/json"}.call(u.prototype),t.Mode=u});const vb=(e,t,n)=>({type:n.type,value:n.value,position:{lineNumber:e,column:t}}),qA=(e,t)=>{let n="";return t.map(r=>{const o=n.length+1;return n+=r.value,vb(e,o,r)})},VA=(e,t,n)=>{let r="";for(const o of n){const i=r.length+1;r+=o.value;const a=r.length;if(!(t<i)&&!(t>a+1))return vb(e,i,o)}return null};class HA{constructor(t){this.session=t}getTokens(t){var o;if(t<1)return null;const n=this.session.getLength();if(t>n)return null;const r=(o=this.session)==null?void 0:o.getTokens(t-1);return!r||!r.length?[]:qA(t,r)}getTokenAt(t){var r;const n=(r=this.session)==null?void 0:r.getTokens(t.lineNumber-1);return n?VA(t.lineNumber,t.column,n):null}}function WA(e){return e.match(/^\s*?curl\s+(-X[A-Z]+)?\s*['"]?.*?['"]?(\s*$|\s+?-d\s*?['"])/)}function UA(e){if(!e)return!1;for(const t of e.split(`
243
- `))if(WA(t))return!0;return!1}function GA(e){let t="NONE";const n=[];let r=[],o="";const i=e.trim().split(`
244
- `);let a;const l=/^\s*$/,s=/^\s*(?:#|\/{2,})(.*)\n?$/,c=/^\s*#!/,u=/^([^']*)'/,f=/^((?:[^\\"]|\\.)*)"/,d=/^((?:[^\\"']|\\.)+)/,b=/^\s*curl\s+/,x=/-X ?(GET|HEAD|POST|PUT|DELETE)/,O=/[\s"']https?:\/\//,h=/[\s"']https?:\/\/[^\/ ]+\/+([^\s"']+)/,y=/[\s"'][^\/ ]+\/+([^\s"']+)/,p=/^.+\s(--data|-d)\s*/,m=/^\s*(GET|HEAD|POST|PUT|DELETE)\s+\/?(.+)/;i.length>0&&c.test(i[0])&&i.shift();function g(){return o.length>0?!0:i.length===0?!1:(o=i.shift().replace(/[\r\n]+/g,`
245
- `)+`
246
- `,!0)}function w(){const M=r.pop().replace(/\\([\\"'])/g,"$1");r.push(M)}function E(){o.substr(0,1)==="'"?(o=o.substr(1),t="SINGLE_QUOTE"):o.substr(0,1)==='"'?(o=o.substr(1),t="DOUBLE_QUOTE"):t="UNQUOTED"}function S(){r.length>0&&(n.push(r.join("")),r=[]),t="LF",n.push(`
247
- `)}function C(M){const N=o.match(M);N?(r.push(N[1]),o=o.substr(N[0].length),E()):(r.push(o),o="")}function T(){let M="GET",N="",R;(R=o.match(x))&&(M=R[1]);const D=O.test(o)?h:y;(R=o.match(D))&&(N=R[1]),n.push(M+" /"+N+`
248
- `),(R=o.match(p))?(o=o.substr(R[0].length),E(),l.test(o)&&(o="")):(t="NONE",o="",n.push(""))}for(;g();)t==="SINGLE_QUOTE"?C(u):t==="DOUBLE_QUOTE"?(C(f),w()):t==="UNQUOTED"?(C(d),r.length&&w(),t==="UNQUOTED"&&(S(),o="")):t==="BODY"?s.test(o)||l.test(o)?S():(r.push(o),o=""):l.test(o)?(t!=="LF"&&(n.push(`
249
- `),t="LF"),o=""):(a=o.match(s))?(n.push("#"+a[1]+`
250
- `),t="NONE",o=""):b.test(o)?T():(a=o.match(m))?(n.push(a[1]+" /"+a[2]+`
251
- `),o="",t="BODY"):(n.push("### "+o),o="");return S(),n.join("").trim()}function _b(e){const t=e.resize,n=ye.throttle(()=>{t.call(e,!1);const r=ye.get(n,"topRow",0);r!==0&&e.renderer.scrollToLine(r,!1,!1,()=>{})},35);return n}class KA{constructor(t){this.name=t}getTerms(){return[]}match(){return{next:this.next}}}class An extends KA{constructor(t,n){super(t),this._nextDict={},n&&n.addComponent(this),this._parent=n}getComponent(t){return(this._nextDict[t]||[void 0])[0]}addComponent(t){const n=this._nextDict[t.name]||[];n.push(t),this._nextDict[t.name]=n,this.next=[].concat.apply([],ye.values(this._nextDict))}}class Mo extends An{constructor(t,n,r){super(t,n),ye.isString(r)&&(r=[r]),this.options=r||[t]}getTerms(){return this.options}addOption(t){Array.isArray(t)||(t=[t]),[].push.apply(this.options,t),this.options=ye.uniq(this.options)}match(t,n,r){return t!==this.name?null:super.match(t,n,r)}}class Vn extends An{constructor(t,n,r,o,i){super(t,r),this.listGenerator=Array.isArray(n)?function(){return n}:n,this.multiValued=ye.isUndefined(o)?!0:o,this.allowNonValidValues=ye.isUndefined(i)?!1:i}getTerms(t,n){if(!this.multiValued&&t.otherTokenValues)return[];let r=t.otherTokenValues||[];ye.isString(r)&&(r=[r]);let o=ye.difference(this.listGenerator(t,n),r);if(this.getDefaultTermMeta()){const i=this.getDefaultTermMeta();o=ye.map(o,function(a){return ye.isString(a)&&(a={name:a}),ye.defaults(a,{meta:i})})}return o}validateTokens(t){if(!this.multiValued&&t.length>1)return!1;const n=this.listGenerator();return!ye.some(t,function(o){return n.indexOf(o)===-1})}getContextKey(){return this.name}getDefaultTermMeta(){return this.name}match(t,n,r){if(Array.isArray(t)||(t=[t]),!this.allowNonValidValues&&!this.validateTokens(t,n,r))return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values[this.getContextKey()]=t,o}}class XA extends An{constructor(t,n){super(t,n)}match(t,n,r){const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values[this.name]=t,o}}class YA extends An{constructor(t,n){super("__condition"),this.predicate=t,this.delegate=n}getTerms(t,n){return this.predicate(t,n)?this.delegate.getTerms(t,n):null}match(t,n,r){return this.predicate(n,r)?this.delegate.match(t,n,r):!1}}class JA extends An{getTerms(){return null}match(t,n){const r={next:[]},o=n.globalComponentResolver(t,!1);return o&&r.next.push.apply(r.next,o),r.next.length||(r.next=[this]),r}}class QA extends An{constructor(t,n,r){super(t),this.constants=n,this.patternsAndWildCards=r}getTerms(t,n){const r=[];return ye.each(this.constants,function(o){r.push.apply(r,o.getTerms(t,n))}),ye.each(this.patternsAndWildCards,function(o){r.push.apply(r,o.getTerms(t,n))}),r}match(t,n,r){const o={next:[]};ye.each(this.constants,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)});const i=n.globalComponentResolver(t,!1);return i&&o.next.push.apply(o.next,i),o.next.length||ye.each(this.patternsAndWildCards,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}const Jd="__url_path_end__";class ZA extends An{constructor(t,n){super(t.id,n),this.endpoint=t}match(t,n,r){if(t!==Jd||this.endpoint.methods&&ye.indexOf(this.endpoint.methods,n.method)===-1)return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values.endpoint=this.endpoint,ye.isNumber(this.endpoint.priority)&&(o.priority=this.endpoint.priority),o}}class eN extends Mo{constructor(t,n,r){super(t,n),this.template=r,this.name=t}getTerms(){return[{name:this.name,snippet:this.template}]}}class tN{constructor(t){ES(this,"getTopLevelComponents",function(t){const n=this[t];return n?n.rootComponent.next:[]});["HEAD","GET","PUT","POST","DELETE"].forEach(n=>{this[n]={rootComponent:new An("ROOT"),parametrizedComponentFactories:t||{getComponent:()=>{}}}})}addEndpoint(t,n){n.methods.forEach(r=>{let o,i=this[r].rootComponent;n.template&&new eN(t+"[body]",i,n.template);const a=n.url_components||{},l=t.split("/");ye.each(l,(s,c)=>{if(s.search(/^{.+}$/)>=0){if(s=s.substr(1,s.length-2),i.getComponent(s)){i=i.getComponent(s);return}(o=a[s])?Array.isArray(o)?o=new Vn(s,o,i):ye.isObject(o)&&o.type==="list"?o=new Vn(s,o.list,i,o.multiValued,o.allow_non_valid):(console.warn("incorrectly configured url component ",s," in endpoint",n),o=new An(s)):(o=this[r].parametrizedComponentFactories.getComponent(s))?o=o(s,i):o=new XA(s,i),i=o}else{let u=s,f;for(c++;c<l.length&&(f=l[c],!(f.indexOf("{")>=0));c++)u+="/"+f;i.getComponent(s)?(i=i.getComponent(s),i.addOption(u)):(o=new Mo(s,i,u),i=o)}}),new ZA(n,i)})}}const nN=6e4;let Qd,wl={},Zd={},yb={},xl=[];const rN={};let Sl="";function bb(e,t){const n=Zd[t]||{};if(!e)return e;typeof e=="string"&&(e=[e]),e=Rt.map(e,function(i){return n[i]?n[i]:[i]});let r=[].concat.apply([],e);r.sort();let o;return r=Rt.map(r,function(i){const a=o===i?null:i;return o=i,a}),r.length>1?r:r[0]}function oN(e){return e=e.editor.editor.clusterID||Sl,[...yb[e]||[]]}function Aa(e,t,n){n=n||Sl;const r=wl[n]||{};let o=[];if(e=bb(e,n),typeof e=="string"){const i=r[e];if(!i)return[];if(typeof t=="string"){const a=i[t];o=a||[]}else Rt.each(i,function(a,l){(!t||t.length===0||Rt.inArray(a,t)!==-1)&&o.push(l)}),o=[].concat.apply([],o)}else Rt.each(r,function(i){(!e||e.length===0||Rt.inArray(i,e)!==-1)&&o.push(Aa(i,t,n))}),o=[].concat.apply([],o);return ye.uniqBy(o,function(i){return i.name+":"+i.type})}function wb(e,t){const n=wl[t]||{};let r=[];if(e=bb(e,t),typeof e=="string"){const o=n[e];if(!o)return[];Rt.each(o,function(i){r.push(i)})}else Rt.each(n,function(o){(!e||Rt.inArray(o,e)!==-1)&&r.push(wb(o,t))}),r=[].concat.apply([],r);return ye.uniq(r)}function ef(e,t){var i;typeof t!="string"&&(t=((i=t==null?void 0:t.editor)==null?void 0:i.clusterID)||Sl);const n=wl[t]||{},r=Zd[t]||[],o=[];return Rt.each(n,function(a){o.push(a)}),(typeof e=="undefined"||e)&&Rt.each(r,function(a){o.push(a)}),o}function xb(e,t){if(t.enabled===!1)return[];let n;function r(a){return(t.path||"full")==="full"?Rt.map(a,function(s){return s.name=e+"."+s.name,s}):a}if(t.properties)return n=tf(t.properties),r(n);const o=t.type,i={name:e,type:o};return t.index_name&&(i.name=t.index_name),t.fields?(n=Rt.map(t.fields,function(a,l){return xb(l,a)}),n=r(n),n.unshift(i),n):[i]}function tf(e={}){const t=Rt.map(e,function(n,r){return xb(r,n)});return ye.uniqBy(t,function(n){return n.name+":"+n.type})}function iN(e={},t){e=nf(e),yb[t]=Object.keys(e)}function nf(e){return e.response_body?JSON.parse(e.response_body):e}function aN(e,t){e=nf(e);let n={};Rt.each(e,function(r,o){const i={};o.mappings&&ye.keys(o).length===1&&(o=o.mappings),Rt.each(o,function(a,l){if(a==="properties"){const s=tf(l);i[a]=s}else i[a]=tf(l.properties)}),n[r]=i}),wl[t]=n}function sN(e,t){e=nf(e);let n={};Rt.each(e||{},function(r,o){Rt.each(o.aliases||{},function(i){if(i===r)return;let a=n[i];a||(a=[],n[i]=a),a.push(r)})}),n._all=ef(!1,t),Zd[t]=n}function Cl(e,t,n){const r={fields:"_mapping",indices:"_aliases",templates:"_template",commands:"commands/_search"};if(t[e]===!0)return e==="commands"?LA():kA("GET",r[e],null,{clusterID:n,asSystemRequest:!0});{const o=new Rt.Deferred;return t[e]===!1?o.resolveWith(this,[[JSON.stringify({})]]):o.resolve()}}function lN(){Qd&&clearTimeout(Qd)}function rf(e){return typeof e=="string"?JSON.parse(e):e}function Sb(e,t,n){lN();const r=Cl("fields",t,n),o=Cl("indices",t,n),i=Cl("templates",t,n),a=Cl("commands",t,n);Rt.when(r,o,i,a).done((l,s,c,u)=>{u&&cN(u);let f;l&&(l[0].length>10485760?(console.warn(`Mapping size is larger than 10MB (${l[0].length/1024/1024} MB). Ignoring...`),f="[{}]"):f=l[0],aN(rf(f),n)),s&&sN(rf(s[0]),n),c&&iN(rf(c[0]),n),l&&s&&Rt(rN).trigger("update",[f,s[0]]),Qd=setTimeout(()=>{e.getPolling()&&Sb(e,e.getAutocomplete(),n)},nN)})}function cN(e){return Et(this,null,function*(){const t=yield e.json();if(t.status&&t.status!=200)return;const n=t.hits.hits;n&&n.length>0&&n.forEach(r=>{xl.push(r)})})}function uN(e){xl.push(e)}function dN({editor:e}){const t=[];return xl.forEach(n=>{t.push(n._source.title)}),t}function fN(e){const t=xl.filter(n=>n._source.title==e);return t&&t[0]}function pN(e){Sl=e}function hN(e){return!(e==="_all"||e[0]!=="_")}class El extends Vn{constructor(t,n,r){super(t,ef,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,hN)}getDefaultTermMeta(){return"index"}getContextKey(){return"indices"}}function mN(e){return ye.map(Aa(e.indices,e.types),function(t){return{name:t.name,meta:t.type}})}class Cb extends Vn{constructor(t,n,r){super(t,mN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,function(n){return n.match(/[^\w.?*]/)})}getDefaultTermMeta(){return"field"}getContextKey(){return"fields"}}function gN(e){return wb(e.indices)}function vN(e){return!(e==="_all"||e[0]!=="_")}class Eb extends Vn{constructor(t,n,r){super(t,gN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,vN)}getDefaultTermMeta(){return"type"}getContextKey(){return"types"}}class _N extends An{constructor(t,n,r){super(t,n),this.multi_match=r}match(t,n,r){if(!t||!this.multi_match&&Array.isArray(t)||(t=Array.isArray(t)?t:[t],ye.find(t,function(i){return i.match(/[\/,]/)})))return null;const o=super.match(t,n,r);return o.context_values=o.context_values||{},o.context_values.id=t,o}}class yN extends Vn{constructor(t,n){super(t,oN,n,!0,!0)}getContextKey(){return"template"}}function bN(e){return e[0]==="_"}class Ob extends Vn{constructor(t,n,r){super(t,ef,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,bN)}getDefaultTermMeta(){return"username"}getContextKey(){return"username"}}var wN={exports:{}},$b={},gi={};(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},n={};n.byteLength=u,n.toByteArray=d,n.fromByteArray=O;for(var r=[],o=[],i=typeof Uint8Array!="undefined"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=a.length;l<s;++l)r[l]=a[l],o[a.charCodeAt(l)]=l;o[45]=62,o[95]=63;function c(p){var m=p.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=m);var w=g===m?0:4-g%4;return[g,w]}function u(p){var m=c(p),g=m[0],w=m[1];return(g+w)*3/4-w}function f(p,m,g){return(m+g)*3/4-g}function d(p){var m,g=c(p),w=g[0],E=g[1],S=new i(f(p,w,E)),C=0,T=E>0?w-4:w,M;for(M=0;M<T;M+=4)m=o[p.charCodeAt(M)]<<18|o[p.charCodeAt(M+1)]<<12|o[p.charCodeAt(M+2)]<<6|o[p.charCodeAt(M+3)],S[C++]=m>>16&255,S[C++]=m>>8&255,S[C++]=m&255;return E===2&&(m=o[p.charCodeAt(M)]<<2|o[p.charCodeAt(M+1)]>>4,S[C++]=m&255),E===1&&(m=o[p.charCodeAt(M)]<<10|o[p.charCodeAt(M+1)]<<4|o[p.charCodeAt(M+2)]>>2,S[C++]=m>>8&255,S[C++]=m&255),S}function b(p){return r[p>>18&63]+r[p>>12&63]+r[p>>6&63]+r[p&63]}function x(p,m,g){for(var w,E=[],S=m;S<g;S+=3)w=(p[S]<<16&16711680)+(p[S+1]<<8&65280)+(p[S+2]&255),E.push(b(w));return E.join("")}function O(p){for(var m,g=p.length,w=g%3,E=[],S=16383,C=0,T=g-w;C<T;C+=S)E.push(x(p,C,C+S>T?T:C+S));return w===1?(m=p[g-1],E.push(r[m>>2]+r[m<<4&63]+"==")):w===2&&(m=(p[g-2]<<8)+p[g-1],E.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),E.join("")}var h={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */h.read=function(p,m,g,w,E){var S,C,T=E*8-w-1,M=(1<<T)-1,N=M>>1,R=-7,D=g?E-1:0,V=g?-1:1,Z=p[m+D];for(D+=V,S=Z&(1<<-R)-1,Z>>=-R,R+=T;R>0;S=S*256+p[m+D],D+=V,R-=8);for(C=S&(1<<-R)-1,S>>=-R,R+=w;R>0;C=C*256+p[m+D],D+=V,R-=8);if(S===0)S=1-N;else{if(S===M)return C?NaN:(Z?-1:1)*(1/0);C=C+Math.pow(2,w),S=S-N}return(Z?-1:1)*C*Math.pow(2,S-w)},h.write=function(p,m,g,w,E,S){var C,T,M,N=S*8-E-1,R=(1<<N)-1,D=R>>1,V=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,Z=w?0:S-1,J=w?1:-1,I=m<0||m===0&&1/m<0?1:0;for(m=Math.abs(m),isNaN(m)||m===1/0?(T=isNaN(m)?1:0,C=R):(C=Math.floor(Math.log(m)/Math.LN2),m*(M=Math.pow(2,-C))<1&&(C--,M*=2),C+D>=1?m+=V/M:m+=V*Math.pow(2,1-D),m*M>=2&&(C++,M/=2),C+D>=R?(T=0,C=R):C+D>=1?(T=(m*M-1)*Math.pow(2,E),C=C+D):(T=m*Math.pow(2,D-1)*Math.pow(2,E),C=0));E>=8;p[g+Z]=T&255,Z+=J,T/=256,E-=8);for(C=C<<E|T,N+=E;N>0;p[g+Z]=C&255,Z+=J,C/=256,N-=8);p[g+Z-J]|=I*128};/*!
252
- * The buffer module from node.js, for the browser.
253
- *
254
- * @author Feross Aboukhadijeh <https://feross.org>
255
- * @license MIT
256
- */(function(p){const m=n,g=h,w=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=R,p.SlowBuffer=F,p.INSPECT_MAX_BYTES=50;const E=2147483647;p.kMaxLength=E;const{Uint8Array:S,ArrayBuffer:C,SharedArrayBuffer:T}=globalThis;R.TYPED_ARRAY_SUPPORT=M(),!R.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function M(){try{const k=new S(1),P={foo:function(){return 42}};return Object.setPrototypeOf(P,S.prototype),Object.setPrototypeOf(k,P),k.foo()===42}catch(k){return!1}}Object.defineProperty(R.prototype,"parent",{enumerable:!0,get:function(){if(R.isBuffer(this))return this.buffer}}),Object.defineProperty(R.prototype,"offset",{enumerable:!0,get:function(){if(R.isBuffer(this))return this.byteOffset}});function N(k){if(k>E)throw new RangeError('The value "'+k+'" is invalid for option "size"');const P=new S(k);return Object.setPrototypeOf(P,R.prototype),P}function R(k,P,j){if(typeof k=="number"){if(typeof P=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return J(k)}return D(k,P,j)}R.poolSize=8192;function D(k,P,j){if(typeof k=="string")return I(k,P);if(C.isView(k))return K(k);if(k==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k);if(rt(k,C)||k&&rt(k.buffer,C)||typeof T!="undefined"&&(rt(k,T)||k&&rt(k.buffer,T)))return z(k,P,j);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Y=k.valueOf&&k.valueOf();if(Y!=null&&Y!==k)return R.from(Y,P,j);const re=G(k);if(re)return re;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return R.from(k[Symbol.toPrimitive]("string"),P,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}R.from=function(k,P,j){return D(k,P,j)},Object.setPrototypeOf(R.prototype,S.prototype),Object.setPrototypeOf(R,S);function V(k){if(typeof k!="number")throw new TypeError('"size" argument must be of type number');if(k<0)throw new RangeError('The value "'+k+'" is invalid for option "size"')}function Z(k,P,j){return V(k),k<=0?N(k):P!==void 0?typeof j=="string"?N(k).fill(P,j):N(k).fill(P):N(k)}R.alloc=function(k,P,j){return Z(k,P,j)};function J(k){return V(k),N(k<0?0:L(k)|0)}R.allocUnsafe=function(k){return J(k)},R.allocUnsafeSlow=function(k){return J(k)};function I(k,P){if((typeof P!="string"||P==="")&&(P="utf8"),!R.isEncoding(P))throw new TypeError("Unknown encoding: "+P);const j=X(k,P)|0;let Y=N(j);const re=Y.write(k,P);return re!==j&&(Y=Y.slice(0,re)),Y}function U(k){const P=k.length<0?0:L(k.length)|0,j=N(P);for(let Y=0;Y<P;Y+=1)j[Y]=k[Y]&255;return j}function K(k){if(rt(k,S)){const P=new S(k);return z(P.buffer,P.byteOffset,P.byteLength)}return U(k)}function z(k,P,j){if(P<0||k.byteLength<P)throw new RangeError('"offset" is outside of buffer bounds');if(k.byteLength<P+(j||0))throw new RangeError('"length" is outside of buffer bounds');let Y;return P===void 0&&j===void 0?Y=new S(k):j===void 0?Y=new S(k,P):Y=new S(k,P,j),Object.setPrototypeOf(Y,R.prototype),Y}function G(k){if(R.isBuffer(k)){const P=L(k.length)|0,j=N(P);return j.length===0||k.copy(j,0,0,P),j}if(k.length!==void 0)return typeof k.length!="number"||pt(k.length)?N(0):U(k);if(k.type==="Buffer"&&Array.isArray(k.data))return U(k.data)}function L(k){if(k>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return k|0}function F(k){return+k!=k&&(k=0),R.alloc(+k)}R.isBuffer=function(P){return P!=null&&P._isBuffer===!0&&P!==R.prototype},R.compare=function(P,j){if(rt(P,S)&&(P=R.from(P,P.offset,P.byteLength)),rt(j,S)&&(j=R.from(j,j.offset,j.byteLength)),!R.isBuffer(P)||!R.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(P===j)return 0;let Y=P.length,re=j.length;for(let ue=0,_e=Math.min(Y,re);ue<_e;++ue)if(P[ue]!==j[ue]){Y=P[ue],re=j[ue];break}return Y<re?-1:re<Y?1:0},R.isEncoding=function(P){switch(String(P).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},R.concat=function(P,j){if(!Array.isArray(P))throw new TypeError('"list" argument must be an Array of Buffers');if(P.length===0)return R.alloc(0);let Y;if(j===void 0)for(j=0,Y=0;Y<P.length;++Y)j+=P[Y].length;const re=R.allocUnsafe(j);let ue=0;for(Y=0;Y<P.length;++Y){let _e=P[Y];if(rt(_e,S))ue+_e.length>re.length?(R.isBuffer(_e)||(_e=R.from(_e)),_e.copy(re,ue)):S.prototype.set.call(re,_e,ue);else if(R.isBuffer(_e))_e.copy(re,ue);else throw new TypeError('"list" argument must be an Array of Buffers');ue+=_e.length}return re};function X(k,P){if(R.isBuffer(k))return k.length;if(C.isView(k)||rt(k,C))return k.byteLength;if(typeof k!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof k);const j=k.length,Y=arguments.length>2&&arguments[2]===!0;if(!Y&&j===0)return 0;let re=!1;for(;;)switch(P){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return Nt(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j*2;case"hex":return j>>>1;case"base64":return Ct(k).length;default:if(re)return Y?-1:Nt(k).length;P=(""+P).toLowerCase(),re=!0}}R.byteLength=X;function te(k,P,j){let Y=!1;if((P===void 0||P<0)&&(P=0),P>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,P>>>=0,j<=P))return"";for(k||(k="utf8");;)switch(k){case"hex":return Ne(this,P,j);case"utf8":case"utf-8":return ve(this,P,j);case"ascii":return Le(this,P,j);case"latin1":case"binary":return fe(this,P,j);case"base64":return ne(this,P,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ie(this,P,j);default:if(Y)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),Y=!0}}R.prototype._isBuffer=!0;function H(k,P,j){const Y=k[P];k[P]=k[j],k[j]=Y}R.prototype.swap16=function(){const P=this.length;if(P%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<P;j+=2)H(this,j,j+1);return this},R.prototype.swap32=function(){const P=this.length;if(P%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<P;j+=4)H(this,j,j+3),H(this,j+1,j+2);return this},R.prototype.swap64=function(){const P=this.length;if(P%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<P;j+=8)H(this,j,j+7),H(this,j+1,j+6),H(this,j+2,j+5),H(this,j+3,j+4);return this},R.prototype.toString=function(){const P=this.length;return P===0?"":arguments.length===0?ve(this,0,P):te.apply(this,arguments)},R.prototype.toLocaleString=R.prototype.toString,R.prototype.equals=function(P){if(!R.isBuffer(P))throw new TypeError("Argument must be a Buffer");return this===P?!0:R.compare(this,P)===0},R.prototype.inspect=function(){let P="";const j=p.INSPECT_MAX_BYTES;return P=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(P+=" ... "),"<Buffer "+P+">"},w&&(R.prototype[w]=R.prototype.inspect),R.prototype.compare=function(P,j,Y,re,ue){if(rt(P,S)&&(P=R.from(P,P.offset,P.byteLength)),!R.isBuffer(P))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof P);if(j===void 0&&(j=0),Y===void 0&&(Y=P?P.length:0),re===void 0&&(re=0),ue===void 0&&(ue=this.length),j<0||Y>P.length||re<0||ue>this.length)throw new RangeError("out of range index");if(re>=ue&&j>=Y)return 0;if(re>=ue)return-1;if(j>=Y)return 1;if(j>>>=0,Y>>>=0,re>>>=0,ue>>>=0,this===P)return 0;let _e=ue-re,ze=Y-j;const ot=Math.min(_e,ze),at=this.slice(re,ue),ee=P.slice(j,Y);for(let pe=0;pe<ot;++pe)if(at[pe]!==ee[pe]){_e=at[pe],ze=ee[pe];break}return _e<ze?-1:ze<_e?1:0};function W(k,P,j,Y,re){if(k.length===0)return-1;if(typeof j=="string"?(Y=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,pt(j)&&(j=re?0:k.length-1),j<0&&(j=k.length+j),j>=k.length){if(re)return-1;j=k.length-1}else if(j<0)if(re)j=0;else return-1;if(typeof P=="string"&&(P=R.from(P,Y)),R.isBuffer(P))return P.length===0?-1:Q(k,P,j,Y,re);if(typeof P=="number")return P=P&255,typeof S.prototype.indexOf=="function"?re?S.prototype.indexOf.call(k,P,j):S.prototype.lastIndexOf.call(k,P,j):Q(k,[P],j,Y,re);throw new TypeError("val must be string, number or Buffer")}function Q(k,P,j,Y,re){let ue=1,_e=k.length,ze=P.length;if(Y!==void 0&&(Y=String(Y).toLowerCase(),Y==="ucs2"||Y==="ucs-2"||Y==="utf16le"||Y==="utf-16le")){if(k.length<2||P.length<2)return-1;ue=2,_e/=2,ze/=2,j/=2}function ot(ee,pe){return ue===1?ee[pe]:ee.readUInt16BE(pe*ue)}let at;if(re){let ee=-1;for(at=j;at<_e;at++)if(ot(k,at)===ot(P,ee===-1?0:at-ee)){if(ee===-1&&(ee=at),at-ee+1===ze)return ee*ue}else ee!==-1&&(at-=at-ee),ee=-1}else for(j+ze>_e&&(j=_e-ze),at=j;at>=0;at--){let ee=!0;for(let pe=0;pe<ze;pe++)if(ot(k,at+pe)!==ot(P,pe)){ee=!1;break}if(ee)return at}return-1}R.prototype.includes=function(P,j,Y){return this.indexOf(P,j,Y)!==-1},R.prototype.indexOf=function(P,j,Y){return W(this,P,j,Y,!0)},R.prototype.lastIndexOf=function(P,j,Y){return W(this,P,j,Y,!1)};function ie(k,P,j,Y){j=Number(j)||0;const re=k.length-j;Y?(Y=Number(Y),Y>re&&(Y=re)):Y=re;const ue=P.length;Y>ue/2&&(Y=ue/2);let _e;for(_e=0;_e<Y;++_e){const ze=parseInt(P.substr(_e*2,2),16);if(pt(ze))return _e;k[j+_e]=ze}return _e}function ce(k,P,j,Y){return kt(Nt(P,k.length-j),k,j,Y)}function B(k,P,j,Y){return kt(Qt(P),k,j,Y)}function q(k,P,j,Y){return kt(Ct(P),k,j,Y)}function le(k,P,j,Y){return kt(an(P,k.length-j),k,j,Y)}R.prototype.write=function(P,j,Y,re){if(j===void 0)re="utf8",Y=this.length,j=0;else if(Y===void 0&&typeof j=="string")re=j,Y=this.length,j=0;else if(isFinite(j))j=j>>>0,isFinite(Y)?(Y=Y>>>0,re===void 0&&(re="utf8")):(re=Y,Y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ue=this.length-j;if((Y===void 0||Y>ue)&&(Y=ue),P.length>0&&(Y<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let _e=!1;for(;;)switch(re){case"hex":return ie(this,P,j,Y);case"utf8":case"utf-8":return ce(this,P,j,Y);case"ascii":case"latin1":case"binary":return B(this,P,j,Y);case"base64":return q(this,P,j,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return le(this,P,j,Y);default:if(_e)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),_e=!0}},R.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ne(k,P,j){return P===0&&j===k.length?m.fromByteArray(k):m.fromByteArray(k.slice(P,j))}function ve(k,P,j){j=Math.min(k.length,j);const Y=[];let re=P;for(;re<j;){const ue=k[re];let _e=null,ze=ue>239?4:ue>223?3:ue>191?2:1;if(re+ze<=j){let ot,at,ee,pe;switch(ze){case 1:ue<128&&(_e=ue);break;case 2:ot=k[re+1],(ot&192)===128&&(pe=(ue&31)<<6|ot&63,pe>127&&(_e=pe));break;case 3:ot=k[re+1],at=k[re+2],(ot&192)===128&&(at&192)===128&&(pe=(ue&15)<<12|(ot&63)<<6|at&63,pe>2047&&(pe<55296||pe>57343)&&(_e=pe));break;case 4:ot=k[re+1],at=k[re+2],ee=k[re+3],(ot&192)===128&&(at&192)===128&&(ee&192)===128&&(pe=(ue&15)<<18|(ot&63)<<12|(at&63)<<6|ee&63,pe>65535&&pe<1114112&&(_e=pe))}}_e===null?(_e=65533,ze=1):_e>65535&&(_e-=65536,Y.push(_e>>>10&1023|55296),_e=56320|_e&1023),Y.push(_e),re+=ze}return Ce(Y)}const me=4096;function Ce(k){const P=k.length;if(P<=me)return String.fromCharCode.apply(String,k);let j="",Y=0;for(;Y<P;)j+=String.fromCharCode.apply(String,k.slice(Y,Y+=me));return j}function Le(k,P,j){let Y="";j=Math.min(k.length,j);for(let re=P;re<j;++re)Y+=String.fromCharCode(k[re]&127);return Y}function fe(k,P,j){let Y="";j=Math.min(k.length,j);for(let re=P;re<j;++re)Y+=String.fromCharCode(k[re]);return Y}function Ne(k,P,j){const Y=k.length;(!P||P<0)&&(P=0),(!j||j<0||j>Y)&&(j=Y);let re="";for(let ue=P;ue<j;++ue)re+=Lt[k[ue]];return re}function Ie(k,P,j){const Y=k.slice(P,j);let re="";for(let ue=0;ue<Y.length-1;ue+=2)re+=String.fromCharCode(Y[ue]+Y[ue+1]*256);return re}R.prototype.slice=function(P,j){const Y=this.length;P=~~P,j=j===void 0?Y:~~j,P<0?(P+=Y,P<0&&(P=0)):P>Y&&(P=Y),j<0?(j+=Y,j<0&&(j=0)):j>Y&&(j=Y),j<P&&(j=P);const re=this.subarray(P,j);return Object.setPrototypeOf(re,R.prototype),re};function Re(k,P,j){if(k%1!==0||k<0)throw new RangeError("offset is not uint");if(k+P>j)throw new RangeError("Trying to access beyond buffer length")}R.prototype.readUintLE=R.prototype.readUIntLE=function(P,j,Y){P=P>>>0,j=j>>>0,Y||Re(P,j,this.length);let re=this[P],ue=1,_e=0;for(;++_e<j&&(ue*=256);)re+=this[P+_e]*ue;return re},R.prototype.readUintBE=R.prototype.readUIntBE=function(P,j,Y){P=P>>>0,j=j>>>0,Y||Re(P,j,this.length);let re=this[P+--j],ue=1;for(;j>0&&(ue*=256);)re+=this[P+--j]*ue;return re},R.prototype.readUint8=R.prototype.readUInt8=function(P,j){return P=P>>>0,j||Re(P,1,this.length),this[P]},R.prototype.readUint16LE=R.prototype.readUInt16LE=function(P,j){return P=P>>>0,j||Re(P,2,this.length),this[P]|this[P+1]<<8},R.prototype.readUint16BE=R.prototype.readUInt16BE=function(P,j){return P=P>>>0,j||Re(P,2,this.length),this[P]<<8|this[P+1]},R.prototype.readUint32LE=R.prototype.readUInt32LE=function(P,j){return P=P>>>0,j||Re(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+this[P+3]*16777216},R.prototype.readUint32BE=R.prototype.readUInt32BE=function(P,j){return P=P>>>0,j||Re(P,4,this.length),this[P]*16777216+(this[P+1]<<16|this[P+2]<<8|this[P+3])},R.prototype.readBigUInt64LE=Ze(function(P){P=P>>>0,Ae(P,"offset");const j=this[P],Y=this[P+7];(j===void 0||Y===void 0)&&ft(P,this.length-8);const re=j+this[++P]*ln(2,8)+this[++P]*ln(2,16)+this[++P]*ln(2,24),ue=this[++P]+this[++P]*ln(2,8)+this[++P]*ln(2,16)+Y*ln(2,24);return BigInt(re)+(BigInt(ue)<<BigInt(32))}),R.prototype.readBigUInt64BE=Ze(function(P){P=P>>>0,Ae(P,"offset");const j=this[P],Y=this[P+7];(j===void 0||Y===void 0)&&ft(P,this.length-8);const re=j*ln(2,24)+this[++P]*ln(2,16)+this[++P]*ln(2,8)+this[++P],ue=this[++P]*ln(2,24)+this[++P]*ln(2,16)+this[++P]*ln(2,8)+Y;return(BigInt(re)<<BigInt(32))+BigInt(ue)}),R.prototype.readIntLE=function(P,j,Y){P=P>>>0,j=j>>>0,Y||Re(P,j,this.length);let re=this[P],ue=1,_e=0;for(;++_e<j&&(ue*=256);)re+=this[P+_e]*ue;return ue*=128,re>=ue&&(re-=Math.pow(2,8*j)),re},R.prototype.readIntBE=function(P,j,Y){P=P>>>0,j=j>>>0,Y||Re(P,j,this.length);let re=j,ue=1,_e=this[P+--re];for(;re>0&&(ue*=256);)_e+=this[P+--re]*ue;return ue*=128,_e>=ue&&(_e-=Math.pow(2,8*j)),_e},R.prototype.readInt8=function(P,j){return P=P>>>0,j||Re(P,1,this.length),this[P]&128?(255-this[P]+1)*-1:this[P]},R.prototype.readInt16LE=function(P,j){P=P>>>0,j||Re(P,2,this.length);const Y=this[P]|this[P+1]<<8;return Y&32768?Y|4294901760:Y},R.prototype.readInt16BE=function(P,j){P=P>>>0,j||Re(P,2,this.length);const Y=this[P+1]|this[P]<<8;return Y&32768?Y|4294901760:Y},R.prototype.readInt32LE=function(P,j){return P=P>>>0,j||Re(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},R.prototype.readInt32BE=function(P,j){return P=P>>>0,j||Re(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},R.prototype.readBigInt64LE=Ze(function(P){P=P>>>0,Ae(P,"offset");const j=this[P],Y=this[P+7];(j===void 0||Y===void 0)&&ft(P,this.length-8);const re=this[P+4]+this[P+5]*ln(2,8)+this[P+6]*ln(2,16)+(Y<<24);return(BigInt(re)<<BigInt(32))+BigInt(j+this[++P]*256+this[++P]*65536+this[++P]*16777216)}),R.prototype.readBigInt64BE=Ze(function(P){P=P>>>0,Ae(P,"offset");const j=this[P],Y=this[P+7];(j===void 0||Y===void 0)&&ft(P,this.length-8);const re=(j<<24)+this[++P]*ln(2,16)+this[++P]*ln(2,8)+this[++P];return(BigInt(re)<<BigInt(32))+BigInt(this[++P]*16777216+this[++P]*65536+this[++P]*256+Y)}),R.prototype.readFloatLE=function(P,j){return P=P>>>0,j||Re(P,4,this.length),g.read(this,P,!0,23,4)},R.prototype.readFloatBE=function(P,j){return P=P>>>0,j||Re(P,4,this.length),g.read(this,P,!1,23,4)},R.prototype.readDoubleLE=function(P,j){return P=P>>>0,j||Re(P,8,this.length),g.read(this,P,!0,52,8)},R.prototype.readDoubleBE=function(P,j){return P=P>>>0,j||Re(P,8,this.length),g.read(this,P,!1,52,8)};function be(k,P,j,Y,re,ue){if(!R.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>re||P<ue)throw new RangeError('"value" argument is out of bounds');if(j+Y>k.length)throw new RangeError("Index out of range")}R.prototype.writeUintLE=R.prototype.writeUIntLE=function(P,j,Y,re){if(P=+P,j=j>>>0,Y=Y>>>0,!re){const ze=Math.pow(2,8*Y)-1;be(this,P,j,Y,ze,0)}let ue=1,_e=0;for(this[j]=P&255;++_e<Y&&(ue*=256);)this[j+_e]=P/ue&255;return j+Y},R.prototype.writeUintBE=R.prototype.writeUIntBE=function(P,j,Y,re){if(P=+P,j=j>>>0,Y=Y>>>0,!re){const ze=Math.pow(2,8*Y)-1;be(this,P,j,Y,ze,0)}let ue=Y-1,_e=1;for(this[j+ue]=P&255;--ue>=0&&(_e*=256);)this[j+ue]=P/_e&255;return j+Y},R.prototype.writeUint8=R.prototype.writeUInt8=function(P,j,Y){return P=+P,j=j>>>0,Y||be(this,P,j,1,255,0),this[j]=P&255,j+1},R.prototype.writeUint16LE=R.prototype.writeUInt16LE=function(P,j,Y){return P=+P,j=j>>>0,Y||be(this,P,j,2,65535,0),this[j]=P&255,this[j+1]=P>>>8,j+2},R.prototype.writeUint16BE=R.prototype.writeUInt16BE=function(P,j,Y){return P=+P,j=j>>>0,Y||be(this,P,j,2,65535,0),this[j]=P>>>8,this[j+1]=P&255,j+2},R.prototype.writeUint32LE=R.prototype.writeUInt32LE=function(P,j,Y){return P=+P,j=j>>>0,Y||be(this,P,j,4,4294967295,0),this[j+3]=P>>>24,this[j+2]=P>>>16,this[j+1]=P>>>8,this[j]=P&255,j+4},R.prototype.writeUint32BE=R.prototype.writeUInt32BE=function(P,j,Y){return P=+P,j=j>>>0,Y||be(this,P,j,4,4294967295,0),this[j]=P>>>24,this[j+1]=P>>>16,this[j+2]=P>>>8,this[j+3]=P&255,j+4};function Se(k,P,j,Y,re){We(P,Y,re,k,j,7);let ue=Number(P&BigInt(4294967295));k[j++]=ue,ue=ue>>8,k[j++]=ue,ue=ue>>8,k[j++]=ue,ue=ue>>8,k[j++]=ue;let _e=Number(P>>BigInt(32)&BigInt(4294967295));return k[j++]=_e,_e=_e>>8,k[j++]=_e,_e=_e>>8,k[j++]=_e,_e=_e>>8,k[j++]=_e,j}function Oe(k,P,j,Y,re){We(P,Y,re,k,j,7);let ue=Number(P&BigInt(4294967295));k[j+7]=ue,ue=ue>>8,k[j+6]=ue,ue=ue>>8,k[j+5]=ue,ue=ue>>8,k[j+4]=ue;let _e=Number(P>>BigInt(32)&BigInt(4294967295));return k[j+3]=_e,_e=_e>>8,k[j+2]=_e,_e=_e>>8,k[j+1]=_e,_e=_e>>8,k[j]=_e,j+8}R.prototype.writeBigUInt64LE=Ze(function(P,j=0){return Se(this,P,j,BigInt(0),BigInt("0xffffffffffffffff"))}),R.prototype.writeBigUInt64BE=Ze(function(P,j=0){return Oe(this,P,j,BigInt(0),BigInt("0xffffffffffffffff"))}),R.prototype.writeIntLE=function(P,j,Y,re){if(P=+P,j=j>>>0,!re){const ot=Math.pow(2,8*Y-1);be(this,P,j,Y,ot-1,-ot)}let ue=0,_e=1,ze=0;for(this[j]=P&255;++ue<Y&&(_e*=256);)P<0&&ze===0&&this[j+ue-1]!==0&&(ze=1),this[j+ue]=(P/_e>>0)-ze&255;return j+Y},R.prototype.writeIntBE=function(P,j,Y,re){if(P=+P,j=j>>>0,!re){const ot=Math.pow(2,8*Y-1);be(this,P,j,Y,ot-1,-ot)}let ue=Y-1,_e=1,ze=0;for(this[j+ue]=P&255;--ue>=0&&(_e*=256);)P<0&&ze===0&&this[j+ue+1]!==0&&(ze=1),this[j+ue]=(P/_e>>0)-ze&255;return j+Y},R.prototype.writeInt8=function(P,j,Y){return P=+P,j=j>>>0,Y||be(this,P,j,1,127,-128),P<0&&(P=255+P+1),this[j]=P&255,j+1},R.prototype.writeInt16LE=function(P,j,Y){return P=+P,j=j>>>0,Y||be(this,P,j,2,32767,-32768),this[j]=P&255,this[j+1]=P>>>8,j+2},R.prototype.writeInt16BE=function(P,j,Y){return P=+P,j=j>>>0,Y||be(this,P,j,2,32767,-32768),this[j]=P>>>8,this[j+1]=P&255,j+2},R.prototype.writeInt32LE=function(P,j,Y){return P=+P,j=j>>>0,Y||be(this,P,j,4,2147483647,-2147483648),this[j]=P&255,this[j+1]=P>>>8,this[j+2]=P>>>16,this[j+3]=P>>>24,j+4},R.prototype.writeInt32BE=function(P,j,Y){return P=+P,j=j>>>0,Y||be(this,P,j,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),this[j]=P>>>24,this[j+1]=P>>>16,this[j+2]=P>>>8,this[j+3]=P&255,j+4},R.prototype.writeBigInt64LE=Ze(function(P,j=0){return Se(this,P,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),R.prototype.writeBigInt64BE=Ze(function(P,j=0){return Oe(this,P,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Te(k,P,j,Y,re,ue){if(j+Y>k.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function Ke(k,P,j,Y,re){return P=+P,j=j>>>0,re||Te(k,P,j,4),g.write(k,P,j,Y,23,4),j+4}R.prototype.writeFloatLE=function(P,j,Y){return Ke(this,P,j,!0,Y)},R.prototype.writeFloatBE=function(P,j,Y){return Ke(this,P,j,!1,Y)};function Xe(k,P,j,Y,re){return P=+P,j=j>>>0,re||Te(k,P,j,8),g.write(k,P,j,Y,52,8),j+8}R.prototype.writeDoubleLE=function(P,j,Y){return Xe(this,P,j,!0,Y)},R.prototype.writeDoubleBE=function(P,j,Y){return Xe(this,P,j,!1,Y)},R.prototype.copy=function(P,j,Y,re){if(!R.isBuffer(P))throw new TypeError("argument should be a Buffer");if(Y||(Y=0),!re&&re!==0&&(re=this.length),j>=P.length&&(j=P.length),j||(j=0),re>0&&re<Y&&(re=Y),re===Y||P.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),P.length-j<re-Y&&(re=P.length-j+Y);const ue=re-Y;return this===P&&typeof S.prototype.copyWithin=="function"?this.copyWithin(j,Y,re):S.prototype.set.call(P,this.subarray(Y,re),j),ue},R.prototype.fill=function(P,j,Y,re){if(typeof P=="string"){if(typeof j=="string"?(re=j,j=0,Y=this.length):typeof Y=="string"&&(re=Y,Y=this.length),re!==void 0&&typeof re!="string")throw new TypeError("encoding must be a string");if(typeof re=="string"&&!R.isEncoding(re))throw new TypeError("Unknown encoding: "+re);if(P.length===1){const _e=P.charCodeAt(0);(re==="utf8"&&_e<128||re==="latin1")&&(P=_e)}}else typeof P=="number"?P=P&255:typeof P=="boolean"&&(P=Number(P));if(j<0||this.length<j||this.length<Y)throw new RangeError("Out of range index");if(Y<=j)return this;j=j>>>0,Y=Y===void 0?this.length:Y>>>0,P||(P=0);let ue;if(typeof P=="number")for(ue=j;ue<Y;++ue)this[ue]=P;else{const _e=R.isBuffer(P)?P:R.from(P,re),ze=_e.length;if(ze===0)throw new TypeError('The value "'+P+'" is invalid for argument "value"');for(ue=0;ue<Y-j;++ue)this[ue+j]=_e[ue%ze]}return this};const tt={};function _t(k,P,j){tt[k]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:P.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${k}]`,this.stack,delete this.name}get code(){return k}set code(re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:re,writable:!0})}toString(){return`${this.name} [${k}]: ${this.message}`}}}_t("ERR_BUFFER_OUT_OF_BOUNDS",function(k){return k?`${k} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_t("ERR_INVALID_ARG_TYPE",function(k,P){return`The "${k}" argument must be of type number. Received type ${typeof P}`},TypeError),_t("ERR_OUT_OF_RANGE",function(k,P,j){let Y=`The value of "${k}" is out of range.`,re=j;return Number.isInteger(j)&&Math.abs(j)>4294967296?re=St(String(j)):typeof j=="bigint"&&(re=String(j),(j>ln(BigInt(2),BigInt(32))||j<-ln(BigInt(2),BigInt(32)))&&(re=St(re)),re+="n"),Y+=` It must be ${P}. Received ${re}`,Y},RangeError);function St(k){let P="",j=k.length;const Y=k[0]==="-"?1:0;for(;j>=Y+4;j-=3)P=`_${k.slice(j-3,j)}${P}`;return`${k.slice(0,j)}${P}`}function ht(k,P,j){Ae(P,"offset"),(k[P]===void 0||k[P+j]===void 0)&&ft(P,k.length-(j+1))}function We(k,P,j,Y,re,ue){if(k>j||k<P){const _e=typeof P=="bigint"?"n":"";let ze;throw P===0||P===BigInt(0)?ze=`>= 0${_e} and < 2${_e} ** ${(ue+1)*8}${_e}`:ze=`>= -(2${_e} ** ${(ue+1)*8-1}${_e}) and < 2 ** ${(ue+1)*8-1}${_e}`,new tt.ERR_OUT_OF_RANGE("value",ze,k)}ht(Y,re,ue)}function Ae(k,P){if(typeof k!="number")throw new tt.ERR_INVALID_ARG_TYPE(P,"number",k)}function ft(k,P,j){throw Math.floor(k)!==k?(Ae(k,j),new tt.ERR_OUT_OF_RANGE("offset","an integer",k)):P<0?new tt.ERR_BUFFER_OUT_OF_BOUNDS:new tt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${P}`,k)}const dt=/[^+/0-9A-Za-z-_]/g;function nt(k){if(k=k.split("=")[0],k=k.trim().replace(dt,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function Nt(k,P){P=P||1/0;let j;const Y=k.length;let re=null;const ue=[];for(let _e=0;_e<Y;++_e){if(j=k.charCodeAt(_e),j>55295&&j<57344){if(!re){if(j>56319){(P-=3)>-1&&ue.push(239,191,189);continue}else if(_e+1===Y){(P-=3)>-1&&ue.push(239,191,189);continue}re=j;continue}if(j<56320){(P-=3)>-1&&ue.push(239,191,189),re=j;continue}j=(re-55296<<10|j-56320)+65536}else re&&(P-=3)>-1&&ue.push(239,191,189);if(re=null,j<128){if((P-=1)<0)break;ue.push(j)}else if(j<2048){if((P-=2)<0)break;ue.push(j>>6|192,j&63|128)}else if(j<65536){if((P-=3)<0)break;ue.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((P-=4)<0)break;ue.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return ue}function Qt(k){const P=[];for(let j=0;j<k.length;++j)P.push(k.charCodeAt(j)&255);return P}function an(k,P){let j,Y,re;const ue=[];for(let _e=0;_e<k.length&&!((P-=2)<0);++_e)j=k.charCodeAt(_e),Y=j>>8,re=j%256,ue.push(re),ue.push(Y);return ue}function Ct(k){return m.toByteArray(nt(k))}function kt(k,P,j,Y){let re;for(re=0;re<Y&&!(re+j>=P.length||re>=k.length);++re)P[re+j]=k[re];return re}function rt(k,P){return k instanceof P||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===P.name}function pt(k){return k!==k}const Lt=function(){const k="0123456789abcdef",P=new Array(256);for(let j=0;j<16;++j){const Y=j*16;for(let re=0;re<16;++re)P[Y+re]=k[j]+k[re]}return P}();function Ze(k){return typeof BigInt=="undefined"?De:k}function De(){throw new Error("BigInt not supported")}})(t);const y=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=y,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode})(gi);const Io=uc(gi);var Tb={exports:{}},of={};(function(e){e.fetch=o(bt.fetch)&&o(bt.ReadableStream),e.writableStream=o(bt.WritableStream),e.abortController=o(bt.AbortController);var t;function n(){if(t!==void 0)return t;if(bt.XMLHttpRequest){t=new bt.XMLHttpRequest;try{t.open("GET",bt.XDomainRequest?"/":"https://example.com")}catch(i){t=null}}else t=null;return t}function r(i){var a=n();if(!a)return!1;try{return a.responseType=i,a.responseType===i}catch(l){}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(n()?o(n().overrideMimeType):!1);function o(i){return typeof i=="function"}t=null})(of);var af={exports:{}};typeof Object.create=="function"?af.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:af.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var Qr=af.exports,Ol={},sf={exports:{}},lf={exports:{}},vi=typeof Reflect=="object"?Reflect:null,Pb=vi&&typeof vi.apply=="function"?vi.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},$l;vi&&typeof vi.ownKeys=="function"?$l=vi.ownKeys:Object.getOwnPropertySymbols?$l=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:$l=function(t){return Object.getOwnPropertyNames(t)};function xN(e){console&&console.warn&&console.warn(e)}var Rb=Number.isNaN||function(t){return t!==t};function $t(){$t.init.call(this)}lf.exports=$t,lf.exports.once=ON,$t.EventEmitter=$t,$t.prototype._events=void 0,$t.prototype._eventsCount=0,$t.prototype._maxListeners=void 0;var jb=10;function Tl(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty($t,"defaultMaxListeners",{enumerable:!0,get:function(){return jb},set:function(e){if(typeof e!="number"||e<0||Rb(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");jb=e}}),$t.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},$t.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||Rb(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function Mb(e){return e._maxListeners===void 0?$t.defaultMaxListeners:e._maxListeners}$t.prototype.getMaxListeners=function(){return Mb(this)},$t.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var o=t==="error",i=this._events;if(i!==void 0)o=o&&i.error===void 0;else if(!o)return!1;if(o){var a;if(n.length>0&&(a=n[0]),a instanceof Error)throw a;var l=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw l.context=a,l}var s=i[t];if(s===void 0)return!1;if(typeof s=="function")Pb(s,this,n);else for(var c=s.length,u=Lb(s,c),r=0;r<c;++r)Pb(u[r],this,n);return!0};function Ib(e,t,n,r){var o,i,a;if(Tl(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a=="function"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),o=Mb(e),o>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,xN(l)}return e}$t.prototype.addListener=function(t,n){return Ib(this,t,n,!1)},$t.prototype.on=$t.prototype.addListener,$t.prototype.prependListener=function(t,n){return Ib(this,t,n,!0)};function SN(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ab(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=SN.bind(r);return o.listener=n,r.wrapFn=o,o}$t.prototype.once=function(t,n){return Tl(n),this.on(t,Ab(this,t,n)),this},$t.prototype.prependOnceListener=function(t,n){return Tl(n),this.prependListener(t,Ab(this,t,n)),this},$t.prototype.removeListener=function(t,n){var r,o,i,a,l;if(Tl(n),o=this._events,o===void 0)return this;if(r=o[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){l=r[a].listener,i=a;break}if(i<0)return this;i===0?r.shift():CN(r,i),r.length===1&&(o[t]=r[0]),o.removeListener!==void 0&&this.emit("removeListener",t,l||n)}return this},$t.prototype.off=$t.prototype.removeListener,$t.prototype.removeAllListeners=function(t){var n,r,o;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),a;for(o=0;o<i.length;++o)a=i[o],a!=="removeListener"&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(o=n.length-1;o>=0;o--)this.removeListener(t,n[o]);return this};function Nb(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?EN(o):Lb(o,o.length)}$t.prototype.listeners=function(t){return Nb(this,t,!0)},$t.prototype.rawListeners=function(t){return Nb(this,t,!1)},$t.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):kb.call(e,t)},$t.prototype.listenerCount=kb;function kb(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}$t.prototype.eventNames=function(){return this._eventsCount>0?$l(this._events):[]};function Lb(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function CN(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function EN(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function ON(e,t){return new Promise(function(n,r){function o(a){e.removeListener(t,i),r(a)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",o),n([].slice.call(arguments))}Fb(e,t,i,{once:!0}),t!=="error"&&$N(e,o,{once:!0})})}function $N(e,t,n){typeof e.on=="function"&&Fb(e,"error",t,n)}function Fb(e,t,n,r){if(typeof e.on=="function")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function o(i){r.once&&e.removeEventListener(t,o),n(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var cf=lf.exports,Db=cf.EventEmitter,uf={},Bb={},zb=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},TN=zb,df=function(){return TN()&&!!Symbol.toStringTag},PN=Error,RN=EvalError,jN=RangeError,MN=ReferenceError,qb=SyntaxError,Na=TypeError,IN=URIError,Vb=typeof Symbol!="undefined"&&Symbol,AN=zb,NN=function(){return typeof Vb!="function"||typeof Symbol!="function"||typeof Vb("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:AN()},ff={__proto__:null,foo:{}},kN=Object,LN=function(){return{__proto__:ff}.foo===ff.foo&&!(ff instanceof kN)},FN="Function.prototype.bind called on incompatible ",DN=Object.prototype.toString,BN=Math.max,zN="[object Function]",Hb=function(t,n){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},qN=function(t,n){for(var r=[],o=n,i=0;o<t.length;o+=1,i+=1)r[i]=t[o];return r},VN=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},HN=function(t){var n=this;if(typeof n!="function"||DN.apply(n)!==zN)throw new TypeError(FN+n);for(var r=qN(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,Hb(r,arguments));return Object(u)===u?u:this}return n.apply(t,Hb(r,arguments))},a=BN(0,n.length-r.length),l=[],s=0;s<a;s++)l[s]="$"+s;if(o=Function("binder","return function ("+VN(l,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,o.prototype=new c,c.prototype=null}return o},WN=HN,pf=Function.prototype.bind||WN,UN=Function.prototype.call,GN=Object.prototype.hasOwnProperty,KN=pf,XN=KN.call(UN,GN),ut,YN=PN,JN=RN,QN=jN,ZN=MN,_i=qb,yi=Na,ek=IN,Wb=Function,hf=function(e){try{return Wb('"use strict"; return ('+e+").constructor;")()}catch(t){}},Ao=Object.getOwnPropertyDescriptor;if(Ao)try{Ao({},"")}catch(e){Ao=null}var mf=function(){throw new yi},tk=Ao?function(){try{return arguments.callee,mf}catch(e){try{return Ao(arguments,"callee").get}catch(t){return mf}}}():mf,bi=NN(),nk=LN(),un=Object.getPrototypeOf||(nk?function(e){return e.__proto__}:null),wi={},rk=typeof Uint8Array=="undefined"||!un?ut:un(Uint8Array),No={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?ut:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ut:ArrayBuffer,"%ArrayIteratorPrototype%":bi&&un?un([][Symbol.iterator]()):ut,"%AsyncFromSyncIteratorPrototype%":ut,"%AsyncFunction%":wi,"%AsyncGenerator%":wi,"%AsyncGeneratorFunction%":wi,"%AsyncIteratorPrototype%":wi,"%Atomics%":typeof Atomics=="undefined"?ut:Atomics,"%BigInt%":typeof BigInt=="undefined"?ut:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ut:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ut:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ut:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":YN,"%eval%":eval,"%EvalError%":JN,"%Float32Array%":typeof Float32Array=="undefined"?ut:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ut:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ut:FinalizationRegistry,"%Function%":Wb,"%GeneratorFunction%":wi,"%Int8Array%":typeof Int8Array=="undefined"?ut:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ut:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ut:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":bi&&un?un(un([][Symbol.iterator]())):ut,"%JSON%":typeof JSON=="object"?JSON:ut,"%Map%":typeof Map=="undefined"?ut:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!bi||!un?ut:un(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ut:Promise,"%Proxy%":typeof Proxy=="undefined"?ut:Proxy,"%RangeError%":QN,"%ReferenceError%":ZN,"%Reflect%":typeof Reflect=="undefined"?ut:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ut:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!bi||!un?ut:un(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ut:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":bi&&un?un(""[Symbol.iterator]()):ut,"%Symbol%":bi?Symbol:ut,"%SyntaxError%":_i,"%ThrowTypeError%":tk,"%TypedArray%":rk,"%TypeError%":yi,"%Uint8Array%":typeof Uint8Array=="undefined"?ut:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ut:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ut:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ut:Uint32Array,"%URIError%":ek,"%WeakMap%":typeof WeakMap=="undefined"?ut:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ut:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ut:WeakSet};if(un)try{null.error}catch(e){var ok=un(un(e));No["%Error.prototype%"]=ok}var ik=function e(t){var n;if(t==="%AsyncFunction%")n=hf("async function () {}");else if(t==="%GeneratorFunction%")n=hf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=hf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&un&&(n=un(o.prototype))}return No[t]=n,n},Ub={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ka=pf,Pl=XN,ak=ka.call(Function.call,Array.prototype.concat),sk=ka.call(Function.apply,Array.prototype.splice),Gb=ka.call(Function.call,String.prototype.replace),Rl=ka.call(Function.call,String.prototype.slice),lk=ka.call(Function.call,RegExp.prototype.exec),ck=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,uk=/\\(\\)?/g,dk=function(t){var n=Rl(t,0,1),r=Rl(t,-1);if(n==="%"&&r!=="%")throw new _i("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new _i("invalid intrinsic syntax, expected opening `%`");var o=[];return Gb(t,ck,function(i,a,l,s){o[o.length]=l?Gb(s,uk,"$1"):a||i}),o},fk=function(t,n){var r=t,o;if(Pl(Ub,r)&&(o=Ub[r],r="%"+o[0]+"%"),Pl(No,r)){var i=No[r];if(i===wi&&(i=ik(r)),typeof i=="undefined"&&!n)throw new yi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new _i("intrinsic "+t+" does not exist!")},xi=function(t,n){if(typeof t!="string"||t.length===0)throw new yi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new yi('"allowMissing" argument must be a boolean');if(lk(/^%?[^%]*%?$/,t)===null)throw new _i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=dk(t),o=r.length>0?r[0]:"",i=fk("%"+o+"%",n),a=i.name,l=i.value,s=!1,c=i.alias;c&&(o=c[0],sk(r,ak([0,1],c)));for(var u=1,f=!0;u<r.length;u+=1){var d=r[u],b=Rl(d,0,1),x=Rl(d,-1);if((b==='"'||b==="'"||b==="`"||x==='"'||x==="'"||x==="`")&&b!==x)throw new _i("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(s=!0),o+="."+d,a="%"+o+"%",Pl(No,a))l=No[a];else if(l!=null){if(!(d in l)){if(!n)throw new yi("base intrinsic for "+t+" exists, but the property is not available.");return}if(Ao&&u+1>=r.length){var O=Ao(l,d);f=!!O,f&&"get"in O&&!("originalValue"in O.get)?l=O.get:l=l[d]}else f=Pl(l,d),l=l[d];f&&!s&&(No[a]=l)}}return l},Kb={exports:{}},gf,Xb;function vf(){if(Xb)return gf;Xb=1;var e=xi,t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}return gf=t,gf}var pk=xi,jl=pk("%Object.getOwnPropertyDescriptor%",!0);if(jl)try{jl([],"length")}catch(e){jl=null}var _f=jl,Yb=vf(),hk=qb,Si=Na,Jb=_f,mk=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Si("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Si("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Si("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Si("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Si("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Si("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,s=!!Jb&&Jb(t,n);if(Yb)Yb(t,n,{configurable:a===null&&s?s.configurable:!a,enumerable:o===null&&s?s.enumerable:!o,value:r,writable:i===null&&s?s.writable:!i});else if(l||!o&&!i&&!a)t[n]=r;else throw new hk("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},yf=vf(),Qb=function(){return!!yf};Qb.hasArrayLengthDefineBug=function(){if(!yf)return null;try{return yf([],"length",{value:1}).length!==1}catch(t){return!0}};var gk=Qb,vk=xi,Zb=mk,_k=gk(),e0=_f,t0=Na,yk=vk("%Math.floor%"),bk=function(t,n){if(typeof t!="function")throw new t0("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||yk(n)!==n)throw new t0("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&e0){var a=e0(t,"length");a&&!a.configurable&&(o=!1),a&&!a.writable&&(i=!1)}return(o||i||!r)&&(_k?Zb(t,"length",n,!0,!0):Zb(t,"length",n)),t};(function(e){var t=pf,n=xi,r=bk,o=Na,i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),l=n("%Reflect.apply%",!0)||t.call(a,i),s=vf(),c=n("%Math.max%");e.exports=function(d){if(typeof d!="function")throw new o("a function is required");var b=l(t,a,arguments);return r(b,1+c(0,d.length-(arguments.length-1)),!0)};var u=function(){return l(t,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u})(Kb);var n0=Kb.exports,r0=xi,o0=n0,wk=o0(r0("String.prototype.indexOf")),bf=function(t,n){var r=r0(t,!!n);return typeof r=="function"&&wk(t,".prototype.")>-1?o0(r):r},xk=df(),Sk=bf,wf=Sk("Object.prototype.toString"),Ml=function(t){return xk&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:wf(t)==="[object Arguments]"},i0=function(t){return Ml(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&wf(t)!=="[object Array]"&&wf(t.callee)==="[object Function]"},Ck=function(){return Ml(arguments)}();Ml.isLegacyArguments=i0;var Ek=Ck?Ml:i0,Ok=Object.prototype.toString,$k=Function.prototype.toString,Tk=/^\s*(?:function)?\*/,a0=df(),xf=Object.getPrototypeOf,Pk=function(){if(!a0)return!1;try{return Function("return function*() {}")()}catch(e){}},Sf,Rk=function(t){if(typeof t!="function")return!1;if(Tk.test($k.call(t)))return!0;if(!a0){var n=Ok.call(t);return n==="[object GeneratorFunction]"}if(!xf)return!1;if(typeof Sf=="undefined"){var r=Pk();Sf=r?xf(r):!1}return xf(t)===Sf},s0=Function.prototype.toString,Ci=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Cf,Il;if(typeof Ci=="function"&&typeof Object.defineProperty=="function")try{Cf=Object.defineProperty({},"length",{get:function(){throw Il}}),Il={},Ci(function(){throw 42},null,Cf)}catch(e){e!==Il&&(Ci=null)}else Ci=null;var jk=/^\s*class\b/,Ef=function(t){try{var n=s0.call(t);return jk.test(n)}catch(r){return!1}},Of=function(t){try{return Ef(t)?!1:(s0.call(t),!0)}catch(n){return!1}},Al=Object.prototype.toString,Mk="[object Object]",Ik="[object Function]",Ak="[object GeneratorFunction]",Nk="[object HTMLAllCollection]",kk="[object HTML document.all class]",Lk="[object HTMLCollection]",Fk=typeof Symbol=="function"&&!!Symbol.toStringTag,Dk=!(0 in[,]),$f=function(){return!1};if(typeof document=="object"){var Bk=document.all;Al.call(Bk)===Al.call(document.all)&&($f=function(t){if((Dk||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var n=Al.call(t);return(n===Nk||n===kk||n===Lk||n===Mk)&&t("")==null}catch(r){}return!1})}var zk=Ci?function(t){if($f(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ci(t,null,Cf)}catch(n){if(n!==Il)return!1}return!Ef(t)&&Of(t)}:function(t){if($f(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(Fk)return Of(t);if(Ef(t))return!1;var n=Al.call(t);return n!==Ik&&n!==Ak&&!/^\[object HTML/.test(n)?!1:Of(t)},qk=zk,Vk=Object.prototype.toString,l0=Object.prototype.hasOwnProperty,Hk=function(t,n,r){for(var o=0,i=t.length;o<i;o++)l0.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},Wk=function(t,n,r){for(var o=0,i=t.length;o<i;o++)r==null?n(t.charAt(o),o,t):n.call(r,t.charAt(o),o,t)},Uk=function(t,n,r){for(var o in t)l0.call(t,o)&&(r==null?n(t[o],o,t):n.call(r,t[o],o,t))},Gk=function(t,n,r){if(!qk(n))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),Vk.call(t)==="[object Array]"?Hk(t,n,o):typeof t=="string"?Wk(t,n,o):Uk(t,n,o)},Kk=Gk,Xk=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Tf=Xk,Yk=typeof globalThis=="undefined"?bt:globalThis,Jk=function(){for(var t=[],n=0;n<Tf.length;n++)typeof Yk[Tf[n]]=="function"&&(t[t.length]=Tf[n]);return t},Nl=Kk,Qk=Jk,c0=n0,Pf=bf,kl=_f,Zk=Pf("Object.prototype.toString"),u0=df(),d0=typeof globalThis=="undefined"?bt:globalThis,Rf=Qk(),jf=Pf("String.prototype.slice"),Mf=Object.getPrototypeOf,eL=Pf("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},Ll={__proto__:null};u0&&kl&&Mf?Nl(Rf,function(e){var t=new d0[e];if(Symbol.toStringTag in t){var n=Mf(t),r=kl(n,Symbol.toStringTag);if(!r){var o=Mf(n);r=kl(o,Symbol.toStringTag)}Ll["$"+e]=c0(r.get)}}):Nl(Rf,function(e){var t=new d0[e],n=t.slice||t.set;n&&(Ll["$"+e]=c0(n))});var tL=function(t){var n=!1;return Nl(Ll,function(r,o){if(!n)try{"$"+r(t)===o&&(n=jf(o,1))}catch(i){}}),n},nL=function(t){var n=!1;return Nl(Ll,function(r,o){if(!n)try{r(t),n=jf(o,1)}catch(i){}}),n},f0=function(t){if(!t||typeof t!="object")return!1;if(!u0){var n=jf(Zk(t),8,-1);return eL(Rf,n)>-1?n:n!=="Object"?!1:nL(t)}return kl?tL(t):null},rL=f0,oL=function(t){return!!rL(t)};(function(e){var t=Ek,n=Rk,r=f0,o=oL;function i(fe){return fe.call.bind(fe)}var a=typeof BigInt!="undefined",l=typeof Symbol!="undefined",s=i(Object.prototype.toString),c=i(Number.prototype.valueOf),u=i(String.prototype.valueOf),f=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(l)var b=i(Symbol.prototype.valueOf);function x(fe,Ne){if(typeof fe!="object")return!1;try{return Ne(fe),!0}catch(Ie){return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=o;function O(fe){return typeof Promise!="undefined"&&fe instanceof Promise||fe!==null&&typeof fe=="object"&&typeof fe.then=="function"&&typeof fe.catch=="function"}e.isPromise=O;function h(fe){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(fe):o(fe)||F(fe)}e.isArrayBufferView=h;function y(fe){return r(fe)==="Uint8Array"}e.isUint8Array=y;function p(fe){return r(fe)==="Uint8ClampedArray"}e.isUint8ClampedArray=p;function m(fe){return r(fe)==="Uint16Array"}e.isUint16Array=m;function g(fe){return r(fe)==="Uint32Array"}e.isUint32Array=g;function w(fe){return r(fe)==="Int8Array"}e.isInt8Array=w;function E(fe){return r(fe)==="Int16Array"}e.isInt16Array=E;function S(fe){return r(fe)==="Int32Array"}e.isInt32Array=S;function C(fe){return r(fe)==="Float32Array"}e.isFloat32Array=C;function T(fe){return r(fe)==="Float64Array"}e.isFloat64Array=T;function M(fe){return r(fe)==="BigInt64Array"}e.isBigInt64Array=M;function N(fe){return r(fe)==="BigUint64Array"}e.isBigUint64Array=N;function R(fe){return s(fe)==="[object Map]"}R.working=typeof Map!="undefined"&&R(new Map);function D(fe){return typeof Map=="undefined"?!1:R.working?R(fe):fe instanceof Map}e.isMap=D;function V(fe){return s(fe)==="[object Set]"}V.working=typeof Set!="undefined"&&V(new Set);function Z(fe){return typeof Set=="undefined"?!1:V.working?V(fe):fe instanceof Set}e.isSet=Z;function J(fe){return s(fe)==="[object WeakMap]"}J.working=typeof WeakMap!="undefined"&&J(new WeakMap);function I(fe){return typeof WeakMap=="undefined"?!1:J.working?J(fe):fe instanceof WeakMap}e.isWeakMap=I;function U(fe){return s(fe)==="[object WeakSet]"}U.working=typeof WeakSet!="undefined"&&U(new WeakSet);function K(fe){return U(fe)}e.isWeakSet=K;function z(fe){return s(fe)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer!="undefined"&&z(new ArrayBuffer);function G(fe){return typeof ArrayBuffer=="undefined"?!1:z.working?z(fe):fe instanceof ArrayBuffer}e.isArrayBuffer=G;function L(fe){return s(fe)==="[object DataView]"}L.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&L(new DataView(new ArrayBuffer(1),0,1));function F(fe){return typeof DataView=="undefined"?!1:L.working?L(fe):fe instanceof DataView}e.isDataView=F;var X=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function te(fe){return s(fe)==="[object SharedArrayBuffer]"}function H(fe){return typeof X=="undefined"?!1:(typeof te.working=="undefined"&&(te.working=te(new X)),te.working?te(fe):fe instanceof X)}e.isSharedArrayBuffer=H;function W(fe){return s(fe)==="[object AsyncFunction]"}e.isAsyncFunction=W;function Q(fe){return s(fe)==="[object Map Iterator]"}e.isMapIterator=Q;function ie(fe){return s(fe)==="[object Set Iterator]"}e.isSetIterator=ie;function ce(fe){return s(fe)==="[object Generator]"}e.isGeneratorObject=ce;function B(fe){return s(fe)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=B;function q(fe){return x(fe,c)}e.isNumberObject=q;function le(fe){return x(fe,u)}e.isStringObject=le;function ne(fe){return x(fe,f)}e.isBooleanObject=ne;function ve(fe){return a&&x(fe,d)}e.isBigIntObject=ve;function me(fe){return l&&x(fe,b)}e.isSymbolObject=me;function Ce(fe){return q(fe)||le(fe)||ne(fe)||ve(fe)||me(fe)}e.isBoxedPrimitive=Ce;function Le(fe){return typeof Uint8Array!="undefined"&&(G(fe)||H(fe))}e.isAnyArrayBuffer=Le,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(fe){Object.defineProperty(e,fe,{enumerable:!1,value:function(){throw new Error(fe+" is not supported in userland")}})})})(Bb);var iL=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};(function(e){var t=Object.getOwnPropertyDescriptors||function(F){for(var X=Object.keys(F),te={},H=0;H<X.length;H++)te[X[H]]=Object.getOwnPropertyDescriptor(F,X[H]);return te},n=/%[sdj%]/g;e.format=function(L){if(!w(L)){for(var F=[],X=0;X<arguments.length;X++)F.push(a(arguments[X]));return F.join(" ")}for(var X=1,te=arguments,H=te.length,W=String(L).replace(n,function(ie){if(ie==="%%")return"%";if(X>=H)return ie;switch(ie){case"%s":return String(te[X++]);case"%d":return Number(te[X++]);case"%j":try{return JSON.stringify(te[X++])}catch(ce){return"[Circular]"}default:return ie}}),Q=te[X];X<H;Q=te[++X])p(Q)||!T(Q)?W+=" "+Q:W+=" "+a(Q);return W},e.deprecate=function(L,F){if(typeof oe!="undefined"&&oe.noDeprecation===!0)return L;if(typeof oe=="undefined")return function(){return e.deprecate(L,F).apply(this,arguments)};var X=!1;function te(){if(!X){if(oe.throwDeprecation)throw new Error(F);oe.traceDeprecation?console.trace(F):console.error(F),X=!0}return L.apply(this,arguments)}return te};var r={},o=/^$/;if(oe.env.NODE_DEBUG){var i=oe.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(L){if(L=L.toUpperCase(),!r[L])if(o.test(L)){var F=oe.pid;r[L]=function(){var X=e.format.apply(e,arguments);console.error("%s %d: %s",L,F,X)}}else r[L]=function(){};return r[L]};function a(L,F){var X={seen:[],stylize:s};return arguments.length>=3&&(X.depth=arguments[2]),arguments.length>=4&&(X.colors=arguments[3]),y(F)?X.showHidden=F:F&&e._extend(X,F),S(X.showHidden)&&(X.showHidden=!1),S(X.depth)&&(X.depth=2),S(X.colors)&&(X.colors=!1),S(X.customInspect)&&(X.customInspect=!0),X.colors&&(X.stylize=l),u(X,L,X.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(L,F){var X=a.styles[F];return X?"\x1B["+a.colors[X][0]+"m"+L+"\x1B["+a.colors[X][1]+"m":L}function s(L,F){return L}function c(L){var F={};return L.forEach(function(X,te){F[X]=!0}),F}function u(L,F,X){if(L.customInspect&&F&&R(F.inspect)&&F.inspect!==e.inspect&&!(F.constructor&&F.constructor.prototype===F)){var te=F.inspect(X,L);return w(te)||(te=u(L,te,X)),te}var H=f(L,F);if(H)return H;var W=Object.keys(F),Q=c(W);if(L.showHidden&&(W=Object.getOwnPropertyNames(F)),N(F)&&(W.indexOf("message")>=0||W.indexOf("description")>=0))return d(F);if(W.length===0){if(R(F)){var ie=F.name?": "+F.name:"";return L.stylize("[Function"+ie+"]","special")}if(C(F))return L.stylize(RegExp.prototype.toString.call(F),"regexp");if(M(F))return L.stylize(Date.prototype.toString.call(F),"date");if(N(F))return d(F)}var ce="",B=!1,q=["{","}"];if(h(F)&&(B=!0,q=["[","]"]),R(F)){var le=F.name?": "+F.name:"";ce=" [Function"+le+"]"}if(C(F)&&(ce=" "+RegExp.prototype.toString.call(F)),M(F)&&(ce=" "+Date.prototype.toUTCString.call(F)),N(F)&&(ce=" "+d(F)),W.length===0&&(!B||F.length==0))return q[0]+ce+q[1];if(X<0)return C(F)?L.stylize(RegExp.prototype.toString.call(F),"regexp"):L.stylize("[Object]","special");L.seen.push(F);var ne;return B?ne=b(L,F,X,Q,W):ne=W.map(function(ve){return x(L,F,X,Q,ve,B)}),L.seen.pop(),O(ne,ce,q)}function f(L,F){if(S(F))return L.stylize("undefined","undefined");if(w(F)){var X="'"+JSON.stringify(F).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return L.stylize(X,"string")}if(g(F))return L.stylize(""+F,"number");if(y(F))return L.stylize(""+F,"boolean");if(p(F))return L.stylize("null","null")}function d(L){return"["+Error.prototype.toString.call(L)+"]"}function b(L,F,X,te,H){for(var W=[],Q=0,ie=F.length;Q<ie;++Q)U(F,String(Q))?W.push(x(L,F,X,te,String(Q),!0)):W.push("");return H.forEach(function(ce){ce.match(/^\d+$/)||W.push(x(L,F,X,te,ce,!0))}),W}function x(L,F,X,te,H,W){var Q,ie,ce;if(ce=Object.getOwnPropertyDescriptor(F,H)||{value:F[H]},ce.get?ce.set?ie=L.stylize("[Getter/Setter]","special"):ie=L.stylize("[Getter]","special"):ce.set&&(ie=L.stylize("[Setter]","special")),U(te,H)||(Q="["+H+"]"),ie||(L.seen.indexOf(ce.value)<0?(p(X)?ie=u(L,ce.value,null):ie=u(L,ce.value,X-1),ie.indexOf(`
257
- `)>-1&&(W?ie=ie.split(`
258
- `).map(function(B){return" "+B}).join(`
259
- `).slice(2):ie=`
260
- `+ie.split(`
261
- `).map(function(B){return" "+B}).join(`
262
- `))):ie=L.stylize("[Circular]","special")),S(Q)){if(W&&H.match(/^\d+$/))return ie;Q=JSON.stringify(""+H),Q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Q=Q.slice(1,-1),Q=L.stylize(Q,"name")):(Q=Q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Q=L.stylize(Q,"string"))}return Q+": "+ie}function O(L,F,X){var te=L.reduce(function(H,W){return W.indexOf(`
263
- `)>=0,H+W.replace(/\u001b\[\d\d?m/g,"").length+1},0);return te>60?X[0]+(F===""?"":F+`
264
- `)+" "+L.join(`,
265
- `)+" "+X[1]:X[0]+F+" "+L.join(", ")+" "+X[1]}e.types=Bb;function h(L){return Array.isArray(L)}e.isArray=h;function y(L){return typeof L=="boolean"}e.isBoolean=y;function p(L){return L===null}e.isNull=p;function m(L){return L==null}e.isNullOrUndefined=m;function g(L){return typeof L=="number"}e.isNumber=g;function w(L){return typeof L=="string"}e.isString=w;function E(L){return typeof L=="symbol"}e.isSymbol=E;function S(L){return L===void 0}e.isUndefined=S;function C(L){return T(L)&&V(L)==="[object RegExp]"}e.isRegExp=C,e.types.isRegExp=C;function T(L){return typeof L=="object"&&L!==null}e.isObject=T;function M(L){return T(L)&&V(L)==="[object Date]"}e.isDate=M,e.types.isDate=M;function N(L){return T(L)&&(V(L)==="[object Error]"||L instanceof Error)}e.isError=N,e.types.isNativeError=N;function R(L){return typeof L=="function"}e.isFunction=R;function D(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||typeof L=="undefined"}e.isPrimitive=D,e.isBuffer=iL;function V(L){return Object.prototype.toString.call(L)}function Z(L){return L<10?"0"+L.toString(10):L.toString(10)}var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var L=new Date,F=[Z(L.getHours()),Z(L.getMinutes()),Z(L.getSeconds())].join(":");return[L.getDate(),J[L.getMonth()],F].join(" ")}e.log=function(){console.log("%s - %s",I(),e.format.apply(e,arguments))},e.inherits=Qr,e._extend=function(L,F){if(!F||!T(F))return L;for(var X=Object.keys(F),te=X.length;te--;)L[X[te]]=F[X[te]];return L};function U(L,F){return Object.prototype.hasOwnProperty.call(L,F)}var K=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;e.promisify=function(F){if(typeof F!="function")throw new TypeError('The "original" argument must be of type Function');if(K&&F[K]){var X=F[K];if(typeof X!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,K,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var te,H,W=new Promise(function(ce,B){te=ce,H=B}),Q=[],ie=0;ie<arguments.length;ie++)Q.push(arguments[ie]);Q.push(function(ce,B){ce?H(ce):te(B)});try{F.apply(this,Q)}catch(ce){H(ce)}return W}return Object.setPrototypeOf(X,Object.getPrototypeOf(F)),K&&Object.defineProperty(X,K,{value:X,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(X,t(F))},e.promisify.custom=K;function z(L,F){if(!L){var X=new Error("Promise was rejected with a falsy value");X.reason=L,L=X}return F(L)}function G(L){if(typeof L!="function")throw new TypeError('The "original" argument must be of type Function');function F(){for(var X=[],te=0;te<arguments.length;te++)X.push(arguments[te]);var H=X.pop();if(typeof H!="function")throw new TypeError("The last argument must be of type Function");var W=this,Q=function(){return H.apply(W,arguments)};L.apply(this,X).then(function(ie){oe.nextTick(Q.bind(null,null,ie))},function(ie){oe.nextTick(z.bind(null,ie,Q))})}return Object.setPrototypeOf(F,Object.getPrototypeOf(L)),Object.defineProperties(F,t(L)),F}e.callbackify=G})(uf);var If,p0;function aL(){if(p0)return If;p0=1;function e(x,O){var h=Object.keys(x);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(x);O&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(x,p).enumerable})),h.push.apply(h,y)}return h}function t(x){for(var O=1;O<arguments.length;O++){var h=arguments[O]!=null?arguments[O]:{};O%2?e(Object(h),!0).forEach(function(y){n(x,y,h[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(h)):e(Object(h)).forEach(function(y){Object.defineProperty(x,y,Object.getOwnPropertyDescriptor(h,y))})}return x}function n(x,O,h){return O=a(O),O in x?Object.defineProperty(x,O,{value:h,enumerable:!0,configurable:!0,writable:!0}):x[O]=h,x}function r(x,O){if(!(x instanceof O))throw new TypeError("Cannot call a class as a function")}function o(x,O){for(var h=0;h<O.length;h++){var y=O[h];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(x,a(y.key),y)}}function i(x,O,h){return O&&o(x.prototype,O),Object.defineProperty(x,"prototype",{writable:!1}),x}function a(x){var O=l(x,"string");return typeof O=="symbol"?O:String(O)}function l(x,O){if(typeof x!="object"||x===null)return x;var h=x[Symbol.toPrimitive];if(h!==void 0){var y=h.call(x,O||"default");if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(x)}var s=gi,c=s.Buffer,u=uf,f=u.inspect,d=f&&f.custom||"inspect";function b(x,O,h){c.prototype.copy.call(x,O,h)}return If=function(){function x(){r(this,x),this.head=null,this.tail=null,this.length=0}return i(x,[{key:"push",value:function(h){var y={data:h,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(h){var y={data:h,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length}},{key:"shift",value:function(){if(this.length!==0){var h=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,h}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(h){if(this.length===0)return"";for(var y=this.head,p=""+y.data;y=y.next;)p+=h+y.data;return p}},{key:"concat",value:function(h){if(this.length===0)return c.alloc(0);for(var y=c.allocUnsafe(h>>>0),p=this.head,m=0;p;)b(p.data,y,m),m+=p.data.length,p=p.next;return y}},{key:"consume",value:function(h,y){var p;return h<this.head.data.length?(p=this.head.data.slice(0,h),this.head.data=this.head.data.slice(h)):h===this.head.data.length?p=this.shift():p=y?this._getString(h):this._getBuffer(h),p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(h){var y=this.head,p=1,m=y.data;for(h-=m.length;y=y.next;){var g=y.data,w=h>g.length?g.length:h;if(w===g.length?m+=g:m+=g.slice(0,h),h-=w,h===0){w===g.length?(++p,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=g.slice(w));break}++p}return this.length-=p,m}},{key:"_getBuffer",value:function(h){var y=c.allocUnsafe(h),p=this.head,m=1;for(p.data.copy(y),h-=p.data.length;p=p.next;){var g=p.data,w=h>g.length?g.length:h;if(g.copy(y,y.length-h,0,w),h-=w,h===0){w===g.length?(++m,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=g.slice(w));break}++m}return this.length-=m,y}},{key:d,value:function(h,y){return f(this,t(t({},y),{},{depth:0,customInspect:!1}))}}]),x}(),If}function sL(e,t){var n=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,oe.nextTick(Af,this,e)):oe.nextTick(Af,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?n._writableState?n._writableState.errorEmitted?oe.nextTick(Fl,n):(n._writableState.errorEmitted=!0,oe.nextTick(h0,n,i)):oe.nextTick(h0,n,i):t?(oe.nextTick(Fl,n),t(i)):oe.nextTick(Fl,n)}),this)}function h0(e,t){Af(e,t),Fl(e)}function Fl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function lL(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Af(e,t){e.emit("error",t)}function cL(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}var m0={destroy:sL,undestroy:lL,errorOrDestroy:cL},ko={};function uL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var g0={};function Hn(e,t,n){n||(n=Error);function r(i,a,l){return typeof t=="string"?t:t(i,a,l)}var o=function(i){uL(a,i);function a(l,s,c){return i.call(this,r(l,s,c))||this}return a}(n);o.prototype.name=n.name,o.prototype.code=e,g0[e]=o}function v0(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(r){return String(r)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:n===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function dL(e,t,n){return e.substr(0,t.length)===t}function fL(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function pL(e,t,n){return typeof n!="number"&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}Hn("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),Hn("ERR_INVALID_ARG_TYPE",function(e,t,n){var r;typeof t=="string"&&dL(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";var o;if(fL(e," argument"))o="The ".concat(e," ").concat(r," ").concat(v0(t,"type"));else{var i=pL(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(i," ").concat(r," ").concat(v0(t,"type"))}return o+=". Received type ".concat(typeof n),o},TypeError),Hn("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Hn("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),Hn("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Hn("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),Hn("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Hn("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Hn("ERR_STREAM_WRITE_AFTER_END","write after end"),Hn("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Hn("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),Hn("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ko.codes=g0;var hL=ko.codes.ERR_INVALID_OPT_VALUE;function mL(e,t,n){return e.highWaterMark!=null?e.highWaterMark:t?e[n]:null}function gL(e,t,n,r){var o=mL(t,r,n);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var i=r?n:"highWaterMark";throw new hL(i,o)}return Math.floor(o)}return e.objectMode?16:16384}var _0={getHighWaterMark:gL},vL=_L;function _L(e,t){if(Nf("noDeprecation"))return e;var n=!1;function r(){if(!n){if(Nf("throwDeprecation"))throw new Error(t);Nf("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function Nf(e){try{if(!bt.localStorage)return!1}catch(n){return!1}var t=bt.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var kf,y0;function b0(){if(y0)return kf;y0=1,kf=C;function e(H){var W=this;this.next=null,this.entry=null,this.finish=function(){te(W,H)}}var t;C.WritableState=E;var n={deprecate:vL},r=Db,o=gi.Buffer,i=(typeof bt!="undefined"?bt:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function a(H){return o.from(H)}function l(H){return o.isBuffer(H)||H instanceof i}var s=m0,c=_0,u=c.getHighWaterMark,f=ko.codes,d=f.ERR_INVALID_ARG_TYPE,b=f.ERR_METHOD_NOT_IMPLEMENTED,x=f.ERR_MULTIPLE_CALLBACK,O=f.ERR_STREAM_CANNOT_PIPE,h=f.ERR_STREAM_DESTROYED,y=f.ERR_STREAM_NULL_VALUES,p=f.ERR_STREAM_WRITE_AFTER_END,m=f.ERR_UNKNOWN_ENCODING,g=s.errorOrDestroy;Qr(C,r);function w(){}function E(H,W,Q){t=t||Ei(),H=H||{},typeof Q!="boolean"&&(Q=W instanceof t),this.objectMode=!!H.objectMode,Q&&(this.objectMode=this.objectMode||!!H.writableObjectMode),this.highWaterMark=u(this,H,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ie=H.decodeStrings===!1;this.decodeStrings=!ie,this.defaultEncoding=H.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ce){J(W,ce)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=H.emitClose!==!1,this.autoDestroy=!!H.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}E.prototype.getBuffer=function(){for(var W=this.bufferedRequest,Q=[];W;)Q.push(W),W=W.next;return Q},function(){try{Object.defineProperty(E.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(H){}}();var S;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(W){return S.call(this,W)?!0:this!==C?!1:W&&W._writableState instanceof E}})):S=function(W){return W instanceof this};function C(H){t=t||Ei();var W=this instanceof t;if(!W&&!S.call(C,this))return new C(H);this._writableState=new E(H,this,W),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),r.call(this)}C.prototype.pipe=function(){g(this,new O)};function T(H,W){var Q=new p;g(H,Q),oe.nextTick(W,Q)}function M(H,W,Q,ie){var ce;return Q===null?ce=new y:typeof Q!="string"&&!W.objectMode&&(ce=new d("chunk",["string","Buffer"],Q)),ce?(g(H,ce),oe.nextTick(ie,ce),!1):!0}C.prototype.write=function(H,W,Q){var ie=this._writableState,ce=!1,B=!ie.objectMode&&l(H);return B&&!o.isBuffer(H)&&(H=a(H)),typeof W=="function"&&(Q=W,W=null),B?W="buffer":W||(W=ie.defaultEncoding),typeof Q!="function"&&(Q=w),ie.ending?T(this,Q):(B||M(this,ie,H,Q))&&(ie.pendingcb++,ce=R(this,ie,B,H,W,Q)),ce},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,!H.writing&&!H.corked&&!H.bufferProcessing&&H.bufferedRequest&&K(this,H))},C.prototype.setDefaultEncoding=function(W){if(typeof W=="string"&&(W=W.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((W+"").toLowerCase())>-1))throw new m(W);return this._writableState.defaultEncoding=W,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function N(H,W,Q){return!H.objectMode&&H.decodeStrings!==!1&&typeof W=="string"&&(W=o.from(W,Q)),W}Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R(H,W,Q,ie,ce,B){if(!Q){var q=N(W,ie,ce);ie!==q&&(Q=!0,ce="buffer",ie=q)}var le=W.objectMode?1:ie.length;W.length+=le;var ne=W.length<W.highWaterMark;if(ne||(W.needDrain=!0),W.writing||W.corked){var ve=W.lastBufferedRequest;W.lastBufferedRequest={chunk:ie,encoding:ce,isBuf:Q,callback:B,next:null},ve?ve.next=W.lastBufferedRequest:W.bufferedRequest=W.lastBufferedRequest,W.bufferedRequestCount+=1}else D(H,W,!1,le,ie,ce,B);return ne}function D(H,W,Q,ie,ce,B,q){W.writelen=ie,W.writecb=q,W.writing=!0,W.sync=!0,W.destroyed?W.onwrite(new h("write")):Q?H._writev(ce,W.onwrite):H._write(ce,B,W.onwrite),W.sync=!1}function V(H,W,Q,ie,ce){--W.pendingcb,Q?(oe.nextTick(ce,ie),oe.nextTick(F,H,W),H._writableState.errorEmitted=!0,g(H,ie)):(ce(ie),H._writableState.errorEmitted=!0,g(H,ie),F(H,W))}function Z(H){H.writing=!1,H.writecb=null,H.length-=H.writelen,H.writelen=0}function J(H,W){var Q=H._writableState,ie=Q.sync,ce=Q.writecb;if(typeof ce!="function")throw new x;if(Z(Q),W)V(H,Q,ie,W,ce);else{var B=z(Q)||H.destroyed;!B&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&K(H,Q),ie?oe.nextTick(I,H,Q,B,ce):I(H,Q,B,ce)}}function I(H,W,Q,ie){Q||U(H,W),W.pendingcb--,ie(),F(H,W)}function U(H,W){W.length===0&&W.needDrain&&(W.needDrain=!1,H.emit("drain"))}function K(H,W){W.bufferProcessing=!0;var Q=W.bufferedRequest;if(H._writev&&Q&&Q.next){var ie=W.bufferedRequestCount,ce=new Array(ie),B=W.corkedRequestsFree;B.entry=Q;for(var q=0,le=!0;Q;)ce[q]=Q,Q.isBuf||(le=!1),Q=Q.next,q+=1;ce.allBuffers=le,D(H,W,!0,W.length,ce,"",B.finish),W.pendingcb++,W.lastBufferedRequest=null,B.next?(W.corkedRequestsFree=B.next,B.next=null):W.corkedRequestsFree=new e(W),W.bufferedRequestCount=0}else{for(;Q;){var ne=Q.chunk,ve=Q.encoding,me=Q.callback,Ce=W.objectMode?1:ne.length;if(D(H,W,!1,Ce,ne,ve,me),Q=Q.next,W.bufferedRequestCount--,W.writing)break}Q===null&&(W.lastBufferedRequest=null)}W.bufferedRequest=Q,W.bufferProcessing=!1}C.prototype._write=function(H,W,Q){Q(new b("_write()"))},C.prototype._writev=null,C.prototype.end=function(H,W,Q){var ie=this._writableState;return typeof H=="function"?(Q=H,H=null,W=null):typeof W=="function"&&(Q=W,W=null),H!=null&&this.write(H,W),ie.corked&&(ie.corked=1,this.uncork()),ie.ending||X(this,ie,Q),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}function G(H,W){H._final(function(Q){W.pendingcb--,Q&&g(H,Q),W.prefinished=!0,H.emit("prefinish"),F(H,W)})}function L(H,W){!W.prefinished&&!W.finalCalled&&(typeof H._final=="function"&&!W.destroyed?(W.pendingcb++,W.finalCalled=!0,oe.nextTick(G,H,W)):(W.prefinished=!0,H.emit("prefinish")))}function F(H,W){var Q=z(W);if(Q&&(L(H,W),W.pendingcb===0&&(W.finished=!0,H.emit("finish"),W.autoDestroy))){var ie=H._readableState;(!ie||ie.autoDestroy&&ie.endEmitted)&&H.destroy()}return Q}function X(H,W,Q){W.ending=!0,F(H,W),Q&&(W.finished?oe.nextTick(Q):H.once("finish",Q)),W.ended=!0,H.writable=!1}function te(H,W,Q){var ie=H.entry;for(H.entry=null;ie;){var ce=ie.callback;W.pendingcb--,ce(Q),ie=ie.next}W.corkedRequestsFree.next=H}return Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(W){this._writableState&&(this._writableState.destroyed=W)}}),C.prototype.destroy=s.destroy,C.prototype._undestroy=s.undestroy,C.prototype._destroy=function(H,W){W(H)},kf}var Lf,w0;function Ei(){if(w0)return Lf;w0=1;var e=Object.keys||function(c){var u=[];for(var f in c)u.push(f);return u};Lf=a;var t=R0(),n=b0();Qr(a,t);for(var r=e(n.prototype),o=0;o<r.length;o++){var i=r[o];a.prototype[i]||(a.prototype[i]=n.prototype[i])}function a(c){if(!(this instanceof a))return new a(c);t.call(this,c),n.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",l)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||oe.nextTick(s,this)}function s(c){c.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),Lf}var Ff={},Dl={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var x0;function yL(){return x0||(x0=1,function(e,t){var n=gi,r=n.Buffer;function o(a,l){for(var s in a)l[s]=a[s]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i);function i(a,l,s){return r(a,l,s)}i.prototype=Object.create(r.prototype),o(r,i),i.from=function(a,l,s){if(typeof a=="number")throw new TypeError("Argument must not be a number");return r(a,l,s)},i.alloc=function(a,l,s){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=r(a);return l!==void 0?typeof s=="string"?c.fill(l,s):c.fill(l):c.fill(0),c},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}}(Dl,Dl.exports)),Dl.exports}var S0;function C0(){if(S0)return Ff;S0=1;var e=yL().Buffer,t=e.isEncoding||function(y){switch(y=""+y,y&&y.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(y){if(!y)return"utf8";for(var p;;)switch(y){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return y;default:if(p)return;y=(""+y).toLowerCase(),p=!0}}function r(y){var p=n(y);if(typeof p!="string"&&(e.isEncoding===t||!t(y)))throw new Error("Unknown encoding: "+y);return p||y}Ff.StringDecoder=o;function o(y){this.encoding=r(y);var p;switch(this.encoding){case"utf16le":this.text=f,this.end=d,p=4;break;case"utf8":this.fillLast=s,p=4;break;case"base64":this.text=b,this.end=x,p=3;break;default:this.write=O,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(p)}o.prototype.write=function(y){if(y.length===0)return"";var p,m;if(this.lastNeed){if(p=this.fillLast(y),p===void 0)return"";m=this.lastNeed,this.lastNeed=0}else m=0;return m<y.length?p?p+this.text(y,m):this.text(y,m):p||""},o.prototype.end=u,o.prototype.text=c,o.prototype.fillLast=function(y){if(this.lastNeed<=y.length)return y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,y.length),this.lastNeed-=y.length};function i(y){return y<=127?0:y>>5===6?2:y>>4===14?3:y>>3===30?4:y>>6===2?-1:-2}function a(y,p,m){var g=p.length-1;if(g<m)return 0;var w=i(p[g]);return w>=0?(w>0&&(y.lastNeed=w-1),w):--g<m||w===-2?0:(w=i(p[g]),w>=0?(w>0&&(y.lastNeed=w-2),w):--g<m||w===-2?0:(w=i(p[g]),w>=0?(w>0&&(w===2?w=0:y.lastNeed=w-3),w):0))}function l(y,p,m){if((p[0]&192)!==128)return y.lastNeed=0,"�";if(y.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return y.lastNeed=1,"�";if(y.lastNeed>2&&p.length>2&&(p[2]&192)!==128)return y.lastNeed=2,"�"}}function s(y){var p=this.lastTotal-this.lastNeed,m=l(this,y);if(m!==void 0)return m;if(this.lastNeed<=y.length)return y.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);y.copy(this.lastChar,p,0,y.length),this.lastNeed-=y.length}function c(y,p){var m=a(this,y,p);if(!this.lastNeed)return y.toString("utf8",p);this.lastTotal=m;var g=y.length-(m-this.lastNeed);return y.copy(this.lastChar,0,g),y.toString("utf8",p,g)}function u(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+"�":p}function f(y,p){if((y.length-p)%2===0){var m=y.toString("utf16le",p);if(m){var g=m.charCodeAt(m.length-1);if(g>=55296&&g<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=y[y.length-1],y.toString("utf16le",p,y.length-1)}function d(y){var p=y&&y.length?this.write(y):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,m)}return p}function b(y,p){var m=(y.length-p)%3;return m===0?y.toString("base64",p):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length-1]),y.toString("base64",p,y.length-m))}function x(y){var p=y&&y.length?this.write(y):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function O(y){return y.toString(this.encoding)}function h(y){return y&&y.length?this.write(y):""}return Ff}var E0=ko.codes.ERR_STREAM_PREMATURE_CLOSE;function bL(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}function wL(){}function xL(e){return e.setHeader&&typeof e.abort=="function"}function O0(e,t,n){if(typeof t=="function")return O0(e,null,t);t||(t={}),n=bL(n||wL);var r=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,i=function(){e.writable||l()},a=e._writableState&&e._writableState.finished,l=function(){o=!1,a=!0,r||n.call(e)},s=e._readableState&&e._readableState.endEmitted,c=function(){r=!1,s=!0,o||n.call(e)},u=function(x){n.call(e,x)},f=function(){var x;if(r&&!s)return(!e._readableState||!e._readableState.ended)&&(x=new E0),n.call(e,x);if(o&&!a)return(!e._writableState||!e._writableState.ended)&&(x=new E0),n.call(e,x)},d=function(){e.req.on("finish",l)};return xL(e)?(e.on("complete",l),e.on("abort",f),e.req?d():e.on("request",d)):o&&!e._writableState&&(e.on("end",i),e.on("close",i)),e.on("end",c),e.on("finish",l),t.error!==!1&&e.on("error",u),e.on("close",f),function(){e.removeListener("complete",l),e.removeListener("abort",f),e.removeListener("request",d),e.req&&e.req.removeListener("finish",l),e.removeListener("end",i),e.removeListener("close",i),e.removeListener("finish",l),e.removeListener("end",c),e.removeListener("error",u),e.removeListener("close",f)}}var Df=O0,Bf,$0;function SL(){if($0)return Bf;$0=1;var e;function t(m,g,w){return g=n(g),g in m?Object.defineProperty(m,g,{value:w,enumerable:!0,configurable:!0,writable:!0}):m[g]=w,m}function n(m){var g=r(m,"string");return typeof g=="symbol"?g:String(g)}function r(m,g){if(typeof m!="object"||m===null)return m;var w=m[Symbol.toPrimitive];if(w!==void 0){var E=w.call(m,g||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(m)}var o=Df,i=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),s=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),f=Symbol("stream");function d(m,g){return{value:m,done:g}}function b(m){var g=m[i];if(g!==null){var w=m[f].read();w!==null&&(m[c]=null,m[i]=null,m[a]=null,g(d(w,!1)))}}function x(m){oe.nextTick(b,m)}function O(m,g){return function(w,E){m.then(function(){if(g[s]){w(d(void 0,!0));return}g[u](w,E)},E)}}var h=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var g=this,w=this[l];if(w!==null)return Promise.reject(w);if(this[s])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise(function(T,M){oe.nextTick(function(){g[l]?M(g[l]):T(d(void 0,!0))})});var E=this[c],S;if(E)S=new Promise(O(E,this));else{var C=this[f].read();if(C!==null)return Promise.resolve(d(C,!1));S=new Promise(this[u])}return this[c]=S,S}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var g=this;return new Promise(function(w,E){g[f].destroy(null,function(S){if(S){E(S);return}w(d(void 0,!0))})})}),e),h),p=function(g){var w,E=Object.create(y,(w={},t(w,f,{value:g,writable:!0}),t(w,i,{value:null,writable:!0}),t(w,a,{value:null,writable:!0}),t(w,l,{value:null,writable:!0}),t(w,s,{value:g._readableState.endEmitted,writable:!0}),t(w,u,{value:function(C,T){var M=E[f].read();M?(E[c]=null,E[i]=null,E[a]=null,C(d(M,!1))):(E[i]=C,E[a]=T)},writable:!0}),w));return E[c]=null,o(g,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var C=E[a];C!==null&&(E[c]=null,E[i]=null,E[a]=null,C(S)),E[l]=S;return}var T=E[i];T!==null&&(E[c]=null,E[i]=null,E[a]=null,T(d(void 0,!0))),E[s]=!0}),g.on("readable",x.bind(null,E)),E};return Bf=p,Bf}var zf,T0;function CL(){return T0||(T0=1,zf=function(){throw new Error("Readable.from is not available in the browser")}),zf}var qf,P0;function R0(){if(P0)return qf;P0=1,qf=T;var e;T.ReadableState=C,cf.EventEmitter;var t=function(q,le){return q.listeners(le).length},n=Db,r=gi.Buffer,o=(typeof bt!="undefined"?bt:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function i(B){return r.from(B)}function a(B){return r.isBuffer(B)||B instanceof o}var l=uf,s;l&&l.debuglog?s=l.debuglog("stream"):s=function(){};var c=aL(),u=m0,f=_0,d=f.getHighWaterMark,b=ko.codes,x=b.ERR_INVALID_ARG_TYPE,O=b.ERR_STREAM_PUSH_AFTER_EOF,h=b.ERR_METHOD_NOT_IMPLEMENTED,y=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,p,m,g;Qr(T,n);var w=u.errorOrDestroy,E=["error","close","destroy","pause","resume"];function S(B,q,le){if(typeof B.prependListener=="function")return B.prependListener(q,le);!B._events||!B._events[q]?B.on(q,le):Array.isArray(B._events[q])?B._events[q].unshift(le):B._events[q]=[le,B._events[q]]}function C(B,q,le){e=e||Ei(),B=B||{},typeof le!="boolean"&&(le=q instanceof e),this.objectMode=!!B.objectMode,le&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=d(this,B,"readableHighWaterMark",le),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(p||(p=C0().StringDecoder),this.decoder=new p(B.encoding),this.encoding=B.encoding)}function T(B){if(e=e||Ei(),!(this instanceof T))return new T(B);var q=this instanceof e;this._readableState=new C(B,this,q),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),n.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(q){this._readableState&&(this._readableState.destroyed=q)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(B,q){q(B)},T.prototype.push=function(B,q){var le=this._readableState,ne;return le.objectMode?ne=!0:typeof B=="string"&&(q=q||le.defaultEncoding,q!==le.encoding&&(B=r.from(B,q),q=""),ne=!0),M(this,B,q,!1,ne)},T.prototype.unshift=function(B){return M(this,B,null,!0,!1)};function M(B,q,le,ne,ve){s("readableAddChunk",q);var me=B._readableState;if(q===null)me.reading=!1,J(B,me);else{var Ce;if(ve||(Ce=R(me,q)),Ce)w(B,Ce);else if(me.objectMode||q&&q.length>0)if(typeof q!="string"&&!me.objectMode&&Object.getPrototypeOf(q)!==r.prototype&&(q=i(q)),ne)me.endEmitted?w(B,new y):N(B,me,q,!0);else if(me.ended)w(B,new O);else{if(me.destroyed)return!1;me.reading=!1,me.decoder&&!le?(q=me.decoder.write(q),me.objectMode||q.length!==0?N(B,me,q,!1):K(B,me)):N(B,me,q,!1)}else ne||(me.reading=!1,K(B,me))}return!me.ended&&(me.length<me.highWaterMark||me.length===0)}function N(B,q,le,ne){q.flowing&&q.length===0&&!q.sync?(q.awaitDrain=0,B.emit("data",le)):(q.length+=q.objectMode?1:le.length,ne?q.buffer.unshift(le):q.buffer.push(le),q.needReadable&&I(B)),K(B,q)}function R(B,q){var le;return!a(q)&&typeof q!="string"&&q!==void 0&&!B.objectMode&&(le=new x("chunk",["string","Buffer","Uint8Array"],q)),le}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(B){p||(p=C0().StringDecoder);var q=new p(B);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;for(var le=this._readableState.buffer.head,ne="";le!==null;)ne+=q.write(le.data),le=le.next;return this._readableState.buffer.clear(),ne!==""&&this._readableState.buffer.push(ne),this._readableState.length=ne.length,this};var D=1073741824;function V(B){return B>=D?B=D:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function Z(B,q){return B<=0||q.length===0&&q.ended?0:q.objectMode?1:B!==B?q.flowing&&q.length?q.buffer.head.data.length:q.length:(B>q.highWaterMark&&(q.highWaterMark=V(B)),B<=q.length?B:q.ended?q.length:(q.needReadable=!0,0))}T.prototype.read=function(B){s("read",B),B=parseInt(B,10);var q=this._readableState,le=B;if(B!==0&&(q.emittedReadable=!1),B===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return s("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?Q(this):I(this),null;if(B=Z(B,q),B===0&&q.ended)return q.length===0&&Q(this),null;var ne=q.needReadable;s("need readable",ne),(q.length===0||q.length-B<q.highWaterMark)&&(ne=!0,s("length less than watermark",ne)),q.ended||q.reading?(ne=!1,s("reading or ended",ne)):ne&&(s("do read"),q.reading=!0,q.sync=!0,q.length===0&&(q.needReadable=!0),this._read(q.highWaterMark),q.sync=!1,q.reading||(B=Z(le,q)));var ve;return B>0?ve=W(B,q):ve=null,ve===null?(q.needReadable=q.length<=q.highWaterMark,B=0):(q.length-=B,q.awaitDrain=0),q.length===0&&(q.ended||(q.needReadable=!0),le!==B&&q.ended&&Q(this)),ve!==null&&this.emit("data",ve),ve};function J(B,q){if(s("onEofChunk"),!q.ended){if(q.decoder){var le=q.decoder.end();le&&le.length&&(q.buffer.push(le),q.length+=q.objectMode?1:le.length)}q.ended=!0,q.sync?I(B):(q.needReadable=!1,q.emittedReadable||(q.emittedReadable=!0,U(B)))}}function I(B){var q=B._readableState;s("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||(s("emitReadable",q.flowing),q.emittedReadable=!0,oe.nextTick(U,B))}function U(B){var q=B._readableState;s("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&(q.length||q.ended)&&(B.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,H(B)}function K(B,q){q.readingMore||(q.readingMore=!0,oe.nextTick(z,B,q))}function z(B,q){for(;!q.reading&&!q.ended&&(q.length<q.highWaterMark||q.flowing&&q.length===0);){var le=q.length;if(s("maybeReadMore read 0"),B.read(0),le===q.length)break}q.readingMore=!1}T.prototype._read=function(B){w(this,new h("_read()"))},T.prototype.pipe=function(B,q){var le=this,ne=this._readableState;switch(ne.pipesCount){case 0:ne.pipes=B;break;case 1:ne.pipes=[ne.pipes,B];break;default:ne.pipes.push(B);break}ne.pipesCount+=1,s("pipe count=%d opts=%j",ne.pipesCount,q);var ve=(!q||q.end!==!1)&&B!==oe.stdout&&B!==oe.stderr,me=ve?Le:Te;ne.endEmitted?oe.nextTick(me):le.once("end",me),B.on("unpipe",Ce);function Ce(Ke,Xe){s("onunpipe"),Ke===le&&Xe&&Xe.hasUnpiped===!1&&(Xe.hasUnpiped=!0,Ie())}function Le(){s("onend"),B.end()}var fe=G(le);B.on("drain",fe);var Ne=!1;function Ie(){s("cleanup"),B.removeListener("close",Se),B.removeListener("finish",Oe),B.removeListener("drain",fe),B.removeListener("error",be),B.removeListener("unpipe",Ce),le.removeListener("end",Le),le.removeListener("end",Te),le.removeListener("data",Re),Ne=!0,ne.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&fe()}le.on("data",Re);function Re(Ke){s("ondata");var Xe=B.write(Ke);s("dest.write",Xe),Xe===!1&&((ne.pipesCount===1&&ne.pipes===B||ne.pipesCount>1&&ce(ne.pipes,B)!==-1)&&!Ne&&(s("false write response, pause",ne.awaitDrain),ne.awaitDrain++),le.pause())}function be(Ke){s("onerror",Ke),Te(),B.removeListener("error",be),t(B,"error")===0&&w(B,Ke)}S(B,"error",be);function Se(){B.removeListener("finish",Oe),Te()}B.once("close",Se);function Oe(){s("onfinish"),B.removeListener("close",Se),Te()}B.once("finish",Oe);function Te(){s("unpipe"),le.unpipe(B)}return B.emit("pipe",le),ne.flowing||(s("pipe resume"),le.resume()),B};function G(B){return function(){var le=B._readableState;s("pipeOnDrain",le.awaitDrain),le.awaitDrain&&le.awaitDrain--,le.awaitDrain===0&&t(B,"data")&&(le.flowing=!0,H(B))}}T.prototype.unpipe=function(B){var q=this._readableState,le={hasUnpiped:!1};if(q.pipesCount===0)return this;if(q.pipesCount===1)return B&&B!==q.pipes?this:(B||(B=q.pipes),q.pipes=null,q.pipesCount=0,q.flowing=!1,B&&B.emit("unpipe",this,le),this);if(!B){var ne=q.pipes,ve=q.pipesCount;q.pipes=null,q.pipesCount=0,q.flowing=!1;for(var me=0;me<ve;me++)ne[me].emit("unpipe",this,{hasUnpiped:!1});return this}var Ce=ce(q.pipes,B);return Ce===-1?this:(q.pipes.splice(Ce,1),q.pipesCount-=1,q.pipesCount===1&&(q.pipes=q.pipes[0]),B.emit("unpipe",this,le),this)},T.prototype.on=function(B,q){var le=n.prototype.on.call(this,B,q),ne=this._readableState;return B==="data"?(ne.readableListening=this.listenerCount("readable")>0,ne.flowing!==!1&&this.resume()):B==="readable"&&!ne.endEmitted&&!ne.readableListening&&(ne.readableListening=ne.needReadable=!0,ne.flowing=!1,ne.emittedReadable=!1,s("on readable",ne.length,ne.reading),ne.length?I(this):ne.reading||oe.nextTick(F,this)),le},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(B,q){var le=n.prototype.removeListener.call(this,B,q);return B==="readable"&&oe.nextTick(L,this),le},T.prototype.removeAllListeners=function(B){var q=n.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&oe.nextTick(L,this),q};function L(B){var q=B._readableState;q.readableListening=B.listenerCount("readable")>0,q.resumeScheduled&&!q.paused?q.flowing=!0:B.listenerCount("data")>0&&B.resume()}function F(B){s("readable nexttick read 0"),B.read(0)}T.prototype.resume=function(){var B=this._readableState;return B.flowing||(s("resume"),B.flowing=!B.readableListening,X(this,B)),B.paused=!1,this};function X(B,q){q.resumeScheduled||(q.resumeScheduled=!0,oe.nextTick(te,B,q))}function te(B,q){s("resume",q.reading),q.reading||B.read(0),q.resumeScheduled=!1,B.emit("resume"),H(B),q.flowing&&!q.reading&&B.read(0)}T.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function H(B){var q=B._readableState;for(s("flow",q.flowing);q.flowing&&B.read()!==null;);}T.prototype.wrap=function(B){var q=this,le=this._readableState,ne=!1;B.on("end",function(){if(s("wrapped end"),le.decoder&&!le.ended){var Ce=le.decoder.end();Ce&&Ce.length&&q.push(Ce)}q.push(null)}),B.on("data",function(Ce){if(s("wrapped data"),le.decoder&&(Ce=le.decoder.write(Ce)),!(le.objectMode&&Ce==null)&&!(!le.objectMode&&(!Ce||!Ce.length))){var Le=q.push(Ce);Le||(ne=!0,B.pause())}});for(var ve in B)this[ve]===void 0&&typeof B[ve]=="function"&&(this[ve]=function(Le){return function(){return B[Le].apply(B,arguments)}}(ve));for(var me=0;me<E.length;me++)B.on(E[me],this.emit.bind(this,E[me]));return this._read=function(Ce){s("wrapped _read",Ce),ne&&(ne=!1,B.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=SL()),m(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(q){this._readableState&&(this._readableState.flowing=q)}}),T._fromList=W,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function W(B,q){if(q.length===0)return null;var le;return q.objectMode?le=q.buffer.shift():!B||B>=q.length?(q.decoder?le=q.buffer.join(""):q.buffer.length===1?le=q.buffer.first():le=q.buffer.concat(q.length),q.buffer.clear()):le=q.buffer.consume(B,q.decoder),le}function Q(B){var q=B._readableState;s("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,oe.nextTick(ie,q,B))}function ie(B,q){if(s("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,q.readable=!1,q.emit("end"),B.autoDestroy)){var le=q._writableState;(!le||le.autoDestroy&&le.finished)&&q.destroy()}}typeof Symbol=="function"&&(T.from=function(B,q){return g===void 0&&(g=CL()),g(T,B,q)});function ce(B,q){for(var le=0,ne=B.length;le<ne;le++)if(B[le]===q)return le;return-1}return qf}var j0=Ir,Bl=ko.codes,EL=Bl.ERR_METHOD_NOT_IMPLEMENTED,OL=Bl.ERR_MULTIPLE_CALLBACK,$L=Bl.ERR_TRANSFORM_ALREADY_TRANSFORMING,TL=Bl.ERR_TRANSFORM_WITH_LENGTH_0,zl=Ei();Qr(Ir,zl);function PL(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit("error",new OL);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function Ir(e){if(!(this instanceof Ir))return new Ir(e);zl.call(this,e),this._transformState={afterTransform:PL.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",RL)}function RL(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,n){M0(e,t,n)}):M0(this,null,null)}Ir.prototype.push=function(e,t){return this._transformState.needTransform=!1,zl.prototype.push.call(this,e,t)},Ir.prototype._transform=function(e,t,n){n(new EL("_transform()"))},Ir.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},Ir.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},Ir.prototype._destroy=function(e,t){zl.prototype._destroy.call(this,e,function(n){t(n)})};function M0(e,t,n){if(t)return e.emit("error",t);if(n!=null&&e.push(n),e._writableState.length)throw new TL;if(e._transformState.transforming)throw new $L;return e.push(null)}var jL=La,I0=j0;Qr(La,I0);function La(e){if(!(this instanceof La))return new La(e);I0.call(this,e)}La.prototype._transform=function(e,t,n){n(null,e)};var Vf;function ML(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var A0=ko.codes,IL=A0.ERR_MISSING_ARGS,AL=A0.ERR_STREAM_DESTROYED;function N0(e){if(e)throw e}function NL(e){return e.setHeader&&typeof e.abort=="function"}function kL(e,t,n,r){r=ML(r);var o=!1;e.on("close",function(){o=!0}),Vf===void 0&&(Vf=Df),Vf(e,{readable:t,writable:n},function(a){if(a)return r(a);o=!0,r()});var i=!1;return function(a){if(!o&&!i){if(i=!0,NL(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();r(a||new AL("pipe"))}}}function k0(e){e()}function LL(e,t){return e.pipe(t)}function FL(e){return!e.length||typeof e[e.length-1]!="function"?N0:e.pop()}function DL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=FL(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new IL("streams");var o,i=t.map(function(a,l){var s=l<t.length-1,c=l>0;return kL(a,s,c,function(u){o||(o=u),u&&i.forEach(k0),!s&&(i.forEach(k0),r(o))})});return t.reduce(LL)}var BL=DL;(function(e,t){t=e.exports=R0(),t.Stream=t,t.Readable=t,t.Writable=b0(),t.Duplex=Ei(),t.Transform=j0,t.PassThrough=jL,t.finished=Df,t.pipeline=BL})(sf,sf.exports);var L0=sf.exports,F0=of,zL=Qr,D0=L0,ql=Ol.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Hf=Ol.IncomingMessage=function(e,t,n,r){var o=this;if(D0.Readable.call(o),o._mode=n,o.headers={},o.rawHeaders=[],o.trailers={},o.rawTrailers=[],o.on("end",function(){oe.nextTick(function(){o.emit("close")})}),n==="fetch"){let u=function(){a.read().then(function(f){if(!o._destroyed){if(r(f.done),f.done){o.push(null);return}o.push(Io.from(f.value)),u()}}).catch(function(f){r(!0),o._destroyed||o.emit("error",f)})};if(o._fetchResponse=t,o.url=t.url,o.statusCode=t.status,o.statusMessage=t.statusText,t.headers.forEach(function(f,d){o.headers[d.toLowerCase()]=f,o.rawHeaders.push(d,f)}),F0.writableStream){var i=new WritableStream({write:function(f){return r(!1),new Promise(function(d,b){o._destroyed?b():o.push(Io.from(f))?d():o._resumeFetch=d})},close:function(){r(!0),o._destroyed||o.push(null)},abort:function(f){r(!0),o._destroyed||o.emit("error",f)}});try{t.body.pipeTo(i).catch(function(f){r(!0),o._destroyed||o.emit("error",f)});return}catch(f){}}var a=t.body.getReader();u()}else{o._xhr=e,o._pos=0,o.url=e.responseURL,o.statusCode=e.status,o.statusMessage=e.statusText;var l=e.getAllResponseHeaders().split(/\r?\n/);if(l.forEach(function(u){var f=u.match(/^([^:]+):\s*(.*)/);if(f){var d=f[1].toLowerCase();d==="set-cookie"?(o.headers[d]===void 0&&(o.headers[d]=[]),o.headers[d].push(f[2])):o.headers[d]!==void 0?o.headers[d]+=", "+f[2]:o.headers[d]=f[2],o.rawHeaders.push(f[1],f[2])}}),o._charset="x-user-defined",!F0.overrideMimeType){var s=o.rawHeaders["mime-type"];if(s){var c=s.match(/;\s*charset=([^;])(;|$)/);c&&(o._charset=c[1].toLowerCase())}o._charset||(o._charset="utf-8")}}};zL(Hf,D0.Readable),Hf.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},Hf.prototype._onXHRProgress=function(e){var t=this,n=t._xhr,r=null;switch(t._mode){case"text":if(r=n.responseText,r.length>t._pos){var o=r.substr(t._pos);if(t._charset==="x-user-defined"){for(var i=Io.alloc(o.length),a=0;a<o.length;a++)i[a]=o.charCodeAt(a)&255;t.push(i)}else t.push(o,t._charset);t._pos=r.length}break;case"arraybuffer":if(n.readyState!==ql.DONE||!n.response)break;r=n.response,t.push(Io.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=n.response,n.readyState!==ql.LOADING||!r)break;t.push(Io.from(new Uint8Array(r)));break;case"ms-stream":if(r=n.response,n.readyState!==ql.LOADING)break;var l=new bt.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(Io.from(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){e(!0),t.push(null)},l.readAsArrayBuffer(r);break}t._xhr.readyState===ql.DONE&&t._mode!=="ms-stream"&&(e(!0),t.push(null))};var Lo=of,qL=Qr,B0=Ol,Wf=L0,VL=B0.IncomingMessage,z0=B0.readyStates;function HL(e,t){return Lo.fetch&&t?"fetch":Lo.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Lo.msstream?"ms-stream":Lo.arraybuffer&&e?"arraybuffer":"text"}var _n=Tb.exports=function(e){var t=this;Wf.Writable.call(t),t._opts=e,t._body=[],t._headers={},e.auth&&t.setHeader("Authorization","Basic "+Io.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(o){t.setHeader(o,e.headers[o])});var n,r=!0;if(e.mode==="disable-fetch"||"requestTimeout"in e&&!Lo.abortController)r=!1,n=!0;else if(e.mode==="prefer-streaming")n=!1;else if(e.mode==="allow-wrong-content-type")n=!Lo.overrideMimeType;else if(!e.mode||e.mode==="default"||e.mode==="prefer-fast")n=!0;else throw new Error("Invalid value for opts.mode");t._mode=HL(n,r),t._fetchTimer=null,t._socketTimeout=null,t._socketTimer=null,t.on("finish",function(){t._onFinish()})};qL(_n,Wf.Writable),_n.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();UL.indexOf(r)===-1&&(n._headers[r]={name:e,value:t})},_n.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},_n.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},_n.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&t.timeout!==0&&e.setTimeout(t.timeout);var n=e._headers,r=null;t.method!=="GET"&&t.method!=="HEAD"&&(r=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var o=[];if(Object.keys(n).forEach(function(s){var c=n[s].name,u=n[s].value;Array.isArray(u)?u.forEach(function(f){o.push([c,f])}):o.push([c,u])}),e._mode==="fetch"){var i=null;if(Lo.abortController){var a=new AbortController;i=a.signal,e._fetchAbortController=a,"requestTimeout"in t&&t.requestTimeout!==0&&(e._fetchTimer=bt.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}bt.fetch(e._opts.url,{method:e._opts.method,headers:o,body:r||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:i}).then(function(s){e._fetchResponse=s,e._resetTimers(!1),e._connect()},function(s){e._resetTimers(!0),e._destroyed||e.emit("error",s)})}else{var l=e._xhr=new bt.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(s){oe.nextTick(function(){e.emit("error",s)});return}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),e._mode==="text"&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),o.forEach(function(s){l.setRequestHeader(s[0],s[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case z0.LOADING:case z0.DONE:e._onXHRProgress();break}},e._mode==="moz-chunked-arraybuffer"&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{l.send(r)}catch(s){oe.nextTick(function(){e.emit("error",s)});return}}}};function WL(e){try{var t=e.status;return t!==null&&t!==0}catch(n){return!1}}_n.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),!(!WL(e._xhr)||e._destroyed)&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},_n.prototype._connect=function(){var e=this;e._destroyed||(e._response=new VL(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},_n.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},_n.prototype._resetTimers=function(e){var t=this;bt.clearTimeout(t._socketTimer),t._socketTimer=null,e?(bt.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=bt.setTimeout(function(){t.emit("timeout")},t._socketTimeout))},_n.prototype.abort=_n.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},_n.prototype.end=function(e,t,n){var r=this;typeof e=="function"&&(n=e,e=void 0),Wf.Writable.prototype.end.call(r,e,t,n)},_n.prototype.setTimeout=function(e,t){var n=this;t&&n.once("timeout",t),n._socketTimeout=e,n._resetTimers(!1)},_n.prototype.flushHeaders=function(){},_n.prototype.setNoDelay=function(){},_n.prototype.setSocketKeepAlive=function(){};var UL=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],GL=Tb.exports,KL=YL,XL=Object.prototype.hasOwnProperty;function YL(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)XL.call(n,r)&&(e[r]=n[r])}return e}var JL={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Vl={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Vl.exports,function(e,t){(function(n){var r=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,i=typeof bt=="object"&&bt;(i.global===i||i.window===i||i.self===i)&&(n=i);var a,l=2147483647,s=36,c=1,u=26,f=38,d=700,b=72,x=128,O="-",h=/^xn--/,y=/[^\x20-\x7E]/,p=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=s-c,w=Math.floor,E=String.fromCharCode,S;function C(z){throw new RangeError(m[z])}function T(z,G){for(var L=z.length,F=[];L--;)F[L]=G(z[L]);return F}function M(z,G){var L=z.split("@"),F="";L.length>1&&(F=L[0]+"@",z=L[1]),z=z.replace(p,".");var X=z.split("."),te=T(X,G).join(".");return F+te}function N(z){for(var G=[],L=0,F=z.length,X,te;L<F;)X=z.charCodeAt(L++),X>=55296&&X<=56319&&L<F?(te=z.charCodeAt(L++),(te&64512)==56320?G.push(((X&1023)<<10)+(te&1023)+65536):(G.push(X),L--)):G.push(X);return G}function R(z){return T(z,function(G){var L="";return G>65535&&(G-=65536,L+=E(G>>>10&1023|55296),G=56320|G&1023),L+=E(G),L}).join("")}function D(z){return z-48<10?z-22:z-65<26?z-65:z-97<26?z-97:s}function V(z,G){return z+22+75*(z<26)-((G!=0)<<5)}function Z(z,G,L){var F=0;for(z=L?w(z/d):z>>1,z+=w(z/G);z>g*u>>1;F+=s)z=w(z/g);return w(F+(g+1)*z/(z+f))}function J(z){var G=[],L=z.length,F,X=0,te=x,H=b,W,Q,ie,ce,B,q,le,ne,ve;for(W=z.lastIndexOf(O),W<0&&(W=0),Q=0;Q<W;++Q)z.charCodeAt(Q)>=128&&C("not-basic"),G.push(z.charCodeAt(Q));for(ie=W>0?W+1:0;ie<L;){for(ce=X,B=1,q=s;ie>=L&&C("invalid-input"),le=D(z.charCodeAt(ie++)),(le>=s||le>w((l-X)/B))&&C("overflow"),X+=le*B,ne=q<=H?c:q>=H+u?u:q-H,!(le<ne);q+=s)ve=s-ne,B>w(l/ve)&&C("overflow"),B*=ve;F=G.length+1,H=Z(X-ce,F,ce==0),w(X/F)>l-te&&C("overflow"),te+=w(X/F),X%=F,G.splice(X++,0,te)}return R(G)}function I(z){var G,L,F,X,te,H,W,Q,ie,ce,B,q=[],le,ne,ve,me;for(z=N(z),le=z.length,G=x,L=0,te=b,H=0;H<le;++H)B=z[H],B<128&&q.push(E(B));for(F=X=q.length,X&&q.push(O);F<le;){for(W=l,H=0;H<le;++H)B=z[H],B>=G&&B<W&&(W=B);for(ne=F+1,W-G>w((l-L)/ne)&&C("overflow"),L+=(W-G)*ne,G=W,H=0;H<le;++H)if(B=z[H],B<G&&++L>l&&C("overflow"),B==G){for(Q=L,ie=s;ce=ie<=te?c:ie>=te+u?u:ie-te,!(Q<ce);ie+=s)me=Q-ce,ve=s-ce,q.push(E(V(ce+me%ve,0))),Q=w(me/ve);q.push(E(V(Q,0))),te=Z(L,ne,F==X),L=0,++F}++L,++G}return q.join("")}function U(z){return M(z,function(G){return h.test(G)?J(G.slice(4).toLowerCase()):G})}function K(z){return M(z,function(G){return y.test(G)?"xn--"+I(G):G})}if(a={version:"1.4.1",ucs2:{decode:N,encode:R},decode:J,encode:I,toASCII:K,toUnicode:U},r&&o)if(e.exports==r)o.exports=a;else for(S in a)a.hasOwnProperty(S)&&(r[S]=a[S]);else n.punycode=a})(bt)}(Vl,Vl.exports);var QL=Vl.exports;const ZL=uc(QL),eF=zp(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Uf=typeof Map=="function"&&Map.prototype,Gf=Object.getOwnPropertyDescriptor&&Uf?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Hl=Uf&&Gf&&typeof Gf.get=="function"?Gf.get:null,q0=Uf&&Map.prototype.forEach,Kf=typeof Set=="function"&&Set.prototype,Xf=Object.getOwnPropertyDescriptor&&Kf?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Wl=Kf&&Xf&&typeof Xf.get=="function"?Xf.get:null,V0=Kf&&Set.prototype.forEach,tF=typeof WeakMap=="function"&&WeakMap.prototype,Fa=tF?WeakMap.prototype.has:null,nF=typeof WeakSet=="function"&&WeakSet.prototype,Da=nF?WeakSet.prototype.has:null,rF=typeof WeakRef=="function"&&WeakRef.prototype,H0=rF?WeakRef.prototype.deref:null,oF=Boolean.prototype.valueOf,iF=Object.prototype.toString,aF=Function.prototype.toString,sF=String.prototype.match,Yf=String.prototype.slice,Zr=String.prototype.replace,lF=String.prototype.toUpperCase,W0=String.prototype.toLowerCase,U0=RegExp.prototype.test,G0=Array.prototype.concat,vr=Array.prototype.join,cF=Array.prototype.slice,K0=Math.floor,Jf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Qf=Object.getOwnPropertySymbols,Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",yn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oi||!0)?Symbol.toStringTag:null,X0=Object.prototype.propertyIsEnumerable,Y0=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function J0(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||U0.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-K0(-e):K0(e);if(r!==e){var o=String(r),i=Yf.call(t,o.length+1);return Zr.call(o,n,"$&_")+"."+Zr.call(Zr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Zr.call(t,n,"$&_")}var ep=eF,Q0=ep.custom,Z0=nw(Q0)?Q0:null,uF=function e(t,n,r,o){var i=n||{};if(eo(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(eo(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=eo(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(eo(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(eo(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof t=="undefined")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return ow(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?J0(t,s):s}if(typeof t=="bigint"){var c=String(t)+"n";return l?J0(t,c):c}var u=typeof i.depth=="undefined"?5:i.depth;if(typeof r=="undefined"&&(r=0),r>=u&&u>0&&typeof t=="object")return tp(t)?"[Array]":"[Object]";var f=TF(i,r);if(typeof o=="undefined")o=[];else if(rw(o,t)>=0)return"[Circular]";function d(D,V,Z){if(V&&(o=cF.call(o),o.push(V)),Z){var J={depth:i.depth};return eo(i,"quoteStyle")&&(J.quoteStyle=i.quoteStyle),e(D,J,r+1,o)}return e(D,i,r+1,o)}if(typeof t=="function"&&!tw(t)){var b=yF(t),x=Ul(t,d);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(x.length>0?" { "+vr.call(x,", ")+" }":"")}if(nw(t)){var O=Oi?Zr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zf.call(t);return typeof t=="object"&&!Oi?Ba(O):O}if(EF(t)){for(var h="<"+W0.call(String(t.nodeName)),y=t.attributes||[],p=0;p<y.length;p++)h+=" "+y[p].name+"="+ew(dF(y[p].value),"double",i);return h+=">",t.childNodes&&t.childNodes.length&&(h+="..."),h+="</"+W0.call(String(t.nodeName))+">",h}if(tp(t)){if(t.length===0)return"[]";var m=Ul(t,d);return f&&!$F(m)?"["+rp(m,f)+"]":"[ "+vr.call(m,", ")+" ]"}if(pF(t)){var g=Ul(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!X0.call(t,"cause")?"{ ["+String(t)+"] "+vr.call(G0.call("[cause]: "+d(t.cause),g),", ")+" }":g.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+vr.call(g,", ")+" }"}if(typeof t=="object"&&a){if(Z0&&typeof t[Z0]=="function"&&ep)return ep(t,{depth:u-r});if(a!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(bF(t)){var w=[];return q0&&q0.call(t,function(D,V){w.push(d(V,t,!0)+" => "+d(D,t))}),iw("Map",Hl.call(t),w,f)}if(SF(t)){var E=[];return V0&&V0.call(t,function(D){E.push(d(D,t))}),iw("Set",Wl.call(t),E,f)}if(wF(t))return np("WeakMap");if(CF(t))return np("WeakSet");if(xF(t))return np("WeakRef");if(mF(t))return Ba(d(Number(t)));if(vF(t))return Ba(d(Jf.call(t)));if(gF(t))return Ba(oF.call(t));if(hF(t))return Ba(d(String(t)));if(typeof window!="undefined"&&t===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&t===globalThis||typeof bt!="undefined"&&t===bt)return"{ [object globalThis] }";if(!fF(t)&&!tw(t)){var S=Ul(t,d),C=Y0?Y0(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",M=!C&&yn&&Object(t)===t&&yn in t?Yf.call(to(t),8,-1):T?"Object":"",N=C||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",R=N+(M||T?"["+vr.call(G0.call([],M||[],T||[]),": ")+"] ":"");return S.length===0?R+"{}":f?R+"{"+rp(S,f)+"}":R+"{ "+vr.call(S,", ")+" }"}return String(t)};function ew(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function dF(e){return Zr.call(String(e),/"/g,"&quot;")}function tp(e){return to(e)==="[object Array]"&&(!yn||!(typeof e=="object"&&yn in e))}function fF(e){return to(e)==="[object Date]"&&(!yn||!(typeof e=="object"&&yn in e))}function tw(e){return to(e)==="[object RegExp]"&&(!yn||!(typeof e=="object"&&yn in e))}function pF(e){return to(e)==="[object Error]"&&(!yn||!(typeof e=="object"&&yn in e))}function hF(e){return to(e)==="[object String]"&&(!yn||!(typeof e=="object"&&yn in e))}function mF(e){return to(e)==="[object Number]"&&(!yn||!(typeof e=="object"&&yn in e))}function gF(e){return to(e)==="[object Boolean]"&&(!yn||!(typeof e=="object"&&yn in e))}function nw(e){if(Oi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Zf)return!1;try{return Zf.call(e),!0}catch(t){}return!1}function vF(e){if(!e||typeof e!="object"||!Jf)return!1;try{return Jf.call(e),!0}catch(t){}return!1}var _F=Object.prototype.hasOwnProperty||function(e){return e in this};function eo(e,t){return _F.call(e,t)}function to(e){return iF.call(e)}function yF(e){if(e.name)return e.name;var t=sF.call(aF.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function rw(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function bF(e){if(!Hl||!e||typeof e!="object")return!1;try{Hl.call(e);try{Wl.call(e)}catch(t){return!0}return e instanceof Map}catch(t){}return!1}function wF(e){if(!Fa||!e||typeof e!="object")return!1;try{Fa.call(e,Fa);try{Da.call(e,Da)}catch(t){return!0}return e instanceof WeakMap}catch(t){}return!1}function xF(e){if(!H0||!e||typeof e!="object")return!1;try{return H0.call(e),!0}catch(t){}return!1}function SF(e){if(!Wl||!e||typeof e!="object")return!1;try{Wl.call(e);try{Hl.call(e)}catch(t){return!0}return e instanceof Set}catch(t){}return!1}function CF(e){if(!Da||!e||typeof e!="object")return!1;try{Da.call(e,Da);try{Fa.call(e,Fa)}catch(t){return!0}return e instanceof WeakSet}catch(t){}return!1}function EF(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function ow(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ow(Yf.call(e,0,t.maxStringLength),t)+r}var o=Zr.call(Zr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,OF);return ew(o,"single",t)}function OF(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+lF.call(t.toString(16))}function Ba(e){return"Object("+e+")"}function np(e){return e+" { ? }"}function iw(e,t,n,r){var o=r?rp(n,r):vr.call(n,", ");return e+" ("+t+") {"+o+"}"}function $F(e){for(var t=0;t<e.length;t++)if(rw(e[t],`
266
- `)>=0)return!1;return!0}function TF(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=vr.call(Array(e.indent+1)," ");else return null;return{base:n,prev:vr.call(Array(t+1),n)}}function rp(e,t){if(e.length===0)return"";var n=`
267
- `+t.prev+t.base;return n+vr.call(e,","+n)+`
268
- `+t.prev}function Ul(e,t){var n=tp(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=eo(e,o)?t(e[o],e):""}var i=typeof Qf=="function"?Qf(e):[],a;if(Oi){a={};for(var l=0;l<i.length;l++)a["$"+i[l]]=i[l]}for(var s in e)eo(e,s)&&(n&&String(Number(s))===s&&s<e.length||Oi&&a["$"+s]instanceof Symbol||(U0.call(/[^\w$]/,s)?r.push(t(s,e)+": "+t(e[s],e)):r.push(s+": "+t(e[s],e))));if(typeof Qf=="function")for(var c=0;c<i.length;c++)X0.call(e,i[c])&&r.push("["+t(i[c])+"]: "+t(e[i[c]],e));return r}var aw=xi,$i=bf,PF=uF,RF=Na,Gl=aw("%WeakMap%",!0),Kl=aw("%Map%",!0),jF=$i("WeakMap.prototype.get",!0),MF=$i("WeakMap.prototype.set",!0),IF=$i("WeakMap.prototype.has",!0),AF=$i("Map.prototype.get",!0),NF=$i("Map.prototype.set",!0),kF=$i("Map.prototype.has",!0),op=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},LF=function(e,t){var n=op(e,t);return n&&n.value},FF=function(e,t,n){var r=op(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},DF=function(e,t){return!!op(e,t)},BF=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new RF("Side channel does not contain "+PF(i))},get:function(i){if(Gl&&i&&(typeof i=="object"||typeof i=="function")){if(t)return jF(t,i)}else if(Kl){if(n)return AF(n,i)}else if(r)return LF(r,i)},has:function(i){if(Gl&&i&&(typeof i=="object"||typeof i=="function")){if(t)return IF(t,i)}else if(Kl){if(n)return kF(n,i)}else if(r)return DF(r,i);return!1},set:function(i,a){Gl&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new Gl),MF(t,i,a)):Kl?(n||(n=new Kl),NF(n,i,a)):(r||(r={key:{},next:null}),FF(r,i,a))}};return o},zF=String.prototype.replace,qF=/%20/g,ip={RFC1738:"RFC1738",RFC3986:"RFC3986"},ap={default:ip.RFC3986,formatters:{RFC1738:function(e){return zF.call(e,qF,"+")},RFC3986:function(e){return String(e)}},RFC1738:ip.RFC1738,RFC3986:ip.RFC3986},VF=ap,sp=Object.prototype.hasOwnProperty,Fo=Array.isArray,_r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),HF=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Fo(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]!="undefined"&&o.push(r[i]);n.obj[n.prop]=o}}},sw=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]!="undefined"&&(r[o]=t[o]);return r},WF=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Fo(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!sp.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Fo(t)&&!Fo(n)&&(o=sw(t,r)),Fo(t)&&Fo(n)?(n.forEach(function(i,a){if(sp.call(t,a)){var l=t[a];l&&typeof l=="object"&&i&&typeof i=="object"?t[a]=e(l,i,r):t.push(i)}else t[a]=i}),t):Object.keys(n).reduce(function(i,a){var l=n[a];return sp.call(i,a)?i[a]=e(i[a],l,r):i[a]=l,i},o)},UF=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},GF=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(o){return r}},lp=1024,KF=function(t,n,r,o,i){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(b){return"%26%23"+parseInt(b.slice(2),16)+"%3B"});for(var l="",s=0;s<a.length;s+=lp){for(var c=a.length>=lp?a.slice(s,s+lp):a,u=[],f=0;f<c.length;++f){var d=c.charCodeAt(f);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===VF.RFC1738&&(d===40||d===41)){u[u.length]=c.charAt(f);continue}if(d<128){u[u.length]=_r[d];continue}if(d<2048){u[u.length]=_r[192|d>>6]+_r[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=_r[224|d>>12]+_r[128|d>>6&63]+_r[128|d&63];continue}f+=1,d=65536+((d&1023)<<10|c.charCodeAt(f)&1023),u[u.length]=_r[240|d>>18]+_r[128|d>>12&63]+_r[128|d>>6&63]+_r[128|d&63]}l+=u.join("")}return l},XF=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],l=Object.keys(a),s=0;s<l.length;++s){var c=l[s],u=a[c];typeof u=="object"&&u!==null&&r.indexOf(u)===-1&&(n.push({obj:a,prop:c}),r.push(u))}return HF(n),t},YF=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},JF=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},QF=function(t,n){return[].concat(t,n)},ZF=function(t,n){if(Fo(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},lw={arrayToObject:sw,assign:UF,combine:QF,compact:XF,decode:GF,encode:KF,isBuffer:JF,isRegExp:YF,maybeMap:ZF,merge:WF},cw=BF,Xl=lw,za=ap,eD=Object.prototype.hasOwnProperty,uw={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},yr=Array.isArray,tD=Array.prototype.push,dw=function(e,t){tD.apply(e,yr(t)?t:[t])},nD=Date.prototype.toISOString,fw=za.default,on={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Xl.encode,encodeValuesOnly:!1,format:fw,formatter:za.formatters[fw],indices:!1,serializeDate:function(t){return nD.call(t)},skipNulls:!1,strictNullHandling:!1},rD=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},cp={},oD=function e(t,n,r,o,i,a,l,s,c,u,f,d,b,x,O,h,y,p){for(var m=t,g=p,w=0,E=!1;(g=g.get(cp))!==void 0&&!E;){var S=g.get(t);if(w+=1,typeof S!="undefined"){if(S===w)throw new RangeError("Cyclic object value");E=!0}typeof g.get(cp)=="undefined"&&(w=0)}if(typeof u=="function"?m=u(n,m):m instanceof Date?m=b(m):r==="comma"&&yr(m)&&(m=Xl.maybeMap(m,function(z){return z instanceof Date?b(z):z})),m===null){if(a)return c&&!h?c(n,on.encoder,y,"key",x):n;m=""}if(rD(m)||Xl.isBuffer(m)){if(c){var C=h?n:c(n,on.encoder,y,"key",x);return[O(C)+"="+O(c(m,on.encoder,y,"value",x))]}return[O(n)+"="+O(String(m))]}var T=[];if(typeof m=="undefined")return T;var M;if(r==="comma"&&yr(m))h&&c&&(m=Xl.maybeMap(m,c)),M=[{value:m.length>0?m.join(",")||null:void 0}];else if(yr(u))M=u;else{var N=Object.keys(m);M=f?N.sort(f):N}var R=s?n.replace(/\./g,"%2E"):n,D=o&&yr(m)&&m.length===1?R+"[]":R;if(i&&yr(m)&&m.length===0)return D+"[]";for(var V=0;V<M.length;++V){var Z=M[V],J=typeof Z=="object"&&typeof Z.value!="undefined"?Z.value:m[Z];if(!(l&&J===null)){var I=d&&s?Z.replace(/\./g,"%2E"):Z,U=yr(m)?typeof r=="function"?r(D,I):D:D+(d?"."+I:"["+I+"]");p.set(t,w);var K=cw();K.set(cp,p),dw(T,e(J,U,r,o,i,a,l,s,r==="comma"&&h&&yr(m)?null:c,u,f,d,b,x,O,h,y,K))}}return T},iD=function(t){if(!t)return on;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys!="undefined"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(t.encoder!==null&&typeof t.encoder!="undefined"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||on.charset;if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=za.default;if(typeof t.format!="undefined"){if(!eD.call(za.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=za.formatters[r],i=on.filter;(typeof t.filter=="function"||yr(t.filter))&&(i=t.filter);var a;if(t.arrayFormat in uw?a=t.arrayFormat:"indices"in t?a=t.indices?"indices":"repeat":a=on.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var l=typeof t.allowDots=="undefined"?t.encodeDotInKeys===!0?!0:on.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:on.addQueryPrefix,allowDots:l,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:on.allowEmptyArrays,arrayFormat:a,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:on.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:typeof t.delimiter=="undefined"?on.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:on.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:on.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:on.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:on.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:on.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:on.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:on.strictNullHandling}},aD=function(e,t){var n=e,r=iD(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):yr(r.filter)&&(i=r.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var l=uw[r.arrayFormat],s=l==="comma"&&r.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=cw(),u=0;u<o.length;++u){var f=o[u];r.skipNulls&&n[f]===null||dw(a,oD(n[f],f,l,s,r.allowEmptyArrays,r.strictNullHandling,r.skipNulls,r.encodeDotInKeys,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var d=a.join(r.delimiter),b=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),d.length>0?b+d:""},Ti=lw,up=Object.prototype.hasOwnProperty,sD=Array.isArray,Ut={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Ti.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},lD=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},pw=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},cD="utf8=%26%2310003%3B",uD="utf8=%E2%9C%93",dD=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),l=-1,s,c=n.charset;if(n.charsetSentinel)for(s=0;s<a.length;++s)a[s].indexOf("utf8=")===0&&(a[s]===uD?c="utf-8":a[s]===cD&&(c="iso-8859-1"),l=s,s=a.length);for(s=0;s<a.length;++s)if(s!==l){var u=a[s],f=u.indexOf("]="),d=f===-1?u.indexOf("="):f+1,b,x;d===-1?(b=n.decoder(u,Ut.decoder,c,"key"),x=n.strictNullHandling?null:""):(b=n.decoder(u.slice(0,d),Ut.decoder,c,"key"),x=Ti.maybeMap(pw(u.slice(d+1),n),function(h){return n.decoder(h,Ut.decoder,c,"value")})),x&&n.interpretNumericEntities&&c==="iso-8859-1"&&(x=lD(x)),u.indexOf("[]=")>-1&&(x=sD(x)?[x]:x);var O=up.call(r,b);O&&n.duplicates==="combine"?r[b]=Ti.combine(r[b],x):(!O||n.duplicates==="last")&&(r[b]=x)}return r},fD=function(e,t,n,r){for(var o=r?t:pw(t,n),i=e.length-1;i>=0;--i){var a,l=e[i];if(l==="[]"&&n.parseArrays)a=n.allowEmptyArrays&&(o===""||n.strictNullHandling&&o===null)?[]:[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,c=n.decodeDotInKeys?s.replace(/%2E/g,"."):s,u=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(u)&&l!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(a=[],a[u]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},pD=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=r.depth>0&&a.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!r.plainObjects&&up.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var f=0;r.depth>0&&(s=l.exec(i))!==null&&f<r.depth;){if(f+=1,!r.plainObjects&&up.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(s[1])}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u.push("["+i.slice(s.index)+"]")}return fD(u,n,r,o)}},hD=function(t){if(!t)return Ut;if(typeof t.allowEmptyArrays!="undefined"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys!="undefined"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder!="undefined"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset!="undefined"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset=="undefined"?Ut.charset:t.charset,r=typeof t.duplicates=="undefined"?Ut.duplicates:t.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots=="undefined"?t.decodeDotInKeys===!0?!0:Ut.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Ut.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ut.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ut.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ut.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ut.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ut.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:Ut.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:Ut.decoder,delimiter:typeof t.delimiter=="string"||Ti.isRegExp(t.delimiter)?t.delimiter:Ut.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ut.depth,duplicates:r,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ut.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ut.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ut.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:Ut.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ut.strictNullHandling}},mD=function(e,t){var n=hD(t);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?dD(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),a=0;a<i.length;++a){var l=i[a],s=pD(l,r[l],n,typeof e=="string");o=Ti.merge(o,s,n)}return n.allowSparse===!0?o:Ti.compact(o)},gD=aD,vD=mD,_D=ap,yD={formats:_D,parse:vD,stringify:gD};const bD=uc(yD);var wD=ZL;function Wn(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var xD=/^([a-z0-9.+-]+:)/i,SD=/:[0-9]*$/,CD=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,ED=["<",">",'"',"`"," ","\r",`
269
- `," "],OD=["{","}","|","\\","^","`"].concat(ED),dp=["'"].concat(OD),hw=["%","/","?",";","#"].concat(dp),mw=["/","?","#"],$D=255,gw=/^[+a-z0-9A-Z_-]{0,63}$/,TD=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,PD={javascript:!0,"javascript:":!0},fp={javascript:!0,"javascript:":!0},Pi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},pp=bD;function qa(e,t,n){if(e&&typeof e=="object"&&e instanceof Wn)return e;var r=new Wn;return r.parse(e,t,n),r}Wn.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r<e.indexOf("#")?"?":"#",i=e.split(o),a=/\\/g;i[0]=i[0].replace(a,"/"),e=i.join(o);var l=e;if(l=l.trim(),!n&&e.split("#").length===1){var s=CD.exec(l);if(s)return this.path=l,this.href=l,this.pathname=s[1],s[2]?(this.search=s[2],t?this.query=pp.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var c=xD.exec(l);if(c){c=c[0];var u=c.toLowerCase();this.protocol=u,l=l.substr(c.length)}if(n||c||l.match(/^\/\/[^@/]+@[^@/]+/)){var f=l.substr(0,2)==="//";f&&!(c&&fp[c])&&(l=l.substr(2),this.slashes=!0)}if(!fp[c]&&(f||c&&!Pi[c])){for(var d=-1,b=0;b<mw.length;b++){var x=l.indexOf(mw[b]);x!==-1&&(d===-1||x<d)&&(d=x)}var O,h;d===-1?h=l.lastIndexOf("@"):h=l.lastIndexOf("@",d),h!==-1&&(O=l.slice(0,h),l=l.slice(h+1),this.auth=decodeURIComponent(O)),d=-1;for(var b=0;b<hw.length;b++){var x=l.indexOf(hw[b]);x!==-1&&(d===-1||x<d)&&(d=x)}d===-1&&(d=l.length),this.host=l.slice(0,d),l=l.slice(d),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var p=this.hostname.split(/\./),b=0,m=p.length;b<m;b++){var g=p[b];if(g&&!g.match(gw)){for(var w="",E=0,S=g.length;E<S;E++)g.charCodeAt(E)>127?w+="x":w+=g[E];if(!w.match(gw)){var C=p.slice(0,b),T=p.slice(b+1),M=g.match(TD);M&&(C.push(M[1]),T.unshift(M[2])),T.length&&(l="/"+T.join(".")+l),this.hostname=C.join(".");break}}}this.hostname.length>$D?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=wD.toASCII(this.hostname));var N=this.port?":"+this.port:"",R=this.hostname||"";this.host=R+N,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!PD[u])for(var b=0,m=dp.length;b<m;b++){var D=dp[b];if(l.indexOf(D)!==-1){var V=encodeURIComponent(D);V===D&&(V=escape(D)),l=l.split(D).join(V)}}var Z=l.indexOf("#");Z!==-1&&(this.hash=l.substr(Z),l=l.slice(0,Z));var J=l.indexOf("?");if(J!==-1?(this.search=l.substr(J),this.query=l.substr(J+1),t&&(this.query=pp.parse(this.query)),l=l.slice(0,J)):t&&(this.search="",this.query={}),l&&(this.pathname=l),Pi[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",I=this.search||"";this.path=N+I}return this.href=this.format(),this};function RD(e){return typeof e=="string"&&(e=qa(e)),e instanceof Wn?e.format():Wn.prototype.format.call(e)}Wn.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=pp.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||i&&"?"+i||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Pi[t])&&o!==!1?(o="//"+(o||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):o||(o=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),n=n.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),a=a.replace("#","%23"),t+o+n+a+r};function jD(e,t){return qa(e,!1,!0).resolve(t)}Wn.prototype.resolve=function(e){return this.resolveObject(qa(e,!1,!0)).format()};function MD(e,t){return e?qa(e,!1,!0).resolveObject(t):t}Wn.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Wn;t.parse(e,!1,!0),e=t}for(var n=new Wn,r=Object.keys(this),o=0;o<r.length;o++){var i=r[o];n[i]=this[i]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var s=a[l];s!=="protocol"&&(n[s]=e[s])}return Pi[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Pi[e.protocol]){for(var c=Object.keys(e),u=0;u<c.length;u++){var f=c[u];n[f]=e[f]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!fp[e.protocol]){for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),m[0]!==""&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var d=n.pathname||"",b=n.search||"";n.path=d+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var x=n.pathname&&n.pathname.charAt(0)==="/",O=e.host||e.pathname&&e.pathname.charAt(0)==="/",h=O||x||n.host&&e.pathname,y=h,p=n.pathname&&n.pathname.split("/")||[],m=e.pathname&&e.pathname.split("/")||[],g=n.protocol&&!Pi[n.protocol];if(g&&(n.hostname="",n.port=null,n.host&&(p[0]===""?p[0]=n.host:p.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(m[0]===""?m[0]=e.host:m.unshift(e.host)),e.host=null),h=h&&(m[0]===""||p[0]==="")),O)n.host=e.host||e.host===""?e.host:n.host,n.hostname=e.hostname||e.hostname===""?e.hostname:n.hostname,n.search=e.search,n.query=e.query,p=m;else if(m.length)p||(p=[]),p.pop(),p=p.concat(m),n.search=e.search,n.query=e.query;else if(e.search!=null){if(g){n.host=p.shift(),n.hostname=n.host;var w=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;w&&(n.auth=w.shift(),n.hostname=w.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!p.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=p.slice(-1)[0],S=(n.host||e.host||p.length>1)&&(E==="."||E==="..")||E==="",C=0,T=p.length;T>=0;T--)E=p[T],E==="."?p.splice(T,1):E===".."?(p.splice(T,1),C++):C&&(p.splice(T,1),C--);if(!h&&!y)for(;C--;C)p.unshift("..");h&&p[0]!==""&&(!p[0]||p[0].charAt(0)!=="/")&&p.unshift(""),S&&p.join("/").substr(-1)!=="/"&&p.push("");var M=p[0]===""||p[0]&&p[0].charAt(0)==="/";if(g){n.hostname=M?"":p.length?p.shift():"",n.host=n.hostname;var w=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;w&&(n.auth=w.shift(),n.hostname=w.shift(),n.host=n.hostname)}return h=h||n.host&&p.length,h&&!M&&p.unshift(""),p.length>0?n.pathname=p.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},Wn.prototype.parseHost=function(){var e=this.host,t=SD.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var ID=qa,AD=jD,vw=MD,ND=RD,kD=Wn;function LD(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function FD(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if(typeof r!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!r)continue;e=r+"/"+e,t=r.charAt(0)==="/"}return e=LD(DD(e.split("/"),function(o){return!!o}),!t).join("/"),(t?"/":"")+e||"."}function DD(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var _w=function(e){function t(){var r=this||self;return delete e.prototype.__magic__,r}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var n=__magic__;return n}(Object),BD=ND,yw=ID,bw=AD,ww=kD,no=_w.URL,xw=_w.URLSearchParams,zD=/%/g,qD=/\\/g,VD=/\n/g,HD=/\r/g,WD=/\t/g,UD=47;function GD(e){var t=e!=null?e:null;return!!(t!==null&&(t!=null&&t.href)&&(t!=null&&t.origin))}function KD(e){if(e.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var t=e.pathname,n=0;n<t.length;n++)if(t[n]==="%"){var r=t.codePointAt(n+2)|32;if(t[n+1]==="2"&&r===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(t)}function XD(e){return e.includes("%")&&(e=e.replace(zD,"%25")),e.includes("\\")&&(e=e.replace(qD,"%5C")),e.includes(`
270
- `)&&(e=e.replace(VD,"%0A")),e.includes("\r")&&(e=e.replace(HD,"%0D")),e.includes(" ")&&(e=e.replace(WD,"%09")),e}var Sw=function(t){if(typeof t=="undefined")throw new TypeError('The "domain" argument must be specified');return new no("http://"+t).hostname},Cw=function(t){if(typeof t=="undefined")throw new TypeError('The "domain" argument must be specified');return new no("http://"+t).hostname},Ew=function(t){var n=new no("file://"),r=FD(t),o=t.charCodeAt(t.length-1);return o===UD&&r[r.length-1]!=="/"&&(r+="/"),n.pathname=XD(r),n},Ow=function(t){if(!GD(t)&&typeof t!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof t+" ("+t+")");var n=new no(t);if(n.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return KD(n)},$w=function(t,n){var r,o,i,a;if(n===void 0&&(n={}),!(t instanceof no))return BD(t);if(typeof n!="object"||n===null)throw new TypeError('The "options" argument must be of type object.');var l=(r=n.auth)!=null?r:!0,s=(o=n.fragment)!=null?o:!0,c=(i=n.search)!=null?i:!0;(a=n.unicode)!=null;var u=new no(t.toString());return l||(u.username="",u.password=""),s||(u.hash=""),c||(u.search=""),u.toString()},YD={format:$w,parse:yw,resolve:bw,resolveObject:vw,Url:ww,URL:no,URLSearchParams:xw,domainToASCII:Sw,domainToUnicode:Cw,pathToFileURL:Ew,fileURLToPath:Ow};const Tw=zp(Object.freeze(Object.defineProperty({__proto__:null,URL:no,URLSearchParams:xw,Url:ww,default:YD,domainToASCII:Sw,domainToUnicode:Cw,fileURLToPath:Ow,format:$w,parse:yw,pathToFileURL:Ew,resolve:bw,resolveObject:vw},Symbol.toStringTag,{value:"Module"})));(function(e){var t=GL,n=Ol,r=KL,o=JL,i=Tw,a=e;a.request=function(l,s){typeof l=="string"?l=i.parse(l):l=r(l);var c=bt.location.protocol.search(/^https?:$/)===-1?"http:":"",u=l.protocol||c,f=l.hostname||l.host,d=l.port,b=l.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),l.url=(f?u+"//"+f:"")+(d?":"+d:"")+b,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var x=new t(l);return s&&x.on("response",s),x},a.get=function(s,c){var u=a.request(s,c);return u.end(),u},a.ClientRequest=t,a.IncomingMessage=n.IncomingMessage,a.Agent=function(){},a.Agent.defaultMaxSockets=4,a.globalAgent=new a.Agent,a.STATUS_CODES=o,a.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})($b),function(e){var t=$b,n=Tw,r=e.exports;for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o]);r.request=function(a,l){return a=i(a),t.request.call(this,a,l)},r.get=function(a,l){return a=i(a),t.get.call(this,a,l)};function i(a){if(typeof a=="string"&&(a=n.parse(a)),a.protocol||(a.protocol="https:"),a.protocol!=="https:")throw new Error('Protocol "'+a.protocol+'" not supported. Expected "https:"');return a}}(wN);const Pw={__template:{field:""},field:"{field}",size:10,shard_size:10,shard_min_doc_count:10,min_doc_count:10,include:{__one_of:["*",{pattern:"",flags:""}]},exclude:{__one_of:["*",{pattern:"",flags:""}]},execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash"]},background_filter:{__scope_link:"GLOBAL.filter"},mutual_information:{include_negatives:{__one_of:[!0,!1]}},chi_square:{include_negatives:{__one_of:[!0,!1]},background_is_superset:{__one_of:[!0,!1]}},percentage:{},gnd:{background_is_superset:{__one_of:[!0,!1]}},script_heuristic:{__template:{script:"_subset_freq/(_superset_freq - _subset_freq + 1)"},script:{}}},Ri={__template:{field:""},field:"{field}",missing:0,script:{}},JD={__template:{field:""},field:"{field}"},ji={__one_of:["skip","insert_zeros"]},ro={__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:ji},hp={"*":{aggs:{__template:{NAME:{AGG_TYPE:{}}}},adjacency_matrix:{filters:{}},diversified_sampler:{shard_size:"",field:""},min:Ri,max:Ri,avg:Ri,sum:Ri,stats:Ri,extended_stats:Ri,value_count:{__template:{field:""},field:"{field}",script:{}},global:{},filter:{},filters:{__template:{filters:{NAME:{}}},filters:{"*":{__scope_link:"GLOBAL.filter"}},other_bucket:{__one_of:[!0,!1]},other_bucket_key:""},missing:JD,nested:{__template:{path:""},path:""},reverse_nested:{__template:{path:""},path:""},terms:{__template:{field:"",size:10},field:"{field}",size:10,shard_size:10,order:{__template:{_key:"asc"},_term:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},min_doc_count:10,script:{},include:".*",exclude:".*",execution_hint:{__one_of:["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinality"]},show_term_doc_count_error:{__one_of:[!0,!1]},collect_mode:{__one_of:["depth_first","breadth_first"]},missing:""},significant_text:Bt(Me({},Pw),{filter_duplicate_text:"__flag__"}),significant_terms:Pw,range:{__template:{field:"",ranges:[{from:50,to:100}]},field:"{field}",ranges:[{to:50,from:100,key:""}],keyed:{__one_of:[!0,!1]},script:{}},date_range:{__template:{field:"",ranges:[{from:"now-10d/d",to:"now"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:""}],keyed:{__one_of:[!0,!1]},script:{}},ip_range:{__template:{field:"",ranges:[{from:"10.0.0.5",to:"10.0.0.10"}]},field:"{field}",format:"MM-yyy",ranges:[{to:"",from:"",key:"",mask:"10.0.0.127/25"}],keyed:{__one_of:[!0,!1]},script:{}},histogram:{__template:{field:"price",interval:50},field:"{field}",interval:50,extended_bounds:{__template:{min:0,max:50},min:0,max:50},min_doc_count:0,order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},missing:0},date_histogram:{__template:{field:"date",interval:"month"},field:"{field}",interval:{__one_of:["year","quarter","week","day","hour","minute","second"]},min_doc_count:0,extended_bounds:{__template:{min:"now/d",max:"now/d"},min:"now/d",max:"now/d"},order:{__template:{_key:"asc"},_key:{__one_of:["asc","desc"]},_count:{__one_of:["asc","desc"]},"*":{__one_of:["asc","desc"]}},keyed:{__one_of:[!0,!1]},pre_zone:"-01:00",post_zone:"-01:00",pre_zone_adjust_large_interval:{__one_of:[!0,!1]},factor:1e3,pre_offset:"1d",post_offset:"1d",format:"yyyy-MM-dd",time_zone:"00:00",missing:""},geo_distance:{__template:{field:"location",origin:{lat:52.376,lon:4.894},ranges:[{from:100,to:300}]},field:"{field}",origin:{lat:0,lon:0},unit:{__one_of:["mi","km","in","yd","m","cm","mm"]},ranges:[{from:50,to:100}],distance_type:{__one_of:["arc","sloppy_arc","plane"]}},geohash_grid:{__template:{field:"",precision:3},field:"{field}",precision:{__one_of:[1,2,3,4,5,6,7,8,9,10,11,12]},size:10,shard_size:10},composite:{__template:{sources:[{NAME:{AGG_TYPE:{}}}]},sources:[{__scope_link:".",__template:{NAME:{AGG_TYPE:{}}}}],size:10,after:{}},percentiles:{__template:{field:"",percents:[1,5,25,50,75,95,99]},field:"{field}",percents:{__template:[1,5,25,50,75,95,99],__any_of:[]},script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},cardinality:{__template:{field:""},precision_threshold:100,rehash:!0,script:{},missing:""},cumulative_cardinality:{__template:{buckets_path:""},buckets_path:"",format:""},scripted_metric:{__template:{init_script:"",map_script:"",combine_script:"",reduce_script:""},init_script:{__scope_link:"GLOBAL.script"},map_script:{__scope_link:"GLOBAL.script"},combine_script:{__scope_link:"GLOBAL.script"},reduce_script:{__scope_link:"GLOBAL.script"},lang:"groovy",params:{},reduce_params:{}},geo_bounds:{__template:{field:""},field:"{field}",wrap_longitude:{__one_of:[!0,!1]}},top_hits:{__template:{size:10},from:0,size:10,sort:{__template:[],__scope_link:"search.sort"},highlight:{},explain:{__one_of:[!0,!1]},_source:{__template:"",__scope_link:"search._source"},script_fields:{__scope_link:"search.script_fields"},docvalue_fields:["{field}"],version:{__one_of:[!0,!1]}},percentile_ranks:{__template:{field:"",values:[10,15]},field:"{field}",values:[],script:{},compression:100,method:{__one_of:["hdr","tdigest"]},missing:0},sampler:{__template:{},field:"{field}",script:{},shard_size:100,max_docs_per_value:3,execution_hint:{__one_of:["map","global_ordinals","bytes_hash"]}},children:{__template:{type:""},type:""},derivative:ro,avg_bucket:ro,max_bucket:ro,min_bucket:ro,stats_bucket:ro,extended_stats_bucket:Bt(Me({},ro),{sigma:""}),percentiles_bucket:Bt(Me({},ro),{percents:[]}),sum_bucket:ro,moving_avg:{__template:{buckets_path:""},buckets_path:"",format:"",gap_policy:ji,window:5,model:{__one_of:["simple","linear","ewma","holt","holt_winters"]},settings:{type:{__one_of:["add","mult"]},alpha:.5,beta:.5,gamma:.5,period:7}},cumulative_sum:{__template:{buckets_path:""},buckets_path:"",format:""},serial_diff:{__template:{buckets_path:"",lag:7},lag:7,gap_policy:ji,buckets_path:"",format:""},bucket_script:{__template:{buckets_path:{},script:""},buckets_path:{},format:"",gap_policy:ji,script:""},bucket_selector:{__template:{buckets_path:{},script:""},buckets_path:{},gap_policy:ji,script:""},bucket_sort:{__template:{sort:[]},sort:["{field}"],from:0,size:0,gap_policy:ji},matrix_stats:{__template:{fields:[]},fields:["{field}"]}}},{terms:QD,histogram:ZD,date_histogram:eB}=hp["*"],tB=e=>{e.addGlobalAutocompleteRules("aggregations",hp),e.addGlobalAutocompleteRules("aggs",hp),e.addGlobalAutocompleteRules("groupByAggs",{"*":{terms:QD,histogram:ZD,date_histogram:eB}})},nB=e=>{const t={filter:{},routing:"1",search_routing:"1,2",index_routing:"1"};e.addGlobalAutocompleteRules("aliases",{"*":t})},rB=e=>{e.addEndpointDescription("update",{data_autocomplete_rules:{script:{},doc:{},upsert:{},scripted_upsert:{__one_of:[!0,!1]}}}),e.addEndpointDescription("put_script",{methods:["POST","PUT"],patterns:["_scripts/{lang}/{id}","_scripts/{lang}/{id}/_create"],url_components:{lang:["groovy","expressions"]},data_autocomplete_rules:{script:""}}),e.addEndpointDescription("termvectors",{data_autocomplete_rules:{fields:["{field}"],offsets:{__one_of:[!1,!0]},payloads:{__one_of:[!1,!0]},positions:{__one_of:[!1,!0]},term_statistics:{__one_of:[!0,!1]},field_statistics:{__one_of:[!1,!0]},per_field_analyzer:{__template:{FIELD:""},"{field}":""},routing:"",version:1,version_type:["external","external_gt","external_gte","force","internal"],doc:{},filter:{max_num_terms:1,min_term_freq:1,max_term_freq:1,min_doc_freq:1,max_doc_freq:1,min_word_length:1,max_word_length:1}}})},Ft={};Ft.and={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Ft.bool={__scope_link:"GLOBAL.query"},Ft.exists={__template:{field:"FIELD_NAME"},field:"{field}"},Ft.ids={__template:{values:["ID"]},type:"{type}",values:[""]},Ft.limit={__template:{value:100},value:100},Ft.geo_bounding_box={__template:{FIELD:{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.717,lon:-73.99}}},"{field}":{top_left:{lat:40.73,lon:-74.1},bottom_right:{lat:40.73,lon:-74.1}},type:{__one_of:["memory","indexed"]}},Ft.geo_distance={__template:{distance:100,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},distance:100,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},optimize_bbox:{__one_of:["memory","indexed","none"]},"{field}":{lat:40.73,lon:-74.1}},Ft.geo_distance_range={__template:{from:100,to:200,distance_unit:"km",FIELD:{lat:40.73,lon:-74.1}},from:100,to:200,distance_unit:{__one_of:["km","miles"]},distance_type:{__one_of:["arc","plane"]},include_lower:{__one_of:[!0,!1]},include_upper:{__one_of:[!0,!1]},"{field}":{lat:40.73,lon:-74.1}},Ft.geo_polygon={__template:{FIELD:{points:[{lat:40.73,lon:-74.1},{lat:40.83,lon:-75.1}]}},"{field}":{points:[{lat:40.73,lon:-74.1}]}},Ft.geo_shape={__template:{FIELD:{shape:{type:"envelope",coordinates:[[-45,45],[45,-45]]},relation:"within"}},"{field}":{shape:{type:"",coordinates:[]},indexed_shape:{id:"",index:"{index}",type:"{type}",shape_field_name:"shape"},relation:{__one_of:["within","intersects","disjoint"]}}},Ft.has_child={__template:{type:"TYPE",filter:{}},type:"{type}",query:{},filter:{},_scope:"",min_children:1,max_children:10},Ft.has_parent={__template:{parent_type:"TYPE",filter:{}},parent_type:"{type}",query:{},filter:{},_scope:""},Ft.m=Ft.missing={__template:{field:"FIELD"},existence:{__one_of:[!0,!1]},null_value:{__one_of:[!0,!1]},field:"{field}"},Ft.not={__template:{filter:{}},filter:{}},Ft.range={__template:{FIELD:{gte:10,lte:20}},"{field}":{gte:1,gt:1,lte:20,lt:20,time_zone:"+01:00",format:"dd/MM/yyyy||yyyy",execution:{__one_of:["index","fielddata"]}}},Ft.or={__template:{filters:[{}]},filters:[{__scope_link:"."}]},Ft.prefix={__template:{FIELD:"VALUE"},"{field}":""},Ft.query={},Ft.script={__template:{script:{}},script:{}},Ft.term={__template:{FIELD:"VALUE"},"{field}":""},Ft.terms={__template:{FIELD:["VALUE1","VALUE2"]},field:["{field}"],execution:{__one_of:["plain","bool","and","or","bool_nocache","and_nocache","or_nocache"]}},Ft.nested={__template:{path:"path_to_nested_doc",query:{}},query:{},path:"",_name:""};const oB=e=>{e.addGlobalAutocompleteRules("filter",Ft)},Rw={boundary_chars:{},boundary_max_scan:20,boundary_scanner:{__one_of:["chars","sentence","word"]},boundary_scanner_locale:{},encoder:{__one_of:["default","html"]},force_source:{__one_of:["false","true"]},fragmenter:{__one_of:["simple","span"]},highlight_query:{__scope_link:"GLOBAL.query"},matched_fields:["FIELD"],order:{},no_match_size:0,number_of_fragments:5,phrase_limit:256,pre_tags:{},post_tags:{},require_field_match:{__one_of:["true","false"]},tags_schema:{}},iB=e=>{e.addGlobalAutocompleteRules("highlight",Bt(Me({},Rw),{fields:{"{field}":Me({fragment_size:20},Rw)}})),e.addGlobalAutocompleteRules("script",{__template:{source:"SCRIPT"},source:"SCRIPT",file:"FILE_SCRIPT_NAME",id:"SCRIPT_ID",lang:"",params:{}})},vt={on_failure:[],ignore_failure:{__one_of:[!1,!0]},if:"",tag:""},aB={append:Me({__template:{field:"",value:[]},field:"",value:[]},vt)},sB={bytes:Me({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},vt)},lB={circle:Me({__template:{field:"",error_distance:"",shape_type:""},field:"",target_field:"",error_distance:"",shape_type:{__one_of:["geo_shape","shape"]},ignore_missing:{__one_of:[!1,!0]}},vt)},cB={csv:Me({__template:{field:"",target_fields:[""]},field:"",target_fields:[""],separator:"",quote:"",empty_value:"",trim:{__one_of:[!0,!1]},ignore_missing:{__one_of:[!1,!0]}},vt)},uB={convert:Me({__template:{field:"",type:""},field:"",type:{__one_of:["integer","float","string","boolean","auto"]},target_field:"",ignore_missing:{__one_of:[!1,!0]}},vt)},dB={date:Me({__template:{field:"",formats:[]},field:"",target_field:"@timestamp",formats:[],timezone:"UTC",locale:"ENGLISH"},vt)},fB={date_index_name:Me({__template:{field:"",date_rounding:""},field:"",date_rounding:{__one_of:["y","M","w","d","h","m","s"]},date_formats:[],timezone:"UTC",locale:"ENGLISH",index_name_format:"yyyy-MM-dd"},vt)},pB={dissect:Me({__template:{field:"",pattern:""},field:"",pattern:"",append_separator:"",ignore_missing:{__one_of:[!1,!0]}},vt)},hB={dot_expander:Me({__template:{field:""},field:"",path:""},vt)},mB={drop:Me({__template:{}},vt)},gB={fail:Me({__template:{message:""},message:""},vt)},vB={foreach:Me({__template:{field:"",processor:{}},field:"",processor:{__scope_link:"_processor"}},vt)},_B={geoip:{__template:{field:""},field:"",target_field:"",database_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]},first_only:{__one_of:[!1,!0]}}},yB={grok:Me({__template:{field:"",patterns:[]},field:"",patterns:[],pattern_definitions:{},trace_match:{__one_of:[!1,!0]},ignore_missing:{__one_of:[!1,!0]}},vt)},bB={gsub:Me({__template:{field:"",pattern:"",replacement:""},field:"",pattern:"",replacement:""},vt)},wB={html_strip:Me({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},vt)},xB={inference:Me({__template:{model_id:"",field_map:{},inference_config:{}},model_id:"",field_map:{},inference_config:{},target_field:""},vt)},SB={join:Me({__template:{field:"",separator:""},field:"",separator:""},vt)},CB={json:Me({__template:{field:""},field:"",target_field:"",add_to_root:{__one_of:[!1,!0]}},vt)},EB={kv:Me({__template:{field:"",field_split:"",value_split:""},field:"",field_split:"",value_split:"",target_field:"",include_keys:[],ignore_missing:{__one_of:[!1,!0]}},vt)},OB={lowercase:Me({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},vt)},$B={pipeline:Me({__template:{name:""},name:""},vt)},TB={remove:Me({__template:{field:""},field:""},vt)},PB={rename:Me({__template:{field:"",target_field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},vt)},RB={script:Me({__template:{},lang:"painless",file:"",id:"",source:"",params:{}},vt)},jB={set:Me({__template:{field:"",value:""},field:"",value:"",override:{__one_of:[!0,!1]}},vt)},MB={set_security_user:Me({__template:{field:""},field:"",properties:[""]},vt)},IB={split:Me({__template:{field:"",separator:""},field:"",separator:"",ignore_missing:{__one_of:[!1,!0]}},vt)},AB={sort:Me({__template:{field:""},field:"",order:"asc"},vt)},NB={trim:Me({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},vt)},kB={uppercase:Me({__template:{field:""},field:"",ignore_missing:{__one_of:[!1,!0]}},vt)},LB={urldecode:Me({__template:{field:""},field:"",target_field:"",ignore_missing:{__one_of:[!1,!0]}},vt)},jw={__one_of:[aB,sB,cB,lB,uB,dB,fB,pB,hB,mB,gB,vB,_B,yB,bB,wB,xB,SB,CB,EB,OB,$B,TB,PB,RB,jB,MB,IB,AB,NB,kB,LB,{user_agent:{__template:{field:""},field:"",target_field:"",regex_file:"",properties:[""],ignore_missing:{__one_of:[!1,!0]}}}]},Mw={description:"",processors:[jw],version:123},FB=e=>{e.addEndpointDescription("_processor",{data_autocomplete_rules:jw}),e.addEndpointDescription("ingest.put_pipeline",{methods:["PUT"],patterns:["_ingest/pipeline/{id}"],data_autocomplete_rules:Mw}),e.addEndpointDescription("ingest.simulate",{data_autocomplete_rules:{pipeline:Mw,docs:[]}})},jt=Object.freeze({__one_of:[!0,!1]}),DB=e=>{e.addEndpointDescription("put_mapping",{priority:10,data_autocomplete_rules:{__template:{properties:{FIELD:{}}},_source:{enabled:jt},_all:{enabled:jt},_field_names:{index:jt},_routing:{required:jt},_index:{enabled:jt},_parent:{__template:{type:""},type:"{type}"},_timestamp:{enabled:jt,format:"YYYY-MM-dd",default:""},dynamic_date_formats:["yyyy-MM-dd"],date_detection:jt,numeric_detection:jt,properties:{"*":{type:{__one_of:["text","keyword","float","half_float","scaled_float","double","byte","short","integer","long","date","boolean","binary","object","nested","geo_point","geo_shape"]},store:jt,index:jt,term_vector:{__one_of:["no","yes","with_offsets","with_positions","with_positions_offsets"]},boost:1,null_value:"",doc_values:jt,eager_global_ordinals:jt,norms:jt,coerce:jt,index_options:{__one_of:["docs","freqs","positions"]},analyzer:"standard",search_analyzer:"standard",include_in_all:{__one_of:[!1,!0]},ignore_above:10,position_increment_gap:0,precision_step:4,ignore_malformed:jt,scaling_factor:100,lat_lon:{__one_of:[!0,!1]},geohash:{__one_of:[!0,!1]},geohash_precision:"1m",geohash_prefix:{__one_of:[!0,!1]},validate:{__one_of:[!0,!1]},validate_lat:{__one_of:[!0,!1]},validate_lon:{__one_of:[!0,!1]},normalize:{__one_of:[!0,!1]},normalize_lat:{__one_of:[!0,!1]},normalize_lon:{__one_of:[!0,!1]},tree:{__one_of:["geohash","quadtree"]},precision:"5km",tree_levels:12,distance_error_pct:.025,orientation:"ccw",format:{__one_of:[[...["date","date_time","date_time_no_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","week_date_time_no_millis"].flatMap(function(t){return["basic_"+t,"strict_"+t]}),"date","date_hour","date_hour_minute","date_hour_minute_second","date_hour_minute_second_fraction","date_hour_minute_second_millis","date_optional_time","date_time","date_time_no_millis","hour","hour_minute","hour_minute_second","hour_minute_second_fraction","hour_minute_second_millis","ordinal_date","ordinal_date_time","ordinal_date_time_no_millis","time","time_no_millis","t_time","t_time_no_millis","week_date","week_date_time","weekDateTimeNoMillis","weekyear","strict_weekyear","weekyear_week","strict_weekyear_week","strict_date_optional_time_nanos","weekyear_week_day","strict_weekyear_week_day","year","year_month","year_month_day","epoch_millis","epoch_second"].sort()]},fielddata:{filter:{regex:"",frequency:{min:.001,max:.1,min_segment_size:500}}},similarity:{__one_of:["default","BM25"]},properties:{__scope_link:"put_mapping.{type}.properties"},fields:{"*":{__scope_link:"put_mapping.type.properties.field"}},copy_to:{__one_of:["{field}",["{field}"]]},include_in_parent:jt,include_in_root:jt}}}})},BB=e=>{e.addEndpointDescription("put_settings",{data_autocomplete_rules:{refresh_interval:"1s",number_of_shards:1,number_of_replicas:1,"blocks.read_only":jt,"blocks.read":jt,"blocks.write":jt,"blocks.metadata":jt,term_index_interval:32,term_index_divisor:1,"translog.flush_threshold_ops":5e3,"translog.flush_threshold_size":"200mb","translog.flush_threshold_period":"30m","translog.disable_flush":jt,"cache.filter.max_size":"2gb","cache.filter.expire":"2h","gateway.snapshot_interval":"10s","translog.durability":{__one_of:["request","async"]},routing:{allocation:{include:{tag:""},exclude:{tag:""},require:{tag:""},total_shards_per_node:-1}},"recovery.initial_shards":{__one_of:["quorum","quorum-1","half","full","full-1"]},"ttl.disable_purge":jt,analysis:{analyzer:{},tokenizer:{},filter:{},char_filter:{}},"cache.query.enable":jt,shadow_replicas:jt,shared_filesystem:jt,data_path:"path",codec:{__one_of:["default","best_compression","lucene_default"]}}})},Iw={FIELD:"REGEXP"},Aw={FIELD:{}},Nw={FIELD:{value:""}},kw={FIELD:{gte:10,lte:20}},Lw={match:{span_term:{FIELD:"VALUE"}},end:3},Fw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}],slop:12,in_order:!1},Dw={FIELD:{value:"VALUE"}},Bw={include:{span_term:{FIELD:{value:"VALUE"}}},exclude:{span_term:{FIELD:{value:"VALUE"}}}},zw={clauses:[{span_term:{FIELD:{value:"VALUE"}}}]},qw={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Vw={little:{span_term:{FIELD:{value:"VALUE"}}},big:{span_near:{clauses:[{span_term:{FIELD:{value:"VALUE"}}},{span_term:{FIELD:{value:"VALUE"}}}],slop:5,in_order:!1}}},Hw={FIELD:{value:"VALUE"}},Ww={cutoff_frequency:.001,query:"",operator:{__one_of:["and","or"]},zero_terms_query:{__one_of:["none","all"]},max_expansions:10,analyzer:"",boost:1,lenient:{__one_of:["true","false"]},fuzzy_transpositions:{__one_of:["true","false"]},auto_generate_synonyms_phrase_query:{__one_of:["true","false"]},fuzziness:1,prefix_length:1,minimum_should_match:1},Uw={docvalue_fields:["FIELD"],from:{},size:{},sort:{},name:{},highlight:{},_source:{__one_of:["true","false"]},explain:{__one_of:["true","false"]},script_fields:{__template:{FIELD:{script:{}}},"{field}":{script:{}}},version:{__one_of:["true","false"]}},Gw={span_first:{__template:Lw,__scope_link:".span_first"},span_near:{__template:Fw,__scope_link:".span_near"},span_or:{__template:zw,__scope_link:".span_or"},span_not:{__template:Bw,__scope_link:".span_not"},span_term:{__template:Dw,__scope_link:".span_term"},span_containing:{__template:qw,__scope_link:".span_containing"},span_within:{__template:Vw,__scope_link:".span_within"}},Ar=Bt(Me({},Gw),{field_masking_span:{__template:{query:{SPAN_QUERY:{}}},query:Gw,field:""}}),zB={wildcard:{__template:Hw,__scope_link:".wildcard"},fuzzy:{__template:Aw,__scope_link:".fuzzy"},prefix:{__template:Nw,__scope_link:".prefix"},range:{__template:kw,__scope_link:".range"},regexp:{__template:Iw,__scope_link:".regexp"}},mp={__template:{FIELD:{origin:"",scale:""}},"{field}":{origin:"",scale:"",offset:"",decay:.5}},Kw={script_score:{__template:{script:"_score * doc['f'].value"},script:{}},boost_factor:2,random_score:{seed:314159265359},linear:mp,exp:mp,gauss:mp,field_value_factor:{__template:{field:""},field:"{field}",factor:1.2,modifier:{__one_of:["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]}}},qB=[tB,nB,rB,oB,iB,FB,DB,BB,e=>{e.addGlobalAutocompleteRules("query",{match:{__template:{FIELD:"TEXT"},"{field}":Me({type:{__one_of:["phrase","phrase_prefix","boolean"]}},Ww)},match_phrase:{__template:{FIELD:"PHRASE"},"{field}":{query:"",analyzer:"",slop:1}},match_phrase_prefix:{__template:{FIELD:"PREFIX"},"{field}":{query:"",analyzer:"",max_expansions:10,prefix_length:1,fuzziness:.1}},regexp:{__template:Iw,"{field}":{value:"",flags:{__one_of:["ALL","ANYSTRING","COMPLEMENT","EMPTY","INTERSECTION","INTERVAL","NONE"]},max_determinized_states:1e4}},multi_match:Bt(Me({__template:{query:"",fields:[]}},Ww),{fields:["{field}"],use_dis_max:{__template:!0,__one_of:[!0,!1]},tie_breaker:0,type:{__one_of:["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]}}),bool:{must:[{__scope_link:"."}],must_not:[{__scope_link:"."}],should:[{__scope_link:"."}],filter:[{__scope_link:"GLOBAL.filter"}],minimum_should_match:1,boost:1},boosting:{positive:{__scope_link:"."},negative:{__scope_link:"."},negative_boost:.2},ids:{type:"",values:[]},constant_score:{__template:{filter:{},boost:1.2},query:{},filter:{},boost:1.2},dis_max:{__template:{tie_breaker:.7,boost:1.2,queries:[]},tie_breaker:.7,boost:1.2,queries:[{__scope_link:"."}]},distance_feature:{__template:{field:"",origin:"",pivot:""},field:"{field}",origin:"",pivot:""},exists:{field:""},field:{"{field}":{query:"",boost:2,enable_position_increments:{__template:!1,__one_of:[!0,!1]}}},fuzzy:{__template:Aw,"{field}":{value:"",boost:1,fuzziness:.5,prefix_length:0}},has_child:{__template:{type:"TYPE",query:{}},inner_hits:Me({},Uw),type:"{type}",score_mode:{__one_of:["none","max","sum","avg"]},_scope:"",query:{},min_children:1,max_children:10},has_parent:{__template:{parent_type:"TYPE",query:{}},parent_type:"{type}",score_mode:{__one_of:["none","score"]},_scope:"",query:{}},match_all:{boost:1},more_like_this:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},fields:["{field}"],like:"",percent_terms_to_match:.3,min_term_freq:2,max_query_terms:25,stop_words:[""],min_doc_freq:5,max_doc_freq:100,min_word_len:0,max_word_len:0,boost_terms:1,boost:1,analyzer:"",docs:[{_index:"{index}",_type:"{type}",_id:""}],ids:[""]},mlt:{__template:{fields:["FIELD"],like:"text like this one",min_term_freq:1,max_query_terms:12},__scope_link:".more_like_this"},prefix:{__template:Nw,"{field}":{value:"",boost:1}},query_string:{__template:{default_field:"FIELD",query:"this AND that OR thus"},query:"",default_field:"{field}",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",allow_leading_wildcard:{__one_of:[!0,!1]},enable_position_increments:{__one_of:[!0,!1]},fuzzy_max_expansions:50,fuzziness:.5,fuzzy_prefix_length:0,phrase_slop:0,boost:1,analyze_wildcard:{__one_of:[!1,!0]},auto_generate_phrase_queries:{__one_of:[!1,!0]},minimum_should_match:"20%",lenient:{__one_of:[!1,!0]},use_dis_max:{__one_of:[!0,!1]},tie_breaker:0,time_zone:"+01:00"},simple_query_string:{__template:{query:"",fields:[]},query:"",fields:["{field}"],default_operator:{__one_of:["OR","AND"]},analyzer:"",flags:"OR|AND|PREFIX",locale:"ROOT",lenient:{__one_of:[!0,!1]}},range:{__template:kw,"{field}":{__template:{gte:10,lte:20},gte:10,gt:10,lte:20,lt:20,time_zone:"+01:00",boost:1,format:"dd/MM/yyyy||yyyy"}},span_first:{__template:Lw,match:Ar},span_multi:{__template:{match:{MULTI_TERM_QUERY:{}}},match:zB},span_near:{__template:Fw,clauses:[Ar],slop:12,in_order:{__one_of:[!1,!0]},collect_payloads:{__one_of:[!1,!0]}},span_term:{__template:Dw,"{field}":{value:"",boost:2}},span_not:{__template:Bw,include:Ar,exclude:Ar},span_or:{__template:zw,clauses:[Ar]},span_containing:{__template:qw,little:Ar,big:Ar},span_within:{__template:Vw,little:Ar,big:Ar},term:{__template:{FIELD:{value:"VALUE"}},"{field}":{value:"",boost:2}},terms:{__template:{FIELD:["VALUE1","VALUE2"]},"{field}":[""]},wildcard:{__template:Hw,"{field}":{value:"",boost:2}},nested:{__template:{path:"path_to_nested_doc",query:{}},inner_hits:Me({},Uw),path:"",query:{},score_mode:{__one_of:["avg","total","max","none"]}},percolate:{__template:{field:"",document:{}},field:"",document:{},name:"",documents:[{}],document_type:"",index:"",type:"",id:"",routing:"",preference:""},common:{__template:{FIELD:{query:{}}},"{field}":{query:{},cutoff_frequency:.001,minimum_should_match:{low_freq:{},high_freq:{}}}},custom_filters_score:{__template:{query:{},filters:[{filter:{}}]},query:{},filters:[{filter:{},boost:2,script:{}}],score_mode:{__one_of:["first","min","max","total","avg","multiply"]},max_boost:2,params:{},lang:""},indices:{__template:{indices:["INDEX1","INDEX2"],query:{}},indices:["{index}"],query:{},no_match_query:{__scope_link:"."}},geo_shape:{__template:{location:{},relation:"within"},__scope_link:".filter.geo_shape"},function_score:ye.defaults({__template:{query:{},functions:[{}]},query:{},functions:[ye.defaults({filter:{},weight:1},Kw)],boost:1,boost_mode:{__one_of:["multiply","replace","sum","avg","max","min"]},score_mode:{__one_of:["multiply","sum","first","avg","max","min"]},max_boost:10,min_score:1},Kw),script:{__template:{script:"_score * doc['f'].value"},script:{}},wrapper:{__template:{query:"QUERY_BASE64_ENCODED"},query:""}})},e=>{e.addEndpointDescription("reindex",{methods:["POST"],patterns:["_reindex"],data_autocomplete_rules:{__template:{source:{},dest:{}},source:{index:"",type:"",query:{__scope_link:"GLOBAL.query"},sort:{__template:{FIELD:"desc"},FIELD:{__one_of:["asc","desc"]}},size:1e3,remote:{__template:{host:""},host:"",username:"",password:"",socket_timeout:"30s",connect_timeout:"30s"}},dest:{index:"",version_type:{__one_of:["internal","external"]},op_type:"create",routing:{__one_of:["keep","discard","=SOME TEXT"]},pipeline:""},conflicts:"proceed",size:10,script:{__scope_link:"GLOBAL.script"}}})},e=>{e.addEndpointDescription("search",{priority:10,data_autocomplete_rules:{query:{},profile:{__one_of:["true","false"]},aggs:{__template:{NAME:{AGG_TYPE:{}}}},post_filter:{__scope_link:"GLOBAL.filter"},size:{__template:20},from:0,sort:{__template:[{FIELD:{order:"desc"}}],__any_of:[{"{field}":{order:{__one_of:["desc","asc"]},missing:{__one_of:["_last","_first"]},mode:{__one_of:["min","max","avg","sum"]},nested_path:"",nested_filter:{__scope_link:"GLOBAL.filter"}}},"{field}","_score",{_geo_distance:{__template:{FIELD:{lat:40,lon:-70},order:"asc"},"{field}":{__one_of:[{__template:{lat:40,lon:-70},lat:40,lon:-70},[{__template:{lat:40,lon:-70},lat:40,lon:-70}],[""],""]},distance_type:{__one_of:["sloppy_arc","arc","plane"]},sort_mode:{__one_of:["min","max","avg"]},order:{__one_of:["asc","desc"]},unit:"km"}}]},stored_fields:["{field}"],suggest:{__template:{YOUR_SUGGESTION:{text:"YOUR TEXT",term:{FIELD:"MESSAGE"}}},"*":{include:[],exclude:[]}},docvalue_fields:["{field}"],collapse:{__template:{field:"FIELD"}},indices_boost:{__template:[{INDEX:1}]},rescore:{__template:{query:{},window_size:50}},script_fields:{__template:{FIELD:{script:{}}},"*":{__scope_link:"GLOBAL.script"}},partial_fields:{__template:{NAME:{include:[]}},"*":{include:[],exclude:[]}},highlight:{},_source:{__one_of:["{field}",["{field}"],{includes:{__one_of:["{field}",["{field}"]]},excludes:{__one_of:["{field}",["{field}"]]}}]},explain:{__one_of:[!0,!1]},stats:[""],timeout:"1s",version:{__one_of:[!0,!1]},track_total_hits:{__one_of:[!0,!1]}}}),e.addEndpointDescription("search_template",{data_autocomplete_rules:{template:{__one_of:[{__scope_link:"search"},{__scope_link:"GLOBAL.script"}]},params:{}}}),e.addEndpointDescription("render_search_template",{data_autocomplete_rules:{__one_of:[{source:{__scope_link:"search"}},{__scope_link:"GLOBAL.script"}],params:{}}}),e.addEndpointDescription("_search/template/{id}",{data_autocomplete_rules:{template:{__scope_link:"search"}}})}];class VB{constructor(){this.name="es",this.globalRules={},this.endpoints={},this.extensionSpecFilePaths=[],this.hasLoadedSpec=!1}addGlobalAutocompleteRules(t,n){this.globalRules[t]=n}addEndpointDescription(t,n={}){let r={};this.endpoints[t]&&(r=Me({},this.endpoints[t]));let o;ye.each(n.patterns||[],function(i){i.indexOf("{indices}")>=0&&(o=o||{},o.ignore_unavailable="__flag__",o.allow_no_indices="__flag__",o.expand_wildcards=["open","closed"])}),o&&(n.url_params=ye.assign(n.url_params||{},r.url_params),ye.defaults(n.url_params,o)),ye.assign(r,n),ye.defaults(r,{id:t,patterns:[t],methods:["GET"]}),this.endpoints[t]=r}asJson(){return{name:this.name,globals:this.globalRules,endpoints:this.endpoints}}addExtensionSpecFilePath(t){this.extensionSpecFilePaths.push(t)}addProcessorDefinition(t){if(!this.hasLoadedSpec)throw new Error("Cannot add a processor definition because spec definitions have not loaded!");this.endpoints._processor.data_autocomplete_rules.__one_of.push(t)}setup(){return{addExtensionSpecFilePath:this.addExtensionSpecFilePath.bind(this)}}start(){if(this.hasLoadedSpec)throw new Error("Service has already started!");return this.loadJsonSpec(),this.loadJSSpec(),this.hasLoadedSpec=!0,{addProcessorDefinition:this.addProcessorDefinition.bind(this)}}loadJSONSpecInDir(){return Et(this,null,function*(){const t=Object.assign({"../lib/spec_definitions/json/generated/_common.json":()=>Promise.resolve().then(()=>Zz),"../lib/spec_definitions/json/generated/bulk.json":()=>Promise.resolve().then(()=>e3),"../lib/spec_definitions/json/generated/cat.aliases.json":()=>Promise.resolve().then(()=>t3),"../lib/spec_definitions/json/generated/cat.allocation.json":()=>Promise.resolve().then(()=>n3),"../lib/spec_definitions/json/generated/cat.count.json":()=>Promise.resolve().then(()=>r3),"../lib/spec_definitions/json/generated/cat.fielddata.json":()=>Promise.resolve().then(()=>o3),"../lib/spec_definitions/json/generated/cat.health.json":()=>Promise.resolve().then(()=>i3),"../lib/spec_definitions/json/generated/cat.help.json":()=>Promise.resolve().then(()=>a3),"../lib/spec_definitions/json/generated/cat.indices.json":()=>Promise.resolve().then(()=>s3),"../lib/spec_definitions/json/generated/cat.master.json":()=>Promise.resolve().then(()=>l3),"../lib/spec_definitions/json/generated/cat.nodeattrs.json":()=>Promise.resolve().then(()=>c3),"../lib/spec_definitions/json/generated/cat.nodes.json":()=>Promise.resolve().then(()=>u3),"../lib/spec_definitions/json/generated/cat.pending_tasks.json":()=>Promise.resolve().then(()=>d3),"../lib/spec_definitions/json/generated/cat.plugins.json":()=>Promise.resolve().then(()=>f3),"../lib/spec_definitions/json/generated/cat.recovery.json":()=>Promise.resolve().then(()=>p3),"../lib/spec_definitions/json/generated/cat.repositories.json":()=>Promise.resolve().then(()=>h3),"../lib/spec_definitions/json/generated/cat.segments.json":()=>Promise.resolve().then(()=>m3),"../lib/spec_definitions/json/generated/cat.shards.json":()=>Promise.resolve().then(()=>g3),"../lib/spec_definitions/json/generated/cat.snapshots.json":()=>Promise.resolve().then(()=>v3),"../lib/spec_definitions/json/generated/cat.tasks.json":()=>Promise.resolve().then(()=>_3),"../lib/spec_definitions/json/generated/cat.templates.json":()=>Promise.resolve().then(()=>y3),"../lib/spec_definitions/json/generated/cat.thread_pool.json":()=>Promise.resolve().then(()=>b3),"../lib/spec_definitions/json/generated/clear_scroll.json":()=>Promise.resolve().then(()=>w3),"../lib/spec_definitions/json/generated/cluster.allocation_explain.json":()=>Promise.resolve().then(()=>x3),"../lib/spec_definitions/json/generated/cluster.delete_component_template.json":()=>Promise.resolve().then(()=>S3),"../lib/spec_definitions/json/generated/cluster.get_component_template.json":()=>Promise.resolve().then(()=>C3),"../lib/spec_definitions/json/generated/cluster.get_settings.json":()=>Promise.resolve().then(()=>E3),"../lib/spec_definitions/json/generated/cluster.health.json":()=>Promise.resolve().then(()=>O3),"../lib/spec_definitions/json/generated/cluster.pending_tasks.json":()=>Promise.resolve().then(()=>$3),"../lib/spec_definitions/json/generated/cluster.put_component_template.json":()=>Promise.resolve().then(()=>T3),"../lib/spec_definitions/json/generated/cluster.put_settings.json":()=>Promise.resolve().then(()=>P3),"../lib/spec_definitions/json/generated/cluster.remote_info.json":()=>Promise.resolve().then(()=>R3),"../lib/spec_definitions/json/generated/cluster.reroute.json":()=>Promise.resolve().then(()=>j3),"../lib/spec_definitions/json/generated/cluster.state.json":()=>Promise.resolve().then(()=>M3),"../lib/spec_definitions/json/generated/cluster.stats.json":()=>Promise.resolve().then(()=>I3),"../lib/spec_definitions/json/generated/count.json":()=>Promise.resolve().then(()=>A3),"../lib/spec_definitions/json/generated/create.json":()=>Promise.resolve().then(()=>N3),"../lib/spec_definitions/json/generated/delete.json":()=>Promise.resolve().then(()=>k3),"../lib/spec_definitions/json/generated/delete_by_query.json":()=>Promise.resolve().then(()=>L3),"../lib/spec_definitions/json/generated/delete_by_query_rethrottle.json":()=>Promise.resolve().then(()=>F3),"../lib/spec_definitions/json/generated/delete_script.json":()=>Promise.resolve().then(()=>D3),"../lib/spec_definitions/json/generated/exists.json":()=>Promise.resolve().then(()=>B3),"../lib/spec_definitions/json/generated/exists_source.json":()=>Promise.resolve().then(()=>z3),"../lib/spec_definitions/json/generated/explain.json":()=>Promise.resolve().then(()=>q3),"../lib/spec_definitions/json/generated/field_caps.json":()=>Promise.resolve().then(()=>V3),"../lib/spec_definitions/json/generated/get.json":()=>Promise.resolve().then(()=>H3),"../lib/spec_definitions/json/generated/get_script.json":()=>Promise.resolve().then(()=>W3),"../lib/spec_definitions/json/generated/get_script_context.json":()=>Promise.resolve().then(()=>U3),"../lib/spec_definitions/json/generated/get_script_languages.json":()=>Promise.resolve().then(()=>G3),"../lib/spec_definitions/json/generated/get_source.json":()=>Promise.resolve().then(()=>K3),"../lib/spec_definitions/json/generated/index.json":()=>Promise.resolve().then(()=>X3),"../lib/spec_definitions/json/generated/indices.analyze.json":()=>Promise.resolve().then(()=>Y3),"../lib/spec_definitions/json/generated/indices.clear_cache.json":()=>Promise.resolve().then(()=>J3),"../lib/spec_definitions/json/generated/indices.clone.json":()=>Promise.resolve().then(()=>Q3),"../lib/spec_definitions/json/generated/indices.close.json":()=>Promise.resolve().then(()=>Z3),"../lib/spec_definitions/json/generated/indices.create.json":()=>Promise.resolve().then(()=>e6),"../lib/spec_definitions/json/generated/indices.delete.json":()=>Promise.resolve().then(()=>t6),"../lib/spec_definitions/json/generated/indices.delete_alias.json":()=>Promise.resolve().then(()=>n6),"../lib/spec_definitions/json/generated/indices.delete_template.json":()=>Promise.resolve().then(()=>r6),"../lib/spec_definitions/json/generated/indices.exists.json":()=>Promise.resolve().then(()=>o6),"../lib/spec_definitions/json/generated/indices.exists_alias.json":()=>Promise.resolve().then(()=>i6),"../lib/spec_definitions/json/generated/indices.exists_template.json":()=>Promise.resolve().then(()=>a6),"../lib/spec_definitions/json/generated/indices.exists_type.json":()=>Promise.resolve().then(()=>s6),"../lib/spec_definitions/json/generated/indices.flush.json":()=>Promise.resolve().then(()=>l6),"../lib/spec_definitions/json/generated/indices.flush_synced.json":()=>Promise.resolve().then(()=>c6),"../lib/spec_definitions/json/generated/indices.forcemerge.json":()=>Promise.resolve().then(()=>u6),"../lib/spec_definitions/json/generated/indices.get.json":()=>Promise.resolve().then(()=>d6),"../lib/spec_definitions/json/generated/indices.get_alias.json":()=>Promise.resolve().then(()=>f6),"../lib/spec_definitions/json/generated/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>p6),"../lib/spec_definitions/json/generated/indices.get_mapping.json":()=>Promise.resolve().then(()=>h6),"../lib/spec_definitions/json/generated/indices.get_settings.json":()=>Promise.resolve().then(()=>m6),"../lib/spec_definitions/json/generated/indices.get_template.json":()=>Promise.resolve().then(()=>g6),"../lib/spec_definitions/json/generated/indices.get_upgrade.json":()=>Promise.resolve().then(()=>v6),"../lib/spec_definitions/json/generated/indices.open.json":()=>Promise.resolve().then(()=>_6),"../lib/spec_definitions/json/generated/indices.put_alias.json":()=>Promise.resolve().then(()=>y6),"../lib/spec_definitions/json/generated/indices.put_mapping.json":()=>Promise.resolve().then(()=>b6),"../lib/spec_definitions/json/generated/indices.put_settings.json":()=>Promise.resolve().then(()=>w6),"../lib/spec_definitions/json/generated/indices.put_template.json":()=>Promise.resolve().then(()=>x6),"../lib/spec_definitions/json/generated/indices.recovery.json":()=>Promise.resolve().then(()=>S6),"../lib/spec_definitions/json/generated/indices.refresh.json":()=>Promise.resolve().then(()=>C6),"../lib/spec_definitions/json/generated/indices.rollover.json":()=>Promise.resolve().then(()=>E6),"../lib/spec_definitions/json/generated/indices.segments.json":()=>Promise.resolve().then(()=>O6),"../lib/spec_definitions/json/generated/indices.shard_stores.json":()=>Promise.resolve().then(()=>$6),"../lib/spec_definitions/json/generated/indices.shrink.json":()=>Promise.resolve().then(()=>T6),"../lib/spec_definitions/json/generated/indices.split.json":()=>Promise.resolve().then(()=>P6),"../lib/spec_definitions/json/generated/indices.stats.json":()=>Promise.resolve().then(()=>R6),"../lib/spec_definitions/json/generated/indices.update_aliases.json":()=>Promise.resolve().then(()=>j6),"../lib/spec_definitions/json/generated/indices.upgrade.json":()=>Promise.resolve().then(()=>M6),"../lib/spec_definitions/json/generated/indices.validate_query.json":()=>Promise.resolve().then(()=>I6),"../lib/spec_definitions/json/generated/info.json":()=>Promise.resolve().then(()=>A6),"../lib/spec_definitions/json/generated/ingest.delete_pipeline.json":()=>Promise.resolve().then(()=>N6),"../lib/spec_definitions/json/generated/ingest.get_pipeline.json":()=>Promise.resolve().then(()=>k6),"../lib/spec_definitions/json/generated/ingest.processor_grok.json":()=>Promise.resolve().then(()=>L6),"../lib/spec_definitions/json/generated/ingest.put_pipeline.json":()=>Promise.resolve().then(()=>F6),"../lib/spec_definitions/json/generated/ingest.simulate.json":()=>Promise.resolve().then(()=>D6),"../lib/spec_definitions/json/generated/mget.json":()=>Promise.resolve().then(()=>B6),"../lib/spec_definitions/json/generated/msearch.json":()=>Promise.resolve().then(()=>z6),"../lib/spec_definitions/json/generated/msearch_template.json":()=>Promise.resolve().then(()=>q6),"../lib/spec_definitions/json/generated/mtermvectors.json":()=>Promise.resolve().then(()=>V6),"../lib/spec_definitions/json/generated/nodes.hot_threads.json":()=>Promise.resolve().then(()=>H6),"../lib/spec_definitions/json/generated/nodes.info.json":()=>Promise.resolve().then(()=>W6),"../lib/spec_definitions/json/generated/nodes.reload_secure_settings.json":()=>Promise.resolve().then(()=>U6),"../lib/spec_definitions/json/generated/nodes.stats.json":()=>Promise.resolve().then(()=>G6),"../lib/spec_definitions/json/generated/nodes.usage.json":()=>Promise.resolve().then(()=>K6),"../lib/spec_definitions/json/generated/ping.json":()=>Promise.resolve().then(()=>X6),"../lib/spec_definitions/json/generated/put_script.json":()=>Promise.resolve().then(()=>Y6),"../lib/spec_definitions/json/generated/rank_eval.json":()=>Promise.resolve().then(()=>J6),"../lib/spec_definitions/json/generated/reindex.json":()=>Promise.resolve().then(()=>Q6),"../lib/spec_definitions/json/generated/reindex_rethrottle.json":()=>Promise.resolve().then(()=>Z6),"../lib/spec_definitions/json/generated/render_search_template.json":()=>Promise.resolve().then(()=>e8),"../lib/spec_definitions/json/generated/scripts_painless_execute.json":()=>Promise.resolve().then(()=>t8),"../lib/spec_definitions/json/generated/scroll.json":()=>Promise.resolve().then(()=>n8),"../lib/spec_definitions/json/generated/search.json":()=>Promise.resolve().then(()=>r8),"../lib/spec_definitions/json/generated/search_shards.json":()=>Promise.resolve().then(()=>o8),"../lib/spec_definitions/json/generated/search_template.json":()=>Promise.resolve().then(()=>i8),"../lib/spec_definitions/json/generated/snapshot.cleanup_repository.json":()=>Promise.resolve().then(()=>a8),"../lib/spec_definitions/json/generated/snapshot.create.json":()=>Promise.resolve().then(()=>s8),"../lib/spec_definitions/json/generated/snapshot.create_repository.json":()=>Promise.resolve().then(()=>l8),"../lib/spec_definitions/json/generated/snapshot.delete.json":()=>Promise.resolve().then(()=>c8),"../lib/spec_definitions/json/generated/snapshot.delete_repository.json":()=>Promise.resolve().then(()=>u8),"../lib/spec_definitions/json/generated/snapshot.get.json":()=>Promise.resolve().then(()=>d8),"../lib/spec_definitions/json/generated/snapshot.get_repository.json":()=>Promise.resolve().then(()=>f8),"../lib/spec_definitions/json/generated/snapshot.restore.json":()=>Promise.resolve().then(()=>p8),"../lib/spec_definitions/json/generated/snapshot.status.json":()=>Promise.resolve().then(()=>h8),"../lib/spec_definitions/json/generated/snapshot.verify_repository.json":()=>Promise.resolve().then(()=>m8),"../lib/spec_definitions/json/generated/tasks.cancel.json":()=>Promise.resolve().then(()=>g8),"../lib/spec_definitions/json/generated/tasks.get.json":()=>Promise.resolve().then(()=>v8),"../lib/spec_definitions/json/generated/tasks.list.json":()=>Promise.resolve().then(()=>_8),"../lib/spec_definitions/json/generated/termvectors.json":()=>Promise.resolve().then(()=>y8),"../lib/spec_definitions/json/generated/update.json":()=>Promise.resolve().then(()=>b8),"../lib/spec_definitions/json/generated/update_by_query.json":()=>Promise.resolve().then(()=>w8),"../lib/spec_definitions/json/generated/update_by_query_rethrottle.json":()=>Promise.resolve().then(()=>x8)}),n=yield this.loadAllSpecFromModules(t),r=Object.assign({"../lib/spec_definitions/json/overrides/clear_scroll.json":()=>Promise.resolve().then(()=>S8),"../lib/spec_definitions/json/overrides/cluster.health.json":()=>Promise.resolve().then(()=>C8),"../lib/spec_definitions/json/overrides/cluster.put_component_template.json":()=>Promise.resolve().then(()=>E8),"../lib/spec_definitions/json/overrides/cluster.put_settings.json":()=>Promise.resolve().then(()=>O8),"../lib/spec_definitions/json/overrides/cluster.reroute.json":()=>Promise.resolve().then(()=>$8),"../lib/spec_definitions/json/overrides/count.json":()=>Promise.resolve().then(()=>T8),"../lib/spec_definitions/json/overrides/indices.analyze.json":()=>Promise.resolve().then(()=>P8),"../lib/spec_definitions/json/overrides/indices.clone.json":()=>Promise.resolve().then(()=>R8),"../lib/spec_definitions/json/overrides/indices.create.json":()=>Promise.resolve().then(()=>j8),"../lib/spec_definitions/json/overrides/indices.delete_template.json":()=>Promise.resolve().then(()=>M8),"../lib/spec_definitions/json/overrides/indices.exists_template.json":()=>Promise.resolve().then(()=>I8),"../lib/spec_definitions/json/overrides/indices.get_field_mapping.json":()=>Promise.resolve().then(()=>A8),"../lib/spec_definitions/json/overrides/indices.get_mapping.json":()=>Promise.resolve().then(()=>N8),"../lib/spec_definitions/json/overrides/indices.get_template.json":()=>Promise.resolve().then(()=>k8),"../lib/spec_definitions/json/overrides/indices.put_alias.json":()=>Promise.resolve().then(()=>L8),"../lib/spec_definitions/json/overrides/indices.put_settings.json":()=>Promise.resolve().then(()=>F8),"../lib/spec_definitions/json/overrides/indices.put_template.json":()=>Promise.resolve().then(()=>D8),"../lib/spec_definitions/json/overrides/indices.rollover.json":()=>Promise.resolve().then(()=>B8),"../lib/spec_definitions/json/overrides/indices.update_aliases.json":()=>Promise.resolve().then(()=>z8),"../lib/spec_definitions/json/overrides/indices.validate_query.json":()=>Promise.resolve().then(()=>q8),"../lib/spec_definitions/json/overrides/snapshot.create.json":()=>Promise.resolve().then(()=>V8),"../lib/spec_definitions/json/overrides/snapshot.create_repository.json":()=>Promise.resolve().then(()=>H8),"../lib/spec_definitions/json/overrides/snapshot.restore.json":()=>Promise.resolve().then(()=>W8),"../lib/spec_definitions/json/overrides/update_by_query.json":()=>Promise.resolve().then(()=>U8)}),o=yield this.loadAllSpecFromModules(r);return ye.merge(n,o)})}loadAllSpecFromModules(t){return Et(this,null,function*(){const n=Object.keys(t).map(o=>Et(this,null,function*(){return(yield t[o]()).default}));return(yield Promise.all(n)).reduce((o,i)=>ye.merge(o,i),{})})}loadJsonSpec(){const t=this.loadJSONSpecInDir();Object.keys(t).forEach(n=>{this.addEndpointDescription(n,t[n])})}loadJSSpec(){qB.forEach(t=>t(this))}}class HB extends Mo{constructor(t,n,r){super(t,n),this.description=r}getTerms(){const t={name:this.name};return this.description==="__flag__"?t.meta="flag":(t.meta="param",t.insertValue=this.name+"="),[t]}}class WB{constructor(t,n){this.rootComponent=new An("ROOT"),ye.isUndefined(n)&&(n={pretty:"__flag__",format:["json","yaml"],filter_path:""}),t=ye.clone(t||{}),ye.defaults(t,n),ye.each(t,(r,o)=>{const i=new HB(o,this.rootComponent,r);Array.isArray(r)?new Vn(o,r,i):r==="__flag__"&&new Vn(o,["true","false"],i)})}getTopLevelComponents(){return this.rootComponent.next}}function UB(e,t){const n=e.getTerms;return e.getTerms=function(r,o){let i=n.call(e,r,o);return i&&(i=ye.map(i,a=>(ye.isObject(a)||(a={name:a}),ye.defaults(a,t))),i)},e}function Xw(e,t){function n(){}n.prototype=e;const r=new n;return t&&(t.unshift(r),ye.assign.apply(ye,t),t.shift()),r}function Yl(e,t,n,r,o){this.parentName=e,this.components=t,this.contextExtensionList=n,this.depth=r||0,this.priority=o}function gp(e,t,n,r){if(!e||e.length===0)return t;const o=e[0],i=[];return ye.each(t,function(a){const l=Xw(n,a.contextExtensionList);ye.each(a.components,function(s){const c=s.match(o,l,r);if(c&&!ye.isEmpty(c)){let u,f;c.next&&!Array.isArray(c.next)?u=[c.next]:u=c.next,c.context_values?(f=[],[].push.apply(f,a.contextExtensionList),f.push(c.context_values)):f=a.contextExtensionList;let d=a.priority;ye.isNumber(c.priority)&&(ye.isNumber(d)?d=Math.min(d,c.priority):d=c.priority),i.push(new Yl(s.name,u,f,a.depth+1,d))}})}),i.length===0?ye.map(t,function(a){return new Yl(a.name,[],a.contextExtensionList)}):gp(e.slice(1),i,n,r)}function Mi(e,t,n,r,o){let i=gp(e,[new Yl("ROOT",o,[])],t,n);if(r){let a=[];ye.each(i,function(l){const s=Xw(t,l.contextExtensionList);ye.each(l.components,function(c){ye.each(c.getTerms(s,n),function(u){ye.isObject(u)||(u={name:u}),a.push(u)})})}),a=ye.uniq(a),t.autoCompleteSet=a}if(i.length!==0){let a;i=ye.sortBy(i,function(l){return ye.isNumber(l.priority)?l.priority:Number.MAX_VALUE}),a=ye.find(i,function(l){return ye.isEmpty(l.components)}),!a&&i.length>1&&!r&&console.info("more then one context active for current path, but autocomplete isn't requested",i),a||(a=i[0]),ye.each(a.contextExtensionList,function(l){ye.assign(t,l)})}}function GB(e,t){this.parametrizedComponentFactories=t,this.endpointId=e}function KB(e,t,n,r){const o=gp(e,[new Yl("ROOT",r,[])],t,n);return[].concat.apply([],ye.map(o,"components"))}class XB extends An{constructor(t,n){super("__scope_link"),ye.isString(t)&&t[0]==="."&&(t==="."?t=n.endpointId:t=n.endpointId+t),this.link=t,this.compilingContext=n}resolveLinkToComponents(t,n){if(ye.isFunction(this.link)){const a=this.link(t,n);return Va(a,this.compilingContext)}if(!ye.isString(this.link))throw new Error("unsupported link format",this.link);let r=this.link.replace(/\./g,"{").split(/(\{)/);const o=r[0];let i;try{if(o==="GLOBAL"){if(r.length<3)throw new Error("missing term in global link: "+this.link);const a=r[2];i=t.globalComponentResolver(a),r=r.slice(3)}else r=r.slice(1),i=t.endpointComponentResolver(o)}catch(a){throw new Error("failed to resolve link ["+this.link+"]: "+a)}return KB(r,t,n,i)}getTerms(t,n){const r=[],o=this.resolveLinkToComponents(t,n);return ye.each(o,function(i){r.push.apply(r,i.getTerms(t,n))}),r}match(t,n,r){const o={next:[]},i=this.resolveLinkToComponents(n,r);return ye.each(i,function(a){const l=a.match(t,n,r);l&&l.next&&o.next.push.apply(o.next,l.next)}),o}}function vp(e){if(e.__template)return e.__raw&&ye.isString(e.__template)?{__raw:!0,value:e.__template}:e.__template;if(e.__one_of)return vp(e.__one_of[0]);if(e.__any_of)return[];if(e.__scope_link)return{};if(Array.isArray(e)){if(e.length===1&&ye.isObject(e[0])){const t=vp(e[0]);return t!=null?[t]:[]}return[]}else return ye.isObject(e)?{}:(ye.isString(e)&&!/^\{.*\}$/.test(e),e)}function YB(e){const t={},n=vp(e);return ye.isUndefined(n)||(t.template=n),t}function Va(e,t){if(Array.isArray(e))return[Jw(e,t)];if(ye.isObject(e)){if(e.__scope_link)return[new XB(e.__scope_link,t)];if(e.__any_of)return[Jw(e.__any_of,t)];if(e.__one_of)return ye.flatten(ye.map(e.__one_of,function(r){return Va(r,t)}));const n=JB(e,t);return e.__condition?[QB(e.__condition,n)]:[n]}else return ye.isString(e)&&/^\{.*\}$/.test(e)?[Yw(e,t)]:[new Mo(e)]}function Yw(e,t,n){e=e.substr(1,e.length-2).toLowerCase();let r=t.parametrizedComponentFactories.getComponent(e,!0);if(!r)throw new Error("no factory found for '"+e+"'");return r=r(e,null,n),ye.isUndefined(n)||(r=UB(r,{template:n})),r}function JB(e,t){const n=new Mo("{"),r=[],o=[];return ye.each(e,function(i,a){if(a.indexOf("__")===0)return;const l=YB(i);let s;/^\{.*\}$/.test(a)?(s=Yw(a,t,l.template),o.push(s)):a==="*"?(s=new An(a),o.push(s)):(l.name=a,s=new Mo(a,null,[l]),r.push(s)),ye.map(Va(i,t),function(c){s.addComponent(c)})}),n.addComponent(new QA("inner",r,o)),n}function Jw(e,t){const n=new Mo("[");return ye.each(e,function(r){ye.each(Va(r,t),function(o){n.addComponent(o)})}),n}function QB(e,t){if(e.lines_regex)return new YA(function(n,r){const o=r.getLines(n.requestStartRow,r.getCurrentPosition().lineNumber).join(`
271
- `);return new RegExp(e.lines_regex,"m").test(o)},t);throw"unknown condition type - got: "+JSON.stringify(e)}function ZB(){return[new JA("__global__")]}function Qw(e,t,n){return Va(t,new GB(e,n))}function _p(e,t){this.globalRules=Object.create(null),this.endpoints=Object.create(null),this.urlPatternMatcher=new tN(e),this.globalBodyComponentFactories=t,this.name=""}(function(e){e.addGlobalAutocompleteRules=function(t,n){this.globalRules[t]=Qw("GLOBAL."+t,n,this.globalBodyComponentFactories)},e.getGlobalAutocompleteComponents=function(t,n){const r=this.globalRules[t];if(ye.isUndefined(r)&&(n||ye.isUndefined(n)))throw new Error("failed to resolve global components for ['"+t+"']");return r},e.addEndpointDescription=function(t,n){const r={};ye.assign(r,n||{}),ye.defaults(r,{id:t,patterns:[t],methods:["GET"]}),ye.each(r.patterns,o=>{this.urlPatternMatcher.addEndpoint(o,r)}),r.paramsAutocomplete=new WB(r.url_params),r.bodyAutocompleteRootComponents=Qw(r.id,r.data_autocomplete_rules,this.globalBodyComponentFactories),this.endpoints[t]=r},e.getEndpointDescriptionByEndpoint=function(t){return this.endpoints[t]},e.getTopLevelUrlCompleteComponents=function(t){return this.urlPatternMatcher.getTopLevelComponents(t)},e.getUnmatchedEndpointComponents=function(){return ZB()},e.clear=function(){this.endpoints={},this.globalRules={}}})(_p.prototype);let Ha=new _p;const Zw=e=>e[0]==="_"&&e!=="_all",Wa=(e,t)=>new _N(e,t),e4={getComponent:function(e,t,n){if(this[e])return this[e];if(n)return Wa},index:function(e,t){if(!Zw(e))return new El(e,t,!1)},indices:function(e,t){if(!Zw(e))return new El(e,t,!0)},type:function(e,t){return new Eb(e,t,!1)},types:function(e,t){return new Eb(e,t,!0)},id:function(e,t){return Wa(e,t)},transform_id:function(e,t){return Wa(e,t)},username:function(e,t){return new Ob(e,t)},user:function(e,t){return new Ob(e,t)},template:function(e,t){return new yN(e,t)},task_id:function(e,t){return Wa(e,t)},ids:function(e,t){return Wa(e,t)},fields:function(e,t){return new Cb(e,t,!0)},field:function(e,t){return new Cb(e,t,!1)},nodes:function(e,t){return new Vn(e,["_local","_master","data:true","data:false","master:true","master:false"],t)},node:function(e,t){return new Vn(e,[],t,!1)}};function t4(){return Ha.getUnmatchedEndpointComponents()}function n4(e){return Ha.getEndpointDescriptionByEndpoint(e)}function r4(e){const t=n4(e);if(!t)throw new Error("failed to resolve endpoint ['"+e+"']");return t.bodyAutocompleteRootComponents}function Jl(e){return Ha.getTopLevelUrlCompleteComponents(e)}function o4(e,t){return Ha.getGlobalAutocompleteComponents(e,t)}function i4(e,t,n){t=t||e4,n=n||t;const r=new _p(t,n),o=[];return ye.each(e,function(i,a){o.unshift(a),ye.each(i.globals||{},function(l,s){r.addGlobalAutocompleteRules(s,l)}),ye.each(i.endpoints||{},function(l,s){r.addEndpointDescription(s,l)})}),r.name=o.join(","),r}const ex=new VB;ex.start();const a4=ex.asJson();Ha=i4({es:a4});const Jt={REQUEST_START:2,IN_REQUEST:4,MULTI_DOC_CUR_DOC_END:8,REQUEST_END:16,BETWEEN_REQUESTS:32};class tx{constructor(t){this.editor=t,this.MODE=Jt}getRowParseMode(t=this.editor.getCurrentPosition().lineNumber){const n=this.editor.getLineCount();if(t>n||t<1)return Jt.BETWEEN_REQUESTS;const r=this.editor.getLineState(t);if(!r)return Jt.BETWEEN_REQUESTS;if(r!=="start"&&r!=="start-sql")return Jt.IN_REQUEST;let o=(this.editor.getLineValue(t)||"").trim();return!o||o[0]==="#"?Jt.BETWEEN_REQUESTS:o.indexOf("}",o.length-1)>=0?(t++,t<n+1&&(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")===0)?Jt.MULTI_DOC_CUR_DOC_END|Jt.IN_REQUEST:Jt.REQUEST_END|Jt.MULTI_DOC_CUR_DOC_END):(t++,t>=n+1||(o=(this.editor.getLineValue(t)||"").trim(),o.indexOf("{")!==0)?Jt.REQUEST_START|Jt.REQUEST_END:Jt.REQUEST_START)}rowPredicate(t,n,r){return(this.getRowParseMode(t)&r)>0}isEndRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Jt.REQUEST_END)}isRequestEdge(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Jt.REQUEST_END|Jt.REQUEST_START)}isStartRequestRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Jt.REQUEST_START)}isInBetweenRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Jt.BETWEEN_REQUESTS)}isInRequestsRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Jt.IN_REQUEST)}isMultiDocDocEndRow(t,n){const r=n||this.editor;return this.rowPredicate(t,r,Jt.MULTI_DOC_CUR_DOC_END)}isEmptyToken(t){const n=t&&t.getCurrentToken?t.getCurrentToken():t;return!n||n.type==="whitespace"}isUrlOrMethodToken(t){const n=(t==null?void 0:t.getCurrentToken())||t;return n&&n.type&&(n.type==="method"||n.type.indexOf("url")===0)}nextNonEmptyToken(t){let n=t.stepForward();for(;n&&this.isEmptyToken(n);)n=t.stepForward();return n}prevNonEmptyToken(t){let n=t.stepBackward();for(;(n||t.getCurrentPosition().lineNumber>1)&&this.isEmptyToken(n);)n=t.stepBackward();return n}}function s4(e){return!(e==="_all"||e[0]!=="_")}class l4 extends Vn{constructor(t,n,r){super(t,dN,n,r)}validateTokens(t){return!this.multiValued&&t.length>1?!1:!ye.find(t,s4)}getDefaultTermMeta(){return"command"}getContextKey(){return"command"}}function c4(){return[new l4("command",null,!0)]}let br=null;function yp(e){switch((e||{}).type){case"url.param":case"url.equal":case"url.value":case"url.questionmark":case"url.amp":return!0;default:return!1}}function Ql(e,t,n,r){const o=jo({editor:e,position:t}),i=t;let a=[];const l={tokensLineCache:[]};l.tokensLineCache=o.tokensLineCache;const s={looking_for_key:0,looking_for_scope_start:1,start:3};let c=s.start,u=o.getCurrentToken();l.token=u,u?i.column===1&&(u=o.stepBackward(),c=s.looking_for_scope_start):i.column===1&&(u=o.stepBackward(),c=s.start);let f=!1;for(;u&&u.type.indexOf("url")===-1&&u.type!=="method";u=o.stepBackward())switch(u.type!=="whitespace"&&(f=!0),u.type){case"variable":c===s.looking_for_key&&a.unshift(u.value.trim().replace(/"/g,"")),c=s.looking_for_scope_start;break;case"paren.lparen":a.unshift(u.value),c===s.looking_for_scope_start&&(c=s.looking_for_key);break;case"paren.rparen":c=s.looking_for_scope_start;let b=1;for(u=o.stepBackward();u&&b>0;){switch(u.type){case"paren.lparen":b--;break;case"paren.rparen":b++;break}b>0&&(u=o.stepBackward())}if(!u)return{};continue;case"punctuation.end_triple_quote":for(c=s.looking_for_scope_start,u=o.stepBackward();u;u=o.stepBackward())if(u.type==="punctuation.start_triple_quote"){u=o.stepBackward();break}if(!u)return{};continue;case"punctuation.start_triple_quote":c===s.start?c=s.looking_for_key:c===s.looking_for_key&&(c=s.looking_for_scope_start),a.unshift('"""');continue;case"string":case"constant.numeric":case"constant.language.boolean":case"text":c===s.start?c=s.looking_for_key:c===s.looking_for_key&&(c=s.looking_for_scope_start);break;case"punctuation.comma":c===s.start&&(c=s.looking_for_scope_start);break;case"punctuation.colon":case"whitespace":c===s.start&&(c=s.looking_for_key);break}if(f&&(!a||a.length===0)&&!r)return{};if(l.urlTokenPath=[],o.getCurrentPosition().lineNumber===i.lineNumber){if(u&&(u.type==="url.part"||u.type==="url.param"||u.type==="url.value")||u.type==="url.select_keyword")if(r&&(u.type==="url.part"||u.type==="url.select_keyword")&&(l.urlTokenPath.push(u.value),l.urlTokenPath.push(Jd)),u=o.stepBackward(),u.type==="whitespace")for(;u.type==="whitespace";)u=o.stepBackward();else for(;u.value.trim()==="";)u=o.stepBackward();a=null}l.bodyTokenPath=a,l.urlParamsTokenPath=null,l.requestStartRow=o.getCurrentPosition().lineNumber;let d;for(;u&&yp(u);){switch(u.type){case"url.value":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.param":const b=d;d={},d[u.value]=b;break;case"url.amp":case"url.questionmark":l.urlParamsTokenPath||(l.urlParamsTokenPath=[]),l.urlParamsTokenPath.unshift(d||{}),d=null;break}u=o.stepBackward()}for(d=null;u&&u.type.indexOf("url")!==-1;){switch(u.type){case"url.select_keyword":case"url.part":Array.isArray(d)?d.unshift(u.value):d?d=[u.value,d]:d=u.value;break;case"url.comma":d?Array.isArray(d)||(d=[d]):d=[];break;case"url.slash":d&&(l.urlTokenPath.unshift(d),d=null);break}for(u=n.prevNonEmptyToken(o);u.value.trim()==="";)u=n.prevNonEmptyToken(o)}return d&&l.urlTokenPath.unshift(d),!l.bodyTokenPath&&!l.urlParamsTokenPath?l.urlTokenPath.length>0&&(l.otherTokenValues=l.urlTokenPath[0]):l.urlTokenPath.push(Jd),u&&u.type==="method"&&(l.method=u.value),l}function nx(e){switch((e||{}).type){case"url.slash":case"url.comma":case"url.part":return!0;default:return!1}}function Zl(e,t,n){return ye.map(e,function(r){return typeof r!="object"&&(r={name:r}),ye.defaults(r,{meta:t,template:n})})}function u4({coreEditor:e}){const t=new tx(e);function n(p){const m=p.context;i(m,e.getCurrentPosition(),p.insertValue);let g;m.autoCompleteType==="body"?(g=typeof p.insertValue=="string"?'"'+p.insertValue+'"':p.insertValue+"",(p.insertValue==="["||p.insertValue==="{")&&(g="")):g=p.insertValue+"";let w=g,E=!1;if(m.addTemplate&&!ye.isUndefined(p.template)&&!ye.isNull(p.template)){let T;p.template.__raw&&p.template.value?T=p.template.value.split(`
272
- `):T=pb(p.template,!0).split(`
273
- `);let M=e.getLineValue(m.rangeToReplace.start.lineNumber);M=M.match(/^\s*/)[0];for(let N=1;N<T.length;N++)T[N]=M+T[N];w+=": "+T.join(`
274
- `),E=!0}else E=!0,p.value==="["?w+="[]":p.value==="{"?w+="{}":E=!1;w=m.prefixToAdd+w+m.suffixToAdd,e.off("changeSelection",h),m.rangeToReplace.start.column!==m.rangeToReplace.end.column?e.replace(m.rangeToReplace,w):e.insert(w),e.clearSelection();let S={lineNumber:m.rangeToReplace.start.lineNumber,column:m.rangeToReplace.start.column+g.length+m.prefixToAdd.length+(E?0:m.suffixToAdd.length)};const C=jo({editor:e,position:S});if(m.autoCompleteType==="body"){let T=t.nextNonEmptyToken(C);switch(T?T.type:"NOTOKEN"){case"paren.rparen":S=C.getCurrentPosition();break;case"punctuation.colon":T=t.nextNonEmptyToken(C),(T||{}).type==="paren.lparen"&&(T=t.nextNonEmptyToken(C),S=C.getCurrentPosition(),T&&T.value.indexOf('"')===0&&S.column++);break;case"paren.lparen":case"punctuation.comma":C.stepForward(),S=C.getCurrentPosition();break}e.moveCursorToPosition(S)}e.on("changeSelection",h)}function r(p,m){const g={autoCompleteSet:null,endpoint:null,urlPath:null,method:null,activeScheme:null,editor:p,tokensLineCache:[]};switch(g.autoCompleteType=o(m),g.autoCompleteType){case"path":d(g,m);break;case"url_params":b(g,m);break;case"method":f(g);break;case"body":x(g,m);break;default:return null}return g.autoCompleteSet?(i(g,m),g.createdWithToken=ye.clone(g.updatedForToken),g):null}function o(p){let m=t.getRowParseMode();if(m&t.MODE.IN_REQUEST)return"body";if(m&t.MODE.REQUEST_START){const g=jo({editor:e,position:p});let w=g.getCurrentToken();for(;(w||{}).type==="url.comma";)w=g.stepBackward();switch((w||{}).type){case"method":return"method";case"whitespace":switch(w=t.prevNonEmptyToken(g),(w||{}).type){case"method":return"path";default:return nx(w)?"path":yp(w)?"url_params":null}default:return nx(w)?"path":yp(w)?"url_params":null}}return m&t.MODE.REQUEST_END?"body":e.getLineValue(p.lineNumber).trim()===""?(m=t.getRowParseMode(p.lineNumber-1),m&t.MODE.REQUEST_START&&m&t.MODE.REQUEST_END?"body":"method"):null}function i(p,m,g){p.updatedForToken=ye.clone(e.getTokenAt({lineNumber:m.lineNumber,column:m.column})),p.updatedForToken||(p.updatedForToken={value:"",type:"",position:{column:m.column,lineNumber:m.lineNumber}});let w=p.createdWithToken;switch(w||(w=p.updatedForToken),p.updatedForToken.type){case"variable":case"string":case"text":case"constant.numeric":case"constant.language.boolean":case"method":case"url.index":case"url.type":case"url.id":case"url.method":case"url.endpoint":case"url.part":case"url.param":case"url.value":p.rangeToReplace={start:{lineNumber:m.lineNumber,column:w.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0;break;default:g&&p.updatedForToken.value===g?(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:w.position.column},end:{lineNumber:m.lineNumber,column:p.updatedForToken.position.column+p.updatedForToken.value.length}},p.replacingToken=!0):(p.rangeToReplace={start:{lineNumber:m.lineNumber,column:m.column},end:{lineNumber:m.lineNumber,column:m.column}},p.replacingToken=!1);break}switch(p.textBoxPosition={lineNumber:p.rangeToReplace.start.lineNumber,column:p.rangeToReplace.start.column},p.autoCompleteType){case"path":c(p);break;case"url_params":l(p);break;case"method":s(p);break;case"body":a(p);break}}function a(p){p.prefixToAdd="",p.suffixToAdd="";let m=jo({editor:e,position:e.getCurrentPosition()}),g=t.nextNonEmptyToken(m);switch(g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"paren.rparen":case"punctuation.comma":p.addTemplate=!0;break;case"punctuation.colon":if(p.addTemplate=!1,g=t.nextNonEmptyToken(m),!(g&&g.value==="{")||(g=t.nextNonEmptyToken(m),!(g&&g.value==="}")))break;switch(p.addTemplate=!0,p.rangeToReplace.end.lineNumber=m.getCurrentTokenLineNumber(),p.rangeToReplace.end.column=m.getCurrentTokenColumn()+g.value.length,g=t.nextNonEmptyToken(m),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.rparen":case"punctuation.comma":case"punctuation.colon":break;default:p.suffixToAdd=", "}break;default:p.addTemplate=!0,p.suffixToAdd=", ";break}m=jo({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentToken();let w;if(p.replacingToken)w=0;else{const E=e.getCurrentPosition();E.column===p.updatedForToken.position.column?w=-1:E.column<p.updatedForToken.position.column+p.updatedForToken.value.length?w=0:w=1}switch((t.isEmptyToken(g)||w<=0)&&(g=t.prevNonEmptyToken(m)),g?g.type:"NOTOKEN"){case"NOTOKEN":case"paren.lparen":case"punctuation.comma":case"punctuation.colon":case"method":break;default:g&&g.type.indexOf("url")<0&&(p.prefixToAdd=", ")}return p}function l(p){p.prefixToAdd="",p.suffixToAdd=""}function s(p){p.prefixToAdd="",p.suffixToAdd="";const m=jo({editor:e,position:e.getCurrentPosition()}),g=m.getCurrentPosition().lineNumber,w=t.nextNonEmptyToken(m);(m.getCurrentPosition().lineNumber!==g||!w)&&(p.suffixToAdd=" ")}function c(p){p.prefixToAdd="",p.suffixToAdd=""}function u(p,m){const g=[];let w=-1;return(p||[]).forEach((E,S)=>{const C=E.value.toUpperCase();if(["FROM","JOIN"].includes(C)&&p.length>S+2&&S+2!=m){let T=p[S+2].value;T.includes("(")||(T=T.replace(/^"+/,"").replace(/"+$/,""),g.push(T),w=S)}}),{indices:g.join(","),idx:w}}function f(p){p.autoCompleteSet=["GET","PUT","POST","DELETE","HEAD","LOAD","SELECT","FROM"].map((m,g)=>({name:m,score:-g,meta:"method"}))}function d(p,m){var E,S;const g=Ql(e,m,t);p.method=g.method,p.token=g.token,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath;let w;if(g.method==="LOAD")w=c4();else if(g.method==="SELECT"){const C=(g.tokensLineCache||[]).findIndex(R=>R.value===g.token.value);let{indices:T,idx:M}=u(g.tokensLineCache,C);if(M>-1&&C<M){const R=Aa(T);p.autoCompleteSet=Zl(R,"field");return}const N=((E=g.otherTokenValues)==null?void 0:E.length)||0;if(N>0)switch(g.otherTokenValues[N-1].toUpperCase()){case"FROM":!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],w=[new El("indices",null,!0)]);break;case"WHERE":case"AND":case"BY":if(N>1&&!g.token.value.includes("=")){T===""&&(T=g.otherTokenValues[N-2],T=T.replace(/^"+/,"").replace(/"+$/,""));const R=Aa(T);p.autoCompleteSet=Zl(R,"field");return}}}else if(g.method=="FROM"){const C=(g.tokensLineCache||[]).findIndex(T=>T.value===g.token.value);if(g.tokensLineCache[C-2].value=="FROM")!g.token.value.endsWith('"')&&g.token.value!='"'&&(p.otherTokenValues=null,p.urlTokenPath=[],w=[new El("indices",null,!0)]);else{let T=g.otherTokenValues[0];T=T.replace(/^"+/,"").replace(/"+$/,"");const M=((S=g.otherTokenValues)==null?void 0:S.length)||0;let N=!0,R=null;for(let D=C-1;D>=0;D--){const V=g.tokensLineCache[D];if(R===null&&V.value.trim()!=""&&(R=V),V.type=="url.select_keyword"&&V.value.toUpperCase()!="SELECT"){N=!1;break}}switch(N&&R.value!=","&&R.value.toUpperCase()!="SELECT"&&(N=!1),g.otherTokenValues[M-1].toUpperCase()){case"SELECT":case"WHERE":case"AND":case"BY":N=!0}if(N&&!g.token.value.includes("=")){const D=Aa(T);p.autoCompleteSet=Zl(D,"field");return}}}else w=Jl(p.method);Mi(p.urlTokenPath,p,e,!0,w),p.autoCompleteSet=Zl(p.autoCompleteSet,"endpoint")}function b(p,m){const g=Ql(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,!g.urlTokenPath||(Mi(g.urlTokenPath,p,e,!1,Jl(p.method)),!p.endpoint)||!g.urlParamsTokenPath)return p;let w=[];const E=g.urlParamsTokenPath.pop();return E&&(w=Object.keys(E),p.otherTokenValues=E[w[0]]),Mi(w,p,e,!0,p.endpoint.paramsAutocomplete.getTopLevelComponents(p.method)),p}function x(p,m){const g=Ql(e,m,t);if(p.method=g.method,p.otherTokenValues=g.otherTokenValues,p.urlTokenPath=g.urlTokenPath,p.requestStartRow=g.requestStartRow,!g.urlTokenPath||(Mi(g.urlTokenPath,p,e,!1,Jl(p.method)),p.bodyTokenPath=g.bodyTokenPath,!g.bodyTokenPath))return p;p.endpointComponentResolver=r4,p.globalComponentResolver=o4;let w;return p.endpoint?w=p.endpoint.bodyAutocompleteRootComponents:w=t4(),Mi(g.bodyTokenPath,p,e,!0,w),p}const O=ye.debounce(function(m){let g=null;try{g=e.getTokenAt(m)}catch(w){console.error(w)}if(!g){if(m.lineNumber===1){br=null;return}g={position:{column:0,lineNumber:0},value:"",type:""}}if(g.position.lineNumber=m.lineNumber,t.isEmptyToken(g)){const w=e.getTokenAt(Bt(Me({},m),{column:m.column+1}));t.isEmptyToken(w)?(g.position.column=m.column,br=g):(w.position.lineNumber=m.lineNumber,br=w);return}if(!br){br=g;return}if(br.position.column!==g.position.column||br.position.lineNumber!==g.position.lineNumber||br.value===g.value){br=g;return}switch(g.type||"UNKNOWN"){case"paren.lparen":case"paren.rparen":case"punctuation.colon":case"punctuation.comma":case"UNKNOWN":return}br=g,e.execCommand("startAutocomplete")},100);function h(){const p=e.getCurrentPosition();p&&!e.isCompleterActive()&&O(p)}function y(p,m,g){try{const w=r(e,p);if(!w)g(null,[]);else{const E=ye.map(w.autoCompleteSet.filter(S=>!!S&&S.name!=null),function(S){typeof S!="object"?S={name:S}:S=ye.clone(S);const C={value:S.name,meta:"API",score:0,context:w};return w.method==="LOAD"&&w.autoCompleteType==="path"&&(C.completer={insertMatch(){n(S),e.execCommand("exec_request")}}),w.autoCompleteType==="body"&&(C.completer={insertMatch(){return n(S)}}),ye.defaults(S,C)});E.sort(function(S,C){return S.score>C.score?-1:S.score<C.score?1:S.name<C.name?-1:S.name===C.name?0:1}),g(null,ye.map(E,function(S,C){return S.insertValue=S.insertValue||S.value,S.value=""+S.value,S.score=-C,S}))}}catch(w){console.error(w),g(w,null)}}return e.on("changeSelection",h),{getCompletions:y}}function d4(){return Et(this,null,function*(){return(yield Promise.resolve().then(()=>y5)).someFunction()})}const f4={id:"sense_editor/mode/worker",src:d4},{TextHighlightRules:p4}=Qe.acequire("ace/mode/text_highlight_rules"),h4=Qe.acequire("ace/lib/oop"),bp=function(){const o=this.createKeywordMapper({keyword:["describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is","avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score","true|false","null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape"].join("|")},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"constant",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"entity.name.function",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:o,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"⇐|<⇒|\\*|\\.|\\:\\:|\\+|\\-|\\/|\\/\\/|%|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};h4.inherits(bp,p4);const m4=Qe.acequire("ace/lib/oop"),{TextHighlightRules:g4}=Qe.acequire("ace/mode/text_highlight_rules"),v4="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function wp(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:v4},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}m4.inherits(wp,g4);const{JsonHighlightRules:_4}=Qe.acequire("ace/mode/json_highlight_rules"),y4=Qe.acequire("ace/lib/oop"),rx=function(e){e=e||"json";const t={},n=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("(?:[^"]*_)?script"|"inline"|"source")(\\s*?)(:)(\\s*?)(""")',next:"script-start",merge:!1,push:!0},{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"punctuation.start_triple_quote",regex:'"""',next:"string_literal",merge:!1,push:!0},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"invalid.illegal",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"invalid.illegal",regex:"\\/\\/.*$"},{token:"paren.lparen",merge:!1,regex:"{",next:e,push:!0},{token:"paren.lparen",merge:!1,regex:"[[(]"},{token:"paren.rparen",merge:!1,regex:"[\\])]"},{token:"paren.rparen",regex:"}",merge:!1,next:"pop"},{token:"punctuation.comma",regex:","},{token:"punctuation.colon",regex:":"},{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}];return t[e]=n,t[e+"-sql"]=[{token:["variable","whitespace","ace.punctuation.colon","whitespace","punctuation.start_triple_quote"],regex:'("query")(\\s*?)(:)(\\s*?)(""")',next:"sql-start",merge:!1,push:!0}].concat(n),t.string_literal=[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"},{token:"multi_string",regex:"."}],t};function ox(){const e=rx("start");this.$rules=Me({},e),this.embedRules(wp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),this.embedRules(bp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}y4.inherits(ox,_4);function ix(e,t){e.$rules=ye.defaultsDeep(e.$rules,rx(t)),e.embedRules(wp,"script-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}]),e.embedRules(bp,"sql-",[{token:"punctuation.end_triple_quote",regex:'"""',next:"pop"}])}function b4(){return Et(this,null,function*(){return(yield Promise.resolve().then(()=>G5)).someFunction()})}const w4={id:"ace/mode/json_worker",src:b4},{WorkerClient:x4}=Qe.acequire("ace/worker/worker_client"),S4=Qe.acequire("ace/lib/oop"),{Mode:C4}=Qe.acequire("ace/mode/json"),{Tokenizer:E4}=Qe.acequire("ace/tokenizer"),{MatchingBraceOutdent:O4}=Qe.acequire("ace/mode/matching_brace_outdent"),{CstyleBehaviour:$4}=Qe.acequire("ace/mode/behaviour/cstyle"),{FoldMode:T4}=Qe.acequire("ace/mode/folding/cstyle"),ax=function(){const t=new ox;t.normalizeRules(),this.$tokenizer=new E4(t.getRules()),this.$outdent=new O4,this.$behaviour=new $4,this.foldingRules=new T4};S4.inherits(ax,C4),ax.prototype.createWorker=function(e){const t=new x4(["ace"],w4,"JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(n){e.setAnnotations(n.data)}),t.on("terminate",function(){e.clearAnnotations()}),t};function tn(e,t,n,r){return typeof t=="object"&&(t=t.source),[{token:e.concat(["whitespace"]),regex:t+"(\\s*)$",next:n},{token:e,regex:t,next:r}]}function Ii(){return[].concat.apply([],arguments)}const P4=Qe.acequire("ace/lib/oop"),{TextHighlightRules:R4}=Qe.acequire("ace/mode/text_highlight_rules");function xp(){const e="describe|between|in|like|not|and|or|desc|select|from|where|having|group|by|order|asc|desc|pivot|for|in|as|show|columns|include|frozen|tables|escape|limit|rlike|all|distinct|is",t="true|false",n="avg|count|first|first_value|last|last_value|max|min|sum|kurtosis|mad|percentile|percentile_rank|skewness|stddev_pop|sum_of_squares|var_pop|histogram|case|coalesce|greatest|ifnull|iif|isnull|least|nullif|nvl|curdate|current_date|current_time|current_timestamp|curtime|dateadd|datediff|datepart|datetrunc|date_add|date_diff|date_part|date_trunc|day|dayname|dayofmonth|dayofweek|dayofyear|day_name|day_of_month|day_of_week|day_of_year|dom|dow|doy|hour|hour_of_day|idow|isodayofweek|isodow|isoweek|isoweekofyear|iso_day_of_week|iso_week_of_year|iw|iwoy|minute|minute_of_day|minute_of_hour|month|monthname|month_name|month_of_year|now|quarter|second|second_of_minute|timestampadd|timestampdiff|timestamp_add|timestamp_diff|today|week|week_of_year|year|abs|acos|asin|atan|atan2|cbrt|ceil|ceiling|cos|cosh|cot|degrees|e|exp|expm1|floor|log|log10|mod|pi|power|radians|rand|random|round|sign|signum|sin|sinh|sqrt|tan|truncate|ascii|bit_length|char|character_length|char_length|concat|insert|lcase|left|length|locate|ltrim|octet_length|position|repeat|replace|right|rtrim|space|substring|ucase|cast|convert|database|user|st_astext|st_aswkt|st_distance|st_geometrytype|st_geomfromtext|st_wkttosql|st_x|st_y|st_z|score",r="null|boolean|byte|short|integer|long|double|float|half_float|scaled_float|keyword|text|binary|date|ip|object|nested|time|interval_year|interval_month|interval_day|interval_hour|interval_minute|interval_second|interval_year_to_monthinteval_day_to_hour|interval_day_to_minute|interval_day_to_second|interval_hour_to_minute|interval_hour_to_secondinterval_minute_to_second|geo_point|geo_shape|shape";this.createKeywordMapper({keyword:[e,n,t,r].join("|")},"identifier",!0);const o=[e,n,t,r].join("|").split("|");let i=tn(["url.part"],/([^?\/,\s]+)/,"start");i=i.map(a=>(a.onMatch=(l,s,c)=>o.includes(l==null?void 0:l.toLowerCase())?"url.select_keyword":a.token,a)),this.$rules={"start-sql":[{token:"whitespace",regex:"\\s+"},{token:"paren.lparen",regex:"{",next:"json-sql",push:!0},{regex:"",next:"start"}],start:Ii([{token:"warning",regex:"#!.*$"},{token:"comment",regex:/^#.*$/},{token:"paren.lparen",regex:"{",next:"json",push:!0}],tn(["method"],/([a-zA-Z]+)/,"start","method_sep"),[{token:"whitespace",regex:"\\s+"},{token:"text",regex:".+?"}]),method_sep:Ii(tn(["whitespace","url.protocol_host","url.slash"],/(\s+)(https?:\/\/[^?\/,]+)(\/)/,"start","url"),tn(["whitespace","url.protocol_host"],/(\s+)(https?:\/\/[^?\/,]+)/,"start","url"),tn(["whitespace","url.slash"],/(\s+)(\/)/,"start","url"),tn(["whitespace"],/(\s+)/,"start","url")),url:Ii(tn(["url.part"],/(_sql)/,"start-sql","url-sql"),i,tn(["url.comma"],/(,)/,"start"),tn(["url.slash"],/(\/)/,"start"),tn(["url.questionmark"],/(\?)/,"start","urlParams")),urlParams:Ii(tn(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start"),tn(["url.param"],/([^&=]+)/,"start"),tn(["url.amp"],/(&)/,"start")),"url-sql":Ii(tn(["url.part"],/([^?\/,\s]+)/,"start-sql"),tn(["url.comma"],/(,)/,"start-sql"),tn(["url.slash"],/(\/)/,"start-sql"),tn(["url.questionmark"],/(\?)/,"start-sql","urlParams-sql")),"urlParams-sql":Ii(tn(["url.param","url.equal","url.value"],/([^&=]+)(=)([^&]*)/,"start-sql"),tn(["url.param"],/([^&=]+)/,"start-sql"),tn(["url.amp"],/(&)/,"start-sql"))},ix(this),this.constructor===xp&&this.normalizeRules()}P4.inherits(xp,R4);const j4=Qe.acequire("ace/lib/oop"),{TextHighlightRules:M4}=Qe.acequire("ace/mode/text_highlight_rules"),I4="def|int|long|byte|String|float|double|char|null|if|else|while|do|for|continue|break|new|try|catch|throw|this|instanceof|return|ctx";function sx(){this.name="ScriptHighlightRules",this.$rules={start:[{token:"script.comment",regex:"\\/\\/.*$"},{token:"script.string.regexp",regex:"[/](?:(?:\\[(?:\\\\]|[^\\]])+\\])|(?:\\\\/|[^\\]/]))*[/]\\w*\\s*(?=[).,;]|$)"},{token:"script.string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"script.constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"script.constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"script.constant.language.boolean",regex:"(?:true|false)\\b"},{token:"script.keyword",regex:I4},{token:"script.text",regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"script.keyword.operator",regex:"\\?\\.|\\*\\.|=~|==~|!|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|->|!|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^=|\\b(?:in|instanceof|new|typeof|void)"},{token:"script.lparen",regex:"[[({]"},{token:"script.rparen",regex:"[\\])}]"},{token:"script.text",regex:"\\s+"}]}}j4.inherits(sx,M4);const A4=Qe.acequire("ace/lib/oop"),N4=Qe.acequire("ace/mode/text").Mode;Qe.acequire("ace/tokenizer");function Sp(){}A4.inherits(Sp,N4),function(){this.HighlightRules=sx,this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return t.match(/^.*[\{\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}.call(Sp.prototype);const k4=Qe.acequire("ace/lib/oop"),L4=Qe.acequire("ace/mode/text").Mode,F4=Qe.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,D4=Qe.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,B4=Qe.acequire("ace/mode/folding/cstyle").FoldMode,z4=Qe.acequire("ace/worker/worker_client").WorkerClient,q4=Qe.acequire("ace/tokenizer").Tokenizer;function Cp(){this.$tokenizer=new q4(new xp().getRules()),this.$outdent=new F4,this.$behaviour=new D4,this.foldingRules=new B4,this.createModeDelegates({"script-":Sp})}k4.inherits(Cp,L4),function(){this.getCompletions=function(){return[]},this.getNextLineIndent=function(e,t,n){let r=this.$getIndent(t);return e!=="string_literal"&&t.match(/^.*[\{\(\[]\s*$/)&&(r+=n),r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){const t=new z4(["ace","sense_editor"],f4,"SenseWorker");return t.attachToDocument(e.getDocument()),t.on("error",function(n){e.setAnnotations([n.data])}),t.on("ok",function(n){e.setAnnotations(n.data)}),t}}.call(Cp.prototype);var Ua={exports:{}};const lx=Qe.acequire("ace/ext/language_tools");(function(){Qe.define("ace/autocomplete/text_completer",["require","exports","module"],function(t,n){n.getCompletions=function(r,o,i,a,l){l(null,[])}}),lx.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(t,n,r,o)=>{const i=t.coreEditor,a={lineNumber:n.row+1,column:n.column+1};i.autocompleter(a,r,o)}}])})();const V4=Qe.acequire("ace/range").Range,ec=({start:e,end:t})=>new V4(e.lineNumber-1,e.column-1,t.lineNumber-1,t.column-1);class H4{constructor(t,n){this.editor=t,this.setActionsBar=(i,a="top")=>{i===null?this.$actions.css("visibility","hidden"):a==="top"?this.$actions.css({bottom:"auto",top:i,visibility:"visible"}):this.$actions.css({top:"auto",bottom:i,visibility:"visible"})},this.hideActionsBar=()=>{this.setActionsBar(null)},this.$actions=Rt(n),this.editor.setShowPrintMargin(!1),this.parser=new tx(this),this.autocompleter=u4({coreEditor:this}).getCompletions;const r=this.editor.getSession();r.setMode(new Cp);const o=localStorage.getItem("editor:MaxTokenCount");o&&this.setMaxTokenCount(o),r.setFoldStyle("markbeginend"),r.setTabSize(2),r.setUseWrapMode(!0),this.resize=_b(this.editor),this._aceOnPaste=this.editor.onPaste,this.editor.onPaste=this.DO_NOT_USE_onPaste.bind(this),this.editor.setOptions({enableBasicAutocompletion:!0}),this.editor.$blockScrolling=1/0,this.hideActionsBar(),this.editor.focus(),t.coreEditor=this}setMaxTokenCount(t){var r;(r=this.editor.getSession().getMode().getTokenizer())==null||r.$setMaxTokenCount(t)}getParser(){return this.parser}getAutocompleter(){return this.autocompleter}waitForLatestTokens(){return new Promise(t=>{const n=this.editor.getSession(),r=25,o=()=>{n.bgTokenizer&&(n.bgTokenizer.running?setTimeout(o,r):t())};setTimeout(o,0)})}getLineState(t){return this.editor.getSession().getState(t-1)}getValueInRange(t){return this.editor.getSession().getTextRange(ec(t))}getTokenProvider(){return new HA(this.editor.getSession())}getValue(){return this.editor.getValue()}setValue(t,n){return Et(this,null,function*(){this.editor.getSession().setValue(t),n&&(yield this.forceRetokenize())})}getLineValue(t){return this.editor.getSession().getLine(t-1)}getCurrentPosition(){const t=this.editor.getCursorPosition();return{lineNumber:t.row+1,column:t.column+1}}clearSelection(){this.editor.clearSelection()}getTokenAt(t){return this.getTokenProvider().getTokenAt(t)}insert(t,n){if(typeof t=="string"){this.editor.insert(t);return}this.editor.getSession().getDocument().insert({column:t.column-1,row:t.lineNumber-1},n||"")}moveCursorToPosition(t){this.editor.moveCursorToPosition({row:t.lineNumber-1,column:t.column-1})}replace(t,n){this.editor.getSession().replace(ec(t),n)}getLines(t,n){return this.editor.getSession().getLines(t-1,n-1)}replaceRange(t,n){const r=this.editor.getCursorPosition();this.editor.getSession().replace(ec(t),n);const o=Math.max(t.start.lineNumber-1+n.split(`
275
- `).length-1,1);r.row=Math.min(r.row,o),this.editor.moveCursorToPosition(r),this.editor.clearSelection()}getSelectionRange(){const t=this.editor.getSelectionRange();return{start:{lineNumber:t.start.row+1,column:t.start.column+1},end:{lineNumber:t.end.row+1,column:t.end.column+1}}}getLineCount(){return this.editor.getSession().getLength()}addMarker(t){return this.editor.getSession().addMarker(ec(t),"ace_snippet-marker","fullLine",!1)}removeMarker(t){this.editor.getSession().removeMarker(t)}getWrapLimit(){return this.editor.getSession().getWrapLimit()}on(t,n){t==="changeCursor"?this.editor.getSession().selection.on(t,n):t==="changeSelection"?this.editor.on(t,n):this.editor.getSession().on(t,n)}off(t,n){t==="changeSelection"&&this.editor.off(t,n)}isCompleterActive(){return!!(this.editor.completer&&this.editor.completer.activated)}forceRetokenize(){const t=this.editor.getSession();return console.log(333333,t,this.editor),new Promise(n=>{setTimeout(function(){let r;for(r=0;r<t.getLength();r++)console.log(4444444,r,t.getTokens),t.getTokens(r);n()})})}DO_NOT_USE_onPaste(t){if(t&&UA(t)){const n=GA(t);this.editor.insert(n);return}this._aceOnPaste.call(this.editor,t)}execCommand(t){this.editor.execCommand(t)}getContainer(){return this.editor.container}setStyles(t){this.editor.getSession().setUseWrapMode(t.wrapLines),this.editor.container.style.fontSize=t.fontSize}registerKeyboardShortcut(t){this.editor.commands.addCommand({exec:t.fn,name:t.name,bindKey:t.keys})}legacyUpdateUI(t){if(this.$actions&&t){const n=Rt(this.editor.container).offset().top,r=t.start.lineNumber,o=t.start.column,i=this.getLineValue(r),a=this.getWrapLimit()-5,l=i.length>a,s=n-(window.pageYOffset||0),c=d=>this.editor.renderer.textToScreenCoordinates(d-1,o).pageY-s,u=c(r);if(u>=0){const{bottom:d}=this.editor.container.getBoundingClientRect();if(u>d-s){this.setActionsBar(0,"bottom");return}let b=0;if(l){const x=Rt(this.editor.container.querySelector("textArea")),O=this.getLineValue(r).length<a;if(x&&O)b+=this.getLineValue(r).length*x.height();else{if(r>1){this.setActionsBar(c(r-1));return}this.setActionsBar(c(r+1));return}}this.setActionsBar(u+b);return}if(this.editor.renderer.textToScreenCoordinates(t.end.lineNumber,t.end.column).pageY-n>=0){this.setActionsBar(0);return}}}registerAutocompleter(t){lx.setCompleters([{identifierRegexps:[/[a-zA-Z_0-9\.\$\-\u00A2-\uFFFF]/],getCompletions:(n,r,o)=>{const i={lineNumber:n.row+1,column:n.column+1};t(i,r,o)}}])}destroy(){this.editor.destroy()}}(Ua.exports==null?{}:Ua.exports).default||Ua.exports,(Ua.exports==null?{}:Ua.exports).getCompletions;const W4=Qe.acequire("ace/lib/oop"),U4=Qe.acequire("ace/mode/json_highlight_rules").JsonHighlightRules;function Ep(){this.$rules={},ix(this,"start"),this.$rules.start.unshift({token:"warning",regex:"#!.*$"},{token:"comment",regex:"#.*$"}),this.constructor===Ep&&this.normalizeRules()}W4.inherits(Ep,U4);const G4=Qe.acequire("ace/lib/oop"),K4=Qe.acequire("ace/mode/json").Mode,X4=Qe.acequire("ace/mode/matching_brace_outdent").MatchingBraceOutdent,Y4=Qe.acequire("ace/mode/behaviour/cstyle").CstyleBehaviour,J4=Qe.acequire("ace/mode/folding/cstyle").FoldMode;Qe.acequire("ace/worker/worker_client");const Q4=Qe.acequire("ace/tokenizer").Tokenizer;function Op(){this.$tokenizer=new Q4(new Ep().getRules()),this.$outdent=new X4,this.$behaviour=new Y4,this.foldingRules=new J4}G4.inherits(Op,K4),function(){this.createWorker=function(){return null},this.$id="sense/mode/input"}.call(Op.prototype);function Z4(e){const t=Qe.acequire("ace/ace").edit(e),n=new Op;return t.$blockScrolling=1/0,t.resize=_b(t),t.update=(r,o,i)=>{typeof o=="function"&&(i=o,o=void 0);const a=t.getSession();a.setMode(r?o||n:"ace/mode/text"),a.setValue(r),typeof i=="function"&&setTimeout(i)},t.append=(r,o,i)=>{typeof o=="function"&&(i=o,o=!0),ye.isUndefined(o)&&(o=!0);const a=t.getSession(),l=a.getLength();o&&t.moveCursorTo(Math.max(0,l-1),0),a.insert({row:l,column:0},`
276
- `+r),t.moveCursorTo(l+1,0),typeof i=="function"&&setTimeout(i)},function(o){o.setMode("ace/mode/text"),o.setFoldStyle("markbeginend"),o.setTabSize(2),o.setUseWrapMode(!0)}(t.getSession()),t.setShowPrintMargin(!1),t.setReadOnly(!0),t}const ez=({value:e=[],onChange:t})=>{const[n,r]=A.useState(!1),[o,i]=A.useState(""),a=u=>{i(u.target.value)},l=()=>{r(!0)},s=A.useCallback(u=>{if(u.target.value.length==0)return ib.warning(he.jsx(It.FormattedMessage,{id:"command.message.invalid.tag"}));t&&t([...e||[],u.target.value]),r(!1),i("")},[e,t]),c=A.useCallback(u=>{const f=[...e];f.splice(u,1),t&&t(f)},[e,t]);return he.jsxs("div",{children:[e.map((u,f)=>he.jsx(yl,{closable:!0,style:{padding:"0 5px",fontSize:14,margin:"5px 10px 5px 0"},onClose:()=>c(f),children:u},f)),n&&he.jsx(Po,{value:o,onChange:a,style:{width:100},onBlur:s,onPressEnter:s}),!n&&he.jsxs(yl,{onClick:l,style:{padding:"0 5px",fontSize:14},children:[he.jsx(ds,{})," ",he.jsx(It.FormattedMessage,{id:"command.btn.newtag"})]})]})},tz=e=>{const[t]=Bn.useForm(),n=()=>Et(this,null,function*(){try{const r=yield t.validateFields();e.onConfirm(r)}catch(r){console.error(r)}});return he.jsx(qn,{title:he.jsx(It.FormattedMessage,{id:"command.manage.save.title"}),open:!0,onCancel:e.onClose,onOk:n,zIndex:1003,cancelText:he.jsx(It.FormattedMessage,{id:"form.button.cancel"}),okText:he.jsx(It.FormattedMessage,{id:"form.button.save"}),children:he.jsxs(Bn,{layout:"vertical",children:[he.jsx(Bn.Item,{name:"title",label:he.jsx(It.FormattedMessage,{id:"command.table.field.name"}),rules:[{required:!0,message:"请输入标题"}],children:he.jsx(Po,{})}),he.jsx(Bn.Item,{name:"tag",label:he.jsx(It.FormattedMessage,{id:"command.table.field.tag"}),children:he.jsx(ez,{})})]})})};class nz extends A.Component{constructor(t){super(t),this.mouseEnter=()=>{this.state.isPopoverOpen||this.props.getCurl().then(n=>{this.setState({curlCode:n})})},this.onButtonClick=()=>{this.setState(n=>({isPopoverOpen:!n.isPopoverOpen}))},this.closePopover=()=>{this.setState({isPopoverOpen:!1})},this.openDocs=()=>Et(this,null,function*(){this.closePopover();const n=yield this.props.getDocumentation();n&&window.open(n,"_blank")}),this.autoIndent=n=>{this.closePopover(),this.props.autoIndent(n)},this.saveAsCommonCommand=()=>{this.setState({isPopoverOpen:!1,modalVisible:!0})},this.handleClose=()=>{this.setState({modalVisible:!1})},this.handleConfirm=n=>Et(this,null,function*(){var a,l;const r=yield this.props.saveAsCommonCommand(),o=Bt(Me({},n),{requests:r}),i=yield(a=yield DA(o))==null?void 0:a.json();i.error?Ia.error({message:((l=i.error)==null?void 0:l.reason)||i.error}):(this.handleClose(),Ia.success({message:he.jsx(It.FormattedMessage,{id:"app.message.save.success"})}),uN(i))}),this.state={curlCode:"",isPopoverOpen:!1,modalVisible:!1}}copyAsCurl(){return Et(this,null,function*(){try{yield this.copyText(this.state.curlCode),Ia.open({message:"Request copied as cURL",placement:"bottomRight"})}catch(t){console.error(t),Ia.error({message:"Could not copy request as cURL",placement:"bottomRight"})}})}copyText(t){return Et(this,null,function*(){var n;if((n=window.navigator)!=null&&n.clipboard){yield window.navigator.clipboard.writeText(t);return}throw new Error("Could not copy to clipboard!")})}render(){var t,n;return he.jsxs("span",{onMouseEnter:this.mouseEnter,children:[he.jsx(wd,{id:"contextMenu",open:this.state.isPopoverOpen,placement:"bottomLeft",content:he.jsxs("div",{children:[(t=window.navigator)!=null&&t.clipboard?he.jsx("div",{children:he.jsx(gr,{type:"text",id:"ConCopyAsCurl",disabled:!((n=window.navigator)!=null&&n.clipboard),onClick:()=>{this.closePopover(),this.copyAsCurl()},children:he.jsx(It.FormattedMessage,{id:"console.menu.copy_as_curl"})},"Copy as cURL")}):null,he.jsx("div",{children:he.jsx(gr,{type:"text",onClick:this.autoIndent,children:he.jsx(It.FormattedMessage,{id:"console.menu.auto_indent"})},"Auto indent")}),he.jsx("div",{children:he.jsx(gr,{type:"text",onClick:this.saveAsCommonCommand,children:he.jsx(It.FormattedMessage,{id:"console.menu.save_as_command"})},"Save as common command")})]}),children:he.jsx("button",{className:"euiButtonIcon--primary",style:{color:"#0061a6",border:"none"},onClick:this.onButtonClick,children:he.jsx(Ph,{})})}),this.state.modalVisible&&he.jsx(tz,{onClose:this.handleClose,onConfirm:this.handleConfirm})]})}}function rz(e,t,n){const r=e.getLineValue(t.lineNumber),o=Me({},Ql(e,{column:r.length+1,lineNumber:t.lineNumber},n,!0)),i=Jl(o.method);return Mi(o.urlTokenPath,o,e,!0,i),o.endpoint}function oz(e,t){return Et(this,null,function*(){t.preventDefault(),yield e.autoIndent(),e.getCoreEditor().getContainer().focus()})}function iz(e,t){return e.getRequestsInRange().then(n=>{if(!n||n.length===0)return null;const r=n[0].range.end;r.column=r.column-1;const o=rz(e.getCoreEditor(),r,e.parser);return o&&o.documentation&&o.documentation.indexOf("http")!==-1?o.documentation.replace("/master/",`/${t}/`).replace("/current/",`/${t}/`):null})}const tc=(e,t)=>()=>{const n=A.useContext(e);if(!n)throw new Error(`${t} should be used inside of ${t}Provider!`);return n};var $p={};(function(e){var t=bt&&bt.__spreadArray||function(S,C,T){if(T||arguments.length===2)for(var M=0,N=C.length,R;M<N;M++)(R||!(M in C))&&(R||(R=Array.prototype.slice.call(C,0,M)),R[M]=C[M]);return S.concat(R||Array.prototype.slice.call(C))};Object.defineProperty(e,"__esModule",{value:!0}),e.dual=e.getEndomorphismMonoid=e.SK=e.hole=e.constVoid=e.constUndefined=e.constNull=e.constFalse=e.constTrue=e.unsafeCoerce=e.apply=e.getRing=e.getSemiring=e.getMonoid=e.getSemigroup=e.getBooleanAlgebra=void 0,e.identity=s,e.constant=c,e.flip=u,e.flow=f,e.tuple=d,e.increment=b,e.decrement=x,e.absurd=O,e.tupled=h,e.untupled=y,e.pipe=p,e.not=g;var n=function(S){return function(){return{meet:function(C,T){return function(M){return S.meet(C(M),T(M))}},join:function(C,T){return function(M){return S.join(C(M),T(M))}},zero:function(){return S.zero},one:function(){return S.one},implies:function(C,T){return function(M){return S.implies(C(M),T(M))}},not:function(C){return function(T){return S.not(C(T))}}}}};e.getBooleanAlgebra=n;var r=function(S){return function(){return{concat:function(C,T){return function(M){return S.concat(C(M),T(M))}}}}};e.getSemigroup=r;var o=function(S){var C=(0,e.getSemigroup)(S);return function(){return{concat:C().concat,empty:function(){return S.empty}}}};e.getMonoid=o;var i=function(S){return{add:function(C,T){return function(M){return S.add(C(M),T(M))}},zero:function(){return S.zero},mul:function(C,T){return function(M){return S.mul(C(M),T(M))}},one:function(){return S.one}}};e.getSemiring=i;var a=function(S){var C=(0,e.getSemiring)(S);return{add:C.add,mul:C.mul,one:C.one,zero:C.zero,sub:function(T,M){return function(N){return S.sub(T(N),M(N))}}}};e.getRing=a;var l=function(S){return function(C){return C(S)}};e.apply=l;function s(S){return S}e.unsafeCoerce=s;function c(S){return function(){return S}}e.constTrue=c(!0),e.constFalse=c(!1),e.constNull=c(null),e.constUndefined=c(void 0),e.constVoid=e.constUndefined;function u(S){return function(){for(var C=[],T=0;T<arguments.length;T++)C[T]=arguments[T];return C.length>1?S(C[1],C[0]):function(M){return S(M)(C[0])}}}function f(S,C,T,M,N,R,D,V,Z){switch(arguments.length){case 1:return S;case 2:return function(){return C(S.apply(this,arguments))};case 3:return function(){return T(C(S.apply(this,arguments)))};case 4:return function(){return M(T(C(S.apply(this,arguments))))};case 5:return function(){return N(M(T(C(S.apply(this,arguments)))))};case 6:return function(){return R(N(M(T(C(S.apply(this,arguments))))))};case 7:return function(){return D(R(N(M(T(C(S.apply(this,arguments)))))))};case 8:return function(){return V(D(R(N(M(T(C(S.apply(this,arguments))))))))};case 9:return function(){return Z(V(D(R(N(M(T(C(S.apply(this,arguments)))))))))}}}function d(){for(var S=[],C=0;C<arguments.length;C++)S[C]=arguments[C];return S}function b(S){return S+1}function x(S){return S-1}function O(S){throw new Error("Called `absurd` function which should be uncallable")}function h(S){return function(C){return S.apply(void 0,C)}}function y(S){return function(){for(var C=[],T=0;T<arguments.length;T++)C[T]=arguments[T];return S(C)}}function p(S,C,T,M,N,R,D,V,Z){switch(arguments.length){case 1:return S;case 2:return C(S);case 3:return T(C(S));case 4:return M(T(C(S)));case 5:return N(M(T(C(S))));case 6:return R(N(M(T(C(S)))));case 7:return D(R(N(M(T(C(S))))));case 8:return V(D(R(N(M(T(C(S)))))));case 9:return Z(V(D(R(N(M(T(C(S))))))));default:{for(var J=arguments[0],I=1;I<arguments.length;I++)J=arguments[I](J);return J}}}e.hole=O;var m=function(S,C){return C};e.SK=m;function g(S){return function(C){return!S(C)}}var w=function(){return{concat:function(S,C){return f(S,C)},empty:s}};e.getEndomorphismMonoid=w;var E=function(S,C){var T=typeof S=="number"?function(M){return M.length>=S}:S;return function(){var M=Array.from(arguments);return T(arguments)?C.apply(this,M):function(N){return C.apply(void 0,t([N],M,!1))}}};e.dual=E})($p);const Tp={data:null,type:"unknown"},cx=es.produce({requestInFlight:!1,lastResult:Tp},$p.identity),az=(e,t)=>es.produce(e,n=>{if(t.type==="sendRequest"){n.requestInFlight=!0,n.lastResult=Tp;return}if(t.type==="requestSuccess"){n.requestInFlight=!1,n.lastResult=Me({},t.payload);return}if(t.type==="requestFail"){n.requestInFlight=!1,n.lastResult=Bt(Me({},Tp),{error:t.payload});return}}),ux=A.createContext(cx),dx=A.createContext(()=>{});function sz({children:e}){const[t,n]=A.useReducer(az,cx);return he.jsx(ux.Provider,{value:t,children:he.jsx(dx.Provider,{value:n,children:e})})}const fx=tc(ux,"RequestReadContext"),lz=tc(dx,"RequestActionContext"),px=A.createContext(null);function cz({children:e,value:t}){return he.jsx(px.Provider,{value:t,children:e})}const Pp=()=>{const e=A.useContext(px);if(e==null)throw new Error("useServicesContext must be used inside the ServicesContextProvider.");return e},hx=es.produce({ready:!1,currentTextObject:null,sensorEditor:null},$p.identity),uz=(e,t)=>es.produce(e,n=>{if(t.type==="setInputEditor"){t.payload&&(n.ready=!0,n.sensorEditor=t.payload);return}if(t.type==="setCurrentTextObject"){n.currentTextObject=t.payload;return}return n}),mx=A.createContext(hx),gx=A.createContext(()=>{});function dz({children:e}){const[t,n]=A.useReducer(uz,hx,r=>Me({},r));return he.jsx(mx.Provider,{value:t,children:he.jsx(gx.Provider,{value:n,children:e})})}const vx=tc(mx,"EditorReadContext"),fz=tc(gx,"EditorActionContext");function pz(e){const{requests:t}=e._source;return t.map(r=>{const{method:o,path:i,body:a}=r;return["LOAD","FROM","SELECT"].includes((o||"").toUpperCase())?a:`${o} ${i}
277
- ${a}`}).join(`
278
- `)}const _x=e=>{const t=lz(),{clusterID:n}=Pp(),{sensorEditor:r}=vx();return A.useCallback(()=>Et(this,null,function*(){let o="";try{if(!r)return;const i=yield r.getRequestsInRange();if(!i.length){console.info("No request selected. Select a request by placing the cursor inside it.");return}for(let l=0;l<i.length;l++){const{url:s,method:c,data:u}=i[l];switch(c==null?void 0:c.toUpperCase()){case"LOAD":o="LOAD";const f=u[0]?u[0].slice(4).trim():s,d=fN(f),b=r.getCoreEditor().getCurrentPosition().lineNumber,x=yield r.getRequestRange(b),O=pz(d);yield r.getCoreEditor().replaceRange(x,O);continue;case"CONFIG":const h=s;let y=0;if(u&&u.length>0){const T=u[0].split(" ");if(T.length>=3&&(y=parseInt(T[2]),isNaN(y))){t({type:"requestSuccess",payload:{data:[{success:!1,error:"wrong config value: "+T[2]}]}});continue}}h=="MaxTokenCount"&&localStorage.setItem("editor:"+h,y+""),t({type:"requestSuccess",payload:{data:[{success:!0}]}});continue;case"FROM":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let p=i[l].data[0]||"";const m=p.search(/\s+(select)\s+/i);if(m==-1){const C=Error("invalid FROM request");throw C.name="FRONT_ERROR",C}const g=p.slice(0,m);p=p.slice(m);const w=p.search(/\s+(order|where|limit)\s+/i);w>-1?p=p.slice(0,w)+" "+g+p.slice(w):p=p+" "+g;let E={query:p.trim()};i[l].data[0]=JSON.stringify(E);break;case"SELECT":i[l].url="_sql",i[l].method="POST",i[l].rawRequest=i[l].data[0];let S={query:i[l].data[0]};i[l].data[0]=JSON.stringify(S);break}}t({type:"sendRequest",payload:void 0});const a=yield e({requests:i,clusterID:n});t({type:"requestSuccess",payload:{data:a}})}catch(i){if(o==="LOAD")return;if(i){let a={data:[i]};i.name==="FRONT_ERROR"&&(a={data:[{response:{value:(i==null?void 0:i.message)||i,contentType:"plain/text"}}]}),t({type:"requestSuccess",payload:a})}else t({type:"requestFail",payload:void 0})}}),[r,t,e,n])},hz=()=>{const e=fz();return A.useCallback(t=>{e({type:"setInputEditor",payload:t})},[e])},mz=500,gz=()=>{const e=A.useRef(Promise.resolve()),{services:{objectStorageClient:t}}=Pp(),{currentTextObject:n}=vx();return A.useCallback(ye.throttle(r=>{const{current:o}=e;n&&o.finally(()=>t.text.update(Bt(Me({},n),{text:r,updatedAt:Date.now()})))},mz,{trailing:!0}),[t,n])};function yx(e,t){e.setStyles?e.setStyles({wrapLines:t.wrapMode,fontSize:t.fontSize+"px"}):(e.getSession().setUseWrapMode(t.wrapMode),e.container.style.fontSize=t.fontSize+"px")}function Rp(e){return[e.clientWidth,e.clientHeight]}class vz extends cf.EventEmitter{constructor(t,n={}){super(),this.destroyed=!1,this.expectedSize=null,this.el=t,this.observer=new Za(()=>{if(this.expectedSize){const r=ye.isEqual(Rp(t),this.expectedSize);if(this.expectedSize=null,r)return}this.emit("resize")}),n.disabled||this.enable()}enable(){this.destroyed||(this.expectedSize=Rp(this.el),this.observer.observe(this.el))}modifySizeWithoutTriggeringResize(t){try{t()}finally{this.el&&(this.expectedSize=Rp(this.el))}}destroy(){this.destroyed||(this.destroyed=!0,this.observer.disconnect(),this.observer=null,this.expectedSize=null,this.el=null,this.removeAllListeners())}}function bx(e,...t){const n=new vz(e);return n.on("resize",()=>t.forEach(r=>{r.getCoreEditor?r.getCoreEditor().resize():r.resize(),r.updateActionsBar&&r.updateActionsBar()})),()=>n.destroy()}const _z={position:"absolute",top:"0",left:"0",bottom:"0",right:"0"},yz=e=>{const t=gz(),{saveCurrentTextObjectRef:n,sendRequestToES:r}=e,o=_x(r);return A.useEffect(()=>{n.current=t},[n,t]),he.jsx(Jr,{title:he.jsx(It.FormattedMessage,{id:"console.SendRequestButton.ToolTip"}),children:he.jsx("button",{"data-test-subj":"sendRequestButton","aria-label":"Click to send request",className:"conApp__editorActionButton conApp__editorActionButton--success",onClick:o,children:he.jsx(Oh,{})})})},bz=`GET _search
279
- {
280
- "query": {
281
- "match_all": {}
282
- }
283
- }`,wz=({selectedCluster:e,initialText:t,saveEditorContent:n,paneKey:r,sendRequestToES:o})=>{var y;const{id:i,endpoint:a}=e,l=A.useRef(null),s=A.useRef(null),c=A.useRef(null),u=hz(),f=A.useRef(null),d=A.useRef(null),b=A.useRef(()=>{}),x=A.useRef(()=>{});b.current=_x(o);const{services:{settings:O}}=Pp();A.useEffect(()=>{console.log(55555,l.current,l.current,Qe);const p=Qe.edit(l.current);console.log(666666,p),d.current=p;const m=new H4(p,s.current);p.commands.addCommand({name:"exec_request",bindKey:{win:"Ctrl-enter",mac:"Command-enter|Ctrl-enter"},exec:()=>{b.current(),p.execCommand("iSearch")}});const g=new BA(m);c.current=g,u(g),g.paneKey=r,g.update(t||bz),yx(g.getCoreEditor(),{fontSize:12,wrapMode:!0,autocomplete:{fields:!1,indices:!1,templates:!1},polling:!1,tripleQuotes:!1});function w(){let C;g.getCoreEditor().on("change",()=>{C&&clearTimeout(C),C=window.setTimeout(E,500)})}function E(){try{const C=g.getCoreEditor().getValue();console.log(121212,C),n(C)}catch(C){console.error(C)}}const S=bx(l.current,g);return w(),()=>{S(),c.current&&c.current.getCoreEditor().destroy()}},[t,r,n,u]),A.useEffect(()=>{i&&(Sb(O,O.getAutocomplete(),i),d.current&&(d.current.clusterID=i)&&(d.current.clusterInfo=e))},[i]);const h=()=>Et(this,null,function*(){const p=c.current;if(p==null){console.warn("editor is null");return}const m=yield p.getRequestsInRange();return m==null?void 0:m.map(w=>({method:w.method,path:w.url,body:(w.data||[]).join(`
284
- `)}))});return he.jsx("div",{style:Bt(Me({},_z),{height:"100%"}),"data-test-subj":"console-application",className:"conApp",children:he.jsxs("div",{className:"conApp__editor",children:[he.jsx("ul",{className:"conApp__autoComplete",id:"autocomplete"}),he.jsxs("div",{className:"conApp__editorActions",id:"ConAppEditorActions",ref:s,children:[he.jsx(yz,{saveCurrentTextObjectRef:x,sendRequestToES:o}),he.jsx(nz,{getCurl:()=>c.current.getRequestsAsCURL(a),getDocumentation:()=>iz(c.current,""),autoIndent:p=>{oz(c.current,p)},saveAsCommonCommand:h,ref:f})]}),he.jsx("div",{ref:l,id:`Editor_${(y=c.current)==null?void 0:y.paneKey}`,className:"conApp__editorContent","data-test-subj":"request-editor",onClick:()=>{var p,m;(p=f.current)==null||p.closePopover(),(m=d.current)==null||m.focus()}})]})})};ace.define("ace/mode/yaml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){var r=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"list.markup",regex:/^(?:-{3}|\.{3})\s*(?=#|$)/},{token:"list.markup",regex:/^\s*[\-?](?:$|\s)/},{token:"constant",regex:"!![\\w//]+"},{token:"constant.language",regex:"[&\\*][a-zA-Z0-9-_]+"},{token:["meta.tag","keyword"],regex:/^(\s*\w.*?)(:(?=\s|$))/},{token:["meta.tag","keyword"],regex:/(\w+?)(\s*:(?=\s|$))/},{token:"keyword.operator",regex:"<<\\w*:\\w*"},{token:"keyword.operator",regex:"-\\s*(?=[{])"},{token:"string",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},{token:"string",regex:/[|>][-+\d\s]*$/,onMatch:function(a,l,s,c){var u=/^\s*/.exec(c)[0];return s.length<1?s.push(this.next):s[0]="mlString",s.length<2?s.push(u.length):s[1]=u.length,this.token},next:"mlString"},{token:"string",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"constant.numeric",regex:/(\b|[+\-\.])[\d_]+(?:(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)(?=[^\d-\w]|$)/},{token:"constant.numeric",regex:/[+\-]?\.inf\b|NaN\b|0x[\dA-Fa-f_]+|0b[10_]+/},{token:"constant.language.boolean",regex:"\\b(?:true|false|TRUE|FALSE|True|False|yes|no)\\b"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:/[^\s,:\[\]\{\}]+/}],mlString:[{token:"indent",regex:/^\s*$/},{token:"indent",regex:/^\s*/,onMatch:function(a,l,s){var c=s[1];return c>=a.length?(this.next="start",s.splice(0)):this.next="mlString",this.token},next:"mlString"},{token:"string",regex:".+"}]},this.normalizeRules()};r.inherits(i,o),t.YamlHighlightRules=i}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){var r=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(i,a){return/^\s+$/.test(i)?/^\s*\}/.test(a):!1},this.autoOutdent=function(i,a){var l=i.getLine(a),s=l.match(/^(\s*\})/);if(!s)return 0;var c=s[1].length,u=i.findMatchingBracket({row:a,column:c});if(!u||u.row==a)return 0;var f=this.$getIndent(i.getLine(u.row));i.replace(new r(a,0,a,c-1),f)},this.$getIndent=function(i){return i.match(/^\s*/)[0]}}).call(o.prototype),t.MatchingBraceOutdent=o}),ace.define("ace/mode/folding/coffee",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(e,t,n){var r=e("../../lib/oop"),o=e("./fold_mode").FoldMode,i=e("../../range").Range,a=t.FoldMode=function(){};r.inherits(a,o),function(){this.getFoldWidgetRange=function(l,s,c){var u=this.indentationBlock(l,c);if(u)return u;var f=/\S/,d=l.getLine(c),b=d.search(f);if(!(b==-1||d[b]!="#")){for(var x=d.length,O=l.getLength(),h=c,y=c;++c<O;){d=l.getLine(c);var p=d.search(f);if(p!=-1){if(d[p]!="#")break;y=c}}if(y>h){var m=l.getLine(y).length;return new i(h,x,y,m)}}},this.getFoldWidget=function(l,s,c){var u=l.getLine(c),f=u.search(/\S/),d=l.getLine(c+1),b=l.getLine(c-1),x=b.search(/\S/),O=d.search(/\S/);if(f==-1)return l.foldWidgets[c-1]=x!=-1&&x<O?"start":"","";if(x==-1){if(f==O&&u[f]=="#"&&d[f]=="#")return l.foldWidgets[c-1]="",l.foldWidgets[c+1]="","start"}else if(x==f&&u[f]=="#"&&b[f]=="#"&&l.getLine(c-2).search(/\S/)==-1)return l.foldWidgets[c-1]="start",l.foldWidgets[c+1]="","";return x!=-1&&x<f?l.foldWidgets[c-1]="start":l.foldWidgets[c-1]="",f<O?"start":""}}.call(a.prototype)}),ace.define("ace/mode/yaml",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/yaml_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/coffee"],function(e,t,n){var r=e("../lib/oop"),o=e("./text").Mode,i=e("./yaml_highlight_rules").YamlHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,l=e("./folding/coffee").FoldMode,s=function(){this.HighlightRules=i,this.$outdent=new a,this.foldingRules=new l,this.$behaviour=this.$defaultBehaviour};r.inherits(s,o),function(){this.lineCommentStart=["#","//"],this.getNextLineIndent=function(c,u,f){var d=this.$getIndent(u);if(c=="start"){var b=u.match(/^.*[\{\(\[]\s*$/);b&&(d+=f)}return d},this.checkOutdent=function(c,u,f){return this.$outdent.checkOutdent(u,f)},this.autoOutdent=function(c,u,f){this.$outdent.autoOutdent(u,f)},this.$id="ace/mode/yaml"}.call(s.prototype),t.Mode=s});const wx=e=>!!(e&&e.indexOf("application/json")>=0);function xz(e){return e?wx(e)?"ace/mode/json":e.indexOf("application/yaml")>=0?"ace/mode/yaml":"ace/mode/text":"ace/mode/text"}function Sz({clusterID:e}){const t=A.useRef(null),n=A.useRef(null),r="ConAppOutputTextarea",{lastResult:{data:o,error:i}}=fx();return A.useEffect(()=>{var a;(a=n.current)==null||a.setValue("")},[e]),A.useEffect(()=>{n.current=Z4(t.current);const a=t.current.querySelector("textarea");a.setAttribute("id",r),a.setAttribute("readonly","true"),yx(n.current,{fontSize:12,wrapMode:!0});const l=bx(t.current,n.current);return()=>{l(),n.current.destroy()}},[]),A.useEffect(()=>{var l;const a=n.current;if(o){if(!o.length){a.update(JSON.stringify(o,null,2),"ace/mode/json");return}a.update(o.map(s=>{const{value:c,contentType:u}=s.response;if(wx(u)){let f="",d=c;if(d=="")return"";try{let b="";if(d[0]=="#"){const x=d.indexOf(`
285
- `);f=d.slice(0,x),d=d.slice(x),b=f+`
286
- `+JSON.stringify(JSON.parse(d),null,2)}else b=JSON.stringify(JSON.parse(d),null,2);return b}catch(b){console.error(b)}}return c}).join(`
287
- `))}else if(i){const s=xz((l=i.response)==null?void 0:l.contentType);if(s=="ace/mode/json"){a.update(JSON.stringify(JSON.parse(i.response.value),null,2),s);return}a.update(i.response.value,s)}else a.update("")},[o,i]),he.jsx("div",{ref:t,className:"conApp__outputContent","data-test-subj":"response-editor",children:he.jsx("div",{id:"ConAppOutput"})})}class jp{constructor(){this.panels=[]}registerPanel(t){this.panels.push(t)}getPanels(){return this.panels}}const xx=A.createContext({registry:new jp});function Sx({children:e,registry:t}){return he.jsx(xx.Provider,{value:{registry:t},children:e})}const Cz=()=>{const e=A.useContext(xx);if(e===void 0)throw new Error("usePanelContext must be used within a <PanelContextProvider />");return e};function Cx({children:e,className:t,initialWidth:n=100,style:r={}}){const[o,i]=A.useState(`${n}%`),{registry:a}=Cz(),l=A.useRef(null);return A.useEffect(()=>{a.registerPanel({width:n,setWidth(s){i(s+"%"),this.width=s},getWidth(){return l.current.getBoundingClientRect().width}})},[n,a]),he.jsx("div",{className:t,ref:l,style:Bt(Me({},r),{width:o,display:"flex"}),children:e})}function Ez(e){return he.jsx("button",Bt(Me({},e),{children:he.jsx(Eh,{})}))}const Ex={isDragging:!1,currentResizerPos:-1},Ox=(e,t)=>e/t*100,Oz=({children:e,className:t,onPanelWidthChange:n,resizerClassName:r})=>{const o=A.Children.toArray(e),[i,a]=o,l=A.useRef(new jp),s=A.useRef(null),[c,u]=A.useState(Ex),f=()=>s.current.getBoundingClientRect().width,d=A.useCallback(O=>{u(Bt(Me({},c),{isDragging:!0,currentResizerPos:O.clientX}))},[c]),b=A.useCallback(O=>{const{key:h}=O;if(h==="ArrowLeft"||h==="ArrowRight"){O.preventDefault();const{current:y}=l,[p,m]=y.getPanels(),g=p.width-(h==="ArrowLeft"?1:-1),w=m.width-(h==="ArrowRight"?1:-1);p.setWidth(g),m.setWidth(w),n&&n([g,w])}},[n]);A.useEffect(()=>{var O;((O=oe==null?void 0:oe.env)==null?void 0:O.NODE_ENV)!=="production"&&o.length>2&&console.warn("[Split Panels Container] Detected more than two children; ignoring additional children.")},[o.length]);const x=[i,he.jsx(Ez,{className:r,onKeyDown:b,onMouseDown:d},"resizer"),a];return he.jsx(Sx,{registry:l.current,children:he.jsx("div",{className:t,ref:s,style:{display:"flex",height:"100%",width:"100%"},onMouseMove:O=>{if(c.isDragging){const{clientX:h}=O,{current:y}=l,[p,m]=y.getPanels(),g=h-c.currentResizerPos,w=f(),E=Ox(p.getWidth()+g,w),S=Ox(m.getWidth()-g,w);p.setWidth(E),m.setWidth(S),n&&n([E,S]),u(Bt(Me({},c),{currentResizerPos:h}))}},onMouseUp:()=>{u(Ex)},children:x})})},$z=100;class Tz{constructor(t){this.storage=t,this.changeEmitter=new $S.BehaviorSubject(this.getHistory()||[])}getHistoryKeys(){return this.storage.keys().filter(t=>t.indexOf("hist_elem")===0).sort().reverse()}getHistory(){return this.getHistoryKeys().map(t=>this.storage.get(t))}change(t){const n=this.changeEmitter.subscribe(t);return()=>n.unsubscribe()}addToHistory(t,n,r){const o=this.getHistoryKeys();o.splice(0,$z),o.forEach(l=>{this.storage.delete(l)});const i=new Date().getTime(),a="hist_elem_"+i;this.storage.set(a,{time:i,endpoint:t,method:n,data:r}),this.changeEmitter.next(this.getHistory())}updateCurrentState(t){const n=new Date().getTime();this.storage.set("editor_state",{time:n,content:t})}getLegacySavedEditorState(){const t=this.storage.get("editor_state");if(!t)return;const{time:n,content:r}=t;return{time:n,content:r}}deleteLegacySavedEditorState(){this.storage.delete("editor_state")}clearHistory(){this.getHistoryKeys().forEach(t=>this.storage.delete(t))}}function Pz(e){return new Tz(e.storage)}class Rz{constructor(t,n){this.engine=t,this.prefix=n}encode(t){return JSON.stringify(t)}decode(t){if(typeof t=="string")return JSON.parse(t)}encodeKey(t){return`${this.prefix}${t}`}decodeKey(t){if(ye.startsWith(t,this.prefix))return`${t.slice(this.prefix.length)}`}set(t,n){return this.engine.setItem(this.encodeKey(t),this.encode(n)),n}has(t){return this.engine.getItem(this.encodeKey(t))!=null}get(t,n){return this.has(t)?this.decode(this.engine.getItem(this.encodeKey(t))):n}delete(t){return this.engine.removeItem(this.encodeKey(t))}keys(){return ye.transform(ye.keys(this.engine),(t,n)=>{const r=this.decodeKey(n);r!=null&&t.push(r)})}}function jz(e){return new Rz(e.engine,e.prefix)}class Mz{constructor(t){this.storage=t}getFontSize(){return this.storage.get("font_size",12)}setFontSize(t){return this.storage.set("font_size",t),!0}getWrapMode(){return this.storage.get("wrap_mode",!0)}setWrapMode(t){return this.storage.set("wrap_mode",t),!0}setTripleQuotes(t){return this.storage.set("triple_quotes",t),!0}getTripleQuotes(){return this.storage.get("triple_quotes",!0)}getAutocomplete(){return this.storage.get("autocomplete_settings",{fields:!0,indices:!0,templates:!0,commands:!0})}setAutocomplete(t){return this.storage.set("autocomplete_settings",t),!0}getPolling(){return this.storage.get("console_polling",!0)}setPolling(t){return this.storage.set("console_polling",t),!0}toJSON(){return{autocomplete:this.getAutocomplete(),wrapMode:this.getWrapMode(),tripleQuotes:this.getTripleQuotes(),fontSize:parseFloat(this.getFontSize()),polling:!!this.getPolling()}}updateSettings({fontSize:t,wrapMode:n,tripleQuotes:r,autocomplete:o,polling:i}){this.setFontSize(t),this.setWrapMode(n),this.setTripleQuotes(r),this.setAutocomplete(o),this.setPolling(i)}}function Iz({storage:e}){return new Mz(e)}const Az="text-object";class Nz{constructor(t,n){this.client=t,this.prefix=`console_local_${n}`}create(t){return Et(this,null,function*(){const n=RS.v4(),r=Me({id:n},t);return this.client.set(`${this.prefix}_${n}`,r),r})}update(t){return Et(this,null,function*(){this.client.set(`${this.prefix}_${t.id}`,t)})}findAll(){return Et(this,null,function*(){const t=this.client.keys().filter(r=>r.includes(this.prefix)),n=[];for(const r of t)n.push(this.client.get(r));return n})}}const kz=e=>({text:new Nz(e,Az)}),Ga="#00bb1b",$x="#fcca00",Tx="#ff4d4f",Lz="#bbbbbb",Mp="#d8d8d8",Px={green:Ga,yellow:$x,red:Tx,available:Ga,unavailable:Mp,online:Ga,offline:Mp,active:$x,normal:Ga,acknowledged:Ga,error:Tx,gray:Lz};function Fz(e){return Px[e]}const Dz=({status:e,size:t=14})=>{if(e=="unavailable"||!Px[e])return he.jsx("span",{children:he.jsx(vh,{style:{fontSize:14,color:Mp}})});const n=Fz(e);return he.jsx("div",{style:{background:n,height:t,width:t,borderRadius:t,display:"inline-block",verticalAlign:"text-bottom"}})},Bz=e=>e<=199?"default":e<=299?"secondary":e<=399?"primary":e<=499?"warning":"danger",Rx=({requestInProgress:e,requestResult:t,selectedCluster:n,left:r})=>{var a;let o=null;const i=he.jsxs("div",{className:"base-info",children:[he.jsxs("div",{className:"info-item health",children:[he.jsxs("span",{children:[" ",he.jsx(It.FormattedMessage,{id:"console.cluster.status"}),":"]}),he.jsx("i",{style:{position:"absolute",top:1,right:0},children:he.jsx(Dz,{status:(a=n==null?void 0:n.labels)==null?void 0:a.health_status})})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(It.FormattedMessage,{id:"console.cluster.endpoint"}),":"]}),he.jsx($o,{color:"default",children:n==null?void 0:n.host})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(It.FormattedMessage,{id:"console.cluster.version"}),":"]}),he.jsx($o,{color:"default",children:n==null?void 0:n.version})]})]});if(e)o=he.jsx($o,{color:"hollow",children:"Request in progress"});else if(t){const{endpoint:l,method:s,statusCode:c,statusText:u,timeElapsedMs:f}=t;o=he.jsx(he.Fragment,{children:he.jsxs("div",{className:"status_info",children:[he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(It.FormattedMessage,{id:"console.response.status"}),":"]}),he.jsx(Jr,{placement:"top",title:he.jsx("span",{children:`${s} ${l.startsWith("/")?l:"/"+l}`}),children:he.jsx("span",{children:he.jsxs($o,{color:Bz(c),children:[c," - ",u]})})})]}),he.jsxs("div",{className:"info-item",children:[he.jsxs("span",{children:[he.jsx(It.FormattedMessage,{id:"console.response.time_elapsed"}),":"]}),he.jsx(Jr,{placement:"top",title:he.jsx("span",{children:"Time Elapsed"}),children:he.jsx("span",{children:he.jsxs($o,{color:"default",children:[f," ","ms"]})})})]})]})})}return he.jsx("div",{className:"request-status-bar",children:r?he.jsx("div",{className:"bar-item",children:i}):he.jsx("div",{className:"bar-item",children:o})})},jx=50,Mx="0px",zz=({selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i})=>{var u,f,d,b,x,O,h,y,p,m,g,w;const{requestInFlight:a,lastResult:{data:l,error:s}}=fx(),c=(u=l==null?void 0:l[l.length-1])!=null?u:s;return he.jsx("div",{className:"Console",style:{height:"100%"},children:he.jsxs(Oz,{resizerClassName:"resizer",children:[he.jsxs(Cx,{style:{height:"calc(100%)",position:"relative",minWidth:Mx,paddingBottom:26},initialWidth:jx,children:[he.jsx(wz,{selectedCluster:e,saveEditorContent:t,initialText:n,paneKey:r,isActive:o,sendRequestToES:i}),he.jsx("div",{style:{background:"#fff",position:"absolute",left:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:he.jsx(Rx,{requestInProgress:a,selectedCluster:e,left:!0,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(f=c.response)==null?void 0:f.statusCode,statusText:(d=c.response)==null?void 0:d.statusText,timeElapsedMs:(b=c.response)==null?void 0:b.timeMs,requestHeader:(x=c.request)==null?void 0:x.header,responseHeader:(O=c.response)==null?void 0:O.header}:void 0})})]}),he.jsxs(Cx,{style:{height:"calc(100%)",position:"relative",minWidth:Mx,paddingBottom:26},initialWidth:jx,children:[he.jsx($a,{tabPosition:"right",style:{height:"100%",width:"100%"},size:"small",items:[{key:"result",label:"Result",children:he.jsx("div",{style:{height:"100%"},children:he.jsx(Sz,{clusterID:e==null?void 0:e.id})})},{key:"headers",label:"Headers",children:he.jsx($a,{animated:!1,items:[{key:"1",label:"Request",children:he.jsx(ub,{code:(h=c==null?void 0:c.request)==null?void 0:h.header})},{key:"2",label:"Response",children:he.jsx(ub,{code:(y=c==null?void 0:c.response)==null?void 0:y.header})}]})}]}),he.jsx("div",{style:{background:"#fff",position:"absolute",right:0,bottom:0,width:"100%",height:26,zIndex:997,borderTop:"1px solid #eee"},children:he.jsx(Rx,{requestInProgress:a,selectedCluster:e,requestResult:c&&c.request?{method:c.request.method.toUpperCase(),endpoint:c.request.path,statusCode:(p=c.response)==null?void 0:p.statusCode,statusText:(m=c.response)==null?void 0:m.statusText,timeElapsedMs:(g=c.response)==null?void 0:g.timeMs,requestHeader:c.request.header,responseHeader:(w=c.response)==null?void 0:w.header}:void 0})})]})]})})},Ix=e=>{var a;const t=A.useRef(new jp),{storage:n,history:r,objectStorageClient:o,settings:i}=A.useMemo(()=>{const l=jz({engine:window.localStorage,prefix:"sense:"}),s=Pz({storage:l}),c=kz(l),u=Iz({storage:l});return{storage:l,history:s,objectStorageClient:c,settings:u}},[]);return he.jsx(Sx,{registry:t.current,children:he.jsx(sz,{children:he.jsx(dz,{children:he.jsx(cz,{value:{services:{history:r,storage:n,objectStorageClient:o,settings:i},clusterID:(a=e.selectedCluster)==null?void 0:a.id},children:he.jsx(zz,Me({},e))})})})})},qz=({id:e,index:t,moveTabNode:n,children:r})=>{const o=A.useRef(null),[,i]=wn.useDrop({accept:"DND_NODE",hover:s=>{const c=s.index,u=t;c!==u&&(n(c,u),s.index=u)}}),[{isDragging:a},l]=wn.useDrag({type:"DND_NODE",item:{id:e,index:t},collect:s=>({isDragging:s.isDragging()})});return l(i(o)),he.jsx("div",{ref:o,style:{opacity:a?.5:1},children:r})},Vz=({id:e,index:t,moveTabNode:n,children:r})=>he.jsx(qz,{id:e,index:t,moveTabNode:n,children:r}),Hz=u=>{var f=u,{children:e,onTabNodeMoved:t,tabData:n,editorHeight:r,tabBarExtraContent:o,renderTabBarItemIcon:i,addTab:a,updateTabData:l,sendRequestToES:s}=f,c=CS(f,["children","onTabNodeMoved","tabData","editorHeight","tabBarExtraContent","renderTabBarItemIcon","addTab","updateTabData","sendRequestToES"]);const[d,b]=A.useState(n),[x,O]=A.useState(n.activeKey),[h,y]=A.useState([]),p=A.useCallback(M=>{y(N=>N.map(R=>R.key===x?Bt(Me({},R),{content:M}):R)),b(N=>{const R=Me({},N);return R.panes=R.panes.map(D=>D.key===x?Bt(Me({},D),{content:M}):D),R}),l(d)},[x]);A.useEffect(()=>{var N;const M=(N=n==null?void 0:n.panes)==null?void 0:N.map(R=>({label:R.title,children:he.jsx(Ix,{height:r-35,selectedCluster:R.cluster,paneKey:R.key,saveEditorContent:p,initialText:R.content,isActive:R.key==x,sendRequestToES:s}),key:R.key,closable:R.closable,icon:i&&i(R)}));y(M)},[]);const[m,g]=A.useState(n.order||[]),w=(M,N)=>{const R=[...m];A.Children.forEach(e,Z=>{R.indexOf(Z.key)===-1&&R.push(Z.key)});const D=R.indexOf(M),V=R.indexOf(N);R.splice(D,1),R.splice(V,0,M),g(R),typeof t=="function"&&t(R)},E=(M,N)=>he.jsx("div",{children:he.jsx(N,Bt(Me({},M),{children:R=>he.jsx(Vz,{id:R.key,index:R.key,moveTabNode:w,children:R},R.key)}))}),S=M=>{O(M);const N=Bt(Me({},d),{activeKey:M});b(N),l(N)};A.useEffect(()=>{var R;if(!a)return;const M=[...h];M.unshift({label:a.title,children:he.jsx(Ix,{height:r-35,selectedCluster:a.cluster,paneKey:a.key,saveEditorContent:p,initialText:a.content,isActive:a.key==x,sendRequestToES:s}),key:a.key,closable:a.closable,icon:i&&i(a)}),y(M),O(a.key);const N=Me({},d);(R=N.panes)==null||R.unshift(a),b(N),l(N)},[a]);const C=M=>{var Z;let N=x,R=-1;h==null||h.forEach((J,I)=>{J.key===M&&(R=I-1)});const D=h.filter(J=>J.key!==M);D.length&&N===M&&(R>=0?N=D[R].key:N=D[0].key),y(D),O(N);let V=Me({},d);V.panes=(Z=V.panes)==null?void 0:Z.filter(J=>J.key!==M),b(V),l(V)},T=(M,N)=>{N==="add"||C(M)};return he.jsx(wn.DndProvider,{backend:Qa.HTML5Backend,children:he.jsx($a,Bt(Me({},c),{type:"editable-card",hideAdd:!0,renderTabBar:E,tabBarExtraContent:o,activeKey:x,items:h,onChange:S,onEdit:T}))})},Wz=()=>he.jsx("div",{className:"resize-bar",children:he.jsxs("div",{children:[he.jsx("div",{className:"dash"}),he.jsx("div",{className:"dash"})]})}),Uz="data:image/svg+xml,%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21,2H3A1,1,0,0,0,2,3V21a1,1,0,0,0,1,1H21a1,1,0,0,0,1-1V3A1,1,0,0,0,21,2ZM20,20H4V10H20ZM20,8H4V4H20Z'/%3e%3c/svg%3e",Gz="data:image/svg+xml,%3csvg%20width='512px'%20height='512px'%20viewBox='0%200%20512%20512'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M352,153H40.247a24.028,24.028,0,0,0-24,24V458a24.028,24.028,0,0,0,24,24H352a24.028,24.028,0,0,0,24-24V177A24.028,24.028,0,0,0,352,153Zm-8,32v45.22H48.247V185ZM48.247,450V262.22H344V450Z'%20class='ci-primary'/%3e%3cpath%20fill='var(--ci-primary-color,%20currentColor)'%20d='M472,32H152a24.028,24.028,0,0,0-24,24v65h32V64H464V339.143H408v32h64a24.028,24.028,0,0,0,24-24V56A24.028,24.028,0,0,0,472,32Z'%20class='ci-primary'/%3e%3c/svg%3e",Kz=e=>{const[t,n]=A.useState(e.data||[]);A.useEffect(()=>{o(t)},[t,e.panes]);const r=l=>{const{onItemClick:s}=e;s&&typeof s=="function"&&s(l)},o=(l={})=>{var s,c,u;((s=l.data)==null?void 0:s.length)>0&&((c=e.panes)==null?void 0:c.length)===0&&r((u=l.data[0])==null?void 0:u._source)},{children:i,DataSourceSelector:a}=e;return he.jsx("div",{children:a?he.jsx(a,{width:34,dropdownWidth:400,onChange:l=>r(l),getClusterList:o,children:i}):null})},Xz=(e={})=>he.jsx("img",Bt(Me({height:"14px",width:"14px"},e),{src:Uz})),Yz=(e={})=>he.jsx("img",Bt(Me({height:"14px",width:"14px"},e),{src:Gz}));function Jz(e){const t=parseInt(e);return e.endsWith("vh")?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)*t/100:t}const Qz=({minimize:e=!1,resizeable:t=!1,height:n="50vh",DataSourceSelector:r,tabData:o={activeKey:"cqhngq82sdb12fth1d3g:1721989243672",panes:[{key:"cqhngq82sdb12fth1d3g:1721989243672",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`GET _search
288
- {
289
- "query": {
290
- "match_all": {}
291
- }
292
- }
293
-
294
- GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
295
- `},{key:"cqhngq82sdb12fth1d3g:1721989243622",cluster_id:"cqhngq82sdb12fth1d3g",title:"easysearch",cluster:{cluster_uuid:"Xo_nz7q9RneFTBJIN6FnBA",created:"2024-07-26T18:20:25.867356+08:00",credential_id:"cqhngq82sdb12fth1d40",discovery:{enabled:!0,refresh:{}},distribution:"easysearch",enabled:!0,endpoint:"https://127.0.0.1:9200",host:"127.0.0.1:9200",id:"cqhngq82sdb12fth1d3g",k8s_cluster_id:"",k8s_instance_name:"",k8s_namespace:"",labels:{health_status:"yellow"},location:{provider:"on_premises",region:"default"},metadata_configs:{cluster_settings_check:{enabled:!0,interval:"10s"},health_check:{enabled:!0,interval:"10s"},metadata_refresh:{enabled:!0,interval:"10s"},node_availability_check:{enabled:!0,interval:"10s"}},metric_collection_mode:"agentless",monitor_configs:{cluster_health:{enabled:!0,interval:"10s"},cluster_stats:{enabled:!0,interval:"10s"},index_stats:{enabled:!0,interval:"10s"},node_stats:{enabled:!0,interval:"10s"}},monitored:!0,name:"easysearch",on_premises_type:"",raw_name:"easysearch",region_id:"cqhnfio2sdb12fth1bpg",schema:"https",source:"elastic",tags:["default"],tenant:{domain:"infini",id:"cqhlse02sdb0le811fug",name:"infini"},updated:"2024-07-26T18:20:37.29933+08:00",version:"1.7.1"},closable:!0,content:`111111111GET _search
296
- {
297
- "query": {
298
- "match_all": {}
299
- }
300
- }
301
-
302
- GET /.infini_k8sconfig/_doc/crgldsg2sdbfgjhp5l4g
303
- `}]},renderTabBarItemIcon:i,addTab:a,onMinimizeClick:l=()=>{console.warn("onMinimizeClick function is null")},newTabClick:s=()=>{console.warn("newTabClick function is null")},updateTabData:c=()=>{console.warn("updateTabData function is null")},sendRequestToES:u=()=>{console.warn("sendRequestToES function is null")}})=>{var E;const f=A.useRef(null),[d,b]=A.useState(!1),[x,O]=A.useState(Jz(n));A.useEffect(()=>{const S=()=>{d&&O(f.current.offsetHeight)};return window.addEventListener("resize",S),()=>{window.removeEventListener("resize",S)}},[d]);const h=()=>{f.current!=null&&(d?(f.current.className=f.current.className.replace(" fullscreen",""),w()):f.current.className=f.current.className+" fullscreen"),O(f.current.clientHeight),b(!d)},y=A.useCallback(S=>{l(S),w()},[l]);pN((E=o.activeKey)==null?void 0:E.split(":")[0]);const p={left:he.jsxs(he.Fragment,{children:[he.jsx("div",{className:"tabbar-icon",onClick:y,children:he.jsx(_h,{})}),he.jsx(Kz,{onItemClick:s,width:"300px",panes:o.panes,DataSourceSelector:r,children:he.jsx("div",{className:"tabbar-icon",children:he.jsx(ds,{})})})]}),right:he.jsxs(he.Fragment,{children:[e?he.jsx("div",{className:"tabbar-icon",onClick:y,children:he.jsx(Ch,{})}):null,he.jsx("div",{className:"tabbar-icon",onClick:h,children:d?he.jsx(Yz,{}):he.jsx(Xz,{})})]})},m=A.useMemo(()=>["left","right"].reduce((S,C)=>Bt(Me({},S),{[C]:p[C]}),{}),[]),g=()=>{document.body.style.overflow="hidden"},w=()=>{document.body.style.overflow=""};return he.jsx(zt.Resizable,{defaultSize:{height:x},minHeight:70,maxHeight:"100vh",handleComponent:{top:he.jsx(Wz,{})},onResizeStop:(S,C,T,M)=>{O(x+M.height)},enable:{top:t,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:he.jsx("div",{style:{background:"#fff",height:"100%"},onMouseOver:g,onMouseOut:w,id:"console",ref:f,children:he.jsx(Hz,{editorHeight:x,type:"editable-card",tabBarExtraContent:m,tabData:o,renderTabBarItemIcon:i,addTab:a,updateTabData:c,sendRequestToES:u})})})},Ax={methods:[]},Zz=Object.freeze(Object.defineProperty({__proto__:null,default:{documentation:Ax},documentation:Ax},Symbol.toStringTag,{value:"Module"})),Nx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",type:"",_source:[],_source_excludes:[],_source_includes:[],pipeline:""},methods:["POST","PUT"],patterns:["_bulk","{indices}/_bulk","{indices}/{type}/_bulk"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html"},e3=Object.freeze(Object.defineProperty({__proto__:null,bulk:Nx,default:{bulk:Nx}},Symbol.toStringTag,{value:"Module"})),t3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.aliases":{url_params:{format:"",local:"__flag__",h:[],help:"__flag__",s:[],v:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/aliases","_cat/aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html"}}},Symbol.toStringTag,{value:"Module"})),n3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.allocation":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/allocation","_cat/allocation/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html"}}},Symbol.toStringTag,{value:"Module"})),r3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.count":{url_params:{format:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/count","_cat/count/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html"}}},Symbol.toStringTag,{value:"Module"})),o3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.fielddata":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__",fields:[]},methods:["GET"],patterns:["_cat/fielddata","_cat/fielddata/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html"}}},Symbol.toStringTag,{value:"Module"})),i3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.health":{url_params:{format:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],ts:"__flag__",v:"__flag__"},methods:["GET"],patterns:["_cat/health"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html"}}},Symbol.toStringTag,{value:"Module"})),a3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.help":{url_params:{help:"__flag__",s:[]},methods:["GET"],patterns:["_cat"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html"}}},Symbol.toStringTag,{value:"Module"})),s3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.indices":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],health:["green","yellow","red"],help:"__flag__",pri:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cat/indices","_cat/indices/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html"}}},Symbol.toStringTag,{value:"Module"})),l3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.master":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/master"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html"}}},Symbol.toStringTag,{value:"Module"})),c3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodeattrs":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/nodeattrs"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html"}}},Symbol.toStringTag,{value:"Module"})),u3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.nodes":{url_params:{bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],format:"",full_id:"__flag__",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/nodes"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html"}}},Symbol.toStringTag,{value:"Module"})),d3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.pending_tasks":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html"}}},Symbol.toStringTag,{value:"Module"})),f3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.plugins":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/plugins"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html"}}},Symbol.toStringTag,{value:"Module"})),p3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.recovery":{url_params:{format:"",active_only:"__flag__",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],detailed:"__flag__",h:[],help:"__flag__",index:[],s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/recovery","_cat/recovery/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),h3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.repositories":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/repositories"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html"}}},Symbol.toStringTag,{value:"Module"})),m3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.segments":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/segments","_cat/segments/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html"}}},Symbol.toStringTag,{value:"Module"})),g3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.shards":{url_params:{format:"",bytes:["b","k","kb","m","mb","g","gb","t","tb","p","pb"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/shards","_cat/shards/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html"}}},Symbol.toStringTag,{value:"Module"})),v3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.snapshots":{url_params:{format:"",ignore_unavailable:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/snapshots","_cat/snapshots/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),_3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.tasks":{url_params:{format:"",node_id:[],actions:[],detailed:"__flag__",parent_task:"",h:[],help:"__flag__",s:[],time:["d","h","m","s","ms","micros","nanos"],v:"__flag__"},methods:["GET"],patterns:["_cat/tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),y3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.templates":{url_params:{format:"",local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/templates","_cat/templates/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html"}}},Symbol.toStringTag,{value:"Module"})),b3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cat.thread_pool":{url_params:{format:"",size:["","k","m","g","t","p"],local:"__flag__",master_timeout:"",h:[],help:"__flag__",s:[],v:"__flag__"},methods:["GET"],patterns:["_cat/thread_pool","_cat/thread_pool/{thread_pool_patterns}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html"}}},Symbol.toStringTag,{value:"Module"})),kx={methods:["DELETE"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api"},w3=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:kx,default:{clear_scroll:kx}},Symbol.toStringTag,{value:"Module"})),x3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.allocation_explain":{url_params:{include_yes_decisions:"__flag__",include_disk_info:"__flag__"},methods:["GET","POST"],patterns:["_cluster/allocation/explain"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html"}}},Symbol.toStringTag,{value:"Module"})),S3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.delete_component_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),C3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_component_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_component_template","_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html"}}},Symbol.toStringTag,{value:"Module"})),E3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.get_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:"",include_defaults:"__flag__"},methods:["GET"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),O3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]},methods:["GET"],patterns:["_cluster/health","_cluster/health/{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html"}}},Symbol.toStringTag,{value:"Module"})),$3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.pending_tasks":{url_params:{local:"__flag__",master_timeout:""},methods:["GET"],patterns:["_cluster/pending_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html"}}},Symbol.toStringTag,{value:"Module"})),T3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{url_params:{create:"__flag__",master_timeout:""},methods:["PUT"],patterns:["_component_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html"}}},Symbol.toStringTag,{value:"Module"})),P3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{url_params:{flat_settings:"__flag__",master_timeout:"",timeout:""},methods:["PUT"],patterns:["_cluster/settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),R3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.remote_info":{methods:["GET"],patterns:["_remote/info"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html"}}},Symbol.toStringTag,{value:"Module"})),j3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{url_params:{dry_run:"__flag__",explain:"__flag__",retry_failed:"__flag__",metric:[],master_timeout:"",timeout:""},methods:["POST"],patterns:["_cluster/reroute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html"}}},Symbol.toStringTag,{value:"Module"})),M3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.state":{url_params:{local:"__flag__",master_timeout:"",flat_settings:"__flag__",wait_for_metadata_version:"",wait_for_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_cluster/state","_cluster/state/{metrics}","_cluster/state/{metrics}/{indices}"],url_components:{metrics:["_all","blocks","master_node","metadata","nodes","routing_nodes","routing_table","version"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html"}}},Symbol.toStringTag,{value:"Module"})),I3=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.stats":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_cluster/stats","_cluster/stats/nodes/{nodes}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html"}}},Symbol.toStringTag,{value:"Module"})),Lx={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],min_score:"",preference:"random",routing:[],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",terminate_after:""},methods:["POST","GET"],patterns:["_count","{indices}/_count"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html"},A3=Object.freeze(Object.defineProperty({__proto__:null,count:Lx,default:{count:Lx}},Symbol.toStringTag,{value:"Module"})),Fx={url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_create/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},N3=Object.freeze(Object.defineProperty({__proto__:null,create:Fx,default:{create:Fx}},Symbol.toStringTag,{value:"Module"})),k3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete:{url_params:{wait_for_active_shards:"",refresh:["true","false","wait_for"],routing:"",timeout:"",if_seq_no:"",if_primary_term:"",version:"",version_type:["internal","external","external_gte","force"]},methods:["DELETE"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html"}}},Symbol.toStringTag,{value:"Module"})),Dx={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_delete_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html"},L3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query:Dx},delete_by_query:Dx},Symbol.toStringTag,{value:"Module"})),Bx={url_params:{requests_per_second:""},methods:["POST"],patterns:["_delete_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html"},F3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_by_query_rethrottle:Bx},delete_by_query_rethrottle:Bx},Symbol.toStringTag,{value:"Module"})),zx={url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},D3=Object.freeze(Object.defineProperty({__proto__:null,default:{delete_script:zx},delete_script:zx},Symbol.toStringTag,{value:"Module"})),qx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},B3=Object.freeze(Object.defineProperty({__proto__:null,default:{exists:qx},exists:qx},Symbol.toStringTag,{value:"Module"})),Vx={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["HEAD"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},z3=Object.freeze(Object.defineProperty({__proto__:null,default:{exists_source:Vx},exists_source:Vx},Symbol.toStringTag,{value:"Module"})),Hx={url_params:{analyze_wildcard:"__flag__",analyzer:"",default_operator:["AND","OR"],df:"_all",stored_fields:[],lenient:"__flag__",preference:"random",q:"",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["{indices}/_explain/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html"},q3=Object.freeze(Object.defineProperty({__proto__:null,default:{explain:Hx},explain:Hx},Symbol.toStringTag,{value:"Module"})),Wx={url_params:{fields:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],include_unmapped:"__flag__"},methods:["GET","POST"],patterns:["_field_caps","{indices}/_field_caps"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html"},V3=Object.freeze(Object.defineProperty({__proto__:null,default:{field_caps:Wx},field_caps:Wx},Symbol.toStringTag,{value:"Module"})),Ux={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_doc/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},H3=Object.freeze(Object.defineProperty({__proto__:null,default:{get:Ux},get:Ux},Symbol.toStringTag,{value:"Module"})),Gx={url_params:{master_timeout:""},methods:["GET"],patterns:["_scripts/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},W3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script:Gx},get_script:Gx},Symbol.toStringTag,{value:"Module"})),Kx={methods:["GET"],patterns:["_script_context"]},U3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_context:Kx},get_script_context:Kx},Symbol.toStringTag,{value:"Module"})),Xx={methods:["GET"],patterns:["_script_language"]},G3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_script_languages:Xx},get_script_languages:Xx},Symbol.toStringTag,{value:"Module"})),Yx={url_params:{preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[],version:"",version_type:["internal","external","external_gte","force"]},methods:["GET"],patterns:["{indices}/_source/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html"},K3=Object.freeze(Object.defineProperty({__proto__:null,default:{get_source:Yx},get_source:Yx},Symbol.toStringTag,{value:"Module"})),Jx={url_params:{wait_for_active_shards:"",op_type:["index","create"],refresh:["true","false","wait_for"],routing:"",timeout:"",version:"",version_type:["internal","external","external_gte"],if_seq_no:"",if_primary_term:"",pipeline:""},methods:["PUT","POST"],patterns:["{indices}/_doc/{id}","{indices}/_doc"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html"},X3=Object.freeze(Object.defineProperty({__proto__:null,default:{index:Jx},index:Jx},Symbol.toStringTag,{value:"Module"})),Y3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{url_params:{index:""},methods:["GET","POST"],patterns:["_analyze","{indices}/_analyze"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html"}}},Symbol.toStringTag,{value:"Module"})),J3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clear_cache":{url_params:{fielddata:"__flag__",fields:[],query:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],index:[],request:"__flag__"},methods:["POST"],patterns:["_cache/clear","{indices}/_cache/clear"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html"}}},Symbol.toStringTag,{value:"Module"})),Q3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{url_params:{timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_clone/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html"}}},Symbol.toStringTag,{value:"Module"})),Z3=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.close":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_close"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),e6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{url_params:{include_type_name:"__flag__",wait_for_active_shards:"",timeout:"",master_timeout:""},methods:["PUT"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html"}}},Symbol.toStringTag,{value:"Module"})),t6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["DELETE"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html"}}},Symbol.toStringTag,{value:"Module"})),n6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_alias":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),r6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{url_params:{timeout:"",master_timeout:""},methods:["DELETE"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),o6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists":{url_params:{local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__"},methods:["HEAD"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html"}}},Symbol.toStringTag,{value:"Module"})),i6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["_alias/{name}","{indices}/_alias/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),a6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{url_params:{flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["HEAD"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),s6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_type":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["HEAD"],patterns:["{indices}/_mapping/{type}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html"}}},Symbol.toStringTag,{value:"Module"})),l6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush":{url_params:{force:"__flag__",wait_if_ongoing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_flush","{indices}/_flush"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html"}}},Symbol.toStringTag,{value:"Module"})),c6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.flush_synced":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","none","all"]},methods:["POST","GET"],patterns:["_flush/synced","{indices}/_flush/synced"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html"}}},Symbol.toStringTag,{value:"Module"})),u6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.forcemerge":{url_params:{flush:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],max_num_segments:"dynamic",only_expunge_deletes:"__flag__"},methods:["POST"],patterns:["_forcemerge","{indices}/_forcemerge"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html"}}},Symbol.toStringTag,{value:"Module"})),d6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get":{url_params:{include_type_name:"__flag__",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",include_defaults:"__flag__",master_timeout:""},methods:["GET"],patterns:["{indices}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html"}}},Symbol.toStringTag,{value:"Module"})),f6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_alias":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_alias","_alias/{name}","{indices}/_alias/{name}","{indices}/_alias"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),p6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{url_params:{include_type_name:"__flag__",include_defaults:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],local:"__flag__"},methods:["GET"],patterns:["_mapping/field/{fields}","{indices}/_mapping/field/{fields}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),h6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{url_params:{include_type_name:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_mapping","{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),m6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_settings":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__",local:"__flag__",include_defaults:"__flag__"},methods:["GET"],patterns:["_settings","{indices}/_settings","{indices}/_settings/{name}","_settings/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html"}}},Symbol.toStringTag,{value:"Module"})),g6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{url_params:{include_type_name:"__flag__",flat_settings:"__flag__",master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_template","_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),v6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_upgrade":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),_6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.open":{url_params:{timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],wait_for_active_shards:""},methods:["POST"],patterns:["{indices}/_open"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html"}}},Symbol.toStringTag,{value:"Module"})),y6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{url_params:{timeout:"",master_timeout:""},methods:["PUT","POST"],patterns:["{indices}/_alias/{name}","{indices}/_aliases/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),b6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_mapping":{url_params:{include_type_name:"__flag__",timeout:"",master_timeout:"",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["PUT","POST"],patterns:["{indices}/_mapping"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html"}}},Symbol.toStringTag,{value:"Module"})),w6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{url_params:{master_timeout:"",timeout:"",preserve_existing:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],flat_settings:"__flag__"},methods:["PUT"],patterns:["_settings","{indices}/_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html"}}},Symbol.toStringTag,{value:"Module"})),x6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{url_params:{include_type_name:"__flag__",order:"",create:"__flag__",master_timeout:"",flat_settings:"__flag__"},methods:["PUT","POST"],patterns:["_template/{name}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html"}}},Symbol.toStringTag,{value:"Module"})),S6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.recovery":{url_params:{detailed:"__flag__",active_only:"__flag__"},methods:["GET"],patterns:["_recovery","{indices}/_recovery"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html"}}},Symbol.toStringTag,{value:"Module"})),C6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.refresh":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["POST","GET"],patterns:["_refresh","{indices}/_refresh"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html"}}},Symbol.toStringTag,{value:"Module"})),E6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{url_params:{include_type_name:"__flag__",timeout:"",dry_run:"__flag__",master_timeout:"",wait_for_active_shards:""},methods:["POST"],patterns:["{alias}/_rollover","{alias}/_rollover/{new_index}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html"}}},Symbol.toStringTag,{value:"Module"})),O6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.segments":{url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],verbose:"__flag__"},methods:["GET"],patterns:["_segments","{indices}/_segments"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html"}}},Symbol.toStringTag,{value:"Module"})),$6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shard_stores":{url_params:{status:[],ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET"],patterns:["_shard_stores","{indices}/_shard_stores"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html"}}},Symbol.toStringTag,{value:"Module"})),T6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.shrink":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_shrink/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html"}}},Symbol.toStringTag,{value:"Module"})),P6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.split":{url_params:{copy_settings:"__flag__",timeout:"",master_timeout:"",wait_for_active_shards:""},methods:["PUT","POST"],patterns:["{indices}/_split/{target}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html"}}},Symbol.toStringTag,{value:"Module"})),R6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:[],level:["cluster","indices","shards"],types:[],include_segment_file_sizes:"__flag__",include_unloaded_segments:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],forbid_closed_indices:"__flag__"},methods:["GET"],patterns:["_stats","_stats/{metrics}","{indices}/_stats","{indices}/_stats/{metrics}"],url_components:{metrics:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"],indices:null},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html"}}},Symbol.toStringTag,{value:"Module"})),j6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{url_params:{timeout:"",master_timeout:""},methods:["POST"],patterns:["_aliases"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html"}}},Symbol.toStringTag,{value:"Module"})),M6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.upgrade":{url_params:{allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],ignore_unavailable:"__flag__",wait_for_completion:"__flag__",only_ancient_segments:"__flag__"},methods:["POST"],patterns:["_upgrade","{indices}/_upgrade"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html"}}},Symbol.toStringTag,{value:"Module"})),I6=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{url_params:{explain:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],q:"",analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",lenient:"__flag__",rewrite:"__flag__",all_shards:"__flag__"},methods:["GET","POST"],patterns:["_validate/query","{indices}/_validate/query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html"}}},Symbol.toStringTag,{value:"Module"})),Qx={methods:["GET"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},A6=Object.freeze(Object.defineProperty({__proto__:null,default:{info:Qx},info:Qx},Symbol.toStringTag,{value:"Module"})),N6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.delete_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),k6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.get_pipeline":{url_params:{master_timeout:""},methods:["GET"],patterns:["_ingest/pipeline","_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),L6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.processor_grok":{methods:["GET"],patterns:["_ingest/processor/grok"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get"}}},Symbol.toStringTag,{value:"Module"})),F6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.put_pipeline":{url_params:{master_timeout:"",timeout:""},methods:["PUT"],patterns:["_ingest/pipeline/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),D6=Object.freeze(Object.defineProperty({__proto__:null,default:{"ingest.simulate":{url_params:{verbose:"__flag__"},methods:["GET","POST"],patterns:["_ingest/pipeline/_simulate","_ingest/pipeline/{id}/_simulate"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html"}}},Symbol.toStringTag,{value:"Module"})),Zx={url_params:{stored_fields:[],preference:"random",realtime:"__flag__",refresh:"__flag__",routing:"",_source:[],_source_excludes:[],_source_includes:[]},methods:["GET","POST"],patterns:["_mget","{indices}/_mget"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html"},B6=Object.freeze(Object.defineProperty({__proto__:null,default:{mget:Zx},mget:Zx},Symbol.toStringTag,{value:"Module"})),eS={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],max_concurrent_searches:"",typed_keys:"__flag__",pre_filter_shard_size:"",max_concurrent_shard_requests:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch","{indices}/_msearch"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html"},z6=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch:eS},msearch:eS},Symbol.toStringTag,{value:"Module"})),tS={url_params:{search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],typed_keys:"__flag__",max_concurrent_searches:"",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_msearch/template","{indices}/_msearch/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html"},q6=Object.freeze(Object.defineProperty({__proto__:null,default:{msearch_template:tS},msearch_template:tS},Symbol.toStringTag,{value:"Module"})),nS={url_params:{ids:[],term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["_mtermvectors","{indices}/_mtermvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html"},V6=Object.freeze(Object.defineProperty({__proto__:null,default:{mtermvectors:nS},mtermvectors:nS},Symbol.toStringTag,{value:"Module"})),H6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.hot_threads":{url_params:{interval:"",snapshots:"10",threads:"3",ignore_idle_threads:"__flag__",type:["cpu","wait","block"],timeout:""},methods:["GET"],patterns:["_nodes/hot_threads","_nodes/{nodes}/hot_threads"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html"}}},Symbol.toStringTag,{value:"Module"})),W6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.info":{url_params:{flat_settings:"__flag__",timeout:""},methods:["GET"],patterns:["_nodes","_nodes/{nodes}","_nodes/{metrics}","_nodes/{nodes}/{metrics}"],url_components:{nodes:null,metrics:["http","ingest","jvm","os","plugins","process","settings","thread_pool","transport"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html"}}},Symbol.toStringTag,{value:"Module"})),U6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.reload_secure_settings":{url_params:{timeout:""},methods:["POST"],patterns:["_nodes/reload_secure_settings","_nodes/{nodes}/reload_secure_settings"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings"}}},Symbol.toStringTag,{value:"Module"})),G6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.stats":{url_params:{completion_fields:[],fielddata_fields:[],fields:[],groups:"__flag__",level:["indices","node","shards"],types:[],timeout:"",include_segment_file_sizes:"__flag__"},methods:["GET"],patterns:["_nodes/stats","_nodes/{nodes}/stats","_nodes/stats/{metrics}","_nodes/{nodes}/stats/{metrics}","_nodes/stats/{metrics}/{index_metric}","_nodes/{nodes}/stats/{metrics}/{index_metric}"],url_components:{nodes:null,metrics:["_all","breaker","discovery","fs","http","indices","jvm","os","process","thread_pool","transport"],index_metric:["_all","completion","docs","fielddata","flush","get","indexing","merge","query_cache","refresh","request_cache","search","segments","store","suggest","warmer"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html"}}},Symbol.toStringTag,{value:"Module"})),K6=Object.freeze(Object.defineProperty({__proto__:null,default:{"nodes.usage":{url_params:{timeout:""},methods:["GET"],patterns:["_nodes/usage","_nodes/{nodes}/usage","_nodes/usage/{metrics}","_nodes/{nodes}/usage/{metrics}"],url_components:{nodes:null,metrics:["_all","rest_actions"]},documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html"}}},Symbol.toStringTag,{value:"Module"})),rS={methods:["HEAD"],patterns:[""],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html"},X6=Object.freeze(Object.defineProperty({__proto__:null,default:{ping:rS},ping:rS},Symbol.toStringTag,{value:"Module"})),oS={url_params:{timeout:"",master_timeout:"",context:""},methods:["PUT","POST"],patterns:["_scripts/{id}","_scripts/{id}/{context}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html"},Y6=Object.freeze(Object.defineProperty({__proto__:null,default:{put_script:oS},put_script:oS},Symbol.toStringTag,{value:"Module"})),iS={url_params:{ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],search_type:["query_then_fetch","dfs_query_then_fetch"]},methods:["GET","POST"],patterns:["_rank_eval","{indices}/_rank_eval"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html"},J6=Object.freeze(Object.defineProperty({__proto__:null,default:{rank_eval:iS},rank_eval:iS},Symbol.toStringTag,{value:"Module"})),aS={url_params:{refresh:"__flag__",timeout:"",wait_for_active_shards:"",wait_for_completion:"__flag__",requests_per_second:"",scroll:"",slices:"",max_docs:"all documents"},methods:["POST"],patterns:["_reindex"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},Q6=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex:aS},reindex:aS},Symbol.toStringTag,{value:"Module"})),sS={url_params:{requests_per_second:""},methods:["POST"],patterns:["_reindex/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html"},Z6=Object.freeze(Object.defineProperty({__proto__:null,default:{reindex_rethrottle:sS},reindex_rethrottle:sS},Symbol.toStringTag,{value:"Module"})),lS={methods:["GET","POST"],patterns:["_render/template","_render/template/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#_validating_templates"},e8=Object.freeze(Object.defineProperty({__proto__:null,default:{render_search_template:lS},render_search_template:lS},Symbol.toStringTag,{value:"Module"})),cS={methods:["GET","POST"],patterns:["_scripts/painless/_execute"],documentation:"https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html"},t8=Object.freeze(Object.defineProperty({__proto__:null,default:{scripts_painless_execute:cS},scripts_painless_execute:cS},Symbol.toStringTag,{value:"Module"})),uS={url_params:{scroll:"",scroll_id:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search/scroll"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll"},n8=Object.freeze(Object.defineProperty({__proto__:null,default:{scroll:uS},scroll:uS},Symbol.toStringTag,{value:"Module"})),dS={url_params:{analyzer:"",analyze_wildcard:"__flag__",ccs_minimize_roundtrips:"__flag__",default_operator:["AND","OR"],df:"",explain:"__flag__",stored_fields:[],docvalue_fields:[],from:"0",ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],size:"10",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],suggest_field:"",suggest_mode:["missing","popular","always"],suggest_size:"",suggest_text:"",timeout:"",track_scores:"__flag__",track_total_hits:"__flag__",allow_partial_search_results:"__flag__",typed_keys:"__flag__",version:"__flag__",seq_no_primary_term:"__flag__",request_cache:"__flag__",batched_reduce_size:"",max_concurrent_shard_requests:"",pre_filter_shard_size:"",rest_total_hits_as_int:"__flag__"},methods:["GET","POST"],patterns:["_search","{indices}/_search"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html"},r8=Object.freeze(Object.defineProperty({__proto__:null,default:{search:dS},search:dS},Symbol.toStringTag,{value:"Module"})),fS={url_params:{preference:"random",routing:"",local:"__flag__",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"]},methods:["GET","POST"],patterns:["_search_shards","{indices}/_search_shards"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html"},o8=Object.freeze(Object.defineProperty({__proto__:null,default:{search_shards:fS},search_shards:fS},Symbol.toStringTag,{value:"Module"})),pS={url_params:{ignore_unavailable:"__flag__",ignore_throttled:"__flag__",allow_no_indices:"__flag__",expand_wildcards:["open","closed","hidden","none","all"],preference:"random",routing:[],scroll:"",search_type:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],explain:"__flag__",profile:"__flag__",typed_keys:"__flag__",rest_total_hits_as_int:"__flag__",ccs_minimize_roundtrips:"__flag__"},methods:["GET","POST"],patterns:["_search/template","{indices}/_search/template"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html"},i8=Object.freeze(Object.defineProperty({__proto__:null,default:{search_template:pS},search_template:pS},Symbol.toStringTag,{value:"Module"})),a8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.cleanup_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_cleanup"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),s8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),l8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{url_params:{master_timeout:"",timeout:"",verify:"__flag__"},methods:["PUT","POST"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),c8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete":{url_params:{master_timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),u8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.delete_repository":{url_params:{master_timeout:"",timeout:""},methods:["DELETE"],patterns:["_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),d8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get":{url_params:{master_timeout:"",ignore_unavailable:"__flag__",verbose:"__flag__"},methods:["GET"],patterns:["_snapshot/{repository}/{snapshot}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),f8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.get_repository":{url_params:{master_timeout:"",local:"__flag__"},methods:["GET"],patterns:["_snapshot","_snapshot/{repository}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),p8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{url_params:{master_timeout:"",wait_for_completion:"__flag__"},methods:["POST"],patterns:["_snapshot/{repository}/{snapshot}/_restore"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),h8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.status":{url_params:{master_timeout:"",ignore_unavailable:"__flag__"},methods:["GET"],patterns:["_snapshot/_status","_snapshot/{repository}/_status","_snapshot/{repository}/{snapshot}/_status"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),m8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.verify_repository":{url_params:{master_timeout:"",timeout:""},methods:["POST"],patterns:["_snapshot/{repository}/_verify"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html"}}},Symbol.toStringTag,{value:"Module"})),g8=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.cancel":{url_params:{nodes:[],actions:[],parent_task_id:""},methods:["POST"],patterns:["_tasks/_cancel","_tasks/{task_id}/_cancel"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),v8=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.get":{url_params:{wait_for_completion:"__flag__",timeout:""},methods:["GET"],patterns:["_tasks/{task_id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),_8=Object.freeze(Object.defineProperty({__proto__:null,default:{"tasks.list":{url_params:{nodes:[],actions:[],detailed:"__flag__",parent_task_id:"",wait_for_completion:"__flag__",group_by:["nodes","parents","none"],timeout:""},methods:["GET"],patterns:["_tasks"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html"}}},Symbol.toStringTag,{value:"Module"})),hS={url_params:{term_statistics:"__flag__",field_statistics:"__flag__",fields:[],offsets:"__flag__",positions:"__flag__",payloads:"__flag__",preference:"random",routing:"",realtime:"__flag__",version:"",version_type:["internal","external","external_gte","force"]},methods:["GET","POST"],patterns:["{indices}/_termvectors/{id}","{indices}/_termvectors"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html"},y8=Object.freeze(Object.defineProperty({__proto__:null,default:{termvectors:hS},termvectors:hS},Symbol.toStringTag,{value:"Module"})),mS={url_params:{wait_for_active_shards:"",_source:[],_source_excludes:[],_source_includes:[],lang:"painless",refresh:["true","false","wait_for"],retry_on_conflict:"0",routing:"",timeout:"",if_seq_no:"",if_primary_term:""},methods:["POST"],patterns:["{indices}/_update/{id}"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html"},b8=Object.freeze(Object.defineProperty({__proto__:null,default:{update:mS},update:mS},Symbol.toStringTag,{value:"Module"})),gS={url_params:{analyzer:"",analyze_wildcard:"__flag__",default_operator:["AND","OR"],df:"",from:"0",ignore_unavailable:"__flag__",allow_no_indices:"__flag__",conflicts:["abort","proceed"],expand_wildcards:["open","closed","hidden","none","all"],lenient:"__flag__",pipeline:"none",preference:"random",q:"",routing:[],scroll:"",search_type:["query_then_fetch","dfs_query_then_fetch"],search_timeout:"",size:"",max_docs:"all documents",sort:[],_source:[],_source_excludes:[],_source_includes:[],terminate_after:"",stats:[],version:"__flag__",version_type:"__flag__",request_cache:"__flag__",refresh:"__flag__",timeout:"",wait_for_active_shards:"",scroll_size:"",wait_for_completion:"__flag__",requests_per_second:"",slices:""},methods:["POST"],patterns:["{indices}/_update_by_query"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html"},w8=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:gS},update_by_query:gS},Symbol.toStringTag,{value:"Module"})),vS={url_params:{requests_per_second:""},methods:["POST"],patterns:["_update_by_query/{task_id}/_rethrottle"],documentation:"https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html"},x8=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query_rethrottle:vS},update_by_query_rethrottle:vS},Symbol.toStringTag,{value:"Module"})),_S={data_autocomplete_rules:{scroll_id:""}},S8=Object.freeze(Object.defineProperty({__proto__:null,clear_scroll:_S,default:{clear_scroll:_S}},Symbol.toStringTag,{value:"Module"})),C8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.health":{url_params:{expand_wildcards:["open","closed","hidden","none","all"],level:["cluster","indices","shards"],local:"__flag__",master_timeout:"",timeout:"",wait_for_active_shards:"",wait_for_nodes:"",wait_for_events:["immediate","urgent","high","normal","low","languid"],wait_for_no_relocating_shards:"__flag__",wait_for_no_initializing_shards:"__flag__",wait_for_status:["green","yellow","red"]}}}},Symbol.toStringTag,{value:"Module"})),E8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_component_template":{data_autocomplete_rules:{template:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}},mappings:{__scope_link:"put_mapping"}},_meta:{},version:0,allow_auto_create:!1}}}},Symbol.toStringTag,{value:"Module"})),O8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.put_settings":{data_autocomplete_rules:{persistent:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}},transient:{cluster:{routing:{"allocation.enable":{__one_of:["all","primaries","new_primaries","none"]},"allocation.disk.threshold_enabled":{__one_of:[!1,!0]},"allocation.disk.watermark.low":"85%","allocation.disk.watermark.high":"90%","allocation.disk.reroute_interval":"60s","allocation.exclude":{_ip:"",_name:"",_host:"",_id:""},"allocation.include":{_ip:"",_name:"",_host:"",_id:""},"allocation.require":{_ip:"",_name:"",_host:"",_id:""},"allocation.awareness.attributes":[],"allocation.awareness.force":{"*":{values:[]}},"allocation.allow_rebalance":{__one_of:["always","indices_primaries_active","indices_all_active"]},"allocation.cluster_concurrent_rebalance":2,"allocation.node_initial_primaries_recoveries":4,"allocation.node_concurrent_recoveries":2,"allocation.same_shard.host":{__one_of:[!1,!0]}}},indices:{breaker:{"total.limit":"70%","fielddata.limit":"60%","fielddata.overhead":1.03,"request.limit":"40%","request.overhead":1}}}}}}},Symbol.toStringTag,{value:"Module"})),$8=Object.freeze(Object.defineProperty({__proto__:null,default:{"cluster.reroute":{data_autocomplete_rules:{commands:[{move:{__template:{index:"",shard:0,from_node:"",to_node:""},index:"{index}",shard:0,from_node:"{node}",to_node:"{node}"},cancel:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}},allocate:{__template:{index:"",shard:0,node:""},index:"{index}",shard:0,node:"{node}",allow_primary:{__one_of:[!0,!1]}}}],dry_run:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),yS={priority:10,data_autocomplete_rules:{query:{}}},T8=Object.freeze(Object.defineProperty({__proto__:null,count:yS,default:{count:yS}},Symbol.toStringTag,{value:"Module"})),P8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.analyze":{data_autocomplete_rules:{text:[],field:"{field}",analyzer:"",tokenizer:"",char_filter:[],filter:[],explain:{__one_of:[!1,!0]},attributes:[]}}}},Symbol.toStringTag,{value:"Module"})),R8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.clone":{data_autocomplete_rules:{settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),j8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.create":{data_autocomplete_rules:{mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),M8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.delete_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),I8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.exists_template":{patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),A8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_field_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),N8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_mapping":{priority:10}}},Symbol.toStringTag,{value:"Module"})),k8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.get_template":{patterns:["_template","_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),L8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_alias":{data_autocomplete_rules:{filter:{},routing:"1",search_routing:"1,2",index_routing:"1"}}}},Symbol.toStringTag,{value:"Module"})),F8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_settings":{data_autocomplete_rules:{__scope_link:"put_settings"}}}},Symbol.toStringTag,{value:"Module"})),D8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.put_template":{data_autocomplete_rules:{index_patterns:[],mappings:{__scope_link:"put_mapping"},settings:{__scope_link:"put_settings"},version:0,order:0,aliases:{__template:{NAME:{}}}},patterns:["_template/{template}"]}}},Symbol.toStringTag,{value:"Module"})),B8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.rollover":{data_autocomplete_rules:{conditions:{max_age:"7d",max_docs:1e3,max_size:"5gb"},settings:{__scope_link:"put_settings"},mappings:{__scope_link:"put_mapping"},aliases:{__template:{NAME:{}}}}}}},Symbol.toStringTag,{value:"Module"})),z8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.update_aliases":{data_autocomplete_rules:{actions:{__template:[{add:{index:"test1",alias:"alias1"}}],__any_of:[{add:{index:"{index}",alias:"",filter:{},routing:"1",search_routing:"1,2",index_routing:"1"},remove:{index:"",alias:""}}]}}}}},Symbol.toStringTag,{value:"Module"})),q8=Object.freeze(Object.defineProperty({__proto__:null,default:{"indices.validate_query":{data_autocomplete_rules:{query:{}}}}},Symbol.toStringTag,{value:"Module"})),V8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:{__one_of:[!0,!1]},partial:{__one_of:[!0,!1]}}}}},Symbol.toStringTag,{value:"Module"})),H8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.create_repository":{data_autocomplete_rules:{__template:{type:""},type:{__one_of:["fs","url","s3","hdfs","azure"]},settings:{__one_of:[{__condition:{lines_regex:`type["']\\s*:\\s*["']fs\``},__template:{location:"path"},location:"path",compress:{__one_of:[!0,!1]},concurrent_streams:5,chunk_size:"10m",max_restore_bytes_per_sec:"20mb",max_snapshot_bytes_per_sec:"20mb"},{__condition:{lines_regex:`type["']\\s*:\\s*["']url`},__template:{url:""},url:"",concurrent_streams:5},{__condition:{lines_regex:`type["']\\s*:\\s*["']s3`},__template:{bucket:""},bucket:"",region:"",base_path:"",concurrent_streams:5,chunk_size:"10m",compress:{__one_of:[!0,!1]}},{__condition:{lines_regex:`type["']\\s*:\\s*["']hdfs`},__template:{path:""},uri:"",path:"some/path",load_defaults:{__one_of:[!0,!1]},conf_location:"cfg.xml",concurrent_streams:5,compress:{__one_of:[!0,!1]},chunk_size:"10m"},{__condition:{lines_regex:`type["']\\s*:\\s*["']azure`},__template:{path:""},container:"",base_path:"",client:"default",location_mode:{__one_of:["primary_only","secondary_only"]},readonly:{__one_of:[!0,!1]},compress:{__one_of:[!0,!1]},chunk_size:"10m"}]}}}}},Symbol.toStringTag,{value:"Module"})),W8=Object.freeze(Object.defineProperty({__proto__:null,default:{"snapshot.restore":{data_autocomplete_rules:{indices:"*",ignore_unavailable:{__one_of:[!0,!1]},include_global_state:!1,rename_pattern:"index_(.+)",rename_replacement:"restored_index_$1"}}}},Symbol.toStringTag,{value:"Module"})),bS={data_autocomplete_rules:{conflicts:"",query:{__scope_link:"GLOBAL.query"},script:{__template:{source:"",lang:"painless"},__scope_link:"GLOBAL.script"}}},U8=Object.freeze(Object.defineProperty({__proto__:null,default:{update_by_query:bS},update_by_query:bS},Symbol.toStringTag,{value:"Module"}));var Ue={exports:{}};(function(e){function t(n,r){for(let o=n,i="";o;){let a=r[o];if(typeof a=="string")return a+i;if(a)return a.location.replace(/\/*$/,"/")+(i||a.main||a.name);if(a===!1)return"";let l=o.lastIndexOf("/");if(l===-1)break;i=o.substr(l)+i,o=o.slice(0,l)}return n}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){let o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){let l=i.split("!");return e.normalizeModule(o,l[0])+"!"+e.normalizeModule(o,l[1])}if(i.charAt(0)=="."){let l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&a!=i;){var a=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);let l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);let s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);let l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){let s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(let i in o)acequire.tlns[i]=o[i]},e.initSender=function(){let o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}.call(a.prototype),new a};let n=e.main=null,r=e.sender=null;e.onmessage=function(o){let i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();let a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(let o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){let n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){let i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){let i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){let a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){let i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){let o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{let u=[o,1].concat(r.lines);n.splice.apply(n,u),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var s=r.end.column,c=r.end.row;o===c?n[o]=a.substring(0,i)+a.substring(s):n.splice(o,c-o+1,a.substring(0,i)+n[c].substring(s))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){let n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});let l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(let c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){let l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(let s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){let l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){let s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);let u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){let l=this._defaultHandlers;if(l){let s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){let c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};let s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};let l=this._eventRegistry[i];if(l){let s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){let n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){let u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){let u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),b=l.start,x=u?b:l.end;return i(s,b,c)?{row:s.row,column:s.column}:i(x,s,!c)?{row:s.row+f,column:s.column+(s.row==x.row?d:0)}:{row:b.row,column:b.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){let s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){let u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){let f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){let c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){let n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){let c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
304
- `).split(`
305
- `)}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){let c=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
306
- `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
307
- `;case"unix":return`
308
- `;default:return this.$autoNewLine||`
309
- `}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return s==`\r
310
- `||s=="\r"||s==`
311
- `},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,c){return this.$lines.slice(s,c+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){let c;if(s.start.row===s.end.row)c=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{c=this.getLines(s.start.row,s.end.row),c[0]=(c[0]||"").substring(s.start.column);let u=c.length-1;s.end.row-s.start.row==u&&(c[u]=c[u].substring(0,s.end.column))}return c},this.insertLines=function(s,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,c)},this.removeLines=function(s,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,c)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,c){return 1>=this.getLength()&&this.$detectNewLine(c),this.insertMergedLines(s,this.$split(c))},this.insertInLine=function(s,c){let u=this.clippedPos(s.row,s.column),f=this.pos(s.row,s.column+c.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},this.clippedPos=function(s,c){let u=this.getLength();s===void 0?s=u:0>s?s=0:s>=u&&(s=u-1,c=void 0);let f=this.getLine(s);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:s,column:c}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,c){return{row:s,column:c}},this.$clipPosition=function(s){let c=this.getLength();return s.row>=c?(s.row=Math.max(0,c-1),s.column=this.getLine(c-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,c){s=Math.min(Math.max(s,0),this.getLength());let u=0;this.getLength()>s?(c=c.concat([""]),u=0):(c=[""].concat(c),s--,u=this.$lines[s].length),this.insertMergedLines({row:s,column:u},c)},this.insertMergedLines=function(s,c){let u=this.clippedPos(s.row,s.column),f={row:u.row+c.length-1,column:(c.length==1?u.column:0)+c[c.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:c}),this.clonePos(f)},this.remove=function(s){let c=this.clippedPos(s.start.row,s.start.column),u=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:c,end:u,action:"remove",lines:this.getLinesForRange({start:c,end:u})}),this.clonePos(c)},this.removeInLine=function(s,c,u){let f=this.clippedPos(s,c),d=this.clippedPos(s,u);return this.applyDelta({start:f,end:d,action:"remove",lines:this.getLinesForRange({start:f,end:d})},!0),this.clonePos(f)},this.removeFullLines=function(s,c){s=Math.min(Math.max(0,s),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);let u=c==this.getLength()-1&&s>0,f=this.getLength()-1>c,d=u?s-1:s,b=u?this.getLine(d).length:0,x=f?c+1:c,O=f?0:this.getLine(x).length,h=new i(d,b,x,O),y=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),y},this.removeNewLine=function(s){this.getLength()-1>s&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,c){return s instanceof i||(s=i.fromPoints(s.start,s.end)),c.length===0&&s.isEmpty()?s.start:c==this.getTextRange(s)?s.end:(this.remove(s),c?this.insert(s.start,c):s.start)},this.applyDeltas=function(s){for(let c=0;s.length>c;c++)this.applyDelta(s[c])},this.revertDeltas=function(s){for(let c=s.length-1;c>=0;c--)this.revertDelta(s[c])},this.applyDelta=function(s,c){let u=s.action=="insert";(u?1>=s.lines.length&&!s.lines[0]:!i.comparePoints(s.start,s.end))||(u&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),r(this.$lines,s,c),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,c){for(let u=s.lines,f=u.length,d=s.start.row,b=s.start.column,x=0,O=0;;){x=O,O+=c-1;let h=u.slice(x,O);if(O>f){s.lines=h,s.start.row=d+x,s.start.column=b;break}h.push(""),this.applyDelta({start:this.pos(d+x,b),end:this.pos(d+O,b=0),action:s.action,lines:h},!0)}},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=c||0,b=u.length;b>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:b-1,column:u[b-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,b=Math.min(s.row,u.length),x=c||0;b>x;++x)d+=u[x].length+f;return d+s.column}}).call(l.prototype),t.Document=l}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){t.last=function(o){return o[o.length-1]},t.stringReverse=function(o){return o.split("").reverse().join("")},t.stringRepeat=function(o,i){for(var a="";i>0;)1&i&&(a+=o),(i>>=1)&&(o+=o);return a};let n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(o){return o.replace(n,"")},t.stringTrimRight=function(o){return o.replace(r,"")},t.copyObject=function(o){let i={};for(let a in o)i[a]=o[a];return i},t.copyArray=function(o){for(var i=[],a=0,l=o.length;l>a;a++)i[a]=o[a]&&typeof o[a]=="object"?this.copyObject(o[a]):o[a];return i},t.deepCopy=function o(i){if(typeof i!="object"||!i)return i;let a;if(Array.isArray(i)){a=[];for(var l=0;i.length>l;l++)a[l]=o(i[l]);return a}if(Object.prototype.toString.call(i)!=="[object Object]")return i;a={};for(var l in i)a[l]=o(i[l]);return a},t.arrayToMap=function(o){for(var i={},a=0;o.length>a;a++)i[o[a]]=1;return i},t.createMap=function(o){let i=Object.create(null);for(let a in o)i[a]=o[a];return i},t.arrayRemove=function(o,i){for(let a=0;o.length>=a;a++)i===o[a]&&o.splice(a,1)},t.escapeRegExp=function(o){return o.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(o){return o.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(o,i){let a=[];return o.replace(i,function(l){a.push({offset:arguments[arguments.length-2],length:l.length})}),a},t.deferredCall=function(o){var i=null,a=function(){i=null,o()},l=function(s){return l.cancel(),i=setTimeout(a,s||0),l};return l.schedule=l,l.call=function(){return this.cancel(),o(),l},l.cancel=function(){return clearTimeout(i),i=null,l},l.isPending=function(){return i},l},t.delayedCall=function(o,i){let a=null,l=function(){a=null,o()},s=function(c){a==null&&(a=setTimeout(l,c||i))};return s.delay=function(c){a&&clearTimeout(a),a=setTimeout(l,c||i)},s.schedule=s,s.call=function(){this.cancel(),o()},s.cancel=function(){a&&clearTimeout(a),a=null},s.isPending=function(){return a},s}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(e,t){e("../range").Range;let n=e("../document").Document,r=e("../lib/lang"),o=t.Mirror=function(i){this.sender=i;let a=this.doc=new n(""),l=this.deferredUpdate=r.delayedCall(this.onUpdate.bind(this)),s=this;i.on("change",function(c){let u=c.data;if(u[0].start)a.applyDeltas(u);else for(var f=0;u.length>f;f+=2){if(Array.isArray(u[f+1]))var d={action:"insert",start:u[f],lines:u[f+1]};else var d={action:"remove",start:u[f],end:u[f+1]};a.applyDelta(d,!0)}return s.$timeout?l.schedule(s.$timeout):(s.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(i){this.$timeout=i},this.setValue=function(i){this.doc.setValue(i),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(i){this.sender.callback(this.doc.getValue(),i)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(g){try{return Object.defineProperty(g,"sentinel",{}),"sentinel"in g}catch(w){}}function n(g){return g=+g,g!==g?g=0:g!==0&&g!==1/0&&g!==-1/0&&(g=(g>0||-1)*Math.floor(Math.abs(g))),g}Function.prototype.bind||(Function.prototype.bind=function(g){let w=this;if(typeof w!="function")throw new TypeError("Function.prototype.bind called on incompatible "+w);var E=f.call(arguments,1),S=function(){if(this instanceof S){let C=w.apply(this,E.concat(f.call(arguments)));return Object(C)===C?C:this}return w.apply(g,E.concat(f.call(arguments)))};return w.prototype&&(e.prototype=w.prototype,S.prototype=new e,e.prototype=null),S});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),b=s.bind(u.hasOwnProperty);if((l=b(u,"__defineGetter__"))&&(r=s.bind(u.__defineGetter__),o=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),a=s.bind(u.__lookupSetter__)),[1,2].splice(0).length!=2)if(function(){function g(S){var C=Array(S+2);return C[0]=C[1]=0,C}var w,E=[];return E.splice.apply(E,g(20)),E.splice.apply(E,g(26)),w=E.length,E.splice(5,0,"XXX"),w+1==E.length?!0:void 0}()){var x=Array.prototype.splice;Array.prototype.splice=function(g,w){return arguments.length?x.apply(this,[g===void 0?0:g,w===void 0?this.length-g:w].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(g,w){var E=this.length;g>0?g>E&&(g=E):g==null?g=0:0>g&&(g=Math.max(E+g,0)),E>g+w||(w=E-g);var S=this.slice(g,g+w),C=f.call(arguments,2),T=C.length;if(g===E)T&&this.push.apply(this,C);else{var M=Math.min(w,E-g),N=g+M,R=N+T-M,D=E-N,V=E-M;if(N>R)for(var Z=0;D>Z;++Z)this[R+Z]=this[N+Z];else if(R>N)for(Z=D;Z--;)this[R+Z]=this[N+Z];if(T&&g===V)this.length=V,this.push.apply(this,C);else for(this.length=V+T,Z=0;T>Z;++Z)this[g+Z]=C[Z]}return S};Array.isArray||(Array.isArray=function(g){return d(g)=="[object Array]"});let O=Object("a"),h=O[0]!="a"||!(0 in O);if(Array.prototype.forEach||(Array.prototype.forEach=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,S=arguments[1],C=-1,T=E.length>>>0;if(d(g)!="[object Function]")throw new TypeError;for(;T>++C;)C in E&&g.call(S,E[C],C,w)}),Array.prototype.map||(Array.prototype.map=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,S=E.length>>>0,C=Array(S),T=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let M=0;S>M;M++)M in E&&(C[M]=g.call(T,E[M],M,w));return C}),Array.prototype.filter||(Array.prototype.filter=function(g){let w,E=m(this),S=h&&d(this)=="[object String]"?this.split(""):E,C=S.length>>>0,T=[],M=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let N=0;C>N;N++)N in S&&(w=S[N],g.call(M,w,N,E)&&T.push(w));return T}),Array.prototype.every||(Array.prototype.every=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,S=E.length>>>0,C=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let T=0;S>T;T++)if(T in E&&!g.call(C,E[T],T,w))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,S=E.length>>>0,C=arguments[1];if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");for(let T=0;S>T;T++)if(T in E&&g.call(C,E[T],T,w))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,S=E.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!S&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");let C,T=0;if(arguments.length>=2)C=arguments[1];else for(;;){if(T in E){C=E[T++];break}if(++T>=S)throw new TypeError("reduce of empty array with no initial value")}for(;S>T;T++)T in E&&(C=g.call(void 0,C,E[T],T,w));return C}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(g){let w=m(this),E=h&&d(this)=="[object String]"?this.split(""):w,S=E.length>>>0;if(d(g)!="[object Function]")throw new TypeError(g+" is not a function");if(!S&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");let C,T=S-1;if(arguments.length>=2)C=arguments[1];else for(;;){if(T in E){C=E[T--];break}if(0>--T)throw new TypeError("reduceRight of empty array with no initial value")}do T in this&&(C=g.call(void 0,C,E[T],T,w));while(T--);return C}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(g){let w=h&&d(this)=="[object String]"?this.split(""):m(this),E=w.length>>>0;if(!E)return-1;let S=0;for(arguments.length>1&&(S=n(arguments[1])),S=S>=0?S:Math.max(0,E+S);E>S;S++)if(S in w&&w[S]===g)return S;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(g){let w=h&&d(this)=="[object String]"?this.split(""):m(this),E=w.length>>>0;if(!E)return-1;let S=E-1;for(arguments.length>1&&(S=Math.min(S,n(arguments[1]))),S=S>=0?S:E-Math.abs(S);S>=0;S--)if(S in w&&g===w[S])return S;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(g){return g.__proto__||(g.constructor?g.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){let g="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(w,E){if(typeof w!="object"&&typeof w!="function"||w===null)throw new TypeError(g+w);if(b(w,E)){var S,C,T;if(S={enumerable:!0,configurable:!0},l){let M=w.__proto__;w.__proto__=u;var C=i(w,E),T=a(w,E);if(w.__proto__=M,C||T)return C&&(S.get=C),T&&(S.set=T),S}return S.value=w[E],S}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(g){return Object.keys(g)}),!Object.create){let g;g=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){let w={};for(let E in w)w[E]=null;return w.constructor=w.hasOwnProperty=w.propertyIsEnumerable=w.isPrototypeOf=w.toLocaleString=w.toString=w.valueOf=w.__proto__=null,w},Object.create=function(w,E){let S;if(w===null)S=g();else{if(typeof w!="object")throw new TypeError("typeof prototype["+typeof w+"] != 'object'");let C=function(){};C.prototype=w,S=new C,S.__proto__=w}return E!==void 0&&Object.defineProperties(S,E),S}}if(Object.defineProperty){let g=t({}),w=typeof document=="undefined"||t(document.createElement("div"));if(!g||!w)var y=Object.defineProperty}if(!Object.defineProperty||y){let g="Property description must be an object: ",w="Object.defineProperty called on non-object: ",E="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(S,C,T){if(typeof S!="object"&&typeof S!="function"||S===null)throw new TypeError(w+S);if(typeof T!="object"&&typeof T!="function"||T===null)throw new TypeError(g+T);if(y)try{return y.call(Object,S,C,T)}catch(N){}if(b(T,"value"))if(l&&(i(S,C)||a(S,C))){var M=S.__proto__;S.__proto__=u,delete S[C],S[C]=T.value,S.__proto__=M}else S[C]=T.value;else{if(!l)throw new TypeError(E);b(T,"get")&&r(S,C,T.get),b(T,"set")&&o(S,C,T.set)}return S}}Object.defineProperties||(Object.defineProperties=function(g,w){for(let E in w)b(w,E)&&Object.defineProperty(g,E,w[E]);return g}),Object.seal||(Object.seal=function(g){return g}),Object.freeze||(Object.freeze=function(g){return g});try{Object.freeze(function(){})}catch(g){Object.freeze=function(w){return function(E){return typeof E=="function"?E:w(E)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(g){return g}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(g){if(Object(g)===g)throw new TypeError;for(var w="";b(g,w);)w+="?";g[w]=!0;let E=b(g,w);return delete g[w],E}),!Object.keys){let g=!0,w=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],E=w.length;for(let S in{toString:null})g=!1;Object.keys=function(S){if(typeof S!="object"&&typeof S!="function"||S===null)throw new TypeError("Object.keys called on a non-object");let C=[];for(let R in S)b(S,R)&&C.push(R);if(g)for(var T=0,M=E;M>T;T++){var N=w[T];b(S,N)&&C.push(N)}return C}}Date.now||(Date.now=function(){return new Date().getTime()});let p=`
312
- v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||p.trim()){p="["+p+"]";let g=RegExp("^"+p+p+"*"),w=RegExp(p+p+"*$");String.prototype.trim=function(){return(this+"").replace(g,"").replace(w,"")}}var m=function(g){if(g==null)throw new TypeError("can't convert "+g+" to object");return Object(g)}});const G8=(Ue.exports==null?{}:Ue.exports).default||Ue.exports,K8=(Ue.exports==null?{}:Ue.exports).inherits,X8=(Ue.exports==null?{}:Ue.exports).mixin,Y8=(Ue.exports==null?{}:Ue.exports).implement,J8=(Ue.exports==null?{}:Ue.exports).Range,Q8=(Ue.exports==null?{}:Ue.exports).applyDelta,Z8=(Ue.exports==null?{}:Ue.exports).EventEmitter,e5=(Ue.exports==null?{}:Ue.exports).Anchor,t5=(Ue.exports==null?{}:Ue.exports).Document,n5=(Ue.exports==null?{}:Ue.exports).last,r5=(Ue.exports==null?{}:Ue.exports).stringReverse,o5=(Ue.exports==null?{}:Ue.exports).stringRepeat,i5=(Ue.exports==null?{}:Ue.exports).stringTrimLeft,a5=(Ue.exports==null?{}:Ue.exports).stringTrimRight,s5=(Ue.exports==null?{}:Ue.exports).copyObject,l5=(Ue.exports==null?{}:Ue.exports).copyArray,c5=(Ue.exports==null?{}:Ue.exports).deepCopy,u5=(Ue.exports==null?{}:Ue.exports).arrayToMap,d5=(Ue.exports==null?{}:Ue.exports).createMap,f5=(Ue.exports==null?{}:Ue.exports).arrayRemove,p5=(Ue.exports==null?{}:Ue.exports).escapeRegExp,h5=(Ue.exports==null?{}:Ue.exports).escapeHTML,m5=(Ue.exports==null?{}:Ue.exports).getMatchOffsets,g5=(Ue.exports==null?{}:Ue.exports).deferredCall,v5=(Ue.exports==null?{}:Ue.exports).delayedCall,_5=(Ue.exports==null?{}:Ue.exports).Mirror,y5=Object.freeze(Object.defineProperty({__proto__:null,Anchor:e5,Document:t5,EventEmitter:Z8,Mirror:_5,Range:J8,applyDelta:Q8,arrayRemove:f5,arrayToMap:u5,copyArray:l5,copyObject:s5,createMap:d5,deepCopy:c5,default:G8,deferredCall:g5,delayedCall:v5,escapeHTML:h5,escapeRegExp:p5,getMatchOffsets:m5,implement:Y8,inherits:K8,last:n5,mixin:X8,stringRepeat:o5,stringReverse:r5,stringTrimLeft:i5,stringTrimRight:a5},Symbol.toStringTag,{value:"Module"}));var He={exports:{}};(function(e){function t(o,i){for(var a=o,l="";a;){var s=i[a];if(typeof s=="string")return s+l;if(s)return s.location.replace(/\/*$/,"/")+(l||s.main||s.name);if(s===!1)return"";var c=a.lastIndexOf("/");if(c===-1)break;l=a.substr(c)+l,a=a.slice(0,c)}return o}if(!(e.window!==void 0&&e.document||e.acequire&&e.define)){e.console||(e.console=function(){var o=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:o})},e.console.error=e.console.warn=e.console.log=e.console.trace=e.console),e.window=e,e.ace=e,e.onerror=function(o,i,a,l,s){postMessage({type:"error",data:{message:o,data:s.data,file:i,line:a,col:l,stack:s.stack}})},e.normalizeModule=function(o,i){if(i.indexOf("!")!==-1){var a=i.split("!");return e.normalizeModule(o,a[0])+"!"+e.normalizeModule(o,a[1])}if(i.charAt(0)=="."){var l=o.split("/").slice(0,-1).join("/");for(i=(l?l+"/":"")+i;i.indexOf(".")!==-1&&s!=i;){var s=i;i=i.replace(/^\.\//,"").replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}}return i},e.acequire=function(i,a){if(a||(a=i,i=null),!a.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");a=e.normalizeModule(i,a);var l=e.acequire.modules[a];if(l)return l.initialized||(l.initialized=!0,l.exports=l.factory().exports),l.exports;if(!e.acequire.tlns)return console.log("unable to load "+a);var s=t(a,e.acequire.tlns);return s.slice(-3)!=".js"&&(s+=".js"),e.acequire.id=a,e.acequire.modules[a]={},importScripts(s),e.acequire(i,a)},e.acequire.modules={},e.acequire.tlns={},e.define=function(o,i,a){if(arguments.length==2?(a=i,typeof o!="string"&&(i=o,o=e.acequire.id)):arguments.length==1&&(a=o,i=[],o=e.acequire.id),typeof a!="function")return e.acequire.modules[o]={exports:a,initialized:!0},void 0;i.length||(i=["require","exports","module"]);var l=function(s){return e.acequire(o,s)};e.acequire.modules[o]={exports:{},factory:function(){var s=this,c=a.apply(this,i.map(function(u){switch(u){case"require":return l;case"exports":return s.exports;case"module":return s;default:return l(u)}}));return c&&(s.exports=c),s}}},e.define.amd={},acequire.tlns={},e.initBaseUrls=function(o){for(var i in o)acequire.tlns[i]=o[i]},e.initSender=function(){var o=e.acequire("ace/lib/event_emitter").EventEmitter,i=e.acequire("ace/lib/oop"),a=function(){};return function(){i.implement(this,o),this.callback=function(l,s){postMessage({type:"call",id:s,data:l})},this.emit=function(l,s){postMessage({type:"event",name:l,data:s})}}.call(a.prototype),new a};var n=e.main=null,r=e.sender=null;e.onmessage=function(o){var i=o.data;if(i.event&&r)r._signal(i.event,i.data);else if(i.command)if(n[i.command])n[i.command].apply(n,i.args);else{if(!e[i.command])throw Error("Unknown command:"+i.command);e[i.command].apply(e,i.args)}else if(i.init){e.initBaseUrls(i.tlns),acequire("ace/lib/es5-shim"),r=e.sender=e.initSender();var a=acequire(i.module)[i.classname];n=e.main=new a(r)}}}})(void 0),ace.define("ace/lib/oop",["require","exports","module"],function(e,t){t.inherits=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(n,r){for(var o in r)n[o]=r[o];return n},t.implement=function(n,r){t.mixin(n,r)}}),ace.define("ace/range",["require","exports","module"],function(e,t){var n=function(o,i){return o.row-i.row||o.column-i.column},r=function(o,i,a,l){this.start={row:o,column:i},this.end={row:a,column:l}};(function(){this.isEqual=function(o){return this.start.row===o.start.row&&this.end.row===o.end.row&&this.start.column===o.start.column&&this.end.column===o.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(o,i){return this.compare(o,i)==0},this.compareRange=function(o){var i,a=o.end,l=o.start;return i=this.compare(a.row,a.column),i==1?(i=this.compare(l.row,l.column),i==1?2:i==0?1:0):i==-1?-2:(i=this.compare(l.row,l.column),i==-1?-1:i==1?42:0)},this.comparePoint=function(o){return this.compare(o.row,o.column)},this.containsRange=function(o){return this.comparePoint(o.start)==0&&this.comparePoint(o.end)==0},this.intersects=function(o){var i=this.compareRange(o);return i==-1||i==0||i==1},this.isEnd=function(o,i){return this.end.row==o&&this.end.column==i},this.isStart=function(o,i){return this.start.row==o&&this.start.column==i},this.setStart=function(o,i){typeof o=="object"?(this.start.column=o.column,this.start.row=o.row):(this.start.row=o,this.start.column=i)},this.setEnd=function(o,i){typeof o=="object"?(this.end.column=o.column,this.end.row=o.row):(this.end.row=o,this.end.column=i)},this.inside=function(o,i){return this.compare(o,i)==0?!(this.isEnd(o,i)||this.isStart(o,i)):!1},this.insideStart=function(o,i){return this.compare(o,i)==0?!this.isEnd(o,i):!1},this.insideEnd=function(o,i){return this.compare(o,i)==0?!this.isStart(o,i):!1},this.compare=function(o,i){return this.isMultiLine()||o!==this.start.row?this.start.row>o?-1:o>this.end.row?1:this.start.row===o?i>=this.start.column?0:-1:this.end.row===o?this.end.column>=i?0:1:0:this.start.column>i?-1:i>this.end.column?1:0},this.compareStart=function(o,i){return this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.compareEnd=function(o,i){return this.end.row==o&&this.end.column==i?1:this.compare(o,i)},this.compareInside=function(o,i){return this.end.row==o&&this.end.column==i?1:this.start.row==o&&this.start.column==i?-1:this.compare(o,i)},this.clipRows=function(o,i){if(this.end.row>i)var a={row:i+1,column:0};else if(o>this.end.row)var a={row:o,column:0};if(this.start.row>i)var l={row:i+1,column:0};else if(o>this.start.row)var l={row:o,column:0};return r.fromPoints(l||this.start,a||this.end)},this.extend=function(o,i){var a=this.compare(o,i);if(a==0)return this;if(a==-1)var l={row:o,column:i};else var s={row:o,column:i};return r.fromPoints(l||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return this.end.column==0?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(o){var i=o.documentToScreenPosition(this.start),a=o.documentToScreenPosition(this.end);return new r(i.row,i.column,a.row,a.column)},this.moveBy=function(o,i){this.start.row+=o,this.start.column+=i,this.end.row+=o,this.end.column+=i}}).call(r.prototype),r.fromPoints=function(o,i){return new r(o.row,o.column,i.row,i.column)},r.comparePoints=n,r.comparePoints=function(o,i){return o.row-i.row||o.column-i.column},t.Range=r}),ace.define("ace/apply_delta",["require","exports","module"],function(e,t){t.applyDelta=function(n,r){var o=r.start.row,i=r.start.column,a=n[o]||"";switch(r.action){case"insert":var l=r.lines;if(l.length===1)n[o]=a.substring(0,i)+r.lines[0]+a.substring(i);else{var s=[o,1].concat(r.lines);n.splice.apply(n,s),n[o]=a.substring(0,i)+n[o],n[o+r.lines.length-1]+=a.substring(i)}break;case"remove":var c=r.end.column,u=r.end.row;o===u?n[o]=a.substring(0,i)+a.substring(c):n.splice(o,u-o+1,a.substring(0,i)+n[u].substring(c))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t){var n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(i,a){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var l=this._eventRegistry[i]||[],s=this._defaultHandlers[i];if(l.length||s){typeof a=="object"&&a||(a={}),a.type||(a.type=i),a.stopPropagation||(a.stopPropagation=r),a.preventDefault||(a.preventDefault=o),l=l.slice();for(var c=0;l.length>c&&(l[c](a,this),!a.propagationStopped);c++);return s&&!a.defaultPrevented?s(a,this):void 0}},n._signal=function(i,a){var l=(this._eventRegistry||{})[i];if(l){l=l.slice();for(var s=0;l.length>s;s++)l[s](a,this)}},n.once=function(i,a){var l=this;a&&this.addEventListener(i,function s(){l.removeEventListener(i,s),a.apply(null,arguments)})},n.setDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l||(l=this._defaultHandlers={_disabled_:{}}),l[i]){var s=l[i],c=l._disabled_[i];c||(l._disabled_[i]=c=[]),c.push(s);var u=c.indexOf(a);u!=-1&&c.splice(u,1)}l[i]=a},n.removeDefaultHandler=function(i,a){var l=this._defaultHandlers;if(l){var s=l._disabled_[i];if(l[i]==a)l[i],s&&this.setDefaultHandler(i,s.pop());else if(s){var c=s.indexOf(a);c!=-1&&s.splice(c,1)}}},n.on=n.addEventListener=function(i,a,l){this._eventRegistry=this._eventRegistry||{};var s=this._eventRegistry[i];return s||(s=this._eventRegistry[i]=[]),s.indexOf(a)==-1&&s[l?"unshift":"push"](a),a},n.off=n.removeListener=n.removeEventListener=function(i,a){this._eventRegistry=this._eventRegistry||{};var l=this._eventRegistry[i];if(l){var s=l.indexOf(a);s!==-1&&l.splice(s,1)}},n.removeAllListeners=function(i){this._eventRegistry&&(this._eventRegistry[i]=[])},t.EventEmitter=n}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t){var n=e("./lib/oop"),r=e("./lib/event_emitter").EventEmitter,o=t.Anchor=function(i,a,l){this.$onChange=this.onChange.bind(this),this.attach(i),l===void 0?this.setPosition(a.row,a.column):this.setPosition(a,l)};(function(){function i(l,s,c){var u=c?l.column<=s.column:l.column<s.column;return l.row<s.row||l.row==s.row&&u}function a(l,s,c){var u=l.action=="insert",f=(u?1:-1)*(l.end.row-l.start.row),d=(u?1:-1)*(l.end.column-l.start.column),b=l.start,x=u?b:l.end;return i(s,b,c)?{row:s.row,column:s.column}:i(x,s,!c)?{row:s.row+f,column:s.column+(s.row==x.row?d:0)}:{row:b.row,column:b.column}}n.implement(this,r),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row||l.start.row>this.row)){var s=a(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(s.row,s.column,!0)}},this.setPosition=function(l,s,c){var u;if(u=c?{row:l,column:s}:this.$clipPositionToDocument(l,s),this.row!=u.row||this.column!=u.column){var f={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:f,value:u})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(l,s){var c={};return l>=this.document.getLength()?(c.row=Math.max(0,this.document.getLength()-1),c.column=this.document.getLine(c.row).length):0>l?(c.row=0,c.column=0):(c.row=l,c.column=Math.min(this.document.getLine(c.row).length,Math.max(0,s))),0>s&&(c.column=0),c}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t){var n=e("./lib/oop"),r=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,i=e("./range").Range,a=e("./anchor").Anchor,l=function(s){this.$lines=[""],s.length===0?this.$lines=[""]:Array.isArray(s)?this.insertMergedLines({row:0,column:0},s):this.insert({row:0,column:0},s)};(function(){n.implement(this,o),this.setValue=function(s){var c=this.getLength()-1;this.remove(new i(0,0,c,this.getLine(c).length)),this.insert({row:0,column:0},s)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(s,c){return new a(this,s,c)},this.$split="aaa".split(/a/).length===0?function(s){return s.replace(/\r\n|\r/g,`
313
- `).split(`
314
- `)}:function(s){return s.split(/\r\n|\r|\n/)},this.$detectNewLine=function(s){var c=s.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=c?c[1]:`
315
- `,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r
316
- `;case"unix":return`
317
- `;default:return this.$autoNewLine||`
318
- `}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(s){this.$newLineMode!==s&&(this.$newLineMode=s,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(s){return s==`\r
319
- `||s=="\r"||s==`
320
- `},this.getLine=function(s){return this.$lines[s]||""},this.getLines=function(s,c){return this.$lines.slice(s,c+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(s){return this.getLinesForRange(s).join(this.getNewLineCharacter())},this.getLinesForRange=function(s){var c;if(s.start.row===s.end.row)c=[this.getLine(s.start.row).substring(s.start.column,s.end.column)];else{c=this.getLines(s.start.row,s.end.row),c[0]=(c[0]||"").substring(s.start.column);var u=c.length-1;s.end.row-s.start.row==u&&(c[u]=c[u].substring(0,s.end.column))}return c},this.insertLines=function(s,c){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(s,c)},this.removeLines=function(s,c){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(s,c)},this.insertNewLine=function(s){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(s,["",""])},this.insert=function(s,c){return 1>=this.getLength()&&this.$detectNewLine(c),this.insertMergedLines(s,this.$split(c))},this.insertInLine=function(s,c){var u=this.clippedPos(s.row,s.column),f=this.pos(s.row,s.column+c.length);return this.applyDelta({start:u,end:f,action:"insert",lines:[c]},!0),this.clonePos(f)},this.clippedPos=function(s,c){var u=this.getLength();s===void 0?s=u:0>s?s=0:s>=u&&(s=u-1,c=void 0);var f=this.getLine(s);return c==null&&(c=f.length),c=Math.min(Math.max(c,0),f.length),{row:s,column:c}},this.clonePos=function(s){return{row:s.row,column:s.column}},this.pos=function(s,c){return{row:s,column:c}},this.$clipPosition=function(s){var c=this.getLength();return s.row>=c?(s.row=Math.max(0,c-1),s.column=this.getLine(c-1).length):(s.row=Math.max(0,s.row),s.column=Math.min(Math.max(s.column,0),this.getLine(s.row).length)),s},this.insertFullLines=function(s,c){s=Math.min(Math.max(s,0),this.getLength());var u=0;this.getLength()>s?(c=c.concat([""]),u=0):(c=[""].concat(c),s--,u=this.$lines[s].length),this.insertMergedLines({row:s,column:u},c)},this.insertMergedLines=function(s,c){var u=this.clippedPos(s.row,s.column),f={row:u.row+c.length-1,column:(c.length==1?u.column:0)+c[c.length-1].length};return this.applyDelta({start:u,end:f,action:"insert",lines:c}),this.clonePos(f)},this.remove=function(s){var c=this.clippedPos(s.start.row,s.start.column),u=this.clippedPos(s.end.row,s.end.column);return this.applyDelta({start:c,end:u,action:"remove",lines:this.getLinesForRange({start:c,end:u})}),this.clonePos(c)},this.removeInLine=function(s,c,u){var f=this.clippedPos(s,c),d=this.clippedPos(s,u);return this.applyDelta({start:f,end:d,action:"remove",lines:this.getLinesForRange({start:f,end:d})},!0),this.clonePos(f)},this.removeFullLines=function(s,c){s=Math.min(Math.max(0,s),this.getLength()-1),c=Math.min(Math.max(0,c),this.getLength()-1);var u=c==this.getLength()-1&&s>0,f=this.getLength()-1>c,d=u?s-1:s,b=u?this.getLine(d).length:0,x=f?c+1:c,O=f?0:this.getLine(x).length,h=new i(d,b,x,O),y=this.$lines.slice(s,c+1);return this.applyDelta({start:h.start,end:h.end,action:"remove",lines:this.getLinesForRange(h)}),y},this.removeNewLine=function(s){this.getLength()-1>s&&s>=0&&this.applyDelta({start:this.pos(s,this.getLine(s).length),end:this.pos(s+1,0),action:"remove",lines:["",""]})},this.replace=function(s,c){return s instanceof i||(s=i.fromPoints(s.start,s.end)),c.length===0&&s.isEmpty()?s.start:c==this.getTextRange(s)?s.end:(this.remove(s),c?this.insert(s.start,c):s.start)},this.applyDeltas=function(s){for(var c=0;s.length>c;c++)this.applyDelta(s[c])},this.revertDeltas=function(s){for(var c=s.length-1;c>=0;c--)this.revertDelta(s[c])},this.applyDelta=function(s,c){var u=s.action=="insert";(u?1>=s.lines.length&&!s.lines[0]:!i.comparePoints(s.start,s.end))||(u&&s.lines.length>2e4&&this.$splitAndapplyLargeDelta(s,2e4),r(this.$lines,s,c),this._signal("change",s))},this.$splitAndapplyLargeDelta=function(s,c){for(var u=s.lines,f=u.length,d=s.start.row,b=s.start.column,x=0,O=0;;){x=O,O+=c-1;var h=u.slice(x,O);if(O>f){s.lines=h,s.start.row=d+x,s.start.column=b;break}h.push(""),this.applyDelta({start:this.pos(d+x,b),end:this.pos(d+O,b=0),action:s.action,lines:h},!0)}},this.revertDelta=function(s){this.applyDelta({start:this.clonePos(s.start),end:this.clonePos(s.end),action:s.action=="insert"?"remove":"insert",lines:s.lines.slice()})},this.indexToPosition=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=c||0,b=u.length;b>d;d++)if(s-=u[d].length+f,0>s)return{row:d,column:s+u[d].length+f};return{row:b-1,column:u[b-1].length}},this.positionToIndex=function(s,c){for(var u=this.$lines||this.getAllLines(),f=this.getNewLineCharacter().length,d=0,b=Math.min(s.row,u.length),x=c||0;b>x;++x)d+=u[x].length+f;return d+s.column}}).call(l.prototype),t.Document=l}),ace.define("ace/lib/lang",["require","exports","module"],function(e,t){t.last=function(o){return o[o.length-1]},t.stringReverse=function(o){return o.split("").reverse().join("")},t.stringRepeat=function(o,i){for(var a="";i>0;)1&i&&(a+=o),(i>>=1)&&(o+=o);return a};var n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(o){return o.replace(n,"")},t.stringTrimRight=function(o){return o.replace(r,"")},t.copyObject=function(o){var i={};for(var a in o)i[a]=o[a];return i},t.copyArray=function(o){for(var i=[],a=0,l=o.length;l>a;a++)i[a]=o[a]&&typeof o[a]=="object"?this.copyObject(o[a]):o[a];return i},t.deepCopy=function o(i){if(typeof i!="object"||!i)return i;var a;if(Array.isArray(i)){a=[];for(var l=0;i.length>l;l++)a[l]=o(i[l]);return a}if(Object.prototype.toString.call(i)!=="[object Object]")return i;a={};for(var l in i)a[l]=o(i[l]);return a},t.arrayToMap=function(o){for(var i={},a=0;o.length>a;a++)i[o[a]]=1;return i},t.createMap=function(o){var i=Object.create(null);for(var a in o)i[a]=o[a];return i},t.arrayRemove=function(o,i){for(var a=0;o.length>=a;a++)i===o[a]&&o.splice(a,1)},t.escapeRegExp=function(o){return o.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(o){return o.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(o,i){var a=[];return o.replace(i,function(l){a.push({offset:arguments[arguments.length-2],length:l.length})}),a},t.deferredCall=function(o){var i=null,a=function(){i=null,o()},l=function(s){return l.cancel(),i=setTimeout(a,s||0),l};return l.schedule=l,l.call=function(){return this.cancel(),o(),l},l.cancel=function(){return clearTimeout(i),i=null,l},l.isPending=function(){return i},l},t.delayedCall=function(o,i){var a=null,l=function(){a=null,o()},s=function(c){a==null&&(a=setTimeout(l,c||i))};return s.delay=function(c){a&&clearTimeout(a),a=setTimeout(l,c||i)},s.schedule=s,s.call=function(){this.cancel(),o()},s.cancel=function(){a&&clearTimeout(a),a=null},s.isPending=function(){return a},s}}),ace.define("ace/worker/mirror",["require","exports","module","ace/range","ace/document","ace/lib/lang"],function(e,t){e("../range").Range;var n=e("../document").Document,r=e("../lib/lang"),o=t.Mirror=function(i){this.sender=i;var a=this.doc=new n(""),l=this.deferredUpdate=r.delayedCall(this.onUpdate.bind(this)),s=this;i.on("change",function(c){var u=c.data;if(u[0].start)a.applyDeltas(u);else for(var f=0;u.length>f;f+=2){if(Array.isArray(u[f+1]))var d={action:"insert",start:u[f],lines:u[f+1]};else var d={action:"remove",start:u[f],end:u[f+1]};a.applyDelta(d,!0)}return s.$timeout?l.schedule(s.$timeout):(s.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(i){this.$timeout=i},this.setValue=function(i){this.doc.setValue(i),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(i){this.sender.callback(this.doc.getValue(),i)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(o.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){var e,t,n,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
321
- `,r:"\r",t:" "},i=function(h){throw{name:"SyntaxError",message:h,at:e,text:n}},a=function(h){t=n.charAt(h),e=h+1},l=function(h){return h&&h!==t&&i("Expected '"+h+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(h,y){let p=e,m=n.indexOf(h,p);return m<0&&i(y),a(m+h.length),n.substring(p,m)},c=function(h){return n.substr(e,h.length)===h},u=function(){var h,y="";for(t==="-"&&(y="-",l("-"));t>="0"&&"9">=t;)y+=t,l();if(t===".")for(y+=".";l()&&t>="0"&&"9">=t;)y+=t;if(t==="e"||t==="E")for(y+=t,l(),(t==="-"||t==="+")&&(y+=t,l());t>="0"&&"9">=t;)y+=t,l();return h=+y,isNaN(h)?(i("Bad number"),void 0):h},f=function(){var h,y,p,m="";if(t==='"'){if(c('""'))return l('"'),l('"'),s('"""',`failed to find closing '"""'`);for(;l();){if(t==='"')return l(),m;if(t==="\\")if(l(),t==="u"){for(p=0,y=0;4>y&&(h=parseInt(l(),16),isFinite(h));y+=1)p=16*p+h;m+=String.fromCharCode(p)}else{if(typeof o[t]!="string")break;m+=o[t]}else m+=t}}i("Bad string")},d=function(){for(;t&&" ">=t;)l()},b=function(){switch(t){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}i("Unexpected '"+t+"'")},x=function(){var h=[];if(t==="["){if(l("["),d(),t==="]")return l("]"),h;for(;t;){if(h.push(r()),d(),t==="]")return l("]"),h;l(","),d()}}i("Bad array")},O=function(){var h,y={};if(t==="{"){if(l("{"),d(),t==="}")return l("}"),y;for(;t;){if(h=f(),d(),l(":"),Object.hasOwnProperty.call(y,h)&&i('Duplicate key "'+h+'"'),y[h]=r(),d(),t==="}")return l("}"),y;l(","),d()}}i("Bad object")};return r=function(){switch(d(),t){case"{":return O();case"[":return x();case'"':return f();case"-":return u();default:return t>="0"&&"9">=t?u():b()}},function(h,y){var p;return n=h,e=0,t=" ",p=r(),d(),t&&i("Syntax error"),typeof y=="function"?function m(g,w){var E,S,C=g[w];if(C&&typeof C=="object")for(E in C)Object.hasOwnProperty.call(C,E)&&(S=m(C,E),S!==void 0?C[E]=S:delete C[E]);return y.call(g,w,C)}({"":p},""):p}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(e,t){var n=e("../lib/oop"),r=e("../worker/mirror").Mirror,o=e("./json/json_parse"),i=t.JsonWorker=function(a){r.call(this,a),this.setTimeout(200)};n.inherits(i,r),function(){this.onUpdate=function(){var a=this.doc.getValue(),l=[];try{a&&o(a)}catch(c){var s=this.doc.indexToPosition(c.at-1);l.push({row:s.row,column:s.column,text:c.message,type:"error"})}this.sender.emit("annotate",l)}}.call(i.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function e(){}function t(I){try{return Object.defineProperty(I,"sentinel",{}),"sentinel"in I}catch(U){}}function n(I){return I=+I,I!==I?I=0:I!==0&&I!==1/0&&I!==-1/0&&(I=(I>0||-1)*Math.floor(Math.abs(I))),I}Function.prototype.bind||(Function.prototype.bind=function(I){var U=this;if(typeof U!="function")throw new TypeError("Function.prototype.bind called on incompatible "+U);var K=f.call(arguments,1),z=function(){if(this instanceof z){var G=U.apply(this,K.concat(f.call(arguments)));return Object(G)===G?G:this}return U.apply(I,K.concat(f.call(arguments)))};return U.prototype&&(e.prototype=U.prototype,z.prototype=new e,e.prototype=null),z});var r,o,i,a,l,s=Function.prototype.call,c=Array.prototype,u=Object.prototype,f=c.slice,d=s.bind(u.toString),b=s.bind(u.hasOwnProperty);if((l=b(u,"__defineGetter__"))&&(r=s.bind(u.__defineGetter__),o=s.bind(u.__defineSetter__),i=s.bind(u.__lookupGetter__),a=s.bind(u.__lookupSetter__)),[1,2].splice(0).length!=2)if(function(){function I(z){var G=Array(z+2);return G[0]=G[1]=0,G}var U,K=[];return K.splice.apply(K,I(20)),K.splice.apply(K,I(26)),U=K.length,K.splice(5,0,"XXX"),U+1==K.length?!0:void 0}()){var x=Array.prototype.splice;Array.prototype.splice=function(I,U){return arguments.length?x.apply(this,[I===void 0?0:I,U===void 0?this.length-I:U].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(I,U){var K=this.length;I>0?I>K&&(I=K):I==null?I=0:0>I&&(I=Math.max(K+I,0)),K>I+U||(U=K-I);var z=this.slice(I,I+U),G=f.call(arguments,2),L=G.length;if(I===K)L&&this.push.apply(this,G);else{var F=Math.min(U,K-I),X=I+F,te=X+L-F,H=K-X,W=K-F;if(X>te)for(var Q=0;H>Q;++Q)this[te+Q]=this[X+Q];else if(te>X)for(Q=H;Q--;)this[te+Q]=this[X+Q];if(L&&I===W)this.length=W,this.push.apply(this,G);else for(this.length=W+L,Q=0;L>Q;++Q)this[I+Q]=G[Q]}return z};Array.isArray||(Array.isArray=function(I){return d(I)=="[object Array]"});var O=Object("a"),h=O[0]!="a"||!(0 in O);if(Array.prototype.forEach||(Array.prototype.forEach=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=arguments[1],G=-1,L=K.length>>>0;if(d(I)!="[object Function]")throw new TypeError;for(;L>++G;)G in K&&I.call(z,K[G],G,U)}),Array.prototype.map||(Array.prototype.map=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0,G=Array(z),L=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var F=0;z>F;F++)F in K&&(G[F]=I.call(L,K[F],F,U));return G}),Array.prototype.filter||(Array.prototype.filter=function(I){var U,K=J(this),z=h&&d(this)=="[object String]"?this.split(""):K,G=z.length>>>0,L=[],F=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var X=0;G>X;X++)X in z&&(U=z[X],I.call(F,U,X,K)&&L.push(U));return L}),Array.prototype.every||(Array.prototype.every=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0,G=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var L=0;z>L;L++)if(L in K&&!I.call(G,K[L],L,U))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0,G=arguments[1];if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");for(var L=0;z>L;L++)if(L in K&&I.call(G,K[L],L,U))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0;if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");if(!z&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var G,L=0;if(arguments.length>=2)G=arguments[1];else for(;;){if(L in K){G=K[L++];break}if(++L>=z)throw new TypeError("reduce of empty array with no initial value")}for(;z>L;L++)L in K&&(G=I.call(void 0,G,K[L],L,U));return G}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(I){var U=J(this),K=h&&d(this)=="[object String]"?this.split(""):U,z=K.length>>>0;if(d(I)!="[object Function]")throw new TypeError(I+" is not a function");if(!z&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var G,L=z-1;if(arguments.length>=2)G=arguments[1];else for(;;){if(L in K){G=K[L--];break}if(0>--L)throw new TypeError("reduceRight of empty array with no initial value")}do L in this&&(G=I.call(void 0,G,K[L],L,U));while(L--);return G}),Array.prototype.indexOf&&[0,1].indexOf(1,2)==-1||(Array.prototype.indexOf=function(I){var U=h&&d(this)=="[object String]"?this.split(""):J(this),K=U.length>>>0;if(!K)return-1;var z=0;for(arguments.length>1&&(z=n(arguments[1])),z=z>=0?z:Math.max(0,K+z);K>z;z++)if(z in U&&U[z]===I)return z;return-1}),Array.prototype.lastIndexOf&&[0,1].lastIndexOf(0,-3)==-1||(Array.prototype.lastIndexOf=function(I){var U=h&&d(this)=="[object String]"?this.split(""):J(this),K=U.length>>>0;if(!K)return-1;var z=K-1;for(arguments.length>1&&(z=Math.min(z,n(arguments[1]))),z=z>=0?z:K-Math.abs(z);z>=0;z--)if(z in U&&I===U[z])return z;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(I){return I.__proto__||(I.constructor?I.constructor.prototype:u)}),!Object.getOwnPropertyDescriptor){var y="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(I,U){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError(y+I);if(b(I,U)){var K,z,G;if(K={enumerable:!0,configurable:!0},l){var L=I.__proto__;I.__proto__=u;var z=i(I,U),G=a(I,U);if(I.__proto__=L,z||G)return z&&(K.get=z),G&&(K.set=G),K}return K.value=I[U],K}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(I){return Object.keys(I)}),!Object.create){var p;p=Object.prototype.__proto__===null?function(){return{__proto__:null}}:function(){var I={};for(var U in I)I[U]=null;return I.constructor=I.hasOwnProperty=I.propertyIsEnumerable=I.isPrototypeOf=I.toLocaleString=I.toString=I.valueOf=I.__proto__=null,I},Object.create=function(I,U){var K;if(I===null)K=p();else{if(typeof I!="object")throw new TypeError("typeof prototype["+typeof I+"] != 'object'");var z=function(){};z.prototype=I,K=new z,K.__proto__=I}return U!==void 0&&Object.defineProperties(K,U),K}}if(Object.defineProperty){var m=t({}),g=typeof document=="undefined"||t(document.createElement("div"));if(!m||!g)var w=Object.defineProperty}if(!Object.defineProperty||w){var E="Property description must be an object: ",S="Object.defineProperty called on non-object: ",C="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(I,U,K){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError(S+I);if(typeof K!="object"&&typeof K!="function"||K===null)throw new TypeError(E+K);if(w)try{return w.call(Object,I,U,K)}catch(G){}if(b(K,"value"))if(l&&(i(I,U)||a(I,U))){var z=I.__proto__;I.__proto__=u,delete I[U],I[U]=K.value,I.__proto__=z}else I[U]=K.value;else{if(!l)throw new TypeError(C);b(K,"get")&&r(I,U,K.get),b(K,"set")&&o(I,U,K.set)}return I}}Object.defineProperties||(Object.defineProperties=function(I,U){for(var K in U)b(U,K)&&Object.defineProperty(I,K,U[K]);return I}),Object.seal||(Object.seal=function(I){return I}),Object.freeze||(Object.freeze=function(I){return I});try{Object.freeze(function(){})}catch(I){Object.freeze=function(U){return function(K){return typeof K=="function"?K:U(K)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(I){return I}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(I){if(Object(I)===I)throw new TypeError;for(var U="";b(I,U);)U+="?";I[U]=!0;var K=b(I,U);return delete I[U],K}),!Object.keys){var T=!0,M=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],N=M.length;for(var R in{toString:null})T=!1;Object.keys=function(I){if(typeof I!="object"&&typeof I!="function"||I===null)throw new TypeError("Object.keys called on a non-object");var U=[];for(var K in I)b(I,K)&&U.push(K);if(T)for(var z=0,G=N;G>z;z++){var L=M[z];b(I,L)&&U.push(L)}return U}}Date.now||(Date.now=function(){return new Date().getTime()});var D=`
322
- \v\f\r   ᠎              \u2028\u2029\uFEFF`;if(!String.prototype.trim||D.trim()){D="["+D+"]";var V=RegExp("^"+D+D+"*"),Z=RegExp(D+D+"*$");String.prototype.trim=function(){return(this+"").replace(V,"").replace(Z,"")}}var J=function(I){if(I==null)throw new TypeError("can't convert "+I+" to object");return Object(I)}});const b5=(He.exports==null?{}:He.exports).default||He.exports,w5=(He.exports==null?{}:He.exports).inherits,x5=(He.exports==null?{}:He.exports).mixin,S5=(He.exports==null?{}:He.exports).implement,C5=(He.exports==null?{}:He.exports).Range,E5=(He.exports==null?{}:He.exports).applyDelta,O5=(He.exports==null?{}:He.exports).EventEmitter,$5=(He.exports==null?{}:He.exports).Anchor,T5=(He.exports==null?{}:He.exports).Document,P5=(He.exports==null?{}:He.exports).last,R5=(He.exports==null?{}:He.exports).stringReverse,j5=(He.exports==null?{}:He.exports).stringRepeat,M5=(He.exports==null?{}:He.exports).stringTrimLeft,I5=(He.exports==null?{}:He.exports).stringTrimRight,A5=(He.exports==null?{}:He.exports).copyObject,N5=(He.exports==null?{}:He.exports).copyArray,k5=(He.exports==null?{}:He.exports).deepCopy,L5=(He.exports==null?{}:He.exports).arrayToMap,F5=(He.exports==null?{}:He.exports).createMap,D5=(He.exports==null?{}:He.exports).arrayRemove,B5=(He.exports==null?{}:He.exports).escapeRegExp,z5=(He.exports==null?{}:He.exports).escapeHTML,q5=(He.exports==null?{}:He.exports).getMatchOffsets,V5=(He.exports==null?{}:He.exports).deferredCall,H5=(He.exports==null?{}:He.exports).delayedCall,W5=(He.exports==null?{}:He.exports).Mirror,U5=(He.exports==null?{}:He.exports).JsonWorker,G5=Object.freeze(Object.defineProperty({__proto__:null,Anchor:$5,Document:T5,EventEmitter:O5,JsonWorker:U5,Mirror:W5,Range:C5,applyDelta:E5,arrayRemove:D5,arrayToMap:L5,copyArray:N5,copyObject:A5,createMap:F5,deepCopy:k5,default:b5,deferredCall:V5,delayedCall:H5,escapeHTML:z5,escapeRegExp:B5,getMatchOffsets:q5,implement:S5,inherits:w5,last:P5,mixin:x5,stringRepeat:j5,stringReverse:R5,stringTrimLeft:M5,stringTrimRight:I5},Symbol.toStringTag,{value:"Module"}));return Qz}(React18,classNames,reResizable,reactDnd,reactDndHtml5Backend,ReactDOM18,require$$9,ace$1,reactIntl,_,$,queryString,null,null,immer,rxjs,uuid$1);
323
- //# sourceMappingURL=webCli.iife.js.map