@dubai-design-system/components-js 3.12.9 → 3.12.11

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 (925) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -2
  3. package/dist/cjs/dda-accordion.cjs.entry.js +10 -36
  4. package/dist/cjs/dda-alert.cjs.entry.js +9 -14
  5. package/dist/cjs/dda-attach-file.cjs.entry.js +18 -62
  6. package/dist/cjs/dda-avatar.cjs.entry.js +9 -18
  7. package/dist/cjs/dda-banner.cjs.entry.js +23 -0
  8. package/dist/cjs/dda-breadcrumb.cjs.entry.js +5 -16
  9. package/dist/cjs/dda-button.cjs.entry.js +15 -33
  10. package/dist/cjs/dda-checkbox.cjs.entry.js +6 -14
  11. package/dist/cjs/dda-chip.cjs.entry.js +5 -9
  12. package/dist/cjs/dda-credit-card.cjs.entry.js +6 -5
  13. package/dist/cjs/dda-creditcard-field.cjs.entry.js +7 -46
  14. package/dist/cjs/dda-dropdown.cjs.entry.js +20 -41
  15. package/dist/cjs/dda-footer.cjs.entry.js +4 -5
  16. package/dist/cjs/dda-header.cjs.entry.js +44 -255
  17. package/dist/cjs/dda-home-banner.cjs.entry.js +10 -151
  18. package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +5 -8
  19. package/dist/cjs/dda-input.cjs.entry.js +34 -0
  20. package/dist/cjs/dda-link-button_2.cjs.entry.js +66 -0
  21. package/dist/cjs/dda-number-field.cjs.entry.js +7 -33
  22. package/dist/cjs/dda-pagination.cjs.entry.js +17 -19
  23. package/dist/cjs/dda-phonefield.cjs.entry.js +197 -240
  24. package/dist/cjs/dda-progressbar.cjs.entry.js +5 -8
  25. package/dist/cjs/dda-range-slider.cjs.entry.js +5 -10
  26. package/dist/cjs/dda-search-input.cjs.entry.js +12 -103
  27. package/dist/cjs/dda-segmented-tabs.cjs.entry.js +6 -9
  28. package/dist/cjs/dda-select.cjs.entry.js +8 -120
  29. package/dist/cjs/dda-sticky-footer.cjs.entry.js +4 -66
  30. package/dist/cjs/dda-tabs.cjs.entry.js +16 -43
  31. package/dist/cjs/dda-textarea.cjs.entry.js +6087 -6252
  32. package/dist/cjs/dda-toggle.cjs.entry.js +11 -16
  33. package/dist/cjs/dda-tooltip.cjs.entry.js +5 -8
  34. package/dist/cjs/dda-ui-card.cjs.entry.js +26 -0
  35. package/dist/cjs/dda-vertical-stepper.cjs.entry.js +4 -9
  36. package/dist/cjs/dda.cjs.js +7 -9
  37. package/dist/cjs/{index-39924b9e.js → index-B79qki6G.js} +790 -578
  38. package/dist/cjs/index.cjs.js +12 -16
  39. package/dist/cjs/loader.cjs.js +3 -7
  40. package/dist/collection/assets/countries.js +179 -179
  41. package/dist/collection/assets/digital-logo.svg +82 -82
  42. package/dist/collection/assets/fonts/dubai/DubaiBold.svg +5922 -5922
  43. package/dist/collection/assets/fonts/dubai/DubaiLight.svg +5935 -5935
  44. package/dist/collection/assets/fonts/dubai/DubaiMedium.svg +5926 -5926
  45. package/dist/collection/assets/fonts/dubai/DubaiRegular.svg +5925 -5925
  46. package/dist/collection/assets/img/dda-icon-logo.svg +4 -4
  47. package/dist/collection/assets/img/digital-logo-white.svg +82 -82
  48. package/dist/collection/assets/img/digital-logo.svg +82 -82
  49. package/dist/collection/assets/img/icn/DubaiAI.svg +267 -267
  50. package/dist/collection/assets/img/icn/icn-Excel.svg +9 -9
  51. package/dist/collection/assets/img/icn/icn-Image.svg +6 -6
  52. package/dist/collection/assets/img/icn/icn-OneNote.svg +6 -6
  53. package/dist/collection/assets/img/icn/icn-PDF.svg +7 -7
  54. package/dist/collection/assets/img/icn/icn-PowerPoint.svg +10 -10
  55. package/dist/collection/assets/img/icn/icn-Video.svg +5 -5
  56. package/dist/collection/assets/img/icn/icn-Word.svg +10 -10
  57. package/dist/collection/assets/img/icn/icn-accessibility-dark.svg +3 -3
  58. package/dist/collection/assets/img/icn/icn-apple-dark.svg +3 -3
  59. package/dist/collection/assets/img/icn/icn-apple.svg +3 -3
  60. package/dist/collection/assets/img/icn/icn-chat_bubble_outline.svg +3 -3
  61. package/dist/collection/assets/img/icn/icn-complaints.svg +28 -28
  62. package/dist/collection/assets/img/icn/icn-facebook-dark.svg +4 -4
  63. package/dist/collection/assets/img/icn/icn-facebook.svg +11 -11
  64. package/dist/collection/assets/img/icn/icn-google-dark.svg +13 -13
  65. package/dist/collection/assets/img/icn/icn-google.svg +13 -13
  66. package/dist/collection/assets/img/icn/icn-grid-view.svg +3 -3
  67. package/dist/collection/assets/img/icn/icn-happy.svg +3 -3
  68. package/dist/collection/assets/img/icn/icn-instagram-dark.svg +12 -12
  69. package/dist/collection/assets/img/icn/icn-instagram.svg +30 -30
  70. package/dist/collection/assets/img/icn/icn-search-dark.svg +3 -3
  71. package/dist/collection/assets/img/icn/icn-user-dark.svg +3 -3
  72. package/dist/collection/collection-manifest.json +5 -16
  73. package/dist/collection/components/dda-accordion/dda-accordion.css +72 -91
  74. package/dist/collection/components/dda-accordion/dda-accordion.js +16 -215
  75. package/dist/collection/components/dda-accordion/dda-accordion.stories.js +18 -58
  76. package/dist/collection/components/dda-alert/dda-alert.css +148 -133
  77. package/dist/collection/components/dda-alert/dda-alert.js +50 -47
  78. package/dist/collection/components/dda-alert/dda-alert.stories.js +58 -66
  79. package/dist/collection/components/dda-attach-file/dda-attach-file.js +41 -306
  80. package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js +128 -84
  81. package/dist/collection/components/dda-avatar/dda-avatar.css +282 -282
  82. package/dist/collection/components/dda-avatar/dda-avatar.js +24 -73
  83. package/dist/collection/components/dda-avatar/dda-avatar.stories.js +76 -48
  84. package/dist/collection/components/dda-banner/dda-banner.css +3 -0
  85. package/dist/collection/components/dda-banner/dda-banner.js +90 -0
  86. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.css +58 -61
  87. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +7 -93
  88. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.stories.js +14 -22
  89. package/dist/collection/components/dda-button/dda-button.js +54 -143
  90. package/dist/collection/components/dda-button/dda-button.stories.js +105 -118
  91. package/dist/collection/components/dda-checkbox/dda-checkbox.css +119 -126
  92. package/dist/collection/components/dda-checkbox/dda-checkbox.js +42 -46
  93. package/dist/collection/components/dda-checkbox/dda-checkbox.stories.js +56 -55
  94. package/dist/collection/components/dda-chip/dda-chip.css +100 -109
  95. package/dist/collection/components/dda-chip/dda-chip.js +15 -150
  96. package/dist/collection/components/dda-chip/dda-chip.stories.js +34 -60
  97. package/dist/collection/components/dda-credit-card/dda-credit-card.css +104 -0
  98. package/dist/collection/components/dda-credit-card/dda-credit-card.js +24 -15
  99. package/dist/collection/components/dda-credit-card/dda-credit-card.stories.js +17 -19
  100. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +39 -126
  101. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.stories.js +30 -40
  102. package/dist/collection/components/dda-dropdown/dda-dropdown.js +63 -134
  103. package/dist/collection/components/dda-dropdown/dda-dropdown.stories.js +141 -85
  104. package/dist/collection/components/dda-footer/dda-footer.css +0 -0
  105. package/dist/collection/components/dda-footer/dda-footer.js +30 -20
  106. package/dist/collection/components/dda-footer/dda-footer.stories.js +29 -30
  107. package/dist/collection/components/dda-header/dda-header.css +0 -0
  108. package/dist/collection/components/dda-header/dda-header.js +179 -1169
  109. package/dist/collection/components/dda-header/dda-header.stories.js +118 -358
  110. package/dist/collection/components/dda-home-banner/dda-home-banner.js +9 -197
  111. package/dist/collection/components/dda-home-banner/dda-home-banner.stories.js +44 -37
  112. package/dist/collection/components/dda-home-banner/home-banner.css +153 -269
  113. package/dist/collection/components/dda-input/dda-input.js +41 -310
  114. package/dist/collection/components/dda-input/dda-input.stories.js +89 -127
  115. package/dist/collection/components/dda-link-button/dda-link-button.js +50 -192
  116. package/dist/collection/components/dda-link-button/dda-link-button.stories.js +40 -131
  117. package/dist/collection/components/dda-number-field/dda-number-field.js +44 -87
  118. package/dist/collection/components/dda-number-field/dda-number-field.stories.js +26 -27
  119. package/dist/collection/components/dda-pagination/dda-pagination.css +167 -167
  120. package/dist/collection/components/dda-pagination/dda-pagination.js +40 -80
  121. package/dist/collection/components/dda-pagination/dda-pagination.stories.js +24 -25
  122. package/dist/collection/components/dda-phonefield/dda-phonefield.js +54 -220
  123. package/dist/collection/components/dda-phonefield/dda-phonefield.stories.js +59 -74
  124. package/dist/collection/components/dda-progressbar/dda-progressbar.css +94 -94
  125. package/dist/collection/components/dda-progressbar/dda-progressbar.js +11 -12
  126. package/dist/collection/components/dda-progressbar/dda-progressbar.stories.js +13 -14
  127. package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +3830 -125
  128. package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +24 -146
  129. package/dist/collection/components/dda-radiobutton/dda-radiobutton.stories.js +58 -64
  130. package/dist/collection/components/dda-range-slider/dda-range-slider.css +136 -143
  131. package/dist/collection/components/dda-range-slider/dda-range-slider.js +26 -27
  132. package/dist/collection/components/dda-range-slider/dda-range-slider.stories.js +20 -21
  133. package/dist/collection/components/dda-search-input/dda-search-input.js +42 -327
  134. package/dist/collection/components/dda-search-input/dda-search-input.stories.js +23 -51
  135. package/dist/collection/components/dda-select/dda-select.js +32 -325
  136. package/dist/collection/components/dda-select/dda-select.stories.js +113 -80
  137. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.css +0 -225
  138. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +133 -230
  139. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js +84 -100
  140. package/dist/collection/components/dda-tabs/dda-tabs.css +119 -164
  141. package/dist/collection/components/dda-tabs/dda-tabs.js +30 -96
  142. package/dist/collection/components/dda-tabs/dda-tabs.stories.js +34 -41
  143. package/dist/collection/components/dda-textarea/dda-textarea.js +83 -260
  144. package/dist/collection/components/dda-textarea/dda-textarea.stories.js +37 -63
  145. package/dist/collection/components/dda-toggle/dda-toggle.css +119 -129
  146. package/dist/collection/components/dda-toggle/dda-toggle.js +22 -56
  147. package/dist/collection/components/dda-toggle/dda-toggle.stories.js +17 -18
  148. package/dist/collection/components/dda-tooltip/dda-tooltip.css +130 -138
  149. package/dist/collection/components/dda-tooltip/dda-tooltip.js +11 -12
  150. package/dist/collection/components/dda-tooltip/dda-tooltip.stories.js +16 -17
  151. package/dist/collection/components/dda-ui-card/dda-ui-card.css +3 -0
  152. package/dist/collection/components/{dda-cards/dda-banner-card/dda-banner-card.js → dda-ui-card/dda-ui-card.js} +68 -95
  153. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.css +51 -51
  154. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +14 -15
  155. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.stories.js +12 -13
  156. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.css +108 -114
  157. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +10 -11
  158. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.stories.js +19 -20
  159. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.css +112 -112
  160. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +7 -8
  161. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.stories.js +19 -20
  162. package/dist/collection/global/dda-button.css +580 -0
  163. package/dist/collection/global/global.css +3706 -3007
  164. package/dist/collection/global/input.css +615 -688
  165. package/dist/collection/index.js +0 -1
  166. package/dist/collection/utils/applyTheme.js +12 -12
  167. package/dist/collection/utils/utils.js +0 -1
  168. package/dist/components/dda-accordion.js +1 -91
  169. package/dist/components/dda-alert.js +1 -74
  170. package/dist/components/dda-attach-file.js +1 -159
  171. package/dist/components/dda-avatar.js +1 -8
  172. package/dist/components/{dda-slider.d.ts → dda-banner.d.ts} +4 -4
  173. package/dist/components/dda-banner.js +1 -0
  174. package/dist/components/dda-breadcrumb.js +1 -63
  175. package/dist/components/dda-button.js +1 -8
  176. package/dist/components/dda-checkbox.js +1 -61
  177. package/dist/components/dda-chip.js +1 -8
  178. package/dist/components/dda-credit-card.js +1 -47
  179. package/dist/components/dda-creditcard-field.js +1 -132
  180. package/dist/components/dda-dropdown.js +1 -107
  181. package/dist/components/dda-footer.js +1 -59
  182. package/dist/components/dda-header.js +1 -534
  183. package/dist/components/dda-home-banner.js +1 -214
  184. package/dist/components/dda-horizontal-stepper.js +1 -47
  185. package/dist/components/dda-input.js +1 -8
  186. package/dist/components/dda-link-button.js +1 -8
  187. package/dist/components/dda-number-field.js +1 -122
  188. package/dist/components/dda-pagination.js +1 -116
  189. package/dist/components/dda-phonefield.js +1 -325
  190. package/dist/components/dda-progressbar.js +1 -50
  191. package/dist/components/dda-radiobutton.js +1 -8
  192. package/dist/components/dda-range-slider.js +1 -82
  193. package/dist/components/dda-search-input.js +1 -165
  194. package/dist/components/dda-segmented-tabs.js +1 -48
  195. package/dist/components/dda-select.js +1 -194
  196. package/dist/components/dda-sticky-footer.js +1 -161
  197. package/dist/components/dda-tabs.js +1 -110
  198. package/dist/components/dda-textarea.js +1 -16525
  199. package/dist/components/dda-toggle.js +1 -53
  200. package/dist/components/dda-tooltip.js +1 -8
  201. package/dist/components/{dda-image-card.d.ts → dda-ui-card.d.ts} +4 -4
  202. package/dist/components/dda-ui-card.js +1 -0
  203. package/dist/components/dda-vertical-stepper.js +1 -48
  204. package/dist/components/index.d.ts +2 -0
  205. package/dist/components/index.js +1 -23
  206. package/dist/components/p-BKiP6sny.js +1 -0
  207. package/dist/components/p-Bm-EYFLN.js +1 -0
  208. package/dist/components/p-BvP8lGT3.js +1 -0
  209. package/dist/components/p-DRFUUPG3.js +1 -0
  210. package/dist/components/p-LJ4a_ueE.js +1 -0
  211. package/dist/dda/dda.esm.js +1 -2
  212. package/dist/dda/index.esm.js +1 -2
  213. package/dist/dda/p-040099d5.entry.js +1 -0
  214. package/dist/dda/p-0c6f89c6.entry.js +1 -0
  215. package/dist/dda/p-0db613dc.entry.js +1 -0
  216. package/dist/dda/p-11ce4cfd.entry.js +1 -0
  217. package/dist/dda/p-16ce89d0.entry.js +1 -0
  218. package/dist/dda/p-203ee4e1.entry.js +1 -0
  219. package/dist/dda/p-2a027297.entry.js +1 -0
  220. package/dist/dda/p-2e1d59b9.entry.js +1 -0
  221. package/dist/dda/p-3512c8ef.entry.js +1 -0
  222. package/dist/dda/p-35cdd0cf.entry.js +1 -0
  223. package/dist/dda/p-3a6f952a.entry.js +1 -0
  224. package/dist/dda/p-3af92bf3.entry.js +1 -0
  225. package/dist/dda/p-4805baa9.entry.js +1 -0
  226. package/dist/dda/p-4a846bcd.entry.js +1 -0
  227. package/dist/dda/p-5b978b8f.entry.js +1 -0
  228. package/dist/dda/p-5e0f4eaf.entry.js +1 -0
  229. package/dist/dda/p-6331f69d.entry.js +1 -0
  230. package/dist/dda/p-67284de0.entry.js +1 -0
  231. package/dist/dda/p-687993df.entry.js +1 -0
  232. package/dist/dda/p-716421b3.entry.js +1 -0
  233. package/dist/dda/p-975905db.entry.js +1 -0
  234. package/dist/dda/p-9f0045c4.entry.js +1 -0
  235. package/dist/dda/p-9f82d233.entry.js +1 -0
  236. package/dist/dda/p-CnOk80gh.js +2 -0
  237. package/dist/dda/p-DQuL1Twl.js +1 -0
  238. package/dist/dda/p-b06d31ec.entry.js +1 -0
  239. package/dist/dda/p-bbafe3f1.entry.js +1 -0
  240. package/dist/dda/p-d0afe841.entry.js +1 -0
  241. package/dist/dda/p-d1a52040.entry.js +1 -0
  242. package/dist/dda/p-dd16275a.entry.js +1 -0
  243. package/dist/dda/p-e4f05069.entry.js +1 -0
  244. package/dist/dda/p-ea3d4df8.entry.js +1 -0
  245. package/dist/dda/p-ebaf8588.entry.js +1 -0
  246. package/dist/dda/p-f135fada.entry.js +1 -0
  247. package/dist/dda/p-f8eeccb8.entry.js +1 -0
  248. package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -2
  249. package/dist/esm/dda-accordion.entry.js +11 -35
  250. package/dist/esm/dda-alert.entry.js +10 -13
  251. package/dist/esm/dda-attach-file.entry.js +18 -60
  252. package/dist/esm/dda-avatar.entry.js +10 -17
  253. package/dist/esm/dda-banner.entry.js +21 -0
  254. package/dist/esm/dda-breadcrumb.entry.js +6 -15
  255. package/dist/esm/dda-button.entry.js +16 -32
  256. package/dist/esm/dda-checkbox.entry.js +7 -13
  257. package/dist/esm/dda-chip.entry.js +6 -8
  258. package/dist/esm/dda-credit-card.entry.js +7 -4
  259. package/dist/esm/dda-creditcard-field.entry.js +8 -45
  260. package/dist/esm/dda-dropdown.entry.js +21 -40
  261. package/dist/esm/dda-footer.entry.js +5 -4
  262. package/dist/esm/dda-header.entry.js +44 -253
  263. package/dist/esm/dda-home-banner.entry.js +11 -150
  264. package/dist/esm/dda-horizontal-stepper.entry.js +6 -7
  265. package/dist/esm/dda-input.entry.js +32 -0
  266. package/dist/esm/dda-link-button_2.entry.js +63 -0
  267. package/dist/esm/dda-number-field.entry.js +8 -32
  268. package/dist/esm/dda-pagination.entry.js +18 -18
  269. package/dist/esm/dda-phonefield.entry.js +197 -238
  270. package/dist/esm/dda-progressbar.entry.js +6 -7
  271. package/dist/esm/dda-range-slider.entry.js +5 -8
  272. package/dist/esm/dda-search-input.entry.js +13 -102
  273. package/dist/esm/dda-segmented-tabs.entry.js +7 -8
  274. package/dist/esm/dda-select.entry.js +8 -118
  275. package/dist/esm/dda-sticky-footer.entry.js +4 -64
  276. package/dist/esm/dda-tabs.entry.js +17 -42
  277. package/dist/esm/dda-textarea.entry.js +6087 -6250
  278. package/dist/esm/dda-toggle.entry.js +12 -15
  279. package/dist/esm/dda-tooltip.entry.js +6 -7
  280. package/dist/esm/dda-ui-card.entry.js +24 -0
  281. package/dist/esm/dda-vertical-stepper.entry.js +4 -7
  282. package/dist/esm/dda.js +6 -7
  283. package/dist/esm/{index-52b38a93.js → index-CnOk80gh.js} +789 -557
  284. package/dist/esm/index.js +12 -14
  285. package/dist/esm/loader.js +4 -6
  286. package/dist/types/components/dda-accordion/dda-accordion.d.ts +1 -12
  287. package/dist/types/components/dda-accordion/dda-accordion.stories.d.ts +2 -32
  288. package/dist/types/components/dda-alert/dda-alert.d.ts +7 -8
  289. package/dist/types/components/dda-alert/dda-alert.stories.d.ts +9 -13
  290. package/dist/types/components/dda-attach-file/dda-attach-file.d.ts +3 -18
  291. package/dist/types/components/dda-attach-file/dda-attach-file.stories.d.ts +6 -32
  292. package/dist/types/components/dda-avatar/dda-avatar.d.ts +0 -2
  293. package/dist/types/components/dda-avatar/dda-avatar.stories.d.ts +0 -4
  294. package/dist/types/components/dda-banner/dda-banner.d.ts +13 -0
  295. package/dist/types/components/dda-breadcrumb/dda-breadcrumb.d.ts +0 -5
  296. package/dist/types/components/dda-breadcrumb/dda-breadcrumb.stories.d.ts +0 -5
  297. package/dist/types/components/dda-button/dda-button.d.ts +6 -13
  298. package/dist/types/components/dda-button/dda-button.stories.d.ts +27 -23
  299. package/dist/types/components/dda-checkbox/dda-checkbox.d.ts +1 -5
  300. package/dist/types/components/dda-checkbox/dda-checkbox.stories.d.ts +18 -4
  301. package/dist/types/components/dda-chip/dda-chip.d.ts +1 -8
  302. package/dist/types/components/dda-chip/dda-chip.stories.d.ts +5 -18
  303. package/dist/types/components/dda-creditcard-field/dda-creditcard-field.d.ts +0 -11
  304. package/dist/types/components/dda-creditcard-field/dda-creditcard-field.stories.d.ts +0 -4
  305. package/dist/types/components/dda-dropdown/dda-dropdown.d.ts +9 -27
  306. package/dist/types/components/dda-dropdown/dda-dropdown.stories.d.ts +36 -28
  307. package/dist/types/components/dda-header/dda-header.d.ts +9 -74
  308. package/dist/types/components/dda-header/dda-header.stories.d.ts +3 -108
  309. package/dist/types/components/dda-home-banner/dda-home-banner.d.ts +1 -18
  310. package/dist/types/components/dda-home-banner/dda-home-banner.stories.d.ts +3 -4
  311. package/dist/types/components/dda-input/dda-input.d.ts +1 -19
  312. package/dist/types/components/dda-input/dda-input.stories.d.ts +0 -12
  313. package/dist/types/components/dda-link-button/dda-link-button.d.ts +4 -9
  314. package/dist/types/components/dda-link-button/dda-link-button.stories.d.ts +0 -37
  315. package/dist/types/components/dda-number-field/dda-number-field.d.ts +0 -7
  316. package/dist/types/components/dda-pagination/dda-pagination.d.ts +0 -3
  317. package/dist/types/components/dda-phonefield/dda-phonefield.d.ts +9 -26
  318. package/dist/types/components/dda-phonefield/dda-phonefield.stories.d.ts +6 -8
  319. package/dist/types/components/dda-radiobutton/dda-radiobutton.d.ts +0 -14
  320. package/dist/types/components/dda-radiobutton/dda-radiobutton.stories.d.ts +18 -19
  321. package/dist/types/components/dda-search-input/dda-search-input.d.ts +0 -22
  322. package/dist/types/components/dda-search-input/dda-search-input.stories.d.ts +0 -16
  323. package/dist/types/components/dda-select/dda-select.d.ts +3 -35
  324. package/dist/types/components/dda-select/dda-select.stories.d.ts +18 -21
  325. package/dist/types/components/dda-sticky-footer/dda-sticky-footer.d.ts +25 -35
  326. package/dist/types/components/dda-sticky-footer/dda-sticky-footer.stories.d.ts +0 -6
  327. package/dist/types/components/dda-tabs/dda-tabs.d.ts +4 -7
  328. package/dist/types/components/dda-tabs/dda-tabs.stories.d.ts +2 -8
  329. package/dist/types/components/dda-textarea/dda-textarea.d.ts +8 -23
  330. package/dist/types/components/dda-textarea/dda-textarea.stories.d.ts +0 -4
  331. package/dist/types/components/dda-toggle/dda-toggle.d.ts +0 -3
  332. package/dist/types/components/dda-ui-card/dda-ui-card.d.ts +13 -0
  333. package/dist/types/components.d.ts +1365 -1285
  334. package/dist/types/stencil-public-runtime.d.ts +193 -12
  335. package/package.json +6 -6
  336. package/readme.md +78 -256
  337. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  338. package/dist/cjs/dda-accordion.cjs.entry.js.map +0 -1
  339. package/dist/cjs/dda-alert.cjs.entry.js.map +0 -1
  340. package/dist/cjs/dda-attach-file.cjs.entry.js.map +0 -1
  341. package/dist/cjs/dda-avatar.cjs.entry.js.map +0 -1
  342. package/dist/cjs/dda-banner-card.cjs.entry.js +0 -28
  343. package/dist/cjs/dda-banner-card.cjs.entry.js.map +0 -1
  344. package/dist/cjs/dda-breadcrumb.cjs.entry.js.map +0 -1
  345. package/dist/cjs/dda-button.cjs.entry.js.map +0 -1
  346. package/dist/cjs/dda-centered-image-card.cjs.entry.js +0 -40
  347. package/dist/cjs/dda-centered-image-card.cjs.entry.js.map +0 -1
  348. package/dist/cjs/dda-checkbox.cjs.entry.js.map +0 -1
  349. package/dist/cjs/dda-chip.cjs.entry.js.map +0 -1
  350. package/dist/cjs/dda-credit-card.cjs.entry.js.map +0 -1
  351. package/dist/cjs/dda-creditcard-field.cjs.entry.js.map +0 -1
  352. package/dist/cjs/dda-custom-card.cjs.entry.js +0 -37
  353. package/dist/cjs/dda-custom-card.cjs.entry.js.map +0 -1
  354. package/dist/cjs/dda-dropdown.cjs.entry.js.map +0 -1
  355. package/dist/cjs/dda-event-card.cjs.entry.js +0 -53
  356. package/dist/cjs/dda-event-card.cjs.entry.js.map +0 -1
  357. package/dist/cjs/dda-footer.cjs.entry.js.map +0 -1
  358. package/dist/cjs/dda-header-menu_3.cjs.entry.js +0 -271
  359. package/dist/cjs/dda-header-menu_3.cjs.entry.js.map +0 -1
  360. package/dist/cjs/dda-header.cjs.entry.js.map +0 -1
  361. package/dist/cjs/dda-home-banner.cjs.entry.js.map +0 -1
  362. package/dist/cjs/dda-home-carousel.cjs.entry.js +0 -110
  363. package/dist/cjs/dda-home-carousel.cjs.entry.js.map +0 -1
  364. package/dist/cjs/dda-horizontal-stepper.cjs.entry.js.map +0 -1
  365. package/dist/cjs/dda-image-card.cjs.entry.js +0 -34
  366. package/dist/cjs/dda-image-card.cjs.entry.js.map +0 -1
  367. package/dist/cjs/dda-information-card.cjs.entry.js +0 -32
  368. package/dist/cjs/dda-information-card.cjs.entry.js.map +0 -1
  369. package/dist/cjs/dda-link-button.cjs.entry.js +0 -71
  370. package/dist/cjs/dda-link-button.cjs.entry.js.map +0 -1
  371. package/dist/cjs/dda-number-field.cjs.entry.js.map +0 -1
  372. package/dist/cjs/dda-pagination.cjs.entry.js.map +0 -1
  373. package/dist/cjs/dda-phonefield.cjs.entry.js.map +0 -1
  374. package/dist/cjs/dda-pricing-card.cjs.entry.js +0 -38
  375. package/dist/cjs/dda-pricing-card.cjs.entry.js.map +0 -1
  376. package/dist/cjs/dda-progressbar.cjs.entry.js.map +0 -1
  377. package/dist/cjs/dda-range-slider.cjs.entry.js.map +0 -1
  378. package/dist/cjs/dda-scroll-icon.cjs.entry.js +0 -32
  379. package/dist/cjs/dda-scroll-icon.cjs.entry.js.map +0 -1
  380. package/dist/cjs/dda-search-input.cjs.entry.js.map +0 -1
  381. package/dist/cjs/dda-segmented-tabs.cjs.entry.js.map +0 -1
  382. package/dist/cjs/dda-select.cjs.entry.js.map +0 -1
  383. package/dist/cjs/dda-slider.cjs.entry.js +0 -256
  384. package/dist/cjs/dda-slider.cjs.entry.js.map +0 -1
  385. package/dist/cjs/dda-split-button.cjs.entry.js +0 -104
  386. package/dist/cjs/dda-split-button.cjs.entry.js.map +0 -1
  387. package/dist/cjs/dda-sticky-footer.cjs.entry.js.map +0 -1
  388. package/dist/cjs/dda-tabs.cjs.entry.js.map +0 -1
  389. package/dist/cjs/dda-team-member-card.cjs.entry.js +0 -29
  390. package/dist/cjs/dda-team-member-card.cjs.entry.js.map +0 -1
  391. package/dist/cjs/dda-teamsection-card.cjs.entry.js +0 -90
  392. package/dist/cjs/dda-teamsection-card.cjs.entry.js.map +0 -1
  393. package/dist/cjs/dda-textarea.cjs.entry.js.map +0 -1
  394. package/dist/cjs/dda-toggle.cjs.entry.js.map +0 -1
  395. package/dist/cjs/dda-tooltip.cjs.entry.js.map +0 -1
  396. package/dist/cjs/dda-vertical-stepper.cjs.entry.js.map +0 -1
  397. package/dist/cjs/dda.cjs.js.map +0 -1
  398. package/dist/cjs/index-39924b9e.js.map +0 -1
  399. package/dist/cjs/index.cjs.js.map +0 -1
  400. package/dist/cjs/loader.cjs.js.map +0 -1
  401. package/dist/collection/assets/img/Team-Section-Card-1.svg +0 -9
  402. package/dist/collection/assets/img/icn/file_icons/icn-Excel.svg +0 -9
  403. package/dist/collection/assets/img/icn/file_icons/icn-Image.svg +0 -6
  404. package/dist/collection/assets/img/icn/file_icons/icn-OneNote.svg +0 -6
  405. package/dist/collection/assets/img/icn/file_icons/icn-PDF.svg +0 -7
  406. package/dist/collection/assets/img/icn/file_icons/icn-PowerPoint.svg +0 -10
  407. package/dist/collection/assets/img/icn/file_icons/icn-Video.svg +0 -5
  408. package/dist/collection/assets/img/icn/file_icons/icn-Word.svg +0 -10
  409. package/dist/collection/assets/img/icn/file_icons/icn-default.svg +0 -1
  410. package/dist/collection/assets/img/icn/icn-Config.svg +0 -9
  411. package/dist/collection/assets/img/icn/icn-card-facebook.svg +0 -11
  412. package/dist/collection/assets/img/icn/icn-card-linkdin.svg +0 -4
  413. package/dist/collection/assets/img/icn/icn-card-telegram.svg +0 -11
  414. package/dist/collection/assets/img/icn/icn-card-twitter-x.svg +0 -10
  415. package/dist/collection/assets/img/icn/icn-master-card.svg +0 -1
  416. package/dist/collection/components/cards/dda-centered-image-card/dda-centered-image-card.js +0 -268
  417. package/dist/collection/components/cards/dda-centered-image-card/dda-centered-image-card.js.map +0 -1
  418. package/dist/collection/components/cards/dda-centered-image-card/dda-centered-image-card.stories.js +0 -103
  419. package/dist/collection/components/cards/dda-centered-image-card/dda-centered-image-card.stories.js.map +0 -1
  420. package/dist/collection/components/cards/dda-image-card/dda-image-card.js +0 -589
  421. package/dist/collection/components/cards/dda-image-card/dda-image-card.js.map +0 -1
  422. package/dist/collection/components/cards/dda-image-card/dda-image-card.stories.js +0 -185
  423. package/dist/collection/components/cards/dda-image-card/dda-image-card.stories.js.map +0 -1
  424. package/dist/collection/components/cards/dda-information-card/dda-information-card.js +0 -509
  425. package/dist/collection/components/cards/dda-information-card/dda-information-card.js.map +0 -1
  426. package/dist/collection/components/cards/dda-information-card/dda-information-card.stories.js +0 -155
  427. package/dist/collection/components/cards/dda-information-card/dda-information-card.stories.js.map +0 -1
  428. package/dist/collection/components/cards/dda-team-member-card/dda-team-member-card.css +0 -47
  429. package/dist/collection/components/cards/dda-team-member-card/dda-team-member-card.js +0 -165
  430. package/dist/collection/components/cards/dda-team-member-card/dda-team-member-card.js.map +0 -1
  431. package/dist/collection/components/cards/dda-team-member-card/dda-team-member-card.stories.js +0 -85
  432. package/dist/collection/components/cards/dda-team-member-card/dda-team-member-card.stories.js.map +0 -1
  433. package/dist/collection/components/dda-accordion/dda-accordion.js.map +0 -1
  434. package/dist/collection/components/dda-accordion/dda-accordion.stories.js.map +0 -1
  435. package/dist/collection/components/dda-alert/dda-alert.js.map +0 -1
  436. package/dist/collection/components/dda-alert/dda-alert.stories.js.map +0 -1
  437. package/dist/collection/components/dda-attach-file/dda-attach-file.js.map +0 -1
  438. package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js.map +0 -1
  439. package/dist/collection/components/dda-avatar/dda-avatar.js.map +0 -1
  440. package/dist/collection/components/dda-avatar/dda-avatar.stories.js.map +0 -1
  441. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js.map +0 -1
  442. package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.stories.js.map +0 -1
  443. package/dist/collection/components/dda-button/dda-button.js.map +0 -1
  444. package/dist/collection/components/dda-button/dda-button.stories.js.map +0 -1
  445. package/dist/collection/components/dda-cards/dda-banner-card/dda-banner-card.js.map +0 -1
  446. package/dist/collection/components/dda-cards/dda-banner-card/dda-banner-card.stories.js +0 -123
  447. package/dist/collection/components/dda-cards/dda-banner-card/dda-banner-card.stories.js.map +0 -1
  448. package/dist/collection/components/dda-cards/dda-custom-card/dda-custom-card.css +0 -8
  449. package/dist/collection/components/dda-cards/dda-custom-card/dda-custom-card.js +0 -157
  450. package/dist/collection/components/dda-cards/dda-custom-card/dda-custom-card.js.map +0 -1
  451. package/dist/collection/components/dda-cards/dda-custom-card/dda-custom-card.stories.js +0 -53
  452. package/dist/collection/components/dda-cards/dda-custom-card/dda-custom-card.stories.js.map +0 -1
  453. package/dist/collection/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.js +0 -298
  454. package/dist/collection/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.js.map +0 -1
  455. package/dist/collection/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.stories.js +0 -87
  456. package/dist/collection/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.stories.js.map +0 -1
  457. package/dist/collection/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.js +0 -341
  458. package/dist/collection/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.js.map +0 -1
  459. package/dist/collection/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.stories.js +0 -80
  460. package/dist/collection/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.stories.js.map +0 -1
  461. package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.js +0 -324
  462. package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.js.map +0 -1
  463. package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.stories.js +0 -232
  464. package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.stories.js.map +0 -1
  465. package/dist/collection/components/dda-checkbox/dda-checkbox.js.map +0 -1
  466. package/dist/collection/components/dda-checkbox/dda-checkbox.stories.js.map +0 -1
  467. package/dist/collection/components/dda-chip/dda-chip.js.map +0 -1
  468. package/dist/collection/components/dda-chip/dda-chip.stories.js.map +0 -1
  469. package/dist/collection/components/dda-credit-card/dda-credit-card.js.map +0 -1
  470. package/dist/collection/components/dda-credit-card/dda-credit-card.stories.js.map +0 -1
  471. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js.map +0 -1
  472. package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.stories.js.map +0 -1
  473. package/dist/collection/components/dda-dropdown/dda-dropdown.js.map +0 -1
  474. package/dist/collection/components/dda-dropdown/dda-dropdown.stories.js.map +0 -1
  475. package/dist/collection/components/dda-footer/dda-footer.js.map +0 -1
  476. package/dist/collection/components/dda-footer/dda-footer.stories.js.map +0 -1
  477. package/dist/collection/components/dda-header/dda-header-main.css +0 -1006
  478. package/dist/collection/components/dda-header/dda-header.js.map +0 -1
  479. package/dist/collection/components/dda-header/dda-header.stories.js.map +0 -1
  480. package/dist/collection/components/dda-header-menu/dda-header-menu.css +0 -295
  481. package/dist/collection/components/dda-header-menu/dda-header-menu.js +0 -222
  482. package/dist/collection/components/dda-header-menu/dda-header-menu.js.map +0 -1
  483. package/dist/collection/components/dda-header-menu/dda-header-menu.stories.js +0 -125
  484. package/dist/collection/components/dda-header-menu/dda-header-menu.stories.js.map +0 -1
  485. package/dist/collection/components/dda-home-banner/dda-home-banner.js.map +0 -1
  486. package/dist/collection/components/dda-home-banner/dda-home-banner.stories.js.map +0 -1
  487. package/dist/collection/components/dda-home-carousel/dda-home-carousel.css +0 -126
  488. package/dist/collection/components/dda-home-carousel/dda-home-carousel.js +0 -194
  489. package/dist/collection/components/dda-home-carousel/dda-home-carousel.js.map +0 -1
  490. package/dist/collection/components/dda-home-carousel/dda-home-carousel.stories.js +0 -138
  491. package/dist/collection/components/dda-home-carousel/dda-home-carousel.stories.js.map +0 -1
  492. package/dist/collection/components/dda-input/dda-input.js.map +0 -1
  493. package/dist/collection/components/dda-input/dda-input.stories.js.map +0 -1
  494. package/dist/collection/components/dda-link-button/dda-link-button.js.map +0 -1
  495. package/dist/collection/components/dda-link-button/dda-link-button.stories.js.map +0 -1
  496. package/dist/collection/components/dda-number-field/dda-number-field.js.map +0 -1
  497. package/dist/collection/components/dda-number-field/dda-number-field.stories.js.map +0 -1
  498. package/dist/collection/components/dda-pagination/dda-pagination.js.map +0 -1
  499. package/dist/collection/components/dda-pagination/dda-pagination.stories.js.map +0 -1
  500. package/dist/collection/components/dda-phonefield/dda-phonefield.js.map +0 -1
  501. package/dist/collection/components/dda-phonefield/dda-phonefield.stories.js.map +0 -1
  502. package/dist/collection/components/dda-progressbar/dda-progressbar.js.map +0 -1
  503. package/dist/collection/components/dda-progressbar/dda-progressbar.stories.js.map +0 -1
  504. package/dist/collection/components/dda-radiobutton/dda-radiobutton.js.map +0 -1
  505. package/dist/collection/components/dda-radiobutton/dda-radiobutton.stories.js.map +0 -1
  506. package/dist/collection/components/dda-range-slider/dda-range-slider.js.map +0 -1
  507. package/dist/collection/components/dda-range-slider/dda-range-slider.stories.js.map +0 -1
  508. package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.css +0 -83
  509. package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.js +0 -115
  510. package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.js.map +0 -1
  511. package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.stories.js +0 -59
  512. package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.stories.js.map +0 -1
  513. package/dist/collection/components/dda-search-input/dda-search-input.js.map +0 -1
  514. package/dist/collection/components/dda-search-input/dda-search-input.stories.js.map +0 -1
  515. package/dist/collection/components/dda-select/dda-select.js.map +0 -1
  516. package/dist/collection/components/dda-select/dda-select.stories.js.map +0 -1
  517. package/dist/collection/components/dda-slider/dda-slider.css +0 -156
  518. package/dist/collection/components/dda-slider/dda-slider.js +0 -332
  519. package/dist/collection/components/dda-slider/dda-slider.js.map +0 -1
  520. package/dist/collection/components/dda-slider/dda-slider.stories.js +0 -126
  521. package/dist/collection/components/dda-slider/dda-slider.stories.js.map +0 -1
  522. package/dist/collection/components/dda-split-button/dda-split-button.js +0 -442
  523. package/dist/collection/components/dda-split-button/dda-split-button.js.map +0 -1
  524. package/dist/collection/components/dda-split-button/dda-split-button.stories.js +0 -144
  525. package/dist/collection/components/dda-split-button/dda-split-button.stories.js.map +0 -1
  526. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js.map +0 -1
  527. package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js.map +0 -1
  528. package/dist/collection/components/dda-tabs/dda-tabs.js.map +0 -1
  529. package/dist/collection/components/dda-tabs/dda-tabs.stories.js.map +0 -1
  530. package/dist/collection/components/dda-textarea/dda-textarea.js.map +0 -1
  531. package/dist/collection/components/dda-textarea/dda-textarea.stories.js.map +0 -1
  532. package/dist/collection/components/dda-toggle/dda-toggle.js.map +0 -1
  533. package/dist/collection/components/dda-toggle/dda-toggle.stories.js.map +0 -1
  534. package/dist/collection/components/dda-tooltip/dda-tooltip.js.map +0 -1
  535. package/dist/collection/components/dda-tooltip/dda-tooltip.stories.js.map +0 -1
  536. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js.map +0 -1
  537. package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.stories.js.map +0 -1
  538. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js.map +0 -1
  539. package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.stories.js.map +0 -1
  540. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js.map +0 -1
  541. package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.stories.js.map +0 -1
  542. package/dist/collection/index.js.map +0 -1
  543. package/dist/collection/utils/utils.js.map +0 -1
  544. package/dist/components/dda-accordion.js.map +0 -1
  545. package/dist/components/dda-alert.js.map +0 -1
  546. package/dist/components/dda-attach-file.js.map +0 -1
  547. package/dist/components/dda-avatar.js.map +0 -1
  548. package/dist/components/dda-banner-card.d.ts +0 -11
  549. package/dist/components/dda-banner-card.js +0 -8
  550. package/dist/components/dda-banner-card.js.map +0 -1
  551. package/dist/components/dda-breadcrumb.js.map +0 -1
  552. package/dist/components/dda-button.js.map +0 -1
  553. package/dist/components/dda-centered-image-card.d.ts +0 -11
  554. package/dist/components/dda-centered-image-card.js +0 -73
  555. package/dist/components/dda-centered-image-card.js.map +0 -1
  556. package/dist/components/dda-checkbox.js.map +0 -1
  557. package/dist/components/dda-chip.js.map +0 -1
  558. package/dist/components/dda-credit-card.js.map +0 -1
  559. package/dist/components/dda-creditcard-field.js.map +0 -1
  560. package/dist/components/dda-custom-card.d.ts +0 -11
  561. package/dist/components/dda-custom-card.js +0 -64
  562. package/dist/components/dda-custom-card.js.map +0 -1
  563. package/dist/components/dda-dropdown.js.map +0 -1
  564. package/dist/components/dda-event-card.d.ts +0 -11
  565. package/dist/components/dda-event-card.js +0 -99
  566. package/dist/components/dda-event-card.js.map +0 -1
  567. package/dist/components/dda-footer.js.map +0 -1
  568. package/dist/components/dda-header-menu.d.ts +0 -11
  569. package/dist/components/dda-header-menu.js +0 -8
  570. package/dist/components/dda-header-menu.js.map +0 -1
  571. package/dist/components/dda-header.js.map +0 -1
  572. package/dist/components/dda-home-banner.js.map +0 -1
  573. package/dist/components/dda-home-carousel.d.ts +0 -11
  574. package/dist/components/dda-home-carousel.js +0 -137
  575. package/dist/components/dda-home-carousel.js.map +0 -1
  576. package/dist/components/dda-horizontal-stepper.js.map +0 -1
  577. package/dist/components/dda-image-card.js +0 -83
  578. package/dist/components/dda-image-card.js.map +0 -1
  579. package/dist/components/dda-information-card.d.ts +0 -11
  580. package/dist/components/dda-information-card.js +0 -77
  581. package/dist/components/dda-information-card.js.map +0 -1
  582. package/dist/components/dda-input.js.map +0 -1
  583. package/dist/components/dda-link-button.js.map +0 -1
  584. package/dist/components/dda-number-field.js.map +0 -1
  585. package/dist/components/dda-pagination.js.map +0 -1
  586. package/dist/components/dda-phonefield.js.map +0 -1
  587. package/dist/components/dda-pricing-card.d.ts +0 -11
  588. package/dist/components/dda-pricing-card.js +0 -81
  589. package/dist/components/dda-pricing-card.js.map +0 -1
  590. package/dist/components/dda-progressbar.js.map +0 -1
  591. package/dist/components/dda-radiobutton.js.map +0 -1
  592. package/dist/components/dda-range-slider.js.map +0 -1
  593. package/dist/components/dda-scroll-icon.d.ts +0 -11
  594. package/dist/components/dda-scroll-icon.js +0 -8
  595. package/dist/components/dda-scroll-icon.js.map +0 -1
  596. package/dist/components/dda-search-input.js.map +0 -1
  597. package/dist/components/dda-segmented-tabs.js.map +0 -1
  598. package/dist/components/dda-select.js.map +0 -1
  599. package/dist/components/dda-slider.js +0 -279
  600. package/dist/components/dda-slider.js.map +0 -1
  601. package/dist/components/dda-split-button.d.ts +0 -11
  602. package/dist/components/dda-split-button.js +0 -136
  603. package/dist/components/dda-split-button.js.map +0 -1
  604. package/dist/components/dda-sticky-footer.js.map +0 -1
  605. package/dist/components/dda-tabs.js.map +0 -1
  606. package/dist/components/dda-team-member-card.d.ts +0 -11
  607. package/dist/components/dda-team-member-card.js +0 -51
  608. package/dist/components/dda-team-member-card.js.map +0 -1
  609. package/dist/components/dda-teamsection-card.d.ts +0 -11
  610. package/dist/components/dda-teamsection-card.js +0 -119
  611. package/dist/components/dda-teamsection-card.js.map +0 -1
  612. package/dist/components/dda-textarea.js.map +0 -1
  613. package/dist/components/dda-toggle.js.map +0 -1
  614. package/dist/components/dda-tooltip.js.map +0 -1
  615. package/dist/components/dda-vertical-stepper.js.map +0 -1
  616. package/dist/components/index.js.map +0 -1
  617. package/dist/components/p-0bbf1225.js +0 -155
  618. package/dist/components/p-0bbf1225.js.map +0 -1
  619. package/dist/components/p-42b74b87.js +0 -102
  620. package/dist/components/p-42b74b87.js.map +0 -1
  621. package/dist/components/p-5e2018f2.js +0 -94
  622. package/dist/components/p-5e2018f2.js.map +0 -1
  623. package/dist/components/p-72204b95.js +0 -53
  624. package/dist/components/p-72204b95.js.map +0 -1
  625. package/dist/components/p-857c1ac9.js +0 -141
  626. package/dist/components/p-857c1ac9.js.map +0 -1
  627. package/dist/components/p-a29298cf.js +0 -51
  628. package/dist/components/p-a29298cf.js.map +0 -1
  629. package/dist/components/p-a7f02338.js +0 -90
  630. package/dist/components/p-a7f02338.js.map +0 -1
  631. package/dist/components/p-b7f0ebbb.js +0 -49
  632. package/dist/components/p-b7f0ebbb.js.map +0 -1
  633. package/dist/components/p-ba13ee0a.js +0 -41
  634. package/dist/components/p-ba13ee0a.js.map +0 -1
  635. package/dist/components/p-c30d0ada.js +0 -70
  636. package/dist/components/p-c30d0ada.js.map +0 -1
  637. package/dist/components/p-f6588843.js +0 -1535
  638. package/dist/components/p-f6588843.js.map +0 -1
  639. package/dist/dda/dda.css +0 -4
  640. package/dist/dda/dda.esm.js.map +0 -1
  641. package/dist/dda/index.esm.js.map +0 -1
  642. package/dist/dda/p-0905eb60.entry.js +0 -2
  643. package/dist/dda/p-0905eb60.entry.js.map +0 -1
  644. package/dist/dda/p-0bd5576f.entry.js +0 -2
  645. package/dist/dda/p-0bd5576f.entry.js.map +0 -1
  646. package/dist/dda/p-14d622c2.entry.js +0 -2
  647. package/dist/dda/p-14d622c2.entry.js.map +0 -1
  648. package/dist/dda/p-1b339a0a.js +0 -3
  649. package/dist/dda/p-1b339a0a.js.map +0 -1
  650. package/dist/dda/p-1fa27da3.entry.js +0 -2
  651. package/dist/dda/p-1fa27da3.entry.js.map +0 -1
  652. package/dist/dda/p-207203ae.entry.js +0 -2
  653. package/dist/dda/p-207203ae.entry.js.map +0 -1
  654. package/dist/dda/p-24489bc6.entry.js +0 -2
  655. package/dist/dda/p-24489bc6.entry.js.map +0 -1
  656. package/dist/dda/p-26bb8828.entry.js +0 -2
  657. package/dist/dda/p-26bb8828.entry.js.map +0 -1
  658. package/dist/dda/p-2821386c.entry.js +0 -2
  659. package/dist/dda/p-2821386c.entry.js.map +0 -1
  660. package/dist/dda/p-2d505693.entry.js +0 -2
  661. package/dist/dda/p-2d505693.entry.js.map +0 -1
  662. package/dist/dda/p-37dbab49.entry.js +0 -2
  663. package/dist/dda/p-37dbab49.entry.js.map +0 -1
  664. package/dist/dda/p-3fef96a8.entry.js +0 -2
  665. package/dist/dda/p-3fef96a8.entry.js.map +0 -1
  666. package/dist/dda/p-42c30672.entry.js +0 -2
  667. package/dist/dda/p-42c30672.entry.js.map +0 -1
  668. package/dist/dda/p-462f0128.entry.js +0 -2
  669. package/dist/dda/p-462f0128.entry.js.map +0 -1
  670. package/dist/dda/p-54c8ab80.entry.js +0 -2
  671. package/dist/dda/p-54c8ab80.entry.js.map +0 -1
  672. package/dist/dda/p-5695b505.entry.js +0 -2
  673. package/dist/dda/p-5695b505.entry.js.map +0 -1
  674. package/dist/dda/p-5bf0d4fe.entry.js +0 -2
  675. package/dist/dda/p-5bf0d4fe.entry.js.map +0 -1
  676. package/dist/dda/p-5d47716e.entry.js +0 -2
  677. package/dist/dda/p-5d47716e.entry.js.map +0 -1
  678. package/dist/dda/p-5f80ef51.entry.js +0 -2
  679. package/dist/dda/p-5f80ef51.entry.js.map +0 -1
  680. package/dist/dda/p-60d855a6.entry.js +0 -2
  681. package/dist/dda/p-60d855a6.entry.js.map +0 -1
  682. package/dist/dda/p-6151a1f2.entry.js +0 -2
  683. package/dist/dda/p-6151a1f2.entry.js.map +0 -1
  684. package/dist/dda/p-6842a5e5.entry.js +0 -2
  685. package/dist/dda/p-6842a5e5.entry.js.map +0 -1
  686. package/dist/dda/p-68c80bba.entry.js +0 -2
  687. package/dist/dda/p-68c80bba.entry.js.map +0 -1
  688. package/dist/dda/p-6aa213c1.entry.js +0 -2
  689. package/dist/dda/p-6aa213c1.entry.js.map +0 -1
  690. package/dist/dda/p-6d955874.entry.js +0 -2
  691. package/dist/dda/p-6d955874.entry.js.map +0 -1
  692. package/dist/dda/p-6fd79768.entry.js +0 -2
  693. package/dist/dda/p-6fd79768.entry.js.map +0 -1
  694. package/dist/dda/p-764d2be3.entry.js +0 -2
  695. package/dist/dda/p-764d2be3.entry.js.map +0 -1
  696. package/dist/dda/p-7caaf11f.entry.js +0 -2
  697. package/dist/dda/p-7caaf11f.entry.js.map +0 -1
  698. package/dist/dda/p-8a9c5267.entry.js +0 -2
  699. package/dist/dda/p-8a9c5267.entry.js.map +0 -1
  700. package/dist/dda/p-8c7d0c73.entry.js +0 -2
  701. package/dist/dda/p-8c7d0c73.entry.js.map +0 -1
  702. package/dist/dda/p-9636f669.entry.js +0 -2
  703. package/dist/dda/p-9636f669.entry.js.map +0 -1
  704. package/dist/dda/p-98021655.entry.js +0 -2
  705. package/dist/dda/p-98021655.entry.js.map +0 -1
  706. package/dist/dda/p-a11bf02a.entry.js +0 -2
  707. package/dist/dda/p-a11bf02a.entry.js.map +0 -1
  708. package/dist/dda/p-a3f284bc.entry.js +0 -2
  709. package/dist/dda/p-a3f284bc.entry.js.map +0 -1
  710. package/dist/dda/p-aefe49c4.entry.js +0 -2
  711. package/dist/dda/p-aefe49c4.entry.js.map +0 -1
  712. package/dist/dda/p-b48e061c.entry.js +0 -2
  713. package/dist/dda/p-b48e061c.entry.js.map +0 -1
  714. package/dist/dda/p-ba90f4be.entry.js +0 -2
  715. package/dist/dda/p-ba90f4be.entry.js.map +0 -1
  716. package/dist/dda/p-bd0d09ff.entry.js +0 -2
  717. package/dist/dda/p-bd0d09ff.entry.js.map +0 -1
  718. package/dist/dda/p-c766ae47.entry.js +0 -2
  719. package/dist/dda/p-c766ae47.entry.js.map +0 -1
  720. package/dist/dda/p-d7434fd9.entry.js +0 -2
  721. package/dist/dda/p-d7434fd9.entry.js.map +0 -1
  722. package/dist/dda/p-d93f2102.entry.js +0 -2
  723. package/dist/dda/p-d93f2102.entry.js.map +0 -1
  724. package/dist/dda/p-dc443758.entry.js +0 -2
  725. package/dist/dda/p-dc443758.entry.js.map +0 -1
  726. package/dist/dda/p-dca57f55.entry.js +0 -2
  727. package/dist/dda/p-dca57f55.entry.js.map +0 -1
  728. package/dist/dda/p-e1255160.js +0 -2
  729. package/dist/dda/p-e1255160.js.map +0 -1
  730. package/dist/dda/p-e808d48a.entry.js +0 -2
  731. package/dist/dda/p-e808d48a.entry.js.map +0 -1
  732. package/dist/dda/p-eb472057.entry.js +0 -2
  733. package/dist/dda/p-eb472057.entry.js.map +0 -1
  734. package/dist/esm/app-globals-0f993ce5.js.map +0 -1
  735. package/dist/esm/dda-accordion.entry.js.map +0 -1
  736. package/dist/esm/dda-alert.entry.js.map +0 -1
  737. package/dist/esm/dda-attach-file.entry.js.map +0 -1
  738. package/dist/esm/dda-avatar.entry.js.map +0 -1
  739. package/dist/esm/dda-banner-card.entry.js +0 -24
  740. package/dist/esm/dda-banner-card.entry.js.map +0 -1
  741. package/dist/esm/dda-breadcrumb.entry.js.map +0 -1
  742. package/dist/esm/dda-button.entry.js.map +0 -1
  743. package/dist/esm/dda-centered-image-card.entry.js +0 -36
  744. package/dist/esm/dda-centered-image-card.entry.js.map +0 -1
  745. package/dist/esm/dda-checkbox.entry.js.map +0 -1
  746. package/dist/esm/dda-chip.entry.js.map +0 -1
  747. package/dist/esm/dda-credit-card.entry.js.map +0 -1
  748. package/dist/esm/dda-creditcard-field.entry.js.map +0 -1
  749. package/dist/esm/dda-custom-card.entry.js +0 -33
  750. package/dist/esm/dda-custom-card.entry.js.map +0 -1
  751. package/dist/esm/dda-dropdown.entry.js.map +0 -1
  752. package/dist/esm/dda-event-card.entry.js +0 -49
  753. package/dist/esm/dda-event-card.entry.js.map +0 -1
  754. package/dist/esm/dda-footer.entry.js.map +0 -1
  755. package/dist/esm/dda-header-menu_3.entry.js +0 -265
  756. package/dist/esm/dda-header-menu_3.entry.js.map +0 -1
  757. package/dist/esm/dda-header.entry.js.map +0 -1
  758. package/dist/esm/dda-home-banner.entry.js.map +0 -1
  759. package/dist/esm/dda-home-carousel.entry.js +0 -106
  760. package/dist/esm/dda-home-carousel.entry.js.map +0 -1
  761. package/dist/esm/dda-horizontal-stepper.entry.js.map +0 -1
  762. package/dist/esm/dda-image-card.entry.js +0 -30
  763. package/dist/esm/dda-image-card.entry.js.map +0 -1
  764. package/dist/esm/dda-information-card.entry.js +0 -28
  765. package/dist/esm/dda-information-card.entry.js.map +0 -1
  766. package/dist/esm/dda-link-button.entry.js +0 -67
  767. package/dist/esm/dda-link-button.entry.js.map +0 -1
  768. package/dist/esm/dda-number-field.entry.js.map +0 -1
  769. package/dist/esm/dda-pagination.entry.js.map +0 -1
  770. package/dist/esm/dda-phonefield.entry.js.map +0 -1
  771. package/dist/esm/dda-pricing-card.entry.js +0 -34
  772. package/dist/esm/dda-pricing-card.entry.js.map +0 -1
  773. package/dist/esm/dda-progressbar.entry.js.map +0 -1
  774. package/dist/esm/dda-range-slider.entry.js.map +0 -1
  775. package/dist/esm/dda-scroll-icon.entry.js +0 -28
  776. package/dist/esm/dda-scroll-icon.entry.js.map +0 -1
  777. package/dist/esm/dda-search-input.entry.js.map +0 -1
  778. package/dist/esm/dda-segmented-tabs.entry.js.map +0 -1
  779. package/dist/esm/dda-select.entry.js.map +0 -1
  780. package/dist/esm/dda-slider.entry.js +0 -252
  781. package/dist/esm/dda-slider.entry.js.map +0 -1
  782. package/dist/esm/dda-split-button.entry.js +0 -100
  783. package/dist/esm/dda-split-button.entry.js.map +0 -1
  784. package/dist/esm/dda-sticky-footer.entry.js.map +0 -1
  785. package/dist/esm/dda-tabs.entry.js.map +0 -1
  786. package/dist/esm/dda-team-member-card.entry.js +0 -25
  787. package/dist/esm/dda-team-member-card.entry.js.map +0 -1
  788. package/dist/esm/dda-teamsection-card.entry.js +0 -86
  789. package/dist/esm/dda-teamsection-card.entry.js.map +0 -1
  790. package/dist/esm/dda-textarea.entry.js.map +0 -1
  791. package/dist/esm/dda-toggle.entry.js.map +0 -1
  792. package/dist/esm/dda-tooltip.entry.js.map +0 -1
  793. package/dist/esm/dda-vertical-stepper.entry.js.map +0 -1
  794. package/dist/esm/dda.js.map +0 -1
  795. package/dist/esm/index-52b38a93.js.map +0 -1
  796. package/dist/esm/index.js.map +0 -1
  797. package/dist/esm/loader.js.map +0 -1
  798. package/dist/types/components/cards/dda-centered-image-card/dda-centered-image-card.d.ts +0 -22
  799. package/dist/types/components/cards/dda-centered-image-card/dda-centered-image-card.stories.d.ts +0 -63
  800. package/dist/types/components/cards/dda-image-card/dda-image-card.d.ts +0 -33
  801. package/dist/types/components/cards/dda-image-card/dda-image-card.stories.d.ts +0 -132
  802. package/dist/types/components/cards/dda-information-card/dda-information-card.d.ts +0 -29
  803. package/dist/types/components/cards/dda-information-card/dda-information-card.stories.d.ts +0 -107
  804. package/dist/types/components/cards/dda-team-member-card/dda-team-member-card.d.ts +0 -10
  805. package/dist/types/components/cards/dda-team-member-card/dda-team-member-card.stories.d.ts +0 -51
  806. package/dist/types/components/dda-cards/dda-banner-card/dda-banner-card.d.ts +0 -14
  807. package/dist/types/components/dda-cards/dda-banner-card/dda-banner-card.stories.d.ts +0 -63
  808. package/dist/types/components/dda-cards/dda-custom-card/dda-custom-card.d.ts +0 -16
  809. package/dist/types/components/dda-cards/dda-custom-card/dda-custom-card.stories.d.ts +0 -37
  810. package/dist/types/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.d.ts +0 -25
  811. package/dist/types/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.stories.d.ts +0 -54
  812. package/dist/types/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.d.ts +0 -22
  813. package/dist/types/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.stories.d.ts +0 -63
  814. package/dist/types/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.d.ts +0 -26
  815. package/dist/types/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.stories.d.ts +0 -64
  816. package/dist/types/components/dda-header-menu/dda-header-menu.d.ts +0 -27
  817. package/dist/types/components/dda-header-menu/dda-header-menu.stories.d.ts +0 -19
  818. package/dist/types/components/dda-home-carousel/dda-home-carousel.d.ts +0 -17
  819. package/dist/types/components/dda-home-carousel/dda-home-carousel.stories.d.ts +0 -35
  820. package/dist/types/components/dda-scroll-icon/dda-scroll-icon.d.ts +0 -7
  821. package/dist/types/components/dda-scroll-icon/dda-scroll-icon.stories.d.ts +0 -39
  822. package/dist/types/components/dda-slider/dda-slider.d.ts +0 -30
  823. package/dist/types/components/dda-slider/dda-slider.stories.d.ts +0 -30
  824. package/dist/types/components/dda-split-button/dda-split-button.d.ts +0 -36
  825. package/dist/types/components/dda-split-button/dda-split-button.stories.d.ts +0 -79
  826. package/loader/package.json +0 -11
  827. package/www/build/dda.css +0 -4
  828. package/www/build/dda.esm.js +0 -2
  829. package/www/build/dda.esm.js.map +0 -1
  830. package/www/build/dda.js +0 -33
  831. package/www/build/index.esm.js +0 -2
  832. package/www/build/index.esm.js.map +0 -1
  833. package/www/build/p-0905eb60.entry.js +0 -2
  834. package/www/build/p-0905eb60.entry.js.map +0 -1
  835. package/www/build/p-0bd5576f.entry.js +0 -2
  836. package/www/build/p-0bd5576f.entry.js.map +0 -1
  837. package/www/build/p-14d622c2.entry.js +0 -2
  838. package/www/build/p-14d622c2.entry.js.map +0 -1
  839. package/www/build/p-1b339a0a.js +0 -3
  840. package/www/build/p-1b339a0a.js.map +0 -1
  841. package/www/build/p-1fa27da3.entry.js +0 -2
  842. package/www/build/p-1fa27da3.entry.js.map +0 -1
  843. package/www/build/p-207203ae.entry.js +0 -2
  844. package/www/build/p-207203ae.entry.js.map +0 -1
  845. package/www/build/p-24489bc6.entry.js +0 -2
  846. package/www/build/p-24489bc6.entry.js.map +0 -1
  847. package/www/build/p-26bb8828.entry.js +0 -2
  848. package/www/build/p-26bb8828.entry.js.map +0 -1
  849. package/www/build/p-2821386c.entry.js +0 -2
  850. package/www/build/p-2821386c.entry.js.map +0 -1
  851. package/www/build/p-2d505693.entry.js +0 -2
  852. package/www/build/p-2d505693.entry.js.map +0 -1
  853. package/www/build/p-37dbab49.entry.js +0 -2
  854. package/www/build/p-37dbab49.entry.js.map +0 -1
  855. package/www/build/p-3fef96a8.entry.js +0 -2
  856. package/www/build/p-3fef96a8.entry.js.map +0 -1
  857. package/www/build/p-42c30672.entry.js +0 -2
  858. package/www/build/p-42c30672.entry.js.map +0 -1
  859. package/www/build/p-462f0128.entry.js +0 -2
  860. package/www/build/p-462f0128.entry.js.map +0 -1
  861. package/www/build/p-54c8ab80.entry.js +0 -2
  862. package/www/build/p-54c8ab80.entry.js.map +0 -1
  863. package/www/build/p-5695b505.entry.js +0 -2
  864. package/www/build/p-5695b505.entry.js.map +0 -1
  865. package/www/build/p-5bf0d4fe.entry.js +0 -2
  866. package/www/build/p-5bf0d4fe.entry.js.map +0 -1
  867. package/www/build/p-5d47716e.entry.js +0 -2
  868. package/www/build/p-5d47716e.entry.js.map +0 -1
  869. package/www/build/p-5f80ef51.entry.js +0 -2
  870. package/www/build/p-5f80ef51.entry.js.map +0 -1
  871. package/www/build/p-60d855a6.entry.js +0 -2
  872. package/www/build/p-60d855a6.entry.js.map +0 -1
  873. package/www/build/p-6151a1f2.entry.js +0 -2
  874. package/www/build/p-6151a1f2.entry.js.map +0 -1
  875. package/www/build/p-6842a5e5.entry.js +0 -2
  876. package/www/build/p-6842a5e5.entry.js.map +0 -1
  877. package/www/build/p-68c80bba.entry.js +0 -2
  878. package/www/build/p-68c80bba.entry.js.map +0 -1
  879. package/www/build/p-6aa213c1.entry.js +0 -2
  880. package/www/build/p-6aa213c1.entry.js.map +0 -1
  881. package/www/build/p-6d955874.entry.js +0 -2
  882. package/www/build/p-6d955874.entry.js.map +0 -1
  883. package/www/build/p-6fd79768.entry.js +0 -2
  884. package/www/build/p-6fd79768.entry.js.map +0 -1
  885. package/www/build/p-764d2be3.entry.js +0 -2
  886. package/www/build/p-764d2be3.entry.js.map +0 -1
  887. package/www/build/p-7caaf11f.entry.js +0 -2
  888. package/www/build/p-7caaf11f.entry.js.map +0 -1
  889. package/www/build/p-898ec4a2.css +0 -4
  890. package/www/build/p-8a9c5267.entry.js +0 -2
  891. package/www/build/p-8a9c5267.entry.js.map +0 -1
  892. package/www/build/p-8c7d0c73.entry.js +0 -2
  893. package/www/build/p-8c7d0c73.entry.js.map +0 -1
  894. package/www/build/p-9636f669.entry.js +0 -2
  895. package/www/build/p-9636f669.entry.js.map +0 -1
  896. package/www/build/p-98021655.entry.js +0 -2
  897. package/www/build/p-98021655.entry.js.map +0 -1
  898. package/www/build/p-a11bf02a.entry.js +0 -2
  899. package/www/build/p-a11bf02a.entry.js.map +0 -1
  900. package/www/build/p-a3f284bc.entry.js +0 -2
  901. package/www/build/p-a3f284bc.entry.js.map +0 -1
  902. package/www/build/p-aefe49c4.entry.js +0 -2
  903. package/www/build/p-aefe49c4.entry.js.map +0 -1
  904. package/www/build/p-b48e061c.entry.js +0 -2
  905. package/www/build/p-b48e061c.entry.js.map +0 -1
  906. package/www/build/p-ba90f4be.entry.js +0 -2
  907. package/www/build/p-ba90f4be.entry.js.map +0 -1
  908. package/www/build/p-bd0d09ff.entry.js +0 -2
  909. package/www/build/p-bd0d09ff.entry.js.map +0 -1
  910. package/www/build/p-c766ae47.entry.js +0 -2
  911. package/www/build/p-c766ae47.entry.js.map +0 -1
  912. package/www/build/p-d7434fd9.entry.js +0 -2
  913. package/www/build/p-d7434fd9.entry.js.map +0 -1
  914. package/www/build/p-d93f2102.entry.js +0 -2
  915. package/www/build/p-d93f2102.entry.js.map +0 -1
  916. package/www/build/p-dc443758.entry.js +0 -2
  917. package/www/build/p-dc443758.entry.js.map +0 -1
  918. package/www/build/p-dca57f55.entry.js +0 -2
  919. package/www/build/p-dca57f55.entry.js.map +0 -1
  920. package/www/build/p-e1255160.js +0 -2
  921. package/www/build/p-e1255160.js.map +0 -1
  922. package/www/build/p-e808d48a.entry.js +0 -2
  923. package/www/build/p-e808d48a.entry.js.map +0 -1
  924. package/www/build/p-eb472057.entry.js +0 -2
  925. package/www/build/p-eb472057.entry.js.map +0 -1
@@ -1,2 +0,0 @@
1
- import{r as t,c as e,h as n,H as i,g as s}from"./p-1b339a0a.js";var r=typeof global=="object"&&global&&global.Object===Object&&global;const l=r;var o=typeof self=="object"&&self&&self.Object===Object&&self;var u=l||o||Function("return this")();const c=u;var a=c.Symbol;const h=a;var f=Object.prototype;var d=f.hasOwnProperty;var v=f.toString;var b=h?h.toStringTag:undefined;function p(t){var e=d.call(t,b),n=t[b];try{t[b]=undefined;var i=true}catch(t){}var s=v.call(t);if(i){if(e){t[b]=n}else{delete t[b]}}return s}var y=Object.prototype;var m=y.toString;function w(t){return m.call(t)}var g="[object Null]",x="[object Undefined]";var k=h?h.toStringTag:undefined;function j(t){if(t==null){return t===undefined?x:g}return k&&k in Object(t)?p(t):w(t)}function A(t){return t!=null&&typeof t=="object"}var q=Array.isArray;const O=q;function M(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function E(t){return t}var T="[object AsyncFunction]",N="[object Function]",$="[object GeneratorFunction]",L="[object Proxy]";function _(t){if(!M(t)){return false}var e=j(t);return e==N||e==$||e==T||e==L}var S=c["__core-js_shared__"];const C=S;var B=function(){var t=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function I(t){return!!B&&B in t}var R=Function.prototype;var D=R.toString;function V(t){if(t!=null){try{return D.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var H=/[\\^$.*+?()[\]{}|]/g;var F=/^\[object .+?Constructor\]$/;var U=Function.prototype,P=Object.prototype;var K=U.toString;var Z=P.hasOwnProperty;var z=RegExp("^"+K.call(Z).replace(H,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function W(t){if(!M(t)||I(t)){return false}var e=_(t)?z:F;return e.test(V(t))}function G(t,e){return t==null?undefined:t[e]}function Q(t,e){var n=G(t,e);return W(n)?n:undefined}var Y=Q(c,"WeakMap");const X=Y;var J=Object.create;var tt=function(){function t(){}return function(e){if(!M(e)){return{}}if(J){return J(e)}t.prototype=e;var n=new t;t.prototype=undefined;return n}}();const et=tt;function nt(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function it(t,e){var n=-1,i=t.length;e||(e=Array(i));while(++n<i){e[n]=t[n]}return e}var st=800,rt=16;var lt=Date.now;function ot(t){var e=0,n=0;return function(){var i=lt(),s=rt-(i-n);n=i;if(s>0){if(++e>=st){return arguments[0]}}else{e=0}return t.apply(undefined,arguments)}}function ut(t){return function(){return t}}var ct=function(){try{var t=Q(Object,"defineProperty");t({},"",{});return t}catch(t){}}();const at=ct;var ht=!at?E:function(t,e){return at(t,"toString",{configurable:true,enumerable:false,value:ut(e),writable:true})};const ft=ht;var dt=ot(ft);const vt=dt;function bt(t,e){var n=-1,i=t==null?0:t.length;while(++n<i){if(e(t[n],n,t)===false){break}}return t}var pt=9007199254740991;var yt=/^(?:0|[1-9]\d*)$/;function mt(t,e){var n=typeof t;e=e==null?pt:e;return!!e&&(n=="number"||n!="symbol"&&yt.test(t))&&(t>-1&&t%1==0&&t<e)}function wt(t,e,n){if(e=="__proto__"&&at){at(t,e,{configurable:true,enumerable:true,value:n,writable:true})}else{t[e]=n}}function gt(t,e){return t===e||t!==t&&e!==e}var xt=Object.prototype;var kt=xt.hasOwnProperty;function jt(t,e,n){var i=t[e];if(!(kt.call(t,e)&&gt(i,n))||n===undefined&&!(e in t)){wt(t,e,n)}}function At(t,e,n,i){var s=!n;n||(n={});var r=-1,l=e.length;while(++r<l){var o=e[r];var u=i?i(n[o],t[o],o,n,t):undefined;if(u===undefined){u=t[o]}if(s){wt(n,o,u)}else{jt(n,o,u)}}return n}var qt=Math.max;function Ot(t,e,n){e=qt(e===undefined?t.length-1:e,0);return function(){var i=arguments,s=-1,r=qt(i.length-e,0),l=Array(r);while(++s<r){l[s]=i[e+s]}s=-1;var o=Array(e+1);while(++s<e){o[s]=i[s]}o[e]=n(l);return nt(t,this,o)}}function Mt(t,e){return vt(Ot(t,e,E),t+"")}var Et=9007199254740991;function Tt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Et}function Nt(t){return t!=null&&Tt(t.length)&&!_(t)}function $t(t,e,n){if(!M(n)){return false}var i=typeof e;if(i=="number"?Nt(n)&&mt(e,n.length):i=="string"&&e in n){return gt(n[e],t)}return false}function Lt(t){return Mt((function(e,n){var i=-1,s=n.length,r=s>1?n[s-1]:undefined,l=s>2?n[2]:undefined;r=t.length>3&&typeof r=="function"?(s--,r):undefined;if(l&&$t(n[0],n[1],l)){r=s<3?undefined:r;s=1}e=Object(e);while(++i<s){var o=n[i];if(o){t(e,o,i,r)}}return e}))}var _t=Object.prototype;function St(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||_t;return t===n}function Ct(t,e){var n=-1,i=Array(t);while(++n<t){i[n]=e(n)}return i}var Bt="[object Arguments]";function It(t){return A(t)&&j(t)==Bt}var Rt=Object.prototype;var Dt=Rt.hasOwnProperty;var Vt=Rt.propertyIsEnumerable;var Ht=It(function(){return arguments}())?It:function(t){return A(t)&&Dt.call(t,"callee")&&!Vt.call(t,"callee")};const Ft=Ht;function Ut(){return false}var Pt=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var Kt=Pt&&typeof module=="object"&&module&&!module.nodeType&&module;var Zt=Kt&&Kt.exports===Pt;var zt=Zt?c.Buffer:undefined;var Wt=zt?zt.isBuffer:undefined;var Gt=Wt||Ut;const Qt=Gt;var Yt="[object Arguments]",Xt="[object Array]",Jt="[object Boolean]",te="[object Date]",ee="[object Error]",ne="[object Function]",ie="[object Map]",se="[object Number]",re="[object Object]",le="[object RegExp]",oe="[object Set]",ue="[object String]",ce="[object WeakMap]";var ae="[object ArrayBuffer]",he="[object DataView]",fe="[object Float32Array]",de="[object Float64Array]",ve="[object Int8Array]",be="[object Int16Array]",pe="[object Int32Array]",ye="[object Uint8Array]",me="[object Uint8ClampedArray]",we="[object Uint16Array]",ge="[object Uint32Array]";var xe={};xe[fe]=xe[de]=xe[ve]=xe[be]=xe[pe]=xe[ye]=xe[me]=xe[we]=xe[ge]=true;xe[Yt]=xe[Xt]=xe[ae]=xe[Jt]=xe[he]=xe[te]=xe[ee]=xe[ne]=xe[ie]=xe[se]=xe[re]=xe[le]=xe[oe]=xe[ue]=xe[ce]=false;function ke(t){return A(t)&&Tt(t.length)&&!!xe[j(t)]}function je(t){return function(e){return t(e)}}var Ae=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var qe=Ae&&typeof module=="object"&&module&&!module.nodeType&&module;var Oe=qe&&qe.exports===Ae;var Me=Oe&&l.process;var Ee=function(){try{var t=qe&&qe.require&&qe.require("util").types;if(t){return t}return Me&&Me.binding&&Me.binding("util")}catch(t){}}();const Te=Ee;var Ne=Te&&Te.isTypedArray;var $e=Ne?je(Ne):ke;const Le=$e;var _e=Object.prototype;var Se=_e.hasOwnProperty;function Ce(t,e){var n=O(t),i=!n&&Ft(t),s=!n&&!i&&Qt(t),r=!n&&!i&&!s&&Le(t),l=n||i||s||r,o=l?Ct(t.length,String):[],u=o.length;for(var c in t){if((e||Se.call(t,c))&&!(l&&(c=="length"||s&&(c=="offset"||c=="parent")||r&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||mt(c,u)))){o.push(c)}}return o}function Be(t,e){return function(n){return t(e(n))}}var Ie=Be(Object.keys,Object);const Re=Ie;var De=Object.prototype;var Ve=De.hasOwnProperty;function He(t){if(!St(t)){return Re(t)}var e=[];for(var n in Object(t)){if(Ve.call(t,n)&&n!="constructor"){e.push(n)}}return e}function Fe(t){return Nt(t)?Ce(t):He(t)}function Ue(t){var e=[];if(t!=null){for(var n in Object(t)){e.push(n)}}return e}var Pe=Object.prototype;var Ke=Pe.hasOwnProperty;function Ze(t){if(!M(t)){return Ue(t)}var e=St(t),n=[];for(var i in t){if(!(i=="constructor"&&(e||!Ke.call(t,i)))){n.push(i)}}return n}function ze(t){return Nt(t)?Ce(t,true):Ze(t)}var We=Q(Object,"create");const Ge=We;function Qe(){this.__data__=Ge?Ge(null):{};this.size=0}function Ye(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}var Xe="__lodash_hash_undefined__";var Je=Object.prototype;var tn=Je.hasOwnProperty;function en(t){var e=this.__data__;if(Ge){var n=e[t];return n===Xe?undefined:n}return tn.call(e,t)?e[t]:undefined}var nn=Object.prototype;var sn=nn.hasOwnProperty;function rn(t){var e=this.__data__;return Ge?e[t]!==undefined:sn.call(e,t)}var ln="__lodash_hash_undefined__";function on(t,e){var n=this.__data__;this.size+=this.has(t)?0:1;n[t]=Ge&&e===undefined?ln:e;return this}function un(t){var e=-1,n=t==null?0:t.length;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}un.prototype.clear=Qe;un.prototype["delete"]=Ye;un.prototype.get=en;un.prototype.has=rn;un.prototype.set=on;function cn(){this.__data__=[];this.size=0}function an(t,e){var n=t.length;while(n--){if(gt(t[n][0],e)){return n}}return-1}var hn=Array.prototype;var fn=hn.splice;function dn(t){var e=this.__data__,n=an(e,t);if(n<0){return false}var i=e.length-1;if(n==i){e.pop()}else{fn.call(e,n,1)}--this.size;return true}function vn(t){var e=this.__data__,n=an(e,t);return n<0?undefined:e[n][1]}function bn(t){return an(this.__data__,t)>-1}function pn(t,e){var n=this.__data__,i=an(n,t);if(i<0){++this.size;n.push([t,e])}else{n[i][1]=e}return this}function yn(t){var e=-1,n=t==null?0:t.length;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}yn.prototype.clear=cn;yn.prototype["delete"]=dn;yn.prototype.get=vn;yn.prototype.has=bn;yn.prototype.set=pn;var mn=Q(c,"Map");const wn=mn;function gn(){this.size=0;this.__data__={hash:new un,map:new(wn||yn),string:new un}}function xn(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function kn(t,e){var n=t.__data__;return xn(e)?n[typeof e=="string"?"string":"hash"]:n.map}function jn(t){var e=kn(this,t)["delete"](t);this.size-=e?1:0;return e}function An(t){return kn(this,t).get(t)}function qn(t){return kn(this,t).has(t)}function On(t,e){var n=kn(this,t),i=n.size;n.set(t,e);this.size+=n.size==i?0:1;return this}function Mn(t){var e=-1,n=t==null?0:t.length;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}Mn.prototype.clear=gn;Mn.prototype["delete"]=jn;Mn.prototype.get=An;Mn.prototype.has=qn;Mn.prototype.set=On;function En(t,e){var n=-1,i=e.length,s=t.length;while(++n<i){t[s+n]=e[n]}return t}var Tn=Be(Object.getPrototypeOf,Object);const Nn=Tn;var $n="[object Object]";var Ln=Function.prototype,_n=Object.prototype;var Sn=Ln.toString;var Cn=_n.hasOwnProperty;var Bn=Sn.call(Object);function In(t){if(!A(t)||j(t)!=$n){return false}var e=Nn(t);if(e===null){return true}var n=Cn.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Sn.call(n)==Bn}function Rn(){this.__data__=new yn;this.size=0}function Dn(t){var e=this.__data__,n=e["delete"](t);this.size=e.size;return n}function Vn(t){return this.__data__.get(t)}function Hn(t){return this.__data__.has(t)}var Fn=200;function Un(t,e){var n=this.__data__;if(n instanceof yn){var i=n.__data__;if(!wn||i.length<Fn-1){i.push([t,e]);this.size=++n.size;return this}n=this.__data__=new Mn(i)}n.set(t,e);this.size=n.size;return this}function Pn(t){var e=this.__data__=new yn(t);this.size=e.size}Pn.prototype.clear=Rn;Pn.prototype["delete"]=Dn;Pn.prototype.get=Vn;Pn.prototype.has=Hn;Pn.prototype.set=Un;function Kn(t,e){return t&&At(e,Fe(e),t)}function Zn(t,e){return t&&At(e,ze(e),t)}var zn=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var Wn=zn&&typeof module=="object"&&module&&!module.nodeType&&module;var Gn=Wn&&Wn.exports===zn;var Qn=Gn?c.Buffer:undefined,Yn=Qn?Qn.allocUnsafe:undefined;function Xn(t,e){if(e){return t.slice()}var n=t.length,i=Yn?Yn(n):new t.constructor(n);t.copy(i);return i}function Jn(t,e){var n=-1,i=t==null?0:t.length,s=0,r=[];while(++n<i){var l=t[n];if(e(l,n,t)){r[s++]=l}}return r}function ti(){return[]}var ei=Object.prototype;var ni=ei.propertyIsEnumerable;var ii=Object.getOwnPropertySymbols;var si=!ii?ti:function(t){if(t==null){return[]}t=Object(t);return Jn(ii(t),(function(e){return ni.call(t,e)}))};const ri=si;function li(t,e){return At(t,ri(t),e)}var oi=Object.getOwnPropertySymbols;var ui=!oi?ti:function(t){var e=[];while(t){En(e,ri(t));t=Nn(t)}return e};const ci=ui;function ai(t,e){return At(t,ci(t),e)}function hi(t,e,n){var i=e(t);return O(t)?i:En(i,n(t))}function fi(t){return hi(t,Fe,ri)}function di(t){return hi(t,ze,ci)}var vi=Q(c,"DataView");const bi=vi;var pi=Q(c,"Promise");const yi=pi;var mi=Q(c,"Set");const wi=mi;var gi="[object Map]",xi="[object Object]",ki="[object Promise]",ji="[object Set]",Ai="[object WeakMap]";var qi="[object DataView]";var Oi=V(bi),Mi=V(wn),Ei=V(yi),Ti=V(wi),Ni=V(X);var $i=j;if(bi&&$i(new bi(new ArrayBuffer(1)))!=qi||wn&&$i(new wn)!=gi||yi&&$i(yi.resolve())!=ki||wi&&$i(new wi)!=ji||X&&$i(new X)!=Ai){$i=function(t){var e=j(t),n=e==xi?t.constructor:undefined,i=n?V(n):"";if(i){switch(i){case Oi:return qi;case Mi:return gi;case Ei:return ki;case Ti:return ji;case Ni:return Ai}}return e}}const Li=$i;var _i=Object.prototype;var Si=_i.hasOwnProperty;function Ci(t){var e=t.length,n=new t.constructor(e);if(e&&typeof t[0]=="string"&&Si.call(t,"index")){n.index=t.index;n.input=t.input}return n}var Bi=c.Uint8Array;const Ii=Bi;function Ri(t){var e=new t.constructor(t.byteLength);new Ii(e).set(new Ii(t));return e}function Di(t,e){var n=e?Ri(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Vi=/\w*$/;function Hi(t){var e=new t.constructor(t.source,Vi.exec(t));e.lastIndex=t.lastIndex;return e}var Fi=h?h.prototype:undefined,Ui=Fi?Fi.valueOf:undefined;function Pi(t){return Ui?Object(Ui.call(t)):{}}function Ki(t,e){var n=e?Ri(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Zi="[object Boolean]",zi="[object Date]",Wi="[object Map]",Gi="[object Number]",Qi="[object RegExp]",Yi="[object Set]",Xi="[object String]",Ji="[object Symbol]";var ts="[object ArrayBuffer]",es="[object DataView]",ns="[object Float32Array]",is="[object Float64Array]",ss="[object Int8Array]",rs="[object Int16Array]",ls="[object Int32Array]",os="[object Uint8Array]",us="[object Uint8ClampedArray]",cs="[object Uint16Array]",as="[object Uint32Array]";function hs(t,e,n){var i=t.constructor;switch(e){case ts:return Ri(t);case Zi:case zi:return new i(+t);case es:return Di(t,n);case ns:case is:case ss:case rs:case ls:case os:case us:case cs:case as:return Ki(t,n);case Wi:return new i;case Gi:case Xi:return new i(t);case Qi:return Hi(t);case Yi:return new i;case Ji:return Pi(t)}}function fs(t){return typeof t.constructor=="function"&&!St(t)?et(Nn(t)):{}}var ds="[object Map]";function vs(t){return A(t)&&Li(t)==ds}var bs=Te&&Te.isMap;var ps=bs?je(bs):vs;const ys=ps;var ms="[object Set]";function ws(t){return A(t)&&Li(t)==ms}var gs=Te&&Te.isSet;var xs=gs?je(gs):ws;const ks=xs;var js=1,As=2,qs=4;var Os="[object Arguments]",Ms="[object Array]",Es="[object Boolean]",Ts="[object Date]",Ns="[object Error]",$s="[object Function]",Ls="[object GeneratorFunction]",_s="[object Map]",Ss="[object Number]",Cs="[object Object]",Bs="[object RegExp]",Is="[object Set]",Rs="[object String]",Ds="[object Symbol]",Vs="[object WeakMap]";var Hs="[object ArrayBuffer]",Fs="[object DataView]",Us="[object Float32Array]",Ps="[object Float64Array]",Ks="[object Int8Array]",Zs="[object Int16Array]",zs="[object Int32Array]",Ws="[object Uint8Array]",Gs="[object Uint8ClampedArray]",Qs="[object Uint16Array]",Ys="[object Uint32Array]";var Xs={};Xs[Os]=Xs[Ms]=Xs[Hs]=Xs[Fs]=Xs[Es]=Xs[Ts]=Xs[Us]=Xs[Ps]=Xs[Ks]=Xs[Zs]=Xs[zs]=Xs[_s]=Xs[Ss]=Xs[Cs]=Xs[Bs]=Xs[Is]=Xs[Rs]=Xs[Ds]=Xs[Ws]=Xs[Gs]=Xs[Qs]=Xs[Ys]=true;Xs[Ns]=Xs[$s]=Xs[Vs]=false;function Js(t,e,n,i,s,r){var l,o=e&js,u=e&As,c=e&qs;if(n){l=s?n(t,i,s,r):n(t)}if(l!==undefined){return l}if(!M(t)){return t}var a=O(t);if(a){l=Ci(t);if(!o){return it(t,l)}}else{var h=Li(t),f=h==$s||h==Ls;if(Qt(t)){return Xn(t,o)}if(h==Cs||h==Os||f&&!s){l=u||f?{}:fs(t);if(!o){return u?ai(t,Zn(l,t)):li(t,Kn(l,t))}}else{if(!Xs[h]){return s?t:{}}l=hs(t,h,o)}}r||(r=new Pn);var d=r.get(t);if(d){return d}r.set(t,l);if(ks(t)){t.forEach((function(i){l.add(Js(i,e,n,i,t,r))}))}else if(ys(t)){t.forEach((function(i,s){l.set(s,Js(i,e,n,s,t,r))}))}var v=c?u?di:fi:u?ze:Fe;var b=a?undefined:v(t);bt(b||t,(function(i,s){if(b){s=i;i=t[s]}jt(l,s,Js(i,e,n,s,t,r))}));return l}var tr=1,er=4;function nr(t){return Js(t,tr|er)}var ir="__lodash_hash_undefined__";function sr(t){this.__data__.set(t,ir);return this}function rr(t){return this.__data__.has(t)}function lr(t){var e=-1,n=t==null?0:t.length;this.__data__=new Mn;while(++e<n){this.add(t[e])}}lr.prototype.add=lr.prototype.push=sr;lr.prototype.has=rr;function or(t,e){var n=-1,i=t==null?0:t.length;while(++n<i){if(e(t[n],n,t)){return true}}return false}function ur(t,e){return t.has(e)}var cr=1,ar=2;function hr(t,e,n,i,s,r){var l=n&cr,o=t.length,u=e.length;if(o!=u&&!(l&&u>o)){return false}var c=r.get(t);var a=r.get(e);if(c&&a){return c==e&&a==t}var h=-1,f=true,d=n&ar?new lr:undefined;r.set(t,e);r.set(e,t);while(++h<o){var v=t[h],b=e[h];if(i){var p=l?i(b,v,h,e,t,r):i(v,b,h,t,e,r)}if(p!==undefined){if(p){continue}f=false;break}if(d){if(!or(e,(function(t,e){if(!ur(d,e)&&(v===t||s(v,t,n,i,r))){return d.push(e)}}))){f=false;break}}else if(!(v===b||s(v,b,n,i,r))){f=false;break}}r["delete"](t);r["delete"](e);return f}function fr(t){var e=-1,n=Array(t.size);t.forEach((function(t,i){n[++e]=[i,t]}));return n}function dr(t){var e=-1,n=Array(t.size);t.forEach((function(t){n[++e]=t}));return n}var vr=1,br=2;var pr="[object Boolean]",yr="[object Date]",mr="[object Error]",wr="[object Map]",gr="[object Number]",xr="[object RegExp]",kr="[object Set]",jr="[object String]",Ar="[object Symbol]";var qr="[object ArrayBuffer]",Or="[object DataView]";var Mr=h?h.prototype:undefined,Er=Mr?Mr.valueOf:undefined;function Tr(t,e,n,i,s,r,l){switch(n){case Or:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset){return false}t=t.buffer;e=e.buffer;case qr:if(t.byteLength!=e.byteLength||!r(new Ii(t),new Ii(e))){return false}return true;case pr:case yr:case gr:return gt(+t,+e);case mr:return t.name==e.name&&t.message==e.message;case xr:case jr:return t==e+"";case wr:var o=fr;case kr:var u=i&vr;o||(o=dr);if(t.size!=e.size&&!u){return false}var c=l.get(t);if(c){return c==e}i|=br;l.set(t,e);var a=hr(o(t),o(e),i,s,r,l);l["delete"](t);return a;case Ar:if(Er){return Er.call(t)==Er.call(e)}}return false}var Nr=1;var $r=Object.prototype;var Lr=$r.hasOwnProperty;function _r(t,e,n,i,s,r){var l=n&Nr,o=fi(t),u=o.length,c=fi(e),a=c.length;if(u!=a&&!l){return false}var h=u;while(h--){var f=o[h];if(!(l?f in e:Lr.call(e,f))){return false}}var d=r.get(t);var v=r.get(e);if(d&&v){return d==e&&v==t}var b=true;r.set(t,e);r.set(e,t);var p=l;while(++h<u){f=o[h];var y=t[f],m=e[f];if(i){var w=l?i(m,y,f,e,t,r):i(y,m,f,t,e,r)}if(!(w===undefined?y===m||s(y,m,n,i,r):w)){b=false;break}p||(p=f=="constructor")}if(b&&!p){var g=t.constructor,x=e.constructor;if(g!=x&&("constructor"in t&&"constructor"in e)&&!(typeof g=="function"&&g instanceof g&&typeof x=="function"&&x instanceof x)){b=false}}r["delete"](t);r["delete"](e);return b}var Sr=1;var Cr="[object Arguments]",Br="[object Array]",Ir="[object Object]";var Rr=Object.prototype;var Dr=Rr.hasOwnProperty;function Vr(t,e,n,i,s,r){var l=O(t),o=O(e),u=l?Br:Li(t),c=o?Br:Li(e);u=u==Cr?Ir:u;c=c==Cr?Ir:c;var a=u==Ir,h=c==Ir,f=u==c;if(f&&Qt(t)){if(!Qt(e)){return false}l=true;a=false}if(f&&!a){r||(r=new Pn);return l||Le(t)?hr(t,e,n,i,s,r):Tr(t,e,u,n,i,s,r)}if(!(n&Sr)){var d=a&&Dr.call(t,"__wrapped__"),v=h&&Dr.call(e,"__wrapped__");if(d||v){var b=d?t.value():t,p=v?e.value():e;r||(r=new Pn);return s(b,p,n,i,r)}}if(!f){return false}r||(r=new Pn);return _r(t,e,n,i,s,r)}function Hr(t,e,n,i,s){if(t===e){return true}if(t==null||e==null||!A(t)&&!A(e)){return t!==t&&e!==e}return Vr(t,e,n,i,Hr,s)}function Fr(t){return function(e,n,i){var s=-1,r=Object(e),l=i(e),o=l.length;while(o--){var u=l[t?o:++s];if(n(r[u],u,r)===false){break}}return e}}var Ur=Fr();const Pr=Ur;function Kr(t,e,n){if(n!==undefined&&!gt(t[e],n)||n===undefined&&!(e in t)){wt(t,e,n)}}function Zr(t){return A(t)&&Nt(t)}function zr(t,e){if(e==="constructor"&&typeof t[e]==="function"){return}if(e=="__proto__"){return}return t[e]}function Wr(t){return At(t,ze(t))}function Gr(t,e,n,i,s,r,l){var o=zr(t,n),u=zr(e,n),c=l.get(u);if(c){Kr(t,n,c);return}var a=r?r(o,u,n+"",t,e,l):undefined;var h=a===undefined;if(h){var f=O(u),d=!f&&Qt(u),v=!f&&!d&&Le(u);a=u;if(f||d||v){if(O(o)){a=o}else if(Zr(o)){a=it(o)}else if(d){h=false;a=Xn(u,true)}else if(v){h=false;a=Ki(u,true)}else{a=[]}}else if(In(u)||Ft(u)){a=o;if(Ft(o)){a=Wr(o)}else if(!M(o)||_(o)){a=fs(u)}}else{h=false}}if(h){l.set(u,a);s(a,u,i,r,l);l["delete"](u)}Kr(t,n,a)}function Qr(t,e,n,i,s){if(t===e){return}Pr(e,(function(r,l){s||(s=new Pn);if(M(r)){Gr(t,e,l,n,Qr,i,s)}else{var o=i?i(zr(t,l),r,l+"",t,e,s):undefined;if(o===undefined){o=r}Kr(t,l,o)}}),ze)}function Yr(t,e){return Hr(t,e)}var Xr=Lt((function(t,e,n){Qr(t,e,n)}));const Jr=Xr;var tl=(t=>(t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY",t))(tl||{});class el{constructor(t,e,n={}){this.attrName=t,this.keyName=e;const i=tl.TYPE&tl.ATTRIBUTE;this.scope=n.scope!=null?n.scope&tl.LEVEL|i:tl.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(t){return Array.from(t.attributes).map((t=>t.name))}add(t,e){return this.canAdd(t,e)?(t.setAttribute(this.keyName,e),!0):!1}canAdd(t,e){return this.whitelist==null?!0:typeof e=="string"?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""}}class nl extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const il=class t{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,e=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(e){let n=null;try{n=t.parentNode}catch{return null}return this.find(n,e)}return null}create(e,n,i){const s=this.query(n);if(s==null)throw new nl(`Unable to create ${n} blot`);const r=s,l=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:r.create(i),o=new r(e,l,i);return t.blots.set(o.domNode,o),o}find(e,n=!1){return t.find(e,n)}query(t,e=tl.ANY){let n;return typeof t=="string"?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:typeof t=="number"?t&tl.LEVEL&tl.BLOCK?n=this.types.block:t&tl.LEVEL&tl.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some((t=>(n=this.classes[t],!!n))),n=n||this.tags[t.tagName]),n==null?null:"scope"in n&&e&tl.LEVEL&n.scope&&e&tl.TYPE&n.scope?n:null}register(...t){return t.map((t=>{const e="blotName"in t,n="attrName"in t;if(!e&&!n)throw new nl("Invalid definition");if(e&&t.blotName==="abstract")throw new nl("Cannot register abstract class");const i=e?t.blotName:n?t.attrName:void 0;return this.types[i]=t,n?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):e&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map((t=>t.toUpperCase())):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach((e=>{(this.tags[e]==null||t.className==null)&&(this.tags[e]=t)})))),t}))}};il.blots=new WeakMap;let sl=il;function rl(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((t=>t.indexOf(`${e}-`)===0))}class ll extends el{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map((t=>t.split("-").slice(0,-1).join("-")))}add(t,e){return this.canAdd(t,e)?(this.remove(t),t.classList.add(`${this.keyName}-${e}`),!0):!1}remove(t){rl(t,this.keyName).forEach((e=>{t.classList.remove(e)})),t.classList.length===0&&t.removeAttribute("class")}value(t){const e=(rl(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""}}const ol=ll;function ul(t){const e=t.split("-"),n=e.slice(1).map((t=>t[0].toUpperCase()+t.slice(1))).join("");return e[0]+n}class cl extends el{static keys(t){return(t.getAttribute("style")||"").split(";").map((t=>t.split(":")[0].trim()))}add(t,e){return this.canAdd(t,e)?(t.style[ul(this.keyName)]=e,!0):!1}remove(t){t.style[ul(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const e=t.style[ul(this.keyName)];return this.canAdd(t,e)?e:""}}const al=cl;class hl{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,e){e?t.add(this.domNode,e)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=sl.find(this.domNode);if(t==null)return;const e=el.keys(this.domNode),n=ol.keys(this.domNode),i=al.keys(this.domNode);e.concat(n).concat(i).forEach((e=>{const n=t.scroll.query(e,tl.ATTRIBUTE);n instanceof el&&(this.attributes[n.attrName]=n)}))}copy(t){Object.keys(this.attributes).forEach((e=>{const n=this.attributes[e].value(this.domNode);t.format(e,n)}))}move(t){this.copy(t),Object.keys(this.attributes).forEach((t=>{this.attributes[t].remove(this.domNode)})),this.attributes={}}values(){return Object.keys(this.attributes).reduce(((t,e)=>(t[e]=this.attributes[e].value(this.domNode),t)),{})}}const fl=hl,dl=class t{constructor(t,e){this.scroll=t,this.domNode=e,sl.blots.set(e,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new nl("Blot definition missing tagName");let e,n;return Array.isArray(this.tagName)?(typeof t=="string"?(n=t.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof t=="number"&&(n=t),typeof n=="number"?e=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?e=document.createElement(n):e=document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),sl.blots.delete(this.domNode)}deleteAt(t,e){this.isolate(t,e).remove()}formatAt(t,e,n,i){const s=this.isolate(t,e);if(this.scroll.query(n,tl.BLOT)!=null&&i)s.wrap(n,i);else if(this.scroll.query(n,tl.ATTRIBUTE)!=null){const t=this.scroll.create(this.statics.scope);s.wrap(t),t.format(n,i)}}insertAt(t,e,n){const i=n==null?this.scroll.create("text",e):this.scroll.create(e,n),s=this.split(t);this.parent.insertBefore(i,s||void 0)}isolate(t,e){const n=this.split(t);if(n==null)throw new Error("Attempt to isolate at end");return n.split(e),n}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){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(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(t,e){return t===0?this:this.next}update(t,e){}wrap(t,e){const n=typeof t=="string"?this.scroll.create(t,e):t;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new nl(`Cannot wrap ${t}`);return n.appendChild(this),n}};dl.blotName="abstract";let vl=dl;const bl=class t extends vl{static value(t){return!0}index(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1}position(t,e){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};bl.scope=tl.INLINE_BLOT;let pl=bl;const yl=pl;class ml{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const e=t.slice(1);this.append(...e)}}at(t){const e=this.iterator();let n=e();for(;n&&t>0;)t-=1,n=e();return n}contains(t){const e=this.iterator();let n=e();for(;n;){if(n===t)return!0;n=e()}return!1}indexOf(t){const e=this.iterator();let n=e(),i=0;for(;n;){if(n===t)return i;i+=1,n=e()}return-1}insertBefore(t,e){t!=null&&(this.remove(t),t.next=e,e!=null?(t.prev=e.prev,e.prev!=null&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let e=0,n=this.head;for(;n!=null;){if(n===t)return e;e+=n.length(),n=n.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const e=t;return t!=null&&(t=t.next),e}}find(t,e=!1){const n=this.iterator();let i=n();for(;i;){const s=i.length();if(t<s||e&&t===s&&(i.next==null||i.next.length()!==0))return[i,t];t-=s,i=n()}return[null,0]}forEach(t){const e=this.iterator();let n=e();for(;n;)t(n),n=e()}forEachAt(t,e,n){if(e<=0)return;const[i,s]=this.find(t);let r=t-s;const l=this.iterator(i);let o=l();for(;o&&r<t+e;){const i=o.length();t>r?n(o,t-r,Math.min(e,r+i-t)):n(o,0,Math.min(i,t+e-r)),r+=i,o=l()}}map(t){return this.reduce(((e,n)=>(e.push(t(n)),e)),[])}reduce(t,e){const n=this.iterator();let i=n();for(;i;)e=t(e,i),i=n();return e}}function wl(t,e){const n=e.find(t);if(n)return n;try{return e.create(t)}catch{const n=e.create(tl.INLINE);return Array.from(t.childNodes).forEach((t=>{n.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(n.domNode,t),n.attach(),n}}const gl=class t extends vl{constructor(t,e){super(t,e),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach((t=>{t.attach()}))}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,t.uiClass&&this.uiNode.classList.add(t.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new ml,Array.from(this.domNode.childNodes).filter((t=>t!==this.uiNode)).reverse().forEach((t=>{try{const e=wl(t,this.scroll);this.insertBefore(e,this.children.head||void 0)}catch(t){if(t instanceof nl)return;throw t}}))}deleteAt(t,e){if(t===0&&e===this.length())return this.remove();this.children.forEachAt(t,e,((t,e,n)=>{t.deleteAt(e,n)}))}descendant(e,n=0){const[i,s]=this.children.find(n);return e.blotName==null&&e(i)||e.blotName!=null&&i instanceof e?[i,s]:i instanceof t?i.descendant(e,s):[null,-1]}descendants(e,n=0,i=Number.MAX_VALUE){let s=[],r=i;return this.children.forEachAt(n,i,((n,i,l)=>{(e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e)&&s.push(n),n instanceof t&&(s=s.concat(n.descendants(e,i,r))),r-=l})),s}detach(){this.children.forEach((t=>{t.detach()})),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach((n=>{e||this.statics.allowedChildren.some((t=>n instanceof t))||(n.statics.scope===tl.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),e=!0):n instanceof t?n.unwrap():n.remove())}))}formatAt(t,e,n,i){this.children.forEachAt(t,e,((t,e,s)=>{t.formatAt(e,s,n,i)}))}insertAt(t,e,n){const[i,s]=this.children.find(t);if(i)i.insertAt(s,e,n);else{const t=n==null?this.scroll.create("text",e):this.scroll.create(e,n);this.appendChild(t)}}insertBefore(t,e){t.parent!=null&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,e||null),t.parent=this,e!=null&&(n=e.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce(((t,e)=>t+e.length()),0)}moveChildren(t,e){this.children.forEach((n=>{t.insertBefore(n,e)}))}optimize(t){if(super.optimize(t),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,n=!1){const[i,s]=this.children.find(e,n),r=[[this,e]];return i instanceof t?r.concat(i.path(s,n)):(i!=null&&r.push([i,s]),r)}removeChild(t){this.children.remove(t)}replaceWith(e,n){const i=typeof e=="string"?this.scroll.create(e,n):e;return i instanceof t&&this.moveChildren(i),super.replaceWith(i)}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),((t,i,s)=>{const r=t.split(i,e);r!=null&&n.appendChild(r)})),n}splitAfter(t){const e=this.clone();for(;t.next!=null;)e.appendChild(t.next);return this.parent&&this.parent.insertBefore(e,this.next||void 0),e}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,e){const n=[],i=[];t.forEach((t=>{t.target===this.domNode&&t.type==="childList"&&(n.push(...t.addedNodes),i.push(...t.removedNodes))})),i.forEach((t=>{if(t.parentNode!=null&&t.tagName!=="IFRAME"&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const e=this.scroll.find(t);e!=null&&(e.domNode.parentNode==null||e.domNode.parentNode===this.domNode)&&e.detach()})),n.filter((t=>t.parentNode===this.domNode&&t!==this.uiNode)).sort(((t,e)=>t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1)).forEach((t=>{let e=null;t.nextSibling!=null&&(e=this.scroll.find(t.nextSibling));const n=wl(t,this.scroll);(n.next!==e||n.next==null)&&(n.parent!=null&&n.parent.removeChild(this),this.insertBefore(n,e||void 0))})),this.enforceAllowedChildren()}};gl.uiClass="";let xl=gl;const kl=xl;function jl(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}const Al=class t extends kl{static create(t){return super.create(t)}static formats(e,n){const i=n.query(t.blotName);if(!(i!=null&&e.tagName===i.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new fl(this.domNode)}format(e,n){if(e===this.statics.blotName&&!n)this.children.forEach((e=>{e instanceof t||(e=e.wrap(t.blotName,!0)),this.attributes.copy(e)})),this.unwrap();else{const t=this.scroll.query(e,tl.INLINE);if(t==null)return;t instanceof el?this.attributes.attribute(t,n):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n)}}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,i){this.formats()[n]!=null||this.scroll.query(n,tl.ATTRIBUTE)?this.isolate(t,e).format(n,i):super.formatAt(t,e,n,i)}optimize(e){super.optimize(e);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const i=this.next;i instanceof t&&i.prev===this&&jl(n,i.formats())&&(i.moveChildren(this),i.remove())}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some((t=>t.target===this.domNode&&t.type==="attributes"))&&this.attributes.build()}wrap(e,n){const i=super.wrap(e,n);return i instanceof t&&this.attributes.move(i),i}};Al.allowedChildren=[Al,yl],Al.blotName="inline",Al.scope=tl.INLINE_BLOT,Al.tagName="SPAN";let ql=Al;const Ol=ql,Ml=class t extends kl{static create(t){return super.create(t)}static formats(e,n){const i=n.query(t.blotName);if(!(i!=null&&e.tagName===i.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(t,e){super(t,e),this.attributes=new fl(this.domNode)}format(e,n){const i=this.scroll.query(e,tl.BLOCK);i!=null&&(i instanceof el?this.attributes.attribute(i,n):e===this.statics.blotName&&!n?this.replaceWith(t.blotName):n&&(e!==this.statics.blotName||this.formats()[e]!==n)&&this.replaceWith(e,n))}formats(){const t=this.attributes.values(),e=this.statics.formats(this.domNode,this.scroll);return e!=null&&(t[this.statics.blotName]=e),t}formatAt(t,e,n,i){this.scroll.query(n,tl.BLOCK)!=null?this.format(n,i):super.formatAt(t,e,n,i)}insertAt(t,e,n){if(n==null||this.scroll.query(e,tl.INLINE)!=null)super.insertAt(t,e,n);else{const i=this.split(t);if(i!=null){const t=this.scroll.create(e,n);i.parent.insertBefore(t,i)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,e){const n=super.replaceWith(t,e);return this.attributes.copy(n),n}update(t,e){super.update(t,e),t.some((t=>t.target===this.domNode&&t.type==="attributes"))&&this.attributes.build()}};Ml.blotName="block",Ml.scope=tl.BLOCK_BLOT,Ml.tagName="P",Ml.allowedChildren=[Ol,Ml,yl];let El=Ml;const Tl=El,Nl=class t extends kl{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,e){super.deleteAt(t,e),this.enforceAllowedChildren()}formatAt(t,e,n,i){super.formatAt(t,e,n,i),this.enforceAllowedChildren()}insertAt(t,e,n){super.insertAt(t,e,n),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Nl.blotName="container",Nl.scope=tl.BLOCK_BLOT;let $l=Nl;const Ll=$l;class _l extends yl{static formats(t,e){}format(t,e){super.formatAt(0,this.length(),t,e)}formatAt(t,e,n,i){t===0&&e===this.length()?this.format(n,i):super.formatAt(t,e,n,i)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Sl=_l,Cl={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Bl=100,Il=class t extends kl{constructor(t,e){super(null,e),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver((t=>{this.update(t)})),this.observer.observe(this.domNode,Cl),this.attach()}create(t,e){return this.registry.create(this,t,e)}find(t,e=!1){const n=this.registry.find(t,e);return n?n.scroll===this?n:e?this.find(n.scroll.domNode.parentNode,!0):null:null}query(t,e=tl.ANY){return this.registry.query(t,e)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,e){this.update(),t===0&&e===this.length()?this.children.forEach((t=>{t.remove()})):super.deleteAt(t,e)}formatAt(t,e,n,i){this.update(),super.formatAt(t,e,n,i)}insertAt(t,e,n){this.update(),super.insertAt(t,e,n)}optimize(t=[],e={}){super.optimize(e);const n=e.mutationsMap||new WeakMap;let i=Array.from(this.observer.takeRecords());for(;i.length>0;)t.push(i.pop());const s=(t,e=!0)=>{t==null||t===this||t.domNode.parentNode!=null&&(n.has(t.domNode)||n.set(t.domNode,[]),e&&s(t.parent))},r=t=>{n.has(t.domNode)&&(t instanceof kl&&t.children.forEach(r),n.delete(t.domNode),t.optimize(e))};let l=t;for(let e=0;l.length>0;e+=1){if(e>=Bl)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach((t=>{const e=this.find(t.target,!0);e!=null&&(e.domNode===t.target&&(t.type==="childList"?(s(this.find(t.previousSibling,!1)),Array.from(t.addedNodes).forEach((t=>{const e=this.find(t,!1);s(e,!1),e instanceof kl&&e.children.forEach((t=>{s(t,!1)}))}))):t.type==="attributes"&&s(e.prev)),s(e))})),this.children.forEach(r),l=Array.from(this.observer.takeRecords()),i=l.slice();i.length>0;)t.push(i.pop())}}update(t,e={}){t=t||this.observer.takeRecords();const n=new WeakMap;t.map((t=>{const e=this.find(t.target,!0);return e==null?null:n.has(e.domNode)?(n.get(e.domNode).push(t),null):(n.set(e.domNode,[t]),e)})).forEach((t=>{t!=null&&t!==this&&n.has(t.domNode)&&t.update(n.get(t.domNode)||[],e)})),e.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),e),this.optimize(t,e)}};Il.blotName="scroll",Il.defaultChild=Tl,Il.allowedChildren=[Tl,Ll],Il.scope=tl.BLOCK_BLOT,Il.tagName="DIV";let Rl=Il;const Dl=Rl,Vl=class t extends yl{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,e){super(t,e),this.text=this.statics.value(this.domNode)}deleteAt(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)}index(t,e){return this.domNode===t?e:-1}insertAt(t,e,n){n==null?(this.text=this.text.slice(0,t)+e+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,e,n)}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 t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,e=!1){return[this.domNode,t]}split(t,e=!1){if(!e){if(t===0)return this;if(t===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(t,e){t.some((t=>t.type==="characterData"&&t.target===this.domNode))&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Vl.blotName="text",Vl.scope=tl.INLINE_BLOT;let Hl=Vl;const Fl=Hl;const Ul=Object.freeze({__proto__:null,Attributor:el,AttributorStore:fl,BlockBlot:Tl,ClassAttributor:ol,ContainerBlot:Ll,EmbedBlot:Sl,InlineBlot:Ol,LeafBlot:yl,ParentBlot:kl,Registry:sl,Scope:tl,ScrollBlot:Dl,StyleAttributor:al,TextBlot:Fl});var Pl=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function Kl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}var Zl={exports:{}};var zl=-1;var Wl=1;var Gl=0;function Ql(t,e,n,i,s){if(t===e){if(t){return[[Gl,t]]}return[]}if(n!=null){var r=wo(t,e,n);if(r){return r}}var l=to(t,e);var o=t.substring(0,l);t=t.substring(l);e=e.substring(l);l=no(t,e);var u=t.substring(t.length-l);t=t.substring(0,t.length-l);e=e.substring(0,e.length-l);var c=Yl(t,e);if(o){c.unshift([Gl,o])}if(u){c.push([Gl,u])}ho(c,s);if(i){so(c)}return c}function Yl(t,e){var n;if(!t){return[[Wl,e]]}if(!e){return[[zl,t]]}var i=t.length>e.length?t:e;var s=t.length>e.length?e:t;var r=i.indexOf(s);if(r!==-1){n=[[Wl,i.substring(0,r)],[Gl,s],[Wl,i.substring(r+s.length)]];if(t.length>e.length){n[0][0]=n[2][0]=zl}return n}if(s.length===1){return[[zl,t],[Wl,e]]}var l=io(t,e);if(l){var o=l[0];var u=l[1];var c=l[2];var a=l[3];var h=l[4];var f=Ql(o,c);var d=Ql(u,a);return f.concat([[Gl,h]],d)}return Xl(t,e)}function Xl(t,e){var n=t.length;var i=e.length;var s=Math.ceil((n+i)/2);var r=s;var l=2*s;var o=new Array(l);var u=new Array(l);for(var c=0;c<l;c++){o[c]=-1;u[c]=-1}o[r+1]=0;u[r+1]=0;var a=n-i;var h=a%2!==0;var f=0;var d=0;var v=0;var b=0;for(var p=0;p<s;p++){for(var y=-p+f;y<=p-d;y+=2){var m=r+y;var w;if(y===-p||y!==p&&o[m-1]<o[m+1]){w=o[m+1]}else{w=o[m-1]+1}var g=w-y;while(w<n&&g<i&&t.charAt(w)===e.charAt(g)){w++;g++}o[m]=w;if(w>n){d+=2}else if(g>i){f+=2}else if(h){var x=r+a-y;if(x>=0&&x<l&&u[x]!==-1){var k=n-u[x];if(w>=k){return Jl(t,e,w,g)}}}}for(var j=-p+v;j<=p-b;j+=2){var x=r+j;var k;if(j===-p||j!==p&&u[x-1]<u[x+1]){k=u[x+1]}else{k=u[x-1]+1}var A=k-j;while(k<n&&A<i&&t.charAt(n-k-1)===e.charAt(i-A-1)){k++;A++}u[x]=k;if(k>n){b+=2}else if(A>i){v+=2}else if(!h){var m=r+a-j;if(m>=0&&m<l&&o[m]!==-1){var w=o[m];var g=r+w-m;k=n-k;if(w>=k){return Jl(t,e,w,g)}}}}}return[[zl,t],[Wl,e]]}function Jl(t,e,n,i){var s=t.substring(0,n);var r=e.substring(0,i);var l=t.substring(n);var o=e.substring(i);var u=Ql(s,r);var c=Ql(l,o);return u.concat(c)}function to(t,e){if(!t||!e||t.charAt(0)!==e.charAt(0)){return 0}var n=0;var i=Math.min(t.length,e.length);var s=i;var r=0;while(n<s){if(t.substring(r,s)==e.substring(r,s)){n=s;r=n}else{i=s}s=Math.floor((i-n)/2+n)}if(fo(t.charCodeAt(s-1))){s--}return s}function eo(t,e){var n=t.length;var i=e.length;if(n==0||i==0){return 0}if(n>i){t=t.substring(n-i)}else if(n<i){e=e.substring(0,n)}var s=Math.min(n,i);if(t==e){return s}var r=0;var l=1;while(true){var o=t.substring(s-l);var u=e.indexOf(o);if(u==-1){return r}l+=u;if(u==0||t.substring(s-l)==e.substring(0,l)){r=l;l++}}}function no(t,e){if(!t||!e||t.slice(-1)!==e.slice(-1)){return 0}var n=0;var i=Math.min(t.length,e.length);var s=i;var r=0;while(n<s){if(t.substring(t.length-s,t.length-r)==e.substring(e.length-s,e.length-r)){n=s;r=n}else{i=s}s=Math.floor((i-n)/2+n)}if(vo(t.charCodeAt(t.length-s))){s--}return s}function io(t,e){var n=t.length>e.length?t:e;var i=t.length>e.length?e:t;if(n.length<4||i.length*2<n.length){return null}function s(t,e,n){var i=t.substring(n,n+Math.floor(t.length/4));var s=-1;var r="";var l,o,u,c;while((s=e.indexOf(i,s+1))!==-1){var a=to(t.substring(n),e.substring(s));var h=no(t.substring(0,n),e.substring(0,s));if(r.length<h+a){r=e.substring(s-h,s)+e.substring(s,s+a);l=t.substring(0,n-h);o=t.substring(n+a);u=e.substring(0,s-h);c=e.substring(s+a)}}if(r.length*2>=t.length){return[l,o,u,c,r]}else{return null}}var r=s(n,i,Math.ceil(n.length/4));var l=s(n,i,Math.ceil(n.length/2));var o;if(!r&&!l){return null}else if(!l){o=r}else if(!r){o=l}else{o=r[4].length>l[4].length?r:l}var u,c,a,h;if(t.length>e.length){u=o[0];c=o[1];a=o[2];h=o[3]}else{a=o[0];h=o[1];u=o[2];c=o[3]}var f=o[4];return[u,c,a,h,f]}function so(t){var e=false;var n=[];var i=0;var s=null;var r=0;var l=0;var o=0;var u=0;var c=0;while(r<t.length){if(t[r][0]==Gl){n[i++]=r;l=u;o=c;u=0;c=0;s=t[r][1]}else{if(t[r][0]==Wl){u+=t[r][1].length}else{c+=t[r][1].length}if(s&&s.length<=Math.max(l,o)&&s.length<=Math.max(u,c)){t.splice(n[i-1],0,[zl,s]);t[n[i-1]+1][0]=Wl;i--;i--;r=i>0?n[i-1]:-1;l=0;o=0;u=0;c=0;s=null;e=true}}r++}if(e){ho(t)}ao(t);r=1;while(r<t.length){if(t[r-1][0]==zl&&t[r][0]==Wl){var a=t[r-1][1];var h=t[r][1];var f=eo(a,h);var d=eo(h,a);if(f>=d){if(f>=a.length/2||f>=h.length/2){t.splice(r,0,[Gl,h.substring(0,f)]);t[r-1][1]=a.substring(0,a.length-f);t[r+1][1]=h.substring(f);r++}}else{if(d>=a.length/2||d>=h.length/2){t.splice(r,0,[Gl,a.substring(0,d)]);t[r-1][0]=Wl;t[r-1][1]=h.substring(0,h.length-d);t[r+1][0]=zl;t[r+1][1]=a.substring(d);r++}}r++}r++}}var ro=/[^a-zA-Z0-9]/;var lo=/\s/;var oo=/[\r\n]/;var uo=/\n\r?\n$/;var co=/^\r?\n\r?\n/;function ao(t){function e(t,e){if(!t||!e){return 6}var n=t.charAt(t.length-1);var i=e.charAt(0);var s=n.match(ro);var r=i.match(ro);var l=s&&n.match(lo);var o=r&&i.match(lo);var u=l&&n.match(oo);var c=o&&i.match(oo);var a=u&&t.match(uo);var h=c&&e.match(co);if(a||h){return 5}else if(u||c){return 4}else if(s&&!l&&o){return 3}else if(l||o){return 2}else if(s||r){return 1}return 0}var n=1;while(n<t.length-1){if(t[n-1][0]==Gl&&t[n+1][0]==Gl){var i=t[n-1][1];var s=t[n][1];var r=t[n+1][1];var l=no(i,s);if(l){var o=s.substring(s.length-l);i=i.substring(0,i.length-l);s=o+s.substring(0,s.length-l);r=o+r}var u=i;var c=s;var a=r;var h=e(i,s)+e(s,r);while(s.charAt(0)===r.charAt(0)){i+=s.charAt(0);s=s.substring(1)+r.charAt(0);r=r.substring(1);var f=e(i,s)+e(s,r);if(f>=h){h=f;u=i;c=s;a=r}}if(t[n-1][1]!=u){if(u){t[n-1][1]=u}else{t.splice(n-1,1);n--}t[n][1]=c;if(a){t[n+1][1]=a}else{t.splice(n+1,1);n--}}}n++}}function ho(t,e){t.push([Gl,""]);var n=0;var i=0;var s=0;var r="";var l="";var o;while(n<t.length){if(n<t.length-1&&!t[n][1]){t.splice(n,1);continue}switch(t[n][0]){case Wl:s++;l+=t[n][1];n++;break;case zl:i++;r+=t[n][1];n++;break;case Gl:var u=n-s-i-1;if(e){if(u>=0&&po(t[u][1])){var c=t[u][1].slice(-1);t[u][1]=t[u][1].slice(0,-1);r=c+r;l=c+l;if(!t[u][1]){t.splice(u,1);n--;var a=u-1;if(t[a]&&t[a][0]===Wl){s++;l=t[a][1]+l;a--}if(t[a]&&t[a][0]===zl){i++;r=t[a][1]+r;a--}u=a}}if(bo(t[n][1])){var c=t[n][1].charAt(0);t[n][1]=t[n][1].slice(1);r+=c;l+=c}}if(n<t.length-1&&!t[n][1]){t.splice(n,1);break}if(r.length>0||l.length>0){if(r.length>0&&l.length>0){o=to(l,r);if(o!==0){if(u>=0){t[u][1]+=l.substring(0,o)}else{t.splice(0,0,[Gl,l.substring(0,o)]);n++}l=l.substring(o);r=r.substring(o)}o=no(l,r);if(o!==0){t[n][1]=l.substring(l.length-o)+t[n][1];l=l.substring(0,l.length-o);r=r.substring(0,r.length-o)}}var h=s+i;if(r.length===0&&l.length===0){t.splice(n-h,h);n=n-h}else if(r.length===0){t.splice(n-h,h,[Wl,l]);n=n-h+1}else if(l.length===0){t.splice(n-h,h,[zl,r]);n=n-h+1}else{t.splice(n-h,h,[zl,r],[Wl,l]);n=n-h+2}}if(n!==0&&t[n-1][0]===Gl){t[n-1][1]+=t[n][1];t.splice(n,1)}else{n++}s=0;i=0;r="";l="";break}}if(t[t.length-1][1]===""){t.pop()}var f=false;n=1;while(n<t.length-1){if(t[n-1][0]===Gl&&t[n+1][0]===Gl){if(t[n][1].substring(t[n][1].length-t[n-1][1].length)===t[n-1][1]){t[n][1]=t[n-1][1]+t[n][1].substring(0,t[n][1].length-t[n-1][1].length);t[n+1][1]=t[n-1][1]+t[n+1][1];t.splice(n-1,1);f=true}else if(t[n][1].substring(0,t[n+1][1].length)==t[n+1][1]){t[n-1][1]+=t[n+1][1];t[n][1]=t[n][1].substring(t[n+1][1].length)+t[n+1][1];t.splice(n+1,1);f=true}}n++}if(f){ho(t,e)}}function fo(t){return t>=55296&&t<=56319}function vo(t){return t>=56320&&t<=57343}function bo(t){return vo(t.charCodeAt(0))}function po(t){return fo(t.charCodeAt(t.length-1))}function yo(t){var e=[];for(var n=0;n<t.length;n++){if(t[n][1].length>0){e.push(t[n])}}return e}function mo(t,e,n,i){if(po(t)||bo(i)){return null}return yo([[Gl,t],[zl,e],[Wl,n],[Gl,i]])}function wo(t,e,n){var i=typeof n==="number"?{index:n,length:0}:n.oldRange;var s=typeof n==="number"?null:n.newRange;var r=t.length;var l=e.length;if(i.length===0&&(s===null||s.length===0)){var o=i.index;var u=t.slice(0,o);var c=t.slice(o);var a=s?s.index:null;t:{var h=o+l-r;if(a!==null&&a!==h){break t}if(h<0||h>l){break t}var f=e.slice(0,h);var d=e.slice(h);if(d!==c){break t}var v=Math.min(o,h);var b=u.slice(0,v);var p=f.slice(0,v);if(b!==p){break t}var y=u.slice(v);var m=f.slice(v);return mo(b,y,m,c)}t:{if(a!==null&&a!==o){break t}var w=o;var f=e.slice(0,w);var d=e.slice(w);if(f!==u){break t}var g=Math.min(r-w,l-w);var x=c.slice(c.length-g);var k=d.slice(d.length-g);if(x!==k){break t}var y=c.slice(0,c.length-g);var m=d.slice(0,d.length-g);return mo(u,y,m,x)}}if(i.length>0&&s&&s.length===0){t:{var b=t.slice(0,i.index);var x=t.slice(i.index+i.length);var v=b.length;var g=x.length;if(l<v+g){break t}var p=e.slice(0,v);var k=e.slice(l-g);if(b!==p||x!==k){break t}var y=t.slice(v,r-g);var m=e.slice(v,l-g);return mo(b,y,m,x)}}return null}function go(t,e,n,i){return Ql(t,e,n,i,true)}go.INSERT=Wl;go.DELETE=zl;go.EQUAL=Gl;var xo=go;var ko={exports:{}};(function(t,e){var n=200;var i="__lodash_hash_undefined__";var s=9007199254740991;var r="[object Arguments]",l="[object Array]",o="[object Boolean]",u="[object Date]",c="[object Error]",a="[object Function]",h="[object GeneratorFunction]",f="[object Map]",d="[object Number]",v="[object Object]",b="[object Promise]",p="[object RegExp]",y="[object Set]",m="[object String]",w="[object Symbol]",g="[object WeakMap]";var x="[object ArrayBuffer]",k="[object DataView]",j="[object Float32Array]",A="[object Float64Array]",q="[object Int8Array]",O="[object Int16Array]",M="[object Int32Array]",E="[object Uint8Array]",T="[object Uint8ClampedArray]",N="[object Uint16Array]",$="[object Uint32Array]";var L=/[\\^$.*+?()[\]{}|]/g;var _=/\w*$/;var S=/^\[object .+?Constructor\]$/;var C=/^(?:0|[1-9]\d*)$/;var B={};B[r]=B[l]=B[x]=B[k]=B[o]=B[u]=B[j]=B[A]=B[q]=B[O]=B[M]=B[f]=B[d]=B[v]=B[p]=B[y]=B[m]=B[w]=B[E]=B[T]=B[N]=B[$]=true;B[c]=B[a]=B[g]=false;var I=typeof Pl=="object"&&Pl&&Pl.Object===Object&&Pl;var R=typeof self=="object"&&self&&self.Object===Object&&self;var D=I||R||Function("return this")();var V=e&&!e.nodeType&&e;var H=V&&"object"=="object"&&t&&!t.nodeType&&t;var F=H&&H.exports===V;function U(t,e){t.set(e[0],e[1]);return t}function P(t,e){t.add(e);return t}function K(t,e){var n=-1,i=t?t.length:0;while(++n<i){if(e(t[n],n,t)===false){break}}return t}function Z(t,e){var n=-1,i=e.length,s=t.length;while(++n<i){t[s+n]=e[n]}return t}function z(t,e,n,i){var s=-1,r=t?t.length:0;if(i&&r){n=t[++s]}while(++s<r){n=e(n,t[s],s,t)}return n}function W(t,e){var n=-1,i=Array(t);while(++n<t){i[n]=e(n)}return i}function G(t,e){return t==null?undefined:t[e]}function Q(t){var e=false;if(t!=null&&typeof t.toString!="function"){try{e=!!(t+"")}catch(t){}}return e}function Y(t){var e=-1,n=Array(t.size);t.forEach((function(t,i){n[++e]=[i,t]}));return n}function X(t,e){return function(n){return t(e(n))}}function J(t){var e=-1,n=Array(t.size);t.forEach((function(t){n[++e]=t}));return n}var tt=Array.prototype,et=Function.prototype,nt=Object.prototype;var it=D["__core-js_shared__"];var st=function(){var t=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var rt=et.toString;var lt=nt.hasOwnProperty;var ot=nt.toString;var ut=RegExp("^"+rt.call(lt).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ct=F?D.Buffer:undefined,at=D.Symbol,ht=D.Uint8Array,ft=X(Object.getPrototypeOf,Object),dt=Object.create,vt=nt.propertyIsEnumerable,bt=tt.splice;var pt=Object.getOwnPropertySymbols,yt=ct?ct.isBuffer:undefined,mt=X(Object.keys,Object);var wt=qe(D,"DataView"),gt=qe(D,"Map"),xt=qe(D,"Promise"),kt=qe(D,"Set"),jt=qe(D,"WeakMap"),At=qe(Object,"create");var qt=Ce(wt),Ot=Ce(gt),Mt=Ce(xt),Et=Ce(kt),Tt=Ce(jt);var Nt=at?at.prototype:undefined,$t=Nt?Nt.valueOf:undefined;function Lt(t){var e=-1,n=t?t.length:0;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}function _t(){this.__data__=At?At(null):{}}function St(t){return this.has(t)&&delete this.__data__[t]}function Ct(t){var e=this.__data__;if(At){var n=e[t];return n===i?undefined:n}return lt.call(e,t)?e[t]:undefined}function Bt(t){var e=this.__data__;return At?e[t]!==undefined:lt.call(e,t)}function It(t,e){var n=this.__data__;n[t]=At&&e===undefined?i:e;return this}Lt.prototype.clear=_t;Lt.prototype["delete"]=St;Lt.prototype.get=Ct;Lt.prototype.has=Bt;Lt.prototype.set=It;function Rt(t){var e=-1,n=t?t.length:0;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}function Dt(){this.__data__=[]}function Vt(t){var e=this.__data__,n=se(e,t);if(n<0){return false}var i=e.length-1;if(n==i){e.pop()}else{bt.call(e,n,1)}return true}function Ht(t){var e=this.__data__,n=se(e,t);return n<0?undefined:e[n][1]}function Ft(t){return se(this.__data__,t)>-1}function Ut(t,e){var n=this.__data__,i=se(n,t);if(i<0){n.push([t,e])}else{n[i][1]=e}return this}Rt.prototype.clear=Dt;Rt.prototype["delete"]=Vt;Rt.prototype.get=Ht;Rt.prototype.has=Ft;Rt.prototype.set=Ut;function Pt(t){var e=-1,n=t?t.length:0;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}function Kt(){this.__data__={hash:new Lt,map:new(gt||Rt),string:new Lt}}function Zt(t){return Ae(this,t)["delete"](t)}function zt(t){return Ae(this,t).get(t)}function Wt(t){return Ae(this,t).has(t)}function Gt(t,e){Ae(this,t).set(t,e);return this}Pt.prototype.clear=Kt;Pt.prototype["delete"]=Zt;Pt.prototype.get=zt;Pt.prototype.has=Wt;Pt.prototype.set=Gt;function Qt(t){this.__data__=new Rt(t)}function Yt(){this.__data__=new Rt}function Xt(t){return this.__data__["delete"](t)}function Jt(t){return this.__data__.get(t)}function te(t){return this.__data__.has(t)}function ee(t,e){var i=this.__data__;if(i instanceof Rt){var s=i.__data__;if(!gt||s.length<n-1){s.push([t,e]);return this}i=this.__data__=new Pt(s)}i.set(t,e);return this}Qt.prototype.clear=Yt;Qt.prototype["delete"]=Xt;Qt.prototype.get=Jt;Qt.prototype.has=te;Qt.prototype.set=ee;function ne(t,e){var n=De(t)||Re(t)?W(t.length,String):[];var i=n.length,s=!!i;for(var r in t){if((e||lt.call(t,r))&&!(s&&(r=="length"||$e(r,i)))){n.push(r)}}return n}function ie(t,e,n){var i=t[e];if(!(lt.call(t,e)&&Ie(i,n))||n===undefined&&!(e in t)){t[e]=n}}function se(t,e){var n=t.length;while(n--){if(Ie(t[n][0],e)){return n}}return-1}function re(t,e){return t&&xe(e,ze(e),t)}function le(t,e,n,i,s,l,o){var u;if(i){u=l?i(t,s,l,o):i(t)}if(u!==undefined){return u}if(!Ke(t)){return t}var c=De(t);if(c){u=Ee(t);if(!e){return ge(t,u)}}else{var f=Me(t),d=f==a||f==h;if(Fe(t)){return fe(t,e)}if(f==v||f==r||d&&!l){if(Q(t)){return l?t:{}}u=Te(d?{}:t);if(!e){return ke(t,re(u,t))}}else{if(!B[f]){return l?t:{}}u=Ne(t,f,le,e)}}o||(o=new Qt);var b=o.get(t);if(b){return b}o.set(t,u);if(!c){var p=n?je(t):ze(t)}K(p||t,(function(s,r){if(p){r=s;s=t[r]}ie(u,r,le(s,e,n,i,r,t,o))}));return u}function oe(t){return Ke(t)?dt(t):{}}function ue(t,e,n){var i=e(t);return De(t)?i:Z(i,n(t))}function ce(t){return ot.call(t)}function ae(t){if(!Ke(t)||_e(t)){return false}var e=Ue(t)||Q(t)?ut:S;return e.test(Ce(t))}function he(t){if(!Se(t)){return mt(t)}var e=[];for(var n in Object(t)){if(lt.call(t,n)&&n!="constructor"){e.push(n)}}return e}function fe(t,e){if(e){return t.slice()}var n=new t.constructor(t.length);t.copy(n);return n}function de(t){var e=new t.constructor(t.byteLength);new ht(e).set(new ht(t));return e}function ve(t,e){var n=e?de(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function be(t,e,n){var i=e?n(Y(t),true):Y(t);return z(i,U,new t.constructor)}function pe(t){var e=new t.constructor(t.source,_.exec(t));e.lastIndex=t.lastIndex;return e}function ye(t,e,n){var i=e?n(J(t),true):J(t);return z(i,P,new t.constructor)}function me(t){return $t?Object($t.call(t)):{}}function we(t,e){var n=e?de(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ge(t,e){var n=-1,i=t.length;e||(e=Array(i));while(++n<i){e[n]=t[n]}return e}function xe(t,e,n,i){n||(n={});var s=-1,r=e.length;while(++s<r){var l=e[s];var o=i?i(n[l],t[l],l,n,t):undefined;ie(n,l,o===undefined?t[l]:o)}return n}function ke(t,e){return xe(t,Oe(t),e)}function je(t){return ue(t,ze,Oe)}function Ae(t,e){var n=t.__data__;return Le(e)?n[typeof e=="string"?"string":"hash"]:n.map}function qe(t,e){var n=G(t,e);return ae(n)?n:undefined}var Oe=pt?X(pt,Object):We;var Me=ce;if(wt&&Me(new wt(new ArrayBuffer(1)))!=k||gt&&Me(new gt)!=f||xt&&Me(xt.resolve())!=b||kt&&Me(new kt)!=y||jt&&Me(new jt)!=g){Me=function(t){var e=ot.call(t),n=e==v?t.constructor:undefined,i=n?Ce(n):undefined;if(i){switch(i){case qt:return k;case Ot:return f;case Mt:return b;case Et:return y;case Tt:return g}}return e}}function Ee(t){var e=t.length,n=t.constructor(e);if(e&&typeof t[0]=="string"&&lt.call(t,"index")){n.index=t.index;n.input=t.input}return n}function Te(t){return typeof t.constructor=="function"&&!Se(t)?oe(ft(t)):{}}function Ne(t,e,n,i){var s=t.constructor;switch(e){case x:return de(t);case o:case u:return new s(+t);case k:return ve(t,i);case j:case A:case q:case O:case M:case E:case T:case N:case $:return we(t,i);case f:return be(t,i,n);case d:case m:return new s(t);case p:return pe(t);case y:return ye(t,i,n);case w:return me(t)}}function $e(t,e){e=e==null?s:e;return!!e&&(typeof t=="number"||C.test(t))&&(t>-1&&t%1==0&&t<e)}function Le(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function _e(t){return!!st&&st in t}function Se(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||nt;return t===n}function Ce(t){if(t!=null){try{return rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Be(t){return le(t,true,true)}function Ie(t,e){return t===e||t!==t&&e!==e}function Re(t){return He(t)&&lt.call(t,"callee")&&(!vt.call(t,"callee")||ot.call(t)==r)}var De=Array.isArray;function Ve(t){return t!=null&&Pe(t.length)&&!Ue(t)}function He(t){return Ze(t)&&Ve(t)}var Fe=yt||Ge;function Ue(t){var e=Ke(t)?ot.call(t):"";return e==a||e==h}function Pe(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=s}function Ke(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Ze(t){return!!t&&typeof t=="object"}function ze(t){return Ve(t)?ne(t):he(t)}function We(){return[]}function Ge(){return false}t.exports=Be})(ko,ko.exports);var jo={exports:{}};(function(t,e){var n=200;var i="__lodash_hash_undefined__";var s=1,r=2;var l=9007199254740991;var o="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",a="[object Boolean]",h="[object Date]",f="[object Error]",d="[object Function]",v="[object GeneratorFunction]",b="[object Map]",p="[object Number]",y="[object Null]",m="[object Object]",w="[object Promise]",g="[object Proxy]",x="[object RegExp]",k="[object Set]",j="[object String]",A="[object Symbol]",q="[object Undefined]",O="[object WeakMap]";var M="[object ArrayBuffer]",E="[object DataView]",T="[object Float32Array]",N="[object Float64Array]",$="[object Int8Array]",L="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",C="[object Uint8ClampedArray]",B="[object Uint16Array]",I="[object Uint32Array]";var R=/[\\^$.*+?()[\]{}|]/g;var D=/^\[object .+?Constructor\]$/;var V=/^(?:0|[1-9]\d*)$/;var H={};H[T]=H[N]=H[$]=H[L]=H[_]=H[S]=H[C]=H[B]=H[I]=true;H[o]=H[u]=H[M]=H[a]=H[E]=H[h]=H[f]=H[d]=H[b]=H[p]=H[m]=H[x]=H[k]=H[j]=H[O]=false;var F=typeof Pl=="object"&&Pl&&Pl.Object===Object&&Pl;var U=typeof self=="object"&&self&&self.Object===Object&&self;var P=F||U||Function("return this")();var K=e&&!e.nodeType&&e;var Z=K&&"object"=="object"&&t&&!t.nodeType&&t;var z=Z&&Z.exports===K;var W=z&&F.process;var G=function(){try{return W&&W.binding&&W.binding("util")}catch(t){}}();var Q=G&&G.isTypedArray;function Y(t,e){var n=-1,i=t==null?0:t.length,s=0,r=[];while(++n<i){var l=t[n];if(e(l,n,t)){r[s++]=l}}return r}function X(t,e){var n=-1,i=e.length,s=t.length;while(++n<i){t[s+n]=e[n]}return t}function J(t,e){var n=-1,i=t==null?0:t.length;while(++n<i){if(e(t[n],n,t)){return true}}return false}function tt(t,e){var n=-1,i=Array(t);while(++n<t){i[n]=e(n)}return i}function et(t){return function(e){return t(e)}}function nt(t,e){return t.has(e)}function it(t,e){return t==null?undefined:t[e]}function st(t){var e=-1,n=Array(t.size);t.forEach((function(t,i){n[++e]=[i,t]}));return n}function rt(t,e){return function(n){return t(e(n))}}function lt(t){var e=-1,n=Array(t.size);t.forEach((function(t){n[++e]=t}));return n}var ot=Array.prototype,ut=Function.prototype,ct=Object.prototype;var at=P["__core-js_shared__"];var ht=ut.toString;var ft=ct.hasOwnProperty;var dt=function(){var t=/[^.]+$/.exec(at&&at.keys&&at.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var vt=ct.toString;var bt=RegExp("^"+ht.call(ft).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var pt=z?P.Buffer:undefined,yt=P.Symbol,mt=P.Uint8Array,wt=ct.propertyIsEnumerable,gt=ot.splice,xt=yt?yt.toStringTag:undefined;var kt=Object.getOwnPropertySymbols,jt=pt?pt.isBuffer:undefined,At=rt(Object.keys,Object);var qt=Oe(P,"DataView"),Ot=Oe(P,"Map"),Mt=Oe(P,"Promise"),Et=Oe(P,"Set"),Tt=Oe(P,"WeakMap"),Nt=Oe(Object,"create");var $t=Ce(qt),Lt=Ce(Ot),_t=Ce(Mt),St=Ce(Et),Ct=Ce(Tt);var Bt=yt?yt.prototype:undefined,It=Bt?Bt.valueOf:undefined;function Rt(t){var e=-1,n=t==null?0:t.length;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}function Dt(){this.__data__=Nt?Nt(null):{};this.size=0}function Vt(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}function Ht(t){var e=this.__data__;if(Nt){var n=e[t];return n===i?undefined:n}return ft.call(e,t)?e[t]:undefined}function Ft(t){var e=this.__data__;return Nt?e[t]!==undefined:ft.call(e,t)}function Ut(t,e){var n=this.__data__;this.size+=this.has(t)?0:1;n[t]=Nt&&e===undefined?i:e;return this}Rt.prototype.clear=Dt;Rt.prototype["delete"]=Vt;Rt.prototype.get=Ht;Rt.prototype.has=Ft;Rt.prototype.set=Ut;function Pt(t){var e=-1,n=t==null?0:t.length;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}function Kt(){this.__data__=[];this.size=0}function Zt(t){var e=this.__data__,n=fe(e,t);if(n<0){return false}var i=e.length-1;if(n==i){e.pop()}else{gt.call(e,n,1)}--this.size;return true}function zt(t){var e=this.__data__,n=fe(e,t);return n<0?undefined:e[n][1]}function Wt(t){return fe(this.__data__,t)>-1}function Gt(t,e){var n=this.__data__,i=fe(n,t);if(i<0){++this.size;n.push([t,e])}else{n[i][1]=e}return this}Pt.prototype.clear=Kt;Pt.prototype["delete"]=Zt;Pt.prototype.get=zt;Pt.prototype.has=Wt;Pt.prototype.set=Gt;function Qt(t){var e=-1,n=t==null?0:t.length;this.clear();while(++e<n){var i=t[e];this.set(i[0],i[1])}}function Yt(){this.size=0;this.__data__={hash:new Rt,map:new(Ot||Pt),string:new Rt}}function Xt(t){var e=qe(this,t)["delete"](t);this.size-=e?1:0;return e}function Jt(t){return qe(this,t).get(t)}function te(t){return qe(this,t).has(t)}function ee(t,e){var n=qe(this,t),i=n.size;n.set(t,e);this.size+=n.size==i?0:1;return this}Qt.prototype.clear=Yt;Qt.prototype["delete"]=Xt;Qt.prototype.get=Jt;Qt.prototype.has=te;Qt.prototype.set=ee;function ne(t){var e=-1,n=t==null?0:t.length;this.__data__=new Qt;while(++e<n){this.add(t[e])}}function ie(t){this.__data__.set(t,i);return this}function se(t){return this.__data__.has(t)}ne.prototype.add=ne.prototype.push=ie;ne.prototype.has=se;function re(t){var e=this.__data__=new Pt(t);this.size=e.size}function le(){this.__data__=new Pt;this.size=0}function oe(t){var e=this.__data__,n=e["delete"](t);this.size=e.size;return n}function ue(t){return this.__data__.get(t)}function ce(t){return this.__data__.has(t)}function ae(t,e){var i=this.__data__;if(i instanceof Pt){var s=i.__data__;if(!Ot||s.length<n-1){s.push([t,e]);this.size=++i.size;return this}i=this.__data__=new Qt(s)}i.set(t,e);this.size=i.size;return this}re.prototype.clear=le;re.prototype["delete"]=oe;re.prototype.get=ue;re.prototype.has=ce;re.prototype.set=ae;function he(t,e){var n=Re(t),i=!n&&Ie(t),s=!n&&!i&&Ve(t),r=!n&&!i&&!s&&Ze(t),l=n||i||s||r,o=l?tt(t.length,String):[],u=o.length;for(var c in t){if((e||ft.call(t,c))&&!(l&&(c=="length"||s&&(c=="offset"||c=="parent")||r&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ne(c,u)))){o.push(c)}}return o}function fe(t,e){var n=t.length;while(n--){if(Be(t[n][0],e)){return n}}return-1}function de(t,e,n){var i=e(t);return Re(t)?i:X(i,n(t))}function ve(t){if(t==null){return t===undefined?q:y}return xt&&xt in Object(t)?Me(t):Se(t)}function be(t){return Ke(t)&&ve(t)==o}function pe(t,e,n,i,s){if(t===e){return true}if(t==null||e==null||!Ke(t)&&!Ke(e)){return t!==t&&e!==e}return ye(t,e,n,i,pe,s)}function ye(t,e,n,i,r,l){var c=Re(t),a=Re(e),h=c?u:Te(t),f=a?u:Te(e);h=h==o?m:h;f=f==o?m:f;var d=h==m,v=f==m,b=h==f;if(b&&Ve(t)){if(!Ve(e)){return false}c=true;d=false}if(b&&!d){l||(l=new re);return c||Ze(t)?xe(t,e,n,i,r,l):ke(t,e,h,n,i,r,l)}if(!(n&s)){var p=d&&ft.call(t,"__wrapped__"),y=v&&ft.call(e,"__wrapped__");if(p||y){var w=p?t.value():t,g=y?e.value():e;l||(l=new re);return r(w,g,n,i,l)}}if(!b){return false}l||(l=new re);return je(t,e,n,i,r,l)}function me(t){if(!Pe(t)||Le(t)){return false}var e=Fe(t)?bt:D;return e.test(Ce(t))}function we(t){return Ke(t)&&Ue(t.length)&&!!H[ve(t)]}function ge(t){if(!_e(t)){return At(t)}var e=[];for(var n in Object(t)){if(ft.call(t,n)&&n!="constructor"){e.push(n)}}return e}function xe(t,e,n,i,l,o){var u=n&s,c=t.length,a=e.length;if(c!=a&&!(u&&a>c)){return false}var h=o.get(t);if(h&&o.get(e)){return h==e}var f=-1,d=true,v=n&r?new ne:undefined;o.set(t,e);o.set(e,t);while(++f<c){var b=t[f],p=e[f];if(i){var y=u?i(p,b,f,e,t,o):i(b,p,f,t,e,o)}if(y!==undefined){if(y){continue}d=false;break}if(v){if(!J(e,(function(t,e){if(!nt(v,e)&&(b===t||l(b,t,n,i,o))){return v.push(e)}}))){d=false;break}}else if(!(b===p||l(b,p,n,i,o))){d=false;break}}o["delete"](t);o["delete"](e);return d}function ke(t,e,n,i,l,o,u){switch(n){case E:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset){return false}t=t.buffer;e=e.buffer;case M:if(t.byteLength!=e.byteLength||!o(new mt(t),new mt(e))){return false}return true;case a:case h:case p:return Be(+t,+e);case f:return t.name==e.name&&t.message==e.message;case x:case j:return t==e+"";case b:var c=st;case k:var d=i&s;c||(c=lt);if(t.size!=e.size&&!d){return false}var v=u.get(t);if(v){return v==e}i|=r;u.set(t,e);var y=xe(c(t),c(e),i,l,o,u);u["delete"](t);return y;case A:if(It){return It.call(t)==It.call(e)}}return false}function je(t,e,n,i,r,l){var o=n&s,u=Ae(t),c=u.length,a=Ae(e),h=a.length;if(c!=h&&!o){return false}var f=c;while(f--){var d=u[f];if(!(o?d in e:ft.call(e,d))){return false}}var v=l.get(t);if(v&&l.get(e)){return v==e}var b=true;l.set(t,e);l.set(e,t);var p=o;while(++f<c){d=u[f];var y=t[d],m=e[d];if(i){var w=o?i(m,y,d,e,t,l):i(y,m,d,t,e,l)}if(!(w===undefined?y===m||r(y,m,n,i,l):w)){b=false;break}p||(p=d=="constructor")}if(b&&!p){var g=t.constructor,x=e.constructor;if(g!=x&&("constructor"in t&&"constructor"in e)&&!(typeof g=="function"&&g instanceof g&&typeof x=="function"&&x instanceof x)){b=false}}l["delete"](t);l["delete"](e);return b}function Ae(t){return de(t,ze,Ee)}function qe(t,e){var n=t.__data__;return $e(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Oe(t,e){var n=it(t,e);return me(n)?n:undefined}function Me(t){var e=ft.call(t,xt),n=t[xt];try{t[xt]=undefined;var i=true}catch(t){}var s=vt.call(t);if(i){if(e){t[xt]=n}else{delete t[xt]}}return s}var Ee=!kt?We:function(t){if(t==null){return[]}t=Object(t);return Y(kt(t),(function(e){return wt.call(t,e)}))};var Te=ve;if(qt&&Te(new qt(new ArrayBuffer(1)))!=E||Ot&&Te(new Ot)!=b||Mt&&Te(Mt.resolve())!=w||Et&&Te(new Et)!=k||Tt&&Te(new Tt)!=O){Te=function(t){var e=ve(t),n=e==m?t.constructor:undefined,i=n?Ce(n):"";if(i){switch(i){case $t:return E;case Lt:return b;case _t:return w;case St:return k;case Ct:return O}}return e}}function Ne(t,e){e=e==null?l:e;return!!e&&(typeof t=="number"||V.test(t))&&(t>-1&&t%1==0&&t<e)}function $e(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Le(t){return!!dt&&dt in t}function _e(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||ct;return t===n}function Se(t){return vt.call(t)}function Ce(t){if(t!=null){try{return ht.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Be(t,e){return t===e||t!==t&&e!==e}var Ie=be(function(){return arguments}())?be:function(t){return Ke(t)&&ft.call(t,"callee")&&!wt.call(t,"callee")};var Re=Array.isArray;function De(t){return t!=null&&Ue(t.length)&&!Fe(t)}var Ve=jt||Ge;function He(t,e){return pe(t,e)}function Fe(t){if(!Pe(t)){return false}var e=ve(t);return e==d||e==v||e==c||e==g}function Ue(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=l}function Pe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function Ke(t){return t!=null&&typeof t=="object"}var Ze=Q?et(Q):we;function ze(t){return De(t)?he(t):ge(t)}function We(){return[]}function Ge(){return false}t.exports=He})(jo,jo.exports);var Ao={};Object.defineProperty(Ao,"__esModule",{value:true});const qo=ko.exports;const Oo=jo.exports;var Mo;(function(t){function e(t={},e={},n=false){if(typeof t!=="object"){t={}}if(typeof e!=="object"){e={}}let i=qo(e);if(!n){i=Object.keys(i).reduce(((t,e)=>{if(i[e]!=null){t[e]=i[e]}return t}),{})}for(const n in t){if(t[n]!==undefined&&e[n]===undefined){i[n]=t[n]}}return Object.keys(i).length>0?i:undefined}t.compose=e;function n(t={},e={}){if(typeof t!=="object"){t={}}if(typeof e!=="object"){e={}}const n=Object.keys(t).concat(Object.keys(e)).reduce(((n,i)=>{if(!Oo(t[i],e[i])){n[i]=e[i]===undefined?null:e[i]}return n}),{});return Object.keys(n).length>0?n:undefined}t.diff=n;function i(t={},e={}){t=t||{};const n=Object.keys(e).reduce(((n,i)=>{if(e[i]!==t[i]&&t[i]!==undefined){n[i]=e[i]}return n}),{});return Object.keys(t).reduce(((n,i)=>{if(t[i]!==e[i]&&e[i]===undefined){n[i]=null}return n}),n)}t.invert=i;function s(t,e,n=false){if(typeof t!=="object"){return e}if(typeof e!=="object"){return undefined}if(!n){return e}const i=Object.keys(e).reduce(((n,i)=>{if(t[i]===undefined){n[i]=e[i]}return n}),{});return Object.keys(i).length>0?i:undefined}t.transform=s})(Mo||(Mo={}));Ao.default=Mo;var Eo={};Object.defineProperty(Eo,"__esModule",{value:true});var To;(function(t){function e(t){if(typeof t.delete==="number"){return t.delete}else if(typeof t.retain==="number"){return t.retain}else if(typeof t.retain==="object"&&t.retain!==null){return 1}else{return typeof t.insert==="string"?t.insert.length:1}}t.length=e})(To||(To={}));Eo.default=To;var No={};Object.defineProperty(No,"__esModule",{value:true});const $o=Eo;class Lo{constructor(t){this.ops=t;this.index=0;this.offset=0}hasNext(){return this.peekLength()<Infinity}next(t){if(!t){t=Infinity}const e=this.ops[this.index];if(e){const n=this.offset;const i=$o.default.length(e);if(t>=i-n){t=i-n;this.index+=1;this.offset=0}else{this.offset+=t}if(typeof e.delete==="number"){return{delete:t}}else{const i={};if(e.attributes){i.attributes=e.attributes}if(typeof e.retain==="number"){i.retain=t}else if(typeof e.retain==="object"&&e.retain!==null){i.retain=e.retain}else if(typeof e.insert==="string"){i.insert=e.insert.substr(n,t)}else{i.insert=e.insert}return i}}else{return{retain:Infinity}}}peek(){return this.ops[this.index]}peekLength(){if(this.ops[this.index]){return $o.default.length(this.ops[this.index])-this.offset}else{return Infinity}}peekType(){const t=this.ops[this.index];if(t){if(typeof t.delete==="number"){return"delete"}else if(typeof t.retain==="number"||typeof t.retain==="object"&&t.retain!==null){return"retain"}else{return"insert"}}return"retain"}rest(){if(!this.hasNext()){return[]}else if(this.offset===0){return this.ops.slice(this.index)}else{const t=this.offset;const e=this.index;const n=this.next();const i=this.ops.slice(this.index);this.offset=t;this.index=e;return[n].concat(i)}}}No.default=Lo;(function(t,e){Object.defineProperty(e,"__esModule",{value:true});e.AttributeMap=e.OpIterator=e.Op=void 0;const n=xo;const i=ko.exports;const s=jo.exports;const r=Ao;e.AttributeMap=r.default;const l=Eo;e.Op=l.default;const o=No;e.OpIterator=o.default;const u=String.fromCharCode(0);const c=(t,e)=>{if(typeof t!=="object"||t===null){throw new Error(`cannot retain a ${typeof t}`)}if(typeof e!=="object"||e===null){throw new Error(`cannot retain a ${typeof e}`)}const n=Object.keys(t)[0];if(!n||n!==Object.keys(e)[0]){throw new Error(`embed types not matched: ${n} != ${Object.keys(e)[0]}`)}return[n,t[n],e[n]]};class a{constructor(t){if(Array.isArray(t)){this.ops=t}else if(t!=null&&Array.isArray(t.ops)){this.ops=t.ops}else{this.ops=[]}}static registerEmbed(t,e){this.handlers[t]=e}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){const e=this.handlers[t];if(!e){throw new Error(`no handlers for embed type "${t}"`)}return e}insert(t,e){const n={};if(typeof t==="string"&&t.length===0){return this}n.insert=t;if(e!=null&&typeof e==="object"&&Object.keys(e).length>0){n.attributes=e}return this.push(n)}delete(t){if(t<=0){return this}return this.push({delete:t})}retain(t,e){if(typeof t==="number"&&t<=0){return this}const n={retain:t};if(e!=null&&typeof e==="object"&&Object.keys(e).length>0){n.attributes=e}return this.push(n)}push(t){let e=this.ops.length;let n=this.ops[e-1];t=i(t);if(typeof n==="object"){if(typeof t.delete==="number"&&typeof n.delete==="number"){this.ops[e-1]={delete:n.delete+t.delete};return this}if(typeof n.delete==="number"&&t.insert!=null){e-=1;n=this.ops[e-1];if(typeof n!=="object"){this.ops.unshift(t);return this}}if(s(t.attributes,n.attributes)){if(typeof t.insert==="string"&&typeof n.insert==="string"){this.ops[e-1]={insert:n.insert+t.insert};if(typeof t.attributes==="object"){this.ops[e-1].attributes=t.attributes}return this}else if(typeof t.retain==="number"&&typeof n.retain==="number"){this.ops[e-1]={retain:n.retain+t.retain};if(typeof t.attributes==="object"){this.ops[e-1].attributes=t.attributes}return this}}}if(e===this.ops.length){this.ops.push(t)}else{this.ops.splice(e,0,t)}return this}chop(){const t=this.ops[this.ops.length-1];if(t&&typeof t.retain==="number"&&!t.attributes){this.ops.pop()}return this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){const e=[];const n=[];this.forEach((i=>{const s=t(i)?e:n;s.push(i)}));return[e,n]}reduce(t,e){return this.ops.reduce(t,e)}changeLength(){return this.reduce(((t,e)=>{if(e.insert){return t+l.default.length(e)}else if(e.delete){return t-e.delete}return t}),0)}length(){return this.reduce(((t,e)=>t+l.default.length(e)),0)}slice(t=0,e=Infinity){const n=[];const i=new o.default(this.ops);let s=0;while(s<e&&i.hasNext()){let r;if(s<t){r=i.next(t-s)}else{r=i.next(e-s);n.push(r)}s+=l.default.length(r)}return new a(n)}compose(t){const e=new o.default(this.ops);const n=new o.default(t.ops);const i=[];const l=n.peek();if(l!=null&&typeof l.retain==="number"&&l.attributes==null){let t=l.retain;while(e.peekType()==="insert"&&e.peekLength()<=t){t-=e.peekLength();i.push(e.next())}if(l.retain-t>0){n.next(l.retain-t)}}const u=new a(i);while(e.hasNext()||n.hasNext()){if(n.peekType()==="insert"){u.push(n.next())}else if(e.peekType()==="delete"){u.push(e.next())}else{const t=Math.min(e.peekLength(),n.peekLength());const i=e.next(t);const l=n.next(t);if(l.retain){const o={};if(typeof i.retain==="number"){o.retain=typeof l.retain==="number"?t:l.retain}else{if(typeof l.retain==="number"){if(i.retain==null){o.insert=i.insert}else{o.retain=i.retain}}else{const t=i.retain==null?"insert":"retain";const[e,n,s]=c(i[t],l.retain);const r=a.getHandler(e);o[t]={[e]:r.compose(n,s,t==="retain")}}}const h=r.default.compose(i.attributes,l.attributes,typeof i.retain==="number");if(h){o.attributes=h}u.push(o);if(!n.hasNext()&&s(u.ops[u.ops.length-1],o)){const t=new a(e.rest());return u.concat(t).chop()}}else if(typeof l.delete==="number"&&(typeof i.retain==="number"||typeof i.retain==="object"&&i.retain!==null)){u.push(l)}}}return u.chop()}concat(t){const e=new a(this.ops.slice());if(t.ops.length>0){e.push(t.ops[0]);e.ops=e.ops.concat(t.ops.slice(1))}return e}diff(t,e){if(this.ops===t.ops){return new a}const i=[this,t].map((e=>e.map((n=>{if(n.insert!=null){return typeof n.insert==="string"?n.insert:u}const i=e===t?"on":"with";throw new Error("diff() called "+i+" non-document")})).join("")));const l=new a;const c=n(i[0],i[1],e,true);const h=new o.default(this.ops);const f=new o.default(t.ops);c.forEach((t=>{let e=t[1].length;while(e>0){let i=0;switch(t[0]){case n.INSERT:i=Math.min(f.peekLength(),e);l.push(f.next(i));break;case n.DELETE:i=Math.min(e,h.peekLength());h.next(i);l.delete(i);break;case n.EQUAL:i=Math.min(h.peekLength(),f.peekLength(),e);const t=h.next(i);const o=f.next(i);if(s(t.insert,o.insert)){l.retain(i,r.default.diff(t.attributes,o.attributes))}else{l.push(o).delete(i)}break}e-=i}}));return l.chop()}eachLine(t,e="\n"){const n=new o.default(this.ops);let i=new a;let s=0;while(n.hasNext()){if(n.peekType()!=="insert"){return}const r=n.peek();const o=l.default.length(r)-n.peekLength();const u=typeof r.insert==="string"?r.insert.indexOf(e,o)-o:-1;if(u<0){i.push(n.next())}else if(u>0){i.push(n.next(u))}else{if(t(i,n.next(1).attributes||{},s)===false){return}s+=1;i=new a}}if(i.length()>0){t(i,{},s)}}invert(t){const e=new a;this.reduce(((n,i)=>{if(i.insert){e.delete(l.default.length(i))}else if(typeof i.retain==="number"&&i.attributes==null){e.retain(i.retain);return n+i.retain}else if(i.delete||typeof i.retain==="number"){const s=i.delete||i.retain;const o=t.slice(n,n+s);o.forEach((t=>{if(i.delete){e.push(t)}else if(i.retain&&i.attributes){e.retain(l.default.length(t),r.default.invert(i.attributes,t.attributes))}}));return n+s}else if(typeof i.retain==="object"&&i.retain!==null){const s=t.slice(n,n+1);const l=new o.default(s.ops).next();const[u,h,f]=c(i.retain,l.insert);const d=a.getHandler(u);e.retain({[u]:d.invert(h,f)},r.default.invert(i.attributes,l.attributes));return n+1}return n}),0);return e.chop()}transform(t,e=false){e=!!e;if(typeof t==="number"){return this.transformPosition(t,e)}const n=t;const i=new o.default(this.ops);const s=new o.default(n.ops);const u=new a;while(i.hasNext()||s.hasNext()){if(i.peekType()==="insert"&&(e||s.peekType()!=="insert")){u.retain(l.default.length(i.next()))}else if(s.peekType()==="insert"){u.push(s.next())}else{const t=Math.min(i.peekLength(),s.peekLength());const n=i.next(t);const l=s.next(t);if(n.delete){continue}else if(l.delete){u.push(l)}else{const i=n.retain;const s=l.retain;let o=typeof s==="object"&&s!==null?s:t;if(typeof i==="object"&&i!==null&&typeof s==="object"&&s!==null){const t=Object.keys(i)[0];if(t===Object.keys(s)[0]){const n=a.getHandler(t);if(n){o={[t]:n.transform(i[t],s[t],e)}}}}u.retain(o,r.default.transform(n.attributes,l.attributes,e))}}}return u.chop()}transformPosition(t,e=false){e=!!e;const n=new o.default(this.ops);let i=0;while(n.hasNext()&&i<=t){const s=n.peekLength();const r=n.peekType();n.next();if(r==="delete"){t-=Math.min(s,t-i);continue}else if(r==="insert"&&(i<t||!e)){t+=s}i+=s}return t}}a.Op=l.default;a.OpIterator=o.default;a.AttributeMap=r.default;a.handlers={};e.default=a;{t.exports=a;t.exports.default=a}})(Zl,Zl.exports);const _o=Kl(Zl.exports);class So extends Sl{static value(){return undefined}optimize(){if(this.prev||this.next){this.remove()}}length(){return 0}value(){return""}}So.blotName="break";So.tagName="BR";class Co extends Fl{}const Bo={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Io(t){return t.replace(/[&<>"']/g,(t=>Bo[t]))}class Ro extends Ol{static allowedChildren=[Ro,So,Sl,Co];static order=["cursor","inline","link","underline","strike","italic","bold","script","code"];static compare(t,e){const n=Ro.order.indexOf(t);const i=Ro.order.indexOf(e);if(n>=0||i>=0){return n-i}if(t===e){return 0}if(t<e){return-1}return 1}formatAt(t,e,n,i){if(Ro.compare(this.statics.blotName,n)<0&&this.scroll.query(n,tl.BLOT)){const s=this.isolate(t,e);if(i){s.wrap(n,i)}}else{super.formatAt(t,e,n,i)}}optimize(t){super.optimize(t);if(this.parent instanceof Ro&&Ro.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t);t.wrap(this)}}}const Do=1;class Vo extends Tl{cache={};delta(){if(this.cache.delta==null){this.cache.delta=Fo(this)}return this.cache.delta}deleteAt(t,e){super.deleteAt(t,e);this.cache={}}formatAt(t,e,n,i){if(e<=0)return;if(this.scroll.query(n,tl.BLOCK)){if(t+e===this.length()){this.format(n,i)}}else{super.formatAt(t,Math.min(e,this.length()-t-1),n,i)}this.cache={}}insertAt(t,e,n){if(n!=null){super.insertAt(t,e,n);this.cache={};return}if(e.length===0)return;const i=e.split("\n");const s=i.shift();if(s.length>0){if(t<this.length()-1||this.children.tail==null){super.insertAt(Math.min(t,this.length()-1),s)}else{this.children.tail.insertAt(this.children.tail.length(),s)}this.cache={}}let r=this;i.reduce(((t,e)=>{r=r.split(t,true);r.insertAt(0,e);return e.length}),t+s.length)}insertBefore(t,e){const{head:n}=this.children;super.insertBefore(t,e);if(n instanceof So){n.remove()}this.cache={}}length(){if(this.cache.length==null){this.cache.length=super.length()+Do}return this.cache.length}moveChildren(t,e){super.moveChildren(t,e);this.cache={}}optimize(t){super.optimize(t);this.cache={}}path(t){return super.path(t,true)}removeChild(t){super.removeChild(t);this.cache={}}split(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(e&&(t===0||t>=this.length()-Do)){const e=this.clone();if(t===0){this.parent.insertBefore(e,this);return this}this.parent.insertBefore(e,this.next);return e}const n=super.split(t,e);this.cache={};return n}}Vo.blotName="block";Vo.tagName="P";Vo.defaultChild=So;Vo.allowedChildren=[So,Ro,Sl,Co];class Ho extends Sl{attach(){super.attach();this.attributes=new fl(this.domNode)}delta(){return(new _o).insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,e){const n=this.scroll.query(t,tl.BLOCK_ATTRIBUTE);if(n!=null){this.attributes.attribute(n,e)}}formatAt(t,e,n,i){this.format(n,i)}insertAt(t,e,n){if(n!=null){super.insertAt(t,e,n);return}const i=e.split("\n");const s=i.pop();const r=i.map((t=>{const e=this.scroll.create(Vo.blotName);e.insertAt(0,t);return e}));const l=this.split(t);r.forEach((t=>{this.parent.insertBefore(t,l)}));if(s){this.parent.insertBefore(this.scroll.create("text",s),l)}}}Ho.scope=tl.BLOCK_BLOT;function Fo(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;return t.descendants(yl).reduce(((t,n)=>{if(n.length()===0){return t}return t.insert(n.value(),Uo(n,{},e))}),new _o).insert("\n",Uo(t))}function Uo(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(t==null)return e;if("formats"in t&&typeof t.formats==="function"){e={...e,...t.formats()};if(n){delete e["code-token"]}}if(t.parent==null||t.parent.statics.blotName==="scroll"||t.parent.statics.scope!==t.statics.scope){return e}return Uo(t.parent,e,n)}class Po extends Sl{static blotName="cursor";static className="ql-cursor";static tagName="span";static CONTENTS="\ufeff";static value(){return undefined}constructor(t,e,n){super(t,e);this.selection=n;this.textNode=document.createTextNode(Po.CONTENTS);this.domNode.appendChild(this.textNode);this.savedLength=0}detach(){if(this.parent!=null)this.parent.removeChild(this)}format(t,e){if(this.savedLength!==0){super.format(t,e);return}let n=this;let i=0;while(n!=null&&n.statics.scope!==tl.BLOCK_BLOT){i+=n.offset(n.parent);n=n.parent}if(n!=null){this.savedLength=Po.CONTENTS.length;n.optimize();n.formatAt(i,Po.CONTENTS.length,t,e);this.savedLength=0}}index(t,e){if(t===this.textNode)return 0;return super.index(t,e)}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 t=this.selection.getNativeRange();while(this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode){this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode)}const e=this.prev instanceof Co?this.prev:null;const n=e?e.length():0;const i=this.next instanceof Co?this.next:null;const s=i?i.text:"";const{textNode:r}=this;const l=r.data.split(Po.CONTENTS).join("");r.data=Po.CONTENTS;let o;if(e){o=e;if(l||i){e.insertAt(e.length(),l+s);if(i){i.remove()}}}else if(i){o=i;i.insertAt(0,l)}else{const t=document.createTextNode(l);o=this.scroll.create(t);this.parent.insertBefore(o,this)}this.remove();if(t){const s=(t,s)=>{if(e&&t===e.domNode){return s}if(t===r){return n+s-1}if(i&&t===i.domNode){return n+l.length+s}return null};const u=s(t.start.node,t.start.offset);const c=s(t.end.node,t.end.offset);if(u!==null&&c!==null){return{startNode:o.domNode,startOffset:u,endNode:o.domNode,endOffset:c}}}return null}update(t,e){if(t.some((t=>t.type==="characterData"&&t.target===this.textNode))){const t=this.restore();if(t)e.range=t}}optimize(t){super.optimize(t);let{parent:e}=this;while(e){if(e.domNode.tagName==="A"){this.savedLength=Po.CONTENTS.length;e.isolate(this.offset(e),this.length()).unwrap();this.savedLength=0;break}e=e.parent}}value(){return""}}var Ko={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function i(){}if(Object.create){i.prototype=Object.create(null);if(!(new i).__proto__)n=false}function s(t,e,n){this.fn=t;this.context=e;this.once=n||false}function r(t,e,i,r,l){if(typeof i!=="function"){throw new TypeError("The listener must be a function")}var o=new s(i,r||t,l),u=n?n+e:e;if(!t._events[u])t._events[u]=o,t._eventsCount++;else if(!t._events[u].fn)t._events[u].push(o);else t._events[u]=[t._events[u],o];return t}function l(t,e){if(--t._eventsCount===0)t._events=new i;else delete t._events[e]}function o(){this._events=new i;this._eventsCount=0}o.prototype.eventNames=function t(){var i=[],s,r;if(this._eventsCount===0)return i;for(r in s=this._events){if(e.call(s,r))i.push(n?r.slice(1):r)}if(Object.getOwnPropertySymbols){return i.concat(Object.getOwnPropertySymbols(s))}return i};o.prototype.listeners=function t(e){var i=n?n+e:e,s=this._events[i];if(!s)return[];if(s.fn)return[s.fn];for(var r=0,l=s.length,o=new Array(l);r<l;r++){o[r]=s[r].fn}return o};o.prototype.listenerCount=function t(e){var i=n?n+e:e,s=this._events[i];if(!s)return 0;if(s.fn)return 1;return s.length};o.prototype.emit=function t(e,i,s,r,l,o){var u=n?n+e:e;if(!this._events[u])return false;var c=this._events[u],a=arguments.length,h,f;if(c.fn){if(c.once)this.removeListener(e,c.fn,undefined,true);switch(a){case 1:return c.fn.call(c.context),true;case 2:return c.fn.call(c.context,i),true;case 3:return c.fn.call(c.context,i,s),true;case 4:return c.fn.call(c.context,i,s,r),true;case 5:return c.fn.call(c.context,i,s,r,l),true;case 6:return c.fn.call(c.context,i,s,r,l,o),true}for(f=1,h=new Array(a-1);f<a;f++){h[f-1]=arguments[f]}c.fn.apply(c.context,h)}else{var d=c.length,v;for(f=0;f<d;f++){if(c[f].once)this.removeListener(e,c[f].fn,undefined,true);switch(a){case 1:c[f].fn.call(c[f].context);break;case 2:c[f].fn.call(c[f].context,i);break;case 3:c[f].fn.call(c[f].context,i,s);break;case 4:c[f].fn.call(c[f].context,i,s,r);break;default:if(!h)for(v=1,h=new Array(a-1);v<a;v++){h[v-1]=arguments[v]}c[f].fn.apply(c[f].context,h)}}}return true};o.prototype.on=function t(e,n,i){return r(this,e,n,i,false)};o.prototype.once=function t(e,n,i){return r(this,e,n,i,true)};o.prototype.removeListener=function t(e,i,s,r){var o=n?n+e:e;if(!this._events[o])return this;if(!i){l(this,o);return this}var u=this._events[o];if(u.fn){if(u.fn===i&&(!r||u.once)&&(!s||u.context===s)){l(this,o)}}else{for(var c=0,a=[],h=u.length;c<h;c++){if(u[c].fn!==i||r&&!u[c].once||s&&u[c].context!==s){a.push(u[c])}}if(a.length)this._events[o]=a.length===1?a[0]:a;else l(this,o)}return this};o.prototype.removeAllListeners=function t(e){var s;if(e){s=n?n+e:e;if(this._events[s])l(this,s)}else{this._events=new i;this._eventsCount=0}return this};o.prototype.off=o.prototype.removeListener;o.prototype.addListener=o.prototype.on;o.prefixed=n;o.EventEmitter=o;{t.exports=o}})(Ko);const Zo=new WeakMap;const zo=["error","warn","log","info"];let Wo="warn";function Go(t){if(Wo){if(zo.indexOf(t)<=zo.indexOf(Wo)){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++){n[i-1]=arguments[i]}console[t](...n)}}}function Qo(t){return zo.reduce(((e,n)=>{e[n]=Go.bind(console,n,t);return e}),{})}Qo.level=t=>{Wo=t};Go.level=Qo.level;const Yo=Qo("quill:events");const Xo=["selectionchange","mousedown","mouseup","click"];Xo.forEach((t=>{document.addEventListener(t,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}Array.from(document.querySelectorAll(".ql-container")).forEach((t=>{const n=Zo.get(t);if(n&&n.emitter){n.emitter.handleDOM(...e)}}))}))}));class Jo extends Ko.exports.EventEmitter{static 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"};static sources={API:"api",SILENT:"silent",USER:"user"};constructor(){super();this.domListeners={};this.on("error",Yo.error)}emit(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}Yo.log.call(Yo,...e);return super.emit(...e)}handleDOM(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++){n[i-1]=arguments[i]}(this.domListeners[t.type]||[]).forEach((e=>{let{node:i,handler:s}=e;if(t.target===i||i.contains(t.target)){s(t,...n)}}))}listenDOM(t,e,n){if(!this.domListeners[t]){this.domListeners[t]=[]}this.domListeners[t].push({node:e,handler:n})}}const tu=Qo("quill:selection");class eu{constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;this.index=t;this.length=e}}class nu{constructor(t,e){this.emitter=e;this.scroll=t;this.composing=false;this.mouseDown=false;this.root=this.scroll.domNode;this.cursor=this.scroll.create("cursor",this);this.savedRange=new eu(0,0);this.lastRange=this.savedRange;this.lastNative=null;this.handleComposition();this.handleDragging();this.emitter.listenDOM("selectionchange",document,(()=>{if(!this.mouseDown&&!this.composing){setTimeout(this.update.bind(this,Jo.sources.USER),1)}}));this.emitter.on(Jo.events.SCROLL_BEFORE_UPDATE,(()=>{if(!this.hasFocus())return;const t=this.getNativeRange();if(t==null)return;if(t.start.node===this.cursor.textNode)return;this.emitter.once(Jo.events.SCROLL_UPDATE,((e,n)=>{try{if(this.root.contains(t.start.node)&&this.root.contains(t.end.node)){this.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}const i=n.some((t=>t.type==="characterData"||t.type==="childList"||t.type==="attributes"&&t.target===this.root));this.update(i?Jo.sources.SILENT:e)}catch(t){}}))}));this.emitter.on(Jo.events.SCROLL_OPTIMIZE,((t,e)=>{if(e.range){const{startNode:t,startOffset:n,endNode:i,endOffset:s}=e.range;this.setNativeRange(t,n,i,s);this.update(Jo.sources.SILENT)}}));this.update(Jo.sources.SILENT)}handleComposition(){this.emitter.on(Jo.events.COMPOSITION_BEFORE_START,(()=>{this.composing=true}));this.emitter.on(Jo.events.COMPOSITION_END,(()=>{this.composing=false;if(this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout((()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}handleDragging(){this.emitter.listenDOM("mousedown",document.body,(()=>{this.mouseDown=true}));this.emitter.listenDOM("mouseup",document.body,(()=>{this.mouseDown=false;this.update(Jo.sources.USER)}))}focus(){if(this.hasFocus())return;this.root.focus({preventScroll:true});this.setRange(this.savedRange)}format(t,e){this.scroll.update();const n=this.getNativeRange();if(n==null||!n.native.collapsed||this.scroll.query(t,tl.BLOCK))return;if(n.start.node!==this.cursor.textNode){const t=this.scroll.find(n.start.node,false);if(t==null)return;if(t instanceof yl){const e=t.split(n.start.offset);t.parent.insertBefore(this.cursor,e)}else{t.insertBefore(this.cursor,n.start.node)}this.cursor.attach()}this.cursor.format(t,e);this.scroll.optimize();this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length);this.update()}getBounds(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;const n=this.scroll.length();t=Math.min(t,n-1);e=Math.min(t+e,n-1)-t;let i;let[s,r]=this.scroll.leaf(t);if(s==null)return null;if(e>0&&r===s.length()){const[e]=this.scroll.leaf(t+1);if(e){const[n]=this.scroll.line(t);const[i]=this.scroll.line(t+1);if(n===i){s=e;r=0}}}[i,r]=s.position(r,true);const l=document.createRange();if(e>0){l.setStart(i,r);[s,r]=this.scroll.leaf(t+e);if(s==null)return null;[i,r]=s.position(r,true);l.setEnd(i,r);return l.getBoundingClientRect()}let o="left";let u;if(i instanceof Text){if(!i.data.length){return null}if(r<i.data.length){l.setStart(i,r);l.setEnd(i,r+1)}else{l.setStart(i,r-1);l.setEnd(i,r);o="right"}u=l.getBoundingClientRect()}else{if(!(s.domNode instanceof Element))return null;u=s.domNode.getBoundingClientRect();if(r>0)o="right"}return{bottom:u.top+u.height,height:u.height,left:u[o],right:u[o],top:u.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const e=t.getRangeAt(0);if(e==null)return null;const n=this.normalizeNative(e);tu.info("getNativeRange",n);return n}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected){return[null,null]}const e=this.getNativeRange();if(e==null)return[null,null];const n=this.normalizedToRange(e);return[n,e]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&iu(this.root,document.activeElement)}normalizedToRange(t){const e=[[t.start.node,t.start.offset]];if(!t.native.collapsed){e.push([t.end.node,t.end.offset])}const n=e.map((t=>{const[e,n]=t;const i=this.scroll.find(e,true);const s=i.offset(this.scroll);if(n===0){return s}if(i instanceof yl){return s+i.index(e,n)}return s+i.length()}));const i=Math.min(Math.max(...n),this.scroll.length()-1);const s=Math.min(i,...n);return new eu(s,i-s)}normalizeNative(t){if(!iu(this.root,t.startContainer)||!t.collapsed&&!iu(this.root,t.endContainer)){return null}const e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};[e.start,e.end].forEach((t=>{let{node:e,offset:n}=t;while(!(e instanceof Text)&&e.childNodes.length>0){if(e.childNodes.length>n){e=e.childNodes[n];n=0}else if(e.childNodes.length===n){e=e.lastChild;if(e instanceof Text){n=e.data.length}else if(e.childNodes.length>0){n=e.childNodes.length}else{n=e.childNodes.length+1}}else{break}}t.node=e;t.offset=n}));return e}rangeToNative(t){const e=this.scroll.length();const n=(t,n)=>{t=Math.min(e-1,t);const[i,s]=this.scroll.leaf(t);return i?i.position(s,n):[null,-1]};return[...n(t.index,false),...n(t.index+t.length,true)]}setNativeRange(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:t;let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:e;let s=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;tu.info("setNativeRange",t,e,n,i);if(t!=null&&(this.root.parentNode==null||t.parentNode==null||n.parentNode==null)){return}const r=document.getSelection();if(r==null)return;if(t!=null){if(!this.hasFocus())this.root.focus({preventScroll:true});const{native:l}=this.getNativeRange()||{};if(l==null||s||t!==l.startContainer||e!==l.startOffset||n!==l.endContainer||i!==l.endOffset){if(t instanceof Element&&t.tagName==="BR"){e=Array.from(t.parentNode.childNodes).indexOf(t);t=t.parentNode}if(n instanceof Element&&n.tagName==="BR"){i=Array.from(n.parentNode.childNodes).indexOf(n);n=n.parentNode}const s=document.createRange();s.setStart(t,e);s.setEnd(n,i);r.removeAllRanges();r.addRange(s)}}else{r.removeAllRanges();this.root.blur()}}setRange(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Jo.sources.API;if(typeof e==="string"){n=e;e=false}tu.info("setRange",t);if(t!=null){const n=this.rangeToNative(t);this.setNativeRange(...n,e)}else{this.setNativeRange(null)}this.update(n)}update(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Jo.sources.USER;const e=this.lastRange;const[n,i]=this.getRange();this.lastRange=n;this.lastNative=i;if(this.lastRange!=null){this.savedRange=this.lastRange}if(!Yr(e,this.lastRange)){if(!this.composing&&i!=null&&i.native.collapsed&&i.start.node!==this.cursor.textNode){const t=this.cursor.restore();if(t){this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}}const n=[Jo.events.SELECTION_CHANGE,nr(this.lastRange),nr(e),t];this.emitter.emit(Jo.events.EDITOR_CHANGE,...n);if(t!==Jo.sources.SILENT){this.emitter.emit(...n)}}}}function iu(t,e){return t.contains(e)}const su=/^[ -~]*$/;class ru{constructor(t){this.scroll=t;this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let e=this.scroll.length();this.scroll.batchStart();const n=au(t);const i=new _o;const s=fu(n.ops.slice());s.reduce(((t,n)=>{const s=Zl.exports.Op.length(n);let r=n.attributes||{};let l=false;let o=false;if(n.insert!=null){i.retain(s);if(typeof n.insert==="string"){const i=n.insert;o=!i.endsWith("\n")&&(e<=t||!!this.scroll.descendant(Ho,t)[0]);this.scroll.insertAt(t,i);const[s,l]=this.scroll.line(t);let u=Jr({},Uo(s));if(s instanceof Vo){const[t]=s.descendant(yl,l);if(t){u=Jr(u,Uo(t))}}r=Zl.exports.AttributeMap.diff(u,r)||{}}else if(typeof n.insert==="object"){const i=Object.keys(n.insert)[0];if(i==null)return t;const s=this.scroll.query(i,tl.INLINE)!=null;if(s){if(e<=t||!!this.scroll.descendant(Ho,t)[0]){o=true}}else if(t>0){const[e,n]=this.scroll.descendant(yl,t-1);if(e instanceof Co){const t=e.value();if(t[n]!=="\n"){l=true}}else if(e instanceof Sl&&e.statics.scope===tl.INLINE_BLOT){l=true}}this.scroll.insertAt(t,i,n.insert[i]);if(s){const[e]=this.scroll.descendant(yl,t);if(e){const t=Jr({},Uo(e));r=Zl.exports.AttributeMap.diff(t,r)||{}}}}e+=s}else{i.push(n);if(n.retain!==null&&typeof n.retain==="object"){const e=Object.keys(n.retain)[0];if(e==null)return t;this.scroll.updateEmbedAt(t,e,n.retain[e])}}Object.keys(r).forEach((e=>{this.scroll.formatAt(t,s,e,r[e])}));const u=l?1:0;const c=o?1:0;e+=u+c;i.retain(u);i.delete(c);return t+s+u+c}),0);i.reduce(((t,e)=>{if(typeof e.delete==="number"){this.scroll.deleteAt(t,e.delete);return t}return t+Zl.exports.Op.length(e)}),0);this.scroll.batchEnd();this.scroll.optimize();return this.update(n)}deleteText(t,e){this.scroll.deleteAt(t,e);return this.update((new _o).retain(t).delete(e))}formatLine(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};this.scroll.update();Object.keys(n).forEach((i=>{this.scroll.lines(t,Math.max(e,1)).forEach((t=>{t.format(i,n[i])}))}));this.scroll.optimize();const i=(new _o).retain(t).retain(e,nr(n));return this.update(i)}formatText(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};Object.keys(n).forEach((i=>{this.scroll.formatAt(t,e,i,n[i])}));const i=(new _o).retain(t).retain(e,nr(n));return this.update(i)}getContents(t,e){return this.delta.slice(t,t+e)}getDelta(){return this.scroll.lines().reduce(((t,e)=>t.concat(e.delta())),new _o)}getFormat(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;let n=[];let i=[];if(e===0){this.scroll.path(t).forEach((t=>{const[e]=t;if(e instanceof Vo){n.push(e)}else if(e instanceof yl){i.push(e)}}))}else{n=this.scroll.lines(t,e);i=this.scroll.descendants(yl,t,e)}const[s,r]=[n,i].map((t=>{const e=t.shift();if(e==null)return{};let n=Uo(e);while(Object.keys(n).length>0){const e=t.shift();if(e==null)return n;n=uu(Uo(e),n)}return n}));return{...s,...r}}getHTML(t,e){const[n,i]=this.scroll.line(t);if(n){const s=n.length();const r=n.length()>=i+e;if(r&&!(i===0&&e===s)){return ou(n,i,e,true)}return ou(this.scroll,t,e,true)}return""}getText(t,e){return this.getContents(t,e).filter((t=>typeof t.insert==="string")).map((t=>t.insert)).join("")}insertContents(t,e){const n=au(e);const i=(new _o).retain(t).concat(n);this.scroll.insertContents(t,n);return this.update(i)}insertEmbed(t,e,n){this.scroll.insertAt(t,e,n);return this.update((new _o).retain(t).insert({[e]:n}))}insertText(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n");this.scroll.insertAt(t,e);Object.keys(n).forEach((i=>{this.scroll.formatAt(t,e.length,i,n[i])}));return this.update((new _o).retain(t).insert(e,nr(n)))}isBlank(){if(this.scroll.children.length===0)return true;if(this.scroll.children.length>1)return false;const t=this.scroll.children.head;if(t?.statics.blotName!==Vo.blotName)return false;const e=t;if(e.children.length>1)return false;return e.children.head instanceof So}removeFormat(t,e){const n=this.getText(t,e);const[i,s]=this.scroll.line(t+e);let r=0;let l=new _o;if(i!=null){r=i.length()-s;l=i.delta().slice(s,s+r-1).insert("\n")}const o=this.getContents(t,e+r);const u=o.diff((new _o).insert(n).concat(l));const c=(new _o).retain(t).concat(u);return this.applyDelta(c)}update(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;const i=this.delta;if(e.length===1&&e[0].type==="characterData"&&e[0].target.data.match(su)&&this.scroll.find(e[0].target)){const s=this.scroll.find(e[0].target);const r=Uo(s);const l=s.offset(this.scroll);const o=e[0].oldValue.replace(Po.CONTENTS,"");const u=(new _o).insert(o);const c=(new _o).insert(s.value());const a=n&&{oldRange:hu(n.oldRange,-l),newRange:hu(n.newRange,-l)};const h=(new _o).retain(l).concat(u.diff(c,a));t=h.reduce(((t,e)=>{if(e.insert){return t.insert(e.insert,r)}return t.push(e)}),new _o);this.delta=i.compose(t)}else{this.delta=this.getDelta();if(!t||!Yr(i.compose(t),this.delta)){t=i.diff(this.delta,n)}}return t}}function lu(t,e,n){if(t.length===0){const[t]=cu(n.pop());if(e<=0){return`</li></${t}>`}return`</li></${t}>${lu([],e-1,n)}`}const[{child:i,offset:s,length:r,indent:l,type:o},...u]=t;const[c,a]=cu(o);if(l>e){n.push(o);if(l===e+1){return`<${c}><li${a}>${ou(i,s,r)}${lu(u,l,n)}`}return`<${c}><li>${lu(t,e+1,n)}`}const h=n[n.length-1];if(l===e&&o===h){return`</li><li${a}>${ou(i,s,r)}${lu(u,l,n)}`}const[f]=cu(n.pop());return`</li></${f}>${lu(t,e-1,n)}`}function ou(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:false;if("html"in t&&typeof t.html==="function"){return t.html(e,n)}if(t instanceof Co){const i=Io(t.value().slice(e,e+n));return i.replaceAll(" ","&nbsp;")}if(t instanceof kl){if(t.statics.blotName==="list-container"){const i=[];t.children.forEachAt(e,n,((t,e,n)=>{const s="formats"in t&&typeof t.formats==="function"?t.formats():{};i.push({child:t,offset:e,length:n,indent:s.indent||0,type:s.list})}));return lu(i,-1,[])}const s=[];t.children.forEachAt(e,n,((t,e,n)=>{s.push(ou(t,e,n))}));if(i||t.statics.blotName==="list"){return s.join("")}const{outerHTML:r,innerHTML:l}=t.domNode;const[o,u]=r.split(`>${l}<`);if(o==="<table"){return`<table style="border: 1px solid #000;">${s.join("")}<${u}`}return`${o}>${s.join("")}<${u}`}return t.domNode instanceof Element?t.domNode.outerHTML:""}function uu(t,e){return Object.keys(e).reduce(((n,i)=>{if(t[i]==null)return n;const s=e[i];if(s===t[i]){n[i]=s}else if(Array.isArray(s)){if(s.indexOf(t[i])<0){n[i]=s.concat([t[i]])}else{n[i]=s}}else{n[i]=[s,t[i]]}return n}),{})}function cu(t){const e=t==="ordered"?"ol":"ul";switch(t){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function au(t){return t.reduce(((t,e)=>{if(typeof e.insert==="string"){const n=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(n,e.attributes)}return t.push(e)}),new _o)}function hu(t,e){let{index:n,length:i}=t;return new eu(n+e,i)}function fu(t){const e=[];t.forEach((t=>{if(typeof t.insert==="string"){const n=t.insert.split("\n");n.forEach(((n,i)=>{if(i)e.push({insert:"\n",attributes:t.attributes});if(n)e.push({insert:n,attributes:t.attributes})}))}else{e.push(t)}}));return e}class du{static DEFAULTS={};constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.quill=t;this.options=e}}const vu="\ufeff";class bu extends Sl{constructor(t,e){super(t,e);this.contentNode=document.createElement("span");this.contentNode.setAttribute("contenteditable","false");Array.from(this.domNode.childNodes).forEach((t=>{this.contentNode.appendChild(t)}));this.leftGuard=document.createTextNode(vu);this.rightGuard=document.createTextNode(vu);this.domNode.appendChild(this.leftGuard);this.domNode.appendChild(this.contentNode);this.domNode.appendChild(this.rightGuard)}index(t,e){if(t===this.leftGuard)return 0;if(t===this.rightGuard)return 1;return super.index(t,e)}restore(t){let e=null;let n;const i=t.data.split(vu).join("");if(t===this.leftGuard){if(this.prev instanceof Co){const t=this.prev.length();this.prev.insertAt(t,i);e={startNode:this.prev.domNode,startOffset:t+i.length}}else{n=document.createTextNode(i);this.parent.insertBefore(this.scroll.create(n),this);e={startNode:n,startOffset:i.length}}}else if(t===this.rightGuard){if(this.next instanceof Co){this.next.insertAt(0,i);e={startNode:this.next.domNode,startOffset:i.length}}else{n=document.createTextNode(i);this.parent.insertBefore(this.scroll.create(n),this.next);e={startNode:n,startOffset:i.length}}}t.data=vu;return e}update(t,e){t.forEach((t=>{if(t.type==="characterData"&&(t.target===this.leftGuard||t.target===this.rightGuard)){const n=this.restore(t.target);if(n)e.range=n}}))}}class pu{isComposing=false;constructor(t,e){this.scroll=t;this.emitter=e;this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",(t=>{if(!this.isComposing){this.handleCompositionStart(t)}}));this.scroll.domNode.addEventListener("compositionend",(t=>{if(this.isComposing){queueMicrotask((()=>{this.handleCompositionEnd(t)}))}}))}handleCompositionStart(t){const e=t.target instanceof Node?this.scroll.find(t.target,true):null;if(e&&!(e instanceof bu)){this.emitter.emit(Jo.events.COMPOSITION_BEFORE_START,t);this.scroll.batchStart();this.emitter.emit(Jo.events.COMPOSITION_START,t);this.isComposing=true}}handleCompositionEnd(t){this.emitter.emit(Jo.events.COMPOSITION_BEFORE_END,t);this.scroll.batchEnd();this.emitter.emit(Jo.events.COMPOSITION_END,t);this.isComposing=false}}class yu{static DEFAULTS={modules:{}};static themes={default:yu};modules={};constructor(t,e){this.quill=t;this.options=e}init(){Object.keys(this.options.modules).forEach((t=>{if(this.modules[t]==null){this.addModule(t)}}))}addModule(t){const e=this.quill.constructor.import(`modules/${t}`);this.modules[t]=new e(this.quill,this.options.modules[t]||{});return this.modules[t]}}const mu=t=>t.parentElement||t.getRootNode().host||null;const wu=t=>{const e=t.getBoundingClientRect();const n="offsetWidth"in t&&Math.abs(e.width)/t.offsetWidth||1;const i="offsetHeight"in t&&Math.abs(e.height)/t.offsetHeight||1;return{top:e.top,right:e.left+t.clientWidth*n,bottom:e.top+t.clientHeight*i,left:e.left}};const gu=t=>{const e=parseInt(t,10);return Number.isNaN(e)?0:e};const xu=(t,e,n,i,s,r)=>{if(t<n&&e>i){return 0}if(t<n){return-(n-t+s)}if(e>i){return e-t>i-n?t+s-n:e-i+r}return 0};const ku=(t,e)=>{const n=t.ownerDocument;let i=e;let s=t;while(s){const t=s===n.body;const e=t?{top:0,right:window.visualViewport?.width??n.documentElement.clientWidth,bottom:window.visualViewport?.height??n.documentElement.clientHeight,left:0}:wu(s);const r=getComputedStyle(s);const l=xu(i.left,i.right,e.left,e.right,gu(r.scrollPaddingLeft),gu(r.scrollPaddingRight));const o=xu(i.top,i.bottom,e.top,e.bottom,gu(r.scrollPaddingTop),gu(r.scrollPaddingBottom));if(l||o){if(t){n.defaultView?.scrollBy(l,o)}else{const{scrollLeft:t,scrollTop:e}=s;if(o){s.scrollTop+=o}if(l){s.scrollLeft+=l}const n=s.scrollLeft-t;const r=s.scrollTop-e;i={left:i.left-n,top:i.top-r,right:i.right-n,bottom:i.bottom-r}}}s=t||r.position==="fixed"?null:mu(s)}};const ju=100;const Au=["block","break","cursor","inline","scroll","text"];const qu=(t,e,n)=>{const i=new sl;Au.forEach((t=>{const n=e.query(t);if(n)i.register(n)}));t.forEach((t=>{let s=e.query(t);if(!s){n.error(`Cannot register "${t}" specified in "formats" config. Are you sure it was registered?`)}let r=0;while(s){i.register(s);s="blotName"in s?s.requiredContainer??null:null;r+=1;if(r>ju){n.error(`Cycle detected in registering blot requiredContainer: "${t}"`);break}}}));return i};const Ou=Qo("quill");const Mu=new sl;kl.uiClass="ql-ui";class Eu{static DEFAULTS={bounds:null,modules:{clipboard:true,keyboard:true,history:true,uploader:true},placeholder:"",readOnly:false,registry:Mu,theme:"default"};static events=Jo.events;static sources=Jo.sources;static version="2.0.3";static imports={delta:_o,parchment:Ul,"core/module":du,"core/theme":yu};static debug(t){if(t===true){t="log"}Qo.level(t)}static find(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;return Zo.get(t)||Mu.find(t,e)}static import(t){if(this.imports[t]==null){Ou.error(`Cannot import ${t}. Are you sure it was registered?`)}return this.imports[t]}static register(){if(typeof(arguments.length<=0?undefined:arguments[0])!=="string"){const t=arguments.length<=0?undefined:arguments[0];const e=!!(arguments.length<=1?undefined:arguments[1]);const n="attrName"in t?t.attrName:t.blotName;if(typeof n==="string"){this.register(`formats/${n}`,t,e)}else{Object.keys(t).forEach((n=>{this.register(n,t[n],e)}))}}else{const t=arguments.length<=0?undefined:arguments[0];const e=arguments.length<=1?undefined:arguments[1];const n=!!(arguments.length<=2?undefined:arguments[2]);if(this.imports[t]!=null&&!n){Ou.warn(`Overwriting ${t} with`,e)}this.imports[t]=e;if((t.startsWith("blots/")||t.startsWith("formats/"))&&e&&typeof e!=="boolean"&&e.blotName!=="abstract"){Mu.register(e)}if(typeof e.register==="function"){e.register(Mu)}}}constructor(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this.options=Lu(t,e);this.container=this.options.container;if(this.container==null){Ou.error("Invalid Quill container",t);return}if(this.options.debug){Eu.debug(this.options.debug)}const n=this.container.innerHTML.trim();this.container.classList.add("ql-container");this.container.innerHTML="";Zo.set(this.container,this);this.root=this.addContainer("ql-editor");this.root.classList.add("ql-blank");this.emitter=new Jo;const i=Dl.blotName;const s=this.options.registry.query(i);if(!s||!("blotName"in s)){throw new Error(`Cannot initialize Quill without "${i}" blot`)}this.scroll=new s(this.options.registry,this.root,{emitter:this.emitter});this.editor=new ru(this.scroll);this.selection=new nu(this.scroll,this.emitter);this.composition=new pu(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(Jo.events.EDITOR_CHANGE,(t=>{if(t===Jo.events.TEXT_CHANGE){this.root.classList.toggle("ql-blank",this.editor.isBlank())}}));this.emitter.on(Jo.events.SCROLL_UPDATE,((t,e)=>{const n=this.selection.lastRange;const[i]=this.selection.getRange();const s=n&&i?{oldRange:n,newRange:i}:undefined;_u.call(this,(()=>this.editor.update(null,e,s)),t)}));this.emitter.on(Jo.events.SCROLL_EMBED_UPDATE,((t,e)=>{const n=this.selection.lastRange;const[i]=this.selection.getRange();const s=n&&i?{oldRange:n,newRange:i}:undefined;_u.call(this,(()=>{const n=(new _o).retain(t.offset(this)).retain({[t.statics.blotName]:e});return this.editor.update(n,[],s)}),Eu.sources.USER)}));if(n){const t=this.clipboard.convert({html:`${n}<p><br></p>`,text:"\n"});this.setContents(t)}this.history.clear();if(this.options.placeholder){this.root.setAttribute("data-placeholder",this.options.placeholder)}if(this.options.readOnly){this.disable()}this.allowReadOnlyEdits=false}addContainer(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(typeof t==="string"){const e=t;t=document.createElement("div");t.classList.add(e)}this.container.insertBefore(t,e);return t}blur(){this.selection.setRange(null)}deleteText(t,e,n){[t,e,,n]=Su(t,e,n);return _u.call(this,(()=>this.editor.deleteText(t,e)),n,t,-1*e)}disable(){this.enable(false)}editReadOnly(t){this.allowReadOnlyEdits=true;const e=t();this.allowReadOnlyEdits=false;return e}enable(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;this.scroll.enable(t);this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this.selection.focus();if(!t.preventScroll){this.scrollSelectionIntoView()}}format(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Jo.sources.API;return _u.call(this,(()=>{const n=this.getSelection(true);let i=new _o;if(n==null)return i;if(this.scroll.query(t,tl.BLOCK)){i=this.editor.formatLine(n.index,n.length,{[t]:e})}else if(n.length===0){this.selection.format(t,e);return i}else{i=this.editor.formatText(n.index,n.length,{[t]:e})}this.setSelection(n,Jo.sources.SILENT);return i}),n)}formatLine(t,e,n,i,s){let r;[t,e,r,s]=Su(t,e,n,i,s);return _u.call(this,(()=>this.editor.formatLine(t,e,r)),s,t,0)}formatText(t,e,n,i,s){let r;[t,e,r,s]=Su(t,e,n,i,s);return _u.call(this,(()=>this.editor.formatText(t,e,r)),s,t,0)}getBounds(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;let n=null;if(typeof t==="number"){n=this.selection.getBounds(t,e)}else{n=this.selection.getBounds(t.index,t.length)}if(!n)return null;const i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}getContents(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.getLength()-t;[t,e]=Su(t,e);return this.editor.getContents(t,e)}getFormat(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.getSelection(true);let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(typeof t==="number"){return this.editor.getFormat(t,e)}return this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Number.MAX_VALUE;if(typeof t!=="number"){return this.scroll.lines(t.index,t.length)}return this.scroll.lines(t,e)}getModule(t){return this.theme.modules[t]}getSelection(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;if(t)this.focus();this.update();return this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1?arguments[1]:undefined;if(typeof t==="number"){e=e??this.getLength()-t}[t,e]=Su(t,e);return this.editor.getHTML(t,e)}getText(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1?arguments[1]:undefined;if(typeof t==="number"){e=e??this.getLength()-t}[t,e]=Su(t,e);return this.editor.getText(t,e)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Eu.sources.API;return _u.call(this,(()=>this.editor.insertEmbed(t,e,n)),i,t)}insertText(t,e,n,i,s){let r;[t,,r,s]=Su(t,0,n,i,s);return _u.call(this,(()=>this.editor.insertText(t,e,r)),s,t,e.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(t,e,n){[t,e,,n]=Su(t,e,n);return _u.call(this,(()=>this.editor.removeFormat(t,e)),n,t)}scrollRectIntoView(t){ku(this.root,t)}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 t=this.selection.lastRange;const e=t&&this.selection.getBounds(t.index,t.length);if(e){this.scrollRectIntoView(e)}}setContents(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Jo.sources.API;return _u.call(this,(()=>{t=new _o(t);const e=this.getLength();const n=this.editor.deleteText(0,e);const i=this.editor.insertContents(0,t);const s=this.editor.deleteText(this.getLength()-1,1);return n.compose(i).compose(s)}),e)}setSelection(t,e,n){if(t==null){this.selection.setRange(null,e||Eu.sources.API)}else{[t,e,,n]=Su(t,e,n);this.selection.setRange(new eu(Math.max(0,t),e),n);if(n!==Jo.sources.SILENT){this.scrollSelectionIntoView()}}}setText(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Jo.sources.API;const n=(new _o).insert(t);return this.setContents(n,e)}update(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:Jo.sources.USER;const e=this.scroll.update(t);this.selection.update(t);return e}updateContents(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Jo.sources.API;return _u.call(this,(()=>{t=new _o(t);return this.editor.applyDelta(t)}),e,true)}}function Tu(t){return typeof t==="string"?document.querySelector(t):t}function Nu(t){return Object.entries(t??{}).reduce(((t,e)=>{let[n,i]=e;return{...t,[n]:i===true?{}:i}}),{})}function $u(t){return Object.fromEntries(Object.entries(t).filter((t=>t[1]!==undefined)))}function Lu(t,e){const n=Tu(t);if(!n){throw new Error("Invalid Quill container")}const i=!e.theme||e.theme===Eu.DEFAULTS.theme;const s=i?yu:Eu.import(`themes/${e.theme}`);if(!s){throw new Error(`Invalid theme ${e.theme}. Did you register it?`)}const{modules:r,...l}=Eu.DEFAULTS;const{modules:o,...u}=s.DEFAULTS;let c=Nu(e.modules);if(c!=null&&c.toolbar&&c.toolbar.constructor!==Object){c={...c,toolbar:{container:c.toolbar}}}const a=Jr({},Nu(r),Nu(o),c);const h={...l,...$u(u),...$u(e)};let f=e.registry;if(f){if(e.formats){Ou.warn('Ignoring "formats" option because "registry" is specified')}}else{f=e.formats?qu(e.formats,h.registry,Ou):h.registry}return{...h,registry:f,container:n,theme:s,modules:Object.entries(a).reduce(((t,e)=>{let[n,i]=e;if(!i)return t;const s=Eu.import(`modules/${n}`);if(s==null){Ou.error(`Cannot load ${n} module. Are you sure you registered it?`);return t}return{...t,[n]:Jr({},s.DEFAULTS||{},i)}}),{}),bounds:Tu(h.bounds)}}function _u(t,e,n,i){if(!this.isEnabled()&&e===Jo.sources.USER&&!this.allowReadOnlyEdits){return new _o}let s=n==null?null:this.getSelection();const r=this.editor.delta;const l=t();if(s!=null){if(n===true){n=s.index}if(i==null){s=Cu(s,l,e)}else if(i!==0){s=Cu(s,n,i,e)}this.setSelection(s,Jo.sources.SILENT)}if(l.length()>0){const t=[Jo.events.TEXT_CHANGE,l,r,e];this.emitter.emit(Jo.events.EDITOR_CHANGE,...t);if(e!==Jo.sources.SILENT){this.emitter.emit(...t)}}return l}function Su(t,e,n,i,s){let r={};if(typeof t.index==="number"&&typeof t.length==="number"){if(typeof e!=="number"){s=i;i=n;n=e;e=t.length;t=t.index}else{e=t.length;t=t.index}}else if(typeof e!=="number"){s=i;i=n;n=e;e=0}if(typeof n==="object"){r=n;s=i}else if(typeof n==="string"){if(i!=null){r[n]=i}else{s=n}}s=s||Jo.sources.API;return[t,e,r,s]}function Cu(t,e,n,i){const s=typeof n==="number"?n:0;if(t==null)return null;let r;let l;if(e&&typeof e.transformPosition==="function"){[r,l]=[t.index,t.index+t.length].map((t=>e.transformPosition(t,i!==Jo.sources.USER)))}else{[r,l]=[t.index,t.index+t.length].map((t=>{if(t<e||t===e&&i===Jo.sources.USER)return t;if(s>=0){return t+s}return Math.max(e,t+s)}))}return new eu(r,l-r)}class Bu extends Ll{}function Iu(t){return t instanceof Vo||t instanceof Ho}function Ru(t){return typeof t.updateContent==="function"}class Du extends Dl{static blotName="scroll";static className="ql-editor";static tagName="DIV";static defaultChild=Vo;static allowedChildren=[Vo,Ho,Bu];constructor(t,e,n){let{emitter:i}=n;super(t,e);this.emitter=i;this.batch=false;this.optimize();this.enable();this.domNode.addEventListener("dragstart",(t=>this.handleDragStart(t)))}batchStart(){if(!Array.isArray(this.batch)){this.batch=[]}}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=false;this.update(t)}emitMount(t){this.emitter.emit(Jo.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(Jo.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,e){this.emitter.emit(Jo.events.SCROLL_EMBED_UPDATE,t,e)}deleteAt(t,e){const[n,i]=this.line(t);const[s]=this.line(t+e);super.deleteAt(t,e);if(s!=null&&n!==s&&i>0){if(n instanceof Ho||s instanceof Ho){this.optimize();return}const t=s.children.head instanceof So?null:s.children.head;n.moveChildren(s,t);n.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,e,n,i){super.formatAt(t,e,n,i);this.optimize()}insertAt(t,e,n){if(t>=this.length()){if(n==null||this.scroll.query(e,tl.BLOCK)==null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t);if(n==null&&e.endsWith("\n")){t.insertAt(0,e.slice(0,-1),n)}else{t.insertAt(0,e,n)}}else{const t=this.scroll.create(e,n);this.appendChild(t)}}else{super.insertAt(t,e,n)}this.optimize()}insertBefore(t,e){if(t.statics.scope===tl.INLINE_BLOT){const n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(t);super.insertBefore(n,e)}else{super.insertBefore(t,e)}}insertContents(t,e){const n=this.deltaToRenderBlocks(e.concat((new _o).insert("\n")));const i=n.pop();if(i==null)return;this.batchStart();const s=n.shift();if(s){const e=s.type==="block"&&(s.delta.length()===0||!this.descendant(Ho,t)[0]&&t<this.length());const n=s.type==="block"?s.delta:(new _o).insert({[s.key]:s.value});Vu(this,t,n);const i=s.type==="block"?1:0;const r=t+n.length()+i;if(e){this.insertAt(r-1,"\n")}const l=Uo(this.line(t)[0]);const o=Zl.exports.AttributeMap.diff(l,s.attributes)||{};Object.keys(o).forEach((t=>{this.formatAt(r-1,1,t,o[t])}));t=r}let[r,l]=this.children.find(t);if(n.length){if(r){r=r.split(l);l=0}n.forEach((t=>{if(t.type==="block"){const e=this.createBlock(t.attributes,r||undefined);Vu(e,0,t.delta)}else{const e=this.create(t.key,t.value);this.insertBefore(e,r||undefined);Object.keys(t.attributes).forEach((n=>{e.format(n,t.attributes[n])}))}}))}if(i.type==="block"&&i.delta.length()){const t=r?r.offset(r.scroll)+l:this.length();Vu(this,t,i.delta)}this.batchEnd();this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const e=this.path(t).pop();if(!e){return[null,-1]}const[n,i]=e;return n instanceof yl?[n,i]:[null,-1]}line(t){if(t===this.length()){return this.line(t-1)}return this.descendant(Iu,t)}lines(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Number.MAX_VALUE;const n=(t,e,i)=>{let s=[];let r=i;t.children.forEachAt(e,i,((t,e,i)=>{if(Iu(t)){s.push(t)}else if(t instanceof Ll){s=s.concat(n(t,e,r))}r-=i}));return s};return n(this,t,e)}optimize(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.batch)return;super.optimize(t,e);if(t.length>0){this.emitter.emit(Jo.events.SCROLL_OPTIMIZE,t,e)}}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){if(Array.isArray(t)){this.batch=this.batch.concat(t)}return}let e=Jo.sources.USER;if(typeof t==="string"){e=t}if(!Array.isArray(t)){t=this.observer.takeRecords()}t=t.filter((t=>{let{target:e}=t;const n=this.find(e,true);return n&&!Ru(n)}));if(t.length>0){this.emitter.emit(Jo.events.SCROLL_BEFORE_UPDATE,e,t)}super.update(t.concat([]));if(t.length>0){this.emitter.emit(Jo.events.SCROLL_UPDATE,e,t)}}updateEmbedAt(t,e,n){const[i]=this.descendant((t=>t instanceof Ho),t);if(i&&i.statics.blotName===e&&Ru(i)){i.updateContent(n)}}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const e=[];let n=new _o;t.forEach((t=>{const i=t?.insert;if(!i)return;if(typeof i==="string"){const s=i.split("\n");s.slice(0,-1).forEach((i=>{n.insert(i,t.attributes);e.push({type:"block",delta:n,attributes:t.attributes??{}});n=new _o}));const r=s[s.length-1];if(r){n.insert(r,t.attributes)}}else{const s=Object.keys(i)[0];if(!s)return;if(this.query(s,tl.INLINE)){n.push(t)}else{if(n.length()){e.push({type:"block",delta:n,attributes:{}})}n=new _o;e.push({type:"blockEmbed",key:s,value:i[s],attributes:t.attributes??{}})}}}));if(n.length()){e.push({type:"block",delta:n,attributes:{}})}return e}createBlock(t,e){let n;const i={};Object.entries(t).forEach((t=>{let[e,s]=t;const r=this.query(e,tl.BLOCK&tl.BLOT)!=null;if(r){n=e}else{i[e]=s}}));const s=this.create(n||this.statics.defaultChild.blotName,n?t[n]:undefined);this.insertBefore(s,e||undefined);const r=s.length();Object.entries(i).forEach((t=>{let[e,n]=t;s.formatAt(0,r,e,n)}));return s}}function Vu(t,e,n){n.reduce(((e,n)=>{const i=Zl.exports.Op.length(n);let s=n.attributes||{};if(n.insert!=null){if(typeof n.insert==="string"){const i=n.insert;t.insertAt(e,i);const[r]=t.descendant(yl,e);const l=Uo(r);s=Zl.exports.AttributeMap.diff(l,s)||{}}else if(typeof n.insert==="object"){const i=Object.keys(n.insert)[0];if(i==null)return e;t.insertAt(e,i,n.insert[i]);const r=t.scroll.query(i,tl.INLINE)!=null;if(r){const[n]=t.descendant(yl,e);const i=Uo(n);s=Zl.exports.AttributeMap.diff(i,s)||{}}}}Object.keys(s).forEach((n=>{t.formatAt(e,i,n,s[n])}));return e+i}),e)}const Hu={scope:tl.BLOCK,whitelist:["right","center","justify"]};const Fu=new el("align","align",Hu);const Uu=new ol("align","ql-align",Hu);const Pu=new al("align","text-align",Hu);class Ku extends al{value(t){let e=super.value(t);if(!e.startsWith("rgb("))return e;e=e.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");const n=e.split(",").map((t=>`00${parseInt(t,10).toString(16)}`.slice(-2))).join("");return`#${n}`}}const Zu=new ol("color","ql-color",{scope:tl.INLINE});const zu=new Ku("color","color",{scope:tl.INLINE});const Wu=new ol("background","ql-bg",{scope:tl.INLINE});const Gu=new Ku("background","background-color",{scope:tl.INLINE});class Qu extends Bu{static create(t){const e=super.create(t);e.setAttribute("spellcheck","false");return e}code(t,e){return this.children.map((t=>t.length()<=1?"":t.domNode.innerText)).join("\n").slice(t,t+e)}html(t,e){return`<pre>\n${Io(this.code(t,e))}\n</pre>`}}class Yu extends Vo{static TAB=" ";static register(){Eu.register(Qu)}}class Xu extends Ro{}Xu.blotName="code";Xu.tagName="CODE";Yu.blotName="code-block";Yu.className="ql-code-block";Yu.tagName="DIV";Qu.blotName="code-block-container";Qu.className="ql-code-block-container";Qu.tagName="DIV";Qu.allowedChildren=[Yu];Yu.allowedChildren=[Co,So,Po];Yu.requiredContainer=Qu;const Ju={scope:tl.BLOCK,whitelist:["rtl"]};const tc=new el("direction","dir",Ju);const ec=new ol("direction","ql-direction",Ju);const nc=new al("direction","direction",Ju);const ic={scope:tl.INLINE,whitelist:["serif","monospace"]};const sc=new ol("font","ql-font",ic);class rc extends al{value(t){return super.value(t).replace(/["']/g,"")}}const lc=new rc("font","font-family",ic);const oc=new ol("size","ql-size",{scope:tl.INLINE,whitelist:["small","large","huge"]});const uc=new al("size","font-size",{scope:tl.INLINE,whitelist:["10px","18px","32px"]});const cc=Qo("quill:keyboard");const ac=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class hc extends du{static match(t,e){if(["altKey","ctrlKey","metaKey","shiftKey"].some((n=>!!e[n]!==t[n]&&e[n]!==null))){return false}return e.key===t.key||e.key===t.which}constructor(t,e){super(t,e);this.bindings={};Object.keys(this.options.bindings).forEach((t=>{if(this.options.bindings[t]){this.addBinding(this.options.bindings[t])}}));this.addBinding({key:"Enter",shiftKey:null},this.handleEnter);this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},(()=>{}));if(/Firefox/i.test(navigator.userAgent)){this.addBinding({key:"Backspace"},{collapsed:true},this.handleBackspace);this.addBinding({key:"Delete"},{collapsed:true},this.handleDelete)}else{this.addBinding({key:"Backspace"},{collapsed:true,prefix:/^.?$/},this.handleBackspace);this.addBinding({key:"Delete"},{collapsed:true,suffix:/^.?$/},this.handleDelete)}this.addBinding({key:"Backspace"},{collapsed:false},this.handleDeleteRange);this.addBinding({key:"Delete"},{collapsed:false},this.handleDeleteRange);this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:true,offset:0},this.handleBackspace);this.listen()}addBinding(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};const i=yc(t);if(i==null){cc.warn("Attempted to add invalid keyboard binding",i);return}if(typeof e==="function"){e={handler:e}}if(typeof n==="function"){n={handler:n}}const s=Array.isArray(i.key)?i.key:[i.key];s.forEach((t=>{const s={...i,key:t,...e,...n};this.bindings[s.key]=this.bindings[s.key]||[];this.bindings[s.key].push(s)}))}listen(){this.quill.root.addEventListener("keydown",(t=>{if(t.defaultPrevented||t.isComposing)return;const e=t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace");if(e)return;const n=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]);const i=n.filter((e=>hc.match(t,e)));if(i.length===0)return;const s=Eu.find(t.target,true);if(s&&s.scroll!==this.quill.scroll)return;const r=this.quill.getSelection();if(r==null||!this.quill.hasFocus())return;const[l,o]=this.quill.getLine(r.index);const[u,c]=this.quill.getLeaf(r.index);const[a,h]=r.length===0?[u,c]:this.quill.getLeaf(r.index+r.length);const f=u instanceof Fl?u.value().slice(0,c):"";const d=a instanceof Fl?a.value().slice(h):"";const v={collapsed:r.length===0,empty:r.length===0&&l.length()<=1,format:this.quill.getFormat(r),line:l,offset:o,prefix:f,suffix:d,event:t};const b=i.some((t=>{if(t.collapsed!=null&&t.collapsed!==v.collapsed){return false}if(t.empty!=null&&t.empty!==v.empty){return false}if(t.offset!=null&&t.offset!==v.offset){return false}if(Array.isArray(t.format)){if(t.format.every((t=>v.format[t]==null))){return false}}else if(typeof t.format==="object"){if(!Object.keys(t.format).every((e=>{if(t.format[e]===true)return v.format[e]!=null;if(t.format[e]===false)return v.format[e]==null;return Yr(t.format[e],v.format[e])}))){return false}}if(t.prefix!=null&&!t.prefix.test(v.prefix)){return false}if(t.suffix!=null&&!t.suffix.test(v.suffix)){return false}return t.handler.call(this,r,v,t)!==true}));if(b){t.preventDefault()}}))}handleBackspace(t,e){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let i={};const[s]=this.quill.getLine(t.index);let r=(new _o).retain(t.index-n).delete(n);if(e.offset===0){const[e]=this.quill.getLine(t.index-1);if(e){const n=e.statics.blotName==="block"&&e.length()<=1;if(!n){const e=s.formats();const n=this.quill.getFormat(t.index-1,1);i=Zl.exports.AttributeMap.diff(e,n)||{};if(Object.keys(i).length>0){const e=(new _o).retain(t.index+s.length()-2).retain(1,i);r=r.compose(e)}}}}this.quill.updateContents(r,Eu.sources.USER);this.quill.focus()}handleDelete(t,e){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(t.index>=this.quill.getLength()-n)return;let i={};const[s]=this.quill.getLine(t.index);let r=(new _o).retain(t.index).delete(n);if(e.offset>=s.length()-1){const[e]=this.quill.getLine(t.index+1);if(e){const n=s.formats();const l=this.quill.getFormat(t.index,1);i=Zl.exports.AttributeMap.diff(n,l)||{};if(Object.keys(i).length>0){r=r.retain(e.length()-1).retain(1,i)}}}this.quill.updateContents(r,Eu.sources.USER);this.quill.focus()}handleDeleteRange(t){mc({range:t,quill:this.quill});this.quill.focus()}handleEnter(t,e){const n=Object.keys(e.format).reduce(((t,n)=>{if(this.quill.scroll.query(n,tl.BLOCK)&&!Array.isArray(e.format[n])){t[n]=e.format[n]}return t}),{});const i=(new _o).retain(t.index).delete(t.length).insert("\n",n);this.quill.updateContents(i,Eu.sources.USER);this.quill.setSelection(t.index+1,Eu.sources.SILENT);this.quill.focus()}}const fc={bindings:{bold:bc("bold"),italic:bc("italic"),underline:bc("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(t,e){if(e.collapsed&&e.offset!==0)return true;this.quill.format("indent","+1",Eu.sources.USER);return false}},outdent:{key:"Tab",shiftKey:true,format:["blockquote","indent","list"],handler(t,e){if(e.collapsed&&e.offset!==0)return true;this.quill.format("indent","-1",Eu.sources.USER);return false}},"outdent backspace":{key:"Backspace",collapsed:true,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(t,e){if(e.format.indent!=null){this.quill.format("indent","-1",Eu.sources.USER)}else if(e.format.list!=null){this.quill.format("list",false,Eu.sources.USER)}}},"indent code-block":dc(true),"outdent code-block":dc(false),"remove tab":{key:"Tab",shiftKey:true,collapsed:true,prefix:/\t$/,handler(t){this.quill.deleteText(t.index-1,1,Eu.sources.USER)}},tab:{key:"Tab",handler(t,e){if(e.format.table)return true;this.quill.history.cutoff();const n=(new _o).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(n,Eu.sources.USER);this.quill.history.cutoff();this.quill.setSelection(t.index+1,Eu.sources.SILENT);return false}},"blockquote empty enter":{key:"Enter",collapsed:true,format:["blockquote"],empty:true,handler(){this.quill.format("blockquote",false,Eu.sources.USER)}},"list empty enter":{key:"Enter",collapsed:true,format:["list"],empty:true,handler(t,e){const n={list:false};if(e.format.indent){n.indent=false}this.quill.formatLine(t.index,t.length,n,Eu.sources.USER)}},"checklist enter":{key:"Enter",collapsed:true,format:{list:"checked"},handler(t){const[e,n]=this.quill.getLine(t.index);const i={...e.formats(),list:"checked"};const s=(new _o).retain(t.index).insert("\n",i).retain(e.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,Eu.sources.USER);this.quill.setSelection(t.index+1,Eu.sources.SILENT);this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:true,format:["header"],suffix:/^$/,handler(t,e){const[n,i]=this.quill.getLine(t.index);const s=(new _o).retain(t.index).insert("\n",e.format).retain(n.length()-i-1).retain(1,{header:null});this.quill.updateContents(s,Eu.sources.USER);this.quill.setSelection(t.index+1,Eu.sources.SILENT);this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:true,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:true,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(t){const e=this.quill.getModule("table");if(e){const[n,i,s,r]=e.getTable(t);const l=wc(n,i,s,r);if(l==null)return;let o=n.offset();if(l<0){const e=(new _o).retain(o).insert("\n");this.quill.updateContents(e,Eu.sources.USER);this.quill.setSelection(t.index+1,t.length,Eu.sources.SILENT)}else if(l>0){o+=n.length();const t=(new _o).retain(o).insert("\n");this.quill.updateContents(t,Eu.sources.USER);this.quill.setSelection(o,Eu.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(t,e){const{event:n,line:i}=e;const s=i.offset(this.quill.scroll);if(n.shiftKey){this.quill.setSelection(s-1,Eu.sources.USER)}else{this.quill.setSelection(s+i.length(),Eu.sources.USER)}}},"list autofill":{key:" ",shiftKey:null,collapsed:true,format:{"code-block":false,blockquote:false,table:false},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(t,e){if(this.quill.scroll.query("list")==null)return true;const{length:n}=e.prefix;const[i,s]=this.quill.getLine(t.index);if(s>n)return true;let r;switch(e.prefix.trim()){case"[]":case"[ ]":r="unchecked";break;case"[x]":r="checked";break;case"-":case"*":r="bullet";break;default:r="ordered"}this.quill.insertText(t.index," ",Eu.sources.USER);this.quill.history.cutoff();const l=(new _o).retain(t.index-s).delete(n+1).retain(i.length()-2-s).retain(1,{list:r});this.quill.updateContents(l,Eu.sources.USER);this.quill.history.cutoff();this.quill.setSelection(t.index-n,Eu.sources.SILENT);return false}},"code exit":{key:"Enter",collapsed:true,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(t){const[e,n]=this.quill.getLine(t.index);let i=2;let s=e;while(s!=null&&s.length()<=1&&s.formats()["code-block"]){s=s.prev;i-=1;if(i<=0){const i=(new _o).retain(t.index+e.length()-n-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(i,Eu.sources.USER);this.quill.setSelection(t.index-1,Eu.sources.SILENT);return false}}return true}},"embed left":vc("ArrowLeft",false),"embed left shift":vc("ArrowLeft",true),"embed right":vc("ArrowRight",false),"embed right shift":vc("ArrowRight",true),"table down":pc(false),"table up":pc(true)}};hc.DEFAULTS=fc;function dc(t){return{key:"Tab",shiftKey:!t,format:{"code-block":true},handler(e,n){let{event:i}=n;const s=this.quill.scroll.query("code-block");const{TAB:r}=s;if(e.length===0&&!i.shiftKey){this.quill.insertText(e.index,r,Eu.sources.USER);this.quill.setSelection(e.index+r.length,Eu.sources.SILENT);return}const l=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:o,length:u}=e;l.forEach(((e,n)=>{if(t){e.insertAt(0,r);if(n===0){o+=r.length}else{u+=r.length}}else if(e.domNode.textContent.startsWith(r)){e.deleteAt(0,r.length);if(n===0){o-=r.length}else{u-=r.length}}}));this.quill.update(Eu.sources.USER);this.quill.setSelection(o,u,Eu.sources.SILENT)}}}function vc(t,e){const n=t==="ArrowLeft"?"prefix":"suffix";return{key:t,shiftKey:e,altKey:null,[n]:/^$/,handler(n){let{index:i}=n;if(t==="ArrowRight"){i+=n.length+1}const[s]=this.quill.getLeaf(i);if(!(s instanceof Sl))return true;if(t==="ArrowLeft"){if(e){this.quill.setSelection(n.index-1,n.length+1,Eu.sources.USER)}else{this.quill.setSelection(n.index-1,Eu.sources.USER)}}else if(e){this.quill.setSelection(n.index,n.length+1,Eu.sources.USER)}else{this.quill.setSelection(n.index+n.length+1,Eu.sources.USER)}return false}}}function bc(t){return{key:t[0],shortKey:true,handler(e,n){this.quill.format(t,!n.format[t],Eu.sources.USER)}}}function pc(t){return{key:t?"ArrowUp":"ArrowDown",collapsed:true,format:["table"],handler(e,n){const i=t?"prev":"next";const s=n.line;const r=s.parent[i];if(r!=null){if(r.statics.blotName==="table-row"){let t=r.children.head;let e=s;while(e.prev!=null){e=e.prev;t=t.next}const i=t.offset(this.quill.scroll)+Math.min(n.offset,t.length()-1);this.quill.setSelection(i,0,Eu.sources.USER)}}else{const e=s.table()[i];if(e!=null){if(t){this.quill.setSelection(e.offset(this.quill.scroll)+e.length()-1,0,Eu.sources.USER)}else{this.quill.setSelection(e.offset(this.quill.scroll),0,Eu.sources.USER)}}}return false}}}function yc(t){if(typeof t==="string"||typeof t==="number"){t={key:t}}else if(typeof t==="object"){t=nr(t)}else{return null}if(t.shortKey){t[ac]=t.shortKey;delete t.shortKey}return t}function mc(t){let{quill:e,range:n}=t;const i=e.getLines(n);let s={};if(i.length>1){const t=i[0].formats();const e=i[i.length-1].formats();s=Zl.exports.AttributeMap.diff(e,t)||{}}e.deleteText(n,Eu.sources.USER);if(Object.keys(s).length>0){e.formatLine(n.index,1,s,Eu.sources.USER)}e.setSelection(n.index,Eu.sources.SILENT)}function wc(t,e,n,i){if(e.prev==null&&e.next==null){if(n.prev==null&&n.next==null){return i===0?-1:1}return n.prev==null?-1:1}if(e.prev==null){return-1}if(e.next==null){return 1}return null}const gc=/font-weight:\s*normal/;const xc=["P","OL","UL"];const kc=t=>t&&xc.includes(t.tagName);const jc=t=>{Array.from(t.querySelectorAll("br")).filter((t=>kc(t.previousElementSibling)&&kc(t.nextElementSibling))).forEach((t=>{t.parentNode?.removeChild(t)}))};const Ac=t=>{Array.from(t.querySelectorAll('b[style*="font-weight"]')).filter((t=>t.getAttribute("style")?.match(gc))).forEach((e=>{const n=t.createDocumentFragment();n.append(...e.childNodes);e.parentNode?.replaceChild(n,e)}))};function qc(t){if(t.querySelector('[id^="docs-internal-guid-"]')){Ac(t);jc(t)}}const Oc=/\bmso-list:[^;]*ignore/i;const Mc=/\bmso-list:[^;]*\bl(\d+)/i;const Ec=/\bmso-list:[^;]*\blevel(\d+)/i;const Tc=(t,e)=>{const n=t.getAttribute("style");const i=n?.match(Mc);if(!i){return null}const s=Number(i[1]);const r=n?.match(Ec);const l=r?Number(r[1]):1;const o=new RegExp(`@list l${s}:level${l}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i");const u=e.match(o);const c=u&&u[1]==="bullet"?"bullet":"ordered";return{id:s,indent:l,type:c,element:t}};const Nc=t=>{const e=Array.from(t.querySelectorAll("[style*=mso-list]"));const n=[];const i=[];e.forEach((t=>{const e=(t.getAttribute("style")||"").match(Oc);if(e){n.push(t)}else{i.push(t)}}));n.forEach((t=>t.parentNode?.removeChild(t)));const s=t.documentElement.innerHTML;const r=i.map((t=>Tc(t,s))).filter((t=>t));while(r.length){const t=[];let e=r.shift();while(e){t.push(e);e=r.length&&r[0]?.element===e.element.nextElementSibling&&r[0].id===e.id?r.shift():null}const n=document.createElement("ul");t.forEach((t=>{const e=document.createElement("li");e.setAttribute("data-list",t.type);if(t.indent>1){e.setAttribute("class",`ql-indent-${t.indent-1}`)}e.innerHTML=t.element.innerHTML;n.appendChild(e)}));const i=t[0]?.element;const{parentNode:s}=i??{};if(i){s?.replaceChild(n,i)}t.slice(1).forEach((t=>{let{element:e}=t;s?.removeChild(e)}))}};function $c(t){if(t.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"){Nc(t)}}const Lc=[$c,qc];const _c=t=>{if(t.documentElement){Lc.forEach((e=>{e(t)}))}};const Sc=Qo("quill:clipboard");const Cc=[[Node.TEXT_NODE,ia],[Node.TEXT_NODE,ta],["br",Gc],[Node.ELEMENT_NODE,ta],[Node.ELEMENT_NODE,Wc],[Node.ELEMENT_NODE,zc],[Node.ELEMENT_NODE,ea],["li",Xc],["ol, ul",Jc],["pre",Qc],["tr",na],["b",Zc("bold")],["i",Zc("italic")],["strike",Zc("strike")],["style",Yc]];const Bc=[Fu,tc].reduce(((t,e)=>{t[e.keyName]=e;return t}),{});const Ic=[Pu,Gu,zu,nc,lc,uc].reduce(((t,e)=>{t[e.keyName]=e;return t}),{});class Rc extends du{static DEFAULTS={matchers:[]};constructor(t,e){super(t,e);this.quill.root.addEventListener("copy",(t=>this.onCaptureCopy(t,false)));this.quill.root.addEventListener("cut",(t=>this.onCaptureCopy(t,true)));this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this));this.matchers=[];Cc.concat(this.options.matchers??[]).forEach((t=>{let[e,n]=t;this.addMatcher(e,n)}))}addMatcher(t,e){this.matchers.push([t,e])}convert(t){let{html:e,text:n}=t;let i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(i[Yu.blotName]){return(new _o).insert(n||"",{[Yu.blotName]:i[Yu.blotName]})}if(!e){return(new _o).insert(n||"",i)}const s=this.convertHTML(e);if(Vc(s,"\n")&&(s.ops[s.ops.length-1].attributes==null||i.table)){return s.compose((new _o).retain(s.length()-1).delete(1))}return s}normalizeHTML(t){_c(t)}convertHTML(t){const e=(new DOMParser).parseFromString(t,"text/html");this.normalizeHTML(e);const n=e.body;const i=new WeakMap;const[s,r]=this.prepareMatching(n,i);return Kc(this.quill.scroll,n,s,r,i)}dangerouslyPasteHTML(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Eu.sources.API;if(typeof t==="string"){const n=this.convert({html:t,text:""});this.quill.setContents(n,e);this.quill.setSelection(0,Eu.sources.SILENT)}else{const i=this.convert({html:e,text:""});this.quill.updateContents((new _o).retain(t).concat(i),n);this.quill.setSelection(t+i.length(),Eu.sources.SILENT)}}onCaptureCopy(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(t.defaultPrevented)return;t.preventDefault();const[n]=this.quill.selection.getRange();if(n==null)return;const{html:i,text:s}=this.onCopy(n,e);t.clipboardData?.setData("text/plain",s);t.clipboardData?.setData("text/html",i);if(e){mc({range:n,quill:this.quill})}}normalizeURIList(t){return t.split(/\r?\n/).filter((t=>t[0]!=="#")).join("\n")}onCapturePaste(t){if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const e=this.quill.getSelection(true);if(e==null)return;const n=t.clipboardData?.getData("text/html");let i=t.clipboardData?.getData("text/plain");if(!n&&!i){const e=t.clipboardData?.getData("text/uri-list");if(e){i=this.normalizeURIList(e)}}const s=Array.from(t.clipboardData?.files||[]);if(!n&&s.length>0){this.quill.uploader.upload(e,s);return}if(n&&s.length>0){const t=(new DOMParser).parseFromString(n,"text/html");if(t.body.childElementCount===1&&t.body.firstElementChild?.tagName==="IMG"){this.quill.uploader.upload(e,s);return}}this.onPaste(e,{html:n,text:i})}onCopy(t){const e=this.quill.getText(t);const n=this.quill.getSemanticHTML(t);return{html:n,text:e}}onPaste(t,e){let{text:n,html:i}=e;const s=this.quill.getFormat(t.index);const r=this.convert({text:n,html:i},s);Sc.log("onPaste",r,{text:n,html:i});const l=(new _o).retain(t.index).delete(t.length).concat(r);this.quill.updateContents(l,Eu.sources.USER);this.quill.setSelection(l.length()-t.length,Eu.sources.SILENT);this.quill.scrollSelectionIntoView()}prepareMatching(t,e){const n=[];const i=[];this.matchers.forEach((s=>{const[r,l]=s;switch(r){case Node.TEXT_NODE:i.push(l);break;case Node.ELEMENT_NODE:n.push(l);break;default:Array.from(t.querySelectorAll(r)).forEach((t=>{if(e.has(t)){const n=e.get(t);n?.push(l)}else{e.set(t,[l])}}));break}}));return[n,i]}}function Dc(t,e,n,i){if(!i.query(e)){return t}return t.reduce(((t,i)=>{if(!i.insert)return t;if(i.attributes&&i.attributes[e]){return t.push(i)}const s=n?{[e]:n}:{};return t.insert(i.insert,{...s,...i.attributes})}),new _o)}function Vc(t,e){let n="";for(let i=t.ops.length-1;i>=0&&n.length<e.length;--i){const e=t.ops[i];if(typeof e.insert!=="string")break;n=e.insert+n}return n.slice(-1*e.length)===e}function Hc(t,e){if(!(t instanceof Element))return false;const n=e.query(t);if(n&&n.prototype instanceof Sl)return false;return["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(t.tagName.toLowerCase())}function Fc(t,e){return t.previousElementSibling&&t.nextElementSibling&&!Hc(t.previousElementSibling,e)&&!Hc(t.nextElementSibling,e)}const Uc=new WeakMap;function Pc(t){if(t==null)return false;if(!Uc.has(t)){if(t.tagName==="PRE"){Uc.set(t,true)}else{Uc.set(t,Pc(t.parentNode))}}return Uc.get(t)}function Kc(t,e,n,i,s){if(e.nodeType===e.TEXT_NODE){return i.reduce(((n,i)=>i(e,n,t)),new _o)}if(e.nodeType===e.ELEMENT_NODE){return Array.from(e.childNodes||[]).reduce(((r,l)=>{let o=Kc(t,l,n,i,s);if(l.nodeType===e.ELEMENT_NODE){o=n.reduce(((e,n)=>n(l,e,t)),o);o=(s.get(l)||[]).reduce(((e,n)=>n(l,e,t)),o)}return r.concat(o)}),new _o)}return new _o}function Zc(t){return(e,n,i)=>Dc(n,t,true,i)}function zc(t,e,n){const i=el.keys(t);const s=ol.keys(t);const r=al.keys(t);const l={};i.concat(s).concat(r).forEach((e=>{let i=n.query(e,tl.ATTRIBUTE);if(i!=null){l[i.attrName]=i.value(t);if(l[i.attrName])return}i=Bc[e];if(i!=null&&(i.attrName===e||i.keyName===e)){l[i.attrName]=i.value(t)||undefined}i=Ic[e];if(i!=null&&(i.attrName===e||i.keyName===e)){i=Ic[e];l[i.attrName]=i.value(t)||undefined}}));return Object.entries(l).reduce(((t,e)=>{let[i,s]=e;return Dc(t,i,s,n)}),e)}function Wc(t,e,n){const i=n.query(t);if(i==null)return e;if(i.prototype instanceof Sl){const e={};const s=i.value(t);if(s!=null){e[i.blotName]=s;return(new _o).insert(e,i.formats(t,n))}}else{if(i.prototype instanceof Tl&&!Vc(e,"\n")){e.insert("\n")}if("blotName"in i&&"formats"in i&&typeof i.formats==="function"){return Dc(e,i.blotName,i.formats(t,n),n)}}return e}function Gc(t,e){if(!Vc(e,"\n")){e.insert("\n")}return e}function Qc(t,e,n){const i=n.query("code-block");const s=i&&"formats"in i&&typeof i.formats==="function"?i.formats(t,n):true;return Dc(e,"code-block",s,n)}function Yc(){return new _o}function Xc(t,e,n){const i=n.query(t);if(i==null||i.blotName!=="list"||!Vc(e,"\n")){return e}let s=-1;let r=t.parentNode;while(r!=null){if(["OL","UL"].includes(r.tagName)){s+=1}r=r.parentNode}if(s<=0)return e;return e.reduce(((t,e)=>{if(!e.insert)return t;if(e.attributes&&typeof e.attributes.indent==="number"){return t.push(e)}return t.insert(e.insert,{indent:s,...e.attributes||{}})}),new _o)}function Jc(t,e,n){const i=t;let s=i.tagName==="OL"?"ordered":"bullet";const r=i.getAttribute("data-checked");if(r){s=r==="true"?"checked":"unchecked"}return Dc(e,"list",s,n)}function ta(t,e,n){if(!Vc(e,"\n")){if(Hc(t,n)&&(t.childNodes.length>0||t instanceof HTMLParagraphElement)){return e.insert("\n")}if(e.length()>0&&t.nextSibling){let i=t.nextSibling;while(i!=null){if(Hc(i,n)){return e.insert("\n")}const t=n.query(i);if(t&&t.prototype instanceof Ho){return e.insert("\n")}i=i.firstChild}}}return e}function ea(t,e,n){const i={};const s=t.style||{};if(s.fontStyle==="italic"){i.italic=true}if(s.textDecoration==="underline"){i.underline=true}if(s.textDecoration==="line-through"){i.strike=true}if(s.fontWeight?.startsWith("bold")||parseInt(s.fontWeight,10)>=700){i.bold=true}e=Object.entries(i).reduce(((t,e)=>{let[i,s]=e;return Dc(t,i,s,n)}),e);if(parseFloat(s.textIndent||0)>0){return(new _o).insert("\t").concat(e)}return e}function na(t,e,n){const i=t.parentElement?.tagName==="TABLE"?t.parentElement:t.parentElement?.parentElement;if(i!=null){const s=Array.from(i.querySelectorAll("tr"));const r=s.indexOf(t)+1;return Dc(e,"table",r,n)}return e}function ia(t,e,n){let i=t.data;if(t.parentElement?.tagName==="O:P"){return e.insert(i.trim())}if(!Pc(t)){if(i.trim().length===0&&i.includes("\n")&&!Fc(t,n)){return e}i=i.replace(/[^\S\u00a0]/g," ");i=i.replace(/ {2,}/g," ");if(t.previousSibling==null&&t.parentElement!=null&&Hc(t.parentElement,n)||t.previousSibling instanceof Element&&Hc(t.previousSibling,n)){i=i.replace(/^ /,"")}if(t.nextSibling==null&&t.parentElement!=null&&Hc(t.parentElement,n)||t.nextSibling instanceof Element&&Hc(t.nextSibling,n)){i=i.replace(/ $/,"")}i=i.replaceAll(" "," ")}return e.insert(i)}class sa extends du{static DEFAULTS={delay:1e3,maxStack:100,userOnly:false};lastRecorded=0;ignoreChange=false;stack={undo:[],redo:[]};currentRange=null;constructor(t,e){super(t,e);this.quill.on(Eu.events.EDITOR_CHANGE,((t,e,n,i)=>{if(t===Eu.events.SELECTION_CHANGE){if(e&&i!==Eu.sources.SILENT){this.currentRange=e}}else if(t===Eu.events.TEXT_CHANGE){if(!this.ignoreChange){if(!this.options.userOnly||i===Eu.sources.USER){this.record(e,n)}else{this.transform(e)}}this.currentRange=ua(this.currentRange,e)}}));this.quill.keyboard.addBinding({key:"z",shortKey:true},this.undo.bind(this));this.quill.keyboard.addBinding({key:["z","Z"],shortKey:true,shiftKey:true},this.redo.bind(this));if(/Win/i.test(navigator.platform)){this.quill.keyboard.addBinding({key:"y",shortKey:true},this.redo.bind(this))}this.quill.root.addEventListener("beforeinput",(t=>{if(t.inputType==="historyUndo"){this.undo();t.preventDefault()}else if(t.inputType==="historyRedo"){this.redo();t.preventDefault()}}))}change(t,e){if(this.stack[t].length===0)return;const n=this.stack[t].pop();if(!n)return;const i=this.quill.getContents();const s=n.delta.invert(i);this.stack[e].push({delta:s,range:ua(n.range,s)});this.lastRecorded=0;this.ignoreChange=true;this.quill.updateContents(n.delta,Eu.sources.USER);this.ignoreChange=false;this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,e){if(t.ops.length===0)return;this.stack.redo=[];let n=t.invert(e);let i=this.currentRange;const s=Date.now();if(this.lastRecorded+this.options.delay>s&&this.stack.undo.length>0){const t=this.stack.undo.pop();if(t){n=n.compose(t.delta);i=t.range}}else{this.lastRecorded=s}if(n.length()===0)return;this.stack.undo.push({delta:n,range:i});if(this.stack.undo.length>this.options.maxStack){this.stack.undo.shift()}}redo(){this.change("redo","undo")}transform(t){ra(this.stack.undo,t);ra(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range){this.quill.setSelection(t.range,Eu.sources.USER)}else{const e=oa(this.quill.scroll,t.delta);this.quill.setSelection(e,Eu.sources.USER)}}}function ra(t,e){let n=e;for(let e=t.length-1;e>=0;e-=1){const i=t[e];t[e]={delta:n.transform(i.delta,true),range:i.range&&ua(i.range,n)};n=i.delta.transform(n);if(t[e].delta.length()===0){t.splice(e,1)}}}function la(t,e){const n=e.ops[e.ops.length-1];if(n==null)return false;if(n.insert!=null){return typeof n.insert==="string"&&n.insert.endsWith("\n")}if(n.attributes!=null){return Object.keys(n.attributes).some((e=>t.query(e,tl.BLOCK)!=null))}return false}function oa(t,e){const n=e.reduce(((t,e)=>t+(e.delete||0)),0);let i=e.length()-n;if(la(t,e)){i-=1}return i}function ua(t,e){if(!t)return t;const n=e.transformPosition(t.index);const i=e.transformPosition(t.index+t.length);return{index:n,length:i-n}}class ca extends du{constructor(t,e){super(t,e);t.root.addEventListener("drop",(e=>{e.preventDefault();let n=null;if(document.caretRangeFromPoint){n=document.caretRangeFromPoint(e.clientX,e.clientY)}else if(document.caretPositionFromPoint){const t=document.caretPositionFromPoint(e.clientX,e.clientY);n=document.createRange();n.setStart(t.offsetNode,t.offset);n.setEnd(t.offsetNode,t.offset)}const i=n&&t.selection.normalizeNative(n);if(i){const n=t.selection.normalizedToRange(i);if(e.dataTransfer?.files){this.upload(n,e.dataTransfer.files)}}}))}upload(t,e){const n=[];Array.from(e).forEach((t=>{if(t&&this.options.mimetypes?.includes(t.type)){n.push(t)}}));if(n.length>0){this.options.handler.call(this,t,n)}}}ca.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(t,e){if(!this.quill.scroll.query("image")){return}const n=e.map((t=>new Promise((e=>{const n=new FileReader;n.onload=()=>{e(n.result)};n.readAsDataURL(t)}))));Promise.all(n).then((e=>{const n=e.reduce(((t,e)=>t.insert({image:e})),(new _o).retain(t.index).delete(t.length));this.quill.updateContents(n,Jo.sources.USER);this.quill.setSelection(t.index+e.length,Jo.sources.SILENT)}))}};const aa=["insertText","insertReplacementText"];class ha extends du{constructor(t,e){super(t,e);t.root.addEventListener("beforeinput",(t=>{this.handleBeforeInput(t)}));if(!/Android/i.test(navigator.userAgent)){t.on(Eu.events.COMPOSITION_BEFORE_START,(()=>{this.handleCompositionStart()}))}}deleteRange(t){mc({range:t,quill:this.quill})}replaceText(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";if(t.length===0)return false;if(e){const n=this.quill.getFormat(t.index,1);this.deleteRange(t);this.quill.updateContents((new _o).retain(t.index).insert(e,n),Eu.sources.USER)}else{this.deleteRange(t)}this.quill.setSelection(t.index+e.length,0,Eu.sources.SILENT);return true}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!aa.includes(t.inputType)){return}const e=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!e||e.collapsed===true){return}const n=fa(t);if(n==null){return}const i=this.quill.selection.normalizeNative(e);const s=i?this.quill.selection.normalizedToRange(i):null;if(s&&this.replaceText(s,n)){t.preventDefault()}}handleCompositionStart(){const t=this.quill.getSelection();if(t){this.replaceText(t)}}}function fa(t){if(typeof t.data==="string"){return t.data}if(t.dataTransfer?.types.includes("text/plain")){return t.dataTransfer.getData("text/plain")}return null}const da=/Mac/i.test(navigator.platform);const va=100;const ba=t=>{if(t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"||t.key==="ArrowDown"||t.key==="Home"){return true}if(da&&t.key==="a"&&t.ctrlKey===true){return true}return false};class pa extends du{isListening=false;selectionChangeDeadline=0;constructor(t,e){super(t,e);this.handleArrowKeys();this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,e){let{line:n,event:i}=e;if(!(n instanceof kl)||!n.uiNode){return true}const s=getComputedStyle(n.domNode)["direction"]==="rtl";if(s&&i.key!=="ArrowRight"||!s&&i.key!=="ArrowLeft"){return true}this.quill.setSelection(t.index-1,t.length+(i.shiftKey?1:0),Eu.sources.USER);return false}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",(t=>{if(!t.defaultPrevented&&ba(t)){this.ensureListeningToSelectionChange()}}))}ensureListeningToSelectionChange(){this.selectionChangeDeadline=Date.now()+va;if(this.isListening)return;this.isListening=true;const t=()=>{this.isListening=false;if(Date.now()<=this.selectionChangeDeadline){this.handleSelectionChange()}};document.addEventListener("selectionchange",t,{once:true})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const e=t.getRangeAt(0);if(e.collapsed!==true||e.startOffset!==0)return;const n=this.quill.scroll.find(e.startContainer);if(!(n instanceof kl)||!n.uiNode)return;const i=document.createRange();i.setStartAfter(n.uiNode);i.setEndAfter(n.uiNode);t.removeAllRanges();t.addRange(i)}}Eu.register({"blots/block":Vo,"blots/block/embed":Ho,"blots/break":So,"blots/container":Bu,"blots/cursor":Po,"blots/embed":bu,"blots/inline":Ro,"blots/scroll":Du,"blots/text":Co,"modules/clipboard":Rc,"modules/history":sa,"modules/keyboard":hc,"modules/uploader":ca,"modules/input":ha,"modules/uiNode":pa});class ya extends ol{add(t,e){let n=0;if(e==="+1"||e==="-1"){const i=this.value(t)||0;n=e==="+1"?i+1:i-1}else if(typeof e==="number"){n=e}if(n===0){this.remove(t);return true}return super.add(t,n.toString())}canAdd(t,e){return super.canAdd(t,e)||super.canAdd(t,parseInt(e,10))}value(t){return parseInt(super.value(t),10)||undefined}}const ma=new ya("indent","ql-indent",{scope:tl.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class wa extends Vo{static blotName="blockquote";static tagName="blockquote"}class ga extends Vo{static blotName="header";static tagName=["H1","H2","H3","H4","H5","H6"];static formats(t){return this.tagName.indexOf(t.tagName)+1}}class xa extends Bu{}xa.blotName="list-container";xa.tagName="OL";class ka extends Vo{static create(t){const e=super.create();e.setAttribute("data-list",t);return e}static formats(t){return t.getAttribute("data-list")||undefined}static register(){Eu.register(xa)}constructor(t,e){super(t,e);const n=e.ownerDocument.createElement("span");const i=n=>{if(!t.isEnabled())return;const i=this.statics.formats(e,t);if(i==="checked"){this.format("list","unchecked");n.preventDefault()}else if(i==="unchecked"){this.format("list","checked");n.preventDefault()}};n.addEventListener("mousedown",i);n.addEventListener("touchstart",i);this.attachUI(n)}format(t,e){if(t===this.statics.blotName&&e){this.domNode.setAttribute("data-list",e)}else{super.format(t,e)}}}ka.blotName="list";ka.tagName="LI";xa.allowedChildren=[ka];ka.requiredContainer=xa;class ja extends Ro{static blotName="bold";static tagName=["STRONG","B"];static create(){return super.create()}static formats(){return true}optimize(t){super.optimize(t);if(this.domNode.tagName!==this.statics.tagName[0]){this.replaceWith(this.statics.blotName)}}}class Aa extends ja{static blotName="italic";static tagName=["EM","I"]}class qa extends Ro{static blotName="link";static tagName="A";static SANITIZED_URL="about:blank";static PROTOCOL_WHITELIST=["http","https","mailto","tel","sms"];static create(t){const e=super.create(t);e.setAttribute("href",this.sanitize(t));e.setAttribute("rel","noopener noreferrer");e.setAttribute("target","_blank");return e}static formats(t){return t.getAttribute("href")}static sanitize(t){return Oa(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,e){if(t!==this.statics.blotName||!e){super.format(t,e)}else{this.domNode.setAttribute("href",this.constructor.sanitize(e))}}}function Oa(t,e){const n=document.createElement("a");n.href=t;const i=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(i)>-1}class Ma extends Ro{static blotName="script";static tagName=["SUB","SUP"];static create(t){if(t==="super"){return document.createElement("sup")}if(t==="sub"){return document.createElement("sub")}return super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super";return undefined}}class Ea extends ja{static blotName="strike";static tagName=["S","STRIKE"]}class Ta extends Ro{static blotName="underline";static tagName="U"}class Na extends bu{static blotName="formula";static className="ql-formula";static tagName="SPAN";static create(t){if(window.katex==null){throw new Error("Formula module requires KaTeX.")}const e=super.create(t);if(typeof t==="string"){window.katex.render(t,e,{throwOnError:false,errorColor:"#f00"});e.setAttribute("data-value",t)}return e}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}}const $a=["alt","height","width"];class La extends Sl{static blotName="image";static tagName="IMG";static create(t){const e=super.create(t);if(typeof t==="string"){e.setAttribute("src",this.sanitize(t))}return e}static formats(t){return $a.reduce(((e,n)=>{if(t.hasAttribute(n)){e[n]=t.getAttribute(n)}return e}),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return Oa(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,e){if($a.indexOf(t)>-1){if(e){this.domNode.setAttribute(t,e)}else{this.domNode.removeAttribute(t)}}else{super.format(t,e)}}}const _a=["height","width"];class Sa extends Ho{static blotName="video";static className="ql-video";static tagName="IFRAME";static create(t){const e=super.create(t);e.setAttribute("frameborder","0");e.setAttribute("allowfullscreen","true");e.setAttribute("src",this.sanitize(t));return e}static formats(t){return _a.reduce(((e,n)=>{if(t.hasAttribute(n)){e[n]=t.getAttribute(n)}return e}),{})}static sanitize(t){return qa.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,e){if(_a.indexOf(t)>-1){if(e){this.domNode.setAttribute(t,e)}else{this.domNode.removeAttribute(t)}}else{super.format(t,e)}}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}}const Ca=new ol("code-token","hljs",{scope:tl.INLINE});class Ba extends Ro{static formats(t,e){while(t!=null&&t!==e.domNode){if(t.classList&&t.classList.contains(Yu.className)){return super.formats(t,e)}t=t.parentNode}return undefined}constructor(t,e,n){super(t,e,n);Ca.add(this.domNode,n)}format(t,e){if(t!==Ba.blotName){super.format(t,e)}else if(e){Ca.add(this.domNode,e)}else{Ca.remove(this.domNode);this.domNode.classList.remove(this.statics.className)}}optimize(){super.optimize(...arguments);if(!Ca.value(this.domNode)){this.unwrap()}}}Ba.blotName="code-token";Ba.className="ql-token";class Ia extends Yu{static create(t){const e=super.create(t);if(typeof t==="string"){e.setAttribute("data-language",t)}return e}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,e){if(t===this.statics.blotName&&e){this.domNode.setAttribute("data-language",e)}else{super.format(t,e)}}replaceWith(t,e){this.formatAt(0,this.length(),Ba.blotName,false);return super.replaceWith(t,e)}}class Ra extends Qu{attach(){super.attach();this.forceNext=false;this.scroll.emitMount(this)}format(t,e){if(t===Ia.blotName){this.forceNext=true;this.children.forEach((n=>{n.format(t,e)}))}}formatAt(t,e,n,i){if(n===Ia.blotName){this.forceNext=true}super.formatAt(t,e,n,i)}highlight(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(this.children.head==null)return;const n=Array.from(this.domNode.childNodes).filter((t=>t!==this.uiNode));const i=`${n.map((t=>t.textContent)).join("\n")}\n`;const s=Ia.formats(this.children.head.domNode);if(e||this.forceNext||this.cachedText!==i){if(i.trim().length>0||this.cachedText==null){const e=this.children.reduce(((t,e)=>t.concat(Fo(e,false))),new _o);const n=t(i,s);e.diff(n).reduce(((t,e)=>{let{retain:n,attributes:i}=e;if(!n)return t;if(i){Object.keys(i).forEach((e=>{if([Ia.blotName,Ba.blotName].includes(e)){this.formatAt(t,n,e,i[e])}}))}return t+n}),0)}this.cachedText=i;this.forceNext=false}}html(t,e){const[n]=this.children.find(t);const i=n?Ia.formats(n.domNode):"plain";return`<pre data-language="${i}">\n${Io(this.code(t,e))}\n</pre>`}optimize(t){super.optimize(t);if(this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=Ia.formats(this.children.head.domNode);if(t!==this.uiNode.value){this.uiNode.value=t}}}}Ra.allowedChildren=[Ia];Ia.requiredContainer=Ra;Ia.allowedChildren=[Ba,Po,Co,So];const Da=(t,e,n)=>{if(typeof t.versionString==="string"){const i=t.versionString.split(".")[0];if(parseInt(i,10)>=11){return t.highlight(n,{language:e}).value}}return t.highlight(e,n).value};class Va extends du{static register(){Eu.register(Ba,true);Eu.register(Ia,true);Eu.register(Ra,true)}constructor(t,e){super(t,e);if(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(((t,e)=>{let{key:n}=e;t[n]=true;return t}),{});this.highlightBlot=this.highlightBlot.bind(this);this.initListener();this.initTimer()}initListener(){this.quill.on(Eu.events.SCROLL_BLOT_MOUNT,(t=>{if(!(t instanceof Ra))return;const e=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach((t=>{let{key:n,label:i}=t;const s=e.ownerDocument.createElement("option");s.textContent=i;s.setAttribute("value",n);e.appendChild(s)}));e.addEventListener("change",(()=>{t.format(Ia.blotName,e.value);this.quill.root.focus();this.highlight(t,true)}));if(t.uiNode==null){t.attachUI(e);if(t.children.head){e.value=Ia.formats(t.children.head.domNode)}}}))}initTimer(){let t=null;this.quill.on(Eu.events.SCROLL_OPTIMIZE,(()=>{if(t){clearTimeout(t)}t=setTimeout((()=>{this.highlight();t=null}),this.options.interval)}))}highlight(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(this.quill.selection.composing)return;this.quill.update(Eu.sources.USER);const n=this.quill.getSelection();const i=t==null?this.quill.scroll.descendants(Ra):[t];i.forEach((t=>{t.highlight(this.highlightBlot,e)}));this.quill.update(Eu.sources.SILENT);if(n!=null){this.quill.setSelection(n,Eu.sources.SILENT)}}highlightBlot(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"plain";e=this.languages[e]?e:"plain";if(e==="plain"){return Io(t).split("\n").reduce(((t,n,i)=>{if(i!==0){t.insert("\n",{[Yu.blotName]:e})}return t.insert(n)}),new _o)}const n=this.quill.root.ownerDocument.createElement("div");n.classList.add(Yu.className);n.innerHTML=Da(this.options.hljs,e,t);return Kc(this.quill.scroll,n,[(t,e)=>{const n=Ca.value(t);if(n){return e.compose((new _o).retain(e.length(),{[Ba.blotName]:n}))}return e}],[(t,n)=>t.data.split("\n").reduce(((t,n,i)=>{if(i!==0)t.insert("\n",{[Yu.blotName]:e});return t.insert(n)}),n)],new WeakMap)}}Va.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"}]};class Ha extends Vo{static blotName="table";static tagName="TD";static create(t){const e=super.create();if(t){e.setAttribute("data-row",t)}else{e.setAttribute("data-row",Ka())}return e}static formats(t){if(t.hasAttribute("data-row")){return t.getAttribute("data-row")}return undefined}cellOffset(){if(this.parent){return this.parent.children.indexOf(this)}return-1}format(t,e){if(t===Ha.blotName&&e){this.domNode.setAttribute("data-row",e)}else{super.format(t,e)}}row(){return this.parent}rowOffset(){if(this.row()){return this.row().rowOffset()}return-1}table(){return this.row()&&this.row().table()}}class Fa extends Bu{static blotName="table-row";static tagName="TR";checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats();const e=this.children.tail.formats();const n=this.next.children.head.formats();const i=this.next.children.tail.formats();return t.table===e.table&&t.table===n.table&&t.table===i.table}return false}optimize(t){super.optimize(t);this.children.forEach((t=>{if(t.next==null)return;const e=t.formats();const n=t.next.formats();if(e.table!==n.table){const e=this.splitAfter(t);if(e){e.optimize()}if(this.prev){this.prev.optimize()}}}))}rowOffset(){if(this.parent){return this.parent.children.indexOf(this)}return-1}table(){return this.parent&&this.parent.parent}}class Ua extends Bu{static blotName="table-body";static tagName="TBODY"}class Pa extends Bu{static blotName="table-container";static tagName="TABLE";balanceCells(){const t=this.descendants(Fa);const e=t.reduce(((t,e)=>Math.max(e.children.length,t)),0);t.forEach((t=>{new Array(e-t.children.length).fill(0).forEach((()=>{let e;if(t.children.head!=null){e=Ha.formats(t.children.head.domNode)}const n=this.scroll.create(Ha.blotName,e);t.appendChild(n);n.optimize()}))}))}cells(t){return this.rows().map((e=>e.children.at(t)))}deleteColumn(t){const[e]=this.descendant(Ua);if(e==null||e.children.head==null)return;e.children.forEach((e=>{const n=e.children.at(t);if(n!=null){n.remove()}}))}insertColumn(t){const[e]=this.descendant(Ua);if(e==null||e.children.head==null)return;e.children.forEach((e=>{const n=e.children.at(t);const i=Ha.formats(e.children.head.domNode);const s=this.scroll.create(Ha.blotName,i);e.insertBefore(s,n)}))}insertRow(t){const[e]=this.descendant(Ua);if(e==null||e.children.head==null)return;const n=Ka();const i=this.scroll.create(Fa.blotName);e.children.head.children.forEach((()=>{const t=this.scroll.create(Ha.blotName,n);i.appendChild(t)}));const s=e.children.at(t);e.insertBefore(i,s)}rows(){const t=this.children.head;if(t==null)return[];return t.children.map((t=>t))}}Pa.allowedChildren=[Ua];Ua.requiredContainer=Pa;Ua.allowedChildren=[Fa];Fa.requiredContainer=Ua;Fa.allowedChildren=[Ha];Ha.requiredContainer=Fa;function Ka(){const t=Math.random().toString(36).slice(2,6);return`row-${t}`}class Za extends du{static register(){Eu.register(Ha);Eu.register(Fa);Eu.register(Ua);Eu.register(Pa)}constructor(){super(...arguments);this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Pa).forEach((t=>{t.balanceCells()}))}deleteColumn(){const[t,,e]=this.getTable();if(e==null)return;t.deleteColumn(e.cellOffset());this.quill.update(Eu.sources.USER)}deleteRow(){const[,t]=this.getTable();if(t==null)return;t.remove();this.quill.update(Eu.sources.USER)}deleteTable(){const[t]=this.getTable();if(t==null)return;const e=t.offset();t.remove();this.quill.update(Eu.sources.USER);this.quill.setSelection(e,Eu.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[e,n]=this.quill.getLine(t.index);if(e==null||e.statics.blotName!==Ha.blotName){return[null,null,null,-1]}const i=e.parent;const s=i.parent.parent;return[s,i,e,n]}insertColumn(t){const e=this.quill.getSelection();if(!e)return;const[n,i,s]=this.getTable(e);if(s==null)return;const r=s.cellOffset();n.insertColumn(r+t);this.quill.update(Eu.sources.USER);let l=i.rowOffset();if(t===0){l+=1}this.quill.setSelection(e.index+l,e.length,Eu.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const e=this.quill.getSelection();if(!e)return;const[n,i,s]=this.getTable(e);if(s==null)return;const r=i.rowOffset();n.insertRow(r+t);this.quill.update(Eu.sources.USER);if(t>0){this.quill.setSelection(e,Eu.sources.SILENT)}else{this.quill.setSelection(e.index+i.children.length,e.length,Eu.sources.SILENT)}}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,e){const n=this.quill.getSelection();if(n==null)return;const i=new Array(t).fill(0).reduce((t=>{const n=new Array(e).fill("\n").join("");return t.insert(n,{table:Ka()})}),(new _o).retain(n.index));this.quill.updateContents(i,Eu.sources.USER);this.quill.setSelection(n.index,Eu.sources.SILENT);this.balanceTables()}listenBalanceCells(){this.quill.on(Eu.events.SCROLL_OPTIMIZE,(t=>{t.some((t=>{if(["TD","TR","TBODY","TABLE"].includes(t.target.tagName)){this.quill.once(Eu.events.TEXT_CHANGE,((t,e,n)=>{if(n!==Eu.sources.USER)return;this.balanceTables()}));return true}return false}))}))}}const za=Qo("quill:toolbar");class Wa extends du{constructor(t,e){super(t,e);if(Array.isArray(this.options.container)){const e=document.createElement("div");e.setAttribute("role","toolbar");Qa(e,this.options.container);t.container?.parentNode?.insertBefore(e,t.container);this.container=e}else if(typeof this.options.container==="string"){this.container=document.querySelector(this.options.container)}else{this.container=this.options.container}if(!(this.container instanceof HTMLElement)){za.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar");this.controls=[];this.handlers={};if(this.options.handlers){Object.keys(this.options.handlers).forEach((t=>{const e=this.options.handlers?.[t];if(e){this.addHandler(t,e)}}))}Array.from(this.container.querySelectorAll("button, select")).forEach((t=>{this.attach(t)}));this.quill.on(Eu.events.EDITOR_CHANGE,(()=>{const[t]=this.quill.selection.getRange();this.update(t)}))}addHandler(t,e){this.handlers[t]=e}attach(t){let e=Array.from(t.classList).find((t=>t.indexOf("ql-")===0));if(!e)return;e=e.slice("ql-".length);if(t.tagName==="BUTTON"){t.setAttribute("type","button")}if(this.handlers[e]==null&&this.quill.scroll.query(e)==null){za.warn("ignoring attaching to nonexistent format",e,t);return}const n=t.tagName==="SELECT"?"change":"click";t.addEventListener(n,(n=>{let i;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const e=t.options[t.selectedIndex];if(e.hasAttribute("selected")){i=false}else{i=e.value||false}}else{if(t.classList.contains("ql-active")){i=false}else{i=t.value||!t.hasAttribute("value")}n.preventDefault()}this.quill.focus();const[s]=this.quill.selection.getRange();if(this.handlers[e]!=null){this.handlers[e].call(this,i)}else if(this.quill.scroll.query(e).prototype instanceof Sl){i=prompt(`Enter ${e}`);if(!i)return;this.quill.updateContents((new _o).retain(s.index).delete(s.length).insert({[e]:i}),Eu.sources.USER)}else{this.quill.format(e,i,Eu.sources.USER)}this.update(s)}));this.controls.push([e,t])}update(t){const e=t==null?{}:this.quill.getFormat(t);this.controls.forEach((n=>{const[i,s]=n;if(s.tagName==="SELECT"){let n=null;if(t==null){n=null}else if(e[i]==null){n=s.querySelector("option[selected]")}else if(!Array.isArray(e[i])){let t=e[i];if(typeof t==="string"){t=t.replace(/"/g,'\\"')}n=s.querySelector(`option[value="${t}"]`)}if(n==null){s.value="";s.selectedIndex=-1}else{n.selected=true}}else if(t==null){s.classList.remove("ql-active");s.setAttribute("aria-pressed","false")}else if(s.hasAttribute("value")){const t=e[i];const n=t===s.getAttribute("value")||t!=null&&t.toString()===s.getAttribute("value")||t==null&&!s.getAttribute("value");s.classList.toggle("ql-active",n);s.setAttribute("aria-pressed",n.toString())}else{const t=e[i]!=null;s.classList.toggle("ql-active",t);s.setAttribute("aria-pressed",t.toString())}}))}}Wa.DEFAULTS={};function Ga(t,e,n){const i=document.createElement("button");i.setAttribute("type","button");i.classList.add(`ql-${e}`);i.setAttribute("aria-pressed","false");if(n!=null){i.value=n;i.setAttribute("aria-label",`${e}: ${n}`)}else{i.setAttribute("aria-label",e)}t.appendChild(i)}function Qa(t,e){if(!Array.isArray(e[0])){e=[e]}e.forEach((e=>{const n=document.createElement("span");n.classList.add("ql-formats");e.forEach((t=>{if(typeof t==="string"){Ga(n,t)}else{const e=Object.keys(t)[0];const i=t[e];if(Array.isArray(i)){Ya(n,e,i)}else{Ga(n,e,i)}}}));t.appendChild(n)}))}function Ya(t,e,n){const i=document.createElement("select");i.classList.add(`ql-${e}`);n.forEach((t=>{const e=document.createElement("option");if(t!==false){e.setAttribute("value",String(t))}else{e.setAttribute("selected","selected")}i.appendChild(e)}));t.appendChild(i)}Wa.DEFAULTS={container:null,handlers:{clean(){const t=this.quill.getSelection();if(t==null)return;if(t.length===0){const t=this.quill.getFormat();Object.keys(t).forEach((t=>{if(this.quill.scroll.query(t,tl.INLINE)!=null){this.quill.format(t,false,Eu.sources.USER)}}))}else{this.quill.removeFormat(t.index,t.length,Eu.sources.USER)}},direction(t){const{align:e}=this.quill.getFormat();if(t==="rtl"&&e==null){this.quill.format("align","right",Eu.sources.USER)}else if(!t&&e==="right"){this.quill.format("align",false,Eu.sources.USER)}this.quill.format("direction",t,Eu.sources.USER)},indent(t){const e=this.quill.getSelection();const n=this.quill.getFormat(e);const i=parseInt(n.indent||0,10);if(t==="+1"||t==="-1"){let e=t==="+1"?1:-1;if(n.direction==="rtl")e*=-1;this.quill.format("indent",i+e,Eu.sources.USER)}},link(t){if(t===true){t=prompt("Enter link URL:")}this.quill.format("link",t,Eu.sources.USER)},list(t){const e=this.quill.getSelection();const n=this.quill.getFormat(e);if(t==="check"){if(n.list==="checked"||n.list==="unchecked"){this.quill.format("list",false,Eu.sources.USER)}else{this.quill.format("list","unchecked",Eu.sources.USER)}}else{this.quill.format("list",t,Eu.sources.USER)}}}};const Xa='<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>';const Ja='<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>';const th='<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>';const eh='<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>';const nh='<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>';const ih='<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>';const sh='<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>';const rh='<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>';const lh='<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>';const oh='<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>';const uh='<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>';const ch='<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>';const ah='<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>';const hh='<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>';const fh='<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>';const dh='<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>';const vh='<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>';const bh='<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>';const ph='<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>';const yh='<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>';const mh='<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>';const wh='<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>';const gh='<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>';const xh='<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>';const kh='<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>';const jh='<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>';const Ah='<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>';const qh='<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>';const Oh='<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>';const Mh='<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>';const Eh='<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>';const Th='<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>';const Nh='<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>';const $h={align:{"":Xa,center:Ja,right:th,justify:eh},background:nh,blockquote:ih,bold:sh,clean:rh,code:lh,"code-block":lh,color:oh,direction:{"":uh,rtl:ch},formula:ah,header:{1:hh,2:fh,3:dh,4:vh,5:bh,6:ph},italic:yh,image:mh,indent:{"+1":wh,"-1":gh},link:xh,list:{bullet:kh,check:jh,ordered:Ah},script:{sub:qh,super:Oh},strike:Mh,table:Eh,underline:Th,video:Nh};const Lh='<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 _h=0;function Sh(t,e){t.setAttribute(e,`${!(t.getAttribute(e)==="true")}`)}class Ch{constructor(t){this.select=t;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");Sh(this.label,"aria-expanded");Sh(this.options,"aria-hidden")}buildItem(t){const e=document.createElement("span");e.tabIndex="0";e.setAttribute("role","button");e.classList.add("ql-picker-item");const n=t.getAttribute("value");if(n){e.setAttribute("data-value",n)}if(t.textContent){e.setAttribute("data-label",t.textContent)}e.addEventListener("click",(()=>{this.selectItem(e,true)}));e.addEventListener("keydown",(t=>{switch(t.key){case"Enter":this.selectItem(e,true);t.preventDefault();break;case"Escape":this.escape();t.preventDefault();break}}));return e}buildLabel(){const t=document.createElement("span");t.classList.add("ql-picker-label");t.innerHTML=Lh;t.tabIndex="0";t.setAttribute("role","button");t.setAttribute("aria-expanded","false");this.container.appendChild(t);return t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options");t.setAttribute("aria-hidden","true");t.tabIndex="-1";t.id=`ql-picker-options-${_h}`;_h+=1;this.label.setAttribute("aria-controls",t.id);this.options=t;Array.from(this.select.options).forEach((e=>{const n=this.buildItem(e);t.appendChild(n);if(e.selected===true){this.selectItem(n)}}));this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach((t=>{this.container.setAttribute(t.name,t.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(t){let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;const n=this.container.querySelector(".ql-selected");if(t===n)return;if(n!=null){n.classList.remove("ql-selected")}if(t==null)return;t.classList.add("ql-selected");this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t);if(t.hasAttribute("data-value")){this.label.setAttribute("data-value",t.getAttribute("data-value"))}else{this.label.removeAttribute("data-value")}if(t.hasAttribute("data-label")){this.label.setAttribute("data-label",t.getAttribute("data-label"))}else{this.label.removeAttribute("data-label")}if(e){this.select.dispatchEvent(new Event("change"));this.close()}}update(){let t;if(this.select.selectedIndex>-1){const e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex];this.selectItem(e)}else{this.selectItem(null)}const e=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",e)}}class Bh extends Ch{constructor(t,e){super(t);this.label.innerHTML=e;this.container.classList.add("ql-color-picker");Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach((t=>{t.classList.add("ql-primary")}))}buildItem(t){const e=super.buildItem(t);e.style.backgroundColor=t.getAttribute("value")||"";return e}selectItem(t,e){super.selectItem(t,e);const n=this.label.querySelector(".ql-color-label");const i=t?t.getAttribute("data-value")||"":"";if(n){if(n.tagName==="line"){n.style.stroke=i}else{n.style.fill=i}}}}class Ih extends Ch{constructor(t,e){super(t);this.container.classList.add("ql-icon-picker");Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach((t=>{t.innerHTML=e[t.getAttribute("data-value")||""]}));this.defaultItem=this.container.querySelector(".ql-selected");this.selectItem(this.defaultItem)}selectItem(t,e){super.selectItem(t,e);const n=t||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}const Rh=t=>{const{overflowY:e}=getComputedStyle(t,null);return e!=="visible"&&e!=="clip"};class Dh{constructor(t,e){this.quill=t;this.boundsContainer=e||document.body;this.root=t.addContainer("ql-tooltip");this.root.innerHTML=this.constructor.TEMPLATE;if(Rh(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(t){const e=t.left+t.width/2-this.root.offsetWidth/2;const n=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${e}px`;this.root.style.top=`${n}px`;this.root.classList.remove("ql-flip");const i=this.boundsContainer.getBoundingClientRect();const s=this.root.getBoundingClientRect();let r=0;if(s.right>i.right){r=i.right-s.right;this.root.style.left=`${e+r}px`}if(s.left<i.left){r=i.left-s.left;this.root.style.left=`${e+r}px`}if(s.bottom>i.bottom){const e=s.bottom-s.top;const i=t.bottom-t.top+e;this.root.style.top=`${n-i}px`;this.root.classList.add("ql-flip")}return r}show(){this.root.classList.remove("ql-editing");this.root.classList.remove("ql-hidden")}}const Vh=[false,"center","right","justify"];const Hh=["#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"];const Fh=[false,"serif","monospace"];const Uh=["1","2","3",false];const Ph=["small",false,"large","huge"];class Kh extends yu{constructor(t,e){super(t,e);const n=e=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",n);return}if(this.tooltip!=null&&!this.tooltip.root.contains(e.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()){this.tooltip.hide()}if(this.pickers!=null){this.pickers.forEach((t=>{if(!t.container.contains(e.target)){t.close()}}))}};t.emitter.listenDOM("click",document.body,n)}addModule(t){const e=super.addModule(t);if(t==="toolbar"){this.extendToolbar(e)}return e}buildButtons(t,e){Array.from(t).forEach((t=>{const n=t.getAttribute("class")||"";n.split(/\s+/).forEach((n=>{if(!n.startsWith("ql-"))return;n=n.slice("ql-".length);if(e[n]==null)return;if(n==="direction"){t.innerHTML=e[n][""]+e[n].rtl}else if(typeof e[n]==="string"){t.innerHTML=e[n]}else{const i=t.value||"";if(i!=null&&e[n][i]){t.innerHTML=e[n][i]}}}))}))}buildPickers(t,e){this.pickers=Array.from(t).map((t=>{if(t.classList.contains("ql-align")){if(t.querySelector("option")==null){Wh(t,Vh)}if(typeof e.align==="object"){return new Ih(t,e.align)}}if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){const n=t.classList.contains("ql-background")?"background":"color";if(t.querySelector("option")==null){Wh(t,Hh,n==="background"?"#ffffff":"#000000")}return new Bh(t,e[n])}if(t.querySelector("option")==null){if(t.classList.contains("ql-font")){Wh(t,Fh)}else if(t.classList.contains("ql-header")){Wh(t,Uh)}else if(t.classList.contains("ql-size")){Wh(t,Ph)}}return new Ch(t)}));const n=()=>{this.pickers.forEach((t=>{t.update()}))};this.quill.on(Jo.events.EDITOR_CHANGE,n)}}Kh.DEFAULTS=Jr({},yu.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let t=this.container.querySelector("input.ql-image[type=file]");if(t==null){t=document.createElement("input");t.setAttribute("type","file");t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", "));t.classList.add("ql-image");t.addEventListener("change",(()=>{const e=this.quill.getSelection(true);this.quill.uploader.upload(e,t.files);t.value=""}));this.container.appendChild(t)}t.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class Zh extends Dh{constructor(t,e){super(t,e);this.textbox=this.root.querySelector('input[type="text"]');this.listen()}listen(){this.textbox.addEventListener("keydown",(t=>{if(t.key==="Enter"){this.save();t.preventDefault()}else if(t.key==="Escape"){this.cancel();t.preventDefault()}}))}cancel(){this.hide();this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"link";let e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;this.root.classList.remove("ql-hidden");this.root.classList.add("ql-editing");if(this.textbox==null)return;if(e!=null){this.textbox.value=e}else if(t!==this.root.getAttribute("data-mode")){this.textbox.value=""}const n=this.quill.getBounds(this.quill.selection.savedRange);if(n!=null){this.position(n)}this.textbox.select();this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||"");this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:true})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:e}=this.quill.root;if(this.linkRange){this.quill.formatText(this.linkRange,"link",t,Jo.sources.USER);delete this.linkRange}else{this.restoreFocus();this.quill.format("link",t,Jo.sources.USER)}this.quill.root.scrollTop=e;break}case"video":{t=zh(t)}case"formula":{if(!t)break;const e=this.quill.getSelection(true);if(e!=null){const n=e.index+e.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),t,Jo.sources.USER);if(this.root.getAttribute("data-mode")==="formula"){this.quill.insertText(n+1," ",Jo.sources.USER)}this.quill.setSelection(n+2,Jo.sources.USER)}break}}this.textbox.value="";this.hide()}}function zh(t){let e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(e){return`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`}if(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)){return`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`}return t}function Wh(t,e){let n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;e.forEach((e=>{const i=document.createElement("option");if(e===n){i.setAttribute("selected","selected")}else{i.setAttribute("value",String(e))}t.appendChild(i)}))}const Gh=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class Qh extends Zh{static 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("");constructor(t,e){super(t,e);this.quill.on(Jo.events.EDITOR_CHANGE,((t,e,n,i)=>{if(t!==Jo.events.SELECTION_CHANGE)return;if(e!=null&&e.length>0&&i===Jo.sources.USER){this.show();this.root.style.left="0px";this.root.style.width="";this.root.style.width=`${this.root.offsetWidth}px`;const t=this.quill.getLines(e.index,e.length);if(t.length===1){const t=this.quill.getBounds(e);if(t!=null){this.position(t)}}else{const n=t[t.length-1];const i=this.quill.getIndex(n);const s=Math.min(n.length()-1,e.index+e.length-i);const r=this.quill.getBounds(new eu(i,s));if(r!=null){this.position(r)}}}else if(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(Jo.events.SCROLL_OPTIMIZE,(()=>{setTimeout((()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const e=this.quill.getBounds(t);if(e!=null){this.position(e)}}}),1)}))}cancel(){this.show()}position(t){const e=super.position(t);const n=this.root.querySelector(".ql-tooltip-arrow");n.style.marginLeft="";if(e!==0){n.style.marginLeft=`${-1*e-n.offsetWidth/2}px`}return e}}class Yh extends Kh{constructor(t,e){if(e.modules.toolbar!=null&&e.modules.toolbar.container==null){e.modules.toolbar.container=Gh}super(t,e);this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Qh(this.quill,this.options.bounds);if(t.container!=null){this.tooltip.root.appendChild(t.container);this.buildButtons(t.container.querySelectorAll("button"),$h);this.buildPickers(t.container.querySelectorAll("select"),$h)}}}Yh.DEFAULTS=Jr({},Kh.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(!t){this.quill.format("link",false,Eu.sources.USER)}else{this.quill.theme.tooltip.edit()}}}}}});const Xh=[[{header:["1","2","3",false]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class Jh extends Zh{static 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("");preview=this.root.querySelector("a.ql-preview");listen(){super.listen();this.root.querySelector("a.ql-action").addEventListener("click",(t=>{if(this.root.classList.contains("ql-editing")){this.save()}else{this.edit("link",this.preview.textContent)}t.preventDefault()}));this.root.querySelector("a.ql-remove").addEventListener("click",(t=>{if(this.linkRange!=null){const t=this.linkRange;this.restoreFocus();this.quill.formatText(t,"link",false,Jo.sources.USER);delete this.linkRange}t.preventDefault();this.hide()}));this.quill.on(Jo.events.SELECTION_CHANGE,((t,e,n)=>{if(t==null)return;if(t.length===0&&n===Jo.sources.USER){const[e,n]=this.quill.scroll.descendant(qa,t.index);if(e!=null){this.linkRange=new eu(t.index-n,e.length());const i=qa.formats(e.domNode);this.preview.textContent=i;this.preview.setAttribute("href",i);this.show();const s=this.quill.getBounds(this.linkRange);if(s!=null){this.position(s)}return}}else{delete this.linkRange}this.hide()}))}show(){super.show();this.root.removeAttribute("data-mode")}}class tf extends Kh{constructor(t,e){if(e.modules.toolbar!=null&&e.modules.toolbar.container==null){e.modules.toolbar.container=Xh}super(t,e);this.quill.container.classList.add("ql-snow")}extendToolbar(t){if(t.container!=null){t.container.classList.add("ql-snow");this.buildButtons(t.container.querySelectorAll("button"),$h);this.buildPickers(t.container.querySelectorAll("select"),$h);this.tooltip=new Jh(this.quill,this.options.bounds);if(t.container.querySelector(".ql-link")){this.quill.keyboard.addBinding({key:"k",shortKey:true},((e,n)=>{t.handlers.link.call(t,!n.format.link)}))}}}}tf.DEFAULTS=Jr({},Kh.DEFAULTS,{modules:{toolbar:{handlers:{link(t){if(t){const t=this.quill.getSelection();if(t==null||t.length===0)return;let e=this.quill.getText(t);if(/^\S+@\S+\.\S+$/.test(e)&&e.indexOf("mailto:")!==0){e=`mailto:${e}`}const{tooltip:n}=this.quill.theme;n.edit("link",e)}else{this.quill.format("link",false,Eu.sources.USER)}}}}}});Eu.register({"attributors/attribute/direction":tc,"attributors/class/align":Uu,"attributors/class/background":Wu,"attributors/class/color":Zu,"attributors/class/direction":ec,"attributors/class/font":sc,"attributors/class/size":oc,"attributors/style/align":Pu,"attributors/style/background":Gu,"attributors/style/color":zu,"attributors/style/direction":nc,"attributors/style/font":lc,"attributors/style/size":uc},true);Eu.register({"formats/align":Uu,"formats/direction":ec,"formats/indent":ma,"formats/background":Gu,"formats/color":zu,"formats/font":sc,"formats/size":oc,"formats/blockquote":wa,"formats/code-block":Yu,"formats/header":ga,"formats/list":ka,"formats/bold":ja,"formats/code":Xu,"formats/italic":Aa,"formats/link":qa,"formats/script":Ma,"formats/strike":Ea,"formats/underline":Ta,"formats/formula":Na,"formats/image":La,"formats/video":Sa,"modules/syntax":Va,"modules/table":Za,"modules/toolbar":Wa,"themes/bubble":Yh,"themes/snow":tf,"ui/icons":$h,"ui/picker":Ch,"ui/icon-picker":Ih,"ui/color-picker":Bh,"ui/tooltip":Dh},true);const ef=class{constructor(n){t(this,n);this.textareaChanged=e(this,"textareaChanged",7);this.onChanged=e(this,"onChanged",7);this.textareaBlurred=e(this,"textareaBlurred",7);this.onBlurred=e(this,"onBlurred",7);this.value="";this.show_info_icon=false;this.characterCount=0;this.internalValue=""}async getValue(){return this.internalValue||this.value||""}async setValue(t){this.internalValue=t;this.onChanged.emit(t)}async reset(){this.internalValue="";this.onChanged.emit("")}componentDidLoad(){var t;if(this.enable_rich_editor){const t=this.el.querySelector("#editor");this.quill=new Eu(t,{modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{header:[1,2,3,4,5,6,false]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},theme:"snow",placeholder:this.placeholder});this.quill.on("text-change",(()=>{const t=this.quill.root.innerHTML;this.internalValue=t;this.characterCount=this.quill.getText().trim().length;this.textareaChanged.emit();this.onChanged.emit()}));if(this.value){this.quill.root.innerHTML=this.value;this.internalValue=this.value;this.characterCount=this.quill.getText().trim().length}}else{this.internalValue=this.value;this.characterCount=((t=this.value)===null||t===void 0?void 0:t.length)||0}}handleInput(t){const e=t.target.value;this.internalValue=e;this.characterCount=e.length;this.textareaChanged.emit(t);this.onChanged.emit(e);this.el.dispatchEvent(new InputEvent("input",t))}handleBlur(t){const e=t.target.value.trim();this.textareaBlurred.emit({name:this.textarea_name,value:e});this.onBlurred.emit(e);this.el.dispatchEvent(new FocusEvent("blur",{bubbles:true,composed:true,relatedTarget:t.target}))}render(){const t=["dda-input-container dda-richtext-editor",this.validation_type?`dda-validation-${this.validation_type}`:"",this.input_status?`dda-input-${this.input_status}`:"",this.custom_class,this.component_mode,this.textarea_name].filter(Boolean).join(" ");return n(i,{key:"0e08517cea3fe0f247facf0ec1bfde73f20d9234"},n("div",{key:"e5354b352ab7c3bad0a9a06f7f4315c8b8debb0d",class:t},this.label&&n("label",{key:"418a4633ca45ae6d476ffefae2ba1d447bdd06d5",htmlFor:this.input_id,class:"dda-input-label"},this.label),this.enable_rich_editor?n("div",{id:"editor",class:"dda-richeditor-field"}):n("textarea",{id:this.input_id,name:this.textarea_name,"aria-label":this.aria_label,placeholder:this.placeholder,value:this.internalValue||this.value,"aria-invalid":this.validation_type==="error"?"true":"false",class:"dda-input-field dda-input-textarea",maxLength:this.max_characters,onInput:t=>this.handleInput(t),onBlur:t=>this.handleBlur(t),onFocus:t=>{this.el.dispatchEvent(new FocusEvent("focus",{bubbles:true,composed:true,relatedTarget:t.relatedTarget}))},onKeyDown:t=>{this.el.dispatchEvent(new KeyboardEvent("keydown",{bubbles:true,composed:true,key:t.key,code:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,repeat:t.repeat}))}}),this.validation_type==="error"&&this.error_message?n("div",{class:"dda-error-message",id:this.validation_id},n("span",{class:"dda-d-flex dda-items-center dda-gap-2"},this.show_info_icon&&n("i",{class:"material-icons material-symbols-outlined","aria-hidden":"true"},"info"),this.error_message),n("span",{class:"dda-letter-count"},this.characterCount," / ",this.max_characters)):n("div",{class:"dda-helper-text",id:this.validation_id},n("span",{class:"dda-d-flex dda-items-center dda-gap-2"},this.show_info_icon&&n("i",{class:"material-icons material-symbols-outlined","aria-hidden":"true"},"info"),this.helper_text),n("span",{class:"dda-letter-count"},this.characterCount," / ",this.max_characters))))}get el(){return s(this)}};export{ef as dda_textarea};
2
- //# sourceMappingURL=p-3fef96a8.entry.js.map