@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240129.0 → 0.0.0-nightly-20240131.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 (67) hide show
  1. package/build/track-changes.js +1 -1
  2. package/package.json +3 -3
  3. package/src/commands/acceptsuggestioncommand.js +1 -1
  4. package/src/commands/discardsuggestioncommand.js +1 -1
  5. package/src/commands/executeonallsuggestionscommand.js +1 -1
  6. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  7. package/src/commands/trackchangescommand.js +1 -1
  8. package/src/integrations/aiassistant.js +1 -1
  9. package/src/integrations/alignment.js +1 -1
  10. package/src/integrations/basicstyles.js +1 -1
  11. package/src/integrations/blockquote.js +1 -1
  12. package/src/integrations/casechange.js +1 -1
  13. package/src/integrations/ckbox.js +1 -1
  14. package/src/integrations/codeblock.js +1 -1
  15. package/src/integrations/comments.js +1 -1
  16. package/src/integrations/deletecommand.js +1 -1
  17. package/src/integrations/entercommand.js +1 -1
  18. package/src/integrations/findandreplace.js +1 -1
  19. package/src/integrations/font.js +1 -1
  20. package/src/integrations/formatpainter.js +1 -1
  21. package/src/integrations/heading.js +1 -1
  22. package/src/integrations/highlight.js +1 -1
  23. package/src/integrations/horizontalline.js +1 -1
  24. package/src/integrations/htmlembed.js +1 -1
  25. package/src/integrations/image.js +1 -1
  26. package/src/integrations/imagereplace.js +1 -1
  27. package/src/integrations/imagestyle.js +1 -1
  28. package/src/integrations/importword.js +1 -1
  29. package/src/integrations/indent.js +1 -1
  30. package/src/integrations/inputcommand.js +1 -1
  31. package/src/integrations/legacylist.js +1 -1
  32. package/src/integrations/legacylistproperties.js +1 -1
  33. package/src/integrations/link.js +1 -1
  34. package/src/integrations/list.js +1 -1
  35. package/src/integrations/listproperties.js +1 -1
  36. package/src/integrations/mediaembed.js +1 -1
  37. package/src/integrations/mention.js +1 -1
  38. package/src/integrations/pagebreak.js +1 -1
  39. package/src/integrations/paragraph.js +1 -1
  40. package/src/integrations/removeformat.js +1 -1
  41. package/src/integrations/restrictededitingmode.js +1 -1
  42. package/src/integrations/shiftentercommand.js +1 -1
  43. package/src/integrations/standardeditingmode.js +1 -1
  44. package/src/integrations/style.js +1 -1
  45. package/src/integrations/table.js +1 -1
  46. package/src/integrations/tablecaption.js +1 -1
  47. package/src/integrations/tableclipboard.js +1 -1
  48. package/src/integrations/tablecolumnresize.js +1 -1
  49. package/src/integrations/tableheadings.js +1 -1
  50. package/src/integrations/tablemergesplit.js +1 -1
  51. package/src/integrations/tableofcontents.js +1 -1
  52. package/src/integrations/tableproperties.js +1 -1
  53. package/src/integrations/template.js +1 -1
  54. package/src/integrations/title.js +1 -1
  55. package/src/integrations/undo.js +1 -1
  56. package/src/integrations/utils.js +1 -1
  57. package/src/suggestion.js +1 -1
  58. package/src/suggestiondescriptionfactory.js +1 -1
  59. package/src/trackchanges.js +1 -1
  60. package/src/trackchangesdata.js +1 -1
  61. package/src/trackchangesediting.js +1 -1
  62. package/src/trackchangesui.js +1 -1
  63. package/src/ui/suggestioncontroller.js +1 -1
  64. package/src/ui/view/basesuggestionthreadview.js +1 -1
  65. package/src/ui/view/suggestionthreadview.js +1 -1
  66. package/src/utils/common-translations.js +1 -1
  67. package/src/utils/utils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3010=['resolve','high','nodeBefore','return','getItems','insertion:accept','CommentsRepository','item','element','getMultiRangeId','acceptAllSuggestions','track-changes-user-not-found','fire','formatBlock:join','document','suggestion-type','accept','ck-suggestion-marker','comments','stopListening','deleteContent','schema','removed','conversion','track-changes-suggestion-data-mismatch','_processAttributeChanges','assign','_updateSuggestionData','catch','_SUGGESTION_ANNOUNCEMENT','_commentsRepository','deletion','$textProxy','_createSuggestion','_refreshAttributeSuggestionsChain','substring','values','setTo','isLocal','isObject','default','isIntersecting','splice','forceDefaultExecution','markMultiRangeInsertion','createSelection','find','set','unbind','oldRange','split','meta','addUser','containsPosition','createRangeOn','_customCallbacks','writer','_cutOutSuggestionMarker','attribute:','$elementName','listenTo','error-saving-suggestion-data-suggestion-discarded','editingDowncast','getChanges','discardSuggestion','trackChanges.mergeNestedSuggestions','_isBlockAttribute','markerToHighlight','adapter','change:activeMarkers','value','markAttributeChange','toUpperCase','add','getAttribute','getAncestors','_isForcedDefaultExecutionBlock','stop','_getAttributeKey','createPositionBefore','createdAt','dataReady','_getMarkerAnnouncementText','insertContent','formatInline:join','acceptSelectedSuggestions','model','formatBlock:discard','_recordAttributeSuggestions','getWalker','end','author','keys','get','_enableDefaultAttributesIntegration','attributeKey','open','multipleBlocks','getFirstRange','execute','getSuggestionCallback','toViewElement','insertion:','discardSelectedSuggestions','getAllAdjacentSuggestions','_suggestionFactory','removeComment','createRangeIn','$graveyard','_getAuthorFromId','groupId','removeMarker','markInlineFormat','suggestion:attribute:','_enabledCommands','after','deletion:accept','join','formatBlock:chain','root','isBlock','suggestionChanged','_setSuggestionRange','ariaLiveAnnouncer','push','config','addSuggestion','PENDING_ACTION_SUGGESTION','collaboration.channelId','getFirstMarker','rootName','track-changes-command-not-found','fetchCommentThread','isArray','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.','newValue','trackChangesCommand','filter','$marker','isLimit','fromCharCode','insertion:discard','markerToData','from','getRanges','_suggestions','showSuggestionHighlights','addMarker:suggestion:formatBlock','isAtEnd','isAfter','always','track-changes-suggestion-not-found','attributes','backward','containsRange','_saved','_getSuggestionData','markBlockFormat','_registerDefaultCallbacks','createRange','highest','pluginName','_findSuggestions','ck-suggestion-marker-','targetPosition','define','chain','batch','has','isEqual','deletion:discard','key','_afterChanges','_refreshSuggestionsChain','attribute:accept','acceptSuggestion','dataDowncast','elementToElement','isAtStart','_setSuggestionData','removeMarkers','discardAllSuggestions','substr','refresh','includes','isBefore','toJSON','attribute:discard','name','then','isMultiRange','markerReady','formatInline:chain','updateMarker','track-changes-adapter-already-set','some','addMarkerName','track-changes-adapter-missing-getsuggestion','getChangedMarkers','_defaultCallbacks','_adapter','_suggestionState','unshift','data','commentThread','isInContent','consume','marker-count','_rangeIsInLocalUserInsertion','enableReadOnlyMode','isTouching','_mergeNestedSuggestions','getCustomProperty','formatBlock:','before','forEach','markers','deletion:chain','remove','unbindElementFromMarkerName','_reduceExistingSuggestions','updateSuggestion','commands','addMarker:suggestion','data-suggestion','locale','announce','never','_initAriaMarkerChangeAnnouncements','type','_inlineAttributeKeys','sort','tablePasteChainId','selection','head','removeClass','_isDataLoaded','_addThreadToSuggestion','hasSuggestion','createPositionAfter','@external','editor','addRange','hasCommentThread','getContainedElement','getRange','_model','authoredAt','map','commandName','isIntersectingWithRange','detach','trackChanges','change:_saved','getMarkers','PendingActions','normal','lowest','deletion:','init','format','LEAVE','previous','_removeSuggestion','deletion:join','markDeletion','_element','addComment','applyOperation','start','isRemovable','formatInline:discard','every','isInsideObject','suggestion','ready','change','group','markerNameToElements','addCommentThread','consumable','accepted','getSuggestions','removeAttribute','suggestion:','rejected','clone','bindElementToMarker','formatInline','containsRangeInObject','_checkSuggestionCorrectness','differ','elementStart','for','addHighlight','mapper','options','suggestionLoaded','track-changes-enable-command-twice','subType','length','upcast','getIntersection','ck-suggestion-marker-formatBlock','_editor','change:data','Users','FORMATTING','howMany','registerPostFixer','getSuggestion','attribute','plugins','formatBlock','_splitMarkerName','addMarker','ck-suggestion-marker-formatInline','_joinWithAdjacentSuggestions','_registerInlineAttribute','creator','_reduceSuggestionAttributeRange','containerElement','getNearestSelectionRange','range','$text','isUndo','addMarker:suggestion:attribute','_blockAttributeKeys','_handleNewSuggestionMarker','size','rename','newRange','startsWith','markInsertion','formatInline:accept','enqueueChange','_isRegisteredAttribute','next','_registerBlockAttribute','addSuggestionData','_recordAttributeChanges','nodeAfter','delete','moveTargetPosition','attributeNewValue','external:','_addSuggestionMarker','fromRange','forward','enableCommand','multi','documentSelection','_trackFormatChanges','elementEnd','_joinSuggestions','markerName','getShiftedBy','trackChanges.trackFormatChanges','addClass','position','markMultiRangeDeletion','oldValue','isNextTo','skipNestingCheck','_processAttributeSuggestions','isSelectable','hasComments','getDifference','insert','getUser','warn','setSelection','clear','_breakSuggestionMarker','isOwn','createPositionAt','activeMarkers','parent','insertion','formatGroupId','registerCustomCallback','getLastMatchingPosition','isCollapsed','low','discard','containsItem','formatBlock:accept','buildSuggestion','_descriptionFactory','ck-suggestion-marker--active','splitPosition','originalSuggestionId','_onDiscard'];(function(_0x228012,_0x301013){const _0x59046a=function(_0xec098f){while(--_0xec098f){_0x228012['push'](_0x228012['shift']());}};_0x59046a(++_0x301013);}(_0x3010,0xf5));const _0x5904=function(_0x228012,_0x301013){_0x228012=_0x228012-0x0;let _0x59046a=_0x3010[_0x228012];return _0x59046a;};import{Plugin as _0x57e1ba,PendingActions as _0x3cbbed}from'ckeditor5/src/core.js';import{LiveRange as _0x3da7f8}from'ckeditor5/src/engine.js';import{CKEditorError as _0x2aea78,uid as _0x12efea,priorities as _0x3e9c74,logWarning as _0x54efba}from'ckeditor5/src/utils.js';import{toWidget as _0x49a28c}from'ckeditor5/src/widget.js';import{Users as _0x38ff43,hashObject as _0x41c87c,surroundingMarkersDetector as _0x57e753}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x1e406b from'./commands/trackchangescommand.js';import _0x2cf257 from'./commands/acceptsuggestioncommand.js';import _0x36988a from'./commands/discardsuggestioncommand.js';import _0x128c65 from'./commands/executeonallsuggestionscommand.js';import _0x5db7c7 from'./commands/executeonselectedsuggestionscommand.js';import _0x80ede4 from'./suggestion.js';import _0x35b042 from'./suggestiondescriptionfactory.js';import _0x2bcdc4 from'./integrations/aiassistant.js';import _0x4bfc78 from'./integrations/alignment.js';import _0xb44c11 from'./integrations/basicstyles.js';import _0x26ad47 from'./integrations/blockquote.js';import _0xdf46f2 from'./integrations/casechange.js';import _0x3fdd48 from'./integrations/ckbox.js';import _0x5d5d40 from'./integrations/codeblock.js';import _0x2f773c from'./integrations/comments.js';import _0xdda64c from'./integrations/deletecommand.js';import _0x264960 from'./integrations/list.js';import _0x1a96d6 from'./integrations/listproperties.js';import _0x9adc30 from'./integrations/entercommand.js';import _0x338fb1 from'./integrations/findandreplace.js';import _0x3bb9c6 from'./integrations/font.js';import _0x1194db from'./integrations/formatpainter.js';import _0x14ef41 from'./integrations/heading.js';import _0x1607fc from'./integrations/highlight.js';import _0x484dad from'./integrations/horizontalline.js';import _0x17061a from'./integrations/htmlembed.js';import _0x20452a from'./integrations/image.js';import _0x283277 from'./integrations/imagereplace.js';import _0xa612d0 from'./integrations/imagestyle.js';import _0x5546f0 from'./integrations/importword.js';import _0x54da05 from'./integrations/indent.js';import _0xdb84a8 from'./integrations/inputcommand.js';import _0x30371b from'./integrations/link.js';import _0x112b90 from'./integrations/legacylist.js';import _0x4aacea from'./integrations/legacylistproperties.js';import _0x1ddd2e from'./integrations/mediaembed.js';import _0x508758 from'./integrations/mention.js';import _0x57bcb6 from'./integrations/pagebreak.js';import _0x536e26 from'./integrations/paragraph.js';import _0xd86fbe from'./integrations/removeformat.js';import _0x120429 from'./integrations/restrictededitingmode.js';import _0x434238 from'./integrations/shiftentercommand.js';import _0x547d91 from'./integrations/standardeditingmode.js';import _0x2f3aa4 from'./integrations/style.js';import _0xaf4759 from'./integrations/table.js';import _0x1edfd9 from'./integrations/tablemergesplit.js';import _0xc2f2de from'./integrations/tableheadings.js';import _0x19dd0c from'./integrations/tableclipboard.js';import _0x11b8d2 from'./integrations/tablecolumnresize.js';import _0x1ed5ee from'./integrations/template.js';import _0x554fa1 from'./integrations/tableofcontents.js';import _0xff0d2c from'./integrations/title.js';import _0xf34a89 from'./integrations/undo.js';import _0x31c441 from'./integrations/tablecaption.js';import _0x5989c3 from'./integrations/tableproperties.js';import{getTranslation as _0x5e6b3d}from'./utils/common-translations.js';import{isEqual as _0x35c4e3,omit as _0xed44df}from'lodash-es';export const renameAttributeKey=_0x5904('0xcf');export default class p extends _0x57e1ba{static get['requires'](){return['CommentsRepository',_0x38ff43,_0x3cbbed,_0x2bcdc4,_0x4bfc78,_0xb44c11,_0x26ad47,_0x3fdd48,_0xdf46f2,_0x5d5d40,_0x2f773c,_0xdda64c,_0x9adc30,_0x338fb1,_0x3bb9c6,_0x1194db,_0x14ef41,_0x1607fc,_0x484dad,_0x17061a,_0x20452a,_0xa612d0,_0x283277,_0x5546f0,_0x54da05,_0xdb84a8,_0x112b90,_0x4aacea,_0x30371b,_0x264960,_0x1a96d6,_0x1ddd2e,_0x508758,_0x57bcb6,_0x536e26,_0xd86fbe,_0x120429,_0x434238,_0x547d91,_0x2f3aa4,_0xaf4759,_0x1edfd9,_0xc2f2de,_0x31c441,_0x19dd0c,_0x11b8d2,_0x554fa1,_0x5989c3,_0x1ed5ee,_0xff0d2c,_0xf34a89];}static get[_0x5904('0x135')](){return'TrackChangesEditing';}constructor(_0x45f4e1){function _0x412ee8(_0x12888c){return _0x12888c[_0x5904('0x3')](_0x4b6ccc=>String[_0x5904('0x120')](_0x4b6ccc))['join']('');}super(_0x45f4e1),this[_0x5904('0xec')]=!0x1,this[_0x5904('0xc3')](_0x5904('0x83'),[]),this['on'](_0x5904('0xd9'),(_0x4895ed,_0x5d9087,_0x17085f,_0x354f4c)=>{this[_0x5904('0x1')][_0x5904('0x1f')](()=>{for(const _0x4f5876 of[..._0x354f4c,..._0x17085f])this['_model'][_0x5904('0x16c')][_0x5904('0x13c')](_0x4f5876)&&_0x45f4e1['editing']['reconvertMarker'](_0x4f5876);});}),this[_0x5904('0x8f')]=new _0x35b042(this[_0x5904('0x185')][_0x5904('0xea')][_0x5904('0xa9')],this[_0x5904('0x185')][_0x5904('0x175')]),this[_0x5904('0x15c')]=null,this['_suggestionFactory']=new Bt(this['editor']),this[_0x5904('0x125')]=new Map(),this[_0x5904('0xb2')]=_0x45f4e1[_0x5904('0x43')]['get'](_0x5904('0x9a')),this[_0x5904('0x106')]=new Set(),this[_0x5904('0x1')]=this[_0x5904('0x185')]['model'],this[_0x5904('0x15d')]=new WeakMap(),this[_0x5904('0xe0')]=!0x1,this[_0x5904('0x52')]=new Set(['$elementName']),this[_0x5904('0x17a')]=new Set(),_0x45f4e1[_0x5904('0x111')][_0x5904('0x139')]('trackChanges.trackFormatChanges','default'),this[_0x5904('0x6b')]=_0x45f4e1[_0x5904('0x111')][_0x5904('0xf1')](_0x5904('0x70')),_0x45f4e1['config'][_0x5904('0x139')](_0x5904('0xd5'),!0x0),this[_0x5904('0x167')]=_0x45f4e1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _0x1e406b(_0x45f4e1,this['_enabledCommands']),this[_0x5904('0x178')](),this[_0x412ee8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x412ee8([0x34,0x30,0x34,0x38,0x30,0x32,0x35,0x38]);}[_0x5904('0xe')](){const _0x19dbd7=this['editor'],_0x8ee422=(_0x2fbabe,_0x4cec31)=>{if(_0x5904('0x42')!=_0x2fbabe)return _0x5904('0x137')+_0x2fbabe;const _0x59e25f=_0x4cec31[_0x5904('0xc6')]('|')[0x0];return this[_0x5904('0xd6')](_0x59e25f)?_0x5904('0x3a'):_0x5904('0x47');};_0x19dbd7[_0x5904('0xab')]['for'](_0x5904('0xd2'))[_0x5904('0xd7')]({'model':_0x5904('0x1d'),'view':_0x3c6491=>{const {id:_0x4c2ae9,type:_0x475818,subType:_0x235b99}=this['_splitMarkerName'](_0x3c6491[_0x5904('0x6e')]),_0x2f693c=[_0x5904('0xa5'),_0x8ee422(_0x475818,_0x235b99)];let _0x36892e=0xbb8;return this['activeMarkers'][_0x5904('0x14c')](_0x3c6491[_0x5904('0x6e')])&&(_0x2f693c['push']('ck-suggestion-marker--active'),_0x36892e=0xbc2),_0x5904('0xb3')==_0x475818&&(_0x36892e+=0x5),{'classes':_0x2f693c,'attributes':{'data-suggestion':_0x4c2ae9},'priority':_0x36892e};}}),_0x19dbd7[_0x5904('0xab')][_0x5904('0x30')](_0x5904('0x144'))[_0x5904('0xdd')](_0x5e4459=>{_0x5e4459['on'](_0x5904('0x173'),(_0x2ebc81,_0x992ce5,_0xac39c4)=>{if(!_0xac39c4[_0x5904('0x33')]['showSuggestionHighlights'])return;const _0x5b1c6e=_0x992ce5[_0x5904('0x9b')];if(!_0x5b1c6e)return;const _0x5d2321=_0xac39c4[_0x5904('0x32')][_0x5904('0xf9')](_0x5b1c6e);_0x19dbd7[_0x5904('0xea')][_0x5904('0xa9')][_0x5904('0xbb')](_0x5b1c6e)&&_0x5d2321&&!_0x5d2321[_0x5904('0x168')]('widget')&&_0x5d2321['is'](_0x5904('0x4c'))&&_0x49a28c(_0x5d2321,_0xac39c4[_0x5904('0xcc')]);},{'priority':_0x5904('0x95')});}),_0x19dbd7[_0x5904('0xab')][_0x5904('0x30')](_0x5904('0x144'))[_0x5904('0xd7')]({'model':'suggestion','view':(_0x4f5656,_0x2836ce)=>{if(!_0x2836ce[_0x5904('0x33')][_0x5904('0x126')])return null;const {type:_0x1895cf,subType:_0x422b25}=this[_0x5904('0x45')](_0x4f5656[_0x5904('0x6e')]);return{'classes':[_0x5904('0xa5'),_0x8ee422(_0x1895cf,_0x422b25)],'priority':0xbb8};}});const _0x10bba7=({showActiveMarkers:_0x5d632a=!0x0,isAttributeSuggestion:_0x4dd406=!0x1}={})=>(_0x84c446,_0x2e5bac,_0x15c202)=>{if(!_0x2e5bac[_0x5904('0x9b')])return;const {id:_0x2eece5}=this[_0x5904('0x45')](_0x2e5bac[_0x5904('0x6e')]);if(_0x4dd406){const _0xc4966d=this[_0x5904('0x125')][_0x5904('0xf1')](_0x2eece5),_0x445fe3=this[_0x5904('0xe2')](_0xc4966d);if(!this['_isBlockAttribute'](_0x445fe3))return;}if(_0x2e5bac[_0x5904('0x9b')]['is'](_0x5904('0x17d')))return void _0x15c202[_0x5904('0x23')]['consume'](_0x2e5bac[_0x5904('0x9b')],_0x84c446[_0x5904('0x150')]);const _0x13287d=_0x15c202['mapper'][_0x5904('0xf9')](_0x2e5bac[_0x5904('0x9b')]);if(_0x2e5bac['item']['is'](_0x5904('0x9c'))&&_0x19dbd7['model'][_0x5904('0xa9')][_0x5904('0x10c')](_0x2e5bac[_0x5904('0x9b')])&&!_0x13287d[_0x5904('0x168')]('addHighlight')){_0x15c202[_0x5904('0xcc')][_0x5904('0x71')]([_0x5904('0xa5'),'ck-suggestion-marker-formatBlock'],_0x13287d),_0x15c202[_0x5904('0xcc')]['setAttribute'](_0x5904('0x174'),_0x2eece5,_0x13287d),_0x15c202[_0x5904('0x32')][_0x5904('0x2a')](_0x13287d,_0x2e5bac[_0x5904('0x6e')]),_0x5d632a&&(this[_0x5904('0x83')][_0x5904('0x14c')](_0x2e5bac['markerName'])?_0x15c202[_0x5904('0xcc')][_0x5904('0x71')](_0x5904('0x90'),_0x13287d):_0x15c202[_0x5904('0xcc')]['removeClass'](_0x5904('0x90'),_0x13287d));for(const _0x544dc1 of _0x19dbd7[_0x5904('0xea')][_0x5904('0xff')](_0x2e5bac[_0x5904('0x9b')])[_0x5904('0x98')]())_0x15c202[_0x5904('0x23')][_0x5904('0x162')](_0x544dc1,_0x84c446['name']);_0x15c202[_0x5904('0x23')]['consume'](_0x2e5bac[_0x5904('0x9b')],_0x84c446[_0x5904('0x150')]);}};_0x19dbd7[_0x5904('0xab')][_0x5904('0x30')](_0x5904('0x144'))['add'](_0x12e131=>{_0x12e131['on']('addMarker:suggestion:formatBlock',(_0x351269,_0x45c114,_0x5da1cd)=>{_0x5da1cd['options']['showSuggestionHighlights']&&_0x10bba7({'showActiveMarkers':!0x1})(_0x351269,_0x45c114,_0x5da1cd);},{'priority':_0x5904('0x134')});}),_0x19dbd7[_0x5904('0xab')]['for'](_0x5904('0x144'))[_0x5904('0xdd')](_0x5ef052=>{_0x5ef052['on'](_0x5904('0x51'),(_0x394b37,_0x4d3c38,_0x3ed8b8)=>{_0x3ed8b8[_0x5904('0x33')][_0x5904('0x126')]&&_0x10bba7({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x394b37,_0x4d3c38,_0x3ed8b8);},{'priority':_0x5904('0x134')});}),_0x19dbd7['conversion'][_0x5904('0x30')](_0x5904('0x144'))[_0x5904('0x122')]({'model':_0x5904('0x1d'),'view':(_0x27dc1a,_0x1856d5)=>_0x1856d5[_0x5904('0x33')][_0x5904('0x126')]?null:{'group':_0x5904('0x1d'),'name':_0x27dc1a[_0x5904('0x14a')](0xb)}}),_0x19dbd7[_0x5904('0xab')][_0x5904('0x30')](_0x5904('0x38'))[_0x5904('0x145')]({'view':{'name':_0x5904('0x1d'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4729ad,{writer:_0x1f1b5d})=>{let _0x3a5979='suggestion:'+_0x4729ad[_0x5904('0xde')](_0x5904('0xa3'))+':'+_0x4729ad[_0x5904('0xde')]('id');return _0x4729ad[_0x5904('0xde')](_0x5904('0x163'))&&(_0x3a5979+=':'+_0x4729ad[_0x5904('0xde')](_0x5904('0x163'))),_0x1f1b5d['createElement'](_0x5904('0x11e'),{'data-name':_0x3a5979});}}),_0x19dbd7[_0x5904('0xab')][_0x5904('0x30')](_0x5904('0x38'))['dataToMarker']({'view':'suggestion'}),_0x19dbd7['conversion'][_0x5904('0x30')](_0x5904('0xd2'))[_0x5904('0xdd')](_0xc7807a=>{_0xc7807a['on'](_0x5904('0x127'),_0x10bba7(),{'priority':_0x5904('0x95')});}),_0x19dbd7[_0x5904('0xab')][_0x5904('0x30')](_0x5904('0xd2'))['add'](_0x3f78a3=>{_0x3f78a3['on'](_0x5904('0x51'),_0x10bba7({'isAttributeSuggestion':!0x0}),{'priority':_0x5904('0x95')});}),_0x19dbd7['conversion'][_0x5904('0x30')](_0x5904('0xd2'))[_0x5904('0xdd')](_0x2f032b=>{_0x2f032b['on']('removeMarker:suggestion:formatBlock',(_0x9099a2,_0x531ade,_0x36eafb)=>{const _0x4f9aa3=_0x36eafb[_0x5904('0x32')][_0x5904('0x21')](_0x531ade[_0x5904('0x6e')]);if(_0x4f9aa3)for(const _0x2b1f22 of _0x4f9aa3)_0x2b1f22[_0x5904('0x168')](_0x5904('0x31'))||(_0x36eafb[_0x5904('0xcc')][_0x5904('0x17f')](['ck-suggestion-marker',_0x5904('0x3a'),_0x5904('0x90')],_0x2b1f22),_0x36eafb[_0x5904('0xcc')][_0x5904('0x26')](_0x5904('0x174'),_0x2b1f22),_0x36eafb['mapper'][_0x5904('0x16f')](_0x2b1f22,_0x531ade[_0x5904('0x6e')]));},{'priority':_0x5904('0x95')});}),_0x19dbd7[_0x5904('0xab')]['for'](_0x5904('0xd2'))[_0x5904('0xdd')](_0x4062ba=>{_0x4062ba['on']('removeMarker:suggestion:attribute',(_0x192576,_0x40e092,_0x2f65d8)=>{const _0x3b46b1=_0x2f65d8['mapper']['markerNameToElements'](_0x40e092[_0x5904('0x6e')]);if(!_0x3b46b1)return;const {id:_0x3bbe6f}=this[_0x5904('0x45')](_0x40e092[_0x5904('0x6e')]),_0x2f7df5=this[_0x5904('0x125')][_0x5904('0xf1')](_0x3bbe6f),_0x36b5cd=this[_0x5904('0xe2')](_0x2f7df5);if(this['_isBlockAttribute'](_0x36b5cd))for(const _0x50e554 of _0x3b46b1)_0x50e554[_0x5904('0x168')]('addHighlight')||(_0x2f65d8[_0x5904('0xcc')][_0x5904('0x17f')]([_0x5904('0xa5'),_0x5904('0x3a'),'ck-suggestion-marker--active'],_0x50e554),_0x2f65d8[_0x5904('0xcc')][_0x5904('0x26')](_0x5904('0x174'),_0x50e554),_0x2f65d8[_0x5904('0x32')][_0x5904('0x16f')](_0x50e554,_0x40e092[_0x5904('0x6e')]));},{'priority':'high'});}),_0x19dbd7['model']['document'][_0x5904('0x40')](_0x22ab4f=>{let _0x6ad846=!0x1;const _0x2f56e1=Array[_0x5904('0x123')](_0x19dbd7['model'][_0x5904('0xa2')][_0x5904('0x2e')][_0x5904('0x15a')]()),_0x78d250=new Set();for(const {name:_0x5b79c8,data:_0x51c6b9}of _0x2f56e1){const {group:_0x394738,type:_0x44b27b,subType:_0x568195,id:_0x3cda0b}=this[_0x5904('0x45')](_0x5b79c8);if(_0x5904('0x1d')!==_0x394738)continue;const _0x467f44=this[_0x5904('0x125')]['get'](_0x3cda0b);if(null!=_0x51c6b9[_0x5904('0x56')]){_0x5904('0x2b')==_0x44b27b&&(_0x6ad846=_0x6ad846||Tt(_0x51c6b9[_0x5904('0x56')],_0x5b79c8,_0x22ab4f,_0x19dbd7[_0x5904('0xea')][_0x5904('0xa9')]));const _0x370c82=_0x5904('0x42')==_0x44b27b&&this['_isBlockAttribute'](_0x568195[_0x5904('0xc6')]('|')[0x0]);if(_0x51c6b9[_0x5904('0x56')][_0x5904('0x89')]||'$graveyard'==_0x51c6b9[_0x5904('0x56')][_0x5904('0x10b')][_0x5904('0x116')]||_0x5904('0x44')==_0x44b27b&&!Vt(_0x51c6b9[_0x5904('0x56')])||_0x370c82&&!Vt(_0x51c6b9[_0x5904('0x56')])||_0x5904('0xb3')==_0x44b27b&&!(!Rt(_0x4112b1=_0x51c6b9['newRange'])&&!function(_0x2e697b){return _0x2e697b['start'][_0x5904('0x84')]==_0x2e697b[_0x5904('0xee')][_0x5904('0x96')]&&_0x2e697b[_0x5904('0x18')][_0x5904('0x128')];}(_0x4112b1)))_0x22ab4f['removeMarker'](_0x5b79c8),_0x6ad846=!0x0;else{if(!_0x467f44||!_0x467f44[_0x5904('0x161')])continue;_0x78d250[_0x5904('0xdd')](_0x467f44);}}}var _0x4112b1;return _0x78d250[_0x5904('0x54')]>0x0&&(_0x6ad846=!!this['_joinWithAdjacentSuggestions'](_0x78d250)||_0x6ad846),_0x6ad846;}),_0x19dbd7[_0x5904('0xea')][_0x5904('0xa2')][_0x5904('0x40')](_0x33c1d8=>{let _0xae356d=!0x1;for(const _0x49462d of _0x19dbd7[_0x5904('0xea')][_0x5904('0xa2')][_0x5904('0x2e')][_0x5904('0xd3')]())if(_0x5904('0x7b')==_0x49462d['type'])for(const _0x973767 of this['_suggestions'][_0x5904('0xb8')]()){if(_0x973767['isMultiRange']||!_0x973767[_0x5904('0x161')])continue;const _0x2fe8b1=_0x5904('0x44')==_0x973767['type'],_0x39804c=this[_0x5904('0xe2')](_0x973767),_0x373d87=_0x39804c&&this[_0x5904('0xd6')](_0x39804c);if(!_0x2fe8b1&&!_0x373d87)continue;const _0x35fa2f=_0x973767['getFirstRange']();if(_0x35fa2f[_0x5904('0x18')][_0x5904('0x84')]!=_0x35fa2f['end']['parent']&&!_0x35fa2f[_0x5904('0xee')][_0x5904('0x128')]){const _0x5f4b7c=_0x19dbd7[_0x5904('0xea')][_0x5904('0x82')](_0x35fa2f[_0x5904('0x18')][_0x5904('0x60')],'end'),_0x2eb15b=_0x19dbd7[_0x5904('0xea')][_0x5904('0x133')](_0x35fa2f[_0x5904('0x18')],_0x5f4b7c);_0x33c1d8[_0x5904('0x155')](_0x973767['getFirstMarker'](),{'range':_0x2eb15b}),_0xae356d=!0x0;}}return _0xae356d;}),_0x19dbd7[_0x5904('0xea')][_0x5904('0xa2')][_0x5904('0x40')](_0x240e0f=>this['_processAttributeChanges'](_0x240e0f)),_0x19dbd7[_0x5904('0xea')][_0x5904('0xa2')][_0x5904('0x40')](_0xaec950=>!_0xaec950[_0x5904('0x13b')][_0x5904('0xba')]&&this[_0x5904('0x77')](_0xaec950)),_0x19dbd7[_0x5904('0xea')]['on'](_0x5904('0x140'),()=>{this[_0x5904('0xec')]=!0x1;}),_0x19dbd7[_0x5904('0xea')][_0x5904('0xa2')]['on'](_0x5904('0x3c'),(_0x4e81bd,_0x412eb8)=>{if(!_0x412eb8[_0x5904('0xba')]||_0x412eb8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x26a418=_0x19dbd7[_0x5904('0xea')]['document'][_0x5904('0x2e')][_0x5904('0xd3')]();if(0x0==_0x26a418[_0x5904('0x37')])return;const _0x261f04=[],_0x30fe6e=_0x26a418['filter'](_0x1b3600=>_0x5904('0x42')==_0x1b3600[_0x5904('0x179')]),_0x445bcb=_0x26a418[_0x5904('0x11d')](_0x4a0091=>_0x5904('0x7b')==_0x4a0091[_0x5904('0x179')]&&_0x5904('0x4f')!=_0x4a0091['name']),_0x236a2=_0x26a418['filter'](_0x5c53aa=>_0x5904('0x16e')==_0x5c53aa[_0x5904('0x179')]&&_0x5904('0x4f')!=_0x5c53aa[_0x5904('0x150')]);for(const _0x53589e of _0x30fe6e)this[_0x5904('0x5b')](_0x53589e['attributeKey'])&&_0x261f04[_0x5904('0x110')]({'key':_0x53589e[_0x5904('0xf3')],'newValue':_0x53589e[_0x5904('0x63')],'oldValue':_0x53589e['attributeOldValue'],'range':Ut(_0x53589e[_0x5904('0x4e')],_0x19dbd7[_0x5904('0xea')])});for(const _0x19a878 of _0x445bcb){const _0x5c144e=_0x236a2[_0x5904('0xc2')](_0x318c33=>_0x318c33[_0x5904('0x15')]===_0x19a878['_element']);if(_0x5c144e){const _0x167484=Ot(_0x19a878[_0x5904('0x72')]['nodeAfter'],_0x19dbd7[_0x5904('0xea')]);_0x5c144e[_0x5904('0x150')]!==_0x19a878[_0x5904('0x150')]&&_0x261f04[_0x5904('0x110')]({'key':_0x5904('0xcf'),'newValue':_0x19a878[_0x5904('0x150')],'oldValue':_0x5c144e[_0x5904('0x150')],'range':_0x167484});for(const [_0x4ca492,_0xaec1de]of _0x5c144e['attributes']){if(!this['_isRegisteredAttribute'](_0x4ca492))continue;const _0x2bad61=_0x19a878['attributes'][_0x5904('0xf1')](_0x4ca492);_0xaec1de!==_0x2bad61&&_0x261f04['push']({'key':_0x4ca492,'newValue':_0x2bad61,'oldValue':_0xaec1de,'range':_0x167484});}for(const [_0x47d5db,_0x4c8e17]of _0x19a878[_0x5904('0x12c')])this[_0x5904('0x5b')](_0x47d5db)&&(_0x5c144e[_0x5904('0x12c')][_0x5904('0x13c')](_0x47d5db)||_0x261f04[_0x5904('0x110')]({'key':_0x47d5db,'newValue':_0x4c8e17,'oldValue':null,'range':_0x167484}));}}0x0!=_0x261f04[_0x5904('0x37')]&&_0x19dbd7[_0x5904('0xea')][_0x5904('0x5a')](_0x412eb8,_0x2d5215=>{const _0x1520de=_0x12efea();for(const {range:_0x1f11ff,key:_0x2717a,oldValue:_0x7976d1,newValue:_0x449e86}of _0x261f04)this[_0x5904('0xdb')](_0x1f11ff,_0x2717a,_0x7976d1,_0x449e86,{'groupId':_0x1520de});this['_reduceExistingSuggestions'](_0x2d5215,_0x261f04);});},{'priority':_0x5904('0xc')}),_0x19dbd7[_0x5904('0xea')][_0x5904('0x16c')]['on']('update:suggestion',(_0x498aeb,_0x3d4d73,_0x46c932)=>{if(null==_0x46c932){const {id:_0x595ae8}=this[_0x5904('0x45')](_0x3d4d73[_0x5904('0x150')]),_0x2d36c6=this[_0x5904('0x125')]['get'](_0x595ae8);_0x2d36c6&&_0x2d36c6[_0x5904('0x158')](_0x3d4d73[_0x5904('0x150')]);}}),_0x19dbd7['model'][_0x5904('0xa2')]['on'](_0x5904('0x3c'),()=>{const _0x341fb3=Array[_0x5904('0x123')](_0x19dbd7[_0x5904('0xea')]['document']['differ'][_0x5904('0x15a')]())[_0x5904('0x11d')](_0x2c7294=>_0x5904('0x1d')===this['_splitMarkerName'](_0x2c7294['name'])[_0x5904('0x20')]);if(0x0===_0x341fb3[_0x5904('0x37')])return;_0x341fb3['sort']((_0x2b04d4,_0x132e40)=>{const _0x2a9a2c=_0x2b04d4[_0x5904('0x15f')]['oldRange'],_0x2aa89f=_0x132e40['data'][_0x5904('0xc5')];return null===_0x2a9a2c&&null===_0x2aa89f?0x0:null===_0x2a9a2c&&null!==_0x2aa89f?-0x1:null!==_0x2a9a2c&&null===_0x2aa89f?0x1:_0x2a9a2c[_0x5904('0x18')][_0x5904('0x14d')](_0x2aa89f['start'])?-0x1:0x1;});const _0x394b3a=new Set(),_0x1c887e=new Set();for(const {name:_0x657714,data:_0x518994}of _0x341fb3){const {id:_0xae4b08}=this['_splitMarkerName'](_0x657714);if(null===_0x518994['oldRange']){const _0x2450a1=this['_handleNewSuggestionMarker'](_0x657714);_0x1c887e[_0x5904('0xdd')](_0x2450a1);}else{const _0x13f487=this['_suggestions'][_0x5904('0xf1')](_0xae4b08);null!==_0x518994[_0x5904('0x56')]||_0x13f487[_0x5904('0x161')]?(_0x394b3a['add'](_0x13f487[_0x5904('0x17e')]),_0x1c887e['add'](_0x13f487)):this[_0x5904('0x12')](_0x13f487);}}_0x1c887e[_0x5904('0x54')]>0x0&&this[_0x5904('0x141')](_0x1c887e);for(const _0x39c5b2 of _0x394b3a)this[_0x5904('0xa0')](_0x5904('0x10d'),_0x39c5b2);}),_0x19dbd7[_0x5904('0xea')]['on'](_0x5904('0x17'),(_0x21e7cf,_0x332380)=>{const _0x1ecb42=_0x332380[0x0];if(!this[_0x5904('0x125')][_0x5904('0x54')])return;if(!_0x1ecb42['isDocumentOperation'])return;if(_0x1ecb42[_0x5904('0x13b')][_0x5904('0x50')]||!_0x1ecb42[_0x5904('0x13b')]['isLocal'])return;let _0x48f8be,_0xf775ee;switch(_0x1ecb42[_0x5904('0x179')]){case _0x5904('0x7b'):_0x48f8be=_0x19dbd7[_0x5904('0xea')][_0x5904('0x82')](_0x1ecb42['position']),_0xf775ee=_0x48f8be[_0x5904('0x6f')](_0x1ecb42[_0x5904('0x3f')]);break;case _0x5904('0xc6'):_0x48f8be=_0x19dbd7[_0x5904('0xea')]['createPositionAt'](_0x1ecb42[_0x5904('0x91')]),_0xf775ee=_0x19dbd7['model'][_0x5904('0x82')](_0x1ecb42[_0x5904('0x62')]);break;case'move':_0x48f8be=_0x19dbd7['model'][_0x5904('0x82')](_0x1ecb42[_0x5904('0x138')]),_0xf775ee=_0x48f8be[_0x5904('0x6f')](_0x1ecb42[_0x5904('0x3f')]);break;default:return;}const _0x4a43a9=_0x19dbd7[_0x5904('0xea')]['createRange'](_0x48f8be,_0xf775ee);_0x19dbd7[_0x5904('0xea')][_0x5904('0x1f')](()=>{for(const {suggestion:_0x311957,meta:_0xe6918f}of this[_0x5904('0x136')](_0x4a43a9)){if(_0x311957['isMultiRange'])continue;if(_0x5904('0x2b')==_0x311957[_0x5904('0x179')])continue;const _0x36722c=this[_0x5904('0xe2')](_0x311957);if(_0x36722c&&this[_0x5904('0xd6')](_0x36722c)&&_0x5904('0xc6')!=_0x1ecb42['type'])continue;const _0x2df3d0=_0x311957['data']&&_0x311957['data'][_0x5904('0xf5')];('formatBlock'!=_0x311957['type']||'split'==_0x1ecb42[_0x5904('0x179')]&&!_0x2df3d0)&&(_0xe6918f['containsRangeInObject']||_0x5904('0x85')==_0x311957[_0x5904('0x179')]&&_0xe6918f[_0x5904('0x81')]||_0x311957[_0x5904('0xf6')]()[_0x5904('0x12e')](_0x4a43a9)&&this[_0x5904('0x80')](_0x311957,_0x48f8be,_0xf775ee));}});},{'priority':_0x5904('0xc')}),_0x19dbd7[_0x5904('0xea')]['on'](_0x5904('0xa8'),(_0x506202,_0x3d91ec)=>{const _0x522e3f=_0x3d91ec[0x0],_0x5c7df4=_0x3d91ec[0x1];if(_0x5c7df4&&_0x5c7df4[_0x5904('0xbf')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x5904('0xda')])return;if(_0x522e3f[_0x5904('0x89')])return;const _0x22d9f0=_0x19dbd7[_0x5904('0xea')]['schema'],{start:_0x539a89,end:_0x2e7fd3}=_0x522e3f['getFirstRange'](),_0x20f9a9=_0x539a89[_0x5904('0x60')]&&_0x22d9f0['isLimit'](_0x539a89['nodeAfter'])?null:_0x22d9f0[_0x5904('0x4d')](_0x539a89,_0x5904('0x67')),_0x75b7f0=_0x2e7fd3[_0x5904('0x96')]&&_0x22d9f0[_0x5904('0x11f')](_0x2e7fd3['nodeBefore'])?null:_0x22d9f0['getNearestSelectionRange'](_0x2e7fd3,'backward'),_0x59c629=_0x19dbd7[_0x5904('0xea')]['createRange'](_0x20f9a9?_0x20f9a9[_0x5904('0x18')]:_0x539a89,_0x75b7f0?_0x75b7f0[_0x5904('0xee')]:_0x2e7fd3);_0x19dbd7['model'][_0x5904('0x1f')](_0x441989=>{this[_0x5904('0x14')](_0x59c629);const _0x2b7b86=_0x19dbd7[_0x5904('0xea')][_0x5904('0xa9')]['getNearestSelectionRange'](_0x59c629[_0x5904('0x18')]);_0x522e3f['is'](_0x5904('0x6a'))?_0x441989[_0x5904('0x7e')](_0x2b7b86):_0x522e3f[_0x5904('0xb9')](_0x2b7b86);}),_0x506202[_0x5904('0xe1')]();},{'priority':_0x3e9c74[_0x5904('0xb')]+0xa}),_0x19dbd7[_0x5904('0xea')]['on'](_0x5904('0xe7'),(_0xd81fcc,_0x11b868)=>{const _0x52f334=_0x11b868[_0x11b868[_0x5904('0x37')]-0x1];_0x52f334&&_0x52f334[_0x5904('0xbf')]||this[_0x5904('0xe0')]||this[_0x5904('0x11c')]['value']&&(_0x19dbd7[_0x5904('0xea')][_0x5904('0x1f')](()=>{let _0x323f24=_0x19dbd7[_0x5904('0xea')][_0x5904('0xe7')](_0x11b868[0x0],_0x11b868[0x1],_0x11b868[0x2],{'forceDefaultExecution':!0x0});if(!_0x323f24)return;_0xd81fcc['return']=_0x323f24[_0x5904('0x29')]();const _0x495952=_0x323f24[_0x5904('0xee')]['nodeBefore'],_0x26305b=_0x19dbd7[_0x5904('0xea')][_0x5904('0xa9')];_0x495952&&_0x26305b[_0x5904('0x10c')](_0x495952)&&!_0x26305b[_0x5904('0xbb')](_0x495952)&&(_0x323f24=_0x19dbd7[_0x5904('0xea')][_0x5904('0x133')](_0x323f24['start'],_0x19dbd7[_0x5904('0xea')][_0x5904('0x82')](_0x495952,'end'))),this[_0x5904('0x58')](_0x323f24);}),_0xd81fcc[_0x5904('0xe1')]());},{'priority':_0x5904('0x95')}),this['editor'][_0x5904('0x172')]['add'](_0x5904('0x7'),this[_0x5904('0x11c')]),this[_0x5904('0x68')](_0x5904('0x7'));const _0x306d00=new _0x2cf257(_0x19dbd7,this[_0x5904('0x125')]);_0x19dbd7[_0x5904('0x172')]['add']('acceptSuggestion',_0x306d00),this['enableCommand'](_0x5904('0x143'));const _0x26c3d1=new _0x36988a(_0x19dbd7,this[_0x5904('0x125')]);_0x19dbd7['commands'][_0x5904('0xdd')](_0x5904('0xd4'),_0x26c3d1),this['enableCommand'](_0x5904('0xd4')),_0x19dbd7[_0x5904('0x172')]['add'](_0x5904('0x9e'),new _0x128c65(_0x19dbd7,_0x306d00,this[_0x5904('0x125')])),this[_0x5904('0x68')]('acceptAllSuggestions'),_0x19dbd7[_0x5904('0x172')][_0x5904('0xdd')](_0x5904('0x149'),new _0x128c65(_0x19dbd7,_0x26c3d1,this[_0x5904('0x125')])),this[_0x5904('0x68')](_0x5904('0x149')),_0x19dbd7[_0x5904('0x172')]['add']('acceptSelectedSuggestions',new _0x5db7c7(_0x19dbd7,_0x306d00,this[_0x5904('0x125')])),this[_0x5904('0x68')](_0x5904('0xe9')),_0x19dbd7[_0x5904('0x172')][_0x5904('0xdd')](_0x5904('0xfb'),new _0x5db7c7(_0x19dbd7,_0x26c3d1,this[_0x5904('0x125')])),this[_0x5904('0x68')](_0x5904('0xfb'));const _0x1d6466=_0x19dbd7[_0x5904('0x43')][_0x5904('0xf1')](_0x5904('0x9a'));this[_0x5904('0xd0')](_0x1d6466,_0x5904('0x16'),(_0x382372,{threadId:_0x557c9b})=>{const _0x452089=this['_suggestions'][_0x5904('0xf1')](_0x557c9b);_0x452089&&_0x452089['commentThread']&&0x1===_0x452089[_0x5904('0x160')]['length']&&this[_0x5904('0xaf')](_0x557c9b,{'hasComments':!0x0});},{'priority':_0x5904('0x8a')}),this[_0x5904('0xd0')](_0x1d6466,_0x5904('0xfe'),(_0x53146c,{threadId:_0xeb910e})=>{const _0x143989=this['_suggestions'][_0x5904('0xf1')](_0xeb910e);_0x143989&&_0x143989[_0x5904('0x160')]&&!_0x143989[_0x5904('0x160')][_0x5904('0x37')]&&this[_0x5904('0xaf')](_0xeb910e,{'hasComments':!0x1});},{'priority':_0x5904('0x8a')});}set[_0x5904('0xd8')](_0x25de42){if(this[_0x5904('0x15c')])throw new _0x2aea78(_0x5904('0x156'),this);this['_adapter']=_0x25de42;}get['adapter'](){return this[_0x5904('0x15c')];}[_0x5904('0x25')]({skipNotAttached:_0x1fcd09=!0x1,toJSON:_0x347345=!0x1}={}){const _0x2256b7=[];for(const _0x1f91bc of this[_0x5904('0x125')][_0x5904('0xb8')]())_0x1fcd09&&!_0x1f91bc[_0x5904('0x161')]||_0x2256b7[_0x5904('0x110')](_0x1f91bc);return _0x347345?_0x2256b7[_0x5904('0x3')](_0x268b4b=>_0x268b4b[_0x5904('0x14e')]()):_0x2256b7;}[_0x5904('0x41')](_0x515d6d){const _0x299631=this[_0x5904('0x125')][_0x5904('0xf1')](_0x515d6d);if(!_0x299631)throw new _0x2aea78(_0x5904('0x12b'),this);return _0x299631;}[_0x5904('0x182')](_0x792af5){return this[_0x5904('0x125')][_0x5904('0x13c')](_0x792af5);}[_0x5904('0x5e')](_0x9ecb46){const {authorId:_0x37a55d,id:_0x356779,attributes:_0x58154f}=_0x9ecb46,[_0x8034b6,_0x5cc9da]=_0x9ecb46[_0x5904('0x179')][_0x5904('0xc6')](':'),_0x5b0403=this['_suggestions'][_0x5904('0xf1')](_0x356779)||this[_0x5904('0xb5')](_0x8034b6,_0x5cc9da,_0x356779,_0x37a55d,_0x58154f);if(this[_0x5904('0x181')](_0x5b0403),this[_0x5904('0x2d')](_0x5b0403,_0x8034b6,_0x5cc9da||null,_0x37a55d),_0x5b0403[_0x5904('0xe4')]=_0x9ecb46[_0x5904('0xe4')],_0x5b0403[_0x5904('0x180')]=!0x0,_0x58154f&&_0x58154f[_0x5904('0x184')]){const _0x59ef8f=_0x58154f[_0x5904('0x184')],_0x2d89dc=this['_getExternalAuthor'](_0x59ef8f['authorName']);_0x5b0403[_0x5904('0x2')]=_0x59ef8f[_0x5904('0xe4')],_0x5b0403['author']=_0x2d89dc,_0x5b0403['isExternal']=!0x0;}else _0x5b0403[_0x5904('0x2')]=_0x9ecb46[_0x5904('0xe4')];switch(_0x9ecb46[_0x5904('0x15f')]&&(_0x5b0403['data']=_0x9ecb46['data']),_0x9ecb46[_0x5904('0x12c')]&&(_0x5b0403[_0x5904('0x12c')]=_0x9ecb46[_0x5904('0x12c')]),this[_0x5904('0x15c')]&&this[_0x5904('0x15c')]['addSuggestion']||(_0x5b0403['_saved']=!0x0),this['_suggestionState'][_0x5904('0xf1')](_0x5b0403)){case'notReady':this['_suggestionState']['set'](_0x5b0403,'dataReady');break;case _0x5904('0x153'):_0x5b0403['isInContent']?(this[_0x5904('0x48')](new Set([_0x5b0403])),this[_0x5904('0x141')](new Set([_0x5b0403])),this['_suggestionState'][_0x5904('0xc3')](_0x5b0403,_0x5904('0x1e')),this[_0x5904('0xa0')](_0x5904('0x34'),_0x5b0403)):this[_0x5904('0x15d')][_0x5904('0xc3')](_0x5b0403,_0x5904('0xaa'));}return _0x5b0403;}[_0x5904('0x143')](_0x4597b9){this[_0x5904('0xbf')](()=>{this[_0x5904('0x185')][_0x5904('0xea')][_0x5904('0x1f')](()=>{for(const _0x65c712 of _0x4597b9[_0x5904('0xfc')]())_0x65c712[_0x5904('0xa4')]();});});}[_0x5904('0xd4')](_0x5771d7){this['forceDefaultExecution'](()=>{this[_0x5904('0x185')][_0x5904('0xea')][_0x5904('0x1f')](()=>{for(const _0xf434d of _0x5771d7[_0x5904('0xfc')]())_0xf434d[_0x5904('0x8b')]();});});}[_0x5904('0x68')](_0x17a877,_0x4ac8ee){const _0x3c68d7=this['editor'][_0x5904('0x172')]['get'](_0x17a877);if(!_0x3c68d7)throw new _0x2aea78(_0x5904('0x117'),this,{'commandName':_0x17a877});if(this[_0x5904('0x106')]['has'](_0x3c68d7))throw new _0x2aea78(_0x5904('0x35'),this,{'commandName':_0x17a877});this['_enabledCommands'][_0x5904('0xdd')](_0x3c68d7),_0x4ac8ee&&_0x3c68d7['on'](_0x5904('0xf7'),(_0x1b78ee,_0x27c51a)=>{this[_0x5904('0x11c')][_0x5904('0xda')]&&(this[_0x5904('0xe0')]||(_0x27c51a[_0x5904('0x37')]>0x0&&_0x27c51a[_0x27c51a[_0x5904('0x37')]-0x1]&&_0x27c51a[_0x27c51a[_0x5904('0x37')]-0x1][_0x5904('0xbf')]?_0x27c51a['pop']():(_0x1b78ee[_0x5904('0x97')]=_0x4ac8ee((..._0x48caf6)=>_0x3c68d7['execute'](..._0x48caf6,{'forceDefaultExecution':!0x0}),..._0x27c51a),_0x1b78ee[_0x5904('0xe1')]())));},{'priority':_0x5904('0x95')});}[_0x5904('0xbf')](_0x10de73){let _0x31d97a,_0x3920ca;const _0x57e15b=this[_0x5904('0xe0')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x31d97a=_0x10de73();}catch(_0x5d4a09){_0x3920ca=_0x5d4a09;}return _0x57e15b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3920ca&&_0x2aea78['rethrowUnexpectedError'](_0x3920ca,this),_0x31d97a;}['markInsertion'](_0x211a1f,_0x29ee54=null,_0x1d97e8={}){if(_0x211a1f[_0x5904('0x89')])return null;const _0x45a297=this[_0x5904('0x185')][_0x5904('0x43')]['get'](_0x5904('0x3d'))['me'];for(const {suggestion:_0x11c3e4,meta:_0x15fe11}of this['_findSuggestions'](_0x211a1f,_0x5904('0x85')))if(_0x15fe11['isOwn']){if(!_0x15fe11[_0x5904('0x75')]){if(_0x15fe11[_0x5904('0x2c')]){if(!this[_0x5904('0x167')]||!Pt(_0x11c3e4,_0x1d97e8))continue;return _0x11c3e4;}if(Pt(_0x11c3e4,_0x1d97e8))return _0x11c3e4;this[_0x5904('0x80')](_0x11c3e4,_0x211a1f[_0x5904('0x18')],_0x211a1f['end']);break;}if(_0x29ee54==_0x11c3e4[_0x5904('0x36')]&&Pt(_0x11c3e4,_0x1d97e8)){const _0x1c449a=_0x11c3e4['getFirstRange']();return _0x1c449a[_0x5904('0x18')][_0x5904('0x13d')](_0x211a1f[_0x5904('0xee')])?this[_0x5904('0x10e')](_0x11c3e4,this[_0x5904('0x1')][_0x5904('0x133')](_0x211a1f[_0x5904('0x18')],_0x1c449a[_0x5904('0xee')])):this['_setSuggestionRange'](_0x11c3e4,this['_model'][_0x5904('0x133')](_0x1c449a['start'],_0x211a1f[_0x5904('0xee')])),_0x11c3e4;}}const _0x49838c=_0x12efea(),_0x4e3440=_0x45a297['id'],_0x66c5f5=_0x29ee54?_0x5904('0xfa')+_0x29ee54:_0x5904('0x85'),_0x1d0542=this[_0x5904('0x147')]({'id':_0x49838c,'type':_0x66c5f5,'createdAt':new Date(),'authorId':_0x4e3440,'attributes':_0x1d97e8});return this[_0x5904('0x65')](_0x66c5f5,_0x49838c,_0x4e3440,_0x211a1f),_0x1d0542;}[_0x5904('0xc0')](_0x2cbce8,_0x9e833f='multi',_0x228b95={}){const _0x18b500=this[_0x5904('0x185')][_0x5904('0x43')][_0x5904('0xf1')]('Users')['me'],_0x5565e9=this['_suggestionFactory'][_0x5904('0xf8')]('insertion',_0x9e833f,_0x5904('0x109'));for(const _0x3e8b41 of this['getSuggestions']())if(_0x3e8b41[_0x5904('0xef')]['id']==_0x18b500['id']&&_0x5904('0x85')==_0x3e8b41[_0x5904('0x179')]&&_0x3e8b41[_0x5904('0x36')]==_0x9e833f&&Pt(_0x3e8b41,_0x228b95)&&(_0x5565e9(_0x3e8b41[_0x5904('0x124')](),_0x2cbce8)||_0x5565e9(_0x2cbce8,_0x3e8b41[_0x5904('0x124')]()))){for(const _0x2f2551 of _0x2cbce8)_0x3e8b41[_0x5904('0x186')](_0x2f2551);return _0x3e8b41;}for(const {suggestion:_0x5c0a85,meta:_0x2569c2}of this['_findSuggestions'](_0x2cbce8,_0x5904('0x85'))){if(!_0x2569c2[_0x5904('0x81')])continue;if(!this[_0x5904('0x167')]&&_0x2569c2['containsRangeInObject'])continue;if(!Pt(_0x5c0a85,_0x228b95))continue;let _0x56e70e=!0x0;for(const _0x33d3ae of _0x5c0a85[_0x5904('0x124')]())for(const _0x3ba419 of _0x2cbce8)if(!_0x33d3ae[_0x5904('0x12e')](_0x3ba419)){_0x56e70e=!0x1;break;}if(_0x56e70e)return _0x5c0a85;}const _0x1bcaad=_0x12efea(),_0x52aef5=_0x18b500['id'],_0x1332fa=_0x5904('0xfa')+_0x9e833f,_0x3f69a8=this['_setSuggestionData']({'id':_0x1bcaad,'type':_0x1332fa,'createdAt':new Date(),'authorId':_0x52aef5,'attributes':_0x228b95});for(const _0x3c4651 of _0x2cbce8)this[_0x5904('0x65')](_0x1332fa,_0x1bcaad,_0x52aef5,_0x3c4651,_0x80ede4['getMultiRangeId']());return _0x3f69a8;}[_0x5904('0x104')](_0x500124,_0xaf2af0,_0x9b32ea=null,_0x4a67be={}){if(_0x9b32ea=_0x9b32ea||Et(_0xaf2af0),_0x500124[_0x5904('0x89')])return null;if('never'===this[_0x5904('0x6b')]){const _0x3e3d3f=this[_0x5904('0xfd')]['getSuggestionCallback'](_0x5904('0x2b'),_0x9b32ea,_0x5904('0xa4'));return this[_0x5904('0xbf')](()=>_0x3e3d3f([_0x500124],_0xaf2af0,_0x4a67be)),null;}const _0x137f59=this[_0x5904('0x185')]['plugins']['get'](_0x5904('0x3d'))['me'],_0x3db8d3=[];if(_0x5904('0x12a')!==this[_0x5904('0x6b')])for(const {suggestion:_0x34bf3a,meta:_0x530926}of this[_0x5904('0x136')](_0x500124,_0x5904('0x85')))_0x530926['isOwn']&&!_0x530926[_0x5904('0x1c')]&&_0x3db8d3[_0x5904('0x110')](..._0x34bf3a[_0x5904('0x124')]());const _0x4e2243=function(_0x588195,_0x1241ce){const _0x1ce98d=[];for(const _0x12e1bf of _0x1241ce){const _0x2ad86a=_0x588195[_0x5904('0x39')](_0x12e1bf);_0x2ad86a&&_0x1ce98d[_0x5904('0x110')](_0x2ad86a);}return _0x1ce98d;}(_0x500124,_0x3db8d3),_0x4e13e0=function(_0x20f912,_0x2b5c9a){const _0x1ececb=[_0x20f912];for(const _0x15c0f6 of _0x2b5c9a){let _0x175c1a=0x0;for(;_0x175c1a<_0x1ececb[_0x5904('0x37')];){const _0x2d2672=_0x1ececb[_0x175c1a]['getDifference'](_0x15c0f6);_0x1ececb[_0x5904('0xbe')](_0x175c1a,0x1,..._0x2d2672),_0x175c1a+=_0x2d2672['length'];}}return _0x1ececb;}(_0x500124,_0x3db8d3);_0x4e2243[_0x5904('0x37')]&&this[_0x5904('0x1')]['change'](()=>{for(const _0x38311c of _0x4e2243){const _0x1c1d5d=this[_0x5904('0xfd')][_0x5904('0xf8')]('formatInline',_0x9b32ea,'accept');this[_0x5904('0xbf')](()=>_0x1c1d5d([_0x38311c],_0xaf2af0,_0x4a67be));}});for(const _0x351640 of _0x4e13e0){let _0x57683e=null,_0x3d2689=_0x351640['start'],_0xc8c567=_0x351640[_0x5904('0xee')];for(const {suggestion:_0x3dbf09,meta:_0x28caaa}of this['_findSuggestions'](_0x351640,_0x5904('0x2b'))){if(!_0x28caaa[_0x5904('0x81')])continue;if(_0x3dbf09['subType']!=_0x9b32ea)continue;if(!Pt(_0x3dbf09,_0x4a67be))continue;const _0x5278ca=_0x3dbf09[_0x5904('0xf6')]();if(_0x5278ca['containsRange'](_0x351640,!0x0))return null;_0x3d2689=_0x3d2689['isBefore'](_0x5278ca[_0x5904('0x18')])?_0x3d2689:_0x5278ca['start'],_0xc8c567=_0xc8c567[_0x5904('0x129')](_0x5278ca[_0x5904('0xee')])?_0xc8c567:_0x5278ca[_0x5904('0xee')],_0x57683e?_0x5278ca['start'][_0x5904('0x14d')](_0x57683e['getFirstRange']()[_0x5904('0x18')])?(_0x57683e[_0x5904('0x148')](),_0x57683e=_0x3dbf09):_0x3dbf09[_0x5904('0x148')]():_0x57683e=_0x3dbf09;}const _0x14047c=this['_model']['createRange'](_0x3d2689,_0xc8c567);if(_0x57683e)this[_0x5904('0x10e')](_0x57683e,_0x14047c);else{const _0x433b6c=_0x12efea(),_0x4f8aaa=_0x137f59['id'];this[_0x5904('0x147')]({'id':_0x433b6c,'type':'formatInline:'+_0x9b32ea,'data':_0xaf2af0,'createdAt':new Date(),'authorId':_0x4f8aaa,'attributes':_0x4a67be}),this[_0x5904('0x65')]('formatInline:'+_0x9b32ea,_0x433b6c,_0x4f8aaa,_0x14047c);}}return null;}[_0x5904('0x131')](_0xdce88e,_0x2eb675,_0x5e1ac6=[],_0x1574ba=null,_0x5ecf61={}){_0x2eb675[_0x5904('0x86')]||(_0x2eb675['formatGroupId']=_0x2eb675[_0x5904('0x4')]),_0x2eb675[_0x5904('0xf5')]=_0xdce88e['is'](_0x5904('0x4e')),_0x1574ba=_0x1574ba||Et(_0x2eb675);const _0x36734e=_0x5e1ac6['map'](_0xce95be=>Ot(_0xce95be,this[_0x5904('0x1')])),_0x442ae2=_0xdce88e['is'](_0x5904('0x4e'))?_0xdce88e:Ot(_0xdce88e,this['_model']);if(_0x5904('0x177')===this[_0x5904('0x6b')]){const _0x5c9463=this['_suggestionFactory']['getSuggestionCallback'](_0x5904('0x44'),_0x1574ba,_0x5904('0xa4'));return this['forceDefaultExecution'](()=>_0x5c9463([_0x442ae2],_0x2eb675,_0x5ecf61)),null;}_0x36734e[_0x5904('0x110')](_0x442ae2);let _0x33e4b4=!0x0;for(const _0x57e173 of _0x36734e)if(!this[_0x5904('0x164')](_0x57e173)){_0x33e4b4=!0x1;break;}if(_0x33e4b4&&_0x5904('0x12a')!==this[_0x5904('0x6b')]){const _0x43602=this['_suggestionFactory'][_0x5904('0xf8')](_0x5904('0x44'),_0x1574ba,'accept');return this[_0x5904('0xbf')](()=>_0x43602([_0x442ae2],_0x2eb675,_0x5ecf61)),null;}let _0x2e8093=null,_0x2fb671=_0x442ae2[_0x5904('0x18')],_0x2cc111=_0x442ae2['end'];for(const {suggestion:_0x2064f6,meta:_0x3093c8}of this[_0x5904('0x136')](_0x442ae2,_0x5904('0x44'))){if(!_0x3093c8[_0x5904('0x81')])continue;if(_0x3093c8[_0x5904('0x75')]||_0x3093c8[_0x5904('0x2c')]||_0x3093c8['isInsideObject'])continue;if(_0x2064f6[_0x5904('0x15f')][_0x5904('0x86')]!=_0x2eb675['formatGroupId'])continue;if(!Pt(_0x2064f6,_0x5ecf61))continue;const _0x4cb567=_0x2064f6[_0x5904('0xf6')]();if(_0x2064f6['subType']==_0x1574ba){if(_0x4cb567['containsRange'](_0x442ae2,!0x0))return null;_0x2fb671=_0x2fb671['isBefore'](_0x4cb567[_0x5904('0x18')])?_0x2fb671:_0x4cb567[_0x5904('0x18')],_0x2cc111=_0x2cc111[_0x5904('0x129')](_0x4cb567[_0x5904('0xee')])?_0x2cc111:_0x4cb567['end'],_0x2e8093?_0x4cb567[_0x5904('0x18')][_0x5904('0x14d')](_0x2e8093[_0x5904('0xf6')]()[_0x5904('0x18')])?(_0x2e8093[_0x5904('0x148')](),_0x2e8093=_0x2064f6):_0x2064f6[_0x5904('0x148')]():_0x2e8093=_0x2064f6;}else{const _0x582128=_0x442ae2[_0x5904('0x39')](_0x4cb567);this['_cutOutSuggestionMarker'](_0x2064f6,_0x582128);}}const _0x2fe388=this[_0x5904('0x185')][_0x5904('0x43')]['get'](_0x5904('0x3d'))['me'],_0x368977=_0x12efea(),_0x910d2b=_0x2fe388['id'];if(_0x2e8093)return this['_setSuggestionRange'](_0x2e8093,this[_0x5904('0x1')][_0x5904('0x133')](_0x2fb671,_0x2cc111)),_0x2e8093;{const _0x26cc81=this[_0x5904('0x147')]({'id':_0x368977,'type':_0x5904('0x169')+_0x1574ba,'data':_0x2eb675,'createdAt':new Date(),'authorId':_0x910d2b,'attributes':_0x5ecf61});return this[_0x5904('0x65')](_0x5904('0x169')+_0x1574ba,_0x368977,_0x910d2b,this[_0x5904('0x1')][_0x5904('0x133')](_0x2fb671,_0x2cc111)),_0x26cc81;}}['markMultiRangeBlockFormat'](_0x4cc665,_0x35b690,_0x477d94=[],_0x2e08ad=null,_0xdb8d0={}){_0x35b690[_0x5904('0x86')]||(_0x35b690[_0x5904('0x86')]=_0x35b690['commandName']);const _0x711ee2=_0x4cc665[0x0];_0x35b690[_0x5904('0xf5')]=_0x711ee2['is'](_0x5904('0x4e')),_0x2e08ad=_0x2e08ad||Et(_0x35b690);const _0x128f8f=_0x477d94[_0x5904('0x3')](_0x38348a=>Ot(_0x38348a,this[_0x5904('0x1')])),_0x497376=_0x711ee2['is'](_0x5904('0x4e'))?_0x4cc665:_0x4cc665['map'](_0x3bb702=>Ot(_0x3bb702,this[_0x5904('0x1')]));if('never'===this[_0x5904('0x6b')]){const _0x260c19=this[_0x5904('0xfd')][_0x5904('0xf8')](_0x5904('0x44'),_0x2e08ad,'accept');return this['forceDefaultExecution'](()=>_0x260c19(_0x497376,_0x35b690,_0xdb8d0)),null;}_0x128f8f[_0x5904('0x110')](..._0x497376);let _0x10c13c=!0x0;for(const _0x487c6e of _0x128f8f)if(!this['_rangeIsInLocalUserInsertion'](_0x487c6e)){_0x10c13c=!0x1;break;}if(_0x10c13c&&_0x5904('0x12a')!==this[_0x5904('0x6b')]){const _0xeec703=this[_0x5904('0xfd')]['getSuggestionCallback'](_0x5904('0x44'),_0x2e08ad,_0x5904('0xa4'));return this[_0x5904('0xbf')](()=>_0xeec703(_0x497376,_0x35b690,_0xdb8d0)),null;}const _0x49f782=this[_0x5904('0x185')][_0x5904('0x43')][_0x5904('0xf1')](_0x5904('0x3d'))['me'];for(const _0xc54f0c of this['getSuggestions']()){if(_0xc54f0c['author']['id']!=_0x49f782['id'])continue;if(_0x5904('0x44')!=_0xc54f0c[_0x5904('0x179')]||_0xc54f0c['data']['formatGroupId']!=_0x35b690['formatGroupId'])continue;if(!Pt(_0xc54f0c,_0xdb8d0))continue;const _0x333883=_0xc54f0c[_0x5904('0x36')]==_0x2e08ad;for(let _0x25c0e8=0x0;_0x25c0e8<_0x497376[_0x5904('0x37')];_0x25c0e8++){const _0x559fd4=_0x497376[_0x25c0e8];for(const _0x57ae7a of _0xc54f0c[_0x5904('0x9')]()){const _0x265039=_0x57ae7a[_0x5904('0x0')]();if(_0x559fd4[_0x5904('0x13d')](_0x265039)){_0x333883?(_0x497376[_0x5904('0xbe')](_0x25c0e8,0x1),_0x25c0e8--):_0xc54f0c['removeMarker'](_0x57ae7a[_0x5904('0x150')]);break;}}}}if(0x0==_0x497376[_0x5904('0x37')])return null;const _0x68abaa=this['_suggestionFactory']['getSuggestionCallback'](_0x5904('0x44'),_0x2e08ad,_0x5904('0x109'));for(const _0x1bab98 of this[_0x5904('0x25')]())if(_0x1bab98[_0x5904('0xef')]['id']==_0x49f782['id']&&_0x5904('0x44')==_0x1bab98['type']&&_0x1bab98[_0x5904('0x15f')]['formatGroupId']==_0x35b690[_0x5904('0x86')]&&_0x1bab98[_0x5904('0x36')]==_0x2e08ad&&Pt(_0x1bab98,_0xdb8d0)&&(_0x68abaa(_0x1bab98['getRanges'](),_0x497376)||_0x68abaa(_0x497376,_0x1bab98[_0x5904('0x124')]()))){for(const _0x136d55 of _0x497376)_0x1bab98['addRange'](_0x136d55);return _0x1bab98;}const _0xb6e890=_0x12efea(),_0x53657a=_0x49f782['id'],_0x550037=_0x5904('0x169')+_0x2e08ad,_0x1cfcd4=this['_setSuggestionData']({'id':_0xb6e890,'type':_0x550037,'data':_0x35b690,'createdAt':new Date(),'authorId':_0x53657a,'attributes':_0xdb8d0});for(const _0x468972 of _0x497376)this[_0x5904('0x65')](_0x550037,_0xb6e890,_0x53657a,_0x468972,_0x80ede4[_0x5904('0x9d')]());return _0x1cfcd4;}['markDeletion'](_0x1f7730,_0x6c491b=null,_0x56f470={}){if(_0x1f7730['isCollapsed'])return null;const _0x52f112=this['editor'][_0x5904('0x43')]['get'](_0x5904('0x3d'))['me'],_0x3194d2=new _0x3da7f8(_0x1f7730[_0x5904('0x18')],_0x1f7730[_0x5904('0xee')]);for(const {suggestion:_0x86251d,meta:_0x49ae04}of this[_0x5904('0x136')](_0x3194d2,'insertion'))if(_0x49ae04[_0x5904('0x81')]&&!_0x49ae04[_0x5904('0x75')]){if(_0x86251d[_0x5904('0x152')]){const _0x5dfb76=_0x86251d[_0x5904('0x124')]()[_0x5904('0x11d')](_0x5776dc=>_0x5904('0x100')!=_0x5776dc['root'][_0x5904('0x116')]);_0x5dfb76[_0x5904('0x1b')](_0x46d0bd=>_0x3194d2['containsRange'](_0x46d0bd,!0x0))&&_0x86251d[_0x5904('0x8b')]();if(_0x5dfb76[_0x5904('0x157')](_0x5e3898=>_0x5e3898[_0x5904('0x12e')](_0x3194d2,!0x0))){const _0x40d33e=this[_0x5904('0xfd')][_0x5904('0xf8')](_0x5904('0xb3'),_0x6c491b,'accept');return this['forceDefaultExecution'](()=>_0x40d33e([_0x3194d2],null,_0x56f470)),null;}}else{const _0x192523=_0x3194d2[_0x5904('0x39')](_0x86251d['getFirstRange']());null!==_0x192523&&_0x86251d[_0x5904('0x93')]([_0x192523],null,_0x56f470);}}if(_0x3194d2[_0x5904('0x6')](),_0x3194d2[_0x5904('0x89')]||_0x5904('0x100')==_0x3194d2[_0x5904('0x10b')][_0x5904('0x116')])return null;let _0x5b7207=null,_0x134569=_0x3194d2[_0x5904('0x18')],_0x37b4e2=_0x3194d2[_0x5904('0xee')];const _0x5449d5=this['_findSuggestions'](_0x3194d2,_0x5904('0xb3'));for(const {suggestion:_0x5523f1,meta:_0x270ef7}of _0x5449d5){const _0x1a00a9=this[_0x5904('0x1')][_0x5904('0x133')](_0x134569,_0x37b4e2);if(_0x270ef7['isOwn']&&(this[_0x5904('0x167')]||!_0x270ef7[_0x5904('0x2c')]&&!_0x270ef7[_0x5904('0x1c')])){if(_0x5523f1[_0x5904('0x152')]){if(!Pt(_0x5523f1,_0x56f470))continue;let _0x554702=!0x0;for(const _0x28e9a8 of _0x5523f1[_0x5904('0x124')]()){if(_0x28e9a8[_0x5904('0x12e')](_0x1a00a9,!0x0))return _0x5523f1;_0x1a00a9[_0x5904('0x12e')](_0x28e9a8)||(_0x554702=!0x1);}_0x554702&&_0x5523f1['discard']();}else{const _0x40ac03=_0x5523f1[_0x5904('0xf6')]();if(_0x40ac03['containsRange'](_0x1a00a9,!0x0))return _0x5523f1;if(!Pt(_0x5523f1,_0x56f470)){_0x1a00a9[_0x5904('0x12e')](_0x40ac03)?_0x5523f1[_0x5904('0x148')]():_0x40ac03['containsPosition'](_0x134569)?_0x134569=_0x40ac03['end']:_0x40ac03[_0x5904('0xc9')](_0x37b4e2)&&(_0x37b4e2=_0x40ac03['start']);continue;}_0x134569=_0x134569[_0x5904('0x14d')](_0x40ac03[_0x5904('0x18')])?_0x134569:_0x40ac03[_0x5904('0x18')],_0x37b4e2=_0x37b4e2[_0x5904('0x129')](_0x40ac03[_0x5904('0xee')])?_0x37b4e2:_0x40ac03[_0x5904('0xee')],_0x56f470=Object[_0x5904('0xae')]({},_0x5523f1[_0x5904('0x12c')]),_0x5b7207?_0x40ac03[_0x5904('0x18')][_0x5904('0x14d')](_0x5b7207[_0x5904('0xf6')]()[_0x5904('0x18')])?(_0x5b7207[_0x5904('0x148')](),_0x5b7207=_0x5523f1):_0x5523f1[_0x5904('0x148')]():_0x5b7207=_0x5523f1;}}}if(_0x5b7207)return this['_setSuggestionRange'](_0x5b7207,this[_0x5904('0x1')]['createRange'](_0x134569,_0x37b4e2)),_0x5b7207;{const _0x5377c2=_0x12efea(),_0x3aab11=this[_0x5904('0x1')]['createRange'](_0x134569,_0x37b4e2),_0x4c9b10=_0x52f112['id'],_0x27730f=_0x6c491b?_0x5904('0xd')+_0x6c491b:_0x5904('0xb3'),_0x5974e2=this[_0x5904('0x147')]({'id':_0x5377c2,'type':_0x27730f,'createdAt':new Date(),'authorId':_0x4c9b10,'attributes':_0x56f470});return this[_0x5904('0x65')](_0x27730f,_0x5377c2,_0x4c9b10,_0x3aab11),_0x5974e2;}}[_0x5904('0x73')](_0x4d47f5,_0x4ed86a=_0x5904('0x69'),_0x593fb8={}){const _0x34996b=this[_0x5904('0x185')][_0x5904('0x43')][_0x5904('0xf1')](_0x5904('0x3d'))['me'],_0x28e3ee=_0x4d47f5['map'](_0x442d3c=>new _0x3da7f8(_0x442d3c['start'],_0x442d3c[_0x5904('0xee')])),_0x3e89b7=new Set();for(const {suggestion:_0x306ade,meta:_0x2d530f}of this[_0x5904('0x136')](_0x28e3ee,_0x5904('0x85')))_0x2d530f[_0x5904('0x81')]&&!_0x2d530f['isNextTo']&&_0x3e89b7[_0x5904('0xdd')](_0x306ade);for(const _0x2de176 of _0x3e89b7)if(_0x2de176[_0x5904('0x152')]){const _0x3e8148=_0x2de176['getRanges']();(!_0x2de176[_0x5904('0x12c')]||!_0x2de176['attributes'][_0x5904('0x76')])&&(_0x3e8148[_0x5904('0x1b')](_0x119ac9=>_0x28e3ee[_0x5904('0x157')](_0x1eeab9=>_0x1eeab9['containsRange'](_0x119ac9,!0x0)))&&_0x2de176[_0x5904('0x8b')]());if(_0x28e3ee[_0x5904('0x1b')](_0x57b0b2=>_0x3e8148[_0x5904('0x157')](_0x5841d8=>_0x5841d8['containsRange'](_0x57b0b2,!0x0)))){const _0x146515=this[_0x5904('0xfd')][_0x5904('0xf8')](_0x5904('0xb3'),_0x4ed86a,_0x5904('0xa4'));return this['forceDefaultExecution'](()=>_0x146515(_0x4d47f5,null,_0x593fb8)),null;}}else{const _0x5f1164=_0x2de176[_0x5904('0xf6')]();_0x28e3ee[_0x5904('0x157')](_0x56cb29=>_0x56cb29[_0x5904('0x12e')](_0x5f1164,!0x0))&&_0x2de176[_0x5904('0x8b')]();if(_0x28e3ee[_0x5904('0x1b')](_0x5c5cf8=>_0x5f1164[_0x5904('0x12e')](_0x5c5cf8,!0x0))){const _0x40713b=this[_0x5904('0xfd')][_0x5904('0xf8')](_0x5904('0xb3'),_0x4ed86a,_0x5904('0xa4'));return this[_0x5904('0xbf')](()=>_0x40713b(_0x28e3ee,null,_0x593fb8)),null;}}const _0x287216=this[_0x5904('0xfd')][_0x5904('0xf8')](_0x5904('0xb3'),_0x4ed86a,_0x5904('0x109'));let _0x3cacc7=null;for(const _0x1127d9 of this[_0x5904('0x25')]())if(_0x1127d9['author']['id']==_0x34996b['id']&&_0x1127d9[_0x5904('0x161')]&&_0x5904('0xb3')==_0x1127d9[_0x5904('0x179')]&&_0x1127d9[_0x5904('0x36')]==_0x4ed86a&&Pt(_0x1127d9,_0x593fb8)&&(_0x287216(_0x1127d9[_0x5904('0x124')](),_0x28e3ee)||_0x287216(_0x28e3ee,_0x1127d9[_0x5904('0x124')]()))){if(_0x3cacc7){if(_0x1127d9[_0x5904('0x160')]&&_0x1127d9[_0x5904('0x160')]['length'])continue;for(const _0x38243a of _0x1127d9[_0x5904('0x124')]())_0x3cacc7[_0x5904('0x5')](_0x38243a)||_0x3cacc7[_0x5904('0x186')](_0x38243a);_0x1127d9[_0x5904('0x148')]();}else{_0x3cacc7=_0x1127d9;for(const _0x51fb04 of _0x28e3ee)_0x1127d9['isIntersectingWithRange'](_0x51fb04)||_0x1127d9[_0x5904('0x186')](_0x51fb04);}}if(_0x3cacc7)return _0x3cacc7;_0x3e89b7[_0x5904('0x7f')]();for(const {suggestion:_0x28d221,meta:_0x5ed3b9}of this[_0x5904('0x136')](_0x28e3ee,_0x5904('0xb3')))_0x5ed3b9[_0x5904('0x81')]&&(this[_0x5904('0x167')]||!_0x5ed3b9[_0x5904('0x2c')]&&!_0x5ed3b9[_0x5904('0x1c')])&&Pt(_0x28d221,_0x593fb8)&&_0x3e89b7[_0x5904('0xdd')](_0x28d221);for(const _0x3cecbf of _0x3e89b7){const _0xd27047=_0x3cecbf[_0x5904('0x124')]();if(!_0x593fb8||!_0x593fb8[_0x5904('0x76')]){if(_0x28e3ee[_0x5904('0x1b')](_0xdd5364=>_0xd27047[_0x5904('0x157')](_0x12b7e8=>_0x12b7e8['containsRange'](_0xdd5364,!0x0))))return _0x3cecbf;}(!_0x3cecbf['attributes']||!_0x3cecbf[_0x5904('0x12c')][_0x5904('0x76')])&&(_0xd27047[_0x5904('0x1b')](_0x3b32ec=>_0x28e3ee[_0x5904('0x157')](_0x16f50e=>_0x16f50e[_0x5904('0x12e')](_0x3b32ec,!0x0)))&&_0x3cecbf['discard']());}const _0x1620f0=_0x12efea(),_0x1d63f4=_0x34996b['id'],_0x1b5f98=_0x5904('0xd')+_0x4ed86a,_0x18c409=this[_0x5904('0x147')]({'id':_0x1620f0,'type':_0x1b5f98,'createdAt':new Date(),'authorId':_0x1d63f4,'attributes':_0x593fb8});for(const _0x465b66 of _0x28e3ee)_0x465b66[_0x5904('0x6')](),_0x465b66['isCollapsed']||_0x5904('0x100')==_0x465b66['root'][_0x5904('0x116')]||this[_0x5904('0x65')](_0x1b5f98,_0x1620f0,_0x1d63f4,_0x465b66,_0x80ede4[_0x5904('0x9d')]());return _0x18c409;}['markAttributeChange'](_0x3a0f5d,_0x56150b,_0x2b5f32,_0x38f29f,_0x340afc){if(_0x3a0f5d['isCollapsed'])return[];if(_0x5904('0x177')===this[_0x5904('0x6b')])return[];const _0xe3faaf=this[_0x5904('0x185')][_0x5904('0x43')][_0x5904('0xf1')](_0x5904('0x3d'))['me']['id'],_0x11a7a5=Array[_0x5904('0x123')](this[_0x5904('0x125')][_0x5904('0xb8')]())[_0x5904('0x11d')](_0x25c66a=>'attribute'==_0x25c66a[_0x5904('0x179')]&&_0x25c66a['data']['key']==_0x56150b&&_0x25c66a['isIntersectingWithRange'](_0x3a0f5d));if(_0x5904('0xbc')===this[_0x5904('0x6b')]){const _0x1b512d=this[_0x5904('0x136')](_0x3a0f5d,_0x5904('0x85'))[_0x5904('0x11d')](({meta:_0x258ae4})=>_0x258ae4['isOwn']&&!_0x258ae4['isInsideObject']&&!_0x258ae4[_0x5904('0x75')])[_0x5904('0x3')](({suggestion:_0x3460b2})=>_0x3460b2);_0x11a7a5[_0x5904('0x15e')](..._0x1b512d);}const _0x572544=new Map([[_0x3a0f5d,_0x2b5f32]]);for(const _0x49d981 of _0x11a7a5){const _0x40f5d6=_0x5904('0x42')==_0x49d981[_0x5904('0x179')]?_0x49d981[_0x5904('0x15f')]['oldValue']:void 0x0,_0x297789=_0x49d981[_0x5904('0xf6')](),_0x1b6291=Array[_0x5904('0x123')](_0x572544[_0x5904('0xf0')]())['find'](_0x14eecb=>_0x14eecb['isIntersecting'](_0x297789));if(!_0x1b6291)continue;const _0x491210=_0x1b6291[_0x5904('0x7a')](_0x297789);this[_0x5904('0xd6')](_0x56150b)&&_0x5904('0x85')==_0x49d981['type']&&0x0!=_0x491210['length']||(_0x572544[_0x5904('0x61')](_0x1b6291),_0x491210[_0x5904('0x16b')](_0x143990=>{_0x572544[_0x5904('0xc3')](_0x143990,_0x2b5f32);}),_0x5904('0x85')!=_0x49d981[_0x5904('0x179')]&&_0x40f5d6!=_0x38f29f&&_0x572544[_0x5904('0xc3')](_0x1b6291[_0x5904('0x39')](_0x297789),_0x40f5d6));}const _0x1f1692=[];for(const [_0x569ae1,_0x4caf2d]of _0x572544){const _0x19bee0=_0x12efea(),_0x18ff95={'key':_0x56150b,'oldValue':_0x4caf2d,'newValue':_0x38f29f};_0x56150b[_0x5904('0x37')]>0x25&&console[_0x5904('0x7d')](_0x5904('0x11a'),{'key':_0x56150b});const _0x4eb12=(_0x5904('0xce')+(_0x56150b+'|'+Et({'newValue':_0x38f29f})))[_0x5904('0xb7')](0x0,0x3c),_0x13f45c=this[_0x5904('0x147')]({'id':_0x19bee0,'type':_0x4eb12,'data':_0x18ff95,'createdAt':new Date(),'authorId':_0xe3faaf,'attributes':_0x340afc});_0x1f1692[_0x5904('0x110')](_0x13f45c),this[_0x5904('0x65')](_0x4eb12,_0x19bee0,_0xe3faaf,_0x569ae1);}return _0x1f1692;}[_0x5904('0x5d')](_0x2de53e){this[_0x5904('0x52')][_0x5904('0xdd')](_0x2de53e);}[_0x5904('0x49')](_0x516b39){this[_0x5904('0x17a')][_0x5904('0xdd')](_0x516b39);}[_0x5904('0xf2')](_0x13595e,_0x787e33=[],_0x5235b8=[]){this[_0x5904('0x68')](_0x13595e,(_0x1efc5d,..._0x3cafc5)=>{this['_recordAttributeChanges'](()=>{_0x1efc5d(..._0x3cafc5);});});for(const _0x1eee87 of _0x787e33)this['_registerInlineAttribute'](_0x1eee87);for(const _0x3784a6 of _0x5235b8)this[_0x5904('0x5d')](_0x3784a6);}[_0x5904('0xe2')](_0x506114){return'attribute'==_0x506114[_0x5904('0x179')]?_0x506114[_0x5904('0x36')][_0x5904('0xc6')]('|')[0x0]:null;}['_setSuggestionRange'](_0x2f9fad,_0x2dd78e){const _0x2fb432=_0x2f9fad[_0x5904('0x115')]();this['_model']['change'](_0x4e39e8=>{_0x4e39e8['updateMarker'](_0x2fb432,{'range':_0x2dd78e});});}['_addThreadToSuggestion'](_0x312e24){const _0x515e7e=_0x312e24['id'],_0x2086e2=this[_0x5904('0x185')]['config']['get'](_0x5904('0x114'));this[_0x5904('0xb2')][_0x5904('0x187')](_0x515e7e)||this[_0x5904('0xb2')][_0x5904('0x22')]({'channelId':_0x2086e2,'threadId':_0x515e7e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5ee488=this['_commentsRepository']['getCommentThread'](_0x515e7e);_0x5ee488[_0x5904('0xc4')](_0x5904('0x19')),_0x5ee488[_0x5904('0x19')]=!0x1,_0x312e24[_0x5904('0x160')]=_0x5ee488;}[_0x5904('0x2d')](_0x39baf7,_0x4f5ae3,_0x29bc6a,_0x4f9904){if(_0x39baf7[_0x5904('0x179')]!=_0x4f5ae3||_0x39baf7[_0x5904('0x36')]!=_0x29bc6a||_0x39baf7[_0x5904('0x4a')]['id']!=_0x4f9904)throw this['editor'][_0x5904('0x165')](_0x5904('0xac')),new _0x2aea78(_0x5904('0xac'),this);}[_0x5904('0xcd')](_0x551372,_0x1f71f3){const _0x3ed49a=_0x551372[_0x5904('0xf6')]();if(_0x1f71f3[_0x5904('0x13d')](_0x3ed49a))_0x551372[_0x5904('0x148')]();else{if(_0x3ed49a['containsRange'](_0x1f71f3)){const _0x382ddd=this[_0x5904('0x1')][_0x5904('0x82')](_0x1f71f3['start'][_0x5904('0x96')],'end');this['_setSuggestionRange'](_0x551372,this['_model'][_0x5904('0x133')](_0x3ed49a['start'],_0x382ddd));const _0x7b4fc8=_0x12efea(),_0x1e2dd3=_0x551372[_0x5904('0x4a')]['id'],_0x4ef8f6=_0x551372['type']+':'+_0x551372['subType'];this[_0x5904('0x147')]({'id':_0x7b4fc8,'type':_0x4ef8f6,'createdAt':new Date(),'authorId':_0x1e2dd3,'data':_0x551372[_0x5904('0x15f')],'attributes':_0x551372[_0x5904('0x12c')]});const _0x7f8bc2=this[_0x5904('0x1')][_0x5904('0x82')](_0x1f71f3[_0x5904('0xee')][_0x5904('0x84')],_0x5904('0x107')),_0x5343eb=this[_0x5904('0x1')][_0x5904('0x133')](_0x7f8bc2,_0x3ed49a['end']);this['_addSuggestionMarker'](_0x4ef8f6,_0x7b4fc8,_0x1e2dd3,_0x5343eb);}else{if(_0x3ed49a['containsPosition'](_0x1f71f3[_0x5904('0x18')])){const _0x59bf90=this[_0x5904('0x1')][_0x5904('0x82')](_0x1f71f3[_0x5904('0x18')][_0x5904('0x96')],_0x5904('0xee'));this[_0x5904('0x10e')](_0x551372,this[_0x5904('0x1')][_0x5904('0x133')](_0x3ed49a['start'],_0x59bf90));}else{const _0x2ff3e7=this['_model']['createPositionAt'](_0x1f71f3[_0x5904('0xee')][_0x5904('0x84')],'after');this[_0x5904('0x10e')](_0x551372,this[_0x5904('0x1')]['createRange'](_0x2ff3e7,_0x3ed49a['end']));}}}}[_0x5904('0x164')](_0x1a99ff){for(const {suggestion:_0x3d56ac,meta:_0x24ea4e}of this[_0x5904('0x136')](_0x1a99ff,'insertion')){if(!_0x24ea4e[_0x5904('0x81')])continue;const _0x292d36=_0x3d56ac['getRanges']();for(const _0x4fd75f of _0x292d36)if(!_0x1a99ff['getDifference'](_0x4fd75f)[_0x5904('0x37')])return!0x0;}return!0x1;}[_0x5904('0x101')](_0x2c4b96){const _0x5936f9=this[_0x5904('0x185')][_0x5904('0x43')][_0x5904('0xf1')](_0x5904('0x3d'))[_0x5904('0x7c')](_0x2c4b96);if(!_0x5936f9)throw new _0x2aea78(_0x5904('0x9f'),this);return _0x5936f9;}['_getExternalAuthor'](_0x110aac){const _0x42d2cf=this['editor'][_0x5904('0x43')][_0x5904('0xf1')](_0x5904('0x3d')),_0x58ab05=_0x41c87c(_0x5904('0x64')+_0x110aac),_0x593c18=_0x42d2cf['getUser'](_0x58ab05);return _0x593c18||_0x42d2cf[_0x5904('0xc8')]({'id':_0x58ab05,'name':_0x110aac});}[_0x5904('0xb5')](_0x8b70ec,_0x4395c8,_0x4d9034,_0x4b00dd,_0x8309b0){const _0x4663ec=this[_0x5904('0x101')](_0x4b00dd),_0x10656b=this['_suggestionFactory'][_0x5904('0x8e')](_0x8b70ec,_0x4395c8,_0x4d9034,_0x4663ec,_0x8309b0,_0x5755ae=>{this[_0x5904('0xaf')](_0x4d9034,{'attributes':_0x5755ae});const _0x56134e=this[_0x5904('0x41')](_0x4d9034);this[_0x5904('0x48')](new Set([_0x56134e])),this[_0x5904('0x141')](new Set([_0x56134e]));});return this['listenTo'](_0x10656b,_0x5904('0xa4'),()=>{this[_0x5904('0xaf')](_0x4d9034,{'state':_0x5904('0x24')});},{'priority':_0x5904('0x95')}),this['listenTo'](_0x10656b,_0x5904('0x8b'),()=>{this[_0x5904('0xaf')](_0x4d9034,{'state':_0x5904('0x28')});},{'priority':_0x5904('0x95')}),this[_0x5904('0x125')][_0x5904('0xc3')](_0x4d9034,_0x10656b),this[_0x5904('0x15d')][_0x5904('0xc3')](_0x10656b,'notReady'),_0x10656b;}[_0x5904('0x45')](_0x1a6b21){const _0x1c5549=_0x1a6b21[_0x5904('0xc6')](':');return{'group':_0x1c5549[0x0],'type':_0x1c5549[0x1],'subType':_0x1c5549[_0x5904('0x37')]>=0x5?_0x1c5549[0x2]:null,'id':_0x1c5549[_0x5904('0x37')]<0x5?_0x1c5549[0x2]:_0x1c5549[0x3],'authorId':_0x1c5549[_0x5904('0x37')]<0x5?_0x1c5549[0x3]:_0x1c5549[0x4],'markerCount':0x6==_0x1c5549[_0x5904('0x37')]?_0x1c5549[0x5]:null};}[_0x5904('0x80')](_0x3d46e3,_0x5bf30f,_0x2b5ca7){const _0x337869=_0x3d46e3[_0x5904('0xf6')](),_0x9edfb0=_0x337869[_0x5904('0x18')],_0x16ba47=_0x337869[_0x5904('0xee')];this[_0x5904('0x10e')](_0x3d46e3,this[_0x5904('0x1')][_0x5904('0x133')](_0x9edfb0,_0x5bf30f));const _0x24cac9=_0x12efea(),_0x2b1e8e=_0x3d46e3[_0x5904('0x4a')]['id'],_0x157953=_0x3d46e3[_0x5904('0x179')]+(_0x3d46e3[_0x5904('0x36')]?':'+_0x3d46e3[_0x5904('0x36')]:'');this[_0x5904('0x147')]({'id':_0x24cac9,'type':_0x157953,'createdAt':new Date(),'authorId':_0x2b1e8e,'originalSuggestionId':_0x3d46e3['id'],'attributes':_0x3d46e3[_0x5904('0x12c')],'data':_0x3d46e3[_0x5904('0x15f')]});const _0x53e617=this['_getAttributeKey'](_0x3d46e3);(_0x5904('0x44')==_0x3d46e3['type']||_0x53e617&&this[_0x5904('0xd6')](_0x53e617))&&(_0x2b5ca7=this[_0x5904('0x1')][_0x5904('0xe3')](_0x2b5ca7[_0x5904('0x84')])),this['_addSuggestionMarker'](_0x157953,_0x24cac9,_0x2b1e8e,this[_0x5904('0x1')]['createRange'](_0x2b5ca7,_0x16ba47));}[_0x5904('0x136')](_0x5155ba,_0x56d1d0=null){const _0x4d6204=[],_0x420ab3=this[_0x5904('0x185')][_0x5904('0x43')][_0x5904('0xf1')](_0x5904('0x3d'))['me'];Array[_0x5904('0x119')](_0x5155ba)||(_0x5155ba=[_0x5155ba]);for(const _0x3dff7d of this[_0x5904('0x25')]()){if(!_0x3dff7d[_0x5904('0x161')])continue;if(_0x56d1d0&&_0x3dff7d[_0x5904('0x179')]!=_0x56d1d0)continue;let _0x312940=!0x1;for(const _0x72cf97 of _0x3dff7d[_0x5904('0x124')]()){for(const _0x38dfa2 of _0x5155ba){const _0x243881=_0x38dfa2[_0x5904('0x18')][_0x5904('0x13d')](_0x72cf97[_0x5904('0xee')])||_0x38dfa2[_0x5904('0xee')][_0x5904('0x13d')](_0x72cf97[_0x5904('0x18')]);if(_0x243881||_0x38dfa2[_0x5904('0x39')](_0x72cf97)){const _0x4a9751=_0x38dfa2[_0x5904('0x12e')](_0x72cf97)&&xt(this[_0x5904('0x1')][_0x5904('0xa9')],_0x72cf97[_0x5904('0x18')],_0x38dfa2),_0x221c3a=_0x72cf97[_0x5904('0x12e')](_0x38dfa2)&&xt(this[_0x5904('0x1')][_0x5904('0xa9')],_0x38dfa2[_0x5904('0x18')],_0x72cf97);_0x4d6204[_0x5904('0x110')]({'suggestion':_0x3dff7d,'meta':{'isOwn':_0x420ab3==_0x3dff7d['author'],'isNextTo':_0x243881,'isInsideObject':_0x4a9751,'containsRangeInObject':_0x221c3a}}),_0x312940=!0x0;break;}}if(_0x312940)break;}}return _0x4d6204;}[_0x5904('0x65')](_0x39c23c,_0x1564aa,_0x2f64c9,_0x6a084,_0x584d11){this[_0x5904('0x1')][_0x5904('0x1f')](_0x154a31=>{let _0x702a40=_0x5904('0x27')+_0x39c23c+':'+_0x1564aa+':'+_0x2f64c9;_0x584d11&&(_0x702a40=_0x702a40+':'+_0x584d11),_0x154a31[_0x5904('0x46')](_0x702a40,{'range':_0x6a084,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5904('0x12')](_0x9c50a4){const _0x30caac=_0x9c50a4[_0x5904('0x11')],_0x1379d7=_0x9c50a4['next'];_0x9c50a4[_0x5904('0x11')]=null,_0x9c50a4['next']=null,null!=_0x30caac&&_0x30caac[_0x5904('0x5c')]==_0x9c50a4&&(_0x30caac[_0x5904('0x5c')]=_0x1379d7),null!=_0x1379d7&&_0x1379d7[_0x5904('0x11')]==_0x9c50a4&&(_0x1379d7[_0x5904('0x11')]=_0x30caac),_0x5904('0x1e')==this['_suggestionState']['get'](_0x9c50a4)&&(this[_0x5904('0x15d')][_0x5904('0xc3')](_0x9c50a4,_0x5904('0xaa')),this[_0x5904('0xa0')]('suggestionUnloaded',_0x9c50a4,_0x30caac,_0x1379d7));}[_0x5904('0x147')](_0x41b802){const _0x683123=_0x41b802['id'],_0x484580=this[_0x5904('0x5e')](_0x41b802);if(this[_0x5904('0x15c')]&&this[_0x5904('0x15c')][_0x5904('0x112')]){const _0x5ef19d=this['editor'][_0x5904('0x43')][_0x5904('0xf1')](_0x5904('0xa')),_0x2221be=_0x484580[_0x5904('0x79')],_0xa2833c=_0x484580[_0x5904('0x36')]?_0x484580[_0x5904('0x179')]+':'+_0x484580[_0x5904('0x36')]:_0x484580[_0x5904('0x179')],_0x53023d=this['editor'][_0x5904('0x175')],_0x49114a=_0x5ef19d[_0x5904('0xdd')](_0x5e6b3d(_0x53023d,_0x5904('0x113'))),_0x944293={'id':_0x683123,'type':_0xa2833c,'hasComments':_0x2221be,'data':_0x41b802['data']||null,'originalSuggestionId':_0x41b802[_0x5904('0x92')]||null,'attributes':_0x484580[_0x5904('0x12c')]};this[_0x5904('0x15c')][_0x5904('0x112')](_0x944293)['then'](_0x3a080d=>{_0x484580['_saved']=!0x0,_0x5ef19d[_0x5904('0x16e')](_0x49114a),_0x3a080d&&_0x3a080d[_0x5904('0xe4')]&&(this[_0x5904('0x125')][_0x5904('0xf1')](_0x683123)[_0x5904('0xe4')]=_0x3a080d['createdAt']);})[_0x5904('0xb0')](_0x338842=>{throw _0x54efba(_0x5904('0xd1')),this['editor'][_0x5904('0xea')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x484580['discard']();}),_0x484580[_0x5904('0xa7')](),this[_0x5904('0x125')]['delete'](_0x484580['id']),this[_0x5904('0x15d')][_0x5904('0x61')](_0x484580),_0x338842;});}return _0x484580;}[_0x5904('0xd6')](_0xea8aa1){return this[_0x5904('0x52')][_0x5904('0x13c')](_0xea8aa1);}['_updateSuggestionData'](_0x3a0128,_0x45b1ab){const _0x262c86=this['editor'][_0x5904('0x43')][_0x5904('0xf1')]('PendingActions'),_0x35bd58=this[_0x5904('0x41')](_0x3a0128);if(this[_0x5904('0x15c')]&&this['_adapter'][_0x5904('0x171')]){if(_0x35bd58[_0x5904('0x12f')]){const _0x1a7f56=_0x262c86[_0x5904('0xdd')](_0x5e6b3d(this[_0x5904('0x185')][_0x5904('0x175')],_0x5904('0x113')));this['_adapter']['updateSuggestion'](_0x3a0128,_0x45b1ab)[_0x5904('0x151')](()=>{_0x262c86[_0x5904('0x16e')](_0x1a7f56);});}else _0x35bd58['on'](_0x5904('0x8'),()=>{this[_0x5904('0xaf')](_0x3a0128,_0x45b1ab);});}}['_getSuggestionData'](_0x1ba34c){if(!this[_0x5904('0x15c')]||!this[_0x5904('0x15c')]['getSuggestion'])throw new _0x2aea78(_0x5904('0x159'),this);return this['_adapter'][_0x5904('0x41')](_0x1ba34c);}[_0x5904('0x53')](_0xf60af2){const {id:_0x157e06,type:_0x56d5f6,subType:_0x591e8d,authorId:_0x423709}=this[_0x5904('0x45')](_0xf60af2),_0x45c794=this[_0x5904('0x125')]['get'](_0x157e06)||this['_createSuggestion'](_0x56d5f6,_0x591e8d,_0x157e06,_0x423709,{});switch(this['_checkSuggestionCorrectness'](_0x45c794,_0x56d5f6,_0x591e8d,_0x423709),this[_0x5904('0x15d')][_0x5904('0xf1')](_0x45c794)){case'notReady':this[_0x5904('0x130')](_0x157e06)['then'](_0x549159=>{let _0x6f7aec=Promise[_0x5904('0x94')]();_0x549159[_0x5904('0x79')]&&(_0x6f7aec=this['_commentsRepository'][_0x5904('0x118')]({'channelId':this[_0x5904('0x185')][_0x5904('0x111')]['get'](_0x5904('0x114')),'threadId':_0x157e06})),_0x6f7aec[_0x5904('0x151')](()=>{this[_0x5904('0x5e')](_0x549159)['_saved']=!0x0;});}),this[_0x5904('0x15d')][_0x5904('0xc3')](_0x45c794,'markerReady');break;case _0x5904('0xaa'):this[_0x5904('0xaf')](_0x157e06,{'state':_0x5904('0xf4')});case _0x5904('0xe5'):this[_0x5904('0x15d')]['set'](_0x45c794,_0x5904('0x1e')),this[_0x5904('0xa0')]('suggestionLoaded',_0x45c794);break;case'ready':this[_0x5904('0xa0')](_0x5904('0x10d'),_0x45c794);}return _0x45c794['addMarkerName'](_0xf60af2),_0x45c794;}[_0x5904('0x141')](_0x2757bc){const _0x3eabb1=Array[_0x5904('0x123')](_0x2757bc),_0x1480e4=_0x3eabb1['filter'](_0x37e695=>_0x5904('0x42')==_0x37e695['type']);this[_0x5904('0xb6')](_0x1480e4);const _0x29010e=_0x3eabb1[_0x5904('0x11d')](_0x3f7a20=>!_0x3f7a20['isMultiRange']&&_0x5904('0x42')!=_0x3f7a20[_0x5904('0x179')]),_0x30f8d2=this[_0x5904('0x25')]({'skipNotAttached':!0x0})[_0x5904('0x11d')](_0x50f247=>!_0x50f247[_0x5904('0x152')]&&_0x5904('0x42')!=_0x50f247['type']),_0x3e2bad=_0x30f8d2['filter'](_0x1e257d=>!_0x2757bc[_0x5904('0x13c')](_0x1e257d)),_0x3a1d69=new Map(_0x30f8d2['map'](_0x81ad39=>[_0x81ad39,this['_suggestionFactory'][_0x5904('0xf8')](_0x81ad39[_0x5904('0x179')],_0x81ad39['subType'],_0x5904('0x13a'))])),_0x4fc50a=new Map(_0x30f8d2[_0x5904('0x3')](_0x5be004=>[_0x5be004,_0x5be004[_0x5904('0xf6')]()])),_0x1bbe75=new Set(),_0x4618ef=new Set();for(let _0x32b47f=0x0;_0x32b47f<_0x29010e['length'];_0x32b47f++)_0x5e1243(_0x29010e[_0x32b47f],_0x29010e,_0x32b47f+0x1);for(let _0x58b3fa=0x0;_0x58b3fa<_0x29010e[_0x5904('0x37')];_0x58b3fa++)_0x5e1243(_0x29010e[_0x58b3fa],_0x3e2bad,0x0);const _0x494721=new Set();for(let _0x3cc3c9=0x0;_0x3cc3c9<_0x29010e[_0x5904('0x37')];_0x3cc3c9++){const _0x55f45c=_0x29010e[_0x3cc3c9];!_0x4618ef[_0x5904('0x13c')](_0x55f45c)&&_0x55f45c[_0x5904('0x11')]&&(_0x494721['add'](_0x55f45c[_0x5904('0x11')]),_0x55f45c['previous'][_0x5904('0x5c')]===_0x55f45c&&(_0x55f45c[_0x5904('0x11')][_0x5904('0x5c')]=null),_0x55f45c[_0x5904('0x11')]=null),!_0x1bbe75[_0x5904('0x13c')](_0x55f45c)&&_0x55f45c[_0x5904('0x5c')]&&(_0x494721['add'](_0x55f45c[_0x5904('0x5c')]),_0x55f45c[_0x5904('0x5c')][_0x5904('0x11')]===_0x55f45c&&(_0x55f45c[_0x5904('0x5c')][_0x5904('0x11')]=null),_0x55f45c[_0x5904('0x5c')]=null);}function _0x5e1243(_0x33f21e,_0x70ffb0,_0x3f7d91){for(let _0x19c748=_0x3f7d91;_0x19c748<_0x70ffb0[_0x5904('0x37')];_0x19c748++){const _0x1bbded=_0xa83f7(_0x33f21e,_0x70ffb0[_0x19c748]);_0x1bbded&&(_0x1bbded[0x0]['next']=_0x1bbded[0x1],_0x1bbded[0x1][_0x5904('0x11')]=_0x1bbded[0x0],_0x1bbe75[_0x5904('0xdd')](_0x1bbded[0x0]),_0x4618ef[_0x5904('0xdd')](_0x1bbded[0x1]));}}function _0xa83f7(_0x4dc961,_0x1b44dc){if(_0x4dc961[_0x5904('0xef')]['id']!==_0x1b44dc[_0x5904('0xef')]['id'])return null;const _0xf160e3=_0x3a1d69[_0x5904('0xf1')](_0x4dc961)(_0x4dc961,_0x1b44dc,_0x4fc50a['get'](_0x4dc961),_0x4fc50a[_0x5904('0xf1')](_0x1b44dc));if(!_0xf160e3)return null;return _0x3a1d69[_0x5904('0xf1')](_0x1b44dc)(_0x4dc961,_0x1b44dc,_0x4fc50a['get'](_0x4dc961),_0x4fc50a[_0x5904('0xf1')](_0x1b44dc))?_0xf160e3[0x1][_0x5904('0x160')]&&_0xf160e3[0x1]['commentThread'][_0x5904('0x37')]?null:_0xf160e3:null;}_0x494721['size']&&this[_0x5904('0x141')](_0x494721);}['_refreshAttributeSuggestionsChain'](_0x160176){if(0x0==_0x160176[_0x5904('0x37')])return;const _0x4d9b70=this[_0x5904('0x25')]({'skipNotAttached':!0x0})[_0x5904('0x11d')](_0x3babf7=>'attribute'==_0x3babf7['type']&&_0x3babf7[_0x5904('0x180')]),_0x48372b=[],_0x50d0f8=new Map();for(const _0x5c873b of _0x4d9b70){const _0x1f2833=_0x41c87c(_0x5c873b['attributes']);_0x50d0f8[_0x5904('0x13c')](_0x1f2833)||(_0x50d0f8['set'](_0x1f2833,_0x48372b['length']),_0x48372b[_0x5904('0x110')]([]));const _0x8fad3d=_0x50d0f8[_0x5904('0xf1')](_0x1f2833);_0x48372b[_0x8fad3d]['push'](_0x5c873b);}!function(){_0x48372b['sort']((_0x39a8c2,_0x19078c)=>{const _0xd24d2b=_0x39a8c2[0x0][_0x5904('0xe4')],_0x5e21af=_0x19078c[0x0][_0x5904('0xe4')];return _0xd24d2b==_0x5e21af?_0x39a8c2[0x0][_0x5904('0x12c')][_0x5904('0x102')]<_0x19078c[0x0][_0x5904('0x12c')]['groupId']?-0x1:0x1:_0xd24d2b<_0x5e21af?-0x1:0x1;});for(const _0x1ac596 of _0x48372b)_0x1ac596[_0x5904('0x17b')]((_0x34646a,_0x1b3e61)=>_0x34646a['id']<_0x1b3e61['id']?-0x1:0x1);}();for(let _0x11434d=0x0;_0x11434d<_0x48372b[_0x5904('0x37')];_0x11434d++){if(0x0==_0x48372b[_0x11434d]['length'])continue;const _0x50be60=[];for(let _0x29db61=_0x11434d+0x1;_0x29db61<_0x48372b['length'];_0x29db61++)0x0!=_0x48372b[_0x29db61][_0x5904('0x37')]&&_0x4be480(_0x48372b[_0x11434d],_0x48372b[_0x29db61])&&_0x50be60['push'](_0x29db61);for(const _0xa91e90 of _0x50be60)_0x48372b[_0x11434d]=_0x48372b[_0x11434d]['concat'](_0x48372b[_0xa91e90]),_0x48372b[_0xa91e90]=[];}for(const _0x226b84 of _0x48372b)for(let _0x2b5203=0x0;_0x2b5203<_0x226b84[_0x5904('0x37')];_0x2b5203++)_0x226b84[_0x2b5203][_0x5904('0x5c')]=_0x226b84[_0x2b5203+0x1]||null;for(const _0x5f5b6b of _0x48372b)for(let _0x592176=0x0;_0x592176<_0x5f5b6b[_0x5904('0x37')];_0x592176++)_0x5f5b6b[_0x592176][_0x5904('0x11')]=_0x5f5b6b[_0x592176-0x1]||null;function _0x4be480(_0x58ae1b,_0x332397){if(_0x58ae1b[0x0][_0x5904('0x12c')][_0x5904('0x102')]!==_0x332397[0x0][_0x5904('0x12c')][_0x5904('0x102')]&&_0x58ae1b[0x0][_0x5904('0xef')]!==_0x332397[0x0][_0x5904('0xef')])return!0x1;if(!function(_0x49ca55,_0x56d593){if(!_0x49ca55['hasComments']&&!_0x56d593[_0x5904('0x79')])return!0x0;if(_0x49ca55['hasComments']&&_0x56d593[_0x5904('0x79')])return!0x1;if(_0x49ca55[_0x5904('0x79')]&&_0x56d593[_0x5904('0xe4')]<_0x49ca55['commentThread'][_0x5904('0xa6')]['get'](0x0)[_0x5904('0xe4')])return!0x0;if(_0x56d593['hasComments']&&_0x49ca55['createdAt']<_0x56d593[_0x5904('0x160')][_0x5904('0xa6')]['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x58ae1b[0x0],_0x332397[0x0]))return!0x1;const _0x1c31e0=_0xed44df(_0x58ae1b[0x0]['attributes'],_0x5904('0x102')),_0x4e541e=_0xed44df(_0x332397[0x0]['attributes'],_0x5904('0x102'));if(!_0x35c4e3(_0x1c31e0,_0x4e541e))return!0x1;return!!_0x58ae1b['every'](_0x3af897=>_0x332397[_0x5904('0x157')](_0x1f5449=>_0x3af897[_0x5904('0xf6')]()[_0x5904('0x13d')](_0x1f5449[_0x5904('0xf6')]())))&&_0x332397[_0x5904('0x1b')](_0x1f8838=>_0x58ae1b['some'](_0x12afbc=>_0x1f8838[_0x5904('0xf6')]()[_0x5904('0x13d')](_0x12afbc[_0x5904('0xf6')]())));}}['_joinWithAdjacentSuggestions'](_0xd3992f){const _0x36e250=Array[_0x5904('0x123')](_0xd3992f),_0x545bf0=this[_0x5904('0x25')]({'skipNotAttached':!0x0}),_0xa854c8=_0x545bf0[_0x5904('0x11d')](_0x4073ca=>!_0xd3992f['has'](_0x4073ca)),_0x3bfd63=new Map(_0x36e250[_0x5904('0x3')](_0x4ccbf5=>[_0x4ccbf5,this[_0x5904('0xfd')][_0x5904('0xf8')](_0x4ccbf5['type'],_0x4ccbf5[_0x5904('0x36')],_0x5904('0x109'))])),_0x13c0d4=new Map(_0x545bf0[_0x5904('0x3')](_0x4fabb4=>[_0x4fabb4,_0x4fabb4[_0x5904('0x124')]()]));for(let _0x457270=0x0;_0x457270<_0x36e250[_0x5904('0x37')];_0x457270++){if(_0x198dc5(this,_0x36e250[_0x457270],_0x36e250,_0x457270+0x1))return!0x0;}for(let _0x5b0643=0x0;_0x5b0643<_0x36e250[_0x5904('0x37')];_0x5b0643++){if(_0x198dc5(this,_0x36e250[_0x5b0643],_0xa854c8,0x0))return!0x0;}return!0x1;function _0x198dc5(_0xf0bb0a,_0x2c4bc9,_0x3ef693,_0x16ca1c){for(let _0x5c8168=_0x16ca1c;_0x5c8168<_0x3ef693['length'];_0x5c8168++){const _0x5230e8=_0x3ef693[_0x5c8168];if(_0x5230e8['type']!==_0x2c4bc9[_0x5904('0x179')]||_0x5230e8['author']['id']!==_0x2c4bc9[_0x5904('0xef')]['id']||_0x5230e8[_0x5904('0x36')]!==_0x2c4bc9[_0x5904('0x36')])continue;if(!Ft(_0x2c4bc9,_0x5230e8,[_0x5904('0x102')]))continue;if('attribute'==_0x2c4bc9['type']&&_0x2c4bc9[_0x5904('0x15f')]['oldValue']!=_0x5230e8[_0x5904('0x15f')]['oldValue'])continue;if(_0x5904('0x42')==_0x2c4bc9[_0x5904('0x179')]&&_0xf0bb0a[_0x5904('0xd6')](_0x2c4bc9[_0x5904('0x15f')][_0x5904('0x13f')]))continue;if(_0x5904('0x44')==_0x2c4bc9[_0x5904('0x179')]){const _0x1f0a33=_0xf0bb0a['editor']['model'],_0x467985=_0x2c4bc9[_0x5904('0x188')]();if(_0x467985&&(_0x1f0a33[_0x5904('0xa9')][_0x5904('0xbb')](_0x467985)||_0x1f0a33[_0x5904('0xa9')][_0x5904('0x11f')](_0x467985)))continue;}const _0x1cedd5=_0x3bfd63[_0x5904('0xf1')](_0x2c4bc9),_0x40e72c=_0x13c0d4['get'](_0x2c4bc9),_0x2e302b=_0x13c0d4[_0x5904('0xf1')](_0x5230e8),_0x139565=_0x2c4bc9[_0x5904('0x160')]&&_0x2c4bc9['commentThread']['length'],_0x35eeab=_0x5230e8['commentThread']&&_0x5230e8[_0x5904('0x160')][_0x5904('0x37')];if(!_0x139565&&_0x1cedd5(_0x2e302b,_0x40e72c))return _0xf0bb0a[_0x5904('0x6d')](_0x5230e8,_0x2c4bc9),_0x13c0d4[_0x5904('0x61')](_0x2c4bc9),!0x0;if(!_0x35eeab&&_0x1cedd5(_0x40e72c,_0x2e302b))return _0xf0bb0a[_0x5904('0x6d')](_0x2c4bc9,_0x5230e8),_0x13c0d4[_0x5904('0x61')](_0x5230e8),!0x0;}return!0x1;}}[_0x5904('0x6d')](_0x550764,_0x360ea4){if(_0x550764[_0x5904('0x152')])for(const _0x379987 of _0x360ea4[_0x5904('0x124')]())_0x550764[_0x5904('0x186')](_0x379987);else{const _0x50e4b4=_0x360ea4[_0x5904('0xf6')]()[_0x5904('0xee')];this[_0x5904('0x10e')](_0x550764,this[_0x5904('0x1')][_0x5904('0x133')](_0x550764[_0x5904('0xf6')]()[_0x5904('0x18')],_0x50e4b4));}_0x360ea4['removeMarkers']();}[_0x5904('0xe6')](_0x27d7b3,_0x5be5bb){const _0x4defa3=_0x27d7b3[_0x5904('0x57')](_0x5904('0xf'))||_0x27d7b3[_0x5904('0x57')](_0x5904('0x42'))?_0x5904('0x3e'):_0x27d7b3[_0x5904('0xdc')]();return _0x5e6b3d(this[_0x5904('0x185')]['locale'],_0x5be5bb+'_'+_0x4defa3+_0x5904('0xb1'));}['_initAriaMarkerChangeAnnouncements'](){const _0x450e9a=this[_0x5904('0x185')];_0x57e753(this[_0x5904('0x1')],({left:_0x41686b,entered:_0x131d0a})=>{const _0x31d670=[];for(const _0x26762e of _0x41686b){const {group:_0x2b6874,type:_0x3bd53f}=this['_splitMarkerName'](_0x26762e[_0x5904('0x150')]);if(_0x5904('0x1d')===_0x2b6874){_0x31d670[_0x5904('0x110')](this[_0x5904('0xe6')](_0x3bd53f,_0x5904('0x10')));break;}}for(const _0x4c5f72 of _0x131d0a){const {group:_0xc51c73,type:_0xf91afe}=this[_0x5904('0x45')](_0x4c5f72[_0x5904('0x150')]);if(_0x5904('0x1d')===_0xc51c73){_0x31d670['push'](this[_0x5904('0xe6')](_0xf91afe,'ENTER'));break;}}_0x31d670['length']&&_0x450e9a['ui'][_0x5904('0x10f')][_0x5904('0x176')](_0x5904('0x7'),_0x31d670[_0x5904('0x109')]('\x20'));});}[_0x5904('0xad')](_0x222ee){if(this[_0x5904('0xec')])return!0x1;const _0x49d536=this[_0x5904('0x185')],_0x4b6512=_0x49d536[_0x5904('0xea')][_0x5904('0xa2')][_0x5904('0x2e')][_0x5904('0xd3')]();if(0x0==_0x4b6512['length'])return!0x1;const _0x2d6b30=[],_0x344afa=_0x4b6512['filter'](_0x4ab667=>_0x5904('0x42')==_0x4ab667[_0x5904('0x179')]),_0x1194e7=_0x4b6512[_0x5904('0x11d')](_0x347813=>_0x5904('0x7b')==_0x347813['type']&&_0x5904('0x4f')!=_0x347813[_0x5904('0x150')]),_0x12afcf=_0x4b6512[_0x5904('0x11d')](_0x4899dd=>'remove'==_0x4899dd[_0x5904('0x179')]&&'$text'!=_0x4899dd['name']);for(const _0x83cf8a of _0x344afa)_0x2d6b30[_0x5904('0x110')]({'key':_0x83cf8a[_0x5904('0xf3')],'newValue':_0x83cf8a[_0x5904('0x63')],'oldValue':_0x83cf8a['attributeOldValue'],'range':Ut(_0x83cf8a[_0x5904('0x4e')],_0x49d536[_0x5904('0xea')])});for(const _0x41e655 of _0x1194e7){const _0x12b8da=_0x12afcf['find'](_0x4b670c=>_0x4b670c[_0x5904('0x72')][_0x5904('0x13d')](_0x41e655[_0x5904('0x72')]));_0x12b8da&&_0x2d6b30[_0x5904('0x110')]({'key':_0x5904('0xcf'),'newValue':_0x41e655[_0x5904('0x150')],'oldValue':_0x12b8da[_0x5904('0x150')],'range':_0x49d536[_0x5904('0xea')][_0x5904('0xca')](_0x41e655[_0x5904('0x72')][_0x5904('0x60')])});}return 0x0!=_0x2d6b30[_0x5904('0x37')]&&this[_0x5904('0x170')](_0x222ee,_0x2d6b30);}[_0x5904('0x77')](_0x525695){let _0x4cc29e=!0x1;const _0x44ad90=this[_0x5904('0x185')]['model'][_0x5904('0xa2')]['differ'][_0x5904('0x15a')]()[_0x5904('0x11d')](_0x9102ff=>_0x9102ff['data'][_0x5904('0x56')]&&_0x9102ff[_0x5904('0x150')]['startsWith'](_0x5904('0x105')));for(const _0x3fdaeb of _0x44ad90){const {subType:_0x24bfc3,id:_0x2be4e2}=this[_0x5904('0x45')](_0x3fdaeb[_0x5904('0x150')]),_0x26336e=_0x24bfc3[_0x5904('0xc6')]('|')[0x0];for(const _0x58f8ed of this['getSuggestions']({'skipNotAttached':!0x0}))_0x58f8ed['id']!=_0x2be4e2&&'attribute'==_0x58f8ed[_0x5904('0x179')]&&_0x58f8ed[_0x5904('0x15f')]&&_0x58f8ed[_0x5904('0x15f')]['key']==_0x26336e&&_0x58f8ed[_0x5904('0xf6')]()[_0x5904('0xbd')](_0x3fdaeb[_0x5904('0x15f')][_0x5904('0x56')])&&(this[_0x5904('0x4b')](_0x58f8ed,_0x3fdaeb[_0x5904('0x15f')][_0x5904('0x56')],_0x525695),_0x4cc29e=!0x0);}return _0x4cc29e;}[_0x5904('0x5f')](_0xc0a6fb){this[_0x5904('0x185')],(this['_recordAttributeSuggestions']=!0x0,_0xc0a6fb());}[_0x5904('0x5b')](_0x335535){const _0x2ef017=this[_0x5904('0xd6')](_0x335535),_0x50b81e=this[_0x5904('0x17a')][_0x5904('0x13c')](_0x335535);return _0x2ef017||_0x50b81e;}[_0x5904('0x170')](_0xcb8d74,_0x349dc1){if(0x0==_0x349dc1[_0x5904('0x37')])return!0x1;let _0x856f31=!0x1;for(const _0x960ff1 of _0x349dc1){const _0x1ceb3b=this[_0x5904('0x136')](_0x960ff1['range'],_0x5904('0x42'))[_0x5904('0x11d')](_0x358daa=>!_0x358daa[_0x5904('0xc7')][_0x5904('0x75')])[_0x5904('0x3')](_0x134671=>_0x134671[_0x5904('0x1d')]),_0x59ee38=_0x41c87c({'newValue':_0x960ff1[_0x5904('0x11b')]});_0x1ceb3b[_0x5904('0x11d')](_0x109550=>{const [_0x5a5ccf,_0x2d41a4]=_0x109550[_0x5904('0x36')][_0x5904('0xc6')]('|');return _0x5a5ccf==_0x960ff1[_0x5904('0x13f')]&&_0x2d41a4!=_0x59ee38;})[_0x5904('0x16b')](_0x145d85=>{this[_0x5904('0x4b')](_0x145d85,_0x960ff1[_0x5904('0x4e')],_0xcb8d74),_0x856f31=!0x0;});}return _0x856f31;}['_reduceSuggestionAttributeRange'](_0x584e12,_0x533e18,_0x37b7a8){const _0x45e8e2=_0x584e12[_0x5904('0xf6')]()[_0x5904('0x7a')](_0x533e18);0x0!==_0x45e8e2['length']?0x1!==_0x45e8e2['length']?this[_0x5904('0x80')](_0x584e12,_0x533e18['start'],_0x533e18[_0x5904('0xee')]):this[_0x5904('0x10e')](_0x584e12,_0x45e8e2[0x0]):_0x37b7a8[_0x5904('0x103')](_0x584e12[_0x5904('0x115')]());}}class Bt{constructor(_0x16b920){this[_0x5904('0x3b')]=_0x16b920,this['_model']=_0x16b920[_0x5904('0xea')],this[_0x5904('0xcb')]=new Map(),this[_0x5904('0x15b')]=new Map(),this['_registerDefaultCallbacks']();}[_0x5904('0x8e')](_0x9a63e0,_0x34e981,_0x41c57b,_0x4df6b0,_0x3cfdbe,_0x2bbc0f){return new _0x80ede4(this[_0x5904('0x1')],{'type':_0x9a63e0,'subType':_0x34e981,'id':_0x41c57b,'author':_0x4df6b0,'creator':_0x4df6b0,'attributes':_0x3cfdbe,'onAttributesChange':_0x2bbc0f,'onAccept':(..._0x44e1a6)=>this[_0x5904('0xf8')](_0x9a63e0,_0x34e981,'accept')(..._0x44e1a6),'onDiscard':(..._0xbc098b)=>this[_0x5904('0xf8')](_0x9a63e0,_0x34e981,_0x5904('0x8b'))(..._0xbc098b)});}[_0x5904('0x87')](_0x537599,_0x30989e,_0x36524d,_0x7e577a){const _0x4862ff=_0x537599+':'+_0x30989e+':'+_0x36524d;this[_0x5904('0xcb')]['set'](_0x4862ff,_0x7e577a);}[_0x5904('0xf8')](_0x376245,_0x3e909c,_0x4ffe99){const _0x38ec0b=_0x376245+':'+_0x3e909c+':'+_0x4ffe99;return this[_0x5904('0xcb')][_0x5904('0xf1')](_0x38ec0b)||this['_defaultCallbacks']['get'](_0x376245+':'+_0x4ffe99);}[_0x5904('0x132')](){const _0xa427e3=()=>!0x1,_0x22139f=_0x463297=>{_0x463297[_0x5904('0x17b')]((_0x1b2af2,_0x160936)=>_0x1b2af2[_0x5904('0x18')]['isBefore'](_0x160936[_0x5904('0x18')])?0x1:-0x1),this[_0x5904('0x1')][_0x5904('0x1f')](_0x3f2f39=>{for(const _0x4aac35 of _0x463297){let _0x21eb9d;_0x21eb9d=_0x4aac35[_0x5904('0xee')][_0x5904('0x128')]&&_0x4aac35[_0x5904('0xee')][_0x5904('0x84')]==_0x4aac35['start']['nodeAfter']?_0x3f2f39[_0x5904('0xc1')](_0x4aac35[_0x5904('0x18')]['nodeAfter'],'on'):_0x3f2f39[_0x5904('0xc1')](_0x4aac35),this[_0x5904('0x1')]['deleteContent'](_0x21eb9d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1a19d0=(_0x5f23ba,_0x828b25)=>{_0x828b25&&this['_model'][_0x5904('0x1f')](_0x4892dd=>{const {commandName:_0x54b383,commandParams:_0x5f04fc=[]}=_0x828b25,_0x2ac6c9=_0x5f23ba[_0x5904('0x3')](_0x28d94a=>(Rt(_0x28d94a)&&(_0x28d94a=this[_0x5904('0x1')]['createRange'](_0x28d94a['end'])),_0x28d94a))[_0x5904('0x11d')](_0x482aac=>_0x5904('0x100')!==_0x482aac['root'][_0x5904('0x116')]);if(_0x2ac6c9[_0x5904('0x37')]<0x1)return;const _0x332e24=Array[_0x5904('0x123')](this['_model']['document'][_0x5904('0x17d')][_0x5904('0x124')]())[_0x5904('0x3')](_0x20a447=>_0x3da7f8[_0x5904('0x66')](_0x20a447));_0x4892dd[_0x5904('0x7e')](_0x2ac6c9);for(const _0x3eb36d of this['_editor']['commands'][_0x5904('0x172')]())_0x3eb36d[_0x5904('0x14b')]();_0x5f04fc['push']({'forceDefaultExecution':!0x0}),this[_0x5904('0x3b')]['execute'](_0x54b383,..._0x5f04fc);const _0xfbae73=_0x332e24[_0x5904('0x11d')](_0xd41a40=>'$graveyard'!=_0xd41a40[_0x5904('0x10b')][_0x5904('0x116')]);_0xfbae73['length']>0x0&&_0x4892dd[_0x5904('0x7e')](_0xfbae73);for(const _0x545e69 of _0x332e24)_0x545e69[_0x5904('0x6')]();});},_0x4b45bb=(_0x1053c1,_0x12b0c1)=>0x1==_0x1053c1[_0x5904('0x37')]&&0x1==_0x12b0c1[_0x5904('0x37')]&&_0x1053c1[0x0][_0x5904('0xee')]['isEqual'](_0x12b0c1[0x0][_0x5904('0x18')]),_0x439076=(_0x5cd442,_0x2904ca,_0x157b58,_0x5689b1)=>Gt(_0x5cd442,_0x2904ca,_0x157b58,_0x5689b1,this['_model'])?[_0x5cd442,_0x2904ca]:Gt(_0x2904ca,_0x5cd442,_0x5689b1,_0x157b58,this[_0x5904('0x1')])?[_0x2904ca,_0x5cd442]:null;this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0x99'),_0xa427e3),this[_0x5904('0x15b')]['set'](_0x5904('0x121'),_0x22139f),this[_0x5904('0x15b')][_0x5904('0xc3')]('insertion:join',_0x4b45bb),this[_0x5904('0x15b')][_0x5904('0xc3')]('insertion:chain',_0x439076),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0x108'),_0x22139f),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0x13e'),_0xa427e3),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0x13'),_0x4b45bb),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0x16d'),_0x439076),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0x59'),_0x1a19d0),this[_0x5904('0x15b')]['set'](_0x5904('0x1a'),_0xa427e3),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0xe8'),_0x4b45bb),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0x154'),_0xa427e3),this[_0x5904('0x15b')]['set'](_0x5904('0x8d'),_0x1a19d0),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0xeb'),_0xa427e3),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0xa1'),_0x4b45bb),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0x10a'),_0xa427e3),this[_0x5904('0x15b')]['set'](_0x5904('0x142'),_0xa427e3),this[_0x5904('0x15b')][_0x5904('0xc3')](_0x5904('0x14f'),(_0x1a21b5,_0xaa7b9b)=>{if(!_0xaa7b9b)return;const _0xce7357=this[_0x5904('0x3b')]['plugins'][_0x5904('0xf1')](p);this['_model'][_0x5904('0x1f')](_0x43e263=>{if('$elementName'==_0xaa7b9b[_0x5904('0x13f')])for(const _0x3fbeea of _0x1a21b5){const _0x150e66=_0x3fbeea[_0x5904('0x18')][_0x5904('0x60')],_0x348f40=_0xaa7b9b[_0x5904('0x74')];_0x43e263[_0x5904('0x55')](_0x150e66,_0x348f40);}else{if(_0xce7357[_0x5904('0xd6')](_0xaa7b9b[_0x5904('0x13f')]))for(const _0x5b60ee of _0x1a21b5)void 0x0!==_0xaa7b9b['oldValue']?_0x43e263['setAttribute'](_0xaa7b9b[_0x5904('0x13f')],_0xaa7b9b[_0x5904('0x74')],_0x5b60ee[_0x5904('0x18')]['nodeAfter']):_0x43e263[_0x5904('0x26')](_0xaa7b9b[_0x5904('0x13f')],_0x5b60ee[_0x5904('0x18')][_0x5904('0x60')]);else for(const _0x234fca of _0x1a21b5)_0xaa7b9b[_0x5904('0x74')]?_0x43e263['setAttribute'](_0xaa7b9b['key'],_0xaa7b9b[_0x5904('0x74')],_0x234fca):_0x43e263[_0x5904('0x26')](_0xaa7b9b[_0x5904('0x13f')],_0x234fca);}});}),this[_0x5904('0x15b')][_0x5904('0xc3')]('attribute:join',_0x4b45bb);}}function xt(_0x4e671c,_0x5690c4,_0xf5b393){for(const _0x3614f3 of _0x5690c4[_0x5904('0x84')][_0x5904('0xdf')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3614f3[_0x5904('0x10b')]==_0x3614f3)return!0x1;if(!_0xf5b393[_0x5904('0x8c')](_0x3614f3))return!0x1;if(_0x4e671c[_0x5904('0xbb')](_0x3614f3)||_0x4e671c['isLimit'](_0x3614f3))return!0x0;}return!0x1;}function Rt(_0x412f97){return _0x412f97['end']['parent']==_0x412f97['start'][_0x5904('0x60')]&&_0x412f97['end'][_0x5904('0x146')];}function Tt(_0x7466b7,_0x1f06f6,_0x2c605e,_0x5d8f30){const _0x20c35c=_0x2fa473=>!_0x2fa473[_0x5904('0x9b')]['is'](_0x5904('0xb4'))&&!_0x5d8f30[_0x5904('0xbb')](_0x2fa473['item']),_0x2e05f3=_0x7466b7[_0x5904('0x18')][_0x5904('0x88')](_0x20c35c),_0x51e2=_0x7466b7[_0x5904('0xee')][_0x5904('0x88')](_0x20c35c,{'direction':_0x5904('0x12d')});return(!_0x7466b7[_0x5904('0x18')][_0x5904('0x13d')](_0x2e05f3)||!_0x7466b7['end'][_0x5904('0x13d')](_0x51e2))&&(_0x2e05f3['isBefore'](_0x51e2)?_0x2c605e['updateMarker'](_0x1f06f6,{'range':_0x2c605e[_0x5904('0x133')](_0x2e05f3,_0x51e2)}):_0x2c605e[_0x5904('0x103')](_0x1f06f6),!0x0);}function Et(_0x112675){return _0x41c87c(_0x112675);}function Vt(_0x4db02c){const _0x42f484=_0x4db02c[_0x5904('0x18')][_0x5904('0x60')];return _0x42f484&&_0x42f484['is'](_0x5904('0x9c'));}function Ut(_0x19fb30,_0x59681c){return null==_0x19fb30[_0x5904('0xee')][_0x5904('0x96')]&&_0x19fb30[_0x5904('0xee')]['parent']==_0x19fb30[_0x5904('0x18')][_0x5904('0x60')]?Ot(_0x19fb30[_0x5904('0x18')][_0x5904('0x60')],_0x59681c):_0x19fb30;}function Ot(_0x38ffa5,_0x264575){const _0x357cc8=_0x264575[_0x5904('0xa9')][_0x5904('0xbb')](_0x38ffa5)||_0x264575[_0x5904('0xa9')][_0x5904('0x78')](_0x38ffa5);return _0x264575[_0x5904('0x133')](_0x264575[_0x5904('0x82')](_0x38ffa5,_0x5904('0x16a')),_0x357cc8?_0x264575[_0x5904('0x183')](_0x38ffa5):_0x264575[_0x5904('0x82')](_0x38ffa5,_0x5904('0xee')));}function Gt(_0x1532a9,_0x3adae6,_0x4c6cbb,_0x4abc93,_0x588677){if(!Ft(_0x1532a9,_0x3adae6))return!0x1;if(_0x4c6cbb[_0x5904('0xee')][_0x5904('0x13d')](_0x4abc93['start']))return!0x0;if(_0x1532a9[_0x5904('0x179')]!=_0x3adae6[_0x5904('0x179')])return!0x1;if(!_0x4c6cbb[_0x5904('0xee')][_0x5904('0x166')](_0x4abc93['start']))return!0x1;const _0xc9cb98=_0x588677['createRange'](_0x4c6cbb[_0x5904('0xee')],_0x4abc93[_0x5904('0x18')])[_0x5904('0xed')]();for(const _0x2fab5a of _0xc9cb98)if([_0x5904('0x2f'),_0x5904('0x6c')][_0x5904('0x14c')](_0x2fab5a[_0x5904('0x179')])&&_0x588677[_0x5904('0xa9')][_0x5904('0x11f')](_0x2fab5a[_0x5904('0x9b')]))return!0x1;return!0x0;}function Ft(_0x3404b2,_0x17cd01,_0x2dfe99=[]){return!(!_0x3404b2['_isDataLoaded']||!_0x17cd01[_0x5904('0x180')])&&_0x35c4e3(_0xed44df(_0x3404b2[_0x5904('0x12c')],_0x2dfe99),_0xed44df(_0x17cd01['attributes'],_0x2dfe99));}function Pt(_0x5c139d,_0x421336){const _0xaf6ab9=Lt(_0x5c139d['attributes']),_0x39f4f1=Lt(_0x421336);if(!_0x5c139d[_0x5904('0x180')])return!0x1;for(const _0x45eba1 of Object['keys'](_0x39f4f1))if(!_0x35c4e3(_0xaf6ab9[_0x45eba1],_0x39f4f1[_0x45eba1]))return!0x1;return!0x0;}function Lt(_0x230062){const _0x324995=Object['assign']({},_0x230062);return delete _0x324995['skipNestingCheck'],delete _0x324995[_0x5904('0x17c')],_0x324995;}
23
+ const _0x5817=['createRange','ck-suggestion-marker-','_inlineAttributeKeys','ck-suggestion-marker-formatBlock','markerToData','_joinWithAdjacentSuggestions','change','attributeKey','CommentsRepository','createPositionAt','markBlockFormat','getShiftedBy','deletion','isMultiRange','removeAttribute','addMarker:suggestion:formatBlock','editing','oldValue','multipleBlocks','getFirstRange','_descriptionFactory','markAttributeChange','backward','reconvertMarker','toViewElement','listenTo','insertion:chain','rethrowUnexpectedError','$text','_registerDefaultCallbacks','insert','getFirstMarker','buildSuggestion','_suggestionState','authorName','_getExternalAuthor','get','editor','catch','track-changes-adapter-missing-getsuggestion','has','$marker','_isForcedDefaultExecutionBlock','addMarkerName','external:','hasComments','_isBlockAttribute','howMany','createPositionBefore','_customCallbacks','before','unbind','formatInline:','isOwn','start','addSuggestionData','startsWith','next','schema','adapter','_defaultCallbacks','getChangedMarkers','_reduceExistingSuggestions','_createSuggestion','oldRange','fromCharCode','error-saving-suggestion-data-suggestion-discarded','discardAllSuggestions','addMarker','ENTER','high','enableCommand','attribute:join','resolve','addCommentThread','lowest','PENDING_ACTION_SUGGESTION','never','_registerInlineAttribute','_rangeIsInLocalUserInsertion','_blockAttributeKeys','_registerBlockAttribute','addSuggestion','plugins','unbindElementFromMarkerName','accepted','removed','rootName','hasSuggestion','previous','_checkSuggestionCorrectness','groupId','add','track-changes-suggestion-not-found','length','suggestionLoaded','markDeletion','ariaLiveAnnouncer','getMarkers','containsRangeInObject','dataDowncast','formatBlock:','markerToHighlight','dataReady','root','createSelection','_setSuggestionRange','attributes','getWalker','always','low','_updateSuggestionData','markInsertion','markerReady','_getAttributeKey','upcast','isObject','isAtEnd','showSuggestionHighlights','addMarker:suggestion','delete','markMultiRangeBlockFormat','attributeNewValue','newRange','splice','elementToElement','createdAt','some','_enabledCommands','skipNestingCheck','pop','containsPosition','acceptAllSuggestions','tablePasteChainId','assign','data','applyOperation','forward','trackChanges','getAllAdjacentSuggestions','comments','change:_saved','trackChangesCommand','formatBlock','format','isUndo','key','removeMarkers','conversion','isLocal','_addSuggestionMarker','getIntersection','after','split','isTouching','element','isBefore','concat','getNearestSelectionRange','_getSuggestionData','addMarker:suggestion:attribute','formatInline','_refreshAttributeSuggestionsChain','getDifference','subType','deleteContent','forceDefaultExecution','data-suggestion','acceptSelectedSuggestions','multi','ck-suggestion-marker--active','getMultiRangeId','_initAriaMarkerChangeAnnouncements','then','ck-suggestion-marker','item','insertion:discard','meta','$elementName','_suggestionFactory','originalSuggestionId','activeMarkers','size','parent','config','setTo','suggestion','targetPosition','options','_recordAttributeChanges','isEqual','$graveyard','creator','insertContent','differ','marker-count','getLastMatchingPosition','$textProxy','track-changes-suggestion-data-mismatch','_removeSuggestion','_commentsRepository','values','addClass','_refreshSuggestionsChain','getItems','_saved','enqueueChange','from','getAncestors','setAttribute','formatBlock:discard','notReady','author','_processAttributeChanges','selection','@external','map','group','_model','consume','deletion:join','containerElement','track-changes-user-not-found','mapper','position','value','every','discard','filter','_editor','_suggestions','default','enableReadOnlyMode','removeMarker','batch','type','locale','_adapter','_enableDefaultAttributesIntegration','isBlock','chain','registerPostFixer','getCustomProperty','getSuggestion','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.','removeClass','updateMarker','nodeAfter','acceptSuggestion','execute','stop','_SUGGESTION_ANNOUNCEMENT','Users','isInContent','sort','attribute:discard','_processAttributeSuggestions','substr','suggestionChanged','createElement','createRangeIn','isNextTo','getChanges','deletion:chain','formatInline:chain','set','includes','isCollapsed','_isDataLoaded','isArray','_getMarkerAnnouncementText','markers','_trackFormatChanges','_isRegisteredAttribute','normal','authoredAt','unshift','fetchCommentThread','addComment','requires','setSelection','range','markerName','removeComment','discardSelectedSuggestions','getAttribute','_addThreadToSuggestion','define','return','updateSuggestion','trackChanges.trackFormatChanges','detach','_element','_mergeNestedSuggestions','accept','_breakSuggestionMarker','deletion:','fromRange','toUpperCase','_setSuggestionData','rename','newValue','getRanges','end','refresh','nodeBefore','PendingActions','suggestion:','markInlineFormat','formatGroupId','markMultiRangeDeletion','for','elementStart','keys','_reduceSuggestionAttributeRange','join','attribute:accept','getCommentThread','_findSuggestions','LEAVE','toJSON','commands','getUser','isAfter','writer','removeMarker:suggestion:attribute','_splitMarkerName','containsRange','fire','pluginName','isIntersectingWithRange','elementEnd','isExternal','push','getSuggestions','isInsideObject','discardSuggestion','attribute','isIntersecting','insertion','_recordAttributeSuggestions','formatInline:discard','getContainedElement','find','isRemovable','editingDowncast','attributeOldValue','highest','_joinSuggestions','track-changes-enable-command-twice','rejected','FORMATTING','consumable','formatBlock:join','widget','name','model','change:data','moveTargetPosition','addUser','addRange','isLimit','forEach','remove','head','commentThread','document','formatInline:join','trackChanges.mergeNestedSuggestions','isAtStart','getSuggestionCallback','ready'];(function(_0x1dd09b,_0x581771){const _0x47988e=function(_0x24cb08){while(--_0x24cb08){_0x1dd09b['push'](_0x1dd09b['shift']());}};_0x47988e(++_0x581771);}(_0x5817,0xe1));const _0x4798=function(_0x1dd09b,_0x581771){_0x1dd09b=_0x1dd09b-0x0;let _0x47988e=_0x5817[_0x1dd09b];return _0x47988e;};import{Plugin as _0x1c0917,PendingActions as _0x49f735}from'ckeditor5/src/core.js';import{LiveRange as _0x29be14}from'ckeditor5/src/engine.js';import{CKEditorError as _0x2e9c34,uid as _0x54da7a,priorities as _0xacd8ad,logWarning as _0x4ae452}from'ckeditor5/src/utils.js';import{toWidget as _0x24b1f0}from'ckeditor5/src/widget.js';import{Users as _0x260be3,hashObject as _0x32f53a,surroundingMarkersDetector as _0x58fb5a}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x48bb1e from'./commands/trackchangescommand.js';import _0x50164f from'./commands/acceptsuggestioncommand.js';import _0x4ad637 from'./commands/discardsuggestioncommand.js';import _0x44da7b from'./commands/executeonallsuggestionscommand.js';import _0xa8c88 from'./commands/executeonselectedsuggestionscommand.js';import _0x75b5b8 from'./suggestion.js';import _0x5ee768 from'./suggestiondescriptionfactory.js';import _0x484414 from'./integrations/aiassistant.js';import _0x2f3176 from'./integrations/alignment.js';import _0x485466 from'./integrations/basicstyles.js';import _0x1644a9 from'./integrations/blockquote.js';import _0x15be2c from'./integrations/casechange.js';import _0x510d52 from'./integrations/ckbox.js';import _0x2ea82c from'./integrations/codeblock.js';import _0x20558f from'./integrations/comments.js';import _0x3ca81c from'./integrations/deletecommand.js';import _0x5c548a from'./integrations/list.js';import _0x3ed128 from'./integrations/listproperties.js';import _0x37903f from'./integrations/entercommand.js';import _0x353c2b from'./integrations/findandreplace.js';import _0x5b9d7a from'./integrations/font.js';import _0xb7dec7 from'./integrations/formatpainter.js';import _0x659bf2 from'./integrations/heading.js';import _0x24ef2a from'./integrations/highlight.js';import _0x42c617 from'./integrations/horizontalline.js';import _0x2fb620 from'./integrations/htmlembed.js';import _0xd0ed00 from'./integrations/image.js';import _0x4e4794 from'./integrations/imagereplace.js';import _0x702cb9 from'./integrations/imagestyle.js';import _0x17a06d from'./integrations/importword.js';import _0x5b989a from'./integrations/indent.js';import _0x152711 from'./integrations/inputcommand.js';import _0x4a5cf9 from'./integrations/link.js';import _0x486e9f from'./integrations/legacylist.js';import _0x1ef030 from'./integrations/legacylistproperties.js';import _0x16c3d8 from'./integrations/mediaembed.js';import _0x4825ba from'./integrations/mention.js';import _0x4cfbf2 from'./integrations/pagebreak.js';import _0x52234d from'./integrations/paragraph.js';import _0x8514e5 from'./integrations/removeformat.js';import _0x563dd9 from'./integrations/restrictededitingmode.js';import _0x1ede09 from'./integrations/shiftentercommand.js';import _0x14cfa1 from'./integrations/standardeditingmode.js';import _0x5307c3 from'./integrations/style.js';import _0x28be55 from'./integrations/table.js';import _0x446295 from'./integrations/tablemergesplit.js';import _0x3273ed from'./integrations/tableheadings.js';import _0x1f929c from'./integrations/tableclipboard.js';import _0xfcccba from'./integrations/tablecolumnresize.js';import _0x3343fe from'./integrations/template.js';import _0x59f2ef from'./integrations/tableofcontents.js';import _0x18aef from'./integrations/title.js';import _0x22e176 from'./integrations/undo.js';import _0x2d9d87 from'./integrations/tablecaption.js';import _0x1b7e41 from'./integrations/tableproperties.js';import{getTranslation as _0x5379c0}from'./utils/common-translations.js';import{isEqual as _0x1c6142,omit as _0x55cd11}from'lodash-es';export const renameAttributeKey=_0x4798('0x145');export default class p extends _0x1c0917{static get[_0x4798('0x36')](){return[_0x4798('0x9b'),_0x260be3,_0x49f735,_0x484414,_0x2f3176,_0x485466,_0x1644a9,_0x510d52,_0x15be2c,_0x2ea82c,_0x20558f,_0x3ca81c,_0x37903f,_0x353c2b,_0x5b9d7a,_0xb7dec7,_0x659bf2,_0x24ef2a,_0x42c617,_0x2fb620,_0xd0ed00,_0x702cb9,_0x4e4794,_0x17a06d,_0x5b989a,_0x152711,_0x486e9f,_0x1ef030,_0x4a5cf9,_0x5c548a,_0x3ed128,_0x16c3d8,_0x4825ba,_0x4cfbf2,_0x52234d,_0x8514e5,_0x563dd9,_0x1ede09,_0x14cfa1,_0x5307c3,_0x28be55,_0x446295,_0x3273ed,_0x2d9d87,_0x1f929c,_0xfcccba,_0x59f2ef,_0x1b7e41,_0x3343fe,_0x18aef,_0x22e176];}static get[_0x4798('0x68')](){return'TrackChangesEditing';}constructor(_0x118f58){function _0x474876(_0x38d194){return _0x38d194[_0x4798('0x16b')](_0x17bbe6=>String[_0x4798('0xd4')](_0x17bbe6))[_0x4798('0x5a')]('');}super(_0x118f58),this['_recordAttributeSuggestions']=!0x1,this['set'](_0x4798('0x148'),[]),this['on']('change:activeMarkers',(_0x36cf2b,_0x698524,_0x1a397e,_0x1151f7)=>{this[_0x4798('0x16d')][_0x4798('0x99')](()=>{for(const _0x4fcb92 of[..._0x1151f7,..._0x1a397e])this[_0x4798('0x16d')][_0x4798('0x2e')][_0x4798('0xbb')](_0x4fcb92)&&_0x118f58[_0x4798('0xa3')][_0x4798('0xaa')](_0x4fcb92);});}),this[_0x4798('0xa7')]=new _0x5ee768(this[_0x4798('0xb8')][_0x4798('0x83')][_0x4798('0xcd')],this[_0x4798('0xb8')]['locale']),this[_0x4798('0xc')]=null,this[_0x4798('0x146')]=new Bt(this[_0x4798('0xb8')]),this[_0x4798('0x5')]=new Map(),this[_0x4798('0x15b')]=_0x118f58[_0x4798('0xe6')]['get'](_0x4798('0x9b')),this[_0x4798('0x113')]=new Set(),this[_0x4798('0x16d')]=this[_0x4798('0xb8')][_0x4798('0x83')],this[_0x4798('0xb4')]=new WeakMap(),this[_0x4798('0xbd')]=!0x1,this[_0x4798('0xe3')]=new Set(['$elementName']),this[_0x4798('0x95')]=new Set(),_0x118f58[_0x4798('0x14b')][_0x4798('0x3e')](_0x4798('0x41'),_0x4798('0x6')),this[_0x4798('0x2f')]=_0x118f58['config'][_0x4798('0xb7')](_0x4798('0x41')),_0x118f58['config'][_0x4798('0x3e')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x4798('0x44')]=_0x118f58[_0x4798('0x14b')][_0x4798('0xb7')](_0x4798('0x8f')),this['trackChangesCommand']=new _0x48bb1e(_0x118f58,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x474876([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x474876([0x34,0x30,0x34,0x38,0x30,0x32,0x36,0x32]);}['init'](){const _0xca38a2=this['editor'],_0x3bbb84=(_0x1be020,_0x22163d)=>{if('attribute'!=_0x1be020)return _0x4798('0x94')+_0x1be020;const _0x173cb3=_0x22163d[_0x4798('0x12c')]('|')[0x0];return this['_isBlockAttribute'](_0x173cb3)?_0x4798('0x96'):'ck-suggestion-marker-formatInline';};_0xca38a2['conversion'][_0x4798('0x56')](_0x4798('0x78'))[_0x4798('0xf9')]({'model':_0x4798('0x14d'),'view':_0x37a96e=>{const {id:_0x1afbf5,type:_0x22aad5,subType:_0x2fa41a}=this[_0x4798('0x65')](_0x37a96e[_0x4798('0x39')]),_0x50f5d1=['ck-suggestion-marker',_0x3bbb84(_0x22aad5,_0x2fa41a)];let _0x820a3f=0xbb8;return this['activeMarkers'][_0x4798('0x29')](_0x37a96e[_0x4798('0x39')])&&(_0x50f5d1['push'](_0x4798('0x13d')),_0x820a3f=0xbc2),_0x4798('0x9f')==_0x22aad5&&(_0x820a3f+=0x5),{'classes':_0x50f5d1,'attributes':{'data-suggestion':_0x1afbf5},'priority':_0x820a3f};}}),_0xca38a2[_0x4798('0x127')]['for'](_0x4798('0xf7'))[_0x4798('0xef')](_0x4d183a=>{_0x4d183a['on'](_0x4798('0x10a'),(_0x171383,_0x300f37,_0x1741af)=>{if(!_0x1741af[_0x4798('0x14f')][_0x4798('0x109')])return;const _0x3e8a05=_0x300f37['item'];if(!_0x3e8a05)return;const _0x36e37e=_0x1741af[_0x4798('0x172')][_0x4798('0xab')](_0x3e8a05);_0xca38a2[_0x4798('0x83')][_0x4798('0xcd')]['isObject'](_0x3e8a05)&&_0x36e37e&&!_0x36e37e[_0x4798('0x11')](_0x4798('0x81'))&&_0x36e37e['is'](_0x4798('0x170'))&&_0x24b1f0(_0x36e37e,_0x1741af[_0x4798('0x63')]);},{'priority':_0x4798('0xd9')});}),_0xca38a2[_0x4798('0x127')][_0x4798('0x56')]('dataDowncast')[_0x4798('0xf9')]({'model':_0x4798('0x14d'),'view':(_0x386caf,_0x76499f)=>{if(!_0x76499f['options'][_0x4798('0x109')])return null;const {type:_0x3821cf,subType:_0x3c38ad}=this[_0x4798('0x65')](_0x386caf[_0x4798('0x39')]);return{'classes':[_0x4798('0x141'),_0x3bbb84(_0x3821cf,_0x3c38ad)],'priority':0xbb8};}});const _0x2af93b=({showActiveMarkers:_0x2930ca=!0x0,isAttributeSuggestion:_0x216a63=!0x1}={})=>(_0x2070ea,_0xe09970,_0x4fef64)=>{if(!_0xe09970[_0x4798('0x142')])return;const {id:_0x43d026}=this[_0x4798('0x65')](_0xe09970[_0x4798('0x39')]);if(_0x216a63){const _0x26e2b4=this[_0x4798('0x5')][_0x4798('0xb7')](_0x43d026),_0x58344b=this[_0x4798('0x105')](_0x26e2b4);if(!this[_0x4798('0xc1')](_0x58344b))return;}if(_0xe09970[_0x4798('0x142')]['is']('selection'))return void _0x4fef64['consumable'][_0x4798('0x16e')](_0xe09970[_0x4798('0x142')],_0x2070ea[_0x4798('0x82')]);const _0x4d2aad=_0x4fef64[_0x4798('0x172')][_0x4798('0xab')](_0xe09970[_0x4798('0x142')]);if(_0xe09970[_0x4798('0x142')]['is'](_0x4798('0x12e'))&&_0xca38a2['model'][_0x4798('0xcd')][_0x4798('0xe')](_0xe09970[_0x4798('0x142')])&&!_0x4d2aad[_0x4798('0x11')]('addHighlight')){_0x4fef64['writer']['addClass']([_0x4798('0x141'),_0x4798('0x96')],_0x4d2aad),_0x4fef64['writer']['setAttribute']('data-suggestion',_0x43d026,_0x4d2aad),_0x4fef64['mapper']['bindElementToMarker'](_0x4d2aad,_0xe09970[_0x4798('0x39')]),_0x2930ca&&(this[_0x4798('0x148')][_0x4798('0x29')](_0xe09970[_0x4798('0x39')])?_0x4fef64['writer'][_0x4798('0x15d')](_0x4798('0x13d'),_0x4d2aad):_0x4fef64[_0x4798('0x63')][_0x4798('0x14')]('ck-suggestion-marker--active',_0x4d2aad));for(const _0x5dc5c5 of _0xca38a2['model'][_0x4798('0x23')](_0xe09970[_0x4798('0x142')])[_0x4798('0x15f')]())_0x4fef64[_0x4798('0x7f')][_0x4798('0x16e')](_0x5dc5c5,_0x2070ea['name']);_0x4fef64[_0x4798('0x7f')][_0x4798('0x16e')](_0xe09970[_0x4798('0x142')],_0x2070ea['name']);}};_0xca38a2[_0x4798('0x127')][_0x4798('0x56')]('dataDowncast')[_0x4798('0xef')](_0x5ef1d8=>{_0x5ef1d8['on'](_0x4798('0xa2'),(_0x4ded7f,_0x23134b,_0x29a695)=>{_0x29a695[_0x4798('0x14f')][_0x4798('0x109')]&&_0x2af93b({'showActiveMarkers':!0x1})(_0x4ded7f,_0x23134b,_0x29a695);},{'priority':_0x4798('0x7a')});}),_0xca38a2[_0x4798('0x127')][_0x4798('0x56')](_0x4798('0xf7'))['add'](_0x594b5c=>{_0x594b5c['on'](_0x4798('0x133'),(_0x54c402,_0x3709f6,_0xa95959)=>{_0xa95959[_0x4798('0x14f')][_0x4798('0x109')]&&_0x2af93b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x54c402,_0x3709f6,_0xa95959);},{'priority':_0x4798('0x7a')});}),_0xca38a2[_0x4798('0x127')]['for'](_0x4798('0xf7'))[_0x4798('0x97')]({'model':_0x4798('0x14d'),'view':(_0x2b70d7,_0x22e8d4)=>_0x22e8d4[_0x4798('0x14f')][_0x4798('0x109')]?null:{'group':'suggestion','name':_0x2b70d7[_0x4798('0x20')](0xb)}}),_0xca38a2['conversion']['for']('upcast')[_0x4798('0x110')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x492a3b,{writer:_0x1cfdd4})=>{let _0x1d107b=_0x4798('0x52')+_0x492a3b[_0x4798('0x3c')]('suggestion-type')+':'+_0x492a3b['getAttribute']('id');return _0x492a3b['getAttribute'](_0x4798('0x156'))&&(_0x1d107b+=':'+_0x492a3b[_0x4798('0x3c')](_0x4798('0x156'))),_0x1cfdd4[_0x4798('0x22')](_0x4798('0xbc'),{'data-name':_0x1d107b});}}),_0xca38a2[_0x4798('0x127')][_0x4798('0x56')](_0x4798('0x106'))['dataToMarker']({'view':'suggestion'}),_0xca38a2[_0x4798('0x127')][_0x4798('0x56')](_0x4798('0x78'))[_0x4798('0xef')](_0x421871=>{_0x421871['on'](_0x4798('0xa2'),_0x2af93b(),{'priority':_0x4798('0xd9')});}),_0xca38a2[_0x4798('0x127')][_0x4798('0x56')](_0x4798('0x78'))['add'](_0x3dee14=>{_0x3dee14['on'](_0x4798('0x133'),_0x2af93b({'isAttributeSuggestion':!0x0}),{'priority':_0x4798('0xd9')});}),_0xca38a2[_0x4798('0x127')]['for'](_0x4798('0x78'))[_0x4798('0xef')](_0x2a9b0a=>{_0x2a9b0a['on']('removeMarker:suggestion:formatBlock',(_0x4af4ea,_0x3592fb,_0x302929)=>{const _0x447dc7=_0x302929[_0x4798('0x172')]['markerNameToElements'](_0x3592fb[_0x4798('0x39')]);if(_0x447dc7)for(const _0x368048 of _0x447dc7)_0x368048[_0x4798('0x11')]('addHighlight')||(_0x302929[_0x4798('0x63')][_0x4798('0x14')]([_0x4798('0x141'),_0x4798('0x96'),'ck-suggestion-marker--active'],_0x368048),_0x302929['writer'][_0x4798('0xa1')]('data-suggestion',_0x368048),_0x302929[_0x4798('0x172')][_0x4798('0xe7')](_0x368048,_0x3592fb[_0x4798('0x39')]));},{'priority':_0x4798('0xd9')});}),_0xca38a2['conversion'][_0x4798('0x56')](_0x4798('0x78'))['add'](_0x2318c9=>{_0x2318c9['on'](_0x4798('0x64'),(_0x188011,_0x364144,_0x917499)=>{const _0x4ce6cd=_0x917499[_0x4798('0x172')]['markerNameToElements'](_0x364144[_0x4798('0x39')]);if(!_0x4ce6cd)return;const {id:_0x2eeeeb}=this['_splitMarkerName'](_0x364144['markerName']),_0x36033d=this[_0x4798('0x5')][_0x4798('0xb7')](_0x2eeeeb),_0x14be01=this['_getAttributeKey'](_0x36033d);if(this[_0x4798('0xc1')](_0x14be01))for(const _0x1c5637 of _0x4ce6cd)_0x1c5637[_0x4798('0x11')]('addHighlight')||(_0x917499[_0x4798('0x63')][_0x4798('0x14')]([_0x4798('0x141'),'ck-suggestion-marker-formatBlock',_0x4798('0x13d')],_0x1c5637),_0x917499[_0x4798('0x63')]['removeAttribute'](_0x4798('0x13a'),_0x1c5637),_0x917499['mapper'][_0x4798('0xe7')](_0x1c5637,_0x364144['markerName']));},{'priority':'high'});}),_0xca38a2['model'][_0x4798('0x8d')][_0x4798('0x10')](_0x129c6a=>{let _0x4a224e=!0x1;const _0x1639da=Array['from'](_0xca38a2[_0x4798('0x83')]['document'][_0x4798('0x155')]['getChangedMarkers']()),_0x31f29f=new Set();for(const {name:_0x2f8b22,data:_0x3c22d6}of _0x1639da){const {group:_0x2eb885,type:_0x2d0133,subType:_0x4b22ea,id:_0x5bcc88}=this[_0x4798('0x65')](_0x2f8b22);if(_0x4798('0x14d')!==_0x2eb885)continue;const _0x3f313e=this[_0x4798('0x5')][_0x4798('0xb7')](_0x5bcc88);if(null!=_0x3c22d6[_0x4798('0x10e')]){_0x4798('0x134')==_0x2d0133&&(_0x4a224e=_0x4a224e||Tt(_0x3c22d6[_0x4798('0x10e')],_0x2f8b22,_0x129c6a,_0xca38a2[_0x4798('0x83')][_0x4798('0xcd')]));const _0x12128c='attribute'==_0x2d0133&&this['_isBlockAttribute'](_0x4b22ea[_0x4798('0x12c')]('|')[0x0]);if(_0x3c22d6[_0x4798('0x10e')][_0x4798('0x2a')]||_0x4798('0x152')==_0x3c22d6['newRange'][_0x4798('0xfb')][_0x4798('0xea')]||_0x4798('0x122')==_0x2d0133&&!Vt(_0x3c22d6['newRange'])||_0x12128c&&!Vt(_0x3c22d6[_0x4798('0x10e')])||_0x4798('0x9f')==_0x2d0133&&!(!Rt(_0x4e981f=_0x3c22d6['newRange'])&&!function(_0x280c42){return _0x280c42['start']['parent']==_0x280c42[_0x4798('0x4e')][_0x4798('0x50')]&&_0x280c42[_0x4798('0xc9')][_0x4798('0x108')];}(_0x4e981f)))_0x129c6a[_0x4798('0x8')](_0x2f8b22),_0x4a224e=!0x0;else{if(!_0x3f313e||!_0x3f313e['isInContent'])continue;_0x31f29f[_0x4798('0xef')](_0x3f313e);}}}var _0x4e981f;return _0x31f29f[_0x4798('0x149')]>0x0&&(_0x4a224e=!!this[_0x4798('0x98')](_0x31f29f)||_0x4a224e),_0x4a224e;}),_0xca38a2[_0x4798('0x83')]['document']['registerPostFixer'](_0x53b9c6=>{let _0x2e61c7=!0x1;for(const _0x4627e7 of _0xca38a2[_0x4798('0x83')][_0x4798('0x8d')][_0x4798('0x155')][_0x4798('0x25')]())if(_0x4798('0xb1')==_0x4627e7['type'])for(const _0x1df85e of this[_0x4798('0x5')][_0x4798('0x15c')]()){if(_0x1df85e[_0x4798('0xa0')]||!_0x1df85e[_0x4798('0x1c')])continue;const _0x55f53c=_0x4798('0x122')==_0x1df85e[_0x4798('0xa')],_0x3a88d1=this['_getAttributeKey'](_0x1df85e),_0x27a019=_0x3a88d1&&this['_isBlockAttribute'](_0x3a88d1);if(!_0x55f53c&&!_0x27a019)continue;const _0x457620=_0x1df85e['getFirstRange']();if(_0x457620['start'][_0x4798('0x14a')]!=_0x457620[_0x4798('0x4e')][_0x4798('0x14a')]&&!_0x457620['end'][_0x4798('0x108')]){const _0x177b06=_0xca38a2[_0x4798('0x83')][_0x4798('0x9c')](_0x457620[_0x4798('0xc9')][_0x4798('0x16')],_0x4798('0x4e')),_0x58eb89=_0xca38a2[_0x4798('0x83')][_0x4798('0x93')](_0x457620[_0x4798('0xc9')],_0x177b06);_0x53b9c6['updateMarker'](_0x1df85e[_0x4798('0xb2')](),{'range':_0x58eb89}),_0x2e61c7=!0x0;}}return _0x2e61c7;}),_0xca38a2[_0x4798('0x83')][_0x4798('0x8d')][_0x4798('0x10')](_0x4fcc0a=>this[_0x4798('0x168')](_0x4fcc0a)),_0xca38a2[_0x4798('0x83')][_0x4798('0x8d')][_0x4798('0x10')](_0x3e1b33=>!_0x3e1b33[_0x4798('0x9')][_0x4798('0x128')]&&this[_0x4798('0x1f')](_0x3e1b33)),_0xca38a2[_0x4798('0x83')]['on']('_afterChanges',()=>{this[_0x4798('0x73')]=!0x1;}),_0xca38a2[_0x4798('0x83')][_0x4798('0x8d')]['on'](_0x4798('0x84'),(_0x38363b,_0x2f4a34)=>{if(!_0x2f4a34[_0x4798('0x128')]||_0x2f4a34[_0x4798('0x124')])return;if(!this[_0x4798('0x73')])return;const _0x41e433=_0xca38a2[_0x4798('0x83')][_0x4798('0x8d')][_0x4798('0x155')]['getChanges']();if(0x0==_0x41e433[_0x4798('0xf1')])return;const _0x4a6988=[],_0x36ec8f=_0x41e433['filter'](_0x4eb495=>_0x4798('0x70')==_0x4eb495[_0x4798('0xa')]),_0xb9a387=_0x41e433[_0x4798('0x3')](_0x5a1027=>_0x4798('0xb1')==_0x5a1027[_0x4798('0xa')]&&_0x4798('0xaf')!=_0x5a1027[_0x4798('0x82')]),_0xadc5ab=_0x41e433[_0x4798('0x3')](_0x1ef8e4=>_0x4798('0x8a')==_0x1ef8e4['type']&&_0x4798('0xaf')!=_0x1ef8e4['name']);for(const _0x5a5f08 of _0x36ec8f)this['_isRegisteredAttribute'](_0x5a5f08[_0x4798('0x9a')])&&_0x4a6988['push']({'key':_0x5a5f08[_0x4798('0x9a')],'newValue':_0x5a5f08['attributeNewValue'],'oldValue':_0x5a5f08[_0x4798('0x79')],'range':Ut(_0x5a5f08[_0x4798('0x38')],_0xca38a2[_0x4798('0x83')])});for(const _0x4ea89a of _0xb9a387){const _0x418471=_0xadc5ab['find'](_0x2f5257=>_0x2f5257['_element']===_0x4ea89a[_0x4798('0x43')]);if(_0x418471){const _0x1e4667=Ot(_0x4ea89a[_0x4798('0x173')][_0x4798('0x16')],_0xca38a2['model']);_0x418471[_0x4798('0x82')]!==_0x4ea89a[_0x4798('0x82')]&&_0x4a6988[_0x4798('0x6c')]({'key':'$elementName','newValue':_0x4ea89a[_0x4798('0x82')],'oldValue':_0x418471[_0x4798('0x82')],'range':_0x1e4667});for(const [_0x332cf2,_0x231c8d]of _0x418471[_0x4798('0xfe')]){if(!this[_0x4798('0x30')](_0x332cf2))continue;const _0x2f23af=_0x4ea89a[_0x4798('0xfe')][_0x4798('0xb7')](_0x332cf2);_0x231c8d!==_0x2f23af&&_0x4a6988['push']({'key':_0x332cf2,'newValue':_0x2f23af,'oldValue':_0x231c8d,'range':_0x1e4667});}for(const [_0x3f8da2,_0x473399]of _0x4ea89a['attributes'])this[_0x4798('0x30')](_0x3f8da2)&&(_0x418471['attributes'][_0x4798('0xbb')](_0x3f8da2)||_0x4a6988[_0x4798('0x6c')]({'key':_0x3f8da2,'newValue':_0x473399,'oldValue':null,'range':_0x1e4667}));}}0x0!=_0x4a6988[_0x4798('0xf1')]&&_0xca38a2[_0x4798('0x83')][_0x4798('0x161')](_0x2f4a34,_0x43686c=>{const _0x4aca2a=_0x54da7a();for(const {range:_0x1b7173,key:_0x4da2f9,oldValue:_0x4e5e8c,newValue:_0x8e9a47}of _0x4a6988)this['markAttributeChange'](_0x1b7173,_0x4da2f9,_0x4e5e8c,_0x8e9a47,{'groupId':_0x4aca2a});this[_0x4798('0xd1')](_0x43686c,_0x4a6988);});},{'priority':_0x4798('0xde')}),_0xca38a2[_0x4798('0x83')][_0x4798('0x2e')]['on']('update:suggestion',(_0xcf8dd9,_0x327411,_0x35968c)=>{if(null==_0x35968c){const {id:_0x4bbd29}=this[_0x4798('0x65')](_0x327411['name']),_0x29c9df=this[_0x4798('0x5')]['get'](_0x4bbd29);_0x29c9df&&_0x29c9df[_0x4798('0xbe')](_0x327411[_0x4798('0x82')]);}}),_0xca38a2['model'][_0x4798('0x8d')]['on'](_0x4798('0x84'),()=>{const _0x5a059b=Array[_0x4798('0x162')](_0xca38a2[_0x4798('0x83')]['document'][_0x4798('0x155')]['getChangedMarkers']())[_0x4798('0x3')](_0x256b2d=>'suggestion'===this[_0x4798('0x65')](_0x256b2d['name'])[_0x4798('0x16c')]);if(0x0===_0x5a059b[_0x4798('0xf1')])return;_0x5a059b['sort']((_0x2789f9,_0x3bebef)=>{const _0x5b50f9=_0x2789f9[_0x4798('0x11a')]['oldRange'],_0x42f88b=_0x3bebef[_0x4798('0x11a')][_0x4798('0xd3')];return null===_0x5b50f9&&null===_0x42f88b?0x0:null===_0x5b50f9&&null!==_0x42f88b?-0x1:null!==_0x5b50f9&&null===_0x42f88b?0x1:_0x5b50f9[_0x4798('0xc9')]['isBefore'](_0x42f88b['start'])?-0x1:0x1;});const _0x1a542c=new Set(),_0x35c46c=new Set();for(const {name:_0x249ac9,data:_0x4c9d0b}of _0x5a059b){const {id:_0x4f736b}=this[_0x4798('0x65')](_0x249ac9);if(null===_0x4c9d0b['oldRange']){const _0x287ccd=this['_handleNewSuggestionMarker'](_0x249ac9);_0x35c46c[_0x4798('0xef')](_0x287ccd);}else{const _0x1995f3=this[_0x4798('0x5')][_0x4798('0xb7')](_0x4f736b);null!==_0x4c9d0b[_0x4798('0x10e')]||_0x1995f3[_0x4798('0x1c')]?(_0x1a542c[_0x4798('0xef')](_0x1995f3[_0x4798('0x8b')]),_0x35c46c[_0x4798('0xef')](_0x1995f3)):this[_0x4798('0x15a')](_0x1995f3);}}_0x35c46c['size']>0x0&&this['_refreshSuggestionsChain'](_0x35c46c);for(const _0x57cabe of _0x1a542c)this['fire']('suggestionChanged',_0x57cabe);}),_0xca38a2[_0x4798('0x83')]['on'](_0x4798('0x11b'),(_0x4650f5,_0x4a90de)=>{const _0x3a433e=_0x4a90de[0x0];if(!this[_0x4798('0x5')][_0x4798('0x149')])return;if(!_0x3a433e['isDocumentOperation'])return;if(_0x3a433e[_0x4798('0x9')]['isUndo']||!_0x3a433e[_0x4798('0x9')][_0x4798('0x128')])return;let _0x26ae14,_0x2bcc48;switch(_0x3a433e['type']){case'insert':_0x26ae14=_0xca38a2[_0x4798('0x83')][_0x4798('0x9c')](_0x3a433e[_0x4798('0x173')]),_0x2bcc48=_0x26ae14[_0x4798('0x9e')](_0x3a433e['howMany']);break;case _0x4798('0x12c'):_0x26ae14=_0xca38a2[_0x4798('0x83')][_0x4798('0x9c')](_0x3a433e['splitPosition']),_0x2bcc48=_0xca38a2[_0x4798('0x83')]['createPositionAt'](_0x3a433e[_0x4798('0x85')]);break;case'move':_0x26ae14=_0xca38a2[_0x4798('0x83')][_0x4798('0x9c')](_0x3a433e[_0x4798('0x14e')]),_0x2bcc48=_0x26ae14[_0x4798('0x9e')](_0x3a433e[_0x4798('0xc2')]);break;default:return;}const _0x17fdd5=_0xca38a2['model'][_0x4798('0x93')](_0x26ae14,_0x2bcc48);_0xca38a2['model'][_0x4798('0x99')](()=>{for(const {suggestion:_0x2a86f0,meta:_0x5d0cd4}of this[_0x4798('0x5d')](_0x17fdd5)){if(_0x2a86f0[_0x4798('0xa0')])continue;if(_0x4798('0x134')==_0x2a86f0[_0x4798('0xa')])continue;const _0x4ba9a9=this['_getAttributeKey'](_0x2a86f0);if(_0x4ba9a9&&this[_0x4798('0xc1')](_0x4ba9a9)&&'split'!=_0x3a433e['type'])continue;const _0x2521cc=_0x2a86f0['data']&&_0x2a86f0[_0x4798('0x11a')][_0x4798('0xa5')];(_0x4798('0x122')!=_0x2a86f0[_0x4798('0xa')]||_0x4798('0x12c')==_0x3a433e['type']&&!_0x2521cc)&&(_0x5d0cd4['containsRangeInObject']||'insertion'==_0x2a86f0[_0x4798('0xa')]&&_0x5d0cd4[_0x4798('0xc8')]||_0x2a86f0['getFirstRange']()[_0x4798('0x66')](_0x17fdd5)&&this[_0x4798('0x46')](_0x2a86f0,_0x26ae14,_0x2bcc48));}});},{'priority':'lowest'}),_0xca38a2[_0x4798('0x83')]['on'](_0x4798('0x138'),(_0x5c1908,_0x5b050d)=>{const _0xddffb7=_0x5b050d[0x0],_0x3a7c9a=_0x5b050d[0x1];if(_0x3a7c9a&&_0x3a7c9a[_0x4798('0x139')])return;if(this[_0x4798('0xbd')])return;if(!this[_0x4798('0x121')][_0x4798('0x0')])return;if(_0xddffb7[_0x4798('0x2a')])return;const _0x554815=_0xca38a2['model'][_0x4798('0xcd')],{start:_0x5c57ff,end:_0x92da19}=_0xddffb7['getFirstRange'](),_0xacc2e1=_0x5c57ff[_0x4798('0x16')]&&_0x554815[_0x4798('0x88')](_0x5c57ff[_0x4798('0x16')])?null:_0x554815[_0x4798('0x131')](_0x5c57ff,_0x4798('0x11c')),_0x49d87f=_0x92da19[_0x4798('0x50')]&&_0x554815[_0x4798('0x88')](_0x92da19['nodeBefore'])?null:_0x554815[_0x4798('0x131')](_0x92da19,_0x4798('0xa9')),_0x4768d7=_0xca38a2[_0x4798('0x83')][_0x4798('0x93')](_0xacc2e1?_0xacc2e1['start']:_0x5c57ff,_0x49d87f?_0x49d87f[_0x4798('0x4e')]:_0x92da19);_0xca38a2[_0x4798('0x83')][_0x4798('0x99')](_0x2d36b8=>{this[_0x4798('0xf3')](_0x4768d7);const _0x2d4a88=_0xca38a2['model'][_0x4798('0xcd')][_0x4798('0x131')](_0x4768d7[_0x4798('0xc9')]);_0xddffb7['is']('documentSelection')?_0x2d36b8[_0x4798('0x37')](_0x2d4a88):_0xddffb7[_0x4798('0x14c')](_0x2d4a88);}),_0x5c1908[_0x4798('0x19')]();},{'priority':_0xacd8ad[_0x4798('0x31')]+0xa}),_0xca38a2[_0x4798('0x83')]['on'](_0x4798('0x154'),(_0x2fb758,_0x476a39)=>{const _0x1a9da6=_0x476a39[_0x476a39['length']-0x1];_0x1a9da6&&_0x1a9da6[_0x4798('0x139')]||this[_0x4798('0xbd')]||this[_0x4798('0x121')][_0x4798('0x0')]&&(_0xca38a2['model']['change'](()=>{let _0x1dcb1b=_0xca38a2[_0x4798('0x83')][_0x4798('0x154')](_0x476a39[0x0],_0x476a39[0x1],_0x476a39[0x2],{'forceDefaultExecution':!0x0});if(!_0x1dcb1b)return;_0x2fb758[_0x4798('0x3f')]=_0x1dcb1b['clone']();const _0x37e7ea=_0x1dcb1b[_0x4798('0x4e')][_0x4798('0x50')],_0x48f915=_0xca38a2[_0x4798('0x83')][_0x4798('0xcd')];_0x37e7ea&&_0x48f915[_0x4798('0xe')](_0x37e7ea)&&!_0x48f915[_0x4798('0x107')](_0x37e7ea)&&(_0x1dcb1b=_0xca38a2[_0x4798('0x83')][_0x4798('0x93')](_0x1dcb1b[_0x4798('0xc9')],_0xca38a2[_0x4798('0x83')][_0x4798('0x9c')](_0x37e7ea,_0x4798('0x4e')))),this[_0x4798('0x103')](_0x1dcb1b);}),_0x2fb758[_0x4798('0x19')]());},{'priority':_0x4798('0xd9')}),this[_0x4798('0xb8')][_0x4798('0x60')][_0x4798('0xef')](_0x4798('0x11d'),this[_0x4798('0x121')]),this[_0x4798('0xda')](_0x4798('0x11d'));const _0x324098=new _0x50164f(_0xca38a2,this['_suggestions']);_0xca38a2['commands']['add'](_0x4798('0x17'),_0x324098),this['enableCommand'](_0x4798('0x17'));const _0x5b0807=new _0x4ad637(_0xca38a2,this['_suggestions']);_0xca38a2[_0x4798('0x60')]['add'](_0x4798('0x6f'),_0x5b0807),this[_0x4798('0xda')]('discardSuggestion'),_0xca38a2[_0x4798('0x60')][_0x4798('0xef')](_0x4798('0x117'),new _0x44da7b(_0xca38a2,_0x324098,this[_0x4798('0x5')])),this['enableCommand'](_0x4798('0x117')),_0xca38a2[_0x4798('0x60')][_0x4798('0xef')](_0x4798('0xd6'),new _0x44da7b(_0xca38a2,_0x5b0807,this['_suggestions'])),this[_0x4798('0xda')]('discardAllSuggestions'),_0xca38a2[_0x4798('0x60')]['add'](_0x4798('0x13b'),new _0xa8c88(_0xca38a2,_0x324098,this[_0x4798('0x5')])),this['enableCommand'](_0x4798('0x13b')),_0xca38a2[_0x4798('0x60')][_0x4798('0xef')](_0x4798('0x3b'),new _0xa8c88(_0xca38a2,_0x5b0807,this[_0x4798('0x5')])),this[_0x4798('0xda')]('discardSelectedSuggestions');const _0x403b30=_0xca38a2[_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x9b'));this[_0x4798('0xac')](_0x403b30,_0x4798('0x35'),(_0x42476c,{threadId:_0x5bc0cc})=>{const _0x776e43=this[_0x4798('0x5')][_0x4798('0xb7')](_0x5bc0cc);_0x776e43&&_0x776e43[_0x4798('0x8c')]&&0x1===_0x776e43['commentThread'][_0x4798('0xf1')]&&this[_0x4798('0x102')](_0x5bc0cc,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x403b30,_0x4798('0x3a'),(_0xacb08d,{threadId:_0x788ad8})=>{const _0x505149=this[_0x4798('0x5')][_0x4798('0xb7')](_0x788ad8);_0x505149&&_0x505149[_0x4798('0x8c')]&&!_0x505149[_0x4798('0x8c')][_0x4798('0xf1')]&&this[_0x4798('0x102')](_0x788ad8,{'hasComments':!0x1});},{'priority':_0x4798('0x101')});}set[_0x4798('0xce')](_0x35cefa){if(this[_0x4798('0xc')])throw new _0x2e9c34('track-changes-adapter-already-set',this);this[_0x4798('0xc')]=_0x35cefa;}get[_0x4798('0xce')](){return this['_adapter'];}[_0x4798('0x6d')]({skipNotAttached:_0x37e31f=!0x1,toJSON:_0xad591e=!0x1}={}){const _0x4bd0cd=[];for(const _0x116030 of this[_0x4798('0x5')]['values']())_0x37e31f&&!_0x116030['isInContent']||_0x4bd0cd[_0x4798('0x6c')](_0x116030);return _0xad591e?_0x4bd0cd[_0x4798('0x16b')](_0x1fe3a5=>_0x1fe3a5[_0x4798('0x5f')]()):_0x4bd0cd;}[_0x4798('0x12')](_0x5e78ed){const _0x934c11=this[_0x4798('0x5')]['get'](_0x5e78ed);if(!_0x934c11)throw new _0x2e9c34(_0x4798('0xf0'),this);return _0x934c11;}[_0x4798('0xeb')](_0x3a9b89){return this[_0x4798('0x5')][_0x4798('0xbb')](_0x3a9b89);}[_0x4798('0xca')](_0x47876f){const {authorId:_0x473508,id:_0xc4efbf,attributes:_0x1c0d4e}=_0x47876f,[_0x1bf945,_0x48d901]=_0x47876f['type'][_0x4798('0x12c')](':'),_0x25dc24=this[_0x4798('0x5')][_0x4798('0xb7')](_0xc4efbf)||this[_0x4798('0xd2')](_0x1bf945,_0x48d901,_0xc4efbf,_0x473508,_0x1c0d4e);if(this[_0x4798('0x3d')](_0x25dc24),this[_0x4798('0xed')](_0x25dc24,_0x1bf945,_0x48d901||null,_0x473508),_0x25dc24['createdAt']=_0x47876f[_0x4798('0x111')],_0x25dc24[_0x4798('0x2b')]=!0x0,_0x1c0d4e&&_0x1c0d4e[_0x4798('0x16a')]){const _0x40bf37=_0x1c0d4e[_0x4798('0x16a')],_0x42a13f=this[_0x4798('0xb6')](_0x40bf37[_0x4798('0xb5')]);_0x25dc24[_0x4798('0x32')]=_0x40bf37[_0x4798('0x111')],_0x25dc24['author']=_0x42a13f,_0x25dc24[_0x4798('0x6b')]=!0x0;}else _0x25dc24[_0x4798('0x32')]=_0x47876f[_0x4798('0x111')];switch(_0x47876f['data']&&(_0x25dc24['data']=_0x47876f['data']),_0x47876f[_0x4798('0xfe')]&&(_0x25dc24['attributes']=_0x47876f[_0x4798('0xfe')]),this[_0x4798('0xc')]&&this[_0x4798('0xc')][_0x4798('0xe5')]||(_0x25dc24[_0x4798('0x160')]=!0x0),this[_0x4798('0xb4')]['get'](_0x25dc24)){case _0x4798('0x166'):this['_suggestionState'][_0x4798('0x28')](_0x25dc24,_0x4798('0xfa'));break;case _0x4798('0x104'):_0x25dc24[_0x4798('0x1c')]?(this['_joinWithAdjacentSuggestions'](new Set([_0x25dc24])),this['_refreshSuggestionsChain'](new Set([_0x25dc24])),this['_suggestionState']['set'](_0x25dc24,_0x4798('0x92')),this[_0x4798('0x67')](_0x4798('0xf2'),_0x25dc24)):this['_suggestionState'][_0x4798('0x28')](_0x25dc24,_0x4798('0xe9'));}return _0x25dc24;}[_0x4798('0x17')](_0xa82854){this['forceDefaultExecution'](()=>{this['editor']['model'][_0x4798('0x99')](()=>{for(const _0x58408e of _0xa82854[_0x4798('0x11e')]())_0x58408e[_0x4798('0x45')]();});});}['discardSuggestion'](_0xab4d51){this[_0x4798('0x139')](()=>{this[_0x4798('0xb8')]['model']['change'](()=>{for(const _0x127c79 of _0xab4d51[_0x4798('0x11e')]())_0x127c79[_0x4798('0x2')]();});});}['enableCommand'](_0xd51087,_0x9c27be){const _0x1edfbf=this[_0x4798('0xb8')][_0x4798('0x60')][_0x4798('0xb7')](_0xd51087);if(!_0x1edfbf)throw new _0x2e9c34('track-changes-command-not-found',this,{'commandName':_0xd51087});if(this[_0x4798('0x113')]['has'](_0x1edfbf))throw new _0x2e9c34(_0x4798('0x7c'),this,{'commandName':_0xd51087});this[_0x4798('0x113')][_0x4798('0xef')](_0x1edfbf),_0x9c27be&&_0x1edfbf['on']('execute',(_0x4b1a95,_0x567248)=>{this[_0x4798('0x121')][_0x4798('0x0')]&&(this['_isForcedDefaultExecutionBlock']||(_0x567248[_0x4798('0xf1')]>0x0&&_0x567248[_0x567248[_0x4798('0xf1')]-0x1]&&_0x567248[_0x567248[_0x4798('0xf1')]-0x1]['forceDefaultExecution']?_0x567248[_0x4798('0x115')]():(_0x4b1a95[_0x4798('0x3f')]=_0x9c27be((..._0x5c56f1)=>_0x1edfbf['execute'](..._0x5c56f1,{'forceDefaultExecution':!0x0}),..._0x567248),_0x4b1a95['stop']())));},{'priority':_0x4798('0xd9')});}[_0x4798('0x139')](_0x2256d9){let _0x4b6eff,_0xe46fbf;const _0x3f309d=this['_isForcedDefaultExecutionBlock'];this[_0x4798('0xbd')]=!0x0;try{_0x4b6eff=_0x2256d9();}catch(_0x267c12){_0xe46fbf=_0x267c12;}return _0x3f309d||(this[_0x4798('0xbd')]=!0x1),_0xe46fbf&&_0x2e9c34[_0x4798('0xae')](_0xe46fbf,this),_0x4b6eff;}[_0x4798('0x103')](_0x542da7,_0x242e05=null,_0x3b9660={}){if(_0x542da7[_0x4798('0x2a')])return null;const _0x1174e7=this[_0x4798('0xb8')]['plugins'][_0x4798('0xb7')](_0x4798('0x1b'))['me'];for(const {suggestion:_0x4b3ac0,meta:_0x3a3968}of this[_0x4798('0x5d')](_0x542da7,'insertion'))if(_0x3a3968[_0x4798('0xc8')]){if(!_0x3a3968[_0x4798('0x24')]){if(_0x3a3968[_0x4798('0xf6')]){if(!this[_0x4798('0x44')]||!Pt(_0x4b3ac0,_0x3b9660))continue;return _0x4b3ac0;}if(Pt(_0x4b3ac0,_0x3b9660))return _0x4b3ac0;this[_0x4798('0x46')](_0x4b3ac0,_0x542da7[_0x4798('0xc9')],_0x542da7[_0x4798('0x4e')]);break;}if(_0x242e05==_0x4b3ac0[_0x4798('0x137')]&&Pt(_0x4b3ac0,_0x3b9660)){const _0x188db5=_0x4b3ac0[_0x4798('0xa6')]();return _0x188db5[_0x4798('0xc9')][_0x4798('0x151')](_0x542da7[_0x4798('0x4e')])?this[_0x4798('0xfd')](_0x4b3ac0,this[_0x4798('0x16d')]['createRange'](_0x542da7[_0x4798('0xc9')],_0x188db5[_0x4798('0x4e')])):this[_0x4798('0xfd')](_0x4b3ac0,this[_0x4798('0x16d')][_0x4798('0x93')](_0x188db5[_0x4798('0xc9')],_0x542da7['end'])),_0x4b3ac0;}}const _0x2797c3=_0x54da7a(),_0x5d33c9=_0x1174e7['id'],_0x45fa8f=_0x242e05?'insertion:'+_0x242e05:'insertion',_0x4408ce=this[_0x4798('0x4a')]({'id':_0x2797c3,'type':_0x45fa8f,'createdAt':new Date(),'authorId':_0x5d33c9,'attributes':_0x3b9660});return this[_0x4798('0x129')](_0x45fa8f,_0x2797c3,_0x5d33c9,_0x542da7),_0x4408ce;}['markMultiRangeInsertion'](_0x8b2d55,_0x54fdff=_0x4798('0x13c'),_0x2ec7a0={}){const _0x390188=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x1b'))['me'],_0x280e17=this['_suggestionFactory']['getSuggestionCallback'](_0x4798('0x72'),_0x54fdff,_0x4798('0x5a'));for(const _0x20a12d of this[_0x4798('0x6d')]())if(_0x20a12d[_0x4798('0x167')]['id']==_0x390188['id']&&'insertion'==_0x20a12d[_0x4798('0xa')]&&_0x20a12d[_0x4798('0x137')]==_0x54fdff&&Pt(_0x20a12d,_0x2ec7a0)&&(_0x280e17(_0x20a12d[_0x4798('0x4d')](),_0x8b2d55)||_0x280e17(_0x8b2d55,_0x20a12d[_0x4798('0x4d')]()))){for(const _0x54f04d of _0x8b2d55)_0x20a12d[_0x4798('0x87')](_0x54f04d);return _0x20a12d;}for(const {suggestion:_0x449717,meta:_0x18d682}of this[_0x4798('0x5d')](_0x8b2d55,'insertion')){if(!_0x18d682[_0x4798('0xc8')])continue;if(!this[_0x4798('0x44')]&&_0x18d682['containsRangeInObject'])continue;if(!Pt(_0x449717,_0x2ec7a0))continue;let _0x73ca00=!0x0;for(const _0x2f2944 of _0x449717[_0x4798('0x4d')]())for(const _0x2f1043 of _0x8b2d55)if(!_0x2f2944[_0x4798('0x66')](_0x2f1043)){_0x73ca00=!0x1;break;}if(_0x73ca00)return _0x449717;}const _0x414214=_0x54da7a(),_0x2615fe=_0x390188['id'],_0x1a31a6='insertion:'+_0x54fdff,_0x4a05de=this[_0x4798('0x4a')]({'id':_0x414214,'type':_0x1a31a6,'createdAt':new Date(),'authorId':_0x2615fe,'attributes':_0x2ec7a0});for(const _0x4f89af of _0x8b2d55)this[_0x4798('0x129')](_0x1a31a6,_0x414214,_0x2615fe,_0x4f89af,_0x75b5b8[_0x4798('0x13e')]());return _0x4a05de;}[_0x4798('0x53')](_0x1c55d4,_0x1bf58c,_0x41dc69=null,_0x18c196={}){if(_0x41dc69=_0x41dc69||Et(_0x1bf58c),_0x1c55d4[_0x4798('0x2a')])return null;if(_0x4798('0xe0')===this[_0x4798('0x2f')]){const _0xf5750a=this['_suggestionFactory'][_0x4798('0x91')]('formatInline',_0x41dc69,_0x4798('0x45'));return this['forceDefaultExecution'](()=>_0xf5750a([_0x1c55d4],_0x1bf58c,_0x18c196)),null;}const _0xc6636a=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')]('Users')['me'],_0x4bf91a=[];if(_0x4798('0x100')!==this['_trackFormatChanges'])for(const {suggestion:_0x1e70b2,meta:_0x2284c0}of this[_0x4798('0x5d')](_0x1c55d4,_0x4798('0x72')))_0x2284c0['isOwn']&&!_0x2284c0[_0x4798('0x6e')]&&_0x4bf91a[_0x4798('0x6c')](..._0x1e70b2[_0x4798('0x4d')]());const _0x4e0b43=function(_0x463d9d,_0x2f82ed){const _0x2ae263=[];for(const _0x105989 of _0x2f82ed){const _0x4cc5b1=_0x463d9d[_0x4798('0x12a')](_0x105989);_0x4cc5b1&&_0x2ae263['push'](_0x4cc5b1);}return _0x2ae263;}(_0x1c55d4,_0x4bf91a),_0x110fce=function(_0x530a10,_0x382d2b){const _0x9d3195=[_0x530a10];for(const _0xac612b of _0x382d2b){let _0x3e90e4=0x0;for(;_0x3e90e4<_0x9d3195['length'];){const _0x5d18d7=_0x9d3195[_0x3e90e4][_0x4798('0x136')](_0xac612b);_0x9d3195[_0x4798('0x10f')](_0x3e90e4,0x1,..._0x5d18d7),_0x3e90e4+=_0x5d18d7[_0x4798('0xf1')];}}return _0x9d3195;}(_0x1c55d4,_0x4bf91a);_0x4e0b43[_0x4798('0xf1')]&&this[_0x4798('0x16d')][_0x4798('0x99')](()=>{for(const _0x39e489 of _0x4e0b43){const _0x47f7d0=this[_0x4798('0x146')][_0x4798('0x91')](_0x4798('0x134'),_0x41dc69,_0x4798('0x45'));this[_0x4798('0x139')](()=>_0x47f7d0([_0x39e489],_0x1bf58c,_0x18c196));}});for(const _0x46d46f of _0x110fce){let _0x65c81a=null,_0x19daea=_0x46d46f[_0x4798('0xc9')],_0xf58e4a=_0x46d46f[_0x4798('0x4e')];for(const {suggestion:_0xa74735,meta:_0x161ecd}of this[_0x4798('0x5d')](_0x46d46f,_0x4798('0x134'))){if(!_0x161ecd[_0x4798('0xc8')])continue;if(_0xa74735[_0x4798('0x137')]!=_0x41dc69)continue;if(!Pt(_0xa74735,_0x18c196))continue;const _0x1ac142=_0xa74735[_0x4798('0xa6')]();if(_0x1ac142['containsRange'](_0x46d46f,!0x0))return null;_0x19daea=_0x19daea[_0x4798('0x12f')](_0x1ac142['start'])?_0x19daea:_0x1ac142[_0x4798('0xc9')],_0xf58e4a=_0xf58e4a['isAfter'](_0x1ac142[_0x4798('0x4e')])?_0xf58e4a:_0x1ac142['end'],_0x65c81a?_0x1ac142[_0x4798('0xc9')][_0x4798('0x12f')](_0x65c81a[_0x4798('0xa6')]()['start'])?(_0x65c81a[_0x4798('0x126')](),_0x65c81a=_0xa74735):_0xa74735[_0x4798('0x126')]():_0x65c81a=_0xa74735;}const _0x4da844=this[_0x4798('0x16d')][_0x4798('0x93')](_0x19daea,_0xf58e4a);if(_0x65c81a)this[_0x4798('0xfd')](_0x65c81a,_0x4da844);else{const _0x4ad1ca=_0x54da7a(),_0x24b25f=_0xc6636a['id'];this[_0x4798('0x4a')]({'id':_0x4ad1ca,'type':_0x4798('0xc7')+_0x41dc69,'data':_0x1bf58c,'createdAt':new Date(),'authorId':_0x24b25f,'attributes':_0x18c196}),this[_0x4798('0x129')](_0x4798('0xc7')+_0x41dc69,_0x4ad1ca,_0x24b25f,_0x4da844);}}return null;}[_0x4798('0x9d')](_0x5de43f,_0x5c1ae3,_0x11525f=[],_0x166004=null,_0x42f01c={}){_0x5c1ae3[_0x4798('0x54')]||(_0x5c1ae3[_0x4798('0x54')]=_0x5c1ae3['commandName']),_0x5c1ae3[_0x4798('0xa5')]=_0x5de43f['is'](_0x4798('0x38')),_0x166004=_0x166004||Et(_0x5c1ae3);const _0x457fae=_0x11525f[_0x4798('0x16b')](_0x827536=>Ot(_0x827536,this[_0x4798('0x16d')])),_0x6de614=_0x5de43f['is'](_0x4798('0x38'))?_0x5de43f:Ot(_0x5de43f,this[_0x4798('0x16d')]);if('never'===this[_0x4798('0x2f')]){const _0x1a1866=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x122'),_0x166004,'accept');return this[_0x4798('0x139')](()=>_0x1a1866([_0x6de614],_0x5c1ae3,_0x42f01c)),null;}_0x457fae[_0x4798('0x6c')](_0x6de614);let _0x49e4c0=!0x0;for(const _0x32a21d of _0x457fae)if(!this[_0x4798('0xe2')](_0x32a21d)){_0x49e4c0=!0x1;break;}if(_0x49e4c0&&'always'!==this[_0x4798('0x2f')]){const _0x29c30c=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x122'),_0x166004,_0x4798('0x45'));return this[_0x4798('0x139')](()=>_0x29c30c([_0x6de614],_0x5c1ae3,_0x42f01c)),null;}let _0x1f4985=null,_0x97247f=_0x6de614[_0x4798('0xc9')],_0x5503d5=_0x6de614[_0x4798('0x4e')];for(const {suggestion:_0x2f956b,meta:_0x2bedf9}of this[_0x4798('0x5d')](_0x6de614,_0x4798('0x122'))){if(!_0x2bedf9['isOwn'])continue;if(_0x2bedf9['isNextTo']||_0x2bedf9[_0x4798('0xf6')]||_0x2bedf9[_0x4798('0x6e')])continue;if(_0x2f956b[_0x4798('0x11a')][_0x4798('0x54')]!=_0x5c1ae3[_0x4798('0x54')])continue;if(!Pt(_0x2f956b,_0x42f01c))continue;const _0x3c0aa9=_0x2f956b['getFirstRange']();if(_0x2f956b['subType']==_0x166004){if(_0x3c0aa9[_0x4798('0x66')](_0x6de614,!0x0))return null;_0x97247f=_0x97247f[_0x4798('0x12f')](_0x3c0aa9[_0x4798('0xc9')])?_0x97247f:_0x3c0aa9[_0x4798('0xc9')],_0x5503d5=_0x5503d5['isAfter'](_0x3c0aa9['end'])?_0x5503d5:_0x3c0aa9[_0x4798('0x4e')],_0x1f4985?_0x3c0aa9[_0x4798('0xc9')][_0x4798('0x12f')](_0x1f4985['getFirstRange']()[_0x4798('0xc9')])?(_0x1f4985[_0x4798('0x126')](),_0x1f4985=_0x2f956b):_0x2f956b[_0x4798('0x126')]():_0x1f4985=_0x2f956b;}else{const _0x596eb0=_0x6de614['getIntersection'](_0x3c0aa9);this['_cutOutSuggestionMarker'](_0x2f956b,_0x596eb0);}}const _0x43c94c=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x1b'))['me'],_0x74e261=_0x54da7a(),_0x5ce6f7=_0x43c94c['id'];if(_0x1f4985)return this['_setSuggestionRange'](_0x1f4985,this['_model'][_0x4798('0x93')](_0x97247f,_0x5503d5)),_0x1f4985;{const _0x581962=this[_0x4798('0x4a')]({'id':_0x74e261,'type':_0x4798('0xf8')+_0x166004,'data':_0x5c1ae3,'createdAt':new Date(),'authorId':_0x5ce6f7,'attributes':_0x42f01c});return this[_0x4798('0x129')](_0x4798('0xf8')+_0x166004,_0x74e261,_0x5ce6f7,this[_0x4798('0x16d')][_0x4798('0x93')](_0x97247f,_0x5503d5)),_0x581962;}}[_0x4798('0x10c')](_0x643a9,_0x368d97,_0x483dac=[],_0x467b59=null,_0x1819ee={}){_0x368d97[_0x4798('0x54')]||(_0x368d97[_0x4798('0x54')]=_0x368d97['commandName']);const _0x170428=_0x643a9[0x0];_0x368d97[_0x4798('0xa5')]=_0x170428['is'](_0x4798('0x38')),_0x467b59=_0x467b59||Et(_0x368d97);const _0x5261b8=_0x483dac[_0x4798('0x16b')](_0x4b9d70=>Ot(_0x4b9d70,this[_0x4798('0x16d')])),_0x3d193d=_0x170428['is'](_0x4798('0x38'))?_0x643a9:_0x643a9[_0x4798('0x16b')](_0x1c9ebe=>Ot(_0x1c9ebe,this[_0x4798('0x16d')]));if(_0x4798('0xe0')===this[_0x4798('0x2f')]){const _0x3bbbdd=this[_0x4798('0x146')][_0x4798('0x91')](_0x4798('0x122'),_0x467b59,_0x4798('0x45'));return this[_0x4798('0x139')](()=>_0x3bbbdd(_0x3d193d,_0x368d97,_0x1819ee)),null;}_0x5261b8[_0x4798('0x6c')](..._0x3d193d);let _0x586009=!0x0;for(const _0x55036d of _0x5261b8)if(!this[_0x4798('0xe2')](_0x55036d)){_0x586009=!0x1;break;}if(_0x586009&&_0x4798('0x100')!==this[_0x4798('0x2f')]){const _0x21443f=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x122'),_0x467b59,_0x4798('0x45'));return this[_0x4798('0x139')](()=>_0x21443f(_0x3d193d,_0x368d97,_0x1819ee)),null;}const _0x1f34ac=this[_0x4798('0xb8')]['plugins']['get'](_0x4798('0x1b'))['me'];for(const _0x6e9b86 of this[_0x4798('0x6d')]()){if(_0x6e9b86['author']['id']!=_0x1f34ac['id'])continue;if(_0x4798('0x122')!=_0x6e9b86[_0x4798('0xa')]||_0x6e9b86[_0x4798('0x11a')][_0x4798('0x54')]!=_0x368d97[_0x4798('0x54')])continue;if(!Pt(_0x6e9b86,_0x1819ee))continue;const _0x3f2960=_0x6e9b86[_0x4798('0x137')]==_0x467b59;for(let _0x53ef25=0x0;_0x53ef25<_0x3d193d[_0x4798('0xf1')];_0x53ef25++){const _0xa43845=_0x3d193d[_0x53ef25];for(const _0x7ee427 of _0x6e9b86[_0x4798('0xf5')]()){const _0x546e33=_0x7ee427['getRange']();if(_0xa43845[_0x4798('0x151')](_0x546e33)){_0x3f2960?(_0x3d193d[_0x4798('0x10f')](_0x53ef25,0x1),_0x53ef25--):_0x6e9b86[_0x4798('0x8')](_0x7ee427[_0x4798('0x82')]);break;}}}}if(0x0==_0x3d193d[_0x4798('0xf1')])return null;const _0x4c9c8e=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x122'),_0x467b59,_0x4798('0x5a'));for(const _0xba438c of this[_0x4798('0x6d')]())if(_0xba438c['author']['id']==_0x1f34ac['id']&&_0x4798('0x122')==_0xba438c[_0x4798('0xa')]&&_0xba438c[_0x4798('0x11a')][_0x4798('0x54')]==_0x368d97[_0x4798('0x54')]&&_0xba438c['subType']==_0x467b59&&Pt(_0xba438c,_0x1819ee)&&(_0x4c9c8e(_0xba438c[_0x4798('0x4d')](),_0x3d193d)||_0x4c9c8e(_0x3d193d,_0xba438c[_0x4798('0x4d')]()))){for(const _0x334e2b of _0x3d193d)_0xba438c['addRange'](_0x334e2b);return _0xba438c;}const _0x5dd713=_0x54da7a(),_0x1c1573=_0x1f34ac['id'],_0x285c75='formatBlock:'+_0x467b59,_0x32fdc1=this[_0x4798('0x4a')]({'id':_0x5dd713,'type':_0x285c75,'data':_0x368d97,'createdAt':new Date(),'authorId':_0x1c1573,'attributes':_0x1819ee});for(const _0x224b99 of _0x3d193d)this[_0x4798('0x129')](_0x285c75,_0x5dd713,_0x1c1573,_0x224b99,_0x75b5b8[_0x4798('0x13e')]());return _0x32fdc1;}[_0x4798('0xf3')](_0x48608e,_0x4eb779=null,_0x2a6c7c={}){if(_0x48608e[_0x4798('0x2a')])return null;const _0x373f62=this[_0x4798('0xb8')]['plugins'][_0x4798('0xb7')](_0x4798('0x1b'))['me'],_0x1c7ac7=new _0x29be14(_0x48608e[_0x4798('0xc9')],_0x48608e[_0x4798('0x4e')]);for(const {suggestion:_0x339978,meta:_0x3317b0}of this[_0x4798('0x5d')](_0x1c7ac7,_0x4798('0x72')))if(_0x3317b0['isOwn']&&!_0x3317b0[_0x4798('0x24')]){if(_0x339978[_0x4798('0xa0')]){const _0x565a40=_0x339978[_0x4798('0x4d')]()[_0x4798('0x3')](_0x342cf1=>'$graveyard'!=_0x342cf1['root'][_0x4798('0xea')]);_0x565a40[_0x4798('0x1')](_0x2b2b45=>_0x1c7ac7[_0x4798('0x66')](_0x2b2b45,!0x0))&&_0x339978[_0x4798('0x2')]();if(_0x565a40[_0x4798('0x112')](_0x236813=>_0x236813['containsRange'](_0x1c7ac7,!0x0))){const _0xb55ec1=this[_0x4798('0x146')]['getSuggestionCallback'](_0x4798('0x9f'),_0x4eb779,_0x4798('0x45'));return this[_0x4798('0x139')](()=>_0xb55ec1([_0x1c7ac7],null,_0x2a6c7c)),null;}}else{const _0x1353f2=_0x1c7ac7[_0x4798('0x12a')](_0x339978[_0x4798('0xa6')]());null!==_0x1353f2&&_0x339978['_onDiscard']([_0x1353f2],null,_0x2a6c7c);}}if(_0x1c7ac7[_0x4798('0x42')](),_0x1c7ac7[_0x4798('0x2a')]||'$graveyard'==_0x1c7ac7['root'][_0x4798('0xea')])return null;let _0x31097a=null,_0x2acc4=_0x1c7ac7[_0x4798('0xc9')],_0x4045c7=_0x1c7ac7[_0x4798('0x4e')];const _0x51ba30=this[_0x4798('0x5d')](_0x1c7ac7,'deletion');for(const {suggestion:_0x3428e3,meta:_0x48338e}of _0x51ba30){const _0x3d527c=this[_0x4798('0x16d')][_0x4798('0x93')](_0x2acc4,_0x4045c7);if(_0x48338e['isOwn']&&(this[_0x4798('0x44')]||!_0x48338e[_0x4798('0xf6')]&&!_0x48338e[_0x4798('0x6e')])){if(_0x3428e3[_0x4798('0xa0')]){if(!Pt(_0x3428e3,_0x2a6c7c))continue;let _0x4eb3fa=!0x0;for(const _0x1ed738 of _0x3428e3[_0x4798('0x4d')]()){if(_0x1ed738[_0x4798('0x66')](_0x3d527c,!0x0))return _0x3428e3;_0x3d527c[_0x4798('0x66')](_0x1ed738)||(_0x4eb3fa=!0x1);}_0x4eb3fa&&_0x3428e3[_0x4798('0x2')]();}else{const _0x450387=_0x3428e3[_0x4798('0xa6')]();if(_0x450387[_0x4798('0x66')](_0x3d527c,!0x0))return _0x3428e3;if(!Pt(_0x3428e3,_0x2a6c7c)){_0x3d527c[_0x4798('0x66')](_0x450387)?_0x3428e3['removeMarkers']():_0x450387[_0x4798('0x116')](_0x2acc4)?_0x2acc4=_0x450387['end']:_0x450387[_0x4798('0x116')](_0x4045c7)&&(_0x4045c7=_0x450387['start']);continue;}_0x2acc4=_0x2acc4[_0x4798('0x12f')](_0x450387[_0x4798('0xc9')])?_0x2acc4:_0x450387[_0x4798('0xc9')],_0x4045c7=_0x4045c7[_0x4798('0x62')](_0x450387[_0x4798('0x4e')])?_0x4045c7:_0x450387[_0x4798('0x4e')],_0x2a6c7c=Object[_0x4798('0x119')]({},_0x3428e3[_0x4798('0xfe')]),_0x31097a?_0x450387[_0x4798('0xc9')]['isBefore'](_0x31097a['getFirstRange']()[_0x4798('0xc9')])?(_0x31097a[_0x4798('0x126')](),_0x31097a=_0x3428e3):_0x3428e3['removeMarkers']():_0x31097a=_0x3428e3;}}}if(_0x31097a)return this[_0x4798('0xfd')](_0x31097a,this[_0x4798('0x16d')][_0x4798('0x93')](_0x2acc4,_0x4045c7)),_0x31097a;{const _0x1384f4=_0x54da7a(),_0xf77cdf=this[_0x4798('0x16d')][_0x4798('0x93')](_0x2acc4,_0x4045c7),_0x124908=_0x373f62['id'],_0x1686c3=_0x4eb779?_0x4798('0x47')+_0x4eb779:_0x4798('0x9f'),_0x590257=this[_0x4798('0x4a')]({'id':_0x1384f4,'type':_0x1686c3,'createdAt':new Date(),'authorId':_0x124908,'attributes':_0x2a6c7c});return this[_0x4798('0x129')](_0x1686c3,_0x1384f4,_0x124908,_0xf77cdf),_0x590257;}}[_0x4798('0x55')](_0x487200,_0x506de2='multi',_0x320514={}){const _0x12cd98=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')]('Users')['me'],_0x47c58b=_0x487200[_0x4798('0x16b')](_0x458cea=>new _0x29be14(_0x458cea[_0x4798('0xc9')],_0x458cea['end'])),_0x2971ea=new Set();for(const {suggestion:_0x4b8bc9,meta:_0x811230}of this['_findSuggestions'](_0x47c58b,'insertion'))_0x811230['isOwn']&&!_0x811230[_0x4798('0x24')]&&_0x2971ea[_0x4798('0xef')](_0x4b8bc9);for(const _0x5d1445 of _0x2971ea)if(_0x5d1445[_0x4798('0xa0')]){const _0x44d237=_0x5d1445[_0x4798('0x4d')]();(!_0x5d1445[_0x4798('0xfe')]||!_0x5d1445[_0x4798('0xfe')][_0x4798('0x114')])&&(_0x44d237['every'](_0xda77eb=>_0x47c58b[_0x4798('0x112')](_0x4bd8cc=>_0x4bd8cc['containsRange'](_0xda77eb,!0x0)))&&_0x5d1445[_0x4798('0x2')]());if(_0x47c58b['every'](_0x4f4108=>_0x44d237[_0x4798('0x112')](_0x4bcf41=>_0x4bcf41['containsRange'](_0x4f4108,!0x0)))){const _0x5e6fb2=this[_0x4798('0x146')][_0x4798('0x91')](_0x4798('0x9f'),_0x506de2,_0x4798('0x45'));return this['forceDefaultExecution'](()=>_0x5e6fb2(_0x487200,null,_0x320514)),null;}}else{const _0x3fd15a=_0x5d1445['getFirstRange']();_0x47c58b[_0x4798('0x112')](_0x5f0157=>_0x5f0157['containsRange'](_0x3fd15a,!0x0))&&_0x5d1445[_0x4798('0x2')]();if(_0x47c58b[_0x4798('0x1')](_0x53a65d=>_0x3fd15a[_0x4798('0x66')](_0x53a65d,!0x0))){const _0x105108=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x9f'),_0x506de2,_0x4798('0x45'));return this[_0x4798('0x139')](()=>_0x105108(_0x47c58b,null,_0x320514)),null;}}const _0x173ccc=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x9f'),_0x506de2,'join');let _0x48e4db=null;for(const _0x1504e5 of this['getSuggestions']())if(_0x1504e5[_0x4798('0x167')]['id']==_0x12cd98['id']&&_0x1504e5[_0x4798('0x1c')]&&_0x4798('0x9f')==_0x1504e5['type']&&_0x1504e5[_0x4798('0x137')]==_0x506de2&&Pt(_0x1504e5,_0x320514)&&(_0x173ccc(_0x1504e5[_0x4798('0x4d')](),_0x47c58b)||_0x173ccc(_0x47c58b,_0x1504e5['getRanges']()))){if(_0x48e4db){if(_0x1504e5[_0x4798('0x8c')]&&_0x1504e5['commentThread']['length'])continue;for(const _0x4952a7 of _0x1504e5[_0x4798('0x4d')]())_0x48e4db['isIntersectingWithRange'](_0x4952a7)||_0x48e4db[_0x4798('0x87')](_0x4952a7);_0x1504e5[_0x4798('0x126')]();}else{_0x48e4db=_0x1504e5;for(const _0x2a714b of _0x47c58b)_0x1504e5['isIntersectingWithRange'](_0x2a714b)||_0x1504e5['addRange'](_0x2a714b);}}if(_0x48e4db)return _0x48e4db;_0x2971ea['clear']();for(const {suggestion:_0x3420a0,meta:_0x490a3e}of this[_0x4798('0x5d')](_0x47c58b,_0x4798('0x9f')))_0x490a3e[_0x4798('0xc8')]&&(this[_0x4798('0x44')]||!_0x490a3e['containsRangeInObject']&&!_0x490a3e['isInsideObject'])&&Pt(_0x3420a0,_0x320514)&&_0x2971ea[_0x4798('0xef')](_0x3420a0);for(const _0x37060d of _0x2971ea){const _0x348e8a=_0x37060d['getRanges']();if(!_0x320514||!_0x320514[_0x4798('0x114')]){if(_0x47c58b['every'](_0x48ef79=>_0x348e8a[_0x4798('0x112')](_0x5bbfdb=>_0x5bbfdb[_0x4798('0x66')](_0x48ef79,!0x0))))return _0x37060d;}(!_0x37060d[_0x4798('0xfe')]||!_0x37060d[_0x4798('0xfe')][_0x4798('0x114')])&&(_0x348e8a[_0x4798('0x1')](_0x682947=>_0x47c58b['some'](_0x342d8d=>_0x342d8d[_0x4798('0x66')](_0x682947,!0x0)))&&_0x37060d[_0x4798('0x2')]());}const _0x33b6db=_0x54da7a(),_0x150215=_0x12cd98['id'],_0x455841=_0x4798('0x47')+_0x506de2,_0x48d3d5=this[_0x4798('0x4a')]({'id':_0x33b6db,'type':_0x455841,'createdAt':new Date(),'authorId':_0x150215,'attributes':_0x320514});for(const _0x547c48 of _0x47c58b)_0x547c48[_0x4798('0x42')](),_0x547c48[_0x4798('0x2a')]||'$graveyard'==_0x547c48[_0x4798('0xfb')]['rootName']||this[_0x4798('0x129')](_0x455841,_0x33b6db,_0x150215,_0x547c48,_0x75b5b8['getMultiRangeId']());return _0x48d3d5;}[_0x4798('0xa8')](_0xdb0f43,_0x19e3e7,_0x5863ce,_0x590642,_0x42b4a3){if(_0xdb0f43[_0x4798('0x2a')])return[];if(_0x4798('0xe0')===this[_0x4798('0x2f')])return[];const _0xd9c033=this[_0x4798('0xb8')]['plugins'][_0x4798('0xb7')]('Users')['me']['id'],_0x3c656d=Array[_0x4798('0x162')](this[_0x4798('0x5')][_0x4798('0x15c')]())[_0x4798('0x3')](_0x358451=>'attribute'==_0x358451[_0x4798('0xa')]&&_0x358451[_0x4798('0x11a')][_0x4798('0x125')]==_0x19e3e7&&_0x358451[_0x4798('0x69')](_0xdb0f43));if('default'===this['_trackFormatChanges']){const _0x1ce707=this['_findSuggestions'](_0xdb0f43,'insertion')[_0x4798('0x3')](({meta:_0x1408ad})=>_0x1408ad[_0x4798('0xc8')]&&!_0x1408ad[_0x4798('0x6e')]&&!_0x1408ad[_0x4798('0x24')])[_0x4798('0x16b')](({suggestion:_0x564742})=>_0x564742);_0x3c656d[_0x4798('0x33')](..._0x1ce707);}const _0x273e67=new Map([[_0xdb0f43,_0x5863ce]]);for(const _0xf1c3f9 of _0x3c656d){const _0x44fe86=_0x4798('0x70')==_0xf1c3f9['type']?_0xf1c3f9[_0x4798('0x11a')][_0x4798('0xa4')]:void 0x0,_0x32c85b=_0xf1c3f9[_0x4798('0xa6')](),_0x115166=Array[_0x4798('0x162')](_0x273e67[_0x4798('0x58')]())['find'](_0x2b6c17=>_0x2b6c17['isIntersecting'](_0x32c85b));if(!_0x115166)continue;const _0xa960d5=_0x115166[_0x4798('0x136')](_0x32c85b);this[_0x4798('0xc1')](_0x19e3e7)&&_0x4798('0x72')==_0xf1c3f9[_0x4798('0xa')]&&0x0!=_0xa960d5[_0x4798('0xf1')]||(_0x273e67[_0x4798('0x10b')](_0x115166),_0xa960d5[_0x4798('0x89')](_0x4e8187=>{_0x273e67[_0x4798('0x28')](_0x4e8187,_0x5863ce);}),_0x4798('0x72')!=_0xf1c3f9[_0x4798('0xa')]&&_0x44fe86!=_0x590642&&_0x273e67['set'](_0x115166['getIntersection'](_0x32c85b),_0x44fe86));}const _0x412294=[];for(const [_0x45d29d,_0x343b48]of _0x273e67){const _0x5e24a4=_0x54da7a(),_0x2eb2c7={'key':_0x19e3e7,'oldValue':_0x343b48,'newValue':_0x590642};_0x19e3e7[_0x4798('0xf1')]>0x25&&console['warn'](_0x4798('0x13'),{'key':_0x19e3e7});const _0x47f4ea=('attribute:'+(_0x19e3e7+'|'+Et({'newValue':_0x590642})))['substring'](0x0,0x3c),_0x4ea038=this['_setSuggestionData']({'id':_0x5e24a4,'type':_0x47f4ea,'data':_0x2eb2c7,'createdAt':new Date(),'authorId':_0xd9c033,'attributes':_0x42b4a3});_0x412294[_0x4798('0x6c')](_0x4ea038),this[_0x4798('0x129')](_0x47f4ea,_0x5e24a4,_0xd9c033,_0x45d29d);}return _0x412294;}[_0x4798('0xe4')](_0x154ab6){this[_0x4798('0xe3')][_0x4798('0xef')](_0x154ab6);}[_0x4798('0xe1')](_0x395f84){this[_0x4798('0x95')][_0x4798('0xef')](_0x395f84);}[_0x4798('0xd')](_0x430786,_0xdfca76=[],_0xee4941=[]){this[_0x4798('0xda')](_0x430786,(_0x1b3c58,..._0x5f2e41)=>{this[_0x4798('0x150')](()=>{_0x1b3c58(..._0x5f2e41);});});for(const _0x2ec87e of _0xdfca76)this[_0x4798('0xe1')](_0x2ec87e);for(const _0x8db8ce of _0xee4941)this[_0x4798('0xe4')](_0x8db8ce);}['_getAttributeKey'](_0x30d07a){return _0x4798('0x70')==_0x30d07a[_0x4798('0xa')]?_0x30d07a[_0x4798('0x137')][_0x4798('0x12c')]('|')[0x0]:null;}['_setSuggestionRange'](_0x110261,_0x702a28){const _0x304576=_0x110261[_0x4798('0xb2')]();this[_0x4798('0x16d')][_0x4798('0x99')](_0x2fc033=>{_0x2fc033[_0x4798('0x15')](_0x304576,{'range':_0x702a28});});}[_0x4798('0x3d')](_0x452f1d){const _0x650ad9=_0x452f1d['id'],_0x3e40e0=this[_0x4798('0xb8')][_0x4798('0x14b')][_0x4798('0xb7')]('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x650ad9)||this[_0x4798('0x15b')][_0x4798('0xdd')]({'channelId':_0x3e40e0,'threadId':_0x650ad9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x432c0b=this[_0x4798('0x15b')][_0x4798('0x5c')](_0x650ad9);_0x432c0b[_0x4798('0xc6')](_0x4798('0x77')),_0x432c0b[_0x4798('0x77')]=!0x1,_0x452f1d[_0x4798('0x8c')]=_0x432c0b;}[_0x4798('0xed')](_0x1c42b6,_0x56ac43,_0xdbfdf5,_0x581276){if(_0x1c42b6[_0x4798('0xa')]!=_0x56ac43||_0x1c42b6[_0x4798('0x137')]!=_0xdbfdf5||_0x1c42b6['creator']['id']!=_0x581276)throw this[_0x4798('0xb8')][_0x4798('0x7')](_0x4798('0x159')),new _0x2e9c34(_0x4798('0x159'),this);}['_cutOutSuggestionMarker'](_0x1b9a1e,_0x2d374a){const _0x4c7fd0=_0x1b9a1e[_0x4798('0xa6')]();if(_0x2d374a[_0x4798('0x151')](_0x4c7fd0))_0x1b9a1e[_0x4798('0x126')]();else{if(_0x4c7fd0[_0x4798('0x66')](_0x2d374a)){const _0x1fe3c4=this['_model'][_0x4798('0x9c')](_0x2d374a[_0x4798('0xc9')][_0x4798('0x50')],_0x4798('0x4e'));this[_0x4798('0xfd')](_0x1b9a1e,this['_model'][_0x4798('0x93')](_0x4c7fd0[_0x4798('0xc9')],_0x1fe3c4));const _0x28b8bc=_0x54da7a(),_0x19895c=_0x1b9a1e['creator']['id'],_0x397a2f=_0x1b9a1e[_0x4798('0xa')]+':'+_0x1b9a1e[_0x4798('0x137')];this[_0x4798('0x4a')]({'id':_0x28b8bc,'type':_0x397a2f,'createdAt':new Date(),'authorId':_0x19895c,'data':_0x1b9a1e['data'],'attributes':_0x1b9a1e[_0x4798('0xfe')]});const _0x5271d7=this['_model']['createPositionAt'](_0x2d374a[_0x4798('0x4e')][_0x4798('0x14a')],_0x4798('0x12b')),_0x1de47c=this[_0x4798('0x16d')]['createRange'](_0x5271d7,_0x4c7fd0[_0x4798('0x4e')]);this['_addSuggestionMarker'](_0x397a2f,_0x28b8bc,_0x19895c,_0x1de47c);}else{if(_0x4c7fd0[_0x4798('0x116')](_0x2d374a[_0x4798('0xc9')])){const _0x32c25c=this[_0x4798('0x16d')][_0x4798('0x9c')](_0x2d374a[_0x4798('0xc9')][_0x4798('0x50')],_0x4798('0x4e'));this[_0x4798('0xfd')](_0x1b9a1e,this['_model'][_0x4798('0x93')](_0x4c7fd0[_0x4798('0xc9')],_0x32c25c));}else{const _0x212aa3=this['_model'][_0x4798('0x9c')](_0x2d374a[_0x4798('0x4e')][_0x4798('0x14a')],_0x4798('0x12b'));this[_0x4798('0xfd')](_0x1b9a1e,this[_0x4798('0x16d')][_0x4798('0x93')](_0x212aa3,_0x4c7fd0[_0x4798('0x4e')]));}}}}['_rangeIsInLocalUserInsertion'](_0x5ddba7){for(const {suggestion:_0x436cbc,meta:_0x1670e9}of this[_0x4798('0x5d')](_0x5ddba7,'insertion')){if(!_0x1670e9[_0x4798('0xc8')])continue;const _0x2a3999=_0x436cbc['getRanges']();for(const _0x2f27c3 of _0x2a3999)if(!_0x5ddba7['getDifference'](_0x2f27c3)[_0x4798('0xf1')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x13b15b){const _0x268d07=this['editor']['plugins'][_0x4798('0xb7')]('Users')[_0x4798('0x61')](_0x13b15b);if(!_0x268d07)throw new _0x2e9c34(_0x4798('0x171'),this);return _0x268d07;}[_0x4798('0xb6')](_0x33d8ce){const _0x5ac5e5=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x1b')),_0xedfb26=_0x32f53a(_0x4798('0xbf')+_0x33d8ce),_0x2524a0=_0x5ac5e5[_0x4798('0x61')](_0xedfb26);return _0x2524a0||_0x5ac5e5[_0x4798('0x86')]({'id':_0xedfb26,'name':_0x33d8ce});}[_0x4798('0xd2')](_0x2d834f,_0x13ac4b,_0x786f17,_0x232b93,_0x3ba5ef){const _0x222b0d=this['_getAuthorFromId'](_0x232b93),_0x13e102=this[_0x4798('0x146')][_0x4798('0xb3')](_0x2d834f,_0x13ac4b,_0x786f17,_0x222b0d,_0x3ba5ef,_0x17f434=>{this[_0x4798('0x102')](_0x786f17,{'attributes':_0x17f434});const _0x2aa894=this[_0x4798('0x12')](_0x786f17);this[_0x4798('0x98')](new Set([_0x2aa894])),this['_refreshSuggestionsChain'](new Set([_0x2aa894]));});return this[_0x4798('0xac')](_0x13e102,_0x4798('0x45'),()=>{this[_0x4798('0x102')](_0x786f17,{'state':_0x4798('0xe8')});},{'priority':_0x4798('0xd9')}),this['listenTo'](_0x13e102,'discard',()=>{this['_updateSuggestionData'](_0x786f17,{'state':_0x4798('0x7d')});},{'priority':_0x4798('0xd9')}),this[_0x4798('0x5')][_0x4798('0x28')](_0x786f17,_0x13e102),this['_suggestionState'][_0x4798('0x28')](_0x13e102,'notReady'),_0x13e102;}[_0x4798('0x65')](_0x1704f6){const _0x418916=_0x1704f6[_0x4798('0x12c')](':');return{'group':_0x418916[0x0],'type':_0x418916[0x1],'subType':_0x418916[_0x4798('0xf1')]>=0x5?_0x418916[0x2]:null,'id':_0x418916[_0x4798('0xf1')]<0x5?_0x418916[0x2]:_0x418916[0x3],'authorId':_0x418916['length']<0x5?_0x418916[0x3]:_0x418916[0x4],'markerCount':0x6==_0x418916[_0x4798('0xf1')]?_0x418916[0x5]:null};}['_breakSuggestionMarker'](_0x4752c6,_0x49efd0,_0x15788c){const _0x1dc1f5=_0x4752c6[_0x4798('0xa6')](),_0x7bc81=_0x1dc1f5['start'],_0x48a331=_0x1dc1f5[_0x4798('0x4e')];this['_setSuggestionRange'](_0x4752c6,this['_model'][_0x4798('0x93')](_0x7bc81,_0x49efd0));const _0x4aae49=_0x54da7a(),_0x341725=_0x4752c6[_0x4798('0x153')]['id'],_0x21f786=_0x4752c6[_0x4798('0xa')]+(_0x4752c6[_0x4798('0x137')]?':'+_0x4752c6[_0x4798('0x137')]:'');this[_0x4798('0x4a')]({'id':_0x4aae49,'type':_0x21f786,'createdAt':new Date(),'authorId':_0x341725,'originalSuggestionId':_0x4752c6['id'],'attributes':_0x4752c6[_0x4798('0xfe')],'data':_0x4752c6[_0x4798('0x11a')]});const _0x47095c=this['_getAttributeKey'](_0x4752c6);(_0x4798('0x122')==_0x4752c6[_0x4798('0xa')]||_0x47095c&&this[_0x4798('0xc1')](_0x47095c))&&(_0x15788c=this[_0x4798('0x16d')][_0x4798('0xc3')](_0x15788c[_0x4798('0x14a')])),this[_0x4798('0x129')](_0x21f786,_0x4aae49,_0x341725,this[_0x4798('0x16d')][_0x4798('0x93')](_0x15788c,_0x48a331));}['_findSuggestions'](_0x20f3ac,_0x4a6f53=null){const _0x4a4797=[],_0xd1d33a=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x1b'))['me'];Array[_0x4798('0x2c')](_0x20f3ac)||(_0x20f3ac=[_0x20f3ac]);for(const _0x4fe6a4 of this[_0x4798('0x6d')]()){if(!_0x4fe6a4[_0x4798('0x1c')])continue;if(_0x4a6f53&&_0x4fe6a4['type']!=_0x4a6f53)continue;let _0x268b07=!0x1;for(const _0x37d82f of _0x4fe6a4[_0x4798('0x4d')]()){for(const _0x1e3b5c of _0x20f3ac){const _0xfca4e3=_0x1e3b5c[_0x4798('0xc9')][_0x4798('0x151')](_0x37d82f[_0x4798('0x4e')])||_0x1e3b5c[_0x4798('0x4e')]['isEqual'](_0x37d82f[_0x4798('0xc9')]);if(_0xfca4e3||_0x1e3b5c['getIntersection'](_0x37d82f)){const _0x5af0de=_0x1e3b5c['containsRange'](_0x37d82f)&&xt(this['_model'][_0x4798('0xcd')],_0x37d82f[_0x4798('0xc9')],_0x1e3b5c),_0x183636=_0x37d82f['containsRange'](_0x1e3b5c)&&xt(this[_0x4798('0x16d')][_0x4798('0xcd')],_0x1e3b5c[_0x4798('0xc9')],_0x37d82f);_0x4a4797[_0x4798('0x6c')]({'suggestion':_0x4fe6a4,'meta':{'isOwn':_0xd1d33a==_0x4fe6a4[_0x4798('0x167')],'isNextTo':_0xfca4e3,'isInsideObject':_0x5af0de,'containsRangeInObject':_0x183636}}),_0x268b07=!0x0;break;}}if(_0x268b07)break;}}return _0x4a4797;}[_0x4798('0x129')](_0x3be8f8,_0x1b863e,_0x4c458b,_0x35fd89,_0x23d847){this[_0x4798('0x16d')][_0x4798('0x99')](_0x7dbae9=>{let _0x3e38f3=_0x4798('0x52')+_0x3be8f8+':'+_0x1b863e+':'+_0x4c458b;_0x23d847&&(_0x3e38f3=_0x3e38f3+':'+_0x23d847),_0x7dbae9[_0x4798('0xd7')](_0x3e38f3,{'range':_0x35fd89,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4798('0x15a')](_0x3cc4db){const _0x472567=_0x3cc4db[_0x4798('0xec')],_0x1800e7=_0x3cc4db[_0x4798('0xcc')];_0x3cc4db[_0x4798('0xec')]=null,_0x3cc4db[_0x4798('0xcc')]=null,null!=_0x472567&&_0x472567[_0x4798('0xcc')]==_0x3cc4db&&(_0x472567['next']=_0x1800e7),null!=_0x1800e7&&_0x1800e7[_0x4798('0xec')]==_0x3cc4db&&(_0x1800e7[_0x4798('0xec')]=_0x472567),'ready'==this[_0x4798('0xb4')][_0x4798('0xb7')](_0x3cc4db)&&(this['_suggestionState'][_0x4798('0x28')](_0x3cc4db,_0x4798('0xe9')),this[_0x4798('0x67')]('suggestionUnloaded',_0x3cc4db,_0x472567,_0x1800e7));}[_0x4798('0x4a')](_0x585cbe){const _0x56ad81=_0x585cbe['id'],_0x371ecf=this[_0x4798('0xca')](_0x585cbe);if(this['_adapter']&&this[_0x4798('0xc')][_0x4798('0xe5')]){const _0x10afd9=this[_0x4798('0xb8')][_0x4798('0xe6')]['get'](_0x4798('0x51')),_0x23b6e4=_0x371ecf[_0x4798('0xc0')],_0x5b6a56=_0x371ecf[_0x4798('0x137')]?_0x371ecf['type']+':'+_0x371ecf['subType']:_0x371ecf['type'],_0x5d8f7e=this[_0x4798('0xb8')][_0x4798('0xb')],_0x21650d=_0x10afd9[_0x4798('0xef')](_0x5379c0(_0x5d8f7e,_0x4798('0xdf'))),_0x49f140={'id':_0x56ad81,'type':_0x5b6a56,'hasComments':_0x23b6e4,'data':_0x585cbe[_0x4798('0x11a')]||null,'originalSuggestionId':_0x585cbe[_0x4798('0x147')]||null,'attributes':_0x371ecf[_0x4798('0xfe')]};this[_0x4798('0xc')]['addSuggestion'](_0x49f140)[_0x4798('0x140')](_0x55959a=>{_0x371ecf[_0x4798('0x160')]=!0x0,_0x10afd9[_0x4798('0x8a')](_0x21650d),_0x55959a&&_0x55959a[_0x4798('0x111')]&&(this['_suggestions'][_0x4798('0xb7')](_0x56ad81)['createdAt']=_0x55959a[_0x4798('0x111')]);})[_0x4798('0xb9')](_0x11d147=>{throw _0x4ae452(_0x4798('0xd5')),this[_0x4798('0xb8')][_0x4798('0x83')][_0x4798('0x161')]({'isUndoable':!0x1},()=>{_0x371ecf['discard']();}),_0x371ecf['stopListening'](),this['_suggestions']['delete'](_0x371ecf['id']),this['_suggestionState'][_0x4798('0x10b')](_0x371ecf),_0x11d147;});}return _0x371ecf;}['_isBlockAttribute'](_0x3c8030){return this[_0x4798('0xe3')][_0x4798('0xbb')](_0x3c8030);}[_0x4798('0x102')](_0x447e3a,_0x507261){const _0x5769a9=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x51')),_0x188901=this[_0x4798('0x12')](_0x447e3a);if(this['_adapter']&&this[_0x4798('0xc')][_0x4798('0x40')]){if(_0x188901[_0x4798('0x160')]){const _0x53acbf=_0x5769a9['add'](_0x5379c0(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x4798('0x40')](_0x447e3a,_0x507261)[_0x4798('0x140')](()=>{_0x5769a9[_0x4798('0x8a')](_0x53acbf);});}else _0x188901['on'](_0x4798('0x120'),()=>{this[_0x4798('0x102')](_0x447e3a,_0x507261);});}}[_0x4798('0x132')](_0x580242){if(!this['_adapter']||!this[_0x4798('0xc')][_0x4798('0x12')])throw new _0x2e9c34(_0x4798('0xba'),this);return this[_0x4798('0xc')][_0x4798('0x12')](_0x580242);}['_handleNewSuggestionMarker'](_0x5fce2d){const {id:_0x50edda,type:_0xbc516e,subType:_0x309bd4,authorId:_0x36ff12}=this[_0x4798('0x65')](_0x5fce2d),_0x463add=this[_0x4798('0x5')][_0x4798('0xb7')](_0x50edda)||this[_0x4798('0xd2')](_0xbc516e,_0x309bd4,_0x50edda,_0x36ff12,{});switch(this['_checkSuggestionCorrectness'](_0x463add,_0xbc516e,_0x309bd4,_0x36ff12),this[_0x4798('0xb4')]['get'](_0x463add)){case _0x4798('0x166'):this['_getSuggestionData'](_0x50edda)[_0x4798('0x140')](_0x4f3512=>{let _0x1d148d=Promise[_0x4798('0xdc')]();_0x4f3512[_0x4798('0xc0')]&&(_0x1d148d=this[_0x4798('0x15b')][_0x4798('0x34')]({'channelId':this[_0x4798('0xb8')]['config'][_0x4798('0xb7')]('collaboration.channelId'),'threadId':_0x50edda})),_0x1d148d[_0x4798('0x140')](()=>{this[_0x4798('0xca')](_0x4f3512)[_0x4798('0x160')]=!0x0;});}),this['_suggestionState'][_0x4798('0x28')](_0x463add,_0x4798('0x104'));break;case _0x4798('0xe9'):this[_0x4798('0x102')](_0x50edda,{'state':'open'});case _0x4798('0xfa'):this[_0x4798('0xb4')]['set'](_0x463add,_0x4798('0x92')),this[_0x4798('0x67')]('suggestionLoaded',_0x463add);break;case'ready':this[_0x4798('0x67')](_0x4798('0x21'),_0x463add);}return _0x463add[_0x4798('0xbe')](_0x5fce2d),_0x463add;}[_0x4798('0x15e')](_0x5673b6){const _0x25c227=Array[_0x4798('0x162')](_0x5673b6),_0x3b3a92=_0x25c227[_0x4798('0x3')](_0x1895f7=>_0x4798('0x70')==_0x1895f7[_0x4798('0xa')]);this[_0x4798('0x135')](_0x3b3a92);const _0x27ef2d=_0x25c227[_0x4798('0x3')](_0x4d548f=>!_0x4d548f[_0x4798('0xa0')]&&_0x4798('0x70')!=_0x4d548f[_0x4798('0xa')]),_0x574d8e=this[_0x4798('0x6d')]({'skipNotAttached':!0x0})[_0x4798('0x3')](_0x1f329f=>!_0x1f329f[_0x4798('0xa0')]&&_0x4798('0x70')!=_0x1f329f[_0x4798('0xa')]),_0x16df5c=_0x574d8e[_0x4798('0x3')](_0x4c15da=>!_0x5673b6[_0x4798('0xbb')](_0x4c15da)),_0x58914f=new Map(_0x574d8e[_0x4798('0x16b')](_0xba5009=>[_0xba5009,this[_0x4798('0x146')][_0x4798('0x91')](_0xba5009[_0x4798('0xa')],_0xba5009[_0x4798('0x137')],_0x4798('0xf'))])),_0x34e321=new Map(_0x574d8e[_0x4798('0x16b')](_0x56f601=>[_0x56f601,_0x56f601[_0x4798('0xa6')]()])),_0x447d43=new Set(),_0x1e06b3=new Set();for(let _0x43da81=0x0;_0x43da81<_0x27ef2d[_0x4798('0xf1')];_0x43da81++)_0x3d3d3f(_0x27ef2d[_0x43da81],_0x27ef2d,_0x43da81+0x1);for(let _0x13ef2e=0x0;_0x13ef2e<_0x27ef2d[_0x4798('0xf1')];_0x13ef2e++)_0x3d3d3f(_0x27ef2d[_0x13ef2e],_0x16df5c,0x0);const _0x507100=new Set();for(let _0x238700=0x0;_0x238700<_0x27ef2d[_0x4798('0xf1')];_0x238700++){const _0x22ad7f=_0x27ef2d[_0x238700];!_0x1e06b3[_0x4798('0xbb')](_0x22ad7f)&&_0x22ad7f[_0x4798('0xec')]&&(_0x507100[_0x4798('0xef')](_0x22ad7f[_0x4798('0xec')]),_0x22ad7f[_0x4798('0xec')][_0x4798('0xcc')]===_0x22ad7f&&(_0x22ad7f['previous']['next']=null),_0x22ad7f[_0x4798('0xec')]=null),!_0x447d43[_0x4798('0xbb')](_0x22ad7f)&&_0x22ad7f[_0x4798('0xcc')]&&(_0x507100[_0x4798('0xef')](_0x22ad7f[_0x4798('0xcc')]),_0x22ad7f['next'][_0x4798('0xec')]===_0x22ad7f&&(_0x22ad7f[_0x4798('0xcc')]['previous']=null),_0x22ad7f['next']=null);}function _0x3d3d3f(_0x381ff6,_0x363aec,_0x113015){for(let _0x286ebf=_0x113015;_0x286ebf<_0x363aec[_0x4798('0xf1')];_0x286ebf++){const _0x3fe48b=_0x4215bb(_0x381ff6,_0x363aec[_0x286ebf]);_0x3fe48b&&(_0x3fe48b[0x0]['next']=_0x3fe48b[0x1],_0x3fe48b[0x1][_0x4798('0xec')]=_0x3fe48b[0x0],_0x447d43[_0x4798('0xef')](_0x3fe48b[0x0]),_0x1e06b3[_0x4798('0xef')](_0x3fe48b[0x1]));}}function _0x4215bb(_0x4f4516,_0x573fe6){if(_0x4f4516[_0x4798('0x167')]['id']!==_0x573fe6[_0x4798('0x167')]['id'])return null;const _0x24b001=_0x58914f[_0x4798('0xb7')](_0x4f4516)(_0x4f4516,_0x573fe6,_0x34e321[_0x4798('0xb7')](_0x4f4516),_0x34e321[_0x4798('0xb7')](_0x573fe6));if(!_0x24b001)return null;return _0x58914f[_0x4798('0xb7')](_0x573fe6)(_0x4f4516,_0x573fe6,_0x34e321[_0x4798('0xb7')](_0x4f4516),_0x34e321[_0x4798('0xb7')](_0x573fe6))?_0x24b001[0x1][_0x4798('0x8c')]&&_0x24b001[0x1][_0x4798('0x8c')]['length']?null:_0x24b001:null;}_0x507100['size']&&this[_0x4798('0x15e')](_0x507100);}[_0x4798('0x135')](_0x5447a7){if(0x0==_0x5447a7[_0x4798('0xf1')])return;const _0x49d11a=this[_0x4798('0x6d')]({'skipNotAttached':!0x0})['filter'](_0x240846=>_0x4798('0x70')==_0x240846['type']&&_0x240846[_0x4798('0x2b')]),_0x1067e0=[],_0x285884=new Map();for(const _0x21a079 of _0x49d11a){const _0x403f0c=_0x32f53a(_0x21a079[_0x4798('0xfe')]);_0x285884[_0x4798('0xbb')](_0x403f0c)||(_0x285884[_0x4798('0x28')](_0x403f0c,_0x1067e0[_0x4798('0xf1')]),_0x1067e0[_0x4798('0x6c')]([]));const _0x39c0e4=_0x285884[_0x4798('0xb7')](_0x403f0c);_0x1067e0[_0x39c0e4][_0x4798('0x6c')](_0x21a079);}!function(){_0x1067e0[_0x4798('0x1d')]((_0x19d2aa,_0x2c3d2d)=>{const _0x320c42=_0x19d2aa[0x0][_0x4798('0x111')],_0x4b49af=_0x2c3d2d[0x0][_0x4798('0x111')];return _0x320c42==_0x4b49af?_0x19d2aa[0x0][_0x4798('0xfe')][_0x4798('0xee')]<_0x2c3d2d[0x0]['attributes']['groupId']?-0x1:0x1:_0x320c42<_0x4b49af?-0x1:0x1;});for(const _0x390629 of _0x1067e0)_0x390629['sort']((_0x156452,_0x5bec3f)=>_0x156452['id']<_0x5bec3f['id']?-0x1:0x1);}();for(let _0x3b00b1=0x0;_0x3b00b1<_0x1067e0['length'];_0x3b00b1++){if(0x0==_0x1067e0[_0x3b00b1][_0x4798('0xf1')])continue;const _0x49c87a=[];for(let _0x1f7e66=_0x3b00b1+0x1;_0x1f7e66<_0x1067e0['length'];_0x1f7e66++)0x0!=_0x1067e0[_0x1f7e66]['length']&&_0xfc041d(_0x1067e0[_0x3b00b1],_0x1067e0[_0x1f7e66])&&_0x49c87a[_0x4798('0x6c')](_0x1f7e66);for(const _0x47c62f of _0x49c87a)_0x1067e0[_0x3b00b1]=_0x1067e0[_0x3b00b1][_0x4798('0x130')](_0x1067e0[_0x47c62f]),_0x1067e0[_0x47c62f]=[];}for(const _0x43250f of _0x1067e0)for(let _0x3b1f5c=0x0;_0x3b1f5c<_0x43250f['length'];_0x3b1f5c++)_0x43250f[_0x3b1f5c]['next']=_0x43250f[_0x3b1f5c+0x1]||null;for(const _0x3c4d6a of _0x1067e0)for(let _0x14be6a=0x0;_0x14be6a<_0x3c4d6a['length'];_0x14be6a++)_0x3c4d6a[_0x14be6a]['previous']=_0x3c4d6a[_0x14be6a-0x1]||null;function _0xfc041d(_0x5bf545,_0x47c200){if(_0x5bf545[0x0]['attributes'][_0x4798('0xee')]!==_0x47c200[0x0][_0x4798('0xfe')][_0x4798('0xee')]&&_0x5bf545[0x0]['author']!==_0x47c200[0x0][_0x4798('0x167')])return!0x1;if(!function(_0x1503aa,_0x2d478e){if(!_0x1503aa[_0x4798('0xc0')]&&!_0x2d478e[_0x4798('0xc0')])return!0x0;if(_0x1503aa[_0x4798('0xc0')]&&_0x2d478e[_0x4798('0xc0')])return!0x1;if(_0x1503aa[_0x4798('0xc0')]&&_0x2d478e[_0x4798('0x111')]<_0x1503aa[_0x4798('0x8c')][_0x4798('0x11f')][_0x4798('0xb7')](0x0)['createdAt'])return!0x0;if(_0x2d478e['hasComments']&&_0x1503aa['createdAt']<_0x2d478e['commentThread'][_0x4798('0x11f')][_0x4798('0xb7')](0x0)[_0x4798('0x111')])return!0x0;return!0x1;}(_0x5bf545[0x0],_0x47c200[0x0]))return!0x1;const _0x1df8a9=_0x55cd11(_0x5bf545[0x0][_0x4798('0xfe')],_0x4798('0xee')),_0x51a2d1=_0x55cd11(_0x47c200[0x0][_0x4798('0xfe')],_0x4798('0xee'));if(!_0x1c6142(_0x1df8a9,_0x51a2d1))return!0x1;return!!_0x5bf545[_0x4798('0x1')](_0xb5e81e=>_0x47c200[_0x4798('0x112')](_0x4553a1=>_0xb5e81e[_0x4798('0xa6')]()[_0x4798('0x151')](_0x4553a1[_0x4798('0xa6')]())))&&_0x47c200['every'](_0x1ba36f=>_0x5bf545[_0x4798('0x112')](_0x25e656=>_0x1ba36f[_0x4798('0xa6')]()[_0x4798('0x151')](_0x25e656[_0x4798('0xa6')]())));}}['_joinWithAdjacentSuggestions'](_0x30fa9b){const _0x1896e5=Array[_0x4798('0x162')](_0x30fa9b),_0x5e350e=this[_0x4798('0x6d')]({'skipNotAttached':!0x0}),_0x3dc85a=_0x5e350e[_0x4798('0x3')](_0x5ad76e=>!_0x30fa9b[_0x4798('0xbb')](_0x5ad76e)),_0x5dc907=new Map(_0x1896e5[_0x4798('0x16b')](_0x1c1fdb=>[_0x1c1fdb,this[_0x4798('0x146')]['getSuggestionCallback'](_0x1c1fdb[_0x4798('0xa')],_0x1c1fdb[_0x4798('0x137')],'join')])),_0x582873=new Map(_0x5e350e[_0x4798('0x16b')](_0x4421e9=>[_0x4421e9,_0x4421e9[_0x4798('0x4d')]()]));for(let _0x29fd3d=0x0;_0x29fd3d<_0x1896e5[_0x4798('0xf1')];_0x29fd3d++){if(_0x1d5c0d(this,_0x1896e5[_0x29fd3d],_0x1896e5,_0x29fd3d+0x1))return!0x0;}for(let _0xaf5e2=0x0;_0xaf5e2<_0x1896e5[_0x4798('0xf1')];_0xaf5e2++){if(_0x1d5c0d(this,_0x1896e5[_0xaf5e2],_0x3dc85a,0x0))return!0x0;}return!0x1;function _0x1d5c0d(_0x21ade4,_0x3d0a53,_0x139745,_0xd2a221){for(let _0x54537b=_0xd2a221;_0x54537b<_0x139745['length'];_0x54537b++){const _0x59823f=_0x139745[_0x54537b];if(_0x59823f[_0x4798('0xa')]!==_0x3d0a53[_0x4798('0xa')]||_0x59823f[_0x4798('0x167')]['id']!==_0x3d0a53[_0x4798('0x167')]['id']||_0x59823f[_0x4798('0x137')]!==_0x3d0a53[_0x4798('0x137')])continue;if(!Ft(_0x3d0a53,_0x59823f,[_0x4798('0xee')]))continue;if(_0x4798('0x70')==_0x3d0a53[_0x4798('0xa')]&&_0x3d0a53[_0x4798('0x11a')][_0x4798('0xa4')]!=_0x59823f[_0x4798('0x11a')][_0x4798('0xa4')])continue;if(_0x4798('0x70')==_0x3d0a53[_0x4798('0xa')]&&_0x21ade4[_0x4798('0xc1')](_0x3d0a53[_0x4798('0x11a')][_0x4798('0x125')]))continue;if(_0x4798('0x122')==_0x3d0a53[_0x4798('0xa')]){const _0x2b7ac8=_0x21ade4[_0x4798('0xb8')][_0x4798('0x83')],_0x4881e1=_0x3d0a53[_0x4798('0x75')]();if(_0x4881e1&&(_0x2b7ac8[_0x4798('0xcd')][_0x4798('0x107')](_0x4881e1)||_0x2b7ac8[_0x4798('0xcd')][_0x4798('0x88')](_0x4881e1)))continue;}const _0x53a61b=_0x5dc907['get'](_0x3d0a53),_0x3d9155=_0x582873[_0x4798('0xb7')](_0x3d0a53),_0x292b00=_0x582873[_0x4798('0xb7')](_0x59823f),_0x544b3a=_0x3d0a53[_0x4798('0x8c')]&&_0x3d0a53[_0x4798('0x8c')][_0x4798('0xf1')],_0x273751=_0x59823f[_0x4798('0x8c')]&&_0x59823f[_0x4798('0x8c')][_0x4798('0xf1')];if(!_0x544b3a&&_0x53a61b(_0x292b00,_0x3d9155))return _0x21ade4[_0x4798('0x7b')](_0x59823f,_0x3d0a53),_0x582873['delete'](_0x3d0a53),!0x0;if(!_0x273751&&_0x53a61b(_0x3d9155,_0x292b00))return _0x21ade4[_0x4798('0x7b')](_0x3d0a53,_0x59823f),_0x582873['delete'](_0x59823f),!0x0;}return!0x1;}}[_0x4798('0x7b')](_0x2b34ba,_0x22d2d8){if(_0x2b34ba[_0x4798('0xa0')])for(const _0x542a29 of _0x22d2d8[_0x4798('0x4d')]())_0x2b34ba['addRange'](_0x542a29);else{const _0x1fa37a=_0x22d2d8[_0x4798('0xa6')]()[_0x4798('0x4e')];this['_setSuggestionRange'](_0x2b34ba,this[_0x4798('0x16d')][_0x4798('0x93')](_0x2b34ba[_0x4798('0xa6')]()[_0x4798('0xc9')],_0x1fa37a));}_0x22d2d8[_0x4798('0x126')]();}[_0x4798('0x2d')](_0x58ce14,_0x5f1948){const _0x7e3491=_0x58ce14[_0x4798('0xcb')](_0x4798('0x123'))||_0x58ce14[_0x4798('0xcb')]('attribute')?_0x4798('0x7e'):_0x58ce14[_0x4798('0x49')]();return _0x5379c0(this['editor'][_0x4798('0xb')],_0x5f1948+'_'+_0x7e3491+_0x4798('0x1a'));}[_0x4798('0x13f')](){const _0x25e39b=this[_0x4798('0xb8')];_0x58fb5a(this[_0x4798('0x16d')],({left:_0x41581b,entered:_0x5e8f0c})=>{const _0x48dd2f=[];for(const _0x1f4730 of _0x41581b){const {group:_0x3afc5a,type:_0x3cf784}=this[_0x4798('0x65')](_0x1f4730[_0x4798('0x82')]);if(_0x4798('0x14d')===_0x3afc5a){_0x48dd2f[_0x4798('0x6c')](this[_0x4798('0x2d')](_0x3cf784,_0x4798('0x5e')));break;}}for(const _0x2e8341 of _0x5e8f0c){const {group:_0x2e034a,type:_0x223305}=this[_0x4798('0x65')](_0x2e8341[_0x4798('0x82')]);if(_0x4798('0x14d')===_0x2e034a){_0x48dd2f[_0x4798('0x6c')](this['_getMarkerAnnouncementText'](_0x223305,_0x4798('0xd8')));break;}}_0x48dd2f['length']&&_0x25e39b['ui'][_0x4798('0xf4')]['announce'](_0x4798('0x11d'),_0x48dd2f[_0x4798('0x5a')]('\x20'));});}[_0x4798('0x168')](_0x46ab26){if(this[_0x4798('0x73')])return!0x1;const _0xf82215=this[_0x4798('0xb8')],_0x2a1773=_0xf82215['model'][_0x4798('0x8d')][_0x4798('0x155')][_0x4798('0x25')]();if(0x0==_0x2a1773[_0x4798('0xf1')])return!0x1;const _0x35bafb=[],_0x2c9878=_0x2a1773[_0x4798('0x3')](_0x14796c=>_0x4798('0x70')==_0x14796c['type']),_0x3c6cb8=_0x2a1773['filter'](_0x54b70c=>'insert'==_0x54b70c[_0x4798('0xa')]&&'$text'!=_0x54b70c[_0x4798('0x82')]),_0x450451=_0x2a1773[_0x4798('0x3')](_0x2990cf=>_0x4798('0x8a')==_0x2990cf[_0x4798('0xa')]&&_0x4798('0xaf')!=_0x2990cf[_0x4798('0x82')]);for(const _0x2cbc63 of _0x2c9878)_0x35bafb[_0x4798('0x6c')]({'key':_0x2cbc63[_0x4798('0x9a')],'newValue':_0x2cbc63[_0x4798('0x10d')],'oldValue':_0x2cbc63['attributeOldValue'],'range':Ut(_0x2cbc63['range'],_0xf82215['model'])});for(const _0x1d5882 of _0x3c6cb8){const _0x579d4e=_0x450451[_0x4798('0x76')](_0x26522e=>_0x26522e[_0x4798('0x173')]['isEqual'](_0x1d5882[_0x4798('0x173')]));_0x579d4e&&_0x35bafb[_0x4798('0x6c')]({'key':_0x4798('0x145'),'newValue':_0x1d5882[_0x4798('0x82')],'oldValue':_0x579d4e['name'],'range':_0xf82215['model']['createRangeOn'](_0x1d5882[_0x4798('0x173')][_0x4798('0x16')])});}return 0x0!=_0x35bafb[_0x4798('0xf1')]&&this[_0x4798('0xd1')](_0x46ab26,_0x35bafb);}['_processAttributeSuggestions'](_0x3eed0e){let _0x5a941a=!0x1;const _0x2781b1=this['editor']['model']['document']['differ'][_0x4798('0xd0')]()['filter'](_0x1dd66e=>_0x1dd66e['data'][_0x4798('0x10e')]&&_0x1dd66e[_0x4798('0x82')][_0x4798('0xcb')]('suggestion:attribute:'));for(const _0x19883e of _0x2781b1){const {subType:_0x2c6e7b,id:_0x43b15b}=this['_splitMarkerName'](_0x19883e[_0x4798('0x82')]),_0x44ef46=_0x2c6e7b[_0x4798('0x12c')]('|')[0x0];for(const _0x2f99ab of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f99ab['id']!=_0x43b15b&&_0x4798('0x70')==_0x2f99ab[_0x4798('0xa')]&&_0x2f99ab[_0x4798('0x11a')]&&_0x2f99ab[_0x4798('0x11a')][_0x4798('0x125')]==_0x44ef46&&_0x2f99ab[_0x4798('0xa6')]()[_0x4798('0x71')](_0x19883e[_0x4798('0x11a')]['newRange'])&&(this[_0x4798('0x59')](_0x2f99ab,_0x19883e[_0x4798('0x11a')][_0x4798('0x10e')],_0x3eed0e),_0x5a941a=!0x0);}return _0x5a941a;}[_0x4798('0x150')](_0x22503e){this[_0x4798('0xb8')],(this[_0x4798('0x73')]=!0x0,_0x22503e());}['_isRegisteredAttribute'](_0x56c8a9){const _0x1886ad=this[_0x4798('0xc1')](_0x56c8a9),_0x4789a9=this['_inlineAttributeKeys'][_0x4798('0xbb')](_0x56c8a9);return _0x1886ad||_0x4789a9;}['_reduceExistingSuggestions'](_0x5828ec,_0x5dfbb5){if(0x0==_0x5dfbb5['length'])return!0x1;let _0x4c7e12=!0x1;for(const _0x195ecb of _0x5dfbb5){const _0x5ab5b1=this[_0x4798('0x5d')](_0x195ecb[_0x4798('0x38')],_0x4798('0x70'))[_0x4798('0x3')](_0x95f5c4=>!_0x95f5c4[_0x4798('0x144')][_0x4798('0x24')])['map'](_0x51ed15=>_0x51ed15[_0x4798('0x14d')]),_0x11a12a=_0x32f53a({'newValue':_0x195ecb[_0x4798('0x4c')]});_0x5ab5b1['filter'](_0x8530b4=>{const [_0x560319,_0x4a4f48]=_0x8530b4[_0x4798('0x137')]['split']('|');return _0x560319==_0x195ecb[_0x4798('0x125')]&&_0x4a4f48!=_0x11a12a;})[_0x4798('0x89')](_0x1f5da3=>{this[_0x4798('0x59')](_0x1f5da3,_0x195ecb[_0x4798('0x38')],_0x5828ec),_0x4c7e12=!0x0;});}return _0x4c7e12;}[_0x4798('0x59')](_0xee34ef,_0xb41be,_0x45f05c){const _0x5db11c=_0xee34ef[_0x4798('0xa6')]()['getDifference'](_0xb41be);0x0!==_0x5db11c[_0x4798('0xf1')]?0x1!==_0x5db11c['length']?this[_0x4798('0x46')](_0xee34ef,_0xb41be['start'],_0xb41be[_0x4798('0x4e')]):this[_0x4798('0xfd')](_0xee34ef,_0x5db11c[0x0]):_0x45f05c[_0x4798('0x8')](_0xee34ef[_0x4798('0xb2')]());}}class Bt{constructor(_0x1f83d5){this[_0x4798('0x4')]=_0x1f83d5,this[_0x4798('0x16d')]=_0x1f83d5['model'],this[_0x4798('0xc4')]=new Map(),this[_0x4798('0xcf')]=new Map(),this[_0x4798('0xb0')]();}[_0x4798('0xb3')](_0x37915d,_0x2d314c,_0x176bee,_0x3bf373,_0x9b702d,_0x41f304){return new _0x75b5b8(this[_0x4798('0x16d')],{'type':_0x37915d,'subType':_0x2d314c,'id':_0x176bee,'author':_0x3bf373,'creator':_0x3bf373,'attributes':_0x9b702d,'onAttributesChange':_0x41f304,'onAccept':(..._0x2afc31)=>this[_0x4798('0x91')](_0x37915d,_0x2d314c,_0x4798('0x45'))(..._0x2afc31),'onDiscard':(..._0x13c111)=>this['getSuggestionCallback'](_0x37915d,_0x2d314c,_0x4798('0x2'))(..._0x13c111)});}['registerCustomCallback'](_0x226acb,_0x165fc8,_0x551b0a,_0x23c7da){const _0x583f3e=_0x226acb+':'+_0x165fc8+':'+_0x551b0a;this[_0x4798('0xc4')][_0x4798('0x28')](_0x583f3e,_0x23c7da);}[_0x4798('0x91')](_0x452f78,_0x5275c7,_0x2303e1){const _0x2398e9=_0x452f78+':'+_0x5275c7+':'+_0x2303e1;return this[_0x4798('0xc4')]['get'](_0x2398e9)||this['_defaultCallbacks'][_0x4798('0xb7')](_0x452f78+':'+_0x2303e1);}['_registerDefaultCallbacks'](){const _0x47c137=()=>!0x1,_0x3321c3=_0x48a95a=>{_0x48a95a[_0x4798('0x1d')]((_0x5cbca2,_0xe1e0b8)=>_0x5cbca2[_0x4798('0xc9')][_0x4798('0x12f')](_0xe1e0b8[_0x4798('0xc9')])?0x1:-0x1),this['_model'][_0x4798('0x99')](_0xb23c4=>{for(const _0x302cf4 of _0x48a95a){let _0x35e6a9;_0x35e6a9=_0x302cf4['end'][_0x4798('0x108')]&&_0x302cf4[_0x4798('0x4e')][_0x4798('0x14a')]==_0x302cf4[_0x4798('0xc9')][_0x4798('0x16')]?_0xb23c4[_0x4798('0xfc')](_0x302cf4[_0x4798('0xc9')][_0x4798('0x16')],'on'):_0xb23c4[_0x4798('0xfc')](_0x302cf4),this['_model'][_0x4798('0x138')](_0x35e6a9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x357312=(_0xc9d27,_0x1182f2)=>{_0x1182f2&&this[_0x4798('0x16d')][_0x4798('0x99')](_0x113b0b=>{const {commandName:_0x519538,commandParams:_0x2bbbbd=[]}=_0x1182f2,_0x323c3e=_0xc9d27[_0x4798('0x16b')](_0x4acb9b=>(Rt(_0x4acb9b)&&(_0x4acb9b=this[_0x4798('0x16d')]['createRange'](_0x4acb9b[_0x4798('0x4e')])),_0x4acb9b))[_0x4798('0x3')](_0x8cef60=>_0x4798('0x152')!==_0x8cef60[_0x4798('0xfb')][_0x4798('0xea')]);if(_0x323c3e[_0x4798('0xf1')]<0x1)return;const _0xd14430=Array[_0x4798('0x162')](this[_0x4798('0x16d')][_0x4798('0x8d')][_0x4798('0x169')][_0x4798('0x4d')]())[_0x4798('0x16b')](_0x5e146b=>_0x29be14[_0x4798('0x48')](_0x5e146b));_0x113b0b[_0x4798('0x37')](_0x323c3e);for(const _0x422b63 of this[_0x4798('0x4')][_0x4798('0x60')]['commands']())_0x422b63[_0x4798('0x4f')]();_0x2bbbbd[_0x4798('0x6c')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4798('0x18')](_0x519538,..._0x2bbbbd);const _0x6daa36=_0xd14430[_0x4798('0x3')](_0x42e52c=>_0x4798('0x152')!=_0x42e52c[_0x4798('0xfb')]['rootName']);_0x6daa36[_0x4798('0xf1')]>0x0&&_0x113b0b[_0x4798('0x37')](_0x6daa36);for(const _0x318c91 of _0xd14430)_0x318c91[_0x4798('0x42')]();});},_0x32adc5=(_0x16104f,_0x347666)=>0x1==_0x16104f[_0x4798('0xf1')]&&0x1==_0x347666[_0x4798('0xf1')]&&_0x16104f[0x0][_0x4798('0x4e')][_0x4798('0x151')](_0x347666[0x0]['start']),_0x53bebf=(_0x483e36,_0x210576,_0x52b071,_0x429421)=>Gt(_0x483e36,_0x210576,_0x52b071,_0x429421,this[_0x4798('0x16d')])?[_0x483e36,_0x210576]:Gt(_0x210576,_0x483e36,_0x429421,_0x52b071,this[_0x4798('0x16d')])?[_0x210576,_0x483e36]:null;this[_0x4798('0xcf')][_0x4798('0x28')]('insertion:accept',_0x47c137),this['_defaultCallbacks']['set'](_0x4798('0x143'),_0x3321c3),this[_0x4798('0xcf')]['set']('insertion:join',_0x32adc5),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0xad'),_0x53bebf),this[_0x4798('0xcf')][_0x4798('0x28')]('deletion:accept',_0x3321c3),this[_0x4798('0xcf')]['set']('deletion:discard',_0x47c137),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x16f'),_0x32adc5),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x26'),_0x53bebf),this[_0x4798('0xcf')][_0x4798('0x28')]('formatInline:accept',_0x357312),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x74'),_0x47c137),this['_defaultCallbacks'][_0x4798('0x28')](_0x4798('0x8e'),_0x32adc5),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x27'),_0x47c137),this[_0x4798('0xcf')][_0x4798('0x28')]('formatBlock:accept',_0x357312),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x165'),_0x47c137),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x80'),_0x32adc5),this['_defaultCallbacks'][_0x4798('0x28')]('formatBlock:chain',_0x47c137),this[_0x4798('0xcf')]['set'](_0x4798('0x5b'),_0x47c137),this['_defaultCallbacks']['set'](_0x4798('0x1e'),(_0x40c0cd,_0x592716)=>{if(!_0x592716)return;const _0x1a44a4=this[_0x4798('0x4')][_0x4798('0xe6')][_0x4798('0xb7')](p);this[_0x4798('0x16d')][_0x4798('0x99')](_0x3417ca=>{if('$elementName'==_0x592716[_0x4798('0x125')])for(const _0x10813e of _0x40c0cd){const _0x509997=_0x10813e[_0x4798('0xc9')][_0x4798('0x16')],_0x338b63=_0x592716[_0x4798('0xa4')];_0x3417ca[_0x4798('0x4b')](_0x509997,_0x338b63);}else{if(_0x1a44a4[_0x4798('0xc1')](_0x592716['key']))for(const _0x27463e of _0x40c0cd)void 0x0!==_0x592716[_0x4798('0xa4')]?_0x3417ca[_0x4798('0x164')](_0x592716['key'],_0x592716[_0x4798('0xa4')],_0x27463e[_0x4798('0xc9')][_0x4798('0x16')]):_0x3417ca[_0x4798('0xa1')](_0x592716['key'],_0x27463e['start']['nodeAfter']);else for(const _0x4782fe of _0x40c0cd)_0x592716[_0x4798('0xa4')]?_0x3417ca[_0x4798('0x164')](_0x592716[_0x4798('0x125')],_0x592716[_0x4798('0xa4')],_0x4782fe):_0x3417ca[_0x4798('0xa1')](_0x592716['key'],_0x4782fe);}});}),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0xdb'),_0x32adc5);}}function xt(_0x1fc42a,_0x4761d4,_0x3f7da0){for(const _0x508b26 of _0x4761d4['parent'][_0x4798('0x163')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x508b26[_0x4798('0xfb')]==_0x508b26)return!0x1;if(!_0x3f7da0['containsItem'](_0x508b26))return!0x1;if(_0x1fc42a[_0x4798('0x107')](_0x508b26)||_0x1fc42a[_0x4798('0x88')](_0x508b26))return!0x0;}return!0x1;}function Rt(_0x5dd7b7){return _0x5dd7b7[_0x4798('0x4e')][_0x4798('0x14a')]==_0x5dd7b7['start']['nodeAfter']&&_0x5dd7b7['end'][_0x4798('0x90')];}function Tt(_0x52461a,_0x37020b,_0x2a5b61,_0x7ccf06){const _0x140656=_0x4a48e5=>!_0x4a48e5[_0x4798('0x142')]['is'](_0x4798('0x158'))&&!_0x7ccf06['isObject'](_0x4a48e5['item']),_0x75ca86=_0x52461a[_0x4798('0xc9')][_0x4798('0x157')](_0x140656),_0x11e853=_0x52461a[_0x4798('0x4e')][_0x4798('0x157')](_0x140656,{'direction':_0x4798('0xa9')});return(!_0x52461a[_0x4798('0xc9')][_0x4798('0x151')](_0x75ca86)||!_0x52461a[_0x4798('0x4e')][_0x4798('0x151')](_0x11e853))&&(_0x75ca86[_0x4798('0x12f')](_0x11e853)?_0x2a5b61['updateMarker'](_0x37020b,{'range':_0x2a5b61[_0x4798('0x93')](_0x75ca86,_0x11e853)}):_0x2a5b61['removeMarker'](_0x37020b),!0x0);}function Et(_0x268528){return _0x32f53a(_0x268528);}function Vt(_0x204dc3){const _0x1e28bc=_0x204dc3[_0x4798('0xc9')][_0x4798('0x16')];return _0x1e28bc&&_0x1e28bc['is'](_0x4798('0x12e'));}function Ut(_0x636576,_0x27b443){return null==_0x636576[_0x4798('0x4e')][_0x4798('0x50')]&&_0x636576[_0x4798('0x4e')][_0x4798('0x14a')]==_0x636576[_0x4798('0xc9')][_0x4798('0x16')]?Ot(_0x636576[_0x4798('0xc9')][_0x4798('0x16')],_0x27b443):_0x636576;}function Ot(_0x4426ba,_0x14515b){const _0x576aa8=_0x14515b['schema']['isObject'](_0x4426ba)||_0x14515b['schema']['isSelectable'](_0x4426ba);return _0x14515b[_0x4798('0x93')](_0x14515b[_0x4798('0x9c')](_0x4426ba,_0x4798('0xc5')),_0x576aa8?_0x14515b['createPositionAfter'](_0x4426ba):_0x14515b[_0x4798('0x9c')](_0x4426ba,_0x4798('0x4e')));}function Gt(_0x1ff3c7,_0x41e05e,_0x282168,_0xb0cd5e,_0x2a2a3d){if(!Ft(_0x1ff3c7,_0x41e05e))return!0x1;if(_0x282168[_0x4798('0x4e')][_0x4798('0x151')](_0xb0cd5e[_0x4798('0xc9')]))return!0x0;if(_0x1ff3c7[_0x4798('0xa')]!=_0x41e05e[_0x4798('0xa')])return!0x1;if(!_0x282168['end'][_0x4798('0x12d')](_0xb0cd5e[_0x4798('0xc9')]))return!0x1;const _0x48201a=_0x2a2a3d[_0x4798('0x93')](_0x282168['end'],_0xb0cd5e['start'])[_0x4798('0xff')]();for(const _0x4d7305 of _0x48201a)if([_0x4798('0x57'),_0x4798('0x6a')]['includes'](_0x4d7305[_0x4798('0xa')])&&_0x2a2a3d[_0x4798('0xcd')][_0x4798('0x88')](_0x4d7305[_0x4798('0x142')]))return!0x1;return!0x0;}function Ft(_0x432cb8,_0xd6b3a1,_0x40588c=[]){return!(!_0x432cb8[_0x4798('0x2b')]||!_0xd6b3a1[_0x4798('0x2b')])&&_0x1c6142(_0x55cd11(_0x432cb8[_0x4798('0xfe')],_0x40588c),_0x55cd11(_0xd6b3a1[_0x4798('0xfe')],_0x40588c));}function Pt(_0x5e8584,_0x30f44e){const _0x2ca3c1=Lt(_0x5e8584[_0x4798('0xfe')]),_0x8b82b2=Lt(_0x30f44e);if(!_0x5e8584[_0x4798('0x2b')])return!0x1;for(const _0x1d93aa of Object[_0x4798('0x58')](_0x8b82b2))if(!_0x1c6142(_0x2ca3c1[_0x1d93aa],_0x8b82b2[_0x1d93aa]))return!0x1;return!0x0;}function Lt(_0x2ad8fa){const _0x1a08b3=Object[_0x4798('0x119')]({},_0x2ad8fa);return delete _0x1a08b3[_0x4798('0x114')],delete _0x1a08b3[_0x4798('0x118')],_0x1a08b3;}