@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240124.0 → 0.0.0-nightly-20240126.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.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x339a=['open','end','markerName','map','add','announce','never','isBlock','formatInline:discard','_registerBlockAttribute','_trackFormatChanges','removeMarker','plugins','acceptSuggestion','markerReady','unbindElementFromMarkerName','_adapter','activeMarkers','commands','toJSON','newRange','formatInline:accept','marker-count','elementStart','_joinWithAdjacentSuggestions','writer','addCommentThread','createRangeIn','getItems','size','rootName','_model','_registerDefaultCallbacks','_suggestionFactory','_getAttributeKey','getCustomProperty','deletion:accept','_setSuggestionRange','newValue','pop','track-changes-suggestion-not-found','isBefore','ck-suggestion-marker-formatInline','markInlineFormat','subType','getNearestSelectionRange','_isBlockAttribute','parent','containsItem','ready','differ','position','getRanges','formatBlock','isObject','formatBlock:discard','adapter','meta','isMultiRange','registerPostFixer','always','moveTargetPosition','insertion:chain','hasComments','_blockAttributeKeys','_getMarkerAnnouncementText','track-changes-enable-command-twice','default','discardAllSuggestions','clone','_refreshSuggestionsChain','_isForcedDefaultExecutionBlock','trackChanges','getShiftedBy','addMarker:suggestion:attribute','every','upcast','deletion:discard','ck-suggestion-marker-formatBlock','stopListening','get','CommentsRepository','detach','fire','removeMarkers','TrackChangesEditing','isAfter','mapper','markMultiRangeBlockFormat','PendingActions','_getExternalAuthor','_reduceExistingSuggestions','insertion','includes','getMarkers','suggestionUnloaded','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.','ck-suggestion-marker--active','locale','deletion:chain','markBlockFormat','$graveyard','containsRange','_isRegisteredAttribute','key','config','removeMarker:suggestion:formatBlock','ck-suggestion-marker-','hasCommentThread','dataToMarker','_recordAttributeSuggestions','addSuggestion','elementToElement','isLimit','formatBlock:accept','attribute:accept','getCommentThread','ck-suggestion-marker','_checkSuggestionCorrectness','suggestion:attribute:','isLocal','isEqual','forward','_editor','insertContent','backward','createElement','createSelection','root','skipNestingCheck','$marker','track-changes-user-not-found','removeMarker:suggestion:attribute','registerCustomCallback','getAllAdjacentSuggestions','_inlineAttributeKeys','Users','track-changes-adapter-missing-getsuggestion','containsRangeInObject','tablePasteChainId','push','_splitMarkerName','enableCommand','_cutOutSuggestionMarker','attribute:discard','_suggestions','howMany','updateSuggestion','isUndo','move','_addSuggestionMarker','_getSuggestionData','low','_enableDefaultAttributesIntegration','PENDING_ACTION_SUGGESTION','documentSelection','from','getContainedElement','showSuggestionHighlights','consumable','_rangeIsInLocalUserInsertion','execute','nodeAfter','_defaultCallbacks','commandName','oldValue','oldRange','deletion:join','isOwn','document','model','_customCallbacks','isIntersectingWithRange','getIntersection','insertion:','track-changes-command-not-found','$text','clear','markers','FORMATTING','schema','containsPosition','formatInline:join','resolve','delete','isExternal','getUser','creator','range','change:data','$elementName','splice','error-saving-suggestion-data-suggestion-discarded','getLastMatchingPosition','formatGroupId','_saved','trackChanges.trackFormatChanges','concat','element','getMultiRangeId','selection','deletion:','getSuggestionCallback','external:','formatInline:','substring','isAtStart','change','ariaLiveAnnouncer','stop','highest','collaboration.channelId','return','forceDefaultExecution','_getAuthorFromId','addMarker','listenTo','editing','isAtEnd','formatBlock:','attributeKey','createRange','_recordAttributeChanges','getAttribute','next','startsWith','type','_joinSuggestions','isIntersecting','setTo','dataDowncast','getFirstRange','suggestionChanged','_mergeNestedSuggestions','getChangedMarkers','conversion','addRange','fromCharCode','getDifference','attribute','addHighlight','addMarkerName','_initAriaMarkerChangeAnnouncements','authoredAt','isInContent','createPositionBefore','formatBlock:join','_afterChanges','_findSuggestions','before','_updateSuggestionData','catch','accept','getFirstMarker','accepted','has','_addThreadToSuggestion','isArray','toViewElement','createPositionAfter','editor','_handleNewSuggestionMarker','_createSuggestion','normal','addComment','fetchCommentThread','discardSelectedSuggestions','fromRange','toUpperCase','multi','item','$textProxy','format','markDeletion','_breakSuggestionMarker','start','chain','consume','createdAt','_refreshAttributeSuggestionsChain','suggestion','lowest','previous','_suggestionState','attribute:join','change:activeMarkers','addUser','markAttributeChange','pluginName','for','getWalker','attributeNewValue','markerNameToElements','join','enqueueChange','rejected','values','getSuggestion','filter','discardSuggestion','set','name','markMultiRangeInsertion','containerElement','groupId','length','getRange','enableReadOnlyMode','comments','define','acceptSelectedSuggestions','_setSuggestionData','suggestion:','_commentsRepository','notReady','buildSuggestion','setSelection','dataReady','getAncestors','formatInline:chain','updateMarker','reconvertMarker','value','rethrowUnexpectedError','multipleBlocks','deletion','createPositionAt','setAttribute','keys','track-changes-suggestion-data-mismatch','data-suggestion','trackChangesCommand','author','remove','originalSuggestionId','editingDowncast','init','attributeOldValue','isNextTo','after','addSuggestionData','change:_saved','_isDataLoaded','split','isInsideObject','insertion:discard','markerToHighlight','addClass','formatInline','removeClass','markMultiRangeDeletion','some','then','_processAttributeChanges','find','@external','insert','forEach','commentThread','_registerInlineAttribute','suggestionLoaded','_enabledCommands','sort','isCollapsed','options','attributes','removed','discard','high','removeAttribute','_removeSuggestion','getSuggestions','_onDiscard','batch','formatBlock:chain','_reduceSuggestionAttributeRange','data','trackChanges.mergeNestedSuggestions','_descriptionFactory','nodeBefore','getChanges','warn','addMarker:suggestion'];(function(_0x306401,_0x339a2d){const _0x30241a=function(_0x46df72){while(--_0x46df72){_0x306401['push'](_0x306401['shift']());}};_0x30241a(++_0x339a2d);}(_0x339a,0x12f));const _0x3024=function(_0x306401,_0x339a2d){_0x306401=_0x306401-0x0;let _0x30241a=_0x339a[_0x306401];return _0x30241a;};import{Plugin as _0x7dd224,PendingActions as _0x12b474}from'ckeditor5/src/core.js';import{LiveRange as _0x205e8b}from'ckeditor5/src/engine.js';import{CKEditorError as _0x255fda,uid as _0x25b08a,priorities as _0x277c40,logWarning as _0x59dd10}from'ckeditor5/src/utils.js';import{toWidget as _0x582c0d}from'ckeditor5/src/widget.js';import{Users as _0x2b5144,hashObject as _0x4a1e6a,surroundingMarkersDetector as _0x471275}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x465380 from'./commands/trackchangescommand.js';import _0x5a1e43 from'./commands/acceptsuggestioncommand.js';import _0xc4b4ed from'./commands/discardsuggestioncommand.js';import _0x5918cc from'./commands/executeonallsuggestionscommand.js';import _0x58fc2a from'./commands/executeonselectedsuggestionscommand.js';import _0x1f2ce3 from'./suggestion.js';import _0x1618ee from'./suggestiondescriptionfactory.js';import _0x4a63f4 from'./integrations/aiassistant.js';import _0x29c374 from'./integrations/alignment.js';import _0x8abd13 from'./integrations/basicstyles.js';import _0x4ce919 from'./integrations/blockquote.js';import _0x20492e from'./integrations/casechange.js';import _0x48e0ac from'./integrations/ckbox.js';import _0x42a55a from'./integrations/codeblock.js';import _0xd1271c from'./integrations/comments.js';import _0x4d87b6 from'./integrations/deletecommand.js';import _0x4f69a6 from'./integrations/list.js';import _0x27e9d0 from'./integrations/listproperties.js';import _0x70c667 from'./integrations/entercommand.js';import _0x42805d from'./integrations/findandreplace.js';import _0x59090a from'./integrations/font.js';import _0x41299d from'./integrations/formatpainter.js';import _0x41e347 from'./integrations/heading.js';import _0x542e5a from'./integrations/highlight.js';import _0x413bc7 from'./integrations/horizontalline.js';import _0x5d0349 from'./integrations/htmlembed.js';import _0x4263c1 from'./integrations/image.js';import _0x30e568 from'./integrations/imagereplace.js';import _0x36b564 from'./integrations/imagestyle.js';import _0x12c210 from'./integrations/importword.js';import _0x31f901 from'./integrations/indent.js';import _0x4cad25 from'./integrations/inputcommand.js';import _0x58a30f from'./integrations/link.js';import _0x296531 from'./integrations/legacylist.js';import _0x1ddeba from'./integrations/legacylistproperties.js';import _0x49a662 from'./integrations/mediaembed.js';import _0x399ac2 from'./integrations/mention.js';import _0x1cc671 from'./integrations/pagebreak.js';import _0x2ec65a from'./integrations/paragraph.js';import _0x1dadb1 from'./integrations/removeformat.js';import _0x5f11c0 from'./integrations/restrictededitingmode.js';import _0x1b4730 from'./integrations/shiftentercommand.js';import _0x1b27eb from'./integrations/standardeditingmode.js';import _0x172ae1 from'./integrations/style.js';import _0x1076dd from'./integrations/table.js';import _0x3acb78 from'./integrations/tablemergesplit.js';import _0x3bf472 from'./integrations/tableheadings.js';import _0x50d5f6 from'./integrations/tableclipboard.js';import _0x2cab1b from'./integrations/tablecolumnresize.js';import _0x1818fc from'./integrations/template.js';import _0x1b9997 from'./integrations/tableofcontents.js';import _0x5df3c7 from'./integrations/title.js';import _0x5cd449 from'./integrations/undo.js';import _0x49bb0b from'./integrations/tablecaption.js';import _0x2eb079 from'./integrations/tableproperties.js';import{getTranslation as _0x44f115}from'./utils/common-translations.js';import{isEqual as _0x2963a5,omit as _0x5a017a}from'lodash-es';export const renameAttributeKey=_0x3024('0x10e');export default class p extends _0x7dd224{static get['requires'](){return['CommentsRepository',_0x2b5144,_0x12b474,_0x4a63f4,_0x29c374,_0x8abd13,_0x4ce919,_0x48e0ac,_0x20492e,_0x42a55a,_0xd1271c,_0x4d87b6,_0x70c667,_0x42805d,_0x59090a,_0x41299d,_0x41e347,_0x542e5a,_0x413bc7,_0x5d0349,_0x4263c1,_0x36b564,_0x30e568,_0x12c210,_0x31f901,_0x4cad25,_0x296531,_0x1ddeba,_0x58a30f,_0x4f69a6,_0x27e9d0,_0x49a662,_0x399ac2,_0x1cc671,_0x2ec65a,_0x1dadb1,_0x5f11c0,_0x1b4730,_0x1b27eb,_0x172ae1,_0x1076dd,_0x3acb78,_0x3bf472,_0x49bb0b,_0x50d5f6,_0x2cab1b,_0x1b9997,_0x2eb079,_0x1818fc,_0x5df3c7,_0x5cd449];}static get[_0x3024('0x170')](){return _0x3024('0xa5');}constructor(_0x51a5f8){function _0x3f9eac(_0x4b360e){return _0x4b360e[_0x3024('0x53')](_0xcf2532=>String[_0x3024('0x13d')](_0xcf2532))[_0x3024('0x175')]('');}super(_0x51a5f8),this[_0x3024('0xbe')]=!0x1,this[_0x3024('0x17c')](_0x3024('0x61'),[]),this['on'](_0x3024('0x16d'),(_0x41e4c1,_0x3a077f,_0x341c3f,_0x2d605b)=>{this[_0x3024('0x6f')][_0x3024('0x11f')](()=>{for(const _0x56e1c4 of[..._0x2d605b,..._0x341c3f])this[_0x3024('0x6f')][_0x3024('0x102')][_0x3024('0x14f')](_0x56e1c4)&&_0x51a5f8[_0x3024('0x129')][_0x3024('0x12')](_0x56e1c4);});}),this[_0x3024('0x4b')]=new _0x1618ee(this[_0x3024('0x154')]['model']['schema'],this[_0x3024('0x154')][_0x3024('0xb2')]),this['_adapter']=null,this[_0x3024('0x71')]=new Bt(this[_0x3024('0x154')]),this[_0x3024('0xe1')]=new Map(),this['_commentsRepository']=_0x51a5f8[_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xa1')),this[_0x3024('0x3a')]=new Set(),this[_0x3024('0x6f')]=this[_0x3024('0x154')][_0x3024('0xfa')],this[_0x3024('0x16b')]=new WeakMap(),this[_0x3024('0x97')]=!0x1,this['_blockAttributeKeys']=new Set(['$elementName']),this[_0x3024('0xd7')]=new Set(),_0x51a5f8[_0x3024('0xb9')][_0x3024('0x6')](_0x3024('0x114'),_0x3024('0x93')),this['_trackFormatChanges']=_0x51a5f8[_0x3024('0xb9')][_0x3024('0xa0')](_0x3024('0x114')),_0x51a5f8[_0x3024('0xb9')][_0x3024('0x6')](_0x3024('0x4a'),!0x0),this[_0x3024('0x139')]=_0x51a5f8['config'][_0x3024('0xa0')]('trackChanges.mergeNestedSuggestions'),this[_0x3024('0x1c')]=new _0x465380(_0x51a5f8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3f9eac([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3f9eac([0x34,0x30,0x34,0x38,0x30,0x32,0x34,0x38]);}[_0x3024('0x21')](){const _0x15d3e4=this['editor'],_0x56e65d=(_0x113e53,_0x41aa57)=>{if('attribute'!=_0x113e53)return _0x3024('0xbb')+_0x113e53;const _0x28726b=_0x41aa57['split']('|')[0x0];return this[_0x3024('0x7e')](_0x28726b)?_0x3024('0x9e'):_0x3024('0x7a');};_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')]('editingDowncast')['markerToHighlight']({'model':_0x3024('0x168'),'view':_0x237706=>{const {id:_0x455be6,type:_0x218b88,subType:_0x343c1f}=this[_0x3024('0xdd')](_0x237706[_0x3024('0x52')]),_0x2e7cfa=[_0x3024('0xc5'),_0x56e65d(_0x218b88,_0x343c1f)];let _0x546628=0xbb8;return this[_0x3024('0x61')][_0x3024('0xad')](_0x237706[_0x3024('0x52')])&&(_0x2e7cfa['push'](_0x3024('0xb1')),_0x546628=0xbc2),'deletion'==_0x218b88&&(_0x546628+=0x5),{'classes':_0x2e7cfa,'attributes':{'data-suggestion':_0x455be6},'priority':_0x546628};}}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))['add'](_0x3c5c92=>{_0x3c5c92['on'](_0x3024('0x4f'),(_0x1087ee,_0x345788,_0x543429)=>{if(!_0x543429['options']['showSuggestionHighlights'])return;const _0x4b8b73=_0x345788['item'];if(!_0x4b8b73)return;const _0x5c0007=_0x543429[_0x3024('0xa7')][_0x3024('0x152')](_0x4b8b73);_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')][_0x3024('0x86')](_0x4b8b73)&&_0x5c0007&&!_0x5c0007[_0x3024('0x73')]('widget')&&_0x5c0007['is'](_0x3024('0x0'))&&_0x582c0d(_0x5c0007,_0x543429[_0x3024('0x69')]);},{'priority':'high'});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))[_0x3024('0x2b')]({'model':_0x3024('0x168'),'view':(_0x16040e,_0x42e9a3)=>{if(!_0x42e9a3[_0x3024('0x3d')][_0x3024('0xee')])return null;const {type:_0x19d25b,subType:_0x178546}=this[_0x3024('0xdd')](_0x16040e[_0x3024('0x52')]);return{'classes':[_0x3024('0xc5'),_0x56e65d(_0x19d25b,_0x178546)],'priority':0xbb8};}});const _0x56e49c=({showActiveMarkers:_0x1833ea=!0x0,isAttributeSuggestion:_0x4c6f52=!0x1}={})=>(_0x2bd7dc,_0x2dc10a,_0x1ae290)=>{if(!_0x2dc10a[_0x3024('0x15e')])return;const {id:_0xe972a}=this['_splitMarkerName'](_0x2dc10a[_0x3024('0x52')]);if(_0x4c6f52){const _0x2e51ad=this[_0x3024('0xe1')]['get'](_0xe972a),_0x51992b=this['_getAttributeKey'](_0x2e51ad);if(!this[_0x3024('0x7e')](_0x51992b))return;}if(_0x2dc10a[_0x3024('0x15e')]['is'](_0x3024('0x118')))return void _0x1ae290[_0x3024('0xef')][_0x3024('0x165')](_0x2dc10a[_0x3024('0x15e')],_0x2bd7dc[_0x3024('0x17d')]);const _0x47cc99=_0x1ae290[_0x3024('0xa7')]['toViewElement'](_0x2dc10a[_0x3024('0x15e')]);if(_0x2dc10a[_0x3024('0x15e')]['is'](_0x3024('0x116'))&&_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')]['isBlock'](_0x2dc10a[_0x3024('0x15e')])&&!_0x47cc99[_0x3024('0x73')]('addHighlight')){_0x1ae290['writer'][_0x3024('0x2c')]([_0x3024('0xc5'),_0x3024('0x9e')],_0x47cc99),_0x1ae290[_0x3024('0x69')][_0x3024('0x18')]('data-suggestion',_0xe972a,_0x47cc99),_0x1ae290[_0x3024('0xa7')]['bindElementToMarker'](_0x47cc99,_0x2dc10a['markerName']),_0x1833ea&&(this[_0x3024('0x61')]['includes'](_0x2dc10a['markerName'])?_0x1ae290[_0x3024('0x69')][_0x3024('0x2c')](_0x3024('0xb1'),_0x47cc99):_0x1ae290[_0x3024('0x69')][_0x3024('0x2e')](_0x3024('0xb1'),_0x47cc99));for(const _0x20dd67 of _0x15d3e4['model'][_0x3024('0x6b')](_0x2dc10a[_0x3024('0x15e')])[_0x3024('0x6c')]())_0x1ae290['consumable'][_0x3024('0x165')](_0x20dd67,_0x2bd7dc[_0x3024('0x17d')]);_0x1ae290[_0x3024('0xef')][_0x3024('0x165')](_0x2dc10a[_0x3024('0x15e')],_0x2bd7dc[_0x3024('0x17d')]);}};_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))[_0x3024('0x54')](_0x5ed49f=>{_0x5ed49f['on']('addMarker:suggestion:formatBlock',(_0x2fe2c3,_0x5a6ac4,_0x59ebc6)=>{_0x59ebc6[_0x3024('0x3d')][_0x3024('0xee')]&&_0x56e49c({'showActiveMarkers':!0x1})(_0x2fe2c3,_0x5a6ac4,_0x59ebc6);},{'priority':'highest'});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))['add'](_0x11b942=>{_0x11b942['on'](_0x3024('0x9a'),(_0x2c1e30,_0x26fef1,_0x5e7138)=>{_0x5e7138[_0x3024('0x3d')][_0x3024('0xee')]&&_0x56e49c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2c1e30,_0x26fef1,_0x5e7138);},{'priority':_0x3024('0x122')});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')]('dataDowncast')['markerToData']({'model':_0x3024('0x168'),'view':(_0x17fb16,_0x2be510)=>_0x2be510[_0x3024('0x3d')][_0x3024('0xee')]?null:{'group':_0x3024('0x168'),'name':_0x17fb16['substr'](0xb)}}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x9c'))[_0x3024('0xc0')]({'view':{'name':_0x3024('0x168'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e3520,{writer:_0x2f3c91})=>{let _0x2caf24='suggestion:'+_0x4e3520['getAttribute']('suggestion-type')+':'+_0x4e3520['getAttribute']('id');return _0x4e3520[_0x3024('0x12f')](_0x3024('0x66'))&&(_0x2caf24+=':'+_0x4e3520['getAttribute'](_0x3024('0x66'))),_0x2f3c91[_0x3024('0xce')](_0x3024('0xd2'),{'data-name':_0x2caf24});}}),_0x15d3e4[_0x3024('0x13b')]['for'](_0x3024('0x9c'))[_0x3024('0xbd')]({'view':'suggestion'}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x20'))[_0x3024('0x54')](_0x28b556=>{_0x28b556['on']('addMarker:suggestion:formatBlock',_0x56e49c(),{'priority':'high'});}),_0x15d3e4['conversion'][_0x3024('0x171')]('editingDowncast')[_0x3024('0x54')](_0x9e3f72=>{_0x9e3f72['on'](_0x3024('0x9a'),_0x56e49c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x20'))['add'](_0x12a9af=>{_0x12a9af['on'](_0x3024('0xba'),(_0x2bb387,_0x337ed8,_0x1e55b7)=>{const _0x40990e=_0x1e55b7[_0x3024('0xa7')][_0x3024('0x174')](_0x337ed8['markerName']);if(_0x40990e)for(const _0x512b52 of _0x40990e)_0x512b52[_0x3024('0x73')]('addHighlight')||(_0x1e55b7[_0x3024('0x69')][_0x3024('0x2e')]([_0x3024('0xc5'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x512b52),_0x1e55b7[_0x3024('0x69')][_0x3024('0x42')](_0x3024('0x1b'),_0x512b52),_0x1e55b7[_0x3024('0xa7')][_0x3024('0x5f')](_0x512b52,_0x337ed8[_0x3024('0x52')]));},{'priority':_0x3024('0x41')});}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x20'))[_0x3024('0x54')](_0x1c60e0=>{_0x1c60e0['on'](_0x3024('0xd4'),(_0x5d0bb6,_0x71669e,_0x1110ab)=>{const _0x450722=_0x1110ab[_0x3024('0xa7')][_0x3024('0x174')](_0x71669e['markerName']);if(!_0x450722)return;const {id:_0x1c7dcf}=this['_splitMarkerName'](_0x71669e[_0x3024('0x52')]),_0x54f44c=this['_suggestions'][_0x3024('0xa0')](_0x1c7dcf),_0x5cc2a9=this['_getAttributeKey'](_0x54f44c);if(this[_0x3024('0x7e')](_0x5cc2a9))for(const _0x2a6434 of _0x450722)_0x2a6434[_0x3024('0x73')](_0x3024('0x140'))||(_0x1110ab[_0x3024('0x69')][_0x3024('0x2e')](['ck-suggestion-marker',_0x3024('0x9e'),_0x3024('0xb1')],_0x2a6434),_0x1110ab[_0x3024('0x69')][_0x3024('0x42')]('data-suggestion',_0x2a6434),_0x1110ab['mapper']['unbindElementFromMarkerName'](_0x2a6434,_0x71669e[_0x3024('0x52')]));},{'priority':_0x3024('0x41')});}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['registerPostFixer'](_0x2c318e=>{let _0x51589f=!0x1;const _0xbb5d9f=Array[_0x3024('0xec')](_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x13a')]()),_0x166764=new Set();for(const {name:_0x5caf7f,data:_0x2b757d}of _0xbb5d9f){const {group:_0x1a0307,type:_0x308f5d,subType:_0x3aabb,id:_0x217170}=this[_0x3024('0xdd')](_0x5caf7f);if(_0x3024('0x168')!==_0x1a0307)continue;const _0x65fe59=this[_0x3024('0xe1')]['get'](_0x217170);if(null!=_0x2b757d['newRange']){_0x3024('0x2d')==_0x308f5d&&(_0x51589f=_0x51589f||Tt(_0x2b757d[_0x3024('0x64')],_0x5caf7f,_0x2c318e,_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')]));const _0x43b421='attribute'==_0x308f5d&&this[_0x3024('0x7e')](_0x3aabb[_0x3024('0x28')]('|')[0x0]);if(_0x2b757d[_0x3024('0x64')][_0x3024('0x3c')]||_0x3024('0xb5')==_0x2b757d[_0x3024('0x64')]['root'][_0x3024('0x6e')]||'formatBlock'==_0x308f5d&&!Vt(_0x2b757d[_0x3024('0x64')])||_0x43b421&&!Vt(_0x2b757d['newRange'])||'deletion'==_0x308f5d&&!(!Rt(_0x549221=_0x2b757d[_0x3024('0x64')])&&!function(_0x4ae95c){return _0x4ae95c[_0x3024('0x163')][_0x3024('0x7f')]==_0x4ae95c[_0x3024('0x51')][_0x3024('0x4c')]&&_0x4ae95c[_0x3024('0x163')]['isAtEnd'];}(_0x549221)))_0x2c318e['removeMarker'](_0x5caf7f),_0x51589f=!0x0;else{if(!_0x65fe59||!_0x65fe59['isInContent'])continue;_0x166764[_0x3024('0x54')](_0x65fe59);}}}var _0x549221;return _0x166764[_0x3024('0x6d')]>0x0&&(_0x51589f=!!this[_0x3024('0x68')](_0x166764)||_0x51589f),_0x51589f;}),_0x15d3e4[_0x3024('0xfa')]['document'][_0x3024('0x8b')](_0x123ed7=>{let _0xd0e915=!0x1;for(const _0x2d9884 of _0x15d3e4['model'][_0x3024('0xf9')][_0x3024('0x82')][_0x3024('0x4d')]())if(_0x3024('0x35')==_0x2d9884[_0x3024('0x132')])for(const _0x4ca8df of this[_0x3024('0xe1')][_0x3024('0x178')]()){if(_0x4ca8df[_0x3024('0x8a')]||!_0x4ca8df['isInContent'])continue;const _0x5d64e9='formatBlock'==_0x4ca8df['type'],_0x3a3464=this[_0x3024('0x72')](_0x4ca8df),_0x59b43d=_0x3a3464&&this[_0x3024('0x7e')](_0x3a3464);if(!_0x5d64e9&&!_0x59b43d)continue;const _0x3e5fc3=_0x4ca8df[_0x3024('0x137')]();if(_0x3e5fc3[_0x3024('0x163')][_0x3024('0x7f')]!=_0x3e5fc3['end'][_0x3024('0x7f')]&&!_0x3e5fc3['end']['isAtEnd']){const _0x4ec3b4=_0x15d3e4[_0x3024('0xfa')]['createPositionAt'](_0x3e5fc3[_0x3024('0x163')][_0x3024('0xf2')],_0x3024('0x51')),_0x302254=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x3e5fc3['start'],_0x4ec3b4);_0x123ed7['updateMarker'](_0x4ca8df[_0x3024('0x14d')](),{'range':_0x302254}),_0xd0e915=!0x0;}}return _0xd0e915;}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x8b')](_0x3df3c8=>this[_0x3024('0x32')](_0x3df3c8)),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x8b')](_0x53496e=>!_0x53496e[_0x3024('0x46')]['isLocal']&&this['_processAttributeSuggestions'](_0x53496e)),_0x15d3e4[_0x3024('0xfa')]['on'](_0x3024('0x147'),()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['on'](_0x3024('0x10d'),(_0x51bf87,_0x82fb7)=>{if(!_0x82fb7[_0x3024('0xc8')]||_0x82fb7[_0x3024('0xe4')])return;if(!this[_0x3024('0xbe')])return;const _0x487128=_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x82')]['getChanges']();if(0x0==_0x487128[_0x3024('0x2')])return;const _0x578dda=[],_0x41793d=_0x487128[_0x3024('0x17a')](_0x3ac953=>_0x3024('0x13f')==_0x3ac953[_0x3024('0x132')]),_0x2b7d5f=_0x487128[_0x3024('0x17a')](_0x2bad8d=>_0x3024('0x35')==_0x2bad8d['type']&&_0x3024('0x100')!=_0x2bad8d[_0x3024('0x17d')]),_0x1ec172=_0x487128[_0x3024('0x17a')](_0x2c13df=>_0x3024('0x1e')==_0x2c13df[_0x3024('0x132')]&&_0x3024('0x100')!=_0x2c13df['name']);for(const _0x373e2b of _0x41793d)this[_0x3024('0xb7')](_0x373e2b[_0x3024('0x12c')])&&_0x578dda['push']({'key':_0x373e2b[_0x3024('0x12c')],'newValue':_0x373e2b[_0x3024('0x173')],'oldValue':_0x373e2b[_0x3024('0x22')],'range':Ut(_0x373e2b[_0x3024('0x10c')],_0x15d3e4[_0x3024('0xfa')])});for(const _0x5d8a3f of _0x2b7d5f){const _0x217e37=_0x1ec172['find'](_0x1bfeca=>_0x1bfeca['_element']===_0x5d8a3f['_element']);if(_0x217e37){const _0x575957=Ot(_0x5d8a3f[_0x3024('0x83')]['nodeAfter'],_0x15d3e4['model']);_0x217e37['name']!==_0x5d8a3f[_0x3024('0x17d')]&&_0x578dda[_0x3024('0xdc')]({'key':_0x3024('0x10e'),'newValue':_0x5d8a3f[_0x3024('0x17d')],'oldValue':_0x217e37[_0x3024('0x17d')],'range':_0x575957});for(const [_0x551cff,_0x3bfe79]of _0x217e37[_0x3024('0x3e')]){if(!this[_0x3024('0xb7')](_0x551cff))continue;const _0x2f9813=_0x5d8a3f[_0x3024('0x3e')]['get'](_0x551cff);_0x3bfe79!==_0x2f9813&&_0x578dda['push']({'key':_0x551cff,'newValue':_0x2f9813,'oldValue':_0x3bfe79,'range':_0x575957});}for(const [_0x529bf5,_0x359c86]of _0x5d8a3f[_0x3024('0x3e')])this[_0x3024('0xb7')](_0x529bf5)&&(_0x217e37['attributes'][_0x3024('0x14f')](_0x529bf5)||_0x578dda[_0x3024('0xdc')]({'key':_0x529bf5,'newValue':_0x359c86,'oldValue':null,'range':_0x575957}));}}0x0!=_0x578dda['length']&&_0x15d3e4[_0x3024('0xfa')]['enqueueChange'](_0x82fb7,_0x22e46a=>{const _0xb56239=_0x25b08a();for(const {range:_0x15007d,key:_0x926c17,oldValue:_0x33074d,newValue:_0x512970}of _0x578dda)this[_0x3024('0x16f')](_0x15007d,_0x926c17,_0x33074d,_0x512970,{'groupId':_0xb56239});this[_0x3024('0xab')](_0x22e46a,_0x578dda);});},{'priority':'lowest'}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0x102')]['on']('update:suggestion',(_0x5cd370,_0x38f5df,_0x213f5f)=>{if(null==_0x213f5f){const {id:_0x480cd4}=this['_splitMarkerName'](_0x38f5df[_0x3024('0x17d')]),_0x22d013=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x480cd4);_0x22d013&&_0x22d013[_0x3024('0x141')](_0x38f5df['name']);}}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['on'](_0x3024('0x10d'),()=>{const _0x236531=Array[_0x3024('0xec')](_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x82')][_0x3024('0x13a')]())['filter'](_0x107708=>_0x3024('0x168')===this['_splitMarkerName'](_0x107708[_0x3024('0x17d')])['group']);if(0x0===_0x236531[_0x3024('0x2')])return;_0x236531['sort']((_0x17191b,_0x228046)=>{const _0x1216e8=_0x17191b[_0x3024('0x49')][_0x3024('0xf6')],_0xa4ab0d=_0x228046['data'][_0x3024('0xf6')];return null===_0x1216e8&&null===_0xa4ab0d?0x0:null===_0x1216e8&&null!==_0xa4ab0d?-0x1:null!==_0x1216e8&&null===_0xa4ab0d?0x1:_0x1216e8[_0x3024('0x163')][_0x3024('0x79')](_0xa4ab0d['start'])?-0x1:0x1;});const _0x151d55=new Set(),_0x23d46b=new Set();for(const {name:_0x3aba77,data:_0x24124b}of _0x236531){const {id:_0x34e54a}=this[_0x3024('0xdd')](_0x3aba77);if(null===_0x24124b[_0x3024('0xf6')]){const _0xc5a76e=this['_handleNewSuggestionMarker'](_0x3aba77);_0x23d46b[_0x3024('0x54')](_0xc5a76e);}else{const _0x4721da=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x34e54a);null!==_0x24124b[_0x3024('0x64')]||_0x4721da[_0x3024('0x144')]?(_0x151d55[_0x3024('0x54')](_0x4721da['head']),_0x23d46b[_0x3024('0x54')](_0x4721da)):this[_0x3024('0x43')](_0x4721da);}}_0x23d46b[_0x3024('0x6d')]>0x0&&this['_refreshSuggestionsChain'](_0x23d46b);for(const _0x2da19b of _0x151d55)this[_0x3024('0xa3')](_0x3024('0x138'),_0x2da19b);}),_0x15d3e4[_0x3024('0xfa')]['on']('applyOperation',(_0x4bef07,_0x81df73)=>{const _0x1db948=_0x81df73[0x0];if(!this[_0x3024('0xe1')][_0x3024('0x6d')])return;if(!_0x1db948['isDocumentOperation'])return;if(_0x1db948[_0x3024('0x46')]['isUndo']||!_0x1db948['batch']['isLocal'])return;let _0x44f4d8,_0x3d8258;switch(_0x1db948[_0x3024('0x132')]){case _0x3024('0x35'):_0x44f4d8=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x17')](_0x1db948[_0x3024('0x83')]),_0x3d8258=_0x44f4d8[_0x3024('0x99')](_0x1db948[_0x3024('0xe2')]);break;case'split':_0x44f4d8=_0x15d3e4['model'][_0x3024('0x17')](_0x1db948['splitPosition']),_0x3d8258=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x17')](_0x1db948[_0x3024('0x8d')]);break;case _0x3024('0xe5'):_0x44f4d8=_0x15d3e4['model'][_0x3024('0x17')](_0x1db948['targetPosition']),_0x3d8258=_0x44f4d8[_0x3024('0x99')](_0x1db948[_0x3024('0xe2')]);break;default:return;}const _0x39b7ff=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x44f4d8,_0x3d8258);_0x15d3e4[_0x3024('0xfa')][_0x3024('0x11f')](()=>{for(const {suggestion:_0x2cb23c,meta:_0xd315e6}of this[_0x3024('0x148')](_0x39b7ff)){if(_0x2cb23c['isMultiRange'])continue;if(_0x3024('0x2d')==_0x2cb23c[_0x3024('0x132')])continue;const _0x23ee44=this[_0x3024('0x72')](_0x2cb23c);if(_0x23ee44&&this[_0x3024('0x7e')](_0x23ee44)&&'split'!=_0x1db948[_0x3024('0x132')])continue;const _0x19a58c=_0x2cb23c['data']&&_0x2cb23c[_0x3024('0x49')]['multipleBlocks'];('formatBlock'!=_0x2cb23c[_0x3024('0x132')]||_0x3024('0x28')==_0x1db948[_0x3024('0x132')]&&!_0x19a58c)&&(_0xd315e6['containsRangeInObject']||_0x3024('0xac')==_0x2cb23c[_0x3024('0x132')]&&_0xd315e6[_0x3024('0xf8')]||_0x2cb23c[_0x3024('0x137')]()['containsRange'](_0x39b7ff)&&this[_0x3024('0x162')](_0x2cb23c,_0x44f4d8,_0x3d8258));}});},{'priority':_0x3024('0x169')}),_0x15d3e4[_0x3024('0xfa')]['on']('deleteContent',(_0x1858e7,_0x415a57)=>{const _0x3b2fc9=_0x415a57[0x0],_0x1a3c69=_0x415a57[0x1];if(_0x1a3c69&&_0x1a3c69[_0x3024('0x125')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x3024('0x1c')]['value'])return;if(_0x3b2fc9['isCollapsed'])return;const _0x434004=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')],{start:_0x54ffb5,end:_0x20f00d}=_0x3b2fc9[_0x3024('0x137')](),_0x573460=_0x54ffb5[_0x3024('0xf2')]&&_0x434004[_0x3024('0xc1')](_0x54ffb5[_0x3024('0xf2')])?null:_0x434004[_0x3024('0x7d')](_0x54ffb5,_0x3024('0xca')),_0x3a7186=_0x20f00d[_0x3024('0x4c')]&&_0x434004['isLimit'](_0x20f00d['nodeBefore'])?null:_0x434004[_0x3024('0x7d')](_0x20f00d,'backward'),_0x14455b=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x573460?_0x573460[_0x3024('0x163')]:_0x54ffb5,_0x3a7186?_0x3a7186[_0x3024('0x51')]:_0x20f00d);_0x15d3e4['model'][_0x3024('0x11f')](_0x46481b=>{this[_0x3024('0x161')](_0x14455b);const _0x46f45e=_0x15d3e4[_0x3024('0xfa')]['schema'][_0x3024('0x7d')](_0x14455b[_0x3024('0x163')]);_0x3b2fc9['is'](_0x3024('0xeb'))?_0x46481b['setSelection'](_0x46f45e):_0x3b2fc9[_0x3024('0x135')](_0x46f45e);}),_0x1858e7['stop']();},{'priority':_0x277c40[_0x3024('0x157')]+0xa}),_0x15d3e4[_0x3024('0xfa')]['on'](_0x3024('0xcc'),(_0x124720,_0x12212d)=>{const _0x4dcafc=_0x12212d[_0x12212d[_0x3024('0x2')]-0x1];_0x4dcafc&&_0x4dcafc[_0x3024('0x125')]||this[_0x3024('0x97')]||this[_0x3024('0x1c')][_0x3024('0x13')]&&(_0x15d3e4[_0x3024('0xfa')]['change'](()=>{let _0x4a2d89=_0x15d3e4[_0x3024('0xfa')][_0x3024('0xcc')](_0x12212d[0x0],_0x12212d[0x1],_0x12212d[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a2d89)return;_0x124720[_0x3024('0x124')]=_0x4a2d89[_0x3024('0x95')]();const _0x25bc09=_0x4a2d89[_0x3024('0x51')][_0x3024('0x4c')],_0x1e2eb6=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')];_0x25bc09&&_0x1e2eb6[_0x3024('0x57')](_0x25bc09)&&!_0x1e2eb6[_0x3024('0x86')](_0x25bc09)&&(_0x4a2d89=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x4a2d89['start'],_0x15d3e4['model'][_0x3024('0x17')](_0x25bc09,_0x3024('0x51')))),this['markInsertion'](_0x4a2d89);}),_0x124720['stop']());},{'priority':'high'}),this[_0x3024('0x154')][_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x98'),this[_0x3024('0x1c')]),this[_0x3024('0xde')](_0x3024('0x98'));const _0x61eed5=new _0x5a1e43(_0x15d3e4,this[_0x3024('0xe1')]);_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x5d'),_0x61eed5),this['enableCommand'](_0x3024('0x5d'));const _0x3cafbc=new _0xc4b4ed(_0x15d3e4,this[_0x3024('0xe1')]);_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')]('discardSuggestion',_0x3cafbc),this[_0x3024('0xde')](_0x3024('0x17b')),_0x15d3e4[_0x3024('0x62')]['add']('acceptAllSuggestions',new _0x5918cc(_0x15d3e4,_0x61eed5,this[_0x3024('0xe1')])),this[_0x3024('0xde')]('acceptAllSuggestions'),_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x94'),new _0x5918cc(_0x15d3e4,_0x3cafbc,this['_suggestions'])),this[_0x3024('0xde')]('discardAllSuggestions'),_0x15d3e4['commands']['add']('acceptSelectedSuggestions',new _0x58fc2a(_0x15d3e4,_0x61eed5,this[_0x3024('0xe1')])),this[_0x3024('0xde')](_0x3024('0x7')),_0x15d3e4[_0x3024('0x62')]['add'](_0x3024('0x15a'),new _0x58fc2a(_0x15d3e4,_0x3cafbc,this[_0x3024('0xe1')])),this[_0x3024('0xde')](_0x3024('0x15a'));const _0x26ad5f=_0x15d3e4['plugins'][_0x3024('0xa0')](_0x3024('0xa1'));this[_0x3024('0x128')](_0x26ad5f,_0x3024('0x158'),(_0x402565,{threadId:_0x27064d})=>{const _0x538c6=this[_0x3024('0xe1')]['get'](_0x27064d);_0x538c6&&_0x538c6[_0x3024('0x37')]&&0x1===_0x538c6[_0x3024('0x37')]['length']&&this['_updateSuggestionData'](_0x27064d,{'hasComments':!0x0});},{'priority':_0x3024('0xe8')}),this[_0x3024('0x128')](_0x26ad5f,'removeComment',(_0x46bbf6,{threadId:_0x1a792f})=>{const _0x149453=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x1a792f);_0x149453&&_0x149453['commentThread']&&!_0x149453[_0x3024('0x37')][_0x3024('0x2')]&&this[_0x3024('0x14a')](_0x1a792f,{'hasComments':!0x1});},{'priority':_0x3024('0xe8')});}set[_0x3024('0x88')](_0x303c01){if(this['_adapter'])throw new _0x255fda('track-changes-adapter-already-set',this);this[_0x3024('0x60')]=_0x303c01;}get[_0x3024('0x88')](){return this[_0x3024('0x60')];}[_0x3024('0x44')]({skipNotAttached:_0x40552e=!0x1,toJSON:_0x54f130=!0x1}={}){const _0x3d9bff=[];for(const _0x131a7c of this['_suggestions'][_0x3024('0x178')]())_0x40552e&&!_0x131a7c[_0x3024('0x144')]||_0x3d9bff[_0x3024('0xdc')](_0x131a7c);return _0x54f130?_0x3d9bff[_0x3024('0x53')](_0x222677=>_0x222677[_0x3024('0x63')]()):_0x3d9bff;}[_0x3024('0x179')](_0x27cffc){const _0x53d2ef=this[_0x3024('0xe1')]['get'](_0x27cffc);if(!_0x53d2ef)throw new _0x255fda(_0x3024('0x78'),this);return _0x53d2ef;}['hasSuggestion'](_0x524885){return this[_0x3024('0xe1')]['has'](_0x524885);}[_0x3024('0x25')](_0x53f529){const {authorId:_0x4dbe87,id:_0x119d0c,attributes:_0x1ba14f}=_0x53f529,[_0x7f7fd0,_0x1d1390]=_0x53f529[_0x3024('0x132')][_0x3024('0x28')](':'),_0x4f838d=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x119d0c)||this['_createSuggestion'](_0x7f7fd0,_0x1d1390,_0x119d0c,_0x4dbe87,_0x1ba14f);if(this[_0x3024('0x150')](_0x4f838d),this[_0x3024('0xc6')](_0x4f838d,_0x7f7fd0,_0x1d1390||null,_0x4dbe87),_0x4f838d[_0x3024('0x166')]=_0x53f529['createdAt'],_0x4f838d[_0x3024('0x27')]=!0x0,_0x1ba14f&&_0x1ba14f['@external']){const _0x593cd1=_0x1ba14f[_0x3024('0x34')],_0x317d33=this[_0x3024('0xaa')](_0x593cd1['authorName']);_0x4f838d[_0x3024('0x143')]=_0x593cd1[_0x3024('0x166')],_0x4f838d[_0x3024('0x1d')]=_0x317d33,_0x4f838d[_0x3024('0x109')]=!0x0;}else _0x4f838d['authoredAt']=_0x53f529['createdAt'];switch(_0x53f529['data']&&(_0x4f838d['data']=_0x53f529[_0x3024('0x49')]),_0x53f529['attributes']&&(_0x4f838d['attributes']=_0x53f529['attributes']),this[_0x3024('0x60')]&&this[_0x3024('0x60')]['addSuggestion']||(_0x4f838d[_0x3024('0x113')]=!0x0),this[_0x3024('0x16b')][_0x3024('0xa0')](_0x4f838d)){case _0x3024('0xb'):this[_0x3024('0x16b')][_0x3024('0x17c')](_0x4f838d,'dataReady');break;case _0x3024('0x5e'):_0x4f838d['isInContent']?(this[_0x3024('0x68')](new Set([_0x4f838d])),this[_0x3024('0x96')](new Set([_0x4f838d])),this['_suggestionState'][_0x3024('0x17c')](_0x4f838d,_0x3024('0x81')),this['fire'](_0x3024('0x39'),_0x4f838d)):this['_suggestionState']['set'](_0x4f838d,_0x3024('0x3f'));}return _0x4f838d;}[_0x3024('0x5d')](_0x50a9d9){this[_0x3024('0x125')](()=>{this[_0x3024('0x154')][_0x3024('0xfa')]['change'](()=>{for(const _0x32779c of _0x50a9d9[_0x3024('0xd6')]())_0x32779c[_0x3024('0x14c')]();});});}[_0x3024('0x17b')](_0x5b0670){this[_0x3024('0x125')](()=>{this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0x11f')](()=>{for(const _0x5de593 of _0x5b0670['getAllAdjacentSuggestions']())_0x5de593[_0x3024('0x40')]();});});}[_0x3024('0xde')](_0x3eab26,_0x2dcee2){const _0x2d85a4=this['editor'][_0x3024('0x62')][_0x3024('0xa0')](_0x3eab26);if(!_0x2d85a4)throw new _0x255fda(_0x3024('0xff'),this,{'commandName':_0x3eab26});if(this[_0x3024('0x3a')]['has'](_0x2d85a4))throw new _0x255fda(_0x3024('0x92'),this,{'commandName':_0x3eab26});this[_0x3024('0x3a')][_0x3024('0x54')](_0x2d85a4),_0x2dcee2&&_0x2d85a4['on'](_0x3024('0xf1'),(_0x3ea452,_0x317603)=>{this[_0x3024('0x1c')]['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x317603[_0x3024('0x2')]>0x0&&_0x317603[_0x317603[_0x3024('0x2')]-0x1]&&_0x317603[_0x317603[_0x3024('0x2')]-0x1]['forceDefaultExecution']?_0x317603[_0x3024('0x77')]():(_0x3ea452[_0x3024('0x124')]=_0x2dcee2((..._0x243914)=>_0x2d85a4[_0x3024('0xf1')](..._0x243914,{'forceDefaultExecution':!0x0}),..._0x317603),_0x3ea452[_0x3024('0x121')]())));},{'priority':'high'});}[_0x3024('0x125')](_0x279c6e){let _0x18b811,_0x461127;const _0xdc9f0d=this[_0x3024('0x97')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x18b811=_0x279c6e();}catch(_0x3acf30){_0x461127=_0x3acf30;}return _0xdc9f0d||(this[_0x3024('0x97')]=!0x1),_0x461127&&_0x255fda[_0x3024('0x14')](_0x461127,this),_0x18b811;}['markInsertion'](_0x58109f,_0x97c285=null,_0x5a3509={}){if(_0x58109f[_0x3024('0x3c')])return null;const _0x56d1ca=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'];for(const {suggestion:_0x559eeb,meta:_0x149a85}of this[_0x3024('0x148')](_0x58109f,_0x3024('0xac')))if(_0x149a85[_0x3024('0xf8')]){if(!_0x149a85['isNextTo']){if(_0x149a85[_0x3024('0xda')]){if(!this[_0x3024('0x139')]||!Pt(_0x559eeb,_0x5a3509))continue;return _0x559eeb;}if(Pt(_0x559eeb,_0x5a3509))return _0x559eeb;this[_0x3024('0x162')](_0x559eeb,_0x58109f['start'],_0x58109f['end']);break;}if(_0x97c285==_0x559eeb['subType']&&Pt(_0x559eeb,_0x5a3509)){const _0x5db0d4=_0x559eeb[_0x3024('0x137')]();return _0x5db0d4[_0x3024('0x163')]['isEqual'](_0x58109f['end'])?this[_0x3024('0x75')](_0x559eeb,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x58109f[_0x3024('0x163')],_0x5db0d4[_0x3024('0x51')])):this[_0x3024('0x75')](_0x559eeb,this['_model'][_0x3024('0x12d')](_0x5db0d4[_0x3024('0x163')],_0x58109f[_0x3024('0x51')])),_0x559eeb;}}const _0x31b4b9=_0x25b08a(),_0x16cd6f=_0x56d1ca['id'],_0x341778=_0x97c285?_0x3024('0xfe')+_0x97c285:_0x3024('0xac'),_0x11a8d1=this[_0x3024('0x8')]({'id':_0x31b4b9,'type':_0x341778,'createdAt':new Date(),'authorId':_0x16cd6f,'attributes':_0x5a3509});return this[_0x3024('0xe6')](_0x341778,_0x31b4b9,_0x16cd6f,_0x58109f),_0x11a8d1;}[_0x3024('0x17e')](_0x54457d,_0x378c80=_0x3024('0x15d'),_0x506a75={}){const _0x1f9019=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x1d250b=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0xac'),_0x378c80,_0x3024('0x175'));for(const _0x2c7757 of this[_0x3024('0x44')]())if(_0x2c7757[_0x3024('0x1d')]['id']==_0x1f9019['id']&&_0x3024('0xac')==_0x2c7757[_0x3024('0x132')]&&_0x2c7757[_0x3024('0x7c')]==_0x378c80&&Pt(_0x2c7757,_0x506a75)&&(_0x1d250b(_0x2c7757[_0x3024('0x84')](),_0x54457d)||_0x1d250b(_0x54457d,_0x2c7757[_0x3024('0x84')]()))){for(const _0x178cbc of _0x54457d)_0x2c7757[_0x3024('0x13c')](_0x178cbc);return _0x2c7757;}for(const {suggestion:_0x4272bc,meta:_0x38ca32}of this[_0x3024('0x148')](_0x54457d,_0x3024('0xac'))){if(!_0x38ca32['isOwn'])continue;if(!this[_0x3024('0x139')]&&_0x38ca32[_0x3024('0xda')])continue;if(!Pt(_0x4272bc,_0x506a75))continue;let _0x2957f1=!0x0;for(const _0x296dd3 of _0x4272bc[_0x3024('0x84')]())for(const _0x554f25 of _0x54457d)if(!_0x296dd3[_0x3024('0xb6')](_0x554f25)){_0x2957f1=!0x1;break;}if(_0x2957f1)return _0x4272bc;}const _0x1d6a07=_0x25b08a(),_0x295021=_0x1f9019['id'],_0x2db1e5=_0x3024('0xfe')+_0x378c80,_0x4523d1=this[_0x3024('0x8')]({'id':_0x1d6a07,'type':_0x2db1e5,'createdAt':new Date(),'authorId':_0x295021,'attributes':_0x506a75});for(const _0x1f28c8 of _0x54457d)this['_addSuggestionMarker'](_0x2db1e5,_0x1d6a07,_0x295021,_0x1f28c8,_0x1f2ce3['getMultiRangeId']());return _0x4523d1;}[_0x3024('0x7b')](_0x376608,_0x2db0cb,_0x571fd7=null,_0x2e89dc={}){if(_0x571fd7=_0x571fd7||Et(_0x2db0cb),_0x376608[_0x3024('0x3c')])return null;if(_0x3024('0x56')===this[_0x3024('0x5a')]){const _0x1391ae=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x2d'),_0x571fd7,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x1391ae([_0x376608],_0x2db0cb,_0x2e89dc)),null;}const _0x14ebe1=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x48cdbc=[];if('always'!==this[_0x3024('0x5a')])for(const {suggestion:_0x4ab85f,meta:_0x2bbac0}of this[_0x3024('0x148')](_0x376608,_0x3024('0xac')))_0x2bbac0['isOwn']&&!_0x2bbac0[_0x3024('0x29')]&&_0x48cdbc['push'](..._0x4ab85f[_0x3024('0x84')]());const _0xa6adc5=function(_0x4b625e,_0x14ac3b){const _0x1b9d47=[];for(const _0x50b3ad of _0x14ac3b){const _0x167fec=_0x4b625e[_0x3024('0xfd')](_0x50b3ad);_0x167fec&&_0x1b9d47[_0x3024('0xdc')](_0x167fec);}return _0x1b9d47;}(_0x376608,_0x48cdbc),_0x206317=function(_0x4cad6a,_0x2d2f5a){const _0xdc9403=[_0x4cad6a];for(const _0x219d43 of _0x2d2f5a){let _0xcfab7a=0x0;for(;_0xcfab7a<_0xdc9403[_0x3024('0x2')];){const _0x5d29f1=_0xdc9403[_0xcfab7a][_0x3024('0x13e')](_0x219d43);_0xdc9403[_0x3024('0x10f')](_0xcfab7a,0x1,..._0x5d29f1),_0xcfab7a+=_0x5d29f1[_0x3024('0x2')];}}return _0xdc9403;}(_0x376608,_0x48cdbc);_0xa6adc5[_0x3024('0x2')]&&this[_0x3024('0x6f')]['change'](()=>{for(const _0xcc2fc2 of _0xa6adc5){const _0x3ff0bc=this[_0x3024('0x71')][_0x3024('0x11a')]('formatInline',_0x571fd7,'accept');this[_0x3024('0x125')](()=>_0x3ff0bc([_0xcc2fc2],_0x2db0cb,_0x2e89dc));}});for(const _0x11cf46 of _0x206317){let _0x2574d1=null,_0x14c343=_0x11cf46[_0x3024('0x163')],_0x49cb54=_0x11cf46['end'];for(const {suggestion:_0x396814,meta:_0x18e2f4}of this[_0x3024('0x148')](_0x11cf46,_0x3024('0x2d'))){if(!_0x18e2f4[_0x3024('0xf8')])continue;if(_0x396814[_0x3024('0x7c')]!=_0x571fd7)continue;if(!Pt(_0x396814,_0x2e89dc))continue;const _0x2bbe72=_0x396814[_0x3024('0x137')]();if(_0x2bbe72['containsRange'](_0x11cf46,!0x0))return null;_0x14c343=_0x14c343[_0x3024('0x79')](_0x2bbe72[_0x3024('0x163')])?_0x14c343:_0x2bbe72['start'],_0x49cb54=_0x49cb54[_0x3024('0xa6')](_0x2bbe72[_0x3024('0x51')])?_0x49cb54:_0x2bbe72[_0x3024('0x51')],_0x2574d1?_0x2bbe72['start'][_0x3024('0x79')](_0x2574d1['getFirstRange']()['start'])?(_0x2574d1[_0x3024('0xa4')](),_0x2574d1=_0x396814):_0x396814[_0x3024('0xa4')]():_0x2574d1=_0x396814;}const _0x7e1757=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x14c343,_0x49cb54);if(_0x2574d1)this['_setSuggestionRange'](_0x2574d1,_0x7e1757);else{const _0x441c4f=_0x25b08a(),_0x20cddc=_0x14ebe1['id'];this[_0x3024('0x8')]({'id':_0x441c4f,'type':_0x3024('0x11c')+_0x571fd7,'data':_0x2db0cb,'createdAt':new Date(),'authorId':_0x20cddc,'attributes':_0x2e89dc}),this['_addSuggestionMarker'](_0x3024('0x11c')+_0x571fd7,_0x441c4f,_0x20cddc,_0x7e1757);}}return null;}[_0x3024('0xb4')](_0xc87a4e,_0x4a93b9,_0x53ef67=[],_0x4f9ccf=null,_0x75d0e1={}){_0x4a93b9['formatGroupId']||(_0x4a93b9['formatGroupId']=_0x4a93b9[_0x3024('0xf4')]),_0x4a93b9[_0x3024('0x15')]=_0xc87a4e['is'](_0x3024('0x10c')),_0x4f9ccf=_0x4f9ccf||Et(_0x4a93b9);const _0x46523a=_0x53ef67[_0x3024('0x53')](_0x598ef3=>Ot(_0x598ef3,this[_0x3024('0x6f')])),_0x80c4ee=_0xc87a4e['is'](_0x3024('0x10c'))?_0xc87a4e:Ot(_0xc87a4e,this[_0x3024('0x6f')]);if('never'===this[_0x3024('0x5a')]){const _0x3f1994=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x4f9ccf,'accept');return this[_0x3024('0x125')](()=>_0x3f1994([_0x80c4ee],_0x4a93b9,_0x75d0e1)),null;}_0x46523a[_0x3024('0xdc')](_0x80c4ee);let _0x4aac59=!0x0;for(const _0x1691d3 of _0x46523a)if(!this[_0x3024('0xf0')](_0x1691d3)){_0x4aac59=!0x1;break;}if(_0x4aac59&&_0x3024('0x8c')!==this[_0x3024('0x5a')]){const _0x20986e=this[_0x3024('0x71')]['getSuggestionCallback']('formatBlock',_0x4f9ccf,_0x3024('0x14c'));return this['forceDefaultExecution'](()=>_0x20986e([_0x80c4ee],_0x4a93b9,_0x75d0e1)),null;}let _0x1cb0be=null,_0x5b00ca=_0x80c4ee['start'],_0x4cc693=_0x80c4ee[_0x3024('0x51')];for(const {suggestion:_0x4ff239,meta:_0xee4e4c}of this[_0x3024('0x148')](_0x80c4ee,_0x3024('0x85'))){if(!_0xee4e4c['isOwn'])continue;if(_0xee4e4c[_0x3024('0x23')]||_0xee4e4c[_0x3024('0xda')]||_0xee4e4c[_0x3024('0x29')])continue;if(_0x4ff239[_0x3024('0x49')][_0x3024('0x112')]!=_0x4a93b9[_0x3024('0x112')])continue;if(!Pt(_0x4ff239,_0x75d0e1))continue;const _0x5006c0=_0x4ff239[_0x3024('0x137')]();if(_0x4ff239['subType']==_0x4f9ccf){if(_0x5006c0[_0x3024('0xb6')](_0x80c4ee,!0x0))return null;_0x5b00ca=_0x5b00ca[_0x3024('0x79')](_0x5006c0[_0x3024('0x163')])?_0x5b00ca:_0x5006c0[_0x3024('0x163')],_0x4cc693=_0x4cc693[_0x3024('0xa6')](_0x5006c0[_0x3024('0x51')])?_0x4cc693:_0x5006c0[_0x3024('0x51')],_0x1cb0be?_0x5006c0['start']['isBefore'](_0x1cb0be[_0x3024('0x137')]()[_0x3024('0x163')])?(_0x1cb0be[_0x3024('0xa4')](),_0x1cb0be=_0x4ff239):_0x4ff239['removeMarkers']():_0x1cb0be=_0x4ff239;}else{const _0x1251a5=_0x80c4ee[_0x3024('0xfd')](_0x5006c0);this[_0x3024('0xdf')](_0x4ff239,_0x1251a5);}}const _0x529b91=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')]('Users')['me'],_0x12e4ec=_0x25b08a(),_0x444e49=_0x529b91['id'];if(_0x1cb0be)return this[_0x3024('0x75')](_0x1cb0be,this['_model'][_0x3024('0x12d')](_0x5b00ca,_0x4cc693)),_0x1cb0be;{const _0x1574f5=this['_setSuggestionData']({'id':_0x12e4ec,'type':'formatBlock:'+_0x4f9ccf,'data':_0x4a93b9,'createdAt':new Date(),'authorId':_0x444e49,'attributes':_0x75d0e1});return this[_0x3024('0xe6')](_0x3024('0x12b')+_0x4f9ccf,_0x12e4ec,_0x444e49,this[_0x3024('0x6f')]['createRange'](_0x5b00ca,_0x4cc693)),_0x1574f5;}}[_0x3024('0xa8')](_0x479a47,_0x338d31,_0x4eafda=[],_0x420224=null,_0x5ddff3={}){_0x338d31[_0x3024('0x112')]||(_0x338d31[_0x3024('0x112')]=_0x338d31['commandName']);const _0x4af162=_0x479a47[0x0];_0x338d31[_0x3024('0x15')]=_0x4af162['is'](_0x3024('0x10c')),_0x420224=_0x420224||Et(_0x338d31);const _0x4032cd=_0x4eafda[_0x3024('0x53')](_0x462fa1=>Ot(_0x462fa1,this[_0x3024('0x6f')])),_0x4840e3=_0x4af162['is']('range')?_0x479a47:_0x479a47[_0x3024('0x53')](_0x26e655=>Ot(_0x26e655,this[_0x3024('0x6f')]));if(_0x3024('0x56')===this[_0x3024('0x5a')]){const _0x5b5217=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x5b5217(_0x4840e3,_0x338d31,_0x5ddff3)),null;}_0x4032cd[_0x3024('0xdc')](..._0x4840e3);let _0x38cefc=!0x0;for(const _0x595161 of _0x4032cd)if(!this[_0x3024('0xf0')](_0x595161)){_0x38cefc=!0x1;break;}if(_0x38cefc&&_0x3024('0x8c')!==this[_0x3024('0x5a')]){const _0x599486=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x599486(_0x4840e3,_0x338d31,_0x5ddff3)),null;}const _0x424fa0=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')]('Users')['me'];for(const _0x412e1a of this[_0x3024('0x44')]()){if(_0x412e1a[_0x3024('0x1d')]['id']!=_0x424fa0['id'])continue;if(_0x3024('0x85')!=_0x412e1a[_0x3024('0x132')]||_0x412e1a[_0x3024('0x49')][_0x3024('0x112')]!=_0x338d31[_0x3024('0x112')])continue;if(!Pt(_0x412e1a,_0x5ddff3))continue;const _0x51e10a=_0x412e1a[_0x3024('0x7c')]==_0x420224;for(let _0x5778e9=0x0;_0x5778e9<_0x4840e3[_0x3024('0x2')];_0x5778e9++){const _0x52b640=_0x4840e3[_0x5778e9];for(const _0x4787af of _0x412e1a[_0x3024('0xae')]()){const _0x4201d0=_0x4787af[_0x3024('0x3')]();if(_0x52b640[_0x3024('0xc9')](_0x4201d0)){_0x51e10a?(_0x4840e3['splice'](_0x5778e9,0x1),_0x5778e9--):_0x412e1a['removeMarker'](_0x4787af[_0x3024('0x17d')]);break;}}}}if(0x0==_0x4840e3['length'])return null;const _0x3d24b6=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x175'));for(const _0x27d382 of this[_0x3024('0x44')]())if(_0x27d382['author']['id']==_0x424fa0['id']&&_0x3024('0x85')==_0x27d382['type']&&_0x27d382[_0x3024('0x49')][_0x3024('0x112')]==_0x338d31[_0x3024('0x112')]&&_0x27d382[_0x3024('0x7c')]==_0x420224&&Pt(_0x27d382,_0x5ddff3)&&(_0x3d24b6(_0x27d382['getRanges'](),_0x4840e3)||_0x3d24b6(_0x4840e3,_0x27d382[_0x3024('0x84')]()))){for(const _0x12808c of _0x4840e3)_0x27d382[_0x3024('0x13c')](_0x12808c);return _0x27d382;}const _0x46c71e=_0x25b08a(),_0x295fb8=_0x424fa0['id'],_0x6ae9e7=_0x3024('0x12b')+_0x420224,_0x5c08d0=this[_0x3024('0x8')]({'id':_0x46c71e,'type':_0x6ae9e7,'data':_0x338d31,'createdAt':new Date(),'authorId':_0x295fb8,'attributes':_0x5ddff3});for(const _0x58c7b0 of _0x4840e3)this[_0x3024('0xe6')](_0x6ae9e7,_0x46c71e,_0x295fb8,_0x58c7b0,_0x1f2ce3['getMultiRangeId']());return _0x5c08d0;}[_0x3024('0x161')](_0x40c864,_0x1f3ab2=null,_0x5a6147={}){if(_0x40c864['isCollapsed'])return null;const _0x29af35=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'],_0x15cafd=new _0x205e8b(_0x40c864[_0x3024('0x163')],_0x40c864[_0x3024('0x51')]);for(const {suggestion:_0xa4608d,meta:_0x2b913f}of this[_0x3024('0x148')](_0x15cafd,_0x3024('0xac')))if(_0x2b913f[_0x3024('0xf8')]&&!_0x2b913f[_0x3024('0x23')]){if(_0xa4608d[_0x3024('0x8a')]){const _0x5665a1=_0xa4608d['getRanges']()[_0x3024('0x17a')](_0x2fd3b1=>_0x3024('0xb5')!=_0x2fd3b1[_0x3024('0xd0')][_0x3024('0x6e')]);_0x5665a1[_0x3024('0x9b')](_0x3913fb=>_0x15cafd['containsRange'](_0x3913fb,!0x0))&&_0xa4608d['discard']();if(_0x5665a1[_0x3024('0x30')](_0x27c499=>_0x27c499[_0x3024('0xb6')](_0x15cafd,!0x0))){const _0x478747=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x16'),_0x1f3ab2,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x478747([_0x15cafd],null,_0x5a6147)),null;}}else{const _0x1094e8=_0x15cafd[_0x3024('0xfd')](_0xa4608d[_0x3024('0x137')]());null!==_0x1094e8&&_0xa4608d[_0x3024('0x45')]([_0x1094e8],null,_0x5a6147);}}if(_0x15cafd[_0x3024('0xa2')](),_0x15cafd[_0x3024('0x3c')]||_0x3024('0xb5')==_0x15cafd[_0x3024('0xd0')]['rootName'])return null;let _0xd3fcf8=null,_0x47bdd7=_0x15cafd['start'],_0x238608=_0x15cafd[_0x3024('0x51')];const _0x3658c7=this[_0x3024('0x148')](_0x15cafd,'deletion');for(const {suggestion:_0x18dc85,meta:_0x1bc42a}of _0x3658c7){const _0x29d969=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x47bdd7,_0x238608);if(_0x1bc42a[_0x3024('0xf8')]&&(this[_0x3024('0x139')]||!_0x1bc42a['containsRangeInObject']&&!_0x1bc42a[_0x3024('0x29')])){if(_0x18dc85['isMultiRange']){if(!Pt(_0x18dc85,_0x5a6147))continue;let _0x529096=!0x0;for(const _0x2fb155 of _0x18dc85[_0x3024('0x84')]()){if(_0x2fb155[_0x3024('0xb6')](_0x29d969,!0x0))return _0x18dc85;_0x29d969[_0x3024('0xb6')](_0x2fb155)||(_0x529096=!0x1);}_0x529096&&_0x18dc85[_0x3024('0x40')]();}else{const _0x5b8a65=_0x18dc85['getFirstRange']();if(_0x5b8a65[_0x3024('0xb6')](_0x29d969,!0x0))return _0x18dc85;if(!Pt(_0x18dc85,_0x5a6147)){_0x29d969[_0x3024('0xb6')](_0x5b8a65)?_0x18dc85[_0x3024('0xa4')]():_0x5b8a65[_0x3024('0x105')](_0x47bdd7)?_0x47bdd7=_0x5b8a65[_0x3024('0x51')]:_0x5b8a65[_0x3024('0x105')](_0x238608)&&(_0x238608=_0x5b8a65['start']);continue;}_0x47bdd7=_0x47bdd7[_0x3024('0x79')](_0x5b8a65[_0x3024('0x163')])?_0x47bdd7:_0x5b8a65[_0x3024('0x163')],_0x238608=_0x238608[_0x3024('0xa6')](_0x5b8a65[_0x3024('0x51')])?_0x238608:_0x5b8a65[_0x3024('0x51')],_0x5a6147=Object['assign']({},_0x18dc85['attributes']),_0xd3fcf8?_0x5b8a65[_0x3024('0x163')]['isBefore'](_0xd3fcf8[_0x3024('0x137')]()['start'])?(_0xd3fcf8[_0x3024('0xa4')](),_0xd3fcf8=_0x18dc85):_0x18dc85[_0x3024('0xa4')]():_0xd3fcf8=_0x18dc85;}}}if(_0xd3fcf8)return this[_0x3024('0x75')](_0xd3fcf8,this['_model'][_0x3024('0x12d')](_0x47bdd7,_0x238608)),_0xd3fcf8;{const _0x5e4e32=_0x25b08a(),_0x5c6d91=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x47bdd7,_0x238608),_0x441b48=_0x29af35['id'],_0x3a1cc4=_0x1f3ab2?_0x3024('0x119')+_0x1f3ab2:'deletion',_0x35ee1d=this['_setSuggestionData']({'id':_0x5e4e32,'type':_0x3a1cc4,'createdAt':new Date(),'authorId':_0x441b48,'attributes':_0x5a6147});return this['_addSuggestionMarker'](_0x3a1cc4,_0x5e4e32,_0x441b48,_0x5c6d91),_0x35ee1d;}}[_0x3024('0x2f')](_0x2b916d,_0x2753ba='multi',_0x5bd077={}){const _0x39e2d2=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x12dd5c=_0x2b916d[_0x3024('0x53')](_0x1ada4a=>new _0x205e8b(_0x1ada4a[_0x3024('0x163')],_0x1ada4a[_0x3024('0x51')])),_0x43852e=new Set();for(const {suggestion:_0x5986f8,meta:_0x52b6a4}of this[_0x3024('0x148')](_0x12dd5c,'insertion'))_0x52b6a4[_0x3024('0xf8')]&&!_0x52b6a4['isNextTo']&&_0x43852e['add'](_0x5986f8);for(const _0x274bf3 of _0x43852e)if(_0x274bf3[_0x3024('0x8a')]){const _0x1797bb=_0x274bf3[_0x3024('0x84')]();(!_0x274bf3['attributes']||!_0x274bf3[_0x3024('0x3e')]['skipNestingCheck'])&&(_0x1797bb[_0x3024('0x9b')](_0x1cac32=>_0x12dd5c[_0x3024('0x30')](_0x198858=>_0x198858['containsRange'](_0x1cac32,!0x0)))&&_0x274bf3[_0x3024('0x40')]());if(_0x12dd5c[_0x3024('0x9b')](_0x4a27c7=>_0x1797bb[_0x3024('0x30')](_0x4c775d=>_0x4c775d[_0x3024('0xb6')](_0x4a27c7,!0x0)))){const _0x4056d4=this[_0x3024('0x71')][_0x3024('0x11a')]('deletion',_0x2753ba,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x4056d4(_0x2b916d,null,_0x5bd077)),null;}}else{const _0x3a736b=_0x274bf3[_0x3024('0x137')]();_0x12dd5c['some'](_0x2127f0=>_0x2127f0[_0x3024('0xb6')](_0x3a736b,!0x0))&&_0x274bf3['discard']();if(_0x12dd5c[_0x3024('0x9b')](_0x102528=>_0x3a736b[_0x3024('0xb6')](_0x102528,!0x0))){const _0x41a6f7=this['_suggestionFactory'][_0x3024('0x11a')](_0x3024('0x16'),_0x2753ba,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x41a6f7(_0x12dd5c,null,_0x5bd077)),null;}}const _0x3960af=this['_suggestionFactory'][_0x3024('0x11a')](_0x3024('0x16'),_0x2753ba,'join');let _0x523174=null;for(const _0x1651ce of this[_0x3024('0x44')]())if(_0x1651ce['author']['id']==_0x39e2d2['id']&&_0x1651ce[_0x3024('0x144')]&&_0x3024('0x16')==_0x1651ce['type']&&_0x1651ce[_0x3024('0x7c')]==_0x2753ba&&Pt(_0x1651ce,_0x5bd077)&&(_0x3960af(_0x1651ce[_0x3024('0x84')](),_0x12dd5c)||_0x3960af(_0x12dd5c,_0x1651ce['getRanges']()))){if(_0x523174){if(_0x1651ce[_0x3024('0x37')]&&_0x1651ce[_0x3024('0x37')][_0x3024('0x2')])continue;for(const _0x468fe1 of _0x1651ce[_0x3024('0x84')]())_0x523174['isIntersectingWithRange'](_0x468fe1)||_0x523174['addRange'](_0x468fe1);_0x1651ce[_0x3024('0xa4')]();}else{_0x523174=_0x1651ce;for(const _0x52182f of _0x12dd5c)_0x1651ce['isIntersectingWithRange'](_0x52182f)||_0x1651ce['addRange'](_0x52182f);}}if(_0x523174)return _0x523174;_0x43852e[_0x3024('0x101')]();for(const {suggestion:_0x45bc73,meta:_0x287b4b}of this[_0x3024('0x148')](_0x12dd5c,_0x3024('0x16')))_0x287b4b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x287b4b[_0x3024('0xda')]&&!_0x287b4b['isInsideObject'])&&Pt(_0x45bc73,_0x5bd077)&&_0x43852e[_0x3024('0x54')](_0x45bc73);for(const _0x4bddc of _0x43852e){const _0x4aab0c=_0x4bddc['getRanges']();if(!_0x5bd077||!_0x5bd077['skipNestingCheck']){if(_0x12dd5c['every'](_0x573cc8=>_0x4aab0c[_0x3024('0x30')](_0x475ed9=>_0x475ed9[_0x3024('0xb6')](_0x573cc8,!0x0))))return _0x4bddc;}(!_0x4bddc['attributes']||!_0x4bddc[_0x3024('0x3e')][_0x3024('0xd1')])&&(_0x4aab0c[_0x3024('0x9b')](_0x119593=>_0x12dd5c[_0x3024('0x30')](_0x6729d3=>_0x6729d3[_0x3024('0xb6')](_0x119593,!0x0)))&&_0x4bddc['discard']());}const _0x1264c8=_0x25b08a(),_0x38c844=_0x39e2d2['id'],_0xd33703=_0x3024('0x119')+_0x2753ba,_0x2083c0=this[_0x3024('0x8')]({'id':_0x1264c8,'type':_0xd33703,'createdAt':new Date(),'authorId':_0x38c844,'attributes':_0x5bd077});for(const _0x1df1a5 of _0x12dd5c)_0x1df1a5[_0x3024('0xa2')](),_0x1df1a5[_0x3024('0x3c')]||_0x3024('0xb5')==_0x1df1a5[_0x3024('0xd0')][_0x3024('0x6e')]||this[_0x3024('0xe6')](_0xd33703,_0x1264c8,_0x38c844,_0x1df1a5,_0x1f2ce3[_0x3024('0x117')]());return _0x2083c0;}[_0x3024('0x16f')](_0x40fe36,_0xe294c8,_0x27e892,_0x1de251,_0x13a079){if(_0x40fe36[_0x3024('0x3c')])return[];if(_0x3024('0x56')===this[_0x3024('0x5a')])return[];const _0x1facc7=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me']['id'],_0x25a1fb=Array['from'](this[_0x3024('0xe1')][_0x3024('0x178')]())['filter'](_0x1736dc=>_0x3024('0x13f')==_0x1736dc['type']&&_0x1736dc[_0x3024('0x49')][_0x3024('0xb8')]==_0xe294c8&&_0x1736dc[_0x3024('0xfc')](_0x40fe36));if(_0x3024('0x93')===this['_trackFormatChanges']){const _0x260eb4=this[_0x3024('0x148')](_0x40fe36,_0x3024('0xac'))['filter'](({meta:_0xfac6a9})=>_0xfac6a9[_0x3024('0xf8')]&&!_0xfac6a9[_0x3024('0x29')]&&!_0xfac6a9['isNextTo'])[_0x3024('0x53')](({suggestion:_0x432012})=>_0x432012);_0x25a1fb['unshift'](..._0x260eb4);}const _0x3f491a=new Map([[_0x40fe36,_0x27e892]]);for(const _0x1c4425 of _0x25a1fb){const _0x134cb1='attribute'==_0x1c4425['type']?_0x1c4425[_0x3024('0x49')][_0x3024('0xf5')]:void 0x0,_0x5697a8=_0x1c4425['getFirstRange'](),_0x4b3cd4=Array['from'](_0x3f491a[_0x3024('0x19')]())[_0x3024('0x33')](_0x14a73d=>_0x14a73d[_0x3024('0x134')](_0x5697a8));if(!_0x4b3cd4)continue;const _0x2cc487=_0x4b3cd4[_0x3024('0x13e')](_0x5697a8);this[_0x3024('0x7e')](_0xe294c8)&&'insertion'==_0x1c4425['type']&&0x0!=_0x2cc487['length']||(_0x3f491a[_0x3024('0x108')](_0x4b3cd4),_0x2cc487['forEach'](_0x18fcd9=>{_0x3f491a[_0x3024('0x17c')](_0x18fcd9,_0x27e892);}),_0x3024('0xac')!=_0x1c4425[_0x3024('0x132')]&&_0x134cb1!=_0x1de251&&_0x3f491a[_0x3024('0x17c')](_0x4b3cd4[_0x3024('0xfd')](_0x5697a8),_0x134cb1));}const _0x229d91=[];for(const [_0x493653,_0x4bcedd]of _0x3f491a){const _0x225398=_0x25b08a(),_0xe10387={'key':_0xe294c8,'oldValue':_0x4bcedd,'newValue':_0x1de251};_0xe294c8['length']>0x25&&console[_0x3024('0x4e')](_0x3024('0xb0'),{'key':_0xe294c8});const _0x4c9dec=('attribute:'+(_0xe294c8+'|'+Et({'newValue':_0x1de251})))[_0x3024('0x11d')](0x0,0x3c),_0x21cafc=this[_0x3024('0x8')]({'id':_0x225398,'type':_0x4c9dec,'data':_0xe10387,'createdAt':new Date(),'authorId':_0x1facc7,'attributes':_0x13a079});_0x229d91[_0x3024('0xdc')](_0x21cafc),this['_addSuggestionMarker'](_0x4c9dec,_0x225398,_0x1facc7,_0x493653);}return _0x229d91;}[_0x3024('0x59')](_0x2db657){this[_0x3024('0x90')][_0x3024('0x54')](_0x2db657);}[_0x3024('0x38')](_0x2d47b8){this['_inlineAttributeKeys'][_0x3024('0x54')](_0x2d47b8);}[_0x3024('0xe9')](_0x5dd4d5,_0x3cd8a1=[],_0x48cf9e=[]){this[_0x3024('0xde')](_0x5dd4d5,(_0x5c48c6,..._0x1404e4)=>{this[_0x3024('0x12e')](()=>{_0x5c48c6(..._0x1404e4);});});for(const _0x45df8c of _0x3cd8a1)this[_0x3024('0x38')](_0x45df8c);for(const _0x4b5c79 of _0x48cf9e)this[_0x3024('0x59')](_0x4b5c79);}[_0x3024('0x72')](_0x4bb513){return _0x3024('0x13f')==_0x4bb513[_0x3024('0x132')]?_0x4bb513[_0x3024('0x7c')][_0x3024('0x28')]('|')[0x0]:null;}[_0x3024('0x75')](_0x1028d8,_0x640f35){const _0x3572d4=_0x1028d8['getFirstMarker']();this[_0x3024('0x6f')][_0x3024('0x11f')](_0x5bf5c7=>{_0x5bf5c7[_0x3024('0x11')](_0x3572d4,{'range':_0x640f35});});}[_0x3024('0x150')](_0x5a3497){const _0x223808=_0x5a3497['id'],_0x2a47c5=this[_0x3024('0x154')][_0x3024('0xb9')]['get'](_0x3024('0x123'));this[_0x3024('0xa')][_0x3024('0xbc')](_0x223808)||this[_0x3024('0xa')][_0x3024('0x6a')]({'channelId':_0x2a47c5,'threadId':_0x223808,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5087e4=this[_0x3024('0xa')][_0x3024('0xc4')](_0x223808);_0x5087e4['unbind']('isRemovable'),_0x5087e4['isRemovable']=!0x1,_0x5a3497['commentThread']=_0x5087e4;}[_0x3024('0xc6')](_0x4f2e07,_0x4ec40f,_0x1ad4c8,_0xb18d5d){if(_0x4f2e07['type']!=_0x4ec40f||_0x4f2e07[_0x3024('0x7c')]!=_0x1ad4c8||_0x4f2e07[_0x3024('0x10b')]['id']!=_0xb18d5d)throw this[_0x3024('0x154')][_0x3024('0x4')]('track-changes-suggestion-data-mismatch'),new _0x255fda(_0x3024('0x1a'),this);}[_0x3024('0xdf')](_0x5529e4,_0x144ad6){const _0xb4225f=_0x5529e4[_0x3024('0x137')]();if(_0x144ad6[_0x3024('0xc9')](_0xb4225f))_0x5529e4[_0x3024('0xa4')]();else{if(_0xb4225f['containsRange'](_0x144ad6)){const _0x5ea3c0=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x163')]['nodeBefore'],_0x3024('0x51'));this['_setSuggestionRange'](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0xb4225f[_0x3024('0x163')],_0x5ea3c0));const _0x225724=_0x25b08a(),_0x26b772=_0x5529e4['creator']['id'],_0xcd470b=_0x5529e4[_0x3024('0x132')]+':'+_0x5529e4[_0x3024('0x7c')];this[_0x3024('0x8')]({'id':_0x225724,'type':_0xcd470b,'createdAt':new Date(),'authorId':_0x26b772,'data':_0x5529e4[_0x3024('0x49')],'attributes':_0x5529e4[_0x3024('0x3e')]});const _0x168d8d=this['_model']['createPositionAt'](_0x144ad6['end']['parent'],_0x3024('0x24')),_0x2d6cbb=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x168d8d,_0xb4225f['end']);this[_0x3024('0xe6')](_0xcd470b,_0x225724,_0x26b772,_0x2d6cbb);}else{if(_0xb4225f[_0x3024('0x105')](_0x144ad6[_0x3024('0x163')])){const _0x46ad52=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x163')][_0x3024('0x4c')],_0x3024('0x51'));this[_0x3024('0x75')](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0xb4225f[_0x3024('0x163')],_0x46ad52));}else{const _0x9c5590=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x51')][_0x3024('0x7f')],_0x3024('0x24'));this[_0x3024('0x75')](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x9c5590,_0xb4225f['end']));}}}}[_0x3024('0xf0')](_0x15c421){for(const {suggestion:_0x13c762,meta:_0x735e3a}of this[_0x3024('0x148')](_0x15c421,_0x3024('0xac'))){if(!_0x735e3a[_0x3024('0xf8')])continue;const _0xbc7b18=_0x13c762[_0x3024('0x84')]();for(const _0x5e9362 of _0xbc7b18)if(!_0x15c421[_0x3024('0x13e')](_0x5e9362)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d05e6){const _0x3c350c=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['getUser'](_0x1d05e6);if(!_0x3c350c)throw new _0x255fda(_0x3024('0xd3'),this);return _0x3c350c;}[_0x3024('0xaa')](_0x1221ff){const _0x15fff5=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8')),_0x463567=_0x4a1e6a(_0x3024('0x11b')+_0x1221ff),_0x4ac671=_0x15fff5[_0x3024('0x10a')](_0x463567);return _0x4ac671||_0x15fff5[_0x3024('0x16e')]({'id':_0x463567,'name':_0x1221ff});}['_createSuggestion'](_0x6f507c,_0x386fad,_0x4fa913,_0x43e1cd,_0x2f17e3){const _0x4e7ec8=this[_0x3024('0x126')](_0x43e1cd),_0x35eed7=this[_0x3024('0x71')][_0x3024('0xc')](_0x6f507c,_0x386fad,_0x4fa913,_0x4e7ec8,_0x2f17e3,_0x2aec11=>{this[_0x3024('0x14a')](_0x4fa913,{'attributes':_0x2aec11});const _0x156a89=this[_0x3024('0x179')](_0x4fa913);this[_0x3024('0x68')](new Set([_0x156a89])),this['_refreshSuggestionsChain'](new Set([_0x156a89]));});return this[_0x3024('0x128')](_0x35eed7,_0x3024('0x14c'),()=>{this['_updateSuggestionData'](_0x4fa913,{'state':_0x3024('0x14e')});},{'priority':_0x3024('0x41')}),this[_0x3024('0x128')](_0x35eed7,_0x3024('0x40'),()=>{this['_updateSuggestionData'](_0x4fa913,{'state':_0x3024('0x177')});},{'priority':_0x3024('0x41')}),this['_suggestions'][_0x3024('0x17c')](_0x4fa913,_0x35eed7),this[_0x3024('0x16b')][_0x3024('0x17c')](_0x35eed7,_0x3024('0xb')),_0x35eed7;}[_0x3024('0xdd')](_0x3a144e){const _0x2ba0fb=_0x3a144e[_0x3024('0x28')](':');return{'group':_0x2ba0fb[0x0],'type':_0x2ba0fb[0x1],'subType':_0x2ba0fb[_0x3024('0x2')]>=0x5?_0x2ba0fb[0x2]:null,'id':_0x2ba0fb[_0x3024('0x2')]<0x5?_0x2ba0fb[0x2]:_0x2ba0fb[0x3],'authorId':_0x2ba0fb[_0x3024('0x2')]<0x5?_0x2ba0fb[0x3]:_0x2ba0fb[0x4],'markerCount':0x6==_0x2ba0fb[_0x3024('0x2')]?_0x2ba0fb[0x5]:null};}[_0x3024('0x162')](_0x499e7b,_0x7d11c5,_0x3ddf6d){const _0x39b4c7=_0x499e7b['getFirstRange'](),_0x35506e=_0x39b4c7[_0x3024('0x163')],_0x2ad953=_0x39b4c7[_0x3024('0x51')];this[_0x3024('0x75')](_0x499e7b,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x35506e,_0x7d11c5));const _0x493ea4=_0x25b08a(),_0x3c4be1=_0x499e7b['creator']['id'],_0xd16c89=_0x499e7b[_0x3024('0x132')]+(_0x499e7b[_0x3024('0x7c')]?':'+_0x499e7b[_0x3024('0x7c')]:'');this[_0x3024('0x8')]({'id':_0x493ea4,'type':_0xd16c89,'createdAt':new Date(),'authorId':_0x3c4be1,'originalSuggestionId':_0x499e7b['id'],'attributes':_0x499e7b[_0x3024('0x3e')],'data':_0x499e7b['data']});const _0x1e646d=this[_0x3024('0x72')](_0x499e7b);(_0x3024('0x85')==_0x499e7b[_0x3024('0x132')]||_0x1e646d&&this[_0x3024('0x7e')](_0x1e646d))&&(_0x3ddf6d=this[_0x3024('0x6f')][_0x3024('0x145')](_0x3ddf6d[_0x3024('0x7f')])),this['_addSuggestionMarker'](_0xd16c89,_0x493ea4,_0x3c4be1,this[_0x3024('0x6f')]['createRange'](_0x3ddf6d,_0x2ad953));}[_0x3024('0x148')](_0x4a2b75,_0x28988b=null){const _0x82472e=[],_0x418ec2=this['editor'][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'];Array[_0x3024('0x151')](_0x4a2b75)||(_0x4a2b75=[_0x4a2b75]);for(const _0x28946a of this['getSuggestions']()){if(!_0x28946a[_0x3024('0x144')])continue;if(_0x28988b&&_0x28946a[_0x3024('0x132')]!=_0x28988b)continue;let _0x4785e4=!0x1;for(const _0x134aa7 of _0x28946a[_0x3024('0x84')]()){for(const _0x7bb8ad of _0x4a2b75){const _0x4f61d1=_0x7bb8ad['start'][_0x3024('0xc9')](_0x134aa7[_0x3024('0x51')])||_0x7bb8ad['end'][_0x3024('0xc9')](_0x134aa7['start']);if(_0x4f61d1||_0x7bb8ad[_0x3024('0xfd')](_0x134aa7)){const _0x127f84=_0x7bb8ad[_0x3024('0xb6')](_0x134aa7)&&xt(this[_0x3024('0x6f')][_0x3024('0x104')],_0x134aa7['start'],_0x7bb8ad),_0x4dbe35=_0x134aa7[_0x3024('0xb6')](_0x7bb8ad)&&xt(this['_model'][_0x3024('0x104')],_0x7bb8ad['start'],_0x134aa7);_0x82472e[_0x3024('0xdc')]({'suggestion':_0x28946a,'meta':{'isOwn':_0x418ec2==_0x28946a['author'],'isNextTo':_0x4f61d1,'isInsideObject':_0x127f84,'containsRangeInObject':_0x4dbe35}}),_0x4785e4=!0x0;break;}}if(_0x4785e4)break;}}return _0x82472e;}['_addSuggestionMarker'](_0x16657b,_0x291a35,_0x6383de,_0x5c4e60,_0x13ce1a){this[_0x3024('0x6f')][_0x3024('0x11f')](_0x4b5ccc=>{let _0x2fac6e=_0x3024('0x9')+_0x16657b+':'+_0x291a35+':'+_0x6383de;_0x13ce1a&&(_0x2fac6e=_0x2fac6e+':'+_0x13ce1a),_0x4b5ccc[_0x3024('0x127')](_0x2fac6e,{'range':_0x5c4e60,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3024('0x43')](_0x19e4c5){const _0x1027b3=_0x19e4c5['previous'],_0x45e3e5=_0x19e4c5[_0x3024('0x130')];_0x19e4c5['previous']=null,_0x19e4c5[_0x3024('0x130')]=null,null!=_0x1027b3&&_0x1027b3[_0x3024('0x130')]==_0x19e4c5&&(_0x1027b3[_0x3024('0x130')]=_0x45e3e5),null!=_0x45e3e5&&_0x45e3e5['previous']==_0x19e4c5&&(_0x45e3e5[_0x3024('0x16a')]=_0x1027b3),'ready'==this[_0x3024('0x16b')][_0x3024('0xa0')](_0x19e4c5)&&(this[_0x3024('0x16b')]['set'](_0x19e4c5,_0x3024('0x3f')),this[_0x3024('0xa3')](_0x3024('0xaf'),_0x19e4c5,_0x1027b3,_0x45e3e5));}['_setSuggestionData'](_0x5dc8ca){const _0x4c7e76=_0x5dc8ca['id'],_0x44c105=this[_0x3024('0x25')](_0x5dc8ca);if(this['_adapter']&&this['_adapter'][_0x3024('0xbf')]){const _0x53560f=this['editor']['plugins'][_0x3024('0xa0')](_0x3024('0xa9')),_0x91df99=_0x44c105[_0x3024('0x8f')],_0xd63110=_0x44c105[_0x3024('0x7c')]?_0x44c105[_0x3024('0x132')]+':'+_0x44c105['subType']:_0x44c105[_0x3024('0x132')],_0x63d1fb=this[_0x3024('0x154')]['locale'],_0x577a98=_0x53560f[_0x3024('0x54')](_0x44f115(_0x63d1fb,_0x3024('0xea'))),_0x56959e={'id':_0x4c7e76,'type':_0xd63110,'hasComments':_0x91df99,'data':_0x5dc8ca[_0x3024('0x49')]||null,'originalSuggestionId':_0x5dc8ca[_0x3024('0x1f')]||null,'attributes':_0x44c105['attributes']};this[_0x3024('0x60')][_0x3024('0xbf')](_0x56959e)[_0x3024('0x31')](_0x19eb95=>{_0x44c105[_0x3024('0x113')]=!0x0,_0x53560f[_0x3024('0x1e')](_0x577a98),_0x19eb95&&_0x19eb95[_0x3024('0x166')]&&(this[_0x3024('0xe1')][_0x3024('0xa0')](_0x4c7e76)[_0x3024('0x166')]=_0x19eb95[_0x3024('0x166')]);})[_0x3024('0x14b')](_0x4e9110=>{throw _0x59dd10(_0x3024('0x110')),this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0x176')]({'isUndoable':!0x1},()=>{_0x44c105['discard']();}),_0x44c105[_0x3024('0x9f')](),this[_0x3024('0xe1')]['delete'](_0x44c105['id']),this[_0x3024('0x16b')][_0x3024('0x108')](_0x44c105),_0x4e9110;});}return _0x44c105;}[_0x3024('0x7e')](_0x71710b){return this['_blockAttributeKeys']['has'](_0x71710b);}['_updateSuggestionData'](_0x128fe8,_0x424b25){const _0x3fb59a=this[_0x3024('0x154')]['plugins'][_0x3024('0xa0')](_0x3024('0xa9')),_0x6e8d0a=this['getSuggestion'](_0x128fe8);if(this[_0x3024('0x60')]&&this[_0x3024('0x60')][_0x3024('0xe3')]){if(_0x6e8d0a[_0x3024('0x113')]){const _0x941a16=_0x3fb59a[_0x3024('0x54')](_0x44f115(this[_0x3024('0x154')][_0x3024('0xb2')],_0x3024('0xea')));this[_0x3024('0x60')]['updateSuggestion'](_0x128fe8,_0x424b25)[_0x3024('0x31')](()=>{_0x3fb59a[_0x3024('0x1e')](_0x941a16);});}else _0x6e8d0a['on'](_0x3024('0x26'),()=>{this['_updateSuggestionData'](_0x128fe8,_0x424b25);});}}[_0x3024('0xe7')](_0x1e1584){if(!this['_adapter']||!this[_0x3024('0x60')][_0x3024('0x179')])throw new _0x255fda(_0x3024('0xd9'),this);return this[_0x3024('0x60')][_0x3024('0x179')](_0x1e1584);}[_0x3024('0x155')](_0x547eeb){const {id:_0x691f76,type:_0x545b63,subType:_0x23fdfc,authorId:_0x19e3c5}=this[_0x3024('0xdd')](_0x547eeb),_0x585b54=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x691f76)||this[_0x3024('0x156')](_0x545b63,_0x23fdfc,_0x691f76,_0x19e3c5,{});switch(this[_0x3024('0xc6')](_0x585b54,_0x545b63,_0x23fdfc,_0x19e3c5),this[_0x3024('0x16b')]['get'](_0x585b54)){case _0x3024('0xb'):this['_getSuggestionData'](_0x691f76)[_0x3024('0x31')](_0x598523=>{let _0x8a951f=Promise[_0x3024('0x107')]();_0x598523[_0x3024('0x8f')]&&(_0x8a951f=this[_0x3024('0xa')][_0x3024('0x159')]({'channelId':this['editor'][_0x3024('0xb9')]['get'](_0x3024('0x123')),'threadId':_0x691f76})),_0x8a951f['then'](()=>{this[_0x3024('0x25')](_0x598523)['_saved']=!0x0;});}),this[_0x3024('0x16b')][_0x3024('0x17c')](_0x585b54,_0x3024('0x5e'));break;case _0x3024('0x3f'):this[_0x3024('0x14a')](_0x691f76,{'state':_0x3024('0x50')});case _0x3024('0xe'):this['_suggestionState'][_0x3024('0x17c')](_0x585b54,_0x3024('0x81')),this['fire'](_0x3024('0x39'),_0x585b54);break;case _0x3024('0x81'):this['fire'](_0x3024('0x138'),_0x585b54);}return _0x585b54[_0x3024('0x141')](_0x547eeb),_0x585b54;}[_0x3024('0x96')](_0x232c92){const _0x42f068=Array['from'](_0x232c92),_0x4c0801=_0x42f068['filter'](_0x4f3aad=>_0x3024('0x13f')==_0x4f3aad[_0x3024('0x132')]);this[_0x3024('0x167')](_0x4c0801);const _0x118566=_0x42f068['filter'](_0x427fb5=>!_0x427fb5[_0x3024('0x8a')]&&_0x3024('0x13f')!=_0x427fb5['type']),_0x12fad3=this[_0x3024('0x44')]({'skipNotAttached':!0x0})[_0x3024('0x17a')](_0x28caf8=>!_0x28caf8['isMultiRange']&&_0x3024('0x13f')!=_0x28caf8[_0x3024('0x132')]),_0x5111b1=_0x12fad3[_0x3024('0x17a')](_0xbccd5e=>!_0x232c92[_0x3024('0x14f')](_0xbccd5e)),_0x40661f=new Map(_0x12fad3[_0x3024('0x53')](_0x31403f=>[_0x31403f,this[_0x3024('0x71')][_0x3024('0x11a')](_0x31403f[_0x3024('0x132')],_0x31403f[_0x3024('0x7c')],_0x3024('0x164'))])),_0x510c3f=new Map(_0x12fad3['map'](_0x1c8813=>[_0x1c8813,_0x1c8813[_0x3024('0x137')]()])),_0x238bc5=new Set(),_0x4bdcd4=new Set();for(let _0x1a459c=0x0;_0x1a459c<_0x118566[_0x3024('0x2')];_0x1a459c++)_0x5998d4(_0x118566[_0x1a459c],_0x118566,_0x1a459c+0x1);for(let _0x487b94=0x0;_0x487b94<_0x118566['length'];_0x487b94++)_0x5998d4(_0x118566[_0x487b94],_0x5111b1,0x0);const _0x14241f=new Set();for(let _0x4f34f5=0x0;_0x4f34f5<_0x118566[_0x3024('0x2')];_0x4f34f5++){const _0x5b0748=_0x118566[_0x4f34f5];!_0x4bdcd4[_0x3024('0x14f')](_0x5b0748)&&_0x5b0748[_0x3024('0x16a')]&&(_0x14241f[_0x3024('0x54')](_0x5b0748[_0x3024('0x16a')]),_0x5b0748['previous'][_0x3024('0x130')]===_0x5b0748&&(_0x5b0748['previous'][_0x3024('0x130')]=null),_0x5b0748[_0x3024('0x16a')]=null),!_0x238bc5[_0x3024('0x14f')](_0x5b0748)&&_0x5b0748['next']&&(_0x14241f[_0x3024('0x54')](_0x5b0748[_0x3024('0x130')]),_0x5b0748[_0x3024('0x130')]['previous']===_0x5b0748&&(_0x5b0748['next']['previous']=null),_0x5b0748[_0x3024('0x130')]=null);}function _0x5998d4(_0x35deae,_0x4b394b,_0x405b35){for(let _0x568d83=_0x405b35;_0x568d83<_0x4b394b['length'];_0x568d83++){const _0x2b430b=_0x435224(_0x35deae,_0x4b394b[_0x568d83]);_0x2b430b&&(_0x2b430b[0x0][_0x3024('0x130')]=_0x2b430b[0x1],_0x2b430b[0x1][_0x3024('0x16a')]=_0x2b430b[0x0],_0x238bc5[_0x3024('0x54')](_0x2b430b[0x0]),_0x4bdcd4['add'](_0x2b430b[0x1]));}}function _0x435224(_0x50c474,_0x40c063){if(_0x50c474['author']['id']!==_0x40c063[_0x3024('0x1d')]['id'])return null;const _0x3b5307=_0x40661f['get'](_0x50c474)(_0x50c474,_0x40c063,_0x510c3f[_0x3024('0xa0')](_0x50c474),_0x510c3f[_0x3024('0xa0')](_0x40c063));if(!_0x3b5307)return null;return _0x40661f[_0x3024('0xa0')](_0x40c063)(_0x50c474,_0x40c063,_0x510c3f[_0x3024('0xa0')](_0x50c474),_0x510c3f[_0x3024('0xa0')](_0x40c063))?_0x3b5307[0x1][_0x3024('0x37')]&&_0x3b5307[0x1][_0x3024('0x37')]['length']?null:_0x3b5307:null;}_0x14241f[_0x3024('0x6d')]&&this[_0x3024('0x96')](_0x14241f);}[_0x3024('0x167')](_0x2c3dc1){if(0x0==_0x2c3dc1[_0x3024('0x2')])return;const _0x259fd6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2abe87=>'attribute'==_0x2abe87[_0x3024('0x132')]&&_0x2abe87['_isDataLoaded']),_0xd29c86=[],_0x3034da=new Map();for(const _0x15d7cc of _0x259fd6){const _0x39e619=_0x4a1e6a(_0x15d7cc[_0x3024('0x3e')]);_0x3034da['has'](_0x39e619)||(_0x3034da[_0x3024('0x17c')](_0x39e619,_0xd29c86['length']),_0xd29c86[_0x3024('0xdc')]([]));const _0x4720d5=_0x3034da[_0x3024('0xa0')](_0x39e619);_0xd29c86[_0x4720d5][_0x3024('0xdc')](_0x15d7cc);}!function(){_0xd29c86['sort']((_0x446619,_0x714fc4)=>{const _0x4573fd=_0x446619[0x0]['createdAt'],_0x264eeb=_0x714fc4[0x0]['createdAt'];return _0x4573fd==_0x264eeb?_0x446619[0x0]['attributes'][_0x3024('0x1')]<_0x714fc4[0x0][_0x3024('0x3e')][_0x3024('0x1')]?-0x1:0x1:_0x4573fd<_0x264eeb?-0x1:0x1;});for(const _0xf3aa4 of _0xd29c86)_0xf3aa4[_0x3024('0x3b')]((_0x1b8104,_0x148c1a)=>_0x1b8104['id']<_0x148c1a['id']?-0x1:0x1);}();for(let _0x51884c=0x0;_0x51884c<_0xd29c86['length'];_0x51884c++){if(0x0==_0xd29c86[_0x51884c][_0x3024('0x2')])continue;const _0x147cd1=[];for(let _0x5499b6=_0x51884c+0x1;_0x5499b6<_0xd29c86[_0x3024('0x2')];_0x5499b6++)0x0!=_0xd29c86[_0x5499b6][_0x3024('0x2')]&&_0x3ef553(_0xd29c86[_0x51884c],_0xd29c86[_0x5499b6])&&_0x147cd1[_0x3024('0xdc')](_0x5499b6);for(const _0x43db33 of _0x147cd1)_0xd29c86[_0x51884c]=_0xd29c86[_0x51884c][_0x3024('0x115')](_0xd29c86[_0x43db33]),_0xd29c86[_0x43db33]=[];}for(const _0x124e69 of _0xd29c86)for(let _0x53604c=0x0;_0x53604c<_0x124e69[_0x3024('0x2')];_0x53604c++)_0x124e69[_0x53604c][_0x3024('0x130')]=_0x124e69[_0x53604c+0x1]||null;for(const _0x4ee21f of _0xd29c86)for(let _0x10c9dd=0x0;_0x10c9dd<_0x4ee21f[_0x3024('0x2')];_0x10c9dd++)_0x4ee21f[_0x10c9dd][_0x3024('0x16a')]=_0x4ee21f[_0x10c9dd-0x1]||null;function _0x3ef553(_0x4dcc31,_0x209d39){if(_0x4dcc31[0x0][_0x3024('0x3e')][_0x3024('0x1')]!==_0x209d39[0x0][_0x3024('0x3e')]['groupId']&&_0x4dcc31[0x0][_0x3024('0x1d')]!==_0x209d39[0x0]['author'])return!0x1;if(!function(_0x253df1,_0x176ca4){if(!_0x253df1[_0x3024('0x8f')]&&!_0x176ca4[_0x3024('0x8f')])return!0x0;if(_0x253df1[_0x3024('0x8f')]&&_0x176ca4[_0x3024('0x8f')])return!0x1;if(_0x253df1[_0x3024('0x8f')]&&_0x176ca4[_0x3024('0x166')]<_0x253df1[_0x3024('0x37')][_0x3024('0x5')]['get'](0x0)[_0x3024('0x166')])return!0x0;if(_0x176ca4['hasComments']&&_0x253df1[_0x3024('0x166')]<_0x176ca4[_0x3024('0x37')][_0x3024('0x5')][_0x3024('0xa0')](0x0)[_0x3024('0x166')])return!0x0;return!0x1;}(_0x4dcc31[0x0],_0x209d39[0x0]))return!0x1;const _0x253833=_0x5a017a(_0x4dcc31[0x0][_0x3024('0x3e')],'groupId'),_0x48df63=_0x5a017a(_0x209d39[0x0][_0x3024('0x3e')],_0x3024('0x1'));if(!_0x2963a5(_0x253833,_0x48df63))return!0x1;return!!_0x4dcc31[_0x3024('0x9b')](_0x2b1801=>_0x209d39[_0x3024('0x30')](_0x5e79c7=>_0x2b1801[_0x3024('0x137')]()[_0x3024('0xc9')](_0x5e79c7['getFirstRange']())))&&_0x209d39['every'](_0x1fa442=>_0x4dcc31['some'](_0x53ea61=>_0x1fa442[_0x3024('0x137')]()['isEqual'](_0x53ea61[_0x3024('0x137')]())));}}[_0x3024('0x68')](_0x4d8794){const _0x391185=Array[_0x3024('0xec')](_0x4d8794),_0x28c190=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7d52d3=_0x28c190[_0x3024('0x17a')](_0x26b6e1=>!_0x4d8794[_0x3024('0x14f')](_0x26b6e1)),_0x5f2519=new Map(_0x391185['map'](_0x24aeed=>[_0x24aeed,this[_0x3024('0x71')][_0x3024('0x11a')](_0x24aeed[_0x3024('0x132')],_0x24aeed[_0x3024('0x7c')],_0x3024('0x175'))])),_0x262efb=new Map(_0x28c190[_0x3024('0x53')](_0x53db9c=>[_0x53db9c,_0x53db9c[_0x3024('0x84')]()]));for(let _0x38fa5b=0x0;_0x38fa5b<_0x391185[_0x3024('0x2')];_0x38fa5b++){if(_0x1a4c1e(this,_0x391185[_0x38fa5b],_0x391185,_0x38fa5b+0x1))return!0x0;}for(let _0x51cbb8=0x0;_0x51cbb8<_0x391185[_0x3024('0x2')];_0x51cbb8++){if(_0x1a4c1e(this,_0x391185[_0x51cbb8],_0x7d52d3,0x0))return!0x0;}return!0x1;function _0x1a4c1e(_0x826590,_0x21e1e9,_0x1e4491,_0x77e2e9){for(let _0x48626d=_0x77e2e9;_0x48626d<_0x1e4491[_0x3024('0x2')];_0x48626d++){const _0x5e9502=_0x1e4491[_0x48626d];if(_0x5e9502[_0x3024('0x132')]!==_0x21e1e9[_0x3024('0x132')]||_0x5e9502[_0x3024('0x1d')]['id']!==_0x21e1e9[_0x3024('0x1d')]['id']||_0x5e9502[_0x3024('0x7c')]!==_0x21e1e9[_0x3024('0x7c')])continue;if(!Ft(_0x21e1e9,_0x5e9502,['groupId']))continue;if(_0x3024('0x13f')==_0x21e1e9['type']&&_0x21e1e9[_0x3024('0x49')][_0x3024('0xf5')]!=_0x5e9502['data'][_0x3024('0xf5')])continue;if(_0x3024('0x13f')==_0x21e1e9[_0x3024('0x132')]&&_0x826590[_0x3024('0x7e')](_0x21e1e9[_0x3024('0x49')][_0x3024('0xb8')]))continue;if(_0x3024('0x85')==_0x21e1e9[_0x3024('0x132')]){const _0x2d9d55=_0x826590[_0x3024('0x154')]['model'],_0x285a03=_0x21e1e9[_0x3024('0xed')]();if(_0x285a03&&(_0x2d9d55[_0x3024('0x104')][_0x3024('0x86')](_0x285a03)||_0x2d9d55['schema'][_0x3024('0xc1')](_0x285a03)))continue;}const _0x2939b9=_0x5f2519['get'](_0x21e1e9),_0x2b2773=_0x262efb[_0x3024('0xa0')](_0x21e1e9),_0xabbb81=_0x262efb[_0x3024('0xa0')](_0x5e9502),_0xa39de6=_0x21e1e9[_0x3024('0x37')]&&_0x21e1e9[_0x3024('0x37')][_0x3024('0x2')],_0x384b2d=_0x5e9502['commentThread']&&_0x5e9502['commentThread'][_0x3024('0x2')];if(!_0xa39de6&&_0x2939b9(_0xabbb81,_0x2b2773))return _0x826590[_0x3024('0x133')](_0x5e9502,_0x21e1e9),_0x262efb['delete'](_0x21e1e9),!0x0;if(!_0x384b2d&&_0x2939b9(_0x2b2773,_0xabbb81))return _0x826590['_joinSuggestions'](_0x21e1e9,_0x5e9502),_0x262efb['delete'](_0x5e9502),!0x0;}return!0x1;}}[_0x3024('0x133')](_0x570e1e,_0x5b2a20){if(_0x570e1e['isMultiRange'])for(const _0x236588 of _0x5b2a20[_0x3024('0x84')]())_0x570e1e['addRange'](_0x236588);else{const _0x4501a3=_0x5b2a20['getFirstRange']()[_0x3024('0x51')];this[_0x3024('0x75')](_0x570e1e,this['_model'][_0x3024('0x12d')](_0x570e1e[_0x3024('0x137')]()[_0x3024('0x163')],_0x4501a3));}_0x5b2a20[_0x3024('0xa4')]();}['_getMarkerAnnouncementText'](_0x5867e0,_0x55daad){const _0x526751=_0x5867e0[_0x3024('0x131')](_0x3024('0x160'))||_0x5867e0['startsWith'](_0x3024('0x13f'))?_0x3024('0x103'):_0x5867e0[_0x3024('0x15c')]();return _0x44f115(this[_0x3024('0x154')]['locale'],_0x55daad+'_'+_0x526751+'_SUGGESTION_ANNOUNCEMENT');}[_0x3024('0x142')](){const _0x43daed=this[_0x3024('0x154')];_0x471275(this[_0x3024('0x6f')],({left:_0x36c3d5,entered:_0x31460d})=>{const _0x31b552=[];for(const _0x578499 of _0x36c3d5){const {group:_0x16b92f,type:_0xf1eb13}=this['_splitMarkerName'](_0x578499['name']);if(_0x3024('0x168')===_0x16b92f){_0x31b552[_0x3024('0xdc')](this[_0x3024('0x91')](_0xf1eb13,'LEAVE'));break;}}for(const _0xe701d0 of _0x31460d){const {group:_0x6637b7,type:_0x3cc97c}=this[_0x3024('0xdd')](_0xe701d0[_0x3024('0x17d')]);if(_0x3024('0x168')===_0x6637b7){_0x31b552['push'](this[_0x3024('0x91')](_0x3cc97c,'ENTER'));break;}}_0x31b552[_0x3024('0x2')]&&_0x43daed['ui'][_0x3024('0x120')][_0x3024('0x55')](_0x3024('0x98'),_0x31b552[_0x3024('0x175')]('\x20'));});}[_0x3024('0x32')](_0x379c7f){if(this[_0x3024('0xbe')])return!0x1;const _0xe5715a=this[_0x3024('0x154')],_0x2f68fb=_0xe5715a[_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x4d')]();if(0x0==_0x2f68fb[_0x3024('0x2')])return!0x1;const _0x51dd18=[],_0x60fa50=_0x2f68fb[_0x3024('0x17a')](_0x5ab1de=>_0x3024('0x13f')==_0x5ab1de[_0x3024('0x132')]),_0x6e32ff=_0x2f68fb[_0x3024('0x17a')](_0xe610b0=>_0x3024('0x35')==_0xe610b0['type']&&_0x3024('0x100')!=_0xe610b0['name']),_0x181f1b=_0x2f68fb[_0x3024('0x17a')](_0x2ce394=>_0x3024('0x1e')==_0x2ce394[_0x3024('0x132')]&&'$text'!=_0x2ce394[_0x3024('0x17d')]);for(const _0x54195b of _0x60fa50)_0x51dd18[_0x3024('0xdc')]({'key':_0x54195b[_0x3024('0x12c')],'newValue':_0x54195b['attributeNewValue'],'oldValue':_0x54195b[_0x3024('0x22')],'range':Ut(_0x54195b[_0x3024('0x10c')],_0xe5715a[_0x3024('0xfa')])});for(const _0x53aa50 of _0x6e32ff){const _0x100cda=_0x181f1b[_0x3024('0x33')](_0x3f9747=>_0x3f9747[_0x3024('0x83')][_0x3024('0xc9')](_0x53aa50[_0x3024('0x83')]));_0x100cda&&_0x51dd18[_0x3024('0xdc')]({'key':_0x3024('0x10e'),'newValue':_0x53aa50[_0x3024('0x17d')],'oldValue':_0x100cda[_0x3024('0x17d')],'range':_0xe5715a[_0x3024('0xfa')]['createRangeOn'](_0x53aa50[_0x3024('0x83')]['nodeAfter'])});}return 0x0!=_0x51dd18[_0x3024('0x2')]&&this[_0x3024('0xab')](_0x379c7f,_0x51dd18);}['_processAttributeSuggestions'](_0x55efda){let _0xfd803f=!0x1;const _0x523020=this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x13a')]()[_0x3024('0x17a')](_0x582e17=>_0x582e17['data'][_0x3024('0x64')]&&_0x582e17['name'][_0x3024('0x131')](_0x3024('0xc7')));for(const _0x3d331e of _0x523020){const {subType:_0x10e632,id:_0x29b9db}=this[_0x3024('0xdd')](_0x3d331e[_0x3024('0x17d')]),_0x669740=_0x10e632[_0x3024('0x28')]('|')[0x0];for(const _0x9c9bac of this[_0x3024('0x44')]({'skipNotAttached':!0x0}))_0x9c9bac['id']!=_0x29b9db&&'attribute'==_0x9c9bac[_0x3024('0x132')]&&_0x9c9bac[_0x3024('0x49')]&&_0x9c9bac['data'][_0x3024('0xb8')]==_0x669740&&_0x9c9bac[_0x3024('0x137')]()[_0x3024('0x134')](_0x3d331e[_0x3024('0x49')]['newRange'])&&(this[_0x3024('0x48')](_0x9c9bac,_0x3d331e['data'][_0x3024('0x64')],_0x55efda),_0xfd803f=!0x0);}return _0xfd803f;}[_0x3024('0x12e')](_0xbfee5b){this[_0x3024('0x154')],(this[_0x3024('0xbe')]=!0x0,_0xbfee5b());}[_0x3024('0xb7')](_0x211ba0){const _0x3ca0b5=this['_isBlockAttribute'](_0x211ba0),_0x4e2de5=this[_0x3024('0xd7')][_0x3024('0x14f')](_0x211ba0);return _0x3ca0b5||_0x4e2de5;}['_reduceExistingSuggestions'](_0x4a645d,_0x5a8068){if(0x0==_0x5a8068['length'])return!0x1;let _0x2aa86b=!0x1;for(const _0x16be1b of _0x5a8068){const _0x5b908d=this[_0x3024('0x148')](_0x16be1b['range'],_0x3024('0x13f'))[_0x3024('0x17a')](_0x3c3692=>!_0x3c3692[_0x3024('0x89')][_0x3024('0x23')])[_0x3024('0x53')](_0x5c7ac3=>_0x5c7ac3['suggestion']),_0x1a89d7=_0x4a1e6a({'newValue':_0x16be1b[_0x3024('0x76')]});_0x5b908d[_0x3024('0x17a')](_0x59473c=>{const [_0x847c0e,_0x38e8af]=_0x59473c[_0x3024('0x7c')][_0x3024('0x28')]('|');return _0x847c0e==_0x16be1b[_0x3024('0xb8')]&&_0x38e8af!=_0x1a89d7;})[_0x3024('0x36')](_0x2dba06=>{this['_reduceSuggestionAttributeRange'](_0x2dba06,_0x16be1b[_0x3024('0x10c')],_0x4a645d),_0x2aa86b=!0x0;});}return _0x2aa86b;}['_reduceSuggestionAttributeRange'](_0xa821d2,_0x24f636,_0x48e644){const _0x32ee03=_0xa821d2[_0x3024('0x137')]()[_0x3024('0x13e')](_0x24f636);0x0!==_0x32ee03[_0x3024('0x2')]?0x1!==_0x32ee03['length']?this[_0x3024('0x162')](_0xa821d2,_0x24f636[_0x3024('0x163')],_0x24f636['end']):this[_0x3024('0x75')](_0xa821d2,_0x32ee03[0x0]):_0x48e644[_0x3024('0x5b')](_0xa821d2[_0x3024('0x14d')]());}}class Bt{constructor(_0x4b00f9){this[_0x3024('0xcb')]=_0x4b00f9,this['_model']=_0x4b00f9[_0x3024('0xfa')],this['_customCallbacks']=new Map(),this[_0x3024('0xf3')]=new Map(),this['_registerDefaultCallbacks']();}[_0x3024('0xc')](_0x53f81d,_0x3ce7ab,_0x23945a,_0x52054c,_0x43a494,_0xefb61e){return new _0x1f2ce3(this[_0x3024('0x6f')],{'type':_0x53f81d,'subType':_0x3ce7ab,'id':_0x23945a,'author':_0x52054c,'creator':_0x52054c,'attributes':_0x43a494,'onAttributesChange':_0xefb61e,'onAccept':(..._0x2ad376)=>this[_0x3024('0x11a')](_0x53f81d,_0x3ce7ab,_0x3024('0x14c'))(..._0x2ad376),'onDiscard':(..._0x51cc64)=>this[_0x3024('0x11a')](_0x53f81d,_0x3ce7ab,'discard')(..._0x51cc64)});}[_0x3024('0xd5')](_0x41c913,_0x4e6d30,_0x45e9c0,_0x497e20){const _0x414e1c=_0x41c913+':'+_0x4e6d30+':'+_0x45e9c0;this[_0x3024('0xfb')][_0x3024('0x17c')](_0x414e1c,_0x497e20);}[_0x3024('0x11a')](_0x5f4a6b,_0x2e566a,_0x346cbc){const _0x314900=_0x5f4a6b+':'+_0x2e566a+':'+_0x346cbc;return this[_0x3024('0xfb')][_0x3024('0xa0')](_0x314900)||this[_0x3024('0xf3')]['get'](_0x5f4a6b+':'+_0x346cbc);}[_0x3024('0x70')](){const _0x56bed8=()=>!0x1,_0x58de8d=_0x2f78b4=>{_0x2f78b4[_0x3024('0x3b')]((_0x5e5c14,_0x5ad484)=>_0x5e5c14['start'][_0x3024('0x79')](_0x5ad484[_0x3024('0x163')])?0x1:-0x1),this['_model'][_0x3024('0x11f')](_0x59456e=>{for(const _0x58bc65 of _0x2f78b4){let _0x662168;_0x662168=_0x58bc65['end'][_0x3024('0x12a')]&&_0x58bc65[_0x3024('0x51')][_0x3024('0x7f')]==_0x58bc65[_0x3024('0x163')][_0x3024('0xf2')]?_0x59456e[_0x3024('0xcf')](_0x58bc65[_0x3024('0x163')]['nodeAfter'],'on'):_0x59456e[_0x3024('0xcf')](_0x58bc65),this['_model']['deleteContent'](_0x662168,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1bdf32=(_0x295db5,_0x14f3ed)=>{_0x14f3ed&&this['_model']['change'](_0x3e0dcb=>{const {commandName:_0x535004,commandParams:_0x390942=[]}=_0x14f3ed,_0x188e14=_0x295db5[_0x3024('0x53')](_0x4e7849=>(Rt(_0x4e7849)&&(_0x4e7849=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x4e7849['end'])),_0x4e7849))['filter'](_0x2b9a6b=>_0x3024('0xb5')!==_0x2b9a6b[_0x3024('0xd0')][_0x3024('0x6e')]);if(_0x188e14[_0x3024('0x2')]<0x1)return;const _0xb76483=Array[_0x3024('0xec')](this[_0x3024('0x6f')]['document'][_0x3024('0x118')][_0x3024('0x84')]())['map'](_0x54ab81=>_0x205e8b[_0x3024('0x15b')](_0x54ab81));_0x3e0dcb[_0x3024('0xd')](_0x188e14);for(const _0x209b22 of this[_0x3024('0xcb')]['commands']['commands']())_0x209b22['refresh']();_0x390942[_0x3024('0xdc')]({'forceDefaultExecution':!0x0}),this[_0x3024('0xcb')][_0x3024('0xf1')](_0x535004,..._0x390942);const _0x445ed2=_0xb76483[_0x3024('0x17a')](_0x5c45b2=>_0x3024('0xb5')!=_0x5c45b2[_0x3024('0xd0')][_0x3024('0x6e')]);_0x445ed2['length']>0x0&&_0x3e0dcb[_0x3024('0xd')](_0x445ed2);for(const _0x400d0d of _0xb76483)_0x400d0d['detach']();});},_0x1c987c=(_0xc71e00,_0x45f011)=>0x1==_0xc71e00[_0x3024('0x2')]&&0x1==_0x45f011['length']&&_0xc71e00[0x0][_0x3024('0x51')][_0x3024('0xc9')](_0x45f011[0x0][_0x3024('0x163')]),_0xc9ab48=(_0x2f3d8a,_0x4069e6,_0x5a577e,_0x5cda3c)=>Gt(_0x2f3d8a,_0x4069e6,_0x5a577e,_0x5cda3c,this[_0x3024('0x6f')])?[_0x2f3d8a,_0x4069e6]:Gt(_0x4069e6,_0x2f3d8a,_0x5cda3c,_0x5a577e,this[_0x3024('0x6f')])?[_0x4069e6,_0x2f3d8a]:null;this[_0x3024('0xf3')][_0x3024('0x17c')]('insertion:accept',_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x2a'),_0x58de8d),this['_defaultCallbacks']['set']('insertion:join',_0x1c987c),this[_0x3024('0xf3')]['set'](_0x3024('0x8e'),_0xc9ab48),this[_0x3024('0xf3')]['set'](_0x3024('0x74'),_0x58de8d),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0x9d'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0xf7'),_0x1c987c),this[_0x3024('0xf3')]['set'](_0x3024('0xb3'),_0xc9ab48),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x65'),_0x1bdf32),this[_0x3024('0xf3')]['set'](_0x3024('0x58'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x106'),_0x1c987c),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x10'),_0x56bed8),this[_0x3024('0xf3')]['set'](_0x3024('0xc2'),_0x1bdf32),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x87'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x146'),_0x1c987c),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x47'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0xc3'),_0x56bed8),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0xe0'),(_0x4283a1,_0x3b286c)=>{if(!_0x3b286c)return;const _0x4fe540=this[_0x3024('0xcb')]['plugins'][_0x3024('0xa0')](p);this[_0x3024('0x6f')][_0x3024('0x11f')](_0xc1f66b=>{if('$elementName'==_0x3b286c['key'])for(const _0x351796 of _0x4283a1){const _0x323a80=_0x351796[_0x3024('0x163')]['nodeAfter'],_0x4e5124=_0x3b286c['oldValue'];_0xc1f66b['rename'](_0x323a80,_0x4e5124);}else{if(_0x4fe540[_0x3024('0x7e')](_0x3b286c['key']))for(const _0xac1e81 of _0x4283a1)void 0x0!==_0x3b286c['oldValue']?_0xc1f66b[_0x3024('0x18')](_0x3b286c['key'],_0x3b286c[_0x3024('0xf5')],_0xac1e81[_0x3024('0x163')][_0x3024('0xf2')]):_0xc1f66b[_0x3024('0x42')](_0x3b286c[_0x3024('0xb8')],_0xac1e81[_0x3024('0x163')][_0x3024('0xf2')]);else for(const _0x31a22a of _0x4283a1)_0x3b286c[_0x3024('0xf5')]?_0xc1f66b[_0x3024('0x18')](_0x3b286c[_0x3024('0xb8')],_0x3b286c[_0x3024('0xf5')],_0x31a22a):_0xc1f66b[_0x3024('0x42')](_0x3b286c['key'],_0x31a22a);}});}),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0x16c'),_0x1c987c);}}function xt(_0x8d611d,_0x11b7d7,_0x2d8bb2){for(const _0x1564dd of _0x11b7d7[_0x3024('0x7f')][_0x3024('0xf')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1564dd[_0x3024('0xd0')]==_0x1564dd)return!0x1;if(!_0x2d8bb2[_0x3024('0x80')](_0x1564dd))return!0x1;if(_0x8d611d['isObject'](_0x1564dd)||_0x8d611d[_0x3024('0xc1')](_0x1564dd))return!0x0;}return!0x1;}function Rt(_0x5f514d){return _0x5f514d['end'][_0x3024('0x7f')]==_0x5f514d[_0x3024('0x163')][_0x3024('0xf2')]&&_0x5f514d[_0x3024('0x51')][_0x3024('0x11e')];}function Tt(_0x590a22,_0x414f4e,_0x379cd5,_0x236590){const _0x156a1f=_0x2fe15e=>!_0x2fe15e['item']['is'](_0x3024('0x15f'))&&!_0x236590[_0x3024('0x86')](_0x2fe15e['item']),_0x582da0=_0x590a22[_0x3024('0x163')][_0x3024('0x111')](_0x156a1f),_0x734f88=_0x590a22[_0x3024('0x51')]['getLastMatchingPosition'](_0x156a1f,{'direction':_0x3024('0xcd')});return(!_0x590a22[_0x3024('0x163')][_0x3024('0xc9')](_0x582da0)||!_0x590a22[_0x3024('0x51')][_0x3024('0xc9')](_0x734f88))&&(_0x582da0[_0x3024('0x79')](_0x734f88)?_0x379cd5[_0x3024('0x11')](_0x414f4e,{'range':_0x379cd5[_0x3024('0x12d')](_0x582da0,_0x734f88)}):_0x379cd5['removeMarker'](_0x414f4e),!0x0);}function Et(_0x4634f9){return _0x4a1e6a(_0x4634f9);}function Vt(_0x97cd0){const _0x49a638=_0x97cd0[_0x3024('0x163')]['nodeAfter'];return _0x49a638&&_0x49a638['is']('element');}function Ut(_0x1ed39d,_0x10571e){return null==_0x1ed39d['end'][_0x3024('0x4c')]&&_0x1ed39d[_0x3024('0x51')][_0x3024('0x7f')]==_0x1ed39d['start'][_0x3024('0xf2')]?Ot(_0x1ed39d[_0x3024('0x163')][_0x3024('0xf2')],_0x10571e):_0x1ed39d;}function Ot(_0x40649d,_0x26f47d){const _0xb459bf=_0x26f47d['schema']['isObject'](_0x40649d)||_0x26f47d[_0x3024('0x104')]['isSelectable'](_0x40649d);return _0x26f47d[_0x3024('0x12d')](_0x26f47d['createPositionAt'](_0x40649d,_0x3024('0x149')),_0xb459bf?_0x26f47d[_0x3024('0x153')](_0x40649d):_0x26f47d[_0x3024('0x17')](_0x40649d,_0x3024('0x51')));}function Gt(_0x5d0630,_0x3d8217,_0x2f8c7e,_0x3e84f6,_0x52d8be){if(!Ft(_0x5d0630,_0x3d8217))return!0x1;if(_0x2f8c7e[_0x3024('0x51')][_0x3024('0xc9')](_0x3e84f6[_0x3024('0x163')]))return!0x0;if(_0x5d0630[_0x3024('0x132')]!=_0x3d8217[_0x3024('0x132')])return!0x1;if(!_0x2f8c7e[_0x3024('0x51')]['isTouching'](_0x3e84f6[_0x3024('0x163')]))return!0x1;const _0x36dc69=_0x52d8be[_0x3024('0x12d')](_0x2f8c7e[_0x3024('0x51')],_0x3e84f6['start'])[_0x3024('0x172')]();for(const _0x480150 of _0x36dc69)if([_0x3024('0x67'),'elementEnd'][_0x3024('0xad')](_0x480150[_0x3024('0x132')])&&_0x52d8be[_0x3024('0x104')][_0x3024('0xc1')](_0x480150['item']))return!0x1;return!0x0;}function Ft(_0x218f8b,_0x5de237,_0x41bc5a=[]){return!(!_0x218f8b[_0x3024('0x27')]||!_0x5de237[_0x3024('0x27')])&&_0x2963a5(_0x5a017a(_0x218f8b[_0x3024('0x3e')],_0x41bc5a),_0x5a017a(_0x5de237[_0x3024('0x3e')],_0x41bc5a));}function Pt(_0x5c97bb,_0x94e3fa){const _0x225779=Lt(_0x5c97bb['attributes']),_0x1b588b=Lt(_0x94e3fa);if(!_0x5c97bb[_0x3024('0x27')])return!0x1;for(const _0x5e149d of Object[_0x3024('0x19')](_0x1b588b))if(!_0x2963a5(_0x225779[_0x5e149d],_0x1b588b[_0x5e149d]))return!0x1;return!0x0;}function Lt(_0x4fb839){const _0x3130aa=Object['assign']({},_0x4fb839);return delete _0x3130aa['skipNestingCheck'],delete _0x3130aa[_0x3024('0xdb')],_0x3130aa;}
|
|
23
|
+
const _0x1b5d=['conversion','execute','isSelectable','createdAt','refresh','editor','low','warn','high','_enabledCommands','formatBlock','_removeSuggestion','addSuggestionData','document','set','setSelection','removeAttribute','consume','isCollapsed','getRange','$textProxy','split','getUser','_setSuggestionRange','_suggestions','rootName','model','move','isMultiRange','insert','_initAriaMarkerChangeAnnouncements','_refreshAttributeSuggestionsChain','originalSuggestionId','group','formatInline:discard','_isRegisteredAttribute','_processAttributeSuggestions','end','tablePasteChainId','error-saving-suggestion-data-suggestion-discarded','enableReadOnlyMode','editingDowncast','removeClass','stopListening','clear','for','default','collaboration.channelId','insertion','ariaLiveAnnouncer','discardSuggestion','_model','getFirstMarker','applyOperation','_defaultCallbacks','_suggestionFactory','containsItem','commandName','hasComments','getAttribute','unbindElementFromMarkerName','assign','getNearestSelectionRange','name','track-changes-command-not-found','insertion:discard','targetPosition','locale','item','isIntersecting','creator','fire','fetchCommentThread','authorName','fromCharCode','commands','value','_saved','_reduceSuggestionAttributeRange','resolve','data-suggestion','pluginName','before','attribute:discard','change','deletion','_updateSuggestionData','formatBlock:discard','highest','_recordAttributeChanges','registerPostFixer','activeMarkers','after','isLimit','$marker','suggestion:','formatInline','getMarkers','_getExternalAuthor','removeComment','update:suggestion','editing','ck-suggestion-marker--active','setAttribute','rename','external:','accept','newRange','bindElementToMarker','head','createRangeOn','getWalker','_reduceExistingSuggestions','PENDING_ACTION_SUGGESTION','_mergeNestedSuggestions','_addThreadToSuggestion','isBlock','containsRange','_suggestionState','formatBlock:','isTouching','has','requires','_afterChanges','_getAttributeKey','markerReady','attribute:','formatInline:accept','notReady','registerCustomCallback','unshift','ck-suggestion-marker-formatInline','isRemovable','attributeOldValue','TrackChangesEditing','differ','ck-suggestion-marker-','fromRange','suggestion','isAtEnd','isIntersectingWithRange','createRangeIn','insertContent','open','adapter','ready','concat','clone','some','start','updateMarker','howMany','mapper','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.','add','next','schema','_joinWithAdjacentSuggestions','discard','_isDataLoaded','author','change:data','acceptSelectedSuggestions','markers','suggestionUnloaded','delete','track-changes-user-not-found','dataDowncast','showSuggestionHighlights','formatInline:chain','isNextTo','insertion:','nodeAfter','isEqual','deletion:','_addSuggestionMarker','consumable','removeMarker','_splitMarkerName','upcast','_registerDefaultCallbacks','addClass','createPositionBefore','groupId','$elementName','lowest','addMarker:suggestion:formatBlock','forEach','addMarker:suggestion','createElement','elementToElement','keys','data','_rangeIsInLocalUserInsertion','plugins','Users','elementEnd','markMultiRangeDeletion','updateSuggestion','markerToHighlight','always','suggestion:attribute:','batch','oldRange','addUser','addMarker:suggestion:attribute','_onDiscard','addRange','formatInline:','push','_commentsRepository','buildSuggestion','attribute','ck-suggestion-marker-formatBlock','$graveyard','splice','filter','containsPosition','commentThread','from','removeMarker:suggestion:formatBlock','trackChangesCommand','stop','isOwn','removed','getSuggestionCallback','@external','attributeNewValue','attributes','join','formatGroupId','acceptAllSuggestions','_processAttributeChanges','removeMarkers','deleteContent','selection','key','track-changes-suggestion-not-found','enableCommand','previous','getAncestors','formatBlock:join','getFirstRange','find','config','reconvertMarker','_refreshSuggestionsChain','_breakSuggestionMarker','position','_getMarkerAnnouncementText','isInsideObject','forceDefaultExecution','deletion:join','markerName','ck-suggestion-marker','_customCallbacks','createRange','get','createPositionAt','_isBlockAttribute','getIntersection','_inlineAttributeKeys','size','root','markAttributeChange','isInContent','deletion:accept','startsWith','range','deletion:chain','track-changes-suggestion-data-mismatch','_joinSuggestions','getContainedElement','formatInline:join','createSelection','_registerBlockAttribute','_trackFormatChanges','multipleBlocks','_recordAttributeSuggestions','_element','isBefore','authoredAt','remove','CommentsRepository','length','getCustomProperty','every','markerNameToElements','attributeKey','_blockAttributeKeys','getShiftedBy','catch','addSuggestion','getSuggestions','nodeBefore','getRanges','includes','_setSuggestionData','suggestionLoaded','isAfter','marker-count','track-changes-adapter-missing-getsuggestion','markDeletion','rejected','_getSuggestionData','acceptSuggestion','isObject','getSuggestion','getMultiRangeId','_registerInlineAttribute','_isForcedDefaultExecutionBlock','getAllAdjacentSuggestions','suggestionChanged','map','writer','track-changes-adapter-already-set','getLastMatchingPosition','parent','_handleNewSuggestionMarker','PendingActions','_findSuggestions','$text','_createSuggestion','formatBlock:chain','element','containerElement','toViewElement','enqueueChange','_checkSuggestionCorrectness','options','widget','rethrowUnexpectedError','insertion:accept','sort','listenTo','discardAllSuggestions','return','format','documentSelection','getDifference','markerToData','addMarkerName','oldValue','markInsertion','never','suggestion-type','insertion:chain','isDocumentOperation','backward','trackChanges.mergeNestedSuggestions','getChanges','isLocal','subType','_getAuthorFromId','type','toJSON','_cutOutSuggestionMarker','getCommentThread','trackChanges','ENTER','then','isArray','values','define','trackChanges.trackFormatChanges','getItems','containsRangeInObject','detach','hasSuggestion','_adapter','isAtStart','formatBlock:accept','skipNestingCheck','isUndo','_editor','_enableDefaultAttributesIntegration','forward','announce'];(function(_0xecd87c,_0x1b5dcc){const _0x4ea504=function(_0x30b330){while(--_0x30b330){_0xecd87c['push'](_0xecd87c['shift']());}};_0x4ea504(++_0x1b5dcc);}(_0x1b5d,0xa2));const _0x4ea5=function(_0xecd87c,_0x1b5dcc){_0xecd87c=_0xecd87c-0x0;let _0x4ea504=_0x1b5d[_0xecd87c];return _0x4ea504;};import{Plugin as _0x357f97,PendingActions as _0x44383d}from'ckeditor5/src/core.js';import{LiveRange as _0x314c43}from'ckeditor5/src/engine.js';import{CKEditorError as _0x4e3388,uid as _0x51752b,priorities as _0x522682,logWarning as _0xa31606}from'ckeditor5/src/utils.js';import{toWidget as _0x37be75}from'ckeditor5/src/widget.js';import{Users as _0x651808,hashObject as _0x4dbe2d,surroundingMarkersDetector as _0x35cb50}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x14c21 from'./commands/trackchangescommand.js';import _0xaf620e from'./commands/acceptsuggestioncommand.js';import _0x478946 from'./commands/discardsuggestioncommand.js';import _0x5b1da4 from'./commands/executeonallsuggestionscommand.js';import _0x48692b from'./commands/executeonselectedsuggestionscommand.js';import _0x27c3d7 from'./suggestion.js';import _0x3bc8b3 from'./suggestiondescriptionfactory.js';import _0x41fc33 from'./integrations/aiassistant.js';import _0x511538 from'./integrations/alignment.js';import _0x290405 from'./integrations/basicstyles.js';import _0x4fe3f9 from'./integrations/blockquote.js';import _0x492590 from'./integrations/casechange.js';import _0x10851a from'./integrations/ckbox.js';import _0xebff34 from'./integrations/codeblock.js';import _0x51abae from'./integrations/comments.js';import _0x310f3f from'./integrations/deletecommand.js';import _0x89a40a from'./integrations/list.js';import _0x123882 from'./integrations/listproperties.js';import _0x1388d7 from'./integrations/entercommand.js';import _0x572822 from'./integrations/findandreplace.js';import _0x43ffc8 from'./integrations/font.js';import _0x4a6c21 from'./integrations/formatpainter.js';import _0x48d20f from'./integrations/heading.js';import _0x17da52 from'./integrations/highlight.js';import _0x42fd05 from'./integrations/horizontalline.js';import _0x5983d8 from'./integrations/htmlembed.js';import _0xe4448 from'./integrations/image.js';import _0x2616d3 from'./integrations/imagereplace.js';import _0x23a50e from'./integrations/imagestyle.js';import _0x3b3e65 from'./integrations/importword.js';import _0x3c36f8 from'./integrations/indent.js';import _0xe7234a from'./integrations/inputcommand.js';import _0x15afa8 from'./integrations/link.js';import _0x25bf75 from'./integrations/legacylist.js';import _0x2bebbf from'./integrations/legacylistproperties.js';import _0x49d2ff from'./integrations/mediaembed.js';import _0x4fee5f from'./integrations/mention.js';import _0x3c7216 from'./integrations/pagebreak.js';import _0x4b6392 from'./integrations/paragraph.js';import _0x5be55b from'./integrations/removeformat.js';import _0x2b75c1 from'./integrations/restrictededitingmode.js';import _0x8a5699 from'./integrations/shiftentercommand.js';import _0x215a45 from'./integrations/standardeditingmode.js';import _0x2362f0 from'./integrations/style.js';import _0x2ece56 from'./integrations/table.js';import _0x4b2e3f from'./integrations/tablemergesplit.js';import _0x4322e2 from'./integrations/tableheadings.js';import _0x34e3fd from'./integrations/tableclipboard.js';import _0x1aceb8 from'./integrations/tablecolumnresize.js';import _0x2934e5 from'./integrations/template.js';import _0x28cf4f from'./integrations/tableofcontents.js';import _0x361fa2 from'./integrations/title.js';import _0x3308ef from'./integrations/undo.js';import _0x3823e1 from'./integrations/tablecaption.js';import _0x31f569 from'./integrations/tableproperties.js';import{getTranslation as _0x15cb77}from'./utils/common-translations.js';import{isEqual as _0x1bfb70,omit as _0x34703e}from'lodash-es';export const renameAttributeKey=_0x4ea5('0x16');export default class p extends _0x357f97{static get[_0x4ea5('0x152')](){return['CommentsRepository',_0x651808,_0x44383d,_0x41fc33,_0x511538,_0x290405,_0x4fe3f9,_0x10851a,_0x492590,_0xebff34,_0x51abae,_0x310f3f,_0x1388d7,_0x572822,_0x43ffc8,_0x4a6c21,_0x48d20f,_0x17da52,_0x42fd05,_0x5983d8,_0xe4448,_0x23a50e,_0x2616d3,_0x3b3e65,_0x3c36f8,_0xe7234a,_0x25bf75,_0x2bebbf,_0x15afa8,_0x89a40a,_0x123882,_0x49d2ff,_0x4fee5f,_0x3c7216,_0x4b6392,_0x5be55b,_0x2b75c1,_0x8a5699,_0x215a45,_0x2362f0,_0x2ece56,_0x4b2e3f,_0x4322e2,_0x3823e1,_0x34e3fd,_0x1aceb8,_0x28cf4f,_0x31f569,_0x2934e5,_0x361fa2,_0x3308ef];}static get[_0x4ea5('0x129')](){return _0x4ea5('0x15e');}constructor(_0x6b7ed8){function _0x423bfc(_0x88148f){return _0x88148f['map'](_0x56abf1=>String[_0x4ea5('0x122')](_0x56abf1))['join']('');}super(_0x6b7ed8),this[_0x4ea5('0x74')]=!0x1,this[_0x4ea5('0xe6')](_0x4ea5('0x133'),[]),this['on']('change:activeMarkers',(_0x20a926,_0x3ec530,_0x2eb9fc,_0x157d4b)=>{this[_0x4ea5('0x10b')][_0x4ea5('0x12c')](()=>{for(const _0x3efa03 of[..._0x157d4b,..._0x2eb9fc])this[_0x4ea5('0x10b')]['markers'][_0x4ea5('0x151')](_0x3efa03)&&_0x6b7ed8[_0x4ea5('0x13d')][_0x4ea5('0x53')](_0x3efa03);});}),this['_descriptionFactory']=new _0x3bc8b3(this[_0x4ea5('0xdd')]['model'][_0x4ea5('0x174')],this[_0x4ea5('0xdd')][_0x4ea5('0x11b')]),this[_0x4ea5('0xcf')]=null,this['_suggestionFactory']=new Bt(this['editor']),this[_0x4ea5('0xf0')]=new Map(),this[_0x4ea5('0x30')]=_0x6b7ed8['plugins'][_0x4ea5('0x5f')](_0x4ea5('0x79')),this[_0x4ea5('0xe1')]=new Set(),this['_model']=this[_0x4ea5('0xdd')][_0x4ea5('0xf2')],this['_suggestionState']=new WeakMap(),this[_0x4ea5('0x94')]=!0x1,this[_0x4ea5('0x7f')]=new Set([_0x4ea5('0x16')]),this[_0x4ea5('0x63')]=new Set(),_0x6b7ed8[_0x4ea5('0x52')][_0x4ea5('0xc9')]('trackChanges.trackFormatChanges',_0x4ea5('0x106')),this['_trackFormatChanges']=_0x6b7ed8[_0x4ea5('0x52')][_0x4ea5('0x5f')](_0x4ea5('0xca')),_0x6b7ed8[_0x4ea5('0x52')]['define']('trackChanges.mergeNestedSuggestions',!0x0),this[_0x4ea5('0x14a')]=_0x6b7ed8[_0x4ea5('0x52')][_0x4ea5('0x5f')](_0x4ea5('0xbb')),this['trackChangesCommand']=new _0x14c21(_0x6b7ed8,this[_0x4ea5('0xe1')]),this[_0x4ea5('0xf6')](),this[_0x423bfc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x423bfc([0x34,0x30,0x34,0x38,0x30,0x32,0x35,0x32]);}['init'](){const _0xa7baf8=this[_0x4ea5('0xdd')],_0x381fde=(_0x43feb0,_0x1dbefa)=>{if(_0x4ea5('0x32')!=_0x43feb0)return _0x4ea5('0x160')+_0x43feb0;const _0x24e0f4=_0x1dbefa['split']('|')[0x0];return this[_0x4ea5('0x61')](_0x24e0f4)?'ck-suggestion-marker-formatBlock':_0x4ea5('0x15b');};_0xa7baf8[_0x4ea5('0xd8')][_0x4ea5('0x105')](_0x4ea5('0x101'))[_0x4ea5('0x25')]({'model':_0x4ea5('0x162'),'view':_0x4b002f=>{const {id:_0x3ba99f,type:_0x309bac,subType:_0x4e66df}=this[_0x4ea5('0x10')](_0x4b002f[_0x4ea5('0x5b')]),_0x4edab8=[_0x4ea5('0x5c'),_0x381fde(_0x309bac,_0x4e66df)];let _0x3de7e1=0xbb8;return this[_0x4ea5('0x133')][_0x4ea5('0x86')](_0x4b002f[_0x4ea5('0x5b')])&&(_0x4edab8[_0x4ea5('0x2f')](_0x4ea5('0x13e')),_0x3de7e1=0xbc2),_0x4ea5('0x12d')==_0x309bac&&(_0x3de7e1+=0x5),{'classes':_0x4edab8,'attributes':{'data-suggestion':_0x3ba99f},'priority':_0x3de7e1};}}),_0xa7baf8[_0x4ea5('0xd8')][_0x4ea5('0x105')](_0x4ea5('0x5'))['add'](_0x2606b0=>{_0x2606b0['on'](_0x4ea5('0x1a'),(_0x56f054,_0xb0a15c,_0x2b524c)=>{if(!_0x2b524c[_0x4ea5('0xa7')][_0x4ea5('0x6')])return;const _0x31188f=_0xb0a15c[_0x4ea5('0x11c')];if(!_0x31188f)return;const _0x3ff64b=_0x2b524c[_0x4ea5('0x170')][_0x4ea5('0xa4')](_0x31188f);_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x174')][_0x4ea5('0x90')](_0x31188f)&&_0x3ff64b&&!_0x3ff64b[_0x4ea5('0x7b')](_0x4ea5('0xa8'))&&_0x3ff64b['is'](_0x4ea5('0xa3'))&&_0x37be75(_0x3ff64b,_0x2b524c['writer']);},{'priority':_0x4ea5('0xe0')});}),_0xa7baf8['conversion']['for']('dataDowncast')[_0x4ea5('0x25')]({'model':_0x4ea5('0x162'),'view':(_0xc4c842,_0x23bf69)=>{if(!_0x23bf69[_0x4ea5('0xa7')]['showSuggestionHighlights'])return null;const {type:_0x1152b2,subType:_0x469fe9}=this[_0x4ea5('0x10')](_0xc4c842['markerName']);return{'classes':[_0x4ea5('0x5c'),_0x381fde(_0x1152b2,_0x469fe9)],'priority':0xbb8};}});const _0x599449=({showActiveMarkers:_0x455ced=!0x0,isAttributeSuggestion:_0x174d39=!0x1}={})=>(_0x3ecbf0,_0x3adbbb,_0x266d8b)=>{if(!_0x3adbbb[_0x4ea5('0x11c')])return;const {id:_0x687250}=this[_0x4ea5('0x10')](_0x3adbbb['markerName']);if(_0x174d39){const _0x55d304=this[_0x4ea5('0xf0')][_0x4ea5('0x5f')](_0x687250),_0x313b98=this['_getAttributeKey'](_0x55d304);if(!this[_0x4ea5('0x61')](_0x313b98))return;}if(_0x3adbbb[_0x4ea5('0x11c')]['is'](_0x4ea5('0x49')))return void _0x266d8b[_0x4ea5('0xe')][_0x4ea5('0xe9')](_0x3adbbb[_0x4ea5('0x11c')],_0x3ecbf0[_0x4ea5('0x117')]);const _0x463386=_0x266d8b['mapper'][_0x4ea5('0xa4')](_0x3adbbb[_0x4ea5('0x11c')]);if(_0x3adbbb[_0x4ea5('0x11c')]['is'](_0x4ea5('0xa2'))&&_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x174')][_0x4ea5('0x14c')](_0x3adbbb[_0x4ea5('0x11c')])&&!_0x463386['getCustomProperty']('addHighlight')){_0x266d8b[_0x4ea5('0x98')][_0x4ea5('0x13')](['ck-suggestion-marker',_0x4ea5('0x33')],_0x463386),_0x266d8b[_0x4ea5('0x98')][_0x4ea5('0x13f')](_0x4ea5('0x128'),_0x687250,_0x463386),_0x266d8b[_0x4ea5('0x170')][_0x4ea5('0x144')](_0x463386,_0x3adbbb[_0x4ea5('0x5b')]),_0x455ced&&(this['activeMarkers'][_0x4ea5('0x86')](_0x3adbbb[_0x4ea5('0x5b')])?_0x266d8b['writer'][_0x4ea5('0x13')](_0x4ea5('0x13e'),_0x463386):_0x266d8b[_0x4ea5('0x98')][_0x4ea5('0x102')](_0x4ea5('0x13e'),_0x463386));for(const _0x5d2266 of _0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x165')](_0x3adbbb[_0x4ea5('0x11c')])[_0x4ea5('0xcb')]())_0x266d8b['consumable']['consume'](_0x5d2266,_0x3ecbf0[_0x4ea5('0x117')]);_0x266d8b[_0x4ea5('0xe')][_0x4ea5('0xe9')](_0x3adbbb[_0x4ea5('0x11c')],_0x3ecbf0[_0x4ea5('0x117')]);}};_0xa7baf8[_0x4ea5('0xd8')][_0x4ea5('0x105')](_0x4ea5('0x5'))[_0x4ea5('0x172')](_0x4aa497=>{_0x4aa497['on'](_0x4ea5('0x18'),(_0x562927,_0x20b527,_0x559025)=>{_0x559025[_0x4ea5('0xa7')][_0x4ea5('0x6')]&&_0x599449({'showActiveMarkers':!0x1})(_0x562927,_0x20b527,_0x559025);},{'priority':_0x4ea5('0x130')});}),_0xa7baf8['conversion']['for'](_0x4ea5('0x5'))['add'](_0x56c0db=>{_0x56c0db['on'](_0x4ea5('0x2b'),(_0x50285c,_0x282c04,_0x1ef1c0)=>{_0x1ef1c0[_0x4ea5('0xa7')][_0x4ea5('0x6')]&&_0x599449({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x50285c,_0x282c04,_0x1ef1c0);},{'priority':'highest'});}),_0xa7baf8[_0x4ea5('0xd8')]['for'](_0x4ea5('0x5'))[_0x4ea5('0xb2')]({'model':_0x4ea5('0x162'),'view':(_0x4e4ef1,_0x5ce452)=>_0x5ce452['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4e4ef1['substr'](0xb)}}),_0xa7baf8[_0x4ea5('0xd8')][_0x4ea5('0x105')]('upcast')[_0x4ea5('0x1c')]({'view':{'name':_0x4ea5('0x162'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x59707f,{writer:_0x1b8d6f})=>{let _0x402043=_0x4ea5('0x137')+_0x59707f['getAttribute'](_0x4ea5('0xb7'))+':'+_0x59707f['getAttribute']('id');return _0x59707f[_0x4ea5('0x113')](_0x4ea5('0x8a'))&&(_0x402043+=':'+_0x59707f[_0x4ea5('0x113')](_0x4ea5('0x8a'))),_0x1b8d6f[_0x4ea5('0x1b')](_0x4ea5('0x136'),{'data-name':_0x402043});}}),_0xa7baf8[_0x4ea5('0xd8')][_0x4ea5('0x105')](_0x4ea5('0x11'))['dataToMarker']({'view':_0x4ea5('0x162')}),_0xa7baf8[_0x4ea5('0xd8')][_0x4ea5('0x105')]('editingDowncast')['add'](_0x457bd3=>{_0x457bd3['on'](_0x4ea5('0x18'),_0x599449(),{'priority':_0x4ea5('0xe0')});}),_0xa7baf8['conversion'][_0x4ea5('0x105')](_0x4ea5('0x101'))[_0x4ea5('0x172')](_0xbedd3d=>{_0xbedd3d['on']('addMarker:suggestion:attribute',_0x599449({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xa7baf8['conversion'][_0x4ea5('0x105')]('editingDowncast')['add'](_0x42994c=>{_0x42994c['on'](_0x4ea5('0x3a'),(_0x485995,_0x69ef59,_0x29ae8c)=>{const _0x1af35a=_0x29ae8c[_0x4ea5('0x170')][_0x4ea5('0x7d')](_0x69ef59['markerName']);if(_0x1af35a)for(const _0x1323dd of _0x1af35a)_0x1323dd[_0x4ea5('0x7b')]('addHighlight')||(_0x29ae8c[_0x4ea5('0x98')]['removeClass']([_0x4ea5('0x5c'),_0x4ea5('0x33'),_0x4ea5('0x13e')],_0x1323dd),_0x29ae8c[_0x4ea5('0x98')][_0x4ea5('0xe8')](_0x4ea5('0x128'),_0x1323dd),_0x29ae8c[_0x4ea5('0x170')][_0x4ea5('0x114')](_0x1323dd,_0x69ef59['markerName']));},{'priority':_0x4ea5('0xe0')});}),_0xa7baf8[_0x4ea5('0xd8')][_0x4ea5('0x105')](_0x4ea5('0x101'))[_0x4ea5('0x172')](_0x50b5ad=>{_0x50b5ad['on']('removeMarker:suggestion:attribute',(_0x4ce9fb,_0x4025b6,_0x58c8e4)=>{const _0x33be10=_0x58c8e4[_0x4ea5('0x170')]['markerNameToElements'](_0x4025b6[_0x4ea5('0x5b')]);if(!_0x33be10)return;const {id:_0x5e361e}=this[_0x4ea5('0x10')](_0x4025b6[_0x4ea5('0x5b')]),_0x1189fa=this[_0x4ea5('0xf0')][_0x4ea5('0x5f')](_0x5e361e),_0x37105b=this[_0x4ea5('0x154')](_0x1189fa);if(this[_0x4ea5('0x61')](_0x37105b))for(const _0x7fc349 of _0x33be10)_0x7fc349[_0x4ea5('0x7b')]('addHighlight')||(_0x58c8e4[_0x4ea5('0x98')][_0x4ea5('0x102')]([_0x4ea5('0x5c'),'ck-suggestion-marker-formatBlock',_0x4ea5('0x13e')],_0x7fc349),_0x58c8e4[_0x4ea5('0x98')][_0x4ea5('0xe8')](_0x4ea5('0x128'),_0x7fc349),_0x58c8e4[_0x4ea5('0x170')]['unbindElementFromMarkerName'](_0x7fc349,_0x4025b6[_0x4ea5('0x5b')]));},{'priority':_0x4ea5('0xe0')});}),_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0xe5')]['registerPostFixer'](_0x17eeb2=>{let _0x29940a=!0x1;const _0x12e55a=Array[_0x4ea5('0x39')](_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0xe5')][_0x4ea5('0x15f')]['getChangedMarkers']()),_0x30b178=new Set();for(const {name:_0x486cd9,data:_0x43658e}of _0x12e55a){const {group:_0x46abbd,type:_0x2864ae,subType:_0x3c069a,id:_0x31d6f7}=this[_0x4ea5('0x10')](_0x486cd9);if(_0x4ea5('0x162')!==_0x46abbd)continue;const _0x5cae18=this[_0x4ea5('0xf0')][_0x4ea5('0x5f')](_0x31d6f7);if(null!=_0x43658e[_0x4ea5('0x143')]){_0x4ea5('0x138')==_0x2864ae&&(_0x29940a=_0x29940a||Tt(_0x43658e['newRange'],_0x486cd9,_0x17eeb2,_0xa7baf8['model'][_0x4ea5('0x174')]));const _0x13496d=_0x4ea5('0x32')==_0x2864ae&&this['_isBlockAttribute'](_0x3c069a[_0x4ea5('0xed')]('|')[0x0]);if(_0x43658e[_0x4ea5('0x143')][_0x4ea5('0xea')]||_0x4ea5('0x34')==_0x43658e[_0x4ea5('0x143')][_0x4ea5('0x65')][_0x4ea5('0xf1')]||'formatBlock'==_0x2864ae&&!Vt(_0x43658e['newRange'])||_0x13496d&&!Vt(_0x43658e[_0x4ea5('0x143')])||_0x4ea5('0x12d')==_0x2864ae&&!(!Rt(_0x2bb7f7=_0x43658e['newRange'])&&!function(_0x1c6b80){return _0x1c6b80['start']['parent']==_0x1c6b80['end'][_0x4ea5('0x84')]&&_0x1c6b80[_0x4ea5('0x16d')]['isAtEnd'];}(_0x2bb7f7)))_0x17eeb2[_0x4ea5('0xf')](_0x486cd9),_0x29940a=!0x0;else{if(!_0x5cae18||!_0x5cae18[_0x4ea5('0x67')])continue;_0x30b178[_0x4ea5('0x172')](_0x5cae18);}}}var _0x2bb7f7;return _0x30b178[_0x4ea5('0x64')]>0x0&&(_0x29940a=!!this[_0x4ea5('0x175')](_0x30b178)||_0x29940a),_0x29940a;}),_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0xe5')]['registerPostFixer'](_0x4d5b91=>{let _0x4b42f3=!0x1;for(const _0x58124f of _0xa7baf8['model'][_0x4ea5('0xe5')][_0x4ea5('0x15f')]['getChanges']())if(_0x4ea5('0xf5')==_0x58124f['type'])for(const _0xbdbdfb of this[_0x4ea5('0xf0')][_0x4ea5('0xc8')]()){if(_0xbdbdfb[_0x4ea5('0xf4')]||!_0xbdbdfb['isInContent'])continue;const _0x5c8566=_0x4ea5('0xe2')==_0xbdbdfb['type'],_0x5e7d06=this[_0x4ea5('0x154')](_0xbdbdfb),_0x35ae5e=_0x5e7d06&&this[_0x4ea5('0x61')](_0x5e7d06);if(!_0x5c8566&&!_0x35ae5e)continue;const _0x2773a2=_0xbdbdfb[_0x4ea5('0x50')]();if(_0x2773a2['start']['parent']!=_0x2773a2[_0x4ea5('0xfd')]['parent']&&!_0x2773a2[_0x4ea5('0xfd')]['isAtEnd']){const _0x3b4786=_0xa7baf8[_0x4ea5('0xf2')]['createPositionAt'](_0x2773a2[_0x4ea5('0x16d')][_0x4ea5('0xa')],_0x4ea5('0xfd')),_0x1e1226=_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x5e')](_0x2773a2[_0x4ea5('0x16d')],_0x3b4786);_0x4d5b91[_0x4ea5('0x16e')](_0xbdbdfb[_0x4ea5('0x10c')](),{'range':_0x1e1226}),_0x4b42f3=!0x0;}}return _0x4b42f3;}),_0xa7baf8[_0x4ea5('0xf2')]['document'][_0x4ea5('0x132')](_0x523ac2=>this[_0x4ea5('0x46')](_0x523ac2)),_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0xe5')][_0x4ea5('0x132')](_0x4b326c=>!_0x4b326c[_0x4ea5('0x28')][_0x4ea5('0xbd')]&&this[_0x4ea5('0xfc')](_0x4b326c)),_0xa7baf8[_0x4ea5('0xf2')]['on'](_0x4ea5('0x153'),()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xa7baf8['model'][_0x4ea5('0xe5')]['on'](_0x4ea5('0x179'),(_0x24cde2,_0x2bff18)=>{if(!_0x2bff18[_0x4ea5('0xbd')]||_0x2bff18['isUndo'])return;if(!this[_0x4ea5('0x74')])return;const _0x2bf2f5=_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0xe5')]['differ']['getChanges']();if(0x0==_0x2bf2f5['length'])return;const _0x17aeac=[],_0x308d58=_0x2bf2f5[_0x4ea5('0x36')](_0x144561=>_0x4ea5('0x32')==_0x144561[_0x4ea5('0xc0')]),_0x130d07=_0x2bf2f5[_0x4ea5('0x36')](_0x4d5c72=>_0x4ea5('0xf5')==_0x4d5c72['type']&&_0x4ea5('0x9f')!=_0x4d5c72[_0x4ea5('0x117')]),_0x23dd4d=_0x2bf2f5[_0x4ea5('0x36')](_0x4859e1=>'remove'==_0x4859e1[_0x4ea5('0xc0')]&&_0x4ea5('0x9f')!=_0x4859e1[_0x4ea5('0x117')]);for(const _0x2cb855 of _0x308d58)this[_0x4ea5('0xfb')](_0x2cb855[_0x4ea5('0x7e')])&&_0x17aeac[_0x4ea5('0x2f')]({'key':_0x2cb855[_0x4ea5('0x7e')],'newValue':_0x2cb855['attributeNewValue'],'oldValue':_0x2cb855[_0x4ea5('0x15d')],'range':Ut(_0x2cb855[_0x4ea5('0x6a')],_0xa7baf8[_0x4ea5('0xf2')])});for(const _0x2ce391 of _0x130d07){const _0x556470=_0x23dd4d[_0x4ea5('0x51')](_0xb4c9cf=>_0xb4c9cf[_0x4ea5('0x75')]===_0x2ce391['_element']);if(_0x556470){const _0x179993=Ot(_0x2ce391[_0x4ea5('0x56')][_0x4ea5('0xa')],_0xa7baf8[_0x4ea5('0xf2')]);_0x556470[_0x4ea5('0x117')]!==_0x2ce391['name']&&_0x17aeac[_0x4ea5('0x2f')]({'key':_0x4ea5('0x16'),'newValue':_0x2ce391[_0x4ea5('0x117')],'oldValue':_0x556470['name'],'range':_0x179993});for(const [_0x32f86e,_0x53f5a6]of _0x556470[_0x4ea5('0x42')]){if(!this[_0x4ea5('0xfb')](_0x32f86e))continue;const _0x45f240=_0x2ce391[_0x4ea5('0x42')]['get'](_0x32f86e);_0x53f5a6!==_0x45f240&&_0x17aeac[_0x4ea5('0x2f')]({'key':_0x32f86e,'newValue':_0x45f240,'oldValue':_0x53f5a6,'range':_0x179993});}for(const [_0x4e5252,_0x4755e0]of _0x2ce391[_0x4ea5('0x42')])this[_0x4ea5('0xfb')](_0x4e5252)&&(_0x556470[_0x4ea5('0x42')][_0x4ea5('0x151')](_0x4e5252)||_0x17aeac['push']({'key':_0x4e5252,'newValue':_0x4755e0,'oldValue':null,'range':_0x179993}));}}0x0!=_0x17aeac[_0x4ea5('0x7a')]&&_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0xa5')](_0x2bff18,_0x4b9282=>{const _0x269deb=_0x51752b();for(const {range:_0xa6bd49,key:_0x32eeea,oldValue:_0x220042,newValue:_0x191bac}of _0x17aeac)this[_0x4ea5('0x66')](_0xa6bd49,_0x32eeea,_0x220042,_0x191bac,{'groupId':_0x269deb});this[_0x4ea5('0x148')](_0x4b9282,_0x17aeac);});},{'priority':_0x4ea5('0x17')}),_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x1')]['on'](_0x4ea5('0x13c'),(_0x2fac05,_0x44fe2c,_0x5d5baa)=>{if(null==_0x5d5baa){const {id:_0x516705}=this['_splitMarkerName'](_0x44fe2c[_0x4ea5('0x117')]),_0x435c14=this[_0x4ea5('0xf0')][_0x4ea5('0x5f')](_0x516705);_0x435c14&&_0x435c14[_0x4ea5('0xb3')](_0x44fe2c[_0x4ea5('0x117')]);}}),_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0xe5')]['on'](_0x4ea5('0x179'),()=>{const _0x307bed=Array[_0x4ea5('0x39')](_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0xe5')][_0x4ea5('0x15f')]['getChangedMarkers']())[_0x4ea5('0x36')](_0x2b644e=>_0x4ea5('0x162')===this[_0x4ea5('0x10')](_0x2b644e[_0x4ea5('0x117')])[_0x4ea5('0xf9')]);if(0x0===_0x307bed['length'])return;_0x307bed[_0x4ea5('0xab')]((_0x5079a0,_0x34a840)=>{const _0x1958c2=_0x5079a0[_0x4ea5('0x1e')]['oldRange'],_0x5bc4e0=_0x34a840[_0x4ea5('0x1e')][_0x4ea5('0x29')];return null===_0x1958c2&&null===_0x5bc4e0?0x0:null===_0x1958c2&&null!==_0x5bc4e0?-0x1:null!==_0x1958c2&&null===_0x5bc4e0?0x1:_0x1958c2['start']['isBefore'](_0x5bc4e0[_0x4ea5('0x16d')])?-0x1:0x1;});const _0x1fdff6=new Set(),_0x1481ea=new Set();for(const {name:_0x4116bf,data:_0x1a716d}of _0x307bed){const {id:_0x4654f7}=this[_0x4ea5('0x10')](_0x4116bf);if(null===_0x1a716d[_0x4ea5('0x29')]){const _0x13455c=this[_0x4ea5('0x9c')](_0x4116bf);_0x1481ea[_0x4ea5('0x172')](_0x13455c);}else{const _0x1d6c9b=this[_0x4ea5('0xf0')]['get'](_0x4654f7);null!==_0x1a716d[_0x4ea5('0x143')]||_0x1d6c9b['isInContent']?(_0x1fdff6[_0x4ea5('0x172')](_0x1d6c9b[_0x4ea5('0x145')]),_0x1481ea[_0x4ea5('0x172')](_0x1d6c9b)):this[_0x4ea5('0xe3')](_0x1d6c9b);}}_0x1481ea[_0x4ea5('0x64')]>0x0&&this['_refreshSuggestionsChain'](_0x1481ea);for(const _0x370048 of _0x1fdff6)this[_0x4ea5('0x11f')](_0x4ea5('0x96'),_0x370048);}),_0xa7baf8['model']['on'](_0x4ea5('0x10d'),(_0xe813c1,_0x5f52da)=>{const _0x2484c8=_0x5f52da[0x0];if(!this['_suggestions'][_0x4ea5('0x64')])return;if(!_0x2484c8[_0x4ea5('0xb9')])return;if(_0x2484c8[_0x4ea5('0x28')][_0x4ea5('0xd3')]||!_0x2484c8[_0x4ea5('0x28')]['isLocal'])return;let _0x17175d,_0x5a454f;switch(_0x2484c8[_0x4ea5('0xc0')]){case _0x4ea5('0xf5'):_0x17175d=_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x60')](_0x2484c8['position']),_0x5a454f=_0x17175d[_0x4ea5('0x80')](_0x2484c8['howMany']);break;case _0x4ea5('0xed'):_0x17175d=_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x60')](_0x2484c8['splitPosition']),_0x5a454f=_0xa7baf8[_0x4ea5('0xf2')]['createPositionAt'](_0x2484c8['moveTargetPosition']);break;case _0x4ea5('0xf3'):_0x17175d=_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x60')](_0x2484c8[_0x4ea5('0x11a')]),_0x5a454f=_0x17175d[_0x4ea5('0x80')](_0x2484c8[_0x4ea5('0x16f')]);break;default:return;}const _0x13f227=_0xa7baf8['model'][_0x4ea5('0x5e')](_0x17175d,_0x5a454f);_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x12c')](()=>{for(const {suggestion:_0xd9a574,meta:_0x346a64}of this[_0x4ea5('0x9e')](_0x13f227)){if(_0xd9a574[_0x4ea5('0xf4')])continue;if(_0x4ea5('0x138')==_0xd9a574[_0x4ea5('0xc0')])continue;const _0x2fb6e2=this['_getAttributeKey'](_0xd9a574);if(_0x2fb6e2&&this[_0x4ea5('0x61')](_0x2fb6e2)&&_0x4ea5('0xed')!=_0x2484c8['type'])continue;const _0x1e6131=_0xd9a574['data']&&_0xd9a574['data'][_0x4ea5('0x73')];(_0x4ea5('0xe2')!=_0xd9a574[_0x4ea5('0xc0')]||'split'==_0x2484c8['type']&&!_0x1e6131)&&(_0x346a64[_0x4ea5('0xcc')]||_0x4ea5('0x108')==_0xd9a574[_0x4ea5('0xc0')]&&_0x346a64[_0x4ea5('0x3d')]||_0xd9a574[_0x4ea5('0x50')]()[_0x4ea5('0x14d')](_0x13f227)&&this[_0x4ea5('0x55')](_0xd9a574,_0x17175d,_0x5a454f));}});},{'priority':'lowest'}),_0xa7baf8['model']['on'](_0x4ea5('0x48'),(_0x26b79b,_0x344aba)=>{const _0x46eb16=_0x344aba[0x0],_0x4e56ff=_0x344aba[0x1];if(_0x4e56ff&&_0x4e56ff['forceDefaultExecution'])return;if(this[_0x4ea5('0x94')])return;if(!this[_0x4ea5('0x3b')]['value'])return;if(_0x46eb16[_0x4ea5('0xea')])return;const _0x2b9a73=_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x174')],{start:_0x11e068,end:_0x54fcac}=_0x46eb16[_0x4ea5('0x50')](),_0x3c9817=_0x11e068['nodeAfter']&&_0x2b9a73[_0x4ea5('0x135')](_0x11e068[_0x4ea5('0xa')])?null:_0x2b9a73['getNearestSelectionRange'](_0x11e068,_0x4ea5('0xd6')),_0x5d98a1=_0x54fcac[_0x4ea5('0x84')]&&_0x2b9a73[_0x4ea5('0x135')](_0x54fcac[_0x4ea5('0x84')])?null:_0x2b9a73[_0x4ea5('0x116')](_0x54fcac,_0x4ea5('0xba')),_0x173795=_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x5e')](_0x3c9817?_0x3c9817[_0x4ea5('0x16d')]:_0x11e068,_0x5d98a1?_0x5d98a1[_0x4ea5('0xfd')]:_0x54fcac);_0xa7baf8[_0x4ea5('0xf2')]['change'](_0x436c80=>{this[_0x4ea5('0x8c')](_0x173795);const _0x12c761=_0xa7baf8[_0x4ea5('0xf2')]['schema'][_0x4ea5('0x116')](_0x173795[_0x4ea5('0x16d')]);_0x46eb16['is'](_0x4ea5('0xb0'))?_0x436c80['setSelection'](_0x12c761):_0x46eb16['setTo'](_0x12c761);}),_0x26b79b[_0x4ea5('0x3c')]();},{'priority':_0x522682['normal']+0xa}),_0xa7baf8[_0x4ea5('0xf2')]['on'](_0x4ea5('0x166'),(_0x54e0a8,_0x4526db)=>{const _0x53f4f8=_0x4526db[_0x4526db[_0x4ea5('0x7a')]-0x1];_0x53f4f8&&_0x53f4f8[_0x4ea5('0x59')]||this[_0x4ea5('0x94')]||this[_0x4ea5('0x3b')]['value']&&(_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x12c')](()=>{let _0x35bc97=_0xa7baf8['model'][_0x4ea5('0x166')](_0x4526db[0x0],_0x4526db[0x1],_0x4526db[0x2],{'forceDefaultExecution':!0x0});if(!_0x35bc97)return;_0x54e0a8[_0x4ea5('0xae')]=_0x35bc97[_0x4ea5('0x16b')]();const _0x5ae104=_0x35bc97[_0x4ea5('0xfd')][_0x4ea5('0x84')],_0x4c0994=_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x174')];_0x5ae104&&_0x4c0994[_0x4ea5('0x14c')](_0x5ae104)&&!_0x4c0994['isObject'](_0x5ae104)&&(_0x35bc97=_0xa7baf8[_0x4ea5('0xf2')][_0x4ea5('0x5e')](_0x35bc97['start'],_0xa7baf8['model'][_0x4ea5('0x60')](_0x5ae104,'end'))),this[_0x4ea5('0xb5')](_0x35bc97);}),_0x54e0a8[_0x4ea5('0x3c')]());},{'priority':_0x4ea5('0xe0')}),this['editor'][_0x4ea5('0x123')]['add'](_0x4ea5('0xc4'),this[_0x4ea5('0x3b')]),this['enableCommand'](_0x4ea5('0xc4'));const _0x1d8c33=new _0xaf620e(_0xa7baf8,this[_0x4ea5('0xf0')]);_0xa7baf8[_0x4ea5('0x123')][_0x4ea5('0x172')](_0x4ea5('0x8f'),_0x1d8c33),this['enableCommand'](_0x4ea5('0x8f'));const _0x40b469=new _0x478946(_0xa7baf8,this['_suggestions']);_0xa7baf8[_0x4ea5('0x123')][_0x4ea5('0x172')](_0x4ea5('0x10a'),_0x40b469),this[_0x4ea5('0x4c')](_0x4ea5('0x10a')),_0xa7baf8[_0x4ea5('0x123')]['add'](_0x4ea5('0x45'),new _0x5b1da4(_0xa7baf8,_0x1d8c33,this[_0x4ea5('0xf0')])),this[_0x4ea5('0x4c')](_0x4ea5('0x45')),_0xa7baf8['commands'][_0x4ea5('0x172')](_0x4ea5('0xad'),new _0x5b1da4(_0xa7baf8,_0x40b469,this[_0x4ea5('0xf0')])),this['enableCommand'](_0x4ea5('0xad')),_0xa7baf8[_0x4ea5('0x123')][_0x4ea5('0x172')]('acceptSelectedSuggestions',new _0x48692b(_0xa7baf8,_0x1d8c33,this['_suggestions'])),this['enableCommand'](_0x4ea5('0x0')),_0xa7baf8[_0x4ea5('0x123')][_0x4ea5('0x172')]('discardSelectedSuggestions',new _0x48692b(_0xa7baf8,_0x40b469,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x8125ca=_0xa7baf8[_0x4ea5('0x20')]['get'](_0x4ea5('0x79'));this['listenTo'](_0x8125ca,'addComment',(_0x5a877a,{threadId:_0x4b02d1})=>{const _0x2a5f27=this[_0x4ea5('0xf0')][_0x4ea5('0x5f')](_0x4b02d1);_0x2a5f27&&_0x2a5f27[_0x4ea5('0x38')]&&0x1===_0x2a5f27[_0x4ea5('0x38')][_0x4ea5('0x7a')]&&this['_updateSuggestionData'](_0x4b02d1,{'hasComments':!0x0});},{'priority':_0x4ea5('0xde')}),this[_0x4ea5('0xac')](_0x8125ca,_0x4ea5('0x13b'),(_0x4c7c5c,{threadId:_0x24b873})=>{const _0x463786=this[_0x4ea5('0xf0')]['get'](_0x24b873);_0x463786&&_0x463786[_0x4ea5('0x38')]&&!_0x463786[_0x4ea5('0x38')][_0x4ea5('0x7a')]&&this[_0x4ea5('0x12e')](_0x24b873,{'hasComments':!0x1});},{'priority':_0x4ea5('0xde')});}set[_0x4ea5('0x168')](_0x320d62){if(this[_0x4ea5('0xcf')])throw new _0x4e3388(_0x4ea5('0x99'),this);this[_0x4ea5('0xcf')]=_0x320d62;}get[_0x4ea5('0x168')](){return this[_0x4ea5('0xcf')];}['getSuggestions']({skipNotAttached:_0x2704d4=!0x1,toJSON:_0x1654f7=!0x1}={}){const _0x6f976c=[];for(const _0x18ec81 of this[_0x4ea5('0xf0')][_0x4ea5('0xc8')]())_0x2704d4&&!_0x18ec81[_0x4ea5('0x67')]||_0x6f976c[_0x4ea5('0x2f')](_0x18ec81);return _0x1654f7?_0x6f976c[_0x4ea5('0x97')](_0x24f214=>_0x24f214[_0x4ea5('0xc1')]()):_0x6f976c;}['getSuggestion'](_0x200d12){const _0x2d0278=this[_0x4ea5('0xf0')]['get'](_0x200d12);if(!_0x2d0278)throw new _0x4e3388(_0x4ea5('0x4b'),this);return _0x2d0278;}[_0x4ea5('0xce')](_0x326e69){return this['_suggestions']['has'](_0x326e69);}[_0x4ea5('0xe4')](_0x9da10f){const {authorId:_0x1a74a9,id:_0x37dbd4,attributes:_0x268857}=_0x9da10f,[_0x2014dc,_0x5ecf62]=_0x9da10f[_0x4ea5('0xc0')][_0x4ea5('0xed')](':'),_0xbfff5f=this[_0x4ea5('0xf0')]['get'](_0x37dbd4)||this[_0x4ea5('0xa0')](_0x2014dc,_0x5ecf62,_0x37dbd4,_0x1a74a9,_0x268857);if(this[_0x4ea5('0x14b')](_0xbfff5f),this[_0x4ea5('0xa6')](_0xbfff5f,_0x2014dc,_0x5ecf62||null,_0x1a74a9),_0xbfff5f[_0x4ea5('0xdb')]=_0x9da10f['createdAt'],_0xbfff5f['_isDataLoaded']=!0x0,_0x268857&&_0x268857[_0x4ea5('0x40')]){const _0x1b5198=_0x268857[_0x4ea5('0x40')],_0x2c7bff=this[_0x4ea5('0x13a')](_0x1b5198[_0x4ea5('0x121')]);_0xbfff5f[_0x4ea5('0x77')]=_0x1b5198[_0x4ea5('0xdb')],_0xbfff5f[_0x4ea5('0x178')]=_0x2c7bff,_0xbfff5f['isExternal']=!0x0;}else _0xbfff5f[_0x4ea5('0x77')]=_0x9da10f[_0x4ea5('0xdb')];switch(_0x9da10f['data']&&(_0xbfff5f['data']=_0x9da10f[_0x4ea5('0x1e')]),_0x9da10f[_0x4ea5('0x42')]&&(_0xbfff5f['attributes']=_0x9da10f[_0x4ea5('0x42')]),this[_0x4ea5('0xcf')]&&this[_0x4ea5('0xcf')][_0x4ea5('0x82')]||(_0xbfff5f[_0x4ea5('0x125')]=!0x0),this['_suggestionState'][_0x4ea5('0x5f')](_0xbfff5f)){case _0x4ea5('0x158'):this[_0x4ea5('0x14e')][_0x4ea5('0xe6')](_0xbfff5f,'dataReady');break;case'markerReady':_0xbfff5f['isInContent']?(this[_0x4ea5('0x175')](new Set([_0xbfff5f])),this[_0x4ea5('0x54')](new Set([_0xbfff5f])),this[_0x4ea5('0x14e')][_0x4ea5('0xe6')](_0xbfff5f,_0x4ea5('0x169')),this[_0x4ea5('0x11f')](_0x4ea5('0x88'),_0xbfff5f)):this['_suggestionState'][_0x4ea5('0xe6')](_0xbfff5f,_0x4ea5('0x3e'));}return _0xbfff5f;}[_0x4ea5('0x8f')](_0x3f5c3e){this[_0x4ea5('0x59')](()=>{this[_0x4ea5('0xdd')][_0x4ea5('0xf2')]['change'](()=>{for(const _0xccae81 of _0x3f5c3e[_0x4ea5('0x95')]())_0xccae81[_0x4ea5('0x142')]();});});}[_0x4ea5('0x10a')](_0x222142){this['forceDefaultExecution'](()=>{this[_0x4ea5('0xdd')][_0x4ea5('0xf2')][_0x4ea5('0x12c')](()=>{for(const _0x4e42c0 of _0x222142[_0x4ea5('0x95')]())_0x4e42c0[_0x4ea5('0x176')]();});});}[_0x4ea5('0x4c')](_0x555cb1,_0x524511){const _0x3579c1=this[_0x4ea5('0xdd')]['commands'][_0x4ea5('0x5f')](_0x555cb1);if(!_0x3579c1)throw new _0x4e3388(_0x4ea5('0x118'),this,{'commandName':_0x555cb1});if(this['_enabledCommands']['has'](_0x3579c1))throw new _0x4e3388('track-changes-enable-command-twice',this,{'commandName':_0x555cb1});this[_0x4ea5('0xe1')][_0x4ea5('0x172')](_0x3579c1),_0x524511&&_0x3579c1['on'](_0x4ea5('0xd9'),(_0x4593e9,_0x2014a9)=>{this['trackChangesCommand'][_0x4ea5('0x124')]&&(this[_0x4ea5('0x94')]||(_0x2014a9[_0x4ea5('0x7a')]>0x0&&_0x2014a9[_0x2014a9[_0x4ea5('0x7a')]-0x1]&&_0x2014a9[_0x2014a9[_0x4ea5('0x7a')]-0x1]['forceDefaultExecution']?_0x2014a9['pop']():(_0x4593e9[_0x4ea5('0xae')]=_0x524511((..._0x5fabb3)=>_0x3579c1[_0x4ea5('0xd9')](..._0x5fabb3,{'forceDefaultExecution':!0x0}),..._0x2014a9),_0x4593e9[_0x4ea5('0x3c')]())));},{'priority':_0x4ea5('0xe0')});}[_0x4ea5('0x59')](_0x31dd1c){let _0x47b7b5,_0x55020b;const _0x447c1e=this['_isForcedDefaultExecutionBlock'];this[_0x4ea5('0x94')]=!0x0;try{_0x47b7b5=_0x31dd1c();}catch(_0x62b04){_0x55020b=_0x62b04;}return _0x447c1e||(this[_0x4ea5('0x94')]=!0x1),_0x55020b&&_0x4e3388[_0x4ea5('0xa9')](_0x55020b,this),_0x47b7b5;}['markInsertion'](_0x35fdd2,_0x2ab529=null,_0x2a9ec2={}){if(_0x35fdd2[_0x4ea5('0xea')])return null;const _0x3fe3e2=this[_0x4ea5('0xdd')]['plugins'][_0x4ea5('0x5f')]('Users')['me'];for(const {suggestion:_0x40f3a7,meta:_0x478617}of this[_0x4ea5('0x9e')](_0x35fdd2,'insertion'))if(_0x478617[_0x4ea5('0x3d')]){if(!_0x478617[_0x4ea5('0x8')]){if(_0x478617[_0x4ea5('0xcc')]){if(!this[_0x4ea5('0x14a')]||!Pt(_0x40f3a7,_0x2a9ec2))continue;return _0x40f3a7;}if(Pt(_0x40f3a7,_0x2a9ec2))return _0x40f3a7;this[_0x4ea5('0x55')](_0x40f3a7,_0x35fdd2[_0x4ea5('0x16d')],_0x35fdd2[_0x4ea5('0xfd')]);break;}if(_0x2ab529==_0x40f3a7[_0x4ea5('0xbe')]&&Pt(_0x40f3a7,_0x2a9ec2)){const _0x5906ee=_0x40f3a7[_0x4ea5('0x50')]();return _0x5906ee[_0x4ea5('0x16d')]['isEqual'](_0x35fdd2[_0x4ea5('0xfd')])?this[_0x4ea5('0xef')](_0x40f3a7,this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x35fdd2[_0x4ea5('0x16d')],_0x5906ee[_0x4ea5('0xfd')])):this[_0x4ea5('0xef')](_0x40f3a7,this[_0x4ea5('0x10b')]['createRange'](_0x5906ee[_0x4ea5('0x16d')],_0x35fdd2['end'])),_0x40f3a7;}}const _0x5aa527=_0x51752b(),_0x33887d=_0x3fe3e2['id'],_0x22e41d=_0x2ab529?'insertion:'+_0x2ab529:'insertion',_0x1de080=this[_0x4ea5('0x87')]({'id':_0x5aa527,'type':_0x22e41d,'createdAt':new Date(),'authorId':_0x33887d,'attributes':_0x2a9ec2});return this[_0x4ea5('0xd')](_0x22e41d,_0x5aa527,_0x33887d,_0x35fdd2),_0x1de080;}['markMultiRangeInsertion'](_0x3272d4,_0x5d87df='multi',_0x27ef83={}){const _0x43a59e=this[_0x4ea5('0xdd')]['plugins']['get'](_0x4ea5('0x21'))['me'],_0x2d4472=this[_0x4ea5('0x10f')][_0x4ea5('0x3f')](_0x4ea5('0x108'),_0x5d87df,_0x4ea5('0x43'));for(const _0x2a02bc of this[_0x4ea5('0x83')]())if(_0x2a02bc[_0x4ea5('0x178')]['id']==_0x43a59e['id']&&_0x4ea5('0x108')==_0x2a02bc['type']&&_0x2a02bc[_0x4ea5('0xbe')]==_0x5d87df&&Pt(_0x2a02bc,_0x27ef83)&&(_0x2d4472(_0x2a02bc[_0x4ea5('0x85')](),_0x3272d4)||_0x2d4472(_0x3272d4,_0x2a02bc[_0x4ea5('0x85')]()))){for(const _0x130f41 of _0x3272d4)_0x2a02bc[_0x4ea5('0x2d')](_0x130f41);return _0x2a02bc;}for(const {suggestion:_0x3e3f1b,meta:_0x3565f1}of this['_findSuggestions'](_0x3272d4,_0x4ea5('0x108'))){if(!_0x3565f1[_0x4ea5('0x3d')])continue;if(!this['_mergeNestedSuggestions']&&_0x3565f1[_0x4ea5('0xcc')])continue;if(!Pt(_0x3e3f1b,_0x27ef83))continue;let _0x29dc3f=!0x0;for(const _0x560841 of _0x3e3f1b['getRanges']())for(const _0x54e54b of _0x3272d4)if(!_0x560841[_0x4ea5('0x14d')](_0x54e54b)){_0x29dc3f=!0x1;break;}if(_0x29dc3f)return _0x3e3f1b;}const _0x162d85=_0x51752b(),_0x3f39fd=_0x43a59e['id'],_0x4ff09c=_0x4ea5('0x9')+_0x5d87df,_0x5562f9=this[_0x4ea5('0x87')]({'id':_0x162d85,'type':_0x4ff09c,'createdAt':new Date(),'authorId':_0x3f39fd,'attributes':_0x27ef83});for(const _0x33902b of _0x3272d4)this['_addSuggestionMarker'](_0x4ff09c,_0x162d85,_0x3f39fd,_0x33902b,_0x27c3d7[_0x4ea5('0x92')]());return _0x5562f9;}['markInlineFormat'](_0x2a74f2,_0x647187,_0xace55e=null,_0xdb1144={}){if(_0xace55e=_0xace55e||Et(_0x647187),_0x2a74f2[_0x4ea5('0xea')])return null;if(_0x4ea5('0xb6')===this[_0x4ea5('0x72')]){const _0x201ba2=this[_0x4ea5('0x10f')][_0x4ea5('0x3f')](_0x4ea5('0x138'),_0xace55e,_0x4ea5('0x142'));return this[_0x4ea5('0x59')](()=>_0x201ba2([_0x2a74f2],_0x647187,_0xdb1144)),null;}const _0x42748a=this['editor'][_0x4ea5('0x20')][_0x4ea5('0x5f')](_0x4ea5('0x21'))['me'],_0x1b3219=[];if('always'!==this[_0x4ea5('0x72')])for(const {suggestion:_0x48639a,meta:_0x562a65}of this[_0x4ea5('0x9e')](_0x2a74f2,'insertion'))_0x562a65[_0x4ea5('0x3d')]&&!_0x562a65[_0x4ea5('0x58')]&&_0x1b3219[_0x4ea5('0x2f')](..._0x48639a[_0x4ea5('0x85')]());const _0x206e22=function(_0x3b0a53,_0xff3992){const _0x350daa=[];for(const _0x1969f5 of _0xff3992){const _0x313d59=_0x3b0a53[_0x4ea5('0x62')](_0x1969f5);_0x313d59&&_0x350daa['push'](_0x313d59);}return _0x350daa;}(_0x2a74f2,_0x1b3219),_0x1c64d6=function(_0x1f65a2,_0x2cc145){const _0x1a92d5=[_0x1f65a2];for(const _0x75758a of _0x2cc145){let _0x287b2d=0x0;for(;_0x287b2d<_0x1a92d5[_0x4ea5('0x7a')];){const _0x4e00c0=_0x1a92d5[_0x287b2d][_0x4ea5('0xb1')](_0x75758a);_0x1a92d5['splice'](_0x287b2d,0x1,..._0x4e00c0),_0x287b2d+=_0x4e00c0[_0x4ea5('0x7a')];}}return _0x1a92d5;}(_0x2a74f2,_0x1b3219);_0x206e22[_0x4ea5('0x7a')]&&this['_model']['change'](()=>{for(const _0x2a12d2 of _0x206e22){const _0x3bb8dc=this[_0x4ea5('0x10f')][_0x4ea5('0x3f')](_0x4ea5('0x138'),_0xace55e,_0x4ea5('0x142'));this[_0x4ea5('0x59')](()=>_0x3bb8dc([_0x2a12d2],_0x647187,_0xdb1144));}});for(const _0x2a4bfb of _0x1c64d6){let _0x21d811=null,_0x48f870=_0x2a4bfb[_0x4ea5('0x16d')],_0x34d81a=_0x2a4bfb[_0x4ea5('0xfd')];for(const {suggestion:_0x3d00e8,meta:_0x4d7967}of this[_0x4ea5('0x9e')](_0x2a4bfb,_0x4ea5('0x138'))){if(!_0x4d7967[_0x4ea5('0x3d')])continue;if(_0x3d00e8['subType']!=_0xace55e)continue;if(!Pt(_0x3d00e8,_0xdb1144))continue;const _0x1ac106=_0x3d00e8[_0x4ea5('0x50')]();if(_0x1ac106[_0x4ea5('0x14d')](_0x2a4bfb,!0x0))return null;_0x48f870=_0x48f870['isBefore'](_0x1ac106[_0x4ea5('0x16d')])?_0x48f870:_0x1ac106['start'],_0x34d81a=_0x34d81a['isAfter'](_0x1ac106['end'])?_0x34d81a:_0x1ac106[_0x4ea5('0xfd')],_0x21d811?_0x1ac106['start'][_0x4ea5('0x76')](_0x21d811[_0x4ea5('0x50')]()['start'])?(_0x21d811['removeMarkers'](),_0x21d811=_0x3d00e8):_0x3d00e8[_0x4ea5('0x47')]():_0x21d811=_0x3d00e8;}const _0x511529=this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x48f870,_0x34d81a);if(_0x21d811)this['_setSuggestionRange'](_0x21d811,_0x511529);else{const _0x13c5a5=_0x51752b(),_0x3be4ab=_0x42748a['id'];this[_0x4ea5('0x87')]({'id':_0x13c5a5,'type':_0x4ea5('0x2e')+_0xace55e,'data':_0x647187,'createdAt':new Date(),'authorId':_0x3be4ab,'attributes':_0xdb1144}),this['_addSuggestionMarker'](_0x4ea5('0x2e')+_0xace55e,_0x13c5a5,_0x3be4ab,_0x511529);}}return null;}['markBlockFormat'](_0x38d864,_0x35e36d,_0x165bc2=[],_0x182f4b=null,_0x169775={}){_0x35e36d['formatGroupId']||(_0x35e36d['formatGroupId']=_0x35e36d[_0x4ea5('0x111')]),_0x35e36d[_0x4ea5('0x73')]=_0x38d864['is'](_0x4ea5('0x6a')),_0x182f4b=_0x182f4b||Et(_0x35e36d);const _0xf088b0=_0x165bc2['map'](_0x3c6ec8=>Ot(_0x3c6ec8,this[_0x4ea5('0x10b')])),_0x4045cf=_0x38d864['is'](_0x4ea5('0x6a'))?_0x38d864:Ot(_0x38d864,this[_0x4ea5('0x10b')]);if(_0x4ea5('0xb6')===this['_trackFormatChanges']){const _0x409766=this[_0x4ea5('0x10f')][_0x4ea5('0x3f')](_0x4ea5('0xe2'),_0x182f4b,_0x4ea5('0x142'));return this[_0x4ea5('0x59')](()=>_0x409766([_0x4045cf],_0x35e36d,_0x169775)),null;}_0xf088b0['push'](_0x4045cf);let _0x1f057f=!0x0;for(const _0x275034 of _0xf088b0)if(!this[_0x4ea5('0x1f')](_0x275034)){_0x1f057f=!0x1;break;}if(_0x1f057f&&_0x4ea5('0x26')!==this[_0x4ea5('0x72')]){const _0xb49cb4=this[_0x4ea5('0x10f')][_0x4ea5('0x3f')]('formatBlock',_0x182f4b,'accept');return this[_0x4ea5('0x59')](()=>_0xb49cb4([_0x4045cf],_0x35e36d,_0x169775)),null;}let _0x245214=null,_0x47ad8e=_0x4045cf[_0x4ea5('0x16d')],_0x2f2182=_0x4045cf[_0x4ea5('0xfd')];for(const {suggestion:_0x52147b,meta:_0x2016b7}of this['_findSuggestions'](_0x4045cf,_0x4ea5('0xe2'))){if(!_0x2016b7[_0x4ea5('0x3d')])continue;if(_0x2016b7[_0x4ea5('0x8')]||_0x2016b7['containsRangeInObject']||_0x2016b7['isInsideObject'])continue;if(_0x52147b['data'][_0x4ea5('0x44')]!=_0x35e36d[_0x4ea5('0x44')])continue;if(!Pt(_0x52147b,_0x169775))continue;const _0xf6469=_0x52147b[_0x4ea5('0x50')]();if(_0x52147b['subType']==_0x182f4b){if(_0xf6469[_0x4ea5('0x14d')](_0x4045cf,!0x0))return null;_0x47ad8e=_0x47ad8e[_0x4ea5('0x76')](_0xf6469['start'])?_0x47ad8e:_0xf6469[_0x4ea5('0x16d')],_0x2f2182=_0x2f2182[_0x4ea5('0x89')](_0xf6469[_0x4ea5('0xfd')])?_0x2f2182:_0xf6469['end'],_0x245214?_0xf6469[_0x4ea5('0x16d')][_0x4ea5('0x76')](_0x245214[_0x4ea5('0x50')]()[_0x4ea5('0x16d')])?(_0x245214[_0x4ea5('0x47')](),_0x245214=_0x52147b):_0x52147b[_0x4ea5('0x47')]():_0x245214=_0x52147b;}else{const _0x159b70=_0x4045cf[_0x4ea5('0x62')](_0xf6469);this[_0x4ea5('0xc2')](_0x52147b,_0x159b70);}}const _0xd96b88=this['editor'][_0x4ea5('0x20')][_0x4ea5('0x5f')](_0x4ea5('0x21'))['me'],_0x48c732=_0x51752b(),_0x2de2c2=_0xd96b88['id'];if(_0x245214)return this[_0x4ea5('0xef')](_0x245214,this[_0x4ea5('0x10b')]['createRange'](_0x47ad8e,_0x2f2182)),_0x245214;{const _0x16255d=this[_0x4ea5('0x87')]({'id':_0x48c732,'type':_0x4ea5('0x14f')+_0x182f4b,'data':_0x35e36d,'createdAt':new Date(),'authorId':_0x2de2c2,'attributes':_0x169775});return this[_0x4ea5('0xd')](_0x4ea5('0x14f')+_0x182f4b,_0x48c732,_0x2de2c2,this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x47ad8e,_0x2f2182)),_0x16255d;}}['markMultiRangeBlockFormat'](_0xe207d8,_0x374db1,_0x440e26=[],_0x50f9f8=null,_0xd0ec9e={}){_0x374db1['formatGroupId']||(_0x374db1[_0x4ea5('0x44')]=_0x374db1[_0x4ea5('0x111')]);const _0x54b4d2=_0xe207d8[0x0];_0x374db1[_0x4ea5('0x73')]=_0x54b4d2['is'](_0x4ea5('0x6a')),_0x50f9f8=_0x50f9f8||Et(_0x374db1);const _0xdb7f6c=_0x440e26[_0x4ea5('0x97')](_0x2213eb=>Ot(_0x2213eb,this[_0x4ea5('0x10b')])),_0x2aac33=_0x54b4d2['is'](_0x4ea5('0x6a'))?_0xe207d8:_0xe207d8['map'](_0x4326c4=>Ot(_0x4326c4,this[_0x4ea5('0x10b')]));if('never'===this[_0x4ea5('0x72')]){const _0x497133=this['_suggestionFactory'][_0x4ea5('0x3f')]('formatBlock',_0x50f9f8,'accept');return this[_0x4ea5('0x59')](()=>_0x497133(_0x2aac33,_0x374db1,_0xd0ec9e)),null;}_0xdb7f6c[_0x4ea5('0x2f')](..._0x2aac33);let _0x3dc3f=!0x0;for(const _0x477e9f of _0xdb7f6c)if(!this[_0x4ea5('0x1f')](_0x477e9f)){_0x3dc3f=!0x1;break;}if(_0x3dc3f&&_0x4ea5('0x26')!==this[_0x4ea5('0x72')]){const _0x3ea7ae=this['_suggestionFactory'][_0x4ea5('0x3f')](_0x4ea5('0xe2'),_0x50f9f8,_0x4ea5('0x142'));return this[_0x4ea5('0x59')](()=>_0x3ea7ae(_0x2aac33,_0x374db1,_0xd0ec9e)),null;}const _0x49edf2=this[_0x4ea5('0xdd')][_0x4ea5('0x20')][_0x4ea5('0x5f')](_0x4ea5('0x21'))['me'];for(const _0x46ea73 of this[_0x4ea5('0x83')]()){if(_0x46ea73['author']['id']!=_0x49edf2['id'])continue;if(_0x4ea5('0xe2')!=_0x46ea73[_0x4ea5('0xc0')]||_0x46ea73['data'][_0x4ea5('0x44')]!=_0x374db1[_0x4ea5('0x44')])continue;if(!Pt(_0x46ea73,_0xd0ec9e))continue;const _0x833ddf=_0x46ea73[_0x4ea5('0xbe')]==_0x50f9f8;for(let _0x3c04c2=0x0;_0x3c04c2<_0x2aac33[_0x4ea5('0x7a')];_0x3c04c2++){const _0x5d4d78=_0x2aac33[_0x3c04c2];for(const _0x4cb8ca of _0x46ea73[_0x4ea5('0x139')]()){const _0x36cf7a=_0x4cb8ca[_0x4ea5('0xeb')]();if(_0x5d4d78[_0x4ea5('0xb')](_0x36cf7a)){_0x833ddf?(_0x2aac33[_0x4ea5('0x35')](_0x3c04c2,0x1),_0x3c04c2--):_0x46ea73['removeMarker'](_0x4cb8ca[_0x4ea5('0x117')]);break;}}}}if(0x0==_0x2aac33[_0x4ea5('0x7a')])return null;const _0x36d782=this['_suggestionFactory']['getSuggestionCallback'](_0x4ea5('0xe2'),_0x50f9f8,_0x4ea5('0x43'));for(const _0x25baa9 of this[_0x4ea5('0x83')]())if(_0x25baa9['author']['id']==_0x49edf2['id']&&'formatBlock'==_0x25baa9['type']&&_0x25baa9[_0x4ea5('0x1e')][_0x4ea5('0x44')]==_0x374db1[_0x4ea5('0x44')]&&_0x25baa9[_0x4ea5('0xbe')]==_0x50f9f8&&Pt(_0x25baa9,_0xd0ec9e)&&(_0x36d782(_0x25baa9['getRanges'](),_0x2aac33)||_0x36d782(_0x2aac33,_0x25baa9[_0x4ea5('0x85')]()))){for(const _0x59c649 of _0x2aac33)_0x25baa9[_0x4ea5('0x2d')](_0x59c649);return _0x25baa9;}const _0x449f4c=_0x51752b(),_0x39c18a=_0x49edf2['id'],_0x363869=_0x4ea5('0x14f')+_0x50f9f8,_0x400852=this[_0x4ea5('0x87')]({'id':_0x449f4c,'type':_0x363869,'data':_0x374db1,'createdAt':new Date(),'authorId':_0x39c18a,'attributes':_0xd0ec9e});for(const _0x22974a of _0x2aac33)this['_addSuggestionMarker'](_0x363869,_0x449f4c,_0x39c18a,_0x22974a,_0x27c3d7[_0x4ea5('0x92')]());return _0x400852;}['markDeletion'](_0x15a9dc,_0x4ee5f4=null,_0x17fdc2={}){if(_0x15a9dc['isCollapsed'])return null;const _0x1d40e7=this[_0x4ea5('0xdd')]['plugins'][_0x4ea5('0x5f')](_0x4ea5('0x21'))['me'],_0x3efc91=new _0x314c43(_0x15a9dc[_0x4ea5('0x16d')],_0x15a9dc[_0x4ea5('0xfd')]);for(const {suggestion:_0x28a967,meta:_0xdd18bc}of this[_0x4ea5('0x9e')](_0x3efc91,_0x4ea5('0x108')))if(_0xdd18bc[_0x4ea5('0x3d')]&&!_0xdd18bc[_0x4ea5('0x8')]){if(_0x28a967[_0x4ea5('0xf4')]){const _0x4052c5=_0x28a967['getRanges']()[_0x4ea5('0x36')](_0x400804=>_0x4ea5('0x34')!=_0x400804[_0x4ea5('0x65')][_0x4ea5('0xf1')]);_0x4052c5[_0x4ea5('0x7c')](_0x2428fa=>_0x3efc91['containsRange'](_0x2428fa,!0x0))&&_0x28a967[_0x4ea5('0x176')]();if(_0x4052c5['some'](_0x4637d0=>_0x4637d0[_0x4ea5('0x14d')](_0x3efc91,!0x0))){const _0x138475=this[_0x4ea5('0x10f')][_0x4ea5('0x3f')]('deletion',_0x4ee5f4,_0x4ea5('0x142'));return this[_0x4ea5('0x59')](()=>_0x138475([_0x3efc91],null,_0x17fdc2)),null;}}else{const _0x10e677=_0x3efc91[_0x4ea5('0x62')](_0x28a967[_0x4ea5('0x50')]());null!==_0x10e677&&_0x28a967[_0x4ea5('0x2c')]([_0x10e677],null,_0x17fdc2);}}if(_0x3efc91[_0x4ea5('0xcd')](),_0x3efc91[_0x4ea5('0xea')]||'$graveyard'==_0x3efc91[_0x4ea5('0x65')][_0x4ea5('0xf1')])return null;let _0x2e3ceb=null,_0x14b249=_0x3efc91['start'],_0x14addf=_0x3efc91[_0x4ea5('0xfd')];const _0x5a720a=this[_0x4ea5('0x9e')](_0x3efc91,_0x4ea5('0x12d'));for(const {suggestion:_0x369ed3,meta:_0x23f0f0}of _0x5a720a){const _0x2a1c15=this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x14b249,_0x14addf);if(_0x23f0f0['isOwn']&&(this[_0x4ea5('0x14a')]||!_0x23f0f0[_0x4ea5('0xcc')]&&!_0x23f0f0[_0x4ea5('0x58')])){if(_0x369ed3['isMultiRange']){if(!Pt(_0x369ed3,_0x17fdc2))continue;let _0x1af9bc=!0x0;for(const _0x54842b of _0x369ed3[_0x4ea5('0x85')]()){if(_0x54842b[_0x4ea5('0x14d')](_0x2a1c15,!0x0))return _0x369ed3;_0x2a1c15[_0x4ea5('0x14d')](_0x54842b)||(_0x1af9bc=!0x1);}_0x1af9bc&&_0x369ed3[_0x4ea5('0x176')]();}else{const _0xb942bb=_0x369ed3[_0x4ea5('0x50')]();if(_0xb942bb[_0x4ea5('0x14d')](_0x2a1c15,!0x0))return _0x369ed3;if(!Pt(_0x369ed3,_0x17fdc2)){_0x2a1c15[_0x4ea5('0x14d')](_0xb942bb)?_0x369ed3['removeMarkers']():_0xb942bb['containsPosition'](_0x14b249)?_0x14b249=_0xb942bb[_0x4ea5('0xfd')]:_0xb942bb[_0x4ea5('0x37')](_0x14addf)&&(_0x14addf=_0xb942bb[_0x4ea5('0x16d')]);continue;}_0x14b249=_0x14b249[_0x4ea5('0x76')](_0xb942bb[_0x4ea5('0x16d')])?_0x14b249:_0xb942bb['start'],_0x14addf=_0x14addf[_0x4ea5('0x89')](_0xb942bb['end'])?_0x14addf:_0xb942bb[_0x4ea5('0xfd')],_0x17fdc2=Object[_0x4ea5('0x115')]({},_0x369ed3[_0x4ea5('0x42')]),_0x2e3ceb?_0xb942bb['start']['isBefore'](_0x2e3ceb[_0x4ea5('0x50')]()[_0x4ea5('0x16d')])?(_0x2e3ceb[_0x4ea5('0x47')](),_0x2e3ceb=_0x369ed3):_0x369ed3['removeMarkers']():_0x2e3ceb=_0x369ed3;}}}if(_0x2e3ceb)return this[_0x4ea5('0xef')](_0x2e3ceb,this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x14b249,_0x14addf)),_0x2e3ceb;{const _0x569c11=_0x51752b(),_0x2f2da3=this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x14b249,_0x14addf),_0x5dfb9c=_0x1d40e7['id'],_0x38c0c9=_0x4ee5f4?_0x4ea5('0xc')+_0x4ee5f4:'deletion',_0x398db8=this[_0x4ea5('0x87')]({'id':_0x569c11,'type':_0x38c0c9,'createdAt':new Date(),'authorId':_0x5dfb9c,'attributes':_0x17fdc2});return this[_0x4ea5('0xd')](_0x38c0c9,_0x569c11,_0x5dfb9c,_0x2f2da3),_0x398db8;}}[_0x4ea5('0x23')](_0x3dfc85,_0x153c06='multi',_0x24d268={}){const _0x3dd135=this[_0x4ea5('0xdd')]['plugins'][_0x4ea5('0x5f')]('Users')['me'],_0x29bd1d=_0x3dfc85[_0x4ea5('0x97')](_0x11e820=>new _0x314c43(_0x11e820['start'],_0x11e820[_0x4ea5('0xfd')])),_0x5d1f49=new Set();for(const {suggestion:_0x27752f,meta:_0x45fc78}of this['_findSuggestions'](_0x29bd1d,_0x4ea5('0x108')))_0x45fc78[_0x4ea5('0x3d')]&&!_0x45fc78[_0x4ea5('0x8')]&&_0x5d1f49[_0x4ea5('0x172')](_0x27752f);for(const _0x2503fa of _0x5d1f49)if(_0x2503fa['isMultiRange']){const _0x44583b=_0x2503fa[_0x4ea5('0x85')]();(!_0x2503fa['attributes']||!_0x2503fa[_0x4ea5('0x42')]['skipNestingCheck'])&&(_0x44583b['every'](_0x14f09d=>_0x29bd1d[_0x4ea5('0x16c')](_0x1fe272=>_0x1fe272[_0x4ea5('0x14d')](_0x14f09d,!0x0)))&&_0x2503fa[_0x4ea5('0x176')]());if(_0x29bd1d[_0x4ea5('0x7c')](_0x25a702=>_0x44583b[_0x4ea5('0x16c')](_0x3e1fb3=>_0x3e1fb3['containsRange'](_0x25a702,!0x0)))){const _0x40128b=this['_suggestionFactory'][_0x4ea5('0x3f')]('deletion',_0x153c06,_0x4ea5('0x142'));return this[_0x4ea5('0x59')](()=>_0x40128b(_0x3dfc85,null,_0x24d268)),null;}}else{const _0x12a38a=_0x2503fa['getFirstRange']();_0x29bd1d['some'](_0x399aee=>_0x399aee[_0x4ea5('0x14d')](_0x12a38a,!0x0))&&_0x2503fa[_0x4ea5('0x176')]();if(_0x29bd1d['every'](_0x74f765=>_0x12a38a[_0x4ea5('0x14d')](_0x74f765,!0x0))){const _0x236732=this[_0x4ea5('0x10f')][_0x4ea5('0x3f')](_0x4ea5('0x12d'),_0x153c06,_0x4ea5('0x142'));return this['forceDefaultExecution'](()=>_0x236732(_0x29bd1d,null,_0x24d268)),null;}}const _0x4fa8e8=this[_0x4ea5('0x10f')][_0x4ea5('0x3f')](_0x4ea5('0x12d'),_0x153c06,_0x4ea5('0x43'));let _0x23e783=null;for(const _0x92bce3 of this['getSuggestions']())if(_0x92bce3['author']['id']==_0x3dd135['id']&&_0x92bce3['isInContent']&&_0x4ea5('0x12d')==_0x92bce3[_0x4ea5('0xc0')]&&_0x92bce3[_0x4ea5('0xbe')]==_0x153c06&&Pt(_0x92bce3,_0x24d268)&&(_0x4fa8e8(_0x92bce3[_0x4ea5('0x85')](),_0x29bd1d)||_0x4fa8e8(_0x29bd1d,_0x92bce3[_0x4ea5('0x85')]()))){if(_0x23e783){if(_0x92bce3[_0x4ea5('0x38')]&&_0x92bce3[_0x4ea5('0x38')][_0x4ea5('0x7a')])continue;for(const _0x3bc832 of _0x92bce3[_0x4ea5('0x85')]())_0x23e783[_0x4ea5('0x164')](_0x3bc832)||_0x23e783[_0x4ea5('0x2d')](_0x3bc832);_0x92bce3[_0x4ea5('0x47')]();}else{_0x23e783=_0x92bce3;for(const _0x2efbc1 of _0x29bd1d)_0x92bce3[_0x4ea5('0x164')](_0x2efbc1)||_0x92bce3[_0x4ea5('0x2d')](_0x2efbc1);}}if(_0x23e783)return _0x23e783;_0x5d1f49[_0x4ea5('0x104')]();for(const {suggestion:_0x3f813e,meta:_0xb8d61f}of this[_0x4ea5('0x9e')](_0x29bd1d,_0x4ea5('0x12d')))_0xb8d61f[_0x4ea5('0x3d')]&&(this['_mergeNestedSuggestions']||!_0xb8d61f[_0x4ea5('0xcc')]&&!_0xb8d61f[_0x4ea5('0x58')])&&Pt(_0x3f813e,_0x24d268)&&_0x5d1f49['add'](_0x3f813e);for(const _0x382e3f of _0x5d1f49){const _0x278f2a=_0x382e3f[_0x4ea5('0x85')]();if(!_0x24d268||!_0x24d268[_0x4ea5('0xd2')]){if(_0x29bd1d['every'](_0x10a243=>_0x278f2a[_0x4ea5('0x16c')](_0x2494c0=>_0x2494c0[_0x4ea5('0x14d')](_0x10a243,!0x0))))return _0x382e3f;}(!_0x382e3f[_0x4ea5('0x42')]||!_0x382e3f[_0x4ea5('0x42')][_0x4ea5('0xd2')])&&(_0x278f2a[_0x4ea5('0x7c')](_0x27da7c=>_0x29bd1d['some'](_0x54573a=>_0x54573a[_0x4ea5('0x14d')](_0x27da7c,!0x0)))&&_0x382e3f['discard']());}const _0x1e076a=_0x51752b(),_0x1eb237=_0x3dd135['id'],_0x58397f='deletion:'+_0x153c06,_0x56043e=this['_setSuggestionData']({'id':_0x1e076a,'type':_0x58397f,'createdAt':new Date(),'authorId':_0x1eb237,'attributes':_0x24d268});for(const _0x4c4846 of _0x29bd1d)_0x4c4846[_0x4ea5('0xcd')](),_0x4c4846[_0x4ea5('0xea')]||'$graveyard'==_0x4c4846[_0x4ea5('0x65')][_0x4ea5('0xf1')]||this[_0x4ea5('0xd')](_0x58397f,_0x1e076a,_0x1eb237,_0x4c4846,_0x27c3d7[_0x4ea5('0x92')]());return _0x56043e;}[_0x4ea5('0x66')](_0x401d56,_0x2aad34,_0x27b746,_0x1ad2b6,_0xa701f2){if(_0x401d56[_0x4ea5('0xea')])return[];if(_0x4ea5('0xb6')===this[_0x4ea5('0x72')])return[];const _0xb41214=this[_0x4ea5('0xdd')][_0x4ea5('0x20')][_0x4ea5('0x5f')]('Users')['me']['id'],_0x13d2a1=Array[_0x4ea5('0x39')](this['_suggestions']['values']())[_0x4ea5('0x36')](_0x509a1a=>_0x4ea5('0x32')==_0x509a1a['type']&&_0x509a1a[_0x4ea5('0x1e')][_0x4ea5('0x4a')]==_0x2aad34&&_0x509a1a[_0x4ea5('0x164')](_0x401d56));if(_0x4ea5('0x106')===this[_0x4ea5('0x72')]){const _0xa4e6f4=this[_0x4ea5('0x9e')](_0x401d56,_0x4ea5('0x108'))[_0x4ea5('0x36')](({meta:_0x19f73b})=>_0x19f73b['isOwn']&&!_0x19f73b[_0x4ea5('0x58')]&&!_0x19f73b[_0x4ea5('0x8')])['map'](({suggestion:_0x4cbf71})=>_0x4cbf71);_0x13d2a1[_0x4ea5('0x15a')](..._0xa4e6f4);}const _0x17e10e=new Map([[_0x401d56,_0x27b746]]);for(const _0x1d3e8a of _0x13d2a1){const _0x1096e9=_0x4ea5('0x32')==_0x1d3e8a[_0x4ea5('0xc0')]?_0x1d3e8a['data']['oldValue']:void 0x0,_0x522e2d=_0x1d3e8a['getFirstRange'](),_0x5b82c6=Array[_0x4ea5('0x39')](_0x17e10e['keys']())[_0x4ea5('0x51')](_0x3c8c42=>_0x3c8c42[_0x4ea5('0x11d')](_0x522e2d));if(!_0x5b82c6)continue;const _0x26896f=_0x5b82c6[_0x4ea5('0xb1')](_0x522e2d);this[_0x4ea5('0x61')](_0x2aad34)&&_0x4ea5('0x108')==_0x1d3e8a[_0x4ea5('0xc0')]&&0x0!=_0x26896f[_0x4ea5('0x7a')]||(_0x17e10e[_0x4ea5('0x3')](_0x5b82c6),_0x26896f[_0x4ea5('0x19')](_0x489bf6=>{_0x17e10e[_0x4ea5('0xe6')](_0x489bf6,_0x27b746);}),_0x4ea5('0x108')!=_0x1d3e8a[_0x4ea5('0xc0')]&&_0x1096e9!=_0x1ad2b6&&_0x17e10e['set'](_0x5b82c6['getIntersection'](_0x522e2d),_0x1096e9));}const _0x24bcf1=[];for(const [_0x36fa97,_0x52c709]of _0x17e10e){const _0x33fb78=_0x51752b(),_0x20c85f={'key':_0x2aad34,'oldValue':_0x52c709,'newValue':_0x1ad2b6};_0x2aad34[_0x4ea5('0x7a')]>0x25&&console[_0x4ea5('0xdf')](_0x4ea5('0x171'),{'key':_0x2aad34});const _0xcf70d4=(_0x4ea5('0x156')+(_0x2aad34+'|'+Et({'newValue':_0x1ad2b6})))['substring'](0x0,0x3c),_0x5e62b4=this[_0x4ea5('0x87')]({'id':_0x33fb78,'type':_0xcf70d4,'data':_0x20c85f,'createdAt':new Date(),'authorId':_0xb41214,'attributes':_0xa701f2});_0x24bcf1[_0x4ea5('0x2f')](_0x5e62b4),this[_0x4ea5('0xd')](_0xcf70d4,_0x33fb78,_0xb41214,_0x36fa97);}return _0x24bcf1;}[_0x4ea5('0x71')](_0x4716c7){this[_0x4ea5('0x7f')][_0x4ea5('0x172')](_0x4716c7);}[_0x4ea5('0x93')](_0x3219d3){this[_0x4ea5('0x63')]['add'](_0x3219d3);}[_0x4ea5('0xd5')](_0x2d0592,_0xbfeda1=[],_0x3e071a=[]){this['enableCommand'](_0x2d0592,(_0x464ec1,..._0x296693)=>{this[_0x4ea5('0x131')](()=>{_0x464ec1(..._0x296693);});});for(const _0x267ba0 of _0xbfeda1)this[_0x4ea5('0x93')](_0x267ba0);for(const _0x31c57d of _0x3e071a)this['_registerBlockAttribute'](_0x31c57d);}['_getAttributeKey'](_0x5b64e6){return'attribute'==_0x5b64e6['type']?_0x5b64e6[_0x4ea5('0xbe')][_0x4ea5('0xed')]('|')[0x0]:null;}[_0x4ea5('0xef')](_0xedec6b,_0x57b8e3){const _0x3dc434=_0xedec6b['getFirstMarker']();this[_0x4ea5('0x10b')][_0x4ea5('0x12c')](_0x3de02a=>{_0x3de02a[_0x4ea5('0x16e')](_0x3dc434,{'range':_0x57b8e3});});}['_addThreadToSuggestion'](_0x4448f7){const _0x4c3fe3=_0x4448f7['id'],_0x24c67a=this[_0x4ea5('0xdd')][_0x4ea5('0x52')][_0x4ea5('0x5f')](_0x4ea5('0x107'));this[_0x4ea5('0x30')]['hasCommentThread'](_0x4c3fe3)||this[_0x4ea5('0x30')]['addCommentThread']({'channelId':_0x24c67a,'threadId':_0x4c3fe3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4de781=this[_0x4ea5('0x30')][_0x4ea5('0xc3')](_0x4c3fe3);_0x4de781['unbind'](_0x4ea5('0x15c')),_0x4de781[_0x4ea5('0x15c')]=!0x1,_0x4448f7['commentThread']=_0x4de781;}[_0x4ea5('0xa6')](_0x20dc52,_0x4f5eaf,_0x5577b3,_0x269425){if(_0x20dc52[_0x4ea5('0xc0')]!=_0x4f5eaf||_0x20dc52[_0x4ea5('0xbe')]!=_0x5577b3||_0x20dc52['creator']['id']!=_0x269425)throw this[_0x4ea5('0xdd')][_0x4ea5('0x100')]('track-changes-suggestion-data-mismatch'),new _0x4e3388(_0x4ea5('0x6c'),this);}['_cutOutSuggestionMarker'](_0x5341ee,_0x13f628){const _0xf59367=_0x5341ee[_0x4ea5('0x50')]();if(_0x13f628[_0x4ea5('0xb')](_0xf59367))_0x5341ee[_0x4ea5('0x47')]();else{if(_0xf59367[_0x4ea5('0x14d')](_0x13f628)){const _0x4d7d6e=this[_0x4ea5('0x10b')]['createPositionAt'](_0x13f628[_0x4ea5('0x16d')]['nodeBefore'],_0x4ea5('0xfd'));this[_0x4ea5('0xef')](_0x5341ee,this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0xf59367[_0x4ea5('0x16d')],_0x4d7d6e));const _0x3f0cba=_0x51752b(),_0x19f4d0=_0x5341ee[_0x4ea5('0x11e')]['id'],_0x4ce910=_0x5341ee[_0x4ea5('0xc0')]+':'+_0x5341ee[_0x4ea5('0xbe')];this['_setSuggestionData']({'id':_0x3f0cba,'type':_0x4ce910,'createdAt':new Date(),'authorId':_0x19f4d0,'data':_0x5341ee[_0x4ea5('0x1e')],'attributes':_0x5341ee[_0x4ea5('0x42')]});const _0x4b1c18=this[_0x4ea5('0x10b')][_0x4ea5('0x60')](_0x13f628[_0x4ea5('0xfd')][_0x4ea5('0x9b')],_0x4ea5('0x134')),_0x2e0f2f=this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x4b1c18,_0xf59367[_0x4ea5('0xfd')]);this[_0x4ea5('0xd')](_0x4ce910,_0x3f0cba,_0x19f4d0,_0x2e0f2f);}else{if(_0xf59367[_0x4ea5('0x37')](_0x13f628[_0x4ea5('0x16d')])){const _0x5cbf64=this[_0x4ea5('0x10b')][_0x4ea5('0x60')](_0x13f628[_0x4ea5('0x16d')][_0x4ea5('0x84')],_0x4ea5('0xfd'));this[_0x4ea5('0xef')](_0x5341ee,this['_model']['createRange'](_0xf59367[_0x4ea5('0x16d')],_0x5cbf64));}else{const _0x107baf=this['_model']['createPositionAt'](_0x13f628[_0x4ea5('0xfd')]['parent'],_0x4ea5('0x134'));this[_0x4ea5('0xef')](_0x5341ee,this['_model']['createRange'](_0x107baf,_0xf59367[_0x4ea5('0xfd')]));}}}}[_0x4ea5('0x1f')](_0x34524c){for(const {suggestion:_0x576467,meta:_0x3cbe61}of this['_findSuggestions'](_0x34524c,_0x4ea5('0x108'))){if(!_0x3cbe61['isOwn'])continue;const _0x5a5101=_0x576467[_0x4ea5('0x85')]();for(const _0x44abdb of _0x5a5101)if(!_0x34524c[_0x4ea5('0xb1')](_0x44abdb)[_0x4ea5('0x7a')])return!0x0;}return!0x1;}[_0x4ea5('0xbf')](_0x4b203d){const _0x240d61=this[_0x4ea5('0xdd')][_0x4ea5('0x20')][_0x4ea5('0x5f')]('Users')[_0x4ea5('0xee')](_0x4b203d);if(!_0x240d61)throw new _0x4e3388(_0x4ea5('0x4'),this);return _0x240d61;}[_0x4ea5('0x13a')](_0x401796){const _0x419c3f=this[_0x4ea5('0xdd')][_0x4ea5('0x20')][_0x4ea5('0x5f')](_0x4ea5('0x21')),_0x56240e=_0x4dbe2d(_0x4ea5('0x141')+_0x401796),_0x33768e=_0x419c3f['getUser'](_0x56240e);return _0x33768e||_0x419c3f[_0x4ea5('0x2a')]({'id':_0x56240e,'name':_0x401796});}[_0x4ea5('0xa0')](_0x24e838,_0x4d3973,_0xf7829f,_0x6ad023,_0x260623){const _0x2502e1=this[_0x4ea5('0xbf')](_0x6ad023),_0x1bed49=this[_0x4ea5('0x10f')]['buildSuggestion'](_0x24e838,_0x4d3973,_0xf7829f,_0x2502e1,_0x260623,_0x4bd4d7=>{this['_updateSuggestionData'](_0xf7829f,{'attributes':_0x4bd4d7});const _0x2e7a7d=this[_0x4ea5('0x91')](_0xf7829f);this[_0x4ea5('0x175')](new Set([_0x2e7a7d])),this[_0x4ea5('0x54')](new Set([_0x2e7a7d]));});return this['listenTo'](_0x1bed49,_0x4ea5('0x142'),()=>{this['_updateSuggestionData'](_0xf7829f,{'state':'accepted'});},{'priority':_0x4ea5('0xe0')}),this['listenTo'](_0x1bed49,_0x4ea5('0x176'),()=>{this[_0x4ea5('0x12e')](_0xf7829f,{'state':_0x4ea5('0x8d')});},{'priority':_0x4ea5('0xe0')}),this['_suggestions'][_0x4ea5('0xe6')](_0xf7829f,_0x1bed49),this['_suggestionState']['set'](_0x1bed49,_0x4ea5('0x158')),_0x1bed49;}[_0x4ea5('0x10')](_0x23ff93){const _0x306e6c=_0x23ff93[_0x4ea5('0xed')](':');return{'group':_0x306e6c[0x0],'type':_0x306e6c[0x1],'subType':_0x306e6c['length']>=0x5?_0x306e6c[0x2]:null,'id':_0x306e6c[_0x4ea5('0x7a')]<0x5?_0x306e6c[0x2]:_0x306e6c[0x3],'authorId':_0x306e6c[_0x4ea5('0x7a')]<0x5?_0x306e6c[0x3]:_0x306e6c[0x4],'markerCount':0x6==_0x306e6c[_0x4ea5('0x7a')]?_0x306e6c[0x5]:null};}[_0x4ea5('0x55')](_0x3a8786,_0xd3c16d,_0x4427d9){const _0x48e7c5=_0x3a8786[_0x4ea5('0x50')](),_0x12071c=_0x48e7c5['start'],_0x257543=_0x48e7c5[_0x4ea5('0xfd')];this['_setSuggestionRange'](_0x3a8786,this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x12071c,_0xd3c16d));const _0xd142a2=_0x51752b(),_0x12c58a=_0x3a8786[_0x4ea5('0x11e')]['id'],_0x18e2f7=_0x3a8786[_0x4ea5('0xc0')]+(_0x3a8786['subType']?':'+_0x3a8786['subType']:'');this[_0x4ea5('0x87')]({'id':_0xd142a2,'type':_0x18e2f7,'createdAt':new Date(),'authorId':_0x12c58a,'originalSuggestionId':_0x3a8786['id'],'attributes':_0x3a8786['attributes'],'data':_0x3a8786[_0x4ea5('0x1e')]});const _0x4db8a3=this[_0x4ea5('0x154')](_0x3a8786);('formatBlock'==_0x3a8786[_0x4ea5('0xc0')]||_0x4db8a3&&this[_0x4ea5('0x61')](_0x4db8a3))&&(_0x4427d9=this[_0x4ea5('0x10b')][_0x4ea5('0x14')](_0x4427d9['parent'])),this[_0x4ea5('0xd')](_0x18e2f7,_0xd142a2,_0x12c58a,this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x4427d9,_0x257543));}[_0x4ea5('0x9e')](_0x118cf9,_0x58ea0f=null){const _0x5ba108=[],_0x16e9d6=this[_0x4ea5('0xdd')]['plugins'][_0x4ea5('0x5f')](_0x4ea5('0x21'))['me'];Array[_0x4ea5('0xc7')](_0x118cf9)||(_0x118cf9=[_0x118cf9]);for(const _0x516eb3 of this[_0x4ea5('0x83')]()){if(!_0x516eb3['isInContent'])continue;if(_0x58ea0f&&_0x516eb3[_0x4ea5('0xc0')]!=_0x58ea0f)continue;let _0xfb4ab1=!0x1;for(const _0xdb4e97 of _0x516eb3[_0x4ea5('0x85')]()){for(const _0x31162a of _0x118cf9){const _0x195651=_0x31162a[_0x4ea5('0x16d')]['isEqual'](_0xdb4e97[_0x4ea5('0xfd')])||_0x31162a['end'][_0x4ea5('0xb')](_0xdb4e97[_0x4ea5('0x16d')]);if(_0x195651||_0x31162a[_0x4ea5('0x62')](_0xdb4e97)){const _0x3acdbd=_0x31162a[_0x4ea5('0x14d')](_0xdb4e97)&&xt(this[_0x4ea5('0x10b')][_0x4ea5('0x174')],_0xdb4e97['start'],_0x31162a),_0x5e46e9=_0xdb4e97[_0x4ea5('0x14d')](_0x31162a)&&xt(this['_model']['schema'],_0x31162a[_0x4ea5('0x16d')],_0xdb4e97);_0x5ba108['push']({'suggestion':_0x516eb3,'meta':{'isOwn':_0x16e9d6==_0x516eb3[_0x4ea5('0x178')],'isNextTo':_0x195651,'isInsideObject':_0x3acdbd,'containsRangeInObject':_0x5e46e9}}),_0xfb4ab1=!0x0;break;}}if(_0xfb4ab1)break;}}return _0x5ba108;}[_0x4ea5('0xd')](_0x262e0e,_0x493676,_0x2a7874,_0x23daca,_0x170cd9){this[_0x4ea5('0x10b')][_0x4ea5('0x12c')](_0x1e4f83=>{let _0x22dad2='suggestion:'+_0x262e0e+':'+_0x493676+':'+_0x2a7874;_0x170cd9&&(_0x22dad2=_0x22dad2+':'+_0x170cd9),_0x1e4f83['addMarker'](_0x22dad2,{'range':_0x23daca,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x25fca9){const _0x818b60=_0x25fca9['previous'],_0x51f53f=_0x25fca9[_0x4ea5('0x173')];_0x25fca9[_0x4ea5('0x4d')]=null,_0x25fca9['next']=null,null!=_0x818b60&&_0x818b60[_0x4ea5('0x173')]==_0x25fca9&&(_0x818b60[_0x4ea5('0x173')]=_0x51f53f),null!=_0x51f53f&&_0x51f53f[_0x4ea5('0x4d')]==_0x25fca9&&(_0x51f53f['previous']=_0x818b60),'ready'==this[_0x4ea5('0x14e')][_0x4ea5('0x5f')](_0x25fca9)&&(this[_0x4ea5('0x14e')]['set'](_0x25fca9,_0x4ea5('0x3e')),this[_0x4ea5('0x11f')](_0x4ea5('0x2'),_0x25fca9,_0x818b60,_0x51f53f));}['_setSuggestionData'](_0xf7aa1){const _0x79e233=_0xf7aa1['id'],_0x1b4ea3=this[_0x4ea5('0xe4')](_0xf7aa1);if(this[_0x4ea5('0xcf')]&&this['_adapter']['addSuggestion']){const _0x3b0fb0=this['editor'][_0x4ea5('0x20')][_0x4ea5('0x5f')]('PendingActions'),_0x18aa20=_0x1b4ea3[_0x4ea5('0x112')],_0x54f5b4=_0x1b4ea3[_0x4ea5('0xbe')]?_0x1b4ea3[_0x4ea5('0xc0')]+':'+_0x1b4ea3[_0x4ea5('0xbe')]:_0x1b4ea3[_0x4ea5('0xc0')],_0x234443=this[_0x4ea5('0xdd')][_0x4ea5('0x11b')],_0x3f3057=_0x3b0fb0[_0x4ea5('0x172')](_0x15cb77(_0x234443,_0x4ea5('0x149'))),_0x27a8dc={'id':_0x79e233,'type':_0x54f5b4,'hasComments':_0x18aa20,'data':_0xf7aa1[_0x4ea5('0x1e')]||null,'originalSuggestionId':_0xf7aa1[_0x4ea5('0xf8')]||null,'attributes':_0x1b4ea3[_0x4ea5('0x42')]};this[_0x4ea5('0xcf')][_0x4ea5('0x82')](_0x27a8dc)[_0x4ea5('0xc6')](_0x3f6f70=>{_0x1b4ea3['_saved']=!0x0,_0x3b0fb0['remove'](_0x3f3057),_0x3f6f70&&_0x3f6f70[_0x4ea5('0xdb')]&&(this[_0x4ea5('0xf0')]['get'](_0x79e233)[_0x4ea5('0xdb')]=_0x3f6f70[_0x4ea5('0xdb')]);})[_0x4ea5('0x81')](_0x41ae50=>{throw _0xa31606(_0x4ea5('0xff')),this['editor'][_0x4ea5('0xf2')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x1b4ea3['discard']();}),_0x1b4ea3[_0x4ea5('0x103')](),this[_0x4ea5('0xf0')][_0x4ea5('0x3')](_0x1b4ea3['id']),this[_0x4ea5('0x14e')]['delete'](_0x1b4ea3),_0x41ae50;});}return _0x1b4ea3;}[_0x4ea5('0x61')](_0x5f05f7){return this['_blockAttributeKeys'][_0x4ea5('0x151')](_0x5f05f7);}[_0x4ea5('0x12e')](_0x38aff6,_0x434ab5){const _0x4ccccf=this[_0x4ea5('0xdd')][_0x4ea5('0x20')][_0x4ea5('0x5f')](_0x4ea5('0x9d')),_0x4f10de=this[_0x4ea5('0x91')](_0x38aff6);if(this['_adapter']&&this[_0x4ea5('0xcf')][_0x4ea5('0x24')]){if(_0x4f10de[_0x4ea5('0x125')]){const _0x300264=_0x4ccccf[_0x4ea5('0x172')](_0x15cb77(this[_0x4ea5('0xdd')][_0x4ea5('0x11b')],_0x4ea5('0x149')));this[_0x4ea5('0xcf')][_0x4ea5('0x24')](_0x38aff6,_0x434ab5)[_0x4ea5('0xc6')](()=>{_0x4ccccf[_0x4ea5('0x78')](_0x300264);});}else _0x4f10de['on']('change:_saved',()=>{this[_0x4ea5('0x12e')](_0x38aff6,_0x434ab5);});}}[_0x4ea5('0x8e')](_0x226afa){if(!this[_0x4ea5('0xcf')]||!this[_0x4ea5('0xcf')][_0x4ea5('0x91')])throw new _0x4e3388(_0x4ea5('0x8b'),this);return this[_0x4ea5('0xcf')][_0x4ea5('0x91')](_0x226afa);}['_handleNewSuggestionMarker'](_0x47132f){const {id:_0x2c4062,type:_0x4267a2,subType:_0x5bd37f,authorId:_0x22b0a7}=this['_splitMarkerName'](_0x47132f),_0x334523=this['_suggestions'][_0x4ea5('0x5f')](_0x2c4062)||this[_0x4ea5('0xa0')](_0x4267a2,_0x5bd37f,_0x2c4062,_0x22b0a7,{});switch(this[_0x4ea5('0xa6')](_0x334523,_0x4267a2,_0x5bd37f,_0x22b0a7),this[_0x4ea5('0x14e')][_0x4ea5('0x5f')](_0x334523)){case _0x4ea5('0x158'):this['_getSuggestionData'](_0x2c4062)['then'](_0x37134f=>{let _0x5ec06d=Promise[_0x4ea5('0x127')]();_0x37134f[_0x4ea5('0x112')]&&(_0x5ec06d=this[_0x4ea5('0x30')][_0x4ea5('0x120')]({'channelId':this[_0x4ea5('0xdd')][_0x4ea5('0x52')][_0x4ea5('0x5f')](_0x4ea5('0x107')),'threadId':_0x2c4062})),_0x5ec06d[_0x4ea5('0xc6')](()=>{this[_0x4ea5('0xe4')](_0x37134f)[_0x4ea5('0x125')]=!0x0;});}),this['_suggestionState'][_0x4ea5('0xe6')](_0x334523,_0x4ea5('0x155'));break;case _0x4ea5('0x3e'):this['_updateSuggestionData'](_0x2c4062,{'state':_0x4ea5('0x167')});case'dataReady':this[_0x4ea5('0x14e')][_0x4ea5('0xe6')](_0x334523,_0x4ea5('0x169')),this[_0x4ea5('0x11f')]('suggestionLoaded',_0x334523);break;case _0x4ea5('0x169'):this[_0x4ea5('0x11f')](_0x4ea5('0x96'),_0x334523);}return _0x334523[_0x4ea5('0xb3')](_0x47132f),_0x334523;}['_refreshSuggestionsChain'](_0x3d1452){const _0x3934f7=Array[_0x4ea5('0x39')](_0x3d1452),_0x155b99=_0x3934f7[_0x4ea5('0x36')](_0x5ec3d1=>'attribute'==_0x5ec3d1['type']);this[_0x4ea5('0xf7')](_0x155b99);const _0x597135=_0x3934f7[_0x4ea5('0x36')](_0x204e90=>!_0x204e90[_0x4ea5('0xf4')]&&_0x4ea5('0x32')!=_0x204e90[_0x4ea5('0xc0')]),_0x42e781=this[_0x4ea5('0x83')]({'skipNotAttached':!0x0})[_0x4ea5('0x36')](_0x3dd9d1=>!_0x3dd9d1[_0x4ea5('0xf4')]&&'attribute'!=_0x3dd9d1[_0x4ea5('0xc0')]),_0x45c95d=_0x42e781[_0x4ea5('0x36')](_0x2f3e3a=>!_0x3d1452['has'](_0x2f3e3a)),_0x302635=new Map(_0x42e781['map'](_0x3387c8=>[_0x3387c8,this[_0x4ea5('0x10f')]['getSuggestionCallback'](_0x3387c8[_0x4ea5('0xc0')],_0x3387c8[_0x4ea5('0xbe')],'chain')])),_0x577cce=new Map(_0x42e781[_0x4ea5('0x97')](_0x431197=>[_0x431197,_0x431197[_0x4ea5('0x50')]()])),_0x3492d2=new Set(),_0x238996=new Set();for(let _0x275d7a=0x0;_0x275d7a<_0x597135[_0x4ea5('0x7a')];_0x275d7a++)_0x14679f(_0x597135[_0x275d7a],_0x597135,_0x275d7a+0x1);for(let _0x4d23e5=0x0;_0x4d23e5<_0x597135[_0x4ea5('0x7a')];_0x4d23e5++)_0x14679f(_0x597135[_0x4d23e5],_0x45c95d,0x0);const _0x4a33c9=new Set();for(let _0x466270=0x0;_0x466270<_0x597135[_0x4ea5('0x7a')];_0x466270++){const _0x16cee4=_0x597135[_0x466270];!_0x238996[_0x4ea5('0x151')](_0x16cee4)&&_0x16cee4[_0x4ea5('0x4d')]&&(_0x4a33c9[_0x4ea5('0x172')](_0x16cee4['previous']),_0x16cee4[_0x4ea5('0x4d')][_0x4ea5('0x173')]===_0x16cee4&&(_0x16cee4[_0x4ea5('0x4d')][_0x4ea5('0x173')]=null),_0x16cee4['previous']=null),!_0x3492d2['has'](_0x16cee4)&&_0x16cee4[_0x4ea5('0x173')]&&(_0x4a33c9[_0x4ea5('0x172')](_0x16cee4[_0x4ea5('0x173')]),_0x16cee4[_0x4ea5('0x173')][_0x4ea5('0x4d')]===_0x16cee4&&(_0x16cee4[_0x4ea5('0x173')][_0x4ea5('0x4d')]=null),_0x16cee4[_0x4ea5('0x173')]=null);}function _0x14679f(_0x4cd99b,_0x201197,_0x115df0){for(let _0x1e7a00=_0x115df0;_0x1e7a00<_0x201197[_0x4ea5('0x7a')];_0x1e7a00++){const _0x22ea50=_0xc5ecf3(_0x4cd99b,_0x201197[_0x1e7a00]);_0x22ea50&&(_0x22ea50[0x0]['next']=_0x22ea50[0x1],_0x22ea50[0x1][_0x4ea5('0x4d')]=_0x22ea50[0x0],_0x3492d2[_0x4ea5('0x172')](_0x22ea50[0x0]),_0x238996[_0x4ea5('0x172')](_0x22ea50[0x1]));}}function _0xc5ecf3(_0x413945,_0x1feaef){if(_0x413945[_0x4ea5('0x178')]['id']!==_0x1feaef[_0x4ea5('0x178')]['id'])return null;const _0x1e937f=_0x302635['get'](_0x413945)(_0x413945,_0x1feaef,_0x577cce[_0x4ea5('0x5f')](_0x413945),_0x577cce[_0x4ea5('0x5f')](_0x1feaef));if(!_0x1e937f)return null;return _0x302635[_0x4ea5('0x5f')](_0x1feaef)(_0x413945,_0x1feaef,_0x577cce[_0x4ea5('0x5f')](_0x413945),_0x577cce['get'](_0x1feaef))?_0x1e937f[0x1]['commentThread']&&_0x1e937f[0x1]['commentThread'][_0x4ea5('0x7a')]?null:_0x1e937f:null;}_0x4a33c9['size']&&this[_0x4ea5('0x54')](_0x4a33c9);}['_refreshAttributeSuggestionsChain'](_0x51d202){if(0x0==_0x51d202[_0x4ea5('0x7a')])return;const _0x3f4fbe=this[_0x4ea5('0x83')]({'skipNotAttached':!0x0})['filter'](_0x32a5b2=>_0x4ea5('0x32')==_0x32a5b2['type']&&_0x32a5b2['_isDataLoaded']),_0x2999a4=[],_0x36181f=new Map();for(const _0x3cc672 of _0x3f4fbe){const _0x3b7a8e=_0x4dbe2d(_0x3cc672[_0x4ea5('0x42')]);_0x36181f['has'](_0x3b7a8e)||(_0x36181f[_0x4ea5('0xe6')](_0x3b7a8e,_0x2999a4['length']),_0x2999a4[_0x4ea5('0x2f')]([]));const _0x38b801=_0x36181f[_0x4ea5('0x5f')](_0x3b7a8e);_0x2999a4[_0x38b801][_0x4ea5('0x2f')](_0x3cc672);}!function(){_0x2999a4[_0x4ea5('0xab')]((_0x4a8ffa,_0x3c981e)=>{const _0x3a6589=_0x4a8ffa[0x0]['createdAt'],_0x4000c4=_0x3c981e[0x0][_0x4ea5('0xdb')];return _0x3a6589==_0x4000c4?_0x4a8ffa[0x0][_0x4ea5('0x42')]['groupId']<_0x3c981e[0x0]['attributes']['groupId']?-0x1:0x1:_0x3a6589<_0x4000c4?-0x1:0x1;});for(const _0x2ade92 of _0x2999a4)_0x2ade92[_0x4ea5('0xab')]((_0x1d5889,_0x42c2a3)=>_0x1d5889['id']<_0x42c2a3['id']?-0x1:0x1);}();for(let _0x4e936e=0x0;_0x4e936e<_0x2999a4['length'];_0x4e936e++){if(0x0==_0x2999a4[_0x4e936e]['length'])continue;const _0x3f411b=[];for(let _0x253892=_0x4e936e+0x1;_0x253892<_0x2999a4[_0x4ea5('0x7a')];_0x253892++)0x0!=_0x2999a4[_0x253892][_0x4ea5('0x7a')]&&_0x5acc9c(_0x2999a4[_0x4e936e],_0x2999a4[_0x253892])&&_0x3f411b['push'](_0x253892);for(const _0x466676 of _0x3f411b)_0x2999a4[_0x4e936e]=_0x2999a4[_0x4e936e][_0x4ea5('0x16a')](_0x2999a4[_0x466676]),_0x2999a4[_0x466676]=[];}for(const _0xa90fde of _0x2999a4)for(let _0x1cc66d=0x0;_0x1cc66d<_0xa90fde[_0x4ea5('0x7a')];_0x1cc66d++)_0xa90fde[_0x1cc66d][_0x4ea5('0x173')]=_0xa90fde[_0x1cc66d+0x1]||null;for(const _0x308185 of _0x2999a4)for(let _0x5a5c7d=0x0;_0x5a5c7d<_0x308185[_0x4ea5('0x7a')];_0x5a5c7d++)_0x308185[_0x5a5c7d][_0x4ea5('0x4d')]=_0x308185[_0x5a5c7d-0x1]||null;function _0x5acc9c(_0x326f55,_0x572a8c){if(_0x326f55[0x0][_0x4ea5('0x42')][_0x4ea5('0x15')]!==_0x572a8c[0x0][_0x4ea5('0x42')][_0x4ea5('0x15')]&&_0x326f55[0x0][_0x4ea5('0x178')]!==_0x572a8c[0x0][_0x4ea5('0x178')])return!0x1;if(!function(_0x39ceaf,_0x65a7b){if(!_0x39ceaf[_0x4ea5('0x112')]&&!_0x65a7b[_0x4ea5('0x112')])return!0x0;if(_0x39ceaf[_0x4ea5('0x112')]&&_0x65a7b[_0x4ea5('0x112')])return!0x1;if(_0x39ceaf[_0x4ea5('0x112')]&&_0x65a7b[_0x4ea5('0xdb')]<_0x39ceaf[_0x4ea5('0x38')]['comments'][_0x4ea5('0x5f')](0x0)[_0x4ea5('0xdb')])return!0x0;if(_0x65a7b[_0x4ea5('0x112')]&&_0x39ceaf[_0x4ea5('0xdb')]<_0x65a7b[_0x4ea5('0x38')]['comments'][_0x4ea5('0x5f')](0x0)['createdAt'])return!0x0;return!0x1;}(_0x326f55[0x0],_0x572a8c[0x0]))return!0x1;const _0x585483=_0x34703e(_0x326f55[0x0]['attributes'],_0x4ea5('0x15')),_0x446250=_0x34703e(_0x572a8c[0x0][_0x4ea5('0x42')],_0x4ea5('0x15'));if(!_0x1bfb70(_0x585483,_0x446250))return!0x1;return!!_0x326f55['every'](_0x468913=>_0x572a8c['some'](_0x81bf85=>_0x468913[_0x4ea5('0x50')]()[_0x4ea5('0xb')](_0x81bf85[_0x4ea5('0x50')]())))&&_0x572a8c[_0x4ea5('0x7c')](_0x22005f=>_0x326f55[_0x4ea5('0x16c')](_0x48f912=>_0x22005f[_0x4ea5('0x50')]()[_0x4ea5('0xb')](_0x48f912[_0x4ea5('0x50')]())));}}['_joinWithAdjacentSuggestions'](_0x648a3){const _0xdcf93a=Array[_0x4ea5('0x39')](_0x648a3),_0x52e92b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x12b402=_0x52e92b[_0x4ea5('0x36')](_0x529544=>!_0x648a3[_0x4ea5('0x151')](_0x529544)),_0xf69679=new Map(_0xdcf93a[_0x4ea5('0x97')](_0x52a45e=>[_0x52a45e,this[_0x4ea5('0x10f')][_0x4ea5('0x3f')](_0x52a45e[_0x4ea5('0xc0')],_0x52a45e[_0x4ea5('0xbe')],_0x4ea5('0x43'))])),_0x28efd3=new Map(_0x52e92b[_0x4ea5('0x97')](_0x47a26f=>[_0x47a26f,_0x47a26f['getRanges']()]));for(let _0x4b6e0a=0x0;_0x4b6e0a<_0xdcf93a['length'];_0x4b6e0a++){if(_0x5b0f2e(this,_0xdcf93a[_0x4b6e0a],_0xdcf93a,_0x4b6e0a+0x1))return!0x0;}for(let _0x24c37c=0x0;_0x24c37c<_0xdcf93a[_0x4ea5('0x7a')];_0x24c37c++){if(_0x5b0f2e(this,_0xdcf93a[_0x24c37c],_0x12b402,0x0))return!0x0;}return!0x1;function _0x5b0f2e(_0x551b6f,_0x3c60f5,_0x48b21,_0x5c372b){for(let _0x2c87bd=_0x5c372b;_0x2c87bd<_0x48b21[_0x4ea5('0x7a')];_0x2c87bd++){const _0x289c89=_0x48b21[_0x2c87bd];if(_0x289c89[_0x4ea5('0xc0')]!==_0x3c60f5[_0x4ea5('0xc0')]||_0x289c89[_0x4ea5('0x178')]['id']!==_0x3c60f5['author']['id']||_0x289c89[_0x4ea5('0xbe')]!==_0x3c60f5['subType'])continue;if(!Ft(_0x3c60f5,_0x289c89,[_0x4ea5('0x15')]))continue;if('attribute'==_0x3c60f5[_0x4ea5('0xc0')]&&_0x3c60f5[_0x4ea5('0x1e')][_0x4ea5('0xb4')]!=_0x289c89[_0x4ea5('0x1e')][_0x4ea5('0xb4')])continue;if(_0x4ea5('0x32')==_0x3c60f5['type']&&_0x551b6f[_0x4ea5('0x61')](_0x3c60f5[_0x4ea5('0x1e')]['key']))continue;if(_0x4ea5('0xe2')==_0x3c60f5[_0x4ea5('0xc0')]){const _0x5cef56=_0x551b6f[_0x4ea5('0xdd')][_0x4ea5('0xf2')],_0x1b1ba5=_0x3c60f5[_0x4ea5('0x6e')]();if(_0x1b1ba5&&(_0x5cef56[_0x4ea5('0x174')]['isObject'](_0x1b1ba5)||_0x5cef56[_0x4ea5('0x174')]['isLimit'](_0x1b1ba5)))continue;}const _0x44f5d1=_0xf69679[_0x4ea5('0x5f')](_0x3c60f5),_0x3443d8=_0x28efd3['get'](_0x3c60f5),_0x32c681=_0x28efd3[_0x4ea5('0x5f')](_0x289c89),_0x228b49=_0x3c60f5[_0x4ea5('0x38')]&&_0x3c60f5[_0x4ea5('0x38')][_0x4ea5('0x7a')],_0x55a522=_0x289c89[_0x4ea5('0x38')]&&_0x289c89[_0x4ea5('0x38')][_0x4ea5('0x7a')];if(!_0x228b49&&_0x44f5d1(_0x32c681,_0x3443d8))return _0x551b6f[_0x4ea5('0x6d')](_0x289c89,_0x3c60f5),_0x28efd3['delete'](_0x3c60f5),!0x0;if(!_0x55a522&&_0x44f5d1(_0x3443d8,_0x32c681))return _0x551b6f[_0x4ea5('0x6d')](_0x3c60f5,_0x289c89),_0x28efd3[_0x4ea5('0x3')](_0x289c89),!0x0;}return!0x1;}}[_0x4ea5('0x6d')](_0x52bd50,_0x1f8f41){if(_0x52bd50['isMultiRange'])for(const _0x3b0028 of _0x1f8f41[_0x4ea5('0x85')]())_0x52bd50[_0x4ea5('0x2d')](_0x3b0028);else{const _0xc0d37d=_0x1f8f41[_0x4ea5('0x50')]()[_0x4ea5('0xfd')];this[_0x4ea5('0xef')](_0x52bd50,this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x52bd50[_0x4ea5('0x50')]()[_0x4ea5('0x16d')],_0xc0d37d));}_0x1f8f41['removeMarkers']();}[_0x4ea5('0x57')](_0x3ff9c0,_0x193887){const _0x236457=_0x3ff9c0[_0x4ea5('0x69')](_0x4ea5('0xaf'))||_0x3ff9c0[_0x4ea5('0x69')](_0x4ea5('0x32'))?'FORMATTING':_0x3ff9c0['toUpperCase']();return _0x15cb77(this['editor']['locale'],_0x193887+'_'+_0x236457+'_SUGGESTION_ANNOUNCEMENT');}[_0x4ea5('0xf6')](){const _0x755e7a=this['editor'];_0x35cb50(this['_model'],({left:_0x364e84,entered:_0x24c6ec})=>{const _0x1b1891=[];for(const _0x410a95 of _0x364e84){const {group:_0x15c92e,type:_0xc8d15b}=this[_0x4ea5('0x10')](_0x410a95[_0x4ea5('0x117')]);if(_0x4ea5('0x162')===_0x15c92e){_0x1b1891['push'](this[_0x4ea5('0x57')](_0xc8d15b,'LEAVE'));break;}}for(const _0x9cb13e of _0x24c6ec){const {group:_0x33f7a1,type:_0x1a60b2}=this['_splitMarkerName'](_0x9cb13e[_0x4ea5('0x117')]);if(_0x4ea5('0x162')===_0x33f7a1){_0x1b1891['push'](this[_0x4ea5('0x57')](_0x1a60b2,_0x4ea5('0xc5')));break;}}_0x1b1891[_0x4ea5('0x7a')]&&_0x755e7a['ui'][_0x4ea5('0x109')][_0x4ea5('0xd7')](_0x4ea5('0xc4'),_0x1b1891[_0x4ea5('0x43')]('\x20'));});}[_0x4ea5('0x46')](_0x5c919d){if(this[_0x4ea5('0x74')])return!0x1;const _0x36148a=this['editor'],_0x35c207=_0x36148a[_0x4ea5('0xf2')][_0x4ea5('0xe5')][_0x4ea5('0x15f')][_0x4ea5('0xbc')]();if(0x0==_0x35c207[_0x4ea5('0x7a')])return!0x1;const _0x7789a2=[],_0x2f8bfb=_0x35c207['filter'](_0xc729a5=>_0x4ea5('0x32')==_0xc729a5[_0x4ea5('0xc0')]),_0x18895b=_0x35c207[_0x4ea5('0x36')](_0x574fa8=>_0x4ea5('0xf5')==_0x574fa8[_0x4ea5('0xc0')]&&_0x4ea5('0x9f')!=_0x574fa8[_0x4ea5('0x117')]),_0x59186b=_0x35c207[_0x4ea5('0x36')](_0x2f6a1e=>_0x4ea5('0x78')==_0x2f6a1e[_0x4ea5('0xc0')]&&_0x4ea5('0x9f')!=_0x2f6a1e[_0x4ea5('0x117')]);for(const _0x1e3341 of _0x2f8bfb)_0x7789a2['push']({'key':_0x1e3341[_0x4ea5('0x7e')],'newValue':_0x1e3341[_0x4ea5('0x41')],'oldValue':_0x1e3341['attributeOldValue'],'range':Ut(_0x1e3341['range'],_0x36148a['model'])});for(const _0x26f2ab of _0x18895b){const _0x5c40ed=_0x59186b[_0x4ea5('0x51')](_0x3cbdad=>_0x3cbdad[_0x4ea5('0x56')][_0x4ea5('0xb')](_0x26f2ab[_0x4ea5('0x56')]));_0x5c40ed&&_0x7789a2[_0x4ea5('0x2f')]({'key':_0x4ea5('0x16'),'newValue':_0x26f2ab[_0x4ea5('0x117')],'oldValue':_0x5c40ed['name'],'range':_0x36148a[_0x4ea5('0xf2')][_0x4ea5('0x146')](_0x26f2ab[_0x4ea5('0x56')][_0x4ea5('0xa')])});}return 0x0!=_0x7789a2[_0x4ea5('0x7a')]&&this[_0x4ea5('0x148')](_0x5c919d,_0x7789a2);}['_processAttributeSuggestions'](_0x4f76d7){let _0xa8e87b=!0x1;const _0x1cc2c1=this['editor']['model']['document']['differ']['getChangedMarkers']()[_0x4ea5('0x36')](_0x366522=>_0x366522[_0x4ea5('0x1e')][_0x4ea5('0x143')]&&_0x366522[_0x4ea5('0x117')][_0x4ea5('0x69')](_0x4ea5('0x27')));for(const _0x570a9b of _0x1cc2c1){const {subType:_0x2ec26d,id:_0x30b32d}=this[_0x4ea5('0x10')](_0x570a9b['name']),_0x2f1d22=_0x2ec26d['split']('|')[0x0];for(const _0x4c2188 of this[_0x4ea5('0x83')]({'skipNotAttached':!0x0}))_0x4c2188['id']!=_0x30b32d&&'attribute'==_0x4c2188[_0x4ea5('0xc0')]&&_0x4c2188[_0x4ea5('0x1e')]&&_0x4c2188[_0x4ea5('0x1e')][_0x4ea5('0x4a')]==_0x2f1d22&&_0x4c2188['getFirstRange']()[_0x4ea5('0x11d')](_0x570a9b[_0x4ea5('0x1e')][_0x4ea5('0x143')])&&(this['_reduceSuggestionAttributeRange'](_0x4c2188,_0x570a9b['data'][_0x4ea5('0x143')],_0x4f76d7),_0xa8e87b=!0x0);}return _0xa8e87b;}[_0x4ea5('0x131')](_0x50a62b){this[_0x4ea5('0xdd')],(this['_recordAttributeSuggestions']=!0x0,_0x50a62b());}['_isRegisteredAttribute'](_0x122de2){const _0x2ad254=this[_0x4ea5('0x61')](_0x122de2),_0x1e0ce7=this['_inlineAttributeKeys'][_0x4ea5('0x151')](_0x122de2);return _0x2ad254||_0x1e0ce7;}[_0x4ea5('0x148')](_0x1814a8,_0x1a9353){if(0x0==_0x1a9353[_0x4ea5('0x7a')])return!0x1;let _0x19ee38=!0x1;for(const _0x5122a9 of _0x1a9353){const _0x3ee935=this[_0x4ea5('0x9e')](_0x5122a9[_0x4ea5('0x6a')],_0x4ea5('0x32'))[_0x4ea5('0x36')](_0x23c399=>!_0x23c399['meta']['isNextTo'])[_0x4ea5('0x97')](_0x57a0c9=>_0x57a0c9[_0x4ea5('0x162')]),_0x434149=_0x4dbe2d({'newValue':_0x5122a9['newValue']});_0x3ee935[_0x4ea5('0x36')](_0x3c3b86=>{const [_0x334bd2,_0x201175]=_0x3c3b86[_0x4ea5('0xbe')]['split']('|');return _0x334bd2==_0x5122a9[_0x4ea5('0x4a')]&&_0x201175!=_0x434149;})[_0x4ea5('0x19')](_0x4640fa=>{this[_0x4ea5('0x126')](_0x4640fa,_0x5122a9['range'],_0x1814a8),_0x19ee38=!0x0;});}return _0x19ee38;}[_0x4ea5('0x126')](_0x4b17b2,_0x542777,_0x55ea4a){const _0x5bb9cd=_0x4b17b2['getFirstRange']()[_0x4ea5('0xb1')](_0x542777);0x0!==_0x5bb9cd[_0x4ea5('0x7a')]?0x1!==_0x5bb9cd[_0x4ea5('0x7a')]?this['_breakSuggestionMarker'](_0x4b17b2,_0x542777[_0x4ea5('0x16d')],_0x542777[_0x4ea5('0xfd')]):this['_setSuggestionRange'](_0x4b17b2,_0x5bb9cd[0x0]):_0x55ea4a[_0x4ea5('0xf')](_0x4b17b2[_0x4ea5('0x10c')]());}}class Bt{constructor(_0xf017a6){this[_0x4ea5('0xd4')]=_0xf017a6,this[_0x4ea5('0x10b')]=_0xf017a6[_0x4ea5('0xf2')],this[_0x4ea5('0x5d')]=new Map(),this[_0x4ea5('0x10e')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4ea5('0x31')](_0x50f6,_0xe5f56f,_0x50c762,_0x5a2b62,_0x416d8c,_0x59e88c){return new _0x27c3d7(this[_0x4ea5('0x10b')],{'type':_0x50f6,'subType':_0xe5f56f,'id':_0x50c762,'author':_0x5a2b62,'creator':_0x5a2b62,'attributes':_0x416d8c,'onAttributesChange':_0x59e88c,'onAccept':(..._0x5ac6bf)=>this['getSuggestionCallback'](_0x50f6,_0xe5f56f,_0x4ea5('0x142'))(..._0x5ac6bf),'onDiscard':(..._0x59da45)=>this[_0x4ea5('0x3f')](_0x50f6,_0xe5f56f,'discard')(..._0x59da45)});}[_0x4ea5('0x159')](_0x10ca77,_0x418015,_0x20d221,_0x22b5be){const _0xeabcee=_0x10ca77+':'+_0x418015+':'+_0x20d221;this['_customCallbacks'][_0x4ea5('0xe6')](_0xeabcee,_0x22b5be);}[_0x4ea5('0x3f')](_0x36f74b,_0x1afc0a,_0x362152){const _0x4dcd6c=_0x36f74b+':'+_0x1afc0a+':'+_0x362152;return this['_customCallbacks']['get'](_0x4dcd6c)||this[_0x4ea5('0x10e')]['get'](_0x36f74b+':'+_0x362152);}[_0x4ea5('0x12')](){const _0x2bcfb3=()=>!0x1,_0x3d9a5c=_0x38321e=>{_0x38321e[_0x4ea5('0xab')]((_0x9254a5,_0x130c42)=>_0x9254a5['start'][_0x4ea5('0x76')](_0x130c42[_0x4ea5('0x16d')])?0x1:-0x1),this[_0x4ea5('0x10b')]['change'](_0x171b2f=>{for(const _0x171dd7 of _0x38321e){let _0x20b79c;_0x20b79c=_0x171dd7[_0x4ea5('0xfd')][_0x4ea5('0x163')]&&_0x171dd7[_0x4ea5('0xfd')][_0x4ea5('0x9b')]==_0x171dd7[_0x4ea5('0x16d')][_0x4ea5('0xa')]?_0x171b2f[_0x4ea5('0x70')](_0x171dd7[_0x4ea5('0x16d')][_0x4ea5('0xa')],'on'):_0x171b2f[_0x4ea5('0x70')](_0x171dd7),this[_0x4ea5('0x10b')]['deleteContent'](_0x20b79c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4a4f18=(_0x4d8b7d,_0x7537f7)=>{_0x7537f7&&this[_0x4ea5('0x10b')][_0x4ea5('0x12c')](_0x43565e=>{const {commandName:_0x51a209,commandParams:_0x1fb0fd=[]}=_0x7537f7,_0x5de11e=_0x4d8b7d[_0x4ea5('0x97')](_0x5d86c8=>(Rt(_0x5d86c8)&&(_0x5d86c8=this[_0x4ea5('0x10b')][_0x4ea5('0x5e')](_0x5d86c8[_0x4ea5('0xfd')])),_0x5d86c8))[_0x4ea5('0x36')](_0x58792e=>_0x4ea5('0x34')!==_0x58792e['root'][_0x4ea5('0xf1')]);if(_0x5de11e['length']<0x1)return;const _0x378067=Array[_0x4ea5('0x39')](this[_0x4ea5('0x10b')][_0x4ea5('0xe5')][_0x4ea5('0x49')][_0x4ea5('0x85')]())[_0x4ea5('0x97')](_0x33134a=>_0x314c43[_0x4ea5('0x161')](_0x33134a));_0x43565e['setSelection'](_0x5de11e);for(const _0x2c66d9 of this['_editor'][_0x4ea5('0x123')][_0x4ea5('0x123')]())_0x2c66d9[_0x4ea5('0xdc')]();_0x1fb0fd[_0x4ea5('0x2f')]({'forceDefaultExecution':!0x0}),this[_0x4ea5('0xd4')][_0x4ea5('0xd9')](_0x51a209,..._0x1fb0fd);const _0x50c141=_0x378067[_0x4ea5('0x36')](_0x5180a5=>_0x4ea5('0x34')!=_0x5180a5['root']['rootName']);_0x50c141[_0x4ea5('0x7a')]>0x0&&_0x43565e[_0x4ea5('0xe7')](_0x50c141);for(const _0x427ed0 of _0x378067)_0x427ed0['detach']();});},_0x2e9b2c=(_0x189bce,_0x168823)=>0x1==_0x189bce[_0x4ea5('0x7a')]&&0x1==_0x168823['length']&&_0x189bce[0x0][_0x4ea5('0xfd')][_0x4ea5('0xb')](_0x168823[0x0][_0x4ea5('0x16d')]),_0x399ad6=(_0x26d017,_0x4382f0,_0x2a55f3,_0x401449)=>Gt(_0x26d017,_0x4382f0,_0x2a55f3,_0x401449,this['_model'])?[_0x26d017,_0x4382f0]:Gt(_0x4382f0,_0x26d017,_0x401449,_0x2a55f3,this[_0x4ea5('0x10b')])?[_0x4382f0,_0x26d017]:null;this[_0x4ea5('0x10e')][_0x4ea5('0xe6')](_0x4ea5('0xaa'),_0x2bcfb3),this[_0x4ea5('0x10e')][_0x4ea5('0xe6')](_0x4ea5('0x119'),_0x3d9a5c),this[_0x4ea5('0x10e')][_0x4ea5('0xe6')]('insertion:join',_0x2e9b2c),this['_defaultCallbacks']['set'](_0x4ea5('0xb8'),_0x399ad6),this[_0x4ea5('0x10e')][_0x4ea5('0xe6')](_0x4ea5('0x68'),_0x3d9a5c),this['_defaultCallbacks'][_0x4ea5('0xe6')]('deletion:discard',_0x2bcfb3),this['_defaultCallbacks'][_0x4ea5('0xe6')](_0x4ea5('0x5a'),_0x2e9b2c),this[_0x4ea5('0x10e')][_0x4ea5('0xe6')](_0x4ea5('0x6b'),_0x399ad6),this['_defaultCallbacks'][_0x4ea5('0xe6')](_0x4ea5('0x157'),_0x4a4f18),this[_0x4ea5('0x10e')][_0x4ea5('0xe6')](_0x4ea5('0xfa'),_0x2bcfb3),this['_defaultCallbacks'][_0x4ea5('0xe6')](_0x4ea5('0x6f'),_0x2e9b2c),this[_0x4ea5('0x10e')][_0x4ea5('0xe6')](_0x4ea5('0x7'),_0x2bcfb3),this['_defaultCallbacks'][_0x4ea5('0xe6')](_0x4ea5('0xd1'),_0x4a4f18),this['_defaultCallbacks'][_0x4ea5('0xe6')](_0x4ea5('0x12f'),_0x2bcfb3),this[_0x4ea5('0x10e')][_0x4ea5('0xe6')](_0x4ea5('0x4f'),_0x2e9b2c),this[_0x4ea5('0x10e')][_0x4ea5('0xe6')](_0x4ea5('0xa1'),_0x2bcfb3),this[_0x4ea5('0x10e')]['set']('attribute:accept',_0x2bcfb3),this[_0x4ea5('0x10e')]['set'](_0x4ea5('0x12b'),(_0x4a610d,_0x10acdc)=>{if(!_0x10acdc)return;const _0x23caf5=this[_0x4ea5('0xd4')][_0x4ea5('0x20')][_0x4ea5('0x5f')](p);this[_0x4ea5('0x10b')][_0x4ea5('0x12c')](_0x276155=>{if('$elementName'==_0x10acdc[_0x4ea5('0x4a')])for(const _0x5d3891 of _0x4a610d){const _0x102676=_0x5d3891[_0x4ea5('0x16d')]['nodeAfter'],_0x4f0407=_0x10acdc[_0x4ea5('0xb4')];_0x276155[_0x4ea5('0x140')](_0x102676,_0x4f0407);}else{if(_0x23caf5[_0x4ea5('0x61')](_0x10acdc['key']))for(const _0x2ed45f of _0x4a610d)void 0x0!==_0x10acdc[_0x4ea5('0xb4')]?_0x276155[_0x4ea5('0x13f')](_0x10acdc[_0x4ea5('0x4a')],_0x10acdc['oldValue'],_0x2ed45f[_0x4ea5('0x16d')][_0x4ea5('0xa')]):_0x276155[_0x4ea5('0xe8')](_0x10acdc[_0x4ea5('0x4a')],_0x2ed45f['start'][_0x4ea5('0xa')]);else for(const _0x169d34 of _0x4a610d)_0x10acdc[_0x4ea5('0xb4')]?_0x276155[_0x4ea5('0x13f')](_0x10acdc[_0x4ea5('0x4a')],_0x10acdc[_0x4ea5('0xb4')],_0x169d34):_0x276155[_0x4ea5('0xe8')](_0x10acdc[_0x4ea5('0x4a')],_0x169d34);}});}),this[_0x4ea5('0x10e')]['set']('attribute:join',_0x2e9b2c);}}function xt(_0x41e512,_0x387062,_0x41fe84){for(const _0x4f3f79 of _0x387062[_0x4ea5('0x9b')][_0x4ea5('0x4e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f3f79[_0x4ea5('0x65')]==_0x4f3f79)return!0x1;if(!_0x41fe84[_0x4ea5('0x110')](_0x4f3f79))return!0x1;if(_0x41e512['isObject'](_0x4f3f79)||_0x41e512[_0x4ea5('0x135')](_0x4f3f79))return!0x0;}return!0x1;}function Rt(_0x462fb){return _0x462fb['end'][_0x4ea5('0x9b')]==_0x462fb['start'][_0x4ea5('0xa')]&&_0x462fb[_0x4ea5('0xfd')][_0x4ea5('0xd0')];}function Tt(_0x2254f8,_0x39b789,_0x390d7c,_0x310f5a){const _0x5617cf=_0x3f8265=>!_0x3f8265[_0x4ea5('0x11c')]['is'](_0x4ea5('0xec'))&&!_0x310f5a[_0x4ea5('0x90')](_0x3f8265['item']),_0x514dec=_0x2254f8[_0x4ea5('0x16d')][_0x4ea5('0x9a')](_0x5617cf),_0x36499c=_0x2254f8[_0x4ea5('0xfd')][_0x4ea5('0x9a')](_0x5617cf,{'direction':'backward'});return(!_0x2254f8[_0x4ea5('0x16d')]['isEqual'](_0x514dec)||!_0x2254f8[_0x4ea5('0xfd')]['isEqual'](_0x36499c))&&(_0x514dec[_0x4ea5('0x76')](_0x36499c)?_0x390d7c[_0x4ea5('0x16e')](_0x39b789,{'range':_0x390d7c['createRange'](_0x514dec,_0x36499c)}):_0x390d7c[_0x4ea5('0xf')](_0x39b789),!0x0);}function Et(_0x2c4836){return _0x4dbe2d(_0x2c4836);}function Vt(_0x512984){const _0x25ed80=_0x512984[_0x4ea5('0x16d')][_0x4ea5('0xa')];return _0x25ed80&&_0x25ed80['is'](_0x4ea5('0xa2'));}function Ut(_0x4d8b20,_0x2213e9){return null==_0x4d8b20['end'][_0x4ea5('0x84')]&&_0x4d8b20[_0x4ea5('0xfd')][_0x4ea5('0x9b')]==_0x4d8b20[_0x4ea5('0x16d')][_0x4ea5('0xa')]?Ot(_0x4d8b20['start'][_0x4ea5('0xa')],_0x2213e9):_0x4d8b20;}function Ot(_0x4645ff,_0x302e08){const _0x583816=_0x302e08['schema'][_0x4ea5('0x90')](_0x4645ff)||_0x302e08['schema'][_0x4ea5('0xda')](_0x4645ff);return _0x302e08[_0x4ea5('0x5e')](_0x302e08[_0x4ea5('0x60')](_0x4645ff,_0x4ea5('0x12a')),_0x583816?_0x302e08['createPositionAfter'](_0x4645ff):_0x302e08[_0x4ea5('0x60')](_0x4645ff,'end'));}function Gt(_0x59a51c,_0x5c8763,_0x304d47,_0x43bfe4,_0x942a19){if(!Ft(_0x59a51c,_0x5c8763))return!0x1;if(_0x304d47['end'][_0x4ea5('0xb')](_0x43bfe4[_0x4ea5('0x16d')]))return!0x0;if(_0x59a51c[_0x4ea5('0xc0')]!=_0x5c8763['type'])return!0x1;if(!_0x304d47[_0x4ea5('0xfd')][_0x4ea5('0x150')](_0x43bfe4['start']))return!0x1;const _0xf2dddc=_0x942a19[_0x4ea5('0x5e')](_0x304d47[_0x4ea5('0xfd')],_0x43bfe4[_0x4ea5('0x16d')])[_0x4ea5('0x147')]();for(const _0x5a984c of _0xf2dddc)if(['elementStart',_0x4ea5('0x22')]['includes'](_0x5a984c[_0x4ea5('0xc0')])&&_0x942a19[_0x4ea5('0x174')]['isLimit'](_0x5a984c[_0x4ea5('0x11c')]))return!0x1;return!0x0;}function Ft(_0x32044b,_0x2d713d,_0x514b26=[]){return!(!_0x32044b['_isDataLoaded']||!_0x2d713d[_0x4ea5('0x177')])&&_0x1bfb70(_0x34703e(_0x32044b['attributes'],_0x514b26),_0x34703e(_0x2d713d[_0x4ea5('0x42')],_0x514b26));}function Pt(_0x4ce80f,_0x3e0d2c){const _0x5a9d06=Lt(_0x4ce80f['attributes']),_0x1b0dc0=Lt(_0x3e0d2c);if(!_0x4ce80f[_0x4ea5('0x177')])return!0x1;for(const _0xd56add of Object[_0x4ea5('0x1d')](_0x1b0dc0))if(!_0x1bfb70(_0x5a9d06[_0xd56add],_0x1b0dc0[_0xd56add]))return!0x1;return!0x0;}function Lt(_0x20fb39){const _0x2323a4=Object[_0x4ea5('0x115')]({},_0x20fb39);return delete _0x2323a4[_0x4ea5('0xd2')],delete _0x2323a4[_0x4ea5('0xfe')],_0x2323a4;}
|