@ckeditor/ckeditor5-track-changes 36.0.0 → 36.0.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 (61) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +4 -4
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/alignment.js +1 -1
  9. package/src/integrations/basicstyles.js +1 -1
  10. package/src/integrations/blockquote.js +1 -1
  11. package/src/integrations/ckbox.js +1 -1
  12. package/src/integrations/codeblock.js +1 -1
  13. package/src/integrations/comments.js +1 -1
  14. package/src/integrations/deletecommand.js +1 -1
  15. package/src/integrations/documentlist.js +1 -1
  16. package/src/integrations/documentlistproperties.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/heading.js +1 -1
  21. package/src/integrations/highlight.js +1 -1
  22. package/src/integrations/horizontalline.js +1 -1
  23. package/src/integrations/htmlembed.js +1 -1
  24. package/src/integrations/image.js +1 -1
  25. package/src/integrations/imagereplace.js +1 -1
  26. package/src/integrations/importword.js +1 -1
  27. package/src/integrations/indent.js +1 -1
  28. package/src/integrations/inputcommand.js +1 -1
  29. package/src/integrations/link.js +1 -1
  30. package/src/integrations/list.js +1 -1
  31. package/src/integrations/listproperties.js +1 -1
  32. package/src/integrations/mediaembed.js +1 -1
  33. package/src/integrations/mention.js +1 -1
  34. package/src/integrations/pagebreak.js +1 -1
  35. package/src/integrations/paragraph.js +1 -1
  36. package/src/integrations/removeformat.js +1 -1
  37. package/src/integrations/restrictededitingmode.js +1 -1
  38. package/src/integrations/shiftentercommand.js +1 -1
  39. package/src/integrations/standardeditingmode.js +1 -1
  40. package/src/integrations/style.js +1 -1
  41. package/src/integrations/table.js +1 -1
  42. package/src/integrations/tablecaption.js +1 -1
  43. package/src/integrations/tableclipboard.js +1 -1
  44. package/src/integrations/tablecolumnresize.js +1 -1
  45. package/src/integrations/tableheadings.js +1 -1
  46. package/src/integrations/tablemergesplit.js +1 -1
  47. package/src/integrations/tableproperties.js +1 -1
  48. package/src/integrations/title.js +1 -1
  49. package/src/integrations/undo.js +1 -1
  50. package/src/integrations/utils.js +1 -1
  51. package/src/suggestion.js +1 -1
  52. package/src/suggestiondescriptionfactory.js +1 -1
  53. package/src/trackchanges.js +1 -1
  54. package/src/trackchangesdata.js +1 -1
  55. package/src/trackchangesediting.js +1 -1
  56. package/src/trackchangesui.js +1 -1
  57. package/src/ui/suggestioncontroller.js +1 -1
  58. package/src/ui/view/basesuggestionthreadview.js +1 -1
  59. package/src/ui/view/suggestionthreadview.js +1 -1
  60. package/src/utils/common-translations.js +1 -1
  61. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x259d=['getChild','removeClass','mapper','headingColumns','markerNameToElements','change','commands','requires','data-suggestion','includes','markerRange','FORMAT_HEADER_COLUMN','model','consume','selection','_splitMarkerName','nodeAfter','commandName','commandParams','FORMAT_REGULAR_COLUMN','index','highest','last','activeMarkers','showSuggestionHighlights','table','headingRows','TrackChangesEditing','unbindElementFromMarkerName','editing','document','get','ck-suggestion-marker--active','createRange','getSuggestion','registerCustomCallback','accept','data','findAncestor','editor','addClass','consumable','afterInit','bindElementToMarker','getAttribute','*Format:*\x20%0','name','getSelectionAffectedTableCells','first','TableUtils','formatBlock','createPositionAfter','downcastDispatcher','options','_suggestionFactory','getColumnIndexes','getRowIndexes','setTableRowHeader','FORMAT_HEADER_ROW','setAttribute','cell','createPositionBefore','parent','_acceptFormatSuggestionCallbackFactory','markerName','_descriptionFactory','forceValue','getCellLocation','item','locale','ck-suggestion-marker-','TableEditing','toViewElement','childCount','writer','has','plugins','removeAttribute','enableCommand','createTableWalker','value','nodeBefore','setTableColumnHeader','markBlockFormat'];(function(_0x51758e,_0x259d30){const _0x125f77=function(_0x5d2fce){while(--_0x5d2fce){_0x51758e['push'](_0x51758e['shift']());}};_0x125f77(++_0x259d30);}(_0x259d,0x79));const _0x125f=function(_0x51758e,_0x259d30){_0x51758e=_0x51758e-0x0;let _0x125f77=_0x259d[_0x51758e];return _0x125f77;};import{Plugin as _0x582a8b}from'ckeditor5/src/core';import _0x1d9b61 from'./table';import{getTranslation as _0x374d0c}from'../utils/common-translations';export default class kt extends _0x582a8b{static get[_0x125f('0x36')](){return[_0x1d9b61];}[_0x125f('0x5')](){const _0xbd761c=this[_0x125f('0x2')];if(!_0xbd761c['plugins'][_0x125f('0x26')](_0x125f('0x22')))return;const _0x121eb2=_0xbd761c[_0x125f('0x20')],_0x51d0f8=_0xbd761c[_0x125f('0x27')][_0x125f('0x4e')](_0x125f('0x4a')),_0x3f09ca=_0xbd761c['plugins'][_0x125f('0x4e')](_0x125f('0xc')),_0x545404=_0xbd761c[_0x125f('0x27')][_0x125f('0x4e')](_0x1d9b61);function _0x51c04e({showActiveMarker:_0xbf7ffd=!0x0,setDataAttribute:_0xd1b463=!0x0}={}){return(_0xd9bfbe,_0x42ff0b,_0x14265f)=>{const {type:_0x21d292,id:_0x19ffa1}=_0x51d0f8['_splitMarkerName'](_0x42ff0b[_0x125f('0x1b')]),_0x886276=_0x51d0f8[_0x125f('0x51')](_0x19ffa1);if(!_0x886276[_0x125f('0x0')]||_0x125f('0x2d')!=_0x886276[_0x125f('0x0')]['commandName'])return;if(_0x42ff0b[_0x125f('0x1f')])return void _0xd9bfbe['stop']();if(!_0x14265f[_0x125f('0x4')][_0x125f('0x3c')](_0x42ff0b[_0x125f('0x39')],_0xd9bfbe[_0x125f('0x9')]))return;const _0x4b6e17=_0x42ff0b[_0x125f('0x39')]['start'][_0x125f('0x3f')],_0x2789cd=_0x42ff0b['markerRange']['end'][_0x125f('0x2c')],_0xe1ffe3=_0x4b6e17[_0x125f('0x19')][_0x125f('0x19')],{column:_0x4efcdf}=_0x3f09ca[_0x125f('0x1e')](_0x4b6e17),{column:_0x4b3011}=_0x3f09ca[_0x125f('0x1e')](_0x2789cd);for(let _0x2988f3=_0x4efcdf;_0x2988f3<=_0x4b3011;_0x2988f3++){const _0x398f77=_0x3f09ca[_0x125f('0x2a')](_0xe1ffe3,{'column':_0x2988f3,'includeAllSlots':!0x1});for(const _0x394420 of _0x398f77){const _0x5c850d=_0x394420[_0x125f('0x17')],_0x59f76a=_0x14265f['mapper'][_0x125f('0x23')](_0x5c850d);_0x14265f['writer']['addClass'](_0x125f('0x21')+_0x21d292,_0x59f76a),_0xd1b463&&_0x14265f['writer'][_0x125f('0x16')](_0x125f('0x37'),_0x19ffa1,_0x59f76a),_0x14265f['mapper'][_0x125f('0x6')](_0x59f76a,_0x42ff0b[_0x125f('0x1b')]),_0xbf7ffd&&(_0x51d0f8[_0x125f('0x46')][_0x125f('0x38')](_0x42ff0b['markerName'])?_0x14265f[_0x125f('0x25')][_0x125f('0x3')](_0x125f('0x4f'),_0x59f76a):_0x14265f[_0x125f('0x25')][_0x125f('0x30')](_0x125f('0x4f'),_0x59f76a));}}};}_0x51d0f8[_0x125f('0x29')](_0x125f('0x14'),(_0x1e980d,_0x3e4733)=>{const _0x5221f5=_0x3f09ca['getSelectionAffectedTableCells'](_0xbd761c[_0x125f('0x3b')]['document'][_0x125f('0x3d')]),_0x4f720c=_0x3f09ca[_0x125f('0x13')](_0x5221f5),_0x57045f=_0x5221f5[0x0][_0x125f('0x1')](_0x125f('0x48')),_0x292a9e=_0x57045f[_0x125f('0x7')](_0x125f('0x49'))||0x0,_0x8235c9=_0x3e4733&&null!==_0x3e4733['forceValue']?_0x3e4733['forceValue']:!_0xbd761c[_0x125f('0x35')]['get'](_0x125f('0x14'))[_0x125f('0x2b')],_0x32ff80=_0x8235c9?_0x4f720c[_0x125f('0x45')]:_0x4f720c[_0x125f('0xb')],_0x2ac05f=_0x57045f[_0x125f('0x2f')](_0x32ff80);let _0x333aa0;if(_0x8235c9){const _0x301744=_0x57045f['getChild'](_0x292a9e);if(_0x2ac05f['index']<_0x301744[_0x125f('0x43')])return;_0x333aa0=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x301744['getChild'](0x0)),_0xbd761c[_0x125f('0x3b')][_0x125f('0xe')](_0x2ac05f[_0x125f('0x2f')](_0x2ac05f[_0x125f('0x24')]-0x1)));}else{const _0x2eb5f8=_0x57045f[_0x125f('0x2f')](_0x292a9e-0x1);if(!_0x2eb5f8)return;_0x333aa0=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c['model'][_0x125f('0x18')](_0x2ac05f[_0x125f('0x2f')](0x0)),_0xbd761c[_0x125f('0x3b')][_0x125f('0xe')](_0x2eb5f8[_0x125f('0x2f')](_0x2eb5f8[_0x125f('0x24')]-0x1)));}_0xbd761c[_0x125f('0x3b')][_0x125f('0x34')](()=>{_0x51d0f8['markBlockFormat'](_0x333aa0,{'commandName':'setTableRowHeader','commandParams':[{'forceValue':_0x8235c9}]},[],_0x125f('0x14'));});}),_0x51d0f8[_0x125f('0x29')](_0x125f('0x2d'),(_0x327c78,_0x394169)=>{const _0x46afab=_0xbd761c['plugins'][_0x125f('0x4e')](_0x125f('0xc')),_0x5c2c08=_0x46afab[_0x125f('0xa')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x4d')][_0x125f('0x3d')]),_0x4ca9ce=_0x46afab[_0x125f('0x12')](_0x5c2c08),_0x40ec77=_0x5c2c08[0x0]['findAncestor'](_0x125f('0x48')),_0x2c3d3c=_0x40ec77[_0x125f('0x7')](_0x125f('0x32'))||0x0,_0x5bd6b8=_0x394169&&null!==_0x394169[_0x125f('0x1d')]?_0x394169['forceValue']:!_0xbd761c[_0x125f('0x35')]['get'](_0x125f('0x2d'))[_0x125f('0x2b')];let _0x2115aa;const _0x2adf6e=_0x40ec77['getChild'](0x0),_0x579f9d=_0x5bd6b8?_0x4ca9ce[_0x125f('0x45')]:_0x4ca9ce[_0x125f('0xb')],_0x958a7d=_0x46afab['createTableWalker'](_0x40ec77,{'startRow':0x0,'column':_0x579f9d,'includeAllSlots':!0x1}),_0x32d3dc=Array['from'](_0x958a7d)[0x0][_0x125f('0x17')];if(_0x5bd6b8){const _0x26a755=_0x2adf6e[_0x125f('0x2f')](_0x2c3d3c);if(_0x32d3dc['isBefore'](_0x26a755))return;_0x2115aa=_0xbd761c[_0x125f('0x3b')]['createRange'](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x26a755),_0xbd761c['model'][_0x125f('0xe')](_0x32d3dc));}else{const _0x4db355=_0x2adf6e['getChild'](_0x2c3d3c-0x1);if(!_0x4db355)return;_0x2115aa=_0xbd761c[_0x125f('0x3b')][_0x125f('0x50')](_0xbd761c[_0x125f('0x3b')][_0x125f('0x18')](_0x32d3dc),_0xbd761c['model'][_0x125f('0xe')](_0x4db355));}_0xbd761c[_0x125f('0x3b')][_0x125f('0x34')](()=>{_0x51d0f8[_0x125f('0x2e')](_0x2115aa,{'commandName':_0x125f('0x2d'),'commandParams':[{'forceValue':_0x5bd6b8}]},[],'setTableColumnHeader');});}),_0xbd761c[_0x125f('0x4c')][_0x125f('0xf')]['on']('addMarker:suggestion',_0x51c04e(),{'priority':_0x125f('0x44')}),_0xbd761c[_0x125f('0x0')][_0x125f('0xf')]['on']('addMarker:suggestion',(_0x5ad84b,_0x50c037,_0x235847)=>{_0x235847[_0x125f('0x10')][_0x125f('0x47')]&&_0x51c04e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5ad84b,_0x50c037,_0x235847);},{'priority':_0x125f('0x44')}),_0xbd761c[_0x125f('0x4c')][_0x125f('0xf')]['on']('removeMarker:suggestion',(_0x1f8ddd,_0xd0ab76,_0x2fc09b)=>{const {type:_0x5d2d4d,id:_0x267637}=_0x51d0f8[_0x125f('0x3e')](_0xd0ab76[_0x125f('0x1b')]),_0x254172=_0x51d0f8['getSuggestion'](_0x267637);if(!_0x254172['data']||_0x125f('0x2d')!=_0x254172[_0x125f('0x0')][_0x125f('0x40')])return;const _0x28f326=_0x2fc09b[_0x125f('0x31')][_0x125f('0x33')](_0xd0ab76['markerName']);if(_0x28f326)for(const _0x513e6d of _0x28f326)_0x2fc09b[_0x125f('0x25')][_0x125f('0x30')](_0x125f('0x21')+_0x5d2d4d,_0x513e6d),_0x2fc09b[_0x125f('0x25')]['removeClass']('ck-suggestion-marker--active',_0x513e6d),_0x2fc09b[_0x125f('0x25')][_0x125f('0x28')](_0x125f('0x37'),_0x513e6d),_0x2fc09b['mapper'][_0x125f('0x4b')](_0x513e6d,_0xd0ab76[_0x125f('0x1b')]);},{'priority':'highest'}),_0x51d0f8[_0x125f('0x1c')]['registerDescriptionCallback'](_0x358b4d=>{const {data:_0x59b34d}=_0x358b4d;if(_0x59b34d){if('setTableRowHeader'==_0x59b34d[_0x125f('0x40')]){const _0x54e086=_0x59b34d[_0x125f('0x41')][0x0][_0x125f('0x1d')];return _0x22d163(_0x374d0c(_0x121eb2,_0x54e086?_0x125f('0x15'):'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x59b34d[_0x125f('0x40')]){const _0x305f36=_0x59b34d[_0x125f('0x41')][0x0][_0x125f('0x1d')];return _0x22d163(_0x374d0c(_0x121eb2,_0x305f36?_0x125f('0x3a'):_0x125f('0x42')));}}function _0x22d163(_0xa178b3){return{'type':'format','content':_0x374d0c(_0x121eb2,_0x125f('0x8'),_0xa178b3)};}});const _0xb70182=_0x545404[_0x125f('0x1a')]();_0x51d0f8[_0x125f('0x11')]['registerCustomCallback'](_0x125f('0xd'),'setTableRowHeader',_0x125f('0x53'),_0xb70182),_0x51d0f8[_0x125f('0x11')][_0x125f('0x52')](_0x125f('0xd'),_0x125f('0x2d'),'accept',_0xb70182);}}
23
+ const _0x3cdc=['model','commands','writer','showSuggestionHighlights','locale','toViewElement','ck-suggestion-marker--active','FORMAT_REGULAR_ROW','getSelectionAffectedTableCells','TableEditing','getRowIndexes','childCount','commandParams','_descriptionFactory','commandName','removeMarker:suggestion','editing','getCellLocation','selection','TrackChangesEditing','data-suggestion','nodeBefore','parent','highest','table','_acceptFormatSuggestionCallbackFactory','afterInit','formatBlock','_suggestionFactory','has','setTableColumnHeader','document','consumable','index','first','createRange','last','createPositionBefore','markerName','removeAttribute','unbindElementFromMarkerName','item','getChild','cell','forceValue','getColumnIndexes','addClass','setTableRowHeader','nodeAfter','start','*Format:*\x20%0','from','_splitMarkerName','markBlockFormat','findAncestor','TableUtils','options','mapper','change','headingRows','markerRange','ck-suggestion-marker-','data','addMarker:suggestion','downcastDispatcher','consume','removeClass','accept','requires','registerCustomCallback','FORMAT_HEADER_COLUMN','createTableWalker','plugins','get','format','getAttribute','end','enableCommand','createPositionAfter'];(function(_0x5da4d4,_0x3cdc69){const _0x59adae=function(_0xca8152){while(--_0xca8152){_0x5da4d4['push'](_0x5da4d4['shift']());}};_0x59adae(++_0x3cdc69);}(_0x3cdc,0x1ed));const _0x59ad=function(_0x5da4d4,_0x3cdc69){_0x5da4d4=_0x5da4d4-0x0;let _0x59adae=_0x3cdc[_0x5da4d4];return _0x59adae;};import{Plugin as _0x23c83d}from'ckeditor5/src/core';import _0x24665a from'./table';import{getTranslation as _0x30453a}from'../utils/common-translations';export default class kt extends _0x23c83d{static get[_0x59ad('0x31')](){return[_0x24665a];}[_0x59ad('0x7')](){const _0x13f52d=this['editor'];if(!_0x13f52d[_0x59ad('0x35')][_0x59ad('0xa')](_0x59ad('0x45')))return;const _0x345d82=_0x13f52d[_0x59ad('0x40')],_0x3b93d0=_0x13f52d['plugins']['get'](_0x59ad('0x0')),_0x5087c3=_0x13f52d[_0x59ad('0x35')][_0x59ad('0x36')](_0x59ad('0x24')),_0x4a3a8d=_0x13f52d[_0x59ad('0x35')][_0x59ad('0x36')](_0x24665a);function _0x10e92b({showActiveMarker:_0x3b6187=!0x0,setDataAttribute:_0xf90456=!0x0}={}){return(_0x34188b,_0x55bfe7,_0x710d68)=>{const {type:_0xd7411,id:_0x4fd88c}=_0x3b93d0[_0x59ad('0x21')](_0x55bfe7[_0x59ad('0x13')]),_0x3607bb=_0x3b93d0['getSuggestion'](_0x4fd88c);if(!_0x3607bb[_0x59ad('0x2b')]||_0x59ad('0xb')!=_0x3607bb[_0x59ad('0x2b')][_0x59ad('0x4a')])return;if(_0x55bfe7[_0x59ad('0x16')])return void _0x34188b['stop']();if(!_0x710d68[_0x59ad('0xd')][_0x59ad('0x2e')](_0x55bfe7['markerRange'],_0x34188b['name']))return;const _0xb20f3b=_0x55bfe7[_0x59ad('0x29')][_0x59ad('0x1e')][_0x59ad('0x1d')],_0x51adeb=_0x55bfe7[_0x59ad('0x29')][_0x59ad('0x39')][_0x59ad('0x2')],_0x5a7d86=_0xb20f3b[_0x59ad('0x3')][_0x59ad('0x3')],{column:_0x399e44}=_0x5087c3[_0x59ad('0x4d')](_0xb20f3b),{column:_0x304bbd}=_0x5087c3[_0x59ad('0x4d')](_0x51adeb);for(let _0x58baea=_0x399e44;_0x58baea<=_0x304bbd;_0x58baea++){const _0x1bd00a=_0x5087c3[_0x59ad('0x34')](_0x5a7d86,{'column':_0x58baea,'includeAllSlots':!0x1});for(const _0x39e73a of _0x1bd00a){const _0x210e0e=_0x39e73a[_0x59ad('0x18')],_0xa0cb16=_0x710d68[_0x59ad('0x26')][_0x59ad('0x41')](_0x210e0e);_0x710d68[_0x59ad('0x3e')]['addClass'](_0x59ad('0x2a')+_0xd7411,_0xa0cb16),_0xf90456&&_0x710d68[_0x59ad('0x3e')]['setAttribute'](_0x59ad('0x1'),_0x4fd88c,_0xa0cb16),_0x710d68['mapper']['bindElementToMarker'](_0xa0cb16,_0x55bfe7[_0x59ad('0x13')]),_0x3b6187&&(_0x3b93d0['activeMarkers']['includes'](_0x55bfe7['markerName'])?_0x710d68[_0x59ad('0x3e')][_0x59ad('0x1b')](_0x59ad('0x42'),_0xa0cb16):_0x710d68[_0x59ad('0x3e')][_0x59ad('0x2f')](_0x59ad('0x42'),_0xa0cb16));}}};}_0x3b93d0['enableCommand']('setTableRowHeader',(_0x24b98e,_0x6dbf80)=>{const _0x2fa6e7=_0x5087c3[_0x59ad('0x44')](_0x13f52d[_0x59ad('0x3c')][_0x59ad('0xc')][_0x59ad('0x4e')]),_0xcb5de7=_0x5087c3[_0x59ad('0x46')](_0x2fa6e7),_0x124b0a=_0x2fa6e7[0x0]['findAncestor']('table'),_0x51239a=_0x124b0a[_0x59ad('0x38')](_0x59ad('0x28'))||0x0,_0x3ff18f=_0x6dbf80&&null!==_0x6dbf80['forceValue']?_0x6dbf80[_0x59ad('0x19')]:!_0x13f52d[_0x59ad('0x3d')]['get'](_0x59ad('0x1c'))['value'],_0x2a288a=_0x3ff18f?_0xcb5de7[_0x59ad('0x11')]:_0xcb5de7[_0x59ad('0xf')],_0x5a9f9b=_0x124b0a[_0x59ad('0x17')](_0x2a288a);let _0x5731ed;if(_0x3ff18f){const _0x31a04b=_0x124b0a[_0x59ad('0x17')](_0x51239a);if(_0x5a9f9b['index']<_0x31a04b[_0x59ad('0xe')])return;_0x5731ed=_0x13f52d[_0x59ad('0x3c')]['createRange'](_0x13f52d['model'][_0x59ad('0x12')](_0x31a04b[_0x59ad('0x17')](0x0)),_0x13f52d[_0x59ad('0x3c')]['createPositionAfter'](_0x5a9f9b[_0x59ad('0x17')](_0x5a9f9b[_0x59ad('0x47')]-0x1)));}else{const _0x516654=_0x124b0a[_0x59ad('0x17')](_0x51239a-0x1);if(!_0x516654)return;_0x5731ed=_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x10')](_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x12')](_0x5a9f9b[_0x59ad('0x17')](0x0)),_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x3b')](_0x516654[_0x59ad('0x17')](_0x516654[_0x59ad('0x47')]-0x1)));}_0x13f52d[_0x59ad('0x3c')]['change'](()=>{_0x3b93d0[_0x59ad('0x22')](_0x5731ed,{'commandName':_0x59ad('0x1c'),'commandParams':[{'forceValue':_0x3ff18f}]},[],_0x59ad('0x1c'));});}),_0x3b93d0[_0x59ad('0x3a')]('setTableColumnHeader',(_0x1270b2,_0x536b24)=>{const _0x5096ef=_0x13f52d['plugins'][_0x59ad('0x36')](_0x59ad('0x24')),_0x36fef1=_0x5096ef['getSelectionAffectedTableCells'](_0x13f52d['model']['document'][_0x59ad('0x4e')]),_0x4915dc=_0x5096ef[_0x59ad('0x1a')](_0x36fef1),_0x38473b=_0x36fef1[0x0][_0x59ad('0x23')](_0x59ad('0x5')),_0x3a01a6=_0x38473b[_0x59ad('0x38')]('headingColumns')||0x0,_0x5a2141=_0x536b24&&null!==_0x536b24['forceValue']?_0x536b24[_0x59ad('0x19')]:!_0x13f52d[_0x59ad('0x3d')][_0x59ad('0x36')](_0x59ad('0xb'))['value'];let _0xf4f402;const _0x44fe3a=_0x38473b[_0x59ad('0x17')](0x0),_0x2201d2=_0x5a2141?_0x4915dc[_0x59ad('0x11')]:_0x4915dc[_0x59ad('0xf')],_0x25f5f8=_0x5096ef[_0x59ad('0x34')](_0x38473b,{'startRow':0x0,'column':_0x2201d2,'includeAllSlots':!0x1}),_0xb2d6dc=Array[_0x59ad('0x20')](_0x25f5f8)[0x0][_0x59ad('0x18')];if(_0x5a2141){const _0x6b7d1d=_0x44fe3a[_0x59ad('0x17')](_0x3a01a6);if(_0xb2d6dc['isBefore'](_0x6b7d1d))return;_0xf4f402=_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x10')](_0x13f52d['model'][_0x59ad('0x12')](_0x6b7d1d),_0x13f52d[_0x59ad('0x3c')]['createPositionAfter'](_0xb2d6dc));}else{const _0x4833d5=_0x44fe3a[_0x59ad('0x17')](_0x3a01a6-0x1);if(!_0x4833d5)return;_0xf4f402=_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x10')](_0x13f52d['model']['createPositionBefore'](_0xb2d6dc),_0x13f52d['model'][_0x59ad('0x3b')](_0x4833d5));}_0x13f52d[_0x59ad('0x3c')][_0x59ad('0x27')](()=>{_0x3b93d0['markBlockFormat'](_0xf4f402,{'commandName':_0x59ad('0xb'),'commandParams':[{'forceValue':_0x5a2141}]},[],'setTableColumnHeader');});}),_0x13f52d[_0x59ad('0x4c')][_0x59ad('0x2d')]['on']('addMarker:suggestion',_0x10e92b(),{'priority':_0x59ad('0x4')}),_0x13f52d[_0x59ad('0x2b')]['downcastDispatcher']['on'](_0x59ad('0x2c'),(_0x16718b,_0x5703c9,_0x23d265)=>{_0x23d265[_0x59ad('0x25')][_0x59ad('0x3f')]&&_0x10e92b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x16718b,_0x5703c9,_0x23d265);},{'priority':_0x59ad('0x4')}),_0x13f52d[_0x59ad('0x4c')][_0x59ad('0x2d')]['on'](_0x59ad('0x4b'),(_0x3e108c,_0x1458d4,_0x15f012)=>{const {type:_0x23b8b3,id:_0x37fbb3}=_0x3b93d0['_splitMarkerName'](_0x1458d4['markerName']),_0x4321a9=_0x3b93d0['getSuggestion'](_0x37fbb3);if(!_0x4321a9[_0x59ad('0x2b')]||_0x59ad('0xb')!=_0x4321a9[_0x59ad('0x2b')][_0x59ad('0x4a')])return;const _0x55386d=_0x15f012[_0x59ad('0x26')]['markerNameToElements'](_0x1458d4[_0x59ad('0x13')]);if(_0x55386d)for(const _0x44e75e of _0x55386d)_0x15f012[_0x59ad('0x3e')][_0x59ad('0x2f')](_0x59ad('0x2a')+_0x23b8b3,_0x44e75e),_0x15f012[_0x59ad('0x3e')][_0x59ad('0x2f')](_0x59ad('0x42'),_0x44e75e),_0x15f012[_0x59ad('0x3e')][_0x59ad('0x14')](_0x59ad('0x1'),_0x44e75e),_0x15f012[_0x59ad('0x26')][_0x59ad('0x15')](_0x44e75e,_0x1458d4[_0x59ad('0x13')]);},{'priority':_0x59ad('0x4')}),_0x3b93d0[_0x59ad('0x49')]['registerDescriptionCallback'](_0xbb0653=>{const {data:_0x2149c0}=_0xbb0653;if(_0x2149c0){if(_0x59ad('0x1c')==_0x2149c0[_0x59ad('0x4a')]){const _0x3475f5=_0x2149c0[_0x59ad('0x48')][0x0]['forceValue'];return _0x2f357e(_0x30453a(_0x345d82,_0x3475f5?'FORMAT_HEADER_ROW':_0x59ad('0x43')));}if(_0x59ad('0xb')==_0x2149c0[_0x59ad('0x4a')]){const _0x4c96e7=_0x2149c0[_0x59ad('0x48')][0x0][_0x59ad('0x19')];return _0x2f357e(_0x30453a(_0x345d82,_0x4c96e7?_0x59ad('0x33'):'FORMAT_REGULAR_COLUMN'));}}function _0x2f357e(_0x22f8a5){return{'type':_0x59ad('0x37'),'content':_0x30453a(_0x345d82,_0x59ad('0x1f'),_0x22f8a5)};}});const _0x514528=_0x4a3a8d[_0x59ad('0x6')]();_0x3b93d0['_suggestionFactory']['registerCustomCallback'](_0x59ad('0x8'),_0x59ad('0x1c'),'accept',_0x514528),_0x3b93d0[_0x59ad('0x9')][_0x59ad('0x32')](_0x59ad('0x8'),_0x59ad('0xb'),_0x59ad('0x30'),_0x514528);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x246e=['has','createTableWalker','$graveyard','document','_areSelectedCellsMergable','commands','find','_acceptFormatSuggestionCallbackFactory','format','_suggestionFactory','*Split\x20cell:*\x20vertically','_areMergableCells','rootName','_isForcedDefaultExecutionBlock','trackChanges','markMultiRangeBlockFormat','afterInit','filter','table','push','tableCell','enableCommand','detach','mergeTableCells','formatBlock','execute','setSelection','refresh','plugins','*Merge\x20cells*','mergeTableCellLeft','getAncestors','getSuggestions','element','author','change','splitTableCellVertically','return','mergeTableCellDown','direction','size','map','getCellLocation','editor','TrackChangesEditing','splitTableCellHorizontally','registerDescriptionCallback','getFirstPosition','TableUtils','deletion','getRanges','length','model','containsRange','_tablePostFixingSubtypes','markBlockFormat','type','createRangeOn','commandName','_descriptionFactory','TableEditing','findAncestor','*Split\x20cell:*\x20horizontally','horizontally','highest','cell','set:isEnabled','mergeTableCellRight','mergeTableCellUp','isEnabled','stop','root','getSelectionAffectedTableCells','requires','subType','insertion','from','get','locale','accept','fromRange','selection','value','add'];(function(_0x3b66ef,_0x246ec2){const _0x2fe05b=function(_0x151669){while(--_0x151669){_0x3b66ef['push'](_0x3b66ef['shift']());}};_0x2fe05b(++_0x246ec2);}(_0x246e,0x15d));const _0x2fe0=function(_0x3b66ef,_0x246ec2){_0x3b66ef=_0x3b66ef-0x0;let _0x2fe05b=_0x246e[_0x3b66ef];return _0x2fe05b;};import{Plugin as _0x169fcf}from'ckeditor5/src/core';import _0x59f489 from'./table';import{LiveRange as _0x45b102}from'ckeditor5/src/engine';import{getTranslation as _0x5e55d5}from'../utils/common-translations';export default class pt extends _0x169fcf{static get[_0x2fe0('0x3c')](){return[_0x59f489];}[_0x2fe0('0x3')](){const _0x279e69=this[_0x2fe0('0x1e')],_0x3d3e54=_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x4a')][_0x2fe0('0x44')],_0x54b434=_0x279e69[_0x2fe0('0x41')];if(!_0x279e69[_0x2fe0('0xf')]['has'](_0x2fe0('0x2f')))return;const _0x5384a2=_0x279e69['plugins']['get'](_0x2fe0('0x1f')),_0x556e0d=_0x279e69[_0x2fe0('0xf')]['get'](_0x2fe0('0x23')),_0x21b99f=_0x279e69[_0x2fe0('0xf')]['get'](_0x59f489);_0x21b99f[_0x2fe0('0x29')][_0x2fe0('0x6')](_0x2fe0('0xa')),_0x5384a2[_0x2fe0('0x8')](_0x2fe0('0xa'),()=>{const _0x18e87f=_0x556e0d[_0x2fe0('0x3b')](_0x279e69['model'][_0x2fe0('0x4a')][_0x2fe0('0x44')]);_0x279e69['model'][_0x2fe0('0x16')](()=>{_0x5384a2[_0x2fe0('0x2')](_0x18e87f,{'commandName':_0x2fe0('0xa'),'commandParams':[]},[],'mergeTableCells');});}),_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x2fe0('0xa'))['on'](_0x2fe0('0xc'),(_0x32a233,_0x415674)=>{_0x279e69['commands'][_0x2fe0('0x40')](_0x2fe0('0x1'))[_0x2fe0('0x45')]&&(_0x415674['length']>0x0&&_0x415674[_0x415674[_0x2fe0('0x26')]-0x1]&&_0x415674[_0x415674['length']-0x1]['forceDefaultExecution']||_0x5384a2[_0x2fe0('0x0')]||this[_0x2fe0('0x4b')]()||_0x32a233['stop']());},{'priority':_0x2fe0('0x33')});for(const _0x1888ce of[_0x2fe0('0x37'),_0x2fe0('0x36'),_0x2fe0('0x19'),_0x2fe0('0x11')]){const _0x104dab=_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x1888ce);_0x5384a2['enableCommand'](_0x1888ce,()=>{const _0x2deb63=_0x279e69[_0x2fe0('0x27')]['document'][_0x2fe0('0x44')][_0x2fe0('0x22')]()[_0x2fe0('0x12')]()[_0x2fe0('0x4d')](_0x92a2c0=>_0x92a2c0['is'](_0x2fe0('0x14'),_0x2fe0('0x7'))),_0x48c944=_0x104dab[_0x2fe0('0x45')];_0x279e69['model']['change'](()=>{_0x5384a2[_0x2fe0('0x2')]([_0x2deb63,_0x48c944],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1a7511 of['splitTableCellVertically',_0x2fe0('0x20')]){const _0x323bd1=_0x279e69['commands'][_0x2fe0('0x40')](_0x1a7511);_0x5384a2[_0x2fe0('0x8')](_0x1a7511,()=>{const _0x50ea1b=_0x556e0d[_0x2fe0('0x3b')](_0x279e69[_0x2fe0('0x27')]['document']['selection'])[0x0],_0x17a142=_0x50ea1b[_0x2fe0('0x30')](_0x2fe0('0x5')),{column:_0x5c4b9e,row:_0x37bf37}=_0x556e0d[_0x2fe0('0x1d')](_0x50ea1b);let _0x560d1f=[];if(_0x2fe0('0x32')==_0x323bd1[_0x2fe0('0x1a')]){const _0x4a467f=_0x556e0d[_0x2fe0('0x48')](_0x17a142,{'startRow':_0x37bf37,'endRow':_0x37bf37,'includeAllSlots':!0x0});_0x560d1f=Array[_0x2fe0('0x3f')](_0x4a467f)[_0x2fe0('0x1c')](_0x160e2c=>_0x160e2c['cell']);}else{const _0x514eb0=_0x556e0d['createTableWalker'](_0x17a142,{'column':_0x5c4b9e,'includeAllSlots':!0x0});_0x560d1f=Array[_0x2fe0('0x3f')](_0x514eb0)[_0x2fe0('0x1c')](_0x4c3cf7=>_0x4c3cf7[_0x2fe0('0x34')]);}_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x16')](_0x499a4d=>{_0x5384a2[_0x2fe0('0x2a')](_0x499a4d['createRangeOn'](_0x50ea1b),{'commandName':_0x1a7511,'commandParams':[]},_0x560d1f,_0x1a7511);});});}_0x5384a2[_0x2fe0('0x2e')]['registerDescriptionCallback'](_0x7f74e8=>{const {data:_0x16b11a}=_0x7f74e8;if(_0x16b11a)return _0x2fe0('0xa')==_0x16b11a['commandName']?{'type':'format','content':_0x5e55d5(_0x54b434,_0x2fe0('0x10'))}:void 0x0;}),_0x5384a2[_0x2fe0('0x2e')][_0x2fe0('0x21')](_0x1e54ac=>{const {data:_0x5e8db2}=_0x1e54ac;if(_0x5e8db2)return _0x2fe0('0x17')==_0x5e8db2['commandName']?{'type':_0x2fe0('0x4f'),'content':_0x5e55d5(_0x54b434,_0x2fe0('0x51'))}:_0x2fe0('0x20')==_0x5e8db2[_0x2fe0('0x2d')]?{'type':_0x2fe0('0x4f'),'content':_0x5e55d5(_0x54b434,_0x2fe0('0x31'))}:void 0x0;});const _0x36e10c=_0x21b99f[_0x2fe0('0x4e')]();for(const _0x5591ad of[_0x2fe0('0x37'),_0x2fe0('0x36'),_0x2fe0('0x19'),_0x2fe0('0x11')])_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback'](_0x2fe0('0xb'),_0x5591ad,_0x2fe0('0x42'),_0x36e10c);for(const _0x289e35 of[_0x2fe0('0x17'),_0x2fe0('0x20')])_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback'](_0x2fe0('0xb'),_0x289e35,'accept',_0x36e10c);_0x5384a2[_0x2fe0('0x50')]['registerCustomCallback']('formatBlock',_0x2fe0('0xa'),_0x2fe0('0x42'),_0x6fd5f8=>{_0x279e69[_0x2fe0('0x27')][_0x2fe0('0x16')](_0x474036=>{const _0x3dc55c=Array['from'](_0x3d3e54[_0x2fe0('0x25')]())[_0x2fe0('0x1c')](_0x2d1f17=>_0x45b102[_0x2fe0('0x43')](_0x2d1f17));_0x474036['setSelection'](_0x6fd5f8),_0x279e69['commands'][_0x2fe0('0x40')](_0x2fe0('0xa'))[_0x2fe0('0xe')](),_0x279e69[_0x2fe0('0xc')](_0x2fe0('0xa'),{'forceDefaultExecution':!0x0});const _0x29180b=_0x3dc55c[_0x2fe0('0x4')](_0x35e613=>_0x2fe0('0x49')!=_0x35e613[_0x2fe0('0x3a')][_0x2fe0('0x53')]);_0x29180b[_0x2fe0('0x26')]>0x0&&_0x474036[_0x2fe0('0xd')](_0x29180b);for(const _0x3e197e of _0x3dc55c)_0x3e197e[_0x2fe0('0x9')]();});});for(const _0x35a749 of[_0x2fe0('0x37'),_0x2fe0('0x19'),_0x2fe0('0x11'),_0x2fe0('0x36')]){const _0x5e87b6=_0x279e69[_0x2fe0('0x4c')][_0x2fe0('0x40')](_0x35a749);_0x5e87b6['on'](_0x2fe0('0x35'),(_0x158f9b,_0x574b5a,_0x5ef03f)=>{if(_0x5ef03f){const _0x4ed3ab=_0x279e69[_0x2fe0('0x27')]['document'][_0x2fe0('0x44')][_0x2fe0('0x22')]()[_0x2fe0('0x12')]()[_0x2fe0('0x4d')](_0x49234e=>_0x49234e['is']('element',_0x2fe0('0x7')));this['_areMergableCells'](_0x5e87b6[_0x2fe0('0x45')],_0x4ed3ab)||(_0x158f9b[_0x2fe0('0x18')]=!0x1,_0x158f9b[_0x2fe0('0x39')]());}},{'priority':'low'});}}[_0x2fe0('0x4b')](){const _0xa33e22=this[_0x2fe0('0x1e')]['commands'][_0x2fe0('0x40')]('mergeTableCells'),_0x1c27af=this[_0x2fe0('0x1e')][_0x2fe0('0xf')][_0x2fe0('0x40')]('TableUtils');if(!_0xa33e22[_0x2fe0('0x38')])return!0x1;const _0x3edd93=_0x1c27af[_0x2fe0('0x3b')](this[_0x2fe0('0x1e')][_0x2fe0('0x27')][_0x2fe0('0x4a')][_0x2fe0('0x44')]);for(const _0x51ecfb of _0x3edd93)for(const _0x2313b0 of _0x3edd93)if(_0x51ecfb!=_0x2313b0&&!this[_0x2fe0('0x52')](_0x51ecfb,_0x2313b0))return!0x1;return!0x0;}[_0x2fe0('0x52')](_0x252a92,_0x1f3d60){const _0x12e1c7=this[_0x2fe0('0x1e')][_0x2fe0('0xf')][_0x2fe0('0x40')](_0x2fe0('0x1f')),_0x17e77b=this['editor']['model'][_0x2fe0('0x2c')](_0x252a92),_0xbfc4a3=this[_0x2fe0('0x1e')][_0x2fe0('0x27')]['createRangeOn'](_0x1f3d60),_0x49f07e=new Set(),_0x2f076a=new Set();for(const _0x34b70c of _0x12e1c7[_0x2fe0('0x13')]())if((_0x2fe0('0x3e')==_0x34b70c[_0x2fe0('0x2b')]||_0x2fe0('0x24')==_0x34b70c['type']||'mergeTableCells'==_0x34b70c[_0x2fe0('0x3d')])&&_0x34b70c['isInContent'])for(const _0x1dac62 of _0x34b70c[_0x2fe0('0x25')]())_0x1dac62[_0x2fe0('0x28')](_0x17e77b,!0x0)&&_0x49f07e[_0x2fe0('0x46')](_0x34b70c['type']+':'+_0x34b70c[_0x2fe0('0x15')]['id']),_0x1dac62[_0x2fe0('0x28')](_0xbfc4a3,!0x0)&&_0x2f076a[_0x2fe0('0x46')](_0x34b70c[_0x2fe0('0x2b')]+':'+_0x34b70c[_0x2fe0('0x15')]['id']);if(_0x49f07e[_0x2fe0('0x1b')]!=_0x2f076a[_0x2fe0('0x1b')])return!0x1;for(const _0x2967d0 of _0x49f07e)if(!_0x2f076a[_0x2fe0('0x47')](_0x2967d0))return!0x1;return!0x0;}}
23
+ const _0x4a6f=['_suggestionFactory','element','selection','splitTableCellVertically','mergeTableCells','*Split\x20cell:*\x20horizontally','model','getAncestors','length','filter','getFirstPosition','getRanges','isEnabled','mergeTableCellDown','detach','insertion','from','value','registerCustomCallback','commands','getSelectionAffectedTableCells','deletion','has','plugins','containsRange','stop','splitTableCellHorizontally','isInContent','return','subType','document','TableEditing','*Merge\x20cells*','push','format','formatBlock','_acceptFormatSuggestionCallbackFactory','_areMergableCells','low','mergeTableCellUp','TableUtils','*Split\x20cell:*\x20vertically','author','getSuggestions','createRangeOn','_tablePostFixingSubtypes','execute','mergeTableCellRight','tableCell','markMultiRangeBlockFormat','findAncestor','commandName','change','requires','enableCommand','createTableWalker','setSelection','mergeTableCellLeft','registerDescriptionCallback','_areSelectedCellsMergable','size','type','editor','locale','highest','getCellLocation','find','trackChanges','_descriptionFactory','set:isEnabled','_isForcedDefaultExecutionBlock','add','accept','rootName','map','TrackChangesEditing','refresh','forceDefaultExecution','get'];(function(_0x24ae89,_0x4a6f49){const _0x5e584b=function(_0x3be160){while(--_0x3be160){_0x24ae89['push'](_0x24ae89['shift']());}};_0x5e584b(++_0x4a6f49);}(_0x4a6f,0xfe));const _0x5e58=function(_0x24ae89,_0x4a6f49){_0x24ae89=_0x24ae89-0x0;let _0x5e584b=_0x4a6f[_0x24ae89];return _0x5e584b;};import{Plugin as _0x23d60f}from'ckeditor5/src/core';import _0x4cfd16 from'./table';import{LiveRange as _0x139f32}from'ckeditor5/src/engine';import{getTranslation as _0x20df93}from'../utils/common-translations';export default class pt extends _0x23d60f{static get[_0x5e58('0x24')](){return[_0x4cfd16];}['afterInit'](){const _0x376557=this['editor'],_0x2892e3=_0x376557[_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')],_0x2053e4=_0x376557[_0x5e58('0x2e')];if(!_0x376557[_0x5e58('0x6')]['has'](_0x5e58('0xe')))return;const _0x388f1f=_0x376557['plugins'][_0x5e58('0x3d')](_0x5e58('0x3a')),_0x484bbb=_0x376557[_0x5e58('0x6')][_0x5e58('0x3d')](_0x5e58('0x17')),_0x542b50=_0x376557[_0x5e58('0x6')][_0x5e58('0x3d')](_0x4cfd16);_0x542b50[_0x5e58('0x1c')][_0x5e58('0x10')](_0x5e58('0x42')),_0x388f1f[_0x5e58('0x25')]('mergeTableCells',()=>{const _0x36e511=_0x484bbb[_0x5e58('0x3')](_0x376557[_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')]);_0x376557[_0x5e58('0x44')][_0x5e58('0x23')](()=>{_0x388f1f['markMultiRangeBlockFormat'](_0x36e511,{'commandName':'mergeTableCells','commandParams':[]},[],_0x5e58('0x42'));});}),_0x376557['commands'][_0x5e58('0x3d')](_0x5e58('0x42'))['on'](_0x5e58('0x1d'),(_0x3431f9,_0x4cfa7a)=>{_0x376557[_0x5e58('0x2')][_0x5e58('0x3d')](_0x5e58('0x32'))[_0x5e58('0x0')]&&(_0x4cfa7a[_0x5e58('0x46')]>0x0&&_0x4cfa7a[_0x4cfa7a['length']-0x1]&&_0x4cfa7a[_0x4cfa7a[_0x5e58('0x46')]-0x1][_0x5e58('0x3c')]||_0x388f1f[_0x5e58('0x35')]||this[_0x5e58('0x2a')]()||_0x3431f9[_0x5e58('0x8')]());},{'priority':_0x5e58('0x2f')});for(const _0x1ab8ed of[_0x5e58('0x16'),'mergeTableCellRight',_0x5e58('0x4b'),'mergeTableCellLeft']){const _0x5e9474=_0x376557[_0x5e58('0x2')][_0x5e58('0x3d')](_0x1ab8ed);_0x388f1f[_0x5e58('0x25')](_0x1ab8ed,()=>{const _0x26155a=_0x376557[_0x5e58('0x44')][_0x5e58('0xd')]['selection'][_0x5e58('0x48')]()['getAncestors']()[_0x5e58('0x31')](_0x3e72fd=>_0x3e72fd['is'](_0x5e58('0x3f'),_0x5e58('0x1f'))),_0x3cbbad=_0x5e9474[_0x5e58('0x0')];_0x376557[_0x5e58('0x44')]['change'](()=>{_0x388f1f[_0x5e58('0x20')]([_0x26155a,_0x3cbbad],{'commandName':'mergeTableCells','commandParams':[]},[],_0x5e58('0x42'));});});}for(const _0x40ddc6 of[_0x5e58('0x41'),'splitTableCellHorizontally']){const _0x257a71=_0x376557[_0x5e58('0x2')][_0x5e58('0x3d')](_0x40ddc6);_0x388f1f['enableCommand'](_0x40ddc6,()=>{const _0x499b58=_0x484bbb[_0x5e58('0x3')](_0x376557[_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')])[0x0],_0x3ac638=_0x499b58[_0x5e58('0x21')]('table'),{column:_0x4b3ffd,row:_0x522de5}=_0x484bbb[_0x5e58('0x30')](_0x499b58);let _0x176f74=[];if('horizontally'==_0x257a71['direction']){const _0x21d53a=_0x484bbb[_0x5e58('0x26')](_0x3ac638,{'startRow':_0x522de5,'endRow':_0x522de5,'includeAllSlots':!0x0});_0x176f74=Array[_0x5e58('0x4e')](_0x21d53a)['map'](_0xda637f=>_0xda637f['cell']);}else{const _0x160997=_0x484bbb['createTableWalker'](_0x3ac638,{'column':_0x4b3ffd,'includeAllSlots':!0x0});_0x176f74=Array[_0x5e58('0x4e')](_0x160997)[_0x5e58('0x39')](_0x2109d9=>_0x2109d9['cell']);}_0x376557[_0x5e58('0x44')][_0x5e58('0x23')](_0x15cc27=>{_0x388f1f['markBlockFormat'](_0x15cc27[_0x5e58('0x1b')](_0x499b58),{'commandName':_0x40ddc6,'commandParams':[]},_0x176f74,_0x40ddc6);});});}_0x388f1f['_descriptionFactory'][_0x5e58('0x29')](_0x5119f7=>{const {data:_0x40c3ea}=_0x5119f7;if(_0x40c3ea)return _0x5e58('0x42')==_0x40c3ea['commandName']?{'type':_0x5e58('0x11'),'content':_0x20df93(_0x2053e4,_0x5e58('0xf'))}:void 0x0;}),_0x388f1f[_0x5e58('0x33')][_0x5e58('0x29')](_0x53fd1c=>{const {data:_0x1b4031}=_0x53fd1c;if(_0x1b4031)return _0x5e58('0x41')==_0x1b4031[_0x5e58('0x22')]?{'type':_0x5e58('0x11'),'content':_0x20df93(_0x2053e4,_0x5e58('0x18'))}:_0x5e58('0x9')==_0x1b4031[_0x5e58('0x22')]?{'type':_0x5e58('0x11'),'content':_0x20df93(_0x2053e4,_0x5e58('0x43'))}:void 0x0;});const _0x2dc878=_0x542b50[_0x5e58('0x13')]();for(const _0x5861d8 of[_0x5e58('0x16'),_0x5e58('0x1e'),_0x5e58('0x4b'),_0x5e58('0x28')])_0x388f1f[_0x5e58('0x3e')]['registerCustomCallback'](_0x5e58('0x12'),_0x5861d8,_0x5e58('0x37'),_0x2dc878);for(const _0x19a9bf of[_0x5e58('0x41'),_0x5e58('0x9')])_0x388f1f[_0x5e58('0x3e')][_0x5e58('0x1')]('formatBlock',_0x19a9bf,'accept',_0x2dc878);_0x388f1f[_0x5e58('0x3e')][_0x5e58('0x1')]('formatBlock',_0x5e58('0x42'),_0x5e58('0x37'),_0x1a819f=>{_0x376557['model'][_0x5e58('0x23')](_0xd4ec68=>{const _0x3022f5=Array[_0x5e58('0x4e')](_0x2892e3['getRanges']())[_0x5e58('0x39')](_0x4852ff=>_0x139f32['fromRange'](_0x4852ff));_0xd4ec68[_0x5e58('0x27')](_0x1a819f),_0x376557['commands']['get'](_0x5e58('0x42'))[_0x5e58('0x3b')](),_0x376557[_0x5e58('0x1d')](_0x5e58('0x42'),{'forceDefaultExecution':!0x0});const _0x207275=_0x3022f5[_0x5e58('0x47')](_0x4d1fb5=>'$graveyard'!=_0x4d1fb5['root'][_0x5e58('0x38')]);_0x207275[_0x5e58('0x46')]>0x0&&_0xd4ec68[_0x5e58('0x27')](_0x207275);for(const _0x322272 of _0x3022f5)_0x322272[_0x5e58('0x4c')]();});});for(const _0x397ef1 of[_0x5e58('0x16'),_0x5e58('0x4b'),_0x5e58('0x28'),'mergeTableCellRight']){const _0x3acd6c=_0x376557[_0x5e58('0x2')]['get'](_0x397ef1);_0x3acd6c['on'](_0x5e58('0x34'),(_0x255e8c,_0x1211a3,_0x19145a)=>{if(_0x19145a){const _0xe4a7ce=_0x376557[_0x5e58('0x44')]['document']['selection'][_0x5e58('0x48')]()[_0x5e58('0x45')]()[_0x5e58('0x31')](_0x446c19=>_0x446c19['is'](_0x5e58('0x3f'),_0x5e58('0x1f')));this[_0x5e58('0x14')](_0x3acd6c[_0x5e58('0x0')],_0xe4a7ce)||(_0x255e8c[_0x5e58('0xb')]=!0x1,_0x255e8c['stop']());}},{'priority':_0x5e58('0x15')});}}[_0x5e58('0x2a')](){const _0x2646e8=this[_0x5e58('0x2d')][_0x5e58('0x2')]['get'](_0x5e58('0x42')),_0x3d5e28=this[_0x5e58('0x2d')][_0x5e58('0x6')]['get'](_0x5e58('0x17'));if(!_0x2646e8[_0x5e58('0x4a')])return!0x1;const _0x2169fd=_0x3d5e28[_0x5e58('0x3')](this['editor'][_0x5e58('0x44')][_0x5e58('0xd')][_0x5e58('0x40')]);for(const _0x323cd5 of _0x2169fd)for(const _0x3265b2 of _0x2169fd)if(_0x323cd5!=_0x3265b2&&!this['_areMergableCells'](_0x323cd5,_0x3265b2))return!0x1;return!0x0;}[_0x5e58('0x14')](_0x2d751a,_0x1f2a67){const _0x238d4a=this[_0x5e58('0x2d')][_0x5e58('0x6')]['get'](_0x5e58('0x3a')),_0x51a8db=this[_0x5e58('0x2d')]['model'][_0x5e58('0x1b')](_0x2d751a),_0x5a7da6=this[_0x5e58('0x2d')][_0x5e58('0x44')][_0x5e58('0x1b')](_0x1f2a67),_0x261ca8=new Set(),_0x3a87a4=new Set();for(const _0x940ffd of _0x238d4a[_0x5e58('0x1a')]())if((_0x5e58('0x4d')==_0x940ffd['type']||_0x5e58('0x4')==_0x940ffd['type']||_0x5e58('0x42')==_0x940ffd[_0x5e58('0xc')])&&_0x940ffd[_0x5e58('0xa')])for(const _0x14cf83 of _0x940ffd[_0x5e58('0x49')]())_0x14cf83['containsRange'](_0x51a8db,!0x0)&&_0x261ca8[_0x5e58('0x36')](_0x940ffd[_0x5e58('0x2c')]+':'+_0x940ffd['author']['id']),_0x14cf83[_0x5e58('0x7')](_0x5a7da6,!0x0)&&_0x3a87a4['add'](_0x940ffd[_0x5e58('0x2c')]+':'+_0x940ffd[_0x5e58('0x19')]['id']);if(_0x261ca8[_0x5e58('0x2b')]!=_0x3a87a4[_0x5e58('0x2b')])return!0x1;for(const _0x1417d4 of _0x261ca8)if(!_0x3a87a4[_0x5e58('0x5')](_0x1417d4))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x190a=['registerDescriptionCallback','TrackChangesTableProperties','enableCommand','tableCellBorderStyle','TableUtils','afterInit','handleDiscardAction','TrackChangesEditing','TableCellPropertiesEditing','document','markBlockFormat','_handlePropertyChange','setAttribute','selection','table','getSuggestions','_descriptionFactory','enqueueChange','tableCellBorderWidth','tableCellHorizontalAlignment','_getSuggestion','tableCellVerticalAlignment','get','tableProperties','tableWidth','getFirstPosition','formatBlock','tableBorderStyle','tableCellBackgroundColor','subType','tableBorderColor','tableCellBorderColor','start','discard','editor','getContainedElement','commandParams','tableCellProperties','tableCellPadding','tableCellWidth','accept','findAncestor','getAttribute','getSuggestionCallback','tableBorderWidth','plugins','_suggestionFactory','change','handleSuggestionDescription','format','*Format:*\x20change\x20table\x20cell\x20properties','registerCustomCallback','batch','pluginName','tableCellHeight','model','nodeAfter'];(function(_0x5e5192,_0x190aac){const _0x2ca38e=function(_0x544e4a){while(--_0x544e4a){_0x5e5192['push'](_0x5e5192['shift']());}};_0x2ca38e(++_0x190aac);}(_0x190a,0x1f0));const _0x2ca3=function(_0x5e5192,_0x190aac){_0x5e5192=_0x5e5192-0x0;let _0x2ca38e=_0x190a[_0x5e5192];return _0x2ca38e;};import{Plugin as _0x14c5a8}from'ckeditor5/src/core';import{getTranslation as _0x59db7b}from'../utils/common-translations';export default class At extends _0x14c5a8{static get[_0x2ca3('0xd')](){return _0x2ca3('0x12');}[_0x2ca3('0x16')](){const _0x6bfa97=this[_0x2ca3('0x33')][_0x2ca3('0x5')]['get']('TrackChangesEditing');if(this[_0x2ca3('0x33')][_0x2ca3('0x5')]['has']('TablePropertiesEditing')){this[_0x2ca3('0x28')]=[_0x2ca3('0x2f'),_0x2ca3('0x2c'),_0x2ca3('0x4'),'tableAlignment',_0x2ca3('0x29'),'tableHeight','tableBackgroundColor'];for(const _0x391e7d of this[_0x2ca3('0x28')])_0x6bfa97[_0x2ca3('0x13')](_0x391e7d,(_0x2da5cb,_0x403094)=>{const _0xf101be=this[_0x2ca3('0x33')]['model'][_0x2ca3('0x1a')][_0x2ca3('0x1e')][_0x2ca3('0x2a')]()[_0x2ca3('0x1')](_0x2ca3('0x1f'));this['_handlePropertyChange'](_0x391e7d,[_0xf101be],this[_0x2ca3('0x28')],'tableProperties',_0x2da5cb,_0x403094);});_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),_0x2ca3('0x0'),_0x6bfa97[_0x2ca3('0x6')]['getSuggestionCallback'](_0x2ca3('0x2b'),null,_0x2ca3('0x32'))),_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),_0x2ca3('0x32'),(_0x1e55f1,_0x49c58d)=>this[_0x2ca3('0x17')](this[_0x2ca3('0x28')],_0x1e55f1,_0x49c58d)),_0x6bfa97['_suggestionFactory'][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x28'),'join',()=>!0x1);}if(this[_0x2ca3('0x33')]['plugins']['has'](_0x2ca3('0x19'))){this[_0x2ca3('0x36')]=[_0x2ca3('0x30'),_0x2ca3('0x14'),_0x2ca3('0x23'),_0x2ca3('0x37'),_0x2ca3('0x38'),_0x2ca3('0xe'),_0x2ca3('0x2d'),_0x2ca3('0x24'),_0x2ca3('0x26')];for(const _0x35cf29 of this['tableCellProperties'])_0x6bfa97[_0x2ca3('0x13')](_0x35cf29,(_0x5e11be,_0x376194)=>{const _0x62f47d=this[_0x2ca3('0x33')]['plugins']['get'](_0x2ca3('0x15'))['getSelectionAffectedTableCells'](this[_0x2ca3('0x33')][_0x2ca3('0xf')][_0x2ca3('0x1a')][_0x2ca3('0x1e')]);this[_0x2ca3('0x1c')](_0x35cf29,_0x62f47d,this[_0x2ca3('0x36')],_0x2ca3('0x36'),_0x5e11be,_0x376194);});_0x6bfa97['_suggestionFactory']['registerCustomCallback'](_0x2ca3('0x2b'),_0x2ca3('0x36'),'accept',_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0x3')](_0x2ca3('0x2b'),null,'discard')),_0x6bfa97['_suggestionFactory'][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x36'),_0x2ca3('0x32'),(_0x220313,_0x11f51c)=>this[_0x2ca3('0x17')](this[_0x2ca3('0x36')],_0x220313,_0x11f51c)),_0x6bfa97[_0x2ca3('0x6')][_0x2ca3('0xb')](_0x2ca3('0x2b'),_0x2ca3('0x36'),'join',()=>!0x1);}_0x6bfa97[_0x2ca3('0x21')][_0x2ca3('0x11')](_0x5478a7=>this[_0x2ca3('0x8')](_0x5478a7));}['_handlePropertyChange'](_0x4a24a5,_0x4c5638,_0x7adbde,_0xdc0776,_0x31e6d8,_0x5bef19){const _0x10d68c=this[_0x2ca3('0x33')][_0x2ca3('0x5')][_0x2ca3('0x27')](_0x2ca3('0x18'));this['editor'][_0x2ca3('0xf')][_0x2ca3('0x22')](_0x5bef19[_0x2ca3('0xc')],()=>{for(const _0x10c894 of _0x4c5638){if(this['_getSuggestion'](_0x10c894,_0xdc0776))_0x31e6d8(_0x5bef19);else{const _0xdce01e={};for(const _0x41016a of _0x7adbde){const _0x235d9c=_0x10c894[_0x2ca3('0x2')](_0x41016a);void 0x0!==_0x235d9c&&(_0xdce01e[_0x41016a]=_0x235d9c);}_0x31e6d8(_0x5bef19),_0x10d68c[_0x2ca3('0x1b')](_0x10c894,{'commandParams':[_0xdce01e]},[],_0xdc0776);}}});}[_0x2ca3('0x17')](_0xb79ed8,_0x25c89c,_0x45c60a){const _0x86de88=_0x25c89c[0x0][_0x2ca3('0x31')][_0x2ca3('0x10')],_0x556c2c=_0x45c60a[_0x2ca3('0x35')][0x0];this[_0x2ca3('0x33')][_0x2ca3('0xf')][_0x2ca3('0x7')](_0xcf3b14=>{for(const _0x5ef3c1 of _0xb79ed8)void 0x0!==_0x556c2c[_0x5ef3c1]?_0xcf3b14[_0x2ca3('0x1d')](_0x5ef3c1,_0x556c2c[_0x5ef3c1],_0x86de88):_0xcf3b14['removeAttribute'](_0x5ef3c1,_0x86de88);});}[_0x2ca3('0x8')](_0xc8afec){if(_0xc8afec['data'])switch(_0xc8afec[_0x2ca3('0x2e')]){case'tableProperties':return{'type':_0x2ca3('0x9'),'content':_0x59db7b(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case _0x2ca3('0x36'):return{'type':_0x2ca3('0x9'),'content':_0x59db7b(this[_0x2ca3('0x33')]['locale'],_0x2ca3('0xa'))};}}[_0x2ca3('0x25')](_0x53d019,_0x26e68e){const _0x3ebbad=this['editor'][_0x2ca3('0x5')]['get'](_0x2ca3('0x18'));for(const _0xdf9792 of _0x3ebbad[_0x2ca3('0x20')]({'skipNotAttached':!0x0})){const _0x44e528=_0xdf9792[_0x2ca3('0x34')]();if(_0xdf9792[_0x2ca3('0x2e')]===_0x26e68e&&_0x44e528===_0x53d019)return _0xdf9792;}return null;}}
23
+ const _0xdaf2=['tableCellHeight','handleDiscardAction','_descriptionFactory','enableCommand','registerCustomCallback','has','tableProperties','_suggestionFactory','document','tableCellProperties','TrackChangesTableProperties','*Format:*\x20change\x20table\x20properties','findAncestor','discard','tableCellPadding','data','subType','registerDescriptionCallback','table','tableWidth','get','*Format:*\x20change\x20table\x20cell\x20properties','getSelectionAffectedTableCells','TrackChangesEditing','TableUtils','tableBorderStyle','locale','editor','afterInit','tableBackgroundColor','tableCellBorderColor','formatBlock','_getSuggestion','plugins','getSuggestions','tableCellBorderStyle','getContainedElement','handleSuggestionDescription','tableCellHorizontalAlignment','change','getSuggestionCallback','accept','tableCellVerticalAlignment','enqueueChange','removeAttribute','batch','tableBorderWidth','selection','commandParams','tableCellBorderWidth','join','start','_handlePropertyChange','pluginName','format','model'];(function(_0xaa8fef,_0xdaf2a){const _0x4c2759=function(_0x49cabf){while(--_0x49cabf){_0xaa8fef['push'](_0xaa8fef['shift']());}};_0x4c2759(++_0xdaf2a);}(_0xdaf2,0x90));const _0x4c27=function(_0xaa8fef,_0xdaf2a){_0xaa8fef=_0xaa8fef-0x0;let _0x4c2759=_0xdaf2[_0xaa8fef];return _0x4c2759;};import{Plugin as _0x3e12c3}from'ckeditor5/src/core';import{getTranslation as _0x587493}from'../utils/common-translations';export default class At extends _0x3e12c3{static get[_0x4c27('0x15')](){return _0x4c27('0x22');}[_0x4c27('0x34')](){const _0x183051=this[_0x4c27('0x33')][_0x4c27('0x1')][_0x4c27('0x2c')]('TrackChangesEditing');if(this[_0x4c27('0x33')]['plugins'][_0x4c27('0x1d')]('TablePropertiesEditing')){this[_0x4c27('0x1e')]=['tableBorderColor',_0x4c27('0x31'),_0x4c27('0xe'),'tableAlignment',_0x4c27('0x2b'),'tableHeight',_0x4c27('0x35')];for(const _0x2a6797 of this[_0x4c27('0x1e')])_0x183051[_0x4c27('0x1b')](_0x2a6797,(_0x3355bc,_0x4503fb)=>{const _0x1307c5=this[_0x4c27('0x33')]['model'][_0x4c27('0x20')][_0x4c27('0xf')]['getFirstPosition']()[_0x4c27('0x24')](_0x4c27('0x2a'));this[_0x4c27('0x14')](_0x2a6797,[_0x1307c5],this[_0x4c27('0x1e')],_0x4c27('0x1e'),_0x3355bc,_0x4503fb);});_0x183051[_0x4c27('0x1f')][_0x4c27('0x1c')]('formatBlock',_0x4c27('0x1e'),_0x4c27('0x9'),_0x183051[_0x4c27('0x1f')][_0x4c27('0x8')]('formatBlock',null,_0x4c27('0x25'))),_0x183051[_0x4c27('0x1f')][_0x4c27('0x1c')](_0x4c27('0x37'),_0x4c27('0x1e'),_0x4c27('0x25'),(_0x2a65e6,_0x361c41)=>this[_0x4c27('0x19')](this['tableProperties'],_0x2a65e6,_0x361c41)),_0x183051['_suggestionFactory'][_0x4c27('0x1c')](_0x4c27('0x37'),_0x4c27('0x1e'),_0x4c27('0x12'),()=>!0x1);}if(this[_0x4c27('0x33')][_0x4c27('0x1')]['has']('TableCellPropertiesEditing')){this[_0x4c27('0x21')]=[_0x4c27('0x36'),_0x4c27('0x3'),_0x4c27('0x11'),_0x4c27('0x26'),'tableCellWidth',_0x4c27('0x18'),'tableCellBackgroundColor',_0x4c27('0x6'),_0x4c27('0xa')];for(const _0x437c95 of this['tableCellProperties'])_0x183051['enableCommand'](_0x437c95,(_0x3ef7dd,_0x31b7ec)=>{const _0xb2cdfe=this[_0x4c27('0x33')]['plugins'][_0x4c27('0x2c')](_0x4c27('0x30'))[_0x4c27('0x2e')](this[_0x4c27('0x33')][_0x4c27('0x17')]['document']['selection']);this[_0x4c27('0x14')](_0x437c95,_0xb2cdfe,this[_0x4c27('0x21')],_0x4c27('0x21'),_0x3ef7dd,_0x31b7ec);});_0x183051[_0x4c27('0x1f')]['registerCustomCallback'](_0x4c27('0x37'),_0x4c27('0x21'),_0x4c27('0x9'),_0x183051[_0x4c27('0x1f')][_0x4c27('0x8')](_0x4c27('0x37'),null,_0x4c27('0x25'))),_0x183051['_suggestionFactory']['registerCustomCallback'](_0x4c27('0x37'),'tableCellProperties',_0x4c27('0x25'),(_0x47365f,_0x599671)=>this[_0x4c27('0x19')](this[_0x4c27('0x21')],_0x47365f,_0x599671)),_0x183051[_0x4c27('0x1f')][_0x4c27('0x1c')](_0x4c27('0x37'),'tableCellProperties',_0x4c27('0x12'),()=>!0x1);}_0x183051[_0x4c27('0x1a')][_0x4c27('0x29')](_0x13b878=>this[_0x4c27('0x5')](_0x13b878));}[_0x4c27('0x14')](_0x4850d1,_0x1b0219,_0x568eaf,_0x413390,_0x345dfc,_0x3e3cbe){const _0x1c09e8=this[_0x4c27('0x33')]['plugins'][_0x4c27('0x2c')]('TrackChangesEditing');this[_0x4c27('0x33')][_0x4c27('0x17')][_0x4c27('0xb')](_0x3e3cbe[_0x4c27('0xd')],()=>{for(const _0x5ce8f2 of _0x1b0219){if(this[_0x4c27('0x0')](_0x5ce8f2,_0x413390))_0x345dfc(_0x3e3cbe);else{const _0x5adb1a={};for(const _0x2d8a82 of _0x568eaf){const _0x373d59=_0x5ce8f2['getAttribute'](_0x2d8a82);void 0x0!==_0x373d59&&(_0x5adb1a[_0x2d8a82]=_0x373d59);}_0x345dfc(_0x3e3cbe),_0x1c09e8['markBlockFormat'](_0x5ce8f2,{'commandParams':[_0x5adb1a]},[],_0x413390);}}});}[_0x4c27('0x19')](_0xd0d5ba,_0x1c91aa,_0x383945){const _0x5ad2de=_0x1c91aa[0x0][_0x4c27('0x13')]['nodeAfter'],_0x127e0e=_0x383945[_0x4c27('0x10')][0x0];this[_0x4c27('0x33')]['model'][_0x4c27('0x7')](_0x34aced=>{for(const _0x5b87c1 of _0xd0d5ba)void 0x0!==_0x127e0e[_0x5b87c1]?_0x34aced['setAttribute'](_0x5b87c1,_0x127e0e[_0x5b87c1],_0x5ad2de):_0x34aced[_0x4c27('0xc')](_0x5b87c1,_0x5ad2de);});}[_0x4c27('0x5')](_0x4281e0){if(_0x4281e0[_0x4c27('0x27')])switch(_0x4281e0[_0x4c27('0x28')]){case _0x4c27('0x1e'):return{'type':_0x4c27('0x16'),'content':_0x587493(this[_0x4c27('0x33')][_0x4c27('0x32')],_0x4c27('0x23'))};case _0x4c27('0x21'):return{'type':_0x4c27('0x16'),'content':_0x587493(this['editor'][_0x4c27('0x32')],_0x4c27('0x2d'))};}}[_0x4c27('0x0')](_0x1d3716,_0x333038){const _0x1a4121=this[_0x4c27('0x33')][_0x4c27('0x1')][_0x4c27('0x2c')](_0x4c27('0x2f'));for(const _0x282a6e of _0x1a4121[_0x4c27('0x2')]({'skipNotAttached':!0x0})){const _0x275ced=_0x282a6e[_0x4c27('0x4')]();if(_0x282a6e[_0x4c27('0x28')]===_0x333038&&_0x275ced===_0x1d3716)return _0x282a6e;}return null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1120=['TrackChangesEditing','_descriptionFactory','createRange','updateMarker','Title','get','forward','registerPostFixer','getChangedMarkers','removeMarker','model','editor','end','plugins','from','locale','getNearestSelectionRange','title-content','has','start','isTouching','registerElementLabel','document','element','afterInit','schema','suggestion','differ','isCollapsed','newRange'];(function(_0x353a0f,_0x112058){const _0x3f4cb9=function(_0xbd409d){while(--_0xbd409d){_0x353a0f['push'](_0x353a0f['shift']());}};_0x3f4cb9(++_0x112058);}(_0x1120,0x143));const _0x3f4c=function(_0x353a0f,_0x112058){_0x353a0f=_0x353a0f-0x0;let _0x3f4cb9=_0x1120[_0x353a0f];return _0x3f4cb9;};import{Plugin as _0x1123aa}from'ckeditor5/src/core';import{getTranslation as _0x3d2f7f}from'../utils/common-translations';export default class bt extends _0x1123aa{[_0x3f4c('0x1')](){const _0x113081=this[_0x3f4c('0x12')];if(!_0x113081[_0x3f4c('0x14')][_0x3f4c('0x19')](_0x3f4c('0xb')))return;const _0x596d11=_0x113081[_0x3f4c('0x14')][_0x3f4c('0xc')](_0x3f4c('0x7'));_0x596d11[_0x3f4c('0x8')][_0x3f4c('0x1c')](_0x3f4c('0x18'),()=>_0x3d2f7f(_0x113081[_0x3f4c('0x16')],'ELEMENT_TITLE')),_0x113081[_0x3f4c('0x11')][_0x3f4c('0x1d')][_0x3f4c('0xe')](_0x1d3db3=>{let _0x59c9b2=!0x1;const _0x3d94d8=Array[_0x3f4c('0x15')](_0x113081[_0x3f4c('0x11')][_0x3f4c('0x1d')][_0x3f4c('0x4')][_0x3f4c('0xf')]());for(const {name:_0x542ea0,data:_0x45d6fc}of _0x3d94d8){const {group:_0x27cf07}=_0x596d11['_splitMarkerName'](_0x542ea0);if(_0x3f4c('0x3')!==_0x27cf07||!_0x45d6fc[_0x3f4c('0x6')])continue;const _0x3c2e61=_0x45d6fc[_0x3f4c('0x6')],_0x35200b=_0x3c2e61[_0x3f4c('0x13')]['nodeBefore'];if(!_0x35200b||!_0x35200b['is'](_0x3f4c('0x0'),_0x3f4c('0x18')))continue;if(!_0x3c2e61[_0x3f4c('0x1a')][_0x3f4c('0x1b')](_0x3c2e61[_0x3f4c('0x13')]))continue;const _0x101aae=_0x113081[_0x3f4c('0x11')][_0x3f4c('0x2')][_0x3f4c('0x17')](_0x3c2e61[_0x3f4c('0x13')],_0x3f4c('0xd'));if(_0x101aae&&_0x101aae[_0x3f4c('0x5')]){const _0x88c3f=_0x1d3db3[_0x3f4c('0x9')](_0x3c2e61[_0x3f4c('0x1a')],_0x101aae[_0x3f4c('0x1a')]);_0x88c3f['isEqual'](_0x3c2e61)||(_0x1d3db3[_0x3f4c('0xa')](_0x542ea0,{'range':_0x88c3f}),_0x59c9b2=!0x0);}_0x59c9b2||(_0x1d3db3[_0x3f4c('0x10')](_0x542ea0),_0x59c9b2=!0x0);}return _0x59c9b2;});}}
23
+ const _0x2dc9=['locale','removeMarker','title-content','registerElementLabel','_splitMarkerName','forward','ELEMENT_TITLE','getChangedMarkers','nodeBefore','isEqual','isTouching','plugins','differ','model','getNearestSelectionRange','end','document','isCollapsed','newRange','TrackChangesEditing','editor','_descriptionFactory','start','schema','from','updateMarker','Title','afterInit','element','suggestion'];(function(_0x1d09f1,_0x2dc93c){const _0x32340b=function(_0x56a993){while(--_0x56a993){_0x1d09f1['push'](_0x1d09f1['shift']());}};_0x32340b(++_0x2dc93c);}(_0x2dc9,0xde));const _0x3234=function(_0x1d09f1,_0x2dc93c){_0x1d09f1=_0x1d09f1-0x0;let _0x32340b=_0x2dc9[_0x1d09f1];return _0x32340b;};import{Plugin as _0x2405a0}from'ckeditor5/src/core';import{getTranslation as _0x1b6562}from'../utils/common-translations';export default class bt extends _0x2405a0{[_0x3234('0xf')](){const _0x3d14bd=this[_0x3234('0x8')];if(!_0x3d14bd[_0x3234('0x1d')]['has'](_0x3234('0xe')))return;const _0xd0febb=_0x3d14bd[_0x3234('0x1d')]['get'](_0x3234('0x7'));_0xd0febb[_0x3234('0x9')][_0x3234('0x15')](_0x3234('0x14'),()=>_0x1b6562(_0x3d14bd[_0x3234('0x12')],_0x3234('0x18'))),_0x3d14bd['model'][_0x3234('0x4')]['registerPostFixer'](_0x20ef4c=>{let _0x41fbf0=!0x1;const _0x210ecf=Array[_0x3234('0xc')](_0x3d14bd[_0x3234('0x1')][_0x3234('0x4')][_0x3234('0x0')][_0x3234('0x19')]());for(const {name:_0x38fefc,data:_0x3b6360}of _0x210ecf){const {group:_0x53e1fb}=_0xd0febb[_0x3234('0x16')](_0x38fefc);if(_0x3234('0x11')!==_0x53e1fb||!_0x3b6360[_0x3234('0x6')])continue;const _0x26d851=_0x3b6360[_0x3234('0x6')],_0x395f5c=_0x26d851[_0x3234('0x3')][_0x3234('0x1a')];if(!_0x395f5c||!_0x395f5c['is'](_0x3234('0x10'),_0x3234('0x14')))continue;if(!_0x26d851['start'][_0x3234('0x1c')](_0x26d851[_0x3234('0x3')]))continue;const _0x55c810=_0x3d14bd['model'][_0x3234('0xb')][_0x3234('0x2')](_0x26d851['end'],_0x3234('0x17'));if(_0x55c810&&_0x55c810[_0x3234('0x5')]){const _0x34b0ca=_0x20ef4c['createRange'](_0x26d851[_0x3234('0xa')],_0x55c810[_0x3234('0xa')]);_0x34b0ca[_0x3234('0x1b')](_0x26d851)||(_0x20ef4c[_0x3234('0xd')](_0x38fefc,{'range':_0x34b0ca}),_0x41fbf0=!0x0);}_0x41fbf0||(_0x20ef4c[_0x3234('0x13')](_0x38fefc),_0x41fbf0=!0x0);}return _0x41fbf0;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5a2b=['afterInit','editor','enableCommand','plugins','UndoEditing','redo','get'];(function(_0xc4f9db,_0x5a2b96){const _0x216ac0=function(_0x2b084c){while(--_0x2b084c){_0xc4f9db['push'](_0xc4f9db['shift']());}};_0x216ac0(++_0x5a2b96);}(_0x5a2b,0x97));const _0x216a=function(_0xc4f9db,_0x5a2b96){_0xc4f9db=_0xc4f9db-0x0;let _0x216ac0=_0x5a2b[_0xc4f9db];return _0x216ac0;};import{Plugin as _0x22cb3a}from'ckeditor5/src/core';export default class St extends _0x22cb3a{[_0x216a('0x3')](){const _0x28b7cb=this[_0x216a('0x4')],_0x4b2408=_0x28b7cb[_0x216a('0x6')][_0x216a('0x2')]('TrackChangesEditing');_0x28b7cb['plugins']['has'](_0x216a('0x0'))&&(_0x4b2408[_0x216a('0x5')]('undo'),_0x4b2408[_0x216a('0x5')](_0x216a('0x1')));}}
23
+ const _0x2b21=['has','TrackChangesEditing','redo','undo','afterInit','plugins','editor'];(function(_0x4bc2cc,_0x2b21cc){const _0x2d878b=function(_0x339d9d){while(--_0x339d9d){_0x4bc2cc['push'](_0x4bc2cc['shift']());}};_0x2d878b(++_0x2b21cc);}(_0x2b21,0x1a2));const _0x2d87=function(_0x4bc2cc,_0x2b21cc){_0x4bc2cc=_0x4bc2cc-0x0;let _0x2d878b=_0x2b21[_0x4bc2cc];return _0x2d878b;};import{Plugin as _0x232324}from'ckeditor5/src/core';export default class St extends _0x232324{[_0x2d87('0x6')](){const _0x1549a8=this[_0x2d87('0x1')],_0x161b8a=_0x1549a8[_0x2d87('0x0')]['get'](_0x2d87('0x3'));_0x1549a8[_0x2d87('0x0')][_0x2d87('0x2')]('UndoEditing')&&(_0x161b8a['enableCommand'](_0x2d87('0x5')),_0x161b8a['enableCommand'](_0x2d87('0x4')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x249d=['createRangeOn','span','markerName','name','mapper','consumable','isContent','nextSibling','element','createUIElement','getItems','addClass','toViewPosition','get','push','TrackChangesEditing','toViewElement','isBlock','type','listItem','test','includes','start','getWalker','markerRange','addHighlight','previousPosition','elementEnd','writer','ck-suggestion-marker-','item','listIndent','activeMarkers','bindElementToMarker','getAttribute'];(function(_0x210e01,_0x249d30){const _0x15ebb2=function(_0x196545){while(--_0x196545){_0x210e01['push'](_0x210e01['shift']());}};_0x15ebb2(++_0x249d30);}(_0x249d,0xee));const _0x15eb=function(_0x210e01,_0x249d30){_0x210e01=_0x210e01-0x0;let _0x15ebb2=_0x249d[_0x210e01];return _0x15ebb2;};export function getRangesWithAttribute(_0x6dc7cf,_0x2a1d98,_0x5e88e2){const _0x562b2b=[];for(const _0x487368 of _0x2a1d98[_0x15eb('0x11')]())_0x487368['hasAttribute'](_0x6dc7cf)&&_0x562b2b[_0x15eb('0x15')](_0x5e88e2[_0x15eb('0x7')](_0x487368));return _0x562b2b;}export function getElementsAffectedByListItemRename(_0x5b5b56){const _0x4963ff=[];if(_0x5b5b56['is'](_0x15eb('0xf'),_0x15eb('0x1a'))){let _0x1a7577=_0x5b5b56[_0x15eb('0xe')];for(;_0x1a7577&&_0x1a7577['is'](_0x15eb('0xf'),_0x15eb('0x1a'))&&_0x1a7577[_0x15eb('0x6')](_0x15eb('0x3'))>0x0;)_0x4963ff[_0x15eb('0x15')](_0x1a7577),_0x1a7577=_0x1a7577[_0x15eb('0xe')];}return _0x4963ff;}export function downcastSplitMergeMarker(_0x55f953,_0x303bbf,{showActiveMarker:_0x1cad8f=!0x0}={}){const _0x3483c3=_0x55f953['plugins'][_0x15eb('0x14')](_0x15eb('0x16'));return(_0x3ce661,_0x154006,_0x39221a)=>{if(!_0x39221a[_0x15eb('0xc')][_0x15eb('0x1b')](_0x154006[_0x15eb('0x1f')],_0x3ce661[_0x15eb('0xa')]))return;const _0x27a0b1=_0x154006[_0x15eb('0x1f')][_0x15eb('0x1e')](),_0x135278=_0x154006[_0x15eb('0x1f')][_0x15eb('0x1d')],_0x80dada=_0x55f953['model']['schema'];let _0x3b0233=null,_0x8d5002=null,_0x12fda4=!0x1,_0x4f715d=!0x1;for(const _0x7af28d of _0x27a0b1){const _0x284369=_0x7af28d[_0x15eb('0x2')];_0x12fda4=_0x12fda4||_0x80dada[_0x15eb('0xd')](_0x284369);const _0x5ef84c=_0x39221a[_0x15eb('0xb')][_0x15eb('0x17')](_0x284369);if(_0x5ef84c&&_0x5ef84c['getCustomProperty'](_0x15eb('0x20')))return;_0x15eb('0x22')==_0x7af28d[_0x15eb('0x19')]&&(_0x80dada[_0x15eb('0x18')](_0x284369)&&!_0x80dada['isLimit'](_0x284369)&&(_0x284369[_0x15eb('0xe')]||_0x135278['isAtEnd']?_0x3b0233&&_0x3b0233['parent']==_0x284369||(_0x3b0233=_0x284369,_0x3db27d(_0x7af28d[_0x15eb('0x21')]),_0x4f715d=!0x0):_0x8d5002=_0x8d5002||_0x7af28d[_0x15eb('0x21')]));}function _0x3db27d(_0x498dcc){const _0x166bdf=_0x39221a[_0x15eb('0x0')][_0x15eb('0x10')](_0x15eb('0x8'),{'class':_0x15eb('0x1')+_0x303bbf}),_0x373473=_0x39221a[_0x15eb('0xb')][_0x15eb('0x13')](_0x498dcc);_0x1cad8f&&_0x3483c3[_0x15eb('0x4')][_0x15eb('0x1c')](_0x154006[_0x15eb('0x9')])&&_0x39221a[_0x15eb('0x0')][_0x15eb('0x12')]('ck-suggestion-marker--active',_0x166bdf),_0x39221a[_0x15eb('0x0')]['insert'](_0x373473,_0x166bdf),_0x39221a['mapper'][_0x15eb('0x5')](_0x166bdf,_0x154006['markerName']);}_0x12fda4||_0x4f715d||!_0x8d5002||_0x3db27d(_0x8d5002);};}
23
+ const _0xae45=['isBlock','isLimit','getCustomProperty','schema','get','ck-suggestion-marker--active','markerName','isContent','getItems','hasAttribute','span','isAtEnd','toViewElement','consumable','addClass','push','elementEnd','parent','previousPosition','markerRange','writer','mapper','TrackChangesEditing','model','nextSibling','ck-suggestion-marker-','test','item','type','listIndent','name','element','addHighlight','getWalker','bindElementToMarker','toViewPosition','listItem','activeMarkers','plugins','getAttribute'];(function(_0x3e62f5,_0xae457d){const _0xd59cef=function(_0x3e762f){while(--_0x3e762f){_0x3e62f5['push'](_0x3e62f5['shift']());}};_0xd59cef(++_0xae457d);}(_0xae45,0x16a));const _0xd59c=function(_0x3e62f5,_0xae457d){_0x3e62f5=_0x3e62f5-0x0;let _0xd59cef=_0xae45[_0x3e62f5];return _0xd59cef;};export function getRangesWithAttribute(_0x48a801,_0x2f35cb,_0x4e4c52){const _0x147dcb=[];for(const _0x23e393 of _0x2f35cb[_0xd59c('0x6')]())_0x23e393[_0xd59c('0x7')](_0x48a801)&&_0x147dcb[_0xd59c('0xd')](_0x4e4c52['createRangeOn'](_0x23e393));return _0x147dcb;}export function getElementsAffectedByListItemRename(_0x2c5e2d){const _0x475a01=[];if(_0x2c5e2d['is']('element','listItem')){let _0x46f24=_0x2c5e2d[_0xd59c('0x16')];for(;_0x46f24&&_0x46f24['is'](_0xd59c('0x1d'),_0xd59c('0x22'))&&_0x46f24[_0xd59c('0x25')](_0xd59c('0x1b'))>0x0;)_0x475a01[_0xd59c('0xd')](_0x46f24),_0x46f24=_0x46f24[_0xd59c('0x16')];}return _0x475a01;}export function downcastSplitMergeMarker(_0x201e20,_0x3717c3,{showActiveMarker:_0x2679e7=!0x0}={}){const _0x51d26e=_0x201e20[_0xd59c('0x24')][_0xd59c('0x2')](_0xd59c('0x14'));return(_0x5c1c47,_0x476159,_0x2f1bd7)=>{if(!_0x2f1bd7[_0xd59c('0xb')][_0xd59c('0x18')](_0x476159['markerRange'],_0x5c1c47[_0xd59c('0x1c')]))return;const _0x1e38c5=_0x476159[_0xd59c('0x11')][_0xd59c('0x1f')](),_0xa83910=_0x476159[_0xd59c('0x11')]['start'],_0x5ac129=_0x201e20[_0xd59c('0x15')][_0xd59c('0x1')];let _0x39cff5=null,_0x129210=null,_0x3b4ba0=!0x1,_0x5b2a47=!0x1;for(const _0x15e761 of _0x1e38c5){const _0x4a0e82=_0x15e761[_0xd59c('0x19')];_0x3b4ba0=_0x3b4ba0||_0x5ac129[_0xd59c('0x5')](_0x4a0e82);const _0x4b0157=_0x2f1bd7['mapper'][_0xd59c('0xa')](_0x4a0e82);if(_0x4b0157&&_0x4b0157[_0xd59c('0x0')](_0xd59c('0x1e')))return;_0xd59c('0xe')==_0x15e761[_0xd59c('0x1a')]&&(_0x5ac129[_0xd59c('0x26')](_0x4a0e82)&&!_0x5ac129[_0xd59c('0x27')](_0x4a0e82)&&(_0x4a0e82[_0xd59c('0x16')]||_0xa83910[_0xd59c('0x9')]?_0x39cff5&&_0x39cff5[_0xd59c('0xf')]==_0x4a0e82||(_0x39cff5=_0x4a0e82,_0x1497b7(_0x15e761[_0xd59c('0x10')]),_0x5b2a47=!0x0):_0x129210=_0x129210||_0x15e761[_0xd59c('0x10')]));}function _0x1497b7(_0x5bc430){const _0x2e0f8c=_0x2f1bd7[_0xd59c('0x12')]['createUIElement'](_0xd59c('0x8'),{'class':_0xd59c('0x17')+_0x3717c3}),_0xac336f=_0x2f1bd7[_0xd59c('0x13')][_0xd59c('0x21')](_0x5bc430);_0x2679e7&&_0x51d26e[_0xd59c('0x23')]['includes'](_0x476159[_0xd59c('0x4')])&&_0x2f1bd7[_0xd59c('0x12')][_0xd59c('0xc')](_0xd59c('0x3'),_0x2e0f8c),_0x2f1bd7[_0xd59c('0x12')]['insert'](_0xac336f,_0x2e0f8c),_0x2f1bd7[_0xd59c('0x13')][_0xd59c('0x20')](_0x2e0f8c,_0x476159[_0xd59c('0x4')]);}_0x3b4ba0||_0x5b2a47||!_0x129210||_0x1497b7(_0x129210);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ca7=['start','addMarkerName','subType','addMarker','_model','data','next','hasComments','onAccept','getMarkers','attributes','_onDiscard','createdAt','getAllAdjacentSuggestions','getMarkerNames','filter','@external','_markerNames','addRange','accept','isIntersecting','nodeBefore','get','nodeAfter','getRanges','getContainedElement','markers','commentThread','end','getRange','clear','toJSON','isInContent','isIntersectingWithRange','decorate','_onAccept','removeMarkers','authoredAt','map','type','isMultiRange','getFirstMarker','head','isExternal','suggestion:','split','set','removeMarker','discard','creator','add','_onAttributesChange','author','onAttributesChange','push'];(function(_0x2c8a61,_0x4ca73d){const _0x2f55ae=function(_0x6e38e4){while(--_0x6e38e4){_0x2c8a61['push'](_0x2c8a61['shift']());}};_0x2f55ae(++_0x4ca73d);}(_0x4ca7,0x11f));const _0x2f55=function(_0x2c8a61,_0x4ca73d){_0x2c8a61=_0x2c8a61-0x0;let _0x2f55ae=_0x4ca7[_0x2c8a61];return _0x2f55ae;};import{Element as _0x3a47a1}from'ckeditor5/src/engine';import{ObservableMixin as _0x45ddf8,mix as _0x10b0bf,uid as _0x41f425}from'ckeditor5/src/utils';import{cloneDeep as _0x493417,isEqual as _0x4e7721,set as _0x1b5b7a,unset as _0x17a8d6}from'lodash-es';export default class o{constructor(_0x1a4f9a,_0x2b05f3){this['id']=_0x2b05f3['id'],this[_0x2f55('0x1b')]=_0x2b05f3[_0x2f55('0x1b')],this[_0x2f55('0x2d')]=_0x2b05f3[_0x2f55('0x2d')]||null,this[_0x2f55('0x28')]=_0x2b05f3[_0x2f55('0x28')],this['creator']=_0x2b05f3[_0x2f55('0x25')]||_0x2b05f3[_0x2f55('0x28')],this[_0x2f55('0x1f')]=Boolean(_0x2b05f3[_0x2f55('0x35')]&&_0x2b05f3[_0x2f55('0x35')][_0x2f55('0x4')]),this[_0x2f55('0x30')]=null,this[_0x2f55('0x2f')]=_0x1a4f9a,this[_0x2f55('0x17')]=_0x2b05f3[_0x2f55('0x33')],this[_0x2f55('0x36')]=_0x2b05f3['onDiscard'],this[_0x2f55('0x27')]=_0x2b05f3[_0x2f55('0x29')],this[_0x2f55('0x5')]=new Set(),this[_0x2f55('0x0')]=null,this['set'](_0x2f55('0x19'),null),this[_0x2f55('0x22')](_0x2f55('0x35'),_0x2b05f3[_0x2f55('0x35')]||{}),this['set']('previous',null),this['set']('next',null),this[_0x2f55('0x22')](_0x2f55('0xf'),null),this[_0x2f55('0x22')]('_saved',!0x1),this[_0x2f55('0x16')](_0x2f55('0x7')),this[_0x2f55('0x16')](_0x2f55('0x24'));}get[_0x2f55('0x1e')](){let _0x1ef8ff=this;for(;_0x1ef8ff['previous'];)_0x1ef8ff=_0x1ef8ff['previous'];return _0x1ef8ff;}get[_0x2f55('0x32')](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get[_0x2f55('0x1c')](){if(0x0==this[_0x2f55('0x5')]['size'])return!0x1;return 0x6==Array['from'](this[_0x2f55('0x5')])[0x0][_0x2f55('0x21')](':')['length'];}get[_0x2f55('0x14')](){return null!==this[_0x2f55('0x1d')]();}[_0x2f55('0x2c')](_0x219c05){this['_markerNames'][_0x2f55('0x26')](_0x219c05);}[_0x2f55('0x2')](){return Array['from'](this[_0x2f55('0x5')]);}[_0x2f55('0x34')](){return this[_0x2f55('0x2')]()[_0x2f55('0x1a')](_0x6847c6=>this[_0x2f55('0x2f')][_0x2f55('0xe')][_0x2f55('0xa')](_0x6847c6))[_0x2f55('0x3')](_0x43c4b5=>_0x43c4b5);}[_0x2f55('0x1d')](){return this[_0x2f55('0x34')]()[0x0]||null;}[_0x2f55('0x18')](){this[_0x2f55('0x2f')]['change'](_0x3d9f9e=>{for(const _0x32db39 of this[_0x2f55('0x34')]())_0x3d9f9e[_0x2f55('0x23')](_0x32db39);}),this[_0x2f55('0x5')][_0x2f55('0x12')]();}['removeMarker'](_0x3f44dc){this[_0x2f55('0x2f')]['change'](_0x4f8791=>{_0x4f8791['removeMarker'](_0x3f44dc);}),this[_0x2f55('0x5')]['delete'](_0x3f44dc);}[_0x2f55('0x6')](_0x32219c){const _0xf2b618=_0x2f55('0x20')+this['type']+':'+this[_0x2f55('0x2d')]+':'+this['id']+':'+this[_0x2f55('0x25')]['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xf2b618),this[_0x2f55('0x2f')]['change'](_0x4cfd29=>{_0x4cfd29[_0x2f55('0x2e')](_0xf2b618,{'range':_0x32219c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2f55('0x15')](_0x5b978a){for(const _0x5ae994 of this[_0x2f55('0xc')]())if(_0x5ae994[_0x2f55('0x8')](_0x5b978a))return!0x0;return!0x1;}[_0x2f55('0xc')](){return this[_0x2f55('0x34')]()[_0x2f55('0x1a')](_0x32b761=>_0x32b761['getRange']());}['getItems'](){return this[_0x2f55('0xc')]()['reduce']((_0x47bd24,_0x56ab84)=>[..._0x47bd24,..._0x56ab84['getItems']()],[]);}['getFirstRange'](){return this[_0x2f55('0x1d')]()[_0x2f55('0x11')]();}[_0x2f55('0xd')](){const _0x3e80ba=this['getRanges']();if(0x1!=_0x3e80ba['length'])return null;const _0x584516=_0x3e80ba[0x0],_0x2c6b71=_0x584516[_0x2f55('0x2b')][_0x2f55('0xb')],_0x409339=_0x584516[_0x2f55('0x10')][_0x2f55('0x9')];return _0x2c6b71 instanceof _0x3a47a1?_0x2c6b71!=_0x409339?null:_0x2c6b71:null;}[_0x2f55('0x7')](){this[_0x2f55('0x17')](this['getRanges'](),this[_0x2f55('0x30')],this[_0x2f55('0x35')]),this[_0x2f55('0x18')]();}[_0x2f55('0x24')](){this['_onDiscard'](this['getRanges'](),this[_0x2f55('0x30')],this[_0x2f55('0x35')]),this[_0x2f55('0x18')]();}[_0x2f55('0x1')](){const _0x2717fa=[];let _0x578f16=this[_0x2f55('0x1e')];for(;_0x578f16;)_0x2717fa[_0x2f55('0x2a')](_0x578f16),_0x578f16=_0x578f16[_0x2f55('0x31')];return _0x2717fa;}['setAttribute'](_0x3e7d17,_0x9c110c){const _0x3561bb=_0x493417(this[_0x2f55('0x35')]);_0x1b5b7a(_0x3561bb,_0x3e7d17,_0x9c110c),_0x4e7721(_0x3561bb,this['attributes'])||(this['attributes']=_0x3561bb,this[_0x2f55('0x27')](_0x3561bb));}['removeAttribute'](_0x1cec75){const _0x1be117=_0x493417(this[_0x2f55('0x35')]);_0x17a8d6(_0x1be117,_0x1cec75),_0x4e7721(_0x1be117,this[_0x2f55('0x35')])||(this[_0x2f55('0x35')]=_0x1be117,this['_onAttributesChange'](this[_0x2f55('0x35')]));}[_0x2f55('0x13')](){return{'id':this['id'],'type':this['subType']?this[_0x2f55('0x1b')]+':'+this[_0x2f55('0x2d')]:this[_0x2f55('0x1b')],'authorId':this[_0x2f55('0x25')]['id'],'createdAt':this[_0x2f55('0x0')],'hasComments':this['hasComments'],'data':this[_0x2f55('0x30')],'attributes':this[_0x2f55('0x35')]};}static['getMultiRangeId'](){return _0x41f425()['substr'](0x1,0x5);}}_0x10b0bf(o,_0x45ddf8);
23
+ const _0x3209=['isIntersecting','size','getMultiRangeId','head','end','decorate','map','getRanges','add','_onAccept','subType','removeMarker','getMarkers','nodeBefore','getItems','_saved','@external','getMarkerNames','author','isMultiRange','commentThread','from','removeAttribute','getAllAdjacentSuggestions','start','change','_model','getFirstMarker','data','setAttribute','next','delete','get','discard','isIntersectingWithRange','getRange','filter','attributes','removeMarkers','createdAt','set','split','previous','clear','_onAttributesChange','nodeAfter','creator','onAttributesChange','hasComments','isInContent','onAccept','_markerNames','push','_onDiscard','type','getFirstRange','substr','authoredAt','addMarkerName','accept'];(function(_0x289cc0,_0x320919){const _0x3ef90a=function(_0x45c2e5){while(--_0x45c2e5){_0x289cc0['push'](_0x289cc0['shift']());}};_0x3ef90a(++_0x320919);}(_0x3209,0x6e));const _0x3ef9=function(_0x289cc0,_0x320919){_0x289cc0=_0x289cc0-0x0;let _0x3ef90a=_0x3209[_0x289cc0];return _0x3ef90a;};import{Element as _0x73cfc3}from'ckeditor5/src/engine';import{ObservableMixin as _0x5ca108,mix as _0x63632,uid as _0x1adafa}from'ckeditor5/src/utils';import{cloneDeep as _0x255cac,isEqual as _0x1ce58c,set as _0x2aeae1,unset as _0x50b38e}from'lodash-es';export default class o{constructor(_0x351fbc,_0xe08bdb){this['id']=_0xe08bdb['id'],this[_0x3ef9('0x4')]=_0xe08bdb[_0x3ef9('0x4')],this[_0x3ef9('0x14')]=_0xe08bdb[_0x3ef9('0x14')]||null,this[_0x3ef9('0x1c')]=_0xe08bdb[_0x3ef9('0x1c')],this[_0x3ef9('0x38')]=_0xe08bdb[_0x3ef9('0x38')]||_0xe08bdb['author'],this['isExternal']=Boolean(_0xe08bdb[_0x3ef9('0x2f')]&&_0xe08bdb[_0x3ef9('0x2f')][_0x3ef9('0x1a')]),this[_0x3ef9('0x26')]=null,this[_0x3ef9('0x24')]=_0x351fbc,this[_0x3ef9('0x13')]=_0xe08bdb[_0x3ef9('0x0')],this[_0x3ef9('0x3')]=_0xe08bdb['onDiscard'],this[_0x3ef9('0x36')]=_0xe08bdb[_0x3ef9('0x39')],this['_markerNames']=new Set(),this[_0x3ef9('0x31')]=null,this[_0x3ef9('0x32')](_0x3ef9('0x7'),null),this[_0x3ef9('0x32')](_0x3ef9('0x2f'),_0xe08bdb[_0x3ef9('0x2f')]||{}),this[_0x3ef9('0x32')](_0x3ef9('0x34'),null),this[_0x3ef9('0x32')](_0x3ef9('0x28'),null),this[_0x3ef9('0x32')](_0x3ef9('0x1e'),null),this['set'](_0x3ef9('0x19'),!0x1),this[_0x3ef9('0xf')](_0x3ef9('0x9')),this[_0x3ef9('0xf')]('discard');}get[_0x3ef9('0xd')](){let _0x53a211=this;for(;_0x53a211[_0x3ef9('0x34')];)_0x53a211=_0x53a211[_0x3ef9('0x34')];return _0x53a211;}get[_0x3ef9('0x3a')](){return!!this['commentThread']&&this[_0x3ef9('0x1e')]['length']>0x0;}get[_0x3ef9('0x1d')](){if(0x0==this[_0x3ef9('0x1')][_0x3ef9('0xb')])return!0x1;return 0x6==Array[_0x3ef9('0x1f')](this[_0x3ef9('0x1')])[0x0][_0x3ef9('0x33')](':')['length'];}get[_0x3ef9('0x3b')](){return null!==this[_0x3ef9('0x25')]();}[_0x3ef9('0x8')](_0xc64907){this[_0x3ef9('0x1')][_0x3ef9('0x12')](_0xc64907);}[_0x3ef9('0x1b')](){return Array[_0x3ef9('0x1f')](this['_markerNames']);}[_0x3ef9('0x16')](){return this['getMarkerNames']()['map'](_0x4c9856=>this[_0x3ef9('0x24')]['markers'][_0x3ef9('0x2a')](_0x4c9856))[_0x3ef9('0x2e')](_0x75c6e2=>_0x75c6e2);}['getFirstMarker'](){return this[_0x3ef9('0x16')]()[0x0]||null;}[_0x3ef9('0x30')](){this[_0x3ef9('0x24')][_0x3ef9('0x23')](_0x4c9699=>{for(const _0xfea378 of this['getMarkers']())_0x4c9699['removeMarker'](_0xfea378);}),this[_0x3ef9('0x1')][_0x3ef9('0x35')]();}[_0x3ef9('0x15')](_0x40a733){this[_0x3ef9('0x24')][_0x3ef9('0x23')](_0x4ad4f7=>{_0x4ad4f7[_0x3ef9('0x15')](_0x40a733);}),this['_markerNames'][_0x3ef9('0x29')](_0x40a733);}['addRange'](_0x135d0a){const _0x48a71b='suggestion:'+this[_0x3ef9('0x4')]+':'+this['subType']+':'+this['id']+':'+this[_0x3ef9('0x38')]['id']+':'+o[_0x3ef9('0xc')]();this[_0x3ef9('0x8')](_0x48a71b),this['_model'][_0x3ef9('0x23')](_0xf4fd43=>{_0xf4fd43['addMarker'](_0x48a71b,{'range':_0x135d0a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3ef9('0x2c')](_0x5b4e3d){for(const _0x106506 of this['getRanges']())if(_0x106506[_0x3ef9('0xa')](_0x5b4e3d))return!0x0;return!0x1;}[_0x3ef9('0x11')](){return this['getMarkers']()[_0x3ef9('0x10')](_0xa6ba9a=>_0xa6ba9a[_0x3ef9('0x2d')]());}['getItems'](){return this[_0x3ef9('0x11')]()['reduce']((_0x1a77b7,_0x3cc473)=>[..._0x1a77b7,..._0x3cc473[_0x3ef9('0x18')]()],[]);}[_0x3ef9('0x5')](){return this[_0x3ef9('0x25')]()[_0x3ef9('0x2d')]();}['getContainedElement'](){const _0x3bcefd=this['getRanges']();if(0x1!=_0x3bcefd['length'])return null;const _0x51d73a=_0x3bcefd[0x0],_0x28eb66=_0x51d73a[_0x3ef9('0x22')][_0x3ef9('0x37')],_0x4d1e33=_0x51d73a[_0x3ef9('0xe')][_0x3ef9('0x17')];return _0x28eb66 instanceof _0x73cfc3?_0x28eb66!=_0x4d1e33?null:_0x28eb66:null;}[_0x3ef9('0x9')](){this[_0x3ef9('0x13')](this[_0x3ef9('0x11')](),this[_0x3ef9('0x26')],this[_0x3ef9('0x2f')]),this[_0x3ef9('0x30')]();}[_0x3ef9('0x2b')](){this[_0x3ef9('0x3')](this[_0x3ef9('0x11')](),this[_0x3ef9('0x26')],this[_0x3ef9('0x2f')]),this[_0x3ef9('0x30')]();}[_0x3ef9('0x21')](){const _0x25063d=[];let _0x29bad8=this[_0x3ef9('0xd')];for(;_0x29bad8;)_0x25063d[_0x3ef9('0x2')](_0x29bad8),_0x29bad8=_0x29bad8[_0x3ef9('0x28')];return _0x25063d;}[_0x3ef9('0x27')](_0x16f2e2,_0xd30006){const _0x29b8d9=_0x255cac(this[_0x3ef9('0x2f')]);_0x2aeae1(_0x29b8d9,_0x16f2e2,_0xd30006),_0x1ce58c(_0x29b8d9,this[_0x3ef9('0x2f')])||(this[_0x3ef9('0x2f')]=_0x29b8d9,this[_0x3ef9('0x36')](_0x29b8d9));}[_0x3ef9('0x20')](_0x59a2b3){const _0x3db005=_0x255cac(this['attributes']);_0x50b38e(_0x3db005,_0x59a2b3),_0x1ce58c(_0x3db005,this[_0x3ef9('0x2f')])||(this[_0x3ef9('0x2f')]=_0x3db005,this[_0x3ef9('0x36')](this[_0x3ef9('0x2f')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x3ef9('0x14')]?this['type']+':'+this[_0x3ef9('0x14')]:this[_0x3ef9('0x4')],'authorId':this['creator']['id'],'createdAt':this[_0x3ef9('0x31')],'hasComments':this[_0x3ef9('0x3a')],'data':this[_0x3ef9('0x26')],'attributes':this[_0x3ef9('0x2f')]};}static['getMultiRangeId'](){return _0x1adafa()[_0x3ef9('0x6')](0x1,0x5);}}_0x63632(o,_0x5ca108);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2b48=['deletion','remove','_customCallbacks','*Split:*\x20%0','removeContainer','getFirstRange','normal','nextSibling','_addDescriptionItems','REPLACE_TEXT','isEmpty','*Remove:*\x20%0','matchingCallback','removeObject','*Merge:*\x20%0','softBreak','element','function','type','previousSibling','_schema','length','elementStart','add','text','label','removeEmptyContainer','getItemLabel','replace','isEqual','name','isObject','push','EmptyContainer','_itemLabelsCallbacks','addObject','_itemLabels','$1\x20$2','_resolveDescriptionItems','ELEMENT_SPACE','quantity','indexOf','skip','pop','Container','checkChild','elementEnd','match','*Insert:*\x20%0','getDescriptions','Object','registerElementLabel','get','data','addContainer','start','_locale','addEmptyContainer','insertion'];(function(_0x174c4e,_0x2b487e){const _0x473e87=function(_0x185f6b){while(--_0x185f6b){_0x174c4e['push'](_0x174c4e['shift']());}};_0x473e87(++_0x2b487e);}(_0x2b48,0xc5));const _0x473e=function(_0x174c4e,_0x2b487e){_0x174c4e=_0x174c4e-0x0;let _0x473e87=_0x2b48[_0x174c4e];return _0x473e87;};import{getTranslation as _0x2611e1}from'./utils/common-translations';import{priorities as _0x5e1d08,insertToPriorityArray as _0x13462c}from'ckeditor5/src/utils';export default class f{constructor(_0x56de77,_0x1dec71){this[_0x473e('0x29')]=[],this['_itemLabels']=new Map(),this[_0x473e('0xe')]=[],this[_0x473e('0x0')]=_0x56de77,this[_0x473e('0x24')]=_0x1dec71;}[_0x473e('0x1d')](_0xb9965c){const _0x144cc7=[];for(let _0x3cbba2=0x0;_0x3cbba2<_0xb9965c[_0x473e('0x1')];_0x3cbba2++){const _0x2c6dc3=_0xb9965c[_0x3cbba2];if(!_0x2c6dc3['isInContent'])continue;let _0x525177=!0x1;for(const _0x5dbe51 of this[_0x473e('0x29')]){const _0x3e64c3=_0x5dbe51(_0x2c6dc3);if(_0x3e64c3){_0x3e64c3['type']&&_0x144cc7[_0x473e('0xc')](_0x3e64c3),_0x525177=!0x0;break;}}if(!_0x525177){this[_0x473e('0x2f')](_0x144cc7,_0x2c6dc3);const _0xa8d758=_0xb9965c[_0x3cbba2+0x1];if(_0xa8d758&&!_0x2c6dc3['getFirstRange']()['end'][_0x473e('0x9')](_0xa8d758[_0x473e('0x2c')]()[_0x473e('0x23')])){const _0x3a7634=_0x144cc7[_0x144cc7[_0x473e('0x1')]-0x1],_0xb829d5=_0x473e('0x26')==_0x2c6dc3[_0x473e('0x39')]?_0x473e('0x3'):_0x473e('0x28');_0x3a7634&&'text'==_0x3a7634[_0x473e('0x39')]&&(_0x3a7634[_0xb829d5]+='\x0a');}}}return this[_0x473e('0x12')](_0x144cc7);}['registerDescriptionCallback'](_0x1b5fbe){this[_0x473e('0x29')][_0x473e('0xc')](_0x1b5fbe);}[_0x473e('0x1f')](_0x757c08,_0x2c14f6,_0x222c8e=_0x5e1d08[_0x473e('0x2d')]){_0x473e('0x38')==typeof _0x757c08?_0x13462c(this[_0x473e('0xe')],{'matchingCallback':_0x757c08,'label':_0x2c14f6,'priority':_0x222c8e}):this[_0x473e('0x10')]['set'](_0x757c08,_0x2c14f6);}[_0x473e('0x7')](_0x5dcdf4,_0x374eb9=0x1){let _0x22ce06;for(const _0x5f0eb7 of this[_0x473e('0xe')])if(_0x5f0eb7[_0x473e('0x33')](_0x5dcdf4)){_0x22ce06=_0x5f0eb7[_0x473e('0x5')];break;}return _0x22ce06||(_0x22ce06=this[_0x473e('0x10')][_0x473e('0x20')](_0x5dcdf4[_0x473e('0xa')])),_0x22ce06?_0x22ce06(_0x374eb9):0x1!==_0x374eb9?_0x374eb9+'\x20'+_0x5dcdf4[_0x473e('0xa')]+'s':''+_0x5dcdf4['name'];}[_0x473e('0x2f')](_0x4a955a,_0x59fc78){const _0x579d1f=_0x59fc78[_0x473e('0x2c')]()['getWalker'](),_0x324484=_0x473e('0x26')==_0x59fc78[_0x473e('0x39')]?_0x473e('0x3'):_0x473e('0x28');for(const _0x5cb0cf of _0x579d1f){const _0xea7cf1=_0x5cb0cf['item'],_0x286f80=_0x4a955a[_0x4a955a[_0x473e('0x1')]-0x1];if(_0xea7cf1['is']('textProxy'))_0x286f80&&_0x286f80[_0x473e('0x39')]['indexOf'](_0x473e('0x18'))>-0x1&&_0x4a955a[_0x473e('0x17')](),_0x286f80&&'text'==_0x286f80['type']?_0x286f80[_0x324484]+=_0xea7cf1[_0x473e('0x21')]:_0x4a955a[_0x473e('0xc')]({'type':_0x473e('0x4'),'add':_0x473e('0x3')==_0x324484?_0xea7cf1['data']:'','remove':_0x473e('0x28')==_0x324484?_0xea7cf1[_0x473e('0x21')]:''});else{if(this[_0x473e('0x0')][_0x473e('0xb')](_0xea7cf1)){if(_0x286f80&&_0x286f80[_0x473e('0x39')][_0x473e('0x15')]('Container')>-0x1&&_0x4a955a['pop'](),_0x473e('0x1a')==_0x5cb0cf[_0x473e('0x39')])continue;_0x286f80&&_0x286f80[_0x473e('0x39')]==_0x324484+_0x473e('0x1e')&&_0x286f80[_0x473e('0x37')][_0x473e('0xa')]==_0xea7cf1[_0x473e('0xa')]?_0x286f80['quantity']++:_0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0x1e'),'element':_0xea7cf1,'quantity':0x1}),_0x579d1f[_0x473e('0x16')](_0x9ea3ca=>!(_0x473e('0x1a')==_0x9ea3ca[_0x473e('0x39')]&&_0x9ea3ca['item']==_0xea7cf1));}else{if(this['_schema'][_0x473e('0x19')](_0xea7cf1,'$text')||_0xea7cf1['is'](_0x473e('0x37'),_0x473e('0x36'))){if(_0x473e('0x3')==_0x324484&&_0x473e('0x2')==_0x5cb0cf[_0x473e('0x39')]||_0x473e('0x28')==_0x324484&&_0x473e('0x1a')==_0x5cb0cf[_0x473e('0x39')])continue;if(_0x286f80&&-0x1==_0x286f80['type'][_0x473e('0x15')](_0x473e('0x18'))){_0x473e('0x4')==_0x286f80[_0x473e('0x39')]&&(_0x286f80[_0x324484]+='\x0a');continue;}let _0x11656c;if(_0x11656c=_0x473e('0x3')==_0x324484?_0xea7cf1[_0x473e('0x2e')]&&!this['_schema'][_0x473e('0xb')](_0xea7cf1[_0x473e('0x2e')])?_0xea7cf1[_0x473e('0x2e')]:null:_0xea7cf1[_0x473e('0x3a')]&&!this[_0x473e('0x0')][_0x473e('0xb')](_0xea7cf1[_0x473e('0x3a')])?_0xea7cf1[_0x473e('0x3a')]:null,_0xea7cf1[_0x473e('0x31')]||_0x11656c&&_0x11656c[_0x473e('0x31')]){const _0x53c51a=_0x11656c&&_0x11656c[_0x473e('0x31')]?_0x11656c:_0xea7cf1;_0x286f80&&_0x286f80[_0x473e('0x39')]==_0x324484+_0x473e('0xd')&&_0x286f80[_0x473e('0x37')]['name']==_0x53c51a['name']?_0x286f80[_0x473e('0x14')]++:_0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0xd'),'element':_0x53c51a,'quantity':0x1});}else _0x4a955a[_0x473e('0xc')]({'type':_0x324484+_0x473e('0x18'),'element':_0xea7cf1});}}}}}[_0x473e('0x12')](_0x32670d){const _0xea4979=this['_locale'],_0x1cc8ea=[];for(const _0x1d835c of _0x32670d){switch(_0x1d835c[_0x473e('0x39')]){case _0x473e('0x4'):if(_0x1d835c['add']=_0x1d835c[_0x473e('0x3')][_0x473e('0x8')](/(\S)\u000A+(\S)/g,_0x473e('0x11'))[_0x473e('0x8')](/\u000A/g,''),_0x1d835c[_0x473e('0x28')]=_0x1d835c[_0x473e('0x28')]['replace'](/(\S)\u000A+(\S)/g,_0x473e('0x11'))[_0x473e('0x8')](/\u000A/g,''),''!=_0x1d835c[_0x473e('0x3')]&&''!=_0x1d835c[_0x473e('0x28')]){_0x1cc8ea['push']({'type':_0x473e('0x8'),'content':_0x2611e1(_0xea4979,_0x473e('0x30'),['\x22'+_0x1d835c['remove']+'\x22','\x22'+_0x1d835c[_0x473e('0x3')]+'\x22'])});continue;}if(null!=_0x1d835c[_0x473e('0x3')]['match'](/^ +$/)){_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x1c'),_0x2611e1(_0xea4979,'ELEMENT_SPACE',_0x1d835c[_0x473e('0x3')][_0x473e('0x1')]))});continue;}if(null!=_0x1d835c[_0x473e('0x28')][_0x473e('0x1b')](/^ +$/)){_0x1cc8ea['push']({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x32'),_0x2611e1(_0xea4979,_0x473e('0x13'),_0x1d835c[_0x473e('0x28')][_0x473e('0x1')]))});continue;}if(''!=_0x1d835c[_0x473e('0x3')]){_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x1c'),'\x22'+_0x1d835c[_0x473e('0x3')]+'\x22')});continue;}_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x32'),'\x22'+_0x1d835c[_0x473e('0x28')]+'\x22')});continue;case _0x473e('0x25'):case _0x473e('0xf'):_0x1cc8ea[_0x473e('0xc')]({'type':'insertion','content':_0x2611e1(_0xea4979,_0x473e('0x1c'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;case _0x473e('0x6'):case _0x473e('0x34'):_0x1cc8ea['push']({'type':'deletion','content':_0x2611e1(_0xea4979,_0x473e('0x32'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;case _0x473e('0x22'):_0x1cc8ea[_0x473e('0xc')]({'type':_0x473e('0x26'),'content':_0x2611e1(_0xea4979,_0x473e('0x2a'),this['getItemLabel'](_0x1d835c[_0x473e('0x37')],_0x1d835c['quantity']))});continue;case _0x473e('0x2b'):_0x1cc8ea['push']({'type':_0x473e('0x27'),'content':_0x2611e1(_0xea4979,_0x473e('0x35'),this[_0x473e('0x7')](_0x1d835c[_0x473e('0x37')],_0x1d835c[_0x473e('0x14')]))});continue;}_0x1cc8ea[_0x473e('0xc')](_0x1d835c);}return _0x1cc8ea;}}
23
+ const _0x5d89=['$1\x20$2','registerDescriptionCallback','push','*Split:*\x20%0','textProxy','Container','isEmpty','start','addObject','_resolveDescriptionItems','elementEnd','get','_customCallbacks','checkChild','getFirstRange','getItemLabel','data','ELEMENT_SPACE','name','_schema','REPLACE_TEXT','match','insertion','function','*Remove:*\x20%0','length','elementStart','removeContainer','Object','getDescriptions','element','text','isEqual','isObject','_itemLabels','end','item','remove','removeEmptyContainer','*Merge:*\x20%0','EmptyContainer','*Insert:*\x20%0','type','softBreak','indexOf','removeObject','quantity','registerElementLabel','_locale','nextSibling','add','_addDescriptionItems','addEmptyContainer','getWalker','matchingCallback','replace','previousSibling','_itemLabelsCallbacks','deletion','$text'];(function(_0x308abe,_0x5d8932){const _0x1610dc=function(_0x51e90a){while(--_0x51e90a){_0x308abe['push'](_0x308abe['shift']());}};_0x1610dc(++_0x5d8932);}(_0x5d89,0x130));const _0x1610=function(_0x308abe,_0x5d8932){_0x308abe=_0x308abe-0x0;let _0x1610dc=_0x5d89[_0x308abe];return _0x1610dc;};import{getTranslation as _0x26adf6}from'./utils/common-translations';import{priorities as _0x272fb0,insertToPriorityArray as _0x16b162}from'ckeditor5/src/utils';export default class f{constructor(_0x5313c2,_0x1871d5){this[_0x1610('0x8')]=[],this[_0x1610('0x1e')]=new Map(),this['_itemLabelsCallbacks']=[],this[_0x1610('0xf')]=_0x5313c2,this['_locale']=_0x1871d5;}[_0x1610('0x19')](_0x4f6e08){const _0x153de1=[];for(let _0x1f3bec=0x0;_0x1f3bec<_0x4f6e08[_0x1610('0x15')];_0x1f3bec++){const _0x3bdd8c=_0x4f6e08[_0x1f3bec];if(!_0x3bdd8c['isInContent'])continue;let _0x743f5e=!0x1;for(const _0x2324e7 of this[_0x1610('0x8')]){const _0x3685fe=_0x2324e7(_0x3bdd8c);if(_0x3685fe){_0x3685fe[_0x1610('0x26')]&&_0x153de1[_0x1610('0x3a')](_0x3685fe),_0x743f5e=!0x0;break;}}if(!_0x743f5e){this[_0x1610('0x2f')](_0x153de1,_0x3bdd8c);const _0x265c0f=_0x4f6e08[_0x1f3bec+0x1];if(_0x265c0f&&!_0x3bdd8c[_0x1610('0xa')]()[_0x1610('0x1f')][_0x1610('0x1c')](_0x265c0f[_0x1610('0xa')]()[_0x1610('0x3')])){const _0x4aaf97=_0x153de1[_0x153de1[_0x1610('0x15')]-0x1],_0x4dc529=_0x1610('0x12')==_0x3bdd8c[_0x1610('0x26')]?_0x1610('0x2e'):'remove';_0x4aaf97&&'text'==_0x4aaf97[_0x1610('0x26')]&&(_0x4aaf97[_0x4dc529]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x153de1);}[_0x1610('0x39')](_0x57424b){this[_0x1610('0x8')][_0x1610('0x3a')](_0x57424b);}[_0x1610('0x2b')](_0x30491e,_0x54386a,_0x2eaae9=_0x272fb0['normal']){_0x1610('0x13')==typeof _0x30491e?_0x16b162(this[_0x1610('0x35')],{'matchingCallback':_0x30491e,'label':_0x54386a,'priority':_0x2eaae9}):this[_0x1610('0x1e')]['set'](_0x30491e,_0x54386a);}[_0x1610('0xb')](_0x5bf834,_0x10643d=0x1){let _0x57c73e;for(const _0x4b0abd of this[_0x1610('0x35')])if(_0x4b0abd[_0x1610('0x32')](_0x5bf834)){_0x57c73e=_0x4b0abd['label'];break;}return _0x57c73e||(_0x57c73e=this[_0x1610('0x1e')][_0x1610('0x7')](_0x5bf834[_0x1610('0xe')])),_0x57c73e?_0x57c73e(_0x10643d):0x1!==_0x10643d?_0x10643d+'\x20'+_0x5bf834[_0x1610('0xe')]+'s':''+_0x5bf834[_0x1610('0xe')];}['_addDescriptionItems'](_0x5141d6,_0x12abf3){const _0x3f270c=_0x12abf3[_0x1610('0xa')]()[_0x1610('0x31')](),_0x23841d=_0x1610('0x12')==_0x12abf3[_0x1610('0x26')]?_0x1610('0x2e'):'remove';for(const _0x309a33 of _0x3f270c){const _0x1e9bea=_0x309a33['item'],_0x1b1e35=_0x5141d6[_0x5141d6[_0x1610('0x15')]-0x1];if(_0x1e9bea['is'](_0x1610('0x0')))_0x1b1e35&&_0x1b1e35[_0x1610('0x26')]['indexOf']('Container')>-0x1&&_0x5141d6['pop'](),_0x1b1e35&&_0x1610('0x1b')==_0x1b1e35[_0x1610('0x26')]?_0x1b1e35[_0x23841d]+=_0x1e9bea[_0x1610('0xc')]:_0x5141d6[_0x1610('0x3a')]({'type':_0x1610('0x1b'),'add':_0x1610('0x2e')==_0x23841d?_0x1e9bea[_0x1610('0xc')]:'','remove':_0x1610('0x21')==_0x23841d?_0x1e9bea['data']:''});else{if(this['_schema']['isObject'](_0x1e9bea)){if(_0x1b1e35&&_0x1b1e35['type'][_0x1610('0x28')](_0x1610('0x1'))>-0x1&&_0x5141d6['pop'](),_0x1610('0x6')==_0x309a33[_0x1610('0x26')])continue;_0x1b1e35&&_0x1b1e35[_0x1610('0x26')]==_0x23841d+_0x1610('0x18')&&_0x1b1e35[_0x1610('0x1a')]['name']==_0x1e9bea[_0x1610('0xe')]?_0x1b1e35[_0x1610('0x2a')]++:_0x5141d6[_0x1610('0x3a')]({'type':_0x23841d+_0x1610('0x18'),'element':_0x1e9bea,'quantity':0x1}),_0x3f270c['skip'](_0x3961cf=>!(_0x1610('0x6')==_0x3961cf[_0x1610('0x26')]&&_0x3961cf[_0x1610('0x20')]==_0x1e9bea));}else{if(this['_schema'][_0x1610('0x9')](_0x1e9bea,_0x1610('0x37'))||_0x1e9bea['is']('element',_0x1610('0x27'))){if(_0x1610('0x2e')==_0x23841d&&_0x1610('0x16')==_0x309a33[_0x1610('0x26')]||_0x1610('0x21')==_0x23841d&&'elementEnd'==_0x309a33[_0x1610('0x26')])continue;if(_0x1b1e35&&-0x1==_0x1b1e35[_0x1610('0x26')][_0x1610('0x28')](_0x1610('0x1'))){_0x1610('0x1b')==_0x1b1e35[_0x1610('0x26')]&&(_0x1b1e35[_0x23841d]+='\x0a');continue;}let _0x53b9a2;if(_0x53b9a2=_0x1610('0x2e')==_0x23841d?_0x1e9bea[_0x1610('0x2d')]&&!this['_schema']['isObject'](_0x1e9bea['nextSibling'])?_0x1e9bea['nextSibling']:null:_0x1e9bea[_0x1610('0x34')]&&!this[_0x1610('0xf')][_0x1610('0x1d')](_0x1e9bea[_0x1610('0x34')])?_0x1e9bea[_0x1610('0x34')]:null,_0x1e9bea[_0x1610('0x2')]||_0x53b9a2&&_0x53b9a2['isEmpty']){const _0x2cb29d=_0x53b9a2&&_0x53b9a2['isEmpty']?_0x53b9a2:_0x1e9bea;_0x1b1e35&&_0x1b1e35[_0x1610('0x26')]==_0x23841d+_0x1610('0x24')&&_0x1b1e35[_0x1610('0x1a')][_0x1610('0xe')]==_0x2cb29d['name']?_0x1b1e35['quantity']++:_0x5141d6[_0x1610('0x3a')]({'type':_0x23841d+_0x1610('0x24'),'element':_0x2cb29d,'quantity':0x1});}else _0x5141d6[_0x1610('0x3a')]({'type':_0x23841d+_0x1610('0x1'),'element':_0x1e9bea});}}}}}[_0x1610('0x5')](_0x707ccb){const _0x4530e7=this[_0x1610('0x2c')],_0x40e093=[];for(const _0x1b3ea of _0x707ccb){switch(_0x1b3ea[_0x1610('0x26')]){case _0x1610('0x1b'):if(_0x1b3ea[_0x1610('0x2e')]=_0x1b3ea['add'][_0x1610('0x33')](/(\S)\u000A+(\S)/g,_0x1610('0x38'))[_0x1610('0x33')](/\u000A/g,''),_0x1b3ea[_0x1610('0x21')]=_0x1b3ea[_0x1610('0x21')][_0x1610('0x33')](/(\S)\u000A+(\S)/g,_0x1610('0x38'))['replace'](/\u000A/g,''),''!=_0x1b3ea[_0x1610('0x2e')]&&''!=_0x1b3ea['remove']){_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x33'),'content':_0x26adf6(_0x4530e7,_0x1610('0x10'),['\x22'+_0x1b3ea[_0x1610('0x21')]+'\x22','\x22'+_0x1b3ea[_0x1610('0x2e')]+'\x22'])});continue;}if(null!=_0x1b3ea[_0x1610('0x2e')][_0x1610('0x11')](/^ +$/)){_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x12'),'content':_0x26adf6(_0x4530e7,_0x1610('0x25'),_0x26adf6(_0x4530e7,_0x1610('0xd'),_0x1b3ea[_0x1610('0x2e')][_0x1610('0x15')]))});continue;}if(null!=_0x1b3ea['remove'][_0x1610('0x11')](/^ +$/)){_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x36'),'content':_0x26adf6(_0x4530e7,'*Remove:*\x20%0',_0x26adf6(_0x4530e7,'ELEMENT_SPACE',_0x1b3ea[_0x1610('0x21')][_0x1610('0x15')]))});continue;}if(''!=_0x1b3ea['add']){_0x40e093['push']({'type':_0x1610('0x12'),'content':_0x26adf6(_0x4530e7,_0x1610('0x25'),'\x22'+_0x1b3ea[_0x1610('0x2e')]+'\x22')});continue;}_0x40e093['push']({'type':'deletion','content':_0x26adf6(_0x4530e7,'*Remove:*\x20%0','\x22'+_0x1b3ea[_0x1610('0x21')]+'\x22')});continue;case _0x1610('0x30'):case _0x1610('0x4'):_0x40e093[_0x1610('0x3a')]({'type':'insertion','content':_0x26adf6(_0x4530e7,_0x1610('0x25'),this[_0x1610('0xb')](_0x1b3ea[_0x1610('0x1a')],_0x1b3ea['quantity']))});continue;case _0x1610('0x22'):case _0x1610('0x29'):_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x36'),'content':_0x26adf6(_0x4530e7,_0x1610('0x14'),this[_0x1610('0xb')](_0x1b3ea[_0x1610('0x1a')],_0x1b3ea[_0x1610('0x2a')]))});continue;case'addContainer':_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x12'),'content':_0x26adf6(_0x4530e7,_0x1610('0x3b'),this[_0x1610('0xb')](_0x1b3ea['element'],_0x1b3ea[_0x1610('0x2a')]))});continue;case _0x1610('0x17'):_0x40e093[_0x1610('0x3a')]({'type':_0x1610('0x36'),'content':_0x26adf6(_0x4530e7,_0x1610('0x23'),this[_0x1610('0xb')](_0x1b3ea['element'],_0x1b3ea[_0x1610('0x2a')]))});continue;}_0x40e093['push'](_0x1b3ea);}return _0x40e093;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2ec9=['TrackChanges','getSuggestions','pluginName','requires','editor','adapter','plugins','Comments','addSuggestionData','get'];(function(_0x5e54a3,_0x2ec938){var _0x34f74d=function(_0x151d42){while(--_0x151d42){_0x5e54a3['push'](_0x5e54a3['shift']());}};_0x34f74d(++_0x2ec938);}(_0x2ec9,0x1f0));var _0x34f7=function(_0x5e54a3,_0x2ec938){_0x5e54a3=_0x5e54a3-0x0;var _0x34f74d=_0x2ec9[_0x5e54a3];return _0x34f74d;};import{Plugin as _0x392369}from'ckeditor5/src/core';import _0x25cbda from'./trackchangesui';import _0x169b85 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x392369{static get[_0x34f7('0x7')](){return[_0x169b85,_0x25cbda,_0x34f7('0x1')];}static get[_0x34f7('0x6')](){return _0x34f7('0x4');}set[_0x34f7('0x9')](_0x371ce6){this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)[_0x34f7('0x9')]=_0x371ce6;}get[_0x34f7('0x9')](){return this[_0x34f7('0x8')][_0x34f7('0x0')][_0x34f7('0x3')](_0x169b85)[_0x34f7('0x9')];}['addSuggestion'](_0x4dcca9){return this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)[_0x34f7('0x2')](_0x4dcca9);}[_0x34f7('0x5')](_0x1ab63a){return this['editor']['plugins'][_0x34f7('0x3')](_0x169b85)[_0x34f7('0x5')](_0x1ab63a);}['getSuggestion'](_0xcdddb){return this[_0x34f7('0x8')][_0x34f7('0x0')]['get'](_0x169b85)['getSuggestion'](_0xcdddb);}}
23
+ var _0x3401=['getSuggestions','getSuggestion','Comments','get','pluginName','addSuggestionData','addSuggestion','adapter','plugins','editor'];(function(_0x3bb1b8,_0x3401ae){var _0x3bab64=function(_0x404868){while(--_0x404868){_0x3bb1b8['push'](_0x3bb1b8['shift']());}};_0x3bab64(++_0x3401ae);}(_0x3401,0x15e));var _0x3bab=function(_0x3bb1b8,_0x3401ae){_0x3bb1b8=_0x3bb1b8-0x0;var _0x3bab64=_0x3401[_0x3bb1b8];return _0x3bab64;};import{Plugin as _0x124aff}from'ckeditor5/src/core';import _0x4d11d2 from'./trackchangesui';import _0x5176dc from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x124aff{static get['requires'](){return[_0x5176dc,_0x4d11d2,_0x3bab('0x2')];}static get[_0x3bab('0x4')](){return'TrackChanges';}set[_0x3bab('0x7')](_0xc716fc){this[_0x3bab('0x9')]['plugins'][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x7')]=_0xc716fc;}get[_0x3bab('0x7')](){return this[_0x3bab('0x9')]['plugins']['get'](_0x5176dc)[_0x3bab('0x7')];}[_0x3bab('0x6')](_0x50421d){return this[_0x3bab('0x9')][_0x3bab('0x8')][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x5')](_0x50421d);}['getSuggestions'](_0x137c0b){return this[_0x3bab('0x9')][_0x3bab('0x8')][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x0')](_0x137c0b);}[_0x3bab('0x1')](_0x1b667a){return this[_0x3bab('0x9')][_0x3bab('0x8')][_0x3bab('0x3')](_0x5176dc)[_0x3bab('0x1')](_0x1b667a);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x37b8=['data','_adapter','find','getUser','get','init','names','editorCreator','config','plugins','TrackChangesEditing','WordCount','execute','reduce','trackChangesData','discardAllSuggestions','push','initialData','RevisionTracker','concat','create','extraPlugins','map','CommentsRepository','acceptAllSuggestions','includes','trackChangesData.editorCreator','model','TrackChangesDataGetter','getDataWithDiscardedSuggestions','Users','every','addSuggestionData','result','users','set','document','string','WebSocketGateway','getSuggestions','editor','appendChild','Pagination','destroy','pluginName','builtinPlugins','context','useAnonymousUser','requires','TrackChangesData','define','toolbar','function','getDataWithAcceptedSuggestions'];(function(_0x3c9e6c,_0x37b8e1){const _0x2ea25f=function(_0x3fc7a){while(--_0x3fc7a){_0x3c9e6c['push'](_0x3c9e6c['shift']());}};_0x2ea25f(++_0x37b8e1);}(_0x37b8,0x162));const _0x2ea2=function(_0x3c9e6c,_0x37b8e1){_0x3c9e6c=_0x3c9e6c-0x0;let _0x2ea25f=_0x37b8[_0x3c9e6c];return _0x2ea25f;};import{Plugin as _0x2eeda3}from'ckeditor5/src/core';import{CKEditorError as _0x2c1ed2}from'ckeditor5/src/utils';import _0x2023c7 from'./trackchangesediting';const D=[_0x2ea2('0x29'),_0x2ea2('0x10'),_0x2ea2('0x15')],w=[_0x2ea2('0x8'),_0x2ea2('0x2a'),'Autosave',_0x2ea2('0x23'),_0x2ea2('0xc')];export default class y extends _0x2eeda3{static get['requires'](){return[_0x2023c7];}static get['pluginName'](){return _0x2ea2('0x13');}[_0x2ea2('0x1d')](){const _0x4bf28e=this[_0x2ea2('0xa')];if(_0x4bf28e[_0x2ea2('0x20')][_0x2ea2('0x14')](_0x2ea2('0x32'),_0x572127=>_0x4bf28e['constructor'][_0x2ea2('0x2c')]('',_0x572127)),_0x2ea2('0x16')!=typeof _0x4bf28e[_0x2ea2('0x20')][_0x2ea2('0x1c')]('trackChangesData')[_0x2ea2('0x1f')])throw new _0x2c1ed2('track-changes-data-invalid-editor-creator');}[_0x2ea2('0x17')](_0x4bf57d){return T(this['editor'],!0x0,_0x4bf57d);}[_0x2ea2('0x35')](_0x4ce19a){return T(this[_0x2ea2('0xa')],!0x1,_0x4ce19a);}}class S extends _0x2eeda3{static get['pluginName'](){return _0x2ea2('0x34');}['init'](){this[_0x2ea2('0x3')]='end',this['editor'][_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x2f'))[_0x2ea2('0x19')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x2ea2('0xa')][_0x2ea2('0x21')]['get'](_0x2ea2('0x22'))[_0x2ea2('0x19')]=null;}}async function T(_0xd9027,_0x78d933,_0x429ddc){const _0x5af8a2=function(_0x39717a){const _0x3aea50={};for(const _0x2825d8 of _0x39717a[_0x2ea2('0x20')][_0x2ea2('0x1e')]())D[_0x2ea2('0x31')](_0x2825d8)||(_0x3aea50[_0x2825d8]=_0x39717a[_0x2ea2('0x20')][_0x2ea2('0x1c')](_0x2825d8));const _0x320336=_0x39717a['constructor'][_0x2ea2('0xf')]||[],_0xf0aca4=_0x3aea50[_0x2ea2('0x2d')]||[];delete _0x3aea50['extraPlugins'];const _0x5c50b7=_0x320336[_0x2ea2('0x2b')](_0x3aea50[_0x2ea2('0x21')])[_0x2ea2('0x2b')](_0xf0aca4)[_0x2ea2('0x2e')](_0x239d6c=>_0x2ea2('0x7')==typeof _0x239d6c?_0x320336[_0x2ea2('0x1a')](_0x5d8f73=>_0x5d8f73['pluginName']==_0x239d6c):_0x239d6c),_0x46567f=Array['from'](new Set(_0x5c50b7)),_0x101e98=new Map();return _0x3aea50[_0x2ea2('0x21')]=_0x46567f['filter'](_0x3ad78a=>A(_0x3ad78a,_0x101e98)),_0x3aea50[_0x2ea2('0x21')][_0x2ea2('0x28')](S),_0x3aea50[_0x2ea2('0x21')]['push'](_0x2023c7),_0x3aea50;}(_0xd9027),_0x1c3f39=document['createDocumentFragment'](),_0x2d8b71=_0xd9027[_0x2ea2('0x20')][_0x2ea2('0x1c')](_0x2ea2('0x26'))[_0x2ea2('0x1f')],_0x27bb97=await _0x2d8b71(_0x5af8a2,()=>function(_0x4e1717){const _0x4cfcd3=document['createElement']('div');return _0x4e1717[_0x2ea2('0xb')](_0x4cfcd3),_0x4cfcd3;}(_0x1c3f39));!function(_0x307099,_0x46de50){const _0x2870ba=_0x307099[_0x2ea2('0x33')][_0x2ea2('0x6')]['getRootNames']()[_0x2ea2('0x25')]((_0x13dcde,_0x13b71d)=>(_0x13dcde[_0x13b71d]=_0x307099['data']['get']({'rootName':_0x13b71d}),_0x13dcde),{}),_0x4ac16f=_0x307099['plugins'][_0x2ea2('0x1c')](_0x2ea2('0x0'))[_0x2ea2('0x4')][_0x2ea2('0x2e')](_0x58baad=>({'id':_0x58baad['id']})),_0x3827ac=_0x307099[_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x22'))[_0x2ea2('0x9')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5690bc=_0x46de50['plugins'][_0x2ea2('0x1c')](_0x2ea2('0x0')),_0x3f59bd=_0x46de50[_0x2ea2('0x21')][_0x2ea2('0x1c')](_0x2ea2('0x22'));for(const _0x1ad55d of _0x4ac16f)_0x5690bc[_0x2ea2('0x1b')](_0x1ad55d['id'])||_0x5690bc['addUser'](_0x1ad55d);_0x5690bc['me']||_0x5690bc[_0x2ea2('0x11')]();for(const _0x5720ef of _0x3827ac)_0x3f59bd[_0x2ea2('0x2')](_0x5720ef);_0x46de50[_0x2ea2('0x18')][_0x2ea2('0x5')](_0x2870ba);}(_0xd9027,_0x27bb97),_0x27bb97[_0x2ea2('0x24')](_0x78d933?_0x2ea2('0x30'):_0x2ea2('0x27'));const _0x45cbd9=_0x27bb97[_0x2ea2('0x18')]['get'](_0x429ddc);return await _0x27bb97[_0x2ea2('0xd')](),_0x45cbd9;}function A(_0x23d0e5,_0x49a90b){const _0x1d5932='function'==typeof _0x23d0e5?_0x23d0e5[_0x2ea2('0xe')]||_0x23d0e5['name']:_0x23d0e5;if(_0x49a90b['has'](_0x1d5932))return _0x49a90b['get'](_0x1d5932);if(_0x49a90b['set'](_0x1d5932,!0x0),_0x1d5932&&w[_0x2ea2('0x31')](_0x1d5932))return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,!0x1),!0x1;if(!_0x23d0e5[_0x2ea2('0x12')])return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,!0x0),!0x0;const _0x3274d0=_0x23d0e5[_0x2ea2('0x12')][_0x2ea2('0x1')](_0xc2f404=>A(_0xc2f404,_0x49a90b));return _0x49a90b[_0x2ea2('0x5')](_0x1d5932,_0x3274d0),_0x3274d0;}
23
+ const _0xf511=['TrackChangesData','discardAllSuggestions','requires','acceptAllSuggestions','CommentsRepository','string','_adapter','config','appendChild','from','TrackChangesEditing','filter','WebSocketGateway','get','trackChangesData','plugins','addUser','every','getUser','WordCount','create','map','data','has','find','context','includes','reduce','result','pluginName','useAnonymousUser','editorCreator','addSuggestionData','Autosave','editor','Pagination','execute','track-changes-data-invalid-editor-creator','concat','constructor','function','users','name','extraPlugins','TrackChangesDataGetter','createDocumentFragment','model','set','Users','destroy'];(function(_0x8ec17b,_0xf511ab){const _0x54db7c=function(_0x1a8d53){while(--_0x1a8d53){_0x8ec17b['push'](_0x8ec17b['shift']());}};_0x54db7c(++_0xf511ab);}(_0xf511,0x89));const _0x54db=function(_0x8ec17b,_0xf511ab){_0x8ec17b=_0x8ec17b-0x0;let _0x54db7c=_0xf511[_0x8ec17b];return _0x54db7c;};import{Plugin as _0x320580}from'ckeditor5/src/core';import{CKEditorError as _0x1c27c4}from'ckeditor5/src/utils';import _0x4945ad from'./trackchangesediting';const D=['initialData',_0x54db('0x26'),'toolbar'],w=[_0x54db('0x19'),'RevisionTracker',_0x54db('0x2e'),_0x54db('0x20'),_0x54db('0x30')];export default class y extends _0x320580{static get[_0x54db('0xf')](){return[_0x4945ad];}static get[_0x54db('0x2a')](){return _0x54db('0xd');}['init'](){const _0x4723c7=this['editor'];if(_0x4723c7[_0x54db('0x14')]['define']('trackChangesData.editorCreator',_0x453200=>_0x4723c7[_0x54db('0x2')][_0x54db('0x21')]('',_0x453200)),_0x54db('0x3')!=typeof _0x4723c7[_0x54db('0x14')][_0x54db('0x1a')](_0x54db('0x1b'))[_0x54db('0x2c')])throw new _0x1c27c4(_0x54db('0x0'));}['getDataWithAcceptedSuggestions'](_0x762390){return T(this[_0x54db('0x2f')],!0x0,_0x762390);}['getDataWithDiscardedSuggestions'](_0x69f9d2){return T(this[_0x54db('0x2f')],!0x1,_0x69f9d2);}}class S extends _0x320580{static get[_0x54db('0x2a')](){return _0x54db('0x7');}['init'](){this[_0x54db('0x29')]='end',this['editor']['plugins']['get'](_0x54db('0x11'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this['editor'][_0x54db('0x1c')][_0x54db('0x1a')](_0x54db('0x17'))[_0x54db('0x13')]=null;}}async function T(_0x4ad6e1,_0x2b5529,_0x4b05b3){const _0x25641d=function(_0x3cecb3){const _0x55b307={};for(const _0x280b30 of _0x3cecb3[_0x54db('0x14')]['names']())D[_0x54db('0x27')](_0x280b30)||(_0x55b307[_0x280b30]=_0x3cecb3[_0x54db('0x14')]['get'](_0x280b30));const _0x2c2918=_0x3cecb3[_0x54db('0x2')]['builtinPlugins']||[],_0x17449e=_0x55b307[_0x54db('0x6')]||[];delete _0x55b307[_0x54db('0x6')];const _0x33ac38=_0x2c2918['concat'](_0x55b307['plugins'])[_0x54db('0x1')](_0x17449e)[_0x54db('0x22')](_0x25f5dc=>_0x54db('0x12')==typeof _0x25f5dc?_0x2c2918[_0x54db('0x25')](_0x222157=>_0x222157[_0x54db('0x2a')]==_0x25f5dc):_0x25f5dc),_0x1e51f0=Array[_0x54db('0x16')](new Set(_0x33ac38)),_0x10928b=new Map();return _0x55b307[_0x54db('0x1c')]=_0x1e51f0[_0x54db('0x18')](_0x35b005=>A(_0x35b005,_0x10928b)),_0x55b307[_0x54db('0x1c')]['push'](S),_0x55b307[_0x54db('0x1c')]['push'](_0x4945ad),_0x55b307;}(_0x4ad6e1),_0x64854=document[_0x54db('0x8')](),_0x1e385d=_0x4ad6e1[_0x54db('0x14')][_0x54db('0x1a')](_0x54db('0x1b'))['editorCreator'],_0x29c268=await _0x1e385d(_0x25641d,()=>function(_0x31ebfb){const _0x363502=document['createElement']('div');return _0x31ebfb[_0x54db('0x15')](_0x363502),_0x363502;}(_0x64854));!function(_0x4d446c,_0x1729da){const _0x225d72=_0x4d446c[_0x54db('0x9')]['document']['getRootNames']()[_0x54db('0x28')]((_0x399952,_0x5c5740)=>(_0x399952[_0x5c5740]=_0x4d446c['data'][_0x54db('0x1a')]({'rootName':_0x5c5740}),_0x399952),{}),_0x46988f=_0x4d446c[_0x54db('0x1c')][_0x54db('0x1a')]('Users')[_0x54db('0x4')]['map'](_0x393f6d=>({'id':_0x393f6d['id']})),_0x36639a=_0x4d446c[_0x54db('0x1c')][_0x54db('0x1a')](_0x54db('0x17'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24ff73=_0x1729da[_0x54db('0x1c')]['get'](_0x54db('0xb')),_0x23dca6=_0x1729da[_0x54db('0x1c')][_0x54db('0x1a')]('TrackChangesEditing');for(const _0x566d66 of _0x46988f)_0x24ff73[_0x54db('0x1f')](_0x566d66['id'])||_0x24ff73[_0x54db('0x1d')](_0x566d66);_0x24ff73['me']||_0x24ff73[_0x54db('0x2b')]();for(const _0xd9a01 of _0x36639a)_0x23dca6[_0x54db('0x2d')](_0xd9a01);_0x1729da['data'][_0x54db('0xa')](_0x225d72);}(_0x4ad6e1,_0x29c268),_0x29c268[_0x54db('0x31')](_0x2b5529?_0x54db('0x10'):_0x54db('0xe'));const _0x340e84=_0x29c268[_0x54db('0x23')][_0x54db('0x1a')](_0x4b05b3);return await _0x29c268[_0x54db('0xc')](),_0x340e84;}function A(_0x7b2a16,_0x2ec9ee){const _0x34d999=_0x54db('0x3')==typeof _0x7b2a16?_0x7b2a16[_0x54db('0x2a')]||_0x7b2a16[_0x54db('0x5')]:_0x7b2a16;if(_0x2ec9ee[_0x54db('0x24')](_0x34d999))return _0x2ec9ee[_0x54db('0x1a')](_0x34d999);if(_0x2ec9ee['set'](_0x34d999,!0x0),_0x34d999&&w[_0x54db('0x27')](_0x34d999))return _0x2ec9ee[_0x54db('0xa')](_0x34d999,!0x1),!0x1;if(!_0x7b2a16[_0x54db('0xf')])return _0x2ec9ee[_0x54db('0xa')](_0x34d999,!0x0),!0x0;const _0x4d1b7d=_0x7b2a16[_0x54db('0xf')][_0x54db('0x1e')](_0x251bc6=>A(_0x251bc6,_0x2ec9ee));return _0x2ec9ee[_0x54db('0xa')](_0x34d999,_0x4d1b7d),_0x4d1b7d;}