react-start-kit 1.0.0

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 (531) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +99 -0
  3. package/dist/accordion/index.cjs.js +2 -0
  4. package/dist/accordion/index.cjs.js.map +1 -0
  5. package/dist/accordion/index.es.js +287 -0
  6. package/dist/accordion/index.es.js.map +1 -0
  7. package/dist/alert/index.cjs.js +2 -0
  8. package/dist/alert/index.cjs.js.map +1 -0
  9. package/dist/alert/index.es.js +8 -0
  10. package/dist/alert/index.es.js.map +1 -0
  11. package/dist/alert-dialog/index.cjs.js +2 -0
  12. package/dist/alert-dialog/index.cjs.js.map +1 -0
  13. package/dist/alert-dialog/index.es.js +15 -0
  14. package/dist/alert-dialog/index.es.js.map +1 -0
  15. package/dist/avatar/index.cjs.js +2 -0
  16. package/dist/avatar/index.cjs.js.map +1 -0
  17. package/dist/avatar/index.es.js +8 -0
  18. package/dist/avatar/index.es.js.map +1 -0
  19. package/dist/badge/index.cjs.js +2 -0
  20. package/dist/badge/index.cjs.js.map +1 -0
  21. package/dist/badge/index.es.js +6 -0
  22. package/dist/badge/index.es.js.map +1 -0
  23. package/dist/breadcrumb/index.cjs.js +2 -0
  24. package/dist/breadcrumb/index.cjs.js.map +1 -0
  25. package/dist/breadcrumb/index.es.js +10 -0
  26. package/dist/breadcrumb/index.es.js.map +1 -0
  27. package/dist/button/index.cjs.js +2 -0
  28. package/dist/button/index.cjs.js.map +1 -0
  29. package/dist/button/index.es.js +11 -0
  30. package/dist/button/index.es.js.map +1 -0
  31. package/dist/calendar/index.cjs.js +2 -0
  32. package/dist/calendar/index.cjs.js.map +1 -0
  33. package/dist/calendar/index.es.js +11 -0
  34. package/dist/calendar/index.es.js.map +1 -0
  35. package/dist/card/index.cjs.js +2 -0
  36. package/dist/card/index.cjs.js.map +1 -0
  37. package/dist/card/index.es.js +10 -0
  38. package/dist/card/index.es.js.map +1 -0
  39. package/dist/carousel/index.cjs.js +12 -0
  40. package/dist/carousel/index.cjs.js.map +1 -0
  41. package/dist/carousel/index.es.js +1441 -0
  42. package/dist/carousel/index.es.js.map +1 -0
  43. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js +2 -0
  44. package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.js.map +1 -0
  45. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js +9 -0
  46. package/dist/chunks/_commonjsHelpers-DaMA6jEr.es.js.map +1 -0
  47. package/dist/chunks/alert-B9rImkiX.es.js +53 -0
  48. package/dist/chunks/alert-B9rImkiX.es.js.map +1 -0
  49. package/dist/chunks/alert-BNcf_eJn.cjs.js +2 -0
  50. package/dist/chunks/alert-BNcf_eJn.cjs.js.map +1 -0
  51. package/dist/chunks/alert-dialog-BfBtlIHj.cjs.js +8 -0
  52. package/dist/chunks/alert-dialog-BfBtlIHj.cjs.js.map +1 -0
  53. package/dist/chunks/alert-dialog-BrCPhmhd.es.js +209 -0
  54. package/dist/chunks/alert-dialog-BrCPhmhd.es.js.map +1 -0
  55. package/dist/chunks/avatar-CQMWDnOM.cjs.js +18 -0
  56. package/dist/chunks/avatar-CQMWDnOM.cjs.js.map +1 -0
  57. package/dist/chunks/avatar-zl4cf4c2.es.js +333 -0
  58. package/dist/chunks/avatar-zl4cf4c2.es.js.map +1 -0
  59. package/dist/chunks/badge-1ocx6hox.cjs.js +2 -0
  60. package/dist/chunks/badge-1ocx6hox.cjs.js.map +1 -0
  61. package/dist/chunks/badge-CPzxgRrM.es.js +75 -0
  62. package/dist/chunks/badge-CPzxgRrM.es.js.map +1 -0
  63. package/dist/chunks/breadcrumb-BrMrkZfa.es.js +82 -0
  64. package/dist/chunks/breadcrumb-BrMrkZfa.es.js.map +1 -0
  65. package/dist/chunks/breadcrumb-iPT-f06l.cjs.js +2 -0
  66. package/dist/chunks/breadcrumb-iPT-f06l.cjs.js.map +1 -0
  67. package/dist/chunks/button-CpKtD3qG.cjs.js +2 -0
  68. package/dist/chunks/button-CpKtD3qG.cjs.js.map +1 -0
  69. package/dist/chunks/button-DTRIYqDb.es.js +50 -0
  70. package/dist/chunks/button-DTRIYqDb.es.js.map +1 -0
  71. package/dist/chunks/button-group-B4h4-5eB.es.js +76 -0
  72. package/dist/chunks/button-group-B4h4-5eB.es.js.map +1 -0
  73. package/dist/chunks/button-group-CaFYso6b.cjs.js +2 -0
  74. package/dist/chunks/button-group-CaFYso6b.cjs.js.map +1 -0
  75. package/dist/chunks/card-B1sx5mON.cjs.js +2 -0
  76. package/dist/chunks/card-B1sx5mON.cjs.js.map +1 -0
  77. package/dist/chunks/card-BJ0eqFqO.es.js +74 -0
  78. package/dist/chunks/card-BJ0eqFqO.es.js.map +1 -0
  79. package/dist/chunks/check-B6UTraXT.cjs.js +7 -0
  80. package/dist/chunks/check-B6UTraXT.cjs.js.map +1 -0
  81. package/dist/chunks/check-DFKaRaBZ.es.js +12 -0
  82. package/dist/chunks/check-DFKaRaBZ.es.js.map +1 -0
  83. package/dist/chunks/chevron-down-DDxUy1A2.es.js +12 -0
  84. package/dist/chunks/chevron-down-DDxUy1A2.es.js.map +1 -0
  85. package/dist/chunks/chevron-down-T-PkxHnH.cjs.js +7 -0
  86. package/dist/chunks/chevron-down-T-PkxHnH.cjs.js.map +1 -0
  87. package/dist/chunks/chevron-left-B_pqqZqr.cjs.js +7 -0
  88. package/dist/chunks/chevron-left-B_pqqZqr.cjs.js.map +1 -0
  89. package/dist/chunks/chevron-left-CfOUdNQ0.es.js +12 -0
  90. package/dist/chunks/chevron-left-CfOUdNQ0.es.js.map +1 -0
  91. package/dist/chunks/chevron-right-BNG-Ugyb.es.js +12 -0
  92. package/dist/chunks/chevron-right-BNG-Ugyb.es.js.map +1 -0
  93. package/dist/chunks/chevron-right-BxyusM7v.cjs.js +7 -0
  94. package/dist/chunks/chevron-right-BxyusM7v.cjs.js.map +1 -0
  95. package/dist/chunks/circle--GxygOe5.es.js +12 -0
  96. package/dist/chunks/circle--GxygOe5.es.js.map +1 -0
  97. package/dist/chunks/circle-DjcntFbc.cjs.js +7 -0
  98. package/dist/chunks/circle-DjcntFbc.cjs.js.map +1 -0
  99. package/dist/chunks/collapsible-CBOSWBKB.cjs.js +2 -0
  100. package/dist/chunks/collapsible-CBOSWBKB.cjs.js.map +1 -0
  101. package/dist/chunks/collapsible-Ddd6kxXS.es.js +35 -0
  102. package/dist/chunks/collapsible-Ddd6kxXS.es.js.map +1 -0
  103. package/dist/chunks/createLucideIcon-CyFYF6Ug.es.js +124 -0
  104. package/dist/chunks/createLucideIcon-CyFYF6Ug.es.js.map +1 -0
  105. package/dist/chunks/createLucideIcon-HtK0p34L.cjs.js +42 -0
  106. package/dist/chunks/createLucideIcon-HtK0p34L.cjs.js.map +1 -0
  107. package/dist/chunks/dialog-BWF5BkHj.cjs.js +2 -0
  108. package/dist/chunks/dialog-BWF5BkHj.cjs.js.map +1 -0
  109. package/dist/chunks/dialog-D9BMBoAJ.es.js +105 -0
  110. package/dist/chunks/dialog-D9BMBoAJ.es.js.map +1 -0
  111. package/dist/chunks/dropdown-menu-Bu9wADja.cjs.js +2 -0
  112. package/dist/chunks/dropdown-menu-Bu9wADja.cjs.js.map +1 -0
  113. package/dist/chunks/dropdown-menu-CcnxQ7Zj.es.js +980 -0
  114. package/dist/chunks/dropdown-menu-CcnxQ7Zj.es.js.map +1 -0
  115. package/dist/chunks/ellipsis-9FjKj8zv.es.js +16 -0
  116. package/dist/chunks/ellipsis-9FjKj8zv.es.js.map +1 -0
  117. package/dist/chunks/ellipsis-FJjSjEdP.cjs.js +7 -0
  118. package/dist/chunks/ellipsis-FJjSjEdP.cjs.js.map +1 -0
  119. package/dist/chunks/index-BKZjW6I1.es.js +692 -0
  120. package/dist/chunks/index-BKZjW6I1.es.js.map +1 -0
  121. package/dist/chunks/index-BVqmUhu5.es.js +221 -0
  122. package/dist/chunks/index-BVqmUhu5.es.js.map +1 -0
  123. package/dist/chunks/index-BdfbDt7y.es.js +64 -0
  124. package/dist/chunks/index-BdfbDt7y.es.js.map +1 -0
  125. package/dist/chunks/index-Bli6ZByj.es.js +1571 -0
  126. package/dist/chunks/index-Bli6ZByj.es.js.map +1 -0
  127. package/dist/chunks/index-Br4MVOGV.es.js +12 -0
  128. package/dist/chunks/index-Br4MVOGV.es.js.map +1 -0
  129. package/dist/chunks/index-BruMW80s.cjs.js +2 -0
  130. package/dist/chunks/index-BruMW80s.cjs.js.map +1 -0
  131. package/dist/chunks/index-C28jaZCP.cjs.js +2 -0
  132. package/dist/chunks/index-C28jaZCP.cjs.js.map +1 -0
  133. package/dist/chunks/index-C8ni3LLa.cjs.js +2 -0
  134. package/dist/chunks/index-C8ni3LLa.cjs.js.map +1 -0
  135. package/dist/chunks/index-CGLGXpw0.cjs.js +2 -0
  136. package/dist/chunks/index-CGLGXpw0.cjs.js.map +1 -0
  137. package/dist/chunks/index-CItoM52t.cjs.js +2 -0
  138. package/dist/chunks/index-CItoM52t.cjs.js.map +1 -0
  139. package/dist/chunks/index-CJ0fGifh.cjs.js +2 -0
  140. package/dist/chunks/index-CJ0fGifh.cjs.js.map +1 -0
  141. package/dist/chunks/index-CMEUY8i_.cjs.js +2 -0
  142. package/dist/chunks/index-CMEUY8i_.cjs.js.map +1 -0
  143. package/dist/chunks/index-CN4RxFxN.cjs.js +2 -0
  144. package/dist/chunks/index-CN4RxFxN.cjs.js.map +1 -0
  145. package/dist/chunks/index-CNbacFZ5.es.js +116 -0
  146. package/dist/chunks/index-CNbacFZ5.es.js.map +1 -0
  147. package/dist/chunks/index-CbjDVb-G.es.js +93 -0
  148. package/dist/chunks/index-CbjDVb-G.es.js.map +1 -0
  149. package/dist/chunks/index-ClNIHY-1.es.js +134 -0
  150. package/dist/chunks/index-ClNIHY-1.es.js.map +1 -0
  151. package/dist/chunks/index-Clo5BFLY.es.js +32 -0
  152. package/dist/chunks/index-Clo5BFLY.es.js.map +1 -0
  153. package/dist/chunks/index-CtCzh8NB.cjs.js +6 -0
  154. package/dist/chunks/index-CtCzh8NB.cjs.js.map +1 -0
  155. package/dist/chunks/index-D9zW9Tk7.cjs.js +2 -0
  156. package/dist/chunks/index-D9zW9Tk7.cjs.js.map +1 -0
  157. package/dist/chunks/index-DBXFJW5M.es.js +11 -0
  158. package/dist/chunks/index-DBXFJW5M.es.js.map +1 -0
  159. package/dist/chunks/index-DG15yxNP.cjs.js +42 -0
  160. package/dist/chunks/index-DG15yxNP.cjs.js.map +1 -0
  161. package/dist/chunks/index-DGEvZwN5.cjs.js +2 -0
  162. package/dist/chunks/index-DGEvZwN5.cjs.js.map +1 -0
  163. package/dist/chunks/index-DLcqcWxM.es.js +30 -0
  164. package/dist/chunks/index-DLcqcWxM.es.js.map +1 -0
  165. package/dist/chunks/index-DNQZbZsM.es.js +179 -0
  166. package/dist/chunks/index-DNQZbZsM.es.js.map +1 -0
  167. package/dist/chunks/index-DnRKXUWD.cjs.js +2 -0
  168. package/dist/chunks/index-DnRKXUWD.cjs.js.map +1 -0
  169. package/dist/chunks/index-Dt3MSLsk.es.js +7 -0
  170. package/dist/chunks/index-Dt3MSLsk.es.js.map +1 -0
  171. package/dist/chunks/index-DvGm4EwH.es.js +62 -0
  172. package/dist/chunks/index-DvGm4EwH.es.js.map +1 -0
  173. package/dist/chunks/index-DwYXX2sM.es.js +14 -0
  174. package/dist/chunks/index-DwYXX2sM.es.js.map +1 -0
  175. package/dist/chunks/index-is755vrc.cjs.js +2 -0
  176. package/dist/chunks/index-is755vrc.cjs.js.map +1 -0
  177. package/dist/chunks/index-jFOWwfD3.cjs.js +2 -0
  178. package/dist/chunks/index-jFOWwfD3.cjs.js.map +1 -0
  179. package/dist/chunks/index-pF_O2Ico.cjs.js +2 -0
  180. package/dist/chunks/index-pF_O2Ico.cjs.js.map +1 -0
  181. package/dist/chunks/index-pQxT4IlV.cjs.js +2 -0
  182. package/dist/chunks/index-pQxT4IlV.cjs.js.map +1 -0
  183. package/dist/chunks/index-rKs9bXHr.es.js +7 -0
  184. package/dist/chunks/index-rKs9bXHr.es.js.map +1 -0
  185. package/dist/chunks/index-xA4mlFw5.es.js +35 -0
  186. package/dist/chunks/index-xA4mlFw5.es.js.map +1 -0
  187. package/dist/chunks/index-x_Mxo00P.cjs.js +2 -0
  188. package/dist/chunks/index-x_Mxo00P.cjs.js.map +1 -0
  189. package/dist/chunks/index-xl-szYFX.es.js +290 -0
  190. package/dist/chunks/index-xl-szYFX.es.js.map +1 -0
  191. package/dist/chunks/pagination-DFYeehFF.es.js +113 -0
  192. package/dist/chunks/pagination-DFYeehFF.es.js.map +1 -0
  193. package/dist/chunks/pagination-LHTb7tXo.cjs.js +2 -0
  194. package/dist/chunks/pagination-LHTb7tXo.cjs.js.map +1 -0
  195. package/dist/chunks/popover-Bh6emR_J.cjs.js +2 -0
  196. package/dist/chunks/popover-Bh6emR_J.cjs.js.map +1 -0
  197. package/dist/chunks/popover-BredK0sg.es.js +285 -0
  198. package/dist/chunks/popover-BredK0sg.es.js.map +1 -0
  199. package/dist/chunks/scroll-area-CwWjTiks.es.js +555 -0
  200. package/dist/chunks/scroll-area-CwWjTiks.es.js.map +1 -0
  201. package/dist/chunks/scroll-area-Nj6J9MqV.cjs.js +2 -0
  202. package/dist/chunks/scroll-area-Nj6J9MqV.cjs.js.map +1 -0
  203. package/dist/chunks/select-BTgKkicD.es.js +1404 -0
  204. package/dist/chunks/select-BTgKkicD.es.js.map +1 -0
  205. package/dist/chunks/select-D703Xctn.cjs.js +7 -0
  206. package/dist/chunks/select-D703Xctn.cjs.js.map +1 -0
  207. package/dist/chunks/separator-CGvV-BlI.cjs.js +2 -0
  208. package/dist/chunks/separator-CGvV-BlI.cjs.js.map +1 -0
  209. package/dist/chunks/separator-CgP4OHOF.es.js +67 -0
  210. package/dist/chunks/separator-CgP4OHOF.es.js.map +1 -0
  211. package/dist/chunks/sheet-BL1AP0aU.cjs.js +2 -0
  212. package/dist/chunks/sheet-BL1AP0aU.cjs.js.map +1 -0
  213. package/dist/chunks/sheet-CKsRhiVy.es.js +136 -0
  214. package/dist/chunks/sheet-CKsRhiVy.es.js.map +1 -0
  215. package/dist/chunks/skeleton-C7pnV7bc.cjs.js +2 -0
  216. package/dist/chunks/skeleton-C7pnV7bc.cjs.js.map +1 -0
  217. package/dist/chunks/skeleton-DKbF2Fso.es.js +18 -0
  218. package/dist/chunks/skeleton-DKbF2Fso.es.js.map +1 -0
  219. package/dist/chunks/table-BTb0KUhR.es.js +90 -0
  220. package/dist/chunks/table-BTb0KUhR.es.js.map +1 -0
  221. package/dist/chunks/table-Dxainp0Z.cjs.js +2 -0
  222. package/dist/chunks/table-Dxainp0Z.cjs.js.map +1 -0
  223. package/dist/chunks/tabs-BnamvF0S.es.js +317 -0
  224. package/dist/chunks/tabs-BnamvF0S.es.js.map +1 -0
  225. package/dist/chunks/tabs-CDt2LiNL.cjs.js +6 -0
  226. package/dist/chunks/tabs-CDt2LiNL.cjs.js.map +1 -0
  227. package/dist/chunks/textarea-4zXXFdLZ.cjs.js +187 -0
  228. package/dist/chunks/textarea-4zXXFdLZ.cjs.js.map +1 -0
  229. package/dist/chunks/textarea-CBSWNU0D.es.js +17234 -0
  230. package/dist/chunks/textarea-CBSWNU0D.es.js.map +1 -0
  231. package/dist/chunks/timepicker-CVkum2UK.es.js +3394 -0
  232. package/dist/chunks/timepicker-CVkum2UK.es.js.map +1 -0
  233. package/dist/chunks/timepicker-nlKbDl_W.cjs.js +7 -0
  234. package/dist/chunks/timepicker-nlKbDl_W.cjs.js.map +1 -0
  235. package/dist/chunks/tooltip-CsZB0nVr.cjs.js +2 -0
  236. package/dist/chunks/tooltip-CsZB0nVr.cjs.js.map +1 -0
  237. package/dist/chunks/tooltip-Dtzkuphk.es.js +341 -0
  238. package/dist/chunks/tooltip-Dtzkuphk.es.js.map +1 -0
  239. package/dist/chunks/utils-C4d7Ql9-.cjs.js +2 -0
  240. package/dist/chunks/utils-C4d7Ql9-.cjs.js.map +1 -0
  241. package/dist/chunks/utils-CnvKSirc.es.js +2778 -0
  242. package/dist/chunks/utils-CnvKSirc.es.js.map +1 -0
  243. package/dist/chunks/x-8d8XBbXN.es.js +15 -0
  244. package/dist/chunks/x-8d8XBbXN.es.js.map +1 -0
  245. package/dist/chunks/x-Ev63aQi_.cjs.js +7 -0
  246. package/dist/chunks/x-Ev63aQi_.cjs.js.map +1 -0
  247. package/dist/collapsible/index.cjs.js +2 -0
  248. package/dist/collapsible/index.cjs.js.map +1 -0
  249. package/dist/collapsible/index.es.js +7 -0
  250. package/dist/collapsible/index.es.js.map +1 -0
  251. package/dist/dialog/index.cjs.js +2 -0
  252. package/dist/dialog/index.cjs.js.map +1 -0
  253. package/dist/dialog/index.es.js +14 -0
  254. package/dist/dialog/index.es.js.map +1 -0
  255. package/dist/dropdown/index.cjs.js +2 -0
  256. package/dist/dropdown/index.cjs.js.map +1 -0
  257. package/dist/dropdown/index.es.js +19 -0
  258. package/dist/dropdown/index.es.js.map +1 -0
  259. package/dist/form/index.cjs.js +2 -0
  260. package/dist/form/index.cjs.js.map +1 -0
  261. package/dist/form/index.es.js +36 -0
  262. package/dist/form/index.es.js.map +1 -0
  263. package/dist/index.cjs.js +2 -0
  264. package/dist/index.cjs.js.map +1 -0
  265. package/dist/index.es.js +171 -0
  266. package/dist/index.es.js.map +1 -0
  267. package/dist/pagination/index.cjs.js +2 -0
  268. package/dist/pagination/index.cjs.js.map +1 -0
  269. package/dist/pagination/index.es.js +11 -0
  270. package/dist/pagination/index.es.js.map +1 -0
  271. package/dist/popover/index.cjs.js +2 -0
  272. package/dist/popover/index.cjs.js.map +1 -0
  273. package/dist/popover/index.es.js +7 -0
  274. package/dist/popover/index.es.js.map +1 -0
  275. package/dist/progress/index.cjs.js +7 -0
  276. package/dist/progress/index.cjs.js.map +1 -0
  277. package/dist/progress/index.es.js +194 -0
  278. package/dist/progress/index.es.js.map +1 -0
  279. package/dist/scroll-area/index.cjs.js +2 -0
  280. package/dist/scroll-area/index.cjs.js.map +1 -0
  281. package/dist/scroll-area/index.es.js +6 -0
  282. package/dist/scroll-area/index.es.js.map +1 -0
  283. package/dist/separator/index.cjs.js +2 -0
  284. package/dist/separator/index.cjs.js.map +1 -0
  285. package/dist/separator/index.es.js +5 -0
  286. package/dist/separator/index.es.js.map +1 -0
  287. package/dist/sheet/index.cjs.js +2 -0
  288. package/dist/sheet/index.cjs.js.map +1 -0
  289. package/dist/sheet/index.es.js +12 -0
  290. package/dist/sheet/index.es.js.map +1 -0
  291. package/dist/skeleton/index.cjs.js +2 -0
  292. package/dist/skeleton/index.cjs.js.map +1 -0
  293. package/dist/skeleton/index.es.js +5 -0
  294. package/dist/skeleton/index.es.js.map +1 -0
  295. package/dist/styles.css +7 -0
  296. package/dist/tab/index.cjs.js +2 -0
  297. package/dist/tab/index.cjs.js.map +1 -0
  298. package/dist/tab/index.es.js +8 -0
  299. package/dist/tab/index.es.js.map +1 -0
  300. package/dist/table/index.cjs.js +2 -0
  301. package/dist/table/index.cjs.js.map +1 -0
  302. package/dist/table/index.es.js +12 -0
  303. package/dist/table/index.es.js.map +1 -0
  304. package/dist/tooltip/index.cjs.js +2 -0
  305. package/dist/tooltip/index.cjs.js.map +1 -0
  306. package/dist/tooltip/index.es.js +8 -0
  307. package/dist/tooltip/index.es.js.map +1 -0
  308. package/dist/types/App.d.ts +9 -0
  309. package/dist/types/App.d.ts.map +1 -0
  310. package/dist/types/hooks/use-mobile.d.ts +8 -0
  311. package/dist/types/hooks/use-mobile.d.ts.map +1 -0
  312. package/dist/types/index.d.ts +28 -0
  313. package/dist/types/index.d.ts.map +1 -0
  314. package/dist/types/lib/day.d.ts +7 -0
  315. package/dist/types/lib/day.d.ts.map +1 -0
  316. package/dist/types/lib/index.d.ts +6 -0
  317. package/dist/types/lib/index.d.ts.map +1 -0
  318. package/dist/types/lib/utils.d.ts +10 -0
  319. package/dist/types/lib/utils.d.ts.map +1 -0
  320. package/dist/types/main.d.ts +1 -0
  321. package/dist/types/main.d.ts.map +1 -0
  322. package/dist/types/stories/Accordion.stories.d.ts +17 -0
  323. package/dist/types/stories/Accordion.stories.d.ts.map +1 -0
  324. package/dist/types/stories/Alert.stories.d.ts +26 -0
  325. package/dist/types/stories/Alert.stories.d.ts.map +1 -0
  326. package/dist/types/stories/AlertDialog.stories.d.ts +18 -0
  327. package/dist/types/stories/AlertDialog.stories.d.ts.map +1 -0
  328. package/dist/types/stories/Avatar.stories.d.ts +27 -0
  329. package/dist/types/stories/Avatar.stories.d.ts.map +1 -0
  330. package/dist/types/stories/Badge.stories.d.ts +44 -0
  331. package/dist/types/stories/Badge.stories.d.ts.map +1 -0
  332. package/dist/types/stories/Breadcrumb.stories.d.ts +20 -0
  333. package/dist/types/stories/Breadcrumb.stories.d.ts.map +1 -0
  334. package/dist/types/stories/Button.stories.d.ts +48 -0
  335. package/dist/types/stories/Button.stories.d.ts.map +1 -0
  336. package/dist/types/stories/ButtonGroup.stories.d.ts +29 -0
  337. package/dist/types/stories/ButtonGroup.stories.d.ts.map +1 -0
  338. package/dist/types/stories/Calendar.stories.d.ts +35 -0
  339. package/dist/types/stories/Calendar.stories.d.ts.map +1 -0
  340. package/dist/types/stories/Card.stories.d.ts +17 -0
  341. package/dist/types/stories/Card.stories.d.ts.map +1 -0
  342. package/dist/types/stories/Carousel.stories.d.ts +23 -0
  343. package/dist/types/stories/Carousel.stories.d.ts.map +1 -0
  344. package/dist/types/stories/Checkbox.stories.d.ts +31 -0
  345. package/dist/types/stories/Checkbox.stories.d.ts.map +1 -0
  346. package/dist/types/stories/Collapsible.stories.d.ts +17 -0
  347. package/dist/types/stories/Collapsible.stories.d.ts.map +1 -0
  348. package/dist/types/stories/DatePicker.stories.d.ts +14 -0
  349. package/dist/types/stories/DatePicker.stories.d.ts.map +1 -0
  350. package/dist/types/stories/Dialog.stories.d.ts +18 -0
  351. package/dist/types/stories/Dialog.stories.d.ts.map +1 -0
  352. package/dist/types/stories/DropdownMenu.stories.d.ts +17 -0
  353. package/dist/types/stories/DropdownMenu.stories.d.ts.map +1 -0
  354. package/dist/types/stories/FilepondContainer.stories.d.ts +21 -0
  355. package/dist/types/stories/FilepondContainer.stories.d.ts.map +1 -0
  356. package/dist/types/stories/Form.stories.d.ts +15 -0
  357. package/dist/types/stories/Form.stories.d.ts.map +1 -0
  358. package/dist/types/stories/HtmlEditor.stories.d.ts +27 -0
  359. package/dist/types/stories/HtmlEditor.stories.d.ts.map +1 -0
  360. package/dist/types/stories/Input.stories.d.ts +40 -0
  361. package/dist/types/stories/Input.stories.d.ts.map +1 -0
  362. package/dist/types/stories/Label.stories.d.ts +19 -0
  363. package/dist/types/stories/Label.stories.d.ts.map +1 -0
  364. package/dist/types/stories/MaskInput.stories.d.ts +115 -0
  365. package/dist/types/stories/MaskInput.stories.d.ts.map +1 -0
  366. package/dist/types/stories/Pagination.stories.d.ts +21 -0
  367. package/dist/types/stories/Pagination.stories.d.ts.map +1 -0
  368. package/dist/types/stories/Popover.stories.d.ts +17 -0
  369. package/dist/types/stories/Popover.stories.d.ts.map +1 -0
  370. package/dist/types/stories/Progress.stories.d.ts +33 -0
  371. package/dist/types/stories/Progress.stories.d.ts.map +1 -0
  372. package/dist/types/stories/RadioGroup.stories.d.ts +18 -0
  373. package/dist/types/stories/RadioGroup.stories.d.ts.map +1 -0
  374. package/dist/types/stories/ReactSelect.stories.d.ts +39 -0
  375. package/dist/types/stories/ReactSelect.stories.d.ts.map +1 -0
  376. package/dist/types/stories/ScrollArea.stories.d.ts +18 -0
  377. package/dist/types/stories/ScrollArea.stories.d.ts.map +1 -0
  378. package/dist/types/stories/Select.stories.d.ts +18 -0
  379. package/dist/types/stories/Select.stories.d.ts.map +1 -0
  380. package/dist/types/stories/Separator.stories.d.ts +28 -0
  381. package/dist/types/stories/Separator.stories.d.ts.map +1 -0
  382. package/dist/types/stories/Sheet.stories.d.ts +21 -0
  383. package/dist/types/stories/Sheet.stories.d.ts.map +1 -0
  384. package/dist/types/stories/Skeleton.stories.d.ts +22 -0
  385. package/dist/types/stories/Skeleton.stories.d.ts.map +1 -0
  386. package/dist/types/stories/Switch.stories.d.ts +29 -0
  387. package/dist/types/stories/Switch.stories.d.ts.map +1 -0
  388. package/dist/types/stories/Table.stories.d.ts +17 -0
  389. package/dist/types/stories/Table.stories.d.ts.map +1 -0
  390. package/dist/types/stories/Tabs.stories.d.ts +19 -0
  391. package/dist/types/stories/Tabs.stories.d.ts.map +1 -0
  392. package/dist/types/stories/Textarea.stories.d.ts +34 -0
  393. package/dist/types/stories/Textarea.stories.d.ts.map +1 -0
  394. package/dist/types/stories/TimePicker.stories.d.ts +33 -0
  395. package/dist/types/stories/TimePicker.stories.d.ts.map +1 -0
  396. package/dist/types/stories/Tooltip.stories.d.ts +27 -0
  397. package/dist/types/stories/Tooltip.stories.d.ts.map +1 -0
  398. package/dist/types/types/element-data.type.d.ts +8 -0
  399. package/dist/types/types/element-data.type.d.ts.map +1 -0
  400. package/dist/types/types/index.d.ts +2 -0
  401. package/dist/types/types/index.d.ts.map +1 -0
  402. package/dist/types/ui/accordion/accordion.d.ts +69 -0
  403. package/dist/types/ui/accordion/accordion.d.ts.map +1 -0
  404. package/dist/types/ui/accordion/index.d.ts +2 -0
  405. package/dist/types/ui/accordion/index.d.ts.map +1 -0
  406. package/dist/types/ui/alert/alert.d.ts +31 -0
  407. package/dist/types/ui/alert/alert.d.ts.map +1 -0
  408. package/dist/types/ui/alert/index.d.ts +2 -0
  409. package/dist/types/ui/alert/index.d.ts.map +1 -0
  410. package/dist/types/ui/alert-dialog/alert-dialog.d.ts +62 -0
  411. package/dist/types/ui/alert-dialog/alert-dialog.d.ts.map +1 -0
  412. package/dist/types/ui/alert-dialog/index.d.ts +2 -0
  413. package/dist/types/ui/alert-dialog/index.d.ts.map +1 -0
  414. package/dist/types/ui/avatar/avatar.d.ts +86 -0
  415. package/dist/types/ui/avatar/avatar.d.ts.map +1 -0
  416. package/dist/types/ui/avatar/index.d.ts +2 -0
  417. package/dist/types/ui/avatar/index.d.ts.map +1 -0
  418. package/dist/types/ui/badge/badge.d.ts +45 -0
  419. package/dist/types/ui/badge/badge.d.ts.map +1 -0
  420. package/dist/types/ui/badge/index.d.ts +2 -0
  421. package/dist/types/ui/badge/index.d.ts.map +1 -0
  422. package/dist/types/ui/breadcrumb/breadcrumb.d.ts +60 -0
  423. package/dist/types/ui/breadcrumb/breadcrumb.d.ts.map +1 -0
  424. package/dist/types/ui/breadcrumb/index.d.ts +2 -0
  425. package/dist/types/ui/breadcrumb/index.d.ts.map +1 -0
  426. package/dist/types/ui/button/button-group.d.ts +43 -0
  427. package/dist/types/ui/button/button-group.d.ts.map +1 -0
  428. package/dist/types/ui/button/button.d.ts +42 -0
  429. package/dist/types/ui/button/button.d.ts.map +1 -0
  430. package/dist/types/ui/button/index.d.ts +3 -0
  431. package/dist/types/ui/button/index.d.ts.map +1 -0
  432. package/dist/types/ui/calendar/calendar.d.ts +84 -0
  433. package/dist/types/ui/calendar/calendar.d.ts.map +1 -0
  434. package/dist/types/ui/calendar/datepicker.d.ts +8 -0
  435. package/dist/types/ui/calendar/datepicker.d.ts.map +1 -0
  436. package/dist/types/ui/calendar/index.d.ts +4 -0
  437. package/dist/types/ui/calendar/index.d.ts.map +1 -0
  438. package/dist/types/ui/calendar/timepicker.d.ts +38 -0
  439. package/dist/types/ui/calendar/timepicker.d.ts.map +1 -0
  440. package/dist/types/ui/card/card.d.ts +39 -0
  441. package/dist/types/ui/card/card.d.ts.map +1 -0
  442. package/dist/types/ui/card/index.d.ts +2 -0
  443. package/dist/types/ui/card/index.d.ts.map +1 -0
  444. package/dist/types/ui/carousel/carousel.d.ts +73 -0
  445. package/dist/types/ui/carousel/carousel.d.ts.map +1 -0
  446. package/dist/types/ui/carousel/index.d.ts +2 -0
  447. package/dist/types/ui/carousel/index.d.ts.map +1 -0
  448. package/dist/types/ui/collapsible/collapsible.d.ts +18 -0
  449. package/dist/types/ui/collapsible/collapsible.d.ts.map +1 -0
  450. package/dist/types/ui/collapsible/index.d.ts +2 -0
  451. package/dist/types/ui/collapsible/index.d.ts.map +1 -0
  452. package/dist/types/ui/dialog/dialog.d.ts +76 -0
  453. package/dist/types/ui/dialog/dialog.d.ts.map +1 -0
  454. package/dist/types/ui/dialog/index.d.ts +2 -0
  455. package/dist/types/ui/dialog/index.d.ts.map +1 -0
  456. package/dist/types/ui/dropdown/dropdown-menu.d.ts +88 -0
  457. package/dist/types/ui/dropdown/dropdown-menu.d.ts.map +1 -0
  458. package/dist/types/ui/dropdown/index.d.ts +2 -0
  459. package/dist/types/ui/dropdown/index.d.ts.map +1 -0
  460. package/dist/types/ui/form/checkbox.d.ts +16 -0
  461. package/dist/types/ui/form/checkbox.d.ts.map +1 -0
  462. package/dist/types/ui/form/filepond-container.d.ts +25 -0
  463. package/dist/types/ui/form/filepond-container.d.ts.map +1 -0
  464. package/dist/types/ui/form/form.d.ts +68 -0
  465. package/dist/types/ui/form/form.d.ts.map +1 -0
  466. package/dist/types/ui/form/html-editor.d.ts +38 -0
  467. package/dist/types/ui/form/html-editor.d.ts.map +1 -0
  468. package/dist/types/ui/form/index.d.ts +13 -0
  469. package/dist/types/ui/form/index.d.ts.map +1 -0
  470. package/dist/types/ui/form/input-mask.d.ts +111 -0
  471. package/dist/types/ui/form/input-mask.d.ts.map +1 -0
  472. package/dist/types/ui/form/input.d.ts +33 -0
  473. package/dist/types/ui/form/input.d.ts.map +1 -0
  474. package/dist/types/ui/form/label.d.ts +11 -0
  475. package/dist/types/ui/form/label.d.ts.map +1 -0
  476. package/dist/types/ui/form/radio-group.d.ts +25 -0
  477. package/dist/types/ui/form/radio-group.d.ts.map +1 -0
  478. package/dist/types/ui/form/react-select.d.ts +40 -0
  479. package/dist/types/ui/form/react-select.d.ts.map +1 -0
  480. package/dist/types/ui/form/select.d.ts +100 -0
  481. package/dist/types/ui/form/select.d.ts.map +1 -0
  482. package/dist/types/ui/form/switch.d.ts +16 -0
  483. package/dist/types/ui/form/switch.d.ts.map +1 -0
  484. package/dist/types/ui/form/textarea.d.ts +19 -0
  485. package/dist/types/ui/form/textarea.d.ts.map +1 -0
  486. package/dist/types/ui/pagination/index.d.ts +2 -0
  487. package/dist/types/ui/pagination/index.d.ts.map +1 -0
  488. package/dist/types/ui/pagination/pagination.d.ts +78 -0
  489. package/dist/types/ui/pagination/pagination.d.ts.map +1 -0
  490. package/dist/types/ui/popover/index.d.ts +2 -0
  491. package/dist/types/ui/popover/index.d.ts.map +1 -0
  492. package/dist/types/ui/popover/popover.d.ts +29 -0
  493. package/dist/types/ui/popover/popover.d.ts.map +1 -0
  494. package/dist/types/ui/progress/index.d.ts +2 -0
  495. package/dist/types/ui/progress/index.d.ts.map +1 -0
  496. package/dist/types/ui/progress/progress.d.ts +14 -0
  497. package/dist/types/ui/progress/progress.d.ts.map +1 -0
  498. package/dist/types/ui/scroll-area/index.d.ts +2 -0
  499. package/dist/types/ui/scroll-area/index.d.ts.map +1 -0
  500. package/dist/types/ui/scroll-area/scroll-area.d.ts +20 -0
  501. package/dist/types/ui/scroll-area/scroll-area.d.ts.map +1 -0
  502. package/dist/types/ui/separator/index.d.ts +2 -0
  503. package/dist/types/ui/separator/index.d.ts.map +1 -0
  504. package/dist/types/ui/separator/separator.d.ts +13 -0
  505. package/dist/types/ui/separator/separator.d.ts.map +1 -0
  506. package/dist/types/ui/sheet/index.d.ts +2 -0
  507. package/dist/types/ui/sheet/index.d.ts.map +1 -0
  508. package/dist/types/ui/sheet/sheet.d.ts +61 -0
  509. package/dist/types/ui/sheet/sheet.d.ts.map +1 -0
  510. package/dist/types/ui/skeleton/index.d.ts +2 -0
  511. package/dist/types/ui/skeleton/index.d.ts.map +1 -0
  512. package/dist/types/ui/skeleton/skeleton.d.ts +8 -0
  513. package/dist/types/ui/skeleton/skeleton.d.ts.map +1 -0
  514. package/dist/types/ui/tab/index.d.ts +2 -0
  515. package/dist/types/ui/tab/index.d.ts.map +1 -0
  516. package/dist/types/ui/tab/tabs.d.ts +50 -0
  517. package/dist/types/ui/tab/tabs.d.ts.map +1 -0
  518. package/dist/types/ui/table/index.d.ts +2 -0
  519. package/dist/types/ui/table/index.d.ts.map +1 -0
  520. package/dist/types/ui/table/table.d.ts +43 -0
  521. package/dist/types/ui/table/table.d.ts.map +1 -0
  522. package/dist/types/ui/tooltip/index.d.ts +2 -0
  523. package/dist/types/ui/tooltip/index.d.ts.map +1 -0
  524. package/dist/types/ui/tooltip/tooltip.d.ts +15 -0
  525. package/dist/types/ui/tooltip/tooltip.d.ts.map +1 -0
  526. package/dist/types/vite-env.d.ts +1 -0
  527. package/dist/utils/index.cjs.js +2 -0
  528. package/dist/utils/index.cjs.js.map +1 -0
  529. package/dist/utils/index.es.js +287 -0
  530. package/dist/utils/index.es.js.map +1 -0
  531. package/package.json +366 -0
@@ -0,0 +1,187 @@
1
+ "use strict";var Dp=Object.defineProperty;var Vp=(n,e,t)=>e in n?Dp(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Q=(n,e,t)=>Vp(n,typeof e!="symbol"?e+"":e,t);const K=require("react/jsx-runtime"),ee=require("react"),Vn=require("./index-jFOWwfD3.cjs.js"),Le=require("./index-D9zW9Tk7.cjs.js"),Il=require("./index-BruMW80s.cjs.js"),ce=require("./select-D703Xctn.cjs.js"),Vs=require("./index-CGLGXpw0.cjs.js"),xs=require("./index-is755vrc.cjs.js"),Be=require("./utils-C4d7Ql9-.cjs.js"),je=require("./index-DG15yxNP.cjs.js"),yd=require("./index-CMEUY8i_.cjs.js"),Al=require("react-hook-form"),Gp=require("react-dom"),El=require("./index-x_Mxo00P.cjs.js"),It=require("./_commonjsHelpers-DKOUU3wS.cjs.js"),Gs=require("./index-DGEvZwN5.cjs.js"),jp=require("./index-DnRKXUWD.cjs.js"),Hp=require("./circle-DjcntFbc.cjs.js"),Xp=require("./button-CpKtD3qG.cjs.js");function Wp(n){if(n&&n.__esModule)return n;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const L=Wp(ee);var js="Checkbox",[qp]=Le.createContextScope(js),[Zp,xl]=qp(js);function zp(n){const{__scopeCheckbox:e,checked:t,children:r,defaultChecked:i,disabled:s,form:a,name:o,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:h}=n,[f,p]=Il.useControllableState({prop:t,defaultProp:i??!1,onChange:l,caller:js}),[m,b]=L.useState(null),[y,v]=L.useState(null),S=L.useRef(!1),E=m?!!a||!!m.closest("form"):!0,x={checked:f,disabled:s,setChecked:p,control:m,setControl:b,name:o,form:a,value:d,hasConsumerStoppedPropagationRef:S,required:u,defaultChecked:gn(i)?!1:i,isFormControl:E,bubbleInput:y,setBubbleInput:v};return K.jsx(Zp,{scope:e,...x,children:$p(h)?h(x):r})}var Cd="CheckboxTrigger",Id=L.forwardRef(({__scopeCheckbox:n,onKeyDown:e,onClick:t,...r},i)=>{const{control:s,value:a,disabled:o,checked:l,required:u,setControl:d,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=xl(Cd,n),b=Vn.useComposedRefs(i,d),y=L.useRef(l);return L.useEffect(()=>{const v=s==null?void 0:s.form;if(v){const S=()=>h(y.current);return v.addEventListener("reset",S),()=>v.removeEventListener("reset",S)}},[s,h]),K.jsx(Le.Primitive.button,{type:"button",role:"checkbox","aria-checked":gn(l)?"mixed":l,"aria-required":u,"data-state":wd(l),"data-disabled":o?"":void 0,disabled:o,value:a,...r,ref:b,onKeyDown:Le.composeEventHandlers(e,v=>{v.key==="Enter"&&v.preventDefault()}),onClick:Le.composeEventHandlers(t,v=>{h(S=>gn(S)?!0:!S),m&&p&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})})});Id.displayName=Cd;var Sl=L.forwardRef((n,e)=>{const{__scopeCheckbox:t,name:r,checked:i,defaultChecked:s,required:a,disabled:o,value:l,onCheckedChange:u,form:d,...h}=n;return K.jsx(zp,{__scopeCheckbox:t,checked:i,defaultChecked:s,disabled:o,required:a,onCheckedChange:u,name:r,form:d,value:l,internal_do_not_use_render:({isFormControl:f})=>K.jsxs(K.Fragment,{children:[K.jsx(Id,{...h,ref:e,__scopeCheckbox:t}),f&&K.jsx(Sd,{__scopeCheckbox:t})]})})});Sl.displayName=js;var Ad="CheckboxIndicator",Ed=L.forwardRef((n,e)=>{const{__scopeCheckbox:t,forceMount:r,...i}=n,s=xl(Ad,t);return K.jsx(Le.Presence,{present:r||gn(s.checked)||s.checked===!0,children:K.jsx(Le.Primitive.span,{"data-state":wd(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:e,style:{pointerEvents:"none",...n.style}})})});Ed.displayName=Ad;var xd="CheckboxBubbleInput",Sd=L.forwardRef(({__scopeCheckbox:n,...e},t)=>{const{control:r,hasConsumerStoppedPropagationRef:i,checked:s,defaultChecked:a,required:o,disabled:l,name:u,value:d,form:h,bubbleInput:f,setBubbleInput:p}=xl(xd,n),m=Vn.useComposedRefs(t,p),b=ce.usePrevious(s),y=Vs.useSize(r);L.useEffect(()=>{const S=f;if(!S)return;const E=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(E,"checked").set,R=!i.current;if(b!==s&&C){const k=new Event("click",{bubbles:R});S.indeterminate=gn(s),C.call(S,gn(s)?!1:s),S.dispatchEvent(k)}},[f,b,s,i]);const v=L.useRef(gn(s)?!1:s);return K.jsx(Le.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??v.current,required:o,disabled:l,name:u,value:d,form:h,...e,tabIndex:-1,ref:m,style:{...e.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Sd.displayName=xd;function $p(n){return typeof n=="function"}function gn(n){return n==="indeterminate"}function wd(n){return gn(n)?"indeterminate":n?"checked":"unchecked"}const Td=L.forwardRef(({className:n,...e},t)=>K.jsx(Sl,{ref:t,className:Be.cn("peer border-border-alpha-strong ring-offset-background size-4 shrink-0 cursor-pointer rounded-sm border disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:text-primary data-[state=checked]:bg-item-primary",n),...e,children:K.jsx(Ed,{className:Be.cn("flex size-4 items-center justify-center text-current"),children:e.checked==="indeterminate"?K.jsx(xs.RN,{className:"mr-0.5 mb-0.5 size-3.5 text-white"}):K.jsx(xs.s7,{className:"mr-0.5 mb-0.5 size-3.5 text-white"})})}));Td.displayName=Sl.displayName;function Nd(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var Yp=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Up=Nd(function(n){return Yp.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),_e="-ms-",ri="-moz-",Ae="-webkit-",kd="comm",Hs="rule",wl="decl",Jp="@import",Qp="@namespace",Rd="@keyframes",Kp="@layer",_d=Math.abs,Tl=String.fromCharCode,Mo=Object.assign;function eg(n,e){return Ge(n,0)^45?(((e<<2^Ge(n,0))<<2^Ge(n,1))<<2^Ge(n,2))<<2^Ge(n,3):0}function Od(n){return n.trim()}function $t(n,e){return(n=e.exec(n))?n[0]:n}function me(n,e,t){return n.replace(e,t)}function ds(n,e,t){return n.indexOf(e,t)}function Ge(n,e){return n.charCodeAt(e)|0}function Bn(n,e,t){return n.slice(e,t)}function vt(n){return n.length}function Bd(n){return n.length}function Ur(n,e){return e.push(n),n}function tg(n,e){return n.map(e).join("")}function uu(n,e){return n.filter(function(t){return!$t(t,e)})}var Xs=1,mr=1,Fd=0,ft=0,Pe=0,wr="";function Ws(n,e,t,r,i,s,a,o){return{value:n,root:e,parent:t,type:r,props:i,children:s,line:Xs,column:mr,length:a,return:"",siblings:o}}function on(n,e){return Mo(Ws("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function rr(n){for(;n.root;)n=on(n.root,{children:[n]});Ur(n,n.siblings)}function ng(){return Pe}function rg(){return Pe=ft>0?Ge(wr,--ft):0,mr--,Pe===10&&(mr=1,Xs--),Pe}function At(){return Pe=ft<Fd?Ge(wr,ft++):0,mr++,Pe===10&&(mr=1,Xs++),Pe}function hn(){return Ge(wr,ft)}function hs(){return ft}function qs(n,e){return Bn(wr,n,e)}function ui(n){switch(n){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 ig(n){return Xs=mr=1,Fd=vt(wr=n),ft=0,[]}function sg(n){return wr="",n}function eo(n){return Od(qs(ft-1,Po(n===91?n+2:n===40?n+1:n)))}function ag(n){for(;(Pe=hn())&&Pe<33;)At();return ui(n)>2||ui(Pe)>3?"":" "}function og(n,e){for(;--e&&At()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return qs(n,hs()+(e<6&&hn()==32&&At()==32))}function Po(n){for(;At();)switch(Pe){case n:return ft;case 34:case 39:n!==34&&n!==39&&Po(Pe);break;case 40:n===41&&Po(n);break;case 92:At();break}return ft}function lg(n,e){for(;At()&&n+Pe!==57;)if(n+Pe===84&&hn()===47)break;return"/*"+qs(e,ft-1)+"*"+Tl(n===47?n:At())}function ug(n){for(;!ui(hn());)At();return qs(n,ft)}function cg(n){return sg(fs("",null,null,null,[""],n=ig(n),0,[0],n))}function fs(n,e,t,r,i,s,a,o,l){for(var u=0,d=0,h=a,f=0,p=0,m=0,b=1,y=1,v=1,S=0,E="",x=i,C=s,R=r,k=E;y;)switch(m=S,S=At()){case 40:if(m!=108&&Ge(k,h-1)==58){ds(k+=me(eo(S),"&","&\f"),"&\f",_d(u?o[u-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:k+=eo(S);break;case 9:case 10:case 13:case 32:k+=ag(m);break;case 92:k+=og(hs()-1,7);continue;case 47:switch(hn()){case 42:case 47:Ur(dg(lg(At(),hs()),e,t,l),l),(ui(m||1)==5||ui(hn()||1)==5)&&vt(k)&&Bn(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*b:o[u++]=vt(k)*v;case 125*b:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+d:v==-1&&(k=me(k,/\f/g,"")),p>0&&(vt(k)-h||b===0&&m===47)&&Ur(p>32?du(k+";",r,t,h-1,l):du(me(k," ","")+";",r,t,h-2,l),l);break;case 59:k+=";";default:if(Ur(R=cu(k,e,t,u,d,i,o,E,x=[],C=[],h,s),s),S===123)if(d===0)fs(k,e,R,R,x,s,h,o,C);else{switch(f){case 99:if(Ge(k,3)===110)break;case 108:if(Ge(k,2)===97)break;default:d=0;case 100:case 109:case 115:}d?fs(n,R,R,r&&Ur(cu(n,R,R,0,0,i,o,E,i,x=[],h,C),C),i,C,h,o,r?x:C):fs(k,R,R,R,[""],C,0,o,C)}}u=d=p=0,b=v=1,E=k="",h=a;break;case 58:h=1+vt(k),p=m;default:if(b<1){if(S==123)--b;else if(S==125&&b++==0&&rg()==125)continue}switch(k+=Tl(S),S*b){case 38:v=d>0?1:(k+="\f",-1);break;case 44:o[u++]=(vt(k)-1)*v,v=1;break;case 64:hn()===45&&(k+=eo(At())),f=hn(),d=h=vt(E=k+=ug(hs())),S++;break;case 45:m===45&&vt(k)==2&&(b=0)}}return s}function cu(n,e,t,r,i,s,a,o,l,u,d,h){for(var f=i-1,p=i===0?s:[""],m=Bd(p),b=0,y=0,v=0;b<r;++b)for(var S=0,E=Bn(n,f+1,f=_d(y=a[b])),x=n;S<m;++S)(x=Od(y>0?p[S]+" "+E:me(E,/&\f/g,p[S])))&&(l[v++]=x);return Ws(n,e,t,i===0?Hs:o,l,u,d,h)}function dg(n,e,t,r){return Ws(n,e,t,kd,Tl(ng()),Bn(n,2,-2),0,r)}function du(n,e,t,r,i){return Ws(n,e,t,wl,Bn(n,0,r),Bn(n,r+1,-1),r,i)}function Ld(n,e,t){switch(eg(n,e)){case 5103:return Ae+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ae+n+n;case 4855:return Ae+n.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+n;case 4789:return ri+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ae+n+ri+n+_e+n+n;case 5936:switch(Ge(n,e+11)){case 114:return Ae+n+_e+me(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ae+n+_e+me(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ae+n+_e+me(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return Ae+n+_e+n+n;case 6165:return Ae+n+_e+"flex-"+n+n;case 5187:return Ae+n+me(n,/(\w+).+(:[^]+)/,Ae+"box-$1$2"+_e+"flex-$1$2")+n;case 5443:return Ae+n+_e+"flex-item-"+me(n,/flex-|-self/g,"")+($t(n,/flex-|baseline/)?"":_e+"grid-row-"+me(n,/flex-|-self/g,""))+n;case 4675:return Ae+n+_e+"flex-line-pack"+me(n,/align-content|flex-|-self/g,"")+n;case 5548:return Ae+n+_e+me(n,"shrink","negative")+n;case 5292:return Ae+n+_e+me(n,"basis","preferred-size")+n;case 6060:return Ae+"box-"+me(n,"-grow","")+Ae+n+_e+me(n,"grow","positive")+n;case 4554:return Ae+me(n,/([^-])(transform)/g,"$1"+Ae+"$2")+n;case 6187:return me(me(me(n,/(zoom-|grab)/,Ae+"$1"),/(image-set)/,Ae+"$1"),n,"")+n;case 5495:case 3959:return me(n,/(image-set\([^]*)/,Ae+"$1$`$1");case 4968:return me(me(n,/(.+:)(flex-)?(.*)/,Ae+"box-pack:$3"+_e+"flex-pack:$3"),/space-between/,"justify")+Ae+n+n;case 4200:if(!$t(n,/flex-|baseline/))return _e+"grid-column-align"+Bn(n,e)+n;break;case 2592:case 3360:return _e+me(n,"template-","")+n;case 4384:case 3616:return t&&t.some(function(r,i){return e=i,$t(r.props,/grid-\w+-end/)})?~ds(n+(t=t[e].value),"span",0)?n:_e+me(n,"-start","")+n+_e+"grid-row-span:"+(~ds(t,"span",0)?$t(t,/\d+/):+$t(t,/\d+/)-+$t(n,/\d+/))+";":_e+me(n,"-start","")+n;case 4896:case 4128:return t&&t.some(function(r){return $t(r.props,/grid-\w+-start/)})?n:_e+me(me(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return me(n,/(.+)-inline(.+)/,Ae+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(vt(n)-1-e>6)switch(Ge(n,e+1)){case 109:if(Ge(n,e+4)!==45)break;case 102:return me(n,/(.+:)(.+)-([^]+)/,"$1"+Ae+"$2-$3$1"+ri+(Ge(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~ds(n,"stretch",0)?Ld(me(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return me(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,a,o,l,u){return _e+i+":"+s+u+(a?_e+i+"-span:"+(o?l:+l-+s)+u:"")+n});case 4949:if(Ge(n,e+6)===121)return me(n,":",":"+Ae)+n;break;case 6444:switch(Ge(n,Ge(n,14)===45?18:11)){case 120:return me(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ae+(Ge(n,14)===45?"inline-":"")+"box$3$1"+Ae+"$2$3$1"+_e+"$2box$3")+n;case 100:return me(n,":",":"+_e)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return me(n,"scroll-","scroll-snap-")+n}return n}function Ss(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function hg(n,e,t,r){switch(n.type){case Kp:if(n.children.length)break;case Jp:case Qp:case wl:return n.return=n.return||n.value;case kd:return"";case Rd:return n.return=n.value+"{"+Ss(n.children,r)+"}";case Hs:if(!vt(n.value=n.props.join(",")))return""}return vt(t=Ss(n.children,r))?n.return=n.value+"{"+t+"}":""}function fg(n){var e=Bd(n);return function(t,r,i,s){for(var a="",o=0;o<e;o++)a+=n[o](t,r,i,s)||"";return a}}function pg(n){return function(e){e.root||(e=e.return)&&n(e)}}function gg(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case wl:n.return=Ld(n.value,n.length,t);return;case Rd:return Ss([on(n,{value:me(n.value,"@","@"+Ae)})],r);case Hs:if(n.length)return tg(t=n.props,function(i){switch($t(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":rr(on(n,{props:[me(i,/:(read-\w+)/,":"+ri+"$1")]})),rr(on(n,{props:[i]})),Mo(n,{props:uu(t,r)});break;case"::placeholder":rr(on(n,{props:[me(i,/:(plac\w+)/,":"+Ae+"input-$1")]})),rr(on(n,{props:[me(i,/:(plac\w+)/,":"+ri+"$1")]})),rr(on(n,{props:[me(i,/:(plac\w+)/,_e+"input-$1")]})),rr(on(n,{props:[i]})),Mo(n,{props:uu(t,r)});break}return""})}}var Md={animationIterationCount:1,aspectRatio: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,scale: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},Fn=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Pd="active",Dd="data-styled-version",Zs="6.3.9",Nl=`/*!sc*/
2
+ `,ii=typeof window<"u"&&typeof document<"u",mn=L.default.createContext===void 0,mg=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),hu=/invalid hook call/i,zi=new Set,bg=function(n,e){if(process.env.NODE_ENV!=="production"){if(mn)return;var t=e?' with the id of "'.concat(e,'"'):"",r="The component ".concat(n).concat(t,` has been created dynamically.
3
+ `)+`You may see this warning because you've called styled inside another component.
4
+ To resolve this only create new StyledComponents outside of any render method and function component.
5
+ See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
6
+ `,i=console.error;try{var s=!0;console.error=function(a){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];hu.test(a)?(s=!1,zi.delete(r)):i.apply(void 0,je.__spreadArray([a],o,!1))},typeof L.default.useState=="function"&&L.default.useState(null),s&&!zi.has(r)&&(console.warn(r),zi.add(r))}catch(a){hu.test(a.message)&&zi.delete(r)}finally{console.error=i}}},kl=Object.freeze([]),br=Object.freeze({});function vg(n,e,t){return t===void 0&&(t=br),n.theme!==t.theme&&n.theme||e||t.theme}var Do=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),yg=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Cg=/(^-|-$)/g;function fu(n){return n.replace(yg,"-").replace(Cg,"")}var Ig=/(a)(d)/gi,pu=function(n){return String.fromCharCode(n+(n>25?39:97))};function Vo(n){var e,t="";for(e=Math.abs(n);e>52;e=e/52|0)t=pu(e%52)+t;return(pu(e%52)+t).replace(Ig,"$1-$2")}var to,cn=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},Vd=function(n){return cn(5381,n)};function Ag(n){return Vo(Vd(n)>>>0)}function Gd(n){return process.env.NODE_ENV!=="production"&&typeof n=="string"&&n||n.displayName||n.name||"Component"}function no(n){return typeof n=="string"&&(process.env.NODE_ENV==="production"||n.charAt(0)===n.charAt(0).toLowerCase())}var jd=typeof Symbol=="function"&&Symbol.for,Hd=jd?Symbol.for("react.memo"):60115,Eg=jd?Symbol.for("react.forward_ref"):60112,xg={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Sg={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xd={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wg=((to={})[Eg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},to[Hd]=Xd,to);function gu(n){return("type"in(e=n)&&e.type.$$typeof)===Hd?Xd:"$$typeof"in n?wg[n.$$typeof]:xg;var e}var Tg=Object.defineProperty,Ng=Object.getOwnPropertyNames,mu=Object.getOwnPropertySymbols,kg=Object.getOwnPropertyDescriptor,Rg=Object.getPrototypeOf,bu=Object.prototype;function Wd(n,e,t){if(typeof e!="string"){if(bu){var r=Rg(e);r&&r!==bu&&Wd(n,r,t)}var i=Ng(e);mu&&(i=i.concat(mu(e)));for(var s=gu(n),a=gu(e),o=0;o<i.length;++o){var l=i[o];if(!(l in Sg||t&&t[l]||a&&l in a||s&&l in s)){var u=kg(e,l);try{Tg(n,l,u)}catch{}}}}return n}function vr(n){return typeof n=="function"}function Rl(n){return typeof n=="object"&&"styledComponentId"in n}function Rn(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function vu(n,e){return n.join("")}function yr(n){return n!==null&&typeof n=="object"&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function Go(n,e,t){if(t===void 0&&(t=!1),!t&&!yr(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=Go(n[r],e[r]);else if(yr(e))for(var r in e)n[r]=Go(n[r],e[r]);return n}function _l(n,e){Object.defineProperty(n,"toString",{value:e})}var _g=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
7
+
8
+ `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
9
+
10
+ - Are you trying to reuse it across renders?
11
+ - Are you accidentally calling collectStyles twice?
12
+
13
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
14
+
15
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
16
+
17
+ - Does this error occur on the client and is your target falsy?
18
+ - Does this error occur on the server and is the sheet falsy?
19
+
20
+ `,5:`The clone method cannot be used on the client!
21
+
22
+ - Are you running in a client-like environment on the server?
23
+ - Are you trying to run SSR on the client?
24
+
25
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
26
+
27
+ - Are you using a custom target that isn't mounted?
28
+ - Does your document not have a valid head element?
29
+ - Have you accidentally removed a style tag manually?
30
+
31
+ `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
32
+
33
+ `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
34
+
35
+ `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
36
+
37
+ `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
38
+
39
+ `,14:`ThemeProvider: "theme" prop is required.
40
+
41
+ `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
42
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
43
+ as for instance in your render method then you may be running into this limitation.
44
+
45
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
46
+ Has styled-components' style tag been unmounted or altered by another script?
47
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Og(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=n[0],r=[],i=1,s=n.length;i<s;i+=1)r.push(n[i]);return r.forEach(function(a){t=t.replace(/%[a-z]/,a)}),t}function Tr(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(n," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(Og.apply(void 0,je.__spreadArray([_g[n]],e,!1)).trim())}var Bg=(function(){function n(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return n.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,t},n.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,s=i;e>=s;)if((s<<=1)<0)throw Tr(16,"".concat(e));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var a=i;a<s;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),l=0,u=(a=0,t.length);a<u;a++)this.tag.insertRule(o,t[a])&&(this.groupSizes[e]++,o++,l++);l>0&&this._cGroup>e&&(this._cIndex+=l)},n.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),i=r+t;this.groupSizes[e]=0;for(var s=r;s<i;s++)this.tag.deleteRule(r);t>0&&this._cGroup>e&&(this._cIndex-=t)}},n.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var r=this.groupSizes[e],i=this.indexOfGroup(e),s=i+r,a=i;a<s;a++)t+=this.tag.getRule(a)+Nl;return t},n})(),Fg=1<<30,ps=new Map,ws=new Map,gs=1,Jr=function(n){if(ps.has(n))return ps.get(n);for(;ws.has(gs);)gs++;var e=gs++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>Fg))throw Tr(16,"".concat(e));return ps.set(n,e),ws.set(e,n),e},Lg=function(n,e){gs=e+1,ps.set(n,e),ws.set(e,n)},Mg="style[".concat(Fn,"][").concat(Dd,'="').concat(Zs,'"]'),Pg=new RegExp("^".concat(Fn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),yu=function(n){return typeof ShadowRoot<"u"&&n instanceof ShadowRoot||"host"in n&&n.nodeType===11},jo=function(n){if(!n)return document;if(yu(n))return n;if("getRootNode"in n){var e=n.getRootNode();if(yu(e))return e}return document},Dg=function(n,e,t){for(var r,i=t.split(","),s=0,a=i.length;s<a;s++)(r=i[s])&&n.registerName(e,r)},Vg=function(n,e){for(var t,r=((t=e.textContent)!==null&&t!==void 0?t:"").split(Nl),i=[],s=0,a=r.length;s<a;s++){var o=r[s].trim();if(o){var l=o.match(Pg);if(l){var u=0|parseInt(l[1],10),d=l[2];u!==0&&(Lg(d,u),Dg(n,d,l[3]),n.getTag().insertRules(u,i)),i.length=0}else i.push(o)}}},ro=function(n){for(var e=jo(n.options.target).querySelectorAll(Mg),t=0,r=e.length;t<r;t++){var i=e[t];i&&i.getAttribute(Fn)!==Pd&&(Vg(n,i),i.parentNode&&i.parentNode.removeChild(i))}};function Gg(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var qd=function(n){var e=document.head,t=n||e,r=document.createElement("style"),i=(function(o){var l=Array.from(o.querySelectorAll("style[".concat(Fn,"]")));return l[l.length-1]})(t),s=i!==void 0?i.nextSibling:null;r.setAttribute(Fn,Pd),r.setAttribute(Dd,Zs);var a=Gg();return a&&r.setAttribute("nonce",a),t.insertBefore(r,s),r},jg=(function(){function n(e){this.element=qd(e),this.element.appendChild(document.createTextNode("")),this.sheet=(function(t){var r;if(t.sheet)return t.sheet;for(var i=(r=t.getRootNode().styleSheets)!==null&&r!==void 0?r:document.styleSheets,s=0,a=i.length;s<a;s++){var o=i[s];if(o.ownerNode===t)return o}throw Tr(17)})(this.element),this.length=0}return n.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},n.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},n.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},n})(),Hg=(function(){function n(e){this.element=qd(e),this.nodes=this.element.childNodes,this.length=0}return n.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},n.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},n})(),Xg=(function(){function n(e){this.rules=[],this.length=0}return n.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)},n.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},n.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},n})(),Cu=ii,Wg={isServer:!ii,useCSSOMInjection:!mg},Zd=(function(){function n(e,t,r){e===void 0&&(e=br),t===void 0&&(t={});var i=this;this.options=je.__assign(je.__assign({},Wg),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&ii&&Cu&&(Cu=!1,ro(this)),_l(this,function(){return(function(s){for(var a=s.getTag(),o=a.length,l="",u=function(h){var f=(function(v){return ws.get(v)})(h);if(f===void 0)return"continue";var p=s.names.get(f);if(p===void 0||!p.size)return"continue";var m=a.getGroup(h);if(m.length===0)return"continue";var b=Fn+".g"+h+'[id="'+f+'"]',y="";p.forEach(function(v){v.length>0&&(y+=v+",")}),l+=m+b+'{content:"'+y+'"}'+Nl},d=0;d<o;d++)u(d);return l})(i)})}return n.registerId=function(e){return Jr(e)},n.prototype.rehydrate=function(){!this.server&&ii&&ro(this)},n.prototype.reconstructWithOptions=function(e,t){t===void 0&&(t=!0);var r=new n(je.__assign(je.__assign({},this.options),e),this.gs,t&&this.names||void 0);return!this.server&&ii&&e.target!==this.options.target&&jo(this.options.target)!==jo(e.target)&&ro(r),r},n.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},n.prototype.getTag=function(){return this.tag||(this.tag=(e=(function(t){var r=t.useCSSOMInjection,i=t.target;return t.isServer?new Xg(i):r?new jg(i):new Hg(i)})(this.options),new Bg(e)));var e},n.prototype.hasNameForId=function(e,t){var r,i;return(i=(r=this.names.get(e))===null||r===void 0?void 0:r.has(t))!==null&&i!==void 0&&i},n.prototype.registerName=function(e,t){Jr(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},n.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Jr(e),r)},n.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.prototype.clearRules=function(e){this.getTag().clearGroup(Jr(e)),this.clearNames(e)},n.prototype.clearTag=function(){this.tag=void 0},n})(),qg=/&/g,Yt=47,kn=42;function Iu(n){if(n.indexOf("}")===-1)return!1;for(var e=n.length,t=0,r=0,i=!1,s=0;s<e;s++){var a=n.charCodeAt(s);if(r!==0||i||a!==Yt||n.charCodeAt(s+1)!==kn)if(i)a===kn&&n.charCodeAt(s+1)===Yt&&(i=!1,s++);else if(a!==34&&a!==39||s!==0&&n.charCodeAt(s-1)===92){if(r===0){if(a===123)t++;else if(a===125&&--t<0)return!0}}else r===0?r=a:r===a&&(r=0);else i=!0,s++}return t!==0||r!==0}function zd(n,e){return n.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(r){return"".concat(e," ").concat(r)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=zd(t.children,e)),t})}function Zg(n){var e,t,r,i=br,s=i.options,a=s===void 0?br:s,o=i.plugins,l=o===void 0?kl:o,u=function(m,b,y){return y.startsWith(t)&&y.endsWith(t)&&y.replaceAll(t,"").length>0?".".concat(e):m},d=l.slice();d.push(function(m){m.type===Hs&&m.value.includes("&")&&(r||(r=new RegExp("\\".concat(t,"\\b"),"g")),m.props[0]=m.props[0].replace(qg,t).replace(r,u))}),a.prefix&&d.push(gg),d.push(hg);var h=[],f=fg(d.concat(pg(function(m){return h.push(m)}))),p=function(m,b,y,v){b===void 0&&(b=""),y===void 0&&(y=""),v===void 0&&(v="&"),e=v,t=b,r=void 0;var S=(function(x){if(!Iu(x))return x;for(var C=x.length,R="",k=0,F=0,te=0,he=!1,I=0;I<C;I++){var O=x.charCodeAt(I);if(te!==0||he||O!==Yt||x.charCodeAt(I+1)!==kn)if(he)O===kn&&x.charCodeAt(I+1)===Yt&&(he=!1,I++);else if(O!==34&&O!==39||I!==0&&x.charCodeAt(I-1)===92){if(te===0)if(O===123)F++;else if(O===125){if(--F<0){for(var w=I+1;w<C;){var j=x.charCodeAt(w);if(j===59||j===10)break;w++}w<C&&x.charCodeAt(w)===59&&w++,F=0,I=w-1,k=w;continue}F===0&&(R+=x.substring(k,I+1),k=I+1)}else O===59&&F===0&&(R+=x.substring(k,I+1),k=I+1)}else te===0?te=O:te===O&&(te=0);else he=!0,I++}if(k<C){var P=x.substring(k);Iu(P)||(R+=P)}return R})((function(x){if(x.indexOf("//")===-1)return x;for(var C=x.length,R=[],k=0,F=0,te=0,he=0;F<C;){var I=x.charCodeAt(F);if(I!==34&&I!==39||F!==0&&x.charCodeAt(F-1)===92)if(te===0)if(I===Yt&&F+1<C&&x.charCodeAt(F+1)===kn){for(F+=2;F+1<C&&(x.charCodeAt(F)!==kn||x.charCodeAt(F+1)!==Yt);)F++;F+=2}else if(I===40&&F>=3&&(32|x.charCodeAt(F-1))==108&&(32|x.charCodeAt(F-2))==114&&(32|x.charCodeAt(F-3))==117)he=1,F++;else if(he>0)I===41?he--:I===40&&he++,F++;else if(I===kn&&F+1<C&&x.charCodeAt(F+1)===Yt)F>k&&R.push(x.substring(k,F)),k=F+=2;else if(I===Yt&&F+1<C&&x.charCodeAt(F+1)===Yt){for(F>k&&R.push(x.substring(k,F));F<C&&x.charCodeAt(F)!==10;)F++;k=F}else F++;else F++;else te===0?te=I:te===I&&(te=0),F++}return k===0?x:(k<C&&R.push(x.substring(k)),R.join(""))})(m)),E=cg(y||b?"".concat(y," ").concat(b," { ").concat(S," }"):S);return a.namespace&&(E=zd(E,a.namespace)),h=[],Ss(E,f),h};return p.hash=l.length?l.reduce(function(m,b){return b.name||Tr(15),cn(m,b.name)},5381).toString():"",p}var zg=new Zd,Ho=Zg(),Xo={shouldForwardProp:void 0,styleSheet:zg,stylis:Ho},$d=mn?{Provider:function(n){return n.children},Consumer:function(n){return(0,n.children)(Xo)}}:L.default.createContext(Xo);$d.Consumer;mn||L.default.createContext(void 0);function Au(){return mn?Xo:L.default.useContext($d)}var Eu=(function(){function n(e,t){var r=this;this.inject=function(i,s){s===void 0&&(s=Ho);var a=r.name+s.hash;i.hasNameForId(r.id,a)||i.insertRules(r.id,a,s(r.rules,a,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,_l(this,function(){throw Tr(12,String(r.name))})}return n.prototype.getName=function(e){return e===void 0&&(e=Ho),this.name+e.hash},n})();function $g(n,e){return e==null||typeof e=="boolean"||e===""?"":typeof e!="number"||e===0||n in Md||n.startsWith("--")?String(e).trim():"".concat(e,"px")}var Yg=function(n){return n>="A"&&n<="Z"};function xu(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(t===1&&r==="-"&&n[0]==="-")return n;Yg(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var Yd=function(n){return n==null||n===!1||n===""},Ud=function(n){var e=[];for(var t in n){var r=n[t];n.hasOwnProperty(t)&&!Yd(r)&&(Array.isArray(r)&&r.isCss||vr(r)?e.push("".concat(xu(t),":"),r,";"):yr(r)?e.push.apply(e,je.__spreadArray(je.__spreadArray(["".concat(t," {")],Ud(r),!1),["}"],!1)):e.push("".concat(xu(t),": ").concat($g(t,r),";")))}return e};function On(n,e,t,r,i){if(i===void 0&&(i=[]),typeof n=="string")return n&&i.push(n),i;if(Yd(n))return i;if(Rl(n))return i.push(".".concat(n.styledComponentId)),i;if(vr(n)){if(!vr(a=n)||a.prototype&&a.prototype.isReactComponent||!e)return i.push(n),i;var s=n(e);return process.env.NODE_ENV==="production"||typeof s!="object"||Array.isArray(s)||s instanceof Eu||yr(s)||s===null||console.error("".concat(Gd(n)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),On(s,e,t,r,i)}var a;if(n instanceof Eu)return t?(n.inject(t,r),i.push(n.getName(r))):i.push(n),i;if(yr(n)){for(var o=Ud(n),l=0;l<o.length;l++)i.push(o[l]);return i}if(!Array.isArray(n))return i.push(n.toString()),i;for(l=0;l<n.length;l++)On(n[l],e,t,r,i);return i}function Ug(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(vr(t)&&!Rl(t))return!1}return!0}var Jg=Vd(Zs),Qg=(function(){function n(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Ug(e),this.componentId=t,this.baseHash=cn(Jg,t),this.baseStyle=r,Zd.registerId(t)}return n.prototype.generateAndInjectStyles=function(e,t,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))i=Rn(i,this.staticRulesId);else{var s=vu(On(this.rules,e,t,r)),a=Vo(cn(this.baseHash,s)>>>0);if(!t.hasNameForId(this.componentId,a)){var o=r(s,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,o)}i=Rn(i,a),this.staticRulesId=a}else{for(var l=cn(this.baseHash,r.hash),u="",d=0;d<this.rules.length;d++){var h=this.rules[d];if(typeof h=="string")u+=h,process.env.NODE_ENV!=="production"&&(l=cn(l,h));else if(h){var f=vu(On(h,e,t,r));l=cn(cn(l,String(d)),f),u+=f}}if(u){var p=Vo(l>>>0);if(!t.hasNameForId(this.componentId,p)){var m=r(u,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,m)}i=Rn(i,p)}}return{className:i,css:typeof window>"u"?t.getTag().getGroup(Jr(this.componentId)):""}},n})(),Jd=mn?{Provider:function(n){return n.children},Consumer:function(n){return(0,n.children)(void 0)}}:L.default.createContext(void 0);Jd.Consumer;var io={},Su=new Set;function Kg(n,e,t){var r=Rl(n),i=n,s=!no(n),a=e.attrs,o=a===void 0?kl:a,l=e.componentId,u=l===void 0?(function(x,C){var R=typeof x!="string"?"sc":fu(x);io[R]=(io[R]||0)+1;var k="".concat(R,"-").concat(Ag(Zs+R+io[R]));return C?"".concat(C,"-").concat(k):k})(e.displayName,e.parentComponentId):l,d=e.displayName,h=d===void 0?(function(x){return no(x)?"styled.".concat(x):"Styled(".concat(Gd(x),")")})(n):d,f=e.displayName&&e.componentId?"".concat(fu(e.displayName),"-").concat(e.componentId):e.componentId||u,p=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,m=e.shouldForwardProp;if(r&&i.shouldForwardProp){var b=i.shouldForwardProp;if(e.shouldForwardProp){var y=e.shouldForwardProp;m=function(x,C){return b(x,C)&&y(x,C)}}else m=b}var v=new Qg(t,f,r?i.componentStyle:void 0);function S(x,C){return(function(R,k,F){var te=R.attrs,he=R.componentStyle,I=R.defaultProps,O=R.foldedComponentIds,w=R.styledComponentId,j=R.target,P=mn?void 0:L.default.useContext(Jd),_=Au(),G=R.shouldForwardProp||_.shouldForwardProp;process.env.NODE_ENV!=="production"&&L.default.useDebugValue&&L.default.useDebugValue(w);var Z=vg(k,P,I)||(mn?void 0:br),z=(function(q,U,J){for(var ae,N=je.__assign(je.__assign({},U),{className:void 0,theme:J}),fe=0;fe<q.length;fe+=1){var ve=vr(ae=q[fe])?ae(N):ae;for(var Ie in ve)Ie==="className"?N.className=Rn(N.className,ve[Ie]):Ie==="style"?N.style=je.__assign(je.__assign({},N.style),ve[Ie]):N[Ie]=ve[Ie]}return"className"in U&&typeof U.className=="string"&&(N.className=Rn(N.className,U.className)),N})(te,k,Z),T=z.as||j,M={};for(var D in z)z[D]===void 0||D[0]==="$"||D==="as"||D==="theme"&&z.theme===Z||(D==="forwardedAs"?M.as=z.forwardedAs:G&&!G(D,T)||(M[D]=z[D],G||process.env.NODE_ENV!=="development"||Up(D)||Su.has(D)||!Do.has(T)||(Su.add(D),console.warn('styled-components: it looks like an unknown prop "'.concat(D,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var W=(function(q,U){var J=Au(),ae=q.generateAndInjectStyles(U,J.styleSheet,J.stylis);return process.env.NODE_ENV!=="production"&&L.default.useDebugValue&&L.default.useDebugValue(ae.className),ae})(he,z),X=W.className,H=W.css;process.env.NODE_ENV!=="production"&&R.warnTooManyClasses&&R.warnTooManyClasses(X);var $=Rn(O,w);X&&($+=" "+X),z.className&&($+=" "+z.className),M[no(T)&&!Do.has(T)?"class":"className"]=$,F&&(M.ref=F);var Y=ee.createElement(T,M);return mn&&H?L.default.createElement(L.default.Fragment,null,L.default.createElement("style",{precedence:"styled-components",href:"sc-".concat(w,"-").concat(X),children:H}),Y):Y})(E,x,C)}S.displayName=h;var E=L.default.forwardRef(S);return E.attrs=p,E.componentStyle=v,E.displayName=h,E.shouldForwardProp=m,E.foldedComponentIds=r?Rn(i.foldedComponentIds,i.styledComponentId):"",E.styledComponentId=f,E.target=r?i.target:n,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=r?(function(C){for(var R=[],k=1;k<arguments.length;k++)R[k-1]=arguments[k];for(var F=0,te=R;F<te.length;F++)Go(C,te[F],!0);return C})({},i.defaultProps,x):x}}),process.env.NODE_ENV!=="production"&&(bg(h,f),E.warnTooManyClasses=(function(x,C){var R={},k=!1;return function(F){if(!k&&(R[F]=!0,Object.keys(R).length>=200)){var te=C?' with the id of "'.concat(C,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(x).concat(te,`.
48
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
49
+ Example:
50
+ const Component = styled.div.attrs(props => ({
51
+ style: {
52
+ background: props.background,
53
+ },
54
+ }))\`width: 100%;\`
55
+
56
+ <Component />`),k=!0,R={}}}})(h,f)),_l(E,function(){return".".concat(E.styledComponentId)}),s&&Wd(E,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function wu(n,e){for(var t=[n[0]],r=0,i=e.length;r<i;r+=1)t.push(e[r],n[r+1]);return t}var Tu=function(n){return Object.assign(n,{isCss:!0})};function em(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(vr(n)||yr(n))return Tu(On(wu(kl,je.__spreadArray([n],e,!0))));var r=n;return e.length===0&&r.length===1&&typeof r[0]=="string"?On(r):Tu(On(wu(r,e)))}function Wo(n,e,t){if(t===void 0&&(t=br),!e)throw Tr(1,e);var r=function(i){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return n(e,t,em.apply(void 0,je.__spreadArray([i],s,!1)))};return r.attrs=function(i){return Wo(n,e,je.__assign(je.__assign({},t),{attrs:Array.prototype.concat(t.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return Wo(n,e,je.__assign(je.__assign({},t),i))},r}var Qd=function(n){return Wo(Kg,n)},Kd=Qd;Do.forEach(function(n){Kd[n]=Qd(n)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
57
+ Perhaps you're looking to import 'styled-components/native'?
58
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var $i="__sc-".concat(Fn,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[$i]||(window[$i]=0),window[$i]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
59
+
60
+ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[$i]+=1);const tm=Kd.div`
61
+ .filepond {
62
+ &--drop-label {
63
+ label {
64
+ color: ${({$invalid:n})=>n?"var(--color-item-primary-destructive)":"inherit"} !important;
65
+ }
66
+ }
67
+
68
+ &--root {
69
+ margin-bottom: 0.5rem;
70
+ border-radius: 0.75rem;
71
+ }
72
+
73
+ &--panel {
74
+ border-radius: 0.8rem;
75
+ overflow: hidden;
76
+
77
+ &-root {
78
+ background-color: transparent;
79
+ }
80
+ }
81
+
82
+ &--drip {
83
+ border: 1px solid
84
+ ${({$invalid:n})=>n?"var(--color-item-primary-destructive)":"var(--color-border-alpha-strong)"};
85
+ background-color: transparent;
86
+ opacity: 1;
87
+ outline-offset: 2px;
88
+ border-radius: 0.75rem;
89
+ }
90
+ }
91
+
92
+ &:focus-within {
93
+ .filepond {
94
+ &--drip {
95
+ outline: 2px solid
96
+ ${({$invalid:n})=>n?"var(--color-item-primary-destructive)":"var(--color-item-primary-primary)"};
97
+ }
98
+ }
99
+ }
100
+ `;function eh({variant:n="default",...e}){return K.jsx(tm,{$invalid:n==="failure",...e})}eh.displayName="FilepondContainer";var nm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rm=nm.reduce((n,e)=>{const t=yd.createSlot(`Primitive.${e}`),r=L.forwardRef((i,s)=>{const{asChild:a,...o}=i,l=a?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),K.jsx(l,{...o,ref:s})});return r.displayName=`Primitive.${e}`,{...n,[e]:r}},{}),im="Label",th=L.forwardRef((n,e)=>K.jsx(rm.label,{...n,ref:e,onMouseDown:t=>{var i;t.target.closest("button, input, select, textarea")||((i=n.onMouseDown)==null||i.call(n,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));th.displayName=im;var nh=th;const sm=El.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ol=L.forwardRef(({className:n,...e},t)=>K.jsx(nh,{ref:t,className:Be.cn(sm(),n),...e}));Ol.displayName=nh.displayName;const am=Al.FormProvider,rh=L.createContext({}),om=({...n})=>K.jsx(rh.Provider,{value:{name:n.name},children:K.jsx(Al.Controller,{...n})}),Ii=()=>{const n=L.useContext(rh),e=L.useContext(ih),{getFieldState:t,formState:r}=Al.useFormContext(),i=t(n.name,r);if(!n)throw new Error("useFormField should be used within <FormField>");const{id:s}=e;return{id:s,name:n.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...i}},ih=L.createContext({}),sh=L.forwardRef(({className:n,...e},t)=>{const r=L.useId();return K.jsx(ih.Provider,{value:{id:r},children:K.jsx("div",{ref:t,className:Be.cn("relative space-y-2",n),...e})})});sh.displayName="FormItem";const ah=L.forwardRef(({className:n,...e},t)=>{const{error:r,formItemId:i}=Ii();return K.jsx(Ol,{ref:t,className:Be.cn("!text-body-xs-medium",n,r&&"text-destructive"),htmlFor:i,...e})});ah.displayName="FormLabel";const oh=L.forwardRef(({...n},e)=>{const{error:t,formItemId:r,formDescriptionId:i,formMessageId:s}=Ii();return K.jsx(yd.Slot,{ref:e,id:r,"aria-describedby":t?`${i} ${s}`:`${i}`,"aria-invalid":!!t,...n})});oh.displayName="FormControl";const lh=L.forwardRef(({className:n,...e},t)=>{const{formDescriptionId:r}=Ii();return K.jsx("p",{ref:t,id:r,className:Be.cn("text-muted-foreground text-sm",n),...e})});lh.displayName="FormDescription";const uh=L.forwardRef(({className:n,children:e,...t},r)=>{const{error:i,formMessageId:s}=Ii(),a=i?String(i==null?void 0:i.message):e;return a?K.jsx("p",{ref:r,id:s,className:Be.cn("!text-body-xs-medium text-destructive",n),...t,children:a}):null});uh.displayName="FormMessage";var ch=typeof global=="object"&&global&&global.Object===Object&&global,lm=typeof self=="object"&&self&&self.Object===Object&&self,jt=ch||lm||Function("return this")(),yn=jt.Symbol,dh=Object.prototype,um=dh.hasOwnProperty,cm=dh.toString,Zr=yn?yn.toStringTag:void 0;function dm(n){var e=um.call(n,Zr),t=n[Zr];try{n[Zr]=void 0;var r=!0}catch{}var i=cm.call(n);return r&&(e?n[Zr]=t:delete n[Zr]),i}var hm=Object.prototype,fm=hm.toString;function pm(n){return fm.call(n)}var gm="[object Null]",mm="[object Undefined]",Nu=yn?yn.toStringTag:void 0;function Nr(n){return n==null?n===void 0?mm:gm:Nu&&Nu in Object(n)?dm(n):pm(n)}function Qt(n){return n!=null&&typeof n=="object"}var Ln=Array.isArray;function Cn(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}function hh(n){return n}var bm="[object AsyncFunction]",vm="[object Function]",ym="[object GeneratorFunction]",Cm="[object Proxy]";function Bl(n){if(!Cn(n))return!1;var e=Nr(n);return e==vm||e==ym||e==bm||e==Cm}var so=jt["__core-js_shared__"],ku=(function(){var n=/[^.]+$/.exec(so&&so.keys&&so.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function Im(n){return!!ku&&ku in n}var Am=Function.prototype,Em=Am.toString;function Gn(n){if(n!=null){try{return Em.call(n)}catch{}try{return n+""}catch{}}return""}var xm=/[\\^$.*+?()[\]{}|]/g,Sm=/^\[object .+?Constructor\]$/,wm=Function.prototype,Tm=Object.prototype,Nm=wm.toString,km=Tm.hasOwnProperty,Rm=RegExp("^"+Nm.call(km).replace(xm,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _m(n){if(!Cn(n)||Im(n))return!1;var e=Bl(n)?Rm:Sm;return e.test(Gn(n))}function Om(n,e){return n==null?void 0:n[e]}function jn(n,e){var t=Om(n,e);return _m(t)?t:void 0}var qo=jn(jt,"WeakMap"),Ru=Object.create,Bm=(function(){function n(){}return function(e){if(!Cn(e))return{};if(Ru)return Ru(e);n.prototype=e;var t=new n;return n.prototype=void 0,t}})();function Fm(n,e,t){switch(t.length){case 0:return n.call(e);case 1:return n.call(e,t[0]);case 2:return n.call(e,t[0],t[1]);case 3:return n.call(e,t[0],t[1],t[2])}return n.apply(e,t)}function Lm(n,e){var t=-1,r=n.length;for(e||(e=Array(r));++t<r;)e[t]=n[t];return e}var Mm=800,Pm=16,Dm=Date.now;function Vm(n){var e=0,t=0;return function(){var r=Dm(),i=Pm-(r-t);if(t=r,i>0){if(++e>=Mm)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Gm(n){return function(){return n}}var Ts=(function(){try{var n=jn(Object,"defineProperty");return n({},"",{}),n}catch{}})(),jm=Ts?function(n,e){return Ts(n,"toString",{configurable:!0,enumerable:!1,value:Gm(e),writable:!0})}:hh,Hm=Vm(jm);function Xm(n,e){for(var t=-1,r=n==null?0:n.length;++t<r&&e(n[t],t,n)!==!1;);return n}var Wm=9007199254740991,qm=/^(?:0|[1-9]\d*)$/;function fh(n,e){var t=typeof n;return e=e??Wm,!!e&&(t=="number"||t!="symbol"&&qm.test(n))&&n>-1&&n%1==0&&n<e}function Fl(n,e,t){e=="__proto__"&&Ts?Ts(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):n[e]=t}function Ai(n,e){return n===e||n!==n&&e!==e}var Zm=Object.prototype,zm=Zm.hasOwnProperty;function ph(n,e,t){var r=n[e];(!(zm.call(n,e)&&Ai(r,t))||t===void 0&&!(e in n))&&Fl(n,e,t)}function $m(n,e,t,r){var i=!t;t||(t={});for(var s=-1,a=e.length;++s<a;){var o=e[s],l=void 0;l===void 0&&(l=n[o]),i?Fl(t,o,l):ph(t,o,l)}return t}var _u=Math.max;function Ym(n,e,t){return e=_u(e===void 0?n.length-1:e,0),function(){for(var r=arguments,i=-1,s=_u(r.length-e,0),a=Array(s);++i<s;)a[i]=r[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=r[i];return o[e]=t(a),Fm(n,this,o)}}function Um(n,e){return Hm(Ym(n,e,hh),n+"")}var Jm=9007199254740991;function gh(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=Jm}function zs(n){return n!=null&&gh(n.length)&&!Bl(n)}function Qm(n,e,t){if(!Cn(t))return!1;var r=typeof e;return(r=="number"?zs(t)&&fh(e,t.length):r=="string"&&e in t)?Ai(t[e],n):!1}function Km(n){return Um(function(e,t){var r=-1,i=t.length,s=i>1?t[i-1]:void 0,a=i>2?t[2]:void 0;for(s=n.length>3&&typeof s=="function"?(i--,s):void 0,a&&Qm(t[0],t[1],a)&&(s=i<3?void 0:s,i=1),e=Object(e);++r<i;){var o=t[r];o&&n(e,o,r,s)}return e})}var e0=Object.prototype;function Ll(n){var e=n&&n.constructor,t=typeof e=="function"&&e.prototype||e0;return n===t}function t0(n,e){for(var t=-1,r=Array(n);++t<n;)r[t]=e(t);return r}var n0="[object Arguments]";function Ou(n){return Qt(n)&&Nr(n)==n0}var mh=Object.prototype,r0=mh.hasOwnProperty,i0=mh.propertyIsEnumerable,Zo=Ou((function(){return arguments})())?Ou:function(n){return Qt(n)&&r0.call(n,"callee")&&!i0.call(n,"callee")};function s0(){return!1}var bh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bu=bh&&typeof module=="object"&&module&&!module.nodeType&&module,a0=Bu&&Bu.exports===bh,Fu=a0?jt.Buffer:void 0,o0=Fu?Fu.isBuffer:void 0,ci=o0||s0,l0="[object Arguments]",u0="[object Array]",c0="[object Boolean]",d0="[object Date]",h0="[object Error]",f0="[object Function]",p0="[object Map]",g0="[object Number]",m0="[object Object]",b0="[object RegExp]",v0="[object Set]",y0="[object String]",C0="[object WeakMap]",I0="[object ArrayBuffer]",A0="[object DataView]",E0="[object Float32Array]",x0="[object Float64Array]",S0="[object Int8Array]",w0="[object Int16Array]",T0="[object Int32Array]",N0="[object Uint8Array]",k0="[object Uint8ClampedArray]",R0="[object Uint16Array]",_0="[object Uint32Array]",Oe={};Oe[E0]=Oe[x0]=Oe[S0]=Oe[w0]=Oe[T0]=Oe[N0]=Oe[k0]=Oe[R0]=Oe[_0]=!0;Oe[l0]=Oe[u0]=Oe[I0]=Oe[c0]=Oe[A0]=Oe[d0]=Oe[h0]=Oe[f0]=Oe[p0]=Oe[g0]=Oe[m0]=Oe[b0]=Oe[v0]=Oe[y0]=Oe[C0]=!1;function O0(n){return Qt(n)&&gh(n.length)&&!!Oe[Nr(n)]}function Ml(n){return function(e){return n(e)}}var vh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,si=vh&&typeof module=="object"&&module&&!module.nodeType&&module,B0=si&&si.exports===vh,ao=B0&&ch.process,Cr=(function(){try{var n=si&&si.require&&si.require("util").types;return n||ao&&ao.binding&&ao.binding("util")}catch{}})(),Lu=Cr&&Cr.isTypedArray,Pl=Lu?Ml(Lu):O0,F0=Object.prototype,L0=F0.hasOwnProperty;function yh(n,e){var t=Ln(n),r=!t&&Zo(n),i=!t&&!r&&ci(n),s=!t&&!r&&!i&&Pl(n),a=t||r||i||s,o=a?t0(n.length,String):[],l=o.length;for(var u in n)(e||L0.call(n,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||fh(u,l)))&&o.push(u);return o}function Ch(n,e){return function(t){return n(e(t))}}var M0=Ch(Object.keys,Object),P0=Object.prototype,D0=P0.hasOwnProperty;function V0(n){if(!Ll(n))return M0(n);var e=[];for(var t in Object(n))D0.call(n,t)&&t!="constructor"&&e.push(t);return e}function G0(n){return zs(n)?yh(n):V0(n)}function j0(n){var e=[];if(n!=null)for(var t in Object(n))e.push(t);return e}var H0=Object.prototype,X0=H0.hasOwnProperty;function W0(n){if(!Cn(n))return j0(n);var e=Ll(n),t=[];for(var r in n)r=="constructor"&&(e||!X0.call(n,r))||t.push(r);return t}function Ih(n){return zs(n)?yh(n,!0):W0(n)}var di=jn(Object,"create");function q0(){this.__data__=di?di(null):{},this.size=0}function Z0(n){var e=this.has(n)&&delete this.__data__[n];return this.size-=e?1:0,e}var z0="__lodash_hash_undefined__",$0=Object.prototype,Y0=$0.hasOwnProperty;function U0(n){var e=this.__data__;if(di){var t=e[n];return t===z0?void 0:t}return Y0.call(e,n)?e[n]:void 0}var J0=Object.prototype,Q0=J0.hasOwnProperty;function K0(n){var e=this.__data__;return di?e[n]!==void 0:Q0.call(e,n)}var eb="__lodash_hash_undefined__";function tb(n,e){var t=this.__data__;return this.size+=this.has(n)?0:1,t[n]=di&&e===void 0?eb:e,this}function Mn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Mn.prototype.clear=q0;Mn.prototype.delete=Z0;Mn.prototype.get=U0;Mn.prototype.has=K0;Mn.prototype.set=tb;function nb(){this.__data__=[],this.size=0}function $s(n,e){for(var t=n.length;t--;)if(Ai(n[t][0],e))return t;return-1}var rb=Array.prototype,ib=rb.splice;function sb(n){var e=this.__data__,t=$s(e,n);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():ib.call(e,t,1),--this.size,!0}function ab(n){var e=this.__data__,t=$s(e,n);return t<0?void 0:e[t][1]}function ob(n){return $s(this.__data__,n)>-1}function lb(n,e){var t=this.__data__,r=$s(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}function nn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}nn.prototype.clear=nb;nn.prototype.delete=sb;nn.prototype.get=ab;nn.prototype.has=ob;nn.prototype.set=lb;var hi=jn(jt,"Map");function ub(){this.size=0,this.__data__={hash:new Mn,map:new(hi||nn),string:new Mn}}function cb(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null}function Ys(n,e){var t=n.__data__;return cb(e)?t[typeof e=="string"?"string":"hash"]:t.map}function db(n){var e=Ys(this,n).delete(n);return this.size-=e?1:0,e}function hb(n){return Ys(this,n).get(n)}function fb(n){return Ys(this,n).has(n)}function pb(n,e){var t=Ys(this,n),r=t.size;return t.set(n,e),this.size+=t.size==r?0:1,this}function Hn(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e<t;){var r=n[e];this.set(r[0],r[1])}}Hn.prototype.clear=ub;Hn.prototype.delete=db;Hn.prototype.get=hb;Hn.prototype.has=fb;Hn.prototype.set=pb;function gb(n,e){for(var t=-1,r=e.length,i=n.length;++t<r;)n[i+t]=e[t];return n}var Ah=Ch(Object.getPrototypeOf,Object),mb="[object Object]",bb=Function.prototype,vb=Object.prototype,Eh=bb.toString,yb=vb.hasOwnProperty,Cb=Eh.call(Object);function Ib(n){if(!Qt(n)||Nr(n)!=mb)return!1;var e=Ah(n);if(e===null)return!0;var t=yb.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Eh.call(t)==Cb}function Ab(){this.__data__=new nn,this.size=0}function Eb(n){var e=this.__data__,t=e.delete(n);return this.size=e.size,t}function xb(n){return this.__data__.get(n)}function Sb(n){return this.__data__.has(n)}var wb=200;function Tb(n,e){var t=this.__data__;if(t instanceof nn){var r=t.__data__;if(!hi||r.length<wb-1)return r.push([n,e]),this.size=++t.size,this;t=this.__data__=new Hn(r)}return t.set(n,e),this.size=t.size,this}function Mt(n){var e=this.__data__=new nn(n);this.size=e.size}Mt.prototype.clear=Ab;Mt.prototype.delete=Eb;Mt.prototype.get=xb;Mt.prototype.has=Sb;Mt.prototype.set=Tb;var xh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mu=xh&&typeof module=="object"&&module&&!module.nodeType&&module,Nb=Mu&&Mu.exports===xh,Pu=Nb?jt.Buffer:void 0,Du=Pu?Pu.allocUnsafe:void 0;function Sh(n,e){if(e)return n.slice();var t=n.length,r=Du?Du(t):new n.constructor(t);return n.copy(r),r}function kb(n,e){for(var t=-1,r=n==null?0:n.length,i=0,s=[];++t<r;){var a=n[t];e(a,t,n)&&(s[i++]=a)}return s}function Rb(){return[]}var _b=Object.prototype,Ob=_b.propertyIsEnumerable,Vu=Object.getOwnPropertySymbols,Bb=Vu?function(n){return n==null?[]:(n=Object(n),kb(Vu(n),function(e){return Ob.call(n,e)}))}:Rb;function Fb(n,e,t){var r=e(n);return Ln(n)?r:gb(r,t(n))}function zo(n){return Fb(n,G0,Bb)}var $o=jn(jt,"DataView"),Yo=jn(jt,"Promise"),Uo=jn(jt,"Set"),Gu="[object Map]",Lb="[object Object]",ju="[object Promise]",Hu="[object Set]",Xu="[object WeakMap]",Wu="[object DataView]",Mb=Gn($o),Pb=Gn(hi),Db=Gn(Yo),Vb=Gn(Uo),Gb=Gn(qo),yt=Nr;($o&&yt(new $o(new ArrayBuffer(1)))!=Wu||hi&&yt(new hi)!=Gu||Yo&&yt(Yo.resolve())!=ju||Uo&&yt(new Uo)!=Hu||qo&&yt(new qo)!=Xu)&&(yt=function(n){var e=Nr(n),t=e==Lb?n.constructor:void 0,r=t?Gn(t):"";if(r)switch(r){case Mb:return Wu;case Pb:return Gu;case Db:return ju;case Vb:return Hu;case Gb:return Xu}return e});var jb=Object.prototype,Hb=jb.hasOwnProperty;function Xb(n){var e=n.length,t=new n.constructor(e);return e&&typeof n[0]=="string"&&Hb.call(n,"index")&&(t.index=n.index,t.input=n.input),t}var Ns=jt.Uint8Array;function Dl(n){var e=new n.constructor(n.byteLength);return new Ns(e).set(new Ns(n)),e}function Wb(n,e){var t=Dl(n.buffer);return new n.constructor(t,n.byteOffset,n.byteLength)}var qb=/\w*$/;function Zb(n){var e=new n.constructor(n.source,qb.exec(n));return e.lastIndex=n.lastIndex,e}var qu=yn?yn.prototype:void 0,Zu=qu?qu.valueOf:void 0;function zb(n){return Zu?Object(Zu.call(n)):{}}function wh(n,e){var t=e?Dl(n.buffer):n.buffer;return new n.constructor(t,n.byteOffset,n.length)}var $b="[object Boolean]",Yb="[object Date]",Ub="[object Map]",Jb="[object Number]",Qb="[object RegExp]",Kb="[object Set]",e1="[object String]",t1="[object Symbol]",n1="[object ArrayBuffer]",r1="[object DataView]",i1="[object Float32Array]",s1="[object Float64Array]",a1="[object Int8Array]",o1="[object Int16Array]",l1="[object Int32Array]",u1="[object Uint8Array]",c1="[object Uint8ClampedArray]",d1="[object Uint16Array]",h1="[object Uint32Array]";function f1(n,e,t){var r=n.constructor;switch(e){case n1:return Dl(n);case $b:case Yb:return new r(+n);case r1:return Wb(n);case i1:case s1:case a1:case o1:case l1:case u1:case c1:case d1:case h1:return wh(n,t);case Ub:return new r;case Jb:case e1:return new r(n);case Qb:return Zb(n);case Kb:return new r;case t1:return zb(n)}}function Th(n){return typeof n.constructor=="function"&&!Ll(n)?Bm(Ah(n)):{}}var p1="[object Map]";function g1(n){return Qt(n)&&yt(n)==p1}var zu=Cr&&Cr.isMap,m1=zu?Ml(zu):g1,b1="[object Set]";function v1(n){return Qt(n)&&yt(n)==b1}var $u=Cr&&Cr.isSet,y1=$u?Ml($u):v1,C1=1,Nh="[object Arguments]",I1="[object Array]",A1="[object Boolean]",E1="[object Date]",x1="[object Error]",kh="[object Function]",S1="[object GeneratorFunction]",w1="[object Map]",T1="[object Number]",Rh="[object Object]",N1="[object RegExp]",k1="[object Set]",R1="[object String]",_1="[object Symbol]",O1="[object WeakMap]",B1="[object ArrayBuffer]",F1="[object DataView]",L1="[object Float32Array]",M1="[object Float64Array]",P1="[object Int8Array]",D1="[object Int16Array]",V1="[object Int32Array]",G1="[object Uint8Array]",j1="[object Uint8ClampedArray]",H1="[object Uint16Array]",X1="[object Uint32Array]",Re={};Re[Nh]=Re[I1]=Re[B1]=Re[F1]=Re[A1]=Re[E1]=Re[L1]=Re[M1]=Re[P1]=Re[D1]=Re[V1]=Re[w1]=Re[T1]=Re[Rh]=Re[N1]=Re[k1]=Re[R1]=Re[_1]=Re[G1]=Re[j1]=Re[H1]=Re[X1]=!0;Re[x1]=Re[kh]=Re[O1]=!1;function ms(n,e,t,r,i,s){var a,o=e&C1;if(a!==void 0)return a;if(!Cn(n))return n;var l=Ln(n);if(l)a=Xb(n);else{var u=yt(n),d=u==kh||u==S1;if(ci(n))return Sh(n,o);if(u==Rh||u==Nh||d&&!i)a=d?{}:Th(n);else{if(!Re[u])return i?n:{};a=f1(n,u,o)}}s||(s=new Mt);var h=s.get(n);if(h)return h;s.set(n,a),y1(n)?n.forEach(function(m){a.add(ms(m,e,t,m,n,s))}):m1(n)&&n.forEach(function(m,b){a.set(b,ms(m,e,t,b,n,s))});var f=zo,p=l?void 0:f(n);return Xm(p||n,function(m,b){p&&(b=m,m=n[b]),ph(a,b,ms(m,e,t,b,n,s))}),a}var W1=1,q1=4;function dr(n){return ms(n,W1|q1)}var Z1="__lodash_hash_undefined__";function z1(n){return this.__data__.set(n,Z1),this}function $1(n){return this.__data__.has(n)}function ks(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new Hn;++e<t;)this.add(n[e])}ks.prototype.add=ks.prototype.push=z1;ks.prototype.has=$1;function Y1(n,e){for(var t=-1,r=n==null?0:n.length;++t<r;)if(e(n[t],t,n))return!0;return!1}function U1(n,e){return n.has(e)}var J1=1,Q1=2;function _h(n,e,t,r,i,s){var a=t&J1,o=n.length,l=e.length;if(o!=l&&!(a&&l>o))return!1;var u=s.get(n),d=s.get(e);if(u&&d)return u==e&&d==n;var h=-1,f=!0,p=t&Q1?new ks:void 0;for(s.set(n,e),s.set(e,n);++h<o;){var m=n[h],b=e[h];if(r)var y=a?r(b,m,h,e,n,s):r(m,b,h,n,e,s);if(y!==void 0){if(y)continue;f=!1;break}if(p){if(!Y1(e,function(v,S){if(!U1(p,S)&&(m===v||i(m,v,t,r,s)))return p.push(S)})){f=!1;break}}else if(!(m===b||i(m,b,t,r,s))){f=!1;break}}return s.delete(n),s.delete(e),f}function K1(n){var e=-1,t=Array(n.size);return n.forEach(function(r,i){t[++e]=[i,r]}),t}function ev(n){var e=-1,t=Array(n.size);return n.forEach(function(r){t[++e]=r}),t}var tv=1,nv=2,rv="[object Boolean]",iv="[object Date]",sv="[object Error]",av="[object Map]",ov="[object Number]",lv="[object RegExp]",uv="[object Set]",cv="[object String]",dv="[object Symbol]",hv="[object ArrayBuffer]",fv="[object DataView]",Yu=yn?yn.prototype:void 0,oo=Yu?Yu.valueOf:void 0;function pv(n,e,t,r,i,s,a){switch(t){case fv:if(n.byteLength!=e.byteLength||n.byteOffset!=e.byteOffset)return!1;n=n.buffer,e=e.buffer;case hv:return!(n.byteLength!=e.byteLength||!s(new Ns(n),new Ns(e)));case rv:case iv:case ov:return Ai(+n,+e);case sv:return n.name==e.name&&n.message==e.message;case lv:case cv:return n==e+"";case av:var o=K1;case uv:var l=r&tv;if(o||(o=ev),n.size!=e.size&&!l)return!1;var u=a.get(n);if(u)return u==e;r|=nv,a.set(n,e);var d=_h(o(n),o(e),r,i,s,a);return a.delete(n),d;case dv:if(oo)return oo.call(n)==oo.call(e)}return!1}var gv=1,mv=Object.prototype,bv=mv.hasOwnProperty;function vv(n,e,t,r,i,s){var a=t&gv,o=zo(n),l=o.length,u=zo(e),d=u.length;if(l!=d&&!a)return!1;for(var h=l;h--;){var f=o[h];if(!(a?f in e:bv.call(e,f)))return!1}var p=s.get(n),m=s.get(e);if(p&&m)return p==e&&m==n;var b=!0;s.set(n,e),s.set(e,n);for(var y=a;++h<l;){f=o[h];var v=n[f],S=e[f];if(r)var E=a?r(S,v,f,e,n,s):r(v,S,f,n,e,s);if(!(E===void 0?v===S||i(v,S,t,r,s):E)){b=!1;break}y||(y=f=="constructor")}if(b&&!y){var x=n.constructor,C=e.constructor;x!=C&&"constructor"in n&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof C=="function"&&C instanceof C)&&(b=!1)}return s.delete(n),s.delete(e),b}var yv=1,Uu="[object Arguments]",Ju="[object Array]",Yi="[object Object]",Cv=Object.prototype,Qu=Cv.hasOwnProperty;function Iv(n,e,t,r,i,s){var a=Ln(n),o=Ln(e),l=a?Ju:yt(n),u=o?Ju:yt(e);l=l==Uu?Yi:l,u=u==Uu?Yi:u;var d=l==Yi,h=u==Yi,f=l==u;if(f&&ci(n)){if(!ci(e))return!1;a=!0,d=!1}if(f&&!d)return s||(s=new Mt),a||Pl(n)?_h(n,e,t,r,i,s):pv(n,e,l,t,r,i,s);if(!(t&yv)){var p=d&&Qu.call(n,"__wrapped__"),m=h&&Qu.call(e,"__wrapped__");if(p||m){var b=p?n.value():n,y=m?e.value():e;return s||(s=new Mt),i(b,y,t,r,s)}}return f?(s||(s=new Mt),vv(n,e,t,r,i,s)):!1}function Oh(n,e,t,r,i){return n===e?!0:n==null||e==null||!Qt(n)&&!Qt(e)?n!==n&&e!==e:Iv(n,e,t,r,Oh,i)}function Av(n){return function(e,t,r){for(var i=-1,s=Object(e),a=r(e),o=a.length;o--;){var l=a[++i];if(t(s[l],l,s)===!1)break}return e}}var Ev=Av();function Jo(n,e,t){(t!==void 0&&!Ai(n[e],t)||t===void 0&&!(e in n))&&Fl(n,e,t)}function xv(n){return Qt(n)&&zs(n)}function Qo(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}function Sv(n){return $m(n,Ih(n))}function wv(n,e,t,r,i,s,a){var o=Qo(n,t),l=Qo(e,t),u=a.get(l);if(u){Jo(n,t,u);return}var d=s?s(o,l,t+"",n,e,a):void 0,h=d===void 0;if(h){var f=Ln(l),p=!f&&ci(l),m=!f&&!p&&Pl(l);d=l,f||p||m?Ln(o)?d=o:xv(o)?d=Lm(o):p?(h=!1,d=Sh(l,!0)):m?(h=!1,d=wh(l,!0)):d=[]:Ib(l)||Zo(l)?(d=o,Zo(o)?d=Sv(o):(!Cn(o)||Bl(o))&&(d=Th(l))):h=!1}h&&(a.set(l,d),i(d,l,r,s,a),a.delete(l)),Jo(n,t,d)}function Bh(n,e,t,r,i){n!==e&&Ev(e,function(s,a){if(i||(i=new Mt),Cn(s))wv(n,e,a,t,Bh,r,i);else{var o=r?r(Qo(n,a),s,a+"",n,e,i):void 0;o===void 0&&(o=s),Jo(n,a,o)}},Ih)}function dn(n,e){return Oh(n,e)}var bn=Km(function(n,e,t){Bh(n,e,t)}),ie=(n=>(n[n.TYPE=3]="TYPE",n[n.LEVEL=12]="LEVEL",n[n.ATTRIBUTE=13]="ATTRIBUTE",n[n.BLOT=14]="BLOT",n[n.INLINE=7]="INLINE",n[n.BLOCK=11]="BLOCK",n[n.BLOCK_BLOT=10]="BLOCK_BLOT",n[n.INLINE_BLOT=6]="INLINE_BLOT",n[n.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",n[n.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",n[n.ANY=15]="ANY",n))(ie||{});class Vt{constructor(e,t,r={}){this.attrName=e,this.keyName=t;const i=ie.TYPE&ie.ATTRIBUTE;this.scope=r.scope!=null?r.scope&ie.LEVEL|i:ie.ATTRIBUTE,r.whitelist!=null&&(this.whitelist=r.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class hr extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const Fh=class Ko{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let r=null;try{r=e.parentNode}catch{return null}return this.find(r,t)}return null}create(e,t,r){const i=this.query(t);if(i==null)throw new hr(`Unable to create ${t} blot`);const s=i,a=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:s.create(r),o=new s(e,a,r);return Ko.blots.set(o.domNode,o),o}find(e,t=!1){return Ko.find(e,t)}query(e,t=ie.ANY){let r;return typeof e=="string"?r=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?r=this.types.text:typeof e=="number"?e&ie.LEVEL&ie.BLOCK?r=this.types.block:e&ie.LEVEL&ie.INLINE&&(r=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(i=>(r=this.classes[i],!!r)),r=r||this.tags[e.tagName]),r==null?null:"scope"in r&&t&ie.LEVEL&r.scope&&t&ie.TYPE&r.scope?r:null}register(...e){return e.map(t=>{const r="blotName"in t,i="attrName"in t;if(!r&&!i)throw new hr("Invalid definition");if(r&&t.blotName==="abstract")throw new hr("Cannot register abstract class");const s=r?t.blotName:i?t.attrName:void 0;return this.types[s]=t,i?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):r&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(a=>a.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(a=>{(this.tags[a]==null||t.className==null)&&(this.tags[a]=t)}))),t})}};Fh.blots=new WeakMap;let Ir=Fh;function Ku(n,e){return(n.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class Tv extends Vt{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){Ku(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(Ku(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const St=Tv;function lo(n){const e=n.split("-"),t=e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return e[0]+t}class Nv extends Vt{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[lo(this.keyName)]=t,!0):!1}remove(e){e.style[lo(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[lo(this.keyName)];return this.canAdd(e,t)?t:""}}const In=Nv;class kv{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=Ir.find(this.domNode);if(e==null)return;const t=Vt.keys(this.domNode),r=St.keys(this.domNode),i=In.keys(this.domNode);t.concat(r).concat(i).forEach(s=>{const a=e.scroll.query(s,ie.ATTRIBUTE);a instanceof Vt&&(this.attributes[a.attrName]=a)})}copy(e){Object.keys(this.attributes).forEach(t=>{const r=this.attributes[t].value(this.domNode);e.format(t,r)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const Us=kv,Lh=class{constructor(e,t){this.scroll=e,this.domNode=t,Ir.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new hr("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof e=="string"?(r=e.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof e=="number"&&(r=e),typeof r=="number"?t=document.createElement(this.tagName[r-1]):r&&this.tagName.indexOf(r)>-1?t=document.createElement(r):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),Ir.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,r,i){const s=this.isolate(e,t);if(this.scroll.query(r,ie.BLOT)!=null&&i)s.wrap(r,i);else if(this.scroll.query(r,ie.ATTRIBUTE)!=null){const a=this.scroll.create(this.statics.scope);s.wrap(a),a.format(r,i)}}insertAt(e,t,r){const i=r==null?this.scroll.create("text",t):this.scroll.create(t,r),s=this.split(e);this.parent.insertBefore(i,s||void 0)}isolate(e,t){const r=this.split(e);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new hr(`Cannot wrap ${e}`);return r.appendChild(this),r}};Lh.blotName="abstract";let Mh=Lh;const Ph=class extends Mh{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Ph.scope=ie.INLINE_BLOT;let Rv=Ph;const Ue=Rv;class _v{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let r=t();for(;r&&e>0;)e-=1,r=t();return r}contains(e){const t=this.iterator();let r=t();for(;r;){if(r===e)return!0;r=t()}return!1}indexOf(e){const t=this.iterator();let r=t(),i=0;for(;r;){if(r===e)return i;i+=1,r=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,r=this.head;for(;r!=null;){if(r===e)return t;t+=r.length(),r=r.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const r=this.iterator();let i=r();for(;i;){const s=i.length();if(e<s||t&&e===s&&(i.next==null||i.next.length()!==0))return[i,e];e-=s,i=r()}return[null,0]}forEach(e){const t=this.iterator();let r=t();for(;r;)e(r),r=t()}forEachAt(e,t,r){if(t<=0)return;const[i,s]=this.find(e);let a=e-s;const o=this.iterator(i);let l=o();for(;l&&a<e+t;){const u=l.length();e>a?r(l,e-a,Math.min(t,a+u-e)):r(l,0,Math.min(u,e+t-a)),a+=u,l=o()}}map(e){return this.reduce((t,r)=>(t.push(e(r)),t),[])}reduce(e,t){const r=this.iterator();let i=r();for(;i;)t=e(t,i),i=r();return t}}function ec(n,e){const t=e.find(n);if(t)return t;try{return e.create(n)}catch{const r=e.create(ie.INLINE);return Array.from(n.childNodes).forEach(i=>{r.domNode.appendChild(i)}),n.parentNode&&n.parentNode.replaceChild(r.domNode,n),r.attach(),r}}const Dh=class ln extends Mh{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,ln.uiClass&&this.uiNode.classList.add(ln.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new _v,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=ec(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof hr)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(r,i,s)=>{r.deleteAt(i,s)})}descendant(e,t=0){const[r,i]=this.children.find(t);return e.blotName==null&&e(r)||e.blotName!=null&&r instanceof e?[r,i]:r instanceof ln?r.descendant(e,i):[null,-1]}descendants(e,t=0,r=Number.MAX_VALUE){let i=[],s=r;return this.children.forEachAt(t,r,(a,o,l)=>{(e.blotName==null&&e(a)||e.blotName!=null&&a instanceof e)&&i.push(a),a instanceof ln&&(i=i.concat(a.descendants(e,o,s))),s-=l}),i}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(r=>t instanceof r)||(t.statics.scope===ie.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof ln?t.unwrap():t.remove())})}formatAt(e,t,r,i){this.children.forEachAt(e,t,(s,a,o)=>{s.formatAt(a,o,r,i)})}insertAt(e,t,r){const[i,s]=this.children.find(e);if(i)i.insertAt(s,t,r);else{const a=r==null?this.scroll.create("text",t):this.scroll.create(t,r);this.appendChild(a)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let r=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(e.domNode,r),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(r=>{e.insertBefore(r,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[r,i]=this.children.find(e,t),s=[[this,e]];return r instanceof ln?s.concat(r.path(i,t)):(r!=null&&s.push([r,i]),s)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const r=typeof e=="string"?this.scroll.create(e,t):e;return r instanceof ln&&this.moveChildren(r),super.replaceWith(r)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(e,this.length(),(i,s,a)=>{const o=i.split(s,t);o!=null&&r.appendChild(o)}),r}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const r=[],i=[];e.forEach(s=>{s.target===this.domNode&&s.type==="childList"&&(r.push(...s.addedNodes),i.push(...s.removedNodes))}),i.forEach(s=>{if(s.parentNode!=null&&s.tagName!=="IFRAME"&&document.body.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const a=this.scroll.find(s);a!=null&&(a.domNode.parentNode==null||a.domNode.parentNode===this.domNode)&&a.detach()}),r.filter(s=>s.parentNode===this.domNode&&s!==this.uiNode).sort((s,a)=>s===a?0:s.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(s=>{let a=null;s.nextSibling!=null&&(a=this.scroll.find(s.nextSibling));const o=ec(s,this.scroll);(o.next!==a||o.next==null)&&(o.parent!=null&&o.parent.removeChild(this),this.insertBefore(o,a||void 0))}),this.enforceAllowedChildren()}};Dh.uiClass="";let Ov=Dh;const Et=Ov;function Bv(n,e){if(Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}const sr=class ar extends Et{static create(e){return super.create(e)}static formats(e,t){const r=t.query(ar.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Us(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof ar||(r=r.wrap(ar.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{const r=this.scroll.query(e,ie.INLINE);if(r==null)return;r instanceof Vt?this.attributes.attribute(r,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,i){this.formats()[r]!=null||this.scroll.query(r,ie.ATTRIBUTE)?this.isolate(e,t).format(r,i):super.formatAt(e,t,r,i)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const r=this.next;r instanceof ar&&r.prev===this&&Bv(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(e,t){const r=super.wrap(e,t);return r instanceof ar&&this.attributes.move(r),r}};sr.allowedChildren=[sr,Ue],sr.blotName="inline",sr.scope=ie.INLINE_BLOT,sr.tagName="SPAN";let Fv=sr;const Vl=Fv,or=class el extends Et{static create(e){return super.create(e)}static formats(e,t){const r=t.query(el.blotName);if(!(r!=null&&e.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new Us(this.domNode)}format(e,t){const r=this.scroll.query(e,ie.BLOCK);r!=null&&(r instanceof Vt?this.attributes.attribute(r,t):e===this.statics.blotName&&!t?this.replaceWith(el.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,r,i){this.scroll.query(r,ie.BLOCK)!=null?this.format(r,i):super.formatAt(e,t,r,i)}insertAt(e,t,r){if(r==null||this.scroll.query(t,ie.INLINE)!=null)super.insertAt(e,t,r);else{const i=this.split(e);if(i!=null){const s=this.scroll.create(t,r);i.parent.insertBefore(s,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const r=super.replaceWith(e,t);return this.attributes.copy(r),r}update(e,t){super.update(e,t),e.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};or.blotName="block",or.scope=ie.BLOCK_BLOT,or.tagName="P",or.allowedChildren=[Vl,or,Ue];let Lv=or;const fi=Lv,tl=class extends Et{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,r,i){super.formatAt(e,t,r,i),this.enforceAllowedChildren()}insertAt(e,t,r){super.insertAt(e,t,r),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};tl.blotName="container",tl.scope=ie.BLOCK_BLOT;let Mv=tl;const Js=Mv;class Pv extends Ue{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,r,i){e===0&&t===this.length()?this.format(r,i):super.formatAt(e,t,r,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const at=Pv,Dv={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Vv=100,lr=class extends Et{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,Dv),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const r=this.registry.find(e,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(e,t=ie.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(e,t)}formatAt(e,t,r,i){this.update(),super.formatAt(e,t,r,i)}insertAt(e,t,r){this.update(),super.insertAt(e,t,r)}optimize(e=[],t={}){super.optimize(t);const r=t.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)e.push(i.pop());const s=(l,u=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(r.has(l.domNode)||r.set(l.domNode,[]),u&&s(l.parent))},a=l=>{r.has(l.domNode)&&(l instanceof Et&&l.children.forEach(a),r.delete(l.domNode),l.optimize(t))};let o=e;for(let l=0;o.length>0;l+=1){if(l>=Vv)throw new Error("[Parchment] Maximum optimize iterations reached");for(o.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(s(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(h=>{const f=this.find(h,!1);s(f,!1),f instanceof Et&&f.children.forEach(p=>{s(p,!1)})})):u.type==="attributes"&&s(d.prev)),s(d))}),this.children.forEach(a),o=Array.from(this.observer.takeRecords()),i=o.slice();i.length>0;)e.push(i.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const r=new WeakMap;e.map(i=>{const s=this.find(i.target,!0);return s==null?null:r.has(s.domNode)?(r.get(s.domNode).push(i),null):(r.set(s.domNode,[i]),s)}).forEach(i=>{i!=null&&i!==this&&r.has(i.domNode)&&i.update(r.get(i.domNode)||[],t)}),t.mutationsMap=r,r.has(this.domNode)&&super.update(r.get(this.domNode),t),this.optimize(e,t)}};lr.blotName="scroll",lr.defaultChild=fi,lr.allowedChildren=[fi,Js],lr.scope=ie.BLOCK_BLOT,lr.tagName="DIV";let Gv=lr;const Gl=Gv,nl=class Vh extends Ue{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,r){r==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,r)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Vh&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const r=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(e,t){e.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};nl.blotName="text",nl.scope=ie.INLINE_BLOT;let jv=nl;const Rs=jv,Hv=Object.freeze(Object.defineProperty({__proto__:null,Attributor:Vt,AttributorStore:Us,BlockBlot:fi,ClassAttributor:St,ContainerBlot:Js,EmbedBlot:at,InlineBlot:Vl,LeafBlot:Ue,ParentBlot:Et,Registry:Ir,Scope:ie,ScrollBlot:Gl,StyleAttributor:In,TextBlot:Rs},Symbol.toStringTag,{value:"Module"}));var Ui={exports:{}},uo,tc;function Xv(){if(tc)return uo;tc=1;var n=-1,e=1,t=0;function r(I,O,w,j,P){if(I===O)return I?[[t,I]]:[];if(w!=null){var _=te(I,O,w);if(_)return _}var G=o(I,O),Z=I.substring(0,G);I=I.substring(G),O=O.substring(G),G=u(I,O);var z=I.substring(I.length-G);I=I.substring(0,I.length-G),O=O.substring(0,O.length-G);var T=i(I,O);return Z&&T.unshift([t,Z]),z&&T.push([t,z]),S(T,P),j&&h(T),T}function i(I,O){var w;if(!I)return[[e,O]];if(!O)return[[n,I]];var j=I.length>O.length?I:O,P=I.length>O.length?O:I,_=j.indexOf(P);if(_!==-1)return w=[[e,j.substring(0,_)],[t,P],[e,j.substring(_+P.length)]],I.length>O.length&&(w[0][0]=w[2][0]=n),w;if(P.length===1)return[[n,I],[e,O]];var G=d(I,O);if(G){var Z=G[0],z=G[1],T=G[2],M=G[3],D=G[4],W=r(Z,T),X=r(z,M);return W.concat([[t,D]],X)}return s(I,O)}function s(I,O){for(var w=I.length,j=O.length,P=Math.ceil((w+j)/2),_=P,G=2*P,Z=new Array(G),z=new Array(G),T=0;T<G;T++)Z[T]=-1,z[T]=-1;Z[_+1]=0,z[_+1]=0;for(var M=w-j,D=M%2!==0,W=0,X=0,H=0,$=0,Y=0;Y<P;Y++){for(var q=-Y+W;q<=Y-X;q+=2){var U=_+q,J;q===-Y||q!==Y&&Z[U-1]<Z[U+1]?J=Z[U+1]:J=Z[U-1]+1;for(var ae=J-q;J<w&&ae<j&&I.charAt(J)===O.charAt(ae);)J++,ae++;if(Z[U]=J,J>w)X+=2;else if(ae>j)W+=2;else if(D){var N=_+M-q;if(N>=0&&N<G&&z[N]!==-1){var fe=w-z[N];if(J>=fe)return a(I,O,J,ae)}}}for(var ve=-Y+H;ve<=Y-$;ve+=2){var N=_+ve,fe;ve===-Y||ve!==Y&&z[N-1]<z[N+1]?fe=z[N+1]:fe=z[N-1]+1;for(var Ie=fe-ve;fe<w&&Ie<j&&I.charAt(w-fe-1)===O.charAt(j-Ie-1);)fe++,Ie++;if(z[N]=fe,fe>w)$+=2;else if(Ie>j)H+=2;else if(!D){var U=_+M-ve;if(U>=0&&U<G&&Z[U]!==-1){var J=Z[U],ae=_+J-U;if(fe=w-fe,J>=fe)return a(I,O,J,ae)}}}}return[[n,I],[e,O]]}function a(I,O,w,j){var P=I.substring(0,w),_=O.substring(0,j),G=I.substring(w),Z=O.substring(j),z=r(P,_),T=r(G,Z);return z.concat(T)}function o(I,O){if(!I||!O||I.charAt(0)!==O.charAt(0))return 0;for(var w=0,j=Math.min(I.length,O.length),P=j,_=0;w<P;)I.substring(_,P)==O.substring(_,P)?(w=P,_=w):j=P,P=Math.floor((j-w)/2+w);return E(I.charCodeAt(P-1))&&P--,P}function l(I,O){var w=I.length,j=O.length;if(w==0||j==0)return 0;w>j?I=I.substring(w-j):w<j&&(O=O.substring(0,w));var P=Math.min(w,j);if(I==O)return P;for(var _=0,G=1;;){var Z=I.substring(P-G),z=O.indexOf(Z);if(z==-1)return _;G+=z,(z==0||I.substring(P-G)==O.substring(0,G))&&(_=G,G++)}}function u(I,O){if(!I||!O||I.slice(-1)!==O.slice(-1))return 0;for(var w=0,j=Math.min(I.length,O.length),P=j,_=0;w<P;)I.substring(I.length-P,I.length-_)==O.substring(O.length-P,O.length-_)?(w=P,_=w):j=P,P=Math.floor((j-w)/2+w);return x(I.charCodeAt(I.length-P))&&P--,P}function d(I,O){var w=I.length>O.length?I:O,j=I.length>O.length?O:I;if(w.length<4||j.length*2<w.length)return null;function P(X,H,$){for(var Y=X.substring($,$+Math.floor(X.length/4)),q=-1,U="",J,ae,N,fe;(q=H.indexOf(Y,q+1))!==-1;){var ve=o(X.substring($),H.substring(q)),Ie=u(X.substring(0,$),H.substring(0,q));U.length<Ie+ve&&(U=H.substring(q-Ie,q)+H.substring(q,q+ve),J=X.substring(0,$-Ie),ae=X.substring($+ve),N=H.substring(0,q-Ie),fe=H.substring(q+ve))}return U.length*2>=X.length?[J,ae,N,fe,U]:null}var _=P(w,j,Math.ceil(w.length/4)),G=P(w,j,Math.ceil(w.length/2)),Z;if(!_&&!G)return null;G?_?Z=_[4].length>G[4].length?_:G:Z=G:Z=_;var z,T,M,D;I.length>O.length?(z=Z[0],T=Z[1],M=Z[2],D=Z[3]):(M=Z[0],D=Z[1],z=Z[2],T=Z[3]);var W=Z[4];return[z,T,M,D,W]}function h(I){for(var O=!1,w=[],j=0,P=null,_=0,G=0,Z=0,z=0,T=0;_<I.length;)I[_][0]==t?(w[j++]=_,G=z,Z=T,z=0,T=0,P=I[_][1]):(I[_][0]==e?z+=I[_][1].length:T+=I[_][1].length,P&&P.length<=Math.max(G,Z)&&P.length<=Math.max(z,T)&&(I.splice(w[j-1],0,[n,P]),I[w[j-1]+1][0]=e,j--,j--,_=j>0?w[j-1]:-1,G=0,Z=0,z=0,T=0,P=null,O=!0)),_++;for(O&&S(I),v(I),_=1;_<I.length;){if(I[_-1][0]==n&&I[_][0]==e){var M=I[_-1][1],D=I[_][1],W=l(M,D),X=l(D,M);W>=X?(W>=M.length/2||W>=D.length/2)&&(I.splice(_,0,[t,D.substring(0,W)]),I[_-1][1]=M.substring(0,M.length-W),I[_+1][1]=D.substring(W),_++):(X>=M.length/2||X>=D.length/2)&&(I.splice(_,0,[t,M.substring(0,X)]),I[_-1][0]=e,I[_-1][1]=D.substring(0,D.length-X),I[_+1][0]=n,I[_+1][1]=M.substring(X),_++),_++}_++}}var f=/[^a-zA-Z0-9]/,p=/\s/,m=/[\r\n]/,b=/\n\r?\n$/,y=/^\r?\n\r?\n/;function v(I){function O(X,H){if(!X||!H)return 6;var $=X.charAt(X.length-1),Y=H.charAt(0),q=$.match(f),U=Y.match(f),J=q&&$.match(p),ae=U&&Y.match(p),N=J&&$.match(m),fe=ae&&Y.match(m),ve=N&&X.match(b),Ie=fe&&H.match(y);return ve||Ie?5:N||fe?4:q&&!J&&ae?3:J||ae?2:q||U?1:0}for(var w=1;w<I.length-1;){if(I[w-1][0]==t&&I[w+1][0]==t){var j=I[w-1][1],P=I[w][1],_=I[w+1][1],G=u(j,P);if(G){var Z=P.substring(P.length-G);j=j.substring(0,j.length-G),P=Z+P.substring(0,P.length-G),_=Z+_}for(var z=j,T=P,M=_,D=O(j,P)+O(P,_);P.charAt(0)===_.charAt(0);){j+=P.charAt(0),P=P.substring(1)+_.charAt(0),_=_.substring(1);var W=O(j,P)+O(P,_);W>=D&&(D=W,z=j,T=P,M=_)}I[w-1][1]!=z&&(z?I[w-1][1]=z:(I.splice(w-1,1),w--),I[w][1]=T,M?I[w+1][1]=M:(I.splice(w+1,1),w--))}w++}}function S(I,O){I.push([t,""]);for(var w=0,j=0,P=0,_="",G="",Z;w<I.length;){if(w<I.length-1&&!I[w][1]){I.splice(w,1);continue}switch(I[w][0]){case e:P++,G+=I[w][1],w++;break;case n:j++,_+=I[w][1],w++;break;case t:var z=w-P-j-1;if(O){if(z>=0&&R(I[z][1])){var T=I[z][1].slice(-1);if(I[z][1]=I[z][1].slice(0,-1),_=T+_,G=T+G,!I[z][1]){I.splice(z,1),w--;var M=z-1;I[M]&&I[M][0]===e&&(P++,G=I[M][1]+G,M--),I[M]&&I[M][0]===n&&(j++,_=I[M][1]+_,M--),z=M}}if(C(I[w][1])){var T=I[w][1].charAt(0);I[w][1]=I[w][1].slice(1),_+=T,G+=T}}if(w<I.length-1&&!I[w][1]){I.splice(w,1);break}if(_.length>0||G.length>0){_.length>0&&G.length>0&&(Z=o(G,_),Z!==0&&(z>=0?I[z][1]+=G.substring(0,Z):(I.splice(0,0,[t,G.substring(0,Z)]),w++),G=G.substring(Z),_=_.substring(Z)),Z=u(G,_),Z!==0&&(I[w][1]=G.substring(G.length-Z)+I[w][1],G=G.substring(0,G.length-Z),_=_.substring(0,_.length-Z)));var D=P+j;_.length===0&&G.length===0?(I.splice(w-D,D),w=w-D):_.length===0?(I.splice(w-D,D,[e,G]),w=w-D+1):G.length===0?(I.splice(w-D,D,[n,_]),w=w-D+1):(I.splice(w-D,D,[n,_],[e,G]),w=w-D+2)}w!==0&&I[w-1][0]===t?(I[w-1][1]+=I[w][1],I.splice(w,1)):w++,P=0,j=0,_="",G="";break}}I[I.length-1][1]===""&&I.pop();var W=!1;for(w=1;w<I.length-1;)I[w-1][0]===t&&I[w+1][0]===t&&(I[w][1].substring(I[w][1].length-I[w-1][1].length)===I[w-1][1]?(I[w][1]=I[w-1][1]+I[w][1].substring(0,I[w][1].length-I[w-1][1].length),I[w+1][1]=I[w-1][1]+I[w+1][1],I.splice(w-1,1),W=!0):I[w][1].substring(0,I[w+1][1].length)==I[w+1][1]&&(I[w-1][1]+=I[w+1][1],I[w][1]=I[w][1].substring(I[w+1][1].length)+I[w+1][1],I.splice(w+1,1),W=!0)),w++;W&&S(I,O)}function E(I){return I>=55296&&I<=56319}function x(I){return I>=56320&&I<=57343}function C(I){return x(I.charCodeAt(0))}function R(I){return E(I.charCodeAt(I.length-1))}function k(I){for(var O=[],w=0;w<I.length;w++)I[w][1].length>0&&O.push(I[w]);return O}function F(I,O,w,j){return R(I)||C(j)?null:k([[t,I],[n,O],[e,w],[t,j]])}function te(I,O,w){var j=typeof w=="number"?{index:w,length:0}:w.oldRange,P=typeof w=="number"?null:w.newRange,_=I.length,G=O.length;if(j.length===0&&(P===null||P.length===0)){var Z=j.index,z=I.slice(0,Z),T=I.slice(Z),M=P?P.index:null;e:{var D=Z+G-_;if(M!==null&&M!==D||D<0||D>G)break e;var W=O.slice(0,D),X=O.slice(D);if(X!==T)break e;var H=Math.min(Z,D),$=z.slice(0,H),Y=W.slice(0,H);if($!==Y)break e;var q=z.slice(H),U=W.slice(H);return F($,q,U,T)}e:{if(M!==null&&M!==Z)break e;var J=Z,W=O.slice(0,J),X=O.slice(J);if(W!==z)break e;var ae=Math.min(_-J,G-J),N=T.slice(T.length-ae),fe=X.slice(X.length-ae);if(N!==fe)break e;var q=T.slice(0,T.length-ae),U=X.slice(0,X.length-ae);return F(z,q,U,N)}}if(j.length>0&&P&&P.length===0)e:{var $=I.slice(0,j.index),N=I.slice(j.index+j.length),H=$.length,ae=N.length;if(G<H+ae)break e;var Y=O.slice(0,H),fe=O.slice(G-ae);if($!==Y||N!==fe)break e;var q=I.slice(H,_-ae),U=O.slice(H,G-ae);return F($,q,U,N)}return null}function he(I,O,w,j){return r(I,O,w,j,!0)}return he.INSERT=e,he.DELETE=n,he.EQUAL=t,uo=he,uo}var Qr={exports:{}};Qr.exports;var nc;function Gh(){return nc||(nc=1,(function(n,e){var t=200,r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Function]",h="[object GeneratorFunction]",f="[object Map]",p="[object Number]",m="[object Object]",b="[object Promise]",y="[object RegExp]",v="[object Set]",S="[object String]",E="[object Symbol]",x="[object WeakMap]",C="[object ArrayBuffer]",R="[object DataView]",k="[object Float32Array]",F="[object Float64Array]",te="[object Int8Array]",he="[object Int16Array]",I="[object Int32Array]",O="[object Uint8Array]",w="[object Uint8ClampedArray]",j="[object Uint16Array]",P="[object Uint32Array]",_=/[\\^$.*+?()[\]{}|]/g,G=/\w*$/,Z=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,T={};T[s]=T[a]=T[C]=T[R]=T[o]=T[l]=T[k]=T[F]=T[te]=T[he]=T[I]=T[f]=T[p]=T[m]=T[y]=T[v]=T[S]=T[E]=T[O]=T[w]=T[j]=T[P]=!0,T[u]=T[d]=T[x]=!1;var M=typeof It.commonjsGlobal=="object"&&It.commonjsGlobal&&It.commonjsGlobal.Object===Object&&It.commonjsGlobal,D=typeof self=="object"&&self&&self.Object===Object&&self,W=M||D||Function("return this")(),X=e&&!e.nodeType&&e,H=X&&!0&&n&&!n.nodeType&&n,$=H&&H.exports===X;function Y(c,g){return c.set(g[0],g[1]),c}function q(c,g){return c.add(g),c}function U(c,g){for(var A=-1,B=c?c.length:0;++A<B&&g(c[A],A,c)!==!1;);return c}function J(c,g){for(var A=-1,B=g.length,ge=c.length;++A<B;)c[ge+A]=g[A];return c}function ae(c,g,A,B){for(var ge=-1,oe=c?c.length:0;++ge<oe;)A=g(A,c[ge],ge,c);return A}function N(c,g){for(var A=-1,B=Array(c);++A<c;)B[A]=g(A);return B}function fe(c,g){return c==null?void 0:c[g]}function ve(c){var g=!1;if(c!=null&&typeof c.toString!="function")try{g=!!(c+"")}catch{}return g}function Ie(c){var g=-1,A=Array(c.size);return c.forEach(function(B,ge){A[++g]=[ge,B]}),A}function Rr(c,g){return function(A){return c(g(A))}}function Ni(c){var g=-1,A=Array(c.size);return c.forEach(function(B){A[++g]=B}),A}var fa=Array.prototype,pa=Function.prototype,Zn=Object.prototype,_r=W["__core-js_shared__"],ki=(function(){var c=/[^.]+$/.exec(_r&&_r.keys&&_r.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),Ri=pa.toString,Nt=Zn.hasOwnProperty,zn=Zn.toString,ga=RegExp("^"+Ri.call(Nt).replace(_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),An=$?W.Buffer:void 0,$n=W.Symbol,Or=W.Uint8Array,ot=Rr(Object.getPrototypeOf,Object),_i=Object.create,Oi=Zn.propertyIsEnumerable,ma=fa.splice,Br=Object.getOwnPropertySymbols,Yn=An?An.isBuffer:void 0,Bi=Rr(Object.keys,Object),Un=gt(W,"DataView"),En=gt(W,"Map"),pt=gt(W,"Promise"),Jn=gt(W,"Set"),Fr=gt(W,"WeakMap"),xn=gt(Object,"create"),Lr=et(Un),Sn=et(En),Mr=et(pt),Pr=et(Jn),Dr=et(Fr),sn=$n?$n.prototype:void 0,Fi=sn?sn.valueOf:void 0;function Xt(c){var g=-1,A=c?c.length:0;for(this.clear();++g<A;){var B=c[g];this.set(B[0],B[1])}}function ba(){this.__data__=xn?xn(null):{}}function va(c){return this.has(c)&&delete this.__data__[c]}function ya(c){var g=this.__data__;if(xn){var A=g[c];return A===r?void 0:A}return Nt.call(g,c)?g[c]:void 0}function Li(c){var g=this.__data__;return xn?g[c]!==void 0:Nt.call(g,c)}function Vr(c,g){var A=this.__data__;return A[c]=xn&&g===void 0?r:g,this}Xt.prototype.clear=ba,Xt.prototype.delete=va,Xt.prototype.get=ya,Xt.prototype.has=Li,Xt.prototype.set=Vr;function He(c){var g=-1,A=c?c.length:0;for(this.clear();++g<A;){var B=c[g];this.set(B[0],B[1])}}function Ca(){this.__data__=[]}function Ia(c){var g=this.__data__,A=Kn(g,c);if(A<0)return!1;var B=g.length-1;return A==B?g.pop():ma.call(g,A,1),!0}function Aa(c){var g=this.__data__,A=Kn(g,c);return A<0?void 0:g[A][1]}function Ea(c){return Kn(this.__data__,c)>-1}function xa(c,g){var A=this.__data__,B=Kn(A,c);return B<0?A.push([c,g]):A[B][1]=g,this}He.prototype.clear=Ca,He.prototype.delete=Ia,He.prototype.get=Aa,He.prototype.has=Ea,He.prototype.set=xa;function Ze(c){var g=-1,A=c?c.length:0;for(this.clear();++g<A;){var B=c[g];this.set(B[0],B[1])}}function Sa(){this.__data__={hash:new Xt,map:new(En||He),string:new Xt}}function wa(c){return Tn(this,c).delete(c)}function Ta(c){return Tn(this,c).get(c)}function Na(c){return Tn(this,c).has(c)}function ka(c,g){return Tn(this,c).set(c,g),this}Ze.prototype.clear=Sa,Ze.prototype.delete=wa,Ze.prototype.get=Ta,Ze.prototype.has=Na,Ze.prototype.set=ka;function tt(c){this.__data__=new He(c)}function Ra(){this.__data__=new He}function _a(c){return this.__data__.delete(c)}function Oa(c){return this.__data__.get(c)}function Ba(c){return this.__data__.has(c)}function Fa(c,g){var A=this.__data__;if(A instanceof He){var B=A.__data__;if(!En||B.length<t-1)return B.push([c,g]),this;A=this.__data__=new Ze(B)}return A.set(c,g),this}tt.prototype.clear=Ra,tt.prototype.delete=_a,tt.prototype.get=Oa,tt.prototype.has=Ba,tt.prototype.set=Fa;function Qn(c,g){var A=Xr(c)||tr(c)?N(c.length,String):[],B=A.length,ge=!!B;for(var oe in c)Nt.call(c,oe)&&!(ge&&(oe=="length"||$a(oe,B)))&&A.push(oe);return A}function Mi(c,g,A){var B=c[g];(!(Nt.call(c,g)&&ji(B,A))||A===void 0&&!(g in c))&&(c[g]=A)}function Kn(c,g){for(var A=c.length;A--;)if(ji(c[A][0],g))return A;return-1}function kt(c,g){return c&&Hr(g,qr(g),c)}function Gr(c,g,A,B,ge,oe,Ce){var ye;if(B&&(ye=oe?B(c,ge,oe,Ce):B(c)),ye!==void 0)return ye;if(!_t(c))return c;var Me=Xr(c);if(Me){if(ye=Za(c),!g)return Xa(c,ye)}else{var Se=qt(c),ze=Se==d||Se==h;if(Hi(c))return er(c,g);if(Se==m||Se==s||ze&&!oe){if(ve(c))return oe?c:{};if(ye=Rt(ze?{}:c),!g)return Wa(c,kt(ye,c))}else{if(!T[Se])return oe?c:{};ye=za(c,Se,Gr,g)}}Ce||(Ce=new tt);var nt=Ce.get(c);if(nt)return nt;if(Ce.set(c,ye),!Me)var Ve=A?qa(c):qr(c);return U(Ve||c,function($e,Xe){Ve&&(Xe=$e,$e=c[Xe]),Mi(ye,Xe,Gr($e,g,A,B,Xe,c,Ce))}),ye}function La(c){return _t(c)?_i(c):{}}function Ma(c,g,A){var B=g(c);return Xr(c)?B:J(B,A(c))}function Pa(c){return zn.call(c)}function Da(c){if(!_t(c)||Ua(c))return!1;var g=Wr(c)||ve(c)?ga:Z;return g.test(et(c))}function Va(c){if(!Vi(c))return Bi(c);var g=[];for(var A in Object(c))Nt.call(c,A)&&A!="constructor"&&g.push(A);return g}function er(c,g){if(g)return c.slice();var A=new c.constructor(c.length);return c.copy(A),A}function jr(c){var g=new c.constructor(c.byteLength);return new Or(g).set(new Or(c)),g}function wn(c,g){var A=g?jr(c.buffer):c.buffer;return new c.constructor(A,c.byteOffset,c.byteLength)}function Pi(c,g,A){var B=g?A(Ie(c),!0):Ie(c);return ae(B,Y,new c.constructor)}function Di(c){var g=new c.constructor(c.source,G.exec(c));return g.lastIndex=c.lastIndex,g}function Ga(c,g,A){var B=g?A(Ni(c),!0):Ni(c);return ae(B,q,new c.constructor)}function ja(c){return Fi?Object(Fi.call(c)):{}}function Ha(c,g){var A=g?jr(c.buffer):c.buffer;return new c.constructor(A,c.byteOffset,c.length)}function Xa(c,g){var A=-1,B=c.length;for(g||(g=Array(B));++A<B;)g[A]=c[A];return g}function Hr(c,g,A,B){A||(A={});for(var ge=-1,oe=g.length;++ge<oe;){var Ce=g[ge],ye=void 0;Mi(A,Ce,ye===void 0?c[Ce]:ye)}return A}function Wa(c,g){return Hr(c,Wt(c),g)}function qa(c){return Ma(c,qr,Wt)}function Tn(c,g){var A=c.__data__;return Ya(g)?A[typeof g=="string"?"string":"hash"]:A.map}function gt(c,g){var A=fe(c,g);return Da(A)?A:void 0}var Wt=Br?Rr(Br,Object):Qa,qt=Pa;(Un&&qt(new Un(new ArrayBuffer(1)))!=R||En&&qt(new En)!=f||pt&&qt(pt.resolve())!=b||Jn&&qt(new Jn)!=v||Fr&&qt(new Fr)!=x)&&(qt=function(c){var g=zn.call(c),A=g==m?c.constructor:void 0,B=A?et(A):void 0;if(B)switch(B){case Lr:return R;case Sn:return f;case Mr:return b;case Pr:return v;case Dr:return x}return g});function Za(c){var g=c.length,A=c.constructor(g);return g&&typeof c[0]=="string"&&Nt.call(c,"index")&&(A.index=c.index,A.input=c.input),A}function Rt(c){return typeof c.constructor=="function"&&!Vi(c)?La(ot(c)):{}}function za(c,g,A,B){var ge=c.constructor;switch(g){case C:return jr(c);case o:case l:return new ge(+c);case R:return wn(c,B);case k:case F:case te:case he:case I:case O:case w:case j:case P:return Ha(c,B);case f:return Pi(c,B,A);case p:case S:return new ge(c);case y:return Di(c);case v:return Ga(c,B,A);case E:return ja(c)}}function $a(c,g){return g=g??i,!!g&&(typeof c=="number"||z.test(c))&&c>-1&&c%1==0&&c<g}function Ya(c){var g=typeof c;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?c!=="__proto__":c===null}function Ua(c){return!!ki&&ki in c}function Vi(c){var g=c&&c.constructor,A=typeof g=="function"&&g.prototype||Zn;return c===A}function et(c){if(c!=null){try{return Ri.call(c)}catch{}try{return c+""}catch{}}return""}function Gi(c){return Gr(c,!0,!0)}function ji(c,g){return c===g||c!==c&&g!==g}function tr(c){return Ja(c)&&Nt.call(c,"callee")&&(!Oi.call(c,"callee")||zn.call(c)==s)}var Xr=Array.isArray;function nr(c){return c!=null&&Xi(c.length)&&!Wr(c)}function Ja(c){return Wi(c)&&nr(c)}var Hi=Yn||Ka;function Wr(c){var g=_t(c)?zn.call(c):"";return g==d||g==h}function Xi(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=i}function _t(c){var g=typeof c;return!!c&&(g=="object"||g=="function")}function Wi(c){return!!c&&typeof c=="object"}function qr(c){return nr(c)?Qn(c):Va(c)}function Qa(){return[]}function Ka(){return!1}n.exports=Gi})(Qr,Qr.exports)),Qr.exports}var Kr={exports:{}};Kr.exports;var rc;function jh(){return rc||(rc=1,(function(n,e){var t=200,r="__lodash_hash_undefined__",i=1,s=2,a=9007199254740991,o="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Function]",m="[object GeneratorFunction]",b="[object Map]",y="[object Number]",v="[object Null]",S="[object Object]",E="[object Promise]",x="[object Proxy]",C="[object RegExp]",R="[object Set]",k="[object String]",F="[object Symbol]",te="[object Undefined]",he="[object WeakMap]",I="[object ArrayBuffer]",O="[object DataView]",w="[object Float32Array]",j="[object Float64Array]",P="[object Int8Array]",_="[object Int16Array]",G="[object Int32Array]",Z="[object Uint8Array]",z="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",D=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,X=/^(?:0|[1-9]\d*)$/,H={};H[w]=H[j]=H[P]=H[_]=H[G]=H[Z]=H[z]=H[T]=H[M]=!0,H[o]=H[l]=H[I]=H[d]=H[O]=H[h]=H[f]=H[p]=H[b]=H[y]=H[S]=H[C]=H[R]=H[k]=H[he]=!1;var $=typeof It.commonjsGlobal=="object"&&It.commonjsGlobal&&It.commonjsGlobal.Object===Object&&It.commonjsGlobal,Y=typeof self=="object"&&self&&self.Object===Object&&self,q=$||Y||Function("return this")(),U=e&&!e.nodeType&&e,J=U&&!0&&n&&!n.nodeType&&n,ae=J&&J.exports===U,N=ae&&$.process,fe=(function(){try{return N&&N.binding&&N.binding("util")}catch{}})(),ve=fe&&fe.isTypedArray;function Ie(c,g){for(var A=-1,B=c==null?0:c.length,ge=0,oe=[];++A<B;){var Ce=c[A];g(Ce,A,c)&&(oe[ge++]=Ce)}return oe}function Rr(c,g){for(var A=-1,B=g.length,ge=c.length;++A<B;)c[ge+A]=g[A];return c}function Ni(c,g){for(var A=-1,B=c==null?0:c.length;++A<B;)if(g(c[A],A,c))return!0;return!1}function fa(c,g){for(var A=-1,B=Array(c);++A<c;)B[A]=g(A);return B}function pa(c){return function(g){return c(g)}}function Zn(c,g){return c.has(g)}function _r(c,g){return c==null?void 0:c[g]}function ki(c){var g=-1,A=Array(c.size);return c.forEach(function(B,ge){A[++g]=[ge,B]}),A}function Ri(c,g){return function(A){return c(g(A))}}function Nt(c){var g=-1,A=Array(c.size);return c.forEach(function(B){A[++g]=B}),A}var zn=Array.prototype,ga=Function.prototype,An=Object.prototype,$n=q["__core-js_shared__"],Or=ga.toString,ot=An.hasOwnProperty,_i=(function(){var c=/[^.]+$/.exec($n&&$n.keys&&$n.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),Oi=An.toString,ma=RegExp("^"+Or.call(ot).replace(D,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Br=ae?q.Buffer:void 0,Yn=q.Symbol,Bi=q.Uint8Array,Un=An.propertyIsEnumerable,En=zn.splice,pt=Yn?Yn.toStringTag:void 0,Jn=Object.getOwnPropertySymbols,Fr=Br?Br.isBuffer:void 0,xn=Ri(Object.keys,Object),Lr=Wt(q,"DataView"),Sn=Wt(q,"Map"),Mr=Wt(q,"Promise"),Pr=Wt(q,"Set"),Dr=Wt(q,"WeakMap"),sn=Wt(Object,"create"),Fi=et(Lr),Xt=et(Sn),ba=et(Mr),va=et(Pr),ya=et(Dr),Li=Yn?Yn.prototype:void 0,Vr=Li?Li.valueOf:void 0;function He(c){var g=-1,A=c==null?0:c.length;for(this.clear();++g<A;){var B=c[g];this.set(B[0],B[1])}}function Ca(){this.__data__=sn?sn(null):{},this.size=0}function Ia(c){var g=this.has(c)&&delete this.__data__[c];return this.size-=g?1:0,g}function Aa(c){var g=this.__data__;if(sn){var A=g[c];return A===r?void 0:A}return ot.call(g,c)?g[c]:void 0}function Ea(c){var g=this.__data__;return sn?g[c]!==void 0:ot.call(g,c)}function xa(c,g){var A=this.__data__;return this.size+=this.has(c)?0:1,A[c]=sn&&g===void 0?r:g,this}He.prototype.clear=Ca,He.prototype.delete=Ia,He.prototype.get=Aa,He.prototype.has=Ea,He.prototype.set=xa;function Ze(c){var g=-1,A=c==null?0:c.length;for(this.clear();++g<A;){var B=c[g];this.set(B[0],B[1])}}function Sa(){this.__data__=[],this.size=0}function wa(c){var g=this.__data__,A=er(g,c);if(A<0)return!1;var B=g.length-1;return A==B?g.pop():En.call(g,A,1),--this.size,!0}function Ta(c){var g=this.__data__,A=er(g,c);return A<0?void 0:g[A][1]}function Na(c){return er(this.__data__,c)>-1}function ka(c,g){var A=this.__data__,B=er(A,c);return B<0?(++this.size,A.push([c,g])):A[B][1]=g,this}Ze.prototype.clear=Sa,Ze.prototype.delete=wa,Ze.prototype.get=Ta,Ze.prototype.has=Na,Ze.prototype.set=ka;function tt(c){var g=-1,A=c==null?0:c.length;for(this.clear();++g<A;){var B=c[g];this.set(B[0],B[1])}}function Ra(){this.size=0,this.__data__={hash:new He,map:new(Sn||Ze),string:new He}}function _a(c){var g=gt(this,c).delete(c);return this.size-=g?1:0,g}function Oa(c){return gt(this,c).get(c)}function Ba(c){return gt(this,c).has(c)}function Fa(c,g){var A=gt(this,c),B=A.size;return A.set(c,g),this.size+=A.size==B?0:1,this}tt.prototype.clear=Ra,tt.prototype.delete=_a,tt.prototype.get=Oa,tt.prototype.has=Ba,tt.prototype.set=Fa;function Qn(c){var g=-1,A=c==null?0:c.length;for(this.__data__=new tt;++g<A;)this.add(c[g])}function Mi(c){return this.__data__.set(c,r),this}function Kn(c){return this.__data__.has(c)}Qn.prototype.add=Qn.prototype.push=Mi,Qn.prototype.has=Kn;function kt(c){var g=this.__data__=new Ze(c);this.size=g.size}function Gr(){this.__data__=new Ze,this.size=0}function La(c){var g=this.__data__,A=g.delete(c);return this.size=g.size,A}function Ma(c){return this.__data__.get(c)}function Pa(c){return this.__data__.has(c)}function Da(c,g){var A=this.__data__;if(A instanceof Ze){var B=A.__data__;if(!Sn||B.length<t-1)return B.push([c,g]),this.size=++A.size,this;A=this.__data__=new tt(B)}return A.set(c,g),this.size=A.size,this}kt.prototype.clear=Gr,kt.prototype.delete=La,kt.prototype.get=Ma,kt.prototype.has=Pa,kt.prototype.set=Da;function Va(c,g){var A=tr(c),B=!A&&ji(c),ge=!A&&!B&&nr(c),oe=!A&&!B&&!ge&&Wi(c),Ce=A||B||ge||oe,ye=Ce?fa(c.length,String):[],Me=ye.length;for(var Se in c)ot.call(c,Se)&&!(Ce&&(Se=="length"||ge&&(Se=="offset"||Se=="parent")||oe&&(Se=="buffer"||Se=="byteLength"||Se=="byteOffset")||za(Se,Me)))&&ye.push(Se);return ye}function er(c,g){for(var A=c.length;A--;)if(Gi(c[A][0],g))return A;return-1}function jr(c,g,A){var B=g(c);return tr(c)?B:Rr(B,A(c))}function wn(c){return c==null?c===void 0?te:v:pt&&pt in Object(c)?qt(c):Vi(c)}function Pi(c){return _t(c)&&wn(c)==o}function Di(c,g,A,B,ge){return c===g?!0:c==null||g==null||!_t(c)&&!_t(g)?c!==c&&g!==g:Ga(c,g,A,B,Di,ge)}function Ga(c,g,A,B,ge,oe){var Ce=tr(c),ye=tr(g),Me=Ce?l:Rt(c),Se=ye?l:Rt(g);Me=Me==o?S:Me,Se=Se==o?S:Se;var ze=Me==S,nt=Se==S,Ve=Me==Se;if(Ve&&nr(c)){if(!nr(g))return!1;Ce=!0,ze=!1}if(Ve&&!ze)return oe||(oe=new kt),Ce||Wi(c)?Hr(c,g,A,B,ge,oe):Wa(c,g,Me,A,B,ge,oe);if(!(A&i)){var $e=ze&&ot.call(c,"__wrapped__"),Xe=nt&&ot.call(g,"__wrapped__");if($e||Xe){var an=$e?c.value():c,Zt=Xe?g.value():g;return oe||(oe=new kt),ge(an,Zt,A,B,oe)}}return Ve?(oe||(oe=new kt),qa(c,g,A,B,ge,oe)):!1}function ja(c){if(!Xi(c)||Ya(c))return!1;var g=Hi(c)?ma:W;return g.test(et(c))}function Ha(c){return _t(c)&&Wr(c.length)&&!!H[wn(c)]}function Xa(c){if(!Ua(c))return xn(c);var g=[];for(var A in Object(c))ot.call(c,A)&&A!="constructor"&&g.push(A);return g}function Hr(c,g,A,B,ge,oe){var Ce=A&i,ye=c.length,Me=g.length;if(ye!=Me&&!(Ce&&Me>ye))return!1;var Se=oe.get(c);if(Se&&oe.get(g))return Se==g;var ze=-1,nt=!0,Ve=A&s?new Qn:void 0;for(oe.set(c,g),oe.set(g,c);++ze<ye;){var $e=c[ze],Xe=g[ze];if(B)var an=Ce?B(Xe,$e,ze,g,c,oe):B($e,Xe,ze,c,g,oe);if(an!==void 0){if(an)continue;nt=!1;break}if(Ve){if(!Ni(g,function(Zt,Nn){if(!Zn(Ve,Nn)&&($e===Zt||ge($e,Zt,A,B,oe)))return Ve.push(Nn)})){nt=!1;break}}else if(!($e===Xe||ge($e,Xe,A,B,oe))){nt=!1;break}}return oe.delete(c),oe.delete(g),nt}function Wa(c,g,A,B,ge,oe,Ce){switch(A){case O:if(c.byteLength!=g.byteLength||c.byteOffset!=g.byteOffset)return!1;c=c.buffer,g=g.buffer;case I:return!(c.byteLength!=g.byteLength||!oe(new Bi(c),new Bi(g)));case d:case h:case y:return Gi(+c,+g);case f:return c.name==g.name&&c.message==g.message;case C:case k:return c==g+"";case b:var ye=ki;case R:var Me=B&i;if(ye||(ye=Nt),c.size!=g.size&&!Me)return!1;var Se=Ce.get(c);if(Se)return Se==g;B|=s,Ce.set(c,g);var ze=Hr(ye(c),ye(g),B,ge,oe,Ce);return Ce.delete(c),ze;case F:if(Vr)return Vr.call(c)==Vr.call(g)}return!1}function qa(c,g,A,B,ge,oe){var Ce=A&i,ye=Tn(c),Me=ye.length,Se=Tn(g),ze=Se.length;if(Me!=ze&&!Ce)return!1;for(var nt=Me;nt--;){var Ve=ye[nt];if(!(Ce?Ve in g:ot.call(g,Ve)))return!1}var $e=oe.get(c);if($e&&oe.get(g))return $e==g;var Xe=!0;oe.set(c,g),oe.set(g,c);for(var an=Ce;++nt<Me;){Ve=ye[nt];var Zt=c[Ve],Nn=g[Ve];if(B)var lu=Ce?B(Nn,Zt,Ve,g,c,oe):B(Zt,Nn,Ve,c,g,oe);if(!(lu===void 0?Zt===Nn||ge(Zt,Nn,A,B,oe):lu)){Xe=!1;break}an||(an=Ve=="constructor")}if(Xe&&!an){var qi=c.constructor,Zi=g.constructor;qi!=Zi&&"constructor"in c&&"constructor"in g&&!(typeof qi=="function"&&qi instanceof qi&&typeof Zi=="function"&&Zi instanceof Zi)&&(Xe=!1)}return oe.delete(c),oe.delete(g),Xe}function Tn(c){return jr(c,qr,Za)}function gt(c,g){var A=c.__data__;return $a(g)?A[typeof g=="string"?"string":"hash"]:A.map}function Wt(c,g){var A=_r(c,g);return ja(A)?A:void 0}function qt(c){var g=ot.call(c,pt),A=c[pt];try{c[pt]=void 0;var B=!0}catch{}var ge=Oi.call(c);return B&&(g?c[pt]=A:delete c[pt]),ge}var Za=Jn?function(c){return c==null?[]:(c=Object(c),Ie(Jn(c),function(g){return Un.call(c,g)}))}:Qa,Rt=wn;(Lr&&Rt(new Lr(new ArrayBuffer(1)))!=O||Sn&&Rt(new Sn)!=b||Mr&&Rt(Mr.resolve())!=E||Pr&&Rt(new Pr)!=R||Dr&&Rt(new Dr)!=he)&&(Rt=function(c){var g=wn(c),A=g==S?c.constructor:void 0,B=A?et(A):"";if(B)switch(B){case Fi:return O;case Xt:return b;case ba:return E;case va:return R;case ya:return he}return g});function za(c,g){return g=g??a,!!g&&(typeof c=="number"||X.test(c))&&c>-1&&c%1==0&&c<g}function $a(c){var g=typeof c;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?c!=="__proto__":c===null}function Ya(c){return!!_i&&_i in c}function Ua(c){var g=c&&c.constructor,A=typeof g=="function"&&g.prototype||An;return c===A}function Vi(c){return Oi.call(c)}function et(c){if(c!=null){try{return Or.call(c)}catch{}try{return c+""}catch{}}return""}function Gi(c,g){return c===g||c!==c&&g!==g}var ji=Pi((function(){return arguments})())?Pi:function(c){return _t(c)&&ot.call(c,"callee")&&!Un.call(c,"callee")},tr=Array.isArray;function Xr(c){return c!=null&&Wr(c.length)&&!Hi(c)}var nr=Fr||Ka;function Ja(c,g){return Di(c,g)}function Hi(c){if(!Xi(c))return!1;var g=wn(c);return g==p||g==m||g==u||g==x}function Wr(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=a}function Xi(c){var g=typeof c;return c!=null&&(g=="object"||g=="function")}function _t(c){return c!=null&&typeof c=="object"}var Wi=ve?pa(ve):Ha;function qr(c){return Xr(c)?Va(c):Xa(c)}function Qa(){return[]}function Ka(){return!1}n.exports=Ja})(Kr,Kr.exports)),Kr.exports}var Ji={},ic;function Wv(){if(ic)return Ji;ic=1,Object.defineProperty(Ji,"__esModule",{value:!0});const n=Gh(),e=jh();var t;return(function(r){function i(l={},u={},d=!1){typeof l!="object"&&(l={}),typeof u!="object"&&(u={});let h=n(u);d||(h=Object.keys(h).reduce((f,p)=>(h[p]!=null&&(f[p]=h[p]),f),{}));for(const f in l)l[f]!==void 0&&u[f]===void 0&&(h[f]=l[f]);return Object.keys(h).length>0?h:void 0}r.compose=i;function s(l={},u={}){typeof l!="object"&&(l={}),typeof u!="object"&&(u={});const d=Object.keys(l).concat(Object.keys(u)).reduce((h,f)=>(e(l[f],u[f])||(h[f]=u[f]===void 0?null:u[f]),h),{});return Object.keys(d).length>0?d:void 0}r.diff=s;function a(l={},u={}){l=l||{};const d=Object.keys(u).reduce((h,f)=>(u[f]!==l[f]&&l[f]!==void 0&&(h[f]=u[f]),h),{});return Object.keys(l).reduce((h,f)=>(l[f]!==u[f]&&u[f]===void 0&&(h[f]=null),h),d)}r.invert=a;function o(l,u,d=!1){if(typeof l!="object")return u;if(typeof u!="object")return;if(!d)return u;const h=Object.keys(u).reduce((f,p)=>(l[p]===void 0&&(f[p]=u[p]),f),{});return Object.keys(h).length>0?h:void 0}r.transform=o})(t||(t={})),Ji.default=t,Ji}var Qi={},sc;function Hh(){if(sc)return Qi;sc=1,Object.defineProperty(Qi,"__esModule",{value:!0});var n;return(function(e){function t(r){return typeof r.delete=="number"?r.delete:typeof r.retain=="number"?r.retain:typeof r.retain=="object"&&r.retain!==null?1:typeof r.insert=="string"?r.insert.length:1}e.length=t})(n||(n={})),Qi.default=n,Qi}var Ki={},ac;function qv(){if(ac)return Ki;ac=1,Object.defineProperty(Ki,"__esModule",{value:!0});const n=Hh();class e{constructor(r){this.ops=r,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(r){r||(r=1/0);const i=this.ops[this.index];if(i){const s=this.offset,a=n.default.length(i);if(r>=a-s?(r=a-s,this.index+=1,this.offset=0):this.offset+=r,typeof i.delete=="number")return{delete:r};{const o={};return i.attributes&&(o.attributes=i.attributes),typeof i.retain=="number"?o.retain=r:typeof i.retain=="object"&&i.retain!==null?o.retain=i.retain:typeof i.insert=="string"?o.insert=i.insert.substr(s,r):o.insert=i.insert,o}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?n.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const r=this.ops[this.index];return r?typeof r.delete=="number"?"delete":typeof r.retain=="number"||typeof r.retain=="object"&&r.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const r=this.offset,i=this.index,s=this.next(),a=this.ops.slice(this.index);return this.offset=r,this.index=i,[s].concat(a)}}else return[]}}return Ki.default=e,Ki}var oc;function Zv(){return oc||(oc=1,(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=Xv(),r=Gh(),i=jh(),s=Wv();e.AttributeMap=s.default;const a=Hh();e.Op=a.default;const o=qv();e.OpIterator=o.default;const l="\0",u=(h,f)=>{if(typeof h!="object"||h===null)throw new Error(`cannot retain a ${typeof h}`);if(typeof f!="object"||f===null)throw new Error(`cannot retain a ${typeof f}`);const p=Object.keys(h)[0];if(!p||p!==Object.keys(f)[0])throw new Error(`embed types not matched: ${p} != ${Object.keys(f)[0]}`);return[p,h[p],f[p]]};class d{constructor(f){Array.isArray(f)?this.ops=f:f!=null&&Array.isArray(f.ops)?this.ops=f.ops:this.ops=[]}static registerEmbed(f,p){this.handlers[f]=p}static unregisterEmbed(f){delete this.handlers[f]}static getHandler(f){const p=this.handlers[f];if(!p)throw new Error(`no handlers for embed type "${f}"`);return p}insert(f,p){const m={};return typeof f=="string"&&f.length===0?this:(m.insert=f,p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(m.attributes=p),this.push(m))}delete(f){return f<=0?this:this.push({delete:f})}retain(f,p){if(typeof f=="number"&&f<=0)return this;const m={retain:f};return p!=null&&typeof p=="object"&&Object.keys(p).length>0&&(m.attributes=p),this.push(m)}push(f){let p=this.ops.length,m=this.ops[p-1];if(f=r(f),typeof m=="object"){if(typeof f.delete=="number"&&typeof m.delete=="number")return this.ops[p-1]={delete:m.delete+f.delete},this;if(typeof m.delete=="number"&&f.insert!=null&&(p-=1,m=this.ops[p-1],typeof m!="object"))return this.ops.unshift(f),this;if(i(f.attributes,m.attributes)){if(typeof f.insert=="string"&&typeof m.insert=="string")return this.ops[p-1]={insert:m.insert+f.insert},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this;if(typeof f.retain=="number"&&typeof m.retain=="number")return this.ops[p-1]={retain:m.retain+f.retain},typeof f.attributes=="object"&&(this.ops[p-1].attributes=f.attributes),this}}return p===this.ops.length?this.ops.push(f):this.ops.splice(p,0,f),this}chop(){const f=this.ops[this.ops.length-1];return f&&typeof f.retain=="number"&&!f.attributes&&this.ops.pop(),this}filter(f){return this.ops.filter(f)}forEach(f){this.ops.forEach(f)}map(f){return this.ops.map(f)}partition(f){const p=[],m=[];return this.forEach(b=>{(f(b)?p:m).push(b)}),[p,m]}reduce(f,p){return this.ops.reduce(f,p)}changeLength(){return this.reduce((f,p)=>p.insert?f+a.default.length(p):p.delete?f-p.delete:f,0)}length(){return this.reduce((f,p)=>f+a.default.length(p),0)}slice(f=0,p=1/0){const m=[],b=new o.default(this.ops);let y=0;for(;y<p&&b.hasNext();){let v;y<f?v=b.next(f-y):(v=b.next(p-y),m.push(v)),y+=a.default.length(v)}return new d(m)}compose(f){const p=new o.default(this.ops),m=new o.default(f.ops),b=[],y=m.peek();if(y!=null&&typeof y.retain=="number"&&y.attributes==null){let S=y.retain;for(;p.peekType()==="insert"&&p.peekLength()<=S;)S-=p.peekLength(),b.push(p.next());y.retain-S>0&&m.next(y.retain-S)}const v=new d(b);for(;p.hasNext()||m.hasNext();)if(m.peekType()==="insert")v.push(m.next());else if(p.peekType()==="delete")v.push(p.next());else{const S=Math.min(p.peekLength(),m.peekLength()),E=p.next(S),x=m.next(S);if(x.retain){const C={};if(typeof E.retain=="number")C.retain=typeof x.retain=="number"?S:x.retain;else if(typeof x.retain=="number")E.retain==null?C.insert=E.insert:C.retain=E.retain;else{const k=E.retain==null?"insert":"retain",[F,te,he]=u(E[k],x.retain),I=d.getHandler(F);C[k]={[F]:I.compose(te,he,k==="retain")}}const R=s.default.compose(E.attributes,x.attributes,typeof E.retain=="number");if(R&&(C.attributes=R),v.push(C),!m.hasNext()&&i(v.ops[v.ops.length-1],C)){const k=new d(p.rest());return v.concat(k).chop()}}else typeof x.delete=="number"&&(typeof E.retain=="number"||typeof E.retain=="object"&&E.retain!==null)&&v.push(x)}return v.chop()}concat(f){const p=new d(this.ops.slice());return f.ops.length>0&&(p.push(f.ops[0]),p.ops=p.ops.concat(f.ops.slice(1))),p}diff(f,p){if(this.ops===f.ops)return new d;const m=[this,f].map(E=>E.map(x=>{if(x.insert!=null)return typeof x.insert=="string"?x.insert:l;const C=E===f?"on":"with";throw new Error("diff() called "+C+" non-document")}).join("")),b=new d,y=t(m[0],m[1],p,!0),v=new o.default(this.ops),S=new o.default(f.ops);return y.forEach(E=>{let x=E[1].length;for(;x>0;){let C=0;switch(E[0]){case t.INSERT:C=Math.min(S.peekLength(),x),b.push(S.next(C));break;case t.DELETE:C=Math.min(x,v.peekLength()),v.next(C),b.delete(C);break;case t.EQUAL:C=Math.min(v.peekLength(),S.peekLength(),x);const R=v.next(C),k=S.next(C);i(R.insert,k.insert)?b.retain(C,s.default.diff(R.attributes,k.attributes)):b.push(k).delete(C);break}x-=C}}),b.chop()}eachLine(f,p=`
101
+ `){const m=new o.default(this.ops);let b=new d,y=0;for(;m.hasNext();){if(m.peekType()!=="insert")return;const v=m.peek(),S=a.default.length(v)-m.peekLength(),E=typeof v.insert=="string"?v.insert.indexOf(p,S)-S:-1;if(E<0)b.push(m.next());else if(E>0)b.push(m.next(E));else{if(f(b,m.next(1).attributes||{},y)===!1)return;y+=1,b=new d}}b.length()>0&&f(b,{},y)}invert(f){const p=new d;return this.reduce((m,b)=>{if(b.insert)p.delete(a.default.length(b));else{if(typeof b.retain=="number"&&b.attributes==null)return p.retain(b.retain),m+b.retain;if(b.delete||typeof b.retain=="number"){const y=b.delete||b.retain;return f.slice(m,m+y).forEach(S=>{b.delete?p.push(S):b.retain&&b.attributes&&p.retain(a.default.length(S),s.default.invert(b.attributes,S.attributes))}),m+y}else if(typeof b.retain=="object"&&b.retain!==null){const y=f.slice(m,m+1),v=new o.default(y.ops).next(),[S,E,x]=u(b.retain,v.insert),C=d.getHandler(S);return p.retain({[S]:C.invert(E,x)},s.default.invert(b.attributes,v.attributes)),m+1}}return m},0),p.chop()}transform(f,p=!1){if(p=!!p,typeof f=="number")return this.transformPosition(f,p);const m=f,b=new o.default(this.ops),y=new o.default(m.ops),v=new d;for(;b.hasNext()||y.hasNext();)if(b.peekType()==="insert"&&(p||y.peekType()!=="insert"))v.retain(a.default.length(b.next()));else if(y.peekType()==="insert")v.push(y.next());else{const S=Math.min(b.peekLength(),y.peekLength()),E=b.next(S),x=y.next(S);if(E.delete)continue;if(x.delete)v.push(x);else{const C=E.retain,R=x.retain;let k=typeof R=="object"&&R!==null?R:S;if(typeof C=="object"&&C!==null&&typeof R=="object"&&R!==null){const F=Object.keys(C)[0];if(F===Object.keys(R)[0]){const te=d.getHandler(F);te&&(k={[F]:te.transform(C[F],R[F],p)})}}v.retain(k,s.default.transform(E.attributes,x.attributes,p))}}return v.chop()}transformPosition(f,p=!1){p=!!p;const m=new o.default(this.ops);let b=0;for(;m.hasNext()&&b<=f;){const y=m.peekLength(),v=m.peekType();if(m.next(),v==="delete"){f-=Math.min(y,f-b);continue}else v==="insert"&&(b<f||!p)&&(f+=y);b+=y}return f}}d.Op=a.default,d.OpIterator=o.default,d.AttributeMap=s.default,d.handlers={},e.default=d,n.exports=d,n.exports.default=d})(Ui,Ui.exports)),Ui.exports}var ht=Zv();const re=It.getDefaultExportFromCjs(ht);class wt extends at{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}wt.blotName="break";wt.tagName="BR";let xt=class extends Rs{};function Qs(n){return n.replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e])}const Ot=class Ot extends Vl{static compare(e,t){const r=Ot.order.indexOf(e),i=Ot.order.indexOf(t);return r>=0||i>=0?r-i:e===t?0:e<t?-1:1}formatAt(e,t,r,i){if(Ot.compare(this.statics.blotName,r)<0&&this.scroll.query(r,ie.BLOT)){const s=this.isolate(e,t);i&&s.wrap(r,i)}else super.formatAt(e,t,r,i)}optimize(e){if(super.optimize(e),this.parent instanceof Ot&&Ot.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};Q(Ot,"allowedChildren",[Ot,wt,at,xt]),Q(Ot,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Gt=Ot;const lc=1;class qe extends fi{constructor(){super(...arguments);Q(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Xh(this)),this.cache.delta}deleteAt(t,r){super.deleteAt(t,r),this.cache={}}formatAt(t,r,i,s){r<=0||(this.scroll.query(i,ie.BLOCK)?t+r===this.length()&&this.format(i,s):super.formatAt(t,Math.min(r,this.length()-t-1),i,s),this.cache={})}insertAt(t,r,i){if(i!=null){super.insertAt(t,r,i),this.cache={};return}if(r.length===0)return;const s=r.split(`
102
+ `),a=s.shift();a.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});let o=this;s.reduce((l,u)=>(o=o.split(l,!0),o.insertAt(0,u),u.length),t+a.length)}insertBefore(t,r){const{head:i}=this.children;super.insertBefore(t,r),i instanceof wt&&i.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+lc),this.cache.length}moveChildren(t,r){super.moveChildren(t,r),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r&&(t===0||t>=this.length()-lc)){const s=this.clone();return t===0?(this.parent.insertBefore(s,this),this):(this.parent.insertBefore(s,this.next),s)}const i=super.split(t,r);return this.cache={},i}}qe.blotName="block";qe.tagName="P";qe.defaultChild=wt;qe.allowedChildren=[wt,Gt,at,xt];class dt extends at{attach(){super.attach(),this.attributes=new Us(this.domNode)}delta(){return new re().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const r=this.scroll.query(e,ie.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,t)}formatAt(e,t,r,i){this.format(r,i)}insertAt(e,t,r){if(r!=null){super.insertAt(e,t,r);return}const i=t.split(`
103
+ `),s=i.pop(),a=i.map(l=>{const u=this.scroll.create(qe.blotName);return u.insertAt(0,l),u}),o=this.split(e);a.forEach(l=>{this.parent.insertBefore(l,o)}),s&&this.parent.insertBefore(this.scroll.create("text",s),o)}}dt.scope=ie.BLOCK_BLOT;function Xh(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.descendants(Ue).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),ut(r,{},e)),new re).insert(`
104
+ `,ut(n))}function ut(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return n==null||("formats"in n&&typeof n.formats=="function"&&(e={...e,...n.formats()},t&&delete e["code-token"]),n.parent==null||n.parent.statics.blotName==="scroll"||n.parent.statics.scope!==n.statics.scope)?e:ut(n.parent,e,t)}const lt=class lt extends at{static value(){}constructor(e,t,r){super(e,t),this.selection=r,this.textNode=document.createTextNode(lt.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let r=this,i=0;for(;r!=null&&r.statics.scope!==ie.BLOCK_BLOT;)i+=r.offset(r.parent),r=r.parent;r!=null&&(this.savedLength=lt.CONTENTS.length,r.optimize(),r.formatAt(i,lt.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof xt?this.prev:null,r=t?t.length():0,i=this.next instanceof xt?this.next:null,s=i?i.text:"",{textNode:a}=this,o=a.data.split(lt.CONTENTS).join("");a.data=lt.CONTENTS;let l;if(t)l=t,(o||i)&&(t.insertAt(t.length(),o+s),i&&i.remove());else if(i)l=i,i.insertAt(0,o);else{const u=document.createTextNode(o);l=this.scroll.create(u),this.parent.insertBefore(l,this)}if(this.remove(),e){const u=(f,p)=>t&&f===t.domNode?p:f===a?r+p-1:i&&f===i.domNode?r+o.length+p:null,d=u(e.start.node,e.start.offset),h=u(e.end.node,e.end.offset);if(d!==null&&h!==null)return{startNode:l.domNode,startOffset:d,endNode:l.domNode,endOffset:h}}return null}update(e,t){if(e.some(r=>r.type==="characterData"&&r.target===this.textNode)){const r=this.restore();r&&(t.range=r)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=lt.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};Q(lt,"blotName","cursor"),Q(lt,"className","ql-cursor"),Q(lt,"tagName","span"),Q(lt,"CONTENTS","\uFEFF");let Ar=lt;var co={exports:{}},uc;function zv(){return uc||(uc=1,(function(n){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function i(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function s(l,u,d,h,f){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new i(d,h||l,f),m=t?t+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function o(){this._events=new r,this._eventsCount=0}o.prototype.eventNames=function(){var u=[],d,h;if(this._eventsCount===0)return u;for(h in d=this._events)e.call(d,h)&&u.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},o.prototype.listeners=function(u){var d=t?t+u:u,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var f=0,p=h.length,m=new Array(p);f<p;f++)m[f]=h[f].fn;return m},o.prototype.listenerCount=function(u){var d=t?t+u:u,h=this._events[d];return h?h.fn?1:h.length:0},o.prototype.emit=function(u,d,h,f,p,m){var b=t?t+u:u;if(!this._events[b])return!1;var y=this._events[b],v=arguments.length,S,E;if(y.fn){switch(y.once&&this.removeListener(u,y.fn,void 0,!0),v){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,d),!0;case 3:return y.fn.call(y.context,d,h),!0;case 4:return y.fn.call(y.context,d,h,f),!0;case 5:return y.fn.call(y.context,d,h,f,p),!0;case 6:return y.fn.call(y.context,d,h,f,p,m),!0}for(E=1,S=new Array(v-1);E<v;E++)S[E-1]=arguments[E];y.fn.apply(y.context,S)}else{var x=y.length,C;for(E=0;E<x;E++)switch(y[E].once&&this.removeListener(u,y[E].fn,void 0,!0),v){case 1:y[E].fn.call(y[E].context);break;case 2:y[E].fn.call(y[E].context,d);break;case 3:y[E].fn.call(y[E].context,d,h);break;case 4:y[E].fn.call(y[E].context,d,h,f);break;default:if(!S)for(C=1,S=new Array(v-1);C<v;C++)S[C-1]=arguments[C];y[E].fn.apply(y[E].context,S)}}return!0},o.prototype.on=function(u,d,h){return s(this,u,d,h,!1)},o.prototype.once=function(u,d,h){return s(this,u,d,h,!0)},o.prototype.removeListener=function(u,d,h,f){var p=t?t+u:u;if(!this._events[p])return this;if(!d)return a(this,p),this;var m=this._events[p];if(m.fn)m.fn===d&&(!f||m.once)&&(!h||m.context===h)&&a(this,p);else{for(var b=0,y=[],v=m.length;b<v;b++)(m[b].fn!==d||f&&!m[b].once||h&&m[b].context!==h)&&y.push(m[b]);y.length?this._events[p]=y.length===1?y[0]:y:a(this,p)}return this},o.prototype.removeAllListeners=function(u){var d;return u?(d=t?t+u:u,this._events[d]&&a(this,d)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=t,o.EventEmitter=o,n.exports=o})(co)),co.exports}var $v=zv();const Yv=It.getDefaultExportFromCjs($v),rl=new WeakMap,il=["error","warn","log","info"];let sl="warn";function Wh(n){if(sl&&il.indexOf(n)<=il.indexOf(sl)){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];console[n](...t)}}function rn(n){return il.reduce((e,t)=>(e[t]=Wh.bind(console,t,n),e),{})}rn.level=n=>{sl=n};Wh.level=rn.level;const ho=rn("quill:events"),Uv=["selectionchange","mousedown","mouseup","click"];Uv.forEach(n=>{document.addEventListener(n,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(i=>{const s=rl.get(i);s&&s.emitter&&s.emitter.handleDOM(...t)})})});class ne extends Yv{constructor(){super(),this.domListeners={},this.on("error",ho.error)}emit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ho.log.call(ho,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];(this.domListeners[e.type]||[]).forEach(s=>{let{node:a,handler:o}=s;(e.target===a||a.contains(e.target))&&o(e,...r)})}listenDOM(e,t,r){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:r})}}Q(ne,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Q(ne,"sources",{API:"api",SILENT:"silent",USER:"user"});const fo=rn("quill:selection");class Pn{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class Jv{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Pn(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,ne.sources.USER),1)}),this.emitter.on(ne.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(ne.events.SCROLL_UPDATE,(i,s)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);const a=s.some(o=>o.type==="characterData"||o.type==="childList"||o.type==="attributes"&&o.target===this.root);this.update(a?ne.sources.SILENT:i)}catch{}})}),this.emitter.on(ne.events.SCROLL_OPTIMIZE,(r,i)=>{if(i.range){const{startNode:s,startOffset:a,endNode:o,endOffset:l}=i.range;this.setNativeRange(s,a,o,l),this.update(ne.sources.SILENT)}}),this.update(ne.sources.SILENT)}handleComposition(){this.emitter.on(ne.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(ne.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(ne.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(e,ie.BLOCK))){if(r.start.node!==this.cursor.textNode){const i=this.scroll.find(r.start.node,!1);if(i==null)return;if(i instanceof Ue){const s=i.split(r.start.offset);i.parent.insertBefore(this.cursor,s)}else i.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;let i,[s,a]=this.scroll.leaf(e);if(s==null)return null;if(t>0&&a===s.length()){const[d]=this.scroll.leaf(e+1);if(d){const[h]=this.scroll.line(e),[f]=this.scroll.line(e+1);h===f&&(s=d,a=0)}}[i,a]=s.position(a,!0);const o=document.createRange();if(t>0)return o.setStart(i,a),[s,a]=this.scroll.leaf(e+t),s==null?null:([i,a]=s.position(a,!0),o.setEnd(i,a),o.getBoundingClientRect());let l="left",u;if(i instanceof Text){if(!i.data.length)return null;a<i.data.length?(o.setStart(i,a),o.setEnd(i,a+1)):(o.setStart(i,a-1),o.setEnd(i,a),l="right"),u=o.getBoundingClientRect()}else{if(!(s.domNode instanceof Element))return null;u=s.domNode.getBoundingClientRect(),a>0&&(l="right")}return{bottom:u.top+u.height,height:u.height,left:u[l],right:u[l],top:u.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const r=this.normalizeNative(t);return fo.info("getNativeRange",r),r}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&po(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const r=t.map(a=>{const[o,l]=a,u=this.scroll.find(o,!0),d=u.offset(this.scroll);return l===0?d:u instanceof Ue?d+u.index(o,l):d+u.length()}),i=Math.min(Math.max(...r),this.scroll.length()-1),s=Math.min(i,...r);return new Pn(s,i-s)}normalizeNative(e){if(!po(this.root,e.startContainer)||!e.collapsed&&!po(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(r=>{let{node:i,offset:s}=r;for(;!(i instanceof Text)&&i.childNodes.length>0;)if(i.childNodes.length>s)i=i.childNodes[s],s=0;else if(i.childNodes.length===s)i=i.lastChild,i instanceof Text?s=i.data.length:i.childNodes.length>0?s=i.childNodes.length:s=i.childNodes.length+1;else break;r.node=i,r.offset=s}),t}rangeToNative(e){const t=this.scroll.length(),r=(i,s)=>{i=Math.min(t-1,i);const[a,o]=this.scroll.leaf(i);return a?a.position(o,s):[null,-1]};return[...r(e.index,!1),...r(e.index+e.length,!0)]}setNativeRange(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(fo.info("setNativeRange",e,t,r,i),e!=null&&(this.root.parentNode==null||e.parentNode==null||r.parentNode==null))return;const a=document.getSelection();if(a!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:o}=this.getNativeRange()||{};if(o==null||s||e!==o.startContainer||t!==o.startOffset||r!==o.endContainer||i!==o.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),r instanceof Element&&r.tagName==="BR"&&(i=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);const l=document.createRange();l.setStart(e,t),l.setEnd(r,i),a.removeAllRanges(),a.addRange(l)}}else a.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ne.sources.API;if(typeof t=="string"&&(r=t,t=!1),fo.info("setRange",e),e!=null){const i=this.rangeToNative(e);this.setNativeRange(...i,t)}else this.setNativeRange(null);this.update(r)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne.sources.USER;const t=this.lastRange,[r,i]=this.getRange();if(this.lastRange=r,this.lastNative=i,this.lastRange!=null&&(this.savedRange=this.lastRange),!dn(t,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const a=this.cursor.restore();a&&this.setNativeRange(a.startNode,a.startOffset,a.endNode,a.endOffset)}const s=[ne.events.SELECTION_CHANGE,dr(this.lastRange),dr(t),e];this.emitter.emit(ne.events.EDITOR_CHANGE,...s),e!==ne.sources.SILENT&&this.emitter.emit(...s)}}}function po(n,e){try{e.parentNode}catch{return!1}return n.contains(e)}const Qv=/^[ -~]*$/;class Kv{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const r=cc(e),i=new re;return ty(r.ops.slice()).reduce((a,o)=>{const l=ht.Op.length(o);let u=o.attributes||{},d=!1,h=!1;if(o.insert!=null){if(i.retain(l),typeof o.insert=="string"){const m=o.insert;h=!m.endsWith(`
105
+ `)&&(t<=a||!!this.scroll.descendant(dt,a)[0]),this.scroll.insertAt(a,m);const[b,y]=this.scroll.line(a);let v=bn({},ut(b));if(b instanceof qe){const[S]=b.descendant(Ue,y);S&&(v=bn(v,ut(S)))}u=ht.AttributeMap.diff(v,u)||{}}else if(typeof o.insert=="object"){const m=Object.keys(o.insert)[0];if(m==null)return a;const b=this.scroll.query(m,ie.INLINE)!=null;if(b)(t<=a||this.scroll.descendant(dt,a)[0])&&(h=!0);else if(a>0){const[y,v]=this.scroll.descendant(Ue,a-1);y instanceof xt?y.value()[v]!==`
106
+ `&&(d=!0):y instanceof at&&y.statics.scope===ie.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(a,m,o.insert[m]),b){const[y]=this.scroll.descendant(Ue,a);if(y){const v=bn({},ut(y));u=ht.AttributeMap.diff(v,u)||{}}}}t+=l}else if(i.push(o),o.retain!==null&&typeof o.retain=="object"){const m=Object.keys(o.retain)[0];if(m==null)return a;this.scroll.updateEmbedAt(a,m,o.retain[m])}Object.keys(u).forEach(m=>{this.scroll.formatAt(a,l,m,u[m])});const f=d?1:0,p=h?1:0;return t+=f+p,i.retain(f),i.delete(p),a+l+f+p},0),i.reduce((a,o)=>typeof o.delete=="number"?(this.scroll.deleteAt(a,o.delete),a):a+ht.Op.length(o),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new re().retain(e).delete(t))}formatLine(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(s=>{this.scroll.lines(e,Math.max(t,1)).forEach(a=>{a.format(s,r[s])})}),this.scroll.optimize();const i=new re().retain(e).retain(t,dr(r));return this.update(i)}formatText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(s=>{this.scroll.formatAt(e,t,s,r[s])});const i=new re().retain(e).retain(t,dr(r));return this.update(i)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new re)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],i=[];t===0?this.scroll.path(e).forEach(o=>{const[l]=o;l instanceof qe?r.push(l):l instanceof Ue&&i.push(l)}):(r=this.scroll.lines(e,t),i=this.scroll.descendants(Ue,e,t));const[s,a]=[r,i].map(o=>{const l=o.shift();if(l==null)return{};let u=ut(l);for(;Object.keys(u).length>0;){const d=o.shift();if(d==null)return u;u=ey(ut(d),u)}return u});return{...s,...a}}getHTML(e,t){const[r,i]=this.scroll.line(e);if(r){const s=r.length();return r.length()>=i+t&&!(i===0&&t===s)?pi(r,i,t,!0):pi(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(e,t){const r=cc(t),i=new re().retain(e).concat(r);return this.scroll.insertContents(e,r),this.update(i)}insertEmbed(e,t,r){return this.scroll.insertAt(e,t,r),this.update(new re().retain(e).insert({[t]:r}))}insertText(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
107
+ `).replace(/\r/g,`
108
+ `),this.scroll.insertAt(e,t),Object.keys(r).forEach(i=>{this.scroll.formatAt(e,t.length,i,r[i])}),this.update(new re().retain(e).insert(t,dr(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if((e==null?void 0:e.statics.blotName)!==qe.blotName)return!1;const t=e;return t.children.length>1?!1:t.children.head instanceof wt}removeFormat(e,t){const r=this.getText(e,t),[i,s]=this.scroll.line(e+t);let a=0,o=new re;i!=null&&(a=i.length()-s,o=i.delta().slice(s,s+a-1).insert(`
109
+ `));const u=this.getContents(e,t+a).diff(new re().insert(r).concat(o)),d=new re().retain(e).concat(u);return this.applyDelta(d)}update(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const i=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(Qv)&&this.scroll.find(t[0].target)){const s=this.scroll.find(t[0].target),a=ut(s),o=s.offset(this.scroll),l=t[0].oldValue.replace(Ar.CONTENTS,""),u=new re().insert(l),d=new re().insert(s.value()),h=r&&{oldRange:dc(r.oldRange,-o),newRange:dc(r.newRange,-o)};e=new re().retain(o).concat(u.diff(d,h)).reduce((p,m)=>m.insert?p.insert(m.insert,a):p.push(m),new re),this.delta=i.compose(e)}else this.delta=this.getDelta(),(!e||!dn(i.compose(e),this.delta))&&(e=i.diff(this.delta,r));return e}}function ur(n,e,t){if(n.length===0){const[p]=go(t.pop());return e<=0?`</li></${p}>`:`</li></${p}>${ur([],e-1,t)}`}const[{child:r,offset:i,length:s,indent:a,type:o},...l]=n,[u,d]=go(o);if(a>e)return t.push(o),a===e+1?`<${u}><li${d}>${pi(r,i,s)}${ur(l,a,t)}`:`<${u}><li>${ur(n,e+1,t)}`;const h=t[t.length-1];if(a===e&&o===h)return`</li><li${d}>${pi(r,i,s)}${ur(l,a,t)}`;const[f]=go(t.pop());return`</li></${f}>${ur(n,e-1,t)}`}function pi(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in n&&typeof n.html=="function")return n.html(e,t);if(n instanceof xt)return Qs(n.value().slice(e,e+t));if(n instanceof Et){if(n.statics.blotName==="list-container"){const u=[];return n.children.forEachAt(e,t,(d,h,f)=>{const p="formats"in d&&typeof d.formats=="function"?d.formats():{};u.push({child:d,offset:h,length:f,indent:p.indent||0,type:p.list})}),ur(u,-1,[])}const i=[];if(n.children.forEachAt(e,t,(u,d,h)=>{i.push(pi(u,d,h))}),r||n.statics.blotName==="list")return i.join("");const{outerHTML:s,innerHTML:a}=n.domNode,[o,l]=s.split(`>${a}<`);return o==="<table"?`<table style="border: 1px solid #000;">${i.join("")}<${l}`:`${o}>${i.join("")}<${l}`}return n.domNode instanceof Element?n.domNode.outerHTML:""}function ey(n,e){return Object.keys(e).reduce((t,r)=>{if(n[r]==null)return t;const i=e[r];return i===n[r]?t[r]=i:Array.isArray(i)?i.indexOf(n[r])<0?t[r]=i.concat([n[r]]):t[r]=i:t[r]=[i,n[r]],t},{})}function go(n){const e=n==="ordered"?"ol":"ul";switch(n){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function cc(n){return n.reduce((e,t)=>{if(typeof t.insert=="string"){const r=t.insert.replace(/\r\n/g,`
110
+ `).replace(/\r/g,`
111
+ `);return e.insert(r,t.attributes)}return e.push(t)},new re)}function dc(n,e){let{index:t,length:r}=n;return new Pn(t+e,r)}function ty(n){const e=[];return n.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
112
+ `).forEach((i,s)=>{s&&e.push({insert:`
113
+ `,attributes:t.attributes}),i&&e.push({insert:i,attributes:t.attributes})}):e.push(t)}),e}class Tt{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}Q(Tt,"DEFAULTS",{});const es="\uFEFF";class jl extends at{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(es),this.rightGuard=document.createTextNode(es),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,r;const i=e.data.split(es).join("");if(e===this.leftGuard)if(this.prev instanceof xt){const s=this.prev.length();this.prev.insertAt(s,i),t={startNode:this.prev.domNode,startOffset:s+i.length}}else r=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(r),this),t={startNode:r,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof xt?(this.next.insertAt(0,i),t={startNode:this.next.domNode,startOffset:i.length}):(r=document.createTextNode(i),this.parent.insertBefore(this.scroll.create(r),this.next),t={startNode:r,startOffset:i.length}));return e.data=es,t}update(e,t){e.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){const i=this.restore(r.target);i&&(t.range=i)}})}}class ny{constructor(e,t){Q(this,"isComposing",!1);this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof jl)&&(this.emitter.emit(ne.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(ne.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(ne.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(ne.events.COMPOSITION_END,e),this.isComposing=!1}}const oi=class oi{constructor(e,t){Q(this,"modules",{});this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}};Q(oi,"DEFAULTS",{modules:{}}),Q(oi,"themes",{default:oi});let Er=oi;const ry=n=>n.parentElement||n.getRootNode().host||null,iy=n=>{const e=n.getBoundingClientRect(),t="offsetWidth"in n&&Math.abs(e.width)/n.offsetWidth||1,r="offsetHeight"in n&&Math.abs(e.height)/n.offsetHeight||1;return{top:e.top,right:e.left+n.clientWidth*t,bottom:e.top+n.clientHeight*r,left:e.left}},ts=n=>{const e=parseInt(n,10);return Number.isNaN(e)?0:e},hc=(n,e,t,r,i,s)=>n<t&&e>r?0:n<t?-(t-n+i):e>r?e-n>r-t?n+i-t:e-r+s:0,sy=(n,e)=>{var s,a,o;const t=n.ownerDocument;let r=e,i=n;for(;i;){const l=i===t.body,u=l?{top:0,right:((s=window.visualViewport)==null?void 0:s.width)??t.documentElement.clientWidth,bottom:((a=window.visualViewport)==null?void 0:a.height)??t.documentElement.clientHeight,left:0}:iy(i),d=getComputedStyle(i),h=hc(r.left,r.right,u.left,u.right,ts(d.scrollPaddingLeft),ts(d.scrollPaddingRight)),f=hc(r.top,r.bottom,u.top,u.bottom,ts(d.scrollPaddingTop),ts(d.scrollPaddingBottom));if(h||f)if(l)(o=t.defaultView)==null||o.scrollBy(h,f);else{const{scrollLeft:p,scrollTop:m}=i;f&&(i.scrollTop+=f),h&&(i.scrollLeft+=h);const b=i.scrollLeft-p,y=i.scrollTop-m;r={left:r.left-b,top:r.top-y,right:r.right-b,bottom:r.bottom-y}}i=l||d.position==="fixed"?null:ry(i)}},ay=100,oy=["block","break","cursor","inline","scroll","text"],ly=(n,e,t)=>{const r=new Ir;return oy.forEach(i=>{const s=e.query(i);s&&r.register(s)}),n.forEach(i=>{let s=e.query(i);s||t.error(`Cannot register "${i}" specified in "formats" config. Are you sure it was registered?`);let a=0;for(;s;)if(r.register(s),s="blotName"in s?s.requiredContainer??null:null,a+=1,a>ay){t.error(`Cycle detected in registering blot requiredContainer: "${i}"`);break}}),r},fr=rn("quill"),ns=new Ir;Et.uiClass="ql-ui";const bt=class bt{static debug(e){e===!0&&(e="log"),rn.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return rl.get(e)||ns.find(e,t)}static import(e){return this.imports[e]==null&&fr.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const e=arguments.length<=0?void 0:arguments[0],t=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in e?e.attrName:e.blotName;typeof r=="string"?this.register(`formats/${r}`,e,t):Object.keys(e).forEach(i=>{this.register(i,e[i],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[e]!=null&&!r&&fr.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&ns.register(t),typeof t.register=="function"&&t.register(ns)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=uy(e,t),this.container=this.options.container,this.container==null){fr.error("Invalid Quill container",e);return}this.options.debug&&bt.debug(this.options.debug);const r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",rl.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new ne;const i=Gl.blotName,s=this.options.registry.query(i);if(!s||!("blotName"in s))throw new Error(`Cannot initialize Quill without "${i}" blot`);if(this.scroll=new s(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Kv(this.scroll),this.selection=new Jv(this.scroll,this.emitter),this.composition=new ny(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(ne.events.EDITOR_CHANGE,a=>{a===ne.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(ne.events.SCROLL_UPDATE,(a,o)=>{const l=this.selection.lastRange,[u]=this.selection.getRange(),d=l&&u?{oldRange:l,newRange:u}:void 0;mt.call(this,()=>this.editor.update(null,o,d),a)}),this.emitter.on(ne.events.SCROLL_EMBED_UPDATE,(a,o)=>{const l=this.selection.lastRange,[u]=this.selection.getRange(),d=l&&u?{oldRange:l,newRange:u}:void 0;mt.call(this,()=>{const h=new re().retain(a.offset(this)).retain({[a.statics.blotName]:o});return this.editor.update(h,[],d)},bt.sources.USER)}),r){const a=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
114
+ `});this.setContents(a)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const r=e;e=document.createElement("div"),e.classList.add(r)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,r){return[e,t,,r]=zt(e,t,r),mt.call(this,()=>this.editor.deleteText(e,t),r,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ne.sources.API;return mt.call(this,()=>{const i=this.getSelection(!0);let s=new re;if(i==null)return s;if(this.scroll.query(e,ie.BLOCK))s=this.editor.formatLine(i.index,i.length,{[e]:t});else{if(i.length===0)return this.selection.format(e,t),s;s=this.editor.formatText(i.index,i.length,{[e]:t})}return this.setSelection(i,ne.sources.SILENT),s},r)}formatLine(e,t,r,i,s){let a;return[e,t,a,s]=zt(e,t,r,i,s),mt.call(this,()=>this.editor.formatLine(e,t,a),s,e,0)}formatText(e,t,r,i,s){let a;return[e,t,a,s]=zt(e,t,r,i,s),mt.call(this,()=>this.editor.formatText(e,t,a),s,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof e=="number"?r=this.selection.getBounds(e,t):r=this.selection.getBounds(e.index,e.length),!r)return null;const i=this.container.getBoundingClientRect();return{bottom:r.bottom-i.top,height:r.height,left:r.left-i.left,right:r.right-i.left,top:r.top-i.top,width:r.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=zt(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=zt(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=zt(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:bt.sources.API;return mt.call(this,()=>this.editor.insertEmbed(e,t,r),i,e)}insertText(e,t,r,i,s){let a;return[e,,a,s]=zt(e,0,r,i,s),mt.call(this,()=>this.editor.insertText(e,t,a),s,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,r){return[e,t,,r]=zt(e,t,r),mt.call(this,()=>this.editor.removeFormat(e,t),r,e)}scrollRectIntoView(e){sy(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne.sources.API;return mt.call(this,()=>{e=new re(e);const r=this.getLength(),i=this.editor.deleteText(0,r),s=this.editor.insertContents(0,e),a=this.editor.deleteText(this.getLength()-1,1);return i.compose(s).compose(a)},t)}setSelection(e,t,r){e==null?this.selection.setRange(null,t||bt.sources.API):([e,t,,r]=zt(e,t,r),this.selection.setRange(new Pn(Math.max(0,e),t),r),r!==ne.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne.sources.API;const r=new re().insert(e);return this.setContents(r,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ne.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne.sources.API;return mt.call(this,()=>(e=new re(e),this.editor.applyDelta(e)),t,!0)}};Q(bt,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:ns,theme:"default"}),Q(bt,"events",ne.events),Q(bt,"sources",ne.sources),Q(bt,"version","2.0.2"),Q(bt,"imports",{delta:re,parchment:Hv,"core/module":Tt,"core/theme":Er});let V=bt;function fc(n){return typeof n=="string"?document.querySelector(n):n}function mo(n){return Object.entries(n??{}).reduce((e,t)=>{let[r,i]=t;return{...e,[r]:i===!0?{}:i}},{})}function pc(n){return Object.fromEntries(Object.entries(n).filter(e=>e[1]!==void 0))}function uy(n,e){const t=fc(n);if(!t)throw new Error("Invalid Quill container");const i=!e.theme||e.theme===V.DEFAULTS.theme?Er:V.import(`themes/${e.theme}`);if(!i)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:s,...a}=V.DEFAULTS,{modules:o,...l}=i.DEFAULTS;let u=mo(e.modules);u!=null&&u.toolbar&&u.toolbar.constructor!==Object&&(u={...u,toolbar:{container:u.toolbar}});const d=bn({},mo(s),mo(o),u),h={...a,...pc(l),...pc(e)};let f=e.registry;return f?e.formats&&fr.warn('Ignoring "formats" option because "registry" is specified'):f=e.formats?ly(e.formats,h.registry,fr):h.registry,{...h,registry:f,container:t,theme:i,modules:Object.entries(d).reduce((p,m)=>{let[b,y]=m;if(!y)return p;const v=V.import(`modules/${b}`);return v==null?(fr.error(`Cannot load ${b} module. Are you sure you registered it?`),p):{...p,[b]:bn({},v.DEFAULTS||{},y)}},{}),bounds:fc(h.bounds)}}function mt(n,e,t,r){if(!this.isEnabled()&&e===ne.sources.USER&&!this.allowReadOnlyEdits)return new re;let i=t==null?null:this.getSelection();const s=this.editor.delta,a=n();if(i!=null&&(t===!0&&(t=i.index),r==null?i=gc(i,a,e):r!==0&&(i=gc(i,t,r,e)),this.setSelection(i,ne.sources.SILENT)),a.length()>0){const o=[ne.events.TEXT_CHANGE,a,s,e];this.emitter.emit(ne.events.EDITOR_CHANGE,...o),e!==ne.sources.SILENT&&this.emitter.emit(...o)}return a}function zt(n,e,t,r,i){let s={};return typeof n.index=="number"&&typeof n.length=="number"?typeof e!="number"?(i=r,r=t,t=e,e=n.length,n=n.index):(e=n.length,n=n.index):typeof e!="number"&&(i=r,r=t,t=e,e=0),typeof t=="object"?(s=t,i=r):typeof t=="string"&&(r!=null?s[t]=r:i=t),i=i||ne.sources.API,[n,e,s,i]}function gc(n,e,t,r){const i=typeof t=="number"?t:0;if(n==null)return null;let s,a;return e&&typeof e.transformPosition=="function"?[s,a]=[n.index,n.index+n.length].map(o=>e.transformPosition(o,r!==ne.sources.USER)):[s,a]=[n.index,n.index+n.length].map(o=>o<e||o===e&&r===ne.sources.USER?o:i>=0?o+i:Math.max(e,o+i)),new Pn(s,a-s)}class Xn extends Js{}function mc(n){return n instanceof qe||n instanceof dt}function bc(n){return typeof n.updateContent=="function"}class cr extends Gl{constructor(e,t,r){let{emitter:i}=r;super(e,t),this.emitter=i,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",s=>this.handleDragStart(s))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(ne.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(ne.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(ne.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[r,i]=this.line(e),[s]=this.line(e+t);if(super.deleteAt(e,t),s!=null&&r!==s&&i>0){if(r instanceof dt||s instanceof dt){this.optimize();return}const a=s.children.head instanceof wt?null:s.children.head;r.moveChildren(s,a),r.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,r,i){super.formatAt(e,t,r,i),this.optimize()}insertAt(e,t,r){if(e>=this.length())if(r==null||this.scroll.query(t,ie.BLOCK)==null){const i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i),r==null&&t.endsWith(`
115
+ `)?i.insertAt(0,t.slice(0,-1),r):i.insertAt(0,t,r)}else{const i=this.scroll.create(t,r);this.appendChild(i)}else super.insertAt(e,t,r);this.optimize()}insertBefore(e,t){if(e.statics.scope===ie.INLINE_BLOT){const r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(e),super.insertBefore(r,t)}else super.insertBefore(e,t)}insertContents(e,t){const r=this.deltaToRenderBlocks(t.concat(new re().insert(`
116
+ `))),i=r.pop();if(i==null)return;this.batchStart();const s=r.shift();if(s){const l=s.type==="block"&&(s.delta.length()===0||!this.descendant(dt,e)[0]&&e<this.length()),u=s.type==="block"?s.delta:new re().insert({[s.key]:s.value});bo(this,e,u);const d=s.type==="block"?1:0,h=e+u.length()+d;l&&this.insertAt(h-1,`
117
+ `);const f=ut(this.line(e)[0]),p=ht.AttributeMap.diff(f,s.attributes)||{};Object.keys(p).forEach(m=>{this.formatAt(h-1,1,m,p[m])}),e=h}let[a,o]=this.children.find(e);if(r.length&&(a&&(a=a.split(o),o=0),r.forEach(l=>{if(l.type==="block"){const u=this.createBlock(l.attributes,a||void 0);bo(u,0,l.delta)}else{const u=this.create(l.key,l.value);this.insertBefore(u,a||void 0),Object.keys(l.attributes).forEach(d=>{u.format(d,l.attributes[d])})}})),i.type==="block"&&i.delta.length()){const l=a?a.offset(a.scroll)+o:this.length();bo(this,l,i.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[r,i]=t;return r instanceof Ue?[r,i]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(mc,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const r=(i,s,a)=>{let o=[],l=a;return i.children.forEachAt(s,a,(u,d,h)=>{mc(u)?o.push(u):u instanceof Js&&(o=o.concat(r(u,d,l))),l-=h}),o};return r(this,e,t)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(ne.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=ne.sources.USER;typeof e=="string"&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(r=>{let{target:i}=r;const s=this.find(i,!0);return s&&!bc(s)}),e.length>0&&this.emitter.emit(ne.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(ne.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,r){const[i]=this.descendant(s=>s instanceof dt,e);i&&i.statics.blotName===t&&bc(i)&&i.updateContent(r)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let r=new re;return e.forEach(i=>{const s=i==null?void 0:i.insert;if(s)if(typeof s=="string"){const a=s.split(`
118
+ `);a.slice(0,-1).forEach(l=>{r.insert(l,i.attributes),t.push({type:"block",delta:r,attributes:i.attributes??{}}),r=new re});const o=a[a.length-1];o&&r.insert(o,i.attributes)}else{const a=Object.keys(s)[0];if(!a)return;this.query(a,ie.INLINE)?r.push(i):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new re,t.push({type:"blockEmbed",key:a,value:s[a],attributes:i.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(e,t){let r;const i={};Object.entries(e).forEach(o=>{let[l,u]=o;this.query(l,ie.BLOCK&ie.BLOT)!=null?r=l:i[l]=u});const s=this.create(r||this.statics.defaultChild.blotName,r?e[r]:void 0);this.insertBefore(s,t||void 0);const a=s.length();return Object.entries(i).forEach(o=>{let[l,u]=o;s.formatAt(0,a,l,u)}),s}}Q(cr,"blotName","scroll"),Q(cr,"className","ql-editor"),Q(cr,"tagName","DIV"),Q(cr,"defaultChild",qe),Q(cr,"allowedChildren",[qe,dt,Xn]);function bo(n,e,t){t.reduce((r,i)=>{const s=ht.Op.length(i);let a=i.attributes||{};if(i.insert!=null){if(typeof i.insert=="string"){const o=i.insert;n.insertAt(r,o);const[l]=n.descendant(Ue,r),u=ut(l);a=ht.AttributeMap.diff(u,a)||{}}else if(typeof i.insert=="object"){const o=Object.keys(i.insert)[0];if(o==null)return r;if(n.insertAt(r,o,i.insert[o]),n.scroll.query(o,ie.INLINE)!=null){const[u]=n.descendant(Ue,r),d=ut(u);a=ht.AttributeMap.diff(d,a)||{}}}}return Object.keys(a).forEach(o=>{n.formatAt(r,s,o,a[o])}),r+s},e)}const Hl={scope:ie.BLOCK,whitelist:["right","center","justify"]},cy=new Vt("align","align",Hl),qh=new St("align","ql-align",Hl),Zh=new In("align","text-align",Hl);class zh extends In{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(i=>`00${parseInt(i,10).toString(16)}`.slice(-2)).join("")}`):t}}const dy=new St("color","ql-color",{scope:ie.INLINE}),Xl=new zh("color","color",{scope:ie.INLINE}),hy=new St("background","ql-bg",{scope:ie.INLINE}),Wl=new zh("background","background-color",{scope:ie.INLINE});class Wn extends Xn{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
119
+ `).slice(e,e+t)}html(e,t){return`<pre>
120
+ ${Qs(this.code(e,t))}
121
+ </pre>`}}class Je extends qe{static register(){V.register(Wn)}}Q(Je,"TAB"," ");class ql extends Gt{}ql.blotName="code";ql.tagName="CODE";Je.blotName="code-block";Je.className="ql-code-block";Je.tagName="DIV";Wn.blotName="code-block-container";Wn.className="ql-code-block-container";Wn.tagName="DIV";Wn.allowedChildren=[Je];Je.allowedChildren=[xt,wt,Ar];Je.requiredContainer=Wn;const Zl={scope:ie.BLOCK,whitelist:["rtl"]},$h=new Vt("direction","dir",Zl),Yh=new St("direction","ql-direction",Zl),Uh=new In("direction","direction",Zl),Jh={scope:ie.INLINE,whitelist:["serif","monospace"]},Qh=new St("font","ql-font",Jh);class fy extends In{value(e){return super.value(e).replace(/["']/g,"")}}const Kh=new fy("font","font-family",Jh),ef=new St("size","ql-size",{scope:ie.INLINE,whitelist:["small","large","huge"]}),tf=new In("size","font-size",{scope:ie.INLINE,whitelist:["10px","18px","32px"]}),py=rn("quill:keyboard"),gy=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class Ks extends Tt{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!t[r]!==e[r]&&t[r]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=by(e);if(i==null){py.warn("Attempted to add invalid keyboard binding",i);return}typeof t=="function"&&(t={handler:t}),typeof r=="function"&&(r={handler:r}),(Array.isArray(i.key)?i.key:[i.key]).forEach(a=>{const o={...i,key:a,...t,...r};this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const i=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(v=>Ks.match(e,v));if(i.length===0)return;const s=V.find(e.target,!0);if(s&&s.scroll!==this.quill.scroll)return;const a=this.quill.getSelection();if(a==null||!this.quill.hasFocus())return;const[o,l]=this.quill.getLine(a.index),[u,d]=this.quill.getLeaf(a.index),[h,f]=a.length===0?[u,d]:this.quill.getLeaf(a.index+a.length),p=u instanceof Rs?u.value().slice(0,d):"",m=h instanceof Rs?h.value().slice(f):"",b={collapsed:a.length===0,empty:a.length===0&&o.length()<=1,format:this.quill.getFormat(a),line:o,offset:l,prefix:p,suffix:m,event:e};i.some(v=>{if(v.collapsed!=null&&v.collapsed!==b.collapsed||v.empty!=null&&v.empty!==b.empty||v.offset!=null&&v.offset!==b.offset)return!1;if(Array.isArray(v.format)){if(v.format.every(S=>b.format[S]==null))return!1}else if(typeof v.format=="object"&&!Object.keys(v.format).every(S=>v.format[S]===!0?b.format[S]!=null:v.format[S]===!1?b.format[S]==null:dn(v.format[S],b.format[S])))return!1;return v.prefix!=null&&!v.prefix.test(b.prefix)||v.suffix!=null&&!v.suffix.test(b.suffix)?!1:v.handler.call(this,a,b,v)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let i={};const[s]=this.quill.getLine(e.index);let a=new re().retain(e.index-r).delete(r);if(t.offset===0){const[o]=this.quill.getLine(e.index-1);if(o&&!(o.statics.blotName==="block"&&o.length()<=1)){const u=s.formats(),d=this.quill.getFormat(e.index-1,1);if(i=ht.AttributeMap.diff(u,d)||{},Object.keys(i).length>0){const h=new re().retain(e.index+s.length()-2).retain(1,i);a=a.compose(h)}}}this.quill.updateContents(a,V.sources.USER),this.quill.focus()}handleDelete(e,t){const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-r)return;let i={};const[s]=this.quill.getLine(e.index);let a=new re().retain(e.index).delete(r);if(t.offset>=s.length()-1){const[o]=this.quill.getLine(e.index+1);if(o){const l=s.formats(),u=this.quill.getFormat(e.index,1);i=ht.AttributeMap.diff(l,u)||{},Object.keys(i).length>0&&(a=a.retain(o.length()-1).retain(1,i))}}this.quill.updateContents(a,V.sources.USER),this.quill.focus()}handleDeleteRange(e){zl({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const r=Object.keys(t.format).reduce((s,a)=>(this.quill.scroll.query(a,ie.BLOCK)&&!Array.isArray(t.format[a])&&(s[a]=t.format[a]),s),{}),i=new re().retain(e.index).delete(e.length).insert(`
122
+ `,r);this.quill.updateContents(i,V.sources.USER),this.quill.setSelection(e.index+1,V.sources.SILENT),this.quill.focus()}}const my={bindings:{bold:vo("bold"),italic:vo("italic"),underline:vo("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",V.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(n,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",V.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(n,e){e.format.indent!=null?this.quill.format("indent","-1",V.sources.USER):e.format.list!=null&&this.quill.format("list",!1,V.sources.USER)}},"indent code-block":vc(!0),"outdent code-block":vc(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(n){this.quill.deleteText(n.index-1,1,V.sources.USER)}},tab:{key:"Tab",handler(n,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new re().retain(n.index).delete(n.length).insert(" ");return this.quill.updateContents(t,V.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index+1,V.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,V.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(n,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(n.index,n.length,t,V.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(n){const[e,t]=this.quill.getLine(n.index),r={...e.formats(),list:"checked"},i=new re().retain(n.index).insert(`
123
+ `,r).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,V.sources.USER),this.quill.setSelection(n.index+1,V.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(n,e){const[t,r]=this.quill.getLine(n.index),i=new re().retain(n.index).insert(`
124
+ `,e.format).retain(t.length()-r-1).retain(1,{header:null});this.quill.updateContents(i,V.sources.USER),this.quill.setSelection(n.index+1,V.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(n){const e=this.quill.getModule("table");if(e){const[t,r,i,s]=e.getTable(n),a=vy(t,r,i,s);if(a==null)return;let o=t.offset();if(a<0){const l=new re().retain(o).insert(`
125
+ `);this.quill.updateContents(l,V.sources.USER),this.quill.setSelection(n.index+1,n.length,V.sources.SILENT)}else if(a>0){o+=t.length();const l=new re().retain(o).insert(`
126
+ `);this.quill.updateContents(l,V.sources.USER),this.quill.setSelection(o,V.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(n,e){const{event:t,line:r}=e,i=r.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(i-1,V.sources.USER):this.quill.setSelection(i+r.length(),V.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(n,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[r,i]=this.quill.getLine(n.index);if(i>t)return!0;let s;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(n.index," ",V.sources.USER),this.quill.history.cutoff();const a=new re().retain(n.index-i).delete(t+1).retain(r.length()-2-i).retain(1,{list:s});return this.quill.updateContents(a,V.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(n.index-t,V.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(n){const[e,t]=this.quill.getLine(n.index);let r=2,i=e;for(;i!=null&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,r-=1,r<=0){const s=new re().retain(n.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(s,V.sources.USER),this.quill.setSelection(n.index-1,V.sources.SILENT),!1}return!0}},"embed left":rs("ArrowLeft",!1),"embed left shift":rs("ArrowLeft",!0),"embed right":rs("ArrowRight",!1),"embed right shift":rs("ArrowRight",!0),"table down":yc(!1),"table up":yc(!0)}};Ks.DEFAULTS=my;function vc(n){return{key:"Tab",shiftKey:!n,format:{"code-block":!0},handler(e,t){let{event:r}=t;const i=this.quill.scroll.query("code-block"),{TAB:s}=i;if(e.length===0&&!r.shiftKey){this.quill.insertText(e.index,s,V.sources.USER),this.quill.setSelection(e.index+s.length,V.sources.SILENT);return}const a=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:o,length:l}=e;a.forEach((u,d)=>{n?(u.insertAt(0,s),d===0?o+=s.length:l+=s.length):u.domNode.textContent.startsWith(s)&&(u.deleteAt(0,s.length),d===0?o-=s.length:l-=s.length)}),this.quill.update(V.sources.USER),this.quill.setSelection(o,l,V.sources.SILENT)}}}function rs(n,e){return{key:n,shiftKey:e,altKey:null,[n==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:i}=r;n==="ArrowRight"&&(i+=r.length+1);const[s]=this.quill.getLeaf(i);return s instanceof at?(n==="ArrowLeft"?e?this.quill.setSelection(r.index-1,r.length+1,V.sources.USER):this.quill.setSelection(r.index-1,V.sources.USER):e?this.quill.setSelection(r.index,r.length+1,V.sources.USER):this.quill.setSelection(r.index+r.length+1,V.sources.USER),!1):!0}}}function vo(n){return{key:n[0],shortKey:!0,handler(e,t){this.quill.format(n,!t.format[n],V.sources.USER)}}}function yc(n){return{key:n?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const r=n?"prev":"next",i=t.line,s=i.parent[r];if(s!=null){if(s.statics.blotName==="table-row"){let a=s.children.head,o=i;for(;o.prev!=null;)o=o.prev,a=a.next;const l=a.offset(this.quill.scroll)+Math.min(t.offset,a.length()-1);this.quill.setSelection(l,0,V.sources.USER)}}else{const a=i.table()[r];a!=null&&(n?this.quill.setSelection(a.offset(this.quill.scroll)+a.length()-1,0,V.sources.USER):this.quill.setSelection(a.offset(this.quill.scroll),0,V.sources.USER))}return!1}}}function by(n){if(typeof n=="string"||typeof n=="number")n={key:n};else if(typeof n=="object")n=dr(n);else return null;return n.shortKey&&(n[gy]=n.shortKey,delete n.shortKey),n}function zl(n){let{quill:e,range:t}=n;const r=e.getLines(t);let i={};if(r.length>1){const s=r[0].formats(),a=r[r.length-1].formats();i=ht.AttributeMap.diff(a,s)||{}}e.deleteText(t,V.sources.USER),Object.keys(i).length>0&&e.formatLine(t.index,1,i,V.sources.USER),e.setSelection(t.index,V.sources.SILENT)}function vy(n,e,t,r){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?r===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const yy=/font-weight:\s*normal/,Cy=["P","OL","UL"],Cc=n=>n&&Cy.includes(n.tagName),Iy=n=>{Array.from(n.querySelectorAll("br")).filter(e=>Cc(e.previousElementSibling)&&Cc(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},Ay=n=>{Array.from(n.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(yy)}).forEach(e=>{var r;const t=n.createDocumentFragment();t.append(...e.childNodes),(r=e.parentNode)==null||r.replaceChild(t,e)})};function Ey(n){n.querySelector('[id^="docs-internal-guid-"]')&&(Ay(n),Iy(n))}const xy=/\bmso-list:[^;]*ignore/i,Sy=/\bmso-list:[^;]*\bl(\d+)/i,wy=/\bmso-list:[^;]*\blevel(\d+)/i,Ty=(n,e)=>{const t=n.getAttribute("style"),r=t==null?void 0:t.match(Sy);if(!r)return null;const i=Number(r[1]),s=t==null?void 0:t.match(wy),a=s?Number(s[1]):1,o=new RegExp(`@list l${i}:level${a}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=e.match(o),u=l&&l[1]==="bullet"?"bullet":"ordered";return{id:i,indent:a,type:u,element:n}},Ny=n=>{var a,o;const e=Array.from(n.querySelectorAll("[style*=mso-list]")),t=[],r=[];e.forEach(l=>{(l.getAttribute("style")||"").match(xy)?t.push(l):r.push(l)}),t.forEach(l=>{var u;return(u=l.parentNode)==null?void 0:u.removeChild(l)});const i=n.documentElement.innerHTML,s=r.map(l=>Ty(l,i)).filter(l=>l);for(;s.length;){const l=[];let u=s.shift();for(;u;)l.push(u),u=s.length&&((a=s[0])==null?void 0:a.element)===u.element.nextElementSibling&&s[0].id===u.id?s.shift():null;const d=document.createElement("ul");l.forEach(p=>{const m=document.createElement("li");m.setAttribute("data-list",p.type),p.indent>1&&m.setAttribute("class",`ql-indent-${p.indent-1}`),m.innerHTML=p.element.innerHTML,d.appendChild(m)});const h=(o=l[0])==null?void 0:o.element,{parentNode:f}=h??{};h&&(f==null||f.replaceChild(d,h)),l.slice(1).forEach(p=>{let{element:m}=p;f==null||f.removeChild(m)})}};function ky(n){n.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&Ny(n)}const Ry=[ky,Ey],_y=n=>{n.documentElement&&Ry.forEach(e=>{e(n)})},Oy=rn("quill:clipboard"),By=[[Node.TEXT_NODE,qy],[Node.TEXT_NODE,Ac],["br",Dy],[Node.ELEMENT_NODE,Ac],[Node.ELEMENT_NODE,Py],[Node.ELEMENT_NODE,My],[Node.ELEMENT_NODE,Xy],["li",jy],["ol, ul",Hy],["pre",Vy],["tr",Wy],["b",yo("bold")],["i",yo("italic")],["strike",yo("strike")],["style",Gy]],Fy=[cy,$h].reduce((n,e)=>(n[e.keyName]=e,n),{}),Ic=[Zh,Wl,Xl,Uh,Kh,tf].reduce((n,e)=>(n[e.keyName]=e,n),{});class nf extends Tt{constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],By.concat(this.options.matchers??[]).forEach(r=>{let[i,s]=r;this.addMatcher(i,s)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:r}=e,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i[Je.blotName])return new re().insert(r||"",{[Je.blotName]:i[Je.blotName]});if(!t)return new re().insert(r||"",i);const s=this.convertHTML(t);return Ei(s,`
127
+ `)&&(s.ops[s.ops.length-1].attributes==null||i.table)?s.compose(new re().retain(s.length()-1).delete(1)):s}normalizeHTML(e){_y(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const r=t.body,i=new WeakMap,[s,a]=this.prepareMatching(r,i);return $l(this.quill.scroll,r,s,a,i)}dangerouslyPasteHTML(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V.sources.API;if(typeof e=="string"){const i=this.convert({html:e,text:""});this.quill.setContents(i,t),this.quill.setSelection(0,V.sources.SILENT)}else{const i=this.convert({html:t,text:""});this.quill.updateContents(new re().retain(e).concat(i),r),this.quill.setSelection(e+i.length(),V.sources.SILENT)}}onCaptureCopy(e){var a,o;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[r]=this.quill.selection.getRange();if(r==null)return;const{html:i,text:s}=this.onCopy(r,t);(a=e.clipboardData)==null||a.setData("text/plain",s),(o=e.clipboardData)==null||o.setData("text/html",i),t&&zl({range:r,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
128
+ `)}onCapturePaste(e){var a,o,l,u,d;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const r=(a=e.clipboardData)==null?void 0:a.getData("text/html");let i=(o=e.clipboardData)==null?void 0:o.getData("text/plain");if(!r&&!i){const h=(l=e.clipboardData)==null?void 0:l.getData("text/uri-list");h&&(i=this.normalizeURIList(h))}const s=Array.from(((u=e.clipboardData)==null?void 0:u.files)||[]);if(!r&&s.length>0){this.quill.uploader.upload(t,s);return}if(r&&s.length>0){const h=new DOMParser().parseFromString(r,"text/html");if(h.body.childElementCount===1&&((d=h.body.firstElementChild)==null?void 0:d.tagName)==="IMG"){this.quill.uploader.upload(t,s);return}}this.onPaste(t,{html:r,text:i})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:r,html:i}=t;const s=this.quill.getFormat(e.index),a=this.convert({text:r,html:i},s);Oy.log("onPaste",a,{text:r,html:i});const o=new re().retain(e.index).delete(e.length).concat(a);this.quill.updateContents(o,V.sources.USER),this.quill.setSelection(o.length()-e.length,V.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const r=[],i=[];return this.matchers.forEach(s=>{const[a,o]=s;switch(a){case Node.TEXT_NODE:i.push(o);break;case Node.ELEMENT_NODE:r.push(o);break;default:Array.from(e.querySelectorAll(a)).forEach(l=>{if(t.has(l)){const u=t.get(l);u==null||u.push(o)}else t.set(l,[o])});break}}),[r,i]}}Q(nf,"DEFAULTS",{matchers:[]});function qn(n,e,t,r){return r.query(e)?n.reduce((i,s)=>{if(!s.insert)return i;if(s.attributes&&s.attributes[e])return i.push(s);const a=t?{[e]:t}:{};return i.insert(s.insert,{...a,...s.attributes})},new re):n}function Ei(n,e){let t="";for(let r=n.ops.length-1;r>=0&&t.length<e.length;--r){const i=n.ops[r];if(typeof i.insert!="string")break;t=i.insert+t}return t.slice(-1*e.length)===e}function fn(n,e){if(!(n instanceof Element))return!1;const t=e.query(n);return t&&t.prototype instanceof at?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(n.tagName.toLowerCase())}function Ly(n,e){return n.previousElementSibling&&n.nextElementSibling&&!fn(n.previousElementSibling,e)&&!fn(n.nextElementSibling,e)}const is=new WeakMap;function rf(n){return n==null?!1:(is.has(n)||(n.tagName==="PRE"?is.set(n,!0):is.set(n,rf(n.parentNode))),is.get(n))}function $l(n,e,t,r,i){return e.nodeType===e.TEXT_NODE?r.reduce((s,a)=>a(e,s,n),new re):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((s,a)=>{let o=$l(n,a,t,r,i);return a.nodeType===e.ELEMENT_NODE&&(o=t.reduce((l,u)=>u(a,l,n),o),o=(i.get(a)||[]).reduce((l,u)=>u(a,l,n),o)),s.concat(o)},new re):new re}function yo(n){return(e,t,r)=>qn(t,n,!0,r)}function My(n,e,t){const r=Vt.keys(n),i=St.keys(n),s=In.keys(n),a={};return r.concat(i).concat(s).forEach(o=>{let l=t.query(o,ie.ATTRIBUTE);l!=null&&(a[l.attrName]=l.value(n),a[l.attrName])||(l=Fy[o],l!=null&&(l.attrName===o||l.keyName===o)&&(a[l.attrName]=l.value(n)||void 0),l=Ic[o],l!=null&&(l.attrName===o||l.keyName===o)&&(l=Ic[o],a[l.attrName]=l.value(n)||void 0))}),Object.entries(a).reduce((o,l)=>{let[u,d]=l;return qn(o,u,d,t)},e)}function Py(n,e,t){const r=t.query(n);if(r==null)return e;if(r.prototype instanceof at){const i={},s=r.value(n);if(s!=null)return i[r.blotName]=s,new re().insert(i,r.formats(n,t))}else if(r.prototype instanceof fi&&!Ei(e,`
129
+ `)&&e.insert(`
130
+ `),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return qn(e,r.blotName,r.formats(n,t),t);return e}function Dy(n,e){return Ei(e,`
131
+ `)||e.insert(`
132
+ `),e}function Vy(n,e,t){const r=t.query("code-block"),i=r&&"formats"in r&&typeof r.formats=="function"?r.formats(n,t):!0;return qn(e,"code-block",i,t)}function Gy(){return new re}function jy(n,e,t){const r=t.query(n);if(r==null||r.blotName!=="list"||!Ei(e,`
133
+ `))return e;let i=-1,s=n.parentNode;for(;s!=null;)["OL","UL"].includes(s.tagName)&&(i+=1),s=s.parentNode;return i<=0?e:e.reduce((a,o)=>o.insert?o.attributes&&typeof o.attributes.indent=="number"?a.push(o):a.insert(o.insert,{indent:i,...o.attributes||{}}):a,new re)}function Hy(n,e,t){const r=n;let i=r.tagName==="OL"?"ordered":"bullet";const s=r.getAttribute("data-checked");return s&&(i=s==="true"?"checked":"unchecked"),qn(e,"list",i,t)}function Ac(n,e,t){if(!Ei(e,`
134
+ `)){if(fn(n,t)&&(n.childNodes.length>0||n instanceof HTMLParagraphElement))return e.insert(`
135
+ `);if(e.length()>0&&n.nextSibling){let r=n.nextSibling;for(;r!=null;){if(fn(r,t))return e.insert(`
136
+ `);const i=t.query(r);if(i&&i.prototype instanceof dt)return e.insert(`
137
+ `);r=r.firstChild}}}return e}function Xy(n,e,t){var s;const r={},i=n.style||{};return i.fontStyle==="italic"&&(r.italic=!0),i.textDecoration==="underline"&&(r.underline=!0),i.textDecoration==="line-through"&&(r.strike=!0),((s=i.fontWeight)!=null&&s.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(r.bold=!0),e=Object.entries(r).reduce((a,o)=>{let[l,u]=o;return qn(a,l,u,t)},e),parseFloat(i.textIndent||0)>0?new re().insert(" ").concat(e):e}function Wy(n,e,t){var i,s;const r=((i=n.parentElement)==null?void 0:i.tagName)==="TABLE"?n.parentElement:(s=n.parentElement)==null?void 0:s.parentElement;if(r!=null){const o=Array.from(r.querySelectorAll("tr")).indexOf(n)+1;return qn(e,"table",o,t)}return e}function qy(n,e,t){var i;let r=n.data;if(((i=n.parentElement)==null?void 0:i.tagName)==="O:P")return e.insert(r.trim());if(!rf(n)){if(r.trim().length===0&&r.includes(`
138
+ `)&&!Ly(n,t))return e;const s=(a,o)=>{const l=o.replace(/[^\u00a0]/g,"");return l.length<1&&a?" ":l};r=r.replace(/\r\n/g," ").replace(/\n/g," "),r=r.replace(/\s\s+/g,s.bind(s,!0)),(n.previousSibling==null&&n.parentElement!=null&&fn(n.parentElement,t)||n.previousSibling instanceof Element&&fn(n.previousSibling,t))&&(r=r.replace(/^\s+/,s.bind(s,!1))),(n.nextSibling==null&&n.parentElement!=null&&fn(n.parentElement,t)||n.nextSibling instanceof Element&&fn(n.nextSibling,t))&&(r=r.replace(/\s+$/,s.bind(s,!1)))}return e.insert(r)}class sf extends Tt{constructor(t,r){super(t,r);Q(this,"lastRecorded",0);Q(this,"ignoreChange",!1);Q(this,"stack",{undo:[],redo:[]});Q(this,"currentRange",null);this.quill.on(V.events.EDITOR_CHANGE,(i,s,a,o)=>{i===V.events.SELECTION_CHANGE?s&&o!==V.sources.SILENT&&(this.currentRange=s):i===V.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||o===V.sources.USER?this.record(s,a):this.transform(s)),this.currentRange=al(this.currentRange,s))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",i=>{i.inputType==="historyUndo"?(this.undo(),i.preventDefault()):i.inputType==="historyRedo"&&(this.redo(),i.preventDefault())})}change(t,r){if(this.stack[t].length===0)return;const i=this.stack[t].pop();if(!i)return;const s=this.quill.getContents(),a=i.delta.invert(s);this.stack[r].push({delta:a,range:al(i.range,a)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(i.delta,V.sources.USER),this.ignoreChange=!1,this.restoreSelection(i)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,r){if(t.ops.length===0)return;this.stack.redo=[];let i=t.invert(r),s=this.currentRange;const a=Date.now();if(this.lastRecorded+this.options.delay>a&&this.stack.undo.length>0){const o=this.stack.undo.pop();o&&(i=i.compose(o.delta),s=o.range)}else this.lastRecorded=a;i.length()!==0&&(this.stack.undo.push({delta:i,range:s}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Ec(this.stack.undo,t),Ec(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,V.sources.USER);else{const r=zy(this.quill.scroll,t.delta);this.quill.setSelection(r,V.sources.USER)}}}Q(sf,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Ec(n,e){let t=e;for(let r=n.length-1;r>=0;r-=1){const i=n[r];n[r]={delta:t.transform(i.delta,!0),range:i.range&&al(i.range,t)},t=i.delta.transform(t),n[r].delta.length()===0&&n.splice(r,1)}}function Zy(n,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
139
+ `):t.attributes!=null?Object.keys(t.attributes).some(r=>n.query(r,ie.BLOCK)!=null):!1}function zy(n,e){const t=e.reduce((i,s)=>i+(s.delete||0),0);let r=e.length()-t;return Zy(n,e)&&(r-=1),r}function al(n,e){if(!n)return n;const t=e.transformPosition(n.index),r=e.transformPosition(n.index+n.length);return{index:t,length:r-t}}class af extends Tt{constructor(e,t){super(e,t),e.root.addEventListener("drop",r=>{var a;r.preventDefault();let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){const o=document.caretPositionFromPoint(r.clientX,r.clientY);i=document.createRange(),i.setStart(o.offsetNode,o.offset),i.setEnd(o.offsetNode,o.offset)}const s=i&&e.selection.normalizeNative(i);if(s){const o=e.selection.normalizedToRange(s);(a=r.dataTransfer)!=null&&a.files&&this.upload(o,r.dataTransfer.files)}})}upload(e,t){const r=[];Array.from(t).forEach(i=>{var s;i&&((s=this.options.mimetypes)!=null&&s.includes(i.type))&&r.push(i)}),r.length>0&&this.options.handler.call(this,e,r)}}af.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(n,e){if(!this.quill.scroll.query("image"))return;const t=e.map(r=>new Promise(i=>{const s=new FileReader;s.onload=()=>{i(s.result)},s.readAsDataURL(r)}));Promise.all(t).then(r=>{const i=r.reduce((s,a)=>s.insert({image:a}),new re().retain(n.index).delete(n.length));this.quill.updateContents(i,ne.sources.USER),this.quill.setSelection(n.index+r.length,ne.sources.SILENT)})}};const $y=["insertText","insertReplacementText"];let Yy=class extends Tt{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||e.on(V.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){zl({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const r=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new re().retain(e.index).insert(t,r),V.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,V.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!$y.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const r=Uy(e);if(r==null)return;const i=this.quill.selection.normalizeNative(t),s=i?this.quill.selection.normalizedToRange(i):null;s&&this.replaceText(s,r)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}};function Uy(n){var e;return typeof n.data=="string"?n.data:(e=n.dataTransfer)!=null&&e.types.includes("text/plain")?n.dataTransfer.getData("text/plain"):null}const Jy=/Mac/i.test(navigator.platform),Qy=100,Ky=n=>!!(n.key==="ArrowLeft"||n.key==="ArrowRight"||n.key==="ArrowUp"||n.key==="ArrowDown"||n.key==="Home"||Jy&&n.key==="a"&&n.ctrlKey===!0);class eC extends Tt{constructor(t,r){super(t,r);Q(this,"isListening",!1);Q(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,r){let{line:i,event:s}=r;if(!(i instanceof Et)||!i.uiNode)return!0;const a=getComputedStyle(i.domNode).direction==="rtl";return a&&s.key!=="ArrowRight"||!a&&s.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(s.shiftKey?1:0),V.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&Ky(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Qy,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const r=t.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!==0)return;const i=this.quill.scroll.find(r.startContainer);if(!(i instanceof Et)||!i.uiNode)return;const s=document.createRange();s.setStartAfter(i.uiNode),s.setEndAfter(i.uiNode),t.removeAllRanges(),t.addRange(s)}}V.register({"blots/block":qe,"blots/block/embed":dt,"blots/break":wt,"blots/container":Xn,"blots/cursor":Ar,"blots/embed":jl,"blots/inline":Gt,"blots/scroll":cr,"blots/text":xt,"modules/clipboard":nf,"modules/history":sf,"modules/keyboard":Ks,"modules/uploader":af,"modules/input":Yy,"modules/uiNode":eC});class tC extends St{add(e,t){let r=0;if(t==="+1"||t==="-1"){const i=this.value(e)||0;r=t==="+1"?i+1:i-1}else typeof t=="number"&&(r=t);return r===0?(this.remove(e),!0):super.add(e,r.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const nC=new tC("indent","ql-indent",{scope:ie.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class ol extends qe{}Q(ol,"blotName","blockquote"),Q(ol,"tagName","blockquote");class ll extends qe{static formats(e){return this.tagName.indexOf(e.tagName)+1}}Q(ll,"blotName","header"),Q(ll,"tagName",["H1","H2","H3","H4","H5","H6"]);class xi extends Xn{}xi.blotName="list-container";xi.tagName="OL";class Si extends qe{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){V.register(xi)}constructor(e,t){super(e,t);const r=t.ownerDocument.createElement("span"),i=s=>{if(!e.isEnabled())return;const a=this.statics.formats(t,e);a==="checked"?(this.format("list","unchecked"),s.preventDefault()):a==="unchecked"&&(this.format("list","checked"),s.preventDefault())};r.addEventListener("mousedown",i),r.addEventListener("touchstart",i),this.attachUI(r)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}Si.blotName="list";Si.tagName="LI";xi.allowedChildren=[Si];Si.requiredContainer=xi;class gi extends Gt{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}Q(gi,"blotName","bold"),Q(gi,"tagName",["STRONG","B"]);class ul extends gi{}Q(ul,"blotName","italic"),Q(ul,"tagName",["EM","I"]);class pn extends Gt{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return of(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}Q(pn,"blotName","link"),Q(pn,"tagName","A"),Q(pn,"SANITIZED_URL","about:blank"),Q(pn,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function of(n,e){const t=document.createElement("a");t.href=n;const r=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(r)>-1}class cl extends Gt{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}Q(cl,"blotName","script"),Q(cl,"tagName",["SUB","SUP"]);class dl extends gi{}Q(dl,"blotName","strike"),Q(dl,"tagName",["S","STRIKE"]);class hl extends Gt{}Q(hl,"blotName","underline"),Q(hl,"tagName","U");class bs extends jl{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}Q(bs,"blotName","formula"),Q(bs,"className","ql-formula"),Q(bs,"tagName","SPAN");const xc=["alt","height","width"];class fl extends at{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return xc.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return of(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){xc.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}Q(fl,"blotName","image"),Q(fl,"tagName","IMG");const Sc=["height","width"];class vs extends dt{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Sc.reduce((t,r)=>(e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t),{})}static sanitize(e){return pn.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){Sc.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}Q(vs,"blotName","video"),Q(vs,"className","ql-video"),Q(vs,"tagName","IFRAME");const ei=new St("code-token","hljs",{scope:ie.INLINE});class Kt extends Gt{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(Je.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,r){super(e,t,r),ei.add(this.domNode,r)}format(e,t){e!==Kt.blotName?super.format(e,t):t?ei.add(this.domNode,t):(ei.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),ei.value(this.domNode)||this.unwrap()}}Kt.blotName="code-token";Kt.className="ql-token";class ct extends Je{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),Kt.blotName,!1),super.replaceWith(e,t)}}class ai extends Wn{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===ct.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(e,t)}))}formatAt(e,t,r,i){r===ct.blotName&&(this.forceNext=!0),super.formatAt(e,t,r,i)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const i=`${Array.from(this.domNode.childNodes).filter(a=>a!==this.uiNode).map(a=>a.textContent).join(`
140
+ `)}
141
+ `,s=ct.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const a=this.children.reduce((l,u)=>l.concat(Xh(u,!1)),new re),o=e(i,s);a.diff(o).reduce((l,u)=>{let{retain:d,attributes:h}=u;return d?(h&&Object.keys(h).forEach(f=>{[ct.blotName,Kt.blotName].includes(f)&&this.formatAt(l,d,f,h[f])}),l+d):l},0)}this.cachedText=i,this.forceNext=!1}}html(e,t){const[r]=this.children.find(e);return`<pre data-language="${r?ct.formats(r.domNode):"plain"}">
142
+ ${Qs(this.code(e,t))}
143
+ </pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=ct.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}ai.allowedChildren=[ct];ct.requiredContainer=ai;ct.allowedChildren=[Kt,Ar,xt,wt];const rC=(n,e,t)=>{if(typeof n.versionString=="string"){const r=n.versionString.split(".")[0];if(parseInt(r,10)>=11)return n.highlight(t,{language:e}).value}return n.highlight(e,t).value};class lf extends Tt{static register(){V.register(Kt,!0),V.register(ct,!0),V.register(ai,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((r,i)=>{let{key:s}=i;return r[s]=!0,r},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(V.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof ai))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(r=>{let{key:i,label:s}=r;const a=t.ownerDocument.createElement("option");a.textContent=s,a.setAttribute("value",i),t.appendChild(a)}),t.addEventListener("change",()=>{e.format(ct.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=ct.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(V.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(V.sources.USER);const r=this.quill.getSelection();(e==null?this.quill.scroll.descendants(ai):[e]).forEach(s=>{s.highlight(this.highlightBlot,t)}),this.quill.update(V.sources.SILENT),r!=null&&this.quill.setSelection(r,V.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return Qs(e).split(`
144
+ `).reduce((i,s,a)=>(a!==0&&i.insert(`
145
+ `,{[Je.blotName]:t}),i.insert(s)),new re);const r=this.quill.root.ownerDocument.createElement("div");return r.classList.add(Je.className),r.innerHTML=rC(this.options.hljs,t,e),$l(this.quill.scroll,r,[(i,s)=>{const a=ei.value(i);return a?s.compose(new re().retain(s.length(),{[Kt.blotName]:a})):s}],[(i,s)=>i.data.split(`
146
+ `).reduce((a,o,l)=>(l!==0&&a.insert(`
147
+ `,{[Je.blotName]:t}),a.insert(o)),s)],new WeakMap)}}lf.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const li=class li extends qe{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",Yl()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===li.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Q(li,"blotName","table"),Q(li,"tagName","TD");let Ct=li;class en extends Xn{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),r=this.next.children.head.formats(),i=this.next.children.tail.formats();return e.table===t.table&&e.table===r.table&&e.table===i.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const r=t.formats(),i=t.next.formats();if(r.table!==i.table){const s=this.splitAfter(t);s&&s.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Q(en,"blotName","table-row"),Q(en,"tagName","TR");class Pt extends Xn{}Q(Pt,"blotName","table-body"),Q(Pt,"tagName","TBODY");class xr extends Xn{balanceCells(){const e=this.descendants(en),t=e.reduce((r,i)=>Math.max(i.children.length,r),0);e.forEach(r=>{new Array(t-r.children.length).fill(0).forEach(()=>{let i;r.children.head!=null&&(i=Ct.formats(r.children.head.domNode));const s=this.scroll.create(Ct.blotName,i);r.appendChild(s),s.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(Pt);t==null||t.children.head==null||t.children.forEach(r=>{const i=r.children.at(e);i!=null&&i.remove()})}insertColumn(e){const[t]=this.descendant(Pt);t==null||t.children.head==null||t.children.forEach(r=>{const i=r.children.at(e),s=Ct.formats(r.children.head.domNode),a=this.scroll.create(Ct.blotName,s);r.insertBefore(a,i)})}insertRow(e){const[t]=this.descendant(Pt);if(t==null||t.children.head==null)return;const r=Yl(),i=this.scroll.create(en.blotName);t.children.head.children.forEach(()=>{const a=this.scroll.create(Ct.blotName,r);i.appendChild(a)});const s=t.children.at(e);t.insertBefore(i,s)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}Q(xr,"blotName","table-container"),Q(xr,"tagName","TABLE");xr.allowedChildren=[Pt];Pt.requiredContainer=xr;Pt.allowedChildren=[en];en.requiredContainer=Pt;en.allowedChildren=[Ct];Ct.requiredContainer=en;function Yl(){return`row-${Math.random().toString(36).slice(2,6)}`}class iC extends Tt{static register(){V.register(Ct),V.register(en),V.register(Pt),V.register(xr)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(xr).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(V.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(V.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(V.sources.USER),this.quill.setSelection(t,V.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,r]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==Ct.blotName)return[null,null,null,-1];const i=t.parent;return[i.parent.parent,i,t,r]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[r,i,s]=this.getTable(t);if(s==null)return;const a=s.cellOffset();r.insertColumn(a+e),this.quill.update(V.sources.USER);let o=i.rowOffset();e===0&&(o+=1),this.quill.setSelection(t.index+o,t.length,V.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[r,i,s]=this.getTable(t);if(s==null)return;const a=i.rowOffset();r.insertRow(a+e),this.quill.update(V.sources.USER),e>0?this.quill.setSelection(t,V.sources.SILENT):this.quill.setSelection(t.index+i.children.length,t.length,V.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const r=this.quill.getSelection();if(r==null)return;const i=new Array(e).fill(0).reduce(s=>{const a=new Array(t).fill(`
148
+ `).join("");return s.insert(a,{table:Yl()})},new re().retain(r.index));this.quill.updateContents(i,V.sources.USER),this.quill.setSelection(r.index,V.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(V.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(V.events.TEXT_CHANGE,(r,i,s)=>{s===V.sources.USER&&this.balanceTables()}),!0):!1)})}}const wc=rn("quill:toolbar");class Ul extends Tt{constructor(e,t){var r,i;if(super(e,t),Array.isArray(this.options.container)){const s=document.createElement("div");s.setAttribute("role","toolbar"),sC(s,this.options.container),(i=(r=e.container)==null?void 0:r.parentNode)==null||i.insertBefore(s,e.container),this.container=s}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){wc.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(s=>{var o;const a=(o=this.options.handlers)==null?void 0:o[s];a&&this.addHandler(s,a)}),Array.from(this.container.querySelectorAll("button, select")).forEach(s=>{this.attach(s)}),this.quill.on(V.events.EDITOR_CHANGE,()=>{const[s]=this.quill.selection.getRange();this.update(s)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(i=>i.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){wc.warn("ignoring attaching to nonexistent format",t,e);return}const r=e.tagName==="SELECT"?"change":"click";e.addEventListener(r,i=>{let s;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const o=e.options[e.selectedIndex];o.hasAttribute("selected")?s=!1:s=o.value||!1}else e.classList.contains("ql-active")?s=!1:s=e.value||!e.hasAttribute("value"),i.preventDefault();this.quill.focus();const[a]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,s);else if(this.quill.scroll.query(t).prototype instanceof at){if(s=prompt(`Enter ${t}`),!s)return;this.quill.updateContents(new re().retain(a.index).delete(a.length).insert({[t]:s}),V.sources.USER)}else this.quill.format(t,s,V.sources.USER);this.update(a)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(r=>{const[i,s]=r;if(s.tagName==="SELECT"){let a=null;if(e==null)a=null;else if(t[i]==null)a=s.querySelector("option[selected]");else if(!Array.isArray(t[i])){let o=t[i];typeof o=="string"&&(o=o.replace(/"/g,'\\"')),a=s.querySelector(`option[value="${o}"]`)}a==null?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(e==null)s.classList.remove("ql-active"),s.setAttribute("aria-pressed","false");else if(s.hasAttribute("value")){const a=t[i],o=a===s.getAttribute("value")||a!=null&&a.toString()===s.getAttribute("value")||a==null&&!s.getAttribute("value");s.classList.toggle("ql-active",o),s.setAttribute("aria-pressed",o.toString())}else{const a=t[i]!=null;s.classList.toggle("ql-active",a),s.setAttribute("aria-pressed",a.toString())}})}}Ul.DEFAULTS={};function Tc(n,e,t){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${e}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${e}: ${t}`)):r.setAttribute("aria-label",e),n.appendChild(r)}function sC(n,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(i=>{if(typeof i=="string")Tc(r,i);else{const s=Object.keys(i)[0],a=i[s];Array.isArray(a)?aC(r,s,a):Tc(r,s,a)}}),n.appendChild(r)})}function aC(n,e,t){const r=document.createElement("select");r.classList.add(`ql-${e}`),t.forEach(i=>{const s=document.createElement("option");i!==!1?s.setAttribute("value",String(i)):s.setAttribute("selected","selected"),r.appendChild(s)}),n.appendChild(r)}Ul.DEFAULTS={container:null,handlers:{clean(){const n=this.quill.getSelection();if(n!=null)if(n.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,ie.INLINE)!=null&&this.quill.format(t,!1,V.sources.USER)})}else this.quill.removeFormat(n.index,n.length,V.sources.USER)},direction(n){const{align:e}=this.quill.getFormat();n==="rtl"&&e==null?this.quill.format("align","right",V.sources.USER):!n&&e==="right"&&this.quill.format("align",!1,V.sources.USER),this.quill.format("direction",n,V.sources.USER)},indent(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e),r=parseInt(t.indent||0,10);if(n==="+1"||n==="-1"){let i=n==="+1"?1:-1;t.direction==="rtl"&&(i*=-1),this.quill.format("indent",r+i,V.sources.USER)}},link(n){n===!0&&(n=prompt("Enter link URL:")),this.quill.format("link",n,V.sources.USER)},list(n){const e=this.quill.getSelection(),t=this.quill.getFormat(e);n==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,V.sources.USER):this.quill.format("list","unchecked",V.sources.USER):this.quill.format("list",n,V.sources.USER)}}};const oC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',lC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',uC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',cC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',dC='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',hC='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',fC='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',pC='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',Nc='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',gC='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',mC='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',bC='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',vC='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',yC='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',CC='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',IC='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',AC='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',EC='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',xC='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',SC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',wC='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',TC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',NC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',kC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',RC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',_C='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',OC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',BC='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',FC='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',LC='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',MC='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',PC='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',DC='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',mi={align:{"":oC,center:lC,right:uC,justify:cC},background:dC,blockquote:hC,bold:fC,clean:pC,code:Nc,"code-block":Nc,color:gC,direction:{"":mC,rtl:bC},formula:vC,header:{1:yC,2:CC,3:IC,4:AC,5:EC,6:xC},italic:SC,image:wC,indent:{"+1":TC,"-1":NC},link:kC,list:{bullet:RC,check:_C,ordered:OC},script:{sub:BC,super:FC},strike:LC,table:MC,underline:PC,video:DC},VC='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let kc=0;function Rc(n,e){n.setAttribute(e,`${n.getAttribute(e)!=="true"}`)}class ea{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),Rc(this.label,"aria-expanded"),Rc(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const r=e.getAttribute("value");return r&&t.setAttribute("data-value",r),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",i=>{switch(i.key){case"Enter":this.selectItem(t,!0),i.preventDefault();break;case"Escape":this.escape(),i.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=VC,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${kc}`,kc+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const r=this.buildItem(t);e.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");e!==r&&(r!=null&&r.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class uf extends ea{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const r=this.label.querySelector(".ql-color-label"),i=e&&e.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=i:r.style.fill=i)}}class cf extends ea{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const r=e||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const GC=n=>{const{overflowY:e}=getComputedStyle(n,null);return e!=="visible"&&e!=="clip"};class df{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,GC(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect(),s=this.root.getBoundingClientRect();let a=0;if(s.right>i.right&&(a=i.right-s.right,this.root.style.left=`${t+a}px`),s.left<i.left&&(a=i.left-s.left,this.root.style.left=`${t+a}px`),s.bottom>i.bottom){const o=s.bottom-s.top,l=e.bottom-e.top+o;this.root.style.top=`${r-l}px`,this.root.classList.add("ql-flip")}return a}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const jC=[!1,"center","right","justify"],HC=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],XC=[!1,"serif","monospace"],WC=["1","2","3",!1],qC=["small",!1,"large","huge"];class wi extends Er{constructor(e,t){super(e,t);const r=i=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(i.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(s=>{s.container.contains(i.target)||s.close()})};e.emitter.listenDOM("click",document.body,r)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(s=>{if(s.startsWith("ql-")&&(s=s.slice(3),t[s]!=null))if(s==="direction")r.innerHTML=t[s][""]+t[s].rtl;else if(typeof t[s]=="string")r.innerHTML=t[s];else{const a=r.value||"";a!=null&&t[s][a]&&(r.innerHTML=t[s][a])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(i=>{if(i.classList.contains("ql-align")&&(i.querySelector("option")==null&&zr(i,jC),typeof t.align=="object"))return new cf(i,t.align);if(i.classList.contains("ql-background")||i.classList.contains("ql-color")){const s=i.classList.contains("ql-background")?"background":"color";return i.querySelector("option")==null&&zr(i,HC,s==="background"?"#ffffff":"#000000"),new uf(i,t[s])}return i.querySelector("option")==null&&(i.classList.contains("ql-font")?zr(i,XC):i.classList.contains("ql-header")?zr(i,WC):i.classList.contains("ql-size")&&zr(i,qC)),new ea(i)});const r=()=>{this.pickers.forEach(i=>{i.update()})};this.quill.on(ne.events.EDITOR_CHANGE,r)}}wi.DEFAULTS=bn({},Er.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let n=this.container.querySelector("input.ql-image[type=file]");n==null&&(n=document.createElement("input"),n.setAttribute("type","file"),n.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),n.classList.add("ql-image"),n.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,n.files),n.value=""}),this.container.appendChild(n)),n.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class hf extends df{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,ne.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,ne.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=ZC(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,ne.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",ne.sources.USER),this.quill.setSelection(r+2,ne.sources.USER)}break}}this.textbox.value="",this.hide()}}function ZC(n){let e=n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||n.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=n.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:n}function zr(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(r=>{const i=document.createElement("option");r===t?i.setAttribute("selected","selected"):i.setAttribute("value",String(r)),n.appendChild(i)})}const zC=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class ff extends hf{constructor(e,t){super(e,t),this.quill.on(ne.events.EDITOR_CHANGE,(r,i,s,a)=>{if(r===ne.events.SELECTION_CHANGE)if(i!=null&&i.length>0&&a===ne.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const o=this.quill.getLines(i.index,i.length);if(o.length===1){const l=this.quill.getBounds(i);l!=null&&this.position(l)}else{const l=o[o.length-1],u=this.quill.getIndex(l),d=Math.min(l.length()-1,i.index+i.length-u),h=this.quill.getBounds(new Pn(u,d));h!=null&&this.position(h)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(ne.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}}Q(ff,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class pf extends wi{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=zC),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new ff(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),mi),this.buildPickers(e.container.querySelectorAll("select"),mi))}}pf.DEFAULTS=bn({},wi.DEFAULTS,{modules:{toolbar:{handlers:{link(n){n?this.quill.theme.tooltip.edit():this.quill.format("link",!1,V.sources.USER)}}}}});const $C=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class gf extends hf{constructor(){super(...arguments);Q(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,ne.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(ne.events.SELECTION_CHANGE,(t,r,i)=>{if(t!=null){if(t.length===0&&i===ne.sources.USER){const[s,a]=this.quill.scroll.descendant(pn,t.index);if(s!=null){this.linkRange=new Pn(t.index-a,s.length());const o=pn.formats(s.domNode);this.preview.textContent=o,this.preview.setAttribute("href",o),this.show();const l=this.quill.getBounds(this.linkRange);l!=null&&this.position(l);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Q(gf,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class mf extends wi{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=$C),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),mi),this.buildPickers(e.container.querySelectorAll("select"),mi),this.tooltip=new gf(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{e.handlers.link.call(e,!r.format.link)}))}}mf.DEFAULTS=bn({},wi.DEFAULTS,{modules:{toolbar:{handlers:{link(n){if(n){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,V.sources.USER)}}}}});V.register({"attributors/attribute/direction":$h,"attributors/class/align":qh,"attributors/class/background":hy,"attributors/class/color":dy,"attributors/class/direction":Yh,"attributors/class/font":Qh,"attributors/class/size":ef,"attributors/style/align":Zh,"attributors/style/background":Wl,"attributors/style/color":Xl,"attributors/style/direction":Uh,"attributors/style/font":Kh,"attributors/style/size":tf},!0);V.register({"formats/align":qh,"formats/direction":Yh,"formats/indent":nC,"formats/background":Wl,"formats/color":Xl,"formats/font":Qh,"formats/size":ef,"formats/blockquote":ol,"formats/code-block":Je,"formats/header":ll,"formats/list":Si,"formats/bold":gi,"formats/code":ql,"formats/italic":ul,"formats/link":pn,"formats/script":cl,"formats/strike":dl,"formats/underline":hl,"formats/formula":bs,"formats/image":fl,"formats/video":vs,"modules/syntax":lf,"modules/table":iC,"modules/toolbar":Ul,"themes/bubble":pf,"themes/snow":mf,"ui/icons":mi,"ui/picker":ea,"ui/icon-picker":cf,"ui/color-picker":uf,"ui/tooltip":df},!0);var ta=class extends L.default.Component{constructor(n){super(n),this.editingAreaRef=ee.createRef(),this.containerRef=ee.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp","useSemanticHTML"],this.state={generation:0},this.selection=null,this.onEditorChange=(t,r,i,s)=>{var a,o;t==="text-change"?(a=this.onEditorChangeText)==null||a.call(this,this.props.useSemanticHTML!==!1?this.editor.getSemanticHTML():this.editor.root.innerHTML,r,s,this.unprivilegedEditor):t==="selection-change"&&((o=this.onEditorChangeSelection)==null||o.call(this,r,s,this.unprivilegedEditor))};const e=this.isControlled()?n.value:n.defaultValue;this.value=e??""}validateProps(n){if(L.default.Children.count(n.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(L.default.Children.count(n.children)){const e=L.default.Children.only(n.children);if((e==null?void 0:e.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&n.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(n,e){if(this.validateProps(n),!this.editor||this.state.generation!==e.generation)return!0;if("value"in n){const t=this.getEditorContents(),r=n.value??"";this.isEqualValue(r,t)||this.setEditorContents(this.editor,r)}return n.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,n.readOnly),[...this.cleanProps,...this.dirtyProps].some(t=>!dn(n[t],this.props[t]))}shouldComponentRegenerate(n){return this.dirtyProps.some(e=>!dn(n[e],this.props[e]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(n,e){if(this.editor&&this.shouldComponentRegenerate(n)){const t=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:t,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.editor&&n.placeholder!==this.props.placeholder&&(this.editor.root.dataset.placeholder=this.props.placeholder||""),this.state.generation!==e.generation){const{delta:t,selection:r}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const i=this.editor;i.setContents(t),_c(()=>this.setEditorSelection(i,r))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){var t,r;if(!this.editor)return;this.unhookEditor(this.editor);const n=(t=this.props.modules)==null?void 0:t.toolbar;if(!(typeof n=="object"&&n&&"container"in n&&typeof n.container=="string"||typeof n=="string")){const i=(r=this.containerRef.current)==null?void 0:r.querySelector(".ql-toolbar");i&&i.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(n,e){const t=new V(n,e);return e.tabIndex!=null&&this.setEditorTabIndex(t,e.tabIndex),this.hookEditor(t),t}hookEditor(n){this.unprivilegedEditor=this.makeUnprivilegedEditor(n),n.on("editor-change",this.onEditorChange)}unhookEditor(n){n.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(n){return n&&n.ops}isEqualValue(n,e){return this.isDelta(n)&&this.isDelta(e)?dn(n.ops,e.ops):dn(n,e)}setEditorContents(n,e){this.value=e;const t=this.getEditorSelection();typeof e=="string"?n.setContents(n.clipboard.convert({html:e})):n.setContents(e),_c(()=>this.setEditorSelection(n,t))}setEditorSelection(n,e){if(this.selection=e,e){const t=n.getLength();e.index=Math.max(0,Math.min(e.index,t-1)),e.length=Math.max(0,Math.min(e.length,t-1-e.index)),n.setSelection(e)}}setEditorTabIndex(n,e){var t;(t=n==null?void 0:n.scroll)!=null&&t.domNode&&(n.scroll.domNode.tabIndex=e)}setEditorReadOnly(n,e){e?n.disable():n.enable()}makeUnprivilegedEditor(n){const e=n;return{getHTML:()=>e.root.innerHTML,getSemanticHTML:e.getSemanticHTML.bind(e),getLength:e.getLength.bind(e),getText:e.getText.bind(e),getContents:e.getContents.bind(e),getSelection:e.getSelection.bind(e),getBounds:e.getBounds.bind(e)}}getEditingArea(){const n=this.editingAreaRef.current;if(!n)throw new Error("Cannot find element for editing area");if(n.nodeType===3)throw new Error("Editing area cannot be a text node");return n}renderEditingArea(){const{children:n,preserveWhitespace:e}=this.props,{generation:t}=this.state;return L.default.Children.count(n)?L.default.cloneElement(L.default.Children.only(n),{key:t,ref:this.editingAreaRef}):e?K.jsx("pre",{ref:this.editingAreaRef},t):K.jsx("div",{ref:this.editingAreaRef},t)}render(){return K.jsx("div",{ref:this.containerRef,id:this.props.id,style:this.props.style,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp,children:this.renderEditingArea()},this.state.generation)}onEditorChangeText(n,e,t,r){var s,a;if(!this.editor)return;const i=this.isDelta(this.value)?r.getContents():this.props.useSemanticHTML!==!1?r.getSemanticHTML():r.getHTML();i!==this.getEditorContents()&&(this.lastDeltaChangeSet=e,this.value=i,(a=(s=this.props).onChange)==null||a.call(s,n,e,t,r))}onEditorChangeSelection(n,e,t){var a,o,l,u,d,h;if(!this.editor)return;const r=this.getEditorSelection(),i=!r&&n,s=r&&!n;dn(n,r)||(this.selection=n,(o=(a=this.props).onChangeSelection)==null||o.call(a,n,e,t),i?(u=(l=this.props).onFocus)==null||u.call(l,n,e,t):s&&((h=(d=this.props).onBlur)==null||h.call(d,r,e,t)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}};ta.displayName="React Quill";ta.Quill=V;ta.defaultProps={theme:"snow",modules:{},readOnly:!1};function _c(n){Promise.resolve().then(n)}var YC=ta;const UC=El.cva(Be.cn("quill-editor w-full rounded-lg bg-transparent transition-all","border border-border-alpha-strong [&_.ql-toolbar]:bg-muted/50 [&_.ql-editor.ql-blank::before]:text-body-sm-light","focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-bg focus-within:ring-offset-2 focus-within:ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50"),{variants:{variant:{default:["focus-within:ring-ring focus-within:ring-item-primary","[&_.ql-editor.ql-blank::before]:text-secondary!"],failure:["border-destructive text-destructive","focus-within:ring-destructive","[&_.ql-editor.ql-blank::before]:text-destructive/60!"]}},defaultVariants:{variant:"default"}});function bf({containerProps:n,className:e,variant:t,...r}){return K.jsx("div",{...n,className:Be.cn(UC({variant:t}),"block p-0",e),children:K.jsx(YC,{theme:"snow",...r})})}bf.displayName="HtmlEditor";const na=El.cva(Be.cn("h-10 w-full rounded-lg px-2.5 py-2 flex border border-border-alpha-strong","placeholder:text-secondary placeholder:text-body-sm-regular disabled:cursor-not-allowed disabled:opacity-50","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-bg focus-visible:ring-offset-2 focus-visible:ring-ring"),{variants:{variant:{default:"focus-visible:ring-item-primary",failure:"focus-visible:ring-item-destructive placeholder:!text-item-destructive border-item-destructive text-destructive!"}},defaultVariants:{variant:"default"}}),vf=L.forwardRef(({className:n,type:e,variant:t,...r},i)=>{const[s,a]=ee.useState(!1),[o,l]=ee.useState(!1);return ee.useEffect(()=>{a(e==="password")},[e]),K.jsxs("div",{className:"relative",children:[K.jsx("input",{type:o?"text":e,className:Be.cn(na({variant:t}),n,s&&"pr-10"),ref:i,...r}),s&&K.jsx(Xp.Button,{type:"button",size:"icon",variant:"tertiary",className:"absolute top-1 right-1 size-8 cursor-pointer rounded-md p-2 ring-0! ring-offset-0!",onClick:()=>{l(!o)},children:o?K.jsx(xs.Xt,{}):K.jsx(xs.qt,{})})]})});vf.displayName="Input";function vn(n){return typeof n=="string"||n instanceof String}function Oc(n){var e;return typeof n=="object"&&n!=null&&(n==null||(e=n.constructor)==null?void 0:e.name)==="Object"}function yf(n,e){return Array.isArray(e)?yf(n,(t,r)=>e.includes(r)):Object.entries(n).reduce((t,r)=>{let[i,s]=r;return e(s,i)&&(t[i]=s),t},{})}const le={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function JC(n){switch(n){case le.LEFT:return le.FORCE_LEFT;case le.RIGHT:return le.FORCE_RIGHT;default:return n}}function Co(n){return n.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function _s(n,e){if(e===n)return!0;const t=Array.isArray(e),r=Array.isArray(n);let i;if(t&&r){if(e.length!=n.length)return!1;for(i=0;i<e.length;i++)if(!_s(e[i],n[i]))return!1;return!0}if(t!=r)return!1;if(e&&n&&typeof e=="object"&&typeof n=="object"){const s=e instanceof Date,a=n instanceof Date;if(s&&a)return e.getTime()==n.getTime();if(s!=a)return!1;const o=e instanceof RegExp,l=n instanceof RegExp;if(o&&l)return e.toString()==n.toString();if(o!=l)return!1;const u=Object.keys(e);for(i=0;i<u.length;i++)if(!Object.prototype.hasOwnProperty.call(n,u[i]))return!1;for(i=0;i<u.length;i++)if(!_s(n[u[i]],e[u[i]]))return!1;return!0}else if(e&&n&&typeof e=="function"&&typeof n=="function")return e.toString()===n.toString();return!1}class QC{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?le.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?le.RIGHT:le.LEFT}}function pe(n,e){return new pe.InputMask(n,e)}function Cf(n){if(n==null)throw new Error("mask property should be defined");return n instanceof RegExp?pe.MaskedRegExp:vn(n)?pe.MaskedPattern:n===Date?pe.MaskedDate:n===Number?pe.MaskedNumber:Array.isArray(n)||n===Array?pe.MaskedDynamic:pe.Masked&&n.prototype instanceof pe.Masked?n:pe.Masked&&n instanceof pe.Masked?n.constructor:n instanceof Function?pe.MaskedFunction:(console.warn("Mask not found for mask",n),pe.Masked)}function bi(n){if(!n)throw new Error("Options in not defined");if(pe.Masked){if(n.prototype instanceof pe.Masked)return{mask:n};const{mask:e=void 0,...t}=n instanceof pe.Masked?{mask:n}:Oc(n)&&n.mask instanceof pe.Masked?n:{};if(e){const r=e.mask;return{...yf(e,(i,s)=>!s.startsWith("_")),mask:e.constructor,_mask:r,...t}}}return Oc(n)?{...n}:{mask:n}}function tn(n){if(pe.Masked&&n instanceof pe.Masked)return n;const e=bi(n),t=Cf(e.mask);if(!t)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");return e.mask===t&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new t(e)}pe.createMask=tn;class Jl{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}pe.MaskElement=Jl;const Bc=90,KC=89;class ra extends Jl{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,r;return(e=(t=(r=this.input).getRootNode)==null?void 0:t.call(r))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===Bc&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===KC&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===Bc&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType==="historyUndo"&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType==="historyRedo"&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}pe.HTMLMaskElement=ra;class eI extends ra{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}pe.HTMLMaskElement=ra;class If extends ra{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),r=t&&t.anchorOffset,i=t&&t.focusOffset;return i==null||r==null||r<i?r:i}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),r=t&&t.anchorOffset,i=t&&t.focusOffset;return i==null||r==null||r>i?r:i}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const r=this.rootElement.createRange();r.setStart(this.input.firstChild||this.input,e),r.setEnd(this.input.lastChild||this.input,t);const i=this.rootElement,s=i.getSelection&&i.getSelection();s&&(s.removeAllRanges(),s.addRange(r))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}pe.HTMLContenteditableMaskElement=If;class ia{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>ia.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}ia.MAX_LENGTH=100;class tI{constructor(e,t){this.el=e instanceof Jl?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new If(e):new eI(e),this.masked=tn(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new ia,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(e){var t;return e==null||((t=this.masked)==null?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof pe.Masked)&&this.masked.constructor===Cf(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof pe.Masked?e:tn({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const r=this._listeners[e];r&&r.forEach(i=>i(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,r=this.masked.value,i=this.masked.rawInputValue,s=this.displayValue,a=this.unmaskedValue!==t||this.value!==r||this._rawInputValue!==i;this._unmaskedValue=t,this._value=r,this._rawInputValue=i,this.el.value!==s&&(this.el.value=s),e==="auto"?this.alignCursor():e!=null&&(this.cursorPos=e),a&&this._fireChangeEvents(),!this._historyChanging&&(a||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...r}=e,i=!this.maskEquals(t),s=this.masked.optionsIsChanged(r);i&&(this.mask=t),s&&this.masked.updateOptions(r),(i||s)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,le.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const r=this._listeners[e].indexOf(t);return r>=0&&this._listeners[e].splice(r,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new QC({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),r=this.masked.rawInputValue,i=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,s=r===this.masked.rawInputValue?t.removeDirection:le.NONE;let a=this.masked.nearestInputPos(t.startChangePos+i,s);s!==le.NONE&&(a=this.masked.nearestInputPos(a,le.NONE)),this.updateControl(a),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}pe.InputMask=tI;class be{static normalize(e){return Array.isArray(e)?e:[e,new be]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}pe.ChangeDetails=be;class Lt{constructor(e,t,r){e===void 0&&(e=""),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=r}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class Qe{constructor(e){this._value="",this._update({...Qe.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new Lt(this.extractInput(e,t),e)}appendTail(e){return vn(e)&&(e=new Lt(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new be({inserted:e,rawInserted:e})):new be}_appendChar(e,t,r){t===void 0&&(t={});const i=this.state;let s;if([e,s]=this.doPrepareChar(e,t),e&&(s=s.aggregate(this._appendCharRaw(e,t)),!s.rawInserted&&this.autofix==="pad")){const a=this.state;this.state=i;let o=this.pad(t);const l=this._appendCharRaw(e,t);o=o.aggregate(l),l.rawInserted||o.equals(s)?s=o:this.state=a}if(s.inserted){let a,o=this.doValidate(t)!==!1;if(o&&r!=null){const l=this.state;if(this.overwrite===!0){a=r.state;for(let d=0;d<s.rawInserted.length;++d)r.unshift(this.displayValue.length-s.tailShift)}let u=this.appendTail(r);if(o=u.rawInserted.length===r.toString().length,!(o&&u.inserted)&&this.overwrite==="shift"){this.state=l,a=r.state;for(let d=0;d<s.rawInserted.length;++d)r.shift();u=this.appendTail(r),o=u.rawInserted.length===r.toString().length}o&&u.inserted&&(this.state=l)}o||(s=new be,this.state=i,r&&a&&(r.state=a))}return s}_appendPlaceholder(){return new be}_appendEager(){return new be}append(e,t,r){if(!vn(e))throw new Error("value should be string");const i=vn(r)?new Lt(String(r)):r;t!=null&&t.tail&&(t._beforeTailState=this.state);let s;[e,s]=this.doPrepare(e,t);for(let a=0;a<e.length;++a){const o=this._appendChar(e[a],t,i);if(!o.rawInserted&&!this.doSkipInvalid(e[a],t,i))break;s.aggregate(o)}return(this.eager===!0||this.eager==="append")&&t!=null&&t.input&&e&&s.aggregate(this._appendEager()),i!=null&&(s.tailShift+=this.appendTail(i).tailShift),s}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new be}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,r=this.value,i=e();return this.rawInputValue=t,this.value&&this.value!==r&&r.indexOf(this.value)===0&&(this.append(r.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,i}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,r=e(this);return this.state=t,delete this._isolated,r}doSkipInvalid(e,t,r){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),be.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),be.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,r,i,s){r===void 0&&(r=""),i===void 0&&(i=le.NONE),s===void 0&&(s={input:!0});const a=e+t,o=this.extractTail(a),l=this.eager===!0||this.eager==="remove";let u;l&&(i=JC(i),u=this.extractInput(0,a,{raw:!0}));let d=e;const h=new be;if(i!==le.NONE&&(d=this.nearestInputPos(e,t>1&&e!==0&&!l?le.NONE:i),h.tailShift=d-e),h.aggregate(this.remove(d)),l&&i!==le.NONE&&u===this.rawInputValue)if(i===le.FORCE_LEFT){let f;for(;u===this.rawInputValue&&(f=this.displayValue.length);)h.aggregate(new be({tailShift:-1})).aggregate(this.remove(f-1))}else i===le.FORCE_RIGHT&&o.unshift();return h.aggregate(this.append(r,s,o))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!_s(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||Qe.EMPTY_VALUES.includes(e)&&Qe.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new be}}Qe.DEFAULTS={skipInvalid:!0};Qe.EMPTY_VALUES=[void 0,null,""];pe.Masked=Qe;class _n{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=vn(e)?new Lt(String(e)):e;const t=this.chunks[this.chunks.length-1],r=t&&(t.stop===e.stop||e.stop==null)&&e.from===t.from+t.toString().length;if(e instanceof Lt)r?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof _n){if(e.stop==null){let i;for(;e.chunks.length&&e.chunks[0].stop==null;)i=e.chunks.shift(),i.from+=e.from,this.extend(i)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof pe.MaskedPattern))return new Lt(this.toString()).appendTo(e);const t=new be;for(let r=0;r<this.chunks.length;++r){const i=this.chunks[r],s=e._mapPosToBlock(e.displayValue.length),a=i.stop;let o;if(a!=null&&(!s||s.index<=a)&&((i instanceof _n||e._stops.indexOf(a)>=0)&&t.aggregate(e._appendPlaceholder(a)),o=i instanceof _n&&e._blocks[a]),o){const l=o.appendTail(i);t.aggregate(l);const u=i.toString().slice(l.rawInserted.length);u&&t.aggregate(e.append(u,{tail:!0}))}else t.aggregate(e.append(i.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...r}=e;Object.assign(this,r),this.chunks=t.map(i=>{const s="chunks"in i?new _n:new Lt;return s.state=i,s})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const t=e!=null?e-this.from:e;let r=0;for(;r<this.chunks.length;){const i=this.chunks[r],s=i.unshift(t);if(i.toString()){if(!s)break;++r}else this.chunks.splice(r,1);if(s)return s}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],r=t.shift();if(t.toString()){if(!r)break;--e}else this.chunks.splice(e,1);if(r)return r}return""}}class nI{constructor(e,t){this.masked=e,this._log=[];const{offset:r,index:i}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=r,this.index=i,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((t=this.block)==null?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,le.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,le.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,le.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,le.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,le.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,le.NONE),!0})}}class Af{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new be}nearestInputPos(e,t){t===void 0&&(t=le.NONE);const r=0,i=this._value.length;switch(t){case le.LEFT:case le.FORCE_LEFT:return r;case le.NONE:case le.RIGHT:case le.FORCE_RIGHT:default:return i}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),r===void 0&&(r={}),r.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new be;const r=this.eager===!0||this.eager==="append",s=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!r)&&!t.tail,a=new be({inserted:this.char,rawInserted:s?this.char:""});return this._value=this.char,this._isRawInput=s&&(t.raw||t.input),a}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new be;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new Lt("")}appendTail(e){return vn(e)&&(e=new Lt(String(e))),e.appendTo(this)}append(e,t,r){const i=this._appendChar(e[0],t);return r!=null&&(i.tailShift+=this.appendTail(r).tailShift),i}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}}class Os{constructor(e){const{parent:t,isOptional:r,placeholderChar:i,displayChar:s,lazy:a,eager:o,...l}=e;this.masked=tn(l),Object.assign(this,{parent:t,isOptional:r,placeholderChar:i,displayChar:s,lazy:a,eager:o})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new be}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new be;const r=this.masked.state;let i=this.masked._appendChar(e,this.currentMaskFlags(t));return i.inserted&&this.doValidate(t)===!1&&(i=new be,this.masked.state=r),!i.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(i.inserted=this.placeholderChar),i.skip=!i.inserted&&!this.isOptional,this.isFilled=!!i.inserted,i}append(e,t,r){return this.masked.append(e,this.currentMaskFlags(t),r)}_appendPlaceholder(){return this.isFilled||this.isOptional?new be:(this.isFilled=!0,new be({inserted:this.placeholderChar}))}_appendEager(){return new be}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,r)}nearestInputPos(e,t){t===void 0&&(t=le.NONE);const r=0,i=this.value.length,s=Math.min(Math.max(e,r),i);switch(t){case le.LEFT:case le.FORCE_LEFT:return this.isComplete?s:r;case le.RIGHT:case le.FORCE_RIGHT:return this.isComplete?s:i;case le.NONE:default:return s}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||(e==null?void 0:e._beforeTailState)}}pad(e){return new be}}Os.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class rI extends Qe{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=r=>r.search(t)>=0),super._update(e)}}pe.MaskedRegExp=rI;class Ke extends Qe{constructor(e){super({...Ke.DEFAULTS,...e,definitions:Object.assign({},Os.DEFAULT_DEFINITIONS,e==null?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let r=!1,i=!1;for(let s=0;s<t.length;++s){if(this.blocks){const u=t.slice(s),d=Object.keys(this.blocks).filter(f=>u.indexOf(f)===0);d.sort((f,p)=>p.length-f.length);const h=d[0];if(h){const{expose:f,repeat:p,...m}=bi(this.blocks[h]),b={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...m,repeat:p,parent:this},y=p!=null?new pe.RepeatBlock(b):tn(b);y&&(this._blocks.push(y),f&&(this.exposeBlock=y),this._maskedBlocks[h]||(this._maskedBlocks[h]=[]),this._maskedBlocks[h].push(this._blocks.length-1)),s+=h.length-1;continue}}let a=t[s],o=a in e;if(a===Ke.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(a==="{"||a==="}"){r=!r;continue}if(a==="["||a==="]"){i=!i;continue}if(a===Ke.ESCAPE_CHAR){if(++s,a=t[s],!a)break;o=!1}const l=o?new Os({isOptional:i,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...bi(e[a]),parent:this}):new Af({char:a,eager:this.eager,isUnmasking:r});this._blocks.push(l)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:t,...r}=e;this._blocks.forEach((i,s)=>i.state=t[s]),super.state=r}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new be;let r=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(r==null)return t;this._blocks[r].isFilled&&++r;for(let i=r;i<this._blocks.length;++i){const s=this._blocks[i]._appendEager();if(!s.inserted)break;t.aggregate(s)}return t}_appendCharRaw(e,t){t===void 0&&(t={});const r=this._mapPosToBlock(this.displayValue.length),i=new be;if(!r)return i;for(let a=r.index,o;o=this._blocks[a];++a){var s;const l=o._appendChar(e,{...t,_beforeTailState:(s=t._beforeTailState)==null||(s=s._blocks)==null?void 0:s[a]});if(i.aggregate(l),l.consumed)break}return i}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const r=new _n;return e===t||this._forEachBlocksInRange(e,t,(i,s,a,o)=>{const l=i.extractTail(a,o);l.stop=this._findStopBefore(s),l.from=this._blockStartPos(s),l instanceof _n&&(l.blockIndex=s),r.extend(l)}),r}extractInput(e,t,r){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),r===void 0&&(r={}),e===t)return"";let i="";return this._forEachBlocksInRange(e,t,(s,a,o,l)=>{i+=s.extractInput(o,l,r)}),i}_findStopBefore(e){let t;for(let r=0;r<this._stops.length;++r){const i=this._stops[r];if(i<=e)t=i;else break}return t}_appendPlaceholder(e){const t=new be;if(this.lazy&&e==null)return t;const r=this._mapPosToBlock(this.displayValue.length);if(!r)return t;const i=r.index,s=e??this._blocks.length;return this._blocks.slice(i,s).forEach(a=>{if(!a.lazy||e!=null){var o;t.aggregate(a._appendPlaceholder((o=a._blocks)==null?void 0:o.length))}}),t}_mapPosToBlock(e){let t="";for(let r=0;r<this._blocks.length;++r){const i=this._blocks[r],s=t.length;if(t+=i.displayValue,e<=t.length)return{index:r,offset:e-s}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((t,r)=>t+=r.displayValue.length,0)}_forEachBlocksInRange(e,t,r){t===void 0&&(t=this.displayValue.length);const i=this._mapPosToBlock(e);if(i){const s=this._mapPosToBlock(t),a=s&&i.index===s.index,o=i.offset,l=s&&a?s.offset:this._blocks[i.index].displayValue.length;if(r(this._blocks[i.index],i.index,o,l),s&&!a){for(let u=i.index+1;u<s.index;++u)r(this._blocks[u],u,0,this._blocks[u].displayValue.length);r(this._blocks[s.index],s.index,0,s.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const r=super.remove(e,t);return this._forEachBlocksInRange(e,t,(i,s,a,o)=>{r.aggregate(i.remove(a,o))}),r}nearestInputPos(e,t){if(t===void 0&&(t=le.NONE),!this._blocks.length)return 0;const r=new nI(this,e);if(t===le.NONE)return r.pushRightBeforeInput()||(r.popState(),r.pushLeftBeforeInput())?r.pos:this.displayValue.length;if(t===le.LEFT||t===le.FORCE_LEFT){if(t===le.LEFT){if(r.pushRightBeforeFilled(),r.ok&&r.pos===e)return e;r.popState()}if(r.pushLeftBeforeInput(),r.pushLeftBeforeRequired(),r.pushLeftBeforeFilled(),t===le.LEFT){if(r.pushRightBeforeInput(),r.pushRightBeforeRequired(),r.ok&&r.pos<=e||(r.popState(),r.ok&&r.pos<=e))return r.pos;r.popState()}return r.ok?r.pos:t===le.FORCE_LEFT?0:(r.popState(),r.ok||(r.popState(),r.ok)?r.pos:0)}return t===le.RIGHT||t===le.FORCE_RIGHT?(r.pushRightBeforeInput(),r.pushRightBeforeRequired(),r.pushRightBeforeFilled()?r.pos:t===le.FORCE_RIGHT?this.displayValue.length:(r.popState(),r.ok||(r.popState(),r.ok)?r.pos:this.nearestInputPos(e,le.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let r=0;return this._forEachBlocksInRange(e,t,(i,s,a,o)=>{r+=i.totalInputPositions(a,o)}),r}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(r=>this._blocks[r]):[]}pad(e){const t=new be;return this._forEachBlocksInRange(0,this.displayValue.length,r=>t.aggregate(r.pad(e))),t}}Ke.DEFAULTS={...Qe.DEFAULTS,lazy:!0,placeholderChar:"_"};Ke.STOP_CHAR="`";Ke.ESCAPE_CHAR="\\";Ke.InputDefinition=Os;Ke.FixedDefinition=Af;pe.MaskedPattern=Ke;class ys extends Ke{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:r=this.from||0,maxLength:i=this.maxLength||0,autofix:s=this.autofix,...a}=e;this.to=t,this.from=r,this.maxLength=Math.max(String(t).length,i),this.autofix=s;const o=String(this.from).padStart(this.maxLength,"0"),l=String(this.to).padStart(this.maxLength,"0");let u=0;for(;u<l.length&&l[u]===o[u];)++u;a.mask=l.slice(0,u).replace(/0/g,"\\0")+"0".repeat(this.maxLength-u),super._update(a)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",r="";const[,i,s]=e.match(/^(\D*)(\d*)(\D*)/)||[];return s&&(t="0".repeat(i.length)+s,r="9".repeat(i.length)+s),t=t.padEnd(this.maxLength,"0"),r=r.padEnd(this.maxLength,"9"),[t,r]}doPrepareChar(e,t){t===void 0&&(t={});let r;return[e,r]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(r.skip=!this.isComplete),[e,r]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const r=String(this.from).padStart(this.maxLength,"0"),i=String(this.to).padStart(this.maxLength,"0"),[s,a]=this.boundaries(this.value+e);return Number(a)<this.from?super._appendCharRaw(r[this.value.length],t):Number(s)>this.to?!t.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(r[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(i[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;const[i,s]=this.boundaries(t);return this.from<=Number(s)&&Number(i)<=this.to&&super.doValidate(e)}pad(e){const t=new be;if(this.value.length===this.maxLength)return t;const r=this.value,i=this.maxLength-this.value.length;if(i){this.reset();for(let s=0;s<i;++s)t.aggregate(super._appendCharRaw("0",e));r.split("").forEach(s=>this._appendCharRaw(s))}return t}}pe.MaskedRange=ys;const iI="d{.}`m{.}`Y";class Ut extends Ke{static extractPatternOptions(e){const{mask:t,pattern:r,...i}=e;return{...i,mask:vn(t)?t:r}}constructor(e){super(Ut.extractPatternOptions({...Ut.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:r,blocks:i,...s}={...Ut.DEFAULTS,...e},a=Object.assign({},Ut.GET_DEFAULT_BLOCKS());e.min&&(a.Y.from=e.min.getFullYear()),e.max&&(a.Y.to=e.max.getFullYear()),e.min&&e.max&&a.Y.from===a.Y.to&&(a.m.from=e.min.getMonth()+1,a.m.to=e.max.getMonth()+1,a.m.from===a.m.to&&(a.d.from=e.min.getDate(),a.d.to=e.max.getDate())),Object.assign(a,this.blocks,i),super._update({...s,mask:vn(t)?t:r,blocks:a})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(Ut.extractPatternOptions(e))}}Ut.GET_DEFAULT_BLOCKS=()=>({d:{mask:ys,from:1,to:31,maxLength:2},m:{mask:ys,from:1,to:12,maxLength:2},Y:{mask:ys,from:1900,to:9999}});Ut.DEFAULTS={...Ke.DEFAULTS,mask:Date,pattern:iI,format:(n,e)=>{if(!n)return"";const t=String(n.getDate()).padStart(2,"0"),r=String(n.getMonth()+1).padStart(2,"0"),i=n.getFullYear();return[t,r,i].join(".")},parse:(n,e)=>{const[t,r,i]=n.split(".").map(Number);return new Date(i,r-1,t)}};pe.MaskedDate=Ut;class sa extends Qe{constructor(e){super({...sa.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(t=>{const{expose:r,...i}=bi(t),s=tn({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...i});return r&&(this.exposeMask=s),s}):[])}_appendCharRaw(e,t){t===void 0&&(t={});const r=this._applyDispatch(e,t);return this.currentMask&&r.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),r}_applyDispatch(e,t,r){e===void 0&&(e=""),t===void 0&&(t={}),r===void 0&&(r="");const i=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,s=this.rawInputValue,a=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:s,o=s.slice(a.length),l=this.currentMask,u=new be,d=l==null?void 0:l.state;return this.currentMask=this.doDispatch(e,{...t},r),this.currentMask&&(this.currentMask!==l?(this.currentMask.reset(),a&&(this.currentMask.append(a,{raw:!0}),u.tailShift=this.currentMask.value.length-i.length),o&&(u.tailShift+=this.currentMask.append(o,{raw:!0,tail:!0}).tailShift)):d&&(this.currentMask.state=d)),u}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new be;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,r;return{...e,_beforeTailState:((t=e._beforeTailState)==null?void 0:t.currentMaskRef)===this.currentMask&&((r=e._beforeTailState)==null?void 0:r.currentMask)||e._beforeTailState}}doDispatch(e,t,r){return t===void 0&&(t={}),r===void 0&&(r=""),this.dispatch(e,this,t,r)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[r,i]=super.doPrepare(e,t);if(this.currentMask){let s;[r,s]=super.doPrepare(r,this.currentMaskFlags(t)),i=i.aggregate(s)}return[r,i]}doPrepareChar(e,t){t===void 0&&(t={});let[r,i]=super.doPrepareChar(e,t);if(this.currentMask){let s;[r,s]=super.doPrepareChar(r,this.currentMaskFlags(t)),i=i.aggregate(s)}return[r,i]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,t){const r=new be;return this.currentMask&&r.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),r}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:r,currentMask:i,...s}=e;t&&this.compiledMasks.forEach((a,o)=>a.state=t[o]),r!=null&&(this.currentMask=r,this.currentMask.state=i),super.state=s}extractInput(e,t,r){return this.currentMask?this.currentMask.extractInput(e,t,r):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,r)=>{if(!e[r])return;const{mask:i,...s}=e[r];return _s(t,s)&&t.maskEquals(i)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}}sa.DEFAULTS={...Qe.DEFAULTS,dispatch:(n,e,t,r)=>{if(!e.compiledMasks.length)return;const i=e.rawInputValue,s=e.compiledMasks.map((a,o)=>{const l=e.currentMask===a,u=l?a.displayValue.length:a.nearestInputPos(a.displayValue.length,le.FORCE_LEFT);return a.rawInputValue!==i?(a.reset(),a.append(i,{raw:!0})):l||a.remove(u),a.append(n,e.currentMaskFlags(t)),a.appendTail(r),{index:o,weight:a.rawInputValue.length,totalInputPositions:a.totalInputPositions(0,Math.max(u,a.nearestInputPos(a.displayValue.length,le.FORCE_LEFT)))}});return s.sort((a,o)=>o.weight-a.weight||o.totalInputPositions-a.totalInputPositions),e.compiledMasks[s[0].index]}};pe.MaskedDynamic=sa;class aa extends Ke{constructor(e){super({...aa.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...r}=e;if(t){const i=t.map(o=>o.length),s=Math.min(...i),a=Math.max(...i)-s;r.mask="*".repeat(s),a&&(r.mask+="["+"*".repeat(a)+"]"),this.enum=t}super._update(r)}_appendCharRaw(e,t){t===void 0&&(t={});const r=Math.min(this.nearestInputPos(0,le.FORCE_RIGHT),this.value.length),i=this.enum.filter(s=>this.matchValue(s,this.unmaskedValue+e,r));if(i.length){i.length===1&&this._forEachBlocksInRange(0,this.value.length,(a,o)=>{const l=i[0][o];o>=this.value.length||l===a.value||(a.reset(),a._appendChar(l,t))});const s=super._appendCharRaw(i[0][this.value.length],t);return i.length===1&&i[0].slice(this.unmaskedValue.length).split("").forEach(a=>s.aggregate(super._appendCharRaw(a))),s}return new be({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new Lt("",e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new be;const r=Math.min(super.nearestInputPos(0,le.FORCE_RIGHT),this.value.length);let i;for(i=e;i>=0&&!(this.enum.filter(o=>this.matchValue(o,this.value.slice(r,i),r)).length>1);--i);const s=super.remove(i,t);return s.tailShift+=i-e,s}get isComplete(){return this.enum.indexOf(this.value)>=0}}aa.DEFAULTS={...Ke.DEFAULTS,matchValue:(n,e,t)=>n.indexOf(e,t)===t};pe.MaskedEnum=aa;class sI extends Qe{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}pe.MaskedFunction=sI;var Ef;class it extends Qe{constructor(e){super({...it.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",r=(this.scale?"("+Co(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+r),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(Co).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(Co(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});const[r,i]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!r&&(i.skip=!0),r&&!this.allowPositive&&!this.value&&r!=="-"&&i.aggregate(this._appendChar("-")),[r,i]}_separatorsCount(e,t){t===void 0&&(t=!1);let r=0;for(let i=0;i<e;++i)this._value.indexOf(this.thousandsSeparator,i)===i&&(++r,t&&(e+=this.thousandsSeparator.length));return r}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,r))}_appendCharRaw(e,t){t===void 0&&(t={});const r=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,i=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);const s=this._value;this._value+=e;const a=this.number;let o=!isNaN(a),l=!1;if(o){let f;this.min!=null&&this.min<0&&this.number<this.min&&(f=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(f=this.max),f!=null&&(this.autofix?(this._value=this.format(f,this).replace(it.UNMASKED_RADIX,this.radix),l||(l=s===this._value&&!t.tail)):o=!1),o&&(o=!!this._value.match(this._numberRegExp))}let u;o?u=new be({inserted:this._value.slice(s.length),rawInserted:l?"":e,skip:l}):(this._value=s,u=new be),this._value=this._insertThousandsSeparators(this._value);const d=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,h=this._separatorsCountFromSlice(d);return u.tailShift+=(h-i)*this.thousandsSeparator.length,u}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,r=this.value.indexOf(this.thousandsSeparator,t);if(r<=e)return r}return-1}_adjustRangeWithSeparators(e,t){const r=this._findSeparatorAround(e);r>=0&&(e=r);const i=this._findSeparatorAround(t);return i>=0&&(t=i+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const r=this.value.slice(0,e),i=this.value.slice(t),s=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+i));const a=this._separatorsCountFromSlice(r);return new be({tailShift:(a-s)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case le.NONE:case le.LEFT:case le.FORCE_LEFT:{const r=this._findSeparatorAround(e-1);if(r>=0){const i=r+this.thousandsSeparator.length;if(e<i||this.value.length<=i||t===le.FORCE_LEFT)return r}break}case le.RIGHT:case le.FORCE_RIGHT:{const r=this._findSeparatorAround(e);if(r>=0)return r+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let r=this.value;this.normalizeZeros&&(r=this._normalizeZeros(r)),this.padFractionalZeros&&this.scale>0&&(r=this._padFractionalZeros(r)),this._value=r}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(r,i,s,a)=>i+a),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,r){t===void 0&&(t={});const i=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===it.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,r)&&!i}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,it.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(it.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||it.EMPTY_VALUES.includes(e)&&it.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}Ef=it;it.UNMASKED_RADIX=".";it.EMPTY_VALUES=[...Qe.EMPTY_VALUES,0];it.DEFAULTS={...Qe.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[Ef.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:n=>n.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};pe.MaskedNumber=it;const pl={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function xf(n,e,t){e===void 0&&(e=pl.MASKED),t===void 0&&(t=pl.MASKED);const r=tn(n);return i=>r.runIsolated(s=>(s[e]=i,s[t]))}function aI(n,e,t,r){return xf(e,t,r)(n)}pe.PIPE_TYPE=pl;pe.createPipe=xf;pe.pipe=aI;class oI extends Ke{get repeatFrom(){var e;return(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?e:0}get repeatTo(){var e;return(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,r,i;const{repeat:s,...a}=bi(e);this._blockOpts=Object.assign({},this._blockOpts,a);const o=tn(this._blockOpts);this.repeat=(t=(r=s??o.repeat)!=null?r:this.repeat)!=null?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((i=this._blocks)==null?void 0:i.length)||0,this.repeatFrom)),blocks:{m:o},eager:o.eager,overwrite:o.overwrite,skipInvalid:o.skipInvalid,lazy:o.lazy,placeholderChar:o.placeholderChar,displayChar:o.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(tn(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const r=new be;for(let l=(i=(s=this._mapPosToBlock(this.displayValue.length))==null?void 0:s.index)!=null?i:Math.max(this._blocks.length-1,0),u,d;u=(a=this._blocks[l])!=null?a:d=!d&&this._allocateBlock(l);++l){var i,s,a,o;const h=u._appendChar(e,{...t,_beforeTailState:(o=t._beforeTailState)==null||(o=o._blocks)==null?void 0:o[l]});if(h.skip&&d){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(r.aggregate(h),h.consumed)break}return r}_trimEmptyTail(e,t){var r,i;e===void 0&&(e=0);const s=Math.max(((r=this._mapPosToBlock(e))==null?void 0:r.index)||0,this.repeatFrom,0);let a;t!=null&&(a=(i=this._mapPosToBlock(t))==null?void 0:i.index),a==null&&(a=this._blocks.length-1);let o=0;for(let l=a;s<=l&&!this._blocks[l].unmaskedValue;--l,++o);o&&(this._blocks.splice(a-o+1,o),this.mask=this.mask.slice(o))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const r=super.remove(e,t);return this._trimEmptyTail(e,t),r}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}}pe.RepeatBlock=oI;try{globalThis.IMask=pe}catch{}var ss={exports:{}},as={exports:{}},we={};/** @license React v16.13.1
149
+ * react-is.production.min.js
150
+ *
151
+ * Copyright (c) Facebook, Inc. and its affiliates.
152
+ *
153
+ * This source code is licensed under the MIT license found in the
154
+ * LICENSE file in the root directory of this source tree.
155
+ */var Fc;function lI(){if(Fc)return we;Fc=1;var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,a=n?Symbol.for("react.provider"):60109,o=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,p=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function E(C){if(typeof C=="object"&&C!==null){var R=C.$$typeof;switch(R){case e:switch(C=C.type,C){case l:case u:case r:case s:case i:case h:return C;default:switch(C=C&&C.$$typeof,C){case o:case d:case m:case p:case a:return C;default:return R}}case t:return R}}}function x(C){return E(C)===u}return we.AsyncMode=l,we.ConcurrentMode=u,we.ContextConsumer=o,we.ContextProvider=a,we.Element=e,we.ForwardRef=d,we.Fragment=r,we.Lazy=m,we.Memo=p,we.Portal=t,we.Profiler=s,we.StrictMode=i,we.Suspense=h,we.isAsyncMode=function(C){return x(C)||E(C)===l},we.isConcurrentMode=x,we.isContextConsumer=function(C){return E(C)===o},we.isContextProvider=function(C){return E(C)===a},we.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},we.isForwardRef=function(C){return E(C)===d},we.isFragment=function(C){return E(C)===r},we.isLazy=function(C){return E(C)===m},we.isMemo=function(C){return E(C)===p},we.isPortal=function(C){return E(C)===t},we.isProfiler=function(C){return E(C)===s},we.isStrictMode=function(C){return E(C)===i},we.isSuspense=function(C){return E(C)===h},we.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===u||C===s||C===i||C===h||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===p||C.$$typeof===a||C.$$typeof===o||C.$$typeof===d||C.$$typeof===y||C.$$typeof===v||C.$$typeof===S||C.$$typeof===b)},we.typeOf=E,we}var Te={};/** @license React v16.13.1
156
+ * react-is.development.js
157
+ *
158
+ * Copyright (c) Facebook, Inc. and its affiliates.
159
+ *
160
+ * This source code is licensed under the MIT license found in the
161
+ * LICENSE file in the root directory of this source tree.
162
+ */var Lc;function uI(){return Lc||(Lc=1,process.env.NODE_ENV!=="production"&&(function(){var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,a=n?Symbol.for("react.provider"):60109,o=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,p=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function E(N){return typeof N=="string"||typeof N=="function"||N===r||N===u||N===s||N===i||N===h||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===m||N.$$typeof===p||N.$$typeof===a||N.$$typeof===o||N.$$typeof===d||N.$$typeof===y||N.$$typeof===v||N.$$typeof===S||N.$$typeof===b)}function x(N){if(typeof N=="object"&&N!==null){var fe=N.$$typeof;switch(fe){case e:var ve=N.type;switch(ve){case l:case u:case r:case s:case i:case h:return ve;default:var Ie=ve&&ve.$$typeof;switch(Ie){case o:case d:case m:case p:case a:return Ie;default:return fe}}case t:return fe}}}var C=l,R=u,k=o,F=a,te=e,he=d,I=r,O=m,w=p,j=t,P=s,_=i,G=h,Z=!1;function z(N){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),T(N)||x(N)===l}function T(N){return x(N)===u}function M(N){return x(N)===o}function D(N){return x(N)===a}function W(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function X(N){return x(N)===d}function H(N){return x(N)===r}function $(N){return x(N)===m}function Y(N){return x(N)===p}function q(N){return x(N)===t}function U(N){return x(N)===s}function J(N){return x(N)===i}function ae(N){return x(N)===h}Te.AsyncMode=C,Te.ConcurrentMode=R,Te.ContextConsumer=k,Te.ContextProvider=F,Te.Element=te,Te.ForwardRef=he,Te.Fragment=I,Te.Lazy=O,Te.Memo=w,Te.Portal=j,Te.Profiler=P,Te.StrictMode=_,Te.Suspense=G,Te.isAsyncMode=z,Te.isConcurrentMode=T,Te.isContextConsumer=M,Te.isContextProvider=D,Te.isElement=W,Te.isForwardRef=X,Te.isFragment=H,Te.isLazy=$,Te.isMemo=Y,Te.isPortal=q,Te.isProfiler=U,Te.isStrictMode=J,Te.isSuspense=ae,Te.isValidElementType=E,Te.typeOf=x})()),Te}var Mc;function Sf(){return Mc||(Mc=1,process.env.NODE_ENV==="production"?as.exports=lI():as.exports=uI()),as.exports}/*
163
+ object-assign
164
+ (c) Sindre Sorhus
165
+ @license MIT
166
+ */var Io,Pc;function cI(){if(Pc)return Io;Pc=1;var n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Io=i()?Object.assign:function(s,a){for(var o,l=r(s),u,d=1;d<arguments.length;d++){o=Object(arguments[d]);for(var h in o)e.call(o,h)&&(l[h]=o[h]);if(n){u=n(o);for(var f=0;f<u.length;f++)t.call(o,u[f])&&(l[u[f]]=o[u[f]])}}return l},Io}var Ao,Dc;function Ql(){if(Dc)return Ao;Dc=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ao=n,Ao}var Eo,Vc;function wf(){return Vc||(Vc=1,Eo=Function.call.bind(Object.prototype.hasOwnProperty)),Eo}var xo,Gc;function dI(){if(Gc)return xo;Gc=1;var n=function(){};if(process.env.NODE_ENV!=="production"){var e=Ql(),t={},r=wf();n=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,o,l,u){if(process.env.NODE_ENV!=="production"){for(var d in s)if(r(s,d)){var h;try{if(typeof s[d]!="function"){var f=Error((l||"React class")+": "+o+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}h=s[d](a,d,l,o,null,e)}catch(m){h=m}if(h&&!(h instanceof Error)&&n((l||"React class")+": type specification of "+o+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in t)){t[h.message]=!0;var p=u?u():"";n("Failed "+o+" type: "+h.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},xo=i,xo}var So,jc;function hI(){if(jc)return So;jc=1;var n=Sf(),e=cI(),t=Ql(),r=wf(),i=dI(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return So=function(o,l){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(T){var M=T&&(u&&T[u]||T[d]);if(typeof M=="function")return M}var f="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:S(),arrayOf:E,element:x(),elementType:C(),instanceOf:R,node:he(),objectOf:F,oneOf:k,oneOfType:te,shape:O,exact:w};function m(T,M){return T===M?T!==0||1/T===1/M:T!==T&&M!==M}function b(T,M){this.message=T,this.data=M&&typeof M=="object"?M:{},this.stack=""}b.prototype=Error.prototype;function y(T){if(process.env.NODE_ENV!=="production")var M={},D=0;function W(H,$,Y,q,U,J,ae){if(q=q||f,J=J||Y,ae!==t){if(l){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=q+":"+Y;!M[fe]&&D<3&&(s("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),M[fe]=!0,D++)}}return $[Y]==null?H?$[Y]===null?new b("The "+U+" `"+J+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new b("The "+U+" `"+J+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:T($,Y,q,U,J)}var X=W.bind(null,!1);return X.isRequired=W.bind(null,!0),X}function v(T){function M(D,W,X,H,$,Y){var q=D[W],U=_(q);if(U!==T){var J=G(q);return new b("Invalid "+H+" `"+$+"` of type "+("`"+J+"` supplied to `"+X+"`, expected ")+("`"+T+"`."),{expectedType:T})}return null}return y(M)}function S(){return y(a)}function E(T){function M(D,W,X,H,$){if(typeof T!="function")return new b("Property `"+$+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var Y=D[W];if(!Array.isArray(Y)){var q=_(Y);return new b("Invalid "+H+" `"+$+"` of type "+("`"+q+"` supplied to `"+X+"`, expected an array."))}for(var U=0;U<Y.length;U++){var J=T(Y,U,X,H,$+"["+U+"]",t);if(J instanceof Error)return J}return null}return y(M)}function x(){function T(M,D,W,X,H){var $=M[D];if(!o($)){var Y=_($);return new b("Invalid "+X+" `"+H+"` of type "+("`"+Y+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return y(T)}function C(){function T(M,D,W,X,H){var $=M[D];if(!n.isValidElementType($)){var Y=_($);return new b("Invalid "+X+" `"+H+"` of type "+("`"+Y+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return y(T)}function R(T){function M(D,W,X,H,$){if(!(D[W]instanceof T)){var Y=T.name||f,q=z(D[W]);return new b("Invalid "+H+" `"+$+"` of type "+("`"+q+"` supplied to `"+X+"`, expected ")+("instance of `"+Y+"`."))}return null}return y(M)}function k(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function M(D,W,X,H,$){for(var Y=D[W],q=0;q<T.length;q++)if(m(Y,T[q]))return null;var U=JSON.stringify(T,function(ae,N){var fe=G(N);return fe==="symbol"?String(N):N});return new b("Invalid "+H+" `"+$+"` of value `"+String(Y)+"` "+("supplied to `"+X+"`, expected one of "+U+"."))}return y(M)}function F(T){function M(D,W,X,H,$){if(typeof T!="function")return new b("Property `"+$+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var Y=D[W],q=_(Y);if(q!=="object")return new b("Invalid "+H+" `"+$+"` of type "+("`"+q+"` supplied to `"+X+"`, expected an object."));for(var U in Y)if(r(Y,U)){var J=T(Y,U,X,H,$+"."+U,t);if(J instanceof Error)return J}return null}return y(M)}function te(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var M=0;M<T.length;M++){var D=T[M];if(typeof D!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(D)+" at index "+M+"."),a}function W(X,H,$,Y,q){for(var U=[],J=0;J<T.length;J++){var ae=T[J],N=ae(X,H,$,Y,q,t);if(N==null)return null;N.data&&r(N.data,"expectedType")&&U.push(N.data.expectedType)}var fe=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new b("Invalid "+Y+" `"+q+"` supplied to "+("`"+$+"`"+fe+"."))}return y(W)}function he(){function T(M,D,W,X,H){return j(M[D])?null:new b("Invalid "+X+" `"+H+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return y(T)}function I(T,M,D,W,X){return new b((T||"React class")+": "+M+" type `"+D+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function O(T){function M(D,W,X,H,$){var Y=D[W],q=_(Y);if(q!=="object")return new b("Invalid "+H+" `"+$+"` of type `"+q+"` "+("supplied to `"+X+"`, expected `object`."));for(var U in T){var J=T[U];if(typeof J!="function")return I(X,H,$,U,G(J));var ae=J(Y,U,X,H,$+"."+U,t);if(ae)return ae}return null}return y(M)}function w(T){function M(D,W,X,H,$){var Y=D[W],q=_(Y);if(q!=="object")return new b("Invalid "+H+" `"+$+"` of type `"+q+"` "+("supplied to `"+X+"`, expected `object`."));var U=e({},D[W],T);for(var J in U){var ae=T[J];if(r(T,J)&&typeof ae!="function")return I(X,H,$,J,G(ae));if(!ae)return new b("Invalid "+H+" `"+$+"` key `"+J+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(D[W],null," ")+`
167
+ Valid keys: `+JSON.stringify(Object.keys(T),null," "));var N=ae(Y,J,X,H,$+"."+J,t);if(N)return N}return null}return y(M)}function j(T){switch(typeof T){case"number":case"string":case"undefined":return!0;case"boolean":return!T;case"object":if(Array.isArray(T))return T.every(j);if(T===null||o(T))return!0;var M=h(T);if(M){var D=M.call(T),W;if(M!==T.entries){for(;!(W=D.next()).done;)if(!j(W.value))return!1}else for(;!(W=D.next()).done;){var X=W.value;if(X&&!j(X[1]))return!1}}else return!1;return!0;default:return!1}}function P(T,M){return T==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function _(T){var M=typeof T;return Array.isArray(T)?"array":T instanceof RegExp?"object":P(M,T)?"symbol":M}function G(T){if(typeof T>"u"||T===null)return""+T;var M=_(T);if(M==="object"){if(T instanceof Date)return"date";if(T instanceof RegExp)return"regexp"}return M}function Z(T){var M=G(T);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function z(T){return!T.constructor||!T.constructor.name?f:T.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},So}var wo,Hc;function fI(){if(Hc)return wo;Hc=1;var n=Ql();function e(){}function t(){}return t.resetWarningCache=e,wo=function(){function r(a,o,l,u,d,h){if(h!==n){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:t,resetWarningCache:e};return s.PropTypes=s,s},wo}var Xc;function pI(){if(Xc)return ss.exports;if(Xc=1,process.env.NODE_ENV!=="production"){var n=Sf(),e=!0;ss.exports=hI()(n.isElement,e)}else ss.exports=fI()();return ss.exports}var gI=pI();const se=It.getDefaultExportFromCjs(gI),Tf={mask:se.oneOfType([se.array,se.func,se.string,se.instanceOf(RegExp),se.oneOf([Date,Number,pe.Masked]),se.instanceOf(pe.Masked)]),value:se.any,unmask:se.oneOfType([se.bool,se.oneOf(["typed"])]),prepare:se.func,prepareChar:se.func,validate:se.func,commit:se.func,overwrite:se.oneOfType([se.bool,se.oneOf(["shift"])]),eager:se.oneOfType([se.bool,se.oneOf(["append","remove"])]),skipInvalid:se.bool,onAccept:se.func,onComplete:se.func,placeholderChar:se.string,displayChar:se.string,lazy:se.bool,definitions:se.object,blocks:se.object,enum:se.arrayOf(se.string),maxLength:se.number,from:se.number,to:se.number,pattern:se.string,format:se.func,parse:se.func,autofix:se.oneOfType([se.bool,se.oneOf(["pad"])]),radix:se.string,thousandsSeparator:se.string,mapToRadix:se.arrayOf(se.string),scale:se.number,normalizeZeros:se.bool,padFractionalZeros:se.bool,min:se.oneOfType([se.number,se.instanceOf(Date)]),max:se.oneOfType([se.number,se.instanceOf(Date)]),dispatch:se.func,inputRef:se.oneOfType([se.func,se.shape({current:se.object})])},Nf=Object.keys(Tf).filter(n=>n!=="value"),mI=["value","unmask","onAccept","onComplete","inputRef"],bI=Nf.filter(n=>mI.indexOf(n)<0);function vI(n){var e;const t=(e=class extends L.default.Component{constructor(s){super(s),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const s=this.props,a=this._extractMaskOptionsFromProps(s);if(a.mask)this.maskRef?(this.maskRef.updateOptions(a),"value"in s&&s.value!==void 0&&(this.maskValue=s.value)):this.initMask(a);else if(this.destroyMask(),"value"in s&&s.value!==void 0){var o;(o=this.element)!=null&&o.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=s.value:this.element.value=s.value}}componentWillUnmount(){this.destroyMask()}_inputRef(s){this.element=s,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=s:this.props.inputRef(s))}initMask(s){s===void 0&&(s=this._extractMaskOptionsFromProps(this.props)),this.maskRef=pe(this.element,s).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(s){const{...a}=s;return Object.keys(a).filter(o=>bI.indexOf(o)<0).forEach(o=>{delete a[o]}),a}_extractNonMaskProps(s){const{...a}=s;return Nf.forEach(o=>{o!=="maxLength"&&delete a[o]}),"defaultValue"in a||(a.defaultValue=s.mask?"":a.value),delete a.value,a}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(s){this.maskRef&&(s=s==null&&this.props.unmask!=="typed"?"":s,this.props.unmask==="typed"?this.maskRef.typedValue=s:this.props.unmask?this.maskRef.unmaskedValue=s:this.maskRef.value=s)}_onAccept(s){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,s)}_onComplete(s){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,s)}render(){return L.default.createElement(n,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},e.displayName=void 0,e.propTypes=void 0,e),r=n.displayName||n.name||"Component";return t.displayName="IMask("+r+")",t.propTypes=Tf,L.default.forwardRef((i,s)=>L.default.createElement(t,{...i,ref:s}))}const yI=vI(n=>{let{inputRef:e,...t}=n;return L.default.createElement("input",{...t,ref:e})}),CI=(n,e)=>L.default.createElement(yI,{...n,ref:e}),II=L.default.forwardRef(CI),kf=ee.forwardRef(({className:n,type:e,variant:t,...r},i)=>K.jsx(II,{className:Be.cn(na({variant:t}),n),ref:i,...r}));kf.displayName="MaskInput";var Kl="Radio",[AI,Rf]=Le.createContextScope(Kl),[EI,xI]=AI(Kl),_f=L.forwardRef((n,e)=>{const{__scopeRadio:t,name:r,checked:i=!1,required:s,disabled:a,value:o="on",onCheck:l,form:u,...d}=n,[h,f]=L.useState(null),p=Vn.useComposedRefs(e,y=>f(y)),m=L.useRef(!1),b=h?u||!!h.closest("form"):!0;return K.jsxs(EI,{scope:t,checked:i,disabled:a,children:[K.jsx(Le.Primitive.button,{type:"button",role:"radio","aria-checked":i,"data-state":Lf(i),"data-disabled":a?"":void 0,disabled:a,value:o,...d,ref:p,onClick:Le.composeEventHandlers(n.onClick,y=>{i||l==null||l(),b&&(m.current=y.isPropagationStopped(),m.current||y.stopPropagation())})}),b&&K.jsx(Ff,{control:h,bubbles:!m.current,name:r,value:o,checked:i,required:s,disabled:a,form:u,style:{transform:"translateX(-100%)"}})]})});_f.displayName=Kl;var Of="RadioIndicator",Bf=L.forwardRef((n,e)=>{const{__scopeRadio:t,forceMount:r,...i}=n,s=xI(Of,t);return K.jsx(Le.Presence,{present:r||s.checked,children:K.jsx(Le.Primitive.span,{"data-state":Lf(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:e})})});Bf.displayName=Of;var SI="RadioBubbleInput",Ff=L.forwardRef(({__scopeRadio:n,control:e,checked:t,bubbles:r=!0,...i},s)=>{const a=L.useRef(null),o=Vn.useComposedRefs(a,s),l=ce.usePrevious(t),u=Vs.useSize(e);return L.useEffect(()=>{const d=a.current;if(!d)return;const h=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(h,"checked").set;if(l!==t&&p){const m=new Event("click",{bubbles:r});p.call(d,t),d.dispatchEvent(m)}},[l,t,r]),K.jsx(Le.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...i,tabIndex:-1,ref:o,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Ff.displayName=SI;function Lf(n){return n?"checked":"unchecked"}var wI=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],oa="RadioGroup",[TI]=Le.createContextScope(oa,[Gs.createRovingFocusGroupScope,Rf]),Mf=Gs.createRovingFocusGroupScope(),Pf=Rf(),[NI,kI]=TI(oa),Df=L.forwardRef((n,e)=>{const{__scopeRadioGroup:t,name:r,defaultValue:i,value:s,required:a=!1,disabled:o=!1,orientation:l,dir:u,loop:d=!0,onValueChange:h,...f}=n,p=Mf(t),m=jp.useDirection(u),[b,y]=Il.useControllableState({prop:s,defaultProp:i??null,onChange:h,caller:oa});return K.jsx(NI,{scope:t,name:r,required:a,disabled:o,value:b,onValueChange:y,children:K.jsx(Gs.Root,{asChild:!0,...p,orientation:l,dir:m,loop:d,children:K.jsx(Le.Primitive.div,{role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":o?"":void 0,dir:m,...f,ref:e})})})});Df.displayName=oa;var Vf="RadioGroupItem",Gf=L.forwardRef((n,e)=>{const{__scopeRadioGroup:t,disabled:r,...i}=n,s=kI(Vf,t),a=s.disabled||r,o=Mf(t),l=Pf(t),u=L.useRef(null),d=Vn.useComposedRefs(e,u),h=s.value===i.value,f=L.useRef(!1);return L.useEffect(()=>{const p=b=>{wI.includes(b.key)&&(f.current=!0)},m=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",m)}},[]),K.jsx(Gs.Item,{asChild:!0,...o,focusable:!a,active:h,children:K.jsx(_f,{disabled:a,required:s.required,checked:h,...l,...i,name:s.name,ref:d,onCheck:()=>s.onValueChange(i.value),onKeyDown:Le.composeEventHandlers(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:Le.composeEventHandlers(i.onFocus,()=>{var p;f.current&&((p=u.current)==null||p.click())})})})});Gf.displayName=Vf;var RI="RadioGroupIndicator",jf=L.forwardRef((n,e)=>{const{__scopeRadioGroup:t,...r}=n,i=Pf(t);return K.jsx(Bf,{...i,...r,ref:e})});jf.displayName=RI;var Hf=Df,Xf=Gf,_I=jf;function Wf({className:n,...e}){return K.jsx(Hf,{"data-slot":"radio-group",className:Be.cn("grid gap-3",n),...e})}Wf.displayName=Hf.displayName;function qf({className:n,...e}){return K.jsx(Xf,{"data-slot":"radio-group-item",className:Be.cn("border-border-alpha-strong text-item-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:border-item-primary aspect-square size-4 rounded-3xl border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),...e,children:K.jsx(_I,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:K.jsx(Hp.Circle,{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-current"})})})}qf.displayName=Xf.displayName;function Dn(n){"@babel/helpers - typeof";return Dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(n)}function OI(n,e){if(Dn(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Dn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Zf(n){var e=OI(n,"string");return Dn(e)=="symbol"?e:e+""}function ti(n,e,t){return(e=Zf(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Wc(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function de(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Wc(Object(t),!0).forEach(function(r){ti(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Wc(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function BI(n){if(Array.isArray(n))return n}function FI(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=s.call(t)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,i=d}finally{try{if(!l&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function gl(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function zf(n,e){if(n){if(typeof n=="string")return gl(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?gl(n,e):void 0}}function LI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
168
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jt(n,e){return BI(n)||FI(n,e)||zf(n,e)||LI()}function MI(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)!==-1)continue;t[r]=n[r]}return t}function Ht(n,e){if(n==null)return{};var t,r,i=MI(n,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(r=0;r<s.length;r++)t=s[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(n,t)&&(i[t]=n[t])}return i}var PI=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function $f(n){var e=n.defaultInputValue,t=e===void 0?"":e,r=n.defaultMenuIsOpen,i=r===void 0?!1:r,s=n.defaultValue,a=s===void 0?null:s,o=n.inputValue,l=n.menuIsOpen,u=n.onChange,d=n.onInputChange,h=n.onMenuClose,f=n.onMenuOpen,p=n.value,m=Ht(n,PI),b=ee.useState(o!==void 0?o:t),y=Jt(b,2),v=y[0],S=y[1],E=ee.useState(l!==void 0?l:i),x=Jt(E,2),C=x[0],R=x[1],k=ee.useState(p!==void 0?p:a),F=Jt(k,2),te=F[0],he=F[1],I=ee.useCallback(function(Z,z){typeof u=="function"&&u(Z,z),he(Z)},[u]),O=ee.useCallback(function(Z,z){var T;typeof d=="function"&&(T=d(Z,z)),S(T!==void 0?T:Z)},[d]),w=ee.useCallback(function(){typeof f=="function"&&f(),R(!0)},[f]),j=ee.useCallback(function(){typeof h=="function"&&h(),R(!1)},[h]),P=o!==void 0?o:v,_=l!==void 0?l:C,G=p!==void 0?p:te;return de(de({},m),{},{inputValue:P,menuIsOpen:_,onChange:I,onInputChange:O,onMenuClose:j,onMenuOpen:w,value:G})}function DI(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function qc(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,Zf(r.key),r)}}function VI(n,e,t){return e&&qc(n.prototype,e),t&&qc(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function GI(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&ce._setPrototypeOf(n,e)}function Bs(n){return Bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bs(n)}function Yf(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yf=function(){return!!n})()}function jI(n,e){if(e&&(Dn(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ce._assertThisInitialized(n)}function HI(n){var e=Yf();return function(){var t,r=Bs(n);if(e){var i=Bs(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return jI(this,t)}}function XI(n){if(Array.isArray(n))return gl(n)}function WI(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function qI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
169
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pr(n){return XI(n)||WI(n)||zf(n)||qI()}function ZI(n){if(n.sheet)return n.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===n)return document.styleSheets[e]}function zI(n){var e=document.createElement("style");return e.setAttribute("data-emotion",n.key),n.nonce!==void 0&&e.setAttribute("nonce",n.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var $I=(function(){function n(t){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=n.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(zI(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=ZI(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},n})(),Ye="-ms-",Fs="-moz-",Ee="-webkit-",Uf="comm",eu="rule",tu="decl",YI="@import",Jf="@keyframes",UI="@layer",JI=Math.abs,la=String.fromCharCode,QI=Object.assign;function KI(n,e){return We(n,0)^45?(((e<<2^We(n,0))<<2^We(n,1))<<2^We(n,2))<<2^We(n,3):0}function Qf(n){return n.trim()}function eA(n,e){return(n=e.exec(n))?n[0]:n}function xe(n,e,t){return n.replace(e,t)}function ml(n,e){return n.indexOf(e)}function We(n,e){return n.charCodeAt(e)|0}function vi(n,e,t){return n.slice(e,t)}function Bt(n){return n.length}function nu(n){return n.length}function os(n,e){return e.push(n),n}function tA(n,e){return n.map(e).join("")}var ua=1,Sr=1,Kf=0,rt=0,De=0,kr="";function ca(n,e,t,r,i,s,a){return{value:n,root:e,parent:t,type:r,props:i,children:s,line:ua,column:Sr,length:a,return:""}}function $r(n,e){return QI(ca("",null,null,"",null,null,0),n,{length:-n.length},e)}function nA(){return De}function rA(){return De=rt>0?We(kr,--rt):0,Sr--,De===10&&(Sr=1,ua--),De}function st(){return De=rt<Kf?We(kr,rt++):0,Sr++,De===10&&(Sr=1,ua++),De}function Dt(){return We(kr,rt)}function Cs(){return rt}function Ti(n,e){return vi(kr,n,e)}function yi(n){switch(n){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 ep(n){return ua=Sr=1,Kf=Bt(kr=n),rt=0,[]}function tp(n){return kr="",n}function Is(n){return Qf(Ti(rt-1,bl(n===91?n+2:n===40?n+1:n)))}function iA(n){for(;(De=Dt())&&De<33;)st();return yi(n)>2||yi(De)>3?"":" "}function sA(n,e){for(;--e&&st()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return Ti(n,Cs()+(e<6&&Dt()==32&&st()==32))}function bl(n){for(;st();)switch(De){case n:return rt;case 34:case 39:n!==34&&n!==39&&bl(De);break;case 40:n===41&&bl(n);break;case 92:st();break}return rt}function aA(n,e){for(;st()&&n+De!==57;)if(n+De===84&&Dt()===47)break;return"/*"+Ti(e,rt-1)+"*"+la(n===47?n:st())}function oA(n){for(;!yi(Dt());)st();return Ti(n,rt)}function lA(n){return tp(As("",null,null,null,[""],n=ep(n),0,[0],n))}function As(n,e,t,r,i,s,a,o,l){for(var u=0,d=0,h=a,f=0,p=0,m=0,b=1,y=1,v=1,S=0,E="",x=i,C=s,R=r,k=E;y;)switch(m=S,S=st()){case 40:if(m!=108&&We(k,h-1)==58){ml(k+=xe(Is(S),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=Is(S);break;case 9:case 10:case 13:case 32:k+=iA(m);break;case 92:k+=sA(Cs()-1,7);continue;case 47:switch(Dt()){case 42:case 47:os(uA(aA(st(),Cs()),e,t),l);break;default:k+="/"}break;case 123*b:o[u++]=Bt(k)*v;case 125*b:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+d:v==-1&&(k=xe(k,/\f/g,"")),p>0&&Bt(k)-h&&os(p>32?zc(k+";",r,t,h-1):zc(xe(k," ","")+";",r,t,h-2),l);break;case 59:k+=";";default:if(os(R=Zc(k,e,t,u,d,i,o,E,x=[],C=[],h),s),S===123)if(d===0)As(k,e,R,R,x,s,h,o,C);else switch(f===99&&We(k,3)===110?100:f){case 100:case 108:case 109:case 115:As(n,R,R,r&&os(Zc(n,R,R,0,0,i,o,E,i,x=[],h),C),i,C,h,o,r?x:C);break;default:As(k,R,R,R,[""],C,0,o,C)}}u=d=p=0,b=v=1,E=k="",h=a;break;case 58:h=1+Bt(k),p=m;default:if(b<1){if(S==123)--b;else if(S==125&&b++==0&&rA()==125)continue}switch(k+=la(S),S*b){case 38:v=d>0?1:(k+="\f",-1);break;case 44:o[u++]=(Bt(k)-1)*v,v=1;break;case 64:Dt()===45&&(k+=Is(st())),f=Dt(),d=h=Bt(E=k+=oA(Cs())),S++;break;case 45:m===45&&Bt(k)==2&&(b=0)}}return s}function Zc(n,e,t,r,i,s,a,o,l,u,d){for(var h=i-1,f=i===0?s:[""],p=nu(f),m=0,b=0,y=0;m<r;++m)for(var v=0,S=vi(n,h+1,h=JI(b=a[m])),E=n;v<p;++v)(E=Qf(b>0?f[v]+" "+S:xe(S,/&\f/g,f[v])))&&(l[y++]=E);return ca(n,e,t,i===0?eu:o,l,u,d)}function uA(n,e,t){return ca(n,e,t,Uf,la(nA()),vi(n,2,-2),0)}function zc(n,e,t,r){return ca(n,e,t,tu,vi(n,0,r),vi(n,r+1,-1),r)}function gr(n,e){for(var t="",r=nu(n),i=0;i<r;i++)t+=e(n[i],i,n,e)||"";return t}function cA(n,e,t,r){switch(n.type){case UI:if(n.children.length)break;case YI:case tu:return n.return=n.return||n.value;case Uf:return"";case Jf:return n.return=n.value+"{"+gr(n.children,r)+"}";case eu:n.value=n.props.join(",")}return Bt(t=gr(n.children,r))?n.return=n.value+"{"+t+"}":""}function dA(n){var e=nu(n);return function(t,r,i,s){for(var a="",o=0;o<e;o++)a+=n[o](t,r,i,s)||"";return a}}function hA(n){return function(e){e.root||(e=e.return)&&n(e)}}var fA=function(e,t,r){for(var i=0,s=0;i=s,s=Dt(),i===38&&s===12&&(t[r]=1),!yi(s);)st();return Ti(e,rt)},pA=function(e,t){var r=-1,i=44;do switch(yi(i)){case 0:i===38&&Dt()===12&&(t[r]=1),e[r]+=fA(rt-1,t,r);break;case 2:e[r]+=Is(i);break;case 4:if(i===44){e[++r]=Dt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=la(i)}while(i=st());return e},gA=function(e,t){return tp(pA(ep(e),t))},$c=new WeakMap,mA=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!$c.get(r))&&!i){$c.set(e,!0);for(var s=[],a=gA(t,s),o=r.props,l=0,u=0;l<a.length;l++)for(var d=0;d<o.length;d++,u++)e.props[u]=s[l]?a[l].replace(/&\f/g,o[d]):o[d]+" "+a[l]}}},bA=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function np(n,e){switch(KI(n,e)){case 5103:return Ee+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ee+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ee+n+Fs+n+Ye+n+n;case 6828:case 4268:return Ee+n+Ye+n+n;case 6165:return Ee+n+Ye+"flex-"+n+n;case 5187:return Ee+n+xe(n,/(\w+).+(:[^]+)/,Ee+"box-$1$2"+Ye+"flex-$1$2")+n;case 5443:return Ee+n+Ye+"flex-item-"+xe(n,/flex-|-self/,"")+n;case 4675:return Ee+n+Ye+"flex-line-pack"+xe(n,/align-content|flex-|-self/,"")+n;case 5548:return Ee+n+Ye+xe(n,"shrink","negative")+n;case 5292:return Ee+n+Ye+xe(n,"basis","preferred-size")+n;case 6060:return Ee+"box-"+xe(n,"-grow","")+Ee+n+Ye+xe(n,"grow","positive")+n;case 4554:return Ee+xe(n,/([^-])(transform)/g,"$1"+Ee+"$2")+n;case 6187:return xe(xe(xe(n,/(zoom-|grab)/,Ee+"$1"),/(image-set)/,Ee+"$1"),n,"")+n;case 5495:case 3959:return xe(n,/(image-set\([^]*)/,Ee+"$1$`$1");case 4968:return xe(xe(n,/(.+:)(flex-)?(.*)/,Ee+"box-pack:$3"+Ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ee+n+n;case 4095:case 3583:case 4068:case 2532:return xe(n,/(.+)-inline(.+)/,Ee+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Bt(n)-1-e>6)switch(We(n,e+1)){case 109:if(We(n,e+4)!==45)break;case 102:return xe(n,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+Fs+(We(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~ml(n,"stretch")?np(xe(n,"stretch","fill-available"),e)+n:n}break;case 4949:if(We(n,e+1)!==115)break;case 6444:switch(We(n,Bt(n)-3-(~ml(n,"!important")&&10))){case 107:return xe(n,":",":"+Ee)+n;case 101:return xe(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(We(n,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+Ye+"$2box$3")+n}break;case 5936:switch(We(n,e+11)){case 114:return Ee+n+Ye+xe(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ee+n+Ye+xe(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ee+n+Ye+xe(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Ee+n+Ye+n+n}return n}var vA=function(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case tu:e.return=np(e.value,e.length);break;case Jf:return gr([$r(e,{value:xe(e.value,"@","@"+Ee)})],i);case eu:if(e.length)return tA(e.props,function(s){switch(eA(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return gr([$r(e,{props:[xe(s,/:(read-\w+)/,":"+Fs+"$1")]})],i);case"::placeholder":return gr([$r(e,{props:[xe(s,/:(plac\w+)/,":"+Ee+"input-$1")]}),$r(e,{props:[xe(s,/:(plac\w+)/,":"+Fs+"$1")]}),$r(e,{props:[xe(s,/:(plac\w+)/,Ye+"input-$1")]})],i)}return""})}},yA=[vA],CA=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(b){var y=b.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var i=e.stylisPlugins||yA,s={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(b){for(var y=b.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)s[y[v]]=!0;o.push(b)});var l,u=[mA,bA];{var d,h=[cA,hA(function(b){d.insert(b)})],f=dA(u.concat(i,h)),p=function(y){return gr(lA(y),f)};l=function(y,v,S,E){d=S,p(y?y+"{"+v.styles+"}":v.styles),E&&(m.inserted[v.name]=!0)}}var m={key:t,sheet:new $I({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return m.sheet.hydrate(o),m},ls={exports:{}},Ne={};/** @license React v16.13.1
170
+ * react-is.production.min.js
171
+ *
172
+ * Copyright (c) Facebook, Inc. and its affiliates.
173
+ *
174
+ * This source code is licensed under the MIT license found in the
175
+ * LICENSE file in the root directory of this source tree.
176
+ */var Yc;function IA(){if(Yc)return Ne;Yc=1;var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,a=n?Symbol.for("react.provider"):60109,o=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,p=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function E(C){if(typeof C=="object"&&C!==null){var R=C.$$typeof;switch(R){case e:switch(C=C.type,C){case l:case u:case r:case s:case i:case h:return C;default:switch(C=C&&C.$$typeof,C){case o:case d:case m:case p:case a:return C;default:return R}}case t:return R}}}function x(C){return E(C)===u}return Ne.AsyncMode=l,Ne.ConcurrentMode=u,Ne.ContextConsumer=o,Ne.ContextProvider=a,Ne.Element=e,Ne.ForwardRef=d,Ne.Fragment=r,Ne.Lazy=m,Ne.Memo=p,Ne.Portal=t,Ne.Profiler=s,Ne.StrictMode=i,Ne.Suspense=h,Ne.isAsyncMode=function(C){return x(C)||E(C)===l},Ne.isConcurrentMode=x,Ne.isContextConsumer=function(C){return E(C)===o},Ne.isContextProvider=function(C){return E(C)===a},Ne.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===e},Ne.isForwardRef=function(C){return E(C)===d},Ne.isFragment=function(C){return E(C)===r},Ne.isLazy=function(C){return E(C)===m},Ne.isMemo=function(C){return E(C)===p},Ne.isPortal=function(C){return E(C)===t},Ne.isProfiler=function(C){return E(C)===s},Ne.isStrictMode=function(C){return E(C)===i},Ne.isSuspense=function(C){return E(C)===h},Ne.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===u||C===s||C===i||C===h||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===p||C.$$typeof===a||C.$$typeof===o||C.$$typeof===d||C.$$typeof===y||C.$$typeof===v||C.$$typeof===S||C.$$typeof===b)},Ne.typeOf=E,Ne}var ke={};/** @license React v16.13.1
177
+ * react-is.development.js
178
+ *
179
+ * Copyright (c) Facebook, Inc. and its affiliates.
180
+ *
181
+ * This source code is licensed under the MIT license found in the
182
+ * LICENSE file in the root directory of this source tree.
183
+ */var Uc;function AA(){return Uc||(Uc=1,process.env.NODE_ENV!=="production"&&(function(){var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,a=n?Symbol.for("react.provider"):60109,o=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,p=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function E(N){return typeof N=="string"||typeof N=="function"||N===r||N===u||N===s||N===i||N===h||N===f||typeof N=="object"&&N!==null&&(N.$$typeof===m||N.$$typeof===p||N.$$typeof===a||N.$$typeof===o||N.$$typeof===d||N.$$typeof===y||N.$$typeof===v||N.$$typeof===S||N.$$typeof===b)}function x(N){if(typeof N=="object"&&N!==null){var fe=N.$$typeof;switch(fe){case e:var ve=N.type;switch(ve){case l:case u:case r:case s:case i:case h:return ve;default:var Ie=ve&&ve.$$typeof;switch(Ie){case o:case d:case m:case p:case a:return Ie;default:return fe}}case t:return fe}}}var C=l,R=u,k=o,F=a,te=e,he=d,I=r,O=m,w=p,j=t,P=s,_=i,G=h,Z=!1;function z(N){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),T(N)||x(N)===l}function T(N){return x(N)===u}function M(N){return x(N)===o}function D(N){return x(N)===a}function W(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function X(N){return x(N)===d}function H(N){return x(N)===r}function $(N){return x(N)===m}function Y(N){return x(N)===p}function q(N){return x(N)===t}function U(N){return x(N)===s}function J(N){return x(N)===i}function ae(N){return x(N)===h}ke.AsyncMode=C,ke.ConcurrentMode=R,ke.ContextConsumer=k,ke.ContextProvider=F,ke.Element=te,ke.ForwardRef=he,ke.Fragment=I,ke.Lazy=O,ke.Memo=w,ke.Portal=j,ke.Profiler=P,ke.StrictMode=_,ke.Suspense=G,ke.isAsyncMode=z,ke.isConcurrentMode=T,ke.isContextConsumer=M,ke.isContextProvider=D,ke.isElement=W,ke.isForwardRef=X,ke.isFragment=H,ke.isLazy=$,ke.isMemo=Y,ke.isPortal=q,ke.isProfiler=U,ke.isStrictMode=J,ke.isSuspense=ae,ke.isValidElementType=E,ke.typeOf=x})()),ke}var Jc;function EA(){return Jc||(Jc=1,process.env.NODE_ENV==="production"?ls.exports=IA():ls.exports=AA()),ls.exports}var To,Qc;function xA(){if(Qc)return To;Qc=1;var n=EA(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=r,s[n.Memo]=i;function a(m){return n.isMemo(m)?i:s[m.$$typeof]||e}var o=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;function p(m,b,y){if(typeof b!="string"){if(f){var v=h(b);v&&v!==f&&p(m,v,y)}var S=l(b);u&&(S=S.concat(u(b)));for(var E=a(m),x=a(b),C=0;C<S.length;++C){var R=S[C];if(!t[R]&&!(y&&y[R])&&!(x&&x[R])&&!(E&&E[R])){var k=d(b,R);try{o(m,R,k)}catch{}}}}return m}return To=p,To}xA();var SA=!0;function wA(n,e,t){var r="";return t.split(" ").forEach(function(i){n[i]!==void 0?e.push(n[i]+";"):i&&(r+=i+" ")}),r}var rp=function(e,t,r){var i=e.key+"-"+t.name;(r===!1||SA===!1)&&e.registered[i]===void 0&&(e.registered[i]=t.styles)},TA=function(e,t,r){rp(e,t,r);var i=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var s=t;do e.insert(t===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function NA(n){for(var e=0,t,r=0,i=n.length;i>=4;++r,i-=4)t=n.charCodeAt(r)&255|(n.charCodeAt(++r)&255)<<8|(n.charCodeAt(++r)&255)<<16|(n.charCodeAt(++r)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(n.charCodeAt(r+2)&255)<<16;case 2:e^=(n.charCodeAt(r+1)&255)<<8;case 1:e^=n.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var kA=/[A-Z]|^ms/g,RA=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ip=function(e){return e.charCodeAt(1)===45},Kc=function(e){return e!=null&&typeof e!="boolean"},No=Nd(function(n){return ip(n)?n:n.replace(kA,"-$&").toLowerCase()}),ed=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(RA,function(r,i,s){return Ft={name:i,styles:s,next:Ft},i})}return Md[e]!==1&&!ip(e)&&typeof t=="number"&&t!==0?t+"px":t};function Ci(n,e,t){if(t==null)return"";var r=t;if(r.__emotion_styles!==void 0)return r;switch(typeof t){case"boolean":return"";case"object":{var i=t;if(i.anim===1)return Ft={name:i.name,styles:i.styles,next:Ft},i.name;var s=t;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)Ft={name:a.name,styles:a.styles,next:Ft},a=a.next;var o=s.styles+";";return o}return _A(n,e,t)}case"function":{if(n!==void 0){var l=Ft,u=t(n);return Ft=l,Ci(n,e,u)}break}}var d=t;return d}function _A(n,e,t){var r="";if(Array.isArray(t))for(var i=0;i<t.length;i++)r+=Ci(n,e,t[i])+";";else for(var s in t){var a=t[s];if(typeof a!="object"){var o=a;Kc(o)&&(r+=No(s)+":"+ed(s,o)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&e==null)for(var l=0;l<a.length;l++)Kc(a[l])&&(r+=No(s)+":"+ed(s,a[l])+";");else{var u=Ci(n,e,a);switch(s){case"animation":case"animationName":{r+=No(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}return r}var td=/label:\s*([^\s;{]+)\s*(;|$)/g,Ft;function sp(n,e,t){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var r=!0,i="";Ft=void 0;var s=n[0];if(s==null||s.raw===void 0)r=!1,i+=Ci(t,e,s);else{var a=s;i+=a[0]}for(var o=1;o<n.length;o++)if(i+=Ci(t,e,n[o]),r){var l=s;i+=l[o]}td.lastIndex=0;for(var u="",d;(d=td.exec(i))!==null;)u+="-"+d[1];var h=NA(i)+u;return{name:h,styles:i,next:Ft}}var OA=function(e){return e()},BA=L.useInsertionEffect?L.useInsertionEffect:!1,FA=BA||OA,ap=L.createContext(typeof HTMLElement<"u"?CA({key:"css"}):null);ap.Provider;var LA=function(e){return ee.forwardRef(function(t,r){var i=ee.useContext(ap);return e(t,i,r)})},MA=L.createContext({}),ru={}.hasOwnProperty,vl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",PA=function(e,t){var r={};for(var i in t)ru.call(t,i)&&(r[i]=t[i]);return r[vl]=e,r},DA=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return rp(t,r,i),FA(function(){return TA(t,r,i)}),null},VA=LA(function(n,e,t){var r=n.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=n[vl],s=[r],a="";typeof n.className=="string"?a=wA(e.registered,s,n.className):n.className!=null&&(a=n.className+" ");var o=sp(s,void 0,L.useContext(MA));a+=e.key+"-"+o.name;var l={};for(var u in n)ru.call(n,u)&&u!=="css"&&u!==vl&&(l[u]=n[u]);return l.className=a,t&&(l.ref=t),L.createElement(L.Fragment,null,L.createElement(DA,{cache:e,serialized:o,isStringTag:typeof i=="string"}),L.createElement(i,l))}),GA=VA,ue=function(e,t){var r=arguments;if(t==null||!ru.call(t,"css"))return L.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=GA,s[1]=PA(e,t);for(var a=2;a<i;a++)s[a]=r[a];return L.createElement.apply(null,s)};(function(n){var e;e||(e=n.JSX||(n.JSX={}))})(ue||(ue={}));function iu(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return sp(e)}function jA(){var n=iu.apply(void 0,arguments),e="animation-"+n.name;return{name:e,styles:"@keyframes "+e+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function HA(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}var yl=ee.useLayoutEffect,XA=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ls=function(){};function WA(n,e){return e?e[0]==="-"?n+e:n+"__"+e:n}function qA(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];var s=[].concat(r);if(e&&n)for(var a in e)e.hasOwnProperty(a)&&e[a]&&s.push("".concat(WA(n,a)));return s.filter(function(o){return o}).map(function(o){return String(o).trim()}).join(" ")}var Ms=function(e){return eE(e)?e.filter(Boolean):Dn(e)==="object"&&e!==null?[e]:[]},op=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=Ht(e,XA);return de({},t)},Fe=function(e,t,r){var i=e.cx,s=e.getStyles,a=e.getClassNames,o=e.className;return{css:s(t,e),className:i(r??{},a(t,e),o)}};function da(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function ZA(n){return da(n)?window.innerHeight:n.clientHeight}function lp(n){return da(n)?window.pageYOffset:n.scrollTop}function Ps(n,e){if(da(n)){window.scrollTo(0,e);return}n.scrollTop=e}function zA(n){var e=getComputedStyle(n),t=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var i=n;i=i.parentElement;)if(e=getComputedStyle(i),!(t&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return document.documentElement}function $A(n,e,t,r){return t*((n=n/r-1)*n*n+1)+e}function us(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ls,i=lp(n),s=e-i,a=10,o=0;function l(){o+=a;var u=$A(o,i,s,t);Ps(n,u),o<t?window.requestAnimationFrame(l):r(n)}l()}function nd(n,e){var t=n.getBoundingClientRect(),r=e.getBoundingClientRect(),i=e.offsetHeight/3;r.bottom+i>t.bottom?Ps(n,Math.min(e.offsetTop+e.clientHeight-n.offsetHeight+i,n.scrollHeight)):r.top-i<t.top&&Ps(n,Math.max(e.offsetTop-i,0))}function YA(n){var e=n.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function rd(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function UA(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var up=!1,JA={get passive(){return up=!0}},cs=typeof window<"u"?window:{};cs.addEventListener&&cs.removeEventListener&&(cs.addEventListener("p",Ls,JA),cs.removeEventListener("p",Ls,!1));var QA=up;function KA(n){return n!=null}function eE(n){return Array.isArray(n)}function ni(n,e,t){return n?e:t}var tE=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var s=Object.entries(e).filter(function(a){var o=Jt(a,1),l=o[0];return!r.includes(l)});return s.reduce(function(a,o){var l=Jt(o,2),u=l[0],d=l[1];return a[u]=d,a},{})},nE=["children","innerProps"],rE=["children","innerProps"];function iE(n){var e=n.maxHeight,t=n.menuEl,r=n.minHeight,i=n.placement,s=n.shouldScroll,a=n.isFixedPosition,o=n.controlHeight,l=zA(t),u={placement:"bottom",maxHeight:e};if(!t||!t.offsetParent)return u;var d=l.getBoundingClientRect(),h=d.height,f=t.getBoundingClientRect(),p=f.bottom,m=f.height,b=f.top,y=t.offsetParent.getBoundingClientRect(),v=y.top,S=a?window.innerHeight:ZA(l),E=lp(l),x=parseInt(getComputedStyle(t).marginBottom,10),C=parseInt(getComputedStyle(t).marginTop,10),R=v-C,k=S-b,F=R+E,te=h-E-b,he=p-S+E+x,I=E+b-C,O=160;switch(i){case"auto":case"bottom":if(k>=m)return{placement:"bottom",maxHeight:e};if(te>=m&&!a)return s&&us(l,he,O),{placement:"bottom",maxHeight:e};if(!a&&te>=r||a&&k>=r){s&&us(l,he,O);var w=a?k-x:te-x;return{placement:"bottom",maxHeight:w}}if(i==="auto"||a){var j=e,P=a?R:F;return P>=r&&(j=Math.min(P-x-o,e)),{placement:"top",maxHeight:j}}if(i==="bottom")return s&&Ps(l,he),{placement:"bottom",maxHeight:e};break;case"top":if(R>=m)return{placement:"top",maxHeight:e};if(F>=m&&!a)return s&&us(l,I,O),{placement:"top",maxHeight:e};if(!a&&F>=r||a&&R>=r){var _=e;return(!a&&F>=r||a&&R>=r)&&(_=a?R-C:F-C),s&&us(l,I,O),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function sE(n){var e={bottom:"top",top:"bottom"};return n?e[n]:"bottom"}var cp=function(e){return e==="auto"?"bottom":e},aE=function(e,t){var r,i=e.placement,s=e.theme,a=s.borderRadius,o=s.spacing,l=s.colors;return de((r={label:"menu"},ti(r,sE(i),"100%"),ti(r,"position","absolute"),ti(r,"width","100%"),ti(r,"zIndex",1),r),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},dp=ee.createContext(null),oE=function(e){var t=e.children,r=e.minMenuHeight,i=e.maxMenuHeight,s=e.menuPlacement,a=e.menuPosition,o=e.menuShouldScrollIntoView,l=e.theme,u=ee.useContext(dp)||{},d=u.setPortalPlacement,h=ee.useRef(null),f=ee.useState(i),p=Jt(f,2),m=p[0],b=p[1],y=ee.useState(null),v=Jt(y,2),S=v[0],E=v[1],x=l.spacing.controlHeight;return yl(function(){var C=h.current;if(C){var R=a==="fixed",k=o&&!R,F=iE({maxHeight:i,menuEl:C,minHeight:r,placement:s,shouldScroll:k,isFixedPosition:R,controlHeight:x});b(F.maxHeight),E(F.placement),d==null||d(F.placement)}},[i,s,a,o,r,d,x]),t({ref:h,placerProps:de(de({},e),{},{placement:S||cp(s),maxHeight:m})})},lE=function(e){var t=e.children,r=e.innerRef,i=e.innerProps;return ue("div",ce._extends({},Fe(e,"menu",{menu:!0}),{ref:r},i),t)},uE=lE,cE=function(e,t){var r=e.maxHeight,i=e.theme.spacing.baseUnit;return de({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:i,paddingTop:i})},dE=function(e){var t=e.children,r=e.innerProps,i=e.innerRef,s=e.isMulti;return ue("div",ce._extends({},Fe(e,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:i},r),t)},hp=function(e,t){var r=e.theme,i=r.spacing.baseUnit,s=r.colors;return de({textAlign:"center"},t?{}:{color:s.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},hE=hp,fE=hp,pE=function(e){var t=e.children,r=t===void 0?"No options":t,i=e.innerProps,s=Ht(e,nE);return ue("div",ce._extends({},Fe(de(de({},s),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},gE=function(e){var t=e.children,r=t===void 0?"Loading...":t,i=e.innerProps,s=Ht(e,rE);return ue("div",ce._extends({},Fe(de(de({},s),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},mE=function(e){var t=e.rect,r=e.offset,i=e.position;return{left:t.left,position:i,top:r,width:t.width,zIndex:1}},bE=function(e){var t=e.appendTo,r=e.children,i=e.controlElement,s=e.innerProps,a=e.menuPlacement,o=e.menuPosition,l=ee.useRef(null),u=ee.useRef(null),d=ee.useState(cp(a)),h=Jt(d,2),f=h[0],p=h[1],m=ee.useMemo(function(){return{setPortalPlacement:p}},[]),b=ee.useState(null),y=Jt(b,2),v=y[0],S=y[1],E=ee.useCallback(function(){if(i){var k=YA(i),F=o==="fixed"?0:window.pageYOffset,te=k[f]+F;(te!==(v==null?void 0:v.offset)||k.left!==(v==null?void 0:v.rect.left)||k.width!==(v==null?void 0:v.rect.width))&&S({offset:te,rect:k})}},[i,o,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);yl(function(){E()},[E]);var x=ee.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=Vs.autoUpdate(i,l.current,E,{elementResize:"ResizeObserver"in window}))},[i,E]);yl(function(){x()},[x]);var C=ee.useCallback(function(k){l.current=k,x()},[x]);if(!t&&o!=="fixed"||!v)return null;var R=ue("div",ce._extends({ref:C},Fe(de(de({},e),{},{offset:v.offset,position:o,rect:v.rect}),"menuPortal",{"menu-portal":!0}),s),r);return ue(dp.Provider,{value:m},t?Gp.createPortal(R,t):R)},vE=function(e){var t=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},yE=function(e){var t=e.children,r=e.innerProps,i=e.isDisabled,s=e.isRtl;return ue("div",ce._extends({},Fe(e,"container",{"--is-disabled":i,"--is-rtl":s}),r),t)},CE=function(e,t){var r=e.theme.spacing,i=e.isMulti,s=e.hasValue,a=e.selectProps.controlShouldRenderValue;return de({alignItems:"center",display:i&&s&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},IE=function(e){var t=e.children,r=e.innerProps,i=e.isMulti,s=e.hasValue;return ue("div",ce._extends({},Fe(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s}),r),t)},AE=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},EE=function(e){var t=e.children,r=e.innerProps;return ue("div",ce._extends({},Fe(e,"indicatorsContainer",{indicators:!0}),r),t)},id,xE=["size"],SE=["innerProps","isRtl","size"];function wE(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var TE=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:wE},fp=function(e){var t=e.size,r=Ht(e,xE);return ue("svg",ce._extends({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:TE},r))},su=function(e){return ue(fp,ce._extends({size:20},e),ue("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},pp=function(e){return ue(fp,ce._extends({size:20},e),ue("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},gp=function(e,t){var r=e.isFocused,i=e.theme,s=i.spacing.baseUnit,a=i.colors;return de({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:r?a.neutral60:a.neutral20,padding:s*2,":hover":{color:r?a.neutral80:a.neutral40}})},NE=gp,kE=function(e){var t=e.children,r=e.innerProps;return ue("div",ce._extends({},Fe(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),t||ue(pp,null))},RE=gp,_E=function(e){var t=e.children,r=e.innerProps;return ue("div",ce._extends({},Fe(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),t||ue(su,null))},OE=function(e,t){var r=e.isDisabled,i=e.theme,s=i.spacing.baseUnit,a=i.colors;return de({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:s*2,marginTop:s*2})},BE=function(e){var t=e.innerProps;return ue("span",ce._extends({},t,Fe(e,"indicatorSeparator",{"indicator-separator":!0})))},FE=jA(id||(id=HA([`
184
+ 0%, 80%, 100% { opacity: 0; }
185
+ 40% { opacity: 1; }
186
+ `]))),LE=function(e,t){var r=e.isFocused,i=e.size,s=e.theme,a=s.colors,o=s.spacing.baseUnit;return de({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},t?{}:{color:r?a.neutral60:a.neutral20,padding:o*2})},ko=function(e){var t=e.delay,r=e.offset;return ue("span",{css:iu({animation:"".concat(FE," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},ME=function(e){var t=e.innerProps,r=e.isRtl,i=e.size,s=i===void 0?4:i,a=Ht(e,SE);return ue("div",ce._extends({},Fe(de(de({},a),{},{innerProps:t,isRtl:r,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ue(ko,{delay:0,offset:r}),ue(ko,{delay:160,offset:!0}),ue(ko,{delay:320,offset:!r}))},PE=function(e,t){var r=e.isDisabled,i=e.isFocused,s=e.theme,a=s.colors,o=s.borderRadius,l=s.spacing;return de({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},DE=function(e){var t=e.children,r=e.isDisabled,i=e.isFocused,s=e.innerRef,a=e.innerProps,o=e.menuIsOpen;return ue("div",ce._extends({ref:s},Fe(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":o}),a,{"aria-disabled":r||void 0}),t)},VE=DE,GE=["data"],jE=function(e,t){var r=e.theme.spacing;return t?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},HE=function(e){var t=e.children,r=e.cx,i=e.getStyles,s=e.getClassNames,a=e.Heading,o=e.headingProps,l=e.innerProps,u=e.label,d=e.theme,h=e.selectProps;return ue("div",ce._extends({},Fe(e,"group",{group:!0}),l),ue(a,ce._extends({},o,{selectProps:h,theme:d,getStyles:i,getClassNames:s,cx:r}),u),ue("div",null,t))},XE=function(e,t){var r=e.theme,i=r.colors,s=r.spacing;return de({label:"group",cursor:"default",display:"block"},t?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},WE=function(e){var t=op(e);t.data;var r=Ht(t,GE);return ue("div",ce._extends({},Fe(e,"groupHeading",{"group-heading":!0}),r))},qE=HE,ZE=["innerRef","isDisabled","isHidden","inputClassName"],zE=function(e,t){var r=e.isDisabled,i=e.value,s=e.theme,a=s.spacing,o=s.colors;return de(de({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},$E),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:o.neutral80})},mp={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},$E={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":de({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},mp)},YE=function(e){return de({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},mp)},UE=function(e){var t=e.cx,r=e.value,i=op(e),s=i.innerRef,a=i.isDisabled,o=i.isHidden,l=i.inputClassName,u=Ht(i,ZE);return ue("div",ce._extends({},Fe(e,"input",{"input-container":!0}),{"data-value":r||""}),ue("input",ce._extends({className:t({input:!0},l),ref:s,style:YE(o),disabled:a},u)))},JE=UE,QE=function(e,t){var r=e.theme,i=r.spacing,s=r.borderRadius,a=r.colors;return de({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:s/2,margin:i.baseUnit/2})},KE=function(e,t){var r=e.theme,i=r.borderRadius,s=r.colors,a=e.cropWithEllipsis;return de({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:i/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},ex=function(e,t){var r=e.theme,i=r.spacing,s=r.borderRadius,a=r.colors,o=e.isFocused;return de({alignItems:"center",display:"flex"},t?{}:{borderRadius:s/2,backgroundColor:o?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},bp=function(e){var t=e.children,r=e.innerProps;return ue("div",r,t)},tx=bp,nx=bp;function rx(n){var e=n.children,t=n.innerProps;return ue("div",ce._extends({role:"button"},t),e||ue(su,{size:14}))}var ix=function(e){var t=e.children,r=e.components,i=e.data,s=e.innerProps,a=e.isDisabled,o=e.removeProps,l=e.selectProps,u=r.Container,d=r.Label,h=r.Remove;return ue(u,{data:i,innerProps:de(de({},Fe(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),s),selectProps:l},ue(d,{data:i,innerProps:de({},Fe(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),ue(h,{data:i,innerProps:de(de({},Fe(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:l}))},sx=ix,ax=function(e,t){var r=e.isDisabled,i=e.isFocused,s=e.isSelected,a=e.theme,o=a.spacing,l=a.colors;return de({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:s?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:s?l.neutral0:"inherit",padding:"".concat(o.baseUnit*2,"px ").concat(o.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:s?l.primary:l.primary50}})},ox=function(e){var t=e.children,r=e.isDisabled,i=e.isFocused,s=e.isSelected,a=e.innerRef,o=e.innerProps;return ue("div",ce._extends({},Fe(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":s}),{ref:a,"aria-disabled":r},o),t)},lx=ox,ux=function(e,t){var r=e.theme,i=r.spacing,s=r.colors;return de({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:s.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},cx=function(e){var t=e.children,r=e.innerProps;return ue("div",ce._extends({},Fe(e,"placeholder",{placeholder:!0}),r),t)},dx=cx,hx=function(e,t){var r=e.isDisabled,i=e.theme,s=i.spacing,a=i.colors;return de({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:r?a.neutral40:a.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},fx=function(e){var t=e.children,r=e.isDisabled,i=e.innerProps;return ue("div",ce._extends({},Fe(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),t)},px=fx,un={ClearIndicator:_E,Control:VE,DropdownIndicator:kE,DownChevron:pp,CrossIcon:su,Group:qE,GroupHeading:WE,IndicatorsContainer:EE,IndicatorSeparator:BE,Input:JE,LoadingIndicator:ME,Menu:uE,MenuList:dE,MenuPortal:bE,LoadingMessage:gE,NoOptionsMessage:pE,MultiValue:sx,MultiValueContainer:tx,MultiValueLabel:nx,MultiValueRemove:rx,Option:lx,Placeholder:dx,SelectContainer:yE,SingleValue:px,ValueContainer:IE},gx=function(e){return de(de({},un),e.components)},sd=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function mx(n,e){return!!(n===e||sd(n)&&sd(e))}function bx(n,e){if(n.length!==e.length)return!1;for(var t=0;t<n.length;t++)if(!mx(n[t],e[t]))return!1;return!0}function vx(n,e){e===void 0&&(e=bx);var t=null;function r(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(t&&t.lastThis===this&&e(i,t.lastArgs))return t.lastResult;var a=n.apply(this,i);return t={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){t=null},r}function yx(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Cx=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:yx},Ix=function(e){return ue("span",ce._extends({css:Cx},e))},ad=Ix,Ax={guidance:function(e){var t=e.isSearchable,r=e.isMulti,i=e.tabSelectsValue,s=e.context,a=e.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,r=e.label,i=r===void 0?"":r,s=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,i=e.options,s=e.label,a=s===void 0?"":s,o=e.selectValue,l=e.isDisabled,u=e.isSelected,d=e.isAppleDevice,h=function(b,y){return b&&b.length?"".concat(b.indexOf(y)+1," of ").concat(b.length):""};if(t==="value"&&o)return"value ".concat(a," focused, ").concat(h(o,r),".");if(t==="menu"&&d){var f=l?" disabled":"",p="".concat(u?" selected":"").concat(f);return"".concat(a).concat(p,", ").concat(h(i,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},Ex=function(e){var t=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,s=e.focusableOptions,a=e.isFocused,o=e.selectValue,l=e.selectProps,u=e.id,d=e.isAppleDevice,h=l.ariaLiveMessages,f=l.getOptionLabel,p=l.inputValue,m=l.isMulti,b=l.isOptionDisabled,y=l.isSearchable,v=l.menuIsOpen,S=l.options,E=l.screenReaderStatus,x=l.tabSelectsValue,C=l.isLoading,R=l["aria-label"],k=l["aria-live"],F=ee.useMemo(function(){return de(de({},Ax),h||{})},[h]),te=ee.useMemo(function(){var P="";if(t&&F.onChange){var _=t.option,G=t.options,Z=t.removedValue,z=t.removedValues,T=t.value,M=function(q){return Array.isArray(q)?null:q},D=Z||_||M(T),W=D?f(D):"",X=G||z||void 0,H=X?X.map(f):[],$=de({isDisabled:D&&b(D,o),label:W,labels:H},t);P=F.onChange($)}return P},[t,F,b,o,f]),he=ee.useMemo(function(){var P="",_=r||i,G=!!(r&&o&&o.includes(r));if(_&&F.onFocus){var Z={focused:_,label:f(_),isDisabled:b(_,o),isSelected:G,options:s,context:_===r?"menu":"value",selectValue:o,isAppleDevice:d};P=F.onFocus(Z)}return P},[r,i,f,b,F,s,o,d]),I=ee.useMemo(function(){var P="";if(v&&S.length&&!C&&F.onFilter){var _=E({count:s.length});P=F.onFilter({inputValue:p,resultsMessage:_})}return P},[s,p,v,F,S,E,C]),O=(t==null?void 0:t.action)==="initial-input-focus",w=ee.useMemo(function(){var P="";if(F.guidance){var _=i?"value":v?"menu":"input";P=F.guidance({"aria-label":R,context:_,isDisabled:r&&b(r,o),isMulti:m,isSearchable:y,tabSelectsValue:x,isInitialFocus:O})}return P},[R,r,i,m,b,y,v,F,o,x,O]),j=ue(ee.Fragment,null,ue("span",{id:"aria-selection"},te),ue("span",{id:"aria-focused"},he),ue("span",{id:"aria-results"},I),ue("span",{id:"aria-guidance"},w));return ue(ee.Fragment,null,ue(ad,{id:u},O&&j),ue(ad,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!O&&j))},xx=Ex,Cl=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Sx=new RegExp("["+Cl.map(function(n){return n.letters}).join("")+"]","g"),vp={};for(var Ro=0;Ro<Cl.length;Ro++)for(var _o=Cl[Ro],Oo=0;Oo<_o.letters.length;Oo++)vp[_o.letters[Oo]]=_o.base;var yp=function(e){return e.replace(Sx,function(t){return vp[t]})},wx=vx(yp),od=function(e){return e.replace(/^\s+|\s+$/g,"")},Tx=function(e){return"".concat(e.label," ").concat(e.value)},Nx=function(e){return function(t,r){if(t.data.__isNew__)return!0;var i=de({ignoreCase:!0,ignoreAccents:!0,stringify:Tx,trim:!0,matchFrom:"any"},e),s=i.ignoreCase,a=i.ignoreAccents,o=i.stringify,l=i.trim,u=i.matchFrom,d=l?od(r):r,h=l?od(o(t)):o(t);return s&&(d=d.toLowerCase(),h=h.toLowerCase()),a&&(d=wx(d),h=yp(h)),u==="start"?h.substr(0,d.length)===d:h.indexOf(d)>-1}},kx=["innerRef"];function Rx(n){var e=n.innerRef,t=Ht(n,kx),r=tE(t,"onExited","in","enter","exit","appear");return ue("input",ce._extends({ref:e},r,{css:iu({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var _x=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function Ox(n){var e=n.isEnabled,t=n.onBottomArrive,r=n.onBottomLeave,i=n.onTopArrive,s=n.onTopLeave,a=ee.useRef(!1),o=ee.useRef(!1),l=ee.useRef(0),u=ee.useRef(null),d=ee.useCallback(function(y,v){if(u.current!==null){var S=u.current,E=S.scrollTop,x=S.scrollHeight,C=S.clientHeight,R=u.current,k=v>0,F=x-C-E,te=!1;F>v&&a.current&&(r&&r(y),a.current=!1),k&&o.current&&(s&&s(y),o.current=!1),k&&v>F?(t&&!a.current&&t(y),R.scrollTop=x,te=!0,a.current=!0):!k&&-v>E&&(i&&!o.current&&i(y),R.scrollTop=0,te=!0,o.current=!0),te&&_x(y)}},[t,r,i,s]),h=ee.useCallback(function(y){d(y,y.deltaY)},[d]),f=ee.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),p=ee.useCallback(function(y){var v=l.current-y.changedTouches[0].clientY;d(y,v)},[d]),m=ee.useCallback(function(y){if(y){var v=QA?{passive:!1}:!1;y.addEventListener("wheel",h,v),y.addEventListener("touchstart",f,v),y.addEventListener("touchmove",p,v)}},[p,f,h]),b=ee.useCallback(function(y){y&&(y.removeEventListener("wheel",h,!1),y.removeEventListener("touchstart",f,!1),y.removeEventListener("touchmove",p,!1))},[p,f,h]);return ee.useEffect(function(){if(e){var y=u.current;return m(y),function(){b(y)}}},[e,m,b]),function(y){u.current=y}}var ld=["boxSizing","height","overflow","paddingRight","position"],ud={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function cd(n){n.cancelable&&n.preventDefault()}function dd(n){n.stopPropagation()}function hd(){var n=this.scrollTop,e=this.scrollHeight,t=n+this.offsetHeight;n===0?this.scrollTop=1:t===e&&(this.scrollTop=n-1)}function fd(){return"ontouchstart"in window||navigator.maxTouchPoints}var pd=!!(typeof window<"u"&&window.document&&window.document.createElement),Yr=0,ir={capture:!1,passive:!1};function Bx(n){var e=n.isEnabled,t=n.accountForScrollbars,r=t===void 0?!0:t,i=ee.useRef({}),s=ee.useRef(null),a=ee.useCallback(function(l){if(pd){var u=document.body,d=u&&u.style;if(r&&ld.forEach(function(m){var b=d&&d[m];i.current[m]=b}),r&&Yr<1){var h=parseInt(i.current.paddingRight,10)||0,f=document.body?document.body.clientWidth:0,p=window.innerWidth-f+h||0;Object.keys(ud).forEach(function(m){var b=ud[m];d&&(d[m]=b)}),d&&(d.paddingRight="".concat(p,"px"))}u&&fd()&&(u.addEventListener("touchmove",cd,ir),l&&(l.addEventListener("touchstart",hd,ir),l.addEventListener("touchmove",dd,ir))),Yr+=1}},[r]),o=ee.useCallback(function(l){if(pd){var u=document.body,d=u&&u.style;Yr=Math.max(Yr-1,0),r&&Yr<1&&ld.forEach(function(h){var f=i.current[h];d&&(d[h]=f)}),u&&fd()&&(u.removeEventListener("touchmove",cd,ir),l&&(l.removeEventListener("touchstart",hd,ir),l.removeEventListener("touchmove",dd,ir)))}},[r]);return ee.useEffect(function(){if(e){var l=s.current;return a(l),function(){o(l)}}},[e,a,o]),function(l){s.current=l}}function Fx(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Lx=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Mx=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:Fx};function Px(n){var e=n.children,t=n.lockEnabled,r=n.captureEnabled,i=r===void 0?!0:r,s=n.onBottomArrive,a=n.onBottomLeave,o=n.onTopArrive,l=n.onTopLeave,u=Ox({isEnabled:i,onBottomArrive:s,onBottomLeave:a,onTopArrive:o,onTopLeave:l}),d=Bx({isEnabled:t}),h=function(p){u(p),d(p)};return ue(ee.Fragment,null,t&&ue("div",{onClick:Lx,css:Mx}),e(h))}function Dx(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var Vx=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:Dx},Gx=function(e){var t=e.name,r=e.onFocus;return ue("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Vx,value:"",onChange:function(){}})},jx=Gx;function au(n){var e;return typeof window<"u"&&window.navigator!=null?n.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function Hx(){return au(/^iPhone/i)}function Cp(){return au(/^Mac/i)}function Xx(){return au(/^iPad/i)||Cp()&&navigator.maxTouchPoints>1}function Wx(){return Hx()||Xx()}function qx(){return Cp()||Wx()}var Zx=function(e){return e.label},Ip=function(e){return e.label},Ap=function(e){return e.value},zx=function(e){return!!e.isDisabled},$x={clearIndicator:RE,container:vE,control:PE,dropdownIndicator:NE,group:jE,groupHeading:XE,indicatorsContainer:AE,indicatorSeparator:OE,input:zE,loadingIndicator:LE,loadingMessage:fE,menu:aE,menuList:cE,menuPortal:mE,multiValue:QE,multiValueLabel:KE,multiValueRemove:ex,noOptionsMessage:hE,option:ax,placeholder:ux,singleValue:hx,valueContainer:CE},Yx={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Ux=4,Ep=4,Jx=38,Qx=Ep*2,Kx={baseUnit:Ep,controlHeight:Jx,menuGutter:Qx},Bo={borderRadius:Ux,colors:Yx,spacing:Kx},e2={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:rd(),captureMenuScroll:!rd(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Nx(),formatGroupLabel:Zx,getOptionLabel:Ip,getOptionValue:Ap,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:zx,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!UA(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(t!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function gd(n,e,t,r){var i=wp(n,e,t),s=Tp(n,e,t),a=Sp(n,e),o=Ds(n,e);return{type:"option",data:e,isDisabled:i,isSelected:s,label:a,value:o,index:r}}function Es(n,e){return n.options.map(function(t,r){if("options"in t){var i=t.options.map(function(a,o){return gd(n,a,e,o)}).filter(function(a){return bd(n,a)});return i.length>0?{type:"group",data:t,options:i,index:r}:void 0}var s=gd(n,t,e,r);return bd(n,s)?s:void 0}).filter(KA)}function xp(n){return n.reduce(function(e,t){return t.type==="group"?e.push.apply(e,pr(t.options.map(function(r){return r.data}))):e.push(t.data),e},[])}function md(n,e){return n.reduce(function(t,r){return r.type==="group"?t.push.apply(t,pr(r.options.map(function(i){return{data:i.data,id:"".concat(e,"-").concat(r.index,"-").concat(i.index)}}))):t.push({data:r.data,id:"".concat(e,"-").concat(r.index)}),t},[])}function t2(n,e){return xp(Es(n,e))}function bd(n,e){var t=n.inputValue,r=t===void 0?"":t,i=e.data,s=e.isSelected,a=e.label,o=e.value;return(!kp(n)||!s)&&Np(n,{label:a,value:o,data:i},r)}function n2(n,e){var t=n.focusedValue,r=n.selectValue,i=r.indexOf(t);if(i>-1){var s=e.indexOf(t);if(s>-1)return t;if(i<e.length)return e[i]}return null}function r2(n,e){var t=n.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}var Fo=function(e,t){var r,i=(r=e.find(function(s){return s.data===t}))===null||r===void 0?void 0:r.id;return i||null},Sp=function(e,t){return e.getOptionLabel(t)},Ds=function(e,t){return e.getOptionValue(t)};function wp(n,e,t){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(e,t):!1}function Tp(n,e,t){if(t.indexOf(e)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(e,t);var r=Ds(n,e);return t.some(function(i){return Ds(n,i)===r})}function Np(n,e,t){return n.filterOption?n.filterOption(e,t):!0}var kp=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return t===void 0?r:t},i2=1,ou=(function(n){GI(t,n);var e=HI(t);function t(r){var i;if(DI(this,t),i=e.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var d=i.props,h=d.onChange,f=d.name;u.name=f,i.ariaOnChange(l,u),h(l,u)},i.setValue=function(l,u,d){var h=i.props,f=h.closeMenuOnSelect,p=h.isMulti,m=h.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:m}),f&&(i.setState({inputIsHiddenAfterUpdate:!p}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:d})},i.selectOption=function(l){var u=i.props,d=u.blurInputOnSelect,h=u.isMulti,f=u.name,p=i.state.selectValue,m=h&&i.isOptionSelected(l,p),b=i.isOptionDisabled(l,p);if(m){var y=i.getOptionValue(l);i.setValue(p.filter(function(v){return i.getOptionValue(v)!==y}),"deselect-option",l)}else if(!b)h?i.setValue([].concat(pr(p),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:f});return}d&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,d=i.state.selectValue,h=i.getOptionValue(l),f=d.filter(function(m){return i.getOptionValue(m)!==h}),p=ni(u,f,f[0]||null);i.onChange(p,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(ni(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,d=u[u.length-1],h=u.slice(0,u.length-1),f=ni(l,h,h[0]||null);d&&i.onChange(f,{action:"pop-value",removedValue:d})},i.getFocusedOptionId=function(l){return Fo(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return md(Es(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return qA.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return Sp(i.props,l)},i.getOptionValue=function(l){return Ds(i.props,l)},i.getStyles=function(l,u){var d=i.props.unstyled,h=$x[l](u,d);h.boxSizing="border-box";var f=i.props.styles[l];return f?f(h,u):h},i.getClassNames=function(l,u){var d,h;return(d=(h=i.props.classNames)[l])===null||d===void 0?void 0:d.call(h,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return gx(i.props)},i.buildCategorizedOptions=function(){return Es(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return xp(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:de({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,d=u.isMulti,h=u.menuIsOpen;i.focusInput(),h?(i.setState({inputIsHiddenAfterUpdate:!d}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&da(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,d=u&&u.item(0);d&&(i.initialTouchX=d.clientX,i.initialTouchY=d.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,d=u&&u.item(0);if(d){var h=Math.abs(d.clientX-i.initialTouchX),f=Math.abs(d.clientY-i.initialTouchY),p=5;i.userIsDragging=h>p||f>p}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,d=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(d,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),d=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:d>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return kp(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,d=u.isMulti,h=u.backspaceRemovesValue,f=u.escapeClearsValue,p=u.inputValue,m=u.isClearable,b=u.isDisabled,y=u.menuIsOpen,v=u.onKeyDown,S=u.tabSelectsValue,E=u.openMenuOnFocus,x=i.state,C=x.focusedOption,R=x.focusedValue,k=x.selectValue;if(!b&&!(typeof v=="function"&&(v(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!d||p)return;i.focusValue("previous");break;case"ArrowRight":if(!d||p)return;i.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(R)i.removeValue(R);else{if(!h)return;d?i.popValue():m&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!y||!S||!C||E&&i.isOptionSelected(C,k))return;i.selectOption(C);break;case"Enter":if(l.keyCode===229)break;if(y){if(!C||i.isComposing)return;i.selectOption(C);break}return;case"Escape":y?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:p}),i.onMenuClose()):m&&f&&i.clearValue();break;case" ":if(p)return;if(!y){i.openMenu("first");break}if(!C)return;i.selectOption(C);break;case"ArrowUp":y?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":y?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!y)return;i.focusOption("pageup");break;case"PageDown":if(!y)return;i.focusOption("pagedown");break;case"Home":if(!y)return;i.focusOption("first");break;case"End":if(!y)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++i2),i.state.selectValue=Ms(r.value),r.menuIsOpen&&i.state.selectValue.length){var s=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),o=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=s,i.state.focusedOption=a[o],i.state.focusedOptionId=Fo(s,a[o])}return i}return VI(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&nd(this.menuListRef,this.focusedOptionRef),qx()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(i){var s=this.props,a=s.isDisabled,o=s.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&o&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(nd(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,s){this.props.onInputChange(i,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var s=this,a=this.state,o=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),d=i==="first"?0:u.length-1;if(!this.props.isMulti){var h=u.indexOf(o[0]);h>-1&&(d=h)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[d],focusedOptionId:this.getFocusedOptionId(u[d])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(i){var s=this.state,a=s.selectValue,o=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(o);o||(l=-1);var u=a.length-1,d=-1;if(a.length){switch(i){case"previous":l===0?d=0:l===-1?d=u:d=l-1;break;case"next":l>-1&&l<u&&(d=l+1);break}this.setState({inputIsHidden:d!==-1,focusedValue:a[d]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,a=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var l=0,u=o.indexOf(a);a||(u=-1),i==="up"?l=u>0?u-1:o.length-1:i==="down"?l=(u+1)%o.length:i==="pageup"?(l=u-s,l<0&&(l=0)):i==="pagedown"?(l=u+s,l>o.length-1&&(l=o.length-1)):i==="last"&&(l=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Bo):de(de({},Bo),this.props.theme):Bo}},{key:"getCommonProps",value:function(){var i=this.clearValue,s=this.cx,a=this.getStyles,o=this.getClassNames,l=this.getValue,u=this.selectOption,d=this.setValue,h=this.props,f=h.isMulti,p=h.isRtl,m=h.options,b=this.hasValue();return{clearValue:i,cx:s,getStyles:a,getClassNames:o,getValue:l,hasValue:b,isMulti:f,isRtl:p,options:m,selectOption:u,selectProps:h,setValue:d,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,s=i.isClearable,a=i.isMulti;return s===void 0?a:s}},{key:"isOptionDisabled",value:function(i,s){return wp(this.props,i,s)}},{key:"isOptionSelected",value:function(i,s){return Tp(this.props,i,s)}},{key:"filterOption",value:function(i,s){return Np(this.props,i,s)}},{key:"formatOptionLabel",value:function(i,s){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(i,{context:s,inputValue:a,selectValue:o})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,s=i.isDisabled,a=i.isSearchable,o=i.inputId,l=i.inputValue,u=i.tabIndex,d=i.form,h=i.menuIsOpen,f=i.required,p=this.getComponents(),m=p.Input,b=this.state,y=b.inputIsHidden,v=b.ariaSelection,S=this.commonProps,E=o||this.getElementId("input"),x=de(de(de({"aria-autocomplete":"list","aria-expanded":h,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":f,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},h&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(v==null?void 0:v.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?L.createElement(m,ce._extends({},S,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:E,innerRef:this.getInputRef,isDisabled:s,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:d,type:"text",value:l},x)):L.createElement(Rx,ce._extends({id:E,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ls,onFocus:this.onInputFocus,disabled:s,tabIndex:u,inputMode:"none",form:d,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,s=this.getComponents(),a=s.MultiValue,o=s.MultiValueContainer,l=s.MultiValueLabel,u=s.MultiValueRemove,d=s.SingleValue,h=s.Placeholder,f=this.commonProps,p=this.props,m=p.controlShouldRenderValue,b=p.isDisabled,y=p.isMulti,v=p.inputValue,S=p.placeholder,E=this.state,x=E.selectValue,C=E.focusedValue,R=E.isFocused;if(!this.hasValue()||!m)return v?null:L.createElement(h,ce._extends({},f,{key:"placeholder",isDisabled:b,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),S);if(y)return x.map(function(F,te){var he=F===C,I="".concat(i.getOptionLabel(F),"-").concat(i.getOptionValue(F));return L.createElement(a,ce._extends({},f,{components:{Container:o,Label:l,Remove:u},isFocused:he,isDisabled:b,key:I,index:te,removeProps:{onClick:function(){return i.removeValue(F)},onTouchEnd:function(){return i.removeValue(F)},onMouseDown:function(w){w.preventDefault()}},data:F}),i.formatOptionLabel(F,"value"))});if(v)return null;var k=x[0];return L.createElement(d,ce._extends({},f,{data:k,isDisabled:b}),this.formatOptionLabel(k,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),s=i.ClearIndicator,a=this.commonProps,o=this.props,l=o.isDisabled,u=o.isLoading,d=this.state.isFocused;if(!this.isClearable()||!s||l||!this.hasValue()||u)return null;var h={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return L.createElement(s,ce._extends({},a,{innerProps:h,isFocused:d}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),s=i.LoadingIndicator,a=this.commonProps,o=this.props,l=o.isDisabled,u=o.isLoading,d=this.state.isFocused;if(!s||!u)return null;var h={"aria-hidden":"true"};return L.createElement(s,ce._extends({},a,{innerProps:h,isDisabled:l,isFocused:d}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator,a=i.IndicatorSeparator;if(!s||!a)return null;var o=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return L.createElement(a,ce._extends({},o,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator;if(!s)return null;var a=this.commonProps,o=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return L.createElement(s,ce._extends({},a,{innerProps:u,isDisabled:o,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,s=this.getComponents(),a=s.Group,o=s.GroupHeading,l=s.Menu,u=s.MenuList,d=s.MenuPortal,h=s.LoadingMessage,f=s.NoOptionsMessage,p=s.Option,m=this.commonProps,b=this.state.focusedOption,y=this.props,v=y.captureMenuScroll,S=y.inputValue,E=y.isLoading,x=y.loadingMessage,C=y.minMenuHeight,R=y.maxMenuHeight,k=y.menuIsOpen,F=y.menuPlacement,te=y.menuPosition,he=y.menuPortalTarget,I=y.menuShouldBlockScroll,O=y.menuShouldScrollIntoView,w=y.noOptionsMessage,j=y.onMenuScrollToTop,P=y.onMenuScrollToBottom;if(!k)return null;var _=function(W,X){var H=W.type,$=W.data,Y=W.isDisabled,q=W.isSelected,U=W.label,J=W.value,ae=b===$,N=Y?void 0:function(){return i.onOptionHover($)},fe=Y?void 0:function(){return i.selectOption($)},ve="".concat(i.getElementId("option"),"-").concat(X),Ie={id:ve,onClick:fe,onMouseMove:N,onMouseOver:N,tabIndex:-1,role:"option","aria-selected":i.state.isAppleDevice?void 0:q};return L.createElement(p,ce._extends({},m,{innerProps:Ie,data:$,isDisabled:Y,isSelected:q,key:ve,label:U,type:H,value:J,isFocused:ae,innerRef:ae?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(W.data,"menu"))},G;if(this.hasOptions())G=this.getCategorizedOptions().map(function(D){if(D.type==="group"){var W=D.data,X=D.options,H=D.index,$="".concat(i.getElementId("group"),"-").concat(H),Y="".concat($,"-heading");return L.createElement(a,ce._extends({},m,{key:$,data:W,options:X,Heading:o,headingProps:{id:Y,data:D.data},label:i.formatGroupLabel(D.data)}),D.options.map(function(q){return _(q,"".concat(H,"-").concat(q.index))}))}else if(D.type==="option")return _(D,"".concat(D.index))});else if(E){var Z=x({inputValue:S});if(Z===null)return null;G=L.createElement(h,m,Z)}else{var z=w({inputValue:S});if(z===null)return null;G=L.createElement(f,m,z)}var T={minMenuHeight:C,maxMenuHeight:R,menuPlacement:F,menuPosition:te,menuShouldScrollIntoView:O},M=L.createElement(oE,ce._extends({},m,T),function(D){var W=D.ref,X=D.placerProps,H=X.placement,$=X.maxHeight;return L.createElement(l,ce._extends({},m,T,{innerRef:W,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:E,placement:H}),L.createElement(Px,{captureEnabled:v,onTopArrive:j,onBottomArrive:P,lockEnabled:I},function(Y){return L.createElement(u,ce._extends({},m,{innerRef:function(U){i.getMenuListRef(U),Y(U)},innerProps:{role:"listbox","aria-multiselectable":m.isMulti,id:i.getElementId("listbox")},isLoading:E,maxHeight:$,focusedOption:b}),G)}))});return he||te==="fixed"?L.createElement(d,ce._extends({},m,{appendTo:he,controlElement:this.controlRef,menuPlacement:F,menuPosition:te}),M):M}},{key:"renderFormField",value:function(){var i=this,s=this.props,a=s.delimiter,o=s.isDisabled,l=s.isMulti,u=s.name,d=s.required,h=this.state.selectValue;if(d&&!this.hasValue()&&!o)return L.createElement(jx,{name:u,onFocus:this.onValueInputFocus});if(!(!u||o))if(l)if(a){var f=h.map(function(b){return i.getOptionValue(b)}).join(a);return L.createElement("input",{name:u,type:"hidden",value:f})}else{var p=h.length>0?h.map(function(b,y){return L.createElement("input",{key:"i-".concat(y),name:u,type:"hidden",value:i.getOptionValue(b)})}):L.createElement("input",{name:u,type:"hidden",value:""});return L.createElement("div",null,p)}else{var m=h[0]?this.getOptionValue(h[0]):"";return L.createElement("input",{name:u,type:"hidden",value:m})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,s=this.state,a=s.ariaSelection,o=s.focusedOption,l=s.focusedValue,u=s.isFocused,d=s.selectValue,h=this.getFocusableOptions();return L.createElement(xx,ce._extends({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:o,focusedValue:l,isFocused:u,selectValue:d,focusableOptions:h,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),s=i.Control,a=i.IndicatorsContainer,o=i.SelectContainer,l=i.ValueContainer,u=this.props,d=u.className,h=u.id,f=u.isDisabled,p=u.menuIsOpen,m=this.state.isFocused,b=this.commonProps=this.getCommonProps();return L.createElement(o,ce._extends({},b,{className:d,innerProps:{id:h,onKeyDown:this.onKeyDown},isDisabled:f,isFocused:m}),this.renderLiveRegion(),L.createElement(s,ce._extends({},b,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:f,isFocused:m,menuIsOpen:p}),L.createElement(l,ce._extends({},b,{isDisabled:f}),this.renderPlaceholderOrValue(),this.renderInput()),L.createElement(a,ce._extends({},b,{isDisabled:f}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,s){var a=s.prevProps,o=s.clearFocusValueOnUpdate,l=s.inputIsHiddenAfterUpdate,u=s.ariaSelection,d=s.isFocused,h=s.prevWasFocused,f=s.instancePrefix,p=i.options,m=i.value,b=i.menuIsOpen,y=i.inputValue,v=i.isMulti,S=Ms(m),E={};if(a&&(m!==a.value||p!==a.options||b!==a.menuIsOpen||y!==a.inputValue)){var x=b?t2(i,S):[],C=b?md(Es(i,S),"".concat(f,"-option")):[],R=o?n2(s,S):null,k=r2(s,x),F=Fo(C,k);E={selectValue:S,focusedOption:k,focusedOptionId:F,focusableOptionsWithIds:C,focusedValue:R,clearFocusValueOnUpdate:!1}}var te=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},he=u,I=d&&h;return d&&!I&&(he={value:ni(v,S,S[0]||null),options:S,action:"initial-input-focus"},I=!h),(u==null?void 0:u.action)==="initial-input-focus"&&(he=null),de(de(de({},E),te),{},{prevProps:i,ariaSelection:he,prevWasFocused:I})}}]),t})(ee.Component);ou.defaultProps=e2;var s2=ee.forwardRef(function(n,e){var t=$f(n);return L.createElement(ou,ce._extends({ref:e},t))}),a2=s2,o2=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],vd=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(e).toLowerCase(),s=String(r.getOptionValue(t)).toLowerCase(),a=String(r.getOptionLabel(t)).toLowerCase();return s===i||a===i},Lo={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,r,i){return!(!e||t.some(function(s){return vd(e,s,i)})||r.some(function(s){return vd(e,s,i)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};function l2(n){var e=n.allowCreateWhileLoading,t=e===void 0?!1:e,r=n.createOptionPosition,i=r===void 0?"last":r,s=n.formatCreateLabel,a=s===void 0?Lo.formatCreateLabel:s,o=n.isValidNewOption,l=o===void 0?Lo.isValidNewOption:o,u=n.getNewOptionData,d=u===void 0?Lo.getNewOptionData:u,h=n.onCreateOption,f=n.options,p=f===void 0?[]:f,m=n.onChange,b=Ht(n,o2),y=b.getOptionValue,v=y===void 0?Ap:y,S=b.getOptionLabel,E=S===void 0?Ip:S,x=b.inputValue,C=b.isLoading,R=b.isMulti,k=b.value,F=b.name,te=ee.useMemo(function(){return l(x,Ms(k),p,{getOptionValue:v,getOptionLabel:E})?d(x,a(x)):void 0},[a,d,E,v,x,l,p,k]),he=ee.useMemo(function(){return(t||!C)&&te?i==="first"?[te].concat(pr(p)):[].concat(pr(p),[te]):p},[t,i,C,te,p]),I=ee.useCallback(function(O,w){if(w.action!=="select-option")return m(O,w);var j=Array.isArray(O)?O:[O];if(j[j.length-1]===te){if(h)h(x);else{var P=d(x,x),_={action:"create-option",name:F,option:P};m(ni(R,[].concat(pr(Ms(k)),[P]),P),_)}return}m(O,w)},[d,x,R,F,te,h,m,k]);return de(de({},b),{},{options:he,onChange:I})}var u2=ee.forwardRef(function(n,e){var t=$f(n),r=l2(t);return L.createElement(ou,ce._extends({ref:e},r))}),c2=u2;const d2=n=>({label:n,value:n.toLowerCase().replace(/\W/g,"")}),h2=({options:n=[],label:e,required:t,error:r,className:i,onChange:s=()=>{},placeholder:a="",canAddItem:o=!1,containerProps:l,...u})=>{const[d,h]=ee.useState(null),[f,p]=ee.useState([]),m=ee.useMemo(()=>o?c2:a2,[o]);ee.useEffect(()=>{const v=[];u.value instanceof Array?(u.value.forEach(S=>{let E;typeof S=="string"||typeof S=="number"||typeof S=="boolean"?E=f.find(x=>S==x.value)||null:E=S,E&&v.push(E)}),h(v)):typeof u.value=="string"||typeof u.value=="number"?h(f.find(S=>u.value==S.value)||null):h(u.value||null)},[JSON.stringify([u.value,f])]),ee.useEffect(()=>{p([...n])},[JSON.stringify(n)]);const b=ee.useCallback(v=>{if(v){const S=d2(v);p(E=>[S,...E]),setTimeout(()=>{u.isMulti&&d&&d instanceof Array?h([...d,S]):h(S)},500)}},[u.isMulti,d]),y=ee.useMemo(()=>({Control:v=>K.jsx("div",{...l,children:K.jsx(un.Control,{...v,className:Be.twMerge(v.className,i,"!border-border-alpha-strong focus-within:!ring-offset-bg focus-within:!ring-item-primary !min-h-10 !rounded-lg !bg-transparent !ring-0 !outline-none focus-within:!ring-2 focus-within:!ring-offset-2",r&&"focus-within:!ring-item-destructive placeholder:!text-item-destructive !border-item-destructive !text-item-destructive")})}),Menu:v=>K.jsx(un.Menu,{...v,className:Be.twMerge([v.className,"!bg-bg-secondary"])}),Option:({...v})=>K.jsx(un.Option,{...v,className:Be.twMerge([v.className,(v.isSelected||v.isFocused)&&"!bg-bg"])}),Placeholder:v=>K.jsx(un.Placeholder,{...v,className:Be.twMerge(v.className,"text-secondary! text-body-sm-regular!",r&&"text-item-destructive!")}),SingleValue:v=>K.jsx(un.SingleValue,{...v,className:Be.twMerge([v.className,"text-body-sm-regular !text-primary"])}),MultiValue:v=>K.jsx(un.MultiValue,{...v,className:Be.twMerge([v.className,"text-body-sm-regular !rounded-md border-blue-200 !bg-blue-100 !py-0 !text-blue-700"])}),Input:v=>K.jsx(un.Input,{...v,className:Be.twMerge([v.className,"!text-primary"])})}),[i,l,r]);return K.jsx(m,{onCreateOption:b,components:y,placeholder:a,className:Be.twMerge("w-full",i),classNamePrefix:"selectform",isClearable:!0,hideSelectedOptions:!0,...u,value:d,options:f,onChange:(v,S)=>{v instanceof Array?(s(v.filter(E=>typeof E=="object").map(E=>E.value),S),h(v)):(s((v==null?void 0:v.value)||null,S),h(v))}})};var ha="Switch",[f2]=Le.createContextScope(ha),[p2,g2]=f2(ha),Rp=L.forwardRef((n,e)=>{const{__scopeSwitch:t,name:r,checked:i,defaultChecked:s,required:a,disabled:o,value:l="on",onCheckedChange:u,form:d,...h}=n,[f,p]=L.useState(null),m=Vn.useComposedRefs(e,E=>p(E)),b=L.useRef(!1),y=f?d||!!f.closest("form"):!0,[v,S]=Il.useControllableState({prop:i,defaultProp:s??!1,onChange:u,caller:ha});return K.jsxs(p2,{scope:t,checked:v,disabled:o,children:[K.jsx(Le.Primitive.button,{type:"button",role:"switch","aria-checked":v,"aria-required":a,"data-state":Fp(v),"data-disabled":o?"":void 0,disabled:o,value:l,...h,ref:m,onClick:Le.composeEventHandlers(n.onClick,E=>{S(x=>!x),y&&(b.current=E.isPropagationStopped(),b.current||E.stopPropagation())})}),y&&K.jsx(Bp,{control:f,bubbles:!b.current,name:r,value:l,checked:v,required:a,disabled:o,form:d,style:{transform:"translateX(-100%)"}})]})});Rp.displayName=ha;var _p="SwitchThumb",Op=L.forwardRef((n,e)=>{const{__scopeSwitch:t,...r}=n,i=g2(_p,t);return K.jsx(Le.Primitive.span,{"data-state":Fp(i.checked),"data-disabled":i.disabled?"":void 0,...r,ref:e})});Op.displayName=_p;var m2="SwitchBubbleInput",Bp=L.forwardRef(({__scopeSwitch:n,control:e,checked:t,bubbles:r=!0,...i},s)=>{const a=L.useRef(null),o=Vn.useComposedRefs(a,s),l=ce.usePrevious(t),u=Vs.useSize(e);return L.useEffect(()=>{const d=a.current;if(!d)return;const h=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(h,"checked").set;if(l!==t&&p){const m=new Event("click",{bubbles:r});p.call(d,t),d.dispatchEvent(m)}},[l,t,r]),K.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...i,tabIndex:-1,ref:o,style:{...i.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Bp.displayName=m2;function Fp(n){return n?"checked":"unchecked"}var Lp=Rp,b2=Op;const Mp=L.forwardRef(({className:n,...e},t)=>K.jsx(Lp,{className:Be.cn("peer focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-item-primary data-[state=unchecked]:bg-input inline-flex h-4 w-7 shrink-0 cursor-pointer items-center rounded-full border border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-40",n),...e,ref:t,children:K.jsx(b2,{className:Be.cn("bg-background pointer-events-none block size-3.5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-3 data-[state=unchecked]:translate-x-0")})}));Mp.displayName=Lp.displayName;const Pp=L.forwardRef(({className:n,variant:e,...t},r)=>K.jsx("textarea",{className:Be.cn("min-h-20 px-3 py-2",na({variant:e}),n),ref:r,...t}));Pp.displayName="Textarea";exports.Checkbox=Td;exports.FilepondContainer=eh;exports.Form=am;exports.FormControl=oh;exports.FormDescription=lh;exports.FormField=om;exports.FormItem=sh;exports.FormLabel=ah;exports.FormMessage=uh;exports.HtmlEditor=bf;exports.Input=vf;exports.Label=Ol;exports.MaskInput=kf;exports.RadioGroup=Wf;exports.RadioGroupItem=qf;exports.ReactSelect=h2;exports.Switch=Mp;exports.Textarea=Pp;exports.inputVariants=na;exports.useFormField=Ii;
187
+ //# sourceMappingURL=textarea-4zXXFdLZ.cjs.js.map