@ckeditor/ckeditor5-track-changes 40.0.0 → 40.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/LICENSE.md +3 -3
  2. package/build/track-changes.js +2 -2
  3. package/build/translations/ar.js +1 -1
  4. package/build/translations/az.js +1 -1
  5. package/build/translations/bg.js +1 -1
  6. package/build/translations/bn.js +1 -1
  7. package/build/translations/ca.js +1 -1
  8. package/build/translations/cs.js +1 -1
  9. package/build/translations/da.js +1 -1
  10. package/build/translations/de.js +1 -1
  11. package/build/translations/el.js +1 -1
  12. package/build/translations/en-au.js +1 -1
  13. package/build/translations/es.js +1 -1
  14. package/build/translations/et.js +1 -1
  15. package/build/translations/fi.js +1 -1
  16. package/build/translations/fr.js +1 -1
  17. package/build/translations/gl.js +1 -1
  18. package/build/translations/he.js +1 -1
  19. package/build/translations/hi.js +1 -1
  20. package/build/translations/hr.js +1 -1
  21. package/build/translations/hu.js +1 -1
  22. package/build/translations/id.js +1 -1
  23. package/build/translations/it.js +1 -1
  24. package/build/translations/ja.js +1 -1
  25. package/build/translations/ko.js +1 -1
  26. package/build/translations/lt.js +1 -1
  27. package/build/translations/lv.js +1 -1
  28. package/build/translations/ms.js +1 -1
  29. package/build/translations/nl.js +1 -1
  30. package/build/translations/no.js +1 -1
  31. package/build/translations/pl.js +1 -1
  32. package/build/translations/pt-br.js +1 -1
  33. package/build/translations/pt.js +1 -1
  34. package/build/translations/ro.js +1 -1
  35. package/build/translations/ru.js +1 -1
  36. package/build/translations/sk.js +1 -1
  37. package/build/translations/sq.js +1 -1
  38. package/build/translations/sr-latn.js +1 -1
  39. package/build/translations/sr.js +1 -1
  40. package/build/translations/sv.js +1 -1
  41. package/build/translations/th.js +1 -1
  42. package/build/translations/tk.js +1 -1
  43. package/build/translations/tr.js +1 -1
  44. package/build/translations/tt.js +1 -1
  45. package/build/translations/uk.js +1 -1
  46. package/build/translations/ur.js +1 -1
  47. package/build/translations/vi.js +1 -1
  48. package/build/translations/zh-cn.js +1 -1
  49. package/build/translations/zh.js +1 -1
  50. package/lang/contexts.json +20 -1
  51. package/lang/translations/ar.po +76 -0
  52. package/lang/translations/az.po +76 -0
  53. package/lang/translations/bg.po +76 -0
  54. package/lang/translations/bn.po +76 -0
  55. package/lang/translations/ca.po +76 -0
  56. package/lang/translations/cs.po +76 -0
  57. package/lang/translations/da.po +76 -0
  58. package/lang/translations/de.po +76 -0
  59. package/lang/translations/el.po +76 -0
  60. package/lang/translations/en-au.po +76 -0
  61. package/lang/translations/en.po +76 -0
  62. package/lang/translations/es.po +76 -0
  63. package/lang/translations/et.po +76 -0
  64. package/lang/translations/fi.po +76 -0
  65. package/lang/translations/fr.po +76 -0
  66. package/lang/translations/gl.po +76 -0
  67. package/lang/translations/he.po +76 -0
  68. package/lang/translations/hi.po +76 -0
  69. package/lang/translations/hr.po +76 -0
  70. package/lang/translations/hu.po +76 -0
  71. package/lang/translations/id.po +76 -0
  72. package/lang/translations/it.po +76 -0
  73. package/lang/translations/ja.po +76 -0
  74. package/lang/translations/ko.po +76 -0
  75. package/lang/translations/lt.po +76 -0
  76. package/lang/translations/lv.po +76 -0
  77. package/lang/translations/ms.po +76 -0
  78. package/lang/translations/nl.po +76 -0
  79. package/lang/translations/no.po +76 -0
  80. package/lang/translations/pl.po +76 -0
  81. package/lang/translations/pt-br.po +94 -18
  82. package/lang/translations/pt.po +76 -0
  83. package/lang/translations/ro.po +76 -0
  84. package/lang/translations/ru.po +76 -0
  85. package/lang/translations/sk.po +76 -0
  86. package/lang/translations/sq.po +76 -0
  87. package/lang/translations/sr-latn.po +76 -0
  88. package/lang/translations/sr.po +76 -0
  89. package/lang/translations/sv.po +76 -0
  90. package/lang/translations/th.po +76 -0
  91. package/lang/translations/tk.po +76 -0
  92. package/lang/translations/tr.po +76 -0
  93. package/lang/translations/tt.po +76 -0
  94. package/lang/translations/uk.po +76 -0
  95. package/lang/translations/ur.po +76 -0
  96. package/lang/translations/vi.po +76 -0
  97. package/lang/translations/zh-cn.po +76 -0
  98. package/lang/translations/zh.po +76 -0
  99. package/package.json +3 -3
  100. package/src/augmentation.d.ts +40 -40
  101. package/src/commands/acceptsuggestioncommand.d.ts +24 -24
  102. package/src/commands/acceptsuggestioncommand.js +1 -1
  103. package/src/commands/discardsuggestioncommand.d.ts +24 -24
  104. package/src/commands/discardsuggestioncommand.js +1 -1
  105. package/src/commands/executeonallsuggestionscommand.d.ts +24 -24
  106. package/src/commands/executeonallsuggestionscommand.js +1 -1
  107. package/src/commands/executeonselectedsuggestionscommand.d.ts +24 -24
  108. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  109. package/src/commands/trackchangescommand.d.ts +26 -26
  110. package/src/commands/trackchangescommand.js +1 -1
  111. package/src/index.d.ts +16 -16
  112. package/src/integrations/aiassistant.d.ts +17 -17
  113. package/src/integrations/aiassistant.js +1 -1
  114. package/src/integrations/alignment.d.ts +17 -17
  115. package/src/integrations/alignment.js +1 -1
  116. package/src/integrations/basicstyles.d.ts +17 -17
  117. package/src/integrations/basicstyles.js +1 -1
  118. package/src/integrations/blockquote.d.ts +17 -17
  119. package/src/integrations/blockquote.js +1 -1
  120. package/src/integrations/ckbox.d.ts +17 -17
  121. package/src/integrations/ckbox.js +1 -1
  122. package/src/integrations/codeblock.d.ts +17 -17
  123. package/src/integrations/codeblock.js +1 -1
  124. package/src/integrations/comments.d.ts +14 -14
  125. package/src/integrations/comments.js +1 -1
  126. package/src/integrations/deletecommand.d.ts +17 -17
  127. package/src/integrations/deletecommand.js +1 -1
  128. package/src/integrations/documentlist.d.ts +17 -17
  129. package/src/integrations/documentlist.js +1 -1
  130. package/src/integrations/documentlistproperties.d.ts +29 -29
  131. package/src/integrations/documentlistproperties.js +1 -1
  132. package/src/integrations/entercommand.d.ts +16 -16
  133. package/src/integrations/entercommand.js +1 -1
  134. package/src/integrations/findandreplace.d.ts +21 -21
  135. package/src/integrations/findandreplace.js +1 -1
  136. package/src/integrations/font.d.ts +17 -17
  137. package/src/integrations/font.js +1 -1
  138. package/src/integrations/formatpainter.d.ts +17 -17
  139. package/src/integrations/formatpainter.js +1 -1
  140. package/src/integrations/heading.d.ts +17 -17
  141. package/src/integrations/heading.js +1 -1
  142. package/src/integrations/highlight.d.ts +17 -17
  143. package/src/integrations/highlight.js +1 -1
  144. package/src/integrations/horizontalline.d.ts +17 -17
  145. package/src/integrations/horizontalline.js +1 -1
  146. package/src/integrations/htmlembed.d.ts +17 -17
  147. package/src/integrations/htmlembed.js +1 -1
  148. package/src/integrations/image.d.ts +17 -17
  149. package/src/integrations/image.js +1 -1
  150. package/src/integrations/imagereplace.d.ts +17 -23
  151. package/src/integrations/imagereplace.js +1 -1
  152. package/src/integrations/imagestyle.d.ts +17 -0
  153. package/src/integrations/imagestyle.js +23 -0
  154. package/src/integrations/importword.d.ts +18 -18
  155. package/src/integrations/importword.js +1 -1
  156. package/src/integrations/indent.d.ts +17 -17
  157. package/src/integrations/indent.js +1 -1
  158. package/src/integrations/inputcommand.d.ts +16 -16
  159. package/src/integrations/inputcommand.js +1 -1
  160. package/src/integrations/link.d.ts +17 -17
  161. package/src/integrations/link.js +1 -1
  162. package/src/integrations/list.d.ts +17 -17
  163. package/src/integrations/list.js +1 -1
  164. package/src/integrations/listproperties.d.ts +29 -29
  165. package/src/integrations/listproperties.js +1 -1
  166. package/src/integrations/mediaembed.d.ts +17 -17
  167. package/src/integrations/mediaembed.js +1 -1
  168. package/src/integrations/mention.d.ts +17 -17
  169. package/src/integrations/mention.js +1 -1
  170. package/src/integrations/pagebreak.d.ts +17 -17
  171. package/src/integrations/pagebreak.js +1 -1
  172. package/src/integrations/paragraph.d.ts +17 -17
  173. package/src/integrations/paragraph.js +1 -1
  174. package/src/integrations/removeformat.d.ts +17 -17
  175. package/src/integrations/removeformat.js +1 -1
  176. package/src/integrations/restrictededitingmode.d.ts +17 -17
  177. package/src/integrations/restrictededitingmode.js +1 -1
  178. package/src/integrations/shiftentercommand.d.ts +16 -16
  179. package/src/integrations/shiftentercommand.js +1 -1
  180. package/src/integrations/standardeditingmode.d.ts +17 -17
  181. package/src/integrations/standardeditingmode.js +1 -1
  182. package/src/integrations/style.d.ts +17 -18
  183. package/src/integrations/style.js +1 -1
  184. package/src/integrations/table.d.ts +42 -42
  185. package/src/integrations/table.js +1 -1
  186. package/src/integrations/tablecaption.d.ts +22 -22
  187. package/src/integrations/tablecaption.js +1 -1
  188. package/src/integrations/tableclipboard.d.ts +19 -19
  189. package/src/integrations/tableclipboard.js +1 -1
  190. package/src/integrations/tablecolumnresize.d.ts +26 -26
  191. package/src/integrations/tablecolumnresize.js +1 -1
  192. package/src/integrations/tableheadings.d.ts +22 -22
  193. package/src/integrations/tableheadings.js +1 -1
  194. package/src/integrations/tablemergesplit.d.ts +22 -22
  195. package/src/integrations/tablemergesplit.js +1 -1
  196. package/src/integrations/tableofcontents.d.ts +17 -17
  197. package/src/integrations/tableofcontents.js +1 -1
  198. package/src/integrations/tableproperties.d.ts +27 -27
  199. package/src/integrations/tableproperties.js +1 -1
  200. package/src/integrations/template.d.ts +17 -17
  201. package/src/integrations/template.js +1 -1
  202. package/src/integrations/title.d.ts +17 -17
  203. package/src/integrations/title.js +1 -1
  204. package/src/integrations/undo.d.ts +17 -17
  205. package/src/integrations/undo.js +1 -1
  206. package/src/integrations/utils.d.ts +21 -21
  207. package/src/integrations/utils.js +1 -1
  208. package/src/suggestion.d.ts +291 -276
  209. package/src/suggestion.js +1 -1
  210. package/src/suggestiondescriptionfactory.d.ts +183 -163
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.d.ts +180 -244
  213. package/src/trackchanges.js +1 -1
  214. package/src/trackchangesconfig.d.ts +78 -75
  215. package/src/trackchangesdata.d.ts +41 -41
  216. package/src/trackchangesdata.js +1 -1
  217. package/src/trackchangesediting.d.ts +524 -468
  218. package/src/trackchangesediting.js +1 -1
  219. package/src/trackchangesui.d.ts +38 -38
  220. package/src/trackchangesui.js +1 -1
  221. package/src/ui/suggestioncontroller.d.ts +37 -37
  222. package/src/ui/suggestioncontroller.js +1 -1
  223. package/src/ui/view/basesuggestionthreadview.d.ts +170 -170
  224. package/src/ui/view/basesuggestionthreadview.js +1 -1
  225. package/src/ui/view/suggestionthreadview.d.ts +182 -182
  226. package/src/ui/view/suggestionthreadview.js +1 -1
  227. package/src/utils/common-translations.d.ts +9 -9
  228. package/src/utils/common-translations.js +1 -1
  229. package/src/utils/utils.d.ts +30 -30
  230. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x184f=['ck-suggestion-marker--active','mapper','document','filter','plugins','from','locale','toViewPosition','get','has','writer','TrackChangesEditing','parent','markerRange','enableCommand','bindElementToMarker','getFirstRange','change','schema','commandName','markBlockFormat','nodeAfter','end','markerName','ELEMENT_PARAGRAPH','insertParagraph','Paragraph','*Insert:*\x20%0','editor','_descriptionFactory','isTouching','getItemLabel','includes','addMarker:suggestion:insertion','model','paragraph','data','downcastDispatcher','showSuggestionHighlights','addClass','format','isLimit','registerElementLabel','name','registerDescriptionCallback','editing','getSelectedBlocks','blockName','consumable','checkChild','highest'];(function(_0x39507a,_0x184f68){const _0x3808e2=function(_0x59d191){while(--_0x59d191){_0x39507a['push'](_0x39507a['shift']());}};_0x3808e2(++_0x184f68);}(_0x184f,0x154));const _0x3808=function(_0x39507a,_0x184f68){_0x39507a=_0x39507a-0x0;let _0x3808e2=_0x184f[_0x39507a];return _0x3808e2;};import{Plugin as _0x2924c6}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x310c0b}from'./utils';import{getTranslation as _0x9b139b}from'../utils/common-translations';export default class ht extends _0x2924c6{['afterInit'](){const _0xbc58a0=this[_0x3808('0x2d')];if(!_0xbc58a0[_0x3808('0x15')][_0x3808('0x1a')](_0x3808('0x2b')))return;const _0xb77098=_0xbc58a0[_0x3808('0x17')],_0x3fc406=_0xbc58a0[_0x3808('0x15')][_0x3808('0x19')](_0x3808('0x1c'));_0x3fc406[_0x3808('0x2e')][_0x3808('0x8')](_0x3808('0x1'),_0x22b5a2=>_0x9b139b(_0xb77098,_0x3808('0x29'),_0x22b5a2)),_0x3fc406['enableCommand'](_0x3808('0x1'),(_0x44c3cc,_0xf89b92={})=>{const _0x187881=_0xbc58a0[_0x3808('0x0')][_0x3808('0x13')],_0x3b1971=_0xf89b92['selection']||_0x187881['selection'],_0x3944ef=Array[_0x3808('0x16')](_0x3b1971[_0x3808('0xc')]())[_0x3808('0x14')](_0x7b8395=>function(_0x4993b8,_0x25f4ea){return _0x25f4ea['checkChild'](_0x4993b8[_0x3808('0x1d')],_0x3808('0x1'))&&!_0x25f4ea['isObject'](_0x4993b8)&&_0x3808('0x1')!=_0x4993b8[_0x3808('0x9')];}(_0x7b8395,this['editor'][_0x3808('0x0')][_0x3808('0x23')]));_0xbc58a0[_0x3808('0x0')][_0x3808('0x22')](()=>{for(const _0x5aaaf8 of _0x3944ef)_0x3fc406[_0x3808('0x25')](_0x5aaaf8,{'commandName':_0x3808('0x1'),'commandParams':[],'formatGroupId':_0x3808('0xd')},_0x310c0b(_0x5aaaf8));});}),_0x3fc406[_0x3808('0x2e')][_0x3808('0xa')](_0x33e301=>{const {data:_0x152550}=_0x33e301;if(_0x152550&&_0x3808('0x1')==_0x152550[_0x3808('0x24')])return{'type':_0x3808('0x6'),'content':_0x9b139b(_0xb77098,'*Change\x20to:*\x20%0',_0x9b139b(_0xb77098,_0x3808('0x29')))};}),_0x3fc406[_0x3808('0x1f')](_0x3808('0x2a')),_0xbc58a0[_0x3808('0xb')][_0x3808('0x3')]['on']('addMarker:suggestion:insertion',ar(_0xbc58a0),{'priority':_0x3808('0x10')}),_0xbc58a0[_0x3808('0x2')]['downcastDispatcher']['on'](_0x3808('0x32'),(_0x2a37f5,_0x1f8e2b,_0x575e5f)=>{_0x575e5f['options'][_0x3808('0x4')]&&ar(_0xbc58a0,{'showActiveMarker':!0x1})(_0x2a37f5,_0x1f8e2b,_0x575e5f);},{'priority':_0x3808('0x10')});const _0x162f76=_0x3fc406[_0x3808('0x2e')];_0x162f76['registerDescriptionCallback'](_0x25de07=>{if('insertion'!==_0x25de07['type'])return;const {start:_0xc952d3,end:_0x160194}=_0x25de07[_0x3808('0x21')]();if(!_0xc952d3[_0x3808('0x2f')](_0x160194)||!_0xc952d3[_0x3808('0x26')])return;const _0x540d36=_0xbc58a0[_0x3808('0x0')]['schema'],_0x35bf6c=_0xc952d3[_0x3808('0x26')];return _0x540d36['isBlock'](_0x35bf6c)&&!_0x540d36[_0x3808('0x7')](_0x35bf6c)&&_0x540d36[_0x3808('0xf')](_0x35bf6c,'$text')?{'type':'insertion','content':_0x9b139b(_0xb77098,_0x3808('0x2c'),_0x162f76[_0x3808('0x30')](_0x35bf6c,0x1))}:void 0x0;});}}function ar(_0x14e542,{showActiveMarker:_0x243b36=!0x0}={}){return(_0x305275,_0x168978,_0x39940d)=>{const _0x5db57b=_0x14e542[_0x3808('0x15')]['get'](_0x3808('0x1c')),_0x11f00a=_0x168978[_0x3808('0x1e')]['start'],_0x216d1b=_0x168978[_0x3808('0x1e')][_0x3808('0x27')],_0x3cd5ed=_0x14e542[_0x3808('0x0')][_0x3808('0x23')];if(!_0x11f00a[_0x3808('0x2f')](_0x216d1b)||!_0x11f00a[_0x3808('0x26')])return;const _0x5a93a=_0x11f00a[_0x3808('0x26')];if(_0x3cd5ed['isBlock'](_0x5a93a)&&!_0x3cd5ed[_0x3808('0x7')](_0x5a93a)&&_0x3cd5ed[_0x3808('0xf')](_0x5a93a,'$text')){if(!_0x39940d[_0x3808('0xe')]['consume'](_0x168978[_0x3808('0x1e')],_0x305275[_0x3808('0x9')]))return;const _0xedb300=_0x39940d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5673e3=_0x39940d[_0x3808('0x12')][_0x3808('0x18')](_0x216d1b);_0x243b36&&_0x5db57b['activeMarkers'][_0x3808('0x31')](_0x168978['markerName'])&&_0x39940d[_0x3808('0x1b')][_0x3808('0x5')](_0x3808('0x11'),_0xedb300),_0x39940d[_0x3808('0x1b')]['insert'](_0x5673e3,_0xedb300),_0x39940d[_0x3808('0x12')][_0x3808('0x20')](_0xedb300,_0x168978[_0x3808('0x28')]);}};}
23
+ const _0x1c0d=['highest','markerName','editor','plugins','_enableDefaultAttributesIntegration','registerElementLabel','paragraph','ELEMENT_PARAGRAPH','isLimit','addMarker:suggestion:insertion','toViewPosition','mapper','data','insertion','bindElementToMarker','_registerLegacyDescription','registerDescriptionCallback','name','createUIElement','showSuggestionHighlights','isBlock','markerRange','ck-suggestion-marker-split','schema','span','insertParagraph','start','editing','nodeAfter','has','commandName','options','activeMarkers','format','getItemLabel','checkChild','includes','_descriptionFactory','writer','$text','consumable','Paragraph','get','type','downcastDispatcher','locale','ck-suggestion-marker--active','TrackChangesEditing','formatBlock','isTouching','enableCommand','*Change\x20to:*\x20%0','afterInit','model'];(function(_0x5177ba,_0x1c0da6){const _0xef3f46=function(_0x49dbf1){while(--_0x49dbf1){_0x5177ba['push'](_0x5177ba['shift']());}};_0xef3f46(++_0x1c0da6);}(_0x1c0d,0x1ba));const _0xef3f=function(_0x5177ba,_0x1c0da6){_0x5177ba=_0x5177ba-0x0;let _0xef3f46=_0x1c0d[_0x5177ba];return _0xef3f46;};import{Plugin as _0x390609}from'ckeditor5/src/core';import{getTranslation as _0x17ae94}from'../utils/common-translations';export default class lt extends _0x390609{[_0xef3f('0x2a')](){const _0x23281b=this[_0xef3f('0x2e')];if(!_0x23281b[_0xef3f('0x2f')][_0xef3f('0x13')](_0xef3f('0x1f')))return;const _0x491962=_0x23281b[_0xef3f('0x23')],_0x32af01=_0x23281b[_0xef3f('0x2f')]['get']('TrackChangesEditing');_0x32af01[_0xef3f('0x1b')][_0xef3f('0x31')](_0xef3f('0x32'),_0x47892c=>_0x17ae94(_0x491962,_0xef3f('0x33'),_0x47892c)),_0x32af01[_0xef3f('0x30')](_0xef3f('0x32')),_0x32af01[_0xef3f('0x28')](_0xef3f('0xf')),_0x23281b[_0xef3f('0x11')][_0xef3f('0x22')]['on'](_0xef3f('0x35'),nr(_0x23281b),{'priority':_0xef3f('0x2c')}),_0x23281b[_0xef3f('0x2')]['downcastDispatcher']['on'](_0xef3f('0x35'),(_0x387eaa,_0x3c802a,_0x2567ee)=>{_0x2567ee[_0xef3f('0x15')][_0xef3f('0x9')]&&nr(_0x23281b,{'showActiveMarker':!0x1})(_0x387eaa,_0x3c802a,_0x2567ee);},{'priority':_0xef3f('0x2c')});const _0x5c5350=_0x32af01[_0xef3f('0x1b')];_0x5c5350[_0xef3f('0x6')](_0x161650=>{if(_0xef3f('0x3')!==_0x161650[_0xef3f('0x21')])return;const {start:_0x3423a6,end:_0x17cb85}=_0x161650['getFirstRange']();if(!_0x3423a6['isTouching'](_0x17cb85)||!_0x3423a6[_0xef3f('0x12')])return;const _0x687116=_0x23281b[_0xef3f('0x2b')]['schema'],_0x419b37=_0x3423a6[_0xef3f('0x12')];return _0x687116[_0xef3f('0xa')](_0x419b37)&&!_0x687116[_0xef3f('0x34')](_0x419b37)&&_0x687116[_0xef3f('0x19')](_0x419b37,'$text')?{'type':'insertion','content':_0x17ae94(_0x491962,'*Insert:*\x20%0',_0x5c5350[_0xef3f('0x18')](_0x419b37,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}[_0xef3f('0x5')](){const _0x1bf19d=this[_0xef3f('0x2e')],_0x129be3=_0x1bf19d['locale'];_0x1bf19d['plugins'][_0xef3f('0x20')](_0xef3f('0x25'))[_0xef3f('0x1b')]['registerDescriptionCallback'](_0x649e61=>{if(_0xef3f('0x26')!=_0x649e61[_0xef3f('0x21')])return;const {data:_0x128fbd}=_0x649e61;return _0x128fbd&&_0xef3f('0x32')==_0x128fbd[_0xef3f('0x14')]?{'type':_0xef3f('0x17'),'content':_0x17ae94(_0x129be3,_0xef3f('0x29'),_0x17ae94(_0x129be3,_0xef3f('0x33')))}:void 0x0;});}}function nr(_0x741d15,{showActiveMarker:_0x2c853c=!0x0}={}){return(_0x530a51,_0x137325,_0x51524e)=>{const _0xbde0ba=_0x741d15[_0xef3f('0x2f')][_0xef3f('0x20')]('TrackChangesEditing'),_0x352ab6=_0x137325[_0xef3f('0xb')][_0xef3f('0x10')],_0x36da25=_0x137325[_0xef3f('0xb')]['end'],_0x42d47b=_0x741d15[_0xef3f('0x2b')][_0xef3f('0xd')];if(!_0x352ab6[_0xef3f('0x27')](_0x36da25)||!_0x352ab6[_0xef3f('0x12')])return;const _0x24e9dd=_0x352ab6[_0xef3f('0x12')];if(_0x42d47b[_0xef3f('0xa')](_0x24e9dd)&&!_0x42d47b[_0xef3f('0x34')](_0x24e9dd)&&_0x42d47b['checkChild'](_0x24e9dd,_0xef3f('0x1d'))){if(!_0x51524e[_0xef3f('0x1e')]['consume'](_0x137325[_0xef3f('0xb')],_0x530a51[_0xef3f('0x7')]))return;const _0x50cd6f=_0x51524e['writer'][_0xef3f('0x8')](_0xef3f('0xe'),{'class':_0xef3f('0xc')}),_0xb5b6d8=_0x51524e[_0xef3f('0x1')][_0xef3f('0x0')](_0x36da25);_0x2c853c&&_0xbde0ba[_0xef3f('0x16')][_0xef3f('0x1a')](_0x137325[_0xef3f('0x2d')])&&_0x51524e[_0xef3f('0x1c')]['addClass'](_0xef3f('0x24'),_0x50cd6f),_0x51524e['writer']['insert'](_0xb5b6d8,_0x50cd6f),_0x51524e['mapper'][_0xef3f('0x4')](_0x50cd6f,_0x137325[_0xef3f('0x2d')]);}};}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/removeformat
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for remove format feature.
11
- */
12
- export default class TrackChangesRemoveFormat extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/removeformat
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for remove format feature.
11
+ */
12
+ export default class TrackChangesRemoveFormat extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc9c3=['_descriptionFactory','registerDescriptionCallback','markInlineFormat','model','isFormatting','TrackChangesEditing','has','plugins','*Remove\x20all\x20formatting*','get','isCollapsed','editor','getRanges','createRangeOn','schema','from','removeFormat','commandName','getAttributeProperties'];(function(_0x4bc184,_0xc9c34a){const _0x1f36fc=function(_0xbe7513){while(--_0xbe7513){_0x4bc184['push'](_0x4bc184['shift']());}};_0x1f36fc(++_0xc9c34a);}(_0xc9c3,0x1a2));const _0x1f36=function(_0x4bc184,_0xc9c34a){_0x4bc184=_0x4bc184-0x0;let _0x1f36fc=_0xc9c3[_0x4bc184];return _0x1f36fc;};import{Plugin as _0x24276f}from'ckeditor5/src/core';import{getTranslation as _0x5d4cfa}from'../utils/common-translations';export default class ut extends _0x24276f{['afterInit'](){const _0x19ff69=this[_0x1f36('0xb')];if(!_0x19ff69['plugins'][_0x1f36('0x6')]('RemoveFormatEditing'))return;const _0x5638f3=_0x19ff69[_0x1f36('0x7')][_0x1f36('0x9')](_0x1f36('0x5'));_0x5638f3['enableCommand'](_0x1f36('0x10'),_0x5f3731=>{const _0x31db09=_0x19ff69[_0x1f36('0x3')]['document']['selection'];_0x31db09[_0x1f36('0xa')]?_0x5f3731():_0x19ff69[_0x1f36('0x3')]['change'](()=>{const _0x4f1a43=Array[_0x1f36('0xf')](_0x31db09[_0x1f36('0xc')]());for(const _0x5c551d of _0x4f1a43)for(const _0x587f1b of _0x5c551d['getItems']())mo(_0x587f1b,_0x19ff69[_0x1f36('0x3')][_0x1f36('0xe')])&&_0x5638f3[_0x1f36('0x2')](_0x19ff69['model'][_0x1f36('0xd')](_0x587f1b),{'commandName':_0x1f36('0x10'),'commandParams':[]});});}),_0x5638f3[_0x1f36('0x0')][_0x1f36('0x1')](_0x3bcc37=>{const {data:_0x5e371d}=_0x3bcc37;if(_0x5e371d&&'removeFormat'==_0x5e371d[_0x1f36('0x11')])return{'type':'format','content':_0x5d4cfa(_0x19ff69['locale'],_0x1f36('0x8'))};});}}function mo(_0x38dfd0,_0x38169a){for(const [_0x44e462]of _0x38dfd0['getAttributes']()){const _0x2564fa=_0x38169a[_0x1f36('0x12')](_0x44e462);if(_0x2564fa&&_0x2564fa[_0x1f36('0x4')])return!0x0;}return!0x1;}
23
+ const _0x2e02=['has','locale','plugins','_descriptionFactory','commandName','format','_registerLegacyDescription','*Remove\x20all\x20formatting*','TrackChangesEditing','_enableDefaultAttributesIntegration','formatInline','editor','removeFormat','type'];(function(_0x48a300,_0x2e0223){const _0x26c755=function(_0x50c480){while(--_0x50c480){_0x48a300['push'](_0x48a300['shift']());}};_0x26c755(++_0x2e0223);}(_0x2e02,0x195));const _0x26c7=function(_0x48a300,_0x2e0223){_0x48a300=_0x48a300-0x0;let _0x26c755=_0x2e02[_0x48a300];return _0x26c755;};import{Plugin as _0x1f1bdb}from'ckeditor5/src/core';import{getTranslation as _0x1a3c8e}from'../utils/common-translations';export default class mt extends _0x1f1bdb{['afterInit'](){const _0x33ac68=this[_0x26c7('0xc')];if(!_0x33ac68[_0x26c7('0x3')][_0x26c7('0x1')]('RemoveFormatEditing'))return;_0x33ac68[_0x26c7('0x3')]['get'](_0x26c7('0x9'))[_0x26c7('0xa')]('removeFormat'),this[_0x26c7('0x7')]();}[_0x26c7('0x7')](){const _0x31a0b3=this[_0x26c7('0xc')];_0x31a0b3[_0x26c7('0x3')]['get']('TrackChangesEditing')[_0x26c7('0x4')]['registerDescriptionCallback'](_0x3e6d6f=>{if('formatBlock'!=_0x3e6d6f[_0x26c7('0x0')]&&_0x26c7('0xb')!=_0x3e6d6f[_0x26c7('0x0')])return;const {data:_0x16f47c}=_0x3e6d6f;return _0x16f47c&&_0x26c7('0xd')==_0x16f47c[_0x26c7('0x5')]?{'type':_0x26c7('0x6'),'content':_0x1a3c8e(_0x31a0b3[_0x26c7('0x2')],_0x26c7('0x8'))}:void 0x0;});}}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/mention
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for restricted editing mode feature from restricted editing package.
11
- */
12
- export default class TrackChangesRestrictedEditingMode extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/mention
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for restricted editing mode feature from restricted editing package.
11
+ */
12
+ export default class TrackChangesRestrictedEditingMode extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x43b5=['goToNextRestrictedEditingException','acceptAllSuggestions','plugins','discardAllSuggestions','acceptSelectedSuggestions','enableCommand','afterInit','goToPreviousRestrictedEditingException','discardSelectedSuggestions','RestrictedEditingModeEditing','editor','trackChanges','get'];(function(_0x2891eb,_0x43b525){const _0x3016ec=function(_0x727cd6){while(--_0x727cd6){_0x2891eb['push'](_0x2891eb['shift']());}};_0x3016ec(++_0x43b525);}(_0x43b5,0x10e));const _0x3016=function(_0x2891eb,_0x43b525){_0x2891eb=_0x2891eb-0x0;let _0x3016ec=_0x43b5[_0x2891eb];return _0x3016ec;};import{Plugin as _0x162a7d}from'ckeditor5/src/core';export default class ft extends _0x162a7d{[_0x3016('0x9')](){const _0x33b16e=this[_0x3016('0x0')];if(!_0x33b16e[_0x3016('0x5')]['has'](_0x3016('0xc')))return;const _0x40bdb5=_0x33b16e['plugins'][_0x3016('0x2')]('TrackChangesEditing');_0x40bdb5[_0x3016('0x8')](_0x3016('0xa')),_0x40bdb5[_0x3016('0x8')](_0x3016('0x3'));const _0x313095=_0x33b16e['plugins'][_0x3016('0x2')](_0x3016('0xc'));_0x313095[_0x3016('0x8')](_0x3016('0x1')),_0x313095[_0x3016('0x8')]('acceptSuggestion'),_0x313095[_0x3016('0x8')]('discardSuggestion'),_0x313095['enableCommand'](_0x3016('0x4')),_0x313095['enableCommand'](_0x3016('0x6')),_0x313095[_0x3016('0x8')](_0x3016('0x7')),_0x313095[_0x3016('0x8')](_0x3016('0xb'));}}
23
+ const _0x100b=['discardAllSuggestions','enableCommand','plugins','TrackChangesEditing','discardSuggestion','trackChanges','goToPreviousRestrictedEditingException','goToNextRestrictedEditingException','has','discardSelectedSuggestions','RestrictedEditingModeEditing','get','editor'];(function(_0x5964f7,_0x100b3e){const _0x411737=function(_0x138027){while(--_0x138027){_0x5964f7['push'](_0x5964f7['shift']());}};_0x411737(++_0x100b3e);}(_0x100b,0x1db));const _0x4117=function(_0x5964f7,_0x100b3e){_0x5964f7=_0x5964f7-0x0;let _0x411737=_0x100b[_0x5964f7];return _0x411737;};import{Plugin as _0x42200e}from'ckeditor5/src/core';export default class dt extends _0x42200e{['afterInit'](){const _0x45b90a=this[_0x4117('0x5')];if(!_0x45b90a[_0x4117('0x8')][_0x4117('0x1')]('RestrictedEditingModeEditing'))return;const _0x247bac=_0x45b90a[_0x4117('0x8')][_0x4117('0x4')](_0x4117('0x9'));_0x247bac['enableCommand'](_0x4117('0xc')),_0x247bac[_0x4117('0x7')](_0x4117('0x0'));const _0x3aeb36=_0x45b90a['plugins'][_0x4117('0x4')](_0x4117('0x3'));_0x3aeb36['enableCommand'](_0x4117('0xb')),_0x3aeb36['enableCommand']('acceptSuggestion'),_0x3aeb36[_0x4117('0x7')](_0x4117('0xa')),_0x3aeb36[_0x4117('0x7')]('acceptAllSuggestions'),_0x3aeb36[_0x4117('0x7')](_0x4117('0x6')),_0x3aeb36['enableCommand']('acceptSelectedSuggestions'),_0x3aeb36[_0x4117('0x7')](_0x4117('0x2'));}}
@@ -1,16 +1,16 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/shiftentercommand
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- import { ShiftEnter } from 'ckeditor5/src/enter';
10
- /**
11
- * Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
12
- */
13
- export default class TrackChangesShiftEnterCommand extends Plugin {
14
- static get requires(): readonly [typeof ShiftEnter];
15
- init(): void;
16
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/shiftentercommand
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ import { ShiftEnter } from 'ckeditor5/src/enter';
10
+ /**
11
+ * Provides track changes plugin integration for {@link module:enter/shiftentercommand~ShiftEnterCommand enter command}.
12
+ */
13
+ export default class TrackChangesShiftEnterCommand extends Plugin {
14
+ static get requires(): readonly [typeof ShiftEnter];
15
+ init(): void;
16
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x31e6=['activeMarkers','addMarker:suggestion:deletion','_descriptionFactory','merge','get','split','ck-suggestion-marker-','mapper','TrackChangesEditing','init','ck-suggestion-marker--active','shiftEnter','createPositionBefore','writer','requires','consumable','options','test','span','addMarker:suggestion:insertion','showSuggestionHighlights','includes','editor','markerName','plugins','createUIElement','locale','markerRange','element','addClass','getItems','softBreak','registerElementLabel','editing','data','bindElementToMarker','downcastDispatcher','high'];(function(_0x298a80,_0x31e6e1){const _0x4fbcd8=function(_0x38bed6){while(--_0x38bed6){_0x298a80['push'](_0x298a80['shift']());}};_0x4fbcd8(++_0x31e6e1);}(_0x31e6,0x112));const _0x4fbc=function(_0x298a80,_0x31e6e1){_0x298a80=_0x298a80-0x0;let _0x4fbcd8=_0x31e6[_0x298a80];return _0x4fbcd8;};import{Plugin as _0x22b46c}from'ckeditor5/src/core';import{ShiftEnter as _0x3226a4}from'ckeditor5/src/enter';import{getTranslation as _0x2ed43d}from'../utils/common-translations';export default class lt extends _0x22b46c{static get[_0x4fbc('0x6')](){return[_0x3226a4];}[_0x4fbc('0x1')](){const _0x55c20a=this[_0x4fbc('0xe')],_0x3a394d=_0x55c20a['plugins'][_0x4fbc('0x22')]('TrackChangesEditing');_0x3a394d['enableCommand'](_0x4fbc('0x3')),_0x55c20a[_0x4fbc('0x19')][_0x4fbc('0x1c')]['on'](_0x4fbc('0xb'),re(_0x55c20a),{'priority':_0x4fbc('0x1d')}),_0x55c20a[_0x4fbc('0x19')][_0x4fbc('0x1c')]['on'](_0x4fbc('0x1f'),re(_0x55c20a),{'priority':'high'}),_0x55c20a[_0x4fbc('0x1a')][_0x4fbc('0x1c')]['on']('addMarker:suggestion',(_0x55d850,_0x4ff5fb,_0x13127d)=>{_0x13127d[_0x4fbc('0x8')][_0x4fbc('0xc')]&&re(_0x55c20a,{'showActiveMarker':!0x1})(_0x55d850,_0x4ff5fb,_0x13127d);}),_0x3a394d[_0x4fbc('0x20')][_0x4fbc('0x18')](_0x4fbc('0x17'),_0x774580=>_0x2ed43d(_0x55c20a[_0x4fbc('0x12')],'ELEMENT_LINE_BREAK',_0x774580));}}function re(_0x31d4ed,{showActiveMarker:_0x5e80f3=!0x0}={}){return(_0x139647,_0xdbe05f,_0x3705d6)=>{const _0x219947=_0x31d4ed[_0x4fbc('0x10')][_0x4fbc('0x22')](_0x4fbc('0x0'));if(!_0x3705d6[_0x4fbc('0x7')][_0x4fbc('0x9')](_0xdbe05f['markerRange'],_0x139647['name']))return;const _0x5357cb=_0x31d4ed['model'];for(const _0x201949 of _0xdbe05f[_0x4fbc('0x13')][_0x4fbc('0x16')]()){if(!_0x201949['is'](_0x4fbc('0x14'),_0x4fbc('0x17')))continue;const _0x2a6d03='deletion'==_0xdbe05f[_0x4fbc('0xf')][_0x4fbc('0x23')](':')[0x1]?_0x4fbc('0x21'):_0x4fbc('0x23'),_0x50a9d2=_0x3705d6[_0x4fbc('0x5')][_0x4fbc('0x11')](_0x4fbc('0xa'),{'class':_0x4fbc('0x24')+_0x2a6d03}),_0x346169=_0x3705d6['mapper']['toViewPosition'](_0x5357cb[_0x4fbc('0x4')](_0x201949));_0x5e80f3&&_0x219947[_0x4fbc('0x1e')][_0x4fbc('0xd')](_0xdbe05f[_0x4fbc('0xf')])&&_0x3705d6[_0x4fbc('0x5')][_0x4fbc('0x15')](_0x4fbc('0x2'),_0x50a9d2),_0x3705d6[_0x4fbc('0x5')]['insert'](_0x346169,_0x50a9d2),_0x3705d6[_0x4fbc('0x25')][_0x4fbc('0x1b')](_0x50a9d2,_0xdbe05f['markerName']);}};}
23
+ const _0x5337=['createUIElement','data','locale','requires','get','high','editing','split','test','consumable','getItems','bindElementToMarker','createPositionBefore','includes','insert','name','deletion','plugins','softBreak','activeMarkers','span','writer','_descriptionFactory','downcastDispatcher','model','addMarker:suggestion:deletion','toViewPosition','showSuggestionHighlights','ELEMENT_LINE_BREAK','addMarker:suggestion','element','markerName','markerRange','addMarker:suggestion:insertion','TrackChangesEditing'];(function(_0x2d1fb4,_0x5337f4){const _0x541780=function(_0x4f4aea){while(--_0x4f4aea){_0x2d1fb4['push'](_0x2d1fb4['shift']());}};_0x541780(++_0x5337f4);}(_0x5337,0x121));const _0x5417=function(_0x2d1fb4,_0x5337f4){_0x2d1fb4=_0x2d1fb4-0x0;let _0x541780=_0x5337[_0x2d1fb4];return _0x541780;};import{Plugin as _0x2432c5}from'ckeditor5/src/core';import{ShiftEnter as _0x47214f}from'ckeditor5/src/enter';import{getTranslation as _0x193c8f}from'../utils/common-translations';export default class pt extends _0x2432c5{static get[_0x5417('0x1d')](){return[_0x47214f];}['init'](){const _0x297549=this['editor'],_0x4294d9=_0x297549[_0x5417('0x8')][_0x5417('0x1e')](_0x5417('0x19'));_0x4294d9['enableCommand']('shiftEnter'),_0x297549[_0x5417('0x20')][_0x5417('0xe')]['on'](_0x5417('0x18'),re(_0x297549),{'priority':_0x5417('0x1f')}),_0x297549[_0x5417('0x20')][_0x5417('0xe')]['on'](_0x5417('0x10'),re(_0x297549),{'priority':'high'}),_0x297549[_0x5417('0x1b')][_0x5417('0xe')]['on'](_0x5417('0x14'),(_0x2d2bc1,_0x383a84,_0x536d3c)=>{_0x536d3c['options'][_0x5417('0x12')]&&re(_0x297549,{'showActiveMarker':!0x1})(_0x2d2bc1,_0x383a84,_0x536d3c);}),_0x4294d9[_0x5417('0xd')]['registerElementLabel'](_0x5417('0x9'),_0x1d68e1=>_0x193c8f(_0x297549[_0x5417('0x1c')],_0x5417('0x13'),_0x1d68e1));}}function re(_0x10733c,{showActiveMarker:_0x45cde3=!0x0}={}){return(_0x597778,_0x4d2b29,_0x21d475)=>{const _0x49d69e=_0x10733c['plugins'][_0x5417('0x1e')]('TrackChangesEditing');if(!_0x21d475[_0x5417('0x0')][_0x5417('0x22')](_0x4d2b29[_0x5417('0x17')],_0x597778[_0x5417('0x6')]))return;const _0x20381c=_0x10733c[_0x5417('0xf')];for(const _0x1c3492 of _0x4d2b29[_0x5417('0x17')][_0x5417('0x1')]()){if(!_0x1c3492['is'](_0x5417('0x15'),_0x5417('0x9')))continue;const _0x236165=_0x5417('0x7')==_0x4d2b29[_0x5417('0x16')][_0x5417('0x21')](':')[0x1]?'merge':_0x5417('0x21'),_0x226ffc=_0x21d475[_0x5417('0xc')][_0x5417('0x1a')](_0x5417('0xb'),{'class':'ck-suggestion-marker-'+_0x236165}),_0x50c1e0=_0x21d475['mapper'][_0x5417('0x11')](_0x20381c[_0x5417('0x3')](_0x1c3492));_0x45cde3&&_0x49d69e[_0x5417('0xa')][_0x5417('0x4')](_0x4d2b29[_0x5417('0x16')])&&_0x21d475[_0x5417('0xc')]['addClass']('ck-suggestion-marker--active',_0x226ffc),_0x21d475[_0x5417('0xc')][_0x5417('0x5')](_0x50c1e0,_0x226ffc),_0x21d475['mapper'][_0x5417('0x2')](_0x226ffc,_0x4d2b29[_0x5417('0x16')]);}};}
@@ -1,17 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/mention
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for standard editing mode feature from restricted editing package.
11
- */
12
- export default class TrackChangesStandardEditingMode extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- afterInit(): void;
17
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/mention
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for standard editing mode feature from restricted editing package.
11
+ */
12
+ export default class TrackChangesStandardEditingMode extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5b46=['has','getRanges','selection','get','plugins','enableCommand','registerDescriptionCallback','commandParams','format','restrictedEditingException','TrackChangesEditing','isCollapsed','markInlineFormat','_descriptionFactory','locale','from','forceValue','document','commands','commandName','FORMAT_RESTRICTED_DISABLED','value','editor','change','afterInit'];(function(_0x52058c,_0x5b46d2){const _0x46ed43=function(_0x6558a8){while(--_0x6558a8){_0x52058c['push'](_0x52058c['shift']());}};_0x46ed43(++_0x5b46d2);}(_0x5b46,0x1bc));const _0x46ed=function(_0x52058c,_0x5b46d2){_0x52058c=_0x52058c-0x0;let _0x46ed43=_0x5b46[_0x52058c];return _0x46ed43;};import{Plugin as _0x3cd860}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x201e3c}from'./utils';import{getTranslation as _0x227da4}from'../utils/common-translations';export default class gt extends _0x3cd860{[_0x46ed('0x5')](){const _0x418439=this[_0x46ed('0x3')],_0x1dca01=_0x418439['model'],_0x146ee9=_0x418439[_0x46ed('0x14')];if(!_0x418439[_0x46ed('0xa')][_0x46ed('0x6')]('StandardEditingModeEditing'))return;const _0x292f61=_0x418439[_0x46ed('0xa')][_0x46ed('0x9')](_0x46ed('0x10')),_0x1119d0=_0x46ed('0xf'),_0x3fd49a=_0x418439[_0x46ed('0x18')][_0x46ed('0x9')](_0x1119d0);_0x292f61[_0x46ed('0xb')](_0x1119d0,(_0x4375ed,_0x17f68b={})=>{const _0x183399=_0x1dca01[_0x46ed('0x17')][_0x46ed('0x8')];if(_0x183399[_0x46ed('0x11')])return void _0x4375ed(_0x17f68b);const _0x3eb2f5=void 0x0!==_0x17f68b['forceValue']?_0x17f68b[_0x46ed('0x16')]:!_0x3fd49a[_0x46ed('0x2')];_0x1dca01[_0x46ed('0x4')](()=>{const _0x3d1907=Array[_0x46ed('0x15')](_0x183399[_0x46ed('0x7')]());for(const _0x1c4f86 of _0x3d1907){const _0x4068d4=_0x3eb2f5?[_0x1c4f86]:_0x201e3c(_0x1119d0,_0x1c4f86,_0x1dca01);for(const _0x2b53a7 of _0x4068d4)_0x292f61[_0x46ed('0x12')](_0x2b53a7,{'commandName':_0x1119d0,'commandParams':[{'forceValue':_0x3eb2f5}]});}});}),_0x292f61[_0x46ed('0x13')][_0x46ed('0xc')](_0x3302d9=>{const {data:_0x3423b8}=_0x3302d9;if(_0x3423b8&&_0x3423b8[_0x46ed('0x0')]==_0x1119d0)return _0x3423b8[_0x46ed('0xd')][0x0]['forceValue']?{'type':'format','content':_0x227da4(_0x146ee9,'FORMAT_RESTRICTED_ENABLED')}:{'type':_0x46ed('0xe'),'content':_0x227da4(_0x146ee9,_0x46ed('0x1'))};});}}
23
+ const _0x2b81=['change','isCollapsed','format','getRanges','FORMAT_RESTRICTED_ENABLED','afterInit','has','formatBlock','StandardEditingModeEditing','_descriptionFactory','registerDescriptionCallback','markInlineFormat','model','document','type','locale','forceValue','get','value','selection','commands','formatInline','enableCommand','FORMAT_RESTRICTED_DISABLED','editor','TrackChangesEditing'];(function(_0x51d2e5,_0x2b812f){const _0x50cc6d=function(_0x2f40e5){while(--_0x2f40e5){_0x51d2e5['push'](_0x51d2e5['shift']());}};_0x50cc6d(++_0x2b812f);}(_0x2b81,0x1bc));const _0x50cc=function(_0x51d2e5,_0x2b812f){_0x51d2e5=_0x51d2e5-0x0;let _0x50cc6d=_0x2b81[_0x51d2e5];return _0x50cc6d;};import{Plugin as _0x200ba5}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x345b1a}from'./utils';import{getTranslation as _0x4f1a7f}from'../utils/common-translations';export default class kt extends _0x200ba5{[_0x50cc('0x3')](){const _0x4a3c5d=this[_0x50cc('0x16')],_0x3e06fa=_0x4a3c5d[_0x50cc('0xa')],_0x3cc790=_0x4a3c5d[_0x50cc('0xd')];if(!_0x4a3c5d['plugins'][_0x50cc('0x4')](_0x50cc('0x6')))return;const _0xa9a0b6=_0x4a3c5d['plugins'][_0x50cc('0xf')](_0x50cc('0x17')),_0x4def47='restrictedEditingException',_0x37f795=_0x4a3c5d[_0x50cc('0x12')][_0x50cc('0xf')](_0x4def47);_0xa9a0b6[_0x50cc('0x14')](_0x4def47,(_0x4e8cc0,_0x212e4f={})=>{const _0x3f8d3e=_0x3e06fa[_0x50cc('0xb')][_0x50cc('0x11')];if(_0x3f8d3e[_0x50cc('0x19')])return void _0x4e8cc0(_0x212e4f);const _0x329bb0=void 0x0!==_0x212e4f[_0x50cc('0xe')]?_0x212e4f[_0x50cc('0xe')]:!_0x37f795[_0x50cc('0x10')];_0x3e06fa[_0x50cc('0x18')](()=>{const _0x592749=Array['from'](_0x3f8d3e[_0x50cc('0x1')]());for(const _0x4bbd92 of _0x592749){const _0x1e4a13=_0x329bb0?[_0x4bbd92]:_0x345b1a(_0x4def47,_0x4bbd92,_0x3e06fa);for(const _0x510717 of _0x1e4a13)_0xa9a0b6[_0x50cc('0x9')](_0x510717,{'commandName':_0x4def47,'commandParams':[{'forceValue':_0x329bb0}]});}});}),_0xa9a0b6[_0x50cc('0x7')][_0x50cc('0x8')](_0x4b8445=>{if(_0x50cc('0x5')!=_0x4b8445[_0x50cc('0xc')]&&_0x50cc('0x13')!=_0x4b8445['type'])return;const {data:_0x4e6e5e}=_0x4b8445;return _0x4e6e5e&&_0x4e6e5e['commandName']==_0x4def47?_0x4e6e5e['commandParams'][0x0]['forceValue']?{'type':'format','content':_0x4f1a7f(_0x3cc790,_0x50cc('0x2'))}:{'type':_0x50cc('0x0'),'content':_0x4f1a7f(_0x3cc790,_0x50cc('0x15'))}:void 0x0;});}}
@@ -1,18 +1,17 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/style
7
- */
8
- import { Plugin } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for styles dropdown feature.
11
- * @todo Remove "any" casts after plugin has been rewritten to TS.
12
- */
13
- export default class TrackChangesStylesDropdown extends Plugin {
14
- /**
15
- * @inheritDoc
16
- */
17
- afterInit(): void;
18
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/style
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for styles dropdown feature.
11
+ */
12
+ export default class TrackChangesStylesDropdown extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ afterInit(): void;
17
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x55bf=['style.definitions','styleName','getDefinitionsForView','commands','_getRangesWithClasses','add','getRanges','isBlock','classes','_getStyleDefinition','locale','inline','Style','document','getAncestors','markInlineFormat','block','has','push','getAttribute','element','_descriptionFactory','from','format','change','*Format:*\x20%0','get','registerDescriptionCallback','TrackChangesEditing','name','style','editor','createRangeOn','modelElements','forceValue','afterInit','isCollapsed','find','getItems','toLowerCase','includes','normalizeConfig','model','commandParams','getSelectedBlocks','plugins','DataSchema','config'];(function(_0x4792f3,_0x55bf00){const _0x2528a3=function(_0x49d065){while(--_0x49d065){_0x4792f3['push'](_0x4792f3['shift']());}};_0x2528a3(++_0x55bf00);}(_0x55bf,0x190));const _0x2528=function(_0x4792f3,_0x55bf00){_0x4792f3=_0x4792f3-0x0;let _0x2528a3=_0x55bf[_0x4792f3];return _0x2528a3;};import{Plugin as _0x5472a5}from'ckeditor5/src/core';import{getTranslation as _0x5a8586}from'../utils/common-translations';export default class mt extends _0x5472a5{[_0x2528('0x13')](){const _0x54cb8d=this[_0x2528('0xf')];if(!_0x54cb8d[_0x2528('0x1d')][_0x2528('0x1')](_0x2528('0x2c')))return;const _0x1003ac=_0x54cb8d[_0x2528('0x23')][_0x2528('0xa')](_0x2528('0xe')),_0x47961e=_0x54cb8d[_0x2528('0x1d')][_0x2528('0xa')](_0x2528('0xc')),_0x86445b=_0x54cb8d[_0x2528('0x2a')],_0x2c1784=_0x54cb8d[_0x2528('0x1d')]['get'](_0x2528('0x1e')),_0x5bad55=_0x54cb8d[_0x2528('0x1d')][_0x2528('0xa')]('StyleUtils')[_0x2528('0x19')](_0x2c1784,_0x54cb8d[_0x2528('0x1f')][_0x2528('0xa')](_0x2528('0x20')));_0x47961e['enableCommand'](_0x2528('0xe'),(_0x519bc2,{styleName:_0x51903f})=>{const _0x48f96e=_0x54cb8d[_0x2528('0x1a')][_0x2528('0x2d')]['selection'],_0x57ab4b=this[_0x2528('0x29')](_0x51903f,_0x5bad55);if(!_0x57ab4b)return;if(!_0x1003ac['enabledStyles'][_0x2528('0x18')](_0x51903f))return;if(_0x48f96e[_0x2528('0x14')]&&!_0x57ab4b[_0x2528('0x27')])return void _0x519bc2({'styleName':_0x51903f});const _0x3671f2=!_0x1003ac['value'][_0x2528('0x18')](_0x57ab4b[_0x2528('0xd')]);if(_0x57ab4b[_0x2528('0x27')]){const _0x25bd9e=function(_0x5f21f6,_0x51b3e9){const _0x505eff=new Set();for(const _0x33b7a1 of _0x5f21f6){const _0x5d6467=_0x33b7a1[_0x2528('0x2e')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x2a2825 of _0x5d6467)if(_0x51b3e9['includes'](_0x2a2825['name'])){_0x505eff[_0x2528('0x25')](_0x2a2825);break;}}return _0x505eff;}(_0x48f96e[_0x2528('0x1c')](),_0x57ab4b[_0x2528('0x11')]);_0x54cb8d[_0x2528('0x1a')][_0x2528('0x8')](()=>{for(const _0x5e519f of _0x25bd9e)_0x47961e['markBlockFormat'](_0x5e519f,{'commandName':'style','commandParams':[{'styleName':_0x51903f,'forceValue':_0x3671f2}],'formatGroupId':'style:'+_0x51903f});});}else{let _0x2b34e2=Array[_0x2528('0x6')](_0x48f96e[_0x2528('0x26')]());if(!_0x3671f2){const _0x360b57=Array[_0x2528('0x6')](_0x2c1784[_0x2528('0x22')](_0x57ab4b[_0x2528('0x4')],!0x1))[0x0][_0x2528('0x1a')],_0x19579e=[];for(const _0x1a8a63 of _0x2b34e2){const _0x1829a5=this[_0x2528('0x24')](_0x54cb8d[_0x2528('0x1a')],_0x1a8a63,_0x57ab4b[_0x2528('0x28')],_0x360b57);_0x19579e[_0x2528('0x2')](..._0x1829a5);}_0x2b34e2=_0x19579e;}_0x54cb8d['model'][_0x2528('0x8')](()=>{for(const _0x48e4d7 of _0x2b34e2)_0x47961e[_0x2528('0x2f')](_0x48e4d7,{'commandName':'style','commandParams':[{'styleName':_0x51903f,'forceValue':_0x3671f2}]});});}}),_0x47961e[_0x2528('0x5')][_0x2528('0xb')](_0x390839=>{const {data:_0x574f90}=_0x390839;if(_0x574f90&&_0x2528('0xe')===_0x574f90['commandName'])return _0x574f90['commandParams'][0x0][_0x2528('0x12')]?{'type':'format','content':_0x5a8586(_0x86445b,_0x2528('0x9'),_0x574f90[_0x2528('0x1b')][0x0][_0x2528('0x21')][_0x2528('0x17')]())}:{'type':_0x2528('0x7'),'content':_0x5a8586(_0x86445b,'*Remove\x20format:*\x20%0',_0x574f90['commandParams'][0x0][_0x2528('0x21')][_0x2528('0x17')]())};});}[_0x2528('0x29')](_0x5215ee,_0x286606){let _0x338a59=_0x286606[_0x2528('0x0')][_0x2528('0x15')](_0x207848=>_0x207848['name']===_0x5215ee);return _0x338a59||(_0x338a59=_0x286606[_0x2528('0x2b')]['find'](_0x2907d7=>_0x2907d7['name']===_0x5215ee)),_0x338a59;}[_0x2528('0x24')](_0x4544f6,_0x228b00,_0x181cf8,_0x6d283d){const _0x3de029=[];for(const _0x596803 of _0x228b00[_0x2528('0x16')]()){const _0x2c4c1f=_0x596803[_0x2528('0x3')](_0x6d283d);_0x2c4c1f&&(_0x181cf8['every'](_0x2c18e1=>_0x2c4c1f['classes'][_0x2528('0x18')](_0x2c18e1))&&_0x3de029[_0x2528('0x2')](_0x4544f6[_0x2528('0x10')](_0x596803)));}return _0x3de029;}}
23
+ const _0x3101=['registerDescriptionCallback','style','StyleUtils','_registerInlineAttribute','formatInline','*Set\x20format:*\x20%0','inline','definitions','commandName','TrackChangesEditing','config','add','plugins','getGhsAttributeNameForElement','editor','ghsAttributes','FORMAT_STYLE','normalizeConfig','styleName','format','toLowerCase','commandParams','registerAttributeLabel','element','block','_enableDefaultAttributesIntegration','_registerBlockAttribute','locale','type','_descriptionFactory','get','*Remove\x20format:*\x20%0','DataSchema','_registerLegacyDescription'];(function(_0x1e3a1d,_0x3101bb){const _0x2805ef=function(_0x1acbd4){while(--_0x1acbd4){_0x1e3a1d['push'](_0x1e3a1d['shift']());}};_0x2805ef(++_0x3101bb);}(_0x3101,0xe3));const _0x2805=function(_0x1e3a1d,_0x3101bb){_0x1e3a1d=_0x1e3a1d-0x0;let _0x2805ef=_0x3101[_0x1e3a1d];return _0x2805ef;};import{Plugin as _0x3bf34b}from'ckeditor5/src/core';import{getTranslation as _0x448673}from'../utils/common-translations';export default class bt extends _0x3bf34b{['afterInit'](){const _0x4c861c=this[_0x2805('0x19')];if(!_0x4c861c[_0x2805('0x17')]['has']('Style')||!_0x4c861c[_0x2805('0x17')]['has'](_0x2805('0x9')))return;const _0x129c74=_0x4c861c[_0x2805('0x17')][_0x2805('0x7')](_0x2805('0x14')),_0x1c6fea=_0x4c861c['locale'],_0x3a8ea9=_0x4c861c[_0x2805('0x15')][_0x2805('0x7')](_0x2805('0xc')),_0x2d9fbb=_0x4c861c[_0x2805('0x17')][_0x2805('0x7')]('GeneralHtmlSupport'),_0x7af576=_0x4c861c['plugins'][_0x2805('0x7')](_0x2805('0xd'))[_0x2805('0x1c')](_0x4c861c[_0x2805('0x17')][_0x2805('0x7')](_0x2805('0x9')),_0x3a8ea9[_0x2805('0x12')]);_0x129c74[_0x2805('0x2')](_0x2805('0xc'));const _0x510bad=new Set();for(const _0x47b5a4 of _0x7af576[_0x2805('0x1')]){const _0x3f37e3=_0x2d9fbb['getGhsAttributeNameForElement'](_0x47b5a4[_0x2805('0x0')]);_0x510bad[_0x2805('0x16')](_0x3f37e3);}const _0x16332f=new Set();for(const _0x2b9071 of _0x7af576[_0x2805('0x11')]){const _0x31681d=_0x2d9fbb[_0x2805('0x18')](_0x2b9071['element']);_0x16332f[_0x2805('0x16')](_0x31681d);for(const _0xf2e740 of _0x2b9071[_0x2805('0x1a')])_0x16332f[_0x2805('0x16')](_0xf2e740);}for(const _0x27f6e4 of _0x510bad)_0x129c74[_0x2805('0x3')](_0x27f6e4),_0x129c74['_descriptionFactory']['registerAttributeLabel'](_0x27f6e4,_0x448673(_0x1c6fea,_0x2805('0x1b')));for(const _0x208372 of _0x16332f)_0x129c74[_0x2805('0xe')](_0x208372),_0x129c74[_0x2805('0x6')][_0x2805('0x21')](_0x208372,_0x448673(_0x1c6fea,_0x2805('0x1b')));this[_0x2805('0xa')]();}[_0x2805('0xa')](){const _0x23b12e=this[_0x2805('0x19')],_0x28dab3=_0x23b12e[_0x2805('0x4')];_0x23b12e['plugins']['get'](_0x2805('0x14'))[_0x2805('0x6')][_0x2805('0xb')](_0x116c0a=>{if('formatBlock'!=_0x116c0a[_0x2805('0x5')]&&_0x2805('0xf')!=_0x116c0a['type'])return;const {data:_0x489027}=_0x116c0a;return _0x489027&&_0x2805('0xc')===_0x489027[_0x2805('0x13')]?_0x489027['commandParams'][0x0]['forceValue']?{'type':'format','content':_0x448673(_0x28dab3,_0x2805('0x10'),_0x489027['commandParams'][0x0]['styleName'][_0x2805('0x1f')]())}:{'type':_0x2805('0x1e'),'content':_0x448673(_0x28dab3,_0x2805('0x8'),_0x489027[_0x2805('0x20')][0x0][_0x2805('0x1d')][_0x2805('0x1f')]())}:void 0x0;});}}
@@ -1,42 +1,42 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module track-changes/integrations/table
7
- */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- /**
10
- * Provides track changes plugin integration for {@link module:table/table~Table table feature}.
11
- */
12
- export default class TrackChangesTable extends Plugin {
13
- /**
14
- * @inheritDoc
15
- */
16
- constructor(editor: Editor);
17
- /**
18
- * @inheritDoc
19
- */
20
- afterInit(): void;
21
- }
22
- /**
23
- * Coordinates for suggestion.
24
- */
25
- export interface SuggestionCoordinates {
26
- /**
27
- * Index of the row at which the suggestion starts.
28
- */
29
- minRow: number;
30
- /**
31
- * Index of the row at which the suggestion ends.
32
- */
33
- maxRow: number;
34
- /**
35
- * Index of the column at which the suggestion starts.
36
- */
37
- minColumn: number;
38
- /**
39
- * Index of the column at which the suggestion ends.
40
- */
41
- maxColumn: number;
42
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module track-changes/integrations/table
7
+ */
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core';
9
+ /**
10
+ * Provides track changes plugin integration for {@link module:table/table~Table table feature}.
11
+ */
12
+ export default class TrackChangesTable extends Plugin {
13
+ /**
14
+ * @inheritDoc
15
+ */
16
+ constructor(editor: Editor);
17
+ /**
18
+ * @inheritDoc
19
+ */
20
+ afterInit(): void;
21
+ }
22
+ /**
23
+ * Coordinates for suggestion.
24
+ */
25
+ export interface SuggestionCoordinates {
26
+ /**
27
+ * Index of the row at which the suggestion starts.
28
+ */
29
+ minRow: number;
30
+ /**
31
+ * Index of the row at which the suggestion ends.
32
+ */
33
+ maxRow: number;
34
+ /**
35
+ * Index of the column at which the suggestion starts.
36
+ */
37
+ minColumn: number;
38
+ /**
39
+ * Index of the column at which the suggestion ends.
40
+ */
41
+ maxColumn: number;
42
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1619=['tableRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','fromRange','deletion','last','map','position','substr','above','removeTableColumn','some','getSuggestion','refresh','options','_suggestionFactory','left','oldRange','change','order','TableUtils','data','showSuggestionHighlights','root','markMultiRangeInsertion','createRangeIn','commands','min','cell','nodeAfter','addRange','_getSuggestionCoords','discard','getCellLocation','isEqual','tableCell','ELEMENT_TABLE_COLUMN','minRow','insertTable','_splitMarkerName','insert','classes','_acceptFormatSuggestionCallbackFactory','start','getSelectionAffectedTableCells','getItems','createPositionAt','hasAttribute','toViewElement','subType','insertion','model','editor','setSelection','ELEMENT_TABLE_ROW','tableColumn','from','getRowIndexes','enqueueChange','accept','maxColumn','tablePaste','nodeBefore','_tableSuggestions','MAX_SAFE_INTEGER','createRangeOn','low','insertTableColumnLeft','getAttribute','get','isArray','afterInit','removeTableRow','selectTableRow','insertTableRowAbove','rowspan','TableEditing','TrackChangesEditing','getChildren','findAncestor','$graveyard','table','createTableWalker','colspan','push','_getCoordsForCells','minColumn','MIN_SAFE_INTEGER','detach','span','*Remove:*\x20%0','*Insert:*\x20%0','document','type','registerPostFixer','toLowerCase','highest','isIntersectingWithRange','insertTableRowBelow','_setupColumnsRowsFixing','getColumnIndexes','enableCommand','batch','element','execute','forceValue','rootName','max','_tablePostFixingSubtypes','join','name','first','registerCustomCallback','downcastDispatcher','length','registerDescriptionCallback','includes','getFirstRange','plugins','_descriptionFactory','differ','end','ELEMENT_TABLE','getContainedElement','$textProxy','filter','addClass','isTouching','add','selectTableColumn','ELEMENT_TABLE_WITH_TEXT','ELEMENT_TABLE_ROW_WITH_TEXT','getRanges'];(function(_0x22961e,_0x161942){const _0x16c3b8=function(_0x2b249f){while(--_0x2b249f){_0x22961e['push'](_0x22961e['shift']());}};_0x16c3b8(++_0x161942);}(_0x1619,0xf5));const _0x16c3=function(_0x22961e,_0x161942){_0x22961e=_0x22961e-0x0;let _0x16c3b8=_0x1619[_0x22961e];return _0x16c3b8;};import{Plugin as _0x37a406}from'ckeditor5/src/core';import{LiveRange as _0x392b59}from'ckeditor5/src/engine';import{setHighlightHandling as _0xe25658}from'ckeditor5/src/widget';import{getTranslation as _0x12deb4}from'../utils/common-translations';export default class dt extends _0x37a406{constructor(_0x4d7730){super(_0x4d7730),this['_tablePostFixingSubtypes']=[_0x16c3('0x13'),_0x16c3('0x49')],this[_0x16c3('0x51')]=new Set();}[_0x16c3('0x59')](){const _0x68df5b=this[_0x16c3('0x46')],_0x58ed94=_0x68df5b[_0x16c3('0x45')][_0x16c3('0x6e')]['selection'];if(!_0x68df5b[_0x16c3('0x4')]['has'](_0x16c3('0x5e')))return;const _0x2db262=_0x68df5b['locale'],_0x4377e4=_0x68df5b[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x5f')),_0x2b21c9=_0x68df5b[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x26'));_0x4377e4['_descriptionFactory']['registerElementLabel'](_0x16c3('0x63'),_0x2ac39c=>_0x12deb4(_0x2db262,_0x16c3('0x8'),_0x2ac39c)),this[_0x16c3('0x75')](),_0x4377e4[_0x16c3('0x77')](_0x16c3('0x38')),_0x4377e4['enableCommand'](_0x16c3('0x5b')),_0x4377e4[_0x16c3('0x77')](_0x16c3('0xf'));for(const _0x40dfa1 of[_0x16c3('0x5c'),_0x16c3('0x74')]){const _0x5d33ff=_0x68df5b['commands'][_0x16c3('0x57')](_0x40dfa1);_0x4377e4['enableCommand'](_0x40dfa1,_0x374c88=>{_0x68df5b[_0x16c3('0x45')]['change'](_0x293a3e=>{_0x374c88();const _0x7bc191=_0x16c3('0x1b')===_0x5d33ff['order'],_0x73d61d=_0x2b21c9['getSelectionAffectedTableCells'](_0x58ed94),_0xa6659=_0x2b21c9[_0x16c3('0x4b')](_0x73d61d),_0x643cc7=_0x7bc191?_0xa6659[_0x16c3('0x81')]-0x1:_0xa6659['last']+0x1,_0x6e80da=_0x73d61d[0x0][_0x16c3('0x61')](_0x16c3('0x63')),_0x381917=_0x2b21c9['createTableWalker'](_0x6e80da,{'startRow':_0x643cc7,'endRow':_0x643cc7}),_0x25ba58=Array[_0x16c3('0x4a')](_0x381917)['map'](_0x5a8e07=>_0x293a3e[_0x16c3('0x53')](_0x5a8e07[_0x16c3('0x2e')]));_0x4377e4[_0x16c3('0x2a')](_0x25ba58,_0x16c3('0x13'));});});}for(const _0x118f17 of[_0x16c3('0x55'),'insertTableColumnRight']){const _0x54d4d0=_0x68df5b[_0x16c3('0x2c')][_0x16c3('0x57')](_0x118f17);_0x4377e4[_0x16c3('0x77')](_0x118f17,_0x5f482=>{_0x68df5b[_0x16c3('0x45')][_0x16c3('0x24')](_0x738480=>{_0x5f482();const _0x36993b=_0x16c3('0x22')===_0x54d4d0[_0x16c3('0x25')],_0x51def4=_0x2b21c9['getSelectionAffectedTableCells'](_0x58ed94),_0x1667fc=_0x2b21c9[_0x16c3('0x76')](_0x51def4),_0x59bcbf=_0x36993b?_0x1667fc[_0x16c3('0x81')]-0x1:_0x1667fc[_0x16c3('0x17')]+0x1,_0x86a329=_0x51def4[0x0][_0x16c3('0x61')](_0x16c3('0x63')),_0x2e24eb=_0x2b21c9[_0x16c3('0x64')](_0x86a329,{'startRow':0x0,'column':_0x59bcbf,'includeAllSlots':!0x1}),_0x5180a7=Array['from'](_0x2e24eb)[_0x16c3('0x18')](_0x23d49c=>_0x738480[_0x16c3('0x53')](_0x23d49c[_0x16c3('0x2e')]));_0x4377e4[_0x16c3('0x2a')](_0x5180a7,_0x16c3('0x49'));});});}for(const _0x564349 of['removeTableRow',_0x16c3('0x1c')]){const _0x1b602d=_0x564349[_0x16c3('0x1a')](0xb),_0x551b3f=_0x1b602d['toLowerCase'](),_0x519f49=_0x551b3f[_0x16c3('0x1a')](0x0,0x3)+'span',_0x6d77c5=_0x16c3('0x63')+_0x1b602d,_0x4df3ef=_0x16c3('0x2d')+_0x1b602d,_0x2f671c='max'+_0x1b602d;_0x4377e4['enableCommand'](_0x564349,()=>{_0x68df5b['model'][_0x16c3('0x24')](_0x5ce7ee=>{const _0x598c16=_0x2b21c9[_0x16c3('0x3e')](_0x58ed94),_0x1ea8cf=_0x598c16[0x0]['findAncestor'](_0x16c3('0x63'));let _0x5d3d46;if(_0x16c3('0x5a')==_0x564349){const _0x57bfc2=_0x2b21c9[_0x16c3('0x4b')](_0x598c16);_0x5d3d46={'startRow':_0x57bfc2[_0x16c3('0x81')],'endRow':_0x57bfc2[_0x16c3('0x17')],'includeAllSlots':!0x0};}else{const _0x4c8782=_0x2b21c9[_0x16c3('0x76')](_0x598c16);_0x5d3d46={'startColumn':_0x4c8782['first'],'endColumn':_0x4c8782[_0x16c3('0x17')],'includeAllSlots':!0x0};}const _0x597133=_0x2b21c9[_0x16c3('0x64')](_0x1ea8cf,_0x5d3d46),_0x599069=Array[_0x16c3('0x4a')](_0x597133)[_0x16c3('0x18')](({cell:_0x86c9b1})=>_0x86c9b1),_0x3d28f1=se(_0x599069[_0x16c3('0xb')](_0x42d925=>_0x42d925[_0x16c3('0x41')](_0x519f49))),_0xbbf5c=se(_0x599069[_0x16c3('0xb')](_0x110058=>!_0x110058['hasAttribute'](_0x519f49)))[_0x16c3('0x18')](_0x5ebfce=>_0x5ce7ee[_0x16c3('0x53')](_0x5ebfce)),_0x174217=_0x4377e4['markMultiRangeDeletion'](_0xbbf5c,_0x6d77c5);if(_0x174217&&('tableRow'==_0x174217['subType']||'tableColumn'==_0x174217[_0x16c3('0x43')])){const _0x457ce2=this[_0x16c3('0x31')](_0x174217);for(const _0x4ba175 of _0x3d28f1){const _0x3504e7=_0x5ce7ee[_0x16c3('0x53')](_0x4ba175),_0x52f175=_0x2b21c9[_0x16c3('0x33')](_0x4ba175),_0x4e77c1=_0x4ba175[_0x16c3('0x56')](_0x519f49)-0x1,_0x533a83=_0x457ce2[_0x4df3ef],_0x4693b4=_0x457ce2[_0x2f671c];_0x533a83<=_0x52f175[_0x551b3f]&&_0x52f175[_0x551b3f]+_0x4e77c1<=_0x4693b4&&_0x174217[_0x16c3('0x30')](_0x3504e7);}}});});}function _0x122dde(_0x4371f1){const _0x3415aa=Array['from'](_0x58ed94[_0x16c3('0x12')]())[_0x16c3('0x18')](_0x351848=>_0x392b59[_0x16c3('0x15')](_0x351848));_0x68df5b[_0x16c3('0x45')][_0x16c3('0x24')](_0x14fe4b=>{const _0x53d35d=_0x14fe4b[_0x16c3('0x78')];_0x4371f1=_0x4371f1['filter'](_0x23af3b=>_0x16c3('0x62')!=_0x23af3b['root'][_0x16c3('0x7c')]),_0x14fe4b[_0x16c3('0x47')](_0x4371f1),_0x68df5b[_0x16c3('0x2c')][_0x16c3('0x57')](_0x16c3('0x5a'))[_0x16c3('0x1f')](),_0x68df5b[_0x16c3('0x7a')](_0x16c3('0x5a'),{'forceDefaultExecution':!0x0}),_0x68df5b[_0x16c3('0x45')]['enqueueChange'](()=>{_0x68df5b[_0x16c3('0x45')][_0x16c3('0x4c')](_0x53d35d,_0x25218c=>{const _0x9fd483=_0x3415aa[_0x16c3('0xb')](_0x331d90=>_0x16c3('0x62')!=_0x331d90['root'][_0x16c3('0x7c')]);_0x9fd483['length']>0x0&&_0x25218c['setSelection'](_0x9fd483);for(const _0x3a8231 of _0x3415aa)_0x3a8231[_0x16c3('0x6a')]();});});});}function _0x10253e(_0x3d9236){_0x68df5b[_0x16c3('0x45')][_0x16c3('0x24')](_0x503476=>{const _0x305f12=Array[_0x16c3('0x4a')](_0x58ed94[_0x16c3('0x12')]())[_0x16c3('0x18')](_0x1d68ab=>_0x392b59['fromRange'](_0x1d68ab)),_0x50ba05=[];for(const _0x44547d of _0x3d9236)for(const _0x44faf3 of _0x44547d[_0x16c3('0x3f')]({'shallow':!0x0}))_0x50ba05[_0x16c3('0x66')](_0x44faf3);for(const _0x23c6fb of _0x50ba05)_0x16c3('0x62')!=_0x23c6fb['root']['rootName']&&(_0x503476[_0x16c3('0x47')](_0x503476[_0x16c3('0x40')](_0x23c6fb,0x0)),_0x68df5b[_0x16c3('0x2c')]['get']('removeTableColumn')[_0x16c3('0x1f')](),_0x68df5b['execute'](_0x16c3('0x1c'),{'forceDefaultExecution':!0x0}));const _0x2597e5=_0x305f12[_0x16c3('0xb')](_0xba35ac=>_0x16c3('0x62')!=_0xba35ac[_0x16c3('0x29')]['rootName']);_0x2597e5['length']>0x0&&_0x503476[_0x16c3('0x47')](_0x2597e5);for(const _0x320c0a of _0x305f12)_0x320c0a[_0x16c3('0x6a')]();});}function _0x530253(_0x117884,_0xf06874){return _0xf06874['every'](_0x3b38e7=>_0x117884[_0x16c3('0x1d')](_0x6cd7e3=>_0x6cd7e3[_0x16c3('0x7')]['isEqual'](_0x3b38e7[_0x16c3('0x3d')])||_0x3b38e7[_0x16c3('0x7')][_0x16c3('0x34')](_0x6cd7e3[_0x16c3('0x3d')])));}function _0x332219(_0x1906ed,_0x22a151){return _0x1906ed[_0x16c3('0x1d')](_0x5d927d=>_0x22a151[_0x16c3('0x1d')](_0x24aca2=>_0x5d927d[_0x16c3('0x7')][_0x16c3('0xd')](_0x24aca2[_0x16c3('0x3d')])));}_0x68df5b[_0x16c3('0x27')][_0x16c3('0x83')]['on']('addMarker:suggestion',(_0x3a3eac,_0x8ed327,_0x286b22)=>{if(!_0x286b22[_0x16c3('0x20')][_0x16c3('0x28')])return;const _0x1ab0d9=_0x8ed327['item'];if(!_0x1ab0d9)return;const _0x1e48af=_0x286b22['mapper'][_0x16c3('0x42')](_0x1ab0d9);function _0x44fe93(_0x34d877){return Array[_0x16c3('0x58')](_0x34d877)?_0x34d877:[_0x34d877];}_0x1e48af&&_0x16c3('0x35')===_0x1ab0d9[_0x16c3('0x80')]&&_0xe25658(_0x1e48af,_0x286b22['writer'],(_0x4932af,_0x4ffd8f,_0x1e506c)=>_0x1e506c[_0x16c3('0xc')](_0x44fe93(_0x4ffd8f[_0x16c3('0x3b')]),_0x4932af),(_0x3366e7,_0x2eb532,_0x190dba)=>_0x190dba['removeClass'](_0x44fe93(_0x2eb532['classes']),_0x3366e7));},{'priority':_0x16c3('0x72')}),_0x4377e4[_0x16c3('0x5')][_0x16c3('0x1')](_0x4e02ed=>{if(_0x16c3('0x44')!=_0x4e02ed[_0x16c3('0x6f')]&&'deletion'!=_0x4e02ed[_0x16c3('0x6f')])return;const _0x4081a8=_0x4e02ed[_0x16c3('0x9')]();if(null!=_0x4081a8&&_0x4081a8['is'](_0x16c3('0x79'),_0x16c3('0x63'))){if(_0x16c3('0x44')==_0x4e02ed[_0x16c3('0x6f')]){const _0x71b36f=_0x4e02ed['getItems']()[_0x16c3('0xb')](_0x3f9abe=>_0x3f9abe['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x1750e2=>_0x1750e2[_0x16c3('0x27')]);if(_0x71b36f[_0x16c3('0x0')])return{'type':_0x16c3('0x44'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6d'),_0x12deb4(_0x2db262,_0x16c3('0x10'),'\x22'+_0x71b36f[_0x16c3('0x7f')]('\x20')+'\x22'))};}if(_0x16c3('0x16')==_0x4e02ed[_0x16c3('0x6f')]){const _0x55f6fe=_0x4e02ed[_0x16c3('0x3f')]()['filter'](_0x2c1fce=>_0x2c1fce['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x3d0cad=>_0x3d0cad[_0x16c3('0x27')]);if(_0x55f6fe[_0x16c3('0x0')])return{'type':_0x16c3('0x16'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x10'),'\x22'+_0x55f6fe[_0x16c3('0x7f')]('\x20')+'\x22'))};}}}),_0x4377e4[_0x16c3('0x5')]['registerDescriptionCallback'](_0x344e07=>{if(_0x16c3('0x13')==_0x344e07[_0x16c3('0x43')]){const _0x28692d=_0x344e07['getItems']()['filter'](_0x462aed=>_0x462aed['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x543c50=>_0x543c50[_0x16c3('0x27')]),_0x194726=this['_getSuggestionCoords'](_0x344e07),_0x23a6ec=_0x194726['maxRow']-_0x194726[_0x16c3('0x37')]+0x1;if('insertion'==_0x344e07[_0x16c3('0x6f')])return _0x28692d[_0x16c3('0x0')]?{'type':'insertion','content':_0x12deb4(_0x2db262,'*Insert:*\x20%0',_0x12deb4(_0x2db262,_0x16c3('0x11'),[_0x23a6ec,'\x22'+_0x28692d[_0x16c3('0x7f')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x12deb4(_0x2db262,'*Insert:*\x20%0',_0x12deb4(_0x2db262,_0x16c3('0x48'),_0x23a6ec))};if(_0x16c3('0x16')==_0x344e07[_0x16c3('0x6f')])return _0x28692d[_0x16c3('0x0')]?{'type':'deletion','content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x23a6ec,'\x22'+_0x28692d['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x48'),_0x23a6ec))};}if(_0x16c3('0x49')==_0x344e07[_0x16c3('0x43')]){const _0x159c1d=_0x344e07[_0x16c3('0x3f')]()[_0x16c3('0xb')](_0x40c8c0=>_0x40c8c0['is'](_0x16c3('0xa')))[_0x16c3('0x18')](_0x1b0e03=>_0x1b0e03[_0x16c3('0x27')]),_0x375b40=this['_getSuggestionCoords'](_0x344e07),_0xeef44c=_0x375b40[_0x16c3('0x4e')]-_0x375b40[_0x16c3('0x68')]+0x1;if(_0x16c3('0x44')==_0x344e07[_0x16c3('0x6f')])return _0x159c1d[_0x16c3('0x0')]?{'type':_0x16c3('0x44'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6d'),_0x12deb4(_0x2db262,_0x16c3('0x14'),[_0xeef44c,'\x22'+_0x159c1d[_0x16c3('0x7f')]('\x20')+'\x22']))}:{'type':_0x16c3('0x44'),'content':_0x12deb4(_0x2db262,'*Insert:*\x20%0',_0x12deb4(_0x2db262,_0x16c3('0x36'),_0xeef44c))};if('deletion'==_0x344e07[_0x16c3('0x6f')])return _0x159c1d[_0x16c3('0x0')]?{'type':'deletion','content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x14'),[_0xeef44c,'\x22'+_0x159c1d[_0x16c3('0x7f')]('\x20')+'\x22']))}:{'type':_0x16c3('0x16'),'content':_0x12deb4(_0x2db262,_0x16c3('0x6c'),_0x12deb4(_0x2db262,_0x16c3('0x36'),_0xeef44c))};}}),_0x4377e4['_suggestionFactory'][_0x16c3('0x82')](_0x16c3('0x44'),_0x16c3('0x13'),_0x16c3('0x32'),_0x122dde),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x16'),_0x16c3('0x13'),'accept',_0x122dde),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x44'),_0x16c3('0x49'),_0x16c3('0x32'),_0x10253e),_0x4377e4['_suggestionFactory'][_0x16c3('0x82')]('deletion',_0x16c3('0x49'),_0x16c3('0x4d'),_0x10253e),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x44'),'tableColumn',_0x16c3('0x7f'),_0x530253),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')]('deletion',_0x16c3('0x49'),'join',_0x530253),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x44'),_0x16c3('0x13'),_0x16c3('0x7f'),_0x332219),_0x4377e4[_0x16c3('0x21')][_0x16c3('0x82')](_0x16c3('0x16'),'tableRow',_0x16c3('0x7f'),_0x332219);}[_0x16c3('0x3c')](){const _0x17ee33=this['editor'],_0x818b98=_0x17ee33[_0x16c3('0x45')][_0x16c3('0x6e')]['selection'];return(_0x338e4a,_0x1f0345)=>{_0x17ee33[_0x16c3('0x45')][_0x16c3('0x24')](_0x3d21bc=>{const {commandName:_0xea5379,commandParams:_0x17083b}=_0x1f0345;let _0x36b33a=_0x338e4a[0x0]['end'][_0x16c3('0x50')];_0x17083b&&_0x17083b[0x0]&&!0x1===_0x17083b[0x0][_0x16c3('0x7b')]&&(_0x36b33a=_0x338e4a[0x0][_0x16c3('0x3d')]['nodeAfter']);const _0x4dbadd=_0x3d21bc[_0x16c3('0x2b')](_0x36b33a);if(_0x16c3('0x62')==_0x4dbadd[_0x16c3('0x29')][_0x16c3('0x7c')])return;const _0x30a0df=Array['from'](_0x818b98[_0x16c3('0x12')]())['map'](_0x33c08c=>_0x392b59[_0x16c3('0x15')](_0x33c08c));_0x3d21bc[_0x16c3('0x47')](_0x4dbadd),_0x17ee33[_0x16c3('0x2c')]['get'](_0xea5379)[_0x16c3('0x1f')](),_0x17083b[_0x16c3('0x66')]({'forceDefaultExecution':!0x0}),_0x17ee33['execute'](_0xea5379,..._0x17083b);const _0x47866d=_0x30a0df[_0x16c3('0xb')](_0x55ac23=>_0x16c3('0x62')!=_0x55ac23['root'][_0x16c3('0x7c')]);_0x47866d[_0x16c3('0x0')]>0x0&&_0x3d21bc[_0x16c3('0x47')](_0x47866d);for(const _0x127f42 of _0x30a0df)_0x127f42['detach']();});};}[_0x16c3('0x67')](_0x5e0c42){const _0xd2341a=this[_0x16c3('0x46')]['plugins'][_0x16c3('0x57')](_0x16c3('0x26'));let _0x2e02ed=Number[_0x16c3('0x52')],_0x379315=Number[_0x16c3('0x69')],_0x5950e8=Number[_0x16c3('0x52')],_0x12e184=Number[_0x16c3('0x69')];for(const _0x54d01b of _0x5e0c42){if(_0x16c3('0x62')==_0x54d01b['root'][_0x16c3('0x7c')])continue;const {row:_0x307df2,column:_0x3828af}=_0xd2341a[_0x16c3('0x33')](_0x54d01b),_0x2f0a8a=_0x54d01b['hasAttribute'](_0x16c3('0x5d'))?_0x54d01b['getAttribute'](_0x16c3('0x5d'))-0x1:0x0,_0x333a27=_0x54d01b['hasAttribute']('colspan')?_0x54d01b[_0x16c3('0x56')](_0x16c3('0x65'))-0x1:0x0;_0x2e02ed=_0x307df2<_0x2e02ed?_0x307df2:_0x2e02ed,_0x379315=_0x307df2+_0x2f0a8a>_0x379315?_0x307df2+_0x2f0a8a:_0x379315,_0x5950e8=_0x3828af<_0x5950e8?_0x3828af:_0x5950e8,_0x12e184=_0x3828af+_0x333a27>_0x12e184?_0x3828af+_0x333a27:_0x12e184;}return{'minRow':_0x2e02ed,'maxRow':_0x379315,'minColumn':_0x5950e8,'maxColumn':_0x12e184};}[_0x16c3('0x75')](){const _0x19b277=this[_0x16c3('0x46')],_0x264948=_0x19b277[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x5f')),_0x561d65=_0x19b277[_0x16c3('0x4')][_0x16c3('0x57')](_0x16c3('0x26'));_0x19b277['model'][_0x16c3('0x6e')]['on']('change:data',()=>{const _0x4db890=Array[_0x16c3('0x4a')](_0x19b277[_0x16c3('0x45')][_0x16c3('0x6e')][_0x16c3('0x6')]['getChangedMarkers']());for(const {name:_0x48256d,data:_0x59e4e8}of _0x4db890){const {group:_0x313c8d,id:_0x5f3125,subType:_0x547743}=_0x264948[_0x16c3('0x39')](_0x48256d);if('suggestion'!=_0x313c8d)continue;if(null!=_0x59e4e8[_0x16c3('0x23')])continue;const _0x265c03=_0x264948[_0x16c3('0x1e')](_0x5f3125);this[_0x16c3('0x7e')][_0x16c3('0x2')](_0x547743)&&this[_0x16c3('0x51')][_0x16c3('0xe')](_0x265c03);}},{'priority':_0x16c3('0x54')});const _0x44a238=(_0x181ef9,_0x303ec0)=>{let _0x3d3aff=!0x1;const _0x2fb1b2=_0x303ec0[_0x16c3('0x53')](_0x181ef9),_0x2d441e=_0x181ef9[_0x16c3('0x61')](_0x16c3('0x63')),_0x3c788f=_0x561d65[_0x16c3('0x33')](_0x181ef9);for(const _0x26c56c of this['_tableSuggestions']){const _0x2fd725=_0x26c56c['subType'],_0xc25093=_0x2fd725['startsWith'](_0x16c3('0x4f')),_0x5f00e5=_0x2fd725[_0x16c3('0x1a')](_0xc25093?0xa:0x5),_0x4528d4=_0x5f00e5[_0x16c3('0x71')](),_0x54b963=_0x4528d4[_0x16c3('0x1a')](0x0,0x3)+_0x16c3('0x6b'),_0x5725c0='min'+_0x5f00e5,_0x363f2c=_0x16c3('0x7d')+_0x5f00e5;if(!_0x26c56c['isInContent'])continue;if(_0x2d441e!=_0x26c56c[_0x16c3('0x3')]()[_0x16c3('0x3d')][_0x16c3('0x61')](_0x16c3('0x63')))continue;if(_0x26c56c[_0x16c3('0x73')](_0x2fb1b2))continue;const _0x36fb62=_0x181ef9[_0x16c3('0x41')](_0x54b963)?_0x181ef9[_0x16c3('0x56')](_0x54b963)-0x1:0x0,_0x2ce3d6=this['_getSuggestionCoords'](_0x26c56c),_0x513014=_0x2ce3d6[_0x5725c0],_0x14557a=_0x2ce3d6[_0x363f2c];_0x513014<=_0x3c788f[_0x4528d4]&&_0x3c788f[_0x4528d4]+_0x36fb62<=_0x14557a&&(_0x26c56c['addRange'](_0x2fb1b2),_0x3d3aff=!0x0);}return _0x3d3aff;};_0x19b277[_0x16c3('0x45')]['document'][_0x16c3('0x70')](_0x22bd80=>{let _0x3a42f7=!0x1;for(const _0x309b09 of _0x19b277[_0x16c3('0x45')][_0x16c3('0x6e')]['differ']['getChanges']())if(_0x16c3('0x3a')==_0x309b09[_0x16c3('0x6f')]){if('tableRow'==_0x309b09[_0x16c3('0x80')])for(const _0x160ecb of _0x309b09[_0x16c3('0x19')]['nodeAfter'][_0x16c3('0x60')]())_0x3a42f7=_0x3a42f7||_0x44a238(_0x160ecb,_0x22bd80);else _0x16c3('0x35')==_0x309b09[_0x16c3('0x80')]&&(_0x3a42f7=_0x3a42f7||_0x44a238(_0x309b09['position'][_0x16c3('0x2f')],_0x22bd80));}return _0x3a42f7;});}[_0x16c3('0x31')](_0x59df5e){return this[_0x16c3('0x67')](_0x59df5e['getRanges']()[_0x16c3('0x18')](_0x235c75=>_0x235c75[_0x16c3('0x3d')][_0x16c3('0x2f')]));}}function se(_0x3ee864){return Array['from'](new Set(_0x3ee864)['values']());}
23
+ const _0x1546=['registerElementLabel','_acceptFormatSuggestionCallbackFactory','item','getFirstRange','createPositionAt','findAncestor','registerDescriptionCallback','cell','$graveyard','isTouching','nodeBefore','_getCoordsForCells','getCellLocation','markMultiRangeInsertion','tableCell','getRowIndexes','removeTableRow','showSuggestionHighlights','_getSuggestionCoords','removeTableColumn','_suggestionFactory','data','every','enableCommand','detach','options','last','tableRow','getSuggestion','batch','createTableWalker','getChanges','model','length','includes','toLowerCase','subType','document','mapper','name','startsWith','change','getAttribute','isInContent','map','locale','refresh','selection','start','createRangeIn','table','ELEMENT_TABLE_WITH_TEXT','addClass','insertion','MAX_SAFE_INTEGER','forceValue','insertTableRowBelow','plugins','span','_tableSuggestions','createRangeOn','min','highest','getChildren','execute','setSelection','classes','colspan','isEqual','getChangedMarkers','ELEMENT_TABLE','filter','rowspan','addMarker:suggestion','$textProxy','TrackChangesEditing','toViewElement','first','getContainedElement','discard','ELEMENT_TABLE_ROW_WITH_TEXT','join','insertTableRowAbove','deletion','nodeAfter','addRange','getRanges','commands','accept','ELEMENT_TABLE_COLUMN_WITH_TEXT','suggestion','hasAttribute','*Insert:*\x20%0','position','editor','markMultiRangeDeletion','getSelectionAffectedTableCells','from','root','enqueueChange','insertTableColumnRight','ELEMENT_TABLE_COLUMN','selectTableColumn','substr','registerCustomCallback','_setupColumnsRowsFixing','get','*Remove:*\x20%0','order','max','_descriptionFactory','some','TableUtils','MIN_SAFE_INTEGER','isIntersectingWithRange','push','tablePaste','writer','insert','has','oldRange','tableColumn','rootName','minColumn','fromRange','ELEMENT_TABLE_ROW','end','getColumnIndexes','element','getItems','type'];(function(_0x395c15,_0x1546f3){const _0x5a6e5e=function(_0x250c88){while(--_0x250c88){_0x395c15['push'](_0x395c15['shift']());}};_0x5a6e5e(++_0x1546f3);}(_0x1546,0x73));const _0x5a6e=function(_0x395c15,_0x1546f3){_0x395c15=_0x395c15-0x0;let _0x5a6e5e=_0x1546[_0x395c15];return _0x5a6e5e;};import{Plugin as _0x5ef1b5}from'ckeditor5/src/core';import{LiveRange as _0x5799ae}from'ckeditor5/src/engine';import{setHighlightHandling as _0x147f43}from'ckeditor5/src/widget';import{getTranslation as _0x32edce}from'../utils/common-translations';export default class wt extends _0x5ef1b5{constructor(_0x3bbaaa){super(_0x3bbaaa),this['_tablePostFixingSubtypes']=[_0x5a6e('0x2b'),_0x5a6e('0x6')],this[_0x5a6e('0x4b')]=new Set();}['afterInit'](){const _0x7616af=this[_0x5a6e('0x6e')],_0x3d53de=_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x35')][_0x5a6e('0x3f')];if(!_0x7616af[_0x5a6e('0x49')][_0x5a6e('0x4')]('TableEditing'))return;const _0x2cd26c=_0x7616af[_0x5a6e('0x3d')],_0x16fa90=_0x7616af['plugins'][_0x5a6e('0x7a')](_0x5a6e('0x5b')),_0x58916b=_0x7616af[_0x5a6e('0x49')][_0x5a6e('0x7a')]('TableUtils');_0x16fa90[_0x5a6e('0x7e')][_0x5a6e('0x10')]('table',_0xfa81a9=>_0x32edce(_0x2cd26c,_0x5a6e('0x56'),_0xfa81a9)),this['_setupColumnsRowsFixing'](),_0x16fa90[_0x5a6e('0x27')]('insertTable'),_0x16fa90[_0x5a6e('0x27')]('selectTableRow'),_0x16fa90[_0x5a6e('0x27')](_0x5a6e('0x76'));for(const _0x1b9a5d of[_0x5a6e('0x62'),_0x5a6e('0x48')]){const _0x18e0d0=_0x7616af[_0x5a6e('0x67')][_0x5a6e('0x7a')](_0x1b9a5d);_0x16fa90['enableCommand'](_0x1b9a5d,_0x5819fb=>{_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x39')](_0x571b56=>{_0x5819fb();const _0xf45e6c='above'===_0x18e0d0[_0x5a6e('0x7c')],_0x15e034=_0x58916b[_0x5a6e('0x70')](_0x3d53de),_0x196bd4=_0x58916b[_0x5a6e('0x1f')](_0x15e034),_0x18f6f8=_0xf45e6c?_0x196bd4['first']-0x1:_0x196bd4[_0x5a6e('0x2a')]+0x1,_0x5bb4f1=_0x15e034[0x0][_0x5a6e('0x15')]('table'),_0x2f1e90=_0x58916b['createTableWalker'](_0x5bb4f1,{'startRow':_0x18f6f8,'endRow':_0x18f6f8}),_0xe4f004=Array[_0x5a6e('0x71')](_0x2f1e90)[_0x5a6e('0x3c')](_0x339a87=>_0x571b56[_0x5a6e('0x4c')](_0x339a87[_0x5a6e('0x17')]));_0x16fa90[_0x5a6e('0x1d')](_0xe4f004,_0x5a6e('0x2b'));});});}for(const _0x4f336c of['insertTableColumnLeft',_0x5a6e('0x74')]){const _0x800a7c=_0x7616af['commands'][_0x5a6e('0x7a')](_0x4f336c);_0x16fa90[_0x5a6e('0x27')](_0x4f336c,_0x225d3d=>{_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x39')](_0xcbdde3=>{_0x225d3d();const _0xadb72b='left'===_0x800a7c[_0x5a6e('0x7c')],_0x3e8d94=_0x58916b[_0x5a6e('0x70')](_0x3d53de),_0x9d885c=_0x58916b[_0x5a6e('0xc')](_0x3e8d94),_0xa570ac=_0xadb72b?_0x9d885c[_0x5a6e('0x5d')]-0x1:_0x9d885c[_0x5a6e('0x2a')]+0x1,_0x3eee96=_0x3e8d94[0x0]['findAncestor'](_0x5a6e('0x42')),_0x23f1b4=_0x58916b[_0x5a6e('0x2e')](_0x3eee96,{'startRow':0x0,'column':_0xa570ac,'includeAllSlots':!0x1}),_0x4197c6=Array[_0x5a6e('0x71')](_0x23f1b4)['map'](_0x46c077=>_0xcbdde3[_0x5a6e('0x4c')](_0x46c077[_0x5a6e('0x17')]));_0x16fa90['markMultiRangeInsertion'](_0x4197c6,_0x5a6e('0x6'));});});}for(const _0x1f37c4 of[_0x5a6e('0x20'),_0x5a6e('0x23')]){const _0x299bff=_0x1f37c4[_0x5a6e('0x77')](0xb),_0x50756c=_0x299bff['toLowerCase'](),_0x4b8f58=_0x50756c[_0x5a6e('0x77')](0x0,0x3)+_0x5a6e('0x4a'),_0x4bfbba='table'+_0x299bff,_0x1fd4dd=_0x5a6e('0x4d')+_0x299bff,_0x375eaf=_0x5a6e('0x7d')+_0x299bff;_0x16fa90['enableCommand'](_0x1f37c4,()=>{_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x39')](_0x59514a=>{const _0x372ae2=_0x58916b['getSelectionAffectedTableCells'](_0x3d53de),_0x499f3b=_0x372ae2[0x0][_0x5a6e('0x15')]('table');let _0x42a67a;if(_0x5a6e('0x20')==_0x1f37c4){const _0x57f9cb=_0x58916b[_0x5a6e('0x1f')](_0x372ae2);_0x42a67a={'startRow':_0x57f9cb['first'],'endRow':_0x57f9cb[_0x5a6e('0x2a')],'includeAllSlots':!0x0};}else{const _0x158544=_0x58916b['getColumnIndexes'](_0x372ae2);_0x42a67a={'startColumn':_0x158544[_0x5a6e('0x5d')],'endColumn':_0x158544[_0x5a6e('0x2a')],'includeAllSlots':!0x0};}const _0xe53e1f=_0x58916b[_0x5a6e('0x2e')](_0x499f3b,_0x42a67a),_0x3086e7=Array[_0x5a6e('0x71')](_0xe53e1f)[_0x5a6e('0x3c')](({cell:_0x332269})=>_0x332269),_0x5d5cc5=se(_0x3086e7[_0x5a6e('0x57')](_0x208677=>_0x208677['hasAttribute'](_0x4b8f58))),_0x172fe9=se(_0x3086e7[_0x5a6e('0x57')](_0x594180=>!_0x594180[_0x5a6e('0x6b')](_0x4b8f58)))['map'](_0x2aa56c=>_0x59514a[_0x5a6e('0x4c')](_0x2aa56c)),_0x1356b4=_0x16fa90[_0x5a6e('0x6f')](_0x172fe9,_0x4bfbba);if(_0x1356b4&&(_0x5a6e('0x2b')==_0x1356b4[_0x5a6e('0x34')]||'tableColumn'==_0x1356b4[_0x5a6e('0x34')])){const _0x14f44c=this['_getSuggestionCoords'](_0x1356b4);for(const _0x2ed263 of _0x5d5cc5){const _0x22f2e4=_0x59514a[_0x5a6e('0x4c')](_0x2ed263),_0xb06df=_0x58916b[_0x5a6e('0x1c')](_0x2ed263),_0x3d9801=_0x2ed263[_0x5a6e('0x3a')](_0x4b8f58)-0x1,_0x3624cc=_0x14f44c[_0x1fd4dd],_0xb8265=_0x14f44c[_0x375eaf];_0x3624cc<=_0xb06df[_0x50756c]&&_0xb06df[_0x50756c]+_0x3d9801<=_0xb8265&&_0x1356b4['addRange'](_0x22f2e4);}}});});}function _0x22cbdc(_0x58d49c){const _0x1a119d=Array['from'](_0x3d53de[_0x5a6e('0x66')]())[_0x5a6e('0x3c')](_0x5ab449=>_0x5799ae[_0x5a6e('0x9')](_0x5ab449));_0x7616af['model']['change'](_0x2563c6=>{const _0x5baf7b=_0x2563c6[_0x5a6e('0x2d')];_0x58d49c=_0x58d49c[_0x5a6e('0x57')](_0x413000=>'$graveyard'!=_0x413000[_0x5a6e('0x72')][_0x5a6e('0x7')]),_0x2563c6[_0x5a6e('0x51')](_0x58d49c),_0x7616af[_0x5a6e('0x67')][_0x5a6e('0x7a')](_0x5a6e('0x20'))[_0x5a6e('0x3e')](),_0x7616af[_0x5a6e('0x50')](_0x5a6e('0x20'),{'forceDefaultExecution':!0x0}),_0x7616af['model'][_0x5a6e('0x73')](()=>{_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x73')](_0x5baf7b,_0x545c7c=>{const _0x2d694a=_0x1a119d['filter'](_0x3d0a4e=>_0x5a6e('0x18')!=_0x3d0a4e[_0x5a6e('0x72')][_0x5a6e('0x7')]);_0x2d694a[_0x5a6e('0x31')]>0x0&&_0x545c7c[_0x5a6e('0x51')](_0x2d694a);for(const _0x2f3bd0 of _0x1a119d)_0x2f3bd0[_0x5a6e('0x28')]();});});});}function _0x371608(_0x236019){_0x7616af[_0x5a6e('0x30')][_0x5a6e('0x39')](_0x3b7f3e=>{const _0x26301c=Array[_0x5a6e('0x71')](_0x3d53de[_0x5a6e('0x66')]())[_0x5a6e('0x3c')](_0x53500f=>_0x5799ae[_0x5a6e('0x9')](_0x53500f)),_0x2b3bd9=[];for(const _0x4bb886 of _0x236019)for(const _0x5deaca of _0x4bb886['getItems']({'shallow':!0x0}))_0x2b3bd9[_0x5a6e('0x0')](_0x5deaca);for(const _0x2a97fb of _0x2b3bd9)_0x5a6e('0x18')!=_0x2a97fb['root'][_0x5a6e('0x7')]&&(_0x3b7f3e['setSelection'](_0x3b7f3e[_0x5a6e('0x14')](_0x2a97fb,0x0)),_0x7616af['commands']['get'](_0x5a6e('0x23'))['refresh'](),_0x7616af['execute'](_0x5a6e('0x23'),{'forceDefaultExecution':!0x0}));const _0x4dc47b=_0x26301c['filter'](_0x449ae5=>_0x5a6e('0x18')!=_0x449ae5[_0x5a6e('0x72')]['rootName']);_0x4dc47b[_0x5a6e('0x31')]>0x0&&_0x3b7f3e[_0x5a6e('0x51')](_0x4dc47b);for(const _0x3c800b of _0x26301c)_0x3c800b[_0x5a6e('0x28')]();});}function _0xc6caaf(_0x11b181,_0x45e121){return _0x45e121[_0x5a6e('0x26')](_0x2f2c72=>_0x11b181[_0x5a6e('0x7f')](_0x3c350b=>_0x3c350b[_0x5a6e('0xb')]['isEqual'](_0x2f2c72['start'])||_0x2f2c72[_0x5a6e('0xb')][_0x5a6e('0x54')](_0x3c350b['start'])));}function _0x42f146(_0x299b2e,_0x1a8251){return _0x299b2e[_0x5a6e('0x7f')](_0x312c62=>_0x1a8251[_0x5a6e('0x7f')](_0xa0d8ab=>_0x312c62[_0x5a6e('0xb')][_0x5a6e('0x19')](_0xa0d8ab[_0x5a6e('0x40')])));}_0x7616af['data']['downcastDispatcher']['on'](_0x5a6e('0x59'),(_0x11fece,_0x4ce57c,_0x41ea71)=>{if(!_0x41ea71[_0x5a6e('0x29')][_0x5a6e('0x21')])return;const _0x155644=_0x4ce57c[_0x5a6e('0x12')];if(!_0x155644)return;const _0x3820b5=_0x41ea71[_0x5a6e('0x36')][_0x5a6e('0x5c')](_0x155644);function _0x3db917(_0x5b9aa3){return Array['isArray'](_0x5b9aa3)?_0x5b9aa3:[_0x5b9aa3];}_0x3820b5&&_0x5a6e('0x1e')===_0x155644[_0x5a6e('0x37')]&&_0x147f43(_0x3820b5,_0x41ea71[_0x5a6e('0x2')],(_0x28ce5a,_0x199808,_0x56c4df)=>_0x56c4df[_0x5a6e('0x44')](_0x3db917(_0x199808[_0x5a6e('0x52')]),_0x28ce5a),(_0x58c216,_0x290e56,_0x423c89)=>_0x423c89['removeClass'](_0x3db917(_0x290e56[_0x5a6e('0x52')]),_0x58c216));},{'priority':_0x5a6e('0x4e')}),_0x16fa90[_0x5a6e('0x7e')][_0x5a6e('0x16')](_0x17d750=>{if('insertion'!=_0x17d750[_0x5a6e('0xf')]&&'deletion'!=_0x17d750[_0x5a6e('0xf')])return;const _0x30979d=_0x17d750[_0x5a6e('0x5e')]();if(null!=_0x30979d&&_0x30979d['is'](_0x5a6e('0xd'),_0x5a6e('0x42'))){if(_0x5a6e('0x45')==_0x17d750[_0x5a6e('0xf')]){const _0x18bdfc=_0x17d750['getItems']()[_0x5a6e('0x57')](_0x916e46=>_0x916e46['is'](_0x5a6e('0x5a')))['map'](_0xfe057a=>_0xfe057a['data']);if(_0x18bdfc['length'])return{'type':'insertion','content':_0x32edce(_0x2cd26c,_0x5a6e('0x6c'),_0x32edce(_0x2cd26c,_0x5a6e('0x43'),'\x22'+_0x18bdfc[_0x5a6e('0x61')]('\x20')+'\x22'))};}if(_0x5a6e('0x63')==_0x17d750['type']){const _0x59b32e=_0x17d750[_0x5a6e('0xe')]()[_0x5a6e('0x57')](_0x139352=>_0x139352['is'](_0x5a6e('0x5a')))[_0x5a6e('0x3c')](_0x390a90=>_0x390a90[_0x5a6e('0x25')]);if(_0x59b32e['length'])return{'type':_0x5a6e('0x63'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x7b'),_0x32edce(_0x2cd26c,_0x5a6e('0x43'),'\x22'+_0x59b32e[_0x5a6e('0x61')]('\x20')+'\x22'))};}}}),_0x16fa90[_0x5a6e('0x7e')]['registerDescriptionCallback'](_0xf0280c=>{if(_0x5a6e('0x2b')==_0xf0280c[_0x5a6e('0x34')]){const _0x2b129d=_0xf0280c[_0x5a6e('0xe')]()['filter'](_0x207db2=>_0x207db2['is']('$textProxy'))['map'](_0x2bd87d=>_0x2bd87d[_0x5a6e('0x25')]),_0x47474a=this[_0x5a6e('0x22')](_0xf0280c),_0x5c1566=_0x47474a['maxRow']-_0x47474a['minRow']+0x1;if(_0x5a6e('0x45')==_0xf0280c[_0x5a6e('0xf')])return _0x2b129d[_0x5a6e('0x31')]?{'type':_0x5a6e('0x45'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x6c'),_0x32edce(_0x2cd26c,_0x5a6e('0x60'),[_0x5c1566,'\x22'+_0x2b129d[_0x5a6e('0x61')]('\x20')+'\x22']))}:{'type':_0x5a6e('0x45'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x6c'),_0x32edce(_0x2cd26c,_0x5a6e('0xa'),_0x5c1566))};if(_0x5a6e('0x63')==_0xf0280c[_0x5a6e('0xf')])return _0x2b129d[_0x5a6e('0x31')]?{'type':_0x5a6e('0x63'),'content':_0x32edce(_0x2cd26c,'*Remove:*\x20%0',_0x32edce(_0x2cd26c,_0x5a6e('0x60'),[_0x5c1566,'\x22'+_0x2b129d['join']('\x20')+'\x22']))}:{'type':_0x5a6e('0x63'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x7b'),_0x32edce(_0x2cd26c,_0x5a6e('0xa'),_0x5c1566))};}if(_0x5a6e('0x6')==_0xf0280c[_0x5a6e('0x34')]){const _0x2b4be2=_0xf0280c[_0x5a6e('0xe')]()[_0x5a6e('0x57')](_0xf32a45=>_0xf32a45['is'](_0x5a6e('0x5a')))[_0x5a6e('0x3c')](_0x418a94=>_0x418a94['data']),_0xa8aef0=this['_getSuggestionCoords'](_0xf0280c),_0x48604e=_0xa8aef0['maxColumn']-_0xa8aef0[_0x5a6e('0x8')]+0x1;if('insertion'==_0xf0280c[_0x5a6e('0xf')])return _0x2b4be2[_0x5a6e('0x31')]?{'type':_0x5a6e('0x45'),'content':_0x32edce(_0x2cd26c,'*Insert:*\x20%0',_0x32edce(_0x2cd26c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x48604e,'\x22'+_0x2b4be2[_0x5a6e('0x61')]('\x20')+'\x22']))}:{'type':_0x5a6e('0x45'),'content':_0x32edce(_0x2cd26c,'*Insert:*\x20%0',_0x32edce(_0x2cd26c,_0x5a6e('0x75'),_0x48604e))};if('deletion'==_0xf0280c['type'])return _0x2b4be2[_0x5a6e('0x31')]?{'type':_0x5a6e('0x63'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x7b'),_0x32edce(_0x2cd26c,_0x5a6e('0x69'),[_0x48604e,'\x22'+_0x2b4be2[_0x5a6e('0x61')]('\x20')+'\x22']))}:{'type':_0x5a6e('0x63'),'content':_0x32edce(_0x2cd26c,_0x5a6e('0x7b'),_0x32edce(_0x2cd26c,_0x5a6e('0x75'),_0x48604e))};}}),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x45'),_0x5a6e('0x2b'),'discard',_0x22cbdc),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')]('deletion','tableRow','accept',_0x22cbdc),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x45'),_0x5a6e('0x6'),_0x5a6e('0x5f'),_0x371608),_0x16fa90[_0x5a6e('0x24')]['registerCustomCallback']('deletion',_0x5a6e('0x6'),_0x5a6e('0x68'),_0x371608),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x45'),_0x5a6e('0x6'),_0x5a6e('0x61'),_0xc6caaf),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x63'),_0x5a6e('0x6'),_0x5a6e('0x61'),_0xc6caaf),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x45'),'tableRow',_0x5a6e('0x61'),_0x42f146),_0x16fa90[_0x5a6e('0x24')][_0x5a6e('0x78')](_0x5a6e('0x63'),_0x5a6e('0x2b'),_0x5a6e('0x61'),_0x42f146);}[_0x5a6e('0x11')](){const _0xdf5495=this['editor'],_0x3289e4=_0xdf5495['model']['document'][_0x5a6e('0x3f')];return(_0x4224a0,_0xc17a33)=>{_0xdf5495[_0x5a6e('0x30')][_0x5a6e('0x39')](_0x1b8b83=>{const {commandName:_0x384a29,commandParams:_0x5d71c6}=_0xc17a33;let _0x3525f2=_0x4224a0[0x0]['end'][_0x5a6e('0x1a')];_0x5d71c6&&_0x5d71c6[0x0]&&!0x1===_0x5d71c6[0x0][_0x5a6e('0x47')]&&(_0x3525f2=_0x4224a0[0x0]['start']['nodeAfter']);const _0x4bea4b=_0x1b8b83[_0x5a6e('0x41')](_0x3525f2);if(_0x5a6e('0x18')==_0x4bea4b[_0x5a6e('0x72')][_0x5a6e('0x7')])return;const _0x3ac3cb=Array[_0x5a6e('0x71')](_0x3289e4[_0x5a6e('0x66')]())[_0x5a6e('0x3c')](_0x35488d=>_0x5799ae[_0x5a6e('0x9')](_0x35488d));_0x1b8b83[_0x5a6e('0x51')](_0x4bea4b),_0xdf5495[_0x5a6e('0x67')][_0x5a6e('0x7a')](_0x384a29)[_0x5a6e('0x3e')](),_0x5d71c6[_0x5a6e('0x0')]({'forceDefaultExecution':!0x0}),_0xdf5495[_0x5a6e('0x50')](_0x384a29,..._0x5d71c6);const _0x362d6d=_0x3ac3cb['filter'](_0x474970=>_0x5a6e('0x18')!=_0x474970[_0x5a6e('0x72')][_0x5a6e('0x7')]);_0x362d6d[_0x5a6e('0x31')]>0x0&&_0x1b8b83[_0x5a6e('0x51')](_0x362d6d);for(const _0x242446 of _0x3ac3cb)_0x242446['detach']();});};}['_getCoordsForCells'](_0x48717b){const _0x572df2=this[_0x5a6e('0x6e')][_0x5a6e('0x49')][_0x5a6e('0x7a')](_0x5a6e('0x80'));let _0x59181f=Number[_0x5a6e('0x46')],_0x4e4727=Number[_0x5a6e('0x81')],_0x246866=Number[_0x5a6e('0x46')],_0x385b7b=Number[_0x5a6e('0x81')];for(const _0x47aa12 of _0x48717b){if(_0x5a6e('0x18')==_0x47aa12[_0x5a6e('0x72')][_0x5a6e('0x7')])continue;const {row:_0x4c4145,column:_0xa1d486}=_0x572df2[_0x5a6e('0x1c')](_0x47aa12),_0x986b6a=_0x47aa12['hasAttribute'](_0x5a6e('0x58'))?_0x47aa12[_0x5a6e('0x3a')](_0x5a6e('0x58'))-0x1:0x0,_0x563981=_0x47aa12[_0x5a6e('0x6b')]('colspan')?_0x47aa12[_0x5a6e('0x3a')](_0x5a6e('0x53'))-0x1:0x0;_0x59181f=_0x4c4145<_0x59181f?_0x4c4145:_0x59181f,_0x4e4727=_0x4c4145+_0x986b6a>_0x4e4727?_0x4c4145+_0x986b6a:_0x4e4727,_0x246866=_0xa1d486<_0x246866?_0xa1d486:_0x246866,_0x385b7b=_0xa1d486+_0x563981>_0x385b7b?_0xa1d486+_0x563981:_0x385b7b;}return{'minRow':_0x59181f,'maxRow':_0x4e4727,'minColumn':_0x246866,'maxColumn':_0x385b7b};}[_0x5a6e('0x79')](){const _0x4f6e0f=this['editor'],_0x1dde68=_0x4f6e0f['plugins'][_0x5a6e('0x7a')](_0x5a6e('0x5b')),_0x4aead3=_0x4f6e0f[_0x5a6e('0x49')][_0x5a6e('0x7a')]('TableUtils');_0x4f6e0f['model'][_0x5a6e('0x35')]['on']('change:data',()=>{const _0x1e19a4=Array[_0x5a6e('0x71')](_0x4f6e0f[_0x5a6e('0x30')][_0x5a6e('0x35')]['differ'][_0x5a6e('0x55')]());for(const {name:_0x3bacc5,data:_0x2546f4}of _0x1e19a4){const {group:_0x14d177,id:_0x48c15c,subType:_0x2104e1}=_0x1dde68['_splitMarkerName'](_0x3bacc5);if(_0x5a6e('0x6a')!=_0x14d177)continue;if(null!=_0x2546f4[_0x5a6e('0x5')])continue;const _0x47243b=_0x1dde68[_0x5a6e('0x2c')](_0x48c15c);this['_tablePostFixingSubtypes'][_0x5a6e('0x32')](_0x2104e1)&&this[_0x5a6e('0x4b')]['add'](_0x47243b);}},{'priority':'low'});const _0x1612db=(_0x407103,_0x1d4196)=>{let _0x44c7ac=!0x1;const _0x4a2e3a=_0x1d4196['createRangeOn'](_0x407103),_0x55cc7d=_0x407103[_0x5a6e('0x15')]('table'),_0x4f7bf6=_0x4aead3[_0x5a6e('0x1c')](_0x407103);for(const _0x19f192 of this[_0x5a6e('0x4b')]){const _0x585a27=_0x19f192['subType'],_0x366e4a=_0x585a27[_0x5a6e('0x38')](_0x5a6e('0x1')),_0x4996bf=_0x585a27[_0x5a6e('0x77')](_0x366e4a?0xa:0x5),_0x215755=_0x4996bf[_0x5a6e('0x33')](),_0x189e4b=_0x215755[_0x5a6e('0x77')](0x0,0x3)+_0x5a6e('0x4a'),_0xc4678c=_0x5a6e('0x4d')+_0x4996bf,_0x4ea4a0=_0x5a6e('0x7d')+_0x4996bf;if(!_0x19f192[_0x5a6e('0x3b')])continue;if(_0x55cc7d!=_0x19f192[_0x5a6e('0x13')]()[_0x5a6e('0x40')][_0x5a6e('0x15')](_0x5a6e('0x42')))continue;if(_0x19f192[_0x5a6e('0x82')](_0x4a2e3a))continue;const _0x929f06=_0x407103[_0x5a6e('0x6b')](_0x189e4b)?_0x407103['getAttribute'](_0x189e4b)-0x1:0x0,_0x3c7a59=this[_0x5a6e('0x22')](_0x19f192),_0x5b2bab=_0x3c7a59[_0xc4678c],_0x76fac0=_0x3c7a59[_0x4ea4a0];_0x5b2bab<=_0x4f7bf6[_0x215755]&&_0x4f7bf6[_0x215755]+_0x929f06<=_0x76fac0&&(_0x19f192[_0x5a6e('0x65')](_0x4a2e3a),_0x44c7ac=!0x0);}return _0x44c7ac;};_0x4f6e0f[_0x5a6e('0x30')]['document']['registerPostFixer'](_0x20062b=>{let _0xe0c7ea=!0x1;for(const _0x2526dd of _0x4f6e0f[_0x5a6e('0x30')][_0x5a6e('0x35')]['differ'][_0x5a6e('0x2f')]())if(_0x5a6e('0x3')==_0x2526dd[_0x5a6e('0xf')]){if(_0x5a6e('0x2b')==_0x2526dd[_0x5a6e('0x37')])for(const _0x2ae12c of _0x2526dd[_0x5a6e('0x6d')][_0x5a6e('0x64')][_0x5a6e('0x4f')]())_0xe0c7ea=_0xe0c7ea||_0x1612db(_0x2ae12c,_0x20062b);else'tableCell'==_0x2526dd[_0x5a6e('0x37')]&&(_0xe0c7ea=_0xe0c7ea||_0x1612db(_0x2526dd[_0x5a6e('0x6d')][_0x5a6e('0x64')],_0x20062b));}return _0xe0c7ea;});}['_getSuggestionCoords'](_0x543ad2){return this[_0x5a6e('0x1b')](_0x543ad2['getRanges']()[_0x5a6e('0x3c')](_0x4c6a22=>_0x4c6a22[_0x5a6e('0x40')][_0x5a6e('0x64')]));}}function se(_0x385987){return Array[_0x5a6e('0x71')](new Set(_0x385987)['values']());}