@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231216.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 (135) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/build/track-changes.js +1 -1
  3. package/package.json +4 -3
  4. package/src/augmentation.d.ts +2 -2
  5. package/src/commands/acceptsuggestioncommand.d.ts +2 -2
  6. package/src/commands/acceptsuggestioncommand.js +1 -1
  7. package/src/commands/discardsuggestioncommand.d.ts +2 -2
  8. package/src/commands/discardsuggestioncommand.js +1 -1
  9. package/src/commands/executeonallsuggestionscommand.d.ts +2 -2
  10. package/src/commands/executeonallsuggestionscommand.js +1 -1
  11. package/src/commands/executeonselectedsuggestionscommand.d.ts +2 -2
  12. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  13. package/src/commands/trackchangescommand.d.ts +1 -1
  14. package/src/commands/trackchangescommand.js +1 -1
  15. package/src/index.d.ts +12 -12
  16. package/src/index.js +1 -1
  17. package/src/integrations/aiassistant.d.ts +1 -1
  18. package/src/integrations/aiassistant.js +1 -1
  19. package/src/integrations/alignment.d.ts +1 -1
  20. package/src/integrations/alignment.js +1 -1
  21. package/src/integrations/basicstyles.d.ts +1 -1
  22. package/src/integrations/basicstyles.js +1 -1
  23. package/src/integrations/blockquote.d.ts +1 -1
  24. package/src/integrations/blockquote.js +1 -1
  25. package/src/integrations/ckbox.d.ts +1 -1
  26. package/src/integrations/ckbox.js +1 -1
  27. package/src/integrations/codeblock.d.ts +1 -1
  28. package/src/integrations/codeblock.js +1 -1
  29. package/src/integrations/comments.d.ts +1 -1
  30. package/src/integrations/comments.js +1 -1
  31. package/src/integrations/deletecommand.d.ts +2 -2
  32. package/src/integrations/deletecommand.js +1 -1
  33. package/src/integrations/documentlist.d.ts +1 -1
  34. package/src/integrations/documentlist.js +1 -1
  35. package/src/integrations/documentlistproperties.d.ts +3 -3
  36. package/src/integrations/documentlistproperties.js +1 -1
  37. package/src/integrations/entercommand.d.ts +2 -2
  38. package/src/integrations/entercommand.js +1 -1
  39. package/src/integrations/findandreplace.d.ts +1 -1
  40. package/src/integrations/findandreplace.js +1 -1
  41. package/src/integrations/font.d.ts +1 -1
  42. package/src/integrations/font.js +1 -1
  43. package/src/integrations/formatpainter.d.ts +1 -1
  44. package/src/integrations/formatpainter.js +1 -1
  45. package/src/integrations/heading.d.ts +1 -1
  46. package/src/integrations/heading.js +1 -1
  47. package/src/integrations/highlight.d.ts +1 -1
  48. package/src/integrations/highlight.js +1 -1
  49. package/src/integrations/horizontalline.d.ts +1 -1
  50. package/src/integrations/horizontalline.js +1 -1
  51. package/src/integrations/htmlembed.d.ts +1 -1
  52. package/src/integrations/htmlembed.js +1 -1
  53. package/src/integrations/image.d.ts +1 -1
  54. package/src/integrations/image.js +1 -1
  55. package/src/integrations/imagereplace.d.ts +1 -1
  56. package/src/integrations/imagereplace.js +1 -1
  57. package/src/integrations/imagestyle.d.ts +1 -1
  58. package/src/integrations/imagestyle.js +1 -1
  59. package/src/integrations/importword.d.ts +1 -1
  60. package/src/integrations/importword.js +1 -1
  61. package/src/integrations/indent.d.ts +1 -1
  62. package/src/integrations/indent.js +1 -1
  63. package/src/integrations/inputcommand.d.ts +2 -2
  64. package/src/integrations/inputcommand.js +1 -1
  65. package/src/integrations/link.d.ts +1 -1
  66. package/src/integrations/link.js +1 -1
  67. package/src/integrations/list.d.ts +1 -1
  68. package/src/integrations/list.js +1 -1
  69. package/src/integrations/listproperties.d.ts +3 -3
  70. package/src/integrations/listproperties.js +1 -1
  71. package/src/integrations/mediaembed.d.ts +1 -1
  72. package/src/integrations/mediaembed.js +1 -1
  73. package/src/integrations/mention.d.ts +1 -1
  74. package/src/integrations/mention.js +1 -1
  75. package/src/integrations/pagebreak.d.ts +1 -1
  76. package/src/integrations/pagebreak.js +1 -1
  77. package/src/integrations/paragraph.d.ts +1 -1
  78. package/src/integrations/paragraph.js +1 -1
  79. package/src/integrations/removeformat.d.ts +1 -1
  80. package/src/integrations/removeformat.js +1 -1
  81. package/src/integrations/restrictededitingmode.d.ts +1 -1
  82. package/src/integrations/restrictededitingmode.js +1 -1
  83. package/src/integrations/shiftentercommand.d.ts +2 -2
  84. package/src/integrations/shiftentercommand.js +1 -1
  85. package/src/integrations/standardeditingmode.d.ts +1 -1
  86. package/src/integrations/standardeditingmode.js +1 -1
  87. package/src/integrations/style.d.ts +1 -1
  88. package/src/integrations/style.js +1 -1
  89. package/src/integrations/table.d.ts +1 -1
  90. package/src/integrations/table.js +1 -1
  91. package/src/integrations/tablecaption.d.ts +2 -2
  92. package/src/integrations/tablecaption.js +1 -1
  93. package/src/integrations/tableclipboard.d.ts +2 -2
  94. package/src/integrations/tableclipboard.js +1 -1
  95. package/src/integrations/tablecolumnresize.d.ts +4 -4
  96. package/src/integrations/tablecolumnresize.js +1 -1
  97. package/src/integrations/tableheadings.d.ts +2 -2
  98. package/src/integrations/tableheadings.js +1 -1
  99. package/src/integrations/tablemergesplit.d.ts +2 -2
  100. package/src/integrations/tablemergesplit.js +1 -1
  101. package/src/integrations/tableofcontents.d.ts +1 -1
  102. package/src/integrations/tableofcontents.js +1 -1
  103. package/src/integrations/tableproperties.d.ts +4 -4
  104. package/src/integrations/tableproperties.js +1 -1
  105. package/src/integrations/template.d.ts +1 -1
  106. package/src/integrations/template.js +1 -1
  107. package/src/integrations/title.d.ts +1 -1
  108. package/src/integrations/title.js +1 -1
  109. package/src/integrations/undo.d.ts +1 -1
  110. package/src/integrations/undo.js +1 -1
  111. package/src/integrations/utils.d.ts +3 -3
  112. package/src/integrations/utils.js +1 -1
  113. package/src/suggestion.d.ts +5 -5
  114. package/src/suggestion.js +1 -1
  115. package/src/suggestiondescriptionfactory.d.ts +3 -3
  116. package/src/suggestiondescriptionfactory.js +1 -1
  117. package/src/trackchanges.d.ts +5 -5
  118. package/src/trackchanges.js +1 -1
  119. package/src/trackchangesconfig.d.ts +1 -1
  120. package/src/trackchangesdata.d.ts +2 -2
  121. package/src/trackchangesdata.js +1 -1
  122. package/src/trackchangesediting.d.ts +53 -53
  123. package/src/trackchangesediting.js +1 -1
  124. package/src/trackchangesui.d.ts +3 -3
  125. package/src/trackchangesui.js +1 -1
  126. package/src/ui/suggestioncontroller.d.ts +5 -5
  127. package/src/ui/suggestioncontroller.js +1 -1
  128. package/src/ui/view/basesuggestionthreadview.d.ts +6 -6
  129. package/src/ui/view/basesuggestionthreadview.js +1 -1
  130. package/src/ui/view/suggestionthreadview.d.ts +5 -5
  131. package/src/ui/view/suggestionthreadview.js +1 -1
  132. package/src/utils/common-translations.d.ts +1 -1
  133. package/src/utils/common-translations.js +1 -1
  134. package/src/utils/utils.d.ts +4 -4
  135. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2c5b=['markAttributeChange','dataDowncast','_cutOutSuggestionMarker','model','every','forceDefaultExecution','addMarker:suggestion:attribute','size','addAttribute','isAfter','acceptSuggestion','has','_registerInlineAttribute','_defaultCallbacks','LEAVE','getWalker','getShiftedBy','accept','includes','_isDataLoaded','toJSON','error-saving-suggestion-data-suggestion-discarded','addSuggestion','_suggestionFactory','isRemovable','get','elementEnd','createRangeIn','changeAttribute','toUpperCase','markDeletion','addHighlight','_setSuggestionRange','change:_saved','_handleNewSuggestionMarker','nodeAfter','containsRangeInObject','activeMarkers','_getAuthorFromId','plugins','version','_registerDefaultCallbacks','_initAriaMarkerChangeAnnouncements','ck-suggestion-marker--active','elementStart','getFirstRange','addMarker:suggestion','commentThread','trackChanges.mergeNestedSuggestions','getMultiRangeId','fire','isLimit','isBlock','deletion:accept','attribute','formatInline:discard','substr','author','acceptSelectedSuggestions','formatBlock:join','selection','getOperations','setAttribute','newValue','isSelectable','bindElementToMarker','oldName','ck-suggestion-marker-formatInline','formatInline','markerNameToElements','updateMarker','originalSuggestionId','insert','document','default','from','mapper','addClass','markInlineFormat','removeMarker:suggestion:attribute','push','trackChangesCommand','_createSuggestion','Users','updateSuggestion','skipNestingCheck','locale','name','getAttribute','targetPosition','_getExternalAuthor','markMultiRangeDeletion','external:','FORMATTING','isOwn','_joinSuggestions','stop','_checkSuggestionCorrectness','remove','getContainedElement','createdAt','track-changes-suggestion-not-found','attribute:','range','_model','addCommentThread','map','move','listenTo','createRange','_addSuggestionMarker','discardSuggestion','conversion','_setSuggestionData','containsRange','previous','getChangedMarkers','markInsertion','keys','requires','getSuggestion','isNextTo','enqueueChange','_joinWithAdjacentSuggestions','howMany','_enabledCommands','insertion:','update:suggestion','hasCommentThread','notReady','some','find','CommentsRepository','acceptAllSuggestions','rootName','deletion:chain','getItems','upcast','_getSuggestionData','markerToHighlight','isMultiRange','data','_suggestions','formatBlock:discard','markerName','formatBlock:','formatBlock:accept','unshift','deleteContent','_trackFormatChanges','_enableDefaultAttributesIntegration','formatBlock','add','trackChanges','formatInline:chain','creator','unbind','_processAttributeChanges','attribute:join','_rangeIsInLocalUserInsertion','@external','isObject','isUndo','fromRange','reconvertMarker','formatInline:join','filter','isInContent','detach','setSelection','track-changes-adapter-already-set','dataReady','values','buildSuggestion','track-changes-command-not-found','_adapter','insertion:chain','discardSelectedSuggestions','batch','_breakSuggestionMarker','$marker','substring','isAtEnd','position','attributeKey','containerElement','newRange','join','addMarker','clone','_saved','isBefore','getDifference','track-changes-suggestion-data-mismatch','trackChanges.trackFormatChanges','suggestionChanged','change','registerPostFixer','isCollapsed','$graveyard','rejected','_isBlockAttribute','markBlockFormat','head','getMarkers','suggestion:attribute:','_updateSuggestionData','deletion','toViewElement','insertContent','assign','commands','formatGroupId','high','addRange','removeMarker','_refreshSuggestionsChain','deletion:','isLocal','$elementName','startsWith','editor','getSuggestionCallback','_recordAttributeChanges','length','subType','insertion','item','isInsideObject','parent','ck-suggestion-marker','_inlineAttributeKeys','_isForcedDefaultExecutionBlock','containsPosition','always','differ','comments','suggestion','_reduceSuggestionAttributeRange','formatBlock:chain','oldRange','PENDING_ACTION_SUGGESTION','removeComment','ENTER','removeClass','isExternal','for','normal','change:data','split','root','enableReadOnlyMode','$textProxy','attribute:discard','sort','createPositionAt','ready','isArray','pop','key','set','createElement','delete','_getMarkerAnnouncementText','hasSuggestion','discard','marker-count','type','execute','end','discardAllSuggestions','oldValue','showSuggestionHighlights','history','_mergeNestedSuggestions','suggestionLoaded','_commentsRepository','then','markMultiRangeBlockFormat','markerReady','unbindElementFromMarkerName','_findSuggestions','dataToMarker','consumable','applyOperation','value','removeAttribute','chain','removeMarkers','getRanges','attributes','addSuggestionData','element','_blockAttributeKeys','config','highest','_recordAttributeSuggestionsFromVersion','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','addMarkerName','start','_splitMarkerName','adapter','formatInline:','_registerBlockAttribute','getFirstMarker','newName','options','createPositionAfter','forEach','widget','suggestion:','getLastMatchingPosition','writer','getSuggestions','attributeOldValue','addMarker:suggestion:formatBlock','isTouching','_suggestionState','resolve','containsItem','open','nodeBefore','return','hasComments','removeMarker:suggestion:formatBlock','createSelection','data-suggestion','getRange','never','_editor','removed','rethrowUnexpectedError','backward','refresh','isIntersecting','getUser','ck-suggestion-marker-formatBlock','define','splice','markMultiRangeInsertion','TrackChangesEditing','multipleBlocks','_removeSuggestion','authoredAt','commandName','track-changes-adapter-missing-getsuggestion','_onDiscard','createPositionBefore','getAllAdjacentSuggestions','_reduceExistingSuggestions','editingDowncast','isEqual','init','getCommentThread','schema','setTo','rename','markers','addComment','groupId','getCustomProperty','tablePasteChainId','next','enableCommand','after','multi','_processAttributeSuggestions','getIntersection','_SUGGESTION_ANNOUNCEMENT','_customCallbacks','consume','isIntersectingWithRange'];(function(_0x5254a4,_0x2c5b75){const _0x5bb46a=function(_0x304f7a){while(--_0x304f7a){_0x5254a4['push'](_0x5254a4['shift']());}};_0x5bb46a(++_0x2c5b75);}(_0x2c5b,0x1be));const _0x5bb4=function(_0x5254a4,_0x2c5b75){_0x5254a4=_0x5254a4-0x0;let _0x5bb46a=_0x2c5b[_0x5254a4];return _0x5bb46a;};import{Plugin as _0x11b42f,PendingActions as _0x6e80da}from'ckeditor5/src/core';import{LiveRange as _0x87e607}from'ckeditor5/src/engine';import{CKEditorError as _0x426846,uid as _0x4f0212,priorities as _0x347639,logWarning as _0x841a3}from'ckeditor5/src/utils';import{toWidget as _0x1c2951}from'ckeditor5/src/widget';import{Users as _0x2197d7,hashObject as _0x457066,surroundingMarkersDetector as _0x2f2298}from'ckeditor5-collaboration/src/collaboration-core';import _0x4e1f9b from'./commands/trackchangescommand';import _0x378fec from'./commands/acceptsuggestioncommand';import _0x180cf0 from'./commands/discardsuggestioncommand';import _0x87823c from'./commands/executeonallsuggestionscommand';import _0x2b3bd6 from'./commands/executeonselectedsuggestionscommand';import _0x1343f2 from'./suggestion';import _0x4e352a from'./suggestiondescriptionfactory';import _0x264121 from'./integrations/aiassistant';import _0x5e86c1 from'./integrations/alignment';import _0x2a7c39 from'./integrations/basicstyles';import _0x5326aa from'./integrations/blockquote';import _0x1e101a from'./integrations/ckbox';import _0x59d1a0 from'./integrations/codeblock';import _0x42cb88 from'./integrations/comments';import _0x1082a7 from'./integrations/deletecommand';import _0x56eaab from'./integrations/documentlist';import _0x12676c from'./integrations/documentlistproperties';import _0x45ee9d from'./integrations/entercommand';import _0x5c242f from'./integrations/findandreplace';import _0x48aef5 from'./integrations/font';import _0x268aab from'./integrations/formatpainter';import _0x17c367 from'./integrations/heading';import _0x20f879 from'./integrations/highlight';import _0x410379 from'./integrations/horizontalline';import _0x2efda7 from'./integrations/htmlembed';import _0x4c8b4c from'./integrations/image';import _0x52a301 from'./integrations/imagereplace';import _0x18deaf from'./integrations/imagestyle';import _0x270d07 from'./integrations/importword';import _0x5d94ac from'./integrations/indent';import _0x120520 from'./integrations/inputcommand';import _0x49ef97 from'./integrations/link';import _0x292cf0 from'./integrations/list';import _0x3db439 from'./integrations/listproperties';import _0x324a63 from'./integrations/mediaembed';import _0x496038 from'./integrations/mention';import _0x4fab4e from'./integrations/pagebreak';import _0x5c9942 from'./integrations/paragraph';import _0x4e3f05 from'./integrations/removeformat';import _0x39c8a3 from'./integrations/restrictededitingmode';import _0x158ae0 from'./integrations/shiftentercommand';import _0x5505d6 from'./integrations/standardeditingmode';import _0x26a06e from'./integrations/style';import _0x5759dd from'./integrations/table';import _0x144338 from'./integrations/tablemergesplit';import _0x41c673 from'./integrations/tableheadings';import _0x47a501 from'./integrations/tableclipboard';import _0xc30a89 from'./integrations/tablecolumnresize';import _0x3886fc from'./integrations/template';import _0x4e2e0c from'./integrations/tableofcontents';import _0x141646 from'./integrations/title';import _0x5969be from'./integrations/undo';import _0x5c3a2c from'./integrations/tablecaption';import _0x572850 from'./integrations/tableproperties';import{getTranslation as _0x1f39dc}from'./utils/common-translations';import{isEqual as _0x53cbae,omit as _0xe709ef}from'lodash-es';export const renameAttributeKey='$elementName';export default class p extends _0x11b42f{static get[_0x5bb4('0x2d')](){return[_0x5bb4('0x3a'),_0x2197d7,_0x6e80da,_0x264121,_0x5e86c1,_0x2a7c39,_0x5326aa,_0x1e101a,_0x59d1a0,_0x42cb88,_0x1082a7,_0x56eaab,_0x12676c,_0x45ee9d,_0x5c242f,_0x48aef5,_0x268aab,_0x17c367,_0x20f879,_0x410379,_0x2efda7,_0x4c8b4c,_0x18deaf,_0x52a301,_0x270d07,_0x5d94ac,_0x120520,_0x49ef97,_0x292cf0,_0x3db439,_0x324a63,_0x496038,_0x4fab4e,_0x5c9942,_0x4e3f05,_0x39c8a3,_0x158ae0,_0x5505d6,_0x26a06e,_0x5759dd,_0x144338,_0x41c673,_0x5c3a2c,_0x47a501,_0xc30a89,_0x4e2e0c,_0x572850,_0x3886fc,_0x141646,_0x5969be];}static get['pluginName'](){return _0x5bb4('0x10a');}constructor(_0x3de14c){function _0x301914(_0x4239af){return _0x4239af[_0x5bb4('0x20')](_0x6ece0a=>String['fromCharCode'](_0x6ece0a))['join']('');}super(_0x3de14c),this[_0x5bb4('0xde')]=null,this[_0x5bb4('0xba')](_0x5bb4('0x14f'),[]),this['on']('change:activeMarkers',(_0x118097,_0xd385b4,_0x419361,_0x1eb377)=>{this[_0x5bb4('0x1e')][_0x5bb4('0x7a')](()=>{for(const _0x54105c of[..._0x1eb377,..._0x419361])this[_0x5bb4('0x1e')][_0x5bb4('0x11b')][_0x5bb4('0x135')](_0x54105c)&&_0x3de14c['editing'][_0x5bb4('0x5a')](_0x54105c);});}),this['_descriptionFactory']=new _0x4e352a(this['editor'][_0x5bb4('0x12d')][_0x5bb4('0x118')],this[_0x5bb4('0x93')][_0x5bb4('0xc')]),this[_0x5bb4('0x65')]=null,this[_0x5bb4('0x141')]=new Bt(this[_0x5bb4('0x93')]),this['_suggestions']=new Map(),this[_0x5bb4('0xca')]=_0x3de14c[_0x5bb4('0x151')]['get'](_0x5bb4('0x3a')),this['_enabledCommands']=new Set(),this['_model']=this[_0x5bb4('0x93')]['model'],this['_suggestionState']=new WeakMap(),this[_0x5bb4('0x9e')]=!0x1,this[_0x5bb4('0xdb')]=new Set(['$elementName']),this[_0x5bb4('0x9d')]=new Set(),_0x3de14c[_0x5bb4('0xdc')][_0x5bb4('0x107')](_0x5bb4('0x78'),_0x5bb4('0x0')),this[_0x5bb4('0x4b')]=_0x3de14c[_0x5bb4('0xdc')][_0x5bb4('0x143')]('trackChanges.trackFormatChanges'),_0x3de14c[_0x5bb4('0xdc')][_0x5bb4('0x107')](_0x5bb4('0x15a'),!0x0),this['_mergeNestedSuggestions']=_0x3de14c['config'][_0x5bb4('0x143')](_0x5bb4('0x15a')),this[_0x5bb4('0x7')]=new _0x4e1f9b(_0x3de14c,this[_0x5bb4('0x33')]),this['_initAriaMarkerChangeAnnouncements'](),this[_0x301914([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x301914([0x34,0x30,0x34,0x36,0x32,0x34,0x32,0x38]);}[_0x5bb4('0x116')](){const _0x3f2c4b=this[_0x5bb4('0x93')],_0x550d65=(_0x491d12,_0x3fac78)=>{if(_0x5bb4('0x160')!=_0x491d12)return'ck-suggestion-marker-'+_0x491d12;const _0x299f8b=_0x3fac78[_0x5bb4('0xaf')]('|')[0x0];return this[_0x5bb4('0x7f')](_0x299f8b)?_0x5bb4('0x106'):_0x5bb4('0x16d');};_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x114'))[_0x5bb4('0x41')]({'model':_0x5bb4('0xa3'),'view':_0x2feaea=>{const {id:_0x295d88,type:_0x4a6463,subType:_0x28c6c5}=this['_splitMarkerName'](_0x2feaea['markerName']),_0x4b8209=['ck-suggestion-marker',_0x550d65(_0x4a6463,_0x28c6c5)];let _0x13515b=0xbb8;return this[_0x5bb4('0x14f')][_0x5bb4('0x13c')](_0x2feaea[_0x5bb4('0x46')])&&(_0x4b8209[_0x5bb4('0x6')]('ck-suggestion-marker--active'),_0x13515b=0xbc2),_0x5bb4('0x85')==_0x4a6463&&(_0x13515b+=0x5),{'classes':_0x4b8209,'attributes':{'data-suggestion':_0x295d88},'priority':_0x13515b};}}),_0x3f2c4b['conversion'][_0x5bb4('0xac')](_0x5bb4('0x12b'))['add'](_0xdc5e9a=>{_0xdc5e9a['on'](_0x5bb4('0x158'),(_0xca4bf7,_0x3ca330,_0x5406b9)=>{if(!_0x5406b9[_0x5bb4('0xe8')]['showSuggestionHighlights'])return;const _0x158373=_0x3ca330[_0x5bb4('0x99')];if(!_0x158373)return;const _0x1f7c4e=_0x5406b9[_0x5bb4('0x2')][_0x5bb4('0x86')](_0x158373);_0x3f2c4b[_0x5bb4('0x12d')]['schema']['isObject'](_0x158373)&&_0x1f7c4e&&!_0x1f7c4e[_0x5bb4('0x11e')](_0x5bb4('0xeb'))&&_0x1f7c4e['is'](_0x5bb4('0x6f'))&&_0x1c2951(_0x1f7c4e,_0x5406b9['writer']);},{'priority':_0x5bb4('0x8b')});}),_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x12b'))['markerToHighlight']({'model':_0x5bb4('0xa3'),'view':(_0x3f7e06,_0x1deb48)=>{if(!_0x1deb48[_0x5bb4('0xe8')][_0x5bb4('0xc6')])return null;const {type:_0x3a1a13,subType:_0x535b46}=this[_0x5bb4('0xe2')](_0x3f7e06[_0x5bb4('0x46')]);return{'classes':['ck-suggestion-marker',_0x550d65(_0x3a1a13,_0x535b46)],'priority':0xbb8};}});const _0xe59de0=({showActiveMarkers:_0x27e64a=!0x0,isAttributeSuggestion:_0x27b46c=!0x1}={})=>(_0x450020,_0xa6e9ea,_0x5295da)=>{if(!_0xa6e9ea['item'])return;const {id:_0x5d81ef}=this[_0x5bb4('0xe2')](_0xa6e9ea[_0x5bb4('0x46')]);if(_0x27b46c){const _0x35d71b=Pt(this['_suggestions']['get'](_0x5d81ef));if(!this[_0x5bb4('0x7f')](_0x35d71b))return;}if(_0xa6e9ea[_0x5bb4('0x99')]['is'](_0x5bb4('0x166')))return void _0x5295da[_0x5bb4('0xd1')][_0x5bb4('0x128')](_0xa6e9ea[_0x5bb4('0x99')],_0x450020[_0x5bb4('0xd')]);const _0x208b9d=_0x5295da['mapper'][_0x5bb4('0x86')](_0xa6e9ea['item']);if(_0xa6e9ea[_0x5bb4('0x99')]['is'](_0x5bb4('0xda'))&&_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x118')][_0x5bb4('0x15e')](_0xa6e9ea[_0x5bb4('0x99')])&&!_0x208b9d[_0x5bb4('0x11e')](_0x5bb4('0x149'))){_0x5295da['writer'][_0x5bb4('0x3')]([_0x5bb4('0x9c'),'ck-suggestion-marker-formatBlock'],_0x208b9d),_0x5295da[_0x5bb4('0xee')][_0x5bb4('0x168')](_0x5bb4('0xfc'),_0x5d81ef,_0x208b9d),_0x5295da[_0x5bb4('0x2')][_0x5bb4('0x16b')](_0x208b9d,_0xa6e9ea['markerName']),_0x27e64a&&(this['activeMarkers']['includes'](_0xa6e9ea['markerName'])?_0x5295da[_0x5bb4('0xee')][_0x5bb4('0x3')]('ck-suggestion-marker--active',_0x208b9d):_0x5295da['writer']['removeClass']('ck-suggestion-marker--active',_0x208b9d));for(const _0x21fa91 of _0x3f2c4b['model'][_0x5bb4('0x145')](_0xa6e9ea[_0x5bb4('0x99')])[_0x5bb4('0x3e')]())_0x5295da[_0x5bb4('0xd1')]['consume'](_0x21fa91,_0x450020[_0x5bb4('0xd')]);_0x5295da['consumable'][_0x5bb4('0x128')](_0xa6e9ea['item'],_0x450020[_0x5bb4('0xd')]);}};_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x12b'))[_0x5bb4('0x4e')](_0x23dd43=>{_0x23dd43['on'](_0x5bb4('0xf1'),(_0x531947,_0x4b104c,_0x1e3680)=>{_0x1e3680['options'][_0x5bb4('0xc6')]&&_0xe59de0({'showActiveMarkers':!0x1})(_0x531947,_0x4b104c,_0x1e3680);},{'priority':_0x5bb4('0xdd')});}),_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x12b'))['add'](_0x44c153=>{_0x44c153['on'](_0x5bb4('0x130'),(_0xaaaede,_0x22be1d,_0x548e54)=>{_0x548e54[_0x5bb4('0xe8')][_0x5bb4('0xc6')]&&_0xe59de0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xaaaede,_0x22be1d,_0x548e54);},{'priority':'highest'});}),_0x3f2c4b[_0x5bb4('0x26')]['for'](_0x5bb4('0x12b'))['markerToData']({'model':_0x5bb4('0xa3'),'view':(_0x4c38c3,_0x3c0c71)=>_0x3c0c71[_0x5bb4('0xe8')]['showSuggestionHighlights']?null:{'group':_0x5bb4('0xa3'),'name':_0x4c38c3[_0x5bb4('0x162')](0xb)}}),_0x3f2c4b['conversion']['for'](_0x5bb4('0x3f'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2326e4,{writer:_0x58a47e})=>{let _0x2b7c48=_0x5bb4('0xec')+_0x2326e4[_0x5bb4('0xe')]('suggestion-type')+':'+_0x2326e4['getAttribute']('id');return _0x2326e4[_0x5bb4('0xe')](_0x5bb4('0xc0'))&&(_0x2b7c48+=':'+_0x2326e4[_0x5bb4('0xe')](_0x5bb4('0xc0'))),_0x58a47e[_0x5bb4('0xbb')](_0x5bb4('0x6a'),{'data-name':_0x2b7c48});}}),_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x3f'))[_0x5bb4('0xd0')]({'view':_0x5bb4('0xa3')}),_0x3f2c4b[_0x5bb4('0x26')]['for'](_0x5bb4('0x114'))[_0x5bb4('0x4e')](_0x45f780=>{_0x45f780['on'](_0x5bb4('0xf1'),_0xe59de0(),{'priority':_0x5bb4('0x8b')});}),_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x114'))[_0x5bb4('0x4e')](_0x22d6f0=>{_0x22d6f0['on'](_0x5bb4('0x130'),_0xe59de0({'isAttributeSuggestion':!0x0}),{'priority':_0x5bb4('0x8b')});}),_0x3f2c4b[_0x5bb4('0x26')][_0x5bb4('0xac')](_0x5bb4('0x114'))['add'](_0x49ffdc=>{_0x49ffdc['on'](_0x5bb4('0xfa'),(_0x503fd6,_0xc47423,_0x2152d0)=>{const _0x52f0c7=_0x2152d0[_0x5bb4('0x2')][_0x5bb4('0x16f')](_0xc47423['markerName']);if(_0x52f0c7)for(const _0x27b04e of _0x52f0c7)_0x27b04e['getCustomProperty'](_0x5bb4('0x149'))||(_0x2152d0['writer'][_0x5bb4('0xaa')]([_0x5bb4('0x9c'),_0x5bb4('0x106'),_0x5bb4('0x155')],_0x27b04e),_0x2152d0[_0x5bb4('0xee')][_0x5bb4('0xd4')](_0x5bb4('0xfc'),_0x27b04e),_0x2152d0['mapper']['unbindElementFromMarkerName'](_0x27b04e,_0xc47423['markerName']));},{'priority':_0x5bb4('0x8b')});}),_0x3f2c4b['conversion'][_0x5bb4('0xac')](_0x5bb4('0x114'))['add'](_0x1f5150=>{_0x1f5150['on'](_0x5bb4('0x5'),(_0x44e7f1,_0x21f82d,_0xcf1076)=>{const _0x5e60bf=_0xcf1076[_0x5bb4('0x2')][_0x5bb4('0x16f')](_0x21f82d['markerName']);if(!_0x5e60bf)return;const {id:_0x39e7c8}=this['_splitMarkerName'](_0x21f82d[_0x5bb4('0x46')]),_0x49975e=Pt(this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x39e7c8));if(this[_0x5bb4('0x7f')](_0x49975e))for(const _0x30afa8 of _0x5e60bf)_0x30afa8[_0x5bb4('0x11e')]('addHighlight')||(_0xcf1076['writer'][_0x5bb4('0xaa')](['ck-suggestion-marker',_0x5bb4('0x106'),_0x5bb4('0x155')],_0x30afa8),_0xcf1076['writer']['removeAttribute'](_0x5bb4('0xfc'),_0x30afa8),_0xcf1076[_0x5bb4('0x2')][_0x5bb4('0xce')](_0x30afa8,_0x21f82d[_0x5bb4('0x46')]));},{'priority':'high'});}),_0x3f2c4b[_0x5bb4('0x12d')]['document'][_0x5bb4('0x7b')](_0x31e67c=>{let _0xa8a103=!0x1;const _0x261899=Array[_0x5bb4('0x1')](_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x173')]['differ'][_0x5bb4('0x2a')]()),_0x15de1f=new Set();for(const {name:_0x27ac62,data:_0x544494}of _0x261899){const {group:_0x1ea176,type:_0xcad0a4,subType:_0xb5ef6,id:_0x3ae9a9}=this['_splitMarkerName'](_0x27ac62);if(_0x5bb4('0xa3')!==_0x1ea176)continue;const _0x19252e=this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x3ae9a9);if(null!=_0x544494[_0x5bb4('0x70')]){_0x5bb4('0x16e')==_0xcad0a4&&(_0xa8a103=_0xa8a103||Et(_0x544494[_0x5bb4('0x70')],_0x27ac62,_0x31e67c,_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x118')]));const _0x12702a=_0x5bb4('0x160')==_0xcad0a4&&this['_isBlockAttribute'](_0xb5ef6[_0x5bb4('0xaf')]('|')[0x0]);if(_0x544494[_0x5bb4('0x70')][_0x5bb4('0x7c')]||_0x5bb4('0x7d')==_0x544494[_0x5bb4('0x70')][_0x5bb4('0xb0')][_0x5bb4('0x3c')]||'formatBlock'==_0xcad0a4&&!jt(_0x544494[_0x5bb4('0x70')])||_0x12702a&&!jt(_0x544494[_0x5bb4('0x70')])||'deletion'==_0xcad0a4&&!(!xt(_0x646e5=_0x544494[_0x5bb4('0x70')])&&!function(_0x13f226){return _0x13f226[_0x5bb4('0xe1')][_0x5bb4('0x9b')]==_0x13f226[_0x5bb4('0xc3')][_0x5bb4('0xf7')]&&_0x13f226[_0x5bb4('0xe1')][_0x5bb4('0x6c')];}(_0x646e5)))_0x31e67c[_0x5bb4('0x8d')](_0x27ac62),_0xa8a103=!0x0;else{if(!_0x19252e||!_0x19252e[_0x5bb4('0x5d')])continue;_0x15de1f['add'](_0x19252e);}}}var _0x646e5;return _0x15de1f[_0x5bb4('0x131')]>0x0&&(_0xa8a103=!!this[_0x5bb4('0x31')](_0x15de1f)||_0xa8a103),_0xa8a103;}),_0x3f2c4b['model']['document'][_0x5bb4('0x7b')](_0x324530=>{let _0xc479e1=!0x1;for(const _0x55d8b9 of _0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x173')]['differ']['getChanges']())if(_0x5bb4('0x172')==_0x55d8b9[_0x5bb4('0xc1')])for(const _0x15547d of this[_0x5bb4('0x44')][_0x5bb4('0x62')]()){if(_0x15547d['isMultiRange']||!_0x15547d[_0x5bb4('0x5d')])continue;const _0x13f423=_0x5bb4('0x4d')==_0x15547d['type'],_0x38e09c=Pt(_0x15547d),_0x16be53=_0x38e09c&&this[_0x5bb4('0x7f')](_0x38e09c);if(!_0x13f423&&!_0x16be53)continue;const _0x4375a8=_0x15547d[_0x5bb4('0x157')]();if(_0x4375a8[_0x5bb4('0xe1')][_0x5bb4('0x9b')]!=_0x4375a8[_0x5bb4('0xc3')]['parent']&&!_0x4375a8[_0x5bb4('0xc3')][_0x5bb4('0x6c')]){const _0x503a9d=_0x3f2c4b['model'][_0x5bb4('0xb5')](_0x4375a8[_0x5bb4('0xe1')][_0x5bb4('0x14d')],_0x5bb4('0xc3')),_0x1e581c=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x23')](_0x4375a8[_0x5bb4('0xe1')],_0x503a9d);_0x324530['updateMarker'](_0x15547d[_0x5bb4('0xe6')](),{'range':_0x1e581c}),_0xc479e1=!0x0;}}return _0xc479e1;}),_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x173')][_0x5bb4('0x7b')](_0x16c5f7=>this[_0x5bb4('0x53')](_0x16c5f7)),_0x3f2c4b['model'][_0x5bb4('0x173')][_0x5bb4('0x7b')](_0xda7e02=>!_0xda7e02[_0x5bb4('0x68')][_0x5bb4('0x90')]&&this[_0x5bb4('0x124')](_0xda7e02)),_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x11b')]['on'](_0x5bb4('0x35'),(_0x38d9e2,_0x32291f,_0x18abca)=>{if(null==_0x18abca){const {id:_0x26f744}=this[_0x5bb4('0xe2')](_0x32291f['name']),_0x4a13b3=this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x26f744);_0x4a13b3&&_0x4a13b3[_0x5bb4('0xe0')](_0x32291f['name']);}}),_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x173')]['on'](_0x5bb4('0xae'),()=>{const _0x15b613=Array['from'](_0x3f2c4b['model'][_0x5bb4('0x173')][_0x5bb4('0xa1')]['getChangedMarkers']())[_0x5bb4('0x5c')](_0x2b1d77=>_0x5bb4('0xa3')===this[_0x5bb4('0xe2')](_0x2b1d77[_0x5bb4('0xd')])['group']);if(0x0===_0x15b613[_0x5bb4('0x96')])return;_0x15b613[_0x5bb4('0xb4')]((_0x4af399,_0x1f0779)=>{const _0x2966e1=_0x4af399[_0x5bb4('0x43')][_0x5bb4('0xa6')],_0x3f8c8f=_0x1f0779[_0x5bb4('0x43')][_0x5bb4('0xa6')];return null===_0x2966e1&&null===_0x3f8c8f?0x0:null===_0x2966e1&&null!==_0x3f8c8f?-0x1:null!==_0x2966e1&&null===_0x3f8c8f?0x1:_0x2966e1[_0x5bb4('0xe1')][_0x5bb4('0x75')](_0x3f8c8f[_0x5bb4('0xe1')])?-0x1:0x1;});const _0x42409a=new Set(),_0xd05b5e=new Set();for(const {name:_0x3426f1,data:_0x423a3d}of _0x15b613){const {id:_0x13c33d}=this[_0x5bb4('0xe2')](_0x3426f1);if(null===_0x423a3d[_0x5bb4('0xa6')]){const _0x3a77ef=this[_0x5bb4('0x14c')](_0x3426f1);_0xd05b5e[_0x5bb4('0x4e')](_0x3a77ef);}else{const _0xe6745b=this[_0x5bb4('0x44')]['get'](_0x13c33d);null!==_0x423a3d[_0x5bb4('0x70')]||_0xe6745b[_0x5bb4('0x5d')]?(_0x42409a[_0x5bb4('0x4e')](_0xe6745b[_0x5bb4('0x81')]),_0xd05b5e['add'](_0xe6745b)):this[_0x5bb4('0x10c')](_0xe6745b);}}_0xd05b5e[_0x5bb4('0x131')]>0x0&&this['_refreshSuggestionsChain'](_0xd05b5e);for(const _0x34b0ac of _0x42409a)this[_0x5bb4('0x15c')](_0x5bb4('0x79'),_0x34b0ac);}),_0x3f2c4b['model']['on'](_0x5bb4('0xd2'),(_0x32e156,_0x4b0bd9)=>{const _0x8dcbb9=_0x4b0bd9[0x0];if(!this[_0x5bb4('0x44')]['size'])return;if(!_0x8dcbb9['isDocumentOperation'])return;if(_0x8dcbb9[_0x5bb4('0x68')][_0x5bb4('0x58')]||!_0x8dcbb9['batch']['isLocal'])return;let _0x4d5f89,_0x2eadd5;switch(_0x8dcbb9[_0x5bb4('0xc1')]){case'insert':_0x4d5f89=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0xb5')](_0x8dcbb9[_0x5bb4('0x6d')]),_0x2eadd5=_0x4d5f89['getShiftedBy'](_0x8dcbb9[_0x5bb4('0x32')]);break;case _0x5bb4('0xaf'):_0x4d5f89=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0xb5')](_0x8dcbb9['splitPosition']),_0x2eadd5=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0xb5')](_0x8dcbb9['moveTargetPosition']);break;case _0x5bb4('0x21'):_0x4d5f89=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0xb5')](_0x8dcbb9[_0x5bb4('0xf')]),_0x2eadd5=_0x4d5f89[_0x5bb4('0x13a')](_0x8dcbb9[_0x5bb4('0x32')]);break;default:return;}const _0x5a09ea=_0x3f2c4b['model'][_0x5bb4('0x23')](_0x4d5f89,_0x2eadd5);_0x3f2c4b[_0x5bb4('0x12d')]['change'](()=>{for(const {suggestion:_0x5af644,meta:_0x236486}of this['_findSuggestions'](_0x5a09ea)){if(_0x5af644['isMultiRange'])continue;if(_0x5bb4('0x16e')==_0x5af644[_0x5bb4('0xc1')])continue;const _0x7ae7a1=Pt(_0x5af644);if(_0x7ae7a1&&this[_0x5bb4('0x7f')](_0x7ae7a1)&&_0x5bb4('0xaf')!=_0x8dcbb9[_0x5bb4('0xc1')])continue;const _0x70d867=_0x5af644[_0x5bb4('0x43')]&&_0x5af644['data'][_0x5bb4('0x10b')];(_0x5bb4('0x4d')!=_0x5af644[_0x5bb4('0xc1')]||'split'==_0x8dcbb9['type']&&!_0x70d867)&&(_0x236486['containsRangeInObject']||_0x5bb4('0x98')==_0x5af644['type']&&_0x236486[_0x5bb4('0x14')]||_0x5af644['getFirstRange']()['containsRange'](_0x5a09ea)&&this[_0x5bb4('0x69')](_0x5af644,_0x4d5f89,_0x2eadd5));}});},{'priority':'lowest'}),_0x3f2c4b['model']['on'](_0x5bb4('0x4a'),(_0xcaafca,_0x13979c)=>{const _0x32391e=_0x13979c[0x0],_0x2f20c4=_0x13979c[0x1];if(_0x2f20c4&&_0x2f20c4[_0x5bb4('0x12f')])return;if(this[_0x5bb4('0x9e')])return;if(!this[_0x5bb4('0x7')][_0x5bb4('0xd3')])return;if(_0x32391e[_0x5bb4('0x7c')])return;const _0x4a3d31=_0x3f2c4b[_0x5bb4('0x12d')]['schema'],{start:_0xba868d,end:_0x35a9f8}=_0x32391e[_0x5bb4('0x157')](),_0x59c237=_0xba868d[_0x5bb4('0x14d')]&&_0x4a3d31[_0x5bb4('0x15d')](_0xba868d[_0x5bb4('0x14d')])?null:_0x4a3d31['getNearestSelectionRange'](_0xba868d,'forward'),_0xfa8be3=_0x35a9f8[_0x5bb4('0xf7')]&&_0x4a3d31[_0x5bb4('0x15d')](_0x35a9f8[_0x5bb4('0xf7')])?null:_0x4a3d31['getNearestSelectionRange'](_0x35a9f8,_0x5bb4('0x102')),_0x65fc1e=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x23')](_0x59c237?_0x59c237['start']:_0xba868d,_0xfa8be3?_0xfa8be3['end']:_0x35a9f8);_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x7a')](_0x3e0e74=>{this[_0x5bb4('0x148')](_0x65fc1e);const _0x5c81eb=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x118')]['getNearestSelectionRange'](_0x65fc1e['start']);_0x32391e['is']('documentSelection')?_0x3e0e74[_0x5bb4('0x5f')](_0x5c81eb):_0x32391e[_0x5bb4('0x119')](_0x5c81eb);}),_0xcaafca[_0x5bb4('0x16')]();},{'priority':_0x347639[_0x5bb4('0xad')]+0xa}),_0x3f2c4b[_0x5bb4('0x12d')]['on'](_0x5bb4('0x87'),(_0x25fa6a,_0x5552a3)=>{const _0x55d708=_0x5552a3[_0x5552a3[_0x5bb4('0x96')]-0x1];_0x55d708&&_0x55d708[_0x5bb4('0x12f')]||this[_0x5bb4('0x9e')]||this[_0x5bb4('0x7')][_0x5bb4('0xd3')]&&(_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x7a')](()=>{let _0x5919f8=_0x3f2c4b[_0x5bb4('0x12d')]['insertContent'](_0x5552a3[0x0],_0x5552a3[0x1],_0x5552a3[0x2],{'forceDefaultExecution':!0x0});if(!_0x5919f8)return;_0x25fa6a[_0x5bb4('0xf8')]=_0x5919f8[_0x5bb4('0x73')]();const _0x2830b3=_0x5919f8['end']['nodeBefore'],_0x43dc3d=_0x3f2c4b['model'][_0x5bb4('0x118')];_0x2830b3&&_0x43dc3d[_0x5bb4('0x15e')](_0x2830b3)&&!_0x43dc3d[_0x5bb4('0x57')](_0x2830b3)&&(_0x5919f8=_0x3f2c4b[_0x5bb4('0x12d')][_0x5bb4('0x23')](_0x5919f8['start'],_0x3f2c4b[_0x5bb4('0x12d')]['createPositionAt'](_0x2830b3,'end'))),this[_0x5bb4('0x2b')](_0x5919f8);}),_0x25fa6a['stop']());},{'priority':_0x5bb4('0x8b')}),this[_0x5bb4('0x93')][_0x5bb4('0x89')][_0x5bb4('0x4e')]('trackChanges',this[_0x5bb4('0x7')]),this[_0x5bb4('0x121')]('trackChanges');const _0x1b1a14=new _0x378fec(_0x3f2c4b,this[_0x5bb4('0x44')]);_0x3f2c4b[_0x5bb4('0x89')][_0x5bb4('0x4e')](_0x5bb4('0x134'),_0x1b1a14),this['enableCommand'](_0x5bb4('0x134'));const _0x5e8087=new _0x180cf0(_0x3f2c4b,this['_suggestions']);_0x3f2c4b[_0x5bb4('0x89')][_0x5bb4('0x4e')](_0x5bb4('0x25'),_0x5e8087),this[_0x5bb4('0x121')](_0x5bb4('0x25')),_0x3f2c4b['commands'][_0x5bb4('0x4e')](_0x5bb4('0x3b'),new _0x87823c(_0x3f2c4b,_0x1b1a14,this['_suggestions'])),this[_0x5bb4('0x121')](_0x5bb4('0x3b')),_0x3f2c4b[_0x5bb4('0x89')]['add'](_0x5bb4('0xc4'),new _0x87823c(_0x3f2c4b,_0x5e8087,this[_0x5bb4('0x44')])),this['enableCommand']('discardAllSuggestions'),_0x3f2c4b[_0x5bb4('0x89')][_0x5bb4('0x4e')](_0x5bb4('0x164'),new _0x2b3bd6(_0x3f2c4b,_0x1b1a14,this[_0x5bb4('0x44')])),this['enableCommand'](_0x5bb4('0x164')),_0x3f2c4b[_0x5bb4('0x89')][_0x5bb4('0x4e')](_0x5bb4('0x67'),new _0x2b3bd6(_0x3f2c4b,_0x5e8087,this[_0x5bb4('0x44')])),this['enableCommand']('discardSelectedSuggestions');const _0x55620e=_0x3f2c4b[_0x5bb4('0x151')]['get'](_0x5bb4('0x3a'));this['listenTo'](_0x55620e,_0x5bb4('0x11c'),(_0x1e6c1b,{threadId:_0x12835f})=>{const _0x5e56ef=this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x12835f);_0x5e56ef&&_0x5e56ef[_0x5bb4('0x159')]&&0x1===_0x5e56ef['commentThread']['length']&&this['_updateSuggestionData'](_0x12835f,{'hasComments':!0x0});},{'priority':'low'}),this[_0x5bb4('0x22')](_0x55620e,_0x5bb4('0xa8'),(_0x896cb,{threadId:_0x46a655})=>{const _0x4406c2=this['_suggestions'][_0x5bb4('0x143')](_0x46a655);_0x4406c2&&_0x4406c2[_0x5bb4('0x159')]&&!_0x4406c2['commentThread']['length']&&this['_updateSuggestionData'](_0x46a655,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5bb4('0xe3')](_0x13e8b7){if(this[_0x5bb4('0x65')])throw new _0x426846(_0x5bb4('0x60'),this);this['_adapter']=_0x13e8b7;}get[_0x5bb4('0xe3')](){return this[_0x5bb4('0x65')];}[_0x5bb4('0xef')]({skipNotAttached:_0x30f2b4=!0x1,toJSON:_0x49027d=!0x1}={}){const _0x5bdc88=[];for(const _0x57aa30 of this['_suggestions'][_0x5bb4('0x62')]())_0x30f2b4&&!_0x57aa30[_0x5bb4('0x5d')]||_0x5bdc88[_0x5bb4('0x6')](_0x57aa30);return _0x49027d?_0x5bdc88[_0x5bb4('0x20')](_0x4b77ed=>_0x4b77ed[_0x5bb4('0x13e')]()):_0x5bdc88;}['getSuggestion'](_0x36e64b){const _0x167279=this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x36e64b);if(!_0x167279)throw new _0x426846(_0x5bb4('0x1b'),this);return _0x167279;}[_0x5bb4('0xbe')](_0x3c4be0){return this['_suggestions'][_0x5bb4('0x135')](_0x3c4be0);}[_0x5bb4('0xd9')](_0x45645d){const {authorId:_0x3cdf19,id:_0x4ae825,attributes:_0x1231b6}=_0x45645d,[_0x25f83a,_0x5b4bd2]=_0x45645d[_0x5bb4('0xc1')][_0x5bb4('0xaf')](':'),_0x31e023=this[_0x5bb4('0x44')][_0x5bb4('0x143')](_0x4ae825)||this['_createSuggestion'](_0x25f83a,_0x5b4bd2,_0x4ae825,_0x3cdf19,_0x1231b6);if(this['_addThreadToSuggestion'](_0x31e023),this[_0x5bb4('0x17')](_0x31e023,_0x25f83a,_0x5b4bd2||null,_0x3cdf19),_0x31e023['createdAt']=_0x45645d[_0x5bb4('0x1a')],_0x31e023[_0x5bb4('0x13d')]=!0x0,_0x1231b6&&_0x1231b6[_0x5bb4('0x56')]){const _0x27741e=_0x1231b6['@external'],_0x4be1f6=this[_0x5bb4('0x10')](_0x27741e['authorName']);_0x31e023[_0x5bb4('0x10d')]=_0x27741e[_0x5bb4('0x1a')],_0x31e023[_0x5bb4('0x163')]=_0x4be1f6,_0x31e023[_0x5bb4('0xab')]=!0x0;}else _0x31e023[_0x5bb4('0x10d')]=_0x45645d['createdAt'];switch(_0x45645d[_0x5bb4('0x43')]&&(_0x31e023[_0x5bb4('0x43')]=_0x45645d[_0x5bb4('0x43')]),_0x45645d[_0x5bb4('0xd8')]&&(_0x31e023['attributes']=_0x45645d[_0x5bb4('0xd8')]),this[_0x5bb4('0x65')]&&this[_0x5bb4('0x65')][_0x5bb4('0x140')]||(_0x31e023[_0x5bb4('0x74')]=!0x0),this['_suggestionState'][_0x5bb4('0x143')](_0x31e023)){case _0x5bb4('0x37'):this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x31e023,_0x5bb4('0x61'));break;case _0x5bb4('0xcd'):_0x31e023[_0x5bb4('0x5d')]?(this[_0x5bb4('0x8e')](new Set([_0x31e023])),this['_joinWithAdjacentSuggestions'](new Set([_0x31e023])),this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x31e023,_0x5bb4('0xb6')),this[_0x5bb4('0x15c')](_0x5bb4('0xc9'),_0x31e023)):this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x31e023,_0x5bb4('0x100'));}return _0x31e023;}[_0x5bb4('0x134')](_0x22cf24){this['forceDefaultExecution'](()=>{this['editor']['model'][_0x5bb4('0x7a')](()=>{for(const _0x452b52 of _0x22cf24[_0x5bb4('0x112')]())_0x452b52[_0x5bb4('0x13b')]();});});}[_0x5bb4('0x25')](_0x26c15d){this['forceDefaultExecution'](()=>{this[_0x5bb4('0x93')]['model'][_0x5bb4('0x7a')](()=>{for(const _0x516ff4 of _0x26c15d[_0x5bb4('0x112')]())_0x516ff4[_0x5bb4('0xbf')]();});});}['enableCommand'](_0x5cde2a,_0x20794c){const _0x52256c=this['editor']['commands'][_0x5bb4('0x143')](_0x5cde2a);if(!_0x52256c)throw new _0x426846(_0x5bb4('0x64'),this,{'commandName':_0x5cde2a});if(this[_0x5bb4('0x33')]['has'](_0x52256c))throw new _0x426846('track-changes-enable-command-twice',this,{'commandName':_0x5cde2a});this[_0x5bb4('0x33')][_0x5bb4('0x4e')](_0x52256c),_0x20794c&&_0x52256c['on'](_0x5bb4('0xc2'),(_0x1c3dfb,_0x2e0df3)=>{this[_0x5bb4('0x7')][_0x5bb4('0xd3')]&&(this['_isForcedDefaultExecutionBlock']||(_0x2e0df3[_0x5bb4('0x96')]>0x0&&_0x2e0df3[_0x2e0df3[_0x5bb4('0x96')]-0x1]&&_0x2e0df3[_0x2e0df3[_0x5bb4('0x96')]-0x1][_0x5bb4('0x12f')]?_0x2e0df3[_0x5bb4('0xb8')]():(_0x1c3dfb[_0x5bb4('0xf8')]=_0x20794c((..._0x36e514)=>_0x52256c[_0x5bb4('0xc2')](..._0x36e514,{'forceDefaultExecution':!0x0}),..._0x2e0df3),_0x1c3dfb[_0x5bb4('0x16')]())));},{'priority':_0x5bb4('0x8b')});}[_0x5bb4('0x12f')](_0x35d1d5){let _0x88dd90,_0x5b685b;const _0x5c761f=this[_0x5bb4('0x9e')];this[_0x5bb4('0x9e')]=!0x0;try{_0x88dd90=_0x35d1d5();}catch(_0xdca019){_0x5b685b=_0xdca019;}return _0x5c761f||(this[_0x5bb4('0x9e')]=!0x1),_0x5b685b&&_0x426846[_0x5bb4('0x101')](_0x5b685b,this),_0x88dd90;}[_0x5bb4('0x2b')](_0x4edc64,_0x7565c=null,_0x1a2778={}){if(_0x4edc64['isCollapsed'])return null;const _0x50d0cf=this[_0x5bb4('0x93')]['plugins'][_0x5bb4('0x143')](_0x5bb4('0x9'))['me'];for(const {suggestion:_0x33995c,meta:_0x29cd92}of this[_0x5bb4('0xcf')](_0x4edc64,_0x5bb4('0x98')))if(_0x29cd92[_0x5bb4('0x14')]){if(!_0x29cd92[_0x5bb4('0x2f')]){if(_0x29cd92[_0x5bb4('0x14e')]){if(!this[_0x5bb4('0xc8')]||!Gt(_0x33995c,_0x1a2778))continue;return _0x33995c;}if(Gt(_0x33995c,_0x1a2778))return _0x33995c;this[_0x5bb4('0x69')](_0x33995c,_0x4edc64[_0x5bb4('0xe1')],_0x4edc64['end']);break;}if(_0x7565c==_0x33995c['subType']&&Gt(_0x33995c,_0x1a2778)){const _0x99e26b=_0x33995c[_0x5bb4('0x157')]();return _0x99e26b['start'][_0x5bb4('0x115')](_0x4edc64[_0x5bb4('0xc3')])?this[_0x5bb4('0x14a')](_0x33995c,this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x4edc64['start'],_0x99e26b[_0x5bb4('0xc3')])):this[_0x5bb4('0x14a')](_0x33995c,this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x99e26b['start'],_0x4edc64[_0x5bb4('0xc3')])),_0x33995c;}}const _0x1407e5=_0x4f0212(),_0x24fa78=_0x50d0cf['id'],_0x7c684c=_0x7565c?_0x5bb4('0x34')+_0x7565c:_0x5bb4('0x98'),_0x27dcf5=this['_setSuggestionData']({'id':_0x1407e5,'type':_0x7c684c,'createdAt':new Date(),'authorId':_0x24fa78,'attributes':_0x1a2778});return this[_0x5bb4('0x24')](_0x7c684c,_0x1407e5,_0x24fa78,_0x4edc64),_0x27dcf5;}[_0x5bb4('0x109')](_0x35e314,_0x5244e0='multi',_0x5c611f={}){const _0x1c3ff3=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')](_0x5bb4('0x9'))['me'],_0x2c6340=this['_suggestionFactory'][_0x5bb4('0x94')](_0x5bb4('0x98'),_0x5244e0,_0x5bb4('0x71'));for(const _0x1f2966 of this[_0x5bb4('0xef')]())if(_0x1f2966[_0x5bb4('0x163')]['id']==_0x1c3ff3['id']&&_0x5bb4('0x98')==_0x1f2966[_0x5bb4('0xc1')]&&_0x1f2966['subType']==_0x5244e0&&Gt(_0x1f2966,_0x5c611f)&&(_0x2c6340(_0x1f2966[_0x5bb4('0xd7')](),_0x35e314)||_0x2c6340(_0x35e314,_0x1f2966[_0x5bb4('0xd7')]()))){for(const _0x453dc2 of _0x35e314)_0x1f2966[_0x5bb4('0x8c')](_0x453dc2);return _0x1f2966;}for(const {suggestion:_0x1dceed,meta:_0x505bba}of this[_0x5bb4('0xcf')](_0x35e314,_0x5bb4('0x98'))){if(!_0x505bba['isOwn'])continue;if(!this[_0x5bb4('0xc8')]&&_0x505bba[_0x5bb4('0x14e')])continue;if(!Gt(_0x1dceed,_0x5c611f))continue;let _0x1c96f8=!0x0;for(const _0x394764 of _0x1dceed['getRanges']())for(const _0x2fd64c of _0x35e314)if(!_0x394764[_0x5bb4('0x28')](_0x2fd64c)){_0x1c96f8=!0x1;break;}if(_0x1c96f8)return _0x1dceed;}const _0xb531b=_0x4f0212(),_0x39ba17=_0x1c3ff3['id'],_0x2bdbf0=_0x5bb4('0x34')+_0x5244e0,_0x450f71=this[_0x5bb4('0x27')]({'id':_0xb531b,'type':_0x2bdbf0,'createdAt':new Date(),'authorId':_0x39ba17,'attributes':_0x5c611f});for(const _0x21cfcb of _0x35e314)this[_0x5bb4('0x24')](_0x2bdbf0,_0xb531b,_0x39ba17,_0x21cfcb,_0x1343f2[_0x5bb4('0x15b')]());return _0x450f71;}[_0x5bb4('0x4')](_0x13dcba,_0x578607,_0x455202=null,_0x43f765={}){if(_0x455202=_0x455202||Rt(_0x578607),_0x13dcba[_0x5bb4('0x7c')])return null;if(_0x5bb4('0xfe')===this['_trackFormatChanges']){const _0x43afe9=this[_0x5bb4('0x141')]['getSuggestionCallback'](_0x5bb4('0x16e'),_0x455202,_0x5bb4('0x13b'));return this[_0x5bb4('0x12f')](()=>_0x43afe9([_0x13dcba],_0x578607,_0x43f765)),null;}const _0x2814c0=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')](_0x5bb4('0x9'))['me'],_0x54b964=[];if(_0x5bb4('0xa0')!==this[_0x5bb4('0x4b')])for(const {suggestion:_0x4ca903,meta:_0x291f63}of this[_0x5bb4('0xcf')](_0x13dcba,_0x5bb4('0x98')))_0x291f63['isOwn']&&!_0x291f63['isInsideObject']&&_0x54b964[_0x5bb4('0x6')](..._0x4ca903[_0x5bb4('0xd7')]());const _0x50952e=function(_0x5d27e7,_0x49a578){const _0x42a35e=[];for(const _0x592cd0 of _0x49a578){const _0x17a86d=_0x5d27e7[_0x5bb4('0x125')](_0x592cd0);_0x17a86d&&_0x42a35e[_0x5bb4('0x6')](_0x17a86d);}return _0x42a35e;}(_0x13dcba,_0x54b964),_0x22b9f3=function(_0x5ce97b,_0x2ca509){const _0x1481e6=[_0x5ce97b];for(const _0x211544 of _0x2ca509){let _0x449b7e=0x0;for(;_0x449b7e<_0x1481e6[_0x5bb4('0x96')];){const _0x28704e=_0x1481e6[_0x449b7e]['getDifference'](_0x211544);_0x1481e6[_0x5bb4('0x108')](_0x449b7e,0x1,..._0x28704e),_0x449b7e+=_0x28704e['length'];}}return _0x1481e6;}(_0x13dcba,_0x54b964);_0x50952e[_0x5bb4('0x96')]&&this['_model'][_0x5bb4('0x7a')](()=>{for(const _0x147bd9 of _0x50952e){const _0x3278c1=this[_0x5bb4('0x141')]['getSuggestionCallback'](_0x5bb4('0x16e'),_0x455202,_0x5bb4('0x13b'));this[_0x5bb4('0x12f')](()=>_0x3278c1([_0x147bd9],_0x578607,_0x43f765));}});for(const _0x181af5 of _0x22b9f3){let _0x4a4af9=null,_0x3d2b4b=_0x181af5[_0x5bb4('0xe1')],_0x5af05f=_0x181af5['end'];for(const {suggestion:_0x263c09,meta:_0x13acd8}of this[_0x5bb4('0xcf')](_0x181af5,'formatInline')){if(!_0x13acd8[_0x5bb4('0x14')])continue;if(_0x263c09[_0x5bb4('0x97')]!=_0x455202)continue;if(!Gt(_0x263c09,_0x43f765))continue;const _0x59bfc5=_0x263c09[_0x5bb4('0x157')]();if(_0x59bfc5['containsRange'](_0x181af5,!0x0))return null;_0x3d2b4b=_0x3d2b4b[_0x5bb4('0x75')](_0x59bfc5[_0x5bb4('0xe1')])?_0x3d2b4b:_0x59bfc5['start'],_0x5af05f=_0x5af05f[_0x5bb4('0x133')](_0x59bfc5['end'])?_0x5af05f:_0x59bfc5['end'],_0x4a4af9?_0x59bfc5['start'][_0x5bb4('0x75')](_0x4a4af9[_0x5bb4('0x157')]()[_0x5bb4('0xe1')])?(_0x4a4af9[_0x5bb4('0xd6')](),_0x4a4af9=_0x263c09):_0x263c09[_0x5bb4('0xd6')]():_0x4a4af9=_0x263c09;}const _0x53fa68=this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x3d2b4b,_0x5af05f);if(_0x4a4af9)this['_setSuggestionRange'](_0x4a4af9,_0x53fa68);else{const _0x3727b0=_0x4f0212(),_0x13a1b8=_0x2814c0['id'];this[_0x5bb4('0x27')]({'id':_0x3727b0,'type':_0x5bb4('0xe4')+_0x455202,'data':_0x578607,'createdAt':new Date(),'authorId':_0x13a1b8,'attributes':_0x43f765}),this[_0x5bb4('0x24')](_0x5bb4('0xe4')+_0x455202,_0x3727b0,_0x13a1b8,_0x53fa68);}}return null;}[_0x5bb4('0x80')](_0x7c3d3e,_0x5dcaec,_0x10bc1a=[],_0x3f8425=null,_0x30971b={}){_0x5dcaec[_0x5bb4('0x8a')]||(_0x5dcaec[_0x5bb4('0x8a')]=_0x5dcaec[_0x5bb4('0x10e')]),_0x5dcaec[_0x5bb4('0x10b')]=_0x7c3d3e['is'](_0x5bb4('0x1d')),_0x3f8425=_0x3f8425||Rt(_0x5dcaec);const _0xa943c6=_0x10bc1a[_0x5bb4('0x20')](_0x4342ca=>Ut(_0x4342ca,this[_0x5bb4('0x1e')])),_0x5e7247=_0x7c3d3e['is'](_0x5bb4('0x1d'))?_0x7c3d3e:Ut(_0x7c3d3e,this[_0x5bb4('0x1e')]);if(_0x5bb4('0xfe')===this[_0x5bb4('0x4b')]){const _0x124688=this[_0x5bb4('0x141')][_0x5bb4('0x94')]('formatBlock',_0x3f8425,_0x5bb4('0x13b'));return this[_0x5bb4('0x12f')](()=>_0x124688([_0x5e7247],_0x5dcaec,_0x30971b)),null;}_0xa943c6['push'](_0x5e7247);let _0x2ddd79=!0x0;for(const _0x46370b of _0xa943c6)if(!this[_0x5bb4('0x55')](_0x46370b)){_0x2ddd79=!0x1;break;}if(_0x2ddd79&&'always'!==this[_0x5bb4('0x4b')]){const _0xc526d9=this[_0x5bb4('0x141')][_0x5bb4('0x94')]('formatBlock',_0x3f8425,_0x5bb4('0x13b'));return this[_0x5bb4('0x12f')](()=>_0xc526d9([_0x5e7247],_0x5dcaec,_0x30971b)),null;}let _0x230bdd=null,_0x15fe5e=_0x5e7247[_0x5bb4('0xe1')],_0x34402b=_0x5e7247[_0x5bb4('0xc3')];for(const {suggestion:_0x1ef477,meta:_0x547ea2}of this[_0x5bb4('0xcf')](_0x5e7247,_0x5bb4('0x4d'))){if(!_0x547ea2['isOwn'])continue;if(_0x547ea2['isNextTo']||_0x547ea2[_0x5bb4('0x14e')]||_0x547ea2['isInsideObject'])continue;if(_0x1ef477[_0x5bb4('0x43')][_0x5bb4('0x8a')]!=_0x5dcaec[_0x5bb4('0x8a')])continue;if(!Gt(_0x1ef477,_0x30971b))continue;const _0x540c4b=_0x1ef477[_0x5bb4('0x157')]();if(_0x1ef477[_0x5bb4('0x97')]==_0x3f8425){if(_0x540c4b[_0x5bb4('0x28')](_0x5e7247,!0x0))return null;_0x15fe5e=_0x15fe5e[_0x5bb4('0x75')](_0x540c4b[_0x5bb4('0xe1')])?_0x15fe5e:_0x540c4b['start'],_0x34402b=_0x34402b[_0x5bb4('0x133')](_0x540c4b[_0x5bb4('0xc3')])?_0x34402b:_0x540c4b['end'],_0x230bdd?_0x540c4b[_0x5bb4('0xe1')][_0x5bb4('0x75')](_0x230bdd[_0x5bb4('0x157')]()[_0x5bb4('0xe1')])?(_0x230bdd[_0x5bb4('0xd6')](),_0x230bdd=_0x1ef477):_0x1ef477['removeMarkers']():_0x230bdd=_0x1ef477;}else{const _0x7d7d4a=_0x5e7247[_0x5bb4('0x125')](_0x540c4b);this[_0x5bb4('0x12c')](_0x1ef477,_0x7d7d4a);}}const _0x5a42e1=this[_0x5bb4('0x93')]['plugins']['get'](_0x5bb4('0x9'))['me'],_0x1f2548=_0x4f0212(),_0x29c66a=_0x5a42e1['id'];if(_0x230bdd)return this[_0x5bb4('0x14a')](_0x230bdd,this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x15fe5e,_0x34402b)),_0x230bdd;{const _0x39870c=this['_setSuggestionData']({'id':_0x1f2548,'type':'formatBlock:'+_0x3f8425,'data':_0x5dcaec,'createdAt':new Date(),'authorId':_0x29c66a,'attributes':_0x30971b});return this['_addSuggestionMarker'](_0x5bb4('0x47')+_0x3f8425,_0x1f2548,_0x29c66a,this[_0x5bb4('0x1e')]['createRange'](_0x15fe5e,_0x34402b)),_0x39870c;}}[_0x5bb4('0xcc')](_0x4950e5,_0x5748cd,_0x173a42=[],_0x952aaf=null,_0x54bdb9={}){_0x5748cd['formatGroupId']||(_0x5748cd[_0x5bb4('0x8a')]=_0x5748cd[_0x5bb4('0x10e')]);const _0x5e6246=_0x4950e5[0x0];_0x5748cd['multipleBlocks']=_0x5e6246['is']('range'),_0x952aaf=_0x952aaf||Rt(_0x5748cd);const _0x3faffe=_0x173a42[_0x5bb4('0x20')](_0x27b4df=>Ut(_0x27b4df,this['_model'])),_0x5c2448=_0x5e6246['is']('range')?_0x4950e5:_0x4950e5[_0x5bb4('0x20')](_0x4eeac9=>Ut(_0x4eeac9,this[_0x5bb4('0x1e')]));if(_0x5bb4('0xfe')===this[_0x5bb4('0x4b')]){const _0x329b98=this[_0x5bb4('0x141')]['getSuggestionCallback'](_0x5bb4('0x4d'),_0x952aaf,'accept');return this[_0x5bb4('0x12f')](()=>_0x329b98(_0x5c2448,_0x5748cd,_0x54bdb9)),null;}_0x3faffe[_0x5bb4('0x6')](..._0x5c2448);let _0x2fe3ab=!0x0;for(const _0x1ca2b5 of _0x3faffe)if(!this[_0x5bb4('0x55')](_0x1ca2b5)){_0x2fe3ab=!0x1;break;}if(_0x2fe3ab&&'always'!==this['_trackFormatChanges']){const _0x134eea=this[_0x5bb4('0x141')]['getSuggestionCallback']('formatBlock',_0x952aaf,_0x5bb4('0x13b'));return this[_0x5bb4('0x12f')](()=>_0x134eea(_0x5c2448,_0x5748cd,_0x54bdb9)),null;}const _0x55ad54=this[_0x5bb4('0x93')]['plugins']['get'](_0x5bb4('0x9'))['me'];for(const _0x37cacb of this[_0x5bb4('0xef')]()){if(_0x37cacb[_0x5bb4('0x163')]['id']!=_0x55ad54['id'])continue;if('formatBlock'!=_0x37cacb[_0x5bb4('0xc1')]||_0x37cacb[_0x5bb4('0x43')][_0x5bb4('0x8a')]!=_0x5748cd['formatGroupId'])continue;if(!Gt(_0x37cacb,_0x54bdb9))continue;const _0x22f4f2=_0x37cacb['subType']==_0x952aaf;for(let _0x5c7141=0x0;_0x5c7141<_0x5c2448[_0x5bb4('0x96')];_0x5c7141++){const _0x2d75c9=_0x5c2448[_0x5c7141];for(const _0x5a284d of _0x37cacb[_0x5bb4('0x82')]()){const _0x17bcd8=_0x5a284d[_0x5bb4('0xfd')]();if(_0x2d75c9['isEqual'](_0x17bcd8)){_0x22f4f2?(_0x5c2448[_0x5bb4('0x108')](_0x5c7141,0x1),_0x5c7141--):_0x37cacb[_0x5bb4('0x8d')](_0x5a284d['name']);break;}}}}if(0x0==_0x5c2448[_0x5bb4('0x96')])return null;const _0x3d9ddf=this[_0x5bb4('0x141')][_0x5bb4('0x94')](_0x5bb4('0x4d'),_0x952aaf,_0x5bb4('0x71'));for(const _0x170bda of this[_0x5bb4('0xef')]())if(_0x170bda[_0x5bb4('0x163')]['id']==_0x55ad54['id']&&'formatBlock'==_0x170bda[_0x5bb4('0xc1')]&&_0x170bda[_0x5bb4('0x43')][_0x5bb4('0x8a')]==_0x5748cd['formatGroupId']&&_0x170bda['subType']==_0x952aaf&&Gt(_0x170bda,_0x54bdb9)&&(_0x3d9ddf(_0x170bda[_0x5bb4('0xd7')](),_0x5c2448)||_0x3d9ddf(_0x5c2448,_0x170bda['getRanges']()))){for(const _0x47a0d9 of _0x5c2448)_0x170bda[_0x5bb4('0x8c')](_0x47a0d9);return _0x170bda;}const _0x328aa1=_0x4f0212(),_0x38e107=_0x55ad54['id'],_0x2eae48=_0x5bb4('0x47')+_0x952aaf,_0xca8d7a=this[_0x5bb4('0x27')]({'id':_0x328aa1,'type':_0x2eae48,'data':_0x5748cd,'createdAt':new Date(),'authorId':_0x38e107,'attributes':_0x54bdb9});for(const _0x43aa45 of _0x5c2448)this['_addSuggestionMarker'](_0x2eae48,_0x328aa1,_0x38e107,_0x43aa45,_0x1343f2[_0x5bb4('0x15b')]());return _0xca8d7a;}[_0x5bb4('0x148')](_0x31adc3,_0x44b802=null,_0x116a0c={}){if(_0x31adc3['isCollapsed'])return null;const _0x11b8d4=this[_0x5bb4('0x93')]['plugins']['get'](_0x5bb4('0x9'))['me'],_0x381535=new _0x87e607(_0x31adc3['start'],_0x31adc3['end']);for(const {suggestion:_0x44ff34,meta:_0x4d5a31}of this['_findSuggestions'](_0x381535,'insertion'))if(_0x4d5a31['isOwn']&&!_0x4d5a31[_0x5bb4('0x2f')]){if(_0x44ff34['isMultiRange']){const _0x24a8e5=_0x44ff34[_0x5bb4('0xd7')]()[_0x5bb4('0x5c')](_0x5cedb8=>_0x5bb4('0x7d')!=_0x5cedb8[_0x5bb4('0xb0')][_0x5bb4('0x3c')]);_0x24a8e5['every'](_0x2c547a=>_0x381535[_0x5bb4('0x28')](_0x2c547a,!0x0))&&_0x44ff34[_0x5bb4('0xbf')]();if(_0x24a8e5['some'](_0x5631e0=>_0x5631e0[_0x5bb4('0x28')](_0x381535,!0x0))){const _0x4bf5be=this['_suggestionFactory'][_0x5bb4('0x94')](_0x5bb4('0x85'),_0x44b802,'accept');return this[_0x5bb4('0x12f')](()=>_0x4bf5be([_0x381535],null,_0x116a0c)),null;}}else{const _0x58b457=_0x381535['getIntersection'](_0x44ff34['getFirstRange']());null!==_0x58b457&&_0x44ff34[_0x5bb4('0x110')]([_0x58b457],null,_0x116a0c);}}if(_0x381535[_0x5bb4('0x5e')](),_0x381535[_0x5bb4('0x7c')]||_0x5bb4('0x7d')==_0x381535[_0x5bb4('0xb0')][_0x5bb4('0x3c')])return null;let _0x17946b=null,_0x533785=_0x381535[_0x5bb4('0xe1')],_0x159acb=_0x381535[_0x5bb4('0xc3')];const _0x4465b0=this[_0x5bb4('0xcf')](_0x381535,_0x5bb4('0x85'));for(const {suggestion:_0x21ec97,meta:_0x83a5da}of _0x4465b0){const _0x437fd5=this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x533785,_0x159acb);if(_0x83a5da[_0x5bb4('0x14')]&&(this['_mergeNestedSuggestions']||!_0x83a5da[_0x5bb4('0x14e')]&&!_0x83a5da['isInsideObject'])){if(_0x21ec97[_0x5bb4('0x42')]){if(!Gt(_0x21ec97,_0x116a0c))continue;let _0xedf560=!0x0;for(const _0x4631a8 of _0x21ec97[_0x5bb4('0xd7')]()){if(_0x4631a8[_0x5bb4('0x28')](_0x437fd5,!0x0))return _0x21ec97;_0x437fd5[_0x5bb4('0x28')](_0x4631a8)||(_0xedf560=!0x1);}_0xedf560&&_0x21ec97[_0x5bb4('0xbf')]();}else{const _0x11e8dd=_0x21ec97[_0x5bb4('0x157')]();if(_0x11e8dd[_0x5bb4('0x28')](_0x437fd5,!0x0))return _0x21ec97;if(!Gt(_0x21ec97,_0x116a0c)){_0x437fd5[_0x5bb4('0x28')](_0x11e8dd)?_0x21ec97[_0x5bb4('0xd6')]():_0x11e8dd[_0x5bb4('0x9f')](_0x533785)?_0x533785=_0x11e8dd[_0x5bb4('0xc3')]:_0x11e8dd['containsPosition'](_0x159acb)&&(_0x159acb=_0x11e8dd[_0x5bb4('0xe1')]);continue;}_0x533785=_0x533785[_0x5bb4('0x75')](_0x11e8dd['start'])?_0x533785:_0x11e8dd[_0x5bb4('0xe1')],_0x159acb=_0x159acb[_0x5bb4('0x133')](_0x11e8dd[_0x5bb4('0xc3')])?_0x159acb:_0x11e8dd[_0x5bb4('0xc3')],_0x116a0c=Object[_0x5bb4('0x88')]({},_0x21ec97[_0x5bb4('0xd8')]),_0x17946b?_0x11e8dd[_0x5bb4('0xe1')][_0x5bb4('0x75')](_0x17946b['getFirstRange']()[_0x5bb4('0xe1')])?(_0x17946b[_0x5bb4('0xd6')](),_0x17946b=_0x21ec97):_0x21ec97[_0x5bb4('0xd6')]():_0x17946b=_0x21ec97;}}}if(_0x17946b)return this[_0x5bb4('0x14a')](_0x17946b,this['_model']['createRange'](_0x533785,_0x159acb)),_0x17946b;{const _0x4a3d1a=_0x4f0212(),_0x5036b1=this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x533785,_0x159acb),_0x561fd4=_0x11b8d4['id'],_0x3ec3e4=_0x44b802?'deletion:'+_0x44b802:'deletion',_0x1784dc=this[_0x5bb4('0x27')]({'id':_0x4a3d1a,'type':_0x3ec3e4,'createdAt':new Date(),'authorId':_0x561fd4,'attributes':_0x116a0c});return this[_0x5bb4('0x24')](_0x3ec3e4,_0x4a3d1a,_0x561fd4,_0x5036b1),_0x1784dc;}}[_0x5bb4('0x11')](_0x2b51fa,_0x45006f=_0x5bb4('0x123'),_0x872302={}){const _0x53bb82=this['editor'][_0x5bb4('0x151')][_0x5bb4('0x143')]('Users')['me'],_0x4754d9=_0x2b51fa[_0x5bb4('0x20')](_0x57c30d=>new _0x87e607(_0x57c30d['start'],_0x57c30d['end'])),_0x5712c7=new Set();for(const {suggestion:_0x3c812d,meta:_0xfc1751}of this[_0x5bb4('0xcf')](_0x4754d9,_0x5bb4('0x98')))_0xfc1751[_0x5bb4('0x14')]&&!_0xfc1751[_0x5bb4('0x2f')]&&_0x5712c7[_0x5bb4('0x4e')](_0x3c812d);for(const _0x36c742 of _0x5712c7)if(_0x36c742[_0x5bb4('0x42')]){const _0x5032d1=_0x36c742[_0x5bb4('0xd7')]();(!_0x36c742['attributes']||!_0x36c742[_0x5bb4('0xd8')][_0x5bb4('0xb')])&&(_0x5032d1[_0x5bb4('0x12e')](_0x15cc56=>_0x4754d9[_0x5bb4('0x38')](_0x15665a=>_0x15665a[_0x5bb4('0x28')](_0x15cc56,!0x0)))&&_0x36c742['discard']());if(_0x4754d9[_0x5bb4('0x12e')](_0x28adb7=>_0x5032d1[_0x5bb4('0x38')](_0x422fa6=>_0x422fa6[_0x5bb4('0x28')](_0x28adb7,!0x0)))){const _0x1a8b6a=this[_0x5bb4('0x141')][_0x5bb4('0x94')](_0x5bb4('0x85'),_0x45006f,'accept');return this[_0x5bb4('0x12f')](()=>_0x1a8b6a(_0x2b51fa,null,_0x872302)),null;}}else{const _0x2aea55=_0x36c742[_0x5bb4('0x157')]();_0x4754d9[_0x5bb4('0x38')](_0xef626e=>_0xef626e[_0x5bb4('0x28')](_0x2aea55,!0x0))&&_0x36c742['discard']();if(_0x4754d9[_0x5bb4('0x12e')](_0x3647fc=>_0x2aea55[_0x5bb4('0x28')](_0x3647fc,!0x0))){const _0xfaa0af=this[_0x5bb4('0x141')][_0x5bb4('0x94')](_0x5bb4('0x85'),_0x45006f,_0x5bb4('0x13b'));return this[_0x5bb4('0x12f')](()=>_0xfaa0af(_0x4754d9,null,_0x872302)),null;}}const _0x48cb41=this[_0x5bb4('0x141')]['getSuggestionCallback']('deletion',_0x45006f,_0x5bb4('0x71'));let _0x589623=null;for(const _0x25951e of this['getSuggestions']())if(_0x25951e[_0x5bb4('0x163')]['id']==_0x53bb82['id']&&_0x25951e[_0x5bb4('0x5d')]&&_0x5bb4('0x85')==_0x25951e['type']&&_0x25951e[_0x5bb4('0x97')]==_0x45006f&&Gt(_0x25951e,_0x872302)&&(_0x48cb41(_0x25951e['getRanges'](),_0x4754d9)||_0x48cb41(_0x4754d9,_0x25951e[_0x5bb4('0xd7')]()))){if(_0x589623){if(_0x25951e[_0x5bb4('0x159')]&&_0x25951e['commentThread'][_0x5bb4('0x96')])continue;for(const _0x1d9105 of _0x25951e[_0x5bb4('0xd7')]())_0x589623[_0x5bb4('0x129')](_0x1d9105)||_0x589623[_0x5bb4('0x8c')](_0x1d9105);_0x25951e[_0x5bb4('0xd6')]();}else{_0x589623=_0x25951e;for(const _0x767e07 of _0x4754d9)_0x25951e[_0x5bb4('0x129')](_0x767e07)||_0x25951e['addRange'](_0x767e07);}}if(_0x589623)return _0x589623;_0x5712c7['clear']();for(const {suggestion:_0x2ff5a2,meta:_0x46c823}of this['_findSuggestions'](_0x4754d9,_0x5bb4('0x85')))_0x46c823[_0x5bb4('0x14')]&&(this[_0x5bb4('0xc8')]||!_0x46c823[_0x5bb4('0x14e')]&&!_0x46c823['isInsideObject'])&&Gt(_0x2ff5a2,_0x872302)&&_0x5712c7[_0x5bb4('0x4e')](_0x2ff5a2);for(const _0x1fc5c2 of _0x5712c7){const _0xde55cd=_0x1fc5c2['getRanges']();if(!_0x872302||!_0x872302[_0x5bb4('0xb')]){if(_0x4754d9['every'](_0x2b0292=>_0xde55cd['some'](_0x54357c=>_0x54357c['containsRange'](_0x2b0292,!0x0))))return _0x1fc5c2;}(!_0x1fc5c2['attributes']||!_0x1fc5c2[_0x5bb4('0xd8')][_0x5bb4('0xb')])&&(_0xde55cd[_0x5bb4('0x12e')](_0x425e93=>_0x4754d9['some'](_0x12372f=>_0x12372f[_0x5bb4('0x28')](_0x425e93,!0x0)))&&_0x1fc5c2[_0x5bb4('0xbf')]());}const _0x1bfee2=_0x4f0212(),_0x21aec4=_0x53bb82['id'],_0x1ef260=_0x5bb4('0x8f')+_0x45006f,_0x4777b1=this[_0x5bb4('0x27')]({'id':_0x1bfee2,'type':_0x1ef260,'createdAt':new Date(),'authorId':_0x21aec4,'attributes':_0x872302});for(const _0xe98f80 of _0x4754d9)_0xe98f80[_0x5bb4('0x5e')](),_0xe98f80[_0x5bb4('0x7c')]||'$graveyard'==_0xe98f80[_0x5bb4('0xb0')][_0x5bb4('0x3c')]||this[_0x5bb4('0x24')](_0x1ef260,_0x1bfee2,_0x21aec4,_0xe98f80,_0x1343f2[_0x5bb4('0x15b')]());return _0x4777b1;}[_0x5bb4('0x12a')](_0x293413,_0x551a0b,_0x3f0f75,_0xdf24f6,_0x27d1c3){if(_0x293413['isCollapsed'])return[];if(_0x5bb4('0xfe')===this[_0x5bb4('0x4b')])return[];const _0xb3c8bb=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')](_0x5bb4('0x9'))['me']['id'],_0x5991f5=Array['from'](this['_suggestions'][_0x5bb4('0x62')]())[_0x5bb4('0x5c')](_0x18e977=>'attribute'==_0x18e977['type']&&_0x18e977[_0x5bb4('0x43')]['key']==_0x551a0b&&_0x18e977[_0x5bb4('0x129')](_0x293413));if(_0x5bb4('0x0')===this['_trackFormatChanges']){const _0x5ceef7=this['_findSuggestions'](_0x293413,_0x5bb4('0x98'))[_0x5bb4('0x5c')](({meta:_0x1b6617})=>_0x1b6617[_0x5bb4('0x14')]&&!_0x1b6617[_0x5bb4('0x9a')]&&!_0x1b6617[_0x5bb4('0x2f')])['map'](({suggestion:_0x463599})=>_0x463599);_0x5991f5[_0x5bb4('0x49')](..._0x5ceef7);}const _0x47089b=new Map([[_0x293413,_0x3f0f75]]);for(const _0x3129c0 of _0x5991f5){const _0x20595a=_0x5bb4('0x160')==_0x3129c0[_0x5bb4('0xc1')]?_0x3129c0[_0x5bb4('0x43')][_0x5bb4('0xc5')]:void 0x0,_0x1acf0a=_0x3129c0['getFirstRange'](),_0x4db521=Array[_0x5bb4('0x1')](_0x47089b['keys']())['find'](_0x3b9451=>_0x3b9451[_0x5bb4('0x104')](_0x1acf0a));if(!_0x4db521)continue;const _0x21cd69=_0x4db521['getDifference'](_0x1acf0a);this[_0x5bb4('0x7f')](_0x551a0b)&&_0x5bb4('0x98')==_0x3129c0[_0x5bb4('0xc1')]&&0x0!=_0x21cd69[_0x5bb4('0x96')]||(_0x47089b[_0x5bb4('0xbc')](_0x4db521),_0x21cd69[_0x5bb4('0xea')](_0x24dfa3=>{_0x47089b[_0x5bb4('0xba')](_0x24dfa3,_0x3f0f75);}),'insertion'!=_0x3129c0[_0x5bb4('0xc1')]&&_0x20595a!=_0xdf24f6&&_0x47089b['set'](_0x4db521[_0x5bb4('0x125')](_0x1acf0a),_0x20595a));}const _0x4a2cf3=[];for(const [_0x6ab091,_0x22b8cb]of _0x47089b){const _0x4bdd56=_0x4f0212(),_0x3c4c83={'key':_0x551a0b,'oldValue':_0x22b8cb,'newValue':_0xdf24f6};_0x551a0b[_0x5bb4('0x96')]>0x25&&console['warn'](_0x5bb4('0xdf'),{'key':_0x551a0b});const _0x5ffc0a=(_0x5bb4('0x1c')+(_0x551a0b+'|'+Rt({'newValue':_0xdf24f6})))[_0x5bb4('0x6b')](0x0,0x3c),_0x5cce9d=this[_0x5bb4('0x27')]({'id':_0x4bdd56,'type':_0x5ffc0a,'data':_0x3c4c83,'createdAt':new Date(),'authorId':_0xb3c8bb,'attributes':_0x27d1c3});_0x4a2cf3[_0x5bb4('0x6')](_0x5cce9d),this[_0x5bb4('0x24')](_0x5ffc0a,_0x4bdd56,_0xb3c8bb,_0x6ab091);}return _0x4a2cf3;}[_0x5bb4('0xe5')](_0x2761c3){this[_0x5bb4('0xdb')][_0x5bb4('0x4e')](_0x2761c3);}[_0x5bb4('0x136')](_0x24c6c9){this[_0x5bb4('0x9d')][_0x5bb4('0x4e')](_0x24c6c9);}[_0x5bb4('0x4c')](_0x170c0a,_0x12f12b=[],_0x318db5=[]){this['enableCommand'](_0x170c0a,(_0x316340,..._0x3b158c)=>{this[_0x5bb4('0x95')](()=>{_0x316340(..._0x3b158c);});});for(const _0x4d05f4 of _0x12f12b)this['_registerInlineAttribute'](_0x4d05f4);for(const _0x485519 of _0x318db5)this[_0x5bb4('0xe5')](_0x485519);}[_0x5bb4('0x14a')](_0x24633b,_0x21a610){const _0x3634b0=_0x24633b[_0x5bb4('0xe6')]();this[_0x5bb4('0x1e')]['change'](_0x5abb90=>{_0x5abb90[_0x5bb4('0x170')](_0x3634b0,{'range':_0x21a610});});}['_addThreadToSuggestion'](_0x52780f){const _0x1493b3=_0x52780f['id'],_0x6a037=this['editor']['config'][_0x5bb4('0x143')]('collaboration.channelId');this['_commentsRepository'][_0x5bb4('0x36')](_0x1493b3)||this[_0x5bb4('0xca')][_0x5bb4('0x1f')]({'channelId':_0x6a037,'threadId':_0x1493b3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5ea4cd=this[_0x5bb4('0xca')][_0x5bb4('0x117')](_0x1493b3);_0x5ea4cd[_0x5bb4('0x52')]('isRemovable'),_0x5ea4cd[_0x5bb4('0x142')]=!0x1,_0x52780f[_0x5bb4('0x159')]=_0x5ea4cd;}[_0x5bb4('0x17')](_0x5adb1e,_0x53950f,_0x4ffa75,_0x413a71){if(_0x5adb1e[_0x5bb4('0xc1')]!=_0x53950f||_0x5adb1e[_0x5bb4('0x97')]!=_0x4ffa75||_0x5adb1e[_0x5bb4('0x51')]['id']!=_0x413a71)throw this[_0x5bb4('0x93')][_0x5bb4('0xb1')](_0x5bb4('0x77')),new _0x426846(_0x5bb4('0x77'),this);}[_0x5bb4('0x12c')](_0x4df9d3,_0x5a34fc){const _0x388844=_0x4df9d3['getFirstRange']();if(_0x5a34fc[_0x5bb4('0x115')](_0x388844))_0x4df9d3[_0x5bb4('0xd6')]();else{if(_0x388844[_0x5bb4('0x28')](_0x5a34fc)){const _0x17b65f=this[_0x5bb4('0x1e')][_0x5bb4('0xb5')](_0x5a34fc[_0x5bb4('0xe1')]['nodeBefore'],_0x5bb4('0xc3'));this[_0x5bb4('0x14a')](_0x4df9d3,this[_0x5bb4('0x1e')]['createRange'](_0x388844[_0x5bb4('0xe1')],_0x17b65f));const _0x3631dd=_0x4f0212(),_0x326fa3=_0x4df9d3[_0x5bb4('0x51')]['id'],_0x1fc32e=_0x4df9d3[_0x5bb4('0xc1')]+':'+_0x4df9d3[_0x5bb4('0x97')];this[_0x5bb4('0x27')]({'id':_0x3631dd,'type':_0x1fc32e,'createdAt':new Date(),'authorId':_0x326fa3,'data':_0x4df9d3['data'],'attributes':_0x4df9d3[_0x5bb4('0xd8')]});const _0x1f66f5=this[_0x5bb4('0x1e')][_0x5bb4('0xb5')](_0x5a34fc['end'][_0x5bb4('0x9b')],'after'),_0x1396a6=this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x1f66f5,_0x388844[_0x5bb4('0xc3')]);this['_addSuggestionMarker'](_0x1fc32e,_0x3631dd,_0x326fa3,_0x1396a6);}else{if(_0x388844['containsPosition'](_0x5a34fc[_0x5bb4('0xe1')])){const _0x141562=this['_model'][_0x5bb4('0xb5')](_0x5a34fc[_0x5bb4('0xe1')]['nodeBefore'],'end');this[_0x5bb4('0x14a')](_0x4df9d3,this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x388844[_0x5bb4('0xe1')],_0x141562));}else{const _0x2ecc54=this[_0x5bb4('0x1e')][_0x5bb4('0xb5')](_0x5a34fc[_0x5bb4('0xc3')]['parent'],_0x5bb4('0x122'));this[_0x5bb4('0x14a')](_0x4df9d3,this[_0x5bb4('0x1e')]['createRange'](_0x2ecc54,_0x388844[_0x5bb4('0xc3')]));}}}}[_0x5bb4('0x55')](_0x38ccef){for(const {suggestion:_0xb1f3a1,meta:_0x378de2}of this['_findSuggestions'](_0x38ccef,'insertion')){if(!_0x378de2[_0x5bb4('0x14')])continue;const _0xc09ad=_0xb1f3a1[_0x5bb4('0xd7')]();for(const _0x12cd61 of _0xc09ad)if(!_0x38ccef['getDifference'](_0x12cd61)['length'])return!0x0;}return!0x1;}[_0x5bb4('0x150')](_0x5ade1d){const _0x4c8b81=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')](_0x5bb4('0x9'))[_0x5bb4('0x105')](_0x5ade1d);if(!_0x4c8b81)throw new _0x426846('track-changes-user-not-found',this);return _0x4c8b81;}['_getExternalAuthor'](_0x32603e){const _0x4f9474=this[_0x5bb4('0x93')]['plugins']['get'](_0x5bb4('0x9')),_0x5ee7be=_0x457066(_0x5bb4('0x12')+_0x32603e),_0x2b323a=_0x4f9474[_0x5bb4('0x105')](_0x5ee7be);return _0x2b323a||_0x4f9474['addUser']({'id':_0x5ee7be,'name':_0x32603e});}[_0x5bb4('0x8')](_0x2920ee,_0x3f30da,_0x16a551,_0x141b55,_0x7d57d1){const _0x1651ab=this[_0x5bb4('0x150')](_0x141b55),_0x27d765=this[_0x5bb4('0x141')][_0x5bb4('0x63')](_0x2920ee,_0x3f30da,_0x16a551,_0x1651ab,_0x7d57d1,_0x54cd20=>this['_updateSuggestionData'](_0x16a551,{'attributes':_0x54cd20}));return this['listenTo'](_0x27d765,'accept',()=>{this[_0x5bb4('0x84')](_0x16a551,{'state':'accepted'});},{'priority':_0x5bb4('0x8b')}),this[_0x5bb4('0x22')](_0x27d765,_0x5bb4('0xbf'),()=>{this[_0x5bb4('0x84')](_0x16a551,{'state':_0x5bb4('0x7e')});},{'priority':_0x5bb4('0x8b')}),this[_0x5bb4('0x44')][_0x5bb4('0xba')](_0x16a551,_0x27d765),this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x27d765,_0x5bb4('0x37')),_0x27d765;}[_0x5bb4('0xe2')](_0x2f1e9f){const _0x1cd79f=_0x2f1e9f[_0x5bb4('0xaf')](':');return{'group':_0x1cd79f[0x0],'type':_0x1cd79f[0x1],'subType':_0x1cd79f['length']>=0x5?_0x1cd79f[0x2]:null,'id':_0x1cd79f[_0x5bb4('0x96')]<0x5?_0x1cd79f[0x2]:_0x1cd79f[0x3],'authorId':_0x1cd79f[_0x5bb4('0x96')]<0x5?_0x1cd79f[0x3]:_0x1cd79f[0x4],'markerCount':0x6==_0x1cd79f[_0x5bb4('0x96')]?_0x1cd79f[0x5]:null};}['_breakSuggestionMarker'](_0x4b4447,_0x1f607b,_0x52fa9f){const _0x142c33=_0x4b4447[_0x5bb4('0x157')](),_0x58b248=_0x142c33[_0x5bb4('0xe1')],_0x19d02c=_0x142c33[_0x5bb4('0xc3')];this[_0x5bb4('0x14a')](_0x4b4447,this['_model'][_0x5bb4('0x23')](_0x58b248,_0x1f607b));const _0x42b7c6=_0x4f0212(),_0x14867f=_0x4b4447[_0x5bb4('0x51')]['id'],_0x204bf7=_0x4b4447[_0x5bb4('0xc1')]+(_0x4b4447['subType']?':'+_0x4b4447[_0x5bb4('0x97')]:'');this['_setSuggestionData']({'id':_0x42b7c6,'type':_0x204bf7,'createdAt':new Date(),'authorId':_0x14867f,'originalSuggestionId':_0x4b4447['id'],'attributes':_0x4b4447['attributes'],'data':_0x4b4447[_0x5bb4('0x43')]});const _0x1a89fa=Pt(_0x4b4447);(_0x5bb4('0x4d')==_0x4b4447[_0x5bb4('0xc1')]||_0x1a89fa&&this[_0x5bb4('0x7f')](_0x1a89fa))&&(_0x52fa9f=this[_0x5bb4('0x1e')][_0x5bb4('0x111')](_0x52fa9f[_0x5bb4('0x9b')])),this['_addSuggestionMarker'](_0x204bf7,_0x42b7c6,_0x14867f,this[_0x5bb4('0x1e')]['createRange'](_0x52fa9f,_0x19d02c));}[_0x5bb4('0xcf')](_0x1fc05d,_0x136523=null){const _0x3a0e32=[],_0x392ce8=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')](_0x5bb4('0x9'))['me'];Array[_0x5bb4('0xb7')](_0x1fc05d)||(_0x1fc05d=[_0x1fc05d]);for(const _0x5d89a0 of this['getSuggestions']()){if(!_0x5d89a0[_0x5bb4('0x5d')])continue;if(_0x136523&&_0x5d89a0[_0x5bb4('0xc1')]!=_0x136523)continue;let _0x215982=!0x1;for(const _0x5d8ddb of _0x5d89a0[_0x5bb4('0xd7')]()){for(const _0x4cd1c4 of _0x1fc05d){const _0x1fa532=_0x4cd1c4[_0x5bb4('0xe1')][_0x5bb4('0x115')](_0x5d8ddb[_0x5bb4('0xc3')])||_0x4cd1c4[_0x5bb4('0xc3')][_0x5bb4('0x115')](_0x5d8ddb[_0x5bb4('0xe1')]);if(_0x1fa532||_0x4cd1c4[_0x5bb4('0x125')](_0x5d8ddb)){const _0x55698f=_0x4cd1c4[_0x5bb4('0x28')](_0x5d8ddb)&&Tt(this[_0x5bb4('0x1e')][_0x5bb4('0x118')],_0x5d8ddb[_0x5bb4('0xe1')],_0x4cd1c4),_0x4d4ad8=_0x5d8ddb[_0x5bb4('0x28')](_0x4cd1c4)&&Tt(this[_0x5bb4('0x1e')]['schema'],_0x4cd1c4[_0x5bb4('0xe1')],_0x5d8ddb);_0x3a0e32[_0x5bb4('0x6')]({'suggestion':_0x5d89a0,'meta':{'isOwn':_0x392ce8==_0x5d89a0['author'],'isNextTo':_0x1fa532,'isInsideObject':_0x55698f,'containsRangeInObject':_0x4d4ad8}}),_0x215982=!0x0;break;}}if(_0x215982)break;}}return _0x3a0e32;}[_0x5bb4('0x24')](_0x4e62b1,_0x4fe23a,_0x19fe75,_0x3e5fff,_0x462e15){this[_0x5bb4('0x1e')][_0x5bb4('0x7a')](_0x423808=>{let _0x1a45a5=_0x5bb4('0xec')+_0x4e62b1+':'+_0x4fe23a+':'+_0x19fe75;_0x462e15&&(_0x1a45a5=_0x1a45a5+':'+_0x462e15),_0x423808[_0x5bb4('0x72')](_0x1a45a5,{'range':_0x3e5fff,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5bb4('0x10c')](_0x480245){const _0x523f7b=_0x480245[_0x5bb4('0x29')],_0x165a01=_0x480245[_0x5bb4('0x120')];_0x480245['previous']=null,_0x480245[_0x5bb4('0x120')]=null,null!=_0x523f7b&&(_0x523f7b[_0x5bb4('0x120')]=_0x165a01),null!=_0x165a01&&(_0x165a01['previous']=_0x523f7b),_0x5bb4('0xb6')==this[_0x5bb4('0xf3')][_0x5bb4('0x143')](_0x480245)&&(this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x480245,_0x5bb4('0x100')),this[_0x5bb4('0x15c')]('suggestionUnloaded',_0x480245,_0x523f7b,_0x165a01));}[_0x5bb4('0x27')](_0x576094){const _0x1c7e10=_0x576094['id'],_0x6b0b21=this[_0x5bb4('0xd9')](_0x576094);if(this[_0x5bb4('0x65')]&&this[_0x5bb4('0x65')][_0x5bb4('0x140')]){const _0x41738c=this[_0x5bb4('0x93')][_0x5bb4('0x151')][_0x5bb4('0x143')]('PendingActions'),_0x37d347=_0x6b0b21[_0x5bb4('0xf9')],_0x262a54=_0x6b0b21['subType']?_0x6b0b21[_0x5bb4('0xc1')]+':'+_0x6b0b21[_0x5bb4('0x97')]:_0x6b0b21['type'],_0xdc4fbe=this[_0x5bb4('0x93')][_0x5bb4('0xc')],_0x385bbc=_0x41738c[_0x5bb4('0x4e')](_0x1f39dc(_0xdc4fbe,'PENDING_ACTION_SUGGESTION')),_0x59e344={'id':_0x1c7e10,'type':_0x262a54,'hasComments':_0x37d347,'data':_0x576094[_0x5bb4('0x43')]||null,'originalSuggestionId':_0x576094[_0x5bb4('0x171')]||null,'attributes':_0x6b0b21[_0x5bb4('0xd8')]};this[_0x5bb4('0x65')]['addSuggestion'](_0x59e344)['then'](_0x122e1d=>{_0x6b0b21['_saved']=!0x0,_0x41738c['remove'](_0x385bbc),_0x122e1d&&_0x122e1d[_0x5bb4('0x1a')]&&(this['_suggestions']['get'](_0x1c7e10)['createdAt']=_0x122e1d[_0x5bb4('0x1a')]);})['catch'](_0x45cc93=>{throw _0x841a3(_0x5bb4('0x13f')),this[_0x5bb4('0x93')][_0x5bb4('0x12d')][_0x5bb4('0x30')]({'isUndoable':!0x1},()=>{_0x6b0b21[_0x5bb4('0xbf')]();}),_0x6b0b21['stopListening'](),this['_suggestions'][_0x5bb4('0xbc')](_0x6b0b21['id']),this[_0x5bb4('0xf3')][_0x5bb4('0xbc')](_0x6b0b21),_0x45cc93;});}return _0x6b0b21;}[_0x5bb4('0x7f')](_0x5c648b){return this[_0x5bb4('0xdb')][_0x5bb4('0x135')](_0x5c648b);}[_0x5bb4('0x84')](_0xe6f03a,_0x4f7ca0){const _0x901d44=this['editor'][_0x5bb4('0x151')]['get']('PendingActions'),_0x5aeba4=this[_0x5bb4('0x2e')](_0xe6f03a);if(this[_0x5bb4('0x65')]&&this[_0x5bb4('0x65')][_0x5bb4('0xa')]){if(_0x5aeba4[_0x5bb4('0x74')]){const _0x28616a=_0x901d44[_0x5bb4('0x4e')](_0x1f39dc(this[_0x5bb4('0x93')][_0x5bb4('0xc')],_0x5bb4('0xa7')));this['_adapter'][_0x5bb4('0xa')](_0xe6f03a,_0x4f7ca0)['then'](()=>{_0x901d44[_0x5bb4('0x18')](_0x28616a);});}else _0x5aeba4['on'](_0x5bb4('0x14b'),()=>{this['_updateSuggestionData'](_0xe6f03a,_0x4f7ca0);});}}[_0x5bb4('0x40')](_0x3ec72a){if(!this[_0x5bb4('0x65')]||!this[_0x5bb4('0x65')][_0x5bb4('0x2e')])throw new _0x426846(_0x5bb4('0x10f'),this);return this[_0x5bb4('0x65')][_0x5bb4('0x2e')](_0x3ec72a);}[_0x5bb4('0x14c')](_0x37192d){const {id:_0x5b49a5,type:_0x3b1fdb,subType:_0x2e6205,authorId:_0x428e78}=this[_0x5bb4('0xe2')](_0x37192d),_0x33fe24=this['_suggestions'][_0x5bb4('0x143')](_0x5b49a5)||this[_0x5bb4('0x8')](_0x3b1fdb,_0x2e6205,_0x5b49a5,_0x428e78,{});switch(this['_checkSuggestionCorrectness'](_0x33fe24,_0x3b1fdb,_0x2e6205,_0x428e78),this[_0x5bb4('0xf3')][_0x5bb4('0x143')](_0x33fe24)){case _0x5bb4('0x37'):this[_0x5bb4('0x40')](_0x5b49a5)[_0x5bb4('0xcb')](_0x3cbd7a=>{let _0x254b9e=Promise[_0x5bb4('0xf4')]();_0x3cbd7a[_0x5bb4('0xf9')]&&(_0x254b9e=this['_commentsRepository']['fetchCommentThread']({'channelId':this[_0x5bb4('0x93')][_0x5bb4('0xdc')][_0x5bb4('0x143')]('collaboration.channelId'),'threadId':_0x5b49a5})),_0x254b9e[_0x5bb4('0xcb')](()=>{this[_0x5bb4('0xd9')](_0x3cbd7a)[_0x5bb4('0x74')]=!0x0;});}),this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x33fe24,_0x5bb4('0xcd'));break;case'removed':this[_0x5bb4('0x84')](_0x5b49a5,{'state':_0x5bb4('0xf6')});case _0x5bb4('0x61'):this[_0x5bb4('0xf3')][_0x5bb4('0xba')](_0x33fe24,_0x5bb4('0xb6')),this['fire'](_0x5bb4('0xc9'),_0x33fe24);break;case _0x5bb4('0xb6'):this[_0x5bb4('0x15c')](_0x5bb4('0x79'),_0x33fe24);}return _0x33fe24[_0x5bb4('0xe0')](_0x37192d),_0x33fe24;}[_0x5bb4('0x8e')](_0x34530c){const _0x4ab635=Array[_0x5bb4('0x1')](_0x34530c),_0x5a51d9=_0x4ab635[_0x5bb4('0x5c')](_0x39cb82=>_0x5bb4('0x160')==_0x39cb82[_0x5bb4('0xc1')]);this['_refreshAttributeSuggestionsChain'](_0x5a51d9);const _0x508e46=_0x4ab635['filter'](_0x3ffe01=>!_0x3ffe01[_0x5bb4('0x42')]&&'attribute'!=_0x3ffe01[_0x5bb4('0xc1')]),_0x142cf8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x246f9c=>!_0x246f9c[_0x5bb4('0x42')]&&_0x5bb4('0x160')!=_0x246f9c[_0x5bb4('0xc1')]),_0x458c87=_0x142cf8['filter'](_0x58d6c7=>!_0x34530c['has'](_0x58d6c7)),_0xb39b26=new Map(_0x142cf8[_0x5bb4('0x20')](_0x4b922c=>[_0x4b922c,this[_0x5bb4('0x141')][_0x5bb4('0x94')](_0x4b922c[_0x5bb4('0xc1')],_0x4b922c[_0x5bb4('0x97')],_0x5bb4('0xd5'))])),_0x2fa6f7=new Map(_0x142cf8[_0x5bb4('0x20')](_0x2d375c=>[_0x2d375c,_0x2d375c[_0x5bb4('0x157')]()])),_0x23e7e0=new Set(),_0x47e4d9=new Set();for(let _0x50833a=0x0;_0x50833a<_0x508e46[_0x5bb4('0x96')];_0x50833a++)_0x4c59e2(_0x508e46[_0x50833a],_0x508e46,_0x50833a+0x1);for(let _0x49a6dc=0x0;_0x49a6dc<_0x508e46[_0x5bb4('0x96')];_0x49a6dc++)_0x4c59e2(_0x508e46[_0x49a6dc],_0x458c87,0x0);const _0x547e9a=new Set();for(let _0x25e297=0x0;_0x25e297<_0x508e46[_0x5bb4('0x96')];_0x25e297++){const _0x3b0f0d=_0x508e46[_0x25e297];!_0x47e4d9[_0x5bb4('0x135')](_0x3b0f0d)&&_0x3b0f0d[_0x5bb4('0x29')]&&(_0x547e9a[_0x5bb4('0x4e')](_0x3b0f0d[_0x5bb4('0x29')]),_0x3b0f0d[_0x5bb4('0x29')][_0x5bb4('0x120')]===_0x3b0f0d&&(_0x3b0f0d[_0x5bb4('0x29')][_0x5bb4('0x120')]=null),_0x3b0f0d[_0x5bb4('0x29')]=null),!_0x23e7e0[_0x5bb4('0x135')](_0x3b0f0d)&&_0x3b0f0d[_0x5bb4('0x120')]&&(_0x547e9a[_0x5bb4('0x4e')](_0x3b0f0d[_0x5bb4('0x120')]),_0x3b0f0d['next']['previous']===_0x3b0f0d&&(_0x3b0f0d['next'][_0x5bb4('0x29')]=null),_0x3b0f0d['next']=null);}function _0x4c59e2(_0x5107bc,_0x263863,_0x11a99c){for(let _0x40ca2d=_0x11a99c;_0x40ca2d<_0x263863[_0x5bb4('0x96')];_0x40ca2d++){const _0x1887e2=_0x738ee(_0x5107bc,_0x263863[_0x40ca2d]);_0x1887e2&&(_0x1887e2[0x0][_0x5bb4('0x120')]=_0x1887e2[0x1],_0x1887e2[0x1][_0x5bb4('0x29')]=_0x1887e2[0x0],_0x23e7e0[_0x5bb4('0x4e')](_0x1887e2[0x0]),_0x47e4d9['add'](_0x1887e2[0x1]));}}function _0x738ee(_0x5b2835,_0xfc4f87){if(_0x5b2835['author']['id']!==_0xfc4f87[_0x5bb4('0x163')]['id'])return null;const _0x3a8284=_0xb39b26[_0x5bb4('0x143')](_0x5b2835)(_0x5b2835,_0xfc4f87,_0x2fa6f7[_0x5bb4('0x143')](_0x5b2835),_0x2fa6f7[_0x5bb4('0x143')](_0xfc4f87));if(!_0x3a8284)return null;return _0xb39b26[_0x5bb4('0x143')](_0xfc4f87)(_0x5b2835,_0xfc4f87,_0x2fa6f7[_0x5bb4('0x143')](_0x5b2835),_0x2fa6f7[_0x5bb4('0x143')](_0xfc4f87))?_0x3a8284[0x1][_0x5bb4('0x159')]&&_0x3a8284[0x1]['commentThread'][_0x5bb4('0x96')]?null:_0x3a8284:null;}_0x547e9a[_0x5bb4('0x131')]&&this[_0x5bb4('0x8e')](_0x547e9a);}['_refreshAttributeSuggestionsChain'](_0x34fd2c){if(0x0==_0x34fd2c[_0x5bb4('0x96')])return;const _0x2db9b9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58278f=>_0x5bb4('0x160')==_0x58278f['type']&&_0x58278f[_0x5bb4('0x13d')]),_0x5d951=[],_0x4c46ee=new Map();for(const _0x375c27 of _0x2db9b9){const _0xef80ec=_0x457066(_0x375c27[_0x5bb4('0xd8')]);_0x4c46ee['has'](_0xef80ec)||(_0x4c46ee[_0x5bb4('0xba')](_0xef80ec,_0x5d951[_0x5bb4('0x96')]),_0x5d951[_0x5bb4('0x6')]([]));const _0x5611c9=_0x4c46ee[_0x5bb4('0x143')](_0xef80ec);_0x5d951[_0x5611c9][_0x5bb4('0x6')](_0x375c27);}!function(){_0x5d951['sort']((_0x4be14b,_0x284912)=>{const _0xcb6fe1=_0x4be14b[0x0][_0x5bb4('0x1a')],_0x2ada05=_0x284912[0x0][_0x5bb4('0x1a')];return _0xcb6fe1==_0x2ada05?_0x4be14b[0x0][_0x5bb4('0xd8')][_0x5bb4('0x11d')]<_0x284912[0x0][_0x5bb4('0xd8')][_0x5bb4('0x11d')]?-0x1:0x1:_0xcb6fe1<_0x2ada05?-0x1:0x1;});for(const _0x5138af of _0x5d951)_0x5138af['sort']((_0x2913ca,_0x3b6409)=>_0x2913ca['id']<_0x3b6409['id']?-0x1:0x1);}();for(let _0xfbea34=0x0;_0xfbea34<_0x5d951['length'];_0xfbea34++){if(0x0==_0x5d951[_0xfbea34][_0x5bb4('0x96')])continue;const _0x28805c=[];for(let _0x3774b6=_0xfbea34+0x1;_0x3774b6<_0x5d951['length'];_0x3774b6++)0x0!=_0x5d951[_0x3774b6][_0x5bb4('0x96')]&&_0x5daac5(_0x5d951[_0xfbea34],_0x5d951[_0x3774b6])&&_0x28805c['push'](_0x3774b6);for(const _0x3c53bf of _0x28805c)_0x5d951[_0xfbea34]=_0x5d951[_0xfbea34]['concat'](_0x5d951[_0x3c53bf]),_0x5d951[_0x3c53bf]=[];}for(const _0x25e5ba of _0x5d951)for(let _0x3b91d4=0x0;_0x3b91d4<_0x25e5ba[_0x5bb4('0x96')];_0x3b91d4++)_0x25e5ba[_0x3b91d4][_0x5bb4('0x120')]=_0x25e5ba[_0x3b91d4+0x1]||null;for(const _0x15af63 of _0x5d951)for(let _0x8c2d9e=0x0;_0x8c2d9e<_0x15af63['length'];_0x8c2d9e++)_0x15af63[_0x8c2d9e][_0x5bb4('0x29')]=_0x15af63[_0x8c2d9e-0x1]||null;function _0x5daac5(_0x4cb28d,_0x4e54a7){if(_0x4cb28d[0x0][_0x5bb4('0x163')]!==_0x4e54a7[0x0]['author'])return!0x1;if(!function(_0x1554b7,_0x336af8){if(!_0x1554b7[_0x5bb4('0xf9')]&&!_0x336af8[_0x5bb4('0xf9')])return!0x0;if(_0x1554b7[_0x5bb4('0xf9')]&&_0x336af8[_0x5bb4('0xf9')])return!0x1;if(_0x1554b7[_0x5bb4('0xf9')]&&_0x336af8[_0x5bb4('0x1a')]<_0x1554b7[_0x5bb4('0x159')][_0x5bb4('0xa2')]['get'](0x0)[_0x5bb4('0x1a')])return!0x0;if(_0x336af8['hasComments']&&_0x1554b7[_0x5bb4('0x1a')]<_0x336af8[_0x5bb4('0x159')][_0x5bb4('0xa2')]['get'](0x0)[_0x5bb4('0x1a')])return!0x0;return!0x1;}(_0x4cb28d[0x0],_0x4e54a7[0x0]))return!0x1;const _0x5e27ae=_0xe709ef(_0x4cb28d[0x0]['attributes'],'groupId'),_0x8e7cd5=_0xe709ef(_0x4e54a7[0x0][_0x5bb4('0xd8')],_0x5bb4('0x11d'));if(!_0x53cbae(_0x5e27ae,_0x8e7cd5))return!0x1;return!!_0x4cb28d['every'](_0x18fefa=>_0x4e54a7[_0x5bb4('0x38')](_0x59c2ea=>_0x18fefa['getFirstRange']()[_0x5bb4('0x115')](_0x59c2ea['getFirstRange']())))&&_0x4e54a7[_0x5bb4('0x12e')](_0x2b3e0a=>_0x4cb28d[_0x5bb4('0x38')](_0x20420a=>_0x2b3e0a[_0x5bb4('0x157')]()[_0x5bb4('0x115')](_0x20420a[_0x5bb4('0x157')]())));}}[_0x5bb4('0x31')](_0x17ae93){const _0x4b3b47=Array[_0x5bb4('0x1')](_0x17ae93),_0x17bb1f=this[_0x5bb4('0xef')]({'skipNotAttached':!0x0}),_0x1222ee=_0x17bb1f[_0x5bb4('0x5c')](_0x284446=>!_0x17ae93[_0x5bb4('0x135')](_0x284446)),_0x44a247=new Map(_0x4b3b47[_0x5bb4('0x20')](_0x32bfc7=>[_0x32bfc7,this[_0x5bb4('0x141')][_0x5bb4('0x94')](_0x32bfc7[_0x5bb4('0xc1')],_0x32bfc7[_0x5bb4('0x97')],_0x5bb4('0x71'))])),_0x49d12d=new Map(_0x17bb1f[_0x5bb4('0x20')](_0x2cd7fb=>[_0x2cd7fb,_0x2cd7fb['getRanges']()]));for(let _0x1c886d=0x0;_0x1c886d<_0x4b3b47[_0x5bb4('0x96')];_0x1c886d++){if(_0x57c8a7(this,_0x4b3b47[_0x1c886d],_0x4b3b47,_0x1c886d+0x1))return!0x0;}for(let _0x163027=0x0;_0x163027<_0x4b3b47[_0x5bb4('0x96')];_0x163027++){if(_0x57c8a7(this,_0x4b3b47[_0x163027],_0x1222ee,0x0))return!0x0;}return!0x1;function _0x57c8a7(_0x519927,_0x1f810f,_0x4e5961,_0x5e32d5){for(let _0x2d450b=_0x5e32d5;_0x2d450b<_0x4e5961[_0x5bb4('0x96')];_0x2d450b++){const _0x2b6ccb=_0x4e5961[_0x2d450b];if(_0x2b6ccb[_0x5bb4('0xc1')]!==_0x1f810f[_0x5bb4('0xc1')]||_0x2b6ccb[_0x5bb4('0x163')]['id']!==_0x1f810f[_0x5bb4('0x163')]['id']||_0x2b6ccb[_0x5bb4('0x97')]!==_0x1f810f[_0x5bb4('0x97')])continue;if(!Vt(_0x1f810f,_0x2b6ccb))continue;if('attribute'==_0x1f810f[_0x5bb4('0xc1')]&&_0x1f810f[_0x5bb4('0x43')][_0x5bb4('0xc5')]!=_0x2b6ccb['data'][_0x5bb4('0xc5')])continue;if(_0x5bb4('0x160')==_0x1f810f[_0x5bb4('0xc1')]&&_0x519927['_isBlockAttribute'](_0x1f810f[_0x5bb4('0x43')][_0x5bb4('0xb9')]))continue;if('formatBlock'==_0x1f810f['type']){const _0x1eff59=_0x519927[_0x5bb4('0x93')][_0x5bb4('0x12d')],_0xc8f8b3=_0x1f810f[_0x5bb4('0x19')]();if(_0xc8f8b3&&(_0x1eff59['schema'][_0x5bb4('0x57')](_0xc8f8b3)||_0x1eff59[_0x5bb4('0x118')][_0x5bb4('0x15d')](_0xc8f8b3)))continue;}const _0xa3b52b=_0x44a247[_0x5bb4('0x143')](_0x1f810f),_0x9a103a=_0x49d12d[_0x5bb4('0x143')](_0x1f810f),_0x577322=_0x49d12d[_0x5bb4('0x143')](_0x2b6ccb),_0x5354fe=_0x1f810f[_0x5bb4('0x159')]&&_0x1f810f['commentThread'][_0x5bb4('0x96')],_0x4b876b=_0x2b6ccb[_0x5bb4('0x159')]&&_0x2b6ccb['commentThread'][_0x5bb4('0x96')];if(!_0x5354fe&&_0xa3b52b(_0x577322,_0x9a103a))return _0x519927[_0x5bb4('0x15')](_0x2b6ccb,_0x1f810f),_0x49d12d[_0x5bb4('0xbc')](_0x1f810f),!0x0;if(!_0x4b876b&&_0xa3b52b(_0x9a103a,_0x577322))return _0x519927[_0x5bb4('0x15')](_0x1f810f,_0x2b6ccb),_0x49d12d[_0x5bb4('0xbc')](_0x2b6ccb),!0x0;}return!0x1;}}[_0x5bb4('0x15')](_0x474490,_0xbb6785){if(_0x474490['isMultiRange'])for(const _0x55947d of _0xbb6785['getRanges']())_0x474490[_0x5bb4('0x8c')](_0x55947d);else{const _0x3d9e35=_0xbb6785['getFirstRange']()[_0x5bb4('0xc3')];this[_0x5bb4('0x14a')](_0x474490,this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x474490[_0x5bb4('0x157')]()[_0x5bb4('0xe1')],_0x3d9e35));}_0xbb6785[_0x5bb4('0xd6')]();}['_getMarkerAnnouncementText'](_0x2d4271,_0x3cf453){const _0x3062de=_0x2d4271['startsWith']('format')||_0x2d4271[_0x5bb4('0x92')](_0x5bb4('0x160'))?_0x5bb4('0x13'):_0x2d4271[_0x5bb4('0x147')]();return _0x1f39dc(this[_0x5bb4('0x93')][_0x5bb4('0xc')],_0x3cf453+'_'+_0x3062de+_0x5bb4('0x126'));}[_0x5bb4('0x154')](){const _0xb28c6=this[_0x5bb4('0x93')];_0x2f2298(this[_0x5bb4('0x1e')],({left:_0xdb35ab,entered:_0x391fe4})=>{const _0x27d3fc=[];for(const _0x1108fc of _0xdb35ab){const {group:_0x1cdb71,type:_0x286ee2}=this[_0x5bb4('0xe2')](_0x1108fc['name']);if('suggestion'===_0x1cdb71){_0x27d3fc[_0x5bb4('0x6')](this[_0x5bb4('0xbd')](_0x286ee2,_0x5bb4('0x138')));break;}}for(const _0x558c11 of _0x391fe4){const {group:_0xf63569,type:_0x30ba5a}=this['_splitMarkerName'](_0x558c11[_0x5bb4('0xd')]);if(_0x5bb4('0xa3')===_0xf63569){_0x27d3fc['push'](this['_getMarkerAnnouncementText'](_0x30ba5a,_0x5bb4('0xa9')));break;}}_0x27d3fc[_0x5bb4('0x96')]&&_0xb28c6['ui']['ariaLiveAnnouncer']['announce'](_0x5bb4('0x4f'),_0x27d3fc[_0x5bb4('0x71')]('\x20'));});}[_0x5bb4('0x53')](_0x52bc04){if(null!==this[_0x5bb4('0xde')])return!0x1;const _0x3d02d2=this[_0x5bb4('0x93')],_0x1b28fe=_0x3d02d2['model'][_0x5bb4('0x173')]['differ']['getChanges']();if(0x0==_0x1b28fe[_0x5bb4('0x96')])return!0x1;const _0x529b60=[],_0x160b9f=_0x1b28fe[_0x5bb4('0x5c')](_0x2f05dc=>_0x5bb4('0x160')==_0x2f05dc[_0x5bb4('0xc1')]),_0x566f86=_0x1b28fe[_0x5bb4('0x5c')](_0x4cfbb1=>'insert'==_0x4cfbb1['type']&&'$text'!=_0x4cfbb1[_0x5bb4('0xd')]),_0x2b6a5b=_0x1b28fe[_0x5bb4('0x5c')](_0x4833ad=>_0x5bb4('0x18')==_0x4833ad['type']&&'$text'!=_0x4833ad[_0x5bb4('0xd')]);for(const _0x3b123a of _0x160b9f)_0x529b60[_0x5bb4('0x6')]({'key':_0x3b123a[_0x5bb4('0x6e')],'newValue':_0x3b123a['attributeNewValue'],'oldValue':_0x3b123a[_0x5bb4('0xf0')],'range':_0x4cfca4(_0x3b123a[_0x5bb4('0x1d')])});for(const _0xcfd5d3 of _0x566f86){const _0x196aad=_0x2b6a5b[_0x5bb4('0x39')](_0x47a1d4=>_0x47a1d4[_0x5bb4('0x6d')][_0x5bb4('0x115')](_0xcfd5d3[_0x5bb4('0x6d')]));_0x196aad&&_0x529b60['push']({'key':_0x5bb4('0x91'),'newValue':_0xcfd5d3[_0x5bb4('0xd')],'oldValue':_0x196aad[_0x5bb4('0xd')],'range':_0x3d02d2['model']['createRangeOn'](_0xcfd5d3[_0x5bb4('0x6d')][_0x5bb4('0x14d')])});}return 0x0!=_0x529b60[_0x5bb4('0x96')]&&this[_0x5bb4('0x113')](_0x52bc04,_0x529b60);function _0x4cfca4(_0xfef5e0){return null==_0xfef5e0['end']['nodeBefore']&&_0xfef5e0[_0x5bb4('0xc3')][_0x5bb4('0x9b')]==_0xfef5e0['start'][_0x5bb4('0x14d')]?Ut(_0xfef5e0[_0x5bb4('0xe1')][_0x5bb4('0x14d')],_0x3d02d2[_0x5bb4('0x12d')]):_0xfef5e0;}}[_0x5bb4('0x124')](_0x528394){let _0x4ce49d=!0x1;const _0x3e567f=this[_0x5bb4('0x93')][_0x5bb4('0x12d')]['document'][_0x5bb4('0xa1')][_0x5bb4('0x2a')]()[_0x5bb4('0x5c')](_0x258556=>_0x258556[_0x5bb4('0x43')][_0x5bb4('0x70')]&&_0x258556[_0x5bb4('0xd')][_0x5bb4('0x92')](_0x5bb4('0x83')));for(const _0x371af1 of _0x3e567f){const {subType:_0x23fd2e,id:_0x347332}=this[_0x5bb4('0xe2')](_0x371af1[_0x5bb4('0xd')]),_0x31b700=_0x23fd2e[_0x5bb4('0xaf')]('|')[0x0];for(const _0x62ea01 of this[_0x5bb4('0xef')]({'skipNotAttached':!0x0}))_0x62ea01['id']!=_0x347332&&_0x5bb4('0x160')==_0x62ea01[_0x5bb4('0xc1')]&&_0x62ea01[_0x5bb4('0x43')]&&_0x62ea01[_0x5bb4('0x43')][_0x5bb4('0xb9')]==_0x31b700&&_0x62ea01[_0x5bb4('0x157')]()[_0x5bb4('0x104')](_0x371af1[_0x5bb4('0x43')][_0x5bb4('0x70')])&&(this[_0x5bb4('0xa4')](_0x62ea01,_0x371af1[_0x5bb4('0x43')]['newRange'],_0x528394),_0x4ce49d=!0x0);}return _0x4ce49d;}[_0x5bb4('0x95')](_0x156a3e){if(null!==this[_0x5bb4('0xde')])return void _0x156a3e();const _0x38f7fd=this[_0x5bb4('0x93')];this[_0x5bb4('0xde')]=_0x38f7fd[_0x5bb4('0x12d')][_0x5bb4('0x173')][_0x5bb4('0x152')],_0x156a3e();const _0x58f4a7=new Map();for(const _0x2d314 of _0x38f7fd['model'][_0x5bb4('0x173')][_0x5bb4('0xc7')][_0x5bb4('0x167')](this['_recordAttributeSuggestionsFromVersion']))if([_0x5bb4('0x11a'),_0x5bb4('0x132'),_0x5bb4('0xd4'),_0x5bb4('0x146')][_0x5bb4('0x13c')](_0x2d314[_0x5bb4('0xc1')])){const _0x51068f=_0x2d314['batch'],_0x4a5cc4=_0x58f4a7[_0x5bb4('0x143')](_0x51068f)||[];_0x4a5cc4[_0x5bb4('0x6')](_0x2d314),_0x58f4a7[_0x5bb4('0xba')](_0x51068f,_0x4a5cc4);}this[_0x5bb4('0xde')]=null;for(const [_0x1647de,_0x4168d3]of _0x58f4a7){const _0x2e1a84=_0x4f0212();_0x38f7fd['model']['enqueueChange'](_0x1647de,_0x134c04=>{const _0x4b40ca=[];for(const _0x5c65be of _0x4168d3){let _0x4e366d,_0x1ee896,_0x25a1a7,_0x31df80;if(_0x5bb4('0x11a')==_0x5c65be[_0x5bb4('0xc1')]){const _0x41ebb1=_0x5c65be;_0x4e366d=Ut(_0x41ebb1[_0x5bb4('0x6d')][_0x5bb4('0x14d')],_0x38f7fd['model']),_0x1ee896=_0x5bb4('0x91'),_0x25a1a7=_0x41ebb1[_0x5bb4('0xe7')],_0x31df80=_0x41ebb1[_0x5bb4('0x16c')];}else{const _0x4b640a=_0x5c65be,_0x16c066=this[_0x5bb4('0x7f')](_0x4b640a[_0x5bb4('0xb9')]),_0x1085c8=this[_0x5bb4('0x9d')][_0x5bb4('0x135')](_0x4b640a['key']);if(!_0x16c066&&!_0x1085c8)continue;_0x4e366d=_0x16c066?Ut(_0x4b640a[_0x5bb4('0x1d')]['start'][_0x5bb4('0x14d')],_0x38f7fd[_0x5bb4('0x12d')]):_0x4b640a[_0x5bb4('0x1d')],_0x1ee896=_0x4b640a['key'],_0x25a1a7='removeAttribute'==_0x5c65be[_0x5bb4('0xc1')]?void 0x0:_0x4b640a[_0x5bb4('0x169')],_0x31df80=_0x4b640a[_0x5bb4('0xc5')];}this['markAttributeChange'](_0x4e366d,_0x1ee896,_0x31df80,_0x25a1a7,{'groupId':_0x2e1a84}),_0x4b40ca['push']({'range':_0x4e366d,'key':_0x1ee896,'newValue':_0x25a1a7,'oldValue':_0x31df80});}this[_0x5bb4('0x113')](_0x134c04,_0x4b40ca);});}}[_0x5bb4('0x113')](_0x58ba79,_0x563183){if(0x0==_0x563183[_0x5bb4('0x96')])return!0x1;let _0x524495=!0x1;for(const _0x5a41fd of _0x563183){const _0x8cf95c=this[_0x5bb4('0xcf')](_0x5a41fd[_0x5bb4('0x1d')],_0x5bb4('0x160'))[_0x5bb4('0x5c')](_0x11e69f=>!_0x11e69f['meta'][_0x5bb4('0x2f')])[_0x5bb4('0x20')](_0x11df1e=>_0x11df1e['suggestion']),_0x50d1d4=_0x457066({'newValue':_0x5a41fd['newValue']});_0x8cf95c['filter'](_0x2578cd=>{const [_0x537313,_0x364d50]=_0x2578cd['subType'][_0x5bb4('0xaf')]('|');return _0x537313==_0x5a41fd[_0x5bb4('0xb9')]&&_0x364d50!=_0x50d1d4;})[_0x5bb4('0xea')](_0x1b1cc2=>{this[_0x5bb4('0xa4')](_0x1b1cc2,_0x5a41fd[_0x5bb4('0x1d')],_0x58ba79),_0x524495=!0x0;});}return _0x524495;}[_0x5bb4('0xa4')](_0x31ad7b,_0x429d64,_0x56d31d){const _0x1f6a6f=_0x31ad7b['getFirstRange']()[_0x5bb4('0x76')](_0x429d64);0x0!==_0x1f6a6f[_0x5bb4('0x96')]?0x1!==_0x1f6a6f[_0x5bb4('0x96')]?this[_0x5bb4('0x69')](_0x31ad7b,_0x429d64[_0x5bb4('0xe1')],_0x429d64[_0x5bb4('0xc3')]):this['_setSuggestionRange'](_0x31ad7b,_0x1f6a6f[0x0]):_0x56d31d[_0x5bb4('0x8d')](_0x31ad7b[_0x5bb4('0xe6')]());}}class Bt{constructor(_0x246e24){this[_0x5bb4('0xff')]=_0x246e24,this[_0x5bb4('0x1e')]=_0x246e24[_0x5bb4('0x12d')],this[_0x5bb4('0x127')]=new Map(),this[_0x5bb4('0x137')]=new Map(),this[_0x5bb4('0x153')]();}['buildSuggestion'](_0xa90619,_0x1d2c76,_0x3947d6,_0x2e28fa,_0xd6527d,_0x17480e){return new _0x1343f2(this[_0x5bb4('0x1e')],{'type':_0xa90619,'subType':_0x1d2c76,'id':_0x3947d6,'author':_0x2e28fa,'creator':_0x2e28fa,'attributes':_0xd6527d,'onAttributesChange':_0x17480e,'onAccept':(..._0x150e22)=>this[_0x5bb4('0x94')](_0xa90619,_0x1d2c76,_0x5bb4('0x13b'))(..._0x150e22),'onDiscard':(..._0x56b556)=>this[_0x5bb4('0x94')](_0xa90619,_0x1d2c76,_0x5bb4('0xbf'))(..._0x56b556)});}['registerCustomCallback'](_0x2ff254,_0x4b946e,_0x32ef84,_0x34ef96){const _0x55068a=_0x2ff254+':'+_0x4b946e+':'+_0x32ef84;this['_customCallbacks'][_0x5bb4('0xba')](_0x55068a,_0x34ef96);}[_0x5bb4('0x94')](_0x4acdfd,_0x3d3110,_0x15ab2e){const _0x3c6ba0=_0x4acdfd+':'+_0x3d3110+':'+_0x15ab2e;return this['_customCallbacks'][_0x5bb4('0x143')](_0x3c6ba0)||this[_0x5bb4('0x137')][_0x5bb4('0x143')](_0x4acdfd+':'+_0x15ab2e);}[_0x5bb4('0x153')](){const _0x589ea3=()=>!0x1,_0x35ebb0=_0x3b2477=>{_0x3b2477[_0x5bb4('0xb4')]((_0x229768,_0x345fd5)=>_0x229768['start']['isBefore'](_0x345fd5['start'])?0x1:-0x1),this['_model'][_0x5bb4('0x7a')](_0x32a62e=>{for(const _0x1036bb of _0x3b2477){let _0xfae031;_0xfae031=_0x1036bb[_0x5bb4('0xc3')][_0x5bb4('0x6c')]&&_0x1036bb['end'][_0x5bb4('0x9b')]==_0x1036bb[_0x5bb4('0xe1')][_0x5bb4('0x14d')]?_0x32a62e[_0x5bb4('0xfb')](_0x1036bb['start'][_0x5bb4('0x14d')],'on'):_0x32a62e[_0x5bb4('0xfb')](_0x1036bb),this[_0x5bb4('0x1e')][_0x5bb4('0x4a')](_0xfae031,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2b9ad3=(_0x4a847c,_0x117195)=>{_0x117195&&this[_0x5bb4('0x1e')][_0x5bb4('0x7a')](_0x474caf=>{const {commandName:_0x4126f9,commandParams:_0x119cf0=[]}=_0x117195,_0x21ebdc=_0x4a847c[_0x5bb4('0x20')](_0x525966=>(xt(_0x525966)&&(_0x525966=this[_0x5bb4('0x1e')][_0x5bb4('0x23')](_0x525966[_0x5bb4('0xc3')])),_0x525966))[_0x5bb4('0x5c')](_0x59cb15=>_0x5bb4('0x7d')!==_0x59cb15[_0x5bb4('0xb0')]['rootName']);if(_0x21ebdc[_0x5bb4('0x96')]<0x1)return;const _0x3a91de=Array[_0x5bb4('0x1')](this[_0x5bb4('0x1e')]['document'][_0x5bb4('0x166')][_0x5bb4('0xd7')]())['map'](_0x50b7c8=>_0x87e607[_0x5bb4('0x59')](_0x50b7c8));_0x474caf['setSelection'](_0x21ebdc);for(const _0x35f463 of this[_0x5bb4('0xff')][_0x5bb4('0x89')][_0x5bb4('0x89')]())_0x35f463[_0x5bb4('0x103')]();_0x119cf0[_0x5bb4('0x6')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x5bb4('0xc2')](_0x4126f9,..._0x119cf0);const _0x1af9f3=_0x3a91de[_0x5bb4('0x5c')](_0x503381=>_0x5bb4('0x7d')!=_0x503381[_0x5bb4('0xb0')][_0x5bb4('0x3c')]);_0x1af9f3['length']>0x0&&_0x474caf[_0x5bb4('0x5f')](_0x1af9f3);for(const _0x389dd0 of _0x3a91de)_0x389dd0[_0x5bb4('0x5e')]();});},_0x223cf9=(_0x1baa99,_0x4c9215)=>0x1==_0x1baa99['length']&&0x1==_0x4c9215['length']&&_0x1baa99[0x0][_0x5bb4('0xc3')]['isEqual'](_0x4c9215[0x0][_0x5bb4('0xe1')]),_0x5eeb04=(_0x5e482a,_0xd5fdca,_0x58a8df,_0x1dfa0a)=>Ot(_0x5e482a,_0xd5fdca,_0x58a8df,_0x1dfa0a,this[_0x5bb4('0x1e')])?[_0x5e482a,_0xd5fdca]:Ot(_0xd5fdca,_0x5e482a,_0x1dfa0a,_0x58a8df,this[_0x5bb4('0x1e')])?[_0xd5fdca,_0x5e482a]:null;this['_defaultCallbacks'][_0x5bb4('0xba')]('insertion:accept',_0x589ea3),this['_defaultCallbacks'][_0x5bb4('0xba')]('insertion:discard',_0x35ebb0),this[_0x5bb4('0x137')]['set']('insertion:join',_0x223cf9),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x66'),_0x5eeb04),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x15f'),_0x35ebb0),this[_0x5bb4('0x137')][_0x5bb4('0xba')]('deletion:discard',_0x589ea3),this[_0x5bb4('0x137')][_0x5bb4('0xba')]('deletion:join',_0x223cf9),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x3d'),_0x5eeb04),this['_defaultCallbacks']['set']('formatInline:accept',_0x2b9ad3),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x161'),_0x589ea3),this[_0x5bb4('0x137')]['set'](_0x5bb4('0x5b'),_0x223cf9),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x50'),_0x589ea3),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x48'),_0x2b9ad3),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x45'),_0x589ea3),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0x165'),_0x223cf9),this[_0x5bb4('0x137')][_0x5bb4('0xba')](_0x5bb4('0xa5'),_0x589ea3),this[_0x5bb4('0x137')][_0x5bb4('0xba')]('attribute:accept',_0x589ea3),this[_0x5bb4('0x137')]['set'](_0x5bb4('0xb3'),(_0x41e752,_0x492426)=>{if(!_0x492426)return;const _0x193d3a=this[_0x5bb4('0xff')]['plugins'][_0x5bb4('0x143')](p);this[_0x5bb4('0x1e')][_0x5bb4('0x7a')](_0x1278bc=>{if('$elementName'==_0x492426['key'])for(const _0x59b38b of _0x41e752){const _0x4c79c0=_0x59b38b[_0x5bb4('0xe1')]['nodeAfter'],_0xd30d68=_0x492426[_0x5bb4('0xc5')];_0x1278bc[_0x5bb4('0x11a')](_0x4c79c0,_0xd30d68);}else{if(_0x193d3a[_0x5bb4('0x7f')](_0x492426[_0x5bb4('0xb9')]))for(const _0x39598e of _0x41e752)void 0x0!==_0x492426[_0x5bb4('0xc5')]?_0x1278bc['setAttribute'](_0x492426[_0x5bb4('0xb9')],_0x492426[_0x5bb4('0xc5')],_0x39598e['start']['nodeAfter']):_0x1278bc[_0x5bb4('0xd4')](_0x492426[_0x5bb4('0xb9')],_0x39598e[_0x5bb4('0xe1')]['nodeAfter']);else for(const _0x1b0623 of _0x41e752)_0x492426[_0x5bb4('0xc5')]?_0x1278bc['setAttribute'](_0x492426['key'],_0x492426[_0x5bb4('0xc5')],_0x1b0623):_0x1278bc['removeAttribute'](_0x492426[_0x5bb4('0xb9')],_0x1b0623);}});}),this['_defaultCallbacks'][_0x5bb4('0xba')](_0x5bb4('0x54'),_0x223cf9);}}function Tt(_0xeccfd4,_0x5edb43,_0x3ce728){for(const _0x29166a of _0x5edb43[_0x5bb4('0x9b')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x29166a[_0x5bb4('0xb0')]==_0x29166a)return!0x1;if(!_0x3ce728[_0x5bb4('0xf5')](_0x29166a))return!0x1;if(_0xeccfd4['isObject'](_0x29166a)||_0xeccfd4[_0x5bb4('0x15d')](_0x29166a))return!0x0;}return!0x1;}function xt(_0x5eb766){return _0x5eb766[_0x5bb4('0xc3')][_0x5bb4('0x9b')]==_0x5eb766['start'][_0x5bb4('0x14d')]&&_0x5eb766['end']['isAtStart'];}function Et(_0x2a7d23,_0x28aa7e,_0x565e8e,_0xf89454){const _0x5b6e84=_0x5974b6=>!_0x5974b6['item']['is'](_0x5bb4('0xb2'))&&!_0xf89454[_0x5bb4('0x57')](_0x5974b6[_0x5bb4('0x99')]),_0x4ba8a1=_0x2a7d23[_0x5bb4('0xe1')][_0x5bb4('0xed')](_0x5b6e84),_0x502507=_0x2a7d23[_0x5bb4('0xc3')]['getLastMatchingPosition'](_0x5b6e84,{'direction':'backward'});return(!_0x2a7d23['start'][_0x5bb4('0x115')](_0x4ba8a1)||!_0x2a7d23[_0x5bb4('0xc3')][_0x5bb4('0x115')](_0x502507))&&(_0x4ba8a1['isBefore'](_0x502507)?_0x565e8e[_0x5bb4('0x170')](_0x28aa7e,{'range':_0x565e8e[_0x5bb4('0x23')](_0x4ba8a1,_0x502507)}):_0x565e8e[_0x5bb4('0x8d')](_0x28aa7e),!0x0);}function Rt(_0x309b2a){return _0x457066(_0x309b2a);}function jt(_0x38f090){const _0x3b9078=_0x38f090[_0x5bb4('0xe1')][_0x5bb4('0x14d')];return _0x3b9078&&_0x3b9078['is'](_0x5bb4('0xda'));}function Ut(_0x3b13e6,_0x1ba9b7){const _0x33e2a8=_0x1ba9b7[_0x5bb4('0x118')][_0x5bb4('0x57')](_0x3b13e6)||_0x1ba9b7[_0x5bb4('0x118')][_0x5bb4('0x16a')](_0x3b13e6);return _0x1ba9b7[_0x5bb4('0x23')](_0x1ba9b7[_0x5bb4('0xb5')](_0x3b13e6,'before'),_0x33e2a8?_0x1ba9b7[_0x5bb4('0xe9')](_0x3b13e6):_0x1ba9b7[_0x5bb4('0xb5')](_0x3b13e6,'end'));}function Ot(_0x485560,_0x424b69,_0x151dec,_0x5dda41,_0x3febf1){if(!Vt(_0x485560,_0x424b69))return!0x1;if(_0x151dec['end'][_0x5bb4('0x115')](_0x5dda41['start']))return!0x0;if(_0x485560[_0x5bb4('0xc1')]!=_0x424b69[_0x5bb4('0xc1')])return!0x1;if(!_0x151dec['end'][_0x5bb4('0xf2')](_0x5dda41[_0x5bb4('0xe1')]))return!0x1;const _0x34e4c8=_0x3febf1[_0x5bb4('0x23')](_0x151dec[_0x5bb4('0xc3')],_0x5dda41[_0x5bb4('0xe1')])[_0x5bb4('0x139')]();for(const _0xcb7664 of _0x34e4c8)if([_0x5bb4('0x156'),_0x5bb4('0x144')][_0x5bb4('0x13c')](_0xcb7664[_0x5bb4('0xc1')])&&_0x3febf1[_0x5bb4('0x118')][_0x5bb4('0x15d')](_0xcb7664['item']))return!0x1;return!0x0;}function Vt(_0x2df0bf,_0x98bab0){return!(!_0x2df0bf[_0x5bb4('0x13d')]||!_0x98bab0[_0x5bb4('0x13d')])&&_0x53cbae(_0x2df0bf['attributes'],_0x98bab0[_0x5bb4('0xd8')]);}function Gt(_0x21851a,_0x57781e){const _0x64558e=Ft(_0x21851a[_0x5bb4('0xd8')]),_0x2c6527=Ft(_0x57781e);if(!_0x21851a[_0x5bb4('0x13d')])return!0x1;for(const _0x2afe1b of Object[_0x5bb4('0x2c')](_0x2c6527))if(!_0x53cbae(_0x64558e[_0x2afe1b],_0x2c6527[_0x2afe1b]))return!0x1;return!0x0;}function Ft(_0x32dbc7){const _0x37e00c=Object[_0x5bb4('0x88')]({},_0x32dbc7);return delete _0x37e00c[_0x5bb4('0xb')],delete _0x37e00c[_0x5bb4('0x11f')],_0x37e00c;}function Pt(_0x41204d){return'attribute'==_0x41204d[_0x5bb4('0xc1')]?_0x41204d[_0x5bb4('0x97')][_0x5bb4('0xaf')]('|')[0x0]:null;}
23
+ const _0x1e34=['start','multi','formatInline:accept','suggestion','join','resolve','assign','acceptSelectedSuggestions','format','Users','newRange','_splitMarkerName','isRemovable','$elementName','collaboration.channelId','ready','removeMarker','catch','addSuggestion','_mergeNestedSuggestions','commentThread','trackChanges','getCommentThread','_suggestions','deletion:discard','trackChanges.mergeNestedSuggestions','accept','elementToElement','getDifference','insertion:chain','_breakSuggestionMarker','attribute:discard','removeClass','consumable','createPositionBefore','bindElementToMarker','attribute:accept','_onDiscard','ck-suggestion-marker-','return','isTouching','lowest','addHighlight','editing','model','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','_cutOutSuggestionMarker','has','formatBlock:chain','track-changes-adapter-missing-getsuggestion','getSuggestionCallback','getChangedMarkers','deletion','adapter','data','history','isBefore','isSelectable','getChanges','addRange','open','markAttributeChange','attributes','isAtStart','highest','batch','commands','for','every','FORMATTING','oldValue','containsRange','formatBlock:','trackChangesCommand','_handleNewSuggestionMarker','addMarker:suggestion:attribute','markerNameToElements','formatBlock:join','removeAttribute','substr','isBlock','ck-suggestion-marker','listenTo','ck-suggestion-marker-formatInline','isArray','oldRange','dataDowncast','_initAriaMarkerChangeAnnouncements','_model','getSuggestion','conversion','config','discardSuggestion','removeMarkers','filter','split','originalSuggestionId','getFirstRange','default','from','discardAllSuggestions','suggestionLoaded','define','skipNestingCheck','some','createSelection','get','discardSelectedSuggestions','map','upcast','locale','length','editingDowncast','subType','getAllAdjacentSuggestions','fire','newValue','acceptAllSuggestions','concat','addMarker:suggestion:formatBlock','insertion','getRanges','track-changes-suggestion-data-mismatch','track-changes-user-not-found','name','$text','_getMarkerAnnouncementText','isOwn','move','execute','deletion:','size','createElement','buildSuggestion','splice','requires','containsPosition','forEach','oldName','unshift','_checkSuggestionCorrectness','detach','chain','deleteContent','isLocal','registerPostFixer','_refreshSuggestionsChain','containerElement','getShiftedBy','enqueueChange','formatInline:join','range','mapper','$textProxy','data-suggestion','formatBlock','getNearestSelectionRange','setAttribute','documentSelection','getMultiRangeId','_recordAttributeSuggestionsFromVersion','isObject','authoredAt','acceptSuggestion','set','isLimit','change','changeAttribute','normal','insert','differ','_SUGGESTION_ANNOUNCEMENT','markDeletion','markers','addSuggestionData','createPositionAt','_saved','_suggestionState','getMarkers','key','widget','$graveyard','PendingActions','isInsideObject','clear','nodeBefore','markInlineFormat','_trackFormatChanges','hasCommentThread','markBlockFormat','_commentsRepository','howMany','getAncestors','enableCommand','formatInline','_refreshAttributeSuggestionsChain','setTo','insertion:join','markMultiRangeDeletion','sort','isEqual','dataReady','item','_getSuggestionData','schema','commandName','_getAuthorFromId','hasComments','suggestionChanged','suggestion:attribute:','group','_isForcedDefaultExecutionBlock','updateMarker','init','marker-count','_removeSuggestion','stop','addMarker','getSuggestions','selection','parent','_getExternalAuthor','getLastMatchingPosition','getCustomProperty','_descriptionFactory','keys','@external','addClass','createRange','fetchCommentThread','creator','change:_saved','newName','always','refresh','applyOperation','_registerBlockAttribute','before','pop','isInContent','_processAttributeSuggestions','rename','attribute:','markerReady','isNextTo','document','comments','_addSuggestionMarker','_reduceSuggestionAttributeRange','accepted','remove','suggestion:','toViewElement','removeMarker:suggestion:attribute','isIntersecting','deletion:chain','insertContent','_suggestionFactory','insertion:accept','containsRangeInObject','rootName','isAtEnd','editor','update:suggestion','getUser','includes','markMultiRangeInsertion','rethrowUnexpectedError','PENDING_ACTION_SUGGESTION','getAttribute','trackChanges.trackFormatChanges','ck-suggestion-marker-formatBlock','getItems','ENTER','addUser','author','activeMarkers','getContainedElement','containsItem','_inlineAttributeKeys','isAfter','updateSuggestion','isMultiRange','suggestion-type','push','values','_isDataLoaded','after','addMarkerName','notReady','reconvertMarker','_setSuggestionData','type','_defaultCallbacks','next','_enableDefaultAttributesIntegration','forceDefaultExecution','_setSuggestionRange','element','track-changes-command-not-found','markerName','_joinSuggestions','_blockAttributeKeys','getWalker','discard','formatGroupId','showSuggestionHighlights','_customCallbacks','_addThreadToSuggestion','consume','attributeNewValue','previous','delete','add','_createSuggestion','splitPosition','isIntersectingWithRange','nodeAfter','ck-suggestion-marker--active','low','createdAt','formatInline:chain','registerCustomCallback','moveTargetPosition','_processAttributeChanges','clone','startsWith','_adapter','_findSuggestions','formatInline:','_editor','track-changes-enable-command-twice','end','markerToHighlight','_registerDefaultCallbacks','meta','getIntersection','never','position','authorName','change:data','createPositionAfter','_updateSuggestionData','isCollapsed','writer','pluginName','then','getOperations','markInsertion','groupId','deletion:accept','root','getFirstMarker','_enabledCommands','error-saving-suggestion-data-suggestion-discarded','dataToMarker','stopListening','value','_registerInlineAttribute','_reduceExistingSuggestions','removeMarker:suggestion:formatBlock','multipleBlocks','removed','fromRange','_isBlockAttribute','find','insertion:','setSelection','attribute','high','_rangeIsInLocalUserInsertion','fromCharCode','unbindElementFromMarkerName','plugins','options'];(function(_0x531393,_0x1e3405){const _0x45fd6e=function(_0x1de08c){while(--_0x1de08c){_0x531393['push'](_0x531393['shift']());}};_0x45fd6e(++_0x1e3405);}(_0x1e34,0x1c1));const _0x45fd=function(_0x531393,_0x1e3405){_0x531393=_0x531393-0x0;let _0x45fd6e=_0x1e34[_0x531393];return _0x45fd6e;};import{Plugin as _0x200ad3,PendingActions as _0xe54b6c}from'ckeditor5/src/core.js';import{LiveRange as _0x1586d7}from'ckeditor5/src/engine.js';import{CKEditorError as _0x4f5e3f,uid as _0x1d4647,priorities as _0x281aa9,logWarning as _0x4d5f77}from'ckeditor5/src/utils.js';import{toWidget as _0x354e8a}from'ckeditor5/src/widget.js';import{Users as _0x11fa66,hashObject as _0x59c5b9,surroundingMarkersDetector as _0x52f036}from'ckeditor5-collaboration/src/collaboration-core.js';import _0xd845c1 from'./commands/trackchangescommand.js';import _0x296c51 from'./commands/acceptsuggestioncommand.js';import _0x530fdd from'./commands/discardsuggestioncommand.js';import _0x2c8829 from'./commands/executeonallsuggestionscommand.js';import _0x14056d from'./commands/executeonselectedsuggestionscommand.js';import _0x1de743 from'./suggestion.js';import _0x4f8496 from'./suggestiondescriptionfactory.js';import _0xd5729 from'./integrations/aiassistant.js';import _0x113233 from'./integrations/alignment.js';import _0x5dbab9 from'./integrations/basicstyles.js';import _0x2ca556 from'./integrations/blockquote.js';import _0x24b6fc from'./integrations/ckbox.js';import _0x5e4a6a from'./integrations/codeblock.js';import _0xc08e5b from'./integrations/comments.js';import _0x309dac from'./integrations/deletecommand.js';import _0x1fe1c0 from'./integrations/documentlist.js';import _0x476727 from'./integrations/documentlistproperties.js';import _0x5a1e4a from'./integrations/entercommand.js';import _0x334c26 from'./integrations/findandreplace.js';import _0x217a92 from'./integrations/font.js';import _0x2e7918 from'./integrations/formatpainter.js';import _0x194f16 from'./integrations/heading.js';import _0xd49241 from'./integrations/highlight.js';import _0x3746a9 from'./integrations/horizontalline.js';import _0x5d1202 from'./integrations/htmlembed.js';import _0x291f45 from'./integrations/image.js';import _0x5965bb from'./integrations/imagereplace.js';import _0x3583f7 from'./integrations/imagestyle.js';import _0x1c1ef4 from'./integrations/importword.js';import _0x47dae9 from'./integrations/indent.js';import _0x5e5751 from'./integrations/inputcommand.js';import _0x56fe50 from'./integrations/link.js';import _0x3252ab from'./integrations/list.js';import _0x2d4873 from'./integrations/listproperties.js';import _0x2c6fd9 from'./integrations/mediaembed.js';import _0x2543ab from'./integrations/mention.js';import _0x3162df from'./integrations/pagebreak.js';import _0x1c08cb from'./integrations/paragraph.js';import _0x53636d from'./integrations/removeformat.js';import _0x13f447 from'./integrations/restrictededitingmode.js';import _0x2ed787 from'./integrations/shiftentercommand.js';import _0x144b99 from'./integrations/standardeditingmode.js';import _0x558136 from'./integrations/style.js';import _0x158dae from'./integrations/table.js';import _0x1ed72a from'./integrations/tablemergesplit.js';import _0x2ec710 from'./integrations/tableheadings.js';import _0x96ba9f from'./integrations/tableclipboard.js';import _0x1794d7 from'./integrations/tablecolumnresize.js';import _0x1cd0a6 from'./integrations/template.js';import _0x19e852 from'./integrations/tableofcontents.js';import _0x473dca from'./integrations/title.js';import _0x1aedac from'./integrations/undo.js';import _0x5cb027 from'./integrations/tablecaption.js';import _0x3657cc from'./integrations/tableproperties.js';import{getTranslation as _0x14698f}from'./utils/common-translations.js';import{isEqual as _0x4a6831,omit as _0x1286d7}from'lodash-es';export const renameAttributeKey=_0x45fd('0x13a');export default class p extends _0x200ad3{static get[_0x45fd('0x3d')](){return['CommentsRepository',_0x11fa66,_0xe54b6c,_0xd5729,_0x113233,_0x5dbab9,_0x2ca556,_0x24b6fc,_0x5e4a6a,_0xc08e5b,_0x309dac,_0x1fe1c0,_0x476727,_0x5a1e4a,_0x334c26,_0x217a92,_0x2e7918,_0x194f16,_0xd49241,_0x3746a9,_0x5d1202,_0x291f45,_0x3583f7,_0x5965bb,_0x1c1ef4,_0x47dae9,_0x5e5751,_0x56fe50,_0x3252ab,_0x2d4873,_0x2c6fd9,_0x2543ab,_0x3162df,_0x1c08cb,_0x53636d,_0x13f447,_0x2ed787,_0x144b99,_0x558136,_0x158dae,_0x1ed72a,_0x2ec710,_0x5cb027,_0x96ba9f,_0x1794d7,_0x19e852,_0x3657cc,_0x1cd0a6,_0x473dca,_0x1aedac];}static get[_0x45fd('0x10f')](){return'TrackChangesEditing';}constructor(_0x2da73b){function _0x10c245(_0x2d2a83){return _0x2d2a83[_0x45fd('0x22')](_0x3733b5=>String[_0x45fd('0x129')](_0x3733b5))[_0x45fd('0x131')]('');}super(_0x2da73b),this[_0x45fd('0x56')]=null,this['set'](_0x45fd('0xca'),[]),this['on']('change:activeMarkers',(_0x501ad5,_0x5502cb,_0x14e85b,_0x2eb654)=>{this[_0x45fd('0xe')][_0x45fd('0x5c')](()=>{for(const _0x2d0638 of[..._0x2eb654,..._0x14e85b])this['_model'][_0x45fd('0x63')][_0x45fd('0x15c')](_0x2d0638)&&_0x2da73b[_0x45fd('0x158')][_0x45fd('0xd8')](_0x2d0638);});}),this[_0x45fd('0x96')]=new _0x4f8496(this['editor']['model'][_0x45fd('0x82')],this[_0x45fd('0xbc')][_0x45fd('0x24')]),this[_0x45fd('0xfd')]=null,this['_suggestionFactory']=new $t(this[_0x45fd('0xbc')]),this[_0x45fd('0x144')]=new Map(),this[_0x45fd('0x74')]=_0x2da73b[_0x45fd('0x12b')]['get']('CommentsRepository'),this[_0x45fd('0x117')]=new Set(),this[_0x45fd('0xe')]=this['editor']['model'],this[_0x45fd('0x67')]=new WeakMap(),this[_0x45fd('0x89')]=!0x1,this['_blockAttributeKeys']=new Set([_0x45fd('0x13a')]),this[_0x45fd('0xcd')]=new Set(),_0x2da73b[_0x45fd('0x11')]['define'](_0x45fd('0xc4'),_0x45fd('0x18')),this[_0x45fd('0x71')]=_0x2da73b[_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0xc4')),_0x2da73b[_0x45fd('0x11')][_0x45fd('0x1c')](_0x45fd('0x146'),!0x0),this[_0x45fd('0x140')]=_0x2da73b[_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0x146')),this[_0x45fd('0x176')]=new _0xd845c1(_0x2da73b,this['_enabledCommands']),this[_0x45fd('0xd')](),this[_0x10c245([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10c245([0x34,0x30,0x34,0x36,0x32,0x34,0x33,0x32]);}[_0x45fd('0x8b')](){const _0x1acd97=this[_0x45fd('0xbc')],_0x448493=(_0x5049f8,_0x588203)=>{if(_0x45fd('0x126')!=_0x5049f8)return _0x45fd('0x153')+_0x5049f8;const _0x525f1e=_0x588203['split']('|')[0x0];return this[_0x45fd('0x122')](_0x525f1e)?_0x45fd('0xc5'):_0x45fd('0x9');};_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0x26'))[_0x45fd('0x103')]({'model':_0x45fd('0x130'),'view':_0x61903b=>{const {id:_0x10d77b,type:_0x5e99e7,subType:_0x445ea3}=this[_0x45fd('0x138')](_0x61903b[_0x45fd('0xe2')]),_0x2f0d7c=[_0x45fd('0x7'),_0x448493(_0x5e99e7,_0x445ea3)];let _0x319341=0xbb8;return this[_0x45fd('0xca')][_0x45fd('0xbf')](_0x61903b['markerName'])&&(_0x2f0d7c[_0x45fd('0xd2')](_0x45fd('0xf4')),_0x319341=0xbc2),_0x45fd('0x161')==_0x5e99e7&&(_0x319341+=0x5),{'classes':_0x2f0d7c,'attributes':{'data-suggestion':_0x10d77b},'priority':_0x319341};}}),_0x1acd97[_0x45fd('0x10')]['for'](_0x45fd('0xc'))[_0x45fd('0xef')](_0x2a81ad=>{_0x2a81ad['on']('addMarker:suggestion',(_0x42b967,_0x3c382f,_0x512880)=>{if(!_0x512880[_0x45fd('0x12c')]['showSuggestionHighlights'])return;const _0x24ace1=_0x3c382f[_0x45fd('0x80')];if(!_0x24ace1)return;const _0xe98dca=_0x512880[_0x45fd('0x4e')][_0x45fd('0xb2')](_0x24ace1);_0x1acd97['model'][_0x45fd('0x82')][_0x45fd('0x57')](_0x24ace1)&&_0xe98dca&&!_0xe98dca[_0x45fd('0x95')](_0x45fd('0x6a'))&&_0xe98dca['is'](_0x45fd('0x49'))&&_0x354e8a(_0xe98dca,_0x512880[_0x45fd('0x10e')]);},{'priority':_0x45fd('0x127')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0xc'))[_0x45fd('0x103')]({'model':_0x45fd('0x130'),'view':(_0x366819,_0x1bb5a6)=>{if(!_0x1bb5a6['options'][_0x45fd('0xe8')])return null;const {type:_0x30ca9c,subType:_0x3ee69f}=this['_splitMarkerName'](_0x366819[_0x45fd('0xe2')]);return{'classes':['ck-suggestion-marker',_0x448493(_0x30ca9c,_0x3ee69f)],'priority':0xbb8};}});const _0x53559e=({showActiveMarkers:_0x3840c1=!0x0,isAttributeSuggestion:_0x16cdd0=!0x1}={})=>(_0x2eceb8,_0x15a8b4,_0x9f9395)=>{if(!_0x15a8b4[_0x45fd('0x80')])return;const {id:_0x1243e8}=this[_0x45fd('0x138')](_0x15a8b4[_0x45fd('0xe2')]);if(_0x16cdd0){const _0x37e69f=Pt(this[_0x45fd('0x144')][_0x45fd('0x20')](_0x1243e8));if(!this[_0x45fd('0x122')](_0x37e69f))return;}if(_0x15a8b4[_0x45fd('0x80')]['is'](_0x45fd('0x91')))return void _0x9f9395[_0x45fd('0x14e')][_0x45fd('0xeb')](_0x15a8b4[_0x45fd('0x80')],_0x2eceb8['name']);const _0x389a04=_0x9f9395[_0x45fd('0x4e')]['toViewElement'](_0x15a8b4[_0x45fd('0x80')]);if(_0x15a8b4[_0x45fd('0x80')]['is'](_0x45fd('0xe0'))&&_0x1acd97[_0x45fd('0x159')]['schema'][_0x45fd('0x6')](_0x15a8b4[_0x45fd('0x80')])&&!_0x389a04['getCustomProperty'](_0x45fd('0x157'))){_0x9f9395[_0x45fd('0x10e')][_0x45fd('0x99')]([_0x45fd('0x7'),_0x45fd('0xc5')],_0x389a04),_0x9f9395['writer'][_0x45fd('0x53')](_0x45fd('0x50'),_0x1243e8,_0x389a04),_0x9f9395[_0x45fd('0x4e')][_0x45fd('0x150')](_0x389a04,_0x15a8b4[_0x45fd('0xe2')]),_0x3840c1&&(this['activeMarkers'][_0x45fd('0xbf')](_0x15a8b4[_0x45fd('0xe2')])?_0x9f9395[_0x45fd('0x10e')][_0x45fd('0x99')](_0x45fd('0xf4'),_0x389a04):_0x9f9395['writer'][_0x45fd('0x14d')]('ck-suggestion-marker--active',_0x389a04));for(const _0x47c9cb of _0x1acd97[_0x45fd('0x159')]['createRangeIn'](_0x15a8b4[_0x45fd('0x80')])[_0x45fd('0xc6')]())_0x9f9395[_0x45fd('0x14e')]['consume'](_0x47c9cb,_0x2eceb8[_0x45fd('0x32')]);_0x9f9395[_0x45fd('0x14e')][_0x45fd('0xeb')](_0x15a8b4[_0x45fd('0x80')],_0x2eceb8[_0x45fd('0x32')]);}};_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('dataDowncast')[_0x45fd('0xef')](_0x22b4cb=>{_0x22b4cb['on'](_0x45fd('0x2d'),(_0x2b0312,_0x4b0672,_0x49d12f)=>{_0x49d12f[_0x45fd('0x12c')][_0x45fd('0xe8')]&&_0x53559e({'showActiveMarkers':!0x1})(_0x2b0312,_0x4b0672,_0x49d12f);},{'priority':_0x45fd('0x16d')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0xc'))[_0x45fd('0xef')](_0x1c0dc8=>{_0x1c0dc8['on']('addMarker:suggestion:attribute',(_0x39377d,_0x361b20,_0x305f63)=>{_0x305f63[_0x45fd('0x12c')][_0x45fd('0xe8')]&&_0x53559e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x39377d,_0x361b20,_0x305f63);},{'priority':_0x45fd('0x16d')});}),_0x1acd97['conversion'][_0x45fd('0x170')](_0x45fd('0xc'))['markerToData']({'model':_0x45fd('0x130'),'view':(_0xa1519c,_0x141561)=>_0x141561[_0x45fd('0x12c')][_0x45fd('0xe8')]?null:{'group':'suggestion','name':_0xa1519c[_0x45fd('0x5')](0xb)}}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0x23'))[_0x45fd('0x148')]({'view':{'name':_0x45fd('0x130'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2a748f,{writer:_0x19f2c7})=>{let _0x3c0d50='suggestion:'+_0x2a748f[_0x45fd('0xc3')](_0x45fd('0xd1'))+':'+_0x2a748f[_0x45fd('0xc3')]('id');return _0x2a748f[_0x45fd('0xc3')](_0x45fd('0x8c'))&&(_0x3c0d50+=':'+_0x2a748f[_0x45fd('0xc3')](_0x45fd('0x8c'))),_0x19f2c7[_0x45fd('0x3a')]('$marker',{'data-name':_0x3c0d50});}}),_0x1acd97[_0x45fd('0x10')]['for'](_0x45fd('0x23'))[_0x45fd('0x119')]({'view':_0x45fd('0x130')}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('editingDowncast')[_0x45fd('0xef')](_0x4f29b4=>{_0x4f29b4['on'](_0x45fd('0x2d'),_0x53559e(),{'priority':'high'});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('editingDowncast')[_0x45fd('0xef')](_0x1f527c=>{_0x1f527c['on'](_0x45fd('0x1'),_0x53559e({'isAttributeSuggestion':!0x0}),{'priority':_0x45fd('0x127')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')](_0x45fd('0x26'))[_0x45fd('0xef')](_0x4adacb=>{_0x4adacb['on'](_0x45fd('0x11e'),(_0x3f9bbe,_0x2650d2,_0x12fbff)=>{const _0x503f4a=_0x12fbff[_0x45fd('0x4e')][_0x45fd('0x2')](_0x2650d2[_0x45fd('0xe2')]);if(_0x503f4a)for(const _0x5c7953 of _0x503f4a)_0x5c7953[_0x45fd('0x95')]('addHighlight')||(_0x12fbff[_0x45fd('0x10e')][_0x45fd('0x14d')]([_0x45fd('0x7'),_0x45fd('0xc5'),'ck-suggestion-marker--active'],_0x5c7953),_0x12fbff[_0x45fd('0x10e')][_0x45fd('0x4')](_0x45fd('0x50'),_0x5c7953),_0x12fbff[_0x45fd('0x4e')][_0x45fd('0x12a')](_0x5c7953,_0x2650d2[_0x45fd('0xe2')]));},{'priority':_0x45fd('0x127')});}),_0x1acd97[_0x45fd('0x10')][_0x45fd('0x170')]('editingDowncast')[_0x45fd('0xef')](_0x316533=>{_0x316533['on'](_0x45fd('0xb3'),(_0x5cc889,_0x421626,_0x2776ff)=>{const _0x1714b8=_0x2776ff['mapper'][_0x45fd('0x2')](_0x421626[_0x45fd('0xe2')]);if(!_0x1714b8)return;const {id:_0x12cd6b}=this[_0x45fd('0x138')](_0x421626['markerName']),_0xdec90e=Pt(this[_0x45fd('0x144')][_0x45fd('0x20')](_0x12cd6b));if(this[_0x45fd('0x122')](_0xdec90e))for(const _0x3b4654 of _0x1714b8)_0x3b4654[_0x45fd('0x95')]('addHighlight')||(_0x2776ff[_0x45fd('0x10e')][_0x45fd('0x14d')]([_0x45fd('0x7'),'ck-suggestion-marker-formatBlock',_0x45fd('0xf4')],_0x3b4654),_0x2776ff[_0x45fd('0x10e')][_0x45fd('0x4')]('data-suggestion',_0x3b4654),_0x2776ff[_0x45fd('0x4e')]['unbindElementFromMarkerName'](_0x3b4654,_0x421626['markerName']));},{'priority':_0x45fd('0x127')});}),_0x1acd97['model'][_0x45fd('0xab')][_0x45fd('0x47')](_0x29026b=>{let _0x43ba1f=!0x1;const _0x1444ca=Array[_0x45fd('0x19')](_0x1acd97[_0x45fd('0x159')][_0x45fd('0xab')][_0x45fd('0x60')][_0x45fd('0x160')]()),_0xa982e0=new Set();for(const {name:_0x4cef2e,data:_0x4e639a}of _0x1444ca){const {group:_0x59dca1,type:_0xc5947c,subType:_0x7e288c,id:_0x3f78e4}=this['_splitMarkerName'](_0x4cef2e);if(_0x45fd('0x130')!==_0x59dca1)continue;const _0x2f1080=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x3f78e4);if(null!=_0x4e639a[_0x45fd('0x137')]){_0x45fd('0x78')==_0xc5947c&&(_0x43ba1f=_0x43ba1f||xt(_0x4e639a[_0x45fd('0x137')],_0x4cef2e,_0x29026b,_0x1acd97[_0x45fd('0x159')][_0x45fd('0x82')]));const _0x5a733c='attribute'==_0xc5947c&&this[_0x45fd('0x122')](_0x7e288c[_0x45fd('0x15')]('|')[0x0]);if(_0x4e639a[_0x45fd('0x137')]['isCollapsed']||'$graveyard'==_0x4e639a[_0x45fd('0x137')][_0x45fd('0x115')]['rootName']||'formatBlock'==_0xc5947c&&!Rt(_0x4e639a[_0x45fd('0x137')])||_0x5a733c&&!Rt(_0x4e639a[_0x45fd('0x137')])||_0x45fd('0x161')==_0xc5947c&&!(!Tt(_0x23abca=_0x4e639a[_0x45fd('0x137')])&&!function(_0x18de2d){return _0x18de2d[_0x45fd('0x12d')][_0x45fd('0x92')]==_0x18de2d[_0x45fd('0x102')][_0x45fd('0x6f')]&&_0x18de2d[_0x45fd('0x12d')][_0x45fd('0xbb')];}(_0x23abca)))_0x29026b['removeMarker'](_0x4cef2e),_0x43ba1f=!0x0;else{if(!_0x2f1080||!_0x2f1080[_0x45fd('0xa5')])continue;_0xa982e0['add'](_0x2f1080);}}}var _0x23abca;return _0xa982e0[_0x45fd('0x39')]>0x0&&(_0x43ba1f=!!this['_joinWithAdjacentSuggestions'](_0xa982e0)||_0x43ba1f),_0x43ba1f;}),_0x1acd97[_0x45fd('0x159')][_0x45fd('0xab')]['registerPostFixer'](_0x147336=>{let _0x28359e=!0x1;for(const _0x4f6b9b of _0x1acd97[_0x45fd('0x159')]['document'][_0x45fd('0x60')][_0x45fd('0x167')]())if(_0x45fd('0x5f')==_0x4f6b9b[_0x45fd('0xda')])for(const _0x117de4 of this[_0x45fd('0x144')]['values']()){if(_0x117de4[_0x45fd('0xd0')]||!_0x117de4['isInContent'])continue;const _0x2b8fba=_0x45fd('0x51')==_0x117de4[_0x45fd('0xda')],_0x2a99c5=Pt(_0x117de4),_0x52da1f=_0x2a99c5&&this[_0x45fd('0x122')](_0x2a99c5);if(!_0x2b8fba&&!_0x52da1f)continue;const _0x58745f=_0x117de4['getFirstRange']();if(_0x58745f[_0x45fd('0x12d')]['parent']!=_0x58745f[_0x45fd('0x102')][_0x45fd('0x92')]&&!_0x58745f[_0x45fd('0x102')]['isAtEnd']){const _0x5eb178=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x58745f[_0x45fd('0x12d')][_0x45fd('0xf3')],'end'),_0x2285fa=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x9a')](_0x58745f['start'],_0x5eb178);_0x147336[_0x45fd('0x8a')](_0x117de4[_0x45fd('0x116')](),{'range':_0x2285fa}),_0x28359e=!0x0;}}return _0x28359e;}),_0x1acd97['model'][_0x45fd('0xab')][_0x45fd('0x47')](_0x151384=>this[_0x45fd('0xfa')](_0x151384)),_0x1acd97['model'][_0x45fd('0xab')]['registerPostFixer'](_0x4f28b2=>!_0x4f28b2[_0x45fd('0x16e')][_0x45fd('0x46')]&&this[_0x45fd('0xa6')](_0x4f28b2)),_0x1acd97[_0x45fd('0x159')]['markers']['on'](_0x45fd('0xbd'),(_0x3011a4,_0x489afe,_0x568478)=>{if(null==_0x568478){const {id:_0x30167b}=this[_0x45fd('0x138')](_0x489afe[_0x45fd('0x32')]),_0x4b3464=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x30167b);_0x4b3464&&_0x4b3464[_0x45fd('0xd6')](_0x489afe[_0x45fd('0x32')]);}}),_0x1acd97[_0x45fd('0x159')][_0x45fd('0xab')]['on'](_0x45fd('0x10a'),()=>{const _0xc0d5c1=Array[_0x45fd('0x19')](_0x1acd97['model'][_0x45fd('0xab')]['differ'][_0x45fd('0x160')]())[_0x45fd('0x14')](_0x1dd711=>_0x45fd('0x130')===this[_0x45fd('0x138')](_0x1dd711['name'])[_0x45fd('0x88')]);if(0x0===_0xc0d5c1[_0x45fd('0x25')])return;_0xc0d5c1[_0x45fd('0x7d')]((_0x15848c,_0x303e93)=>{const _0x5bf4f7=_0x15848c[_0x45fd('0x163')]['oldRange'],_0x4e5a04=_0x303e93[_0x45fd('0x163')][_0x45fd('0xb')];return null===_0x5bf4f7&&null===_0x4e5a04?0x0:null===_0x5bf4f7&&null!==_0x4e5a04?-0x1:null!==_0x5bf4f7&&null===_0x4e5a04?0x1:_0x5bf4f7[_0x45fd('0x12d')]['isBefore'](_0x4e5a04[_0x45fd('0x12d')])?-0x1:0x1;});const _0x2cdc16=new Set(),_0x44d8a2=new Set();for(const {name:_0x2faf96,data:_0x5d4a13}of _0xc0d5c1){const {id:_0x2c2c20}=this['_splitMarkerName'](_0x2faf96);if(null===_0x5d4a13[_0x45fd('0xb')]){const _0x171784=this[_0x45fd('0x0')](_0x2faf96);_0x44d8a2[_0x45fd('0xef')](_0x171784);}else{const _0x3c0814=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x2c2c20);null!==_0x5d4a13[_0x45fd('0x137')]||_0x3c0814['isInContent']?(_0x2cdc16[_0x45fd('0xef')](_0x3c0814['head']),_0x44d8a2['add'](_0x3c0814)):this['_removeSuggestion'](_0x3c0814);}}_0x44d8a2['size']>0x0&&this[_0x45fd('0x48')](_0x44d8a2);for(const _0x49eeb3 of _0x2cdc16)this[_0x45fd('0x29')]('suggestionChanged',_0x49eeb3);}),_0x1acd97['model']['on'](_0x45fd('0xa1'),(_0x31caf5,_0x336f4e)=>{const _0x2f40fa=_0x336f4e[0x0];if(!this[_0x45fd('0x144')][_0x45fd('0x39')])return;if(!_0x2f40fa['isDocumentOperation'])return;if(_0x2f40fa['batch']['isUndo']||!_0x2f40fa['batch']['isLocal'])return;let _0x6cc67e,_0x2d60ca;switch(_0x2f40fa[_0x45fd('0xda')]){case _0x45fd('0x5f'):_0x6cc67e=_0x1acd97['model'][_0x45fd('0x65')](_0x2f40fa['position']),_0x2d60ca=_0x6cc67e['getShiftedBy'](_0x2f40fa[_0x45fd('0x75')]);break;case _0x45fd('0x15'):_0x6cc67e=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x2f40fa[_0x45fd('0xf1')]),_0x2d60ca=_0x1acd97['model']['createPositionAt'](_0x2f40fa[_0x45fd('0xf9')]);break;case _0x45fd('0x36'):_0x6cc67e=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x2f40fa['targetPosition']),_0x2d60ca=_0x6cc67e[_0x45fd('0x4a')](_0x2f40fa['howMany']);break;default:return;}const _0x2eeb6f=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x9a')](_0x6cc67e,_0x2d60ca);_0x1acd97['model'][_0x45fd('0x5c')](()=>{for(const {suggestion:_0x27b5bb,meta:_0x4c08ec}of this[_0x45fd('0xfe')](_0x2eeb6f)){if(_0x27b5bb[_0x45fd('0xd0')])continue;if('formatInline'==_0x27b5bb[_0x45fd('0xda')])continue;const _0x19ebf5=Pt(_0x27b5bb);if(_0x19ebf5&&this[_0x45fd('0x122')](_0x19ebf5)&&'split'!=_0x2f40fa[_0x45fd('0xda')])continue;const _0x32c0b0=_0x27b5bb[_0x45fd('0x163')]&&_0x27b5bb['data'][_0x45fd('0x11f')];('formatBlock'!=_0x27b5bb['type']||_0x45fd('0x15')==_0x2f40fa['type']&&!_0x32c0b0)&&(_0x4c08ec[_0x45fd('0xb9')]||_0x45fd('0x2e')==_0x27b5bb[_0x45fd('0xda')]&&_0x4c08ec[_0x45fd('0x35')]||_0x27b5bb[_0x45fd('0x17')]()[_0x45fd('0x174')](_0x2eeb6f)&&this[_0x45fd('0x14b')](_0x27b5bb,_0x6cc67e,_0x2d60ca));}});},{'priority':_0x45fd('0x156')}),_0x1acd97['model']['on'](_0x45fd('0x45'),(_0x5a2cc8,_0x2eadea)=>{const _0x3a6a95=_0x2eadea[0x0],_0x41d202=_0x2eadea[0x1];if(_0x41d202&&_0x41d202['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x45fd('0x11b')])return;if(_0x3a6a95[_0x45fd('0x10d')])return;const _0x48c485=_0x1acd97['model'][_0x45fd('0x82')],{start:_0x218eee,end:_0x3dc9b1}=_0x3a6a95[_0x45fd('0x17')](),_0x4f3e20=_0x218eee[_0x45fd('0xf3')]&&_0x48c485[_0x45fd('0x5b')](_0x218eee[_0x45fd('0xf3')])?null:_0x48c485[_0x45fd('0x52')](_0x218eee,'forward'),_0x9958d4=_0x3dc9b1[_0x45fd('0x6f')]&&_0x48c485['isLimit'](_0x3dc9b1[_0x45fd('0x6f')])?null:_0x48c485['getNearestSelectionRange'](_0x3dc9b1,'backward'),_0x485447=_0x1acd97[_0x45fd('0x159')]['createRange'](_0x4f3e20?_0x4f3e20[_0x45fd('0x12d')]:_0x218eee,_0x9958d4?_0x9958d4['end']:_0x3dc9b1);_0x1acd97['model'][_0x45fd('0x5c')](_0x38c935=>{this[_0x45fd('0x62')](_0x485447);const _0x48e74a=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x82')]['getNearestSelectionRange'](_0x485447[_0x45fd('0x12d')]);_0x3a6a95['is'](_0x45fd('0x54'))?_0x38c935[_0x45fd('0x125')](_0x48e74a):_0x3a6a95[_0x45fd('0x7a')](_0x48e74a);}),_0x5a2cc8[_0x45fd('0x8e')]();},{'priority':_0x281aa9[_0x45fd('0x5e')]+0xa}),_0x1acd97[_0x45fd('0x159')]['on'](_0x45fd('0xb6'),(_0x5f4a7d,_0x423585)=>{const _0x52e6f3=_0x423585[_0x423585[_0x45fd('0x25')]-0x1];_0x52e6f3&&_0x52e6f3[_0x45fd('0xde')]||this[_0x45fd('0x89')]||this[_0x45fd('0x176')][_0x45fd('0x11b')]&&(_0x1acd97[_0x45fd('0x159')]['change'](()=>{let _0x10b57a=_0x1acd97['model']['insertContent'](_0x423585[0x0],_0x423585[0x1],_0x423585[0x2],{'forceDefaultExecution':!0x0});if(!_0x10b57a)return;_0x5f4a7d[_0x45fd('0x154')]=_0x10b57a[_0x45fd('0xfb')]();const _0x36ca89=_0x10b57a[_0x45fd('0x102')][_0x45fd('0x6f')],_0x3f582c=_0x1acd97[_0x45fd('0x159')]['schema'];_0x36ca89&&_0x3f582c[_0x45fd('0x6')](_0x36ca89)&&!_0x3f582c[_0x45fd('0x57')](_0x36ca89)&&(_0x10b57a=_0x1acd97[_0x45fd('0x159')][_0x45fd('0x9a')](_0x10b57a[_0x45fd('0x12d')],_0x1acd97[_0x45fd('0x159')][_0x45fd('0x65')](_0x36ca89,_0x45fd('0x102')))),this[_0x45fd('0x112')](_0x10b57a);}),_0x5f4a7d['stop']());},{'priority':'high'}),this[_0x45fd('0xbc')][_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x142'),this['trackChangesCommand']),this[_0x45fd('0x77')](_0x45fd('0x142'));const _0x578d56=new _0x296c51(_0x1acd97,this['_suggestions']);_0x1acd97['commands']['add']('acceptSuggestion',_0x578d56),this[_0x45fd('0x77')](_0x45fd('0x59'));const _0x325bea=new _0x530fdd(_0x1acd97,this[_0x45fd('0x144')]);_0x1acd97[_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x12'),_0x325bea),this[_0x45fd('0x77')]('discardSuggestion'),_0x1acd97[_0x45fd('0x16f')]['add'](_0x45fd('0x2b'),new _0x2c8829(_0x1acd97,_0x578d56,this['_suggestions'])),this[_0x45fd('0x77')](_0x45fd('0x2b')),_0x1acd97['commands'][_0x45fd('0xef')](_0x45fd('0x1a'),new _0x2c8829(_0x1acd97,_0x325bea,this[_0x45fd('0x144')])),this[_0x45fd('0x77')](_0x45fd('0x1a')),_0x1acd97[_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x134'),new _0x14056d(_0x1acd97,_0x578d56,this['_suggestions'])),this[_0x45fd('0x77')](_0x45fd('0x134')),_0x1acd97[_0x45fd('0x16f')][_0x45fd('0xef')](_0x45fd('0x21'),new _0x14056d(_0x1acd97,_0x325bea,this['_suggestions'])),this[_0x45fd('0x77')](_0x45fd('0x21'));const _0x5aec3d=_0x1acd97[_0x45fd('0x12b')]['get']('CommentsRepository');this[_0x45fd('0x8')](_0x5aec3d,'addComment',(_0x55d1b1,{threadId:_0x437691})=>{const _0x9f079f=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x437691);_0x9f079f&&_0x9f079f[_0x45fd('0x141')]&&0x1===_0x9f079f['commentThread'][_0x45fd('0x25')]&&this[_0x45fd('0x10c')](_0x437691,{'hasComments':!0x0});},{'priority':'low'}),this[_0x45fd('0x8')](_0x5aec3d,'removeComment',(_0x1f4985,{threadId:_0x3aec8d})=>{const _0x50309d=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x3aec8d);_0x50309d&&_0x50309d[_0x45fd('0x141')]&&!_0x50309d['commentThread'][_0x45fd('0x25')]&&this[_0x45fd('0x10c')](_0x3aec8d,{'hasComments':!0x1});},{'priority':_0x45fd('0xf5')});}set[_0x45fd('0x162')](_0x1a5323){if(this[_0x45fd('0xfd')])throw new _0x4f5e3f('track-changes-adapter-already-set',this);this['_adapter']=_0x1a5323;}get[_0x45fd('0x162')](){return this['_adapter'];}[_0x45fd('0x90')]({skipNotAttached:_0x258f6e=!0x1,toJSON:_0x485781=!0x1}={}){const _0xe6c4b7=[];for(const _0x301e7b of this[_0x45fd('0x144')][_0x45fd('0xd3')]())_0x258f6e&&!_0x301e7b[_0x45fd('0xa5')]||_0xe6c4b7['push'](_0x301e7b);return _0x485781?_0xe6c4b7['map'](_0x5c7e98=>_0x5c7e98['toJSON']()):_0xe6c4b7;}[_0x45fd('0xf')](_0x35bd83){const _0x2f40a4=this[_0x45fd('0x144')][_0x45fd('0x20')](_0x35bd83);if(!_0x2f40a4)throw new _0x4f5e3f('track-changes-suggestion-not-found',this);return _0x2f40a4;}['hasSuggestion'](_0x3aeda5){return this[_0x45fd('0x144')][_0x45fd('0x15c')](_0x3aeda5);}['addSuggestionData'](_0x21b058){const {authorId:_0x54d9c6,id:_0xd146ac,attributes:_0x44212b}=_0x21b058,[_0x3792fc,_0x55716f]=_0x21b058[_0x45fd('0xda')][_0x45fd('0x15')](':'),_0x30a4c2=this[_0x45fd('0x144')][_0x45fd('0x20')](_0xd146ac)||this[_0x45fd('0xf0')](_0x3792fc,_0x55716f,_0xd146ac,_0x54d9c6,_0x44212b);if(this[_0x45fd('0xea')](_0x30a4c2),this[_0x45fd('0x42')](_0x30a4c2,_0x3792fc,_0x55716f||null,_0x54d9c6),_0x30a4c2['createdAt']=_0x21b058[_0x45fd('0xf6')],_0x30a4c2[_0x45fd('0xd4')]=!0x0,_0x44212b&&_0x44212b[_0x45fd('0x98')]){const _0x54761c=_0x44212b[_0x45fd('0x98')],_0x4156b0=this['_getExternalAuthor'](_0x54761c[_0x45fd('0x109')]);_0x30a4c2[_0x45fd('0x58')]=_0x54761c[_0x45fd('0xf6')],_0x30a4c2[_0x45fd('0xc9')]=_0x4156b0,_0x30a4c2['isExternal']=!0x0;}else _0x30a4c2[_0x45fd('0x58')]=_0x21b058[_0x45fd('0xf6')];switch(_0x21b058['data']&&(_0x30a4c2[_0x45fd('0x163')]=_0x21b058[_0x45fd('0x163')]),_0x21b058[_0x45fd('0x16b')]&&(_0x30a4c2['attributes']=_0x21b058[_0x45fd('0x16b')]),this['_adapter']&&this[_0x45fd('0xfd')][_0x45fd('0x13f')]||(_0x30a4c2[_0x45fd('0x66')]=!0x0),this['_suggestionState']['get'](_0x30a4c2)){case _0x45fd('0xd7'):this['_suggestionState'][_0x45fd('0x5a')](_0x30a4c2,'dataReady');break;case'markerReady':_0x30a4c2['isInContent']?(this[_0x45fd('0x48')](new Set([_0x30a4c2])),this['_joinWithAdjacentSuggestions'](new Set([_0x30a4c2])),this['_suggestionState'][_0x45fd('0x5a')](_0x30a4c2,'ready'),this[_0x45fd('0x29')](_0x45fd('0x1b'),_0x30a4c2)):this[_0x45fd('0x67')]['set'](_0x30a4c2,_0x45fd('0x120'));}return _0x30a4c2;}['acceptSuggestion'](_0x64c7c2){this[_0x45fd('0xde')](()=>{this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0x5c')](()=>{for(const _0x56796c of _0x64c7c2[_0x45fd('0x28')]())_0x56796c[_0x45fd('0x147')]();});});}[_0x45fd('0x12')](_0x1ad422){this[_0x45fd('0xde')](()=>{this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0x5c')](()=>{for(const _0x3faa31 of _0x1ad422[_0x45fd('0x28')]())_0x3faa31['discard']();});});}['enableCommand'](_0x547c77,_0x2fc916){const _0xcdf9cd=this[_0x45fd('0xbc')]['commands'][_0x45fd('0x20')](_0x547c77);if(!_0xcdf9cd)throw new _0x4f5e3f(_0x45fd('0xe1'),this,{'commandName':_0x547c77});if(this[_0x45fd('0x117')][_0x45fd('0x15c')](_0xcdf9cd))throw new _0x4f5e3f(_0x45fd('0x101'),this,{'commandName':_0x547c77});this['_enabledCommands'][_0x45fd('0xef')](_0xcdf9cd),_0x2fc916&&_0xcdf9cd['on']('execute',(_0x59ea8f,_0x3379d2)=>{this[_0x45fd('0x176')][_0x45fd('0x11b')]&&(this[_0x45fd('0x89')]||(_0x3379d2[_0x45fd('0x25')]>0x0&&_0x3379d2[_0x3379d2[_0x45fd('0x25')]-0x1]&&_0x3379d2[_0x3379d2[_0x45fd('0x25')]-0x1][_0x45fd('0xde')]?_0x3379d2[_0x45fd('0xa4')]():(_0x59ea8f[_0x45fd('0x154')]=_0x2fc916((..._0x5243be)=>_0xcdf9cd[_0x45fd('0x37')](..._0x5243be,{'forceDefaultExecution':!0x0}),..._0x3379d2),_0x59ea8f[_0x45fd('0x8e')]())));},{'priority':'high'});}[_0x45fd('0xde')](_0xf34720){let _0x2d10e2,_0x2a34c0;const _0x331d89=this[_0x45fd('0x89')];this[_0x45fd('0x89')]=!0x0;try{_0x2d10e2=_0xf34720();}catch(_0x3d75a3){_0x2a34c0=_0x3d75a3;}return _0x331d89||(this[_0x45fd('0x89')]=!0x1),_0x2a34c0&&_0x4f5e3f[_0x45fd('0xc1')](_0x2a34c0,this),_0x2d10e2;}[_0x45fd('0x112')](_0x7390d0,_0x3a8c14=null,_0x2c517a={}){if(_0x7390d0[_0x45fd('0x10d')])return null;const _0x5001fb=this['editor']['plugins'][_0x45fd('0x20')](_0x45fd('0x136'))['me'];for(const {suggestion:_0x145a43,meta:_0x5d9de6}of this[_0x45fd('0xfe')](_0x7390d0,_0x45fd('0x2e')))if(_0x5d9de6['isOwn']){if(!_0x5d9de6[_0x45fd('0xaa')]){if(_0x5d9de6[_0x45fd('0xb9')]){if(!this[_0x45fd('0x140')]||!Gt(_0x145a43,_0x2c517a))continue;return _0x145a43;}if(Gt(_0x145a43,_0x2c517a))return _0x145a43;this[_0x45fd('0x14b')](_0x145a43,_0x7390d0['start'],_0x7390d0[_0x45fd('0x102')]);break;}if(_0x3a8c14==_0x145a43[_0x45fd('0x27')]&&Gt(_0x145a43,_0x2c517a)){const _0x2ce99e=_0x145a43[_0x45fd('0x17')]();return _0x2ce99e['start'][_0x45fd('0x7e')](_0x7390d0['end'])?this['_setSuggestionRange'](_0x145a43,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x7390d0[_0x45fd('0x12d')],_0x2ce99e['end'])):this['_setSuggestionRange'](_0x145a43,this[_0x45fd('0xe')]['createRange'](_0x2ce99e[_0x45fd('0x12d')],_0x7390d0[_0x45fd('0x102')])),_0x145a43;}}const _0x365d69=_0x1d4647(),_0x5e5103=_0x5001fb['id'],_0x5a6ffa=_0x3a8c14?_0x45fd('0x124')+_0x3a8c14:_0x45fd('0x2e'),_0x44e80e=this['_setSuggestionData']({'id':_0x365d69,'type':_0x5a6ffa,'createdAt':new Date(),'authorId':_0x5e5103,'attributes':_0x2c517a});return this[_0x45fd('0xad')](_0x5a6ffa,_0x365d69,_0x5e5103,_0x7390d0),_0x44e80e;}[_0x45fd('0xc0')](_0xe9e2eb,_0x827842=_0x45fd('0x12e'),_0x4e75a5={}){const _0x93435f=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x18d34b=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x2e'),_0x827842,_0x45fd('0x131'));for(const _0x2965bf of this['getSuggestions']())if(_0x2965bf[_0x45fd('0xc9')]['id']==_0x93435f['id']&&_0x45fd('0x2e')==_0x2965bf[_0x45fd('0xda')]&&_0x2965bf[_0x45fd('0x27')]==_0x827842&&Gt(_0x2965bf,_0x4e75a5)&&(_0x18d34b(_0x2965bf['getRanges'](),_0xe9e2eb)||_0x18d34b(_0xe9e2eb,_0x2965bf[_0x45fd('0x2f')]()))){for(const _0x324045 of _0xe9e2eb)_0x2965bf[_0x45fd('0x168')](_0x324045);return _0x2965bf;}for(const {suggestion:_0x3939aa,meta:_0x286984}of this[_0x45fd('0xfe')](_0xe9e2eb,_0x45fd('0x2e'))){if(!_0x286984[_0x45fd('0x35')])continue;if(!this[_0x45fd('0x140')]&&_0x286984[_0x45fd('0xb9')])continue;if(!Gt(_0x3939aa,_0x4e75a5))continue;let _0x59aa5b=!0x0;for(const _0x32c102 of _0x3939aa['getRanges']())for(const _0x5384c9 of _0xe9e2eb)if(!_0x32c102[_0x45fd('0x174')](_0x5384c9)){_0x59aa5b=!0x1;break;}if(_0x59aa5b)return _0x3939aa;}const _0x145a92=_0x1d4647(),_0x2a91c3=_0x93435f['id'],_0x5d13fa='insertion:'+_0x827842,_0x5e942e=this['_setSuggestionData']({'id':_0x145a92,'type':_0x5d13fa,'createdAt':new Date(),'authorId':_0x2a91c3,'attributes':_0x4e75a5});for(const _0x1bcb2e of _0xe9e2eb)this[_0x45fd('0xad')](_0x5d13fa,_0x145a92,_0x2a91c3,_0x1bcb2e,_0x1de743['getMultiRangeId']());return _0x5e942e;}[_0x45fd('0x70')](_0x2460eb,_0x22a153,_0x13dccc=null,_0x2022be={}){if(_0x13dccc=_0x13dccc||Et(_0x22a153),_0x2460eb['isCollapsed'])return null;if('never'===this[_0x45fd('0x71')]){const _0x4e3aab=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x78'),_0x13dccc,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x4e3aab([_0x2460eb],_0x22a153,_0x2022be)),null;}const _0x4a1daf=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x1aee41=[];if(_0x45fd('0x9f')!==this[_0x45fd('0x71')])for(const {suggestion:_0x2dc1f4,meta:_0x2f8c3d}of this[_0x45fd('0xfe')](_0x2460eb,_0x45fd('0x2e')))_0x2f8c3d['isOwn']&&!_0x2f8c3d['isInsideObject']&&_0x1aee41[_0x45fd('0xd2')](..._0x2dc1f4['getRanges']());const _0x36e975=function(_0x3eb53b,_0x16ffd3){const _0x5985b8=[];for(const _0x3c2e16 of _0x16ffd3){const _0x2fb90c=_0x3eb53b[_0x45fd('0x106')](_0x3c2e16);_0x2fb90c&&_0x5985b8[_0x45fd('0xd2')](_0x2fb90c);}return _0x5985b8;}(_0x2460eb,_0x1aee41),_0x3f725f=function(_0x351779,_0x4c9dff){const _0x1ff6af=[_0x351779];for(const _0x310cd1 of _0x4c9dff){let _0x548c1d=0x0;for(;_0x548c1d<_0x1ff6af[_0x45fd('0x25')];){const _0x7e9248=_0x1ff6af[_0x548c1d][_0x45fd('0x149')](_0x310cd1);_0x1ff6af[_0x45fd('0x3c')](_0x548c1d,0x1,..._0x7e9248),_0x548c1d+=_0x7e9248[_0x45fd('0x25')];}}return _0x1ff6af;}(_0x2460eb,_0x1aee41);_0x36e975['length']&&this[_0x45fd('0xe')][_0x45fd('0x5c')](()=>{for(const _0x4dfb13 of _0x36e975){const _0x562f9e=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x78'),_0x13dccc,_0x45fd('0x147'));this[_0x45fd('0xde')](()=>_0x562f9e([_0x4dfb13],_0x22a153,_0x2022be));}});for(const _0x3927c0 of _0x3f725f){let _0x7e9d52=null,_0x1435da=_0x3927c0['start'],_0x10f979=_0x3927c0[_0x45fd('0x102')];for(const {suggestion:_0x272c3a,meta:_0x777a6}of this[_0x45fd('0xfe')](_0x3927c0,'formatInline')){if(!_0x777a6[_0x45fd('0x35')])continue;if(_0x272c3a['subType']!=_0x13dccc)continue;if(!Gt(_0x272c3a,_0x2022be))continue;const _0x41d2c9=_0x272c3a[_0x45fd('0x17')]();if(_0x41d2c9['containsRange'](_0x3927c0,!0x0))return null;_0x1435da=_0x1435da[_0x45fd('0x165')](_0x41d2c9[_0x45fd('0x12d')])?_0x1435da:_0x41d2c9[_0x45fd('0x12d')],_0x10f979=_0x10f979[_0x45fd('0xce')](_0x41d2c9['end'])?_0x10f979:_0x41d2c9[_0x45fd('0x102')],_0x7e9d52?_0x41d2c9[_0x45fd('0x12d')][_0x45fd('0x165')](_0x7e9d52['getFirstRange']()[_0x45fd('0x12d')])?(_0x7e9d52[_0x45fd('0x13')](),_0x7e9d52=_0x272c3a):_0x272c3a[_0x45fd('0x13')]():_0x7e9d52=_0x272c3a;}const _0x580275=this['_model'][_0x45fd('0x9a')](_0x1435da,_0x10f979);if(_0x7e9d52)this[_0x45fd('0xdf')](_0x7e9d52,_0x580275);else{const _0x27ac5a=_0x1d4647(),_0x302f91=_0x4a1daf['id'];this[_0x45fd('0xd9')]({'id':_0x27ac5a,'type':_0x45fd('0xff')+_0x13dccc,'data':_0x22a153,'createdAt':new Date(),'authorId':_0x302f91,'attributes':_0x2022be}),this[_0x45fd('0xad')](_0x45fd('0xff')+_0x13dccc,_0x27ac5a,_0x302f91,_0x580275);}}return null;}[_0x45fd('0x73')](_0x41ccfb,_0x5093e1,_0x4b9136=[],_0x20bc6b=null,_0xbbbf20={}){_0x5093e1['formatGroupId']||(_0x5093e1[_0x45fd('0xe7')]=_0x5093e1[_0x45fd('0x83')]),_0x5093e1['multipleBlocks']=_0x41ccfb['is'](_0x45fd('0x4d')),_0x20bc6b=_0x20bc6b||Et(_0x5093e1);const _0xcb148a=_0x4b9136[_0x45fd('0x22')](_0x41720d=>Ut(_0x41720d,this[_0x45fd('0xe')])),_0x2ea699=_0x41ccfb['is'](_0x45fd('0x4d'))?_0x41ccfb:Ut(_0x41ccfb,this['_model']);if(_0x45fd('0x107')===this['_trackFormatChanges']){const _0x32a5e9=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('formatBlock',_0x20bc6b,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x32a5e9([_0x2ea699],_0x5093e1,_0xbbbf20)),null;}_0xcb148a[_0x45fd('0xd2')](_0x2ea699);let _0x32f283=!0x0;for(const _0x1948a5 of _0xcb148a)if(!this[_0x45fd('0x128')](_0x1948a5)){_0x32f283=!0x1;break;}if(_0x32f283&&_0x45fd('0x9f')!==this[_0x45fd('0x71')]){const _0x433bd1=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x51'),_0x20bc6b,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x433bd1([_0x2ea699],_0x5093e1,_0xbbbf20)),null;}let _0x2b4b0d=null,_0xaa3726=_0x2ea699[_0x45fd('0x12d')],_0x1442a4=_0x2ea699[_0x45fd('0x102')];for(const {suggestion:_0x5b4b29,meta:_0x24d56c}of this[_0x45fd('0xfe')](_0x2ea699,_0x45fd('0x51'))){if(!_0x24d56c[_0x45fd('0x35')])continue;if(_0x24d56c['isNextTo']||_0x24d56c[_0x45fd('0xb9')]||_0x24d56c['isInsideObject'])continue;if(_0x5b4b29[_0x45fd('0x163')][_0x45fd('0xe7')]!=_0x5093e1[_0x45fd('0xe7')])continue;if(!Gt(_0x5b4b29,_0xbbbf20))continue;const _0x395525=_0x5b4b29[_0x45fd('0x17')]();if(_0x5b4b29['subType']==_0x20bc6b){if(_0x395525['containsRange'](_0x2ea699,!0x0))return null;_0xaa3726=_0xaa3726[_0x45fd('0x165')](_0x395525['start'])?_0xaa3726:_0x395525['start'],_0x1442a4=_0x1442a4[_0x45fd('0xce')](_0x395525[_0x45fd('0x102')])?_0x1442a4:_0x395525[_0x45fd('0x102')],_0x2b4b0d?_0x395525[_0x45fd('0x12d')][_0x45fd('0x165')](_0x2b4b0d[_0x45fd('0x17')]()[_0x45fd('0x12d')])?(_0x2b4b0d[_0x45fd('0x13')](),_0x2b4b0d=_0x5b4b29):_0x5b4b29[_0x45fd('0x13')]():_0x2b4b0d=_0x5b4b29;}else{const _0x33b528=_0x2ea699['getIntersection'](_0x395525);this[_0x45fd('0x15b')](_0x5b4b29,_0x33b528);}}const _0x4b5582=this['editor'][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x10ac37=_0x1d4647(),_0x391b40=_0x4b5582['id'];if(_0x2b4b0d)return this[_0x45fd('0xdf')](_0x2b4b0d,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0xaa3726,_0x1442a4)),_0x2b4b0d;{const _0x51485a=this[_0x45fd('0xd9')]({'id':_0x10ac37,'type':'formatBlock:'+_0x20bc6b,'data':_0x5093e1,'createdAt':new Date(),'authorId':_0x391b40,'attributes':_0xbbbf20});return this[_0x45fd('0xad')](_0x45fd('0x175')+_0x20bc6b,_0x10ac37,_0x391b40,this['_model'][_0x45fd('0x9a')](_0xaa3726,_0x1442a4)),_0x51485a;}}['markMultiRangeBlockFormat'](_0x2ff549,_0x1b787e,_0x2632e4=[],_0x3259c1=null,_0x403909={}){_0x1b787e[_0x45fd('0xe7')]||(_0x1b787e[_0x45fd('0xe7')]=_0x1b787e[_0x45fd('0x83')]);const _0x4a369e=_0x2ff549[0x0];_0x1b787e['multipleBlocks']=_0x4a369e['is'](_0x45fd('0x4d')),_0x3259c1=_0x3259c1||Et(_0x1b787e);const _0x31b275=_0x2632e4[_0x45fd('0x22')](_0x3d8018=>Ut(_0x3d8018,this['_model'])),_0x1f7579=_0x4a369e['is'](_0x45fd('0x4d'))?_0x2ff549:_0x2ff549[_0x45fd('0x22')](_0x3f2e3a=>Ut(_0x3f2e3a,this['_model']));if(_0x45fd('0x107')===this['_trackFormatChanges']){const _0x2dba5a=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('formatBlock',_0x3259c1,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x2dba5a(_0x1f7579,_0x1b787e,_0x403909)),null;}_0x31b275[_0x45fd('0xd2')](..._0x1f7579);let _0x3a9bd6=!0x0;for(const _0x457a87 of _0x31b275)if(!this[_0x45fd('0x128')](_0x457a87)){_0x3a9bd6=!0x1;break;}if(_0x3a9bd6&&_0x45fd('0x9f')!==this['_trackFormatChanges']){const _0x5b178a=this[_0x45fd('0xb7')]['getSuggestionCallback'](_0x45fd('0x51'),_0x3259c1,'accept');return this[_0x45fd('0xde')](()=>_0x5b178a(_0x1f7579,_0x1b787e,_0x403909)),null;}const _0x8209d4=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')]('Users')['me'];for(const _0x35d9c2 of this[_0x45fd('0x90')]()){if(_0x35d9c2[_0x45fd('0xc9')]['id']!=_0x8209d4['id'])continue;if('formatBlock'!=_0x35d9c2['type']||_0x35d9c2[_0x45fd('0x163')][_0x45fd('0xe7')]!=_0x1b787e[_0x45fd('0xe7')])continue;if(!Gt(_0x35d9c2,_0x403909))continue;const _0x1bc0ce=_0x35d9c2[_0x45fd('0x27')]==_0x3259c1;for(let _0x2bee88=0x0;_0x2bee88<_0x1f7579['length'];_0x2bee88++){const _0x5c44b9=_0x1f7579[_0x2bee88];for(const _0xcbfd4e of _0x35d9c2[_0x45fd('0x68')]()){const _0x3a770b=_0xcbfd4e['getRange']();if(_0x5c44b9[_0x45fd('0x7e')](_0x3a770b)){_0x1bc0ce?(_0x1f7579[_0x45fd('0x3c')](_0x2bee88,0x1),_0x2bee88--):_0x35d9c2[_0x45fd('0x13d')](_0xcbfd4e[_0x45fd('0x32')]);break;}}}}if(0x0==_0x1f7579[_0x45fd('0x25')])return null;const _0x4a8557=this['_suggestionFactory'][_0x45fd('0x15f')]('formatBlock',_0x3259c1,_0x45fd('0x131'));for(const _0x56ac82 of this[_0x45fd('0x90')]())if(_0x56ac82['author']['id']==_0x8209d4['id']&&_0x45fd('0x51')==_0x56ac82[_0x45fd('0xda')]&&_0x56ac82[_0x45fd('0x163')][_0x45fd('0xe7')]==_0x1b787e[_0x45fd('0xe7')]&&_0x56ac82['subType']==_0x3259c1&&Gt(_0x56ac82,_0x403909)&&(_0x4a8557(_0x56ac82[_0x45fd('0x2f')](),_0x1f7579)||_0x4a8557(_0x1f7579,_0x56ac82[_0x45fd('0x2f')]()))){for(const _0x109963 of _0x1f7579)_0x56ac82['addRange'](_0x109963);return _0x56ac82;}const _0x77823d=_0x1d4647(),_0x4d52c0=_0x8209d4['id'],_0xd717b4=_0x45fd('0x175')+_0x3259c1,_0x383c9=this[_0x45fd('0xd9')]({'id':_0x77823d,'type':_0xd717b4,'data':_0x1b787e,'createdAt':new Date(),'authorId':_0x4d52c0,'attributes':_0x403909});for(const _0x3923bd of _0x1f7579)this[_0x45fd('0xad')](_0xd717b4,_0x77823d,_0x4d52c0,_0x3923bd,_0x1de743[_0x45fd('0x55')]());return _0x383c9;}[_0x45fd('0x62')](_0x272d63,_0x201599=null,_0x2b3ecf={}){if(_0x272d63[_0x45fd('0x10d')])return null;const _0x2042e0=this[_0x45fd('0xbc')]['plugins'][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x2697e9=new _0x1586d7(_0x272d63[_0x45fd('0x12d')],_0x272d63[_0x45fd('0x102')]);for(const {suggestion:_0xc09381,meta:_0x1d374b}of this['_findSuggestions'](_0x2697e9,'insertion'))if(_0x1d374b[_0x45fd('0x35')]&&!_0x1d374b[_0x45fd('0xaa')]){if(_0xc09381['isMultiRange']){const _0x499bce=_0xc09381['getRanges']()[_0x45fd('0x14')](_0x160061=>_0x45fd('0x6b')!=_0x160061['root']['rootName']);_0x499bce[_0x45fd('0x171')](_0x5dcf60=>_0x2697e9['containsRange'](_0x5dcf60,!0x0))&&_0xc09381['discard']();if(_0x499bce[_0x45fd('0x1e')](_0x19d394=>_0x19d394['containsRange'](_0x2697e9,!0x0))){const _0xc2e1c1=this[_0x45fd('0xb7')]['getSuggestionCallback'](_0x45fd('0x161'),_0x201599,_0x45fd('0x147'));return this['forceDefaultExecution'](()=>_0xc2e1c1([_0x2697e9],null,_0x2b3ecf)),null;}}else{const _0xbfbb7b=_0x2697e9[_0x45fd('0x106')](_0xc09381[_0x45fd('0x17')]());null!==_0xbfbb7b&&_0xc09381[_0x45fd('0x152')]([_0xbfbb7b],null,_0x2b3ecf);}}if(_0x2697e9[_0x45fd('0x43')](),_0x2697e9[_0x45fd('0x10d')]||_0x45fd('0x6b')==_0x2697e9[_0x45fd('0x115')][_0x45fd('0xba')])return null;let _0x13cc2a=null,_0x586226=_0x2697e9[_0x45fd('0x12d')],_0x5af5bd=_0x2697e9[_0x45fd('0x102')];const _0x1783b1=this[_0x45fd('0xfe')](_0x2697e9,_0x45fd('0x161'));for(const {suggestion:_0x1785d8,meta:_0xb5e0f6}of _0x1783b1){const _0x29cd70=this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x586226,_0x5af5bd);if(_0xb5e0f6[_0x45fd('0x35')]&&(this[_0x45fd('0x140')]||!_0xb5e0f6[_0x45fd('0xb9')]&&!_0xb5e0f6[_0x45fd('0x6d')])){if(_0x1785d8['isMultiRange']){if(!Gt(_0x1785d8,_0x2b3ecf))continue;let _0x1f4c91=!0x0;for(const _0x10a706 of _0x1785d8[_0x45fd('0x2f')]()){if(_0x10a706['containsRange'](_0x29cd70,!0x0))return _0x1785d8;_0x29cd70[_0x45fd('0x174')](_0x10a706)||(_0x1f4c91=!0x1);}_0x1f4c91&&_0x1785d8[_0x45fd('0xe6')]();}else{const _0xf08eba=_0x1785d8['getFirstRange']();if(_0xf08eba['containsRange'](_0x29cd70,!0x0))return _0x1785d8;if(!Gt(_0x1785d8,_0x2b3ecf)){_0x29cd70[_0x45fd('0x174')](_0xf08eba)?_0x1785d8[_0x45fd('0x13')]():_0xf08eba[_0x45fd('0x3e')](_0x586226)?_0x586226=_0xf08eba['end']:_0xf08eba['containsPosition'](_0x5af5bd)&&(_0x5af5bd=_0xf08eba[_0x45fd('0x12d')]);continue;}_0x586226=_0x586226[_0x45fd('0x165')](_0xf08eba[_0x45fd('0x12d')])?_0x586226:_0xf08eba['start'],_0x5af5bd=_0x5af5bd['isAfter'](_0xf08eba[_0x45fd('0x102')])?_0x5af5bd:_0xf08eba[_0x45fd('0x102')],_0x2b3ecf=Object['assign']({},_0x1785d8['attributes']),_0x13cc2a?_0xf08eba['start'][_0x45fd('0x165')](_0x13cc2a[_0x45fd('0x17')]()['start'])?(_0x13cc2a[_0x45fd('0x13')](),_0x13cc2a=_0x1785d8):_0x1785d8['removeMarkers']():_0x13cc2a=_0x1785d8;}}}if(_0x13cc2a)return this[_0x45fd('0xdf')](_0x13cc2a,this['_model'][_0x45fd('0x9a')](_0x586226,_0x5af5bd)),_0x13cc2a;{const _0x588bc4=_0x1d4647(),_0x26e3c0=this[_0x45fd('0xe')]['createRange'](_0x586226,_0x5af5bd),_0x29d828=_0x2042e0['id'],_0x15b7c5=_0x201599?_0x45fd('0x38')+_0x201599:_0x45fd('0x161'),_0x39f6e9=this[_0x45fd('0xd9')]({'id':_0x588bc4,'type':_0x15b7c5,'createdAt':new Date(),'authorId':_0x29d828,'attributes':_0x2b3ecf});return this['_addSuggestionMarker'](_0x15b7c5,_0x588bc4,_0x29d828,_0x26e3c0),_0x39f6e9;}}[_0x45fd('0x7c')](_0x42b990,_0x3434f1='multi',_0x5d1f12={}){const _0x1cb606=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me'],_0x40e5cf=_0x42b990[_0x45fd('0x22')](_0x2ac8df=>new _0x1586d7(_0x2ac8df[_0x45fd('0x12d')],_0x2ac8df[_0x45fd('0x102')])),_0x1d4ef1=new Set();for(const {suggestion:_0x1113cc,meta:_0x7466c3}of this[_0x45fd('0xfe')](_0x40e5cf,'insertion'))_0x7466c3[_0x45fd('0x35')]&&!_0x7466c3['isNextTo']&&_0x1d4ef1[_0x45fd('0xef')](_0x1113cc);for(const _0x9d66a7 of _0x1d4ef1)if(_0x9d66a7[_0x45fd('0xd0')]){const _0x42a3af=_0x9d66a7[_0x45fd('0x2f')]();(!_0x9d66a7['attributes']||!_0x9d66a7[_0x45fd('0x16b')]['skipNestingCheck'])&&(_0x42a3af[_0x45fd('0x171')](_0x4bd345=>_0x40e5cf[_0x45fd('0x1e')](_0x19286c=>_0x19286c['containsRange'](_0x4bd345,!0x0)))&&_0x9d66a7[_0x45fd('0xe6')]());if(_0x40e5cf[_0x45fd('0x171')](_0x1424d3=>_0x42a3af[_0x45fd('0x1e')](_0x22e0d8=>_0x22e0d8[_0x45fd('0x174')](_0x1424d3,!0x0)))){const _0x332d52=this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x45fd('0x161'),_0x3434f1,_0x45fd('0x147'));return this[_0x45fd('0xde')](()=>_0x332d52(_0x42b990,null,_0x5d1f12)),null;}}else{const _0x503d34=_0x9d66a7[_0x45fd('0x17')]();_0x40e5cf['some'](_0x5cac94=>_0x5cac94['containsRange'](_0x503d34,!0x0))&&_0x9d66a7['discard']();if(_0x40e5cf[_0x45fd('0x171')](_0x5e0360=>_0x503d34[_0x45fd('0x174')](_0x5e0360,!0x0))){const _0x45e270=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('deletion',_0x3434f1,_0x45fd('0x147'));return this['forceDefaultExecution'](()=>_0x45e270(_0x40e5cf,null,_0x5d1f12)),null;}}const _0x17617c=this[_0x45fd('0xb7')][_0x45fd('0x15f')]('deletion',_0x3434f1,_0x45fd('0x131'));let _0x35c495=null;for(const _0x129839 of this['getSuggestions']())if(_0x129839['author']['id']==_0x1cb606['id']&&_0x129839[_0x45fd('0xa5')]&&_0x45fd('0x161')==_0x129839[_0x45fd('0xda')]&&_0x129839['subType']==_0x3434f1&&Gt(_0x129839,_0x5d1f12)&&(_0x17617c(_0x129839[_0x45fd('0x2f')](),_0x40e5cf)||_0x17617c(_0x40e5cf,_0x129839[_0x45fd('0x2f')]()))){if(_0x35c495){if(_0x129839['commentThread']&&_0x129839[_0x45fd('0x141')][_0x45fd('0x25')])continue;for(const _0x168d32 of _0x129839[_0x45fd('0x2f')]())_0x35c495[_0x45fd('0xf2')](_0x168d32)||_0x35c495['addRange'](_0x168d32);_0x129839['removeMarkers']();}else{_0x35c495=_0x129839;for(const _0x75ef03 of _0x40e5cf)_0x129839[_0x45fd('0xf2')](_0x75ef03)||_0x129839[_0x45fd('0x168')](_0x75ef03);}}if(_0x35c495)return _0x35c495;_0x1d4ef1[_0x45fd('0x6e')]();for(const {suggestion:_0x2f7426,meta:_0x8f5d22}of this['_findSuggestions'](_0x40e5cf,_0x45fd('0x161')))_0x8f5d22[_0x45fd('0x35')]&&(this['_mergeNestedSuggestions']||!_0x8f5d22[_0x45fd('0xb9')]&&!_0x8f5d22[_0x45fd('0x6d')])&&Gt(_0x2f7426,_0x5d1f12)&&_0x1d4ef1[_0x45fd('0xef')](_0x2f7426);for(const _0xbc48b3 of _0x1d4ef1){const _0x4e6b9e=_0xbc48b3[_0x45fd('0x2f')]();if(!_0x5d1f12||!_0x5d1f12['skipNestingCheck']){if(_0x40e5cf[_0x45fd('0x171')](_0x26060a=>_0x4e6b9e[_0x45fd('0x1e')](_0x24117e=>_0x24117e[_0x45fd('0x174')](_0x26060a,!0x0))))return _0xbc48b3;}(!_0xbc48b3['attributes']||!_0xbc48b3['attributes'][_0x45fd('0x1d')])&&(_0x4e6b9e['every'](_0x36d5d8=>_0x40e5cf['some'](_0xb599f5=>_0xb599f5[_0x45fd('0x174')](_0x36d5d8,!0x0)))&&_0xbc48b3[_0x45fd('0xe6')]());}const _0xc344b2=_0x1d4647(),_0x33f6ce=_0x1cb606['id'],_0x31f6ba='deletion:'+_0x3434f1,_0x51cf03=this['_setSuggestionData']({'id':_0xc344b2,'type':_0x31f6ba,'createdAt':new Date(),'authorId':_0x33f6ce,'attributes':_0x5d1f12});for(const _0x4375d of _0x40e5cf)_0x4375d['detach'](),_0x4375d['isCollapsed']||'$graveyard'==_0x4375d[_0x45fd('0x115')][_0x45fd('0xba')]||this['_addSuggestionMarker'](_0x31f6ba,_0xc344b2,_0x33f6ce,_0x4375d,_0x1de743[_0x45fd('0x55')]());return _0x51cf03;}[_0x45fd('0x16a')](_0x42031f,_0x406071,_0x5931ad,_0x10e444,_0x5ad58a){if(_0x42031f[_0x45fd('0x10d')])return[];if(_0x45fd('0x107')===this[_0x45fd('0x71')])return[];const _0x1dc491=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136'))['me']['id'],_0x29a2a7=Array['from'](this[_0x45fd('0x144')]['values']())[_0x45fd('0x14')](_0x9ce8be=>'attribute'==_0x9ce8be['type']&&_0x9ce8be['data'][_0x45fd('0x69')]==_0x406071&&_0x9ce8be[_0x45fd('0xf2')](_0x42031f));if(_0x45fd('0x18')===this[_0x45fd('0x71')]){const _0x18808f=this[_0x45fd('0xfe')](_0x42031f,_0x45fd('0x2e'))[_0x45fd('0x14')](({meta:_0x4c7c0e})=>_0x4c7c0e[_0x45fd('0x35')]&&!_0x4c7c0e[_0x45fd('0x6d')]&&!_0x4c7c0e[_0x45fd('0xaa')])[_0x45fd('0x22')](({suggestion:_0x4e2a5d})=>_0x4e2a5d);_0x29a2a7[_0x45fd('0x41')](..._0x18808f);}const _0x17f860=new Map([[_0x42031f,_0x5931ad]]);for(const _0x44a96e of _0x29a2a7){const _0x88687c=_0x45fd('0x126')==_0x44a96e[_0x45fd('0xda')]?_0x44a96e[_0x45fd('0x163')][_0x45fd('0x173')]:void 0x0,_0x443152=_0x44a96e[_0x45fd('0x17')](),_0x2fbd36=Array[_0x45fd('0x19')](_0x17f860[_0x45fd('0x97')]())[_0x45fd('0x123')](_0x40d708=>_0x40d708[_0x45fd('0xb4')](_0x443152));if(!_0x2fbd36)continue;const _0x172e68=_0x2fbd36[_0x45fd('0x149')](_0x443152);this[_0x45fd('0x122')](_0x406071)&&_0x45fd('0x2e')==_0x44a96e[_0x45fd('0xda')]&&0x0!=_0x172e68[_0x45fd('0x25')]||(_0x17f860[_0x45fd('0xee')](_0x2fbd36),_0x172e68[_0x45fd('0x3f')](_0x4167f0=>{_0x17f860[_0x45fd('0x5a')](_0x4167f0,_0x5931ad);}),_0x45fd('0x2e')!=_0x44a96e[_0x45fd('0xda')]&&_0x88687c!=_0x10e444&&_0x17f860[_0x45fd('0x5a')](_0x2fbd36[_0x45fd('0x106')](_0x443152),_0x88687c));}const _0x1403aa=[];for(const [_0x588596,_0x4bd45c]of _0x17f860){const _0x5a762e=_0x1d4647(),_0x38e864={'key':_0x406071,'oldValue':_0x4bd45c,'newValue':_0x10e444};_0x406071[_0x45fd('0x25')]>0x25&&console['warn'](_0x45fd('0x15a'),{'key':_0x406071});const _0x14922c=(_0x45fd('0xa8')+(_0x406071+'|'+Et({'newValue':_0x10e444})))['substring'](0x0,0x3c),_0x5e8206=this['_setSuggestionData']({'id':_0x5a762e,'type':_0x14922c,'data':_0x38e864,'createdAt':new Date(),'authorId':_0x1dc491,'attributes':_0x5ad58a});_0x1403aa[_0x45fd('0xd2')](_0x5e8206),this[_0x45fd('0xad')](_0x14922c,_0x5a762e,_0x1dc491,_0x588596);}return _0x1403aa;}[_0x45fd('0xa2')](_0x53a6fc){this[_0x45fd('0xe4')][_0x45fd('0xef')](_0x53a6fc);}[_0x45fd('0x11c')](_0x144120){this[_0x45fd('0xcd')][_0x45fd('0xef')](_0x144120);}[_0x45fd('0xdd')](_0x14e891,_0x17c7d7=[],_0x2d3206=[]){this['enableCommand'](_0x14e891,(_0x2d8d9e,..._0x2bdabc)=>{this['_recordAttributeChanges'](()=>{_0x2d8d9e(..._0x2bdabc);});});for(const _0x5cd325 of _0x17c7d7)this[_0x45fd('0x11c')](_0x5cd325);for(const _0x2637fe of _0x2d3206)this['_registerBlockAttribute'](_0x2637fe);}[_0x45fd('0xdf')](_0x14fece,_0xc3be23){const _0x2d282c=_0x14fece[_0x45fd('0x116')]();this[_0x45fd('0xe')][_0x45fd('0x5c')](_0x5942a4=>{_0x5942a4[_0x45fd('0x8a')](_0x2d282c,{'range':_0xc3be23});});}['_addThreadToSuggestion'](_0x5c4fc9){const _0xe679fd=_0x5c4fc9['id'],_0x22bdfd=this[_0x45fd('0xbc')][_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0x13b'));this['_commentsRepository'][_0x45fd('0x72')](_0xe679fd)||this[_0x45fd('0x74')]['addCommentThread']({'channelId':_0x22bdfd,'threadId':_0xe679fd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x19e485=this['_commentsRepository'][_0x45fd('0x143')](_0xe679fd);_0x19e485['unbind'](_0x45fd('0x139')),_0x19e485['isRemovable']=!0x1,_0x5c4fc9[_0x45fd('0x141')]=_0x19e485;}['_checkSuggestionCorrectness'](_0x63fc48,_0x5c2c2b,_0x50e028,_0x28d5be){if(_0x63fc48[_0x45fd('0xda')]!=_0x5c2c2b||_0x63fc48[_0x45fd('0x27')]!=_0x50e028||_0x63fc48[_0x45fd('0x9c')]['id']!=_0x28d5be)throw this[_0x45fd('0xbc')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4f5e3f(_0x45fd('0x30'),this);}['_cutOutSuggestionMarker'](_0x42992a,_0x3d7ae2){const _0x50a3ca=_0x42992a[_0x45fd('0x17')]();if(_0x3d7ae2[_0x45fd('0x7e')](_0x50a3ca))_0x42992a[_0x45fd('0x13')]();else{if(_0x50a3ca[_0x45fd('0x174')](_0x3d7ae2)){const _0x43e05a=this['_model'][_0x45fd('0x65')](_0x3d7ae2['start'][_0x45fd('0x6f')],'end');this[_0x45fd('0xdf')](_0x42992a,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x50a3ca[_0x45fd('0x12d')],_0x43e05a));const _0x4b4c04=_0x1d4647(),_0x5a3fbe=_0x42992a[_0x45fd('0x9c')]['id'],_0x4fac2b=_0x42992a['type']+':'+_0x42992a[_0x45fd('0x27')];this[_0x45fd('0xd9')]({'id':_0x4b4c04,'type':_0x4fac2b,'createdAt':new Date(),'authorId':_0x5a3fbe,'data':_0x42992a['data'],'attributes':_0x42992a[_0x45fd('0x16b')]});const _0xfd1f14=this[_0x45fd('0xe')][_0x45fd('0x65')](_0x3d7ae2[_0x45fd('0x102')][_0x45fd('0x92')],_0x45fd('0xd5')),_0x37dba6=this[_0x45fd('0xe')][_0x45fd('0x9a')](_0xfd1f14,_0x50a3ca[_0x45fd('0x102')]);this['_addSuggestionMarker'](_0x4fac2b,_0x4b4c04,_0x5a3fbe,_0x37dba6);}else{if(_0x50a3ca['containsPosition'](_0x3d7ae2['start'])){const _0x3ae517=this['_model']['createPositionAt'](_0x3d7ae2[_0x45fd('0x12d')][_0x45fd('0x6f')],_0x45fd('0x102'));this[_0x45fd('0xdf')](_0x42992a,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x50a3ca[_0x45fd('0x12d')],_0x3ae517));}else{const _0x1a3c4c=this[_0x45fd('0xe')][_0x45fd('0x65')](_0x3d7ae2[_0x45fd('0x102')][_0x45fd('0x92')],'after');this[_0x45fd('0xdf')](_0x42992a,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x1a3c4c,_0x50a3ca[_0x45fd('0x102')]));}}}}[_0x45fd('0x128')](_0x3791c5){for(const {suggestion:_0x584fbe,meta:_0x5a4f4a}of this[_0x45fd('0xfe')](_0x3791c5,_0x45fd('0x2e'))){if(!_0x5a4f4a['isOwn'])continue;const _0x3e27dc=_0x584fbe[_0x45fd('0x2f')]();for(const _0x25e9cc of _0x3e27dc)if(!_0x3791c5[_0x45fd('0x149')](_0x25e9cc)[_0x45fd('0x25')])return!0x0;}return!0x1;}[_0x45fd('0x84')](_0x53f49b){const _0x52b04d=this[_0x45fd('0xbc')]['plugins'][_0x45fd('0x20')]('Users')[_0x45fd('0xbe')](_0x53f49b);if(!_0x52b04d)throw new _0x4f5e3f(_0x45fd('0x31'),this);return _0x52b04d;}[_0x45fd('0x93')](_0x591f11){const _0x2df92b=this['editor'][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x136')),_0xc7e10a=_0x59c5b9('external:'+_0x591f11),_0x502646=_0x2df92b[_0x45fd('0xbe')](_0xc7e10a);return _0x502646||_0x2df92b[_0x45fd('0xc8')]({'id':_0xc7e10a,'name':_0x591f11});}['_createSuggestion'](_0x4f5d2b,_0x4564c5,_0x45276b,_0x4d8e3c,_0xe438e5){const _0x232c30=this['_getAuthorFromId'](_0x4d8e3c),_0x172586=this[_0x45fd('0xb7')][_0x45fd('0x3b')](_0x4f5d2b,_0x4564c5,_0x45276b,_0x232c30,_0xe438e5,_0x5ceafa=>this[_0x45fd('0x10c')](_0x45276b,{'attributes':_0x5ceafa}));return this[_0x45fd('0x8')](_0x172586,_0x45fd('0x147'),()=>{this[_0x45fd('0x10c')](_0x45276b,{'state':_0x45fd('0xaf')});},{'priority':_0x45fd('0x127')}),this[_0x45fd('0x8')](_0x172586,'discard',()=>{this[_0x45fd('0x10c')](_0x45276b,{'state':'rejected'});},{'priority':'high'}),this[_0x45fd('0x144')][_0x45fd('0x5a')](_0x45276b,_0x172586),this[_0x45fd('0x67')]['set'](_0x172586,_0x45fd('0xd7')),_0x172586;}[_0x45fd('0x138')](_0x59c1eb){const _0x53ab64=_0x59c1eb['split'](':');return{'group':_0x53ab64[0x0],'type':_0x53ab64[0x1],'subType':_0x53ab64['length']>=0x5?_0x53ab64[0x2]:null,'id':_0x53ab64['length']<0x5?_0x53ab64[0x2]:_0x53ab64[0x3],'authorId':_0x53ab64['length']<0x5?_0x53ab64[0x3]:_0x53ab64[0x4],'markerCount':0x6==_0x53ab64[_0x45fd('0x25')]?_0x53ab64[0x5]:null};}[_0x45fd('0x14b')](_0x103ea3,_0x13dd24,_0x4e8211){const _0x5b1fa4=_0x103ea3['getFirstRange'](),_0x41419b=_0x5b1fa4[_0x45fd('0x12d')],_0x84115c=_0x5b1fa4[_0x45fd('0x102')];this[_0x45fd('0xdf')](_0x103ea3,this['_model'][_0x45fd('0x9a')](_0x41419b,_0x13dd24));const _0x552e1c=_0x1d4647(),_0x45823f=_0x103ea3[_0x45fd('0x9c')]['id'],_0x5cc34f=_0x103ea3['type']+(_0x103ea3[_0x45fd('0x27')]?':'+_0x103ea3['subType']:'');this['_setSuggestionData']({'id':_0x552e1c,'type':_0x5cc34f,'createdAt':new Date(),'authorId':_0x45823f,'originalSuggestionId':_0x103ea3['id'],'attributes':_0x103ea3[_0x45fd('0x16b')],'data':_0x103ea3['data']});const _0x4ac029=Pt(_0x103ea3);('formatBlock'==_0x103ea3['type']||_0x4ac029&&this[_0x45fd('0x122')](_0x4ac029))&&(_0x4e8211=this[_0x45fd('0xe')][_0x45fd('0x14f')](_0x4e8211[_0x45fd('0x92')])),this[_0x45fd('0xad')](_0x5cc34f,_0x552e1c,_0x45823f,this[_0x45fd('0xe')]['createRange'](_0x4e8211,_0x84115c));}[_0x45fd('0xfe')](_0x20073e,_0xabce8e=null){const _0x332e1d=[],_0x56301d=this[_0x45fd('0xbc')]['plugins'][_0x45fd('0x20')](_0x45fd('0x136'))['me'];Array[_0x45fd('0xa')](_0x20073e)||(_0x20073e=[_0x20073e]);for(const _0x452a7c of this[_0x45fd('0x90')]()){if(!_0x452a7c['isInContent'])continue;if(_0xabce8e&&_0x452a7c[_0x45fd('0xda')]!=_0xabce8e)continue;let _0x33a81f=!0x1;for(const _0x504ede of _0x452a7c[_0x45fd('0x2f')]()){for(const _0x405c35 of _0x20073e){const _0x56e286=_0x405c35[_0x45fd('0x12d')][_0x45fd('0x7e')](_0x504ede[_0x45fd('0x102')])||_0x405c35['end']['isEqual'](_0x504ede[_0x45fd('0x12d')]);if(_0x56e286||_0x405c35[_0x45fd('0x106')](_0x504ede)){const _0x75144a=_0x405c35[_0x45fd('0x174')](_0x504ede)&&Bt(this['_model'][_0x45fd('0x82')],_0x504ede['start'],_0x405c35),_0x400534=_0x504ede[_0x45fd('0x174')](_0x405c35)&&Bt(this[_0x45fd('0xe')]['schema'],_0x405c35[_0x45fd('0x12d')],_0x504ede);_0x332e1d[_0x45fd('0xd2')]({'suggestion':_0x452a7c,'meta':{'isOwn':_0x56301d==_0x452a7c[_0x45fd('0xc9')],'isNextTo':_0x56e286,'isInsideObject':_0x75144a,'containsRangeInObject':_0x400534}}),_0x33a81f=!0x0;break;}}if(_0x33a81f)break;}}return _0x332e1d;}[_0x45fd('0xad')](_0x848662,_0x2ffd3d,_0x51ef93,_0x149f1d,_0x34b27d){this['_model'][_0x45fd('0x5c')](_0x3208b4=>{let _0xdc36b8=_0x45fd('0xb1')+_0x848662+':'+_0x2ffd3d+':'+_0x51ef93;_0x34b27d&&(_0xdc36b8=_0xdc36b8+':'+_0x34b27d),_0x3208b4[_0x45fd('0x8f')](_0xdc36b8,{'range':_0x149f1d,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x45fd('0x8d')](_0xe8a9e7){const _0x1b1ddb=_0xe8a9e7[_0x45fd('0xed')],_0x59224b=_0xe8a9e7[_0x45fd('0xdc')];_0xe8a9e7[_0x45fd('0xed')]=null,_0xe8a9e7[_0x45fd('0xdc')]=null,null!=_0x1b1ddb&&(_0x1b1ddb[_0x45fd('0xdc')]=_0x59224b),null!=_0x59224b&&(_0x59224b[_0x45fd('0xed')]=_0x1b1ddb),'ready'==this[_0x45fd('0x67')][_0x45fd('0x20')](_0xe8a9e7)&&(this['_suggestionState'][_0x45fd('0x5a')](_0xe8a9e7,_0x45fd('0x120')),this[_0x45fd('0x29')]('suggestionUnloaded',_0xe8a9e7,_0x1b1ddb,_0x59224b));}['_setSuggestionData'](_0x4ec821){const _0xf81af5=_0x4ec821['id'],_0x460570=this[_0x45fd('0x64')](_0x4ec821);if(this[_0x45fd('0xfd')]&&this[_0x45fd('0xfd')][_0x45fd('0x13f')]){const _0x4f641f=this[_0x45fd('0xbc')][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x6c')),_0x483083=_0x460570['hasComments'],_0xbcd719=_0x460570['subType']?_0x460570[_0x45fd('0xda')]+':'+_0x460570[_0x45fd('0x27')]:_0x460570['type'],_0xed4a92=this[_0x45fd('0xbc')][_0x45fd('0x24')],_0x128ba0=_0x4f641f[_0x45fd('0xef')](_0x14698f(_0xed4a92,_0x45fd('0xc2'))),_0x5336df={'id':_0xf81af5,'type':_0xbcd719,'hasComments':_0x483083,'data':_0x4ec821['data']||null,'originalSuggestionId':_0x4ec821[_0x45fd('0x16')]||null,'attributes':_0x460570['attributes']};this[_0x45fd('0xfd')][_0x45fd('0x13f')](_0x5336df)['then'](_0x3fb536=>{_0x460570[_0x45fd('0x66')]=!0x0,_0x4f641f['remove'](_0x128ba0),_0x3fb536&&_0x3fb536[_0x45fd('0xf6')]&&(this[_0x45fd('0x144')][_0x45fd('0x20')](_0xf81af5)['createdAt']=_0x3fb536['createdAt']);})[_0x45fd('0x13e')](_0x37237c=>{throw _0x4d5f77(_0x45fd('0x118')),this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0x4b')]({'isUndoable':!0x1},()=>{_0x460570[_0x45fd('0xe6')]();}),_0x460570[_0x45fd('0x11a')](),this[_0x45fd('0x144')]['delete'](_0x460570['id']),this[_0x45fd('0x67')][_0x45fd('0xee')](_0x460570),_0x37237c;});}return _0x460570;}[_0x45fd('0x122')](_0x189e4f){return this[_0x45fd('0xe4')][_0x45fd('0x15c')](_0x189e4f);}[_0x45fd('0x10c')](_0x52ffec,_0x4b83ec){const _0x31f821=this['editor'][_0x45fd('0x12b')][_0x45fd('0x20')](_0x45fd('0x6c')),_0x3ba9f1=this['getSuggestion'](_0x52ffec);if(this[_0x45fd('0xfd')]&&this[_0x45fd('0xfd')][_0x45fd('0xcf')]){if(_0x3ba9f1[_0x45fd('0x66')]){const _0x7113ba=_0x31f821[_0x45fd('0xef')](_0x14698f(this['editor'][_0x45fd('0x24')],_0x45fd('0xc2')));this[_0x45fd('0xfd')]['updateSuggestion'](_0x52ffec,_0x4b83ec)['then'](()=>{_0x31f821[_0x45fd('0xb0')](_0x7113ba);});}else _0x3ba9f1['on'](_0x45fd('0x9d'),()=>{this[_0x45fd('0x10c')](_0x52ffec,_0x4b83ec);});}}[_0x45fd('0x81')](_0x325f93){if(!this[_0x45fd('0xfd')]||!this['_adapter']['getSuggestion'])throw new _0x4f5e3f(_0x45fd('0x15e'),this);return this[_0x45fd('0xfd')]['getSuggestion'](_0x325f93);}[_0x45fd('0x0')](_0x5a14aa){const {id:_0x1d93b4,type:_0x4ae057,subType:_0x481855,authorId:_0x58b183}=this[_0x45fd('0x138')](_0x5a14aa),_0x3ee611=this[_0x45fd('0x144')]['get'](_0x1d93b4)||this[_0x45fd('0xf0')](_0x4ae057,_0x481855,_0x1d93b4,_0x58b183,{});switch(this['_checkSuggestionCorrectness'](_0x3ee611,_0x4ae057,_0x481855,_0x58b183),this[_0x45fd('0x67')][_0x45fd('0x20')](_0x3ee611)){case _0x45fd('0xd7'):this[_0x45fd('0x81')](_0x1d93b4)[_0x45fd('0x110')](_0xf031d0=>{let _0x1ff3bc=Promise[_0x45fd('0x132')]();_0xf031d0['hasComments']&&(_0x1ff3bc=this['_commentsRepository'][_0x45fd('0x9b')]({'channelId':this[_0x45fd('0xbc')][_0x45fd('0x11')][_0x45fd('0x20')](_0x45fd('0x13b')),'threadId':_0x1d93b4})),_0x1ff3bc['then'](()=>{this[_0x45fd('0x64')](_0xf031d0)['_saved']=!0x0;});}),this['_suggestionState'][_0x45fd('0x5a')](_0x3ee611,_0x45fd('0xa9'));break;case _0x45fd('0x120'):this[_0x45fd('0x10c')](_0x1d93b4,{'state':_0x45fd('0x169')});case _0x45fd('0x7f'):this[_0x45fd('0x67')][_0x45fd('0x5a')](_0x3ee611,_0x45fd('0x13c')),this['fire']('suggestionLoaded',_0x3ee611);break;case'ready':this[_0x45fd('0x29')](_0x45fd('0x86'),_0x3ee611);}return _0x3ee611['addMarkerName'](_0x5a14aa),_0x3ee611;}['_refreshSuggestionsChain'](_0x283eed){const _0x45bb81=Array['from'](_0x283eed),_0x5f199c=_0x45bb81[_0x45fd('0x14')](_0x2b473c=>'attribute'==_0x2b473c['type']);this[_0x45fd('0x79')](_0x5f199c);const _0xbc1a2c=_0x45bb81[_0x45fd('0x14')](_0x10da04=>!_0x10da04[_0x45fd('0xd0')]&&_0x45fd('0x126')!=_0x10da04[_0x45fd('0xda')]),_0x40f0bb=this['getSuggestions']({'skipNotAttached':!0x0})[_0x45fd('0x14')](_0x58803d=>!_0x58803d[_0x45fd('0xd0')]&&_0x45fd('0x126')!=_0x58803d[_0x45fd('0xda')]),_0x3e98e1=_0x40f0bb[_0x45fd('0x14')](_0x2267f1=>!_0x283eed[_0x45fd('0x15c')](_0x2267f1)),_0x383d77=new Map(_0x40f0bb[_0x45fd('0x22')](_0x5b81e5=>[_0x5b81e5,this[_0x45fd('0xb7')][_0x45fd('0x15f')](_0x5b81e5[_0x45fd('0xda')],_0x5b81e5['subType'],_0x45fd('0x44'))])),_0xb37024=new Map(_0x40f0bb[_0x45fd('0x22')](_0x540b41=>[_0x540b41,_0x540b41[_0x45fd('0x17')]()])),_0xf01070=new Set(),_0xd8ea3f=new Set();for(let _0x3f51f1=0x0;_0x3f51f1<_0xbc1a2c[_0x45fd('0x25')];_0x3f51f1++)_0x16334c(_0xbc1a2c[_0x3f51f1],_0xbc1a2c,_0x3f51f1+0x1);for(let _0x158545=0x0;_0x158545<_0xbc1a2c[_0x45fd('0x25')];_0x158545++)_0x16334c(_0xbc1a2c[_0x158545],_0x3e98e1,0x0);const _0x593169=new Set();for(let _0x5e6911=0x0;_0x5e6911<_0xbc1a2c[_0x45fd('0x25')];_0x5e6911++){const _0x43b2eb=_0xbc1a2c[_0x5e6911];!_0xd8ea3f[_0x45fd('0x15c')](_0x43b2eb)&&_0x43b2eb['previous']&&(_0x593169[_0x45fd('0xef')](_0x43b2eb[_0x45fd('0xed')]),_0x43b2eb[_0x45fd('0xed')][_0x45fd('0xdc')]===_0x43b2eb&&(_0x43b2eb['previous']['next']=null),_0x43b2eb[_0x45fd('0xed')]=null),!_0xf01070[_0x45fd('0x15c')](_0x43b2eb)&&_0x43b2eb[_0x45fd('0xdc')]&&(_0x593169[_0x45fd('0xef')](_0x43b2eb[_0x45fd('0xdc')]),_0x43b2eb['next'][_0x45fd('0xed')]===_0x43b2eb&&(_0x43b2eb[_0x45fd('0xdc')][_0x45fd('0xed')]=null),_0x43b2eb[_0x45fd('0xdc')]=null);}function _0x16334c(_0x4b0be6,_0x2eed56,_0x1ba0fd){for(let _0x48e4d7=_0x1ba0fd;_0x48e4d7<_0x2eed56['length'];_0x48e4d7++){const _0x1f1639=_0x5d72c8(_0x4b0be6,_0x2eed56[_0x48e4d7]);_0x1f1639&&(_0x1f1639[0x0][_0x45fd('0xdc')]=_0x1f1639[0x1],_0x1f1639[0x1]['previous']=_0x1f1639[0x0],_0xf01070[_0x45fd('0xef')](_0x1f1639[0x0]),_0xd8ea3f[_0x45fd('0xef')](_0x1f1639[0x1]));}}function _0x5d72c8(_0x3ecd42,_0x43cab6){if(_0x3ecd42[_0x45fd('0xc9')]['id']!==_0x43cab6['author']['id'])return null;const _0x3f9b4b=_0x383d77['get'](_0x3ecd42)(_0x3ecd42,_0x43cab6,_0xb37024[_0x45fd('0x20')](_0x3ecd42),_0xb37024[_0x45fd('0x20')](_0x43cab6));if(!_0x3f9b4b)return null;return _0x383d77['get'](_0x43cab6)(_0x3ecd42,_0x43cab6,_0xb37024['get'](_0x3ecd42),_0xb37024[_0x45fd('0x20')](_0x43cab6))?_0x3f9b4b[0x1]['commentThread']&&_0x3f9b4b[0x1]['commentThread'][_0x45fd('0x25')]?null:_0x3f9b4b:null;}_0x593169[_0x45fd('0x39')]&&this[_0x45fd('0x48')](_0x593169);}['_refreshAttributeSuggestionsChain'](_0x1954be){if(0x0==_0x1954be['length'])return;const _0x4b917a=this['getSuggestions']({'skipNotAttached':!0x0})[_0x45fd('0x14')](_0x409657=>_0x45fd('0x126')==_0x409657[_0x45fd('0xda')]&&_0x409657[_0x45fd('0xd4')]),_0x386902=[],_0x19581a=new Map();for(const _0x177a9b of _0x4b917a){const _0x26590e=_0x59c5b9(_0x177a9b['attributes']);_0x19581a[_0x45fd('0x15c')](_0x26590e)||(_0x19581a['set'](_0x26590e,_0x386902['length']),_0x386902['push']([]));const _0x82d605=_0x19581a['get'](_0x26590e);_0x386902[_0x82d605][_0x45fd('0xd2')](_0x177a9b);}!function(){_0x386902[_0x45fd('0x7d')]((_0x49a19b,_0x51722b)=>{const _0x1a6cf3=_0x49a19b[0x0][_0x45fd('0xf6')],_0xcf893b=_0x51722b[0x0][_0x45fd('0xf6')];return _0x1a6cf3==_0xcf893b?_0x49a19b[0x0][_0x45fd('0x16b')]['groupId']<_0x51722b[0x0]['attributes'][_0x45fd('0x113')]?-0x1:0x1:_0x1a6cf3<_0xcf893b?-0x1:0x1;});for(const _0x578e30 of _0x386902)_0x578e30[_0x45fd('0x7d')]((_0xba8b9f,_0x1c5f8c)=>_0xba8b9f['id']<_0x1c5f8c['id']?-0x1:0x1);}();for(let _0x2b6ec4=0x0;_0x2b6ec4<_0x386902[_0x45fd('0x25')];_0x2b6ec4++){if(0x0==_0x386902[_0x2b6ec4][_0x45fd('0x25')])continue;const _0x16fa7d=[];for(let _0x4ac3cd=_0x2b6ec4+0x1;_0x4ac3cd<_0x386902[_0x45fd('0x25')];_0x4ac3cd++)0x0!=_0x386902[_0x4ac3cd][_0x45fd('0x25')]&&_0x3b2721(_0x386902[_0x2b6ec4],_0x386902[_0x4ac3cd])&&_0x16fa7d[_0x45fd('0xd2')](_0x4ac3cd);for(const _0x23921f of _0x16fa7d)_0x386902[_0x2b6ec4]=_0x386902[_0x2b6ec4][_0x45fd('0x2c')](_0x386902[_0x23921f]),_0x386902[_0x23921f]=[];}for(const _0x164584 of _0x386902)for(let _0x2d89b0=0x0;_0x2d89b0<_0x164584['length'];_0x2d89b0++)_0x164584[_0x2d89b0][_0x45fd('0xdc')]=_0x164584[_0x2d89b0+0x1]||null;for(const _0x23a9fa of _0x386902)for(let _0x438e6c=0x0;_0x438e6c<_0x23a9fa[_0x45fd('0x25')];_0x438e6c++)_0x23a9fa[_0x438e6c][_0x45fd('0xed')]=_0x23a9fa[_0x438e6c-0x1]||null;function _0x3b2721(_0x5f535e,_0x296d08){if(_0x5f535e[0x0][_0x45fd('0xc9')]!==_0x296d08[0x0]['author'])return!0x1;if(!function(_0x16d3c1,_0xd1e30d){if(!_0x16d3c1[_0x45fd('0x85')]&&!_0xd1e30d[_0x45fd('0x85')])return!0x0;if(_0x16d3c1[_0x45fd('0x85')]&&_0xd1e30d[_0x45fd('0x85')])return!0x1;if(_0x16d3c1['hasComments']&&_0xd1e30d[_0x45fd('0xf6')]<_0x16d3c1[_0x45fd('0x141')][_0x45fd('0xac')][_0x45fd('0x20')](0x0)['createdAt'])return!0x0;if(_0xd1e30d[_0x45fd('0x85')]&&_0x16d3c1['createdAt']<_0xd1e30d['commentThread'][_0x45fd('0xac')][_0x45fd('0x20')](0x0)[_0x45fd('0xf6')])return!0x0;return!0x1;}(_0x5f535e[0x0],_0x296d08[0x0]))return!0x1;const _0x311306=_0x1286d7(_0x5f535e[0x0][_0x45fd('0x16b')],'groupId'),_0x429d1b=_0x1286d7(_0x296d08[0x0]['attributes'],_0x45fd('0x113'));if(!_0x4a6831(_0x311306,_0x429d1b))return!0x1;return!!_0x5f535e[_0x45fd('0x171')](_0x58df2a=>_0x296d08['some'](_0x212ba5=>_0x58df2a['getFirstRange']()[_0x45fd('0x7e')](_0x212ba5[_0x45fd('0x17')]())))&&_0x296d08[_0x45fd('0x171')](_0x347286=>_0x5f535e[_0x45fd('0x1e')](_0x5e7f1e=>_0x347286[_0x45fd('0x17')]()[_0x45fd('0x7e')](_0x5e7f1e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4640fb){const _0x267741=Array['from'](_0x4640fb),_0x44743f=this[_0x45fd('0x90')]({'skipNotAttached':!0x0}),_0x89f883=_0x44743f[_0x45fd('0x14')](_0x5a1db8=>!_0x4640fb['has'](_0x5a1db8)),_0x4ad46a=new Map(_0x267741[_0x45fd('0x22')](_0x31a061=>[_0x31a061,this['_suggestionFactory'][_0x45fd('0x15f')](_0x31a061['type'],_0x31a061[_0x45fd('0x27')],_0x45fd('0x131'))])),_0x79b958=new Map(_0x44743f[_0x45fd('0x22')](_0x4ea132=>[_0x4ea132,_0x4ea132[_0x45fd('0x2f')]()]));for(let _0x534077=0x0;_0x534077<_0x267741[_0x45fd('0x25')];_0x534077++){if(_0x5715d0(this,_0x267741[_0x534077],_0x267741,_0x534077+0x1))return!0x0;}for(let _0x41ff47=0x0;_0x41ff47<_0x267741[_0x45fd('0x25')];_0x41ff47++){if(_0x5715d0(this,_0x267741[_0x41ff47],_0x89f883,0x0))return!0x0;}return!0x1;function _0x5715d0(_0x4a3606,_0x591993,_0x53bd71,_0x1522f2){for(let _0x20a133=_0x1522f2;_0x20a133<_0x53bd71[_0x45fd('0x25')];_0x20a133++){const _0x47182c=_0x53bd71[_0x20a133];if(_0x47182c['type']!==_0x591993[_0x45fd('0xda')]||_0x47182c[_0x45fd('0xc9')]['id']!==_0x591993[_0x45fd('0xc9')]['id']||_0x47182c[_0x45fd('0x27')]!==_0x591993[_0x45fd('0x27')])continue;if(!Vt(_0x591993,_0x47182c))continue;if('attribute'==_0x591993[_0x45fd('0xda')]&&_0x591993['data'][_0x45fd('0x173')]!=_0x47182c[_0x45fd('0x163')][_0x45fd('0x173')])continue;if(_0x45fd('0x126')==_0x591993[_0x45fd('0xda')]&&_0x4a3606['_isBlockAttribute'](_0x591993['data']['key']))continue;if(_0x45fd('0x51')==_0x591993[_0x45fd('0xda')]){const _0x1f9f31=_0x4a3606[_0x45fd('0xbc')][_0x45fd('0x159')],_0x4c1751=_0x591993[_0x45fd('0xcb')]();if(_0x4c1751&&(_0x1f9f31[_0x45fd('0x82')][_0x45fd('0x57')](_0x4c1751)||_0x1f9f31[_0x45fd('0x82')][_0x45fd('0x5b')](_0x4c1751)))continue;}const _0x3656f0=_0x4ad46a[_0x45fd('0x20')](_0x591993),_0xc49953=_0x79b958[_0x45fd('0x20')](_0x591993),_0x19c15a=_0x79b958[_0x45fd('0x20')](_0x47182c),_0x260ae9=_0x591993[_0x45fd('0x141')]&&_0x591993[_0x45fd('0x141')][_0x45fd('0x25')],_0x45f48e=_0x47182c[_0x45fd('0x141')]&&_0x47182c[_0x45fd('0x141')][_0x45fd('0x25')];if(!_0x260ae9&&_0x3656f0(_0x19c15a,_0xc49953))return _0x4a3606[_0x45fd('0xe3')](_0x47182c,_0x591993),_0x79b958[_0x45fd('0xee')](_0x591993),!0x0;if(!_0x45f48e&&_0x3656f0(_0xc49953,_0x19c15a))return _0x4a3606[_0x45fd('0xe3')](_0x591993,_0x47182c),_0x79b958[_0x45fd('0xee')](_0x47182c),!0x0;}return!0x1;}}[_0x45fd('0xe3')](_0x252fdb,_0xbc4bcc){if(_0x252fdb['isMultiRange'])for(const _0x161ec1 of _0xbc4bcc['getRanges']())_0x252fdb[_0x45fd('0x168')](_0x161ec1);else{const _0x87a1f5=_0xbc4bcc[_0x45fd('0x17')]()['end'];this['_setSuggestionRange'](_0x252fdb,this[_0x45fd('0xe')][_0x45fd('0x9a')](_0x252fdb['getFirstRange']()['start'],_0x87a1f5));}_0xbc4bcc['removeMarkers']();}[_0x45fd('0x34')](_0xd1b36c,_0x226a50){const _0x4342dc=_0xd1b36c[_0x45fd('0xfc')](_0x45fd('0x135'))||_0xd1b36c[_0x45fd('0xfc')](_0x45fd('0x126'))?_0x45fd('0x172'):_0xd1b36c['toUpperCase']();return _0x14698f(this[_0x45fd('0xbc')][_0x45fd('0x24')],_0x226a50+'_'+_0x4342dc+_0x45fd('0x61'));}[_0x45fd('0xd')](){const _0x4e898a=this[_0x45fd('0xbc')];_0x52f036(this[_0x45fd('0xe')],({left:_0x7760c9,entered:_0x2e65be})=>{const _0x265867=[];for(const _0x5bfed3 of _0x7760c9){const {group:_0x5f5493,type:_0x23dcdb}=this[_0x45fd('0x138')](_0x5bfed3[_0x45fd('0x32')]);if(_0x45fd('0x130')===_0x5f5493){_0x265867['push'](this['_getMarkerAnnouncementText'](_0x23dcdb,'LEAVE'));break;}}for(const _0x4bb1dc of _0x2e65be){const {group:_0x99581f,type:_0x1a3f7a}=this[_0x45fd('0x138')](_0x4bb1dc[_0x45fd('0x32')]);if(_0x45fd('0x130')===_0x99581f){_0x265867[_0x45fd('0xd2')](this['_getMarkerAnnouncementText'](_0x1a3f7a,_0x45fd('0xc7')));break;}}_0x265867['length']&&_0x4e898a['ui']['ariaLiveAnnouncer']['announce']('trackChanges',_0x265867[_0x45fd('0x131')]('\x20'));});}[_0x45fd('0xfa')](_0x383afd){if(null!==this['_recordAttributeSuggestionsFromVersion'])return!0x1;const _0x3942de=this['editor'],_0x2ff54c=_0x3942de[_0x45fd('0x159')]['document'][_0x45fd('0x60')][_0x45fd('0x167')]();if(0x0==_0x2ff54c[_0x45fd('0x25')])return!0x1;const _0x2a7b87=[],_0x2fd5f9=_0x2ff54c[_0x45fd('0x14')](_0x249213=>_0x45fd('0x126')==_0x249213[_0x45fd('0xda')]),_0x551d3e=_0x2ff54c[_0x45fd('0x14')](_0x5eac91=>'insert'==_0x5eac91[_0x45fd('0xda')]&&_0x45fd('0x33')!=_0x5eac91['name']),_0x32f780=_0x2ff54c['filter'](_0x1e0669=>'remove'==_0x1e0669[_0x45fd('0xda')]&&'$text'!=_0x1e0669['name']);for(const _0x3e37ac of _0x2fd5f9)_0x2a7b87[_0x45fd('0xd2')]({'key':_0x3e37ac['attributeKey'],'newValue':_0x3e37ac[_0x45fd('0xec')],'oldValue':_0x3e37ac['attributeOldValue'],'range':_0x353732(_0x3e37ac['range'])});for(const _0x1df0c2 of _0x551d3e){const _0x5410cf=_0x32f780[_0x45fd('0x123')](_0x16c7d0=>_0x16c7d0[_0x45fd('0x108')][_0x45fd('0x7e')](_0x1df0c2[_0x45fd('0x108')]));_0x5410cf&&_0x2a7b87['push']({'key':'$elementName','newValue':_0x1df0c2[_0x45fd('0x32')],'oldValue':_0x5410cf['name'],'range':_0x3942de['model']['createRangeOn'](_0x1df0c2[_0x45fd('0x108')][_0x45fd('0xf3')])});}return 0x0!=_0x2a7b87['length']&&this[_0x45fd('0x11d')](_0x383afd,_0x2a7b87);function _0x353732(_0x25841c){return null==_0x25841c[_0x45fd('0x102')][_0x45fd('0x6f')]&&_0x25841c[_0x45fd('0x102')][_0x45fd('0x92')]==_0x25841c[_0x45fd('0x12d')]['nodeAfter']?Ut(_0x25841c[_0x45fd('0x12d')]['nodeAfter'],_0x3942de[_0x45fd('0x159')]):_0x25841c;}}[_0x45fd('0xa6')](_0xc03481){let _0x5eb711=!0x1;const _0x1aa136=this[_0x45fd('0xbc')][_0x45fd('0x159')][_0x45fd('0xab')][_0x45fd('0x60')][_0x45fd('0x160')]()[_0x45fd('0x14')](_0x204520=>_0x204520[_0x45fd('0x163')][_0x45fd('0x137')]&&_0x204520[_0x45fd('0x32')][_0x45fd('0xfc')](_0x45fd('0x87')));for(const _0x5c2d8a of _0x1aa136){const {subType:_0x125cf7,id:_0xf88fd0}=this[_0x45fd('0x138')](_0x5c2d8a[_0x45fd('0x32')]),_0x2d2175=_0x125cf7[_0x45fd('0x15')]('|')[0x0];for(const _0x5e97c2 of this[_0x45fd('0x90')]({'skipNotAttached':!0x0}))_0x5e97c2['id']!=_0xf88fd0&&'attribute'==_0x5e97c2[_0x45fd('0xda')]&&_0x5e97c2[_0x45fd('0x163')]&&_0x5e97c2[_0x45fd('0x163')][_0x45fd('0x69')]==_0x2d2175&&_0x5e97c2['getFirstRange']()[_0x45fd('0xb4')](_0x5c2d8a['data'][_0x45fd('0x137')])&&(this[_0x45fd('0xae')](_0x5e97c2,_0x5c2d8a[_0x45fd('0x163')][_0x45fd('0x137')],_0xc03481),_0x5eb711=!0x0);}return _0x5eb711;}['_recordAttributeChanges'](_0x33a8aa){if(null!==this[_0x45fd('0x56')])return void _0x33a8aa();const _0x256620=this[_0x45fd('0xbc')];this[_0x45fd('0x56')]=_0x256620['model']['document']['version'],_0x33a8aa();const _0x15c613=new Map();for(const _0x34e691 of _0x256620[_0x45fd('0x159')]['document'][_0x45fd('0x164')][_0x45fd('0x111')](this['_recordAttributeSuggestionsFromVersion']))if([_0x45fd('0xa7'),'addAttribute','removeAttribute',_0x45fd('0x5d')][_0x45fd('0xbf')](_0x34e691[_0x45fd('0xda')])){const _0x451603=_0x34e691[_0x45fd('0x16e')],_0x50cccc=_0x15c613[_0x45fd('0x20')](_0x451603)||[];_0x50cccc[_0x45fd('0xd2')](_0x34e691),_0x15c613[_0x45fd('0x5a')](_0x451603,_0x50cccc);}this[_0x45fd('0x56')]=null;for(const [_0x45a541,_0x3a5d1c]of _0x15c613){const _0x2c0d48=_0x1d4647();_0x256620['model'][_0x45fd('0x4b')](_0x45a541,_0x8cc31a=>{const _0x28be39=[];for(const _0x30732c of _0x3a5d1c){let _0xa51a7e,_0x4b518e,_0x50bf03,_0x90209d;if(_0x45fd('0xa7')==_0x30732c[_0x45fd('0xda')]){const _0x89ef35=_0x30732c;_0xa51a7e=Ut(_0x89ef35[_0x45fd('0x108')]['nodeAfter'],_0x256620['model']),_0x4b518e=_0x45fd('0x13a'),_0x50bf03=_0x89ef35[_0x45fd('0x9e')],_0x90209d=_0x89ef35[_0x45fd('0x40')];}else{const _0x50c43f=_0x30732c,_0x208b57=this[_0x45fd('0x122')](_0x50c43f['key']),_0x42162a=this[_0x45fd('0xcd')][_0x45fd('0x15c')](_0x50c43f['key']);if(!_0x208b57&&!_0x42162a)continue;_0xa51a7e=_0x208b57?Ut(_0x50c43f[_0x45fd('0x4d')][_0x45fd('0x12d')][_0x45fd('0xf3')],_0x256620[_0x45fd('0x159')]):_0x50c43f[_0x45fd('0x4d')],_0x4b518e=_0x50c43f[_0x45fd('0x69')],_0x50bf03=_0x45fd('0x4')==_0x30732c[_0x45fd('0xda')]?void 0x0:_0x50c43f['newValue'],_0x90209d=_0x50c43f[_0x45fd('0x173')];}this[_0x45fd('0x16a')](_0xa51a7e,_0x4b518e,_0x90209d,_0x50bf03,{'groupId':_0x2c0d48}),_0x28be39[_0x45fd('0xd2')]({'range':_0xa51a7e,'key':_0x4b518e,'newValue':_0x50bf03,'oldValue':_0x90209d});}this['_reduceExistingSuggestions'](_0x8cc31a,_0x28be39);});}}['_reduceExistingSuggestions'](_0x3edc71,_0x356bb3){if(0x0==_0x356bb3[_0x45fd('0x25')])return!0x1;let _0x17ccf0=!0x1;for(const _0x445b36 of _0x356bb3){const _0x4a8803=this[_0x45fd('0xfe')](_0x445b36['range'],_0x45fd('0x126'))[_0x45fd('0x14')](_0x3286a6=>!_0x3286a6[_0x45fd('0x105')][_0x45fd('0xaa')])[_0x45fd('0x22')](_0x354155=>_0x354155['suggestion']),_0x18480b=_0x59c5b9({'newValue':_0x445b36[_0x45fd('0x2a')]});_0x4a8803['filter'](_0x2d1633=>{const [_0x1dadc8,_0x32e0c6]=_0x2d1633[_0x45fd('0x27')]['split']('|');return _0x1dadc8==_0x445b36[_0x45fd('0x69')]&&_0x32e0c6!=_0x18480b;})[_0x45fd('0x3f')](_0x47e345=>{this['_reduceSuggestionAttributeRange'](_0x47e345,_0x445b36[_0x45fd('0x4d')],_0x3edc71),_0x17ccf0=!0x0;});}return _0x17ccf0;}[_0x45fd('0xae')](_0x4c57f8,_0x24fa4f,_0x4fe5c7){const _0x51a1e2=_0x4c57f8[_0x45fd('0x17')]()[_0x45fd('0x149')](_0x24fa4f);0x0!==_0x51a1e2[_0x45fd('0x25')]?0x1!==_0x51a1e2['length']?this[_0x45fd('0x14b')](_0x4c57f8,_0x24fa4f[_0x45fd('0x12d')],_0x24fa4f['end']):this[_0x45fd('0xdf')](_0x4c57f8,_0x51a1e2[0x0]):_0x4fe5c7[_0x45fd('0x13d')](_0x4c57f8[_0x45fd('0x116')]());}}class $t{constructor(_0xf6b416){this[_0x45fd('0x100')]=_0xf6b416,this[_0x45fd('0xe')]=_0xf6b416['model'],this[_0x45fd('0xe9')]=new Map(),this[_0x45fd('0xdb')]=new Map(),this['_registerDefaultCallbacks']();}[_0x45fd('0x3b')](_0x2ac999,_0x5e3102,_0x2b9518,_0x23510e,_0x6cc50f,_0x5f29d9){return new _0x1de743(this['_model'],{'type':_0x2ac999,'subType':_0x5e3102,'id':_0x2b9518,'author':_0x23510e,'creator':_0x23510e,'attributes':_0x6cc50f,'onAttributesChange':_0x5f29d9,'onAccept':(..._0x1e761a)=>this[_0x45fd('0x15f')](_0x2ac999,_0x5e3102,'accept')(..._0x1e761a),'onDiscard':(..._0x4154a8)=>this[_0x45fd('0x15f')](_0x2ac999,_0x5e3102,'discard')(..._0x4154a8)});}[_0x45fd('0xf8')](_0x5807f3,_0x56e632,_0x4e472e,_0x544916){const _0x3f37c3=_0x5807f3+':'+_0x56e632+':'+_0x4e472e;this[_0x45fd('0xe9')][_0x45fd('0x5a')](_0x3f37c3,_0x544916);}[_0x45fd('0x15f')](_0x368f6d,_0x6533a1,_0x40c542){const _0x5dd250=_0x368f6d+':'+_0x6533a1+':'+_0x40c542;return this['_customCallbacks']['get'](_0x5dd250)||this[_0x45fd('0xdb')][_0x45fd('0x20')](_0x368f6d+':'+_0x40c542);}[_0x45fd('0x104')](){const _0x17e763=()=>!0x1,_0x16dea8=_0x3fd29e=>{_0x3fd29e[_0x45fd('0x7d')]((_0x28794a,_0x91b46c)=>_0x28794a['start'][_0x45fd('0x165')](_0x91b46c[_0x45fd('0x12d')])?0x1:-0x1),this['_model']['change'](_0x13bbf6=>{for(const _0x3849f9 of _0x3fd29e){let _0x3afcb1;_0x3afcb1=_0x3849f9['end'][_0x45fd('0xbb')]&&_0x3849f9['end']['parent']==_0x3849f9[_0x45fd('0x12d')][_0x45fd('0xf3')]?_0x13bbf6['createSelection'](_0x3849f9[_0x45fd('0x12d')][_0x45fd('0xf3')],'on'):_0x13bbf6[_0x45fd('0x1f')](_0x3849f9),this[_0x45fd('0xe')]['deleteContent'](_0x3afcb1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1715eb=(_0x5b9bc9,_0x3b8694)=>{_0x3b8694&&this[_0x45fd('0xe')]['change'](_0x19f876=>{const {commandName:_0x457bf5,commandParams:_0x5dc915=[]}=_0x3b8694,_0x228e28=_0x5b9bc9[_0x45fd('0x22')](_0x1eb7aa=>(Tt(_0x1eb7aa)&&(_0x1eb7aa=this[_0x45fd('0xe')]['createRange'](_0x1eb7aa[_0x45fd('0x102')])),_0x1eb7aa))[_0x45fd('0x14')](_0x96f869=>'$graveyard'!==_0x96f869[_0x45fd('0x115')][_0x45fd('0xba')]);if(_0x228e28[_0x45fd('0x25')]<0x1)return;const _0x3771de=Array[_0x45fd('0x19')](this[_0x45fd('0xe')][_0x45fd('0xab')][_0x45fd('0x91')][_0x45fd('0x2f')]())[_0x45fd('0x22')](_0x43e5a4=>_0x1586d7[_0x45fd('0x121')](_0x43e5a4));_0x19f876[_0x45fd('0x125')](_0x228e28);for(const _0x3df302 of this[_0x45fd('0x100')][_0x45fd('0x16f')][_0x45fd('0x16f')]())_0x3df302[_0x45fd('0xa0')]();_0x5dc915['push']({'forceDefaultExecution':!0x0}),this[_0x45fd('0x100')][_0x45fd('0x37')](_0x457bf5,..._0x5dc915);const _0x34c039=_0x3771de['filter'](_0x38ed95=>_0x45fd('0x6b')!=_0x38ed95[_0x45fd('0x115')][_0x45fd('0xba')]);_0x34c039[_0x45fd('0x25')]>0x0&&_0x19f876[_0x45fd('0x125')](_0x34c039);for(const _0x75d566 of _0x3771de)_0x75d566['detach']();});},_0x192c9e=(_0x8ce453,_0x427b25)=>0x1==_0x8ce453[_0x45fd('0x25')]&&0x1==_0x427b25[_0x45fd('0x25')]&&_0x8ce453[0x0]['end'][_0x45fd('0x7e')](_0x427b25[0x0][_0x45fd('0x12d')]),_0x4d2e0c=(_0x198181,_0x5b45d9,_0x242f8c,_0x581f00)=>Ot(_0x198181,_0x5b45d9,_0x242f8c,_0x581f00,this[_0x45fd('0xe')])?[_0x198181,_0x5b45d9]:Ot(_0x5b45d9,_0x198181,_0x581f00,_0x242f8c,this[_0x45fd('0xe')])?[_0x5b45d9,_0x198181]:null;this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0xb8'),_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('insertion:discard',_0x16dea8),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x7b'),_0x192c9e),this[_0x45fd('0xdb')]['set'](_0x45fd('0x14a'),_0x4d2e0c),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x114'),_0x16dea8),this['_defaultCallbacks'][_0x45fd('0x5a')](_0x45fd('0x145'),_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('deletion:join',_0x192c9e),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0xb5'),_0x4d2e0c),this['_defaultCallbacks'][_0x45fd('0x5a')](_0x45fd('0x12f'),_0x1715eb),this[_0x45fd('0xdb')]['set']('formatInline:discard',_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x4c'),_0x192c9e),this['_defaultCallbacks']['set'](_0x45fd('0xf7'),_0x17e763),this['_defaultCallbacks'][_0x45fd('0x5a')]('formatBlock:accept',_0x1715eb),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('formatBlock:discard',_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x3'),_0x192c9e),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x15d'),_0x17e763),this[_0x45fd('0xdb')][_0x45fd('0x5a')](_0x45fd('0x151'),_0x17e763),this[_0x45fd('0xdb')]['set'](_0x45fd('0x14c'),(_0x5941eb,_0x290939)=>{if(!_0x290939)return;const _0x2fda40=this[_0x45fd('0x100')][_0x45fd('0x12b')]['get'](p);this[_0x45fd('0xe')]['change'](_0x3a0afc=>{if(_0x45fd('0x13a')==_0x290939[_0x45fd('0x69')])for(const _0x34c68b of _0x5941eb){const _0xe1f34b=_0x34c68b[_0x45fd('0x12d')]['nodeAfter'],_0x1acd4a=_0x290939[_0x45fd('0x173')];_0x3a0afc['rename'](_0xe1f34b,_0x1acd4a);}else{if(_0x2fda40['_isBlockAttribute'](_0x290939[_0x45fd('0x69')]))for(const _0x561409 of _0x5941eb)void 0x0!==_0x290939[_0x45fd('0x173')]?_0x3a0afc[_0x45fd('0x53')](_0x290939['key'],_0x290939[_0x45fd('0x173')],_0x561409['start'][_0x45fd('0xf3')]):_0x3a0afc['removeAttribute'](_0x290939[_0x45fd('0x69')],_0x561409[_0x45fd('0x12d')][_0x45fd('0xf3')]);else for(const _0x5bdbc5 of _0x5941eb)_0x290939[_0x45fd('0x173')]?_0x3a0afc[_0x45fd('0x53')](_0x290939[_0x45fd('0x69')],_0x290939[_0x45fd('0x173')],_0x5bdbc5):_0x3a0afc[_0x45fd('0x4')](_0x290939[_0x45fd('0x69')],_0x5bdbc5);}});}),this[_0x45fd('0xdb')][_0x45fd('0x5a')]('attribute:join',_0x192c9e);}}function Bt(_0x258053,_0x16efe8,_0x1e8813){for(const _0x43ee26 of _0x16efe8[_0x45fd('0x92')][_0x45fd('0x76')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43ee26[_0x45fd('0x115')]==_0x43ee26)return!0x1;if(!_0x1e8813[_0x45fd('0xcc')](_0x43ee26))return!0x1;if(_0x258053[_0x45fd('0x57')](_0x43ee26)||_0x258053[_0x45fd('0x5b')](_0x43ee26))return!0x0;}return!0x1;}function Tt(_0x4bff3a){return _0x4bff3a['end']['parent']==_0x4bff3a['start'][_0x45fd('0xf3')]&&_0x4bff3a['end'][_0x45fd('0x16c')];}function xt(_0x42265c,_0x199fa9,_0x380c3c,_0x1c5634){const _0x1fc129=_0x234229=>!_0x234229[_0x45fd('0x80')]['is'](_0x45fd('0x4f'))&&!_0x1c5634[_0x45fd('0x57')](_0x234229['item']),_0x11accb=_0x42265c[_0x45fd('0x12d')][_0x45fd('0x94')](_0x1fc129),_0x42cee9=_0x42265c[_0x45fd('0x102')][_0x45fd('0x94')](_0x1fc129,{'direction':'backward'});return(!_0x42265c[_0x45fd('0x12d')]['isEqual'](_0x11accb)||!_0x42265c[_0x45fd('0x102')][_0x45fd('0x7e')](_0x42cee9))&&(_0x11accb[_0x45fd('0x165')](_0x42cee9)?_0x380c3c['updateMarker'](_0x199fa9,{'range':_0x380c3c[_0x45fd('0x9a')](_0x11accb,_0x42cee9)}):_0x380c3c[_0x45fd('0x13d')](_0x199fa9),!0x0);}function Et(_0xcfe37c){return _0x59c5b9(_0xcfe37c);}function Rt(_0x1f3a89){const _0x2f3830=_0x1f3a89[_0x45fd('0x12d')][_0x45fd('0xf3')];return _0x2f3830&&_0x2f3830['is'](_0x45fd('0xe0'));}function Ut(_0x1c1a14,_0x3d48c7){const _0x272bc7=_0x3d48c7['schema'][_0x45fd('0x57')](_0x1c1a14)||_0x3d48c7[_0x45fd('0x82')][_0x45fd('0x166')](_0x1c1a14);return _0x3d48c7[_0x45fd('0x9a')](_0x3d48c7[_0x45fd('0x65')](_0x1c1a14,_0x45fd('0xa3')),_0x272bc7?_0x3d48c7[_0x45fd('0x10b')](_0x1c1a14):_0x3d48c7['createPositionAt'](_0x1c1a14,_0x45fd('0x102')));}function Ot(_0x511b52,_0x18a986,_0x30f209,_0x1d73b8,_0x1eaa44){if(!Vt(_0x511b52,_0x18a986))return!0x1;if(_0x30f209[_0x45fd('0x102')][_0x45fd('0x7e')](_0x1d73b8['start']))return!0x0;if(_0x511b52[_0x45fd('0xda')]!=_0x18a986[_0x45fd('0xda')])return!0x1;if(!_0x30f209[_0x45fd('0x102')][_0x45fd('0x155')](_0x1d73b8[_0x45fd('0x12d')]))return!0x1;const _0x242f02=_0x1eaa44[_0x45fd('0x9a')](_0x30f209[_0x45fd('0x102')],_0x1d73b8[_0x45fd('0x12d')])[_0x45fd('0xe5')]();for(const _0x94a6a1 of _0x242f02)if(['elementStart','elementEnd']['includes'](_0x94a6a1['type'])&&_0x1eaa44[_0x45fd('0x82')][_0x45fd('0x5b')](_0x94a6a1[_0x45fd('0x80')]))return!0x1;return!0x0;}function Vt(_0x4ef9a2,_0x546c28){return!(!_0x4ef9a2[_0x45fd('0xd4')]||!_0x546c28['_isDataLoaded'])&&_0x4a6831(_0x4ef9a2[_0x45fd('0x16b')],_0x546c28[_0x45fd('0x16b')]);}function Gt(_0x384500,_0x8fb9a6){const _0x479b33=Ft(_0x384500[_0x45fd('0x16b')]),_0x588476=Ft(_0x8fb9a6);if(!_0x384500[_0x45fd('0xd4')])return!0x1;for(const _0x4b5b6b of Object[_0x45fd('0x97')](_0x588476))if(!_0x4a6831(_0x479b33[_0x4b5b6b],_0x588476[_0x4b5b6b]))return!0x1;return!0x0;}function Ft(_0x48cfad){const _0xcff98e=Object[_0x45fd('0x133')]({},_0x48cfad);return delete _0xcff98e[_0x45fd('0x1d')],delete _0xcff98e['tablePasteChainId'],_0xcff98e;}function Pt(_0x427e31){return _0x45fd('0x126')==_0x427e31['type']?_0x427e31[_0x45fd('0x27')]['split']('|')[0x0]:null;}
@@ -5,9 +5,9 @@
5
5
  /**
6
6
  * @module track-changes/trackchangesui
7
7
  */
8
- import { Plugin, type Editor } from 'ckeditor5/src/core';
9
- import { Users } from 'ckeditor5-collaboration/src/collaboration-core';
10
- import TrackChangesEditing from './trackchangesediting';
8
+ import { Plugin, type Editor } from 'ckeditor5/src/core.js';
9
+ import { Users } from 'ckeditor5-collaboration/src/collaboration-core.js';
10
+ import TrackChangesEditing from './trackchangesediting.js';
11
11
  /**
12
12
  * Provides UI for track changes plugin.
13
13
  *