@ckeditor/ckeditor5-track-changes 35.1.0 → 35.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 (153) hide show
  1. package/build/track-changes.js +2 -2
  2. package/build/translations/ar.js +1 -1
  3. package/build/translations/az.js +1 -1
  4. package/build/translations/bg.js +1 -1
  5. package/build/translations/bn.js +1 -1
  6. package/build/translations/ca.js +1 -1
  7. package/build/translations/cs.js +1 -1
  8. package/build/translations/da.js +1 -1
  9. package/build/translations/de.js +1 -1
  10. package/build/translations/el.js +1 -1
  11. package/build/translations/en-au.js +1 -1
  12. package/build/translations/es.js +1 -1
  13. package/build/translations/et.js +1 -1
  14. package/build/translations/fi.js +1 -1
  15. package/build/translations/fr.js +1 -1
  16. package/build/translations/gl.js +1 -1
  17. package/build/translations/he.js +1 -1
  18. package/build/translations/hi.js +1 -1
  19. package/build/translations/hr.js +1 -1
  20. package/build/translations/hu.js +1 -1
  21. package/build/translations/id.js +1 -1
  22. package/build/translations/it.js +1 -1
  23. package/build/translations/ja.js +1 -1
  24. package/build/translations/ko.js +1 -1
  25. package/build/translations/lt.js +1 -1
  26. package/build/translations/lv.js +1 -1
  27. package/build/translations/ms.js +1 -1
  28. package/build/translations/nl.js +1 -1
  29. package/build/translations/no.js +1 -1
  30. package/build/translations/pl.js +1 -1
  31. package/build/translations/pt-br.js +1 -1
  32. package/build/translations/pt.js +1 -1
  33. package/build/translations/ro.js +1 -1
  34. package/build/translations/ru.js +1 -1
  35. package/build/translations/sk.js +1 -1
  36. package/build/translations/sr-latn.js +1 -1
  37. package/build/translations/sr.js +1 -1
  38. package/build/translations/sv.js +1 -1
  39. package/build/translations/th.js +1 -1
  40. package/build/translations/tk.js +1 -1
  41. package/build/translations/tr.js +1 -1
  42. package/build/translations/tt.js +1 -1
  43. package/build/translations/uk.js +1 -1
  44. package/build/translations/ur.js +1 -1
  45. package/build/translations/vi.js +1 -1
  46. package/build/translations/zh-cn.js +1 -1
  47. package/build/translations/zh.js +1 -1
  48. package/lang/contexts.json +2 -1
  49. package/lang/translations/ar.po +4 -0
  50. package/lang/translations/az.po +4 -0
  51. package/lang/translations/bg.po +4 -0
  52. package/lang/translations/bn.po +4 -0
  53. package/lang/translations/ca.po +4 -0
  54. package/lang/translations/cs.po +4 -0
  55. package/lang/translations/da.po +4 -0
  56. package/lang/translations/de.po +4 -0
  57. package/lang/translations/el.po +4 -0
  58. package/lang/translations/en-au.po +4 -0
  59. package/lang/translations/en.po +4 -0
  60. package/lang/translations/es.po +4 -0
  61. package/lang/translations/et.po +4 -0
  62. package/lang/translations/fi.po +4 -0
  63. package/lang/translations/fr.po +4 -0
  64. package/lang/translations/gl.po +4 -0
  65. package/lang/translations/he.po +4 -0
  66. package/lang/translations/hi.po +4 -0
  67. package/lang/translations/hr.po +4 -0
  68. package/lang/translations/hu.po +4 -0
  69. package/lang/translations/id.po +4 -0
  70. package/lang/translations/it.po +4 -0
  71. package/lang/translations/ja.po +4 -0
  72. package/lang/translations/ko.po +27 -23
  73. package/lang/translations/lt.po +4 -0
  74. package/lang/translations/lv.po +4 -0
  75. package/lang/translations/ms.po +4 -0
  76. package/lang/translations/nl.po +4 -0
  77. package/lang/translations/no.po +4 -0
  78. package/lang/translations/pl.po +4 -0
  79. package/lang/translations/pt-br.po +4 -0
  80. package/lang/translations/pt.po +4 -0
  81. package/lang/translations/ro.po +4 -0
  82. package/lang/translations/ru.po +4 -0
  83. package/lang/translations/sk.po +4 -0
  84. package/lang/translations/sr-latn.po +4 -0
  85. package/lang/translations/sr.po +4 -0
  86. package/lang/translations/sv.po +4 -0
  87. package/lang/translations/th.po +4 -0
  88. package/lang/translations/tk.po +4 -0
  89. package/lang/translations/tr.po +4 -0
  90. package/lang/translations/tt.po +6 -2
  91. package/lang/translations/uk.po +4 -0
  92. package/lang/translations/ur.po +4 -0
  93. package/lang/translations/vi.po +4 -0
  94. package/lang/translations/zh-cn.po +4 -0
  95. package/lang/translations/zh.po +4 -0
  96. package/package.json +4 -4
  97. package/src/commands/acceptallsuggestionscommand.js +1 -1
  98. package/src/commands/acceptselectedsuggestionscommand.js +1 -1
  99. package/src/commands/acceptsuggestioncommand.js +1 -1
  100. package/src/commands/discardallsuggestionscommand.js +1 -1
  101. package/src/commands/discardselectedsuggestionscommand.js +1 -1
  102. package/src/commands/discardsuggestioncommand.js +1 -1
  103. package/src/commands/trackchangescommand.js +1 -1
  104. package/src/integrations/alignment.js +1 -1
  105. package/src/integrations/basicstyles.js +1 -1
  106. package/src/integrations/blockquote.js +1 -1
  107. package/src/integrations/ckbox.js +1 -1
  108. package/src/integrations/codeblock.js +1 -1
  109. package/src/integrations/comments.js +1 -1
  110. package/src/integrations/deletecommand.js +1 -1
  111. package/src/integrations/entercommand.js +1 -1
  112. package/src/integrations/font.js +1 -1
  113. package/src/integrations/heading.js +1 -1
  114. package/src/integrations/highlight.js +1 -1
  115. package/src/integrations/horizontalline.js +1 -1
  116. package/src/integrations/htmlembed.js +1 -1
  117. package/src/integrations/image.js +1 -1
  118. package/src/integrations/importword.js +23 -0
  119. package/src/integrations/indent.js +1 -1
  120. package/src/integrations/inputcommand.js +1 -1
  121. package/src/integrations/link.js +1 -1
  122. package/src/integrations/list.js +1 -1
  123. package/src/integrations/mediaembed.js +1 -1
  124. package/src/integrations/mention.js +1 -1
  125. package/src/integrations/pagebreak.js +1 -1
  126. package/src/integrations/paragraph.js +1 -1
  127. package/src/integrations/removeformat.js +1 -1
  128. package/src/integrations/restrictededitingmode.js +1 -1
  129. package/src/integrations/shiftentercommand.js +1 -1
  130. package/src/integrations/standardeditingmode.js +1 -1
  131. package/src/integrations/style.js +1 -1
  132. package/src/integrations/table.js +1 -1
  133. package/src/integrations/tableclipboard.js +1 -1
  134. package/src/integrations/tableheadings.js +1 -1
  135. package/src/integrations/tablemergesplit.js +1 -1
  136. package/src/integrations/title.js +1 -1
  137. package/src/integrations/undo.js +1 -1
  138. package/src/integrations/utils.js +1 -1
  139. package/src/suggestion.js +1 -1
  140. package/src/suggestiondescriptionfactory.js +1 -1
  141. package/src/trackchanges.js +1 -1
  142. package/src/trackchangesdata.js +1 -1
  143. package/src/trackchangesediting.js +1 -1
  144. package/src/trackchangesui.js +1 -1
  145. package/src/ui/suggestioncontroller.js +1 -1
  146. package/src/ui/view/basesuggestionthreadview.js +1 -1
  147. package/src/ui/view/suggestionthreadview.js +1 -1
  148. package/src/utils/common-translations.js +1 -1
  149. package/src/utils/getrangesofblockgroups.js +1 -1
  150. package/src/utils/getselectedsuggestions.js +1 -1
  151. package/src/utils/hashobject.js +1 -1
  152. package/src/utils/normalizedescription.js +1 -1
  153. package/src/utils/sortsuggestions.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4137=['constructor','trackChangesData.editorCreator','set','concat','TrackChangesData','data','plugins','RealTimeCollaborativeTrackChanges','RealTimeCollaborativeRevisionHistory','pluginName','reduce','track-changes-data-invalid-editor-creator','document','requires','appendChild','add','context','get','createElement','filter','editorCreator','Users','name','RealTimeCollaborativeComments','toolbar','includes','_adapter','push','discardAllSuggestions','from','end','trackChangesData','string','every','execute','init','result','getRootNames','createDocumentFragment','map','CommentsRepository','destroy','getDataWithDiscardedSuggestions','function','TrackChangesEditing','extraPlugins','initialData','div','names','getUser','find','getSuggestions','editor','config'];(function(_0x73475e,_0x4137af){const _0x20ac49=function(_0x1f0bf7){while(--_0x1f0bf7){_0x73475e['push'](_0x73475e['shift']());}};_0x20ac49(++_0x4137af);}(_0x4137,0x82));const _0x20ac=function(_0x73475e,_0x4137af){_0x73475e=_0x73475e-0x0;let _0x20ac49=_0x4137[_0x73475e];return _0x20ac49;};import{Plugin as _0x17d1da}from'ckeditor5/src/core';import{CKEditorError as _0x513882}from'ckeditor5/src/utils';import _0x28259f from'./trackchangesediting';const C=[_0x20ac('0x18'),_0x20ac('0x30'),_0x20ac('0x2')],k=['RealTimeCollaborativeEditing',_0x20ac('0x1'),_0x20ac('0x27'),_0x20ac('0x28'),'Autosave'];export default class T extends _0x17d1da{static get[_0x20ac('0x2d')](){return[_0x28259f];}static get[_0x20ac('0x29')](){return _0x20ac('0x24');}[_0x20ac('0xd')](){const _0x59e3cd=this[_0x20ac('0x1e')];if(_0x59e3cd['config']['define'](_0x20ac('0x21'),_0x451866=>_0x59e3cd['constructor']['create']('',_0x451866)),'function'!=typeof _0x59e3cd['config'][_0x20ac('0x31')](_0x20ac('0x9'))[_0x20ac('0x34')])throw new _0x513882(_0x20ac('0x2b'));}['getDataWithAcceptedSuggestions'](_0x5892ee){return v(this['editor'],!0x0,_0x5892ee);}[_0x20ac('0x14')](_0x58afc5){return v(this[_0x20ac('0x1e')],!0x1,_0x58afc5);}}class D extends _0x17d1da{static get[_0x20ac('0x29')](){return'TrackChangesDataGetter';}[_0x20ac('0xd')](){this[_0x20ac('0xe')]=_0x20ac('0x8'),this[_0x20ac('0x1e')][_0x20ac('0x26')][_0x20ac('0x31')](_0x20ac('0x12'))[_0x20ac('0x4')]={'getCommentThread':()=>new Promise(()=>{})},this[_0x20ac('0x1e')][_0x20ac('0x26')][_0x20ac('0x31')](_0x20ac('0x16'))['_adapter']=null;}}async function v(_0x23813e,_0x499be8,_0x45671b){const _0x1a2869=function(_0x1bda49){const _0x492cc8={};for(const _0x3fd03e of _0x1bda49[_0x20ac('0x1f')][_0x20ac('0x1a')]())C[_0x20ac('0x3')](_0x3fd03e)||(_0x492cc8[_0x3fd03e]=_0x1bda49[_0x20ac('0x1f')][_0x20ac('0x31')](_0x3fd03e));const _0x45377f=_0x1bda49[_0x20ac('0x20')]['builtinPlugins']||[],_0x18c91b=_0x492cc8[_0x20ac('0x17')]||[];delete _0x492cc8['extraPlugins'];const _0x6dcd4c=_0x45377f[_0x20ac('0x23')](_0x492cc8[_0x20ac('0x26')])[_0x20ac('0x23')](_0x18c91b)[_0x20ac('0x11')](_0x209777=>_0x20ac('0xa')==typeof _0x209777?_0x45377f[_0x20ac('0x1c')](_0xae7d51=>_0xae7d51[_0x20ac('0x29')]==_0x209777):_0x209777),_0x54b5fd=Array[_0x20ac('0x7')](new Set(_0x6dcd4c));return _0x492cc8[_0x20ac('0x26')]=_0x54b5fd[_0x20ac('0x33')](_0x2075fb=>w(_0x2075fb,new Set())),_0x492cc8[_0x20ac('0x26')][_0x20ac('0x5')](D),_0x492cc8['plugins'][_0x20ac('0x5')](_0x28259f),_0x492cc8;}(_0x23813e),_0x2d194b=document[_0x20ac('0x10')](),_0x2c7d54=_0x23813e[_0x20ac('0x1f')][_0x20ac('0x31')](_0x20ac('0x9'))['editorCreator'],_0x34c6dd=await _0x2c7d54(_0x1a2869,()=>function(_0x399dbf){const _0x4748ca=document[_0x20ac('0x32')](_0x20ac('0x19'));return _0x399dbf[_0x20ac('0x2e')](_0x4748ca),_0x4748ca;}(_0x2d194b));!function(_0x31aa0e,_0x3b2a89){const _0x42e56c=_0x31aa0e['model'][_0x20ac('0x2c')][_0x20ac('0xf')]()[_0x20ac('0x2a')]((_0x5d8667,_0x57db7c)=>(_0x5d8667[_0x57db7c]=_0x31aa0e[_0x20ac('0x25')][_0x20ac('0x31')]({'rootName':_0x57db7c}),_0x5d8667),{}),_0x154a7f=_0x31aa0e[_0x20ac('0x26')][_0x20ac('0x31')]('Users')['users']['map'](_0x1ff6fd=>({'id':_0x1ff6fd['id']})),_0x2bb15b=_0x31aa0e['plugins']['get'](_0x20ac('0x16'))[_0x20ac('0x1d')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41677d=_0x3b2a89[_0x20ac('0x26')][_0x20ac('0x31')](_0x20ac('0x35')),_0x339f97=_0x3b2a89[_0x20ac('0x26')][_0x20ac('0x31')](_0x20ac('0x16'));for(const _0x531061 of _0x154a7f)_0x41677d[_0x20ac('0x1b')](_0x531061['id'])||_0x41677d['addUser'](_0x531061);_0x41677d['me']||_0x41677d['useAnonymousUser']();for(const _0x59f4d7 of _0x2bb15b)_0x339f97['addSuggestionData'](_0x59f4d7);_0x3b2a89[_0x20ac('0x25')][_0x20ac('0x22')](_0x42e56c);}(_0x23813e,_0x34c6dd),_0x34c6dd[_0x20ac('0xc')](_0x499be8?'acceptAllSuggestions':_0x20ac('0x6'));const _0x436888=_0x34c6dd[_0x20ac('0x25')][_0x20ac('0x31')](_0x45671b);return await _0x34c6dd[_0x20ac('0x13')](),_0x436888;}function w(_0x4f8794,_0x49f57d){if(_0x49f57d['has'](_0x4f8794))return!0x0;_0x49f57d[_0x20ac('0x2f')](_0x4f8794);const _0xfed869=_0x20ac('0x15')==typeof _0x4f8794?_0x4f8794[_0x20ac('0x29')]||_0x4f8794[_0x20ac('0x0')]:_0x4f8794;return(!_0xfed869||!k[_0x20ac('0x3')](_0xfed869))&&(!_0x4f8794[_0x20ac('0x2d')]||_0x4f8794[_0x20ac('0x2d')][_0x20ac('0xb')](_0x1bddf0=>w(_0x1bddf0,_0x49f57d)));}
23
+ const _0x4733=['trackChangesData.editorCreator','concat','editorCreator','discardAllSuggestions','createDocumentFragment','plugins','function','useAnonymousUser','every','users','string','toolbar','RealTimeCollaborativeComments','div','editor','names','TrackChangesDataGetter','destroy','create','addUser','createElement','includes','requires','from','data','name','document','add','filter','config','builtinPlugins','constructor','WordCount','find','RealTimeCollaborativeRevisionHistory','_adapter','pluginName','initialData','track-changes-data-invalid-editor-creator','execute','appendChild','end','RealTimeCollaborativeEditing','getUser','set','context','TrackChangesEditing','acceptAllSuggestions','define','map','model','getRootNames','init','trackChangesData','extraPlugins','CommentsRepository','Users','push','get','has'];(function(_0x490c54,_0x473359){const _0x324170=function(_0x5eef53){while(--_0x5eef53){_0x490c54['push'](_0x490c54['shift']());}};_0x324170(++_0x473359);}(_0x4733,0x197));const _0x3241=function(_0x490c54,_0x473359){_0x490c54=_0x490c54-0x0;let _0x324170=_0x4733[_0x490c54];return _0x324170;};import{Plugin as _0x5340a7}from'ckeditor5/src/core';import{CKEditorError as _0x4b9dfb}from'ckeditor5/src/utils';import _0x401f26 from'./trackchangesediting';const C=[_0x3241('0x32'),_0x3241('0x3a'),_0x3241('0x18')],k=[_0x3241('0x37'),_0x3241('0x19'),'RealTimeCollaborativeTrackChanges',_0x3241('0x2f'),'Autosave',_0x3241('0x2d')];export default class T extends _0x5340a7{static get[_0x3241('0x23')](){return[_0x401f26];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x28b474=this['editor'];if(_0x28b474[_0x3241('0x2a')][_0x3241('0x1')](_0x3241('0xd'),_0x9d44e8=>_0x28b474[_0x3241('0x2c')][_0x3241('0x1f')]('',_0x9d44e8)),_0x3241('0x13')!=typeof _0x28b474['config'][_0x3241('0xb')](_0x3241('0x6'))[_0x3241('0xf')])throw new _0x4b9dfb(_0x3241('0x33'));}['getDataWithAcceptedSuggestions'](_0x4b2c27){return v(this[_0x3241('0x1b')],!0x0,_0x4b2c27);}['getDataWithDiscardedSuggestions'](_0x48ccc9){return v(this[_0x3241('0x1b')],!0x1,_0x48ccc9);}}class D extends _0x5340a7{static get[_0x3241('0x31')](){return _0x3241('0x1d');}[_0x3241('0x5')](){this['result']=_0x3241('0x36'),this['editor'][_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x8'))['_adapter']={'getCommentThread':()=>new Promise(()=>{})},this['editor']['plugins'][_0x3241('0xb')]('TrackChangesEditing')[_0x3241('0x30')]=null;}}async function v(_0x286e61,_0xb2631,_0x4c1150){const _0x2e33ee=function(_0x60b2a){const _0x40bdbb={};for(const _0x302e4f of _0x60b2a[_0x3241('0x2a')][_0x3241('0x1c')]())C['includes'](_0x302e4f)||(_0x40bdbb[_0x302e4f]=_0x60b2a[_0x3241('0x2a')][_0x3241('0xb')](_0x302e4f));const _0x2972bc=_0x60b2a['constructor'][_0x3241('0x2b')]||[],_0x3a4184=_0x40bdbb['extraPlugins']||[];delete _0x40bdbb[_0x3241('0x7')];const _0x428b74=_0x2972bc[_0x3241('0xe')](_0x40bdbb[_0x3241('0x12')])[_0x3241('0xe')](_0x3a4184)[_0x3241('0x2')](_0x4ff72e=>_0x3241('0x17')==typeof _0x4ff72e?_0x2972bc[_0x3241('0x2e')](_0x2acd7e=>_0x2acd7e[_0x3241('0x31')]==_0x4ff72e):_0x4ff72e),_0x2ac815=Array[_0x3241('0x24')](new Set(_0x428b74));return _0x40bdbb['plugins']=_0x2ac815[_0x3241('0x29')](_0x45aabb=>w(_0x45aabb,new Set())),_0x40bdbb[_0x3241('0x12')][_0x3241('0xa')](D),_0x40bdbb['plugins'][_0x3241('0xa')](_0x401f26),_0x40bdbb;}(_0x286e61),_0x40413b=document[_0x3241('0x11')](),_0x3c0443=_0x286e61[_0x3241('0x2a')][_0x3241('0xb')](_0x3241('0x6'))[_0x3241('0xf')],_0x1e8499=await _0x3c0443(_0x2e33ee,()=>function(_0x3d9fb0){const _0x1177fd=document[_0x3241('0x21')](_0x3241('0x1a'));return _0x3d9fb0[_0x3241('0x35')](_0x1177fd),_0x1177fd;}(_0x40413b));!function(_0x5a8efe,_0x5b15f0){const _0xf1489e=_0x5a8efe[_0x3241('0x3')][_0x3241('0x27')][_0x3241('0x4')]()['reduce']((_0x414b2f,_0x54c2a1)=>(_0x414b2f[_0x54c2a1]=_0x5a8efe[_0x3241('0x25')][_0x3241('0xb')]({'rootName':_0x54c2a1}),_0x414b2f),{}),_0x3eefd9=_0x5a8efe['plugins'][_0x3241('0xb')](_0x3241('0x9'))[_0x3241('0x16')][_0x3241('0x2')](_0x3545da=>({'id':_0x3545da['id']})),_0x694e8b=_0x5a8efe[_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x3b'))['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ae430=_0x5b15f0[_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x9')),_0x783264=_0x5b15f0[_0x3241('0x12')][_0x3241('0xb')](_0x3241('0x3b'));for(const _0x92c269 of _0x3eefd9)_0x2ae430[_0x3241('0x38')](_0x92c269['id'])||_0x2ae430[_0x3241('0x20')](_0x92c269);_0x2ae430['me']||_0x2ae430[_0x3241('0x14')]();for(const _0x2304d0 of _0x694e8b)_0x783264['addSuggestionData'](_0x2304d0);_0x5b15f0[_0x3241('0x25')][_0x3241('0x39')](_0xf1489e);}(_0x286e61,_0x1e8499),_0x1e8499[_0x3241('0x34')](_0xb2631?_0x3241('0x0'):_0x3241('0x10'));const _0x2f3aca=_0x1e8499[_0x3241('0x25')][_0x3241('0xb')](_0x4c1150);return await _0x1e8499[_0x3241('0x1e')](),_0x2f3aca;}function w(_0x1c88e7,_0x473665){if(_0x473665[_0x3241('0xc')](_0x1c88e7))return!0x0;_0x473665[_0x3241('0x28')](_0x1c88e7);const _0x3a1a7b=_0x3241('0x13')==typeof _0x1c88e7?_0x1c88e7[_0x3241('0x31')]||_0x1c88e7[_0x3241('0x26')]:_0x1c88e7;return(!_0x3a1a7b||!k[_0x3241('0x22')](_0x3a1a7b))&&(!_0x1c88e7[_0x3241('0x23')]||_0x1c88e7[_0x3241('0x23')][_0x3241('0x15')](_0x3df3c4=>w(_0x3df3c4,_0x473665)));}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4089=['start','_onDiscard','push','head','isEqual','skipNestingCheck','removed','isInContent','splitPosition','getFirstRange','buildSuggestion','_isForcedDefaultExecutionBlock','getFirstMarker','newRange','insert','enableReadOnlyMode','markInsertion','addSuggestion','end','track-changes-suggestion-data-mismatch','rootName','notReady','document','markerToData','containsRangeInObject','addMarker','addMarkerName','getSuggestionCallback','_saved','some','getDifference','hasSuggestion','author','markerName','commandName','length','set','low','addClass','createElement','deletion:accept','bindElementToMarker','formatInline','removeMarkers','mapper','_suggestionFactory','oldRange','_getSuggestionData','remove','fetchCommentThread','dataToMarker','getLastMatchingPosition','markerReady','lowest','selection','deletion:discard','$graveyard','editing','schema','getUser','error-saving-suggestion-data-suggestion-discarded','suggestionLoaded','markMultiRangeInsertion','insertion:join','track-changes-adapter-already-set','isLimit','root','_setSuggestionRange','isAtStart','_descriptionFactory','ready','commands','howMany','removeMarker:suggestion:formatBlock','writer','return','createPositionAt','isIntersectingWithRange','_addThreadToSuggestion','consume','addMarker:suggestion:formatBlock','_cutOutSuggestionMarker','execute','rejected','targetPosition','clone','getItems','markDeletion','addCommentThread','accept','_breakSuggestionMarker','hasCommentThread','has','PendingActions','position','discardAllSuggestions','getMarkers','textProxy','updateSuggestion','getIntersection','getMultiRangeId','locale','join','_customCallbacks','getShiftedBy','editor','size','subType','_setSuggestionData','removeClass','createdAt','showSuggestionHighlights','suggestion','_suggestionState','addHighlight','addMarker:suggestion','updateMarker','insertion:discard','registerPostFixer','dataReady','before','split','high','_rangeIsInLocalUserInsertion','formatInline:accept','fromCharCode','moveTargetPosition','previous','markers','fire','commentThread','value','_removeSuggestion','setTo','insertion','parent','elementToElement','isNextTo','detach','registerCustomCallback','_editor','createPositionAfter','createRangeIn','_addSuggestionMarker','attributes','model','nodeBefore','marker-count','requires','elementStart','getChanges','element','insertion:','splice','_getAuthorFromId','isCollapsed','_commentsRepository','isOwn','_defaultCallbacks','getRanges','TrackChangesEditing','activeMarkers','Users','getSuggestion','filter','_handleNewSuggestionMarker','isObject','getChangedMarkers','conversion','data-suggestion','adapter','containerElement','markerNameToElements','_refreshSuggestionsChain','insertion:chain','discard','toViewElement','insertContent','init','isAfter','batch','trackChanges','suggestionUnloaded','delete','get','_model','options','isBlock','dataDowncast','collaboration.channelId','_joinWithAdjacentSuggestions','getAncestors','suggestionChanged','rethrowUnexpectedError','isBefore','isAtEnd','refresh','after','setAttribute','_findSuggestions','ck-suggestion-marker','getAttribute','enableCommand','_updateSuggestionData','deletion','getNearestSelectionRange','isUndo','multipleBlocks','change','formatInline:','containsPosition','deletion:','ck-suggestion-marker-formatBlock','isLocal','editingDowncast','formatInline:discard','plugins','elementEnd','deletion:chain','createSelection','name','containsRange','reconvertMarker','formatInline:join','stop','clear','values','pluginName','createRange','suggestion-type','createPositionBefore','removeMarker','isMultiRange','sort','update:suggestion','formatInline:chain','getAllAdjacentSuggestions','_suggestions','isInsideObject','map','setSelection','nodeAfter','track-changes-suggestion-not-found','acceptSuggestion','suggestion:','_splitMarkerName','ck-suggestion-marker-','stopListening','enqueueChange','isRemovable','config','PENDING_ACTION_SUGGESTION','differ','originalSuggestionId','change:activeMarkers','listenTo','multi','range','_registerDefaultCallbacks','_joinSuggestions','deleteContent','add','applyOperation','addSuggestionData','track-changes-command-not-found','unbind','markerToHighlight','unbindElementFromMarkerName','trackChangesCommand','acceptSelectedSuggestions','acceptAllSuggestions','includes','CommentsRepository','chain','_adapter','data','formatBlock','fromRange','formatGroupId','change:_saved','item','open','formatBlock:join','forceDefaultExecution','removeComment','markInlineFormat','hasComments','formatBlock:','next','then','_enabledCommands','getCustomProperty','for','discardSuggestion','type','getSuggestions','ck-suggestion-marker--active','_checkSuggestionCorrectness','addRange','track-changes-adapter-missing-getsuggestion','getCommentThread','accepted','backward','every','from','toJSON','consumable'];(function(_0x4aea98,_0x408935){const _0x8bed06=function(_0x3a6c32){while(--_0x3a6c32){_0x4aea98['push'](_0x4aea98['shift']());}};_0x8bed06(++_0x408935);}(_0x4089,0x19e));const _0x8bed=function(_0x4aea98,_0x408935){_0x4aea98=_0x4aea98-0x0;let _0x8bed06=_0x4089[_0x4aea98];return _0x8bed06;};import{Plugin as _0x307784,PendingActions as _0x505e89}from'ckeditor5/src/core';import{LiveRange as _0x533e76}from'ckeditor5/src/engine';import{CKEditorError as _0x210547,uid as _0x91d85,priorities as _0x2475cb,EmitterMixin as _0x199b9c,mix as _0xf3e8ef,logWarning as _0x5aa693}from'ckeditor5/src/utils';import{toWidget as _0x2db298}from'ckeditor5/src/widget';import{Users as _0x23dace}from'ckeditor5-collaboration/src/collaboration-core';import _0x2936c1 from'./commands/trackchangescommand';import _0x2ab529 from'./commands/acceptsuggestioncommand';import _0x386037 from'./commands/discardsuggestioncommand';import _0x4825ed from'./commands/acceptallsuggestionscommand';import _0x5a2bfa from'./commands/acceptselectedsuggestionscommand';import _0x1fade7 from'./commands/discardallsuggestionscommand';import _0x4c6e2a from'./commands/discardselectedsuggestionscommand';import _0x428f40 from'./suggestion';import _0x595e7c from'./suggestiondescriptionfactory';import _0x551678 from'./integrations/alignment';import _0x327e99 from'./integrations/basicstyles';import _0x1a6dce from'./integrations/blockquote';import _0x14a691 from'./integrations/ckbox';import _0xbbf70e from'./integrations/codeblock';import _0x38e71 from'./integrations/comments';import _0x720762 from'./integrations/deletecommand';import _0x2d6633 from'./integrations/entercommand';import _0x4b3971 from'./integrations/font';import _0x2b8380 from'./integrations/heading';import _0x257272 from'./integrations/highlight';import _0x4c2615 from'./integrations/horizontalline';import _0x3b6a19 from'./integrations/htmlembed';import _0x13f7f5 from'./integrations/image';import _0xf686e0 from'./integrations/indent';import _0x5d7337 from'./integrations/inputcommand';import _0x1a8e22 from'./integrations/link';import _0x39eaa7 from'./integrations/list';import _0x1c4360 from'./integrations/mediaembed';import _0x1af6ca from'./integrations/mention';import _0x897dff from'./integrations/pagebreak';import _0x2939f2 from'./integrations/paragraph';import _0x1545fb from'./integrations/removeformat';import _0x1d3af2 from'./integrations/restrictededitingmode';import _0x49f92f from'./integrations/shiftentercommand';import _0x4a0185 from'./integrations/standardeditingmode';import _0x3e8bbd from'./integrations/style';import _0x38f193 from'./integrations/table';import _0x36cbc0 from'./integrations/tablemergesplit';import _0x10e396 from'./integrations/tableheadings';import _0x3810d0 from'./integrations/tableclipboard';import _0x3bdb64 from'./integrations/title';import _0xa9c21f from'./integrations/undo';import _0x36dc3a from'./utils/hashobject.js';import{getTranslation as _0xf0b42e}from'./utils/common-translations';export default class d extends _0x307784{static get[_0x8bed('0x29')](){return[_0x8bed('0xa5'),_0x23dace,_0x505e89,_0x551678,_0x327e99,_0x1a6dce,_0x14a691,_0xbbf70e,_0x38e71,_0x720762,_0x2d6633,_0x4b3971,_0x2b8380,_0x257272,_0x4c2615,_0x3b6a19,_0x13f7f5,_0xf686e0,_0x5d7337,_0x1a8e22,_0x39eaa7,_0x1c4360,_0x1af6ca,_0x897dff,_0x2939f2,_0x1545fb,_0x1d3af2,_0x49f92f,_0x4a0185,_0x3e8bbd,_0x38f193,_0x36cbc0,_0x10e396,_0x3810d0,_0x3bdb64,_0xa9c21f];}static get[_0x8bed('0x78')](){return _0x8bed('0x35');}constructor(_0x13ca0d){function _0x57ab3f(_0x54d4e1){return _0x54d4e1[_0x8bed('0x84')](_0x233614=>String[_0x8bed('0x12')](_0x233614))[_0x8bed('0x12e')]('');}super(_0x13ca0d),this['set'](_0x8bed('0x36'),[]),this['on'](_0x8bed('0x93'),(_0x502c4d,_0x256823,_0x18bf33,_0x10bc72)=>{this[_0x8bed('0x4e')][_0x8bed('0x65')](()=>{for(const _0x4841c5 of[..._0x10bc72,..._0x18bf33])this[_0x8bed('0x4e')][_0x8bed('0x15')][_0x8bed('0x124')](_0x4841c5)&&_0x13ca0d[_0x8bed('0x101')][_0x8bed('0x73')](_0x4841c5);});}),this[_0x8bed('0x10d')]=new _0x595e7c(this[_0x8bed('0x131')][_0x8bed('0x26')][_0x8bed('0x102')],this[_0x8bed('0x131')][_0x8bed('0x12d')]),this[_0x8bed('0xa7')]=null,this['_suggestionFactory']=new kt(this['editor']),this[_0x8bed('0x82')]=new Map(),this[_0x8bed('0x31')]=_0x13ca0d[_0x8bed('0x6d')][_0x8bed('0x4d')]('CommentsRepository'),this[_0x8bed('0xb7')]=new Set(),this['_model']=this[_0x8bed('0x131')]['model'],this[_0x8bed('0x6')]=new WeakMap(),this[_0x8bed('0xd3')]=!0x1,this[_0x57ab3f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57ab3f([0x34,0x30,0x34,0x34,0x31,0x36,0x36,0x32]);}[_0x8bed('0x47')](){const _0x3f6ddd=this[_0x8bed('0x131')];_0x3f6ddd['conversion'][_0x8bed('0xb9')]('editingDowncast')[_0x8bed('0x9f')]({'model':_0x8bed('0x5'),'view':_0x4a7707=>{const {id:_0x413f99,type:_0x314d0b}=this[_0x8bed('0x8a')](_0x4a7707[_0x8bed('0xe9')]),_0x45d78b=['ck-suggestion-marker',_0x8bed('0x8b')+_0x314d0b];let _0x25944a=0xbb8;return this[_0x8bed('0x36')][_0x8bed('0xa4')](_0x4a7707[_0x8bed('0xe9')])&&(_0x45d78b[_0x8bed('0xca')](_0x8bed('0xbd')),_0x25944a=0xbc2),_0x8bed('0x61')==_0x314d0b&&(_0x25944a+=0x5),{'classes':_0x45d78b,'attributes':{'data-suggestion':_0x413f99},'priority':_0x25944a};}}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')](_0x8bed('0x51'))[_0x8bed('0x9a')](_0xb55e44=>{_0xb55e44['on'](_0x8bed('0x8'),(_0x57048f,_0x5e273c,_0x73904b)=>{if(!_0x73904b[_0x8bed('0x4f')][_0x8bed('0x4')])return;const _0x1e6232=_0x5e273c[_0x8bed('0xad')];if(!_0x1e6232)return;const _0x40ccfe=_0x73904b[_0x8bed('0xf4')][_0x8bed('0x45')](_0x1e6232);_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')][_0x8bed('0x3b')](_0x1e6232)&&_0x40ccfe&&!_0x40ccfe[_0x8bed('0xb8')]('widget')&&_0x40ccfe['is'](_0x8bed('0x40'))&&_0x2db298(_0x40ccfe,_0x73904b['writer']);},{'priority':_0x8bed('0xf')});}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')]('dataDowncast')[_0x8bed('0x9f')]({'model':_0x8bed('0x5'),'view':(_0x42ee8d,_0x2ee1c7)=>{if(!_0x2ee1c7[_0x8bed('0x4f')][_0x8bed('0x4')])return null;const {type:_0xba0c7a}=this[_0x8bed('0x8a')](_0x42ee8d[_0x8bed('0xe9')]);return{'classes':[_0x8bed('0x5d'),_0x8bed('0x8b')+_0xba0c7a],'priority':0xbb8};}});const _0x44197d=({showActiveMarkers:_0x16c58c=!0x0}={})=>(_0xc620d3,_0x48b436,_0x53bd0f)=>{if(!_0x48b436['item'])return;if(_0x48b436[_0x8bed('0xad')]['is'](_0x8bed('0xfe')))return void _0x53bd0f[_0x8bed('0xc7')]['consume'](_0x48b436[_0x8bed('0xad')],_0xc620d3[_0x8bed('0x71')]);const _0x10d3c2=_0x53bd0f[_0x8bed('0xf4')][_0x8bed('0x45')](_0x48b436[_0x8bed('0xad')]);if(!(_0x48b436[_0x8bed('0xad')]['is'](_0x8bed('0x2c'))&&_0x3f6ddd[_0x8bed('0x26')]['schema']['isBlock'](_0x48b436[_0x8bed('0xad')])&&!_0x10d3c2[_0x8bed('0xb8')](_0x8bed('0x7'))))return;const {id:_0x25925f}=this[_0x8bed('0x8a')](_0x48b436['markerName']);_0x53bd0f['writer'][_0x8bed('0xee')]([_0x8bed('0x5d'),'ck-suggestion-marker-formatBlock'],_0x10d3c2),_0x53bd0f[_0x8bed('0x112')][_0x8bed('0x5b')](_0x8bed('0x3e'),_0x25925f,_0x10d3c2),_0x53bd0f[_0x8bed('0xf4')][_0x8bed('0xf1')](_0x10d3c2,_0x48b436[_0x8bed('0xe9')]),_0x16c58c&&(this[_0x8bed('0x36')][_0x8bed('0xa4')](_0x48b436[_0x8bed('0xe9')])?_0x53bd0f[_0x8bed('0x112')][_0x8bed('0xee')]('ck-suggestion-marker--active',_0x10d3c2):_0x53bd0f[_0x8bed('0x112')][_0x8bed('0x2')](_0x8bed('0xbd'),_0x10d3c2));for(const _0x169d5c of _0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x23')](_0x48b436[_0x8bed('0xad')])[_0x8bed('0x11e')]())_0x53bd0f['consumable'][_0x8bed('0x117')](_0x169d5c,_0xc620d3[_0x8bed('0x71')]);_0x53bd0f[_0x8bed('0xc7')]['consume'](_0x48b436[_0x8bed('0xad')],_0xc620d3['name']);};_0x3f6ddd['conversion'][_0x8bed('0xb9')]('dataDowncast')[_0x8bed('0x9a')](_0x34099e=>{_0x34099e['on'](_0x8bed('0x118'),(_0x2c35ec,_0xfa06e8,_0x3d6bb4)=>{_0x3d6bb4['options'][_0x8bed('0x4')]&&_0x44197d({'showActiveMarkers':!0x1})(_0x2c35ec,_0xfa06e8,_0x3d6bb4);},{'priority':'highest'});}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')](_0x8bed('0x51'))[_0x8bed('0xdf')]({'model':_0x8bed('0x5'),'view':(_0x29407c,_0x3ba83c)=>_0x3ba83c['options'][_0x8bed('0x4')]?null:{'group':_0x8bed('0x5'),'name':_0x29407c['substr'](_0x8bed('0x5')[_0x8bed('0xeb')]+0x1)}}),_0x3f6ddd[_0x8bed('0x3d')]['for']('upcast')[_0x8bed('0x1d')]({'view':{'name':_0x8bed('0x5'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x471656,{writer:_0x2cbc5d})=>{let _0x1a3a4b=_0x8bed('0x89')+_0x471656[_0x8bed('0x5e')](_0x8bed('0x7a'))+':'+_0x471656['getAttribute']('id');return _0x471656[_0x8bed('0x5e')](_0x8bed('0x28'))&&(_0x1a3a4b+=':'+_0x471656['getAttribute'](_0x8bed('0x28'))),_0x2cbc5d[_0x8bed('0xef')]('$marker',{'data-name':_0x1a3a4b});}}),_0x3f6ddd['conversion']['for']('upcast')[_0x8bed('0xfa')]({'view':_0x8bed('0x5')}),_0x3f6ddd['conversion'][_0x8bed('0xb9')](_0x8bed('0x6b'))[_0x8bed('0x9a')](_0x5cf310=>{_0x5cf310['on'](_0x8bed('0x118'),_0x44197d(),{'priority':'high'});}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')](_0x8bed('0x6b'))[_0x8bed('0x9a')](_0x3b299d=>{_0x3b299d['on'](_0x8bed('0x111'),(_0x349b33,_0x445ea1,_0x20395e)=>{const _0xe4ac3d=_0x20395e['mapper'][_0x8bed('0x41')](_0x445ea1[_0x8bed('0xe9')]);if(_0xe4ac3d)for(const _0x8ce3b7 of _0xe4ac3d)_0x8ce3b7[_0x8bed('0xb8')](_0x8bed('0x7'))||(_0x20395e[_0x8bed('0x112')]['removeClass']([_0x8bed('0x5d'),_0x8bed('0x69'),_0x8bed('0xbd')],_0x8ce3b7),_0x20395e[_0x8bed('0x112')]['removeAttribute'](_0x8bed('0x3e'),_0x8ce3b7),_0x20395e[_0x8bed('0xf4')][_0x8bed('0xa0')](_0x8ce3b7,_0x445ea1[_0x8bed('0xe9')]));},{'priority':_0x8bed('0xf')});}),_0x3f6ddd[_0x8bed('0x26')]['document'][_0x8bed('0xb')](_0xf98ca9=>{let _0x221584=!0x1;const _0x2e473a=Array['from'](_0x3f6ddd[_0x8bed('0x26')]['document']['differ'][_0x8bed('0x3c')]());for(const {name:_0x4e3a02,data:_0x28cb1c}of _0x2e473a){const {group:_0x15b63e,type:_0x235507,id:_0x7446d0}=this[_0x8bed('0x8a')](_0x4e3a02);if(_0x8bed('0x5')!==_0x15b63e)continue;const _0x3880e7=this['_suggestions'][_0x8bed('0x4d')](_0x7446d0);if(null!=_0x28cb1c[_0x8bed('0xd5')]){_0x8bed('0xf2')==_0x235507&&(_0x221584=_0x221584||bt(_0x28cb1c[_0x8bed('0xd5')],_0x4e3a02,_0xf98ca9,_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')]));if(_0x28cb1c[_0x8bed('0xd5')][_0x8bed('0x30')]||_0x8bed('0x100')==_0x28cb1c[_0x8bed('0xd5')]['root'][_0x8bed('0xdc')]||_0x8bed('0xa9')==_0x235507&&!It(_0x28cb1c['newRange'])||_0x8bed('0x61')==_0x235507&&!(!yt(_0x519b65=_0x28cb1c[_0x8bed('0xd5')])&&!function(_0x2bfa8f){return _0x2bfa8f[_0x8bed('0xc8')][_0x8bed('0x1c')]==_0x2bfa8f[_0x8bed('0xda')][_0x8bed('0x27')]&&_0x2bfa8f[_0x8bed('0xc8')]['isAtEnd'];}(_0x519b65)))_0xf98ca9[_0x8bed('0x7c')](_0x4e3a02),_0x221584=!0x0;else{if(!_0x3880e7||!_0x3880e7[_0x8bed('0xcf')])continue;_0x221584=!!this[_0x8bed('0x53')](_0x3880e7)||_0x221584;}}}var _0x519b65;return _0x221584;}),_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0xde')][_0x8bed('0xb')](_0x22fa3a=>{let _0x325275=!0x1;for(const _0x4288e8 of _0x3f6ddd['model'][_0x8bed('0xde')][_0x8bed('0x91')][_0x8bed('0x2b')]()){if(_0x8bed('0xd6')!=_0x4288e8[_0x8bed('0xbb')])continue;const _0x3435ca=_0x4288e8['position']['getShiftedBy'](_0x4288e8['length']);if(_0x3435ca['isAtEnd'])for(const _0x233892 of this[_0x8bed('0x82')]['values']()){if(_0x233892[_0x8bed('0x7d')]||!_0x233892[_0x8bed('0xcf')])continue;if(_0x8bed('0xa9')!=_0x233892[_0x8bed('0xbb')])continue;const _0x70a77=_0x233892['getFirstRange']();if(_0x70a77['start']['parent']!=_0x70a77[_0x8bed('0xda')][_0x8bed('0x1c')]&&_0x70a77[_0x8bed('0xda')][_0x8bed('0xcc')](_0x4288e8[_0x8bed('0x126')])){const _0x498f96=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x70a77['start'],_0x3435ca);_0x22fa3a[_0x8bed('0x9')](_0x233892['getFirstMarker'](),{'range':_0x498f96}),_0x325275=!0x0;}}}return _0x325275;}),_0x3f6ddd[_0x8bed('0x26')]['markers']['on'](_0x8bed('0x7f'),(_0x1baeeb,_0x5724af,_0x3df302)=>{if(null==_0x3df302){const {id:_0x288da8}=this['_splitMarkerName'](_0x5724af[_0x8bed('0x71')]),_0x4b6e48=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x288da8);_0x4b6e48&&_0x4b6e48[_0x8bed('0xe2')](_0x5724af[_0x8bed('0x71')]);}}),_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0xde')]['on']('change:data',()=>{const _0x34fe0c=Array[_0x8bed('0xc5')](_0x3f6ddd['model'][_0x8bed('0xde')][_0x8bed('0x91')]['getChangedMarkers']());_0x34fe0c[_0x8bed('0x7e')]((_0x9a8dd0,_0x1a70ee)=>{const _0x2ac1d1=_0x9a8dd0['data'][_0x8bed('0xf6')],_0x556a48=_0x1a70ee[_0x8bed('0xa8')]['oldRange'];return null===_0x2ac1d1&&null===_0x556a48?0x0:null===_0x2ac1d1&&null!==_0x556a48?-0x1:null!==_0x2ac1d1&&null===_0x556a48?0x1:_0x2ac1d1[_0x8bed('0xc8')][_0x8bed('0x57')](_0x556a48[_0x8bed('0xc8')])?-0x1:0x1;});const _0x3ac469=new Set();for(const {name:_0x3dcb66,data:_0xcb097b}of _0x34fe0c){const {group:_0x1ca02c,id:_0x4d0984}=this[_0x8bed('0x8a')](_0x3dcb66);if(_0x8bed('0x5')===_0x1ca02c&&(null===_0xcb097b[_0x8bed('0xf6')]&&this[_0x8bed('0x3a')](_0x3dcb66),null===_0xcb097b[_0x8bed('0xd5')])){const _0x53d7d7=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x4d0984);_0x53d7d7[_0x8bed('0xcf')]?_0x3ac469['add'](_0x53d7d7):this[_0x8bed('0x19')](_0x53d7d7);}}for(const {name:_0x239de2,data:_0x513401}of _0x34fe0c){const {group:_0x2fbc10,id:_0x4765e7}=this[_0x8bed('0x8a')](_0x239de2);if('suggestion'!==_0x2fbc10)continue;const _0x3e355=this[_0x8bed('0x82')]['get'](_0x4765e7);null!=_0x513401[_0x8bed('0xd5')]&&null!=_0x513401[_0x8bed('0xf6')]&&(this[_0x8bed('0x42')](_0x3e355),_0x3ac469[_0x8bed('0x9a')](_0x3e355[_0x8bed('0xcb')]));}for(const _0x2c7e87 of _0x3ac469)this['fire'](_0x8bed('0x55'),_0x2c7e87);_0x3ac469['clear']();}),_0x3f6ddd[_0x8bed('0x26')]['on'](_0x8bed('0x9b'),(_0x46c39c,_0x2a3d5b)=>{const _0x19e94a=_0x2a3d5b[0x0];if(!this[_0x8bed('0x82')][_0x8bed('0x132')])return;if(!_0x19e94a['isDocumentOperation'])return;if(_0x19e94a[_0x8bed('0x49')][_0x8bed('0x63')]||!_0x19e94a['batch'][_0x8bed('0x6a')])return;let _0x229fae,_0x588332;switch(_0x19e94a[_0x8bed('0xbb')]){case _0x8bed('0xd6'):_0x229fae=_0x3f6ddd[_0x8bed('0x26')]['createPositionAt'](_0x19e94a[_0x8bed('0x126')]),_0x588332=_0x229fae[_0x8bed('0x130')](_0x19e94a[_0x8bed('0x110')]);break;case _0x8bed('0xe'):_0x229fae=_0x3f6ddd[_0x8bed('0x26')]['createPositionAt'](_0x19e94a[_0x8bed('0xd0')]),_0x588332=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x114')](_0x19e94a[_0x8bed('0x13')]);break;case'move':_0x229fae=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x114')](_0x19e94a[_0x8bed('0x11c')]),_0x588332=_0x229fae['getShiftedBy'](_0x19e94a[_0x8bed('0x110')]);break;default:return;}const _0x36601e=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x229fae,_0x588332);_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x65')](()=>{for(const {suggestion:_0x1e6e96,meta:_0xa44735}of this[_0x8bed('0x5c')](_0x36601e)){if(_0x1e6e96[_0x8bed('0x7d')])continue;if('formatInline'==_0x1e6e96['type'])continue;const _0x54a897=_0x1e6e96[_0x8bed('0xa8')]&&_0x1e6e96['data'][_0x8bed('0x64')];(_0x8bed('0xa9')!=_0x1e6e96[_0x8bed('0xbb')]||_0x8bed('0xe')==_0x19e94a[_0x8bed('0xbb')]&&!_0x54a897)&&(_0xa44735[_0x8bed('0xe0')]||_0x8bed('0x1b')==_0x1e6e96[_0x8bed('0xbb')]&&_0xa44735[_0x8bed('0x32')]||_0x1e6e96[_0x8bed('0xd1')]()[_0x8bed('0x72')](_0x36601e)&&this[_0x8bed('0x122')](_0x1e6e96,_0x229fae,_0x588332));}});},{'priority':_0x8bed('0xfd')}),_0x3f6ddd[_0x8bed('0x26')]['on'](_0x8bed('0x99'),(_0x579c8f,_0x4f3c7f)=>{const _0x5ea6a3=_0x4f3c7f[0x0],_0xde8c85=_0x4f3c7f[0x1];if(_0xde8c85&&_0xde8c85[_0x8bed('0xb0')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x8bed('0xa1')][_0x8bed('0x18')])return;if(_0x5ea6a3['isCollapsed'])return;const _0x175e84=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')],{start:_0x19aa2c,end:_0x391059}=_0x5ea6a3[_0x8bed('0xd1')](),_0x1651ba=_0x19aa2c[_0x8bed('0x86')]&&_0x175e84[_0x8bed('0x3b')](_0x19aa2c[_0x8bed('0x86')])?null:_0x175e84['getNearestSelectionRange'](_0x19aa2c,'forward'),_0xfb8096=_0x391059[_0x8bed('0x27')]&&_0x175e84[_0x8bed('0x3b')](_0x391059[_0x8bed('0x27')])?null:_0x175e84[_0x8bed('0x62')](_0x391059,_0x8bed('0xc3')),_0x110b52=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x1651ba?_0x1651ba[_0x8bed('0xc8')]:_0x19aa2c,_0xfb8096?_0xfb8096[_0x8bed('0xda')]:_0x391059);_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x65')](_0x350f22=>{this[_0x8bed('0x11f')](_0x110b52);const _0x1bedcd=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')][_0x8bed('0x62')](_0x110b52['start']);_0x5ea6a3['is']('documentSelection')?_0x350f22[_0x8bed('0x85')](_0x1bedcd):_0x5ea6a3[_0x8bed('0x1a')](_0x1bedcd);}),_0x579c8f[_0x8bed('0x75')]();},{'priority':_0x2475cb['normal']+0xa}),_0x3f6ddd['model']['on'](_0x8bed('0x46'),(_0x138b6a,_0x58cfaa)=>{const _0x4b2a3c=_0x58cfaa[_0x58cfaa[_0x8bed('0xeb')]-0x1];_0x4b2a3c&&_0x4b2a3c[_0x8bed('0xb0')]||this[_0x8bed('0xd3')]||this[_0x8bed('0xa1')][_0x8bed('0x18')]&&(_0x3f6ddd[_0x8bed('0x26')]['change'](()=>{let _0x13f3da=_0x3f6ddd[_0x8bed('0x26')]['insertContent'](_0x58cfaa[0x0],_0x58cfaa[0x1],_0x58cfaa[0x2],_0x58cfaa[0x3],{'forceDefaultExecution':!0x0});if(!_0x13f3da)return;_0x138b6a[_0x8bed('0x113')]=_0x13f3da[_0x8bed('0x11d')]();const _0x395065=_0x13f3da[_0x8bed('0xda')][_0x8bed('0x27')],_0x53e3ea=_0x3f6ddd['model'][_0x8bed('0x102')];_0x395065&&_0x53e3ea[_0x8bed('0x50')](_0x395065)&&!_0x53e3ea[_0x8bed('0x3b')](_0x395065)&&(_0x13f3da=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x13f3da[_0x8bed('0xc8')],_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x114')](_0x395065,'end'))),this[_0x8bed('0xd8')](_0x13f3da);}),_0x138b6a[_0x8bed('0x75')]());},{'priority':'high'}),this[_0x8bed('0xa1')]=new _0x2936c1(_0x3f6ddd,this['_enabledCommands']),this['editor']['commands'][_0x8bed('0x9a')](_0x8bed('0x4a'),this[_0x8bed('0xa1')]),this[_0x8bed('0x5f')](_0x8bed('0x4a'));const _0x421c9e=new _0x2ab529(_0x3f6ddd,this[_0x8bed('0x82')]);_0x3f6ddd[_0x8bed('0x10f')][_0x8bed('0x9a')](_0x8bed('0x88'),_0x421c9e),this[_0x8bed('0x5f')](_0x8bed('0x88'));const _0x1d439d=new _0x386037(_0x3f6ddd,this[_0x8bed('0x82')]);_0x3f6ddd[_0x8bed('0x10f')][_0x8bed('0x9a')](_0x8bed('0xba'),_0x1d439d),this[_0x8bed('0x5f')](_0x8bed('0xba')),_0x3f6ddd[_0x8bed('0x10f')]['add'](_0x8bed('0xa3'),new _0x4825ed(_0x3f6ddd,_0x421c9e,this[_0x8bed('0x82')])),this[_0x8bed('0x5f')](_0x8bed('0xa3')),_0x3f6ddd[_0x8bed('0x10f')]['add'](_0x8bed('0x127'),new _0x1fade7(_0x3f6ddd,_0x1d439d,this[_0x8bed('0x82')])),this[_0x8bed('0x5f')](_0x8bed('0x127')),_0x3f6ddd['commands'][_0x8bed('0x9a')](_0x8bed('0xa2'),new _0x5a2bfa(_0x3f6ddd,_0x421c9e,this[_0x8bed('0x82')])),this['enableCommand']('acceptSelectedSuggestions'),_0x3f6ddd[_0x8bed('0x10f')][_0x8bed('0x9a')]('discardSelectedSuggestions',new _0x4c6e2a(_0x3f6ddd,_0x1d439d,this[_0x8bed('0x82')])),this[_0x8bed('0x5f')]('discardSelectedSuggestions');const _0x4bb869=_0x3f6ddd[_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0xa5'));this['listenTo'](_0x4bb869,'addComment',(_0x3fe6bf,{threadId:_0x11b541})=>{const _0x23c817=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x11b541);_0x23c817&&_0x23c817[_0x8bed('0x17')]&&0x1===_0x23c817[_0x8bed('0x17')][_0x8bed('0xeb')]&&this[_0x8bed('0x60')](_0x11b541,{'hasComments':!0x0});},{'priority':_0x8bed('0xed')}),this[_0x8bed('0x94')](_0x4bb869,_0x8bed('0xb1'),(_0x1ba089,{threadId:_0x3314bb})=>{const _0x325f59=this[_0x8bed('0x82')]['get'](_0x3314bb);_0x325f59&&_0x325f59['commentThread']&&!_0x325f59[_0x8bed('0x17')][_0x8bed('0xeb')]&&this[_0x8bed('0x60')](_0x3314bb,{'hasComments':!0x1});},{'priority':'low'});}set[_0x8bed('0x3f')](_0x1aabe7){if(this['_adapter'])throw new _0x210547(_0x8bed('0x108'),this);this[_0x8bed('0xa7')]=_0x1aabe7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xa32523=!0x1,toJSON:_0x519e41=!0x1}={}){const _0x5e5f7b=[];for(const _0x165d87 of this[_0x8bed('0x82')][_0x8bed('0x77')]())_0xa32523&&!_0x165d87[_0x8bed('0xcf')]||_0x5e5f7b['push'](_0x165d87);return _0x519e41?_0x5e5f7b[_0x8bed('0x84')](_0x38785f=>_0x38785f[_0x8bed('0xc6')]()):_0x5e5f7b;}[_0x8bed('0x38')](_0x1b4367){const _0x573619=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x1b4367);if(!_0x573619)throw new _0x210547(_0x8bed('0x87'),this);return _0x573619;}[_0x8bed('0xe7')](_0x4f789b){return this[_0x8bed('0x82')][_0x8bed('0x124')](_0x4f789b);}[_0x8bed('0x9c')](_0x49ab44){const {id:_0x7d355a,authorId:_0x58906d}=_0x49ab44,[_0x35d26b,_0x598649]=_0x49ab44['type']['split'](':'),_0x450635=this['_suggestions'][_0x8bed('0x4d')](_0x7d355a)||this['_createSuggestion'](_0x35d26b,_0x598649,_0x7d355a,_0x58906d);switch(this['_addThreadToSuggestion'](_0x450635),this['_checkSuggestionCorrectness'](_0x450635,_0x35d26b,_0x598649||null,_0x58906d),_0x450635[_0x8bed('0x3')]=_0x49ab44['createdAt'],_0x49ab44[_0x8bed('0xa8')]&&(_0x450635[_0x8bed('0xa8')]=_0x49ab44[_0x8bed('0xa8')]),_0x49ab44[_0x8bed('0x25')]&&(_0x450635[_0x8bed('0x25')]=_0x49ab44[_0x8bed('0x25')]),this['_adapter']&&this[_0x8bed('0xa7')][_0x8bed('0xd9')]||(_0x450635[_0x8bed('0xe4')]=!0x0),this[_0x8bed('0x6')]['get'](_0x450635)){case _0x8bed('0xdd'):this[_0x8bed('0x6')][_0x8bed('0xec')](_0x450635,_0x8bed('0xc'));break;case'markerReady':_0x450635[_0x8bed('0xcf')]?(this['_suggestionState'][_0x8bed('0xec')](_0x450635,_0x8bed('0x10e')),this['fire'](_0x8bed('0x105'),_0x450635)):this[_0x8bed('0x6')][_0x8bed('0xec')](_0x450635,_0x8bed('0xce'));}return _0x450635;}[_0x8bed('0x88')](_0x2d8136){this[_0x8bed('0xb0')](()=>{this[_0x8bed('0x131')][_0x8bed('0x26')][_0x8bed('0x65')](()=>{for(const _0x29af92 of _0x2d8136[_0x8bed('0x81')]())_0x29af92['accept']();});});}[_0x8bed('0xba')](_0x39f03c){this[_0x8bed('0xb0')](()=>{this[_0x8bed('0x131')][_0x8bed('0x26')]['change'](()=>{for(const _0x1c86b6 of _0x39f03c[_0x8bed('0x81')]())_0x1c86b6['discard']();});});}['enableCommand'](_0x46923e,_0xf75c28){const _0x1cd662=this['editor']['commands'][_0x8bed('0x4d')](_0x46923e);if(!_0x1cd662)throw new _0x210547(_0x8bed('0x9d'),this,{'commandName':_0x46923e});this[_0x8bed('0xb7')]['add'](_0x1cd662),_0xf75c28&&_0x1cd662['on'](_0x8bed('0x11a'),(_0x296368,_0x4f41ed)=>{this[_0x8bed('0xa1')][_0x8bed('0x18')]&&(this[_0x8bed('0xd3')]||_0x4f41ed[_0x8bed('0xeb')]>0x0&&_0x4f41ed[_0x4f41ed[_0x8bed('0xeb')]-0x1]&&_0x4f41ed[_0x4f41ed[_0x8bed('0xeb')]-0x1][_0x8bed('0xb0')]||(_0xf75c28((..._0x4ed528)=>_0x1cd662[_0x8bed('0x11a')](..._0x4ed528,{'forceDefaultExecution':!0x0}),..._0x4f41ed),_0x296368['stop']()));},{'priority':_0x8bed('0xf')});}['forceDefaultExecution'](_0x42a6e9){let _0x36d504,_0x26eae0;const _0x212d63=this['_isForcedDefaultExecutionBlock'];this[_0x8bed('0xd3')]=!0x0;try{_0x36d504=_0x42a6e9();}catch(_0xddc9cd){_0x26eae0=_0xddc9cd;}return _0x212d63||(this[_0x8bed('0xd3')]=!0x1),_0x26eae0&&_0x210547[_0x8bed('0x56')](_0x26eae0,this),_0x36d504;}[_0x8bed('0xd8')](_0x267645,_0x1765cc=null,_0x3308f5={}){if(_0x267645[_0x8bed('0x30')])return null;const _0x342346=this['editor']['plugins'][_0x8bed('0x4d')](_0x8bed('0x37'))['me'];for(const {suggestion:_0x56233c,meta:_0x1b8f44}of this['_findSuggestions'](_0x267645,_0x8bed('0x1b')))if(_0x1b8f44[_0x8bed('0x32')]){if(!_0x1b8f44[_0x8bed('0x1e')])return _0x56233c;if(_0x1765cc==_0x56233c[_0x8bed('0x0')]){const _0x1cf5c9=_0x56233c[_0x8bed('0xd1')]();return _0x1cf5c9[_0x8bed('0xc8')][_0x8bed('0xcc')](_0x267645[_0x8bed('0xda')])?this[_0x8bed('0x10b')](_0x56233c,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x267645[_0x8bed('0xc8')],_0x1cf5c9['end'])):this[_0x8bed('0x10b')](_0x56233c,this['_model'][_0x8bed('0x79')](_0x1cf5c9['start'],_0x267645[_0x8bed('0xda')])),_0x56233c;}}const _0x4ea99f=_0x91d85(),_0x5526cf=_0x342346['id'],_0x5b043b=_0x1765cc?_0x8bed('0x2d')+_0x1765cc:_0x8bed('0x1b'),_0x34bbfe=this['_setSuggestionData']({'id':_0x4ea99f,'type':_0x5b043b,'createdAt':new Date(),'authorId':_0x5526cf,'attributes':_0x3308f5});return this[_0x8bed('0x24')](_0x5b043b,_0x4ea99f,_0x5526cf,_0x267645),_0x34bbfe;}[_0x8bed('0x106')](_0x2d7d90,_0x1d8350='multi',_0x2c7374={}){const _0x1fc514=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'],_0x3557d8=this['_suggestionFactory'][_0x8bed('0xe3')](_0x8bed('0x1b'),_0x1d8350,_0x8bed('0x12e'));for(const _0x1deefd of this[_0x8bed('0xbc')]())if(_0x1deefd['author']['id']==_0x1fc514['id']&&_0x8bed('0x1b')==_0x1deefd[_0x8bed('0xbb')]&&_0x1deefd[_0x8bed('0x0')]==_0x1d8350&&(_0x3557d8(_0x1deefd[_0x8bed('0x34')](),_0x2d7d90)||_0x3557d8(_0x2d7d90,_0x1deefd['getRanges']()))){for(const _0x5e6936 of _0x2d7d90)_0x1deefd[_0x8bed('0xbf')](_0x5e6936);return _0x1deefd;}for(const _0x5ad5f2 of _0x2d7d90)for(const {suggestion:_0x3aea45,meta:_0x329911}of this['_findSuggestions'](_0x5ad5f2,'insertion')){if(!_0x329911['isOwn'])continue;let _0x4f244b=!0x0;for(const _0x4d7cea of _0x3aea45[_0x8bed('0x34')]())for(const _0x5566ff of _0x2d7d90)if(!_0x4d7cea[_0x8bed('0x72')](_0x5566ff)){_0x4f244b=!0x1;break;}if(_0x4f244b)return _0x3aea45;}const _0x2a698f=_0x91d85(),_0x4c9cf8=_0x1fc514['id'],_0x4c3f24=_0x8bed('0x2d')+_0x1d8350,_0x3c13f5=this[_0x8bed('0x1')]({'id':_0x2a698f,'type':_0x4c3f24,'createdAt':new Date(),'authorId':_0x4c9cf8,'attributes':_0x2c7374});for(const _0x1c463b of _0x2d7d90)this[_0x8bed('0x24')](_0x4c3f24,_0x2a698f,_0x4c9cf8,_0x1c463b,_0x428f40[_0x8bed('0x12c')]());return _0x3c13f5;}[_0x8bed('0xb2')](_0x4bd4b1,_0x496c31,_0x1024f5=null,_0x17c508={}){if(_0x1024f5=_0x1024f5||St(_0x496c31),_0x4bd4b1[_0x8bed('0x30')])return;const _0x5115e8=this[_0x8bed('0x131')][_0x8bed('0x6d')]['get'](_0x8bed('0x37'))['me'],_0x2f6476=[];for(const {suggestion:_0x4bfde3,meta:_0x1bde9f}of this['_findSuggestions'](_0x4bd4b1,_0x8bed('0x1b')))_0x1bde9f['isOwn']&&!_0x1bde9f[_0x8bed('0x83')]&&_0x2f6476[_0x8bed('0xca')](..._0x4bfde3[_0x8bed('0x34')]());const _0x4c7637=function(_0x390d39,_0x18fb39){const _0x11ff17=[];for(const _0x385cdc of _0x18fb39){const _0x2ec533=_0x390d39[_0x8bed('0x12b')](_0x385cdc);_0x2ec533&&_0x11ff17[_0x8bed('0xca')](_0x2ec533);}return _0x11ff17;}(_0x4bd4b1,_0x2f6476),_0x554eb4=function(_0x588dba,_0x31c345){const _0x51b0f5=[_0x588dba];for(const _0x237e6f of _0x31c345){let _0x37571c=0x0;for(;_0x37571c<_0x51b0f5['length'];){const _0x81ced=_0x51b0f5[_0x37571c]['getDifference'](_0x237e6f);_0x51b0f5[_0x8bed('0x2e')](_0x37571c,0x1,..._0x81ced),_0x37571c+=_0x81ced[_0x8bed('0xeb')];}}return _0x51b0f5;}(_0x4bd4b1,_0x2f6476);_0x4c7637[_0x8bed('0xeb')]&&this[_0x8bed('0x4e')][_0x8bed('0x65')](()=>{for(const _0x15de5b of _0x4c7637){const _0x2665ea=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0xf2'),_0x1024f5,_0x8bed('0x121'));this[_0x8bed('0xb0')](()=>_0x2665ea([_0x15de5b],_0x496c31,_0x17c508));}});for(const _0x284fff of _0x554eb4){let _0x583c8d=null,_0x24e352=_0x284fff[_0x8bed('0xc8')],_0x4cd269=_0x284fff[_0x8bed('0xda')];for(const {suggestion:_0x47d872,meta:_0x20102c}of this[_0x8bed('0x5c')](_0x284fff,_0x8bed('0xf2'))){if(!_0x20102c[_0x8bed('0x32')])continue;if(_0x47d872['subType']!=_0x1024f5)continue;const _0x51357d=_0x47d872[_0x8bed('0xd1')]();if(_0x51357d['containsRange'](_0x284fff,!0x0))return;_0x24e352=_0x24e352['isBefore'](_0x51357d['start'])?_0x24e352:_0x51357d['start'],_0x4cd269=_0x4cd269[_0x8bed('0x48')](_0x51357d[_0x8bed('0xda')])?_0x4cd269:_0x51357d[_0x8bed('0xda')],_0x583c8d?_0x51357d['start']['isBefore'](_0x583c8d[_0x8bed('0xd1')]()[_0x8bed('0xc8')])?(_0x583c8d[_0x8bed('0xf3')](),_0x583c8d=_0x47d872):_0x47d872[_0x8bed('0xf3')]():_0x583c8d=_0x47d872;}const _0x1cbfaa=this['_model'][_0x8bed('0x79')](_0x24e352,_0x4cd269);if(_0x583c8d)this['_setSuggestionRange'](_0x583c8d,_0x1cbfaa);else{const _0xaeda90=_0x91d85(),_0x3ae031=_0x5115e8['id'];this[_0x8bed('0x1')]({'id':_0xaeda90,'type':_0x8bed('0x66')+_0x1024f5,'data':_0x496c31,'createdAt':new Date(),'authorId':_0x3ae031,'attributes':_0x17c508}),this[_0x8bed('0x24')](_0x8bed('0x66')+_0x1024f5,_0xaeda90,_0x3ae031,_0x1cbfaa);}}}['markBlockFormat'](_0x115765,_0x240ba0,_0x245987=[],_0x3ffce7=null,_0x2a5a2b={}){_0x240ba0['formatGroupId']||(_0x240ba0[_0x8bed('0xab')]=_0x240ba0[_0x8bed('0xea')]),_0x240ba0['multipleBlocks']=_0x115765['is'](_0x8bed('0x96')),_0x3ffce7=_0x3ffce7||St(_0x240ba0);const _0x3bfcd1=_0x245987['map'](_0x46a0b1=>vt(_0x46a0b1,this['_model'])),_0x2783c1=_0x115765['is']('range')?_0x115765:vt(_0x115765,this[_0x8bed('0x4e')]);_0x3bfcd1[_0x8bed('0xca')](_0x2783c1);let _0x5ac88d=!0x0;for(const _0x59c70e of _0x3bfcd1)if(!this[_0x8bed('0x10')](_0x59c70e)){_0x5ac88d=!0x1;break;}if(_0x5ac88d){const _0x515875=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0xa9'),_0x3ffce7,'accept');return void this['forceDefaultExecution'](()=>_0x515875([_0x2783c1],_0x240ba0,_0x2a5a2b));}let _0x35eecf=null,_0x277149=_0x2783c1['start'],_0x62c14=_0x2783c1['end'];for(const {suggestion:_0x16d65a,meta:_0x143d01}of this[_0x8bed('0x5c')](_0x2783c1,_0x8bed('0xa9'))){if(!_0x143d01[_0x8bed('0x32')]||_0x143d01[_0x8bed('0x1e')]||_0x143d01['containsRangeInObject']||_0x143d01['isInsideObject'])continue;if(_0x16d65a[_0x8bed('0xa8')][_0x8bed('0xab')]!=_0x240ba0[_0x8bed('0xab')])continue;const _0x2ae013=_0x16d65a[_0x8bed('0xd1')]();if(_0x16d65a[_0x8bed('0x0')]==_0x3ffce7){if(_0x2ae013[_0x8bed('0x72')](_0x2783c1,!0x0))return;_0x277149=_0x277149['isBefore'](_0x2ae013[_0x8bed('0xc8')])?_0x277149:_0x2ae013[_0x8bed('0xc8')],_0x62c14=_0x62c14[_0x8bed('0x48')](_0x2ae013[_0x8bed('0xda')])?_0x62c14:_0x2ae013[_0x8bed('0xda')],_0x35eecf?_0x2ae013['start']['isBefore'](_0x35eecf['getFirstRange']()['start'])?(_0x35eecf[_0x8bed('0xf3')](),_0x35eecf=_0x16d65a):_0x16d65a[_0x8bed('0xf3')]():_0x35eecf=_0x16d65a;}else{const _0x532671=_0x2783c1[_0x8bed('0x12b')](_0x2ae013);this[_0x8bed('0x119')](_0x16d65a,_0x532671);}}const _0x288a8e=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'],_0x3ea002=_0x91d85(),_0x361aa3=_0x288a8e['id'];_0x35eecf?this[_0x8bed('0x10b')](_0x35eecf,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x277149,_0x62c14)):(this[_0x8bed('0x1')]({'id':_0x3ea002,'type':_0x8bed('0xb4')+_0x3ffce7,'data':_0x240ba0,'createdAt':new Date(),'authorId':_0x361aa3,'attributes':_0x2a5a2b}),this['_addSuggestionMarker']('formatBlock:'+_0x3ffce7,_0x3ea002,_0x361aa3,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x277149,_0x62c14)));}['markMultiRangeBlockFormat'](_0x1694d3,_0x50d644,_0x535708=[],_0x13f7ec=null,_0xdf36ab={}){_0x50d644[_0x8bed('0xab')]||(_0x50d644[_0x8bed('0xab')]=_0x50d644[_0x8bed('0xea')]),_0x50d644[_0x8bed('0x64')]=!0x1,_0x13f7ec=_0x13f7ec||St(_0x50d644);const _0x4a61fc=_0x535708[_0x8bed('0x84')](_0x1c3749=>vt(_0x1c3749,this[_0x8bed('0x4e')])),_0x2eff0f=_0x1694d3[_0x8bed('0x84')](_0x2da0dd=>vt(_0x2da0dd,this[_0x8bed('0x4e')]));_0x4a61fc[_0x8bed('0xca')](..._0x2eff0f);let _0x3f0321=!0x0;for(const _0x3c471d of _0x4a61fc)if(!this['_rangeIsInLocalUserInsertion'](_0x3c471d)){_0x3f0321=!0x1;break;}if(_0x3f0321){const _0x1860f9=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0xa9'),_0x13f7ec,'accept');return void this[_0x8bed('0xb0')](()=>_0x1860f9(_0x2eff0f,_0x50d644,_0xdf36ab));}const _0x369644=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'];for(const _0x314ddf of this['getSuggestions']()){if(_0x314ddf[_0x8bed('0xe8')]['id']!=_0x369644['id'])continue;if(_0x8bed('0xa9')!=_0x314ddf[_0x8bed('0xbb')]||_0x314ddf['data'][_0x8bed('0xab')]!=_0x50d644[_0x8bed('0xab')])continue;const _0x97804f=_0x314ddf[_0x8bed('0x0')]==_0x13f7ec;for(let _0x279bee=0x0;_0x279bee<_0x2eff0f[_0x8bed('0xeb')];_0x279bee++){const _0x595e75=_0x2eff0f[_0x279bee];for(const _0x458a5c of _0x314ddf[_0x8bed('0x128')]()){const _0x58f419=_0x458a5c['getRange']();if(_0x595e75['isEqual'](_0x58f419)){_0x97804f?(_0x2eff0f[_0x8bed('0x2e')](_0x279bee,0x1),_0x279bee--):_0x314ddf[_0x8bed('0x7c')](_0x458a5c['name']);break;}}}}if(0x0==_0x2eff0f[_0x8bed('0xeb')])return;const _0x23752c=this['_suggestionFactory'][_0x8bed('0xe3')]('formatBlock',_0x13f7ec,'join');for(const _0x191182 of this[_0x8bed('0xbc')]())if(_0x191182['author']['id']==_0x369644['id']&&_0x8bed('0xa9')==_0x191182['type']&&_0x191182[_0x8bed('0xa8')][_0x8bed('0xab')]==_0x50d644[_0x8bed('0xab')]&&_0x191182[_0x8bed('0x0')]==_0x13f7ec&&(_0x23752c(_0x191182[_0x8bed('0x34')](),_0x2eff0f)||_0x23752c(_0x2eff0f,_0x191182[_0x8bed('0x34')]()))){for(const _0x98dccc of _0x2eff0f)_0x191182[_0x8bed('0xbf')](_0x98dccc);return _0x191182;}const _0x5ab4f7=_0x91d85(),_0x58fcd7=_0x369644['id'],_0x1c6c44=_0x8bed('0xb4')+_0x13f7ec,_0x3c833f=this[_0x8bed('0x1')]({'id':_0x5ab4f7,'type':_0x1c6c44,'data':_0x50d644,'createdAt':new Date(),'authorId':_0x58fcd7,'attributes':_0xdf36ab});for(const _0x3de3d0 of _0x2eff0f)this[_0x8bed('0x24')](_0x1c6c44,_0x5ab4f7,_0x58fcd7,_0x3de3d0,_0x428f40['getMultiRangeId']());return _0x3c833f;}['markDeletion'](_0x44ef3e,_0x2c245f=null,_0x3f72a2={}){if(_0x44ef3e[_0x8bed('0x30')])return null;const _0x611d4=this[_0x8bed('0x131')][_0x8bed('0x6d')]['get'](_0x8bed('0x37'))['me'],_0xb80f98=new _0x533e76(_0x44ef3e[_0x8bed('0xc8')],_0x44ef3e[_0x8bed('0xda')]);for(const {suggestion:_0x49b068,meta:_0xb6276}of this[_0x8bed('0x5c')](_0xb80f98,_0x8bed('0x1b')))if(_0xb6276['isOwn']&&!_0xb6276[_0x8bed('0x1e')]){if(_0x49b068[_0x8bed('0x7d')]){const _0x4aaa86=_0x49b068[_0x8bed('0x34')]()[_0x8bed('0x39')](_0x4ee052=>_0x8bed('0x100')!=_0x4ee052[_0x8bed('0x10a')]['rootName']);_0x4aaa86[_0x8bed('0xc4')](_0xa0f6e3=>_0xb80f98[_0x8bed('0x72')](_0xa0f6e3,!0x0))&&_0x49b068['discard']();if(_0x4aaa86[_0x8bed('0xe5')](_0xa9829f=>_0xa9829f[_0x8bed('0x72')](_0xb80f98,!0x0))){const _0x147385=this['_suggestionFactory']['getSuggestionCallback'](_0x8bed('0x61'),_0x2c245f,'accept');return this[_0x8bed('0xb0')](()=>_0x147385([_0xb80f98],null,_0x3f72a2)),null;}}else{const _0x2ee5a7=_0xb80f98[_0x8bed('0x12b')](_0x49b068[_0x8bed('0xd1')]());_0x49b068[_0x8bed('0xc9')]([_0x2ee5a7],null,_0x3f72a2);}}if(_0xb80f98[_0x8bed('0x1f')](),_0xb80f98[_0x8bed('0x30')]||_0x8bed('0x100')==_0xb80f98[_0x8bed('0x10a')][_0x8bed('0xdc')])return null;let _0x31ee3a=null,_0x5caa1b=_0xb80f98[_0x8bed('0xc8')],_0x4dcfe4=_0xb80f98[_0x8bed('0xda')];for(const {suggestion:_0x28a1f5,meta:_0x1ad560}of this[_0x8bed('0x5c')](_0xb80f98,_0x8bed('0x61')))if(_0x1ad560[_0x8bed('0x32')]){if(_0x28a1f5['isMultiRange']){let _0x1a7702=!0x0;for(const _0x1a61f0 of _0x28a1f5['getRanges']()){if(_0x1a61f0['containsRange'](_0xb80f98,!0x0))return _0x28a1f5;_0xb80f98[_0x8bed('0x72')](_0x1a61f0)||(_0x1a7702=!0x1);}_0x1a7702&&_0x28a1f5['discard']();}else{const _0x4bcdc3=_0x28a1f5[_0x8bed('0xd1')]();if(_0x4bcdc3[_0x8bed('0x72')](_0xb80f98,!0x0))return _0x28a1f5;_0x5caa1b=_0x5caa1b[_0x8bed('0x57')](_0x4bcdc3[_0x8bed('0xc8')])?_0x5caa1b:_0x4bcdc3[_0x8bed('0xc8')],_0x4dcfe4=_0x4dcfe4[_0x8bed('0x48')](_0x4bcdc3['end'])?_0x4dcfe4:_0x4bcdc3[_0x8bed('0xda')],_0x31ee3a?_0x4bcdc3['start'][_0x8bed('0x57')](_0x31ee3a[_0x8bed('0xd1')]()['start'])?(_0x31ee3a[_0x8bed('0xf3')](),_0x31ee3a=_0x28a1f5):_0x28a1f5[_0x8bed('0xf3')]():_0x31ee3a=_0x28a1f5;}}if(_0x31ee3a)return this[_0x8bed('0x10b')](_0x31ee3a,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x5caa1b,_0x4dcfe4)),_0x31ee3a;{const _0xd69e7f=_0x91d85(),_0x18f06b=this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x5caa1b,_0x4dcfe4),_0x16eada=_0x611d4['id'],_0x5b99e4=_0x2c245f?_0x8bed('0x68')+_0x2c245f:_0x8bed('0x61'),_0x4aa9ea=this['_setSuggestionData']({'id':_0xd69e7f,'type':_0x5b99e4,'createdAt':new Date(),'authorId':_0x16eada,'attributes':_0x3f72a2});return this[_0x8bed('0x24')](_0x5b99e4,_0xd69e7f,_0x16eada,_0x18f06b),_0x4aa9ea;}}['markMultiRangeDeletion'](_0xaaada4,_0x1b4bb3=_0x8bed('0x95'),_0x5a84dc={}){const _0x30dfea=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'],_0x212c87=_0xaaada4['map'](_0xb3c975=>new _0x533e76(_0xb3c975[_0x8bed('0xc8')],_0xb3c975['end'])),_0x367fdf=new Set();for(const _0x4ae54f of _0x212c87)for(const {suggestion:_0x4807cb,meta:_0x4f5221}of this[_0x8bed('0x5c')](_0x4ae54f,_0x8bed('0x1b')))_0x4f5221[_0x8bed('0x32')]&&!_0x4f5221[_0x8bed('0x1e')]&&_0x367fdf[_0x8bed('0x9a')](_0x4807cb);for(const _0x1a3764 of _0x367fdf)if(_0x1a3764['isMultiRange']){const _0x434949=_0x1a3764[_0x8bed('0x34')]();(!_0x1a3764[_0x8bed('0x25')]||!_0x1a3764[_0x8bed('0x25')][_0x8bed('0xcd')])&&(_0x434949[_0x8bed('0xc4')](_0x16497e=>_0x212c87[_0x8bed('0xe5')](_0x520a23=>_0x520a23[_0x8bed('0x72')](_0x16497e,!0x0)))&&_0x1a3764['discard']());if(_0x212c87['every'](_0x4373cd=>_0x434949[_0x8bed('0xe5')](_0x420c=>_0x420c[_0x8bed('0x72')](_0x4373cd,!0x0)))){const _0x318935=this[_0x8bed('0xf5')][_0x8bed('0xe3')]('deletion',_0x1b4bb3,_0x8bed('0x121'));return this['forceDefaultExecution'](()=>_0x318935(_0xaaada4,null,_0x5a84dc)),null;}}else{const _0x3bf636=_0x1a3764['getFirstRange']();_0x212c87[_0x8bed('0xe5')](_0xfefb58=>_0xfefb58[_0x8bed('0x72')](_0x3bf636,!0x0))&&_0x1a3764[_0x8bed('0x44')]();if(_0x212c87[_0x8bed('0xc4')](_0x36fa03=>_0x3bf636[_0x8bed('0x72')](_0x36fa03,!0x0))){const _0x4739a9=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0x61'),_0x1b4bb3,_0x8bed('0x121'));return this[_0x8bed('0xb0')](()=>_0x4739a9(_0x212c87,null,_0x5a84dc)),null;}}const _0x4482eb=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0x61'),_0x1b4bb3,_0x8bed('0x12e'));let _0x177095=null;for(const _0xdb21bd of this[_0x8bed('0xbc')]())if(_0xdb21bd[_0x8bed('0xe8')]['id']==_0x30dfea['id']&&_0xdb21bd[_0x8bed('0xcf')]&&'deletion'==_0xdb21bd[_0x8bed('0xbb')]&&_0xdb21bd[_0x8bed('0x0')]==_0x1b4bb3&&(_0x4482eb(_0xdb21bd[_0x8bed('0x34')](),_0x212c87)||_0x4482eb(_0x212c87,_0xdb21bd[_0x8bed('0x34')]()))){if(_0x177095){if(_0xdb21bd[_0x8bed('0x17')]&&_0xdb21bd[_0x8bed('0x17')]['length'])continue;for(const _0x1fb40a of _0xdb21bd[_0x8bed('0x34')]())_0x177095[_0x8bed('0x115')](_0x1fb40a)||_0x177095['addRange'](_0x1fb40a);_0xdb21bd[_0x8bed('0xf3')]();}else{_0x177095=_0xdb21bd;for(const _0x12c199 of _0x212c87)_0xdb21bd['isIntersectingWithRange'](_0x12c199)||_0xdb21bd[_0x8bed('0xbf')](_0x12c199);}}if(_0x177095)return _0x177095;_0x367fdf[_0x8bed('0x76')]();for(const _0x50a234 of _0x212c87)for(const {suggestion:_0x5c74e8,meta:_0x2f68ee}of this[_0x8bed('0x5c')](_0x50a234,_0x8bed('0x61')))_0x2f68ee['isOwn']&&_0x367fdf[_0x8bed('0x9a')](_0x5c74e8);for(const _0x4810c2 of _0x367fdf){const _0x5dee3e=_0x4810c2[_0x8bed('0x34')]();if(!_0x5a84dc||!_0x5a84dc['skipNestingCheck']){if(_0x212c87[_0x8bed('0xc4')](_0x517157=>_0x5dee3e[_0x8bed('0xe5')](_0x3a39ba=>_0x3a39ba[_0x8bed('0x72')](_0x517157,!0x0))))return _0x4810c2;}(!_0x4810c2[_0x8bed('0x25')]||!_0x4810c2[_0x8bed('0x25')][_0x8bed('0xcd')])&&(_0x5dee3e['every'](_0x44229a=>_0x212c87[_0x8bed('0xe5')](_0x231cde=>_0x231cde[_0x8bed('0x72')](_0x44229a,!0x0)))&&_0x4810c2['discard']());}const _0x4ec783=_0x91d85(),_0x326f7c=_0x30dfea['id'],_0xaec05c=_0x8bed('0x68')+_0x1b4bb3,_0x182042=this[_0x8bed('0x1')]({'id':_0x4ec783,'type':_0xaec05c,'createdAt':new Date(),'authorId':_0x326f7c,'attributes':_0x5a84dc});for(const _0x36327a of _0x212c87)_0x36327a[_0x8bed('0x1f')](),_0x36327a[_0x8bed('0x30')]||_0x8bed('0x100')==_0x36327a[_0x8bed('0x10a')][_0x8bed('0xdc')]||this['_addSuggestionMarker'](_0xaec05c,_0x4ec783,_0x326f7c,_0x36327a,_0x428f40[_0x8bed('0x12c')]());return _0x182042;}[_0x8bed('0x10b')](_0x4bc6b8,_0x154160){const _0x47b37d=_0x4bc6b8[_0x8bed('0xd4')]();this['_model']['change'](_0x2bcfab=>{_0x2bcfab[_0x8bed('0x9')](_0x47b37d,{'range':_0x154160});});}[_0x8bed('0x116')](_0x26c7cd){const _0x1b3a76=_0x26c7cd['id'],_0x1f9cce=this[_0x8bed('0x131')][_0x8bed('0x8f')][_0x8bed('0x4d')](_0x8bed('0x52'));this[_0x8bed('0x31')][_0x8bed('0x123')](_0x1b3a76)||this[_0x8bed('0x31')][_0x8bed('0x120')]({'channelId':_0x1f9cce,'threadId':_0x1b3a76});const _0x21a0df=this[_0x8bed('0x31')][_0x8bed('0xc1')](_0x1b3a76);_0x21a0df[_0x8bed('0x9e')](_0x8bed('0x8e')),_0x21a0df['isRemovable']=!0x1,_0x26c7cd['commentThread']=_0x21a0df;}[_0x8bed('0xbe')](_0x1dc3d6,_0x24ecd5,_0xa2dd84,_0x1da732){if(_0x1dc3d6[_0x8bed('0xbb')]!=_0x24ecd5||_0x1dc3d6[_0x8bed('0x0')]!=_0xa2dd84||_0x1dc3d6['author']['id']!=_0x1da732)throw this['editor'][_0x8bed('0xd7')]('track-changes-suggestion-data-mismatch'),new _0x210547(_0x8bed('0xdb'),this);}['_cutOutSuggestionMarker'](_0x4a6618,_0x399f09){const _0x50f564=_0x4a6618['getFirstRange']();if(_0x399f09['isEqual'](_0x50f564))_0x4a6618[_0x8bed('0xf3')]();else{if(_0x50f564[_0x8bed('0x72')](_0x399f09)){const _0x490ac3=this['_model'][_0x8bed('0x114')](_0x399f09['start'][_0x8bed('0x27')],'end');this['_setSuggestionRange'](_0x4a6618,this[_0x8bed('0x4e')]['createRange'](_0x50f564[_0x8bed('0xc8')],_0x490ac3));const _0x306a4a=_0x91d85(),_0x1c8b16=_0x4a6618[_0x8bed('0xe8')]['id'],_0x5f0ec6=_0x4a6618[_0x8bed('0xbb')]+':'+_0x4a6618[_0x8bed('0x0')];this['_setSuggestionData']({'id':_0x306a4a,'type':_0x5f0ec6,'createdAt':new Date(),'authorId':_0x1c8b16,'data':_0x4a6618[_0x8bed('0xa8')],'attributes':_0x4a6618[_0x8bed('0x25')]});const _0x2a0791=this[_0x8bed('0x4e')][_0x8bed('0x114')](_0x399f09[_0x8bed('0xda')]['parent'],'after'),_0xa18d92=this['_model'][_0x8bed('0x79')](_0x2a0791,_0x50f564[_0x8bed('0xda')]);this['_addSuggestionMarker'](_0x5f0ec6,_0x306a4a,_0x1c8b16,_0xa18d92);}else{if(_0x50f564[_0x8bed('0x67')](_0x399f09['start'])){const _0x79e34c=this[_0x8bed('0x4e')][_0x8bed('0x114')](_0x399f09[_0x8bed('0xc8')]['nodeBefore'],_0x8bed('0xda'));this['_setSuggestionRange'](_0x4a6618,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x50f564[_0x8bed('0xc8')],_0x79e34c));}else{const _0x3c63d3=this[_0x8bed('0x4e')][_0x8bed('0x114')](_0x399f09[_0x8bed('0xda')][_0x8bed('0x1c')],_0x8bed('0x5a'));this[_0x8bed('0x10b')](_0x4a6618,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x3c63d3,_0x50f564['end']));}}}}[_0x8bed('0x10')](_0x4e08a7){for(const {suggestion:_0x37a4f1,meta:_0x4f2740}of this['_findSuggestions'](_0x4e08a7,_0x8bed('0x1b'))){if(!_0x4f2740[_0x8bed('0x32')])continue;const _0x338f35=_0x37a4f1[_0x8bed('0x34')]();for(const _0x1e1674 of _0x338f35)if(!_0x4e08a7[_0x8bed('0xe6')](_0x1e1674)[_0x8bed('0xeb')])return!0x0;}return!0x1;}[_0x8bed('0x2f')](_0xeb9c95){const _0x39e9f5=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')]('Users')[_0x8bed('0x103')](_0xeb9c95);if(!_0x39e9f5)throw new _0x210547('track-changes-user-not-found',this);return _0x39e9f5;}['_createSuggestion'](_0x4caa79,_0x284ba6,_0x4615da,_0x3d7866){const _0x16ce90=this[_0x8bed('0x2f')](_0x3d7866),_0x4fcb6a=this['_suggestionFactory']['buildSuggestion'](_0x4caa79,_0x284ba6,_0x4615da,_0x16ce90,_0x101ae2=>this[_0x8bed('0x60')](_0x4615da,{'attributes':_0x101ae2}));return this[_0x8bed('0x94')](_0x4fcb6a,_0x8bed('0x121'),()=>{this[_0x8bed('0x60')](_0x4615da,{'state':_0x8bed('0xc2')});},{'priority':_0x8bed('0xf')}),this[_0x8bed('0x94')](_0x4fcb6a,_0x8bed('0x44'),()=>{this[_0x8bed('0x60')](_0x4615da,{'state':_0x8bed('0x11b')});},{'priority':'high'}),this[_0x8bed('0x82')][_0x8bed('0xec')](_0x4615da,_0x4fcb6a),this[_0x8bed('0x6')][_0x8bed('0xec')](_0x4fcb6a,_0x8bed('0xdd')),_0x4fcb6a;}[_0x8bed('0x8a')](_0x7dce81){const _0x99dbda=_0x7dce81[_0x8bed('0xe')](':');return{'group':_0x99dbda[0x0],'type':_0x99dbda[0x1],'subType':_0x99dbda[_0x8bed('0xeb')]>=0x5?_0x99dbda[0x2]:null,'id':_0x99dbda['length']<0x5?_0x99dbda[0x2]:_0x99dbda[0x3],'authorId':_0x99dbda[_0x8bed('0xeb')]<0x5?_0x99dbda[0x3]:_0x99dbda[0x4],'markerCount':0x6==_0x99dbda[_0x8bed('0xeb')]?_0x99dbda[0x5]:null};}[_0x8bed('0x122')](_0x34f29d,_0x36daa9,_0x156333){const _0x4770ef=_0x34f29d[_0x8bed('0xd1')](),_0x5a2c59=_0x4770ef['start'],_0x7b7bd7=_0x4770ef[_0x8bed('0xda')];this['_setSuggestionRange'](_0x34f29d,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x5a2c59,_0x36daa9));const _0x10d867=_0x91d85(),_0x3060b2=_0x34f29d[_0x8bed('0xe8')]['id'],_0xa30eda=_0x34f29d[_0x8bed('0xbb')]+(_0x34f29d[_0x8bed('0x0')]?':'+_0x34f29d['subType']:'');this[_0x8bed('0x1')]({'id':_0x10d867,'type':_0xa30eda,'createdAt':new Date(),'authorId':_0x3060b2,'originalSuggestionId':_0x34f29d['id'],'data':_0x34f29d[_0x8bed('0xa8')]}),'formatBlock'==_0x34f29d[_0x8bed('0xbb')]&&(_0x156333=this['_model'][_0x8bed('0x7b')](_0x156333[_0x8bed('0x1c')])),this[_0x8bed('0x24')](_0xa30eda,_0x10d867,_0x3060b2,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x156333,_0x7b7bd7));}[_0x8bed('0x5c')](_0x249cab,_0x9f50f1=null){const _0x2fd260=[],_0x1152f7=this[_0x8bed('0x4e')][_0x8bed('0x102')],_0xfe57f8=this['editor'][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'];for(const _0x3c2479 of this['getSuggestions']())if(_0x3c2479[_0x8bed('0xcf')]&&(!_0x9f50f1||_0x3c2479['type']==_0x9f50f1))for(const _0xfdbc52 of _0x3c2479['getRanges']()){const _0x39e202=_0x249cab[_0x8bed('0xc8')]['isEqual'](_0xfdbc52['end'])||_0x249cab[_0x8bed('0xda')]['isEqual'](_0xfdbc52[_0x8bed('0xc8')]);if(_0x39e202||_0x249cab[_0x8bed('0x12b')](_0xfdbc52)){const _0x3dfe1d=_0x249cab[_0x8bed('0x72')](_0xfdbc52)&&wt(_0x1152f7,_0xfdbc52[_0x8bed('0xc8')],_0x249cab),_0x330fb4=_0xfdbc52[_0x8bed('0x72')](_0x249cab)&&wt(_0x1152f7,_0x249cab[_0x8bed('0xc8')],_0xfdbc52);_0x2fd260[_0x8bed('0xca')]({'suggestion':_0x3c2479,'meta':{'isOwn':_0xfe57f8==_0x3c2479[_0x8bed('0xe8')],'isNextTo':_0x39e202,'isInsideObject':_0x3dfe1d,'containsRangeInObject':_0x330fb4}});break;}}return _0x2fd260;}['_addSuggestionMarker'](_0x451602,_0x56db1a,_0x548015,_0x3861ae,_0x49d8f8=null){this[_0x8bed('0x4e')][_0x8bed('0x65')](_0x43613f=>{let _0x5853db=_0x8bed('0x89')+_0x451602+':'+_0x56db1a+':'+_0x548015;_0x49d8f8&&(_0x5853db=_0x5853db+':'+_0x49d8f8),_0x43613f[_0x8bed('0xe1')](_0x5853db,{'range':_0x3861ae,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x282458){const _0x52d8be=_0x282458['previous'],_0x4c8fbb=_0x282458[_0x8bed('0xb5')];_0x282458['previous']=null,null!=_0x52d8be&&(_0x52d8be[_0x8bed('0xb5')]=null),_0x282458[_0x8bed('0xb5')]=null,null!=_0x4c8fbb&&(_0x4c8fbb[_0x8bed('0x14')]=null),_0x8bed('0x10e')==this['_suggestionState']['get'](_0x282458)&&(this['_suggestionState'][_0x8bed('0xec')](_0x282458,_0x8bed('0xce')),this['fire'](_0x8bed('0x4b'),_0x282458,_0x52d8be,_0x4c8fbb));}[_0x8bed('0x1')](_0x524e62){const _0x439537=_0x524e62['id'],_0x16c396=this[_0x8bed('0x9c')](_0x524e62);if(this[_0x8bed('0xa7')]&&this[_0x8bed('0xa7')][_0x8bed('0xd9')]){const _0x27b100=this[_0x8bed('0x131')]['plugins'][_0x8bed('0x4d')](_0x8bed('0x125')),_0x28d869=_0x16c396[_0x8bed('0xb3')],_0x3c39d6=_0x16c396[_0x8bed('0x0')]?_0x16c396['type']+':'+_0x16c396[_0x8bed('0x0')]:_0x16c396['type'],_0x499258=this[_0x8bed('0x131')]['locale'],_0x54eed8=_0x27b100['add'](_0xf0b42e(_0x499258,_0x8bed('0x90'))),_0x2e61d4={'id':_0x439537,'type':_0x3c39d6,'hasComments':_0x28d869,'data':_0x524e62[_0x8bed('0xa8')]||null,'originalSuggestionId':_0x524e62[_0x8bed('0x92')]||null,'attributes':_0x16c396[_0x8bed('0x25')]};this[_0x8bed('0xa7')][_0x8bed('0xd9')](_0x2e61d4)[_0x8bed('0xb6')](_0xdb5c65=>{_0x16c396['_saved']=!0x0,_0x27b100[_0x8bed('0xf8')](_0x54eed8),_0xdb5c65&&_0xdb5c65[_0x8bed('0x3')]&&(this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x439537)['createdAt']=_0xdb5c65[_0x8bed('0x3')]);})['catch'](_0x25a9dc=>{throw _0x5aa693(_0x8bed('0x104')),this[_0x8bed('0x131')][_0x8bed('0x26')][_0x8bed('0x8d')]({'isUndoable':!0x1},()=>{_0x16c396[_0x8bed('0x44')]();}),_0x16c396[_0x8bed('0x8c')](),this[_0x8bed('0x82')][_0x8bed('0x4c')](_0x16c396['id']),this[_0x8bed('0x6')][_0x8bed('0x4c')](_0x16c396),_0x25a9dc;});}return _0x16c396;}[_0x8bed('0x60')](_0x15425a,_0x2a6eaa){const _0xfff615=this['editor']['plugins'][_0x8bed('0x4d')](_0x8bed('0x125')),_0x549839=this[_0x8bed('0x82')]['get'](_0x15425a);if(this[_0x8bed('0xa7')]&&this[_0x8bed('0xa7')]['updateSuggestion']){if(_0x549839[_0x8bed('0xe4')]){const _0x1e1854=_0xfff615['add'](_0xf0b42e(this[_0x8bed('0x131')][_0x8bed('0x12d')],'PENDING_ACTION_SUGGESTION'));this[_0x8bed('0xa7')][_0x8bed('0x12a')](_0x15425a,_0x2a6eaa)['then'](()=>{_0xfff615['remove'](_0x1e1854);});}else _0x549839['on'](_0x8bed('0xac'),()=>{this[_0x8bed('0x60')](_0x15425a,_0x2a6eaa);});}}['_getSuggestionData'](_0x5d17c1){if(!this[_0x8bed('0xa7')]||!this[_0x8bed('0xa7')][_0x8bed('0x38')])throw new _0x210547(_0x8bed('0xc0'),this);return this[_0x8bed('0xa7')][_0x8bed('0x38')](_0x5d17c1);}[_0x8bed('0x3a')](_0x56d1c6){const {id:_0x27c6e9,type:_0x506f1f,subType:_0xdcfb4b,authorId:_0x33b237}=this[_0x8bed('0x8a')](_0x56d1c6),_0x4b5050=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x27c6e9)||this['_createSuggestion'](_0x506f1f,_0xdcfb4b,_0x27c6e9,_0x33b237);switch(this[_0x8bed('0xbe')](_0x4b5050,_0x506f1f,_0xdcfb4b,_0x33b237),this[_0x8bed('0x6')][_0x8bed('0x4d')](_0x4b5050)){case _0x8bed('0xdd'):this[_0x8bed('0xf7')](_0x27c6e9)[_0x8bed('0xb6')](_0x1b06b9=>{let _0x412896=Promise['resolve']();_0x1b06b9['hasComments']&&(_0x412896=this[_0x8bed('0x31')][_0x8bed('0xf9')]({'channelId':this[_0x8bed('0x131')][_0x8bed('0x8f')][_0x8bed('0x4d')]('collaboration.channelId'),'threadId':_0x27c6e9})),_0x412896[_0x8bed('0xb6')](()=>{this[_0x8bed('0x9c')](_0x1b06b9)[_0x8bed('0xe4')]=!0x0;});}),this['_suggestionState'][_0x8bed('0xec')](_0x4b5050,_0x8bed('0xfc'));break;case'removed':this[_0x8bed('0x60')](_0x27c6e9,{'state':_0x8bed('0xae')});case'dataReady':this[_0x8bed('0x6')][_0x8bed('0xec')](_0x4b5050,'ready'),this[_0x8bed('0x16')](_0x8bed('0x105'),_0x4b5050);break;case'ready':this[_0x8bed('0x16')](_0x8bed('0x55'),_0x4b5050);}_0x4b5050['addMarkerName'](_0x56d1c6),this[_0x8bed('0x42')](_0x4b5050);}[_0x8bed('0x42')](_0xaf86ef){if(_0xaf86ef[_0x8bed('0x7d')])return;let _0x4dd9e8=!0x0,_0x146c31=!0x0;for(const _0x501270 of this[_0x8bed('0xbc')]()){if(_0x501270['isMultiRange'])continue;if(_0x501270==_0xaf86ef||!_0x501270[_0x8bed('0xcf')])continue;if(_0x501270['author']['id']!=_0xaf86ef[_0x8bed('0xe8')]['id'])continue;const _0x11334f=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0xaf86ef[_0x8bed('0xbb')],_0xaf86ef[_0x8bed('0x0')],_0x8bed('0xa6')),_0x34c5ef=this[_0x8bed('0xf5')]['getSuggestionCallback'](_0x501270[_0x8bed('0xbb')],_0x501270[_0x8bed('0x0')],'chain'),_0xeed1a6=_0x11334f(_0xaf86ef,_0x501270),_0x3d583f=_0x34c5ef(_0xaf86ef,_0x501270);_0xeed1a6&&_0x3d583f&&(_0xeed1a6[0x1][_0x8bed('0x17')]&&_0xeed1a6[0x1]['commentThread']['length']||(_0xeed1a6[0x0][_0x8bed('0xb5')]=_0xeed1a6[0x1],_0xeed1a6[0x1][_0x8bed('0x14')]=_0xeed1a6[0x0],_0xeed1a6[0x0]==_0xaf86ef?_0x146c31=!0x1:_0x4dd9e8=!0x1));}_0xaf86ef[_0x8bed('0x14')]&&_0x4dd9e8&&(_0xaf86ef[_0x8bed('0x14')][_0x8bed('0xb5')]=null,_0xaf86ef['previous']=null),_0xaf86ef[_0x8bed('0xb5')]&&_0x146c31&&(_0xaf86ef[_0x8bed('0xb5')][_0x8bed('0x14')]=null,_0xaf86ef[_0x8bed('0xb5')]=null);}[_0x8bed('0x53')](_0x172fed){for(const _0x1303ee of this[_0x8bed('0x82')][_0x8bed('0x77')]()){if(_0x1303ee==_0x172fed||!_0x1303ee[_0x8bed('0xcf')])continue;if(_0x1303ee[_0x8bed('0xbb')]!=_0x172fed[_0x8bed('0xbb')]||_0x1303ee[_0x8bed('0xe8')]['id']!=_0x172fed[_0x8bed('0xe8')]['id']||_0x1303ee[_0x8bed('0x0')]!=_0x172fed[_0x8bed('0x0')])continue;const _0x599c7b=this['_suggestionFactory'][_0x8bed('0xe3')](_0x172fed['type'],_0x172fed[_0x8bed('0x0')],_0x8bed('0x12e'));if(_0x599c7b(_0x1303ee['getRanges'](),_0x172fed[_0x8bed('0x34')]())){if(_0x172fed['commentThread']&&_0x172fed[_0x8bed('0x17')]['length'])continue;return this['_joinSuggestions'](_0x1303ee,_0x172fed),!0x0;}if(_0x599c7b(_0x172fed[_0x8bed('0x34')](),_0x1303ee[_0x8bed('0x34')]())){if(_0x1303ee[_0x8bed('0x17')]&&_0x1303ee['commentThread']['length'])continue;return this[_0x8bed('0x98')](_0x172fed,_0x1303ee),!0x0;}}return!0x1;}[_0x8bed('0x98')](_0x3b737a,_0xf3a7a0){if(_0x3b737a[_0x8bed('0x7d')])for(const _0x11263c of _0xf3a7a0['getRanges']())_0x3b737a[_0x8bed('0xbf')](_0x11263c);else{const _0x2cdee9=_0xf3a7a0[_0x8bed('0xd1')]()['end'];this[_0x8bed('0x10b')](_0x3b737a,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x3b737a[_0x8bed('0xd1')]()['start'],_0x2cdee9));}_0xf3a7a0[_0x8bed('0xf3')]();}}_0xf3e8ef(d,_0x199b9c);class kt{constructor(_0xe0f5b3){this[_0x8bed('0x21')]=_0xe0f5b3,this[_0x8bed('0x4e')]=_0xe0f5b3['model'],this[_0x8bed('0x12f')]=new Map(),this[_0x8bed('0x33')]=new Map(),this['_registerDefaultCallbacks']();}[_0x8bed('0xd2')](_0x44ef0d,_0x315516,_0x260aca,_0x4d9ed7,_0x329ef9){return new _0x428f40(this[_0x8bed('0x4e')],{'type':_0x44ef0d,'subType':_0x315516,'id':_0x260aca,'author':_0x4d9ed7,'onAttributesChange':_0x329ef9,'onAccept':(..._0xee789a)=>this[_0x8bed('0xe3')](_0x44ef0d,_0x315516,'accept')(..._0xee789a),'onDiscard':(..._0x24fcf5)=>this[_0x8bed('0xe3')](_0x44ef0d,_0x315516,_0x8bed('0x44'))(..._0x24fcf5)});}[_0x8bed('0x20')](_0x692feb,_0x366915,_0x3e949e,_0x1cf14a){const _0x1f16d7=_0x692feb+':'+_0x366915+':'+_0x3e949e;this['_customCallbacks'][_0x8bed('0xec')](_0x1f16d7,_0x1cf14a);}[_0x8bed('0xe3')](_0x1b1db6,_0x16668c,_0xe38cb0){const _0x3d7ffc=_0x1b1db6+':'+_0x16668c+':'+_0xe38cb0;return this[_0x8bed('0x12f')][_0x8bed('0x4d')](_0x3d7ffc)||this[_0x8bed('0x33')][_0x8bed('0x4d')](_0x1b1db6+':'+_0xe38cb0);}[_0x8bed('0x97')](){const _0x68ef13=()=>{},_0x3e1e95=_0x331747=>{_0x331747[_0x8bed('0x7e')]((_0x1cc5d9,_0x159e8e)=>_0x1cc5d9['start'][_0x8bed('0x57')](_0x159e8e['start'])?0x1:-0x1),this[_0x8bed('0x4e')][_0x8bed('0x65')](_0x937a6c=>{for(const _0x82d1fd of _0x331747){let _0x5c462a;_0x5c462a=_0x82d1fd[_0x8bed('0xda')][_0x8bed('0x58')]&&_0x82d1fd[_0x8bed('0xda')][_0x8bed('0x1c')]==_0x82d1fd['start']['nodeAfter']?_0x937a6c[_0x8bed('0x70')](_0x82d1fd[_0x8bed('0xc8')][_0x8bed('0x86')],'on'):_0x937a6c[_0x8bed('0x70')](_0x82d1fd),this[_0x8bed('0x4e')][_0x8bed('0x99')](_0x5c462a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1a11a9=(_0x10e3c5,_0x12c340)=>{this[_0x8bed('0x4e')][_0x8bed('0x65')](_0x4b428b=>{const {commandName:_0x3520d3,commandParams:_0x4dea19=[]}=_0x12c340,_0xebf3a0=_0x10e3c5[0x0];if(_0x8bed('0x100')==_0xebf3a0[_0x8bed('0x10a')][_0x8bed('0xdc')])return;const _0x4840a2=Array['from'](this[_0x8bed('0x4e')][_0x8bed('0xde')][_0x8bed('0xfe')][_0x8bed('0x34')]())[_0x8bed('0x84')](_0x445d41=>_0x533e76[_0x8bed('0xaa')](_0x445d41));yt(_0xebf3a0)?_0x4b428b[_0x8bed('0x85')](this[_0x8bed('0x4e')][_0x8bed('0x79')](_0xebf3a0[_0x8bed('0xda')])):_0x4b428b['setSelection'](_0xebf3a0);for(const _0x1d0ed1 of this['_editor'][_0x8bed('0x10f')][_0x8bed('0x10f')]())_0x1d0ed1[_0x8bed('0x59')]();_0x4dea19['push']({'forceDefaultExecution':!0x0}),this[_0x8bed('0x21')][_0x8bed('0x11a')](_0x3520d3,..._0x4dea19);const _0x44b02a=_0x4840a2[_0x8bed('0x39')](_0x287fdb=>_0x8bed('0x100')!=_0x287fdb[_0x8bed('0x10a')][_0x8bed('0xdc')]);_0x44b02a[_0x8bed('0xeb')]>0x0&&_0x4b428b[_0x8bed('0x85')](_0x44b02a);for(const _0x16664f of _0x4840a2)_0x16664f['detach']();});},_0x5ac0b5=(_0x247a29,_0x5b58c6)=>0x1==_0x247a29[_0x8bed('0xeb')]&&0x1==_0x5b58c6['length']&&_0x247a29[0x0][_0x8bed('0xda')][_0x8bed('0xcc')](_0x5b58c6[0x0]['start']),_0xcca1c9=(_0x3823d3,_0x653eb2)=>Dt(_0x3823d3,_0x653eb2,this[_0x8bed('0x4e')])?[_0x3823d3,_0x653eb2]:Dt(_0x653eb2,_0x3823d3,this[_0x8bed('0x4e')])?[_0x653eb2,_0x3823d3]:null;this['_defaultCallbacks'][_0x8bed('0xec')]('insertion:accept',_0x68ef13),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0xa'),_0x3e1e95),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x107'),_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x43'),_0xcca1c9),this[_0x8bed('0x33')]['set'](_0x8bed('0xf0'),_0x3e1e95),this[_0x8bed('0x33')]['set'](_0x8bed('0xff'),_0x68ef13),this['_defaultCallbacks']['set']('deletion:join',_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x6f'),_0xcca1c9),this['_defaultCallbacks'][_0x8bed('0xec')](_0x8bed('0x11'),_0x1a11a9),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x6c'),_0x68ef13),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x74'),_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x80'),_0x68ef13),this[_0x8bed('0x33')][_0x8bed('0xec')]('formatBlock:accept',_0x1a11a9),this['_defaultCallbacks'][_0x8bed('0xec')]('formatBlock:discard',_0x68ef13),this['_defaultCallbacks'][_0x8bed('0xec')](_0x8bed('0xaf'),_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')]('formatBlock:chain',_0x68ef13);}}function wt(_0x3f4adc,_0x3cf058,_0x1c81c6){for(const _0x23903f of _0x3cf058[_0x8bed('0x1c')][_0x8bed('0x54')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x23903f[_0x8bed('0x10a')]==_0x23903f)return!0x1;if(!_0x1c81c6['containsItem'](_0x23903f))return!0x1;if(_0x3f4adc[_0x8bed('0x3b')](_0x23903f)||_0x3f4adc['isLimit'](_0x23903f))return!0x0;}}function yt(_0x397269){return _0x397269[_0x8bed('0xda')][_0x8bed('0x1c')]==_0x397269[_0x8bed('0xc8')][_0x8bed('0x86')]&&_0x397269[_0x8bed('0xda')][_0x8bed('0x10c')];}function bt(_0x21ed2d,_0x319a8b,_0x263ff7,_0x1f6314){const _0x548a86=_0x292364=>!_0x292364[_0x8bed('0xad')]['is'](_0x8bed('0x129'))&&!_0x1f6314[_0x8bed('0x3b')](_0x292364[_0x8bed('0xad')]),_0x3742b3=_0x21ed2d[_0x8bed('0xc8')]['getLastMatchingPosition'](_0x548a86),_0x49bdb2=_0x21ed2d[_0x8bed('0xda')][_0x8bed('0xfb')](_0x548a86,{'direction':_0x8bed('0xc3')});return(!_0x21ed2d[_0x8bed('0xc8')]['isEqual'](_0x3742b3)||!_0x21ed2d['end']['isEqual'](_0x49bdb2))&&(_0x3742b3['isBefore'](_0x49bdb2)?_0x263ff7[_0x8bed('0x9')](_0x319a8b,{'range':_0x263ff7[_0x8bed('0x79')](_0x3742b3,_0x49bdb2)}):_0x263ff7[_0x8bed('0x7c')](_0x319a8b),!0x0);}function St(_0x234ecc){return _0x36dc3a(_0x234ecc);}function It(_0x2a322f){const _0x223460=_0x2a322f[_0x8bed('0xc8')][_0x8bed('0x86')];return _0x223460&&_0x223460['is']('element');}function vt(_0xee5a68,_0xf56a4a){const _0x455eb8=_0xf56a4a[_0x8bed('0x102')][_0x8bed('0x3b')](_0xee5a68)||_0xf56a4a[_0x8bed('0x102')]['isSelectable'](_0xee5a68);return _0xf56a4a['createRange'](_0xf56a4a[_0x8bed('0x114')](_0xee5a68,_0x8bed('0xd')),_0x455eb8?_0xf56a4a[_0x8bed('0x22')](_0xee5a68):_0xf56a4a[_0x8bed('0x114')](_0xee5a68,_0x8bed('0xda')));}function Dt(_0x2a4c3f,_0x35543d,_0x479c2a){const _0x3a61b5=_0x2a4c3f[_0x8bed('0xd1')](),_0x34f54f=_0x35543d[_0x8bed('0xd1')]();if(_0x3a61b5[_0x8bed('0xda')][_0x8bed('0xcc')](_0x34f54f[_0x8bed('0xc8')]))return!0x0;if(_0x2a4c3f[_0x8bed('0xbb')]!=_0x35543d['type'])return!0x1;if(!_0x3a61b5['end']['isTouching'](_0x34f54f[_0x8bed('0xc8')]))return!0x1;const _0x35b530=_0x479c2a['createRange'](_0x3a61b5[_0x8bed('0xda')],_0x34f54f[_0x8bed('0xc8')])['getWalker']();for(const _0x1da44a of _0x35b530)if([_0x8bed('0x2a'),_0x8bed('0x6e')][_0x8bed('0xa4')](_0x1da44a[_0x8bed('0xbb')])&&_0x479c2a['schema'][_0x8bed('0x109')](_0x1da44a[_0x8bed('0xad')]))return!0x1;return!0x0;}
23
+ const _0x27d3=['chain','filter','formatInline:','lowest','remove','originalSuggestionId','multipleBlocks','_handleNewSuggestionMarker','getNearestSelectionRange','isLimit','CommentsRepository','setSelection','isAfter','enableCommand','ck-suggestion-marker-formatBlock','parent','return','_registerDefaultCallbacks','containsRange','error-saving-suggestion-data-suggestion-discarded','root','after','createRange','clear','next','_breakSuggestionMarker','element','formatBlock:join','collaboration.channelId','isIntersectingWithRange','applyOperation','push','range','markerToHighlight','isInContent','isCollapsed','accept','_removeSuggestion','suggestionChanged','isDocumentOperation','some','discardAllSuggestions','_splitMarkerName','isEqual','model','insertion:chain','formatBlock:discard','_getSuggestionData','getSuggestion','deletion:chain','isBefore','_joinWithAdjacentSuggestions','createdAt','markMultiRangeInsertion','requires','elementToElement','_model','rethrowUnexpectedError','isLocal','head','execute','PENDING_ACTION_SUGGESTION','TrackChangesEditing','isInsideObject','track-changes-adapter-missing-getsuggestion','locale','getFirstMarker','start','acceptSelectedSuggestions','trackChanges','addCommentThread','formatBlock','_getAuthorFromId','isAtEnd','hasComments','containsPosition','_suggestionFactory','formatBlock:chain','editor','_commentsRepository','getRanges','getShiftedBy','multi','acceptSuggestion','editing','_findSuggestions','set','_customCallbacks','_cutOutSuggestionMarker','before','rejected','backward','skipNestingCheck','ck-suggestion-marker','previous','Users','commentThread','adapter','formatInline:accept','markerToData','plugins','newRange','map','hasCommentThread','refresh','_isForcedDefaultExecutionBlock','ck-suggestion-marker-','deletion','authorName','removeComment','removeAttribute','detach','getCommentThread','markerReady','addUser','end','_saved','dataReady','high','size','_checkSuggestionCorrectness','documentSelection','addSuggestion','batch','isRemovable','getUser','splitPosition','ready','enableReadOnlyMode','change:_saved','item','unbindElementFromMarkerName','rootName','formatGroupId','schema','acceptAllSuggestions','deleteContent','getSuggestions','mapper','commands','isNextTo','showSuggestionHighlights','containerElement','add','markInsertion','activeMarkers','_addSuggestionMarker','catch','_refreshSuggestionsChain','getItems','isTouching','suggestion','name','fromCharCode','addClass','join','_enabledCommands','trackChangesCommand','_onDiscard','forceDefaultExecution','conversion','insertion:','isOwn','fire','config','formatInline:join','hasSuggestion','_createSuggestion','getIntersection','getAllAdjacentSuggestions','commandName','init','fromRange','nodeBefore','_updateSuggestionData','updateSuggestion','fetchCommentThread','getAttribute','_descriptionFactory','getAncestors','options','_editor','from','removeMarkers','formatInline','elementEnd','moveTargetPosition','markerNameToElements','forward','getDifference','attributes','low','markers','data-suggestion','containsRangeInObject','upcast','isAtStart','markBlockFormat','editingDowncast','change:data','formatInline:discard','split','substr','subType','addSuggestionData','createElement','setAttribute','author','$graveyard','sort','elementStart','every','suggestion-type','dataToMarker','data','getMarkers','get','registerPostFixer','change:activeMarkers','addMarkerName','pluginName','formatBlock:','includes','notReady','length','stop','widget','markInlineFormat','type','nodeAfter','track-changes-suggestion-not-found','discardSelectedSuggestions','deletion:','splice','registerCustomCallback','values','position','normal','for','insertContent','addHighlight','insertion:discard','then','setTo','delete','addMarker','_setSuggestionData','markerName','differ','consume','change','document','createSelection','_joinSuggestions','isMultiRange','_adapter','containsItem','isBlock','deletion:discard','selection','createRangeIn','insertion','highest','track-changes-suggestion-data-mismatch','targetPosition','isObject','markMultiRangeBlockFormat','toViewElement','_defaultCallbacks','markDeletion','_addThreadToSuggestion','howMany','enqueueChange','has','_getExternalAuthor','discard','getCustomProperty','consumable','@external','removeMarker:suggestion:formatBlock','_rangeIsInLocalUserInsertion','buildSuggestion','getFirstRange','getWalker','unbind','reconvertMarker','_suggestions','writer','dataDowncast','removed','value','suggestionLoaded','ck-suggestion-marker--active','insertion:accept','listenTo','removeClass','updateMarker','addMarker:suggestion:formatBlock','_setSuggestionRange','createPositionAt','_suggestionState','getChanges','addRange','suggestion:','external:','insert','PendingActions','getSuggestionCallback','getChangedMarkers','bindElementToMarker','getLastMatchingPosition','marker-count','removeMarker','open','update:suggestion','addComment','getMultiRangeId','discardSuggestion','oldRange','suggestionUnloaded'];(function(_0x20e75d,_0x27d356){const _0x1f8f98=function(_0x460088){while(--_0x460088){_0x20e75d['push'](_0x20e75d['shift']());}};_0x1f8f98(++_0x27d356);}(_0x27d3,0xee));const _0x1f8f=function(_0x20e75d,_0x27d356){_0x20e75d=_0x20e75d-0x0;let _0x1f8f98=_0x27d3[_0x20e75d];return _0x1f8f98;};import{Plugin as _0x2e95e9,PendingActions as _0x125075}from'ckeditor5/src/core';import{LiveRange as _0x1a80a0}from'ckeditor5/src/engine';import{CKEditorError as _0x3b3b32,uid as _0x20487a,priorities as _0x5af24d,EmitterMixin as _0x58572d,mix as _0x44f73f,logWarning as _0x318706}from'ckeditor5/src/utils';import{toWidget as _0x54a300}from'ckeditor5/src/widget';import{Users as _0x28e86c}from'ckeditor5-collaboration/src/collaboration-core';import _0x4c2396 from'./commands/trackchangescommand';import _0x6ab048 from'./commands/acceptsuggestioncommand';import _0x4e4195 from'./commands/discardsuggestioncommand';import _0x38327e from'./commands/acceptallsuggestionscommand';import _0x1be7be from'./commands/acceptselectedsuggestionscommand';import _0x41b80b from'./commands/discardallsuggestionscommand';import _0xf9d859 from'./commands/discardselectedsuggestionscommand';import _0x291614 from'./suggestion';import _0x435985 from'./suggestiondescriptionfactory';import _0x10829 from'./integrations/alignment';import _0x364d9e from'./integrations/basicstyles';import _0x5bab61 from'./integrations/blockquote';import _0x1a8777 from'./integrations/ckbox';import _0x18441d from'./integrations/codeblock';import _0x105ba9 from'./integrations/comments';import _0x435d7f from'./integrations/deletecommand';import _0xcd43e4 from'./integrations/entercommand';import _0x3d1132 from'./integrations/font';import _0x3c8a6e from'./integrations/heading';import _0x1f483c from'./integrations/highlight';import _0x51b93b from'./integrations/horizontalline';import _0x3bec06 from'./integrations/htmlembed';import _0x26f252 from'./integrations/image';import _0xb00ad6 from'./integrations/importword';import _0x5e03e8 from'./integrations/indent';import _0x484acc from'./integrations/inputcommand';import _0x4982c7 from'./integrations/link';import _0x4b86c5 from'./integrations/list';import _0x47880d from'./integrations/mediaembed';import _0x2fa020 from'./integrations/mention';import _0x1eb12a from'./integrations/pagebreak';import _0x41bdd5 from'./integrations/paragraph';import _0x28bd2e from'./integrations/removeformat';import _0x1479ad from'./integrations/restrictededitingmode';import _0x528738 from'./integrations/shiftentercommand';import _0x451363 from'./integrations/standardeditingmode';import _0x161c8a from'./integrations/style';import _0x2e83cf from'./integrations/table';import _0x4fa987 from'./integrations/tablemergesplit';import _0x57518c from'./integrations/tableheadings';import _0x4d4492 from'./integrations/tableclipboard';import _0x291dc0 from'./integrations/title';import _0x4984c4 from'./integrations/undo';import _0x5e1503 from'./utils/hashobject.js';import{getTranslation as _0xb5e306}from'./utils/common-translations';export default class d extends _0x2e95e9{static get[_0x1f8f('0x88')](){return[_0x1f8f('0x5c'),_0x28e86c,_0x125075,_0x10829,_0x364d9e,_0x5bab61,_0x1a8777,_0x18441d,_0x105ba9,_0x435d7f,_0xcd43e4,_0x3d1132,_0x3c8a6e,_0x1f483c,_0x51b93b,_0x3bec06,_0x26f252,_0xb00ad6,_0x5e03e8,_0x484acc,_0x4982c7,_0x4b86c5,_0x47880d,_0x2fa020,_0x1eb12a,_0x41bdd5,_0x28bd2e,_0x1479ad,_0x528738,_0x451363,_0x161c8a,_0x2e83cf,_0x4fa987,_0x57518c,_0x4d4492,_0x291dc0,_0x4984c4];}static get[_0x1f8f('0x12e')](){return _0x1f8f('0x90');}constructor(_0x62ba4b){function _0x218605(_0x182b8c){return _0x182b8c[_0x1f8f('0xb8')](_0x3a59c0=>String[_0x1f8f('0xeb')](_0x3a59c0))[_0x1f8f('0xed')]('');}super(_0x62ba4b),this[_0x1f8f('0xa8')](_0x1f8f('0xe3'),[]),this['on'](_0x1f8f('0x12c'),(_0x1e2e6d,_0x456166,_0x26fa63,_0x3476f1)=>{this['_model'][_0x1f8f('0xc')](()=>{for(const _0x4db50c of[..._0x3476f1,..._0x26fa63])this[_0x1f8f('0x8a')][_0x1f8f('0x112')]['has'](_0x4db50c)&&_0x62ba4b[_0x1f8f('0xa6')][_0x1f8f('0x2f')](_0x4db50c);});}),this[_0x1f8f('0x104')]=new _0x435985(this[_0x1f8f('0xa0')][_0x1f8f('0x7e')][_0x1f8f('0xd8')],this[_0x1f8f('0xa0')][_0x1f8f('0x93')]),this[_0x1f8f('0x11')]=null,this[_0x1f8f('0x9e')]=new wt(this[_0x1f8f('0xa0')]),this[_0x1f8f('0x30')]=new Map(),this[_0x1f8f('0xa1')]=_0x62ba4b[_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0x5c')),this['_enabledCommands']=new Set(),this['_model']=this[_0x1f8f('0xa0')][_0x1f8f('0x7e')],this['_suggestionState']=new WeakMap(),this[_0x1f8f('0xbb')]=!0x1,this[_0x218605([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x218605([0x34,0x30,0x34,0x34,0x32,0x30,0x31,0x30]);}[_0x1f8f('0xfd')](){const _0x2b488c=this[_0x1f8f('0xa0')];_0x2b488c[_0x1f8f('0xf2')][_0x1f8f('0x0')](_0x1f8f('0x118'))[_0x1f8f('0x73')]({'model':_0x1f8f('0xe9'),'view':_0x931cc5=>{const {id:_0x52fa5e,type:_0x41aab8}=this[_0x1f8f('0x7c')](_0x931cc5[_0x1f8f('0x9')]),_0x479445=[_0x1f8f('0xaf'),_0x1f8f('0xbc')+_0x41aab8];let _0x350ccb=0xbb8;return this[_0x1f8f('0xe3')][_0x1f8f('0x130')](_0x931cc5[_0x1f8f('0x9')])&&(_0x479445[_0x1f8f('0x71')]('ck-suggestion-marker--active'),_0x350ccb=0xbc2),_0x1f8f('0xbd')==_0x41aab8&&(_0x350ccb+=0x5),{'classes':_0x479445,'attributes':{'data-suggestion':_0x52fa5e},'priority':_0x350ccb};}}),_0x2b488c[_0x1f8f('0xf2')][_0x1f8f('0x0')]('dataDowncast')['add'](_0x39b7bc=>{_0x39b7bc['on']('addMarker:suggestion',(_0x6522d,_0x43d5c7,_0x416ee2)=>{if(!_0x416ee2[_0x1f8f('0x106')][_0x1f8f('0xdf')])return;const _0x44704e=_0x43d5c7['item'];if(!_0x44704e)return;const _0x12baaa=_0x416ee2[_0x1f8f('0xdc')][_0x1f8f('0x1d')](_0x44704e);_0x2b488c['model'][_0x1f8f('0xd8')]['isObject'](_0x44704e)&&_0x12baaa&&!_0x12baaa[_0x1f8f('0x26')](_0x1f8f('0x134'))&&_0x12baaa['is'](_0x1f8f('0xe0'))&&_0x54a300(_0x12baaa,_0x416ee2[_0x1f8f('0x31')]);},{'priority':_0x1f8f('0xc8')});}),_0x2b488c[_0x1f8f('0xf2')][_0x1f8f('0x0')](_0x1f8f('0x32'))['markerToHighlight']({'model':_0x1f8f('0xe9'),'view':(_0x345fc4,_0x21e8ed)=>{if(!_0x21e8ed[_0x1f8f('0x106')]['showSuggestionHighlights'])return null;const {type:_0x3321b3}=this[_0x1f8f('0x7c')](_0x345fc4[_0x1f8f('0x9')]);return{'classes':[_0x1f8f('0xaf'),_0x1f8f('0xbc')+_0x3321b3],'priority':0xbb8};}});const _0x26b406=({showActiveMarkers:_0x2d46c8=!0x0}={})=>(_0x503754,_0x1ccba9,_0x3db7cf)=>{if(!_0x1ccba9['item'])return;if(_0x1ccba9[_0x1f8f('0xd4')]['is'](_0x1f8f('0x15')))return void _0x3db7cf[_0x1f8f('0x27')][_0x1f8f('0xb')](_0x1ccba9[_0x1f8f('0xd4')],_0x503754[_0x1f8f('0xea')]);const _0x49e81f=_0x3db7cf[_0x1f8f('0xdc')][_0x1f8f('0x1d')](_0x1ccba9[_0x1f8f('0xd4')]);if(!(_0x1ccba9[_0x1f8f('0xd4')]['is'](_0x1f8f('0x6c'))&&_0x2b488c[_0x1f8f('0x7e')]['schema'][_0x1f8f('0x13')](_0x1ccba9['item'])&&!_0x49e81f['getCustomProperty'](_0x1f8f('0x2'))))return;const {id:_0x4fffdc}=this[_0x1f8f('0x7c')](_0x1ccba9['markerName']);_0x3db7cf[_0x1f8f('0x31')][_0x1f8f('0xec')]([_0x1f8f('0xaf'),_0x1f8f('0x60')],_0x49e81f),_0x3db7cf[_0x1f8f('0x31')][_0x1f8f('0x120')](_0x1f8f('0x113'),_0x4fffdc,_0x49e81f),_0x3db7cf[_0x1f8f('0xdc')][_0x1f8f('0x47')](_0x49e81f,_0x1ccba9[_0x1f8f('0x9')]),_0x2d46c8&&(this[_0x1f8f('0xe3')][_0x1f8f('0x130')](_0x1ccba9['markerName'])?_0x3db7cf['writer'][_0x1f8f('0xec')](_0x1f8f('0x36'),_0x49e81f):_0x3db7cf[_0x1f8f('0x31')][_0x1f8f('0x39')](_0x1f8f('0x36'),_0x49e81f));for(const _0x1f27af of _0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x16')](_0x1ccba9[_0x1f8f('0xd4')])[_0x1f8f('0xe7')]())_0x3db7cf[_0x1f8f('0x27')][_0x1f8f('0xb')](_0x1f27af,_0x503754[_0x1f8f('0xea')]);_0x3db7cf[_0x1f8f('0x27')][_0x1f8f('0xb')](_0x1ccba9['item'],_0x503754['name']);};_0x2b488c[_0x1f8f('0xf2')]['for'](_0x1f8f('0x32'))[_0x1f8f('0xe1')](_0x105af9=>{_0x105af9['on'](_0x1f8f('0x3b'),(_0x2c5667,_0x3d04da,_0x1ba6ba)=>{_0x1ba6ba[_0x1f8f('0x106')][_0x1f8f('0xdf')]&&_0x26b406({'showActiveMarkers':!0x1})(_0x2c5667,_0x3d04da,_0x1ba6ba);},{'priority':_0x1f8f('0x18')});}),_0x2b488c[_0x1f8f('0xf2')]['for']('dataDowncast')[_0x1f8f('0xb5')]({'model':_0x1f8f('0xe9'),'view':(_0x1705cc,_0x2d2096)=>_0x2d2096[_0x1f8f('0x106')][_0x1f8f('0xdf')]?null:{'group':'suggestion','name':_0x1705cc[_0x1f8f('0x11c')](_0x1f8f('0xe9')[_0x1f8f('0x132')]+0x1)}}),_0x2b488c['conversion'][_0x1f8f('0x0')](_0x1f8f('0x115'))[_0x1f8f('0x89')]({'view':{'name':_0x1f8f('0xe9'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x446374,{writer:_0x5a168a})=>{let _0x5713bd='suggestion:'+_0x446374['getAttribute'](_0x1f8f('0x126'))+':'+_0x446374[_0x1f8f('0x103')]('id');return _0x446374['getAttribute'](_0x1f8f('0x49'))&&(_0x5713bd+=':'+_0x446374[_0x1f8f('0x103')](_0x1f8f('0x49'))),_0x5a168a[_0x1f8f('0x11f')]('$marker',{'data-name':_0x5713bd});}}),_0x2b488c[_0x1f8f('0xf2')][_0x1f8f('0x0')](_0x1f8f('0x115'))[_0x1f8f('0x127')]({'view':_0x1f8f('0xe9')}),_0x2b488c[_0x1f8f('0xf2')]['for']('editingDowncast')[_0x1f8f('0xe1')](_0x1724fe=>{_0x1724fe['on'](_0x1f8f('0x3b'),_0x26b406(),{'priority':_0x1f8f('0xc8')});}),_0x2b488c[_0x1f8f('0xf2')]['for'](_0x1f8f('0x118'))[_0x1f8f('0xe1')](_0x461baf=>{_0x461baf['on'](_0x1f8f('0x29'),(_0x488f7f,_0x3ea4ce,_0x3931fa)=>{const _0x348fbd=_0x3931fa[_0x1f8f('0xdc')][_0x1f8f('0x10d')](_0x3ea4ce[_0x1f8f('0x9')]);if(_0x348fbd)for(const _0x39f979 of _0x348fbd)_0x39f979[_0x1f8f('0x26')]('addHighlight')||(_0x3931fa[_0x1f8f('0x31')][_0x1f8f('0x39')]([_0x1f8f('0xaf'),_0x1f8f('0x60'),_0x1f8f('0x36')],_0x39f979),_0x3931fa[_0x1f8f('0x31')][_0x1f8f('0xc0')](_0x1f8f('0x113'),_0x39f979),_0x3931fa[_0x1f8f('0xdc')][_0x1f8f('0xd5')](_0x39f979,_0x3ea4ce[_0x1f8f('0x9')]));},{'priority':_0x1f8f('0xc8')});}),_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd')][_0x1f8f('0x12b')](_0xd94c26=>{let _0x5d29cb=!0x1;const _0x5dda76=Array[_0x1f8f('0x108')](_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd')][_0x1f8f('0xa')][_0x1f8f('0x46')]()),_0x5521c1=new Set();for(const {name:_0x23158b,data:_0x28b366}of _0x5dda76){const {group:_0x1b5c5c,type:_0x5b6001,id:_0x31b5eb}=this[_0x1f8f('0x7c')](_0x23158b);if(_0x1f8f('0xe9')!==_0x1b5c5c)continue;const _0x8cf64=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x31b5eb);if(null!=_0x28b366[_0x1f8f('0xb7')]){'formatInline'==_0x5b6001&&(_0x5d29cb=_0x5d29cb||St(_0x28b366[_0x1f8f('0xb7')],_0x23158b,_0xd94c26,_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd8')]));if(_0x28b366['newRange'][_0x1f8f('0x75')]||'$graveyard'==_0x28b366[_0x1f8f('0xb7')]['root'][_0x1f8f('0xd6')]||'formatBlock'==_0x5b6001&&!vt(_0x28b366[_0x1f8f('0xb7')])||_0x1f8f('0xbd')==_0x5b6001&&!(!bt(_0x48584a=_0x28b366[_0x1f8f('0xb7')])&&!function(_0x23d0dc){return _0x23d0dc[_0x1f8f('0x95')][_0x1f8f('0x61')]==_0x23d0dc[_0x1f8f('0xc5')]['nodeBefore']&&_0x23d0dc[_0x1f8f('0x95')][_0x1f8f('0x9b')];}(_0x48584a)))_0xd94c26['removeMarker'](_0x23158b),_0x5d29cb=!0x0;else{if(!_0x8cf64||!_0x8cf64[_0x1f8f('0x74')])continue;_0x5521c1[_0x1f8f('0xe1')](_0x8cf64);}}}var _0x48584a;return _0x5521c1[_0x1f8f('0xc9')]>0x0&&(_0x5d29cb=!!this[_0x1f8f('0x85')](_0x5521c1)||_0x5d29cb),_0x5d29cb;}),_0x2b488c['model'][_0x1f8f('0xd')][_0x1f8f('0x12b')](_0x27e50f=>{let _0x449407=!0x1;for(const _0x1d3aff of _0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd')][_0x1f8f('0xa')][_0x1f8f('0x3f')]()){if(_0x1f8f('0x43')!=_0x1d3aff[_0x1f8f('0x136')])continue;const _0x111bc0=_0x1d3aff['position'][_0x1f8f('0xa3')](_0x1d3aff['length']);if(_0x111bc0[_0x1f8f('0x9b')])for(const _0x39f69a of this[_0x1f8f('0x30')][_0x1f8f('0x13d')]()){if(_0x39f69a[_0x1f8f('0x10')]||!_0x39f69a[_0x1f8f('0x74')])continue;if(_0x1f8f('0x99')!=_0x39f69a['type'])continue;const _0x291251=_0x39f69a[_0x1f8f('0x2c')]();if(_0x291251['start'][_0x1f8f('0x61')]!=_0x291251[_0x1f8f('0xc5')]['parent']&&_0x291251[_0x1f8f('0xc5')][_0x1f8f('0x7d')](_0x1d3aff['position'])){const _0x1a3740=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x68')](_0x291251['start'],_0x111bc0);_0x27e50f[_0x1f8f('0x3a')](_0x39f69a[_0x1f8f('0x94')](),{'range':_0x1a3740}),_0x449407=!0x0;}}}return _0x449407;}),_0x2b488c['model']['markers']['on'](_0x1f8f('0x4c'),(_0x538b88,_0x5991ee,_0x5a3cef)=>{if(null==_0x5a3cef){const {id:_0xd3024e}=this['_splitMarkerName'](_0x5991ee[_0x1f8f('0xea')]),_0x3f099a=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0xd3024e);_0x3f099a&&_0x3f099a[_0x1f8f('0x12d')](_0x5991ee[_0x1f8f('0xea')]);}}),_0x2b488c['model']['document']['on'](_0x1f8f('0x119'),()=>{const _0x3ae84e=Array[_0x1f8f('0x108')](_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd')]['differ']['getChangedMarkers']())['filter'](_0xf13df8=>'suggestion'===this['_splitMarkerName'](_0xf13df8[_0x1f8f('0xea')])['group']);if(0x0===_0x3ae84e[_0x1f8f('0x132')])return;_0x3ae84e[_0x1f8f('0x123')]((_0x18411e,_0x1c2b5a)=>{const _0x4b5bf8=_0x18411e[_0x1f8f('0x128')][_0x1f8f('0x50')],_0x46bdfd=_0x1c2b5a[_0x1f8f('0x128')][_0x1f8f('0x50')];return null===_0x4b5bf8&&null===_0x46bdfd?0x0:null===_0x4b5bf8&&null!==_0x46bdfd?-0x1:null!==_0x4b5bf8&&null===_0x46bdfd?0x1:_0x4b5bf8[_0x1f8f('0x95')][_0x1f8f('0x84')](_0x46bdfd[_0x1f8f('0x95')])?-0x1:0x1;});const _0x591989=new Set(),_0x3da230=new Set();for(const {name:_0x18180e,data:_0x4dba68}of _0x3ae84e){const {id:_0x41dc5f}=this['_splitMarkerName'](_0x18180e);if(null===_0x4dba68[_0x1f8f('0x50')]){const _0x48e0fb=this[_0x1f8f('0x59')](_0x18180e);_0x3da230[_0x1f8f('0xe1')](_0x48e0fb);}else{const _0x302778=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x41dc5f);null!==_0x4dba68[_0x1f8f('0xb7')]||_0x302778[_0x1f8f('0x74')]?(_0x591989[_0x1f8f('0xe1')](_0x302778[_0x1f8f('0x8d')]),_0x3da230[_0x1f8f('0xe1')](_0x302778)):this[_0x1f8f('0x77')](_0x302778);}}_0x3da230['size']>0x0&&this[_0x1f8f('0xe6')](_0x3da230);for(const _0x562b86 of _0x591989)this[_0x1f8f('0xf5')](_0x1f8f('0x78'),_0x562b86);}),_0x2b488c[_0x1f8f('0x7e')]['on'](_0x1f8f('0x70'),(_0x3a461a,_0x5498a4)=>{const _0x36ad5f=_0x5498a4[0x0];if(!this[_0x1f8f('0x30')][_0x1f8f('0xc9')])return;if(!_0x36ad5f[_0x1f8f('0x79')])return;if(_0x36ad5f[_0x1f8f('0xcd')]['isUndo']||!_0x36ad5f[_0x1f8f('0xcd')][_0x1f8f('0x8c')])return;let _0x17971f,_0xac1779;switch(_0x36ad5f[_0x1f8f('0x136')]){case _0x1f8f('0x43'):_0x17971f=_0x2b488c[_0x1f8f('0x7e')]['createPositionAt'](_0x36ad5f[_0x1f8f('0x13e')]),_0xac1779=_0x17971f['getShiftedBy'](_0x36ad5f['howMany']);break;case _0x1f8f('0x11b'):_0x17971f=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x3d')](_0x36ad5f[_0x1f8f('0xd0')]),_0xac1779=_0x2b488c['model'][_0x1f8f('0x3d')](_0x36ad5f[_0x1f8f('0x10c')]);break;case'move':_0x17971f=_0x2b488c[_0x1f8f('0x7e')]['createPositionAt'](_0x36ad5f[_0x1f8f('0x1a')]),_0xac1779=_0x17971f[_0x1f8f('0xa3')](_0x36ad5f[_0x1f8f('0x21')]);break;default:return;}const _0x2099b3=_0x2b488c[_0x1f8f('0x7e')]['createRange'](_0x17971f,_0xac1779);_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xc')](()=>{for(const {suggestion:_0x233e81,meta:_0x52dae8}of this[_0x1f8f('0xa7')](_0x2099b3)){if(_0x233e81[_0x1f8f('0x10')])continue;if(_0x1f8f('0x10a')==_0x233e81[_0x1f8f('0x136')])continue;const _0x52c8bf=_0x233e81[_0x1f8f('0x128')]&&_0x233e81[_0x1f8f('0x128')][_0x1f8f('0x58')];(_0x1f8f('0x99')!=_0x233e81['type']||_0x1f8f('0x11b')==_0x36ad5f['type']&&!_0x52c8bf)&&(_0x52dae8[_0x1f8f('0x114')]||_0x1f8f('0x17')==_0x233e81[_0x1f8f('0x136')]&&_0x52dae8['isOwn']||_0x233e81[_0x1f8f('0x2c')]()[_0x1f8f('0x64')](_0x2099b3)&&this[_0x1f8f('0x6b')](_0x233e81,_0x17971f,_0xac1779));}});},{'priority':_0x1f8f('0x55')}),_0x2b488c[_0x1f8f('0x7e')]['on'](_0x1f8f('0xda'),(_0x20f973,_0x17b044)=>{const _0x479900=_0x17b044[0x0],_0xfa6544=_0x17b044[0x1];if(_0xfa6544&&_0xfa6544[_0x1f8f('0xf1')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x1f8f('0xef')][_0x1f8f('0x34')])return;if(_0x479900[_0x1f8f('0x75')])return;const _0x157b9e=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd8')],{start:_0x2f6ebe,end:_0x3ceac7}=_0x479900[_0x1f8f('0x2c')](),_0x5d11fc=_0x2f6ebe['nodeAfter']&&_0x157b9e['isObject'](_0x2f6ebe[_0x1f8f('0x137')])?null:_0x157b9e[_0x1f8f('0x5a')](_0x2f6ebe,_0x1f8f('0x10e')),_0x3c1bab=_0x3ceac7[_0x1f8f('0xff')]&&_0x157b9e[_0x1f8f('0x1b')](_0x3ceac7['nodeBefore'])?null:_0x157b9e[_0x1f8f('0x5a')](_0x3ceac7,'backward'),_0x15b924=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x68')](_0x5d11fc?_0x5d11fc[_0x1f8f('0x95')]:_0x2f6ebe,_0x3c1bab?_0x3c1bab[_0x1f8f('0xc5')]:_0x3ceac7);_0x2b488c['model'][_0x1f8f('0xc')](_0x3074cf=>{this[_0x1f8f('0x1f')](_0x15b924);const _0x3e3b52=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd8')][_0x1f8f('0x5a')](_0x15b924[_0x1f8f('0x95')]);_0x479900['is'](_0x1f8f('0xcb'))?_0x3074cf['setSelection'](_0x3e3b52):_0x479900[_0x1f8f('0x5')](_0x3e3b52);}),_0x20f973[_0x1f8f('0x133')]();},{'priority':_0x5af24d[_0x1f8f('0x13f')]+0xa}),_0x2b488c['model']['on'](_0x1f8f('0x1'),(_0x133a5f,_0x2a0952)=>{const _0x2254b3=_0x2a0952[_0x2a0952[_0x1f8f('0x132')]-0x1];_0x2254b3&&_0x2254b3[_0x1f8f('0xf1')]||this[_0x1f8f('0xbb')]||this[_0x1f8f('0xef')][_0x1f8f('0x34')]&&(_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xc')](()=>{let _0x1131d7=_0x2b488c['model'][_0x1f8f('0x1')](_0x2a0952[0x0],_0x2a0952[0x1],_0x2a0952[0x2],_0x2a0952[0x3],{'forceDefaultExecution':!0x0});if(!_0x1131d7)return;_0x133a5f[_0x1f8f('0x62')]=_0x1131d7['clone']();const _0x374962=_0x1131d7['end'][_0x1f8f('0xff')],_0x21cfd3=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0xd8')];_0x374962&&_0x21cfd3[_0x1f8f('0x13')](_0x374962)&&!_0x21cfd3[_0x1f8f('0x1b')](_0x374962)&&(_0x1131d7=_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x68')](_0x1131d7[_0x1f8f('0x95')],_0x2b488c[_0x1f8f('0x7e')][_0x1f8f('0x3d')](_0x374962,'end'))),this['markInsertion'](_0x1131d7);}),_0x133a5f[_0x1f8f('0x133')]());},{'priority':'high'}),this[_0x1f8f('0xef')]=new _0x4c2396(_0x2b488c,this[_0x1f8f('0xee')]),this[_0x1f8f('0xa0')][_0x1f8f('0xdd')]['add'](_0x1f8f('0x97'),this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2d51b3=new _0x6ab048(_0x2b488c,this[_0x1f8f('0x30')]);_0x2b488c[_0x1f8f('0xdd')]['add'](_0x1f8f('0xa5'),_0x2d51b3),this[_0x1f8f('0x5f')]('acceptSuggestion');const _0xb175b5=new _0x4e4195(_0x2b488c,this['_suggestions']);_0x2b488c[_0x1f8f('0xdd')][_0x1f8f('0xe1')](_0x1f8f('0x4f'),_0xb175b5),this[_0x1f8f('0x5f')](_0x1f8f('0x4f')),_0x2b488c[_0x1f8f('0xdd')]['add'](_0x1f8f('0xd9'),new _0x38327e(_0x2b488c,_0x2d51b3,this[_0x1f8f('0x30')])),this['enableCommand'](_0x1f8f('0xd9')),_0x2b488c['commands']['add'](_0x1f8f('0x7b'),new _0x41b80b(_0x2b488c,_0xb175b5,this[_0x1f8f('0x30')])),this[_0x1f8f('0x5f')]('discardAllSuggestions'),_0x2b488c[_0x1f8f('0xdd')][_0x1f8f('0xe1')](_0x1f8f('0x96'),new _0x1be7be(_0x2b488c,_0x2d51b3,this[_0x1f8f('0x30')])),this[_0x1f8f('0x5f')](_0x1f8f('0x96')),_0x2b488c[_0x1f8f('0xdd')][_0x1f8f('0xe1')](_0x1f8f('0x139'),new _0xf9d859(_0x2b488c,_0xb175b5,this['_suggestions'])),this[_0x1f8f('0x5f')](_0x1f8f('0x139'));const _0x311912=_0x2b488c[_0x1f8f('0xb6')]['get'](_0x1f8f('0x5c'));this[_0x1f8f('0x38')](_0x311912,_0x1f8f('0x4d'),(_0x137223,{threadId:_0x113323})=>{const _0x4a9b27=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x113323);_0x4a9b27&&_0x4a9b27['commentThread']&&0x1===_0x4a9b27[_0x1f8f('0xb2')][_0x1f8f('0x132')]&&this['_updateSuggestionData'](_0x113323,{'hasComments':!0x0});},{'priority':_0x1f8f('0x111')}),this[_0x1f8f('0x38')](_0x311912,_0x1f8f('0xbf'),(_0x2916de,{threadId:_0x25d75f})=>{const _0x50dac1=this['_suggestions'][_0x1f8f('0x12a')](_0x25d75f);_0x50dac1&&_0x50dac1[_0x1f8f('0xb2')]&&!_0x50dac1['commentThread'][_0x1f8f('0x132')]&&this[_0x1f8f('0x100')](_0x25d75f,{'hasComments':!0x1});},{'priority':_0x1f8f('0x111')});}set[_0x1f8f('0xb3')](_0x48dd7c){if(this[_0x1f8f('0x11')])throw new _0x3b3b32('track-changes-adapter-already-set',this);this[_0x1f8f('0x11')]=_0x48dd7c;}get[_0x1f8f('0xb3')](){return this[_0x1f8f('0x11')];}[_0x1f8f('0xdb')]({skipNotAttached:_0x10609f=!0x1,toJSON:_0x25fa41=!0x1}={}){const _0x4f0785=[];for(const _0x19b112 of this['_suggestions']['values']())_0x10609f&&!_0x19b112['isInContent']||_0x4f0785[_0x1f8f('0x71')](_0x19b112);return _0x25fa41?_0x4f0785['map'](_0x583824=>_0x583824['toJSON']()):_0x4f0785;}['getSuggestion'](_0x396011){const _0x1163ac=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x396011);if(!_0x1163ac)throw new _0x3b3b32(_0x1f8f('0x138'),this);return _0x1163ac;}[_0x1f8f('0xf8')](_0x3379fe){return this['_suggestions']['has'](_0x3379fe);}[_0x1f8f('0x11e')](_0x4d0b2b){const {id:_0x5d3463,authorId:_0x5eb968,attributes:_0x183e40}=_0x4d0b2b,[_0x1e3a33,_0x5a44b6]=_0x4d0b2b[_0x1f8f('0x136')]['split'](':'),_0x4bac6a=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x5d3463)||this[_0x1f8f('0xf9')](_0x1e3a33,_0x5a44b6,_0x5d3463,_0x5eb968,_0x183e40);switch(this['_addThreadToSuggestion'](_0x4bac6a),this[_0x1f8f('0xca')](_0x4bac6a,_0x1e3a33,_0x5a44b6||null,_0x5eb968),_0x4bac6a[_0x1f8f('0x86')]=_0x4d0b2b['createdAt'],_0x4d0b2b['data']&&(_0x4bac6a['data']=_0x4d0b2b[_0x1f8f('0x128')]),_0x4d0b2b[_0x1f8f('0x110')]&&(_0x4bac6a[_0x1f8f('0x110')]=_0x4d0b2b[_0x1f8f('0x110')]),this[_0x1f8f('0x11')]&&this[_0x1f8f('0x11')]['addSuggestion']||(_0x4bac6a[_0x1f8f('0xc6')]=!0x0),this[_0x1f8f('0x3e')][_0x1f8f('0x12a')](_0x4bac6a)){case _0x1f8f('0x131'):this[_0x1f8f('0x3e')]['set'](_0x4bac6a,_0x1f8f('0xc7'));break;case _0x1f8f('0xc3'):_0x4bac6a['isInContent']?(this[_0x1f8f('0x3e')][_0x1f8f('0xa8')](_0x4bac6a,_0x1f8f('0xd1')),this[_0x1f8f('0xf5')](_0x1f8f('0x35'),_0x4bac6a)):this[_0x1f8f('0x3e')][_0x1f8f('0xa8')](_0x4bac6a,_0x1f8f('0x33'));}return _0x4bac6a;}[_0x1f8f('0xa5')](_0x3bf823){this['forceDefaultExecution'](()=>{this[_0x1f8f('0xa0')][_0x1f8f('0x7e')][_0x1f8f('0xc')](()=>{for(const _0x9453c6 of _0x3bf823[_0x1f8f('0xfb')]())_0x9453c6[_0x1f8f('0x76')]();});});}[_0x1f8f('0x4f')](_0x174edd){this[_0x1f8f('0xf1')](()=>{this[_0x1f8f('0xa0')][_0x1f8f('0x7e')][_0x1f8f('0xc')](()=>{for(const _0x3ad1a4 of _0x174edd[_0x1f8f('0xfb')]())_0x3ad1a4[_0x1f8f('0x25')]();});});}[_0x1f8f('0x5f')](_0x406033,_0x29fedc){const _0x169408=this[_0x1f8f('0xa0')][_0x1f8f('0xdd')][_0x1f8f('0x12a')](_0x406033);if(!_0x169408)throw new _0x3b3b32('track-changes-command-not-found',this,{'commandName':_0x406033});this[_0x1f8f('0xee')][_0x1f8f('0xe1')](_0x169408),_0x29fedc&&_0x169408['on'](_0x1f8f('0x8e'),(_0x51a802,_0x2a256b)=>{this['trackChangesCommand']['value']&&(this[_0x1f8f('0xbb')]||_0x2a256b[_0x1f8f('0x132')]>0x0&&_0x2a256b[_0x2a256b[_0x1f8f('0x132')]-0x1]&&_0x2a256b[_0x2a256b[_0x1f8f('0x132')]-0x1]['forceDefaultExecution']||(_0x29fedc((..._0x3057d1)=>_0x169408[_0x1f8f('0x8e')](..._0x3057d1,{'forceDefaultExecution':!0x0}),..._0x2a256b),_0x51a802[_0x1f8f('0x133')]()));},{'priority':_0x1f8f('0xc8')});}[_0x1f8f('0xf1')](_0x3feb6a){let _0x1e041b,_0xed0d39;const _0x2132c6=this[_0x1f8f('0xbb')];this[_0x1f8f('0xbb')]=!0x0;try{_0x1e041b=_0x3feb6a();}catch(_0x5e3288){_0xed0d39=_0x5e3288;}return _0x2132c6||(this[_0x1f8f('0xbb')]=!0x1),_0xed0d39&&_0x3b3b32[_0x1f8f('0x8b')](_0xed0d39,this),_0x1e041b;}[_0x1f8f('0xe2')](_0x1d8d2d,_0x1a2108=null,_0x2ee890={}){if(_0x1d8d2d[_0x1f8f('0x75')])return null;const _0x51756e=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'];for(const {suggestion:_0x109b70,meta:_0x29a2db}of this[_0x1f8f('0xa7')](_0x1d8d2d,'insertion'))if(_0x29a2db[_0x1f8f('0xf4')]){if(!_0x29a2db['isNextTo'])return _0x109b70;if(_0x1a2108==_0x109b70[_0x1f8f('0x11d')]){const _0x1783d9=_0x109b70[_0x1f8f('0x2c')]();return _0x1783d9[_0x1f8f('0x95')][_0x1f8f('0x7d')](_0x1d8d2d[_0x1f8f('0xc5')])?this[_0x1f8f('0x3c')](_0x109b70,this[_0x1f8f('0x8a')]['createRange'](_0x1d8d2d[_0x1f8f('0x95')],_0x1783d9['end'])):this[_0x1f8f('0x3c')](_0x109b70,this['_model'][_0x1f8f('0x68')](_0x1783d9[_0x1f8f('0x95')],_0x1d8d2d[_0x1f8f('0xc5')])),_0x109b70;}}const _0x482b75=_0x20487a(),_0x54f018=_0x51756e['id'],_0x40d1a2=_0x1a2108?_0x1f8f('0xf3')+_0x1a2108:_0x1f8f('0x17'),_0x3656ee=this[_0x1f8f('0x8')]({'id':_0x482b75,'type':_0x40d1a2,'createdAt':new Date(),'authorId':_0x54f018,'attributes':_0x2ee890});return this[_0x1f8f('0xe4')](_0x40d1a2,_0x482b75,_0x54f018,_0x1d8d2d),_0x3656ee;}[_0x1f8f('0x87')](_0xde547b,_0x52b268='multi',_0x44e951={}){const _0x304651=this['editor'][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'],_0x378629=this['_suggestionFactory']['getSuggestionCallback'](_0x1f8f('0x17'),_0x52b268,'join');for(const _0x12a4d5 of this[_0x1f8f('0xdb')]())if(_0x12a4d5[_0x1f8f('0x121')]['id']==_0x304651['id']&&'insertion'==_0x12a4d5[_0x1f8f('0x136')]&&_0x12a4d5[_0x1f8f('0x11d')]==_0x52b268&&(_0x378629(_0x12a4d5['getRanges'](),_0xde547b)||_0x378629(_0xde547b,_0x12a4d5['getRanges']()))){for(const _0xae2a1d of _0xde547b)_0x12a4d5[_0x1f8f('0x40')](_0xae2a1d);return _0x12a4d5;}for(const _0xd2cf44 of _0xde547b)for(const {suggestion:_0xc6ad88,meta:_0xbd102b}of this[_0x1f8f('0xa7')](_0xd2cf44,'insertion')){if(!_0xbd102b[_0x1f8f('0xf4')])continue;let _0x435aa8=!0x0;for(const _0x1210bf of _0xc6ad88[_0x1f8f('0xa2')]())for(const _0x78ccfb of _0xde547b)if(!_0x1210bf[_0x1f8f('0x64')](_0x78ccfb)){_0x435aa8=!0x1;break;}if(_0x435aa8)return _0xc6ad88;}const _0x9cbf41=_0x20487a(),_0x569def=_0x304651['id'],_0xddf6ef='insertion:'+_0x52b268,_0x2230f6=this[_0x1f8f('0x8')]({'id':_0x9cbf41,'type':_0xddf6ef,'createdAt':new Date(),'authorId':_0x569def,'attributes':_0x44e951});for(const _0xf7d2e5 of _0xde547b)this[_0x1f8f('0xe4')](_0xddf6ef,_0x9cbf41,_0x569def,_0xf7d2e5,_0x291614[_0x1f8f('0x4e')]());return _0x2230f6;}[_0x1f8f('0x135')](_0x165526,_0x498ab9,_0x352e80=null,_0x106621={}){if(_0x352e80=_0x352e80||It(_0x498ab9),_0x165526[_0x1f8f('0x75')])return;const _0x19287d=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'],_0x5bef18=[];for(const {suggestion:_0x4acb38,meta:_0x28fd25}of this[_0x1f8f('0xa7')](_0x165526,_0x1f8f('0x17')))_0x28fd25[_0x1f8f('0xf4')]&&!_0x28fd25[_0x1f8f('0x91')]&&_0x5bef18[_0x1f8f('0x71')](..._0x4acb38[_0x1f8f('0xa2')]());const _0x3d5ee3=function(_0x4f522a,_0x1d0b16){const _0x4a477b=[];for(const _0x4257fd of _0x1d0b16){const _0x1c01c4=_0x4f522a[_0x1f8f('0xfa')](_0x4257fd);_0x1c01c4&&_0x4a477b['push'](_0x1c01c4);}return _0x4a477b;}(_0x165526,_0x5bef18),_0x2dcb47=function(_0x5dc2b1,_0x521d44){const _0x2c2f2e=[_0x5dc2b1];for(const _0xeecd1d of _0x521d44){let _0x46654f=0x0;for(;_0x46654f<_0x2c2f2e[_0x1f8f('0x132')];){const _0x17dd71=_0x2c2f2e[_0x46654f][_0x1f8f('0x10f')](_0xeecd1d);_0x2c2f2e[_0x1f8f('0x13b')](_0x46654f,0x1,..._0x17dd71),_0x46654f+=_0x17dd71[_0x1f8f('0x132')];}}return _0x2c2f2e;}(_0x165526,_0x5bef18);_0x3d5ee3[_0x1f8f('0x132')]&&this[_0x1f8f('0x8a')][_0x1f8f('0xc')](()=>{for(const _0x124c63 of _0x3d5ee3){const _0x51af26=this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x1f8f('0x10a'),_0x352e80,_0x1f8f('0x76'));this[_0x1f8f('0xf1')](()=>_0x51af26([_0x124c63],_0x498ab9,_0x106621));}});for(const _0xda3761 of _0x2dcb47){let _0x29d0c3=null,_0x3604b3=_0xda3761[_0x1f8f('0x95')],_0x1f7dd1=_0xda3761[_0x1f8f('0xc5')];for(const {suggestion:_0x3ba809,meta:_0x188748}of this[_0x1f8f('0xa7')](_0xda3761,_0x1f8f('0x10a'))){if(!_0x188748[_0x1f8f('0xf4')])continue;if(_0x3ba809[_0x1f8f('0x11d')]!=_0x352e80)continue;const _0x909a4a=_0x3ba809['getFirstRange']();if(_0x909a4a['containsRange'](_0xda3761,!0x0))return;_0x3604b3=_0x3604b3[_0x1f8f('0x84')](_0x909a4a[_0x1f8f('0x95')])?_0x3604b3:_0x909a4a[_0x1f8f('0x95')],_0x1f7dd1=_0x1f7dd1[_0x1f8f('0x5e')](_0x909a4a[_0x1f8f('0xc5')])?_0x1f7dd1:_0x909a4a['end'],_0x29d0c3?_0x909a4a[_0x1f8f('0x95')][_0x1f8f('0x84')](_0x29d0c3[_0x1f8f('0x2c')]()[_0x1f8f('0x95')])?(_0x29d0c3[_0x1f8f('0x109')](),_0x29d0c3=_0x3ba809):_0x3ba809['removeMarkers']():_0x29d0c3=_0x3ba809;}const _0x1f82f3=this['_model'][_0x1f8f('0x68')](_0x3604b3,_0x1f7dd1);if(_0x29d0c3)this[_0x1f8f('0x3c')](_0x29d0c3,_0x1f82f3);else{const _0x12e318=_0x20487a(),_0x5a8452=_0x19287d['id'];this[_0x1f8f('0x8')]({'id':_0x12e318,'type':_0x1f8f('0x54')+_0x352e80,'data':_0x498ab9,'createdAt':new Date(),'authorId':_0x5a8452,'attributes':_0x106621}),this[_0x1f8f('0xe4')]('formatInline:'+_0x352e80,_0x12e318,_0x5a8452,_0x1f82f3);}}}[_0x1f8f('0x117')](_0x3dfb4c,_0x63fd3e,_0x3aab54=[],_0x4ec41c=null,_0x55e6e9={}){_0x63fd3e['formatGroupId']||(_0x63fd3e[_0x1f8f('0xd7')]=_0x63fd3e['commandName']),_0x63fd3e[_0x1f8f('0x58')]=_0x3dfb4c['is']('range'),_0x4ec41c=_0x4ec41c||It(_0x63fd3e);const _0x3e13ff=_0x3aab54[_0x1f8f('0xb8')](_0x253b24=>At(_0x253b24,this[_0x1f8f('0x8a')])),_0x3e77a6=_0x3dfb4c['is'](_0x1f8f('0x72'))?_0x3dfb4c:At(_0x3dfb4c,this[_0x1f8f('0x8a')]);_0x3e13ff[_0x1f8f('0x71')](_0x3e77a6);let _0x1c35c2=!0x0;for(const _0x1db920 of _0x3e13ff)if(!this[_0x1f8f('0x2a')](_0x1db920)){_0x1c35c2=!0x1;break;}if(_0x1c35c2){const _0x58e696=this[_0x1f8f('0x9e')]['getSuggestionCallback'](_0x1f8f('0x99'),_0x4ec41c,_0x1f8f('0x76'));return void this[_0x1f8f('0xf1')](()=>_0x58e696([_0x3e77a6],_0x63fd3e,_0x55e6e9));}let _0xcacefa=null,_0x4aab5f=_0x3e77a6['start'],_0x544ddc=_0x3e77a6[_0x1f8f('0xc5')];for(const {suggestion:_0x2f4253,meta:_0x50e672}of this[_0x1f8f('0xa7')](_0x3e77a6,'formatBlock')){if(!_0x50e672['isOwn']||_0x50e672['isNextTo']||_0x50e672[_0x1f8f('0x114')]||_0x50e672[_0x1f8f('0x91')])continue;if(_0x2f4253[_0x1f8f('0x128')][_0x1f8f('0xd7')]!=_0x63fd3e[_0x1f8f('0xd7')])continue;const _0x3e95fc=_0x2f4253[_0x1f8f('0x2c')]();if(_0x2f4253['subType']==_0x4ec41c){if(_0x3e95fc[_0x1f8f('0x64')](_0x3e77a6,!0x0))return;_0x4aab5f=_0x4aab5f['isBefore'](_0x3e95fc[_0x1f8f('0x95')])?_0x4aab5f:_0x3e95fc[_0x1f8f('0x95')],_0x544ddc=_0x544ddc['isAfter'](_0x3e95fc[_0x1f8f('0xc5')])?_0x544ddc:_0x3e95fc['end'],_0xcacefa?_0x3e95fc['start'][_0x1f8f('0x84')](_0xcacefa[_0x1f8f('0x2c')]()[_0x1f8f('0x95')])?(_0xcacefa[_0x1f8f('0x109')](),_0xcacefa=_0x2f4253):_0x2f4253[_0x1f8f('0x109')]():_0xcacefa=_0x2f4253;}else{const _0x4235ec=_0x3e77a6['getIntersection'](_0x3e95fc);this[_0x1f8f('0xaa')](_0x2f4253,_0x4235ec);}}const _0xaa6b92=this['editor']['plugins'][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'],_0x502cb8=_0x20487a(),_0x2b4e99=_0xaa6b92['id'];_0xcacefa?this[_0x1f8f('0x3c')](_0xcacefa,this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x4aab5f,_0x544ddc)):(this[_0x1f8f('0x8')]({'id':_0x502cb8,'type':'formatBlock:'+_0x4ec41c,'data':_0x63fd3e,'createdAt':new Date(),'authorId':_0x2b4e99,'attributes':_0x55e6e9}),this[_0x1f8f('0xe4')](_0x1f8f('0x12f')+_0x4ec41c,_0x502cb8,_0x2b4e99,this['_model'][_0x1f8f('0x68')](_0x4aab5f,_0x544ddc)));}[_0x1f8f('0x1c')](_0x534298,_0x653436,_0x546fe1=[],_0x2e59a5=null,_0x343ee5={}){_0x653436[_0x1f8f('0xd7')]||(_0x653436[_0x1f8f('0xd7')]=_0x653436[_0x1f8f('0xfc')]),_0x653436[_0x1f8f('0x58')]=!0x1,_0x2e59a5=_0x2e59a5||It(_0x653436);const _0x4b88b2=_0x546fe1[_0x1f8f('0xb8')](_0x161e13=>At(_0x161e13,this[_0x1f8f('0x8a')])),_0x4d95a4=_0x534298[_0x1f8f('0xb8')](_0x14c1ec=>At(_0x14c1ec,this['_model']));_0x4b88b2[_0x1f8f('0x71')](..._0x4d95a4);let _0x4f2f71=!0x0;for(const _0x2666bc of _0x4b88b2)if(!this[_0x1f8f('0x2a')](_0x2666bc)){_0x4f2f71=!0x1;break;}if(_0x4f2f71){const _0x340553=this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x1f8f('0x99'),_0x2e59a5,_0x1f8f('0x76'));return void this[_0x1f8f('0xf1')](()=>_0x340553(_0x4d95a4,_0x653436,_0x343ee5));}const _0x1c3b7c=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'];for(const _0x5b23fc of this[_0x1f8f('0xdb')]()){if(_0x5b23fc['author']['id']!=_0x1c3b7c['id'])continue;if('formatBlock'!=_0x5b23fc[_0x1f8f('0x136')]||_0x5b23fc['data']['formatGroupId']!=_0x653436[_0x1f8f('0xd7')])continue;const _0x5935c5=_0x5b23fc[_0x1f8f('0x11d')]==_0x2e59a5;for(let _0x101259=0x0;_0x101259<_0x4d95a4[_0x1f8f('0x132')];_0x101259++){const _0x3e1127=_0x4d95a4[_0x101259];for(const _0x4f6708 of _0x5b23fc[_0x1f8f('0x129')]()){const _0x265c99=_0x4f6708['getRange']();if(_0x3e1127['isEqual'](_0x265c99)){_0x5935c5?(_0x4d95a4[_0x1f8f('0x13b')](_0x101259,0x1),_0x101259--):_0x5b23fc[_0x1f8f('0x4a')](_0x4f6708['name']);break;}}}}if(0x0==_0x4d95a4[_0x1f8f('0x132')])return;const _0x3e32bb=this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x1f8f('0x99'),_0x2e59a5,_0x1f8f('0xed'));for(const _0x4ce407 of this[_0x1f8f('0xdb')]())if(_0x4ce407[_0x1f8f('0x121')]['id']==_0x1c3b7c['id']&&_0x1f8f('0x99')==_0x4ce407[_0x1f8f('0x136')]&&_0x4ce407[_0x1f8f('0x128')][_0x1f8f('0xd7')]==_0x653436[_0x1f8f('0xd7')]&&_0x4ce407[_0x1f8f('0x11d')]==_0x2e59a5&&(_0x3e32bb(_0x4ce407[_0x1f8f('0xa2')](),_0x4d95a4)||_0x3e32bb(_0x4d95a4,_0x4ce407[_0x1f8f('0xa2')]()))){for(const _0x16f5f0 of _0x4d95a4)_0x4ce407['addRange'](_0x16f5f0);return _0x4ce407;}const _0x5e1c73=_0x20487a(),_0x4bcbb4=_0x1c3b7c['id'],_0x5818a1=_0x1f8f('0x12f')+_0x2e59a5,_0x576baf=this[_0x1f8f('0x8')]({'id':_0x5e1c73,'type':_0x5818a1,'data':_0x653436,'createdAt':new Date(),'authorId':_0x4bcbb4,'attributes':_0x343ee5});for(const _0x55f2fd of _0x4d95a4)this[_0x1f8f('0xe4')](_0x5818a1,_0x5e1c73,_0x4bcbb4,_0x55f2fd,_0x291614[_0x1f8f('0x4e')]());return _0x576baf;}[_0x1f8f('0x1f')](_0x11a396,_0x14440c=null,_0x117334={}){if(_0x11a396['isCollapsed'])return null;const _0x542a44=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')]('Users')['me'],_0x2b7b57=new _0x1a80a0(_0x11a396[_0x1f8f('0x95')],_0x11a396[_0x1f8f('0xc5')]);for(const {suggestion:_0x418c22,meta:_0x4e5bc6}of this[_0x1f8f('0xa7')](_0x2b7b57,_0x1f8f('0x17')))if(_0x4e5bc6[_0x1f8f('0xf4')]&&!_0x4e5bc6[_0x1f8f('0xde')]){if(_0x418c22[_0x1f8f('0x10')]){const _0xe4813d=_0x418c22[_0x1f8f('0xa2')]()[_0x1f8f('0x53')](_0x1a4baa=>_0x1f8f('0x122')!=_0x1a4baa[_0x1f8f('0x66')][_0x1f8f('0xd6')]);_0xe4813d[_0x1f8f('0x125')](_0x2bceee=>_0x2b7b57[_0x1f8f('0x64')](_0x2bceee,!0x0))&&_0x418c22[_0x1f8f('0x25')]();if(_0xe4813d[_0x1f8f('0x7a')](_0x179a5e=>_0x179a5e[_0x1f8f('0x64')](_0x2b7b57,!0x0))){const _0xcb783f=this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x1f8f('0xbd'),_0x14440c,'accept');return this[_0x1f8f('0xf1')](()=>_0xcb783f([_0x2b7b57],null,_0x117334)),null;}}else{const _0xcef938=_0x2b7b57[_0x1f8f('0xfa')](_0x418c22[_0x1f8f('0x2c')]());_0x418c22[_0x1f8f('0xf0')]([_0xcef938],null,_0x117334);}}if(_0x2b7b57[_0x1f8f('0xc1')](),_0x2b7b57[_0x1f8f('0x75')]||_0x1f8f('0x122')==_0x2b7b57[_0x1f8f('0x66')]['rootName'])return null;let _0x11d4a9=null,_0x21718d=_0x2b7b57[_0x1f8f('0x95')],_0x3aed4a=_0x2b7b57[_0x1f8f('0xc5')];for(const {suggestion:_0x1c35a1,meta:_0x1941e0}of this[_0x1f8f('0xa7')](_0x2b7b57,_0x1f8f('0xbd')))if(_0x1941e0[_0x1f8f('0xf4')]){if(_0x1c35a1['isMultiRange']){let _0x51b937=!0x0;for(const _0x509c81 of _0x1c35a1[_0x1f8f('0xa2')]()){if(_0x509c81[_0x1f8f('0x64')](_0x2b7b57,!0x0))return _0x1c35a1;_0x2b7b57[_0x1f8f('0x64')](_0x509c81)||(_0x51b937=!0x1);}_0x51b937&&_0x1c35a1[_0x1f8f('0x25')]();}else{const _0x1383a7=_0x1c35a1[_0x1f8f('0x2c')]();if(_0x1383a7['containsRange'](_0x2b7b57,!0x0))return _0x1c35a1;_0x21718d=_0x21718d['isBefore'](_0x1383a7[_0x1f8f('0x95')])?_0x21718d:_0x1383a7[_0x1f8f('0x95')],_0x3aed4a=_0x3aed4a[_0x1f8f('0x5e')](_0x1383a7[_0x1f8f('0xc5')])?_0x3aed4a:_0x1383a7[_0x1f8f('0xc5')],_0x11d4a9?_0x1383a7[_0x1f8f('0x95')]['isBefore'](_0x11d4a9[_0x1f8f('0x2c')]()['start'])?(_0x11d4a9[_0x1f8f('0x109')](),_0x11d4a9=_0x1c35a1):_0x1c35a1[_0x1f8f('0x109')]():_0x11d4a9=_0x1c35a1;}}if(_0x11d4a9)return this['_setSuggestionRange'](_0x11d4a9,this['_model'][_0x1f8f('0x68')](_0x21718d,_0x3aed4a)),_0x11d4a9;{const _0x565afb=_0x20487a(),_0x2e2998=this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x21718d,_0x3aed4a),_0x244815=_0x542a44['id'],_0x2e551b=_0x14440c?_0x1f8f('0x13a')+_0x14440c:_0x1f8f('0xbd'),_0x5b466b=this[_0x1f8f('0x8')]({'id':_0x565afb,'type':_0x2e551b,'createdAt':new Date(),'authorId':_0x244815,'attributes':_0x117334});return this[_0x1f8f('0xe4')](_0x2e551b,_0x565afb,_0x244815,_0x2e2998),_0x5b466b;}}['markMultiRangeDeletion'](_0x20dea7,_0x56b42b=_0x1f8f('0xa4'),_0x3deb9e={}){const _0x3bbb79=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))['me'],_0x3d7cb9=_0x20dea7[_0x1f8f('0xb8')](_0x355a19=>new _0x1a80a0(_0x355a19['start'],_0x355a19[_0x1f8f('0xc5')])),_0x42de1c=new Set();for(const _0x2adb32 of _0x3d7cb9)for(const {suggestion:_0x5456ee,meta:_0x2a7a5a}of this[_0x1f8f('0xa7')](_0x2adb32,_0x1f8f('0x17')))_0x2a7a5a[_0x1f8f('0xf4')]&&!_0x2a7a5a[_0x1f8f('0xde')]&&_0x42de1c[_0x1f8f('0xe1')](_0x5456ee);for(const _0x108ddb of _0x42de1c)if(_0x108ddb[_0x1f8f('0x10')]){const _0x4b375f=_0x108ddb['getRanges']();(!_0x108ddb[_0x1f8f('0x110')]||!_0x108ddb[_0x1f8f('0x110')]['skipNestingCheck'])&&(_0x4b375f[_0x1f8f('0x125')](_0x1c422f=>_0x3d7cb9[_0x1f8f('0x7a')](_0x2a663d=>_0x2a663d['containsRange'](_0x1c422f,!0x0)))&&_0x108ddb[_0x1f8f('0x25')]());if(_0x3d7cb9[_0x1f8f('0x125')](_0x57a761=>_0x4b375f[_0x1f8f('0x7a')](_0x2721ea=>_0x2721ea[_0x1f8f('0x64')](_0x57a761,!0x0)))){const _0x448313=this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x1f8f('0xbd'),_0x56b42b,_0x1f8f('0x76'));return this['forceDefaultExecution'](()=>_0x448313(_0x20dea7,null,_0x3deb9e)),null;}}else{const _0x3d3390=_0x108ddb['getFirstRange']();_0x3d7cb9[_0x1f8f('0x7a')](_0x472ed6=>_0x472ed6[_0x1f8f('0x64')](_0x3d3390,!0x0))&&_0x108ddb[_0x1f8f('0x25')]();if(_0x3d7cb9[_0x1f8f('0x125')](_0x27a782=>_0x3d3390['containsRange'](_0x27a782,!0x0))){const _0x33c65d=this['_suggestionFactory'][_0x1f8f('0x45')]('deletion',_0x56b42b,_0x1f8f('0x76'));return this[_0x1f8f('0xf1')](()=>_0x33c65d(_0x3d7cb9,null,_0x3deb9e)),null;}}const _0x4c8d3b=this['_suggestionFactory'][_0x1f8f('0x45')](_0x1f8f('0xbd'),_0x56b42b,_0x1f8f('0xed'));let _0x5330d3=null;for(const _0x18f3ad of this['getSuggestions']())if(_0x18f3ad[_0x1f8f('0x121')]['id']==_0x3bbb79['id']&&_0x18f3ad['isInContent']&&'deletion'==_0x18f3ad[_0x1f8f('0x136')]&&_0x18f3ad[_0x1f8f('0x11d')]==_0x56b42b&&(_0x4c8d3b(_0x18f3ad['getRanges'](),_0x3d7cb9)||_0x4c8d3b(_0x3d7cb9,_0x18f3ad[_0x1f8f('0xa2')]()))){if(_0x5330d3){if(_0x18f3ad['commentThread']&&_0x18f3ad['commentThread'][_0x1f8f('0x132')])continue;for(const _0x340451 of _0x18f3ad[_0x1f8f('0xa2')]())_0x5330d3['isIntersectingWithRange'](_0x340451)||_0x5330d3[_0x1f8f('0x40')](_0x340451);_0x18f3ad[_0x1f8f('0x109')]();}else{_0x5330d3=_0x18f3ad;for(const _0x3dff03 of _0x3d7cb9)_0x18f3ad[_0x1f8f('0x6f')](_0x3dff03)||_0x18f3ad[_0x1f8f('0x40')](_0x3dff03);}}if(_0x5330d3)return _0x5330d3;_0x42de1c[_0x1f8f('0x69')]();for(const _0x28a837 of _0x3d7cb9)for(const {suggestion:_0xb98275,meta:_0x50d1fb}of this[_0x1f8f('0xa7')](_0x28a837,'deletion'))_0x50d1fb[_0x1f8f('0xf4')]&&_0x42de1c[_0x1f8f('0xe1')](_0xb98275);for(const _0x25ccc4 of _0x42de1c){const _0x5e9b9e=_0x25ccc4[_0x1f8f('0xa2')]();if(!_0x3deb9e||!_0x3deb9e[_0x1f8f('0xae')]){if(_0x3d7cb9[_0x1f8f('0x125')](_0x58a9c8=>_0x5e9b9e[_0x1f8f('0x7a')](_0x511d14=>_0x511d14['containsRange'](_0x58a9c8,!0x0))))return _0x25ccc4;}(!_0x25ccc4['attributes']||!_0x25ccc4[_0x1f8f('0x110')][_0x1f8f('0xae')])&&(_0x5e9b9e[_0x1f8f('0x125')](_0x1b2dbc=>_0x3d7cb9['some'](_0x231d5f=>_0x231d5f[_0x1f8f('0x64')](_0x1b2dbc,!0x0)))&&_0x25ccc4['discard']());}const _0x445a96=_0x20487a(),_0x3a8b82=_0x3bbb79['id'],_0x2b1d80=_0x1f8f('0x13a')+_0x56b42b,_0x19a67b=this[_0x1f8f('0x8')]({'id':_0x445a96,'type':_0x2b1d80,'createdAt':new Date(),'authorId':_0x3a8b82,'attributes':_0x3deb9e});for(const _0x21f347 of _0x3d7cb9)_0x21f347[_0x1f8f('0xc1')](),_0x21f347['isCollapsed']||_0x1f8f('0x122')==_0x21f347[_0x1f8f('0x66')][_0x1f8f('0xd6')]||this[_0x1f8f('0xe4')](_0x2b1d80,_0x445a96,_0x3a8b82,_0x21f347,_0x291614[_0x1f8f('0x4e')]());return _0x19a67b;}[_0x1f8f('0x3c')](_0x3d65a6,_0x29ed0d){const _0x49e357=_0x3d65a6[_0x1f8f('0x94')]();this[_0x1f8f('0x8a')][_0x1f8f('0xc')](_0x3288ce=>{_0x3288ce[_0x1f8f('0x3a')](_0x49e357,{'range':_0x29ed0d});});}[_0x1f8f('0x20')](_0x17f0f5){const _0x40f8b9=_0x17f0f5['id'],_0x55d9f7=this[_0x1f8f('0xa0')]['config'][_0x1f8f('0x12a')](_0x1f8f('0x6e'));this[_0x1f8f('0xa1')][_0x1f8f('0xb9')](_0x40f8b9)||this[_0x1f8f('0xa1')][_0x1f8f('0x98')]({'channelId':_0x55d9f7,'threadId':_0x40f8b9});const _0x2017f6=this['_commentsRepository'][_0x1f8f('0xc2')](_0x40f8b9);_0x2017f6[_0x1f8f('0x2e')]('isRemovable'),_0x2017f6[_0x1f8f('0xce')]=!0x1,_0x17f0f5[_0x1f8f('0xb2')]=_0x2017f6;}[_0x1f8f('0xca')](_0x28f157,_0xc95aba,_0x6f3389,_0x4e4a5e){if(_0x28f157[_0x1f8f('0x136')]!=_0xc95aba||_0x28f157[_0x1f8f('0x11d')]!=_0x6f3389||_0x28f157[_0x1f8f('0x121')]['id']!=_0x4e4a5e)throw this[_0x1f8f('0xa0')][_0x1f8f('0xd2')](_0x1f8f('0x19')),new _0x3b3b32(_0x1f8f('0x19'),this);}[_0x1f8f('0xaa')](_0x58212b,_0x18ba1b){const _0x157dd8=_0x58212b['getFirstRange']();if(_0x18ba1b[_0x1f8f('0x7d')](_0x157dd8))_0x58212b[_0x1f8f('0x109')]();else{if(_0x157dd8[_0x1f8f('0x64')](_0x18ba1b)){const _0x19027e=this[_0x1f8f('0x8a')]['createPositionAt'](_0x18ba1b[_0x1f8f('0x95')][_0x1f8f('0xff')],_0x1f8f('0xc5'));this[_0x1f8f('0x3c')](_0x58212b,this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x157dd8[_0x1f8f('0x95')],_0x19027e));const _0x33c9f2=_0x20487a(),_0x126bc2=_0x58212b['author']['id'],_0x20cd8f=_0x58212b['type']+':'+_0x58212b[_0x1f8f('0x11d')];this[_0x1f8f('0x8')]({'id':_0x33c9f2,'type':_0x20cd8f,'createdAt':new Date(),'authorId':_0x126bc2,'data':_0x58212b[_0x1f8f('0x128')],'attributes':_0x58212b[_0x1f8f('0x110')]});const _0x1fc253=this[_0x1f8f('0x8a')][_0x1f8f('0x3d')](_0x18ba1b[_0x1f8f('0xc5')]['parent'],_0x1f8f('0x67')),_0x17dbc2=this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x1fc253,_0x157dd8['end']);this[_0x1f8f('0xe4')](_0x20cd8f,_0x33c9f2,_0x126bc2,_0x17dbc2);}else{if(_0x157dd8[_0x1f8f('0x9d')](_0x18ba1b[_0x1f8f('0x95')])){const _0x58ff91=this[_0x1f8f('0x8a')][_0x1f8f('0x3d')](_0x18ba1b[_0x1f8f('0x95')]['nodeBefore'],_0x1f8f('0xc5'));this[_0x1f8f('0x3c')](_0x58212b,this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x157dd8[_0x1f8f('0x95')],_0x58ff91));}else{const _0x549b9b=this[_0x1f8f('0x8a')][_0x1f8f('0x3d')](_0x18ba1b[_0x1f8f('0xc5')]['parent'],'after');this['_setSuggestionRange'](_0x58212b,this['_model'][_0x1f8f('0x68')](_0x549b9b,_0x157dd8[_0x1f8f('0xc5')]));}}}}[_0x1f8f('0x2a')](_0x2b576a){for(const {suggestion:_0x3603ec,meta:_0x42738d}of this[_0x1f8f('0xa7')](_0x2b576a,'insertion')){if(!_0x42738d[_0x1f8f('0xf4')])continue;const _0x51279e=_0x3603ec[_0x1f8f('0xa2')]();for(const _0x5f5c6f of _0x51279e)if(!_0x2b576a[_0x1f8f('0x10f')](_0x5f5c6f)['length'])return!0x0;}return!0x1;}[_0x1f8f('0x9a')](_0x5bba27){const _0x159345=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0xb1'))[_0x1f8f('0xcf')](_0x5bba27);if(!_0x159345)throw new _0x3b3b32('track-changes-user-not-found',this);return _0x159345;}[_0x1f8f('0x24')](_0x59db81){const _0x2b6353=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')]['get'](_0x1f8f('0xb1')),_0x41b3b8=_0x1f8f('0x42')+_0x59db81,_0x5ecc6c=_0x2b6353[_0x1f8f('0xcf')](_0x41b3b8);return _0x5ecc6c||_0x2b6353[_0x1f8f('0xc4')]({'id':_0x41b3b8,'name':_0x59db81});}[_0x1f8f('0xf9')](_0x1b4547,_0x449495,_0x13c97e,_0x209da0,_0x23568f){const _0x3edae9=this[_0x1f8f('0x9a')](_0x209da0);let _0x265f11=null;_0x23568f&&_0x23568f[_0x1f8f('0x28')]&&(_0x265f11=this[_0x1f8f('0x24')](_0x23568f[_0x1f8f('0x28')][_0x1f8f('0xbe')]));const _0x20e59b=this[_0x1f8f('0x9e')][_0x1f8f('0x2b')](_0x1b4547,_0x449495,_0x13c97e,_0x3edae9,_0x265f11,_0x458a0d=>this['_updateSuggestionData'](_0x13c97e,{'attributes':_0x458a0d}));return this['listenTo'](_0x20e59b,_0x1f8f('0x76'),()=>{this[_0x1f8f('0x100')](_0x13c97e,{'state':'accepted'});},{'priority':_0x1f8f('0xc8')}),this['listenTo'](_0x20e59b,_0x1f8f('0x25'),()=>{this[_0x1f8f('0x100')](_0x13c97e,{'state':_0x1f8f('0xac')});},{'priority':'high'}),this[_0x1f8f('0x30')]['set'](_0x13c97e,_0x20e59b),this[_0x1f8f('0x3e')][_0x1f8f('0xa8')](_0x20e59b,_0x1f8f('0x131')),_0x20e59b;}[_0x1f8f('0x7c')](_0x4ff0bf){const _0x578c28=_0x4ff0bf[_0x1f8f('0x11b')](':');return{'group':_0x578c28[0x0],'type':_0x578c28[0x1],'subType':_0x578c28[_0x1f8f('0x132')]>=0x5?_0x578c28[0x2]:null,'id':_0x578c28['length']<0x5?_0x578c28[0x2]:_0x578c28[0x3],'authorId':_0x578c28[_0x1f8f('0x132')]<0x5?_0x578c28[0x3]:_0x578c28[0x4],'markerCount':0x6==_0x578c28['length']?_0x578c28[0x5]:null};}[_0x1f8f('0x6b')](_0x4ab150,_0x49bb9f,_0x12c45b){const _0x3e549d=_0x4ab150[_0x1f8f('0x2c')](),_0x9e1a3a=_0x3e549d[_0x1f8f('0x95')],_0x28ef48=_0x3e549d[_0x1f8f('0xc5')];this[_0x1f8f('0x3c')](_0x4ab150,this[_0x1f8f('0x8a')][_0x1f8f('0x68')](_0x9e1a3a,_0x49bb9f));const _0x5dcc1e=_0x20487a(),_0x396259=_0x4ab150['author']['id'],_0x36fae6=_0x4ab150['type']+(_0x4ab150[_0x1f8f('0x11d')]?':'+_0x4ab150[_0x1f8f('0x11d')]:'');this['_setSuggestionData']({'id':_0x5dcc1e,'type':_0x36fae6,'createdAt':new Date(),'authorId':_0x396259,'originalSuggestionId':_0x4ab150['id'],'data':_0x4ab150[_0x1f8f('0x128')]}),_0x1f8f('0x99')==_0x4ab150[_0x1f8f('0x136')]&&(_0x12c45b=this['_model']['createPositionBefore'](_0x12c45b[_0x1f8f('0x61')])),this[_0x1f8f('0xe4')](_0x36fae6,_0x5dcc1e,_0x396259,this['_model']['createRange'](_0x12c45b,_0x28ef48));}[_0x1f8f('0xa7')](_0x37df41,_0x1f0eac=null){const _0x114dee=[],_0x91bd45=this[_0x1f8f('0x8a')][_0x1f8f('0xd8')],_0xde5a2e=this[_0x1f8f('0xa0')]['plugins']['get'](_0x1f8f('0xb1'))['me'];for(const _0x50963f of this[_0x1f8f('0xdb')]())if(_0x50963f[_0x1f8f('0x74')]&&(!_0x1f0eac||_0x50963f['type']==_0x1f0eac))for(const _0x5f5283 of _0x50963f[_0x1f8f('0xa2')]()){const _0x366ef7=_0x37df41['start'][_0x1f8f('0x7d')](_0x5f5283[_0x1f8f('0xc5')])||_0x37df41['end'][_0x1f8f('0x7d')](_0x5f5283[_0x1f8f('0x95')]);if(_0x366ef7||_0x37df41[_0x1f8f('0xfa')](_0x5f5283)){const _0x1a030=_0x37df41[_0x1f8f('0x64')](_0x5f5283)&&yt(_0x91bd45,_0x5f5283[_0x1f8f('0x95')],_0x37df41),_0x1cff61=_0x5f5283[_0x1f8f('0x64')](_0x37df41)&&yt(_0x91bd45,_0x37df41[_0x1f8f('0x95')],_0x5f5283);_0x114dee[_0x1f8f('0x71')]({'suggestion':_0x50963f,'meta':{'isOwn':_0xde5a2e==_0x50963f[_0x1f8f('0x121')],'isNextTo':_0x366ef7,'isInsideObject':_0x1a030,'containsRangeInObject':_0x1cff61}});break;}}return _0x114dee;}[_0x1f8f('0xe4')](_0x1463ce,_0x5ceea8,_0x31b012,_0x5c346f,_0x2347bf=null){this[_0x1f8f('0x8a')]['change'](_0x30ac47=>{let _0x1ef6d7=_0x1f8f('0x41')+_0x1463ce+':'+_0x5ceea8+':'+_0x31b012;_0x2347bf&&(_0x1ef6d7=_0x1ef6d7+':'+_0x2347bf),_0x30ac47[_0x1f8f('0x7')](_0x1ef6d7,{'range':_0x5c346f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1f8f('0x77')](_0x5c94e6){const _0x20e70f=_0x5c94e6[_0x1f8f('0xb0')],_0xd22940=_0x5c94e6[_0x1f8f('0x6a')];_0x5c94e6[_0x1f8f('0xb0')]=null,null!=_0x20e70f&&(_0x20e70f[_0x1f8f('0x6a')]=null),_0x5c94e6[_0x1f8f('0x6a')]=null,null!=_0xd22940&&(_0xd22940[_0x1f8f('0xb0')]=null),_0x1f8f('0xd1')==this[_0x1f8f('0x3e')][_0x1f8f('0x12a')](_0x5c94e6)&&(this[_0x1f8f('0x3e')][_0x1f8f('0xa8')](_0x5c94e6,_0x1f8f('0x33')),this['fire'](_0x1f8f('0x51'),_0x5c94e6,_0x20e70f,_0xd22940));}[_0x1f8f('0x8')](_0x4e5535){const _0x522f2d=_0x4e5535['id'],_0x42178f=this[_0x1f8f('0x11e')](_0x4e5535);if(this[_0x1f8f('0x11')]&&this['_adapter'][_0x1f8f('0xcc')]){const _0x5e6dbf=this[_0x1f8f('0xa0')][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0x44')),_0x440501=_0x42178f[_0x1f8f('0x9c')],_0x598508=_0x42178f[_0x1f8f('0x11d')]?_0x42178f['type']+':'+_0x42178f[_0x1f8f('0x11d')]:_0x42178f[_0x1f8f('0x136')],_0x50dc44=this[_0x1f8f('0xa0')][_0x1f8f('0x93')],_0x4d7084=_0x5e6dbf['add'](_0xb5e306(_0x50dc44,_0x1f8f('0x8f'))),_0x5b9f39={'id':_0x522f2d,'type':_0x598508,'hasComments':_0x440501,'data':_0x4e5535[_0x1f8f('0x128')]||null,'originalSuggestionId':_0x4e5535[_0x1f8f('0x57')]||null,'attributes':_0x42178f[_0x1f8f('0x110')]};this['_adapter']['addSuggestion'](_0x5b9f39)[_0x1f8f('0x4')](_0x397ee6=>{_0x42178f[_0x1f8f('0xc6')]=!0x0,_0x5e6dbf[_0x1f8f('0x56')](_0x4d7084),_0x397ee6&&_0x397ee6[_0x1f8f('0x86')]&&(this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x522f2d)[_0x1f8f('0x86')]=_0x397ee6['createdAt']);})[_0x1f8f('0xe5')](_0x33aa91=>{throw _0x318706(_0x1f8f('0x65')),this[_0x1f8f('0xa0')][_0x1f8f('0x7e')][_0x1f8f('0x22')]({'isUndoable':!0x1},()=>{_0x42178f[_0x1f8f('0x25')]();}),_0x42178f['stopListening'](),this[_0x1f8f('0x30')]['delete'](_0x42178f['id']),this[_0x1f8f('0x3e')][_0x1f8f('0x6')](_0x42178f),_0x33aa91;});}return _0x42178f;}[_0x1f8f('0x100')](_0x5b44a8,_0x5a7cf5){const _0x132bd0=this['editor'][_0x1f8f('0xb6')][_0x1f8f('0x12a')](_0x1f8f('0x44')),_0x1b673b=this[_0x1f8f('0x30')]['get'](_0x5b44a8);if(this[_0x1f8f('0x11')]&&this[_0x1f8f('0x11')][_0x1f8f('0x101')]){if(_0x1b673b[_0x1f8f('0xc6')]){const _0x6570f1=_0x132bd0['add'](_0xb5e306(this[_0x1f8f('0xa0')][_0x1f8f('0x93')],'PENDING_ACTION_SUGGESTION'));this[_0x1f8f('0x11')]['updateSuggestion'](_0x5b44a8,_0x5a7cf5)['then'](()=>{_0x132bd0[_0x1f8f('0x56')](_0x6570f1);});}else _0x1b673b['on'](_0x1f8f('0xd3'),()=>{this[_0x1f8f('0x100')](_0x5b44a8,_0x5a7cf5);});}}['_getSuggestionData'](_0x512723){if(!this['_adapter']||!this[_0x1f8f('0x11')][_0x1f8f('0x82')])throw new _0x3b3b32(_0x1f8f('0x92'),this);return this[_0x1f8f('0x11')]['getSuggestion'](_0x512723);}[_0x1f8f('0x59')](_0x11283d){const {id:_0x50c597,type:_0x148bf0,subType:_0x1255fb,authorId:_0x1e5c31}=this[_0x1f8f('0x7c')](_0x11283d),_0x214ad6=this[_0x1f8f('0x30')][_0x1f8f('0x12a')](_0x50c597)||this[_0x1f8f('0xf9')](_0x148bf0,_0x1255fb,_0x50c597,_0x1e5c31);switch(this[_0x1f8f('0xca')](_0x214ad6,_0x148bf0,_0x1255fb,_0x1e5c31),this['_suggestionState'][_0x1f8f('0x12a')](_0x214ad6)){case'notReady':this[_0x1f8f('0x81')](_0x50c597)[_0x1f8f('0x4')](_0x18e9f8=>{let _0x567e8e=Promise['resolve']();_0x18e9f8['hasComments']&&(_0x567e8e=this[_0x1f8f('0xa1')][_0x1f8f('0x102')]({'channelId':this[_0x1f8f('0xa0')][_0x1f8f('0xf6')][_0x1f8f('0x12a')](_0x1f8f('0x6e')),'threadId':_0x50c597})),_0x567e8e['then'](()=>{this[_0x1f8f('0x11e')](_0x18e9f8)[_0x1f8f('0xc6')]=!0x0;});}),this['_suggestionState'][_0x1f8f('0xa8')](_0x214ad6,_0x1f8f('0xc3'));break;case _0x1f8f('0x33'):this[_0x1f8f('0x100')](_0x50c597,{'state':_0x1f8f('0x4b')});case _0x1f8f('0xc7'):this[_0x1f8f('0x3e')][_0x1f8f('0xa8')](_0x214ad6,_0x1f8f('0xd1')),this[_0x1f8f('0xf5')](_0x1f8f('0x35'),_0x214ad6);break;case'ready':this[_0x1f8f('0xf5')](_0x1f8f('0x78'),_0x214ad6);}return _0x214ad6['addMarkerName'](_0x11283d),_0x214ad6;}[_0x1f8f('0xe6')](_0xcb8cd2){const _0x58c181=Array[_0x1f8f('0x108')](_0xcb8cd2)['filter'](_0x3ef1a6=>!_0x3ef1a6[_0x1f8f('0x10')]),_0x21f934=this['getSuggestions']({'skipNotAttached':!0x0})[_0x1f8f('0x53')](_0x258ecd=>!_0x258ecd[_0x1f8f('0x10')]),_0x153737=_0x21f934[_0x1f8f('0x53')](_0x1f4da9=>!_0xcb8cd2[_0x1f8f('0x23')](_0x1f4da9)),_0x3d4b77=new Map(_0x21f934[_0x1f8f('0xb8')](_0x485599=>[_0x485599,this[_0x1f8f('0x9e')]['getSuggestionCallback'](_0x485599[_0x1f8f('0x136')],_0x485599[_0x1f8f('0x11d')],_0x1f8f('0x52'))])),_0x24a17c=new Map(_0x21f934['map'](_0x151550=>[_0x151550,_0x151550[_0x1f8f('0x2c')]()])),_0x43e868=new Set(),_0x3e589d=new Set();for(let _0x1c4fad=0x0;_0x1c4fad<_0x58c181['length'];_0x1c4fad++)_0x36fdaa(_0x58c181[_0x1c4fad],_0x58c181,_0x1c4fad+0x1);for(let _0x29893b=0x0;_0x29893b<_0x58c181[_0x1f8f('0x132')];_0x29893b++)_0x36fdaa(_0x58c181[_0x29893b],_0x153737,0x0);for(let _0x94f3cf=0x0;_0x94f3cf<_0x58c181['length'];_0x94f3cf++){const _0x4a7088=_0x58c181[_0x94f3cf];!_0x3e589d[_0x1f8f('0x23')](_0x4a7088)&&_0x4a7088[_0x1f8f('0xb0')]&&(_0x4a7088[_0x1f8f('0xb0')][_0x1f8f('0x6a')]===_0x4a7088&&(_0x4a7088['previous']['next']=null),_0x4a7088[_0x1f8f('0xb0')]=null),!_0x43e868[_0x1f8f('0x23')](_0x4a7088)&&_0x4a7088[_0x1f8f('0x6a')]&&(_0x4a7088[_0x1f8f('0x6a')][_0x1f8f('0xb0')]===_0x4a7088&&(_0x4a7088[_0x1f8f('0x6a')]['previous']=null),_0x4a7088[_0x1f8f('0x6a')]=null);}function _0x36fdaa(_0x5c8595,_0x43e496,_0x628b4b){for(let _0x2c72ba=_0x628b4b;_0x2c72ba<_0x43e496[_0x1f8f('0x132')];_0x2c72ba++){const _0x3c229e=_0x190858(_0x5c8595,_0x43e496[_0x2c72ba]);_0x3c229e&&(_0x3c229e[0x0]['next']=_0x3c229e[0x1],_0x3c229e[0x1][_0x1f8f('0xb0')]=_0x3c229e[0x0],_0x43e868[_0x1f8f('0xe1')](_0x3c229e[0x0]),_0x3e589d['add'](_0x3c229e[0x1]));}}function _0x190858(_0x4150df,_0x328537){if(_0x4150df[_0x1f8f('0x121')]['id']!==_0x328537[_0x1f8f('0x121')]['id'])return null;const _0x4544fc=_0x3d4b77[_0x1f8f('0x12a')](_0x4150df)(_0x4150df,_0x328537,_0x24a17c[_0x1f8f('0x12a')](_0x4150df),_0x24a17c['get'](_0x328537));if(!_0x4544fc)return null;return _0x3d4b77['get'](_0x328537)(_0x4150df,_0x328537,_0x24a17c[_0x1f8f('0x12a')](_0x4150df),_0x24a17c[_0x1f8f('0x12a')](_0x328537))?_0x4544fc[0x1][_0x1f8f('0xb2')]&&_0x4544fc[0x1]['commentThread'][_0x1f8f('0x132')]?null:_0x4544fc:null;}}[_0x1f8f('0x85')](_0x450714){const _0x3afbce=Array[_0x1f8f('0x108')](_0x450714),_0x58c327=this[_0x1f8f('0xdb')]({'skipNotAttached':!0x0}),_0x3b0b9e=_0x58c327[_0x1f8f('0x53')](_0x5da815=>!_0x450714[_0x1f8f('0x23')](_0x5da815)),_0x32a3f0=new Map(_0x3afbce['map'](_0x51744c=>[_0x51744c,this[_0x1f8f('0x9e')][_0x1f8f('0x45')](_0x51744c[_0x1f8f('0x136')],_0x51744c[_0x1f8f('0x11d')],_0x1f8f('0xed'))])),_0x509c5e=new Map(_0x58c327[_0x1f8f('0xb8')](_0xcd25a9=>[_0xcd25a9,_0xcd25a9['getRanges']()]));for(let _0x119559=0x0;_0x119559<_0x3afbce['length'];_0x119559++){if(_0x1ab435(this,_0x3afbce[_0x119559],_0x3afbce,_0x119559+0x1))return!0x0;}for(let _0xcc8058=0x0;_0xcc8058<_0x3afbce[_0x1f8f('0x132')];_0xcc8058++){if(_0x1ab435(this,_0x3afbce[_0xcc8058],_0x3b0b9e,0x0))return!0x0;}return!0x1;function _0x1ab435(_0x179827,_0x4658b9,_0xf41ef5,_0x418b49){for(let _0x217a95=_0x418b49;_0x217a95<_0xf41ef5[_0x1f8f('0x132')];_0x217a95++){const _0x220900=_0xf41ef5[_0x217a95];if(_0x220900[_0x1f8f('0x136')]!==_0x4658b9[_0x1f8f('0x136')]||_0x220900[_0x1f8f('0x121')]['id']!==_0x4658b9['author']['id']||_0x220900[_0x1f8f('0x11d')]!==_0x4658b9[_0x1f8f('0x11d')])continue;const _0x21cb17=_0x32a3f0[_0x1f8f('0x12a')](_0x4658b9),_0x40617b=_0x509c5e['get'](_0x4658b9),_0x3f28f8=_0x509c5e['get'](_0x220900),_0x575b8a=_0x4658b9[_0x1f8f('0xb2')]&&_0x4658b9[_0x1f8f('0xb2')]['length'],_0x327a72=_0x220900[_0x1f8f('0xb2')]&&_0x220900[_0x1f8f('0xb2')][_0x1f8f('0x132')];if(!_0x575b8a&&_0x21cb17(_0x3f28f8,_0x40617b))return _0x179827[_0x1f8f('0xf')](_0x220900,_0x4658b9),_0x509c5e['delete'](_0x4658b9),!0x0;if(!_0x327a72&&_0x21cb17(_0x40617b,_0x3f28f8))return _0x179827[_0x1f8f('0xf')](_0x4658b9,_0x220900),_0x509c5e[_0x1f8f('0x6')](_0x220900),!0x0;}return!0x1;}}[_0x1f8f('0xf')](_0x487b08,_0x445956){if(_0x487b08['isMultiRange'])for(const _0x187c15 of _0x445956[_0x1f8f('0xa2')]())_0x487b08['addRange'](_0x187c15);else{const _0x53a87b=_0x445956[_0x1f8f('0x2c')]()['end'];this[_0x1f8f('0x3c')](_0x487b08,this['_model'][_0x1f8f('0x68')](_0x487b08[_0x1f8f('0x2c')]()[_0x1f8f('0x95')],_0x53a87b));}_0x445956['removeMarkers']();}}_0x44f73f(d,_0x58572d);class wt{constructor(_0x2cd12e){this[_0x1f8f('0x107')]=_0x2cd12e,this[_0x1f8f('0x8a')]=_0x2cd12e[_0x1f8f('0x7e')],this['_customCallbacks']=new Map(),this[_0x1f8f('0x1e')]=new Map(),this[_0x1f8f('0x63')]();}[_0x1f8f('0x2b')](_0x427a42,_0x388d17,_0x19ba6d,_0x5167ea,_0x1e8a4c,_0x54688c){return new _0x291614(this['_model'],{'type':_0x427a42,'subType':_0x388d17,'id':_0x19ba6d,'author':_0x5167ea,'externalAuthor':_0x1e8a4c,'onAttributesChange':_0x54688c,'onAccept':(..._0xd7dc21)=>this[_0x1f8f('0x45')](_0x427a42,_0x388d17,_0x1f8f('0x76'))(..._0xd7dc21),'onDiscard':(..._0x27b19a)=>this[_0x1f8f('0x45')](_0x427a42,_0x388d17,_0x1f8f('0x25'))(..._0x27b19a)});}[_0x1f8f('0x13c')](_0x42b32f,_0x3f6991,_0x527f65,_0x38dfd3){const _0x355cb0=_0x42b32f+':'+_0x3f6991+':'+_0x527f65;this[_0x1f8f('0xa9')][_0x1f8f('0xa8')](_0x355cb0,_0x38dfd3);}['getSuggestionCallback'](_0xd7a31a,_0x44ba28,_0x4fdd35){const _0x2e18e8=_0xd7a31a+':'+_0x44ba28+':'+_0x4fdd35;return this[_0x1f8f('0xa9')]['get'](_0x2e18e8)||this['_defaultCallbacks'][_0x1f8f('0x12a')](_0xd7a31a+':'+_0x4fdd35);}['_registerDefaultCallbacks'](){const _0x229443=()=>{},_0x2307d7=_0x3326c6=>{_0x3326c6[_0x1f8f('0x123')]((_0xc0f6b1,_0x18182e)=>_0xc0f6b1[_0x1f8f('0x95')]['isBefore'](_0x18182e[_0x1f8f('0x95')])?0x1:-0x1),this['_model']['change'](_0x20b3d5=>{for(const _0x30ad9a of _0x3326c6){let _0x10b52f;_0x10b52f=_0x30ad9a[_0x1f8f('0xc5')][_0x1f8f('0x9b')]&&_0x30ad9a[_0x1f8f('0xc5')][_0x1f8f('0x61')]==_0x30ad9a['start'][_0x1f8f('0x137')]?_0x20b3d5[_0x1f8f('0xe')](_0x30ad9a['start'][_0x1f8f('0x137')],'on'):_0x20b3d5['createSelection'](_0x30ad9a),this[_0x1f8f('0x8a')][_0x1f8f('0xda')](_0x10b52f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5c68cb=(_0x527c35,_0x1401dc)=>{this['_model']['change'](_0x51e6fd=>{const {commandName:_0x62e55a,commandParams:_0x20de38=[]}=_0x1401dc,_0x1cbd7d=_0x527c35[0x0];if(_0x1f8f('0x122')==_0x1cbd7d[_0x1f8f('0x66')][_0x1f8f('0xd6')])return;const _0x3587c8=Array['from'](this[_0x1f8f('0x8a')]['document'][_0x1f8f('0x15')][_0x1f8f('0xa2')]())[_0x1f8f('0xb8')](_0x243953=>_0x1a80a0[_0x1f8f('0xfe')](_0x243953));bt(_0x1cbd7d)?_0x51e6fd[_0x1f8f('0x5d')](this['_model'][_0x1f8f('0x68')](_0x1cbd7d[_0x1f8f('0xc5')])):_0x51e6fd['setSelection'](_0x1cbd7d);for(const _0xca02e2 of this['_editor'][_0x1f8f('0xdd')][_0x1f8f('0xdd')]())_0xca02e2[_0x1f8f('0xba')]();_0x20de38[_0x1f8f('0x71')]({'forceDefaultExecution':!0x0}),this[_0x1f8f('0x107')][_0x1f8f('0x8e')](_0x62e55a,..._0x20de38);const _0x259ac4=_0x3587c8[_0x1f8f('0x53')](_0x23c0eb=>_0x1f8f('0x122')!=_0x23c0eb[_0x1f8f('0x66')][_0x1f8f('0xd6')]);_0x259ac4[_0x1f8f('0x132')]>0x0&&_0x51e6fd[_0x1f8f('0x5d')](_0x259ac4);for(const _0x4d96bc of _0x3587c8)_0x4d96bc[_0x1f8f('0xc1')]();});},_0x2bd66d=(_0x3a0d98,_0x40a650)=>0x1==_0x3a0d98[_0x1f8f('0x132')]&&0x1==_0x40a650[_0x1f8f('0x132')]&&_0x3a0d98[0x0][_0x1f8f('0xc5')][_0x1f8f('0x7d')](_0x40a650[0x0]['start']),_0x56f1f9=(_0x53a16b,_0x486f0d,_0xc4ffd2,_0x41f39a)=>Dt(_0x53a16b,_0x486f0d,_0xc4ffd2,_0x41f39a,this[_0x1f8f('0x8a')])?[_0x53a16b,_0x486f0d]:Dt(_0x486f0d,_0x53a16b,_0x41f39a,_0xc4ffd2,this[_0x1f8f('0x8a')])?[_0x486f0d,_0x53a16b]:null;this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x37'),_0x229443),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x3'),_0x2307d7),this[_0x1f8f('0x1e')]['set']('insertion:join',_0x2bd66d),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x7f'),_0x56f1f9),this[_0x1f8f('0x1e')]['set']('deletion:accept',_0x2307d7),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x14'),_0x229443),this['_defaultCallbacks'][_0x1f8f('0xa8')]('deletion:join',_0x2bd66d),this['_defaultCallbacks'][_0x1f8f('0xa8')](_0x1f8f('0x83'),_0x56f1f9),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0xb4'),_0x5c68cb),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x11a'),_0x229443),this['_defaultCallbacks'][_0x1f8f('0xa8')](_0x1f8f('0xf7'),_0x2bd66d),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')]('formatInline:chain',_0x229443),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c68cb),this[_0x1f8f('0x1e')][_0x1f8f('0xa8')](_0x1f8f('0x80'),_0x229443),this[_0x1f8f('0x1e')]['set'](_0x1f8f('0x6d'),_0x2bd66d),this[_0x1f8f('0x1e')]['set'](_0x1f8f('0x9f'),_0x229443);}}function yt(_0x28f40c,_0xfa5bb9,_0x10563c){for(const _0x3fe3bc of _0xfa5bb9[_0x1f8f('0x61')][_0x1f8f('0x105')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3fe3bc[_0x1f8f('0x66')]==_0x3fe3bc)return!0x1;if(!_0x10563c[_0x1f8f('0x12')](_0x3fe3bc))return!0x1;if(_0x28f40c[_0x1f8f('0x1b')](_0x3fe3bc)||_0x28f40c[_0x1f8f('0x5b')](_0x3fe3bc))return!0x0;}}function bt(_0x8a9eda){return _0x8a9eda[_0x1f8f('0xc5')][_0x1f8f('0x61')]==_0x8a9eda[_0x1f8f('0x95')][_0x1f8f('0x137')]&&_0x8a9eda[_0x1f8f('0xc5')][_0x1f8f('0x116')];}function St(_0x31ebc7,_0x29ec38,_0x518ae4,_0x305709){const _0x231cbe=_0x42171a=>!_0x42171a[_0x1f8f('0xd4')]['is']('textProxy')&&!_0x305709[_0x1f8f('0x1b')](_0x42171a[_0x1f8f('0xd4')]),_0x30eb30=_0x31ebc7['start'][_0x1f8f('0x48')](_0x231cbe),_0x162ea0=_0x31ebc7['end'][_0x1f8f('0x48')](_0x231cbe,{'direction':_0x1f8f('0xad')});return(!_0x31ebc7[_0x1f8f('0x95')][_0x1f8f('0x7d')](_0x30eb30)||!_0x31ebc7[_0x1f8f('0xc5')]['isEqual'](_0x162ea0))&&(_0x30eb30[_0x1f8f('0x84')](_0x162ea0)?_0x518ae4['updateMarker'](_0x29ec38,{'range':_0x518ae4['createRange'](_0x30eb30,_0x162ea0)}):_0x518ae4[_0x1f8f('0x4a')](_0x29ec38),!0x0);}function It(_0x319f92){return _0x5e1503(_0x319f92);}function vt(_0x401b15){const _0x10f897=_0x401b15[_0x1f8f('0x95')][_0x1f8f('0x137')];return _0x10f897&&_0x10f897['is'](_0x1f8f('0x6c'));}function At(_0x47dcde,_0x5b6862){const _0x4da93d=_0x5b6862[_0x1f8f('0xd8')][_0x1f8f('0x1b')](_0x47dcde)||_0x5b6862[_0x1f8f('0xd8')]['isSelectable'](_0x47dcde);return _0x5b6862[_0x1f8f('0x68')](_0x5b6862['createPositionAt'](_0x47dcde,_0x1f8f('0xab')),_0x4da93d?_0x5b6862['createPositionAfter'](_0x47dcde):_0x5b6862['createPositionAt'](_0x47dcde,_0x1f8f('0xc5')));}function Dt(_0xe20413,_0x4adf61,_0x16ea22,_0x36fc0a,_0x3dc8eb){if(_0x16ea22[_0x1f8f('0xc5')][_0x1f8f('0x7d')](_0x36fc0a[_0x1f8f('0x95')]))return!0x0;if(_0xe20413[_0x1f8f('0x136')]!=_0x4adf61[_0x1f8f('0x136')])return!0x1;if(!_0x16ea22[_0x1f8f('0xc5')][_0x1f8f('0xe8')](_0x36fc0a[_0x1f8f('0x95')]))return!0x1;const _0x41d498=_0x3dc8eb['createRange'](_0x16ea22[_0x1f8f('0xc5')],_0x36fc0a[_0x1f8f('0x95')])[_0x1f8f('0x2d')]();for(const _0x3a5bbf of _0x41d498)if([_0x1f8f('0x124'),_0x1f8f('0x10b')]['includes'](_0x3a5bbf[_0x1f8f('0x136')])&&_0x3dc8eb[_0x1f8f('0xd8')][_0x1f8f('0x5b')](_0x3a5bbf[_0x1f8f('0xd4')]))return!0x1;return!0x0;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f07=['getAllAdjacentSuggestions','listenTo','CommentsUI','isDirty','values','Track\x20changes','set','addSourceCollector','Accept\x20all\x20selected\x20suggestions','get','destroy','innerView','discardSelectedSuggestions','filter','change:isDirty','focus','getMarkerNames','_updateController','commentThread','length','separator','suggestion-','editing','_disableComments','getContainedElement','model','getByInnerView','previous','define','CommentView','TrackChangesUI','push','hasSuggestion','unbind','config','PendingActions','_suggestionToController','CommentsRepository','switchbutton','editor','plugins','view','buttonView','SuggestionThreadView','commandName','from','trackChanges','EditorAnnotations','suggestionChanged','change:previous','commands','discardButton','toMany','stopListening','init','TrackChangesEditing','toViewElement','getFirstMarker','getDescriptions','Discard\x20all\x20suggestions','acceptSelectedSuggestions','_createUIButton','head','createAnnotationView','cancel','actionView','comments.maxCommentsWhenCollapsed','mapper','comments.maxCommentCharsWhenCollapsed','activeMarkers','arrowView','_descriptionFactory','discardSuggestion','_viewToController','isMultiRange','add','button','_destroyController','PENDING_ACTION_SUGGESTION','reduce','keys','Accept\x20all\x20suggestions','Annotations','addComment','has','remove','source','value','isEnabled','lowest','map','_debouncedHandlers','getJoined','delete','change:activeAnnotations','bind','comments','execute','clear','trackChanges.disableComments','refreshSelectedViews','componentFactory','comments.editorConfig','suggestionUnloaded','descriptionParts','type','locale','getFirstRange','_initializeController','acceptSuggestion','createCommentThreadController','comments.maxThreadTotalWeight','getRange'];(function(_0x466a3b,_0x4f07a8){const _0x386238=function(_0x1b7d03){while(--_0x1b7d03){_0x466a3b['push'](_0x466a3b['shift']());}};_0x386238(++_0x4f07a8);}(_0x4f07,0x18c));const _0x3862=function(_0x466a3b,_0x4f07a8){_0x466a3b=_0x466a3b-0x0;let _0x386238=_0x4f07[_0x466a3b];return _0x386238;};import{Plugin as _0x4913b3}from'ckeditor5/src/core';import{Collection as _0x3935c1}from'ckeditor5/src/utils';import{Model as _0x11b74a,SplitButtonView as _0x4b2ba4,createDropdown as _0x2667b4,addListToDropdown as _0x2a2150}from'ckeditor5/src/ui';import{Users as _0x2ec6c0,getDateTimeFormatter as _0x13cade,getMarkerDomElement as _0x267b4a}from'ckeditor5-collaboration/src/collaboration-core';import{debounce as _0x355cda}from'lodash-es';import _0x1b5c3f from'./trackchangesediting';import _0x24047e from'./ui/suggestioncontroller';import _0x42747c from'./ui/view/suggestionthreadview';import{getTranslation as _0x2c72c5}from'./utils/common-translations';import _0x27dca3 from'../theme/icons/track-changes.svg';export default class m extends _0x4913b3{static get['requires'](){return[_0x1b5c3f,_0x2ec6c0,_0x3862('0x5d'),_0x3862('0x19'),_0x3862('0x67')];}static get['pluginName'](){return _0x3862('0x56');}constructor(_0x2e4a52){super(_0x2e4a52),this[_0x3862('0x5c')]=new Map(),this['_viewToController']=new Map(),this[_0x3862('0x22')]=new Map();const _0x5e819c=this['editor'][_0x3862('0x5a')];_0x5e819c[_0x3862('0x54')]('trackChanges.SuggestionThreadView',_0x42747c),_0x5e819c[_0x3862('0x54')](_0x3862('0x2a'),!0x1),this['_disableComments']=_0x5e819c[_0x3862('0x41')](_0x3862('0x2a'));}[_0x3862('0x6e')](){const _0x48eca3=this[_0x3862('0x5f')],_0x49b96b=_0x48eca3[_0x3862('0x60')]['get'](_0x1b5c3f),_0x49428f=_0x48eca3[_0x3862('0x60')][_0x3862('0x41')](_0x3862('0x19')),_0x38d99c=_0x48eca3['plugins']['get'](_0x3862('0x67')),_0x5e5624=_0x48eca3[_0x3862('0x60')][_0x3862('0x41')](_0x3862('0x5d'));_0x48eca3['ui'][_0x3862('0x2c')][_0x3862('0x12')](_0x3862('0x66'),_0x1a5c81=>this[_0x3862('0x4')](_0x1a5c81)),_0x38d99c[_0x3862('0x3f')](()=>{const _0x14a9d9=[];for(const [_0x3a521e,_0x2e28e4]of Array[_0x3862('0x65')](this[_0x3862('0x5c')])){const _0x26e5ec=_0x3a521e[_0x3862('0x38')](),_0xf1c252=[];for(const _0x3b4fd2 of _0x26e5ec){if(!_0x3b4fd2['isInContent'])continue;if(_0x3b4fd2[_0x3862('0x11')]){_0xf1c252[_0x3862('0x57')](..._0x3b4fd2['getRanges']());continue;}const _0x5b63fc=_0x3b4fd2[_0x3862('0x32')]();if(_0xf1c252[_0x3862('0x4b')]>0x0){const _0x3d7627=_0xf1c252[0x0][_0x3862('0x23')](_0x5b63fc);if(_0x3d7627){_0xf1c252[0x0]=_0x3d7627;continue;}}_0xf1c252[_0x3862('0x57')](_0x5b63fc);}_0x14a9d9[_0x3862('0x57')]([_0x2e28e4['view'],_0xf1c252]);}return _0x14a9d9;}),this['listenTo'](_0x49b96b,'suggestionLoaded',(_0x3ea595,_0x425e0c)=>{let _0x4520a9=!0x1;const _0x204665=_0x355cda(_0x4d0dbd=>{_0x4520a9||_0x4d0dbd?_0x4520a9&&_0x4d0dbd&&(this[_0x3862('0x14')](_0x425e0c),_0x38d99c[_0x3862('0x2b')](),_0x4520a9=!0x1):(this[_0x3862('0x33')](_0x425e0c),_0x38d99c['refreshSelectedViews'](),_0x4520a9=!0x0);},0xa);this[_0x3862('0x22')]['set'](_0x425e0c,_0x204665),this[_0x3862('0x39')](_0x425e0c,_0x3862('0x69'),(_0x95c9ec,_0x3741a2,_0x575719,_0x425b91)=>{_0x425e0c['isInContent']&&(null==_0x575719?(this[_0x3862('0x49')](_0x425b91[_0x3862('0x5')]),_0x204665(!0x1)):(this[_0x3862('0x49')](_0x575719[_0x3862('0x5')]),_0x204665(!0x0)));}),null===_0x425e0c[_0x3862('0x53')]?_0x204665(!0x1):this[_0x3862('0x49')](_0x425e0c[_0x3862('0x5')]);}),this[_0x3862('0x39')](_0x49b96b,_0x3862('0x2e'),(_0x5a684e,_0x2c6902,_0xdb2713)=>{this[_0x3862('0x6d')](_0x2c6902,_0x3862('0x69')),this['_debouncedHandlers'][_0x3862('0x41')](_0x2c6902)['cancel'](),this[_0x3862('0x22')]['delete'](_0x2c6902);const _0x4ea4aa=_0xdb2713?_0xdb2713[_0x3862('0x5')]:_0x2c6902,_0x415f15=this[_0x3862('0x5c')][_0x3862('0x41')](_0x4ea4aa);null!==_0xdb2713&&this['_updateController'](_0x4ea4aa),null===_0xdb2713&&_0x415f15&&this[_0x3862('0x14')](_0x2c6902);}),this['listenTo'](_0x49b96b,_0x3862('0x68'),(_0x211ae8,_0x1012de)=>{this['_updateController'](_0x1012de);}),this[_0x3862('0x39')](_0x49428f,_0x3862('0x25'),(_0x92525e,_0x5c32f6,_0xbbe2fc)=>{const _0x43cb2a=Array[_0x3862('0x65')](_0xbbe2fc,_0x22a926=>_0x22a926[_0x3862('0x43')])[_0x3862('0x45')](_0x46f076=>this[_0x3862('0x10')]['has'](_0x46f076)),_0x49d47b=[];for(const _0x374448 of _0x43cb2a){const _0x16817d=this[_0x3862('0x10')]['get'](_0x374448)[_0x3862('0x51')][_0x3862('0x38')]();_0x49d47b[_0x3862('0x57')](..._0x16817d[_0x3862('0x16')]((_0x3dc517,_0x420bb9)=>[..._0x3dc517,..._0x420bb9[_0x3862('0x48')]()],[]));}_0x49b96b[_0x3862('0xc')]=_0x49d47b;}),this[_0x3862('0x39')](_0x5e5624,_0x3862('0x1a'),(_0x18aa38,{threadId:_0x1f6c9c,isFromAdapter:_0x85c46})=>{if(_0x85c46||!_0x49b96b[_0x3862('0x58')](_0x1f6c9c))return;const _0x1d2737=_0x49b96b['getSuggestion'](_0x1f6c9c);this[_0x3862('0x5c')][_0x3862('0x41')](_0x1d2737)['view'][_0x3862('0x47')]();},{'priority':_0x3862('0x20')});}[_0x3862('0x4')](_0x457f9b){const _0xa61239=_0x2667b4(_0x457f9b,_0x4b2ba4),_0x4ea7c1=this[_0x3862('0x5f')]['commands']['get'](_0x3862('0x66')),_0x1c6051=_0x2c72c5(_0x457f9b,_0x3862('0x3d'));_0xa61239[_0x3862('0x62')][_0x3862('0x3e')]({'tooltip':_0x1c6051,'label':_0x1c6051,'icon':_0x27dca3}),_0xa61239['buttonView']['bind']('isOn')['to'](_0x4ea7c1,_0x3862('0x1e')),_0xa61239[_0x3862('0x62')]['on']('execute',()=>{_0x4ea7c1[_0x3862('0x28')](),this[_0x3862('0x5f')][_0x3862('0x4e')]['view'][_0x3862('0x47')]();});const _0x387128=new _0x3935c1(),_0x587024=[{'type':_0x3862('0x5e'),'model':{'withText':!0x0,'label':_0x1c6051,'commandName':_0x3862('0x66')}},{'type':_0x3862('0x4c')},{'type':_0x3862('0x13'),'model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,_0x3862('0x18')),'commandName':'acceptAllSuggestions'}},{'type':_0x3862('0x13'),'model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,_0x3862('0x40')),'commandName':_0x3862('0x3')}},{'type':_0x3862('0x13'),'model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,_0x3862('0x2')),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3862('0x44')}}];for(const _0x367eb5 of _0x587024){const _0x7e42fc={'type':_0x367eb5[_0x3862('0x30')]};if(_0x367eb5[_0x3862('0x51')]){const _0x52aa34=new _0x11b74a(_0x367eb5['model']),_0xa3e331=this['editor']['commands'][_0x3862('0x41')](_0x52aa34['commandName']);_0x52aa34[_0x3862('0x26')]('isOn',_0x3862('0x1f'))['to'](_0xa3e331,_0x3862('0x1e'),_0x3862('0x1f')),_0x7e42fc[_0x3862('0x51')]=_0x52aa34;}_0x387128[_0x3862('0x12')](_0x7e42fc);}_0x2a2150(_0xa61239,_0x387128);const _0x433a1b=_0x587024['filter'](_0x904fcb=>null!=_0x904fcb['model'])[_0x3862('0x21')](_0x30a702=>this['editor'][_0x3862('0x6a')][_0x3862('0x41')](_0x30a702[_0x3862('0x51')][_0x3862('0x64')]));return _0xa61239[_0x3862('0x62')][_0x3862('0x8')][_0x3862('0x59')](_0x3862('0x1f')),_0xa61239['buttonView'][_0x3862('0xd')][_0x3862('0x59')]('isEnabled'),_0xa61239[_0x3862('0x62')][_0x3862('0x8')][_0x3862('0x26')]('isEnabled')['to'](_0x4ea7c1,_0x3862('0x1f')),_0xa61239[_0x3862('0x62')][_0x3862('0xd')][_0x3862('0x26')]('isEnabled')[_0x3862('0x6c')](_0x433a1b,_0x3862('0x1f'),(..._0x5862ba)=>_0x5862ba['some'](_0x227cf9=>_0x227cf9)),_0xa61239['on'](_0x3862('0x28'),_0x2ee122=>{this[_0x3862('0x5f')][_0x3862('0x28')](_0x2ee122[_0x3862('0x1d')][_0x3862('0x64')]),this[_0x3862('0x5f')][_0x3862('0x4e')]['view'][_0x3862('0x47')]();}),_0xa61239;}[_0x3862('0x33')](_0x5e599d){const _0x56df1f=this[_0x3862('0x5f')],_0x201ac0=_0x56df1f[_0x3862('0x5a')],_0x572695=_0x56df1f['plugins'][_0x3862('0x41')](_0x3862('0x19')),_0x597caf=_0x56df1f['plugins'][_0x3862('0x41')](_0x3862('0x5d')),_0x57d930=_0x5e599d[_0x3862('0x38')]()[_0x3862('0x45')](_0x1f989d=>_0x1f989d['isInContent']),_0x50a6a8=_0x56df1f['plugins'][_0x3862('0x41')](_0x2ec6c0)['me'],_0x1d6a2a=_0x56df1f[_0x3862('0x6a')][_0x3862('0x41')](_0x3862('0x34')),_0x4388ab=_0x56df1f[_0x3862('0x6a')][_0x3862('0x41')](_0x3862('0xf')),_0x19bc56=_0x201ac0[_0x3862('0x41')](_0x3862('0x66'))[_0x3862('0x63')],{CommentsListView:_0x1e5f5c,CommentThreadInputView:_0xb67ceb}=_0x56df1f['plugins'][_0x3862('0x41')](_0x3862('0x3a')),_0x43b36d=new _0x19bc56(_0x56df1f[_0x3862('0x31')],_0x5e599d,_0x50a6a8,{'disableComments':this[_0x3862('0x4f')],'editorConfig':_0x201ac0[_0x3862('0x41')](_0x3862('0x2d')),'maxCommentsWhenCollapsed':_0x201ac0['get'](_0x3862('0x9')),'maxThreadTotalWeight':_0x201ac0[_0x3862('0x41')](_0x3862('0x36')),'maxCommentCharsWhenCollapsed':_0x201ac0['get'](_0x3862('0xb')),'formatDateTime':_0x13cade(_0x201ac0[_0x3862('0x41')](_0x3862('0x31'))),'CommentView':_0x201ac0['get'](_0x3862('0x27'))[_0x3862('0x55')],'CommentsListView':_0x1e5f5c,'CommentThreadInputView':_0xb67ceb}),_0x402637=_0x597caf[_0x3862('0x35')](_0x5e599d[_0x3862('0x4a')],_0x43b36d),_0x536484=new _0x24047e(_0x5e599d,_0x43b36d,_0x1d6a2a,_0x4388ab,_0x402637);_0x43b36d[_0x3862('0x2f')]=_0x56df1f[_0x3862('0x60')]['get'](_0x3862('0x6f'))['_descriptionFactory'][_0x3862('0x1')](_0x57d930),this['_suggestionToController'][_0x3862('0x3e')](_0x5e599d,_0x536484),this[_0x3862('0x10')]['set'](_0x43b36d,_0x536484);const _0x5a637c=_0x572695[_0x3862('0x6')](this[_0x3862('0x5f')][_0x3862('0x31')],_0x43b36d);_0x5a637c['bind']('isDirty')['to'](_0x43b36d,_0x3862('0x3b')),_0x5a637c[_0x3862('0x26')]('length')['to'](_0x43b36d),_0x5a637c[_0x3862('0x26')](_0x3862('0x30'))['to'](_0x43b36d,'type',_0x25e573=>_0x3862('0x4d')+_0x25e573);const _0x3ad4c4=_0x572695['createAnnotation']({'view':_0x5a637c,'target':()=>{const _0x9c89e7=_0x57d930[0x0][_0x3862('0x0')]();if(!_0x9c89e7)return null;const _0x30cc7b=_0x9c89e7[_0x3862('0x37')]()[_0x3862('0x50')]();return _0x30cc7b&&!_0x56df1f[_0x3862('0x4e')][_0x3862('0xa')][_0x3862('0x70')](_0x30cc7b)?null:_0x267b4a(_0x56df1f['editing'],_0x9c89e7)||null;},'type':()=>_0x3862('0x4d')+_0x536484[_0x3862('0x61')]['type']});_0x572695[_0x3862('0x12')](_0x3ad4c4);const _0x274bca=_0x56df1f[_0x3862('0x60')][_0x3862('0x41')](_0x3862('0x5b'));let _0x53fce0;_0x43b36d['on'](_0x3862('0x46'),(_0x3f4b40,_0x27a04c,_0x19c1f6)=>{_0x19c1f6?_0x53fce0=_0x274bca['add'](_0x2c72c5(this[_0x3862('0x5f')][_0x3862('0x31')],_0x3862('0x15'))):(_0x274bca[_0x3862('0x1c')](_0x53fce0),_0x53fce0=null);}),_0x43b36d['acceptButton']['on'](_0x3862('0x28'),()=>{_0x56df1f['editing'][_0x3862('0x61')][_0x3862('0x47')]();}),_0x43b36d[_0x3862('0x6b')]['on']('execute',()=>{_0x56df1f[_0x3862('0x4e')][_0x3862('0x61')]['focus']();});}['_destroyController'](_0xf4f354){const _0x1ebc90=this['editor']['plugins'][_0x3862('0x41')](_0x3862('0x19')),_0x36e91c=this['_suggestionToController']['get'](_0xf4f354),_0x4a0575=_0x36e91c[_0x3862('0x61')],_0xf2135b=_0x1ebc90[_0x3862('0x52')](_0x4a0575);_0xf2135b&&_0x1ebc90['remove'](_0xf2135b),this['_suggestionToController'][_0x3862('0x24')](_0xf4f354),this[_0x3862('0x10')][_0x3862('0x24')](_0x4a0575),_0x36e91c[_0x3862('0x42')](),_0x4a0575[_0x3862('0x42')]();}[_0x3862('0x49')](_0x1141ed){if(!_0x1141ed['isInContent']||!this[_0x3862('0x5c')][_0x3862('0x1b')](_0x1141ed))return;const _0x1eadec=this['editor'][_0x3862('0x60')]['get'](_0x3862('0x6f')),_0x54fd8b=this[_0x3862('0x5c')][_0x3862('0x41')](_0x1141ed),_0x372868=_0x1141ed[_0x3862('0x38')]();_0x54fd8b[_0x3862('0x61')][_0x3862('0x2f')]=_0x1eadec[_0x3862('0xe')][_0x3862('0x1')](_0x372868);}['destroy'](){super[_0x3862('0x42')]();for(const _0x47f45c of this[_0x3862('0x5c')][_0x3862('0x17')]())this[_0x3862('0x14')](_0x47f45c);for(const _0x2b70df of this[_0x3862('0x22')][_0x3862('0x3c')]())_0x2b70df[_0x3862('0x7')]();this[_0x3862('0x22')][_0x3862('0x29')]();}}
23
+ const _0x585a=['change:activeAnnotations','add','discardAllSuggestions','length','getContainedElement','componentFactory','comments','acceptSelectedSuggestions','commands','getAllAdjacentSuggestions','_descriptionFactory','Discard\x20all\x20suggestions','config','type','remove','commentThread','has','suggestionChanged','CommentsRepository','_viewToController','toMany','trackChanges.SuggestionThreadView','delete','unbind','push','SuggestionThreadView','_updateController','_disableComments','head','_handleControllerBuffer','isOn','buttonView','clear','getRange','addSourceCollector','Accept\x20all\x20selected\x20suggestions','Discard\x20all\x20selected\x20suggestions','bind','isDirty','_createUIButton','stopListening','filter','editor','descriptionParts','comments.maxCommentsWhenCollapsed','change:previous','execute','get','source','TrackChangesEditing','trackChanges.disableComments','suggestionLoaded','actionView','_handleSuggestionControllerDelayed','listenTo','isMultiRange','TrackChangesUI','some','requires','_destroyController','getDescriptions','acceptButton','locale','mapper','previous','EditorAnnotations','size','focus','PENDING_ACTION_SUGGESTION','button','suggestion-','view','activeMarkers','define','refreshSelectedViews','trackChanges','_suggestionToController','commandName','comments.maxThreadTotalWeight','PendingActions','model','keys','getFirstRange','switchbutton','getFirstMarker','discardSuggestion','acceptSuggestion','lowest','arrowView','pluginName','value','CommentsUI','change:isDirty','editing','isInContent','createAnnotation','plugins','toViewElement','createAnnotationView','isEnabled','set','map','Annotations','destroy','_initializeController'];(function(_0x36afd2,_0x585a9b){const _0x507aa8=function(_0x5a2d72){while(--_0x5a2d72){_0x36afd2['push'](_0x36afd2['shift']());}};_0x507aa8(++_0x585a9b);}(_0x585a,0x149));const _0x507a=function(_0x36afd2,_0x585a9b){_0x36afd2=_0x36afd2-0x0;let _0x507aa8=_0x585a[_0x36afd2];return _0x507aa8;};import{Plugin as _0x31946a}from'ckeditor5/src/core';import{Collection as _0x598a1f}from'ckeditor5/src/utils';import{Model as _0x46dadc,SplitButtonView as _0x43af35,createDropdown as _0xd5e7d2,addListToDropdown as _0x146751}from'ckeditor5/src/ui';import{Users as _0x5b158c,getDateTimeFormatter as _0x5204be,getMarkerDomElement as _0x3ece70}from'ckeditor5-collaboration/src/collaboration-core';import _0x1ac273 from'./trackchangesediting';import _0x2f365b from'./ui/suggestioncontroller';import _0x4e9069 from'./ui/view/suggestionthreadview';import{getTranslation as _0x217c13}from'./utils/common-translations';import _0x5efbef from'../theme/icons/track-changes.svg';export default class m extends _0x31946a{static get[_0x507a('0x2c')](){return[_0x1ac273,_0x5b158c,_0x507a('0x4'),'Annotations','EditorAnnotations'];}static get[_0x507a('0x4b')](){return _0x507a('0x2a');}constructor(_0xb520c){super(_0xb520c),this[_0x507a('0x3e')]=new Map(),this[_0x507a('0x5')]=new Map(),this[_0x507a('0xf')]=new Map();const _0x2582aa=this[_0x507a('0x1c')][_0x507a('0x67')];_0x2582aa['define'](_0x507a('0x7'),_0x4e9069),_0x2582aa[_0x507a('0x3b')]('trackChanges.disableComments',!0x1),this[_0x507a('0xd')]=_0x2582aa[_0x507a('0x21')](_0x507a('0x24'));}[_0x507a('0x27')](_0xef9400,_0x190940){0x0===this[_0x507a('0xf')][_0x507a('0x34')]&&setTimeout(()=>{for(const [_0x5948ee,_0x269527]of this['_handleControllerBuffer']){const _0xa646b1=this[_0x507a('0x3e')][_0x507a('0x2')](_0x5948ee);_0xa646b1||_0x269527?_0xa646b1&&_0x269527&&this[_0x507a('0x2d')](_0x5948ee):this[_0x507a('0x5a')](_0x5948ee);}this[_0x507a('0x1c')][_0x507a('0x52')][_0x507a('0x21')]('EditorAnnotations')[_0x507a('0x3c')](),this[_0x507a('0xf')][_0x507a('0x12')]();},0xa),this[_0x507a('0xf')]['set'](_0xef9400,_0x190940);}['init'](){const _0xb9c2f8=this[_0x507a('0x1c')],_0x592b9d=_0xb9c2f8[_0x507a('0x52')][_0x507a('0x21')](_0x1ac273),_0x378b6d=_0xb9c2f8[_0x507a('0x52')]['get']('Annotations'),_0x3d994b=_0xb9c2f8[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x33')),_0xd1a15f=_0xb9c2f8[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x4'));_0xb9c2f8['ui'][_0x507a('0x60')]['add']('trackChanges',_0x4ee3da=>this['_createUIButton'](_0x4ee3da)),_0x3d994b[_0x507a('0x14')](()=>{const _0x45c4d3=[];for(const [_0x43f785,_0x1877bc]of Array['from'](this[_0x507a('0x3e')])){const _0x53a6d1=_0x43f785[_0x507a('0x64')](),_0x4b0477=[];for(const _0x46f46b of _0x53a6d1){if(!_0x46f46b[_0x507a('0x50')])continue;if(_0x46f46b[_0x507a('0x29')]){_0x4b0477[_0x507a('0xa')](..._0x46f46b['getRanges']());continue;}const _0x445f4a=_0x46f46b[_0x507a('0x44')]();if(_0x4b0477[_0x507a('0x5e')]>0x0){const _0x3dbf96=_0x4b0477[0x0]['getJoined'](_0x445f4a);if(_0x3dbf96){_0x4b0477[0x0]=_0x3dbf96;continue;}}_0x4b0477[_0x507a('0xa')](_0x445f4a);}_0x45c4d3[_0x507a('0xa')]([_0x1877bc['view'],_0x4b0477]);}return _0x45c4d3;}),this['listenTo'](_0x592b9d,_0x507a('0x25'),(_0x555512,_0x8d97ef)=>{this['listenTo'](_0x8d97ef,_0x507a('0x1f'),(_0x3bce4e,_0x31a537,_0x1c9a07,_0x3be43b)=>{_0x8d97ef[_0x507a('0x50')]&&(null==_0x1c9a07?(this['_updateController'](_0x3be43b[_0x507a('0xe')]),this['_handleSuggestionControllerDelayed'](_0x8d97ef,!0x1)):(this[_0x507a('0xc')](_0x1c9a07[_0x507a('0xe')]),this['_handleSuggestionControllerDelayed'](_0x8d97ef,!0x0)));}),null===_0x8d97ef[_0x507a('0x32')]?this[_0x507a('0x27')](_0x8d97ef,!0x1):this[_0x507a('0xc')](_0x8d97ef[_0x507a('0xe')]);}),this[_0x507a('0x28')](_0x592b9d,'suggestionUnloaded',(_0x48d10e,_0x12206a,_0x1973b1)=>{this[_0x507a('0x1a')](_0x12206a,_0x507a('0x1f')),this['_handleControllerBuffer'][_0x507a('0x8')](_0x12206a);const _0x12855f=_0x1973b1?_0x1973b1[_0x507a('0xe')]:_0x12206a,_0x34ff69=this['_suggestionToController'][_0x507a('0x21')](_0x12855f);null!==_0x1973b1&&this['_updateController'](_0x12855f),null===_0x1973b1&&_0x34ff69&&this[_0x507a('0x2d')](_0x12206a);}),this[_0x507a('0x28')](_0x592b9d,_0x507a('0x3'),(_0x364a09,_0x2f83ca)=>{this[_0x507a('0xc')](_0x2f83ca);}),this['listenTo'](_0x378b6d,_0x507a('0x5b'),(_0x1b64ec,_0x246776,_0x1c6c07)=>{const _0x46be99=Array['from'](_0x1c6c07,_0x1a5417=>_0x1a5417['innerView'])[_0x507a('0x1b')](_0x2993de=>this[_0x507a('0x5')]['has'](_0x2993de)),_0x32fa72=[];for(const _0x355e3b of _0x46be99){const _0x41ce87=this['_viewToController'][_0x507a('0x21')](_0x355e3b)[_0x507a('0x42')][_0x507a('0x64')]();_0x32fa72[_0x507a('0xa')](..._0x41ce87['reduce']((_0x27e480,_0x38d782)=>[..._0x27e480,..._0x38d782['getMarkerNames']()],[]));}_0x592b9d[_0x507a('0x3a')]=_0x32fa72;}),this['listenTo'](_0xd1a15f,'addComment',(_0x2757c2,{threadId:_0x3d0927,isFromAdapter:_0x340d25})=>{if(_0x340d25||!_0x592b9d['hasSuggestion'](_0x3d0927))return;const _0x3b6fc8=_0x592b9d['getSuggestion'](_0x3d0927);this[_0x507a('0x3e')][_0x507a('0x21')](_0x3b6fc8)[_0x507a('0x39')][_0x507a('0x35')]();},{'priority':_0x507a('0x49')});}[_0x507a('0x19')](_0x4abeeb){const _0x46dc58=_0xd5e7d2(_0x4abeeb,_0x43af35),_0x2a0c7f=this['editor'][_0x507a('0x63')][_0x507a('0x21')](_0x507a('0x3d')),_0xa4ce24=_0x217c13(_0x4abeeb,'Track\x20changes');_0x46dc58[_0x507a('0x11')][_0x507a('0x56')]({'tooltip':_0xa4ce24,'label':_0xa4ce24,'icon':_0x5efbef}),_0x46dc58[_0x507a('0x11')][_0x507a('0x17')](_0x507a('0x10'))['to'](_0x2a0c7f,_0x507a('0x4c')),_0x46dc58['buttonView']['on'](_0x507a('0x20'),()=>{_0x2a0c7f['execute'](),this[_0x507a('0x1c')][_0x507a('0x4f')][_0x507a('0x39')][_0x507a('0x35')]();});const _0xb4152=new _0x598a1f(),_0x5b0d18=[{'type':_0x507a('0x45'),'model':{'withText':!0x0,'label':_0xa4ce24,'commandName':_0x507a('0x3d')}},{'type':'separator'},{'type':_0x507a('0x37'),'model':{'withText':!0x0,'label':_0x217c13(_0x4abeeb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x507a('0x37'),'model':{'withText':!0x0,'label':_0x217c13(_0x4abeeb,_0x507a('0x15')),'commandName':_0x507a('0x62')}},{'type':'button','model':{'withText':!0x0,'label':_0x217c13(_0x4abeeb,_0x507a('0x66')),'commandName':_0x507a('0x5d')}},{'type':_0x507a('0x37'),'model':{'withText':!0x0,'label':_0x217c13(_0x4abeeb,_0x507a('0x16')),'commandName':'discardSelectedSuggestions'}}];for(const _0x290597 of _0x5b0d18){const _0xa3ca51={'type':_0x290597[_0x507a('0x68')]};if(_0x290597['model']){const _0x1e8d06=new _0x46dadc(_0x290597[_0x507a('0x42')]),_0x1b883a=this['editor'][_0x507a('0x63')]['get'](_0x1e8d06['commandName']);_0x1e8d06[_0x507a('0x17')](_0x507a('0x10'),'isEnabled')['to'](_0x1b883a,'value',_0x507a('0x55')),_0xa3ca51[_0x507a('0x42')]=_0x1e8d06;}_0xb4152[_0x507a('0x5c')](_0xa3ca51);}_0x146751(_0x46dc58,_0xb4152);const _0x25260c=_0x5b0d18[_0x507a('0x1b')](_0xab18b8=>null!=_0xab18b8[_0x507a('0x42')])[_0x507a('0x57')](_0x2f803e=>this['editor'][_0x507a('0x63')][_0x507a('0x21')](_0x2f803e['model'][_0x507a('0x3f')]));return _0x46dc58[_0x507a('0x11')][_0x507a('0x26')][_0x507a('0x9')](_0x507a('0x55')),_0x46dc58[_0x507a('0x11')][_0x507a('0x4a')][_0x507a('0x9')](_0x507a('0x55')),_0x46dc58[_0x507a('0x11')][_0x507a('0x26')][_0x507a('0x17')](_0x507a('0x55'))['to'](_0x2a0c7f,_0x507a('0x55')),_0x46dc58[_0x507a('0x11')]['arrowView'][_0x507a('0x17')](_0x507a('0x55'))[_0x507a('0x6')](_0x25260c,'isEnabled',(..._0x518462)=>_0x518462[_0x507a('0x2b')](_0x3a5fed=>_0x3a5fed)),_0x46dc58['on'](_0x507a('0x20'),_0xb73df9=>{this[_0x507a('0x1c')][_0x507a('0x20')](_0xb73df9[_0x507a('0x22')][_0x507a('0x3f')]),this['editor'][_0x507a('0x4f')][_0x507a('0x39')]['focus']();}),_0x46dc58;}[_0x507a('0x5a')](_0x3b9e5e){const _0x4552cc=this[_0x507a('0x1c')],_0x5dcf69=_0x4552cc[_0x507a('0x67')],_0x4041f1=_0x4552cc[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x58')),_0x109bf0=_0x4552cc[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x4')),_0x23d2ce=_0x4552cc[_0x507a('0x52')]['get'](_0x507a('0x33')),_0x48e02f=_0x3b9e5e['getAllAdjacentSuggestions']()[_0x507a('0x1b')](_0x23318a=>_0x23318a[_0x507a('0x50')]),_0x341052=_0x4552cc[_0x507a('0x52')][_0x507a('0x21')](_0x5b158c)['me'],_0x25a0e6=_0x4552cc[_0x507a('0x63')]['get'](_0x507a('0x48')),_0x5882fe=_0x4552cc[_0x507a('0x63')][_0x507a('0x21')](_0x507a('0x47')),_0x4a3e9c=_0x5dcf69[_0x507a('0x21')](_0x507a('0x3d'))[_0x507a('0xb')],{CommentsListView:_0x31698d,CommentThreadInputView:_0x1b90f6}=_0x4552cc['plugins'][_0x507a('0x21')](_0x507a('0x4d')),_0x5b65da=new _0x4a3e9c(_0x4552cc['locale'],_0x3b9e5e,_0x341052,{'disableComments':this[_0x507a('0xd')],'editorConfig':_0x5dcf69['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5dcf69[_0x507a('0x21')](_0x507a('0x1e')),'maxThreadTotalWeight':_0x5dcf69['get'](_0x507a('0x40')),'maxCommentCharsWhenCollapsed':_0x5dcf69[_0x507a('0x21')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5204be(_0x5dcf69[_0x507a('0x21')](_0x507a('0x30'))),'CommentView':_0x5dcf69[_0x507a('0x21')](_0x507a('0x61'))['CommentView'],'CommentsListView':_0x31698d,'CommentThreadInputView':_0x1b90f6}),_0x2c16ec=_0x109bf0['createCommentThreadController'](_0x3b9e5e[_0x507a('0x1')],_0x5b65da),_0x2c8a29=new _0x2f365b(_0x3b9e5e,_0x5b65da,_0x25a0e6,_0x5882fe,_0x2c16ec);_0x5b65da[_0x507a('0x1d')]=_0x4552cc[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x23'))[_0x507a('0x65')]['getDescriptions'](_0x48e02f),this[_0x507a('0x3e')][_0x507a('0x56')](_0x3b9e5e,_0x2c8a29),this['_viewToController']['set'](_0x5b65da,_0x2c8a29);const _0x50f187=_0x4041f1[_0x507a('0x54')](this['editor'][_0x507a('0x30')],_0x5b65da);_0x50f187['bind'](_0x507a('0x18'))['to'](_0x5b65da,'isDirty'),_0x50f187[_0x507a('0x17')]('length')['to'](_0x5b65da),_0x50f187[_0x507a('0x17')](_0x507a('0x68'))['to'](_0x5b65da,'type',_0x1f06ad=>'suggestion-'+_0x1f06ad);const _0x110a2=_0x4041f1[_0x507a('0x51')]({'view':_0x50f187,'target':()=>{const _0x24cb8a=_0x48e02f[0x0][_0x507a('0x46')]();if(!_0x24cb8a)return null;const _0x40c0be=_0x24cb8a[_0x507a('0x13')]()[_0x507a('0x5f')]();return _0x40c0be&&!_0x4552cc[_0x507a('0x4f')][_0x507a('0x31')][_0x507a('0x53')](_0x40c0be)?null:_0x3ece70(_0x4552cc[_0x507a('0x4f')],_0x24cb8a)||null;},'type':()=>_0x507a('0x38')+_0x2c8a29[_0x507a('0x39')]['type']});_0x4041f1[_0x507a('0x5c')](_0x110a2),_0x23d2ce['registerAnnotation'](_0x110a2);const _0x180257=_0x4552cc[_0x507a('0x52')][_0x507a('0x21')](_0x507a('0x41'));let _0x294712;_0x5b65da['on'](_0x507a('0x4e'),(_0x54f047,_0x15dccd,_0x2706fa)=>{_0x2706fa?_0x294712=_0x180257[_0x507a('0x5c')](_0x217c13(this['editor'][_0x507a('0x30')],_0x507a('0x36'))):(_0x180257[_0x507a('0x0')](_0x294712),_0x294712=null);}),_0x5b65da[_0x507a('0x2f')]['on'](_0x507a('0x20'),()=>{_0x4552cc[_0x507a('0x4f')][_0x507a('0x39')][_0x507a('0x35')]();}),_0x5b65da['discardButton']['on'](_0x507a('0x20'),()=>{_0x4552cc[_0x507a('0x4f')][_0x507a('0x39')]['focus']();});}[_0x507a('0x2d')](_0x3c319f){const _0x598c75=this['editor'][_0x507a('0x52')]['get'](_0x507a('0x58')),_0x24a72a=this[_0x507a('0x3e')][_0x507a('0x21')](_0x3c319f),_0x1d4fd6=_0x24a72a[_0x507a('0x39')],_0x22dce0=_0x598c75['getByInnerView'](_0x1d4fd6);_0x22dce0&&_0x598c75['remove'](_0x22dce0),this[_0x507a('0x3e')][_0x507a('0x8')](_0x3c319f),this['_viewToController'][_0x507a('0x8')](_0x1d4fd6),_0x24a72a['destroy'](),_0x1d4fd6['destroy']();}['_updateController'](_0x2fec44){if(!_0x2fec44[_0x507a('0x50')]||!this[_0x507a('0x3e')][_0x507a('0x2')](_0x2fec44))return;const _0x3c6c6b=this[_0x507a('0x1c')][_0x507a('0x52')][_0x507a('0x21')]('TrackChangesEditing'),_0x3cf7c7=this[_0x507a('0x3e')][_0x507a('0x21')](_0x2fec44),_0x5d2203=_0x2fec44['getAllAdjacentSuggestions']();_0x3cf7c7['view'][_0x507a('0x1d')]=_0x3c6c6b[_0x507a('0x65')][_0x507a('0x2e')](_0x5d2203);}[_0x507a('0x59')](){super[_0x507a('0x59')]();for(const _0x4d764b of this['_suggestionToController'][_0x507a('0x43')]())this['_destroyController'](_0x4d764b);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x50f2=['acceptSuggestion','stopListening','bind','_acceptCommand','unbind','discardSuggestion','listenTo','commentThreadController','destroy','model','_discardCommand','view','isEnabled'];(function(_0xf2605c,_0x50f27c){var _0x1ff7f2=function(_0x12cea5){while(--_0x12cea5){_0xf2605c['push'](_0xf2605c['shift']());}};_0x1ff7f2(++_0x50f27c);}(_0x50f2,0xa3));var _0x1ff7=function(_0xf2605c,_0x50f27c){_0xf2605c=_0xf2605c-0x0;var _0x1ff7f2=_0x50f2[_0xf2605c];return _0x1ff7f2;};import{ObservableMixin as _0x3efdb8,mix as _0x4f753a}from'ckeditor5/src/utils';export default class _t{constructor(_0x4062ad,_0x29ff80,_0x2e78a3,_0x48610f,_0x128e53){this[_0x1ff7('0x2')]=_0x4062ad,this[_0x1ff7('0x4')]=_0x29ff80,this[_0x1ff7('0x0')]=_0x128e53,this[_0x1ff7('0x9')]=_0x2e78a3,this[_0x1ff7('0x3')]=_0x48610f,this[_0x1ff7('0x4')][_0x1ff7('0x8')](_0x1ff7('0x5'))['to'](this['_acceptCommand']),this[_0x1ff7('0xc')](_0x29ff80,_0x1ff7('0x6'),()=>this[_0x1ff7('0x6')]()),this[_0x1ff7('0xc')](_0x29ff80,_0x1ff7('0xb'),()=>this[_0x1ff7('0xb')]());}[_0x1ff7('0x6')](){this[_0x1ff7('0x9')]['execute'](this[_0x1ff7('0x2')]['id']);}[_0x1ff7('0xb')](){this['_discardCommand']['execute'](this[_0x1ff7('0x2')]['id']);}['destroy'](){this[_0x1ff7('0x4')][_0x1ff7('0xa')](_0x1ff7('0x5')),this[_0x1ff7('0x7')](),this[_0x1ff7('0x0')][_0x1ff7('0x1')]();}}_0x4f753a(_t,_0x3efdb8);
23
+ var _0x407a=['stopListening','unbind','view','isEnabled','bind','commentThreadController','discardSuggestion','_discardCommand','model','_acceptCommand','execute','acceptSuggestion'];(function(_0x254433,_0x407a99){var _0x5877e6=function(_0x851127){while(--_0x851127){_0x254433['push'](_0x254433['shift']());}};_0x5877e6(++_0x407a99);}(_0x407a,0x100));var _0x5877=function(_0x254433,_0x407a99){_0x254433=_0x254433-0x0;var _0x5877e6=_0x407a[_0x254433];return _0x5877e6;};import{ObservableMixin as _0x2e3c0e,mix as _0x14cd13}from'ckeditor5/src/utils';export default class Wt{constructor(_0xd3c6ce,_0x212f8a,_0x53ae96,_0x14fc4b,_0x1634d9){this[_0x5877('0x4')]=_0xd3c6ce,this[_0x5877('0xa')]=_0x212f8a,this[_0x5877('0x1')]=_0x1634d9,this[_0x5877('0x5')]=_0x53ae96,this[_0x5877('0x3')]=_0x14fc4b,this[_0x5877('0xa')][_0x5877('0x0')](_0x5877('0xb'))['to'](this['_acceptCommand']),this['listenTo'](_0x212f8a,_0x5877('0x7'),()=>this[_0x5877('0x7')]()),this['listenTo'](_0x212f8a,'discardSuggestion',()=>this[_0x5877('0x2')]());}[_0x5877('0x7')](){this[_0x5877('0x5')][_0x5877('0x6')](this[_0x5877('0x4')]['id']);}[_0x5877('0x2')](){this['_discardCommand'][_0x5877('0x6')](this[_0x5877('0x4')]['id']);}['destroy'](){this[_0x5877('0xa')][_0x5877('0x9')](_0x5877('0xb')),this[_0x5877('0x8')](),this['commentThreadController']['destroy']();}}_0x14cd13(Wt,_0x2e3c0e);