@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240117.0 → 0.0.0-nightly-20240118.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 _0x463f=['attribute:join','forEach','getChangedMarkers','accept','update:suggestion','isBefore','isLocal','_getExternalAuthor','getLastMatchingPosition','deletion:chain','addMarker:suggestion:formatBlock','_descriptionFactory','reconvertMarker','getContainedElement','addSuggestionData','insertion:','marker-count','has','always','_afterChanges','removeMarker:suggestion:attribute','stop','set','_handleNewSuggestionMarker','markMultiRangeDeletion','execute','low','isInContent','registerPostFixer','_recordAttributeSuggestions','multipleBlocks','attributeKey','size','trackChanges.trackFormatChanges','containsRange','enableCommand','parent','markerToData','_setSuggestionData','attributeNewValue','commentThread','multi','_getMarkerAnnouncementText','insertion:chain','acceptAllSuggestions','skipNestingCheck','track-changes-adapter-already-set','getSuggestionCallback','editing','isSelectable','clear','push','deleteContent','$elementName','CommentsRepository','markInlineFormat','change:data','length','acceptSelectedSuggestions','markMultiRangeInsertion','createRangeIn','deletion:accept','ck-suggestion-marker-formatBlock','track-changes-adapter-missing-getsuggestion','getChanges','listenTo','selection','showSuggestionHighlights','_saved','isRemovable','markerNameToElements','deletion:','toJSON','getFirstRange','getCustomProperty','editingDowncast','fire','open','addClass','_recordAttributeChanges','split','_suggestions','value','find','discard','_enabledCommands','ck-suggestion-marker-formatInline','applyOperation','addHighlight','isNextTo','writer','_addThreadToSuggestion','trackChanges.mergeNestedSuggestions','isUndo','before','schema','attributes','define','range','enqueueChange','getMultiRangeId','change','clone','sort','mapper','addCommentThread','map','attributeOldValue','values','author','high','differ','insertContent','isInsideObject','delete','_isDataLoaded','authoredAt','$text','formatBlock:accept','formatInline:discard','markerName','_rangeIsInLocalUserInsertion','oldValue','_cutOutSuggestionMarker','formatBlock:','_inlineAttributeKeys','_registerInlineAttribute','suggestion','hasSuggestion','deletion:discard','_processAttributeChanges','suggestionUnloaded','createElement','conversion','hasComments','_refreshAttributeSuggestionsChain','insert','getSuggestions','_splitMarkerName','trackChangesCommand','commands','Users','pluginName','formatInline:','discardSuggestion','bindElementToMarker','addComment','ck-suggestion-marker--active','addUser','_isBlockAttribute','default','_suggestionState','every','_suggestionFactory','item','remove','editor','updateSuggestion','getItems','keys','getCommentThread','lowest','ck-suggestion-marker-','position','isLimit','_reduceSuggestionAttributeRange','commandName','_commentsRepository','suggestion-type','newRange','announce','formatInline:chain','previous','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.','some','external:','removeClass','data-suggestion','isOwn','_createSuggestion','resolve','formatBlock:join','removeComment','_editor','highest','_getAuthorFromId','detach','deletion:join','_model','markers','markerReady','createRange','howMany','containsItem','_registerDefaultCallbacks','refresh','removeMarkers','isAtStart','containsPosition','getAllAdjacentSuggestions','targetPosition','addRange','element','type','addMarker:suggestion:attribute','formatGroupId','activeMarkers','hasCommentThread','track-changes-user-not-found','getNearestSelectionRange','markInsertion','@external','forward','unbind','start','unshift','unbindElementFromMarkerName','nodeAfter','formatInline:join','elementEnd','fromCharCode','next','batch','isBlock','insertion:join','return','_getSuggestionData','track-changes-suggestion-data-mismatch','root','_initAriaMarkerChangeAnnouncements','documentSelection','notReady','widget','_addSuggestionMarker','substring','config','plugins','setSelection','groupId','never','newValue','_customCallbacks','upcast','_SUGGESTION_ANNOUNCEMENT','consume','acceptSuggestion','name','assign','locale','rethrowUnexpectedError','registerCustomCallback','change:activeMarkers','nodeBefore','filter','createdAt','createPositionBefore','_isRegisteredAttribute','adapter','isCollapsed','getSuggestion','_joinWithAdjacentSuggestions','normal','markBlockFormat','isAtEnd','getWalker','removeAttribute','suggestionLoaded','markAttributeChange','chain','isAfter','$textProxy','$marker','createSelection','for','formatBlock:discard','from','_findSuggestions','consumable','ready','init','includes','warn','attribute:accept','addSuggestion','isObject','_reduceExistingSuggestions','rootName','isExternal','_processAttributeSuggestions','formatInline','_removeSuggestion','_defaultCallbacks','accepted','options','$graveyard','model','trackChanges','suggestion:','isEqual','dataReady','getAttribute','removeMarker','isIntersecting','creator','_adapter','subType','isMultiRange','moveTargetPosition','_element','getDifference','fetchCommentThread','_getAttributeKey','_setSuggestionRange','toViewElement','getRanges','_joinSuggestions','insertion','markMultiRangeBlockFormat','add','formatBlock:chain','createPositionAt','getShiftedBy','end','suggestionChanged','_trackFormatChanges','after','_onDiscard','PendingActions','ck-suggestion-marker','setTo','getIntersection','_breakSuggestionMarker','splitPosition','updateMarker','group','document','formatBlock','attribute','dataToMarker','ENTER','discardSelectedSuggestions','dataDowncast','removeMarker:suggestion:formatBlock','elementToElement','addMarker:suggestion','_enableDefaultAttributesIntegration','get','insertion:discard','addMarker','comments','_blockAttributeKeys','head','getFirstMarker','containsRangeInObject','_isForcedDefaultExecutionBlock','_updateSuggestionData','join','_mergeNestedSuggestions','isIntersectingWithRange','TrackChangesEditing','PENDING_ACTION_SUGGESTION','markerToHighlight','tablePasteChainId','key','deletion','track-changes-suggestion-not-found','getRange','discardAllSuggestions','pop','rename','LEAVE','startsWith','_refreshSuggestionsChain','rejected','containerElement','then','attribute:','isArray','buildSuggestion','removed','forceDefaultExecution','data','requires','setAttribute','_registerBlockAttribute','oldRange'];(function(_0x443091,_0x463f1e){const _0x16f5d0=function(_0x48ce34){while(--_0x48ce34){_0x443091['push'](_0x443091['shift']());}};_0x16f5d0(++_0x463f1e);}(_0x463f,0x75));const _0x16f5=function(_0x443091,_0x463f1e){_0x443091=_0x443091-0x0;let _0x16f5d0=_0x463f[_0x443091];return _0x16f5d0;};import{Plugin as _0x3340ed,PendingActions as _0x1e4263}from'ckeditor5/src/core.js';import{LiveRange as _0x4110f1}from'ckeditor5/src/engine.js';import{CKEditorError as _0x37ee43,uid as _0x3ea536,priorities as _0x1b252a,logWarning as _0x32f996}from'ckeditor5/src/utils.js';import{toWidget as _0x494799}from'ckeditor5/src/widget.js';import{Users as _0x393920,hashObject as _0x4331a1,surroundingMarkersDetector as _0xafe9cd}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x30799d from'./commands/trackchangescommand.js';import _0x100d08 from'./commands/acceptsuggestioncommand.js';import _0x157d79 from'./commands/discardsuggestioncommand.js';import _0x42779c from'./commands/executeonallsuggestionscommand.js';import _0xadb2f8 from'./commands/executeonselectedsuggestionscommand.js';import _0x2160f9 from'./suggestion.js';import _0x378a28 from'./suggestiondescriptionfactory.js';import _0x1998f2 from'./integrations/aiassistant.js';import _0x3b2190 from'./integrations/alignment.js';import _0x581814 from'./integrations/basicstyles.js';import _0x23ad48 from'./integrations/blockquote.js';import _0x85a355 from'./integrations/casechange.js';import _0x59aa7b from'./integrations/ckbox.js';import _0xe4014a from'./integrations/codeblock.js';import _0x3a418b from'./integrations/comments.js';import _0x4d2926 from'./integrations/deletecommand.js';import _0x178e63 from'./integrations/list.js';import _0x36f308 from'./integrations/listproperties.js';import _0xf8422d from'./integrations/entercommand.js';import _0x371f75 from'./integrations/findandreplace.js';import _0x56d09b from'./integrations/font.js';import _0x5af4d5 from'./integrations/formatpainter.js';import _0xc5f73 from'./integrations/heading.js';import _0x44527f from'./integrations/highlight.js';import _0x3f2d38 from'./integrations/horizontalline.js';import _0x300bf8 from'./integrations/htmlembed.js';import _0x2b02c6 from'./integrations/image.js';import _0x533302 from'./integrations/imagereplace.js';import _0x24ae78 from'./integrations/imagestyle.js';import _0x2e6542 from'./integrations/importword.js';import _0x5bd5fd from'./integrations/indent.js';import _0x809c40 from'./integrations/inputcommand.js';import _0x56ce7f from'./integrations/link.js';import _0x5d1372 from'./integrations/legacylist.js';import _0x2f5c41 from'./integrations/legacylistproperties.js';import _0x2f08ae from'./integrations/mediaembed.js';import _0x570bd6 from'./integrations/mention.js';import _0x5846e3 from'./integrations/pagebreak.js';import _0x21514e from'./integrations/paragraph.js';import _0x4e7753 from'./integrations/removeformat.js';import _0x277d40 from'./integrations/restrictededitingmode.js';import _0x534406 from'./integrations/shiftentercommand.js';import _0x1b78d7 from'./integrations/standardeditingmode.js';import _0x3ca21d from'./integrations/style.js';import _0x17c9be from'./integrations/table.js';import _0xea53eb from'./integrations/tablemergesplit.js';import _0x2e8b2c from'./integrations/tableheadings.js';import _0x307f16 from'./integrations/tableclipboard.js';import _0x3d7c31 from'./integrations/tablecolumnresize.js';import _0x115f78 from'./integrations/template.js';import _0x2f5947 from'./integrations/tableofcontents.js';import _0x3ef58a from'./integrations/title.js';import _0x5a904f from'./integrations/undo.js';import _0x2c81f0 from'./integrations/tablecaption.js';import _0x3d9b6e from'./integrations/tableproperties.js';import{getTranslation as _0x13ea0f}from'./utils/common-translations.js';import{isEqual as _0x5223db,omit as _0x41bede}from'lodash-es';export const renameAttributeKey=_0x16f5('0x142');export default class p extends _0x3340ed{static get[_0x16f5('0x109')](){return[_0x16f5('0x143'),_0x393920,_0x1e4263,_0x1998f2,_0x3b2190,_0x581814,_0x23ad48,_0x59aa7b,_0x85a355,_0xe4014a,_0x3a418b,_0x4d2926,_0xf8422d,_0x371f75,_0x56d09b,_0x5af4d5,_0xc5f73,_0x44527f,_0x3f2d38,_0x300bf8,_0x2b02c6,_0x24ae78,_0x533302,_0x2e6542,_0x5bd5fd,_0x809c40,_0x5d1372,_0x2f5c41,_0x56ce7f,_0x178e63,_0x36f308,_0x2f08ae,_0x570bd6,_0x5846e3,_0x21514e,_0x4e7753,_0x277d40,_0x534406,_0x1b78d7,_0x3ca21d,_0x17c9be,_0xea53eb,_0x2e8b2c,_0x2c81f0,_0x307f16,_0x3d7c31,_0x2f5947,_0x3d9b6e,_0x115f78,_0x3ef58a,_0x5a904f];}static get[_0x16f5('0x19')](){return _0x16f5('0xf2');}constructor(_0x28793b){function _0x4ffaab(_0x5dcc4a){return _0x5dcc4a[_0x16f5('0x177')](_0xbe47d1=>String[_0x16f5('0x67')](_0xbe47d1))[_0x16f5('0xef')]('');}super(_0x28793b),this['_recordAttributeSuggestions']=!0x1,this[_0x16f5('0x123')]('activeMarkers',[]),this['on'](_0x16f5('0x86'),(_0x4f0c19,_0x44d402,_0x11c7f5,_0x5b402f)=>{this[_0x16f5('0x47')][_0x16f5('0x172')](()=>{for(const _0x5c095c of[..._0x5b402f,..._0x11c7f5])this['_model'][_0x16f5('0x48')][_0x16f5('0x11e')](_0x5c095c)&&_0x28793b[_0x16f5('0x13d')][_0x16f5('0x119')](_0x5c095c);});}),this[_0x16f5('0x118')]=new _0x378a28(this[_0x16f5('0x27')][_0x16f5('0xb2')]['schema'],this[_0x16f5('0x27')][_0x16f5('0x83')]),this[_0x16f5('0xbb')]=null,this[_0x16f5('0x24')]=new Bt(this[_0x16f5('0x27')]),this[_0x16f5('0x15e')]=new Map(),this['_commentsRepository']=_0x28793b[_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x143')),this[_0x16f5('0x162')]=new Set(),this[_0x16f5('0x47')]=this['editor']['model'],this[_0x16f5('0x22')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this[_0x16f5('0xe9')]=new Set([_0x16f5('0x142')]),this[_0x16f5('0x8')]=new Set(),_0x28793b[_0x16f5('0x76')]['define'](_0x16f5('0x12e'),_0x16f5('0x21')),this[_0x16f5('0xcf')]=_0x28793b[_0x16f5('0x76')][_0x16f5('0xe5')](_0x16f5('0x12e')),_0x28793b[_0x16f5('0x76')][_0x16f5('0x16e')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x16f5('0xf0')]=_0x28793b[_0x16f5('0x76')][_0x16f5('0xe5')](_0x16f5('0x169')),this['trackChangesCommand']=new _0x30799d(_0x28793b,this[_0x16f5('0x162')]),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4ffaab([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4ffaab([0x34,0x30,0x34,0x38,0x30,0x32,0x33,0x34]);}[_0x16f5('0xa2')](){const _0x327000=this[_0x16f5('0x27')],_0xca8827=(_0x2cd00a,_0x1a91da)=>{if('attribute'!=_0x2cd00a)return _0x16f5('0x2d')+_0x2cd00a;const _0x4ac6a2=_0x1a91da[_0x16f5('0x15d')]('|')[0x0];return this['_isBlockAttribute'](_0x4ac6a2)?_0x16f5('0x14b'):_0x16f5('0x163');};_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')](_0x16f5('0x158'))[_0x16f5('0xf4')]({'model':_0x16f5('0xa'),'view':_0x4d544d=>{const {id:_0x3ee047,type:_0x37321a,subType:_0x4da1e3}=this[_0x16f5('0x15')](_0x4d544d[_0x16f5('0x3')]),_0x2f39d9=['ck-suggestion-marker',_0xca8827(_0x37321a,_0x4da1e3)];let _0xc81ed9=0xbb8;return this[_0x16f5('0x59')]['includes'](_0x4d544d['markerName'])&&(_0x2f39d9['push'](_0x16f5('0x1e')),_0xc81ed9=0xbc2),_0x16f5('0xf7')==_0x37321a&&(_0xc81ed9+=0x5),{'classes':_0x2f39d9,'attributes':{'data-suggestion':_0x3ee047},'priority':_0xc81ed9};}}),_0x327000[_0x16f5('0x10')]['for']('dataDowncast')[_0x16f5('0xc9')](_0x4cde6f=>{_0x4cde6f['on'](_0x16f5('0xe3'),(_0x2cb516,_0x5ca43b,_0x12eecc)=>{if(!_0x12eecc[_0x16f5('0xb0')][_0x16f5('0x150')])return;const _0x3a8630=_0x5ca43b[_0x16f5('0x25')];if(!_0x3a8630)return;const _0x29b1d3=_0x12eecc[_0x16f5('0x175')]['toViewElement'](_0x3a8630);_0x327000[_0x16f5('0xb2')][_0x16f5('0x16c')]['isObject'](_0x3a8630)&&_0x29b1d3&&!_0x29b1d3[_0x16f5('0x157')](_0x16f5('0x73'))&&_0x29b1d3['is'](_0x16f5('0x101'))&&_0x494799(_0x29b1d3,_0x12eecc[_0x16f5('0x167')]);},{'priority':_0x16f5('0x17b')});}),_0x327000['conversion'][_0x16f5('0x9c')](_0x16f5('0xe0'))[_0x16f5('0xf4')]({'model':_0x16f5('0xa'),'view':(_0x17ec8e,_0x254f6c)=>{if(!_0x254f6c[_0x16f5('0xb0')][_0x16f5('0x150')])return null;const {type:_0x4de1c1,subType:_0x3a02a3}=this[_0x16f5('0x15')](_0x17ec8e['markerName']);return{'classes':['ck-suggestion-marker',_0xca8827(_0x4de1c1,_0x3a02a3)],'priority':0xbb8};}});const _0x335bd=({showActiveMarkers:_0x3ee83f=!0x0,isAttributeSuggestion:_0x32215f=!0x1}={})=>(_0x189e87,_0x1eca11,_0x49ac4e)=>{if(!_0x1eca11[_0x16f5('0x25')])return;const {id:_0x2cbc9d}=this[_0x16f5('0x15')](_0x1eca11[_0x16f5('0x3')]);if(_0x32215f){const _0x4c2e7f=this['_suggestions']['get'](_0x2cbc9d),_0x181537=this['_getAttributeKey'](_0x4c2e7f);if(!this[_0x16f5('0x20')](_0x181537))return;}if(_0x1eca11[_0x16f5('0x25')]['is']('selection'))return void _0x49ac4e[_0x16f5('0xa0')][_0x16f5('0x7f')](_0x1eca11[_0x16f5('0x25')],_0x189e87[_0x16f5('0x81')]);const _0x596ded=_0x49ac4e[_0x16f5('0x175')][_0x16f5('0xc4')](_0x1eca11['item']);if(_0x1eca11[_0x16f5('0x25')]['is']('element')&&_0x327000[_0x16f5('0xb2')][_0x16f5('0x16c')][_0x16f5('0x6a')](_0x1eca11[_0x16f5('0x25')])&&!_0x596ded[_0x16f5('0x157')](_0x16f5('0x165'))){_0x49ac4e[_0x16f5('0x167')][_0x16f5('0x15b')]([_0x16f5('0xd3'),_0x16f5('0x14b')],_0x596ded),_0x49ac4e[_0x16f5('0x167')]['setAttribute'](_0x16f5('0x3c'),_0x2cbc9d,_0x596ded),_0x49ac4e[_0x16f5('0x175')][_0x16f5('0x1c')](_0x596ded,_0x1eca11[_0x16f5('0x3')]),_0x3ee83f&&(this[_0x16f5('0x59')]['includes'](_0x1eca11['markerName'])?_0x49ac4e[_0x16f5('0x167')][_0x16f5('0x15b')](_0x16f5('0x1e'),_0x596ded):_0x49ac4e[_0x16f5('0x167')][_0x16f5('0x3b')]('ck-suggestion-marker--active',_0x596ded));for(const _0x133334 of _0x327000[_0x16f5('0xb2')][_0x16f5('0x149')](_0x1eca11[_0x16f5('0x25')])[_0x16f5('0x29')]())_0x49ac4e['consumable'][_0x16f5('0x7f')](_0x133334,_0x189e87[_0x16f5('0x81')]);_0x49ac4e[_0x16f5('0xa0')][_0x16f5('0x7f')](_0x1eca11[_0x16f5('0x25')],_0x189e87[_0x16f5('0x81')]);}};_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')](_0x16f5('0xe0'))[_0x16f5('0xc9')](_0x2b5433=>{_0x2b5433['on']('addMarker:suggestion:formatBlock',(_0x500e42,_0x58b58e,_0x3f72ca)=>{_0x3f72ca[_0x16f5('0xb0')]['showSuggestionHighlights']&&_0x335bd({'showActiveMarkers':!0x1})(_0x500e42,_0x58b58e,_0x3f72ca);},{'priority':_0x16f5('0x43')});}),_0x327000['conversion'][_0x16f5('0x9c')](_0x16f5('0xe0'))[_0x16f5('0xc9')](_0x8cd9a8=>{_0x8cd9a8['on'](_0x16f5('0x57'),(_0x5cc9da,_0x8d5b01,_0x2a2f44)=>{_0x2a2f44['options'][_0x16f5('0x150')]&&_0x335bd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5cc9da,_0x8d5b01,_0x2a2f44);},{'priority':'highest'});}),_0x327000[_0x16f5('0x10')]['for'](_0x16f5('0xe0'))[_0x16f5('0x132')]({'model':'suggestion','view':(_0x18f7b1,_0x335292)=>_0x335292[_0x16f5('0xb0')][_0x16f5('0x150')]?null:{'group':_0x16f5('0xa'),'name':_0x18f7b1['substr'](0xb)}}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')](_0x16f5('0x7d'))[_0x16f5('0xe2')]({'view':{'name':_0x16f5('0xa'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x49e2e0,{writer:_0x2ef57e})=>{let _0x4dde2a=_0x16f5('0xb4')+_0x49e2e0['getAttribute'](_0x16f5('0x33'))+':'+_0x49e2e0[_0x16f5('0xb7')]('id');return _0x49e2e0[_0x16f5('0xb7')](_0x16f5('0x11d'))&&(_0x4dde2a+=':'+_0x49e2e0[_0x16f5('0xb7')](_0x16f5('0x11d'))),_0x2ef57e[_0x16f5('0xf')](_0x16f5('0x9a'),{'data-name':_0x4dde2a});}}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')]('upcast')[_0x16f5('0xdd')]({'view':'suggestion'}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')]('editingDowncast')[_0x16f5('0xc9')](_0x2b4efc=>{_0x2b4efc['on'](_0x16f5('0x117'),_0x335bd(),{'priority':_0x16f5('0x17b')});}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')](_0x16f5('0x158'))[_0x16f5('0xc9')](_0x49d259=>{_0x49d259['on']('addMarker:suggestion:attribute',_0x335bd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')]('editingDowncast')[_0x16f5('0xc9')](_0x2a55c2=>{_0x2a55c2['on'](_0x16f5('0xe1'),(_0xcf6b09,_0x492846,_0xcbe0ca)=>{const _0x2fde0d=_0xcbe0ca[_0x16f5('0x175')][_0x16f5('0x153')](_0x492846[_0x16f5('0x3')]);if(_0x2fde0d)for(const _0x10aec8 of _0x2fde0d)_0x10aec8[_0x16f5('0x157')](_0x16f5('0x165'))||(_0xcbe0ca[_0x16f5('0x167')]['removeClass']([_0x16f5('0xd3'),'ck-suggestion-marker-formatBlock',_0x16f5('0x1e')],_0x10aec8),_0xcbe0ca[_0x16f5('0x167')]['removeAttribute'](_0x16f5('0x3c'),_0x10aec8),_0xcbe0ca[_0x16f5('0x175')][_0x16f5('0x63')](_0x10aec8,_0x492846[_0x16f5('0x3')]));},{'priority':'high'});}),_0x327000[_0x16f5('0x10')][_0x16f5('0x9c')](_0x16f5('0x158'))[_0x16f5('0xc9')](_0x38b54c=>{_0x38b54c['on'](_0x16f5('0x121'),(_0x52d829,_0x2f6807,_0x712a5e)=>{const _0x77bf0d=_0x712a5e[_0x16f5('0x175')][_0x16f5('0x153')](_0x2f6807[_0x16f5('0x3')]);if(!_0x77bf0d)return;const {id:_0x5dacf2}=this[_0x16f5('0x15')](_0x2f6807[_0x16f5('0x3')]),_0x5d3726=this[_0x16f5('0x15e')][_0x16f5('0xe5')](_0x5dacf2),_0x570835=this[_0x16f5('0xc2')](_0x5d3726);if(this['_isBlockAttribute'](_0x570835))for(const _0x5a9dfe of _0x77bf0d)_0x5a9dfe['getCustomProperty']('addHighlight')||(_0x712a5e[_0x16f5('0x167')]['removeClass']([_0x16f5('0xd3'),_0x16f5('0x14b'),_0x16f5('0x1e')],_0x5a9dfe),_0x712a5e[_0x16f5('0x167')][_0x16f5('0x94')](_0x16f5('0x3c'),_0x5a9dfe),_0x712a5e['mapper'][_0x16f5('0x63')](_0x5a9dfe,_0x2f6807[_0x16f5('0x3')]));},{'priority':_0x16f5('0x17b')});}),_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')]['registerPostFixer'](_0x1839d4=>{let _0x200374=!0x1;const _0x4dd5b0=Array[_0x16f5('0x9e')](_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')][_0x16f5('0x17c')][_0x16f5('0x10f')]()),_0x82a070=new Set();for(const {name:_0x275249,data:_0x4d0ac9}of _0x4dd5b0){const {group:_0x592d18,type:_0x57b18f,subType:_0x58ab88,id:_0x1651ad}=this['_splitMarkerName'](_0x275249);if(_0x16f5('0xa')!==_0x592d18)continue;const _0x514924=this['_suggestions']['get'](_0x1651ad);if(null!=_0x4d0ac9[_0x16f5('0x34')]){_0x16f5('0xac')==_0x57b18f&&(_0x200374=_0x200374||Tt(_0x4d0ac9[_0x16f5('0x34')],_0x275249,_0x1839d4,_0x327000[_0x16f5('0xb2')][_0x16f5('0x16c')]));const _0x5bfb64='attribute'==_0x57b18f&&this[_0x16f5('0x20')](_0x58ab88[_0x16f5('0x15d')]('|')[0x0]);if(_0x4d0ac9[_0x16f5('0x34')][_0x16f5('0x8d')]||_0x16f5('0xb1')==_0x4d0ac9[_0x16f5('0x34')][_0x16f5('0x6f')][_0x16f5('0xa9')]||_0x16f5('0xdb')==_0x57b18f&&!Vt(_0x4d0ac9[_0x16f5('0x34')])||_0x5bfb64&&!Vt(_0x4d0ac9[_0x16f5('0x34')])||_0x16f5('0xf7')==_0x57b18f&&!(!Rt(_0x23f8e2=_0x4d0ac9[_0x16f5('0x34')])&&!function(_0x32e26d){return _0x32e26d[_0x16f5('0x61')]['parent']==_0x32e26d[_0x16f5('0xcd')][_0x16f5('0x87')]&&_0x32e26d[_0x16f5('0x61')][_0x16f5('0x92')];}(_0x23f8e2)))_0x1839d4[_0x16f5('0xb8')](_0x275249),_0x200374=!0x0;else{if(!_0x514924||!_0x514924[_0x16f5('0x128')])continue;_0x82a070[_0x16f5('0xc9')](_0x514924);}}}var _0x23f8e2;return _0x82a070[_0x16f5('0x12d')]>0x0&&(_0x200374=!!this[_0x16f5('0x8f')](_0x82a070)||_0x200374),_0x200374;}),_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')][_0x16f5('0x129')](_0x4a4ff5=>{let _0x205c7d=!0x1;for(const _0x3588bb of _0x327000['model'][_0x16f5('0xda')]['differ'][_0x16f5('0x14d')]())if(_0x16f5('0x13')==_0x3588bb['type'])for(const _0x1bf267 of this[_0x16f5('0x15e')][_0x16f5('0x179')]()){if(_0x1bf267[_0x16f5('0xbd')]||!_0x1bf267[_0x16f5('0x128')])continue;const _0x2e2bba=_0x16f5('0xdb')==_0x1bf267[_0x16f5('0x56')],_0x2383d6=this[_0x16f5('0xc2')](_0x1bf267),_0x2b41e7=_0x2383d6&&this['_isBlockAttribute'](_0x2383d6);if(!_0x2e2bba&&!_0x2b41e7)continue;const _0x4da16f=_0x1bf267['getFirstRange']();if(_0x4da16f[_0x16f5('0x61')]['parent']!=_0x4da16f[_0x16f5('0xcd')]['parent']&&!_0x4da16f[_0x16f5('0xcd')]['isAtEnd']){const _0x44e72d=_0x327000[_0x16f5('0xb2')][_0x16f5('0xcb')](_0x4da16f[_0x16f5('0x61')][_0x16f5('0x64')],_0x16f5('0xcd')),_0x293452=_0x327000[_0x16f5('0xb2')]['createRange'](_0x4da16f[_0x16f5('0x61')],_0x44e72d);_0x4a4ff5[_0x16f5('0xd8')](_0x1bf267['getFirstMarker'](),{'range':_0x293452}),_0x205c7d=!0x0;}}return _0x205c7d;}),_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')][_0x16f5('0x129')](_0x1a1b17=>this[_0x16f5('0xd')](_0x1a1b17)),_0x327000['model'][_0x16f5('0xda')][_0x16f5('0x129')](_0x63fff1=>!_0x63fff1[_0x16f5('0x69')][_0x16f5('0x113')]&&this[_0x16f5('0xab')](_0x63fff1)),_0x327000[_0x16f5('0xb2')]['on'](_0x16f5('0x120'),()=>{this[_0x16f5('0x12a')]=!0x1;}),_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')]['on'](_0x16f5('0x145'),(_0x56ddd0,_0xec3e89)=>{if(!_0xec3e89[_0x16f5('0x113')]||_0xec3e89[_0x16f5('0x16a')])return;if(!this[_0x16f5('0x12a')])return;const _0x1d9a91=_0x327000['model'][_0x16f5('0xda')]['differ'][_0x16f5('0x14d')]();if(0x0==_0x1d9a91['length'])return;const _0x1908e5=[],_0x5789df=_0x1d9a91[_0x16f5('0x88')](_0x57b077=>'attribute'==_0x57b077[_0x16f5('0x56')]),_0x1c15d2=_0x1d9a91[_0x16f5('0x88')](_0x4d7a50=>_0x16f5('0x13')==_0x4d7a50[_0x16f5('0x56')]&&'$text'!=_0x4d7a50[_0x16f5('0x81')]),_0x3cc047=_0x1d9a91[_0x16f5('0x88')](_0x185f5b=>_0x16f5('0x26')==_0x185f5b[_0x16f5('0x56')]&&_0x16f5('0x0')!=_0x185f5b[_0x16f5('0x81')]);for(const _0x6da8e3 of _0x5789df)this[_0x16f5('0x8b')](_0x6da8e3[_0x16f5('0x12c')])&&_0x1908e5[_0x16f5('0x140')]({'key':_0x6da8e3[_0x16f5('0x12c')],'newValue':_0x6da8e3[_0x16f5('0x134')],'oldValue':_0x6da8e3[_0x16f5('0x178')],'range':Ut(_0x6da8e3[_0x16f5('0x16f')],_0x327000['model'])});for(const _0x41e0a2 of _0x1c15d2){const _0x54e1a5=_0x3cc047[_0x16f5('0x160')](_0x263c97=>_0x263c97[_0x16f5('0xbf')]===_0x41e0a2[_0x16f5('0xbf')]);if(_0x54e1a5){const _0x4c4ab9=Ot(_0x41e0a2[_0x16f5('0x2e')][_0x16f5('0x64')],_0x327000['model']);_0x54e1a5[_0x16f5('0x81')]!==_0x41e0a2['name']&&_0x1908e5['push']({'key':_0x16f5('0x142'),'newValue':_0x41e0a2[_0x16f5('0x81')],'oldValue':_0x54e1a5['name'],'range':_0x4c4ab9});for(const [_0x37cfcf,_0x120509]of _0x54e1a5[_0x16f5('0x16d')]){if(!this[_0x16f5('0x8b')](_0x37cfcf))continue;const _0x2bfd49=_0x41e0a2[_0x16f5('0x16d')][_0x16f5('0xe5')](_0x37cfcf);_0x120509!==_0x2bfd49&&_0x1908e5[_0x16f5('0x140')]({'key':_0x37cfcf,'newValue':_0x2bfd49,'oldValue':_0x120509,'range':_0x4c4ab9});}for(const [_0x460fd7,_0x1bf3aa]of _0x41e0a2[_0x16f5('0x16d')])this[_0x16f5('0x8b')](_0x460fd7)&&(_0x54e1a5[_0x16f5('0x16d')]['has'](_0x460fd7)||_0x1908e5['push']({'key':_0x460fd7,'newValue':_0x1bf3aa,'oldValue':void 0x0,'range':_0x4c4ab9}));}}0x0!=_0x1908e5['length']&&_0x327000[_0x16f5('0xb2')][_0x16f5('0x170')](_0xec3e89,_0x406f=>{const _0x311b75=_0x3ea536();for(const {range:_0x742be1,key:_0x5f3e32,oldValue:_0x495d25,newValue:_0x40d8f0}of _0x1908e5)this[_0x16f5('0x96')](_0x742be1,_0x5f3e32,_0x495d25,_0x40d8f0,{'groupId':_0x311b75});this[_0x16f5('0xa8')](_0x406f,_0x1908e5);});},{'priority':'lowest'}),_0x327000[_0x16f5('0xb2')][_0x16f5('0x48')]['on'](_0x16f5('0x111'),(_0xf68097,_0x255b7c,_0x13ba7a)=>{if(null==_0x13ba7a){const {id:_0x2db6bf}=this[_0x16f5('0x15')](_0x255b7c[_0x16f5('0x81')]),_0x2a4b87=this[_0x16f5('0x15e')][_0x16f5('0xe5')](_0x2db6bf);_0x2a4b87&&_0x2a4b87['addMarkerName'](_0x255b7c[_0x16f5('0x81')]);}}),_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')]['on'](_0x16f5('0x145'),()=>{const _0x17c152=Array[_0x16f5('0x9e')](_0x327000[_0x16f5('0xb2')][_0x16f5('0xda')][_0x16f5('0x17c')][_0x16f5('0x10f')]())[_0x16f5('0x88')](_0x464f40=>_0x16f5('0xa')===this[_0x16f5('0x15')](_0x464f40[_0x16f5('0x81')])[_0x16f5('0xd9')]);if(0x0===_0x17c152['length'])return;_0x17c152[_0x16f5('0x174')]((_0x47647a,_0x145547)=>{const _0x204826=_0x47647a[_0x16f5('0x108')][_0x16f5('0x10c')],_0x2cc77b=_0x145547['data']['oldRange'];return null===_0x204826&&null===_0x2cc77b?0x0:null===_0x204826&&null!==_0x2cc77b?-0x1:null!==_0x204826&&null===_0x2cc77b?0x1:_0x204826['start'][_0x16f5('0x112')](_0x2cc77b['start'])?-0x1:0x1;});const _0x4165d3=new Set(),_0x1807b1=new Set();for(const {name:_0x49d4b9,data:_0x24b066}of _0x17c152){const {id:_0x26ae9e}=this[_0x16f5('0x15')](_0x49d4b9);if(null===_0x24b066[_0x16f5('0x10c')]){const _0x336398=this['_handleNewSuggestionMarker'](_0x49d4b9);_0x1807b1[_0x16f5('0xc9')](_0x336398);}else{const _0x15f154=this['_suggestions'][_0x16f5('0xe5')](_0x26ae9e);null!==_0x24b066[_0x16f5('0x34')]||_0x15f154[_0x16f5('0x128')]?(_0x4165d3[_0x16f5('0xc9')](_0x15f154[_0x16f5('0xea')]),_0x1807b1[_0x16f5('0xc9')](_0x15f154)):this['_removeSuggestion'](_0x15f154);}}_0x1807b1[_0x16f5('0x12d')]>0x0&&this[_0x16f5('0xff')](_0x1807b1);for(const _0xa6dadf of _0x4165d3)this[_0x16f5('0x159')](_0x16f5('0xce'),_0xa6dadf);}),_0x327000[_0x16f5('0xb2')]['on'](_0x16f5('0x164'),(_0x453697,_0x298b6c)=>{const _0x1a4f01=_0x298b6c[0x0];if(!this[_0x16f5('0x15e')][_0x16f5('0x12d')])return;if(!_0x1a4f01['isDocumentOperation'])return;if(_0x1a4f01[_0x16f5('0x69')]['isUndo']||!_0x1a4f01[_0x16f5('0x69')][_0x16f5('0x113')])return;let _0x2f81a7,_0x3fad74;switch(_0x1a4f01[_0x16f5('0x56')]){case _0x16f5('0x13'):_0x2f81a7=_0x327000[_0x16f5('0xb2')][_0x16f5('0xcb')](_0x1a4f01['position']),_0x3fad74=_0x2f81a7['getShiftedBy'](_0x1a4f01[_0x16f5('0x4b')]);break;case _0x16f5('0x15d'):_0x2f81a7=_0x327000[_0x16f5('0xb2')][_0x16f5('0xcb')](_0x1a4f01[_0x16f5('0xd7')]),_0x3fad74=_0x327000['model'][_0x16f5('0xcb')](_0x1a4f01[_0x16f5('0xbe')]);break;case'move':_0x2f81a7=_0x327000[_0x16f5('0xb2')][_0x16f5('0xcb')](_0x1a4f01[_0x16f5('0x53')]),_0x3fad74=_0x2f81a7[_0x16f5('0xcc')](_0x1a4f01['howMany']);break;default:return;}const _0x4f6f45=_0x327000[_0x16f5('0xb2')]['createRange'](_0x2f81a7,_0x3fad74);_0x327000['model'][_0x16f5('0x172')](()=>{for(const {suggestion:_0x5d32dc,meta:_0x3965fe}of this[_0x16f5('0x9f')](_0x4f6f45)){if(_0x5d32dc[_0x16f5('0xbd')])continue;if(_0x16f5('0xac')==_0x5d32dc['type'])continue;const _0x57a14c=this[_0x16f5('0xc2')](_0x5d32dc);if(_0x57a14c&&this[_0x16f5('0x20')](_0x57a14c)&&_0x16f5('0x15d')!=_0x1a4f01['type'])continue;const _0x260787=_0x5d32dc[_0x16f5('0x108')]&&_0x5d32dc['data']['multipleBlocks'];(_0x16f5('0xdb')!=_0x5d32dc[_0x16f5('0x56')]||_0x16f5('0x15d')==_0x1a4f01[_0x16f5('0x56')]&&!_0x260787)&&(_0x3965fe[_0x16f5('0xec')]||_0x16f5('0xc7')==_0x5d32dc[_0x16f5('0x56')]&&_0x3965fe[_0x16f5('0x3d')]||_0x5d32dc[_0x16f5('0x156')]()[_0x16f5('0x12f')](_0x4f6f45)&&this[_0x16f5('0xd6')](_0x5d32dc,_0x2f81a7,_0x3fad74));}});},{'priority':_0x16f5('0x2c')}),_0x327000['model']['on'](_0x16f5('0x141'),(_0x427b84,_0x21c599)=>{const _0x40027a=_0x21c599[0x0],_0x5d0b37=_0x21c599[0x1];if(_0x5d0b37&&_0x5d0b37['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x16f5('0x16')][_0x16f5('0x15f')])return;if(_0x40027a[_0x16f5('0x8d')])return;const _0x5947e7=_0x327000[_0x16f5('0xb2')][_0x16f5('0x16c')],{start:_0x406720,end:_0x3c6ed5}=_0x40027a['getFirstRange'](),_0x497f78=_0x406720['nodeAfter']&&_0x5947e7[_0x16f5('0x2f')](_0x406720['nodeAfter'])?null:_0x5947e7[_0x16f5('0x5c')](_0x406720,_0x16f5('0x5f')),_0xca7cd8=_0x3c6ed5[_0x16f5('0x87')]&&_0x5947e7['isLimit'](_0x3c6ed5[_0x16f5('0x87')])?null:_0x5947e7[_0x16f5('0x5c')](_0x3c6ed5,'backward'),_0x18d39c=_0x327000[_0x16f5('0xb2')][_0x16f5('0x4a')](_0x497f78?_0x497f78[_0x16f5('0x61')]:_0x406720,_0xca7cd8?_0xca7cd8[_0x16f5('0xcd')]:_0x3c6ed5);_0x327000[_0x16f5('0xb2')][_0x16f5('0x172')](_0x3f4c38=>{this['markDeletion'](_0x18d39c);const _0x172413=_0x327000[_0x16f5('0xb2')]['schema'][_0x16f5('0x5c')](_0x18d39c[_0x16f5('0x61')]);_0x40027a['is'](_0x16f5('0x71'))?_0x3f4c38[_0x16f5('0x78')](_0x172413):_0x40027a[_0x16f5('0xd4')](_0x172413);}),_0x427b84[_0x16f5('0x122')]();},{'priority':_0x1b252a[_0x16f5('0x90')]+0xa}),_0x327000[_0x16f5('0xb2')]['on'](_0x16f5('0x17d'),(_0x63981,_0x467ed3)=>{const _0x19c4b3=_0x467ed3[_0x467ed3['length']-0x1];_0x19c4b3&&_0x19c4b3[_0x16f5('0x107')]||this[_0x16f5('0xed')]||this[_0x16f5('0x16')][_0x16f5('0x15f')]&&(_0x327000[_0x16f5('0xb2')][_0x16f5('0x172')](()=>{let _0x5c9bc3=_0x327000[_0x16f5('0xb2')][_0x16f5('0x17d')](_0x467ed3[0x0],_0x467ed3[0x1],_0x467ed3[0x2],{'forceDefaultExecution':!0x0});if(!_0x5c9bc3)return;_0x63981[_0x16f5('0x6c')]=_0x5c9bc3[_0x16f5('0x173')]();const _0x45df0d=_0x5c9bc3['end']['nodeBefore'],_0x98ef01=_0x327000[_0x16f5('0xb2')][_0x16f5('0x16c')];_0x45df0d&&_0x98ef01['isBlock'](_0x45df0d)&&!_0x98ef01[_0x16f5('0xa7')](_0x45df0d)&&(_0x5c9bc3=_0x327000[_0x16f5('0xb2')][_0x16f5('0x4a')](_0x5c9bc3[_0x16f5('0x61')],_0x327000[_0x16f5('0xb2')][_0x16f5('0xcb')](_0x45df0d,_0x16f5('0xcd')))),this[_0x16f5('0x5d')](_0x5c9bc3);}),_0x63981[_0x16f5('0x122')]());},{'priority':_0x16f5('0x17b')}),this[_0x16f5('0x27')][_0x16f5('0x17')][_0x16f5('0xc9')]('trackChanges',this['trackChangesCommand']),this[_0x16f5('0x130')](_0x16f5('0xb3'));const _0x248e87=new _0x100d08(_0x327000,this[_0x16f5('0x15e')]);_0x327000['commands'][_0x16f5('0xc9')](_0x16f5('0x80'),_0x248e87),this[_0x16f5('0x130')](_0x16f5('0x80'));const _0x30a932=new _0x157d79(_0x327000,this[_0x16f5('0x15e')]);_0x327000['commands'][_0x16f5('0xc9')](_0x16f5('0x1b'),_0x30a932),this[_0x16f5('0x130')](_0x16f5('0x1b')),_0x327000[_0x16f5('0x17')][_0x16f5('0xc9')](_0x16f5('0x139'),new _0x42779c(_0x327000,_0x248e87,this[_0x16f5('0x15e')])),this[_0x16f5('0x130')](_0x16f5('0x139')),_0x327000[_0x16f5('0x17')][_0x16f5('0xc9')](_0x16f5('0xfa'),new _0x42779c(_0x327000,_0x30a932,this[_0x16f5('0x15e')])),this['enableCommand'](_0x16f5('0xfa')),_0x327000[_0x16f5('0x17')][_0x16f5('0xc9')](_0x16f5('0x147'),new _0xadb2f8(_0x327000,_0x248e87,this[_0x16f5('0x15e')])),this[_0x16f5('0x130')](_0x16f5('0x147')),_0x327000[_0x16f5('0x17')][_0x16f5('0xc9')]('discardSelectedSuggestions',new _0xadb2f8(_0x327000,_0x30a932,this[_0x16f5('0x15e')])),this['enableCommand'](_0x16f5('0xdf'));const _0x3ac13b=_0x327000[_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x143'));this['listenTo'](_0x3ac13b,_0x16f5('0x1d'),(_0x2a9b0c,{threadId:_0x2c74c5})=>{const _0x3cf153=this[_0x16f5('0x15e')][_0x16f5('0xe5')](_0x2c74c5);_0x3cf153&&_0x3cf153[_0x16f5('0x135')]&&0x1===_0x3cf153['commentThread'][_0x16f5('0x146')]&&this[_0x16f5('0xee')](_0x2c74c5,{'hasComments':!0x0});},{'priority':_0x16f5('0x127')}),this[_0x16f5('0x14e')](_0x3ac13b,_0x16f5('0x41'),(_0x58341f,{threadId:_0x324f33})=>{const _0x5bda4e=this[_0x16f5('0x15e')]['get'](_0x324f33);_0x5bda4e&&_0x5bda4e[_0x16f5('0x135')]&&!_0x5bda4e[_0x16f5('0x135')]['length']&&this['_updateSuggestionData'](_0x324f33,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x122ea9){if(this[_0x16f5('0xbb')])throw new _0x37ee43(_0x16f5('0x13b'),this);this[_0x16f5('0xbb')]=_0x122ea9;}get[_0x16f5('0x8c')](){return this[_0x16f5('0xbb')];}[_0x16f5('0x14')]({skipNotAttached:_0x41486a=!0x1,toJSON:_0x216ecf=!0x1}={}){const _0x36bad6=[];for(const _0x28237f of this[_0x16f5('0x15e')][_0x16f5('0x179')]())_0x41486a&&!_0x28237f[_0x16f5('0x128')]||_0x36bad6[_0x16f5('0x140')](_0x28237f);return _0x216ecf?_0x36bad6[_0x16f5('0x177')](_0x5c94f3=>_0x5c94f3[_0x16f5('0x155')]()):_0x36bad6;}[_0x16f5('0x8e')](_0x4d86fd){const _0x472ef1=this[_0x16f5('0x15e')][_0x16f5('0xe5')](_0x4d86fd);if(!_0x472ef1)throw new _0x37ee43(_0x16f5('0xf8'),this);return _0x472ef1;}[_0x16f5('0xb')](_0x420251){return this[_0x16f5('0x15e')][_0x16f5('0x11e')](_0x420251);}[_0x16f5('0x11b')](_0x1ee807){const {authorId:_0x34c401,id:_0x3d43ae,attributes:_0x3f2ec0}=_0x1ee807,[_0x5bd0df,_0xcc485f]=_0x1ee807[_0x16f5('0x56')][_0x16f5('0x15d')](':'),_0x30411a=this[_0x16f5('0x15e')]['get'](_0x3d43ae)||this[_0x16f5('0x3e')](_0x5bd0df,_0xcc485f,_0x3d43ae,_0x34c401,_0x3f2ec0);if(this['_addThreadToSuggestion'](_0x30411a),this['_checkSuggestionCorrectness'](_0x30411a,_0x5bd0df,_0xcc485f||null,_0x34c401),_0x30411a[_0x16f5('0x89')]=_0x1ee807[_0x16f5('0x89')],_0x30411a['_isDataLoaded']=!0x0,_0x3f2ec0&&_0x3f2ec0[_0x16f5('0x5e')]){const _0x36c6da=_0x3f2ec0[_0x16f5('0x5e')],_0x40c2f2=this[_0x16f5('0x114')](_0x36c6da['authorName']);_0x30411a['authoredAt']=_0x36c6da[_0x16f5('0x89')],_0x30411a[_0x16f5('0x17a')]=_0x40c2f2,_0x30411a[_0x16f5('0xaa')]=!0x0;}else _0x30411a[_0x16f5('0x181')]=_0x1ee807[_0x16f5('0x89')];switch(_0x1ee807[_0x16f5('0x108')]&&(_0x30411a[_0x16f5('0x108')]=_0x1ee807['data']),_0x1ee807[_0x16f5('0x16d')]&&(_0x30411a[_0x16f5('0x16d')]=_0x1ee807[_0x16f5('0x16d')]),this[_0x16f5('0xbb')]&&this['_adapter']['addSuggestion']||(_0x30411a[_0x16f5('0x151')]=!0x0),this['_suggestionState'][_0x16f5('0xe5')](_0x30411a)){case _0x16f5('0x72'):this[_0x16f5('0x22')][_0x16f5('0x123')](_0x30411a,'dataReady');break;case'markerReady':_0x30411a[_0x16f5('0x128')]?(this[_0x16f5('0x8f')](new Set([_0x30411a])),this['_refreshSuggestionsChain'](new Set([_0x30411a])),this[_0x16f5('0x22')]['set'](_0x30411a,_0x16f5('0xa1')),this[_0x16f5('0x159')]('suggestionLoaded',_0x30411a)):this[_0x16f5('0x22')][_0x16f5('0x123')](_0x30411a,_0x16f5('0x106'));}return _0x30411a;}[_0x16f5('0x80')](_0x1bd2cb){this[_0x16f5('0x107')](()=>{this[_0x16f5('0x27')][_0x16f5('0xb2')]['change'](()=>{for(const _0x34faa7 of _0x1bd2cb[_0x16f5('0x52')]())_0x34faa7[_0x16f5('0x110')]();});});}[_0x16f5('0x1b')](_0x1b0fc9){this[_0x16f5('0x107')](()=>{this['editor']['model'][_0x16f5('0x172')](()=>{for(const _0x42afe1 of _0x1b0fc9[_0x16f5('0x52')]())_0x42afe1[_0x16f5('0x161')]();});});}[_0x16f5('0x130')](_0x17f156,_0x403013){const _0x5da556=this['editor']['commands'][_0x16f5('0xe5')](_0x17f156);if(!_0x5da556)throw new _0x37ee43('track-changes-command-not-found',this,{'commandName':_0x17f156});if(this[_0x16f5('0x162')][_0x16f5('0x11e')](_0x5da556))throw new _0x37ee43('track-changes-enable-command-twice',this,{'commandName':_0x17f156});this[_0x16f5('0x162')][_0x16f5('0xc9')](_0x5da556),_0x403013&&_0x5da556['on'](_0x16f5('0x126'),(_0x17de1a,_0x1c10ca)=>{this['trackChangesCommand'][_0x16f5('0x15f')]&&(this['_isForcedDefaultExecutionBlock']||(_0x1c10ca['length']>0x0&&_0x1c10ca[_0x1c10ca['length']-0x1]&&_0x1c10ca[_0x1c10ca['length']-0x1][_0x16f5('0x107')]?_0x1c10ca[_0x16f5('0xfb')]():(_0x17de1a[_0x16f5('0x6c')]=_0x403013((..._0x3a51fb)=>_0x5da556['execute'](..._0x3a51fb,{'forceDefaultExecution':!0x0}),..._0x1c10ca),_0x17de1a[_0x16f5('0x122')]())));},{'priority':_0x16f5('0x17b')});}[_0x16f5('0x107')](_0x18e60e){let _0x17a3c9,_0x18d7c1;const _0x534d80=this[_0x16f5('0xed')];this[_0x16f5('0xed')]=!0x0;try{_0x17a3c9=_0x18e60e();}catch(_0x43da13){_0x18d7c1=_0x43da13;}return _0x534d80||(this[_0x16f5('0xed')]=!0x1),_0x18d7c1&&_0x37ee43[_0x16f5('0x84')](_0x18d7c1,this),_0x17a3c9;}[_0x16f5('0x5d')](_0x62f17c,_0x55878b=null,_0x2b2f0d={}){if(_0x62f17c[_0x16f5('0x8d')])return null;const _0x527240=this[_0x16f5('0x27')][_0x16f5('0x77')]['get'](_0x16f5('0x18'))['me'];for(const {suggestion:_0x52ec53,meta:_0x18eafb}of this['_findSuggestions'](_0x62f17c,'insertion'))if(_0x18eafb[_0x16f5('0x3d')]){if(!_0x18eafb[_0x16f5('0x166')]){if(_0x18eafb[_0x16f5('0xec')]){if(!this[_0x16f5('0xf0')]||!Pt(_0x52ec53,_0x2b2f0d))continue;return _0x52ec53;}if(Pt(_0x52ec53,_0x2b2f0d))return _0x52ec53;this[_0x16f5('0xd6')](_0x52ec53,_0x62f17c[_0x16f5('0x61')],_0x62f17c[_0x16f5('0xcd')]);break;}if(_0x55878b==_0x52ec53[_0x16f5('0xbc')]&&Pt(_0x52ec53,_0x2b2f0d)){const _0x62ddb8=_0x52ec53[_0x16f5('0x156')]();return _0x62ddb8[_0x16f5('0x61')][_0x16f5('0xb5')](_0x62f17c[_0x16f5('0xcd')])?this[_0x16f5('0xc3')](_0x52ec53,this['_model'][_0x16f5('0x4a')](_0x62f17c[_0x16f5('0x61')],_0x62ddb8[_0x16f5('0xcd')])):this['_setSuggestionRange'](_0x52ec53,this[_0x16f5('0x47')]['createRange'](_0x62ddb8[_0x16f5('0x61')],_0x62f17c[_0x16f5('0xcd')])),_0x52ec53;}}const _0x8a9eee=_0x3ea536(),_0x38b48b=_0x527240['id'],_0x27fb96=_0x55878b?'insertion:'+_0x55878b:_0x16f5('0xc7'),_0x2d411f=this[_0x16f5('0x133')]({'id':_0x8a9eee,'type':_0x27fb96,'createdAt':new Date(),'authorId':_0x38b48b,'attributes':_0x2b2f0d});return this[_0x16f5('0x74')](_0x27fb96,_0x8a9eee,_0x38b48b,_0x62f17c),_0x2d411f;}[_0x16f5('0x148')](_0x452c63,_0x15261a=_0x16f5('0x136'),_0x293c02={}){const _0x4b580a=this[_0x16f5('0x27')]['plugins'][_0x16f5('0xe5')](_0x16f5('0x18'))['me'],_0xf571a0=this[_0x16f5('0x24')][_0x16f5('0x13c')]('insertion',_0x15261a,_0x16f5('0xef'));for(const _0x5ae714 of this[_0x16f5('0x14')]())if(_0x5ae714['author']['id']==_0x4b580a['id']&&_0x16f5('0xc7')==_0x5ae714[_0x16f5('0x56')]&&_0x5ae714[_0x16f5('0xbc')]==_0x15261a&&Pt(_0x5ae714,_0x293c02)&&(_0xf571a0(_0x5ae714['getRanges'](),_0x452c63)||_0xf571a0(_0x452c63,_0x5ae714[_0x16f5('0xc5')]()))){for(const _0x1d30cd of _0x452c63)_0x5ae714['addRange'](_0x1d30cd);return _0x5ae714;}for(const {suggestion:_0x400213,meta:_0x11256e}of this['_findSuggestions'](_0x452c63,_0x16f5('0xc7'))){if(!_0x11256e['isOwn'])continue;if(!this[_0x16f5('0xf0')]&&_0x11256e[_0x16f5('0xec')])continue;if(!Pt(_0x400213,_0x293c02))continue;let _0x579a07=!0x0;for(const _0x4971ed of _0x400213[_0x16f5('0xc5')]())for(const _0x24cfc0 of _0x452c63)if(!_0x4971ed['containsRange'](_0x24cfc0)){_0x579a07=!0x1;break;}if(_0x579a07)return _0x400213;}const _0x12a3b4=_0x3ea536(),_0x308473=_0x4b580a['id'],_0x5cb28b=_0x16f5('0x11c')+_0x15261a,_0x453b6f=this[_0x16f5('0x133')]({'id':_0x12a3b4,'type':_0x5cb28b,'createdAt':new Date(),'authorId':_0x308473,'attributes':_0x293c02});for(const _0x691e86 of _0x452c63)this[_0x16f5('0x74')](_0x5cb28b,_0x12a3b4,_0x308473,_0x691e86,_0x2160f9[_0x16f5('0x171')]());return _0x453b6f;}[_0x16f5('0x144')](_0x1181c5,_0x263eff,_0x164bf2=null,_0xae7af7={}){if(_0x164bf2=_0x164bf2||Et(_0x263eff),_0x1181c5[_0x16f5('0x8d')])return null;if(_0x16f5('0x7a')===this['_trackFormatChanges']){const _0x455b5f=this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x16f5('0xac'),_0x164bf2,_0x16f5('0x110'));return this['forceDefaultExecution'](()=>_0x455b5f([_0x1181c5],_0x263eff,_0xae7af7)),null;}const _0xf6640f=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x18'))['me'],_0x1c4d38=[];if('always'!==this[_0x16f5('0xcf')])for(const {suggestion:_0x235b27,meta:_0x2139f5}of this[_0x16f5('0x9f')](_0x1181c5,_0x16f5('0xc7')))_0x2139f5[_0x16f5('0x3d')]&&!_0x2139f5[_0x16f5('0x17e')]&&_0x1c4d38[_0x16f5('0x140')](..._0x235b27['getRanges']());const _0x694d51=function(_0x1b54f6,_0x3ffcaa){const _0x2d55fe=[];for(const _0x2c6664 of _0x3ffcaa){const _0x51464a=_0x1b54f6[_0x16f5('0xd5')](_0x2c6664);_0x51464a&&_0x2d55fe[_0x16f5('0x140')](_0x51464a);}return _0x2d55fe;}(_0x1181c5,_0x1c4d38),_0x2b45a9=function(_0x188561,_0x24b51f){const _0xa6e10c=[_0x188561];for(const _0x40b1aa of _0x24b51f){let _0x2fed36=0x0;for(;_0x2fed36<_0xa6e10c[_0x16f5('0x146')];){const _0x3e97a8=_0xa6e10c[_0x2fed36][_0x16f5('0xc0')](_0x40b1aa);_0xa6e10c['splice'](_0x2fed36,0x1,..._0x3e97a8),_0x2fed36+=_0x3e97a8[_0x16f5('0x146')];}}return _0xa6e10c;}(_0x1181c5,_0x1c4d38);_0x694d51[_0x16f5('0x146')]&&this[_0x16f5('0x47')][_0x16f5('0x172')](()=>{for(const _0x2e2953 of _0x694d51){const _0x5153ff=this['_suggestionFactory'][_0x16f5('0x13c')](_0x16f5('0xac'),_0x164bf2,'accept');this[_0x16f5('0x107')](()=>_0x5153ff([_0x2e2953],_0x263eff,_0xae7af7));}});for(const _0x2a379f of _0x2b45a9){let _0x5b8337=null,_0x3e620a=_0x2a379f[_0x16f5('0x61')],_0x42686c=_0x2a379f[_0x16f5('0xcd')];for(const {suggestion:_0x109fc3,meta:_0x3a2653}of this[_0x16f5('0x9f')](_0x2a379f,'formatInline')){if(!_0x3a2653[_0x16f5('0x3d')])continue;if(_0x109fc3[_0x16f5('0xbc')]!=_0x164bf2)continue;if(!Pt(_0x109fc3,_0xae7af7))continue;const _0x4f131b=_0x109fc3['getFirstRange']();if(_0x4f131b[_0x16f5('0x12f')](_0x2a379f,!0x0))return null;_0x3e620a=_0x3e620a[_0x16f5('0x112')](_0x4f131b[_0x16f5('0x61')])?_0x3e620a:_0x4f131b['start'],_0x42686c=_0x42686c[_0x16f5('0x98')](_0x4f131b['end'])?_0x42686c:_0x4f131b[_0x16f5('0xcd')],_0x5b8337?_0x4f131b[_0x16f5('0x61')]['isBefore'](_0x5b8337[_0x16f5('0x156')]()[_0x16f5('0x61')])?(_0x5b8337[_0x16f5('0x4f')](),_0x5b8337=_0x109fc3):_0x109fc3[_0x16f5('0x4f')]():_0x5b8337=_0x109fc3;}const _0x1a7712=this[_0x16f5('0x47')]['createRange'](_0x3e620a,_0x42686c);if(_0x5b8337)this[_0x16f5('0xc3')](_0x5b8337,_0x1a7712);else{const _0x225c51=_0x3ea536(),_0xec2f40=_0xf6640f['id'];this[_0x16f5('0x133')]({'id':_0x225c51,'type':_0x16f5('0x1a')+_0x164bf2,'data':_0x263eff,'createdAt':new Date(),'authorId':_0xec2f40,'attributes':_0xae7af7}),this[_0x16f5('0x74')](_0x16f5('0x1a')+_0x164bf2,_0x225c51,_0xec2f40,_0x1a7712);}}return null;}[_0x16f5('0x91')](_0x3d6e28,_0x5694bb,_0x58d8ac=[],_0x3430bf=null,_0x42192f={}){_0x5694bb['formatGroupId']||(_0x5694bb[_0x16f5('0x58')]=_0x5694bb[_0x16f5('0x31')]),_0x5694bb[_0x16f5('0x12b')]=_0x3d6e28['is'](_0x16f5('0x16f')),_0x3430bf=_0x3430bf||Et(_0x5694bb);const _0x126d68=_0x58d8ac[_0x16f5('0x177')](_0x2d3cef=>Ot(_0x2d3cef,this[_0x16f5('0x47')])),_0x31b573=_0x3d6e28['is']('range')?_0x3d6e28:Ot(_0x3d6e28,this['_model']);if(_0x16f5('0x7a')===this[_0x16f5('0xcf')]){const _0x5cca5d=this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x16f5('0xdb'),_0x3430bf,_0x16f5('0x110'));return this[_0x16f5('0x107')](()=>_0x5cca5d([_0x31b573],_0x5694bb,_0x42192f)),null;}_0x126d68[_0x16f5('0x140')](_0x31b573);let _0x5a17ff=!0x0;for(const _0x325e69 of _0x126d68)if(!this['_rangeIsInLocalUserInsertion'](_0x325e69)){_0x5a17ff=!0x1;break;}if(_0x5a17ff&&_0x16f5('0x11f')!==this[_0x16f5('0xcf')]){const _0x44ede0=this[_0x16f5('0x24')]['getSuggestionCallback'](_0x16f5('0xdb'),_0x3430bf,_0x16f5('0x110'));return this['forceDefaultExecution'](()=>_0x44ede0([_0x31b573],_0x5694bb,_0x42192f)),null;}let _0xb5f3ca=null,_0x23fcda=_0x31b573[_0x16f5('0x61')],_0xfafd86=_0x31b573[_0x16f5('0xcd')];for(const {suggestion:_0x48a35b,meta:_0x1c0792}of this[_0x16f5('0x9f')](_0x31b573,_0x16f5('0xdb'))){if(!_0x1c0792[_0x16f5('0x3d')])continue;if(_0x1c0792['isNextTo']||_0x1c0792[_0x16f5('0xec')]||_0x1c0792[_0x16f5('0x17e')])continue;if(_0x48a35b[_0x16f5('0x108')]['formatGroupId']!=_0x5694bb['formatGroupId'])continue;if(!Pt(_0x48a35b,_0x42192f))continue;const _0x578f2b=_0x48a35b[_0x16f5('0x156')]();if(_0x48a35b[_0x16f5('0xbc')]==_0x3430bf){if(_0x578f2b[_0x16f5('0x12f')](_0x31b573,!0x0))return null;_0x23fcda=_0x23fcda[_0x16f5('0x112')](_0x578f2b[_0x16f5('0x61')])?_0x23fcda:_0x578f2b[_0x16f5('0x61')],_0xfafd86=_0xfafd86[_0x16f5('0x98')](_0x578f2b[_0x16f5('0xcd')])?_0xfafd86:_0x578f2b[_0x16f5('0xcd')],_0xb5f3ca?_0x578f2b[_0x16f5('0x61')]['isBefore'](_0xb5f3ca[_0x16f5('0x156')]()[_0x16f5('0x61')])?(_0xb5f3ca[_0x16f5('0x4f')](),_0xb5f3ca=_0x48a35b):_0x48a35b[_0x16f5('0x4f')]():_0xb5f3ca=_0x48a35b;}else{const _0x510e00=_0x31b573[_0x16f5('0xd5')](_0x578f2b);this[_0x16f5('0x6')](_0x48a35b,_0x510e00);}}const _0x8c26f7=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x18'))['me'],_0x416b32=_0x3ea536(),_0x1482e1=_0x8c26f7['id'];if(_0xb5f3ca)return this['_setSuggestionRange'](_0xb5f3ca,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x23fcda,_0xfafd86)),_0xb5f3ca;{const _0x42b07f=this[_0x16f5('0x133')]({'id':_0x416b32,'type':_0x16f5('0x7')+_0x3430bf,'data':_0x5694bb,'createdAt':new Date(),'authorId':_0x1482e1,'attributes':_0x42192f});return this[_0x16f5('0x74')](_0x16f5('0x7')+_0x3430bf,_0x416b32,_0x1482e1,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x23fcda,_0xfafd86)),_0x42b07f;}}[_0x16f5('0xc8')](_0x1ad7ca,_0x753f15,_0x243ac0=[],_0x50e24e=null,_0x4f9296={}){_0x753f15['formatGroupId']||(_0x753f15['formatGroupId']=_0x753f15['commandName']);const _0x5529b7=_0x1ad7ca[0x0];_0x753f15[_0x16f5('0x12b')]=_0x5529b7['is']('range'),_0x50e24e=_0x50e24e||Et(_0x753f15);const _0x2ef523=_0x243ac0[_0x16f5('0x177')](_0x85c358=>Ot(_0x85c358,this[_0x16f5('0x47')])),_0x9b904e=_0x5529b7['is'](_0x16f5('0x16f'))?_0x1ad7ca:_0x1ad7ca[_0x16f5('0x177')](_0x12aeaf=>Ot(_0x12aeaf,this[_0x16f5('0x47')]));if(_0x16f5('0x7a')===this['_trackFormatChanges']){const _0x29c5b3=this['_suggestionFactory'][_0x16f5('0x13c')](_0x16f5('0xdb'),_0x50e24e,_0x16f5('0x110'));return this[_0x16f5('0x107')](()=>_0x29c5b3(_0x9b904e,_0x753f15,_0x4f9296)),null;}_0x2ef523[_0x16f5('0x140')](..._0x9b904e);let _0x52f9d8=!0x0;for(const _0xc61297 of _0x2ef523)if(!this[_0x16f5('0x4')](_0xc61297)){_0x52f9d8=!0x1;break;}if(_0x52f9d8&&'always'!==this[_0x16f5('0xcf')]){const _0x25a273=this[_0x16f5('0x24')][_0x16f5('0x13c')]('formatBlock',_0x50e24e,_0x16f5('0x110'));return this['forceDefaultExecution'](()=>_0x25a273(_0x9b904e,_0x753f15,_0x4f9296)),null;}const _0x900de8=this['editor'][_0x16f5('0x77')]['get'](_0x16f5('0x18'))['me'];for(const _0x5ad576 of this['getSuggestions']()){if(_0x5ad576[_0x16f5('0x17a')]['id']!=_0x900de8['id'])continue;if('formatBlock'!=_0x5ad576[_0x16f5('0x56')]||_0x5ad576['data'][_0x16f5('0x58')]!=_0x753f15['formatGroupId'])continue;if(!Pt(_0x5ad576,_0x4f9296))continue;const _0x2a4fe2=_0x5ad576[_0x16f5('0xbc')]==_0x50e24e;for(let _0x2c4d9a=0x0;_0x2c4d9a<_0x9b904e[_0x16f5('0x146')];_0x2c4d9a++){const _0x2a66f2=_0x9b904e[_0x2c4d9a];for(const _0x3b62c3 of _0x5ad576['getMarkers']()){const _0x28a4d9=_0x3b62c3[_0x16f5('0xf9')]();if(_0x2a66f2[_0x16f5('0xb5')](_0x28a4d9)){_0x2a4fe2?(_0x9b904e['splice'](_0x2c4d9a,0x1),_0x2c4d9a--):_0x5ad576['removeMarker'](_0x3b62c3[_0x16f5('0x81')]);break;}}}}if(0x0==_0x9b904e[_0x16f5('0x146')])return null;const _0x25ec52=this[_0x16f5('0x24')]['getSuggestionCallback'](_0x16f5('0xdb'),_0x50e24e,'join');for(const _0x4cb49d of this[_0x16f5('0x14')]())if(_0x4cb49d[_0x16f5('0x17a')]['id']==_0x900de8['id']&&_0x16f5('0xdb')==_0x4cb49d[_0x16f5('0x56')]&&_0x4cb49d[_0x16f5('0x108')][_0x16f5('0x58')]==_0x753f15[_0x16f5('0x58')]&&_0x4cb49d['subType']==_0x50e24e&&Pt(_0x4cb49d,_0x4f9296)&&(_0x25ec52(_0x4cb49d[_0x16f5('0xc5')](),_0x9b904e)||_0x25ec52(_0x9b904e,_0x4cb49d[_0x16f5('0xc5')]()))){for(const _0x339db2 of _0x9b904e)_0x4cb49d[_0x16f5('0x54')](_0x339db2);return _0x4cb49d;}const _0x416762=_0x3ea536(),_0x42fc98=_0x900de8['id'],_0x35cf33=_0x16f5('0x7')+_0x50e24e,_0x1734a9=this['_setSuggestionData']({'id':_0x416762,'type':_0x35cf33,'data':_0x753f15,'createdAt':new Date(),'authorId':_0x42fc98,'attributes':_0x4f9296});for(const _0xc87f3f of _0x9b904e)this[_0x16f5('0x74')](_0x35cf33,_0x416762,_0x42fc98,_0xc87f3f,_0x2160f9['getMultiRangeId']());return _0x1734a9;}['markDeletion'](_0x5919e9,_0xc01408=null,_0x3d71c0={}){if(_0x5919e9[_0x16f5('0x8d')])return null;const _0xe7aefc=this[_0x16f5('0x27')][_0x16f5('0x77')]['get'](_0x16f5('0x18'))['me'],_0x22efcb=new _0x4110f1(_0x5919e9[_0x16f5('0x61')],_0x5919e9[_0x16f5('0xcd')]);for(const {suggestion:_0x232f7e,meta:_0x4fdf42}of this[_0x16f5('0x9f')](_0x22efcb,'insertion'))if(_0x4fdf42['isOwn']&&!_0x4fdf42['isNextTo']){if(_0x232f7e[_0x16f5('0xbd')]){const _0xed9825=_0x232f7e['getRanges']()[_0x16f5('0x88')](_0x2c15bb=>_0x16f5('0xb1')!=_0x2c15bb[_0x16f5('0x6f')][_0x16f5('0xa9')]);_0xed9825[_0x16f5('0x23')](_0x5e55c2=>_0x22efcb['containsRange'](_0x5e55c2,!0x0))&&_0x232f7e[_0x16f5('0x161')]();if(_0xed9825['some'](_0x9d3db7=>_0x9d3db7[_0x16f5('0x12f')](_0x22efcb,!0x0))){const _0x56fbe6=this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x16f5('0xf7'),_0xc01408,_0x16f5('0x110'));return this[_0x16f5('0x107')](()=>_0x56fbe6([_0x22efcb],null,_0x3d71c0)),null;}}else{const _0x2fe166=_0x22efcb['getIntersection'](_0x232f7e['getFirstRange']());null!==_0x2fe166&&_0x232f7e[_0x16f5('0xd1')]([_0x2fe166],null,_0x3d71c0);}}if(_0x22efcb[_0x16f5('0x45')](),_0x22efcb[_0x16f5('0x8d')]||_0x16f5('0xb1')==_0x22efcb['root'][_0x16f5('0xa9')])return null;let _0x599198=null,_0x44c64c=_0x22efcb[_0x16f5('0x61')],_0x2a301a=_0x22efcb['end'];const _0x1c4436=this[_0x16f5('0x9f')](_0x22efcb,_0x16f5('0xf7'));for(const {suggestion:_0x98f097,meta:_0x581f91}of _0x1c4436){const _0x286c28=this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x44c64c,_0x2a301a);if(_0x581f91['isOwn']&&(this[_0x16f5('0xf0')]||!_0x581f91['containsRangeInObject']&&!_0x581f91[_0x16f5('0x17e')])){if(_0x98f097['isMultiRange']){if(!Pt(_0x98f097,_0x3d71c0))continue;let _0x477a9c=!0x0;for(const _0x4148e2 of _0x98f097['getRanges']()){if(_0x4148e2[_0x16f5('0x12f')](_0x286c28,!0x0))return _0x98f097;_0x286c28['containsRange'](_0x4148e2)||(_0x477a9c=!0x1);}_0x477a9c&&_0x98f097[_0x16f5('0x161')]();}else{const _0x10789e=_0x98f097['getFirstRange']();if(_0x10789e['containsRange'](_0x286c28,!0x0))return _0x98f097;if(!Pt(_0x98f097,_0x3d71c0)){_0x286c28[_0x16f5('0x12f')](_0x10789e)?_0x98f097[_0x16f5('0x4f')]():_0x10789e['containsPosition'](_0x44c64c)?_0x44c64c=_0x10789e['end']:_0x10789e[_0x16f5('0x51')](_0x2a301a)&&(_0x2a301a=_0x10789e[_0x16f5('0x61')]);continue;}_0x44c64c=_0x44c64c[_0x16f5('0x112')](_0x10789e['start'])?_0x44c64c:_0x10789e[_0x16f5('0x61')],_0x2a301a=_0x2a301a[_0x16f5('0x98')](_0x10789e['end'])?_0x2a301a:_0x10789e[_0x16f5('0xcd')],_0x3d71c0=Object[_0x16f5('0x82')]({},_0x98f097[_0x16f5('0x16d')]),_0x599198?_0x10789e['start'][_0x16f5('0x112')](_0x599198[_0x16f5('0x156')]()['start'])?(_0x599198[_0x16f5('0x4f')](),_0x599198=_0x98f097):_0x98f097['removeMarkers']():_0x599198=_0x98f097;}}}if(_0x599198)return this[_0x16f5('0xc3')](_0x599198,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x44c64c,_0x2a301a)),_0x599198;{const _0x4894c9=_0x3ea536(),_0x468c2b=this[_0x16f5('0x47')]['createRange'](_0x44c64c,_0x2a301a),_0x9b2ee4=_0xe7aefc['id'],_0x47b71e=_0xc01408?_0x16f5('0x154')+_0xc01408:_0x16f5('0xf7'),_0x59065f=this['_setSuggestionData']({'id':_0x4894c9,'type':_0x47b71e,'createdAt':new Date(),'authorId':_0x9b2ee4,'attributes':_0x3d71c0});return this[_0x16f5('0x74')](_0x47b71e,_0x4894c9,_0x9b2ee4,_0x468c2b),_0x59065f;}}[_0x16f5('0x125')](_0x2c8449,_0x10d626=_0x16f5('0x136'),_0x46f7cd={}){const _0x1a02a7=this[_0x16f5('0x27')]['plugins']['get']('Users')['me'],_0x29c614=_0x2c8449[_0x16f5('0x177')](_0x11adce=>new _0x4110f1(_0x11adce[_0x16f5('0x61')],_0x11adce['end'])),_0x290cd5=new Set();for(const {suggestion:_0x46af28,meta:_0x51387c}of this[_0x16f5('0x9f')](_0x29c614,_0x16f5('0xc7')))_0x51387c['isOwn']&&!_0x51387c[_0x16f5('0x166')]&&_0x290cd5[_0x16f5('0xc9')](_0x46af28);for(const _0x469a8d of _0x290cd5)if(_0x469a8d['isMultiRange']){const _0x32b3b8=_0x469a8d[_0x16f5('0xc5')]();(!_0x469a8d[_0x16f5('0x16d')]||!_0x469a8d[_0x16f5('0x16d')]['skipNestingCheck'])&&(_0x32b3b8[_0x16f5('0x23')](_0x5a4089=>_0x29c614['some'](_0x1946f6=>_0x1946f6[_0x16f5('0x12f')](_0x5a4089,!0x0)))&&_0x469a8d[_0x16f5('0x161')]());if(_0x29c614[_0x16f5('0x23')](_0x409836=>_0x32b3b8[_0x16f5('0x39')](_0x4a2d12=>_0x4a2d12[_0x16f5('0x12f')](_0x409836,!0x0)))){const _0x17fdab=this[_0x16f5('0x24')]['getSuggestionCallback'](_0x16f5('0xf7'),_0x10d626,_0x16f5('0x110'));return this['forceDefaultExecution'](()=>_0x17fdab(_0x2c8449,null,_0x46f7cd)),null;}}else{const _0xdef2cc=_0x469a8d[_0x16f5('0x156')]();_0x29c614[_0x16f5('0x39')](_0x543625=>_0x543625['containsRange'](_0xdef2cc,!0x0))&&_0x469a8d['discard']();if(_0x29c614[_0x16f5('0x23')](_0x128876=>_0xdef2cc[_0x16f5('0x12f')](_0x128876,!0x0))){const _0x3ca186=this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x16f5('0xf7'),_0x10d626,_0x16f5('0x110'));return this['forceDefaultExecution'](()=>_0x3ca186(_0x29c614,null,_0x46f7cd)),null;}}const _0x2cfaa0=this['_suggestionFactory'][_0x16f5('0x13c')](_0x16f5('0xf7'),_0x10d626,_0x16f5('0xef'));let _0x519eca=null;for(const _0x1cc416 of this[_0x16f5('0x14')]())if(_0x1cc416[_0x16f5('0x17a')]['id']==_0x1a02a7['id']&&_0x1cc416['isInContent']&&_0x16f5('0xf7')==_0x1cc416[_0x16f5('0x56')]&&_0x1cc416[_0x16f5('0xbc')]==_0x10d626&&Pt(_0x1cc416,_0x46f7cd)&&(_0x2cfaa0(_0x1cc416[_0x16f5('0xc5')](),_0x29c614)||_0x2cfaa0(_0x29c614,_0x1cc416['getRanges']()))){if(_0x519eca){if(_0x1cc416[_0x16f5('0x135')]&&_0x1cc416['commentThread'][_0x16f5('0x146')])continue;for(const _0x437ef2 of _0x1cc416[_0x16f5('0xc5')]())_0x519eca[_0x16f5('0xf1')](_0x437ef2)||_0x519eca[_0x16f5('0x54')](_0x437ef2);_0x1cc416[_0x16f5('0x4f')]();}else{_0x519eca=_0x1cc416;for(const _0xff60a8 of _0x29c614)_0x1cc416[_0x16f5('0xf1')](_0xff60a8)||_0x1cc416[_0x16f5('0x54')](_0xff60a8);}}if(_0x519eca)return _0x519eca;_0x290cd5[_0x16f5('0x13f')]();for(const {suggestion:_0x44bf48,meta:_0x12bf20}of this[_0x16f5('0x9f')](_0x29c614,_0x16f5('0xf7')))_0x12bf20[_0x16f5('0x3d')]&&(this[_0x16f5('0xf0')]||!_0x12bf20['containsRangeInObject']&&!_0x12bf20['isInsideObject'])&&Pt(_0x44bf48,_0x46f7cd)&&_0x290cd5[_0x16f5('0xc9')](_0x44bf48);for(const _0x30307f of _0x290cd5){const _0x1aa16b=_0x30307f[_0x16f5('0xc5')]();if(!_0x46f7cd||!_0x46f7cd[_0x16f5('0x13a')]){if(_0x29c614['every'](_0x3a444e=>_0x1aa16b['some'](_0x95dd12=>_0x95dd12[_0x16f5('0x12f')](_0x3a444e,!0x0))))return _0x30307f;}(!_0x30307f[_0x16f5('0x16d')]||!_0x30307f['attributes'][_0x16f5('0x13a')])&&(_0x1aa16b[_0x16f5('0x23')](_0x343b7c=>_0x29c614[_0x16f5('0x39')](_0x3d1746=>_0x3d1746['containsRange'](_0x343b7c,!0x0)))&&_0x30307f[_0x16f5('0x161')]());}const _0x4788a4=_0x3ea536(),_0x52aa37=_0x1a02a7['id'],_0x37e571=_0x16f5('0x154')+_0x10d626,_0x4d371d=this[_0x16f5('0x133')]({'id':_0x4788a4,'type':_0x37e571,'createdAt':new Date(),'authorId':_0x52aa37,'attributes':_0x46f7cd});for(const _0x265bcb of _0x29c614)_0x265bcb[_0x16f5('0x45')](),_0x265bcb[_0x16f5('0x8d')]||_0x16f5('0xb1')==_0x265bcb[_0x16f5('0x6f')][_0x16f5('0xa9')]||this[_0x16f5('0x74')](_0x37e571,_0x4788a4,_0x52aa37,_0x265bcb,_0x2160f9[_0x16f5('0x171')]());return _0x4d371d;}[_0x16f5('0x96')](_0x226f40,_0x4ddd28,_0x3d905b,_0x3a5190,_0x1ee36a){if(_0x226f40[_0x16f5('0x8d')])return[];if(_0x16f5('0x7a')===this[_0x16f5('0xcf')])return[];const _0x53210f=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x18'))['me']['id'],_0x4543d1=Array[_0x16f5('0x9e')](this[_0x16f5('0x15e')]['values']())['filter'](_0x5147a0=>'attribute'==_0x5147a0[_0x16f5('0x56')]&&_0x5147a0[_0x16f5('0x108')][_0x16f5('0xf6')]==_0x4ddd28&&_0x5147a0[_0x16f5('0xf1')](_0x226f40));if(_0x16f5('0x21')===this[_0x16f5('0xcf')]){const _0xe4d905=this['_findSuggestions'](_0x226f40,'insertion')[_0x16f5('0x88')](({meta:_0xefdb35})=>_0xefdb35[_0x16f5('0x3d')]&&!_0xefdb35[_0x16f5('0x17e')]&&!_0xefdb35[_0x16f5('0x166')])[_0x16f5('0x177')](({suggestion:_0x396fb9})=>_0x396fb9);_0x4543d1[_0x16f5('0x62')](..._0xe4d905);}const _0x398234=new Map([[_0x226f40,_0x3d905b]]);for(const _0x9bc5f0 of _0x4543d1){const _0x5877f3=_0x16f5('0xdc')==_0x9bc5f0[_0x16f5('0x56')]?_0x9bc5f0[_0x16f5('0x108')][_0x16f5('0x5')]:void 0x0,_0x3e2da9=_0x9bc5f0[_0x16f5('0x156')](),_0x260345=Array[_0x16f5('0x9e')](_0x398234['keys']())[_0x16f5('0x160')](_0x2a77d8=>_0x2a77d8[_0x16f5('0xb9')](_0x3e2da9));if(!_0x260345)continue;const _0x5213fa=_0x260345[_0x16f5('0xc0')](_0x3e2da9);this['_isBlockAttribute'](_0x4ddd28)&&_0x16f5('0xc7')==_0x9bc5f0[_0x16f5('0x56')]&&0x0!=_0x5213fa[_0x16f5('0x146')]||(_0x398234['delete'](_0x260345),_0x5213fa[_0x16f5('0x10e')](_0x322404=>{_0x398234[_0x16f5('0x123')](_0x322404,_0x3d905b);}),_0x16f5('0xc7')!=_0x9bc5f0[_0x16f5('0x56')]&&_0x5877f3!=_0x3a5190&&_0x398234[_0x16f5('0x123')](_0x260345[_0x16f5('0xd5')](_0x3e2da9),_0x5877f3));}const _0xe64d7d=[];for(const [_0x4f2b5f,_0x578acb]of _0x398234){const _0x32daae=_0x3ea536(),_0x4ce870={'key':_0x4ddd28,'oldValue':_0x578acb,'newValue':_0x3a5190};_0x4ddd28[_0x16f5('0x146')]>0x25&&console[_0x16f5('0xa4')](_0x16f5('0x38'),{'key':_0x4ddd28});const _0x4eb3f8=(_0x16f5('0x103')+(_0x4ddd28+'|'+Et({'newValue':_0x3a5190})))[_0x16f5('0x75')](0x0,0x3c),_0x13cf3c=this[_0x16f5('0x133')]({'id':_0x32daae,'type':_0x4eb3f8,'data':_0x4ce870,'createdAt':new Date(),'authorId':_0x53210f,'attributes':_0x1ee36a});_0xe64d7d[_0x16f5('0x140')](_0x13cf3c),this[_0x16f5('0x74')](_0x4eb3f8,_0x32daae,_0x53210f,_0x4f2b5f);}return _0xe64d7d;}['_registerBlockAttribute'](_0x7a96fc){this['_blockAttributeKeys'][_0x16f5('0xc9')](_0x7a96fc);}[_0x16f5('0x9')](_0x417aea){this[_0x16f5('0x8')]['add'](_0x417aea);}[_0x16f5('0xe4')](_0xb34598,_0xd614ef=[],_0x36663d=[]){this[_0x16f5('0x130')](_0xb34598,(_0x51c38c,..._0x566e72)=>{this[_0x16f5('0x15c')](()=>{_0x51c38c(..._0x566e72);});});for(const _0x15802b of _0xd614ef)this[_0x16f5('0x9')](_0x15802b);for(const _0x7c716b of _0x36663d)this[_0x16f5('0x10b')](_0x7c716b);}[_0x16f5('0xc2')](_0x492859){return'attribute'==_0x492859[_0x16f5('0x56')]?_0x492859[_0x16f5('0xbc')][_0x16f5('0x15d')]('|')[0x0]:null;}[_0x16f5('0xc3')](_0x209e2b,_0x5e3578){const _0x61a46a=_0x209e2b[_0x16f5('0xeb')]();this[_0x16f5('0x47')]['change'](_0x488fdf=>{_0x488fdf['updateMarker'](_0x61a46a,{'range':_0x5e3578});});}[_0x16f5('0x168')](_0x409f1e){const _0x37e2e2=_0x409f1e['id'],_0x1f5b8b=this[_0x16f5('0x27')]['config']['get']('collaboration.channelId');this[_0x16f5('0x32')][_0x16f5('0x5a')](_0x37e2e2)||this['_commentsRepository'][_0x16f5('0x176')]({'channelId':_0x1f5b8b,'threadId':_0x37e2e2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2ac09f=this[_0x16f5('0x32')][_0x16f5('0x2b')](_0x37e2e2);_0x2ac09f[_0x16f5('0x60')](_0x16f5('0x152')),_0x2ac09f['isRemovable']=!0x1,_0x409f1e[_0x16f5('0x135')]=_0x2ac09f;}['_checkSuggestionCorrectness'](_0x1fb09d,_0x3d7f8b,_0x974a08,_0x553e7e){if(_0x1fb09d['type']!=_0x3d7f8b||_0x1fb09d[_0x16f5('0xbc')]!=_0x974a08||_0x1fb09d[_0x16f5('0xba')]['id']!=_0x553e7e)throw this[_0x16f5('0x27')]['enableReadOnlyMode'](_0x16f5('0x6e')),new _0x37ee43(_0x16f5('0x6e'),this);}[_0x16f5('0x6')](_0x3104e5,_0x581a88){const _0x45e0fe=_0x3104e5[_0x16f5('0x156')]();if(_0x581a88[_0x16f5('0xb5')](_0x45e0fe))_0x3104e5[_0x16f5('0x4f')]();else{if(_0x45e0fe[_0x16f5('0x12f')](_0x581a88)){const _0x30b8d8=this['_model']['createPositionAt'](_0x581a88[_0x16f5('0x61')][_0x16f5('0x87')],_0x16f5('0xcd'));this[_0x16f5('0xc3')](_0x3104e5,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x45e0fe[_0x16f5('0x61')],_0x30b8d8));const _0xad3daa=_0x3ea536(),_0x5c94cd=_0x3104e5['creator']['id'],_0x4d33b7=_0x3104e5[_0x16f5('0x56')]+':'+_0x3104e5[_0x16f5('0xbc')];this['_setSuggestionData']({'id':_0xad3daa,'type':_0x4d33b7,'createdAt':new Date(),'authorId':_0x5c94cd,'data':_0x3104e5[_0x16f5('0x108')],'attributes':_0x3104e5[_0x16f5('0x16d')]});const _0x18681b=this[_0x16f5('0x47')][_0x16f5('0xcb')](_0x581a88['end'][_0x16f5('0x131')],_0x16f5('0xd0')),_0x57d392=this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x18681b,_0x45e0fe[_0x16f5('0xcd')]);this[_0x16f5('0x74')](_0x4d33b7,_0xad3daa,_0x5c94cd,_0x57d392);}else{if(_0x45e0fe['containsPosition'](_0x581a88[_0x16f5('0x61')])){const _0x419b16=this[_0x16f5('0x47')]['createPositionAt'](_0x581a88[_0x16f5('0x61')][_0x16f5('0x87')],'end');this['_setSuggestionRange'](_0x3104e5,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x45e0fe[_0x16f5('0x61')],_0x419b16));}else{const _0x14782b=this['_model'][_0x16f5('0xcb')](_0x581a88[_0x16f5('0xcd')][_0x16f5('0x131')],_0x16f5('0xd0'));this[_0x16f5('0xc3')](_0x3104e5,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0x14782b,_0x45e0fe[_0x16f5('0xcd')]));}}}}[_0x16f5('0x4')](_0x2c6ca7){for(const {suggestion:_0x426b30,meta:_0x3e53ac}of this['_findSuggestions'](_0x2c6ca7,_0x16f5('0xc7'))){if(!_0x3e53ac[_0x16f5('0x3d')])continue;const _0x54f7d9=_0x426b30[_0x16f5('0xc5')]();for(const _0x7756a7 of _0x54f7d9)if(!_0x2c6ca7['getDifference'](_0x7756a7)[_0x16f5('0x146')])return!0x0;}return!0x1;}[_0x16f5('0x44')](_0x134528){const _0x56e02a=this['editor']['plugins'][_0x16f5('0xe5')](_0x16f5('0x18'))['getUser'](_0x134528);if(!_0x56e02a)throw new _0x37ee43(_0x16f5('0x5b'),this);return _0x56e02a;}[_0x16f5('0x114')](_0x24d984){const _0x5434ce=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x18')),_0x4ca3f3=_0x4331a1(_0x16f5('0x3a')+_0x24d984),_0x4436cc=_0x5434ce['getUser'](_0x4ca3f3);return _0x4436cc||_0x5434ce[_0x16f5('0x1f')]({'id':_0x4ca3f3,'name':_0x24d984});}[_0x16f5('0x3e')](_0x980521,_0x5c5aa4,_0x592cb0,_0x4ef632,_0x374834){const _0x27876a=this[_0x16f5('0x44')](_0x4ef632),_0x2401f9=this['_suggestionFactory'][_0x16f5('0x105')](_0x980521,_0x5c5aa4,_0x592cb0,_0x27876a,_0x374834,_0x20cf6d=>{this[_0x16f5('0xee')](_0x592cb0,{'attributes':_0x20cf6d});const _0x528234=this[_0x16f5('0x8e')](_0x592cb0);this[_0x16f5('0x8f')](new Set([_0x528234])),this[_0x16f5('0xff')](new Set([_0x528234]));});return this[_0x16f5('0x14e')](_0x2401f9,_0x16f5('0x110'),()=>{this[_0x16f5('0xee')](_0x592cb0,{'state':_0x16f5('0xaf')});},{'priority':_0x16f5('0x17b')}),this[_0x16f5('0x14e')](_0x2401f9,_0x16f5('0x161'),()=>{this[_0x16f5('0xee')](_0x592cb0,{'state':_0x16f5('0x100')});},{'priority':_0x16f5('0x17b')}),this[_0x16f5('0x15e')][_0x16f5('0x123')](_0x592cb0,_0x2401f9),this[_0x16f5('0x22')][_0x16f5('0x123')](_0x2401f9,_0x16f5('0x72')),_0x2401f9;}['_splitMarkerName'](_0x411999){const _0x149edd=_0x411999['split'](':');return{'group':_0x149edd[0x0],'type':_0x149edd[0x1],'subType':_0x149edd['length']>=0x5?_0x149edd[0x2]:null,'id':_0x149edd['length']<0x5?_0x149edd[0x2]:_0x149edd[0x3],'authorId':_0x149edd[_0x16f5('0x146')]<0x5?_0x149edd[0x3]:_0x149edd[0x4],'markerCount':0x6==_0x149edd['length']?_0x149edd[0x5]:null};}['_breakSuggestionMarker'](_0x35a51b,_0x329c7b,_0x3bc5cf){const _0x844cee=_0x35a51b[_0x16f5('0x156')](),_0xfa241e=_0x844cee['start'],_0x3d8f2d=_0x844cee[_0x16f5('0xcd')];this[_0x16f5('0xc3')](_0x35a51b,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0xfa241e,_0x329c7b));const _0x5e16c1=_0x3ea536(),_0x557d1b=_0x35a51b[_0x16f5('0xba')]['id'],_0x2a895d=_0x35a51b['type']+(_0x35a51b[_0x16f5('0xbc')]?':'+_0x35a51b[_0x16f5('0xbc')]:'');this[_0x16f5('0x133')]({'id':_0x5e16c1,'type':_0x2a895d,'createdAt':new Date(),'authorId':_0x557d1b,'originalSuggestionId':_0x35a51b['id'],'attributes':_0x35a51b['attributes'],'data':_0x35a51b[_0x16f5('0x108')]});const _0xb26f22=this[_0x16f5('0xc2')](_0x35a51b);(_0x16f5('0xdb')==_0x35a51b[_0x16f5('0x56')]||_0xb26f22&&this[_0x16f5('0x20')](_0xb26f22))&&(_0x3bc5cf=this[_0x16f5('0x47')][_0x16f5('0x8a')](_0x3bc5cf[_0x16f5('0x131')])),this[_0x16f5('0x74')](_0x2a895d,_0x5e16c1,_0x557d1b,this[_0x16f5('0x47')]['createRange'](_0x3bc5cf,_0x3d8f2d));}[_0x16f5('0x9f')](_0x32c644,_0x2c13b2=null){const _0x51d647=[],_0x288ef7=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0x18'))['me'];Array[_0x16f5('0x104')](_0x32c644)||(_0x32c644=[_0x32c644]);for(const _0x317ec5 of this['getSuggestions']()){if(!_0x317ec5[_0x16f5('0x128')])continue;if(_0x2c13b2&&_0x317ec5['type']!=_0x2c13b2)continue;let _0x844bf2=!0x1;for(const _0x24b759 of _0x317ec5['getRanges']()){for(const _0x50b88d of _0x32c644){const _0x2aef48=_0x50b88d[_0x16f5('0x61')][_0x16f5('0xb5')](_0x24b759[_0x16f5('0xcd')])||_0x50b88d[_0x16f5('0xcd')][_0x16f5('0xb5')](_0x24b759[_0x16f5('0x61')]);if(_0x2aef48||_0x50b88d['getIntersection'](_0x24b759)){const _0x27bda0=_0x50b88d['containsRange'](_0x24b759)&&xt(this[_0x16f5('0x47')][_0x16f5('0x16c')],_0x24b759[_0x16f5('0x61')],_0x50b88d),_0x22a38a=_0x24b759[_0x16f5('0x12f')](_0x50b88d)&&xt(this['_model'][_0x16f5('0x16c')],_0x50b88d[_0x16f5('0x61')],_0x24b759);_0x51d647[_0x16f5('0x140')]({'suggestion':_0x317ec5,'meta':{'isOwn':_0x288ef7==_0x317ec5[_0x16f5('0x17a')],'isNextTo':_0x2aef48,'isInsideObject':_0x27bda0,'containsRangeInObject':_0x22a38a}}),_0x844bf2=!0x0;break;}}if(_0x844bf2)break;}}return _0x51d647;}[_0x16f5('0x74')](_0x1a8f00,_0x56a836,_0x4d5437,_0x46a976,_0x52d0a5){this[_0x16f5('0x47')][_0x16f5('0x172')](_0x1c2968=>{let _0xf06308=_0x16f5('0xb4')+_0x1a8f00+':'+_0x56a836+':'+_0x4d5437;_0x52d0a5&&(_0xf06308=_0xf06308+':'+_0x52d0a5),_0x1c2968[_0x16f5('0xe7')](_0xf06308,{'range':_0x46a976,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x16f5('0xad')](_0x4bab36){const _0x1528ad=_0x4bab36[_0x16f5('0x37')],_0x34bfd3=_0x4bab36[_0x16f5('0x68')];_0x4bab36[_0x16f5('0x37')]=null,_0x4bab36[_0x16f5('0x68')]=null,null!=_0x1528ad&&(_0x1528ad['next']=_0x34bfd3),null!=_0x34bfd3&&(_0x34bfd3[_0x16f5('0x37')]=_0x1528ad),_0x16f5('0xa1')==this[_0x16f5('0x22')][_0x16f5('0xe5')](_0x4bab36)&&(this['_suggestionState'][_0x16f5('0x123')](_0x4bab36,'removed'),this[_0x16f5('0x159')](_0x16f5('0xe'),_0x4bab36,_0x1528ad,_0x34bfd3));}[_0x16f5('0x133')](_0x26a03e){const _0x5d95e8=_0x26a03e['id'],_0x330d54=this[_0x16f5('0x11b')](_0x26a03e);if(this[_0x16f5('0xbb')]&&this[_0x16f5('0xbb')]['addSuggestion']){const _0x4f1e27=this[_0x16f5('0x27')][_0x16f5('0x77')]['get'](_0x16f5('0xd2')),_0x11090b=_0x330d54[_0x16f5('0x11')],_0x4a941c=_0x330d54['subType']?_0x330d54[_0x16f5('0x56')]+':'+_0x330d54[_0x16f5('0xbc')]:_0x330d54['type'],_0x28a999=this[_0x16f5('0x27')][_0x16f5('0x83')],_0x4c2b30=_0x4f1e27[_0x16f5('0xc9')](_0x13ea0f(_0x28a999,_0x16f5('0xf3'))),_0x481544={'id':_0x5d95e8,'type':_0x4a941c,'hasComments':_0x11090b,'data':_0x26a03e['data']||null,'originalSuggestionId':_0x26a03e['originalSuggestionId']||null,'attributes':_0x330d54[_0x16f5('0x16d')]};this['_adapter'][_0x16f5('0xa6')](_0x481544)[_0x16f5('0x102')](_0x12d943=>{_0x330d54[_0x16f5('0x151')]=!0x0,_0x4f1e27[_0x16f5('0x26')](_0x4c2b30),_0x12d943&&_0x12d943['createdAt']&&(this['_suggestions'][_0x16f5('0xe5')](_0x5d95e8)['createdAt']=_0x12d943[_0x16f5('0x89')]);})['catch'](_0x3ebfe0=>{throw _0x32f996('error-saving-suggestion-data-suggestion-discarded'),this[_0x16f5('0x27')]['model'][_0x16f5('0x170')]({'isUndoable':!0x1},()=>{_0x330d54[_0x16f5('0x161')]();}),_0x330d54['stopListening'](),this[_0x16f5('0x15e')][_0x16f5('0x17f')](_0x330d54['id']),this[_0x16f5('0x22')]['delete'](_0x330d54),_0x3ebfe0;});}return _0x330d54;}[_0x16f5('0x20')](_0x257a7f){return this[_0x16f5('0xe9')][_0x16f5('0x11e')](_0x257a7f);}[_0x16f5('0xee')](_0x22236b,_0x28eb6f){const _0x9acd70=this[_0x16f5('0x27')][_0x16f5('0x77')][_0x16f5('0xe5')](_0x16f5('0xd2')),_0x29c1c2=this[_0x16f5('0x8e')](_0x22236b);if(this[_0x16f5('0xbb')]&&this[_0x16f5('0xbb')]['updateSuggestion']){if(_0x29c1c2[_0x16f5('0x151')]){const _0x1610eb=_0x9acd70['add'](_0x13ea0f(this['editor'][_0x16f5('0x83')],_0x16f5('0xf3')));this['_adapter'][_0x16f5('0x28')](_0x22236b,_0x28eb6f)[_0x16f5('0x102')](()=>{_0x9acd70[_0x16f5('0x26')](_0x1610eb);});}else _0x29c1c2['on']('change:_saved',()=>{this[_0x16f5('0xee')](_0x22236b,_0x28eb6f);});}}[_0x16f5('0x6d')](_0x24d0b0){if(!this[_0x16f5('0xbb')]||!this[_0x16f5('0xbb')][_0x16f5('0x8e')])throw new _0x37ee43(_0x16f5('0x14c'),this);return this[_0x16f5('0xbb')]['getSuggestion'](_0x24d0b0);}[_0x16f5('0x124')](_0x474ffd){const {id:_0x3ef171,type:_0x17e8b6,subType:_0x172b36,authorId:_0x522f65}=this[_0x16f5('0x15')](_0x474ffd),_0x3bd700=this[_0x16f5('0x15e')]['get'](_0x3ef171)||this['_createSuggestion'](_0x17e8b6,_0x172b36,_0x3ef171,_0x522f65,{});switch(this['_checkSuggestionCorrectness'](_0x3bd700,_0x17e8b6,_0x172b36,_0x522f65),this['_suggestionState'][_0x16f5('0xe5')](_0x3bd700)){case _0x16f5('0x72'):this['_getSuggestionData'](_0x3ef171)['then'](_0x299e18=>{let _0x30f218=Promise[_0x16f5('0x3f')]();_0x299e18[_0x16f5('0x11')]&&(_0x30f218=this[_0x16f5('0x32')][_0x16f5('0xc1')]({'channelId':this[_0x16f5('0x27')][_0x16f5('0x76')][_0x16f5('0xe5')]('collaboration.channelId'),'threadId':_0x3ef171})),_0x30f218['then'](()=>{this['addSuggestionData'](_0x299e18)['_saved']=!0x0;});}),this[_0x16f5('0x22')][_0x16f5('0x123')](_0x3bd700,_0x16f5('0x49'));break;case _0x16f5('0x106'):this[_0x16f5('0xee')](_0x3ef171,{'state':_0x16f5('0x15a')});case _0x16f5('0xb6'):this['_suggestionState'][_0x16f5('0x123')](_0x3bd700,_0x16f5('0xa1')),this[_0x16f5('0x159')](_0x16f5('0x95'),_0x3bd700);break;case _0x16f5('0xa1'):this[_0x16f5('0x159')](_0x16f5('0xce'),_0x3bd700);}return _0x3bd700['addMarkerName'](_0x474ffd),_0x3bd700;}[_0x16f5('0xff')](_0x24b410){const _0x372dbb=Array[_0x16f5('0x9e')](_0x24b410),_0x2fac61=_0x372dbb[_0x16f5('0x88')](_0x3d0ae3=>_0x16f5('0xdc')==_0x3d0ae3[_0x16f5('0x56')]);this['_refreshAttributeSuggestionsChain'](_0x2fac61);const _0x32164d=_0x372dbb[_0x16f5('0x88')](_0x4a13f8=>!_0x4a13f8['isMultiRange']&&'attribute'!=_0x4a13f8[_0x16f5('0x56')]),_0x456309=this['getSuggestions']({'skipNotAttached':!0x0})[_0x16f5('0x88')](_0x153545=>!_0x153545[_0x16f5('0xbd')]&&_0x16f5('0xdc')!=_0x153545[_0x16f5('0x56')]),_0x25409c=_0x456309[_0x16f5('0x88')](_0x235476=>!_0x24b410[_0x16f5('0x11e')](_0x235476)),_0x335f66=new Map(_0x456309[_0x16f5('0x177')](_0x16ec60=>[_0x16ec60,this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x16ec60[_0x16f5('0x56')],_0x16ec60[_0x16f5('0xbc')],_0x16f5('0x97'))])),_0x30c288=new Map(_0x456309[_0x16f5('0x177')](_0x153df4=>[_0x153df4,_0x153df4[_0x16f5('0x156')]()])),_0x4d3e53=new Set(),_0x5379ef=new Set();for(let _0xd143e4=0x0;_0xd143e4<_0x32164d[_0x16f5('0x146')];_0xd143e4++)_0x4e74c9(_0x32164d[_0xd143e4],_0x32164d,_0xd143e4+0x1);for(let _0x8ef583=0x0;_0x8ef583<_0x32164d[_0x16f5('0x146')];_0x8ef583++)_0x4e74c9(_0x32164d[_0x8ef583],_0x25409c,0x0);const _0x27073a=new Set();for(let _0x44793f=0x0;_0x44793f<_0x32164d['length'];_0x44793f++){const _0x37b986=_0x32164d[_0x44793f];!_0x5379ef[_0x16f5('0x11e')](_0x37b986)&&_0x37b986[_0x16f5('0x37')]&&(_0x27073a['add'](_0x37b986[_0x16f5('0x37')]),_0x37b986[_0x16f5('0x37')][_0x16f5('0x68')]===_0x37b986&&(_0x37b986[_0x16f5('0x37')][_0x16f5('0x68')]=null),_0x37b986[_0x16f5('0x37')]=null),!_0x4d3e53['has'](_0x37b986)&&_0x37b986['next']&&(_0x27073a['add'](_0x37b986[_0x16f5('0x68')]),_0x37b986[_0x16f5('0x68')][_0x16f5('0x37')]===_0x37b986&&(_0x37b986[_0x16f5('0x68')][_0x16f5('0x37')]=null),_0x37b986[_0x16f5('0x68')]=null);}function _0x4e74c9(_0x2a4a93,_0x33381b,_0xbc6456){for(let _0x4586ae=_0xbc6456;_0x4586ae<_0x33381b[_0x16f5('0x146')];_0x4586ae++){const _0xfbc27f=_0x1ae5ed(_0x2a4a93,_0x33381b[_0x4586ae]);_0xfbc27f&&(_0xfbc27f[0x0][_0x16f5('0x68')]=_0xfbc27f[0x1],_0xfbc27f[0x1]['previous']=_0xfbc27f[0x0],_0x4d3e53[_0x16f5('0xc9')](_0xfbc27f[0x0]),_0x5379ef[_0x16f5('0xc9')](_0xfbc27f[0x1]));}}function _0x1ae5ed(_0x5e826e,_0x15e000){if(_0x5e826e[_0x16f5('0x17a')]['id']!==_0x15e000[_0x16f5('0x17a')]['id'])return null;const _0x4117ed=_0x335f66[_0x16f5('0xe5')](_0x5e826e)(_0x5e826e,_0x15e000,_0x30c288[_0x16f5('0xe5')](_0x5e826e),_0x30c288[_0x16f5('0xe5')](_0x15e000));if(!_0x4117ed)return null;return _0x335f66[_0x16f5('0xe5')](_0x15e000)(_0x5e826e,_0x15e000,_0x30c288[_0x16f5('0xe5')](_0x5e826e),_0x30c288['get'](_0x15e000))?_0x4117ed[0x1][_0x16f5('0x135')]&&_0x4117ed[0x1][_0x16f5('0x135')][_0x16f5('0x146')]?null:_0x4117ed:null;}_0x27073a['size']&&this[_0x16f5('0xff')](_0x27073a);}[_0x16f5('0x12')](_0x4c71d9){if(0x0==_0x4c71d9[_0x16f5('0x146')])return;const _0x4af68d=this[_0x16f5('0x14')]({'skipNotAttached':!0x0})['filter'](_0x3622be=>_0x16f5('0xdc')==_0x3622be['type']&&_0x3622be[_0x16f5('0x180')]),_0x17b053=[],_0x2f3223=new Map();for(const _0x5900d4 of _0x4af68d){const _0x133071=_0x4331a1(_0x5900d4[_0x16f5('0x16d')]);_0x2f3223[_0x16f5('0x11e')](_0x133071)||(_0x2f3223[_0x16f5('0x123')](_0x133071,_0x17b053['length']),_0x17b053[_0x16f5('0x140')]([]));const _0x57eee=_0x2f3223[_0x16f5('0xe5')](_0x133071);_0x17b053[_0x57eee][_0x16f5('0x140')](_0x5900d4);}!function(){_0x17b053['sort']((_0x1dbc57,_0xab25cf)=>{const _0x4c1d26=_0x1dbc57[0x0][_0x16f5('0x89')],_0x47ca46=_0xab25cf[0x0][_0x16f5('0x89')];return _0x4c1d26==_0x47ca46?_0x1dbc57[0x0]['attributes'][_0x16f5('0x79')]<_0xab25cf[0x0][_0x16f5('0x16d')][_0x16f5('0x79')]?-0x1:0x1:_0x4c1d26<_0x47ca46?-0x1:0x1;});for(const _0x5f00e6 of _0x17b053)_0x5f00e6[_0x16f5('0x174')]((_0x356380,_0x4cd824)=>_0x356380['id']<_0x4cd824['id']?-0x1:0x1);}();for(let _0x1e294f=0x0;_0x1e294f<_0x17b053[_0x16f5('0x146')];_0x1e294f++){if(0x0==_0x17b053[_0x1e294f][_0x16f5('0x146')])continue;const _0x29ae36=[];for(let _0x3ae8d0=_0x1e294f+0x1;_0x3ae8d0<_0x17b053['length'];_0x3ae8d0++)0x0!=_0x17b053[_0x3ae8d0][_0x16f5('0x146')]&&_0x3c040a(_0x17b053[_0x1e294f],_0x17b053[_0x3ae8d0])&&_0x29ae36[_0x16f5('0x140')](_0x3ae8d0);for(const _0x5f3a37 of _0x29ae36)_0x17b053[_0x1e294f]=_0x17b053[_0x1e294f]['concat'](_0x17b053[_0x5f3a37]),_0x17b053[_0x5f3a37]=[];}for(const _0x3b63d1 of _0x17b053)for(let _0x294654=0x0;_0x294654<_0x3b63d1[_0x16f5('0x146')];_0x294654++)_0x3b63d1[_0x294654][_0x16f5('0x68')]=_0x3b63d1[_0x294654+0x1]||null;for(const _0x51a8fd of _0x17b053)for(let _0x4489bd=0x0;_0x4489bd<_0x51a8fd['length'];_0x4489bd++)_0x51a8fd[_0x4489bd]['previous']=_0x51a8fd[_0x4489bd-0x1]||null;function _0x3c040a(_0x168d02,_0x2dcf19){if(_0x168d02[0x0][_0x16f5('0x16d')][_0x16f5('0x79')]!==_0x2dcf19[0x0][_0x16f5('0x16d')]['groupId']&&_0x168d02[0x0]['author']!==_0x2dcf19[0x0][_0x16f5('0x17a')])return!0x1;if(!function(_0x1b65c5,_0x1e959d){if(!_0x1b65c5[_0x16f5('0x11')]&&!_0x1e959d[_0x16f5('0x11')])return!0x0;if(_0x1b65c5[_0x16f5('0x11')]&&_0x1e959d['hasComments'])return!0x1;if(_0x1b65c5[_0x16f5('0x11')]&&_0x1e959d[_0x16f5('0x89')]<_0x1b65c5[_0x16f5('0x135')][_0x16f5('0xe8')][_0x16f5('0xe5')](0x0)[_0x16f5('0x89')])return!0x0;if(_0x1e959d[_0x16f5('0x11')]&&_0x1b65c5[_0x16f5('0x89')]<_0x1e959d['commentThread'][_0x16f5('0xe8')][_0x16f5('0xe5')](0x0)[_0x16f5('0x89')])return!0x0;return!0x1;}(_0x168d02[0x0],_0x2dcf19[0x0]))return!0x1;const _0x241704=_0x41bede(_0x168d02[0x0][_0x16f5('0x16d')],'groupId'),_0x19cc19=_0x41bede(_0x2dcf19[0x0][_0x16f5('0x16d')],'groupId');if(!_0x5223db(_0x241704,_0x19cc19))return!0x1;return!!_0x168d02[_0x16f5('0x23')](_0x3294ca=>_0x2dcf19[_0x16f5('0x39')](_0x29769c=>_0x3294ca[_0x16f5('0x156')]()[_0x16f5('0xb5')](_0x29769c[_0x16f5('0x156')]())))&&_0x2dcf19[_0x16f5('0x23')](_0x4ec30c=>_0x168d02[_0x16f5('0x39')](_0x1fb8b8=>_0x4ec30c['getFirstRange']()[_0x16f5('0xb5')](_0x1fb8b8[_0x16f5('0x156')]())));}}['_joinWithAdjacentSuggestions'](_0x5805cf){const _0x3d8fa4=Array[_0x16f5('0x9e')](_0x5805cf),_0x812289=this['getSuggestions']({'skipNotAttached':!0x0}),_0x56f7bc=_0x812289[_0x16f5('0x88')](_0x131c42=>!_0x5805cf[_0x16f5('0x11e')](_0x131c42)),_0x53e344=new Map(_0x3d8fa4[_0x16f5('0x177')](_0x5471fa=>[_0x5471fa,this[_0x16f5('0x24')][_0x16f5('0x13c')](_0x5471fa[_0x16f5('0x56')],_0x5471fa['subType'],_0x16f5('0xef'))])),_0x108ecc=new Map(_0x812289['map'](_0x431a3d=>[_0x431a3d,_0x431a3d['getRanges']()]));for(let _0x420941=0x0;_0x420941<_0x3d8fa4[_0x16f5('0x146')];_0x420941++){if(_0x1fc211(this,_0x3d8fa4[_0x420941],_0x3d8fa4,_0x420941+0x1))return!0x0;}for(let _0x2d5f3b=0x0;_0x2d5f3b<_0x3d8fa4[_0x16f5('0x146')];_0x2d5f3b++){if(_0x1fc211(this,_0x3d8fa4[_0x2d5f3b],_0x56f7bc,0x0))return!0x0;}return!0x1;function _0x1fc211(_0x2d991c,_0x343271,_0x220fec,_0x47b2e3){for(let _0xdebac8=_0x47b2e3;_0xdebac8<_0x220fec[_0x16f5('0x146')];_0xdebac8++){const _0x42d9fa=_0x220fec[_0xdebac8];if(_0x42d9fa[_0x16f5('0x56')]!==_0x343271['type']||_0x42d9fa[_0x16f5('0x17a')]['id']!==_0x343271['author']['id']||_0x42d9fa[_0x16f5('0xbc')]!==_0x343271[_0x16f5('0xbc')])continue;if(!Ft(_0x343271,_0x42d9fa,[_0x16f5('0x79')]))continue;if(_0x16f5('0xdc')==_0x343271[_0x16f5('0x56')]&&_0x343271[_0x16f5('0x108')][_0x16f5('0x5')]!=_0x42d9fa[_0x16f5('0x108')][_0x16f5('0x5')])continue;if(_0x16f5('0xdc')==_0x343271[_0x16f5('0x56')]&&_0x2d991c['_isBlockAttribute'](_0x343271[_0x16f5('0x108')][_0x16f5('0xf6')]))continue;if(_0x16f5('0xdb')==_0x343271[_0x16f5('0x56')]){const _0x588bcb=_0x2d991c[_0x16f5('0x27')]['model'],_0x451d11=_0x343271[_0x16f5('0x11a')]();if(_0x451d11&&(_0x588bcb[_0x16f5('0x16c')][_0x16f5('0xa7')](_0x451d11)||_0x588bcb['schema'][_0x16f5('0x2f')](_0x451d11)))continue;}const _0x507b6a=_0x53e344[_0x16f5('0xe5')](_0x343271),_0x2d889c=_0x108ecc['get'](_0x343271),_0x3fdcdc=_0x108ecc[_0x16f5('0xe5')](_0x42d9fa),_0x55407b=_0x343271[_0x16f5('0x135')]&&_0x343271[_0x16f5('0x135')][_0x16f5('0x146')],_0x5265b9=_0x42d9fa[_0x16f5('0x135')]&&_0x42d9fa[_0x16f5('0x135')][_0x16f5('0x146')];if(!_0x55407b&&_0x507b6a(_0x3fdcdc,_0x2d889c))return _0x2d991c[_0x16f5('0xc6')](_0x42d9fa,_0x343271),_0x108ecc[_0x16f5('0x17f')](_0x343271),!0x0;if(!_0x5265b9&&_0x507b6a(_0x2d889c,_0x3fdcdc))return _0x2d991c[_0x16f5('0xc6')](_0x343271,_0x42d9fa),_0x108ecc[_0x16f5('0x17f')](_0x42d9fa),!0x0;}return!0x1;}}[_0x16f5('0xc6')](_0xcf0f18,_0x173ac7){if(_0xcf0f18[_0x16f5('0xbd')])for(const _0x49f978 of _0x173ac7[_0x16f5('0xc5')]())_0xcf0f18['addRange'](_0x49f978);else{const _0x1c671b=_0x173ac7['getFirstRange']()['end'];this[_0x16f5('0xc3')](_0xcf0f18,this[_0x16f5('0x47')][_0x16f5('0x4a')](_0xcf0f18[_0x16f5('0x156')]()[_0x16f5('0x61')],_0x1c671b));}_0x173ac7['removeMarkers']();}[_0x16f5('0x137')](_0x40532a,_0x3ff6e7){const _0x592f59=_0x40532a[_0x16f5('0xfe')]('format')||_0x40532a[_0x16f5('0xfe')](_0x16f5('0xdc'))?'FORMATTING':_0x40532a['toUpperCase']();return _0x13ea0f(this[_0x16f5('0x27')][_0x16f5('0x83')],_0x3ff6e7+'_'+_0x592f59+_0x16f5('0x7e'));}[_0x16f5('0x70')](){const _0x33a1fb=this[_0x16f5('0x27')];_0xafe9cd(this[_0x16f5('0x47')],({left:_0x327ea7,entered:_0x635ef5})=>{const _0x254b0c=[];for(const _0x6d111e of _0x327ea7){const {group:_0x487ca1,type:_0x30de5a}=this[_0x16f5('0x15')](_0x6d111e[_0x16f5('0x81')]);if(_0x16f5('0xa')===_0x487ca1){_0x254b0c[_0x16f5('0x140')](this['_getMarkerAnnouncementText'](_0x30de5a,_0x16f5('0xfd')));break;}}for(const _0x1e4619 of _0x635ef5){const {group:_0x4e5010,type:_0x43b70a}=this[_0x16f5('0x15')](_0x1e4619[_0x16f5('0x81')]);if(_0x16f5('0xa')===_0x4e5010){_0x254b0c[_0x16f5('0x140')](this[_0x16f5('0x137')](_0x43b70a,_0x16f5('0xde')));break;}}_0x254b0c['length']&&_0x33a1fb['ui']['ariaLiveAnnouncer'][_0x16f5('0x35')](_0x16f5('0xb3'),_0x254b0c[_0x16f5('0xef')]('\x20'));});}['_processAttributeChanges'](_0x37e738){if(this[_0x16f5('0x12a')])return!0x1;const _0x36d585=this[_0x16f5('0x27')],_0x2a4490=_0x36d585[_0x16f5('0xb2')][_0x16f5('0xda')][_0x16f5('0x17c')][_0x16f5('0x14d')]();if(0x0==_0x2a4490['length'])return!0x1;const _0xe6934f=[],_0x3e8492=_0x2a4490['filter'](_0x4a0582=>_0x16f5('0xdc')==_0x4a0582[_0x16f5('0x56')]),_0x5e73f1=_0x2a4490[_0x16f5('0x88')](_0xe2a7ce=>_0x16f5('0x13')==_0xe2a7ce[_0x16f5('0x56')]&&_0x16f5('0x0')!=_0xe2a7ce['name']),_0x1e6da4=_0x2a4490[_0x16f5('0x88')](_0xb7dbc6=>_0x16f5('0x26')==_0xb7dbc6['type']&&_0x16f5('0x0')!=_0xb7dbc6[_0x16f5('0x81')]);for(const _0x294a42 of _0x3e8492)_0xe6934f['push']({'key':_0x294a42[_0x16f5('0x12c')],'newValue':_0x294a42['attributeNewValue'],'oldValue':_0x294a42[_0x16f5('0x178')],'range':Ut(_0x294a42[_0x16f5('0x16f')],_0x36d585[_0x16f5('0xb2')])});for(const _0x25b640 of _0x5e73f1){const _0x44fa23=_0x1e6da4[_0x16f5('0x160')](_0x11f04f=>_0x11f04f[_0x16f5('0x2e')][_0x16f5('0xb5')](_0x25b640[_0x16f5('0x2e')]));_0x44fa23&&_0xe6934f['push']({'key':_0x16f5('0x142'),'newValue':_0x25b640[_0x16f5('0x81')],'oldValue':_0x44fa23[_0x16f5('0x81')],'range':_0x36d585[_0x16f5('0xb2')]['createRangeOn'](_0x25b640[_0x16f5('0x2e')][_0x16f5('0x64')])});}return 0x0!=_0xe6934f[_0x16f5('0x146')]&&this[_0x16f5('0xa8')](_0x37e738,_0xe6934f);}[_0x16f5('0xab')](_0x19baee){let _0x543346=!0x1;const _0xf2917c=this[_0x16f5('0x27')][_0x16f5('0xb2')]['document'][_0x16f5('0x17c')][_0x16f5('0x10f')]()[_0x16f5('0x88')](_0x301376=>_0x301376[_0x16f5('0x108')][_0x16f5('0x34')]&&_0x301376[_0x16f5('0x81')][_0x16f5('0xfe')]('suggestion:attribute:'));for(const _0x445f8d of _0xf2917c){const {subType:_0x4cc97a,id:_0x35cc9f}=this[_0x16f5('0x15')](_0x445f8d[_0x16f5('0x81')]),_0x4b24e1=_0x4cc97a[_0x16f5('0x15d')]('|')[0x0];for(const _0x42677c of this[_0x16f5('0x14')]({'skipNotAttached':!0x0}))_0x42677c['id']!=_0x35cc9f&&_0x16f5('0xdc')==_0x42677c['type']&&_0x42677c[_0x16f5('0x108')]&&_0x42677c[_0x16f5('0x108')]['key']==_0x4b24e1&&_0x42677c[_0x16f5('0x156')]()[_0x16f5('0xb9')](_0x445f8d[_0x16f5('0x108')][_0x16f5('0x34')])&&(this['_reduceSuggestionAttributeRange'](_0x42677c,_0x445f8d[_0x16f5('0x108')][_0x16f5('0x34')],_0x19baee),_0x543346=!0x0);}return _0x543346;}['_recordAttributeChanges'](_0x26931c){this[_0x16f5('0x27')],(this[_0x16f5('0x12a')]=!0x0,_0x26931c());}[_0x16f5('0x8b')](_0x4ce3d3){const _0x46dd6e=this[_0x16f5('0x20')](_0x4ce3d3),_0x52bad7=this[_0x16f5('0x8')][_0x16f5('0x11e')](_0x4ce3d3);return _0x46dd6e||_0x52bad7;}['_reduceExistingSuggestions'](_0x64719f,_0x19f8f6){if(0x0==_0x19f8f6[_0x16f5('0x146')])return!0x1;let _0xf2ac68=!0x1;for(const _0x137c1a of _0x19f8f6){const _0x237e24=this[_0x16f5('0x9f')](_0x137c1a[_0x16f5('0x16f')],'attribute')[_0x16f5('0x88')](_0x49d5e6=>!_0x49d5e6['meta'][_0x16f5('0x166')])[_0x16f5('0x177')](_0x50fbb0=>_0x50fbb0[_0x16f5('0xa')]),_0x147f4f=_0x4331a1({'newValue':_0x137c1a[_0x16f5('0x7b')]});_0x237e24['filter'](_0x123697=>{const [_0x45036d,_0xd85ed8]=_0x123697[_0x16f5('0xbc')][_0x16f5('0x15d')]('|');return _0x45036d==_0x137c1a[_0x16f5('0xf6')]&&_0xd85ed8!=_0x147f4f;})[_0x16f5('0x10e')](_0x1ef6d6=>{this[_0x16f5('0x30')](_0x1ef6d6,_0x137c1a[_0x16f5('0x16f')],_0x64719f),_0xf2ac68=!0x0;});}return _0xf2ac68;}['_reduceSuggestionAttributeRange'](_0x2f3731,_0x530cff,_0x14f6a1){const _0x1ea22c=_0x2f3731[_0x16f5('0x156')]()['getDifference'](_0x530cff);0x0!==_0x1ea22c['length']?0x1!==_0x1ea22c[_0x16f5('0x146')]?this['_breakSuggestionMarker'](_0x2f3731,_0x530cff[_0x16f5('0x61')],_0x530cff[_0x16f5('0xcd')]):this[_0x16f5('0xc3')](_0x2f3731,_0x1ea22c[0x0]):_0x14f6a1[_0x16f5('0xb8')](_0x2f3731[_0x16f5('0xeb')]());}}class Bt{constructor(_0xfde03e){this[_0x16f5('0x42')]=_0xfde03e,this[_0x16f5('0x47')]=_0xfde03e['model'],this['_customCallbacks']=new Map(),this[_0x16f5('0xae')]=new Map(),this[_0x16f5('0x4d')]();}[_0x16f5('0x105')](_0x5baf21,_0x116287,_0x7cb7e7,_0x5c119a,_0x459b87,_0x4c71c7){return new _0x2160f9(this[_0x16f5('0x47')],{'type':_0x5baf21,'subType':_0x116287,'id':_0x7cb7e7,'author':_0x5c119a,'creator':_0x5c119a,'attributes':_0x459b87,'onAttributesChange':_0x4c71c7,'onAccept':(..._0x1728fc)=>this[_0x16f5('0x13c')](_0x5baf21,_0x116287,_0x16f5('0x110'))(..._0x1728fc),'onDiscard':(..._0xa97924)=>this[_0x16f5('0x13c')](_0x5baf21,_0x116287,_0x16f5('0x161'))(..._0xa97924)});}[_0x16f5('0x85')](_0x20d49e,_0x5d38f9,_0x1e9b94,_0x357458){const _0x51a2eb=_0x20d49e+':'+_0x5d38f9+':'+_0x1e9b94;this['_customCallbacks'][_0x16f5('0x123')](_0x51a2eb,_0x357458);}[_0x16f5('0x13c')](_0x3ad78c,_0x17e0dd,_0x451575){const _0x150bfa=_0x3ad78c+':'+_0x17e0dd+':'+_0x451575;return this[_0x16f5('0x7c')][_0x16f5('0xe5')](_0x150bfa)||this[_0x16f5('0xae')][_0x16f5('0xe5')](_0x3ad78c+':'+_0x451575);}[_0x16f5('0x4d')](){const _0x432241=()=>!0x1,_0x525bcf=_0x82ed7f=>{_0x82ed7f[_0x16f5('0x174')]((_0x59daad,_0x597b31)=>_0x59daad[_0x16f5('0x61')][_0x16f5('0x112')](_0x597b31[_0x16f5('0x61')])?0x1:-0x1),this[_0x16f5('0x47')]['change'](_0x171ecf=>{for(const _0x14a371 of _0x82ed7f){let _0x39ba3d;_0x39ba3d=_0x14a371[_0x16f5('0xcd')][_0x16f5('0x92')]&&_0x14a371[_0x16f5('0xcd')]['parent']==_0x14a371['start']['nodeAfter']?_0x171ecf['createSelection'](_0x14a371[_0x16f5('0x61')][_0x16f5('0x64')],'on'):_0x171ecf[_0x16f5('0x9b')](_0x14a371),this[_0x16f5('0x47')]['deleteContent'](_0x39ba3d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x58a244=(_0x1eedc9,_0x1d93ca)=>{_0x1d93ca&&this[_0x16f5('0x47')][_0x16f5('0x172')](_0xa3097e=>{const {commandName:_0x4c1827,commandParams:_0x5d8348=[]}=_0x1d93ca,_0x1864f0=_0x1eedc9[_0x16f5('0x177')](_0x256168=>(Rt(_0x256168)&&(_0x256168=this['_model'][_0x16f5('0x4a')](_0x256168['end'])),_0x256168))[_0x16f5('0x88')](_0x133e1b=>_0x16f5('0xb1')!==_0x133e1b[_0x16f5('0x6f')][_0x16f5('0xa9')]);if(_0x1864f0[_0x16f5('0x146')]<0x1)return;const _0x106c18=Array[_0x16f5('0x9e')](this['_model'][_0x16f5('0xda')][_0x16f5('0x14f')][_0x16f5('0xc5')]())[_0x16f5('0x177')](_0xd8e022=>_0x4110f1['fromRange'](_0xd8e022));_0xa3097e[_0x16f5('0x78')](_0x1864f0);for(const _0x574803 of this[_0x16f5('0x42')][_0x16f5('0x17')]['commands']())_0x574803[_0x16f5('0x4e')]();_0x5d8348[_0x16f5('0x140')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x16f5('0x126')](_0x4c1827,..._0x5d8348);const _0x4a5345=_0x106c18['filter'](_0x4bf293=>_0x16f5('0xb1')!=_0x4bf293['root'][_0x16f5('0xa9')]);_0x4a5345['length']>0x0&&_0xa3097e[_0x16f5('0x78')](_0x4a5345);for(const _0x4f7326 of _0x106c18)_0x4f7326['detach']();});},_0x31a020=(_0x5413d3,_0x13689d)=>0x1==_0x5413d3[_0x16f5('0x146')]&&0x1==_0x13689d[_0x16f5('0x146')]&&_0x5413d3[0x0][_0x16f5('0xcd')][_0x16f5('0xb5')](_0x13689d[0x0][_0x16f5('0x61')]),_0x33274a=(_0x57ff43,_0x45e745,_0x45b5ef,_0x3c0a22)=>Gt(_0x57ff43,_0x45e745,_0x45b5ef,_0x3c0a22,this['_model'])?[_0x57ff43,_0x45e745]:Gt(_0x45e745,_0x57ff43,_0x3c0a22,_0x45b5ef,this[_0x16f5('0x47')])?[_0x45e745,_0x57ff43]:null;this[_0x16f5('0xae')]['set']('insertion:accept',_0x432241),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0xe6'),_0x525bcf),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x6b'),_0x31a020),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x138'),_0x33274a),this['_defaultCallbacks'][_0x16f5('0x123')](_0x16f5('0x14a'),_0x525bcf),this['_defaultCallbacks'][_0x16f5('0x123')](_0x16f5('0xc'),_0x432241),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x46'),_0x31a020),this['_defaultCallbacks'][_0x16f5('0x123')](_0x16f5('0x116'),_0x33274a),this[_0x16f5('0xae')][_0x16f5('0x123')]('formatInline:accept',_0x58a244),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x2'),_0x432241),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x65'),_0x31a020),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x36'),_0x432241),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x1'),_0x58a244),this['_defaultCallbacks'][_0x16f5('0x123')](_0x16f5('0x9d'),_0x432241),this[_0x16f5('0xae')]['set'](_0x16f5('0x40'),_0x31a020),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0xca'),_0x432241),this['_defaultCallbacks'][_0x16f5('0x123')](_0x16f5('0xa5'),_0x432241),this['_defaultCallbacks'][_0x16f5('0x123')]('attribute:discard',(_0xb70782,_0x2e254f)=>{if(!_0x2e254f)return;const _0x10dc0c=this['_editor'][_0x16f5('0x77')][_0x16f5('0xe5')](p);this['_model'][_0x16f5('0x172')](_0x3c776e=>{if(_0x16f5('0x142')==_0x2e254f['key'])for(const _0x28c194 of _0xb70782){const _0x4a27a5=_0x28c194['start']['nodeAfter'],_0xec1620=_0x2e254f[_0x16f5('0x5')];_0x3c776e[_0x16f5('0xfc')](_0x4a27a5,_0xec1620);}else{if(_0x10dc0c[_0x16f5('0x20')](_0x2e254f[_0x16f5('0xf6')]))for(const _0x3b76f0 of _0xb70782)void 0x0!==_0x2e254f[_0x16f5('0x5')]?_0x3c776e['setAttribute'](_0x2e254f[_0x16f5('0xf6')],_0x2e254f['oldValue'],_0x3b76f0[_0x16f5('0x61')]['nodeAfter']):_0x3c776e['removeAttribute'](_0x2e254f[_0x16f5('0xf6')],_0x3b76f0[_0x16f5('0x61')][_0x16f5('0x64')]);else for(const _0x41519f of _0xb70782)_0x2e254f['oldValue']?_0x3c776e[_0x16f5('0x10a')](_0x2e254f[_0x16f5('0xf6')],_0x2e254f['oldValue'],_0x41519f):_0x3c776e['removeAttribute'](_0x2e254f[_0x16f5('0xf6')],_0x41519f);}});}),this[_0x16f5('0xae')][_0x16f5('0x123')](_0x16f5('0x10d'),_0x31a020);}}function xt(_0x525226,_0x23871b,_0x1d85b3){for(const _0x2df25a of _0x23871b[_0x16f5('0x131')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2df25a[_0x16f5('0x6f')]==_0x2df25a)return!0x1;if(!_0x1d85b3[_0x16f5('0x4c')](_0x2df25a))return!0x1;if(_0x525226[_0x16f5('0xa7')](_0x2df25a)||_0x525226['isLimit'](_0x2df25a))return!0x0;}return!0x1;}function Rt(_0x39152b){return _0x39152b[_0x16f5('0xcd')]['parent']==_0x39152b[_0x16f5('0x61')][_0x16f5('0x64')]&&_0x39152b[_0x16f5('0xcd')][_0x16f5('0x50')];}function Tt(_0x41d014,_0xfcba4e,_0x187ca8,_0x17b98a){const _0x1aa52f=_0x2099eb=>!_0x2099eb['item']['is'](_0x16f5('0x99'))&&!_0x17b98a[_0x16f5('0xa7')](_0x2099eb[_0x16f5('0x25')]),_0x25b7e5=_0x41d014[_0x16f5('0x61')][_0x16f5('0x115')](_0x1aa52f),_0x547e7d=_0x41d014[_0x16f5('0xcd')]['getLastMatchingPosition'](_0x1aa52f,{'direction':'backward'});return(!_0x41d014[_0x16f5('0x61')]['isEqual'](_0x25b7e5)||!_0x41d014['end']['isEqual'](_0x547e7d))&&(_0x25b7e5['isBefore'](_0x547e7d)?_0x187ca8[_0x16f5('0xd8')](_0xfcba4e,{'range':_0x187ca8[_0x16f5('0x4a')](_0x25b7e5,_0x547e7d)}):_0x187ca8[_0x16f5('0xb8')](_0xfcba4e),!0x0);}function Et(_0x36187d){return _0x4331a1(_0x36187d);}function Vt(_0x1128ad){const _0x34b7f5=_0x1128ad[_0x16f5('0x61')][_0x16f5('0x64')];return _0x34b7f5&&_0x34b7f5['is'](_0x16f5('0x55'));}function Ut(_0x4a7474,_0x2d943f){return null==_0x4a7474[_0x16f5('0xcd')]['nodeBefore']&&_0x4a7474[_0x16f5('0xcd')][_0x16f5('0x131')]==_0x4a7474['start'][_0x16f5('0x64')]?Ot(_0x4a7474[_0x16f5('0x61')][_0x16f5('0x64')],_0x2d943f):_0x4a7474;}function Ot(_0x17ac89,_0x21d5b4){const _0x1fbb73=_0x21d5b4[_0x16f5('0x16c')]['isObject'](_0x17ac89)||_0x21d5b4[_0x16f5('0x16c')][_0x16f5('0x13e')](_0x17ac89);return _0x21d5b4[_0x16f5('0x4a')](_0x21d5b4[_0x16f5('0xcb')](_0x17ac89,_0x16f5('0x16b')),_0x1fbb73?_0x21d5b4['createPositionAfter'](_0x17ac89):_0x21d5b4['createPositionAt'](_0x17ac89,_0x16f5('0xcd')));}function Gt(_0x2905fa,_0x230758,_0x539abc,_0x37053e,_0x326ce9){if(!Ft(_0x2905fa,_0x230758))return!0x1;if(_0x539abc[_0x16f5('0xcd')][_0x16f5('0xb5')](_0x37053e[_0x16f5('0x61')]))return!0x0;if(_0x2905fa[_0x16f5('0x56')]!=_0x230758['type'])return!0x1;if(!_0x539abc[_0x16f5('0xcd')]['isTouching'](_0x37053e[_0x16f5('0x61')]))return!0x1;const _0x33b8d9=_0x326ce9[_0x16f5('0x4a')](_0x539abc[_0x16f5('0xcd')],_0x37053e[_0x16f5('0x61')])[_0x16f5('0x93')]();for(const _0x241148 of _0x33b8d9)if(['elementStart',_0x16f5('0x66')][_0x16f5('0xa3')](_0x241148[_0x16f5('0x56')])&&_0x326ce9[_0x16f5('0x16c')][_0x16f5('0x2f')](_0x241148[_0x16f5('0x25')]))return!0x1;return!0x0;}function Ft(_0x3a5f2f,_0x2e2cd8,_0x168fab=[]){return!(!_0x3a5f2f[_0x16f5('0x180')]||!_0x2e2cd8[_0x16f5('0x180')])&&_0x5223db(_0x41bede(_0x3a5f2f[_0x16f5('0x16d')],_0x168fab),_0x41bede(_0x2e2cd8[_0x16f5('0x16d')],_0x168fab));}function Pt(_0x2ce943,_0x35925b){const _0xabeec9=Lt(_0x2ce943['attributes']),_0x462a34=Lt(_0x35925b);if(!_0x2ce943[_0x16f5('0x180')])return!0x1;for(const _0x24af04 of Object[_0x16f5('0x2a')](_0x462a34))if(!_0x5223db(_0xabeec9[_0x24af04],_0x462a34[_0x24af04]))return!0x1;return!0x0;}function Lt(_0x1a1806){const _0xccb1c5=Object[_0x16f5('0x82')]({},_0x1a1806);return delete _0xccb1c5[_0x16f5('0x13a')],delete _0xccb1c5[_0x16f5('0xf5')],_0xccb1c5;}
|
|
23
|
+
const _0x4f43=['_breakSuggestionMarker','_isDataLoaded','getSuggestions','track-changes-command-not-found','end','previous','assign','model','setSelection','markDeletion','createdAt','getFirstRange','ready','conversion','filter','getMultiRangeId','_inlineAttributeKeys','acceptSuggestion','tablePasteChainId','elementEnd','trackChanges','_rangeIsInLocalUserInsertion','getIntersection','createRangeOn','addSuggestionData','registerPostFixer','value','attribute:accept','howMany','mapper','suggestionUnloaded','multi','unbindElementFromMarkerName','batch','LEAVE','_afterChanges','author','map','suggestion','getWalker','_onDiscard','attributeNewValue','getMarkers','acceptSelectedSuggestions','addRange','stop','_trackFormatChanges','define','size','containsRange','newRange','isCollapsed','createPositionAfter','markAttributeChange','$elementName','discardSuggestion','documentSelection','isEqual','get','split','getNearestSelectionRange','_handleNewSuggestionMarker','collaboration.channelId','showSuggestionHighlights','PENDING_ACTION_SUGGESTION','isObject','change:data','isDocumentOperation','isExternal','announce','$graveyard','addUser','_saved','attribute:join','formatInline:','detach','isTouching','_adapter','upcast','_reduceExistingSuggestions','isBefore','insertion:discard','splitPosition','getUser','_processAttributeChanges','_SUGGESTION_ANNOUNCEMENT','splice','isIntersectingWithRange','insertion:','data','oldRange','dataToMarker','deleteContent','unbind','_recordAttributeSuggestions','low','hasCommentThread','hasSuggestion','_registerBlockAttribute','length','_editor','_refreshSuggestionsChain','track-changes-adapter-missing-getsuggestion','return','after','change:activeMarkers','_defaultCallbacks','for','skipNestingCheck','item','_reduceSuggestionAttributeRange','_isBlockAttribute','markMultiRangeDeletion','getRange','acceptAllSuggestions','$text','updateMarker','deletion:accept','suggestion:attribute:','enableReadOnlyMode','isNextTo','removeMarker:suggestion:attribute','formatInline','subType','_processAttributeSuggestions','backward','isAfter','deletion:discard','getAllAdjacentSuggestions','position','formatInline:accept','add','rootName','change','key','isBlock','_setSuggestionData','removeClass','commentThread','type','containsPosition','attribute','oldValue','FORMATTING','registerCustomCallback','getDifference','addHighlight','set','isLocal','createRange','markerReady','nodeAfter','dataDowncast','formatGroupId','every','isSelectable','toViewElement','forceDefaultExecution','head','isLimit','discard','deletion:','attributes','attribute:discard','track-changes-enable-command-twice','buildSuggestion','attributeKey','range','pluginName','formatInline:discard','getSuggestionCallback','then','move','forward','insertion:chain','removeMarkers','activeMarkers','getChanges','@external','isIntersecting','suggestion:','groupId','ck-suggestion-marker-','consume','formatInline:chain','addCommentThread','editingDowncast','_element','getChangedMarkers','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.','join','createRangeIn','accept','toUpperCase','remove','some','rethrowUnexpectedError','init','trackChanges.trackFormatChanges','removeAttribute','hasComments','suggestion-type','_joinSuggestions','high','containerElement','getRanges','markMultiRangeInsertion','insertContent','never','commands','multipleBlocks','catch','warn','isAtStart','includes','isOwn','trackChangesCommand','_registerInlineAttribute','elementStart','containsRangeInObject','enqueueChange','updateSuggestion','unshift','markInsertion','resolve','concat','fromCharCode','addMarkerName','_suggestionFactory','_getSuggestionData','keys','_suggestionState','insertion:join','_cutOutSuggestionMarker','default','getItems','suggestionChanged','_removeSuggestion','comments','_getMarkerAnnouncementText','group','markerName','setTo','removeMarker','createPositionAt','discardSelectedSuggestions','markInlineFormat','fire','deletion:join','editor','_blockAttributeKeys','clone','chain','consumable','_getAttributeKey','_getExternalAuthor','$textProxy','insertion:accept','_checkSuggestionCorrectness','sort','marker-count','_splitMarkerName','isMultiRange','creator','addMarker','addComment','data-suggestion','forEach','addMarker:suggestion:attribute','addSuggestion','$marker','execute','from','_isForcedDefaultExecutionBlock','nodeBefore','widget','always','deletion','getCustomProperty','schema','_addThreadToSuggestion','setAttribute','elementToElement','startsWith','addMarker:suggestion:formatBlock','getLastMatchingPosition','delete','containsItem','plugins','requires','_setSuggestionRange','highest','start','rename','_descriptionFactory','_createSuggestion','ck-suggestion-marker','getAttribute','PendingActions','track-changes-suggestion-data-mismatch','getSuggestion','fetchCommentThread','authoredAt','clear','commandName','_mergeNestedSuggestions','markerToHighlight','listenTo','CommentsRepository','insertion','values','_isRegisteredAttribute','moveTargetPosition','writer','differ','formatBlock','insert','_findSuggestions','isInsideObject','substr','_refreshAttributeSuggestionsChain','substring','name','_addSuggestionMarker','adapter','targetPosition','has','ariaLiveAnnouncer','root','_getAuthorFromId','push','_model','dataReady','enableCommand','Users','isRemovable','find','suggestionLoaded','refresh','_recordAttributeChanges','getFirstMarker','getAncestors','notReady','newValue','_updateSuggestionData','ck-suggestion-marker-formatBlock','formatBlock:discard','options','createSelection','selection','applyOperation','discardAllSuggestions','next','locale','isInContent','update:suggestion','ck-suggestion-marker--active','trackChanges.mergeNestedSuggestions','_joinWithAdjacentSuggestions','_commentsRepository','attributeOldValue','accepted','document','_suggestions','meta','originalSuggestionId','markerNameToElements','config','parent','before','formatBlock:','_customCallbacks','formatBlock:accept','isAtEnd','_enabledCommands','_initAriaMarkerChangeAnnouncements'];(function(_0x3a7cbb,_0x4f43b5){const _0x187100=function(_0x126abb){while(--_0x126abb){_0x3a7cbb['push'](_0x3a7cbb['shift']());}};_0x187100(++_0x4f43b5);}(_0x4f43,0x159));const _0x1871=function(_0x3a7cbb,_0x4f43b5){_0x3a7cbb=_0x3a7cbb-0x0;let _0x187100=_0x4f43[_0x3a7cbb];return _0x187100;};import{Plugin as _0x15ce80,PendingActions as _0x266458}from'ckeditor5/src/core.js';import{LiveRange as _0x190336}from'ckeditor5/src/engine.js';import{CKEditorError as _0x24b5be,uid as _0x3e11ea,priorities as _0x58a9df,logWarning as _0x11b174}from'ckeditor5/src/utils.js';import{toWidget as _0x23a4d1}from'ckeditor5/src/widget.js';import{Users as _0x41debe,hashObject as _0x25e8fa,surroundingMarkersDetector as _0x13cdd5}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x898ff3 from'./commands/trackchangescommand.js';import _0x1d703f from'./commands/acceptsuggestioncommand.js';import _0x80516d from'./commands/discardsuggestioncommand.js';import _0x4ed6df from'./commands/executeonallsuggestionscommand.js';import _0x53036d from'./commands/executeonselectedsuggestionscommand.js';import _0x3e227c from'./suggestion.js';import _0x8982a from'./suggestiondescriptionfactory.js';import _0x232e7b from'./integrations/aiassistant.js';import _0x3146af from'./integrations/alignment.js';import _0x58dd11 from'./integrations/basicstyles.js';import _0x57d49a from'./integrations/blockquote.js';import _0x5587e8 from'./integrations/casechange.js';import _0x4aec43 from'./integrations/ckbox.js';import _0x2bc1d4 from'./integrations/codeblock.js';import _0x579758 from'./integrations/comments.js';import _0x4e84c2 from'./integrations/deletecommand.js';import _0x35e5c9 from'./integrations/list.js';import _0x3f2c9a from'./integrations/listproperties.js';import _0xf31259 from'./integrations/entercommand.js';import _0x5736af from'./integrations/findandreplace.js';import _0x2bfef2 from'./integrations/font.js';import _0xfa2d8c from'./integrations/formatpainter.js';import _0x23b584 from'./integrations/heading.js';import _0x539887 from'./integrations/highlight.js';import _0x49c7a8 from'./integrations/horizontalline.js';import _0x5adafb from'./integrations/htmlembed.js';import _0x2d1ea2 from'./integrations/image.js';import _0x766031 from'./integrations/imagereplace.js';import _0x2a7414 from'./integrations/imagestyle.js';import _0x44c1dd from'./integrations/importword.js';import _0x3853b7 from'./integrations/indent.js';import _0x383cf9 from'./integrations/inputcommand.js';import _0x54c430 from'./integrations/link.js';import _0x4162b0 from'./integrations/legacylist.js';import _0x2ca5c2 from'./integrations/legacylistproperties.js';import _0xd64ba9 from'./integrations/mediaembed.js';import _0x5d266f from'./integrations/mention.js';import _0x48ddee from'./integrations/pagebreak.js';import _0x2c25d2 from'./integrations/paragraph.js';import _0x317528 from'./integrations/removeformat.js';import _0x5a71cb from'./integrations/restrictededitingmode.js';import _0x241ca4 from'./integrations/shiftentercommand.js';import _0x26c029 from'./integrations/standardeditingmode.js';import _0x136bc1 from'./integrations/style.js';import _0x233d68 from'./integrations/table.js';import _0x4b47bd from'./integrations/tablemergesplit.js';import _0x3ac5bf from'./integrations/tableheadings.js';import _0x242328 from'./integrations/tableclipboard.js';import _0x4c8a38 from'./integrations/tablecolumnresize.js';import _0x1dcdc9 from'./integrations/template.js';import _0x3b5be4 from'./integrations/tableofcontents.js';import _0x1b37a0 from'./integrations/title.js';import _0x3230ce from'./integrations/undo.js';import _0x4e7741 from'./integrations/tablecaption.js';import _0x16e642 from'./integrations/tableproperties.js';import{getTranslation as _0x33b9dc}from'./utils/common-translations.js';import{isEqual as _0x373ca2,omit as _0x5377cc}from'lodash-es';export const renameAttributeKey='$elementName';export default class p extends _0x15ce80{static get[_0x1871('0x140')](){return['CommentsRepository',_0x41debe,_0x266458,_0x232e7b,_0x3146af,_0x58dd11,_0x57d49a,_0x4aec43,_0x5587e8,_0x2bc1d4,_0x579758,_0x4e84c2,_0xf31259,_0x5736af,_0x2bfef2,_0xfa2d8c,_0x23b584,_0x539887,_0x49c7a8,_0x5adafb,_0x2d1ea2,_0x2a7414,_0x766031,_0x44c1dd,_0x3853b7,_0x383cf9,_0x4162b0,_0x2ca5c2,_0x54c430,_0x35e5c9,_0x3f2c9a,_0xd64ba9,_0x5d266f,_0x48ddee,_0x2c25d2,_0x317528,_0x5a71cb,_0x241ca4,_0x26c029,_0x136bc1,_0x233d68,_0x4b47bd,_0x3ac5bf,_0x4e7741,_0x242328,_0x4c8a38,_0x3b5be4,_0x16e642,_0x1dcdc9,_0x1b37a0,_0x3230ce];}static get[_0x1871('0xc7')](){return'TrackChangesEditing';}constructor(_0x407ea5){function _0x50dd33(_0x595725){return _0x595725[_0x1871('0x44')](_0x14a435=>String[_0x1871('0x101')](_0x14a435))[_0x1871('0xdd')]('');}super(_0x407ea5),this[_0x1871('0x7d')]=!0x1,this[_0x1871('0xb2')]('activeMarkers',[]),this['on'](_0x1871('0x88'),(_0x3c6440,_0x15a050,_0x4ae201,_0x3dc5e5)=>{this[_0x1871('0x16a')]['change'](()=>{for(const _0x5d5972 of[..._0x3dc5e5,..._0x4ae201])this[_0x1871('0x16a')]['markers'][_0x1871('0x165')](_0x5d5972)&&_0x407ea5['editing']['reconvertMarker'](_0x5d5972);});}),this[_0x1871('0x145')]=new _0x8982a(this[_0x1871('0x118')]['model']['schema'],this[_0x1871('0x118')][_0x1871('0x8')]),this[_0x1871('0x6c')]=null,this['_suggestionFactory']=new Bt(this[_0x1871('0x118')]),this['_suggestions']=new Map(),this[_0x1871('0xe')]=_0x407ea5[_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x153')),this[_0x1871('0x1d')]=new Set(),this[_0x1871('0x16a')]=this[_0x1871('0x118')][_0x1871('0x26')],this['_suggestionState']=new WeakMap(),this[_0x1871('0x130')]=!0x1,this[_0x1871('0x119')]=new Set([_0x1871('0x55')]),this[_0x1871('0x2f')]=new Set(),_0x407ea5[_0x1871('0x16')][_0x1871('0x4e')](_0x1871('0xe5'),_0x1871('0x109')),this[_0x1871('0x4d')]=_0x407ea5[_0x1871('0x16')]['get'](_0x1871('0xe5')),_0x407ea5['config'][_0x1871('0x4e')](_0x1871('0xc'),!0x0),this[_0x1871('0x150')]=_0x407ea5[_0x1871('0x16')]['get'](_0x1871('0xc')),this['trackChangesCommand']=new _0x898ff3(_0x407ea5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x50dd33([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x50dd33([0x34,0x30,0x34,0x38,0x30,0x32,0x33,0x36]);}[_0x1871('0xe4')](){const _0x319ee2=this[_0x1871('0x118')],_0x3be87c=(_0x592a79,_0x397698)=>{if(_0x1871('0xac')!=_0x592a79)return _0x1871('0xd5')+_0x592a79;const _0x36b964=_0x397698[_0x1871('0x5a')]('|')[0x0];return this[_0x1871('0x8e')](_0x36b964)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x319ee2['conversion'][_0x1871('0x8a')](_0x1871('0xd9'))[_0x1871('0x151')]({'model':'suggestion','view':_0x1c4aaa=>{const {id:_0x1086f1,type:_0x169096,subType:_0x43f05b}=this['_splitMarkerName'](_0x1c4aaa[_0x1871('0x110')]),_0x392bbb=[_0x1871('0x147'),_0x3be87c(_0x169096,_0x43f05b)];let _0x367618=0xbb8;return this[_0x1871('0xcf')][_0x1871('0xf5')](_0x1c4aaa[_0x1871('0x110')])&&(_0x392bbb[_0x1871('0x169')](_0x1871('0xb')),_0x367618=0xbc2),_0x1871('0x134')==_0x169096&&(_0x367618+=0x5),{'classes':_0x392bbb,'attributes':{'data-suggestion':_0x1086f1},'priority':_0x367618};}}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0xb7'))['add'](_0x35503f=>{_0x35503f['on']('addMarker:suggestion',(_0x3ae932,_0x2f8141,_0x3130ea)=>{if(!_0x3130ea['options'][_0x1871('0x5e')])return;const _0xd3a5b7=_0x2f8141[_0x1871('0x8c')];if(!_0xd3a5b7)return;const _0x16534a=_0x3130ea[_0x1871('0x3c')]['toViewElement'](_0xd3a5b7);_0x319ee2[_0x1871('0x26')][_0x1871('0x136')][_0x1871('0x60')](_0xd3a5b7)&&_0x16534a&&!_0x16534a[_0x1871('0x135')](_0x1871('0x132'))&&_0x16534a['is'](_0x1871('0xeb'))&&_0x23a4d1(_0x16534a,_0x3130ea[_0x1871('0x158')]);},{'priority':_0x1871('0xea')});}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0xb7'))['markerToHighlight']({'model':'suggestion','view':(_0x3113a0,_0x27cdb6)=>{if(!_0x27cdb6[_0x1871('0x2')][_0x1871('0x5e')])return null;const {type:_0x1239e8,subType:_0x138b7c}=this[_0x1871('0x124')](_0x3113a0[_0x1871('0x110')]);return{'classes':[_0x1871('0x147'),_0x3be87c(_0x1239e8,_0x138b7c)],'priority':0xbb8};}});const _0x1ba69c=({showActiveMarkers:_0x280b2b=!0x0,isAttributeSuggestion:_0x510f32=!0x1}={})=>(_0x450ca1,_0x4df287,_0x5d637e)=>{if(!_0x4df287[_0x1871('0x8c')])return;const {id:_0x256776}=this[_0x1871('0x124')](_0x4df287[_0x1871('0x110')]);if(_0x510f32){const _0x222f6e=this[_0x1871('0x12')]['get'](_0x256776),_0x5a2729=this['_getAttributeKey'](_0x222f6e);if(!this[_0x1871('0x8e')](_0x5a2729))return;}if(_0x4df287['item']['is'](_0x1871('0x4')))return void _0x5d637e['consumable']['consume'](_0x4df287['item'],_0x450ca1[_0x1871('0x161')]);const _0x55fae6=_0x5d637e[_0x1871('0x3c')][_0x1871('0xbb')](_0x4df287['item']);if(_0x4df287[_0x1871('0x8c')]['is']('element')&&_0x319ee2[_0x1871('0x26')][_0x1871('0x136')][_0x1871('0xa6')](_0x4df287['item'])&&!_0x55fae6['getCustomProperty'](_0x1871('0xb1'))){_0x5d637e[_0x1871('0x158')]['addClass']([_0x1871('0x147'),_0x1871('0x0')],_0x55fae6),_0x5d637e['writer'][_0x1871('0x138')](_0x1871('0x129'),_0x256776,_0x55fae6),_0x5d637e[_0x1871('0x3c')]['bindElementToMarker'](_0x55fae6,_0x4df287['markerName']),_0x280b2b&&(this[_0x1871('0xcf')]['includes'](_0x4df287[_0x1871('0x110')])?_0x5d637e['writer']['addClass']('ck-suggestion-marker--active',_0x55fae6):_0x5d637e[_0x1871('0x158')][_0x1871('0xa8')](_0x1871('0xb'),_0x55fae6));for(const _0x1467b9 of _0x319ee2[_0x1871('0x26')][_0x1871('0xde')](_0x4df287[_0x1871('0x8c')])[_0x1871('0x10a')]())_0x5d637e[_0x1871('0x11c')]['consume'](_0x1467b9,_0x450ca1['name']);_0x5d637e['consumable'][_0x1871('0xd6')](_0x4df287['item'],_0x450ca1[_0x1871('0x161')]);}};_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')]('dataDowncast')[_0x1871('0xa2')](_0x7d0456=>{_0x7d0456['on'](_0x1871('0x13b'),(_0x50cb44,_0x1501a3,_0x353292)=>{_0x353292[_0x1871('0x2')][_0x1871('0x5e')]&&_0x1ba69c({'showActiveMarkers':!0x1})(_0x50cb44,_0x1501a3,_0x353292);},{'priority':_0x1871('0x142')});}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0xb7'))[_0x1871('0xa2')](_0x40a6f4=>{_0x40a6f4['on'](_0x1871('0x12b'),(_0x252929,_0x3d34d0,_0xee599c)=>{_0xee599c[_0x1871('0x2')][_0x1871('0x5e')]&&_0x1ba69c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x252929,_0x3d34d0,_0xee599c);},{'priority':_0x1871('0x142')});}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')]('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x252b78,_0x30aa51)=>_0x30aa51['options'][_0x1871('0x5e')]?null:{'group':'suggestion','name':_0x252b78[_0x1871('0x15e')](0xb)}}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0x6d'))[_0x1871('0x139')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x353638,{writer:_0x5924b9})=>{let _0x481b96='suggestion:'+_0x353638[_0x1871('0x148')](_0x1871('0xe8'))+':'+_0x353638[_0x1871('0x148')]('id');return _0x353638[_0x1871('0x148')]('marker-count')&&(_0x481b96+=':'+_0x353638['getAttribute'](_0x1871('0x123'))),_0x5924b9['createElement'](_0x1871('0x12d'),{'data-name':_0x481b96});}}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0x6d'))[_0x1871('0x7a')]({'view':_0x1871('0x45')}),_0x319ee2['conversion'][_0x1871('0x8a')](_0x1871('0xd9'))['add'](_0x51b49d=>{_0x51b49d['on'](_0x1871('0x13b'),_0x1ba69c(),{'priority':_0x1871('0xea')});}),_0x319ee2[_0x1871('0x2c')]['for'](_0x1871('0xd9'))[_0x1871('0xa2')](_0xf02166=>{_0xf02166['on'](_0x1871('0x12b'),_0x1ba69c({'isAttributeSuggestion':!0x0}),{'priority':_0x1871('0xea')});}),_0x319ee2[_0x1871('0x2c')]['for'](_0x1871('0xd9'))['add'](_0x38d115=>{_0x38d115['on']('removeMarker:suggestion:formatBlock',(_0xa3563a,_0x3132dc,_0x416736)=>{const _0xa27be=_0x416736[_0x1871('0x3c')][_0x1871('0x15')](_0x3132dc[_0x1871('0x110')]);if(_0xa27be)for(const _0x401651 of _0xa27be)_0x401651[_0x1871('0x135')](_0x1871('0xb1'))||(_0x416736[_0x1871('0x158')][_0x1871('0xa8')](['ck-suggestion-marker',_0x1871('0x0'),'ck-suggestion-marker--active'],_0x401651),_0x416736[_0x1871('0x158')][_0x1871('0xe6')]('data-suggestion',_0x401651),_0x416736['mapper'][_0x1871('0x3f')](_0x401651,_0x3132dc[_0x1871('0x110')]));},{'priority':_0x1871('0xea')});}),_0x319ee2[_0x1871('0x2c')][_0x1871('0x8a')](_0x1871('0xd9'))['add'](_0x561376=>{_0x561376['on'](_0x1871('0x98'),(_0x365086,_0x439a1d,_0x23aa80)=>{const _0x496f91=_0x23aa80[_0x1871('0x3c')][_0x1871('0x15')](_0x439a1d[_0x1871('0x110')]);if(!_0x496f91)return;const {id:_0x1e813f}=this[_0x1871('0x124')](_0x439a1d['markerName']),_0x54e34b=this[_0x1871('0x12')]['get'](_0x1e813f),_0x4c1d34=this['_getAttributeKey'](_0x54e34b);if(this[_0x1871('0x8e')](_0x4c1d34))for(const _0x14ab1a of _0x496f91)_0x14ab1a['getCustomProperty']('addHighlight')||(_0x23aa80['writer'][_0x1871('0xa8')](['ck-suggestion-marker',_0x1871('0x0'),_0x1871('0xb')],_0x14ab1a),_0x23aa80['writer']['removeAttribute'](_0x1871('0x129'),_0x14ab1a),_0x23aa80['mapper']['unbindElementFromMarkerName'](_0x14ab1a,_0x439a1d[_0x1871('0x110')]));},{'priority':_0x1871('0xea')});}),_0x319ee2['model'][_0x1871('0x11')]['registerPostFixer'](_0x16094a=>{let _0x11fb8f=!0x1;const _0x471605=Array[_0x1871('0x12f')](_0x319ee2[_0x1871('0x26')]['document'][_0x1871('0x159')][_0x1871('0xdb')]()),_0x5711ed=new Set();for(const {name:_0x21c336,data:_0x1c048c}of _0x471605){const {group:_0x4a5980,type:_0x34c9d9,subType:_0x32f6c2,id:_0x282b21}=this[_0x1871('0x124')](_0x21c336);if(_0x1871('0x45')!==_0x4a5980)continue;const _0x3b4a42=this[_0x1871('0x12')][_0x1871('0x59')](_0x282b21);if(null!=_0x1c048c[_0x1871('0x51')]){'formatInline'==_0x34c9d9&&(_0x11fb8f=_0x11fb8f||Tt(_0x1c048c['newRange'],_0x21c336,_0x16094a,_0x319ee2[_0x1871('0x26')][_0x1871('0x136')]));const _0x3a03d4=_0x1871('0xac')==_0x34c9d9&&this['_isBlockAttribute'](_0x32f6c2[_0x1871('0x5a')]('|')[0x0]);if(_0x1c048c['newRange'][_0x1871('0x52')]||_0x1871('0x65')==_0x1c048c['newRange'][_0x1871('0x167')][_0x1871('0xa3')]||'formatBlock'==_0x34c9d9&&!Vt(_0x1c048c['newRange'])||_0x3a03d4&&!Vt(_0x1c048c['newRange'])||_0x1871('0x134')==_0x34c9d9&&!(!Rt(_0x5e4bb5=_0x1c048c[_0x1871('0x51')])&&!function(_0x26f6eb){return _0x26f6eb[_0x1871('0x143')][_0x1871('0x17')]==_0x26f6eb[_0x1871('0x23')][_0x1871('0x131')]&&_0x26f6eb[_0x1871('0x143')][_0x1871('0x1c')];}(_0x5e4bb5)))_0x16094a[_0x1871('0x112')](_0x21c336),_0x11fb8f=!0x0;else{if(!_0x3b4a42||!_0x3b4a42['isInContent'])continue;_0x5711ed[_0x1871('0xa2')](_0x3b4a42);}}}var _0x5e4bb5;return _0x5711ed['size']>0x0&&(_0x11fb8f=!!this['_joinWithAdjacentSuggestions'](_0x5711ed)||_0x11fb8f),_0x11fb8f;}),_0x319ee2[_0x1871('0x26')][_0x1871('0x11')]['registerPostFixer'](_0x15eca8=>{let _0x50be18=!0x1;for(const _0x483c9d of _0x319ee2['model'][_0x1871('0x11')][_0x1871('0x159')][_0x1871('0xd0')]())if(_0x1871('0x15b')==_0x483c9d[_0x1871('0xaa')])for(const _0x15bf49 of this[_0x1871('0x12')][_0x1871('0x155')]()){if(_0x15bf49[_0x1871('0x125')]||!_0x15bf49['isInContent'])continue;const _0x9c15c='formatBlock'==_0x15bf49[_0x1871('0xaa')],_0x42b415=this[_0x1871('0x11d')](_0x15bf49),_0x1cbb52=_0x42b415&&this['_isBlockAttribute'](_0x42b415);if(!_0x9c15c&&!_0x1cbb52)continue;const _0x34955d=_0x15bf49['getFirstRange']();if(_0x34955d[_0x1871('0x143')]['parent']!=_0x34955d['end'][_0x1871('0x17')]&&!_0x34955d[_0x1871('0x23')]['isAtEnd']){const _0x4f5ac0=_0x319ee2['model'][_0x1871('0x113')](_0x34955d[_0x1871('0x143')]['nodeAfter'],_0x1871('0x23')),_0x2600a7=_0x319ee2['model'][_0x1871('0xb4')](_0x34955d[_0x1871('0x143')],_0x4f5ac0);_0x15eca8[_0x1871('0x93')](_0x15bf49[_0x1871('0x173')](),{'range':_0x2600a7}),_0x50be18=!0x0;}}return _0x50be18;}),_0x319ee2[_0x1871('0x26')]['document'][_0x1871('0x38')](_0x1a3805=>this[_0x1871('0x73')](_0x1a3805)),_0x319ee2[_0x1871('0x26')]['document'][_0x1871('0x38')](_0x2e0442=>!_0x2e0442[_0x1871('0x40')]['isLocal']&&this[_0x1871('0x9b')](_0x2e0442)),_0x319ee2[_0x1871('0x26')]['on'](_0x1871('0x42'),()=>{this[_0x1871('0x7d')]=!0x1;}),_0x319ee2[_0x1871('0x26')][_0x1871('0x11')]['on'](_0x1871('0x61'),(_0x44bccc,_0x2035b0)=>{if(!_0x2035b0[_0x1871('0xb3')]||_0x2035b0['isUndo'])return;if(!this[_0x1871('0x7d')])return;const _0x583f67=_0x319ee2['model'][_0x1871('0x11')][_0x1871('0x159')][_0x1871('0xd0')]();if(0x0==_0x583f67[_0x1871('0x82')])return;const _0xe2ebbb=[],_0x342933=_0x583f67[_0x1871('0x2d')](_0x4e7998=>_0x1871('0xac')==_0x4e7998[_0x1871('0xaa')]),_0x78a905=_0x583f67[_0x1871('0x2d')](_0x278989=>_0x1871('0x15b')==_0x278989[_0x1871('0xaa')]&&_0x1871('0x92')!=_0x278989['name']),_0x324993=_0x583f67[_0x1871('0x2d')](_0x579cac=>'remove'==_0x579cac['type']&&_0x1871('0x92')!=_0x579cac[_0x1871('0x161')]);for(const _0x21675d of _0x342933)this[_0x1871('0x156')](_0x21675d[_0x1871('0xc5')])&&_0xe2ebbb[_0x1871('0x169')]({'key':_0x21675d[_0x1871('0xc5')],'newValue':_0x21675d['attributeNewValue'],'oldValue':_0x21675d['attributeOldValue'],'range':Ut(_0x21675d[_0x1871('0xc6')],_0x319ee2[_0x1871('0x26')])});for(const _0x299182 of _0x78a905){const _0x4aedce=_0x324993[_0x1871('0x16f')](_0xe74e39=>_0xe74e39[_0x1871('0xda')]===_0x299182[_0x1871('0xda')]);if(_0x4aedce){const _0x304105=Ot(_0x299182[_0x1871('0xa0')][_0x1871('0xb6')],_0x319ee2[_0x1871('0x26')]);_0x4aedce[_0x1871('0x161')]!==_0x299182[_0x1871('0x161')]&&_0xe2ebbb[_0x1871('0x169')]({'key':_0x1871('0x55'),'newValue':_0x299182['name'],'oldValue':_0x4aedce[_0x1871('0x161')],'range':_0x304105});for(const [_0x524f78,_0x3cbbeb]of _0x4aedce['attributes']){if(!this[_0x1871('0x156')](_0x524f78))continue;const _0x13911d=_0x299182['attributes'][_0x1871('0x59')](_0x524f78);_0x3cbbeb!==_0x13911d&&_0xe2ebbb[_0x1871('0x169')]({'key':_0x524f78,'newValue':_0x13911d,'oldValue':_0x3cbbeb,'range':_0x304105});}for(const [_0xa30308,_0x171a9b]of _0x299182[_0x1871('0xc1')])this[_0x1871('0x156')](_0xa30308)&&(_0x4aedce['attributes']['has'](_0xa30308)||_0xe2ebbb[_0x1871('0x169')]({'key':_0xa30308,'newValue':_0x171a9b,'oldValue':null,'range':_0x304105}));}}0x0!=_0xe2ebbb[_0x1871('0x82')]&&_0x319ee2[_0x1871('0x26')][_0x1871('0xfb')](_0x2035b0,_0x317296=>{const _0xc71fd7=_0x3e11ea();for(const {range:_0x1eacf6,key:_0x20c726,oldValue:_0x2be495,newValue:_0x4bb130}of _0xe2ebbb)this[_0x1871('0x54')](_0x1eacf6,_0x20c726,_0x2be495,_0x4bb130,{'groupId':_0xc71fd7});this['_reduceExistingSuggestions'](_0x317296,_0xe2ebbb);});},{'priority':'lowest'}),_0x319ee2[_0x1871('0x26')]['markers']['on'](_0x1871('0xa'),(_0x46bc2a,_0x4f13cf,_0x267a6c)=>{if(null==_0x267a6c){const {id:_0x195621}=this[_0x1871('0x124')](_0x4f13cf[_0x1871('0x161')]),_0x23dc61=this['_suggestions'][_0x1871('0x59')](_0x195621);_0x23dc61&&_0x23dc61[_0x1871('0x102')](_0x4f13cf[_0x1871('0x161')]);}}),_0x319ee2[_0x1871('0x26')][_0x1871('0x11')]['on'](_0x1871('0x61'),()=>{const _0x2235e8=Array['from'](_0x319ee2['model'][_0x1871('0x11')][_0x1871('0x159')][_0x1871('0xdb')]())['filter'](_0x2e444b=>_0x1871('0x45')===this['_splitMarkerName'](_0x2e444b[_0x1871('0x161')])[_0x1871('0x10f')]);if(0x0===_0x2235e8['length'])return;_0x2235e8['sort']((_0x126aca,_0x54f22e)=>{const _0x479a9f=_0x126aca[_0x1871('0x78')][_0x1871('0x79')],_0x376220=_0x54f22e[_0x1871('0x78')][_0x1871('0x79')];return null===_0x479a9f&&null===_0x376220?0x0:null===_0x479a9f&&null!==_0x376220?-0x1:null!==_0x479a9f&&null===_0x376220?0x1:_0x479a9f[_0x1871('0x143')][_0x1871('0x6f')](_0x376220[_0x1871('0x143')])?-0x1:0x1;});const _0x483e46=new Set(),_0x5b9a77=new Set();for(const {name:_0x58d7ba,data:_0x28bf44}of _0x2235e8){const {id:_0x2bd32f}=this[_0x1871('0x124')](_0x58d7ba);if(null===_0x28bf44[_0x1871('0x79')]){const _0x21786e=this[_0x1871('0x5c')](_0x58d7ba);_0x5b9a77[_0x1871('0xa2')](_0x21786e);}else{const _0x3e165a=this[_0x1871('0x12')][_0x1871('0x59')](_0x2bd32f);null!==_0x28bf44[_0x1871('0x51')]||_0x3e165a[_0x1871('0x9')]?(_0x483e46[_0x1871('0xa2')](_0x3e165a[_0x1871('0xbd')]),_0x5b9a77[_0x1871('0xa2')](_0x3e165a)):this[_0x1871('0x10c')](_0x3e165a);}}_0x5b9a77[_0x1871('0x4f')]>0x0&&this[_0x1871('0x84')](_0x5b9a77);for(const _0x41b531 of _0x483e46)this['fire'](_0x1871('0x10b'),_0x41b531);}),_0x319ee2[_0x1871('0x26')]['on'](_0x1871('0x5'),(_0x476a47,_0x5ab51b)=>{const _0x4972a8=_0x5ab51b[0x0];if(!this[_0x1871('0x12')][_0x1871('0x4f')])return;if(!_0x4972a8[_0x1871('0x62')])return;if(_0x4972a8['batch']['isUndo']||!_0x4972a8[_0x1871('0x40')]['isLocal'])return;let _0x2ecf11,_0x1a8e9a;switch(_0x4972a8[_0x1871('0xaa')]){case _0x1871('0x15b'):_0x2ecf11=_0x319ee2[_0x1871('0x26')][_0x1871('0x113')](_0x4972a8[_0x1871('0xa0')]),_0x1a8e9a=_0x2ecf11['getShiftedBy'](_0x4972a8[_0x1871('0x3b')]);break;case'split':_0x2ecf11=_0x319ee2[_0x1871('0x26')][_0x1871('0x113')](_0x4972a8[_0x1871('0x71')]),_0x1a8e9a=_0x319ee2[_0x1871('0x26')][_0x1871('0x113')](_0x4972a8[_0x1871('0x157')]);break;case _0x1871('0xcb'):_0x2ecf11=_0x319ee2[_0x1871('0x26')][_0x1871('0x113')](_0x4972a8[_0x1871('0x164')]),_0x1a8e9a=_0x2ecf11['getShiftedBy'](_0x4972a8[_0x1871('0x3b')]);break;default:return;}const _0xadc6e4=_0x319ee2[_0x1871('0x26')][_0x1871('0xb4')](_0x2ecf11,_0x1a8e9a);_0x319ee2[_0x1871('0x26')][_0x1871('0xa4')](()=>{for(const {suggestion:_0x5d825f,meta:_0x5761c2}of this[_0x1871('0x15c')](_0xadc6e4)){if(_0x5d825f[_0x1871('0x125')])continue;if('formatInline'==_0x5d825f[_0x1871('0xaa')])continue;const _0x567337=this[_0x1871('0x11d')](_0x5d825f);if(_0x567337&&this['_isBlockAttribute'](_0x567337)&&_0x1871('0x5a')!=_0x4972a8[_0x1871('0xaa')])continue;const _0x5cb802=_0x5d825f[_0x1871('0x78')]&&_0x5d825f[_0x1871('0x78')]['multipleBlocks'];(_0x1871('0x15a')!=_0x5d825f[_0x1871('0xaa')]||_0x1871('0x5a')==_0x4972a8[_0x1871('0xaa')]&&!_0x5cb802)&&(_0x5761c2[_0x1871('0xfa')]||_0x1871('0x154')==_0x5d825f[_0x1871('0xaa')]&&_0x5761c2['isOwn']||_0x5d825f[_0x1871('0x2a')]()[_0x1871('0x50')](_0xadc6e4)&&this[_0x1871('0x1f')](_0x5d825f,_0x2ecf11,_0x1a8e9a));}});},{'priority':'lowest'}),_0x319ee2[_0x1871('0x26')]['on'](_0x1871('0x7b'),(_0x3a584b,_0x19daeb)=>{const _0xa0607b=_0x19daeb[0x0],_0x785a8a=_0x19daeb[0x1];if(_0x785a8a&&_0x785a8a[_0x1871('0xbc')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x1871('0xf7')][_0x1871('0x39')])return;if(_0xa0607b[_0x1871('0x52')])return;const _0x14d0cd=_0x319ee2[_0x1871('0x26')][_0x1871('0x136')],{start:_0x289684,end:_0x85f019}=_0xa0607b[_0x1871('0x2a')](),_0x367493=_0x289684['nodeAfter']&&_0x14d0cd[_0x1871('0xbe')](_0x289684['nodeAfter'])?null:_0x14d0cd[_0x1871('0x5b')](_0x289684,_0x1871('0xcc')),_0x8dd8c0=_0x85f019['nodeBefore']&&_0x14d0cd[_0x1871('0xbe')](_0x85f019[_0x1871('0x131')])?null:_0x14d0cd['getNearestSelectionRange'](_0x85f019,_0x1871('0x9c')),_0x3105cb=_0x319ee2[_0x1871('0x26')][_0x1871('0xb4')](_0x367493?_0x367493[_0x1871('0x143')]:_0x289684,_0x8dd8c0?_0x8dd8c0[_0x1871('0x23')]:_0x85f019);_0x319ee2[_0x1871('0x26')][_0x1871('0xa4')](_0x2601c6=>{this[_0x1871('0x28')](_0x3105cb);const _0x35991e=_0x319ee2['model'][_0x1871('0x136')]['getNearestSelectionRange'](_0x3105cb[_0x1871('0x143')]);_0xa0607b['is'](_0x1871('0x57'))?_0x2601c6[_0x1871('0x27')](_0x35991e):_0xa0607b[_0x1871('0x111')](_0x35991e);}),_0x3a584b[_0x1871('0x4c')]();},{'priority':_0x58a9df['normal']+0xa}),_0x319ee2[_0x1871('0x26')]['on']('insertContent',(_0x4e8640,_0x17a826)=>{const _0x275674=_0x17a826[_0x17a826['length']-0x1];_0x275674&&_0x275674[_0x1871('0xbc')]||this[_0x1871('0x130')]||this[_0x1871('0xf7')][_0x1871('0x39')]&&(_0x319ee2[_0x1871('0x26')][_0x1871('0xa4')](()=>{let _0x3714fb=_0x319ee2[_0x1871('0x26')][_0x1871('0xee')](_0x17a826[0x0],_0x17a826[0x1],_0x17a826[0x2],{'forceDefaultExecution':!0x0});if(!_0x3714fb)return;_0x4e8640[_0x1871('0x86')]=_0x3714fb[_0x1871('0x11a')]();const _0x53689c=_0x3714fb['end'][_0x1871('0x131')],_0x41f37e=_0x319ee2[_0x1871('0x26')]['schema'];_0x53689c&&_0x41f37e[_0x1871('0xa6')](_0x53689c)&&!_0x41f37e[_0x1871('0x60')](_0x53689c)&&(_0x3714fb=_0x319ee2[_0x1871('0x26')][_0x1871('0xb4')](_0x3714fb[_0x1871('0x143')],_0x319ee2[_0x1871('0x26')][_0x1871('0x113')](_0x53689c,'end'))),this['markInsertion'](_0x3714fb);}),_0x4e8640[_0x1871('0x4c')]());},{'priority':_0x1871('0xea')}),this[_0x1871('0x118')]['commands'][_0x1871('0xa2')](_0x1871('0x33'),this[_0x1871('0xf7')]),this[_0x1871('0x16c')](_0x1871('0x33'));const _0x2a1237=new _0x1d703f(_0x319ee2,this[_0x1871('0x12')]);_0x319ee2[_0x1871('0xf0')][_0x1871('0xa2')]('acceptSuggestion',_0x2a1237),this[_0x1871('0x16c')](_0x1871('0x30'));const _0x52a61d=new _0x80516d(_0x319ee2,this[_0x1871('0x12')]);_0x319ee2[_0x1871('0xf0')]['add']('discardSuggestion',_0x52a61d),this[_0x1871('0x16c')](_0x1871('0x56')),_0x319ee2[_0x1871('0xf0')][_0x1871('0xa2')](_0x1871('0x91'),new _0x4ed6df(_0x319ee2,_0x2a1237,this[_0x1871('0x12')])),this[_0x1871('0x16c')]('acceptAllSuggestions'),_0x319ee2[_0x1871('0xf0')][_0x1871('0xa2')](_0x1871('0x6'),new _0x4ed6df(_0x319ee2,_0x52a61d,this['_suggestions'])),this[_0x1871('0x16c')](_0x1871('0x6')),_0x319ee2['commands'][_0x1871('0xa2')](_0x1871('0x4a'),new _0x53036d(_0x319ee2,_0x2a1237,this[_0x1871('0x12')])),this[_0x1871('0x16c')]('acceptSelectedSuggestions'),_0x319ee2[_0x1871('0xf0')][_0x1871('0xa2')](_0x1871('0x114'),new _0x53036d(_0x319ee2,_0x52a61d,this[_0x1871('0x12')])),this[_0x1871('0x16c')]('discardSelectedSuggestions');const _0x50c47a=_0x319ee2[_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x153'));this[_0x1871('0x152')](_0x50c47a,_0x1871('0x128'),(_0x137664,{threadId:_0x56aec7})=>{const _0x366e42=this[_0x1871('0x12')][_0x1871('0x59')](_0x56aec7);_0x366e42&&_0x366e42['commentThread']&&0x1===_0x366e42[_0x1871('0xa9')]['length']&&this[_0x1871('0x177')](_0x56aec7,{'hasComments':!0x0});},{'priority':_0x1871('0x7e')}),this[_0x1871('0x152')](_0x50c47a,'removeComment',(_0x52cfd2,{threadId:_0x182fce})=>{const _0x1b763a=this[_0x1871('0x12')]['get'](_0x182fce);_0x1b763a&&_0x1b763a[_0x1871('0xa9')]&&!_0x1b763a['commentThread'][_0x1871('0x82')]&&this['_updateSuggestionData'](_0x182fce,{'hasComments':!0x1});},{'priority':_0x1871('0x7e')});}set[_0x1871('0x163')](_0x135905){if(this[_0x1871('0x6c')])throw new _0x24b5be('track-changes-adapter-already-set',this);this[_0x1871('0x6c')]=_0x135905;}get[_0x1871('0x163')](){return this['_adapter'];}[_0x1871('0x21')]({skipNotAttached:_0xd2e876=!0x1,toJSON:_0x122757=!0x1}={}){const _0xcb7a4a=[];for(const _0x3903cf of this['_suggestions'][_0x1871('0x155')]())_0xd2e876&&!_0x3903cf[_0x1871('0x9')]||_0xcb7a4a[_0x1871('0x169')](_0x3903cf);return _0x122757?_0xcb7a4a[_0x1871('0x44')](_0x2a5ff8=>_0x2a5ff8['toJSON']()):_0xcb7a4a;}['getSuggestion'](_0x124ed5){const _0x33c738=this['_suggestions']['get'](_0x124ed5);if(!_0x33c738)throw new _0x24b5be('track-changes-suggestion-not-found',this);return _0x33c738;}[_0x1871('0x80')](_0x1f919c){return this[_0x1871('0x12')][_0x1871('0x165')](_0x1f919c);}[_0x1871('0x37')](_0x4b2075){const {authorId:_0x279522,id:_0x52618a,attributes:_0x3cfd0f}=_0x4b2075,[_0x5d967d,_0x8f9609]=_0x4b2075[_0x1871('0xaa')][_0x1871('0x5a')](':'),_0x22054a=this[_0x1871('0x12')][_0x1871('0x59')](_0x52618a)||this[_0x1871('0x146')](_0x5d967d,_0x8f9609,_0x52618a,_0x279522,_0x3cfd0f);if(this[_0x1871('0x137')](_0x22054a),this[_0x1871('0x121')](_0x22054a,_0x5d967d,_0x8f9609||null,_0x279522),_0x22054a['createdAt']=_0x4b2075[_0x1871('0x29')],_0x22054a[_0x1871('0x20')]=!0x0,_0x3cfd0f&&_0x3cfd0f[_0x1871('0xd1')]){const _0x470c76=_0x3cfd0f[_0x1871('0xd1')],_0x295486=this[_0x1871('0x11e')](_0x470c76['authorName']);_0x22054a['authoredAt']=_0x470c76['createdAt'],_0x22054a['author']=_0x295486,_0x22054a[_0x1871('0x63')]=!0x0;}else _0x22054a[_0x1871('0x14d')]=_0x4b2075['createdAt'];switch(_0x4b2075[_0x1871('0x78')]&&(_0x22054a['data']=_0x4b2075[_0x1871('0x78')]),_0x4b2075[_0x1871('0xc1')]&&(_0x22054a[_0x1871('0xc1')]=_0x4b2075[_0x1871('0xc1')]),this[_0x1871('0x6c')]&&this[_0x1871('0x6c')]['addSuggestion']||(_0x22054a[_0x1871('0x67')]=!0x0),this[_0x1871('0x106')]['get'](_0x22054a)){case _0x1871('0x175'):this[_0x1871('0x106')][_0x1871('0xb2')](_0x22054a,'dataReady');break;case'markerReady':_0x22054a['isInContent']?(this[_0x1871('0xd')](new Set([_0x22054a])),this[_0x1871('0x84')](new Set([_0x22054a])),this[_0x1871('0x106')][_0x1871('0xb2')](_0x22054a,_0x1871('0x2b')),this['fire'](_0x1871('0x170'),_0x22054a)):this[_0x1871('0x106')][_0x1871('0xb2')](_0x22054a,'removed');}return _0x22054a;}[_0x1871('0x30')](_0x4e6ce8){this[_0x1871('0xbc')](()=>{this[_0x1871('0x118')][_0x1871('0x26')][_0x1871('0xa4')](()=>{for(const _0x155c1a of _0x4e6ce8[_0x1871('0x9f')]())_0x155c1a[_0x1871('0xdf')]();});});}['discardSuggestion'](_0x416082){this[_0x1871('0xbc')](()=>{this[_0x1871('0x118')][_0x1871('0x26')][_0x1871('0xa4')](()=>{for(const _0xf11f99 of _0x416082[_0x1871('0x9f')]())_0xf11f99[_0x1871('0xbf')]();});});}[_0x1871('0x16c')](_0xd8b59a,_0x5e34c0){const _0xc3ebe=this[_0x1871('0x118')][_0x1871('0xf0')][_0x1871('0x59')](_0xd8b59a);if(!_0xc3ebe)throw new _0x24b5be(_0x1871('0x22'),this,{'commandName':_0xd8b59a});if(this[_0x1871('0x1d')][_0x1871('0x165')](_0xc3ebe))throw new _0x24b5be(_0x1871('0xc3'),this,{'commandName':_0xd8b59a});this['_enabledCommands'][_0x1871('0xa2')](_0xc3ebe),_0x5e34c0&&_0xc3ebe['on'](_0x1871('0x12e'),(_0x533ac2,_0x1fc262)=>{this['trackChangesCommand'][_0x1871('0x39')]&&(this[_0x1871('0x130')]||(_0x1fc262[_0x1871('0x82')]>0x0&&_0x1fc262[_0x1fc262[_0x1871('0x82')]-0x1]&&_0x1fc262[_0x1fc262['length']-0x1][_0x1871('0xbc')]?_0x1fc262['pop']():(_0x533ac2[_0x1871('0x86')]=_0x5e34c0((..._0x4f1634)=>_0xc3ebe[_0x1871('0x12e')](..._0x4f1634,{'forceDefaultExecution':!0x0}),..._0x1fc262),_0x533ac2[_0x1871('0x4c')]())));},{'priority':_0x1871('0xea')});}[_0x1871('0xbc')](_0x5d3a33){let _0xdca913,_0x2284de;const _0x14c20e=this[_0x1871('0x130')];this[_0x1871('0x130')]=!0x0;try{_0xdca913=_0x5d3a33();}catch(_0x48a9ae){_0x2284de=_0x48a9ae;}return _0x14c20e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2284de&&_0x24b5be[_0x1871('0xe3')](_0x2284de,this),_0xdca913;}[_0x1871('0xfe')](_0x30182b,_0x2e81ec=null,_0x1dff16={}){if(_0x30182b[_0x1871('0x52')])return null;const _0x204d30=this[_0x1871('0x118')][_0x1871('0x13f')][_0x1871('0x59')]('Users')['me'];for(const {suggestion:_0x274534,meta:_0x179fd7}of this[_0x1871('0x15c')](_0x30182b,_0x1871('0x154')))if(_0x179fd7[_0x1871('0xf6')]){if(!_0x179fd7['isNextTo']){if(_0x179fd7[_0x1871('0xfa')]){if(!this[_0x1871('0x150')]||!Pt(_0x274534,_0x1dff16))continue;return _0x274534;}if(Pt(_0x274534,_0x1dff16))return _0x274534;this[_0x1871('0x1f')](_0x274534,_0x30182b[_0x1871('0x143')],_0x30182b[_0x1871('0x23')]);break;}if(_0x2e81ec==_0x274534[_0x1871('0x9a')]&&Pt(_0x274534,_0x1dff16)){const _0xde30fb=_0x274534[_0x1871('0x2a')]();return _0xde30fb[_0x1871('0x143')][_0x1871('0x58')](_0x30182b['end'])?this[_0x1871('0x141')](_0x274534,this[_0x1871('0x16a')][_0x1871('0xb4')](_0x30182b[_0x1871('0x143')],_0xde30fb[_0x1871('0x23')])):this[_0x1871('0x141')](_0x274534,this[_0x1871('0x16a')][_0x1871('0xb4')](_0xde30fb[_0x1871('0x143')],_0x30182b[_0x1871('0x23')])),_0x274534;}}const _0x1801ce=_0x3e11ea(),_0x1da502=_0x204d30['id'],_0x2a5d08=_0x2e81ec?_0x1871('0x77')+_0x2e81ec:_0x1871('0x154'),_0x51bd4a=this['_setSuggestionData']({'id':_0x1801ce,'type':_0x2a5d08,'createdAt':new Date(),'authorId':_0x1da502,'attributes':_0x1dff16});return this[_0x1871('0x162')](_0x2a5d08,_0x1801ce,_0x1da502,_0x30182b),_0x51bd4a;}[_0x1871('0xed')](_0x58853a,_0x11a926='multi',_0x21e609={}){const _0x2a8ac1=this[_0x1871('0x118')][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x16d'))['me'],_0x3640d6=this['_suggestionFactory']['getSuggestionCallback'](_0x1871('0x154'),_0x11a926,_0x1871('0xdd'));for(const _0x506a44 of this[_0x1871('0x21')]())if(_0x506a44[_0x1871('0x43')]['id']==_0x2a8ac1['id']&&_0x1871('0x154')==_0x506a44[_0x1871('0xaa')]&&_0x506a44[_0x1871('0x9a')]==_0x11a926&&Pt(_0x506a44,_0x21e609)&&(_0x3640d6(_0x506a44['getRanges'](),_0x58853a)||_0x3640d6(_0x58853a,_0x506a44['getRanges']()))){for(const _0x222892 of _0x58853a)_0x506a44[_0x1871('0x4b')](_0x222892);return _0x506a44;}for(const {suggestion:_0x152b16,meta:_0x1a0cf9}of this[_0x1871('0x15c')](_0x58853a,_0x1871('0x154'))){if(!_0x1a0cf9['isOwn'])continue;if(!this[_0x1871('0x150')]&&_0x1a0cf9[_0x1871('0xfa')])continue;if(!Pt(_0x152b16,_0x21e609))continue;let _0x10190d=!0x0;for(const _0x56ac4b of _0x152b16[_0x1871('0xec')]())for(const _0x459472 of _0x58853a)if(!_0x56ac4b[_0x1871('0x50')](_0x459472)){_0x10190d=!0x1;break;}if(_0x10190d)return _0x152b16;}const _0x342146=_0x3e11ea(),_0x493491=_0x2a8ac1['id'],_0x23e3e7='insertion:'+_0x11a926,_0x4c37e8=this[_0x1871('0xa7')]({'id':_0x342146,'type':_0x23e3e7,'createdAt':new Date(),'authorId':_0x493491,'attributes':_0x21e609});for(const _0x528198 of _0x58853a)this[_0x1871('0x162')](_0x23e3e7,_0x342146,_0x493491,_0x528198,_0x3e227c[_0x1871('0x2e')]());return _0x4c37e8;}[_0x1871('0x115')](_0x30cc94,_0x47a94e,_0x24302d=null,_0x1538eb={}){if(_0x24302d=_0x24302d||Et(_0x47a94e),_0x30cc94[_0x1871('0x52')])return null;if(_0x1871('0xef')===this[_0x1871('0x4d')]){const _0x248612=this[_0x1871('0x103')]['getSuggestionCallback'](_0x1871('0x99'),_0x24302d,_0x1871('0xdf'));return this['forceDefaultExecution'](()=>_0x248612([_0x30cc94],_0x47a94e,_0x1538eb)),null;}const _0x2627b3=this[_0x1871('0x118')][_0x1871('0x13f')]['get']('Users')['me'],_0x45f676=[];if(_0x1871('0x133')!==this['_trackFormatChanges'])for(const {suggestion:_0x4246b2,meta:_0x10f16f}of this['_findSuggestions'](_0x30cc94,_0x1871('0x154')))_0x10f16f[_0x1871('0xf6')]&&!_0x10f16f[_0x1871('0x15d')]&&_0x45f676[_0x1871('0x169')](..._0x4246b2[_0x1871('0xec')]());const _0x3985ab=function(_0x2bb199,_0xc3c699){const _0x1422ee=[];for(const _0x51d4e3 of _0xc3c699){const _0x58b65b=_0x2bb199[_0x1871('0x35')](_0x51d4e3);_0x58b65b&&_0x1422ee[_0x1871('0x169')](_0x58b65b);}return _0x1422ee;}(_0x30cc94,_0x45f676),_0xc07926=function(_0xd21b40,_0x483280){const _0x4aec37=[_0xd21b40];for(const _0x79abf of _0x483280){let _0x2a38de=0x0;for(;_0x2a38de<_0x4aec37['length'];){const _0x433e1e=_0x4aec37[_0x2a38de]['getDifference'](_0x79abf);_0x4aec37[_0x1871('0x75')](_0x2a38de,0x1,..._0x433e1e),_0x2a38de+=_0x433e1e[_0x1871('0x82')];}}return _0x4aec37;}(_0x30cc94,_0x45f676);_0x3985ab['length']&&this['_model'][_0x1871('0xa4')](()=>{for(const _0x1ba1f3 of _0x3985ab){const _0x51f0f4=this[_0x1871('0x103')]['getSuggestionCallback'](_0x1871('0x99'),_0x24302d,'accept');this[_0x1871('0xbc')](()=>_0x51f0f4([_0x1ba1f3],_0x47a94e,_0x1538eb));}});for(const _0x48db43 of _0xc07926){let _0x26e99d=null,_0x506de8=_0x48db43[_0x1871('0x143')],_0x5003e9=_0x48db43[_0x1871('0x23')];for(const {suggestion:_0x35a03c,meta:_0x5a80c5}of this[_0x1871('0x15c')](_0x48db43,_0x1871('0x99'))){if(!_0x5a80c5['isOwn'])continue;if(_0x35a03c['subType']!=_0x24302d)continue;if(!Pt(_0x35a03c,_0x1538eb))continue;const _0xd572f1=_0x35a03c[_0x1871('0x2a')]();if(_0xd572f1[_0x1871('0x50')](_0x48db43,!0x0))return null;_0x506de8=_0x506de8[_0x1871('0x6f')](_0xd572f1[_0x1871('0x143')])?_0x506de8:_0xd572f1[_0x1871('0x143')],_0x5003e9=_0x5003e9[_0x1871('0x9d')](_0xd572f1[_0x1871('0x23')])?_0x5003e9:_0xd572f1[_0x1871('0x23')],_0x26e99d?_0xd572f1['start'][_0x1871('0x6f')](_0x26e99d[_0x1871('0x2a')]()['start'])?(_0x26e99d[_0x1871('0xce')](),_0x26e99d=_0x35a03c):_0x35a03c[_0x1871('0xce')]():_0x26e99d=_0x35a03c;}const _0x46d198=this[_0x1871('0x16a')][_0x1871('0xb4')](_0x506de8,_0x5003e9);if(_0x26e99d)this[_0x1871('0x141')](_0x26e99d,_0x46d198);else{const _0x11256d=_0x3e11ea(),_0x2e5498=_0x2627b3['id'];this[_0x1871('0xa7')]({'id':_0x11256d,'type':'formatInline:'+_0x24302d,'data':_0x47a94e,'createdAt':new Date(),'authorId':_0x2e5498,'attributes':_0x1538eb}),this[_0x1871('0x162')](_0x1871('0x69')+_0x24302d,_0x11256d,_0x2e5498,_0x46d198);}}return null;}['markBlockFormat'](_0x1b3e77,_0xe412e6,_0xd3ee64=[],_0x509555=null,_0x47b2e2={}){_0xe412e6[_0x1871('0xb8')]||(_0xe412e6['formatGroupId']=_0xe412e6[_0x1871('0x14f')]),_0xe412e6[_0x1871('0xf1')]=_0x1b3e77['is'](_0x1871('0xc6')),_0x509555=_0x509555||Et(_0xe412e6);const _0x4b676f=_0xd3ee64['map'](_0x42b536=>Ot(_0x42b536,this['_model'])),_0x406a8a=_0x1b3e77['is'](_0x1871('0xc6'))?_0x1b3e77:Ot(_0x1b3e77,this['_model']);if('never'===this[_0x1871('0x4d')]){const _0x455cf8=this[_0x1871('0x103')]['getSuggestionCallback']('formatBlock',_0x509555,_0x1871('0xdf'));return this['forceDefaultExecution'](()=>_0x455cf8([_0x406a8a],_0xe412e6,_0x47b2e2)),null;}_0x4b676f['push'](_0x406a8a);let _0x40be2d=!0x0;for(const _0x3e5808 of _0x4b676f)if(!this[_0x1871('0x34')](_0x3e5808)){_0x40be2d=!0x1;break;}if(_0x40be2d&&_0x1871('0x133')!==this[_0x1871('0x4d')]){const _0x442554=this[_0x1871('0x103')][_0x1871('0xc9')](_0x1871('0x15a'),_0x509555,_0x1871('0xdf'));return this[_0x1871('0xbc')](()=>_0x442554([_0x406a8a],_0xe412e6,_0x47b2e2)),null;}let _0x374ad7=null,_0x5e656a=_0x406a8a[_0x1871('0x143')],_0x14898a=_0x406a8a['end'];for(const {suggestion:_0x3b7485,meta:_0x4a96b9}of this[_0x1871('0x15c')](_0x406a8a,_0x1871('0x15a'))){if(!_0x4a96b9[_0x1871('0xf6')])continue;if(_0x4a96b9[_0x1871('0x97')]||_0x4a96b9[_0x1871('0xfa')]||_0x4a96b9[_0x1871('0x15d')])continue;if(_0x3b7485[_0x1871('0x78')][_0x1871('0xb8')]!=_0xe412e6['formatGroupId'])continue;if(!Pt(_0x3b7485,_0x47b2e2))continue;const _0x5d0f44=_0x3b7485[_0x1871('0x2a')]();if(_0x3b7485[_0x1871('0x9a')]==_0x509555){if(_0x5d0f44[_0x1871('0x50')](_0x406a8a,!0x0))return null;_0x5e656a=_0x5e656a[_0x1871('0x6f')](_0x5d0f44['start'])?_0x5e656a:_0x5d0f44[_0x1871('0x143')],_0x14898a=_0x14898a[_0x1871('0x9d')](_0x5d0f44[_0x1871('0x23')])?_0x14898a:_0x5d0f44[_0x1871('0x23')],_0x374ad7?_0x5d0f44['start'][_0x1871('0x6f')](_0x374ad7['getFirstRange']()['start'])?(_0x374ad7[_0x1871('0xce')](),_0x374ad7=_0x3b7485):_0x3b7485[_0x1871('0xce')]():_0x374ad7=_0x3b7485;}else{const _0x388e9f=_0x406a8a['getIntersection'](_0x5d0f44);this['_cutOutSuggestionMarker'](_0x3b7485,_0x388e9f);}}const _0x10b842=this[_0x1871('0x118')]['plugins'][_0x1871('0x59')](_0x1871('0x16d'))['me'],_0x20cea8=_0x3e11ea(),_0x3d1ed6=_0x10b842['id'];if(_0x374ad7)return this['_setSuggestionRange'](_0x374ad7,this[_0x1871('0x16a')][_0x1871('0xb4')](_0x5e656a,_0x14898a)),_0x374ad7;{const _0x112b7d=this['_setSuggestionData']({'id':_0x20cea8,'type':_0x1871('0x19')+_0x509555,'data':_0xe412e6,'createdAt':new Date(),'authorId':_0x3d1ed6,'attributes':_0x47b2e2});return this[_0x1871('0x162')](_0x1871('0x19')+_0x509555,_0x20cea8,_0x3d1ed6,this[_0x1871('0x16a')]['createRange'](_0x5e656a,_0x14898a)),_0x112b7d;}}['markMultiRangeBlockFormat'](_0x2b1be8,_0x470eaf,_0x34125d=[],_0x27647d=null,_0x3acecc={}){_0x470eaf[_0x1871('0xb8')]||(_0x470eaf[_0x1871('0xb8')]=_0x470eaf[_0x1871('0x14f')]);const _0x35d5fe=_0x2b1be8[0x0];_0x470eaf[_0x1871('0xf1')]=_0x35d5fe['is'](_0x1871('0xc6')),_0x27647d=_0x27647d||Et(_0x470eaf);const _0x438ca1=_0x34125d[_0x1871('0x44')](_0x5eba66=>Ot(_0x5eba66,this[_0x1871('0x16a')])),_0x2b1334=_0x35d5fe['is'](_0x1871('0xc6'))?_0x2b1be8:_0x2b1be8['map'](_0x1af19c=>Ot(_0x1af19c,this[_0x1871('0x16a')]));if('never'===this['_trackFormatChanges']){const _0x573223=this[_0x1871('0x103')]['getSuggestionCallback'](_0x1871('0x15a'),_0x27647d,_0x1871('0xdf'));return this[_0x1871('0xbc')](()=>_0x573223(_0x2b1334,_0x470eaf,_0x3acecc)),null;}_0x438ca1['push'](..._0x2b1334);let _0x1d9cac=!0x0;for(const _0x5129a9 of _0x438ca1)if(!this[_0x1871('0x34')](_0x5129a9)){_0x1d9cac=!0x1;break;}if(_0x1d9cac&&_0x1871('0x133')!==this['_trackFormatChanges']){const _0x16d2d1=this[_0x1871('0x103')][_0x1871('0xc9')](_0x1871('0x15a'),_0x27647d,_0x1871('0xdf'));return this['forceDefaultExecution'](()=>_0x16d2d1(_0x2b1334,_0x470eaf,_0x3acecc)),null;}const _0x1c63fa=this[_0x1871('0x118')][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x16d'))['me'];for(const _0x1ffc05 of this['getSuggestions']()){if(_0x1ffc05[_0x1871('0x43')]['id']!=_0x1c63fa['id'])continue;if(_0x1871('0x15a')!=_0x1ffc05[_0x1871('0xaa')]||_0x1ffc05[_0x1871('0x78')][_0x1871('0xb8')]!=_0x470eaf[_0x1871('0xb8')])continue;if(!Pt(_0x1ffc05,_0x3acecc))continue;const _0x356d47=_0x1ffc05[_0x1871('0x9a')]==_0x27647d;for(let _0x5cddb2=0x0;_0x5cddb2<_0x2b1334['length'];_0x5cddb2++){const _0xad5a25=_0x2b1334[_0x5cddb2];for(const _0x594839 of _0x1ffc05[_0x1871('0x49')]()){const _0xb22f67=_0x594839[_0x1871('0x90')]();if(_0xad5a25[_0x1871('0x58')](_0xb22f67)){_0x356d47?(_0x2b1334[_0x1871('0x75')](_0x5cddb2,0x1),_0x5cddb2--):_0x1ffc05[_0x1871('0x112')](_0x594839[_0x1871('0x161')]);break;}}}}if(0x0==_0x2b1334[_0x1871('0x82')])return null;const _0x3c4712=this['_suggestionFactory'][_0x1871('0xc9')]('formatBlock',_0x27647d,_0x1871('0xdd'));for(const _0x1327cb of this[_0x1871('0x21')]())if(_0x1327cb['author']['id']==_0x1c63fa['id']&&_0x1871('0x15a')==_0x1327cb[_0x1871('0xaa')]&&_0x1327cb[_0x1871('0x78')]['formatGroupId']==_0x470eaf[_0x1871('0xb8')]&&_0x1327cb['subType']==_0x27647d&&Pt(_0x1327cb,_0x3acecc)&&(_0x3c4712(_0x1327cb['getRanges'](),_0x2b1334)||_0x3c4712(_0x2b1334,_0x1327cb[_0x1871('0xec')]()))){for(const _0x5343eb of _0x2b1334)_0x1327cb[_0x1871('0x4b')](_0x5343eb);return _0x1327cb;}const _0x14c723=_0x3e11ea(),_0x206efa=_0x1c63fa['id'],_0x49ec7c=_0x1871('0x19')+_0x27647d,_0x4f9c29=this[_0x1871('0xa7')]({'id':_0x14c723,'type':_0x49ec7c,'data':_0x470eaf,'createdAt':new Date(),'authorId':_0x206efa,'attributes':_0x3acecc});for(const _0x5b2a53 of _0x2b1334)this[_0x1871('0x162')](_0x49ec7c,_0x14c723,_0x206efa,_0x5b2a53,_0x3e227c['getMultiRangeId']());return _0x4f9c29;}[_0x1871('0x28')](_0x3e0369,_0x116bf7=null,_0x42804c={}){if(_0x3e0369[_0x1871('0x52')])return null;const _0x2ee3a4=this['editor'][_0x1871('0x13f')][_0x1871('0x59')]('Users')['me'],_0x1195b7=new _0x190336(_0x3e0369['start'],_0x3e0369[_0x1871('0x23')]);for(const {suggestion:_0x51a9c9,meta:_0x2df935}of this[_0x1871('0x15c')](_0x1195b7,_0x1871('0x154')))if(_0x2df935[_0x1871('0xf6')]&&!_0x2df935[_0x1871('0x97')]){if(_0x51a9c9[_0x1871('0x125')]){const _0x141963=_0x51a9c9[_0x1871('0xec')]()['filter'](_0xdf87e9=>_0x1871('0x65')!=_0xdf87e9[_0x1871('0x167')][_0x1871('0xa3')]);_0x141963[_0x1871('0xb9')](_0x6380c2=>_0x1195b7[_0x1871('0x50')](_0x6380c2,!0x0))&&_0x51a9c9[_0x1871('0xbf')]();if(_0x141963[_0x1871('0xe2')](_0x4325dc=>_0x4325dc[_0x1871('0x50')](_0x1195b7,!0x0))){const _0x1ccede=this[_0x1871('0x103')]['getSuggestionCallback'](_0x1871('0x134'),_0x116bf7,'accept');return this['forceDefaultExecution'](()=>_0x1ccede([_0x1195b7],null,_0x42804c)),null;}}else{const _0x2c9013=_0x1195b7[_0x1871('0x35')](_0x51a9c9[_0x1871('0x2a')]());null!==_0x2c9013&&_0x51a9c9[_0x1871('0x47')]([_0x2c9013],null,_0x42804c);}}if(_0x1195b7[_0x1871('0x6a')](),_0x1195b7[_0x1871('0x52')]||'$graveyard'==_0x1195b7[_0x1871('0x167')][_0x1871('0xa3')])return null;let _0x4c2a2f=null,_0xb8f21f=_0x1195b7[_0x1871('0x143')],_0x244b42=_0x1195b7['end'];const _0x358473=this[_0x1871('0x15c')](_0x1195b7,_0x1871('0x134'));for(const {suggestion:_0x284e95,meta:_0x47bf55}of _0x358473){const _0x1d567e=this[_0x1871('0x16a')][_0x1871('0xb4')](_0xb8f21f,_0x244b42);if(_0x47bf55[_0x1871('0xf6')]&&(this[_0x1871('0x150')]||!_0x47bf55[_0x1871('0xfa')]&&!_0x47bf55['isInsideObject'])){if(_0x284e95[_0x1871('0x125')]){if(!Pt(_0x284e95,_0x42804c))continue;let _0x128fb7=!0x0;for(const _0x52b883 of _0x284e95['getRanges']()){if(_0x52b883['containsRange'](_0x1d567e,!0x0))return _0x284e95;_0x1d567e['containsRange'](_0x52b883)||(_0x128fb7=!0x1);}_0x128fb7&&_0x284e95['discard']();}else{const _0x2cd751=_0x284e95[_0x1871('0x2a')]();if(_0x2cd751['containsRange'](_0x1d567e,!0x0))return _0x284e95;if(!Pt(_0x284e95,_0x42804c)){_0x1d567e[_0x1871('0x50')](_0x2cd751)?_0x284e95[_0x1871('0xce')]():_0x2cd751['containsPosition'](_0xb8f21f)?_0xb8f21f=_0x2cd751[_0x1871('0x23')]:_0x2cd751[_0x1871('0xab')](_0x244b42)&&(_0x244b42=_0x2cd751['start']);continue;}_0xb8f21f=_0xb8f21f[_0x1871('0x6f')](_0x2cd751['start'])?_0xb8f21f:_0x2cd751[_0x1871('0x143')],_0x244b42=_0x244b42['isAfter'](_0x2cd751[_0x1871('0x23')])?_0x244b42:_0x2cd751[_0x1871('0x23')],_0x42804c=Object[_0x1871('0x25')]({},_0x284e95['attributes']),_0x4c2a2f?_0x2cd751['start'][_0x1871('0x6f')](_0x4c2a2f[_0x1871('0x2a')]()[_0x1871('0x143')])?(_0x4c2a2f[_0x1871('0xce')](),_0x4c2a2f=_0x284e95):_0x284e95[_0x1871('0xce')]():_0x4c2a2f=_0x284e95;}}}if(_0x4c2a2f)return this[_0x1871('0x141')](_0x4c2a2f,this['_model']['createRange'](_0xb8f21f,_0x244b42)),_0x4c2a2f;{const _0x50d94f=_0x3e11ea(),_0x362e04=this['_model'][_0x1871('0xb4')](_0xb8f21f,_0x244b42),_0x5943d0=_0x2ee3a4['id'],_0x2b16ad=_0x116bf7?'deletion:'+_0x116bf7:'deletion',_0x4d9989=this[_0x1871('0xa7')]({'id':_0x50d94f,'type':_0x2b16ad,'createdAt':new Date(),'authorId':_0x5943d0,'attributes':_0x42804c});return this['_addSuggestionMarker'](_0x2b16ad,_0x50d94f,_0x5943d0,_0x362e04),_0x4d9989;}}[_0x1871('0x8f')](_0xed51c5,_0x3c86fa=_0x1871('0x3e'),_0x420f6c={}){const _0x276f90=this[_0x1871('0x118')][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x16d'))['me'],_0x5c0145=_0xed51c5['map'](_0x3118d2=>new _0x190336(_0x3118d2['start'],_0x3118d2[_0x1871('0x23')])),_0x2293ec=new Set();for(const {suggestion:_0x2ae751,meta:_0x46dd4f}of this['_findSuggestions'](_0x5c0145,_0x1871('0x154')))_0x46dd4f[_0x1871('0xf6')]&&!_0x46dd4f[_0x1871('0x97')]&&_0x2293ec[_0x1871('0xa2')](_0x2ae751);for(const _0x10bf1e of _0x2293ec)if(_0x10bf1e[_0x1871('0x125')]){const _0x3d6683=_0x10bf1e[_0x1871('0xec')]();(!_0x10bf1e['attributes']||!_0x10bf1e[_0x1871('0xc1')]['skipNestingCheck'])&&(_0x3d6683[_0x1871('0xb9')](_0x4ba5e4=>_0x5c0145['some'](_0x37fa49=>_0x37fa49[_0x1871('0x50')](_0x4ba5e4,!0x0)))&&_0x10bf1e[_0x1871('0xbf')]());if(_0x5c0145[_0x1871('0xb9')](_0x4bbdee=>_0x3d6683[_0x1871('0xe2')](_0x51a1c0=>_0x51a1c0[_0x1871('0x50')](_0x4bbdee,!0x0)))){const _0xbaa759=this[_0x1871('0x103')][_0x1871('0xc9')](_0x1871('0x134'),_0x3c86fa,_0x1871('0xdf'));return this['forceDefaultExecution'](()=>_0xbaa759(_0xed51c5,null,_0x420f6c)),null;}}else{const _0xb367df=_0x10bf1e[_0x1871('0x2a')]();_0x5c0145[_0x1871('0xe2')](_0x4f5bd6=>_0x4f5bd6[_0x1871('0x50')](_0xb367df,!0x0))&&_0x10bf1e[_0x1871('0xbf')]();if(_0x5c0145[_0x1871('0xb9')](_0x3744a1=>_0xb367df[_0x1871('0x50')](_0x3744a1,!0x0))){const _0x516924=this[_0x1871('0x103')][_0x1871('0xc9')]('deletion',_0x3c86fa,'accept');return this[_0x1871('0xbc')](()=>_0x516924(_0x5c0145,null,_0x420f6c)),null;}}const _0x5e14cf=this['_suggestionFactory'][_0x1871('0xc9')]('deletion',_0x3c86fa,_0x1871('0xdd'));let _0x1c3f07=null;for(const _0x10c25d of this['getSuggestions']())if(_0x10c25d['author']['id']==_0x276f90['id']&&_0x10c25d['isInContent']&&_0x1871('0x134')==_0x10c25d[_0x1871('0xaa')]&&_0x10c25d[_0x1871('0x9a')]==_0x3c86fa&&Pt(_0x10c25d,_0x420f6c)&&(_0x5e14cf(_0x10c25d[_0x1871('0xec')](),_0x5c0145)||_0x5e14cf(_0x5c0145,_0x10c25d[_0x1871('0xec')]()))){if(_0x1c3f07){if(_0x10c25d[_0x1871('0xa9')]&&_0x10c25d[_0x1871('0xa9')][_0x1871('0x82')])continue;for(const _0x3eed49 of _0x10c25d[_0x1871('0xec')]())_0x1c3f07[_0x1871('0x76')](_0x3eed49)||_0x1c3f07[_0x1871('0x4b')](_0x3eed49);_0x10c25d[_0x1871('0xce')]();}else{_0x1c3f07=_0x10c25d;for(const _0x386f9a of _0x5c0145)_0x10c25d[_0x1871('0x76')](_0x386f9a)||_0x10c25d[_0x1871('0x4b')](_0x386f9a);}}if(_0x1c3f07)return _0x1c3f07;_0x2293ec[_0x1871('0x14e')]();for(const {suggestion:_0x37dab1,meta:_0x129510}of this[_0x1871('0x15c')](_0x5c0145,_0x1871('0x134')))_0x129510['isOwn']&&(this[_0x1871('0x150')]||!_0x129510[_0x1871('0xfa')]&&!_0x129510['isInsideObject'])&&Pt(_0x37dab1,_0x420f6c)&&_0x2293ec[_0x1871('0xa2')](_0x37dab1);for(const _0x3f04e7 of _0x2293ec){const _0x51be69=_0x3f04e7['getRanges']();if(!_0x420f6c||!_0x420f6c[_0x1871('0x8b')]){if(_0x5c0145[_0x1871('0xb9')](_0xb25d9d=>_0x51be69[_0x1871('0xe2')](_0x5d754f=>_0x5d754f[_0x1871('0x50')](_0xb25d9d,!0x0))))return _0x3f04e7;}(!_0x3f04e7[_0x1871('0xc1')]||!_0x3f04e7[_0x1871('0xc1')]['skipNestingCheck'])&&(_0x51be69[_0x1871('0xb9')](_0x2b7b3d=>_0x5c0145['some'](_0x25a2a2=>_0x25a2a2['containsRange'](_0x2b7b3d,!0x0)))&&_0x3f04e7['discard']());}const _0x1f2397=_0x3e11ea(),_0x54060e=_0x276f90['id'],_0x495c1d=_0x1871('0xc0')+_0x3c86fa,_0x3322ea=this[_0x1871('0xa7')]({'id':_0x1f2397,'type':_0x495c1d,'createdAt':new Date(),'authorId':_0x54060e,'attributes':_0x420f6c});for(const _0x1442ee of _0x5c0145)_0x1442ee['detach'](),_0x1442ee['isCollapsed']||_0x1871('0x65')==_0x1442ee[_0x1871('0x167')][_0x1871('0xa3')]||this[_0x1871('0x162')](_0x495c1d,_0x1f2397,_0x54060e,_0x1442ee,_0x3e227c['getMultiRangeId']());return _0x3322ea;}[_0x1871('0x54')](_0x55394f,_0x32eb67,_0x5f49ef,_0x3e172c,_0x3d1efa){if(_0x55394f[_0x1871('0x52')])return[];if(_0x1871('0xef')===this[_0x1871('0x4d')])return[];const _0x48c466=this['editor'][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x16d'))['me']['id'],_0x451706=Array[_0x1871('0x12f')](this[_0x1871('0x12')][_0x1871('0x155')]())['filter'](_0x4d29f7=>_0x1871('0xac')==_0x4d29f7[_0x1871('0xaa')]&&_0x4d29f7[_0x1871('0x78')][_0x1871('0xa5')]==_0x32eb67&&_0x4d29f7['isIntersectingWithRange'](_0x55394f));if(_0x1871('0x109')===this[_0x1871('0x4d')]){const _0x385b6d=this[_0x1871('0x15c')](_0x55394f,_0x1871('0x154'))[_0x1871('0x2d')](({meta:_0xdb7753})=>_0xdb7753[_0x1871('0xf6')]&&!_0xdb7753[_0x1871('0x15d')]&&!_0xdb7753[_0x1871('0x97')])[_0x1871('0x44')](({suggestion:_0x2aeec3})=>_0x2aeec3);_0x451706[_0x1871('0xfd')](..._0x385b6d);}const _0x55bf5c=new Map([[_0x55394f,_0x5f49ef]]);for(const _0x2861ad of _0x451706){const _0x3c3714=_0x1871('0xac')==_0x2861ad['type']?_0x2861ad[_0x1871('0x78')]['oldValue']:void 0x0,_0xc6cf38=_0x2861ad['getFirstRange'](),_0x47886f=Array[_0x1871('0x12f')](_0x55bf5c['keys']())['find'](_0x1fe38c=>_0x1fe38c[_0x1871('0xd2')](_0xc6cf38));if(!_0x47886f)continue;const _0x24b5a0=_0x47886f[_0x1871('0xb0')](_0xc6cf38);this[_0x1871('0x8e')](_0x32eb67)&&'insertion'==_0x2861ad['type']&&0x0!=_0x24b5a0['length']||(_0x55bf5c[_0x1871('0x13d')](_0x47886f),_0x24b5a0[_0x1871('0x12a')](_0x222746=>{_0x55bf5c[_0x1871('0xb2')](_0x222746,_0x5f49ef);}),_0x1871('0x154')!=_0x2861ad[_0x1871('0xaa')]&&_0x3c3714!=_0x3e172c&&_0x55bf5c[_0x1871('0xb2')](_0x47886f['getIntersection'](_0xc6cf38),_0x3c3714));}const _0x1bdab4=[];for(const [_0x13e3db,_0x1053fa]of _0x55bf5c){const _0x5b0ace=_0x3e11ea(),_0x5888de={'key':_0x32eb67,'oldValue':_0x1053fa,'newValue':_0x3e172c};_0x32eb67[_0x1871('0x82')]>0x25&&console[_0x1871('0xf3')](_0x1871('0xdc'),{'key':_0x32eb67});const _0x371dc9=('attribute:'+(_0x32eb67+'|'+Et({'newValue':_0x3e172c})))[_0x1871('0x160')](0x0,0x3c),_0x2a4f2c=this[_0x1871('0xa7')]({'id':_0x5b0ace,'type':_0x371dc9,'data':_0x5888de,'createdAt':new Date(),'authorId':_0x48c466,'attributes':_0x3d1efa});_0x1bdab4[_0x1871('0x169')](_0x2a4f2c),this[_0x1871('0x162')](_0x371dc9,_0x5b0ace,_0x48c466,_0x13e3db);}return _0x1bdab4;}['_registerBlockAttribute'](_0x5ccbb8){this[_0x1871('0x119')]['add'](_0x5ccbb8);}[_0x1871('0xf8')](_0x4acffa){this[_0x1871('0x2f')][_0x1871('0xa2')](_0x4acffa);}['_enableDefaultAttributesIntegration'](_0x5be5fc,_0x25c550=[],_0x9c22a6=[]){this[_0x1871('0x16c')](_0x5be5fc,(_0x37cce4,..._0x41dd58)=>{this[_0x1871('0x172')](()=>{_0x37cce4(..._0x41dd58);});});for(const _0x471bc5 of _0x25c550)this[_0x1871('0xf8')](_0x471bc5);for(const _0x12ebde of _0x9c22a6)this[_0x1871('0x81')](_0x12ebde);}[_0x1871('0x11d')](_0x3fee97){return _0x1871('0xac')==_0x3fee97[_0x1871('0xaa')]?_0x3fee97[_0x1871('0x9a')]['split']('|')[0x0]:null;}[_0x1871('0x141')](_0x1c3a17,_0x47d934){const _0x52ae08=_0x1c3a17[_0x1871('0x173')]();this[_0x1871('0x16a')][_0x1871('0xa4')](_0x554f60=>{_0x554f60[_0x1871('0x93')](_0x52ae08,{'range':_0x47d934});});}['_addThreadToSuggestion'](_0x84f6d9){const _0x28bc48=_0x84f6d9['id'],_0x331060=this[_0x1871('0x118')][_0x1871('0x16')][_0x1871('0x59')](_0x1871('0x5d'));this[_0x1871('0xe')][_0x1871('0x7f')](_0x28bc48)||this[_0x1871('0xe')][_0x1871('0xd8')]({'channelId':_0x331060,'threadId':_0x28bc48,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x826b09=this[_0x1871('0xe')]['getCommentThread'](_0x28bc48);_0x826b09[_0x1871('0x7c')](_0x1871('0x16e')),_0x826b09[_0x1871('0x16e')]=!0x1,_0x84f6d9[_0x1871('0xa9')]=_0x826b09;}[_0x1871('0x121')](_0xb40e9c,_0x1acf83,_0x21ed56,_0x50c0e0){if(_0xb40e9c[_0x1871('0xaa')]!=_0x1acf83||_0xb40e9c[_0x1871('0x9a')]!=_0x21ed56||_0xb40e9c['creator']['id']!=_0x50c0e0)throw this[_0x1871('0x118')][_0x1871('0x96')](_0x1871('0x14a')),new _0x24b5be(_0x1871('0x14a'),this);}[_0x1871('0x108')](_0x20676a,_0x312f29){const _0x1ead5f=_0x20676a[_0x1871('0x2a')]();if(_0x312f29[_0x1871('0x58')](_0x1ead5f))_0x20676a['removeMarkers']();else{if(_0x1ead5f[_0x1871('0x50')](_0x312f29)){const _0x447a61=this[_0x1871('0x16a')]['createPositionAt'](_0x312f29['start']['nodeBefore'],_0x1871('0x23'));this[_0x1871('0x141')](_0x20676a,this[_0x1871('0x16a')][_0x1871('0xb4')](_0x1ead5f[_0x1871('0x143')],_0x447a61));const _0x24ba2c=_0x3e11ea(),_0x4d5ad7=_0x20676a[_0x1871('0x126')]['id'],_0x19002e=_0x20676a[_0x1871('0xaa')]+':'+_0x20676a[_0x1871('0x9a')];this[_0x1871('0xa7')]({'id':_0x24ba2c,'type':_0x19002e,'createdAt':new Date(),'authorId':_0x4d5ad7,'data':_0x20676a['data'],'attributes':_0x20676a[_0x1871('0xc1')]});const _0xb50b7b=this[_0x1871('0x16a')][_0x1871('0x113')](_0x312f29[_0x1871('0x23')][_0x1871('0x17')],_0x1871('0x87')),_0x3929=this[_0x1871('0x16a')][_0x1871('0xb4')](_0xb50b7b,_0x1ead5f[_0x1871('0x23')]);this[_0x1871('0x162')](_0x19002e,_0x24ba2c,_0x4d5ad7,_0x3929);}else{if(_0x1ead5f[_0x1871('0xab')](_0x312f29['start'])){const _0x35028f=this[_0x1871('0x16a')][_0x1871('0x113')](_0x312f29[_0x1871('0x143')][_0x1871('0x131')],_0x1871('0x23'));this[_0x1871('0x141')](_0x20676a,this[_0x1871('0x16a')][_0x1871('0xb4')](_0x1ead5f['start'],_0x35028f));}else{const _0x4e5cb9=this['_model']['createPositionAt'](_0x312f29[_0x1871('0x23')][_0x1871('0x17')],_0x1871('0x87'));this[_0x1871('0x141')](_0x20676a,this['_model'][_0x1871('0xb4')](_0x4e5cb9,_0x1ead5f[_0x1871('0x23')]));}}}}[_0x1871('0x34')](_0x4c6a6d){for(const {suggestion:_0x58a9aa,meta:_0x468626}of this['_findSuggestions'](_0x4c6a6d,'insertion')){if(!_0x468626[_0x1871('0xf6')])continue;const _0x2a578e=_0x58a9aa[_0x1871('0xec')]();for(const _0x431659 of _0x2a578e)if(!_0x4c6a6d[_0x1871('0xb0')](_0x431659)['length'])return!0x0;}return!0x1;}[_0x1871('0x168')](_0x10bb4b){const _0x5c32d4=this[_0x1871('0x118')]['plugins'][_0x1871('0x59')]('Users')[_0x1871('0x72')](_0x10bb4b);if(!_0x5c32d4)throw new _0x24b5be('track-changes-user-not-found',this);return _0x5c32d4;}[_0x1871('0x11e')](_0x2c2f37){const _0x4cdb59=this[_0x1871('0x118')]['plugins']['get'](_0x1871('0x16d')),_0x32a656=_0x25e8fa('external:'+_0x2c2f37),_0x4b8090=_0x4cdb59[_0x1871('0x72')](_0x32a656);return _0x4b8090||_0x4cdb59[_0x1871('0x66')]({'id':_0x32a656,'name':_0x2c2f37});}['_createSuggestion'](_0x572160,_0x2e4734,_0x2b92bc,_0x49d987,_0x28df3d){const _0x5b3263=this[_0x1871('0x168')](_0x49d987),_0x1d660c=this[_0x1871('0x103')][_0x1871('0xc4')](_0x572160,_0x2e4734,_0x2b92bc,_0x5b3263,_0x28df3d,_0x533a8d=>{this['_updateSuggestionData'](_0x2b92bc,{'attributes':_0x533a8d});const _0x102922=this[_0x1871('0x14b')](_0x2b92bc);this[_0x1871('0xd')](new Set([_0x102922])),this[_0x1871('0x84')](new Set([_0x102922]));});return this[_0x1871('0x152')](_0x1d660c,_0x1871('0xdf'),()=>{this[_0x1871('0x177')](_0x2b92bc,{'state':_0x1871('0x10')});},{'priority':_0x1871('0xea')}),this['listenTo'](_0x1d660c,_0x1871('0xbf'),()=>{this['_updateSuggestionData'](_0x2b92bc,{'state':'rejected'});},{'priority':'high'}),this[_0x1871('0x12')][_0x1871('0xb2')](_0x2b92bc,_0x1d660c),this[_0x1871('0x106')][_0x1871('0xb2')](_0x1d660c,_0x1871('0x175')),_0x1d660c;}[_0x1871('0x124')](_0x2fcb78){const _0x139692=_0x2fcb78[_0x1871('0x5a')](':');return{'group':_0x139692[0x0],'type':_0x139692[0x1],'subType':_0x139692[_0x1871('0x82')]>=0x5?_0x139692[0x2]:null,'id':_0x139692[_0x1871('0x82')]<0x5?_0x139692[0x2]:_0x139692[0x3],'authorId':_0x139692[_0x1871('0x82')]<0x5?_0x139692[0x3]:_0x139692[0x4],'markerCount':0x6==_0x139692['length']?_0x139692[0x5]:null};}[_0x1871('0x1f')](_0x1db0fd,_0x1d5bfd,_0x281685){const _0x4cfeb1=_0x1db0fd['getFirstRange'](),_0x25f024=_0x4cfeb1['start'],_0x43760f=_0x4cfeb1[_0x1871('0x23')];this[_0x1871('0x141')](_0x1db0fd,this[_0x1871('0x16a')][_0x1871('0xb4')](_0x25f024,_0x1d5bfd));const _0x5846d0=_0x3e11ea(),_0x323f11=_0x1db0fd['creator']['id'],_0x3233dc=_0x1db0fd[_0x1871('0xaa')]+(_0x1db0fd[_0x1871('0x9a')]?':'+_0x1db0fd[_0x1871('0x9a')]:'');this[_0x1871('0xa7')]({'id':_0x5846d0,'type':_0x3233dc,'createdAt':new Date(),'authorId':_0x323f11,'originalSuggestionId':_0x1db0fd['id'],'attributes':_0x1db0fd[_0x1871('0xc1')],'data':_0x1db0fd['data']});const _0xafb0d9=this[_0x1871('0x11d')](_0x1db0fd);(_0x1871('0x15a')==_0x1db0fd['type']||_0xafb0d9&&this[_0x1871('0x8e')](_0xafb0d9))&&(_0x281685=this['_model']['createPositionBefore'](_0x281685['parent'])),this['_addSuggestionMarker'](_0x3233dc,_0x5846d0,_0x323f11,this[_0x1871('0x16a')]['createRange'](_0x281685,_0x43760f));}[_0x1871('0x15c')](_0x3a6877,_0x296761=null){const _0x1d9a0e=[],_0x4e0d2f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3a6877)||(_0x3a6877=[_0x3a6877]);for(const _0x42604d of this[_0x1871('0x21')]()){if(!_0x42604d[_0x1871('0x9')])continue;if(_0x296761&&_0x42604d[_0x1871('0xaa')]!=_0x296761)continue;let _0x54f0ea=!0x1;for(const _0x2ec91b of _0x42604d[_0x1871('0xec')]()){for(const _0x411141 of _0x3a6877){const _0x4d6965=_0x411141[_0x1871('0x143')][_0x1871('0x58')](_0x2ec91b[_0x1871('0x23')])||_0x411141[_0x1871('0x23')][_0x1871('0x58')](_0x2ec91b['start']);if(_0x4d6965||_0x411141['getIntersection'](_0x2ec91b)){const _0x3a2adb=_0x411141['containsRange'](_0x2ec91b)&&xt(this['_model']['schema'],_0x2ec91b['start'],_0x411141),_0x374801=_0x2ec91b[_0x1871('0x50')](_0x411141)&&xt(this['_model'][_0x1871('0x136')],_0x411141['start'],_0x2ec91b);_0x1d9a0e[_0x1871('0x169')]({'suggestion':_0x42604d,'meta':{'isOwn':_0x4e0d2f==_0x42604d[_0x1871('0x43')],'isNextTo':_0x4d6965,'isInsideObject':_0x3a2adb,'containsRangeInObject':_0x374801}}),_0x54f0ea=!0x0;break;}}if(_0x54f0ea)break;}}return _0x1d9a0e;}[_0x1871('0x162')](_0x449359,_0x1c8940,_0x500741,_0x477b39,_0x18ceeb){this[_0x1871('0x16a')][_0x1871('0xa4')](_0x384b3a=>{let _0x182eb3=_0x1871('0xd3')+_0x449359+':'+_0x1c8940+':'+_0x500741;_0x18ceeb&&(_0x182eb3=_0x182eb3+':'+_0x18ceeb),_0x384b3a[_0x1871('0x127')](_0x182eb3,{'range':_0x477b39,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1871('0x10c')](_0x5b92cc){const _0x5d7ece=_0x5b92cc['previous'],_0x2f9114=_0x5b92cc[_0x1871('0x7')];_0x5b92cc[_0x1871('0x24')]=null,_0x5b92cc[_0x1871('0x7')]=null,null!=_0x5d7ece&&_0x5d7ece[_0x1871('0x7')]==_0x5b92cc&&(_0x5d7ece[_0x1871('0x7')]=_0x2f9114),null!=_0x2f9114&&_0x2f9114[_0x1871('0x24')]==_0x5b92cc&&(_0x2f9114[_0x1871('0x24')]=_0x5d7ece),_0x1871('0x2b')==this[_0x1871('0x106')][_0x1871('0x59')](_0x5b92cc)&&(this[_0x1871('0x106')][_0x1871('0xb2')](_0x5b92cc,'removed'),this[_0x1871('0x116')](_0x1871('0x3d'),_0x5b92cc,_0x5d7ece,_0x2f9114));}[_0x1871('0xa7')](_0x4007ec){const _0x5b2186=_0x4007ec['id'],_0x21ac8b=this['addSuggestionData'](_0x4007ec);if(this[_0x1871('0x6c')]&&this[_0x1871('0x6c')][_0x1871('0x12c')]){const _0x476aba=this['editor'][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x149')),_0x392542=_0x21ac8b[_0x1871('0xe7')],_0x33fd95=_0x21ac8b[_0x1871('0x9a')]?_0x21ac8b['type']+':'+_0x21ac8b['subType']:_0x21ac8b[_0x1871('0xaa')],_0x2e158c=this[_0x1871('0x118')][_0x1871('0x8')],_0x122d11=_0x476aba[_0x1871('0xa2')](_0x33b9dc(_0x2e158c,_0x1871('0x5f'))),_0x5e2272={'id':_0x5b2186,'type':_0x33fd95,'hasComments':_0x392542,'data':_0x4007ec['data']||null,'originalSuggestionId':_0x4007ec[_0x1871('0x14')]||null,'attributes':_0x21ac8b[_0x1871('0xc1')]};this[_0x1871('0x6c')][_0x1871('0x12c')](_0x5e2272)[_0x1871('0xca')](_0x29a994=>{_0x21ac8b['_saved']=!0x0,_0x476aba[_0x1871('0xe1')](_0x122d11),_0x29a994&&_0x29a994[_0x1871('0x29')]&&(this['_suggestions'][_0x1871('0x59')](_0x5b2186)[_0x1871('0x29')]=_0x29a994[_0x1871('0x29')]);})[_0x1871('0xf2')](_0x1e01a0=>{throw _0x11b174('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x1871('0x26')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x21ac8b[_0x1871('0xbf')]();}),_0x21ac8b['stopListening'](),this[_0x1871('0x12')]['delete'](_0x21ac8b['id']),this[_0x1871('0x106')][_0x1871('0x13d')](_0x21ac8b),_0x1e01a0;});}return _0x21ac8b;}[_0x1871('0x8e')](_0x3dc38b){return this[_0x1871('0x119')][_0x1871('0x165')](_0x3dc38b);}[_0x1871('0x177')](_0x4ffac5,_0x19e77b){const _0x123ef4=this[_0x1871('0x118')][_0x1871('0x13f')][_0x1871('0x59')](_0x1871('0x149')),_0x98a8af=this[_0x1871('0x14b')](_0x4ffac5);if(this[_0x1871('0x6c')]&&this['_adapter'][_0x1871('0xfc')]){if(_0x98a8af['_saved']){const _0x13085e=_0x123ef4[_0x1871('0xa2')](_0x33b9dc(this[_0x1871('0x118')][_0x1871('0x8')],_0x1871('0x5f')));this['_adapter']['updateSuggestion'](_0x4ffac5,_0x19e77b)['then'](()=>{_0x123ef4[_0x1871('0xe1')](_0x13085e);});}else _0x98a8af['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4ffac5,_0x19e77b);});}}[_0x1871('0x104')](_0x2a6840){if(!this[_0x1871('0x6c')]||!this['_adapter'][_0x1871('0x14b')])throw new _0x24b5be(_0x1871('0x85'),this);return this['_adapter'][_0x1871('0x14b')](_0x2a6840);}[_0x1871('0x5c')](_0x1bf514){const {id:_0x4f2efa,type:_0x33bfd0,subType:_0x2fc49a,authorId:_0x5b26a9}=this['_splitMarkerName'](_0x1bf514),_0x189ae1=this[_0x1871('0x12')][_0x1871('0x59')](_0x4f2efa)||this[_0x1871('0x146')](_0x33bfd0,_0x2fc49a,_0x4f2efa,_0x5b26a9,{});switch(this[_0x1871('0x121')](_0x189ae1,_0x33bfd0,_0x2fc49a,_0x5b26a9),this[_0x1871('0x106')][_0x1871('0x59')](_0x189ae1)){case _0x1871('0x175'):this[_0x1871('0x104')](_0x4f2efa)[_0x1871('0xca')](_0x1a551e=>{let _0x1f5136=Promise[_0x1871('0xff')]();_0x1a551e[_0x1871('0xe7')]&&(_0x1f5136=this[_0x1871('0xe')][_0x1871('0x14c')]({'channelId':this[_0x1871('0x118')][_0x1871('0x16')][_0x1871('0x59')](_0x1871('0x5d')),'threadId':_0x4f2efa})),_0x1f5136[_0x1871('0xca')](()=>{this[_0x1871('0x37')](_0x1a551e)[_0x1871('0x67')]=!0x0;});}),this[_0x1871('0x106')][_0x1871('0xb2')](_0x189ae1,_0x1871('0xb5'));break;case'removed':this[_0x1871('0x177')](_0x4f2efa,{'state':'open'});case _0x1871('0x16b'):this[_0x1871('0x106')]['set'](_0x189ae1,_0x1871('0x2b')),this[_0x1871('0x116')]('suggestionLoaded',_0x189ae1);break;case'ready':this[_0x1871('0x116')](_0x1871('0x10b'),_0x189ae1);}return _0x189ae1[_0x1871('0x102')](_0x1bf514),_0x189ae1;}['_refreshSuggestionsChain'](_0x2a7ebf){const _0x23c749=Array['from'](_0x2a7ebf),_0x218dbc=_0x23c749[_0x1871('0x2d')](_0x54fd47=>_0x1871('0xac')==_0x54fd47[_0x1871('0xaa')]);this[_0x1871('0x15f')](_0x218dbc);const _0x3753ac=_0x23c749[_0x1871('0x2d')](_0x2aa491=>!_0x2aa491[_0x1871('0x125')]&&'attribute'!=_0x2aa491[_0x1871('0xaa')]),_0x1418c8=this['getSuggestions']({'skipNotAttached':!0x0})[_0x1871('0x2d')](_0x433ff0=>!_0x433ff0[_0x1871('0x125')]&&'attribute'!=_0x433ff0[_0x1871('0xaa')]),_0x216af6=_0x1418c8[_0x1871('0x2d')](_0x1f29cb=>!_0x2a7ebf[_0x1871('0x165')](_0x1f29cb)),_0x5e17e3=new Map(_0x1418c8[_0x1871('0x44')](_0x477db2=>[_0x477db2,this[_0x1871('0x103')]['getSuggestionCallback'](_0x477db2[_0x1871('0xaa')],_0x477db2['subType'],_0x1871('0x11b'))])),_0x167fde=new Map(_0x1418c8[_0x1871('0x44')](_0x115475=>[_0x115475,_0x115475[_0x1871('0x2a')]()])),_0x480692=new Set(),_0x2420a9=new Set();for(let _0x5e35f8=0x0;_0x5e35f8<_0x3753ac[_0x1871('0x82')];_0x5e35f8++)_0x356055(_0x3753ac[_0x5e35f8],_0x3753ac,_0x5e35f8+0x1);for(let _0x3fbc58=0x0;_0x3fbc58<_0x3753ac[_0x1871('0x82')];_0x3fbc58++)_0x356055(_0x3753ac[_0x3fbc58],_0x216af6,0x0);const _0x21f714=new Set();for(let _0x4a4b96=0x0;_0x4a4b96<_0x3753ac[_0x1871('0x82')];_0x4a4b96++){const _0x183463=_0x3753ac[_0x4a4b96];!_0x2420a9[_0x1871('0x165')](_0x183463)&&_0x183463[_0x1871('0x24')]&&(_0x21f714[_0x1871('0xa2')](_0x183463[_0x1871('0x24')]),_0x183463['previous'][_0x1871('0x7')]===_0x183463&&(_0x183463['previous'][_0x1871('0x7')]=null),_0x183463['previous']=null),!_0x480692['has'](_0x183463)&&_0x183463[_0x1871('0x7')]&&(_0x21f714['add'](_0x183463[_0x1871('0x7')]),_0x183463[_0x1871('0x7')][_0x1871('0x24')]===_0x183463&&(_0x183463[_0x1871('0x7')][_0x1871('0x24')]=null),_0x183463[_0x1871('0x7')]=null);}function _0x356055(_0x538f7b,_0x401548,_0x1597bc){for(let _0xc380e2=_0x1597bc;_0xc380e2<_0x401548[_0x1871('0x82')];_0xc380e2++){const _0x546f03=_0x5aaec4(_0x538f7b,_0x401548[_0xc380e2]);_0x546f03&&(_0x546f03[0x0][_0x1871('0x7')]=_0x546f03[0x1],_0x546f03[0x1][_0x1871('0x24')]=_0x546f03[0x0],_0x480692[_0x1871('0xa2')](_0x546f03[0x0]),_0x2420a9[_0x1871('0xa2')](_0x546f03[0x1]));}}function _0x5aaec4(_0x503c0f,_0x48ef05){if(_0x503c0f['author']['id']!==_0x48ef05[_0x1871('0x43')]['id'])return null;const _0x16f0ab=_0x5e17e3[_0x1871('0x59')](_0x503c0f)(_0x503c0f,_0x48ef05,_0x167fde[_0x1871('0x59')](_0x503c0f),_0x167fde['get'](_0x48ef05));if(!_0x16f0ab)return null;return _0x5e17e3[_0x1871('0x59')](_0x48ef05)(_0x503c0f,_0x48ef05,_0x167fde[_0x1871('0x59')](_0x503c0f),_0x167fde[_0x1871('0x59')](_0x48ef05))?_0x16f0ab[0x1][_0x1871('0xa9')]&&_0x16f0ab[0x1][_0x1871('0xa9')][_0x1871('0x82')]?null:_0x16f0ab:null;}_0x21f714[_0x1871('0x4f')]&&this[_0x1871('0x84')](_0x21f714);}['_refreshAttributeSuggestionsChain'](_0x13f433){if(0x0==_0x13f433[_0x1871('0x82')])return;const _0x1c60e3=this[_0x1871('0x21')]({'skipNotAttached':!0x0})['filter'](_0x2c4b52=>_0x1871('0xac')==_0x2c4b52[_0x1871('0xaa')]&&_0x2c4b52['_isDataLoaded']),_0x48fcf9=[],_0xdbe879=new Map();for(const _0x4b7052 of _0x1c60e3){const _0x10726e=_0x25e8fa(_0x4b7052[_0x1871('0xc1')]);_0xdbe879['has'](_0x10726e)||(_0xdbe879[_0x1871('0xb2')](_0x10726e,_0x48fcf9[_0x1871('0x82')]),_0x48fcf9[_0x1871('0x169')]([]));const _0x44a6b4=_0xdbe879[_0x1871('0x59')](_0x10726e);_0x48fcf9[_0x44a6b4]['push'](_0x4b7052);}!function(){_0x48fcf9['sort']((_0x1d3521,_0xde35f5)=>{const _0x12a04a=_0x1d3521[0x0][_0x1871('0x29')],_0x4e406e=_0xde35f5[0x0][_0x1871('0x29')];return _0x12a04a==_0x4e406e?_0x1d3521[0x0][_0x1871('0xc1')][_0x1871('0xd4')]<_0xde35f5[0x0][_0x1871('0xc1')][_0x1871('0xd4')]?-0x1:0x1:_0x12a04a<_0x4e406e?-0x1:0x1;});for(const _0x2dd665 of _0x48fcf9)_0x2dd665['sort']((_0x3d6c61,_0x28cb12)=>_0x3d6c61['id']<_0x28cb12['id']?-0x1:0x1);}();for(let _0x410d61=0x0;_0x410d61<_0x48fcf9[_0x1871('0x82')];_0x410d61++){if(0x0==_0x48fcf9[_0x410d61][_0x1871('0x82')])continue;const _0x52fc80=[];for(let _0x4e7c25=_0x410d61+0x1;_0x4e7c25<_0x48fcf9['length'];_0x4e7c25++)0x0!=_0x48fcf9[_0x4e7c25][_0x1871('0x82')]&&_0xdc7ce6(_0x48fcf9[_0x410d61],_0x48fcf9[_0x4e7c25])&&_0x52fc80['push'](_0x4e7c25);for(const _0x2b6aca of _0x52fc80)_0x48fcf9[_0x410d61]=_0x48fcf9[_0x410d61][_0x1871('0x100')](_0x48fcf9[_0x2b6aca]),_0x48fcf9[_0x2b6aca]=[];}for(const _0x5f441d of _0x48fcf9)for(let _0x49b945=0x0;_0x49b945<_0x5f441d[_0x1871('0x82')];_0x49b945++)_0x5f441d[_0x49b945][_0x1871('0x7')]=_0x5f441d[_0x49b945+0x1]||null;for(const _0x15ce6f of _0x48fcf9)for(let _0x1fe547=0x0;_0x1fe547<_0x15ce6f[_0x1871('0x82')];_0x1fe547++)_0x15ce6f[_0x1fe547]['previous']=_0x15ce6f[_0x1fe547-0x1]||null;function _0xdc7ce6(_0x3a80a9,_0x463882){if(_0x3a80a9[0x0][_0x1871('0xc1')][_0x1871('0xd4')]!==_0x463882[0x0][_0x1871('0xc1')]['groupId']&&_0x3a80a9[0x0]['author']!==_0x463882[0x0][_0x1871('0x43')])return!0x1;if(!function(_0x5848f5,_0x4ad9bd){if(!_0x5848f5[_0x1871('0xe7')]&&!_0x4ad9bd['hasComments'])return!0x0;if(_0x5848f5[_0x1871('0xe7')]&&_0x4ad9bd['hasComments'])return!0x1;if(_0x5848f5['hasComments']&&_0x4ad9bd[_0x1871('0x29')]<_0x5848f5[_0x1871('0xa9')][_0x1871('0x10d')][_0x1871('0x59')](0x0)[_0x1871('0x29')])return!0x0;if(_0x4ad9bd[_0x1871('0xe7')]&&_0x5848f5[_0x1871('0x29')]<_0x4ad9bd[_0x1871('0xa9')][_0x1871('0x10d')][_0x1871('0x59')](0x0)[_0x1871('0x29')])return!0x0;return!0x1;}(_0x3a80a9[0x0],_0x463882[0x0]))return!0x1;const _0x4065db=_0x5377cc(_0x3a80a9[0x0][_0x1871('0xc1')],_0x1871('0xd4')),_0x528f42=_0x5377cc(_0x463882[0x0][_0x1871('0xc1')],_0x1871('0xd4'));if(!_0x373ca2(_0x4065db,_0x528f42))return!0x1;return!!_0x3a80a9[_0x1871('0xb9')](_0x4fe9da=>_0x463882['some'](_0x13d538=>_0x4fe9da[_0x1871('0x2a')]()[_0x1871('0x58')](_0x13d538[_0x1871('0x2a')]())))&&_0x463882[_0x1871('0xb9')](_0x2ac620=>_0x3a80a9[_0x1871('0xe2')](_0x29b0ef=>_0x2ac620[_0x1871('0x2a')]()[_0x1871('0x58')](_0x29b0ef[_0x1871('0x2a')]())));}}['_joinWithAdjacentSuggestions'](_0x5ce2e2){const _0x110b74=Array[_0x1871('0x12f')](_0x5ce2e2),_0x54b725=this[_0x1871('0x21')]({'skipNotAttached':!0x0}),_0x47dfa=_0x54b725[_0x1871('0x2d')](_0x1659cd=>!_0x5ce2e2['has'](_0x1659cd)),_0x58d174=new Map(_0x110b74[_0x1871('0x44')](_0x1e7bd0=>[_0x1e7bd0,this['_suggestionFactory'][_0x1871('0xc9')](_0x1e7bd0[_0x1871('0xaa')],_0x1e7bd0['subType'],'join')])),_0x59da5b=new Map(_0x54b725[_0x1871('0x44')](_0x1a0d54=>[_0x1a0d54,_0x1a0d54['getRanges']()]));for(let _0x3a5cb9=0x0;_0x3a5cb9<_0x110b74[_0x1871('0x82')];_0x3a5cb9++){if(_0x50ba47(this,_0x110b74[_0x3a5cb9],_0x110b74,_0x3a5cb9+0x1))return!0x0;}for(let _0x3d3509=0x0;_0x3d3509<_0x110b74['length'];_0x3d3509++){if(_0x50ba47(this,_0x110b74[_0x3d3509],_0x47dfa,0x0))return!0x0;}return!0x1;function _0x50ba47(_0x1a58e4,_0x1fd31c,_0x2fafe7,_0x644bbd){for(let _0x3f14bd=_0x644bbd;_0x3f14bd<_0x2fafe7[_0x1871('0x82')];_0x3f14bd++){const _0xc5e5a2=_0x2fafe7[_0x3f14bd];if(_0xc5e5a2[_0x1871('0xaa')]!==_0x1fd31c[_0x1871('0xaa')]||_0xc5e5a2[_0x1871('0x43')]['id']!==_0x1fd31c[_0x1871('0x43')]['id']||_0xc5e5a2[_0x1871('0x9a')]!==_0x1fd31c['subType'])continue;if(!Ft(_0x1fd31c,_0xc5e5a2,[_0x1871('0xd4')]))continue;if(_0x1871('0xac')==_0x1fd31c[_0x1871('0xaa')]&&_0x1fd31c[_0x1871('0x78')][_0x1871('0xad')]!=_0xc5e5a2[_0x1871('0x78')][_0x1871('0xad')])continue;if(_0x1871('0xac')==_0x1fd31c[_0x1871('0xaa')]&&_0x1a58e4['_isBlockAttribute'](_0x1fd31c[_0x1871('0x78')][_0x1871('0xa5')]))continue;if('formatBlock'==_0x1fd31c['type']){const _0x5091f1=_0x1a58e4[_0x1871('0x118')][_0x1871('0x26')],_0xf35ed8=_0x1fd31c['getContainedElement']();if(_0xf35ed8&&(_0x5091f1[_0x1871('0x136')][_0x1871('0x60')](_0xf35ed8)||_0x5091f1[_0x1871('0x136')]['isLimit'](_0xf35ed8)))continue;}const _0x3566bf=_0x58d174['get'](_0x1fd31c),_0x35e930=_0x59da5b[_0x1871('0x59')](_0x1fd31c),_0xb224d9=_0x59da5b[_0x1871('0x59')](_0xc5e5a2),_0x40a34a=_0x1fd31c[_0x1871('0xa9')]&&_0x1fd31c[_0x1871('0xa9')][_0x1871('0x82')],_0x2da053=_0xc5e5a2[_0x1871('0xa9')]&&_0xc5e5a2[_0x1871('0xa9')][_0x1871('0x82')];if(!_0x40a34a&&_0x3566bf(_0xb224d9,_0x35e930))return _0x1a58e4['_joinSuggestions'](_0xc5e5a2,_0x1fd31c),_0x59da5b['delete'](_0x1fd31c),!0x0;if(!_0x2da053&&_0x3566bf(_0x35e930,_0xb224d9))return _0x1a58e4[_0x1871('0xe9')](_0x1fd31c,_0xc5e5a2),_0x59da5b[_0x1871('0x13d')](_0xc5e5a2),!0x0;}return!0x1;}}[_0x1871('0xe9')](_0x6fdd0c,_0x8692ec){if(_0x6fdd0c[_0x1871('0x125')])for(const _0xdbd116 of _0x8692ec[_0x1871('0xec')]())_0x6fdd0c[_0x1871('0x4b')](_0xdbd116);else{const _0x23e4b7=_0x8692ec[_0x1871('0x2a')]()[_0x1871('0x23')];this[_0x1871('0x141')](_0x6fdd0c,this[_0x1871('0x16a')]['createRange'](_0x6fdd0c['getFirstRange']()['start'],_0x23e4b7));}_0x8692ec[_0x1871('0xce')]();}[_0x1871('0x10e')](_0x41a5eb,_0x102708){const _0x49966f=_0x41a5eb[_0x1871('0x13a')]('format')||_0x41a5eb[_0x1871('0x13a')]('attribute')?_0x1871('0xae'):_0x41a5eb[_0x1871('0xe0')]();return _0x33b9dc(this['editor'][_0x1871('0x8')],_0x102708+'_'+_0x49966f+_0x1871('0x74'));}[_0x1871('0x1e')](){const _0x4fbb94=this[_0x1871('0x118')];_0x13cdd5(this[_0x1871('0x16a')],({left:_0x528fc4,entered:_0x1e2ca5})=>{const _0x33d5dc=[];for(const _0x3d85a2 of _0x528fc4){const {group:_0x2bf755,type:_0x58f7f5}=this['_splitMarkerName'](_0x3d85a2[_0x1871('0x161')]);if(_0x1871('0x45')===_0x2bf755){_0x33d5dc['push'](this[_0x1871('0x10e')](_0x58f7f5,_0x1871('0x41')));break;}}for(const _0x4a3dfe of _0x1e2ca5){const {group:_0x2065f3,type:_0x4c1312}=this[_0x1871('0x124')](_0x4a3dfe[_0x1871('0x161')]);if(_0x1871('0x45')===_0x2065f3){_0x33d5dc[_0x1871('0x169')](this[_0x1871('0x10e')](_0x4c1312,'ENTER'));break;}}_0x33d5dc[_0x1871('0x82')]&&_0x4fbb94['ui'][_0x1871('0x166')][_0x1871('0x64')](_0x1871('0x33'),_0x33d5dc[_0x1871('0xdd')]('\x20'));});}[_0x1871('0x73')](_0x8c586d){if(this[_0x1871('0x7d')])return!0x1;const _0x143801=this[_0x1871('0x118')],_0x25cb48=_0x143801[_0x1871('0x26')]['document'][_0x1871('0x159')]['getChanges']();if(0x0==_0x25cb48[_0x1871('0x82')])return!0x1;const _0x40c256=[],_0x3f5f59=_0x25cb48[_0x1871('0x2d')](_0x134c6a=>_0x1871('0xac')==_0x134c6a[_0x1871('0xaa')]),_0x33cd7e=_0x25cb48[_0x1871('0x2d')](_0x401c51=>_0x1871('0x15b')==_0x401c51['type']&&'$text'!=_0x401c51[_0x1871('0x161')]),_0x2b17f8=_0x25cb48[_0x1871('0x2d')](_0x3b5c11=>_0x1871('0xe1')==_0x3b5c11[_0x1871('0xaa')]&&_0x1871('0x92')!=_0x3b5c11[_0x1871('0x161')]);for(const _0x38d72b of _0x3f5f59)_0x40c256['push']({'key':_0x38d72b[_0x1871('0xc5')],'newValue':_0x38d72b[_0x1871('0x48')],'oldValue':_0x38d72b[_0x1871('0xf')],'range':Ut(_0x38d72b[_0x1871('0xc6')],_0x143801[_0x1871('0x26')])});for(const _0x3ef1db of _0x33cd7e){const _0x1a53e8=_0x2b17f8[_0x1871('0x16f')](_0x275683=>_0x275683[_0x1871('0xa0')][_0x1871('0x58')](_0x3ef1db[_0x1871('0xa0')]));_0x1a53e8&&_0x40c256[_0x1871('0x169')]({'key':_0x1871('0x55'),'newValue':_0x3ef1db[_0x1871('0x161')],'oldValue':_0x1a53e8[_0x1871('0x161')],'range':_0x143801[_0x1871('0x26')][_0x1871('0x36')](_0x3ef1db[_0x1871('0xa0')][_0x1871('0xb6')])});}return 0x0!=_0x40c256['length']&&this[_0x1871('0x6e')](_0x8c586d,_0x40c256);}[_0x1871('0x9b')](_0x20831a){let _0x2429ac=!0x1;const _0x1936c6=this[_0x1871('0x118')]['model'][_0x1871('0x11')][_0x1871('0x159')][_0x1871('0xdb')]()[_0x1871('0x2d')](_0x510631=>_0x510631[_0x1871('0x78')][_0x1871('0x51')]&&_0x510631[_0x1871('0x161')][_0x1871('0x13a')](_0x1871('0x95')));for(const _0x301606 of _0x1936c6){const {subType:_0x4b385d,id:_0x4423ae}=this['_splitMarkerName'](_0x301606[_0x1871('0x161')]),_0x1aa0da=_0x4b385d[_0x1871('0x5a')]('|')[0x0];for(const _0x4173e9 of this[_0x1871('0x21')]({'skipNotAttached':!0x0}))_0x4173e9['id']!=_0x4423ae&&_0x1871('0xac')==_0x4173e9[_0x1871('0xaa')]&&_0x4173e9[_0x1871('0x78')]&&_0x4173e9['data'][_0x1871('0xa5')]==_0x1aa0da&&_0x4173e9[_0x1871('0x2a')]()[_0x1871('0xd2')](_0x301606[_0x1871('0x78')]['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4173e9,_0x301606[_0x1871('0x78')][_0x1871('0x51')],_0x20831a),_0x2429ac=!0x0);}return _0x2429ac;}['_recordAttributeChanges'](_0x4fe305){this[_0x1871('0x118')],(this['_recordAttributeSuggestions']=!0x0,_0x4fe305());}[_0x1871('0x156')](_0xe05490){const _0x10105a=this[_0x1871('0x8e')](_0xe05490),_0x89fe4b=this['_inlineAttributeKeys']['has'](_0xe05490);return _0x10105a||_0x89fe4b;}[_0x1871('0x6e')](_0x2d113a,_0x3c8505){if(0x0==_0x3c8505[_0x1871('0x82')])return!0x1;let _0x4e4d84=!0x1;for(const _0x540c0f of _0x3c8505){const _0xcef6d1=this[_0x1871('0x15c')](_0x540c0f[_0x1871('0xc6')],_0x1871('0xac'))[_0x1871('0x2d')](_0x13c231=>!_0x13c231[_0x1871('0x13')]['isNextTo'])[_0x1871('0x44')](_0x49d17c=>_0x49d17c[_0x1871('0x45')]),_0x57f7be=_0x25e8fa({'newValue':_0x540c0f[_0x1871('0x176')]});_0xcef6d1[_0x1871('0x2d')](_0x1283f8=>{const [_0x3ee57f,_0x2a7ea5]=_0x1283f8[_0x1871('0x9a')]['split']('|');return _0x3ee57f==_0x540c0f[_0x1871('0xa5')]&&_0x2a7ea5!=_0x57f7be;})[_0x1871('0x12a')](_0x3f2fe1=>{this[_0x1871('0x8d')](_0x3f2fe1,_0x540c0f['range'],_0x2d113a),_0x4e4d84=!0x0;});}return _0x4e4d84;}[_0x1871('0x8d')](_0x11f711,_0x1d4cc8,_0x34a6f7){const _0x4d45ce=_0x11f711[_0x1871('0x2a')]()['getDifference'](_0x1d4cc8);0x0!==_0x4d45ce['length']?0x1!==_0x4d45ce['length']?this['_breakSuggestionMarker'](_0x11f711,_0x1d4cc8[_0x1871('0x143')],_0x1d4cc8['end']):this[_0x1871('0x141')](_0x11f711,_0x4d45ce[0x0]):_0x34a6f7[_0x1871('0x112')](_0x11f711[_0x1871('0x173')]());}}class Bt{constructor(_0x5b540c){this[_0x1871('0x83')]=_0x5b540c,this[_0x1871('0x16a')]=_0x5b540c[_0x1871('0x26')],this[_0x1871('0x1a')]=new Map(),this[_0x1871('0x89')]=new Map(),this['_registerDefaultCallbacks']();}[_0x1871('0xc4')](_0x3b4c1f,_0x59b750,_0x2878db,_0x5f4783,_0x74c305,_0x397418){return new _0x3e227c(this[_0x1871('0x16a')],{'type':_0x3b4c1f,'subType':_0x59b750,'id':_0x2878db,'author':_0x5f4783,'creator':_0x5f4783,'attributes':_0x74c305,'onAttributesChange':_0x397418,'onAccept':(..._0x1755d8)=>this[_0x1871('0xc9')](_0x3b4c1f,_0x59b750,'accept')(..._0x1755d8),'onDiscard':(..._0x24c88a)=>this[_0x1871('0xc9')](_0x3b4c1f,_0x59b750,'discard')(..._0x24c88a)});}[_0x1871('0xaf')](_0x34777f,_0x3b6d65,_0x355e22,_0x1968c4){const _0x4a984d=_0x34777f+':'+_0x3b6d65+':'+_0x355e22;this['_customCallbacks'][_0x1871('0xb2')](_0x4a984d,_0x1968c4);}[_0x1871('0xc9')](_0x3ca1d1,_0x5576e2,_0x5d8ae5){const _0x24b107=_0x3ca1d1+':'+_0x5576e2+':'+_0x5d8ae5;return this[_0x1871('0x1a')][_0x1871('0x59')](_0x24b107)||this[_0x1871('0x89')]['get'](_0x3ca1d1+':'+_0x5d8ae5);}['_registerDefaultCallbacks'](){const _0x283a73=()=>!0x1,_0x2d884d=_0x26e64e=>{_0x26e64e[_0x1871('0x122')]((_0x1484fb,_0x324bb7)=>_0x1484fb[_0x1871('0x143')]['isBefore'](_0x324bb7[_0x1871('0x143')])?0x1:-0x1),this[_0x1871('0x16a')][_0x1871('0xa4')](_0x52a9d2=>{for(const _0x572d8e of _0x26e64e){let _0x2de329;_0x2de329=_0x572d8e['end'][_0x1871('0x1c')]&&_0x572d8e[_0x1871('0x23')]['parent']==_0x572d8e[_0x1871('0x143')]['nodeAfter']?_0x52a9d2[_0x1871('0x3')](_0x572d8e[_0x1871('0x143')][_0x1871('0xb6')],'on'):_0x52a9d2[_0x1871('0x3')](_0x572d8e),this['_model'][_0x1871('0x7b')](_0x2de329,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x539b30=(_0x543ff2,_0x1136b1)=>{_0x1136b1&&this['_model']['change'](_0x55dbf1=>{const {commandName:_0x282800,commandParams:_0x2ce748=[]}=_0x1136b1,_0x15f42e=_0x543ff2['map'](_0x23e946=>(Rt(_0x23e946)&&(_0x23e946=this['_model'][_0x1871('0xb4')](_0x23e946[_0x1871('0x23')])),_0x23e946))[_0x1871('0x2d')](_0x21d8cd=>_0x1871('0x65')!==_0x21d8cd[_0x1871('0x167')][_0x1871('0xa3')]);if(_0x15f42e[_0x1871('0x82')]<0x1)return;const _0x1684d2=Array[_0x1871('0x12f')](this[_0x1871('0x16a')][_0x1871('0x11')][_0x1871('0x4')][_0x1871('0xec')]())[_0x1871('0x44')](_0x46dc75=>_0x190336['fromRange'](_0x46dc75));_0x55dbf1['setSelection'](_0x15f42e);for(const _0x3b39da of this[_0x1871('0x83')][_0x1871('0xf0')][_0x1871('0xf0')]())_0x3b39da[_0x1871('0x171')]();_0x2ce748['push']({'forceDefaultExecution':!0x0}),this[_0x1871('0x83')][_0x1871('0x12e')](_0x282800,..._0x2ce748);const _0x41733d=_0x1684d2[_0x1871('0x2d')](_0x359b42=>'$graveyard'!=_0x359b42[_0x1871('0x167')][_0x1871('0xa3')]);_0x41733d[_0x1871('0x82')]>0x0&&_0x55dbf1[_0x1871('0x27')](_0x41733d);for(const _0x4b226b of _0x1684d2)_0x4b226b[_0x1871('0x6a')]();});},_0x154140=(_0x1d7679,_0x42737c)=>0x1==_0x1d7679[_0x1871('0x82')]&&0x1==_0x42737c['length']&&_0x1d7679[0x0][_0x1871('0x23')][_0x1871('0x58')](_0x42737c[0x0]['start']),_0x1cc4da=(_0x5094fc,_0x49fedb,_0x2391ee,_0x2c7260)=>Gt(_0x5094fc,_0x49fedb,_0x2391ee,_0x2c7260,this['_model'])?[_0x5094fc,_0x49fedb]:Gt(_0x49fedb,_0x5094fc,_0x2c7260,_0x2391ee,this['_model'])?[_0x49fedb,_0x5094fc]:null;this['_defaultCallbacks'][_0x1871('0xb2')](_0x1871('0x120'),_0x283a73),this[_0x1871('0x89')]['set'](_0x1871('0x70'),_0x2d884d),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0x107'),_0x154140),this[_0x1871('0x89')]['set'](_0x1871('0xcd'),_0x1cc4da),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0x94'),_0x2d884d),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0x9e'),_0x283a73),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0x117'),_0x154140),this['_defaultCallbacks'][_0x1871('0xb2')]('deletion:chain',_0x1cc4da),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0xa1'),_0x539b30),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0xc8'),_0x283a73),this[_0x1871('0x89')][_0x1871('0xb2')]('formatInline:join',_0x154140),this['_defaultCallbacks'][_0x1871('0xb2')](_0x1871('0xd7'),_0x283a73),this['_defaultCallbacks'][_0x1871('0xb2')](_0x1871('0x1b'),_0x539b30),this[_0x1871('0x89')]['set'](_0x1871('0x1'),_0x283a73),this['_defaultCallbacks']['set']('formatBlock:join',_0x154140),this[_0x1871('0x89')][_0x1871('0xb2')]('formatBlock:chain',_0x283a73),this[_0x1871('0x89')]['set'](_0x1871('0x3a'),_0x283a73),this[_0x1871('0x89')]['set'](_0x1871('0xc2'),(_0x5bde96,_0x2f58c1)=>{if(!_0x2f58c1)return;const _0x53db89=this['_editor'][_0x1871('0x13f')][_0x1871('0x59')](p);this['_model']['change'](_0x58bb72=>{if('$elementName'==_0x2f58c1[_0x1871('0xa5')])for(const _0x2a2516 of _0x5bde96){const _0x4b5740=_0x2a2516[_0x1871('0x143')]['nodeAfter'],_0x336899=_0x2f58c1[_0x1871('0xad')];_0x58bb72[_0x1871('0x144')](_0x4b5740,_0x336899);}else{if(_0x53db89['_isBlockAttribute'](_0x2f58c1[_0x1871('0xa5')]))for(const _0x233970 of _0x5bde96)void 0x0!==_0x2f58c1[_0x1871('0xad')]?_0x58bb72[_0x1871('0x138')](_0x2f58c1[_0x1871('0xa5')],_0x2f58c1[_0x1871('0xad')],_0x233970[_0x1871('0x143')][_0x1871('0xb6')]):_0x58bb72[_0x1871('0xe6')](_0x2f58c1['key'],_0x233970[_0x1871('0x143')][_0x1871('0xb6')]);else for(const _0x63e7c3 of _0x5bde96)_0x2f58c1[_0x1871('0xad')]?_0x58bb72[_0x1871('0x138')](_0x2f58c1[_0x1871('0xa5')],_0x2f58c1[_0x1871('0xad')],_0x63e7c3):_0x58bb72[_0x1871('0xe6')](_0x2f58c1[_0x1871('0xa5')],_0x63e7c3);}});}),this[_0x1871('0x89')][_0x1871('0xb2')](_0x1871('0x68'),_0x154140);}}function xt(_0x86b4ba,_0x130943,_0x3c1d8f){for(const _0x47ab27 of _0x130943[_0x1871('0x17')][_0x1871('0x174')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x47ab27[_0x1871('0x167')]==_0x47ab27)return!0x1;if(!_0x3c1d8f[_0x1871('0x13e')](_0x47ab27))return!0x1;if(_0x86b4ba[_0x1871('0x60')](_0x47ab27)||_0x86b4ba['isLimit'](_0x47ab27))return!0x0;}return!0x1;}function Rt(_0x32051f){return _0x32051f['end'][_0x1871('0x17')]==_0x32051f[_0x1871('0x143')][_0x1871('0xb6')]&&_0x32051f[_0x1871('0x23')][_0x1871('0xf4')];}function Tt(_0x19ac70,_0x4e82c4,_0x53f77b,_0x1f3b21){const _0x4abaff=_0xa8d698=>!_0xa8d698[_0x1871('0x8c')]['is'](_0x1871('0x11f'))&&!_0x1f3b21[_0x1871('0x60')](_0xa8d698[_0x1871('0x8c')]),_0x52151a=_0x19ac70['start'][_0x1871('0x13c')](_0x4abaff),_0x3ee879=_0x19ac70['end'][_0x1871('0x13c')](_0x4abaff,{'direction':_0x1871('0x9c')});return(!_0x19ac70[_0x1871('0x143')][_0x1871('0x58')](_0x52151a)||!_0x19ac70[_0x1871('0x23')][_0x1871('0x58')](_0x3ee879))&&(_0x52151a[_0x1871('0x6f')](_0x3ee879)?_0x53f77b[_0x1871('0x93')](_0x4e82c4,{'range':_0x53f77b[_0x1871('0xb4')](_0x52151a,_0x3ee879)}):_0x53f77b[_0x1871('0x112')](_0x4e82c4),!0x0);}function Et(_0x19e28a){return _0x25e8fa(_0x19e28a);}function Vt(_0xc506bf){const _0x22794c=_0xc506bf[_0x1871('0x143')]['nodeAfter'];return _0x22794c&&_0x22794c['is']('element');}function Ut(_0x2494e7,_0x651aef){return null==_0x2494e7['end']['nodeBefore']&&_0x2494e7['end']['parent']==_0x2494e7['start']['nodeAfter']?Ot(_0x2494e7[_0x1871('0x143')][_0x1871('0xb6')],_0x651aef):_0x2494e7;}function Ot(_0x339a6e,_0x41aa2c){const _0x45eb4c=_0x41aa2c[_0x1871('0x136')][_0x1871('0x60')](_0x339a6e)||_0x41aa2c['schema'][_0x1871('0xba')](_0x339a6e);return _0x41aa2c['createRange'](_0x41aa2c['createPositionAt'](_0x339a6e,_0x1871('0x18')),_0x45eb4c?_0x41aa2c[_0x1871('0x53')](_0x339a6e):_0x41aa2c['createPositionAt'](_0x339a6e,_0x1871('0x23')));}function Gt(_0x1b1d68,_0x3a1ebd,_0x2882de,_0x21a0fb,_0x28d16d){if(!Ft(_0x1b1d68,_0x3a1ebd))return!0x1;if(_0x2882de['end'][_0x1871('0x58')](_0x21a0fb[_0x1871('0x143')]))return!0x0;if(_0x1b1d68[_0x1871('0xaa')]!=_0x3a1ebd['type'])return!0x1;if(!_0x2882de['end'][_0x1871('0x6b')](_0x21a0fb[_0x1871('0x143')]))return!0x1;const _0x2e1a10=_0x28d16d[_0x1871('0xb4')](_0x2882de[_0x1871('0x23')],_0x21a0fb['start'])[_0x1871('0x46')]();for(const _0x40cfbe of _0x2e1a10)if([_0x1871('0xf9'),_0x1871('0x32')]['includes'](_0x40cfbe[_0x1871('0xaa')])&&_0x28d16d['schema'][_0x1871('0xbe')](_0x40cfbe[_0x1871('0x8c')]))return!0x1;return!0x0;}function Ft(_0x1bd748,_0x368753,_0x47c890=[]){return!(!_0x1bd748[_0x1871('0x20')]||!_0x368753[_0x1871('0x20')])&&_0x373ca2(_0x5377cc(_0x1bd748['attributes'],_0x47c890),_0x5377cc(_0x368753[_0x1871('0xc1')],_0x47c890));}function Pt(_0x4f797e,_0x4bc02a){const _0x56e90b=Lt(_0x4f797e[_0x1871('0xc1')]),_0x577f15=Lt(_0x4bc02a);if(!_0x4f797e['_isDataLoaded'])return!0x1;for(const _0x3a28dc of Object[_0x1871('0x105')](_0x577f15))if(!_0x373ca2(_0x56e90b[_0x3a28dc],_0x577f15[_0x3a28dc]))return!0x1;return!0x0;}function Lt(_0x31834c){const _0x38133a=Object[_0x1871('0x25')]({},_0x31834c);return delete _0x38133a[_0x1871('0x8b')],delete _0x38133a[_0x1871('0x31')],_0x38133a;}
|