@ckeditor/ckeditor5-track-changes 34.1.0 → 34.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/az.js +1 -1
  3. package/build/translations/cs.js +1 -1
  4. package/build/translations/da.js +1 -1
  5. package/build/translations/de.js +1 -1
  6. package/build/translations/el.js +1 -1
  7. package/build/translations/en-au.js +1 -1
  8. package/build/translations/es.js +1 -1
  9. package/build/translations/et.js +1 -1
  10. package/build/translations/fr.js +1 -1
  11. package/build/translations/gl.js +1 -1
  12. package/build/translations/hi.js +1 -1
  13. package/build/translations/hr.js +1 -1
  14. package/build/translations/id.js +1 -1
  15. package/build/translations/it.js +1 -1
  16. package/build/translations/lv.js +1 -0
  17. package/build/translations/nl.js +1 -1
  18. package/build/translations/pl.js +1 -1
  19. package/build/translations/pt-br.js +1 -1
  20. package/build/translations/sk.js +1 -1
  21. package/build/translations/sr-latn.js +1 -1
  22. package/build/translations/sr.js +1 -1
  23. package/build/translations/tk.js +1 -1
  24. package/build/translations/tr.js +1 -1
  25. package/build/translations/zh-cn.js +1 -1
  26. package/build/translations/zh.js +1 -1
  27. package/lang/contexts.json +2 -0
  28. package/lang/translations/az.po +10 -0
  29. package/lang/translations/cs.po +12 -0
  30. package/lang/translations/da.po +10 -0
  31. package/lang/translations/de.po +10 -0
  32. package/lang/translations/el.po +10 -0
  33. package/lang/translations/en-au.po +10 -0
  34. package/lang/translations/en.po +10 -0
  35. package/lang/translations/es.po +29 -1
  36. package/lang/translations/et.po +10 -0
  37. package/lang/translations/fr.po +29 -1
  38. package/lang/translations/gl.po +10 -0
  39. package/lang/translations/hi.po +10 -0
  40. package/lang/translations/hr.po +11 -0
  41. package/lang/translations/id.po +9 -0
  42. package/lang/translations/it.po +29 -1
  43. package/lang/translations/lv.po +415 -0
  44. package/lang/translations/nl.po +10 -0
  45. package/lang/translations/pl.po +12 -0
  46. package/lang/translations/pt-br.po +29 -1
  47. package/lang/translations/sk.po +12 -0
  48. package/lang/translations/sr-latn.po +11 -0
  49. package/lang/translations/sr.po +11 -0
  50. package/lang/translations/tk.po +10 -0
  51. package/lang/translations/tr.po +10 -0
  52. package/lang/translations/zh-cn.po +9 -0
  53. package/lang/translations/zh.po +9 -0
  54. package/package.json +3 -3
  55. package/src/commands/acceptallsuggestionscommand.js +1 -1
  56. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  57. package/src/commands/acceptsuggestioncommand.js +1 -1
  58. package/src/commands/discardallsuggestionscommand.js +1 -1
  59. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  60. package/src/commands/discardsuggestioncommand.js +1 -1
  61. package/src/commands/trackchangescommand.js +1 -1
  62. package/src/integrations/alignment.js +1 -1
  63. package/src/integrations/basicstyles.js +1 -1
  64. package/src/integrations/blockquote.js +1 -1
  65. package/src/integrations/ckbox.js +23 -0
  66. package/src/integrations/codeblock.js +1 -1
  67. package/src/integrations/comments.js +1 -1
  68. package/src/integrations/deletecommand.js +1 -1
  69. package/src/integrations/entercommand.js +1 -1
  70. package/src/integrations/font.js +1 -1
  71. package/src/integrations/heading.js +1 -1
  72. package/src/integrations/highlight.js +1 -1
  73. package/src/integrations/horizontalline.js +1 -1
  74. package/src/integrations/htmlembed.js +23 -0
  75. package/src/integrations/image.js +1 -1
  76. package/src/integrations/indent.js +1 -1
  77. package/src/integrations/inputcommand.js +1 -1
  78. package/src/integrations/link.js +1 -1
  79. package/src/integrations/list.js +1 -1
  80. package/src/integrations/mediaembed.js +1 -1
  81. package/src/integrations/mention.js +1 -1
  82. package/src/integrations/pagebreak.js +1 -1
  83. package/src/integrations/paragraph.js +1 -1
  84. package/src/integrations/removeformat.js +1 -1
  85. package/src/integrations/restrictededitingmode.js +1 -1
  86. package/src/integrations/shiftentercommand.js +1 -1
  87. package/src/integrations/standardeditingmode.js +1 -1
  88. package/src/integrations/table.js +1 -1
  89. package/src/integrations/tableclipboard.js +1 -1
  90. package/src/integrations/tableheadings.js +1 -1
  91. package/src/integrations/tablemergesplit.js +1 -1
  92. package/src/integrations/title.js +1 -1
  93. package/src/integrations/undo.js +1 -1
  94. package/src/integrations/utils.js +1 -1
  95. package/src/suggestion.js +1 -1
  96. package/src/suggestiondescriptionfactory.js +1 -1
  97. package/src/trackchanges.js +1 -1
  98. package/src/trackchangesdata.js +1 -1
  99. package/src/trackchangesediting.js +1 -1
  100. package/src/trackchangesui.js +1 -1
  101. package/src/ui/suggestioncontroller.js +1 -1
  102. package/src/ui/view/basesuggestionthreadview.js +1 -1
  103. package/src/ui/view/suggestionthreadview.js +1 -1
  104. package/src/utils/common-translations.js +1 -1
  105. package/src/utils/getrangesofblockgroups.js +23 -0
  106. package/src/utils/getselectedsuggestions.js +1 -1
  107. package/src/utils/hashobject.js +1 -1
  108. package/src/utils/normalizedescription.js +1 -1
  109. package/src/utils/sortsuggestions.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x352c=['afterInit','_suggestionFactory','getRanges','map','value','get','TableUtils','set:isEnabled','accept','splitTableCellVertically','subType','mergeTableCells','_isForcedDefaultExecutionBlock','table','cell','getSelectionAffectedTableCells','commands','highest','editor','_acceptFormatSuggestionCallbackFactory','fromRange','type','enableCommand','_areSelectedCellsMergable','isInContent','mergeTableCellLeft','locale','change','insertion','element','has','containsRange','root','mergeTableCellUp','formatBlock','add','return','getAncestors','length','model','execute','getCellLocation','$graveyard','setSelection','format','TableEditing','tableCell','selection','size','_areMergableCells','low','deletion','_tablePostFixingSubtypes','createTableWalker','getFirstPosition','from','TrackChangesEditing','*Split\x20cell:*\x20horizontally','commandName','*Merge\x20cells*','mergeTableCellDown','markMultiRangeBlockFormat','registerDescriptionCallback','author','filter','document','find','detach','registerCustomCallback','mergeTableCellRight','stop','splitTableCellHorizontally','plugins','rootName','createRangeOn','_descriptionFactory','refresh'];(function(_0x13c0cb,_0x352ca1){const _0x10549a=function(_0x11ad51){while(--_0x11ad51){_0x13c0cb['push'](_0x13c0cb['shift']());}};_0x10549a(++_0x352ca1);}(_0x352c,0xb7));const _0x1054=function(_0x13c0cb,_0x352ca1){_0x13c0cb=_0x13c0cb-0x0;let _0x10549a=_0x352c[_0x13c0cb];return _0x10549a;};import{Plugin as _0x5248e8}from'ckeditor5/src/core';import _0x29f571 from'./table';import{LiveRange as _0x2dc8d7}from'ckeditor5/src/engine';import{getTranslation as _0xb4f6d8}from'../utils/common-translations';export default class at extends _0x5248e8{static get['requires'](){return[_0x29f571];}[_0x1054('0x30')](){const _0x2561d3=this['editor'],_0x21160e=_0x2561d3[_0x1054('0xa')][_0x1054('0x24')][_0x1054('0x12')],_0x29c397=_0x2561d3[_0x1054('0x4a')];if(!_0x2561d3[_0x1054('0x2b')][_0x1054('0x1')](_0x1054('0x10')))return;const _0x4de931=_0x2561d3[_0x1054('0x2b')][_0x1054('0x35')]('TrackChangesEditing'),_0x3f5534=_0x2561d3[_0x1054('0x2b')][_0x1054('0x35')]('TableUtils'),_0x3af322=_0x2561d3['plugins'][_0x1054('0x35')](_0x29f571);_0x3af322[_0x1054('0x17')]['push'](_0x1054('0x3b')),_0x4de931[_0x1054('0x46')](_0x1054('0x3b'),()=>{const _0x13e4fb=_0x3f5534['getSelectionAffectedTableCells'](_0x2561d3[_0x1054('0xa')][_0x1054('0x24')]['selection']);_0x2561d3[_0x1054('0xa')][_0x1054('0x4b')](()=>{_0x4de931['markMultiRangeBlockFormat'](_0x13e4fb,{'commandName':'mergeTableCells','commandParams':[]},[],_0x1054('0x3b'));});}),_0x2561d3['commands']['get']('mergeTableCells')['on'](_0x1054('0xb'),(_0x52966c,_0x82cb86)=>{_0x2561d3['commands'][_0x1054('0x35')]('trackChanges')['value']&&(_0x82cb86[_0x1054('0x9')]>0x0&&_0x82cb86[_0x82cb86[_0x1054('0x9')]-0x1]&&_0x82cb86[_0x82cb86[_0x1054('0x9')]-0x1]['forceDefaultExecution']||_0x4de931[_0x1054('0x3c')]||this[_0x1054('0x47')]()||_0x52966c[_0x1054('0x29')]());},{'priority':_0x1054('0x41')});for(const _0x569e33 of['mergeTableCellUp','mergeTableCellRight',_0x1054('0x1f'),'mergeTableCellLeft']){const _0x365a48=_0x2561d3[_0x1054('0x40')][_0x1054('0x35')](_0x569e33);_0x4de931['enableCommand'](_0x569e33,()=>{const _0x401de0=_0x2561d3[_0x1054('0xa')]['document'][_0x1054('0x12')][_0x1054('0x19')]()[_0x1054('0x8')]()[_0x1054('0x25')](_0x2310c3=>_0x2310c3['is']('element',_0x1054('0x11'))),_0x2dcb93=_0x365a48[_0x1054('0x34')];_0x2561d3[_0x1054('0xa')][_0x1054('0x4b')](()=>{_0x4de931[_0x1054('0x20')]([_0x401de0,_0x2dcb93],{'commandName':_0x1054('0x3b'),'commandParams':[]},[],_0x1054('0x3b'));});});}for(const _0x446c2c of[_0x1054('0x39'),_0x1054('0x2a')]){const _0x52fcc9=_0x2561d3[_0x1054('0x40')]['get'](_0x446c2c);_0x4de931[_0x1054('0x46')](_0x446c2c,()=>{const _0x1cda5f=_0x3f5534[_0x1054('0x3f')](_0x2561d3[_0x1054('0xa')]['document']['selection'])[0x0],_0xdba38=_0x1cda5f['findAncestor'](_0x1054('0x3d')),{column:_0x3b1c1d,row:_0x1cac48}=_0x3f5534[_0x1054('0xc')](_0x1cda5f);let _0x32b2ed=[];if('horizontally'==_0x52fcc9['direction']){const _0x28d6c6=_0x3f5534[_0x1054('0x18')](_0xdba38,{'startRow':_0x1cac48,'endRow':_0x1cac48,'includeAllSlots':!0x0});_0x32b2ed=Array[_0x1054('0x1a')](_0x28d6c6)['map'](_0x5129c3=>_0x5129c3[_0x1054('0x3e')]);}else{const _0x59cc32=_0x3f5534[_0x1054('0x18')](_0xdba38,{'column':_0x3b1c1d,'includeAllSlots':!0x0});_0x32b2ed=Array[_0x1054('0x1a')](_0x59cc32)[_0x1054('0x33')](_0x5495b4=>_0x5495b4[_0x1054('0x3e')]);}_0x2561d3['model']['change'](_0x17ce2e=>{_0x4de931['markBlockFormat'](_0x17ce2e[_0x1054('0x2d')](_0x1cda5f),{'commandName':_0x446c2c,'commandParams':[]},_0x32b2ed,_0x446c2c);});});}_0x4de931[_0x1054('0x2e')][_0x1054('0x21')](_0x5b23e4=>{const {data:_0x54a514}=_0x5b23e4;if(_0x54a514)return'mergeTableCells'==_0x54a514['commandName']?{'type':_0x1054('0xf'),'content':_0xb4f6d8(_0x29c397,_0x1054('0x1e'))}:void 0x0;}),_0x4de931[_0x1054('0x2e')][_0x1054('0x21')](_0x19846b=>{const {data:_0x57c798}=_0x19846b;if(_0x57c798)return'splitTableCellVertically'==_0x57c798[_0x1054('0x1d')]?{'type':_0x1054('0xf'),'content':_0xb4f6d8(_0x29c397,'*Split\x20cell:*\x20vertically')}:_0x1054('0x2a')==_0x57c798['commandName']?{'type':_0x1054('0xf'),'content':_0xb4f6d8(_0x29c397,_0x1054('0x1c'))}:void 0x0;});const _0x9da3e7=_0x3af322[_0x1054('0x43')]();for(const _0x37d7ec of['mergeTableCellUp',_0x1054('0x28'),'mergeTableCellDown',_0x1054('0x49')])_0x4de931[_0x1054('0x31')][_0x1054('0x27')]('formatBlock',_0x37d7ec,_0x1054('0x38'),_0x9da3e7);for(const _0x26a20e of['splitTableCellVertically',_0x1054('0x2a')])_0x4de931['_suggestionFactory'][_0x1054('0x27')]('formatBlock',_0x26a20e,'accept',_0x9da3e7);_0x4de931[_0x1054('0x31')]['registerCustomCallback'](_0x1054('0x5'),_0x1054('0x3b'),_0x1054('0x38'),_0xa28f62=>{_0x2561d3[_0x1054('0xa')][_0x1054('0x4b')](_0x4321cd=>{const _0x21ceee=Array[_0x1054('0x1a')](_0x21160e['getRanges']())[_0x1054('0x33')](_0x571f5b=>_0x2dc8d7[_0x1054('0x44')](_0x571f5b));_0x4321cd['setSelection'](_0xa28f62),_0x2561d3[_0x1054('0x40')]['get'](_0x1054('0x3b'))[_0x1054('0x2f')](),_0x2561d3['execute'](_0x1054('0x3b'),{'forceDefaultExecution':!0x0});const _0x2e6f88=_0x21ceee[_0x1054('0x23')](_0x8c8843=>_0x1054('0xd')!=_0x8c8843[_0x1054('0x3')][_0x1054('0x2c')]);_0x2e6f88['length']>0x0&&_0x4321cd[_0x1054('0xe')](_0x2e6f88);for(const _0x30dc1e of _0x21ceee)_0x30dc1e[_0x1054('0x26')]();});});for(const _0x2091c6 of[_0x1054('0x4'),_0x1054('0x1f'),'mergeTableCellLeft',_0x1054('0x28')]){const _0x4b56d7=_0x2561d3[_0x1054('0x40')][_0x1054('0x35')](_0x2091c6);_0x4b56d7['on'](_0x1054('0x37'),(_0x1b3033,_0x18d126,_0x467878)=>{if(_0x467878){const _0x39c7c5=_0x2561d3[_0x1054('0xa')][_0x1054('0x24')][_0x1054('0x12')]['getFirstPosition']()[_0x1054('0x8')]()[_0x1054('0x25')](_0x127c34=>_0x127c34['is'](_0x1054('0x0'),_0x1054('0x11')));this[_0x1054('0x14')](_0x4b56d7[_0x1054('0x34')],_0x39c7c5)||(_0x1b3033[_0x1054('0x7')]=!0x1,_0x1b3033['stop']());}},{'priority':_0x1054('0x15')});}}[_0x1054('0x47')](){const _0x32459b=this[_0x1054('0x42')][_0x1054('0x40')][_0x1054('0x35')]('mergeTableCells'),_0x2a13bd=this[_0x1054('0x42')][_0x1054('0x2b')][_0x1054('0x35')](_0x1054('0x36'));if(!_0x32459b['isEnabled'])return!0x1;const _0x3925f2=_0x2a13bd[_0x1054('0x3f')](this[_0x1054('0x42')]['model'][_0x1054('0x24')]['selection']);for(const _0x510bea of _0x3925f2)for(const _0x2f25d6 of _0x3925f2)if(_0x510bea!=_0x2f25d6&&!this[_0x1054('0x14')](_0x510bea,_0x2f25d6))return!0x1;return!0x0;}[_0x1054('0x14')](_0x353372,_0x4623c5){const _0x3a4ed2=this[_0x1054('0x42')]['plugins'][_0x1054('0x35')](_0x1054('0x1b')),_0x539c90=this[_0x1054('0x42')][_0x1054('0xa')][_0x1054('0x2d')](_0x353372),_0x944eee=this[_0x1054('0x42')]['model'][_0x1054('0x2d')](_0x4623c5),_0x4d9132=new Set(),_0x235c78=new Set();for(const _0x43ee7f of _0x3a4ed2['getSuggestions']())if((_0x1054('0x4c')==_0x43ee7f[_0x1054('0x45')]||_0x1054('0x16')==_0x43ee7f['type']||_0x1054('0x3b')==_0x43ee7f[_0x1054('0x3a')])&&_0x43ee7f[_0x1054('0x48')])for(const _0x4125e3 of _0x43ee7f[_0x1054('0x32')]())_0x4125e3[_0x1054('0x2')](_0x539c90,!0x0)&&_0x4d9132[_0x1054('0x6')](_0x43ee7f[_0x1054('0x45')]+':'+_0x43ee7f[_0x1054('0x22')]['id']),_0x4125e3[_0x1054('0x2')](_0x944eee,!0x0)&&_0x235c78[_0x1054('0x6')](_0x43ee7f['type']+':'+_0x43ee7f[_0x1054('0x22')]['id']);if(_0x4d9132['size']!=_0x235c78[_0x1054('0x13')])return!0x1;for(const _0x2cf3b0 of _0x4d9132)if(!_0x235c78[_0x1054('0x1')](_0x2cf3b0))return!0x1;return!0x0;}}
23
+ const _0x1ba6=['registerDescriptionCallback','markMultiRangeBlockFormat','subType','mergeTableCellDown','$graveyard','change','markBlockFormat','from','accept','TableEditing','*Split\x20cell:*\x20vertically','isInContent','enableCommand','length','commands','value','document','createRangeOn','map','_suggestionFactory','trackChanges','size','containsRange','_areMergableCells','getAncestors','execute','splitTableCellVertically','*Merge\x20cells*','selection','push','fromRange','return','element','findAncestor','forceDefaultExecution','splitTableCellHorizontally','createTableWalker','_tablePostFixingSubtypes','stop','mergeTableCellLeft','model','refresh','plugins','isEnabled','mergeTableCellUp','rootName','mergeTableCells','registerCustomCallback','editor','tableCell','insertion','format','highest','TableUtils','mergeTableCellRight','cell','has','_areSelectedCellsMergable','type','low','commandName','getFirstPosition','author','get','add','_descriptionFactory','locale','TrackChangesEditing','setSelection','getSelectionAffectedTableCells','detach','formatBlock','find','getRanges'];(function(_0x211cf6,_0x1ba627){const _0x658bcd=function(_0x56f409){while(--_0x56f409){_0x211cf6['push'](_0x211cf6['shift']());}};_0x658bcd(++_0x1ba627);}(_0x1ba6,0xef));const _0x658b=function(_0x211cf6,_0x1ba627){_0x211cf6=_0x211cf6-0x0;let _0x658bcd=_0x1ba6[_0x211cf6];return _0x658bcd;};import{Plugin as _0x200229}from'ckeditor5/src/core';import _0x37633c from'./table';import{LiveRange as _0x205e47}from'ckeditor5/src/engine';import{getTranslation as _0x67cf9b}from'../utils/common-translations';export default class ht extends _0x200229{static get['requires'](){return[_0x37633c];}['afterInit'](){const _0x4a0a31=this[_0x658b('0x1f')],_0x3615f1=_0x4a0a31[_0x658b('0x17')]['document'][_0x658b('0xb')],_0x2f9036=_0x4a0a31[_0x658b('0x31')];if(!_0x4a0a31['plugins'][_0x658b('0x27')](_0x658b('0x42')))return;const _0x10961c=_0x4a0a31[_0x658b('0x19')]['get'](_0x658b('0x32')),_0x395278=_0x4a0a31[_0x658b('0x19')][_0x658b('0x2e')](_0x658b('0x24')),_0x1f1bb7=_0x4a0a31[_0x658b('0x19')]['get'](_0x37633c);_0x1f1bb7[_0x658b('0x14')][_0x658b('0xc')](_0x658b('0x1d')),_0x10961c[_0x658b('0x45')](_0x658b('0x1d'),()=>{const _0x2ca9ac=_0x395278[_0x658b('0x34')](_0x4a0a31[_0x658b('0x17')][_0x658b('0x49')]['selection']);_0x4a0a31['model']['change'](()=>{_0x10961c[_0x658b('0x3a')](_0x2ca9ac,{'commandName':'mergeTableCells','commandParams':[]},[],_0x658b('0x1d'));});}),_0x4a0a31['commands'][_0x658b('0x2e')]('mergeTableCells')['on'](_0x658b('0x8'),(_0x21c817,_0x510c49)=>{_0x4a0a31[_0x658b('0x47')]['get'](_0x658b('0x3'))['value']&&(_0x510c49[_0x658b('0x46')]>0x0&&_0x510c49[_0x510c49['length']-0x1]&&_0x510c49[_0x510c49[_0x658b('0x46')]-0x1][_0x658b('0x11')]||_0x10961c['_isForcedDefaultExecutionBlock']||this[_0x658b('0x28')]()||_0x21c817[_0x658b('0x15')]());},{'priority':_0x658b('0x23')});for(const _0x3c8fb1 of[_0x658b('0x1b'),_0x658b('0x25'),_0x658b('0x3c'),_0x658b('0x16')]){const _0x407b14=_0x4a0a31['commands']['get'](_0x3c8fb1);_0x10961c[_0x658b('0x45')](_0x3c8fb1,()=>{const _0x5850c6=_0x4a0a31[_0x658b('0x17')][_0x658b('0x49')][_0x658b('0xb')][_0x658b('0x2c')]()['getAncestors']()[_0x658b('0x37')](_0x3455de=>_0x3455de['is'](_0x658b('0xf'),_0x658b('0x20'))),_0x1189fe=_0x407b14['value'];_0x4a0a31['model'][_0x658b('0x3e')](()=>{_0x10961c[_0x658b('0x3a')]([_0x5850c6,_0x1189fe],{'commandName':_0x658b('0x1d'),'commandParams':[]},[],'mergeTableCells');});});}for(const _0x157ac7 of[_0x658b('0x9'),_0x658b('0x12')]){const _0x9d9403=_0x4a0a31[_0x658b('0x47')][_0x658b('0x2e')](_0x157ac7);_0x10961c[_0x658b('0x45')](_0x157ac7,()=>{const _0x5f2eba=_0x395278[_0x658b('0x34')](_0x4a0a31[_0x658b('0x17')][_0x658b('0x49')][_0x658b('0xb')])[0x0],_0x40486f=_0x5f2eba[_0x658b('0x10')]('table'),{column:_0x22204e,row:_0x2f6ccc}=_0x395278['getCellLocation'](_0x5f2eba);let _0x1fb804=[];if('horizontally'==_0x9d9403['direction']){const _0x57a188=_0x395278['createTableWalker'](_0x40486f,{'startRow':_0x2f6ccc,'endRow':_0x2f6ccc,'includeAllSlots':!0x0});_0x1fb804=Array[_0x658b('0x40')](_0x57a188)[_0x658b('0x1')](_0x144590=>_0x144590[_0x658b('0x26')]);}else{const _0x2beacd=_0x395278[_0x658b('0x13')](_0x40486f,{'column':_0x22204e,'includeAllSlots':!0x0});_0x1fb804=Array[_0x658b('0x40')](_0x2beacd)['map'](_0x633cd6=>_0x633cd6[_0x658b('0x26')]);}_0x4a0a31[_0x658b('0x17')][_0x658b('0x3e')](_0xcee008=>{_0x10961c[_0x658b('0x3f')](_0xcee008[_0x658b('0x0')](_0x5f2eba),{'commandName':_0x157ac7,'commandParams':[]},_0x1fb804,_0x157ac7);});});}_0x10961c[_0x658b('0x30')][_0x658b('0x39')](_0x28df79=>{const {data:_0x21483a}=_0x28df79;if(_0x21483a)return _0x658b('0x1d')==_0x21483a[_0x658b('0x2b')]?{'type':_0x658b('0x22'),'content':_0x67cf9b(_0x2f9036,_0x658b('0xa'))}:void 0x0;}),_0x10961c[_0x658b('0x30')][_0x658b('0x39')](_0x264b60=>{const {data:_0x344cae}=_0x264b60;if(_0x344cae)return'splitTableCellVertically'==_0x344cae[_0x658b('0x2b')]?{'type':_0x658b('0x22'),'content':_0x67cf9b(_0x2f9036,_0x658b('0x43'))}:_0x658b('0x12')==_0x344cae[_0x658b('0x2b')]?{'type':'format','content':_0x67cf9b(_0x2f9036,'*Split\x20cell:*\x20horizontally')}:void 0x0;});const _0x99663e=_0x1f1bb7['_acceptFormatSuggestionCallbackFactory']();for(const _0x29ca57 of[_0x658b('0x1b'),_0x658b('0x25'),_0x658b('0x3c'),'mergeTableCellLeft'])_0x10961c['_suggestionFactory'][_0x658b('0x1e')](_0x658b('0x36'),_0x29ca57,'accept',_0x99663e);for(const _0x576f08 of[_0x658b('0x9'),'splitTableCellHorizontally'])_0x10961c[_0x658b('0x2')][_0x658b('0x1e')](_0x658b('0x36'),_0x576f08,_0x658b('0x41'),_0x99663e);_0x10961c[_0x658b('0x2')][_0x658b('0x1e')](_0x658b('0x36'),_0x658b('0x1d'),_0x658b('0x41'),_0x5ed496=>{_0x4a0a31['model'][_0x658b('0x3e')](_0x37ca4f=>{const _0x12fb8a=Array[_0x658b('0x40')](_0x3615f1[_0x658b('0x38')]())[_0x658b('0x1')](_0x2fd5ae=>_0x205e47[_0x658b('0xd')](_0x2fd5ae));_0x37ca4f[_0x658b('0x33')](_0x5ed496),_0x4a0a31[_0x658b('0x47')][_0x658b('0x2e')](_0x658b('0x1d'))[_0x658b('0x18')](),_0x4a0a31[_0x658b('0x8')](_0x658b('0x1d'),{'forceDefaultExecution':!0x0});const _0x1af728=_0x12fb8a['filter'](_0xb4cbcd=>_0x658b('0x3d')!=_0xb4cbcd['root'][_0x658b('0x1c')]);_0x1af728[_0x658b('0x46')]>0x0&&_0x37ca4f['setSelection'](_0x1af728);for(const _0x4ccae9 of _0x12fb8a)_0x4ccae9[_0x658b('0x35')]();});});for(const _0x31ea46 of[_0x658b('0x1b'),'mergeTableCellDown',_0x658b('0x16'),_0x658b('0x25')]){const _0x45a019=_0x4a0a31[_0x658b('0x47')][_0x658b('0x2e')](_0x31ea46);_0x45a019['on']('set:isEnabled',(_0x34223b,_0x4002bb,_0xdf7341)=>{if(_0xdf7341){const _0x300aa0=_0x4a0a31[_0x658b('0x17')][_0x658b('0x49')][_0x658b('0xb')][_0x658b('0x2c')]()[_0x658b('0x7')]()['find'](_0x2f1e70=>_0x2f1e70['is'](_0x658b('0xf'),_0x658b('0x20')));this['_areMergableCells'](_0x45a019[_0x658b('0x48')],_0x300aa0)||(_0x34223b[_0x658b('0xe')]=!0x1,_0x34223b[_0x658b('0x15')]());}},{'priority':_0x658b('0x2a')});}}[_0x658b('0x28')](){const _0x3688a9=this[_0x658b('0x1f')][_0x658b('0x47')][_0x658b('0x2e')]('mergeTableCells'),_0x1b2bb5=this[_0x658b('0x1f')]['plugins'][_0x658b('0x2e')]('TableUtils');if(!_0x3688a9[_0x658b('0x1a')])return!0x1;const _0x1312d1=_0x1b2bb5[_0x658b('0x34')](this['editor'][_0x658b('0x17')][_0x658b('0x49')][_0x658b('0xb')]);for(const _0x5a8fa7 of _0x1312d1)for(const _0x3a7bba of _0x1312d1)if(_0x5a8fa7!=_0x3a7bba&&!this[_0x658b('0x6')](_0x5a8fa7,_0x3a7bba))return!0x1;return!0x0;}[_0x658b('0x6')](_0x5587aa,_0x1894ff){const _0x380691=this[_0x658b('0x1f')]['plugins'][_0x658b('0x2e')](_0x658b('0x32')),_0x1760a6=this[_0x658b('0x1f')][_0x658b('0x17')][_0x658b('0x0')](_0x5587aa),_0x108686=this['editor'][_0x658b('0x17')][_0x658b('0x0')](_0x1894ff),_0x5d0a2e=new Set(),_0x52f593=new Set();for(const _0x23bc2c of _0x380691['getSuggestions']())if((_0x658b('0x21')==_0x23bc2c[_0x658b('0x29')]||'deletion'==_0x23bc2c[_0x658b('0x29')]||_0x658b('0x1d')==_0x23bc2c[_0x658b('0x3b')])&&_0x23bc2c[_0x658b('0x44')])for(const _0x238f76 of _0x23bc2c[_0x658b('0x38')]())_0x238f76[_0x658b('0x5')](_0x1760a6,!0x0)&&_0x5d0a2e[_0x658b('0x2f')](_0x23bc2c[_0x658b('0x29')]+':'+_0x23bc2c[_0x658b('0x2d')]['id']),_0x238f76[_0x658b('0x5')](_0x108686,!0x0)&&_0x52f593[_0x658b('0x2f')](_0x23bc2c[_0x658b('0x29')]+':'+_0x23bc2c[_0x658b('0x2d')]['id']);if(_0x5d0a2e[_0x658b('0x4')]!=_0x52f593[_0x658b('0x4')])return!0x1;for(const _0x40a479 of _0x5d0a2e)if(!_0x52f593[_0x658b('0x27')](_0x40a479))return!0x1;return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3631=['ELEMENT_TITLE','registerElementLabel','removeMarker','document','differ','_splitMarkerName','from','isEqual','getNearestSelectionRange','newRange','updateMarker','isCollapsed','isTouching','TrackChangesEditing','start','createRange','registerPostFixer','schema','title-content','element','model','plugins','nodeBefore','Title','end','afterInit','editor','locale'];(function(_0x5f4e42,_0x363125){const _0x339733=function(_0x5dc833){while(--_0x5dc833){_0x5f4e42['push'](_0x5f4e42['shift']());}};_0x339733(++_0x363125);}(_0x3631,0x7d));const _0x3397=function(_0x5f4e42,_0x363125){_0x5f4e42=_0x5f4e42-0x0;let _0x339733=_0x3631[_0x5f4e42];return _0x339733;};import{Plugin as _0x1669e4}from'ckeditor5/src/core';import{getTranslation as _0x24ab68}from'../utils/common-translations';export default class ut extends _0x1669e4{[_0x3397('0xc')](){const _0x2c79ae=this[_0x3397('0xd')];if(!_0x2c79ae['plugins']['has'](_0x3397('0xa')))return;const _0x36d3fb=_0x2c79ae[_0x3397('0x8')]['get'](_0x3397('0x0'));_0x36d3fb['_descriptionFactory'][_0x3397('0x10')]('title-content',()=>_0x24ab68(_0x2c79ae[_0x3397('0xe')],_0x3397('0xf'))),_0x2c79ae[_0x3397('0x7')][_0x3397('0x12')][_0x3397('0x3')](_0xa1b0a5=>{let _0x39a822=!0x1;const _0x5e5eef=Array[_0x3397('0x15')](_0x2c79ae[_0x3397('0x7')]['document'][_0x3397('0x13')]['getChangedMarkers']());for(const {name:_0x5beedc,data:_0x411229}of _0x5e5eef){const {group:_0x8eb50c}=_0x36d3fb[_0x3397('0x14')](_0x5beedc);if('suggestion'!==_0x8eb50c||!_0x411229['newRange'])continue;const _0x1d3a07=_0x411229[_0x3397('0x18')],_0x186513=_0x1d3a07['end'][_0x3397('0x9')];if(!_0x186513||!_0x186513['is'](_0x3397('0x6'),_0x3397('0x5')))continue;if(!_0x1d3a07['start'][_0x3397('0x1b')](_0x1d3a07[_0x3397('0xb')]))continue;const _0x206869=_0x2c79ae[_0x3397('0x7')][_0x3397('0x4')][_0x3397('0x17')](_0x1d3a07[_0x3397('0xb')],'forward');if(_0x206869&&_0x206869[_0x3397('0x1a')]){const _0x191b51=_0xa1b0a5[_0x3397('0x2')](_0x1d3a07[_0x3397('0x1')],_0x206869[_0x3397('0x1')]);_0x191b51[_0x3397('0x16')](_0x1d3a07)||(_0xa1b0a5[_0x3397('0x19')](_0x5beedc,{'range':_0x191b51}),_0x39a822=!0x0);}_0x39a822||(_0xa1b0a5[_0x3397('0x11')](_0x5beedc),_0x39a822=!0x0);}return _0x39a822;});}}
23
+ const _0x458b=['createRange','ELEMENT_TITLE','editor','schema','nodeBefore','start','isCollapsed','TrackChangesEditing','title-content','model','plugins','Title','_descriptionFactory','registerPostFixer','getChangedMarkers','_splitMarkerName','updateMarker','forward','suggestion','document','element','from','end','newRange','has','afterInit','getNearestSelectionRange','isTouching'];(function(_0x1c89b1,_0x458b00){const _0x4cbbb8=function(_0x5a8107){while(--_0x5a8107){_0x1c89b1['push'](_0x1c89b1['shift']());}};_0x4cbbb8(++_0x458b00);}(_0x458b,0xdb));const _0x4cbb=function(_0x1c89b1,_0x458b00){_0x1c89b1=_0x1c89b1-0x0;let _0x4cbbb8=_0x458b[_0x1c89b1];return _0x4cbbb8;};import{Plugin as _0x7ac867}from'ckeditor5/src/core';import{getTranslation as _0x4f00cd}from'../utils/common-translations';export default class gt extends _0x7ac867{[_0x4cbb('0x2')](){const _0x5a69b8=this[_0x4cbb('0x7')];if(!_0x5a69b8[_0x4cbb('0xf')][_0x4cbb('0x1')](_0x4cbb('0x10')))return;const _0x555a7f=_0x5a69b8[_0x4cbb('0xf')]['get'](_0x4cbb('0xc'));_0x555a7f[_0x4cbb('0x11')]['registerElementLabel'](_0x4cbb('0xd'),()=>_0x4f00cd(_0x5a69b8['locale'],_0x4cbb('0x6'))),_0x5a69b8[_0x4cbb('0xe')][_0x4cbb('0x18')][_0x4cbb('0x12')](_0x818371=>{let _0x231849=!0x1;const _0x11fd95=Array[_0x4cbb('0x1a')](_0x5a69b8[_0x4cbb('0xe')][_0x4cbb('0x18')]['differ'][_0x4cbb('0x13')]());for(const {name:_0x3004dc,data:_0xd1bc8c}of _0x11fd95){const {group:_0x913ba7}=_0x555a7f[_0x4cbb('0x14')](_0x3004dc);if(_0x4cbb('0x17')!==_0x913ba7||!_0xd1bc8c[_0x4cbb('0x0')])continue;const _0x1d7b69=_0xd1bc8c[_0x4cbb('0x0')],_0x332499=_0x1d7b69['end'][_0x4cbb('0x9')];if(!_0x332499||!_0x332499['is'](_0x4cbb('0x19'),_0x4cbb('0xd')))continue;if(!_0x1d7b69[_0x4cbb('0xa')][_0x4cbb('0x4')](_0x1d7b69[_0x4cbb('0x1b')]))continue;const _0x3b4fda=_0x5a69b8[_0x4cbb('0xe')][_0x4cbb('0x8')][_0x4cbb('0x3')](_0x1d7b69[_0x4cbb('0x1b')],_0x4cbb('0x16'));if(_0x3b4fda&&_0x3b4fda[_0x4cbb('0xb')]){const _0x496cd9=_0x818371[_0x4cbb('0x5')](_0x1d7b69[_0x4cbb('0xa')],_0x3b4fda[_0x4cbb('0xa')]);_0x496cd9['isEqual'](_0x1d7b69)||(_0x818371[_0x4cbb('0x15')](_0x3004dc,{'range':_0x496cd9}),_0x231849=!0x0);}_0x231849||(_0x818371['removeMarker'](_0x3004dc),_0x231849=!0x0);}return _0x231849;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56d5=['TrackChangesEditing','editor','undo','has','plugins','get','enableCommand'];(function(_0x49be06,_0x56d5b6){const _0x33799f=function(_0x19ff6a){while(--_0x19ff6a){_0x49be06['push'](_0x49be06['shift']());}};_0x33799f(++_0x56d5b6);}(_0x56d5,0x19a));const _0x3379=function(_0x49be06,_0x56d5b6){_0x49be06=_0x49be06-0x0;let _0x33799f=_0x56d5[_0x49be06];return _0x33799f;};import{Plugin as _0x1e6612}from'ckeditor5/src/core';export default class ft extends _0x1e6612{['afterInit'](){const _0x1612ed=this[_0x3379('0x4')],_0x191b51=_0x1612ed['plugins'][_0x3379('0x1')](_0x3379('0x3'));_0x1612ed[_0x3379('0x0')][_0x3379('0x6')]('UndoEditing')&&(_0x191b51[_0x3379('0x2')](_0x3379('0x5')),_0x191b51[_0x3379('0x2')]('redo'));}}
23
+ const _0x1c45=['editor','enableCommand','UndoEditing','afterInit','get','redo','plugins','has'];(function(_0x278b4c,_0x1c45f7){const _0x20d2e5=function(_0x473875){while(--_0x473875){_0x278b4c['push'](_0x278b4c['shift']());}};_0x20d2e5(++_0x1c45f7);}(_0x1c45,0x10a));const _0x20d2=function(_0x278b4c,_0x1c45f7){_0x278b4c=_0x278b4c-0x0;let _0x20d2e5=_0x1c45[_0x278b4c];return _0x20d2e5;};import{Plugin as _0x3ba084}from'ckeditor5/src/core';export default class lt extends _0x3ba084{[_0x20d2('0x1')](){const _0x19e505=this[_0x20d2('0x6')],_0x59659a=_0x19e505[_0x20d2('0x4')][_0x20d2('0x2')]('TrackChangesEditing');_0x19e505[_0x20d2('0x4')][_0x20d2('0x5')](_0x20d2('0x0'))&&(_0x59659a[_0x20d2('0x7')]('undo'),_0x59659a[_0x20d2('0x7')](_0x20d2('0x3')));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5afa=['listItem','activeMarkers','getWalker','elementEnd','isContent','plugins','push','isAtEnd','markerName','listIndent','isBlock','createRangeOn','TrackChangesEditing','hasAttribute','mapper','schema','writer','type','bindElementToMarker','test','getAttribute','createUIElement','getItems','toViewPosition','previousPosition','markerRange','ck-suggestion-marker-','getCustomProperty','name','nextSibling','toViewElement','element','consumable','parent','isLimit','span','item'];(function(_0x18156b,_0x5afa63){const _0x224ba9=function(_0x18b443){while(--_0x18b443){_0x18156b['push'](_0x18156b['shift']());}};_0x224ba9(++_0x5afa63);}(_0x5afa,0xc9));const _0x224b=function(_0x18156b,_0x5afa63){_0x18156b=_0x18156b-0x0;let _0x224ba9=_0x5afa[_0x18156b];return _0x224ba9;};export function getRangesWithAttribute(_0x3a3239,_0xf116ae,_0x1a5ad9){const _0x310bd0=[];for(const _0x945eab of _0xf116ae[_0x224b('0x6')]())_0x945eab[_0x224b('0x22')](_0x3a3239)&&_0x310bd0['push'](_0x1a5ad9[_0x224b('0x20')](_0x945eab));return _0x310bd0;}export function getElementsAffectedByListItemRename(_0x89fb55){const _0x1af56c=[];if(_0x89fb55['is'](_0x224b('0xf'),_0x224b('0x15'))){let _0xc9f05e=_0x89fb55['nextSibling'];for(;_0xc9f05e&&_0xc9f05e['is'](_0x224b('0xf'),'listItem')&&_0xc9f05e[_0x224b('0x4')](_0x224b('0x1e'))>0x0;)_0x1af56c[_0x224b('0x1b')](_0xc9f05e),_0xc9f05e=_0xc9f05e[_0x224b('0xd')];}return _0x1af56c;}export function downcastSplitMergeMarker(_0x39ec19,_0x58aac5,{showActiveMarker:_0x5dccde=!0x0}={}){const _0x20dd78=_0x39ec19[_0x224b('0x1a')]['get'](_0x224b('0x21'));return(_0x467289,_0x486715,_0x2fa848)=>{if(!_0x2fa848[_0x224b('0x10')][_0x224b('0x3')](_0x486715[_0x224b('0x9')],_0x467289[_0x224b('0xc')]))return;const _0x15eae7=_0x486715['markerRange'][_0x224b('0x17')](),_0x1e4c69=_0x486715['markerRange']['start'],_0x280d51=_0x39ec19['model'][_0x224b('0x24')];let _0x575527=null,_0x360ce2=null,_0x194bb4=!0x1,_0xb76acd=!0x1;for(const _0x47b66b of _0x15eae7){const _0x567e31=_0x47b66b[_0x224b('0x14')];_0x194bb4=_0x194bb4||_0x280d51[_0x224b('0x19')](_0x567e31);const _0x1c7c81=_0x2fa848[_0x224b('0x23')][_0x224b('0xe')](_0x567e31);if(_0x1c7c81&&_0x1c7c81[_0x224b('0xb')]('addHighlight'))return;_0x224b('0x18')==_0x47b66b[_0x224b('0x1')]&&(_0x280d51[_0x224b('0x1f')](_0x567e31)&&!_0x280d51[_0x224b('0x12')](_0x567e31)&&(_0x567e31[_0x224b('0xd')]||_0x1e4c69[_0x224b('0x1c')]?_0x575527&&_0x575527[_0x224b('0x11')]==_0x567e31||(_0x575527=_0x567e31,_0x3d6aa1(_0x47b66b[_0x224b('0x8')]),_0xb76acd=!0x0):_0x360ce2=_0x360ce2||_0x47b66b[_0x224b('0x8')]));}function _0x3d6aa1(_0x7b1707){const _0x5a8825=_0x2fa848['writer'][_0x224b('0x5')](_0x224b('0x13'),{'class':_0x224b('0xa')+_0x58aac5}),_0x20d177=_0x2fa848[_0x224b('0x23')][_0x224b('0x7')](_0x7b1707);_0x5dccde&&_0x20dd78[_0x224b('0x16')]['includes'](_0x486715[_0x224b('0x1d')])&&_0x2fa848[_0x224b('0x0')]['addClass']('ck-suggestion-marker--active',_0x5a8825),_0x2fa848['writer']['insert'](_0x20d177,_0x5a8825),_0x2fa848[_0x224b('0x23')][_0x224b('0x2')](_0x5a8825,_0x486715['markerName']);}_0x194bb4||_0xb76acd||!_0x360ce2||_0x3d6aa1(_0x360ce2);};}
23
+ const _0x58ad=['getItems','parent','bindElementToMarker','getCustomProperty','push','model','item','type','mapper','isLimit','addHighlight','schema','previousPosition','activeMarkers','element','isContent','markerRange','ck-suggestion-marker--active','hasAttribute','elementEnd','insert','name','includes','ck-suggestion-marker-','listItem','start','nextSibling','span','isAtEnd','toViewPosition','createRangeOn','toViewElement','listIndent','writer'];(function(_0x1aa7a4,_0x58ad8d){const _0x3a5970=function(_0x2fbeb3){while(--_0x2fbeb3){_0x1aa7a4['push'](_0x1aa7a4['shift']());}};_0x3a5970(++_0x58ad8d);}(_0x58ad,0xd4));const _0x3a59=function(_0x1aa7a4,_0x58ad8d){_0x1aa7a4=_0x1aa7a4-0x0;let _0x3a5970=_0x58ad[_0x1aa7a4];return _0x3a5970;};export function getRangesWithAttribute(_0x528bc3,_0x263536,_0x2339d5){const _0x401c47=[];for(const _0x160885 of _0x263536[_0x3a59('0x1a')]())_0x160885[_0x3a59('0xa')](_0x528bc3)&&_0x401c47['push'](_0x2339d5[_0x3a59('0x16')](_0x160885));return _0x401c47;}export function getElementsAffectedByListItemRename(_0xda2c7d){const _0x1144e1=[];if(_0xda2c7d['is'](_0x3a59('0x6'),_0x3a59('0x10'))){let _0xd94ac=_0xda2c7d[_0x3a59('0x12')];for(;_0xd94ac&&_0xd94ac['is'](_0x3a59('0x6'),_0x3a59('0x10'))&&_0xd94ac['getAttribute'](_0x3a59('0x18'))>0x0;)_0x1144e1[_0x3a59('0x1e')](_0xd94ac),_0xd94ac=_0xd94ac[_0x3a59('0x12')];}return _0x1144e1;}export function downcastSplitMergeMarker(_0x25bbc5,_0x411e4a,{showActiveMarker:_0x5f1dbc=!0x0}={}){const _0x53f38c=_0x25bbc5['plugins']['get']('TrackChangesEditing');return(_0x85eeb2,_0xab18a4,_0x234780)=>{if(!_0x234780['consumable']['test'](_0xab18a4['markerRange'],_0x85eeb2[_0x3a59('0xd')]))return;const _0xeb9533=_0xab18a4[_0x3a59('0x8')]['getWalker'](),_0x15c23d=_0xab18a4['markerRange'][_0x3a59('0x11')],_0x3a3920=_0x25bbc5[_0x3a59('0x1f')][_0x3a59('0x3')];let _0x2eb94e=null,_0x296c23=null,_0x539cab=!0x1,_0x35c421=!0x1;for(const _0x1f5aee of _0xeb9533){const _0x4e31f3=_0x1f5aee[_0x3a59('0x20')];_0x539cab=_0x539cab||_0x3a3920[_0x3a59('0x7')](_0x4e31f3);const _0x2c00d5=_0x234780[_0x3a59('0x0')][_0x3a59('0x17')](_0x4e31f3);if(_0x2c00d5&&_0x2c00d5[_0x3a59('0x1d')](_0x3a59('0x2')))return;_0x3a59('0xb')==_0x1f5aee[_0x3a59('0x21')]&&(_0x3a3920['isBlock'](_0x4e31f3)&&!_0x3a3920[_0x3a59('0x1')](_0x4e31f3)&&(_0x4e31f3[_0x3a59('0x12')]||_0x15c23d[_0x3a59('0x14')]?_0x2eb94e&&_0x2eb94e[_0x3a59('0x1b')]==_0x4e31f3||(_0x2eb94e=_0x4e31f3,_0x2bd8fd(_0x1f5aee[_0x3a59('0x4')]),_0x35c421=!0x0):_0x296c23=_0x296c23||_0x1f5aee['previousPosition']));}function _0x2bd8fd(_0x4b1103){const _0x344729=_0x234780[_0x3a59('0x19')]['createUIElement'](_0x3a59('0x13'),{'class':_0x3a59('0xf')+_0x411e4a}),_0x421520=_0x234780[_0x3a59('0x0')][_0x3a59('0x15')](_0x4b1103);_0x5f1dbc&&_0x53f38c[_0x3a59('0x5')][_0x3a59('0xe')](_0xab18a4['markerName'])&&_0x234780['writer']['addClass'](_0x3a59('0x9'),_0x344729),_0x234780[_0x3a59('0x19')][_0x3a59('0xc')](_0x421520,_0x344729),_0x234780[_0x3a59('0x0')][_0x3a59('0x1c')](_0x344729,_0xab18a4['markerName']);}_0x539cab||_0x35c421||!_0x296c23||_0x2bd8fd(_0x296c23);};}
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x589b=['removeMarker','accept','_onAttributesChange','_onAccept','addMarker','push','isInContent','decorate','end','getAllAdjacentSuggestions','getContainedElement','createdAt','isMultiRange','subType','markers','data','length','addMarkerName','getMarkerNames','isIntersectingWithRange','from','author','getRange','change','filter','onDiscard','attributes','set','onAccept','_saved','map','getMultiRangeId','getFirstRange','isIntersecting','discard','previous','suggestion:','commentThread','next','type','split','_markerNames','onAttributesChange','getRanges','_onDiscard','getMarkers','removeMarkers','toJSON','hasComments','clear','removeAttribute','getFirstMarker','_model','delete','getItems','head'];(function(_0x334450,_0x589b54){const _0x57b25f=function(_0x5b3cf1){while(--_0x5b3cf1){_0x334450['push'](_0x334450['shift']());}};_0x57b25f(++_0x589b54);}(_0x589b,0x13b));const _0x57b2=function(_0x334450,_0x589b54){_0x334450=_0x334450-0x0;let _0x57b25f=_0x589b[_0x334450];return _0x57b25f;};import{Element as _0x1507e8}from'ckeditor5/src/engine';import{ObservableMixin as _0x488d66,mix as _0x131de3,uid as _0x10211a}from'ckeditor5/src/utils';import{cloneDeep as _0x48e858,isEqual as _0x2e8fec,set as _0x375b40,unset as _0x592288}from'lodash-es';export default class o{constructor(_0x5290f8,_0x322566){this['id']=_0x322566['id'],this[_0x57b2('0x4')]=_0x322566[_0x57b2('0x4')],this[_0x57b2('0x22')]=_0x322566[_0x57b2('0x22')]||null,this[_0x57b2('0x2a')]=_0x322566[_0x57b2('0x2a')],this['data']=null,this[_0x57b2('0x11')]=_0x5290f8,this['_onAccept']=_0x322566[_0x57b2('0x31')],this[_0x57b2('0x9')]=_0x322566[_0x57b2('0x2e')],this[_0x57b2('0x17')]=_0x322566[_0x57b2('0x7')],this[_0x57b2('0x6')]=new Set(),this['set'](_0x57b2('0x20'),null),this[_0x57b2('0x30')](_0x57b2('0x2f'),_0x322566['attributes']||{}),this['set'](_0x57b2('0x0'),null),this['set']('next',null),this['set'](_0x57b2('0x2'),null),this[_0x57b2('0x30')](_0x57b2('0x32'),!0x1),this['decorate'](_0x57b2('0x16')),this[_0x57b2('0x1c')]('discard');}get['head'](){let _0x4130be=this;for(;_0x4130be[_0x57b2('0x0')];)_0x4130be=_0x4130be[_0x57b2('0x0')];return _0x4130be;}get[_0x57b2('0xd')](){return!!this[_0x57b2('0x2')]&&this[_0x57b2('0x2')][_0x57b2('0x25')]>0x0;}get[_0x57b2('0x21')](){if(0x0==this[_0x57b2('0x6')]['size'])return!0x1;return 0x6==Array['from'](this[_0x57b2('0x6')])[0x0][_0x57b2('0x5')](':')[_0x57b2('0x25')];}get[_0x57b2('0x1b')](){return null!==this['getFirstMarker']();}[_0x57b2('0x26')](_0x2ac597){this[_0x57b2('0x6')]['add'](_0x2ac597);}[_0x57b2('0x27')](){return Array[_0x57b2('0x29')](this['_markerNames']);}[_0x57b2('0xa')](){return this[_0x57b2('0x27')]()[_0x57b2('0x33')](_0x2140df=>this[_0x57b2('0x11')][_0x57b2('0x23')]['get'](_0x2140df))[_0x57b2('0x2d')](_0x55adcb=>_0x55adcb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}[_0x57b2('0xb')](){this['_model'][_0x57b2('0x2c')](_0x262e31=>{for(const _0x14ca33 of this['getMarkers']())_0x262e31[_0x57b2('0x15')](_0x14ca33);}),this[_0x57b2('0x6')][_0x57b2('0xe')]();}['removeMarker'](_0x5a5164){this[_0x57b2('0x11')][_0x57b2('0x2c')](_0x13fef5=>{_0x13fef5[_0x57b2('0x15')](_0x5a5164);}),this[_0x57b2('0x6')][_0x57b2('0x12')](_0x5a5164);}['addRange'](_0x537eb7){const _0x4c2f8b=_0x57b2('0x1')+this['type']+':'+this[_0x57b2('0x22')]+':'+this['id']+':'+this['author']['id']+':'+o[_0x57b2('0x34')]();this[_0x57b2('0x26')](_0x4c2f8b),this[_0x57b2('0x11')][_0x57b2('0x2c')](_0x3164ec=>{_0x3164ec[_0x57b2('0x19')](_0x4c2f8b,{'range':_0x537eb7,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x57b2('0x28')](_0x1a1d83){for(const _0x1a0dd8 of this[_0x57b2('0x8')]())if(_0x1a0dd8[_0x57b2('0x36')](_0x1a1d83))return!0x0;return!0x1;}['getRanges'](){return this[_0x57b2('0xa')]()[_0x57b2('0x33')](_0x429d23=>_0x429d23[_0x57b2('0x2b')]());}['getItems'](){return this[_0x57b2('0x8')]()['reduce']((_0x2ba7e7,_0x516c96)=>[..._0x2ba7e7,..._0x516c96[_0x57b2('0x13')]()],[]);}[_0x57b2('0x35')](){return this[_0x57b2('0x10')]()[_0x57b2('0x2b')]();}[_0x57b2('0x1f')](){const _0x54dffb=this[_0x57b2('0x8')]();if(0x1!=_0x54dffb[_0x57b2('0x25')])return null;const _0x3099a4=_0x54dffb[0x0],_0x5c25e6=_0x3099a4['start']['nodeAfter'],_0x88bfbc=_0x3099a4[_0x57b2('0x1d')]['nodeBefore'];return _0x5c25e6 instanceof _0x1507e8?_0x5c25e6!=_0x88bfbc?null:_0x5c25e6:null;}[_0x57b2('0x16')](){this[_0x57b2('0x18')](this['getRanges'](),this[_0x57b2('0x24')],this[_0x57b2('0x2f')]),this[_0x57b2('0xb')]();}[_0x57b2('0x37')](){this['_onDiscard'](this[_0x57b2('0x8')](),this[_0x57b2('0x24')],this[_0x57b2('0x2f')]),this[_0x57b2('0xb')]();}[_0x57b2('0x1e')](){const _0x39f5e1=[];let _0x5a60=this[_0x57b2('0x14')];for(;_0x5a60;)_0x39f5e1[_0x57b2('0x1a')](_0x5a60),_0x5a60=_0x5a60[_0x57b2('0x3')];return _0x39f5e1;}['setAttribute'](_0xba1bd1,_0x343a00){const _0x5d3032=_0x48e858(this['attributes']);_0x375b40(_0x5d3032,_0xba1bd1,_0x343a00),_0x2e8fec(_0x5d3032,this[_0x57b2('0x2f')])||(this[_0x57b2('0x2f')]=_0x5d3032,this['_onAttributesChange'](_0x5d3032));}[_0x57b2('0xf')](_0x5ef570){const _0x1c5ad3=_0x48e858(this[_0x57b2('0x2f')]);_0x592288(_0x1c5ad3,_0x5ef570),_0x2e8fec(_0x1c5ad3,this[_0x57b2('0x2f')])||(this[_0x57b2('0x2f')]=_0x1c5ad3,this[_0x57b2('0x17')](this['attributes']));}[_0x57b2('0xc')](){return{'id':this['id'],'type':this[_0x57b2('0x22')]?this['type']+':'+this[_0x57b2('0x22')]:this[_0x57b2('0x4')],'authorId':this['author']['id'],'createdAt':this[_0x57b2('0x20')],'hasComments':this[_0x57b2('0xd')],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x10211a()['substr'](0x1,0x5);}}_0x131de3(o,_0x488d66);
23
+ const _0x4e8c=['nodeAfter','onDiscard','removeMarkers','suggestion:','removeMarker','get','substr','push','removeAttribute','map','_onDiscard','getRange','hasComments','from','commentThread','next','getMarkerNames','getMarkers','head','type','addRange','addMarker','length','createdAt','clear','discard','author','isIntersecting','getAllAdjacentSuggestions','change','decorate','end','_onAccept','isInContent','onAttributesChange','getFirstRange','_onAttributesChange','addMarkerName','setAttribute','_markerNames','previous','getFirstMarker','filter','accept','getMultiRangeId','getItems','delete','subType','getRanges','start','set','data','split','isMultiRange','attributes','_saved','_model','toJSON'];(function(_0x9285b5,_0x4e8c99){const _0x42b801=function(_0x36e6bc){while(--_0x36e6bc){_0x9285b5['push'](_0x9285b5['shift']());}};_0x42b801(++_0x4e8c99);}(_0x4e8c,0x8a));const _0x42b8=function(_0x9285b5,_0x4e8c99){_0x9285b5=_0x9285b5-0x0;let _0x42b801=_0x4e8c[_0x9285b5];return _0x42b801;};import{Element as _0x24f920}from'ckeditor5/src/engine';import{ObservableMixin as _0x1c7b2c,mix as _0x60bc66,uid as _0x584190}from'ckeditor5/src/utils';import{cloneDeep as _0x33df78,isEqual as _0x47fc50,set as _0x4c5465,unset as _0x217561}from'lodash-es';export default class o{constructor(_0x300493,_0x4d6c77){this['id']=_0x4d6c77['id'],this[_0x42b8('0x37')]=_0x4d6c77[_0x42b8('0x37')],this['subType']=_0x4d6c77['subType']||null,this[_0x42b8('0x4')]=_0x4d6c77[_0x42b8('0x4')],this[_0x42b8('0x1d')]=null,this[_0x42b8('0x22')]=_0x300493,this['_onAccept']=_0x4d6c77['onAccept'],this[_0x42b8('0x2e')]=_0x4d6c77[_0x42b8('0x25')],this[_0x42b8('0xe')]=_0x4d6c77[_0x42b8('0xc')],this['_markerNames']=new Set(),this['set'](_0x42b8('0x1'),null),this[_0x42b8('0x1c')]('attributes',_0x4d6c77['attributes']||{}),this['set'](_0x42b8('0x12'),null),this[_0x42b8('0x1c')](_0x42b8('0x33'),null),this[_0x42b8('0x1c')](_0x42b8('0x32'),null),this[_0x42b8('0x1c')](_0x42b8('0x21'),!0x1),this[_0x42b8('0x8')](_0x42b8('0x15')),this['decorate']('discard');}get['head'](){let _0x42624e=this;for(;_0x42624e['previous'];)_0x42624e=_0x42624e['previous'];return _0x42624e;}get[_0x42b8('0x30')](){return!!this[_0x42b8('0x32')]&&this[_0x42b8('0x32')][_0x42b8('0x0')]>0x0;}get[_0x42b8('0x1f')](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array[_0x42b8('0x31')](this[_0x42b8('0x11')])[0x0][_0x42b8('0x1e')](':')['length'];}get[_0x42b8('0xb')](){return null!==this[_0x42b8('0x13')]();}[_0x42b8('0xf')](_0xea01b4){this['_markerNames']['add'](_0xea01b4);}[_0x42b8('0x34')](){return Array['from'](this[_0x42b8('0x11')]);}[_0x42b8('0x35')](){return this[_0x42b8('0x34')]()['map'](_0x3cfef2=>this[_0x42b8('0x22')]['markers'][_0x42b8('0x29')](_0x3cfef2))[_0x42b8('0x14')](_0x15fbc3=>_0x15fbc3);}[_0x42b8('0x13')](){return this[_0x42b8('0x35')]()[0x0]||null;}[_0x42b8('0x26')](){this[_0x42b8('0x22')][_0x42b8('0x7')](_0x8d8bc6=>{for(const _0x32126c of this[_0x42b8('0x35')]())_0x8d8bc6[_0x42b8('0x28')](_0x32126c);}),this['_markerNames'][_0x42b8('0x2')]();}[_0x42b8('0x28')](_0x47f4ef){this['_model'][_0x42b8('0x7')](_0x503cb3=>{_0x503cb3['removeMarker'](_0x47f4ef);}),this['_markerNames'][_0x42b8('0x18')](_0x47f4ef);}[_0x42b8('0x38')](_0x227672){const _0x41e26c=_0x42b8('0x27')+this[_0x42b8('0x37')]+':'+this[_0x42b8('0x19')]+':'+this['id']+':'+this['author']['id']+':'+o[_0x42b8('0x16')]();this[_0x42b8('0xf')](_0x41e26c),this[_0x42b8('0x22')]['change'](_0x16a599=>{_0x16a599[_0x42b8('0x39')](_0x41e26c,{'range':_0x227672,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x30418c){for(const _0xaf132b of this[_0x42b8('0x1a')]())if(_0xaf132b[_0x42b8('0x5')](_0x30418c))return!0x0;return!0x1;}[_0x42b8('0x1a')](){return this[_0x42b8('0x35')]()[_0x42b8('0x2d')](_0x559a7a=>_0x559a7a[_0x42b8('0x2f')]());}[_0x42b8('0x17')](){return this[_0x42b8('0x1a')]()['reduce']((_0x4d37ff,_0x2fab77)=>[..._0x4d37ff,..._0x2fab77[_0x42b8('0x17')]()],[]);}[_0x42b8('0xd')](){return this['getFirstMarker']()['getRange']();}['getContainedElement'](){const _0x17e227=this[_0x42b8('0x1a')]();if(0x1!=_0x17e227[_0x42b8('0x0')])return null;const _0x4dfd28=_0x17e227[0x0],_0x19e4ac=_0x4dfd28[_0x42b8('0x1b')][_0x42b8('0x24')],_0x196bf3=_0x4dfd28[_0x42b8('0x9')]['nodeBefore'];return _0x19e4ac instanceof _0x24f920?_0x19e4ac!=_0x196bf3?null:_0x19e4ac:null;}[_0x42b8('0x15')](){this[_0x42b8('0xa')](this[_0x42b8('0x1a')](),this[_0x42b8('0x1d')],this[_0x42b8('0x20')]),this['removeMarkers']();}[_0x42b8('0x3')](){this[_0x42b8('0x2e')](this[_0x42b8('0x1a')](),this['data'],this[_0x42b8('0x20')]),this['removeMarkers']();}[_0x42b8('0x6')](){const _0x128326=[];let _0x2b7210=this[_0x42b8('0x36')];for(;_0x2b7210;)_0x128326[_0x42b8('0x2b')](_0x2b7210),_0x2b7210=_0x2b7210[_0x42b8('0x33')];return _0x128326;}[_0x42b8('0x10')](_0x39cde2,_0x7e87a9){const _0x1fa0e9=_0x33df78(this[_0x42b8('0x20')]);_0x4c5465(_0x1fa0e9,_0x39cde2,_0x7e87a9),_0x47fc50(_0x1fa0e9,this[_0x42b8('0x20')])||(this[_0x42b8('0x20')]=_0x1fa0e9,this[_0x42b8('0xe')](_0x1fa0e9));}[_0x42b8('0x2c')](_0x2bd969){const _0x5c959d=_0x33df78(this[_0x42b8('0x20')]);_0x217561(_0x5c959d,_0x2bd969),_0x47fc50(_0x5c959d,this[_0x42b8('0x20')])||(this[_0x42b8('0x20')]=_0x5c959d,this[_0x42b8('0xe')](this['attributes']));}[_0x42b8('0x23')](){return{'id':this['id'],'type':this[_0x42b8('0x19')]?this['type']+':'+this[_0x42b8('0x19')]:this['type'],'authorId':this[_0x42b8('0x4')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this[_0x42b8('0x1d')],'attributes':this[_0x42b8('0x20')]};}static[_0x42b8('0x16')](){return _0x584190()[_0x42b8('0x2a')](0x1,0x5);}}_0x60bc66(o,_0x1c7b2c);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5792=['start','getItemLabel','*Merge:*\x20%0','indexOf','set','element','addEmptyContainer','remove','EmptyContainer','getFirstRange','_addDescriptionItems','name','addObject','deletion','length','insertion','replace','*Split:*\x20%0','softBreak','end','data','_schema','$text','*Insert:*\x20%0','removeContainer','_resolveDescriptionItems','text','addContainer','Container','*Remove:*\x20%0','isEqual','checkChild','elementStart','isEmpty','getDescriptions','_itemLabels','pop','_locale','elementEnd','add','item','push','Object','isObject','skip','_customCallbacks','ELEMENT_SPACE','function','nextSibling','previousSibling','get','type','REPLACE_TEXT','$1\x20$2','removeEmptyContainer','quantity','isInContent'];(function(_0x2b3d44,_0x57926c){const _0x323ef5=function(_0x578719){while(--_0x578719){_0x2b3d44['push'](_0x2b3d44['shift']());}};_0x323ef5(++_0x57926c);}(_0x5792,0x119));const _0x323e=function(_0x2b3d44,_0x57926c){_0x2b3d44=_0x2b3d44-0x0;let _0x323ef5=_0x5792[_0x2b3d44];return _0x323ef5;};import{getTranslation as _0x274fb8}from'./utils/common-translations';export default class l{constructor(_0xb11b8f,_0x1c3fd2){this[_0x323e('0x31')]=[],this[_0x323e('0x27')]=new Map(),this[_0x323e('0x19')]=_0xb11b8f,this['_locale']=_0x1c3fd2;}[_0x323e('0x26')](_0xd6ac34){const _0x1fbc90=[];for(let _0x81ba03=0x0;_0x81ba03<_0xd6ac34['length'];_0x81ba03++){const _0x3f136f=_0xd6ac34[_0x81ba03];if(!_0x3f136f[_0x323e('0x3')])continue;let _0x3f1a59=!0x1;for(const _0x250d44 of this[_0x323e('0x31')]){const _0x261652=_0x250d44(_0x3f136f);if(_0x261652){_0x261652[_0x323e('0x37')]&&_0x1fbc90[_0x323e('0x2d')](_0x261652),_0x3f1a59=!0x0;break;}}if(!_0x3f1a59){this[_0x323e('0xe')](_0x1fbc90,_0x3f136f);const _0x308284=_0xd6ac34[_0x81ba03+0x1];if(_0x308284&&!_0x3f136f[_0x323e('0xd')]()[_0x323e('0x17')][_0x323e('0x22')](_0x308284[_0x323e('0xd')]()[_0x323e('0x4')])){const _0x5a7d06=_0x1fbc90[_0x1fbc90['length']-0x1],_0x22331f=_0x323e('0x13')==_0x3f136f[_0x323e('0x37')]?'add':_0x323e('0xb');_0x5a7d06&&'text'==_0x5a7d06['type']&&(_0x5a7d06[_0x22331f]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x1fbc90);}['registerDescriptionCallback'](_0x4a08bb){this['_customCallbacks'][_0x323e('0x2d')](_0x4a08bb);}['registerElementLabel'](_0x44fb97,_0x42b36a){this[_0x323e('0x27')][_0x323e('0x8')](_0x44fb97,_0x42b36a);}[_0x323e('0x5')](_0x58f875,_0xe1b1a4=0x1){const _0x4d201b=this[_0x323e('0x27')][_0x323e('0x36')](_0x58f875)||_0x58f875;return _0x323e('0x33')==typeof _0x4d201b?_0x4d201b(_0xe1b1a4):0x1!==_0xe1b1a4?_0xe1b1a4+'\x20'+_0x4d201b+'s':''+_0x4d201b;}[_0x323e('0xe')](_0x177dcf,_0x3ea43f){const _0x993c95=_0x3ea43f['getFirstRange']()['getWalker'](),_0x3d335f=_0x323e('0x13')==_0x3ea43f['type']?'add':_0x323e('0xb');for(const _0x139d73 of _0x993c95){const _0x5448e7=_0x139d73[_0x323e('0x2c')],_0x26fcd4=_0x177dcf[_0x177dcf['length']-0x1];if(_0x5448e7['is']('textProxy'))_0x26fcd4&&_0x26fcd4['type'][_0x323e('0x7')](_0x323e('0x20'))>-0x1&&_0x177dcf[_0x323e('0x28')](),_0x26fcd4&&_0x323e('0x1e')==_0x26fcd4[_0x323e('0x37')]?_0x26fcd4[_0x3d335f]+=_0x5448e7[_0x323e('0x18')]:_0x177dcf[_0x323e('0x2d')]({'type':_0x323e('0x1e'),'add':_0x323e('0x2b')==_0x3d335f?_0x5448e7[_0x323e('0x18')]:'','remove':'remove'==_0x3d335f?_0x5448e7[_0x323e('0x18')]:''});else{if(this['_schema'][_0x323e('0x2f')](_0x5448e7)){if(_0x26fcd4&&_0x26fcd4['type'][_0x323e('0x7')](_0x323e('0x20'))>-0x1&&_0x177dcf[_0x323e('0x28')](),_0x323e('0x2a')==_0x139d73[_0x323e('0x37')])continue;_0x26fcd4&&_0x26fcd4[_0x323e('0x37')]==_0x3d335f+_0x323e('0x2e')&&_0x26fcd4[_0x323e('0xf')]==_0x5448e7[_0x323e('0xf')]?_0x26fcd4[_0x323e('0x2')]++:_0x177dcf[_0x323e('0x2d')]({'type':_0x3d335f+'Object','name':_0x5448e7[_0x323e('0xf')],'quantity':0x1}),_0x993c95[_0x323e('0x30')](_0x488c51=>!(_0x323e('0x2a')==_0x488c51[_0x323e('0x37')]&&_0x488c51[_0x323e('0x2c')]==_0x5448e7));}else{if(this['_schema'][_0x323e('0x23')](_0x5448e7,_0x323e('0x1a'))||_0x5448e7['is'](_0x323e('0x9'),_0x323e('0x16'))){if(_0x323e('0x2b')==_0x3d335f&&_0x323e('0x24')==_0x139d73[_0x323e('0x37')]||_0x323e('0xb')==_0x3d335f&&_0x323e('0x2a')==_0x139d73[_0x323e('0x37')])continue;if(_0x26fcd4&&-0x1==_0x26fcd4[_0x323e('0x37')][_0x323e('0x7')](_0x323e('0x20'))){_0x323e('0x1e')==_0x26fcd4['type']&&(_0x26fcd4[_0x3d335f]+='\x0a');continue;}let _0x352cbf;if(_0x352cbf=_0x323e('0x2b')==_0x3d335f?_0x5448e7['nextSibling']&&!this[_0x323e('0x19')][_0x323e('0x2f')](_0x5448e7[_0x323e('0x34')])?_0x5448e7[_0x323e('0x34')]:null:_0x5448e7[_0x323e('0x35')]&&!this[_0x323e('0x19')][_0x323e('0x2f')](_0x5448e7[_0x323e('0x35')])?_0x5448e7[_0x323e('0x35')]:null,_0x5448e7['isEmpty']||_0x352cbf&&_0x352cbf[_0x323e('0x25')]){const _0xfc4dbf=_0x352cbf&&_0x352cbf['isEmpty']?_0x352cbf['name']:_0x5448e7[_0x323e('0xf')];_0x26fcd4&&_0x26fcd4[_0x323e('0x37')]==_0x3d335f+_0x323e('0xc')&&_0x26fcd4[_0x323e('0xf')]==_0xfc4dbf?_0x26fcd4[_0x323e('0x2')]++:_0x177dcf[_0x323e('0x2d')]({'type':_0x3d335f+_0x323e('0xc'),'name':_0xfc4dbf,'quantity':0x1});}else _0x177dcf[_0x323e('0x2d')]({'type':_0x3d335f+_0x323e('0x20'),'name':_0x5448e7[_0x323e('0xf')]});}}}}}[_0x323e('0x1d')](_0x274ebd){const _0x5b4565=this[_0x323e('0x29')],_0x730a08=[];for(const _0x196efc of _0x274ebd){switch(_0x196efc['type']){case _0x323e('0x1e'):if(_0x196efc[_0x323e('0x2b')]=_0x196efc[_0x323e('0x2b')][_0x323e('0x14')](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x196efc[_0x323e('0xb')]=_0x196efc[_0x323e('0xb')]['replace'](/(\S)\u000A+(\S)/g,_0x323e('0x0'))[_0x323e('0x14')](/\u000A/g,''),''!=_0x196efc['add']&&''!=_0x196efc[_0x323e('0xb')]){_0x730a08[_0x323e('0x2d')]({'type':_0x323e('0x14'),'content':_0x274fb8(_0x5b4565,_0x323e('0x38'),['\x22'+_0x196efc[_0x323e('0xb')]+'\x22','\x22'+_0x196efc[_0x323e('0x2b')]+'\x22'])});continue;}if(null!=_0x196efc[_0x323e('0x2b')]['match'](/^ +$/)){_0x730a08['push']({'type':_0x323e('0x13'),'content':_0x274fb8(_0x5b4565,_0x323e('0x1b'),_0x274fb8(_0x5b4565,_0x323e('0x32'),_0x196efc[_0x323e('0x2b')][_0x323e('0x12')]))});continue;}if(null!=_0x196efc['remove']['match'](/^ +$/)){_0x730a08[_0x323e('0x2d')]({'type':_0x323e('0x11'),'content':_0x274fb8(_0x5b4565,_0x323e('0x21'),_0x274fb8(_0x5b4565,_0x323e('0x32'),_0x196efc[_0x323e('0xb')]['length']))});continue;}if(''!=_0x196efc[_0x323e('0x2b')]){_0x730a08['push']({'type':_0x323e('0x13'),'content':_0x274fb8(_0x5b4565,'*Insert:*\x20%0','\x22'+_0x196efc[_0x323e('0x2b')]+'\x22')});continue;}_0x730a08[_0x323e('0x2d')]({'type':'deletion','content':_0x274fb8(_0x5b4565,_0x323e('0x21'),'\x22'+_0x196efc[_0x323e('0xb')]+'\x22')});continue;case _0x323e('0xa'):case _0x323e('0x10'):_0x730a08['push']({'type':'insertion','content':_0x274fb8(_0x5b4565,_0x323e('0x1b'),this[_0x323e('0x5')](_0x196efc['name'],_0x196efc['quantity']))});continue;case _0x323e('0x1'):case'removeObject':_0x730a08['push']({'type':_0x323e('0x11'),'content':_0x274fb8(_0x5b4565,_0x323e('0x21'),this[_0x323e('0x5')](_0x196efc['name'],_0x196efc['quantity']))});continue;case _0x323e('0x1f'):_0x730a08['push']({'type':'insertion','content':_0x274fb8(_0x5b4565,_0x323e('0x15'),this[_0x323e('0x5')](_0x196efc['name'],_0x196efc[_0x323e('0x2')]))});continue;case _0x323e('0x1c'):_0x730a08[_0x323e('0x2d')]({'type':'deletion','content':_0x274fb8(_0x5b4565,_0x323e('0x6'),this['getItemLabel'](_0x196efc['name'],_0x196efc[_0x323e('0x2')]))});continue;}_0x730a08[_0x323e('0x2d')](_0x196efc);}return _0x730a08;}}
23
+ const _0x2c3c=['item','*Merge:*\x20%0','addEmptyContainer','EmptyContainer','nextSibling','deletion','removeContainer','removeEmptyContainer','*Insert:*\x20%0','*Remove:*\x20%0','getWalker','quantity','isObject','element','type','data','registerDescriptionCallback','_locale','replace','$1\x20$2','textProxy','match','removeObject','ELEMENT_SPACE','previousSibling','end','isEmpty','_resolveDescriptionItems','pop','length','addObject','_addDescriptionItems','checkChild','softBreak','addContainer','REPLACE_TEXT','_schema','registerElementLabel','indexOf','name','elementEnd','start','Container','set','getItemLabel','add','function','push','Object','insertion','text','remove','isInContent','$text','_itemLabels','getFirstRange'];(function(_0x3a79bb,_0x2c3c79){const _0x5dffb2=function(_0x260b6b){while(--_0x260b6b){_0x3a79bb['push'](_0x3a79bb['shift']());}};_0x5dffb2(++_0x2c3c79);}(_0x2c3c,0x159));const _0x5dff=function(_0x3a79bb,_0x2c3c79){_0x3a79bb=_0x3a79bb-0x0;let _0x5dffb2=_0x2c3c[_0x3a79bb];return _0x5dffb2;};import{getTranslation as _0x42ed17}from'./utils/common-translations';export default class l{constructor(_0xb7bc2c,_0x8c41b8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_schema']=_0xb7bc2c,this['_locale']=_0x8c41b8;}['getDescriptions'](_0x31a361){const _0x5bf50b=[];for(let _0x5a350a=0x0;_0x5a350a<_0x31a361[_0x5dff('0x14')];_0x5a350a++){const _0x50a926=_0x31a361[_0x5a350a];if(!_0x50a926[_0x5dff('0x2b')])continue;let _0x30d242=!0x1;for(const _0x22b3b0 of this['_customCallbacks']){const _0x48368b=_0x22b3b0(_0x50a926);if(_0x48368b){_0x48368b[_0x5dff('0x5')]&&_0x5bf50b[_0x5dff('0x26')](_0x48368b),_0x30d242=!0x0;break;}}if(!_0x30d242){this[_0x5dff('0x16')](_0x5bf50b,_0x50a926);const _0x21a7be=_0x31a361[_0x5a350a+0x1];if(_0x21a7be&&!_0x50a926[_0x5dff('0x2e')]()[_0x5dff('0x10')]['isEqual'](_0x21a7be[_0x5dff('0x2e')]()[_0x5dff('0x20')])){const _0x32da53=_0x5bf50b[_0x5bf50b[_0x5dff('0x14')]-0x1],_0x38bb67=_0x5dff('0x28')==_0x50a926['type']?_0x5dff('0x24'):_0x5dff('0x2a');_0x32da53&&_0x5dff('0x29')==_0x32da53['type']&&(_0x32da53[_0x38bb67]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x5bf50b);}[_0x5dff('0x7')](_0x37a77a){this['_customCallbacks'][_0x5dff('0x26')](_0x37a77a);}[_0x5dff('0x1c')](_0x45aedb,_0x3cac53){this[_0x5dff('0x2d')][_0x5dff('0x22')](_0x45aedb,_0x3cac53);}[_0x5dff('0x23')](_0x551a78,_0x25cb19=0x1){const _0x36c016=this[_0x5dff('0x2d')]['get'](_0x551a78)||_0x551a78;return _0x5dff('0x25')==typeof _0x36c016?_0x36c016(_0x25cb19):0x1!==_0x25cb19?_0x25cb19+'\x20'+_0x36c016+'s':''+_0x36c016;}[_0x5dff('0x16')](_0x5ccfe5,_0x1dac21){const _0x1f3b2e=_0x1dac21[_0x5dff('0x2e')]()[_0x5dff('0x1')](),_0x2f9257=_0x5dff('0x28')==_0x1dac21['type']?_0x5dff('0x24'):_0x5dff('0x2a');for(const _0x2b28c4 of _0x1f3b2e){const _0x5e8056=_0x2b28c4[_0x5dff('0x2f')],_0x3569ee=_0x5ccfe5[_0x5ccfe5['length']-0x1];if(_0x5e8056['is'](_0x5dff('0xb')))_0x3569ee&&_0x3569ee[_0x5dff('0x5')]['indexOf'](_0x5dff('0x21'))>-0x1&&_0x5ccfe5[_0x5dff('0x13')](),_0x3569ee&&_0x5dff('0x29')==_0x3569ee[_0x5dff('0x5')]?_0x3569ee[_0x2f9257]+=_0x5e8056[_0x5dff('0x6')]:_0x5ccfe5[_0x5dff('0x26')]({'type':'text','add':'add'==_0x2f9257?_0x5e8056['data']:'','remove':_0x5dff('0x2a')==_0x2f9257?_0x5e8056[_0x5dff('0x6')]:''});else{if(this[_0x5dff('0x1b')]['isObject'](_0x5e8056)){if(_0x3569ee&&_0x3569ee[_0x5dff('0x5')][_0x5dff('0x1d')](_0x5dff('0x21'))>-0x1&&_0x5ccfe5[_0x5dff('0x13')](),_0x5dff('0x1f')==_0x2b28c4[_0x5dff('0x5')])continue;_0x3569ee&&_0x3569ee[_0x5dff('0x5')]==_0x2f9257+_0x5dff('0x27')&&_0x3569ee[_0x5dff('0x1e')]==_0x5e8056['name']?_0x3569ee[_0x5dff('0x2')]++:_0x5ccfe5[_0x5dff('0x26')]({'type':_0x2f9257+_0x5dff('0x27'),'name':_0x5e8056[_0x5dff('0x1e')],'quantity':0x1}),_0x1f3b2e['skip'](_0x41931e=>!('elementEnd'==_0x41931e[_0x5dff('0x5')]&&_0x41931e[_0x5dff('0x2f')]==_0x5e8056));}else{if(this[_0x5dff('0x1b')][_0x5dff('0x17')](_0x5e8056,_0x5dff('0x2c'))||_0x5e8056['is'](_0x5dff('0x4'),_0x5dff('0x18'))){if('add'==_0x2f9257&&'elementStart'==_0x2b28c4[_0x5dff('0x5')]||_0x5dff('0x2a')==_0x2f9257&&_0x5dff('0x1f')==_0x2b28c4[_0x5dff('0x5')])continue;if(_0x3569ee&&-0x1==_0x3569ee[_0x5dff('0x5')][_0x5dff('0x1d')](_0x5dff('0x21'))){'text'==_0x3569ee[_0x5dff('0x5')]&&(_0x3569ee[_0x2f9257]+='\x0a');continue;}let _0x5c95cc;if(_0x5c95cc=_0x5dff('0x24')==_0x2f9257?_0x5e8056[_0x5dff('0x33')]&&!this[_0x5dff('0x1b')][_0x5dff('0x3')](_0x5e8056['nextSibling'])?_0x5e8056[_0x5dff('0x33')]:null:_0x5e8056[_0x5dff('0xf')]&&!this[_0x5dff('0x1b')]['isObject'](_0x5e8056[_0x5dff('0xf')])?_0x5e8056['previousSibling']:null,_0x5e8056[_0x5dff('0x11')]||_0x5c95cc&&_0x5c95cc['isEmpty']){const _0x36fb21=_0x5c95cc&&_0x5c95cc[_0x5dff('0x11')]?_0x5c95cc['name']:_0x5e8056[_0x5dff('0x1e')];_0x3569ee&&_0x3569ee[_0x5dff('0x5')]==_0x2f9257+_0x5dff('0x32')&&_0x3569ee['name']==_0x36fb21?_0x3569ee['quantity']++:_0x5ccfe5[_0x5dff('0x26')]({'type':_0x2f9257+_0x5dff('0x32'),'name':_0x36fb21,'quantity':0x1});}else _0x5ccfe5[_0x5dff('0x26')]({'type':_0x2f9257+_0x5dff('0x21'),'name':_0x5e8056['name']});}}}}}[_0x5dff('0x12')](_0x2cec86){const _0x57436f=this[_0x5dff('0x8')],_0x4a41bf=[];for(const _0x68984 of _0x2cec86){switch(_0x68984[_0x5dff('0x5')]){case _0x5dff('0x29'):if(_0x68984['add']=_0x68984[_0x5dff('0x24')]['replace'](/(\S)\u000A+(\S)/g,_0x5dff('0xa'))[_0x5dff('0x9')](/\u000A/g,''),_0x68984[_0x5dff('0x2a')]=_0x68984[_0x5dff('0x2a')][_0x5dff('0x9')](/(\S)\u000A+(\S)/g,_0x5dff('0xa'))[_0x5dff('0x9')](/\u000A/g,''),''!=_0x68984[_0x5dff('0x24')]&&''!=_0x68984[_0x5dff('0x2a')]){_0x4a41bf[_0x5dff('0x26')]({'type':_0x5dff('0x9'),'content':_0x42ed17(_0x57436f,_0x5dff('0x1a'),['\x22'+_0x68984[_0x5dff('0x2a')]+'\x22','\x22'+_0x68984['add']+'\x22'])});continue;}if(null!=_0x68984['add'][_0x5dff('0xc')](/^ +$/)){_0x4a41bf[_0x5dff('0x26')]({'type':_0x5dff('0x28'),'content':_0x42ed17(_0x57436f,_0x5dff('0x37'),_0x42ed17(_0x57436f,'ELEMENT_SPACE',_0x68984[_0x5dff('0x24')][_0x5dff('0x14')]))});continue;}if(null!=_0x68984['remove'][_0x5dff('0xc')](/^ +$/)){_0x4a41bf[_0x5dff('0x26')]({'type':_0x5dff('0x34'),'content':_0x42ed17(_0x57436f,_0x5dff('0x0'),_0x42ed17(_0x57436f,_0x5dff('0xe'),_0x68984[_0x5dff('0x2a')][_0x5dff('0x14')]))});continue;}if(''!=_0x68984['add']){_0x4a41bf['push']({'type':_0x5dff('0x28'),'content':_0x42ed17(_0x57436f,_0x5dff('0x37'),'\x22'+_0x68984[_0x5dff('0x24')]+'\x22')});continue;}_0x4a41bf['push']({'type':_0x5dff('0x34'),'content':_0x42ed17(_0x57436f,_0x5dff('0x0'),'\x22'+_0x68984['remove']+'\x22')});continue;case _0x5dff('0x31'):case _0x5dff('0x15'):_0x4a41bf['push']({'type':_0x5dff('0x28'),'content':_0x42ed17(_0x57436f,_0x5dff('0x37'),this[_0x5dff('0x23')](_0x68984[_0x5dff('0x1e')],_0x68984[_0x5dff('0x2')]))});continue;case _0x5dff('0x36'):case _0x5dff('0xd'):_0x4a41bf['push']({'type':_0x5dff('0x34'),'content':_0x42ed17(_0x57436f,'*Remove:*\x20%0',this['getItemLabel'](_0x68984['name'],_0x68984[_0x5dff('0x2')]))});continue;case _0x5dff('0x19'):_0x4a41bf[_0x5dff('0x26')]({'type':_0x5dff('0x28'),'content':_0x42ed17(_0x57436f,'*Split:*\x20%0',this['getItemLabel'](_0x68984[_0x5dff('0x1e')],_0x68984['quantity']))});continue;case _0x5dff('0x35'):_0x4a41bf[_0x5dff('0x26')]({'type':_0x5dff('0x34'),'content':_0x42ed17(_0x57436f,_0x5dff('0x30'),this[_0x5dff('0x23')](_0x68984[_0x5dff('0x1e')],_0x68984[_0x5dff('0x2')]))});continue;}_0x4a41bf[_0x5dff('0x26')](_0x68984);}return _0x4a41bf;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x235c=['addSuggestion','pluginName','adapter','getSuggestions','plugins','Comments','get','editor','getSuggestion','TrackChanges'];(function(_0x5d7633,_0x235c3b){var _0x123b05=function(_0x1258ed){while(--_0x1258ed){_0x5d7633['push'](_0x5d7633['shift']());}};_0x123b05(++_0x235c3b);}(_0x235c,0x1ec));var _0x123b=function(_0x5d7633,_0x235c3b){_0x5d7633=_0x5d7633-0x0;var _0x123b05=_0x235c[_0x5d7633];return _0x123b05;};import{Plugin as _0xf4910}from'ckeditor5/src/core';import _0x4c71ca from'./trackchangesui';import _0x2bf343 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0xf4910{static get['requires'](){return[_0x2bf343,_0x4c71ca,_0x123b('0x3')];}static get[_0x123b('0x9')](){return _0x123b('0x7');}set[_0x123b('0x0')](_0x2bd31c){this[_0x123b('0x5')]['plugins'][_0x123b('0x4')](_0x2bf343)[_0x123b('0x0')]=_0x2bd31c;}get[_0x123b('0x0')](){return this[_0x123b('0x5')][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)[_0x123b('0x0')];}[_0x123b('0x8')](_0x1ee802){return this[_0x123b('0x5')][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)['addSuggestionData'](_0x1ee802);}[_0x123b('0x1')](_0x4dc562){return this['editor'][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)['getSuggestions'](_0x4dc562);}[_0x123b('0x6')](_0x4bc9a7){return this['editor'][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)['getSuggestion'](_0x4bc9a7);}}
23
+ var _0x3f13=['addSuggestion','get','getSuggestion','editor','plugins','getSuggestions','requires','pluginName','TrackChanges','Comments','addSuggestionData','adapter'];(function(_0x10d1a7,_0x3f1324){var _0x11f8fa=function(_0x403687){while(--_0x403687){_0x10d1a7['push'](_0x10d1a7['shift']());}};_0x11f8fa(++_0x3f1324);}(_0x3f13,0xaa));var _0x11f8=function(_0x10d1a7,_0x3f1324){_0x10d1a7=_0x10d1a7-0x0;var _0x11f8fa=_0x3f13[_0x10d1a7];return _0x11f8fa;};import{Plugin as _0x6a818a}from'ckeditor5/src/core';import _0x5795cb from'./trackchangesui';import _0x269865 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0x6a818a{static get[_0x11f8('0x4')](){return[_0x269865,_0x5795cb,_0x11f8('0x7')];}static get[_0x11f8('0x5')](){return _0x11f8('0x6');}set[_0x11f8('0x9')](_0x1362ad){this['editor'][_0x11f8('0x2')][_0x11f8('0xb')](_0x269865)[_0x11f8('0x9')]=_0x1362ad;}get['adapter'](){return this[_0x11f8('0x1')][_0x11f8('0x2')][_0x11f8('0xb')](_0x269865)[_0x11f8('0x9')];}[_0x11f8('0xa')](_0x2bbe90){return this['editor'][_0x11f8('0x2')][_0x11f8('0xb')](_0x269865)[_0x11f8('0x8')](_0x2bbe90);}[_0x11f8('0x3')](_0x50a8ed){return this[_0x11f8('0x1')][_0x11f8('0x2')][_0x11f8('0xb')](_0x269865)[_0x11f8('0x3')](_0x50a8ed);}[_0x11f8('0x0')](_0x53b876){return this['editor'][_0x11f8('0x2')]['get'](_0x269865)[_0x11f8('0x0')](_0x53b876);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c94=['config','getRootNames','createDocumentFragment','context','TrackChangesEditing','trackChangesData.editorCreator','extraPlugins','requires','div','data','getSuggestions','trackChangesData','editorCreator','string','map','TrackChangesDataGetter','add','Autosave','RealTimeCollaborativeEditing','CommentsRepository','discardAllSuggestions','get','plugins','execute','includes','every','end','acceptAllSuggestions','function','from','push','editor','create','concat','track-changes-data-invalid-editor-creator','toolbar','constructor','addSuggestionData','Users','destroy','model','pluginName','TrackChangesData','result','useAnonymousUser','RealTimeCollaborativeTrackChanges','document','users','has','createElement','getDataWithAcceptedSuggestions','_adapter'];(function(_0x4e04d3,_0x5c94e7){const _0x1b3dba=function(_0x3902a5){while(--_0x3902a5){_0x4e04d3['push'](_0x4e04d3['shift']());}};_0x1b3dba(++_0x5c94e7);}(_0x5c94,0x1ac));const _0x1b3d=function(_0x4e04d3,_0x5c94e7){_0x4e04d3=_0x4e04d3-0x0;let _0x1b3dba=_0x5c94[_0x4e04d3];return _0x1b3dba;};import{Plugin as _0x2073ca}from'ckeditor5/src/core';import{CKEditorError as _0x25b348}from'ckeditor5/src/utils';import _0x59843f from'./trackchangesediting';const C=['initialData',_0x1b3d('0x2b'),_0x1b3d('0x17')],k=[_0x1b3d('0x6'),'RealTimeCollaborativeComments',_0x1b3d('0x21'),_0x1b3d('0x5')];export default class T extends _0x2073ca{static get[_0x1b3d('0x2f')](){return[_0x59843f];}static get[_0x1b3d('0x1d')](){return _0x1b3d('0x1e');}['init'](){const _0x247d51=this[_0x1b3d('0x13')];if(_0x247d51[_0x1b3d('0x28')]['define'](_0x1b3d('0x2d'),_0x5ecd7a=>_0x247d51[_0x1b3d('0x18')][_0x1b3d('0x14')]('',_0x5ecd7a)),_0x1b3d('0x10')!=typeof _0x247d51[_0x1b3d('0x28')][_0x1b3d('0x9')](_0x1b3d('0x33'))[_0x1b3d('0x0')])throw new _0x25b348(_0x1b3d('0x16'));}[_0x1b3d('0x26')](_0x5c9478){return w(this['editor'],!0x0,_0x5c9478);}['getDataWithDiscardedSuggestions'](_0x158fb3){return w(this[_0x1b3d('0x13')],!0x1,_0x158fb3);}}class D extends _0x2073ca{static get['pluginName'](){return _0x1b3d('0x3');}['init'](){this[_0x1b3d('0x1f')]=_0x1b3d('0xe'),this[_0x1b3d('0x13')][_0x1b3d('0xa')][_0x1b3d('0x9')](_0x1b3d('0x7'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this[_0x1b3d('0x13')]['plugins'][_0x1b3d('0x9')](_0x1b3d('0x2c'))[_0x1b3d('0x27')]=null;}}async function w(_0x17f98b,_0x408377,_0x2e5f29){const _0x2a6421=function(_0xe96921){const _0xf442fe={};for(const _0x2dcdc7 of _0xe96921[_0x1b3d('0x28')]['names']())C['includes'](_0x2dcdc7)||(_0xf442fe[_0x2dcdc7]=_0xe96921[_0x1b3d('0x28')][_0x1b3d('0x9')](_0x2dcdc7));const _0x2f9ae6=_0xe96921[_0x1b3d('0x18')]['builtinPlugins']||[],_0x50a06f=_0xf442fe[_0x1b3d('0x2e')]||[];delete _0xf442fe[_0x1b3d('0x2e')];const _0x4cc3e0=_0x2f9ae6[_0x1b3d('0x15')](_0xf442fe['plugins'])[_0x1b3d('0x15')](_0x50a06f)[_0x1b3d('0x2')](_0x864b80=>_0x1b3d('0x1')==typeof _0x864b80?_0x2f9ae6['find'](_0x1c38ad=>_0x1c38ad['pluginName']==_0x864b80):_0x864b80),_0x4f3f58=Array[_0x1b3d('0x11')](new Set(_0x4cc3e0));return _0xf442fe['plugins']=_0x4f3f58['filter'](_0x364b24=>S(_0x364b24,new Set())),_0xf442fe[_0x1b3d('0xa')][_0x1b3d('0x12')](D),_0xf442fe['plugins'][_0x1b3d('0x12')](_0x59843f),_0xf442fe;}(_0x17f98b),_0x177399=document[_0x1b3d('0x2a')](),_0x4d0c92=_0x17f98b[_0x1b3d('0x28')][_0x1b3d('0x9')](_0x1b3d('0x33'))[_0x1b3d('0x0')],_0x4a5e24=await _0x4d0c92(_0x2a6421,()=>function(_0xea85a4){const _0x552999=document[_0x1b3d('0x25')](_0x1b3d('0x30'));return _0xea85a4['appendChild'](_0x552999),_0x552999;}(_0x177399));!function(_0x708ad0,_0x3f2ea5){const _0x1235ba=_0x708ad0[_0x1b3d('0x1c')][_0x1b3d('0x22')][_0x1b3d('0x29')]()['reduce']((_0x38e0b5,_0x570012)=>(_0x38e0b5[_0x570012]=_0x708ad0['data'][_0x1b3d('0x9')]({'rootName':_0x570012}),_0x38e0b5),{}),_0x156fa1=_0x708ad0['plugins'][_0x1b3d('0x9')](_0x1b3d('0x1a'))[_0x1b3d('0x23')][_0x1b3d('0x2')](_0x2b4bbc=>({'id':_0x2b4bbc['id']})),_0x1a72cf=_0x708ad0[_0x1b3d('0xa')][_0x1b3d('0x9')](_0x1b3d('0x2c'))[_0x1b3d('0x32')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf54306=_0x3f2ea5['plugins'][_0x1b3d('0x9')](_0x1b3d('0x1a')),_0x17f8cb=_0x3f2ea5[_0x1b3d('0xa')][_0x1b3d('0x9')]('TrackChangesEditing');for(const _0x25fc81 of _0x156fa1)_0xf54306['getUser'](_0x25fc81['id'])||_0xf54306['addUser'](_0x25fc81);_0xf54306['me']||_0xf54306[_0x1b3d('0x20')]();for(const _0x5bda0b of _0x1a72cf)_0x17f8cb[_0x1b3d('0x19')](_0x5bda0b);_0x3f2ea5['data']['set'](_0x1235ba);}(_0x17f98b,_0x4a5e24),_0x4a5e24[_0x1b3d('0xb')](_0x408377?_0x1b3d('0xf'):_0x1b3d('0x8'));const _0x1ff7c9=_0x4a5e24[_0x1b3d('0x31')][_0x1b3d('0x9')](_0x2e5f29);return await _0x4a5e24[_0x1b3d('0x1b')](),_0x1ff7c9;}function S(_0x33f726,_0x2a171a){if(_0x2a171a[_0x1b3d('0x24')](_0x33f726))return!0x0;_0x2a171a[_0x1b3d('0x4')](_0x33f726);const _0xb51d9b=_0x1b3d('0x10')==typeof _0x33f726?_0x33f726[_0x1b3d('0x1d')]||_0x33f726['name']:_0x33f726;return(!_0xb51d9b||!k[_0x1b3d('0xc')](_0xb51d9b))&&(!_0x33f726[_0x1b3d('0x2f')]||_0x33f726[_0x1b3d('0x2f')][_0x1b3d('0xd')](_0x462eef=>S(_0x462eef,_0x2a171a)));}
23
+ const _0x29d6=['name','discardAllSuggestions','execute','push','addSuggestionData','editorCreator','Users','data','getUser','reduce','getDataWithDiscardedSuggestions','builtinPlugins','trackChangesData','init','useAnonymousUser','pluginName','Autosave','_adapter','acceptAllSuggestions','define','includes','plugins','initialData','RealTimeCollaborativeComments','editor','get','getSuggestions','names','constructor','users','getRootNames','track-changes-data-invalid-editor-creator','TrackChangesEditing','every','config','toolbar','function','trackChangesData.editorCreator','has','TrackChangesDataGetter','add','destroy','create','RealTimeCollaborativeEditing','CommentsRepository','string','set','document','TrackChangesData','from','requires','filter','concat'];(function(_0x5def10,_0x29d6ba){const _0x131700=function(_0x297daa){while(--_0x297daa){_0x5def10['push'](_0x5def10['shift']());}};_0x131700(++_0x29d6ba);}(_0x29d6,0x1ee));const _0x1317=function(_0x5def10,_0x29d6ba){_0x5def10=_0x5def10-0x0;let _0x131700=_0x29d6[_0x5def10];return _0x131700;};import{Plugin as _0x40b92f}from'ckeditor5/src/core';import{CKEditorError as _0x4783b1}from'ckeditor5/src/utils';import _0x3514cb from'./trackchangesediting';const C=[_0x1317('0x5'),'context',_0x1317('0x12')],k=[_0x1317('0x1a'),_0x1317('0x6'),'RealTimeCollaborativeTrackChanges',_0x1317('0x34')];export default class T extends _0x40b92f{static get[_0x1317('0x21')](){return[_0x3514cb];}static get[_0x1317('0x33')](){return _0x1317('0x1f');}[_0x1317('0x31')](){const _0x1e340f=this[_0x1317('0x7')];if(_0x1e340f[_0x1317('0x11')][_0x1317('0x2')](_0x1317('0x14'),_0x2f184a=>_0x1e340f[_0x1317('0xb')][_0x1317('0x19')]('',_0x2f184a)),_0x1317('0x13')!=typeof _0x1e340f[_0x1317('0x11')]['get'](_0x1317('0x30'))[_0x1317('0x29')])throw new _0x4783b1(_0x1317('0xe'));}['getDataWithAcceptedSuggestions'](_0x458ccd){return w(this[_0x1317('0x7')],!0x0,_0x458ccd);}[_0x1317('0x2e')](_0x445f0c){return w(this[_0x1317('0x7')],!0x1,_0x445f0c);}}class D extends _0x40b92f{static get['pluginName'](){return _0x1317('0x16');}[_0x1317('0x31')](){this['result']='end',this[_0x1317('0x7')][_0x1317('0x4')]['get'](_0x1317('0x1b'))[_0x1317('0x0')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x1317('0x7')][_0x1317('0x4')]['get'](_0x1317('0xf'))[_0x1317('0x0')]=null;}}async function w(_0x6cbab6,_0x5db9ba,_0x209c00){const _0x3e69c2=function(_0x471c2e){const _0x87e8ef={};for(const _0x53d57e of _0x471c2e['config'][_0x1317('0xa')]())C[_0x1317('0x3')](_0x53d57e)||(_0x87e8ef[_0x53d57e]=_0x471c2e[_0x1317('0x11')]['get'](_0x53d57e));const _0x4156b3=_0x471c2e[_0x1317('0xb')][_0x1317('0x2f')]||[],_0x4e722d=_0x87e8ef['extraPlugins']||[];delete _0x87e8ef['extraPlugins'];const _0x57b45f=_0x4156b3[_0x1317('0x23')](_0x87e8ef[_0x1317('0x4')])[_0x1317('0x23')](_0x4e722d)['map'](_0x47807e=>_0x1317('0x1c')==typeof _0x47807e?_0x4156b3['find'](_0x31b3de=>_0x31b3de['pluginName']==_0x47807e):_0x47807e),_0x8754fb=Array[_0x1317('0x20')](new Set(_0x57b45f));return _0x87e8ef[_0x1317('0x4')]=_0x8754fb[_0x1317('0x22')](_0xebb2f9=>S(_0xebb2f9,new Set())),_0x87e8ef[_0x1317('0x4')][_0x1317('0x27')](D),_0x87e8ef['plugins'][_0x1317('0x27')](_0x3514cb),_0x87e8ef;}(_0x6cbab6),_0x5a6913=document['createDocumentFragment'](),_0x54635d=_0x6cbab6[_0x1317('0x11')][_0x1317('0x8')](_0x1317('0x30'))[_0x1317('0x29')],_0x86a88e=await _0x54635d(_0x3e69c2,()=>function(_0x5a389f){const _0x20749d=document['createElement']('div');return _0x5a389f['appendChild'](_0x20749d),_0x20749d;}(_0x5a6913));!function(_0x4ea065,_0x3433f9){const _0x4e9cc2=_0x4ea065['model'][_0x1317('0x1e')][_0x1317('0xd')]()[_0x1317('0x2d')]((_0x79cfc6,_0x82bd89)=>(_0x79cfc6[_0x82bd89]=_0x4ea065['data']['get']({'rootName':_0x82bd89}),_0x79cfc6),{}),_0x4e5f27=_0x4ea065[_0x1317('0x4')]['get'](_0x1317('0x2a'))[_0x1317('0xc')]['map'](_0x2483ba=>({'id':_0x2483ba['id']})),_0x37be94=_0x4ea065[_0x1317('0x4')]['get'](_0x1317('0xf'))[_0x1317('0x9')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a2321=_0x3433f9[_0x1317('0x4')][_0x1317('0x8')]('Users'),_0x4d1748=_0x3433f9[_0x1317('0x4')][_0x1317('0x8')](_0x1317('0xf'));for(const _0x2f3f66 of _0x4e5f27)_0x5a2321[_0x1317('0x2c')](_0x2f3f66['id'])||_0x5a2321['addUser'](_0x2f3f66);_0x5a2321['me']||_0x5a2321[_0x1317('0x32')]();for(const _0x528abf of _0x37be94)_0x4d1748[_0x1317('0x28')](_0x528abf);_0x3433f9[_0x1317('0x2b')][_0x1317('0x1d')](_0x4e9cc2);}(_0x6cbab6,_0x86a88e),_0x86a88e[_0x1317('0x26')](_0x5db9ba?_0x1317('0x1'):_0x1317('0x25'));const _0x2bbb19=_0x86a88e[_0x1317('0x2b')][_0x1317('0x8')](_0x209c00);return await _0x86a88e[_0x1317('0x18')](),_0x2bbb19;}function S(_0x13a282,_0x455d23){if(_0x455d23[_0x1317('0x15')](_0x13a282))return!0x0;_0x455d23[_0x1317('0x17')](_0x13a282);const _0x1fe288=_0x1317('0x13')==typeof _0x13a282?_0x13a282['pluginName']||_0x13a282[_0x1317('0x24')]:_0x13a282;return(!_0x1fe288||!k[_0x1317('0x3')](_0x1fe288))&&(!_0x13a282[_0x1317('0x21')]||_0x13a282['requires'][_0x1317('0x10')](_0x18e746=>S(_0x18e746,_0x455d23)));}