@ncino/web-components 3.1.0 → 3.2.0-preview.1

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 (1244) hide show
  1. package/dist/_slds/icons/standard-sprite/svg/symbols-rtl.svg +1 -1
  2. package/dist/_slds/icons/standard-sprite/svg/symbols.svg +1 -1
  3. package/dist/_slds/icons/svg/symbols-rtl.svg +1 -1
  4. package/dist/_slds/icons/svg/symbols.svg +1 -1
  5. package/dist/_slds/icons/symbols-rtl.svg +1 -1
  6. package/dist/_slds/icons/symbols.svg +1 -1
  7. package/dist/_slds/icons/utility-sprite/svg/symbols-rtl.svg +1 -1
  8. package/dist/_slds/icons/utility-sprite/svg/symbols.svg +1 -1
  9. package/dist/_virtual/_commonjsHelpers.js +1 -0
  10. package/dist/_virtual/axe.js +1 -0
  11. package/dist/_virtual/axe2.js +1 -0
  12. package/dist/_virtual/index.js +1 -0
  13. package/dist/_virtual/index2.js +1 -0
  14. package/dist/_virtual/preload-helper.js +1 -0
  15. package/dist/_virtual/sourcemap-codec.umd.js +1 -0
  16. package/dist/_virtual/sourcemap-codec.umd2.js +1 -0
  17. package/dist/assets/{input-rich-text.css → node_modules/.pnpm/ckeditor5@44.3.0/node_modules/ckeditor5/dist/ckeditor5.css} +1 -1
  18. package/dist/assets/packages/web-components/src/components/input-rich-text/ckeditor-overrides.css +1 -0
  19. package/dist/components/accordion/accordion.js +1 -1
  20. package/dist/components/accordion/gator/base/accordion.gator.js +2 -2
  21. package/dist/components/accordion/gator/group/accordion-group.gator.js +2 -2
  22. package/dist/components/accordion/index.js +1 -1
  23. package/dist/components/alert/alert.js +1 -1
  24. package/dist/components/alert/gator/base/alert.gator.js +2 -2
  25. package/dist/components/alert/gator/subtitle/alert-subtitle.gator.js +2 -2
  26. package/dist/components/alert/gator/title/alert-title.gator.js +2 -2
  27. package/dist/components/alert/index.js +1 -1
  28. package/dist/components/avatar/avatar.js +1 -1
  29. package/dist/components/avatar/gator/avatar.gator.js +4 -4
  30. package/dist/components/avatar/index.js +1 -1
  31. package/dist/components/badge/badge.js +1 -1
  32. package/dist/components/badge/gator/badge.gator.js +2 -2
  33. package/dist/components/badge/index.js +1 -1
  34. package/dist/components/badge/slds/badge.slds.js +2 -2
  35. package/dist/components/banner/banner.js +1 -1
  36. package/dist/components/banner/gator/banner.gator.js +2 -2
  37. package/dist/components/banner/index.js +1 -1
  38. package/dist/components/boolean/boolean.gator.js +7 -7
  39. package/dist/components/boolean/index.js +1 -1
  40. package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
  41. package/dist/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.js +3 -3
  42. package/dist/components/breadcrumbs/gator/container/breadcrumbs.gator.js +2 -2
  43. package/dist/components/breadcrumbs/index.js +1 -1
  44. package/dist/components/button/button.js +1 -1
  45. package/dist/components/button/gator/button.gator.js +8 -8
  46. package/dist/components/button/index.js +1 -1
  47. package/dist/components/button/slds/button.slds.js +2 -2
  48. package/dist/components/button-card/button-card.js +1 -1
  49. package/dist/components/button-card/gator/button-card.gator.js +5 -5
  50. package/dist/components/button-card/index.js +1 -1
  51. package/dist/components/card/card.js +1 -1
  52. package/dist/components/card/gator/base/card.gator.js +6 -1
  53. package/dist/components/card/gator/content/card-content.gator.js +2 -2
  54. package/dist/components/card/gator/footer/card-footer.gator.js +2 -2
  55. package/dist/components/card/gator/header/card-header.gator.js +2 -38
  56. package/dist/components/card/index.js +1 -1
  57. package/dist/components/checkbox/checkbox.gator.js +4 -4
  58. package/dist/components/checkbox/index.js +1 -1
  59. package/dist/components/checkbox-group/checkbox-group.gator.js +12 -12
  60. package/dist/components/checkbox-group/index.js +1 -1
  61. package/dist/components/chip/chip.js +1 -1
  62. package/dist/components/chip/gator/chip.gator.js +3 -3
  63. package/dist/components/chip/index.js +1 -1
  64. package/dist/components/combobox/base/combobox.js +1 -1
  65. package/dist/components/combobox/base/combobox.slds.js +8 -8
  66. package/dist/components/combobox/base/index.js +1 -1
  67. package/dist/components/combobox/combobox-item/combobox-item.js +1 -1
  68. package/dist/components/combobox/combobox-item/combobox-item.slds.js +4 -4
  69. package/dist/components/combobox/combobox-item/index.js +1 -1
  70. package/dist/components/combobox/index.js +1 -1
  71. package/dist/components/date-picker/base/datepicker.js +1 -1
  72. package/dist/components/date-picker/base/gator/datepicker.gator.js +31 -31
  73. package/dist/components/date-picker/year-month-selector/year-month-selector.gator.js +2 -2
  74. package/dist/components/display-card/display-card.js +1 -1
  75. package/dist/components/display-card/gator/display-card.gator.js +2 -2
  76. package/dist/components/display-card/index.js +1 -1
  77. package/dist/components/divider/divider.js +1 -1
  78. package/dist/components/divider/gator/divider.gator.js +2 -2
  79. package/dist/components/divider/index.js +1 -1
  80. package/dist/components/fab/fab.js +1 -1
  81. package/dist/components/fab/gator/fab.gator.js +5 -5
  82. package/dist/components/fab/index.js +1 -1
  83. package/dist/components/headline-card/gator/headline-card.gator.js +3 -3
  84. package/dist/components/headline-card/headline-card.js +1 -1
  85. package/dist/components/headline-card/index.js +1 -1
  86. package/dist/components/icon/gator/icon.gator.js +1 -1
  87. package/dist/components/icon/gator/index.js +1 -1
  88. package/dist/components/icon/gator/templates/add-link.js +2 -2
  89. package/dist/components/icon/gator/templates/airplane.js +2 -2
  90. package/dist/components/icon/gator/templates/alarm.js +2 -2
  91. package/dist/components/icon/gator/templates/apartment.js +2 -2
  92. package/dist/components/icon/gator/templates/arrow-around.js +2 -2
  93. package/dist/components/icon/gator/templates/arrow-down.js +2 -2
  94. package/dist/components/icon/gator/templates/arrow-left.js +2 -2
  95. package/dist/components/icon/gator/templates/arrow-line-left.js +2 -2
  96. package/dist/components/icon/gator/templates/arrow-line-right.js +2 -2
  97. package/dist/components/icon/gator/templates/arrow-right.js +2 -2
  98. package/dist/components/icon/gator/templates/arrow-up.js +2 -2
  99. package/dist/components/icon/gator/templates/bank.js +2 -2
  100. package/dist/components/icon/gator/templates/bell-disabled.js +2 -2
  101. package/dist/components/icon/gator/templates/bell.js +2 -2
  102. package/dist/components/icon/gator/templates/binoculars.js +2 -2
  103. package/dist/components/icon/gator/templates/book.js +2 -2
  104. package/dist/components/icon/gator/templates/box.js +2 -2
  105. package/dist/components/icon/gator/templates/cake.js +2 -2
  106. package/dist/components/icon/gator/templates/calculator.js +2 -2
  107. package/dist/components/icon/gator/templates/calendar.js +2 -2
  108. package/dist/components/icon/gator/templates/camera.js +2 -2
  109. package/dist/components/icon/gator/templates/caret-up-down.js +2 -2
  110. package/dist/components/icon/gator/templates/case.js +2 -2
  111. package/dist/components/icon/gator/templates/chart-rise.js +2 -2
  112. package/dist/components/icon/gator/templates/chat.js +2 -2
  113. package/dist/components/icon/gator/templates/check-circle.js +2 -2
  114. package/dist/components/icon/gator/templates/check.js +2 -2
  115. package/dist/components/icon/gator/templates/checkbox-selected.js +2 -2
  116. package/dist/components/icon/gator/templates/checkbox.js +2 -2
  117. package/dist/components/icon/gator/templates/chevron-down.js +2 -2
  118. package/dist/components/icon/gator/templates/chevron-left.js +2 -2
  119. package/dist/components/icon/gator/templates/chevron-right.js +2 -2
  120. package/dist/components/icon/gator/templates/chevron-up.js +2 -2
  121. package/dist/components/icon/gator/templates/circle-arrow-down.js +2 -2
  122. package/dist/components/icon/gator/templates/circle-arrow-left.js +2 -2
  123. package/dist/components/icon/gator/templates/circle-arrow-right.js +2 -2
  124. package/dist/components/icon/gator/templates/circle-arrow-up.js +2 -2
  125. package/dist/components/icon/gator/templates/circle-filled.js +2 -2
  126. package/dist/components/icon/gator/templates/circle.js +2 -2
  127. package/dist/components/icon/gator/templates/city.js +2 -2
  128. package/dist/components/icon/gator/templates/clipboard.js +2 -2
  129. package/dist/components/icon/gator/templates/clock-clockwise.js +2 -2
  130. package/dist/components/icon/gator/templates/clock-counter-clockwise.js +2 -2
  131. package/dist/components/icon/gator/templates/clock.js +2 -2
  132. package/dist/components/icon/gator/templates/collapse.js +2 -2
  133. package/dist/components/icon/gator/templates/cone.js +2 -2
  134. package/dist/components/icon/gator/templates/contact-info.js +2 -2
  135. package/dist/components/icon/gator/templates/copy.js +2 -2
  136. package/dist/components/icon/gator/templates/credit-card.js +2 -2
  137. package/dist/components/icon/gator/templates/crop.js +2 -2
  138. package/dist/components/icon/gator/templates/crosshairs.js +2 -2
  139. package/dist/components/icon/gator/templates/currency-dollar-simple.js +2 -2
  140. package/dist/components/icon/gator/templates/currency-eur.js +2 -2
  141. package/dist/components/icon/gator/templates/currency-gbp.js +2 -2
  142. package/dist/components/icon/gator/templates/currency-inr.js +2 -2
  143. package/dist/components/icon/gator/templates/currency-jpy.js +2 -2
  144. package/dist/components/icon/gator/templates/currency-krw.js +2 -2
  145. package/dist/components/icon/gator/templates/currency-kzt.js +2 -2
  146. package/dist/components/icon/gator/templates/currency-ngn.js +2 -2
  147. package/dist/components/icon/gator/templates/currency-rub.js +2 -2
  148. package/dist/components/icon/gator/templates/cursor-arrow.js +2 -2
  149. package/dist/components/icon/gator/templates/cursor-hand.js +2 -2
  150. package/dist/components/icon/gator/templates/cursor.js +2 -2
  151. package/dist/components/icon/gator/templates/dashboard.js +2 -2
  152. package/dist/components/icon/gator/templates/delete.js +2 -2
  153. package/dist/components/icon/gator/templates/dna.js +2 -2
  154. package/dist/components/icon/gator/templates/document-add.js +2 -2
  155. package/dist/components/icon/gator/templates/document-check.js +2 -2
  156. package/dist/components/icon/gator/templates/document-e-sign.js +2 -2
  157. package/dist/components/icon/gator/templates/document-image.js +2 -2
  158. package/dist/components/icon/gator/templates/document-pdf.js +2 -2
  159. package/dist/components/icon/gator/templates/document-sign.js +2 -2
  160. package/dist/components/icon/gator/templates/document-zip.js +2 -2
  161. package/dist/components/icon/gator/templates/document.js +2 -2
  162. package/dist/components/icon/gator/templates/dollar-bills.js +2 -2
  163. package/dist/components/icon/gator/templates/dollar-house.js +2 -2
  164. package/dist/components/icon/gator/templates/down-payment.js +2 -2
  165. package/dist/components/icon/gator/templates/download.js +2 -2
  166. package/dist/components/icon/gator/templates/drag-drop.js +2 -2
  167. package/dist/components/icon/gator/templates/earth.js +2 -2
  168. package/dist/components/icon/gator/templates/exit-circle.js +2 -2
  169. package/dist/components/icon/gator/templates/exit-left.js +2 -2
  170. package/dist/components/icon/gator/templates/exit.js +2 -2
  171. package/dist/components/icon/gator/templates/expand-arrows.js +2 -2
  172. package/dist/components/icon/gator/templates/expand.js +2 -2
  173. package/dist/components/icon/gator/templates/export.js +2 -2
  174. package/dist/components/icon/gator/templates/eye-closed.js +2 -2
  175. package/dist/components/icon/gator/templates/eye-crossed.js +2 -2
  176. package/dist/components/icon/gator/templates/eye.js +2 -2
  177. package/dist/components/icon/gator/templates/facebook-logo.js +2 -2
  178. package/dist/components/icon/gator/templates/file-code.js +2 -2
  179. package/dist/components/icon/gator/templates/files.js +2 -2
  180. package/dist/components/icon/gator/templates/filter-funnel.js +2 -2
  181. package/dist/components/icon/gator/templates/filters-2.js +2 -2
  182. package/dist/components/icon/gator/templates/filters.js +2 -2
  183. package/dist/components/icon/gator/templates/flags/flag-ad-andorra.js +2 -2
  184. package/dist/components/icon/gator/templates/flags/flag-ae-united-arab-emirates.js +2 -2
  185. package/dist/components/icon/gator/templates/flags/flag-af-afghanistan.js +2 -2
  186. package/dist/components/icon/gator/templates/flags/flag-ag-antigua-and-barbuda.js +2 -2
  187. package/dist/components/icon/gator/templates/flags/flag-ai-anguilla.js +2 -2
  188. package/dist/components/icon/gator/templates/flags/flag-al-albania.js +2 -2
  189. package/dist/components/icon/gator/templates/flags/flag-am-armenia.js +2 -2
  190. package/dist/components/icon/gator/templates/flags/flag-ao-angola.js +2 -2
  191. package/dist/components/icon/gator/templates/flags/flag-aq-antarctica.js +2 -2
  192. package/dist/components/icon/gator/templates/flags/flag-ar-argentina.js +2 -2
  193. package/dist/components/icon/gator/templates/flags/flag-as-american-smoa.js +2 -2
  194. package/dist/components/icon/gator/templates/flags/flag-at-austria.js +2 -2
  195. package/dist/components/icon/gator/templates/flags/flag-au-australia.js +2 -2
  196. package/dist/components/icon/gator/templates/flags/flag-aw-aruba.js +2 -2
  197. package/dist/components/icon/gator/templates/flags/flag-ax-aland-islands.js +2 -2
  198. package/dist/components/icon/gator/templates/flags/flag-az-azerbaijan.js +2 -2
  199. package/dist/components/icon/gator/templates/flags/flag-ba-bosnia-and-herzegovina.js +2 -2
  200. package/dist/components/icon/gator/templates/flags/flag-bb-barbados.js +2 -2
  201. package/dist/components/icon/gator/templates/flags/flag-bd-bangladesh.js +2 -2
  202. package/dist/components/icon/gator/templates/flags/flag-be-belgium.js +2 -2
  203. package/dist/components/icon/gator/templates/flags/flag-bf-burkina-faso.js +2 -2
  204. package/dist/components/icon/gator/templates/flags/flag-bg-bulgaria.js +2 -2
  205. package/dist/components/icon/gator/templates/flags/flag-bh-bahrain.js +2 -2
  206. package/dist/components/icon/gator/templates/flags/flag-bi-burundi.js +2 -2
  207. package/dist/components/icon/gator/templates/flags/flag-bj-benin.js +2 -2
  208. package/dist/components/icon/gator/templates/flags/flag-bl-saint-barthelemy.js +2 -2
  209. package/dist/components/icon/gator/templates/flags/flag-bm-bermuda.js +2 -2
  210. package/dist/components/icon/gator/templates/flags/flag-bn-brunei-darussalam.js +2 -2
  211. package/dist/components/icon/gator/templates/flags/flag-bo-bolivia.js +2 -2
  212. package/dist/components/icon/gator/templates/flags/flag-bq-bo-bonaire.js +2 -2
  213. package/dist/components/icon/gator/templates/flags/flag-bq-sa-sba.js +2 -2
  214. package/dist/components/icon/gator/templates/flags/flag-bq-se-snt-eustatius.js +2 -2
  215. package/dist/components/icon/gator/templates/flags/flag-br-brazil.js +2 -2
  216. package/dist/components/icon/gator/templates/flags/flag-bs-bahamas.js +2 -2
  217. package/dist/components/icon/gator/templates/flags/flag-bt-bhutan.js +2 -2
  218. package/dist/components/icon/gator/templates/flags/flag-bv-bouvet-island.js +2 -2
  219. package/dist/components/icon/gator/templates/flags/flag-bw-botswana.js +2 -2
  220. package/dist/components/icon/gator/templates/flags/flag-by-belarus.js +2 -2
  221. package/dist/components/icon/gator/templates/flags/flag-bz-belize.js +2 -2
  222. package/dist/components/icon/gator/templates/flags/flag-ca-canada.js +2 -2
  223. package/dist/components/icon/gator/templates/flags/flag-cc-cocos-keeling-islands.js +2 -2
  224. package/dist/components/icon/gator/templates/flags/flag-cd-democratic-republic-of-the-congo.js +2 -2
  225. package/dist/components/icon/gator/templates/flags/flag-cf-central-african-republic.js +2 -2
  226. package/dist/components/icon/gator/templates/flags/flag-cg-republic-of-the-congo.js +2 -2
  227. package/dist/components/icon/gator/templates/flags/flag-ch-switzerland.js +2 -2
  228. package/dist/components/icon/gator/templates/flags/flag-ci-c/303/264te-divoire-ivory-coast.js +2 -2
  229. package/dist/components/icon/gator/templates/flags/flag-ck-cook-islands.js +2 -2
  230. package/dist/components/icon/gator/templates/flags/flag-cl-chile.js +2 -2
  231. package/dist/components/icon/gator/templates/flags/flag-cm-cameroon.js +2 -2
  232. package/dist/components/icon/gator/templates/flags/flag-cn-china.js +2 -2
  233. package/dist/components/icon/gator/templates/flags/flag-co-colombia.js +2 -2
  234. package/dist/components/icon/gator/templates/flags/flag-cr-costa-rica.js +2 -2
  235. package/dist/components/icon/gator/templates/flags/flag-cu-cuba.js +2 -2
  236. package/dist/components/icon/gator/templates/flags/flag-cv-cabo-verde.js +2 -2
  237. package/dist/components/icon/gator/templates/flags/flag-cw-cura/303/247ao.js +2 -2
  238. package/dist/components/icon/gator/templates/flags/flag-cx-christmas-island.js +2 -2
  239. package/dist/components/icon/gator/templates/flags/flag-cy-cyprus.js +2 -2
  240. package/dist/components/icon/gator/templates/flags/flag-cz-czech-republic.js +2 -2
  241. package/dist/components/icon/gator/templates/flags/flag-de-germany.js +2 -2
  242. package/dist/components/icon/gator/templates/flags/flag-dj-djibouti.js +2 -2
  243. package/dist/components/icon/gator/templates/flags/flag-dk-denmark.js +2 -2
  244. package/dist/components/icon/gator/templates/flags/flag-dm-dominica.js +2 -2
  245. package/dist/components/icon/gator/templates/flags/flag-do-dominican-republic.js +2 -2
  246. package/dist/components/icon/gator/templates/flags/flag-dz-algeria.js +2 -2
  247. package/dist/components/icon/gator/templates/flags/flag-ec-ecuador.js +2 -2
  248. package/dist/components/icon/gator/templates/flags/flag-ee-estonia.js +2 -2
  249. package/dist/components/icon/gator/templates/flags/flag-eg-egypt.js +2 -2
  250. package/dist/components/icon/gator/templates/flags/flag-eh-western-sahara.js +2 -2
  251. package/dist/components/icon/gator/templates/flags/flag-er-eritrea.js +2 -2
  252. package/dist/components/icon/gator/templates/flags/flag-es-sain.js +2 -2
  253. package/dist/components/icon/gator/templates/flags/flag-et-ethiopia.js +2 -2
  254. package/dist/components/icon/gator/templates/flags/flag-fi-finland.js +2 -2
  255. package/dist/components/icon/gator/templates/flags/flag-fj-fiji.js +2 -2
  256. package/dist/components/icon/gator/templates/flags/flag-fk-falkland-islands.js +2 -2
  257. package/dist/components/icon/gator/templates/flags/flag-fm-federated-states-of-micronesia.js +2 -2
  258. package/dist/components/icon/gator/templates/flags/flag-fo-faroe-islands.js +2 -2
  259. package/dist/components/icon/gator/templates/flags/flag-fr-france.js +2 -2
  260. package/dist/components/icon/gator/templates/flags/flag-ga-gabon.js +2 -2
  261. package/dist/components/icon/gator/templates/flags/flag-gb-eng-england.js +2 -2
  262. package/dist/components/icon/gator/templates/flags/flag-gb-nir-northern-ireland.js +2 -2
  263. package/dist/components/icon/gator/templates/flags/flag-gb-sct-sotland.js +2 -2
  264. package/dist/components/icon/gator/templates/flags/flag-gb-ukm-united-kingdom.js +2 -2
  265. package/dist/components/icon/gator/templates/flags/flag-gb-wls-wales.js +2 -2
  266. package/dist/components/icon/gator/templates/flags/flag-gd-grenada.js +2 -2
  267. package/dist/components/icon/gator/templates/flags/flag-ge-georgia.js +2 -2
  268. package/dist/components/icon/gator/templates/flags/flag-gf-french-guiana.js +2 -2
  269. package/dist/components/icon/gator/templates/flags/flag-gg-guernsey.js +2 -2
  270. package/dist/components/icon/gator/templates/flags/flag-gh-ghana.js +2 -2
  271. package/dist/components/icon/gator/templates/flags/flag-gi-gibraltar.js +2 -2
  272. package/dist/components/icon/gator/templates/flags/flag-gl-greenland.js +2 -2
  273. package/dist/components/icon/gator/templates/flags/flag-gm-gambia.js +2 -2
  274. package/dist/components/icon/gator/templates/flags/flag-gn-guinea.js +2 -2
  275. package/dist/components/icon/gator/templates/flags/flag-gp-guadeloupe-2.js +2 -2
  276. package/dist/components/icon/gator/templates/flags/flag-gp-guadeloupe.js +2 -2
  277. package/dist/components/icon/gator/templates/flags/flag-gq-equatorial-guinea.js +2 -2
  278. package/dist/components/icon/gator/templates/flags/flag-gr-greece.js +2 -2
  279. package/dist/components/icon/gator/templates/flags/flag-gs-s-georgia-and-s-sandwich-islands.js +2 -2
  280. package/dist/components/icon/gator/templates/flags/flag-gt-guatemala.js +2 -2
  281. package/dist/components/icon/gator/templates/flags/flag-gu-guam.js +2 -2
  282. package/dist/components/icon/gator/templates/flags/flag-gw-guinea-bissau.js +2 -2
  283. package/dist/components/icon/gator/templates/flags/flag-gy-guyana.js +2 -2
  284. package/dist/components/icon/gator/templates/flags/flag-hk-hong-kong.js +2 -2
  285. package/dist/components/icon/gator/templates/flags/flag-hm-heard-and-mcdonald-islands.js +2 -2
  286. package/dist/components/icon/gator/templates/flags/flag-hn-honduras.js +2 -2
  287. package/dist/components/icon/gator/templates/flags/flag-hr-croatia-hrvatska.js +2 -2
  288. package/dist/components/icon/gator/templates/flags/flag-ht-haiti.js +2 -2
  289. package/dist/components/icon/gator/templates/flags/flag-hu-hungary.js +2 -2
  290. package/dist/components/icon/gator/templates/flags/flag-id-indonesia.js +2 -2
  291. package/dist/components/icon/gator/templates/flags/flag-ie-ireland.js +2 -2
  292. package/dist/components/icon/gator/templates/flags/flag-il-isreal.js +2 -2
  293. package/dist/components/icon/gator/templates/flags/flag-im-isle-of-man.js +2 -2
  294. package/dist/components/icon/gator/templates/flags/flag-in-india.js +2 -2
  295. package/dist/components/icon/gator/templates/flags/flag-io-british-indian-ocean-territory.js +2 -2
  296. package/dist/components/icon/gator/templates/flags/flag-iq-iraq.js +2 -2
  297. package/dist/components/icon/gator/templates/flags/flag-ir-iran.js +2 -2
  298. package/dist/components/icon/gator/templates/flags/flag-is-iceland.js +2 -2
  299. package/dist/components/icon/gator/templates/flags/flag-it-italy.js +2 -2
  300. package/dist/components/icon/gator/templates/flags/flag-je-jersey.js +2 -2
  301. package/dist/components/icon/gator/templates/flags/flag-jm-jamaica.js +2 -2
  302. package/dist/components/icon/gator/templates/flags/flag-jo-jordan.js +2 -2
  303. package/dist/components/icon/gator/templates/flags/flag-jp-japan.js +2 -2
  304. package/dist/components/icon/gator/templates/flags/flag-ke-kenia.js +2 -2
  305. package/dist/components/icon/gator/templates/flags/flag-kg-kyrgyzstan.js +2 -2
  306. package/dist/components/icon/gator/templates/flags/flag-kh-cambodia.js +2 -2
  307. package/dist/components/icon/gator/templates/flags/flag-ki--kiribati.js +2 -2
  308. package/dist/components/icon/gator/templates/flags/flag-km-comoros.js +2 -2
  309. package/dist/components/icon/gator/templates/flags/flag-kn-saint-kitts-and-nevis.js +2 -2
  310. package/dist/components/icon/gator/templates/flags/flag-kp-korea-north.js +2 -2
  311. package/dist/components/icon/gator/templates/flags/flag-kr-korea-south.js +2 -2
  312. package/dist/components/icon/gator/templates/flags/flag-kw-kuwait.js +2 -2
  313. package/dist/components/icon/gator/templates/flags/flag-ky-cayman-islands.js +2 -2
  314. package/dist/components/icon/gator/templates/flags/flag-kz-kazakhstan.js +2 -2
  315. package/dist/components/icon/gator/templates/flags/flag-la-laos.js +2 -2
  316. package/dist/components/icon/gator/templates/flags/flag-lb-lebanon.js +2 -2
  317. package/dist/components/icon/gator/templates/flags/flag-lc-saint-lucia.js +2 -2
  318. package/dist/components/icon/gator/templates/flags/flag-li-liechtenstein.js +2 -2
  319. package/dist/components/icon/gator/templates/flags/flag-lk-sri-lanka.js +2 -2
  320. package/dist/components/icon/gator/templates/flags/flag-lr-liberia.js +2 -2
  321. package/dist/components/icon/gator/templates/flags/flag-ls-lesotho.js +2 -2
  322. package/dist/components/icon/gator/templates/flags/flag-lt-lithuania.js +2 -2
  323. package/dist/components/icon/gator/templates/flags/flag-lu-luxembourg.js +2 -2
  324. package/dist/components/icon/gator/templates/flags/flag-lv-latvia.js +2 -2
  325. package/dist/components/icon/gator/templates/flags/flag-ly-libya.js +2 -2
  326. package/dist/components/icon/gator/templates/flags/flag-ma-morocco.js +2 -2
  327. package/dist/components/icon/gator/templates/flags/flag-mc-monaco.js +2 -2
  328. package/dist/components/icon/gator/templates/flags/flag-md-moldova.js +2 -2
  329. package/dist/components/icon/gator/templates/flags/flag-me-montenegro.js +2 -2
  330. package/dist/components/icon/gator/templates/flags/flag-mf-saint-martin.js +2 -2
  331. package/dist/components/icon/gator/templates/flags/flag-mg-madagascar.js +2 -2
  332. package/dist/components/icon/gator/templates/flags/flag-mh-marshall-islands.js +2 -2
  333. package/dist/components/icon/gator/templates/flags/flag-mk-north-macedonia.js +2 -2
  334. package/dist/components/icon/gator/templates/flags/flag-ml-mali.js +2 -2
  335. package/dist/components/icon/gator/templates/flags/flag-mm-myanmar.js +2 -2
  336. package/dist/components/icon/gator/templates/flags/flag-mn-mongolia.js +2 -2
  337. package/dist/components/icon/gator/templates/flags/flag-mo-macao.js +2 -2
  338. package/dist/components/icon/gator/templates/flags/flag-mp-northern-mariana-islands.js +2 -2
  339. package/dist/components/icon/gator/templates/flags/flag-mq-martinique-2.js +2 -2
  340. package/dist/components/icon/gator/templates/flags/flag-mq-martinique.js +2 -2
  341. package/dist/components/icon/gator/templates/flags/flag-mr-mauritania.js +2 -2
  342. package/dist/components/icon/gator/templates/flags/flag-ms-montserrat.js +2 -2
  343. package/dist/components/icon/gator/templates/flags/flag-mt-malta.js +2 -2
  344. package/dist/components/icon/gator/templates/flags/flag-mu-mauritius.js +2 -2
  345. package/dist/components/icon/gator/templates/flags/flag-mv-maldives.js +2 -2
  346. package/dist/components/icon/gator/templates/flags/flag-mw-malawi.js +2 -2
  347. package/dist/components/icon/gator/templates/flags/flag-mx-mexico.js +2 -2
  348. package/dist/components/icon/gator/templates/flags/flag-my-malaysia.js +2 -2
  349. package/dist/components/icon/gator/templates/flags/flag-mz-mozambique.js +2 -2
  350. package/dist/components/icon/gator/templates/flags/flag-na-namibia.js +2 -2
  351. package/dist/components/icon/gator/templates/flags/flag-nc-new-caledonia.js +2 -2
  352. package/dist/components/icon/gator/templates/flags/flag-ne-niger.js +2 -2
  353. package/dist/components/icon/gator/templates/flags/flag-nf-norfolk-island.js +2 -2
  354. package/dist/components/icon/gator/templates/flags/flag-ng-nigeria.js +2 -2
  355. package/dist/components/icon/gator/templates/flags/flag-ni-nicaragua.js +2 -2
  356. package/dist/components/icon/gator/templates/flags/flag-nl-netherlands.js +2 -2
  357. package/dist/components/icon/gator/templates/flags/flag-no-norway.js +2 -2
  358. package/dist/components/icon/gator/templates/flags/flag-np-nepal.js +2 -2
  359. package/dist/components/icon/gator/templates/flags/flag-nr-nauru.js +2 -2
  360. package/dist/components/icon/gator/templates/flags/flag-nu-niue.js +2 -2
  361. package/dist/components/icon/gator/templates/flags/flag-nz-new-zealand-aotearoa.js +2 -2
  362. package/dist/components/icon/gator/templates/flags/flag-om-oman.js +2 -2
  363. package/dist/components/icon/gator/templates/flags/flag-pa-panama.js +2 -2
  364. package/dist/components/icon/gator/templates/flags/flag-pe-peru.js +2 -2
  365. package/dist/components/icon/gator/templates/flags/flag-pf-french-polynesia.js +2 -2
  366. package/dist/components/icon/gator/templates/flags/flag-pg-papua-new-guinea.js +2 -2
  367. package/dist/components/icon/gator/templates/flags/flag-ph-philippines.js +2 -2
  368. package/dist/components/icon/gator/templates/flags/flag-pk-pakistan.js +2 -2
  369. package/dist/components/icon/gator/templates/flags/flag-pl-poland.js +2 -2
  370. package/dist/components/icon/gator/templates/flags/flag-pm-saint-pierre-and-miquelon.js +2 -2
  371. package/dist/components/icon/gator/templates/flags/flag-pm-st-pierre-and-miquelon.js +2 -2
  372. package/dist/components/icon/gator/templates/flags/flag-pn-pitcairn-islands.js +2 -2
  373. package/dist/components/icon/gator/templates/flags/flag-pr-puerto-rico.js +2 -2
  374. package/dist/components/icon/gator/templates/flags/flag-ps-palestinian-territory.js +2 -2
  375. package/dist/components/icon/gator/templates/flags/flag-pt-portugal.js +2 -2
  376. package/dist/components/icon/gator/templates/flags/flag-pw-palau.js +2 -2
  377. package/dist/components/icon/gator/templates/flags/flag-py-paraguay.js +2 -2
  378. package/dist/components/icon/gator/templates/flags/flag-qa-qatar.js +2 -2
  379. package/dist/components/icon/gator/templates/flags/flag-re-reunion.js +2 -2
  380. package/dist/components/icon/gator/templates/flags/flag-ro-romania.js +2 -2
  381. package/dist/components/icon/gator/templates/flags/flag-rs-srbia.js +2 -2
  382. package/dist/components/icon/gator/templates/flags/flag-ru-russian-federation.js +2 -2
  383. package/dist/components/icon/gator/templates/flags/flag-rw-rwanda.js +2 -2
  384. package/dist/components/icon/gator/templates/flags/flag-sa-sudi-arabia.js +2 -2
  385. package/dist/components/icon/gator/templates/flags/flag-sb-slomon-islands.js +2 -2
  386. package/dist/components/icon/gator/templates/flags/flag-sc-sychelles.js +2 -2
  387. package/dist/components/icon/gator/templates/flags/flag-sd-sdan.js +2 -2
  388. package/dist/components/icon/gator/templates/flags/flag-se-seden.js +2 -2
  389. package/dist/components/icon/gator/templates/flags/flag-sg-sngapore.js +2 -2
  390. package/dist/components/icon/gator/templates/flags/flag-sh-sint-helena.js +2 -2
  391. package/dist/components/icon/gator/templates/flags/flag-si-sovenia.js +2 -2
  392. package/dist/components/icon/gator/templates/flags/flag-sj-salbard-and-jan-mayen.js +2 -2
  393. package/dist/components/icon/gator/templates/flags/flag-sk-sovakia.js +2 -2
  394. package/dist/components/icon/gator/templates/flags/flag-sl-serra-leone.js +2 -2
  395. package/dist/components/icon/gator/templates/flags/flag-sm-sn-marino.js +2 -2
  396. package/dist/components/icon/gator/templates/flags/flag-sn-snegal.js +2 -2
  397. package/dist/components/icon/gator/templates/flags/flag-so-smalia.js +2 -2
  398. package/dist/components/icon/gator/templates/flags/flag-sr-sriname.js +2 -2
  399. package/dist/components/icon/gator/templates/flags/flag-ss-south-sudan.js +2 -2
  400. package/dist/components/icon/gator/templates/flags/flag-st-so-tome-and-principe.js +2 -2
  401. package/dist/components/icon/gator/templates/flags/flag-sv-el-slvador.js +2 -2
  402. package/dist/components/icon/gator/templates/flags/flag-sx-snt-maarten.js +2 -2
  403. package/dist/components/icon/gator/templates/flags/flag-sy-sria.js +2 -2
  404. package/dist/components/icon/gator/templates/flags/flag-sz-saziland.js +2 -2
  405. package/dist/components/icon/gator/templates/flags/flag-tc-turks-and-caicos-islands.js +2 -2
  406. package/dist/components/icon/gator/templates/flags/flag-td-chad.js +2 -2
  407. package/dist/components/icon/gator/templates/flags/flag-tf-french-southern-and-antarctic-lands.js +2 -2
  408. package/dist/components/icon/gator/templates/flags/flag-tg-togo.js +2 -2
  409. package/dist/components/icon/gator/templates/flags/flag-th-thailand.js +2 -2
  410. package/dist/components/icon/gator/templates/flags/flag-tj-tajikistan.js +2 -2
  411. package/dist/components/icon/gator/templates/flags/flag-tk-tokelau.js +2 -2
  412. package/dist/components/icon/gator/templates/flags/flag-tl-timor-leste.js +2 -2
  413. package/dist/components/icon/gator/templates/flags/flag-tm-turkmenistan.js +2 -2
  414. package/dist/components/icon/gator/templates/flags/flag-tn-tunisia.js +2 -2
  415. package/dist/components/icon/gator/templates/flags/flag-to-tonga.js +2 -2
  416. package/dist/components/icon/gator/templates/flags/flag-tr-turkey.js +2 -2
  417. package/dist/components/icon/gator/templates/flags/flag-tt-trinidad-and-tobago.js +2 -2
  418. package/dist/components/icon/gator/templates/flags/flag-tv-tuvalu.js +2 -2
  419. package/dist/components/icon/gator/templates/flags/flag-tw-taiwan.js +2 -2
  420. package/dist/components/icon/gator/templates/flags/flag-tz-tanzania.js +2 -2
  421. package/dist/components/icon/gator/templates/flags/flag-ua-ukraine.js +2 -2
  422. package/dist/components/icon/gator/templates/flags/flag-ug-uganda.js +2 -2
  423. package/dist/components/icon/gator/templates/flags/flag-um-united-states-minor-outlying-islands.js +2 -2
  424. package/dist/components/icon/gator/templates/flags/flag-us-united-states.js +2 -2
  425. package/dist/components/icon/gator/templates/flags/flag-uy-uruguay.js +2 -2
  426. package/dist/components/icon/gator/templates/flags/flag-uz-uzbekistan.js +2 -2
  427. package/dist/components/icon/gator/templates/flags/flag-va-vatican-city-state.js +2 -2
  428. package/dist/components/icon/gator/templates/flags/flag-vc-saint-vincent-and-the-grenadines.js +2 -2
  429. package/dist/components/icon/gator/templates/flags/flag-ve-venezuela.js +2 -2
  430. package/dist/components/icon/gator/templates/flags/flag-vg-virgin-islands-british.js +2 -2
  431. package/dist/components/icon/gator/templates/flags/flag-vi-virgin-islands-us.js +2 -2
  432. package/dist/components/icon/gator/templates/flags/flag-vn-vietnam.js +2 -2
  433. package/dist/components/icon/gator/templates/flags/flag-vu-vanuatu.js +2 -2
  434. package/dist/components/icon/gator/templates/flags/flag-wf-wallis-and-futuna.js +2 -2
  435. package/dist/components/icon/gator/templates/flags/flag-ws-smoa.js +2 -2
  436. package/dist/components/icon/gator/templates/flags/flag-ye-yemen.js +2 -2
  437. package/dist/components/icon/gator/templates/flags/flag-yt-unf-mayotte.js +2 -2
  438. package/dist/components/icon/gator/templates/flags/flag-za-south-africa.js +2 -2
  439. package/dist/components/icon/gator/templates/flags/flag-zm-zambia.js +2 -2
  440. package/dist/components/icon/gator/templates/flags/flag-zw-zimbabwe.js +2 -2
  441. package/dist/components/icon/gator/templates/flame.js +2 -2
  442. package/dist/components/icon/gator/templates/flash-off.js +2 -2
  443. package/dist/components/icon/gator/templates/flash-on.js +2 -2
  444. package/dist/components/icon/gator/templates/folder.js +2 -2
  445. package/dist/components/icon/gator/templates/gauge.js +2 -2
  446. package/dist/components/icon/gator/templates/hammer.js +2 -2
  447. package/dist/components/icon/gator/templates/hand-pointing.js +2 -2
  448. package/dist/components/icon/gator/templates/heart.js +2 -2
  449. package/dist/components/icon/gator/templates/home-door.js +2 -2
  450. package/dist/components/icon/gator/templates/home-finance-arrow.js +2 -2
  451. package/dist/components/icon/gator/templates/home-finance.js +2 -2
  452. package/dist/components/icon/gator/templates/home-search.js +2 -2
  453. package/dist/components/icon/gator/templates/house-simple.js +2 -2
  454. package/dist/components/icon/gator/templates/house.js +2 -2
  455. package/dist/components/icon/gator/templates/inbox.js +2 -2
  456. package/dist/components/icon/gator/templates/index.js +1 -1
  457. package/dist/components/icon/gator/templates/info.js +2 -2
  458. package/dist/components/icon/gator/templates/instagram-logo.js +2 -2
  459. package/dist/components/icon/gator/templates/interest-rate.js +2 -2
  460. package/dist/components/icon/gator/templates/invoice.js +2 -2
  461. package/dist/components/icon/gator/templates/label.js +2 -2
  462. package/dist/components/icon/gator/templates/laptop.js +2 -2
  463. package/dist/components/icon/gator/templates/layout.js +2 -2
  464. package/dist/components/icon/gator/templates/lightbulb.js +2 -2
  465. package/dist/components/icon/gator/templates/link.js +2 -2
  466. package/dist/components/icon/gator/templates/linkedin-logo.js +2 -2
  467. package/dist/components/icon/gator/templates/list.js +2 -2
  468. package/dist/components/icon/gator/templates/loading-spinner-gif.js +2 -2
  469. package/dist/components/icon/gator/templates/loading.js +2 -2
  470. package/dist/components/icon/gator/templates/lock.js +2 -2
  471. package/dist/components/icon/gator/templates/magic-wand.js +2 -2
  472. package/dist/components/icon/gator/templates/mail-open.js +2 -2
  473. package/dist/components/icon/gator/templates/mail.js +2 -2
  474. package/dist/components/icon/gator/templates/mailbox.js +2 -2
  475. package/dist/components/icon/gator/templates/map.js +2 -2
  476. package/dist/components/icon/gator/templates/menu-hamburger.js +2 -2
  477. package/dist/components/icon/gator/templates/microsoft-excel-logo.js +2 -2
  478. package/dist/components/icon/gator/templates/microsoft-outlook-logo.js +2 -2
  479. package/dist/components/icon/gator/templates/microsoft-powerpoint-logo.js +2 -2
  480. package/dist/components/icon/gator/templates/microsoft-teams-logo.js +2 -2
  481. package/dist/components/icon/gator/templates/microsoft-word-logo.js +2 -2
  482. package/dist/components/icon/gator/templates/minus-circle.js +2 -2
  483. package/dist/components/icon/gator/templates/minus-square.js +2 -2
  484. package/dist/components/icon/gator/templates/minus.js +2 -2
  485. package/dist/components/icon/gator/templates/mobile-phone-2.js +2 -2
  486. package/dist/components/icon/gator/templates/monitor.js +2 -2
  487. package/dist/components/icon/gator/templates/move-doc.js +2 -2
  488. package/dist/components/icon/gator/templates/move.js +2 -2
  489. package/dist/components/icon/gator/templates/music.js +2 -2
  490. package/dist/components/icon/gator/templates/number-1.js +2 -2
  491. package/dist/components/icon/gator/templates/number-2.js +2 -2
  492. package/dist/components/icon/gator/templates/number-3.js +2 -2
  493. package/dist/components/icon/gator/templates/overflow-menu.js +2 -2
  494. package/dist/components/icon/gator/templates/paper-airplane.js +2 -2
  495. package/dist/components/icon/gator/templates/paperclip.js +2 -2
  496. package/dist/components/icon/gator/templates/payments/payment-amazon-pay.js +2 -2
  497. package/dist/components/icon/gator/templates/payments/payment-amex.js +2 -2
  498. package/dist/components/icon/gator/templates/payments/payment-apple-pay.js +2 -2
  499. package/dist/components/icon/gator/templates/payments/payment-discover.js +2 -2
  500. package/dist/components/icon/gator/templates/payments/payment-google-pay.js +2 -2
  501. package/dist/components/icon/gator/templates/payments/payment-mastercard.js +2 -2
  502. package/dist/components/icon/gator/templates/payments/payment-visa.js +2 -2
  503. package/dist/components/icon/gator/templates/pen.js +2 -2
  504. package/dist/components/icon/gator/templates/pencil-paper.js +2 -2
  505. package/dist/components/icon/gator/templates/pencil.js +2 -2
  506. package/dist/components/icon/gator/templates/people-multiple.js +2 -2
  507. package/dist/components/icon/gator/templates/people-share.js +2 -2
  508. package/dist/components/icon/gator/templates/percent.js +2 -2
  509. package/dist/components/icon/gator/templates/person-add.js +2 -2
  510. package/dist/components/icon/gator/templates/person-check.js +2 -2
  511. package/dist/components/icon/gator/templates/person-lock.js +2 -2
  512. package/dist/components/icon/gator/templates/person.js +2 -2
  513. package/dist/components/icon/gator/templates/phone-alert.js +2 -2
  514. package/dist/components/icon/gator/templates/phone-mobile.js +2 -2
  515. package/dist/components/icon/gator/templates/phone.js +2 -2
  516. package/dist/components/icon/gator/templates/picture.js +2 -2
  517. package/dist/components/icon/gator/templates/pin.js +2 -2
  518. package/dist/components/icon/gator/templates/pinterest-logo.js +2 -2
  519. package/dist/components/icon/gator/templates/plus-circle.js +2 -2
  520. package/dist/components/icon/gator/templates/plus.js +2 -2
  521. package/dist/components/icon/gator/templates/printer.js +2 -2
  522. package/dist/components/icon/gator/templates/question-chat-bubble.js +2 -2
  523. package/dist/components/icon/gator/templates/question-circle.js +2 -2
  524. package/dist/components/icon/gator/templates/question-mark.js +2 -2
  525. package/dist/components/icon/gator/templates/radio-selected.js +2 -2
  526. package/dist/components/icon/gator/templates/radio.js +2 -2
  527. package/dist/components/icon/gator/templates/receipt.js +2 -2
  528. package/dist/components/icon/gator/templates/restricted.js +2 -2
  529. package/dist/components/icon/gator/templates/sandals.js +2 -2
  530. package/dist/components/icon/gator/templates/save.js +2 -2
  531. package/dist/components/icon/gator/templates/screen.js +2 -2
  532. package/dist/components/icon/gator/templates/search.js +2 -2
  533. package/dist/components/icon/gator/templates/settings.js +2 -2
  534. package/dist/components/icon/gator/templates/share-1.js +2 -2
  535. package/dist/components/icon/gator/templates/share-2.js +2 -2
  536. package/dist/components/icon/gator/templates/shield-lock.js +2 -2
  537. package/dist/components/icon/gator/templates/shield-warning.js +2 -2
  538. package/dist/components/icon/gator/templates/sidebar-simple.js +2 -2
  539. package/dist/components/icon/gator/templates/sidebar.js +2 -2
  540. package/dist/components/icon/gator/templates/smart-home.js +2 -2
  541. package/dist/components/icon/gator/templates/sort-arrow-solid-down.js +2 -2
  542. package/dist/components/icon/gator/templates/sort-arrow-solid-left.js +2 -2
  543. package/dist/components/icon/gator/templates/sort-arrow-solid-right.js +2 -2
  544. package/dist/components/icon/gator/templates/sort-arrow-solid-up-down.js +2 -2
  545. package/dist/components/icon/gator/templates/sort-arrow-solid-up.js +2 -2
  546. package/dist/components/icon/gator/templates/sort-reverse-variant.js +2 -2
  547. package/dist/components/icon/gator/templates/sort-variant.js +2 -2
  548. package/dist/components/icon/gator/templates/sparkle-filled.js +2 -2
  549. package/dist/components/icon/gator/templates/sparkle.js +2 -2
  550. package/dist/components/icon/gator/templates/speech-bubble.js +2 -2
  551. package/dist/components/icon/gator/templates/stack.js +2 -2
  552. package/dist/components/icon/gator/templates/stamp.js +2 -2
  553. package/dist/components/icon/gator/templates/star-four-filled.js +2 -2
  554. package/dist/components/icon/gator/templates/star-four.js +2 -2
  555. package/dist/components/icon/gator/templates/star.js +2 -2
  556. package/dist/components/icon/gator/templates/stopwatch.js +2 -2
  557. package/dist/components/icon/gator/templates/sun.js +2 -2
  558. package/dist/components/icon/gator/templates/sync.js +2 -2
  559. package/dist/components/icon/gator/templates/tab-arrows.js +2 -2
  560. package/dist/components/icon/gator/templates/target.js +2 -2
  561. package/dist/components/icon/gator/templates/thumbs-down.js +2 -2
  562. package/dist/components/icon/gator/templates/thumbs-up.js +2 -2
  563. package/dist/components/icon/gator/templates/tools.js +2 -2
  564. package/dist/components/icon/gator/templates/touch-id.js +2 -2
  565. package/dist/components/icon/gator/templates/trash.js +2 -2
  566. package/dist/components/icon/gator/templates/twitter-logo.js +2 -2
  567. package/dist/components/icon/gator/templates/unlink.js +2 -2
  568. package/dist/components/icon/gator/templates/unlock.js +2 -2
  569. package/dist/components/icon/gator/templates/upload.js +2 -2
  570. package/dist/components/icon/gator/templates/video.js +2 -2
  571. package/dist/components/icon/gator/templates/warning-circle.js +2 -2
  572. package/dist/components/icon/gator/templates/warning-diamond.js +2 -2
  573. package/dist/components/icon/gator/templates/warning-octagon.js +2 -2
  574. package/dist/components/icon/gator/templates/warning.js +2 -2
  575. package/dist/components/icon/gator/templates/wet-sign.js +2 -2
  576. package/dist/components/icon/gator/templates/wifi-off.js +2 -2
  577. package/dist/components/icon/gator/templates/wifi.js +2 -2
  578. package/dist/components/icon/gator/templates/x-logo.js +2 -2
  579. package/dist/components/icon/gator/templates/yelp-logo.js +2 -2
  580. package/dist/components/icon/gator/templates/youtube-logo.js +2 -2
  581. package/dist/components/icon/gator/templates/zillow-logo.js +2 -2
  582. package/dist/components/icon/icon-registry.js +1 -1
  583. package/dist/components/icon/icon.js +1 -1
  584. package/dist/components/icon/index.js +1 -1
  585. package/dist/components/icon/slds/icon.slds.js +2 -2
  586. package/dist/components/icon-button/gator/icon-button.gator.js +4 -4
  587. package/dist/components/icon-button/icon-button.js +1 -1
  588. package/dist/components/icon-button/index.js +1 -1
  589. package/dist/components/illustration/gator/illustration.gator.js +1 -1
  590. package/dist/components/illustration/gator/index.js +1 -1
  591. package/dist/components/illustration/gator/templates/balloons.js +2 -2
  592. package/dist/components/illustration/gator/templates/check-with-pencil.js +2 -2
  593. package/dist/components/illustration/gator/templates/commercial.js +2 -2
  594. package/dist/components/illustration/gator/templates/consumer.js +2 -2
  595. package/dist/components/illustration/gator/templates/index.js +1 -1
  596. package/dist/components/illustration/gator/templates/mortgage.js +2 -2
  597. package/dist/components/illustration/gator/templates/portfolio-analytics.js +2 -2
  598. package/dist/components/illustration/gator/templates/small-business.js +2 -2
  599. package/dist/components/illustration/gator/templates/treasury.js +2 -2
  600. package/dist/components/illustration/gator/templates/your-bank-placeholder.js +2 -2
  601. package/dist/components/illustration/gator/templates/your-bank.js +2 -2
  602. package/dist/components/illustration/illustration-registry.js +1 -1
  603. package/dist/components/illustration/index.js +1 -1
  604. package/dist/components/input/base/input-base.gator.js +2 -2
  605. package/dist/components/input/base/input-base.js +1 -1
  606. package/dist/components/input/gator/dropdown/input-dropdown.gator.js +3 -3
  607. package/dist/components/input/gator/help-text/help-text.gator.js +2 -2
  608. package/dist/components/input/gator/input-currency/input-currency.gator.js +2 -2
  609. package/dist/components/input/gator/input-date/input-date.gator.js +5 -5
  610. package/dist/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js +2 -2
  611. package/dist/components/input/gator/input-file/input-file.gator.js +12 -33
  612. package/dist/components/input/gator/input-label/input-label.gator.js +5 -5
  613. package/dist/components/input/gator/input-masked/input-masked.gator.js +1 -1
  614. package/dist/components/input/gator/input-percent/input-percent.gator.js +1 -1
  615. package/dist/components/input/gator/input-phone/input-phone.gator.js +5 -10
  616. package/dist/components/input/gator/input-search/input-search.gator.js +7 -7
  617. package/dist/components/input/gator/input-text/input-text.gator.js +16 -20
  618. package/dist/components/input/gator/input-textarea/input-textarea.gator.js +4 -4
  619. package/dist/components/input/index.gator.js +1 -1
  620. package/dist/components/input/index.js +1 -1
  621. package/dist/components/input/index.slds.js +1 -1
  622. package/dist/components/input/slds/input-error/input-error.slds.js +3 -3
  623. package/dist/components/input/slds/input-label/input-label.slds.js +4 -4
  624. package/dist/components/input/slds/input-text/input-text.slds.js +4 -4
  625. package/dist/components/input-rich-text/ckeditor-config.js +1 -536
  626. package/dist/components/input-rich-text/index.js +1 -1
  627. package/dist/components/input-rich-text/input-rich-text.js +1 -1
  628. package/dist/components/input-rich-text/input-rich-text.slds.js +4 -6
  629. package/dist/components/list/gator/list/index.js +1 -1
  630. package/dist/components/list/gator/list/list.gator.js +3 -3
  631. package/dist/components/list/gator/list-item/index.js +1 -1
  632. package/dist/components/list/gator/list-item/list-item.gator.js +9 -8
  633. package/dist/components/list/index.js +1 -1
  634. package/dist/components/loading-spinner/gator/loading-spinner.gator.js +2 -2
  635. package/dist/components/loading-spinner/index.js +1 -1
  636. package/dist/components/loading-spinner/loading-spinner.js +1 -1
  637. package/dist/components/menu/base/gator/menu.gator.js +2 -2
  638. package/dist/components/menu/base/index.js +1 -1
  639. package/dist/components/menu/base/menu.js +1 -1
  640. package/dist/components/menu/base/slds/menu.slds.js +2 -2
  641. package/dist/components/menu/index.js +1 -1
  642. package/dist/components/menu/menu-divider/index.js +1 -1
  643. package/dist/components/menu/menu-divider/menu-divider.js +1 -1
  644. package/dist/components/menu/menu-divider/menu-divider.slds.js +2 -2
  645. package/dist/components/menu/menu-item/gator/menu-item.gator.js +2 -2
  646. package/dist/components/menu/menu-item/index.js +1 -1
  647. package/dist/components/menu/menu-item/menu-item.js +1 -1
  648. package/dist/components/menu/menu-item/slds/menu-item.slds.js +2 -2
  649. package/dist/components/menu/menu-submenu/index.js +1 -1
  650. package/dist/components/menu/menu-submenu/menu-submenu.js +1 -1
  651. package/dist/components/menu/menu-submenu/menu-submenu.slds.js +2 -2
  652. package/dist/components/modal/gator/modal.gator.js +10 -10
  653. package/dist/components/modal/index.js +1 -1
  654. package/dist/components/modal/modal.js +1 -1
  655. package/dist/components/page-header/gator/page-header.gator.js +2 -2
  656. package/dist/components/page-header/index.js +1 -1
  657. package/dist/components/panel/gator/panel.gator.js +14 -14
  658. package/dist/components/panel/gator/panel.storybook-test.js +1 -457
  659. package/dist/components/panel/index.js +1 -1
  660. package/dist/components/pill/index.js +1 -1
  661. package/dist/components/pill/pill.js +1 -1
  662. package/dist/components/pill/pill.slds.js +3 -3
  663. package/dist/components/progress-bar/gator/progress-bar.gator.js +4 -4
  664. package/dist/components/progress-bar/index.js +1 -1
  665. package/dist/components/radio/index.js +1 -1
  666. package/dist/components/radio/radio.gator.js +3 -3
  667. package/dist/components/radio-group/index.js +1 -1
  668. package/dist/components/radio-group/radio-group.gator.js +5 -5
  669. package/dist/components/scoped-notification/index.js +1 -1
  670. package/dist/components/scoped-notification/scoped-notification.js +1 -1
  671. package/dist/components/scoped-notification/scoped-notification.slds.js +2 -2
  672. package/dist/components/selection-box/index.js +1 -1
  673. package/dist/components/selection-box/selection-box.gator.js +9 -9
  674. package/dist/components/selection-box-group/index.js +1 -1
  675. package/dist/components/selection-box-group/selection-box-group.gator.js +9 -9
  676. package/dist/components/selector/gator/selector.gator.js +2 -2
  677. package/dist/components/skeleton-loader/gator/skeleton-loader.gator.js +1 -1
  678. package/dist/components/skeleton-loader/index.js +1 -1
  679. package/dist/components/switch/gator/switch.gator.js +2 -2
  680. package/dist/components/switch/index.js +1 -1
  681. package/dist/components/switch/switch.js +1 -1
  682. package/dist/components/table/gator/table.gator.js +16 -16
  683. package/dist/components/table/index.js +1 -1
  684. package/dist/components/table/table.js +1 -1
  685. package/dist/components/tabs/gator/tab/tab.gator.js +2 -2
  686. package/dist/components/tabs/gator/tabset/tabset.gator.js +7 -7
  687. package/dist/components/tabs/index.gator.js +1 -1
  688. package/dist/components/tabs/index.js +1 -1
  689. package/dist/components/text-detail/gator/text-detail.gator.js +32 -1
  690. package/dist/components/text-detail/index.js +1 -1
  691. package/dist/components/text-detail/text-detail.js +1 -1
  692. package/dist/components/text-link/gator/text-link.gator.js +2 -2
  693. package/dist/components/text-link/index.js +1 -1
  694. package/dist/components/text-link/text-link.js +1 -1
  695. package/dist/components/toast/gator/base/toast.gator.js +5 -5
  696. package/dist/components/toast/gator/subtitle/toast-subtitle.gator.js +2 -2
  697. package/dist/components/toast/gator/title/toast-title.gator.js +2 -2
  698. package/dist/components/toast/index.js +1 -1
  699. package/dist/components/toast/toast.js +1 -1
  700. package/dist/components/tooltip/gator/tooltip.gator.js +3 -3
  701. package/dist/components/tooltip/index.js +1 -1
  702. package/dist/components/tooltip/slds/tooltip.slds.js +3 -3
  703. package/dist/components/tooltip/tooltip.js +1 -1
  704. package/dist/consts/key-constants.js +1 -1
  705. package/dist/index.data.js +1 -1
  706. package/dist/index.gator.js +1 -1
  707. package/dist/index.js +1 -1
  708. package/dist/index.slds.js +1 -1
  709. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-alignment@44.3.0/node_modules/@ckeditor/ckeditor5-alignment/dist/index.js +4 -0
  710. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-autoformat@44.3.0/node_modules/@ckeditor/ckeditor5-autoformat/dist/index.js +7 -0
  711. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-autosave@44.3.0/node_modules/@ckeditor/ckeditor5-autosave/dist/index.js +4 -0
  712. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-basic-styles@44.3.0/node_modules/@ckeditor/ckeditor5-basic-styles/dist/index.js +4 -0
  713. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-block-quote@44.3.0/node_modules/@ckeditor/ckeditor5-block-quote/dist/index.js +4 -0
  714. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-clipboard@44.3.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js +20 -0
  715. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-cloud-services@44.3.0/node_modules/@ckeditor/ckeditor5-cloud-services/dist/index.js +4 -0
  716. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-code-block@44.3.0/node_modules/@ckeditor/ckeditor5-code-block/dist/index.js +7 -0
  717. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js +6 -0
  718. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-editor-classic@44.3.0/node_modules/@ckeditor/ckeditor5-editor-classic/dist/index.js +4 -0
  719. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-engine@44.3.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js +30 -0
  720. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-enter@44.3.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js +7 -0
  721. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-essentials@44.3.0/node_modules/@ckeditor/ckeditor5-essentials/dist/index.js +4 -0
  722. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-find-and-replace@44.3.0/node_modules/@ckeditor/ckeditor5-find-and-replace/dist/index.js +5 -0
  723. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-font@44.3.0/node_modules/@ckeditor/ckeditor5-font/dist/index.js +7 -0
  724. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-heading@44.3.0/node_modules/@ckeditor/ckeditor5-heading/dist/index.js +7 -0
  725. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-highlight@44.3.0/node_modules/@ckeditor/ckeditor5-highlight/dist/index.js +4 -0
  726. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-horizontal-line@44.3.0/node_modules/@ckeditor/ckeditor5-horizontal-line/dist/index.js +4 -0
  727. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-embed@44.3.0/node_modules/@ckeditor/ckeditor5-html-embed/dist/index.js +4 -0
  728. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-html-support@44.3.0/node_modules/@ckeditor/ckeditor5-html-support/dist/index.js +12 -0
  729. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-image@44.3.0/node_modules/@ckeditor/ckeditor5-image/dist/index.js +10 -0
  730. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-indent@44.3.0/node_modules/@ckeditor/ckeditor5-indent/dist/index.js +10 -0
  731. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-language@44.3.0/node_modules/@ckeditor/ckeditor5-language/dist/index.js +4 -0
  732. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-link@44.3.0/node_modules/@ckeditor/ckeditor5-link/dist/index.js +4 -0
  733. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-list@44.3.0/node_modules/@ckeditor/ckeditor5-list/dist/index.js +13 -0
  734. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-markdown-gfm@44.3.0/node_modules/@ckeditor/ckeditor5-markdown-gfm/dist/index.js +6 -0
  735. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-media-embed@44.3.0/node_modules/@ckeditor/ckeditor5-media-embed/dist/index.js +7 -0
  736. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-mention@44.3.0/node_modules/@ckeditor/ckeditor5-mention/dist/index.js +4 -0
  737. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-page-break@44.3.0/node_modules/@ckeditor/ckeditor5-page-break/dist/index.js +4 -0
  738. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paragraph@44.3.0/node_modules/@ckeditor/ckeditor5-paragraph/dist/index.js +4 -0
  739. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-paste-from-office@44.3.0/node_modules/@ckeditor/ckeditor5-paste-from-office/dist/index.js +28 -0
  740. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-remove-format@44.3.0/node_modules/@ckeditor/ckeditor5-remove-format/dist/index.js +4 -0
  741. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-select-all@44.3.0/node_modules/@ckeditor/ckeditor5-select-all/dist/index.js +4 -0
  742. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-show-blocks@44.3.0/node_modules/@ckeditor/ckeditor5-show-blocks/dist/index.js +4 -0
  743. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-source-editing@44.3.0/node_modules/@ckeditor/ckeditor5-source-editing/dist/index.js +12 -0
  744. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-special-characters@44.3.0/node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js +4 -0
  745. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-style@44.3.0/node_modules/@ckeditor/ckeditor5-style/dist/index.js +4 -0
  746. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-table@44.3.0/node_modules/@ckeditor/ckeditor5-table/dist/index.js +19 -0
  747. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-typing@44.3.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js +13 -0
  748. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js +29 -0
  749. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-undo@44.3.0/node_modules/@ckeditor/ckeditor5-undo/dist/index.js +4 -0
  750. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-upload@44.3.0/node_modules/@ckeditor/ckeditor5-upload/dist/index.js +4 -0
  751. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js +104 -0
  752. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-watchdog@44.3.0/node_modules/@ckeditor/ckeditor5-watchdog/dist/index.js +10 -0
  753. package/dist/node_modules/.pnpm/@ckeditor_ckeditor5-widget@44.3.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js +4 -0
  754. package/dist/node_modules/.pnpm/@deltablot_dropzone@7.3.0/node_modules/@deltablot/dropzone/dist/dropzone.js +22 -0
  755. package/dist/node_modules/.pnpm/@floating-ui_core@1.6.8/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -0
  756. package/dist/node_modules/.pnpm/@floating-ui_dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -0
  757. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +1 -0
  758. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -0
  759. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +1 -0
  760. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js +1 -0
  761. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js +5 -0
  762. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/default-msg.js +5 -0
  763. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/deferred.js +5 -0
  764. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/fnv1a64.js +5 -0
  765. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/locale-status-event.js +5 -0
  766. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-controller.js +5 -0
  767. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js +5 -0
  768. package/dist/node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/str-tag.js +5 -0
  769. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/css-tag.js +5 -0
  770. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/custom-element.js +5 -0
  771. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/property.js +5 -0
  772. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/decorators/state.js +5 -0
  773. package/dist/node_modules/.pnpm/@lit_reactive-element@2.0.4/node_modules/@lit/reactive-element/reactive-element.js +5 -0
  774. package/dist/node_modules/.pnpm/@storybook_core@8.6.11_prettier@3.4.2_storybook@8.6.11_prettier@3.4.2_/node_modules/@storybook/core/dist/channels/index.js +20 -0
  775. package/dist/node_modules/.pnpm/@storybook_core@8.6.11_prettier@3.4.2_storybook@8.6.11_prettier@3.4.2_/node_modules/@storybook/core/dist/client-logger/index.js +1 -0
  776. package/dist/node_modules/.pnpm/@storybook_core@8.6.11_prettier@3.4.2_storybook@8.6.11_prettier@3.4.2_/node_modules/@storybook/core/dist/core-events/index.js +1 -0
  777. package/dist/node_modules/.pnpm/@storybook_core@8.6.11_prettier@3.4.2_storybook@8.6.11_prettier@3.4.2_/node_modules/@storybook/core/dist/csf/index.js +1 -0
  778. package/dist/node_modules/.pnpm/@storybook_core@8.6.11_prettier@3.4.2_storybook@8.6.11_prettier@3.4.2_/node_modules/@storybook/core/dist/preview-api/index.js +70 -0
  779. package/dist/node_modules/.pnpm/@storybook_core@8.6.11_prettier@3.4.2_storybook@8.6.11_prettier@3.4.2_/node_modules/@storybook/core/dist/preview-errors.js +130 -0
  780. package/dist/node_modules/.pnpm/@storybook_global@5.0.0/node_modules/@storybook/global/dist/index.js +1 -0
  781. package/dist/node_modules/.pnpm/@storybook_instrumenter@8.6.11_storybook@8.6.11_prettier@3.4.2_/node_modules/@storybook/instrumenter/dist/index.js +48 -0
  782. package/dist/node_modules/.pnpm/@storybook_test@8.6.11_storybook@8.6.11_prettier@3.4.2_/node_modules/@storybook/test/dist/index.js +193 -0
  783. package/dist/node_modules/.pnpm/@vitest_browser@3.1.1_msw@2.7.3_@types_node@22.13.10_typescript@5.8.2__playwright@1.51._0e899a6916392729669044314556a008/node_modules/@vitest/browser/context.js +1 -0
  784. package/dist/node_modules/.pnpm/@vitest_expect@3.1.1/node_modules/@vitest/expect/dist/index.js +58 -0
  785. package/dist/node_modules/.pnpm/@vitest_pretty-format@3.1.1/node_modules/@vitest/pretty-format/dist/index.js +21 -0
  786. package/dist/node_modules/.pnpm/@vitest_runner@3.1.1/node_modules/@vitest/runner/dist/chunk-tasks.js +1 -0
  787. package/dist/node_modules/.pnpm/@vitest_runner@3.1.1/node_modules/@vitest/runner/dist/index.js +4 -0
  788. package/dist/node_modules/.pnpm/@vitest_snapshot@3.1.1/node_modules/@vitest/snapshot/dist/index.js +27 -0
  789. package/dist/node_modules/.pnpm/@vitest_spy@3.1.1/node_modules/@vitest/spy/dist/index.js +1 -0
  790. package/dist/node_modules/.pnpm/@vitest_utils@3.1.1/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +1 -0
  791. package/dist/node_modules/.pnpm/@vitest_utils@3.1.1/node_modules/@vitest/utils/dist/diff.js +42 -0
  792. package/dist/node_modules/.pnpm/@vitest_utils@3.1.1/node_modules/@vitest/utils/dist/error.js +2 -0
  793. package/dist/node_modules/.pnpm/@vitest_utils@3.1.1/node_modules/@vitest/utils/dist/helpers.js +1 -0
  794. package/dist/node_modules/.pnpm/@vitest_utils@3.1.1/node_modules/@vitest/utils/dist/index.js +1 -0
  795. package/dist/node_modules/.pnpm/@vitest_utils@3.1.1/node_modules/@vitest/utils/dist/source-map.js +1 -0
  796. package/dist/node_modules/.pnpm/axe-core@4.10.3/node_modules/axe-core/axe.js +30 -0
  797. package/dist/node_modules/.pnpm/chai@5.2.0/node_modules/chai/chai.js +218 -0
  798. package/dist/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js +1 -0
  799. package/dist/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js +1 -0
  800. package/dist/node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js +1 -0
  801. package/dist/node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js +1 -0
  802. package/dist/node_modules/.pnpm/color-parse@1.4.2/node_modules/color-parse/index.js +1 -0
  803. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/ParseError.js +1 -0
  804. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/PhoneNumber.js +1 -0
  805. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/constants.js +1 -0
  806. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/format.js +2 -0
  807. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +1 -0
  808. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +1 -0
  809. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +1 -0
  810. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +1 -0
  811. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +1 -0
  812. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +1 -0
  813. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +1 -0
  814. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +1 -0
  815. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +1 -0
  816. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +1 -0
  817. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +1 -0
  818. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +1 -0
  819. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +1 -0
  820. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +2 -0
  821. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +1 -0
  822. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +2 -0
  823. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +1 -0
  824. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/isObject.js +1 -0
  825. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +1 -0
  826. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +1 -0
  827. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +1 -0
  828. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +1 -0
  829. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/isPossible.js +1 -0
  830. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/isValid.js +1 -0
  831. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/metadata.js +1 -0
  832. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/normalizeArguments.js +2 -0
  833. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/parse.js +1 -0
  834. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +2 -0
  835. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +1 -0
  836. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +1 -0
  837. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +1 -0
  838. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/es6/tools/semver-compare.js +1 -0
  839. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/metadata.min.json.js +1 -0
  840. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +1 -0
  841. package/dist/node_modules/.pnpm/libphonenumber-js@1.12.6/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +1 -0
  842. package/dist/node_modules/.pnpm/lit-element@4.1.1/node_modules/lit-element/lit-element.js +5 -0
  843. package/dist/node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/async-directive.js +5 -0
  844. package/dist/node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directive-helpers.js +5 -0
  845. package/dist/node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directive.js +5 -0
  846. package/dist/node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/if-defined.js +5 -0
  847. package/dist/node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/live.js +5 -0
  848. package/dist/node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/ref.js +5 -0
  849. package/dist/node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/directives/unsafe-html.js +5 -0
  850. package/dist/node_modules/.pnpm/lit-html@3.2.1/node_modules/lit-html/lit-html.js +7 -0
  851. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js +1 -0
  852. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.js +1 -0
  853. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.js +1 -0
  854. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.js +1 -0
  855. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.js +1 -0
  856. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.js +1 -0
  857. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.js +1 -0
  858. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.js +1 -0
  859. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.js +1 -0
  860. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +1 -0
  861. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.js +1 -0
  862. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.js +1 -0
  863. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.js +1 -0
  864. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.js +1 -0
  865. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.js +1 -0
  866. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.js +1 -0
  867. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.js +1 -0
  868. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.js +1 -0
  869. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js +1 -0
  870. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.js +1 -0
  871. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiToArray.js +1 -0
  872. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiWords.js +1 -0
  873. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.js +1 -0
  874. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js +1 -0
  875. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.js +1 -0
  876. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.js +1 -0
  877. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignIn.js +1 -0
  878. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.js +1 -0
  879. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.js +1 -0
  880. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.js +1 -0
  881. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.js +1 -0
  882. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js +1 -0
  883. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.js +1 -0
  884. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.js +1 -0
  885. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.js +1 -0
  886. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +1 -0
  887. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.js +1 -0
  888. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.js +1 -0
  889. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.js +1 -0
  890. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.js +1 -0
  891. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.js +1 -0
  892. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.js +1 -0
  893. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.js +1 -0
  894. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.js +1 -0
  895. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.js +1 -0
  896. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.js +1 -0
  897. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.js +1 -0
  898. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js +1 -0
  899. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMap.js +1 -0
  900. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.js +1 -0
  901. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.js +1 -0
  902. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.js +1 -0
  903. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.js +1 -0
  904. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.js +1 -0
  905. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.js +1 -0
  906. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js +1 -0
  907. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.js +1 -0
  908. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.js +1 -0
  909. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.js +1 -0
  910. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSlice.js +1 -0
  911. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.js +1 -0
  912. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.js +1 -0
  913. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +1 -0
  914. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.js +1 -0
  915. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnset.js +1 -0
  916. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.js +1 -0
  917. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.js +1 -0
  918. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castSlice.js +1 -0
  919. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.js +1 -0
  920. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js +1 -0
  921. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.js +1 -0
  922. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.js +1 -0
  923. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.js +1 -0
  924. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js +1 -0
  925. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.js +1 -0
  926. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.js +1 -0
  927. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.js +1 -0
  928. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbolsIn.js +1 -0
  929. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.js +1 -0
  930. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.js +1 -0
  931. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.js +1 -0
  932. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js +1 -0
  933. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCaseFirst.js +1 -0
  934. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCompounder.js +1 -0
  935. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js +1 -0
  936. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.js +1 -0
  937. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.js +1 -0
  938. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.js +1 -0
  939. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.js +1 -0
  940. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +1 -0
  941. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.js +1 -0
  942. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.js +1 -0
  943. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.js +1 -0
  944. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.js +1 -0
  945. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.js +1 -0
  946. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js +1 -0
  947. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +1 -0
  948. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.js +1 -0
  949. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js +1 -0
  950. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.js +1 -0
  951. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.js +1 -0
  952. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.js +1 -0
  953. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicode.js +1 -0
  954. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicodeWord.js +1 -0
  955. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.js +1 -0
  956. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.js +1 -0
  957. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.js +1 -0
  958. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.js +1 -0
  959. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.js +1 -0
  960. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.js +1 -0
  961. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.js +1 -0
  962. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.js +1 -0
  963. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.js +1 -0
  964. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.js +1 -0
  965. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.js +1 -0
  966. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.js +1 -0
  967. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.js +1 -0
  968. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.js +1 -0
  969. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.js +1 -0
  970. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.js +1 -0
  971. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.js +1 -0
  972. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.js +1 -0
  973. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.js +1 -0
  974. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.js +1 -0
  975. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.js +1 -0
  976. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.js +1 -0
  977. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.js +1 -0
  978. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.js +1 -0
  979. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.js +1 -0
  980. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.js +1 -0
  981. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.js +1 -0
  982. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.js +1 -0
  983. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.js +1 -0
  984. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js +1 -0
  985. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js +1 -0
  986. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.js +1 -0
  987. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +1 -0
  988. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js +1 -0
  989. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.js +1 -0
  990. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_parent.js +1 -0
  991. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +1 -0
  992. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.js +1 -0
  993. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.js +1 -0
  994. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.js +1 -0
  995. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.js +1 -0
  996. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.js +1 -0
  997. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.js +1 -0
  998. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.js +1 -0
  999. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.js +1 -0
  1000. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.js +1 -0
  1001. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.js +1 -0
  1002. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.js +1 -0
  1003. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToArray.js +1 -0
  1004. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.js +1 -0
  1005. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.js +1 -0
  1006. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.js +1 -0
  1007. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +1 -0
  1008. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeToArray.js +1 -0
  1009. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeWords.js +1 -0
  1010. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/assignIn.js +1 -0
  1011. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/clone.js +1 -0
  1012. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeep.js +1 -0
  1013. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeepWith.js +1 -0
  1014. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.js +1 -0
  1015. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +1 -0
  1016. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/deburr.js +1 -0
  1017. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.js +1 -0
  1018. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/escapeRegExp.js +1 -0
  1019. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.js +1 -0
  1020. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.js +1 -0
  1021. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.js +1 -0
  1022. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.js +1 -0
  1023. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js +1 -0
  1024. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.js +1 -0
  1025. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.js +1 -0
  1026. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.js +1 -0
  1027. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isElement.js +1 -0
  1028. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqual.js +1 -0
  1029. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEqualWith.js +1 -0
  1030. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.js +1 -0
  1031. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.js +1 -0
  1032. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.js +1 -0
  1033. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +1 -0
  1034. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +1 -0
  1035. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.js +1 -0
  1036. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.js +1 -0
  1037. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js +1 -0
  1038. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +1 -0
  1039. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.js +1 -0
  1040. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.js +1 -0
  1041. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js +1 -0
  1042. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/last.js +1 -0
  1043. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.js +1 -0
  1044. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mapValues.js +1 -0
  1045. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.js +1 -0
  1046. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.js +1 -0
  1047. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mergeWith.js +1 -0
  1048. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +1 -0
  1049. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.js +1 -0
  1050. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/set.js +1 -0
  1051. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/startCase.js +1 -0
  1052. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.js +1 -0
  1053. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.js +1 -0
  1054. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/throttle.js +1 -0
  1055. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +1 -0
  1056. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.js +1 -0
  1057. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.js +1 -0
  1058. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/unset.js +1 -0
  1059. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/upperFirst.js +1 -0
  1060. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/words.js +1 -0
  1061. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/arguments.js +1 -0
  1062. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/array.js +1 -0
  1063. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/bigint.js +1 -0
  1064. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/class.js +1 -0
  1065. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/date.js +1 -0
  1066. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/error.js +1 -0
  1067. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/function.js +1 -0
  1068. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/helpers.js +1 -0
  1069. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/html.js +2 -0
  1070. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/index.js +1 -0
  1071. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/map.js +1 -0
  1072. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/number.js +1 -0
  1073. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/object.js +1 -0
  1074. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/promise.js +1 -0
  1075. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/regexp.js +1 -0
  1076. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/set.js +1 -0
  1077. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/string.js +1 -0
  1078. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/symbol.js +1 -0
  1079. package/dist/node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/typedarray.js +1 -0
  1080. package/dist/node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js +10 -0
  1081. package/dist/node_modules/.pnpm/marked@4.0.12/node_modules/marked/lib/marked.esm.js +48 -0
  1082. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +1 -0
  1083. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js +1 -0
  1084. package/dist/node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js +1 -0
  1085. package/dist/node_modules/.pnpm/tinyspy@3.0.2/node_modules/tinyspy/dist/index.js +1 -0
  1086. package/dist/node_modules/.pnpm/turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.js +16 -0
  1087. package/dist/node_modules/.pnpm/turndown@7.2.0/node_modules/turndown/lib/turndown.browser.es.js +61 -0
  1088. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/color-picker.js +1 -0
  1089. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/hue.js +1 -0
  1090. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/saturation.js +1 -0
  1091. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/components/slider.js +1 -0
  1092. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/entrypoints/hex.js +1 -0
  1093. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/styles/color-picker.js +1 -0
  1094. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/styles/hue.js +1 -0
  1095. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/styles/saturation.js +1 -0
  1096. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/compare.js +1 -0
  1097. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/convert.js +1 -0
  1098. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/dom.js +1 -0
  1099. package/dist/node_modules/.pnpm/vanilla-colorful@0.7.2/node_modules/vanilla-colorful/lib/utils/math.js +1 -0
  1100. package/dist/node_modules/.pnpm/vitest@3.1.1_@types_debug@4.1.12_@types_node@22.13.10_@vitest_browser@3.1.1_@vitest_ui@_b85cc2177a791409b00034418624134c/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +1 -0
  1101. package/dist/node_modules/.pnpm/vitest@3.1.1_@types_debug@4.1.12_@types_node@22.13.10_@vitest_browser@3.1.1_@vitest_ui@_b85cc2177a791409b00034418624134c/node_modules/vitest/dist/chunks/date.CDOsz-HY.js +1 -0
  1102. package/dist/node_modules/.pnpm/vitest@3.1.1_@types_debug@4.1.12_@types_node@22.13.10_@vitest_browser@3.1.1_@vitest_ui@_b85cc2177a791409b00034418624134c/node_modules/vitest/dist/chunks/utils.CtocqOoE.js +7 -0
  1103. package/dist/node_modules/.pnpm/vitest@3.1.1_@types_debug@4.1.12_@types_node@22.13.10_@vitest_browser@3.1.1_@vitest_ui@_b85cc2177a791409b00034418624134c/node_modules/vitest/dist/chunks/vi.B-PuvDzu.js +12 -0
  1104. package/dist/packages/web-components/src/components/accordion/gator/base/accordion.gator.scss.js +1 -0
  1105. package/dist/packages/web-components/src/components/accordion/gator/base/accordion.gator.tokens.scss.js +1 -0
  1106. package/dist/packages/web-components/src/components/accordion/gator/group/accordion-group.gator.scss.js +1 -0
  1107. package/dist/packages/web-components/src/components/accordion/gator/group/accordion-group.gator.tokens.scss.js +1 -0
  1108. package/dist/packages/web-components/src/components/alert/gator/alert.tokens.scss.js +1 -0
  1109. package/dist/packages/web-components/src/components/alert/gator/base/alert.gator.scss.js +1 -0
  1110. package/dist/packages/web-components/src/components/alert/gator/subtitle/alert-subtitle.gator.scss.js +1 -0
  1111. package/dist/packages/web-components/src/components/alert/gator/title/alert-title.gator.scss.js +1 -0
  1112. package/dist/packages/web-components/src/components/avatar/avatar.tokens.scss.js +1 -0
  1113. package/dist/packages/web-components/src/components/avatar/gator/avatar.gator.scss.js +1 -0
  1114. package/dist/packages/web-components/src/components/badge/gator/badge.gator.scss.js +1 -0
  1115. package/dist/packages/web-components/src/components/badge/gator/badge.gator.tokens.scss.js +1 -0
  1116. package/dist/packages/web-components/src/components/banner/banner.tokens.scss.js +1 -0
  1117. package/dist/packages/web-components/src/components/banner/gator/banner.gator.scss.js +1 -0
  1118. package/dist/packages/web-components/src/components/boolean/boolean.gator.scss.js +1 -0
  1119. package/dist/packages/web-components/src/components/boolean/boolean.gator.tokens.scss.js +1 -0
  1120. package/dist/packages/web-components/src/components/breadcrumbs/gator/breadcrumb/breadcrumb.gator.scss.js +1 -0
  1121. package/dist/packages/web-components/src/components/breadcrumbs/gator/breadcrumbs.gator.tokens.scss.js +1 -0
  1122. package/dist/packages/web-components/src/components/breadcrumbs/gator/container/breadcrumbs.gator.scss.js +1 -0
  1123. package/dist/packages/web-components/src/components/button/gator/button.gator.scss.js +1 -0
  1124. package/dist/packages/web-components/src/components/button-card/button-card.tokens.scss.js +1 -0
  1125. package/dist/packages/web-components/src/components/button-card/gator/button-card.gator.scss.js +1 -0
  1126. package/dist/{assets/index-chunk11.js → packages/web-components/src/components/card/card.tokens.scss.js} +1 -1
  1127. package/dist/packages/web-components/src/components/card/gator/base/card.gator.scss.js +1 -0
  1128. package/dist/packages/web-components/src/components/card/gator/content/card-content.gator.scss.js +1 -0
  1129. package/dist/packages/web-components/src/components/card/gator/footer/card-footer.gator.scss.js +1 -0
  1130. package/dist/packages/web-components/src/components/card/gator/header/card-header.gator.scss.js +1 -0
  1131. package/dist/packages/web-components/src/components/card/gator/header/card-header.gator.tokens.scss.js +1 -0
  1132. package/dist/packages/web-components/src/components/checkbox/checkbox.gator.scss.js +1 -0
  1133. package/dist/packages/web-components/src/components/checkbox-group/checkbox-group.gator.scss.js +1 -0
  1134. package/dist/packages/web-components/src/components/chip/chip.tokens.scss.js +1 -0
  1135. package/dist/packages/web-components/src/components/chip/gator/chip.gator.scss.js +1 -0
  1136. package/dist/packages/web-components/src/components/combobox/combobox-item/combobox-item.slds.scss.js +1 -0
  1137. package/dist/packages/web-components/src/components/date-picker/base/gator/datepicker.gator.scss.js +1 -0
  1138. package/dist/packages/web-components/src/components/date-picker/year-month-selector/year-month-selector.gator.scss.js +1 -0
  1139. package/dist/packages/web-components/src/components/display-card/gator/display-card.gator.scss.js +1 -0
  1140. package/dist/packages/web-components/src/components/divider/gator/divider.gator.scss.js +1 -0
  1141. package/dist/packages/web-components/src/components/fab/gator/fab.gator.scss.js +1 -0
  1142. package/dist/packages/web-components/src/components/headline-card/gator/headline-card.gator.scss.js +1 -0
  1143. package/dist/packages/web-components/src/components/icon/gator/icon.gator.scss.js +1 -0
  1144. package/dist/packages/web-components/src/components/icon-button/gator/icon-button.gator.scss.js +1 -0
  1145. package/dist/packages/web-components/src/components/illustration/gator/illustration.gator.scss.js +1 -0
  1146. package/dist/packages/web-components/src/components/illustration/illustration.tokens.scss.js +1 -0
  1147. package/dist/packages/web-components/src/components/input/gator/dropdown/input-dropdown.gator.scss.js +1 -0
  1148. package/dist/packages/web-components/src/components/input/gator/help-text/help-text.gator.scss.js +1 -0
  1149. package/dist/packages/web-components/src/components/input/gator/help-text/help-text.gator.tokens.scss.js +1 -0
  1150. package/dist/packages/web-components/src/components/input/gator/input-currency/input-currency.gator.scss.js +1 -0
  1151. package/dist/packages/web-components/src/components/input/gator/input-date/input-date.gator.scss.js +1 -0
  1152. package/dist/packages/web-components/src/components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.scss.js +1 -0
  1153. package/dist/packages/web-components/src/components/input/gator/input-file/input-file.gator.scss.js +1 -0
  1154. package/dist/packages/web-components/src/components/input/gator/input-label/input-label.gator.scss.js +1 -0
  1155. package/dist/packages/web-components/src/components/input/gator/input-label/input-label.gator.tokens.scss.js +1 -0
  1156. package/dist/packages/web-components/src/components/input/gator/input-phone/input-phone.gator.scss.js +1 -0
  1157. package/dist/packages/web-components/src/components/input/gator/input-search/input-search.gator.scss.js +1 -0
  1158. package/dist/packages/web-components/src/components/input/gator/input-textarea/input-textarea.gator.scss.js +1 -0
  1159. package/dist/packages/web-components/src/components/input/input.gator.scss.js +1 -0
  1160. package/dist/packages/web-components/src/components/input/input.gator.tokens.scss.js +1 -0
  1161. package/dist/packages/web-components/src/components/list/gator/list-item/list-item.gator.scss.js +1 -0
  1162. package/dist/packages/web-components/src/components/loading-spinner/gator/loading-spinner.gator.scss.js +1 -0
  1163. package/dist/packages/web-components/src/components/menu/base/gator/menu.gator.scss.js +1 -0
  1164. package/dist/packages/web-components/src/components/menu/menu.tokens.scss.js +1 -0
  1165. package/dist/packages/web-components/src/components/modal/gator/modal.gator.scss.js +1 -0
  1166. package/dist/packages/web-components/src/components/page-header/gator/page-header.gator.scss.js +1 -0
  1167. package/dist/packages/web-components/src/components/panel/gator/panel.gator.scss.js +1 -0
  1168. package/dist/packages/web-components/src/components/panel/gator/panel.gator.tokens.scss.js +1 -0
  1169. package/dist/packages/web-components/src/components/progress-bar/gator/progress-bar.gator.scss.js +1 -0
  1170. package/dist/packages/web-components/src/components/radio/radio.gator.scss.js +1 -0
  1171. package/dist/packages/web-components/src/components/radio/radio.gator.tokens.scss.js +1 -0
  1172. package/dist/packages/web-components/src/components/radio-group/radio-group.gator.scss.js +1 -0
  1173. package/dist/packages/web-components/src/components/selection-box/selection-box.gator.scss.js +1 -0
  1174. package/dist/packages/web-components/src/components/selection-box/selection-box.gator.tokens.scss.js +1 -0
  1175. package/dist/packages/web-components/src/components/selection-box-group/selection-box-group.gator.scss.js +1 -0
  1176. package/dist/packages/web-components/src/components/selector/gator/selector.gator.scss.js +1 -0
  1177. package/dist/packages/web-components/src/components/skeleton-loader/gator/skeleton-loader.gator.scss.js +1 -0
  1178. package/dist/packages/web-components/src/components/switch/gator/switch.gator.scss.js +1 -0
  1179. package/dist/packages/web-components/src/components/switch/switch.tokens.scss.js +1 -0
  1180. package/dist/packages/web-components/src/components/table/gator/table.gator.scss.js +1 -0
  1181. package/dist/packages/web-components/src/components/table/table.tokens.scss.js +1 -0
  1182. package/dist/packages/web-components/src/components/tabs/gator/tabs.gator.scss.js +1 -0
  1183. package/dist/packages/web-components/src/components/tabs/gator/tabs.gator.tokens.scss.js +1 -0
  1184. package/dist/packages/web-components/src/components/text-detail/gator/text-detail.gator.scss.js +1 -0
  1185. package/dist/packages/web-components/src/components/text-link/gator/text-link.gator.scss.js +1 -0
  1186. package/dist/packages/web-components/src/components/toast/gator/base/toast.gator.scss.js +1 -0
  1187. package/dist/packages/web-components/src/components/toast/gator/subtitle/toast-subtitle.gator.scss.js +1 -0
  1188. package/dist/packages/web-components/src/components/toast/gator/title/toast-title.gator.scss.js +1 -0
  1189. package/dist/packages/web-components/src/components/tooltip/gator/tooltip.gator.scss.js +1 -0
  1190. package/dist/{assets/index-chunk16.js → packages/web-components/src/components/tooltip/tooltip.scss.js} +1 -1
  1191. package/dist/packages/web-components/src/components/tooltip/tooltip.tokens.scss.js +1 -0
  1192. package/dist/{assets/index-chunk10.js → packages/web-components/src/index.slds.scss.js} +1 -1
  1193. package/dist/packages/web-components/src/styles/_gator-utils.scss.js +1 -0
  1194. package/dist/{assets/index-chunk5.js → packages/web-components/src/tokens/primitive.tokens.scss.js} +1 -1
  1195. package/dist/{assets/index-chunk6.js → packages/web-components/src/tokens/semantic.tokens.scss.js} +1 -1
  1196. package/dist/packages/web-components/src/utils/data/countries.json.js +1 -0
  1197. package/dist/packages/web-components/src/utils/data/naics-codes.json.js +1 -0
  1198. package/dist/packages/web-components/src/utils/data/phone-country-codes.json.js +1 -0
  1199. package/dist/packages/web-components/src/utils/data/states.json.js +1 -0
  1200. package/dist/types/components/alert/alert.d.ts +16 -0
  1201. package/dist/types/components/banner/banner.d.ts +16 -0
  1202. package/dist/types/components/button/button.d.ts +42 -0
  1203. package/dist/types/components/fab/fab.d.ts +31 -0
  1204. package/dist/types/components/icon-button/icon-button.d.ts +41 -0
  1205. package/dist/types/components/input/gator/input-label/input-label.gator.d.ts +35 -0
  1206. package/dist/types/components/input/index.gator.d.ts +1 -0
  1207. package/dist/types/components/list/gator/list-item/list-item.gator.d.ts +98 -0
  1208. package/dist/types/components/tooltip/tooltip.d.ts +1 -0
  1209. package/dist/types/index.data.d.ts +4 -0
  1210. package/dist/types/utils/components/ngc-component.d.ts +6 -0
  1211. package/dist/types/utils/mixins/attribute-deletion.d.ts +5 -0
  1212. package/dist/types/utils/string-utils.d.ts +2 -1
  1213. package/dist/types/utils/vitest-a11y-utils.d.ts +11 -0
  1214. package/dist/types/utils/vitest-utils.d.ts +0 -7
  1215. package/dist/utils/components/illustration-list/illustration-list.gator.js +2 -2
  1216. package/dist/utils/components/ngc-component.js +1 -1
  1217. package/dist/utils/components/slot-placeholder/index.js +1 -1
  1218. package/dist/utils/components/slot-placeholder/slot-placeholder.js +3 -3
  1219. package/dist/utils/components/testable-lit-element/testable-lit-element.js +1 -1
  1220. package/dist/utils/datatestid-utils.js +1 -1
  1221. package/dist/utils/error-utils.js +1 -1
  1222. package/dist/utils/industry-utils.js +1 -1
  1223. package/dist/utils/lightdom-utils.js +1 -1
  1224. package/dist/utils/mixins/attribute-deletion.js +1 -1
  1225. package/dist/utils/phone-utils.js +1 -1
  1226. package/dist/utils/places-utils.js +1 -1
  1227. package/dist/utils/storybook-args.js +1 -1
  1228. package/dist/utils/storybook-utils.js +1 -1
  1229. package/dist/utils/string-utils.js +1 -1
  1230. package/dist/utils/vitest-a11y-utils.js +1 -0
  1231. package/dist/utils/vitest-utils.js +1 -30
  1232. package/package.json +31 -28
  1233. package/web-types.json +160 -158
  1234. package/dist/assets/index-chunk.js +0 -5
  1235. package/dist/assets/index-chunk12.js +0 -5
  1236. package/dist/assets/index-chunk13.js +0 -21
  1237. package/dist/assets/index-chunk14.js +0 -13
  1238. package/dist/assets/index-chunk15.js +0 -1
  1239. package/dist/assets/index-chunk2.js +0 -19
  1240. package/dist/assets/index-chunk3.js +0 -5
  1241. package/dist/assets/index-chunk4.js +0 -5
  1242. package/dist/assets/index-chunk7.js +0 -5
  1243. package/dist/assets/index-chunk8.js +0 -13
  1244. package/dist/assets/index-chunk9.js +0 -5
@@ -0,0 +1,10 @@
1
+ var He=Object.defineProperty;var Ge=(a,i,e)=>i in a?He(a,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[i]=e;var f=(a,i,e)=>Ge(a,typeof i!="symbol"?i+"":i,e);import{Plugin as p,icons as I,Command as C}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Clipboard as Ke,ClipboardPipeline as j}from"../../../../../@ckeditor_ckeditor5-clipboard@44.3.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{LivePosition as L,LiveRange as Je,UpcastWriter as H,enablePlaceholder as Ze,Element as Xe,Observer as Ye}from"../../../../../@ckeditor_ckeditor5-engine@44.3.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{Undo as Qe}from"../../../../../@ckeditor_ckeditor5-undo@44.3.0/node_modules/@ckeditor/ckeditor5-undo/dist/index.js";import{Delete as et}from"../../../../../@ckeditor_ckeditor5-typing@44.3.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{global as x,DomEmitterMixin as tt,logWarning as y,CKEditorError as it,Collection as nt,env as st,first as G,FocusTracker as K,KeystrokeHandler as O,Rect as ot,toArray as he}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{Widget as fe,WidgetToolbarRepository as ie,toWidget as at,isWidget as rt,toWidgetEditable as lt,WidgetResize as D,calculateResizeHostAncestorWidth as pe,findOptimalInsertionRange as ct}from"../../../../../@ckeditor_ckeditor5-widget@44.3.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import{SplitButtonView as Ie,createDropdown as J,MenuBarMenuView as mt,MenuBarMenuListView as ut,MenuBarMenuListItemView as gt,ButtonView as v,Dialog as dt,MenuBarMenuListItemButtonView as ht,ContextualBalloon as be,CssTransitionDisablerMixin as we,clickOutsideHandler as _e,ViewModel as ne,addToolbarToDropdown as ft,Notification as se,FileDialogButtonView as oe,MenuBarMenuListItemFileDialogButtonView as pt,View as N,ViewCollection as Z,FocusCycler as X,CollapsibleView as It,submitHandler as F,LabeledFieldView as Y,createLabeledInputText as ye,BalloonPanelView as bt,DropdownButtonView as wt,addListToDropdown as _t,createLabeledInputNumber as yt}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{FileRepository as k}from"../../../../../@ckeditor_ckeditor5-upload@44.3.0/node_modules/@ckeditor/ckeditor5-upload/dist/index.js";import vt from"../../../../../lodash-es@4.17.21/node_modules/lodash-es/map.js";import ve from"../../../../../lodash-es@4.17.21/node_modules/lodash-es/isObject.js";import U from"../../../../../lodash-es@4.17.21/node_modules/lodash-es/identity.js";/**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */function Ct(a){return a.createContainerElement("span",{class:"image-inline"},a.createEmptyElement("img"))}function ae(a){return a.createContainerElement("figure",{class:"image"},[a.createEmptyElement("img"),a.createSlot("children")])}function Ce(a,i){const e=a.plugins.get("ImageUtils"),t=a.plugins.has("ImageInlineEditing")&&a.plugins.has("ImageBlockEditing");return s=>e.isInlineImageView(s)?t&&(s.getStyle("display")=="block"||s.findAncestor(e.isBlockImageView)?"imageBlock":"imageInline")!==i?null:n(s):null;function n(s){const o={name:!0};return s.hasAttribute("src")&&(o.attributes=["src"]),o}}function Q(a,i){const e=G(i.getSelectedBlocks());return!e||a.isObject(e)||e.isEmpty&&e.name!="listItem"?"imageBlock":"imageInline"}function R(a){return a&&a.endsWith("px")?parseInt(a):null}function z(a){const i=R(a.getStyle("width")),e=R(a.getStyle("height"));return!!(i&&e)}const Et=/^(image|image-inline)$/;class _ extends p{constructor(){super(...arguments);f(this,"_domEmitter",new(tt()))}static get pluginName(){return"ImageUtils"}static get isOfficialPlugin(){return!0}isImage(e){return this.isInlineImage(e)||this.isBlockImage(e)}isInlineImageView(e){return!!e&&e.is("element","img")}isBlockImageView(e){return!!e&&e.is("element","figure")&&e.hasClass("image")}insertImage(e={},t=null,n=null,s={}){const o=this.editor,r=o.model,l=r.document.selection,c=Ee(o,t||l,n);e={...Object.fromEntries(l.getAttributes()),...e};for(const m in e)r.schema.checkAttribute(c,m)||delete e[m];return r.change(m=>{const{setImageSizes:g=!0}=s,u=m.createElement(c,e);return r.insertObject(u,t,null,{setSelection:"on",findOptimalPosition:!t&&c!="imageInline"?"auto":void 0}),u.parent?(g&&this.setImageNaturalSizeAttributes(u),u):null})}setImageNaturalSizeAttributes(e){const t=e.getAttribute("src");t&&(e.getAttribute("width")||e.getAttribute("height")||this.editor.model.change(n=>{const s=new x.window.Image;this._domEmitter.listenTo(s,"load",()=>{!e.getAttribute("width")&&!e.getAttribute("height")&&this.editor.model.enqueueChange(n.batch,o=>{o.setAttribute("width",s.naturalWidth,e),o.setAttribute("height",s.naturalHeight,e)}),this._domEmitter.stopListening(s,"load")}),s.src=t}))}getClosestSelectedImageWidget(e){const t=e.getFirstPosition();if(!t)return null;const n=e.getSelectedElement();if(n&&this.isImageWidget(n))return n;let s=t.parent;for(;s;){if(s.is("element")&&this.isImageWidget(s))return s;s=s.parent}return null}getClosestSelectedImageElement(e){const t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(e){return e.findAncestor({classes:Et})}isImageAllowed(){const t=this.editor.model.document.selection;return kt(this.editor,t)&&St(t)}toImageWidget(e,t,n){return t.setCustomProperty("image",!0,e),at(e,t,{label:()=>{const r=this.findViewImgElement(e).getAttribute("alt");return r?`${r} ${n}`:n}})}isImageWidget(e){return!!e.getCustomProperty("image")&&rt(e)}isBlockImage(e){return!!e&&e.is("element","imageBlock")}isInlineImage(e){return!!e&&e.is("element","imageInline")}findViewImgElement(e){if(this.isInlineImageView(e))return e;const t=this.editor.editing.view;for(const{item:n}of t.createRangeIn(e))if(this.isInlineImageView(n))return n}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function kt(a,i){if(Ee(a,i,null)=="imageBlock"){const t=Ut(i,a.model);if(a.model.schema.checkChild(t,"imageBlock"))return!0}else if(a.model.schema.checkChild(i.focus,"imageInline"))return!0;return!1}function St(a){return[...a.focus.getAncestors()].every(i=>!i.is("element","imageBlock"))}function Ut(a,i){const t=ct(a,i).start.parent;return t.isEmpty&&!t.is("element","$root")?t.parent:t}function Ee(a,i,e){const t=a.model.schema,n=a.config.get("image.insert.type");return a.plugins.has("ImageBlockEditing")?a.plugins.has("ImageInlineEditing")?e||(n==="inline"?"imageInline":n!=="auto"?"imageBlock":i.is("selection")?Q(t,i):t.checkChild(i,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}const Bt=new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class qi extends p{constructor(e){super(e);f(this,"_timeoutId");f(this,"_positionToInsert");this._timeoutId=null,this._positionToInsert=null}static get requires(){return[Ke,_,Qe,et]}static get pluginName(){return"AutoImage"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model.document,n=e.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{const s=t.selection.getFirstRange(),o=L.fromPosition(s.start);o.stickiness="toPrevious";const r=L.fromPosition(s.end);r.stickiness="toNext",t.once("change:data",()=>{this._embedImageBetweenPositions(o,r),o.detach(),r.detach()},{priority:"high"})}),e.commands.get("undo").on("execute",()=>{this._timeoutId&&(x.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedImageBetweenPositions(e,t){const n=this.editor,s=new Je(e,t),o=s.getWalker({ignoreElementEnd:!0}),r=Object.fromEntries(n.model.document.selection.getAttributes()),l=this.editor.plugins.get("ImageUtils");let c="";for(const m of o)m.item.is("$textProxy")&&(c+=m.item.data);if(c=c.trim(),!c.match(Bt)){s.detach();return}this._positionToInsert=L.fromPosition(e),this._timeoutId=setTimeout(()=>{if(!n.commands.get("insertImage").isEnabled){s.detach();return}n.model.change(u=>{this._timeoutId=null,u.remove(s),s.detach();let d;this._positionToInsert.root.rootName!=="$graveyard"&&(d=this._positionToInsert.toPosition()),l.insertImage({...r,src:c},d),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get("Delete").requestUndoOnBackspace()},100)}}class Vt extends C{refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1}execute(i){const e=this.editor,t=e.plugins.get("ImageUtils"),n=e.model,s=t.getClosestSelectedImageElement(n.document.selection);n.change(o=>{o.setAttribute("alt",i.newValue,s)})}}class Tt extends p{static get requires(){return[_]}static get pluginName(){return"ImageTextAlternativeEditing"}static get isOfficialPlugin(){return!0}init(){this.editor.commands.add("imageTextAlternative",new Vt(this.editor))}}class At extends N{constructor(e){super(e);f(this,"focusTracker");f(this,"keystrokes");f(this,"labeledInput");f(this,"saveButtonView");f(this,"cancelButtonView");f(this,"_focusables");f(this,"_focusCycler");const t=this.locale.t;this.focusTracker=new K,this.keystrokes=new O,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(t("Save"),I.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(t("Cancel"),I.cancel,"ck-button-cancel","cancel"),this._focusables=new Z,this._focusCycler=new X({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),F({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,n,s){const o=new v(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),s&&o.delegate("execute").to(this,s),o}_createLabeledInputView(){const e=this.locale.t,t=new Y(this.locale,ye);return t.label=e("Text alternative"),t}}function xt(a){const i=a.plugins.get("ContextualBalloon");if(a.plugins.get("ImageUtils").getClosestSelectedImageWidget(a.editing.view.document.selection)){const t=ee(a);i.updatePosition(t)}}function ee(a){const i=a.editing.view,e=bt.defaultPositions,t=a.plugins.get("ImageUtils");return{target:i.domConverter.mapViewToDom(t.getClosestSelectedImageWidget(i.document.selection)),positions:[e.northArrowSouth,e.northArrowSouthWest,e.northArrowSouthEast,e.southArrowNorth,e.southArrowNorthWest,e.southArrowNorthEast,e.viewportStickyNorth]}}class Rt extends p{constructor(){super(...arguments);f(this,"_balloon");f(this,"_form")}static get requires(){return[be]}static get pluginName(){return"ImageTextAlternativeUI"}static get isOfficialPlugin(){return!0}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const e=this.editor,t=e.t;e.ui.componentFactory.add("imageTextAlternative",n=>{const s=e.commands.get("imageTextAlternative"),o=new v(n);return o.set({label:t("Change image text alternative"),icon:I.textAlternative,tooltip:!0}),o.bind("isEnabled").to(s,"isEnabled"),o.bind("isOn").to(s,"value",r=>!!r),this.listenTo(o,"execute",()=>{this._showForm()}),o})}_createForm(){const e=this.editor,n=e.editing.view.document,s=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(we(At))(e.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{e.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(o,r)=>{this._hideForm(!0),r()}),this.listenTo(e.ui,"update",()=>{s.getClosestSelectedImageWidget(n.selection)?this._isVisible&&xt(e):this._hideForm(!0)}),_e({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:ee(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class ke extends p{static get requires(){return[Tt,Rt]}static get pluginName(){return"ImageTextAlternative"}static get isOfficialPlugin(){return!0}}function zt(a){const i=(e,t,n)=>{if(!n.consumable.test(t.viewItem,{name:!0,classes:"image"}))return;const s=a.findViewImgElement(t.viewItem);if(!s||!n.consumable.test(s,{name:!0}))return;n.consumable.consume(t.viewItem,{name:!0,classes:"image"});const o=n.convertItem(s,t.modelCursor),r=G(o.modelRange.getItems());if(!r){n.consumable.revert(t.viewItem,{name:!0,classes:"image"});return}n.convertChildren(t.viewItem,r),n.updateConversionResult(r,t)};return e=>{e.on("element:figure",i)}}function Se(a,i){const e=(t,n,s)=>{if(!s.consumable.consume(n.item,t.name))return;const o=s.writer,r=s.mapper.toViewElement(n.item),l=a.findViewImgElement(r);n.attributeNewValue===null?(o.removeAttribute("srcset",l),o.removeAttribute("sizes",l)):n.attributeNewValue&&(o.setAttribute("srcset",n.attributeNewValue,l),o.setAttribute("sizes","100vw",l))};return t=>{t.on(`attribute:srcset:${i}`,e)}}function P(a,i,e){const t=(n,s,o)=>{if(!o.consumable.consume(s.item,n.name))return;const r=o.writer,l=o.mapper.toViewElement(s.item),c=a.findViewImgElement(l);r.setAttribute(s.attributeKey,s.attributeNewValue||"",c)};return n=>{n.on(`attribute:${e}:${i}`,t)}}class te extends Ye{observe(i){this.listenTo(i,"load",(e,t)=>{const n=t.target;this.checkShouldIgnoreEventFromTarget(n)||n.tagName=="IMG"&&this._fireEvents(t)},{useCapture:!0})}stopObserving(i){this.stopListening(i)}_fireEvents(i){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",i))}}class Pt extends C{constructor(i){super(i);const e=i.config.get("image.insert.type");i.plugins.has("ImageBlockEditing")||e==="block"&&y("image-block-plugin-required"),i.plugins.has("ImageInlineEditing")||e==="inline"&&y("image-inline-plugin-required")}refresh(){const i=this.editor.plugins.get("ImageUtils");this.isEnabled=i.isImageAllowed()}execute(i){const e=he(i.source),t=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),s=Object.fromEntries(t.getAttributes());e.forEach((o,r)=>{const l=t.getSelectedElement();if(typeof o=="string"&&(o={src:o}),r&&l&&n.isImage(l)){const c=this.editor.model.createPositionAfter(l);n.insertImage({...o,...s},c,i.imageType)}else i.breakBlock?n.insertImage({...o,...s},t.getFirstPosition(),i.imageType):n.insertImage({...o,...s},null,i.imageType)})}}class Ot extends C{constructor(i){super(i),this.decorate("cleanupImage")}refresh(){const e=this.editor.plugins.get("ImageUtils"),t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=e.isImage(t),this.value=this.isEnabled?t.getAttribute("src"):null}execute(i){const e=this.editor.model.document.selection.getSelectedElement(),t=this.editor.plugins.get("ImageUtils");this.editor.model.change(n=>{n.setAttribute("src",i.source,e),this.cleanupImage(n,e),t.setImageNaturalSizeAttributes(e)})}cleanupImage(i,e){i.removeAttribute("srcset",e),i.removeAttribute("sizes",e),i.removeAttribute("sources",e),i.removeAttribute("width",e),i.removeAttribute("height",e),i.removeAttribute("alt",e)}}class Ue extends p{static get requires(){return[_]}static get pluginName(){return"ImageEditing"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,e=i.conversion;i.editing.view.addObserver(te),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const t=new Pt(i),n=new Ot(i);i.commands.add("insertImage",t),i.commands.add("replaceImageSource",n),i.commands.add("imageInsert",t)}}class Be extends p{static get requires(){return[_]}static get pluginName(){return"ImageSizeAttributes"}static get isOfficialPlugin(){return!0}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(i){const e=this.editor,t=e.plugins.get("ImageUtils"),n=i==="imageBlock"?"figure":"img";e.conversion.for("upcast").attributeToAttribute({view:{name:n,styles:{width:/.+/}},model:{key:"width",value:o=>z(o)?R(o.getStyle("width")):null}}).attributeToAttribute({view:{name:n,key:"width"},model:"width"}).attributeToAttribute({view:{name:n,styles:{height:/.+/}},model:{key:"height",value:o=>z(o)?R(o.getStyle("height")):null}}).attributeToAttribute({view:{name:n,key:"height"},model:"height"}),e.conversion.for("editingDowncast").add(o=>{s(o,"width","width",!0,!0),s(o,"height","height",!0,!0)}),e.conversion.for("dataDowncast").add(o=>{s(o,"width","width",!1),s(o,"height","height",!1)});function s(o,r,l,c,m=!1){o.on(`attribute:${r}:${i}`,(g,u,d)=>{if(!d.consumable.consume(u.item,g.name))return;const h=d.writer,b=d.mapper.toViewElement(u.item),w=t.findViewImgElement(b);u.attributeNewValue!==null?h.setAttribute(l,u.attributeNewValue,w):h.removeAttribute(l,w);const E=u.item.getAttribute("width"),S=u.item.getAttribute("height"),T=E&&S;if(T&&m&&h.setAttribute("loading","lazy",w),u.item.hasAttribute("sources"))return;const je=u.item.hasAttribute("resizedWidth");i==="imageInline"&&!je&&!c||T&&h.setStyle("aspect-ratio",`${E}/${S}`,w)})}}}class Ve extends C{constructor(e,t){super(e);f(this,"_modelElementName");this._modelElementName=t}refresh(){const t=this.editor.plugins.get("ImageUtils"),n=t.getClosestSelectedImageElement(this.editor.model.document.selection);this._modelElementName==="imageBlock"?this.isEnabled=t.isInlineImage(n):this.isEnabled=t.isBlockImage(n)}execute(e={}){const t=this.editor,n=this.editor.model,s=t.plugins.get("ImageUtils"),o=s.getClosestSelectedImageElement(n.document.selection),r=Object.fromEntries(o.getAttributes());return!r.src&&!r.uploadId?null:n.change(l=>{const{setImageSizes:c=!0}=e,m=Array.from(n.markers).filter(d=>d.getRange().containsItem(o)),g=s.insertImage(r,n.createSelection(o,"on"),this._modelElementName,{setImageSizes:c});if(!g)return null;const u=l.createRangeOn(g);for(const d of m){const h=d.getRange(),b=h.root.rootName!="$graveyard"?h.getJoined(u,!0):u;l.updateMarker(d,{range:b})}return{oldElement:o,newElement:g}})}}class Te extends p{static get requires(){return[_]}static get pluginName(){return"ImagePlaceholder"}static get isOfficialPlugin(){return!0}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const i=this.editor.model.schema;i.isRegistered("imageBlock")&&i.extend("imageBlock",{allowAttributes:["placeholder"]}),i.isRegistered("imageInline")&&i.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const i=this.editor,e=i.conversion,t=i.plugins.get("ImageUtils");e.for("editingDowncast").add(n=>{n.on("attribute:placeholder",(s,o,r)=>{if(!r.consumable.test(o.item,s.name)||!o.item.is("element","imageBlock")&&!o.item.is("element","imageInline"))return;r.consumable.consume(o.item,s.name);const l=r.writer,c=r.mapper.toViewElement(o.item),m=t.findViewImgElement(c);o.attributeNewValue?(l.addClass("image_placeholder",m),l.setStyle("background-image",`url(${o.attributeNewValue})`,m),l.setCustomProperty("editingPipeline:doNotReuseOnce",!0,m)):(l.removeClass("image_placeholder",m),l.removeStyle("background-image",m))})})}_setupLoadListener(){const i=this.editor,e=i.model,t=i.editing,n=t.view,s=i.plugins.get("ImageUtils");n.addObserver(te),this.listenTo(n.document,"imageLoaded",(o,r)=>{const l=n.domConverter.mapDomToView(r.target);if(!l)return;const c=s.getImageWidgetFromImageView(l);if(!c)return;const m=t.mapper.toModelElement(c);!m||!m.hasAttribute("placeholder")||e.enqueueChange({isUndoable:!1},g=>{g.removeAttribute("placeholder",m)})})}}class Ae extends p{static get requires(){return[Ue,Be,_,Te,j]}static get pluginName(){return"ImageBlockEditing"}static get isOfficialPlugin(){return!0}init(){const i=this.editor;i.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),i.plugins.has("ImageInlineEditing")&&(i.commands.add("imageTypeBlock",new Ve(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const i=this.editor,e=i.t,t=i.conversion,n=i.plugins.get("ImageUtils");t.for("dataDowncast").elementToStructure({model:"imageBlock",view:(s,{writer:o})=>ae(o)}),t.for("editingDowncast").elementToStructure({model:"imageBlock",view:(s,{writer:o})=>n.toImageWidget(ae(o),o,e("image widget"))}),t.for("downcast").add(P(n,"imageBlock","src")).add(P(n,"imageBlock","alt")).add(Se(n,"imageBlock")),t.for("upcast").elementToElement({view:Ce(i,"imageBlock"),model:(s,{writer:o})=>o.createElement("imageBlock",s.hasAttribute("src")?{src:s.getAttribute("src")}:void 0)}).add(zt(n))}_setupClipboardIntegration(){const i=this.editor,e=i.model,t=i.editing.view,n=i.plugins.get("ImageUtils"),s=i.plugins.get("ClipboardPipeline");this.listenTo(s,"inputTransformation",(o,r)=>{const l=Array.from(r.content.getChildren());let c;if(!l.every(n.isInlineImageView))return;r.targetRanges?c=i.editing.mapper.toModelRange(r.targetRanges[0]):c=e.document.selection.getFirstRange();const m=e.createSelection(c);if(Q(e.schema,m)==="imageBlock"){const g=new H(t.document),u=l.map(d=>g.createElement("figure",{class:"image"},d));r.content=g.createDocumentFragment(u)}}),this.listenTo(s,"contentInsertion",(o,r)=>{r.method==="paste"&&e.change(l=>{const c=l.createRangeIn(r.content);for(const m of c.getItems())m.is("element","imageBlock")&&n.setImageNaturalSizeAttributes(m)})})}}class Nt extends N{constructor(e,t=[]){super(e);f(this,"focusTracker");f(this,"keystrokes");f(this,"_focusables");f(this,"_focusCycler");f(this,"children");this.focusTracker=new K,this.keystrokes=new O,this._focusables=new Z,this.children=this.createCollection(),this._focusCycler=new X({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const n of t)this.children.add(n),this._focusables.add(n),n instanceof It&&this._focusables.addMany(n.children);this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),F({view:this});for(const t of this._focusables)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element);const e=t=>t.stopPropagation();this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}class V extends p{constructor(e){super(e);f(this,"dropdownView");f(this,"_integrations",new Map);e.config.define("image.insert.integrations",["upload","assetManager","url"])}static get pluginName(){return"ImageInsertUI"}static get isOfficialPlugin(){return!0}static get requires(){return[_]}init(){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(e.model.document,"change",()=>{this.isImageSelected=n.isImage(t.getSelectedElement())});const s=r=>this._createToolbarComponent(r),o=r=>this._createMenuBarComponent(r);e.ui.componentFactory.add("insertImage",s),e.ui.componentFactory.add("imageInsert",s),e.ui.componentFactory.add("menuBar:insertImage",o)}registerIntegration({name:e,observable:t,buttonViewCreator:n,formViewCreator:s,menuBarButtonViewCreator:o,requiresForm:r=!1,override:l=!1}){this._integrations.has(e)&&!l&&y("image-insert-integration-exists",{name:e}),this._integrations.set(e,{observable:t,buttonViewCreator:n,menuBarButtonViewCreator:o,formViewCreator:s,requiresForm:r})}_createToolbarComponent(e){const t=this.editor,n=e.t,s=this._prepareIntegrations();if(!s.length)return null;let o;const r=s[0];if(s.length==1){if(!r.requiresForm)return r.buttonViewCreator(!0);o=r.buttonViewCreator(!0)}else{const m=r.buttonViewCreator(!1);o=new Ie(e,m),o.tooltip=!0,o.bind("label").to(this,"isImageSelected",g=>n(g?"Replace image":"Insert image"))}const l=this.dropdownView=J(e,o),c=s.map(({observable:m})=>typeof m=="function"?m():m);return l.bind("isEnabled").toMany(c,"isEnabled",(...m)=>m.some(g=>g)),l.once("change:isOpen",()=>{const m=s.flatMap(({formViewCreator:u})=>u(s.length==1)),g=new Nt(t.locale,m);l.panelView.children.add(g)}),l}_createMenuBarComponent(e){const t=e.t,n=this._prepareIntegrations();if(!n.length)return null;const s=n.flatMap(({menuBarButtonViewCreator:l})=>l(n.length==1)),o=new mt(e),r=new ut(e);o.panelView.children.add(r),o.buttonView.set({icon:I.image,label:t("Image")});for(const l of s){const c=new gt(e,o);c.children.add(l),r.items.add(c),l.delegate("execute").to(o)}return o}_prepareIntegrations(){const t=this.editor.config.get("image.insert.integrations"),n=[];if(!t.length)return y("image-insert-integrations-not-specified"),n;for(const s of t){if(!this._integrations.has(s)){["upload","assetManager","url"].includes(s)||y("image-insert-unknown-integration",{item:s});continue}n.push(this._integrations.get(s))}return n.length||y("image-insert-integrations-not-registered"),n}}class $i extends p{static get requires(){return[Ae,fe,ke,V]}static get pluginName(){return"ImageBlock"}static get isOfficialPlugin(){return!0}}class Ft extends p{static get requires(){return[Ue,Be,_,Te,j]}static get pluginName(){return"ImageInlineEditing"}static get isOfficialPlugin(){return!0}init(){const i=this.editor;i.model.schema.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"],disallowIn:["caption"]}),this._setupConversion(),i.plugins.has("ImageBlockEditing")&&(i.commands.add("imageTypeInline",new Ve(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const i=this.editor,e=i.t,t=i.conversion,n=i.plugins.get("ImageUtils");t.for("dataDowncast").elementToElement({model:"imageInline",view:(s,{writer:o})=>o.createEmptyElement("img")}),t.for("editingDowncast").elementToStructure({model:"imageInline",view:(s,{writer:o})=>n.toImageWidget(Ct(o),o,e("image widget"))}),t.for("downcast").add(P(n,"imageInline","src")).add(P(n,"imageInline","alt")).add(Se(n,"imageInline")),t.for("upcast").elementToElement({view:Ce(i,"imageInline"),model:(s,{writer:o})=>o.createElement("imageInline",s.hasAttribute("src")?{src:s.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const i=this.editor,e=i.model,t=i.editing.view,n=i.plugins.get("ImageUtils"),s=i.plugins.get("ClipboardPipeline");this.listenTo(s,"inputTransformation",(o,r)=>{const l=Array.from(r.content.getChildren());let c;if(!l.every(n.isBlockImageView))return;r.targetRanges?c=i.editing.mapper.toModelRange(r.targetRanges[0]):c=e.document.selection.getFirstRange();const m=e.createSelection(c);if(Q(e.schema,m)==="imageInline"){const g=new H(t.document),u=l.map(d=>d.childCount===1?(Array.from(d.getAttributes()).forEach(h=>g.setAttribute(...h,n.findViewImgElement(d))),d.getChild(0)):d);r.content=g.createDocumentFragment(u)}}),this.listenTo(s,"contentInsertion",(o,r)=>{r.method==="paste"&&e.change(l=>{const c=l.createRangeIn(r.content);for(const m of c.getItems())m.is("element","imageInline")&&n.setImageNaturalSizeAttributes(m)})})}}class ji extends p{static get requires(){return[Ft,fe,ke,V]}static get pluginName(){return"ImageInline"}static get isOfficialPlugin(){return!0}}class xe extends p{static get pluginName(){return"ImageCaptionUtils"}static get isOfficialPlugin(){return!0}static get requires(){return[_]}getCaptionFromImageModelElement(i){for(const e of i.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(i){const e=this.editor.plugins.get("ImageUtils"),t=i.getFirstPosition().findAncestor("caption");return t&&e.isBlockImage(t.parent)?t:null}matchImageCaptionViewElement(i){const e=this.editor.plugins.get("ImageUtils");return i.name=="figcaption"&&e.isBlockImageView(i.parent)?{name:!0}:null}}class Lt extends C{refresh(){const i=this.editor,e=i.plugins.get("ImageCaptionUtils"),t=i.plugins.get("ImageUtils");if(!i.plugins.has(Ae)){this.isEnabled=!1,this.value=!1;return}const n=i.model.document.selection,s=n.getSelectedElement();if(!s){const o=e.getCaptionFromModelSelection(n);this.isEnabled=!!o,this.value=!!o;return}this.isEnabled=t.isImage(s),this.isEnabled?this.value=!!e.getCaptionFromImageModelElement(s):this.value=!1}execute(i={}){const{focusCaptionOnShow:e}=i;this.editor.model.change(t=>{this.value?this._hideImageCaption(t):this._showImageCaption(t,e)})}_showImageCaption(i,e){const n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageCaptionEditing"),o=this.editor.plugins.get("ImageUtils");let r=n.getSelectedElement();const l=s._getSavedCaption(r);o.isInlineImage(r)&&(this.editor.execute("imageTypeBlock"),r=n.getSelectedElement());const c=l||i.createElement("caption");i.append(c,r),e&&i.setSelection(c,"in")}_hideImageCaption(i){const e=this.editor,t=e.model.document.selection,n=e.plugins.get("ImageCaptionEditing"),s=e.plugins.get("ImageCaptionUtils");let o=t.getSelectedElement(),r;o?r=s.getCaptionFromImageModelElement(o):(r=s.getCaptionFromModelSelection(t),o=r.parent),n._saveCaption(o,r),i.setSelection(o,"on"),i.remove(r)}}class Dt extends p{constructor(e){super(e);f(this,"_savedCaptionsMap");this._savedCaptionsMap=new WeakMap}static get requires(){return[_,xe]}static get pluginName(){return"ImageCaptionEditing"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new Lt(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const e=this.editor,t=e.editing.view,n=e.plugins.get("ImageUtils"),s=e.plugins.get("ImageCaptionUtils"),o=e.t;e.conversion.for("upcast").elementToElement({view:r=>s.matchImageCaptionViewElement(r),model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:(r,{writer:l})=>n.isBlockImage(r.parent)?l.createContainerElement("figcaption"):null}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:(r,{writer:l})=>{if(!n.isBlockImage(r.parent))return null;const c=l.createEditableElement("figcaption");l.setCustomProperty("imageCaption",!0,c),c.placeholder=o("Enter image caption"),Ze({view:t,element:c,keepOnFocus:!0});const m=r.parent.getAttribute("alt"),g=m?o("Caption for image: %0",[m]):o("Caption for the image");return lt(c,l,{label:g})}})}_setupImageTypeCommandsIntegration(){const e=this.editor,t=e.plugins.get("ImageUtils"),n=e.plugins.get("ImageCaptionUtils"),s=e.commands.get("imageTypeInline"),o=e.commands.get("imageTypeBlock"),r=l=>{if(!l.return)return;const{oldElement:c,newElement:m}=l.return;/* istanbul ignore if: paranoid check -- @preserve */if(!c)return;if(t.isBlockImage(c)){const u=n.getCaptionFromImageModelElement(c);if(u){this._saveCaption(m,u);return}}const g=this._getSavedCaption(c);g&&this._saveCaption(m,g)};s&&this.listenTo(s,"execute",r,{priority:"low"}),o&&this.listenTo(o,"execute",r,{priority:"low"})}_getSavedCaption(e){const t=this._savedCaptionsMap.get(e);return t?Xe.fromJSON(t):null}_saveCaption(e,t){this._savedCaptionsMap.set(e,t.toJSON())}_registerCaptionReconversion(){const e=this.editor,t=e.model,n=e.plugins.get("ImageUtils"),s=e.plugins.get("ImageCaptionUtils");t.document.on("change:data",()=>{const o=t.document.differ.getChanges();for(const r of o){if(r.attributeKey!=="alt")continue;const l=r.range.start.nodeAfter;if(n.isBlockImage(l)){const c=s.getCaptionFromImageModelElement(l);if(!c)return;e.editing.reconvertItem(c)}}})}}class Mt extends p{static get requires(){return[xe]}static get pluginName(){return"ImageCaptionUI"}static get isOfficialPlugin(){return!0}init(){const i=this.editor,e=i.editing.view,t=i.plugins.get("ImageCaptionUtils"),n=i.t;i.ui.componentFactory.add("toggleImageCaption",s=>{const o=i.commands.get("toggleImageCaption"),r=new v(s);return r.set({icon:I.caption,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(o,"value","isEnabled"),r.bind("label").to(o,"value",l=>n(l?"Toggle caption off":"Toggle caption on")),this.listenTo(r,"execute",()=>{i.execute("toggleImageCaption",{focusCaptionOnShow:!0});const l=t.getCaptionFromModelSelection(i.model.document.selection);if(l){const c=i.editing.mapper.toViewElement(l);e.scrollToTheSelection(),e.change(m=>{m.addClass("image__caption_highlighted",c)})}i.editing.view.focus()}),r})}}class Hi extends p{static get requires(){return[Dt,Mt]}static get pluginName(){return"ImageCaption"}static get isOfficialPlugin(){return!0}}function Re(a){const i=a.map(e=>e.replace("+","\\+"));return new RegExp(`^image\\/(${i.join("|")})$`)}function Wt(a){return new Promise((i,e)=>{const t=a.getAttribute("src");fetch(t).then(n=>n.blob()).then(n=>{const s=ze(n,t),r=`image.${s.replace("image/","")}`,l=new File([n],r,{type:s});i(l)}).catch(n=>n&&n.name==="TypeError"?$t(t).then(i).catch(e):e(n))})}function qt(a,i){return!a.isInlineImageView(i)||!i.getAttribute("src")?!1:!!i.getAttribute("src").match(/^data:image\/\w+;base64,/g)||!!i.getAttribute("src").match(/^blob:/g)}function ze(a,i){return a.type?a.type:i.match(/data:(image\/\w+);base64/)?i.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}function $t(a){return jt(a).then(i=>{const e=ze(i,a),n=`image.${e.replace("image/","")}`;return new File([i],n,{type:e})})}function jt(a){return new Promise((i,e)=>{const t=x.document.createElement("img");t.addEventListener("load",()=>{const n=x.document.createElement("canvas");n.width=t.width,n.height=t.height,n.getContext("2d").drawImage(t,0,0),n.toBlob(o=>o?i(o):e())}),t.addEventListener("error",()=>e()),t.src=a})}class Ht extends p{static get pluginName(){return"ImageUploadUI"}static get isOfficialPlugin(){return!0}init(){const i=this.editor;i.ui.componentFactory.add("uploadImage",()=>this._createToolbarButton()),i.ui.componentFactory.add("imageUpload",()=>this._createToolbarButton()),i.ui.componentFactory.add("menuBar:uploadImage",()=>this._createMenuBarButton("standalone")),i.plugins.has("ImageInsertUI")&&i.plugins.get("ImageInsertUI").registerIntegration({name:"upload",observable:()=>i.commands.get("uploadImage"),buttonViewCreator:()=>this._createToolbarButton(),formViewCreator:()=>this._createDropdownButton(),menuBarButtonViewCreator:e=>this._createMenuBarButton(e?"insertOnly":"insertNested")})}_createButton(i){const e=this.editor,t=e.locale,n=e.commands.get("uploadImage"),s=e.config.get("image.upload.types"),o=Re(s),r=new i(e.locale),l=t.t;return r.set({acceptedType:s.map(c=>`image/${c}`).join(","),allowMultipleFiles:!0,label:l("Upload from computer"),icon:I.imageUpload}),r.bind("isEnabled").to(n),r.on("done",(c,m)=>{const g=Array.from(m).filter(u=>o.test(u.type));g.length&&(e.execute("uploadImage",{file:g}),e.editing.view.focus())}),r}_createToolbarButton(){const i=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),t=this.editor.commands.get("uploadImage"),n=this._createButton(oe);return n.tooltip=!0,n.bind("label").to(e,"isImageSelected",t,"isAccessAllowed",(s,o)=>i(o?s?"Replace image from computer":"Upload image from computer":"You have no image upload permissions.")),n}_createDropdownButton(){const i=this.editor.locale.t,e=this.editor.plugins.get("ImageInsertUI"),t=this._createButton(oe);return t.withText=!0,t.bind("label").to(e,"isImageSelected",n=>i(n?"Replace from computer":"Upload from computer")),t.on("execute",()=>{e.dropdownView.isOpen=!1}),t}_createMenuBarButton(i){const e=this.editor.locale.t,t=this._createButton(pt);switch(t.withText=!0,i){case"standalone":t.label=e("Image from computer");break;case"insertOnly":t.label=e("Image");break;case"insertNested":t.label=e("From computer");break}return t}}class Gt extends p{constructor(e){super(e);f(this,"placeholder");f(this,"uploadStatusChange",(e,t,n)=>{const s=this.editor,o=t.item,r=o.getAttribute("uploadId");if(!n.consumable.consume(t.item,e.name))return;const l=s.plugins.get("ImageUtils"),c=s.plugins.get(k),m=r?t.attributeNewValue:null,g=this.placeholder,u=s.editing.mapper.toViewElement(o),d=n.writer;if(m=="reading"){re(u,d),le(l,g,u,d);return}if(m=="uploading"){const h=c.loaders.get(r);re(u,d),h?(ce(u,d),Jt(u,d,h,s.editing.view),ei(l,u,d,h)):le(l,g,u,d);return}m=="complete"&&c.loaders.get(r)&&Xt(u,d,s.editing.view),Zt(u,d),ce(u,d),Kt(u,d)});this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}static get isOfficialPlugin(){return!0}init(){const e=this.editor;e.plugins.has("ImageBlockEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),e.plugins.has("ImageInlineEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function re(a,i){a.hasClass("ck-appear")||i.addClass("ck-appear",a)}function Kt(a,i){i.removeClass("ck-appear",a)}function le(a,i,e,t){e.hasClass("ck-image-upload-placeholder")||t.addClass("ck-image-upload-placeholder",e);const n=a.findViewImgElement(e);n.getAttribute("src")!==i&&t.setAttribute("src",i,n),Pe(e,"placeholder")||t.insert(t.createPositionAfter(n),Qt(t))}function ce(a,i){a.hasClass("ck-image-upload-placeholder")&&i.removeClass("ck-image-upload-placeholder",a),Oe(a,i,"placeholder")}function Jt(a,i,e,t){const n=Yt(i);i.insert(i.createPositionAt(a,"end"),n),e.on("change:uploadedPercent",(s,o,r)=>{t.change(l=>{l.setStyle("width",r+"%",n)})})}function Zt(a,i){Oe(a,i,"progressBar")}function Xt(a,i,e){const t=i.createUIElement("div",{class:"ck-image-upload-complete-icon"});i.insert(i.createPositionAt(a,"end"),t),setTimeout(()=>{e.change(n=>n.remove(n.createRangeOn(t)))},3e3)}function Yt(a){const i=a.createUIElement("div",{class:"ck-progress-bar"});return a.setCustomProperty("progressBar",!0,i),i}function Qt(a){const i=a.createUIElement("div",{class:"ck-upload-placeholder-loader"});return a.setCustomProperty("placeholder",!0,i),i}function Pe(a,i){for(const e of a.getChildren())if(e.getCustomProperty(i))return e}function Oe(a,i,e){const t=Pe(a,e);t&&i.remove(i.createRangeOn(t))}function ei(a,i,e,t){if(t.data){const n=a.findViewImgElement(i);e.setAttribute("src",t.data,n)}}class ti extends C{constructor(i){super(i),this.set("isAccessAllowed",!0)}refresh(){const i=this.editor,e=i.plugins.get("ImageUtils"),t=i.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(t)}execute(i){const e=he(i.file),t=this.editor.model.document.selection,n=this.editor.plugins.get("ImageUtils"),s=Object.fromEntries(t.getAttributes());e.forEach((o,r)=>{const l=t.getSelectedElement();if(r&&l&&n.isImage(l)){const c=this.editor.model.createPositionAfter(l);this._uploadImage(o,s,c)}else this._uploadImage(o,s)})}_uploadImage(i,e,t){const n=this.editor,o=n.plugins.get(k).createLoader(i),r=n.plugins.get("ImageUtils");o&&r.insertImage({...e,uploadId:o.id},t)}}class ii extends p{constructor(e){super(e);f(this,"_uploadImageElements");f(this,"_uploadedImages",new Map);e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[k,se,j,_]}static get pluginName(){return"ImageUploadEditing"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.model.document,n=e.conversion,s=e.plugins.get(k),o=e.plugins.get("ImageUtils"),r=e.plugins.get("ClipboardPipeline"),l=Re(e.config.get("image.upload.types")),c=new ti(e);e.commands.add("uploadImage",c),e.commands.add("imageUpload",c),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}).add(m=>m.on("element:img",(g,u,d)=>{if(!d.consumable.test(u.viewItem,{attributes:["data-ck-upload-id"]}))return;const h=u.viewItem.getAttribute("data-ck-upload-id");if(!h)return;const[b]=Array.from(u.modelRange.getItems({shallow:!0})),w=s.loaders.get(h);b&&(d.writer.setAttribute("uploadId",h,b),d.consumable.consume(u.viewItem,{attributes:["data-ck-upload-id"]}),w&&w.data&&d.writer.setAttribute("uploadStatus",w.status,b))},{priority:"low"})),this.listenTo(e.editing.view.document,"clipboardInput",(m,g)=>{if(ni(g.dataTransfer))return;const u=Array.from(g.dataTransfer.files).filter(h=>h?l.test(h.type):!1);if(!u.length)return;if(m.stop(),e.model.change(h=>{g.targetRanges&&h.setSelection(g.targetRanges.map(b=>e.editing.mapper.toModelRange(b))),e.execute("uploadImage",{file:u})}),!e.commands.get("uploadImage").isAccessAllowed){const h=e.plugins.get("Notification"),b=e.locale.t;h.showWarning(b("You have no image upload permissions."),{namespace:"image"})}}),this.listenTo(r,"inputTransformation",(m,g)=>{const u=Array.from(e.editing.view.createRangeIn(g.content)).map(h=>h.item).filter(h=>qt(o,h)&&!h.getAttribute("uploadProcessed")).map(h=>({promise:Wt(h),imageElement:h}));if(!u.length)return;const d=new H(e.editing.view.document);for(const h of u){d.setAttribute("uploadProcessed",!0,h.imageElement);const b=s.createLoader(h.promise);b&&(d.setAttribute("src","",h.imageElement),d.setAttribute("uploadId",b.id,h.imageElement))}}),e.editing.view.document.on("dragover",(m,g)=>{g.preventDefault()}),t.on("change",()=>{const m=t.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),g=new Set;for(const u of m)if(u.type=="insert"&&u.name!="$text"){const d=u.position.nodeAfter,h=u.position.root.rootName=="$graveyard";for(const b of si(e,d)){const w=b.getAttribute("uploadId");if(!w)continue;const E=s.loaders.get(w);if(!E){!h&&this._uploadedImages.has(w)&&e.model.enqueueChange({isUndoable:!1},S=>{S.setAttribute("uploadStatus","complete",b),this.fire("uploadComplete",{data:this._uploadedImages.get(w),imageElement:b})});continue}h?g.has(w)||Array.from(this._uploadImageElements.get(w)).every(T=>T.root.rootName=="$graveyard")&&E.abort():(g.add(w),this._uploadImageElements.has(w)?this._uploadImageElements.get(w).add(b):this._uploadImageElements.set(w,new Set([b])),E.status=="idle"&&this._readAndUpload(E))}}}),this.on("uploadComplete",(m,{imageElement:g,data:u})=>{const d=u.urls?u.urls:u;this.editor.model.change(h=>{h.setAttribute("src",d.default,g),this._parseAndSetSrcsetAttributeOnImage(d,g,h),o.setImageNaturalSizeAttributes(g)})},{priority:"low"})}afterInit(){const e=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&(e.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this._registerConverters("imageBlock")),this.editor.plugins.has("ImageInlineEditing")&&(e.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]}),this._registerConverters("imageInline"))}_readAndUpload(e){const t=this.editor,n=t.model,s=t.locale.t,o=t.plugins.get(k),r=t.plugins.get(se),l=t.plugins.get("ImageUtils"),c=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},g=>{const u=c.get(e.id);for(const d of u)g.setAttribute("uploadStatus","reading",d)}),e.read().then(()=>{const g=e.upload();t.ui&&t.ui.ariaLiveAnnouncer.announce(s("Uploading image"));for(const u of c.get(e.id)){/* istanbul ignore next -- @preserve */if(st.isSafari){const d=t.editing.mapper.toViewElement(u),h=l.findViewImgElement(d);t.editing.view.once("render",()=>{if(!h.parent)return;const b=t.editing.view.domConverter.mapViewToDom(h.parent);if(!b)return;const w=b.style.display;b.style.display="none",b._ckHack=b.offsetHeight,b.style.display=w})}n.enqueueChange({isUndoable:!1},d=>{d.setAttribute("uploadStatus","uploading",u)})}return g}).then(g=>{n.enqueueChange({isUndoable:!1},u=>{for(const d of c.get(e.id))u.setAttribute("uploadStatus","complete",d),this.fire("uploadComplete",{data:g,imageElement:d});t.ui&&t.ui.ariaLiveAnnouncer.announce(s("Image upload complete")),this._uploadedImages.set(e.id,g)}),m()}).catch(g=>{if(t.ui&&t.ui.ariaLiveAnnouncer.announce(s("Error during image upload")),e.status!=="error"&&e.status!=="aborted")throw g;e.status=="error"&&g&&r.showWarning(g,{title:s("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},u=>{for(const d of c.get(e.id))d.root.rootName!=="$graveyard"&&u.remove(d)}),m()});function m(){n.enqueueChange({isUndoable:!1},g=>{for(const u of c.get(e.id))g.removeAttribute("uploadId",u),g.removeAttribute("uploadStatus",u);c.delete(e.id)}),o.destroyLoader(e)}}_parseAndSetSrcsetAttributeOnImage(e,t,n){let s=0;const o=Object.keys(e).filter(r=>{const l=parseInt(r,10);if(!isNaN(l))return s=Math.max(s,l),!0}).map(r=>`${e[r]} ${r}w`).join(", ");if(o!=""){const r={srcset:o};!t.hasAttribute("width")&&!t.hasAttribute("height")&&(r.width=s),n.setAttributes(r,t)}}_registerConverters(e){const{conversion:t,plugins:n}=this.editor,s=n.get(k),o=n.get(_);t.for("dataDowncast").add(r=>{r.on(`attribute:uploadId:${e}`,(l,c,m)=>{if(!m.consumable.test(c.item,l.name))return;const g=s.loaders.get(c.attributeNewValue);if(!g||!g.data)return null;const u=m.mapper.toViewElement(c.item),d=o.findViewImgElement(u);d&&(m.consumable.consume(c.item,l.name),m.writer.setAttribute("data-ck-upload-id",g.id,d))})})}}function ni(a){return Array.from(a.types).includes("text/html")&&a.getData("text/html")!==""}function si(a,i){const e=a.plugins.get("ImageUtils");return Array.from(a.model.createRangeOn(i)).filter(t=>e.isImage(t.item)).map(t=>t.item)}class oi extends p{static get pluginName(){return"ImageUpload"}static get isOfficialPlugin(){return!0}static get requires(){return[ii,Ht,Gt]}}class ai extends N{constructor(e){super(e);f(this,"urlInputView");f(this,"keystrokes");this.set("imageURLInputValue",""),this.set("isImageSelected",!1),this.set("isEnabled",!0),this.keystrokes=new O,this.urlInputView=this._createUrlInputView(),this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-url"],tabindex:"-1"},children:[this.urlInputView,{tag:"div",attributes:{class:["ck","ck-image-insert-url__action-row"]}}]})}render(){super.render(),F({view:this}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.keystrokes.destroy()}_createUrlInputView(){const e=this.locale,t=e.t,n=new Y(e,ye);return n.bind("label").to(this,"isImageSelected",s=>t(s?"Update image URL":"Insert image via URL")),n.bind("isEnabled").to(this),n.fieldView.inputMode="url",n.fieldView.placeholder="https://example.com/image.png",n.fieldView.bind("value").to(this,"imageURLInputValue",s=>s||""),n.fieldView.on("input",()=>{this.imageURLInputValue=n.fieldView.element.value.trim()}),n}focus(){this.urlInputView.focus()}}class ri extends p{constructor(){super(...arguments);f(this,"_imageInsertUI");f(this,"_formView")}static get pluginName(){return"ImageInsertViaUrlUI"}static get isOfficialPlugin(){return!0}static get requires(){return[V,dt]}init(){this.editor.ui.componentFactory.add("insertImageViaUrl",()=>this._createToolbarButton()),this.editor.ui.componentFactory.add("menuBar:insertImageViaUrl",()=>this._createMenuBarButton("standalone"))}afterInit(){this._imageInsertUI=this.editor.plugins.get("ImageInsertUI"),this._imageInsertUI.registerIntegration({name:"url",observable:()=>this.editor.commands.get("insertImage"),buttonViewCreator:()=>this._createToolbarButton(),formViewCreator:()=>this._createDropdownButton(),menuBarButtonViewCreator:e=>this._createMenuBarButton(e?"insertOnly":"insertNested")})}_createInsertUrlButton(e){const t=new e(this.editor.locale);return t.icon=I.imageUrl,t.on("execute",()=>{this._showModal()}),t}_createToolbarButton(){const e=this.editor.locale.t,t=this._createInsertUrlButton(v);return t.tooltip=!0,t.bind("label").to(this._imageInsertUI,"isImageSelected",n=>e(n?"Update image URL":"Insert image via URL")),t}_createDropdownButton(){const e=this.editor.locale.t,t=this._createInsertUrlButton(v);return t.withText=!0,t.bind("label").to(this._imageInsertUI,"isImageSelected",n=>e(n?"Update image URL":"Insert via URL")),t}_createMenuBarButton(e){const t=this.editor.locale.t,n=this._createInsertUrlButton(ht);switch(n.withText=!0,e){case"standalone":n.label=t("Image via URL");break;case"insertOnly":n.label=t("Image");break;case"insertNested":n.label=t("Via URL");break}return n}_createInsertUrlView(){const e=this.editor,t=e.locale,n=e.commands.get("replaceImageSource"),s=e.commands.get("insertImage"),o=new ai(t);return o.bind("isImageSelected").to(this._imageInsertUI),o.bind("isEnabled").toMany([s,n],"isEnabled",(...r)=>r.some(l=>l)),o}_showModal(){const e=this.editor,n=e.locale.t,s=e.plugins.get("Dialog");this._formView||(this._formView=this._createInsertUrlView(),this._formView.on("submit",()=>this._handleSave()));const o=e.commands.get("replaceImageSource");this._formView.imageURLInputValue=o.value||"",s.show({id:"insertImageViaUrl",title:this._imageInsertUI.isImageSelected?n("Update image URL"):n("Insert image via URL"),isModal:!0,content:this._formView,actionButtons:[{label:n("Cancel"),withText:!0,onExecute:()=>s.hide()},{label:n("Accept"),class:"ck-button-action",withText:!0,onExecute:()=>this._handleSave()}]})}_handleSave(){this.editor.commands.get("replaceImageSource").isEnabled?this.editor.execute("replaceImageSource",{source:this._formView.imageURLInputValue}):this.editor.execute("insertImage",{source:this._formView.imageURLInputValue}),this.editor.plugins.get("Dialog").hide()}}class li extends p{static get pluginName(){return"ImageInsertViaUrl"}static get isOfficialPlugin(){return!0}static get requires(){return[ri,V]}}class Gi extends p{static get pluginName(){return"ImageInsert"}static get isOfficialPlugin(){return!0}static get requires(){return[oi,li,V]}}class ci extends C{refresh(){const i=this.editor,t=i.plugins.get("ImageUtils").getClosestSelectedImageElement(i.model.document.selection);this.isEnabled=!!t,!t||!t.hasAttribute("resizedWidth")?this.value=null:this.value={width:t.getAttribute("resizedWidth"),height:null}}execute(i){const e=this.editor,t=e.model,n=e.plugins.get("ImageUtils"),s=n.getClosestSelectedImageElement(t.document.selection);this.value={width:i.width,height:null},s&&t.change(o=>{o.setAttribute("resizedWidth",i.width,s),o.removeAttribute("resizedHeight",s),n.setImageNaturalSizeAttributes(s)})}}class Ne extends p{static get requires(){return[_]}static get pluginName(){return"ImageResizeEditing"}static get isOfficialPlugin(){return!0}constructor(i){super(i),i.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:custom",value:"custom",icon:"custom"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]})}init(){const i=this.editor,e=new ci(i);this._registerConverters("imageBlock"),this._registerConverters("imageInline"),i.commands.add("resizeImage",e),i.commands.add("imageResize",e)}afterInit(){this._registerSchema()}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["resizedWidth","resizedHeight"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["resizedWidth","resizedHeight"]})}_registerConverters(i){const e=this.editor,t=e.plugins.get("ImageUtils");e.conversion.for("downcast").add(n=>n.on(`attribute:resizedWidth:${i}`,(s,o,r)=>{if(!r.consumable.consume(o.item,s.name))return;const l=r.writer,c=r.mapper.toViewElement(o.item);o.attributeNewValue!==null?(l.setStyle("width",o.attributeNewValue,c),l.addClass("image_resized",c)):(l.removeStyle("width",c),l.removeClass("image_resized",c))})),e.conversion.for("dataDowncast").attributeToAttribute({model:{name:i,key:"resizedHeight"},view:n=>({key:"style",value:{height:n}})}),e.conversion.for("editingDowncast").add(n=>n.on(`attribute:resizedHeight:${i}`,(s,o,r)=>{if(!r.consumable.consume(o.item,s.name))return;const l=r.writer,c=r.mapper.toViewElement(o.item),m=i==="imageInline"?t.findViewImgElement(c):c;o.attributeNewValue!==null?l.setStyle("height",o.attributeNewValue,m):l.removeStyle("height",m)})),e.conversion.for("upcast").attributeToAttribute({view:{name:i==="imageBlock"?"figure":"img",styles:{width:/.+/}},model:{key:"resizedWidth",value:n=>z(n)?null:n.getStyle("width")}}),e.conversion.for("upcast").attributeToAttribute({view:{name:i==="imageBlock"?"figure":"img",styles:{height:/.+/}},model:{key:"resizedHeight",value:n=>z(n)?null:n.getStyle("height")}})}}const M={small:I.objectSizeSmall,medium:I.objectSizeMedium,large:I.objectSizeLarge,custom:I.objectSizeCustom,original:I.objectSizeFull};class mi extends p{constructor(e){super(e);f(this,"_resizeUnit");this._resizeUnit=e.config.get("image.resizeUnit")}static get requires(){return[Ne]}static get pluginName(){return"ImageResizeButtons"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.config.get("image.resizeOptions"),n=e.commands.get("resizeImage");this.bind("isEnabled").to(n);for(const s of t)this._registerImageResizeButton(s);this._registerImageResizeDropdown(t)}_registerImageResizeButton(e){const t=this.editor,{name:n,value:s,icon:o}=e;t.ui.componentFactory.add(n,r=>{const l=new v(r),c=t.commands.get("resizeImage"),m=this._getOptionLabelValue(e,!0);if(!M[o])throw new it("imageresizebuttons-missing-icon",t,e);if(l.set({label:m,icon:M[o],tooltip:m,isToggleable:!0}),l.bind("isEnabled").to(this),t.plugins.has("ImageCustomResizeUI")&&B(e)){const g=t.plugins.get("ImageCustomResizeUI");this.listenTo(l,"execute",()=>{g._showForm(this._resizeUnit)})}else{const g=s?s+this._resizeUnit:null;l.bind("isOn").to(c,"value",q(g)),this.listenTo(l,"execute",()=>{t.execute("resizeImage",{width:g})})}return l})}_registerImageResizeDropdown(e){const t=this.editor,n=t.t,s=e.find(r=>!r.value),o=r=>{const l=t.commands.get("resizeImage"),c=J(r,wt),m=c.buttonView,g=n("Resize image");return m.set({tooltip:g,commandValue:s.value,icon:M.medium,isToggleable:!0,label:this._getOptionLabelValue(s),withText:!0,class:"ck-resize-image-button",ariaLabel:g,ariaLabelledBy:void 0}),m.bind("label").to(l,"value",u=>u&&u.width?u.width:this._getOptionLabelValue(s)),c.bind("isEnabled").to(this),_t(c,()=>this._getResizeDropdownListItemDefinitions(e,l),{ariaLabel:n("Image resize list"),role:"menu"}),this.listenTo(c,"execute",u=>{"onClick"in u.source?u.source.onClick():(t.execute(u.source.commandName,{width:u.source.commandValue}),t.editing.view.focus())}),c};t.ui.componentFactory.add("resizeImage",o),t.ui.componentFactory.add("imageResize",o)}_getOptionLabelValue(e,t=!1){const n=this.editor.t;return e.label?e.label:t?B(e)?n("Custom image size"):e.value?n("Resize image to %0",e.value+this._resizeUnit):n("Resize image to the original size"):B(e)?n("Custom"):e.value?e.value+this._resizeUnit:n("Original")}_getResizeDropdownListItemDefinitions(e,t){const{editor:n}=this,s=new nt,o=e.map(r=>B(r)?{...r,valueWithUnits:"custom"}:r.value?{...r,valueWithUnits:`${r.value}${this._resizeUnit}`}:{...r,valueWithUnits:null});for(const r of o){let l=null;if(n.plugins.has("ImageCustomResizeUI")&&B(r)){const c=n.plugins.get("ImageCustomResizeUI");l={type:"button",model:new ne({label:this._getOptionLabelValue(r),role:"menuitemradio",withText:!0,icon:null,onClick:()=>{c._showForm(this._resizeUnit)}})};const m=vt(o,"valueWithUnits");l.model.bind("isOn").to(t,"value",ui(m))}else l={type:"button",model:new ne({commandName:"resizeImage",commandValue:r.valueWithUnits,label:this._getOptionLabelValue(r),role:"menuitemradio",withText:!0,icon:null})},l.model.bind("isOn").to(t,"value",q(r.valueWithUnits));l.model.bind("isEnabled").to(t,"isEnabled"),s.add(l)}return s}}function B(a){return a.value==="custom"}function q(a){return i=>{const e=i;return a===null&&e===a?!0:e!==null&&e.width===a}}function ui(a){return i=>!a.some(e=>q(e)(i))}const gi="figure.image.ck-widget > img,figure.image.ck-widget > picture > img,figure.image.ck-widget > a > img,figure.image.ck-widget > a > picture > img,span.image-inline.ck-widget > img,span.image-inline.ck-widget > picture > img",W="image_resized";class di extends p{static get requires(){return[D,_]}static get pluginName(){return"ImageResizeHandles"}static get isOfficialPlugin(){return!0}init(){const i=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(i),this._setupResizerCreator()}_setupResizerCreator(){const i=this.editor,e=i.editing.view,t=i.plugins.get("ImageUtils");e.addObserver(te),this.listenTo(e.document,"imageLoaded",(n,s)=>{if(!s.target.matches(gi))return;const o=i.editing.view.domConverter,r=o.domToView(s.target),l=t.getImageWidgetFromImageView(r);let c=this.editor.plugins.get(D).getResizerByViewElement(l);if(c){c.redraw();return}const m=i.editing.mapper,g=m.toModelElement(l);c=i.plugins.get(D).attachTo({unit:i.config.get("image.resizeUnit"),modelElement:g,viewElement:l,editor:i,getHandleHost(u){return u.querySelector("img")},getResizeHost(){return o.mapViewToDom(m.toViewElement(g))},isCentered(){return g.getAttribute("imageStyle")=="alignCenter"},onCommit(u){e.change(d=>{d.removeClass(W,l)}),i.execute("resizeImage",{width:u})}}),c.on("updateSize",()=>{l.hasClass(W)||e.change(d=>{d.addClass(W,l)});const u=g.name==="imageInline"?r:l;u.getStyle("height")&&e.change(d=>{d.removeStyle("height",u)})}),c.bind("isEnabled").to(this)})}}/**
5
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
6
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
7
+ */function Fe(a){if(!a)return null;const[,i,e]=a.trim().match(/([.,\d]+)(%|px)$/)||[],t=Number.parseFloat(i);return Number.isNaN(t)?null:{value:t,unit:e}}function Le(a,i,e){return e==="px"?{value:i.value,unit:"px"}:{value:i.value/a*100,unit:"%"}}/**
8
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
9
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
10
+ */function De(a){const{editing:i}=a,t=a.plugins.get("ImageUtils").getClosestSelectedImageElement(a.model.document.selection);if(!t)return null;const n=i.mapper.toViewElement(t),s=i.view.domConverter.mapViewToDom(n);return{model:t,view:n,dom:s}}function hi(a,i){const e=De(a);if(!e)return null;const t=Fe(e.model.getAttribute("resizedWidth")||null);if(!t)return null;if(t.unit===i)return t;const n=pe(e.dom),s={value:new ot(e.dom).width};return Le(n,s,i)}class fi extends N{constructor(e,t,n){super(e);f(this,"focusTracker");f(this,"keystrokes");f(this,"unit");f(this,"labeledInput");f(this,"saveButtonView");f(this,"cancelButtonView");f(this,"_focusables");f(this,"_focusCycler");f(this,"_validators");const s=this.locale.t;this.focusTracker=new K,this.keystrokes=new O,this.unit=t,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(s("Save"),I.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(s("Cancel"),I.cancel,"ck-button-cancel","cancel"),this._focusables=new Z,this._validators=n,this._focusCycler=new X({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-custom-resize-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),F({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(e,t,n,s){const o=new v(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),s&&o.delegate("execute").to(this,s),o}_createLabeledInputView(){const e=this.locale.t,t=new Y(this.locale,yt);return t.label=e("Resize image (in %0)",this.unit),t.fieldView.set({step:.1}),t}isValid(){this.resetFormStatus();for(const e of this._validators){const t=e(this);if(t)return this.labeledInput.errorText=t,!1}return!0}resetFormStatus(){this.labeledInput.errorText=null}get rawSize(){const{element:e}=this.labeledInput.fieldView;return e?e.value:null}get parsedSize(){const{rawSize:e}=this;if(e===null)return null;const t=Number.parseFloat(e);return Number.isNaN(t)?null:t}get sizeWithUnits(){const{parsedSize:e,unit:t}=this;return e===null?null:`${e}${t}`}}function pi(a,i){const e=De(a);if(!e)return null;const t=pe(e.dom),n=Fe(window.getComputedStyle(e.dom).minWidth)||{value:1},s=Math.max(.1,Le(t,n,i).value);return{unit:i,lower:s,upper:i==="px"?t:100}}class Ii extends p{constructor(){super(...arguments);f(this,"_balloon");f(this,"_form")}static get requires(){return[be]}static get pluginName(){return"ImageCustomResizeUI"}static get isOfficialPlugin(){return!0}destroy(){super.destroy(),this._form&&this._form.destroy()}_createForm(e){const t=this.editor;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(we(fi))(t.locale,e,bi(t)),this._form.render(),this.listenTo(this._form,"submit",()=>{this._form.isValid()&&(t.execute("resizeImage",{width:this._form.sizeWithUnits}),this._hideForm(!0))}),this.listenTo(this._form.labeledInput,"change:errorText",()=>{t.ui.update()}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(n,s)=>{this._hideForm(!0),s()}),_e({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(e){if(this._isVisible)return;this._form||this._createForm(e);const t=this.editor,n=this._form.labeledInput;this._form.disableCssTransitions(),this._form.resetFormStatus(),this._isInBalloon||this._balloon.add({view:this._form,position:ee(t)});const s=hi(t,e),o=s?s.value.toFixed(1):"",r=pi(t,e);n.fieldView.value=n.fieldView.element.value=o,r&&Object.assign(n.fieldView,{min:r.lower.toFixed(1),max:Math.ceil(r.upper).toFixed(1)}),this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(e=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}function bi(a){const i=a.t;return[e=>{if(e.rawSize.trim()==="")return i("The value must not be empty.");if(e.parsedSize===null)return i("The value should be a plain number.")}]}class Ki extends p{static get requires(){return[Ne,di,Ii,mi]}static get pluginName(){return"ImageResize"}static get isOfficialPlugin(){return!0}}class wi extends C{constructor(e,t){super(e);f(this,"_defaultStyles");f(this,"_styles");this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(t.map(n=>{if(n.isDefault)for(const s of n.modelElements)this._defaultStyles[s]=n.name;return[n.name,n]}))}refresh(){const n=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!n,this.isEnabled?n.hasAttribute("imageStyle")?this.value=n.getAttribute("imageStyle"):this.value=this._defaultStyles[n.name]:this.value=!1}execute(e={}){const t=this.editor,n=t.model,s=t.plugins.get("ImageUtils");n.change(o=>{const r=e.value,{setImageSizes:l=!0}=e;let c=s.getClosestSelectedImageElement(n.document.selection);r&&this.shouldConvertImageType(r,c)&&(this.editor.execute(s.isBlockImage(c)?"imageTypeInline":"imageTypeBlock",{setImageSizes:l}),c=s.getClosestSelectedImageElement(n.document.selection)),!r||this._styles.get(r).isDefault?o.removeAttribute("imageStyle",c):o.setAttribute("imageStyle",r,c),l&&s.setImageNaturalSizeAttributes(c)})}shouldConvertImageType(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}const A={get inline(){return{name:"inline",title:"In line",icon:I.objectInline,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:I.objectLeft,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:I.objectBlockLeft,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:I.objectCenter,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:I.objectRight,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:I.objectBlockRight,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:I.objectCenter,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:I.objectRight,modelElements:["imageBlock"],className:"image-style-side"}}},Me={full:I.objectFullWidth,left:I.objectBlockLeft,right:I.objectBlockRight,center:I.objectCenter,inlineLeft:I.objectLeft,inlineRight:I.objectRight,inline:I.objectInline},We=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function _i(a){return(a.configuredStyles.options||[]).map(t=>Ci(t)).filter(t=>Ei(t,a))}function yi(a,i){return a&&i?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:a?{options:["block","side"]}:i?{options:["inline","alignLeft","alignRight"]}:{}}function vi(a){return a.has("ImageBlockEditing")&&a.has("ImageInlineEditing")?[...We]:[]}function Ci(a){return typeof a=="string"?A[a]?a={...A[a]}:a={name:a}:a=ki(A[a.name],a),typeof a.icon=="string"&&(a.icon=Me[a.icon]||a.icon),a}function Ei(a,{isBlockPluginLoaded:i,isInlinePluginLoaded:e}){const{modelElements:t,name:n}=a;if(!t||!t.length||!n)return qe({style:a}),!1;{const s=[i?"imageBlock":null,e?"imageInline":null];if(!t.some(o=>s.includes(o)))return y("image-style-missing-dependency",{style:a,missingPlugins:t.map(o=>o==="imageBlock"?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}function ki(a,i){const e={...i};for(const t in a)Object.prototype.hasOwnProperty.call(i,t)||(e[t]=a[t]);return e}function qe(a){y("image-style-configuration-definition-invalid",a)}var $={normalizeStyles:_i,getDefaultStylesConfiguration:yi,getDefaultDropdownDefinitions:vi,warnInvalidStyle:qe,DEFAULT_OPTIONS:A,DEFAULT_ICONS:Me,DEFAULT_DROPDOWN_DEFINITIONS:We};function Si(a){return(i,e,t)=>{if(!t.consumable.consume(e.item,i.name))return;const n=me(e.attributeNewValue,a),s=me(e.attributeOldValue,a),o=t.mapper.toViewElement(e.item),r=t.writer;s&&r.removeClass(s.className,o),n&&r.addClass(n.className,o)}}function Ui(a){const i={imageInline:a.filter(e=>!e.isDefault&&e.modelElements.includes("imageInline")),imageBlock:a.filter(e=>!e.isDefault&&e.modelElements.includes("imageBlock"))};return(e,t,n)=>{if(!t.modelRange)return;const s=t.viewItem,o=G(t.modelRange.getItems());if(o&&n.schema.checkAttribute(o,"imageStyle"))for(const r of i[o.name])n.consumable.consume(s,{classes:r.className})&&n.writer.setAttribute("imageStyle",r.name,o)}}function me(a,i){for(const e of i)if(e.name===a)return e}class $e extends p{constructor(){super(...arguments);f(this,"normalizedStyles")}static get pluginName(){return"ImageStyleEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[_]}init(){const{normalizeStyles:e,getDefaultStylesConfiguration:t}=$,n=this.editor,s=n.plugins.has("ImageBlockEditing"),o=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",t(s,o)),this.normalizedStyles=e({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:s,isInlinePluginLoaded:o}),this._setupConversion(s,o),this._setupPostFixer(),n.commands.add("imageStyle",new wi(n,this.normalizedStyles))}_setupConversion(e,t){const n=this.editor,s=n.model.schema,o=Si(this.normalizedStyles),r=Ui(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",o),n.data.downcastDispatcher.on("attribute:imageStyle",o),e&&(s.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",r,{priority:"low"})),t&&(s.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",r,{priority:"low"}))}_setupPostFixer(){const e=this.editor,t=e.model.document,n=e.plugins.get(_),s=new Map(this.normalizedStyles.map(o=>[o.name,o]));t.registerPostFixer(o=>{let r=!1;for(const l of t.differ.getChanges())if(l.type=="insert"||l.type=="attribute"&&l.attributeKey=="imageStyle"){let c=l.type=="insert"?l.position.nodeAfter:l.range.start.nodeAfter;if(c&&c.is("element","paragraph")&&c.childCount>0&&(c=c.getChild(0)),!n.isImage(c))continue;const m=c.getAttribute("imageStyle");if(!m)continue;const g=s.get(m);(!g||!g.modelElements.includes(c.name))&&(o.removeAttribute("imageStyle",c),r=!0)}return r})}}class Bi extends p{static get requires(){return[$e]}static get pluginName(){return"ImageStyleUI"}static get isOfficialPlugin(){return!0}get localizedDefaultStylesTitles(){const i=this.editor.t;return{"Wrap text":i("Wrap text"),"Break text":i("Break text"),"In line":i("In line"),"Full size image":i("Full size image"),"Side image":i("Side image"),"Left aligned image":i("Left aligned image"),"Centered image":i("Centered image"),"Right aligned image":i("Right aligned image")}}init(){const i=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],t=i.get("ImageStyleEditing"),n=ue(t.normalizedStyles,this.localizedDefaultStylesTitles);for(const o of n)this._createButton(o);const s=ue([...e.filter(ve),...$.getDefaultDropdownDefinitions(i)],this.localizedDefaultStylesTitles);for(const o of s)this._createDropdown(o,n)}_createDropdown(i,e){const t=this.editor.ui.componentFactory;t.add(i.name,n=>{let s;const{defaultItem:o,items:r,title:l}=i,c=r.filter(d=>e.find(({name:h})=>ge(h)===d)).map(d=>{const h=t.create(d);return d===o&&(s=h),h});r.length!==c.length&&$.warnInvalidStyle({dropdown:i});const m=J(n,Ie),g=m.buttonView,u=g.arrowView;return ft(m,c,{enableActiveItemFocusOnDropdownOpen:!0}),g.set({label:de(l,s.label),class:null,tooltip:!0}),u.unbind("label"),u.set({label:l}),g.bind("icon").toMany(c,"isOn",(...d)=>{const h=d.findIndex(U);return h<0?s.icon:c[h].icon}),g.bind("label").toMany(c,"isOn",(...d)=>{const h=d.findIndex(U);return de(l,h<0?s.label:c[h].label)}),g.bind("isOn").toMany(c,"isOn",(...d)=>d.some(U)),g.bind("class").toMany(c,"isOn",(...d)=>d.some(U)?"ck-splitbutton_flatten":void 0),g.on("execute",()=>{c.some(({isOn:d})=>d)?m.isOpen=!m.isOpen:s.fire("execute")}),m.bind("isEnabled").toMany(c,"isEnabled",(...d)=>d.some(U)),this.listenTo(m,"execute",()=>{this.editor.editing.view.focus()}),m})}_createButton(i){const e=i.name;this.editor.ui.componentFactory.add(ge(e),t=>{const n=this.editor.commands.get("imageStyle"),s=new v(t);return s.set({label:i.title,icon:i.icon,tooltip:!0,isToggleable:!0}),s.bind("isEnabled").to(n,"isEnabled"),s.bind("isOn").to(n,"value",o=>o===e),s.on("execute",this._executeCommand.bind(this,e)),s})}_executeCommand(i){this.editor.execute("imageStyle",{value:i}),this.editor.editing.view.focus()}}function ue(a,i){for(const e of a)i[e.title]&&(e.title=i[e.title]);return a}function ge(a){return`imageStyle:${a}`}function de(a,i){return(a?a+": ":"")+i}class Ji extends p{static get requires(){return[$e,Bi]}static get pluginName(){return"ImageStyle"}static get isOfficialPlugin(){return!0}}class Zi extends p{static get requires(){return[ie,_]}static get pluginName(){return"ImageToolbar"}static get isOfficialPlugin(){return!0}afterInit(){const i=this.editor,e=i.t,t=i.plugins.get(ie),n=i.plugins.get("ImageUtils");t.register("image",{ariaLabel:e("Image toolbar"),items:Vi(i.config.get("image.toolbar")||[]),getRelatedElement:s=>n.getClosestSelectedImageWidget(s)})}}function Vi(a){return a.map(i=>ve(i)?i.name:i)}export{qi as AutoImage,$i as ImageBlock,Ae as ImageBlockEditing,Hi as ImageCaption,Dt as ImageCaptionEditing,Mt as ImageCaptionUI,xe as ImageCaptionUtils,Ii as ImageCustomResizeUI,Ue as ImageEditing,ji as ImageInline,Gi as ImageInsert,V as ImageInsertUI,li as ImageInsertViaUrl,Ki as ImageResize,mi as ImageResizeButtons,Ne as ImageResizeEditing,di as ImageResizeHandles,Be as ImageSizeAttributes,Ji as ImageStyle,$e as ImageStyleEditing,Bi as ImageStyleUI,ke as ImageTextAlternative,Tt as ImageTextAlternativeEditing,Rt as ImageTextAlternativeUI,Zi as ImageToolbar,oi as ImageUpload,ii as ImageUploadEditing,Gt as ImageUploadProgress,Ht as ImageUploadUI,_ as ImageUtils,Re as createImageTypeRegExp};
@@ -0,0 +1,10 @@
1
+ var k=Object.defineProperty;var I=(o,t,e)=>t in o?k(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var d=(o,t,e)=>I(o,typeof t!="symbol"?t+"":t,e);import{Plugin as f,MultiCommand as h,icons as l,Command as w}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{ButtonView as b,MenuBarMenuListItemButtonView as p}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{addMarginRules as B}from"../../../../../@ckeditor_ckeditor5-engine@44.3.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{first as v}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";/**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */class C extends f{static get pluginName(){return"IndentEditing"}static get isOfficialPlugin(){return!0}init(){const t=this.editor;t.commands.add("indent",new h(t)),t.commands.add("outdent",new h(t))}}class x extends f{static get pluginName(){return"IndentUI"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.locale,n=t.t,s=e.uiLanguageDirection=="ltr"?l.indent:l.outdent,i=e.uiLanguageDirection=="ltr"?l.outdent:l.indent;this._defineButton("indent",n("Increase indent"),s),this._defineButton("outdent",n("Decrease indent"),i)}_defineButton(t,e,n){const s=this.editor;s.ui.componentFactory.add(t,()=>{const i=this._createButton(b,t,e,n);return i.set({tooltip:!0}),i}),s.ui.componentFactory.add("menuBar:"+t,()=>this._createButton(p,t,e,n))}_createButton(t,e,n,s){const i=this.editor,c=i.commands.get(e),r=new t(i.locale);return r.set({label:n,icon:s}),r.bind("isEnabled").to(c,"isEnabled"),this.listenTo(r,"execute",()=>{i.execute(e),i.editing.view.focus()}),r}}class y extends f{static get pluginName(){return"Indent"}static get isOfficialPlugin(){return!0}static get requires(){return[C,x]}}class u extends w{constructor(e,n){super(e);d(this,"_indentBehavior");this._indentBehavior=n}refresh(){const n=this.editor.model,s=v(n.document.selection.getSelectedBlocks());if(!s||!this._isIndentationChangeAllowed(s)){this.isEnabled=!1;return}this.isEnabled=this._indentBehavior.checkEnabled(s.getAttribute("blockIndent"))}execute(){const e=this.editor.model,n=this._getBlocksToChange();e.change(s=>{for(const i of n){const c=i.getAttribute("blockIndent"),r=this._indentBehavior.getNextIndent(c);r?s.setAttribute("blockIndent",r,i):s.removeAttribute("blockIndent",i)}})}_getBlocksToChange(){const n=this.editor.model.document.selection;return Array.from(n.getSelectedBlocks()).filter(i=>this._isIndentationChangeAllowed(i))}_isIndentationChangeAllowed(e){const n=this.editor;return n.model.schema.checkAttribute(e,"blockIndent")?!n.plugins.has("ListUtils")||!this._indentBehavior.isForward?!0:!n.plugins.get("ListUtils").isListItemBlock(e):!1}}/**
5
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
6
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
7
+ */class g{constructor(t){d(this,"isForward");d(this,"offset");d(this,"unit");this.isForward=t.direction==="forward",this.offset=t.offset,this.unit=t.unit}checkEnabled(t){const e=parseFloat(t||"0");return this.isForward||e>0}getNextIndent(t){const e=parseFloat(t||"0");if(!(!t||t.endsWith(this.unit)))return this.isForward?this.offset+this.unit:void 0;const s=this.isForward?this.offset:-this.offset,i=e+s;return i>0?i+this.unit:void 0}}/**
8
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
9
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
10
+ */class m{constructor(t){d(this,"isForward");d(this,"classes");this.isForward=t.direction==="forward",this.classes=t.classes}checkEnabled(t){const e=this.classes.indexOf(t);return this.isForward?e<this.classes.length-1:e>=0}getNextIndent(t){const e=this.classes.indexOf(t),n=this.isForward?1:-1;return this.classes[e+n]}}const _=["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"];class S extends f{constructor(t){super(t),t.config.define("indentBlock",{offset:40,unit:"px"})}static get pluginName(){return"IndentBlock"}static get isOfficialPlugin(){return!0}init(){const t=this.editor,e=t.config.get("indentBlock");e.classes&&e.classes.length?(this._setupConversionUsingClasses(e.classes),t.commands.add("indentBlock",new u(t,new m({direction:"forward",classes:e.classes}))),t.commands.add("outdentBlock",new u(t,new m({direction:"backward",classes:e.classes})))):(t.data.addStyleProcessorRules(B),this._setupConversionUsingOffset(),t.commands.add("indentBlock",new u(t,new g({direction:"forward",offset:e.offset,unit:e.unit}))),t.commands.add("outdentBlock",new u(t,new g({direction:"backward",offset:e.offset,unit:e.unit}))))}afterInit(){const t=this.editor,e=t.model.schema,n=t.commands.get("indent"),s=t.commands.get("outdent"),i=t.config.get("heading.options");(i&&i.map(a=>a.model)||_).forEach(a=>{e.isRegistered(a)&&e.extend(a,{allowAttributes:"blockIndent"})}),e.setAttributeProperties("blockIndent",{isFormatting:!0}),n.registerChildCommand(t.commands.get("indentBlock")),s.registerChildCommand(t.commands.get("outdentBlock"))}_setupConversionUsingOffset(){const t=this.editor.conversion,n=this.editor.locale.contentLanguageDirection==="rtl"?"margin-right":"margin-left";t.for("upcast").attributeToAttribute({view:{styles:{[n]:/[\s\S]+/}},model:{key:"blockIndent",value:s=>{if(!s.is("element","li"))return s.getStyle(n)}}}),t.for("downcast").attributeToAttribute({model:"blockIndent",view:s=>({key:"style",value:{[n]:s}})})}_setupConversionUsingClasses(t){const e={model:{key:"blockIndent",values:[]},view:{}};for(const n of t)e.model.values.push(n),e.view[n]={key:"class",value:[n]};this.editor.conversion.attributeToAttribute(e)}}export{y as Indent,S as IndentBlock,C as IndentEditing,x as IndentUI};
@@ -0,0 +1,4 @@
1
+ import{Plugin as m,Command as x}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Collection as w,getLanguageDirection as p}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{createDropdown as h,addListToDropdown as L,MenuBarMenuView as C,MenuBarMenuListView as P,ListSeparatorView as A,MenuBarMenuListItemView as T,MenuBarMenuListItemButtonView as V,ViewModel as b}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";/**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */function f(l,e){return e=e||p(l),`${l}:${e}`}function v(l){const[e,t]=l.split(":");return{languageCode:e,textDirection:t}}class M extends x{refresh(){const e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"language")}execute({languageCode:e,textDirection:t}={}){const s=this.editor.model,o=s.document.selection,u=e?f(e,t):!1;s.change(g=>{if(o.isCollapsed)u?g.setSelectionAttribute("language",u):g.removeSelectionAttribute("language");else{const n=s.schema.getValidRanges(o.getRanges(),"language");for(const a of n)u?g.setAttribute("language",u,a):g.removeAttribute("language",a)}})}_getValueFromFirstAllowedNode(){const e=this.editor.model,t=e.schema,s=e.document.selection;if(s.isCollapsed)return s.getAttribute("language")||!1;for(const r of s.getRanges())for(const o of r.getItems())if(t.checkAttribute(o,"language"))return o.getAttribute("language")||!1;return!1}}class y extends m{static get pluginName(){return"TextPartLanguageEditing"}static get isOfficialPlugin(){return!0}constructor(e){super(e),e.config.define("language",{textPartLanguage:[{title:"Arabic",languageCode:"ar"},{title:"French",languageCode:"fr"},{title:"Spanish",languageCode:"es"}]})}init(){const e=this.editor;e.model.schema.extend("$text",{allowAttributes:"language"}),e.model.schema.setAttributeProperties("language",{copyOnEnter:!0}),this._defineConverters(),e.commands.add("textPartLanguage",new M(e))}_defineConverters(){const e=this.editor.conversion;e.for("upcast").elementToAttribute({model:{key:"language",value:t=>{const s=t.getAttribute("lang"),r=t.getAttribute("dir");return f(s,r)}},view:{name:"span",attributes:{lang:/[\s\S]+/}}}),e.for("downcast").attributeToElement({model:"language",view:(t,{writer:s},r)=>{if(!t||!r.item.is("$textProxy")&&!r.item.is("documentSelection"))return;const{languageCode:o,textDirection:u}=v(t);return s.createAttributeElement("span",{lang:o,dir:u})}})}}class D extends m{static get pluginName(){return"TextPartLanguageUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=e.t,s=t("Choose language"),r=t("Language");e.ui.componentFactory.add("textPartLanguage",o=>{const{definitions:u,titles:g}=this._getItemMetadata(),n=e.commands.get("textPartLanguage"),a=h(o);return L(a,u,{ariaLabel:r,role:"menu"}),a.buttonView.set({ariaLabel:r,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:r}),a.extendTemplate({attributes:{class:["ck-text-fragment-language-dropdown"]}}),a.bind("isEnabled").to(n,"isEnabled"),a.buttonView.bind("label").to(n,"value",i=>i&&g[i]||s),a.buttonView.bind("ariaLabel").to(n,"value",i=>{const c=i&&g[i];return c?`${c}, ${r}`:r}),this.listenTo(a,"execute",i=>{n.execute({languageCode:i.source.languageCode,textDirection:i.source.textDirection}),e.editing.view.focus()}),a}),e.ui.componentFactory.add("menuBar:textPartLanguage",o=>{const{definitions:u}=this._getItemMetadata(),g=e.commands.get("textPartLanguage"),n=new C(o);n.buttonView.set({label:r});const a=new P(o);a.set({ariaLabel:t("Language"),role:"menu"});for(const i of u){if(i.type!="button"){a.items.add(new A(o));continue}const c=new T(o,n),d=new V(o);d.set({role:"menuitemradio",isToggleable:!0}),d.bind(...Object.keys(i.model)).to(i.model),d.delegate("execute").to(n),c.children.add(d),a.items.add(c)}return n.bind("isEnabled").to(g,"isEnabled"),n.panelView.children.add(a),n.on("execute",i=>{g.execute({languageCode:i.source.languageCode,textDirection:i.source.textDirection}),e.editing.view.focus()}),n})}_getItemMetadata(){const e=this.editor,t=new w,s={},r=e.commands.get("textPartLanguage"),o=e.config.get("language.textPartLanguage"),u=e.locale.t,g=u("Remove language");t.add({type:"button",model:new b({label:g,languageCode:!1,withText:!0})}),t.add({type:"separator"});for(const n of o){const a={type:"button",model:new b({label:n.title,languageCode:n.languageCode,role:"menuitemradio",textDirection:n.textDirection,withText:!0})},i=f(n.languageCode,n.textDirection);a.model.bind("isOn").to(r,"value",c=>c===i),t.add(a),s[i]=n.title}return{definitions:t,titles:s}}}class F extends m{static get requires(){return[y,D]}static get pluginName(){return"TextPartLanguage"}static get isOfficialPlugin(){return!0}}export{F as TextPartLanguage,y as TextPartLanguageEditing,D as TextPartLanguageUI};
@@ -0,0 +1,4 @@
1
+ var G=Object.defineProperty;var W=(a,s,e)=>s in a?G(a,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[s]=e;var m=(a,s,e)=>W(a,typeof s!="symbol"?s+"":s,e);import{Plugin as b,Command as D,icons as V}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Delete as X,findAttributeRange as A,TextWatcher as j,getLastTextLine as J,TwoStepCaretMovement as L,Input as Y,inlineHighlight as Q}from"../../../../../@ckeditor_ckeditor5-typing@44.3.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{ClipboardPipeline as Z}from"../../../../../@ckeditor_ckeditor5-clipboard@44.3.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{env as ee,keyCodes as te,Collection as ie,first as ne,toMap as T,ObservableMixin as se,FocusTracker as R,KeystrokeHandler as H}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ClickObserver as oe,Matcher as re}from"../../../../../@ckeditor_ckeditor5-engine@44.3.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{ContextualBalloon as S,CssTransitionDisablerMixin as ae,ButtonView as p,MenuBarMenuListItemButtonView as le,clickOutsideHandler as ce,View as E,ViewCollection as F,FocusCycler as U,submitHandler as ue,LabeledFieldView as de,createLabeledInputText as me,SwitchButtonView as he}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{isWidget as fe}from"../../../../../@ckeditor_ckeditor5-widget@44.3.0/node_modules/@ckeditor/ckeditor5-widget/dist/index.js";import ge from"../../../../../lodash-es@4.17.21/node_modules/lodash-es/upperFirst.js";/**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */class ke{constructor(){m(this,"_definitions",new Set)}get length(){return this._definitions.size}add(s){Array.isArray(s)?s.forEach(e=>this._definitions.add(e)):this._definitions.add(s)}getDispatcher(){return s=>{s.on("attribute:linkHref",(e,t,n)=>{if(!n.consumable.test(t.item,"attribute:linkHref")||!(t.item.is("selection")||n.schema.isInline(t.item)))return;const i=n.writer,o=i.document.selection;for(const r of this._definitions){const l=i.createAttributeElement("a",r.attributes,{priority:5});r.classes&&i.addClass(r.classes,l);for(const c in r.styles)i.setStyle(c,r.styles[c],l);i.setCustomProperty("link",!0,l),r.callback(t.attributeNewValue)?t.item.is("selection")?i.wrap(o.getFirstRange(),l):i.wrap(n.mapper.toViewRange(t.range),l):i.unwrap(n.mapper.toViewRange(t.range),l)}},{priority:"high"})}}getDispatcherForLinkedImage(){return s=>{s.on("attribute:linkHref:imageBlock",(e,t,{writer:n,mapper:i})=>{const o=i.toViewElement(t.item),r=Array.from(o.getChildren()).find(l=>l.is("element","a"));if(r)for(const l of this._definitions){const c=T(l.attributes);if(l.callback(t.attributeNewValue)){for(const[u,d]of c)u==="class"?n.addClass(d,r):n.setAttribute(u,d,r);l.classes&&n.addClass(l.classes,r);for(const u in l.styles)n.setStyle(u,l.styles[u],r)}else{for(const[u,d]of c)u==="class"?n.removeClass(d,r):n.removeAttribute(u,r);l.classes&&n.removeClass(l.classes,r);for(const u in l.styles)n.removeStyle(u,r)}}})}}}const be=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,we="^(?:(?:<protocols>):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))",pe=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,_e=/^((\w+:(\/{2,})?)|(\W))/i,ve=["https?","ftps?","mailto"],w="Ctrl+K";function Ve(a){return a.is("attributeElement")&&!!a.getCustomProperty("link")}function C(a,{writer:s}){const e=s.createAttributeElement("a",{href:a},{priority:5});return s.setCustomProperty("link",!0,e),e}function O(a,s=ve){const e=String(a),t=s.join("|"),n=new RegExp(`${we.replace("<protocols>",t)}`,"i");return Ee(e,n)?e:"#"}function Ee(a,s){return!!a.replace(be,"").match(s)}function Ie(a,s){const e={"Open in a new tab":a("Open in a new tab"),Downloadable:a("Downloadable")};return s.forEach(t=>("label"in t&&e[t.label]&&(t.label=e[t.label]),t)),s}function Ae(a){const s=[];if(a)for(const[e,t]of Object.entries(a)){const n=Object.assign({},t,{id:`link${ge(e)}`});s.push(n)}return s}function I(a,s){return a?s.checkAttribute(a.name,"linkHref"):!1}function Te(a){return pe.test(a)}function y(a,s){const e=Te(a)?"mailto:":s,t=!!e&&!M(a);return a&&t?e+a:a}function M(a){return _e.test(a)}function N(a){window.open(a,"_blank","noopener")}function z(a){const s=a.plugins.has("BookmarkEditing")?a.plugins.get("BookmarkEditing"):null;function e(n){return!!n&&n.startsWith("#")&&!!s&&!!s.getElementForBookmarkId(n.slice(1))}function t(n){const i=n.slice(1),o=s.getElementForBookmarkId(i);a.model.change(r=>{r.setSelection(o,"on")}),a.editing.view.scrollToTheSelection({alignToTop:!0,forceScroll:!0})}return{isScrollableToTarget:e,scrollToTarget:t}}class ye extends D{constructor(){super(...arguments);m(this,"manualDecorators",new ie);m(this,"automaticDecorators",new ke)}restoreManualDecoratorStates(){for(const e of this.manualDecorators)e.value=this._getDecoratorStateFromModel(e.id)}refresh(){const e=this.editor.model,t=e.document.selection,n=t.getSelectedElement()||ne(t.getSelectedBlocks());I(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref"));for(const i of this.manualDecorators)i.value=this._getDecoratorStateFromModel(i.id)}execute(e,t={}){const n=this.editor.model,i=n.document.selection,o=[],r=[];for(const l in t)t[l]?o.push(l):r.push(l);n.change(l=>{if(i.isCollapsed){const c=i.getFirstPosition();if(i.hasAttribute("linkHref")){const u=P(i);let d=A(c,"linkHref",i.getAttribute("linkHref"),n);i.getAttribute("linkHref")===u&&(d=this._updateLinkContent(n,l,d,e)),l.setAttribute("linkHref",e,d),o.forEach(h=>{l.setAttribute(h,!0,d)}),r.forEach(h=>{l.removeAttribute(h,d)}),l.setSelection(l.createPositionAfter(d.end.nodeBefore))}else if(e!==""){const u=T(i.getAttributes());u.set("linkHref",e),o.forEach(h=>{u.set(h,!0)});const{end:d}=n.insertContent(l.createText(e,u),c);l.setSelection(d)}["linkHref",...o,...r].forEach(u=>{l.removeSelectionAttribute(u)})}else{const c=n.schema.getValidRanges(i.getRanges(),"linkHref"),u=[];for(const h of i.getSelectedBlocks())n.schema.checkAttribute(h,"linkHref")&&u.push(l.createRangeOn(h));const d=u.slice();for(const h of c)this._isRangeToUpdate(h,u)&&d.push(h);for(const h of d){let f=h;if(d.length===1){const k=P(i);i.getAttribute("linkHref")===k&&(f=this._updateLinkContent(n,l,h,e),l.setSelection(l.createSelection(f)))}l.setAttribute("linkHref",e,f),o.forEach(k=>{l.setAttribute(k,!0,f)}),r.forEach(k=>{l.removeAttribute(k,f)})}}})}_getDecoratorStateFromModel(e){const t=this.editor.model,n=t.document.selection,i=n.getSelectedElement();return I(i,t.schema)?i.getAttribute(e):n.getAttribute(e)}_isRangeToUpdate(e,t){for(const n of t)if(n.containsRange(e))return!1;return!0}_updateLinkContent(e,t,n,i){const o=t.createText(i,{linkHref:i});return e.insertContent(o,n)}}function P(a){if(a.isCollapsed){const s=a.getFirstPosition();return s.textNode&&s.textNode.data}else{const s=Array.from(a.getFirstRange().getItems());if(s.length>1)return null;const e=s[0];return e.is("$text")||e.is("$textProxy")?e.data:null}}class Le extends D{refresh(){const s=this.editor.model,e=s.document.selection,t=e.getSelectedElement();I(t,s.schema)?this.isEnabled=s.schema.checkAttribute(t,"linkHref"):this.isEnabled=s.schema.checkAttributeInSelection(e,"linkHref")}execute(){const s=this.editor,e=this.editor.model,t=e.document.selection,n=s.commands.get("link");e.change(i=>{const o=t.isCollapsed?[A(t.getFirstPosition(),"linkHref",t.getAttribute("linkHref"),e)]:e.schema.getValidRanges(t.getRanges(),"linkHref");for(const r of o)if(i.removeAttribute("linkHref",r),n)for(const l of n.manualDecorators)i.removeAttribute(l.id,r)})}}class Se extends se(){constructor({id:e,label:t,attributes:n,classes:i,styles:o,defaultValue:r}){super();m(this,"id");m(this,"defaultValue");m(this,"label");m(this,"attributes");m(this,"classes");m(this,"styles");this.id=e,this.set("value",void 0),this.defaultValue=r,this.label=t,this.attributes=n,this.classes=i,this.styles=o}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}const Ce="ck-link_selected",B="automatic",Pe="manual",Be=/^(https?:)?\/\//;class _ extends b{static get pluginName(){return"LinkEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[L,Y,Z]}constructor(s){super(s),s.config.define("link",{allowCreatingEmptyLinks:!1,addTargetToExternalLinks:!1})}init(){const s=this.editor,e=this.editor.config.get("link.allowedProtocols");s.model.schema.extend("$text",{allowAttributes:"linkHref"}),s.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:C}),s.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(i,o)=>C(O(i,e),o)}),s.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:i=>i.getAttribute("href")}}),s.commands.add("link",new ye(s)),s.commands.add("unlink",new Le(s));const t=Ie(s.t,Ae(s.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter(i=>i.mode===B)),this._enableManualDecorators(t.filter(i=>i.mode===Pe)),s.plugins.get(L).registerAttribute("linkHref"),Q(s,"linkHref","a",Ce),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(s){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:B,callback:i=>!!i&&Be.test(i),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(s),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(s){if(!s.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;s.forEach(i=>{e.model.schema.extend("$text",{allowAttributes:i.id});const o=new Se(i);n.add(o),e.conversion.for("downcast").attributeToElement({model:o.id,view:(r,{writer:l,schema:c},{item:u})=>{if((u.is("selection")||c.isInline(u))&&r){const d=l.createAttributeElement("a",o.attributes,{priority:5});o.classes&&l.addClass(o.classes,d);for(const h in o.styles)l.setStyle(h,o.styles[h],d);return l.setCustomProperty("link",!0,d),d}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",...o._createPattern()},model:{key:o.id}})})}_enableLinkOpen(){const s=this.editor,t=s.editing.view.document,n=z(s);function i(o){n.isScrollableToTarget(o)?n.scrollToTarget(o):N(o)}this.listenTo(t,"click",(o,r)=>{if(!(ee.isMac?r.domEvent.metaKey:r.domEvent.ctrlKey))return;let c=r.domTarget;if(c.tagName.toLowerCase()!="a"&&(c=c.closest("a")),!c)return;const u=c.getAttribute("href");u&&(o.stop(),r.preventDefault(),i(u))},{context:"$capture"}),this.listenTo(t,"keydown",(o,r)=>{const c=s.commands.get("link").value;c&&r.keyCode===te.enter&&r.altKey&&(o.stop(),i(c))})}_enableSelectionAttributesFixer(){const e=this.editor.model,t=e.document.selection;this.listenTo(t,"change:attribute",(n,{attributeKeys:i})=>{!i.includes("linkHref")||t.hasAttribute("linkHref")||e.change(o=>{xe(o,De(e.schema))})})}_enableClipboardIntegration(){const s=this.editor,e=s.model,t=this.editor.config.get("link.defaultProtocol");t&&this.listenTo(s.plugins.get("ClipboardPipeline"),"contentInsertion",(n,i)=>{e.change(o=>{const r=o.createRangeIn(i.content);for(const l of r.getItems())if(l.hasAttribute("linkHref")){const c=y(l.getAttribute("linkHref"),t);o.setAttribute("linkHref",c,l)}})})}}function xe(a,s){a.removeSelectionAttribute("linkHref");for(const e of s)a.removeSelectionAttribute(e)}function De(a){return a.getDefinition("$text").allowAttributes.filter(e=>e.startsWith("link"))}class Re extends E{constructor(e,t,n){super(e);m(this,"focusTracker",new R);m(this,"keystrokes",new H);m(this,"urlInputView");m(this,"saveButtonView");m(this,"cancelButtonView");m(this,"_manualDecoratorSwitches");m(this,"children");m(this,"_validators");m(this,"_focusables",new F);m(this,"_focusCycler");const i=e.t;this._validators=n,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(i("Save"),V.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(i("Cancel"),V.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(t),this.children=this._createFormChildren(t.manualDecorators),this._focusCycler=new U({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const o=["ck","ck-link-form","ck-responsive-form"];t.manualDecorators.length&&o.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((e,t)=>(e[t.name]=t.isOn,e),{})}render(){super.render(),ue({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}isValid(){this.resetFormStatus();for(const e of this._validators){const t=e(this);if(t)return this.urlInputView.errorText=t,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null}_createUrlInput(){const e=this.locale.t,t=new de(this.locale,me);return t.fieldView.inputMode="url",t.label=e("Link URL"),t}_createButton(e,t,n,i){const o=new p(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}_createManualDecoratorSwitches(e){const t=this.createCollection();for(const n of e.manualDecorators){const i=new he(this.locale);i.set({name:n.id,label:n.label,withText:!0}),i.bind("isOn").toMany([n,e],"value",(o,r)=>r===void 0&&o===void 0?!!n.defaultValue:!!o),i.on("execute",()=>{n.set("value",!i.isOn)}),t.add(i)}return t}_createFormChildren(e){const t=this.createCollection();if(t.add(this.urlInputView),e.length){const n=new E;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(i=>({tag:"li",children:[i],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(n)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}get url(){const{element:e}=this.urlInputView.fieldView;return e?e.value.trim():null}}var He='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>';class Fe extends E{constructor(e,t={},n){super(e);m(this,"focusTracker",new R);m(this,"keystrokes",new H);m(this,"previewButtonView");m(this,"unlinkButtonView");m(this,"editButtonView");m(this,"_focusables",new F);m(this,"_focusCycler");m(this,"_linkConfig");m(this,"_options");const i=e.t;this._options=n,this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(i("Unlink"),He,"unlink"),this.editButtonView=this._createButton(i("Edit link"),V.pencil,"edit"),this.set("href",void 0),this._linkConfig=t,this._focusCycler=new U({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(e,t,n){const i=new p(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.delegate("execute").to(this,n),i}_createPreviewButton(){const e=new p(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",i=>i&&O(i,this._linkConfig.allowedProtocols)),target:"_blank",rel:"noopener noreferrer"},on:{click:t.to(i=>{this._options&&this._options.isScrollableToTarget(this.href)?(i.preventDefault(),this._options.scrollToTarget(this.href)):N(this.href)})}}),e.bind("tooltip").to(this,"href",i=>this._options&&this._options.isScrollableToTarget(i)?n("Scroll to target"):n("Open link in new tab")),e.bind("label").to(this,"href",i=>i||n("This link has no URL")),e.bind("isEnabled").to(this,"href",i=>!!i),e.template.tag="a",e}}var K='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>';const g="link-ui";class $ extends b{constructor(){super(...arguments);m(this,"actionsView",null);m(this,"formView",null);m(this,"_balloon")}static get requires(){return[S]}static get pluginName(){return"LinkUI"}static get isOfficialPlugin(){return!0}init(){const e=this.editor,t=this.editor.t;e.editing.view.addObserver(oe),this._balloon=e.plugins.get(S),this._createToolbarLinkButton(),this._enableBalloonActivators(),e.conversion.for("editingDowncast").markerToHighlight({model:g,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:g,view:(n,{writer:i})=>{if(!n.markerRange.isCollapsed)return null;const o=i.createUIElement("span");return i.addClass(["ck-fake-link-selection","ck-fake-link-selection_collapsed"],o),o}}),e.accessibility.addKeystrokeInfos({keystrokes:[{label:t("Create link"),keystroke:w},{label:t("Move out of a link"),keystroke:[["arrowleft","arrowleft"],["arrowright","arrowright"]]}]})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const e=this.editor,t=new Fe(e.locale,e.config.get("link"),z(e)),n=e.commands.get("link"),i=e.commands.get("unlink");return t.bind("href").to(n,"value"),t.editButtonView.bind("isEnabled").to(n),t.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(t,"edit",()=>{this._addFormView()}),this.listenTo(t,"unlink",()=>{e.execute("unlink"),this._hideUI()}),t.keystrokes.set("Esc",(o,r)=>{this._hideUI(),r()}),t.keystrokes.set(w,(o,r)=>{this._addFormView(),r()}),t}_createFormView(){const e=this.editor,t=e.commands.get("link"),n=e.config.get("link.defaultProtocol"),i=new(ae(Re))(e.locale,t,Ue(e));return i.urlInputView.fieldView.bind("value").to(t,"value"),i.urlInputView.bind("isEnabled").to(t,"isEnabled"),i.saveButtonView.bind("isEnabled").to(t,"isEnabled"),this.listenTo(i,"submit",()=>{if(i.isValid()){const{value:o}=i.urlInputView.fieldView.element,r=y(o,n);e.execute("link",r,i.getDecoratorSwitchesState()),this._closeFormView()}}),this.listenTo(i.urlInputView,"change:errorText",()=>{e.ui.update()}),this.listenTo(i,"cancel",()=>{this._closeFormView()}),i.keystrokes.set("Esc",(o,r)=>{this._closeFormView(),r()}),i}_createToolbarLinkButton(){const e=this.editor;e.ui.componentFactory.add("link",()=>{const t=this._createButton(p);return t.set({tooltip:!0}),t}),e.ui.componentFactory.add("menuBar:link",()=>{const t=this._createButton(le);return t.set({role:"menuitemcheckbox"}),t})}_createButton(e){const t=this.editor,n=t.locale,i=t.commands.get("link"),o=new e(t.locale),r=n.t;return o.set({label:r("Link"),icon:K,keystroke:w,isToggleable:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",l=>!!l),this.listenTo(o,"execute",()=>this._showUI(!0)),o}_enableBalloonActivators(){const e=this.editor,t=e.editing.view.document;this.listenTo(t,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),e.keystrokes.set(w,(n,i)=>{i(),e.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(e,t)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),t())},{priority:"high"}),this.editor.keystrokes.set("Esc",(e,t)=>{this._isUIVisible&&(this._hideUI(),t())}),ce({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),!this._areActionsInPanel&&this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this.formView.resetFormStatus(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this.formView.urlInputView.fieldView.value=t.value||"",this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions()}_closeFormView(){const e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),e.value!==void 0?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this.formView.urlInputView.fieldView.reset(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(e=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const e=this.editor,t=e.editing.view.document;let n=this._getSelectedLinkElement(),i=r();const o=()=>{const l=this._getSelectedLinkElement(),c=r();n&&!l||!n&&c!==i?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=l,i=c};function r(){return t.selection.focus.getAncestors().reverse().find(l=>l.is("element"))}this.listenTo(e.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){const e=this._balloon.visibleView;return!!this.formView&&e==this.formView||this._areActionsVisible}_getBalloonPositionData(){const e=this.editor.editing.view,t=this.editor.model,n=e.document;let i;if(t.markers.has(g)){const o=Array.from(this.editor.editing.mapper.markerNameToElements(g)),r=e.createRange(e.createPositionBefore(o[0]),e.createPositionAfter(o[o.length-1]));i=e.domConverter.viewRangeToDom(r)}else i=()=>{const o=this._getSelectedLinkElement();return o?e.domConverter.mapViewToDom(o):e.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:i}}_getSelectedLinkElement(){const e=this.editor.editing.view,t=e.document.selection,n=t.getSelectedElement();if(t.isCollapsed||n&&fe(n))return v(t.getFirstPosition());{const i=t.getFirstRange().getTrimmed(),o=v(i.start),r=v(i.end);return!o||o!=r?null:e.createRangeIn(o).getTrimmed().isEqual(i)?o:null}}_showFakeVisualSelection(){const e=this.editor.model;e.change(t=>{const n=e.document.selection.getFirstRange();if(e.markers.has(g))t.updateMarker(g,{range:n});else if(n.start.isAtEnd){const i=n.start.getLastMatchingPosition(({item:o})=>!e.schema.isContent(o),{boundaries:n});t.addMarker(g,{usingOperation:!1,affectsData:!1,range:t.createRange(i,n.end)})}else t.addMarker(g,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){const e=this.editor.model;e.markers.has(g)&&e.change(t=>{t.removeMarker(g)})}}function v(a){return a.getAncestors().find(s=>Ve(s))||null}function Ue(a){const s=a.t,e=a.config.get("link.allowCreatingEmptyLinks");return[t=>{if(!e&&!t.url.length)return s("Link URL must not be empty.")}]}const Oe=4,q=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i"),Me=2;class Ne extends b{static get requires(){return[X,_]}static get pluginName(){return"AutoLink"}static get isOfficialPlugin(){return!0}init(){const e=this.editor.model.document.selection;e.on("change:range",()=>{this.isEnabled=!e.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(s,e){return e.textNode&&e.textNode.hasAttribute("linkHref")?A(e,"linkHref",e.textNode.getAttribute("linkHref"),s):null}_selectEntireLinks(s,e){const n=this.editor.model,i=n.document.selection,o=i.getFirstPosition(),r=i.getLastPosition();let l=e.getJoined(this._expandLinkRange(n,o)||e);l&&(l=l.getJoined(this._expandLinkRange(n,r)||e)),l&&(l.start.isBefore(o)||l.end.isAfter(r))&&s.setSelection(l)}_enablePasteLinking(){const s=this.editor,e=s.model,t=e.document.selection,n=s.plugins.get("ClipboardPipeline"),i=s.commands.get("link");n.on("inputTransformation",(o,r)=>{if(!this.isEnabled||!i.isEnabled||t.isCollapsed||r.method!=="paste"||t.rangeCount>1)return;const l=t.getFirstRange(),c=r.dataTransfer.getData("text/plain");if(!c)return;const u=c.match(q);u&&u[2]===c&&(e.change(d=>{this._selectEntireLinks(d,l),i.execute(c)}),o.stop())},{priority:"high"})}_enableTypingHandling(){const s=this.editor,e=new j(s.model,t=>{let n=t;if(!ze(n))return;n=n.slice(0,-1),"!.:,;?".includes(n[n.length-1])&&(n=n.slice(0,-1));const i=x(n);if(i)return{url:i,removedTrailingCharacters:t.length-n.length}});e.on("matched:data",(t,n)=>{const{batch:i,range:o,url:r,removedTrailingCharacters:l}=n;if(!i.isTyping)return;const c=o.end.getShiftedBy(-l),u=c.getShiftedBy(-r.length),d=s.model.createRange(u,c);this._applyAutoLink(r,d)}),e.bind("isEnabled").to(this)}_enableEnterHandling(){const s=this.editor,e=s.model,t=s.commands.get("enter");t&&t.on("execute",()=>{const n=e.document.selection.getFirstPosition();if(!n.parent.previousSibling)return;const i=e.createRangeIn(n.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(i)})}_enableShiftEnterHandling(){const s=this.editor,e=s.model,t=s.commands.get("shiftEnter");t&&t.on("execute",()=>{const n=e.document.selection.getFirstPosition(),i=e.createRange(e.createPositionAt(n.parent,0),n.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(i)})}_checkAndApplyAutoLinkOnRange(s){const e=this.editor.model,{text:t,range:n}=J(s,e),i=x(t);if(i){const o=e.createRange(n.end.getShiftedBy(-i.length),n.end);this._applyAutoLink(i,o)}}_applyAutoLink(s,e){const t=this.editor.model,n=this.editor.config.get("link.defaultProtocol"),i=y(s,n);!this.isEnabled||!Ke(e,t)||!M(i)||$e(e)||this._persistAutoLink(i,e)}_persistAutoLink(s,e){const t=this.editor.model,n=this.editor.plugins.get("Delete");t.enqueueChange(i=>{i.setAttribute("linkHref",s,e),t.enqueueChange(()=>{n.requestUndoOnBackspace()})})}}function ze(a){return a.length>Oe&&a[a.length-1]===" "&&a[a.length-2]!==" "}function x(a){const s=q.exec(a);return s?s[Me]:null}function Ke(a,s){return s.schema.checkAttributeInSelection(s.createSelection(a),"linkHref")}function $e(a){const s=a.start.nodeAfter;return!!s&&s.hasAttribute("linkHref")}class rt extends b{static get requires(){return[_,$,Ne]}static get pluginName(){return"Link"}static get isOfficialPlugin(){return!0}}class qe extends b{static get requires(){return["ImageEditing","ImageUtils",_]}static get pluginName(){return"LinkImageEditing"}static get isOfficialPlugin(){return!0}afterInit(){const s=this.editor,e=s.model.schema;s.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["linkHref"]}),s.conversion.for("upcast").add(Ge(s)),s.conversion.for("downcast").add(We(s)),this._enableAutomaticDecorators(),this._enableManualDecorators()}_enableAutomaticDecorators(){const s=this.editor,t=s.commands.get("link").automaticDecorators;t.length&&s.conversion.for("downcast").add(t.getDispatcherForLinkedImage())}_enableManualDecorators(){const s=this.editor,e=s.commands.get("link");for(const t of e.manualDecorators)s.plugins.has("ImageBlockEditing")&&s.model.schema.extend("imageBlock",{allowAttributes:t.id}),s.plugins.has("ImageInlineEditing")&&s.model.schema.extend("imageInline",{allowAttributes:t.id}),s.conversion.for("downcast").add(Xe(t)),s.conversion.for("upcast").add(je(s,t))}}function Ge(a){const s=a.plugins.has("ImageInlineEditing"),e=a.plugins.get("ImageUtils");return t=>{t.on("element:a",(n,i,o)=>{const r=i.viewItem,l=e.findViewImgElement(r);if(!l)return;const c=l.findAncestor(f=>e.isBlockImageView(f));if(s&&!c)return;const u={attributes:["href"]};if(!o.consumable.consume(r,u))return;const d=r.getAttribute("href");if(!d)return;let h=i.modelCursor.parent;if(!h.is("element","imageBlock")){const f=o.convertItem(l,i.modelCursor);i.modelRange=f.modelRange,i.modelCursor=f.modelCursor,h=i.modelCursor.nodeBefore}h&&h.is("element","imageBlock")&&o.writer.setAttribute("linkHref",d,h)},{priority:"high"})}}function We(a){const s=a.plugins.get("ImageUtils");return e=>{e.on("attribute:linkHref:imageBlock",(t,n,i)=>{if(!i.consumable.consume(n.item,t.name))return;const o=i.mapper.toViewElement(n.item),r=i.writer,l=Array.from(o.getChildren()).find(d=>d.is("element","a")),c=s.findViewImgElement(o),u=c.parent.is("element","picture")?c.parent:c;if(l)n.attributeNewValue?r.setAttribute("href",n.attributeNewValue,l):(r.move(r.createRangeOn(u),r.createPositionAt(o,0)),r.remove(l));else{const d=r.createContainerElement("a",{href:n.attributeNewValue});r.insert(r.createPositionAt(o,0),d),r.move(r.createRangeOn(u),r.createPositionAt(d,0))}},{priority:"high"})}}function Xe(a){return s=>{s.on(`attribute:${a.id}:imageBlock`,(e,t,n)=>{const i=n.mapper.toViewElement(t.item),o=Array.from(i.getChildren()).find(r=>r.is("element","a"));if(o){for(const[r,l]of T(a.attributes))n.writer.setAttribute(r,l,o);a.classes&&n.writer.addClass(a.classes,o);for(const r in a.styles)n.writer.setStyle(r,a.styles[r],o)}})}}function je(a,s){const e=a.plugins.has("ImageInlineEditing"),t=a.plugins.get("ImageUtils");return n=>{n.on("element:a",(i,o,r)=>{const l=o.viewItem,c=t.findViewImgElement(l);if(!c)return;const u=c.findAncestor(k=>t.isBlockImageView(k));if(e&&!u)return;const h=new re(s._createPattern()).match(l);if(!h||!r.consumable.consume(l,h.match))return;const f=o.modelCursor.nodeBefore||o.modelCursor.parent;r.writer.setAttribute(s.id,!0,f)},{priority:"high"})}}class Je extends b{static get requires(){return[_,$,"ImageBlockEditing"]}static get pluginName(){return"LinkImageUI"}static get isOfficialPlugin(){return!0}init(){const s=this.editor,e=s.editing.view.document;this.listenTo(e,"click",(t,n)=>{this._isSelectedLinkedImage(s.model.document.selection)&&(n.preventDefault(),t.stop())},{priority:"high"}),this._createToolbarLinkImageButton()}_createToolbarLinkImageButton(){const s=this.editor,e=s.t;s.ui.componentFactory.add("linkImage",t=>{const n=new p(t),i=s.plugins.get("LinkUI"),o=s.commands.get("link");return n.set({isEnabled:!0,label:e("Link image"),icon:K,keystroke:w,tooltip:!0,isToggleable:!0}),n.bind("isEnabled").to(o,"isEnabled"),n.bind("isOn").to(o,"value",r=>!!r),this.listenTo(n,"execute",()=>{this._isSelectedLinkedImage(s.model.document.selection)?i._addActionsView():i._showUI(!0)}),n})}_isSelectedLinkedImage(s){const e=s.getSelectedElement();return this.editor.plugins.get("ImageUtils").isImage(e)&&e.hasAttribute("linkHref")}}class at extends b{static get requires(){return[qe,Je]}static get pluginName(){return"LinkImage"}static get isOfficialPlugin(){return!0}}export{Ne as AutoLink,rt as Link,Fe as LinkActionsView,ye as LinkCommand,_ as LinkEditing,Re as LinkFormView,at as LinkImage,qe as LinkImageEditing,Je as LinkImageUI,$ as LinkUI,Le as UnlinkCommand,y as addLinkProtocolIfApplicable,O as ensureSafeUrl,I as isLinkableElement};
@@ -0,0 +1,13 @@
1
+ var zt=Object.defineProperty;var Nt=(i,s,t)=>s in i?zt(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t;var h=(i,s,t)=>Nt(i,typeof s!="symbol"?s+"":s,t);import{Plugin as v,Command as L,icons as _}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{Delete as Ft}from"../../../../../@ckeditor_ckeditor5-typing@44.3.0/node_modules/@ckeditor/ckeditor5-typing/dist/index.js";import{Enter as Ot}from"../../../../../@ckeditor_ckeditor5-enter@44.3.0/node_modules/@ckeditor/ckeditor5-enter/dist/index.js";import{CKEditorError as Mt,getCode as Rt,toArray as k,first as D,parseKeystroke as Ht,getLocalizedArrowKeyCodeDirection as Dt,uid as $t,FocusTracker as tt,KeystrokeHandler as et,global as Ut}from"../../../../../@ckeditor_ckeditor5-utils@44.3.0/node_modules/@ckeditor/ckeditor5-utils/dist/index.js";import{ClipboardPipeline as Kt}from"../../../../../@ckeditor_ckeditor5-clipboard@44.3.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";import{createDropdown as Wt,SplitButtonView as jt,MenuBarMenuView as qt,ButtonView as J,MenuBarMenuListItemButtonView as Yt,focusChildOnDropdownOpen as Gt,View as st,ViewCollection as Zt,FocusCycler as Jt,addKeyboardHandlingForGrid as Qt,CollapsibleView as Xt,LabeledFieldView as te,createLabeledInputNumber as ee,SwitchButtonView as se}from"../../../../../@ckeditor_ckeditor5-ui@44.3.0/node_modules/@ckeditor/ckeditor5-ui/dist/index.js";import{DomEventObserver as ie,Matcher as bt}from"../../../../../@ckeditor_ckeditor5-engine@44.3.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";/**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */class y{constructor(s,t){h(this,"_startElement");h(this,"_referenceIndent");h(this,"_isForward");h(this,"_includeSelf");h(this,"_sameAttributes");h(this,"_sameIndent");h(this,"_lowerIndent");h(this,"_higherIndent");this._startElement=s,this._referenceIndent=s.getAttribute("listIndent"),this._isForward=t.direction=="forward",this._includeSelf=!!t.includeSelf,this._sameAttributes=k(t.sameAttributes||[]),this._sameIndent=!!t.sameIndent,this._lowerIndent=!!t.lowerIndent,this._higherIndent=!!t.higherIndent}static first(s,t){const n=new this(s,t)[Symbol.iterator]();return D(n)}*[Symbol.iterator](){const s=[];for(const{node:t}of new N(this._getStartNode(),this._isForward?"forward":"backward")){const e=t.getAttribute("listIndent");if(e<this._referenceIndent){if(!this._lowerIndent)break;this._referenceIndent=e}else if(e>this._referenceIndent){if(!this._higherIndent)continue;if(!this._isForward){s.push(t);continue}}else{if(!this._sameIndent){if(this._higherIndent){s.length&&(yield*s,s.length=0);break}continue}if(this._sameAttributes.some(n=>t.getAttribute(n)!==this._startElement.getAttribute(n)))break}s.length&&(yield*s,s.length=0),yield t}}_getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling}}class N{constructor(s,t="forward"){h(this,"_node");h(this,"_isForward");h(this,"_previousNodesByIndent",[]);h(this,"_previous",null);h(this,"_previousNodeIndent",null);this._node=s,this._isForward=t==="forward"}[Symbol.iterator](){return this}next(){if(!p(this._node))return{done:!0,value:void 0};const s=this._node.getAttribute("listIndent");let t=null;if(this._previous){const n=this._previousNodeIndent;s>n?this._previousNodesByIndent[n]=this._previous:s<n?(t=this._previousNodesByIndent[s]||null,this._previousNodesByIndent.length=s):t=this._previous}const e={node:this._node,previous:this._previous,previousNodeInList:t};return this._previous=this._node,this._previousNodeIndent=s,this._node=this._isForward?this._node.nextSibling:this._node.previousSibling,{value:e,done:!1}}}class ne{constructor(s){h(this,"_listHead");this._listHead=s}[Symbol.iterator](){return new N(this._listHead)}}class x{static next(){return $t()}}function p(i){return!!i&&i.is("element")&&i.hasAttribute("listItemId")}function C(i,s={}){return[...T(i,{...s,direction:"backward"}),...T(i,{...s,direction:"forward"})]}function T(i,s={}){const t=s.direction=="forward",e=Array.from(new y(i,{...s,includeSelf:t,sameIndent:!0,sameAttributes:"listItemId"}));return t?e:e.reverse()}function re(i){return Array.from(new y(i,{direction:"forward",higherIndent:!0}))}function yt(i,s){const t=new y(i,{sameIndent:!0,sameAttributes:"listType",...s}),e=new y(i,{sameIndent:!0,sameAttributes:"listType",includeSelf:!0,direction:"forward",...s});return[...Array.from(t).reverse(),...e]}function A(i){return!y.first(i,{sameIndent:!0,sameAttributes:"listItemId"})}function it(i){return!y.first(i,{direction:"forward",sameIndent:!0,sameAttributes:"listItemId"})}function F(i,s={}){i=k(i);const t=s.withNested!==!1,e=new Set;for(const n of i)for(const r of C(n,{higherIndent:t}))e.add(r);return S(e)}function $(i){i=k(i);const s=new Set;for(const t of i)for(const e of yt(t))s.add(e);return S(s)}function Q(i,s){const t=T(i,{direction:"forward"}),e=x.next();for(const n of t)s.setAttribute("listItemId",e,n);return t}function j(i,s,t){const e={};for(const[r,o]of s.getAttributes())r.startsWith("list")&&(e[r]=o);const n=T(i,{direction:"forward"});for(const r of n)t.setAttributes(e,r);return n}function q(i,s,{expand:t,indentBy:e=1}={}){i=k(i);const n=t?F(i):i;for(const r of n){const o=r.getAttribute("listIndent")+e;o<0?U(r,s):s.setAttribute("listIndent",o,r)}return n}function oe(i,s){i=k(i);const t=F(i),e=new Set,n=Math.min(...t.map(o=>o.getAttribute("listIndent"))),r=new Map;for(const o of t)r.set(o,y.first(o,{lowerIndent:!0}));for(const o of t){if(e.has(o))continue;e.add(o);const l=o.getAttribute("listIndent")-1;if(l<0){U(o,s);continue}if(o.getAttribute("listIndent")==n){const c=ce(o,r.get(o),s);for(const a of c)e.add(a);if(c.length)continue}s.setAttribute("listIndent",l,o)}return S(e)}function U(i,s){i=k(i);for(const t of i)t.is("element","listItem")&&s.rename(t,"paragraph");for(const t of i)for(const e of t.getAttributeKeys())e.startsWith("list")&&s.removeAttribute(e,t);return i}function B(i){if(!i.length)return!1;const s=i[0].getAttribute("listItemId");return s?!i.some(t=>t.getAttribute("listItemId")!=s):!1}function le(i,s){const t=[];let e=Number.POSITIVE_INFINITY;for(const{node:n}of new N(i.nextSibling)){const r=n.getAttribute("listIndent");if(r==0)break;r<e&&(e=r);const o=r-e;s.setAttribute("listIndent",o,n),t.push(n)}return t}function S(i){return Array.from(i).filter(s=>s.root.rootName!=="$graveyard").sort((s,t)=>s.index-t.index)}function P(i){const s=i.document.selection.getSelectedElement();return s&&i.schema.isObject(s)&&i.schema.isBlock(s)?s:null}function K(i,s){return s.checkChild(i.parent,"listItem")&&s.checkChild(i,"$text")&&!s.isObject(i)}function H(i){return i=="numbered"||i=="customNumbered"}function ce(i,s,t){return T(s,{direction:"forward"}).pop().index>i.index?j(i,s,t):[]}class nt extends L{constructor(t,e){super(t);h(this,"_direction");this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model,e=rt(t.document.selection);t.change(n=>{const r=[];B(e)&&!A(e[0])?(this._direction=="forward"&&r.push(...q(e,n)),r.push(...Q(e[0],n))):this._direction=="forward"?r.push(...q(e,n,{expand:!0})):r.push(...oe(e,n));for(const o of r){if(!o.hasAttribute("listType"))continue;const l=y.first(o,{sameIndent:!0});l&&n.setAttribute("listType",l.getAttribute("listType"),o)}this._fireAfterExecute(r)})}_fireAfterExecute(t){this.fire("afterExecute",S(new Set(t)))}_checkEnabled(){let t=rt(this.editor.model.document.selection),e=t[0];if(!e)return!1;if(this._direction=="backward"||B(t)&&!A(t[0]))return!0;t=F(t),e=t[0];const n=y.first(e,{sameIndent:!0});return n?n.getAttribute("listType")==e.getAttribute("listType"):!1}}function rt(i){const s=Array.from(i.getSelectedBlocks()),t=s.findIndex(e=>!p(e));return t!=-1&&(s.length=t),s}class E extends L{constructor(t,e,n={}){super(t);h(this,"type");h(this,"_listWalkerOptions");this.type=e,this._listWalkerOptions=n.multiLevel?{higherIndent:!0,lowerIndent:!0,sameAttributes:[]}:void 0}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document,r=P(e),o=Array.from(n.selection.getSelectedBlocks()).filter(c=>e.schema.checkAttribute(c,"listType")||K(c,e.schema)),l=t.forceValue!==void 0?!t.forceValue:this.value;e.change(c=>{if(l){const a=o[o.length-1],u=T(a,{direction:"forward"}),d=[];u.length>1&&d.push(...Q(u[1],c)),d.push(...U(o,c)),d.push(...le(a,c)),this._fireAfterExecute(d)}else if((r||n.selection.isCollapsed)&&p(o[0])){const a=yt(r||o[0],this._listWalkerOptions);for(const u of a)c.setAttributes({...t.additionalAttributes,listType:this.type},u);this._fireAfterExecute(a)}else{const a=[];for(const u of o)if(!u.hasAttribute("listType"))!u.is("element","listItem")&&K(u,e.schema)&&c.rename(u,"listItem"),c.setAttributes({...t.additionalAttributes,listIndent:0,listItemId:x.next(),listType:this.type},u),a.push(u);else for(const d of F(u,{withNested:!1}))d.getAttribute("listType")!=this.type&&(c.setAttributes({...t.additionalAttributes,listType:this.type},d),a.push(d));this._fireAfterExecute(a)}})}_fireAfterExecute(t){this.fire("afterExecute",S(new Set(t)))}_getValue(){const t=this.editor.model.document.selection,e=Array.from(t.getSelectedBlocks());if(!e.length)return!1;for(const n of e)if(n.getAttribute("listType")!=this.type)return!1;return!0}_checkEnabled(){const t=this.editor.model,e=t.schema,n=t.document.selection,r=Array.from(n.getSelectedBlocks());if(!r.length)return!1;if(this.value)return!0;for(const o of r)if(e.checkAttribute(o,"listType")||K(o,e))return!0;return!1}}class ot extends L{constructor(t,e){super(t);h(this,"_direction");this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute({shouldMergeOnBlocksContentLevel:t=!1}={}){const e=this.editor.model,n=e.document.selection,r=[];e.change(o=>{const{firstElement:l,lastElement:c}=this._getMergeSubjectElements(n,t),a=l.getAttribute("listIndent")||0,u=c.getAttribute("listIndent"),d=c.getAttribute("listItemId");if(a!=u){const m=re(c);r.push(...q([c,...m],o,{indentBy:a-u,expand:a<u}))}if(t){let m=n;n.isCollapsed&&(m=o.createSelection(o.createRange(o.createPositionAt(l,"end"),o.createPositionAt(c,0)))),e.deleteContent(m,{doNotResetEntireContent:n.isCollapsed});const f=m.getLastPosition().parent,g=f.nextSibling;r.push(f),g&&g!==c&&g.getAttribute("listItemId")==d&&r.push(...j(g,f,o))}else r.push(...j(c,l,o));this._fireAfterExecute(r)})}_fireAfterExecute(t){this.fire("afterExecute",S(new Set(t)))}_checkEnabled(){const t=this.editor.model,e=t.document.selection,n=P(t);if(e.isCollapsed||n){const r=n||e.getFirstPosition().parent;if(!p(r))return!1;const o=this._direction=="backward"?r.previousSibling:r.nextSibling;if(!o||B([r,o]))return!1}else{const r=e.getLastPosition(),o=e.getFirstPosition();if(r.parent===o.parent||!p(r.parent))return!1}return!0}_getMergeSubjectElements(t,e){const n=this.editor.model,r=P(n);let o,l;if(t.isCollapsed||r){const c=r||t.getFirstPosition().parent,a=A(c);this._direction=="backward"?(l=c,a&&!e?o=y.first(c,{sameIndent:!0,lowerIndent:!0}):o=c.previousSibling):(o=c,l=c.nextSibling)}else o=t.getFirstPosition().parent,l=t.getLastPosition().parent;return{firstElement:o,lastElement:l}}}class lt extends L{constructor(t,e){super(t);h(this,"_direction");this._direction=e}refresh(){this.isEnabled=this._checkEnabled()}execute(){this.editor.model.change(e=>{const n=Q(this._getStartBlock(),e);this._fireAfterExecute(n)})}_fireAfterExecute(t){this.fire("afterExecute",S(new Set(t)))}_checkEnabled(){const t=this.editor.model.document.selection,e=this._getStartBlock();return t.isCollapsed&&p(e)&&!A(e)}_getStartBlock(){const e=this.editor.model.document.selection.getFirstPosition().parent;return this._direction=="before"?e:e.nextSibling}}class ae extends v{static get pluginName(){return"ListUtils"}static get isOfficialPlugin(){return!0}expandListBlocksToCompleteList(s){return $(s)}isFirstBlockOfListItem(s){return A(s)}isListItemBlock(s){return p(s)}expandListBlocksToCompleteItems(s,t={}){return F(s,t)}isNumberedListType(s){return H(s)}}/**
5
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
6
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
7
+ */function ue(i){return i.is("element","ol")||i.is("element","ul")}function Y(i){return i.is("element","li")}function de(i){let s=0,t=i.parent;for(;t;){if(Y(t))s++;else{const e=t.previousSibling;e&&Y(e)&&s++}t=t.parent}return s}function me(i,s,t,e=vt(t,s)){return i.createAttributeElement(It(t),null,{priority:2*s/100-100,id:e})}function fe(i,s,t){return i.createAttributeElement("li",null,{priority:(2*s+1)/100-100,id:t})}function It(i){return i=="numbered"||i=="customNumbered"?"ol":"ul"}function vt(i,s){return`list-${i}-${s}`}function I(i,s,t){const e=i.nodeBefore;if(p(e)){let n=e;for(const{node:r}of new N(n,"backward"))if(n=r,t.has(n)||(t.add(n),s.has(e)))return;s.add(n)}else{const n=i.nodeAfter;p(n)&&s.add(n)}}function he(i,s){let t=0,e=-1,n=null,r=!1;for(const{node:o}of i){const l=o.getAttribute("listIndent");if(l>t){let c;n===null?(n=l-t,c=t):(n>l&&(n=l),c=l-n),c>e+1&&(c=e+1),s.setAttribute("listIndent",c,o),r=!0,e=c}else n=null,t=l+1,e=l}return r}function pe(i,s,t){const e=new Set;let n=!1;for(const{node:r}of i){if(e.has(r))continue;let o=r.getAttribute("listType"),l=r.getAttribute("listItemId");if(s.has(l)&&(l=x.next()),s.add(l),r.is("element","listItem")){r.getAttribute("listItemId")!=l&&(t.setAttribute("listItemId",l,r),n=!0);continue}for(const c of T(r,{direction:"forward"}))e.add(c),c.getAttribute("listType")!=o&&(l=x.next(),o=c.getAttribute("listType")),c.getAttribute("listItemId")!=l&&(t.setAttribute("listItemId",l,c),n=!0)}return n}function ge(){return(i,s,t)=>{const{writer:e,schema:n}=t;if(!s.modelRange)return;const r=Array.from(s.modelRange.getItems({shallow:!0})).filter(d=>n.checkAttribute(d,"listItemId"));if(!r.length)return;const o=x.next(),l=de(s.viewItem);let c=s.viewItem.parent&&s.viewItem.parent.is("element","ol")?"numbered":"bulleted";const a=r[0].getAttribute("listType");a&&(c=a);const u={listItemId:o,listIndent:l,listType:c};for(const d of r)d.hasAttribute("listItemId")||e.setAttributes(u,d);r.length>1&&r[1].getAttribute("listItemId")!=u.listItemId&&t.keepEmptyElement(r[0])}}function be(i,s,t,e){return()=>{const l=i.document.differ.getChanges(),c=[],a=new Set,u=new Set,d=new Set;for(const m of l)if(m.type=="insert"&&m.name!="$text")I(m.position,a,d),m.attributes.has("listItemId")?u.add(m.position.nodeAfter):I(m.position.getShiftedBy(m.length),a,d);else if(m.type=="remove"&&m.attributes.has("listItemId"))I(m.position,a,d);else if(m.type=="attribute"){const f=m.range.start.nodeAfter;t.includes(m.attributeKey)?(I(m.range.start,a,d),m.attributeNewValue===null?(I(m.range.start.getShiftedBy(1),a,d),r(f)&&c.push(f)):u.add(f)):p(f)&&r(f)&&c.push(f)}for(const m of a.values())c.push(...n(m,u));for(const m of new Set(c))s.reconvertItem(m)};function n(l,c){const a=[],u=new Set,d=[];for(const{node:m,previous:f}of new N(l)){if(u.has(m))continue;const g=m.getAttribute("listIndent");f&&g<f.getAttribute("listIndent")&&(d.length=g+1),d[g]=Object.fromEntries(Array.from(m.getAttributes()).filter(([b])=>t.includes(b)));const w=T(m,{direction:"forward"});for(const b of w)u.add(b),(r(b,w)||o(b,d,c))&&a.push(b)}return a}function r(l,c){const a=s.mapper.toViewElement(l);if(!a)return!1;if(e.fire("checkElement",{modelElement:l,viewElement:a}))return!0;if(!l.is("element","paragraph")&&!l.is("element","listItem"))return!1;const d=At(l,t,c);return d&&a.is("element","p")?!0:!!(!d&&a.is("element","span"))}function o(l,c,a){if(a.has(l))return!1;const u=s.mapper.toViewElement(l);let d=c.length-1;for(let m=u.parent;!m.is("editableElement");m=m.parent){const f=Y(m),g=ue(m);if(!g&&!f)continue;const w=`checkAttributes:${f?"item":"list"}`;if(e.fire(w,{viewElement:m,modelAttributes:c[d]}))break;if(g&&(d--,d<0))return!1}return!0}}function ct(i,s,t,{dataPipeline:e}={}){const n=Te(i);return(r,o,l)=>{const{writer:c,mapper:a,consumable:u}=l,d=o.item;if(!i.includes(o.attributeKey)||!n(d,u))return;const m=Ie(d,a,t);wt(m,c,a),Ae(m,c);const f=we(d,m,s,c,{dataPipeline:e});ke(d,f,s,c)}}function ye(i){return(s,t,e)=>{const{writer:n,mapper:r}=e,o=s.name.split(":")[1];if(!i.checkAttribute(o,"listItemId"))return;const l=r.toViewPosition(t.position),c=t.position.getShiftedBy(t.length),a=r.toViewPosition(c,{isPhantom:!0}),d=n.createRange(l,a).getTrimmed().end.nodeBefore;/* istanbul ignore next -- @preserve */d&&wt(d,n,r)}}function at(i,{dataPipeline:s}={}){return(t,{writer:e})=>{if(!At(t,i))return null;if(!s)return e.createContainerElement("span",{class:"ck-list-bogus-paragraph"});const n=e.createContainerElement("p");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function Ie(i,s,t){const e=t.createRangeOn(i);return s.toViewRange(e).getTrimmed().end.nodeBefore}function ve(i,s){return(t,e)=>{if(e.modelPosition.offset>0)return;const n=e.modelPosition.parent;if(!p(n)||!i.some(a=>a.scope=="itemMarker"&&a.canInjectMarkerIntoElement&&a.canInjectMarkerIntoElement(n)))return;const r=e.mapper.toViewElement(n),o=s.createRangeIn(r),l=o.getWalker();let c=o.start;for(const{item:a}of l){if(a.is("element")&&e.mapper.toModelElement(a)||a.is("$textProxy"))break;a.is("element")&&a.getCustomProperty("listItemMarker")&&(c=s.createPositionAfter(a),l.skip(({previousPosition:u})=>!u.isEqual(c)))}e.viewPosition=c}}function wt(i,s,t){for(;i.parent.is("attributeElement")&&i.parent.getCustomProperty("listItemWrapper");)s.unwrap(s.createRangeOn(i),i.parent);const e=[];n(s.createPositionBefore(i).getWalker({direction:"backward"})),n(s.createRangeIn(i).getWalker());for(const r of e)s.remove(r);function n(r){for(const{item:o}of r){if(o.is("element")&&t.toModelElement(o))break;o.is("element")&&o.getCustomProperty("listItemMarker")&&e.push(o)}}}function we(i,s,t,e,{dataPipeline:n}){let r=e.createRangeOn(s);if(!A(i))return r;for(const o of t){if(o.scope!="itemMarker")continue;const l=o.createElement(e,i,{dataPipeline:n});if(!l||(e.setCustomProperty("listItemMarker",!0,l),o.canInjectMarkerIntoElement&&o.canInjectMarkerIntoElement(i)?e.insert(e.createPositionAt(s,0),l):(e.insert(r.start,l),r=e.createRange(e.createPositionBefore(l),e.createPositionAfter(s))),!o.createWrapperElement||!o.canWrapElement))continue;const c=o.createWrapperElement(e,i,{dataPipeline:n});e.setCustomProperty("listItemWrapper",!0,c),o.canWrapElement(i)?r=e.wrap(r,c):(r=e.wrap(e.createRangeOn(l),c),r=e.createRange(r.start,e.createPositionAfter(s)))}return r}function Ae(i,s){let t=i.parent;for(;t.is("attributeElement")&&["ul","ol","li"].includes(t.name);){const e=t.parent;s.unwrap(s.createRangeOn(i),t),t=e}}function ke(i,s,t,e){if(!i.hasAttribute("listIndent"))return;const n=i.getAttribute("listIndent");let r=i;for(let o=n;o>=0;o--){const l=fe(e,o,r.getAttribute("listItemId")),c=me(e,o,r.getAttribute("listType"));for(const a of t)(a.scope=="list"||a.scope=="item")&&r.hasAttribute(a.attributeName)&&a.setAttributeOnDowncast(e,r.getAttribute(a.attributeName),a.scope=="list"?c:l);if(s=e.wrap(s,l),s=e.wrap(s,c),o==0||(r=y.first(r,{lowerIndent:!0}),!r))break}}function Te(i){return(s,t)=>{const e=[];for(const n of i)s.hasAttribute(n)&&e.push(`attribute:${n}`);return e.every(n=>t.test(s,n)!==!1)?(e.forEach(n=>t.consume(s,n)),!0):!1}}function At(i,s,t=C(i)){if(!p(i))return!1;for(const e of i.getAttributeKeys())if(!(e.startsWith("selection:")||e=="htmlEmptyBlock")&&!s.includes(e))return!1;return t.length<2}const R=["listType","listIndent","listItemId"];class z extends v{constructor(t){super(t);h(this,"_downcastStrategies",[]);t.config.define("list.multiBlock",!0)}static get pluginName(){return"ListEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[Ot,Ft,ae,Kt]}init(){const t=this.editor,e=t.model,n=t.config.get("list.multiBlock");if(t.plugins.has("LegacyListEditing"))throw new Mt("list-feature-conflict",this,{conflictPlugin:"LegacyListEditing"});e.schema.register("$listItem",{allowAttributes:R}),n?(e.schema.extend("$container",{allowAttributesOf:"$listItem"}),e.schema.extend("$block",{allowAttributesOf:"$listItem"}),e.schema.extend("$blockObject",{allowAttributesOf:"$listItem"})):e.schema.register("listItem",{inheritAllFrom:"$block",allowAttributesOf:"$listItem"});for(const r of R)e.schema.setAttributeProperties(r,{copyOnReplace:!0});t.commands.add("numberedList",new E(t,"numbered")),t.commands.add("bulletedList",new E(t,"bulleted")),t.commands.add("customNumberedList",new E(t,"customNumbered",{multiLevel:!0})),t.commands.add("customBulletedList",new E(t,"customBulleted",{multiLevel:!0})),t.commands.add("indentList",new nt(t,"forward")),t.commands.add("outdentList",new nt(t,"backward")),t.commands.add("splitListItemBefore",new lt(t,"before")),t.commands.add("splitListItemAfter",new lt(t,"after")),n&&(t.commands.add("mergeListItemBackward",new ot(t,"backward")),t.commands.add("mergeListItemForward",new ot(t,"forward"))),this._setupDeleteIntegration(),this._setupEnterIntegration(),this._setupTabIntegration(),this._setupClipboardIntegration(),this._setupAccessibilityIntegration()}afterInit(){const e=this.editor.commands,n=e.get("indent"),r=e.get("outdent");n&&n.registerChildCommand(e.get("indentList"),{priority:"high"}),r&&r.registerChildCommand(e.get("outdentList"),{priority:"lowest"}),this._setupModelPostFixing(),this._setupConversion()}registerDowncastStrategy(t){this._downcastStrategies.push(t)}getListAttributeNames(){return[...R,...this._downcastStrategies.map(t=>t.attributeName)]}_setupDeleteIntegration(){const t=this.editor,e=t.commands.get("mergeListItemBackward"),n=t.commands.get("mergeListItemForward");this.listenTo(t.editing.view.document,"delete",(r,o)=>{const l=t.model.document.selection;P(t.model)||t.model.change(()=>{const c=l.getFirstPosition();if(l.isCollapsed&&o.direction=="backward"){if(!c.isAtStart)return;const a=c.parent;if(!p(a))return;if(!y.first(a,{sameAttributes:"listType",sameIndent:!0})&&a.getAttribute("listIndent")===0)it(a)||t.execute("splitListItemAfter"),t.execute("outdentList");else{if(!e||!e.isEnabled)return;e.execute({shouldMergeOnBlocksContentLevel:ut(t.model,"backward")})}o.preventDefault(),r.stop()}else{if(l.isCollapsed&&!l.getLastPosition().isAtEnd||!n||!n.isEnabled)return;n.execute({shouldMergeOnBlocksContentLevel:ut(t.model,"forward")}),o.preventDefault(),r.stop()}})},{context:"li"})}_setupEnterIntegration(){const t=this.editor,e=t.model,n=t.commands,r=n.get("enter");this.listenTo(t.editing.view.document,"enter",(o,l)=>{const c=e.document,a=c.selection.getFirstPosition().parent;if(c.selection.isCollapsed&&p(a)&&a.isEmpty&&!l.isSoft){const u=A(a),d=it(a);u&&d?(t.execute("outdentList"),l.preventDefault(),o.stop()):u&&!d?(t.execute("splitListItemAfter"),l.preventDefault(),o.stop()):d&&(t.execute("splitListItemBefore"),l.preventDefault(),o.stop())}},{context:"li"}),this.listenTo(r,"afterExecute",()=>{const o=n.get("splitListItemBefore");if(o.refresh(),!o.isEnabled)return;const c=t.model.document.selection.getLastPosition().parent;C(c).length===2&&o.execute()})}_setupTabIntegration(){const t=this.editor;this.listenTo(t.editing.view.document,"tab",(e,n)=>{const r=n.shiftKey?"outdentList":"indentList";this.editor.commands.get(r).isEnabled&&(t.execute(r),n.stopPropagation(),n.preventDefault(),e.stop())},{context:"li"})}_setupConversion(){const t=this.editor,e=t.model,n=this.getListAttributeNames(),r=t.config.get("list.multiBlock"),o=r?"paragraph":"listItem";t.conversion.for("upcast").elementToElement({view:"li",model:(c,{writer:a})=>a.createElement(o,{listType:""})}).elementToElement({view:"p",model:(c,{writer:a})=>c.parent&&c.parent.is("element","li")?a.createElement(o,{listType:""}):null,converterPriority:"high"}).add(c=>{c.on("element:li",ge())}),r||t.conversion.for("downcast").elementToElement({model:"listItem",view:"p"}),t.conversion.for("editingDowncast").elementToElement({model:o,view:at(n),converterPriority:"high"}).add(c=>{c.on("attribute",ct(n,this._downcastStrategies,e)),c.on("remove",ye(e.schema))}),t.conversion.for("dataDowncast").elementToElement({model:o,view:at(n,{dataPipeline:!0}),converterPriority:"high"}).add(c=>{c.on("attribute",ct(n,this._downcastStrategies,e,{dataPipeline:!0}))});const l=ve(this._downcastStrategies,t.editing.view);t.editing.mapper.on("modelToViewPosition",l),t.data.mapper.on("modelToViewPosition",l),this.listenTo(e.document,"change:data",be(e,t.editing,n,this),{priority:"high"}),this.on("checkAttributes:item",(c,{viewElement:a,modelAttributes:u})=>{a.id!=u.listItemId&&(c.return=!0,c.stop())}),this.on("checkAttributes:list",(c,{viewElement:a,modelAttributes:u})=>{(a.name!=It(u.listType)||a.id!=vt(u.listType,u.listIndent))&&(c.return=!0,c.stop())})}_setupModelPostFixing(){const t=this.editor.model,e=this.getListAttributeNames();t.document.registerPostFixer(n=>Le(t,n,e,this)),this.on("postFixer",(n,{listNodes:r,writer:o})=>{n.return=he(r,o)||n.return},{priority:"high"}),this.on("postFixer",(n,{listNodes:r,writer:o,seenIds:l})=>{n.return=pe(r,l,o)||n.return},{priority:"high"})}_setupClipboardIntegration(){const t=this.editor.model,e=this.editor.plugins.get("ClipboardPipeline");this.listenTo(t,"insertContent",Se(t),{priority:"high"}),this.listenTo(e,"outputTransformation",(n,r)=>{t.change(o=>{const l=Array.from(r.content.getChildren()),c=l[l.length-1];if(l.length>1&&c.is("element")&&c.isEmpty&&l.slice(0,-1).every(p)&&o.remove(c),r.method=="copy"||r.method=="cut"){const a=Array.from(r.content.getChildren());B(a)&&U(a,o)}})})}_setupAccessibilityIntegration(){const t=this.editor,e=t.t;t.accessibility.addKeystrokeInfoGroup({id:"list",label:e("Keystrokes that can be used in a list"),keystrokes:[{label:e("Increase list item indent"),keystroke:"Tab"},{label:e("Decrease list item indent"),keystroke:"Shift+Tab"}]})}}function Le(i,s,t,e){const n=i.document.differ.getChanges(),r=new Set,o=new Set,l=e.editor.config.get("list.multiBlock");let c=!1;for(const u of n){if(u.type=="insert"&&u.name!="$text"){const d=u.position.nodeAfter;if(!i.schema.checkAttribute(d,"listItemId"))for(const m of Array.from(d.getAttributeKeys()))t.includes(m)&&(s.removeAttribute(m,d),c=!0);I(u.position,o,r),u.attributes.has("listItemId")||I(u.position.getShiftedBy(u.length),o,r);for(const{item:m,previousPosition:f}of i.createRangeIn(d))p(m)&&I(f,o,r)}else u.type=="remove"?I(u.position,o,r):u.type=="attribute"&&t.includes(u.attributeKey)&&(I(u.range.start,o,r),u.attributeNewValue===null&&I(u.range.start.getShiftedBy(1),o,r));if(!l&&u.type=="attribute"&&R.includes(u.attributeKey)){const d=u.range.start.nodeAfter;u.attributeNewValue===null&&d&&d.is("element","listItem")?(s.rename(d,"paragraph"),c=!0):u.attributeOldValue===null&&d&&d.is("element")&&d.name!="listItem"&&(s.rename(d,"listItem"),c=!0)}}const a=new Set;for(const u of o.values())c=e.fire("postFixer",{listNodes:new ne(u),listHead:u,writer:s,seenIds:a})||c;return c}function Se(i){return(s,[t,e])=>{const n=t.is("documentFragment")?Array.from(t.getChildren()):[t];if(!n.length)return;const o=(e?i.createSelection(e):i.document.selection).getFirstPosition();let l;if(p(o.parent))l=o.parent;else if(p(o.nodeBefore)&&p(o.nodeAfter))l=o.nodeBefore;else return;i.change(c=>{const a=l.getAttribute("listType"),u=l.getAttribute("listIndent"),d=n[0].getAttribute("listIndent")||0,m=Math.max(u-d,0);for(const f of n){const g=p(f);l.is("element","listItem")&&f.is("element","paragraph")&&c.rename(f,"listItem"),c.setAttributes({listIndent:(g?f.getAttribute("listIndent"):0)+m,listItemId:g?f.getAttribute("listItemId"):x.next(),listType:a},f)}})}}function ut(i,s){const t=i.document.selection;if(!t.isCollapsed)return!P(i);if(s==="forward")return!0;const n=t.getFirstPosition().parent,r=n.previousSibling;return i.schema.isObject(r)?!1:r.isEmpty?!0:B([n,r])}function G(i,s,t,e){i.ui.componentFactory.add(s,()=>{const n=dt(J,i,s,t,e);return n.set({tooltip:!0,isToggleable:!0}),n}),i.ui.componentFactory.add(`menuBar:${s}`,()=>{const n=dt(Yt,i,s,t,e);return n.set({role:"menuitemcheckbox",isToggleable:!0}),n})}function dt(i,s,t,e,n){const r=s.commands.get(t),o=new i(s.locale);return o.set({label:e,icon:n}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),o.on("execute",()=>{s.execute(t),s.editing.view.focus()}),o}class _e extends v{static get pluginName(){return"ListUI"}static get isOfficialPlugin(){return!0}init(){const s=this.editor.t;this.editor.ui.componentFactory.has("numberedList")||G(this.editor,"numberedList",s("Numbered List"),_.numberedList),this.editor.ui.componentFactory.has("bulletedList")||G(this.editor,"bulletedList",s("Bulleted List"),_.bulletedList)}}class ds extends v{static get requires(){return[z,_e]}static get pluginName(){return"List"}static get isOfficialPlugin(){return!0}}class xe extends L{refresh(){const s=this._getValue();this.value=s,this.isEnabled=s!=null}execute({startIndex:s=1}={}){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks()).filter(r=>p(r)&&H(r.getAttribute("listType")));n=$(n),t.change(r=>{for(const o of n)r.setAttribute("listStart",s>=0?s:1,o)})}_getValue(){const t=this.editor.model.document,e=D(t.selection.getSelectedBlocks());return e&&p(e)&&H(e.getAttribute("listType"))?e.getAttribute("listStart"):null}}/**
8
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
9
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
10
+ */const kt={},Tt={},Lt={},St=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:i,typeAttribute:s,listType:t}of St)kt[i]=t,Tt[i]=s,s&&(Lt[s]=i);function _t(){return St.map(i=>i.listStyle)}function X(i){return kt[i]||null}function xt(i){return Lt[i]||null}function Z(i){return Tt[i]||null}function Ce(i){switch(i){case"lower-alpha":return"lower-latin";case"upper-alpha":return"upper-latin";default:return i}}class Ve extends L{constructor(t,e,n){super(t);h(this,"defaultType");h(this,"_supportedTypes");this.defaultType=e,this._supportedTypes=n}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.document;e.change(r=>{this._tryToConvertItemsToList(t);let o=Array.from(n.selection.getSelectedBlocks()).filter(l=>l.hasAttribute("listType"));if(o.length){o=$(o);for(const l of o)r.setAttribute("listStyle",t.type||this.defaultType,l)}})}isStyleTypeSupported(t){return this._supportedTypes?this._supportedTypes.includes(t):!0}_getValue(){const t=D(this.editor.model.document.selection.getSelectedBlocks());return p(t)?t.getAttribute("listStyle"):null}_checkEnabled(){const t=this.editor,e=t.commands.get("numberedList"),n=t.commands.get("bulletedList");return e.isEnabled||n.isEnabled}_tryToConvertItemsToList(t){if(!t.type)return;const e=X(t.type);if(!e)return;const n=this.editor,r=`${e}List`;n.commands.get(r).value||n.execute(r)}}class Ee extends L{refresh(){const s=this._getValue();this.value=s,this.isEnabled=s!=null}execute(s={}){const t=this.editor.model,e=t.document;let n=Array.from(e.selection.getSelectedBlocks()).filter(r=>p(r)&&r.getAttribute("listType")=="numbered");n=$(n),t.change(r=>{for(const o of n)r.setAttribute("listReversed",!!s.reversed,o)})}_getValue(){const t=this.editor.model.document,e=D(t.selection.getSelectedBlocks());return p(e)&&e.getAttribute("listType")=="numbered"?e.getAttribute("listReversed"):null}}/**
11
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
12
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
13
+ */function mt(i){return(s,t,e)=>{const{writer:n,schema:r,consumable:o}=e;if(o.test(t.viewItem,i.viewConsumables)===!1)return;t.modelRange||Object.assign(t,e.convertChildren(t.viewItem,t.modelCursor));let l=!1;for(const c of t.modelRange.getItems({shallow:!0}))r.checkAttribute(c,i.attributeName)&&i.appliesToListItem(c)&&(c.hasAttribute(i.attributeName)||(n.setAttribute(i.attributeName,i.getAttributeOnUpcast(t.viewItem),c),l=!0));l&&o.consume(t.viewItem,i.viewConsumables)}}class Be extends v{static get pluginName(){return"ListPropertiesUtils"}static get isOfficialPlugin(){return!0}getAllSupportedStyleTypes(){return _t()}getListTypeFromListStyleType(s){return X(s)}getListStyleTypeFromTypeAttribute(s){return xt(s)}getTypeAttributeFromListStyleType(s){return Z(s)}}function Ct(i){const{startIndex:s,reversed:t,styles:e}=i;return{styles:Pe(e),startIndex:s||!1,reversed:t||!1}}function Pe(i){const s={listTypes:["bulleted","numbered"],useAttribute:!1};return i===!0||(i?Array.isArray(i)||typeof i=="string"?s.listTypes=k(i):(s.listTypes=i.listTypes?k(i.listTypes):s.listTypes,s.useAttribute=!!i.useAttribute,i.listStyleTypes&&(s.listStyleTypes=i.listStyleTypes)):s.listTypes=[]),s}const V="default";class ze extends v{static get requires(){return[z,Be]}static get pluginName(){return"ListPropertiesEditing"}static get isOfficialPlugin(){return!0}constructor(s){super(s),s.config.define("list.properties",{styles:!0,startIndex:!1,reversed:!1})}init(){const s=this.editor,t=s.model,e=s.plugins.get(z),n=s.config.get("list.properties"),r=Ne(n);for(const o of r)o.addCommand(s),t.schema.extend("$listItem",{allowAttributes:o.attributeName}),e.registerDowncastStrategy({scope:"list",attributeName:o.attributeName,setAttributeOnDowncast(l,c,a){o.setAttributeOnDowncast(l,c,a)}});s.conversion.for("upcast").add(o=>{for(const l of r)o.on("element:ol",mt(l)),o.on("element:ul",mt(l))}),e.on("checkAttributes:list",(o,{viewElement:l,modelAttributes:c})=>{for(const a of r)a.getAttributeOnUpcast(l)!=c[a.attributeName]&&(o.return=!0,o.stop())}),this.listenTo(s.commands.get("indentList"),"afterExecute",(o,l)=>{t.change(c=>{for(const a of l)for(const u of r)u.appliesToListItem(a)&&c.setAttribute(u.attributeName,u.defaultValue,a)})}),e.on("postFixer",(o,{listNodes:l,writer:c})=>{for(const{node:a}of l)for(const u of r)u.hasValidAttribute(a)||(u.appliesToListItem(a)?c.setAttribute(u.attributeName,u.defaultValue,a):c.removeAttribute(u.attributeName,a),o.return=!0)}),e.on("postFixer",(o,{listNodes:l,writer:c})=>{for(const{node:a,previousNodeInList:u}of l)if(u&&u.getAttribute("listType")==a.getAttribute("listType"))for(const d of r){const{attributeName:m}=d;if(!d.appliesToListItem(a))continue;const f=u.getAttribute(m);a.getAttribute(m)!=f&&(c.setAttribute(m,f,a),o.return=!0)}})}}function Ne(i){const s=[],t=Ct(i);if(i.styles){const e=t.styles.useAttribute;s.push({attributeName:"listStyle",defaultValue:V,viewConsumables:{styles:"list-style-type"},addCommand(n){let r=_t();e&&(r=r.filter(o=>!!Z(o))),n.commands.add("listStyle",new Ve(n,V,r))},appliesToListItem(n){return n.getAttribute("listType")=="numbered"||n.getAttribute("listType")=="bulleted"},hasValidAttribute(n){if(!this.appliesToListItem(n))return!n.hasAttribute("listStyle");if(!n.hasAttribute("listStyle"))return!1;const r=n.getAttribute("listStyle");return r==V?!0:X(r)==n.getAttribute("listType")},setAttributeOnDowncast(n,r,o){if(r&&r!==V)if(e){const l=Z(r);if(l){n.setAttribute("type",l,o);return}}else{n.setStyle("list-style-type",r,o);return}n.removeStyle("list-style-type",o),n.removeAttribute("type",o)},getAttributeOnUpcast(n){const r=n.getStyle("list-style-type");if(r)return Ce(r);const o=n.getAttribute("type");return o?xt(o):V}})}return i.reversed&&s.push({attributeName:"listReversed",defaultValue:!1,viewConsumables:{attributes:"reversed"},addCommand(e){e.commands.add("listReversed",new Ee(e))},appliesToListItem(e){return e.getAttribute("listType")=="numbered"},hasValidAttribute(e){return this.appliesToListItem(e)==e.hasAttribute("listReversed")},setAttributeOnDowncast(e,n,r){n?e.setAttribute("reversed","reversed",r):e.removeAttribute("reversed",r)},getAttributeOnUpcast(e){return e.hasAttribute("reversed")}}),i.startIndex&&s.push({attributeName:"listStart",defaultValue:1,viewConsumables:{attributes:"start"},addCommand(e){e.commands.add("listStart",new xe(e))},appliesToListItem(e){return H(e.getAttribute("listType"))},hasValidAttribute(e){return this.appliesToListItem(e)==e.hasAttribute("listStart")},setAttributeOnDowncast(e,n,r){n==0||n>1?e.setAttribute("start",n,r):e.removeAttribute("start",r)},getAttributeOnUpcast(e){const n=e.getAttribute("start");return n>=0?n:1}}),s}class Vt extends st{constructor(t,{enabledProperties:e,styleButtonViews:n,styleGridAriaLabel:r}){super(t);h(this,"children");h(this,"stylesView",null);h(this,"additionalPropertiesCollapsibleView",null);h(this,"startIndexFieldView",null);h(this,"reversedSwitchButtonView",null);h(this,"focusTracker",new tt);h(this,"keystrokes",new et);h(this,"focusables",new Zt);h(this,"focusCycler");const o=["ck","ck-list-properties"];this.children=this.createCollection(),this.focusCycler=new Jt({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),n&&n.length?(this.stylesView=this._createStylesView(n,r),this.children.add(this.stylesView)):o.push("ck-list-properties_without-styles"),(e.startIndex||e.reversed)&&(this._addNumberedListPropertyViews(e),o.push("ck-list-properties_with-numbered-properties")),this.setTemplate({tag:"div",attributes:{class:o},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element),(this.startIndexFieldView||this.reversedSwitchButtonView)&&(this.focusables.add(this.children.last.buttonView),this.focusTracker.add(this.children.last.buttonView.element));for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);Qt({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>Ut.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.reversedSwitchButtonView&&(this.focusables.add(this.reversedSwitchButtonView),this.focusTracker.add(this.reversedSwitchButtonView.element)),this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createStylesView(t,e){const n=new st(this.locale);return n.children=n.createCollection(),n.children.addMany(t),n.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-list-styles-list"]},children:n.children}),n.children.delegate("execute").to(this),n.focus=function(){for(const r of this.children)if(r instanceof J&&r.isOn){r.focus();return}this.children.first.focus()},n.focusTracker=new tt,n.keystrokes=new et,n.render(),n.keystrokes.listenTo(n.element),n}_addNumberedListPropertyViews(t){const e=this.locale.t,n=[];t.startIndex&&(this.startIndexFieldView=this._createStartIndexField(),n.push(this.startIndexFieldView)),t.reversed&&(this.reversedSwitchButtonView=this._createReversedSwitchButton(),n.push(this.reversedSwitchButtonView)),this.stylesView?(this.additionalPropertiesCollapsibleView=new Xt(this.locale,n),this.additionalPropertiesCollapsibleView.set({label:e("List properties"),isCollapsed:!0}),this.additionalPropertiesCollapsibleView.buttonView.bind("isEnabled").toMany(n,"isEnabled",(...r)=>r.some(o=>o)),this.additionalPropertiesCollapsibleView.buttonView.on("change:isEnabled",(r,o,l)=>{l||(this.additionalPropertiesCollapsibleView.isCollapsed=!0)}),this.children.add(this.additionalPropertiesCollapsibleView)):this.children.addMany(n)}_createStartIndexField(){const t=this.locale.t,e=new te(this.locale,ee);return e.set({label:t("Start at"),class:"ck-numbered-list-properties__start-index"}),e.fieldView.set({min:0,step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const n=e.fieldView.element,r=n.valueAsNumber;if(Number.isNaN(r)){e.errorText=t("Invalid start index value.");return}n.checkValidity()?this.fire("listStart",{startIndex:r}):e.errorText=t("Start index must be greater than 0.")}),e}_createReversedSwitchButton(){const t=this.locale.t,e=new se(this.locale);return e.set({withText:!0,label:t("Reversed order"),class:"ck-numbered-list-properties__reversed-order"}),e.delegate("execute").to(this,"listReversed"),e}}var Fe='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"/></svg>',Oe='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"/></svg>',Me='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M14 27v6H8v-6h6zm0-9v6H8v-6h6zm0-9v6H8V9h6z"/></svg>',Re='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M10.29 15V8.531H9.286c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.343 0v-1.235h-1.235V15h1.235zM11.3 24v-1.147H8.848c.064-.111.148-.226.252-.343.104-.117.351-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.494-.824.104-.263.156-.539.156-.829 0-.51-.182-.936-.545-1.279-.363-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.153-.155.358-.233.616-.233.26 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.468.536-1.024 1.055-.692.641-1.155 1.156-1.389 1.544-.234.389-.375.8-.422 1.233H11.3zm2.333 0v-1.235h-1.235V24h1.235zM9.204 34.11c.615 0 1.129-.2 1.542-.598.413-.398.62-.88.62-1.446 0-.39-.11-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.619-.337.928-.788.928-1.353 0-.399-.151-.756-.453-1.073-.366-.386-.852-.58-1.459-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.668.55c-.16.232-.28.544-.358.933l1.138.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.215 0 .386.065.515.194s.193.302.193.518c0 .255-.087.46-.263.613-.176.154-.43.227-.765.218l-.136 1.006c.22-.061.409-.092.567-.092.24 0 .444.09.61.272.168.182.251.428.251.739 0 .328-.087.589-.261.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.307-.698l-1.196.145c.062.542.285.98.668 1.316.384.335.868.503 1.45.503zm4.43-.11v-1.235h-1.236V34h1.235z"/></svg>',He='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M5.714 15.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm6.078.914V8.531H10.79c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.344 0v-1.235h-1.235V15h1.235zm-9.422 9.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm7.088.914v-1.147H10.35c.065-.111.149-.226.253-.343.104-.117.35-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.493-.824.104-.263.156-.539.156-.829 0-.51-.181-.936-.544-1.279-.364-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.152-.155.357-.233.615-.233.261 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.467.536-1.024 1.055-.691.641-1.154 1.156-1.388 1.544-.235.389-.375.8-.422 1.233h4.328zm2.334 0v-1.235h-1.235V24h1.235zM5.714 34.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm4.992 1.024c.616 0 1.13-.2 1.543-.598.413-.398.62-.88.62-1.446 0-.39-.111-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.618-.337.927-.788.927-1.353 0-.399-.15-.756-.452-1.073-.366-.386-.853-.58-1.46-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.667.55c-.16.232-.28.544-.359.933l1.139.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.214 0 .386.065.515.194s.193.302.193.518c0 .255-.088.46-.264.613-.175.154-.43.227-.764.218l-.136 1.006c.22-.061.408-.092.566-.092.24 0 .444.09.611.272.167.182.25.428.25.739 0 .328-.086.589-.26.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.308-.698l-1.195.145c.062.542.284.98.668 1.316.384.335.867.503 1.45.503zm4.43-.11v-1.235h-1.235V34h1.235z"/></svg>',De='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.88 8.7V7.558h-1.234V8.7h1.234zm0 5.3V9.333h-1.234V14h1.234zm2.5 0v-1.235h-1.234V14h1.235zm-4.75 4.7v-1.142H8.395V18.7H9.63zm0 5.3v-4.667H8.395V24H9.63zm2.5-5.3v-1.142h-1.234V18.7h1.235zm0 5.3v-4.667h-1.234V24h1.235zm2.501 0v-1.235h-1.235V24h1.235zM7.38 28.7v-1.142H6.145V28.7H7.38zm0 5.3v-4.667H6.145V34H7.38zm2.5-5.3v-1.142H8.646V28.7H9.88zm0 5.3v-4.667H8.646V34H9.88zm2.5-5.3v-1.142h-1.234V28.7h1.235zm0 5.3v-4.667h-1.234V34h1.235zm2.501 0v-1.235h-1.235V34h1.235z"/></svg>',$e='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.916 15V8.558h-1.301V15h1.3zm2.465 0v-1.235h-1.235V15h1.235zM9.665 25v-6.442h-1.3V25h1.3zm2.5 0v-6.442h-1.3V25h1.3zm2.466 0v-1.235h-1.235V25h1.235zm-7.216 9v-6.442h-1.3V34h1.3zm2.5 0v-6.442h-1.3V34h1.3zm2.501 0v-6.442h-1.3V34h1.3zm2.465 0v-1.235h-1.235V34h1.235z"/></svg>',Ue='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M9.62 14.105c.272 0 .528-.05.768-.153s.466-.257.677-.462c.009.024.023.072.044.145.047.161.086.283.119.365h1.221a2.649 2.649 0 0 1-.222-.626c-.04-.195-.059-.498-.059-.908l.013-1.441c0-.536-.055-.905-.165-1.105-.11-.201-.3-.367-.569-.497-.27-.13-.68-.195-1.23-.195-.607 0-1.064.108-1.371.325-.308.217-.525.55-.65 1.002l1.12.202c.076-.217.176-.369.299-.455.123-.086.294-.13.514-.13.325 0 .546.05.663.152.118.101.176.27.176.508v.123c-.222.093-.622.194-1.2.303-.427.082-.755.178-.982.288-.227.11-.403.268-.53.474a1.327 1.327 0 0 0-.188.706c0 .398.138.728.415.988.277.261.656.391 1.136.391zm.368-.87a.675.675 0 0 1-.492-.189.606.606 0 0 1-.193-.448c0-.176.08-.32.241-.435.106-.07.33-.142.673-.215a7.19 7.19 0 0 0 .751-.19v.247c0 .296-.016.496-.048.602a.773.773 0 0 1-.295.409 1.07 1.07 0 0 1-.637.22zm4.645.765v-1.235h-1.235V14h1.235zM10.2 25.105c.542 0 1.003-.215 1.382-.646.38-.43.57-1.044.57-1.84 0-.771-.187-1.362-.559-1.774a1.82 1.82 0 0 0-1.41-.617c-.522 0-.973.216-1.354.65v-2.32H7.594V25h1.147v-.686a1.9 1.9 0 0 0 .67.592c.26.133.523.2.79.2zm-.299-.975c-.354 0-.638-.164-.852-.492-.153-.232-.229-.59-.229-1.073 0-.468.098-.818.295-1.048a.93.93 0 0 1 .738-.345c.302 0 .55.118.743.354.193.236.29.62.29 1.154 0 .5-.096.868-.288 1.1-.192.233-.424.35-.697.35zm4.478.87v-1.235h-1.234V25h1.234zm-4.017 9.105c.6 0 1.08-.142 1.437-.426.357-.284.599-.704.725-1.261l-1.213-.207c-.061.326-.167.555-.316.688a.832.832 0 0 1-.576.2.916.916 0 0 1-.75-.343c-.185-.228-.278-.62-.278-1.173 0-.498.091-.853.274-1.066.183-.212.429-.318.736-.318.232 0 .42.061.565.184.145.123.238.306.28.55l1.216-.22c-.146-.501-.387-.874-.722-1.119-.336-.244-.788-.366-1.356-.366-.695 0-1.245.214-1.653.643-.407.43-.61 1.03-.61 1.8 0 .762.202 1.358.608 1.788.406.431.95.646 1.633.646zM14.633 34v-1.235h-1.235V34h1.235z"/></svg>',Ke='<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="m7.88 15 .532-1.463h2.575L11.549 15h1.415l-2.58-6.442H9.01L6.5 15h1.38zm2.69-2.549H8.811l.87-2.39.887 2.39zM14.88 15v-1.235h-1.234V15h1.234zM9.352 25c.83-.006 1.352-.02 1.569-.044.346-.038.636-.14.872-.305.236-.166.422-.387.558-.664.137-.277.205-.562.205-.855 0-.372-.106-.695-.317-.97-.21-.276-.512-.471-.905-.585a1.51 1.51 0 0 0 .661-.567 1.5 1.5 0 0 0 .244-.83c0-.28-.066-.53-.197-.754a1.654 1.654 0 0 0-.495-.539 1.676 1.676 0 0 0-.672-.266c-.25-.042-.63-.063-1.14-.063H7.158V25h2.193zm.142-3.88H8.46v-1.49h.747c.612 0 .983.007 1.112.022.217.026.38.102.49.226.11.125.165.287.165.486a.68.68 0 0 1-.192.503.86.86 0 0 1-.525.23 11.47 11.47 0 0 1-.944.023h.18zm.17 2.795H8.46v-1.723h1.05c.592 0 .977.03 1.154.092.177.062.313.16.406.295a.84.84 0 0 1 .14.492c0 .228-.06.41-.181.547a.806.806 0 0 1-.473.257c-.126.026-.423.04-.892.04zM14.88 25v-1.235h-1.234V25h1.234zm-5.018 9.11c.691 0 1.262-.17 1.711-.512.45-.341.772-.864.965-1.567l-1.261-.4c-.109.472-.287.818-.536 1.037-.25.22-.547.33-.892.33-.47 0-.85-.173-1.143-.519-.293-.345-.44-.925-.44-1.74 0-.767.15-1.322.447-1.665.297-.343.684-.514 1.162-.514.346 0 .64.096.881.29.242.193.4.457.477.79l1.288-.307c-.147-.516-.367-.911-.66-1.187-.492-.465-1.132-.698-1.92-.698-.902 0-1.63.296-2.184.89-.554.593-.83 1.426-.83 2.498 0 1.014.275 1.813.825 2.397.551.585 1.254.877 2.11.877zM14.88 34v-1.235h-1.234V34h1.234z"/></svg>';class We extends v{static get pluginName(){return"ListPropertiesUI"}static get isOfficialPlugin(){return!0}init(){const s=this.editor,t=s.locale.t,e=s.config.get("list.properties"),n=Ct(e),r=n.styles.listTypes;if(r.includes("bulleted")){const o=[{label:t("Toggle the disc list style"),tooltip:t("Disc"),type:"disc",icon:Fe},{label:t("Toggle the circle list style"),tooltip:t("Circle"),type:"circle",icon:Oe},{label:t("Toggle the square list style"),tooltip:t("Square"),type:"square",icon:Me}],l=t("Bulleted List"),c=t("Bulleted list styles toolbar"),a="bulletedList";s.ui.componentFactory.add(a,ft({editor:s,normalizedConfig:n,parentCommandName:a,buttonLabel:l,buttonIcon:_.bulletedList,styleGridAriaLabel:c,styleDefinitions:o})),s.ui.componentFactory.add(`menuBar:${a}`,ht({editor:s,normalizedConfig:n,parentCommandName:a,buttonLabel:l,styleGridAriaLabel:c,styleDefinitions:o}))}if(r.includes("numbered")||e.startIndex||e.reversed){const o=[{label:t("Toggle the decimal list style"),tooltip:t("Decimal"),type:"decimal",icon:Re},{label:t("Toggle the decimal with leading zero list style"),tooltip:t("Decimal with leading zero"),type:"decimal-leading-zero",icon:He},{label:t("Toggle the lower–roman list style"),tooltip:t("Lower–roman"),type:"lower-roman",icon:De},{label:t("Toggle the upper–roman list style"),tooltip:t("Upper-roman"),type:"upper-roman",icon:$e},{label:t("Toggle the lower–latin list style"),tooltip:t("Lower-latin"),type:"lower-latin",icon:Ue},{label:t("Toggle the upper–latin list style"),tooltip:t("Upper-latin"),type:"upper-latin",icon:Ke}],l=t("Numbered List"),c=t("Numbered list styles toolbar"),a="numberedList";s.ui.componentFactory.add(a,ft({editor:s,normalizedConfig:n,parentCommandName:a,buttonLabel:l,buttonIcon:_.numberedList,styleGridAriaLabel:c,styleDefinitions:o})),r.includes("numbered")&&s.ui.componentFactory.add(`menuBar:${a}`,ht({editor:s,normalizedConfig:n,parentCommandName:a,buttonLabel:l,styleGridAriaLabel:c,styleDefinitions:o}))}}}function ft({editor:i,normalizedConfig:s,parentCommandName:t,buttonLabel:e,buttonIcon:n,styleGridAriaLabel:r,styleDefinitions:o}){const l=i.commands.get(t);return c=>{const a=Wt(c,jt),u=a.buttonView;return a.bind("isEnabled").to(l),a.class="ck-list-styles-dropdown",u.on("execute",()=>{i.execute(t),i.editing.view.focus()}),u.set({label:e,icon:n,tooltip:!0,isToggleable:!0}),u.bind("isOn").to(l,"value",d=>!!d),a.once("change:isOpen",()=>{const d=je({editor:i,normalizedConfig:s,dropdownView:a,parentCommandName:t,styleGridAriaLabel:r,styleDefinitions:o});a.panelView.children.add(d)}),a.on("execute",()=>{i.editing.view.focus()}),a}}function Et({editor:i,listStyleCommand:s,parentCommandName:t}){const e=i.locale,n=i.commands.get(t);return({label:r,type:o,icon:l,tooltip:c})=>{const a=new J(e);return a.set({label:r,icon:l,tooltip:c}),a.bind("isOn").to(s,"value",u=>u===o),a.on("execute",()=>{n.value?s.value===o?i.execute(t):s.value!==o&&i.execute("listStyle",{type:o}):i.model.change(()=>{i.execute("listStyle",{type:o})})}),a}}function je({editor:i,normalizedConfig:s,dropdownView:t,parentCommandName:e,styleDefinitions:n,styleGridAriaLabel:r}){const o=i.locale,l={...s,...e!="numberedList"?{startIndex:!1,reversed:!1}:null},c=e.replace("List","");let a=null;if(s.styles.listTypes.includes(c)){const d=i.commands.get("listStyle"),m=Et({editor:i,parentCommandName:e,listStyleCommand:d}),f=s.styles.listStyleTypes;let g=n;if(f){const b=f[c];b&&(g=n.filter(O=>b.includes(O.type)))}const w=Bt(d);a=g.filter(w).map(m)}const u=new Vt(o,{styleGridAriaLabel:r,enabledProperties:l,styleButtonViews:a});if(s.styles.listTypes.includes(c)&&Gt(t,()=>u.stylesView.children.find(d=>d.isOn)),l.startIndex){const d=i.commands.get("listStart");u.startIndexFieldView.bind("isEnabled").to(d),u.startIndexFieldView.fieldView.bind("value").to(d),u.on("listStart",(m,f)=>i.execute("listStart",f))}if(l.reversed){const d=i.commands.get("listReversed");u.reversedSwitchButtonView.bind("isEnabled").to(d),u.reversedSwitchButtonView.bind("isOn").to(d,"value",m=>!!m),u.on("listReversed",()=>{const m=d.value;i.execute("listReversed",{reversed:!m})})}return u.delegate("execute").to(t),u}function ht({editor:i,normalizedConfig:s,parentCommandName:t,buttonLabel:e,styleGridAriaLabel:n,styleDefinitions:r}){return o=>{const l=new qt(o),c=i.commands.get(t),a=i.commands.get("listStyle"),u=Bt(a),d=Et({editor:i,parentCommandName:t,listStyleCommand:a}),m=s.styles.listStyleTypes;let f=r;if(m){const b=c.type,O=m[b];O&&(f=r.filter(Pt=>O.includes(Pt.type)))}const g=f.filter(u).map(d),w=new Vt(o,{styleGridAriaLabel:n,enabledProperties:{...s,startIndex:!1,reversed:!1},styleButtonViews:g});return w.delegate("execute").to(l),l.buttonView.set({label:e,icon:_[t]}),l.panelView.children.add(w),l.bind("isEnabled").to(c,"isEnabled"),l.on("execute",()=>{i.editing.view.focus()}),l}}function Bt(i){return typeof i.isStyleTypeSupported=="function"?s=>i.isStyleTypeSupported(s.type):()=>!0}class ms extends v{static get requires(){return[ze,We]}static get pluginName(){return"ListProperties"}static get isOfficialPlugin(){return!0}}class qe extends L{constructor(s){super(s),this.on("execute",()=>{this.refresh()},{priority:"highest"})}refresh(){const s=this._getSelectedItems();this.value=this._getValue(s),this.isEnabled=!!s.length}execute(s={}){this.editor.model.change(t=>{const e=this._getSelectedItems(),n=s.forceValue===void 0?!this._getValue(e):s.forceValue;for(const r of e)n?t.setAttribute("todoListChecked",!0,r):t.removeAttribute("todoListChecked",r)})}_getValue(s){return s.every(t=>t.getAttribute("todoListChecked"))}_getSelectedItems(){const s=this.editor.model,t=s.schema,e=s.document.selection.getFirstRange(),n=e.start.parent,r=[];t.checkAttribute(n,"todoListChecked")&&r.push(...C(n));for(const o of e.getItems({shallow:!0}))t.checkAttribute(o,"todoListChecked")&&!r.includes(o)&&r.push(...C(o));return r}}class Ye extends ie{constructor(){super(...arguments);h(this,"domEventType",["change"])}onDomEvent(t){if(t.target){const e=this.view.domConverter.mapDomToView(t.target);e&&e.is("element","input")&&e.getAttribute("type")=="checkbox"&&e.findAncestor({classes:"todo-list__label"})&&this.fire("todoCheckboxChange",t)}}}const Ge=Ht("Ctrl+Enter");class Ze extends v{static get pluginName(){return"TodoListEditing"}static get isOfficialPlugin(){return!0}static get requires(){return[z]}init(){const s=this.editor,t=s.model,e=s.editing,n=s.plugins.get(z),o=s.config.get("list.multiBlock")?"paragraph":"listItem";s.commands.add("todoList",new E(s,"todo")),s.commands.add("checkTodoList",new qe(s)),e.view.addObserver(Ye),t.schema.extend("$listItem",{allowAttributes:"todoListChecked"}),t.schema.addAttributeCheck(l=>{const c=l.last;if(!c.getAttribute("listItemId")||c.getAttribute("listType")!="todo")return!1},"todoListChecked"),s.conversion.for("upcast").add(l=>{l.on("element:input",Qe()),l.on("element:li",Je(),{priority:"low"}),l.on("element:label",W({name:"label",classes:"todo-list__label"})),l.on("element:label",W({name:"label",classes:["todo-list__label","todo-list__label_without-description"]})),l.on("element:span",W({name:"span",classes:"todo-list__label__description"})),l.on("element:ul",Xe({name:"ul",classes:"todo-list"}))}),s.conversion.for("downcast").elementToElement({model:o,view:(l,{writer:c})=>{if(M(l,n.getListAttributeNames()))return c.createContainerElement("span",{class:"todo-list__label__description"})},converterPriority:"highest"}),n.registerDowncastStrategy({scope:"list",attributeName:"listType",setAttributeOnDowncast(l,c,a){c=="todo"?l.addClass("todo-list",a):l.removeClass("todo-list",a)}}),n.registerDowncastStrategy({scope:"itemMarker",attributeName:"todoListChecked",createElement(l,c,{dataPipeline:a}){if(c.getAttribute("listType")!="todo")return null;const u=l.createUIElement("input",{type:"checkbox",...c.getAttribute("todoListChecked")?{checked:"checked"}:null,...a?{disabled:"disabled"}:{tabindex:"-1"}});if(a)return u;const d=l.createContainerElement("span",{contenteditable:"false"},u);return d.getFillerOffset=()=>null,d},canWrapElement(l){return M(l,n.getListAttributeNames())},createWrapperElement(l,c,{dataPipeline:a}){const u=["todo-list__label"];return M(c,n.getListAttributeNames())||u.push("todo-list__label_without-description"),l.createAttributeElement(a?"label":"span",{class:u.join(" ")})}}),n.on("checkElement",(l,{modelElement:c,viewElement:a})=>{const u=M(c,n.getListAttributeNames());a.hasClass("todo-list__label__description")!=u&&(l.return=!0,l.stop())}),n.on("checkElement",(l,{modelElement:c,viewElement:a})=>{const u=c.getAttribute("listType")=="todo"&&A(c);let d=!1;const m=s.editing.view.createPositionBefore(a).getWalker({direction:"backward"});for(const{item:f}of m){if(f.is("element")&&s.editing.mapper.toModelElement(f))break;f.is("element","input")&&f.getAttribute("type")=="checkbox"&&(d=!0)}d!=u&&(l.return=!0,l.stop())}),n.on("postFixer",(l,{listNodes:c,writer:a})=>{for(const{node:u,previousNodeInList:d}of c){if(!d||d.getAttribute("listItemId")!=u.getAttribute("listItemId"))continue;const m=d.hasAttribute("todoListChecked"),f=u.hasAttribute("todoListChecked");f&&!m?(a.removeAttribute("todoListChecked",u),l.return=!0):!f&&m&&(a.setAttribute("todoListChecked",!0,u),l.return=!0)}}),t.document.registerPostFixer(l=>{const c=t.document.differ.getChanges();let a=!1;for(const u of c)if(u.type=="attribute"&&u.attributeKey=="listType"){const d=u.range.start.nodeAfter;u.attributeOldValue=="todo"&&d.hasAttribute("todoListChecked")&&(l.removeAttribute("todoListChecked",d),a=!0)}else if(u.type=="insert"&&u.name!="$text")for(const{item:d}of l.createRangeOn(u.position.nodeAfter))d.is("element")&&d.getAttribute("listType")!="todo"&&d.hasAttribute("todoListChecked")&&(l.removeAttribute("todoListChecked",d),a=!0);return a}),this.listenTo(e.view.document,"keydown",(l,c)=>{Rt(c)===Ge&&(s.execute("checkTodoList"),l.stop())},{priority:"high"}),this.listenTo(e.view.document,"todoCheckboxChange",(l,c)=>{const a=c.target;if(!a||!a.is("element","input"))return;const u=e.view.createPositionAfter(a),m=e.mapper.toModelPosition(u).parent;m&&p(m)&&m.getAttribute("listType")=="todo"&&this._handleCheckmarkChange(m)}),this.listenTo(e.view.document,"arrowKey",es(t,s.locale),{context:"$text"}),this.listenTo(e.mapper,"viewToModelPosition",(l,c)=>{const a=c.viewPosition.parent,u=a.is("attributeElement","li")&&c.viewPosition.offset==0,d=pt(a)&&c.viewPosition.offset<=1,m=a.is("element","span")&&a.getAttribute("contenteditable")=="false"&&pt(a.parent);if(!u&&!d&&!m)return;const f=c.modelPosition.nodeAfter;f&&f.getAttribute("listType")=="todo"&&(c.modelPosition=t.createPositionAt(f,0))},{priority:"low"}),this._initAriaAnnouncements()}_handleCheckmarkChange(s){const t=this.editor,e=t.model,n=Array.from(e.document.selection.getRanges());e.change(r=>{r.setSelection(s,"end"),t.execute("checkTodoList"),r.setSelection(n)})}_initAriaAnnouncements(){const{model:s,ui:t,t:e}=this.editor;let n=null;t&&s.document.selection.on("change:range",()=>{const r=s.document.selection.focus.parent,o=gt(n),l=gt(r);o&&!l?t.ariaLiveAnnouncer.announce(e("Leaving a to-do list")):!o&&l&&t.ariaLiveAnnouncer.announce(e("Entering a to-do list")),n=r})}}function Je(){return(i,s,t)=>{const{writer:e,schema:n}=t;if(!s.modelRange)return;const r=Array.from(s.modelRange.getItems({shallow:!0})).filter(o=>o.getAttribute("listType")==="todo"&&n.checkAttribute(o,"listItemId")).reduce((o,l)=>{const c=l.getAttribute("listItemId");return o.has(c)||o.set(c,C(l)),o},new Map);for(const[,o]of r.entries())if(o.some(l=>l.getAttribute("todoListChecked")))for(const l of o)e.setAttribute("todoListChecked",!0,l)}}function Qe(){return(i,s,t)=>{const e=s.modelCursor,n=e.parent,r=s.viewItem;if(!t.consumable.test(r,{name:!0})||r.getAttribute("type")!="checkbox"||!e.isAtStart||!n.hasAttribute("listType"))return;t.consumable.consume(r,{name:!0});const o=t.writer;o.setAttribute("listType","todo",n),s.viewItem.hasAttribute("checked")&&o.setAttribute("todoListChecked",!0,n),s.modelRange=o.createRange(e)}}function W(i){const s=new bt(i);return(t,e,n)=>{const r=s.match(e.viewItem);r&&n.consumable.consume(e.viewItem,r.match)&&Object.assign(e,n.convertChildren(e.viewItem,e.modelCursor))}}function Xe(i){const s=new bt(i);return(t,e,n)=>{const r=s.match(e.viewItem);if(!r)return;const o=r.match;o.name=!1,n.consumable.consume(e.viewItem,o)}}function M(i,s){return(i.is("element","paragraph")||i.is("element","listItem"))&&i.getAttribute("listType")=="todo"&&A(i)&&ts(i,s)}function ts(i,s){for(const t of i.getAttributeKeys())if(!t.startsWith("selection:")&&!s.includes(t))return!1;return!0}function es(i,s){return(t,e)=>{const n=Dt(e.keyCode,s.contentLanguageDirection),r=i.schema,o=i.document.selection;if(!o.isCollapsed)return;const l=o.getFirstPosition(),c=l.parent;if(n=="right"&&l.isAtEnd){const a=r.getNearestSelectionRange(i.createPositionAfter(c),"forward");if(!a)return;const u=a.start.parent;u&&p(u)&&u.getAttribute("listType")=="todo"&&(i.change(d=>d.setSelection(a)),e.preventDefault(),e.stopPropagation(),t.stop())}else if(n=="left"&&l.isAtStart&&p(c)&&c.getAttribute("listType")=="todo"){const a=r.getNearestSelectionRange(i.createPositionBefore(c),"backward");if(!a)return;i.change(u=>u.setSelection(a)),e.preventDefault(),e.stopPropagation(),t.stop()}}}function pt(i){return!!i&&i.is("attributeElement")&&i.hasClass("todo-list__label")}function gt(i){return!i||!i.is("element","paragraph")&&!i.is("element","listItem")?!1:i.getAttribute("listType")=="todo"}class ss extends v{static get pluginName(){return"TodoListUI"}static get isOfficialPlugin(){return!0}init(){const s=this.editor.t;G(this.editor,"todoList",s("To-do List"),_.todoList)}}class fs extends v{static get requires(){return[Ze,ss]}static get pluginName(){return"TodoList"}static get isOfficialPlugin(){return!0}}export{ds as List,E as ListCommand,z as ListEditing,nt as ListIndentCommand,ms as ListProperties,ze as ListPropertiesEditing,We as ListPropertiesUI,Be as ListPropertiesUtils,_e as ListUI,ae as ListUtils,fs as TodoList,Ze as TodoListEditing,ss as TodoListUI};
@@ -0,0 +1,6 @@
1
+ var g=Object.defineProperty;var w=(o,e,t)=>e in o?g(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var c=(o,e,t)=>w(o,typeof e!="symbol"?e+"":e,t);import{Plugin as u}from"../../../../../@ckeditor_ckeditor5-core@44.3.0/node_modules/@ckeditor/ckeditor5-core/dist/index.js";import{HtmlDataProcessor as _}from"../../../../../@ckeditor_ckeditor5-engine@44.3.0/node_modules/@ckeditor/ckeditor5-engine/dist/index.js";import{marked as p}from"../../../../../marked@4.0.12/node_modules/marked/lib/marked.esm.js";import k from"../../../../../turndown@7.2.0/node_modules/turndown/lib/turndown.browser.es.js";import{gfm as T}from"../../../../../turndown-plugin-gfm@1.0.2/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.es.js";import{ClipboardPipeline as P}from"../../../../../@ckeditor_ckeditor5-clipboard@44.3.0/node_modules/@ckeditor/ckeditor5-clipboard/dist/index.js";/**
2
+ * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */class b{constructor(){c(this,"_parser");c(this,"_options",{gfm:!0,breaks:!0,tables:!0,xhtml:!0,headerIds:!1});p.use({tokenizer:{autolink:()=>null,url:()=>null},renderer:{checkbox(...e){return Object.getPrototypeOf(this).checkbox.call(this,...e).trimRight()},code(...e){return Object.getPrototypeOf(this).code.call(this,...e).replace(`
5
+ </code>`,"</code>")}}}),this._parser=p}parse(e){return this._parser.parse(e,this._options)}}const x=new RegExp(/\b(?:(?:https?|ftp):\/\/|www\.)/.source+/(?![-_])(?:[-_a-z0-9\u00a1-\uffff]{1,63}\.)+(?:[a-z\u00a1-\uffff]{2,63})/.source+/(?:[^\s<>]*)/.source,"gi");class y extends k{escape(e){const t=super.escape;function s(n){return n=t(n),n=n.replace(/</g,"\\<"),n}let r="",a=0;for(const n of this._matchAutolink(e)){const l=n.index;l>a&&(r+=s(e.substring(a,l)));const i=n[0];r+=i,a=l+i.length}return a<e.length&&(r+=s(e.substring(a,e.length))),r}*_matchAutolink(e){for(const t of e.matchAll(x)){const s=t[0],r=this._autolinkFindEnd(s);yield Object.assign([s.substring(0,r)],{index:t.index})}}_autolinkFindEnd(e){let t=e.length;for(;t>0;){const s=e[t-1];if(`?!.,:*_~'"`.includes(s))t--;else if(s==")"){let r=0;for(let a=0;a<t;a++)e[a]=="("?r++:e[a]==")"&&r--;if(r<0)t--;else break}else break}return t}}class D{constructor(){c(this,"_parser");this._parser=this._createParser()}parse(e){return this._parser.turndown(e)}keep(e){this._parser.keep(e)}_createParser(){const e=new y({codeBlockStyle:"fenced",hr:"---",headingStyle:"atx"});return e.use([T,this._todoList]),e}_todoList(e){e.addRule("taskListItems",{filter(t){return t.type==="checkbox"&&(t.parentNode.nodeName==="LI"||t.parentNode.parentNode.nodeName==="LI")},replacement(t,s){return(s.checked?"[x]":"[ ]")+" "}})}}class d{constructor(e){c(this,"_htmlDP");c(this,"_markdown2html");c(this,"_html2markdown");this._htmlDP=new _(e),this._markdown2html=new b,this._html2markdown=new D}keepHtml(e){this._html2markdown.keep([e])}toView(e){const t=this._markdown2html.parse(e);return this._htmlDP.toView(t)}toData(e){const t=this._htmlDP.toData(e);return this._html2markdown.parse(t)}registerRawContentMatcher(e){this._htmlDP.registerRawContentMatcher(e)}useFillerType(){}}class R extends u{constructor(e){super(e),e.data.processor=new d(e.data.viewDocument)}static get pluginName(){return"Markdown"}static get isOfficialPlugin(){return!0}}const v=["SPAN","BR","PRE","CODE"];class N extends u{constructor(t){super(t);c(this,"_gfmDataProcessor");this._gfmDataProcessor=new d(t.data.viewDocument)}static get pluginName(){return"PasteFromMarkdownExperimental"}static get isOfficialPlugin(){return!0}static get requires(){return[P]}init(){const t=this.editor,r=t.editing.view.document,a=t.plugins.get("ClipboardPipeline");let n=!1;this.listenTo(r,"keydown",(l,i)=>{n=i.shiftKey}),this.listenTo(a,"inputTransformation",(l,i)=>{if(n)return;const m=i.dataTransfer.getData("text/html");if(!m){const f=i.dataTransfer.getData("text/plain");i.content=this._gfmDataProcessor.toView(f);return}const h=this._parseMarkdownFromHtml(m);h&&(i.content=this._gfmDataProcessor.toView(h))})}_parseMarkdownFromHtml(t){const s=this._removeOsSpecificTags(t);if(!this._containsOnlyAllowedFirstLevelTags(s))return null;const r=this._removeFirstLevelWrapperTagsAndBrs(s);return this._containsAnyRemainingHtmlTags(r)?null:this._replaceHtmlReservedEntitiesWithCharacters(r)}_removeOsSpecificTags(t){return t.replace(/^<meta\b[^>]*>/,"").trim().replace(/^<html>/,"").replace(/<\/html>$/,"").trim().replace(/^<body>/,"").replace(/<\/body>$/,"").trim().replace(/^<!--StartFragment-->/,"").replace(/<!--EndFragment-->$/,"").trim()}_containsOnlyAllowedFirstLevelTags(t){const s=new DOMParser,{body:r}=s.parseFromString(t,"text/html");return Array.from(r.children).map(n=>n.tagName).every(n=>v.includes(n))}_removeFirstLevelWrapperTagsAndBrs(t){const s=new DOMParser,{body:r}=s.parseFromString(t,"text/html"),a=r.querySelectorAll("br");for(const l of a)l.replaceWith(`
6
+ `);const n=r.querySelectorAll(":scope > *");for(const l of n){const i=l.cloneNode(!0);l.replaceWith(...i.childNodes)}return r.innerHTML}_containsAnyRemainingHtmlTags(t){return t.includes("<")}_replaceHtmlReservedEntitiesWithCharacters(t){return t.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&nbsp;/g," ")}}export{d as GFMDataProcessor,R as Markdown,b as MarkdownToHtml,N as PasteFromMarkdownExperimental};