@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231012.0 → 0.0.0-nightly-20231014.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 (66) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/ckbox.js +1 -1
  13. package/src/integrations/codeblock.js +1 -1
  14. package/src/integrations/comments.js +1 -1
  15. package/src/integrations/deletecommand.js +1 -1
  16. package/src/integrations/documentlist.js +1 -1
  17. package/src/integrations/documentlistproperties.js +1 -1
  18. package/src/integrations/entercommand.js +1 -1
  19. package/src/integrations/findandreplace.d.ts +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/importword.js +1 -1
  30. package/src/integrations/indent.js +1 -1
  31. package/src/integrations/inputcommand.js +1 -1
  32. package/src/integrations/link.js +1 -1
  33. package/src/integrations/list.js +1 -1
  34. package/src/integrations/listproperties.js +1 -1
  35. package/src/integrations/mediaembed.js +1 -1
  36. package/src/integrations/mention.js +1 -1
  37. package/src/integrations/pagebreak.js +1 -1
  38. package/src/integrations/paragraph.js +1 -1
  39. package/src/integrations/removeformat.js +1 -1
  40. package/src/integrations/restrictededitingmode.js +1 -1
  41. package/src/integrations/shiftentercommand.js +1 -1
  42. package/src/integrations/standardeditingmode.js +1 -1
  43. package/src/integrations/style.js +1 -1
  44. package/src/integrations/table.js +1 -1
  45. package/src/integrations/tablecaption.js +1 -1
  46. package/src/integrations/tableclipboard.js +1 -1
  47. package/src/integrations/tablecolumnresize.js +1 -1
  48. package/src/integrations/tableheadings.js +1 -1
  49. package/src/integrations/tablemergesplit.js +1 -1
  50. package/src/integrations/tableofcontents.js +1 -1
  51. package/src/integrations/tableproperties.js +1 -1
  52. package/src/integrations/template.js +1 -1
  53. package/src/integrations/title.js +1 -1
  54. package/src/integrations/undo.js +1 -1
  55. package/src/integrations/utils.js +1 -1
  56. package/src/suggestion.js +1 -1
  57. package/src/suggestiondescriptionfactory.js +1 -1
  58. package/src/trackchanges.js +1 -1
  59. package/src/trackchangesdata.js +1 -1
  60. package/src/trackchangesediting.js +1 -1
  61. package/src/trackchangesui.js +1 -1
  62. package/src/ui/suggestioncontroller.js +1 -1
  63. package/src/ui/view/basesuggestionthreadview.js +1 -1
  64. package/src/ui/view/suggestionthreadview.js +1 -1
  65. package/src/utils/common-translations.js +1 -1
  66. package/src/utils/utils.js +1 -1
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39a6=['setAttribute','get','map','author','subType','getFirstMarker','_saved','getAllAdjacentSuggestions','addMarkerName','from','isMultiRange','attributes','set','discard','suggestion:','commentThread','_onAttributesChange','hasComments','getMarkers','removeMarkers','getRanges','add','removeAttribute','push','getMultiRangeId','next','decorate','type','getFirstRange','reduce','getMarkerNames','previous','getRange','onDiscard','onAttributesChange','delete','change','nodeBefore','isExternal','_onDiscard','getContainedElement','data','end','isIntersecting','_model','getItems','_markerNames','substr','nodeAfter','removeMarker','head','markers','_onAccept','_isDataLoaded','creator','authoredAt','length','accept'];(function(_0x351f33,_0x39a629){const _0x55ca0d=function(_0x5dce1f){while(--_0x5dce1f){_0x351f33['push'](_0x351f33['shift']());}};_0x55ca0d(++_0x39a629);}(_0x39a6,0x143));const _0x55ca=function(_0x351f33,_0x39a629){_0x351f33=_0x351f33-0x0;let _0x55ca0d=_0x39a6[_0x351f33];return _0x55ca0d;};import{Element as _0x1bc700}from'ckeditor5/src/engine';import{ObservableMixin as _0x2f659e,uid as _0x298579}from'ckeditor5/src/utils';import{cloneDeep as _0x4efd77,isEqual as _0xb7dc39,set as _0x5e46f7,unset as _0x41f654}from'lodash-es';export default class u extends _0x2f659e(){constructor(_0x555c5a,_0x1609d0){super(),this[_0x55ca('0x14')]=!0x1,this['id']=_0x1609d0['id'],this[_0x55ca('0x34')]=_0x1609d0['type'],this['subType']=_0x1609d0['subType']||null,this[_0x55ca('0x1c')]=_0x1609d0[_0x55ca('0x1c')],this['creator']=_0x1609d0[_0x55ca('0x15')]||_0x1609d0[_0x55ca('0x1c')],this[_0x55ca('0x5')]=Boolean(_0x1609d0[_0x55ca('0x24')]&&_0x1609d0[_0x55ca('0x24')]['@external']),this['data']=null,this[_0x55ca('0xb')]=_0x555c5a,this[_0x55ca('0x13')]=_0x1609d0['onAccept'],this[_0x55ca('0x6')]=_0x1609d0[_0x55ca('0x0')],this['_onAttributesChange']=_0x1609d0[_0x55ca('0x1')],this[_0x55ca('0xd')]=new Set(),this['createdAt']=null,this['set'](_0x55ca('0x16'),null),this[_0x55ca('0x25')]('attributes',_0x1609d0[_0x55ca('0x24')]||{}),this['set']('previous',null),this[_0x55ca('0x25')](_0x55ca('0x32'),null),this[_0x55ca('0x25')](_0x55ca('0x28'),null),this['set'](_0x55ca('0x1f'),!0x1),this['decorate'](_0x55ca('0x18')),this[_0x55ca('0x33')](_0x55ca('0x26'));}get[_0x55ca('0x11')](){let _0x21ae10=this;for(;_0x21ae10[_0x55ca('0x38')];)_0x21ae10=_0x21ae10[_0x55ca('0x38')];return _0x21ae10;}get[_0x55ca('0x2a')](){return!!this['commentThread']&&this[_0x55ca('0x28')][_0x55ca('0x17')]>0x0;}get[_0x55ca('0x23')](){if(0x0==this[_0x55ca('0xd')]['size'])return!0x1;return 0x6==Array[_0x55ca('0x22')](this[_0x55ca('0xd')])[0x0]['split'](':')[_0x55ca('0x17')];}get['isInContent'](){return null!==this[_0x55ca('0x1e')]();}[_0x55ca('0x21')](_0x1368a3){this[_0x55ca('0xd')][_0x55ca('0x2e')](_0x1368a3);}[_0x55ca('0x37')](){return Array[_0x55ca('0x22')](this[_0x55ca('0xd')]);}[_0x55ca('0x2b')](){return this[_0x55ca('0x37')]()['map'](_0x3374f9=>this[_0x55ca('0xb')][_0x55ca('0x12')][_0x55ca('0x1a')](_0x3374f9))['filter'](_0x4c577c=>_0x4c577c);}[_0x55ca('0x1e')](){return this['getMarkers']()[0x0]||null;}[_0x55ca('0x2c')](){this[_0x55ca('0xb')]['change'](_0x27eaaf=>{for(const _0x31a874 of this[_0x55ca('0x2b')]())_0x27eaaf[_0x55ca('0x10')](_0x31a874);}),this[_0x55ca('0xd')]['clear']();}[_0x55ca('0x10')](_0x3deb31){this[_0x55ca('0xb')][_0x55ca('0x3')](_0x2ab5ab=>{_0x2ab5ab['removeMarker'](_0x3deb31);}),this[_0x55ca('0xd')][_0x55ca('0x2')](_0x3deb31);}['addRange'](_0x5c0901){const _0x3e16ac=_0x55ca('0x27')+this[_0x55ca('0x34')]+':'+this['subType']+':'+this['id']+':'+this[_0x55ca('0x15')]['id']+':'+u[_0x55ca('0x31')]();this[_0x55ca('0x21')](_0x3e16ac),this['_model'][_0x55ca('0x3')](_0x20c820=>{_0x20c820['addMarker'](_0x3e16ac,{'range':_0x5c0901,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x58b9fc){for(const _0x4985ad of this[_0x55ca('0x2d')]())if(_0x4985ad[_0x55ca('0xa')](_0x58b9fc))return!0x0;return!0x1;}[_0x55ca('0x2d')](){return this[_0x55ca('0x2b')]()[_0x55ca('0x1b')](_0x386a25=>_0x386a25[_0x55ca('0x39')]());}[_0x55ca('0xc')](){return this[_0x55ca('0x2d')]()[_0x55ca('0x36')]((_0x35cc9e,_0x2f6524)=>[..._0x35cc9e,..._0x2f6524[_0x55ca('0xc')]()],[]);}[_0x55ca('0x35')](){var _0x5a5e8e;return(null===(_0x5a5e8e=this[_0x55ca('0x1e')]())||void 0x0===_0x5a5e8e?void 0x0:_0x5a5e8e['getRange']())||null;}[_0x55ca('0x7')](){const _0x4cc81d=this[_0x55ca('0x2d')]();if(0x1!=_0x4cc81d[_0x55ca('0x17')])return null;const _0x1a494c=_0x4cc81d[0x0],_0x4c2903=_0x1a494c['start'][_0x55ca('0xf')],_0x2c286d=_0x1a494c[_0x55ca('0x9')][_0x55ca('0x4')];return _0x4c2903 instanceof _0x1bc700?_0x4c2903!=_0x2c286d?null:_0x4c2903:null;}['accept'](){this['_onAccept'](this[_0x55ca('0x2d')](),this['data'],this[_0x55ca('0x24')]),this[_0x55ca('0x2c')]();}['discard'](){this[_0x55ca('0x6')](this[_0x55ca('0x2d')](),this['data'],this['attributes']),this[_0x55ca('0x2c')]();}[_0x55ca('0x20')](){const _0x5c389b=[];let _0x4757cc=this['head'];for(;_0x4757cc;)_0x5c389b[_0x55ca('0x30')](_0x4757cc),_0x4757cc=_0x4757cc[_0x55ca('0x32')];return _0x5c389b;}[_0x55ca('0x19')](_0xd24b29,_0x5d5d63){const _0x548745=_0x4efd77(this[_0x55ca('0x24')]);_0x5e46f7(_0x548745,_0xd24b29,_0x5d5d63),_0xb7dc39(_0x548745,this['attributes'])||(this[_0x55ca('0x24')]=_0x548745,this[_0x55ca('0x29')](_0x548745));}[_0x55ca('0x2f')](_0x3e482c){const _0x5d2a02=_0x4efd77(this['attributes']);_0x41f654(_0x5d2a02,_0x3e482c),_0xb7dc39(_0x5d2a02,this['attributes'])||(this[_0x55ca('0x24')]=_0x5d2a02,this[_0x55ca('0x29')](this[_0x55ca('0x24')]));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this[_0x55ca('0x34')]+':'+this[_0x55ca('0x1d')]:this[_0x55ca('0x34')],'authorId':this[_0x55ca('0x15')]['id'],'createdAt':this['createdAt'],'hasComments':this[_0x55ca('0x2a')],'data':this[_0x55ca('0x8')],'attributes':this[_0x55ca('0x24')]};}static[_0x55ca('0x31')](){return _0x298579()[_0x55ca('0xe')](0x1,0x5);}}
23
+ const _0x10a7=['isIntersecting','getRanges','_isDataLoaded','removeAttribute','addMarkerName','_onAccept','getItems','_onDiscard','decorate','_onAttributesChange','push','discard','_markerNames','set','removeMarkers','removeMarker','getRange','isInContent','@external','_model','map','get','getMultiRangeId','authoredAt','onAccept','getMarkerNames','next','hasComments','accept','isMultiRange','getFirstMarker','addMarker','change','add','start','getContainedElement','reduce','data','subType','delete','filter','addRange','from','type','size','split','previous','isIntersectingWithRange','creator','length','onAttributesChange','commentThread','onDiscard','markers','attributes','head','setAttribute','getMarkers','author','getFirstRange','createdAt','toJSON'];(function(_0x12d658,_0x10a756){const _0x2ac6e7=function(_0x21650f){while(--_0x21650f){_0x12d658['push'](_0x12d658['shift']());}};_0x2ac6e7(++_0x10a756);}(_0x10a7,0xb3));const _0x2ac6=function(_0x12d658,_0x10a756){_0x12d658=_0x12d658-0x0;let _0x2ac6e7=_0x10a7[_0x12d658];return _0x2ac6e7;};import{Element as _0x10f39f}from'ckeditor5/src/engine';import{ObservableMixin as _0x5221ac,uid as _0x4dd051}from'ckeditor5/src/utils';import{cloneDeep as _0x2c5287,isEqual as _0x14b1bd,set as _0x148bf7,unset as _0x576aef}from'lodash-es';export default class u extends _0x5221ac(){constructor(_0x5018ce,_0x3c1d96){super(),this[_0x2ac6('0x9')]=!0x1,this['id']=_0x3c1d96['id'],this['type']=_0x3c1d96[_0x2ac6('0x32')],this[_0x2ac6('0x2d')]=_0x3c1d96[_0x2ac6('0x2d')]||null,this[_0x2ac6('0x3')]=_0x3c1d96['author'],this[_0x2ac6('0x37')]=_0x3c1d96['creator']||_0x3c1d96[_0x2ac6('0x3')],this['isExternal']=Boolean(_0x3c1d96[_0x2ac6('0x3d')]&&_0x3c1d96[_0x2ac6('0x3d')][_0x2ac6('0x19')]),this[_0x2ac6('0x2c')]=null,this[_0x2ac6('0x1a')]=_0x5018ce,this[_0x2ac6('0xc')]=_0x3c1d96[_0x2ac6('0x1f')],this[_0x2ac6('0xe')]=_0x3c1d96[_0x2ac6('0x3b')],this[_0x2ac6('0x10')]=_0x3c1d96[_0x2ac6('0x39')],this[_0x2ac6('0x13')]=new Set(),this['createdAt']=null,this[_0x2ac6('0x14')](_0x2ac6('0x1e'),null),this['set']('attributes',_0x3c1d96[_0x2ac6('0x3d')]||{}),this['set']('previous',null),this['set'](_0x2ac6('0x21'),null),this[_0x2ac6('0x14')](_0x2ac6('0x3a'),null),this[_0x2ac6('0x14')]('_saved',!0x1),this[_0x2ac6('0xf')](_0x2ac6('0x23')),this['decorate'](_0x2ac6('0x12'));}get[_0x2ac6('0x0')](){let _0x4bdde9=this;for(;_0x4bdde9[_0x2ac6('0x35')];)_0x4bdde9=_0x4bdde9[_0x2ac6('0x35')];return _0x4bdde9;}get[_0x2ac6('0x22')](){return!!this[_0x2ac6('0x3a')]&&this['commentThread']['length']>0x0;}get[_0x2ac6('0x24')](){if(0x0==this[_0x2ac6('0x13')][_0x2ac6('0x33')])return!0x1;return 0x6==Array[_0x2ac6('0x31')](this['_markerNames'])[0x0][_0x2ac6('0x34')](':')[_0x2ac6('0x38')];}get[_0x2ac6('0x18')](){return null!==this[_0x2ac6('0x25')]();}[_0x2ac6('0xb')](_0x3b5625){this['_markerNames'][_0x2ac6('0x28')](_0x3b5625);}['getMarkerNames'](){return Array['from'](this[_0x2ac6('0x13')]);}['getMarkers'](){return this[_0x2ac6('0x20')]()[_0x2ac6('0x1b')](_0x3ef6e6=>this[_0x2ac6('0x1a')][_0x2ac6('0x3c')][_0x2ac6('0x1c')](_0x3ef6e6))[_0x2ac6('0x2f')](_0x15ac6b=>_0x15ac6b);}[_0x2ac6('0x25')](){return this[_0x2ac6('0x2')]()[0x0]||null;}['removeMarkers'](){this[_0x2ac6('0x1a')][_0x2ac6('0x27')](_0x39bdf3=>{for(const _0xc8b4c2 of this[_0x2ac6('0x2')]())_0x39bdf3['removeMarker'](_0xc8b4c2);}),this[_0x2ac6('0x13')]['clear']();}['removeMarker'](_0x1192f5){this[_0x2ac6('0x1a')][_0x2ac6('0x27')](_0xe95e63=>{_0xe95e63[_0x2ac6('0x16')](_0x1192f5);}),this[_0x2ac6('0x13')][_0x2ac6('0x2e')](_0x1192f5);}[_0x2ac6('0x30')](_0x5bdf47){const _0x192f6e='suggestion:'+this[_0x2ac6('0x32')]+':'+this['subType']+':'+this['id']+':'+this[_0x2ac6('0x37')]['id']+':'+u[_0x2ac6('0x1d')]();this[_0x2ac6('0xb')](_0x192f6e),this[_0x2ac6('0x1a')][_0x2ac6('0x27')](_0xbe4f91=>{_0xbe4f91[_0x2ac6('0x26')](_0x192f6e,{'range':_0x5bdf47,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2ac6('0x36')](_0x602739){for(const _0x22b5dd of this['getRanges']())if(_0x22b5dd[_0x2ac6('0x7')](_0x602739))return!0x0;return!0x1;}[_0x2ac6('0x8')](){return this['getMarkers']()['map'](_0xe1f963=>_0xe1f963[_0x2ac6('0x17')]());}[_0x2ac6('0xd')](){return this['getRanges']()[_0x2ac6('0x2b')]((_0x4c3ae2,_0x21f3d7)=>[..._0x4c3ae2,..._0x21f3d7[_0x2ac6('0xd')]()],[]);}[_0x2ac6('0x4')](){var _0x3e9f01;return(null===(_0x3e9f01=this[_0x2ac6('0x25')]())||void 0x0===_0x3e9f01?void 0x0:_0x3e9f01['getRange']())||null;}[_0x2ac6('0x2a')](){const _0x49fe3b=this[_0x2ac6('0x8')]();if(0x1!=_0x49fe3b[_0x2ac6('0x38')])return null;const _0x1b78bc=_0x49fe3b[0x0],_0x555ec1=_0x1b78bc[_0x2ac6('0x29')]['nodeAfter'],_0x55f39f=_0x1b78bc['end']['nodeBefore'];return _0x555ec1 instanceof _0x10f39f?_0x555ec1!=_0x55f39f?null:_0x555ec1:null;}[_0x2ac6('0x23')](){this[_0x2ac6('0xc')](this['getRanges'](),this[_0x2ac6('0x2c')],this[_0x2ac6('0x3d')]),this[_0x2ac6('0x15')]();}[_0x2ac6('0x12')](){this['_onDiscard'](this['getRanges'](),this[_0x2ac6('0x2c')],this[_0x2ac6('0x3d')]),this[_0x2ac6('0x15')]();}['getAllAdjacentSuggestions'](){const _0x4dafea=[];let _0x54f85e=this[_0x2ac6('0x0')];for(;_0x54f85e;)_0x4dafea[_0x2ac6('0x11')](_0x54f85e),_0x54f85e=_0x54f85e['next'];return _0x4dafea;}[_0x2ac6('0x1')](_0x34805b,_0x4cd1b4){const _0xe12449=_0x2c5287(this[_0x2ac6('0x3d')]);_0x148bf7(_0xe12449,_0x34805b,_0x4cd1b4),_0x14b1bd(_0xe12449,this['attributes'])||(this[_0x2ac6('0x3d')]=_0xe12449,this['_onAttributesChange'](_0xe12449));}[_0x2ac6('0xa')](_0x482275){const _0x364999=_0x2c5287(this[_0x2ac6('0x3d')]);_0x576aef(_0x364999,_0x482275),_0x14b1bd(_0x364999,this['attributes'])||(this[_0x2ac6('0x3d')]=_0x364999,this[_0x2ac6('0x10')](this[_0x2ac6('0x3d')]));}[_0x2ac6('0x6')](){return{'id':this['id'],'type':this[_0x2ac6('0x2d')]?this[_0x2ac6('0x32')]+':'+this[_0x2ac6('0x2d')]:this[_0x2ac6('0x32')],'authorId':this[_0x2ac6('0x37')]['id'],'createdAt':this[_0x2ac6('0x5')],'hasComments':this[_0x2ac6('0x22')],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x4dd051()['substr'](0x1,0x5);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3631=['previousSibling','$text','removeContainer','elementEnd','_addDescriptionItems','push','deletion','addContainer','$1\x20$2','Container','indexOf','label','isEqual','get','text','checkChild','*Insert:*\x20%0','*Remove:*\x20%0','_itemLabels','set','Object','start','item','getItemLabel','name','isObject','nextSibling','_itemLabelsCallbacks','match','getDescriptions','addObject','quantity','isInContent','_locale','_schema','length','*Merge:*\x20%0','_customCallbacks','remove','replace','skip','matchingCallback','EmptyContainer','*Split:*\x20%0','getFirstRange','isEmpty','add','element','type','removeObject','ELEMENT_SPACE','registerElementLabel','insertion'];(function(_0x14d960,_0x3631ee){const _0x358c4b=function(_0xa894ec){while(--_0xa894ec){_0x14d960['push'](_0x14d960['shift']());}};_0x358c4b(++_0x3631ee);}(_0x3631,0xbb));const _0x358c=function(_0x14d960,_0x3631ee){_0x14d960=_0x14d960-0x0;let _0x358c4b=_0x3631[_0x14d960];return _0x358c4b;};import{getTranslation as _0x59ea4e}from'./utils/common-translations';import{priorities as _0x5edd5a,insertToPriorityArray as _0x4b8c1d}from'ckeditor5/src/utils';export default class m{constructor(_0x543937,_0x108618){this['_customCallbacks']=[],this[_0x358c('0x2b')]=new Map(),this['_itemLabelsCallbacks']=[],this['_schema']=_0x543937,this[_0x358c('0x5')]=_0x108618;}[_0x358c('0x1')](_0x20234c){const _0x149a92=[];for(let _0x5e8ae6=0x0;_0x5e8ae6<_0x20234c[_0x358c('0x7')];_0x5e8ae6++){const _0x8966=_0x20234c[_0x5e8ae6];if(!_0x8966[_0x358c('0x4')])continue;let _0x823795=!0x1;for(const _0x3abb83 of this[_0x358c('0x9')]){const _0x4c0659=_0x3abb83(_0x8966);if(_0x4c0659){_0x358c('0x14')in _0x4c0659&&_0x149a92['push'](_0x4c0659),_0x823795=!0x0;break;}}if(!_0x823795){this[_0x358c('0x1d')](_0x149a92,_0x8966);const _0x1a61e6=_0x20234c[_0x5e8ae6+0x1];if(_0x1a61e6&&!_0x8966[_0x358c('0x10')]()['end'][_0x358c('0x25')](_0x1a61e6[_0x358c('0x10')]()[_0x358c('0x2e')])){const _0x489355=_0x149a92[_0x149a92[_0x358c('0x7')]-0x1],_0x3e0fec=_0x358c('0x18')==_0x8966[_0x358c('0x14')]?_0x358c('0x12'):_0x358c('0xa');_0x489355&&_0x358c('0x27')==_0x489355[_0x358c('0x14')]&&(_0x489355[_0x3e0fec]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x149a92);}['registerDescriptionCallback'](_0xaa39da){this[_0x358c('0x9')][_0x358c('0x1e')](_0xaa39da);}[_0x358c('0x17')](_0x31249e,_0x358611,_0x2b5687=_0x5edd5a['normal']){'function'==typeof _0x31249e?_0x4b8c1d(this[_0x358c('0x34')],{'matchingCallback':_0x31249e,'label':_0x358611,'priority':_0x2b5687}):this['_itemLabels'][_0x358c('0x2c')](_0x31249e,_0x358611);}[_0x358c('0x30')](_0xfb5b05,_0x3d3a6a=0x1){let _0x4cd199;for(const _0x3cdc5c of this[_0x358c('0x34')])if(_0x3cdc5c[_0x358c('0xd')](_0xfb5b05)){_0x4cd199=_0x3cdc5c[_0x358c('0x24')];break;}return _0x4cd199||(_0x4cd199=this[_0x358c('0x2b')][_0x358c('0x26')](_0xfb5b05[_0x358c('0x31')])),_0x4cd199?_0x4cd199(_0x3d3a6a):0x1!==_0x3d3a6a?_0x3d3a6a+'\x20'+_0xfb5b05['name']+'s':''+_0xfb5b05[_0x358c('0x31')];}[_0x358c('0x1d')](_0x5107d8,_0x569219){const _0x266736=_0x569219[_0x358c('0x10')]()['getWalker'](),_0x42bd34=_0x358c('0x18')==_0x569219[_0x358c('0x14')]?'add':_0x358c('0xa');for(const _0x209eb1 of _0x266736){const _0x13eb87=_0x209eb1[_0x358c('0x2f')],_0x2252e6=_0x5107d8[_0x5107d8[_0x358c('0x7')]-0x1];if(_0x13eb87['is']('$textProxy'))_0x2252e6&&_0x2252e6[_0x358c('0x14')][_0x358c('0x23')](_0x358c('0x22'))>-0x1&&_0x5107d8['pop'](),_0x2252e6&&'text'==_0x2252e6[_0x358c('0x14')]?_0x2252e6[_0x42bd34]+=_0x13eb87['data']:_0x5107d8['push']({'type':_0x358c('0x27'),'add':'add'==_0x42bd34?_0x13eb87['data']:'','remove':'remove'==_0x42bd34?_0x13eb87['data']:''});else{if(this['_schema'][_0x358c('0x32')](_0x13eb87)){const _0x4fff5d=_0x13eb87;if(_0x2252e6&&_0x2252e6[_0x358c('0x14')][_0x358c('0x23')](_0x358c('0x22'))>-0x1&&_0x5107d8['pop'](),'elementEnd'==_0x209eb1['type'])continue;_0x2252e6&&_0x2252e6[_0x358c('0x14')]==_0x42bd34+'Object'&&_0x2252e6[_0x358c('0x13')][_0x358c('0x31')]==_0x4fff5d['name']?_0x2252e6[_0x358c('0x3')]++:_0x5107d8[_0x358c('0x1e')]({'type':_0x42bd34+_0x358c('0x2d'),'element':_0x4fff5d,'quantity':0x1}),_0x266736[_0x358c('0xc')](_0x2eee2c=>!(_0x358c('0x1c')==_0x2eee2c['type']&&_0x2eee2c[_0x358c('0x2f')]==_0x13eb87));}else{if(this[_0x358c('0x6')][_0x358c('0x28')](_0x13eb87,_0x358c('0x1a'))||_0x13eb87['is'](_0x358c('0x13'),'softBreak')){const _0x22f0db=_0x13eb87;if(_0x358c('0x12')==_0x42bd34&&'elementStart'==_0x209eb1[_0x358c('0x14')]||_0x358c('0xa')==_0x42bd34&&'elementEnd'==_0x209eb1[_0x358c('0x14')])continue;if(_0x2252e6&&-0x1==_0x2252e6[_0x358c('0x14')]['indexOf'](_0x358c('0x22'))){_0x358c('0x27')==_0x2252e6['type']&&(_0x2252e6[_0x42bd34]+='\x0a');continue;}let _0x2e127a;if(_0x2e127a=_0x358c('0x12')==_0x42bd34?_0x22f0db[_0x358c('0x33')]&&!this[_0x358c('0x6')][_0x358c('0x32')](_0x22f0db[_0x358c('0x33')])?_0x22f0db[_0x358c('0x33')]:null:_0x22f0db[_0x358c('0x19')]&&!this[_0x358c('0x6')][_0x358c('0x32')](_0x22f0db[_0x358c('0x19')])?_0x22f0db[_0x358c('0x19')]:null,_0x22f0db[_0x358c('0x11')]||_0x2e127a&&_0x2e127a[_0x358c('0x11')]){const _0x398067=_0x2e127a&&_0x2e127a[_0x358c('0x11')]?_0x2e127a:_0x22f0db;_0x2252e6&&_0x2252e6['type']==_0x42bd34+_0x358c('0xe')&&_0x2252e6[_0x358c('0x13')][_0x358c('0x31')]==_0x398067['name']?_0x2252e6[_0x358c('0x3')]++:_0x5107d8[_0x358c('0x1e')]({'type':_0x42bd34+'EmptyContainer','element':_0x398067,'quantity':0x1});}else _0x5107d8['push']({'type':_0x42bd34+_0x358c('0x22'),'element':_0x22f0db});}}}}}['_resolveDescriptionItems'](_0x541dd0){const _0x9a8c74=this[_0x358c('0x5')],_0x7806a9=[];for(const _0x311179 of _0x541dd0){switch(_0x311179['type']){case _0x358c('0x27'):if(_0x311179['add']=_0x311179[_0x358c('0x12')][_0x358c('0xb')](/(\S)\u000A+(\S)/g,_0x358c('0x21'))[_0x358c('0xb')](/\u000A/g,''),_0x311179[_0x358c('0xa')]=_0x311179[_0x358c('0xa')][_0x358c('0xb')](/(\S)\u000A+(\S)/g,_0x358c('0x21'))[_0x358c('0xb')](/\u000A/g,''),''!=_0x311179[_0x358c('0x12')]&&''!=_0x311179['remove']){_0x7806a9[_0x358c('0x1e')]({'type':_0x358c('0xb'),'content':_0x59ea4e(_0x9a8c74,'REPLACE_TEXT',['\x22'+_0x311179[_0x358c('0xa')]+'\x22','\x22'+_0x311179['add']+'\x22'])});continue;}if(null!=_0x311179[_0x358c('0x12')]['match'](/^ +$/)){_0x7806a9[_0x358c('0x1e')]({'type':_0x358c('0x18'),'content':_0x59ea4e(_0x9a8c74,'*Insert:*\x20%0',_0x59ea4e(_0x9a8c74,_0x358c('0x16'),_0x311179[_0x358c('0x12')]['length']))});continue;}if(null!=_0x311179[_0x358c('0xa')][_0x358c('0x0')](/^ +$/)){_0x7806a9['push']({'type':_0x358c('0x1f'),'content':_0x59ea4e(_0x9a8c74,'*Remove:*\x20%0',_0x59ea4e(_0x9a8c74,'ELEMENT_SPACE',_0x311179[_0x358c('0xa')][_0x358c('0x7')]))});continue;}if(''!=_0x311179['add']){_0x7806a9[_0x358c('0x1e')]({'type':_0x358c('0x18'),'content':_0x59ea4e(_0x9a8c74,_0x358c('0x29'),'\x22'+_0x311179['add']+'\x22')});continue;}_0x7806a9[_0x358c('0x1e')]({'type':_0x358c('0x1f'),'content':_0x59ea4e(_0x9a8c74,'*Remove:*\x20%0','\x22'+_0x311179[_0x358c('0xa')]+'\x22')});continue;case'addEmptyContainer':case _0x358c('0x2'):_0x7806a9['push']({'type':'insertion','content':_0x59ea4e(_0x9a8c74,'*Insert:*\x20%0',this['getItemLabel'](_0x311179[_0x358c('0x13')],_0x311179[_0x358c('0x3')]))});continue;case'removeEmptyContainer':case _0x358c('0x15'):_0x7806a9[_0x358c('0x1e')]({'type':_0x358c('0x1f'),'content':_0x59ea4e(_0x9a8c74,_0x358c('0x2a'),this[_0x358c('0x30')](_0x311179[_0x358c('0x13')],_0x311179[_0x358c('0x3')]))});continue;case _0x358c('0x20'):_0x7806a9[_0x358c('0x1e')]({'type':_0x358c('0x18'),'content':_0x59ea4e(_0x9a8c74,_0x358c('0xf'),this['getItemLabel'](_0x311179[_0x358c('0x13')],_0x311179['quantity']))});continue;case _0x358c('0x1b'):_0x7806a9[_0x358c('0x1e')]({'type':_0x358c('0x1f'),'content':_0x59ea4e(_0x9a8c74,_0x358c('0x8'),this[_0x358c('0x30')](_0x311179[_0x358c('0x13')],_0x311179[_0x358c('0x3')]))});continue;}_0x7806a9[_0x358c('0x1e')](_0x311179);}return _0x7806a9;}}
23
+ const _0x3974=['$1\x20$2','getFirstRange','push','isInContent','normal','nextSibling','_resolveDescriptionItems','_itemLabels','Object','previousSibling','$textProxy','element','Container','item','_customCallbacks','get','getItemLabel','_addDescriptionItems','start','ELEMENT_SPACE','getDescriptions','label','insertion','text','registerDescriptionCallback','add','*Insert:*\x20%0','elementStart','addObject','registerElementLabel','deletion','checkChild','isEmpty','_locale','getWalker','set','name','_schema','replace','_itemLabelsCallbacks','quantity','matchingCallback','removeContainer','remove','elementEnd','isObject','length','EmptyContainer','indexOf','addEmptyContainer','type','softBreak','$text','*Split:*\x20%0','match','skip','function','isEqual','pop','data','removeEmptyContainer','REPLACE_TEXT','addContainer'];(function(_0x9ada73,_0x3974aa){const _0x28df7e=function(_0x19c144){while(--_0x19c144){_0x9ada73['push'](_0x9ada73['shift']());}};_0x28df7e(++_0x3974aa);}(_0x3974,0x8c));const _0x28df=function(_0x9ada73,_0x3974aa){_0x9ada73=_0x9ada73-0x0;let _0x28df7e=_0x3974[_0x9ada73];return _0x28df7e;};import{getTranslation as _0x2c9cdd}from'./utils/common-translations';import{priorities as _0x35e017,insertToPriorityArray as _0x2cb170}from'ckeditor5/src/utils';export default class m{constructor(_0xa98b80,_0x16c003){this[_0x28df('0x0')]=[],this[_0x28df('0x38')]=new Map(),this[_0x28df('0x19')]=[],this[_0x28df('0x17')]=_0xa98b80,this[_0x28df('0x13')]=_0x16c003;}[_0x28df('0x6')](_0x15fa1d){const _0x20a119=[];for(let _0x3106e2=0x0;_0x3106e2<_0x15fa1d[_0x28df('0x20')];_0x3106e2++){const _0x4e0263=_0x15fa1d[_0x3106e2];if(!_0x4e0263[_0x28df('0x34')])continue;let _0x34412a=!0x1;for(const _0x4e8753 of this['_customCallbacks']){const _0x567ee6=_0x4e8753(_0x4e0263);if(_0x567ee6){'type'in _0x567ee6&&_0x20a119[_0x28df('0x33')](_0x567ee6),_0x34412a=!0x0;break;}}if(!_0x34412a){this[_0x28df('0x3')](_0x20a119,_0x4e0263);const _0x49d2f8=_0x15fa1d[_0x3106e2+0x1];if(_0x49d2f8&&!_0x4e0263[_0x28df('0x32')]()['end'][_0x28df('0x2b')](_0x49d2f8[_0x28df('0x32')]()[_0x28df('0x4')])){const _0x23f2ca=_0x20a119[_0x20a119[_0x28df('0x20')]-0x1],_0x3a37dd=_0x28df('0x8')==_0x4e0263[_0x28df('0x24')]?'add':_0x28df('0x1d');_0x23f2ca&&'text'==_0x23f2ca[_0x28df('0x24')]&&(_0x23f2ca[_0x3a37dd]+='\x0a');}}}return this[_0x28df('0x37')](_0x20a119);}[_0x28df('0xa')](_0x198717){this[_0x28df('0x0')][_0x28df('0x33')](_0x198717);}[_0x28df('0xf')](_0x1ad511,_0x389a62,_0x42e7c5=_0x35e017[_0x28df('0x35')]){_0x28df('0x2a')==typeof _0x1ad511?_0x2cb170(this[_0x28df('0x19')],{'matchingCallback':_0x1ad511,'label':_0x389a62,'priority':_0x42e7c5}):this['_itemLabels'][_0x28df('0x15')](_0x1ad511,_0x389a62);}[_0x28df('0x2')](_0x508b31,_0x1c5b53=0x1){let _0x1450fe;for(const _0xd552f3 of this['_itemLabelsCallbacks'])if(_0xd552f3[_0x28df('0x1b')](_0x508b31)){_0x1450fe=_0xd552f3[_0x28df('0x7')];break;}return _0x1450fe||(_0x1450fe=this[_0x28df('0x38')][_0x28df('0x1')](_0x508b31[_0x28df('0x16')])),_0x1450fe?_0x1450fe(_0x1c5b53):0x1!==_0x1c5b53?_0x1c5b53+'\x20'+_0x508b31[_0x28df('0x16')]+'s':''+_0x508b31['name'];}['_addDescriptionItems'](_0x2eb49c,_0x1ccc67){const _0xcaeef=_0x1ccc67['getFirstRange']()[_0x28df('0x14')](),_0x4c516e=_0x28df('0x8')==_0x1ccc67['type']?'add':_0x28df('0x1d');for(const _0x58b555 of _0xcaeef){const _0x4628e9=_0x58b555[_0x28df('0x3e')],_0x1c07fb=_0x2eb49c[_0x2eb49c[_0x28df('0x20')]-0x1];if(_0x4628e9['is'](_0x28df('0x3b')))_0x1c07fb&&_0x1c07fb['type'][_0x28df('0x22')](_0x28df('0x3d'))>-0x1&&_0x2eb49c[_0x28df('0x2c')](),_0x1c07fb&&_0x28df('0x9')==_0x1c07fb['type']?_0x1c07fb[_0x4c516e]+=_0x4628e9[_0x28df('0x2d')]:_0x2eb49c[_0x28df('0x33')]({'type':_0x28df('0x9'),'add':_0x28df('0xb')==_0x4c516e?_0x4628e9[_0x28df('0x2d')]:'','remove':_0x28df('0x1d')==_0x4c516e?_0x4628e9['data']:''});else{if(this[_0x28df('0x17')][_0x28df('0x1f')](_0x4628e9)){const _0x49388e=_0x4628e9;if(_0x1c07fb&&_0x1c07fb[_0x28df('0x24')][_0x28df('0x22')](_0x28df('0x3d'))>-0x1&&_0x2eb49c[_0x28df('0x2c')](),'elementEnd'==_0x58b555[_0x28df('0x24')])continue;_0x1c07fb&&_0x1c07fb[_0x28df('0x24')]==_0x4c516e+'Object'&&_0x1c07fb[_0x28df('0x3c')][_0x28df('0x16')]==_0x49388e[_0x28df('0x16')]?_0x1c07fb[_0x28df('0x1a')]++:_0x2eb49c[_0x28df('0x33')]({'type':_0x4c516e+_0x28df('0x39'),'element':_0x49388e,'quantity':0x1}),_0xcaeef[_0x28df('0x29')](_0x735930=>!(_0x28df('0x1e')==_0x735930[_0x28df('0x24')]&&_0x735930[_0x28df('0x3e')]==_0x4628e9));}else{if(this[_0x28df('0x17')][_0x28df('0x11')](_0x4628e9,_0x28df('0x26'))||_0x4628e9['is'](_0x28df('0x3c'),_0x28df('0x25'))){const _0x436ba6=_0x4628e9;if(_0x28df('0xb')==_0x4c516e&&_0x28df('0xd')==_0x58b555[_0x28df('0x24')]||_0x28df('0x1d')==_0x4c516e&&_0x28df('0x1e')==_0x58b555['type'])continue;if(_0x1c07fb&&-0x1==_0x1c07fb[_0x28df('0x24')]['indexOf'](_0x28df('0x3d'))){_0x28df('0x9')==_0x1c07fb['type']&&(_0x1c07fb[_0x4c516e]+='\x0a');continue;}let _0x85d5e9;if(_0x85d5e9='add'==_0x4c516e?_0x436ba6['nextSibling']&&!this['_schema'][_0x28df('0x1f')](_0x436ba6[_0x28df('0x36')])?_0x436ba6[_0x28df('0x36')]:null:_0x436ba6[_0x28df('0x3a')]&&!this[_0x28df('0x17')][_0x28df('0x1f')](_0x436ba6[_0x28df('0x3a')])?_0x436ba6[_0x28df('0x3a')]:null,_0x436ba6['isEmpty']||_0x85d5e9&&_0x85d5e9[_0x28df('0x12')]){const _0x4d8d1c=_0x85d5e9&&_0x85d5e9['isEmpty']?_0x85d5e9:_0x436ba6;_0x1c07fb&&_0x1c07fb['type']==_0x4c516e+_0x28df('0x21')&&_0x1c07fb[_0x28df('0x3c')]['name']==_0x4d8d1c['name']?_0x1c07fb[_0x28df('0x1a')]++:_0x2eb49c[_0x28df('0x33')]({'type':_0x4c516e+'EmptyContainer','element':_0x4d8d1c,'quantity':0x1});}else _0x2eb49c[_0x28df('0x33')]({'type':_0x4c516e+'Container','element':_0x436ba6});}}}}}[_0x28df('0x37')](_0x147f1e){const _0x50c9ae=this[_0x28df('0x13')],_0x16a3cd=[];for(const _0x12ffd3 of _0x147f1e){switch(_0x12ffd3[_0x28df('0x24')]){case'text':if(_0x12ffd3[_0x28df('0xb')]=_0x12ffd3[_0x28df('0xb')][_0x28df('0x18')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x28df('0x18')](/\u000A/g,''),_0x12ffd3[_0x28df('0x1d')]=_0x12ffd3[_0x28df('0x1d')][_0x28df('0x18')](/(\S)\u000A+(\S)/g,_0x28df('0x31'))[_0x28df('0x18')](/\u000A/g,''),''!=_0x12ffd3[_0x28df('0xb')]&&''!=_0x12ffd3['remove']){_0x16a3cd[_0x28df('0x33')]({'type':_0x28df('0x18'),'content':_0x2c9cdd(_0x50c9ae,_0x28df('0x2f'),['\x22'+_0x12ffd3[_0x28df('0x1d')]+'\x22','\x22'+_0x12ffd3[_0x28df('0xb')]+'\x22'])});continue;}if(null!=_0x12ffd3[_0x28df('0xb')][_0x28df('0x28')](/^ +$/)){_0x16a3cd[_0x28df('0x33')]({'type':'insertion','content':_0x2c9cdd(_0x50c9ae,_0x28df('0xc'),_0x2c9cdd(_0x50c9ae,'ELEMENT_SPACE',_0x12ffd3['add'][_0x28df('0x20')]))});continue;}if(null!=_0x12ffd3['remove'][_0x28df('0x28')](/^ +$/)){_0x16a3cd[_0x28df('0x33')]({'type':'deletion','content':_0x2c9cdd(_0x50c9ae,'*Remove:*\x20%0',_0x2c9cdd(_0x50c9ae,_0x28df('0x5'),_0x12ffd3[_0x28df('0x1d')]['length']))});continue;}if(''!=_0x12ffd3[_0x28df('0xb')]){_0x16a3cd[_0x28df('0x33')]({'type':'insertion','content':_0x2c9cdd(_0x50c9ae,_0x28df('0xc'),'\x22'+_0x12ffd3[_0x28df('0xb')]+'\x22')});continue;}_0x16a3cd[_0x28df('0x33')]({'type':_0x28df('0x10'),'content':_0x2c9cdd(_0x50c9ae,'*Remove:*\x20%0','\x22'+_0x12ffd3[_0x28df('0x1d')]+'\x22')});continue;case _0x28df('0x23'):case _0x28df('0xe'):_0x16a3cd[_0x28df('0x33')]({'type':'insertion','content':_0x2c9cdd(_0x50c9ae,_0x28df('0xc'),this[_0x28df('0x2')](_0x12ffd3[_0x28df('0x3c')],_0x12ffd3[_0x28df('0x1a')]))});continue;case _0x28df('0x2e'):case'removeObject':_0x16a3cd[_0x28df('0x33')]({'type':_0x28df('0x10'),'content':_0x2c9cdd(_0x50c9ae,'*Remove:*\x20%0',this[_0x28df('0x2')](_0x12ffd3[_0x28df('0x3c')],_0x12ffd3[_0x28df('0x1a')]))});continue;case _0x28df('0x30'):_0x16a3cd[_0x28df('0x33')]({'type':_0x28df('0x8'),'content':_0x2c9cdd(_0x50c9ae,_0x28df('0x27'),this[_0x28df('0x2')](_0x12ffd3[_0x28df('0x3c')],_0x12ffd3['quantity']))});continue;case _0x28df('0x1c'):_0x16a3cd[_0x28df('0x33')]({'type':_0x28df('0x10'),'content':_0x2c9cdd(_0x50c9ae,'*Merge:*\x20%0',this[_0x28df('0x2')](_0x12ffd3[_0x28df('0x3c')],_0x12ffd3[_0x28df('0x1a')]))});continue;}_0x16a3cd[_0x28df('0x33')](_0x12ffd3);}return _0x16a3cd;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x45b6=['editor','TrackChanges','getSuggestion','getSuggestions','Comments','get','addSuggestion','plugins','adapter','pluginName','addSuggestionData'];(function(_0x4a0db7,_0x45b6c1){var _0x91bfed=function(_0x3498a8){while(--_0x3498a8){_0x4a0db7['push'](_0x4a0db7['shift']());}};_0x91bfed(++_0x45b6c1);}(_0x45b6,0x19b));var _0x91bf=function(_0x4a0db7,_0x45b6c1){_0x4a0db7=_0x4a0db7-0x0;var _0x91bfed=_0x45b6[_0x4a0db7];return _0x91bfed;};import{Plugin as _0x22d3a3}from'ckeditor5/src/core';import _0x26328e from'./trackchangesui';import _0x11b62b from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x22d3a3{static get['requires'](){return[_0x11b62b,_0x26328e,_0x91bf('0x0')];}static get[_0x91bf('0x5')](){return _0x91bf('0x8');}set['adapter'](_0x59eb97){this['editor'][_0x91bf('0x3')][_0x91bf('0x1')](_0x11b62b)[_0x91bf('0x4')]=_0x59eb97;}get[_0x91bf('0x4')](){return this[_0x91bf('0x7')][_0x91bf('0x3')][_0x91bf('0x1')](_0x11b62b)[_0x91bf('0x4')];}[_0x91bf('0x2')](_0x5d6473){return this[_0x91bf('0x7')][_0x91bf('0x3')][_0x91bf('0x1')](_0x11b62b)[_0x91bf('0x6')](_0x5d6473);}[_0x91bf('0xa')]({skipNotAttached:_0x2c15a2=!0x1,toJSON:_0x576432=!0x1}={}){return this[_0x91bf('0x7')][_0x91bf('0x3')][_0x91bf('0x1')](_0x11b62b)[_0x91bf('0xa')]({'skipNotAttached':_0x2c15a2,'toJSON':_0x576432});}[_0x91bf('0x9')](_0x231519){return this[_0x91bf('0x7')][_0x91bf('0x3')][_0x91bf('0x1')](_0x11b62b)[_0x91bf('0x9')](_0x231519);}}
23
+ var _0x5f37=['requires','TrackChanges','get','editor','adapter','plugins','getSuggestion','Comments','getSuggestions'];(function(_0x225934,_0x5f37e9){var _0x45204a=function(_0x5933d5){while(--_0x5933d5){_0x225934['push'](_0x225934['shift']());}};_0x45204a(++_0x5f37e9);}(_0x5f37,0xf4));var _0x4520=function(_0x225934,_0x5f37e9){_0x225934=_0x225934-0x0;var _0x45204a=_0x5f37[_0x225934];return _0x45204a;};import{Plugin as _0x470cca}from'ckeditor5/src/core';import _0x452101 from'./trackchangesui';import _0x8a6629 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x470cca{static get[_0x4520('0x8')](){return[_0x8a6629,_0x452101,_0x4520('0x6')];}static get['pluginName'](){return _0x4520('0x0');}set[_0x4520('0x3')](_0x3aa416){this[_0x4520('0x2')][_0x4520('0x4')][_0x4520('0x1')](_0x8a6629)[_0x4520('0x3')]=_0x3aa416;}get[_0x4520('0x3')](){return this['editor'][_0x4520('0x4')]['get'](_0x8a6629)[_0x4520('0x3')];}['addSuggestion'](_0x28f333){return this['editor']['plugins'][_0x4520('0x1')](_0x8a6629)['addSuggestionData'](_0x28f333);}[_0x4520('0x7')]({skipNotAttached:_0x532a65=!0x1,toJSON:_0x4fead8=!0x1}={}){return this[_0x4520('0x2')][_0x4520('0x4')]['get'](_0x8a6629)[_0x4520('0x7')]({'skipNotAttached':_0x532a65,'toJSON':_0x4fead8});}[_0x4520('0x5')](_0x2a5d43){return this[_0x4520('0x2')][_0x4520('0x4')][_0x4520('0x1')](_0x8a6629)['getSuggestion'](_0x2a5d43);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3373=['track-changes-data-invalid-editor-creator','config','createDocumentFragment','data','getDataWithDiscardedSuggestions','document','trackChangesData','rootsAttributes','push','getRootNames','editor','_adapter','plugins','map','discardAllSuggestions','Pagination','trackChangesData.editorCreator','TrackChangesDataGetter','CommentsRepository','TrackChangesData','editorCreator','define','reduce','div','get','end','function','getRootsAttributes','name','init','pluginName','TrackChangesEditing','getFullData','getSuggestions','createElement','constructor','execute','model','acceptAllSuggestions'];(function(_0x474fd1,_0x337335){const _0x536b0c=function(_0x48cf61){while(--_0x48cf61){_0x474fd1['push'](_0x474fd1['shift']());}};_0x536b0c(++_0x337335);}(_0x3373,0x18f));const _0x536b=function(_0x474fd1,_0x337335){_0x474fd1=_0x474fd1-0x0;let _0x536b0c=_0x3373[_0x474fd1];return _0x536b0c;};import{Plugin as _0x781f9a}from'ckeditor5/src/core';import{CKEditorError as _0x467c99}from'ckeditor5/src/utils';import _0xd75bf5 from'./trackchangesediting';import{sanitizeEditorConfig as _0x4406d2}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x536b('0x6')];export default class T extends _0x781f9a{static get['requires'](){return[_0xd75bf5];}static get[_0x536b('0x15')](){return _0x536b('0xa');}[_0x536b('0x14')](){const _0x2e9be2=this['editor'];if(_0x2e9be2[_0x536b('0x1f')][_0x536b('0xc')](_0x536b('0x7'),_0xc95c61=>{const _0x39ec86=_0x2e9be2[_0x536b('0x1c')][_0x536b('0x23')][_0x536b('0x0')]()['reduce']((_0x1eb0f2,_0x578cf2)=>(_0x1eb0f2[_0x578cf2]='',_0x1eb0f2),{});return _0x2e9be2[_0x536b('0x1a')]['create'](_0x39ec86,_0xc95c61);}),_0x536b('0x11')!=typeof _0x2e9be2[_0x536b('0x1f')]['get'](_0x536b('0x24'))[_0x536b('0xb')])throw new _0x467c99(_0x536b('0x1e'));}['getDataWithAcceptedSuggestions'](_0x205f06){return v(this[_0x536b('0x1')],!0x0,_0x205f06);}[_0x536b('0x22')](_0x2b1746){return v(this['editor'],!0x1,_0x2b1746);}}class P extends _0x781f9a{static get[_0x536b('0x15')](){return _0x536b('0x8');}constructor(_0x4f4e43){super(_0x4f4e43),this['result']=_0x536b('0x10');}[_0x536b('0x14')](){this[_0x536b('0x1')][_0x536b('0x3')][_0x536b('0xf')](_0x536b('0x9'))[_0x536b('0x2')]={'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[_0x536b('0x1')]['plugins'][_0x536b('0xf')](_0x536b('0x16'))[_0x536b('0x2')]=null;}}function D(_0x5afe27){return void 0x0!==_0x5afe27['getRootsAttributes'];}async function v(_0x4e6ab9,_0x11bef3,_0x37fdbf){const _0x4b05fb=_0x4406d2(_0x4e6ab9,w);_0x4b05fb[_0x536b('0x3')][_0x536b('0x26')](_0xd75bf5,P),_0x4b05fb[_0x536b('0x25')]=D(_0x4e6ab9)?_0x4e6ab9[_0x536b('0x12')]():void 0x0;const _0x5abc4e=document[_0x536b('0x20')](),_0x33f6bf=_0x4e6ab9[_0x536b('0x1f')][_0x536b('0xf')](_0x536b('0x24'))[_0x536b('0xb')],_0x350105=await _0x33f6bf(_0x4b05fb,()=>function(_0x116214){const _0x2f5f10=document[_0x536b('0x19')](_0x536b('0xe'));return _0x116214['appendChild'](_0x2f5f10),_0x2f5f10;}(_0x5abc4e));!function(_0x140bea,_0x3c242f){const _0xeae56d=_0x140bea[_0x536b('0x1c')][_0x536b('0x23')]['getRootNames']()[_0x536b('0xd')]((_0x2cf28a,_0x25b0fd)=>(_0x2cf28a[_0x25b0fd]=_0x140bea[_0x536b('0x21')][_0x536b('0xf')]({'rootName':_0x25b0fd}),_0x2cf28a),{}),_0x4b7e11=_0x140bea['plugins'][_0x536b('0xf')]('Users')['users'][_0x536b('0x4')](_0x5d67df=>({'id':_0x5d67df['id'],'name':_0x5d67df[_0x536b('0x13')]})),_0x22e06e=_0x140bea[_0x536b('0x3')][_0x536b('0xf')]('TrackChangesEditing')[_0x536b('0x18')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16b666=_0x3c242f[_0x536b('0x3')][_0x536b('0xf')]('Users'),_0x8b8166=_0x3c242f['plugins'][_0x536b('0xf')](_0x536b('0x16'));for(const _0x1b3f33 of _0x4b7e11)_0x16b666['getUser'](_0x1b3f33['id'])||_0x16b666['addUser'](_0x1b3f33);_0x16b666['me']||_0x16b666['useAnonymousUser']();for(const _0x39dec1 of _0x22e06e)_0x8b8166['addSuggestionData'](_0x39dec1);_0x3c242f['data']['set'](_0xeae56d);}(_0x4e6ab9,_0x350105),_0x350105[_0x536b('0x1b')](_0x11bef3?_0x536b('0x1d'):_0x536b('0x5'));const _0x49e58b=D(_0x350105)?_0x350105[_0x536b('0x17')](_0x37fdbf):_0x350105[_0x536b('0x21')][_0x536b('0xf')](_0x37fdbf);return await _0x350105['destroy'](),_0x49e58b;}
23
+ const _0x3766=['createElement','create','_adapter','editor','getRootNames','CommentsRepository','editorCreator','trackChangesData','useAnonymousUser','end','config','destroy','users','data','function','name','track-changes-data-invalid-editor-creator','appendChild','getDataWithDiscardedSuggestions','set','rootsAttributes','get','reduce','document','discardAllSuggestions','getDataWithAcceptedSuggestions','getSuggestions','getFullData','Pagination','model','TrackChangesData','push','pluginName','map','acceptAllSuggestions','div','result','getRootsAttributes','addSuggestionData','define','TrackChangesDataGetter','plugins','requires','init','TrackChangesEditing'];(function(_0x13120a,_0x376651){const _0x5e8ad0=function(_0x597a35){while(--_0x597a35){_0x13120a['push'](_0x13120a['shift']());}};_0x5e8ad0(++_0x376651);}(_0x3766,0xb4));const _0x5e8a=function(_0x13120a,_0x376651){_0x13120a=_0x13120a-0x0;let _0x5e8ad0=_0x3766[_0x13120a];return _0x5e8ad0;};import{Plugin as _0x10a507}from'ckeditor5/src/core';import{CKEditorError as _0x55fb24}from'ckeditor5/src/utils';import _0x28da66 from'./trackchangesediting';import{sanitizeEditorConfig as _0x17834a}from'ckeditor5-collaboration/src/collaboration-core';const w=[_0x5e8a('0x1c')];export default class T extends _0x10a507{static get[_0x5e8a('0x2a')](){return[_0x28da66];}static get[_0x5e8a('0x20')](){return _0x5e8a('0x1e');}[_0x5e8a('0x2b')](){const _0x2a075f=this[_0x5e8a('0x3')];if(_0x2a075f[_0x5e8a('0xa')][_0x5e8a('0x27')]('trackChangesData.editorCreator',_0x18ca8d=>{const _0x23da87=_0x2a075f[_0x5e8a('0x1d')][_0x5e8a('0x17')][_0x5e8a('0x4')]()[_0x5e8a('0x16')]((_0xfc79cc,_0x38346f)=>(_0xfc79cc[_0x38346f]='',_0xfc79cc),{});return _0x2a075f['constructor'][_0x5e8a('0x1')](_0x23da87,_0x18ca8d);}),_0x5e8a('0xe')!=typeof _0x2a075f[_0x5e8a('0xa')][_0x5e8a('0x15')](_0x5e8a('0x7'))[_0x5e8a('0x6')])throw new _0x55fb24(_0x5e8a('0x10'));}[_0x5e8a('0x19')](_0x28b84f){return v(this[_0x5e8a('0x3')],!0x0,_0x28b84f);}[_0x5e8a('0x12')](_0x31cf14){return v(this['editor'],!0x1,_0x31cf14);}}class P extends _0x10a507{static get[_0x5e8a('0x20')](){return _0x5e8a('0x28');}constructor(_0x45f301){super(_0x45f301),this[_0x5e8a('0x24')]=_0x5e8a('0x9');}['init'](){this['editor']['plugins']['get'](_0x5e8a('0x5'))[_0x5e8a('0x2')]={'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[_0x5e8a('0x3')][_0x5e8a('0x29')][_0x5e8a('0x15')](_0x5e8a('0x2c'))[_0x5e8a('0x2')]=null;}}function D(_0x55ed48){return void 0x0!==_0x55ed48[_0x5e8a('0x25')];}async function v(_0x4cb9d8,_0x5bd8de,_0x5d4de8){const _0x2ed84b=_0x17834a(_0x4cb9d8,w);_0x2ed84b[_0x5e8a('0x29')][_0x5e8a('0x1f')](_0x28da66,P),_0x2ed84b[_0x5e8a('0x14')]=D(_0x4cb9d8)?_0x4cb9d8[_0x5e8a('0x25')]():void 0x0;const _0x33e8ec=document['createDocumentFragment'](),_0x22410f=_0x4cb9d8[_0x5e8a('0xa')][_0x5e8a('0x15')]('trackChangesData')[_0x5e8a('0x6')],_0x64c24f=await _0x22410f(_0x2ed84b,()=>function(_0x70247f){const _0x520094=document[_0x5e8a('0x0')](_0x5e8a('0x23'));return _0x70247f[_0x5e8a('0x11')](_0x520094),_0x520094;}(_0x33e8ec));!function(_0x56a864,_0x101ba8){const _0x44587a=_0x56a864['model'][_0x5e8a('0x17')][_0x5e8a('0x4')]()['reduce']((_0x14cde1,_0x2dc654)=>(_0x14cde1[_0x2dc654]=_0x56a864[_0x5e8a('0xd')][_0x5e8a('0x15')]({'rootName':_0x2dc654}),_0x14cde1),{}),_0x5061fd=_0x56a864[_0x5e8a('0x29')][_0x5e8a('0x15')]('Users')[_0x5e8a('0xc')][_0x5e8a('0x21')](_0x114008=>({'id':_0x114008['id'],'name':_0x114008[_0x5e8a('0xf')]})),_0x4409ec=_0x56a864[_0x5e8a('0x29')][_0x5e8a('0x15')](_0x5e8a('0x2c'))[_0x5e8a('0x1a')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c2c6f=_0x101ba8[_0x5e8a('0x29')][_0x5e8a('0x15')]('Users'),_0x31d2b1=_0x101ba8[_0x5e8a('0x29')][_0x5e8a('0x15')](_0x5e8a('0x2c'));for(const _0x10e057 of _0x5061fd)_0x2c2c6f['getUser'](_0x10e057['id'])||_0x2c2c6f['addUser'](_0x10e057);_0x2c2c6f['me']||_0x2c2c6f[_0x5e8a('0x8')]();for(const _0x3c031b of _0x4409ec)_0x31d2b1[_0x5e8a('0x26')](_0x3c031b);_0x101ba8['data'][_0x5e8a('0x13')](_0x44587a);}(_0x4cb9d8,_0x64c24f),_0x64c24f['execute'](_0x5bd8de?_0x5e8a('0x22'):_0x5e8a('0x18'));const _0x20c845=D(_0x64c24f)?_0x64c24f[_0x5e8a('0x1b')](_0x5d4de8):_0x64c24f[_0x5e8a('0xd')]['get'](_0x5d4de8);return await _0x64c24f[_0x5e8a('0xb')](),_0x20c845;}