@ckeditor/ckeditor5-track-changes 35.1.0 → 35.2.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 (153) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -1
  49. package/lang/translations/ar.po +4 -0
  50. package/lang/translations/az.po +4 -0
  51. package/lang/translations/bg.po +4 -0
  52. package/lang/translations/bn.po +4 -0
  53. package/lang/translations/ca.po +4 -0
  54. package/lang/translations/cs.po +4 -0
  55. package/lang/translations/da.po +4 -0
  56. package/lang/translations/de.po +4 -0
  57. package/lang/translations/el.po +4 -0
  58. package/lang/translations/en-au.po +4 -0
  59. package/lang/translations/en.po +4 -0
  60. package/lang/translations/es.po +4 -0
  61. package/lang/translations/et.po +4 -0
  62. package/lang/translations/fi.po +4 -0
  63. package/lang/translations/fr.po +4 -0
  64. package/lang/translations/gl.po +4 -0
  65. package/lang/translations/he.po +4 -0
  66. package/lang/translations/hi.po +4 -0
  67. package/lang/translations/hr.po +4 -0
  68. package/lang/translations/hu.po +4 -0
  69. package/lang/translations/id.po +4 -0
  70. package/lang/translations/it.po +4 -0
  71. package/lang/translations/ja.po +4 -0
  72. package/lang/translations/ko.po +27 -23
  73. package/lang/translations/lt.po +4 -0
  74. package/lang/translations/lv.po +4 -0
  75. package/lang/translations/ms.po +4 -0
  76. package/lang/translations/nl.po +4 -0
  77. package/lang/translations/no.po +4 -0
  78. package/lang/translations/pl.po +4 -0
  79. package/lang/translations/pt-br.po +4 -0
  80. package/lang/translations/pt.po +4 -0
  81. package/lang/translations/ro.po +4 -0
  82. package/lang/translations/ru.po +4 -0
  83. package/lang/translations/sk.po +4 -0
  84. package/lang/translations/sr-latn.po +4 -0
  85. package/lang/translations/sr.po +4 -0
  86. package/lang/translations/sv.po +4 -0
  87. package/lang/translations/th.po +4 -0
  88. package/lang/translations/tk.po +4 -0
  89. package/lang/translations/tr.po +4 -0
  90. package/lang/translations/tt.po +6 -2
  91. package/lang/translations/uk.po +4 -0
  92. package/lang/translations/ur.po +4 -0
  93. package/lang/translations/vi.po +4 -0
  94. package/lang/translations/zh-cn.po +4 -0
  95. package/lang/translations/zh.po +4 -0
  96. package/package.json +4 -4
  97. package/src/commands/acceptallsuggestionscommand.js +1 -1
  98. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardallsuggestionscommand.js +1 -1
  101. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  102. package/src/commands/discardsuggestioncommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/integrations/alignment.js +1 -1
  105. package/src/integrations/basicstyles.js +1 -1
  106. package/src/integrations/blockquote.js +1 -1
  107. package/src/integrations/ckbox.js +1 -1
  108. package/src/integrations/codeblock.js +1 -1
  109. package/src/integrations/comments.js +1 -1
  110. package/src/integrations/deletecommand.js +1 -1
  111. package/src/integrations/entercommand.js +1 -1
  112. package/src/integrations/font.js +1 -1
  113. package/src/integrations/heading.js +1 -1
  114. package/src/integrations/highlight.js +1 -1
  115. package/src/integrations/horizontalline.js +1 -1
  116. package/src/integrations/htmlembed.js +1 -1
  117. package/src/integrations/image.js +1 -1
  118. package/src/integrations/importword.js +23 -0
  119. package/src/integrations/indent.js +1 -1
  120. package/src/integrations/inputcommand.js +1 -1
  121. package/src/integrations/link.js +1 -1
  122. package/src/integrations/list.js +1 -1
  123. package/src/integrations/mediaembed.js +1 -1
  124. package/src/integrations/mention.js +1 -1
  125. package/src/integrations/pagebreak.js +1 -1
  126. package/src/integrations/paragraph.js +1 -1
  127. package/src/integrations/removeformat.js +1 -1
  128. package/src/integrations/restrictededitingmode.js +1 -1
  129. package/src/integrations/shiftentercommand.js +1 -1
  130. package/src/integrations/standardeditingmode.js +1 -1
  131. package/src/integrations/style.js +1 -1
  132. package/src/integrations/table.js +1 -1
  133. package/src/integrations/tableclipboard.js +1 -1
  134. package/src/integrations/tableheadings.js +1 -1
  135. package/src/integrations/tablemergesplit.js +1 -1
  136. package/src/integrations/title.js +1 -1
  137. package/src/integrations/undo.js +1 -1
  138. package/src/integrations/utils.js +1 -1
  139. package/src/suggestion.js +1 -1
  140. package/src/suggestiondescriptionfactory.js +1 -1
  141. package/src/trackchanges.js +1 -1
  142. package/src/trackchangesdata.js +1 -1
  143. package/src/trackchangesediting.js +1 -1
  144. package/src/trackchangesui.js +1 -1
  145. package/src/ui/suggestioncontroller.js +1 -1
  146. package/src/ui/view/basesuggestionthreadview.js +1 -1
  147. package/src/ui/view/suggestionthreadview.js +1 -1
  148. package/src/utils/common-translations.js +1 -1
  149. package/src/utils/getrangesofblockgroups.js +1 -1
  150. package/src/utils/getselectedsuggestions.js +1 -1
  151. package/src/utils/hashobject.js +1 -1
  152. package/src/utils/normalizedescription.js +1 -1
  153. package/src/utils/sortsuggestions.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x248c=['editing','ck-suggestion-marker','push','tablePasteColumn','deletionRanges','getSuggestions','wrap','createRange','tablePasteCell','registerCustomCallback','suggestion-td','markerToHighlight','from','removeMarker','columnInsertionIndexes','dataDowncast','has','document','add','some','remove','createPositionBefore','tableCellBorderColor','getAttributes','low','getChild','reduce','redo','deletion','_splitMarkerName','end','selection','isEqual','clipboardOutput','high','_createdBatches','stop','map','updateMarker','*Replace\x20table\x20cells*','differ','suggestionUnloaded','model','schema','ck-suggestion-marker--active','options','root','length','getRange','tableCellSuggestion','element','every','removeRows','getAllAdjacentSuggestions','getContainedElement','set','tableCell','insertion','nextSibling','entries','for','return','TableClipboard','discard','locale','_getCoordsForCells','get','next','fromEntries','requires','join','start','getChildren','register','move','endColumn','plugins','includes','author','getColumns','getSelectionAffectedTableCells','filter','fill','attributes','type','oldRange','activeMarkers','getColumnIndexes','rowInsertionIndexes','cells','isInContent','first','name','formatBlock','hasSuggestion','createRangeOn','tablePaste','_tablePostFixingSubtypes','findAncestor','value','createRangeIn','suggestion:formatBlock:tablePasteCell','_isForcedDefaultExecutionBlock','markerName','tablePasteRow','removeColumns','getRanges','accept','getChangedMarkers','forceDefaultExecution','insertContent','getMarkers','cell','getChanges','listenTo','previousSibling','insert','tableCellHorizontalAlignment','tableCellPadding','tableCellBackgroundColor','keys','startsWith','editor','Users','insertColumns','containsRange','tablePasteChainId','getSuggestionCallback','_suggestionFactory','find','row','createTableWalker','afterInit','nodeAfter','rows','commands','ck-suggestion-marker-insertion','createElement','suggestion','previous','last','registerDescriptionCallback','insertionRanges','getItems','isEmpty','tableCellBorderWidth','$graveyard','markMultiRangeInsertion','trackChanges','unwrap','table','change','columns','position','registerPostFixer','getRows','_replaceTableSlotCell','getRowIndexes','markerAttributes','setAttribute','conversion','editingDowncast','newRange','subType','setAttributes'];(function(_0x3b84d2,_0x248ca2){const _0x591f38=function(_0x6d9624){while(--_0x6d9624){_0x3b84d2['push'](_0x3b84d2['shift']());}};_0x591f38(++_0x248ca2);}(_0x248c,0x15e));const _0x591f=function(_0x3b84d2,_0x248ca2){_0x3b84d2=_0x3b84d2-0x0;let _0x591f38=_0x248c[_0x3b84d2];return _0x591f38;};import{getTranslation as _0x12b938}from'../utils/common-translations';import{Plugin as _0x29f0b1}from'ckeditor5/src/core';import _0x5e4f7b from'./table';import{uid as _0xe3e488,priorities as _0x550201}from'ckeditor5/src/utils';const oe=[_0x591f('0x7d'),_0x591f('0x2'),'tableCellBorderStyle',_0x591f('0x61'),'tableCellVerticalAlignment',_0x591f('0x63'),_0x591f('0x62')],ne=Object[_0x591f('0x30')](oe['map'](_0x28f6dc=>[_0x28f6dc,null]));export default class lt extends _0x29f0b1{static get[_0x591f('0x31')](){return[_0x5e4f7b];}[_0x591f('0x70')](){const _0x1eb6a0=this[_0x591f('0x66')];if(!_0x1eb6a0[_0x591f('0x38')][_0x591f('0xa1')]('TableClipboard'))return;const _0x552750=_0x1eb6a0['plugins'][_0x591f('0x2e')]('TrackChangesEditing'),_0x3efc54=_0x1eb6a0[_0x591f('0x38')][_0x591f('0x2e')]('TableUtils'),_0x33f279=_0x1eb6a0['plugins'][_0x591f('0x2e')](_0x5e4f7b),_0x531494=_0x1eb6a0[_0x591f('0x38')][_0x591f('0x2e')](_0x591f('0x2a'));_0x33f279[_0x591f('0x4d')]['push'](_0x591f('0x54'),'tablePasteColumn'),_0x1eb6a0['model'][_0x591f('0x17')][_0x591f('0x35')](_0x591f('0x1d'),{'allowIn':'tableCell','allowContentOf':_0x591f('0x24'),'isLimit':!0x0}),_0x1eb6a0[_0x591f('0x8c')]['elementToElement']({'model':_0x591f('0x1d'),'view':_0x591f('0x9b')});let _0xfe0770=null;_0x1eb6a0[_0x591f('0x16')]['on'](_0x591f('0x5a'),(_0x11e7b7,_0x4261fb)=>{const [_0x93026c,_0x57c001]=_0x4261fb,_0x459b50=_0x4261fb[_0x4261fb['length']-0x1];_0x459b50&&_0x459b50[_0x591f('0x59')]||_0x552750[_0x591f('0x52')]||this[_0x591f('0x66')][_0x591f('0x73')]['get'](_0x591f('0x80'))[_0x591f('0x4f')]&&function(_0x798638,_0x583773,_0xe8de6e,_0x5f5878,_0x30595b){if(_0x583773&&!_0x583773['is']('documentSelection'))return!0x1;const _0x2307cb=_0x30595b['getTableIfOnlyTableInContent'](_0x798638,_0xe8de6e);if(!_0x2307cb||!se(_0x2307cb,null,_0x5f5878))return!0x1;const _0x43c22d=_0x5f5878[_0x591f('0x3c')](_0xe8de6e[_0x591f('0xa2')][_0x591f('0xb')]);if(!_0x43c22d[_0x591f('0x1b')])return!0x1;const _0x409d71=_0x43c22d[0x0][_0x591f('0x4e')](_0x591f('0x82')),_0x297745=_0x5f5878[_0x591f('0x89')](_0x43c22d),_0x56bec9=_0x5f5878[_0x591f('0x43')](_0x43c22d),_0x370d41={'startRow':_0x297745[_0x591f('0x47')],'endRow':_0x297745[_0x591f('0x78')],'startColumn':_0x56bec9[_0x591f('0x47')],'endColumn':_0x56bec9[_0x591f('0x78')]};return 0x1==_0x43c22d[_0x591f('0x1b')]&&(_0x370d41['endRow']+=_0x5f5878[_0x591f('0x87')](_0x2307cb)-0x1,_0x370d41[_0x591f('0x37')]+=_0x5f5878[_0x591f('0x3b')](_0x2307cb)-0x1),se(_0x409d71,_0x370d41,_0x5f5878);}(_0x93026c,_0x57c001,_0x1eb6a0[_0x591f('0x16')],_0x3efc54,_0x531494)&&(_0x11e7b7[_0x591f('0x10')](),_0xfe0770={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1eb6a0['model'][_0x591f('0x83')](()=>{_0x1eb6a0[_0x591f('0x16')][_0x591f('0x5a')](_0x4261fb[0x0],_0x4261fb[0x1],_0x4261fb[0x2],_0x4261fb[0x3],{'forceDefaultExecution':!0x0});const _0x566a0f=_0xe3e488(),{rowInsertionRanges:_0x17f918,columnInsertionRanges:_0x4788da,insertionRanges:_0x1bdb2e,deletionRanges:_0x36eaa0,cells:_0x151c55}=_0xfe0770;_0x17f918['length']&&_0x552750[_0x591f('0x7f')](_0x17f918,_0x591f('0x54'),{'tablePasteChainId':_0x566a0f}),_0x4788da['length']&&_0x552750['markMultiRangeInsertion'](_0x4788da,_0x591f('0x94'),{'tablePasteChainId':_0x566a0f}),_0x1bdb2e[_0x591f('0x1b')]&&_0x552750[_0x591f('0x7f')](_0x1bdb2e,_0x591f('0x4c'),{'tablePasteChainId':_0x566a0f,'skipNestingCheck':!0x0}),_0x36eaa0[_0x591f('0x1b')]&&_0x552750['markMultiRangeDeletion'](_0x36eaa0,_0x591f('0x4c'),{'tablePasteChainId':_0x566a0f,'skipNestingCheck':!0x0});const _0x256507=_0x552750['markMultiRangeBlockFormat'](_0x151c55[_0x591f('0x11')](({element:_0x531c17})=>_0x531c17),{'formatGroupId':_0xe3e488()},[],_0x591f('0x99'),{'tablePasteChainId':_0x566a0f});if(_0x256507){const _0x950231=_0x256507[_0x591f('0x5b')](),_0x592da7=[];for(const {element:_0x1032a2,attributes:_0xf945bc}of _0x151c55){if(!_0xf945bc)continue;const _0xaa4ae5=_0x1eb6a0[_0x591f('0x16')][_0x591f('0x4b')](_0x1032a2),_0x3c0d00=_0x950231[_0x591f('0x6d')](_0x40e610=>_0x40e610[_0x591f('0x1c')]()[_0x591f('0xc')](_0xaa4ae5));_0x3c0d00&&_0x592da7['push']([_0x3c0d00[_0x591f('0x48')],_0xf945bc]);}_0x592da7[_0x591f('0x1b')]&&_0x256507[_0x591f('0x8b')]('markerAttributes',Object[_0x591f('0x30')](_0x592da7));}_0xfe0770=null;}));},{'priority':_0x550201['high']+0xa}),_0x1eb6a0[_0x591f('0x38')][_0x591f('0x2e')](_0x591f('0x2a'))['on'](_0x591f('0x88'),(_0x489223,_0x1ed45f)=>{const [_0x19631f,_0x5952b4,,_0x2b586e]=_0x1ed45f;if(!_0xfe0770)return;_0x489223[_0x591f('0x10')]();const _0x13e551=_0x19631f[_0x591f('0x5c')],_0x2296ba=_0x5952b4,_0xdb453f=le(_0x13e551),_0x3793dd=le(_0x2296ba);_0x489223[_0x591f('0x29')]=_0x13e551;let _0xbeea0f=null,_0x5869f2=null;if(_0x3793dd||_0xdb453f){if(_0xdb453f&&!_0x3793dd){_0x2b586e[_0x591f('0x0')](_0x13e551[_0x591f('0x5')](0x0));for(const _0x331a7b of Array[_0x591f('0x9d')](_0x2296ba['getChildren']()))_0x2b586e[_0x591f('0x60')](_0x331a7b,_0x13e551,_0x591f('0xa'));const _0x51273c=_0xfe0770[_0x591f('0x44')][_0x591f('0x39')](_0x19631f[_0x591f('0x6e')]),_0x283ac9=_0xfe0770[_0x591f('0x9f')]['includes'](_0x19631f['column']);_0x51273c||_0x283ac9||(_0xbeea0f=_0x2b586e[_0x591f('0x50')](_0x13e551));}else _0x3793dd&&!_0xdb453f&&(_0x5869f2=_0x2b586e[_0x591f('0x50')](_0x13e551));}else{const _0x24da61=_0x2b586e['createElement'](_0x591f('0x1d')),_0x1864c0=_0x2b586e[_0x591f('0x75')](_0x591f('0x1d'));_0x2b586e[_0x591f('0x97')](_0x2b586e[_0x591f('0x50')](_0x13e551),_0x1864c0),_0x2b586e[_0x591f('0x60')](_0x24da61,_0x13e551,0x0);for(const _0x38f149 of Array[_0x591f('0x9d')](_0x2296ba[_0x591f('0x34')]()))_0x2b586e[_0x591f('0x60')](_0x38f149,_0x24da61,_0x591f('0xa'));_0xbeea0f=_0x2b586e[_0x591f('0x4b')](_0x24da61),_0x5869f2=_0x2b586e[_0x591f('0x4b')](_0x1864c0);}const _0x228cd9=Array[_0x591f('0x9d')](_0x2296ba[_0x591f('0x3')]())[_0x591f('0x3d')](([_0x4048f5])=>oe[_0x591f('0x39')](_0x4048f5));_0xfe0770[_0x591f('0x45')]['push']({'element':_0x13e551,'attributes':_0x228cd9[_0x591f('0x1b')]?Object[_0x591f('0x30')](_0x228cd9):null}),_0xbeea0f&&_0xfe0770[_0x591f('0x7a')]['push'](_0xbeea0f),_0x5869f2&&_0xfe0770[_0x591f('0x95')][_0x591f('0x93')](_0x5869f2);},{'priority':_0x591f('0xe')}),_0x3efc54['on'](_0x591f('0x68'),(_0x5d624a,_0x58dba2)=>{const [_0x430292,_0x395b62={}]=_0x58dba2;if(!_0xfe0770)return;const _0x1163ff=_0x395b62['at']||0x0,_0x57361d=_0x395b62[_0x591f('0x84')]||0x1;_0xfe0770[_0x591f('0x9f')]=new Array(_0x57361d)[_0x591f('0x3e')](_0x1163ff)[_0x591f('0x11')]((_0x5d461c,_0x4d03d3)=>_0x5d461c+_0x4d03d3);for(const {cell:_0x44cea4}of _0x3efc54['createTableWalker'](_0x430292,{'startColumn':_0x1163ff,'endColumn':_0x1163ff+_0x57361d-0x1}))_0xfe0770['columnInsertionRanges']['push'](_0x1eb6a0['model']['createRangeOn'](_0x44cea4));},{'priority':_0x591f('0x4')}),_0x3efc54['on']('insertRows',(_0x57b313,_0x4f4f3b)=>{const [_0x2f8ece,_0x4483cb={}]=_0x4f4f3b;if(!_0xfe0770)return;const _0x2abcea=_0x4483cb['at']||0x0,_0x2d9b45=_0x4483cb[_0x591f('0x72')]||0x1;_0xfe0770[_0x591f('0x44')]=new Array(_0x2d9b45)[_0x591f('0x3e')](_0x2abcea)['map']((_0x4f12f3,_0x3bd55a)=>_0x4f12f3+_0x3bd55a);for(const {cell:_0xb5f29c}of _0x3efc54[_0x591f('0x6f')](_0x2f8ece,{'startRow':_0x2abcea,'endRow':_0x2abcea+_0x2d9b45-0x1}))_0xfe0770['rowInsertionRanges'][_0x591f('0x93')](_0x1eb6a0[_0x591f('0x16')][_0x591f('0x4b')](_0xb5f29c));},{'priority':_0x591f('0x4')}),_0x552750['_descriptionFactory'][_0x591f('0x79')](_0x3c550e=>{if(_0x3c550e[_0x591f('0x8f')]&&_0x3c550e[_0x591f('0x8f')][_0x591f('0x65')](_0x591f('0x4c')))return _0x3c550e['previous']?{}:{'type':'insertion','content':_0x12b938(_0x1eb6a0[_0x591f('0x2c')],_0x591f('0x13'))};});const _0x43a301=()=>{};for(const _0x2682d6 of['tablePaste',_0x591f('0x94'),'tablePasteRow',_0x591f('0x99')])_0x552750['_suggestionFactory'][_0x591f('0x9a')](_0x591f('0x25'),_0x2682d6,_0x591f('0x32'),_0x43a301),_0x552750[_0x591f('0x6c')][_0x591f('0x9a')](_0x591f('0x8'),_0x2682d6,'join',_0x43a301);_0x552750[_0x591f('0x6c')]['registerCustomCallback'](_0x591f('0x49'),_0x591f('0x99'),_0x591f('0x2b'),_0x43a301),_0x552750[_0x591f('0x6c')][_0x591f('0x9a')](_0x591f('0x49'),'tablePasteCell','accept',(_0x49a36a,_0x19c635,_0x5be9f4)=>{const _0x87e493=_0x49a36a[_0x591f('0x11')](_0x4f9ff2=>_0x4f9ff2['getContainedElement']())[_0x591f('0x3d')](_0x4bfd13=>_0x4bfd13),_0x162918=new Map(_0x87e493[_0x591f('0x11')](_0x4a1681=>[_0x4a1681,null]));if(_0xfe0770)for(const {element:_0x2e9f5b,attributes:_0x39608}of _0xfe0770[_0x591f('0x45')])_0x39608&&_0x162918['set'](_0x2e9f5b,_0x39608);else{if(_0x5be9f4&&_0x5be9f4[_0x591f('0x8a')])for(const [_0x419df4,_0x1044ab]of Object[_0x591f('0x27')](_0x5be9f4['markerAttributes'])){const _0x23b32e=_0x1eb6a0['model']['markers'][_0x591f('0x2e')](_0x419df4),_0x2b5815=_0x23b32e?_0x23b32e[_0x591f('0x1c')]()['getContainedElement']():null;_0x2b5815&&_0x162918[_0x591f('0x23')](_0x2b5815,_0x1044ab);}}_0x1eb6a0[_0x591f('0x16')][_0x591f('0x83')](_0x128772=>{for(const [_0x472cd2,_0x49740e]of _0x162918)_0x128772[_0x591f('0x90')]({...ne,..._0x49740e},_0x472cd2);});});const _0x329902=(_0x5c06c9,_0x19a0c6)=>{_0x552750[_0x591f('0x6c')][_0x591f('0x9a')](_0x5c06c9,_0x591f('0x4c'),_0x19a0c6,(_0x921c0b,_0x47919f,_0x455475)=>{_0x1eb6a0[_0x591f('0x16')][_0x591f('0x83')](_0x5d031b=>{const _0x1dadc5=[];for(const _0x25aea2 of _0x921c0b){const _0x133a72=_0x25aea2[_0x591f('0x33')][_0x591f('0x71')];_0x133a72['is'](_0x591f('0x1e'),_0x591f('0x1d'))&&_0x1dadc5['push'](_0x133a72);}_0x552750[_0x591f('0x6c')][_0x591f('0x6b')](_0x5c06c9,null,_0x19a0c6)(_0x921c0b,_0x47919f,_0x455475);for(const _0x3d1fec of _0x1dadc5)_0x591f('0x7e')!=_0x3d1fec[_0x591f('0x1a')]['rootName']&&_0x5d031b[_0x591f('0x81')](_0x3d1fec);});});};_0x329902(_0x591f('0x25'),'accept'),_0x329902(_0x591f('0x25'),_0x591f('0x2b')),_0x329902(_0x591f('0x8'),_0x591f('0x57')),_0x329902('deletion','discard'),_0x552750[_0x591f('0x6c')]['registerCustomCallback'](_0x591f('0x25'),_0x591f('0x54'),_0x591f('0x2b'),_0x55fd76=>{const _0x3720ad=_0x55fd76['map'](_0xa91ffa=>_0xa91ffa[_0x591f('0x22')]()),_0x42ea47=_0x3720ad[0x0][_0x591f('0x4e')]('table'),{minRow:_0x9e86fc,maxRow:_0x5f4161}=_0x33f279[_0x591f('0x2d')](_0x3720ad);_0x3efc54[_0x591f('0x20')](_0x42ea47,{'at':_0x9e86fc,'rows':_0x5f4161-_0x9e86fc+0x1});}),_0x552750['_suggestionFactory'][_0x591f('0x9a')](_0x591f('0x25'),_0x591f('0x94'),_0x591f('0x2b'),_0x1d8176=>{const _0x550120=_0x1d8176[_0x591f('0x11')](_0x253d11=>_0x253d11[_0x591f('0x22')]()),_0x26ff6b=_0x550120[0x0]['findAncestor'](_0x591f('0x82')),{minColumn:_0x2fd80d,maxColumn:_0x5ae055}=_0x33f279[_0x591f('0x2d')](_0x550120);_0x3efc54[_0x591f('0x55')](_0x26ff6b,{'at':_0x2fd80d,'columns':_0x5ae055-_0x2fd80d+0x1});});const _0xe65957=(_0x1ad402,_0x467669)=>{if(!_0x467669[_0x591f('0x8f')]||!_0x467669['subType'][_0x591f('0x65')](_0x591f('0x4c')))return;const _0x1e7244=_0x467669[_0x591f('0x3f')][_0x591f('0x6a')],_0x154762=_0x552750[_0x591f('0x96')]()[_0x591f('0x3d')](_0x17400c=>_0x17400c[_0x591f('0x46')]&&_0x17400c[_0x591f('0x3f')]&&_0x17400c[_0x591f('0x3f')][_0x591f('0x6a')]==_0x1e7244);_0x154762[_0x591f('0x1b')]&&_0x467669[_0x591f('0x21')]()['length']!=_0x154762[_0x591f('0x1b')]&&_0x154762[_0x591f('0x6')]((_0x3318c1,_0x4591ea)=>(_0x3318c1[_0x591f('0x2f')]=_0x4591ea,_0x4591ea[_0x591f('0x77')]=_0x3318c1,_0x4591ea));};function _0x56eab2(_0x84d4a2,{showActiveMarker:_0x121ad7=!0x0}={}){const {id:_0x27e554}=_0x552750[_0x591f('0x9')](_0x84d4a2[_0x591f('0x53')]),_0x3fd6a5=[_0x591f('0x92'),_0x591f('0x74')],_0x24db52=_0x552750[_0x591f('0x42')][_0x591f('0x39')](_0x84d4a2[_0x591f('0x53')]);return _0x24db52&&_0x3fd6a5['push'](_0x591f('0x18')),{'classes':_0x3fd6a5,'attributes':{'data-suggestion':_0x27e554},'priority':_0x24db52&&_0x121ad7?0xbc2:0xbb8};}_0x552750['on']('suggestionLoaded',_0xe65957,{'priority':'high'}),_0x552750['on'](_0x591f('0x15'),_0xe65957,{'priority':_0x591f('0xe')}),_0x1eb6a0[_0x591f('0x16')][_0x591f('0xa2')][_0x591f('0x86')](()=>{let _0x4fd931=!0x1;const _0x5387ae=Array[_0x591f('0x9d')](_0x1eb6a0[_0x591f('0x16')][_0x591f('0xa2')][_0x591f('0x14')][_0x591f('0x58')]());for(const {name:_0x490b76,data:_0x3e5395}of _0x5387ae){const {group:_0x5b23f3,type:_0x202cb3,id:_0x465ed1}=_0x552750[_0x591f('0x9')](_0x490b76);if(_0x591f('0x76')!=_0x5b23f3||_0x591f('0x8')!=_0x202cb3||_0x3e5395[_0x591f('0x41')])continue;if(!_0x552750[_0x591f('0x4a')](_0x465ed1))continue;const _0x3cb96c=_0x552750['getSuggestion'](_0x465ed1)[_0x591f('0x56')](),_0xa9a961=_0x1eb6a0[_0x591f('0x38')]['get'](_0x591f('0x67'))['me'];for(const _0x38f5ce of _0x552750[_0x591f('0x96')]()){if(!_0x38f5ce[_0x591f('0x46')]||_0x38f5ce[_0x591f('0x3a')]!=_0xa9a961)continue;if(_0x591f('0x49')!=_0x38f5ce[_0x591f('0x40')]||'tablePasteCell'!=_0x38f5ce[_0x591f('0x8f')])continue;if(_0x38f5ce[_0x591f('0x56')]()[_0x591f('0x1f')](_0x3cafcb=>_0x3cb96c[_0x591f('0xa4')](_0x4f1735=>_0x4f1735[_0x591f('0x69')](_0x3cafcb,!0x0))))for(const _0x187a19 of _0x38f5ce['getAllAdjacentSuggestions']())_0x187a19[_0x591f('0x46')]&&(_0x187a19[_0x591f('0x2b')](),_0x4fd931=!0x0);}}return _0x4fd931;}),_0x1eb6a0['model'][_0x591f('0xa2')]['registerPostFixer'](_0x7d9674=>{const _0x73547c=_0x1eb6a0['commands'][_0x591f('0x2e')](_0x591f('0x7'));if(!_0x73547c||!_0x73547c[_0x591f('0xf')][_0x591f('0xa1')](_0x7d9674['batch']))return!0x1;let _0x33bcde=!0x1;const _0x434168=_0x1eb6a0['plugins'][_0x591f('0x2e')]('Users')['me'],_0x10cb0d=_0x1eb6a0['model'][_0x591f('0xa2')][_0x591f('0x14')][_0x591f('0x5d')](),_0xeb7848=Array['from'](_0x1eb6a0[_0x591f('0x16')][_0x591f('0xa2')][_0x591f('0x14')][_0x591f('0x58')]())[_0x591f('0x3d')](({name:_0x31ce05,data:_0x25e848})=>{const {group:_0x59a1da,subType:_0x4bb704,authorId:_0x446e6e}=_0x552750['_splitMarkerName'](_0x31ce05);return _0x591f('0x76')==_0x59a1da&&'tablePaste'==_0x4bb704&&_0x446e6e==_0x434168['id']&&!_0x25e848[_0x591f('0x41')];});for(const _0x4db6c1 of _0x10cb0d){if('insert'!=_0x4db6c1[_0x591f('0x40')]||_0x591f('0x1d')!=_0x4db6c1['name']||0x1!=_0x4db6c1[_0x591f('0x1b')])continue;const _0x3ce5ec=_0x7d9674[_0x591f('0x98')](_0x4db6c1[_0x591f('0x85')],_0x4db6c1[_0x591f('0x85')]['getShiftedBy'](0x1));if(!_0xeb7848[_0x591f('0x6d')](({data:_0x424d17})=>_0x424d17[_0x591f('0x8e')][_0x591f('0xc')](_0x3ce5ec)))for(const {name:_0x2db0e7,data:_0x560fe9}of _0xeb7848)if(_0x3ce5ec[_0x591f('0x69')](_0x560fe9[_0x591f('0x8e')])){_0x7d9674[_0x591f('0x12')](_0x2db0e7,{'range':_0x3ce5ec}),_0x33bcde=!0x0;break;}}return _0x33bcde;}),_0x1eb6a0[_0x591f('0x16')]['document'][_0x591f('0x86')](_0xd35451=>{let _0x45e933=!0x1;const _0x45f864=_0x1eb6a0[_0x591f('0x38')]['get'](_0x591f('0x67'))['me'],_0x35adda=_0x552750[_0x591f('0x96')]()['filter'](_0x15b719=>_0x15b719[_0x591f('0x46')]&&_0x15b719[_0x591f('0x3a')]==_0x45f864),_0x5b0b49=new Set(),_0x55786c=new Set();for(const _0xb87d42 of _0x35adda)if('tablePaste'==_0xb87d42[_0x591f('0x8f')])for(const _0x1ae4ac of _0xb87d42['getMarkers']()){const _0x184806=_0x1ae4ac[_0x591f('0x1c')]()['getContainedElement']();if(_0x184806){if(_0x184806['is']('element','tableCellSuggestion')&&le(_0x184806)){_0xb87d42['removeMarker'](_0x1ae4ac[_0x591f('0x48')]),_0x5b0b49[_0x591f('0xa3')](_0x184806),_0x45e933=!0x0;const _0x403807=_0x184806[_0x591f('0x26')],_0x17738a=_0x184806[_0x591f('0x5f')],_0x528d3e=_0x403807&&_0x403807['is'](_0x591f('0x1e'),_0x591f('0x1d')),_0x1ca085=_0x17738a&&_0x17738a['is'](_0x591f('0x1e'),'tableCellSuggestion');_0x528d3e&&!_0x5b0b49[_0x591f('0xa1')](_0x403807)&&_0x55786c[_0x591f('0xa3')](_0x403807),_0x1ca085&&!_0x5b0b49[_0x591f('0xa1')](_0x17738a)&&_0x55786c['add'](_0x17738a);}else _0x184806['is'](_0x591f('0x1e'),'paragraph')&&_0x184806[_0x591f('0x7c')]&&(_0xb87d42[_0x591f('0x9e')](_0x1ae4ac[_0x591f('0x48')]),_0x45e933=!0x0);}}else{if(_0x591f('0x99')==_0xb87d42[_0x591f('0x8f')]){if(!_0xb87d42['attributes']||!_0xb87d42[_0x591f('0x3f')][_0x591f('0x6a')])continue;const _0x522a23=_0xb87d42[_0x591f('0x3f')][_0x591f('0x8a')];if(_0x522a23&&Object[_0x591f('0x64')](_0x522a23)[_0x591f('0x1b')])continue;const _0x3f4ce7=_0xb87d42['attributes'][_0x591f('0x6a')];let _0x215f12=!0x0,_0x186df3=!0x0;for(const _0x24836f of _0x35adda)if(_0x24836f['subType']&&_0x24836f[_0x591f('0x8f')][_0x591f('0x65')](_0x591f('0x4c'))){if(!_0x24836f[_0x591f('0x3f')]['tablePasteChainId']){_0x186df3=!0x1;break;}if(_0x24836f['id']!=_0xb87d42['id']&&_0x24836f[_0x591f('0x3f')][_0x591f('0x6a')]==_0x3f4ce7){_0x215f12=!0x1;break;}}_0x186df3&&_0x215f12&&(_0xb87d42['removeMarkers'](),_0x45e933=!0x0);}}for(const _0x3db823 of _0x5b0b49)_0xd35451[_0x591f('0x0')](_0x3db823);for(const _0x589a80 of _0x55786c)_0xd35451['unwrap'](_0x589a80);return _0x45e933;}),_0x1eb6a0[_0x591f('0x8c')][_0x591f('0x28')](_0x591f('0x8d'))['markerToHighlight']({'model':_0x591f('0x51'),'view':_0x56eab2,'converterPriority':_0x591f('0xe')}),_0x1eb6a0[_0x591f('0x8c')]['for'](_0x591f('0xa0'))[_0x591f('0x9c')]({'model':_0x591f('0x51'),'view':(_0x2bff7e,_0x4209a3)=>{if(_0x4209a3[_0x591f('0x19')]['showSuggestionHighlights'])return _0x56eab2(_0x2bff7e,{'showActiveMarker':!0x1});},'converterPriority':_0x591f('0xe')});const _0x3476b3=_0x1eb6a0[_0x591f('0x91')]['view'];this[_0x591f('0x5e')](_0x3476b3[_0x591f('0xa2')],_0x591f('0xd'),(_0x4848a9,_0x27af41)=>{const _0x1207cd=[];for(const _0x534664 of _0x3476b3[_0x591f('0x50')](_0x27af41['content'])[_0x591f('0x7b')]())_0x534664['is'](_0x591f('0x1e'),_0x591f('0x9b'))&&_0x1207cd[_0x591f('0x93')](_0x534664);_0x3476b3[_0x591f('0x83')](_0x3278cd=>{for(const _0x97f29b of _0x1207cd)_0x3278cd[_0x591f('0x36')](_0x3278cd[_0x591f('0x50')](_0x97f29b),_0x3278cd[_0x591f('0x1')](_0x97f29b)),_0x3278cd[_0x591f('0x0')](_0x97f29b);});});}}function le(_0x5cf0f9){if(_0x5cf0f9[_0x591f('0x7c')])return!0x0;const _0x132e39=_0x5cf0f9['getChild'](0x0);return _0x132e39['is'](_0x591f('0x1e'),'paragraph')&&_0x132e39[_0x591f('0x7c')];}function se(_0x407b1a,_0x15a325={},_0x2338da){for(const {isAnchor:_0x30ab71,cellHeight:_0x446ef0,cellWidth:_0x1c4342}of _0x2338da[_0x591f('0x6f')](_0x407b1a,{'includeAllSlots':!0x0,..._0x15a325}))if(!_0x30ab71||0x1!=_0x446ef0||0x1!=_0x1c4342)return!0x1;return!0x0;}
23
+ const _0x1e1c=['removeMarkers','differ','TrackChangesEditing','unwrap','_isForcedDefaultExecutionBlock','paragraph','return','_descriptionFactory','removeColumns','map','discard','isEmpty','isEqual','name','newRange','plugins','nodeAfter','move','registerPostFixer','createElement','suggestion-td','updateMarker','start','deletion','commands','locale','stop','includes','documentSelection','*Replace\x20table\x20cells*','formatBlock','last','attributes','model','tablePasteChainId','_suggestionFactory','isInContent','markerName','oldRange','editor','fromEntries','from','elementToElement','$graveyard','suggestionLoaded','trackChanges','every','table','insertion','suggestion','suggestionUnloaded','TableClipboard','rows','getChangedMarkers','tablePaste','editing','suggestion:formatBlock:tablePasteCell','endRow','element','_getCoordsForCells','change','columnInsertionRanges','markerToHighlight','wrap','filter','options','clipboardOutput','tablePasteCell','createRangeOn','tableCell','remove','setAttribute','getSuggestion','removeRows','rowInsertionRanges','row','getRowIndexes','getChildren','getAllAdjacentSuggestions','tableCellBorderStyle','author','_createdBatches','accept','first','getSuggestionCallback','_tablePostFixingSubtypes','tableCellSuggestion','registerCustomCallback','ck-suggestion-marker--active','schema','getRanges','length','markerAttributes','ck-suggestion-marker','get','getTableIfOnlyTableInContent','markMultiRangeBlockFormat','register','findAncestor','insert','setAttributes','previousSibling','push','markMultiRangeInsertion','add','getSuggestions','fill','removeMarker','getAttributes','tableCellBorderWidth','low','document','insertColumns','position','subType','createRangeIn','selection','rowInsertionIndexes','batch','afterInit','value','createPositionBefore','createTableWalker','editingDowncast','getMarkers','getShiftedBy','high','tableCellVerticalAlignment','join','tableCellPadding','cell','ck-suggestion-marker-insertion','column','redo','getColumnIndexes','for','endColumn','find','cells','has','insertionRanges','getChild','nextSibling','set','keys','getColumns','containsRange','tablePasteColumn','tableCellBackgroundColor','reduce','_splitMarkerName','previous','_replaceTableSlotCell','startsWith','insertContent','getItems','type','getContainedElement','some','tableCellHorizontalAlignment','getRange','getChanges','tablePasteRow'];(function(_0x3c7dab,_0x1e1c58){const _0xc62483=function(_0x43e8d3){while(--_0x43e8d3){_0x3c7dab['push'](_0x3c7dab['shift']());}};_0xc62483(++_0x1e1c58);}(_0x1e1c,0x162));const _0xc624=function(_0x3c7dab,_0x1e1c58){_0x3c7dab=_0x3c7dab-0x0;let _0xc62483=_0x1e1c[_0x3c7dab];return _0xc62483;};import{getTranslation as _0x18756b}from'../utils/common-translations';import{Plugin as _0x44d123}from'ckeditor5/src/core';import _0x32cd29 from'./table';import{uid as _0x119928,priorities as _0x295b55}from'ckeditor5/src/utils';const oe=[_0xc624('0x51'),'tableCellBorderColor',_0xc624('0x33'),_0xc624('0x83'),_0xc624('0x63'),_0xc624('0x78'),_0xc624('0x65')],ne=Object[_0xc624('0xc')](oe[_0xc624('0x90')](_0x417887=>[_0x417887,null]));export default class mt extends _0x44d123{static get['requires'](){return[_0x32cd29];}[_0xc624('0x5b')](){const _0x5d512d=this[_0xc624('0xb')];if(!_0x5d512d[_0xc624('0x96')]['has']('TableClipboard'))return;const _0x1ae922=_0x5d512d['plugins']['get'](_0xc624('0x89')),_0x491c83=_0x5d512d[_0xc624('0x96')][_0xc624('0x42')]('TableUtils'),_0x5edb3c=_0x5d512d[_0xc624('0x96')]['get'](_0x32cd29),_0x258451=_0x5d512d[_0xc624('0x96')]['get'](_0xc624('0x17'));_0x5edb3c[_0xc624('0x39')][_0xc624('0x4a')](_0xc624('0x86'),_0xc624('0x77')),_0x5d512d[_0xc624('0x5')][_0xc624('0x3d')][_0xc624('0x45')](_0xc624('0x3a'),{'allowIn':_0xc624('0x29'),'allowContentOf':_0xc624('0x29'),'isLimit':!0x0}),_0x5d512d['conversion'][_0xc624('0xe')]({'model':_0xc624('0x3a'),'view':_0xc624('0x9b')});let _0x560734=null;_0x5d512d[_0xc624('0x5')]['on']('insertContent',(_0x428c6e,_0xc37707)=>{const [_0x48f431,_0x50a940]=_0xc37707,_0x28f8b2=_0xc37707[_0xc37707['length']-0x1];_0x28f8b2&&_0x28f8b2['forceDefaultExecution']||_0x1ae922[_0xc624('0x8b')]||this[_0xc624('0xb')][_0xc624('0x9f')][_0xc624('0x42')](_0xc624('0x11'))[_0xc624('0x5c')]&&function(_0x14ec44,_0x3478c4,_0x496970,_0x1e4ebf,_0x108094){if(_0x3478c4&&!_0x3478c4['is'](_0xc624('0x0')))return!0x1;const _0x182198=_0x108094[_0xc624('0x43')](_0x14ec44,_0x496970);if(!_0x182198||!se(_0x182198,null,_0x1e4ebf))return!0x1;const _0x11d73f=_0x1e4ebf['getSelectionAffectedTableCells'](_0x496970[_0xc624('0x53')][_0xc624('0x58')]);if(!_0x11d73f[_0xc624('0x3f')])return!0x1;const _0x4f6dc6=_0x11d73f[0x0][_0xc624('0x46')](_0xc624('0x13')),_0x426f65=_0x1e4ebf[_0xc624('0x30')](_0x11d73f),_0x5c294c=_0x1e4ebf[_0xc624('0x6a')](_0x11d73f),_0x2b285f={'startRow':_0x426f65[_0xc624('0x37')],'endRow':_0x426f65[_0xc624('0x3')],'startColumn':_0x5c294c[_0xc624('0x37')],'endColumn':_0x5c294c[_0xc624('0x3')]};return 0x1==_0x11d73f[_0xc624('0x3f')]&&(_0x2b285f[_0xc624('0x1d')]+=_0x1e4ebf['getRows'](_0x182198)-0x1,_0x2b285f[_0xc624('0x6c')]+=_0x1e4ebf[_0xc624('0x75')](_0x182198)-0x1),se(_0x4f6dc6,_0x2b285f,_0x1e4ebf);}(_0x48f431,_0x50a940,_0x5d512d[_0xc624('0x5')],_0x491c83,_0x258451)&&(_0x428c6e[_0xc624('0xa1')](),_0x560734={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5d512d[_0xc624('0x5')][_0xc624('0x20')](()=>{_0x5d512d[_0xc624('0x5')][_0xc624('0x7e')](_0xc37707[0x0],_0xc37707[0x1],_0xc37707[0x2],_0xc37707[0x3],{'forceDefaultExecution':!0x0});const _0x54bfab=_0x119928(),{rowInsertionRanges:_0x134f91,columnInsertionRanges:_0x65c941,insertionRanges:_0x2b70a3,deletionRanges:_0xa0e588,cells:_0x1dfc80}=_0x560734;_0x134f91['length']&&_0x1ae922[_0xc624('0x4b')](_0x134f91,'tablePasteRow',{'tablePasteChainId':_0x54bfab}),_0x65c941[_0xc624('0x3f')]&&_0x1ae922['markMultiRangeInsertion'](_0x65c941,_0xc624('0x77'),{'tablePasteChainId':_0x54bfab}),_0x2b70a3[_0xc624('0x3f')]&&_0x1ae922[_0xc624('0x4b')](_0x2b70a3,_0xc624('0x1a'),{'tablePasteChainId':_0x54bfab,'skipNestingCheck':!0x0}),_0xa0e588['length']&&_0x1ae922['markMultiRangeDeletion'](_0xa0e588,_0xc624('0x1a'),{'tablePasteChainId':_0x54bfab,'skipNestingCheck':!0x0});const _0x4a4c5f=_0x1ae922[_0xc624('0x44')](_0x1dfc80[_0xc624('0x90')](({element:_0x5d6fb4})=>_0x5d6fb4),{'formatGroupId':_0x119928()},[],_0xc624('0x27'),{'tablePasteChainId':_0x54bfab});if(_0x4a4c5f){const _0x1d4201=_0x4a4c5f[_0xc624('0x60')](),_0x49a4d6=[];for(const {element:_0x15c1d7,attributes:_0x326c0d}of _0x1dfc80){if(!_0x326c0d)continue;const _0xd6ff33=_0x5d512d['model'][_0xc624('0x28')](_0x15c1d7),_0x2c5b25=_0x1d4201[_0xc624('0x6d')](_0x440983=>_0x440983[_0xc624('0x84')]()[_0xc624('0x93')](_0xd6ff33));_0x2c5b25&&_0x49a4d6[_0xc624('0x4a')]([_0x2c5b25['name'],_0x326c0d]);}_0x49a4d6['length']&&_0x4a4c5f[_0xc624('0x2b')](_0xc624('0x40'),Object[_0xc624('0xc')](_0x49a4d6));}_0x560734=null;}));},{'priority':_0x295b55[_0xc624('0x62')]+0xa}),_0x5d512d[_0xc624('0x96')][_0xc624('0x42')]('TableClipboard')['on'](_0xc624('0x7c'),(_0x7cad2c,_0x4f11b5)=>{const [_0x10af55,_0x4f010d,,_0x360b48]=_0x4f11b5;if(!_0x560734)return;_0x7cad2c[_0xc624('0xa1')]();const _0x8e19f5=_0x10af55[_0xc624('0x66')],_0x61c9c4=_0x4f010d,_0xd7d86d=le(_0x8e19f5),_0x508d5f=le(_0x61c9c4);_0x7cad2c[_0xc624('0x8d')]=_0x8e19f5;let _0x3b6aff=null,_0x446aed=null;if(_0x508d5f||_0xd7d86d){if(_0xd7d86d&&!_0x508d5f){_0x360b48[_0xc624('0x2a')](_0x8e19f5[_0xc624('0x71')](0x0));for(const _0x560102 of Array[_0xc624('0xd')](_0x61c9c4[_0xc624('0x31')]()))_0x360b48['insert'](_0x560102,_0x8e19f5,'end');const _0x437699=_0x560734[_0xc624('0x59')][_0xc624('0xa2')](_0x10af55[_0xc624('0x2f')]),_0x206d63=_0x560734['columnInsertionIndexes'][_0xc624('0xa2')](_0x10af55[_0xc624('0x68')]);_0x437699||_0x206d63||(_0x3b6aff=_0x360b48[_0xc624('0x57')](_0x8e19f5));}else _0x508d5f&&!_0xd7d86d&&(_0x446aed=_0x360b48[_0xc624('0x57')](_0x8e19f5));}else{const _0x14a4c1=_0x360b48[_0xc624('0x9a')]('tableCellSuggestion'),_0x2472bd=_0x360b48[_0xc624('0x9a')](_0xc624('0x3a'));_0x360b48[_0xc624('0x23')](_0x360b48[_0xc624('0x57')](_0x8e19f5),_0x2472bd),_0x360b48[_0xc624('0x47')](_0x14a4c1,_0x8e19f5,0x0);for(const _0x9674a5 of Array[_0xc624('0xd')](_0x61c9c4[_0xc624('0x31')]()))_0x360b48[_0xc624('0x47')](_0x9674a5,_0x14a4c1,'end');_0x3b6aff=_0x360b48['createRangeOn'](_0x14a4c1),_0x446aed=_0x360b48[_0xc624('0x28')](_0x2472bd);}const _0x6e16f1=Array['from'](_0x61c9c4[_0xc624('0x50')]())[_0xc624('0x24')](([_0x14bab7])=>oe['includes'](_0x14bab7));_0x560734[_0xc624('0x6e')][_0xc624('0x4a')]({'element':_0x8e19f5,'attributes':_0x6e16f1[_0xc624('0x3f')]?Object['fromEntries'](_0x6e16f1):null}),_0x3b6aff&&_0x560734[_0xc624('0x70')][_0xc624('0x4a')](_0x3b6aff),_0x446aed&&_0x560734['deletionRanges'][_0xc624('0x4a')](_0x446aed);},{'priority':'high'}),_0x491c83['on'](_0xc624('0x54'),(_0x5935f6,_0x1a4326)=>{const [_0x15633b,_0x103a33={}]=_0x1a4326;if(!_0x560734)return;const _0x18f482=_0x103a33['at']||0x0,_0x8502a8=_0x103a33['columns']||0x1;_0x560734['columnInsertionIndexes']=new Array(_0x8502a8)[_0xc624('0x4e')](_0x18f482)[_0xc624('0x90')]((_0x1dd7cb,_0x3b7b48)=>_0x1dd7cb+_0x3b7b48);for(const {cell:_0x28fce1}of _0x491c83[_0xc624('0x5e')](_0x15633b,{'startColumn':_0x18f482,'endColumn':_0x18f482+_0x8502a8-0x1}))_0x560734[_0xc624('0x21')][_0xc624('0x4a')](_0x5d512d['model'][_0xc624('0x28')](_0x28fce1));},{'priority':_0xc624('0x52')}),_0x491c83['on']('insertRows',(_0xf16f23,_0x808477)=>{const [_0x271528,_0x2fe02b={}]=_0x808477;if(!_0x560734)return;const _0x39ea1d=_0x2fe02b['at']||0x0,_0x31d03d=_0x2fe02b[_0xc624('0x18')]||0x1;_0x560734['rowInsertionIndexes']=new Array(_0x31d03d)[_0xc624('0x4e')](_0x39ea1d)[_0xc624('0x90')]((_0x3e54c5,_0x9c40d4)=>_0x3e54c5+_0x9c40d4);for(const {cell:_0x4bd3a6}of _0x491c83[_0xc624('0x5e')](_0x271528,{'startRow':_0x39ea1d,'endRow':_0x39ea1d+_0x31d03d-0x1}))_0x560734[_0xc624('0x2e')]['push'](_0x5d512d[_0xc624('0x5')][_0xc624('0x28')](_0x4bd3a6));},{'priority':_0xc624('0x52')}),_0x1ae922[_0xc624('0x8e')]['registerDescriptionCallback'](_0x197231=>{if(_0x197231[_0xc624('0x56')]&&_0x197231[_0xc624('0x56')][_0xc624('0x7d')](_0xc624('0x1a')))return _0x197231[_0xc624('0x7b')]?{}:{'type':_0xc624('0x14'),'content':_0x18756b(_0x5d512d[_0xc624('0xa0')],_0xc624('0x1'))};});const _0x4420f7=()=>{};for(const _0x46bfce of[_0xc624('0x1a'),_0xc624('0x77'),_0xc624('0x86'),_0xc624('0x27')])_0x1ae922[_0xc624('0x7')][_0xc624('0x3b')](_0xc624('0x14'),_0x46bfce,_0xc624('0x64'),_0x4420f7),_0x1ae922[_0xc624('0x7')][_0xc624('0x3b')](_0xc624('0x9e'),_0x46bfce,'join',_0x4420f7);_0x1ae922[_0xc624('0x7')][_0xc624('0x3b')](_0xc624('0x2'),_0xc624('0x27'),_0xc624('0x91'),_0x4420f7),_0x1ae922[_0xc624('0x7')]['registerCustomCallback'](_0xc624('0x2'),_0xc624('0x27'),'accept',(_0x3f7490,_0x42937a,_0x83036d)=>{const _0x24491f=_0x3f7490[_0xc624('0x90')](_0x29eec6=>_0x29eec6[_0xc624('0x81')]())[_0xc624('0x24')](_0x4933b3=>_0x4933b3),_0x4e991a=new Map(_0x24491f[_0xc624('0x90')](_0x19e10a=>[_0x19e10a,null]));if(_0x560734)for(const {element:_0x3a9e24,attributes:_0x222caa}of _0x560734['cells'])_0x222caa&&_0x4e991a[_0xc624('0x73')](_0x3a9e24,_0x222caa);else{if(_0x83036d&&_0x83036d[_0xc624('0x40')])for(const [_0x3f5968,_0x133cb0]of Object['entries'](_0x83036d[_0xc624('0x40')])){const _0x4eea62=_0x5d512d[_0xc624('0x5')]['markers'][_0xc624('0x42')](_0x3f5968),_0x3a990c=_0x4eea62?_0x4eea62[_0xc624('0x84')]()[_0xc624('0x81')]():null;_0x3a990c&&_0x4e991a[_0xc624('0x73')](_0x3a990c,_0x133cb0);}}_0x5d512d[_0xc624('0x5')][_0xc624('0x20')](_0x5e2395=>{for(const [_0x48ae04,_0x539504]of _0x4e991a)_0x5e2395[_0xc624('0x48')]({...ne,..._0x539504},_0x48ae04);});});const _0x344757=(_0x26a312,_0x44925c)=>{_0x1ae922[_0xc624('0x7')][_0xc624('0x3b')](_0x26a312,_0xc624('0x1a'),_0x44925c,(_0x5241d4,_0xf400c2,_0x346589)=>{_0x5d512d[_0xc624('0x5')][_0xc624('0x20')](_0xcff9f6=>{const _0x5a541a=[];for(const _0xaa12d1 of _0x5241d4){const _0xce427a=_0xaa12d1[_0xc624('0x9d')][_0xc624('0x97')];_0xce427a['is'](_0xc624('0x1e'),_0xc624('0x3a'))&&_0x5a541a['push'](_0xce427a);}_0x1ae922[_0xc624('0x7')][_0xc624('0x38')](_0x26a312,null,_0x44925c)(_0x5241d4,_0xf400c2,_0x346589);for(const _0x133fc2 of _0x5a541a)_0xc624('0xf')!=_0x133fc2['root']['rootName']&&_0xcff9f6[_0xc624('0x8a')](_0x133fc2);});});};_0x344757(_0xc624('0x14'),_0xc624('0x36')),_0x344757(_0xc624('0x14'),'discard'),_0x344757(_0xc624('0x9e'),_0xc624('0x36')),_0x344757(_0xc624('0x9e'),_0xc624('0x91')),_0x1ae922[_0xc624('0x7')][_0xc624('0x3b')](_0xc624('0x14'),'tablePasteRow',_0xc624('0x91'),_0x1f1a78=>{const _0x194ff9=_0x1f1a78[_0xc624('0x90')](_0x465028=>_0x465028[_0xc624('0x81')]()),_0x466ced=_0x194ff9[0x0]['findAncestor'](_0xc624('0x13')),{minRow:_0x4e9b21,maxRow:_0x36a6be}=_0x5edb3c[_0xc624('0x1f')](_0x194ff9);_0x491c83[_0xc624('0x2d')](_0x466ced,{'at':_0x4e9b21,'rows':_0x36a6be-_0x4e9b21+0x1});}),_0x1ae922['_suggestionFactory'][_0xc624('0x3b')]('insertion',_0xc624('0x77'),_0xc624('0x91'),_0x280bc6=>{const _0x4deeec=_0x280bc6[_0xc624('0x90')](_0x477d13=>_0x477d13[_0xc624('0x81')]()),_0x5e1053=_0x4deeec[0x0][_0xc624('0x46')]('table'),{minColumn:_0xb4f169,maxColumn:_0x38a6cd}=_0x5edb3c[_0xc624('0x1f')](_0x4deeec);_0x491c83[_0xc624('0x8f')](_0x5e1053,{'at':_0xb4f169,'columns':_0x38a6cd-_0xb4f169+0x1});});const _0x54da4f=(_0x1e6ff0,_0x8ee1e1)=>{if(!_0x8ee1e1['subType']||!_0x8ee1e1[_0xc624('0x56')][_0xc624('0x7d')](_0xc624('0x1a')))return;const _0x4bd125=_0x8ee1e1[_0xc624('0x4')][_0xc624('0x6')],_0x4ac0cd=_0x1ae922['getSuggestions']()[_0xc624('0x24')](_0x439a6d=>_0x439a6d[_0xc624('0x8')]&&_0x439a6d['attributes']&&_0x439a6d[_0xc624('0x4')][_0xc624('0x6')]==_0x4bd125);_0x4ac0cd['length']&&_0x8ee1e1['getAllAdjacentSuggestions']()['length']!=_0x4ac0cd['length']&&_0x4ac0cd[_0xc624('0x79')]((_0x2bffe8,_0x7cde0c)=>(_0x2bffe8['next']=_0x7cde0c,_0x7cde0c[_0xc624('0x7b')]=_0x2bffe8,_0x7cde0c));};function _0x44f690(_0xdc47f9,{showActiveMarker:_0x252bc6=!0x0}={}){const {id:_0x2c9e40}=_0x1ae922[_0xc624('0x7a')](_0xdc47f9[_0xc624('0x9')]),_0x2ff6b7=[_0xc624('0x41'),_0xc624('0x67')],_0x3ed564=_0x1ae922['activeMarkers'][_0xc624('0xa2')](_0xdc47f9[_0xc624('0x9')]);return _0x3ed564&&_0x2ff6b7['push'](_0xc624('0x3c')),{'classes':_0x2ff6b7,'attributes':{'data-suggestion':_0x2c9e40},'priority':_0x3ed564&&_0x252bc6?0xbc2:0xbb8};}_0x1ae922['on'](_0xc624('0x10'),_0x54da4f,{'priority':'high'}),_0x1ae922['on'](_0xc624('0x16'),_0x54da4f,{'priority':'high'}),_0x5d512d[_0xc624('0x5')]['document'][_0xc624('0x99')](()=>{let _0x4adf10=!0x1;const _0x392d73=Array['from'](_0x5d512d[_0xc624('0x5')][_0xc624('0x53')][_0xc624('0x88')][_0xc624('0x19')]());for(const {name:_0x5cd679,data:_0x2bb74d}of _0x392d73){const {group:_0x18f471,type:_0x4737e3,id:_0x47ad09}=_0x1ae922['_splitMarkerName'](_0x5cd679);if(_0xc624('0x15')!=_0x18f471||'deletion'!=_0x4737e3||_0x2bb74d[_0xc624('0xa')])continue;if(!_0x1ae922['hasSuggestion'](_0x47ad09))continue;const _0x41b055=_0x1ae922[_0xc624('0x2c')](_0x47ad09)[_0xc624('0x3e')](),_0x4a59c9=_0x5d512d[_0xc624('0x96')][_0xc624('0x42')]('Users')['me'];for(const _0x51fc62 of _0x1ae922[_0xc624('0x4d')]()){if(!_0x51fc62['isInContent']||_0x51fc62[_0xc624('0x34')]!=_0x4a59c9)continue;if(_0xc624('0x2')!=_0x51fc62['type']||_0xc624('0x27')!=_0x51fc62['subType'])continue;if(_0x51fc62[_0xc624('0x3e')]()[_0xc624('0x12')](_0x13f0bc=>_0x41b055[_0xc624('0x82')](_0xcd16db=>_0xcd16db[_0xc624('0x76')](_0x13f0bc,!0x0))))for(const _0x29e3ed of _0x51fc62[_0xc624('0x32')]())_0x29e3ed[_0xc624('0x8')]&&(_0x29e3ed['discard'](),_0x4adf10=!0x0);}}return _0x4adf10;}),_0x5d512d[_0xc624('0x5')][_0xc624('0x53')][_0xc624('0x99')](_0x453a86=>{const _0x502df3=_0x5d512d[_0xc624('0x9f')]['get'](_0xc624('0x69'));if(!_0x502df3||!_0x502df3[_0xc624('0x35')]['has'](_0x453a86[_0xc624('0x5a')]))return!0x1;let _0x5c365e=!0x1;const _0x10783d=_0x5d512d[_0xc624('0x96')]['get']('Users')['me'],_0x214d0b=_0x5d512d['model'][_0xc624('0x53')][_0xc624('0x88')][_0xc624('0x85')](),_0xbf8d51=Array[_0xc624('0xd')](_0x5d512d[_0xc624('0x5')][_0xc624('0x53')]['differ'][_0xc624('0x19')]())[_0xc624('0x24')](({name:_0x33faa0,data:_0x2befbc})=>{const {group:_0x2dc4d0,subType:_0x1f045a,authorId:_0xb5a5af}=_0x1ae922[_0xc624('0x7a')](_0x33faa0);return'suggestion'==_0x2dc4d0&&_0xc624('0x1a')==_0x1f045a&&_0xb5a5af==_0x10783d['id']&&!_0x2befbc[_0xc624('0xa')];});for(const _0x229f26 of _0x214d0b){if(_0xc624('0x47')!=_0x229f26[_0xc624('0x80')]||_0xc624('0x3a')!=_0x229f26[_0xc624('0x94')]||0x1!=_0x229f26[_0xc624('0x3f')])continue;const _0x530bd5=_0x453a86['createRange'](_0x229f26[_0xc624('0x55')],_0x229f26[_0xc624('0x55')][_0xc624('0x61')](0x1));if(!_0xbf8d51[_0xc624('0x6d')](({data:_0x2ac676})=>_0x2ac676[_0xc624('0x95')]['isEqual'](_0x530bd5)))for(const {name:_0x30dee4,data:_0x28a425}of _0xbf8d51)if(_0x530bd5[_0xc624('0x76')](_0x28a425[_0xc624('0x95')])){_0x453a86[_0xc624('0x9c')](_0x30dee4,{'range':_0x530bd5}),_0x5c365e=!0x0;break;}}return _0x5c365e;}),_0x5d512d[_0xc624('0x5')][_0xc624('0x53')][_0xc624('0x99')](_0x4533ec=>{let _0x87993a=!0x1;const _0x16d70f=_0x5d512d[_0xc624('0x96')][_0xc624('0x42')]('Users')['me'],_0x4972da=_0x1ae922[_0xc624('0x4d')]()[_0xc624('0x24')](_0x3feff5=>_0x3feff5[_0xc624('0x8')]&&_0x3feff5[_0xc624('0x34')]==_0x16d70f),_0x4d9d5a=new Set(),_0x363242=new Set();for(const _0x5dc8dd of _0x4972da)if(_0xc624('0x1a')==_0x5dc8dd[_0xc624('0x56')])for(const _0x331366 of _0x5dc8dd[_0xc624('0x60')]()){const _0x34b16a=_0x331366[_0xc624('0x84')]()['getContainedElement']();if(_0x34b16a){if(_0x34b16a['is'](_0xc624('0x1e'),_0xc624('0x3a'))&&le(_0x34b16a)){_0x5dc8dd[_0xc624('0x4f')](_0x331366[_0xc624('0x94')]),_0x4d9d5a[_0xc624('0x4c')](_0x34b16a),_0x87993a=!0x0;const _0x5cd134=_0x34b16a[_0xc624('0x72')],_0x26eac6=_0x34b16a[_0xc624('0x49')],_0x3a42b8=_0x5cd134&&_0x5cd134['is'](_0xc624('0x1e'),_0xc624('0x3a')),_0x135680=_0x26eac6&&_0x26eac6['is'](_0xc624('0x1e'),_0xc624('0x3a'));_0x3a42b8&&!_0x4d9d5a[_0xc624('0x6f')](_0x5cd134)&&_0x363242['add'](_0x5cd134),_0x135680&&!_0x4d9d5a[_0xc624('0x6f')](_0x26eac6)&&_0x363242[_0xc624('0x4c')](_0x26eac6);}else _0x34b16a['is'](_0xc624('0x1e'),_0xc624('0x8c'))&&_0x34b16a[_0xc624('0x92')]&&(_0x5dc8dd['removeMarker'](_0x331366[_0xc624('0x94')]),_0x87993a=!0x0);}}else{if(_0xc624('0x27')==_0x5dc8dd[_0xc624('0x56')]){if(!_0x5dc8dd[_0xc624('0x4')]||!_0x5dc8dd[_0xc624('0x4')][_0xc624('0x6')])continue;const _0x3d7383=_0x5dc8dd['attributes'][_0xc624('0x40')];if(_0x3d7383&&Object[_0xc624('0x74')](_0x3d7383)[_0xc624('0x3f')])continue;const _0x3d711c=_0x5dc8dd[_0xc624('0x4')][_0xc624('0x6')];let _0x4c11c2=!0x0,_0x4555de=!0x0;for(const _0x4ee5bf of _0x4972da)if(_0x4ee5bf[_0xc624('0x56')]&&_0x4ee5bf['subType'][_0xc624('0x7d')](_0xc624('0x1a'))){if(!_0x4ee5bf[_0xc624('0x4')][_0xc624('0x6')]){_0x4555de=!0x1;break;}if(_0x4ee5bf['id']!=_0x5dc8dd['id']&&_0x4ee5bf[_0xc624('0x4')][_0xc624('0x6')]==_0x3d711c){_0x4c11c2=!0x1;break;}}_0x4555de&&_0x4c11c2&&(_0x5dc8dd[_0xc624('0x87')](),_0x87993a=!0x0);}}for(const _0x3c7865 of _0x4d9d5a)_0x4533ec[_0xc624('0x2a')](_0x3c7865);for(const _0x37df38 of _0x363242)_0x4533ec['unwrap'](_0x37df38);return _0x87993a;}),_0x5d512d['conversion'][_0xc624('0x6b')](_0xc624('0x5f'))['markerToHighlight']({'model':_0xc624('0x1c'),'view':_0x44f690,'converterPriority':_0xc624('0x62')}),_0x5d512d['conversion']['for']('dataDowncast')[_0xc624('0x22')]({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3e3c95,_0x7093b1)=>{if(_0x7093b1[_0xc624('0x25')]['showSuggestionHighlights'])return _0x44f690(_0x3e3c95,{'showActiveMarker':!0x1});},'converterPriority':'high'});const _0x149550=_0x5d512d[_0xc624('0x1b')]['view'];this['listenTo'](_0x149550[_0xc624('0x53')],_0xc624('0x26'),(_0x53c6ec,_0x22afb2)=>{const _0x2d60a2=[];for(const _0x3338bd of _0x149550['createRangeIn'](_0x22afb2['content'])[_0xc624('0x7f')]())_0x3338bd['is'](_0xc624('0x1e'),_0xc624('0x9b'))&&_0x2d60a2[_0xc624('0x4a')](_0x3338bd);_0x149550[_0xc624('0x20')](_0x4d6d29=>{for(const _0x78b9a3 of _0x2d60a2)_0x4d6d29[_0xc624('0x98')](_0x4d6d29[_0xc624('0x57')](_0x78b9a3),_0x4d6d29[_0xc624('0x5d')](_0x78b9a3)),_0x4d6d29[_0xc624('0x2a')](_0x78b9a3);});});}}function le(_0x1fde2){if(_0x1fde2[_0xc624('0x92')])return!0x0;const _0x30181f=_0x1fde2['getChild'](0x0);return _0x30181f['is'](_0xc624('0x1e'),_0xc624('0x8c'))&&_0x30181f[_0xc624('0x92')];}function se(_0x11e7a9,_0x10ca8f={},_0x253c3e){for(const {isAnchor:_0x18f466,cellHeight:_0x29665e,cellWidth:_0x47baa7}of _0x253c3e[_0xc624('0x5e')](_0x11e7a9,{'includeAllSlots':!0x0,..._0x10ca8f}))if(!_0x18f466||0x1!=_0x29665e||0x1!=_0x47baa7)return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x28bc=['highest','editor','FORMAT_REGULAR_COLUMN','formatBlock','commandName','format','parent','FORMAT_HEADER_ROW','has','nodeBefore','commandParams','childCount','selection','end','_acceptFormatSuggestionCallbackFactory','headingRows','getCellLocation','_descriptionFactory','change','getSuggestion','value','from','TableUtils','mapper','registerCustomCallback','markerRange','get','consumable','createRange','setTableColumnHeader','addClass','headingColumns','includes','commands','createTableWalker','setTableRowHeader','downcastDispatcher','editing','cell','index','start','model','nodeAfter','removeMarker:suggestion','createPositionAfter','findAncestor','markerName','getChild','enableCommand','document','_splitMarkerName','unbindElementFromMarkerName','stop','item','isBefore','writer','first','markerNameToElements','forceValue','getAttribute','setAttribute','requires','_suggestionFactory','getSelectionAffectedTableCells','name','*Format:*\x20%0','accept','registerDescriptionCallback','data-suggestion','consume','options','addMarker:suggestion','markBlockFormat','plugins','afterInit','last','removeClass','ck-suggestion-marker--active','data','TrackChangesEditing','createPositionBefore','FORMAT_REGULAR_ROW','activeMarkers'];(function(_0x994e71,_0x28bc17){const _0x3d9737=function(_0x10de2d){while(--_0x10de2d){_0x994e71['push'](_0x994e71['shift']());}};_0x3d9737(++_0x28bc17);}(_0x28bc,0x8c));const _0x3d97=function(_0x994e71,_0x28bc17){_0x994e71=_0x994e71-0x0;let _0x3d9737=_0x28bc[_0x994e71];return _0x3d9737;};import{Plugin as _0x3bd52a}from'ckeditor5/src/core';import _0x1b19c3 from'./table';import{getTranslation as _0x304afa}from'../utils/common-translations';export default class gt extends _0x3bd52a{static get[_0x3d97('0x4')](){return[_0x1b19c3];}[_0x3d97('0x11')](){const _0x27d848=this[_0x3d97('0x1b')];if(!_0x27d848[_0x3d97('0x10')][_0x3d97('0x22')]('TableEditing'))return;const _0x2f7d8c=_0x27d848['locale'],_0x1ecd52=_0x27d848['plugins'][_0x3d97('0x34')](_0x3d97('0x16')),_0x3fd107=_0x27d848[_0x3d97('0x10')][_0x3d97('0x34')]('TableUtils'),_0x461da7=_0x27d848[_0x3d97('0x10')]['get'](_0x1b19c3);function _0x16d770({showActiveMarker:_0x13a67f=!0x0,setDataAttribute:_0x14300c=!0x0}={}){return(_0x1c4035,_0x378f2c,_0x148425)=>{const {type:_0x4ac24e,id:_0xb1d08f}=_0x1ecd52[_0x3d97('0x4c')](_0x378f2c[_0x3d97('0x48')]),_0x55c511=_0x1ecd52[_0x3d97('0x2d')](_0xb1d08f);if(!_0x55c511[_0x3d97('0x15')]||_0x3d97('0x37')!=_0x55c511[_0x3d97('0x15')]['commandName'])return;if(_0x378f2c[_0x3d97('0x4f')])return void _0x1c4035[_0x3d97('0x4e')]();if(!_0x148425[_0x3d97('0x35')][_0x3d97('0xc')](_0x378f2c[_0x3d97('0x33')],_0x1c4035[_0x3d97('0x7')]))return;const _0x8bb0a9=_0x378f2c[_0x3d97('0x33')][_0x3d97('0x42')][_0x3d97('0x44')],_0x2e1fb3=_0x378f2c[_0x3d97('0x33')][_0x3d97('0x27')][_0x3d97('0x23')],_0x46fa5d=_0x8bb0a9['parent'][_0x3d97('0x20')],{column:_0x3a3623}=_0x3fd107[_0x3d97('0x2a')](_0x8bb0a9),{column:_0x29c370}=_0x3fd107[_0x3d97('0x2a')](_0x2e1fb3);for(let _0x530adc=_0x3a3623;_0x530adc<=_0x29c370;_0x530adc++){const _0x2a9cb3=_0x3fd107[_0x3d97('0x3c')](_0x46fa5d,{'column':_0x530adc,'includeAllSlots':!0x1});for(const _0x5713ad of _0x2a9cb3){const _0x3a3b5e=_0x5713ad[_0x3d97('0x40')],_0x2ddabb=_0x148425[_0x3d97('0x31')]['toViewElement'](_0x3a3b5e);_0x148425[_0x3d97('0x51')][_0x3d97('0x38')]('ck-suggestion-marker-'+_0x4ac24e,_0x2ddabb),_0x14300c&&_0x148425['writer'][_0x3d97('0x3')](_0x3d97('0xb'),_0xb1d08f,_0x2ddabb),_0x148425[_0x3d97('0x31')]['bindElementToMarker'](_0x2ddabb,_0x378f2c[_0x3d97('0x48')]),_0x13a67f&&(_0x1ecd52[_0x3d97('0x19')][_0x3d97('0x3a')](_0x378f2c[_0x3d97('0x48')])?_0x148425['writer'][_0x3d97('0x38')](_0x3d97('0x14'),_0x2ddabb):_0x148425[_0x3d97('0x51')][_0x3d97('0x13')](_0x3d97('0x14'),_0x2ddabb));}}};}_0x1ecd52[_0x3d97('0x4a')](_0x3d97('0x3d'),(_0xd21bee,_0x5dc60a)=>{const _0x2a5995=_0x3fd107[_0x3d97('0x6')](_0x27d848[_0x3d97('0x43')][_0x3d97('0x4b')][_0x3d97('0x26')]),_0x58c088=_0x3fd107['getRowIndexes'](_0x2a5995),_0x45b056=_0x2a5995[0x0]['findAncestor']('table'),_0x492877=_0x45b056[_0x3d97('0x2')](_0x3d97('0x29'))||0x0,_0x370740=_0x5dc60a&&null!==_0x5dc60a[_0x3d97('0x1')]?_0x5dc60a[_0x3d97('0x1')]:!_0x27d848[_0x3d97('0x3b')]['get']('setTableRowHeader')[_0x3d97('0x2e')],_0x5696dd=_0x370740?_0x58c088[_0x3d97('0x12')]:_0x58c088[_0x3d97('0x52')],_0x5201e7=_0x45b056['getChild'](_0x5696dd);let _0x55cd2d;if(_0x370740){const _0x57f0b1=_0x45b056['getChild'](_0x492877);if(_0x5201e7[_0x3d97('0x41')]<_0x57f0b1[_0x3d97('0x41')])return;_0x55cd2d=_0x27d848[_0x3d97('0x43')]['createRange'](_0x27d848[_0x3d97('0x43')]['createPositionBefore'](_0x57f0b1['getChild'](0x0)),_0x27d848['model']['createPositionAfter'](_0x5201e7[_0x3d97('0x49')](_0x5201e7[_0x3d97('0x25')]-0x1)));}else{const _0xfbda79=_0x45b056[_0x3d97('0x49')](_0x492877-0x1);if(!_0xfbda79)return;_0x55cd2d=_0x27d848[_0x3d97('0x43')]['createRange'](_0x27d848[_0x3d97('0x43')][_0x3d97('0x17')](_0x5201e7[_0x3d97('0x49')](0x0)),_0x27d848[_0x3d97('0x43')][_0x3d97('0x46')](_0xfbda79[_0x3d97('0x49')](_0xfbda79[_0x3d97('0x25')]-0x1)));}_0x27d848['model'][_0x3d97('0x2c')](()=>{_0x1ecd52['markBlockFormat'](_0x55cd2d,{'commandName':_0x3d97('0x3d'),'commandParams':[{'forceValue':_0x370740}]},[],_0x3d97('0x3d'));});}),_0x1ecd52[_0x3d97('0x4a')](_0x3d97('0x37'),(_0x46fa66,_0x19d63d)=>{const _0x1fa46b=_0x27d848[_0x3d97('0x10')][_0x3d97('0x34')](_0x3d97('0x30')),_0x38fdfa=_0x1fa46b[_0x3d97('0x6')](_0x27d848[_0x3d97('0x43')][_0x3d97('0x4b')][_0x3d97('0x26')]),_0x14c40a=_0x1fa46b['getColumnIndexes'](_0x38fdfa),_0x4cd238=_0x38fdfa[0x0][_0x3d97('0x47')]('table'),_0x1a0734=_0x4cd238[_0x3d97('0x2')](_0x3d97('0x39'))||0x0,_0x358b79=_0x19d63d&&null!==_0x19d63d[_0x3d97('0x1')]?_0x19d63d['forceValue']:!_0x27d848[_0x3d97('0x3b')][_0x3d97('0x34')](_0x3d97('0x37'))[_0x3d97('0x2e')];let _0x28f3c3;const _0x45298b=_0x4cd238[_0x3d97('0x49')](0x0),_0x282256=_0x358b79?_0x14c40a[_0x3d97('0x12')]:_0x14c40a[_0x3d97('0x52')],_0x5c3585=_0x1fa46b[_0x3d97('0x3c')](_0x4cd238,{'startRow':0x0,'column':_0x282256,'includeAllSlots':!0x1}),_0x523eed=Array[_0x3d97('0x2f')](_0x5c3585)[0x0][_0x3d97('0x40')];if(_0x358b79){const _0x545aa2=_0x45298b['getChild'](_0x1a0734);if(_0x523eed[_0x3d97('0x50')](_0x545aa2))return;_0x28f3c3=_0x27d848['model'][_0x3d97('0x36')](_0x27d848['model'][_0x3d97('0x17')](_0x545aa2),_0x27d848['model'][_0x3d97('0x46')](_0x523eed));}else{const _0x44622c=_0x45298b[_0x3d97('0x49')](_0x1a0734-0x1);if(!_0x44622c)return;_0x28f3c3=_0x27d848[_0x3d97('0x43')]['createRange'](_0x27d848[_0x3d97('0x43')][_0x3d97('0x17')](_0x523eed),_0x27d848[_0x3d97('0x43')]['createPositionAfter'](_0x44622c));}_0x27d848[_0x3d97('0x43')][_0x3d97('0x2c')](()=>{_0x1ecd52[_0x3d97('0xf')](_0x28f3c3,{'commandName':_0x3d97('0x37'),'commandParams':[{'forceValue':_0x358b79}]},[],'setTableColumnHeader');});}),_0x27d848[_0x3d97('0x3f')][_0x3d97('0x3e')]['on'](_0x3d97('0xe'),_0x16d770(),{'priority':_0x3d97('0x1a')}),_0x27d848[_0x3d97('0x15')]['downcastDispatcher']['on']('addMarker:suggestion',(_0x44eebc,_0x1dc460,_0x160d36)=>{_0x160d36[_0x3d97('0xd')]['showSuggestionHighlights']&&_0x16d770({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x44eebc,_0x1dc460,_0x160d36);},{'priority':_0x3d97('0x1a')}),_0x27d848[_0x3d97('0x3f')][_0x3d97('0x3e')]['on'](_0x3d97('0x45'),(_0x32e610,_0x3af235,_0x3a161c)=>{const {type:_0x337c29,id:_0x89bc3a}=_0x1ecd52[_0x3d97('0x4c')](_0x3af235[_0x3d97('0x48')]),_0x4dc7c6=_0x1ecd52[_0x3d97('0x2d')](_0x89bc3a);if(!_0x4dc7c6['data']||_0x3d97('0x37')!=_0x4dc7c6[_0x3d97('0x15')][_0x3d97('0x1e')])return;const _0x1d85d0=_0x3a161c[_0x3d97('0x31')][_0x3d97('0x0')](_0x3af235[_0x3d97('0x48')]);if(_0x1d85d0)for(const _0x59dd0f of _0x1d85d0)_0x3a161c[_0x3d97('0x51')]['removeClass']('ck-suggestion-marker-'+_0x337c29,_0x59dd0f),_0x3a161c['writer'][_0x3d97('0x13')]('ck-suggestion-marker--active',_0x59dd0f),_0x3a161c['writer']['removeAttribute'](_0x3d97('0xb'),_0x59dd0f),_0x3a161c[_0x3d97('0x31')][_0x3d97('0x4d')](_0x59dd0f,_0x3af235[_0x3d97('0x48')]);},{'priority':_0x3d97('0x1a')}),_0x1ecd52[_0x3d97('0x2b')][_0x3d97('0xa')](_0x2310be=>{const {data:_0x2fc67c}=_0x2310be;if(_0x2fc67c){if(_0x3d97('0x3d')==_0x2fc67c[_0x3d97('0x1e')]){const _0x2da92d=_0x2fc67c[_0x3d97('0x24')][0x0][_0x3d97('0x1')];return _0x2e3b1c(_0x304afa(_0x2f7d8c,_0x2da92d?_0x3d97('0x21'):_0x3d97('0x18')));}if(_0x3d97('0x37')==_0x2fc67c[_0x3d97('0x1e')]){const _0x3201f9=_0x2fc67c[_0x3d97('0x24')][0x0][_0x3d97('0x1')];return _0x2e3b1c(_0x304afa(_0x2f7d8c,_0x3201f9?'FORMAT_HEADER_COLUMN':_0x3d97('0x1c')));}}function _0x2e3b1c(_0x54d231){return{'type':_0x3d97('0x1f'),'content':_0x304afa(_0x2f7d8c,_0x3d97('0x8'),_0x54d231)};}});const _0x2618cf=_0x461da7[_0x3d97('0x28')]();_0x1ecd52[_0x3d97('0x5')][_0x3d97('0x32')](_0x3d97('0x1d'),_0x3d97('0x3d'),_0x3d97('0x9'),_0x2618cf),_0x1ecd52['_suggestionFactory'][_0x3d97('0x32')](_0x3d97('0x1d'),_0x3d97('0x37'),_0x3d97('0x9'),_0x2618cf);}}
23
+ const _0x348c=['highest','_acceptFormatSuggestionCallbackFactory','name','registerCustomCallback','commands','removeMarker:suggestion','setTableColumnHeader','TableUtils','options','get','addMarker:suggestion','_splitMarkerName','createPositionBefore','parent','consumable','removeAttribute','markBlockFormat','FORMAT_HEADER_COLUMN','findAncestor','includes','formatBlock','data-suggestion','markerName','TableEditing','start','addClass','createPositionAfter','markerNameToElements','last','_descriptionFactory','locale','from','createRange','FORMAT_HEADER_ROW','*Format:*\x20%0','TrackChangesEditing','plugins','isBefore','writer','getAttribute','enableCommand','model','getCellLocation','nodeAfter','commandName','table','change','has','toViewElement','getChild','first','value','FORMAT_REGULAR_ROW','markerRange','createTableWalker','setTableRowHeader','getColumnIndexes','getSuggestion','bindElementToMarker','mapper','ck-suggestion-marker-','ck-suggestion-marker--active','forceValue','stop','getRowIndexes','getSelectionAffectedTableCells','data','commandParams','index','activeMarkers','headingColumns','removeClass','registerDescriptionCallback','_suggestionFactory','unbindElementFromMarkerName','accept','downcastDispatcher','afterInit','FORMAT_REGULAR_COLUMN','consume','cell','document','childCount','editing'];(function(_0x39bb16,_0x348c9e){const _0x56b2ac=function(_0x5baaae){while(--_0x5baaae){_0x39bb16['push'](_0x39bb16['shift']());}};_0x56b2ac(++_0x348c9e);}(_0x348c,0x156));const _0x56b2=function(_0x39bb16,_0x348c9e){_0x39bb16=_0x39bb16-0x0;let _0x56b2ac=_0x348c[_0x39bb16];return _0x56b2ac;};import{Plugin as _0x56b511}from'ckeditor5/src/core';import _0x144de8 from'./table';import{getTranslation as _0x3148f1}from'../utils/common-translations';export default class lt extends _0x56b511{static get['requires'](){return[_0x144de8];}[_0x56b2('0x47')](){const _0x381c6b=this['editor'];if(!_0x381c6b[_0x56b2('0x1e')][_0x56b2('0x29')](_0x56b2('0x11')))return;const _0x3ef7a5=_0x381c6b[_0x56b2('0x18')],_0x2d339e=_0x381c6b['plugins'][_0x56b2('0x3')](_0x56b2('0x1d')),_0x3a20ee=_0x381c6b[_0x56b2('0x1e')][_0x56b2('0x3')](_0x56b2('0x1')),_0x41c04a=_0x381c6b[_0x56b2('0x1e')][_0x56b2('0x3')](_0x144de8);function _0x7414d5({showActiveMarker:_0x3ac8e7=!0x0,setDataAttribute:_0x6746=!0x0}={}){return(_0x1ed864,_0x231feb,_0x49e760)=>{const {type:_0x51b525,id:_0x39f169}=_0x2d339e[_0x56b2('0x5')](_0x231feb[_0x56b2('0x10')]),_0x1d38e4=_0x2d339e[_0x56b2('0x33')](_0x39f169);if(!_0x1d38e4[_0x56b2('0x3c')]||_0x56b2('0x0')!=_0x1d38e4[_0x56b2('0x3c')]['commandName'])return;if(_0x231feb['item'])return void _0x1ed864[_0x56b2('0x39')]();if(!_0x49e760[_0x56b2('0x8')][_0x56b2('0x49')](_0x231feb['markerRange'],_0x1ed864[_0x56b2('0x50')]))return;const _0x4477a7=_0x231feb[_0x56b2('0x2f')][_0x56b2('0x12')][_0x56b2('0x25')],_0x3a865e=_0x231feb[_0x56b2('0x2f')]['end']['nodeBefore'],_0xe6680c=_0x4477a7[_0x56b2('0x7')][_0x56b2('0x7')],{column:_0x3e4cc5}=_0x3a20ee['getCellLocation'](_0x4477a7),{column:_0x449e9b}=_0x3a20ee[_0x56b2('0x24')](_0x3a865e);for(let _0x1d4aeb=_0x3e4cc5;_0x1d4aeb<=_0x449e9b;_0x1d4aeb++){const _0x16bcb8=_0x3a20ee[_0x56b2('0x30')](_0xe6680c,{'column':_0x1d4aeb,'includeAllSlots':!0x1});for(const _0x52ec65 of _0x16bcb8){const _0x389b72=_0x52ec65['cell'],_0x2a1bad=_0x49e760[_0x56b2('0x35')][_0x56b2('0x2a')](_0x389b72);_0x49e760['writer']['addClass'](_0x56b2('0x36')+_0x51b525,_0x2a1bad),_0x6746&&_0x49e760[_0x56b2('0x20')]['setAttribute'](_0x56b2('0xf'),_0x39f169,_0x2a1bad),_0x49e760[_0x56b2('0x35')][_0x56b2('0x34')](_0x2a1bad,_0x231feb['markerName']),_0x3ac8e7&&(_0x2d339e[_0x56b2('0x3f')][_0x56b2('0xd')](_0x231feb[_0x56b2('0x10')])?_0x49e760[_0x56b2('0x20')][_0x56b2('0x13')](_0x56b2('0x37'),_0x2a1bad):_0x49e760[_0x56b2('0x20')][_0x56b2('0x41')](_0x56b2('0x37'),_0x2a1bad));}}};}_0x2d339e[_0x56b2('0x22')]('setTableRowHeader',(_0x58471c,_0x30b115)=>{const _0x1c62b7=_0x3a20ee[_0x56b2('0x3b')](_0x381c6b[_0x56b2('0x23')][_0x56b2('0x4b')]['selection']),_0x45ceca=_0x3a20ee[_0x56b2('0x3a')](_0x1c62b7),_0x1beaa2=_0x1c62b7[0x0][_0x56b2('0xc')](_0x56b2('0x27')),_0x31267a=_0x1beaa2[_0x56b2('0x21')]('headingRows')||0x0,_0x1af624=_0x30b115&&null!==_0x30b115['forceValue']?_0x30b115[_0x56b2('0x38')]:!_0x381c6b[_0x56b2('0x52')]['get'](_0x56b2('0x31'))[_0x56b2('0x2d')],_0x4cbfb8=_0x1af624?_0x45ceca['last']:_0x45ceca[_0x56b2('0x2c')],_0x5dfbae=_0x1beaa2[_0x56b2('0x2b')](_0x4cbfb8);let _0x188449;if(_0x1af624){const _0x5bcee9=_0x1beaa2['getChild'](_0x31267a);if(_0x5dfbae[_0x56b2('0x3e')]<_0x5bcee9[_0x56b2('0x3e')])return;_0x188449=_0x381c6b[_0x56b2('0x23')][_0x56b2('0x1a')](_0x381c6b[_0x56b2('0x23')][_0x56b2('0x6')](_0x5bcee9['getChild'](0x0)),_0x381c6b[_0x56b2('0x23')][_0x56b2('0x14')](_0x5dfbae[_0x56b2('0x2b')](_0x5dfbae[_0x56b2('0x4c')]-0x1)));}else{const _0x559c0c=_0x1beaa2[_0x56b2('0x2b')](_0x31267a-0x1);if(!_0x559c0c)return;_0x188449=_0x381c6b[_0x56b2('0x23')][_0x56b2('0x1a')](_0x381c6b[_0x56b2('0x23')][_0x56b2('0x6')](_0x5dfbae[_0x56b2('0x2b')](0x0)),_0x381c6b[_0x56b2('0x23')][_0x56b2('0x14')](_0x559c0c[_0x56b2('0x2b')](_0x559c0c['childCount']-0x1)));}_0x381c6b[_0x56b2('0x23')][_0x56b2('0x28')](()=>{_0x2d339e[_0x56b2('0xa')](_0x188449,{'commandName':_0x56b2('0x31'),'commandParams':[{'forceValue':_0x1af624}]},[],_0x56b2('0x31'));});}),_0x2d339e[_0x56b2('0x22')](_0x56b2('0x0'),(_0x36800c,_0x2f644b)=>{const _0x2e85a7=_0x381c6b[_0x56b2('0x1e')][_0x56b2('0x3')]('TableUtils'),_0x4d5d54=_0x2e85a7[_0x56b2('0x3b')](_0x381c6b['model']['document']['selection']),_0xc7c998=_0x2e85a7[_0x56b2('0x32')](_0x4d5d54),_0x49abf7=_0x4d5d54[0x0][_0x56b2('0xc')](_0x56b2('0x27')),_0x488a47=_0x49abf7[_0x56b2('0x21')](_0x56b2('0x40'))||0x0,_0x586bab=_0x2f644b&&null!==_0x2f644b[_0x56b2('0x38')]?_0x2f644b['forceValue']:!_0x381c6b['commands']['get'](_0x56b2('0x0'))[_0x56b2('0x2d')];let _0x262e2b;const _0x1e4dac=_0x49abf7[_0x56b2('0x2b')](0x0),_0x1b9cdb=_0x586bab?_0xc7c998[_0x56b2('0x16')]:_0xc7c998[_0x56b2('0x2c')],_0x404b31=_0x2e85a7['createTableWalker'](_0x49abf7,{'startRow':0x0,'column':_0x1b9cdb,'includeAllSlots':!0x1}),_0x56b6b2=Array[_0x56b2('0x19')](_0x404b31)[0x0][_0x56b2('0x4a')];if(_0x586bab){const _0x45bbd9=_0x1e4dac[_0x56b2('0x2b')](_0x488a47);if(_0x56b6b2[_0x56b2('0x1f')](_0x45bbd9))return;_0x262e2b=_0x381c6b[_0x56b2('0x23')][_0x56b2('0x1a')](_0x381c6b[_0x56b2('0x23')][_0x56b2('0x6')](_0x45bbd9),_0x381c6b[_0x56b2('0x23')][_0x56b2('0x14')](_0x56b6b2));}else{const _0x160275=_0x1e4dac[_0x56b2('0x2b')](_0x488a47-0x1);if(!_0x160275)return;_0x262e2b=_0x381c6b[_0x56b2('0x23')][_0x56b2('0x1a')](_0x381c6b['model'][_0x56b2('0x6')](_0x56b6b2),_0x381c6b[_0x56b2('0x23')][_0x56b2('0x14')](_0x160275));}_0x381c6b[_0x56b2('0x23')][_0x56b2('0x28')](()=>{_0x2d339e[_0x56b2('0xa')](_0x262e2b,{'commandName':_0x56b2('0x0'),'commandParams':[{'forceValue':_0x586bab}]},[],_0x56b2('0x0'));});}),_0x381c6b[_0x56b2('0x4d')]['downcastDispatcher']['on']('addMarker:suggestion',_0x7414d5(),{'priority':_0x56b2('0x4e')}),_0x381c6b[_0x56b2('0x3c')]['downcastDispatcher']['on'](_0x56b2('0x4'),(_0x3aa617,_0x804be2,_0x14115f)=>{_0x14115f[_0x56b2('0x2')]['showSuggestionHighlights']&&_0x7414d5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3aa617,_0x804be2,_0x14115f);},{'priority':_0x56b2('0x4e')}),_0x381c6b[_0x56b2('0x4d')][_0x56b2('0x46')]['on'](_0x56b2('0x53'),(_0x4341b1,_0x1dc7f2,_0x575370)=>{const {type:_0x5ebc48,id:_0x5ce00f}=_0x2d339e[_0x56b2('0x5')](_0x1dc7f2[_0x56b2('0x10')]),_0x5d58be=_0x2d339e[_0x56b2('0x33')](_0x5ce00f);if(!_0x5d58be['data']||_0x56b2('0x0')!=_0x5d58be[_0x56b2('0x3c')][_0x56b2('0x26')])return;const _0x54ee8e=_0x575370[_0x56b2('0x35')][_0x56b2('0x15')](_0x1dc7f2['markerName']);if(_0x54ee8e)for(const _0x375813 of _0x54ee8e)_0x575370[_0x56b2('0x20')][_0x56b2('0x41')]('ck-suggestion-marker-'+_0x5ebc48,_0x375813),_0x575370[_0x56b2('0x20')][_0x56b2('0x41')](_0x56b2('0x37'),_0x375813),_0x575370[_0x56b2('0x20')][_0x56b2('0x9')]('data-suggestion',_0x375813),_0x575370[_0x56b2('0x35')][_0x56b2('0x44')](_0x375813,_0x1dc7f2[_0x56b2('0x10')]);},{'priority':_0x56b2('0x4e')}),_0x2d339e[_0x56b2('0x17')][_0x56b2('0x42')](_0x45c95f=>{const {data:_0x1590e9}=_0x45c95f;if(_0x1590e9){if(_0x56b2('0x31')==_0x1590e9['commandName']){const _0x310de1=_0x1590e9[_0x56b2('0x3d')][0x0][_0x56b2('0x38')];return _0x548a49(_0x3148f1(_0x3ef7a5,_0x310de1?_0x56b2('0x1b'):_0x56b2('0x2e')));}if(_0x56b2('0x0')==_0x1590e9[_0x56b2('0x26')]){const _0x4b2934=_0x1590e9['commandParams'][0x0][_0x56b2('0x38')];return _0x548a49(_0x3148f1(_0x3ef7a5,_0x4b2934?_0x56b2('0xb'):_0x56b2('0x48')));}}function _0x548a49(_0x25c971){return{'type':'format','content':_0x3148f1(_0x3ef7a5,_0x56b2('0x1c'),_0x25c971)};}});const _0x586258=_0x41c04a[_0x56b2('0x4f')]();_0x2d339e[_0x56b2('0x43')][_0x56b2('0x51')](_0x56b2('0xe'),_0x56b2('0x31'),_0x56b2('0x45'),_0x586258),_0x2d339e[_0x56b2('0x43')][_0x56b2('0x51')](_0x56b2('0xe'),_0x56b2('0x0'),_0x56b2('0x45'),_0x586258);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49c2=['cell','find','getSuggestions','stop','table','createTableWalker','selection','getAncestors','add','registerDescriptionCallback','element','getFirstPosition','_areSelectedCellsMergable','mergeTableCells','size','model','insertion','mergeTableCellRight','_suggestionFactory','return','root','requires','_acceptFormatSuggestionCallbackFactory','_areMergableCells','trackChanges','length','forceDefaultExecution','commandName','fromRange','document','map','has','author','direction','set:isEnabled','highest','push','detach','mergeTableCellUp','_tablePostFixingSubtypes','filter','editor','mergeTableCellDown','get','type','_isForcedDefaultExecutionBlock','format','*Split\x20cell:*\x20vertically','*Merge\x20cells*','TableUtils','*Split\x20cell:*\x20horizontally','subType','refresh','registerCustomCallback','accept','getRanges','_descriptionFactory','afterInit','rootName','createRangeOn','splitTableCellHorizontally','execute','splitTableCellVertically','TrackChangesEditing','value','mergeTableCellLeft','getSelectionAffectedTableCells','markMultiRangeBlockFormat','formatBlock','locale','plugins','change','commands','from','findAncestor','tableCell','enableCommand'];(function(_0x3db3a0,_0x49c2ff){const _0x4f68b5=function(_0x36a600){while(--_0x36a600){_0x3db3a0['push'](_0x3db3a0['shift']());}};_0x4f68b5(++_0x49c2ff);}(_0x49c2,0x167));const _0x4f68=function(_0x3db3a0,_0x49c2ff){_0x3db3a0=_0x3db3a0-0x0;let _0x4f68b5=_0x49c2[_0x3db3a0];return _0x4f68b5;};import{Plugin as _0x4cfaa1}from'ckeditor5/src/core';import _0x561996 from'./table';import{LiveRange as _0x2b71c8}from'ckeditor5/src/engine';import{getTranslation as _0xa7e3e5}from'../utils/common-translations';export default class ft extends _0x4cfaa1{static get[_0x4f68('0x2f')](){return[_0x561996];}[_0x4f68('0x6')](){const _0xc80f3c=this[_0x4f68('0x43')],_0x65bccf=_0xc80f3c['model'][_0x4f68('0x37')][_0x4f68('0x20')],_0xc762d3=_0xc80f3c[_0x4f68('0x12')];if(!_0xc80f3c[_0x4f68('0x13')]['has']('TableEditing'))return;const _0x3ea4b4=_0xc80f3c[_0x4f68('0x13')][_0x4f68('0x45')](_0x4f68('0xc')),_0x6dd008=_0xc80f3c[_0x4f68('0x13')][_0x4f68('0x45')](_0x4f68('0x4b')),_0x4c8293=_0xc80f3c[_0x4f68('0x13')][_0x4f68('0x45')](_0x561996);_0x4c8293[_0x4f68('0x41')][_0x4f68('0x3e')]('mergeTableCells'),_0x3ea4b4[_0x4f68('0x19')](_0x4f68('0x27'),()=>{const _0x3ddf52=_0x6dd008['getSelectionAffectedTableCells'](_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x37')][_0x4f68('0x20')]);_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x14')](()=>{_0x3ea4b4[_0x4f68('0x10')](_0x3ddf52,{'commandName':'mergeTableCells','commandParams':[]},[],_0x4f68('0x27'));});}),_0xc80f3c['commands']['get'](_0x4f68('0x27'))['on']('execute',(_0x3e9828,_0x2402bb)=>{_0xc80f3c['commands'][_0x4f68('0x45')](_0x4f68('0x32'))[_0x4f68('0xd')]&&(_0x2402bb['length']>0x0&&_0x2402bb[_0x2402bb[_0x4f68('0x33')]-0x1]&&_0x2402bb[_0x2402bb[_0x4f68('0x33')]-0x1][_0x4f68('0x34')]||_0x3ea4b4[_0x4f68('0x47')]||this[_0x4f68('0x26')]()||_0x3e9828['stop']());},{'priority':_0x4f68('0x3d')});for(const _0x57f11c of[_0x4f68('0x40'),_0x4f68('0x2b'),'mergeTableCellDown',_0x4f68('0xe')]){const _0x4e7202=_0xc80f3c[_0x4f68('0x15')][_0x4f68('0x45')](_0x57f11c);_0x3ea4b4[_0x4f68('0x19')](_0x57f11c,()=>{const _0x35fe51=_0xc80f3c['model'][_0x4f68('0x37')][_0x4f68('0x20')][_0x4f68('0x25')]()[_0x4f68('0x21')]()[_0x4f68('0x1b')](_0xd90825=>_0xd90825['is'](_0x4f68('0x24'),_0x4f68('0x18'))),_0x8a8bb5=_0x4e7202[_0x4f68('0xd')];_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x14')](()=>{_0x3ea4b4['markMultiRangeBlockFormat']([_0x35fe51,_0x8a8bb5],{'commandName':_0x4f68('0x27'),'commandParams':[]},[],_0x4f68('0x27'));});});}for(const _0x489fbe of[_0x4f68('0xb'),'splitTableCellHorizontally']){const _0x599b4c=_0xc80f3c[_0x4f68('0x15')]['get'](_0x489fbe);_0x3ea4b4[_0x4f68('0x19')](_0x489fbe,()=>{const _0x326106=_0x6dd008[_0x4f68('0xf')](_0xc80f3c['model'][_0x4f68('0x37')][_0x4f68('0x20')])[0x0],_0xe01268=_0x326106[_0x4f68('0x17')](_0x4f68('0x1e')),{column:_0x5087f9,row:_0x48a5d1}=_0x6dd008['getCellLocation'](_0x326106);let _0x19ae48=[];if('horizontally'==_0x599b4c[_0x4f68('0x3b')]){const _0x26ff64=_0x6dd008[_0x4f68('0x1f')](_0xe01268,{'startRow':_0x48a5d1,'endRow':_0x48a5d1,'includeAllSlots':!0x0});_0x19ae48=Array[_0x4f68('0x16')](_0x26ff64)['map'](_0x1b2ef1=>_0x1b2ef1[_0x4f68('0x1a')]);}else{const _0x8fda71=_0x6dd008[_0x4f68('0x1f')](_0xe01268,{'column':_0x5087f9,'includeAllSlots':!0x0});_0x19ae48=Array[_0x4f68('0x16')](_0x8fda71)[_0x4f68('0x38')](_0x433225=>_0x433225[_0x4f68('0x1a')]);}_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x14')](_0x4ce7d6=>{_0x3ea4b4['markBlockFormat'](_0x4ce7d6[_0x4f68('0x8')](_0x326106),{'commandName':_0x489fbe,'commandParams':[]},_0x19ae48,_0x489fbe);});});}_0x3ea4b4['_descriptionFactory'][_0x4f68('0x23')](_0x3975a4=>{const {data:_0x339e84}=_0x3975a4;if(_0x339e84)return _0x4f68('0x27')==_0x339e84[_0x4f68('0x35')]?{'type':_0x4f68('0x48'),'content':_0xa7e3e5(_0xc762d3,_0x4f68('0x4a'))}:void 0x0;}),_0x3ea4b4[_0x4f68('0x5')][_0x4f68('0x23')](_0x5ec265=>{const {data:_0x17c3bd}=_0x5ec265;if(_0x17c3bd)return _0x4f68('0xb')==_0x17c3bd[_0x4f68('0x35')]?{'type':_0x4f68('0x48'),'content':_0xa7e3e5(_0xc762d3,_0x4f68('0x49'))}:_0x4f68('0x9')==_0x17c3bd[_0x4f68('0x35')]?{'type':_0x4f68('0x48'),'content':_0xa7e3e5(_0xc762d3,_0x4f68('0x4c'))}:void 0x0;});const _0x40adb8=_0x4c8293[_0x4f68('0x30')]();for(const _0x345e1c of[_0x4f68('0x40'),_0x4f68('0x2b'),_0x4f68('0x44'),'mergeTableCellLeft'])_0x3ea4b4['_suggestionFactory'][_0x4f68('0x2')](_0x4f68('0x11'),_0x345e1c,_0x4f68('0x3'),_0x40adb8);for(const _0x18b9df of[_0x4f68('0xb'),_0x4f68('0x9')])_0x3ea4b4[_0x4f68('0x2c')][_0x4f68('0x2')](_0x4f68('0x11'),_0x18b9df,_0x4f68('0x3'),_0x40adb8);_0x3ea4b4['_suggestionFactory'][_0x4f68('0x2')]('formatBlock',_0x4f68('0x27'),'accept',_0x238080=>{_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x14')](_0x1b177f=>{const _0xd048c1=Array[_0x4f68('0x16')](_0x65bccf[_0x4f68('0x4')]())[_0x4f68('0x38')](_0x39a3fa=>_0x2b71c8[_0x4f68('0x36')](_0x39a3fa));_0x1b177f['setSelection'](_0x238080),_0xc80f3c[_0x4f68('0x15')][_0x4f68('0x45')](_0x4f68('0x27'))[_0x4f68('0x1')](),_0xc80f3c[_0x4f68('0xa')](_0x4f68('0x27'),{'forceDefaultExecution':!0x0});const _0x51b3a6=_0xd048c1[_0x4f68('0x42')](_0x92fbbf=>'$graveyard'!=_0x92fbbf[_0x4f68('0x2e')][_0x4f68('0x7')]);_0x51b3a6[_0x4f68('0x33')]>0x0&&_0x1b177f['setSelection'](_0x51b3a6);for(const _0x16376b of _0xd048c1)_0x16376b[_0x4f68('0x3f')]();});});for(const _0x1352a5 of[_0x4f68('0x40'),'mergeTableCellDown',_0x4f68('0xe'),_0x4f68('0x2b')]){const _0x93eba4=_0xc80f3c[_0x4f68('0x15')][_0x4f68('0x45')](_0x1352a5);_0x93eba4['on'](_0x4f68('0x3c'),(_0x19af19,_0x9a2356,_0xe991ea)=>{if(_0xe991ea){const _0x3f0119=_0xc80f3c[_0x4f68('0x29')][_0x4f68('0x37')][_0x4f68('0x20')][_0x4f68('0x25')]()[_0x4f68('0x21')]()[_0x4f68('0x1b')](_0x110a6c=>_0x110a6c['is']('element',_0x4f68('0x18')));this['_areMergableCells'](_0x93eba4[_0x4f68('0xd')],_0x3f0119)||(_0x19af19[_0x4f68('0x2d')]=!0x1,_0x19af19[_0x4f68('0x1d')]());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x912876=this[_0x4f68('0x43')][_0x4f68('0x15')][_0x4f68('0x45')](_0x4f68('0x27')),_0x23a49c=this['editor']['plugins'][_0x4f68('0x45')]('TableUtils');if(!_0x912876['isEnabled'])return!0x1;const _0xb253ea=_0x23a49c[_0x4f68('0xf')](this['editor'][_0x4f68('0x29')][_0x4f68('0x37')]['selection']);for(const _0x1b09e0 of _0xb253ea)for(const _0x3e375f of _0xb253ea)if(_0x1b09e0!=_0x3e375f&&!this[_0x4f68('0x31')](_0x1b09e0,_0x3e375f))return!0x1;return!0x0;}[_0x4f68('0x31')](_0x517403,_0x1f52d3){const _0x5005e2=this[_0x4f68('0x43')][_0x4f68('0x13')][_0x4f68('0x45')](_0x4f68('0xc')),_0x3d9335=this[_0x4f68('0x43')][_0x4f68('0x29')][_0x4f68('0x8')](_0x517403),_0x610fb9=this[_0x4f68('0x43')][_0x4f68('0x29')][_0x4f68('0x8')](_0x1f52d3),_0x44d4ce=new Set(),_0x28e89e=new Set();for(const _0x38a9e7 of _0x5005e2[_0x4f68('0x1c')]())if((_0x4f68('0x2a')==_0x38a9e7['type']||'deletion'==_0x38a9e7[_0x4f68('0x46')]||_0x4f68('0x27')==_0x38a9e7[_0x4f68('0x0')])&&_0x38a9e7['isInContent'])for(const _0x2820a0 of _0x38a9e7['getRanges']())_0x2820a0['containsRange'](_0x3d9335,!0x0)&&_0x44d4ce[_0x4f68('0x22')](_0x38a9e7[_0x4f68('0x46')]+':'+_0x38a9e7[_0x4f68('0x3a')]['id']),_0x2820a0['containsRange'](_0x610fb9,!0x0)&&_0x28e89e['add'](_0x38a9e7[_0x4f68('0x46')]+':'+_0x38a9e7[_0x4f68('0x3a')]['id']);if(_0x44d4ce[_0x4f68('0x28')]!=_0x28e89e[_0x4f68('0x28')])return!0x1;for(const _0x4c3734 of _0x44d4ce)if(!_0x28e89e[_0x4f68('0x39')](_0x4c3734))return!0x1;return!0x0;}}
23
+ const _0x5873=['forceDefaultExecution','add','size','mergeTableCellLeft','cell','direction','getRanges','type','document','TableEditing','editor','_areMergableCells','afterInit','*Split\x20cell:*\x20horizontally','_isForcedDefaultExecutionBlock','$graveyard','*Merge\x20cells*','stop','return','filter','mergeTableCellUp','findAncestor','_tablePostFixingSubtypes','getSelectionAffectedTableCells','_suggestionFactory','from','mergeTableCellDown','formatBlock','change','containsRange','length','enableCommand','locale','author','plugins','rootName','createTableWalker','highest','TableUtils','_descriptionFactory','mergeTableCellRight','find','getFirstPosition','mergeTableCells','map','commands','root','execute','registerCustomCallback','trackChanges','selection','markBlockFormat','getAncestors','splitTableCellVertically','horizontally','subType','tableCell','createRangeOn','value','element','getCellLocation','refresh','format','commandName','detach','has','requires','fromRange','registerDescriptionCallback','push','low','deletion','markMultiRangeBlockFormat','model','setSelection','accept','_areSelectedCellsMergable','splitTableCellHorizontally','isEnabled','set:isEnabled','get'];(function(_0x5b45bb,_0x58732d){const _0xae00d3=function(_0xc05351){while(--_0xc05351){_0x5b45bb['push'](_0x5b45bb['shift']());}};_0xae00d3(++_0x58732d);}(_0x5873,0x1e3));const _0xae00=function(_0x5b45bb,_0x58732d){_0x5b45bb=_0x5b45bb-0x0;let _0xae00d3=_0x5873[_0x5b45bb];return _0xae00d3;};import{Plugin as _0x1f06c6}from'ckeditor5/src/core';import _0x157129 from'./table';import{LiveRange as _0x569439}from'ckeditor5/src/engine';import{getTranslation as _0x3d0404}from'../utils/common-translations';export default class gt extends _0x1f06c6{static get[_0xae00('0x45')](){return[_0x157129];}[_0xae00('0xf')](){const _0x1b0d99=this[_0xae00('0xd')],_0x4168ac=_0x1b0d99[_0xae00('0x4c')][_0xae00('0xb')]['selection'],_0x5a893f=_0x1b0d99[_0xae00('0x23')];if(!_0x1b0d99['plugins'][_0xae00('0x44')](_0xae00('0xc')))return;const _0x2e5ad0=_0x1b0d99[_0xae00('0x25')][_0xae00('0x2')]('TrackChangesEditing'),_0x5df32e=_0x1b0d99[_0xae00('0x25')][_0xae00('0x2')](_0xae00('0x29')),_0x31be95=_0x1b0d99['plugins'][_0xae00('0x2')](_0x157129);_0x31be95[_0xae00('0x19')][_0xae00('0x48')]('mergeTableCells'),_0x2e5ad0['enableCommand'](_0xae00('0x2e'),()=>{const _0x5023db=_0x5df32e[_0xae00('0x1a')](_0x1b0d99['model'][_0xae00('0xb')]['selection']);_0x1b0d99['model']['change'](()=>{_0x2e5ad0[_0xae00('0x4b')](_0x5023db,{'commandName':_0xae00('0x2e'),'commandParams':[]},[],_0xae00('0x2e'));});}),_0x1b0d99[_0xae00('0x30')][_0xae00('0x2')](_0xae00('0x2e'))['on'](_0xae00('0x32'),(_0x3bcca5,_0x5b7ad9)=>{_0x1b0d99['commands'][_0xae00('0x2')](_0xae00('0x34'))[_0xae00('0x3d')]&&(_0x5b7ad9[_0xae00('0x21')]>0x0&&_0x5b7ad9[_0x5b7ad9[_0xae00('0x21')]-0x1]&&_0x5b7ad9[_0x5b7ad9[_0xae00('0x21')]-0x1][_0xae00('0x3')]||_0x2e5ad0[_0xae00('0x11')]||this[_0xae00('0x4f')]()||_0x3bcca5[_0xae00('0x14')]());},{'priority':_0xae00('0x28')});for(const _0x53681d of[_0xae00('0x17'),_0xae00('0x2b'),_0xae00('0x1d'),_0xae00('0x6')]){const _0x143338=_0x1b0d99['commands'][_0xae00('0x2')](_0x53681d);_0x2e5ad0[_0xae00('0x22')](_0x53681d,()=>{const _0x3d43d5=_0x1b0d99['model'][_0xae00('0xb')][_0xae00('0x35')][_0xae00('0x2d')]()[_0xae00('0x37')]()[_0xae00('0x2c')](_0x57680d=>_0x57680d['is'](_0xae00('0x3e'),'tableCell')),_0x3a0a3a=_0x143338[_0xae00('0x3d')];_0x1b0d99['model'][_0xae00('0x1f')](()=>{_0x2e5ad0[_0xae00('0x4b')]([_0x3d43d5,_0x3a0a3a],{'commandName':_0xae00('0x2e'),'commandParams':[]},[],_0xae00('0x2e'));});});}for(const _0x151a24 of[_0xae00('0x38'),'splitTableCellHorizontally']){const _0x1e54c3=_0x1b0d99[_0xae00('0x30')][_0xae00('0x2')](_0x151a24);_0x2e5ad0[_0xae00('0x22')](_0x151a24,()=>{const _0x48e63e=_0x5df32e[_0xae00('0x1a')](_0x1b0d99['model'][_0xae00('0xb')]['selection'])[0x0],_0x3559e4=_0x48e63e[_0xae00('0x18')]('table'),{column:_0x54984b,row:_0x1ab1e6}=_0x5df32e[_0xae00('0x3f')](_0x48e63e);let _0x2cc86e=[];if(_0xae00('0x39')==_0x1e54c3[_0xae00('0x8')]){const _0x509ce6=_0x5df32e[_0xae00('0x27')](_0x3559e4,{'startRow':_0x1ab1e6,'endRow':_0x1ab1e6,'includeAllSlots':!0x0});_0x2cc86e=Array[_0xae00('0x1c')](_0x509ce6)[_0xae00('0x2f')](_0xcd8618=>_0xcd8618[_0xae00('0x7')]);}else{const _0x6d24df=_0x5df32e[_0xae00('0x27')](_0x3559e4,{'column':_0x54984b,'includeAllSlots':!0x0});_0x2cc86e=Array[_0xae00('0x1c')](_0x6d24df)[_0xae00('0x2f')](_0x5c8b6f=>_0x5c8b6f[_0xae00('0x7')]);}_0x1b0d99[_0xae00('0x4c')]['change'](_0x1732a3=>{_0x2e5ad0[_0xae00('0x36')](_0x1732a3[_0xae00('0x3c')](_0x48e63e),{'commandName':_0x151a24,'commandParams':[]},_0x2cc86e,_0x151a24);});});}_0x2e5ad0[_0xae00('0x2a')][_0xae00('0x47')](_0x56e885=>{const {data:_0x16e3b6}=_0x56e885;if(_0x16e3b6)return _0xae00('0x2e')==_0x16e3b6[_0xae00('0x42')]?{'type':_0xae00('0x41'),'content':_0x3d0404(_0x5a893f,_0xae00('0x13'))}:void 0x0;}),_0x2e5ad0[_0xae00('0x2a')]['registerDescriptionCallback'](_0x538036=>{const {data:_0x52c8b9}=_0x538036;if(_0x52c8b9)return _0xae00('0x38')==_0x52c8b9[_0xae00('0x42')]?{'type':_0xae00('0x41'),'content':_0x3d0404(_0x5a893f,'*Split\x20cell:*\x20vertically')}:_0xae00('0x50')==_0x52c8b9[_0xae00('0x42')]?{'type':'format','content':_0x3d0404(_0x5a893f,_0xae00('0x10'))}:void 0x0;});const _0x1e1b5d=_0x31be95['_acceptFormatSuggestionCallbackFactory']();for(const _0x1ea81d of[_0xae00('0x17'),_0xae00('0x2b'),_0xae00('0x1d'),_0xae00('0x6')])_0x2e5ad0['_suggestionFactory'][_0xae00('0x33')](_0xae00('0x1e'),_0x1ea81d,'accept',_0x1e1b5d);for(const _0x1be6e6 of[_0xae00('0x38'),_0xae00('0x50')])_0x2e5ad0[_0xae00('0x1b')][_0xae00('0x33')](_0xae00('0x1e'),_0x1be6e6,_0xae00('0x4e'),_0x1e1b5d);_0x2e5ad0['_suggestionFactory'][_0xae00('0x33')](_0xae00('0x1e'),_0xae00('0x2e'),_0xae00('0x4e'),_0x5da726=>{_0x1b0d99[_0xae00('0x4c')][_0xae00('0x1f')](_0x36dc0c=>{const _0xc9e791=Array[_0xae00('0x1c')](_0x4168ac[_0xae00('0x9')]())[_0xae00('0x2f')](_0x20c9d5=>_0x569439[_0xae00('0x46')](_0x20c9d5));_0x36dc0c[_0xae00('0x4d')](_0x5da726),_0x1b0d99[_0xae00('0x30')][_0xae00('0x2')](_0xae00('0x2e'))[_0xae00('0x40')](),_0x1b0d99[_0xae00('0x32')]('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c2e3e=_0xc9e791[_0xae00('0x16')](_0x222f00=>_0xae00('0x12')!=_0x222f00[_0xae00('0x31')][_0xae00('0x26')]);_0x1c2e3e[_0xae00('0x21')]>0x0&&_0x36dc0c[_0xae00('0x4d')](_0x1c2e3e);for(const _0x36d3c9 of _0xc9e791)_0x36d3c9[_0xae00('0x43')]();});});for(const _0x4e3f4b of[_0xae00('0x17'),_0xae00('0x1d'),_0xae00('0x6'),_0xae00('0x2b')]){const _0x53f4f5=_0x1b0d99['commands'][_0xae00('0x2')](_0x4e3f4b);_0x53f4f5['on'](_0xae00('0x1'),(_0x2fc631,_0x3d2447,_0xb76e55)=>{if(_0xb76e55){const _0x1c9caa=_0x1b0d99['model'][_0xae00('0xb')][_0xae00('0x35')][_0xae00('0x2d')]()[_0xae00('0x37')]()[_0xae00('0x2c')](_0x328bbe=>_0x328bbe['is'](_0xae00('0x3e'),_0xae00('0x3b')));this[_0xae00('0xe')](_0x53f4f5[_0xae00('0x3d')],_0x1c9caa)||(_0x2fc631[_0xae00('0x15')]=!0x1,_0x2fc631[_0xae00('0x14')]());}},{'priority':_0xae00('0x49')});}}[_0xae00('0x4f')](){const _0x2497f9=this[_0xae00('0xd')][_0xae00('0x30')]['get'](_0xae00('0x2e')),_0x1e0c4b=this[_0xae00('0xd')][_0xae00('0x25')][_0xae00('0x2')](_0xae00('0x29'));if(!_0x2497f9[_0xae00('0x0')])return!0x1;const _0x56b11f=_0x1e0c4b['getSelectionAffectedTableCells'](this[_0xae00('0xd')][_0xae00('0x4c')][_0xae00('0xb')]['selection']);for(const _0x381f70 of _0x56b11f)for(const _0x277708 of _0x56b11f)if(_0x381f70!=_0x277708&&!this[_0xae00('0xe')](_0x381f70,_0x277708))return!0x1;return!0x0;}[_0xae00('0xe')](_0x243ef7,_0x4e3667){const _0xa56fb=this[_0xae00('0xd')][_0xae00('0x25')]['get']('TrackChangesEditing'),_0x330b15=this['editor']['model']['createRangeOn'](_0x243ef7),_0x34da99=this[_0xae00('0xd')][_0xae00('0x4c')]['createRangeOn'](_0x4e3667),_0x5d073f=new Set(),_0x25887d=new Set();for(const _0x1c2cd8 of _0xa56fb['getSuggestions']())if(('insertion'==_0x1c2cd8[_0xae00('0xa')]||_0xae00('0x4a')==_0x1c2cd8[_0xae00('0xa')]||_0xae00('0x2e')==_0x1c2cd8[_0xae00('0x3a')])&&_0x1c2cd8['isInContent'])for(const _0x514f7c of _0x1c2cd8[_0xae00('0x9')]())_0x514f7c['containsRange'](_0x330b15,!0x0)&&_0x5d073f[_0xae00('0x4')](_0x1c2cd8[_0xae00('0xa')]+':'+_0x1c2cd8[_0xae00('0x24')]['id']),_0x514f7c[_0xae00('0x20')](_0x34da99,!0x0)&&_0x25887d['add'](_0x1c2cd8['type']+':'+_0x1c2cd8[_0xae00('0x24')]['id']);if(_0x5d073f['size']!=_0x25887d[_0xae00('0x5')])return!0x1;for(const _0x4f27a3 of _0x5d073f)if(!_0x25887d[_0xae00('0x44')](_0x4f27a3))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2720=['isTouching','afterInit','suggestion','title-content','model','from','start','locale','registerElementLabel','plugins','createRange','document','has','updateMarker','ELEMENT_TITLE','differ','editor','_splitMarkerName','_descriptionFactory','end','removeMarker','isEqual','Title','get','TrackChangesEditing','forward','isCollapsed','getChangedMarkers','nodeBefore','schema','element','newRange'];(function(_0x12c84b,_0x27209c){const _0x49d596=function(_0x2795ea){while(--_0x2795ea){_0x12c84b['push'](_0x12c84b['shift']());}};_0x49d596(++_0x27209c);}(_0x2720,0xb2));const _0x49d5=function(_0x12c84b,_0x27209c){_0x12c84b=_0x12c84b-0x0;let _0x49d596=_0x2720[_0x12c84b];return _0x49d596;};import{Plugin as _0x56ea83}from'ckeditor5/src/core';import{getTranslation as _0x26f35c}from'../utils/common-translations';export default class mt extends _0x56ea83{[_0x49d5('0xf')](){const _0x3a151c=this[_0x49d5('0x1e')];if(!_0x3a151c['plugins'][_0x49d5('0x1a')](_0x49d5('0x4')))return;const _0x132f44=_0x3a151c[_0x49d5('0x17')][_0x49d5('0x5')](_0x49d5('0x6'));_0x132f44[_0x49d5('0x0')][_0x49d5('0x16')](_0x49d5('0x11'),()=>_0x26f35c(_0x3a151c[_0x49d5('0x15')],_0x49d5('0x1c'))),_0x3a151c['model'][_0x49d5('0x19')]['registerPostFixer'](_0x4fd99d=>{let _0x55f064=!0x1;const _0x1aed4d=Array[_0x49d5('0x13')](_0x3a151c[_0x49d5('0x12')][_0x49d5('0x19')][_0x49d5('0x1d')][_0x49d5('0x9')]());for(const {name:_0x1a424e,data:_0x101f6c}of _0x1aed4d){const {group:_0x545d27}=_0x132f44[_0x49d5('0x1f')](_0x1a424e);if(_0x49d5('0x10')!==_0x545d27||!_0x101f6c[_0x49d5('0xd')])continue;const _0x64b387=_0x101f6c['newRange'],_0x1302bb=_0x64b387[_0x49d5('0x1')][_0x49d5('0xa')];if(!_0x1302bb||!_0x1302bb['is'](_0x49d5('0xc'),'title-content'))continue;if(!_0x64b387[_0x49d5('0x14')][_0x49d5('0xe')](_0x64b387['end']))continue;const _0x1cff72=_0x3a151c[_0x49d5('0x12')][_0x49d5('0xb')]['getNearestSelectionRange'](_0x64b387[_0x49d5('0x1')],_0x49d5('0x7'));if(_0x1cff72&&_0x1cff72[_0x49d5('0x8')]){const _0x5e6f91=_0x4fd99d[_0x49d5('0x18')](_0x64b387[_0x49d5('0x14')],_0x1cff72[_0x49d5('0x14')]);_0x5e6f91[_0x49d5('0x3')](_0x64b387)||(_0x4fd99d[_0x49d5('0x1b')](_0x1a424e,{'range':_0x5e6f91}),_0x55f064=!0x0);}_0x55f064||(_0x4fd99d[_0x49d5('0x2')](_0x1a424e),_0x55f064=!0x0);}return _0x55f064;});}}
23
+ const _0xcb89=['locale','document','forward','registerPostFixer','model','isTouching','element','newRange','ELEMENT_TITLE','createRange','isCollapsed','editor','end','registerElementLabel','plugins','afterInit','has','title-content','removeMarker','start','isEqual','get','_descriptionFactory','updateMarker','schema'];(function(_0x99c559,_0xcb89f7){const _0x5893b6=function(_0x53194c){while(--_0x53194c){_0x99c559['push'](_0x99c559['shift']());}};_0x5893b6(++_0xcb89f7);}(_0xcb89,0x8c));const _0x5893=function(_0x99c559,_0xcb89f7){_0x99c559=_0x99c559-0x0;let _0x5893b6=_0xcb89[_0x99c559];return _0x5893b6;};import{Plugin as _0x2479e7}from'ckeditor5/src/core';import{getTranslation as _0x3d10c2}from'../utils/common-translations';export default class dt extends _0x2479e7{[_0x5893('0x0')](){const _0x2347c4=this[_0x5893('0x15')];if(!_0x2347c4[_0x5893('0x18')][_0x5893('0x1')]('Title'))return;const _0x42c880=_0x2347c4[_0x5893('0x18')][_0x5893('0x6')]('TrackChangesEditing');_0x42c880[_0x5893('0x7')][_0x5893('0x17')]('title-content',()=>_0x3d10c2(_0x2347c4[_0x5893('0xa')],_0x5893('0x12'))),_0x2347c4[_0x5893('0xe')][_0x5893('0xb')][_0x5893('0xd')](_0x381fc0=>{let _0x1cee01=!0x1;const _0x183647=Array['from'](_0x2347c4[_0x5893('0xe')][_0x5893('0xb')]['differ']['getChangedMarkers']());for(const {name:_0x214e1d,data:_0x556559}of _0x183647){const {group:_0x42c64f}=_0x42c880['_splitMarkerName'](_0x214e1d);if('suggestion'!==_0x42c64f||!_0x556559[_0x5893('0x11')])continue;const _0x1c2be9=_0x556559[_0x5893('0x11')],_0x2e2736=_0x1c2be9[_0x5893('0x16')]['nodeBefore'];if(!_0x2e2736||!_0x2e2736['is'](_0x5893('0x10'),_0x5893('0x2')))continue;if(!_0x1c2be9[_0x5893('0x4')][_0x5893('0xf')](_0x1c2be9[_0x5893('0x16')]))continue;const _0x2ecfba=_0x2347c4[_0x5893('0xe')][_0x5893('0x9')]['getNearestSelectionRange'](_0x1c2be9['end'],_0x5893('0xc'));if(_0x2ecfba&&_0x2ecfba[_0x5893('0x14')]){const _0x1886df=_0x381fc0[_0x5893('0x13')](_0x1c2be9[_0x5893('0x4')],_0x2ecfba[_0x5893('0x4')]);_0x1886df[_0x5893('0x5')](_0x1c2be9)||(_0x381fc0[_0x5893('0x8')](_0x214e1d,{'range':_0x1886df}),_0x1cee01=!0x0);}_0x1cee01||(_0x381fc0[_0x5893('0x3')](_0x214e1d),_0x1cee01=!0x0);}return _0x1cee01;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4606=['enableCommand','plugins','get','has','editor','undo','TrackChangesEditing','redo','afterInit','UndoEditing'];(function(_0x56195e,_0x460645){const _0xca29fc=function(_0x761631){while(--_0x761631){_0x56195e['push'](_0x56195e['shift']());}};_0xca29fc(++_0x460645);}(_0x4606,0x1ce));const _0xca29=function(_0x56195e,_0x460645){_0x56195e=_0x56195e-0x0;let _0xca29fc=_0x4606[_0x56195e];return _0xca29fc;};import{Plugin as _0x2cdcde}from'ckeditor5/src/core';export default class dt extends _0x2cdcde{[_0xca29('0x6')](){const _0x110298=this[_0xca29('0x2')],_0x4e5231=_0x110298[_0xca29('0x9')][_0xca29('0x0')](_0xca29('0x4'));_0x110298[_0xca29('0x9')][_0xca29('0x1')](_0xca29('0x7'))&&(_0x4e5231[_0xca29('0x8')](_0xca29('0x3')),_0x4e5231[_0xca29('0x8')](_0xca29('0x5')));}}
23
+ const _0x2c6a=['afterInit','plugins','undo','redo','enableCommand','editor','get','TrackChangesEditing'];(function(_0x289ad3,_0x2c6a98){const _0x2c38d0=function(_0xe82be5){while(--_0xe82be5){_0x289ad3['push'](_0x289ad3['shift']());}};_0x2c38d0(++_0x2c6a98);}(_0x2c6a,0x10e));const _0x2c38=function(_0x289ad3,_0x2c6a98){_0x289ad3=_0x289ad3-0x0;let _0x2c38d0=_0x2c6a[_0x289ad3];return _0x2c38d0;};import{Plugin as _0xcab034}from'ckeditor5/src/core';export default class pt extends _0xcab034{[_0x2c38('0x2')](){const _0x38c090=this[_0x2c38('0x7')],_0x59c17c=_0x38c090[_0x2c38('0x3')][_0x2c38('0x0')](_0x2c38('0x1'));_0x38c090[_0x2c38('0x3')]['has']('UndoEditing')&&(_0x59c17c[_0x2c38('0x6')](_0x2c38('0x4')),_0x59c17c[_0x2c38('0x6')](_0x2c38('0x5')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c8e=['span','parent','ck-suggestion-marker--active','toViewElement','addClass','writer','item','markerRange','isAtEnd','activeMarkers','element','getItems','getAttribute','mapper','push','ck-suggestion-marker-','createRangeOn','nextSibling','listItem','plugins','insert','get','getWalker','isLimit','elementEnd','markerName','toViewPosition','previousPosition','includes','isBlock','bindElementToMarker','type','start','consumable'];(function(_0x33618e,_0x2c8e3f){const _0x505840=function(_0x116acb){while(--_0x116acb){_0x33618e['push'](_0x33618e['shift']());}};_0x505840(++_0x2c8e3f);}(_0x2c8e,0x13c));const _0x5058=function(_0x33618e,_0x2c8e3f){_0x33618e=_0x33618e-0x0;let _0x505840=_0x2c8e[_0x33618e];return _0x505840;};export function getRangesWithAttribute(_0x5eb75d,_0x23440,_0x2fbab){const _0x4e8bcd=[];for(const _0x1b9d70 of _0x23440[_0x5058('0x1')]())_0x1b9d70['hasAttribute'](_0x5eb75d)&&_0x4e8bcd[_0x5058('0x4')](_0x2fbab[_0x5058('0x6')](_0x1b9d70));return _0x4e8bcd;}export function getElementsAffectedByListItemRename(_0xb5b58a){const _0x5d8f1b=[];if(_0xb5b58a['is'](_0x5058('0x0'),_0x5058('0x8'))){let _0x8d61d3=_0xb5b58a[_0x5058('0x7')];for(;_0x8d61d3&&_0x8d61d3['is']('element','listItem')&&_0x8d61d3[_0x5058('0x2')]('listIndent')>0x0;)_0x5d8f1b[_0x5058('0x4')](_0x8d61d3),_0x8d61d3=_0x8d61d3[_0x5058('0x7')];}return _0x5d8f1b;}export function downcastSplitMergeMarker(_0x2ccf8f,_0x2d4653,{showActiveMarker:_0x8427f6=!0x0}={}){const _0x25ccc1=_0x2ccf8f[_0x5058('0x9')][_0x5058('0xb')]('TrackChangesEditing');return(_0x450538,_0x4a9cf5,_0x2ceacf)=>{if(!_0x2ceacf[_0x5058('0x17')]['test'](_0x4a9cf5[_0x5058('0x1f')],_0x450538['name']))return;const _0x2a9738=_0x4a9cf5['markerRange'][_0x5058('0xc')](),_0x827b3c=_0x4a9cf5[_0x5058('0x1f')][_0x5058('0x16')],_0x1e352a=_0x2ccf8f['model']['schema'];let _0x3c4892=null,_0x5656ba=null,_0x1823c8=!0x1,_0x243938=!0x1;for(const _0x1d6da8 of _0x2a9738){const _0x2ec6f9=_0x1d6da8[_0x5058('0x1e')];_0x1823c8=_0x1823c8||_0x1e352a['isContent'](_0x2ec6f9);const _0x10bbd7=_0x2ceacf[_0x5058('0x3')][_0x5058('0x1b')](_0x2ec6f9);if(_0x10bbd7&&_0x10bbd7['getCustomProperty']('addHighlight'))return;_0x5058('0xe')==_0x1d6da8[_0x5058('0x15')]&&(_0x1e352a[_0x5058('0x13')](_0x2ec6f9)&&!_0x1e352a[_0x5058('0xd')](_0x2ec6f9)&&(_0x2ec6f9[_0x5058('0x7')]||_0x827b3c[_0x5058('0x20')]?_0x3c4892&&_0x3c4892[_0x5058('0x19')]==_0x2ec6f9||(_0x3c4892=_0x2ec6f9,_0x740ac3(_0x1d6da8['previousPosition']),_0x243938=!0x0):_0x5656ba=_0x5656ba||_0x1d6da8[_0x5058('0x11')]));}function _0x740ac3(_0x30a13a){const _0x2022b1=_0x2ceacf['writer']['createUIElement'](_0x5058('0x18'),{'class':_0x5058('0x5')+_0x2d4653}),_0x12134f=_0x2ceacf[_0x5058('0x3')][_0x5058('0x10')](_0x30a13a);_0x8427f6&&_0x25ccc1[_0x5058('0x21')][_0x5058('0x12')](_0x4a9cf5['markerName'])&&_0x2ceacf[_0x5058('0x1d')][_0x5058('0x1c')](_0x5058('0x1a'),_0x2022b1),_0x2ceacf[_0x5058('0x1d')][_0x5058('0xa')](_0x12134f,_0x2022b1),_0x2ceacf[_0x5058('0x3')][_0x5058('0x14')](_0x2022b1,_0x4a9cf5[_0x5058('0xf')]);}_0x1823c8||_0x243938||!_0x5656ba||_0x740ac3(_0x5656ba);};}
23
+ const _0x1819=['elementEnd','writer','bindElementToMarker','markerName','createUIElement','hasAttribute','getItems','nextSibling','type','schema','createRangeOn','span','get','getCustomProperty','isContent','previousPosition','parent','isLimit','item','markerRange','plugins','mapper','element','start','getAttribute','ck-suggestion-marker--active','ck-suggestion-marker-','push','getWalker','listItem','name','activeMarkers'];(function(_0x9ec379,_0x181915){const _0x45c586=function(_0x495de7){while(--_0x495de7){_0x9ec379['push'](_0x9ec379['shift']());}};_0x45c586(++_0x181915);}(_0x1819,0x8d));const _0x45c5=function(_0x9ec379,_0x181915){_0x9ec379=_0x9ec379-0x0;let _0x45c586=_0x1819[_0x9ec379];return _0x45c586;};export function getRangesWithAttribute(_0x573ddc,_0x1f5b7d,_0x32cb4b){const _0x4a1f75=[];for(const _0x4b6768 of _0x1f5b7d[_0x45c5('0x19')]())_0x4b6768[_0x45c5('0x18')](_0x573ddc)&&_0x4a1f75[_0x45c5('0xe')](_0x32cb4b[_0x45c5('0x1d')](_0x4b6768));return _0x4a1f75;}export function getElementsAffectedByListItemRename(_0xddd4c1){const _0x321ba3=[];if(_0xddd4c1['is'](_0x45c5('0x9'),_0x45c5('0x10'))){let _0x58345c=_0xddd4c1[_0x45c5('0x1a')];for(;_0x58345c&&_0x58345c['is'](_0x45c5('0x9'),'listItem')&&_0x58345c[_0x45c5('0xb')]('listIndent')>0x0;)_0x321ba3[_0x45c5('0xe')](_0x58345c),_0x58345c=_0x58345c[_0x45c5('0x1a')];}return _0x321ba3;}export function downcastSplitMergeMarker(_0x10aebe,_0x486f55,{showActiveMarker:_0x307655=!0x0}={}){const _0x3ca3d0=_0x10aebe[_0x45c5('0x7')][_0x45c5('0x1f')]('TrackChangesEditing');return(_0x2fe89b,_0x1df856,_0xaba21)=>{if(!_0xaba21['consumable']['test'](_0x1df856[_0x45c5('0x6')],_0x2fe89b[_0x45c5('0x11')]))return;const _0xfa96a2=_0x1df856['markerRange'][_0x45c5('0xf')](),_0x59b71f=_0x1df856[_0x45c5('0x6')][_0x45c5('0xa')],_0x3c731c=_0x10aebe['model'][_0x45c5('0x1c')];let _0x356c84=null,_0xcc371b=null,_0x121ead=!0x1,_0x347b34=!0x1;for(const _0x4ca767 of _0xfa96a2){const _0x229345=_0x4ca767[_0x45c5('0x5')];_0x121ead=_0x121ead||_0x3c731c[_0x45c5('0x1')](_0x229345);const _0x562c5=_0xaba21[_0x45c5('0x8')]['toViewElement'](_0x229345);if(_0x562c5&&_0x562c5[_0x45c5('0x0')]('addHighlight'))return;_0x45c5('0x13')==_0x4ca767[_0x45c5('0x1b')]&&(_0x3c731c['isBlock'](_0x229345)&&!_0x3c731c[_0x45c5('0x4')](_0x229345)&&(_0x229345[_0x45c5('0x1a')]||_0x59b71f['isAtEnd']?_0x356c84&&_0x356c84[_0x45c5('0x3')]==_0x229345||(_0x356c84=_0x229345,_0x52d3f5(_0x4ca767[_0x45c5('0x2')]),_0x347b34=!0x0):_0xcc371b=_0xcc371b||_0x4ca767[_0x45c5('0x2')]));}function _0x52d3f5(_0x15ad80){const _0x5b4ce4=_0xaba21[_0x45c5('0x14')][_0x45c5('0x17')](_0x45c5('0x1e'),{'class':_0x45c5('0xd')+_0x486f55}),_0x2220b5=_0xaba21[_0x45c5('0x8')]['toViewPosition'](_0x15ad80);_0x307655&&_0x3ca3d0[_0x45c5('0x12')]['includes'](_0x1df856['markerName'])&&_0xaba21[_0x45c5('0x14')]['addClass'](_0x45c5('0xc'),_0x5b4ce4),_0xaba21[_0x45c5('0x14')]['insert'](_0x2220b5,_0x5b4ce4),_0xaba21['mapper'][_0x45c5('0x15')](_0x5b4ce4,_0x1df856[_0x45c5('0x16')]);}_0x121ead||_0x347b34||!_0xcc371b||_0x52d3f5(_0xcc371b);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x33dc=['getContainedElement','getItems','commentThread','removeMarker','suggestion:','addMarker','head','_markerNames','addRange','length','_saved','_onDiscard','previous','removeAttribute','subType','map','attributes','getFirstMarker','getAllAdjacentSuggestions','start','_onAttributesChange','split','author','getMarkerNames','getRange','onAccept','onAttributesChange','getFirstRange','decorate','accept','reduce','delete','change','createdAt','addMarkerName','_model','markers','getRanges','type','clear','isIntersecting','hasComments','_onAccept','isMultiRange','set','nodeBefore','nodeAfter','next','toJSON','getMultiRangeId','from','discard','isIntersectingWithRange','removeMarkers','onDiscard','get','isInContent','substr','getMarkers','data'];(function(_0xbb795f,_0x33dc79){const _0x49cc92=function(_0x1d6c90){while(--_0x1d6c90){_0xbb795f['push'](_0xbb795f['shift']());}};_0x49cc92(++_0x33dc79);}(_0x33dc,0x95));const _0x49cc=function(_0xbb795f,_0x33dc79){_0xbb795f=_0xbb795f-0x0;let _0x49cc92=_0x33dc[_0xbb795f];return _0x49cc92;};import{Element as _0x4ede34}from'ckeditor5/src/engine';import{ObservableMixin as _0x33126e,mix as _0x94e7ff,uid as _0x424184}from'ckeditor5/src/utils';import{cloneDeep as _0x30a065,isEqual as _0x3ac39b,set as _0x5cc7b8,unset as _0x2acfe7}from'lodash-es';export default class o{constructor(_0x23e4e0,_0x4aa385){this['id']=_0x4aa385['id'],this[_0x49cc('0x9')]=_0x4aa385[_0x49cc('0x9')],this[_0x49cc('0x2d')]=_0x4aa385[_0x49cc('0x2d')]||null,this['author']=_0x4aa385['author'],this[_0x49cc('0x1e')]=null,this[_0x49cc('0x6')]=_0x23e4e0,this[_0x49cc('0xd')]=_0x4aa385[_0x49cc('0x38')],this[_0x49cc('0x2a')]=_0x4aa385[_0x49cc('0x19')],this[_0x49cc('0x33')]=_0x4aa385[_0x49cc('0x39')],this[_0x49cc('0x26')]=new Set(),this[_0x49cc('0xf')](_0x49cc('0x4'),null),this[_0x49cc('0xf')](_0x49cc('0x2f'),_0x4aa385[_0x49cc('0x2f')]||{}),this[_0x49cc('0xf')](_0x49cc('0x2b'),null),this['set']('next',null),this[_0x49cc('0xf')](_0x49cc('0x21'),null),this[_0x49cc('0xf')](_0x49cc('0x29'),!0x1),this[_0x49cc('0x3b')](_0x49cc('0x0')),this[_0x49cc('0x3b')](_0x49cc('0x16'));}get[_0x49cc('0x25')](){let _0x17723f=this;for(;_0x17723f[_0x49cc('0x2b')];)_0x17723f=_0x17723f[_0x49cc('0x2b')];return _0x17723f;}get[_0x49cc('0xc')](){return!!this[_0x49cc('0x21')]&&this['commentThread'][_0x49cc('0x28')]>0x0;}get[_0x49cc('0xe')](){if(0x0==this[_0x49cc('0x26')]['size'])return!0x1;return 0x6==Array[_0x49cc('0x15')](this[_0x49cc('0x26')])[0x0][_0x49cc('0x34')](':')[_0x49cc('0x28')];}get[_0x49cc('0x1b')](){return null!==this['getFirstMarker']();}[_0x49cc('0x5')](_0x5e79fb){this['_markerNames']['add'](_0x5e79fb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}[_0x49cc('0x1d')](){return this[_0x49cc('0x36')]()[_0x49cc('0x2e')](_0x2f3962=>this[_0x49cc('0x6')][_0x49cc('0x7')][_0x49cc('0x1a')](_0x2f3962))['filter'](_0x21c1df=>_0x21c1df);}[_0x49cc('0x30')](){return this['getMarkers']()[0x0]||null;}[_0x49cc('0x18')](){this['_model'][_0x49cc('0x3')](_0x10d873=>{for(const _0x4cd9e8 of this[_0x49cc('0x1d')]())_0x10d873[_0x49cc('0x22')](_0x4cd9e8);}),this[_0x49cc('0x26')][_0x49cc('0xa')]();}[_0x49cc('0x22')](_0x57b43f){this[_0x49cc('0x6')]['change'](_0xc36950=>{_0xc36950[_0x49cc('0x22')](_0x57b43f);}),this[_0x49cc('0x26')][_0x49cc('0x2')](_0x57b43f);}[_0x49cc('0x27')](_0x526b22){const _0x381f99=_0x49cc('0x23')+this['type']+':'+this['subType']+':'+this['id']+':'+this[_0x49cc('0x35')]['id']+':'+o[_0x49cc('0x14')]();this[_0x49cc('0x5')](_0x381f99),this['_model']['change'](_0x3dd781=>{_0x3dd781[_0x49cc('0x24')](_0x381f99,{'range':_0x526b22,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x49cc('0x17')](_0x10f265){for(const _0xe2f9ef of this[_0x49cc('0x8')]())if(_0xe2f9ef[_0x49cc('0xb')](_0x10f265))return!0x0;return!0x1;}[_0x49cc('0x8')](){return this[_0x49cc('0x1d')]()[_0x49cc('0x2e')](_0x115dab=>_0x115dab[_0x49cc('0x37')]());}[_0x49cc('0x20')](){return this[_0x49cc('0x8')]()[_0x49cc('0x1')]((_0x3ce81e,_0x1b396a)=>[..._0x3ce81e,..._0x1b396a[_0x49cc('0x20')]()],[]);}[_0x49cc('0x3a')](){return this[_0x49cc('0x30')]()[_0x49cc('0x37')]();}[_0x49cc('0x1f')](){const _0x207e19=this[_0x49cc('0x8')]();if(0x1!=_0x207e19[_0x49cc('0x28')])return null;const _0x4f15b1=_0x207e19[0x0],_0xe698dc=_0x4f15b1[_0x49cc('0x32')][_0x49cc('0x11')],_0x1c507b=_0x4f15b1['end'][_0x49cc('0x10')];return _0xe698dc instanceof _0x4ede34?_0xe698dc!=_0x1c507b?null:_0xe698dc:null;}['accept'](){this[_0x49cc('0xd')](this[_0x49cc('0x8')](),this['data'],this[_0x49cc('0x2f')]),this[_0x49cc('0x18')]();}['discard'](){this[_0x49cc('0x2a')](this[_0x49cc('0x8')](),this[_0x49cc('0x1e')],this[_0x49cc('0x2f')]),this[_0x49cc('0x18')]();}[_0x49cc('0x31')](){const _0x53c50a=[];let _0xcb489=this[_0x49cc('0x25')];for(;_0xcb489;)_0x53c50a['push'](_0xcb489),_0xcb489=_0xcb489[_0x49cc('0x12')];return _0x53c50a;}['setAttribute'](_0x22cc0e,_0x3a4446){const _0x4156ff=_0x30a065(this[_0x49cc('0x2f')]);_0x5cc7b8(_0x4156ff,_0x22cc0e,_0x3a4446),_0x3ac39b(_0x4156ff,this[_0x49cc('0x2f')])||(this[_0x49cc('0x2f')]=_0x4156ff,this['_onAttributesChange'](_0x4156ff));}[_0x49cc('0x2c')](_0x13166f){const _0x5e6ae4=_0x30a065(this[_0x49cc('0x2f')]);_0x2acfe7(_0x5e6ae4,_0x13166f),_0x3ac39b(_0x5e6ae4,this[_0x49cc('0x2f')])||(this[_0x49cc('0x2f')]=_0x5e6ae4,this[_0x49cc('0x33')](this['attributes']));}[_0x49cc('0x13')](){return{'id':this['id'],'type':this['subType']?this[_0x49cc('0x9')]+':'+this[_0x49cc('0x2d')]:this[_0x49cc('0x9')],'authorId':this[_0x49cc('0x35')]['id'],'createdAt':this[_0x49cc('0x4')],'hasComments':this[_0x49cc('0xc')],'data':this[_0x49cc('0x1e')],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x424184()[_0x49cc('0x1c')](0x1,0x5);}}_0x94e7ff(o,_0x33126e);
23
+ const _0x3ceb=['author','clear','commentThread','nodeAfter','addMarker','onAccept','accept','type','getItems','head','length','_onDiscard','start','attributes','isInContent','getMarkerNames','_onAccept','getFirstMarker','getMarkers','_saved','_onAttributesChange','getAllAdjacentSuggestions','set','getRanges','split','push','filter','decorate','isIntersecting','getRange','end','getContainedElement','isIntersectingWithRange','size','subType','next','addMarkerName','getMultiRangeId','substr','_model','reduce','_markerNames','data','getFirstRange','from','nodeBefore','markers','map','previous','discard','isMultiRange','removeMarker','get','change','removeMarkers','toJSON','hasComments','removeAttribute'];(function(_0x18957d,_0x3ceb3d){const _0x4c8b56=function(_0x287675){while(--_0x287675){_0x18957d['push'](_0x18957d['shift']());}};_0x4c8b56(++_0x3ceb3d);}(_0x3ceb,0xcb));const _0x4c8b=function(_0x18957d,_0x3ceb3d){_0x18957d=_0x18957d-0x0;let _0x4c8b56=_0x3ceb[_0x18957d];return _0x4c8b56;};import{Element as _0x35b3df}from'ckeditor5/src/engine';import{ObservableMixin as _0x131e64,mix as _0x2e8f74,uid as _0x2cba40}from'ckeditor5/src/utils';import{cloneDeep as _0x357bcf,isEqual as _0x5305f2,set as _0x142d6c,unset as _0x3b3aa5}from'lodash-es';export default class o{constructor(_0x593ca9,_0x1365d0){this['id']=_0x1365d0['id'],this[_0x4c8b('0x24')]=_0x1365d0[_0x4c8b('0x24')],this[_0x4c8b('0x5')]=_0x1365d0[_0x4c8b('0x5')]||null,this[_0x4c8b('0x1d')]=_0x1365d0[_0x4c8b('0x1d')],this['externalAuthor']=_0x1365d0['externalAuthor'],this[_0x4c8b('0xd')]=null,this['_model']=_0x593ca9,this[_0x4c8b('0x2d')]=_0x1365d0[_0x4c8b('0x22')],this['_onDiscard']=_0x1365d0['onDiscard'],this[_0x4c8b('0x31')]=_0x1365d0['onAttributesChange'],this[_0x4c8b('0xc')]=new Set(),this[_0x4c8b('0x33')]('createdAt',null),this[_0x4c8b('0x33')](_0x4c8b('0x2a'),_0x1365d0[_0x4c8b('0x2a')]||{}),this[_0x4c8b('0x33')](_0x4c8b('0x13'),null),this[_0x4c8b('0x33')](_0x4c8b('0x6'),null),this[_0x4c8b('0x33')](_0x4c8b('0x1f'),null),this[_0x4c8b('0x33')](_0x4c8b('0x30'),!0x1),this[_0x4c8b('0x38')](_0x4c8b('0x23')),this[_0x4c8b('0x38')]('discard');}get[_0x4c8b('0x26')](){let _0xd27067=this;for(;_0xd27067[_0x4c8b('0x13')];)_0xd27067=_0xd27067['previous'];return _0xd27067;}get[_0x4c8b('0x1b')](){return!!this[_0x4c8b('0x1f')]&&this[_0x4c8b('0x1f')][_0x4c8b('0x27')]>0x0;}get[_0x4c8b('0x15')](){if(0x0==this[_0x4c8b('0xc')][_0x4c8b('0x4')])return!0x1;return 0x6==Array[_0x4c8b('0xf')](this[_0x4c8b('0xc')])[0x0][_0x4c8b('0x35')](':')[_0x4c8b('0x27')];}get[_0x4c8b('0x2b')](){return null!==this[_0x4c8b('0x2e')]();}[_0x4c8b('0x7')](_0x2e7383){this[_0x4c8b('0xc')]['add'](_0x2e7383);}[_0x4c8b('0x2c')](){return Array[_0x4c8b('0xf')](this[_0x4c8b('0xc')]);}['getMarkers'](){return this[_0x4c8b('0x2c')]()[_0x4c8b('0x12')](_0x416e2b=>this[_0x4c8b('0xa')][_0x4c8b('0x11')][_0x4c8b('0x17')](_0x416e2b))[_0x4c8b('0x37')](_0x1d4b46=>_0x1d4b46);}['getFirstMarker'](){return this[_0x4c8b('0x2f')]()[0x0]||null;}[_0x4c8b('0x19')](){this[_0x4c8b('0xa')]['change'](_0xcf604=>{for(const _0x13ac12 of this[_0x4c8b('0x2f')]())_0xcf604[_0x4c8b('0x16')](_0x13ac12);}),this['_markerNames'][_0x4c8b('0x1e')]();}[_0x4c8b('0x16')](_0x320d24){this[_0x4c8b('0xa')][_0x4c8b('0x18')](_0x2d528c=>{_0x2d528c[_0x4c8b('0x16')](_0x320d24);}),this[_0x4c8b('0xc')]['delete'](_0x320d24);}['addRange'](_0x4c4355){const _0x5e7335='suggestion:'+this[_0x4c8b('0x24')]+':'+this[_0x4c8b('0x5')]+':'+this['id']+':'+this[_0x4c8b('0x1d')]['id']+':'+o[_0x4c8b('0x8')]();this[_0x4c8b('0x7')](_0x5e7335),this[_0x4c8b('0xa')]['change'](_0x505086=>{_0x505086[_0x4c8b('0x21')](_0x5e7335,{'range':_0x4c4355,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4c8b('0x3')](_0x2bb845){for(const _0x3f5472 of this[_0x4c8b('0x34')]())if(_0x3f5472[_0x4c8b('0x39')](_0x2bb845))return!0x0;return!0x1;}[_0x4c8b('0x34')](){return this[_0x4c8b('0x2f')]()[_0x4c8b('0x12')](_0x1a264d=>_0x1a264d[_0x4c8b('0x0')]());}[_0x4c8b('0x25')](){return this[_0x4c8b('0x34')]()[_0x4c8b('0xb')]((_0x184797,_0x267bed)=>[..._0x184797,..._0x267bed[_0x4c8b('0x25')]()],[]);}[_0x4c8b('0xe')](){return this[_0x4c8b('0x2e')]()[_0x4c8b('0x0')]();}[_0x4c8b('0x2')](){const _0xf61b82=this['getRanges']();if(0x1!=_0xf61b82['length'])return null;const _0x3d8661=_0xf61b82[0x0],_0x3b4e15=_0x3d8661[_0x4c8b('0x29')][_0x4c8b('0x20')],_0x5e0f5e=_0x3d8661[_0x4c8b('0x1')][_0x4c8b('0x10')];return _0x3b4e15 instanceof _0x35b3df?_0x3b4e15!=_0x5e0f5e?null:_0x3b4e15:null;}[_0x4c8b('0x23')](){this[_0x4c8b('0x2d')](this[_0x4c8b('0x34')](),this[_0x4c8b('0xd')],this['attributes']),this['removeMarkers']();}[_0x4c8b('0x14')](){this[_0x4c8b('0x28')](this['getRanges'](),this[_0x4c8b('0xd')],this[_0x4c8b('0x2a')]),this[_0x4c8b('0x19')]();}[_0x4c8b('0x32')](){const _0x45d742=[];let _0x4ad1d6=this[_0x4c8b('0x26')];for(;_0x4ad1d6;)_0x45d742[_0x4c8b('0x36')](_0x4ad1d6),_0x4ad1d6=_0x4ad1d6[_0x4c8b('0x6')];return _0x45d742;}['setAttribute'](_0x458eeb,_0x187ed9){const _0x12c31a=_0x357bcf(this[_0x4c8b('0x2a')]);_0x142d6c(_0x12c31a,_0x458eeb,_0x187ed9),_0x5305f2(_0x12c31a,this['attributes'])||(this[_0x4c8b('0x2a')]=_0x12c31a,this[_0x4c8b('0x31')](_0x12c31a));}[_0x4c8b('0x1c')](_0x9d5f30){const _0x5809ca=_0x357bcf(this[_0x4c8b('0x2a')]);_0x3b3aa5(_0x5809ca,_0x9d5f30),_0x5305f2(_0x5809ca,this[_0x4c8b('0x2a')])||(this[_0x4c8b('0x2a')]=_0x5809ca,this['_onAttributesChange'](this['attributes']));}[_0x4c8b('0x1a')](){return{'id':this['id'],'type':this[_0x4c8b('0x5')]?this[_0x4c8b('0x24')]+':'+this['subType']:this['type'],'authorId':this['author']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this[_0x4c8b('0xd')],'attributes':this[_0x4c8b('0x2a')]};}static[_0x4c8b('0x8')](){return _0x2cba40()[_0x4c8b('0x9')](0x1,0x5);}}_0x2e8f74(o,_0x131e64);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xeab9=['start','match','function','pop','type','*Split:*\x20%0','set','_itemLabels','nextSibling','Container','indexOf','_locale','quantity','addEmptyContainer','isObject','length','REPLACE_TEXT','element','*Merge:*\x20%0','insertion','replace','getFirstRange','elementEnd','registerDescriptionCallback','deletion','_schema','softBreak','addContainer','removeObject','add','end','textProxy','elementStart','Object','getDescriptions','previousSibling','addObject','getItemLabel','get','data','EmptyContainer','item','checkChild','*Remove:*\x20%0','isEmpty','name','push','remove','_customCallbacks','_resolveDescriptionItems','text','$1\x20$2','isInContent','removeEmptyContainer','_addDescriptionItems','ELEMENT_SPACE','getWalker','isEqual'];(function(_0x1508ba,_0xeab9f4){const _0x37bd4c=function(_0x47b7f4){while(--_0x47b7f4){_0x1508ba['push'](_0x1508ba['shift']());}};_0x37bd4c(++_0xeab9f4);}(_0xeab9,0xbc));const _0x37bd=function(_0x1508ba,_0xeab9f4){_0x1508ba=_0x1508ba-0x0;let _0x37bd4c=_0xeab9[_0x1508ba];return _0x37bd4c;};import{getTranslation as _0x5da5bc}from'./utils/common-translations';export default class l{constructor(_0x1effb2,_0x2e0926){this[_0x37bd('0x22')]=[],this['_itemLabels']=new Map(),this[_0x37bd('0xb')]=_0x1effb2,this[_0x37bd('0x37')]=_0x2e0926;}[_0x37bd('0x14')](_0x590baa){const _0x4e3b66=[];for(let _0x2ea2a0=0x0;_0x2ea2a0<_0x590baa[_0x37bd('0x1')];_0x2ea2a0++){const _0x438e1a=_0x590baa[_0x2ea2a0];if(!_0x438e1a[_0x37bd('0x26')])continue;let _0x3eddfe=!0x1;for(const _0x230176 of this[_0x37bd('0x22')]){const _0x2d4572=_0x230176(_0x438e1a);if(_0x2d4572){_0x2d4572[_0x37bd('0x30')]&&_0x4e3b66['push'](_0x2d4572),_0x3eddfe=!0x0;break;}}if(!_0x3eddfe){this[_0x37bd('0x28')](_0x4e3b66,_0x438e1a);const _0x33393a=_0x590baa[_0x2ea2a0+0x1];if(_0x33393a&&!_0x438e1a['getFirstRange']()[_0x37bd('0x10')][_0x37bd('0x2b')](_0x33393a[_0x37bd('0x7')]()[_0x37bd('0x2c')])){const _0x132f50=_0x4e3b66[_0x4e3b66[_0x37bd('0x1')]-0x1],_0xcbfd1f=_0x37bd('0x5')==_0x438e1a[_0x37bd('0x30')]?_0x37bd('0xf'):_0x37bd('0x21');_0x132f50&&_0x37bd('0x24')==_0x132f50['type']&&(_0x132f50[_0xcbfd1f]+='\x0a');}}}return this[_0x37bd('0x23')](_0x4e3b66);}[_0x37bd('0x9')](_0x3c75ac){this[_0x37bd('0x22')]['push'](_0x3c75ac);}['registerElementLabel'](_0x42fb60,_0x3a1513){this[_0x37bd('0x33')][_0x37bd('0x32')](_0x42fb60,_0x3a1513);}[_0x37bd('0x17')](_0x520869,_0x554499=0x1){const _0x1c69e4=this['_itemLabels'][_0x37bd('0x18')](_0x520869)||_0x520869;return _0x37bd('0x2e')==typeof _0x1c69e4?_0x1c69e4(_0x554499):0x1!==_0x554499?_0x554499+'\x20'+_0x1c69e4+'s':''+_0x1c69e4;}[_0x37bd('0x28')](_0x19823e,_0x556ae1){const _0x29373b=_0x556ae1[_0x37bd('0x7')]()[_0x37bd('0x2a')](),_0x246e71=_0x37bd('0x5')==_0x556ae1[_0x37bd('0x30')]?_0x37bd('0xf'):'remove';for(const _0x30e4f4 of _0x29373b){const _0x962085=_0x30e4f4[_0x37bd('0x1b')],_0xde0ac8=_0x19823e[_0x19823e[_0x37bd('0x1')]-0x1];if(_0x962085['is'](_0x37bd('0x11')))_0xde0ac8&&_0xde0ac8['type'][_0x37bd('0x36')](_0x37bd('0x35'))>-0x1&&_0x19823e[_0x37bd('0x2f')](),_0xde0ac8&&_0x37bd('0x24')==_0xde0ac8[_0x37bd('0x30')]?_0xde0ac8[_0x246e71]+=_0x962085[_0x37bd('0x19')]:_0x19823e[_0x37bd('0x20')]({'type':_0x37bd('0x24'),'add':_0x37bd('0xf')==_0x246e71?_0x962085[_0x37bd('0x19')]:'','remove':_0x37bd('0x21')==_0x246e71?_0x962085['data']:''});else{if(this[_0x37bd('0xb')][_0x37bd('0x0')](_0x962085)){if(_0xde0ac8&&_0xde0ac8[_0x37bd('0x30')][_0x37bd('0x36')](_0x37bd('0x35'))>-0x1&&_0x19823e[_0x37bd('0x2f')](),_0x37bd('0x8')==_0x30e4f4[_0x37bd('0x30')])continue;_0xde0ac8&&_0xde0ac8[_0x37bd('0x30')]==_0x246e71+_0x37bd('0x13')&&_0xde0ac8[_0x37bd('0x1f')]==_0x962085[_0x37bd('0x1f')]?_0xde0ac8[_0x37bd('0x38')]++:_0x19823e['push']({'type':_0x246e71+_0x37bd('0x13'),'name':_0x962085['name'],'quantity':0x1}),_0x29373b['skip'](_0xc2493e=>!(_0x37bd('0x8')==_0xc2493e['type']&&_0xc2493e[_0x37bd('0x1b')]==_0x962085));}else{if(this[_0x37bd('0xb')][_0x37bd('0x1c')](_0x962085,'$text')||_0x962085['is'](_0x37bd('0x3'),_0x37bd('0xc'))){if(_0x37bd('0xf')==_0x246e71&&_0x37bd('0x12')==_0x30e4f4[_0x37bd('0x30')]||_0x37bd('0x21')==_0x246e71&&'elementEnd'==_0x30e4f4[_0x37bd('0x30')])continue;if(_0xde0ac8&&-0x1==_0xde0ac8[_0x37bd('0x30')][_0x37bd('0x36')](_0x37bd('0x35'))){'text'==_0xde0ac8['type']&&(_0xde0ac8[_0x246e71]+='\x0a');continue;}let _0x2e85e7;if(_0x2e85e7=_0x37bd('0xf')==_0x246e71?_0x962085[_0x37bd('0x34')]&&!this[_0x37bd('0xb')][_0x37bd('0x0')](_0x962085['nextSibling'])?_0x962085[_0x37bd('0x34')]:null:_0x962085[_0x37bd('0x15')]&&!this[_0x37bd('0xb')]['isObject'](_0x962085[_0x37bd('0x15')])?_0x962085[_0x37bd('0x15')]:null,_0x962085[_0x37bd('0x1e')]||_0x2e85e7&&_0x2e85e7[_0x37bd('0x1e')]){const _0x76d5f7=_0x2e85e7&&_0x2e85e7[_0x37bd('0x1e')]?_0x2e85e7[_0x37bd('0x1f')]:_0x962085['name'];_0xde0ac8&&_0xde0ac8[_0x37bd('0x30')]==_0x246e71+_0x37bd('0x1a')&&_0xde0ac8['name']==_0x76d5f7?_0xde0ac8[_0x37bd('0x38')]++:_0x19823e[_0x37bd('0x20')]({'type':_0x246e71+_0x37bd('0x1a'),'name':_0x76d5f7,'quantity':0x1});}else _0x19823e['push']({'type':_0x246e71+_0x37bd('0x35'),'name':_0x962085['name']});}}}}}['_resolveDescriptionItems'](_0x188444){const _0x5c51fc=this[_0x37bd('0x37')],_0x4604d4=[];for(const _0x5903cc of _0x188444){switch(_0x5903cc[_0x37bd('0x30')]){case _0x37bd('0x24'):if(_0x5903cc[_0x37bd('0xf')]=_0x5903cc[_0x37bd('0xf')][_0x37bd('0x6')](/(\S)\u000A+(\S)/g,_0x37bd('0x25'))[_0x37bd('0x6')](/\u000A/g,''),_0x5903cc[_0x37bd('0x21')]=_0x5903cc[_0x37bd('0x21')][_0x37bd('0x6')](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5903cc[_0x37bd('0xf')]&&''!=_0x5903cc['remove']){_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0x6'),'content':_0x5da5bc(_0x5c51fc,_0x37bd('0x2'),['\x22'+_0x5903cc[_0x37bd('0x21')]+'\x22','\x22'+_0x5903cc[_0x37bd('0xf')]+'\x22'])});continue;}if(null!=_0x5903cc['add'][_0x37bd('0x2d')](/^ +$/)){_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0x5'),'content':_0x5da5bc(_0x5c51fc,'*Insert:*\x20%0',_0x5da5bc(_0x5c51fc,_0x37bd('0x29'),_0x5903cc[_0x37bd('0xf')][_0x37bd('0x1')]))});continue;}if(null!=_0x5903cc[_0x37bd('0x21')][_0x37bd('0x2d')](/^ +$/)){_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0xa'),'content':_0x5da5bc(_0x5c51fc,_0x37bd('0x1d'),_0x5da5bc(_0x5c51fc,_0x37bd('0x29'),_0x5903cc[_0x37bd('0x21')][_0x37bd('0x1')]))});continue;}if(''!=_0x5903cc['add']){_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0x5'),'content':_0x5da5bc(_0x5c51fc,'*Insert:*\x20%0','\x22'+_0x5903cc[_0x37bd('0xf')]+'\x22')});continue;}_0x4604d4['push']({'type':_0x37bd('0xa'),'content':_0x5da5bc(_0x5c51fc,'*Remove:*\x20%0','\x22'+_0x5903cc[_0x37bd('0x21')]+'\x22')});continue;case _0x37bd('0x39'):case _0x37bd('0x16'):_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0x5'),'content':_0x5da5bc(_0x5c51fc,'*Insert:*\x20%0',this[_0x37bd('0x17')](_0x5903cc['name'],_0x5903cc['quantity']))});continue;case _0x37bd('0x27'):case _0x37bd('0xe'):_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0xa'),'content':_0x5da5bc(_0x5c51fc,_0x37bd('0x1d'),this[_0x37bd('0x17')](_0x5903cc[_0x37bd('0x1f')],_0x5903cc['quantity']))});continue;case _0x37bd('0xd'):_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0x5'),'content':_0x5da5bc(_0x5c51fc,_0x37bd('0x31'),this[_0x37bd('0x17')](_0x5903cc['name'],_0x5903cc['quantity']))});continue;case'removeContainer':_0x4604d4[_0x37bd('0x20')]({'type':_0x37bd('0xa'),'content':_0x5da5bc(_0x5c51fc,_0x37bd('0x4'),this['getItemLabel'](_0x5903cc[_0x37bd('0x1f')],_0x5903cc[_0x37bd('0x38')]))});continue;}_0x4604d4[_0x37bd('0x20')](_0x5903cc);}return _0x4604d4;}}
23
+ const _0x3eda=['insertion','registerElementLabel','data','_resolveDescriptionItems','*Remove:*\x20%0','_locale','softBreak','item','indexOf','isEqual','addObject','start','pop','isInContent','registerDescriptionCallback','removeObject','removeEmptyContainer','Container','nextSibling','isObject','ELEMENT_SPACE','text','elementEnd','length','deletion','_customCallbacks','removeContainer','_itemLabels','getDescriptions','*Insert:*\x20%0','getFirstRange','set','previousSibling','quantity','_schema','match','$1\x20$2','textProxy','add','remove','push','addEmptyContainer','elementStart','type','Object','*Split:*\x20%0','replace','addContainer','$text','_addDescriptionItems','function','name','end','isEmpty','getItemLabel'];(function(_0x20916c,_0x3eda56){const _0x44891b=function(_0x24426d){while(--_0x24426d){_0x20916c['push'](_0x20916c['shift']());}};_0x44891b(++_0x3eda56);}(_0x3eda,0xec));const _0x4489=function(_0x20916c,_0x3eda56){_0x20916c=_0x20916c-0x0;let _0x44891b=_0x3eda[_0x20916c];return _0x44891b;};import{getTranslation as _0x17a0b7}from'./utils/common-translations';export default class l{constructor(_0x2716a7,_0x1b0b2d){this['_customCallbacks']=[],this[_0x4489('0xb')]=new Map(),this[_0x4489('0x12')]=_0x2716a7,this[_0x4489('0x2c')]=_0x1b0b2d;}[_0x4489('0xc')](_0x4e39c1){const _0x432c3d=[];for(let _0x55459f=0x0;_0x55459f<_0x4e39c1[_0x4489('0x7')];_0x55459f++){const _0x1b8afd=_0x4e39c1[_0x55459f];if(!_0x1b8afd[_0x4489('0x34')])continue;let _0x48bb93=!0x1;for(const _0x1b731d of this[_0x4489('0x9')]){const _0x23fa7e=_0x1b731d(_0x1b8afd);if(_0x23fa7e){_0x23fa7e[_0x4489('0x1b')]&&_0x432c3d['push'](_0x23fa7e),_0x48bb93=!0x0;break;}}if(!_0x48bb93){this[_0x4489('0x21')](_0x432c3d,_0x1b8afd);const _0x33c38f=_0x4e39c1[_0x55459f+0x1];if(_0x33c38f&&!_0x1b8afd[_0x4489('0xe')]()[_0x4489('0x24')][_0x4489('0x30')](_0x33c38f[_0x4489('0xe')]()[_0x4489('0x32')])){const _0xa8552b=_0x432c3d[_0x432c3d['length']-0x1],_0x3c0ff3=_0x4489('0x27')==_0x1b8afd[_0x4489('0x1b')]?_0x4489('0x16'):_0x4489('0x17');_0xa8552b&&'text'==_0xa8552b[_0x4489('0x1b')]&&(_0xa8552b[_0x3c0ff3]+='\x0a');}}}return this[_0x4489('0x2a')](_0x432c3d);}[_0x4489('0x35')](_0x49f93f){this[_0x4489('0x9')][_0x4489('0x18')](_0x49f93f);}[_0x4489('0x28')](_0x31b191,_0xa28b35){this[_0x4489('0xb')][_0x4489('0xf')](_0x31b191,_0xa28b35);}[_0x4489('0x26')](_0x2667ff,_0x3be075=0x1){const _0x4d925a=this[_0x4489('0xb')]['get'](_0x2667ff)||_0x2667ff;return _0x4489('0x22')==typeof _0x4d925a?_0x4d925a(_0x3be075):0x1!==_0x3be075?_0x3be075+'\x20'+_0x4d925a+'s':''+_0x4d925a;}[_0x4489('0x21')](_0x5448e6,_0x16db9e){const _0x95c072=_0x16db9e[_0x4489('0xe')]()['getWalker'](),_0x277561=_0x4489('0x27')==_0x16db9e['type']?'add':_0x4489('0x17');for(const _0x12500b of _0x95c072){const _0x3bd28c=_0x12500b['item'],_0x410fed=_0x5448e6[_0x5448e6[_0x4489('0x7')]-0x1];if(_0x3bd28c['is'](_0x4489('0x15')))_0x410fed&&_0x410fed[_0x4489('0x1b')]['indexOf']('Container')>-0x1&&_0x5448e6[_0x4489('0x33')](),_0x410fed&&_0x4489('0x5')==_0x410fed[_0x4489('0x1b')]?_0x410fed[_0x277561]+=_0x3bd28c[_0x4489('0x29')]:_0x5448e6[_0x4489('0x18')]({'type':_0x4489('0x5'),'add':_0x4489('0x16')==_0x277561?_0x3bd28c[_0x4489('0x29')]:'','remove':_0x4489('0x17')==_0x277561?_0x3bd28c['data']:''});else{if(this['_schema'][_0x4489('0x3')](_0x3bd28c)){if(_0x410fed&&_0x410fed[_0x4489('0x1b')][_0x4489('0x2f')](_0x4489('0x1'))>-0x1&&_0x5448e6[_0x4489('0x33')](),_0x4489('0x6')==_0x12500b[_0x4489('0x1b')])continue;_0x410fed&&_0x410fed[_0x4489('0x1b')]==_0x277561+_0x4489('0x1c')&&_0x410fed[_0x4489('0x23')]==_0x3bd28c[_0x4489('0x23')]?_0x410fed[_0x4489('0x11')]++:_0x5448e6[_0x4489('0x18')]({'type':_0x277561+_0x4489('0x1c'),'name':_0x3bd28c['name'],'quantity':0x1}),_0x95c072['skip'](_0x40d0f2=>!('elementEnd'==_0x40d0f2[_0x4489('0x1b')]&&_0x40d0f2[_0x4489('0x2e')]==_0x3bd28c));}else{if(this['_schema']['checkChild'](_0x3bd28c,_0x4489('0x20'))||_0x3bd28c['is']('element',_0x4489('0x2d'))){if(_0x4489('0x16')==_0x277561&&_0x4489('0x1a')==_0x12500b['type']||_0x4489('0x17')==_0x277561&&'elementEnd'==_0x12500b[_0x4489('0x1b')])continue;if(_0x410fed&&-0x1==_0x410fed[_0x4489('0x1b')]['indexOf'](_0x4489('0x1'))){'text'==_0x410fed['type']&&(_0x410fed[_0x277561]+='\x0a');continue;}let _0x1a2e32;if(_0x1a2e32=_0x4489('0x16')==_0x277561?_0x3bd28c[_0x4489('0x2')]&&!this[_0x4489('0x12')]['isObject'](_0x3bd28c[_0x4489('0x2')])?_0x3bd28c[_0x4489('0x2')]:null:_0x3bd28c[_0x4489('0x10')]&&!this[_0x4489('0x12')][_0x4489('0x3')](_0x3bd28c[_0x4489('0x10')])?_0x3bd28c[_0x4489('0x10')]:null,_0x3bd28c[_0x4489('0x25')]||_0x1a2e32&&_0x1a2e32[_0x4489('0x25')]){const _0x27687f=_0x1a2e32&&_0x1a2e32['isEmpty']?_0x1a2e32[_0x4489('0x23')]:_0x3bd28c['name'];_0x410fed&&_0x410fed[_0x4489('0x1b')]==_0x277561+'EmptyContainer'&&_0x410fed['name']==_0x27687f?_0x410fed[_0x4489('0x11')]++:_0x5448e6['push']({'type':_0x277561+'EmptyContainer','name':_0x27687f,'quantity':0x1});}else _0x5448e6[_0x4489('0x18')]({'type':_0x277561+_0x4489('0x1'),'name':_0x3bd28c['name']});}}}}}[_0x4489('0x2a')](_0x53f08b){const _0x5cffb6=this[_0x4489('0x2c')],_0x20d486=[];for(const _0x474822 of _0x53f08b){switch(_0x474822[_0x4489('0x1b')]){case'text':if(_0x474822['add']=_0x474822[_0x4489('0x16')][_0x4489('0x1e')](/(\S)\u000A+(\S)/g,_0x4489('0x14'))['replace'](/\u000A/g,''),_0x474822['remove']=_0x474822[_0x4489('0x17')][_0x4489('0x1e')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x4489('0x1e')](/\u000A/g,''),''!=_0x474822[_0x4489('0x16')]&&''!=_0x474822[_0x4489('0x17')]){_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x1e'),'content':_0x17a0b7(_0x5cffb6,'REPLACE_TEXT',['\x22'+_0x474822[_0x4489('0x17')]+'\x22','\x22'+_0x474822[_0x4489('0x16')]+'\x22'])});continue;}if(null!=_0x474822[_0x4489('0x16')]['match'](/^ +$/)){_0x20d486['push']({'type':'insertion','content':_0x17a0b7(_0x5cffb6,'*Insert:*\x20%0',_0x17a0b7(_0x5cffb6,_0x4489('0x4'),_0x474822[_0x4489('0x16')][_0x4489('0x7')]))});continue;}if(null!=_0x474822[_0x4489('0x17')][_0x4489('0x13')](/^ +$/)){_0x20d486[_0x4489('0x18')]({'type':'deletion','content':_0x17a0b7(_0x5cffb6,_0x4489('0x2b'),_0x17a0b7(_0x5cffb6,_0x4489('0x4'),_0x474822[_0x4489('0x17')]['length']))});continue;}if(''!=_0x474822[_0x4489('0x16')]){_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x27'),'content':_0x17a0b7(_0x5cffb6,'*Insert:*\x20%0','\x22'+_0x474822[_0x4489('0x16')]+'\x22')});continue;}_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x8'),'content':_0x17a0b7(_0x5cffb6,_0x4489('0x2b'),'\x22'+_0x474822[_0x4489('0x17')]+'\x22')});continue;case _0x4489('0x19'):case _0x4489('0x31'):_0x20d486[_0x4489('0x18')]({'type':'insertion','content':_0x17a0b7(_0x5cffb6,_0x4489('0xd'),this[_0x4489('0x26')](_0x474822['name'],_0x474822[_0x4489('0x11')]))});continue;case _0x4489('0x0'):case _0x4489('0x36'):_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x8'),'content':_0x17a0b7(_0x5cffb6,_0x4489('0x2b'),this[_0x4489('0x26')](_0x474822[_0x4489('0x23')],_0x474822[_0x4489('0x11')]))});continue;case _0x4489('0x1f'):_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x27'),'content':_0x17a0b7(_0x5cffb6,_0x4489('0x1d'),this[_0x4489('0x26')](_0x474822[_0x4489('0x23')],_0x474822[_0x4489('0x11')]))});continue;case _0x4489('0xa'):_0x20d486[_0x4489('0x18')]({'type':_0x4489('0x8'),'content':_0x17a0b7(_0x5cffb6,'*Merge:*\x20%0',this['getItemLabel'](_0x474822[_0x4489('0x23')],_0x474822['quantity']))});continue;}_0x20d486[_0x4489('0x18')](_0x474822);}return _0x20d486;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x4767=['adapter','plugins','addSuggestionData','TrackChanges','editor','get','getSuggestions','addSuggestion'];(function(_0x4853c0,_0x47678f){var _0x1c6ca0=function(_0x43e94a){while(--_0x43e94a){_0x4853c0['push'](_0x4853c0['shift']());}};_0x1c6ca0(++_0x47678f);}(_0x4767,0x194));var _0x1c6c=function(_0x4853c0,_0x47678f){_0x4853c0=_0x4853c0-0x0;var _0x1c6ca0=_0x4767[_0x4853c0];return _0x1c6ca0;};import{Plugin as _0x35bc8b}from'ckeditor5/src/core';import _0x133cec from'./trackchangesui';import _0xf78b97 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0x35bc8b{static get['requires'](){return[_0xf78b97,_0x133cec,'Comments'];}static get['pluginName'](){return _0x1c6c('0x7');}set['adapter'](_0x2c5ece){this[_0x1c6c('0x0')][_0x1c6c('0x5')]['get'](_0xf78b97)[_0x1c6c('0x4')]=_0x2c5ece;}get[_0x1c6c('0x4')](){return this['editor'][_0x1c6c('0x5')][_0x1c6c('0x1')](_0xf78b97)[_0x1c6c('0x4')];}[_0x1c6c('0x3')](_0x4d710c){return this['editor'][_0x1c6c('0x5')][_0x1c6c('0x1')](_0xf78b97)[_0x1c6c('0x6')](_0x4d710c);}[_0x1c6c('0x2')](_0x3f5310){return this[_0x1c6c('0x0')]['plugins'][_0x1c6c('0x1')](_0xf78b97)[_0x1c6c('0x2')](_0x3f5310);}['getSuggestion'](_0xbb1b06){return this['editor']['plugins'][_0x1c6c('0x1')](_0xf78b97)['getSuggestion'](_0xbb1b06);}}
23
+ var _0x54b1=['plugins','get','getSuggestions','addSuggestionData','editor','TrackChanges','pluginName','getSuggestion','adapter','addSuggestion'];(function(_0x256965,_0x54b157){var _0x34db0b=function(_0x526a54){while(--_0x526a54){_0x256965['push'](_0x256965['shift']());}};_0x34db0b(++_0x54b157);}(_0x54b1,0x101));var _0x34db=function(_0x256965,_0x54b157){_0x256965=_0x256965-0x0;var _0x34db0b=_0x54b1[_0x256965];return _0x34db0b;};import{Plugin as _0x12f294}from'ckeditor5/src/core';import _0x151fa1 from'./trackchangesui';import _0x4eae77 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0x12f294{static get['requires'](){return[_0x4eae77,_0x151fa1,'Comments'];}static get[_0x34db('0x9')](){return _0x34db('0x8');}set[_0x34db('0x1')](_0x17eff4){this[_0x34db('0x7')][_0x34db('0x3')][_0x34db('0x4')](_0x4eae77)[_0x34db('0x1')]=_0x17eff4;}get[_0x34db('0x1')](){return this['editor'][_0x34db('0x3')][_0x34db('0x4')](_0x4eae77)[_0x34db('0x1')];}[_0x34db('0x2')](_0x1dd4f8){return this[_0x34db('0x7')]['plugins'][_0x34db('0x4')](_0x4eae77)[_0x34db('0x6')](_0x1dd4f8);}['getSuggestions'](_0x94770f){return this[_0x34db('0x7')]['plugins'][_0x34db('0x4')](_0x4eae77)[_0x34db('0x5')](_0x94770f);}[_0x34db('0x0')](_0x1eb1b7){return this[_0x34db('0x7')]['plugins'][_0x34db('0x4')](_0x4eae77)[_0x34db('0x0')](_0x1eb1b7);}}