@ckeditor/ckeditor5-track-changes 41.0.0 → 41.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/build/track-changes.js +1 -1
  2. package/build/translations/ro.js +1 -1
  3. package/lang/translations/ro.po +1 -1
  4. package/package.json +3 -3
  5. package/src/commands/acceptsuggestioncommand.js +1 -1
  6. package/src/commands/discardsuggestioncommand.js +1 -1
  7. package/src/commands/executeonallsuggestionscommand.js +1 -1
  8. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  9. package/src/commands/trackchangescommand.js +1 -1
  10. package/src/integrations/aiassistant.js +1 -1
  11. package/src/integrations/alignment.js +1 -1
  12. package/src/integrations/basicstyles.js +1 -1
  13. package/src/integrations/blockquote.js +1 -1
  14. package/src/integrations/casechange.js +1 -1
  15. package/src/integrations/ckbox.js +1 -1
  16. package/src/integrations/codeblock.js +1 -1
  17. package/src/integrations/comments.js +1 -1
  18. package/src/integrations/deletecommand.js +1 -1
  19. package/src/integrations/entercommand.js +1 -1
  20. package/src/integrations/findandreplace.js +1 -1
  21. package/src/integrations/font.js +1 -1
  22. package/src/integrations/formatpainter.js +1 -1
  23. package/src/integrations/heading.js +1 -1
  24. package/src/integrations/highlight.js +1 -1
  25. package/src/integrations/horizontalline.js +1 -1
  26. package/src/integrations/htmlembed.js +1 -1
  27. package/src/integrations/image.js +1 -1
  28. package/src/integrations/imagereplace.js +1 -1
  29. package/src/integrations/imagestyle.js +1 -1
  30. package/src/integrations/importword.js +1 -1
  31. package/src/integrations/indent.js +1 -1
  32. package/src/integrations/inputcommand.js +1 -1
  33. package/src/integrations/legacylist.js +1 -1
  34. package/src/integrations/legacylistproperties.js +1 -1
  35. package/src/integrations/link.js +1 -1
  36. package/src/integrations/list.js +1 -1
  37. package/src/integrations/listproperties.js +1 -1
  38. package/src/integrations/mediaembed.js +1 -1
  39. package/src/integrations/mention.js +1 -1
  40. package/src/integrations/pagebreak.js +1 -1
  41. package/src/integrations/paragraph.js +1 -1
  42. package/src/integrations/removeformat.js +1 -1
  43. package/src/integrations/restrictededitingmode.js +1 -1
  44. package/src/integrations/shiftentercommand.js +1 -1
  45. package/src/integrations/standardeditingmode.js +1 -1
  46. package/src/integrations/style.js +1 -1
  47. package/src/integrations/table.js +1 -1
  48. package/src/integrations/tablecaption.js +1 -1
  49. package/src/integrations/tableclipboard.js +1 -1
  50. package/src/integrations/tablecolumnresize.js +1 -1
  51. package/src/integrations/tableheadings.js +1 -1
  52. package/src/integrations/tablemergesplit.js +1 -1
  53. package/src/integrations/tableofcontents.js +1 -1
  54. package/src/integrations/tableproperties.js +1 -1
  55. package/src/integrations/template.js +1 -1
  56. package/src/integrations/title.js +1 -1
  57. package/src/integrations/undo.js +1 -1
  58. package/src/integrations/utils.js +1 -1
  59. package/src/suggestion.js +1 -1
  60. package/src/suggestiondescriptionfactory.js +1 -1
  61. package/src/trackchanges.js +1 -1
  62. package/src/trackchangesdata.js +1 -1
  63. package/src/trackchangesediting.js +1 -1
  64. package/src/trackchangesui.js +1 -1
  65. package/src/ui/suggestioncontroller.js +1 -1
  66. package/src/ui/view/basesuggestionthreadview.js +1 -1
  67. package/src/ui/view/suggestionthreadview.js +1 -1
  68. package/src/utils/common-translations.js +1 -1
  69. package/src/utils/utils.js +1 -1
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1bf6=['discard','delete','commentThread','getItems','getMultiRangeId','createdAt','getAllAdjacentSuggestions','split','isIntersecting','reduce','head','authoredAt','map','accept','previous','isInContent','getMarkerNames','author','removeAttribute','get','getRanges','removeMarkers','_onDiscard','getFirstMarker','type','end','size','onDiscard','creator','removeMarker','change','setAttribute','onAttributesChange','_model','_isDataLoaded','add','@external','getContainedElement','getMarkers','nodeBefore','isIntersectingWithRange','isMultiRange','clear','attributes','addRange','push','getRange','hasComments','set','from','addMarkerName','_markerNames','subType','_onAccept','_onAttributesChange','next','getFirstRange','length','markers','decorate','data','start'];(function(_0xf4c501,_0x1bf6e0){const _0x5a2983=function(_0x5a3b7c){while(--_0x5a3b7c){_0xf4c501['push'](_0xf4c501['shift']());}};_0x5a2983(++_0x1bf6e0);}(_0x1bf6,0xa4));const _0x5a29=function(_0xf4c501,_0x1bf6e0){_0xf4c501=_0xf4c501-0x0;let _0x5a2983=_0x1bf6[_0xf4c501];return _0x5a2983;};import{Element as _0x12eb54}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x4f71fa,uid as _0xae8884}from'ckeditor5/src/utils.js';import{cloneDeep as _0x1a81fa,isEqual as _0x2d81e9,set as _0x1b22bf,unset as _0x20b699}from'lodash-es';export default class u extends _0x4f71fa(){constructor(_0x28bbcd,_0x5473b6){super(),this[_0x5a29('0x38')]=!0x1,this['id']=_0x5473b6['id'],this[_0x5a29('0x2e')]=_0x5473b6[_0x5a29('0x2e')],this[_0x5a29('0xc')]=_0x5473b6[_0x5a29('0xc')]||null,this['author']=_0x5473b6[_0x5a29('0x27')],this[_0x5a29('0x32')]=_0x5473b6[_0x5a29('0x32')]||_0x5473b6['author'],this['isExternal']=Boolean(_0x5473b6[_0x5a29('0x3')]&&_0x5473b6[_0x5a29('0x3')][_0x5a29('0x3a')]),this[_0x5a29('0x14')]=null,this[_0x5a29('0x37')]=_0x28bbcd,this[_0x5a29('0xd')]=_0x5473b6['onAccept'],this[_0x5a29('0x2c')]=_0x5473b6[_0x5a29('0x31')],this[_0x5a29('0xe')]=_0x5473b6[_0x5a29('0x36')],this['_markerNames']=new Set(),this[_0x5a29('0x1b')]=null,this['set'](_0x5a29('0x21'),null),this[_0x5a29('0x8')]('attributes',_0x5473b6[_0x5a29('0x3')]||{}),this[_0x5a29('0x8')](_0x5a29('0x24'),null),this[_0x5a29('0x8')](_0x5a29('0xf'),null),this[_0x5a29('0x8')](_0x5a29('0x18'),null),this['set']('_saved',!0x1),this['decorate'](_0x5a29('0x23')),this[_0x5a29('0x13')](_0x5a29('0x16'));}get[_0x5a29('0x20')](){let _0x3b2ba6=this;for(;_0x3b2ba6[_0x5a29('0x24')];)_0x3b2ba6=_0x3b2ba6['previous'];return _0x3b2ba6;}get['hasComments'](){return!!this['commentThread']&&this[_0x5a29('0x18')]['length']>0x0;}get[_0x5a29('0x1')](){if(0x0==this['_markerNames'][_0x5a29('0x30')])return!0x1;return 0x6==Array[_0x5a29('0x9')](this[_0x5a29('0xb')])[0x0][_0x5a29('0x1d')](':')[_0x5a29('0x11')];}get[_0x5a29('0x25')](){return null!==this[_0x5a29('0x2d')]();}['addMarkerName'](_0x4769e8){this[_0x5a29('0xb')][_0x5a29('0x39')](_0x4769e8);}[_0x5a29('0x26')](){return Array[_0x5a29('0x9')](this[_0x5a29('0xb')]);}[_0x5a29('0x3c')](){return this['getMarkerNames']()[_0x5a29('0x22')](_0x35ef9b=>this[_0x5a29('0x37')][_0x5a29('0x12')][_0x5a29('0x29')](_0x35ef9b))['filter'](_0x461a39=>_0x461a39);}[_0x5a29('0x2d')](){return this[_0x5a29('0x3c')]()[0x0]||null;}[_0x5a29('0x2b')](){this[_0x5a29('0x37')][_0x5a29('0x34')](_0x5bc783=>{for(const _0x1a3813 of this[_0x5a29('0x3c')]())_0x5bc783['removeMarker'](_0x1a3813);}),this[_0x5a29('0xb')][_0x5a29('0x2')]();}['removeMarker'](_0x67a56d){this[_0x5a29('0x37')][_0x5a29('0x34')](_0x32d381=>{_0x32d381[_0x5a29('0x33')](_0x67a56d);}),this['_markerNames'][_0x5a29('0x17')](_0x67a56d);}[_0x5a29('0x4')](_0x32294f){const _0x17b29f='suggestion:'+this[_0x5a29('0x2e')]+':'+this[_0x5a29('0xc')]+':'+this['id']+':'+this[_0x5a29('0x32')]['id']+':'+u[_0x5a29('0x1a')]();this[_0x5a29('0xa')](_0x17b29f),this['_model'][_0x5a29('0x34')](_0x297497=>{_0x297497['addMarker'](_0x17b29f,{'range':_0x32294f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5a29('0x0')](_0x8bd95d){for(const _0x8a51c2 of this[_0x5a29('0x2a')]())if(_0x8a51c2[_0x5a29('0x1e')](_0x8bd95d))return!0x0;return!0x1;}['getRanges'](){return this[_0x5a29('0x3c')]()[_0x5a29('0x22')](_0x4e315c=>_0x4e315c[_0x5a29('0x6')]());}[_0x5a29('0x19')](){return this[_0x5a29('0x2a')]()[_0x5a29('0x1f')]((_0xe973df,_0x14046b)=>[..._0xe973df,..._0x14046b[_0x5a29('0x19')]()],[]);}[_0x5a29('0x10')](){var _0x53dbe3;return(null===(_0x53dbe3=this[_0x5a29('0x2d')]())||void 0x0===_0x53dbe3?void 0x0:_0x53dbe3[_0x5a29('0x6')]())||null;}[_0x5a29('0x3b')](){const _0x2361eb=this[_0x5a29('0x2a')]();if(0x1!=_0x2361eb[_0x5a29('0x11')])return null;const _0x4e5a65=_0x2361eb[0x0],_0x233474=_0x4e5a65[_0x5a29('0x15')]['nodeAfter'],_0x19e155=_0x4e5a65[_0x5a29('0x2f')][_0x5a29('0x3d')];return _0x233474 instanceof _0x12eb54?_0x233474!=_0x19e155?null:_0x233474:null;}[_0x5a29('0x23')](){this['_onAccept'](this[_0x5a29('0x2a')](),this['data'],this['attributes']),this[_0x5a29('0x2b')]();}[_0x5a29('0x16')](){this[_0x5a29('0x2c')](this[_0x5a29('0x2a')](),this['data'],this[_0x5a29('0x3')]),this[_0x5a29('0x2b')]();}[_0x5a29('0x1c')](){const _0x2e49c2=[];let _0x253201=this[_0x5a29('0x20')];for(;_0x253201;)_0x2e49c2[_0x5a29('0x5')](_0x253201),_0x253201=_0x253201[_0x5a29('0xf')];return _0x2e49c2;}[_0x5a29('0x35')](_0x116b7a,_0x2a3081){const _0x538384=_0x1a81fa(this['attributes']);_0x1b22bf(_0x538384,_0x116b7a,_0x2a3081),_0x2d81e9(_0x538384,this[_0x5a29('0x3')])||(this[_0x5a29('0x3')]=_0x538384,this[_0x5a29('0xe')](_0x538384));}[_0x5a29('0x28')](_0x1e7977){const _0x3f2da8=_0x1a81fa(this[_0x5a29('0x3')]);_0x20b699(_0x3f2da8,_0x1e7977),_0x2d81e9(_0x3f2da8,this[_0x5a29('0x3')])||(this['attributes']=_0x3f2da8,this['_onAttributesChange'](this[_0x5a29('0x3')]));}['toJSON'](){return{'id':this['id'],'type':this[_0x5a29('0xc')]?this[_0x5a29('0x2e')]+':'+this[_0x5a29('0xc')]:this['type'],'authorId':this[_0x5a29('0x32')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x5a29('0x7')],'data':this[_0x5a29('0x14')],'attributes':this[_0x5a29('0x3')]};}static[_0x5a29('0x1a')](){return _0xae8884()['substr'](0x1,0x5);}}
23
+ const _0x13e2=['subType','@external','setAttribute','from','isMultiRange','onAccept','getFirstRange','type','size','push','getContainedElement','removeMarkers','hasComments','get','commentThread','length','map','_markerNames','getRanges','author','end','suggestion:','delete','discard','previous','getItems','filter','accept','isIntersecting','decorate','change','onAttributesChange','removeMarker','nodeAfter','getMarkers','isIntersectingWithRange','_model','removeAttribute','getMarkerNames','next','getRange','getMultiRangeId','toJSON','createdAt','_onAttributesChange','start','_onDiscard','creator','getFirstMarker','getAllAdjacentSuggestions','authoredAt','addMarkerName','_onAccept','addRange','data','_isDataLoaded','split','substr','isExternal','set','attributes'];(function(_0x37e2b0,_0x13e28e){const _0x2e1eba=function(_0x2c9863){while(--_0x2c9863){_0x37e2b0['push'](_0x37e2b0['shift']());}};_0x2e1eba(++_0x13e28e);}(_0x13e2,0x14e));const _0x2e1e=function(_0x37e2b0,_0x13e28e){_0x37e2b0=_0x37e2b0-0x0;let _0x2e1eba=_0x13e2[_0x37e2b0];return _0x2e1eba;};import{Element as _0x1de794}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x133bd2,uid as _0x14fa25}from'ckeditor5/src/utils.js';import{cloneDeep as _0x484429,isEqual as _0x19a1c4,set as _0x1f5ad8,unset as _0x51a7e4}from'lodash-es';export default class u extends _0x133bd2(){constructor(_0x25641c,_0x582a67){super(),this[_0x2e1e('0x1a')]=!0x1,this['id']=_0x582a67['id'],this[_0x2e1e('0x27')]=_0x582a67['type'],this['subType']=_0x582a67[_0x2e1e('0x20')]||null,this[_0x2e1e('0x33')]=_0x582a67[_0x2e1e('0x33')],this[_0x2e1e('0x12')]=_0x582a67[_0x2e1e('0x12')]||_0x582a67[_0x2e1e('0x33')],this[_0x2e1e('0x1d')]=Boolean(_0x582a67[_0x2e1e('0x1f')]&&_0x582a67[_0x2e1e('0x1f')][_0x2e1e('0x21')]),this[_0x2e1e('0x19')]=null,this[_0x2e1e('0x7')]=_0x25641c,this[_0x2e1e('0x17')]=_0x582a67[_0x2e1e('0x25')],this[_0x2e1e('0x11')]=_0x582a67['onDiscard'],this[_0x2e1e('0xf')]=_0x582a67[_0x2e1e('0x2')],this[_0x2e1e('0x31')]=new Set(),this[_0x2e1e('0xe')]=null,this[_0x2e1e('0x1e')](_0x2e1e('0x15'),null),this[_0x2e1e('0x1e')](_0x2e1e('0x1f'),_0x582a67['attributes']||{}),this[_0x2e1e('0x1e')](_0x2e1e('0x38'),null),this['set'](_0x2e1e('0xa'),null),this[_0x2e1e('0x1e')]('commentThread',null),this[_0x2e1e('0x1e')]('_saved',!0x1),this[_0x2e1e('0x0')](_0x2e1e('0x3b')),this[_0x2e1e('0x0')](_0x2e1e('0x37'));}get['head'](){let _0x31ad95=this;for(;_0x31ad95[_0x2e1e('0x38')];)_0x31ad95=_0x31ad95[_0x2e1e('0x38')];return _0x31ad95;}get[_0x2e1e('0x2c')](){return!!this[_0x2e1e('0x2e')]&&this[_0x2e1e('0x2e')][_0x2e1e('0x2f')]>0x0;}get[_0x2e1e('0x24')](){if(0x0==this[_0x2e1e('0x31')][_0x2e1e('0x28')])return!0x1;return 0x6==Array[_0x2e1e('0x23')](this[_0x2e1e('0x31')])[0x0][_0x2e1e('0x1b')](':')['length'];}get['isInContent'](){return null!==this[_0x2e1e('0x13')]();}[_0x2e1e('0x16')](_0x296d94){this['_markerNames']['add'](_0x296d94);}[_0x2e1e('0x9')](){return Array[_0x2e1e('0x23')](this[_0x2e1e('0x31')]);}[_0x2e1e('0x5')](){return this[_0x2e1e('0x9')]()[_0x2e1e('0x30')](_0x551cb6=>this[_0x2e1e('0x7')]['markers'][_0x2e1e('0x2d')](_0x551cb6))[_0x2e1e('0x3a')](_0x48dfb2=>_0x48dfb2);}[_0x2e1e('0x13')](){return this[_0x2e1e('0x5')]()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x46a657=>{for(const _0x16e73a of this['getMarkers']())_0x46a657[_0x2e1e('0x3')](_0x16e73a);}),this['_markerNames']['clear']();}[_0x2e1e('0x3')](_0x563e66){this['_model'][_0x2e1e('0x1')](_0x313774=>{_0x313774[_0x2e1e('0x3')](_0x563e66);}),this['_markerNames'][_0x2e1e('0x36')](_0x563e66);}[_0x2e1e('0x18')](_0x2ae487){const _0x53f080=_0x2e1e('0x35')+this[_0x2e1e('0x27')]+':'+this[_0x2e1e('0x20')]+':'+this['id']+':'+this[_0x2e1e('0x12')]['id']+':'+u[_0x2e1e('0xc')]();this[_0x2e1e('0x16')](_0x53f080),this[_0x2e1e('0x7')][_0x2e1e('0x1')](_0x2c0c5b=>{_0x2c0c5b['addMarker'](_0x53f080,{'range':_0x2ae487,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2e1e('0x6')](_0x24c41c){for(const _0x58d882 of this['getRanges']())if(_0x58d882[_0x2e1e('0x3c')](_0x24c41c))return!0x0;return!0x1;}['getRanges'](){return this[_0x2e1e('0x5')]()[_0x2e1e('0x30')](_0x1af8d7=>_0x1af8d7['getRange']());}[_0x2e1e('0x39')](){return this['getRanges']()['reduce']((_0x2b47cc,_0x5f6011)=>[..._0x2b47cc,..._0x5f6011[_0x2e1e('0x39')]()],[]);}[_0x2e1e('0x26')](){var _0x13a06c;return(null===(_0x13a06c=this[_0x2e1e('0x13')]())||void 0x0===_0x13a06c?void 0x0:_0x13a06c[_0x2e1e('0xb')]())||null;}[_0x2e1e('0x2a')](){const _0x4e0a7b=this[_0x2e1e('0x32')]();if(0x1!=_0x4e0a7b[_0x2e1e('0x2f')])return null;const _0x5cf332=_0x4e0a7b[0x0],_0x5b8fcc=_0x5cf332[_0x2e1e('0x10')][_0x2e1e('0x4')],_0x2bbf42=_0x5cf332[_0x2e1e('0x34')]['nodeBefore'];return _0x5b8fcc instanceof _0x1de794?_0x5b8fcc!=_0x2bbf42?null:_0x5b8fcc:null;}[_0x2e1e('0x3b')](){this[_0x2e1e('0x17')](this['getRanges'](),this['data'],this[_0x2e1e('0x1f')]),this[_0x2e1e('0x2b')]();}[_0x2e1e('0x37')](){this['_onDiscard'](this[_0x2e1e('0x32')](),this[_0x2e1e('0x19')],this[_0x2e1e('0x1f')]),this[_0x2e1e('0x2b')]();}[_0x2e1e('0x14')](){const _0x38472b=[];let _0x2ccdac=this['head'];for(;_0x2ccdac;)_0x38472b[_0x2e1e('0x29')](_0x2ccdac),_0x2ccdac=_0x2ccdac[_0x2e1e('0xa')];return _0x38472b;}[_0x2e1e('0x22')](_0x28c0ff,_0x8f669f){const _0x366784=_0x484429(this[_0x2e1e('0x1f')]);_0x1f5ad8(_0x366784,_0x28c0ff,_0x8f669f),_0x19a1c4(_0x366784,this['attributes'])||(this['attributes']=_0x366784,this[_0x2e1e('0xf')](_0x366784));}[_0x2e1e('0x8')](_0x40df02){const _0x5e7767=_0x484429(this[_0x2e1e('0x1f')]);_0x51a7e4(_0x5e7767,_0x40df02),_0x19a1c4(_0x5e7767,this[_0x2e1e('0x1f')])||(this['attributes']=_0x5e7767,this[_0x2e1e('0xf')](this['attributes']));}[_0x2e1e('0xd')](){return{'id':this['id'],'type':this[_0x2e1e('0x20')]?this[_0x2e1e('0x27')]+':'+this[_0x2e1e('0x20')]:this[_0x2e1e('0x27')],'authorId':this[_0x2e1e('0x12')]['id'],'createdAt':this[_0x2e1e('0xe')],'hasComments':this['hasComments'],'data':this[_0x2e1e('0x19')],'attributes':this[_0x2e1e('0x1f')]};}static[_0x2e1e('0xc')](){return _0x14fa25()[_0x2e1e('0x1c')](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5bd1=['removeFormat','pop','EmptyContainer','map','addEmptyContainer','*Set\x20format:*\x20%0','start','$1\x20$2','insertion','isInContent','_addDescriptionItems','isEqual','skip','newValue','_attributeLabels','_schema','key','length','type','_customCallbacks','*Change\x20to:*\x20%0','getDescriptions','push','nodeAfter','elementEnd','quantity','_locale','set','Container','*Merge:*\x20%0','*Insert:*\x20%0','normal','$text','indexOf','registerDescriptionCallback','subType','data','_itemLabels','isEmpty','_handleInsertRemoveSuggestionDescription','match','getWalker','item','addFormat','deletion','*Remove:*\x20%0','removeObject','has','_handleRenameSuggestionDescription','join','format','$textProxy','getFirstRange','function','nextSibling','getItemLabel','text','_itemLabelsCallbacks','element','elementStart','REPLACE_TEXT','checkChild','replace','Object','previousSibling','softBreak','addContainer','*Remove\x20format:*\x20%0','end','get','isObject','name','remove','add','_resolveDescriptionItems'];(function(_0x1a56ac,_0x5bd187){const _0x1a9866=function(_0x24ef87){while(--_0x24ef87){_0x1a56ac['push'](_0x1a56ac['shift']());}};_0x1a9866(++_0x5bd187);}(_0x5bd1,0xd2));const _0x1a98=function(_0x1a56ac,_0x5bd187){_0x1a56ac=_0x1a56ac-0x0;let _0x1a9866=_0x5bd1[_0x1a56ac];return _0x1a9866;};import{getTranslation as _0x36844c}from'./utils/common-translations.js';import{priorities as _0x589d80,insertToPriorityArray as _0x5f0172}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x26be01}from'./trackchangesediting.js';export default class f{constructor(_0x44e503,_0x1c8746){this[_0x1a98('0x22')]=[],this[_0x1a98('0x34')]=new Map(),this[_0x1a98('0x48')]=[],this[_0x1a98('0x1d')]=new Map(),this[_0x1a98('0x1e')]=_0x44e503,this[_0x1a98('0x29')]=_0x1c8746;}[_0x1a98('0x24')](_0x2fa5cf){const _0x55ad2f=[],_0x6b7c6e=new Set(),_0x1fcce8=new Set();for(let _0x107d49=0x0;_0x107d49<_0x2fa5cf['length'];_0x107d49++){const _0x1905fb=_0x2fa5cf[_0x107d49];if(!_0x1905fb[_0x1a98('0x18')])continue;const _0x225e6c=this['_handleCustomCallbackDescription'](_0x1905fb);if(_0x225e6c){if(null!=_0x1905fb['subType']){if(_0x6b7c6e[_0x1a98('0x3e')](_0x1905fb[_0x1a98('0x32')]))continue;_0x6b7c6e[_0x1a98('0xd')](_0x1905fb[_0x1a98('0x32')]);}_0x55ad2f[_0x1a98('0x25')](_0x225e6c);}else{if('attribute'!=_0x1905fb[_0x1a98('0x21')])_0x1a98('0x17')!=_0x1905fb[_0x1a98('0x21')]&&_0x1a98('0x3b')!=_0x1905fb[_0x1a98('0x21')]||this[_0x1a98('0x36')](_0x55ad2f,_0x1905fb,_0x2fa5cf[_0x107d49+0x1]);else{const _0x117e88=_0x1905fb[_0x1a98('0x33')]['key'];if(_0x1fcce8[_0x1a98('0x3e')](_0x117e88))continue;_0x1fcce8[_0x1a98('0xd')](_0x1905fb[_0x1a98('0x33')][_0x1a98('0x1f')]),_0x117e88==_0x26be01?this[_0x1a98('0x3f')](_0x55ad2f,_0x1905fb):this['_handleAttributeSuggestionDescription'](_0x55ad2f,_0x1905fb);}}}return this[_0x1a98('0xe')](_0x55ad2f);}[_0x1a98('0x31')](_0x5735f9){this[_0x1a98('0x22')][_0x1a98('0x25')](_0x5735f9);}['registerElementLabel'](_0x525243,_0x56529b,_0x132a50=_0x589d80[_0x1a98('0x2e')]){_0x1a98('0x44')==typeof _0x525243?_0x5f0172(this[_0x1a98('0x48')],{'matchingCallback':_0x525243,'label':_0x56529b,'priority':_0x132a50}):this['_itemLabels'][_0x1a98('0x2a')](_0x525243,_0x56529b);}['registerAttributeLabel'](_0x188eaa,_0xac84c1){this[_0x1a98('0x1d')]['set'](_0x188eaa,_0xac84c1);}['getItemLabel'](_0x2f08b6,_0x2b8834=0x1){let _0x5c01fb;for(const _0x524760 of this[_0x1a98('0x48')])if(_0x524760['matchingCallback'](_0x2f08b6)){_0x5c01fb=_0x524760['label'];break;}return _0x5c01fb||(_0x5c01fb=this['_itemLabels'][_0x1a98('0x9')](_0x2f08b6['name'])),_0x5c01fb?_0x5c01fb(_0x2b8834):0x1!==_0x2b8834?_0x2b8834+'\x20'+_0x2f08b6['name']+'s':''+_0x2f08b6[_0x1a98('0xb')];}[_0x1a98('0x19')](_0x297fc1,_0x440f4b){const _0x53604a=_0x440f4b['getFirstRange']()[_0x1a98('0x38')](),_0x1a20e5='insertion'==_0x440f4b[_0x1a98('0x21')]?_0x1a98('0xd'):_0x1a98('0xc');for(const _0x3b3f8f of _0x53604a){const _0x365fb2=_0x3b3f8f[_0x1a98('0x39')],_0x547839=_0x297fc1[_0x297fc1[_0x1a98('0x20')]-0x1];if(_0x365fb2['is'](_0x1a98('0x42')))_0x547839&&_0x547839[_0x1a98('0x21')][_0x1a98('0x30')]('Container')>-0x1&&_0x297fc1[_0x1a98('0x10')](),_0x547839&&_0x1a98('0x47')==_0x547839['type']?_0x547839[_0x1a20e5]+=_0x365fb2[_0x1a98('0x33')]:_0x297fc1[_0x1a98('0x25')]({'type':_0x1a98('0x47'),'add':_0x1a98('0xd')==_0x1a20e5?_0x365fb2['data']:'','remove':'remove'==_0x1a20e5?_0x365fb2[_0x1a98('0x33')]:''});else{if(this[_0x1a98('0x1e')][_0x1a98('0xa')](_0x365fb2)){const _0x1d958b=_0x365fb2;if(_0x547839&&_0x547839['type'][_0x1a98('0x30')](_0x1a98('0x2b'))>-0x1&&_0x297fc1['pop'](),'elementEnd'==_0x3b3f8f['type'])continue;_0x547839&&_0x547839[_0x1a98('0x21')]==_0x1a20e5+_0x1a98('0x3')&&_0x547839[_0x1a98('0x49')][_0x1a98('0xb')]==_0x1d958b[_0x1a98('0xb')]?_0x547839[_0x1a98('0x28')]++:_0x297fc1[_0x1a98('0x25')]({'type':_0x1a20e5+_0x1a98('0x3'),'element':_0x1d958b,'quantity':0x1}),_0x53604a[_0x1a98('0x1b')](_0x3c75a1=>!(_0x1a98('0x27')==_0x3c75a1[_0x1a98('0x21')]&&_0x3c75a1[_0x1a98('0x39')]==_0x365fb2));}else{if(this['_schema'][_0x1a98('0x1')](_0x365fb2,_0x1a98('0x2f'))||_0x365fb2['is']('element',_0x1a98('0x5'))){const _0x49c2c0=_0x365fb2;if(_0x1a98('0xd')==_0x1a20e5&&_0x1a98('0x4a')==_0x3b3f8f[_0x1a98('0x21')]||_0x1a98('0xc')==_0x1a20e5&&_0x1a98('0x27')==_0x3b3f8f[_0x1a98('0x21')])continue;if(_0x547839&&-0x1==_0x547839[_0x1a98('0x21')][_0x1a98('0x30')]('Container')){_0x1a98('0x47')==_0x547839[_0x1a98('0x21')]&&(_0x547839[_0x1a20e5]+='\x0a');continue;}let _0x4b554b;if(_0x4b554b=_0x1a98('0xd')==_0x1a20e5?_0x49c2c0[_0x1a98('0x45')]&&!this[_0x1a98('0x1e')][_0x1a98('0xa')](_0x49c2c0[_0x1a98('0x45')])?_0x49c2c0[_0x1a98('0x45')]:null:_0x49c2c0[_0x1a98('0x4')]&&!this[_0x1a98('0x1e')][_0x1a98('0xa')](_0x49c2c0['previousSibling'])?_0x49c2c0['previousSibling']:null,_0x49c2c0[_0x1a98('0x35')]||_0x4b554b&&_0x4b554b[_0x1a98('0x35')]){const _0x4a5e01=_0x4b554b&&_0x4b554b['isEmpty']?_0x4b554b:_0x49c2c0;_0x547839&&_0x547839[_0x1a98('0x21')]==_0x1a20e5+_0x1a98('0x11')&&_0x547839[_0x1a98('0x49')][_0x1a98('0xb')]==_0x4a5e01[_0x1a98('0xb')]?_0x547839[_0x1a98('0x28')]++:_0x297fc1[_0x1a98('0x25')]({'type':_0x1a20e5+_0x1a98('0x11'),'element':_0x4a5e01,'quantity':0x1});}else _0x297fc1['push']({'type':_0x1a20e5+_0x1a98('0x2b'),'element':_0x49c2c0});}}}}}[_0x1a98('0xe')](_0x17fada){const _0xb36e46=this[_0x1a98('0x29')],_0x12db54=[],_0x19cbc9=[],_0x34403b=[];for(const _0x367ba4 of _0x17fada)switch(_0x367ba4[_0x1a98('0x21')]){case _0x1a98('0x47'):if(_0x367ba4[_0x1a98('0xd')]=_0x367ba4[_0x1a98('0xd')][_0x1a98('0x2')](/(\S)\u000A+(\S)/g,_0x1a98('0x16'))[_0x1a98('0x2')](/\u000A/g,''),_0x367ba4['remove']=_0x367ba4['remove'][_0x1a98('0x2')](/(\S)\u000A+(\S)/g,_0x1a98('0x16'))['replace'](/\u000A/g,''),''!=_0x367ba4['add']&&''!=_0x367ba4[_0x1a98('0xc')]){_0x12db54['push']({'type':_0x1a98('0x2'),'content':_0x36844c(_0xb36e46,_0x1a98('0x0'),['\x22'+_0x367ba4[_0x1a98('0xc')]+'\x22','\x22'+_0x367ba4[_0x1a98('0xd')]+'\x22'])});continue;}if(null!=_0x367ba4['add']['match'](/^ +$/)){_0x12db54['push']({'type':_0x1a98('0x17'),'content':_0x36844c(_0xb36e46,'*Insert:*\x20%0',_0x36844c(_0xb36e46,'ELEMENT_SPACE',_0x367ba4[_0x1a98('0xd')][_0x1a98('0x20')]))});continue;}if(null!=_0x367ba4[_0x1a98('0xc')][_0x1a98('0x37')](/^ +$/)){_0x12db54[_0x1a98('0x25')]({'type':'deletion','content':_0x36844c(_0xb36e46,_0x1a98('0x3c'),_0x36844c(_0xb36e46,'ELEMENT_SPACE',_0x367ba4[_0x1a98('0xc')]['length']))});continue;}if(''!=_0x367ba4['add']){_0x12db54[_0x1a98('0x25')]({'type':_0x1a98('0x17'),'content':_0x36844c(_0xb36e46,_0x1a98('0x2d'),'\x22'+_0x367ba4[_0x1a98('0xd')]+'\x22')});continue;}_0x12db54[_0x1a98('0x25')]({'type':_0x1a98('0x3b'),'content':_0x36844c(_0xb36e46,'*Remove:*\x20%0','\x22'+_0x367ba4[_0x1a98('0xc')]+'\x22')});continue;case _0x1a98('0x13'):case'addObject':_0x12db54[_0x1a98('0x25')]({'type':_0x1a98('0x17'),'content':_0x36844c(_0xb36e46,_0x1a98('0x2d'),this[_0x1a98('0x46')](_0x367ba4['element'],_0x367ba4[_0x1a98('0x28')]))});continue;case'removeEmptyContainer':case _0x1a98('0x3d'):_0x12db54[_0x1a98('0x25')]({'type':_0x1a98('0x3b'),'content':_0x36844c(_0xb36e46,_0x1a98('0x3c'),this[_0x1a98('0x46')](_0x367ba4[_0x1a98('0x49')],_0x367ba4[_0x1a98('0x28')]))});continue;case _0x1a98('0x6'):_0x12db54[_0x1a98('0x25')]({'type':_0x1a98('0x17'),'content':_0x36844c(_0xb36e46,'*Split:*\x20%0',this[_0x1a98('0x46')](_0x367ba4['element'],_0x367ba4['quantity']))});continue;case'removeContainer':_0x12db54[_0x1a98('0x25')]({'type':_0x1a98('0x3b'),'content':_0x36844c(_0xb36e46,_0x1a98('0x2c'),this[_0x1a98('0x46')](_0x367ba4[_0x1a98('0x49')],_0x367ba4[_0x1a98('0x28')]))});continue;case _0x1a98('0x3a'):_0x19cbc9[_0x1a98('0x25')](_0x367ba4[_0x1a98('0x1f')]);continue;case _0x1a98('0xf'):_0x34403b[_0x1a98('0x25')](_0x367ba4[_0x1a98('0x1f')]);continue;default:_0x12db54[_0x1a98('0x25')](_0x367ba4);}if(_0x19cbc9[_0x1a98('0x20')]){const _0x2fac0e=_0x19cbc9[_0x1a98('0x12')](_0x5b2c65=>this[_0x1a98('0x1d')][_0x1a98('0x3e')](_0x5b2c65)?this['_attributeLabels'][_0x1a98('0x9')](_0x5b2c65):_0x5b2c65)[_0x1a98('0x40')](',\x20');_0x12db54[_0x1a98('0x25')]({'type':_0x1a98('0x41'),'content':_0x36844c(this[_0x1a98('0x29')],_0x1a98('0x14'),_0x2fac0e)});}if(_0x34403b['length']){const _0x1f22ac=_0x34403b['map'](_0x4a5ca2=>this[_0x1a98('0x1d')][_0x1a98('0x3e')](_0x4a5ca2)?this[_0x1a98('0x1d')][_0x1a98('0x9')](_0x4a5ca2):_0x4a5ca2)[_0x1a98('0x40')](',\x20');_0x12db54[_0x1a98('0x25')]({'type':_0x1a98('0x41'),'content':_0x36844c(this[_0x1a98('0x29')],_0x1a98('0x7'),_0x1f22ac)});}return _0x12db54;}['_handleCustomCallbackDescription'](_0x21cb26){for(const _0x6b8390 of this[_0x1a98('0x22')]){const _0x305fd3=_0x6b8390(_0x21cb26);if(_0x305fd3&&_0x1a98('0x21')in _0x305fd3)return _0x305fd3;}}['_handleAttributeSuggestionDescription'](_0x4e0569,_0x4c8e40){const _0xed2a30=_0x4c8e40['data'],_0x49158c=void 0x0===_0xed2a30[_0x1a98('0x1c')]?_0x1a98('0xf'):'addFormat';_0x4e0569[_0x1a98('0x25')]({'type':_0x49158c,'key':_0xed2a30[_0x1a98('0x1f')]});}[_0x1a98('0x3f')](_0x7dcc8e,_0x3b61be){_0x7dcc8e[_0x1a98('0x25')]({'type':_0x1a98('0x41'),'content':_0x36844c(this[_0x1a98('0x29')],_0x1a98('0x23'),this[_0x1a98('0x46')](_0x3b61be[_0x1a98('0x43')]()[_0x1a98('0x15')][_0x1a98('0x26')],0x1))});}[_0x1a98('0x36')](_0x1fede3,_0xd121ea,_0x4080fc){if(this[_0x1a98('0x19')](_0x1fede3,_0xd121ea),_0x4080fc&&_0x4080fc[_0x1a98('0x43')]()&&!_0xd121ea[_0x1a98('0x43')]()[_0x1a98('0x8')][_0x1a98('0x1a')](_0x4080fc[_0x1a98('0x43')]()[_0x1a98('0x15')])){const _0x535dff=_0x1fede3[_0x1fede3[_0x1a98('0x20')]-0x1],_0x4ab2c5='insertion'==_0xd121ea[_0x1a98('0x21')]?_0x1a98('0xd'):_0x1a98('0xc');_0x535dff&&'text'==_0x535dff[_0x1a98('0x21')]&&(_0x535dff[_0x4ab2c5]+='\x0a');}}}
23
+ const _0x3f89=['isEqual','quantity','removeEmptyContainer','push','$text','getDescriptions','remove','_handleRenameSuggestionDescription','getItemLabel','skip','EmptyContainer','nextSibling','_addDescriptionItems','element','REPLACE_TEXT','_handleInsertRemoveSuggestionDescription','match','softBreak','format','elementEnd','*Split:*\x20%0','elementStart','name','*Remove\x20format:*\x20%0','deletion','indexOf','type','normal','pop','Container','data','_handleCustomCallbackDescription','map','add','_handleAttributeSuggestionDescription','registerAttributeLabel','replace','_customCallbacks','item','isObject','join','registerElementLabel','get','end','previousSibling','addContainer','label','_resolveDescriptionItems','key','attribute','_locale','start','removeContainer','isEmpty','ELEMENT_SPACE','subType','function','_itemLabels','*Insert:*\x20%0','getWalker','removeFormat','_schema','addEmptyContainer','$1\x20$2','text','$textProxy','_attributeLabels','nodeAfter','registerDescriptionCallback','has','set','Object','getFirstRange','length','_itemLabelsCallbacks','insertion','removeObject','*Remove:*\x20%0'];(function(_0x5bd754,_0x3f89bd){const _0x99cf62=function(_0x515699){while(--_0x515699){_0x5bd754['push'](_0x5bd754['shift']());}};_0x99cf62(++_0x3f89bd);}(_0x3f89,0x1e6));const _0x99cf=function(_0x5bd754,_0x3f89bd){_0x5bd754=_0x5bd754-0x0;let _0x99cf62=_0x3f89[_0x5bd754];return _0x99cf62;};import{getTranslation as _0x93902c}from'./utils/common-translations.js';import{priorities as _0x40c40b,insertToPriorityArray as _0x54e3d2}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x3c7776}from'./trackchangesediting.js';export default class f{constructor(_0x1e8e42,_0x415142){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this[_0x99cf('0x38')]=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1e8e42,this[_0x99cf('0x20')]=_0x415142;}[_0x99cf('0x41')](_0x31cc22){const _0x1924d9=[],_0x34738c=new Set(),_0x1b58ed=new Set();for(let _0x12b1db=0x0;_0x12b1db<_0x31cc22[_0x99cf('0x37')];_0x12b1db++){const _0x1e7930=_0x31cc22[_0x12b1db];if(!_0x1e7930['isInContent'])continue;const _0x26ce0e=this['_handleCustomCallbackDescription'](_0x1e7930);if(_0x26ce0e){if(null!=_0x1e7930['subType']){if(_0x34738c[_0x99cf('0x33')](_0x1e7930[_0x99cf('0x25')]))continue;_0x34738c['add'](_0x1e7930['subType']);}_0x1924d9[_0x99cf('0x3f')](_0x26ce0e);}else{if(_0x99cf('0x1f')!=_0x1e7930[_0x99cf('0x8')])_0x99cf('0x39')!=_0x1e7930['type']&&_0x99cf('0x6')!=_0x1e7930[_0x99cf('0x8')]||this[_0x99cf('0x4b')](_0x1924d9,_0x1e7930,_0x31cc22[_0x12b1db+0x1]);else{const _0x3c53cd=_0x1e7930[_0x99cf('0xc')][_0x99cf('0x1e')];if(_0x1b58ed[_0x99cf('0x33')](_0x3c53cd))continue;_0x1b58ed[_0x99cf('0xf')](_0x1e7930['data']['key']),_0x3c53cd==_0x3c7776?this[_0x99cf('0x43')](_0x1924d9,_0x1e7930):this[_0x99cf('0x10')](_0x1924d9,_0x1e7930);}}}return this[_0x99cf('0x1d')](_0x1924d9);}[_0x99cf('0x32')](_0x392fce){this[_0x99cf('0x13')][_0x99cf('0x3f')](_0x392fce);}[_0x99cf('0x17')](_0x409ef5,_0x540762,_0x357b0f=_0x40c40b[_0x99cf('0x9')]){_0x99cf('0x26')==typeof _0x409ef5?_0x54e3d2(this[_0x99cf('0x38')],{'matchingCallback':_0x409ef5,'label':_0x540762,'priority':_0x357b0f}):this['_itemLabels']['set'](_0x409ef5,_0x540762);}[_0x99cf('0x11')](_0x5b00f6,_0x247676){this[_0x99cf('0x30')][_0x99cf('0x34')](_0x5b00f6,_0x247676);}[_0x99cf('0x44')](_0x57fffb,_0x3a6ab6=0x1){let _0x51c0d9;for(const _0xb81998 of this[_0x99cf('0x38')])if(_0xb81998['matchingCallback'](_0x57fffb)){_0x51c0d9=_0xb81998[_0x99cf('0x1c')];break;}return _0x51c0d9||(_0x51c0d9=this[_0x99cf('0x27')][_0x99cf('0x18')](_0x57fffb[_0x99cf('0x4')])),_0x51c0d9?_0x51c0d9(_0x3a6ab6):0x1!==_0x3a6ab6?_0x3a6ab6+'\x20'+_0x57fffb[_0x99cf('0x4')]+'s':''+_0x57fffb[_0x99cf('0x4')];}[_0x99cf('0x48')](_0x1f4579,_0x12ea20){const _0x5a9774=_0x12ea20[_0x99cf('0x36')]()[_0x99cf('0x29')](),_0x2be546=_0x99cf('0x39')==_0x12ea20[_0x99cf('0x8')]?_0x99cf('0xf'):'remove';for(const _0x39983f of _0x5a9774){const _0x5c3ca8=_0x39983f['item'],_0x16cbfc=_0x1f4579[_0x1f4579[_0x99cf('0x37')]-0x1];if(_0x5c3ca8['is'](_0x99cf('0x2f')))_0x16cbfc&&_0x16cbfc[_0x99cf('0x8')]['indexOf'](_0x99cf('0xb'))>-0x1&&_0x1f4579['pop'](),_0x16cbfc&&'text'==_0x16cbfc[_0x99cf('0x8')]?_0x16cbfc[_0x2be546]+=_0x5c3ca8[_0x99cf('0xc')]:_0x1f4579[_0x99cf('0x3f')]({'type':_0x99cf('0x2e'),'add':_0x99cf('0xf')==_0x2be546?_0x5c3ca8[_0x99cf('0xc')]:'','remove':_0x99cf('0x42')==_0x2be546?_0x5c3ca8[_0x99cf('0xc')]:''});else{if(this[_0x99cf('0x2b')][_0x99cf('0x15')](_0x5c3ca8)){const _0x5d0ada=_0x5c3ca8;if(_0x16cbfc&&_0x16cbfc[_0x99cf('0x8')][_0x99cf('0x7')](_0x99cf('0xb'))>-0x1&&_0x1f4579[_0x99cf('0xa')](),'elementEnd'==_0x39983f[_0x99cf('0x8')])continue;_0x16cbfc&&_0x16cbfc[_0x99cf('0x8')]==_0x2be546+_0x99cf('0x35')&&_0x16cbfc[_0x99cf('0x49')][_0x99cf('0x4')]==_0x5d0ada[_0x99cf('0x4')]?_0x16cbfc[_0x99cf('0x3d')]++:_0x1f4579[_0x99cf('0x3f')]({'type':_0x2be546+_0x99cf('0x35'),'element':_0x5d0ada,'quantity':0x1}),_0x5a9774[_0x99cf('0x45')](_0x596284=>!(_0x99cf('0x1')==_0x596284[_0x99cf('0x8')]&&_0x596284[_0x99cf('0x14')]==_0x5c3ca8));}else{if(this['_schema']['checkChild'](_0x5c3ca8,_0x99cf('0x40'))||_0x5c3ca8['is'](_0x99cf('0x49'),_0x99cf('0x4d'))){const _0x19a263=_0x5c3ca8;if(_0x99cf('0xf')==_0x2be546&&_0x99cf('0x3')==_0x39983f[_0x99cf('0x8')]||'remove'==_0x2be546&&_0x99cf('0x1')==_0x39983f[_0x99cf('0x8')])continue;if(_0x16cbfc&&-0x1==_0x16cbfc[_0x99cf('0x8')]['indexOf']('Container')){_0x99cf('0x2e')==_0x16cbfc['type']&&(_0x16cbfc[_0x2be546]+='\x0a');continue;}let _0x46bbcd;if(_0x46bbcd=_0x99cf('0xf')==_0x2be546?_0x19a263['nextSibling']&&!this[_0x99cf('0x2b')][_0x99cf('0x15')](_0x19a263[_0x99cf('0x47')])?_0x19a263['nextSibling']:null:_0x19a263['previousSibling']&&!this['_schema']['isObject'](_0x19a263[_0x99cf('0x1a')])?_0x19a263[_0x99cf('0x1a')]:null,_0x19a263[_0x99cf('0x23')]||_0x46bbcd&&_0x46bbcd[_0x99cf('0x23')]){const _0xfdf75e=_0x46bbcd&&_0x46bbcd[_0x99cf('0x23')]?_0x46bbcd:_0x19a263;_0x16cbfc&&_0x16cbfc[_0x99cf('0x8')]==_0x2be546+_0x99cf('0x46')&&_0x16cbfc['element'][_0x99cf('0x4')]==_0xfdf75e['name']?_0x16cbfc['quantity']++:_0x1f4579[_0x99cf('0x3f')]({'type':_0x2be546+_0x99cf('0x46'),'element':_0xfdf75e,'quantity':0x1});}else _0x1f4579[_0x99cf('0x3f')]({'type':_0x2be546+'Container','element':_0x19a263});}}}}}[_0x99cf('0x1d')](_0x160e20){const _0x43b2a2=this['_locale'],_0x3749ac=[],_0x369144=[],_0x423ff6=[];for(const _0x5666ee of _0x160e20)switch(_0x5666ee[_0x99cf('0x8')]){case'text':if(_0x5666ee[_0x99cf('0xf')]=_0x5666ee[_0x99cf('0xf')][_0x99cf('0x12')](/(\S)\u000A+(\S)/g,_0x99cf('0x2d'))['replace'](/\u000A/g,''),_0x5666ee[_0x99cf('0x42')]=_0x5666ee[_0x99cf('0x42')][_0x99cf('0x12')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x99cf('0x12')](/\u000A/g,''),''!=_0x5666ee['add']&&''!=_0x5666ee[_0x99cf('0x42')]){_0x3749ac['push']({'type':_0x99cf('0x12'),'content':_0x93902c(_0x43b2a2,_0x99cf('0x4a'),['\x22'+_0x5666ee[_0x99cf('0x42')]+'\x22','\x22'+_0x5666ee[_0x99cf('0xf')]+'\x22'])});continue;}if(null!=_0x5666ee[_0x99cf('0xf')][_0x99cf('0x4c')](/^ +$/)){_0x3749ac[_0x99cf('0x3f')]({'type':_0x99cf('0x39'),'content':_0x93902c(_0x43b2a2,'*Insert:*\x20%0',_0x93902c(_0x43b2a2,'ELEMENT_SPACE',_0x5666ee['add'][_0x99cf('0x37')]))});continue;}if(null!=_0x5666ee[_0x99cf('0x42')]['match'](/^ +$/)){_0x3749ac[_0x99cf('0x3f')]({'type':'deletion','content':_0x93902c(_0x43b2a2,_0x99cf('0x3b'),_0x93902c(_0x43b2a2,_0x99cf('0x24'),_0x5666ee['remove'][_0x99cf('0x37')]))});continue;}if(''!=_0x5666ee[_0x99cf('0xf')]){_0x3749ac[_0x99cf('0x3f')]({'type':'insertion','content':_0x93902c(_0x43b2a2,_0x99cf('0x28'),'\x22'+_0x5666ee[_0x99cf('0xf')]+'\x22')});continue;}_0x3749ac[_0x99cf('0x3f')]({'type':'deletion','content':_0x93902c(_0x43b2a2,_0x99cf('0x3b'),'\x22'+_0x5666ee[_0x99cf('0x42')]+'\x22')});continue;case _0x99cf('0x2c'):case'addObject':_0x3749ac[_0x99cf('0x3f')]({'type':'insertion','content':_0x93902c(_0x43b2a2,_0x99cf('0x28'),this[_0x99cf('0x44')](_0x5666ee['element'],_0x5666ee[_0x99cf('0x3d')]))});continue;case _0x99cf('0x3e'):case _0x99cf('0x3a'):_0x3749ac[_0x99cf('0x3f')]({'type':_0x99cf('0x6'),'content':_0x93902c(_0x43b2a2,_0x99cf('0x3b'),this[_0x99cf('0x44')](_0x5666ee[_0x99cf('0x49')],_0x5666ee['quantity']))});continue;case _0x99cf('0x1b'):_0x3749ac[_0x99cf('0x3f')]({'type':_0x99cf('0x39'),'content':_0x93902c(_0x43b2a2,_0x99cf('0x2'),this['getItemLabel'](_0x5666ee['element'],_0x5666ee[_0x99cf('0x3d')]))});continue;case _0x99cf('0x22'):_0x3749ac[_0x99cf('0x3f')]({'type':'deletion','content':_0x93902c(_0x43b2a2,'*Merge:*\x20%0',this[_0x99cf('0x44')](_0x5666ee[_0x99cf('0x49')],_0x5666ee[_0x99cf('0x3d')]))});continue;case'addFormat':_0x369144['push'](_0x5666ee[_0x99cf('0x1e')]);continue;case _0x99cf('0x2a'):_0x423ff6['push'](_0x5666ee[_0x99cf('0x1e')]);continue;default:_0x3749ac['push'](_0x5666ee);}if(_0x369144['length']){const _0x1f2e7f=_0x369144[_0x99cf('0xe')](_0x13cbde=>this[_0x99cf('0x30')][_0x99cf('0x33')](_0x13cbde)?this[_0x99cf('0x30')][_0x99cf('0x18')](_0x13cbde):_0x13cbde)[_0x99cf('0x16')](',\x20');_0x3749ac[_0x99cf('0x3f')]({'type':_0x99cf('0x0'),'content':_0x93902c(this['_locale'],'*Set\x20format:*\x20%0',_0x1f2e7f)});}if(_0x423ff6[_0x99cf('0x37')]){const _0x1c2f0e=_0x423ff6['map'](_0x42ffab=>this[_0x99cf('0x30')][_0x99cf('0x33')](_0x42ffab)?this[_0x99cf('0x30')][_0x99cf('0x18')](_0x42ffab):_0x42ffab)['join'](',\x20');_0x3749ac[_0x99cf('0x3f')]({'type':_0x99cf('0x0'),'content':_0x93902c(this[_0x99cf('0x20')],_0x99cf('0x5'),_0x1c2f0e)});}return _0x3749ac;}[_0x99cf('0xd')](_0x2c6823){for(const _0x3a2f0f of this[_0x99cf('0x13')]){const _0x4ab286=_0x3a2f0f(_0x2c6823);if(_0x4ab286&&'type'in _0x4ab286)return _0x4ab286;}}[_0x99cf('0x10')](_0x41750d,_0x44c79d){const _0x3c5745=_0x44c79d['data'],_0x1da75d=void 0x0===_0x3c5745['newValue']?'removeFormat':'addFormat';_0x41750d['push']({'type':_0x1da75d,'key':_0x3c5745['key']});}[_0x99cf('0x43')](_0x577b80,_0x326405){_0x577b80[_0x99cf('0x3f')]({'type':_0x99cf('0x0'),'content':_0x93902c(this[_0x99cf('0x20')],'*Change\x20to:*\x20%0',this[_0x99cf('0x44')](_0x326405[_0x99cf('0x36')]()[_0x99cf('0x21')][_0x99cf('0x31')],0x1))});}[_0x99cf('0x4b')](_0x1ce7cb,_0x2e6f45,_0x24a54a){if(this[_0x99cf('0x48')](_0x1ce7cb,_0x2e6f45),_0x24a54a&&_0x24a54a['getFirstRange']()&&!_0x2e6f45[_0x99cf('0x36')]()[_0x99cf('0x19')][_0x99cf('0x3c')](_0x24a54a['getFirstRange']()['start'])){const _0x1cec1a=_0x1ce7cb[_0x1ce7cb['length']-0x1],_0x56aea7=_0x99cf('0x39')==_0x2e6f45[_0x99cf('0x8')]?_0x99cf('0xf'):_0x99cf('0x42');_0x1cec1a&&_0x99cf('0x2e')==_0x1cec1a[_0x99cf('0x8')]&&(_0x1cec1a[_0x56aea7]+='\x0a');}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x10d3=['addSuggestion','pluginName','adapter','getSuggestion','Comments','requires','editor','plugins','get','TrackChanges'];(function(_0x8e0c64,_0x10d366){var _0x432b69=function(_0x33e4ce){while(--_0x33e4ce){_0x8e0c64['push'](_0x8e0c64['shift']());}};_0x432b69(++_0x10d366);}(_0x10d3,0x89));var _0x432b=function(_0x8e0c64,_0x10d366){_0x8e0c64=_0x8e0c64-0x0;var _0x432b69=_0x10d3[_0x8e0c64];return _0x432b69;};import{Plugin as _0xf6531b}from'ckeditor5/src/core.js';import _0x4429c0 from'./trackchangesui.js';import _0x270d29 from'./trackchangesediting.js';import'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0xf6531b{static get[_0x432b('0x8')](){return[_0x270d29,_0x4429c0,_0x432b('0x7')];}static get[_0x432b('0x4')](){return _0x432b('0x2');}set[_0x432b('0x5')](_0x310922){this['editor']['plugins'][_0x432b('0x1')](_0x270d29)['adapter']=_0x310922;}get['adapter'](){return this[_0x432b('0x9')][_0x432b('0x0')][_0x432b('0x1')](_0x270d29)[_0x432b('0x5')];}[_0x432b('0x3')](_0x40aefc){return this[_0x432b('0x9')]['plugins'][_0x432b('0x1')](_0x270d29)['addSuggestionData'](_0x40aefc);}['getSuggestions']({skipNotAttached:_0x1f3aa7=!0x1,toJSON:_0x32e76c=!0x1}={}){return this[_0x432b('0x9')][_0x432b('0x0')]['get'](_0x270d29)['getSuggestions']({'skipNotAttached':_0x1f3aa7,'toJSON':_0x32e76c});}['getSuggestion'](_0x315854){return this[_0x432b('0x9')][_0x432b('0x0')]['get'](_0x270d29)[_0x432b('0x6')](_0x315854);}}
23
+ var _0x21ee=['plugins','Comments','getSuggestions','requires','editor','adapter','getSuggestion','get'];(function(_0x1899ea,_0x21eeb5){var _0x5d620d=function(_0x55c24f){while(--_0x55c24f){_0x1899ea['push'](_0x1899ea['shift']());}};_0x5d620d(++_0x21eeb5);}(_0x21ee,0xcb));var _0x5d62=function(_0x1899ea,_0x21eeb5){_0x1899ea=_0x1899ea-0x0;var _0x5d620d=_0x21ee[_0x1899ea];return _0x5d620d;};import{Plugin as _0x1b46d7}from'ckeditor5/src/core.js';import _0x5d1a44 from'./trackchangesui.js';import _0x43750b from'./trackchangesediting.js';import'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0x1b46d7{static get[_0x5d62('0x0')](){return[_0x43750b,_0x5d1a44,_0x5d62('0x6')];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3224c8){this[_0x5d62('0x1')][_0x5d62('0x5')][_0x5d62('0x4')](_0x43750b)[_0x5d62('0x2')]=_0x3224c8;}get[_0x5d62('0x2')](){return this[_0x5d62('0x1')][_0x5d62('0x5')][_0x5d62('0x4')](_0x43750b)[_0x5d62('0x2')];}['addSuggestion'](_0x11cbc8){return this[_0x5d62('0x1')][_0x5d62('0x5')][_0x5d62('0x4')](_0x43750b)['addSuggestionData'](_0x11cbc8);}[_0x5d62('0x7')]({skipNotAttached:_0x5ead7e=!0x1,toJSON:_0x1a3d88=!0x1}={}){return this[_0x5d62('0x1')]['plugins'][_0x5d62('0x4')](_0x43750b)[_0x5d62('0x7')]({'skipNotAttached':_0x5ead7e,'toJSON':_0x1a3d88});}[_0x5d62('0x3')](_0x49f604){return this['editor'][_0x5d62('0x5')][_0x5d62('0x4')](_0x43750b)['getSuggestion'](_0x49f604);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcdab=['addSuggestionData','push','set','requires','TrackChangesData','execute','map','init','getSuggestions','acceptAllSuggestions','TrackChangesEditing','CommentsRepository','trackChangesData','create','getDataWithDiscardedSuggestions','plugins','result','data','name','document','getDataWithAcceptedSuggestions','end','appendChild','addUser','users','config','getRootsAttributes','model','getFullData','getUser','pluginName','createDocumentFragment','track-changes-data-invalid-editor-creator','TrackChangesDataGetter','editor','getRootNames','useAnonymousUser','editorCreator','discardAllSuggestions','div','constructor','function','get','define','reduce','_adapter','Users','createElement','destroy'];(function(_0x495408,_0xcdab62){const _0x10b578=function(_0x10d5e4){while(--_0x10d5e4){_0x495408['push'](_0x495408['shift']());}};_0x10b578(++_0xcdab62);}(_0xcdab,0x77));const _0x10b5=function(_0x495408,_0xcdab62){_0x495408=_0x495408-0x0;let _0x10b578=_0xcdab[_0x495408];return _0x10b578;};import{Plugin as _0x5435ab}from'ckeditor5/src/core.js';import{CKEditorError as _0x3e2b11}from'ckeditor5/src/utils.js';import _0x25fb7b from'./trackchangesediting.js';import{sanitizeEditorConfig as _0x241e18}from'ckeditor5-collaboration/src/collaboration-core.js';const T=['Pagination'];export default class P extends _0x5435ab{static get[_0x10b5('0x1f')](){return[_0x25fb7b];}static get[_0x10b5('0x9')](){return _0x10b5('0x20');}[_0x10b5('0x23')](){const _0x1c8506=this[_0x10b5('0xd')];if(_0x1c8506[_0x10b5('0x4')][_0x10b5('0x16')]('trackChangesData.editorCreator',_0xe8a7a2=>{const _0x5c8bae=_0x1c8506[_0x10b5('0x6')][_0x10b5('0x2f')]['getRootNames']()[_0x10b5('0x17')]((_0x2d5f2f,_0x495cb4)=>(_0x2d5f2f[_0x495cb4]='',_0x2d5f2f),{});return _0x1c8506[_0x10b5('0x13')][_0x10b5('0x29')](_0x5c8bae,_0xe8a7a2);}),_0x10b5('0x14')!=typeof _0x1c8506[_0x10b5('0x4')][_0x10b5('0x15')]('trackChangesData')[_0x10b5('0x10')])throw new _0x3e2b11(_0x10b5('0xb'));}[_0x10b5('0x30')](_0x3b0d6d){return N(this['editor'],!0x0,_0x3b0d6d);}[_0x10b5('0x2a')](_0x3fd62c){return N(this['editor'],!0x1,_0x3fd62c);}}class D extends _0x5435ab{static get['pluginName'](){return _0x10b5('0xc');}constructor(_0x12bddf){super(_0x12bddf),this[_0x10b5('0x2c')]=_0x10b5('0x0');}[_0x10b5('0x23')](){this[_0x10b5('0xd')][_0x10b5('0x2b')][_0x10b5('0x15')](_0x10b5('0x27'))[_0x10b5('0x18')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x10b5('0xd')][_0x10b5('0x2b')][_0x10b5('0x15')](_0x10b5('0x26'))['_adapter']=null;}}function v(_0x4446b6){return void 0x0!==_0x4446b6[_0x10b5('0x5')];}async function N(_0x156998,_0x4f5b31,_0x3d96d8){const _0x5cb586=_0x241e18(_0x156998,T);_0x5cb586[_0x10b5('0x2b')][_0x10b5('0x1d')](_0x25fb7b,D),_0x5cb586['rootsAttributes']=v(_0x156998)?_0x156998[_0x10b5('0x5')]():void 0x0;const _0x2eab00=document[_0x10b5('0xa')](),_0x14a949=_0x156998[_0x10b5('0x4')]['get'](_0x10b5('0x28'))[_0x10b5('0x10')],_0x5f5173=await _0x14a949(_0x5cb586,()=>function(_0x4029a4){const _0x110d4c=document[_0x10b5('0x1a')](_0x10b5('0x12'));return _0x4029a4[_0x10b5('0x1')](_0x110d4c),_0x110d4c;}(_0x2eab00));!function(_0x5217c0,_0xc7a1ee){const _0x47143e=_0x5217c0['model'][_0x10b5('0x2f')][_0x10b5('0xe')]()['reduce']((_0x3e9356,_0x4546a2)=>(_0x3e9356[_0x4546a2]=_0x5217c0[_0x10b5('0x2d')][_0x10b5('0x15')]({'rootName':_0x4546a2}),_0x3e9356),{}),_0x311b09=_0x5217c0[_0x10b5('0x2b')]['get'](_0x10b5('0x19'))[_0x10b5('0x3')][_0x10b5('0x22')](_0x43e498=>({'id':_0x43e498['id'],'name':_0x43e498[_0x10b5('0x2e')]})),_0x29652=_0x5217c0['plugins'][_0x10b5('0x15')](_0x10b5('0x26'))[_0x10b5('0x24')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x6fec9f=_0xc7a1ee['plugins']['get'](_0x10b5('0x19')),_0x4c3a57=_0xc7a1ee[_0x10b5('0x2b')]['get'](_0x10b5('0x26'));for(const _0xc93944 of _0x311b09)_0x6fec9f[_0x10b5('0x8')](_0xc93944['id'])||_0x6fec9f[_0x10b5('0x2')](_0xc93944);_0x6fec9f['me']||_0x6fec9f[_0x10b5('0xf')]();for(const _0x3faede of _0x29652)_0x4c3a57[_0x10b5('0x1c')](_0x3faede);_0xc7a1ee[_0x10b5('0x2d')][_0x10b5('0x1e')](_0x47143e);}(_0x156998,_0x5f5173),_0x5f5173[_0x10b5('0x21')](_0x4f5b31?_0x10b5('0x25'):_0x10b5('0x11'));const _0x23ad36=v(_0x5f5173)?_0x5f5173[_0x10b5('0x7')](_0x3d96d8):_0x5f5173[_0x10b5('0x2d')][_0x10b5('0x15')](_0x3d96d8);return await _0x5f5173[_0x10b5('0x1b')](),_0x23ad36;}
23
+ const _0x4d4e=['getRootsAttributes','name','createDocumentFragment','get','acceptAllSuggestions','data','CommentsRepository','addSuggestionData','addUser','plugins','result','getDataWithDiscardedSuggestions','reduce','getRootNames','editor','function','TrackChangesData','div','destroy','config','end','create','model','set','discardAllSuggestions','_adapter','Pagination','map','users','define','getUser','TrackChangesEditing','appendChild','rootsAttributes','editorCreator','trackChangesData','document','createElement','push','Users','trackChangesData.editorCreator','constructor','init','getSuggestions'];(function(_0x2edbb9,_0x4d4e2c){const _0x3c05ed=function(_0x301abe){while(--_0x301abe){_0x2edbb9['push'](_0x2edbb9['shift']());}};_0x3c05ed(++_0x4d4e2c);}(_0x4d4e,0x129));const _0x3c05=function(_0x2edbb9,_0x4d4e2c){_0x2edbb9=_0x2edbb9-0x0;let _0x3c05ed=_0x4d4e[_0x2edbb9];return _0x3c05ed;};import{Plugin as _0x244113}from'ckeditor5/src/core.js';import{CKEditorError as _0x1d393c}from'ckeditor5/src/utils.js';import _0x3cc579 from'./trackchangesediting.js';import{sanitizeEditorConfig as _0x56d37b}from'ckeditor5-collaboration/src/collaboration-core.js';const T=[_0x3c05('0x25')];export default class P extends _0x244113{static get['requires'](){return[_0x3cc579];}static get['pluginName'](){return _0x3c05('0x1b');}['init'](){const _0x35529c=this[_0x3c05('0x19')];if(_0x35529c[_0x3c05('0x1e')][_0x3c05('0x28')](_0x3c05('0x7'),_0x2a23d9=>{const _0x1110a0=_0x35529c[_0x3c05('0x21')][_0x3c05('0x3')]['getRootNames']()[_0x3c05('0x17')]((_0x1d30b4,_0x41a4fa)=>(_0x1d30b4[_0x41a4fa]='',_0x1d30b4),{});return _0x35529c[_0x3c05('0x8')][_0x3c05('0x20')](_0x1110a0,_0x2a23d9);}),_0x3c05('0x1a')!=typeof _0x35529c[_0x3c05('0x1e')][_0x3c05('0xe')]('trackChangesData')[_0x3c05('0x1')])throw new _0x1d393c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5e7807){return N(this['editor'],!0x0,_0x5e7807);}[_0x3c05('0x16')](_0xc3fda0){return N(this['editor'],!0x1,_0xc3fda0);}}class D extends _0x244113{static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4f78b5){super(_0x4f78b5),this[_0x3c05('0x15')]=_0x3c05('0x1f');}[_0x3c05('0x9')](){this[_0x3c05('0x19')][_0x3c05('0x14')][_0x3c05('0xe')](_0x3c05('0x11'))[_0x3c05('0x24')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins'][_0x3c05('0xe')](_0x3c05('0x2a'))['_adapter']=null;}}function v(_0xc59569){return void 0x0!==_0xc59569[_0x3c05('0xb')];}async function N(_0x306173,_0x20196b,_0x552f5c){const _0x519d96=_0x56d37b(_0x306173,T);_0x519d96['plugins'][_0x3c05('0x5')](_0x3cc579,D),_0x519d96[_0x3c05('0x0')]=v(_0x306173)?_0x306173[_0x3c05('0xb')]():void 0x0;const _0x47a9ba=document[_0x3c05('0xd')](),_0xc6c890=_0x306173[_0x3c05('0x1e')]['get'](_0x3c05('0x2'))['editorCreator'],_0xa49248=await _0xc6c890(_0x519d96,()=>function(_0x30922c){const _0x1a428c=document[_0x3c05('0x4')](_0x3c05('0x1c'));return _0x30922c[_0x3c05('0x2b')](_0x1a428c),_0x1a428c;}(_0x47a9ba));!function(_0x9c31da,_0xa02fad){const _0x3958c5=_0x9c31da[_0x3c05('0x21')][_0x3c05('0x3')][_0x3c05('0x18')]()[_0x3c05('0x17')]((_0x29cedf,_0x34537e)=>(_0x29cedf[_0x34537e]=_0x9c31da[_0x3c05('0x10')][_0x3c05('0xe')]({'rootName':_0x34537e}),_0x29cedf),{}),_0x4149a5=_0x9c31da['plugins'][_0x3c05('0xe')](_0x3c05('0x6'))[_0x3c05('0x27')][_0x3c05('0x26')](_0x1912ad=>({'id':_0x1912ad['id'],'name':_0x1912ad[_0x3c05('0xc')]})),_0xcd32cd=_0x9c31da[_0x3c05('0x14')]['get'](_0x3c05('0x2a'))[_0x3c05('0xa')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1d6f11=_0xa02fad[_0x3c05('0x14')][_0x3c05('0xe')](_0x3c05('0x6')),_0x35a6ab=_0xa02fad[_0x3c05('0x14')][_0x3c05('0xe')]('TrackChangesEditing');for(const _0x175745 of _0x4149a5)_0x1d6f11[_0x3c05('0x29')](_0x175745['id'])||_0x1d6f11[_0x3c05('0x13')](_0x175745);_0x1d6f11['me']||_0x1d6f11['useAnonymousUser']();for(const _0x2dc1b2 of _0xcd32cd)_0x35a6ab[_0x3c05('0x12')](_0x2dc1b2);_0xa02fad[_0x3c05('0x10')][_0x3c05('0x22')](_0x3958c5);}(_0x306173,_0xa49248),_0xa49248['execute'](_0x20196b?_0x3c05('0xf'):_0x3c05('0x23'));const _0x7ff9d5=v(_0xa49248)?_0xa49248['getFullData'](_0x552f5c):_0xa49248['data'][_0x3c05('0xe')](_0x552f5c);return await _0xa49248[_0x3c05('0x1d')](),_0x7ff9d5;}