@ckeditor/ckeditor5-track-changes 32.0.0 → 34.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 (114) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/track-changes.js +5 -0
  4. package/build/translations/az.js +1 -0
  5. package/build/translations/cs.js +1 -0
  6. package/build/translations/da.js +1 -0
  7. package/build/translations/de.js +1 -0
  8. package/build/translations/el.js +1 -0
  9. package/build/translations/en-au.js +1 -0
  10. package/build/translations/es.js +1 -0
  11. package/build/translations/et.js +1 -0
  12. package/build/translations/fr.js +1 -0
  13. package/build/translations/gl.js +1 -0
  14. package/build/translations/hi.js +1 -0
  15. package/build/translations/hr.js +1 -0
  16. package/build/translations/id.js +1 -0
  17. package/build/translations/it.js +1 -0
  18. package/build/translations/nl.js +1 -0
  19. package/build/translations/pl.js +1 -0
  20. package/build/translations/pt-br.js +1 -0
  21. package/build/translations/sk.js +1 -0
  22. package/build/translations/sr-latn.js +1 -0
  23. package/build/translations/sr.js +1 -0
  24. package/build/translations/tk.js +1 -0
  25. package/build/translations/tr.js +1 -0
  26. package/build/translations/zh-cn.js +1 -0
  27. package/build/translations/zh.js +1 -0
  28. package/ckeditor5-metadata.json +3 -0
  29. package/lang/translations/az.po +387 -0
  30. package/lang/translations/cs.po +31 -31
  31. package/lang/translations/da.po +1 -1
  32. package/lang/translations/de.po +1 -1
  33. package/lang/translations/el.po +387 -0
  34. package/lang/translations/en-au.po +6 -6
  35. package/lang/translations/es.po +35 -35
  36. package/lang/translations/fr.po +1 -1
  37. package/lang/translations/gl.po +3 -3
  38. package/lang/translations/hi.po +1 -1
  39. package/lang/translations/hr.po +14 -14
  40. package/lang/translations/id.po +370 -0
  41. package/lang/translations/it.po +1 -1
  42. package/lang/translations/nl.po +9 -9
  43. package/lang/translations/pl.po +1 -1
  44. package/lang/translations/pt-br.po +1 -1
  45. package/lang/translations/sk.po +58 -58
  46. package/lang/translations/sr-latn.po +3 -3
  47. package/lang/translations/sr.po +3 -3
  48. package/lang/translations/tk.po +1 -1
  49. package/lang/translations/tr.po +1 -1
  50. package/lang/translations/zh-cn.po +5 -5
  51. package/package.json +4 -7
  52. package/src/commands/acceptallsuggestionscommand.js +1 -1
  53. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  54. package/src/commands/acceptsuggestioncommand.js +1 -1
  55. package/src/commands/discardallsuggestionscommand.js +1 -1
  56. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  57. package/src/commands/discardsuggestioncommand.js +1 -1
  58. package/src/commands/trackchangescommand.js +1 -1
  59. package/src/index.js +23 -0
  60. package/src/integrations/alignment.js +1 -1
  61. package/src/integrations/basicstyles.js +1 -1
  62. package/src/integrations/blockquote.js +1 -1
  63. package/src/integrations/codeblock.js +1 -1
  64. package/src/integrations/comments.js +1 -1
  65. package/src/integrations/deletecommand.js +1 -1
  66. package/src/integrations/entercommand.js +1 -1
  67. package/src/integrations/font.js +1 -1
  68. package/src/integrations/heading.js +1 -1
  69. package/src/integrations/highlight.js +1 -1
  70. package/src/integrations/horizontalline.js +1 -1
  71. package/src/integrations/image.js +1 -1
  72. package/src/integrations/indent.js +1 -1
  73. package/src/integrations/inputcommand.js +1 -1
  74. package/src/integrations/link.js +1 -1
  75. package/src/integrations/list.js +1 -1
  76. package/src/integrations/mediaembed.js +1 -1
  77. package/src/integrations/mention.js +1 -1
  78. package/src/integrations/pagebreak.js +1 -1
  79. package/src/integrations/paragraph.js +1 -1
  80. package/src/integrations/removeformat.js +1 -1
  81. package/src/integrations/restrictededitingmode.js +1 -1
  82. package/src/integrations/shiftentercommand.js +1 -1
  83. package/src/integrations/standardeditingmode.js +1 -1
  84. package/src/integrations/table.js +1 -1
  85. package/src/integrations/tableclipboard.js +1 -1
  86. package/src/integrations/tableheadings.js +1 -1
  87. package/src/integrations/tablemergesplit.js +1 -1
  88. package/src/integrations/title.js +1 -1
  89. package/src/integrations/undo.js +1 -1
  90. package/src/integrations/utils.js +1 -1
  91. package/src/suggestion.js +1 -1
  92. package/src/suggestiondescriptionfactory.js +1 -1
  93. package/src/trackchanges.js +1 -1
  94. package/src/trackchangesdata.js +1 -1
  95. package/src/trackchangesediting.js +1 -1
  96. package/src/trackchangesui.js +1 -1
  97. package/src/ui/suggestioncontroller.js +1 -1
  98. package/src/ui/view/basesuggestionthreadview.js +1 -1
  99. package/src/ui/view/suggestionthreadview.js +1 -1
  100. package/src/utils/common-translations.js +23 -0
  101. package/src/utils/getselectedsuggestions.js +1 -1
  102. package/src/utils/hashobject.js +1 -1
  103. package/src/utils/normalizedescription.js +1 -1
  104. package/src/utils/sortsuggestions.js +1 -1
  105. package/theme/icons/track-changes-accept.svg +1 -1
  106. package/theme/icons/track-changes-discard.svg +1 -1
  107. package/theme/icons/track-changes.svg +1 -1
  108. package/theme/integrations/horizontalline.css +0 -15
  109. package/theme/integrations/image.css +0 -55
  110. package/theme/integrations/mediaembed.css +0 -19
  111. package/theme/integrations/pagebreak.css +0 -15
  112. package/theme/integrations/table.css +0 -147
  113. package/theme/suggestion.css +0 -87
  114. package/theme/suggestionmarker.css +0 -161
package/src/suggestion.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x23c8=['decorate','start','markers','hasComments','attributes','head','map','getRange','getFirstRange','nodeAfter','discard','subType','delete','length','split','suggestion:','from','clear','push','getItems','getAllAdjacentSuggestions','getContainedElement','isInContent','createdAt','_model','nodeBefore','commentThread','filter','getMarkers','getMarkerNames','type','onAttributesChange','_markerNames','add','end','_onAttributesChange','_onAccept','set','isMultiRange','previous','removeMarkers','data','author','addMarker','change','addRange','accept','removeMarker','getRanges','toJSON','_saved','removeAttribute','setAttribute','_onDiscard','next','getFirstMarker'];(function(_0x1d3563,_0x23c811){const _0x544bf7=function(_0x51c79b){while(--_0x51c79b){_0x1d3563['push'](_0x1d3563['shift']());}};_0x544bf7(++_0x23c811);}(_0x23c8,0xde));const _0x544b=function(_0x1d3563,_0x23c811){_0x1d3563=_0x1d3563-0x0;let _0x544bf7=_0x23c8[_0x1d3563];return _0x544bf7;};import{Element as _0x50db9b}from'ckeditor5/src/engine';import{ObservableMixin as _0x1d3549,mix as _0x2e5b20,uid as _0x57ae7b}from'ckeditor5/src/utils';import{cloneDeep as _0x5e0a12,isEqual as _0x1b1512,set as _0x304ede,unset as _0x55473e}from'lodash-es';export default class o{constructor(_0x4fa01f,_0x4fd520){this['id']=_0x4fd520['id'],this[_0x544b('0x20')]=_0x4fd520[_0x544b('0x20')],this[_0x544b('0xd')]=_0x4fd520['subType']||null,this[_0x544b('0x2c')]=_0x4fd520[_0x544b('0x2c')],this['data']=null,this[_0x544b('0x1a')]=_0x4fa01f,this['_onAccept']=_0x4fd520['onAccept'],this['_onDiscard']=_0x4fd520['onDiscard'],this[_0x544b('0x25')]=_0x4fd520[_0x544b('0x21')],this[_0x544b('0x22')]=new Set(),this['set'](_0x544b('0x19'),null),this[_0x544b('0x27')](_0x544b('0x6'),_0x4fd520[_0x544b('0x6')]||{}),this[_0x544b('0x27')](_0x544b('0x29'),null),this['set'](_0x544b('0x0'),null),this['set'](_0x544b('0x1c'),null),this[_0x544b('0x27')](_0x544b('0x34'),!0x1),this[_0x544b('0x2')](_0x544b('0x30')),this[_0x544b('0x2')](_0x544b('0xc'));}get[_0x544b('0x7')](){let _0x4ca845=this;for(;_0x4ca845[_0x544b('0x29')];)_0x4ca845=_0x4ca845['previous'];return _0x4ca845;}get[_0x544b('0x5')](){return!!this[_0x544b('0x1c')]&&this[_0x544b('0x1c')][_0x544b('0xf')]>0x0;}get[_0x544b('0x28')](){if(0x0==this[_0x544b('0x22')]['size'])return!0x1;return 0x6==Array[_0x544b('0x12')](this[_0x544b('0x22')])[0x0][_0x544b('0x10')](':')['length'];}get[_0x544b('0x18')](){return null!==this[_0x544b('0x1')]();}['addMarkerName'](_0xd89279){this[_0x544b('0x22')][_0x544b('0x23')](_0xd89279);}['getMarkerNames'](){return Array[_0x544b('0x12')](this['_markerNames']);}[_0x544b('0x1e')](){return this[_0x544b('0x1f')]()[_0x544b('0x8')](_0x25ab97=>this[_0x544b('0x1a')][_0x544b('0x4')]['get'](_0x25ab97))[_0x544b('0x1d')](_0x573b43=>_0x573b43);}[_0x544b('0x1')](){return this['getMarkers']()[0x0]||null;}[_0x544b('0x2a')](){this['_model']['change'](_0x2dc83a=>{for(const _0x225566 of this['getMarkers']())_0x2dc83a[_0x544b('0x31')](_0x225566);}),this[_0x544b('0x22')][_0x544b('0x13')]();}[_0x544b('0x31')](_0x303126){this[_0x544b('0x1a')][_0x544b('0x2e')](_0x5c7092=>{_0x5c7092[_0x544b('0x31')](_0x303126);}),this['_markerNames'][_0x544b('0xe')](_0x303126);}[_0x544b('0x2f')](_0x2d7a63){const _0x13f085=_0x544b('0x11')+this[_0x544b('0x20')]+':'+this[_0x544b('0xd')]+':'+this['id']+':'+this['author']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x13f085),this[_0x544b('0x1a')][_0x544b('0x2e')](_0x46386d=>{_0x46386d[_0x544b('0x2d')](_0x13f085,{'range':_0x2d7a63,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4bc4ec){for(const _0x584e55 of this[_0x544b('0x32')]())if(_0x584e55['isIntersecting'](_0x4bc4ec))return!0x0;return!0x1;}[_0x544b('0x32')](){return this[_0x544b('0x1e')]()['map'](_0x5c7cc4=>_0x5c7cc4[_0x544b('0x9')]());}['getItems'](){return this[_0x544b('0x32')]()['reduce']((_0x1c7ce9,_0x58dfa1)=>[..._0x1c7ce9,..._0x58dfa1[_0x544b('0x15')]()],[]);}[_0x544b('0xa')](){return this[_0x544b('0x1')]()[_0x544b('0x9')]();}[_0x544b('0x17')](){const _0x23f6de=this['getRanges']();if(0x1!=_0x23f6de[_0x544b('0xf')])return null;const _0x5ec041=_0x23f6de[0x0],_0x1ab7b0=_0x5ec041[_0x544b('0x3')][_0x544b('0xb')],_0x5c2aa7=_0x5ec041[_0x544b('0x24')][_0x544b('0x1b')];return _0x1ab7b0 instanceof _0x50db9b?_0x1ab7b0!=_0x5c2aa7?null:_0x1ab7b0:null;}['accept'](){this[_0x544b('0x26')](this[_0x544b('0x32')](),this[_0x544b('0x2b')],this['attributes']),this[_0x544b('0x2a')]();}[_0x544b('0xc')](){this[_0x544b('0x37')](this['getRanges'](),this[_0x544b('0x2b')],this[_0x544b('0x6')]),this['removeMarkers']();}[_0x544b('0x16')](){const _0x35661b=[];let _0x542a56=this['head'];for(;_0x542a56;)_0x35661b[_0x544b('0x14')](_0x542a56),_0x542a56=_0x542a56[_0x544b('0x0')];return _0x35661b;}[_0x544b('0x36')](_0x455284,_0x26d41a){const _0x3e8efe=_0x5e0a12(this[_0x544b('0x6')]);_0x304ede(_0x3e8efe,_0x455284,_0x26d41a),_0x1b1512(_0x3e8efe,this[_0x544b('0x6')])||(this[_0x544b('0x6')]=_0x3e8efe,this[_0x544b('0x25')](_0x3e8efe));}[_0x544b('0x35')](_0x2bef18){const _0xf70c01=_0x5e0a12(this[_0x544b('0x6')]);_0x55473e(_0xf70c01,_0x2bef18),_0x1b1512(_0xf70c01,this['attributes'])||(this[_0x544b('0x6')]=_0xf70c01,this[_0x544b('0x25')](this[_0x544b('0x6')]));}[_0x544b('0x33')](){return{'id':this['id'],'type':this[_0x544b('0xd')]?this[_0x544b('0x20')]+':'+this[_0x544b('0xd')]:this[_0x544b('0x20')],'authorId':this[_0x544b('0x2c')]['id'],'createdAt':this[_0x544b('0x19')],'hasComments':this[_0x544b('0x5')],'data':this['data'],'attributes':this[_0x544b('0x6')]};}static['getMultiRangeId'](){return _0x57ae7b()['substr'](0x1,0x5);}}_0x2e5b20(o,_0x1d3549);
23
+ const _0x589b=['removeMarker','accept','_onAttributesChange','_onAccept','addMarker','push','isInContent','decorate','end','getAllAdjacentSuggestions','getContainedElement','createdAt','isMultiRange','subType','markers','data','length','addMarkerName','getMarkerNames','isIntersectingWithRange','from','author','getRange','change','filter','onDiscard','attributes','set','onAccept','_saved','map','getMultiRangeId','getFirstRange','isIntersecting','discard','previous','suggestion:','commentThread','next','type','split','_markerNames','onAttributesChange','getRanges','_onDiscard','getMarkers','removeMarkers','toJSON','hasComments','clear','removeAttribute','getFirstMarker','_model','delete','getItems','head'];(function(_0x334450,_0x589b54){const _0x57b25f=function(_0x5b3cf1){while(--_0x5b3cf1){_0x334450['push'](_0x334450['shift']());}};_0x57b25f(++_0x589b54);}(_0x589b,0x13b));const _0x57b2=function(_0x334450,_0x589b54){_0x334450=_0x334450-0x0;let _0x57b25f=_0x589b[_0x334450];return _0x57b25f;};import{Element as _0x1507e8}from'ckeditor5/src/engine';import{ObservableMixin as _0x488d66,mix as _0x131de3,uid as _0x10211a}from'ckeditor5/src/utils';import{cloneDeep as _0x48e858,isEqual as _0x2e8fec,set as _0x375b40,unset as _0x592288}from'lodash-es';export default class o{constructor(_0x5290f8,_0x322566){this['id']=_0x322566['id'],this[_0x57b2('0x4')]=_0x322566[_0x57b2('0x4')],this[_0x57b2('0x22')]=_0x322566[_0x57b2('0x22')]||null,this[_0x57b2('0x2a')]=_0x322566[_0x57b2('0x2a')],this['data']=null,this[_0x57b2('0x11')]=_0x5290f8,this['_onAccept']=_0x322566[_0x57b2('0x31')],this[_0x57b2('0x9')]=_0x322566[_0x57b2('0x2e')],this[_0x57b2('0x17')]=_0x322566[_0x57b2('0x7')],this[_0x57b2('0x6')]=new Set(),this['set'](_0x57b2('0x20'),null),this[_0x57b2('0x30')](_0x57b2('0x2f'),_0x322566['attributes']||{}),this['set'](_0x57b2('0x0'),null),this['set']('next',null),this['set'](_0x57b2('0x2'),null),this[_0x57b2('0x30')](_0x57b2('0x32'),!0x1),this['decorate'](_0x57b2('0x16')),this[_0x57b2('0x1c')]('discard');}get['head'](){let _0x4130be=this;for(;_0x4130be[_0x57b2('0x0')];)_0x4130be=_0x4130be[_0x57b2('0x0')];return _0x4130be;}get[_0x57b2('0xd')](){return!!this[_0x57b2('0x2')]&&this[_0x57b2('0x2')][_0x57b2('0x25')]>0x0;}get[_0x57b2('0x21')](){if(0x0==this[_0x57b2('0x6')]['size'])return!0x1;return 0x6==Array['from'](this[_0x57b2('0x6')])[0x0][_0x57b2('0x5')](':')[_0x57b2('0x25')];}get[_0x57b2('0x1b')](){return null!==this['getFirstMarker']();}[_0x57b2('0x26')](_0x2ac597){this[_0x57b2('0x6')]['add'](_0x2ac597);}[_0x57b2('0x27')](){return Array[_0x57b2('0x29')](this['_markerNames']);}[_0x57b2('0xa')](){return this[_0x57b2('0x27')]()[_0x57b2('0x33')](_0x2140df=>this[_0x57b2('0x11')][_0x57b2('0x23')]['get'](_0x2140df))[_0x57b2('0x2d')](_0x55adcb=>_0x55adcb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}[_0x57b2('0xb')](){this['_model'][_0x57b2('0x2c')](_0x262e31=>{for(const _0x14ca33 of this['getMarkers']())_0x262e31[_0x57b2('0x15')](_0x14ca33);}),this[_0x57b2('0x6')][_0x57b2('0xe')]();}['removeMarker'](_0x5a5164){this[_0x57b2('0x11')][_0x57b2('0x2c')](_0x13fef5=>{_0x13fef5[_0x57b2('0x15')](_0x5a5164);}),this[_0x57b2('0x6')][_0x57b2('0x12')](_0x5a5164);}['addRange'](_0x537eb7){const _0x4c2f8b=_0x57b2('0x1')+this['type']+':'+this[_0x57b2('0x22')]+':'+this['id']+':'+this['author']['id']+':'+o[_0x57b2('0x34')]();this[_0x57b2('0x26')](_0x4c2f8b),this[_0x57b2('0x11')][_0x57b2('0x2c')](_0x3164ec=>{_0x3164ec[_0x57b2('0x19')](_0x4c2f8b,{'range':_0x537eb7,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x57b2('0x28')](_0x1a1d83){for(const _0x1a0dd8 of this[_0x57b2('0x8')]())if(_0x1a0dd8[_0x57b2('0x36')](_0x1a1d83))return!0x0;return!0x1;}['getRanges'](){return this[_0x57b2('0xa')]()[_0x57b2('0x33')](_0x429d23=>_0x429d23[_0x57b2('0x2b')]());}['getItems'](){return this[_0x57b2('0x8')]()['reduce']((_0x2ba7e7,_0x516c96)=>[..._0x2ba7e7,..._0x516c96[_0x57b2('0x13')]()],[]);}[_0x57b2('0x35')](){return this[_0x57b2('0x10')]()[_0x57b2('0x2b')]();}[_0x57b2('0x1f')](){const _0x54dffb=this[_0x57b2('0x8')]();if(0x1!=_0x54dffb[_0x57b2('0x25')])return null;const _0x3099a4=_0x54dffb[0x0],_0x5c25e6=_0x3099a4['start']['nodeAfter'],_0x88bfbc=_0x3099a4[_0x57b2('0x1d')]['nodeBefore'];return _0x5c25e6 instanceof _0x1507e8?_0x5c25e6!=_0x88bfbc?null:_0x5c25e6:null;}[_0x57b2('0x16')](){this[_0x57b2('0x18')](this['getRanges'](),this[_0x57b2('0x24')],this[_0x57b2('0x2f')]),this[_0x57b2('0xb')]();}[_0x57b2('0x37')](){this['_onDiscard'](this[_0x57b2('0x8')](),this[_0x57b2('0x24')],this[_0x57b2('0x2f')]),this[_0x57b2('0xb')]();}[_0x57b2('0x1e')](){const _0x39f5e1=[];let _0x5a60=this[_0x57b2('0x14')];for(;_0x5a60;)_0x39f5e1[_0x57b2('0x1a')](_0x5a60),_0x5a60=_0x5a60[_0x57b2('0x3')];return _0x39f5e1;}['setAttribute'](_0xba1bd1,_0x343a00){const _0x5d3032=_0x48e858(this['attributes']);_0x375b40(_0x5d3032,_0xba1bd1,_0x343a00),_0x2e8fec(_0x5d3032,this[_0x57b2('0x2f')])||(this[_0x57b2('0x2f')]=_0x5d3032,this['_onAttributesChange'](_0x5d3032));}[_0x57b2('0xf')](_0x5ef570){const _0x1c5ad3=_0x48e858(this[_0x57b2('0x2f')]);_0x592288(_0x1c5ad3,_0x5ef570),_0x2e8fec(_0x1c5ad3,this[_0x57b2('0x2f')])||(this[_0x57b2('0x2f')]=_0x1c5ad3,this[_0x57b2('0x17')](this['attributes']));}[_0x57b2('0xc')](){return{'id':this['id'],'type':this[_0x57b2('0x22')]?this['type']+':'+this[_0x57b2('0x22')]:this[_0x57b2('0x4')],'authorId':this['author']['id'],'createdAt':this[_0x57b2('0x20')],'hasComments':this[_0x57b2('0xd')],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x10211a()['substr'](0x1,0x5);}}_0x131de3(o,_0x488d66);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class c{constructor(_0x3f8371,_0xf4d594){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_schema']=_0x3f8371,this['_locale']=_0xf4d594;}['getDescriptions'](_0x44a0f9){const _0x26b6e9=[];for(let _0x200c3d=0x0;_0x200c3d<_0x44a0f9['length'];_0x200c3d++){const _0x7d516f=_0x44a0f9[_0x200c3d];if(!_0x7d516f['isInContent'])continue;let _0x58e49c=!0x1;for(const _0x43a8dd of this['_customCallbacks']){const _0x4f7870=_0x43a8dd(_0x7d516f);if(_0x4f7870){_0x4f7870['type']&&_0x26b6e9['push'](_0x4f7870),_0x58e49c=!0x0;break;}}if(!_0x58e49c){this['_addDescriptionItems'](_0x26b6e9,_0x7d516f);const _0x432364=_0x44a0f9[_0x200c3d+0x1];if(_0x432364&&!_0x7d516f['getFirstRange']()['end']['isEqual'](_0x432364['getFirstRange']()['start'])){const _0x576208=_0x26b6e9[_0x26b6e9['length']-0x1],_0x619829='insertion'==_0x7d516f['type']?'add':'remove';_0x576208&&'text'==_0x576208['type']&&(_0x576208[_0x619829]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x26b6e9);}['registerDescriptionCallback'](_0x246be4){this['_customCallbacks']['push'](_0x246be4);}['registerElementLabel'](_0x1ec21a,_0x174a9e){this['_itemLabels']['set'](_0x1ec21a,_0x174a9e);}['getItemLabel'](_0x3b2d98,_0x86c255=0x1){const _0x50cfdf=this['_itemLabels']['get'](_0x3b2d98)||_0x3b2d98;return'function'==typeof _0x50cfdf?_0x50cfdf(_0x86c255):0x1!==_0x86c255?_0x86c255+'\x20'+_0x50cfdf+'s':''+_0x50cfdf;}['_addDescriptionItems'](_0x403f15,_0x131b19){const _0x25ff90=_0x131b19['getFirstRange']()['getWalker'](),_0x1e6044='insertion'==_0x131b19['type']?'add':'remove';for(const _0xd07294 of _0x25ff90){const _0x2c553a=_0xd07294['item'],_0x1a8bc9=_0x403f15[_0x403f15['length']-0x1];if(_0x2c553a['is']('textProxy'))_0x1a8bc9&&_0x1a8bc9['type']['indexOf']('Container')>-0x1&&_0x403f15['pop'](),_0x1a8bc9&&'text'==_0x1a8bc9['type']?_0x1a8bc9[_0x1e6044]+=_0x2c553a['data']:_0x403f15['push']({'type':'text','add':'add'==_0x1e6044?_0x2c553a['data']:'','remove':'remove'==_0x1e6044?_0x2c553a['data']:''});else{if(this['_schema']['isObject'](_0x2c553a)){if(_0x1a8bc9&&_0x1a8bc9['type']['indexOf']('Container')>-0x1&&_0x403f15['pop'](),'elementEnd'==_0xd07294['type'])continue;_0x1a8bc9&&_0x1a8bc9['type']==_0x1e6044+'Object'&&_0x1a8bc9['name']==_0x2c553a['name']?_0x1a8bc9['quantity']++:_0x403f15['push']({'type':_0x1e6044+'Object','name':_0x2c553a['name'],'quantity':0x1}),_0x25ff90['skip'](_0x4e0cee=>!('elementEnd'==_0x4e0cee['type']&&_0x4e0cee['item']==_0x2c553a));}else{if(this['_schema']['checkChild'](_0x2c553a,'$text')||_0x2c553a['is']('element','softBreak')){if('add'==_0x1e6044&&'elementStart'==_0xd07294['type']||'remove'==_0x1e6044&&'elementEnd'==_0xd07294['type'])continue;if(_0x1a8bc9&&-0x1==_0x1a8bc9['type']['indexOf']('Container')){'text'==_0x1a8bc9['type']&&(_0x1a8bc9[_0x1e6044]+='\x0a');continue;}let _0x388d45;if(_0x388d45='add'==_0x1e6044?_0x2c553a['nextSibling']&&!this['_schema']['isObject'](_0x2c553a['nextSibling'])?_0x2c553a['nextSibling']:null:_0x2c553a['previousSibling']&&!this['_schema']['isObject'](_0x2c553a['previousSibling'])?_0x2c553a['previousSibling']:null,_0x2c553a['isEmpty']||_0x388d45&&_0x388d45['isEmpty']){const _0x303923=_0x388d45&&_0x388d45['isEmpty']?_0x388d45['name']:_0x2c553a['name'];_0x1a8bc9&&_0x1a8bc9['type']==_0x1e6044+'EmptyContainer'&&_0x1a8bc9['name']==_0x303923?_0x1a8bc9['quantity']++:_0x403f15['push']({'type':_0x1e6044+'EmptyContainer','name':_0x303923,'quantity':0x1});}else _0x403f15['push']({'type':_0x1e6044+'Container','name':_0x2c553a['name']});}}}}}['_resolveDescriptionItems'](_0xa71623){const {t:t}=this['_locale'],_0x10ece7=[];for(const _0x201edb of _0xa71623){switch(_0x201edb['type']){case'text':if(_0x201edb['add']=_0x201edb['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x201edb['remove']=_0x201edb['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x201edb['add']&&''!=_0x201edb['remove']){_0x10ece7['push']({'type':'replace','content':t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},['\x22'+_0x201edb['remove']+'\x22','\x22'+_0x201edb['add']+'\x22'])});continue;}if(null!=_0x201edb['add']['match'](/^ +$/)){_0x10ece7['push']({'type':'insertion','content':t('*Insert:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x201edb['add']['length']))});continue;}if(null!=_0x201edb['remove']['match'](/^ +$/)){_0x10ece7['push']({'type':'deletion','content':t('*Remove:*\x20%0',t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x201edb['remove']['length']))});continue;}if(''!=_0x201edb['add']){_0x10ece7['push']({'type':'insertion','content':t('*Insert:*\x20%0','\x22'+_0x201edb['add']+'\x22')});continue;}_0x10ece7['push']({'type':'deletion','content':t('*Remove:*\x20%0','\x22'+_0x201edb['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x10ece7['push']({'type':'insertion','content':t('*Insert:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x10ece7['push']({'type':'deletion','content':t('*Remove:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;case'addContainer':_0x10ece7['push']({'type':'insertion','content':t('*Split:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;case'removeContainer':_0x10ece7['push']({'type':'deletion','content':t('*Merge:*\x20%0',this['getItemLabel'](_0x201edb['name'],_0x201edb['quantity']))});continue;}_0x10ece7['push'](_0x201edb);}return _0x10ece7;}}
23
+ const _0x5792=['start','getItemLabel','*Merge:*\x20%0','indexOf','set','element','addEmptyContainer','remove','EmptyContainer','getFirstRange','_addDescriptionItems','name','addObject','deletion','length','insertion','replace','*Split:*\x20%0','softBreak','end','data','_schema','$text','*Insert:*\x20%0','removeContainer','_resolveDescriptionItems','text','addContainer','Container','*Remove:*\x20%0','isEqual','checkChild','elementStart','isEmpty','getDescriptions','_itemLabels','pop','_locale','elementEnd','add','item','push','Object','isObject','skip','_customCallbacks','ELEMENT_SPACE','function','nextSibling','previousSibling','get','type','REPLACE_TEXT','$1\x20$2','removeEmptyContainer','quantity','isInContent'];(function(_0x2b3d44,_0x57926c){const _0x323ef5=function(_0x578719){while(--_0x578719){_0x2b3d44['push'](_0x2b3d44['shift']());}};_0x323ef5(++_0x57926c);}(_0x5792,0x119));const _0x323e=function(_0x2b3d44,_0x57926c){_0x2b3d44=_0x2b3d44-0x0;let _0x323ef5=_0x5792[_0x2b3d44];return _0x323ef5;};import{getTranslation as _0x274fb8}from'./utils/common-translations';export default class l{constructor(_0xb11b8f,_0x1c3fd2){this[_0x323e('0x31')]=[],this[_0x323e('0x27')]=new Map(),this[_0x323e('0x19')]=_0xb11b8f,this['_locale']=_0x1c3fd2;}[_0x323e('0x26')](_0xd6ac34){const _0x1fbc90=[];for(let _0x81ba03=0x0;_0x81ba03<_0xd6ac34['length'];_0x81ba03++){const _0x3f136f=_0xd6ac34[_0x81ba03];if(!_0x3f136f[_0x323e('0x3')])continue;let _0x3f1a59=!0x1;for(const _0x250d44 of this[_0x323e('0x31')]){const _0x261652=_0x250d44(_0x3f136f);if(_0x261652){_0x261652[_0x323e('0x37')]&&_0x1fbc90[_0x323e('0x2d')](_0x261652),_0x3f1a59=!0x0;break;}}if(!_0x3f1a59){this[_0x323e('0xe')](_0x1fbc90,_0x3f136f);const _0x308284=_0xd6ac34[_0x81ba03+0x1];if(_0x308284&&!_0x3f136f[_0x323e('0xd')]()[_0x323e('0x17')][_0x323e('0x22')](_0x308284[_0x323e('0xd')]()[_0x323e('0x4')])){const _0x5a7d06=_0x1fbc90[_0x1fbc90['length']-0x1],_0x22331f=_0x323e('0x13')==_0x3f136f[_0x323e('0x37')]?'add':_0x323e('0xb');_0x5a7d06&&'text'==_0x5a7d06['type']&&(_0x5a7d06[_0x22331f]+='\x0a');}}}return this['_resolveDescriptionItems'](_0x1fbc90);}['registerDescriptionCallback'](_0x4a08bb){this['_customCallbacks'][_0x323e('0x2d')](_0x4a08bb);}['registerElementLabel'](_0x44fb97,_0x42b36a){this[_0x323e('0x27')][_0x323e('0x8')](_0x44fb97,_0x42b36a);}[_0x323e('0x5')](_0x58f875,_0xe1b1a4=0x1){const _0x4d201b=this[_0x323e('0x27')][_0x323e('0x36')](_0x58f875)||_0x58f875;return _0x323e('0x33')==typeof _0x4d201b?_0x4d201b(_0xe1b1a4):0x1!==_0xe1b1a4?_0xe1b1a4+'\x20'+_0x4d201b+'s':''+_0x4d201b;}[_0x323e('0xe')](_0x177dcf,_0x3ea43f){const _0x993c95=_0x3ea43f['getFirstRange']()['getWalker'](),_0x3d335f=_0x323e('0x13')==_0x3ea43f['type']?'add':_0x323e('0xb');for(const _0x139d73 of _0x993c95){const _0x5448e7=_0x139d73[_0x323e('0x2c')],_0x26fcd4=_0x177dcf[_0x177dcf['length']-0x1];if(_0x5448e7['is']('textProxy'))_0x26fcd4&&_0x26fcd4['type'][_0x323e('0x7')](_0x323e('0x20'))>-0x1&&_0x177dcf[_0x323e('0x28')](),_0x26fcd4&&_0x323e('0x1e')==_0x26fcd4[_0x323e('0x37')]?_0x26fcd4[_0x3d335f]+=_0x5448e7[_0x323e('0x18')]:_0x177dcf[_0x323e('0x2d')]({'type':_0x323e('0x1e'),'add':_0x323e('0x2b')==_0x3d335f?_0x5448e7[_0x323e('0x18')]:'','remove':'remove'==_0x3d335f?_0x5448e7[_0x323e('0x18')]:''});else{if(this['_schema'][_0x323e('0x2f')](_0x5448e7)){if(_0x26fcd4&&_0x26fcd4['type'][_0x323e('0x7')](_0x323e('0x20'))>-0x1&&_0x177dcf[_0x323e('0x28')](),_0x323e('0x2a')==_0x139d73[_0x323e('0x37')])continue;_0x26fcd4&&_0x26fcd4[_0x323e('0x37')]==_0x3d335f+_0x323e('0x2e')&&_0x26fcd4[_0x323e('0xf')]==_0x5448e7[_0x323e('0xf')]?_0x26fcd4[_0x323e('0x2')]++:_0x177dcf[_0x323e('0x2d')]({'type':_0x3d335f+'Object','name':_0x5448e7[_0x323e('0xf')],'quantity':0x1}),_0x993c95[_0x323e('0x30')](_0x488c51=>!(_0x323e('0x2a')==_0x488c51[_0x323e('0x37')]&&_0x488c51[_0x323e('0x2c')]==_0x5448e7));}else{if(this['_schema'][_0x323e('0x23')](_0x5448e7,_0x323e('0x1a'))||_0x5448e7['is'](_0x323e('0x9'),_0x323e('0x16'))){if(_0x323e('0x2b')==_0x3d335f&&_0x323e('0x24')==_0x139d73[_0x323e('0x37')]||_0x323e('0xb')==_0x3d335f&&_0x323e('0x2a')==_0x139d73[_0x323e('0x37')])continue;if(_0x26fcd4&&-0x1==_0x26fcd4[_0x323e('0x37')][_0x323e('0x7')](_0x323e('0x20'))){_0x323e('0x1e')==_0x26fcd4['type']&&(_0x26fcd4[_0x3d335f]+='\x0a');continue;}let _0x352cbf;if(_0x352cbf=_0x323e('0x2b')==_0x3d335f?_0x5448e7['nextSibling']&&!this[_0x323e('0x19')][_0x323e('0x2f')](_0x5448e7[_0x323e('0x34')])?_0x5448e7[_0x323e('0x34')]:null:_0x5448e7[_0x323e('0x35')]&&!this[_0x323e('0x19')][_0x323e('0x2f')](_0x5448e7[_0x323e('0x35')])?_0x5448e7[_0x323e('0x35')]:null,_0x5448e7['isEmpty']||_0x352cbf&&_0x352cbf[_0x323e('0x25')]){const _0xfc4dbf=_0x352cbf&&_0x352cbf['isEmpty']?_0x352cbf['name']:_0x5448e7[_0x323e('0xf')];_0x26fcd4&&_0x26fcd4[_0x323e('0x37')]==_0x3d335f+_0x323e('0xc')&&_0x26fcd4[_0x323e('0xf')]==_0xfc4dbf?_0x26fcd4[_0x323e('0x2')]++:_0x177dcf[_0x323e('0x2d')]({'type':_0x3d335f+_0x323e('0xc'),'name':_0xfc4dbf,'quantity':0x1});}else _0x177dcf[_0x323e('0x2d')]({'type':_0x3d335f+_0x323e('0x20'),'name':_0x5448e7[_0x323e('0xf')]});}}}}}[_0x323e('0x1d')](_0x274ebd){const _0x5b4565=this[_0x323e('0x29')],_0x730a08=[];for(const _0x196efc of _0x274ebd){switch(_0x196efc['type']){case _0x323e('0x1e'):if(_0x196efc[_0x323e('0x2b')]=_0x196efc[_0x323e('0x2b')][_0x323e('0x14')](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x196efc[_0x323e('0xb')]=_0x196efc[_0x323e('0xb')]['replace'](/(\S)\u000A+(\S)/g,_0x323e('0x0'))[_0x323e('0x14')](/\u000A/g,''),''!=_0x196efc['add']&&''!=_0x196efc[_0x323e('0xb')]){_0x730a08[_0x323e('0x2d')]({'type':_0x323e('0x14'),'content':_0x274fb8(_0x5b4565,_0x323e('0x38'),['\x22'+_0x196efc[_0x323e('0xb')]+'\x22','\x22'+_0x196efc[_0x323e('0x2b')]+'\x22'])});continue;}if(null!=_0x196efc[_0x323e('0x2b')]['match'](/^ +$/)){_0x730a08['push']({'type':_0x323e('0x13'),'content':_0x274fb8(_0x5b4565,_0x323e('0x1b'),_0x274fb8(_0x5b4565,_0x323e('0x32'),_0x196efc[_0x323e('0x2b')][_0x323e('0x12')]))});continue;}if(null!=_0x196efc['remove']['match'](/^ +$/)){_0x730a08[_0x323e('0x2d')]({'type':_0x323e('0x11'),'content':_0x274fb8(_0x5b4565,_0x323e('0x21'),_0x274fb8(_0x5b4565,_0x323e('0x32'),_0x196efc[_0x323e('0xb')]['length']))});continue;}if(''!=_0x196efc[_0x323e('0x2b')]){_0x730a08['push']({'type':_0x323e('0x13'),'content':_0x274fb8(_0x5b4565,'*Insert:*\x20%0','\x22'+_0x196efc[_0x323e('0x2b')]+'\x22')});continue;}_0x730a08[_0x323e('0x2d')]({'type':'deletion','content':_0x274fb8(_0x5b4565,_0x323e('0x21'),'\x22'+_0x196efc[_0x323e('0xb')]+'\x22')});continue;case _0x323e('0xa'):case _0x323e('0x10'):_0x730a08['push']({'type':'insertion','content':_0x274fb8(_0x5b4565,_0x323e('0x1b'),this[_0x323e('0x5')](_0x196efc['name'],_0x196efc['quantity']))});continue;case _0x323e('0x1'):case'removeObject':_0x730a08['push']({'type':_0x323e('0x11'),'content':_0x274fb8(_0x5b4565,_0x323e('0x21'),this[_0x323e('0x5')](_0x196efc['name'],_0x196efc['quantity']))});continue;case _0x323e('0x1f'):_0x730a08['push']({'type':'insertion','content':_0x274fb8(_0x5b4565,_0x323e('0x15'),this[_0x323e('0x5')](_0x196efc['name'],_0x196efc[_0x323e('0x2')]))});continue;case _0x323e('0x1c'):_0x730a08[_0x323e('0x2d')]({'type':'deletion','content':_0x274fb8(_0x5b4565,_0x323e('0x6'),this['getItemLabel'](_0x196efc['name'],_0x196efc[_0x323e('0x2')]))});continue;}_0x730a08[_0x323e('0x2d')](_0x196efc);}return _0x730a08;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1307=['plugins','getSuggestions','getSuggestion','adapter','requires','TrackChanges','editor','get'];(function(_0x375359,_0x130717){var _0x182ce5=function(_0x3be0f1){while(--_0x3be0f1){_0x375359['push'](_0x375359['shift']());}};_0x182ce5(++_0x130717);}(_0x1307,0x14c));var _0x182c=function(_0x375359,_0x130717){_0x375359=_0x375359-0x0;var _0x182ce5=_0x1307[_0x375359];return _0x182ce5;};import{Plugin as _0x8a0594}from'ckeditor5/src/core';import _0x1f07df from'@ckeditor/ckeditor5-comments/src/comments';import _0x4a7431 from'@ckeditor/ckeditor5-comments/src/annotations/widesidebar';import _0x4c11de from'@ckeditor/ckeditor5-comments/src/annotations/narrowsidebar';import _0x4ef27b from'@ckeditor/ckeditor5-comments/src/annotations/inlineannotations';import _0x902738 from'./trackchangesui';import _0x307e9a from'./trackchangesediting';import'../theme/suggestion.css';import'../theme/suggestionmarker.css';export default class S extends _0x8a0594{static get[_0x182c('0x0')](){return[_0x307e9a,_0x902738,_0x1f07df,_0x4a7431,_0x4c11de,_0x4ef27b];}static get['pluginName'](){return _0x182c('0x1');}set['adapter'](_0x1a9291){this['editor']['plugins'][_0x182c('0x3')](_0x307e9a)[_0x182c('0x7')]=_0x1a9291;}get['adapter'](){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)[_0x182c('0x7')];}['addSuggestion'](_0x17c6f8){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)['addSuggestionData'](_0x17c6f8);}[_0x182c('0x5')](_0x1d6460){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)['getSuggestions'](_0x1d6460);}[_0x182c('0x6')](_0x425a7f){return this[_0x182c('0x2')][_0x182c('0x4')][_0x182c('0x3')](_0x307e9a)['getSuggestion'](_0x425a7f);}}
23
+ var _0x235c=['addSuggestion','pluginName','adapter','getSuggestions','plugins','Comments','get','editor','getSuggestion','TrackChanges'];(function(_0x5d7633,_0x235c3b){var _0x123b05=function(_0x1258ed){while(--_0x1258ed){_0x5d7633['push'](_0x5d7633['shift']());}};_0x123b05(++_0x235c3b);}(_0x235c,0x1ec));var _0x123b=function(_0x5d7633,_0x235c3b){_0x5d7633=_0x5d7633-0x0;var _0x123b05=_0x235c[_0x5d7633];return _0x123b05;};import{Plugin as _0xf4910}from'ckeditor5/src/core';import _0x4c71ca from'./trackchangesui';import _0x2bf343 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class p extends _0xf4910{static get['requires'](){return[_0x2bf343,_0x4c71ca,_0x123b('0x3')];}static get[_0x123b('0x9')](){return _0x123b('0x7');}set[_0x123b('0x0')](_0x2bd31c){this[_0x123b('0x5')]['plugins'][_0x123b('0x4')](_0x2bf343)[_0x123b('0x0')]=_0x2bd31c;}get[_0x123b('0x0')](){return this[_0x123b('0x5')][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)[_0x123b('0x0')];}[_0x123b('0x8')](_0x1ee802){return this[_0x123b('0x5')][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)['addSuggestionData'](_0x1ee802);}[_0x123b('0x1')](_0x4dc562){return this['editor'][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)['getSuggestions'](_0x4dc562);}[_0x123b('0x6')](_0x4bc9a7){return this['editor'][_0x123b('0x2')][_0x123b('0x4')](_0x2bf343)['getSuggestion'](_0x4bc9a7);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x544e=['track-changes-data-invalid-editor-creator','from','set','get','init','getSuggestions','has','names','pluginName','useAnonymousUser','define','TrackChangesDataGetter','push','config','document','Autosave','users','end','Users','trackChangesData','_adapter','editor','createElement','every','appendChild','name','data','requires','function','div','map','constructor','string','RealTimeCollaborativeEditing','find','TrackChangesEditing','trackChangesData.editorCreator','context','extraPlugins','plugins','add','concat','TrackChangesData','create','RealTimeCollaborativeTrackChanges','acceptAllSuggestions','destroy','RealTimeCollaborativeComments','reduce','includes','execute','getDataWithDiscardedSuggestions','getRootNames','model','filter','addSuggestionData','discardAllSuggestions','getUser'];(function(_0x2a060b,_0x544e1c){const _0x5d7a6b=function(_0xe1d913){while(--_0xe1d913){_0x2a060b['push'](_0x2a060b['shift']());}};_0x5d7a6b(++_0x544e1c);}(_0x544e,0x114));const _0x5d7a=function(_0x2a060b,_0x544e1c){_0x2a060b=_0x2a060b-0x0;let _0x5d7a6b=_0x544e[_0x2a060b];return _0x5d7a6b;};import{Plugin as _0x5ce728}from'ckeditor5/src/core';import _0x59b8ee from'./trackchangesediting';import{CKEditorError as _0x4e7524}from'ckeditor5/src/utils';const T=['initialData',_0x5d7a('0x33'),'toolbar'],D=[_0x5d7a('0x2f'),_0x5d7a('0x3'),_0x5d7a('0x0'),_0x5d7a('0x1d')];export default class w extends _0x5ce728{static get['requires'](){return[_0x59b8ee];}static get['pluginName'](){return _0x5d7a('0x38');}[_0x5d7a('0x12')](){const _0x1620ab=this[_0x5d7a('0x23')];if(_0x1620ab[_0x5d7a('0x1b')][_0x5d7a('0x18')](_0x5d7a('0x32'),_0x56644f=>_0x1620ab[_0x5d7a('0x2d')][_0x5d7a('0x39')]('',_0x56644f)),_0x5d7a('0x2a')!=typeof _0x1620ab['config'][_0x5d7a('0x11')](_0x5d7a('0x21'))['editorCreator'])throw new _0x4e7524(_0x5d7a('0xe'));}['getDataWithAcceptedSuggestions'](_0x54a4af){return y(this[_0x5d7a('0x23')],!0x0,_0x54a4af);}[_0x5d7a('0x7')](_0x5dc44e){return y(this[_0x5d7a('0x23')],!0x1,_0x5dc44e);}}class v extends _0x5ce728{static get[_0x5d7a('0x16')](){return _0x5d7a('0x19');}[_0x5d7a('0x12')](){this['result']=_0x5d7a('0x1f'),this[_0x5d7a('0x23')][_0x5d7a('0x35')][_0x5d7a('0x11')]('CommentsRepository')[_0x5d7a('0x22')]={'getCommentThread':()=>new Promise(()=>{})},this['editor'][_0x5d7a('0x35')][_0x5d7a('0x11')](_0x5d7a('0x31'))['_adapter']=null;}}async function y(_0x356cb6,_0x281e36,_0x4f3fcc){const _0x7a4c46=function(_0x5cbcc8){const _0x12b241={};for(const _0x22bb0b of _0x5cbcc8[_0x5d7a('0x1b')][_0x5d7a('0x15')]())T[_0x5d7a('0x5')](_0x22bb0b)||(_0x12b241[_0x22bb0b]=_0x5cbcc8[_0x5d7a('0x1b')]['get'](_0x22bb0b));const _0x1db84a=_0x5cbcc8[_0x5d7a('0x2d')]['builtinPlugins']||[],_0xa4c3dd=_0x12b241['extraPlugins']||[];delete _0x12b241[_0x5d7a('0x34')];const _0x254f4f=_0x1db84a[_0x5d7a('0x37')](_0x12b241[_0x5d7a('0x35')])['concat'](_0xa4c3dd)[_0x5d7a('0x2c')](_0x36247c=>_0x5d7a('0x2e')==typeof _0x36247c?_0x1db84a[_0x5d7a('0x30')](_0x4d01cb=>_0x4d01cb[_0x5d7a('0x16')]==_0x36247c):_0x36247c),_0x53ba55=Array[_0x5d7a('0xf')](new Set(_0x254f4f));return _0x12b241['plugins']=_0x53ba55[_0x5d7a('0xa')](_0x255243=>A(_0x255243,new Set())),_0x12b241[_0x5d7a('0x35')][_0x5d7a('0x1a')](v),_0x12b241[_0x5d7a('0x35')][_0x5d7a('0x1a')](_0x59b8ee),_0x12b241;}(_0x356cb6),_0x435a31=document['createDocumentFragment'](),_0x4aef89=_0x356cb6['config']['get'](_0x5d7a('0x21'))['editorCreator'],_0x21937a=await _0x4aef89(_0x7a4c46,()=>function(_0x21115b){const _0x324a80=document[_0x5d7a('0x24')](_0x5d7a('0x2b'));return _0x21115b[_0x5d7a('0x26')](_0x324a80),_0x324a80;}(_0x435a31));!function(_0x5460ad,_0xd8f95e){const _0xdde0=_0x5460ad[_0x5d7a('0x9')][_0x5d7a('0x1c')][_0x5d7a('0x8')]()[_0x5d7a('0x4')]((_0x5451f7,_0x170735)=>(_0x5451f7[_0x170735]=_0x5460ad[_0x5d7a('0x28')][_0x5d7a('0x11')]({'rootName':_0x170735}),_0x5451f7),{}),_0x5938f6=_0x5460ad[_0x5d7a('0x35')][_0x5d7a('0x11')]('Users')[_0x5d7a('0x1e')][_0x5d7a('0x2c')](_0x4b82a0=>({'id':_0x4b82a0['id']})),_0x54829a=_0x5460ad[_0x5d7a('0x35')][_0x5d7a('0x11')](_0x5d7a('0x31'))[_0x5d7a('0x13')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39c89a=_0xd8f95e['plugins'][_0x5d7a('0x11')](_0x5d7a('0x20')),_0x1f521d=_0xd8f95e[_0x5d7a('0x35')][_0x5d7a('0x11')](_0x5d7a('0x31'));for(const _0x381569 of _0x5938f6)_0x39c89a[_0x5d7a('0xd')](_0x381569['id'])||_0x39c89a['addUser'](_0x381569);_0x39c89a['me']||_0x39c89a[_0x5d7a('0x17')]();for(const _0x5f2ee9 of _0x54829a)_0x1f521d[_0x5d7a('0xb')](_0x5f2ee9);_0xd8f95e[_0x5d7a('0x28')][_0x5d7a('0x10')](_0xdde0);}(_0x356cb6,_0x21937a),_0x21937a[_0x5d7a('0x6')](_0x281e36?_0x5d7a('0x1'):_0x5d7a('0xc'));const _0x5da78a=_0x21937a[_0x5d7a('0x28')][_0x5d7a('0x11')](_0x4f3fcc);return await _0x21937a[_0x5d7a('0x2')](),_0x5da78a;}function A(_0x525f71,_0xfc1390){if(_0xfc1390[_0x5d7a('0x14')](_0x525f71))return!0x0;_0xfc1390[_0x5d7a('0x36')](_0x525f71);const _0x54c13d=_0x5d7a('0x2a')==typeof _0x525f71?_0x525f71[_0x5d7a('0x16')]||_0x525f71[_0x5d7a('0x27')]:_0x525f71;return(!_0x54c13d||!D[_0x5d7a('0x5')](_0x54c13d))&&(!_0x525f71[_0x5d7a('0x29')]||_0x525f71[_0x5d7a('0x29')][_0x5d7a('0x25')](_0x146a16=>A(_0x146a16,_0xfc1390)));}
23
+ const _0x5c94=['config','getRootNames','createDocumentFragment','context','TrackChangesEditing','trackChangesData.editorCreator','extraPlugins','requires','div','data','getSuggestions','trackChangesData','editorCreator','string','map','TrackChangesDataGetter','add','Autosave','RealTimeCollaborativeEditing','CommentsRepository','discardAllSuggestions','get','plugins','execute','includes','every','end','acceptAllSuggestions','function','from','push','editor','create','concat','track-changes-data-invalid-editor-creator','toolbar','constructor','addSuggestionData','Users','destroy','model','pluginName','TrackChangesData','result','useAnonymousUser','RealTimeCollaborativeTrackChanges','document','users','has','createElement','getDataWithAcceptedSuggestions','_adapter'];(function(_0x4e04d3,_0x5c94e7){const _0x1b3dba=function(_0x3902a5){while(--_0x3902a5){_0x4e04d3['push'](_0x4e04d3['shift']());}};_0x1b3dba(++_0x5c94e7);}(_0x5c94,0x1ac));const _0x1b3d=function(_0x4e04d3,_0x5c94e7){_0x4e04d3=_0x4e04d3-0x0;let _0x1b3dba=_0x5c94[_0x4e04d3];return _0x1b3dba;};import{Plugin as _0x2073ca}from'ckeditor5/src/core';import{CKEditorError as _0x25b348}from'ckeditor5/src/utils';import _0x59843f from'./trackchangesediting';const C=['initialData',_0x1b3d('0x2b'),_0x1b3d('0x17')],k=[_0x1b3d('0x6'),'RealTimeCollaborativeComments',_0x1b3d('0x21'),_0x1b3d('0x5')];export default class T extends _0x2073ca{static get[_0x1b3d('0x2f')](){return[_0x59843f];}static get[_0x1b3d('0x1d')](){return _0x1b3d('0x1e');}['init'](){const _0x247d51=this[_0x1b3d('0x13')];if(_0x247d51[_0x1b3d('0x28')]['define'](_0x1b3d('0x2d'),_0x5ecd7a=>_0x247d51[_0x1b3d('0x18')][_0x1b3d('0x14')]('',_0x5ecd7a)),_0x1b3d('0x10')!=typeof _0x247d51[_0x1b3d('0x28')][_0x1b3d('0x9')](_0x1b3d('0x33'))[_0x1b3d('0x0')])throw new _0x25b348(_0x1b3d('0x16'));}[_0x1b3d('0x26')](_0x5c9478){return w(this['editor'],!0x0,_0x5c9478);}['getDataWithDiscardedSuggestions'](_0x158fb3){return w(this[_0x1b3d('0x13')],!0x1,_0x158fb3);}}class D extends _0x2073ca{static get['pluginName'](){return _0x1b3d('0x3');}['init'](){this[_0x1b3d('0x1f')]=_0x1b3d('0xe'),this[_0x1b3d('0x13')][_0x1b3d('0xa')][_0x1b3d('0x9')](_0x1b3d('0x7'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this[_0x1b3d('0x13')]['plugins'][_0x1b3d('0x9')](_0x1b3d('0x2c'))[_0x1b3d('0x27')]=null;}}async function w(_0x17f98b,_0x408377,_0x2e5f29){const _0x2a6421=function(_0xe96921){const _0xf442fe={};for(const _0x2dcdc7 of _0xe96921[_0x1b3d('0x28')]['names']())C['includes'](_0x2dcdc7)||(_0xf442fe[_0x2dcdc7]=_0xe96921[_0x1b3d('0x28')][_0x1b3d('0x9')](_0x2dcdc7));const _0x2f9ae6=_0xe96921[_0x1b3d('0x18')]['builtinPlugins']||[],_0x50a06f=_0xf442fe[_0x1b3d('0x2e')]||[];delete _0xf442fe[_0x1b3d('0x2e')];const _0x4cc3e0=_0x2f9ae6[_0x1b3d('0x15')](_0xf442fe['plugins'])[_0x1b3d('0x15')](_0x50a06f)[_0x1b3d('0x2')](_0x864b80=>_0x1b3d('0x1')==typeof _0x864b80?_0x2f9ae6['find'](_0x1c38ad=>_0x1c38ad['pluginName']==_0x864b80):_0x864b80),_0x4f3f58=Array[_0x1b3d('0x11')](new Set(_0x4cc3e0));return _0xf442fe['plugins']=_0x4f3f58['filter'](_0x364b24=>S(_0x364b24,new Set())),_0xf442fe[_0x1b3d('0xa')][_0x1b3d('0x12')](D),_0xf442fe['plugins'][_0x1b3d('0x12')](_0x59843f),_0xf442fe;}(_0x17f98b),_0x177399=document[_0x1b3d('0x2a')](),_0x4d0c92=_0x17f98b[_0x1b3d('0x28')][_0x1b3d('0x9')](_0x1b3d('0x33'))[_0x1b3d('0x0')],_0x4a5e24=await _0x4d0c92(_0x2a6421,()=>function(_0xea85a4){const _0x552999=document[_0x1b3d('0x25')](_0x1b3d('0x30'));return _0xea85a4['appendChild'](_0x552999),_0x552999;}(_0x177399));!function(_0x708ad0,_0x3f2ea5){const _0x1235ba=_0x708ad0[_0x1b3d('0x1c')][_0x1b3d('0x22')][_0x1b3d('0x29')]()['reduce']((_0x38e0b5,_0x570012)=>(_0x38e0b5[_0x570012]=_0x708ad0['data'][_0x1b3d('0x9')]({'rootName':_0x570012}),_0x38e0b5),{}),_0x156fa1=_0x708ad0['plugins'][_0x1b3d('0x9')](_0x1b3d('0x1a'))[_0x1b3d('0x23')][_0x1b3d('0x2')](_0x2b4bbc=>({'id':_0x2b4bbc['id']})),_0x1a72cf=_0x708ad0[_0x1b3d('0xa')][_0x1b3d('0x9')](_0x1b3d('0x2c'))[_0x1b3d('0x32')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf54306=_0x3f2ea5['plugins'][_0x1b3d('0x9')](_0x1b3d('0x1a')),_0x17f8cb=_0x3f2ea5[_0x1b3d('0xa')][_0x1b3d('0x9')]('TrackChangesEditing');for(const _0x25fc81 of _0x156fa1)_0xf54306['getUser'](_0x25fc81['id'])||_0xf54306['addUser'](_0x25fc81);_0xf54306['me']||_0xf54306[_0x1b3d('0x20')]();for(const _0x5bda0b of _0x1a72cf)_0x17f8cb[_0x1b3d('0x19')](_0x5bda0b);_0x3f2ea5['data']['set'](_0x1235ba);}(_0x17f98b,_0x4a5e24),_0x4a5e24[_0x1b3d('0xb')](_0x408377?_0x1b3d('0xf'):_0x1b3d('0x8'));const _0x1ff7c9=_0x4a5e24[_0x1b3d('0x31')][_0x1b3d('0x9')](_0x2e5f29);return await _0x4a5e24[_0x1b3d('0x1b')](),_0x1ff7c9;}function S(_0x33f726,_0x2a171a){if(_0x2a171a[_0x1b3d('0x24')](_0x33f726))return!0x0;_0x2a171a[_0x1b3d('0x4')](_0x33f726);const _0xb51d9b=_0x1b3d('0x10')==typeof _0x33f726?_0x33f726[_0x1b3d('0x1d')]||_0x33f726['name']:_0x33f726;return(!_0xb51d9b||!k[_0x1b3d('0xc')](_0xb51d9b))&&(!_0x33f726[_0x1b3d('0x2f')]||_0x33f726[_0x1b3d('0x2f')][_0x1b3d('0xd')](_0x462eef=>S(_0x462eef,_0x2a171a)));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x2f8a06,PendingActions as _0x4b7d91}from'ckeditor5/src/core';import _0x463fa2 from'@ckeditor/ckeditor5-collaboration-core/src/users';import{LiveRange as _0x2dbd60}from'ckeditor5/src/engine';import{CKEditorError as _0x6684a1,uid as _0x17e38b,priorities as _0x8da7fc,EmitterMixin as _0x37c232,mix as _0x3e6840}from'ckeditor5/src/utils';import _0x2b993d from'@ckeditor/ckeditor5-comments/src/comments/commentsrepository';import _0x126243 from'./commands/trackchangescommand';import _0x506a57 from'./commands/acceptsuggestioncommand';import _0x4900ca from'./commands/discardsuggestioncommand';import _0x5535ee from'./commands/acceptallsuggestionscommand';import _0x2e6d55 from'./commands/acceptselectedsuggestionscommand';import _0x2a8010 from'./commands/discardallsuggestionscommand';import _0x49fbcd from'./commands/discardselectedsuggestionscommand';import _0xf23b9 from'./suggestion';import _0x23bbe5 from'./suggestiondescriptionfactory';import'../theme/suggestion.css';import'../theme/suggestionmarker.css';import _0x35184d from'./integrations/alignment';import _0x24f559 from'./integrations/basicstyles';import _0x5cee8b from'./integrations/blockquote';import _0x5c67f5 from'./integrations/codeblock';import _0x37befb from'./integrations/comments';import _0x4df444 from'./integrations/deletecommand';import _0x49d216 from'./integrations/entercommand';import _0x5d06e6 from'./integrations/font';import _0x2bc64d from'./integrations/heading';import _0x2bc3f8 from'./integrations/highlight';import _0x133b11 from'./integrations/horizontalline';import _0x289993 from'./integrations/image';import _0x1bf309 from'./integrations/indent';import _0x1a5409 from'./integrations/inputcommand';import _0xe3e460 from'./integrations/link';import tt from'./integrations/list';import it from'./integrations/mediaembed';import st from'./integrations/mention';import nt from'./integrations/pagebreak';import et from'./integrations/paragraph';import ot from'./integrations/removeformat';import rt from'./integrations/restrictededitingmode';import at from'./integrations/shiftentercommand';import ct from'./integrations/standardeditingmode';import ht from'./integrations/table';import ut from'./integrations/tablemergesplit';import ft from'./integrations/tableheadings';import gt from'./integrations/tableclipboard';import lt from'./integrations/title';import dt from'./integrations/undo';import mt from'./utils/hashobject.js';import{toWidget as pt}from'ckeditor5/src/widget';export default class l extends _0x2f8a06{static get['requires'](){return[_0x463fa2,_0x4b7d91,_0x2b993d,_0x35184d,_0x24f559,_0x5cee8b,_0x5c67f5,_0x37befb,_0x4df444,_0x49d216,_0x5d06e6,_0x2bc64d,_0x2bc3f8,_0x133b11,_0x289993,_0x1bf309,_0x1a5409,_0xe3e460,tt,it,st,nt,et,ot,rt,at,ct,ht,ut,ft,gt,lt,dt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x58aae7){function _0x1f7655(_0x3992a6){return _0x3992a6['map'](_0x1c53ac=>String['fromCharCode'](_0x1c53ac))['join']('');}super(_0x58aae7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2959cf,_0x48b3d1,_0x1096f4,_0x5ee122)=>{this['_model']['change'](_0x1983e3=>{for(const _0x502847 of[..._0x5ee122,..._0x1096f4])this['_model']['markers']['has'](_0x502847)&&_0x1983e3['updateMarker'](_0x502847);});}),this['_descriptionFactory']=new _0x23bbe5(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new kt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x58aae7['plugins']['get'](_0x2b993d),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x1f7655([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1f7655([0x34,0x30,0x34,0x34,0x30,0x32,0x36,0x32]);}['init'](){const _0x42fa62=this['editor'];_0x42fa62['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4ddf01=>{const {id:_0x1e90d9,type:_0x3fcc3d}=this['_splitMarkerName'](_0x4ddf01['markerName']),_0x53c230=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3fcc3d];let _0x1815ad=0xbb8;return this['activeMarkers']['includes'](_0x4ddf01['markerName'])&&(_0x53c230['push']('ck-suggestion-marker--active'),_0x1815ad=0xbc2),'deletion'==_0x3fcc3d&&(_0x1815ad+=0x5),{'classes':_0x53c230,'attributes':{'data-suggestion':_0x1e90d9},'priority':_0x1815ad};}}),_0x42fa62['conversion']['for']('dataDowncast')['add'](_0x182082=>{_0x182082['on']('addMarker:suggestion',(_0x9e99d1,_0x241fa9,_0x38cc55)=>{if(!_0x38cc55['options']['showSuggestionHighlights'])return;const _0x3f09f5=_0x241fa9['item'];if(!_0x3f09f5)return;const _0x4ae082=_0x38cc55['mapper']['toViewElement'](_0x3f09f5);_0x42fa62['model']['schema']['isObject'](_0x3f09f5)&&_0x4ae082&&!_0x4ae082['getCustomProperty']('widget')&&_0x4ae082['is']('containerElement')&&pt(_0x4ae082,_0x38cc55['writer']);},{'priority':'high'});}),_0x42fa62['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x53cc57,_0x1b4798)=>{if(!_0x1b4798['options']['showSuggestionHighlights'])return null;const {type:_0x46ddb5}=this['_splitMarkerName'](_0x53cc57['markerName']);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x46ddb5],'priority':0xbb8};}});const _0x3bdd06=({showActiveMarkers:_0x59ff34=!0x0}={})=>(_0x24739e,_0x3231e1,_0x3f3f28)=>{if(!_0x3231e1['item'])return;if(_0x3231e1['item']['is']('selection'))return void _0x3f3f28['consumable']['consume'](_0x3231e1['item'],_0x24739e['name']);const _0xee5aa1=_0x3f3f28['mapper']['toViewElement'](_0x3231e1['item']);if(!(_0x3231e1['item']['is']('element')&&_0x42fa62['model']['schema']['isBlock'](_0x3231e1['item'])&&!_0xee5aa1['getCustomProperty']('addHighlight')))return;const {id:_0x2245e4}=this['_splitMarkerName'](_0x3231e1['markerName']);_0x3f3f28['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xee5aa1),_0x3f3f28['writer']['setAttribute']('data-suggestion',_0x2245e4,_0xee5aa1),_0x3f3f28['mapper']['bindElementToMarker'](_0xee5aa1,_0x3231e1['markerName']),_0x59ff34&&(this['activeMarkers']['includes'](_0x3231e1['markerName'])?_0x3f3f28['writer']['addClass']('ck-suggestion-marker--active',_0xee5aa1):_0x3f3f28['writer']['removeClass']('ck-suggestion-marker--active',_0xee5aa1));for(const _0x2383ce of _0x42fa62['model']['createRangeIn'](_0x3231e1['item'])['getItems']())_0x3f3f28['consumable']['consume'](_0x2383ce,_0x24739e['name']);_0x3f3f28['consumable']['consume'](_0x3231e1['item'],_0x24739e['name']);};_0x42fa62['conversion']['for']('dataDowncast')['add'](_0x27b4a8=>{_0x27b4a8['on']('addMarker:suggestion:formatBlock',(_0x5041ab,_0x290fd7,_0x27fa13)=>{_0x27fa13['options']['showSuggestionHighlights']&&_0x3bdd06({'showActiveMarkers':!0x1})(_0x5041ab,_0x290fd7,_0x27fa13);},{'priority':'highest'});}),_0x42fa62['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5b2b7d,_0x2f254d)=>_0x2f254d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5b2b7d['substr']('suggestion'['length']+0x1)}}),_0x42fa62['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x3a359f,{writer:_0x42d325})=>{let _0x27d6d3='suggestion:'+_0x3a359f['getAttribute']('suggestion-type')+':'+_0x3a359f['getAttribute']('id');return _0x3a359f['getAttribute']('marker-count')&&(_0x27d6d3+=':'+_0x3a359f['getAttribute']('marker-count')),_0x42d325['createElement']('$marker',{'data-name':_0x27d6d3});}}),_0x42fa62['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x42fa62['conversion']['for']('editingDowncast')['add'](_0x50e4f3=>{_0x50e4f3['on']('addMarker:suggestion:formatBlock',_0x3bdd06(),{'priority':'high'});}),_0x42fa62['conversion']['for']('editingDowncast')['add'](_0xb1b1eb=>{_0xb1b1eb['on']('removeMarker:suggestion:formatBlock',(_0x1905eb,_0x4c05b7,_0x319004)=>{const _0x332c0f=_0x319004['mapper']['markerNameToElements'](_0x4c05b7['markerName']);if(_0x332c0f)for(const _0x4a1b14 of _0x332c0f)_0x4a1b14['getCustomProperty']('addHighlight')||(_0x319004['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4a1b14),_0x319004['writer']['removeAttribute']('data-suggestion',_0x4a1b14),_0x319004['mapper']['unbindElementFromMarkerName'](_0x4a1b14,_0x4c05b7['markerName']));},{'priority':'high'});}),_0x42fa62['model']['document']['registerPostFixer'](_0x2a085d=>{let _0x3718de=!0x1;const _0x30d924=Array['from'](_0x42fa62['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f28d7,data:_0x189727}of _0x30d924){const {group:_0xd7a53d,type:_0x40f83e,id:_0x2f8ab2}=this['_splitMarkerName'](_0x4f28d7);if('suggestion'!==_0xd7a53d)continue;const _0x159c60=this['_suggestions']['get'](_0x2f8ab2);if(null!=_0x189727['newRange']){'formatInline'==_0x40f83e&&(_0x3718de=_0x3718de||St(_0x189727['newRange'],_0x4f28d7,_0x2a085d,_0x42fa62['model']['schema']));if(_0x189727['newRange']['isCollapsed']||'$graveyard'==_0x189727['newRange']['root']['rootName']||'formatBlock'==_0x40f83e&&!It(_0x189727['newRange'])||'deletion'==_0x40f83e&&!(!yt(_0x247bf3=_0x189727['newRange'])&&!function(_0x2f05a7){return _0x2f05a7['start']['parent']==_0x2f05a7['end']['nodeBefore']&&_0x2f05a7['start']['isAtEnd'];}(_0x247bf3)))_0x2a085d['removeMarker'](_0x4f28d7),_0x3718de=!0x0;else{if(!_0x159c60||!_0x159c60['isInContent'])continue;_0x3718de=!!this['_joinWithAdjacentSuggestions'](_0x159c60)||_0x3718de;}}}var _0x247bf3;return _0x3718de;}),_0x42fa62['model']['document']['registerPostFixer'](_0x51e6d9=>{let _0x122d05=!0x1;for(const _0x2fc011 of _0x42fa62['model']['document']['differ']['getChanges']()){if('insert'!=_0x2fc011['type'])continue;const _0x9db5b0=_0x2fc011['position']['getShiftedBy'](_0x2fc011['length']);if(_0x9db5b0['isAtEnd'])for(const _0x11eba9 of this['_suggestions']['values']()){if(_0x11eba9['isMultiRange']||!_0x11eba9['isInContent'])continue;if('formatBlock'!=_0x11eba9['type'])continue;const _0x5e4f30=_0x11eba9['getFirstRange']();if(_0x5e4f30['start']['parent']!=_0x5e4f30['end']['parent']&&_0x5e4f30['end']['isEqual'](_0x2fc011['position'])){const _0x518327=_0x42fa62['model']['createRange'](_0x5e4f30['start'],_0x9db5b0);_0x51e6d9['updateMarker'](_0x11eba9['getFirstMarker'](),{'range':_0x518327}),_0x122d05=!0x0;}}}return _0x122d05;}),_0x42fa62['model']['markers']['on']('update:suggestion',(_0x4c6dd9,_0x5477d7,_0x35332e)=>{if(null==_0x35332e){const {id:_0x38ab35}=this['_splitMarkerName'](_0x5477d7['name']),_0x436a96=this['_suggestions']['get'](_0x38ab35);_0x436a96&&_0x436a96['addMarkerName'](_0x5477d7['name']);}}),_0x42fa62['model']['document']['on']('change:data',()=>{const _0x4be4d2=Array['from'](_0x42fa62['model']['document']['differ']['getChangedMarkers']());_0x4be4d2['sort']((_0x5dd3e0,_0xb9cb51)=>{const _0x9ee2df=_0x5dd3e0['data']['oldRange'],_0x195be8=_0xb9cb51['data']['oldRange'];return null===_0x9ee2df&&null===_0x195be8?0x0:null===_0x9ee2df&&null!==_0x195be8?-0x1:null!==_0x9ee2df&&null===_0x195be8?0x1:_0x9ee2df['start']['isBefore'](_0x195be8['start'])?-0x1:0x1;});const _0x40c04f=new Set();for(const {name:_0x4b7797,data:_0x2eea5d}of _0x4be4d2){const {group:_0x29cf6a,id:_0x12f46d}=this['_splitMarkerName'](_0x4b7797);if('suggestion'===_0x29cf6a&&(null===_0x2eea5d['oldRange']&&this['_handleNewSuggestionMarker'](_0x4b7797),null===_0x2eea5d['newRange'])){const _0x3ab62a=this['_suggestions']['get'](_0x12f46d);_0x3ab62a['isInContent']?_0x40c04f['add'](_0x3ab62a):this['_removeSuggestion'](_0x3ab62a);}}for(const {name:_0x15b152,data:_0x63b77d}of _0x4be4d2){const {group:_0x5edc6e,id:_0x1194f2}=this['_splitMarkerName'](_0x15b152);if('suggestion'!==_0x5edc6e)continue;const _0x5b4681=this['_suggestions']['get'](_0x1194f2);null!=_0x63b77d['newRange']&&null!=_0x63b77d['oldRange']&&(this['_refreshSuggestionsChain'](_0x5b4681),_0x40c04f['add'](_0x5b4681['head']));}for(const _0x2b9e16 of _0x40c04f)this['fire']('suggestionChanged',_0x2b9e16);_0x40c04f['clear']();}),_0x42fa62['model']['on']('applyOperation',(_0x4b773f,_0x21e4ac)=>{const _0x3a48cd=_0x21e4ac[0x0];if(!this['_suggestions']['size'])return;if(!_0x3a48cd['isDocumentOperation'])return;if(_0x3a48cd['batch']['isUndo']||!_0x3a48cd['batch']['isLocal'])return;let _0x2133f9,_0x3b4791;switch(_0x3a48cd['type']){case'insert':_0x2133f9=_0x42fa62['model']['createPositionAt'](_0x3a48cd['position']),_0x3b4791=_0x2133f9['getShiftedBy'](_0x3a48cd['howMany']);break;case'split':_0x2133f9=_0x42fa62['model']['createPositionAt'](_0x3a48cd['splitPosition']),_0x3b4791=_0x42fa62['model']['createPositionAt'](_0x3a48cd['moveTargetPosition']);break;case'move':_0x2133f9=_0x42fa62['model']['createPositionAt'](_0x3a48cd['targetPosition']),_0x3b4791=_0x2133f9['getShiftedBy'](_0x3a48cd['howMany']);break;default:return;}const _0xc4e2eb=_0x42fa62['model']['createRange'](_0x2133f9,_0x3b4791);_0x42fa62['model']['change'](()=>{for(const {suggestion:_0x1019f3,meta:_0x2676a9}of this['_findSuggestions'](_0xc4e2eb)){if(_0x1019f3['isMultiRange'])continue;if('formatInline'==_0x1019f3['type'])continue;const _0xd1fa6d=_0x1019f3['data']&&_0x1019f3['data']['multipleBlocks'];('formatBlock'!=_0x1019f3['type']||'split'==_0x3a48cd['type']&&!_0xd1fa6d)&&(_0x2676a9['containsRangeInObject']||'insertion'==_0x1019f3['type']&&_0x2676a9['isOwn']||_0x1019f3['getFirstRange']()['containsRange'](_0xc4e2eb)&&this['_breakSuggestionMarker'](_0x1019f3,_0x2133f9,_0x3b4791));}});},{'priority':'lowest'}),_0x42fa62['model']['on']('deleteContent',(_0x237ac1,_0xd84a44)=>{const _0x53ee51=_0xd84a44[0x0],_0x3a8e55=_0xd84a44[0x1];if(_0x3a8e55&&_0x3a8e55['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x53ee51['isCollapsed'])return;const _0x37f76e=_0x42fa62['model']['schema'],{start:_0x3d99f5,end:_0x53db90}=_0x53ee51['getFirstRange'](),_0x4bc695=_0x3d99f5['nodeAfter']&&_0x37f76e['isObject'](_0x3d99f5['nodeAfter'])?null:_0x37f76e['getNearestSelectionRange'](_0x3d99f5,'forward'),_0x3f4307=_0x53db90['nodeBefore']&&_0x37f76e['isObject'](_0x53db90['nodeBefore'])?null:_0x37f76e['getNearestSelectionRange'](_0x53db90,'backward'),_0x2a6674=_0x42fa62['model']['createRange'](_0x4bc695?_0x4bc695['start']:_0x3d99f5,_0x3f4307?_0x3f4307['end']:_0x53db90);_0x42fa62['model']['change'](_0x33bce3=>{this['markDeletion'](_0x2a6674);const _0x3bf743=_0x42fa62['model']['schema']['getNearestSelectionRange'](_0x2a6674['start']);_0x53ee51['is']('documentSelection')?_0x33bce3['setSelection'](_0x3bf743):_0x53ee51['setTo'](_0x3bf743);}),_0x237ac1['stop']();},{'priority':_0x8da7fc['normal']+0xa}),_0x42fa62['model']['on']('insertContent',(_0x10c195,_0x377067)=>{const _0x4aa63b=_0x377067[_0x377067['length']-0x1];_0x4aa63b&&_0x4aa63b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x42fa62['model']['change'](()=>{let _0x4882f8=_0x42fa62['model']['insertContent'](_0x377067[0x0],_0x377067[0x1],_0x377067[0x2],_0x377067[0x3],{'forceDefaultExecution':!0x0});if(!_0x4882f8)return;_0x10c195['return']=_0x4882f8['clone']();const _0x38de2c=_0x4882f8['end']['nodeBefore'],_0x41f8c1=_0x42fa62['model']['schema'];_0x38de2c&&_0x41f8c1['isBlock'](_0x38de2c)&&!_0x41f8c1['isObject'](_0x38de2c)&&(_0x4882f8=_0x42fa62['model']['createRange'](_0x4882f8['start'],_0x42fa62['model']['createPositionAt'](_0x38de2c,'end'))),this['markInsertion'](_0x4882f8);}),_0x10c195['stop']());},{'priority':'high'}),this['trackChangesCommand']=new _0x126243(_0x42fa62,this['_enabledCommands']),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x21faf8=new _0x506a57(_0x42fa62,this['_suggestions']);_0x42fa62['commands']['add']('acceptSuggestion',_0x21faf8),this['enableCommand']('acceptSuggestion');const _0x24f027=new _0x4900ca(_0x42fa62,this['_suggestions']);_0x42fa62['commands']['add']('discardSuggestion',_0x24f027),this['enableCommand']('discardSuggestion'),_0x42fa62['commands']['add']('acceptAllSuggestions',new _0x5535ee(_0x42fa62,_0x21faf8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x42fa62['commands']['add']('discardAllSuggestions',new _0x2a8010(_0x42fa62,_0x24f027,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x42fa62['commands']['add']('acceptSelectedSuggestions',new _0x2e6d55(_0x42fa62,_0x21faf8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x42fa62['commands']['add']('discardSelectedSuggestions',new _0x49fbcd(_0x42fa62,_0x24f027,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4bfc61=_0x42fa62['plugins']['get'](_0x2b993d);this['listenTo'](_0x4bfc61,'addComment',(_0x39d0df,{threadId:_0x29eea8})=>{const _0x4a7729=this['_suggestions']['get'](_0x29eea8);_0x4a7729&&_0x4a7729['commentThread']&&0x1===_0x4a7729['commentThread']['length']&&this['_updateSuggestionData'](_0x29eea8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4bfc61,'removeComment',(_0x594514,{threadId:_0x3b18b7})=>{const _0x41f2e1=this['_suggestions']['get'](_0x3b18b7);_0x41f2e1&&_0x41f2e1['commentThread']&&!_0x41f2e1['commentThread']['length']&&this['_updateSuggestionData'](_0x3b18b7,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5d709d){if(this['_adapter'])throw new _0x6684a1('track-changes-adapter-already-set',this);this['_adapter']=_0x5d709d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1a1236=!0x1,toJSON:_0x2ed47e=!0x1}={}){const _0x466e4c=[];for(const _0x523cf1 of this['_suggestions']['values']())_0x1a1236&&!_0x523cf1['isInContent']||_0x466e4c['push'](_0x523cf1);return _0x2ed47e?_0x466e4c['map'](_0x37df42=>_0x37df42['toJSON']()):_0x466e4c;}['getSuggestion'](_0x36dd8c){const _0x516fbe=this['_suggestions']['get'](_0x36dd8c);if(!_0x516fbe)throw new _0x6684a1('track-changes-suggestion-not-found',this);return _0x516fbe;}['hasSuggestion'](_0x12dcf5){return this['_suggestions']['has'](_0x12dcf5);}['addSuggestionData'](_0x58dd29){const {id:_0x3a7e16,authorId:_0x2de73e}=_0x58dd29,[_0x8caa16,_0x4bac32]=_0x58dd29['type']['split'](':'),_0x1521a0=this['_suggestions']['get'](_0x3a7e16)||this['_createSuggestion'](_0x8caa16,_0x4bac32,_0x3a7e16,_0x2de73e);switch(this['_addThreadToSuggestion'](_0x1521a0),this['_checkSuggestionCorrectness'](_0x1521a0,_0x8caa16,_0x4bac32||null,_0x2de73e),_0x1521a0['createdAt']=_0x58dd29['createdAt'],_0x58dd29['data']&&(_0x1521a0['data']=_0x58dd29['data']),_0x58dd29['attributes']&&(_0x1521a0['attributes']=_0x58dd29['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1521a0['_saved']=!0x0),this['_suggestionState']['get'](_0x1521a0)){case'notReady':this['_suggestionState']['set'](_0x1521a0,'dataReady');break;case'markerReady':_0x1521a0['isInContent']?(this['_suggestionState']['set'](_0x1521a0,'ready'),this['fire']('suggestionLoaded',_0x1521a0)):this['_suggestionState']['set'](_0x1521a0,'removed');}return _0x1521a0;}['acceptSuggestion'](_0x407621){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5a6d15 of _0x407621['getAllAdjacentSuggestions']())_0x5a6d15['accept']();});});}['discardSuggestion'](_0x47fdbe){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xbe55e2 of _0x47fdbe['getAllAdjacentSuggestions']())_0xbe55e2['discard']();});});}['enableCommand'](_0x40631a,_0x192cc8){const _0x39aa2b=this['editor']['commands']['get'](_0x40631a);if(!_0x39aa2b)throw new _0x6684a1('track-changes-command-not-found',this,{'commandName':_0x40631a});this['_enabledCommands']['add'](_0x39aa2b),_0x192cc8&&_0x39aa2b['on']('execute',(_0x4c361c,_0x2ff267)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||_0x2ff267['length']>0x0&&_0x2ff267[_0x2ff267['length']-0x1]&&_0x2ff267[_0x2ff267['length']-0x1]['forceDefaultExecution']||(_0x192cc8((..._0x5ade1a)=>_0x39aa2b['execute'](..._0x5ade1a,{'forceDefaultExecution':!0x0}),..._0x2ff267),_0x4c361c['stop']()));},{'priority':'high'});}['forceDefaultExecution'](_0x479767){let _0x55409f,_0x518c0c;const _0x4bb145=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x55409f=_0x479767();}catch(_0x7049a3){_0x518c0c=_0x7049a3;}return _0x4bb145||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x518c0c&&_0x6684a1['rethrowUnexpectedError'](_0x518c0c,this),_0x55409f;}['markInsertion'](_0x5a790e,_0x17208d=null,_0xfca3bc={}){if(_0x5a790e['isCollapsed'])return null;const _0x4b4331=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x30aae4,meta:_0x76902a}of this['_findSuggestions'](_0x5a790e,'insertion'))if(_0x76902a['isOwn']){if(!_0x76902a['isNextTo'])return _0x30aae4;if(_0x17208d==_0x30aae4['subType']){const _0x1d35d7=_0x30aae4['getFirstRange']();return _0x1d35d7['start']['isEqual'](_0x5a790e['end'])?this['_setSuggestionRange'](_0x30aae4,this['_model']['createRange'](_0x5a790e['start'],_0x1d35d7['end'])):this['_setSuggestionRange'](_0x30aae4,this['_model']['createRange'](_0x1d35d7['start'],_0x5a790e['end'])),_0x30aae4;}}const _0x552a9f=_0x17e38b(),_0x5f40ad=_0x4b4331['id'],_0xc0ddbd=_0x17208d?'insertion:'+_0x17208d:'insertion',_0x1021a9=this['_setSuggestionData']({'id':_0x552a9f,'type':_0xc0ddbd,'createdAt':new Date(),'authorId':_0x5f40ad,'attributes':_0xfca3bc});return this['_addSuggestionMarker'](_0xc0ddbd,_0x552a9f,_0x5f40ad,_0x5a790e),_0x1021a9;}['markMultiRangeInsertion'](_0x59e029,_0x34380b='multi',_0x8c0762={}){const _0x44448a=this['editor']['plugins']['get']('Users')['me'],_0x2d681a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x34380b,'join');for(const _0x23df7f of this['getSuggestions']())if(_0x23df7f['author']['id']==_0x44448a['id']&&'insertion'==_0x23df7f['type']&&_0x23df7f['subType']==_0x34380b&&(_0x2d681a(_0x23df7f['getRanges'](),_0x59e029)||_0x2d681a(_0x59e029,_0x23df7f['getRanges']()))){for(const _0x32c6a of _0x59e029)_0x23df7f['addRange'](_0x32c6a);return _0x23df7f;}for(const _0x8cf6c2 of _0x59e029)for(const {suggestion:_0x26c12a,meta:_0x3671ae}of this['_findSuggestions'](_0x8cf6c2,'insertion')){if(!_0x3671ae['isOwn'])continue;let _0x2773b7=!0x0;for(const _0x4b1e4a of _0x26c12a['getRanges']())for(const _0x33cab0 of _0x59e029)if(!_0x4b1e4a['containsRange'](_0x33cab0)){_0x2773b7=!0x1;break;}if(_0x2773b7)return _0x26c12a;}const _0x123618=_0x17e38b(),_0x3c007e=_0x44448a['id'],_0x468956='insertion:'+_0x34380b,_0x280e99=this['_setSuggestionData']({'id':_0x123618,'type':_0x468956,'createdAt':new Date(),'authorId':_0x3c007e,'attributes':_0x8c0762});for(const _0x2c13a2 of _0x59e029)this['_addSuggestionMarker'](_0x468956,_0x123618,_0x3c007e,_0x2c13a2,_0xf23b9['getMultiRangeId']());return _0x280e99;}['markInlineFormat'](_0x23bf4f,_0x5c4c0e,_0x49c25d=null,_0x3f8b2d={}){if(_0x49c25d=_0x49c25d||bt(_0x5c4c0e),_0x23bf4f['isCollapsed'])return;const _0x333777=this['editor']['plugins']['get']('Users')['me'],_0x2cb0c3=[];for(const {suggestion:_0x23bc7a,meta:_0x527527}of this['_findSuggestions'](_0x23bf4f,'insertion'))_0x527527['isOwn']&&!_0x527527['isInsideObject']&&_0x2cb0c3['push'](..._0x23bc7a['getRanges']());const _0x3e33ab=function(_0x3253a0,_0x2943ea){const _0x53936e=[];for(const _0x301c0c of _0x2943ea){const _0x51642e=_0x3253a0['getIntersection'](_0x301c0c);_0x51642e&&_0x53936e['push'](_0x51642e);}return _0x53936e;}(_0x23bf4f,_0x2cb0c3),_0x20267b=function(_0x376b0f,_0x32c782){const _0x367be1=[_0x376b0f];for(const _0x2f4ba4 of _0x32c782){let _0x57f184=0x0;for(;_0x57f184<_0x367be1['length'];){const _0x2eb06f=_0x367be1[_0x57f184]['getDifference'](_0x2f4ba4);_0x367be1['splice'](_0x57f184,0x1,..._0x2eb06f),_0x57f184+=_0x2eb06f['length'];}}return _0x367be1;}(_0x23bf4f,_0x2cb0c3);_0x3e33ab['length']&&this['_model']['change'](()=>{for(const _0x42813c of _0x3e33ab){const _0xdf07c1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49c25d,'accept');this['forceDefaultExecution'](()=>_0xdf07c1([_0x42813c],_0x5c4c0e,_0x3f8b2d));}});for(const _0x39ac39 of _0x20267b){let _0x1d60fd=null,_0x92935c=_0x39ac39['start'],_0x449ff7=_0x39ac39['end'];for(const {suggestion:_0x4c298b,meta:_0xa8d47d}of this['_findSuggestions'](_0x39ac39,'formatInline')){if(!_0xa8d47d['isOwn'])continue;if(_0x4c298b['subType']!=_0x49c25d)continue;const _0x137dfd=_0x4c298b['getFirstRange']();if(_0x137dfd['containsRange'](_0x39ac39,!0x0))return;_0x92935c=_0x92935c['isBefore'](_0x137dfd['start'])?_0x92935c:_0x137dfd['start'],_0x449ff7=_0x449ff7['isAfter'](_0x137dfd['end'])?_0x449ff7:_0x137dfd['end'],_0x1d60fd?_0x137dfd['start']['isBefore'](_0x1d60fd['getFirstRange']()['start'])?(_0x1d60fd['removeMarkers'](),_0x1d60fd=_0x4c298b):_0x4c298b['removeMarkers']():_0x1d60fd=_0x4c298b;}const _0x287cc7=this['_model']['createRange'](_0x92935c,_0x449ff7);if(_0x1d60fd)this['_setSuggestionRange'](_0x1d60fd,_0x287cc7);else{const _0x1eb230=_0x17e38b(),_0x50cb2b=_0x333777['id'];this['_setSuggestionData']({'id':_0x1eb230,'type':'formatInline:'+_0x49c25d,'data':_0x5c4c0e,'createdAt':new Date(),'authorId':_0x50cb2b,'attributes':_0x3f8b2d}),this['_addSuggestionMarker']('formatInline:'+_0x49c25d,_0x1eb230,_0x50cb2b,_0x287cc7);}}}['markBlockFormat'](_0xb62f15,_0x1240d9,_0x15c34b=[],_0xde4303=null,_0x1cdb94={}){_0x1240d9['formatGroupId']||(_0x1240d9['formatGroupId']=_0x1240d9['commandName']),_0x1240d9['multipleBlocks']=_0xb62f15['is']('range'),_0xde4303=_0xde4303||bt(_0x1240d9);const _0x44e1fb=_0x15c34b['map'](_0x1ebb4e=>vt(_0x1ebb4e,this['_model'])),_0x5d6689=_0xb62f15['is']('range')?_0xb62f15:vt(_0xb62f15,this['_model']);_0x44e1fb['push'](_0x5d6689);let _0x4718c6=!0x0;for(const _0x2fa1aa of _0x44e1fb)if(!this['_rangeIsInLocalUserInsertion'](_0x2fa1aa)){_0x4718c6=!0x1;break;}if(_0x4718c6){const _0x52e5b6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xde4303,'accept');return void this['forceDefaultExecution'](()=>_0x52e5b6([_0x5d6689],_0x1240d9,_0x1cdb94));}let _0x56b8b1=null,_0x1832d1=_0x5d6689['start'],_0x24ab53=_0x5d6689['end'];for(const {suggestion:_0x1d2611,meta:_0x3ca441}of this['_findSuggestions'](_0x5d6689,'formatBlock')){if(!_0x3ca441['isOwn']||_0x3ca441['isNextTo']||_0x3ca441['containsRangeInObject']||_0x3ca441['isInsideObject'])continue;if(_0x1d2611['data']['formatGroupId']!=_0x1240d9['formatGroupId'])continue;const _0x293a80=_0x1d2611['getFirstRange']();if(_0x1d2611['subType']==_0xde4303){if(_0x293a80['containsRange'](_0x5d6689,!0x0))return;_0x1832d1=_0x1832d1['isBefore'](_0x293a80['start'])?_0x1832d1:_0x293a80['start'],_0x24ab53=_0x24ab53['isAfter'](_0x293a80['end'])?_0x24ab53:_0x293a80['end'],_0x56b8b1?_0x293a80['start']['isBefore'](_0x56b8b1['getFirstRange']()['start'])?(_0x56b8b1['removeMarkers'](),_0x56b8b1=_0x1d2611):_0x1d2611['removeMarkers']():_0x56b8b1=_0x1d2611;}else{const _0x24804c=_0x5d6689['getIntersection'](_0x293a80);this['_cutOutSuggestionMarker'](_0x1d2611,_0x24804c);}}const _0x222713=this['editor']['plugins']['get']('Users')['me'],_0x34fc9b=_0x17e38b(),_0x2feb2a=_0x222713['id'];_0x56b8b1?this['_setSuggestionRange'](_0x56b8b1,this['_model']['createRange'](_0x1832d1,_0x24ab53)):(this['_setSuggestionData']({'id':_0x34fc9b,'type':'formatBlock:'+_0xde4303,'data':_0x1240d9,'createdAt':new Date(),'authorId':_0x2feb2a,'attributes':_0x1cdb94}),this['_addSuggestionMarker']('formatBlock:'+_0xde4303,_0x34fc9b,_0x2feb2a,this['_model']['createRange'](_0x1832d1,_0x24ab53)));}['markMultiRangeBlockFormat'](_0x533f3c,_0xd40695,_0x587f9c=[],_0x104a8e=null,_0x39b7d5={}){_0xd40695['formatGroupId']||(_0xd40695['formatGroupId']=_0xd40695['commandName']),_0xd40695['multipleBlocks']=!0x1,_0x104a8e=_0x104a8e||bt(_0xd40695);const _0x54c478=_0x587f9c['map'](_0x17eb1c=>vt(_0x17eb1c,this['_model'])),_0x4dad25=_0x533f3c['map'](_0x5b7203=>vt(_0x5b7203,this['_model']));_0x54c478['push'](..._0x4dad25);let _0x4ff165=!0x0;for(const _0x4c5b58 of _0x54c478)if(!this['_rangeIsInLocalUserInsertion'](_0x4c5b58)){_0x4ff165=!0x1;break;}if(_0x4ff165){const _0x15e887=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x104a8e,'accept');return void this['forceDefaultExecution'](()=>_0x15e887(_0x4dad25,_0xd40695,_0x39b7d5));}const _0x5d4a32=this['editor']['plugins']['get']('Users')['me'];for(const _0x17a37a of this['getSuggestions']()){if(_0x17a37a['author']['id']!=_0x5d4a32['id'])continue;if('formatBlock'!=_0x17a37a['type']||_0x17a37a['data']['formatGroupId']!=_0xd40695['formatGroupId'])continue;const _0x48e720=_0x17a37a['subType']==_0x104a8e;for(let _0x344715=0x0;_0x344715<_0x4dad25['length'];_0x344715++){const _0x2303e1=_0x4dad25[_0x344715];for(const _0x4609a6 of _0x17a37a['getMarkers']()){const _0x48099d=_0x4609a6['getRange']();if(_0x2303e1['isEqual'](_0x48099d)){_0x48e720?(_0x4dad25['splice'](_0x344715,0x1),_0x344715--):_0x17a37a['removeMarker'](_0x4609a6['name']);break;}}}}if(0x0==_0x4dad25['length'])return;const _0x180430=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x104a8e,'join');for(const _0x4966d1 of this['getSuggestions']())if(_0x4966d1['author']['id']==_0x5d4a32['id']&&'formatBlock'==_0x4966d1['type']&&_0x4966d1['data']['formatGroupId']==_0xd40695['formatGroupId']&&_0x4966d1['subType']==_0x104a8e&&(_0x180430(_0x4966d1['getRanges'](),_0x4dad25)||_0x180430(_0x4dad25,_0x4966d1['getRanges']()))){for(const _0x2ebaa0 of _0x4dad25)_0x4966d1['addRange'](_0x2ebaa0);return _0x4966d1;}const _0x4f60a2=_0x17e38b(),_0x51598f=_0x5d4a32['id'],_0x51a8e2='formatBlock:'+_0x104a8e,_0x24e3cf=this['_setSuggestionData']({'id':_0x4f60a2,'type':_0x51a8e2,'data':_0xd40695,'createdAt':new Date(),'authorId':_0x51598f,'attributes':_0x39b7d5});for(const _0x3397fd of _0x4dad25)this['_addSuggestionMarker'](_0x51a8e2,_0x4f60a2,_0x51598f,_0x3397fd,_0xf23b9['getMultiRangeId']());return _0x24e3cf;}['markDeletion'](_0x232ba9,_0x45f6f2=null,_0x4b39f7={}){if(_0x232ba9['isCollapsed'])return null;const _0x1fd91e=this['editor']['plugins']['get']('Users')['me'],_0x363480=new _0x2dbd60(_0x232ba9['start'],_0x232ba9['end']);for(const {suggestion:_0x1183a1,meta:_0x440adc}of this['_findSuggestions'](_0x363480,'insertion'))if(_0x440adc['isOwn']&&!_0x440adc['isNextTo']){if(_0x1183a1['isMultiRange']){const _0x1e35c8=_0x1183a1['getRanges']()['filter'](_0x479d72=>'$graveyard'!=_0x479d72['root']['rootName']);_0x1e35c8['every'](_0x193912=>_0x363480['containsRange'](_0x193912,!0x0))&&_0x1183a1['discard']();if(_0x1e35c8['some'](_0x170a5d=>_0x170a5d['containsRange'](_0x363480,!0x0))){const _0x21c294=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45f6f2,'accept');return this['forceDefaultExecution'](()=>_0x21c294([_0x363480],null,_0x4b39f7)),null;}}else{const _0x2fdf31=_0x363480['getIntersection'](_0x1183a1['getFirstRange']());_0x1183a1['_onDiscard']([_0x2fdf31],null,_0x4b39f7);}}if(_0x363480['detach'](),_0x363480['isCollapsed']||'$graveyard'==_0x363480['root']['rootName'])return null;let _0x170491=null,_0x39d46a=_0x363480['start'],_0x59ca7a=_0x363480['end'];for(const {suggestion:_0x2c268a,meta:_0x53eb9d}of this['_findSuggestions'](_0x363480,'deletion'))if(_0x53eb9d['isOwn']){if(_0x2c268a['isMultiRange']){let _0xcc17e2=!0x0;for(const _0x5ce8ff of _0x2c268a['getRanges']()){if(_0x5ce8ff['containsRange'](_0x363480,!0x0))return _0x2c268a;_0x363480['containsRange'](_0x5ce8ff)||(_0xcc17e2=!0x1);}_0xcc17e2&&_0x2c268a['discard']();}else{const _0x40092b=_0x2c268a['getFirstRange']();if(_0x40092b['containsRange'](_0x363480,!0x0))return _0x2c268a;_0x39d46a=_0x39d46a['isBefore'](_0x40092b['start'])?_0x39d46a:_0x40092b['start'],_0x59ca7a=_0x59ca7a['isAfter'](_0x40092b['end'])?_0x59ca7a:_0x40092b['end'],_0x170491?_0x40092b['start']['isBefore'](_0x170491['getFirstRange']()['start'])?(_0x170491['removeMarkers'](),_0x170491=_0x2c268a):_0x2c268a['removeMarkers']():_0x170491=_0x2c268a;}}if(_0x170491)return this['_setSuggestionRange'](_0x170491,this['_model']['createRange'](_0x39d46a,_0x59ca7a)),_0x170491;{const _0x242dd4=_0x17e38b(),_0x44aba6=this['_model']['createRange'](_0x39d46a,_0x59ca7a),_0x4c1797=_0x1fd91e['id'],_0x2abb58=_0x45f6f2?'deletion:'+_0x45f6f2:'deletion',_0x19fb77=this['_setSuggestionData']({'id':_0x242dd4,'type':_0x2abb58,'createdAt':new Date(),'authorId':_0x4c1797,'attributes':_0x4b39f7});return this['_addSuggestionMarker'](_0x2abb58,_0x242dd4,_0x4c1797,_0x44aba6),_0x19fb77;}}['markMultiRangeDeletion'](_0x44e7c5,_0x50b54a='multi',_0x173c9d={}){const _0x1e9a9c=this['editor']['plugins']['get']('Users')['me'],_0x1fec1c=_0x44e7c5['map'](_0x34e15f=>new _0x2dbd60(_0x34e15f['start'],_0x34e15f['end'])),_0x3e17bf=new Set();for(const _0x4f874a of _0x1fec1c)for(const {suggestion:_0x8aae87,meta:_0x281434}of this['_findSuggestions'](_0x4f874a,'insertion'))_0x281434['isOwn']&&!_0x281434['isNextTo']&&_0x3e17bf['add'](_0x8aae87);for(const _0xc8fba2 of _0x3e17bf)if(_0xc8fba2['isMultiRange']){const _0x3cc98c=_0xc8fba2['getRanges']();(!_0xc8fba2['attributes']||!_0xc8fba2['attributes']['skipNestingCheck'])&&(_0x3cc98c['every'](_0x4a1df0=>_0x1fec1c['some'](_0x4a1c61=>_0x4a1c61['containsRange'](_0x4a1df0,!0x0)))&&_0xc8fba2['discard']());if(_0x1fec1c['every'](_0x53509=>_0x3cc98c['some'](_0x2247f2=>_0x2247f2['containsRange'](_0x53509,!0x0)))){const _0x48cbf5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50b54a,'accept');return this['forceDefaultExecution'](()=>_0x48cbf5(_0x44e7c5,null,_0x173c9d)),null;}}else{const _0x5431c8=_0xc8fba2['getFirstRange']();_0x1fec1c['some'](_0x34cfcb=>_0x34cfcb['containsRange'](_0x5431c8,!0x0))&&_0xc8fba2['discard']();if(_0x1fec1c['every'](_0x340f1e=>_0x5431c8['containsRange'](_0x340f1e,!0x0))){const _0x47288b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50b54a,'accept');return this['forceDefaultExecution'](()=>_0x47288b(_0x1fec1c,null,_0x173c9d)),null;}}const _0x1f878b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50b54a,'join');let _0x1ce7db=null;for(const _0x2e6d5f of this['getSuggestions']())if(_0x2e6d5f['author']['id']==_0x1e9a9c['id']&&_0x2e6d5f['isInContent']&&'deletion'==_0x2e6d5f['type']&&_0x2e6d5f['subType']==_0x50b54a&&(_0x1f878b(_0x2e6d5f['getRanges'](),_0x1fec1c)||_0x1f878b(_0x1fec1c,_0x2e6d5f['getRanges']()))){if(_0x1ce7db){if(_0x2e6d5f['commentThread']&&_0x2e6d5f['commentThread']['length'])continue;for(const _0x5dbd8e of _0x2e6d5f['getRanges']())_0x1ce7db['isIntersectingWithRange'](_0x5dbd8e)||_0x1ce7db['addRange'](_0x5dbd8e);_0x2e6d5f['removeMarkers']();}else{_0x1ce7db=_0x2e6d5f;for(const _0x4bfdf6 of _0x1fec1c)_0x2e6d5f['isIntersectingWithRange'](_0x4bfdf6)||_0x2e6d5f['addRange'](_0x4bfdf6);}}if(_0x1ce7db)return _0x1ce7db;_0x3e17bf['clear']();for(const _0x1fb32e of _0x1fec1c)for(const {suggestion:_0x43e980,meta:_0x564e14}of this['_findSuggestions'](_0x1fb32e,'deletion'))_0x564e14['isOwn']&&_0x3e17bf['add'](_0x43e980);for(const _0x509dbc of _0x3e17bf){const _0x12b5c6=_0x509dbc['getRanges']();if(!_0x173c9d||!_0x173c9d['skipNestingCheck']){if(_0x1fec1c['every'](_0x4dabb0=>_0x12b5c6['some'](_0x24a394=>_0x24a394['containsRange'](_0x4dabb0,!0x0))))return _0x509dbc;}(!_0x509dbc['attributes']||!_0x509dbc['attributes']['skipNestingCheck'])&&(_0x12b5c6['every'](_0x58e6b1=>_0x1fec1c['some'](_0x10a87f=>_0x10a87f['containsRange'](_0x58e6b1,!0x0)))&&_0x509dbc['discard']());}const _0x2f7ddf=_0x17e38b(),_0x3c35d8=_0x1e9a9c['id'],_0x26aade='deletion:'+_0x50b54a,_0x46e89e=this['_setSuggestionData']({'id':_0x2f7ddf,'type':_0x26aade,'createdAt':new Date(),'authorId':_0x3c35d8,'attributes':_0x173c9d});for(const _0x43e9e4 of _0x1fec1c)_0x43e9e4['detach'](),_0x43e9e4['isCollapsed']||'$graveyard'==_0x43e9e4['root']['rootName']||this['_addSuggestionMarker'](_0x26aade,_0x2f7ddf,_0x3c35d8,_0x43e9e4,_0xf23b9['getMultiRangeId']());return _0x46e89e;}['_setSuggestionRange'](_0x71f8c7,_0x223ea){const _0x503cc8=_0x71f8c7['getFirstMarker']();this['_model']['change'](_0x39694b=>{_0x39694b['updateMarker'](_0x503cc8,{'range':_0x223ea});});}['_addThreadToSuggestion'](_0x4fa740){const _0x36cd90=_0x4fa740['id'],_0x6f68e2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x36cd90)||this['_commentsRepository']['addCommentThread']({'channelId':_0x6f68e2,'threadId':_0x36cd90});const _0x2a1cde=this['_commentsRepository']['getCommentThread'](_0x36cd90);_0x2a1cde['unbind']('isRemovable'),_0x2a1cde['isRemovable']=!0x1,_0x4fa740['commentThread']=_0x2a1cde;}['_checkSuggestionCorrectness'](_0x5688fe,_0x101651,_0x2955d5,_0x1ba06b){if(_0x5688fe['type']!=_0x101651||_0x5688fe['subType']!=_0x2955d5||_0x5688fe['author']['id']!=_0x1ba06b)throw this['editor']['isReadOnly']=!0x0,new _0x6684a1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x13d14f,_0x9222e1){const _0x11eabe=_0x13d14f['getFirstRange']();if(_0x9222e1['isEqual'](_0x11eabe))_0x13d14f['removeMarkers']();else{if(_0x11eabe['containsRange'](_0x9222e1)){const _0x2caf21=this['_model']['createPositionAt'](_0x9222e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x13d14f,this['_model']['createRange'](_0x11eabe['start'],_0x2caf21));const _0x4442cf=_0x17e38b(),_0xd4b89=_0x13d14f['author']['id'],_0x32bb56=_0x13d14f['type']+':'+_0x13d14f['subType'];this['_setSuggestionData']({'id':_0x4442cf,'type':_0x32bb56,'createdAt':new Date(),'authorId':_0xd4b89,'data':_0x13d14f['data'],'attributes':_0x13d14f['attributes']});const _0x2db088=this['_model']['createPositionAt'](_0x9222e1['end']['parent'],'after'),_0x52fe5b=this['_model']['createRange'](_0x2db088,_0x11eabe['end']);this['_addSuggestionMarker'](_0x32bb56,_0x4442cf,_0xd4b89,_0x52fe5b);}else{if(_0x11eabe['containsPosition'](_0x9222e1['start'])){const _0x2d160b=this['_model']['createPositionAt'](_0x9222e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x13d14f,this['_model']['createRange'](_0x11eabe['start'],_0x2d160b));}else{const _0x51dccc=this['_model']['createPositionAt'](_0x9222e1['end']['parent'],'after');this['_setSuggestionRange'](_0x13d14f,this['_model']['createRange'](_0x51dccc,_0x11eabe['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x586078){for(const {suggestion:_0x20b49a,meta:_0x4f00ad}of this['_findSuggestions'](_0x586078,'insertion')){if(!_0x4f00ad['isOwn'])continue;const _0x5691e5=_0x20b49a['getRanges']();for(const _0x8ef39d of _0x5691e5)if(!_0x586078['getDifference'](_0x8ef39d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4dc5b5){const _0x1023da=this['editor']['plugins']['get']('Users')['getUser'](_0x4dc5b5);if(!_0x1023da)throw new _0x6684a1('track-changes-user-not-found',this);return _0x1023da;}['_createSuggestion'](_0x538b07,_0x135111,_0x413e17,_0x141c9e){const _0x46c3c8=this['_getAuthorFromId'](_0x141c9e),_0x275ec3=this['_suggestionFactory']['buildSuggestion'](_0x538b07,_0x135111,_0x413e17,_0x46c3c8,_0x42754e=>this['_updateSuggestionData'](_0x413e17,{'attributes':_0x42754e}));return this['listenTo'](_0x275ec3,'accept',()=>{this['_updateSuggestionData'](_0x413e17,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x275ec3,'discard',()=>{this['_updateSuggestionData'](_0x413e17,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x413e17,_0x275ec3),this['_suggestionState']['set'](_0x275ec3,'notReady'),_0x275ec3;}['_splitMarkerName'](_0x11d171){const _0x3a9085=_0x11d171['split'](':');return{'group':_0x3a9085[0x0],'type':_0x3a9085[0x1],'subType':_0x3a9085['length']>=0x5?_0x3a9085[0x2]:null,'id':_0x3a9085['length']<0x5?_0x3a9085[0x2]:_0x3a9085[0x3],'authorId':_0x3a9085['length']<0x5?_0x3a9085[0x3]:_0x3a9085[0x4],'markerCount':0x6==_0x3a9085['length']?_0x3a9085[0x5]:null};}['_breakSuggestionMarker'](_0x35a922,_0x340f83,_0x1a3903){const _0x125753=_0x35a922['getFirstRange'](),_0x3a5ba9=_0x125753['start'],_0x4c359e=_0x125753['end'];this['_setSuggestionRange'](_0x35a922,this['_model']['createRange'](_0x3a5ba9,_0x340f83));const _0x432d1e=_0x17e38b(),_0x3643d8=_0x35a922['author']['id'],_0x2609da=_0x35a922['type']+(_0x35a922['subType']?':'+_0x35a922['subType']:'');this['_setSuggestionData']({'id':_0x432d1e,'type':_0x2609da,'createdAt':new Date(),'authorId':_0x3643d8,'originalSuggestionId':_0x35a922['id'],'data':_0x35a922['data']}),'formatBlock'==_0x35a922['type']&&(_0x1a3903=this['_model']['createPositionBefore'](_0x1a3903['parent'])),this['_addSuggestionMarker'](_0x2609da,_0x432d1e,_0x3643d8,this['_model']['createRange'](_0x1a3903,_0x4c359e));}['_findSuggestions'](_0x2b94b1,_0x3d1d74=null){const _0x3713c5=[],_0x4fd53e=this['_model']['schema'],_0x57dfbb=this['editor']['plugins']['get']('Users')['me'];for(const _0xcf2331 of this['getSuggestions']())if(_0xcf2331['isInContent']&&(!_0x3d1d74||_0xcf2331['type']==_0x3d1d74))for(const _0x3c5bb2 of _0xcf2331['getRanges']()){const _0x4b0392=_0x2b94b1['start']['isEqual'](_0x3c5bb2['end'])||_0x2b94b1['end']['isEqual'](_0x3c5bb2['start']);if(_0x4b0392||_0x2b94b1['getIntersection'](_0x3c5bb2)){const _0x28bf3c=_0x2b94b1['containsRange'](_0x3c5bb2)&&wt(_0x4fd53e,_0x3c5bb2['start'],_0x2b94b1),_0x1cbff0=_0x3c5bb2['containsRange'](_0x2b94b1)&&wt(_0x4fd53e,_0x2b94b1['start'],_0x3c5bb2);_0x3713c5['push']({'suggestion':_0xcf2331,'meta':{'isOwn':_0x57dfbb==_0xcf2331['author'],'isNextTo':_0x4b0392,'isInsideObject':_0x28bf3c,'containsRangeInObject':_0x1cbff0}});break;}}return _0x3713c5;}['_addSuggestionMarker'](_0x4f1f9e,_0xa46949,_0x33399f,_0x59a4e1,_0x288e24=null){this['_model']['change'](_0x69b90=>{let _0x13d422='suggestion:'+_0x4f1f9e+':'+_0xa46949+':'+_0x33399f;_0x288e24&&(_0x13d422=_0x13d422+':'+_0x288e24),_0x69b90['addMarker'](_0x13d422,{'range':_0x59a4e1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4d10f5){const _0x3c656f=_0x4d10f5['previous'],_0x39f93f=_0x4d10f5['next'];_0x4d10f5['previous']=null,null!=_0x3c656f&&(_0x3c656f['next']=null),_0x4d10f5['next']=null,null!=_0x39f93f&&(_0x39f93f['previous']=null),'ready'==this['_suggestionState']['get'](_0x4d10f5)&&(this['_suggestionState']['set'](_0x4d10f5,'removed'),this['fire']('suggestionUnloaded',_0x4d10f5,_0x3c656f,_0x39f93f));}['_setSuggestionData'](_0x96d786){const _0x34ce6e=_0x96d786['id'],_0x3512b6=this['addSuggestionData'](_0x96d786);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x129120=this['editor']['plugins']['get']('PendingActions'),_0x53ec1c=_0x3512b6['hasComments'],_0x1b8d40=_0x3512b6['subType']?_0x3512b6['type']+':'+_0x3512b6['subType']:_0x3512b6['type'],t=this['editor']['locale']['t'],_0x55c38a=_0x129120['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'})),_0x405e78={'id':_0x34ce6e,'type':_0x1b8d40,'hasComments':_0x53ec1c,'data':_0x96d786['data']||null,'originalSuggestionId':_0x96d786['originalSuggestionId']||null,'attributes':_0x3512b6['attributes']};this['_adapter']['addSuggestion'](_0x405e78)['then'](_0x3f6209=>{_0x3512b6['_saved']=!0x0,_0x129120['remove'](_0x55c38a),_0x3f6209&&_0x3f6209['createdAt']&&(this['_suggestions']['get'](_0x34ce6e)['createdAt']=_0x3f6209['createdAt']);});}return _0x3512b6;}['_updateSuggestionData'](_0x16181b,_0x485dbd){const _0x28689a=this['editor']['plugins']['get']('PendingActions'),_0x4a2ec3=this['_suggestions']['get'](_0x16181b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4a2ec3['_saved']){const t=this['editor']['locale']['t'],_0x1fbbd7=_0x28689a['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));this['_adapter']['updateSuggestion'](_0x16181b,_0x485dbd)['then'](()=>{_0x28689a['remove'](_0x1fbbd7);});}else _0x4a2ec3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x16181b,_0x485dbd);});}}['_getSuggestionData'](_0x4b911f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x6684a1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4b911f);}['_handleNewSuggestionMarker'](_0x424044){const {id:_0x6090b4,type:_0x45bb78,subType:_0x550832,authorId:_0x161e46}=this['_splitMarkerName'](_0x424044),_0x21c565=this['_suggestions']['get'](_0x6090b4)||this['_createSuggestion'](_0x45bb78,_0x550832,_0x6090b4,_0x161e46);switch(this['_checkSuggestionCorrectness'](_0x21c565,_0x45bb78,_0x550832,_0x161e46),this['_suggestionState']['get'](_0x21c565)){case'notReady':this['_getSuggestionData'](_0x6090b4)['then'](_0x24bf35=>{let _0x1952b4=Promise['resolve']();_0x24bf35['hasComments']&&(_0x1952b4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x6090b4})),_0x1952b4['then'](()=>{this['addSuggestionData'](_0x24bf35)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x21c565,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x6090b4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x21c565,'ready'),this['fire']('suggestionLoaded',_0x21c565);break;case'ready':this['fire']('suggestionChanged',_0x21c565);}_0x21c565['addMarkerName'](_0x424044),this['_refreshSuggestionsChain'](_0x21c565);}['_refreshSuggestionsChain'](_0x25a272){if(_0x25a272['isMultiRange'])return;let _0x1fe28e=!0x0,_0x54ea95=!0x0;for(const _0x139afb of this['getSuggestions']()){if(_0x139afb['isMultiRange'])continue;if(_0x139afb==_0x25a272||!_0x139afb['isInContent'])continue;if(_0x139afb['author']['id']!=_0x25a272['author']['id'])continue;const _0x52e87f=this['_suggestionFactory']['getSuggestionCallback'](_0x25a272['type'],_0x25a272['subType'],'chain'),_0x3bc02b=this['_suggestionFactory']['getSuggestionCallback'](_0x139afb['type'],_0x139afb['subType'],'chain'),_0x2eaf40=_0x52e87f(_0x25a272,_0x139afb),_0x234d23=_0x3bc02b(_0x25a272,_0x139afb);_0x2eaf40&&_0x234d23&&(_0x2eaf40[0x1]['commentThread']&&_0x2eaf40[0x1]['commentThread']['length']||(_0x2eaf40[0x0]['next']=_0x2eaf40[0x1],_0x2eaf40[0x1]['previous']=_0x2eaf40[0x0],_0x2eaf40[0x0]==_0x25a272?_0x54ea95=!0x1:_0x1fe28e=!0x1));}_0x25a272['previous']&&_0x1fe28e&&(_0x25a272['previous']['next']=null,_0x25a272['previous']=null),_0x25a272['next']&&_0x54ea95&&(_0x25a272['next']['previous']=null,_0x25a272['next']=null);}['_joinWithAdjacentSuggestions'](_0x3e1e59){for(const _0x262297 of this['_suggestions']['values']()){if(_0x262297==_0x3e1e59||!_0x262297['isInContent'])continue;if(_0x262297['type']!=_0x3e1e59['type']||_0x262297['author']['id']!=_0x3e1e59['author']['id']||_0x262297['subType']!=_0x3e1e59['subType'])continue;const _0x1487a1=this['_suggestionFactory']['getSuggestionCallback'](_0x3e1e59['type'],_0x3e1e59['subType'],'join');if(_0x1487a1(_0x262297['getRanges'](),_0x3e1e59['getRanges']())){if(_0x3e1e59['commentThread']&&_0x3e1e59['commentThread']['length'])continue;return this['_joinSuggestions'](_0x262297,_0x3e1e59),!0x0;}if(_0x1487a1(_0x3e1e59['getRanges'](),_0x262297['getRanges']())){if(_0x262297['commentThread']&&_0x262297['commentThread']['length'])continue;return this['_joinSuggestions'](_0x3e1e59,_0x262297),!0x0;}}return!0x1;}['_joinSuggestions'](_0x23864a,_0x55d54a){if(_0x23864a['isMultiRange'])for(const _0x17012f of _0x55d54a['getRanges']())_0x23864a['addRange'](_0x17012f);else{const _0x246f8c=_0x55d54a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x23864a,this['_model']['createRange'](_0x23864a['getFirstRange']()['start'],_0x246f8c));}_0x55d54a['removeMarkers']();}}_0x3e6840(l,_0x37c232);class kt{constructor(_0x3504b2){this['_editor']=_0x3504b2,this['_model']=_0x3504b2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2c1eaf,_0x586ebf,_0x2ef4f4,_0x29da36,_0x328f65){return new _0xf23b9(this['_model'],{'type':_0x2c1eaf,'subType':_0x586ebf,'id':_0x2ef4f4,'author':_0x29da36,'onAttributesChange':_0x328f65,'onAccept':(..._0x2e0eb6)=>this['getSuggestionCallback'](_0x2c1eaf,_0x586ebf,'accept')(..._0x2e0eb6),'onDiscard':(..._0xbc3a41)=>this['getSuggestionCallback'](_0x2c1eaf,_0x586ebf,'discard')(..._0xbc3a41)});}['registerCustomCallback'](_0x1f9d30,_0x48c22e,_0x4a37aa,_0x51861d){const _0x4262ff=_0x1f9d30+':'+_0x48c22e+':'+_0x4a37aa;this['_customCallbacks']['set'](_0x4262ff,_0x51861d);}['getSuggestionCallback'](_0x45b291,_0x2d26bc,_0x1e7129){const _0x1b7996=_0x45b291+':'+_0x2d26bc+':'+_0x1e7129;return this['_customCallbacks']['get'](_0x1b7996)||this['_defaultCallbacks']['get'](_0x45b291+':'+_0x1e7129);}['_registerDefaultCallbacks'](){const _0x328a70=()=>{},_0x1948ef=_0x23688=>{_0x23688['sort']((_0x5c5ffb,_0x41f69c)=>_0x5c5ffb['start']['isBefore'](_0x41f69c['start'])?0x1:-0x1),this['_model']['change'](_0x48487b=>{for(const _0x3047a6 of _0x23688){let _0x2cc38a;_0x2cc38a=_0x3047a6['end']['isAtEnd']&&_0x3047a6['end']['parent']==_0x3047a6['start']['nodeAfter']?_0x48487b['createSelection'](_0x3047a6['start']['nodeAfter'],'on'):_0x48487b['createSelection'](_0x3047a6),this['_model']['deleteContent'](_0x2cc38a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xf95ee6=(_0x17277e,_0x5bd8da)=>{this['_model']['change'](_0x37017f=>{const {commandName:_0x466d15,commandParams:_0x284632=[]}=_0x5bd8da,_0x173709=_0x17277e[0x0];if('$graveyard'==_0x173709['root']['rootName'])return;const _0x483514=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5a08b7=>_0x2dbd60['fromRange'](_0x5a08b7));yt(_0x173709)?_0x37017f['setSelection'](this['_model']['createRange'](_0x173709['end'])):_0x37017f['setSelection'](_0x173709);for(const _0x2fdbe3 of this['_editor']['commands']['commands']())_0x2fdbe3['refresh']();_0x284632['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x466d15,..._0x284632);const _0x1f5e28=_0x483514['filter'](_0x30c1ec=>'$graveyard'!=_0x30c1ec['root']['rootName']);_0x1f5e28['length']>0x0&&_0x37017f['setSelection'](_0x1f5e28);for(const _0x52d29b of _0x483514)_0x52d29b['detach']();});},_0x3b0e7e=(_0x30f0b9,_0x2277f9)=>0x1==_0x30f0b9['length']&&0x1==_0x2277f9['length']&&_0x30f0b9[0x0]['end']['isEqual'](_0x2277f9[0x0]['start']),_0x42724c=(_0x4b1e48,_0x5cace1)=>Dt(_0x4b1e48,_0x5cace1,this['_model'])?[_0x4b1e48,_0x5cace1]:Dt(_0x5cace1,_0x4b1e48,this['_model'])?[_0x5cace1,_0x4b1e48]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x328a70),this['_defaultCallbacks']['set']('insertion:discard',_0x1948ef),this['_defaultCallbacks']['set']('insertion:join',_0x3b0e7e),this['_defaultCallbacks']['set']('insertion:chain',_0x42724c),this['_defaultCallbacks']['set']('deletion:accept',_0x1948ef),this['_defaultCallbacks']['set']('deletion:discard',_0x328a70),this['_defaultCallbacks']['set']('deletion:join',_0x3b0e7e),this['_defaultCallbacks']['set']('deletion:chain',_0x42724c),this['_defaultCallbacks']['set']('formatInline:accept',_0xf95ee6),this['_defaultCallbacks']['set']('formatInline:discard',_0x328a70),this['_defaultCallbacks']['set']('formatInline:join',_0x3b0e7e),this['_defaultCallbacks']['set']('formatInline:chain',_0x328a70),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf95ee6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x328a70),this['_defaultCallbacks']['set']('formatBlock:join',_0x3b0e7e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x328a70);}}function wt(_0x4caf58,_0x119ed0,_0x11eea5){for(const _0x3ccffa of _0x119ed0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3ccffa['root']==_0x3ccffa)return!0x1;if(!_0x11eea5['containsItem'](_0x3ccffa))return!0x1;if(_0x4caf58['isObject'](_0x3ccffa)||_0x4caf58['isLimit'](_0x3ccffa))return!0x0;}}function yt(_0x746e09){return _0x746e09['end']['parent']==_0x746e09['start']['nodeAfter']&&_0x746e09['end']['isAtStart'];}function St(_0xc12e94,_0xdaedba,_0x17c7b3,_0x308c28){const _0x1de82f=_0x193961=>!_0x193961['item']['is']('textProxy')&&!_0x308c28['isObject'](_0x193961['item']),_0x4de93f=_0xc12e94['start']['getLastMatchingPosition'](_0x1de82f),_0x249edb=_0xc12e94['end']['getLastMatchingPosition'](_0x1de82f,{'direction':'backward'});return(!_0xc12e94['start']['isEqual'](_0x4de93f)||!_0xc12e94['end']['isEqual'](_0x249edb))&&(_0x4de93f['isBefore'](_0x249edb)?_0x17c7b3['updateMarker'](_0xdaedba,{'range':_0x17c7b3['createRange'](_0x4de93f,_0x249edb)}):_0x17c7b3['removeMarker'](_0xdaedba),!0x0);}function bt(_0x42234a){return mt(_0x42234a);}function It(_0x2539e5){const _0x3eea91=_0x2539e5['start']['nodeAfter'];return _0x3eea91&&_0x3eea91['is']('element');}function vt(_0x304e67,_0x6f7cf1){const _0x23c093=_0x6f7cf1['schema']['isObject'](_0x304e67)||_0x6f7cf1['schema']['isSelectable'](_0x304e67);return _0x6f7cf1['createRange'](_0x6f7cf1['createPositionAt'](_0x304e67,'before'),_0x23c093?_0x6f7cf1['createPositionAfter'](_0x304e67):_0x6f7cf1['createPositionAt'](_0x304e67,'end'));}function Dt(_0x1f0d78,_0x446244,_0x573da5){const _0x5f13ae=_0x1f0d78['getFirstRange'](),_0x1c8d9e=_0x446244['getFirstRange']();if(_0x5f13ae['end']['isEqual'](_0x1c8d9e['start']))return!0x0;if(_0x1f0d78['type']!=_0x446244['type'])return!0x1;if(!_0x5f13ae['end']['isTouching'](_0x1c8d9e['start']))return!0x1;const _0x451686=_0x573da5['createRange'](_0x5f13ae['end'],_0x1c8d9e['start'])['getWalker']();for(const _0x1bb75e of _0x451686)if(['elementStart','elementEnd']['includes'](_0x1bb75e['type'])&&_0x573da5['schema']['isLimit'](_0x1bb75e['item']))return!0x1;return!0x0;}
23
+ const _0x5ca0=['_updateSuggestionData','_joinWithAdjacentSuggestions','_addSuggestionMarker','insertContent','marker-count','getAllAdjacentSuggestions','formatBlock','isSelectable','fire','registerCustomCallback','hasComments','dataReady','isNextTo','execute','addSuggestion','editing','model','_joinSuggestions','getRanges','isObject','removeClass','data','filter','change:data','isLocal','notReady','addClass','originalSuggestionId','isCollapsed','markInlineFormat','getCustomProperty','skipNestingCheck','forceDefaultExecution','normal','stop','fetchCommentThread','detach','isInContent','elementToElement','isUndo','markDeletion','collaboration.channelId','_suggestionState','set','getWalker','toViewElement','splitPosition','newRange','containsRangeInObject','_createSuggestion','createPositionAt','listenTo','_setSuggestionRange','map','updateMarker','targetPosition','markBlockFormat','every','_defaultCallbacks','clear','deletion:discard','join','createdAt','_rangeIsInLocalUserInsertion','elementStart','suggestion:','isBefore','markers','getShiftedBy','createRangeIn','fromCharCode','ck-suggestion-marker','getUser','getSuggestion','some','getMultiRangeId','getSuggestionCallback','acceptSuggestion','commentThread','$graveyard','_suggestions','getNearestSelectionRange','add','schema','push','includes','track-changes-suggestion-data-mismatch','differ','return','pluginName','formatInline','reconvertMarker','formatBlock:chain','isInsideObject','markerReady','locale','removeAttribute','rootName','rejected','getAttribute','containsPosition','consumable','setSelection','values','_enabledCommands','formatInline:','elementEnd','containerElement','multi','formatBlock:','end','getFirstRange','createPositionBefore','config','formatInline:discard','removeComment','getIntersection','parent','deletion:join','track-changes-suggestion-not-found','suggestion','addHighlight','PENDING_ACTION_SUGGESTION','markMultiRangeInsertion','getFirstMarker','value','_registerDefaultCallbacks','insertion:accept','suggestionUnloaded','before','discard','for','remove','discardAllSuggestions','addMarkerName','selection','containsRange','isBlock','consume','_getSuggestionData','formatInline:join','requires','change:activeMarkers','nodeAfter','_model','plugins','conversion','size','_refreshSuggestionsChain','_editor','getAncestors','accept','getCommentThread','trackChanges','deletion','removeMarker','accepted','isIntersectingWithRange','element','CommentsRepository','createSelection','after','has','_cutOutSuggestionMarker','buildSuggestion','next','createPositionAfter','attributes','writer','low','isAfter','splice','item','addSuggestionData','addMarker:suggestion','hasSuggestion','insertion','ck-suggestion-marker-','deleteContent','insertion:','addMarker:suggestion:formatBlock','change:_saved','start','clone','suggestionChanged','_findSuggestions','fromRange','get','getChanges','textProxy','PendingActions','discardSelectedSuggestions','name','getSuggestions','then','getRange','type','lowest','commands','resolve','mapper','removeMarkers','Users','commandName','_setSuggestionData','_adapter','$marker','getDifference','range','insertion:chain','high','track-changes-adapter-already-set','rethrowUnexpectedError','chain','enableCommand','head','track-changes-command-not-found','unbind','suggestionLoaded','_customCallbacks','editingDowncast','howMany','TrackChangesEditing','isLimit','document','batch','insert','multipleBlocks','formatGroupId','deletion:accept','author','addMarker','length','isEqual','trackChangesCommand','_isForcedDefaultExecutionBlock','isDocumentOperation','_removeSuggestion','previous','track-changes-user-not-found','ready','nodeBefore','removed','markMultiRangeDeletion','_addThreadToSuggestion','formatBlock:join','root','addComment','position','removeMarker:suggestion:formatBlock','getItems','acceptSelectedSuggestions','upcast','markerToData','track-changes-adapter-missing-getsuggestion','_suggestionFactory','deletion:','_saved','adapter','init','enableReadOnlyMode','sort','markInsertion','subType','bindElementToMarker','activeMarkers','open','_checkSuggestionCorrectness','registerPostFixer','options','split','_commentsRepository','_breakSuggestionMarker','ck-suggestion-marker--active','createRange','isMultiRange','acceptAllSuggestions','markerToHighlight','updateSuggestion','addRange','markerName','isOwn','showSuggestionHighlights','getChangedMarkers','dataDowncast','from','oldRange','moveTargetPosition','backward','_handleNewSuggestionMarker','editor','change','isAtEnd','getLastMatchingPosition','deletion:chain','dataToMarker','formatBlock:discard','toJSON','_splitMarkerName'];(function(_0x180524,_0x5ca07d){const _0x6ec6bf=function(_0x18354e){while(--_0x18354e){_0x180524['push'](_0x180524['shift']());}};_0x6ec6bf(++_0x5ca07d);}(_0x5ca0,0xc8));const _0x6ec6=function(_0x180524,_0x5ca07d){_0x180524=_0x180524-0x0;let _0x6ec6bf=_0x5ca0[_0x180524];return _0x6ec6bf;};import{Plugin as _0x11b456,PendingActions as _0x19eaa9}from'ckeditor5/src/core';import{LiveRange as _0x341c07}from'ckeditor5/src/engine';import{CKEditorError as _0x251ff9,uid as _0x54747c,priorities as _0x3ec018,EmitterMixin as _0x3858ac,mix as _0x550c42}from'ckeditor5/src/utils';import{toWidget as _0x57d1bc}from'ckeditor5/src/widget';import{Users as _0x12dd51}from'ckeditor5-collaboration/src/collaboration-core';import _0x4f27bd from'./commands/trackchangescommand';import _0x5ae1f3 from'./commands/acceptsuggestioncommand';import _0x27c8de from'./commands/discardsuggestioncommand';import _0x10712a from'./commands/acceptallsuggestionscommand';import _0x2718be from'./commands/acceptselectedsuggestionscommand';import _0xb99a9e from'./commands/discardallsuggestionscommand';import _0x2654de from'./commands/discardselectedsuggestionscommand';import _0x32d0a2 from'./suggestion';import _0x4149fa from'./suggestiondescriptionfactory';import _0x5cd68a from'./integrations/alignment';import _0x9bba3f from'./integrations/basicstyles';import _0x586287 from'./integrations/blockquote';import _0x1711f5 from'./integrations/codeblock';import _0x1d8c1 from'./integrations/comments';import _0x2dbf85 from'./integrations/deletecommand';import _0x3d2c14 from'./integrations/entercommand';import _0x423b09 from'./integrations/font';import _0x1167e8 from'./integrations/heading';import _0x736708 from'./integrations/highlight';import _0x22ba7b from'./integrations/horizontalline';import _0x319c4f from'./integrations/image';import _0x363667 from'./integrations/indent';import _0x3d2ef0 from'./integrations/inputcommand';import _0x95cda3 from'./integrations/link';import _0x577430 from'./integrations/list';import _0x51e219 from'./integrations/mediaembed';import _0x9a13e from'./integrations/mention';import _0x16989c from'./integrations/pagebreak';import _0x3dc08b from'./integrations/paragraph';import _0xe602ab from'./integrations/removeformat';import _0x18d0f7 from'./integrations/restrictededitingmode';import _0x27a58e from'./integrations/shiftentercommand';import _0x7db0bb from'./integrations/standardeditingmode';import _0x1e20a7 from'./integrations/table';import _0x15aaae from'./integrations/tablemergesplit';import _0x1f3f01 from'./integrations/tableheadings';import _0x3cfa9c from'./integrations/tableclipboard';import _0x2c7d7f from'./integrations/title';import _0x5132c4 from'./integrations/undo';import _0x1d81a6 from'./utils/hashobject.js';import{getTranslation as _0x5d766b}from'./utils/common-translations';export default class d extends _0x11b456{static get[_0x6ec6('0xf0')](){return[_0x6ec6('0x102'),_0x12dd51,_0x19eaa9,_0x5cd68a,_0x9bba3f,_0x586287,_0x1711f5,_0x1d8c1,_0x2dbf85,_0x3d2c14,_0x423b09,_0x1167e8,_0x736708,_0x22ba7b,_0x319c4f,_0x363667,_0x3d2ef0,_0x95cda3,_0x577430,_0x51e219,_0x9a13e,_0x16989c,_0x3dc08b,_0xe602ab,_0x18d0f7,_0x27a58e,_0x7db0bb,_0x1e20a7,_0x15aaae,_0x1f3f01,_0x3cfa9c,_0x2c7d7f,_0x5132c4];}static get[_0x6ec6('0xbc')](){return _0x6ec6('0x16');}constructor(_0x209850){function _0x1c5bd7(_0x4d8a60){return _0x4d8a60[_0x6ec6('0x98')](_0x45ceaa=>String[_0x6ec6('0xa9')](_0x45ceaa))[_0x6ec6('0xa0')]('');}super(_0x209850),this['set'](_0x6ec6('0x41'),[]),this['on'](_0x6ec6('0xf1'),(_0x5df85b,_0x128c90,_0x117942,_0x2f1d24)=>{this[_0x6ec6('0xf3')]['change'](()=>{for(const _0x54b084 of[..._0x2f1d24,..._0x117942])this[_0x6ec6('0xf3')][_0x6ec6('0xa6')][_0x6ec6('0x105')](_0x54b084)&&_0x209850[_0x6ec6('0x72')][_0x6ec6('0xbe')](_0x54b084);});}),this['_descriptionFactory']=new _0x4149fa(this[_0x6ec6('0x5a')]['model'][_0x6ec6('0xb6')],this[_0x6ec6('0x5a')][_0x6ec6('0xc2')]),this['_adapter']=null,this[_0x6ec6('0x37')]=new lt(this['editor']),this[_0x6ec6('0xb3')]=new Map(),this['_commentsRepository']=_0x209850[_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x102')),this[_0x6ec6('0xcb')]=new Set(),this[_0x6ec6('0xf3')]=this[_0x6ec6('0x5a')]['model'],this[_0x6ec6('0x8d')]=new WeakMap(),this[_0x6ec6('0x23')]=!0x1,this[_0x1c5bd7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1c5bd7([0x34,0x30,0x34,0x34,0x31,0x30,0x35,0x30]);}[_0x6ec6('0x3b')](){const _0x3e0ffe=this[_0x6ec6('0x5a')];_0x3e0ffe['conversion']['for'](_0x6ec6('0x14'))[_0x6ec6('0x4d')]({'model':_0x6ec6('0xdb'),'view':_0x80ac7a=>{const {id:_0x274eda,type:_0x590709}=this[_0x6ec6('0x62')](_0x80ac7a[_0x6ec6('0x50')]),_0x42f40b=[_0x6ec6('0xaa'),_0x6ec6('0x114')+_0x590709];let _0xff4a0c=0xbb8;return this['activeMarkers']['includes'](_0x80ac7a['markerName'])&&(_0x42f40b[_0x6ec6('0xb7')]('ck-suggestion-marker--active'),_0xff4a0c=0xbc2),'deletion'==_0x590709&&(_0xff4a0c+=0x5),{'classes':_0x42f40b,'attributes':{'data-suggestion':_0x274eda},'priority':_0xff4a0c};}}),_0x3e0ffe[_0x6ec6('0xf5')]['for']('dataDowncast')['add'](_0x592e57=>{_0x592e57['on'](_0x6ec6('0x111'),(_0x39a31f,_0x27353e,_0x304578)=>{if(!_0x304578['options'][_0x6ec6('0x52')])return;const _0x5578f5=_0x27353e[_0x6ec6('0x10f')];if(!_0x5578f5)return;const _0x46e9bd=_0x304578['mapper'][_0x6ec6('0x90')](_0x5578f5);_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xb6')][_0x6ec6('0x76')](_0x5578f5)&&_0x46e9bd&&!_0x46e9bd['getCustomProperty']('widget')&&_0x46e9bd['is'](_0x6ec6('0xce'))&&_0x57d1bc(_0x46e9bd,_0x304578['writer']);},{'priority':_0x6ec6('0xa')});}),_0x3e0ffe[_0x6ec6('0xf5')]['for'](_0x6ec6('0x54'))[_0x6ec6('0x4d')]({'model':_0x6ec6('0xdb'),'view':(_0x2708d6,_0x38a75a)=>{if(!_0x38a75a[_0x6ec6('0x45')][_0x6ec6('0x52')])return null;const {type:_0x2e5db7}=this[_0x6ec6('0x62')](_0x2708d6[_0x6ec6('0x50')]);return{'classes':['ck-suggestion-marker',_0x6ec6('0x114')+_0x2e5db7],'priority':0xbb8};}});const _0x2fecf1=({showActiveMarkers:_0x3447ac=!0x0}={})=>(_0x1781a0,_0x2c28f4,_0x5e3e2f)=>{if(!_0x2c28f4[_0x6ec6('0x10f')])return;if(_0x2c28f4['item']['is'](_0x6ec6('0xea')))return void _0x5e3e2f[_0x6ec6('0xc8')][_0x6ec6('0xed')](_0x2c28f4[_0x6ec6('0x10f')],_0x1781a0[_0x6ec6('0x123')]);const _0x40dd87=_0x5e3e2f[_0x6ec6('0x0')][_0x6ec6('0x90')](_0x2c28f4['item']);if(!(_0x2c28f4['item']['is'](_0x6ec6('0x101'))&&_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xb6')][_0x6ec6('0xec')](_0x2c28f4[_0x6ec6('0x10f')])&&!_0x40dd87[_0x6ec6('0x81')](_0x6ec6('0xdc'))))return;const {id:_0xdc53ff}=this['_splitMarkerName'](_0x2c28f4[_0x6ec6('0x50')]);_0x5e3e2f['writer'][_0x6ec6('0x7d')]([_0x6ec6('0xaa'),'ck-suggestion-marker-formatBlock'],_0x40dd87),_0x5e3e2f['writer']['setAttribute']('data-suggestion',_0xdc53ff,_0x40dd87),_0x5e3e2f['mapper'][_0x6ec6('0x40')](_0x40dd87,_0x2c28f4[_0x6ec6('0x50')]),_0x3447ac&&(this['activeMarkers']['includes'](_0x2c28f4['markerName'])?_0x5e3e2f[_0x6ec6('0x10b')]['addClass']('ck-suggestion-marker--active',_0x40dd87):_0x5e3e2f[_0x6ec6('0x10b')]['removeClass'](_0x6ec6('0x49'),_0x40dd87));for(const _0x59f910 of _0x3e0ffe['model'][_0x6ec6('0xa8')](_0x2c28f4[_0x6ec6('0x10f')])[_0x6ec6('0x32')]())_0x5e3e2f[_0x6ec6('0xc8')][_0x6ec6('0xed')](_0x59f910,_0x1781a0[_0x6ec6('0x123')]);_0x5e3e2f['consumable']['consume'](_0x2c28f4[_0x6ec6('0x10f')],_0x1781a0[_0x6ec6('0x123')]);};_0x3e0ffe[_0x6ec6('0xf5')][_0x6ec6('0xe6')]('dataDowncast')['add'](_0x315fcf=>{_0x315fcf['on'](_0x6ec6('0x117'),(_0x486a27,_0x476b13,_0x154ddd)=>{_0x154ddd[_0x6ec6('0x45')]['showSuggestionHighlights']&&_0x2fecf1({'showActiveMarkers':!0x1})(_0x486a27,_0x476b13,_0x154ddd);},{'priority':'highest'});}),_0x3e0ffe['conversion'][_0x6ec6('0xe6')](_0x6ec6('0x54'))[_0x6ec6('0x35')]({'model':'suggestion','view':(_0x4fd679,_0x526781)=>_0x526781[_0x6ec6('0x45')][_0x6ec6('0x52')]?null:{'group':_0x6ec6('0xdb'),'name':_0x4fd679['substr']('suggestion'[_0x6ec6('0x20')]+0x1)}}),_0x3e0ffe[_0x6ec6('0xf5')][_0x6ec6('0xe6')](_0x6ec6('0x34'))[_0x6ec6('0x89')]({'view':{'name':_0x6ec6('0xdb'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x267220,{writer:_0x4d5e73})=>{let _0xf936fb=_0x6ec6('0xa4')+_0x267220[_0x6ec6('0xc6')]('suggestion-type')+':'+_0x267220['getAttribute']('id');return _0x267220[_0x6ec6('0xc6')]('marker-count')&&(_0xf936fb+=':'+_0x267220['getAttribute'](_0x6ec6('0x67'))),_0x4d5e73['createElement'](_0x6ec6('0x6'),{'data-name':_0xf936fb});}}),_0x3e0ffe[_0x6ec6('0xf5')][_0x6ec6('0xe6')]('upcast')[_0x6ec6('0x5f')]({'view':_0x6ec6('0xdb')}),_0x3e0ffe[_0x6ec6('0xf5')][_0x6ec6('0xe6')](_0x6ec6('0x14'))['add'](_0xd9fcb0=>{_0xd9fcb0['on'](_0x6ec6('0x117'),_0x2fecf1(),{'priority':_0x6ec6('0xa')});}),_0x3e0ffe[_0x6ec6('0xf5')]['for'](_0x6ec6('0x14'))[_0x6ec6('0xb5')](_0x162ff1=>{_0x162ff1['on'](_0x6ec6('0x31'),(_0x2220a7,_0x2f5801,_0x15c328)=>{const _0x43c396=_0x15c328['mapper']['markerNameToElements'](_0x2f5801['markerName']);if(_0x43c396)for(const _0x11689b of _0x43c396)_0x11689b[_0x6ec6('0x81')](_0x6ec6('0xdc'))||(_0x15c328[_0x6ec6('0x10b')][_0x6ec6('0x77')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x6ec6('0x49')],_0x11689b),_0x15c328[_0x6ec6('0x10b')][_0x6ec6('0xc3')]('data-suggestion',_0x11689b),_0x15c328[_0x6ec6('0x0')]['unbindElementFromMarkerName'](_0x11689b,_0x2f5801[_0x6ec6('0x50')]));},{'priority':_0x6ec6('0xa')});}),_0x3e0ffe['model']['document'][_0x6ec6('0x44')](_0x36f6ae=>{let _0x3b5a02=!0x1;const _0x3fcf41=Array['from'](_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x18')][_0x6ec6('0xba')][_0x6ec6('0x53')]());for(const {name:_0x3a95f7,data:_0x1a5785}of _0x3fcf41){const {group:_0x31fb96,type:_0x3c4349,id:_0x19b333}=this[_0x6ec6('0x62')](_0x3a95f7);if(_0x6ec6('0xdb')!==_0x31fb96)continue;const _0x47677c=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x19b333);if(null!=_0x1a5785[_0x6ec6('0x92')]){_0x6ec6('0xbd')==_0x3c4349&&(_0x3b5a02=_0x3b5a02||pt(_0x1a5785['newRange'],_0x3a95f7,_0x36f6ae,_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xb6')]));if(_0x1a5785[_0x6ec6('0x92')][_0x6ec6('0x7f')]||_0x6ec6('0xb2')==_0x1a5785[_0x6ec6('0x92')][_0x6ec6('0x2e')][_0x6ec6('0xc4')]||_0x6ec6('0x69')==_0x3c4349&&!wt(_0x1a5785['newRange'])||_0x6ec6('0xfd')==_0x3c4349&&!(!dt(_0x3afd92=_0x1a5785[_0x6ec6('0x92')])&&!function(_0x5c351f){return _0x5c351f[_0x6ec6('0x119')]['parent']==_0x5c351f[_0x6ec6('0xd1')][_0x6ec6('0x29')]&&_0x5c351f[_0x6ec6('0x119')][_0x6ec6('0x5c')];}(_0x3afd92)))_0x36f6ae['removeMarker'](_0x3a95f7),_0x3b5a02=!0x0;else{if(!_0x47677c||!_0x47677c[_0x6ec6('0x88')])continue;_0x3b5a02=!!this['_joinWithAdjacentSuggestions'](_0x47677c)||_0x3b5a02;}}}var _0x3afd92;return _0x3b5a02;}),_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x18')][_0x6ec6('0x44')](_0x3e5149=>{let _0x3e504=!0x1;for(const _0x11b967 of _0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x18')]['differ'][_0x6ec6('0x11f')]()){if(_0x6ec6('0x1a')!=_0x11b967[_0x6ec6('0x127')])continue;const _0x465cd4=_0x11b967[_0x6ec6('0x30')]['getShiftedBy'](_0x11b967[_0x6ec6('0x20')]);if(_0x465cd4[_0x6ec6('0x5c')])for(const _0x468368 of this[_0x6ec6('0xb3')][_0x6ec6('0xca')]()){if(_0x468368[_0x6ec6('0x4b')]||!_0x468368[_0x6ec6('0x88')])continue;if('formatBlock'!=_0x468368['type'])continue;const _0x1abaa1=_0x468368[_0x6ec6('0xd2')]();if(_0x1abaa1['start'][_0x6ec6('0xd8')]!=_0x1abaa1[_0x6ec6('0xd1')][_0x6ec6('0xd8')]&&_0x1abaa1[_0x6ec6('0xd1')][_0x6ec6('0x21')](_0x11b967[_0x6ec6('0x30')])){const _0x48aa2f=_0x3e0ffe[_0x6ec6('0x73')]['createRange'](_0x1abaa1[_0x6ec6('0x119')],_0x465cd4);_0x3e5149[_0x6ec6('0x99')](_0x468368[_0x6ec6('0xdf')](),{'range':_0x48aa2f}),_0x3e504=!0x0;}}}return _0x3e504;}),_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xa6')]['on']('update:suggestion',(_0x33a060,_0x13d728,_0x31ed2a)=>{if(null==_0x31ed2a){const {id:_0x1d7473}=this['_splitMarkerName'](_0x13d728[_0x6ec6('0x123')]),_0x3c7d96=this['_suggestions'][_0x6ec6('0x11e')](_0x1d7473);_0x3c7d96&&_0x3c7d96[_0x6ec6('0xe9')](_0x13d728['name']);}}),_0x3e0ffe['model'][_0x6ec6('0x18')]['on'](_0x6ec6('0x7a'),()=>{const _0x571163=Array[_0x6ec6('0x55')](_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x18')][_0x6ec6('0xba')][_0x6ec6('0x53')]());_0x571163[_0x6ec6('0x3d')]((_0x228e98,_0x28a912)=>{const _0x531452=_0x228e98[_0x6ec6('0x78')]['oldRange'],_0x2af145=_0x28a912[_0x6ec6('0x78')][_0x6ec6('0x56')];return null===_0x531452&&null===_0x2af145?0x0:null===_0x531452&&null!==_0x2af145?-0x1:null!==_0x531452&&null===_0x2af145?0x1:_0x531452[_0x6ec6('0x119')]['isBefore'](_0x2af145[_0x6ec6('0x119')])?-0x1:0x1;});const _0x5e7609=new Set();for(const {name:_0x396e30,data:_0x5dfc34}of _0x571163){const {group:_0x272473,id:_0x30e207}=this[_0x6ec6('0x62')](_0x396e30);if(_0x6ec6('0xdb')===_0x272473&&(null===_0x5dfc34[_0x6ec6('0x56')]&&this[_0x6ec6('0x59')](_0x396e30),null===_0x5dfc34[_0x6ec6('0x92')])){const _0x3e22f7=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x30e207);_0x3e22f7['isInContent']?_0x5e7609[_0x6ec6('0xb5')](_0x3e22f7):this[_0x6ec6('0x25')](_0x3e22f7);}}for(const {name:_0xd4dbe5,data:_0x2bcfce}of _0x571163){const {group:_0xb50124,id:_0x13c076}=this[_0x6ec6('0x62')](_0xd4dbe5);if(_0x6ec6('0xdb')!==_0xb50124)continue;const _0x4e5146=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x13c076);null!=_0x2bcfce[_0x6ec6('0x92')]&&null!=_0x2bcfce[_0x6ec6('0x56')]&&(this[_0x6ec6('0xf7')](_0x4e5146),_0x5e7609[_0x6ec6('0xb5')](_0x4e5146[_0x6ec6('0xf')]));}for(const _0x2af524 of _0x5e7609)this[_0x6ec6('0x6b')](_0x6ec6('0x11b'),_0x2af524);_0x5e7609[_0x6ec6('0x9e')]();}),_0x3e0ffe[_0x6ec6('0x73')]['on']('applyOperation',(_0x1aacf9,_0x29b9e4)=>{const _0x2976f1=_0x29b9e4[0x0];if(!this['_suggestions'][_0x6ec6('0xf6')])return;if(!_0x2976f1[_0x6ec6('0x24')])return;if(_0x2976f1[_0x6ec6('0x19')][_0x6ec6('0x8a')]||!_0x2976f1[_0x6ec6('0x19')][_0x6ec6('0x7b')])return;let _0x2301c0,_0x6f8e5;switch(_0x2976f1[_0x6ec6('0x127')]){case _0x6ec6('0x1a'):_0x2301c0=_0x3e0ffe['model'][_0x6ec6('0x95')](_0x2976f1[_0x6ec6('0x30')]),_0x6f8e5=_0x2301c0[_0x6ec6('0xa7')](_0x2976f1[_0x6ec6('0x15')]);break;case'split':_0x2301c0=_0x3e0ffe['model'][_0x6ec6('0x95')](_0x2976f1[_0x6ec6('0x91')]),_0x6f8e5=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x95')](_0x2976f1[_0x6ec6('0x57')]);break;case'move':_0x2301c0=_0x3e0ffe[_0x6ec6('0x73')]['createPositionAt'](_0x2976f1[_0x6ec6('0x9a')]),_0x6f8e5=_0x2301c0[_0x6ec6('0xa7')](_0x2976f1[_0x6ec6('0x15')]);break;default:return;}const _0x10c285=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x4a')](_0x2301c0,_0x6f8e5);_0x3e0ffe['model'][_0x6ec6('0x5b')](()=>{for(const {suggestion:_0x58a0d1,meta:_0x24cc2d}of this[_0x6ec6('0x11c')](_0x10c285)){if(_0x58a0d1[_0x6ec6('0x4b')])continue;if(_0x6ec6('0xbd')==_0x58a0d1[_0x6ec6('0x127')])continue;const _0x170ce9=_0x58a0d1['data']&&_0x58a0d1[_0x6ec6('0x78')][_0x6ec6('0x1b')];(_0x6ec6('0x69')!=_0x58a0d1[_0x6ec6('0x127')]||'split'==_0x2976f1[_0x6ec6('0x127')]&&!_0x170ce9)&&(_0x24cc2d[_0x6ec6('0x93')]||_0x6ec6('0x113')==_0x58a0d1['type']&&_0x24cc2d[_0x6ec6('0x51')]||_0x58a0d1[_0x6ec6('0xd2')]()[_0x6ec6('0xeb')](_0x10c285)&&this[_0x6ec6('0x48')](_0x58a0d1,_0x2301c0,_0x6f8e5));}});},{'priority':_0x6ec6('0x128')}),_0x3e0ffe[_0x6ec6('0x73')]['on'](_0x6ec6('0x115'),(_0x747b73,_0x3db201)=>{const _0x483dbc=_0x3db201[0x0],_0x3a3ae5=_0x3db201[0x1];if(_0x3a3ae5&&_0x3a3ae5[_0x6ec6('0x83')])return;if(this[_0x6ec6('0x23')])return;if(!this[_0x6ec6('0x22')][_0x6ec6('0xe0')])return;if(_0x483dbc[_0x6ec6('0x7f')])return;const _0xd25352=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xb6')],{start:_0x1af091,end:_0x5441d2}=_0x483dbc[_0x6ec6('0xd2')](),_0x3e0a31=_0x1af091[_0x6ec6('0xf2')]&&_0xd25352[_0x6ec6('0x76')](_0x1af091[_0x6ec6('0xf2')])?null:_0xd25352[_0x6ec6('0xb4')](_0x1af091,'forward'),_0x24c3d3=_0x5441d2[_0x6ec6('0x29')]&&_0xd25352['isObject'](_0x5441d2[_0x6ec6('0x29')])?null:_0xd25352[_0x6ec6('0xb4')](_0x5441d2,_0x6ec6('0x58')),_0x3ea462=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x4a')](_0x3e0a31?_0x3e0a31['start']:_0x1af091,_0x24c3d3?_0x24c3d3[_0x6ec6('0xd1')]:_0x5441d2);_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x5b')](_0x55ff75=>{this[_0x6ec6('0x8b')](_0x3ea462);const _0x16893e=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xb6')]['getNearestSelectionRange'](_0x3ea462[_0x6ec6('0x119')]);_0x483dbc['is']('documentSelection')?_0x55ff75['setSelection'](_0x16893e):_0x483dbc['setTo'](_0x16893e);}),_0x747b73['stop']();},{'priority':_0x3ec018[_0x6ec6('0x84')]+0xa}),_0x3e0ffe[_0x6ec6('0x73')]['on'](_0x6ec6('0x66'),(_0x1e60ad,_0x376925)=>{const _0x469c9f=_0x376925[_0x376925['length']-0x1];_0x469c9f&&_0x469c9f[_0x6ec6('0x83')]||this['_isForcedDefaultExecutionBlock']||this[_0x6ec6('0x22')][_0x6ec6('0xe0')]&&(_0x3e0ffe['model'][_0x6ec6('0x5b')](()=>{let _0x383afc=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x66')](_0x376925[0x0],_0x376925[0x1],_0x376925[0x2],_0x376925[0x3],{'forceDefaultExecution':!0x0});if(!_0x383afc)return;_0x1e60ad[_0x6ec6('0xbb')]=_0x383afc[_0x6ec6('0x11a')]();const _0x320c49=_0x383afc[_0x6ec6('0xd1')]['nodeBefore'],_0x3f8016=_0x3e0ffe[_0x6ec6('0x73')]['schema'];_0x320c49&&_0x3f8016['isBlock'](_0x320c49)&&!_0x3f8016[_0x6ec6('0x76')](_0x320c49)&&(_0x383afc=_0x3e0ffe[_0x6ec6('0x73')]['createRange'](_0x383afc[_0x6ec6('0x119')],_0x3e0ffe[_0x6ec6('0x73')]['createPositionAt'](_0x320c49,'end'))),this[_0x6ec6('0x3e')](_0x383afc);}),_0x1e60ad[_0x6ec6('0x85')]());},{'priority':_0x6ec6('0xa')}),this[_0x6ec6('0x22')]=new _0x4f27bd(_0x3e0ffe,this[_0x6ec6('0xcb')]),this[_0x6ec6('0x5a')]['commands']['add']('trackChanges',this[_0x6ec6('0x22')]),this[_0x6ec6('0xe')](_0x6ec6('0xfc'));const _0x587696=new _0x5ae1f3(_0x3e0ffe,this[_0x6ec6('0xb3')]);_0x3e0ffe['commands'][_0x6ec6('0xb5')](_0x6ec6('0xb0'),_0x587696),this[_0x6ec6('0xe')](_0x6ec6('0xb0'));const _0x34c683=new _0x27c8de(_0x3e0ffe,this[_0x6ec6('0xb3')]);_0x3e0ffe[_0x6ec6('0x129')][_0x6ec6('0xb5')]('discardSuggestion',_0x34c683),this[_0x6ec6('0xe')]('discardSuggestion'),_0x3e0ffe[_0x6ec6('0x129')][_0x6ec6('0xb5')]('acceptAllSuggestions',new _0x10712a(_0x3e0ffe,_0x587696,this['_suggestions'])),this['enableCommand'](_0x6ec6('0x4c')),_0x3e0ffe[_0x6ec6('0x129')]['add'](_0x6ec6('0xe8'),new _0xb99a9e(_0x3e0ffe,_0x34c683,this[_0x6ec6('0xb3')])),this['enableCommand'](_0x6ec6('0xe8')),_0x3e0ffe[_0x6ec6('0x129')][_0x6ec6('0xb5')](_0x6ec6('0x33'),new _0x2718be(_0x3e0ffe,_0x587696,this['_suggestions'])),this[_0x6ec6('0xe')]('acceptSelectedSuggestions'),_0x3e0ffe[_0x6ec6('0x129')][_0x6ec6('0xb5')](_0x6ec6('0x122'),new _0x2654de(_0x3e0ffe,_0x34c683,this[_0x6ec6('0xb3')])),this[_0x6ec6('0xe')](_0x6ec6('0x122'));const _0x4e3ab4=_0x3e0ffe[_0x6ec6('0xf4')][_0x6ec6('0x11e')]('CommentsRepository');this[_0x6ec6('0x96')](_0x4e3ab4,_0x6ec6('0x2f'),(_0x14618f,{threadId:_0x31d129})=>{const _0x510e20=this['_suggestions'][_0x6ec6('0x11e')](_0x31d129);_0x510e20&&_0x510e20[_0x6ec6('0xb1')]&&0x1===_0x510e20[_0x6ec6('0xb1')][_0x6ec6('0x20')]&&this['_updateSuggestionData'](_0x31d129,{'hasComments':!0x0});},{'priority':_0x6ec6('0x10c')}),this[_0x6ec6('0x96')](_0x4e3ab4,_0x6ec6('0xd6'),(_0x220f78,{threadId:_0x35974d})=>{const _0x1f2d2b=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x35974d);_0x1f2d2b&&_0x1f2d2b[_0x6ec6('0xb1')]&&!_0x1f2d2b[_0x6ec6('0xb1')]['length']&&this[_0x6ec6('0x63')](_0x35974d,{'hasComments':!0x1});},{'priority':_0x6ec6('0x10c')});}set[_0x6ec6('0x3a')](_0xa6b33){if(this['_adapter'])throw new _0x251ff9(_0x6ec6('0xb'),this);this[_0x6ec6('0x5')]=_0xa6b33;}get[_0x6ec6('0x3a')](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2a587d=!0x1,toJSON:_0x53a153=!0x1}={}){const _0x3ba510=[];for(const _0x3da265 of this[_0x6ec6('0xb3')][_0x6ec6('0xca')]())_0x2a587d&&!_0x3da265[_0x6ec6('0x88')]||_0x3ba510['push'](_0x3da265);return _0x53a153?_0x3ba510[_0x6ec6('0x98')](_0x179af3=>_0x179af3[_0x6ec6('0x61')]()):_0x3ba510;}[_0x6ec6('0xac')](_0x1a6cc6){const _0x1414ef=this[_0x6ec6('0xb3')]['get'](_0x1a6cc6);if(!_0x1414ef)throw new _0x251ff9(_0x6ec6('0xda'),this);return _0x1414ef;}[_0x6ec6('0x112')](_0x5a61ba){return this['_suggestions']['has'](_0x5a61ba);}[_0x6ec6('0x110')](_0x223ac0){const {id:_0x3297ea,authorId:_0x45c99d}=_0x223ac0,[_0x440a27,_0x51d204]=_0x223ac0[_0x6ec6('0x127')][_0x6ec6('0x46')](':'),_0x1ad0ea=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x3297ea)||this[_0x6ec6('0x94')](_0x440a27,_0x51d204,_0x3297ea,_0x45c99d);switch(this[_0x6ec6('0x2c')](_0x1ad0ea),this['_checkSuggestionCorrectness'](_0x1ad0ea,_0x440a27,_0x51d204||null,_0x45c99d),_0x1ad0ea[_0x6ec6('0xa1')]=_0x223ac0[_0x6ec6('0xa1')],_0x223ac0['data']&&(_0x1ad0ea['data']=_0x223ac0[_0x6ec6('0x78')]),_0x223ac0['attributes']&&(_0x1ad0ea['attributes']=_0x223ac0[_0x6ec6('0x10a')]),this['_adapter']&&this[_0x6ec6('0x5')]['addSuggestion']||(_0x1ad0ea[_0x6ec6('0x39')]=!0x0),this[_0x6ec6('0x8d')][_0x6ec6('0x11e')](_0x1ad0ea)){case _0x6ec6('0x7c'):this['_suggestionState'][_0x6ec6('0x8e')](_0x1ad0ea,_0x6ec6('0x6e'));break;case _0x6ec6('0xc1'):_0x1ad0ea['isInContent']?(this[_0x6ec6('0x8d')]['set'](_0x1ad0ea,_0x6ec6('0x28')),this[_0x6ec6('0x6b')](_0x6ec6('0x12'),_0x1ad0ea)):this[_0x6ec6('0x8d')][_0x6ec6('0x8e')](_0x1ad0ea,'removed');}return _0x1ad0ea;}[_0x6ec6('0xb0')](_0x1b3b36){this[_0x6ec6('0x83')](()=>{this[_0x6ec6('0x5a')]['model']['change'](()=>{for(const _0x498368 of _0x1b3b36['getAllAdjacentSuggestions']())_0x498368[_0x6ec6('0xfa')]();});});}['discardSuggestion'](_0x5202e2){this['forceDefaultExecution'](()=>{this[_0x6ec6('0x5a')]['model'][_0x6ec6('0x5b')](()=>{for(const _0x14305f of _0x5202e2[_0x6ec6('0x68')]())_0x14305f['discard']();});});}[_0x6ec6('0xe')](_0x1b5ded,_0x15d084){const _0x2d5107=this[_0x6ec6('0x5a')][_0x6ec6('0x129')][_0x6ec6('0x11e')](_0x1b5ded);if(!_0x2d5107)throw new _0x251ff9(_0x6ec6('0x10'),this,{'commandName':_0x1b5ded});this[_0x6ec6('0xcb')]['add'](_0x2d5107),_0x15d084&&_0x2d5107['on'](_0x6ec6('0x70'),(_0x5c963c,_0x2b8166)=>{this['trackChangesCommand'][_0x6ec6('0xe0')]&&(this[_0x6ec6('0x23')]||_0x2b8166[_0x6ec6('0x20')]>0x0&&_0x2b8166[_0x2b8166[_0x6ec6('0x20')]-0x1]&&_0x2b8166[_0x2b8166['length']-0x1][_0x6ec6('0x83')]||(_0x15d084((..._0xcf7b3c)=>_0x2d5107[_0x6ec6('0x70')](..._0xcf7b3c,{'forceDefaultExecution':!0x0}),..._0x2b8166),_0x5c963c[_0x6ec6('0x85')]()));},{'priority':_0x6ec6('0xa')});}['forceDefaultExecution'](_0x5ed645){let _0x5f07a1,_0x1cc2e5;const _0x38026c=this[_0x6ec6('0x23')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5f07a1=_0x5ed645();}catch(_0x57bbaf){_0x1cc2e5=_0x57bbaf;}return _0x38026c||(this[_0x6ec6('0x23')]=!0x1),_0x1cc2e5&&_0x251ff9[_0x6ec6('0xc')](_0x1cc2e5,this),_0x5f07a1;}[_0x6ec6('0x3e')](_0x1a87f3,_0x3735e7=null,_0x41a193={}){if(_0x1a87f3[_0x6ec6('0x7f')])return null;const _0x514f61=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))['me'];for(const {suggestion:_0x40c7f9,meta:_0x17a769}of this[_0x6ec6('0x11c')](_0x1a87f3,_0x6ec6('0x113')))if(_0x17a769[_0x6ec6('0x51')]){if(!_0x17a769[_0x6ec6('0x6f')])return _0x40c7f9;if(_0x3735e7==_0x40c7f9['subType']){const _0xb865e0=_0x40c7f9[_0x6ec6('0xd2')]();return _0xb865e0[_0x6ec6('0x119')][_0x6ec6('0x21')](_0x1a87f3[_0x6ec6('0xd1')])?this[_0x6ec6('0x97')](_0x40c7f9,this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x1a87f3[_0x6ec6('0x119')],_0xb865e0[_0x6ec6('0xd1')])):this[_0x6ec6('0x97')](_0x40c7f9,this[_0x6ec6('0xf3')]['createRange'](_0xb865e0[_0x6ec6('0x119')],_0x1a87f3[_0x6ec6('0xd1')])),_0x40c7f9;}}const _0x555c5e=_0x54747c(),_0xf1dbf=_0x514f61['id'],_0x35e5ec=_0x3735e7?_0x6ec6('0x116')+_0x3735e7:_0x6ec6('0x113'),_0x1d4b68=this[_0x6ec6('0x4')]({'id':_0x555c5e,'type':_0x35e5ec,'createdAt':new Date(),'authorId':_0xf1dbf,'attributes':_0x41a193});return this[_0x6ec6('0x65')](_0x35e5ec,_0x555c5e,_0xf1dbf,_0x1a87f3),_0x1d4b68;}[_0x6ec6('0xde')](_0x1f5792,_0x13ea3d=_0x6ec6('0xcf'),_0xf8a76={}){const _0x1d77af=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')]['get'](_0x6ec6('0x2'))['me'],_0x40b228=this['_suggestionFactory'][_0x6ec6('0xaf')](_0x6ec6('0x113'),_0x13ea3d,_0x6ec6('0xa0'));for(const _0x20da14 of this[_0x6ec6('0x124')]())if(_0x20da14[_0x6ec6('0x1e')]['id']==_0x1d77af['id']&&_0x6ec6('0x113')==_0x20da14['type']&&_0x20da14[_0x6ec6('0x3f')]==_0x13ea3d&&(_0x40b228(_0x20da14[_0x6ec6('0x75')](),_0x1f5792)||_0x40b228(_0x1f5792,_0x20da14[_0x6ec6('0x75')]()))){for(const _0x4fcfa4 of _0x1f5792)_0x20da14[_0x6ec6('0x4f')](_0x4fcfa4);return _0x20da14;}for(const _0x10b42a of _0x1f5792)for(const {suggestion:_0x2aa843,meta:_0x156d07}of this['_findSuggestions'](_0x10b42a,_0x6ec6('0x113'))){if(!_0x156d07[_0x6ec6('0x51')])continue;let _0x31b815=!0x0;for(const _0x2059b9 of _0x2aa843[_0x6ec6('0x75')]())for(const _0x14cca1 of _0x1f5792)if(!_0x2059b9[_0x6ec6('0xeb')](_0x14cca1)){_0x31b815=!0x1;break;}if(_0x31b815)return _0x2aa843;}const _0x1a6bf7=_0x54747c(),_0x838533=_0x1d77af['id'],_0x546018=_0x6ec6('0x116')+_0x13ea3d,_0x2e69ac=this[_0x6ec6('0x4')]({'id':_0x1a6bf7,'type':_0x546018,'createdAt':new Date(),'authorId':_0x838533,'attributes':_0xf8a76});for(const _0x3e5c7a of _0x1f5792)this[_0x6ec6('0x65')](_0x546018,_0x1a6bf7,_0x838533,_0x3e5c7a,_0x32d0a2[_0x6ec6('0xae')]());return _0x2e69ac;}[_0x6ec6('0x80')](_0x53e4c4,_0x5d0fa9,_0x2f1914=null,_0x2b7255={}){if(_0x2f1914=_0x2f1914||kt(_0x5d0fa9),_0x53e4c4[_0x6ec6('0x7f')])return;const _0x5b11fd=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))['me'],_0x2a2c56=[];for(const {suggestion:_0xd3bf3,meta:_0x360a48}of this[_0x6ec6('0x11c')](_0x53e4c4,_0x6ec6('0x113')))_0x360a48[_0x6ec6('0x51')]&&!_0x360a48['isInsideObject']&&_0x2a2c56['push'](..._0xd3bf3[_0x6ec6('0x75')]());const _0x1aadb4=function(_0x5373db,_0x506cd1){const _0x73ab61=[];for(const _0x278d58 of _0x506cd1){const _0x578b7a=_0x5373db[_0x6ec6('0xd7')](_0x278d58);_0x578b7a&&_0x73ab61[_0x6ec6('0xb7')](_0x578b7a);}return _0x73ab61;}(_0x53e4c4,_0x2a2c56),_0x5e8f71=function(_0x4c7aea,_0x527c23){const _0x550211=[_0x4c7aea];for(const _0x3e311a of _0x527c23){let _0x3db139=0x0;for(;_0x3db139<_0x550211[_0x6ec6('0x20')];){const _0x5736b7=_0x550211[_0x3db139]['getDifference'](_0x3e311a);_0x550211[_0x6ec6('0x10e')](_0x3db139,0x1,..._0x5736b7),_0x3db139+=_0x5736b7[_0x6ec6('0x20')];}}return _0x550211;}(_0x53e4c4,_0x2a2c56);_0x1aadb4[_0x6ec6('0x20')]&&this[_0x6ec6('0xf3')][_0x6ec6('0x5b')](()=>{for(const _0x30f6bb of _0x1aadb4){const _0x489d10=this['_suggestionFactory'][_0x6ec6('0xaf')](_0x6ec6('0xbd'),_0x2f1914,_0x6ec6('0xfa'));this['forceDefaultExecution'](()=>_0x489d10([_0x30f6bb],_0x5d0fa9,_0x2b7255));}});for(const _0x1d9523 of _0x5e8f71){let _0x3aaa85=null,_0x57fbe6=_0x1d9523[_0x6ec6('0x119')],_0x275592=_0x1d9523['end'];for(const {suggestion:_0x324689,meta:_0x5559f7}of this[_0x6ec6('0x11c')](_0x1d9523,_0x6ec6('0xbd'))){if(!_0x5559f7[_0x6ec6('0x51')])continue;if(_0x324689[_0x6ec6('0x3f')]!=_0x2f1914)continue;const _0x33547f=_0x324689[_0x6ec6('0xd2')]();if(_0x33547f[_0x6ec6('0xeb')](_0x1d9523,!0x0))return;_0x57fbe6=_0x57fbe6[_0x6ec6('0xa5')](_0x33547f[_0x6ec6('0x119')])?_0x57fbe6:_0x33547f[_0x6ec6('0x119')],_0x275592=_0x275592[_0x6ec6('0x10d')](_0x33547f[_0x6ec6('0xd1')])?_0x275592:_0x33547f[_0x6ec6('0xd1')],_0x3aaa85?_0x33547f['start']['isBefore'](_0x3aaa85[_0x6ec6('0xd2')]()['start'])?(_0x3aaa85[_0x6ec6('0x1')](),_0x3aaa85=_0x324689):_0x324689[_0x6ec6('0x1')]():_0x3aaa85=_0x324689;}const _0x2d3b22=this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x57fbe6,_0x275592);if(_0x3aaa85)this[_0x6ec6('0x97')](_0x3aaa85,_0x2d3b22);else{const _0x3c3246=_0x54747c(),_0x1c053f=_0x5b11fd['id'];this['_setSuggestionData']({'id':_0x3c3246,'type':'formatInline:'+_0x2f1914,'data':_0x5d0fa9,'createdAt':new Date(),'authorId':_0x1c053f,'attributes':_0x2b7255}),this['_addSuggestionMarker'](_0x6ec6('0xcc')+_0x2f1914,_0x3c3246,_0x1c053f,_0x2d3b22);}}}[_0x6ec6('0x9b')](_0x46de37,_0x44d6eb,_0x352b7a=[],_0x3a4e80=null,_0xc20d36={}){_0x44d6eb[_0x6ec6('0x1c')]||(_0x44d6eb['formatGroupId']=_0x44d6eb[_0x6ec6('0x3')]),_0x44d6eb[_0x6ec6('0x1b')]=_0x46de37['is'](_0x6ec6('0x8')),_0x3a4e80=_0x3a4e80||kt(_0x44d6eb);const _0x342051=_0x352b7a[_0x6ec6('0x98')](_0x400109=>yt(_0x400109,this[_0x6ec6('0xf3')])),_0x4c0d76=_0x46de37['is'](_0x6ec6('0x8'))?_0x46de37:yt(_0x46de37,this[_0x6ec6('0xf3')]);_0x342051['push'](_0x4c0d76);let _0x454ecd=!0x0;for(const _0x8a323d of _0x342051)if(!this[_0x6ec6('0xa2')](_0x8a323d)){_0x454ecd=!0x1;break;}if(_0x454ecd){const _0x2306d6=this[_0x6ec6('0x37')][_0x6ec6('0xaf')](_0x6ec6('0x69'),_0x3a4e80,_0x6ec6('0xfa'));return void this[_0x6ec6('0x83')](()=>_0x2306d6([_0x4c0d76],_0x44d6eb,_0xc20d36));}let _0x5a3e3d=null,_0x21f1f9=_0x4c0d76[_0x6ec6('0x119')],_0xb03d9a=_0x4c0d76[_0x6ec6('0xd1')];for(const {suggestion:_0x204772,meta:_0x55da59}of this[_0x6ec6('0x11c')](_0x4c0d76,_0x6ec6('0x69'))){if(!_0x55da59[_0x6ec6('0x51')]||_0x55da59[_0x6ec6('0x6f')]||_0x55da59[_0x6ec6('0x93')]||_0x55da59[_0x6ec6('0xc0')])continue;if(_0x204772[_0x6ec6('0x78')]['formatGroupId']!=_0x44d6eb['formatGroupId'])continue;const _0xbbcb89=_0x204772[_0x6ec6('0xd2')]();if(_0x204772[_0x6ec6('0x3f')]==_0x3a4e80){if(_0xbbcb89[_0x6ec6('0xeb')](_0x4c0d76,!0x0))return;_0x21f1f9=_0x21f1f9['isBefore'](_0xbbcb89['start'])?_0x21f1f9:_0xbbcb89[_0x6ec6('0x119')],_0xb03d9a=_0xb03d9a[_0x6ec6('0x10d')](_0xbbcb89[_0x6ec6('0xd1')])?_0xb03d9a:_0xbbcb89[_0x6ec6('0xd1')],_0x5a3e3d?_0xbbcb89[_0x6ec6('0x119')][_0x6ec6('0xa5')](_0x5a3e3d[_0x6ec6('0xd2')]()[_0x6ec6('0x119')])?(_0x5a3e3d['removeMarkers'](),_0x5a3e3d=_0x204772):_0x204772['removeMarkers']():_0x5a3e3d=_0x204772;}else{const _0x24058d=_0x4c0d76[_0x6ec6('0xd7')](_0xbbcb89);this['_cutOutSuggestionMarker'](_0x204772,_0x24058d);}}const _0x86859a=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))['me'],_0x2c7fdb=_0x54747c(),_0x5dfcd4=_0x86859a['id'];_0x5a3e3d?this['_setSuggestionRange'](_0x5a3e3d,this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x21f1f9,_0xb03d9a)):(this[_0x6ec6('0x4')]({'id':_0x2c7fdb,'type':_0x6ec6('0xd0')+_0x3a4e80,'data':_0x44d6eb,'createdAt':new Date(),'authorId':_0x5dfcd4,'attributes':_0xc20d36}),this['_addSuggestionMarker'](_0x6ec6('0xd0')+_0x3a4e80,_0x2c7fdb,_0x5dfcd4,this['_model'][_0x6ec6('0x4a')](_0x21f1f9,_0xb03d9a)));}['markMultiRangeBlockFormat'](_0x8505ca,_0x4e03af,_0x2ed29a=[],_0x567a43=null,_0x2561f8={}){_0x4e03af[_0x6ec6('0x1c')]||(_0x4e03af['formatGroupId']=_0x4e03af[_0x6ec6('0x3')]),_0x4e03af[_0x6ec6('0x1b')]=!0x1,_0x567a43=_0x567a43||kt(_0x4e03af);const _0x4cc6e8=_0x2ed29a[_0x6ec6('0x98')](_0x2be10d=>yt(_0x2be10d,this[_0x6ec6('0xf3')])),_0xcdd258=_0x8505ca['map'](_0x31f593=>yt(_0x31f593,this['_model']));_0x4cc6e8[_0x6ec6('0xb7')](..._0xcdd258);let _0x1d194e=!0x0;for(const _0x154a11 of _0x4cc6e8)if(!this['_rangeIsInLocalUserInsertion'](_0x154a11)){_0x1d194e=!0x1;break;}if(_0x1d194e){const _0x242696=this[_0x6ec6('0x37')][_0x6ec6('0xaf')](_0x6ec6('0x69'),_0x567a43,_0x6ec6('0xfa'));return void this[_0x6ec6('0x83')](()=>_0x242696(_0xcdd258,_0x4e03af,_0x2561f8));}const _0x534847=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')]('Users')['me'];for(const _0x111383 of this[_0x6ec6('0x124')]()){if(_0x111383[_0x6ec6('0x1e')]['id']!=_0x534847['id'])continue;if(_0x6ec6('0x69')!=_0x111383[_0x6ec6('0x127')]||_0x111383[_0x6ec6('0x78')]['formatGroupId']!=_0x4e03af[_0x6ec6('0x1c')])continue;const _0xc7ca20=_0x111383['subType']==_0x567a43;for(let _0x8057a8=0x0;_0x8057a8<_0xcdd258[_0x6ec6('0x20')];_0x8057a8++){const _0x5f3f0c=_0xcdd258[_0x8057a8];for(const _0x3aafd6 of _0x111383['getMarkers']()){const _0x1bf881=_0x3aafd6[_0x6ec6('0x126')]();if(_0x5f3f0c[_0x6ec6('0x21')](_0x1bf881)){_0xc7ca20?(_0xcdd258[_0x6ec6('0x10e')](_0x8057a8,0x1),_0x8057a8--):_0x111383[_0x6ec6('0xfe')](_0x3aafd6[_0x6ec6('0x123')]);break;}}}}if(0x0==_0xcdd258[_0x6ec6('0x20')])return;const _0x55850f=this[_0x6ec6('0x37')][_0x6ec6('0xaf')]('formatBlock',_0x567a43,_0x6ec6('0xa0'));for(const _0x4cca0 of this['getSuggestions']())if(_0x4cca0[_0x6ec6('0x1e')]['id']==_0x534847['id']&&_0x6ec6('0x69')==_0x4cca0[_0x6ec6('0x127')]&&_0x4cca0['data'][_0x6ec6('0x1c')]==_0x4e03af[_0x6ec6('0x1c')]&&_0x4cca0[_0x6ec6('0x3f')]==_0x567a43&&(_0x55850f(_0x4cca0['getRanges'](),_0xcdd258)||_0x55850f(_0xcdd258,_0x4cca0[_0x6ec6('0x75')]()))){for(const _0x4f4df1 of _0xcdd258)_0x4cca0[_0x6ec6('0x4f')](_0x4f4df1);return _0x4cca0;}const _0x4ca9b8=_0x54747c(),_0x39d778=_0x534847['id'],_0x3df73c=_0x6ec6('0xd0')+_0x567a43,_0x177005=this[_0x6ec6('0x4')]({'id':_0x4ca9b8,'type':_0x3df73c,'data':_0x4e03af,'createdAt':new Date(),'authorId':_0x39d778,'attributes':_0x2561f8});for(const _0x4fb72e of _0xcdd258)this['_addSuggestionMarker'](_0x3df73c,_0x4ca9b8,_0x39d778,_0x4fb72e,_0x32d0a2[_0x6ec6('0xae')]());return _0x177005;}[_0x6ec6('0x8b')](_0x11eb9e,_0x3d2983=null,_0x1667f9={}){if(_0x11eb9e[_0x6ec6('0x7f')])return null;const _0x4ee388=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))['me'],_0x12bd9e=new _0x341c07(_0x11eb9e[_0x6ec6('0x119')],_0x11eb9e[_0x6ec6('0xd1')]);for(const {suggestion:_0x2b38cc,meta:_0x3d1613}of this[_0x6ec6('0x11c')](_0x12bd9e,_0x6ec6('0x113')))if(_0x3d1613[_0x6ec6('0x51')]&&!_0x3d1613[_0x6ec6('0x6f')]){if(_0x2b38cc[_0x6ec6('0x4b')]){const _0x1d9fa5=_0x2b38cc[_0x6ec6('0x75')]()[_0x6ec6('0x79')](_0x4b6d41=>_0x6ec6('0xb2')!=_0x4b6d41[_0x6ec6('0x2e')]['rootName']);_0x1d9fa5[_0x6ec6('0x9c')](_0x42b03b=>_0x12bd9e[_0x6ec6('0xeb')](_0x42b03b,!0x0))&&_0x2b38cc[_0x6ec6('0xe5')]();if(_0x1d9fa5[_0x6ec6('0xad')](_0x4b08f4=>_0x4b08f4[_0x6ec6('0xeb')](_0x12bd9e,!0x0))){const _0xd69b48=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d2983,_0x6ec6('0xfa'));return this[_0x6ec6('0x83')](()=>_0xd69b48([_0x12bd9e],null,_0x1667f9)),null;}}else{const _0xd8e29c=_0x12bd9e[_0x6ec6('0xd7')](_0x2b38cc[_0x6ec6('0xd2')]());_0x2b38cc['_onDiscard']([_0xd8e29c],null,_0x1667f9);}}if(_0x12bd9e[_0x6ec6('0x87')](),_0x12bd9e[_0x6ec6('0x7f')]||_0x6ec6('0xb2')==_0x12bd9e[_0x6ec6('0x2e')]['rootName'])return null;let _0x4f7911=null,_0x39ff04=_0x12bd9e[_0x6ec6('0x119')],_0x54f77c=_0x12bd9e[_0x6ec6('0xd1')];for(const {suggestion:_0x308e82,meta:_0x928758}of this[_0x6ec6('0x11c')](_0x12bd9e,_0x6ec6('0xfd')))if(_0x928758[_0x6ec6('0x51')]){if(_0x308e82[_0x6ec6('0x4b')]){let _0x395606=!0x0;for(const _0x4049a1 of _0x308e82[_0x6ec6('0x75')]()){if(_0x4049a1['containsRange'](_0x12bd9e,!0x0))return _0x308e82;_0x12bd9e[_0x6ec6('0xeb')](_0x4049a1)||(_0x395606=!0x1);}_0x395606&&_0x308e82[_0x6ec6('0xe5')]();}else{const _0x5ceb38=_0x308e82['getFirstRange']();if(_0x5ceb38[_0x6ec6('0xeb')](_0x12bd9e,!0x0))return _0x308e82;_0x39ff04=_0x39ff04[_0x6ec6('0xa5')](_0x5ceb38['start'])?_0x39ff04:_0x5ceb38['start'],_0x54f77c=_0x54f77c[_0x6ec6('0x10d')](_0x5ceb38['end'])?_0x54f77c:_0x5ceb38[_0x6ec6('0xd1')],_0x4f7911?_0x5ceb38[_0x6ec6('0x119')][_0x6ec6('0xa5')](_0x4f7911[_0x6ec6('0xd2')]()[_0x6ec6('0x119')])?(_0x4f7911[_0x6ec6('0x1')](),_0x4f7911=_0x308e82):_0x308e82[_0x6ec6('0x1')]():_0x4f7911=_0x308e82;}}if(_0x4f7911)return this[_0x6ec6('0x97')](_0x4f7911,this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x39ff04,_0x54f77c)),_0x4f7911;{const _0x59d83d=_0x54747c(),_0x4932a3=this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x39ff04,_0x54f77c),_0x410d88=_0x4ee388['id'],_0x2192f3=_0x3d2983?_0x6ec6('0x38')+_0x3d2983:_0x6ec6('0xfd'),_0x6c129d=this['_setSuggestionData']({'id':_0x59d83d,'type':_0x2192f3,'createdAt':new Date(),'authorId':_0x410d88,'attributes':_0x1667f9});return this[_0x6ec6('0x65')](_0x2192f3,_0x59d83d,_0x410d88,_0x4932a3),_0x6c129d;}}[_0x6ec6('0x2b')](_0xca2825,_0x3f1839=_0x6ec6('0xcf'),_0x210c1f={}){const _0x4214d8=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')]['get']('Users')['me'],_0x384efc=_0xca2825[_0x6ec6('0x98')](_0x450d19=>new _0x341c07(_0x450d19[_0x6ec6('0x119')],_0x450d19[_0x6ec6('0xd1')])),_0x58014f=new Set();for(const _0x2ee19c of _0x384efc)for(const {suggestion:_0x326799,meta:_0x2404dc}of this[_0x6ec6('0x11c')](_0x2ee19c,_0x6ec6('0x113')))_0x2404dc[_0x6ec6('0x51')]&&!_0x2404dc['isNextTo']&&_0x58014f[_0x6ec6('0xb5')](_0x326799);for(const _0x5a910f of _0x58014f)if(_0x5a910f[_0x6ec6('0x4b')]){const _0x47ab08=_0x5a910f[_0x6ec6('0x75')]();(!_0x5a910f[_0x6ec6('0x10a')]||!_0x5a910f[_0x6ec6('0x10a')][_0x6ec6('0x82')])&&(_0x47ab08['every'](_0x58a656=>_0x384efc[_0x6ec6('0xad')](_0x2e0fe8=>_0x2e0fe8[_0x6ec6('0xeb')](_0x58a656,!0x0)))&&_0x5a910f['discard']());if(_0x384efc['every'](_0xaaceb8=>_0x47ab08['some'](_0xa2ae63=>_0xa2ae63[_0x6ec6('0xeb')](_0xaaceb8,!0x0)))){const _0x238e05=this[_0x6ec6('0x37')]['getSuggestionCallback'](_0x6ec6('0xfd'),_0x3f1839,_0x6ec6('0xfa'));return this[_0x6ec6('0x83')](()=>_0x238e05(_0xca2825,null,_0x210c1f)),null;}}else{const _0x2c8096=_0x5a910f[_0x6ec6('0xd2')]();_0x384efc['some'](_0xb5851f=>_0xb5851f[_0x6ec6('0xeb')](_0x2c8096,!0x0))&&_0x5a910f[_0x6ec6('0xe5')]();if(_0x384efc['every'](_0x2e3d72=>_0x2c8096[_0x6ec6('0xeb')](_0x2e3d72,!0x0))){const _0x56be23=this[_0x6ec6('0x37')]['getSuggestionCallback']('deletion',_0x3f1839,_0x6ec6('0xfa'));return this[_0x6ec6('0x83')](()=>_0x56be23(_0x384efc,null,_0x210c1f)),null;}}const _0x2b9dfe=this[_0x6ec6('0x37')][_0x6ec6('0xaf')](_0x6ec6('0xfd'),_0x3f1839,_0x6ec6('0xa0'));let _0x71e5a4=null;for(const _0x359c80 of this[_0x6ec6('0x124')]())if(_0x359c80['author']['id']==_0x4214d8['id']&&_0x359c80['isInContent']&&_0x6ec6('0xfd')==_0x359c80[_0x6ec6('0x127')]&&_0x359c80['subType']==_0x3f1839&&(_0x2b9dfe(_0x359c80[_0x6ec6('0x75')](),_0x384efc)||_0x2b9dfe(_0x384efc,_0x359c80[_0x6ec6('0x75')]()))){if(_0x71e5a4){if(_0x359c80['commentThread']&&_0x359c80[_0x6ec6('0xb1')][_0x6ec6('0x20')])continue;for(const _0x50afc2 of _0x359c80[_0x6ec6('0x75')]())_0x71e5a4[_0x6ec6('0x100')](_0x50afc2)||_0x71e5a4[_0x6ec6('0x4f')](_0x50afc2);_0x359c80['removeMarkers']();}else{_0x71e5a4=_0x359c80;for(const _0x5d873e of _0x384efc)_0x359c80[_0x6ec6('0x100')](_0x5d873e)||_0x359c80[_0x6ec6('0x4f')](_0x5d873e);}}if(_0x71e5a4)return _0x71e5a4;_0x58014f[_0x6ec6('0x9e')]();for(const _0x101d21 of _0x384efc)for(const {suggestion:_0x78337a,meta:_0x2c3cc4}of this['_findSuggestions'](_0x101d21,_0x6ec6('0xfd')))_0x2c3cc4['isOwn']&&_0x58014f[_0x6ec6('0xb5')](_0x78337a);for(const _0x2c0a7e of _0x58014f){const _0x568b47=_0x2c0a7e[_0x6ec6('0x75')]();if(!_0x210c1f||!_0x210c1f[_0x6ec6('0x82')]){if(_0x384efc[_0x6ec6('0x9c')](_0x1c35f3=>_0x568b47[_0x6ec6('0xad')](_0x13c8ab=>_0x13c8ab[_0x6ec6('0xeb')](_0x1c35f3,!0x0))))return _0x2c0a7e;}(!_0x2c0a7e[_0x6ec6('0x10a')]||!_0x2c0a7e[_0x6ec6('0x10a')][_0x6ec6('0x82')])&&(_0x568b47[_0x6ec6('0x9c')](_0x236398=>_0x384efc[_0x6ec6('0xad')](_0x3ca3d3=>_0x3ca3d3[_0x6ec6('0xeb')](_0x236398,!0x0)))&&_0x2c0a7e[_0x6ec6('0xe5')]());}const _0x55a5d0=_0x54747c(),_0x5bf536=_0x4214d8['id'],_0x398d94=_0x6ec6('0x38')+_0x3f1839,_0x4f8ae9=this[_0x6ec6('0x4')]({'id':_0x55a5d0,'type':_0x398d94,'createdAt':new Date(),'authorId':_0x5bf536,'attributes':_0x210c1f});for(const _0x42bf42 of _0x384efc)_0x42bf42[_0x6ec6('0x87')](),_0x42bf42[_0x6ec6('0x7f')]||_0x6ec6('0xb2')==_0x42bf42[_0x6ec6('0x2e')][_0x6ec6('0xc4')]||this[_0x6ec6('0x65')](_0x398d94,_0x55a5d0,_0x5bf536,_0x42bf42,_0x32d0a2[_0x6ec6('0xae')]());return _0x4f8ae9;}[_0x6ec6('0x97')](_0x510dea,_0x5c7c16){const _0x57ec2e=_0x510dea['getFirstMarker']();this[_0x6ec6('0xf3')][_0x6ec6('0x5b')](_0x4153eb=>{_0x4153eb[_0x6ec6('0x99')](_0x57ec2e,{'range':_0x5c7c16});});}[_0x6ec6('0x2c')](_0x16eb06){const _0xdae454=_0x16eb06['id'],_0x5d090d=this[_0x6ec6('0x5a')][_0x6ec6('0xd4')][_0x6ec6('0x11e')]('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xdae454)||this[_0x6ec6('0x47')]['addCommentThread']({'channelId':_0x5d090d,'threadId':_0xdae454});const _0x29ee9b=this['_commentsRepository'][_0x6ec6('0xfb')](_0xdae454);_0x29ee9b[_0x6ec6('0x11')]('isRemovable'),_0x29ee9b['isRemovable']=!0x1,_0x16eb06[_0x6ec6('0xb1')]=_0x29ee9b;}['_checkSuggestionCorrectness'](_0x44e546,_0x2b8e8b,_0x184931,_0x22b2a4){if(_0x44e546[_0x6ec6('0x127')]!=_0x2b8e8b||_0x44e546['subType']!=_0x184931||_0x44e546[_0x6ec6('0x1e')]['id']!=_0x22b2a4)throw this[_0x6ec6('0x5a')][_0x6ec6('0x3c')](_0x6ec6('0xb9')),new _0x251ff9('track-changes-suggestion-data-mismatch',this);}[_0x6ec6('0x106')](_0x1f858a,_0x2a6d1d){const _0xbef23a=_0x1f858a['getFirstRange']();if(_0x2a6d1d['isEqual'](_0xbef23a))_0x1f858a[_0x6ec6('0x1')]();else{if(_0xbef23a[_0x6ec6('0xeb')](_0x2a6d1d)){const _0x39e45a=this[_0x6ec6('0xf3')][_0x6ec6('0x95')](_0x2a6d1d[_0x6ec6('0x119')][_0x6ec6('0x29')],_0x6ec6('0xd1'));this[_0x6ec6('0x97')](_0x1f858a,this[_0x6ec6('0xf3')]['createRange'](_0xbef23a[_0x6ec6('0x119')],_0x39e45a));const _0x2d7448=_0x54747c(),_0x19d1f2=_0x1f858a[_0x6ec6('0x1e')]['id'],_0x2e0f2f=_0x1f858a[_0x6ec6('0x127')]+':'+_0x1f858a[_0x6ec6('0x3f')];this['_setSuggestionData']({'id':_0x2d7448,'type':_0x2e0f2f,'createdAt':new Date(),'authorId':_0x19d1f2,'data':_0x1f858a[_0x6ec6('0x78')],'attributes':_0x1f858a[_0x6ec6('0x10a')]});const _0x4042b6=this[_0x6ec6('0xf3')]['createPositionAt'](_0x2a6d1d['end']['parent'],_0x6ec6('0x104')),_0x18356c=this[_0x6ec6('0xf3')]['createRange'](_0x4042b6,_0xbef23a[_0x6ec6('0xd1')]);this[_0x6ec6('0x65')](_0x2e0f2f,_0x2d7448,_0x19d1f2,_0x18356c);}else{if(_0xbef23a[_0x6ec6('0xc7')](_0x2a6d1d[_0x6ec6('0x119')])){const _0x5e1838=this[_0x6ec6('0xf3')]['createPositionAt'](_0x2a6d1d[_0x6ec6('0x119')][_0x6ec6('0x29')],_0x6ec6('0xd1'));this[_0x6ec6('0x97')](_0x1f858a,this['_model'][_0x6ec6('0x4a')](_0xbef23a[_0x6ec6('0x119')],_0x5e1838));}else{const _0x134abb=this['_model'][_0x6ec6('0x95')](_0x2a6d1d[_0x6ec6('0xd1')][_0x6ec6('0xd8')],_0x6ec6('0x104'));this[_0x6ec6('0x97')](_0x1f858a,this['_model']['createRange'](_0x134abb,_0xbef23a[_0x6ec6('0xd1')]));}}}}[_0x6ec6('0xa2')](_0x22be7d){for(const {suggestion:_0xc534bc,meta:_0x1ad7b1}of this[_0x6ec6('0x11c')](_0x22be7d,_0x6ec6('0x113'))){if(!_0x1ad7b1[_0x6ec6('0x51')])continue;const _0x5c752e=_0xc534bc[_0x6ec6('0x75')]();for(const _0x12ae48 of _0x5c752e)if(!_0x22be7d[_0x6ec6('0x7')](_0x12ae48)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x490f43){const _0x8c0c6c=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))[_0x6ec6('0xab')](_0x490f43);if(!_0x8c0c6c)throw new _0x251ff9(_0x6ec6('0x27'),this);return _0x8c0c6c;}[_0x6ec6('0x94')](_0x252d84,_0x4971b3,_0x5baee2,_0x52afe1){const _0x2c0919=this['_getAuthorFromId'](_0x52afe1),_0x610224=this[_0x6ec6('0x37')][_0x6ec6('0x107')](_0x252d84,_0x4971b3,_0x5baee2,_0x2c0919,_0x3d44cd=>this['_updateSuggestionData'](_0x5baee2,{'attributes':_0x3d44cd}));return this[_0x6ec6('0x96')](_0x610224,_0x6ec6('0xfa'),()=>{this[_0x6ec6('0x63')](_0x5baee2,{'state':_0x6ec6('0xff')});},{'priority':_0x6ec6('0xa')}),this[_0x6ec6('0x96')](_0x610224,_0x6ec6('0xe5'),()=>{this[_0x6ec6('0x63')](_0x5baee2,{'state':_0x6ec6('0xc5')});},{'priority':'high'}),this[_0x6ec6('0xb3')][_0x6ec6('0x8e')](_0x5baee2,_0x610224),this[_0x6ec6('0x8d')][_0x6ec6('0x8e')](_0x610224,_0x6ec6('0x7c')),_0x610224;}['_splitMarkerName'](_0x36f574){const _0x2a167b=_0x36f574[_0x6ec6('0x46')](':');return{'group':_0x2a167b[0x0],'type':_0x2a167b[0x1],'subType':_0x2a167b[_0x6ec6('0x20')]>=0x5?_0x2a167b[0x2]:null,'id':_0x2a167b[_0x6ec6('0x20')]<0x5?_0x2a167b[0x2]:_0x2a167b[0x3],'authorId':_0x2a167b[_0x6ec6('0x20')]<0x5?_0x2a167b[0x3]:_0x2a167b[0x4],'markerCount':0x6==_0x2a167b[_0x6ec6('0x20')]?_0x2a167b[0x5]:null};}[_0x6ec6('0x48')](_0x577f4f,_0x3c0ce4,_0x4ea745){const _0x32db21=_0x577f4f[_0x6ec6('0xd2')](),_0x1044bd=_0x32db21[_0x6ec6('0x119')],_0x145286=_0x32db21[_0x6ec6('0xd1')];this['_setSuggestionRange'](_0x577f4f,this[_0x6ec6('0xf3')]['createRange'](_0x1044bd,_0x3c0ce4));const _0x2c25ff=_0x54747c(),_0x4aa417=_0x577f4f[_0x6ec6('0x1e')]['id'],_0x1ae23f=_0x577f4f[_0x6ec6('0x127')]+(_0x577f4f[_0x6ec6('0x3f')]?':'+_0x577f4f[_0x6ec6('0x3f')]:'');this[_0x6ec6('0x4')]({'id':_0x2c25ff,'type':_0x1ae23f,'createdAt':new Date(),'authorId':_0x4aa417,'originalSuggestionId':_0x577f4f['id'],'data':_0x577f4f[_0x6ec6('0x78')]}),'formatBlock'==_0x577f4f[_0x6ec6('0x127')]&&(_0x4ea745=this[_0x6ec6('0xf3')][_0x6ec6('0xd3')](_0x4ea745[_0x6ec6('0xd8')])),this[_0x6ec6('0x65')](_0x1ae23f,_0x2c25ff,_0x4aa417,this[_0x6ec6('0xf3')]['createRange'](_0x4ea745,_0x145286));}[_0x6ec6('0x11c')](_0x674162,_0x165e9c=null){const _0x4bcff5=[],_0x163942=this[_0x6ec6('0xf3')]['schema'],_0x57c136=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))['me'];for(const _0x45e843 of this[_0x6ec6('0x124')]())if(_0x45e843['isInContent']&&(!_0x165e9c||_0x45e843[_0x6ec6('0x127')]==_0x165e9c))for(const _0x30fa39 of _0x45e843[_0x6ec6('0x75')]()){const _0x388b77=_0x674162[_0x6ec6('0x119')][_0x6ec6('0x21')](_0x30fa39[_0x6ec6('0xd1')])||_0x674162[_0x6ec6('0xd1')]['isEqual'](_0x30fa39[_0x6ec6('0x119')]);if(_0x388b77||_0x674162[_0x6ec6('0xd7')](_0x30fa39)){const _0x35be76=_0x674162[_0x6ec6('0xeb')](_0x30fa39)&&mt(_0x163942,_0x30fa39['start'],_0x674162),_0x1afb4b=_0x30fa39[_0x6ec6('0xeb')](_0x674162)&&mt(_0x163942,_0x674162[_0x6ec6('0x119')],_0x30fa39);_0x4bcff5[_0x6ec6('0xb7')]({'suggestion':_0x45e843,'meta':{'isOwn':_0x57c136==_0x45e843[_0x6ec6('0x1e')],'isNextTo':_0x388b77,'isInsideObject':_0x35be76,'containsRangeInObject':_0x1afb4b}});break;}}return _0x4bcff5;}[_0x6ec6('0x65')](_0x52de4d,_0x4a51e4,_0x398ea9,_0x24bc3b,_0x52952c=null){this[_0x6ec6('0xf3')][_0x6ec6('0x5b')](_0x129ca3=>{let _0x5bb413=_0x6ec6('0xa4')+_0x52de4d+':'+_0x4a51e4+':'+_0x398ea9;_0x52952c&&(_0x5bb413=_0x5bb413+':'+_0x52952c),_0x129ca3[_0x6ec6('0x1f')](_0x5bb413,{'range':_0x24bc3b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x16617e){const _0x4dc654=_0x16617e['previous'],_0x245294=_0x16617e[_0x6ec6('0x108')];_0x16617e[_0x6ec6('0x26')]=null,null!=_0x4dc654&&(_0x4dc654[_0x6ec6('0x108')]=null),_0x16617e[_0x6ec6('0x108')]=null,null!=_0x245294&&(_0x245294[_0x6ec6('0x26')]=null),_0x6ec6('0x28')==this[_0x6ec6('0x8d')][_0x6ec6('0x11e')](_0x16617e)&&(this[_0x6ec6('0x8d')][_0x6ec6('0x8e')](_0x16617e,'removed'),this[_0x6ec6('0x6b')](_0x6ec6('0xe3'),_0x16617e,_0x4dc654,_0x245294));}[_0x6ec6('0x4')](_0xdc55ab){const _0xda38b3=_0xdc55ab['id'],_0x1661ed=this[_0x6ec6('0x110')](_0xdc55ab);if(this[_0x6ec6('0x5')]&&this[_0x6ec6('0x5')][_0x6ec6('0x71')]){const _0x6558a8=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')]['get'](_0x6ec6('0x121')),_0x4ee9ac=_0x1661ed[_0x6ec6('0x6d')],_0x48d06e=_0x1661ed[_0x6ec6('0x3f')]?_0x1661ed['type']+':'+_0x1661ed[_0x6ec6('0x3f')]:_0x1661ed['type'],_0x2306d7=this['editor'][_0x6ec6('0xc2')],_0x42222f=_0x6558a8[_0x6ec6('0xb5')](_0x5d766b(_0x2306d7,_0x6ec6('0xdd'))),_0x3921bb={'id':_0xda38b3,'type':_0x48d06e,'hasComments':_0x4ee9ac,'data':_0xdc55ab[_0x6ec6('0x78')]||null,'originalSuggestionId':_0xdc55ab[_0x6ec6('0x7e')]||null,'attributes':_0x1661ed[_0x6ec6('0x10a')]};this['_adapter'][_0x6ec6('0x71')](_0x3921bb)[_0x6ec6('0x125')](_0x244c61=>{_0x1661ed['_saved']=!0x0,_0x6558a8[_0x6ec6('0xe7')](_0x42222f),_0x244c61&&_0x244c61[_0x6ec6('0xa1')]&&(this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0xda38b3)[_0x6ec6('0xa1')]=_0x244c61['createdAt']);});}return _0x1661ed;}[_0x6ec6('0x63')](_0x2270c7,_0x550dc6){const _0x24ecfe=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')]('PendingActions'),_0x262fde=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x2270c7);if(this[_0x6ec6('0x5')]&&this[_0x6ec6('0x5')]['updateSuggestion']){if(_0x262fde[_0x6ec6('0x39')]){const _0x48e688=_0x24ecfe[_0x6ec6('0xb5')](_0x5d766b(this['editor'][_0x6ec6('0xc2')],'PENDING_ACTION_SUGGESTION'));this[_0x6ec6('0x5')][_0x6ec6('0x4e')](_0x2270c7,_0x550dc6)['then'](()=>{_0x24ecfe['remove'](_0x48e688);});}else _0x262fde['on'](_0x6ec6('0x118'),()=>{this[_0x6ec6('0x63')](_0x2270c7,_0x550dc6);});}}['_getSuggestionData'](_0x100a77){if(!this[_0x6ec6('0x5')]||!this[_0x6ec6('0x5')][_0x6ec6('0xac')])throw new _0x251ff9(_0x6ec6('0x36'),this);return this['_adapter']['getSuggestion'](_0x100a77);}[_0x6ec6('0x59')](_0x22a36f){const {id:_0xa5b6f4,type:_0x318991,subType:_0x44eb1f,authorId:_0x172c8a}=this[_0x6ec6('0x62')](_0x22a36f),_0x7a4755=this['_suggestions']['get'](_0xa5b6f4)||this[_0x6ec6('0x94')](_0x318991,_0x44eb1f,_0xa5b6f4,_0x172c8a);switch(this[_0x6ec6('0x43')](_0x7a4755,_0x318991,_0x44eb1f,_0x172c8a),this[_0x6ec6('0x8d')][_0x6ec6('0x11e')](_0x7a4755)){case _0x6ec6('0x7c'):this[_0x6ec6('0xee')](_0xa5b6f4)['then'](_0x4b4797=>{let _0x22df70=Promise[_0x6ec6('0x12a')]();_0x4b4797[_0x6ec6('0x6d')]&&(_0x22df70=this[_0x6ec6('0x47')][_0x6ec6('0x86')]({'channelId':this[_0x6ec6('0x5a')][_0x6ec6('0xd4')][_0x6ec6('0x11e')](_0x6ec6('0x8c')),'threadId':_0xa5b6f4})),_0x22df70[_0x6ec6('0x125')](()=>{this[_0x6ec6('0x110')](_0x4b4797)[_0x6ec6('0x39')]=!0x0;});}),this[_0x6ec6('0x8d')]['set'](_0x7a4755,_0x6ec6('0xc1'));break;case _0x6ec6('0x2a'):this[_0x6ec6('0x63')](_0xa5b6f4,{'state':_0x6ec6('0x42')});case _0x6ec6('0x6e'):this[_0x6ec6('0x8d')]['set'](_0x7a4755,_0x6ec6('0x28')),this['fire']('suggestionLoaded',_0x7a4755);break;case _0x6ec6('0x28'):this['fire'](_0x6ec6('0x11b'),_0x7a4755);}_0x7a4755[_0x6ec6('0xe9')](_0x22a36f),this[_0x6ec6('0xf7')](_0x7a4755);}['_refreshSuggestionsChain'](_0xbbb1e3){if(_0xbbb1e3[_0x6ec6('0x4b')])return;let _0x10d81c=!0x0,_0x3a9427=!0x0;for(const _0x969ccd of this['getSuggestions']()){if(_0x969ccd[_0x6ec6('0x4b')])continue;if(_0x969ccd==_0xbbb1e3||!_0x969ccd['isInContent'])continue;if(_0x969ccd[_0x6ec6('0x1e')]['id']!=_0xbbb1e3[_0x6ec6('0x1e')]['id'])continue;const _0x4cd6f0=this[_0x6ec6('0x37')]['getSuggestionCallback'](_0xbbb1e3[_0x6ec6('0x127')],_0xbbb1e3[_0x6ec6('0x3f')],_0x6ec6('0xd')),_0x3ad68a=this['_suggestionFactory'][_0x6ec6('0xaf')](_0x969ccd[_0x6ec6('0x127')],_0x969ccd[_0x6ec6('0x3f')],_0x6ec6('0xd')),_0x676dfe=_0x4cd6f0(_0xbbb1e3,_0x969ccd),_0x56fb23=_0x3ad68a(_0xbbb1e3,_0x969ccd);_0x676dfe&&_0x56fb23&&(_0x676dfe[0x1][_0x6ec6('0xb1')]&&_0x676dfe[0x1]['commentThread'][_0x6ec6('0x20')]||(_0x676dfe[0x0][_0x6ec6('0x108')]=_0x676dfe[0x1],_0x676dfe[0x1][_0x6ec6('0x26')]=_0x676dfe[0x0],_0x676dfe[0x0]==_0xbbb1e3?_0x3a9427=!0x1:_0x10d81c=!0x1));}_0xbbb1e3[_0x6ec6('0x26')]&&_0x10d81c&&(_0xbbb1e3[_0x6ec6('0x26')]['next']=null,_0xbbb1e3[_0x6ec6('0x26')]=null),_0xbbb1e3[_0x6ec6('0x108')]&&_0x3a9427&&(_0xbbb1e3[_0x6ec6('0x108')][_0x6ec6('0x26')]=null,_0xbbb1e3[_0x6ec6('0x108')]=null);}[_0x6ec6('0x64')](_0x323540){for(const _0x481dba of this['_suggestions'][_0x6ec6('0xca')]()){if(_0x481dba==_0x323540||!_0x481dba['isInContent'])continue;if(_0x481dba[_0x6ec6('0x127')]!=_0x323540[_0x6ec6('0x127')]||_0x481dba[_0x6ec6('0x1e')]['id']!=_0x323540[_0x6ec6('0x1e')]['id']||_0x481dba[_0x6ec6('0x3f')]!=_0x323540[_0x6ec6('0x3f')])continue;const _0x474197=this[_0x6ec6('0x37')][_0x6ec6('0xaf')](_0x323540['type'],_0x323540[_0x6ec6('0x3f')],'join');if(_0x474197(_0x481dba[_0x6ec6('0x75')](),_0x323540[_0x6ec6('0x75')]())){if(_0x323540[_0x6ec6('0xb1')]&&_0x323540['commentThread'][_0x6ec6('0x20')])continue;return this['_joinSuggestions'](_0x481dba,_0x323540),!0x0;}if(_0x474197(_0x323540[_0x6ec6('0x75')](),_0x481dba['getRanges']())){if(_0x481dba[_0x6ec6('0xb1')]&&_0x481dba['commentThread'][_0x6ec6('0x20')])continue;return this['_joinSuggestions'](_0x323540,_0x481dba),!0x0;}}return!0x1;}[_0x6ec6('0x74')](_0x24049d,_0xd47f19){if(_0x24049d['isMultiRange'])for(const _0x1d484e of _0xd47f19[_0x6ec6('0x75')]())_0x24049d[_0x6ec6('0x4f')](_0x1d484e);else{const _0x252509=_0xd47f19[_0x6ec6('0xd2')]()[_0x6ec6('0xd1')];this['_setSuggestionRange'](_0x24049d,this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x24049d[_0x6ec6('0xd2')]()[_0x6ec6('0x119')],_0x252509));}_0xd47f19[_0x6ec6('0x1')]();}}_0x550c42(d,_0x3858ac);class lt{constructor(_0xb16d0c){this['_editor']=_0xb16d0c,this['_model']=_0xb16d0c[_0x6ec6('0x73')],this[_0x6ec6('0x13')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x6ec6('0xe1')]();}[_0x6ec6('0x107')](_0x55a28c,_0x38f8be,_0x27114f,_0x3dd301,_0x1de7bc){return new _0x32d0a2(this[_0x6ec6('0xf3')],{'type':_0x55a28c,'subType':_0x38f8be,'id':_0x27114f,'author':_0x3dd301,'onAttributesChange':_0x1de7bc,'onAccept':(..._0x4f715e)=>this[_0x6ec6('0xaf')](_0x55a28c,_0x38f8be,_0x6ec6('0xfa'))(..._0x4f715e),'onDiscard':(..._0x1ee37a)=>this['getSuggestionCallback'](_0x55a28c,_0x38f8be,_0x6ec6('0xe5'))(..._0x1ee37a)});}[_0x6ec6('0x6c')](_0x3079a4,_0x3c5b3b,_0x453ec9,_0x79b7e2){const _0xa73223=_0x3079a4+':'+_0x3c5b3b+':'+_0x453ec9;this[_0x6ec6('0x13')][_0x6ec6('0x8e')](_0xa73223,_0x79b7e2);}[_0x6ec6('0xaf')](_0x5dbc5d,_0xa59df4,_0xc19574){const _0x5055f6=_0x5dbc5d+':'+_0xa59df4+':'+_0xc19574;return this['_customCallbacks'][_0x6ec6('0x11e')](_0x5055f6)||this['_defaultCallbacks'][_0x6ec6('0x11e')](_0x5dbc5d+':'+_0xc19574);}[_0x6ec6('0xe1')](){const _0x31f552=()=>{},_0x39459c=_0x493fe8=>{_0x493fe8[_0x6ec6('0x3d')]((_0x5bcd3b,_0x441663)=>_0x5bcd3b[_0x6ec6('0x119')][_0x6ec6('0xa5')](_0x441663[_0x6ec6('0x119')])?0x1:-0x1),this[_0x6ec6('0xf3')]['change'](_0x435df7=>{for(const _0x403105 of _0x493fe8){let _0x37c533;_0x37c533=_0x403105['end'][_0x6ec6('0x5c')]&&_0x403105[_0x6ec6('0xd1')][_0x6ec6('0xd8')]==_0x403105[_0x6ec6('0x119')]['nodeAfter']?_0x435df7[_0x6ec6('0x103')](_0x403105[_0x6ec6('0x119')][_0x6ec6('0xf2')],'on'):_0x435df7[_0x6ec6('0x103')](_0x403105),this[_0x6ec6('0xf3')][_0x6ec6('0x115')](_0x37c533,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x28c90b=(_0x255e3e,_0x55e47d)=>{this[_0x6ec6('0xf3')][_0x6ec6('0x5b')](_0x5d74dd=>{const {commandName:_0x210ce5,commandParams:_0x7025ba=[]}=_0x55e47d,_0x2d953f=_0x255e3e[0x0];if(_0x6ec6('0xb2')==_0x2d953f[_0x6ec6('0x2e')]['rootName'])return;const _0x4dcb6f=Array[_0x6ec6('0x55')](this['_model'][_0x6ec6('0x18')][_0x6ec6('0xea')][_0x6ec6('0x75')]())[_0x6ec6('0x98')](_0x50e959=>_0x341c07[_0x6ec6('0x11d')](_0x50e959));dt(_0x2d953f)?_0x5d74dd[_0x6ec6('0xc9')](this[_0x6ec6('0xf3')]['createRange'](_0x2d953f[_0x6ec6('0xd1')])):_0x5d74dd[_0x6ec6('0xc9')](_0x2d953f);for(const _0x3578e2 of this[_0x6ec6('0xf8')][_0x6ec6('0x129')][_0x6ec6('0x129')]())_0x3578e2['refresh']();_0x7025ba[_0x6ec6('0xb7')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x6ec6('0x70')](_0x210ce5,..._0x7025ba);const _0x1021b0=_0x4dcb6f[_0x6ec6('0x79')](_0x3475e3=>_0x6ec6('0xb2')!=_0x3475e3[_0x6ec6('0x2e')][_0x6ec6('0xc4')]);_0x1021b0[_0x6ec6('0x20')]>0x0&&_0x5d74dd['setSelection'](_0x1021b0);for(const _0x25e1ac of _0x4dcb6f)_0x25e1ac[_0x6ec6('0x87')]();});},_0x5c5392=(_0x16144f,_0x36c5b9)=>0x1==_0x16144f['length']&&0x1==_0x36c5b9[_0x6ec6('0x20')]&&_0x16144f[0x0]['end'][_0x6ec6('0x21')](_0x36c5b9[0x0][_0x6ec6('0x119')]),_0x446141=(_0x1737ec,_0x556e7c)=>bt(_0x1737ec,_0x556e7c,this[_0x6ec6('0xf3')])?[_0x1737ec,_0x556e7c]:bt(_0x556e7c,_0x1737ec,this['_model'])?[_0x556e7c,_0x1737ec]:null;this['_defaultCallbacks']['set'](_0x6ec6('0xe2'),_0x31f552),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')]('insertion:discard',_0x39459c),this[_0x6ec6('0x9d')]['set']('insertion:join',_0x5c5392),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0x9'),_0x446141),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0x1d'),_0x39459c),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0x9f'),_0x31f552),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0xd9'),_0x5c5392),this[_0x6ec6('0x9d')]['set'](_0x6ec6('0x5e'),_0x446141),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')]('formatInline:accept',_0x28c90b),this['_defaultCallbacks'][_0x6ec6('0x8e')](_0x6ec6('0xd5'),_0x31f552),this[_0x6ec6('0x9d')]['set'](_0x6ec6('0xef'),_0x5c5392),this['_defaultCallbacks']['set']('formatInline:chain',_0x31f552),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')]('formatBlock:accept',_0x28c90b),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0x60'),_0x31f552),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0x2d'),_0x5c5392),this['_defaultCallbacks'][_0x6ec6('0x8e')](_0x6ec6('0xbf'),_0x31f552);}}function mt(_0x1bcb2a,_0x4ea6d1,_0xd4725){for(const _0x39a146 of _0x4ea6d1['parent'][_0x6ec6('0xf9')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x39a146[_0x6ec6('0x2e')]==_0x39a146)return!0x1;if(!_0xd4725['containsItem'](_0x39a146))return!0x1;if(_0x1bcb2a[_0x6ec6('0x76')](_0x39a146)||_0x1bcb2a['isLimit'](_0x39a146))return!0x0;}}function dt(_0x42653a){return _0x42653a['end'][_0x6ec6('0xd8')]==_0x42653a[_0x6ec6('0x119')][_0x6ec6('0xf2')]&&_0x42653a[_0x6ec6('0xd1')]['isAtStart'];}function pt(_0x437e62,_0x557c9d,_0x3b11d8,_0xe1c3fc){const _0x343709=_0x454544=>!_0x454544[_0x6ec6('0x10f')]['is'](_0x6ec6('0x120'))&&!_0xe1c3fc[_0x6ec6('0x76')](_0x454544[_0x6ec6('0x10f')]),_0x2e8617=_0x437e62['start'][_0x6ec6('0x5d')](_0x343709),_0x538d8b=_0x437e62[_0x6ec6('0xd1')]['getLastMatchingPosition'](_0x343709,{'direction':_0x6ec6('0x58')});return(!_0x437e62[_0x6ec6('0x119')]['isEqual'](_0x2e8617)||!_0x437e62[_0x6ec6('0xd1')][_0x6ec6('0x21')](_0x538d8b))&&(_0x2e8617[_0x6ec6('0xa5')](_0x538d8b)?_0x3b11d8[_0x6ec6('0x99')](_0x557c9d,{'range':_0x3b11d8['createRange'](_0x2e8617,_0x538d8b)}):_0x3b11d8[_0x6ec6('0xfe')](_0x557c9d),!0x0);}function kt(_0x37d6b2){return _0x1d81a6(_0x37d6b2);}function wt(_0x1f6dd7){const _0x2b9a79=_0x1f6dd7[_0x6ec6('0x119')][_0x6ec6('0xf2')];return _0x2b9a79&&_0x2b9a79['is']('element');}function yt(_0x318867,_0x2fd75a){const _0x387b64=_0x2fd75a['schema'][_0x6ec6('0x76')](_0x318867)||_0x2fd75a['schema'][_0x6ec6('0x6a')](_0x318867);return _0x2fd75a[_0x6ec6('0x4a')](_0x2fd75a[_0x6ec6('0x95')](_0x318867,_0x6ec6('0xe4')),_0x387b64?_0x2fd75a[_0x6ec6('0x109')](_0x318867):_0x2fd75a['createPositionAt'](_0x318867,'end'));}function bt(_0x598f7a,_0x2d89fe,_0x2b68e0){const _0x94f5b7=_0x598f7a[_0x6ec6('0xd2')](),_0x19f376=_0x2d89fe[_0x6ec6('0xd2')]();if(_0x94f5b7[_0x6ec6('0xd1')]['isEqual'](_0x19f376['start']))return!0x0;if(_0x598f7a[_0x6ec6('0x127')]!=_0x2d89fe[_0x6ec6('0x127')])return!0x1;if(!_0x94f5b7[_0x6ec6('0xd1')]['isTouching'](_0x19f376[_0x6ec6('0x119')]))return!0x1;const _0x1d0c8a=_0x2b68e0[_0x6ec6('0x4a')](_0x94f5b7[_0x6ec6('0xd1')],_0x19f376[_0x6ec6('0x119')])[_0x6ec6('0x8f')]();for(const _0x1b9cf7 of _0x1d0c8a)if([_0x6ec6('0xa3'),_0x6ec6('0xcd')][_0x6ec6('0xb8')](_0x1b9cf7[_0x6ec6('0x127')])&&_0x2b68e0[_0x6ec6('0xb6')][_0x6ec6('0x17')](_0x1b9cf7[_0x6ec6('0x10f')]))return!0x1;return!0x0;}