@ckeditor/ckeditor5-track-changes 33.0.0 → 34.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +5 -2
  3. package/build/track-changes.js +2 -2
  4. package/build/translations/az.js +1 -0
  5. package/build/translations/cs.js +1 -1
  6. package/build/translations/da.js +1 -1
  7. package/build/translations/de.js +1 -1
  8. package/build/translations/el.js +1 -1
  9. package/build/translations/en-au.js +1 -1
  10. package/build/translations/es.js +1 -1
  11. package/build/translations/et.js +1 -1
  12. package/build/translations/fr.js +1 -1
  13. package/build/translations/gl.js +1 -1
  14. package/build/translations/hi.js +1 -1
  15. package/build/translations/hr.js +1 -1
  16. package/build/translations/id.js +1 -0
  17. package/build/translations/it.js +1 -1
  18. package/build/translations/lv.js +1 -0
  19. package/build/translations/nl.js +1 -1
  20. package/build/translations/pl.js +1 -1
  21. package/build/translations/pt-br.js +1 -1
  22. package/build/translations/sk.js +1 -1
  23. package/build/translations/sr-latn.js +1 -1
  24. package/build/translations/sr.js +1 -1
  25. package/build/translations/tk.js +1 -1
  26. package/build/translations/tr.js +1 -1
  27. package/build/translations/zh-cn.js +1 -1
  28. package/build/translations/zh.js +1 -1
  29. package/lang/contexts.json +2 -0
  30. package/lang/translations/az.po +397 -0
  31. package/lang/translations/cs.po +40 -28
  32. package/lang/translations/da.po +10 -0
  33. package/lang/translations/de.po +10 -0
  34. package/lang/translations/el.po +10 -0
  35. package/lang/translations/en-au.po +15 -5
  36. package/lang/translations/en.po +10 -0
  37. package/lang/translations/es.po +29 -1
  38. package/lang/translations/et.po +10 -0
  39. package/lang/translations/fr.po +29 -1
  40. package/lang/translations/gl.po +13 -3
  41. package/lang/translations/hi.po +10 -0
  42. package/lang/translations/hr.po +24 -13
  43. package/lang/translations/id.po +379 -0
  44. package/lang/translations/it.po +29 -1
  45. package/lang/translations/lv.po +415 -0
  46. package/lang/translations/nl.po +19 -9
  47. package/lang/translations/pl.po +12 -0
  48. package/lang/translations/pt-br.po +29 -1
  49. package/lang/translations/sk.po +69 -57
  50. package/lang/translations/sr-latn.po +11 -0
  51. package/lang/translations/sr.po +11 -0
  52. package/lang/translations/tk.po +10 -0
  53. package/lang/translations/tr.po +10 -0
  54. package/lang/translations/zh-cn.po +13 -4
  55. package/lang/translations/zh.po +9 -0
  56. package/package.json +3 -3
  57. package/src/commands/acceptallsuggestionscommand.js +1 -1
  58. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  59. package/src/commands/acceptsuggestioncommand.js +1 -1
  60. package/src/commands/discardallsuggestionscommand.js +1 -1
  61. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  62. package/src/commands/discardsuggestioncommand.js +1 -1
  63. package/src/commands/trackchangescommand.js +1 -1
  64. package/src/integrations/alignment.js +1 -1
  65. package/src/integrations/basicstyles.js +1 -1
  66. package/src/integrations/blockquote.js +1 -1
  67. package/src/integrations/ckbox.js +23 -0
  68. package/src/integrations/codeblock.js +1 -1
  69. package/src/integrations/comments.js +1 -1
  70. package/src/integrations/deletecommand.js +1 -1
  71. package/src/integrations/entercommand.js +1 -1
  72. package/src/integrations/font.js +1 -1
  73. package/src/integrations/heading.js +1 -1
  74. package/src/integrations/highlight.js +1 -1
  75. package/src/integrations/horizontalline.js +1 -1
  76. package/src/integrations/htmlembed.js +23 -0
  77. package/src/integrations/image.js +1 -1
  78. package/src/integrations/indent.js +1 -1
  79. package/src/integrations/inputcommand.js +1 -1
  80. package/src/integrations/link.js +1 -1
  81. package/src/integrations/list.js +1 -1
  82. package/src/integrations/mediaembed.js +1 -1
  83. package/src/integrations/mention.js +1 -1
  84. package/src/integrations/pagebreak.js +1 -1
  85. package/src/integrations/paragraph.js +1 -1
  86. package/src/integrations/removeformat.js +1 -1
  87. package/src/integrations/restrictededitingmode.js +1 -1
  88. package/src/integrations/shiftentercommand.js +1 -1
  89. package/src/integrations/standardeditingmode.js +1 -1
  90. package/src/integrations/table.js +1 -1
  91. package/src/integrations/tableclipboard.js +1 -1
  92. package/src/integrations/tableheadings.js +1 -1
  93. package/src/integrations/tablemergesplit.js +1 -1
  94. package/src/integrations/title.js +1 -1
  95. package/src/integrations/undo.js +1 -1
  96. package/src/integrations/utils.js +1 -1
  97. package/src/suggestion.js +1 -1
  98. package/src/suggestiondescriptionfactory.js +1 -1
  99. package/src/trackchanges.js +1 -1
  100. package/src/trackchangesdata.js +1 -1
  101. package/src/trackchangesediting.js +1 -1
  102. package/src/trackchangesui.js +1 -1
  103. package/src/ui/suggestioncontroller.js +1 -1
  104. package/src/ui/view/basesuggestionthreadview.js +1 -1
  105. package/src/ui/view/suggestionthreadview.js +1 -1
  106. package/src/utils/common-translations.js +23 -0
  107. package/src/utils/getrangesofblockgroups.js +23 -0
  108. package/src/utils/getselectedsuggestions.js +1 -1
  109. package/src/utils/hashobject.js +1 -1
  110. package/src/utils/normalizedescription.js +1 -1
  111. package/src/utils/sortsuggestions.js +1 -1
  112. package/theme/integrations/horizontalline.css +0 -15
  113. package/theme/integrations/image.css +0 -55
  114. package/theme/integrations/mediaembed.css +0 -19
  115. package/theme/integrations/pagebreak.css +0 -15
  116. package/theme/integrations/table.css +0 -147
  117. package/theme/suggestion.css +0 -87
  118. package/theme/suggestionmarker.css +0 -161
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x31e4a5,PendingActions as _0x1a7bc1}from'ckeditor5/src/core';import{LiveRange as _0x5cdb}from'ckeditor5/src/engine';import{CKEditorError as _0x3a6ec5,uid as _0xd9a6f1,priorities as _0x2fbfb7,EmitterMixin as _0x16d268,mix as _0x5d0173}from'ckeditor5/src/utils';import{toWidget as _0xcbf382}from'ckeditor5/src/widget';import{Users as _0x518140}from'ckeditor5-collaboration/src/collaboration-core';import _0x432ef2 from'./commands/trackchangescommand';import _0x1f0bf4 from'./commands/acceptsuggestioncommand';import _0x53071d from'./commands/discardsuggestioncommand';import _0x240242 from'./commands/acceptallsuggestionscommand';import _0x40b5e6 from'./commands/acceptselectedsuggestionscommand';import _0x71b4e4 from'./commands/discardallsuggestionscommand';import _0x22cf8f from'./commands/discardselectedsuggestionscommand';import _0x11fe95 from'./suggestion';import _0x29a674 from'./suggestiondescriptionfactory';import'../theme/suggestion.css';import'../theme/suggestionmarker.css';import _0x3dceff from'./integrations/alignment';import _0x291702 from'./integrations/basicstyles';import _0x28b3fe from'./integrations/blockquote';import _0x271903 from'./integrations/codeblock';import _0x4e2d01 from'./integrations/comments';import _0x500745 from'./integrations/deletecommand';import _0x8ab3f5 from'./integrations/entercommand';import _0x5a7cb3 from'./integrations/font';import _0x2ba5a1 from'./integrations/heading';import _0x33c9af from'./integrations/highlight';import _0x1baad9 from'./integrations/horizontalline';import _0x547ccd from'./integrations/image';import _0x150002 from'./integrations/indent';import _0x452183 from'./integrations/inputcommand';import _0x2b1804 from'./integrations/link';import _0x35da6c from'./integrations/list';import _0x26ab64 from'./integrations/mediaembed';import _0x348abe from'./integrations/mention';import _0x16a12c from'./integrations/pagebreak';import tt from'./integrations/paragraph';import it from'./integrations/removeformat';import st from'./integrations/restrictededitingmode';import nt from'./integrations/shiftentercommand';import et from'./integrations/standardeditingmode';import ot from'./integrations/table';import rt from'./integrations/tablemergesplit';import at from'./integrations/tableheadings';import ct from'./integrations/tableclipboard';import ht from'./integrations/title';import ut from'./integrations/undo';import ft from'./utils/hashobject.js';export default class p extends _0x31e4a5{static get['requires'](){return['CommentsRepository',_0x518140,_0x1a7bc1,_0x3dceff,_0x291702,_0x28b3fe,_0x271903,_0x4e2d01,_0x500745,_0x8ab3f5,_0x5a7cb3,_0x2ba5a1,_0x33c9af,_0x1baad9,_0x547ccd,_0x150002,_0x452183,_0x2b1804,_0x35da6c,_0x26ab64,_0x348abe,_0x16a12c,tt,it,st,nt,et,ot,rt,at,ct,ht,ut];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x21d8c6){function _0x5e4206(_0x25e45b){return _0x25e45b['map'](_0x57cf12=>String['fromCharCode'](_0x57cf12))['join']('');}super(_0x21d8c6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x861532,_0x401045,_0x4bef47,_0x3cf902)=>{this['_model']['change'](()=>{for(const _0x368353 of[..._0x3cf902,..._0x4bef47])this['_model']['markers']['has'](_0x368353)&&_0x21d8c6['editing']['reconvertMarker'](_0x368353);});}),this['_descriptionFactory']=new _0x29a674(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new gt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x21d8c6['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x5e4206([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5e4206([0x34,0x30,0x34,0x34,0x30,0x36,0x31,0x38]);}['init'](){const _0x2ccde8=this['editor'];_0x2ccde8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x44f237=>{const {id:_0x13274e,type:_0x45fb7d}=this['_splitMarkerName'](_0x44f237['markerName']),_0x2466a2=['ck-suggestion-marker','ck-suggestion-marker-'+_0x45fb7d];let _0x534524=0xbb8;return this['activeMarkers']['includes'](_0x44f237['markerName'])&&(_0x2466a2['push']('ck-suggestion-marker--active'),_0x534524=0xbc2),'deletion'==_0x45fb7d&&(_0x534524+=0x5),{'classes':_0x2466a2,'attributes':{'data-suggestion':_0x13274e},'priority':_0x534524};}}),_0x2ccde8['conversion']['for']('dataDowncast')['add'](_0x6e3d29=>{_0x6e3d29['on']('addMarker:suggestion',(_0x8aa05b,_0x514a34,_0x270186)=>{if(!_0x270186['options']['showSuggestionHighlights'])return;const _0x4d6ecf=_0x514a34['item'];if(!_0x4d6ecf)return;const _0x7fa20a=_0x270186['mapper']['toViewElement'](_0x4d6ecf);_0x2ccde8['model']['schema']['isObject'](_0x4d6ecf)&&_0x7fa20a&&!_0x7fa20a['getCustomProperty']('widget')&&_0x7fa20a['is']('containerElement')&&_0xcbf382(_0x7fa20a,_0x270186['writer']);},{'priority':'high'});}),_0x2ccde8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x517e89,_0x1d7976)=>{if(!_0x1d7976['options']['showSuggestionHighlights'])return null;const {type:_0xb48810}=this['_splitMarkerName'](_0x517e89['markerName']);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0xb48810],'priority':0xbb8};}});const _0x20d39b=({showActiveMarkers:_0x146056=!0x0}={})=>(_0x145951,_0x268d21,_0x378f78)=>{if(!_0x268d21['item'])return;if(_0x268d21['item']['is']('selection'))return void _0x378f78['consumable']['consume'](_0x268d21['item'],_0x145951['name']);const _0x100822=_0x378f78['mapper']['toViewElement'](_0x268d21['item']);if(!(_0x268d21['item']['is']('element')&&_0x2ccde8['model']['schema']['isBlock'](_0x268d21['item'])&&!_0x100822['getCustomProperty']('addHighlight')))return;const {id:_0x505d30}=this['_splitMarkerName'](_0x268d21['markerName']);_0x378f78['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x100822),_0x378f78['writer']['setAttribute']('data-suggestion',_0x505d30,_0x100822),_0x378f78['mapper']['bindElementToMarker'](_0x100822,_0x268d21['markerName']),_0x146056&&(this['activeMarkers']['includes'](_0x268d21['markerName'])?_0x378f78['writer']['addClass']('ck-suggestion-marker--active',_0x100822):_0x378f78['writer']['removeClass']('ck-suggestion-marker--active',_0x100822));for(const _0x1e4c98 of _0x2ccde8['model']['createRangeIn'](_0x268d21['item'])['getItems']())_0x378f78['consumable']['consume'](_0x1e4c98,_0x145951['name']);_0x378f78['consumable']['consume'](_0x268d21['item'],_0x145951['name']);};_0x2ccde8['conversion']['for']('dataDowncast')['add'](_0x2943e9=>{_0x2943e9['on']('addMarker:suggestion:formatBlock',(_0x4647a3,_0x54259e,_0x24a220)=>{_0x24a220['options']['showSuggestionHighlights']&&_0x20d39b({'showActiveMarkers':!0x1})(_0x4647a3,_0x54259e,_0x24a220);},{'priority':'highest'});}),_0x2ccde8['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e368e,_0x181faa)=>_0x181faa['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e368e['substr']('suggestion'['length']+0x1)}}),_0x2ccde8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x41f62e,{writer:_0x18383a})=>{let _0x31daf9='suggestion:'+_0x41f62e['getAttribute']('suggestion-type')+':'+_0x41f62e['getAttribute']('id');return _0x41f62e['getAttribute']('marker-count')&&(_0x31daf9+=':'+_0x41f62e['getAttribute']('marker-count')),_0x18383a['createElement']('$marker',{'data-name':_0x31daf9});}}),_0x2ccde8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2ccde8['conversion']['for']('editingDowncast')['add'](_0x262bc0=>{_0x262bc0['on']('addMarker:suggestion:formatBlock',_0x20d39b(),{'priority':'high'});}),_0x2ccde8['conversion']['for']('editingDowncast')['add'](_0x3f7319=>{_0x3f7319['on']('removeMarker:suggestion:formatBlock',(_0x32bed8,_0x69a0f5,_0x335fe7)=>{const _0x23f62=_0x335fe7['mapper']['markerNameToElements'](_0x69a0f5['markerName']);if(_0x23f62)for(const _0x2a2c55 of _0x23f62)_0x2a2c55['getCustomProperty']('addHighlight')||(_0x335fe7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2a2c55),_0x335fe7['writer']['removeAttribute']('data-suggestion',_0x2a2c55),_0x335fe7['mapper']['unbindElementFromMarkerName'](_0x2a2c55,_0x69a0f5['markerName']));},{'priority':'high'});}),_0x2ccde8['model']['document']['registerPostFixer'](_0x2b4e72=>{let _0x10a7fc=!0x1;const _0xba03a4=Array['from'](_0x2ccde8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8c7df3,data:_0x1a304e}of _0xba03a4){const {group:_0x44b8ab,type:_0x432b75,id:_0x44456b}=this['_splitMarkerName'](_0x8c7df3);if('suggestion'!==_0x44b8ab)continue;const _0x402a36=this['_suggestions']['get'](_0x44456b);if(null!=_0x1a304e['newRange']){'formatInline'==_0x432b75&&(_0x10a7fc=_0x10a7fc||mt(_0x1a304e['newRange'],_0x8c7df3,_0x2b4e72,_0x2ccde8['model']['schema']));if(_0x1a304e['newRange']['isCollapsed']||'$graveyard'==_0x1a304e['newRange']['root']['rootName']||'formatBlock'==_0x432b75&&!kt(_0x1a304e['newRange'])||'deletion'==_0x432b75&&!(!dt(_0xad3994=_0x1a304e['newRange'])&&!function(_0x3c3785){return _0x3c3785['start']['parent']==_0x3c3785['end']['nodeBefore']&&_0x3c3785['start']['isAtEnd'];}(_0xad3994)))_0x2b4e72['removeMarker'](_0x8c7df3),_0x10a7fc=!0x0;else{if(!_0x402a36||!_0x402a36['isInContent'])continue;_0x10a7fc=!!this['_joinWithAdjacentSuggestions'](_0x402a36)||_0x10a7fc;}}}var _0xad3994;return _0x10a7fc;}),_0x2ccde8['model']['document']['registerPostFixer'](_0x25eba5=>{let _0x26fb0c=!0x1;for(const _0x3ad2c5 of _0x2ccde8['model']['document']['differ']['getChanges']()){if('insert'!=_0x3ad2c5['type'])continue;const _0x18ff50=_0x3ad2c5['position']['getShiftedBy'](_0x3ad2c5['length']);if(_0x18ff50['isAtEnd'])for(const _0x26211c of this['_suggestions']['values']()){if(_0x26211c['isMultiRange']||!_0x26211c['isInContent'])continue;if('formatBlock'!=_0x26211c['type'])continue;const _0x10319b=_0x26211c['getFirstRange']();if(_0x10319b['start']['parent']!=_0x10319b['end']['parent']&&_0x10319b['end']['isEqual'](_0x3ad2c5['position'])){const _0x443536=_0x2ccde8['model']['createRange'](_0x10319b['start'],_0x18ff50);_0x25eba5['updateMarker'](_0x26211c['getFirstMarker'](),{'range':_0x443536}),_0x26fb0c=!0x0;}}}return _0x26fb0c;}),_0x2ccde8['model']['markers']['on']('update:suggestion',(_0x5a9b26,_0x48cd6e,_0x916fde)=>{if(null==_0x916fde){const {id:_0x1e7e14}=this['_splitMarkerName'](_0x48cd6e['name']),_0x17beb3=this['_suggestions']['get'](_0x1e7e14);_0x17beb3&&_0x17beb3['addMarkerName'](_0x48cd6e['name']);}}),_0x2ccde8['model']['document']['on']('change:data',()=>{const _0x5e4733=Array['from'](_0x2ccde8['model']['document']['differ']['getChangedMarkers']());_0x5e4733['sort']((_0x264aa8,_0x20ea25)=>{const _0x2a9070=_0x264aa8['data']['oldRange'],_0x4fed45=_0x20ea25['data']['oldRange'];return null===_0x2a9070&&null===_0x4fed45?0x0:null===_0x2a9070&&null!==_0x4fed45?-0x1:null!==_0x2a9070&&null===_0x4fed45?0x1:_0x2a9070['start']['isBefore'](_0x4fed45['start'])?-0x1:0x1;});const _0x39e3c7=new Set();for(const {name:_0x153f12,data:_0x430fbd}of _0x5e4733){const {group:_0x5eaaa5,id:_0x12b6ff}=this['_splitMarkerName'](_0x153f12);if('suggestion'===_0x5eaaa5&&(null===_0x430fbd['oldRange']&&this['_handleNewSuggestionMarker'](_0x153f12),null===_0x430fbd['newRange'])){const _0x4cdb26=this['_suggestions']['get'](_0x12b6ff);_0x4cdb26['isInContent']?_0x39e3c7['add'](_0x4cdb26):this['_removeSuggestion'](_0x4cdb26);}}for(const {name:_0x1206d2,data:_0x2e44c6}of _0x5e4733){const {group:_0x1dd3b5,id:_0xc87538}=this['_splitMarkerName'](_0x1206d2);if('suggestion'!==_0x1dd3b5)continue;const _0x46e98f=this['_suggestions']['get'](_0xc87538);null!=_0x2e44c6['newRange']&&null!=_0x2e44c6['oldRange']&&(this['_refreshSuggestionsChain'](_0x46e98f),_0x39e3c7['add'](_0x46e98f['head']));}for(const _0x530b29 of _0x39e3c7)this['fire']('suggestionChanged',_0x530b29);_0x39e3c7['clear']();}),_0x2ccde8['model']['on']('applyOperation',(_0x2d4023,_0x47351f)=>{const _0x4372e3=_0x47351f[0x0];if(!this['_suggestions']['size'])return;if(!_0x4372e3['isDocumentOperation'])return;if(_0x4372e3['batch']['isUndo']||!_0x4372e3['batch']['isLocal'])return;let _0x257e84,_0x43afb0;switch(_0x4372e3['type']){case'insert':_0x257e84=_0x2ccde8['model']['createPositionAt'](_0x4372e3['position']),_0x43afb0=_0x257e84['getShiftedBy'](_0x4372e3['howMany']);break;case'split':_0x257e84=_0x2ccde8['model']['createPositionAt'](_0x4372e3['splitPosition']),_0x43afb0=_0x2ccde8['model']['createPositionAt'](_0x4372e3['moveTargetPosition']);break;case'move':_0x257e84=_0x2ccde8['model']['createPositionAt'](_0x4372e3['targetPosition']),_0x43afb0=_0x257e84['getShiftedBy'](_0x4372e3['howMany']);break;default:return;}const _0x821aaf=_0x2ccde8['model']['createRange'](_0x257e84,_0x43afb0);_0x2ccde8['model']['change'](()=>{for(const {suggestion:_0x47175d,meta:_0x52306e}of this['_findSuggestions'](_0x821aaf)){if(_0x47175d['isMultiRange'])continue;if('formatInline'==_0x47175d['type'])continue;const _0x37db70=_0x47175d['data']&&_0x47175d['data']['multipleBlocks'];('formatBlock'!=_0x47175d['type']||'split'==_0x4372e3['type']&&!_0x37db70)&&(_0x52306e['containsRangeInObject']||'insertion'==_0x47175d['type']&&_0x52306e['isOwn']||_0x47175d['getFirstRange']()['containsRange'](_0x821aaf)&&this['_breakSuggestionMarker'](_0x47175d,_0x257e84,_0x43afb0));}});},{'priority':'lowest'}),_0x2ccde8['model']['on']('deleteContent',(_0x5d84be,_0x3f3606)=>{const _0x54085f=_0x3f3606[0x0],_0x381313=_0x3f3606[0x1];if(_0x381313&&_0x381313['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x54085f['isCollapsed'])return;const _0xe8a5c5=_0x2ccde8['model']['schema'],{start:_0x1b00b5,end:_0x2c8200}=_0x54085f['getFirstRange'](),_0x174162=_0x1b00b5['nodeAfter']&&_0xe8a5c5['isObject'](_0x1b00b5['nodeAfter'])?null:_0xe8a5c5['getNearestSelectionRange'](_0x1b00b5,'forward'),_0x2b7ea7=_0x2c8200['nodeBefore']&&_0xe8a5c5['isObject'](_0x2c8200['nodeBefore'])?null:_0xe8a5c5['getNearestSelectionRange'](_0x2c8200,'backward'),_0x3af516=_0x2ccde8['model']['createRange'](_0x174162?_0x174162['start']:_0x1b00b5,_0x2b7ea7?_0x2b7ea7['end']:_0x2c8200);_0x2ccde8['model']['change'](_0x41afb1=>{this['markDeletion'](_0x3af516);const _0x402ffd=_0x2ccde8['model']['schema']['getNearestSelectionRange'](_0x3af516['start']);_0x54085f['is']('documentSelection')?_0x41afb1['setSelection'](_0x402ffd):_0x54085f['setTo'](_0x402ffd);}),_0x5d84be['stop']();},{'priority':_0x2fbfb7['normal']+0xa}),_0x2ccde8['model']['on']('insertContent',(_0x1c77d1,_0x320ccb)=>{const _0x7d28a3=_0x320ccb[_0x320ccb['length']-0x1];_0x7d28a3&&_0x7d28a3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2ccde8['model']['change'](()=>{let _0x352932=_0x2ccde8['model']['insertContent'](_0x320ccb[0x0],_0x320ccb[0x1],_0x320ccb[0x2],_0x320ccb[0x3],{'forceDefaultExecution':!0x0});if(!_0x352932)return;_0x1c77d1['return']=_0x352932['clone']();const _0x5d3d51=_0x352932['end']['nodeBefore'],_0x53c66f=_0x2ccde8['model']['schema'];_0x5d3d51&&_0x53c66f['isBlock'](_0x5d3d51)&&!_0x53c66f['isObject'](_0x5d3d51)&&(_0x352932=_0x2ccde8['model']['createRange'](_0x352932['start'],_0x2ccde8['model']['createPositionAt'](_0x5d3d51,'end'))),this['markInsertion'](_0x352932);}),_0x1c77d1['stop']());},{'priority':'high'}),this['trackChangesCommand']=new _0x432ef2(_0x2ccde8,this['_enabledCommands']),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xc75fcf=new _0x1f0bf4(_0x2ccde8,this['_suggestions']);_0x2ccde8['commands']['add']('acceptSuggestion',_0xc75fcf),this['enableCommand']('acceptSuggestion');const _0x585426=new _0x53071d(_0x2ccde8,this['_suggestions']);_0x2ccde8['commands']['add']('discardSuggestion',_0x585426),this['enableCommand']('discardSuggestion'),_0x2ccde8['commands']['add']('acceptAllSuggestions',new _0x240242(_0x2ccde8,_0xc75fcf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2ccde8['commands']['add']('discardAllSuggestions',new _0x71b4e4(_0x2ccde8,_0x585426,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2ccde8['commands']['add']('acceptSelectedSuggestions',new _0x40b5e6(_0x2ccde8,_0xc75fcf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2ccde8['commands']['add']('discardSelectedSuggestions',new _0x22cf8f(_0x2ccde8,_0x585426,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xc4bdba=_0x2ccde8['plugins']['get']('CommentsRepository');this['listenTo'](_0xc4bdba,'addComment',(_0x511596,{threadId:_0x2a37e4})=>{const _0x43c806=this['_suggestions']['get'](_0x2a37e4);_0x43c806&&_0x43c806['commentThread']&&0x1===_0x43c806['commentThread']['length']&&this['_updateSuggestionData'](_0x2a37e4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xc4bdba,'removeComment',(_0x4e587a,{threadId:_0x32b5b9})=>{const _0x430a83=this['_suggestions']['get'](_0x32b5b9);_0x430a83&&_0x430a83['commentThread']&&!_0x430a83['commentThread']['length']&&this['_updateSuggestionData'](_0x32b5b9,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x103cfe){if(this['_adapter'])throw new _0x3a6ec5('track-changes-adapter-already-set',this);this['_adapter']=_0x103cfe;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2f9225=!0x1,toJSON:_0x1c6012=!0x1}={}){const _0x3fb2e5=[];for(const _0x53546c of this['_suggestions']['values']())_0x2f9225&&!_0x53546c['isInContent']||_0x3fb2e5['push'](_0x53546c);return _0x1c6012?_0x3fb2e5['map'](_0x1c107f=>_0x1c107f['toJSON']()):_0x3fb2e5;}['getSuggestion'](_0x6a535d){const _0x2d54e4=this['_suggestions']['get'](_0x6a535d);if(!_0x2d54e4)throw new _0x3a6ec5('track-changes-suggestion-not-found',this);return _0x2d54e4;}['hasSuggestion'](_0x16edc2){return this['_suggestions']['has'](_0x16edc2);}['addSuggestionData'](_0x1e263b){const {id:_0x12b4ad,authorId:_0x2d8e29}=_0x1e263b,[_0x1ff4e9,_0x160e35]=_0x1e263b['type']['split'](':'),_0x46e1e5=this['_suggestions']['get'](_0x12b4ad)||this['_createSuggestion'](_0x1ff4e9,_0x160e35,_0x12b4ad,_0x2d8e29);switch(this['_addThreadToSuggestion'](_0x46e1e5),this['_checkSuggestionCorrectness'](_0x46e1e5,_0x1ff4e9,_0x160e35||null,_0x2d8e29),_0x46e1e5['createdAt']=_0x1e263b['createdAt'],_0x1e263b['data']&&(_0x46e1e5['data']=_0x1e263b['data']),_0x1e263b['attributes']&&(_0x46e1e5['attributes']=_0x1e263b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x46e1e5['_saved']=!0x0),this['_suggestionState']['get'](_0x46e1e5)){case'notReady':this['_suggestionState']['set'](_0x46e1e5,'dataReady');break;case'markerReady':_0x46e1e5['isInContent']?(this['_suggestionState']['set'](_0x46e1e5,'ready'),this['fire']('suggestionLoaded',_0x46e1e5)):this['_suggestionState']['set'](_0x46e1e5,'removed');}return _0x46e1e5;}['acceptSuggestion'](_0x23ae3c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xd780a4 of _0x23ae3c['getAllAdjacentSuggestions']())_0xd780a4['accept']();});});}['discardSuggestion'](_0x45d821){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x28e8af of _0x45d821['getAllAdjacentSuggestions']())_0x28e8af['discard']();});});}['enableCommand'](_0x5e07f2,_0x35768b){const _0x1907b3=this['editor']['commands']['get'](_0x5e07f2);if(!_0x1907b3)throw new _0x3a6ec5('track-changes-command-not-found',this,{'commandName':_0x5e07f2});this['_enabledCommands']['add'](_0x1907b3),_0x35768b&&_0x1907b3['on']('execute',(_0x483cc3,_0x592c06)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||_0x592c06['length']>0x0&&_0x592c06[_0x592c06['length']-0x1]&&_0x592c06[_0x592c06['length']-0x1]['forceDefaultExecution']||(_0x35768b((..._0x436ae6)=>_0x1907b3['execute'](..._0x436ae6,{'forceDefaultExecution':!0x0}),..._0x592c06),_0x483cc3['stop']()));},{'priority':'high'});}['forceDefaultExecution'](_0x367aba){let _0x3076a4,_0xa54689;const _0x4f6b1d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3076a4=_0x367aba();}catch(_0x3fd3ad){_0xa54689=_0x3fd3ad;}return _0x4f6b1d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xa54689&&_0x3a6ec5['rethrowUnexpectedError'](_0xa54689,this),_0x3076a4;}['markInsertion'](_0xcf699b,_0x18b4f8=null,_0x4a58de={}){if(_0xcf699b['isCollapsed'])return null;const _0x371482=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5414df,meta:_0x33c00c}of this['_findSuggestions'](_0xcf699b,'insertion'))if(_0x33c00c['isOwn']){if(!_0x33c00c['isNextTo'])return _0x5414df;if(_0x18b4f8==_0x5414df['subType']){const _0x46e34e=_0x5414df['getFirstRange']();return _0x46e34e['start']['isEqual'](_0xcf699b['end'])?this['_setSuggestionRange'](_0x5414df,this['_model']['createRange'](_0xcf699b['start'],_0x46e34e['end'])):this['_setSuggestionRange'](_0x5414df,this['_model']['createRange'](_0x46e34e['start'],_0xcf699b['end'])),_0x5414df;}}const _0x239f50=_0xd9a6f1(),_0x298b0c=_0x371482['id'],_0x13a4ed=_0x18b4f8?'insertion:'+_0x18b4f8:'insertion',_0x459e90=this['_setSuggestionData']({'id':_0x239f50,'type':_0x13a4ed,'createdAt':new Date(),'authorId':_0x298b0c,'attributes':_0x4a58de});return this['_addSuggestionMarker'](_0x13a4ed,_0x239f50,_0x298b0c,_0xcf699b),_0x459e90;}['markMultiRangeInsertion'](_0xb6c7be,_0x3e3d88='multi',_0x4d5b84={}){const _0x539bb6=this['editor']['plugins']['get']('Users')['me'],_0x2e9eda=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3e3d88,'join');for(const _0x28efe5 of this['getSuggestions']())if(_0x28efe5['author']['id']==_0x539bb6['id']&&'insertion'==_0x28efe5['type']&&_0x28efe5['subType']==_0x3e3d88&&(_0x2e9eda(_0x28efe5['getRanges'](),_0xb6c7be)||_0x2e9eda(_0xb6c7be,_0x28efe5['getRanges']()))){for(const _0x3679c8 of _0xb6c7be)_0x28efe5['addRange'](_0x3679c8);return _0x28efe5;}for(const _0x236148 of _0xb6c7be)for(const {suggestion:_0xaed298,meta:_0x43fc94}of this['_findSuggestions'](_0x236148,'insertion')){if(!_0x43fc94['isOwn'])continue;let _0x1a97fd=!0x0;for(const _0x4b2aa4 of _0xaed298['getRanges']())for(const _0x360794 of _0xb6c7be)if(!_0x4b2aa4['containsRange'](_0x360794)){_0x1a97fd=!0x1;break;}if(_0x1a97fd)return _0xaed298;}const _0xe9fee5=_0xd9a6f1(),_0x5b0d14=_0x539bb6['id'],_0x57bdd4='insertion:'+_0x3e3d88,_0x4b9967=this['_setSuggestionData']({'id':_0xe9fee5,'type':_0x57bdd4,'createdAt':new Date(),'authorId':_0x5b0d14,'attributes':_0x4d5b84});for(const _0x16233a of _0xb6c7be)this['_addSuggestionMarker'](_0x57bdd4,_0xe9fee5,_0x5b0d14,_0x16233a,_0x11fe95['getMultiRangeId']());return _0x4b9967;}['markInlineFormat'](_0x4d9d20,_0x3a9aa2,_0x6a7a51=null,_0x36cf5a={}){if(_0x6a7a51=_0x6a7a51||pt(_0x3a9aa2),_0x4d9d20['isCollapsed'])return;const _0x12f1a0=this['editor']['plugins']['get']('Users')['me'],_0x3d2ff3=[];for(const {suggestion:_0x12c788,meta:_0x358deb}of this['_findSuggestions'](_0x4d9d20,'insertion'))_0x358deb['isOwn']&&!_0x358deb['isInsideObject']&&_0x3d2ff3['push'](..._0x12c788['getRanges']());const _0x1e1960=function(_0x3a8da4,_0x5025c0){const _0x42320f=[];for(const _0x3e51f0 of _0x5025c0){const _0x39bbe5=_0x3a8da4['getIntersection'](_0x3e51f0);_0x39bbe5&&_0x42320f['push'](_0x39bbe5);}return _0x42320f;}(_0x4d9d20,_0x3d2ff3),_0x3746cd=function(_0x43465,_0x31deda){const _0x2d22ae=[_0x43465];for(const _0x44f80b of _0x31deda){let _0x27e797=0x0;for(;_0x27e797<_0x2d22ae['length'];){const _0x552fe4=_0x2d22ae[_0x27e797]['getDifference'](_0x44f80b);_0x2d22ae['splice'](_0x27e797,0x1,..._0x552fe4),_0x27e797+=_0x552fe4['length'];}}return _0x2d22ae;}(_0x4d9d20,_0x3d2ff3);_0x1e1960['length']&&this['_model']['change'](()=>{for(const _0x1d13a8 of _0x1e1960){const _0x3033c3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6a7a51,'accept');this['forceDefaultExecution'](()=>_0x3033c3([_0x1d13a8],_0x3a9aa2,_0x36cf5a));}});for(const _0x449508 of _0x3746cd){let _0x46cf2d=null,_0x3e4eb7=_0x449508['start'],_0x3bd991=_0x449508['end'];for(const {suggestion:_0x5096e9,meta:_0x26ca16}of this['_findSuggestions'](_0x449508,'formatInline')){if(!_0x26ca16['isOwn'])continue;if(_0x5096e9['subType']!=_0x6a7a51)continue;const _0x3e4e72=_0x5096e9['getFirstRange']();if(_0x3e4e72['containsRange'](_0x449508,!0x0))return;_0x3e4eb7=_0x3e4eb7['isBefore'](_0x3e4e72['start'])?_0x3e4eb7:_0x3e4e72['start'],_0x3bd991=_0x3bd991['isAfter'](_0x3e4e72['end'])?_0x3bd991:_0x3e4e72['end'],_0x46cf2d?_0x3e4e72['start']['isBefore'](_0x46cf2d['getFirstRange']()['start'])?(_0x46cf2d['removeMarkers'](),_0x46cf2d=_0x5096e9):_0x5096e9['removeMarkers']():_0x46cf2d=_0x5096e9;}const _0x5a5199=this['_model']['createRange'](_0x3e4eb7,_0x3bd991);if(_0x46cf2d)this['_setSuggestionRange'](_0x46cf2d,_0x5a5199);else{const _0x4aebdd=_0xd9a6f1(),_0x356388=_0x12f1a0['id'];this['_setSuggestionData']({'id':_0x4aebdd,'type':'formatInline:'+_0x6a7a51,'data':_0x3a9aa2,'createdAt':new Date(),'authorId':_0x356388,'attributes':_0x36cf5a}),this['_addSuggestionMarker']('formatInline:'+_0x6a7a51,_0x4aebdd,_0x356388,_0x5a5199);}}}['markBlockFormat'](_0x4832a2,_0x26ab8e,_0x209b88=[],_0x42acf4=null,_0x7fdfc9={}){_0x26ab8e['formatGroupId']||(_0x26ab8e['formatGroupId']=_0x26ab8e['commandName']),_0x26ab8e['multipleBlocks']=_0x4832a2['is']('range'),_0x42acf4=_0x42acf4||pt(_0x26ab8e);const _0x50787c=_0x209b88['map'](_0xd90115=>wt(_0xd90115,this['_model'])),_0x15ef42=_0x4832a2['is']('range')?_0x4832a2:wt(_0x4832a2,this['_model']);_0x50787c['push'](_0x15ef42);let _0xa494bb=!0x0;for(const _0x1078aa of _0x50787c)if(!this['_rangeIsInLocalUserInsertion'](_0x1078aa)){_0xa494bb=!0x1;break;}if(_0xa494bb){const _0x399fc8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42acf4,'accept');return void this['forceDefaultExecution'](()=>_0x399fc8([_0x15ef42],_0x26ab8e,_0x7fdfc9));}let _0x3e3bbb=null,_0x4de924=_0x15ef42['start'],_0xe85155=_0x15ef42['end'];for(const {suggestion:_0x495c7e,meta:_0x4a997e}of this['_findSuggestions'](_0x15ef42,'formatBlock')){if(!_0x4a997e['isOwn']||_0x4a997e['isNextTo']||_0x4a997e['containsRangeInObject']||_0x4a997e['isInsideObject'])continue;if(_0x495c7e['data']['formatGroupId']!=_0x26ab8e['formatGroupId'])continue;const _0x221e47=_0x495c7e['getFirstRange']();if(_0x495c7e['subType']==_0x42acf4){if(_0x221e47['containsRange'](_0x15ef42,!0x0))return;_0x4de924=_0x4de924['isBefore'](_0x221e47['start'])?_0x4de924:_0x221e47['start'],_0xe85155=_0xe85155['isAfter'](_0x221e47['end'])?_0xe85155:_0x221e47['end'],_0x3e3bbb?_0x221e47['start']['isBefore'](_0x3e3bbb['getFirstRange']()['start'])?(_0x3e3bbb['removeMarkers'](),_0x3e3bbb=_0x495c7e):_0x495c7e['removeMarkers']():_0x3e3bbb=_0x495c7e;}else{const _0x494632=_0x15ef42['getIntersection'](_0x221e47);this['_cutOutSuggestionMarker'](_0x495c7e,_0x494632);}}const _0x1b67bc=this['editor']['plugins']['get']('Users')['me'],_0x6b1b8f=_0xd9a6f1(),_0x59879d=_0x1b67bc['id'];_0x3e3bbb?this['_setSuggestionRange'](_0x3e3bbb,this['_model']['createRange'](_0x4de924,_0xe85155)):(this['_setSuggestionData']({'id':_0x6b1b8f,'type':'formatBlock:'+_0x42acf4,'data':_0x26ab8e,'createdAt':new Date(),'authorId':_0x59879d,'attributes':_0x7fdfc9}),this['_addSuggestionMarker']('formatBlock:'+_0x42acf4,_0x6b1b8f,_0x59879d,this['_model']['createRange'](_0x4de924,_0xe85155)));}['markMultiRangeBlockFormat'](_0x347e3e,_0x50cdf6,_0x5d49cc=[],_0x2c5fb5=null,_0xe96a17={}){_0x50cdf6['formatGroupId']||(_0x50cdf6['formatGroupId']=_0x50cdf6['commandName']),_0x50cdf6['multipleBlocks']=!0x1,_0x2c5fb5=_0x2c5fb5||pt(_0x50cdf6);const _0x3b788c=_0x5d49cc['map'](_0x114263=>wt(_0x114263,this['_model'])),_0x491aee=_0x347e3e['map'](_0xf6960c=>wt(_0xf6960c,this['_model']));_0x3b788c['push'](..._0x491aee);let _0x1a30d4=!0x0;for(const _0x43876c of _0x3b788c)if(!this['_rangeIsInLocalUserInsertion'](_0x43876c)){_0x1a30d4=!0x1;break;}if(_0x1a30d4){const _0x3cee54=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c5fb5,'accept');return void this['forceDefaultExecution'](()=>_0x3cee54(_0x491aee,_0x50cdf6,_0xe96a17));}const _0x215d29=this['editor']['plugins']['get']('Users')['me'];for(const _0x1e91c4 of this['getSuggestions']()){if(_0x1e91c4['author']['id']!=_0x215d29['id'])continue;if('formatBlock'!=_0x1e91c4['type']||_0x1e91c4['data']['formatGroupId']!=_0x50cdf6['formatGroupId'])continue;const _0x495fb5=_0x1e91c4['subType']==_0x2c5fb5;for(let _0x3290c0=0x0;_0x3290c0<_0x491aee['length'];_0x3290c0++){const _0x115c0f=_0x491aee[_0x3290c0];for(const _0x3aa3b5 of _0x1e91c4['getMarkers']()){const _0x84804=_0x3aa3b5['getRange']();if(_0x115c0f['isEqual'](_0x84804)){_0x495fb5?(_0x491aee['splice'](_0x3290c0,0x1),_0x3290c0--):_0x1e91c4['removeMarker'](_0x3aa3b5['name']);break;}}}}if(0x0==_0x491aee['length'])return;const _0x5b47aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c5fb5,'join');for(const _0x1900b1 of this['getSuggestions']())if(_0x1900b1['author']['id']==_0x215d29['id']&&'formatBlock'==_0x1900b1['type']&&_0x1900b1['data']['formatGroupId']==_0x50cdf6['formatGroupId']&&_0x1900b1['subType']==_0x2c5fb5&&(_0x5b47aa(_0x1900b1['getRanges'](),_0x491aee)||_0x5b47aa(_0x491aee,_0x1900b1['getRanges']()))){for(const _0x4c1d48 of _0x491aee)_0x1900b1['addRange'](_0x4c1d48);return _0x1900b1;}const _0x312a02=_0xd9a6f1(),_0x4a2bfd=_0x215d29['id'],_0x5a53e2='formatBlock:'+_0x2c5fb5,_0x4eeca8=this['_setSuggestionData']({'id':_0x312a02,'type':_0x5a53e2,'data':_0x50cdf6,'createdAt':new Date(),'authorId':_0x4a2bfd,'attributes':_0xe96a17});for(const _0x5aa980 of _0x491aee)this['_addSuggestionMarker'](_0x5a53e2,_0x312a02,_0x4a2bfd,_0x5aa980,_0x11fe95['getMultiRangeId']());return _0x4eeca8;}['markDeletion'](_0x2c5f86,_0x242237=null,_0x1df399={}){if(_0x2c5f86['isCollapsed'])return null;const _0x1b2520=this['editor']['plugins']['get']('Users')['me'],_0xbfc867=new _0x5cdb(_0x2c5f86['start'],_0x2c5f86['end']);for(const {suggestion:_0x585ed8,meta:_0xef824d}of this['_findSuggestions'](_0xbfc867,'insertion'))if(_0xef824d['isOwn']&&!_0xef824d['isNextTo']){if(_0x585ed8['isMultiRange']){const _0x523bb2=_0x585ed8['getRanges']()['filter'](_0x1646d5=>'$graveyard'!=_0x1646d5['root']['rootName']);_0x523bb2['every'](_0x17b9ef=>_0xbfc867['containsRange'](_0x17b9ef,!0x0))&&_0x585ed8['discard']();if(_0x523bb2['some'](_0x42784d=>_0x42784d['containsRange'](_0xbfc867,!0x0))){const _0x3d73f2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x242237,'accept');return this['forceDefaultExecution'](()=>_0x3d73f2([_0xbfc867],null,_0x1df399)),null;}}else{const _0x5a11f3=_0xbfc867['getIntersection'](_0x585ed8['getFirstRange']());_0x585ed8['_onDiscard']([_0x5a11f3],null,_0x1df399);}}if(_0xbfc867['detach'](),_0xbfc867['isCollapsed']||'$graveyard'==_0xbfc867['root']['rootName'])return null;let _0x2f9485=null,_0x123e5c=_0xbfc867['start'],_0x23f11a=_0xbfc867['end'];for(const {suggestion:_0xda4e99,meta:_0x81e3d3}of this['_findSuggestions'](_0xbfc867,'deletion'))if(_0x81e3d3['isOwn']){if(_0xda4e99['isMultiRange']){let _0x5154f4=!0x0;for(const _0x56232c of _0xda4e99['getRanges']()){if(_0x56232c['containsRange'](_0xbfc867,!0x0))return _0xda4e99;_0xbfc867['containsRange'](_0x56232c)||(_0x5154f4=!0x1);}_0x5154f4&&_0xda4e99['discard']();}else{const _0x101a7d=_0xda4e99['getFirstRange']();if(_0x101a7d['containsRange'](_0xbfc867,!0x0))return _0xda4e99;_0x123e5c=_0x123e5c['isBefore'](_0x101a7d['start'])?_0x123e5c:_0x101a7d['start'],_0x23f11a=_0x23f11a['isAfter'](_0x101a7d['end'])?_0x23f11a:_0x101a7d['end'],_0x2f9485?_0x101a7d['start']['isBefore'](_0x2f9485['getFirstRange']()['start'])?(_0x2f9485['removeMarkers'](),_0x2f9485=_0xda4e99):_0xda4e99['removeMarkers']():_0x2f9485=_0xda4e99;}}if(_0x2f9485)return this['_setSuggestionRange'](_0x2f9485,this['_model']['createRange'](_0x123e5c,_0x23f11a)),_0x2f9485;{const _0x36ed90=_0xd9a6f1(),_0x45008e=this['_model']['createRange'](_0x123e5c,_0x23f11a),_0x2829b6=_0x1b2520['id'],_0x4e33b4=_0x242237?'deletion:'+_0x242237:'deletion',_0x28e4df=this['_setSuggestionData']({'id':_0x36ed90,'type':_0x4e33b4,'createdAt':new Date(),'authorId':_0x2829b6,'attributes':_0x1df399});return this['_addSuggestionMarker'](_0x4e33b4,_0x36ed90,_0x2829b6,_0x45008e),_0x28e4df;}}['markMultiRangeDeletion'](_0x5111fd,_0x4ff38c='multi',_0x2f2a07={}){const _0x499294=this['editor']['plugins']['get']('Users')['me'],_0x166779=_0x5111fd['map'](_0x30a224=>new _0x5cdb(_0x30a224['start'],_0x30a224['end'])),_0x18e0c1=new Set();for(const _0x5b48c2 of _0x166779)for(const {suggestion:_0x179cc4,meta:_0x2f53bf}of this['_findSuggestions'](_0x5b48c2,'insertion'))_0x2f53bf['isOwn']&&!_0x2f53bf['isNextTo']&&_0x18e0c1['add'](_0x179cc4);for(const _0xdd3b23 of _0x18e0c1)if(_0xdd3b23['isMultiRange']){const _0x2f5967=_0xdd3b23['getRanges']();(!_0xdd3b23['attributes']||!_0xdd3b23['attributes']['skipNestingCheck'])&&(_0x2f5967['every'](_0x15622a=>_0x166779['some'](_0x1bf5db=>_0x1bf5db['containsRange'](_0x15622a,!0x0)))&&_0xdd3b23['discard']());if(_0x166779['every'](_0x2728d1=>_0x2f5967['some'](_0x2adac9=>_0x2adac9['containsRange'](_0x2728d1,!0x0)))){const _0x2fddda=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ff38c,'accept');return this['forceDefaultExecution'](()=>_0x2fddda(_0x5111fd,null,_0x2f2a07)),null;}}else{const _0x59557b=_0xdd3b23['getFirstRange']();_0x166779['some'](_0x4d83fe=>_0x4d83fe['containsRange'](_0x59557b,!0x0))&&_0xdd3b23['discard']();if(_0x166779['every'](_0x82b90e=>_0x59557b['containsRange'](_0x82b90e,!0x0))){const _0x1437f7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ff38c,'accept');return this['forceDefaultExecution'](()=>_0x1437f7(_0x166779,null,_0x2f2a07)),null;}}const _0x13556c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ff38c,'join');let _0x376213=null;for(const _0x1a2033 of this['getSuggestions']())if(_0x1a2033['author']['id']==_0x499294['id']&&_0x1a2033['isInContent']&&'deletion'==_0x1a2033['type']&&_0x1a2033['subType']==_0x4ff38c&&(_0x13556c(_0x1a2033['getRanges'](),_0x166779)||_0x13556c(_0x166779,_0x1a2033['getRanges']()))){if(_0x376213){if(_0x1a2033['commentThread']&&_0x1a2033['commentThread']['length'])continue;for(const _0xdf429e of _0x1a2033['getRanges']())_0x376213['isIntersectingWithRange'](_0xdf429e)||_0x376213['addRange'](_0xdf429e);_0x1a2033['removeMarkers']();}else{_0x376213=_0x1a2033;for(const _0x800231 of _0x166779)_0x1a2033['isIntersectingWithRange'](_0x800231)||_0x1a2033['addRange'](_0x800231);}}if(_0x376213)return _0x376213;_0x18e0c1['clear']();for(const _0x40eb15 of _0x166779)for(const {suggestion:_0x230ae0,meta:_0x1541fd}of this['_findSuggestions'](_0x40eb15,'deletion'))_0x1541fd['isOwn']&&_0x18e0c1['add'](_0x230ae0);for(const _0x4d3443 of _0x18e0c1){const _0x342d4c=_0x4d3443['getRanges']();if(!_0x2f2a07||!_0x2f2a07['skipNestingCheck']){if(_0x166779['every'](_0x428884=>_0x342d4c['some'](_0x236b33=>_0x236b33['containsRange'](_0x428884,!0x0))))return _0x4d3443;}(!_0x4d3443['attributes']||!_0x4d3443['attributes']['skipNestingCheck'])&&(_0x342d4c['every'](_0x4580aa=>_0x166779['some'](_0x4378e0=>_0x4378e0['containsRange'](_0x4580aa,!0x0)))&&_0x4d3443['discard']());}const _0x423862=_0xd9a6f1(),_0x12f715=_0x499294['id'],_0x68696b='deletion:'+_0x4ff38c,_0xee6078=this['_setSuggestionData']({'id':_0x423862,'type':_0x68696b,'createdAt':new Date(),'authorId':_0x12f715,'attributes':_0x2f2a07});for(const _0x315cf9 of _0x166779)_0x315cf9['detach'](),_0x315cf9['isCollapsed']||'$graveyard'==_0x315cf9['root']['rootName']||this['_addSuggestionMarker'](_0x68696b,_0x423862,_0x12f715,_0x315cf9,_0x11fe95['getMultiRangeId']());return _0xee6078;}['_setSuggestionRange'](_0x454701,_0x37817e){const _0x51a1d2=_0x454701['getFirstMarker']();this['_model']['change'](_0x5e4b7a=>{_0x5e4b7a['updateMarker'](_0x51a1d2,{'range':_0x37817e});});}['_addThreadToSuggestion'](_0xe765d6){const _0x30dbd6=_0xe765d6['id'],_0x51515e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x30dbd6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x51515e,'threadId':_0x30dbd6});const _0x537f4f=this['_commentsRepository']['getCommentThread'](_0x30dbd6);_0x537f4f['unbind']('isRemovable'),_0x537f4f['isRemovable']=!0x1,_0xe765d6['commentThread']=_0x537f4f;}['_checkSuggestionCorrectness'](_0x35efa5,_0x334d58,_0xa4e1d6,_0x5ac2a5){if(_0x35efa5['type']!=_0x334d58||_0x35efa5['subType']!=_0xa4e1d6||_0x35efa5['author']['id']!=_0x5ac2a5)throw this['editor']['isReadOnly']=!0x0,new _0x3a6ec5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x211b94,_0x422d21){const _0x1a34e3=_0x211b94['getFirstRange']();if(_0x422d21['isEqual'](_0x1a34e3))_0x211b94['removeMarkers']();else{if(_0x1a34e3['containsRange'](_0x422d21)){const _0x172191=this['_model']['createPositionAt'](_0x422d21['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x211b94,this['_model']['createRange'](_0x1a34e3['start'],_0x172191));const _0x24dfbe=_0xd9a6f1(),_0x34d76c=_0x211b94['author']['id'],_0x211bf7=_0x211b94['type']+':'+_0x211b94['subType'];this['_setSuggestionData']({'id':_0x24dfbe,'type':_0x211bf7,'createdAt':new Date(),'authorId':_0x34d76c,'data':_0x211b94['data'],'attributes':_0x211b94['attributes']});const _0x62aacd=this['_model']['createPositionAt'](_0x422d21['end']['parent'],'after'),_0x1de402=this['_model']['createRange'](_0x62aacd,_0x1a34e3['end']);this['_addSuggestionMarker'](_0x211bf7,_0x24dfbe,_0x34d76c,_0x1de402);}else{if(_0x1a34e3['containsPosition'](_0x422d21['start'])){const _0x51f3b3=this['_model']['createPositionAt'](_0x422d21['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x211b94,this['_model']['createRange'](_0x1a34e3['start'],_0x51f3b3));}else{const _0x1ec924=this['_model']['createPositionAt'](_0x422d21['end']['parent'],'after');this['_setSuggestionRange'](_0x211b94,this['_model']['createRange'](_0x1ec924,_0x1a34e3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1b59e1){for(const {suggestion:_0x30934b,meta:_0x3c6b4f}of this['_findSuggestions'](_0x1b59e1,'insertion')){if(!_0x3c6b4f['isOwn'])continue;const _0x333efc=_0x30934b['getRanges']();for(const _0x421270 of _0x333efc)if(!_0x1b59e1['getDifference'](_0x421270)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1734d9){const _0x2d5baa=this['editor']['plugins']['get']('Users')['getUser'](_0x1734d9);if(!_0x2d5baa)throw new _0x3a6ec5('track-changes-user-not-found',this);return _0x2d5baa;}['_createSuggestion'](_0xe02d2,_0x142e7f,_0x279bf0,_0x16bc48){const _0x5b997b=this['_getAuthorFromId'](_0x16bc48),_0x5c0e73=this['_suggestionFactory']['buildSuggestion'](_0xe02d2,_0x142e7f,_0x279bf0,_0x5b997b,_0x525161=>this['_updateSuggestionData'](_0x279bf0,{'attributes':_0x525161}));return this['listenTo'](_0x5c0e73,'accept',()=>{this['_updateSuggestionData'](_0x279bf0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5c0e73,'discard',()=>{this['_updateSuggestionData'](_0x279bf0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x279bf0,_0x5c0e73),this['_suggestionState']['set'](_0x5c0e73,'notReady'),_0x5c0e73;}['_splitMarkerName'](_0x545665){const _0x154b5d=_0x545665['split'](':');return{'group':_0x154b5d[0x0],'type':_0x154b5d[0x1],'subType':_0x154b5d['length']>=0x5?_0x154b5d[0x2]:null,'id':_0x154b5d['length']<0x5?_0x154b5d[0x2]:_0x154b5d[0x3],'authorId':_0x154b5d['length']<0x5?_0x154b5d[0x3]:_0x154b5d[0x4],'markerCount':0x6==_0x154b5d['length']?_0x154b5d[0x5]:null};}['_breakSuggestionMarker'](_0x308dde,_0xe35d28,_0x457da4){const _0x38021d=_0x308dde['getFirstRange'](),_0x180c71=_0x38021d['start'],_0x215032=_0x38021d['end'];this['_setSuggestionRange'](_0x308dde,this['_model']['createRange'](_0x180c71,_0xe35d28));const _0x5e49b3=_0xd9a6f1(),_0x235155=_0x308dde['author']['id'],_0x2e4589=_0x308dde['type']+(_0x308dde['subType']?':'+_0x308dde['subType']:'');this['_setSuggestionData']({'id':_0x5e49b3,'type':_0x2e4589,'createdAt':new Date(),'authorId':_0x235155,'originalSuggestionId':_0x308dde['id'],'data':_0x308dde['data']}),'formatBlock'==_0x308dde['type']&&(_0x457da4=this['_model']['createPositionBefore'](_0x457da4['parent'])),this['_addSuggestionMarker'](_0x2e4589,_0x5e49b3,_0x235155,this['_model']['createRange'](_0x457da4,_0x215032));}['_findSuggestions'](_0xa1e439,_0x987da3=null){const _0x5da698=[],_0x515fa6=this['_model']['schema'],_0x5af483=this['editor']['plugins']['get']('Users')['me'];for(const _0x40b6e4 of this['getSuggestions']())if(_0x40b6e4['isInContent']&&(!_0x987da3||_0x40b6e4['type']==_0x987da3))for(const _0x39cb33 of _0x40b6e4['getRanges']()){const _0x3286ab=_0xa1e439['start']['isEqual'](_0x39cb33['end'])||_0xa1e439['end']['isEqual'](_0x39cb33['start']);if(_0x3286ab||_0xa1e439['getIntersection'](_0x39cb33)){const _0x5688ee=_0xa1e439['containsRange'](_0x39cb33)&&lt(_0x515fa6,_0x39cb33['start'],_0xa1e439),_0x40a3f4=_0x39cb33['containsRange'](_0xa1e439)&&lt(_0x515fa6,_0xa1e439['start'],_0x39cb33);_0x5da698['push']({'suggestion':_0x40b6e4,'meta':{'isOwn':_0x5af483==_0x40b6e4['author'],'isNextTo':_0x3286ab,'isInsideObject':_0x5688ee,'containsRangeInObject':_0x40a3f4}});break;}}return _0x5da698;}['_addSuggestionMarker'](_0xc60fe7,_0x3a270f,_0x5c846f,_0x438aa9,_0x8952fc=null){this['_model']['change'](_0x256f86=>{let _0x38af61='suggestion:'+_0xc60fe7+':'+_0x3a270f+':'+_0x5c846f;_0x8952fc&&(_0x38af61=_0x38af61+':'+_0x8952fc),_0x256f86['addMarker'](_0x38af61,{'range':_0x438aa9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3aaa2e){const _0x212b65=_0x3aaa2e['previous'],_0x1257e3=_0x3aaa2e['next'];_0x3aaa2e['previous']=null,null!=_0x212b65&&(_0x212b65['next']=null),_0x3aaa2e['next']=null,null!=_0x1257e3&&(_0x1257e3['previous']=null),'ready'==this['_suggestionState']['get'](_0x3aaa2e)&&(this['_suggestionState']['set'](_0x3aaa2e,'removed'),this['fire']('suggestionUnloaded',_0x3aaa2e,_0x212b65,_0x1257e3));}['_setSuggestionData'](_0x2eb81f){const _0x2bba74=_0x2eb81f['id'],_0x14e7e0=this['addSuggestionData'](_0x2eb81f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a27b4=this['editor']['plugins']['get']('PendingActions'),_0x3c043c=_0x14e7e0['hasComments'],_0x46a6b7=_0x14e7e0['subType']?_0x14e7e0['type']+':'+_0x14e7e0['subType']:_0x14e7e0['type'],t=this['editor']['locale']['t'],_0x465349=_0x2a27b4['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'})),_0x17a4ff={'id':_0x2bba74,'type':_0x46a6b7,'hasComments':_0x3c043c,'data':_0x2eb81f['data']||null,'originalSuggestionId':_0x2eb81f['originalSuggestionId']||null,'attributes':_0x14e7e0['attributes']};this['_adapter']['addSuggestion'](_0x17a4ff)['then'](_0x43d02d=>{_0x14e7e0['_saved']=!0x0,_0x2a27b4['remove'](_0x465349),_0x43d02d&&_0x43d02d['createdAt']&&(this['_suggestions']['get'](_0x2bba74)['createdAt']=_0x43d02d['createdAt']);});}return _0x14e7e0;}['_updateSuggestionData'](_0x2afc56,_0x505465){const _0x2c641f=this['editor']['plugins']['get']('PendingActions'),_0x37a0ca=this['_suggestions']['get'](_0x2afc56);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x37a0ca['_saved']){const t=this['editor']['locale']['t'],_0x2c39a3=_0x2c641f['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));this['_adapter']['updateSuggestion'](_0x2afc56,_0x505465)['then'](()=>{_0x2c641f['remove'](_0x2c39a3);});}else _0x37a0ca['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2afc56,_0x505465);});}}['_getSuggestionData'](_0x3298d0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3a6ec5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3298d0);}['_handleNewSuggestionMarker'](_0x1b2e41){const {id:_0x3c3810,type:_0x57abd3,subType:_0x4601aa,authorId:_0x91c5f2}=this['_splitMarkerName'](_0x1b2e41),_0x3dc213=this['_suggestions']['get'](_0x3c3810)||this['_createSuggestion'](_0x57abd3,_0x4601aa,_0x3c3810,_0x91c5f2);switch(this['_checkSuggestionCorrectness'](_0x3dc213,_0x57abd3,_0x4601aa,_0x91c5f2),this['_suggestionState']['get'](_0x3dc213)){case'notReady':this['_getSuggestionData'](_0x3c3810)['then'](_0x981d0e=>{let _0x25c39b=Promise['resolve']();_0x981d0e['hasComments']&&(_0x25c39b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3c3810})),_0x25c39b['then'](()=>{this['addSuggestionData'](_0x981d0e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3dc213,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3c3810,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3dc213,'ready'),this['fire']('suggestionLoaded',_0x3dc213);break;case'ready':this['fire']('suggestionChanged',_0x3dc213);}_0x3dc213['addMarkerName'](_0x1b2e41),this['_refreshSuggestionsChain'](_0x3dc213);}['_refreshSuggestionsChain'](_0x493643){if(_0x493643['isMultiRange'])return;let _0x474e7b=!0x0,_0x1dfad5=!0x0;for(const _0x338114 of this['getSuggestions']()){if(_0x338114['isMultiRange'])continue;if(_0x338114==_0x493643||!_0x338114['isInContent'])continue;if(_0x338114['author']['id']!=_0x493643['author']['id'])continue;const _0x22854f=this['_suggestionFactory']['getSuggestionCallback'](_0x493643['type'],_0x493643['subType'],'chain'),_0x14abac=this['_suggestionFactory']['getSuggestionCallback'](_0x338114['type'],_0x338114['subType'],'chain'),_0x4ef21c=_0x22854f(_0x493643,_0x338114),_0x335438=_0x14abac(_0x493643,_0x338114);_0x4ef21c&&_0x335438&&(_0x4ef21c[0x1]['commentThread']&&_0x4ef21c[0x1]['commentThread']['length']||(_0x4ef21c[0x0]['next']=_0x4ef21c[0x1],_0x4ef21c[0x1]['previous']=_0x4ef21c[0x0],_0x4ef21c[0x0]==_0x493643?_0x1dfad5=!0x1:_0x474e7b=!0x1));}_0x493643['previous']&&_0x474e7b&&(_0x493643['previous']['next']=null,_0x493643['previous']=null),_0x493643['next']&&_0x1dfad5&&(_0x493643['next']['previous']=null,_0x493643['next']=null);}['_joinWithAdjacentSuggestions'](_0x5b7ad0){for(const _0x4b8bf7 of this['_suggestions']['values']()){if(_0x4b8bf7==_0x5b7ad0||!_0x4b8bf7['isInContent'])continue;if(_0x4b8bf7['type']!=_0x5b7ad0['type']||_0x4b8bf7['author']['id']!=_0x5b7ad0['author']['id']||_0x4b8bf7['subType']!=_0x5b7ad0['subType'])continue;const _0x2550ab=this['_suggestionFactory']['getSuggestionCallback'](_0x5b7ad0['type'],_0x5b7ad0['subType'],'join');if(_0x2550ab(_0x4b8bf7['getRanges'](),_0x5b7ad0['getRanges']())){if(_0x5b7ad0['commentThread']&&_0x5b7ad0['commentThread']['length'])continue;return this['_joinSuggestions'](_0x4b8bf7,_0x5b7ad0),!0x0;}if(_0x2550ab(_0x5b7ad0['getRanges'](),_0x4b8bf7['getRanges']())){if(_0x4b8bf7['commentThread']&&_0x4b8bf7['commentThread']['length'])continue;return this['_joinSuggestions'](_0x5b7ad0,_0x4b8bf7),!0x0;}}return!0x1;}['_joinSuggestions'](_0x5da2ce,_0xbd5439){if(_0x5da2ce['isMultiRange'])for(const _0x1d5505 of _0xbd5439['getRanges']())_0x5da2ce['addRange'](_0x1d5505);else{const _0x5c4af0=_0xbd5439['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5da2ce,this['_model']['createRange'](_0x5da2ce['getFirstRange']()['start'],_0x5c4af0));}_0xbd5439['removeMarkers']();}}_0x5d0173(p,_0x16d268);class gt{constructor(_0x29cbd6){this['_editor']=_0x29cbd6,this['_model']=_0x29cbd6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2c131c,_0x25bec6,_0x10c8bd,_0x5c498f,_0x44736c){return new _0x11fe95(this['_model'],{'type':_0x2c131c,'subType':_0x25bec6,'id':_0x10c8bd,'author':_0x5c498f,'onAttributesChange':_0x44736c,'onAccept':(..._0x43ccaa)=>this['getSuggestionCallback'](_0x2c131c,_0x25bec6,'accept')(..._0x43ccaa),'onDiscard':(..._0x4b148b)=>this['getSuggestionCallback'](_0x2c131c,_0x25bec6,'discard')(..._0x4b148b)});}['registerCustomCallback'](_0x424c86,_0x858512,_0x310ad7,_0x7275fe){const _0x2c2991=_0x424c86+':'+_0x858512+':'+_0x310ad7;this['_customCallbacks']['set'](_0x2c2991,_0x7275fe);}['getSuggestionCallback'](_0x3cfa9c,_0x2e9dbc,_0x4990e2){const _0x44bdfa=_0x3cfa9c+':'+_0x2e9dbc+':'+_0x4990e2;return this['_customCallbacks']['get'](_0x44bdfa)||this['_defaultCallbacks']['get'](_0x3cfa9c+':'+_0x4990e2);}['_registerDefaultCallbacks'](){const _0x1927a8=()=>{},_0x2623b5=_0x25fbf3=>{_0x25fbf3['sort']((_0x46efc4,_0x34dabb)=>_0x46efc4['start']['isBefore'](_0x34dabb['start'])?0x1:-0x1),this['_model']['change'](_0x3f0fce=>{for(const _0x335369 of _0x25fbf3){let _0x4003a7;_0x4003a7=_0x335369['end']['isAtEnd']&&_0x335369['end']['parent']==_0x335369['start']['nodeAfter']?_0x3f0fce['createSelection'](_0x335369['start']['nodeAfter'],'on'):_0x3f0fce['createSelection'](_0x335369),this['_model']['deleteContent'](_0x4003a7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x595a4b=(_0x5f5097,_0x430e4d)=>{this['_model']['change'](_0x3fce2f=>{const {commandName:_0x3654cb,commandParams:_0x376ee8=[]}=_0x430e4d,_0x95feba=_0x5f5097[0x0];if('$graveyard'==_0x95feba['root']['rootName'])return;const _0x5c2bbf=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x13405a=>_0x5cdb['fromRange'](_0x13405a));dt(_0x95feba)?_0x3fce2f['setSelection'](this['_model']['createRange'](_0x95feba['end'])):_0x3fce2f['setSelection'](_0x95feba);for(const _0x380816 of this['_editor']['commands']['commands']())_0x380816['refresh']();_0x376ee8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3654cb,..._0x376ee8);const _0xc207a8=_0x5c2bbf['filter'](_0x5f6dd0=>'$graveyard'!=_0x5f6dd0['root']['rootName']);_0xc207a8['length']>0x0&&_0x3fce2f['setSelection'](_0xc207a8);for(const _0x2078bd of _0x5c2bbf)_0x2078bd['detach']();});},_0x241fd4=(_0x45644b,_0x5b2456)=>0x1==_0x45644b['length']&&0x1==_0x5b2456['length']&&_0x45644b[0x0]['end']['isEqual'](_0x5b2456[0x0]['start']),_0x278314=(_0x3d516f,_0x1aac0b)=>yt(_0x3d516f,_0x1aac0b,this['_model'])?[_0x3d516f,_0x1aac0b]:yt(_0x1aac0b,_0x3d516f,this['_model'])?[_0x1aac0b,_0x3d516f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1927a8),this['_defaultCallbacks']['set']('insertion:discard',_0x2623b5),this['_defaultCallbacks']['set']('insertion:join',_0x241fd4),this['_defaultCallbacks']['set']('insertion:chain',_0x278314),this['_defaultCallbacks']['set']('deletion:accept',_0x2623b5),this['_defaultCallbacks']['set']('deletion:discard',_0x1927a8),this['_defaultCallbacks']['set']('deletion:join',_0x241fd4),this['_defaultCallbacks']['set']('deletion:chain',_0x278314),this['_defaultCallbacks']['set']('formatInline:accept',_0x595a4b),this['_defaultCallbacks']['set']('formatInline:discard',_0x1927a8),this['_defaultCallbacks']['set']('formatInline:join',_0x241fd4),this['_defaultCallbacks']['set']('formatInline:chain',_0x1927a8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x595a4b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1927a8),this['_defaultCallbacks']['set']('formatBlock:join',_0x241fd4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1927a8);}}function lt(_0x59f1ef,_0xd7bffb,_0x438b21){for(const _0x424500 of _0xd7bffb['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x424500['root']==_0x424500)return!0x1;if(!_0x438b21['containsItem'](_0x424500))return!0x1;if(_0x59f1ef['isObject'](_0x424500)||_0x59f1ef['isLimit'](_0x424500))return!0x0;}}function dt(_0xa677b9){return _0xa677b9['end']['parent']==_0xa677b9['start']['nodeAfter']&&_0xa677b9['end']['isAtStart'];}function mt(_0x185337,_0x367409,_0x22b55f,_0x4ba0e8){const _0x4969e6=_0x572aff=>!_0x572aff['item']['is']('textProxy')&&!_0x4ba0e8['isObject'](_0x572aff['item']),_0x3c8457=_0x185337['start']['getLastMatchingPosition'](_0x4969e6),_0x549587=_0x185337['end']['getLastMatchingPosition'](_0x4969e6,{'direction':'backward'});return(!_0x185337['start']['isEqual'](_0x3c8457)||!_0x185337['end']['isEqual'](_0x549587))&&(_0x3c8457['isBefore'](_0x549587)?_0x22b55f['updateMarker'](_0x367409,{'range':_0x22b55f['createRange'](_0x3c8457,_0x549587)}):_0x22b55f['removeMarker'](_0x367409),!0x0);}function pt(_0x1457a3){return ft(_0x1457a3);}function kt(_0x2f8c7c){const _0x57cf43=_0x2f8c7c['start']['nodeAfter'];return _0x57cf43&&_0x57cf43['is']('element');}function wt(_0x2f71f3,_0x34630e){const _0x49e2b2=_0x34630e['schema']['isObject'](_0x2f71f3)||_0x34630e['schema']['isSelectable'](_0x2f71f3);return _0x34630e['createRange'](_0x34630e['createPositionAt'](_0x2f71f3,'before'),_0x49e2b2?_0x34630e['createPositionAfter'](_0x2f71f3):_0x34630e['createPositionAt'](_0x2f71f3,'end'));}function yt(_0x2a9922,_0x2a16b8,_0x1d275e){const _0x3fc574=_0x2a9922['getFirstRange'](),_0x3bb58d=_0x2a16b8['getFirstRange']();if(_0x3fc574['end']['isEqual'](_0x3bb58d['start']))return!0x0;if(_0x2a9922['type']!=_0x2a16b8['type'])return!0x1;if(!_0x3fc574['end']['isTouching'](_0x3bb58d['start']))return!0x1;const _0xd57c0f=_0x1d275e['createRange'](_0x3fc574['end'],_0x3bb58d['start'])['getWalker']();for(const _0x59d7f9 of _0xd57c0f)if(['elementStart','elementEnd']['includes'](_0x59d7f9['type'])&&_0x1d275e['schema']['isLimit'](_0x59d7f9['item']))return!0x1;return!0x0;}
23
+ const _0x1bbd=['_setSuggestionData','length','refresh','plugins','markerReady','_getSuggestionData','buildSuggestion','track-changes-user-not-found','commandName','isOwn','createPositionAt','includes','PENDING_ACTION_SUGGESTION','marker-count','isBefore','_editor','markBlockFormat','isIntersectingWithRange','formatBlock:accept','_rangeIsInLocalUserInsertion','dataReady','low','skipNestingCheck','addSuggestionData','suggestion','selection','addHighlight','formatInline','deletion:','root','return','trackChanges','getMarkers','subType','type','updateMarker','insertion:','createPositionAfter','unbind','containsRangeInObject','element','values','mapper','_getAuthorFromId','getCustomProperty','deletion','markMultiRangeInsertion','_suggestions','registerCustomCallback','change','then','editing','showSuggestionHighlights','isNextTo','notReady','fromCharCode','init','conversion','markInsertion','setTo','head','createSelection','isObject','markMultiRangeBlockFormat','ready','discardAllSuggestions','splice','_handleNewSuggestionMarker','stop','containsRange','name','_findSuggestions','ck-suggestion-marker--active','clear','removed','howMany','markerToData','adapter','formatBlock','position','suggestionChanged','_refreshSuggestionsChain','isTouching','insert','removeClass','join','push','addSuggestion','range','editingDowncast','PendingActions','fromRange','data','getCommentThread','editor','isAtStart','getItems','formatGroupId','clone','rejected','getChangedMarkers','getIntersection','_descriptionFactory','getSuggestions','markInlineFormat','createRange','isLocal','hasComments','isAfter','_customCallbacks','_createSuggestion','deletion:join','config','suggestion:','getAttribute','originalSuggestionId','collaboration.channelId','parent','discard','_joinWithAdjacentSuggestions','getFirstRange','markDeletion','suggestionUnloaded','isRemovable','open','getNearestSelectionRange','enableCommand','addMarker:suggestion:formatBlock','createRangeIn','track-changes-adapter-missing-getsuggestion','discardSelectedSuggestions','removeMarker:suggestion:formatBlock','accept','model','after','batch','ck-suggestion-marker','map','track-changes-adapter-already-set','createdAt','elementToElement','TrackChangesEditing','formatInline:','split','track-changes-suggestion-data-mismatch','activeMarkers','end','markerToHighlight','_setSuggestionRange','_suggestionState','document','acceptSuggestion','getAncestors','for','before','_commentsRepository','containsItem','add','_checkSuggestionCorrectness','fetchCommentThread','containsPosition','elementStart','markers','Users','forceDefaultExecution','applyOperation','createPositionBefore','isInContent','track-changes-command-not-found','commentThread','_onDiscard','_addSuggestionMarker','acceptSelectedSuggestions','insertion:discard','fire','suggestion-type','CommentsRepository','execute','pluginName','nodeBefore','_updateSuggestionData','isCollapsed','addClass','_cutOutSuggestionMarker','getSuggestion','markMultiRangeDeletion','removeAttribute','updateSuggestion','getRanges','oldRange','formatBlock:chain','value','next','previous','_enabledCommands','addComment','some','targetPosition','formatBlock:','schema','writer','hasCommentThread','multi','_saved','isEqual','_removeSuggestion','removeMarker','data-suggestion','isDocumentOperation','_adapter','dataToMarker','options','change:data','track-changes-suggestion-not-found','nodeAfter','createElement','commands','consume','addMarkerName','isLimit','detach','listenTo','from','filter','markerNameToElements','enableReadOnlyMode','get','high','addMarker','start','differ','getShiftedBy','getFirstMarker','setSelection','_isForcedDefaultExecutionBlock','requires','discardSuggestion','getAllAdjacentSuggestions','getMultiRangeId','isInsideObject','insertContent','isUndo','consumable','_defaultCallbacks','getDifference','insertion:chain','attributes','getWalker','_suggestionFactory','change:activeMarkers','acceptAllSuggestions','newRange','every','_registerDefaultCallbacks','toJSON','removeComment','registerPostFixer','multipleBlocks','remove','addRange','item','author','suggestionLoaded','deletion:accept','textProxy','getSuggestionCallback','markerName','dataDowncast','rootName','sort','trackChangesCommand','_joinSuggestions','formatBlock:discard','removeMarkers','bindElementToMarker','upcast','hasSuggestion','$graveyard','isMultiRange','move','isSelectable','rethrowUnexpectedError','change:_saved','_model','insertion','ck-suggestion-marker-formatBlock','size','documentSelection','has','formatInline:join','deleteContent','locale','toViewElement','_breakSuggestionMarker','isAtEnd','_splitMarkerName','getChanges','moveTargetPosition','highest','set','forward','formatInline:accept'];(function(_0x3fd57b,_0x1bbd85){const _0x27f9e0=function(_0xad268a){while(--_0xad268a){_0x3fd57b['push'](_0x3fd57b['shift']());}};_0x27f9e0(++_0x1bbd85);}(_0x1bbd,0x170));const _0x27f9=function(_0x3fd57b,_0x1bbd85){_0x3fd57b=_0x3fd57b-0x0;let _0x27f9e0=_0x1bbd[_0x3fd57b];return _0x27f9e0;};import{Plugin as _0x19a45c,PendingActions as _0x173c9e}from'ckeditor5/src/core';import{LiveRange as _0xdaaa0f}from'ckeditor5/src/engine';import{CKEditorError as _0x38ab46,uid as _0x322ea4,priorities as _0x505c8c,EmitterMixin as _0x4f6dcf,mix as _0x4b58ec}from'ckeditor5/src/utils';import{toWidget as _0x228704}from'ckeditor5/src/widget';import{Users as _0x4c5634}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a84ff from'./commands/trackchangescommand';import _0x45073c from'./commands/acceptsuggestioncommand';import _0x5541a8 from'./commands/discardsuggestioncommand';import _0x262ddd from'./commands/acceptallsuggestionscommand';import _0x47cd3d from'./commands/acceptselectedsuggestionscommand';import _0x17b9cb from'./commands/discardallsuggestionscommand';import _0x33f42e from'./commands/discardselectedsuggestionscommand';import _0xfe1c55 from'./suggestion';import _0x5e999a from'./suggestiondescriptionfactory';import _0x54a323 from'./integrations/alignment';import _0x160b6b from'./integrations/basicstyles';import _0x541c5e from'./integrations/blockquote';import _0x55007e from'./integrations/ckbox';import _0x272446 from'./integrations/codeblock';import _0x1ddd73 from'./integrations/comments';import _0x3cc51f from'./integrations/deletecommand';import _0x436670 from'./integrations/entercommand';import _0x3afc35 from'./integrations/font';import _0x413da3 from'./integrations/heading';import _0x22b391 from'./integrations/highlight';import _0x2319ef from'./integrations/horizontalline';import _0x1f15bc from'./integrations/htmlembed';import _0x48bf6f from'./integrations/image';import _0x18d3f4 from'./integrations/indent';import _0x597831 from'./integrations/inputcommand';import _0x237a71 from'./integrations/link';import _0x8c9653 from'./integrations/list';import _0x56e41c from'./integrations/mediaembed';import _0x3696cb from'./integrations/mention';import _0x368f33 from'./integrations/pagebreak';import _0x409cf3 from'./integrations/paragraph';import _0x4b61cf from'./integrations/removeformat';import _0x29e562 from'./integrations/restrictededitingmode';import _0x399b00 from'./integrations/shiftentercommand';import _0x4ef2e7 from'./integrations/standardeditingmode';import _0x2f645b from'./integrations/table';import _0x56bfda from'./integrations/tablemergesplit';import _0x1c86a4 from'./integrations/tableheadings';import _0x4deea9 from'./integrations/tableclipboard';import _0x1a94a2 from'./integrations/title';import _0x598515 from'./integrations/undo';import _0x437ad9 from'./utils/hashobject.js';import{getTranslation as _0x1f9598}from'./utils/common-translations';export default class d extends _0x19a45c{static get[_0x27f9('0xa9')](){return[_0x27f9('0x6e'),_0x4c5634,_0x173c9e,_0x54a323,_0x160b6b,_0x541c5e,_0x55007e,_0x272446,_0x1ddd73,_0x3cc51f,_0x436670,_0x3afc35,_0x413da3,_0x22b391,_0x2319ef,_0x1f15bc,_0x48bf6f,_0x18d3f4,_0x597831,_0x237a71,_0x8c9653,_0x56e41c,_0x3696cb,_0x368f33,_0x409cf3,_0x4b61cf,_0x29e562,_0x399b00,_0x4ef2e7,_0x2f645b,_0x56bfda,_0x1c86a4,_0x4deea9,_0x1a94a2,_0x598515];}static get[_0x27f9('0x70')](){return _0x27f9('0x4b');}constructor(_0x1de651){function _0xd57458(_0x1e298b){return _0x1e298b[_0x27f9('0x47')](_0x55e06e=>String[_0x27f9('0x123')](_0x55e06e))[_0x27f9('0x13')]('');}super(_0x1de651),this[_0x27f9('0xe9')]('activeMarkers',[]),this['on'](_0x27f9('0xb7'),(_0x33b29b,_0x10e2ec,_0x29186a,_0x278c4b)=>{this['_model'][_0x27f9('0x11d')](()=>{for(const _0x5899b2 of[..._0x278c4b,..._0x29186a])this[_0x27f9('0xd9')][_0x27f9('0x60')]['has'](_0x5899b2)&&_0x1de651[_0x27f9('0x11f')]['reconvertMarker'](_0x5899b2);});}),this[_0x27f9('0x24')]=new _0x5e999a(this[_0x27f9('0x1c')]['model'][_0x27f9('0x85')],this[_0x27f9('0x1c')][_0x27f9('0xe1')]),this[_0x27f9('0x8f')]=null,this['_suggestionFactory']=new dt(this[_0x27f9('0x1c')]),this[_0x27f9('0x11b')]=new Map(),this[_0x27f9('0x59')]=_0x1de651['plugins'][_0x27f9('0xa0')]('CommentsRepository'),this[_0x27f9('0x80')]=new Set(),this[_0x27f9('0xd9')]=this[_0x27f9('0x1c')][_0x27f9('0x43')],this[_0x27f9('0x53')]=new WeakMap(),this[_0x27f9('0xa8')]=!0x1,this[_0xd57458([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xd57458([0x34,0x30,0x34,0x34,0x31,0x32,0x35,0x38]);}[_0x27f9('0x124')](){const _0x277d39=this['editor'];_0x277d39[_0x27f9('0x125')][_0x27f9('0x57')](_0x27f9('0x17'))[_0x27f9('0x51')]({'model':_0x27f9('0x104'),'view':_0x347111=>{const {id:_0x198ba4,type:_0x31f1f4}=this[_0x27f9('0xe5')](_0x347111[_0x27f9('0xc8')]),_0xb786a4=[_0x27f9('0x46'),'ck-suggestion-marker-'+_0x31f1f4];let _0x5f0b89=0xbb8;return this[_0x27f9('0x4f')][_0x27f9('0xf7')](_0x347111[_0x27f9('0xc8')])&&(_0xb786a4[_0x27f9('0x14')](_0x27f9('0x6')),_0x5f0b89=0xbc2),_0x27f9('0x119')==_0x31f1f4&&(_0x5f0b89+=0x5),{'classes':_0xb786a4,'attributes':{'data-suggestion':_0x198ba4},'priority':_0x5f0b89};}}),_0x277d39[_0x27f9('0x125')][_0x27f9('0x57')](_0x27f9('0xc9'))[_0x27f9('0x5b')](_0xe6e84c=>{_0xe6e84c['on']('addMarker:suggestion',(_0x56208d,_0x1f56e6,_0x1c923c)=>{if(!_0x1c923c['options'][_0x27f9('0x120')])return;const _0x4f1f6e=_0x1f56e6[_0x27f9('0xc2')];if(!_0x4f1f6e)return;const _0x44f7ab=_0x1c923c[_0x27f9('0x116')][_0x27f9('0xe2')](_0x4f1f6e);_0x277d39[_0x27f9('0x43')][_0x27f9('0x85')]['isObject'](_0x4f1f6e)&&_0x44f7ab&&!_0x44f7ab[_0x27f9('0x118')]('widget')&&_0x44f7ab['is']('containerElement')&&_0x228704(_0x44f7ab,_0x1c923c['writer']);},{'priority':_0x27f9('0xa1')});}),_0x277d39['conversion']['for'](_0x27f9('0xc9'))[_0x27f9('0x51')]({'model':_0x27f9('0x104'),'view':(_0x7f22ad,_0x39edc6)=>{if(!_0x39edc6['options'][_0x27f9('0x120')])return null;const {type:_0x2106ac}=this[_0x27f9('0xe5')](_0x7f22ad['markerName']);return{'classes':[_0x27f9('0x46'),'ck-suggestion-marker-'+_0x2106ac],'priority':0xbb8};}});const _0x98f17d=({showActiveMarkers:_0x472b5a=!0x0}={})=>(_0x30c262,_0x2fe4e5,_0x4c83ad)=>{if(!_0x2fe4e5['item'])return;if(_0x2fe4e5['item']['is'](_0x27f9('0x105')))return void _0x4c83ad[_0x27f9('0xb0')][_0x27f9('0x97')](_0x2fe4e5[_0x27f9('0xc2')],_0x30c262[_0x27f9('0x4')]);const _0x1f401b=_0x4c83ad[_0x27f9('0x116')][_0x27f9('0xe2')](_0x2fe4e5[_0x27f9('0xc2')]);if(!(_0x2fe4e5['item']['is'](_0x27f9('0x114'))&&_0x277d39['model']['schema']['isBlock'](_0x2fe4e5[_0x27f9('0xc2')])&&!_0x1f401b['getCustomProperty'](_0x27f9('0x106'))))return;const {id:_0x3f6601}=this['_splitMarkerName'](_0x2fe4e5[_0x27f9('0xc8')]);_0x4c83ad[_0x27f9('0x86')][_0x27f9('0x74')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1f401b),_0x4c83ad[_0x27f9('0x86')]['setAttribute'](_0x27f9('0x8d'),_0x3f6601,_0x1f401b),_0x4c83ad[_0x27f9('0x116')][_0x27f9('0xd0')](_0x1f401b,_0x2fe4e5[_0x27f9('0xc8')]),_0x472b5a&&(this['activeMarkers'][_0x27f9('0xf7')](_0x2fe4e5[_0x27f9('0xc8')])?_0x4c83ad[_0x27f9('0x86')]['addClass']('ck-suggestion-marker--active',_0x1f401b):_0x4c83ad[_0x27f9('0x86')][_0x27f9('0x12')](_0x27f9('0x6'),_0x1f401b));for(const _0x2ac258 of _0x277d39[_0x27f9('0x43')][_0x27f9('0x3e')](_0x2fe4e5[_0x27f9('0xc2')])[_0x27f9('0x1e')]())_0x4c83ad[_0x27f9('0xb0')][_0x27f9('0x97')](_0x2ac258,_0x30c262['name']);_0x4c83ad[_0x27f9('0xb0')][_0x27f9('0x97')](_0x2fe4e5[_0x27f9('0xc2')],_0x30c262[_0x27f9('0x4')]);};_0x277d39[_0x27f9('0x125')][_0x27f9('0x57')](_0x27f9('0xc9'))[_0x27f9('0x5b')](_0x15ce9e=>{_0x15ce9e['on'](_0x27f9('0x3d'),(_0x57ea7d,_0xfb3046,_0x4891fa)=>{_0x4891fa[_0x27f9('0x91')][_0x27f9('0x120')]&&_0x98f17d({'showActiveMarkers':!0x1})(_0x57ea7d,_0xfb3046,_0x4891fa);},{'priority':_0x27f9('0xe8')});}),_0x277d39[_0x27f9('0x125')][_0x27f9('0x57')]('dataDowncast')[_0x27f9('0xa')]({'model':_0x27f9('0x104'),'view':(_0x34fa65,_0x481b38)=>_0x481b38[_0x27f9('0x91')][_0x27f9('0x120')]?null:{'group':_0x27f9('0x104'),'name':_0x34fa65['substr'](_0x27f9('0x104')[_0x27f9('0xed')]+0x1)}}),_0x277d39[_0x27f9('0x125')][_0x27f9('0x57')](_0x27f9('0xd1'))[_0x27f9('0x4a')]({'view':{'name':_0x27f9('0x104'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x296512,{writer:_0x136cd2})=>{let _0x556309='suggestion:'+_0x296512['getAttribute'](_0x27f9('0x6d'))+':'+_0x296512[_0x27f9('0x30')]('id');return _0x296512[_0x27f9('0x30')](_0x27f9('0xf9'))&&(_0x556309+=':'+_0x296512[_0x27f9('0x30')](_0x27f9('0xf9'))),_0x136cd2[_0x27f9('0x95')]('$marker',{'data-name':_0x556309});}}),_0x277d39[_0x27f9('0x125')]['for'](_0x27f9('0xd1'))[_0x27f9('0x90')]({'view':_0x27f9('0x104')}),_0x277d39['conversion'][_0x27f9('0x57')](_0x27f9('0x17'))['add'](_0x48426c=>{_0x48426c['on'](_0x27f9('0x3d'),_0x98f17d(),{'priority':_0x27f9('0xa1')});}),_0x277d39['conversion']['for'](_0x27f9('0x17'))['add'](_0x526085=>{_0x526085['on'](_0x27f9('0x41'),(_0x4a3481,_0x5113e4,_0x25b083)=>{const _0x25dee1=_0x25b083[_0x27f9('0x116')][_0x27f9('0x9e')](_0x5113e4[_0x27f9('0xc8')]);if(_0x25dee1)for(const _0x5a2d52 of _0x25dee1)_0x5a2d52['getCustomProperty'](_0x27f9('0x106'))||(_0x25b083[_0x27f9('0x86')][_0x27f9('0x12')](['ck-suggestion-marker',_0x27f9('0xdb'),_0x27f9('0x6')],_0x5a2d52),_0x25b083[_0x27f9('0x86')][_0x27f9('0x78')](_0x27f9('0x8d'),_0x5a2d52),_0x25b083['mapper']['unbindElementFromMarkerName'](_0x5a2d52,_0x5113e4['markerName']));},{'priority':'high'});}),_0x277d39['model'][_0x27f9('0x54')][_0x27f9('0xbe')](_0x2fb094=>{let _0x4c3ccc=!0x1;const _0x1712e4=Array['from'](_0x277d39[_0x27f9('0x43')]['document']['differ']['getChangedMarkers']());for(const {name:_0x263d23,data:_0x3a20b7}of _0x1712e4){const {group:_0x62796e,type:_0x4c1078,id:_0x359b49}=this[_0x27f9('0xe5')](_0x263d23);if(_0x27f9('0x104')!==_0x62796e)continue;const _0xfb1d96=this['_suggestions']['get'](_0x359b49);if(null!=_0x3a20b7[_0x27f9('0xb9')]){_0x27f9('0x107')==_0x4c1078&&(_0x4c3ccc=_0x4c3ccc||wt(_0x3a20b7['newRange'],_0x263d23,_0x2fb094,_0x277d39[_0x27f9('0x43')][_0x27f9('0x85')]));if(_0x3a20b7['newRange'][_0x27f9('0x73')]||_0x27f9('0xd3')==_0x3a20b7[_0x27f9('0xb9')][_0x27f9('0x109')][_0x27f9('0xca')]||'formatBlock'==_0x4c1078&&!bt(_0x3a20b7[_0x27f9('0xb9')])||_0x27f9('0x119')==_0x4c1078&&!(!kt(_0x250ace=_0x3a20b7[_0x27f9('0xb9')])&&!function(_0x12a43a){return _0x12a43a[_0x27f9('0xa3')][_0x27f9('0x33')]==_0x12a43a[_0x27f9('0x50')][_0x27f9('0x71')]&&_0x12a43a['start'][_0x27f9('0xe4')];}(_0x250ace)))_0x2fb094[_0x27f9('0x8c')](_0x263d23),_0x4c3ccc=!0x0;else{if(!_0xfb1d96||!_0xfb1d96[_0x27f9('0x65')])continue;_0x4c3ccc=!!this[_0x27f9('0x35')](_0xfb1d96)||_0x4c3ccc;}}}var _0x250ace;return _0x4c3ccc;}),_0x277d39['model']['document'][_0x27f9('0xbe')](_0x45ac49=>{let _0x35a006=!0x1;for(const _0x3a9f55 of _0x277d39[_0x27f9('0x43')][_0x27f9('0x54')][_0x27f9('0xa4')][_0x27f9('0xe6')]()){if(_0x27f9('0x11')!=_0x3a9f55[_0x27f9('0x10e')])continue;const _0x21bbd7=_0x3a9f55[_0x27f9('0xd')][_0x27f9('0xa5')](_0x3a9f55['length']);if(_0x21bbd7[_0x27f9('0xe4')])for(const _0x519b3b of this[_0x27f9('0x11b')]['values']()){if(_0x519b3b[_0x27f9('0xd4')]||!_0x519b3b['isInContent'])continue;if(_0x27f9('0xc')!=_0x519b3b[_0x27f9('0x10e')])continue;const _0x26fa2c=_0x519b3b[_0x27f9('0x36')]();if(_0x26fa2c[_0x27f9('0xa3')]['parent']!=_0x26fa2c[_0x27f9('0x50')][_0x27f9('0x33')]&&_0x26fa2c[_0x27f9('0x50')][_0x27f9('0x8a')](_0x3a9f55[_0x27f9('0xd')])){const _0x2a97c2=_0x277d39[_0x27f9('0x43')][_0x27f9('0x27')](_0x26fa2c[_0x27f9('0xa3')],_0x21bbd7);_0x45ac49[_0x27f9('0x10f')](_0x519b3b['getFirstMarker'](),{'range':_0x2a97c2}),_0x35a006=!0x0;}}}return _0x35a006;}),_0x277d39[_0x27f9('0x43')]['markers']['on']('update:suggestion',(_0x34f9f9,_0x22eac2,_0x26eaf9)=>{if(null==_0x26eaf9){const {id:_0x4ff5d2}=this[_0x27f9('0xe5')](_0x22eac2[_0x27f9('0x4')]),_0x411493=this['_suggestions'][_0x27f9('0xa0')](_0x4ff5d2);_0x411493&&_0x411493[_0x27f9('0x98')](_0x22eac2['name']);}}),_0x277d39['model']['document']['on'](_0x27f9('0x92'),()=>{const _0x431a06=Array[_0x27f9('0x9c')](_0x277d39['model']['document'][_0x27f9('0xa4')][_0x27f9('0x22')]());_0x431a06[_0x27f9('0xcb')]((_0x297194,_0x9f09f2)=>{const _0xca5a07=_0x297194['data']['oldRange'],_0x113bf1=_0x9f09f2['data']['oldRange'];return null===_0xca5a07&&null===_0x113bf1?0x0:null===_0xca5a07&&null!==_0x113bf1?-0x1:null!==_0xca5a07&&null===_0x113bf1?0x1:_0xca5a07[_0x27f9('0xa3')][_0x27f9('0xfa')](_0x113bf1[_0x27f9('0xa3')])?-0x1:0x1;});const _0x17b653=new Set();for(const {name:_0x13378d,data:_0x5977e5}of _0x431a06){const {group:_0x49965e,id:_0x2c5a01}=this['_splitMarkerName'](_0x13378d);if(_0x27f9('0x104')===_0x49965e&&(null===_0x5977e5[_0x27f9('0x7b')]&&this[_0x27f9('0x1')](_0x13378d),null===_0x5977e5[_0x27f9('0xb9')])){const _0x512ef6=this['_suggestions'][_0x27f9('0xa0')](_0x2c5a01);_0x512ef6[_0x27f9('0x65')]?_0x17b653[_0x27f9('0x5b')](_0x512ef6):this[_0x27f9('0x8b')](_0x512ef6);}}for(const {name:_0x14e610,data:_0x1d4a6a}of _0x431a06){const {group:_0x53d5e4,id:_0x1dfbbb}=this[_0x27f9('0xe5')](_0x14e610);if(_0x27f9('0x104')!==_0x53d5e4)continue;const _0x222855=this[_0x27f9('0x11b')][_0x27f9('0xa0')](_0x1dfbbb);null!=_0x1d4a6a[_0x27f9('0xb9')]&&null!=_0x1d4a6a[_0x27f9('0x7b')]&&(this[_0x27f9('0xf')](_0x222855),_0x17b653[_0x27f9('0x5b')](_0x222855[_0x27f9('0x128')]));}for(const _0x476ab5 of _0x17b653)this[_0x27f9('0x6c')](_0x27f9('0xe'),_0x476ab5);_0x17b653['clear']();}),_0x277d39[_0x27f9('0x43')]['on'](_0x27f9('0x63'),(_0x195d8a,_0x4f4664)=>{const _0x17d644=_0x4f4664[0x0];if(!this[_0x27f9('0x11b')][_0x27f9('0xdc')])return;if(!_0x17d644[_0x27f9('0x8e')])return;if(_0x17d644['batch'][_0x27f9('0xaf')]||!_0x17d644[_0x27f9('0x45')][_0x27f9('0x28')])return;let _0x50b173,_0x13277a;switch(_0x17d644[_0x27f9('0x10e')]){case _0x27f9('0x11'):_0x50b173=_0x277d39[_0x27f9('0x43')]['createPositionAt'](_0x17d644[_0x27f9('0xd')]),_0x13277a=_0x50b173[_0x27f9('0xa5')](_0x17d644[_0x27f9('0x9')]);break;case _0x27f9('0x4d'):_0x50b173=_0x277d39[_0x27f9('0x43')][_0x27f9('0xf6')](_0x17d644['splitPosition']),_0x13277a=_0x277d39[_0x27f9('0x43')][_0x27f9('0xf6')](_0x17d644[_0x27f9('0xe7')]);break;case _0x27f9('0xd5'):_0x50b173=_0x277d39['model']['createPositionAt'](_0x17d644[_0x27f9('0x83')]),_0x13277a=_0x50b173[_0x27f9('0xa5')](_0x17d644[_0x27f9('0x9')]);break;default:return;}const _0x118050=_0x277d39[_0x27f9('0x43')][_0x27f9('0x27')](_0x50b173,_0x13277a);_0x277d39[_0x27f9('0x43')][_0x27f9('0x11d')](()=>{for(const {suggestion:_0x27486b,meta:_0x4ad3ff}of this[_0x27f9('0x5')](_0x118050)){if(_0x27486b[_0x27f9('0xd4')])continue;if(_0x27f9('0x107')==_0x27486b[_0x27f9('0x10e')])continue;const _0x54bfed=_0x27486b[_0x27f9('0x1a')]&&_0x27486b[_0x27f9('0x1a')][_0x27f9('0xbf')];(_0x27f9('0xc')!=_0x27486b[_0x27f9('0x10e')]||_0x27f9('0x4d')==_0x17d644['type']&&!_0x54bfed)&&(_0x4ad3ff[_0x27f9('0x113')]||'insertion'==_0x27486b['type']&&_0x4ad3ff[_0x27f9('0xf5')]||_0x27486b['getFirstRange']()[_0x27f9('0x3')](_0x118050)&&this[_0x27f9('0xe3')](_0x27486b,_0x50b173,_0x13277a));}});},{'priority':'lowest'}),_0x277d39['model']['on'](_0x27f9('0xe0'),(_0x3cc3c0,_0x333557)=>{const _0x56206d=_0x333557[0x0],_0x2dddc2=_0x333557[0x1];if(_0x2dddc2&&_0x2dddc2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x27f9('0xcc')][_0x27f9('0x7d')])return;if(_0x56206d[_0x27f9('0x73')])return;const _0x2f8e4a=_0x277d39[_0x27f9('0x43')][_0x27f9('0x85')],{start:_0x1afea6,end:_0x11b180}=_0x56206d[_0x27f9('0x36')](),_0x1c3433=_0x1afea6[_0x27f9('0x94')]&&_0x2f8e4a[_0x27f9('0x12a')](_0x1afea6[_0x27f9('0x94')])?null:_0x2f8e4a[_0x27f9('0x3b')](_0x1afea6,_0x27f9('0xea')),_0x21495b=_0x11b180[_0x27f9('0x71')]&&_0x2f8e4a[_0x27f9('0x12a')](_0x11b180[_0x27f9('0x71')])?null:_0x2f8e4a[_0x27f9('0x3b')](_0x11b180,'backward'),_0x179f30=_0x277d39[_0x27f9('0x43')][_0x27f9('0x27')](_0x1c3433?_0x1c3433[_0x27f9('0xa3')]:_0x1afea6,_0x21495b?_0x21495b[_0x27f9('0x50')]:_0x11b180);_0x277d39[_0x27f9('0x43')][_0x27f9('0x11d')](_0x4d0ad3=>{this[_0x27f9('0x37')](_0x179f30);const _0x41a3fd=_0x277d39['model']['schema'][_0x27f9('0x3b')](_0x179f30[_0x27f9('0xa3')]);_0x56206d['is'](_0x27f9('0xdd'))?_0x4d0ad3['setSelection'](_0x41a3fd):_0x56206d[_0x27f9('0x127')](_0x41a3fd);}),_0x3cc3c0[_0x27f9('0x2')]();},{'priority':_0x505c8c['normal']+0xa}),_0x277d39[_0x27f9('0x43')]['on'](_0x27f9('0xae'),(_0x380ff7,_0x195ce7)=>{const _0x5d031a=_0x195ce7[_0x195ce7['length']-0x1];_0x5d031a&&_0x5d031a[_0x27f9('0x62')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0x27f9('0x7d')]&&(_0x277d39[_0x27f9('0x43')][_0x27f9('0x11d')](()=>{let _0x431c84=_0x277d39[_0x27f9('0x43')]['insertContent'](_0x195ce7[0x0],_0x195ce7[0x1],_0x195ce7[0x2],_0x195ce7[0x3],{'forceDefaultExecution':!0x0});if(!_0x431c84)return;_0x380ff7[_0x27f9('0x10a')]=_0x431c84[_0x27f9('0x20')]();const _0x18d836=_0x431c84[_0x27f9('0x50')]['nodeBefore'],_0x138e27=_0x277d39['model']['schema'];_0x18d836&&_0x138e27['isBlock'](_0x18d836)&&!_0x138e27[_0x27f9('0x12a')](_0x18d836)&&(_0x431c84=_0x277d39[_0x27f9('0x43')][_0x27f9('0x27')](_0x431c84[_0x27f9('0xa3')],_0x277d39[_0x27f9('0x43')][_0x27f9('0xf6')](_0x18d836,_0x27f9('0x50')))),this['markInsertion'](_0x431c84);}),_0x380ff7[_0x27f9('0x2')]());},{'priority':_0x27f9('0xa1')}),this[_0x27f9('0xcc')]=new _0x4a84ff(_0x277d39,this[_0x27f9('0x80')]),this[_0x27f9('0x1c')][_0x27f9('0x96')][_0x27f9('0x5b')]('trackChanges',this['trackChangesCommand']),this[_0x27f9('0x3c')](_0x27f9('0x10b'));const _0xfa177c=new _0x45073c(_0x277d39,this[_0x27f9('0x11b')]);_0x277d39[_0x27f9('0x96')][_0x27f9('0x5b')](_0x27f9('0x55'),_0xfa177c),this[_0x27f9('0x3c')]('acceptSuggestion');const _0x3bd353=new _0x5541a8(_0x277d39,this['_suggestions']);_0x277d39[_0x27f9('0x96')][_0x27f9('0x5b')]('discardSuggestion',_0x3bd353),this['enableCommand']('discardSuggestion'),_0x277d39[_0x27f9('0x96')][_0x27f9('0x5b')](_0x27f9('0xb8'),new _0x262ddd(_0x277d39,_0xfa177c,this[_0x27f9('0x11b')])),this[_0x27f9('0x3c')](_0x27f9('0xb8')),_0x277d39[_0x27f9('0x96')]['add'](_0x27f9('0x12d'),new _0x17b9cb(_0x277d39,_0x3bd353,this[_0x27f9('0x11b')])),this['enableCommand'](_0x27f9('0x12d')),_0x277d39['commands'][_0x27f9('0x5b')]('acceptSelectedSuggestions',new _0x47cd3d(_0x277d39,_0xfa177c,this[_0x27f9('0x11b')])),this[_0x27f9('0x3c')](_0x27f9('0x6a')),_0x277d39['commands'][_0x27f9('0x5b')](_0x27f9('0x40'),new _0x33f42e(_0x277d39,_0x3bd353,this[_0x27f9('0x11b')])),this['enableCommand'](_0x27f9('0x40'));const _0x397eac=_0x277d39['plugins'][_0x27f9('0xa0')](_0x27f9('0x6e'));this[_0x27f9('0x9b')](_0x397eac,_0x27f9('0x81'),(_0x2ce774,{threadId:_0xd5867d})=>{const _0x507adc=this[_0x27f9('0x11b')][_0x27f9('0xa0')](_0xd5867d);_0x507adc&&_0x507adc[_0x27f9('0x67')]&&0x1===_0x507adc[_0x27f9('0x67')]['length']&&this['_updateSuggestionData'](_0xd5867d,{'hasComments':!0x0});},{'priority':'low'}),this[_0x27f9('0x9b')](_0x397eac,_0x27f9('0xbd'),(_0x2214ae,{threadId:_0xe67651})=>{const _0x17a637=this[_0x27f9('0x11b')][_0x27f9('0xa0')](_0xe67651);_0x17a637&&_0x17a637[_0x27f9('0x67')]&&!_0x17a637[_0x27f9('0x67')]['length']&&this[_0x27f9('0x72')](_0xe67651,{'hasComments':!0x1});},{'priority':_0x27f9('0x101')});}set[_0x27f9('0xb')](_0x2bd289){if(this[_0x27f9('0x8f')])throw new _0x38ab46(_0x27f9('0x48'),this);this['_adapter']=_0x2bd289;}get[_0x27f9('0xb')](){return this[_0x27f9('0x8f')];}[_0x27f9('0x25')]({skipNotAttached:_0x586028=!0x1,toJSON:_0x4a4618=!0x1}={}){const _0xb202a9=[];for(const _0x371950 of this[_0x27f9('0x11b')][_0x27f9('0x115')]())_0x586028&&!_0x371950['isInContent']||_0xb202a9[_0x27f9('0x14')](_0x371950);return _0x4a4618?_0xb202a9['map'](_0x213b48=>_0x213b48[_0x27f9('0xbc')]()):_0xb202a9;}[_0x27f9('0x76')](_0x1af070){const _0x45a1ca=this[_0x27f9('0x11b')]['get'](_0x1af070);if(!_0x45a1ca)throw new _0x38ab46(_0x27f9('0x93'),this);return _0x45a1ca;}[_0x27f9('0xd2')](_0x21e98c){return this[_0x27f9('0x11b')][_0x27f9('0xde')](_0x21e98c);}[_0x27f9('0x103')](_0x1204c2){const {id:_0x4c83a2,authorId:_0x268239}=_0x1204c2,[_0x5c97d6,_0x4a99d4]=_0x1204c2['type']['split'](':'),_0x15c540=this[_0x27f9('0x11b')][_0x27f9('0xa0')](_0x4c83a2)||this[_0x27f9('0x2c')](_0x5c97d6,_0x4a99d4,_0x4c83a2,_0x268239);switch(this['_addThreadToSuggestion'](_0x15c540),this[_0x27f9('0x5c')](_0x15c540,_0x5c97d6,_0x4a99d4||null,_0x268239),_0x15c540[_0x27f9('0x49')]=_0x1204c2[_0x27f9('0x49')],_0x1204c2[_0x27f9('0x1a')]&&(_0x15c540[_0x27f9('0x1a')]=_0x1204c2['data']),_0x1204c2[_0x27f9('0xb4')]&&(_0x15c540[_0x27f9('0xb4')]=_0x1204c2[_0x27f9('0xb4')]),this[_0x27f9('0x8f')]&&this[_0x27f9('0x8f')][_0x27f9('0x15')]||(_0x15c540[_0x27f9('0x89')]=!0x0),this['_suggestionState'][_0x27f9('0xa0')](_0x15c540)){case _0x27f9('0x122'):this[_0x27f9('0x53')][_0x27f9('0xe9')](_0x15c540,_0x27f9('0x100'));break;case _0x27f9('0xf0'):_0x15c540[_0x27f9('0x65')]?(this[_0x27f9('0x53')]['set'](_0x15c540,_0x27f9('0x12c')),this[_0x27f9('0x6c')]('suggestionLoaded',_0x15c540)):this['_suggestionState']['set'](_0x15c540,_0x27f9('0x8'));}return _0x15c540;}[_0x27f9('0x55')](_0x137d18){this[_0x27f9('0x62')](()=>{this[_0x27f9('0x1c')][_0x27f9('0x43')][_0x27f9('0x11d')](()=>{for(const _0x3012dd of _0x137d18[_0x27f9('0xab')]())_0x3012dd[_0x27f9('0x42')]();});});}[_0x27f9('0xaa')](_0x40c4d8){this[_0x27f9('0x62')](()=>{this[_0x27f9('0x1c')][_0x27f9('0x43')][_0x27f9('0x11d')](()=>{for(const _0xfd07b0 of _0x40c4d8[_0x27f9('0xab')]())_0xfd07b0[_0x27f9('0x34')]();});});}[_0x27f9('0x3c')](_0x4b7228,_0x436a60){const _0x327cf8=this[_0x27f9('0x1c')][_0x27f9('0x96')][_0x27f9('0xa0')](_0x4b7228);if(!_0x327cf8)throw new _0x38ab46(_0x27f9('0x66'),this,{'commandName':_0x4b7228});this[_0x27f9('0x80')][_0x27f9('0x5b')](_0x327cf8),_0x436a60&&_0x327cf8['on'](_0x27f9('0x6f'),(_0x14f0b2,_0x5bcfea)=>{this['trackChangesCommand'][_0x27f9('0x7d')]&&(this[_0x27f9('0xa8')]||_0x5bcfea['length']>0x0&&_0x5bcfea[_0x5bcfea['length']-0x1]&&_0x5bcfea[_0x5bcfea[_0x27f9('0xed')]-0x1]['forceDefaultExecution']||(_0x436a60((..._0x1feef4)=>_0x327cf8['execute'](..._0x1feef4,{'forceDefaultExecution':!0x0}),..._0x5bcfea),_0x14f0b2[_0x27f9('0x2')]()));},{'priority':'high'});}[_0x27f9('0x62')](_0x500ea3){let _0x2c7cae,_0x1b9b36;const _0x475914=this[_0x27f9('0xa8')];this[_0x27f9('0xa8')]=!0x0;try{_0x2c7cae=_0x500ea3();}catch(_0x22dc5a){_0x1b9b36=_0x22dc5a;}return _0x475914||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1b9b36&&_0x38ab46[_0x27f9('0xd7')](_0x1b9b36,this),_0x2c7cae;}[_0x27f9('0x126')](_0x2eebb5,_0x28989a=null,_0x5c5eaa={}){if(_0x2eebb5[_0x27f9('0x73')])return null;const _0x3b5e25=this[_0x27f9('0x1c')][_0x27f9('0xef')]['get'](_0x27f9('0x61'))['me'];for(const {suggestion:_0x9ec414,meta:_0x2a610e}of this['_findSuggestions'](_0x2eebb5,_0x27f9('0xda')))if(_0x2a610e['isOwn']){if(!_0x2a610e[_0x27f9('0x121')])return _0x9ec414;if(_0x28989a==_0x9ec414[_0x27f9('0x10d')]){const _0x47dd95=_0x9ec414[_0x27f9('0x36')]();return _0x47dd95[_0x27f9('0xa3')][_0x27f9('0x8a')](_0x2eebb5['end'])?this[_0x27f9('0x52')](_0x9ec414,this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x2eebb5[_0x27f9('0xa3')],_0x47dd95[_0x27f9('0x50')])):this['_setSuggestionRange'](_0x9ec414,this[_0x27f9('0xd9')]['createRange'](_0x47dd95['start'],_0x2eebb5[_0x27f9('0x50')])),_0x9ec414;}}const _0x51152d=_0x322ea4(),_0xf14fd=_0x3b5e25['id'],_0x5647bb=_0x28989a?_0x27f9('0x110')+_0x28989a:'insertion',_0x55fabd=this[_0x27f9('0xec')]({'id':_0x51152d,'type':_0x5647bb,'createdAt':new Date(),'authorId':_0xf14fd,'attributes':_0x5c5eaa});return this[_0x27f9('0x69')](_0x5647bb,_0x51152d,_0xf14fd,_0x2eebb5),_0x55fabd;}[_0x27f9('0x11a')](_0x1ca58d,_0x20d207='multi',_0x1786d2={}){const _0x4edaa=this[_0x27f9('0x1c')][_0x27f9('0xef')][_0x27f9('0xa0')](_0x27f9('0x61'))['me'],_0x2b7e68=this[_0x27f9('0xb6')]['getSuggestionCallback']('insertion',_0x20d207,_0x27f9('0x13'));for(const _0x488e23 of this[_0x27f9('0x25')]())if(_0x488e23[_0x27f9('0xc3')]['id']==_0x4edaa['id']&&_0x27f9('0xda')==_0x488e23['type']&&_0x488e23['subType']==_0x20d207&&(_0x2b7e68(_0x488e23[_0x27f9('0x7a')](),_0x1ca58d)||_0x2b7e68(_0x1ca58d,_0x488e23[_0x27f9('0x7a')]()))){for(const _0x29d3e9 of _0x1ca58d)_0x488e23[_0x27f9('0xc1')](_0x29d3e9);return _0x488e23;}for(const _0xca948 of _0x1ca58d)for(const {suggestion:_0x247b16,meta:_0x54a89c}of this['_findSuggestions'](_0xca948,_0x27f9('0xda'))){if(!_0x54a89c[_0x27f9('0xf5')])continue;let _0x5d0cf1=!0x0;for(const _0x1dac44 of _0x247b16[_0x27f9('0x7a')]())for(const _0x5b4628 of _0x1ca58d)if(!_0x1dac44['containsRange'](_0x5b4628)){_0x5d0cf1=!0x1;break;}if(_0x5d0cf1)return _0x247b16;}const _0x2a6f6a=_0x322ea4(),_0x5542f5=_0x4edaa['id'],_0xd297bb=_0x27f9('0x110')+_0x20d207,_0x5bd652=this[_0x27f9('0xec')]({'id':_0x2a6f6a,'type':_0xd297bb,'createdAt':new Date(),'authorId':_0x5542f5,'attributes':_0x1786d2});for(const _0x247100 of _0x1ca58d)this[_0x27f9('0x69')](_0xd297bb,_0x2a6f6a,_0x5542f5,_0x247100,_0xfe1c55[_0x27f9('0xac')]());return _0x5bd652;}[_0x27f9('0x26')](_0x2a4cd8,_0x23908d,_0x1786f1=null,_0x41e1f1={}){if(_0x1786f1=_0x1786f1||yt(_0x23908d),_0x2a4cd8[_0x27f9('0x73')])return;const _0x5acb14=this[_0x27f9('0x1c')][_0x27f9('0xef')]['get'](_0x27f9('0x61'))['me'],_0x4e5cd6=[];for(const {suggestion:_0x14356a,meta:_0x50567f}of this[_0x27f9('0x5')](_0x2a4cd8,_0x27f9('0xda')))_0x50567f[_0x27f9('0xf5')]&&!_0x50567f['isInsideObject']&&_0x4e5cd6[_0x27f9('0x14')](..._0x14356a[_0x27f9('0x7a')]());const _0x585aee=function(_0x36789a,_0x70e1da){const _0x145a14=[];for(const _0x3cc3a7 of _0x70e1da){const _0x4c9184=_0x36789a['getIntersection'](_0x3cc3a7);_0x4c9184&&_0x145a14['push'](_0x4c9184);}return _0x145a14;}(_0x2a4cd8,_0x4e5cd6),_0x427e36=function(_0x4ca234,_0x145fa6){const _0x15dcc7=[_0x4ca234];for(const _0x18e8c9 of _0x145fa6){let _0x4758f8=0x0;for(;_0x4758f8<_0x15dcc7[_0x27f9('0xed')];){const _0x37feb9=_0x15dcc7[_0x4758f8][_0x27f9('0xb2')](_0x18e8c9);_0x15dcc7[_0x27f9('0x0')](_0x4758f8,0x1,..._0x37feb9),_0x4758f8+=_0x37feb9[_0x27f9('0xed')];}}return _0x15dcc7;}(_0x2a4cd8,_0x4e5cd6);_0x585aee[_0x27f9('0xed')]&&this[_0x27f9('0xd9')][_0x27f9('0x11d')](()=>{for(const _0x5b8e0a of _0x585aee){const _0x1d2a47=this['_suggestionFactory']['getSuggestionCallback'](_0x27f9('0x107'),_0x1786f1,_0x27f9('0x42'));this[_0x27f9('0x62')](()=>_0x1d2a47([_0x5b8e0a],_0x23908d,_0x41e1f1));}});for(const _0x4e5167 of _0x427e36){let _0xc29246=null,_0x1589a3=_0x4e5167[_0x27f9('0xa3')],_0x18786e=_0x4e5167['end'];for(const {suggestion:_0x466069,meta:_0x1a0346}of this[_0x27f9('0x5')](_0x4e5167,_0x27f9('0x107'))){if(!_0x1a0346[_0x27f9('0xf5')])continue;if(_0x466069['subType']!=_0x1786f1)continue;const _0x4b2daf=_0x466069[_0x27f9('0x36')]();if(_0x4b2daf[_0x27f9('0x3')](_0x4e5167,!0x0))return;_0x1589a3=_0x1589a3[_0x27f9('0xfa')](_0x4b2daf['start'])?_0x1589a3:_0x4b2daf[_0x27f9('0xa3')],_0x18786e=_0x18786e[_0x27f9('0x2a')](_0x4b2daf[_0x27f9('0x50')])?_0x18786e:_0x4b2daf[_0x27f9('0x50')],_0xc29246?_0x4b2daf[_0x27f9('0xa3')]['isBefore'](_0xc29246['getFirstRange']()[_0x27f9('0xa3')])?(_0xc29246[_0x27f9('0xcf')](),_0xc29246=_0x466069):_0x466069[_0x27f9('0xcf')]():_0xc29246=_0x466069;}const _0x16b193=this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x1589a3,_0x18786e);if(_0xc29246)this[_0x27f9('0x52')](_0xc29246,_0x16b193);else{const _0x53a5a9=_0x322ea4(),_0x226c01=_0x5acb14['id'];this[_0x27f9('0xec')]({'id':_0x53a5a9,'type':_0x27f9('0x4c')+_0x1786f1,'data':_0x23908d,'createdAt':new Date(),'authorId':_0x226c01,'attributes':_0x41e1f1}),this[_0x27f9('0x69')](_0x27f9('0x4c')+_0x1786f1,_0x53a5a9,_0x226c01,_0x16b193);}}}[_0x27f9('0xfc')](_0x3e0564,_0x2ca160,_0x2568b0=[],_0x3bd5be=null,_0x1ee7d5={}){_0x2ca160[_0x27f9('0x1f')]||(_0x2ca160[_0x27f9('0x1f')]=_0x2ca160[_0x27f9('0xf4')]),_0x2ca160[_0x27f9('0xbf')]=_0x3e0564['is'](_0x27f9('0x16')),_0x3bd5be=_0x3bd5be||yt(_0x2ca160);const _0x451b48=_0x2568b0[_0x27f9('0x47')](_0x1823c8=>St(_0x1823c8,this[_0x27f9('0xd9')])),_0x309207=_0x3e0564['is']('range')?_0x3e0564:St(_0x3e0564,this[_0x27f9('0xd9')]);_0x451b48[_0x27f9('0x14')](_0x309207);let _0xa18c77=!0x0;for(const _0x134d1b of _0x451b48)if(!this[_0x27f9('0xff')](_0x134d1b)){_0xa18c77=!0x1;break;}if(_0xa18c77){const _0x1a87d7=this[_0x27f9('0xb6')]['getSuggestionCallback'](_0x27f9('0xc'),_0x3bd5be,_0x27f9('0x42'));return void this['forceDefaultExecution'](()=>_0x1a87d7([_0x309207],_0x2ca160,_0x1ee7d5));}let _0x307437=null,_0x530b6d=_0x309207[_0x27f9('0xa3')],_0x158734=_0x309207[_0x27f9('0x50')];for(const {suggestion:_0x14d607,meta:_0x41be6e}of this[_0x27f9('0x5')](_0x309207,_0x27f9('0xc'))){if(!_0x41be6e[_0x27f9('0xf5')]||_0x41be6e['isNextTo']||_0x41be6e['containsRangeInObject']||_0x41be6e[_0x27f9('0xad')])continue;if(_0x14d607['data'][_0x27f9('0x1f')]!=_0x2ca160[_0x27f9('0x1f')])continue;const _0x56ff72=_0x14d607[_0x27f9('0x36')]();if(_0x14d607[_0x27f9('0x10d')]==_0x3bd5be){if(_0x56ff72[_0x27f9('0x3')](_0x309207,!0x0))return;_0x530b6d=_0x530b6d['isBefore'](_0x56ff72[_0x27f9('0xa3')])?_0x530b6d:_0x56ff72['start'],_0x158734=_0x158734[_0x27f9('0x2a')](_0x56ff72[_0x27f9('0x50')])?_0x158734:_0x56ff72[_0x27f9('0x50')],_0x307437?_0x56ff72[_0x27f9('0xa3')][_0x27f9('0xfa')](_0x307437[_0x27f9('0x36')]()['start'])?(_0x307437[_0x27f9('0xcf')](),_0x307437=_0x14d607):_0x14d607[_0x27f9('0xcf')]():_0x307437=_0x14d607;}else{const _0x433d17=_0x309207[_0x27f9('0x23')](_0x56ff72);this[_0x27f9('0x75')](_0x14d607,_0x433d17);}}const _0x475cb3=this[_0x27f9('0x1c')][_0x27f9('0xef')][_0x27f9('0xa0')](_0x27f9('0x61'))['me'],_0x2653a4=_0x322ea4(),_0x351054=_0x475cb3['id'];_0x307437?this[_0x27f9('0x52')](_0x307437,this[_0x27f9('0xd9')]['createRange'](_0x530b6d,_0x158734)):(this[_0x27f9('0xec')]({'id':_0x2653a4,'type':_0x27f9('0x84')+_0x3bd5be,'data':_0x2ca160,'createdAt':new Date(),'authorId':_0x351054,'attributes':_0x1ee7d5}),this[_0x27f9('0x69')]('formatBlock:'+_0x3bd5be,_0x2653a4,_0x351054,this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x530b6d,_0x158734)));}[_0x27f9('0x12b')](_0xbabe1b,_0x4e8725,_0x489644=[],_0x599511=null,_0x32f119={}){_0x4e8725['formatGroupId']||(_0x4e8725[_0x27f9('0x1f')]=_0x4e8725[_0x27f9('0xf4')]),_0x4e8725[_0x27f9('0xbf')]=!0x1,_0x599511=_0x599511||yt(_0x4e8725);const _0x21964b=_0x489644[_0x27f9('0x47')](_0x4c64c8=>St(_0x4c64c8,this[_0x27f9('0xd9')])),_0x5bdf74=_0xbabe1b[_0x27f9('0x47')](_0x12a6b2=>St(_0x12a6b2,this[_0x27f9('0xd9')]));_0x21964b[_0x27f9('0x14')](..._0x5bdf74);let _0x5c79cc=!0x0;for(const _0x4aad4b of _0x21964b)if(!this[_0x27f9('0xff')](_0x4aad4b)){_0x5c79cc=!0x1;break;}if(_0x5c79cc){const _0x10ec5b=this[_0x27f9('0xb6')]['getSuggestionCallback']('formatBlock',_0x599511,_0x27f9('0x42'));return void this['forceDefaultExecution'](()=>_0x10ec5b(_0x5bdf74,_0x4e8725,_0x32f119));}const _0x235f26=this['editor'][_0x27f9('0xef')][_0x27f9('0xa0')](_0x27f9('0x61'))['me'];for(const _0x2bcda9 of this[_0x27f9('0x25')]()){if(_0x2bcda9[_0x27f9('0xc3')]['id']!=_0x235f26['id'])continue;if(_0x27f9('0xc')!=_0x2bcda9[_0x27f9('0x10e')]||_0x2bcda9['data'][_0x27f9('0x1f')]!=_0x4e8725['formatGroupId'])continue;const _0x402b26=_0x2bcda9['subType']==_0x599511;for(let _0x431509=0x0;_0x431509<_0x5bdf74[_0x27f9('0xed')];_0x431509++){const _0xcd7f45=_0x5bdf74[_0x431509];for(const _0x4d2019 of _0x2bcda9[_0x27f9('0x10c')]()){const _0x4692af=_0x4d2019['getRange']();if(_0xcd7f45[_0x27f9('0x8a')](_0x4692af)){_0x402b26?(_0x5bdf74[_0x27f9('0x0')](_0x431509,0x1),_0x431509--):_0x2bcda9[_0x27f9('0x8c')](_0x4d2019['name']);break;}}}}if(0x0==_0x5bdf74[_0x27f9('0xed')])return;const _0x240f73=this['_suggestionFactory'][_0x27f9('0xc7')](_0x27f9('0xc'),_0x599511,'join');for(const _0x2a2f4c of this['getSuggestions']())if(_0x2a2f4c[_0x27f9('0xc3')]['id']==_0x235f26['id']&&_0x27f9('0xc')==_0x2a2f4c[_0x27f9('0x10e')]&&_0x2a2f4c[_0x27f9('0x1a')][_0x27f9('0x1f')]==_0x4e8725[_0x27f9('0x1f')]&&_0x2a2f4c[_0x27f9('0x10d')]==_0x599511&&(_0x240f73(_0x2a2f4c[_0x27f9('0x7a')](),_0x5bdf74)||_0x240f73(_0x5bdf74,_0x2a2f4c[_0x27f9('0x7a')]()))){for(const _0x43c92b of _0x5bdf74)_0x2a2f4c[_0x27f9('0xc1')](_0x43c92b);return _0x2a2f4c;}const _0x46c557=_0x322ea4(),_0x3f42bb=_0x235f26['id'],_0x2835a1=_0x27f9('0x84')+_0x599511,_0xe1b376=this[_0x27f9('0xec')]({'id':_0x46c557,'type':_0x2835a1,'data':_0x4e8725,'createdAt':new Date(),'authorId':_0x3f42bb,'attributes':_0x32f119});for(const _0x5b009f of _0x5bdf74)this[_0x27f9('0x69')](_0x2835a1,_0x46c557,_0x3f42bb,_0x5b009f,_0xfe1c55[_0x27f9('0xac')]());return _0xe1b376;}[_0x27f9('0x37')](_0x397dc5,_0x48f272=null,_0x31fbe7={}){if(_0x397dc5[_0x27f9('0x73')])return null;const _0x2b87dd=this['editor']['plugins'][_0x27f9('0xa0')](_0x27f9('0x61'))['me'],_0xf41d41=new _0xdaaa0f(_0x397dc5[_0x27f9('0xa3')],_0x397dc5[_0x27f9('0x50')]);for(const {suggestion:_0x20f4d2,meta:_0xe528a7}of this[_0x27f9('0x5')](_0xf41d41,_0x27f9('0xda')))if(_0xe528a7[_0x27f9('0xf5')]&&!_0xe528a7[_0x27f9('0x121')]){if(_0x20f4d2[_0x27f9('0xd4')]){const _0x2261da=_0x20f4d2[_0x27f9('0x7a')]()[_0x27f9('0x9d')](_0x4dd027=>'$graveyard'!=_0x4dd027[_0x27f9('0x109')][_0x27f9('0xca')]);_0x2261da[_0x27f9('0xba')](_0x43520d=>_0xf41d41[_0x27f9('0x3')](_0x43520d,!0x0))&&_0x20f4d2[_0x27f9('0x34')]();if(_0x2261da[_0x27f9('0x82')](_0x2405cc=>_0x2405cc['containsRange'](_0xf41d41,!0x0))){const _0x1ffad5=this[_0x27f9('0xb6')]['getSuggestionCallback'](_0x27f9('0x119'),_0x48f272,_0x27f9('0x42'));return this[_0x27f9('0x62')](()=>_0x1ffad5([_0xf41d41],null,_0x31fbe7)),null;}}else{const _0x167d22=_0xf41d41[_0x27f9('0x23')](_0x20f4d2['getFirstRange']());_0x20f4d2[_0x27f9('0x68')]([_0x167d22],null,_0x31fbe7);}}if(_0xf41d41[_0x27f9('0x9a')](),_0xf41d41['isCollapsed']||_0x27f9('0xd3')==_0xf41d41['root'][_0x27f9('0xca')])return null;let _0x534235=null,_0x1678fe=_0xf41d41[_0x27f9('0xa3')],_0x4ee27f=_0xf41d41[_0x27f9('0x50')];for(const {suggestion:_0x51d279,meta:_0x60277a}of this[_0x27f9('0x5')](_0xf41d41,_0x27f9('0x119')))if(_0x60277a[_0x27f9('0xf5')]){if(_0x51d279[_0x27f9('0xd4')]){let _0x58d80b=!0x0;for(const _0x3864fd of _0x51d279[_0x27f9('0x7a')]()){if(_0x3864fd[_0x27f9('0x3')](_0xf41d41,!0x0))return _0x51d279;_0xf41d41[_0x27f9('0x3')](_0x3864fd)||(_0x58d80b=!0x1);}_0x58d80b&&_0x51d279[_0x27f9('0x34')]();}else{const _0xaed4d=_0x51d279[_0x27f9('0x36')]();if(_0xaed4d[_0x27f9('0x3')](_0xf41d41,!0x0))return _0x51d279;_0x1678fe=_0x1678fe['isBefore'](_0xaed4d['start'])?_0x1678fe:_0xaed4d[_0x27f9('0xa3')],_0x4ee27f=_0x4ee27f[_0x27f9('0x2a')](_0xaed4d[_0x27f9('0x50')])?_0x4ee27f:_0xaed4d[_0x27f9('0x50')],_0x534235?_0xaed4d['start']['isBefore'](_0x534235['getFirstRange']()[_0x27f9('0xa3')])?(_0x534235[_0x27f9('0xcf')](),_0x534235=_0x51d279):_0x51d279[_0x27f9('0xcf')]():_0x534235=_0x51d279;}}if(_0x534235)return this[_0x27f9('0x52')](_0x534235,this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x1678fe,_0x4ee27f)),_0x534235;{const _0x456c5d=_0x322ea4(),_0x2e911d=this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x1678fe,_0x4ee27f),_0x8ef773=_0x2b87dd['id'],_0x14c134=_0x48f272?_0x27f9('0x108')+_0x48f272:_0x27f9('0x119'),_0x2aba15=this[_0x27f9('0xec')]({'id':_0x456c5d,'type':_0x14c134,'createdAt':new Date(),'authorId':_0x8ef773,'attributes':_0x31fbe7});return this[_0x27f9('0x69')](_0x14c134,_0x456c5d,_0x8ef773,_0x2e911d),_0x2aba15;}}[_0x27f9('0x77')](_0x4aba65,_0x189b78=_0x27f9('0x88'),_0x543dd4={}){const _0xc2a493=this[_0x27f9('0x1c')][_0x27f9('0xef')][_0x27f9('0xa0')](_0x27f9('0x61'))['me'],_0x5076a7=_0x4aba65[_0x27f9('0x47')](_0x5f36dc=>new _0xdaaa0f(_0x5f36dc['start'],_0x5f36dc[_0x27f9('0x50')])),_0x4010a1=new Set();for(const _0x1af148 of _0x5076a7)for(const {suggestion:_0x256a84,meta:_0x5f3f5f}of this['_findSuggestions'](_0x1af148,_0x27f9('0xda')))_0x5f3f5f['isOwn']&&!_0x5f3f5f[_0x27f9('0x121')]&&_0x4010a1[_0x27f9('0x5b')](_0x256a84);for(const _0x54338e of _0x4010a1)if(_0x54338e['isMultiRange']){const _0x383ca0=_0x54338e[_0x27f9('0x7a')]();(!_0x54338e[_0x27f9('0xb4')]||!_0x54338e['attributes']['skipNestingCheck'])&&(_0x383ca0[_0x27f9('0xba')](_0x13b372=>_0x5076a7['some'](_0x28ae38=>_0x28ae38['containsRange'](_0x13b372,!0x0)))&&_0x54338e['discard']());if(_0x5076a7[_0x27f9('0xba')](_0x247f17=>_0x383ca0[_0x27f9('0x82')](_0x2b127e=>_0x2b127e[_0x27f9('0x3')](_0x247f17,!0x0)))){const _0x5749b7=this[_0x27f9('0xb6')]['getSuggestionCallback'](_0x27f9('0x119'),_0x189b78,'accept');return this[_0x27f9('0x62')](()=>_0x5749b7(_0x4aba65,null,_0x543dd4)),null;}}else{const _0x2c2233=_0x54338e[_0x27f9('0x36')]();_0x5076a7[_0x27f9('0x82')](_0x264ca8=>_0x264ca8['containsRange'](_0x2c2233,!0x0))&&_0x54338e[_0x27f9('0x34')]();if(_0x5076a7['every'](_0x2e1205=>_0x2c2233[_0x27f9('0x3')](_0x2e1205,!0x0))){const _0x90d042=this[_0x27f9('0xb6')]['getSuggestionCallback'](_0x27f9('0x119'),_0x189b78,'accept');return this[_0x27f9('0x62')](()=>_0x90d042(_0x5076a7,null,_0x543dd4)),null;}}const _0x362b00=this['_suggestionFactory'][_0x27f9('0xc7')](_0x27f9('0x119'),_0x189b78,_0x27f9('0x13'));let _0x3d4ef3=null;for(const _0x44c250 of this['getSuggestions']())if(_0x44c250[_0x27f9('0xc3')]['id']==_0xc2a493['id']&&_0x44c250['isInContent']&&'deletion'==_0x44c250[_0x27f9('0x10e')]&&_0x44c250['subType']==_0x189b78&&(_0x362b00(_0x44c250[_0x27f9('0x7a')](),_0x5076a7)||_0x362b00(_0x5076a7,_0x44c250[_0x27f9('0x7a')]()))){if(_0x3d4ef3){if(_0x44c250['commentThread']&&_0x44c250[_0x27f9('0x67')]['length'])continue;for(const _0x25d6f6 of _0x44c250[_0x27f9('0x7a')]())_0x3d4ef3[_0x27f9('0xfd')](_0x25d6f6)||_0x3d4ef3[_0x27f9('0xc1')](_0x25d6f6);_0x44c250[_0x27f9('0xcf')]();}else{_0x3d4ef3=_0x44c250;for(const _0x4aa016 of _0x5076a7)_0x44c250[_0x27f9('0xfd')](_0x4aa016)||_0x44c250[_0x27f9('0xc1')](_0x4aa016);}}if(_0x3d4ef3)return _0x3d4ef3;_0x4010a1[_0x27f9('0x7')]();for(const _0x924b43 of _0x5076a7)for(const {suggestion:_0x8dc5ad,meta:_0x3225b5}of this[_0x27f9('0x5')](_0x924b43,_0x27f9('0x119')))_0x3225b5[_0x27f9('0xf5')]&&_0x4010a1[_0x27f9('0x5b')](_0x8dc5ad);for(const _0x494d55 of _0x4010a1){const _0x34e3a6=_0x494d55[_0x27f9('0x7a')]();if(!_0x543dd4||!_0x543dd4[_0x27f9('0x102')]){if(_0x5076a7[_0x27f9('0xba')](_0x4f2c83=>_0x34e3a6[_0x27f9('0x82')](_0x353bdd=>_0x353bdd['containsRange'](_0x4f2c83,!0x0))))return _0x494d55;}(!_0x494d55[_0x27f9('0xb4')]||!_0x494d55[_0x27f9('0xb4')][_0x27f9('0x102')])&&(_0x34e3a6['every'](_0x5d78c4=>_0x5076a7[_0x27f9('0x82')](_0x2e1c5d=>_0x2e1c5d[_0x27f9('0x3')](_0x5d78c4,!0x0)))&&_0x494d55[_0x27f9('0x34')]());}const _0x508aaa=_0x322ea4(),_0x6e6dee=_0xc2a493['id'],_0x9852db='deletion:'+_0x189b78,_0x28cad1=this[_0x27f9('0xec')]({'id':_0x508aaa,'type':_0x9852db,'createdAt':new Date(),'authorId':_0x6e6dee,'attributes':_0x543dd4});for(const _0x1002e0 of _0x5076a7)_0x1002e0['detach'](),_0x1002e0['isCollapsed']||_0x27f9('0xd3')==_0x1002e0[_0x27f9('0x109')][_0x27f9('0xca')]||this[_0x27f9('0x69')](_0x9852db,_0x508aaa,_0x6e6dee,_0x1002e0,_0xfe1c55['getMultiRangeId']());return _0x28cad1;}[_0x27f9('0x52')](_0x28d45c,_0x14276){const _0x217e5a=_0x28d45c[_0x27f9('0xa6')]();this[_0x27f9('0xd9')][_0x27f9('0x11d')](_0x4decb5=>{_0x4decb5[_0x27f9('0x10f')](_0x217e5a,{'range':_0x14276});});}['_addThreadToSuggestion'](_0x50c1a6){const _0x52931f=_0x50c1a6['id'],_0x4ab73b=this[_0x27f9('0x1c')][_0x27f9('0x2e')][_0x27f9('0xa0')](_0x27f9('0x32'));this['_commentsRepository'][_0x27f9('0x87')](_0x52931f)||this[_0x27f9('0x59')]['addCommentThread']({'channelId':_0x4ab73b,'threadId':_0x52931f});const _0x10e2f1=this[_0x27f9('0x59')][_0x27f9('0x1b')](_0x52931f);_0x10e2f1[_0x27f9('0x112')](_0x27f9('0x39')),_0x10e2f1[_0x27f9('0x39')]=!0x1,_0x50c1a6[_0x27f9('0x67')]=_0x10e2f1;}[_0x27f9('0x5c')](_0x4f3552,_0xa0ed5,_0x53f8c5,_0x5bc9ac){if(_0x4f3552[_0x27f9('0x10e')]!=_0xa0ed5||_0x4f3552[_0x27f9('0x10d')]!=_0x53f8c5||_0x4f3552[_0x27f9('0xc3')]['id']!=_0x5bc9ac)throw this[_0x27f9('0x1c')][_0x27f9('0x9f')](_0x27f9('0x4e')),new _0x38ab46('track-changes-suggestion-data-mismatch',this);}[_0x27f9('0x75')](_0x4a0c3d,_0x1cac4c){const _0x16d878=_0x4a0c3d[_0x27f9('0x36')]();if(_0x1cac4c[_0x27f9('0x8a')](_0x16d878))_0x4a0c3d['removeMarkers']();else{if(_0x16d878[_0x27f9('0x3')](_0x1cac4c)){const _0x317c65=this[_0x27f9('0xd9')]['createPositionAt'](_0x1cac4c['start'][_0x27f9('0x71')],_0x27f9('0x50'));this[_0x27f9('0x52')](_0x4a0c3d,this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x16d878[_0x27f9('0xa3')],_0x317c65));const _0x5de351=_0x322ea4(),_0x5b8c06=_0x4a0c3d[_0x27f9('0xc3')]['id'],_0x8e418e=_0x4a0c3d[_0x27f9('0x10e')]+':'+_0x4a0c3d['subType'];this['_setSuggestionData']({'id':_0x5de351,'type':_0x8e418e,'createdAt':new Date(),'authorId':_0x5b8c06,'data':_0x4a0c3d[_0x27f9('0x1a')],'attributes':_0x4a0c3d[_0x27f9('0xb4')]});const _0x351618=this[_0x27f9('0xd9')][_0x27f9('0xf6')](_0x1cac4c[_0x27f9('0x50')]['parent'],_0x27f9('0x44')),_0x4a7de7=this[_0x27f9('0xd9')]['createRange'](_0x351618,_0x16d878[_0x27f9('0x50')]);this['_addSuggestionMarker'](_0x8e418e,_0x5de351,_0x5b8c06,_0x4a7de7);}else{if(_0x16d878[_0x27f9('0x5e')](_0x1cac4c['start'])){const _0x2dc7ed=this[_0x27f9('0xd9')][_0x27f9('0xf6')](_0x1cac4c['start'][_0x27f9('0x71')],_0x27f9('0x50'));this[_0x27f9('0x52')](_0x4a0c3d,this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x16d878[_0x27f9('0xa3')],_0x2dc7ed));}else{const _0x484629=this[_0x27f9('0xd9')]['createPositionAt'](_0x1cac4c[_0x27f9('0x50')][_0x27f9('0x33')],_0x27f9('0x44'));this[_0x27f9('0x52')](_0x4a0c3d,this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x484629,_0x16d878[_0x27f9('0x50')]));}}}}[_0x27f9('0xff')](_0xf4c23d){for(const {suggestion:_0x5f4515,meta:_0x5b99be}of this[_0x27f9('0x5')](_0xf4c23d,_0x27f9('0xda'))){if(!_0x5b99be['isOwn'])continue;const _0x528cb4=_0x5f4515[_0x27f9('0x7a')]();for(const _0x4058d0 of _0x528cb4)if(!_0xf4c23d['getDifference'](_0x4058d0)['length'])return!0x0;}return!0x1;}[_0x27f9('0x117')](_0x3cefeb){const _0x54a974=this[_0x27f9('0x1c')][_0x27f9('0xef')]['get'](_0x27f9('0x61'))['getUser'](_0x3cefeb);if(!_0x54a974)throw new _0x38ab46(_0x27f9('0xf3'),this);return _0x54a974;}[_0x27f9('0x2c')](_0x4495b9,_0x3c2537,_0x3502a8,_0x4dba50){const _0x3cb1c3=this[_0x27f9('0x117')](_0x4dba50),_0x4d156b=this['_suggestionFactory']['buildSuggestion'](_0x4495b9,_0x3c2537,_0x3502a8,_0x3cb1c3,_0x45d5fd=>this[_0x27f9('0x72')](_0x3502a8,{'attributes':_0x45d5fd}));return this[_0x27f9('0x9b')](_0x4d156b,'accept',()=>{this[_0x27f9('0x72')](_0x3502a8,{'state':'accepted'});},{'priority':_0x27f9('0xa1')}),this['listenTo'](_0x4d156b,'discard',()=>{this['_updateSuggestionData'](_0x3502a8,{'state':_0x27f9('0x21')});},{'priority':_0x27f9('0xa1')}),this[_0x27f9('0x11b')][_0x27f9('0xe9')](_0x3502a8,_0x4d156b),this['_suggestionState'][_0x27f9('0xe9')](_0x4d156b,_0x27f9('0x122')),_0x4d156b;}['_splitMarkerName'](_0x4208a2){const _0x4ea21e=_0x4208a2[_0x27f9('0x4d')](':');return{'group':_0x4ea21e[0x0],'type':_0x4ea21e[0x1],'subType':_0x4ea21e[_0x27f9('0xed')]>=0x5?_0x4ea21e[0x2]:null,'id':_0x4ea21e['length']<0x5?_0x4ea21e[0x2]:_0x4ea21e[0x3],'authorId':_0x4ea21e[_0x27f9('0xed')]<0x5?_0x4ea21e[0x3]:_0x4ea21e[0x4],'markerCount':0x6==_0x4ea21e[_0x27f9('0xed')]?_0x4ea21e[0x5]:null};}[_0x27f9('0xe3')](_0x27f083,_0x4446ae,_0x486c24){const _0x304061=_0x27f083['getFirstRange'](),_0x9c1a33=_0x304061[_0x27f9('0xa3')],_0x185b38=_0x304061['end'];this[_0x27f9('0x52')](_0x27f083,this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x9c1a33,_0x4446ae));const _0x278f03=_0x322ea4(),_0x4b091e=_0x27f083[_0x27f9('0xc3')]['id'],_0x19f383=_0x27f083[_0x27f9('0x10e')]+(_0x27f083[_0x27f9('0x10d')]?':'+_0x27f083[_0x27f9('0x10d')]:'');this[_0x27f9('0xec')]({'id':_0x278f03,'type':_0x19f383,'createdAt':new Date(),'authorId':_0x4b091e,'originalSuggestionId':_0x27f083['id'],'data':_0x27f083[_0x27f9('0x1a')]}),_0x27f9('0xc')==_0x27f083['type']&&(_0x486c24=this[_0x27f9('0xd9')][_0x27f9('0x64')](_0x486c24['parent'])),this['_addSuggestionMarker'](_0x19f383,_0x278f03,_0x4b091e,this['_model']['createRange'](_0x486c24,_0x185b38));}['_findSuggestions'](_0x2409b7,_0xbf8c17=null){const _0xa47e78=[],_0x2e9eaa=this[_0x27f9('0xd9')][_0x27f9('0x85')],_0x5e436b=this[_0x27f9('0x1c')][_0x27f9('0xef')]['get'](_0x27f9('0x61'))['me'];for(const _0x28896e of this[_0x27f9('0x25')]())if(_0x28896e['isInContent']&&(!_0xbf8c17||_0x28896e['type']==_0xbf8c17))for(const _0x4d2289 of _0x28896e[_0x27f9('0x7a')]()){const _0x402599=_0x2409b7[_0x27f9('0xa3')][_0x27f9('0x8a')](_0x4d2289[_0x27f9('0x50')])||_0x2409b7[_0x27f9('0x50')][_0x27f9('0x8a')](_0x4d2289[_0x27f9('0xa3')]);if(_0x402599||_0x2409b7[_0x27f9('0x23')](_0x4d2289)){const _0x2bea0e=_0x2409b7[_0x27f9('0x3')](_0x4d2289)&&pt(_0x2e9eaa,_0x4d2289[_0x27f9('0xa3')],_0x2409b7),_0x46db3a=_0x4d2289[_0x27f9('0x3')](_0x2409b7)&&pt(_0x2e9eaa,_0x2409b7[_0x27f9('0xa3')],_0x4d2289);_0xa47e78[_0x27f9('0x14')]({'suggestion':_0x28896e,'meta':{'isOwn':_0x5e436b==_0x28896e['author'],'isNextTo':_0x402599,'isInsideObject':_0x2bea0e,'containsRangeInObject':_0x46db3a}});break;}}return _0xa47e78;}[_0x27f9('0x69')](_0x28b99d,_0x5d6ba2,_0xe4fa78,_0x3fa3fd,_0x449dc4=null){this[_0x27f9('0xd9')][_0x27f9('0x11d')](_0x44f535=>{let _0x24d65a=_0x27f9('0x2f')+_0x28b99d+':'+_0x5d6ba2+':'+_0xe4fa78;_0x449dc4&&(_0x24d65a=_0x24d65a+':'+_0x449dc4),_0x44f535[_0x27f9('0xa2')](_0x24d65a,{'range':_0x3fa3fd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1a8401){const _0x140935=_0x1a8401[_0x27f9('0x7f')],_0x5a48a8=_0x1a8401[_0x27f9('0x7e')];_0x1a8401['previous']=null,null!=_0x140935&&(_0x140935[_0x27f9('0x7e')]=null),_0x1a8401[_0x27f9('0x7e')]=null,null!=_0x5a48a8&&(_0x5a48a8[_0x27f9('0x7f')]=null),_0x27f9('0x12c')==this[_0x27f9('0x53')][_0x27f9('0xa0')](_0x1a8401)&&(this[_0x27f9('0x53')]['set'](_0x1a8401,'removed'),this[_0x27f9('0x6c')](_0x27f9('0x38'),_0x1a8401,_0x140935,_0x5a48a8));}[_0x27f9('0xec')](_0x59033b){const _0x544240=_0x59033b['id'],_0x5def22=this['addSuggestionData'](_0x59033b);if(this[_0x27f9('0x8f')]&&this['_adapter']['addSuggestion']){const _0x1e24a6=this[_0x27f9('0x1c')][_0x27f9('0xef')][_0x27f9('0xa0')](_0x27f9('0x18')),_0x14969f=_0x5def22[_0x27f9('0x29')],_0x5cfb75=_0x5def22[_0x27f9('0x10d')]?_0x5def22[_0x27f9('0x10e')]+':'+_0x5def22[_0x27f9('0x10d')]:_0x5def22[_0x27f9('0x10e')],_0x744dbd=this['editor'][_0x27f9('0xe1')],_0x40e7fc=_0x1e24a6['add'](_0x1f9598(_0x744dbd,'PENDING_ACTION_SUGGESTION')),_0x367a36={'id':_0x544240,'type':_0x5cfb75,'hasComments':_0x14969f,'data':_0x59033b['data']||null,'originalSuggestionId':_0x59033b[_0x27f9('0x31')]||null,'attributes':_0x5def22[_0x27f9('0xb4')]};this[_0x27f9('0x8f')]['addSuggestion'](_0x367a36)[_0x27f9('0x11e')](_0x4907e9=>{_0x5def22[_0x27f9('0x89')]=!0x0,_0x1e24a6[_0x27f9('0xc0')](_0x40e7fc),_0x4907e9&&_0x4907e9[_0x27f9('0x49')]&&(this[_0x27f9('0x11b')][_0x27f9('0xa0')](_0x544240)[_0x27f9('0x49')]=_0x4907e9[_0x27f9('0x49')]);});}return _0x5def22;}[_0x27f9('0x72')](_0x4d6903,_0x2d7fb0){const _0x1727e9=this[_0x27f9('0x1c')][_0x27f9('0xef')][_0x27f9('0xa0')]('PendingActions'),_0xca5acb=this[_0x27f9('0x11b')][_0x27f9('0xa0')](_0x4d6903);if(this[_0x27f9('0x8f')]&&this[_0x27f9('0x8f')]['updateSuggestion']){if(_0xca5acb['_saved']){const _0x13643f=_0x1727e9[_0x27f9('0x5b')](_0x1f9598(this[_0x27f9('0x1c')][_0x27f9('0xe1')],_0x27f9('0xf8')));this[_0x27f9('0x8f')][_0x27f9('0x79')](_0x4d6903,_0x2d7fb0)['then'](()=>{_0x1727e9[_0x27f9('0xc0')](_0x13643f);});}else _0xca5acb['on'](_0x27f9('0xd8'),()=>{this[_0x27f9('0x72')](_0x4d6903,_0x2d7fb0);});}}[_0x27f9('0xf1')](_0x58cedb){if(!this[_0x27f9('0x8f')]||!this['_adapter']['getSuggestion'])throw new _0x38ab46(_0x27f9('0x3f'),this);return this[_0x27f9('0x8f')]['getSuggestion'](_0x58cedb);}[_0x27f9('0x1')](_0x3ed86d){const {id:_0x3040bb,type:_0x89161e,subType:_0x145e78,authorId:_0x37ba9a}=this['_splitMarkerName'](_0x3ed86d),_0x1db93a=this[_0x27f9('0x11b')][_0x27f9('0xa0')](_0x3040bb)||this[_0x27f9('0x2c')](_0x89161e,_0x145e78,_0x3040bb,_0x37ba9a);switch(this[_0x27f9('0x5c')](_0x1db93a,_0x89161e,_0x145e78,_0x37ba9a),this[_0x27f9('0x53')]['get'](_0x1db93a)){case _0x27f9('0x122'):this[_0x27f9('0xf1')](_0x3040bb)[_0x27f9('0x11e')](_0x57abe4=>{let _0x6b60f7=Promise['resolve']();_0x57abe4[_0x27f9('0x29')]&&(_0x6b60f7=this[_0x27f9('0x59')][_0x27f9('0x5d')]({'channelId':this[_0x27f9('0x1c')][_0x27f9('0x2e')][_0x27f9('0xa0')]('collaboration.channelId'),'threadId':_0x3040bb})),_0x6b60f7[_0x27f9('0x11e')](()=>{this[_0x27f9('0x103')](_0x57abe4)[_0x27f9('0x89')]=!0x0;});}),this[_0x27f9('0x53')][_0x27f9('0xe9')](_0x1db93a,_0x27f9('0xf0'));break;case'removed':this[_0x27f9('0x72')](_0x3040bb,{'state':_0x27f9('0x3a')});case _0x27f9('0x100'):this[_0x27f9('0x53')][_0x27f9('0xe9')](_0x1db93a,_0x27f9('0x12c')),this[_0x27f9('0x6c')](_0x27f9('0xc4'),_0x1db93a);break;case _0x27f9('0x12c'):this[_0x27f9('0x6c')]('suggestionChanged',_0x1db93a);}_0x1db93a['addMarkerName'](_0x3ed86d),this[_0x27f9('0xf')](_0x1db93a);}['_refreshSuggestionsChain'](_0x3ad47b){if(_0x3ad47b[_0x27f9('0xd4')])return;let _0x1a8582=!0x0,_0x472357=!0x0;for(const _0x35d55e of this[_0x27f9('0x25')]()){if(_0x35d55e['isMultiRange'])continue;if(_0x35d55e==_0x3ad47b||!_0x35d55e[_0x27f9('0x65')])continue;if(_0x35d55e[_0x27f9('0xc3')]['id']!=_0x3ad47b[_0x27f9('0xc3')]['id'])continue;const _0xb9c069=this['_suggestionFactory'][_0x27f9('0xc7')](_0x3ad47b[_0x27f9('0x10e')],_0x3ad47b[_0x27f9('0x10d')],'chain'),_0x22bf00=this['_suggestionFactory']['getSuggestionCallback'](_0x35d55e[_0x27f9('0x10e')],_0x35d55e[_0x27f9('0x10d')],'chain'),_0x1c6d69=_0xb9c069(_0x3ad47b,_0x35d55e),_0x1dc87d=_0x22bf00(_0x3ad47b,_0x35d55e);_0x1c6d69&&_0x1dc87d&&(_0x1c6d69[0x1]['commentThread']&&_0x1c6d69[0x1][_0x27f9('0x67')][_0x27f9('0xed')]||(_0x1c6d69[0x0][_0x27f9('0x7e')]=_0x1c6d69[0x1],_0x1c6d69[0x1]['previous']=_0x1c6d69[0x0],_0x1c6d69[0x0]==_0x3ad47b?_0x472357=!0x1:_0x1a8582=!0x1));}_0x3ad47b[_0x27f9('0x7f')]&&_0x1a8582&&(_0x3ad47b[_0x27f9('0x7f')][_0x27f9('0x7e')]=null,_0x3ad47b[_0x27f9('0x7f')]=null),_0x3ad47b[_0x27f9('0x7e')]&&_0x472357&&(_0x3ad47b[_0x27f9('0x7e')][_0x27f9('0x7f')]=null,_0x3ad47b[_0x27f9('0x7e')]=null);}[_0x27f9('0x35')](_0x593e6a){for(const _0x448c92 of this[_0x27f9('0x11b')][_0x27f9('0x115')]()){if(_0x448c92==_0x593e6a||!_0x448c92['isInContent'])continue;if(_0x448c92[_0x27f9('0x10e')]!=_0x593e6a[_0x27f9('0x10e')]||_0x448c92[_0x27f9('0xc3')]['id']!=_0x593e6a[_0x27f9('0xc3')]['id']||_0x448c92[_0x27f9('0x10d')]!=_0x593e6a[_0x27f9('0x10d')])continue;const _0x506f05=this[_0x27f9('0xb6')][_0x27f9('0xc7')](_0x593e6a[_0x27f9('0x10e')],_0x593e6a[_0x27f9('0x10d')],'join');if(_0x506f05(_0x448c92[_0x27f9('0x7a')](),_0x593e6a[_0x27f9('0x7a')]())){if(_0x593e6a[_0x27f9('0x67')]&&_0x593e6a[_0x27f9('0x67')][_0x27f9('0xed')])continue;return this[_0x27f9('0xcd')](_0x448c92,_0x593e6a),!0x0;}if(_0x506f05(_0x593e6a[_0x27f9('0x7a')](),_0x448c92[_0x27f9('0x7a')]())){if(_0x448c92[_0x27f9('0x67')]&&_0x448c92[_0x27f9('0x67')][_0x27f9('0xed')])continue;return this[_0x27f9('0xcd')](_0x593e6a,_0x448c92),!0x0;}}return!0x1;}[_0x27f9('0xcd')](_0x5c056f,_0x3b4c10){if(_0x5c056f[_0x27f9('0xd4')])for(const _0x4492d4 of _0x3b4c10[_0x27f9('0x7a')]())_0x5c056f['addRange'](_0x4492d4);else{const _0x19ad48=_0x3b4c10[_0x27f9('0x36')]()[_0x27f9('0x50')];this[_0x27f9('0x52')](_0x5c056f,this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x5c056f[_0x27f9('0x36')]()[_0x27f9('0xa3')],_0x19ad48));}_0x3b4c10[_0x27f9('0xcf')]();}}_0x4b58ec(d,_0x4f6dcf);class dt{constructor(_0x5bd42d){this[_0x27f9('0xfb')]=_0x5bd42d,this['_model']=_0x5bd42d[_0x27f9('0x43')],this[_0x27f9('0x2b')]=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}[_0x27f9('0xf2')](_0x4ddb64,_0x4fe3e2,_0x3a4683,_0x2e1fd9,_0x33a70c){return new _0xfe1c55(this['_model'],{'type':_0x4ddb64,'subType':_0x4fe3e2,'id':_0x3a4683,'author':_0x2e1fd9,'onAttributesChange':_0x33a70c,'onAccept':(..._0x45fbb6)=>this[_0x27f9('0xc7')](_0x4ddb64,_0x4fe3e2,_0x27f9('0x42'))(..._0x45fbb6),'onDiscard':(..._0x3e17d1)=>this[_0x27f9('0xc7')](_0x4ddb64,_0x4fe3e2,_0x27f9('0x34'))(..._0x3e17d1)});}[_0x27f9('0x11c')](_0x20870b,_0x413547,_0x2f175f,_0x45a4ad){const _0xe07f96=_0x20870b+':'+_0x413547+':'+_0x2f175f;this['_customCallbacks'][_0x27f9('0xe9')](_0xe07f96,_0x45a4ad);}[_0x27f9('0xc7')](_0x1e1541,_0x21ef09,_0x3818db){const _0x54d98c=_0x1e1541+':'+_0x21ef09+':'+_0x3818db;return this[_0x27f9('0x2b')]['get'](_0x54d98c)||this[_0x27f9('0xb1')]['get'](_0x1e1541+':'+_0x3818db);}[_0x27f9('0xbb')](){const _0x308343=()=>{},_0x2a68fa=_0x292a2f=>{_0x292a2f[_0x27f9('0xcb')]((_0xa00211,_0x3226b0)=>_0xa00211[_0x27f9('0xa3')][_0x27f9('0xfa')](_0x3226b0[_0x27f9('0xa3')])?0x1:-0x1),this['_model'][_0x27f9('0x11d')](_0xa2692e=>{for(const _0x19c90b of _0x292a2f){let _0x1d5ecc;_0x1d5ecc=_0x19c90b[_0x27f9('0x50')][_0x27f9('0xe4')]&&_0x19c90b[_0x27f9('0x50')][_0x27f9('0x33')]==_0x19c90b[_0x27f9('0xa3')][_0x27f9('0x94')]?_0xa2692e[_0x27f9('0x129')](_0x19c90b[_0x27f9('0xa3')]['nodeAfter'],'on'):_0xa2692e['createSelection'](_0x19c90b),this[_0x27f9('0xd9')][_0x27f9('0xe0')](_0x1d5ecc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x13497e=(_0x48ff5b,_0x477423)=>{this[_0x27f9('0xd9')][_0x27f9('0x11d')](_0x2ed2c5=>{const {commandName:_0x3f1e42,commandParams:_0x7c8563=[]}=_0x477423,_0x26496b=_0x48ff5b[0x0];if(_0x27f9('0xd3')==_0x26496b['root'][_0x27f9('0xca')])return;const _0x48efea=Array[_0x27f9('0x9c')](this[_0x27f9('0xd9')][_0x27f9('0x54')]['selection'][_0x27f9('0x7a')]())['map'](_0x15c89e=>_0xdaaa0f[_0x27f9('0x19')](_0x15c89e));kt(_0x26496b)?_0x2ed2c5['setSelection'](this[_0x27f9('0xd9')][_0x27f9('0x27')](_0x26496b[_0x27f9('0x50')])):_0x2ed2c5[_0x27f9('0xa7')](_0x26496b);for(const _0x559ffc of this[_0x27f9('0xfb')][_0x27f9('0x96')][_0x27f9('0x96')]())_0x559ffc[_0x27f9('0xee')]();_0x7c8563['push']({'forceDefaultExecution':!0x0}),this[_0x27f9('0xfb')][_0x27f9('0x6f')](_0x3f1e42,..._0x7c8563);const _0x2dfd23=_0x48efea['filter'](_0x2244de=>'$graveyard'!=_0x2244de[_0x27f9('0x109')][_0x27f9('0xca')]);_0x2dfd23['length']>0x0&&_0x2ed2c5[_0x27f9('0xa7')](_0x2dfd23);for(const _0x5d4d0c of _0x48efea)_0x5d4d0c[_0x27f9('0x9a')]();});},_0x408d8c=(_0x85c521,_0x5c1f1e)=>0x1==_0x85c521['length']&&0x1==_0x5c1f1e[_0x27f9('0xed')]&&_0x85c521[0x0][_0x27f9('0x50')][_0x27f9('0x8a')](_0x5c1f1e[0x0][_0x27f9('0xa3')]),_0x1f20a4=(_0x250a98,_0xc87d1f)=>It(_0x250a98,_0xc87d1f,this[_0x27f9('0xd9')])?[_0x250a98,_0xc87d1f]:It(_0xc87d1f,_0x250a98,this[_0x27f9('0xd9')])?[_0xc87d1f,_0x250a98]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x308343),this[_0x27f9('0xb1')][_0x27f9('0xe9')](_0x27f9('0x6b'),_0x2a68fa),this[_0x27f9('0xb1')][_0x27f9('0xe9')]('insertion:join',_0x408d8c),this['_defaultCallbacks'][_0x27f9('0xe9')](_0x27f9('0xb3'),_0x1f20a4),this[_0x27f9('0xb1')][_0x27f9('0xe9')](_0x27f9('0xc5'),_0x2a68fa),this['_defaultCallbacks'][_0x27f9('0xe9')]('deletion:discard',_0x308343),this['_defaultCallbacks'][_0x27f9('0xe9')](_0x27f9('0x2d'),_0x408d8c),this[_0x27f9('0xb1')][_0x27f9('0xe9')]('deletion:chain',_0x1f20a4),this[_0x27f9('0xb1')][_0x27f9('0xe9')](_0x27f9('0xeb'),_0x13497e),this[_0x27f9('0xb1')][_0x27f9('0xe9')]('formatInline:discard',_0x308343),this[_0x27f9('0xb1')]['set'](_0x27f9('0xdf'),_0x408d8c),this[_0x27f9('0xb1')][_0x27f9('0xe9')]('formatInline:chain',_0x308343),this[_0x27f9('0xb1')][_0x27f9('0xe9')](_0x27f9('0xfe'),_0x13497e),this[_0x27f9('0xb1')][_0x27f9('0xe9')](_0x27f9('0xce'),_0x308343),this[_0x27f9('0xb1')][_0x27f9('0xe9')]('formatBlock:join',_0x408d8c),this[_0x27f9('0xb1')][_0x27f9('0xe9')](_0x27f9('0x7c'),_0x308343);}}function pt(_0x53e4d8,_0x568c6a,_0x5e6e78){for(const _0x2912ad of _0x568c6a[_0x27f9('0x33')][_0x27f9('0x56')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2912ad[_0x27f9('0x109')]==_0x2912ad)return!0x1;if(!_0x5e6e78[_0x27f9('0x5a')](_0x2912ad))return!0x1;if(_0x53e4d8['isObject'](_0x2912ad)||_0x53e4d8[_0x27f9('0x99')](_0x2912ad))return!0x0;}}function kt(_0x271dce){return _0x271dce[_0x27f9('0x50')][_0x27f9('0x33')]==_0x271dce[_0x27f9('0xa3')]['nodeAfter']&&_0x271dce['end'][_0x27f9('0x1d')];}function wt(_0x2071be,_0x4d9cb5,_0x4475cc,_0x322e8c){const _0x51eb78=_0x2de6b9=>!_0x2de6b9[_0x27f9('0xc2')]['is'](_0x27f9('0xc6'))&&!_0x322e8c[_0x27f9('0x12a')](_0x2de6b9[_0x27f9('0xc2')]),_0x15c57e=_0x2071be[_0x27f9('0xa3')]['getLastMatchingPosition'](_0x51eb78),_0x42d7d7=_0x2071be[_0x27f9('0x50')]['getLastMatchingPosition'](_0x51eb78,{'direction':'backward'});return(!_0x2071be['start'][_0x27f9('0x8a')](_0x15c57e)||!_0x2071be[_0x27f9('0x50')][_0x27f9('0x8a')](_0x42d7d7))&&(_0x15c57e[_0x27f9('0xfa')](_0x42d7d7)?_0x4475cc[_0x27f9('0x10f')](_0x4d9cb5,{'range':_0x4475cc[_0x27f9('0x27')](_0x15c57e,_0x42d7d7)}):_0x4475cc['removeMarker'](_0x4d9cb5),!0x0);}function yt(_0x167ea7){return _0x437ad9(_0x167ea7);}function bt(_0x79d862){const _0x41a0c7=_0x79d862[_0x27f9('0xa3')][_0x27f9('0x94')];return _0x41a0c7&&_0x41a0c7['is'](_0x27f9('0x114'));}function St(_0x30380e,_0x5237a9){const _0x3188e2=_0x5237a9[_0x27f9('0x85')]['isObject'](_0x30380e)||_0x5237a9[_0x27f9('0x85')][_0x27f9('0xd6')](_0x30380e);return _0x5237a9[_0x27f9('0x27')](_0x5237a9[_0x27f9('0xf6')](_0x30380e,_0x27f9('0x58')),_0x3188e2?_0x5237a9[_0x27f9('0x111')](_0x30380e):_0x5237a9[_0x27f9('0xf6')](_0x30380e,'end'));}function It(_0x18edc1,_0x2899c6,_0x29d54f){const _0x3b4a4f=_0x18edc1[_0x27f9('0x36')](),_0x4983e3=_0x2899c6[_0x27f9('0x36')]();if(_0x3b4a4f[_0x27f9('0x50')][_0x27f9('0x8a')](_0x4983e3[_0x27f9('0xa3')]))return!0x0;if(_0x18edc1[_0x27f9('0x10e')]!=_0x2899c6[_0x27f9('0x10e')])return!0x1;if(!_0x3b4a4f[_0x27f9('0x50')][_0x27f9('0x10')](_0x4983e3[_0x27f9('0xa3')]))return!0x1;const _0x301ff4=_0x29d54f[_0x27f9('0x27')](_0x3b4a4f[_0x27f9('0x50')],_0x4983e3[_0x27f9('0xa3')])[_0x27f9('0xb5')]();for(const _0x210f39 of _0x301ff4)if([_0x27f9('0x5f'),'elementEnd'][_0x27f9('0xf7')](_0x210f39['type'])&&_0x29d54f[_0x27f9('0x85')]['isLimit'](_0x210f39['item']))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x55ca1d}from'ckeditor5/src/core';import{Collection as Ct}from'ckeditor5/src/utils';import{Model as bt,SplitButtonView as Tt,createDropdown as At,addListToDropdown as xt}from'ckeditor5/src/ui';import{Users as _0x7113d2,getDateTimeFormatter as Et,getMarkerDomElement as St}from'ckeditor5-collaboration/src/collaboration-core';import _0x3d2550 from'./trackchangesediting';import vt from'./ui/suggestioncontroller';import Nt from'./ui/view/suggestionthreadview';import It from'../theme/icons/track-changes.svg';import{debounce as Dt}from'lodash-es';export default class m extends _0x55ca1d{static get['requires'](){return[_0x3d2550,_0x7113d2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x21683c){super(_0x21683c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_debouncedHandlers']=new Map();const _0x1a95bb=this['editor']['config'];_0x1a95bb['define']('trackChanges.SuggestionThreadView',Nt),_0x1a95bb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1a95bb['get']('trackChanges.disableComments');}['init'](){const _0x2420d4=this['editor'],_0x2beb6a=_0x2420d4['plugins']['get'](_0x3d2550),_0x1a5600=_0x2420d4['plugins']['get']('Annotations'),_0x15a4d3=_0x2420d4['plugins']['get']('EditorAnnotations'),_0x3b3a80=_0x2420d4['plugins']['get']('CommentsRepository');_0x2420d4['ui']['componentFactory']['add']('trackChanges',_0x1f8adc=>this['_createUIButton'](_0x1f8adc)),_0x15a4d3['addSourceCollector'](()=>{const _0x3e2be6=[];for(const [_0x4649d1,_0x21cd0e]of Array['from'](this['_suggestionToController'])){const _0x4a475f=_0x4649d1['getAllAdjacentSuggestions'](),_0x556173=[];for(const _0x3ba956 of _0x4a475f){if(!_0x3ba956['isInContent'])continue;if(_0x3ba956['isMultiRange']){_0x556173['push'](..._0x3ba956['getRanges']());continue;}const _0x49371f=_0x3ba956['getFirstRange']();if(_0x556173['length']>0x0){const _0xc5160e=_0x556173[0x0]['getJoined'](_0x49371f);if(_0xc5160e){_0x556173[0x0]=_0xc5160e;continue;}}_0x556173['push'](_0x49371f);}_0x3e2be6['push']([_0x21cd0e['view'],_0x556173]);}return _0x3e2be6;}),this['listenTo'](_0x2beb6a,'suggestionLoaded',(_0x2e21f7,_0x1bf71b)=>{let _0x4fe29a=!0x1;const _0x5848a0=Dt(_0x3863de=>{_0x4fe29a||_0x3863de?_0x4fe29a&&_0x3863de&&(this['_destroyController'](_0x1bf71b),_0x15a4d3['refreshSelectedViews'](),_0x4fe29a=!0x1):(this['_initializeController'](_0x1bf71b),_0x15a4d3['refreshSelectedViews'](),_0x4fe29a=!0x0);},0xa);this['_debouncedHandlers']['set'](_0x1bf71b,_0x5848a0),this['listenTo'](_0x1bf71b,'change:previous',(_0xf4cd6d,_0x2f749f,_0x55f398,_0x3d2a21)=>{_0x1bf71b['isInContent']&&(null==_0x55f398?(this['_updateController'](_0x3d2a21['head']),_0x5848a0(!0x1)):(this['_updateController'](_0x55f398['head']),_0x5848a0(!0x0)));}),null===_0x1bf71b['previous']?_0x5848a0(!0x1):this['_updateController'](_0x1bf71b['head']);}),this['listenTo'](_0x2beb6a,'suggestionUnloaded',(_0x1c6a63,_0x6e7bec,_0x4c6976)=>{this['stopListening'](_0x6e7bec,'change:previous'),this['_debouncedHandlers']['get'](_0x6e7bec)['cancel'](),this['_debouncedHandlers']['delete'](_0x6e7bec);const _0x528a4b=_0x4c6976?_0x4c6976['head']:_0x6e7bec,_0x5985a4=this['_suggestionToController']['get'](_0x528a4b);null!==_0x4c6976&&this['_updateController'](_0x528a4b),null===_0x4c6976&&_0x5985a4&&this['_destroyController'](_0x6e7bec);}),this['listenTo'](_0x2beb6a,'suggestionChanged',(_0x45f29f,_0xcb25e5)=>{this['_updateController'](_0xcb25e5);}),this['listenTo'](_0x1a5600,'change:activeAnnotations',(_0x127996,_0x6d60a3,_0x4296df)=>{const _0x2163fe=Array['from'](_0x4296df,_0x10249e=>_0x10249e['innerView'])['filter'](_0x394002=>this['_viewToController']['has'](_0x394002)),_0x2d661f=[];for(const _0x5caefc of _0x2163fe){const _0x3c7179=this['_viewToController']['get'](_0x5caefc)['model']['getAllAdjacentSuggestions']();_0x2d661f['push'](..._0x3c7179['reduce']((_0x5b87ee,_0x52486d)=>[..._0x5b87ee,..._0x52486d['getMarkerNames']()],[]));}_0x2beb6a['activeMarkers']=_0x2d661f;}),this['listenTo'](_0x3b3a80,'addComment',(_0xb1adea,{threadId:_0x25cfb0,isFromAdapter:_0x560c48})=>{if(_0x560c48||!_0x2beb6a['hasSuggestion'](_0x25cfb0))return;const _0x24c36a=_0x2beb6a['getSuggestion'](_0x25cfb0);this['_suggestionToController']['get'](_0x24c36a)['view']['focus']();},{'priority':'lowest'});}['_createUIButton'](_0x1e4d52){const _0x53e5ea=At(_0x1e4d52,Tt),_0x439127=this['editor']['commands']['get']('trackChanges'),{t:t}=this['editor'];_0x53e5ea['buttonView']['set']({'tooltip':t('Track\x20changes'),'label':t('Track\x20changes'),'icon':It}),_0x53e5ea['buttonView']['bind']('isOn')['to'](_0x439127,'value'),_0x53e5ea['buttonView']['on']('execute',()=>_0x439127['execute']());const _0x1e3dd9=new Ct(),_0x4a5394=[{'type':'switchbutton','model':{'withText':!0x0,'label':t('Track\x20changes'),'commandName':'trackChanges'}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':t('Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'}}];for(const _0x1291ea of _0x4a5394){const _0x45ddf4={'type':_0x1291ea['type']};if(_0x1291ea['model']){const _0x268c75=new bt(_0x1291ea['model']),_0x175984=this['editor']['commands']['get'](_0x268c75['commandName']);_0x268c75['bind']('isOn','isEnabled')['to'](_0x175984,'value','isEnabled'),_0x45ddf4['model']=_0x268c75;}_0x1e3dd9['add'](_0x45ddf4);}xt(_0x53e5ea,_0x1e3dd9);const _0x2757ac=_0x4a5394['filter'](_0x2408b1=>null!=_0x2408b1['model'])['map'](_0x27e9b2=>this['editor']['commands']['get'](_0x27e9b2['model']['commandName']));return _0x53e5ea['buttonView']['actionView']['unbind']('isEnabled'),_0x53e5ea['buttonView']['arrowView']['unbind']('isEnabled'),_0x53e5ea['buttonView']['actionView']['bind']('isEnabled')['to'](_0x439127,'isEnabled'),_0x53e5ea['buttonView']['arrowView']['bind']('isEnabled')['toMany'](_0x2757ac,'isEnabled',(..._0x8cc447)=>_0x8cc447['some'](_0x2b9399=>_0x2b9399)),_0x53e5ea['on']('execute',_0x458858=>this['editor']['execute'](_0x458858['source']['commandName'])),_0x53e5ea;}['_initializeController'](_0xdb0cd){const _0x315e7b=this['editor'],_0x27c82f=_0x315e7b['config'],_0x91d998=_0x315e7b['plugins']['get']('Annotations'),_0x3762a4=_0x315e7b['plugins']['get']('CommentsRepository'),_0x402e20=_0xdb0cd['getAllAdjacentSuggestions']()['filter'](_0x590ceb=>_0x590ceb['isInContent']),_0x1d128c=_0x315e7b['plugins']['get'](_0x7113d2)['me'],_0x64e3f9=_0x315e7b['commands']['get']('acceptSuggestion'),_0x229502=_0x315e7b['commands']['get']('discardSuggestion'),_0x385b0e=_0x27c82f['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x328863,CommentThreadInputView:_0x43f2f5}=_0x315e7b['plugins']['get']('CommentsUI'),_0x2217b0=new _0x385b0e(_0x315e7b['locale'],_0xdb0cd,_0x1d128c,{'disableComments':this['_disableComments'],'editorConfig':_0x27c82f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x27c82f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x27c82f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x27c82f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':Et(_0x27c82f['get']('locale')),'CommentView':_0x27c82f['get']('comments')['CommentView'],'CommentsListView':_0x328863,'CommentThreadInputView':_0x43f2f5}),_0x133b44=_0x3762a4['createCommentThreadController'](_0xdb0cd['commentThread'],_0x2217b0),_0x4b262f=new vt(_0xdb0cd,_0x2217b0,_0x64e3f9,_0x229502,_0x133b44);_0x2217b0['descriptionParts']=_0x315e7b['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x402e20),this['_suggestionToController']['set'](_0xdb0cd,_0x4b262f),this['_viewToController']['set'](_0x2217b0,_0x4b262f);const _0xad6752=_0x91d998['createAnnotationView'](this['editor']['locale'],_0x2217b0);_0xad6752['bind']('isDirty')['to'](_0x2217b0,'isDirty'),_0xad6752['bind']('length')['to'](_0x2217b0),_0xad6752['bind']('type')['to'](_0x2217b0,'type',_0x297505=>'suggestion-'+_0x297505);const _0x4ebe8d=_0x91d998['createAnnotation']({'view':_0xad6752,'target':()=>{const _0xbb5e9a=_0x402e20[0x0]['getFirstMarker']();if(!_0xbb5e9a)return null;const _0x5955d3=_0xbb5e9a['getRange']()['getContainedElement']();return _0x5955d3&&!_0x315e7b['editing']['mapper']['toViewElement'](_0x5955d3)?null:St(_0x315e7b['editing'],_0xbb5e9a)||null;},'type':()=>'suggestion-'+_0x4b262f['view']['type']});_0x91d998['add'](_0x4ebe8d);const _0x444901=_0x315e7b['plugins']['get']('PendingActions');let _0x43c7b5;_0x2217b0['on']('change:isDirty',(_0x465b4a,_0x116877,_0x5cfcd9)=>{if(_0x5cfcd9){const t=this['editor']['locale']['t'];_0x43c7b5=_0x444901['add'](t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'}));}else _0x444901['remove'](_0x43c7b5),_0x43c7b5=null;});}['_destroyController'](_0x3a3be6){const _0x34c6b0=this['editor']['plugins']['get']('Annotations'),_0x2ba787=this['_suggestionToController']['get'](_0x3a3be6),_0x3ca7d0=_0x2ba787['view'],_0x4aba9a=_0x34c6b0['getByInnerView'](_0x3ca7d0);_0x4aba9a&&_0x34c6b0['remove'](_0x4aba9a),this['_suggestionToController']['delete'](_0x3a3be6),this['_viewToController']['delete'](_0x3ca7d0),_0x2ba787['destroy'](),_0x3ca7d0['destroy']();}['_updateController'](_0x1e1ec3){if(!_0x1e1ec3['isInContent']||!this['_suggestionToController']['has'](_0x1e1ec3))return;const _0x7849e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fa193=this['_suggestionToController']['get'](_0x1e1ec3),_0x3713b8=_0x1e1ec3['getAllAdjacentSuggestions']();_0x1fa193['view']['descriptionParts']=_0x7849e1['_descriptionFactory']['getDescriptions'](_0x3713b8);}['destroy'](){super['destroy']();for(const _0x236329 of this['_suggestionToController']['keys']())this['_destroyController'](_0x236329);for(const _0x5823ed of this['_debouncedHandlers']['values']())_0x5823ed['cancel']();this['_debouncedHandlers']['clear']();}}
23
+ const _0x1ba3=['_createUIButton','change:previous','getRange','_disableComments','_viewToController','discardSuggestion','comments.maxThreadTotalWeight','reduce','actionView','PENDING_ACTION_SUGGESTION','PendingActions','isMultiRange','toMany','values','buttonView','head','getSuggestion','commands','source','destroy','Discard\x20all\x20suggestions','config','getAllAdjacentSuggestions','locale','createCommentThreadController','push','trackChanges.disableComments','_debouncedHandlers','getContainedElement','get','_updateController','requires','commentThread','unbind','change:isDirty','define','plugins','_destroyController','TrackChangesEditing','comments','filter','acceptAllSuggestions','some','from','_suggestionToController','suggestionUnloaded','set','acceptSuggestion','hasSuggestion','arrowView','suggestion-','discardSelectedSuggestions','remove','length','Accept\x20all\x20selected\x20suggestions','descriptionParts','model','Annotations','_descriptionFactory','map','SuggestionThreadView','type','CommentView','change:activeAnnotations','getJoined','componentFactory','view','addSourceCollector','CommentsRepository','getByInnerView','isInContent','comments.maxCommentCharsWhenCollapsed','lowest','clear','acceptSelectedSuggestions','bind','isOn','TrackChangesUI','getRanges','cancel','comments.maxCommentsWhenCollapsed','switchbutton','keys','createAnnotation','_initializeController','separator','add','refreshSelectedViews','trackChanges.SuggestionThreadView','value','editing','listenTo','Discard\x20all\x20selected\x20suggestions','isEnabled','trackChanges','Track\x20changes','editor','pluginName','toViewElement','focus','EditorAnnotations','suggestionLoaded','delete','button','has','activeMarkers','commandName','previous'];(function(_0x3c00bd,_0x1ba3b9){const _0x5d3cdb=function(_0x137282){while(--_0x137282){_0x3c00bd['push'](_0x3c00bd['shift']());}};_0x5d3cdb(++_0x1ba3b9);}(_0x1ba3,0x160));const _0x5d3c=function(_0x3c00bd,_0x1ba3b9){_0x3c00bd=_0x3c00bd-0x0;let _0x5d3cdb=_0x1ba3[_0x3c00bd];return _0x5d3cdb;};import{Plugin as _0x5a479b}from'ckeditor5/src/core';import{Collection as _0x313930}from'ckeditor5/src/utils';import{Model as _0x1d2067,SplitButtonView as _0x41a99c,createDropdown as _0x147936,addListToDropdown as _0x4487f7}from'ckeditor5/src/ui';import{Users as _0x2478e6,getDateTimeFormatter as _0x47490d,getMarkerDomElement as _0x1087df}from'ckeditor5-collaboration/src/collaboration-core';import{debounce as _0x31062d}from'lodash-es';import _0x4d5edd from'./trackchangesediting';import _0x379cfd from'./ui/suggestioncontroller';import _0xd0e20d from'./ui/view/suggestionthreadview';import{getTranslation as _0x467748}from'./utils/common-translations';import _0x58d7bf from'../theme/icons/track-changes.svg';export default class m extends _0x5a479b{static get[_0x5d3c('0x3')](){return[_0x4d5edd,_0x2478e6,_0x5d3c('0x28'),'Annotations',_0x5d3c('0x48')];}static get[_0x5d3c('0x45')](){return _0x5d3c('0x31');}constructor(_0x2a3990){super(_0x2a3990),this['_suggestionToController']=new Map(),this[_0x5d3c('0x54')]=new Map(),this['_debouncedHandlers']=new Map();const _0x772a97=this['editor']['config'];_0x772a97['define'](_0x5d3c('0x3c'),_0xd0e20d),_0x772a97[_0x5d3c('0x7')](_0x5d3c('0x6a'),!0x1),this[_0x5d3c('0x53')]=_0x772a97[_0x5d3c('0x1')]('trackChanges.disableComments');}['init'](){const _0x360c4a=this[_0x5d3c('0x44')],_0x28bbaf=_0x360c4a[_0x5d3c('0x8')][_0x5d3c('0x1')](_0x4d5edd),_0x4e653c=_0x360c4a[_0x5d3c('0x8')][_0x5d3c('0x1')]('Annotations'),_0x4a59b6=_0x360c4a[_0x5d3c('0x8')][_0x5d3c('0x1')]('EditorAnnotations'),_0x572138=_0x360c4a[_0x5d3c('0x8')][_0x5d3c('0x1')](_0x5d3c('0x28'));_0x360c4a['ui'][_0x5d3c('0x25')][_0x5d3c('0x3a')](_0x5d3c('0x42'),_0x21db2e=>this[_0x5d3c('0x50')](_0x21db2e)),_0x4a59b6[_0x5d3c('0x27')](()=>{const _0x4ec843=[];for(const [_0x176194,_0x49d29a]of Array[_0x5d3c('0xf')](this[_0x5d3c('0x10')])){const _0x500f7c=_0x176194[_0x5d3c('0x66')](),_0xc33e03=[];for(const _0x502f5b of _0x500f7c){if(!_0x502f5b[_0x5d3c('0x2a')])continue;if(_0x502f5b[_0x5d3c('0x5b')]){_0xc33e03['push'](..._0x502f5b[_0x5d3c('0x32')]());continue;}const _0x5822f3=_0x502f5b['getFirstRange']();if(_0xc33e03['length']>0x0){const _0x48bd29=_0xc33e03[0x0][_0x5d3c('0x24')](_0x5822f3);if(_0x48bd29){_0xc33e03[0x0]=_0x48bd29;continue;}}_0xc33e03['push'](_0x5822f3);}_0x4ec843['push']([_0x49d29a['view'],_0xc33e03]);}return _0x4ec843;}),this[_0x5d3c('0x3f')](_0x28bbaf,_0x5d3c('0x49'),(_0x547de4,_0x2135a2)=>{let _0x175c12=!0x1;const _0x62b98d=_0x31062d(_0x41833c=>{_0x175c12||_0x41833c?_0x175c12&&_0x41833c&&(this['_destroyController'](_0x2135a2),_0x4a59b6[_0x5d3c('0x3b')](),_0x175c12=!0x1):(this[_0x5d3c('0x38')](_0x2135a2),_0x4a59b6[_0x5d3c('0x3b')](),_0x175c12=!0x0);},0xa);this[_0x5d3c('0x6b')][_0x5d3c('0x12')](_0x2135a2,_0x62b98d),this[_0x5d3c('0x3f')](_0x2135a2,_0x5d3c('0x51'),(_0x503896,_0x57f34e,_0x354aef,_0x208ff9)=>{_0x2135a2[_0x5d3c('0x2a')]&&(null==_0x354aef?(this[_0x5d3c('0x2')](_0x208ff9['head']),_0x62b98d(!0x1)):(this[_0x5d3c('0x2')](_0x354aef[_0x5d3c('0x5f')]),_0x62b98d(!0x0)));}),null===_0x2135a2[_0x5d3c('0x4f')]?_0x62b98d(!0x1):this[_0x5d3c('0x2')](_0x2135a2[_0x5d3c('0x5f')]);}),this[_0x5d3c('0x3f')](_0x28bbaf,_0x5d3c('0x11'),(_0x619bee,_0x1a9e10,_0x5a4407)=>{this['stopListening'](_0x1a9e10,_0x5d3c('0x51')),this['_debouncedHandlers'][_0x5d3c('0x1')](_0x1a9e10)['cancel'](),this['_debouncedHandlers']['delete'](_0x1a9e10);const _0x3bedfd=_0x5a4407?_0x5a4407[_0x5d3c('0x5f')]:_0x1a9e10,_0x5077aa=this[_0x5d3c('0x10')][_0x5d3c('0x1')](_0x3bedfd);null!==_0x5a4407&&this[_0x5d3c('0x2')](_0x3bedfd),null===_0x5a4407&&_0x5077aa&&this['_destroyController'](_0x1a9e10);}),this[_0x5d3c('0x3f')](_0x28bbaf,'suggestionChanged',(_0x2bfbbf,_0x2d6564)=>{this[_0x5d3c('0x2')](_0x2d6564);}),this['listenTo'](_0x4e653c,_0x5d3c('0x23'),(_0x2e970b,_0x56196c,_0x12efdc)=>{const _0x4f9e3a=Array[_0x5d3c('0xf')](_0x12efdc,_0xeec928=>_0xeec928['innerView'])[_0x5d3c('0xc')](_0x22a56e=>this[_0x5d3c('0x54')][_0x5d3c('0x4c')](_0x22a56e)),_0x45dd3a=[];for(const _0x30d67a of _0x4f9e3a){const _0x66606c=this[_0x5d3c('0x54')][_0x5d3c('0x1')](_0x30d67a)[_0x5d3c('0x1c')][_0x5d3c('0x66')]();_0x45dd3a[_0x5d3c('0x69')](..._0x66606c[_0x5d3c('0x57')]((_0x2a5bf1,_0x269680)=>[..._0x2a5bf1,..._0x269680['getMarkerNames']()],[]));}_0x28bbaf[_0x5d3c('0x4d')]=_0x45dd3a;}),this['listenTo'](_0x572138,'addComment',(_0x253fc4,{threadId:_0x421398,isFromAdapter:_0x3d48aa})=>{if(_0x3d48aa||!_0x28bbaf[_0x5d3c('0x14')](_0x421398))return;const _0x27eda1=_0x28bbaf[_0x5d3c('0x60')](_0x421398);this[_0x5d3c('0x10')]['get'](_0x27eda1)[_0x5d3c('0x26')][_0x5d3c('0x47')]();},{'priority':_0x5d3c('0x2c')});}[_0x5d3c('0x50')](_0x3a8dd8){const _0x4c95b7=_0x147936(_0x3a8dd8,_0x41a99c),_0x2ca5cf=this['editor'][_0x5d3c('0x61')][_0x5d3c('0x1')](_0x5d3c('0x42')),_0x2d08b6=_0x467748(_0x3a8dd8,_0x5d3c('0x43'));_0x4c95b7[_0x5d3c('0x5e')][_0x5d3c('0x12')]({'tooltip':_0x2d08b6,'label':_0x2d08b6,'icon':_0x58d7bf}),_0x4c95b7[_0x5d3c('0x5e')][_0x5d3c('0x2f')](_0x5d3c('0x30'))['to'](_0x2ca5cf,_0x5d3c('0x3d')),_0x4c95b7[_0x5d3c('0x5e')]['on']('execute',()=>_0x2ca5cf['execute']());const _0x11066d=new _0x313930(),_0x1fcb3f=[{'type':_0x5d3c('0x35'),'model':{'withText':!0x0,'label':_0x2d08b6,'commandName':'trackChanges'}},{'type':_0x5d3c('0x39')},{'type':_0x5d3c('0x4b'),'model':{'withText':!0x0,'label':_0x467748(_0x3a8dd8,'Accept\x20all\x20suggestions'),'commandName':_0x5d3c('0xd')}},{'type':_0x5d3c('0x4b'),'model':{'withText':!0x0,'label':_0x467748(_0x3a8dd8,_0x5d3c('0x1a')),'commandName':_0x5d3c('0x2e')}},{'type':_0x5d3c('0x4b'),'model':{'withText':!0x0,'label':_0x467748(_0x3a8dd8,_0x5d3c('0x64')),'commandName':'discardAllSuggestions'}},{'type':_0x5d3c('0x4b'),'model':{'withText':!0x0,'label':_0x467748(_0x3a8dd8,_0x5d3c('0x40')),'commandName':_0x5d3c('0x17')}}];for(const _0x2b979e of _0x1fcb3f){const _0x39c1c9={'type':_0x2b979e['type']};if(_0x2b979e[_0x5d3c('0x1c')]){const _0x3a614e=new _0x1d2067(_0x2b979e[_0x5d3c('0x1c')]),_0x2566df=this[_0x5d3c('0x44')]['commands'][_0x5d3c('0x1')](_0x3a614e[_0x5d3c('0x4e')]);_0x3a614e['bind']('isOn',_0x5d3c('0x41'))['to'](_0x2566df,_0x5d3c('0x3d'),_0x5d3c('0x41')),_0x39c1c9['model']=_0x3a614e;}_0x11066d[_0x5d3c('0x3a')](_0x39c1c9);}_0x4487f7(_0x4c95b7,_0x11066d);const _0x157cd8=_0x1fcb3f[_0x5d3c('0xc')](_0x2f0dff=>null!=_0x2f0dff[_0x5d3c('0x1c')])[_0x5d3c('0x1f')](_0x5c3ce9=>this[_0x5d3c('0x44')][_0x5d3c('0x61')][_0x5d3c('0x1')](_0x5c3ce9[_0x5d3c('0x1c')][_0x5d3c('0x4e')]));return _0x4c95b7[_0x5d3c('0x5e')]['actionView'][_0x5d3c('0x5')](_0x5d3c('0x41')),_0x4c95b7[_0x5d3c('0x5e')][_0x5d3c('0x15')][_0x5d3c('0x5')](_0x5d3c('0x41')),_0x4c95b7[_0x5d3c('0x5e')][_0x5d3c('0x58')]['bind'](_0x5d3c('0x41'))['to'](_0x2ca5cf,'isEnabled'),_0x4c95b7['buttonView']['arrowView'][_0x5d3c('0x2f')](_0x5d3c('0x41'))[_0x5d3c('0x5c')](_0x157cd8,_0x5d3c('0x41'),(..._0x391aa7)=>_0x391aa7[_0x5d3c('0xe')](_0x2f7c70=>_0x2f7c70)),_0x4c95b7['on']('execute',_0x1c7a7c=>this[_0x5d3c('0x44')]['execute'](_0x1c7a7c[_0x5d3c('0x62')][_0x5d3c('0x4e')])),_0x4c95b7;}['_initializeController'](_0x2fa742){const _0x12aae4=this[_0x5d3c('0x44')],_0x62b861=_0x12aae4[_0x5d3c('0x65')],_0xaffb4e=_0x12aae4['plugins'][_0x5d3c('0x1')](_0x5d3c('0x1d')),_0x3b8dd0=_0x12aae4[_0x5d3c('0x8')][_0x5d3c('0x1')](_0x5d3c('0x28')),_0x583c74=_0x2fa742[_0x5d3c('0x66')]()['filter'](_0x202d09=>_0x202d09['isInContent']),_0x49e575=_0x12aae4['plugins'][_0x5d3c('0x1')](_0x2478e6)['me'],_0x3c601e=_0x12aae4[_0x5d3c('0x61')][_0x5d3c('0x1')](_0x5d3c('0x13')),_0x1d4d4e=_0x12aae4['commands'][_0x5d3c('0x1')](_0x5d3c('0x55')),_0x1c1ef6=_0x62b861[_0x5d3c('0x1')](_0x5d3c('0x42'))[_0x5d3c('0x20')],{CommentsListView:_0x5edcf9,CommentThreadInputView:_0x26eadc}=_0x12aae4[_0x5d3c('0x8')][_0x5d3c('0x1')]('CommentsUI'),_0xcb0ef4=new _0x1c1ef6(_0x12aae4[_0x5d3c('0x67')],_0x2fa742,_0x49e575,{'disableComments':this[_0x5d3c('0x53')],'editorConfig':_0x62b861[_0x5d3c('0x1')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x62b861[_0x5d3c('0x1')](_0x5d3c('0x34')),'maxThreadTotalWeight':_0x62b861[_0x5d3c('0x1')](_0x5d3c('0x56')),'maxCommentCharsWhenCollapsed':_0x62b861[_0x5d3c('0x1')](_0x5d3c('0x2b')),'formatDateTime':_0x47490d(_0x62b861['get'](_0x5d3c('0x67'))),'CommentView':_0x62b861['get'](_0x5d3c('0xb'))[_0x5d3c('0x22')],'CommentsListView':_0x5edcf9,'CommentThreadInputView':_0x26eadc}),_0x9dc1bc=_0x3b8dd0[_0x5d3c('0x68')](_0x2fa742[_0x5d3c('0x4')],_0xcb0ef4),_0x4b07b2=new _0x379cfd(_0x2fa742,_0xcb0ef4,_0x3c601e,_0x1d4d4e,_0x9dc1bc);_0xcb0ef4[_0x5d3c('0x1b')]=_0x12aae4[_0x5d3c('0x8')]['get'](_0x5d3c('0xa'))[_0x5d3c('0x1e')]['getDescriptions'](_0x583c74),this['_suggestionToController'][_0x5d3c('0x12')](_0x2fa742,_0x4b07b2),this['_viewToController'][_0x5d3c('0x12')](_0xcb0ef4,_0x4b07b2);const _0x2feceb=_0xaffb4e['createAnnotationView'](this[_0x5d3c('0x44')][_0x5d3c('0x67')],_0xcb0ef4);_0x2feceb[_0x5d3c('0x2f')]('isDirty')['to'](_0xcb0ef4,'isDirty'),_0x2feceb['bind'](_0x5d3c('0x19'))['to'](_0xcb0ef4),_0x2feceb[_0x5d3c('0x2f')](_0x5d3c('0x21'))['to'](_0xcb0ef4,_0x5d3c('0x21'),_0x36240a=>'suggestion-'+_0x36240a);const _0x18653e=_0xaffb4e[_0x5d3c('0x37')]({'view':_0x2feceb,'target':()=>{const _0x38e41b=_0x583c74[0x0]['getFirstMarker']();if(!_0x38e41b)return null;const _0x8826a3=_0x38e41b[_0x5d3c('0x52')]()[_0x5d3c('0x0')]();return _0x8826a3&&!_0x12aae4[_0x5d3c('0x3e')]['mapper'][_0x5d3c('0x46')](_0x8826a3)?null:_0x1087df(_0x12aae4['editing'],_0x38e41b)||null;},'type':()=>_0x5d3c('0x16')+_0x4b07b2['view'][_0x5d3c('0x21')]});_0xaffb4e[_0x5d3c('0x3a')](_0x18653e);const _0x12f657=_0x12aae4['plugins'][_0x5d3c('0x1')](_0x5d3c('0x5a'));let _0x11ae6a;_0xcb0ef4['on'](_0x5d3c('0x6'),(_0x33028e,_0x504695,_0x9e3b31)=>{_0x9e3b31?_0x11ae6a=_0x12f657[_0x5d3c('0x3a')](_0x467748(this[_0x5d3c('0x44')][_0x5d3c('0x67')],_0x5d3c('0x59'))):(_0x12f657[_0x5d3c('0x18')](_0x11ae6a),_0x11ae6a=null);});}['_destroyController'](_0x3a5d7c){const _0x5564b3=this['editor'][_0x5d3c('0x8')]['get']('Annotations'),_0x3eefb3=this[_0x5d3c('0x10')][_0x5d3c('0x1')](_0x3a5d7c),_0x69112a=_0x3eefb3['view'],_0x58e1a8=_0x5564b3[_0x5d3c('0x29')](_0x69112a);_0x58e1a8&&_0x5564b3[_0x5d3c('0x18')](_0x58e1a8),this[_0x5d3c('0x10')][_0x5d3c('0x4a')](_0x3a5d7c),this[_0x5d3c('0x54')]['delete'](_0x69112a),_0x3eefb3[_0x5d3c('0x63')](),_0x69112a[_0x5d3c('0x63')]();}[_0x5d3c('0x2')](_0x57e762){if(!_0x57e762[_0x5d3c('0x2a')]||!this[_0x5d3c('0x10')][_0x5d3c('0x4c')](_0x57e762))return;const _0x52e6af=this[_0x5d3c('0x44')][_0x5d3c('0x8')]['get'](_0x5d3c('0xa')),_0x289c98=this[_0x5d3c('0x10')][_0x5d3c('0x1')](_0x57e762),_0x26d4b4=_0x57e762[_0x5d3c('0x66')]();_0x289c98[_0x5d3c('0x26')][_0x5d3c('0x1b')]=_0x52e6af[_0x5d3c('0x1e')]['getDescriptions'](_0x26d4b4);}[_0x5d3c('0x63')](){super[_0x5d3c('0x63')]();for(const _0x334f8d of this[_0x5d3c('0x10')][_0x5d3c('0x36')]())this[_0x5d3c('0x9')](_0x334f8d);for(const _0x449199 of this[_0x5d3c('0x6b')][_0x5d3c('0x5d')]())_0x449199[_0x5d3c('0x33')]();this[_0x5d3c('0x6b')][_0x5d3c('0x2d')]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xbb6c=['isEnabled','unbind','destroy','listenTo','_acceptCommand','_discardCommand','discardSuggestion','model','execute','acceptSuggestion','commentThreadController','bind','view','stopListening'];(function(_0xdf551b,_0xbb6ce8){var _0x1e0a99=function(_0x438b81){while(--_0x438b81){_0xdf551b['push'](_0xdf551b['shift']());}};_0x1e0a99(++_0xbb6ce8);}(_0xbb6c,0x9e));var _0x1e0a=function(_0xdf551b,_0xbb6ce8){_0xdf551b=_0xdf551b-0x0;var _0x1e0a99=_0xbb6c[_0xdf551b];return _0x1e0a99;};import{ObservableMixin as _0x46aa6f,mix as _0x1033ca}from'ckeditor5/src/utils';export default class vt{constructor(_0x501884,_0x1fa053,_0x30c6d1,_0x2d8355,_0x16d74c){this[_0x1e0a('0x3')]=_0x501884,this[_0x1e0a('0x8')]=_0x1fa053,this[_0x1e0a('0x6')]=_0x16d74c,this[_0x1e0a('0x0')]=_0x30c6d1,this['_discardCommand']=_0x2d8355,this[_0x1e0a('0x8')][_0x1e0a('0x7')](_0x1e0a('0xa'))['to'](this['_acceptCommand']),this['listenTo'](_0x1fa053,_0x1e0a('0x5'),()=>this[_0x1e0a('0x5')]()),this[_0x1e0a('0xd')](_0x1fa053,'discardSuggestion',()=>this[_0x1e0a('0x2')]());}['acceptSuggestion'](){this[_0x1e0a('0x0')][_0x1e0a('0x4')](this[_0x1e0a('0x3')]['id']);}[_0x1e0a('0x2')](){this[_0x1e0a('0x1')]['execute'](this['model']['id']);}[_0x1e0a('0xc')](){this[_0x1e0a('0x8')][_0x1e0a('0xb')](_0x1e0a('0xa')),this[_0x1e0a('0x9')](),this[_0x1e0a('0x6')][_0x1e0a('0xc')]();}}_0x1033ca(vt,_0x46aa6f);
23
+ var _0x38fc=['unbind','destroy','bind','model','discardSuggestion','listenTo','acceptSuggestion','_discardCommand','isEnabled','execute','_acceptCommand','view','commentThreadController'];(function(_0x165d6b,_0x38fc2c){var _0x711230=function(_0x5f0a5b){while(--_0x5f0a5b){_0x165d6b['push'](_0x165d6b['shift']());}};_0x711230(++_0x38fc2c);}(_0x38fc,0xc2));var _0x7112=function(_0x165d6b,_0x38fc2c){_0x165d6b=_0x165d6b-0x0;var _0x711230=_0x38fc[_0x165d6b];return _0x711230;};import{ObservableMixin as _0x7a6b24,mix as _0x418936}from'ckeditor5/src/utils';export default class Vt{constructor(_0x566de8,_0x52e887,_0x38f7dd,_0x2915bb,_0x250908){this[_0x7112('0x4')]=_0x566de8,this[_0x7112('0xc')]=_0x52e887,this[_0x7112('0x0')]=_0x250908,this[_0x7112('0xb')]=_0x38f7dd,this[_0x7112('0x8')]=_0x2915bb,this[_0x7112('0xc')][_0x7112('0x3')](_0x7112('0x9'))['to'](this[_0x7112('0xb')]),this[_0x7112('0x6')](_0x52e887,'acceptSuggestion',()=>this[_0x7112('0x7')]()),this['listenTo'](_0x52e887,_0x7112('0x5'),()=>this[_0x7112('0x5')]());}[_0x7112('0x7')](){this[_0x7112('0xb')][_0x7112('0xa')](this[_0x7112('0x4')]['id']);}['discardSuggestion'](){this[_0x7112('0x8')][_0x7112('0xa')](this[_0x7112('0x4')]['id']);}[_0x7112('0x2')](){this['view'][_0x7112('0x1')](_0x7112('0x9')),this['stopListening'](),this[_0x7112('0x0')][_0x7112('0x2')]();}}_0x418936(Vt,_0x7a6b24);
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e27=['element','locale','_localUser','_createCommentViews','isReadOnly','delegate','isActive','fire','editor','destroy','isDirty','CommentView','addComment','cancel','focus','_config','commentsListView','commentThread','showInput','updateComment','set','value','length','disabledSubmit','assign','bind','_createCommentThreadInputView','isEnabled','commentThreadInputView','disableComments','removeComment','_model','createdAt','hasDirtyComment','editorConfig'];(function(_0x365d84,_0x5e27b8){const _0x397490=function(_0x3aa728){while(--_0x3aa728){_0x365d84['push'](_0x365d84['shift']());}};_0x397490(++_0x5e27b8);}(_0x5e27,0x148));const _0x3974=function(_0x365d84,_0x5e27b8){_0x365d84=_0x365d84-0x0;let _0x397490=_0x5e27[_0x365d84];return _0x397490;};import{View as _0x8c03cd}from'ckeditor5/src/ui';export default class Ht extends _0x8c03cd{constructor(_0x18dd83,_0xf4da9f,_0x169b92,_0x3bfd70){super(_0x18dd83),this[_0x3974('0x3')]=null,this[_0x3974('0xf')]=null,this[_0x3974('0x7')](_0x3974('0x1c'),!0x1),this[_0x3974('0x7')](_0x3974('0x13'),_0xf4da9f['createdAt']),this[_0x3974('0xc')](_0x3974('0x13'))['to'](_0xf4da9f),this[_0x3974('0x7')]('descriptionParts',[]),this['set'](_0x3974('0x20'),!0x1),this['set'](_0x3974('0xe'),!0x1),this['_model']=_0xf4da9f,this[_0x3974('0x18')]=_0x169b92,this[_0x3974('0x2')]=_0x3bfd70,_0x3bfd70[_0x3974('0x10')]?this[_0x3974('0x7')](_0x3974('0x9'),0x1):this[_0x3974('0x19')]();}['focus'](){this[_0x3974('0x16')][_0x3974('0x1')]();}[_0x3974('0x1f')](){this[_0x3974('0x20')]=!0x1,this[_0x3974('0x3')]&&this[_0x3974('0x3')][_0x3974('0x1f')](),this[_0x3974('0xf')]&&this[_0x3974('0xf')][_0x3974('0x1f')](),super[_0x3974('0x1f')]();}[_0x3974('0x19')](){const {CommentsListView:_0x80f247}=this['_config'];this[_0x3974('0x3')]=new _0x80f247(this[_0x3974('0x17')],this[_0x3974('0x12')][_0x3974('0x4')],Object[_0x3974('0xb')]({'CommentView':this[_0x3974('0x2')][_0x3974('0x21')]},this[_0x3974('0x2')])),this['commentsListView'][_0x3974('0x1b')](_0x3974('0x11'))['to'](this),this[_0x3974('0x3')][_0x3974('0x1b')](_0x3974('0x6'))['to'](this),this[_0x3974('0x3')][_0x3974('0xc')](_0x3974('0x1c'))['to'](this),this[_0x3974('0x7')](_0x3974('0x9'),this[_0x3974('0x3')]['length']+0x1),this[_0x3974('0xc')](_0x3974('0x9'))['to'](this[_0x3974('0x3')],_0x3974('0x9'),_0x372d00=>_0x372d00+0x1),this[_0x3974('0xf')]=this[_0x3974('0xd')](),this['on'](_0x3974('0x11'),()=>this[_0x3974('0x1')]()),this[_0x3974('0xc')]('isDirty')['to'](this[_0x3974('0x3')],_0x3974('0x14'),this['commentThreadInputView']['commentInputView'],_0x3974('0x8'),(_0x5cadf3,_0x47bd1c)=>_0x5cadf3||!!_0x47bd1c);}[_0x3974('0xd')](){const {CommentThreadInputView:_0x5cf1a7}=this[_0x3974('0x2')],_0x1dd1b5=new _0x5cf1a7(this[_0x3974('0x17')],this[_0x3974('0x18')],this['_config'][_0x3974('0x15')]),_0x2e635c=_0x1dd1b5['commentInputView'];return _0x1dd1b5[_0x3974('0xc')](_0x3974('0x5'))['to'](this,'isActive',this[_0x3974('0x12')][_0x3974('0x4')],_0x3974('0x1a'),_0x2e635c,_0x3974('0x8'),(_0x1c47de,_0x405cd6,_0xec0916)=>!!_0xec0916||_0x1c47de&&!_0x405cd6),_0x2e635c['on']('submit',(_0x24002a,_0x3b6b72)=>{this[_0x3974('0x1d')](_0x3974('0x22'),_0x3b6b72),_0x2e635c[_0x3974('0x1e')]['setData']('');}),_0x2e635c['on'](_0x3974('0x0'),()=>this[_0x3974('0x1')]()),_0x2e635c[_0x3974('0xc')](_0x3974('0xa'))['to'](this[_0x3974('0x12')][_0x3974('0x4')],_0x3974('0x1a')),_0x1dd1b5;}}
23
+ const _0x27ad=['_createCommentThreadInputView','commentInputView','_config','descriptionParts','updateComment','_model','length','isActive','hasDirtyComment','set','fire','editor','addComment','commentThread','element','commentsListView','bind','destroy','value','showInput','isDirty','focus','delegate','submit','locale','_localUser','isReadOnly','_createCommentViews','setData','createdAt','commentThreadInputView','disabledSubmit','assign'];(function(_0x49aeb3,_0x27ad52){const _0x532c36=function(_0x3a53b4){while(--_0x3a53b4){_0x49aeb3['push'](_0x49aeb3['shift']());}};_0x532c36(++_0x27ad52);}(_0x27ad,0x199));const _0x532c=function(_0x49aeb3,_0x27ad52){_0x49aeb3=_0x49aeb3-0x0;let _0x532c36=_0x27ad[_0x49aeb3];return _0x532c36;};import{View as _0x45d137}from'ckeditor5/src/ui';export default class Jt extends _0x45d137{constructor(_0x5abc19,_0x4adc9d,_0x5e026d,_0x2a33d6){super(_0x5abc19),this[_0x532c('0x2')]=null,this[_0x532c('0x11')]=null,this[_0x532c('0x1d')](_0x532c('0x1b'),!0x1),this[_0x532c('0x1d')](_0x532c('0x10'),_0x4adc9d['createdAt']),this['bind'](_0x532c('0x10'))['to'](_0x4adc9d),this[_0x532c('0x1d')](_0x532c('0x17'),[]),this[_0x532c('0x1d')](_0x532c('0x7'),!0x1),this['set']('isEnabled',!0x1),this['_model']=_0x4adc9d,this[_0x532c('0xc')]=_0x5e026d,this[_0x532c('0x16')]=_0x2a33d6,_0x2a33d6['disableComments']?this['set'](_0x532c('0x1a'),0x1):this[_0x532c('0xe')]();}[_0x532c('0x8')](){this[_0x532c('0x1')]['focus']();}[_0x532c('0x4')](){this[_0x532c('0x7')]=!0x1,this[_0x532c('0x2')]&&this[_0x532c('0x2')][_0x532c('0x4')](),this[_0x532c('0x11')]&&this['commentThreadInputView']['destroy'](),super['destroy']();}[_0x532c('0xe')](){const {CommentsListView:_0x55dd83}=this[_0x532c('0x16')];this[_0x532c('0x2')]=new _0x55dd83(this['locale'],this['_model'][_0x532c('0x0')],Object[_0x532c('0x13')]({'CommentView':this[_0x532c('0x16')]['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView'][_0x532c('0x9')](_0x532c('0x18'))['to'](this),this[_0x532c('0x2')]['bind'](_0x532c('0x1b'))['to'](this),this[_0x532c('0x1d')](_0x532c('0x1a'),this[_0x532c('0x2')][_0x532c('0x1a')]+0x1),this['bind'](_0x532c('0x1a'))['to'](this[_0x532c('0x2')],'length',_0x51e61a=>_0x51e61a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this[_0x532c('0x8')]()),this[_0x532c('0x3')](_0x532c('0x7'))['to'](this[_0x532c('0x2')],_0x532c('0x1c'),this[_0x532c('0x11')]['commentInputView'],'value',(_0x22a267,_0x3e62ea)=>_0x22a267||!!_0x3e62ea);}[_0x532c('0x14')](){const {CommentThreadInputView:_0x51ac31}=this[_0x532c('0x16')],_0x376de2=new _0x51ac31(this[_0x532c('0xb')],this[_0x532c('0xc')],this[_0x532c('0x16')]['editorConfig']),_0x437e3d=_0x376de2[_0x532c('0x15')];return _0x376de2[_0x532c('0x3')](_0x532c('0x6'))['to'](this,_0x532c('0x1b'),this[_0x532c('0x19')]['commentThread'],'isReadOnly',_0x437e3d,_0x532c('0x5'),(_0x20f533,_0x2b8653,_0x31df5e)=>!!_0x31df5e||_0x20f533&&!_0x2b8653),_0x437e3d['on'](_0x532c('0xa'),(_0x3df867,_0x51ac50)=>{this[_0x532c('0x1e')](_0x532c('0x20'),_0x51ac50),_0x437e3d[_0x532c('0x1f')][_0x532c('0xf')]('');}),_0x437e3d['on']('cancel',()=>this[_0x532c('0x8')]()),_0x437e3d[_0x532c('0x3')](_0x532c('0x12'))['to'](this[_0x532c('0x19')][_0x532c('0x0')],_0x532c('0xd')),_0x376de2;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import Ht from'./basesuggestionthreadview';import{ButtonView as Jt}from'ckeditor5/src/ui';import{icons as Kt}from'ckeditor5/src/core';import{trimHtml as Ut,UserView as Xt}from'ckeditor5-collaboration/src/collaboration-core';export default class Nt extends Ht{constructor(_0x37fa3b,_0x2374ba,_0x405c25,_0x59d331){super(_0x37fa3b,_0x2374ba,_0x405c25,_0x59d331);const {t:t}=_0x37fa3b;this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2962dd=>_0x2962dd&&_0x2962dd[0x0]?_0x2962dd[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4391aa,_0x4d2190)=>{let _0x8666ca='';for(const _0x5dc7ec of _0x4391aa)_0x8666ca+='<p>'+Yt(_0x5dc7ec['content'],_0x5dc7ec['color'])+'</p>';return _0x4d2190?_0x8666ca:Ut(_0x8666ca,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](t('Accept\x20suggestion'),Kt['check'],'ck-suggestion--accept','acceptSuggestion'),this['discardButton']=this['_createButton'](t('Discard\x20suggestion'),Kt['cancel'],'ck-suggestion--discard','discardSuggestion'),this['userView']=new Xt(_0x37fa3b,this['_model']['author']),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x401180=this['bindTemplate'],_0x274c8d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x401180['if']('isActive','ck-suggestion-wrapper--active'),_0x401180['to']('type',_0x4f1d05=>'ck-suggestion-'+_0x4f1d05),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x401180['to']('createdAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x401180['to']('createdAt',_0x5150dd=>this['_config']['formatDateTime'](_0x5150dd))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}]}]}]};return this['commentsListView']&&this['commentThreadInputView']&&_0x274c8d['children']['push'](this['commentsListView'],this['commentThreadInputView']),_0x274c8d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x8282f2,_0x3f9892,_0x2974fd)=>{this['_descriptionElement']['innerHTML']=_0x2974fd;});}['_createButton'](_0x1338c0,_0x576e1e,_0x5441d8,_0x3ce402){const _0x1efe9a=new Jt(this['locale']);return _0x1efe9a['set']({'label':_0x1338c0,'icon':_0x576e1e,'tooltip':!0x0}),_0x1efe9a['extendTemplate']({'attributes':{'class':_0x5441d8}}),_0x1efe9a['on']('execute',()=>{this['fire'](_0x3ce402,this['_model']['id']);}),_0x1efe9a['bind']('isEnabled')['to'](this),_0x1efe9a;}}function Yt(_0xdf4386,_0x5edcd1){let _0x5a5b7c='';return _0x5a5b7c+=_0xdf4386['split']('*')['map']((_0xa3d00e,_0x585e02)=>_0x585e02%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0xa3d00e)+'</span>':Zt(_0xa3d00e))['join'](''),_0x5edcd1&&(_0x5a5b7c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5edcd1['value']+'\x22\x20title=\x22'+_0x5edcd1['title']+'\x22></span>'),_0x5a5b7c;}function Zt(_0x54ed44){const _0x538e26=document['createElement']('span');return _0x538e26['innerText']=_0x54ed44,_0x538e26['innerHTML'];}
23
+ const _0x5ed1=['acceptButton','element','ck-suggestion__info-name','isEnabled','ck-suggestion-','discardButton','set','_createButton','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','Accept\x20suggestion','description','join','ck-annotation__info-time','type','innerText','<span\x20class=\x22ck-suggestion-type\x22>','time','ck-suggestion--accept','getTemplate','isActive','innerHTML','title','ck-annotation__info-name','ck-suggestion__main','Discard\x20suggestion','ck-annotation__info','push','commentsListView','extendTemplate','bind','</span>','value','span','commentThreadInputView','fire','ck-suggestion__actions','ck-annotation__actions','_descriptionElement','ck-suggestion--disabled-comments','check','userView','createElement','cancel','disableComments','author','color','setTemplate','ck-suggestion-wrapper--active','\x22></span>','ck-suggestion__info','formatDateTime','execute','ck-suggestion--discard','change:description','querySelector','div','map','render','content','</p>','commentThread','_model','ck-annotation','<p>','ck-suggestion-wrapper','ck-comment__info-time','children','ck-annotation__user','ck-annotation__content-wrapper','split','ck-suggestion__user','descriptionParts'];(function(_0x16c483,_0x5ed1ac){const _0x43039a=function(_0x49849f){while(--_0x49849f){_0x16c483['push'](_0x16c483['shift']());}};_0x43039a(++_0x5ed1ac);}(_0x5ed1,0xc3));const _0x4303=function(_0x16c483,_0x5ed1ac){_0x16c483=_0x16c483-0x0;let _0x43039a=_0x5ed1[_0x16c483];return _0x43039a;};import{getTranslation as _0x454d9c}from'../../utils/common-translations';import _0x171d5f from'./basesuggestionthreadview';import{ButtonView as _0x245511}from'ckeditor5/src/ui';import{icons as _0x4ae6b1}from'ckeditor5/src/core';import{trimHtml as _0x22861b,UserView as _0x44e45e}from'ckeditor5-collaboration/src/collaboration-core';export default class Wt extends _0x171d5f{constructor(_0x9939fb,_0x20794f,_0x365c57,_0x391087){super(_0x9939fb,_0x20794f,_0x365c57,_0x391087),this[_0x4303('0x1b')](_0x4303('0x22'),''),this[_0x4303('0x32')]('type')['to'](this,_0x4303('0x14'),_0x2a0e93=>_0x2a0e93&&_0x2a0e93[0x0]?_0x2a0e93[0x0][_0x4303('0x22')]:''),this[_0x4303('0x32')](_0x4303('0x1f'))['to'](this,'descriptionParts',this,_0x4303('0x28'),(_0x43a2dd,_0x1589e0)=>{let _0x3bf261='';for(const _0x1fc1fd of _0x43a2dd)_0x3bf261+=_0x4303('0xc')+Yt(_0x1fc1fd[_0x4303('0x7')],_0x1fc1fd[_0x4303('0x42')])+_0x4303('0x8');return _0x1589e0?_0x3bf261:_0x22861b(_0x3bf261,{'limit':0x8c});}),this[_0x4303('0x3a')]=null,this['acceptButton']=this[_0x4303('0x1c')](_0x454d9c(_0x9939fb,_0x4303('0x1e')),_0x4ae6b1[_0x4303('0x3c')],_0x4303('0x26'),'acceptSuggestion'),this[_0x4303('0x1a')]=this[_0x4303('0x1c')](_0x454d9c(_0x9939fb,_0x4303('0x2d')),_0x4ae6b1[_0x4303('0x3f')],_0x4303('0x1'),'discardSuggestion'),this[_0x4303('0x3d')]=new _0x44e45e(_0x9939fb,this[_0x4303('0xa')][_0x4303('0x41')]),this[_0x4303('0x3d')][_0x4303('0x31')]({'attributes':{'class':[_0x4303('0x13'),_0x4303('0x10')]}}),this[_0x4303('0x43')](this[_0x4303('0x27')]());}['getTemplate'](){const _0x44e677=this['bindTemplate'],_0xe82c87={'tag':_0x4303('0x4'),'attributes':{'class':[_0x4303('0xd'),_0x44e677['if'](_0x4303('0x28'),_0x4303('0x44')),_0x44e677['to']('type',_0x50e591=>_0x4303('0x19')+_0x50e591),this['_config'][_0x4303('0x40')]&&_0x4303('0x3b')],'data-suggestion-id':this[_0x4303('0xa')]['id'],'data-thread-id':this[_0x4303('0xa')][_0x4303('0x9')]['id'],'data-author-id':this[_0x4303('0xa')][_0x4303('0x41')]['id'],'tabindex':-0x1},'children':[{'tag':_0x4303('0x4'),'attributes':{'class':['ck-suggestion',_0x4303('0xb')]},'children':[this[_0x4303('0x3d')],{'tag':_0x4303('0x4'),'attributes':{'class':[_0x4303('0x2c'),'ck-annotation__main']},'children':[{'tag':'div','attributes':{'class':[_0x4303('0x46'),_0x4303('0x2e')]},'children':[{'tag':_0x4303('0x35'),'children':[{'text':this[_0x4303('0x3d')]['name']}],'attributes':{'class':[_0x4303('0x17'),_0x4303('0x2b')]}},{'tag':_0x4303('0x25'),'attributes':{'datetime':_0x44e677['to']('createdAt'),'class':[_0x4303('0xe'),_0x4303('0x21')]},'children':[{'text':_0x44e677['to']('createdAt',_0x348418=>this['_config'][_0x4303('0x47')](_0x348418))}]}]},{'tag':_0x4303('0x4'),'attributes':{'class':[_0x4303('0x38'),_0x4303('0x39')]},'children':[this[_0x4303('0x15')],this[_0x4303('0x1a')]]},{'tag':'div','attributes':{'class':[_0x4303('0x11')]}}]}]}]};return this[_0x4303('0x30')]&&this[_0x4303('0x36')]&&_0xe82c87[_0x4303('0xf')][_0x4303('0x2f')](this[_0x4303('0x30')],this[_0x4303('0x36')]),_0xe82c87;}[_0x4303('0x6')](){super[_0x4303('0x6')](),this[_0x4303('0x3a')]=this[_0x4303('0x16')][_0x4303('0x3')]('.ck-annotation__content-wrapper'),this[_0x4303('0x3a')][_0x4303('0x29')]=this[_0x4303('0x1f')],this['on'](_0x4303('0x2'),(_0x7e3c4c,_0x42cc27,_0x578213)=>{this[_0x4303('0x3a')][_0x4303('0x29')]=_0x578213;});}[_0x4303('0x1c')](_0x34fa3b,_0x1d5620,_0x60e1d0,_0x43af13){const _0x39053a=new _0x245511(this['locale']);return _0x39053a[_0x4303('0x1b')]({'label':_0x34fa3b,'icon':_0x1d5620,'tooltip':!0x0}),_0x39053a['extendTemplate']({'attributes':{'class':_0x60e1d0}}),_0x39053a['on'](_0x4303('0x0'),()=>{this[_0x4303('0x37')](_0x43af13,this[_0x4303('0xa')]['id']);}),_0x39053a[_0x4303('0x32')](_0x4303('0x18'))['to'](this),_0x39053a;}}function Yt(_0x3e8f4f,_0x26e89b){let _0x5bbe06='';return _0x5bbe06+=_0x3e8f4f[_0x4303('0x12')]('*')[_0x4303('0x5')]((_0x537480,_0x113515)=>_0x113515%0x2!=0x0?_0x4303('0x24')+Zt(_0x537480)+_0x4303('0x33'):Zt(_0x537480))[_0x4303('0x20')](''),_0x26e89b&&(_0x5bbe06+=_0x4303('0x1d')+_0x26e89b[_0x4303('0x34')]+'\x22\x20title=\x22'+_0x26e89b[_0x4303('0x2a')]+_0x4303('0x45')),_0x5bbe06;}function Zt(_0x3ca6a1){const _0x47dfa9=document[_0x4303('0x3e')](_0x4303('0x35'));return _0x47dfa9[_0x4303('0x23')]=_0x3ca6a1,_0x47dfa9[_0x4303('0x29')];}