@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x31f0=['insertion:chain','elementToElement','registerPostFixer','getAttribute','enqueueChange','change:data','registerCustomCallback','keys','editing','announce','elementStart','_addSuggestionMarker','createPositionAfter','clone','isIntersectingWithRange','ck-suggestion-marker','track-changes-suggestion-not-found','markInlineFormat','open','markerName','accepted','error-saving-suggestion-data-suggestion-discarded','filter','value','ariaLiveAnnouncer','formatGroupId','documentSelection','groupId','removeAttribute','external:','isMultiRange','dataReady','_processAttributeChanges','backward','change','setAttribute','define','_rangeIsInLocalUserInsertion','markers','_recordAttributeChanges','getChangedMarkers','size','forceDefaultExecution','end','markerReady','_refreshSuggestionsChain','toUpperCase','suggestion-type','addMarkerName','_reduceSuggestionAttributeRange','stop','plugins','isUndo','_model','_registerDefaultCallbacks','_SUGGESTION_ANNOUNCEMENT','ENTER','assign','notReady','_reduceExistingSuggestions','every','insertion','@external','_updateSuggestionData','_refreshAttributeSuggestionsChain','toViewElement','track-changes-enable-command-twice','getCustomProperty','author','normal','adapter','isBefore','ck-suggestion-marker--active','parent','push','formatBlock:','_defaultCallbacks','activeMarkers','addClass','hasSuggestion','previous','widget','_editor','_inlineAttributeKeys','sort','newValue','acceptSuggestion','_setSuggestionRange','formatInline:accept','length','_findSuggestions','consume','nodeBefore','PENDING_ACTION_SUGGESTION','formatInline:','_joinSuggestions','isObject','getUser','lowest','_createSuggestion','trackChanges.mergeNestedSuggestions','acceptAllSuggestions','selection','rename','editor','_registerInlineAttribute','nodeAfter','_isDataLoaded','attribute','discardSuggestion','formatBlock:chain','attribute:accept','createRange','attribute:discard','getSuggestion','addMarker:suggestion','find','removeMarker:suggestion:formatBlock','enableReadOnlyMode','low','isArray','item','includes','multipleBlocks','pluginName','attribute:join','addCommentThread','getNearestSelectionRange','element','pop','originalSuggestionId','suggestionLoaded','concat','_onDiscard','isLocal','editingDowncast','_element','formatInline','formatBlock','_getMarkerAnnouncementText','targetPosition','moveTargetPosition','commands','ready','startsWith','oldValue','isIntersecting','markerToHighlight','suggestion','ck-suggestion-marker-formatBlock','schema','forEach','type','comments','isOwn','differ','dataDowncast','track-changes-suggestion-data-mismatch','detach','createElement','hasCommentThread','authoredAt','high','requires','getFirstRange','_breakSuggestionMarker','hasComments','change:activeMarkers','start','fetchCommentThread','commandName','_isRegisteredAttribute','trackChanges.trackFormatChanges','getContainedElement','from','addSuggestionData','markDeletion','rootName','formatBlock:accept','insertion:join','remove','getRange','_afterChanges','marker-count','update:suggestion','addSuggestion','commentThread','createRangeOn','discardAllSuggestions','isNextTo','after','setSelection','attributeOldValue','newRange','trackChangesCommand','get','howMany','execute','warn','add','$text','_addThreadToSuggestion','toJSON','attributeKey','markMultiRangeInsertion','_isBlockAttribute','_descriptionFactory','splice','attribute:','then','_trackFormatChanges','addMarker','removeMarkers','isCollapsed','key','values','Users','_getAttributeKey','formatInline:chain','collaboration.channelId','accept','range','listenTo','markInsertion','substr','locale','_recordAttributeSuggestions','dataToMarker','$textProxy','getCommentThread','oldRange','_saved','init','discardSelectedSuggestions','acceptSelectedSuggestions','isEqual','name','showSuggestionHighlights','PendingActions','_setSuggestionData','document','skipNestingCheck','addHighlight','suggestion:','track-changes-adapter-already-set','unbind','insertion:','getSuggestions','writer','getMultiRangeId','_mergeNestedSuggestions','createSelection','enableCommand','_splitMarkerName','meta','chain','isLimit','authorName','updateMarker','stopListening','containsPosition','ck-suggestion-marker-','next','_suggestionState','addMarker:suggestion:formatBlock','createdAt','group','data-suggestion','discard','deletion:join','getDifference','getLastMatchingPosition','_checkSuggestionCorrectness','root','$elementName','rejected','unbindElementFromMarkerName','insert','batch','has','forward','setTo','_enabledCommands','map','suggestionChanged','position','fromCharCode','containsRangeInObject','getMarkers','isInContent','highest','formatBlock:join','getItems','deletion:discard','_adapter','TrackChangesEditing','CommentsRepository','split','$graveyard','track-changes-user-not-found','join','_getExternalAuthor','attributes','conversion','trackChanges','markerNameToElements','_getSuggestionData','containsRange','never','formatBlock:discard','_suggestions','set','isBlock','splitPosition','deletion','_blockAttributeKeys','LEAVE','isRemovable','refresh','addMarker:suggestion:attribute','_handleNewSuggestionMarker','upcast','attributeNewValue','unshift','isSelectable','_getAuthorFromId','deletion:chain','change:_saved','markAttributeChange','addRange','_commentsRepository','markerToData','config','consumable','multi','creator','formatInline:join','model','createRangeIn','options','createPositionAt','isAfter','insertContent','addComment','fire','markMultiRangeBlockFormat','data','_initAriaMarkerChangeAnnouncements','_processAttributeSuggestions','removed','getSuggestionCallback','suggestionUnloaded','_customCallbacks','removeMarker','isInsideObject','containsItem','catch','mapper','_cutOutSuggestionMarker','_isForcedDefaultExecutionBlock','subType','buildSuggestion','for','getIntersection','delete','insertion:accept','move','_suggestionFactory','markMultiRangeDeletion','_enableDefaultAttributesIntegration','isAtEnd','createPositionBefore','_joinWithAdjacentSuggestions','getRanges','getFirstMarker','some'];(function(_0x1a70fe,_0x31f05a){const _0xe890c8=function(_0x4a4c48){while(--_0x4a4c48){_0x1a70fe['push'](_0x1a70fe['shift']());}};_0xe890c8(++_0x31f05a);}(_0x31f0,0xd3));const _0xe890=function(_0x1a70fe,_0x31f05a){_0x1a70fe=_0x1a70fe-0x0;let _0xe890c8=_0x31f0[_0x1a70fe];return _0xe890c8;};import{Plugin as _0x3e2ad0,PendingActions as _0x12a87c}from'ckeditor5/src/core.js';import{LiveRange as _0x18b498}from'ckeditor5/src/engine.js';import{CKEditorError as _0xbc78f4,uid as _0x2b5717,priorities as _0x4f924a,logWarning as _0x574527}from'ckeditor5/src/utils.js';import{toWidget as _0xea1d20}from'ckeditor5/src/widget.js';import{Users as _0x5cf480,hashObject as _0x41b42f,surroundingMarkersDetector as _0x44a11e}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x7ef34d from'./commands/trackchangescommand.js';import _0x1d532c from'./commands/acceptsuggestioncommand.js';import _0x4e7149 from'./commands/discardsuggestioncommand.js';import _0x4db7ee from'./commands/executeonallsuggestionscommand.js';import _0x49525e from'./commands/executeonselectedsuggestionscommand.js';import _0x12f222 from'./suggestion.js';import _0x1548f1 from'./suggestiondescriptionfactory.js';import _0x5d560f from'./integrations/aiassistant.js';import _0x4d9a36 from'./integrations/alignment.js';import _0x3de25f from'./integrations/basicstyles.js';import _0x52a100 from'./integrations/blockquote.js';import _0x207d67 from'./integrations/casechange.js';import _0x5c79e6 from'./integrations/ckbox.js';import _0x333cfe from'./integrations/codeblock.js';import _0x448481 from'./integrations/comments.js';import _0x28cb64 from'./integrations/deletecommand.js';import _0x502175 from'./integrations/list.js';import _0x55fbb1 from'./integrations/listproperties.js';import _0x43b1e2 from'./integrations/entercommand.js';import _0x225daa from'./integrations/findandreplace.js';import _0x327f6b from'./integrations/font.js';import _0x3cd245 from'./integrations/formatpainter.js';import _0x40c147 from'./integrations/heading.js';import _0x4646d6 from'./integrations/highlight.js';import _0x184363 from'./integrations/horizontalline.js';import _0x12e705 from'./integrations/htmlembed.js';import _0x3a93c9 from'./integrations/image.js';import _0x167645 from'./integrations/imagereplace.js';import _0x2e5e26 from'./integrations/imagestyle.js';import _0x218d1b from'./integrations/importword.js';import _0x2e4c01 from'./integrations/indent.js';import _0x1a9660 from'./integrations/inputcommand.js';import _0xc3802d from'./integrations/link.js';import _0x23d10d from'./integrations/legacylist.js';import _0xefc9c0 from'./integrations/legacylistproperties.js';import _0x385819 from'./integrations/mediaembed.js';import _0x3064ab from'./integrations/mention.js';import _0x515d3f from'./integrations/pagebreak.js';import _0x571316 from'./integrations/paragraph.js';import _0x387596 from'./integrations/removeformat.js';import _0xcc47ad from'./integrations/restrictededitingmode.js';import _0x17a69b from'./integrations/shiftentercommand.js';import _0x3a49d5 from'./integrations/standardeditingmode.js';import _0x31a67a from'./integrations/style.js';import _0x5762d2 from'./integrations/table.js';import _0x54618a from'./integrations/tablemergesplit.js';import _0x1939f6 from'./integrations/tableheadings.js';import _0x3b9783 from'./integrations/tableclipboard.js';import _0xc4b6fe from'./integrations/tablecolumnresize.js';import _0x255328 from'./integrations/template.js';import _0x26e38e from'./integrations/tableofcontents.js';import _0x11a2d4 from'./integrations/title.js';import _0x3354cd from'./integrations/undo.js';import _0x32894c from'./integrations/tablecaption.js';import _0x410e5c from'./integrations/tableproperties.js';import{getTranslation as _0x4f156c}from'./utils/common-translations.js';import{isEqual as _0x2cbfc1,omit as _0x10c2db}from'lodash-es';export const renameAttributeKey=_0xe890('0x3f');export default class p extends _0x3e2ad0{static get[_0xe890('0x148')](){return['CommentsRepository',_0x5cf480,_0x12a87c,_0x5d560f,_0x4d9a36,_0x3de25f,_0x52a100,_0x5c79e6,_0x207d67,_0x333cfe,_0x448481,_0x28cb64,_0x43b1e2,_0x225daa,_0x327f6b,_0x3cd245,_0x40c147,_0x4646d6,_0x184363,_0x12e705,_0x3a93c9,_0x2e5e26,_0x167645,_0x218d1b,_0x2e4c01,_0x1a9660,_0x23d10d,_0xefc9c0,_0xc3802d,_0x502175,_0x55fbb1,_0x385819,_0x3064ab,_0x515d3f,_0x571316,_0x387596,_0xcc47ad,_0x17a69b,_0x3a49d5,_0x31a67a,_0x5762d2,_0x54618a,_0x1939f6,_0x32894c,_0x3b9783,_0xc4b6fe,_0x26e38e,_0x410e5c,_0x255328,_0x11a2d4,_0x3354cd];}static get[_0xe890('0x121')](){return _0xe890('0x54');}constructor(_0x354a67){function _0x4bbf9b(_0x4e8f21){return _0x4e8f21[_0xe890('0x48')](_0x5fdb56=>String[_0xe890('0x4b')](_0x5fdb56))[_0xe890('0x59')]('');}super(_0x354a67),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on'](_0xe890('0x14c'),(_0x465f1f,_0x1c25ec,_0x3f022b,_0x321138)=>{this[_0xe890('0xda')][_0xe890('0xc7')](()=>{for(const _0x342da1 of[..._0x321138,..._0x3f022b])this['_model'][_0xe890('0xcb')]['has'](_0x342da1)&&_0x354a67[_0xe890('0xad')]['reconvertMarker'](_0x342da1);});}),this[_0xe890('0x173')]=new _0x1548f1(this[_0xe890('0x10d')][_0xe890('0x7e')][_0xe890('0x13b')],this[_0xe890('0x10d')][_0xe890('0xe')]),this[_0xe890('0x53')]=null,this[_0xe890('0x9c')]=new Bt(this[_0xe890('0x10d')]),this[_0xe890('0x63')]=new Map(),this[_0xe890('0x77')]=_0x354a67[_0xe890('0xd8')][_0xe890('0x168')](_0xe890('0x55')),this[_0xe890('0x47')]=new Set(),this['_model']=this[_0xe890('0x10d')]['model'],this[_0xe890('0x34')]=new WeakMap(),this[_0xe890('0x94')]=!0x1,this[_0xe890('0x68')]=new Set([_0xe890('0x3f')]),this[_0xe890('0xf8')]=new Set(),_0x354a67[_0xe890('0x79')][_0xe890('0xc9')](_0xe890('0x151'),'default'),this[_0xe890('0x177')]=_0x354a67['config'][_0xe890('0x168')](_0xe890('0x151')),_0x354a67['config'][_0xe890('0xc9')](_0xe890('0x109'),!0x0),this[_0xe890('0x27')]=_0x354a67[_0xe890('0x79')][_0xe890('0x168')](_0xe890('0x109')),this[_0xe890('0x167')]=new _0x7ef34d(_0x354a67,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4bbf9b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4bbf9b([0x34,0x30,0x34,0x38,0x30,0x32,0x36,0x30]);}[_0xe890('0x15')](){const _0x3bffe9=this[_0xe890('0x10d')],_0x3152cb=(_0x2d17c7,_0x48e822)=>{if(_0xe890('0x111')!=_0x2d17c7)return _0xe890('0x32')+_0x2d17c7;const _0x447635=_0x48e822['split']('|')[0x0];return this[_0xe890('0x172')](_0x447635)?_0xe890('0x13a'):'ck-suggestion-marker-formatInline';};_0x3bffe9['conversion'][_0xe890('0x97')](_0xe890('0x12c'))[_0xe890('0x138')]({'model':_0xe890('0x139'),'view':_0x1a4b59=>{const {id:_0x428143,type:_0x37b0c2,subType:_0x54fe1b}=this[_0xe890('0x2a')](_0x1a4b59['markerName']),_0x183554=[_0xe890('0xb4'),_0x3152cb(_0x37b0c2,_0x54fe1b)];let _0x3cbeb4=0xbb8;return this[_0xe890('0xf2')][_0xe890('0x11f')](_0x1a4b59[_0xe890('0xb8')])&&(_0x183554[_0xe890('0xef')]('ck-suggestion-marker--active'),_0x3cbeb4=0xbc2),'deletion'==_0x37b0c2&&(_0x3cbeb4+=0x5),{'classes':_0x183554,'attributes':{'data-suggestion':_0x428143},'priority':_0x3cbeb4};}}),_0x3bffe9[_0xe890('0x5c')][_0xe890('0x97')](_0xe890('0x141'))[_0xe890('0x16c')](_0x3c3e4e=>{_0x3c3e4e['on'](_0xe890('0x118'),(_0x5ae2d7,_0x4c55cf,_0x336ee0)=>{if(!_0x336ee0['options']['showSuggestionHighlights'])return;const _0x1f2243=_0x4c55cf[_0xe890('0x11e')];if(!_0x1f2243)return;const _0x339dfa=_0x336ee0[_0xe890('0x92')][_0xe890('0xe6')](_0x1f2243);_0x3bffe9[_0xe890('0x7e')][_0xe890('0x13b')][_0xe890('0x105')](_0x1f2243)&&_0x339dfa&&!_0x339dfa[_0xe890('0xe8')](_0xe890('0xf6'))&&_0x339dfa['is']('containerElement')&&_0xea1d20(_0x339dfa,_0x336ee0[_0xe890('0x25')]);},{'priority':'high'});}),_0x3bffe9[_0xe890('0x5c')]['for'](_0xe890('0x141'))['markerToHighlight']({'model':_0xe890('0x139'),'view':(_0x34265b,_0x7b9d9f)=>{if(!_0x7b9d9f[_0xe890('0x80')]['showSuggestionHighlights'])return null;const {type:_0x57b34f,subType:_0xd68248}=this['_splitMarkerName'](_0x34265b[_0xe890('0xb8')]);return{'classes':[_0xe890('0xb4'),_0x3152cb(_0x57b34f,_0xd68248)],'priority':0xbb8};}});const _0x36e17b=({showActiveMarkers:_0x55f6e5=!0x0,isAttributeSuggestion:_0x2f359d=!0x1}={})=>(_0x3ab227,_0x47944e,_0x541e76)=>{if(!_0x47944e['item'])return;const {id:_0x73b83d}=this[_0xe890('0x2a')](_0x47944e[_0xe890('0xb8')]);if(_0x2f359d){const _0x25cb32=this[_0xe890('0x63')]['get'](_0x73b83d),_0x533910=this[_0xe890('0x6')](_0x25cb32);if(!this[_0xe890('0x172')](_0x533910))return;}if(_0x47944e['item']['is']('selection'))return void _0x541e76[_0xe890('0x7a')][_0xe890('0x100')](_0x47944e[_0xe890('0x11e')],_0x3ab227[_0xe890('0x19')]);const _0x238fb9=_0x541e76[_0xe890('0x92')]['toViewElement'](_0x47944e['item']);if(_0x47944e['item']['is']('element')&&_0x3bffe9[_0xe890('0x7e')][_0xe890('0x13b')][_0xe890('0x65')](_0x47944e[_0xe890('0x11e')])&&!_0x238fb9['getCustomProperty']('addHighlight')){_0x541e76[_0xe890('0x25')][_0xe890('0xf3')](['ck-suggestion-marker',_0xe890('0x13a')],_0x238fb9),_0x541e76['writer'][_0xe890('0xc8')](_0xe890('0x38'),_0x73b83d,_0x238fb9),_0x541e76[_0xe890('0x92')]['bindElementToMarker'](_0x238fb9,_0x47944e[_0xe890('0xb8')]),_0x55f6e5&&(this[_0xe890('0xf2')][_0xe890('0x11f')](_0x47944e['markerName'])?_0x541e76[_0xe890('0x25')]['addClass']('ck-suggestion-marker--active',_0x238fb9):_0x541e76[_0xe890('0x25')]['removeClass']('ck-suggestion-marker--active',_0x238fb9));for(const _0x11be17 of _0x3bffe9['model'][_0xe890('0x7f')](_0x47944e[_0xe890('0x11e')])[_0xe890('0x51')]())_0x541e76[_0xe890('0x7a')][_0xe890('0x100')](_0x11be17,_0x3ab227[_0xe890('0x19')]);_0x541e76[_0xe890('0x7a')][_0xe890('0x100')](_0x47944e['item'],_0x3ab227[_0xe890('0x19')]);}};_0x3bffe9[_0xe890('0x5c')][_0xe890('0x97')]('dataDowncast')[_0xe890('0x16c')](_0x156547=>{_0x156547['on']('addMarker:suggestion:formatBlock',(_0x373908,_0x23fc48,_0x39016e)=>{_0x39016e[_0xe890('0x80')]['showSuggestionHighlights']&&_0x36e17b({'showActiveMarkers':!0x1})(_0x373908,_0x23fc48,_0x39016e);},{'priority':_0xe890('0x4f')});}),_0x3bffe9[_0xe890('0x5c')][_0xe890('0x97')](_0xe890('0x141'))[_0xe890('0x16c')](_0x5b0dc0=>{_0x5b0dc0['on'](_0xe890('0x6c'),(_0x2d55c6,_0x564aa5,_0x817a79)=>{_0x817a79[_0xe890('0x80')][_0xe890('0x1a')]&&_0x36e17b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2d55c6,_0x564aa5,_0x817a79);},{'priority':_0xe890('0x4f')});}),_0x3bffe9[_0xe890('0x5c')]['for'](_0xe890('0x141'))[_0xe890('0x78')]({'model':_0xe890('0x139'),'view':(_0x3342c2,_0x4d9aa5)=>_0x4d9aa5[_0xe890('0x80')][_0xe890('0x1a')]?null:{'group':'suggestion','name':_0x3342c2[_0xe890('0xd')](0xb)}}),_0x3bffe9['conversion']['for'](_0xe890('0x6e'))[_0xe890('0xa6')]({'view':{'name':_0xe890('0x139'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x45beff,{writer:_0x594e9c})=>{let _0x1e208b=_0xe890('0x20')+_0x45beff[_0xe890('0xa8')](_0xe890('0xd4'))+':'+_0x45beff[_0xe890('0xa8')]('id');return _0x45beff['getAttribute'](_0xe890('0x15c'))&&(_0x1e208b+=':'+_0x45beff['getAttribute'](_0xe890('0x15c'))),_0x594e9c[_0xe890('0x144')]('$marker',{'data-name':_0x1e208b});}}),_0x3bffe9[_0xe890('0x5c')][_0xe890('0x97')](_0xe890('0x6e'))[_0xe890('0x10')]({'view':_0xe890('0x139')}),_0x3bffe9['conversion'][_0xe890('0x97')](_0xe890('0x12c'))['add'](_0x33dde4=>{_0x33dde4['on'](_0xe890('0x35'),_0x36e17b(),{'priority':_0xe890('0x147')});}),_0x3bffe9[_0xe890('0x5c')]['for']('editingDowncast')[_0xe890('0x16c')](_0x17aa8b=>{_0x17aa8b['on'](_0xe890('0x6c'),_0x36e17b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3bffe9[_0xe890('0x5c')][_0xe890('0x97')](_0xe890('0x12c'))[_0xe890('0x16c')](_0x264dba=>{_0x264dba['on'](_0xe890('0x11a'),(_0x4802c3,_0x4b9b9d,_0x3d9845)=>{const _0x5bb20c=_0x3d9845[_0xe890('0x92')][_0xe890('0x5e')](_0x4b9b9d['markerName']);if(_0x5bb20c)for(const _0x3ad20e of _0x5bb20c)_0x3ad20e[_0xe890('0xe8')](_0xe890('0x1f'))||(_0x3d9845[_0xe890('0x25')]['removeClass']([_0xe890('0xb4'),_0xe890('0x13a'),_0xe890('0xed')],_0x3ad20e),_0x3d9845['writer']['removeAttribute'](_0xe890('0x38'),_0x3ad20e),_0x3d9845[_0xe890('0x92')][_0xe890('0x41')](_0x3ad20e,_0x4b9b9d[_0xe890('0xb8')]));},{'priority':_0xe890('0x147')});}),_0x3bffe9[_0xe890('0x5c')][_0xe890('0x97')](_0xe890('0x12c'))[_0xe890('0x16c')](_0x5c4953=>{_0x5c4953['on']('removeMarker:suggestion:attribute',(_0x46ee9b,_0x458ea0,_0x2ce3b3)=>{const _0x517831=_0x2ce3b3[_0xe890('0x92')][_0xe890('0x5e')](_0x458ea0[_0xe890('0xb8')]);if(!_0x517831)return;const {id:_0x12c656}=this[_0xe890('0x2a')](_0x458ea0[_0xe890('0xb8')]),_0x4737c0=this['_suggestions'][_0xe890('0x168')](_0x12c656),_0x4a8dd0=this[_0xe890('0x6')](_0x4737c0);if(this[_0xe890('0x172')](_0x4a8dd0))for(const _0xb7e638 of _0x517831)_0xb7e638[_0xe890('0xe8')]('addHighlight')||(_0x2ce3b3['writer']['removeClass']([_0xe890('0xb4'),_0xe890('0x13a'),_0xe890('0xed')],_0xb7e638),_0x2ce3b3[_0xe890('0x25')]['removeAttribute'](_0xe890('0x38'),_0xb7e638),_0x2ce3b3[_0xe890('0x92')][_0xe890('0x41')](_0xb7e638,_0x458ea0[_0xe890('0xb8')]));},{'priority':_0xe890('0x147')});}),_0x3bffe9[_0xe890('0x7e')][_0xe890('0x1d')][_0xe890('0xa7')](_0x47d772=>{let _0x42140f=!0x1;const _0x23de4e=Array[_0xe890('0x153')](_0x3bffe9[_0xe890('0x7e')][_0xe890('0x1d')][_0xe890('0x140')][_0xe890('0xcd')]()),_0x552856=new Set();for(const {name:_0x3ea544,data:_0x1e4d2d}of _0x23de4e){const {group:_0x17f150,type:_0x2180da,subType:_0x417e5a,id:_0x7b996}=this[_0xe890('0x2a')](_0x3ea544);if(_0xe890('0x139')!==_0x17f150)continue;const _0x154713=this[_0xe890('0x63')][_0xe890('0x168')](_0x7b996);if(null!=_0x1e4d2d['newRange']){_0xe890('0x12e')==_0x2180da&&(_0x42140f=_0x42140f||Tt(_0x1e4d2d[_0xe890('0x166')],_0x3ea544,_0x47d772,_0x3bffe9[_0xe890('0x7e')][_0xe890('0x13b')]));const _0x151426=_0xe890('0x111')==_0x2180da&&this['_isBlockAttribute'](_0x417e5a[_0xe890('0x56')]('|')[0x0]);if(_0x1e4d2d[_0xe890('0x166')][_0xe890('0x2')]||_0xe890('0x57')==_0x1e4d2d['newRange'][_0xe890('0x3e')]['rootName']||_0xe890('0x12f')==_0x2180da&&!Vt(_0x1e4d2d[_0xe890('0x166')])||_0x151426&&!Vt(_0x1e4d2d[_0xe890('0x166')])||'deletion'==_0x2180da&&!(!Rt(_0x346688=_0x1e4d2d[_0xe890('0x166')])&&!function(_0x2aa595){return _0x2aa595['start'][_0xe890('0xee')]==_0x2aa595[_0xe890('0xd0')][_0xe890('0x101')]&&_0x2aa595[_0xe890('0x14d')][_0xe890('0x9f')];}(_0x346688)))_0x47d772[_0xe890('0x8e')](_0x3ea544),_0x42140f=!0x0;else{if(!_0x154713||!_0x154713[_0xe890('0x4e')])continue;_0x552856[_0xe890('0x16c')](_0x154713);}}}var _0x346688;return _0x552856['size']>0x0&&(_0x42140f=!!this[_0xe890('0xa1')](_0x552856)||_0x42140f),_0x42140f;}),_0x3bffe9[_0xe890('0x7e')][_0xe890('0x1d')][_0xe890('0xa7')](_0x545817=>{let _0x3dd201=!0x1;for(const _0x5f2fe1 of _0x3bffe9['model']['document'][_0xe890('0x140')]['getChanges']())if('insert'==_0x5f2fe1[_0xe890('0x13d')])for(const _0x58e3b1 of this['_suggestions'][_0xe890('0x4')]()){if(_0x58e3b1[_0xe890('0xc3')]||!_0x58e3b1[_0xe890('0x4e')])continue;const _0x8f8f23=_0xe890('0x12f')==_0x58e3b1[_0xe890('0x13d')],_0x32fc97=this[_0xe890('0x6')](_0x58e3b1),_0xf89a6d=_0x32fc97&&this[_0xe890('0x172')](_0x32fc97);if(!_0x8f8f23&&!_0xf89a6d)continue;const _0x40c579=_0x58e3b1[_0xe890('0x149')]();if(_0x40c579[_0xe890('0x14d')][_0xe890('0xee')]!=_0x40c579[_0xe890('0xd0')][_0xe890('0xee')]&&!_0x40c579[_0xe890('0xd0')]['isAtEnd']){const _0x1ba8ee=_0x3bffe9[_0xe890('0x7e')][_0xe890('0x81')](_0x40c579['start']['nodeAfter'],_0xe890('0xd0')),_0xe4292f=_0x3bffe9['model']['createRange'](_0x40c579['start'],_0x1ba8ee);_0x545817[_0xe890('0x2f')](_0x58e3b1[_0xe890('0xa3')](),{'range':_0xe4292f}),_0x3dd201=!0x0;}}return _0x3dd201;}),_0x3bffe9['model'][_0xe890('0x1d')]['registerPostFixer'](_0x527a9b=>this[_0xe890('0xc5')](_0x527a9b)),_0x3bffe9[_0xe890('0x7e')][_0xe890('0x1d')][_0xe890('0xa7')](_0x220c05=>!_0x220c05[_0xe890('0x43')][_0xe890('0x12b')]&&this['_processAttributeSuggestions'](_0x220c05)),_0x3bffe9[_0xe890('0x7e')]['on'](_0xe890('0x15b'),()=>{this[_0xe890('0xf')]=!0x1;}),_0x3bffe9[_0xe890('0x7e')]['document']['on'](_0xe890('0xaa'),(_0x25db0c,_0x321cf5)=>{if(!_0x321cf5[_0xe890('0x12b')]||_0x321cf5['isUndo'])return;if(!this[_0xe890('0xf')])return;const _0x2e6e71=_0x3bffe9['model']['document'][_0xe890('0x140')]['getChanges']();if(0x0==_0x2e6e71[_0xe890('0xfe')])return;const _0x53cd56=[],_0x1134fb=_0x2e6e71['filter'](_0x5b5a71=>'attribute'==_0x5b5a71[_0xe890('0x13d')]),_0x1feb89=_0x2e6e71[_0xe890('0xbb')](_0x28badc=>_0xe890('0x42')==_0x28badc[_0xe890('0x13d')]&&_0xe890('0x16d')!=_0x28badc[_0xe890('0x19')]),_0x26424b=_0x2e6e71[_0xe890('0xbb')](_0x1e8c32=>'remove'==_0x1e8c32[_0xe890('0x13d')]&&_0xe890('0x16d')!=_0x1e8c32['name']);for(const _0x3cc2f4 of _0x1134fb)this[_0xe890('0x150')](_0x3cc2f4[_0xe890('0x170')])&&_0x53cd56[_0xe890('0xef')]({'key':_0x3cc2f4['attributeKey'],'newValue':_0x3cc2f4[_0xe890('0x6f')],'oldValue':_0x3cc2f4[_0xe890('0x165')],'range':Ut(_0x3cc2f4[_0xe890('0xa')],_0x3bffe9[_0xe890('0x7e')])});for(const _0x3ef418 of _0x1feb89){const _0x272fd4=_0x26424b[_0xe890('0x119')](_0x248b5d=>_0x248b5d[_0xe890('0x12d')]===_0x3ef418[_0xe890('0x12d')]);if(_0x272fd4){const _0x212338=Ot(_0x3ef418[_0xe890('0x4a')][_0xe890('0x10f')],_0x3bffe9['model']);_0x272fd4[_0xe890('0x19')]!==_0x3ef418[_0xe890('0x19')]&&_0x53cd56[_0xe890('0xef')]({'key':'$elementName','newValue':_0x3ef418['name'],'oldValue':_0x272fd4['name'],'range':_0x212338});for(const [_0x32193b,_0x2d4436]of _0x272fd4[_0xe890('0x5b')]){if(!this[_0xe890('0x150')](_0x32193b))continue;const _0x91d296=_0x3ef418[_0xe890('0x5b')][_0xe890('0x168')](_0x32193b);_0x2d4436!==_0x91d296&&_0x53cd56['push']({'key':_0x32193b,'newValue':_0x91d296,'oldValue':_0x2d4436,'range':_0x212338});}for(const [_0x1db1b9,_0x54275f]of _0x3ef418['attributes'])this['_isRegisteredAttribute'](_0x1db1b9)&&(_0x272fd4[_0xe890('0x5b')]['has'](_0x1db1b9)||_0x53cd56[_0xe890('0xef')]({'key':_0x1db1b9,'newValue':_0x54275f,'oldValue':null,'range':_0x212338}));}}0x0!=_0x53cd56[_0xe890('0xfe')]&&_0x3bffe9[_0xe890('0x7e')][_0xe890('0xa9')](_0x321cf5,_0x1cb3bd=>{const _0x41681d=_0x2b5717();for(const {range:_0x52a676,key:_0x750990,oldValue:_0x1aca74,newValue:_0x96ac25}of _0x53cd56)this['markAttributeChange'](_0x52a676,_0x750990,_0x1aca74,_0x96ac25,{'groupId':_0x41681d});this[_0xe890('0xe0')](_0x1cb3bd,_0x53cd56);});},{'priority':'lowest'}),_0x3bffe9[_0xe890('0x7e')][_0xe890('0xcb')]['on'](_0xe890('0x15d'),(_0x2d749d,_0x5ad7fa,_0x9a9ae2)=>{if(null==_0x9a9ae2){const {id:_0x1a1890}=this[_0xe890('0x2a')](_0x5ad7fa[_0xe890('0x19')]),_0x30cd18=this[_0xe890('0x63')][_0xe890('0x168')](_0x1a1890);_0x30cd18&&_0x30cd18[_0xe890('0xd5')](_0x5ad7fa[_0xe890('0x19')]);}}),_0x3bffe9['model']['document']['on']('change:data',()=>{const _0x55cd82=Array[_0xe890('0x153')](_0x3bffe9[_0xe890('0x7e')][_0xe890('0x1d')][_0xe890('0x140')][_0xe890('0xcd')]())[_0xe890('0xbb')](_0x352a39=>'suggestion'===this['_splitMarkerName'](_0x352a39['name'])[_0xe890('0x37')]);if(0x0===_0x55cd82[_0xe890('0xfe')])return;_0x55cd82[_0xe890('0xf9')]((_0xcce850,_0x2a25d3)=>{const _0x438e4a=_0xcce850[_0xe890('0x87')][_0xe890('0x13')],_0x30139d=_0x2a25d3[_0xe890('0x87')]['oldRange'];return null===_0x438e4a&&null===_0x30139d?0x0:null===_0x438e4a&&null!==_0x30139d?-0x1:null!==_0x438e4a&&null===_0x30139d?0x1:_0x438e4a[_0xe890('0x14d')][_0xe890('0xec')](_0x30139d[_0xe890('0x14d')])?-0x1:0x1;});const _0x4ac0d1=new Set(),_0x2d2b5c=new Set();for(const {name:_0x24485e,data:_0x2483a0}of _0x55cd82){const {id:_0x2307f9}=this[_0xe890('0x2a')](_0x24485e);if(null===_0x2483a0[_0xe890('0x13')]){const _0x229272=this['_handleNewSuggestionMarker'](_0x24485e);_0x2d2b5c[_0xe890('0x16c')](_0x229272);}else{const _0x207ff8=this['_suggestions'][_0xe890('0x168')](_0x2307f9);null!==_0x2483a0[_0xe890('0x166')]||_0x207ff8[_0xe890('0x4e')]?(_0x4ac0d1[_0xe890('0x16c')](_0x207ff8['head']),_0x2d2b5c[_0xe890('0x16c')](_0x207ff8)):this['_removeSuggestion'](_0x207ff8);}}_0x2d2b5c[_0xe890('0xce')]>0x0&&this[_0xe890('0xd2')](_0x2d2b5c);for(const _0x6ed7e8 of _0x4ac0d1)this[_0xe890('0x85')](_0xe890('0x49'),_0x6ed7e8);}),_0x3bffe9[_0xe890('0x7e')]['on']('applyOperation',(_0x59efbe,_0x3bf47c)=>{const _0x38726e=_0x3bf47c[0x0];if(!this[_0xe890('0x63')][_0xe890('0xce')])return;if(!_0x38726e['isDocumentOperation'])return;if(_0x38726e['batch'][_0xe890('0xd9')]||!_0x38726e[_0xe890('0x43')][_0xe890('0x12b')])return;let _0x530e96,_0xc85a9a;switch(_0x38726e[_0xe890('0x13d')]){case _0xe890('0x42'):_0x530e96=_0x3bffe9[_0xe890('0x7e')]['createPositionAt'](_0x38726e['position']),_0xc85a9a=_0x530e96['getShiftedBy'](_0x38726e[_0xe890('0x169')]);break;case _0xe890('0x56'):_0x530e96=_0x3bffe9[_0xe890('0x7e')][_0xe890('0x81')](_0x38726e[_0xe890('0x66')]),_0xc85a9a=_0x3bffe9['model'][_0xe890('0x81')](_0x38726e[_0xe890('0x132')]);break;case _0xe890('0x9b'):_0x530e96=_0x3bffe9[_0xe890('0x7e')]['createPositionAt'](_0x38726e[_0xe890('0x131')]),_0xc85a9a=_0x530e96['getShiftedBy'](_0x38726e['howMany']);break;default:return;}const _0x3e6cba=_0x3bffe9[_0xe890('0x7e')][_0xe890('0x115')](_0x530e96,_0xc85a9a);_0x3bffe9[_0xe890('0x7e')][_0xe890('0xc7')](()=>{for(const {suggestion:_0x17bee4,meta:_0x538df3}of this['_findSuggestions'](_0x3e6cba)){if(_0x17bee4['isMultiRange'])continue;if(_0xe890('0x12e')==_0x17bee4['type'])continue;const _0x42e76f=this[_0xe890('0x6')](_0x17bee4);if(_0x42e76f&&this[_0xe890('0x172')](_0x42e76f)&&_0xe890('0x56')!=_0x38726e[_0xe890('0x13d')])continue;const _0x264973=_0x17bee4[_0xe890('0x87')]&&_0x17bee4[_0xe890('0x87')][_0xe890('0x120')];(_0xe890('0x12f')!=_0x17bee4[_0xe890('0x13d')]||_0xe890('0x56')==_0x38726e[_0xe890('0x13d')]&&!_0x264973)&&(_0x538df3['containsRangeInObject']||_0xe890('0xe2')==_0x17bee4['type']&&_0x538df3[_0xe890('0x13f')]||_0x17bee4['getFirstRange']()['containsRange'](_0x3e6cba)&&this['_breakSuggestionMarker'](_0x17bee4,_0x530e96,_0xc85a9a));}});},{'priority':_0xe890('0x107')}),_0x3bffe9[_0xe890('0x7e')]['on']('deleteContent',(_0x130918,_0x2004fc)=>{const _0x5dcaff=_0x2004fc[0x0],_0x1bd058=_0x2004fc[0x1];if(_0x1bd058&&_0x1bd058[_0xe890('0xcf')])return;if(this[_0xe890('0x94')])return;if(!this[_0xe890('0x167')][_0xe890('0xbc')])return;if(_0x5dcaff[_0xe890('0x2')])return;const _0x505e49=_0x3bffe9[_0xe890('0x7e')][_0xe890('0x13b')],{start:_0x14c259,end:_0x4ff98d}=_0x5dcaff[_0xe890('0x149')](),_0x14236f=_0x14c259[_0xe890('0x10f')]&&_0x505e49[_0xe890('0x2d')](_0x14c259['nodeAfter'])?null:_0x505e49[_0xe890('0x124')](_0x14c259,_0xe890('0x45')),_0x29b266=_0x4ff98d[_0xe890('0x101')]&&_0x505e49[_0xe890('0x2d')](_0x4ff98d[_0xe890('0x101')])?null:_0x505e49[_0xe890('0x124')](_0x4ff98d,_0xe890('0xc6')),_0x5c80a1=_0x3bffe9[_0xe890('0x7e')][_0xe890('0x115')](_0x14236f?_0x14236f[_0xe890('0x14d')]:_0x14c259,_0x29b266?_0x29b266[_0xe890('0xd0')]:_0x4ff98d);_0x3bffe9[_0xe890('0x7e')][_0xe890('0xc7')](_0x459cb1=>{this[_0xe890('0x155')](_0x5c80a1);const _0x214c7a=_0x3bffe9[_0xe890('0x7e')][_0xe890('0x13b')][_0xe890('0x124')](_0x5c80a1[_0xe890('0x14d')]);_0x5dcaff['is'](_0xe890('0xbf'))?_0x459cb1[_0xe890('0x164')](_0x214c7a):_0x5dcaff[_0xe890('0x46')](_0x214c7a);}),_0x130918[_0xe890('0xd7')]();},{'priority':_0x4f924a[_0xe890('0xea')]+0xa}),_0x3bffe9[_0xe890('0x7e')]['on'](_0xe890('0x83'),(_0x1044cf,_0x489332)=>{const _0x3f39f9=_0x489332[_0x489332[_0xe890('0xfe')]-0x1];_0x3f39f9&&_0x3f39f9[_0xe890('0xcf')]||this[_0xe890('0x94')]||this['trackChangesCommand'][_0xe890('0xbc')]&&(_0x3bffe9[_0xe890('0x7e')][_0xe890('0xc7')](()=>{let _0x1d0138=_0x3bffe9[_0xe890('0x7e')][_0xe890('0x83')](_0x489332[0x0],_0x489332[0x1],_0x489332[0x2],{'forceDefaultExecution':!0x0});if(!_0x1d0138)return;_0x1044cf['return']=_0x1d0138[_0xe890('0xb2')]();const _0x7010c6=_0x1d0138['end']['nodeBefore'],_0x31ee26=_0x3bffe9[_0xe890('0x7e')]['schema'];_0x7010c6&&_0x31ee26[_0xe890('0x65')](_0x7010c6)&&!_0x31ee26['isObject'](_0x7010c6)&&(_0x1d0138=_0x3bffe9[_0xe890('0x7e')][_0xe890('0x115')](_0x1d0138['start'],_0x3bffe9[_0xe890('0x7e')]['createPositionAt'](_0x7010c6,_0xe890('0xd0')))),this[_0xe890('0xc')](_0x1d0138);}),_0x1044cf[_0xe890('0xd7')]());},{'priority':_0xe890('0x147')}),this[_0xe890('0x10d')][_0xe890('0x133')]['add']('trackChanges',this['trackChangesCommand']),this[_0xe890('0x29')](_0xe890('0x5d'));const _0xba6d98=new _0x1d532c(_0x3bffe9,this['_suggestions']);_0x3bffe9[_0xe890('0x133')]['add'](_0xe890('0xfb'),_0xba6d98),this[_0xe890('0x29')](_0xe890('0xfb'));const _0x2553c0=new _0x4e7149(_0x3bffe9,this[_0xe890('0x63')]);_0x3bffe9['commands']['add'](_0xe890('0x112'),_0x2553c0),this['enableCommand'](_0xe890('0x112')),_0x3bffe9['commands']['add'](_0xe890('0x10a'),new _0x4db7ee(_0x3bffe9,_0xba6d98,this[_0xe890('0x63')])),this[_0xe890('0x29')](_0xe890('0x10a')),_0x3bffe9['commands'][_0xe890('0x16c')](_0xe890('0x161'),new _0x4db7ee(_0x3bffe9,_0x2553c0,this[_0xe890('0x63')])),this[_0xe890('0x29')](_0xe890('0x161')),_0x3bffe9[_0xe890('0x133')]['add'](_0xe890('0x17'),new _0x49525e(_0x3bffe9,_0xba6d98,this[_0xe890('0x63')])),this[_0xe890('0x29')]('acceptSelectedSuggestions'),_0x3bffe9[_0xe890('0x133')]['add'](_0xe890('0x16'),new _0x49525e(_0x3bffe9,_0x2553c0,this[_0xe890('0x63')])),this[_0xe890('0x29')]('discardSelectedSuggestions');const _0x5bdbf4=_0x3bffe9[_0xe890('0xd8')]['get']('CommentsRepository');this['listenTo'](_0x5bdbf4,_0xe890('0x84'),(_0x4af4b5,{threadId:_0x26adc3})=>{const _0x28bfd2=this[_0xe890('0x63')][_0xe890('0x168')](_0x26adc3);_0x28bfd2&&_0x28bfd2[_0xe890('0x15f')]&&0x1===_0x28bfd2[_0xe890('0x15f')][_0xe890('0xfe')]&&this[_0xe890('0xe4')](_0x26adc3,{'hasComments':!0x0});},{'priority':_0xe890('0x11c')}),this[_0xe890('0xb')](_0x5bdbf4,'removeComment',(_0x3d1b54,{threadId:_0x273b3})=>{const _0x498aaa=this[_0xe890('0x63')][_0xe890('0x168')](_0x273b3);_0x498aaa&&_0x498aaa['commentThread']&&!_0x498aaa[_0xe890('0x15f')][_0xe890('0xfe')]&&this[_0xe890('0xe4')](_0x273b3,{'hasComments':!0x1});},{'priority':_0xe890('0x11c')});}set[_0xe890('0xeb')](_0x2b23c1){if(this[_0xe890('0x53')])throw new _0xbc78f4(_0xe890('0x21'),this);this[_0xe890('0x53')]=_0x2b23c1;}get['adapter'](){return this[_0xe890('0x53')];}[_0xe890('0x24')]({skipNotAttached:_0x3b5ad7=!0x1,toJSON:_0x292256=!0x1}={}){const _0x17de56=[];for(const _0x359390 of this[_0xe890('0x63')]['values']())_0x3b5ad7&&!_0x359390[_0xe890('0x4e')]||_0x17de56[_0xe890('0xef')](_0x359390);return _0x292256?_0x17de56[_0xe890('0x48')](_0x55d04f=>_0x55d04f[_0xe890('0x16f')]()):_0x17de56;}[_0xe890('0x117')](_0x17de4c){const _0x1296fc=this[_0xe890('0x63')][_0xe890('0x168')](_0x17de4c);if(!_0x1296fc)throw new _0xbc78f4(_0xe890('0xb5'),this);return _0x1296fc;}[_0xe890('0xf4')](_0x3f8bc0){return this[_0xe890('0x63')][_0xe890('0x44')](_0x3f8bc0);}[_0xe890('0x154')](_0x5c9015){const {authorId:_0x437cfa,id:_0x63efc4,attributes:_0x22da02}=_0x5c9015,[_0x59a6b6,_0x39d8d1]=_0x5c9015[_0xe890('0x13d')]['split'](':'),_0x202f3c=this[_0xe890('0x63')]['get'](_0x63efc4)||this['_createSuggestion'](_0x59a6b6,_0x39d8d1,_0x63efc4,_0x437cfa,_0x22da02);if(this['_addThreadToSuggestion'](_0x202f3c),this['_checkSuggestionCorrectness'](_0x202f3c,_0x59a6b6,_0x39d8d1||null,_0x437cfa),_0x202f3c[_0xe890('0x36')]=_0x5c9015[_0xe890('0x36')],_0x202f3c['_isDataLoaded']=!0x0,_0x22da02&&_0x22da02[_0xe890('0xe3')]){const _0x4d952d=_0x22da02[_0xe890('0xe3')],_0xae2bac=this[_0xe890('0x5a')](_0x4d952d[_0xe890('0x2e')]);_0x202f3c[_0xe890('0x146')]=_0x4d952d[_0xe890('0x36')],_0x202f3c[_0xe890('0xe9')]=_0xae2bac,_0x202f3c['isExternal']=!0x0;}else _0x202f3c[_0xe890('0x146')]=_0x5c9015[_0xe890('0x36')];switch(_0x5c9015[_0xe890('0x87')]&&(_0x202f3c[_0xe890('0x87')]=_0x5c9015[_0xe890('0x87')]),_0x5c9015[_0xe890('0x5b')]&&(_0x202f3c[_0xe890('0x5b')]=_0x5c9015['attributes']),this[_0xe890('0x53')]&&this[_0xe890('0x53')][_0xe890('0x15e')]||(_0x202f3c[_0xe890('0x14')]=!0x0),this[_0xe890('0x34')][_0xe890('0x168')](_0x202f3c)){case _0xe890('0xdf'):this[_0xe890('0x34')][_0xe890('0x64')](_0x202f3c,_0xe890('0xc4'));break;case _0xe890('0xd1'):_0x202f3c[_0xe890('0x4e')]?(this[_0xe890('0xa1')](new Set([_0x202f3c])),this[_0xe890('0xd2')](new Set([_0x202f3c])),this[_0xe890('0x34')][_0xe890('0x64')](_0x202f3c,_0xe890('0x134')),this['fire'](_0xe890('0x128'),_0x202f3c)):this[_0xe890('0x34')][_0xe890('0x64')](_0x202f3c,'removed');}return _0x202f3c;}['acceptSuggestion'](_0x35b5b5){this[_0xe890('0xcf')](()=>{this[_0xe890('0x10d')][_0xe890('0x7e')][_0xe890('0xc7')](()=>{for(const _0x2fa41d of _0x35b5b5['getAllAdjacentSuggestions']())_0x2fa41d[_0xe890('0x9')]();});});}[_0xe890('0x112')](_0x5de56b){this[_0xe890('0xcf')](()=>{this['editor'][_0xe890('0x7e')]['change'](()=>{for(const _0x2a01c0 of _0x5de56b['getAllAdjacentSuggestions']())_0x2a01c0[_0xe890('0x39')]();});});}[_0xe890('0x29')](_0x1eb30b,_0x20a877){const _0x2a9e3f=this['editor'][_0xe890('0x133')][_0xe890('0x168')](_0x1eb30b);if(!_0x2a9e3f)throw new _0xbc78f4('track-changes-command-not-found',this,{'commandName':_0x1eb30b});if(this['_enabledCommands']['has'](_0x2a9e3f))throw new _0xbc78f4(_0xe890('0xe7'),this,{'commandName':_0x1eb30b});this[_0xe890('0x47')][_0xe890('0x16c')](_0x2a9e3f),_0x20a877&&_0x2a9e3f['on'](_0xe890('0x16a'),(_0x1f6edf,_0x6bd1b5)=>{this['trackChangesCommand'][_0xe890('0xbc')]&&(this[_0xe890('0x94')]||(_0x6bd1b5['length']>0x0&&_0x6bd1b5[_0x6bd1b5[_0xe890('0xfe')]-0x1]&&_0x6bd1b5[_0x6bd1b5[_0xe890('0xfe')]-0x1][_0xe890('0xcf')]?_0x6bd1b5[_0xe890('0x126')]():(_0x1f6edf['return']=_0x20a877((..._0x35802f)=>_0x2a9e3f[_0xe890('0x16a')](..._0x35802f,{'forceDefaultExecution':!0x0}),..._0x6bd1b5),_0x1f6edf[_0xe890('0xd7')]())));},{'priority':_0xe890('0x147')});}[_0xe890('0xcf')](_0x256da6){let _0x81aec6,_0x44db84;const _0x1dea78=this[_0xe890('0x94')];this[_0xe890('0x94')]=!0x0;try{_0x81aec6=_0x256da6();}catch(_0x3e4776){_0x44db84=_0x3e4776;}return _0x1dea78||(this[_0xe890('0x94')]=!0x1),_0x44db84&&_0xbc78f4['rethrowUnexpectedError'](_0x44db84,this),_0x81aec6;}[_0xe890('0xc')](_0x531d53,_0x28cd77=null,_0x36120d={}){if(_0x531d53[_0xe890('0x2')])return null;const _0x3da305=this[_0xe890('0x10d')]['plugins'][_0xe890('0x168')](_0xe890('0x5'))['me'];for(const {suggestion:_0x31aab4,meta:_0x10163d}of this['_findSuggestions'](_0x531d53,_0xe890('0xe2')))if(_0x10163d[_0xe890('0x13f')]){if(!_0x10163d['isNextTo']){if(_0x10163d[_0xe890('0x4c')]){if(!this['_mergeNestedSuggestions']||!Pt(_0x31aab4,_0x36120d))continue;return _0x31aab4;}if(Pt(_0x31aab4,_0x36120d))return _0x31aab4;this[_0xe890('0x14a')](_0x31aab4,_0x531d53[_0xe890('0x14d')],_0x531d53[_0xe890('0xd0')]);break;}if(_0x28cd77==_0x31aab4[_0xe890('0x95')]&&Pt(_0x31aab4,_0x36120d)){const _0x203bff=_0x31aab4[_0xe890('0x149')]();return _0x203bff[_0xe890('0x14d')][_0xe890('0x18')](_0x531d53['end'])?this[_0xe890('0xfc')](_0x31aab4,this['_model'][_0xe890('0x115')](_0x531d53[_0xe890('0x14d')],_0x203bff[_0xe890('0xd0')])):this['_setSuggestionRange'](_0x31aab4,this['_model'][_0xe890('0x115')](_0x203bff[_0xe890('0x14d')],_0x531d53['end'])),_0x31aab4;}}const _0x596410=_0x2b5717(),_0x192a8a=_0x3da305['id'],_0x545715=_0x28cd77?_0xe890('0x23')+_0x28cd77:_0xe890('0xe2'),_0x39c264=this['_setSuggestionData']({'id':_0x596410,'type':_0x545715,'createdAt':new Date(),'authorId':_0x192a8a,'attributes':_0x36120d});return this[_0xe890('0xb0')](_0x545715,_0x596410,_0x192a8a,_0x531d53),_0x39c264;}[_0xe890('0x171')](_0x5b1a81,_0x35fff9='multi',_0xd1a861={}){const _0x514d59=this[_0xe890('0x10d')][_0xe890('0xd8')][_0xe890('0x168')](_0xe890('0x5'))['me'],_0x4afec4=this['_suggestionFactory'][_0xe890('0x8b')](_0xe890('0xe2'),_0x35fff9,_0xe890('0x59'));for(const _0x394c51 of this[_0xe890('0x24')]())if(_0x394c51[_0xe890('0xe9')]['id']==_0x514d59['id']&&_0xe890('0xe2')==_0x394c51[_0xe890('0x13d')]&&_0x394c51[_0xe890('0x95')]==_0x35fff9&&Pt(_0x394c51,_0xd1a861)&&(_0x4afec4(_0x394c51[_0xe890('0xa2')](),_0x5b1a81)||_0x4afec4(_0x5b1a81,_0x394c51[_0xe890('0xa2')]()))){for(const _0x229d34 of _0x5b1a81)_0x394c51[_0xe890('0x76')](_0x229d34);return _0x394c51;}for(const {suggestion:_0x2a113b,meta:_0x2af073}of this[_0xe890('0xff')](_0x5b1a81,_0xe890('0xe2'))){if(!_0x2af073[_0xe890('0x13f')])continue;if(!this[_0xe890('0x27')]&&_0x2af073[_0xe890('0x4c')])continue;if(!Pt(_0x2a113b,_0xd1a861))continue;let _0x14f655=!0x0;for(const _0x25b47f of _0x2a113b[_0xe890('0xa2')]())for(const _0x162eb6 of _0x5b1a81)if(!_0x25b47f[_0xe890('0x60')](_0x162eb6)){_0x14f655=!0x1;break;}if(_0x14f655)return _0x2a113b;}const _0x1b93a8=_0x2b5717(),_0x2ea633=_0x514d59['id'],_0x193419=_0xe890('0x23')+_0x35fff9,_0x4c89cb=this['_setSuggestionData']({'id':_0x1b93a8,'type':_0x193419,'createdAt':new Date(),'authorId':_0x2ea633,'attributes':_0xd1a861});for(const _0x48f213 of _0x5b1a81)this['_addSuggestionMarker'](_0x193419,_0x1b93a8,_0x2ea633,_0x48f213,_0x12f222['getMultiRangeId']());return _0x4c89cb;}[_0xe890('0xb6')](_0x1f3798,_0x3f2f12,_0x376f5c=null,_0x2c41a3={}){if(_0x376f5c=_0x376f5c||Et(_0x3f2f12),_0x1f3798[_0xe890('0x2')])return null;if(_0xe890('0x61')===this[_0xe890('0x177')]){const _0x106c44=this[_0xe890('0x9c')][_0xe890('0x8b')](_0xe890('0x12e'),_0x376f5c,'accept');return this['forceDefaultExecution'](()=>_0x106c44([_0x1f3798],_0x3f2f12,_0x2c41a3)),null;}const _0x414858=this[_0xe890('0x10d')]['plugins'][_0xe890('0x168')](_0xe890('0x5'))['me'],_0x435bf3=[];if('always'!==this[_0xe890('0x177')])for(const {suggestion:_0x3fc011,meta:_0x5336a6}of this[_0xe890('0xff')](_0x1f3798,_0xe890('0xe2')))_0x5336a6[_0xe890('0x13f')]&&!_0x5336a6[_0xe890('0x8f')]&&_0x435bf3[_0xe890('0xef')](..._0x3fc011['getRanges']());const _0xd0caea=function(_0x2ac6aa,_0x3bfe88){const _0x59c46f=[];for(const _0x13bbc4 of _0x3bfe88){const _0x12dbb9=_0x2ac6aa[_0xe890('0x98')](_0x13bbc4);_0x12dbb9&&_0x59c46f[_0xe890('0xef')](_0x12dbb9);}return _0x59c46f;}(_0x1f3798,_0x435bf3),_0x2b1ffc=function(_0x1e26ce,_0x231656){const _0x9630b=[_0x1e26ce];for(const _0x343430 of _0x231656){let _0x304af5=0x0;for(;_0x304af5<_0x9630b[_0xe890('0xfe')];){const _0x1dce42=_0x9630b[_0x304af5]['getDifference'](_0x343430);_0x9630b[_0xe890('0x174')](_0x304af5,0x1,..._0x1dce42),_0x304af5+=_0x1dce42[_0xe890('0xfe')];}}return _0x9630b;}(_0x1f3798,_0x435bf3);_0xd0caea['length']&&this[_0xe890('0xda')][_0xe890('0xc7')](()=>{for(const _0x2214e2 of _0xd0caea){const _0x44df51=this[_0xe890('0x9c')][_0xe890('0x8b')](_0xe890('0x12e'),_0x376f5c,'accept');this['forceDefaultExecution'](()=>_0x44df51([_0x2214e2],_0x3f2f12,_0x2c41a3));}});for(const _0x41d71c of _0x2b1ffc){let _0x34ced2=null,_0x338d3d=_0x41d71c['start'],_0x2fd312=_0x41d71c[_0xe890('0xd0')];for(const {suggestion:_0xd4ff8c,meta:_0x3038ce}of this[_0xe890('0xff')](_0x41d71c,_0xe890('0x12e'))){if(!_0x3038ce[_0xe890('0x13f')])continue;if(_0xd4ff8c[_0xe890('0x95')]!=_0x376f5c)continue;if(!Pt(_0xd4ff8c,_0x2c41a3))continue;const _0x528856=_0xd4ff8c[_0xe890('0x149')]();if(_0x528856['containsRange'](_0x41d71c,!0x0))return null;_0x338d3d=_0x338d3d[_0xe890('0xec')](_0x528856[_0xe890('0x14d')])?_0x338d3d:_0x528856[_0xe890('0x14d')],_0x2fd312=_0x2fd312[_0xe890('0x82')](_0x528856[_0xe890('0xd0')])?_0x2fd312:_0x528856[_0xe890('0xd0')],_0x34ced2?_0x528856['start'][_0xe890('0xec')](_0x34ced2['getFirstRange']()[_0xe890('0x14d')])?(_0x34ced2[_0xe890('0x1')](),_0x34ced2=_0xd4ff8c):_0xd4ff8c[_0xe890('0x1')]():_0x34ced2=_0xd4ff8c;}const _0x316082=this[_0xe890('0xda')][_0xe890('0x115')](_0x338d3d,_0x2fd312);if(_0x34ced2)this['_setSuggestionRange'](_0x34ced2,_0x316082);else{const _0x103577=_0x2b5717(),_0x513551=_0x414858['id'];this[_0xe890('0x1c')]({'id':_0x103577,'type':_0xe890('0x103')+_0x376f5c,'data':_0x3f2f12,'createdAt':new Date(),'authorId':_0x513551,'attributes':_0x2c41a3}),this[_0xe890('0xb0')](_0xe890('0x103')+_0x376f5c,_0x103577,_0x513551,_0x316082);}}return null;}['markBlockFormat'](_0x358377,_0x1824ff,_0x38582c=[],_0x4eb866=null,_0x3195e4={}){_0x1824ff['formatGroupId']||(_0x1824ff[_0xe890('0xbe')]=_0x1824ff[_0xe890('0x14f')]),_0x1824ff[_0xe890('0x120')]=_0x358377['is'](_0xe890('0xa')),_0x4eb866=_0x4eb866||Et(_0x1824ff);const _0x5cba0e=_0x38582c[_0xe890('0x48')](_0xf7db33=>Ot(_0xf7db33,this['_model'])),_0x1a0a09=_0x358377['is'](_0xe890('0xa'))?_0x358377:Ot(_0x358377,this[_0xe890('0xda')]);if(_0xe890('0x61')===this['_trackFormatChanges']){const _0x1e0a8d=this['_suggestionFactory'][_0xe890('0x8b')](_0xe890('0x12f'),_0x4eb866,_0xe890('0x9'));return this[_0xe890('0xcf')](()=>_0x1e0a8d([_0x1a0a09],_0x1824ff,_0x3195e4)),null;}_0x5cba0e[_0xe890('0xef')](_0x1a0a09);let _0x5f2956=!0x0;for(const _0x55021b of _0x5cba0e)if(!this[_0xe890('0xca')](_0x55021b)){_0x5f2956=!0x1;break;}if(_0x5f2956&&'always'!==this[_0xe890('0x177')]){const _0x53b172=this[_0xe890('0x9c')][_0xe890('0x8b')]('formatBlock',_0x4eb866,_0xe890('0x9'));return this[_0xe890('0xcf')](()=>_0x53b172([_0x1a0a09],_0x1824ff,_0x3195e4)),null;}let _0x99abcc=null,_0x3c1506=_0x1a0a09[_0xe890('0x14d')],_0x420d9e=_0x1a0a09[_0xe890('0xd0')];for(const {suggestion:_0x1c1394,meta:_0x50ff6e}of this[_0xe890('0xff')](_0x1a0a09,_0xe890('0x12f'))){if(!_0x50ff6e['isOwn'])continue;if(_0x50ff6e[_0xe890('0x162')]||_0x50ff6e[_0xe890('0x4c')]||_0x50ff6e['isInsideObject'])continue;if(_0x1c1394['data'][_0xe890('0xbe')]!=_0x1824ff['formatGroupId'])continue;if(!Pt(_0x1c1394,_0x3195e4))continue;const _0x425155=_0x1c1394[_0xe890('0x149')]();if(_0x1c1394[_0xe890('0x95')]==_0x4eb866){if(_0x425155[_0xe890('0x60')](_0x1a0a09,!0x0))return null;_0x3c1506=_0x3c1506['isBefore'](_0x425155[_0xe890('0x14d')])?_0x3c1506:_0x425155[_0xe890('0x14d')],_0x420d9e=_0x420d9e['isAfter'](_0x425155[_0xe890('0xd0')])?_0x420d9e:_0x425155[_0xe890('0xd0')],_0x99abcc?_0x425155[_0xe890('0x14d')][_0xe890('0xec')](_0x99abcc[_0xe890('0x149')]()['start'])?(_0x99abcc[_0xe890('0x1')](),_0x99abcc=_0x1c1394):_0x1c1394[_0xe890('0x1')]():_0x99abcc=_0x1c1394;}else{const _0x478416=_0x1a0a09[_0xe890('0x98')](_0x425155);this[_0xe890('0x93')](_0x1c1394,_0x478416);}}const _0x3d02a3=this[_0xe890('0x10d')][_0xe890('0xd8')][_0xe890('0x168')]('Users')['me'],_0x2dc1e8=_0x2b5717(),_0x9bf83d=_0x3d02a3['id'];if(_0x99abcc)return this[_0xe890('0xfc')](_0x99abcc,this[_0xe890('0xda')][_0xe890('0x115')](_0x3c1506,_0x420d9e)),_0x99abcc;{const _0x47013a=this[_0xe890('0x1c')]({'id':_0x2dc1e8,'type':'formatBlock:'+_0x4eb866,'data':_0x1824ff,'createdAt':new Date(),'authorId':_0x9bf83d,'attributes':_0x3195e4});return this[_0xe890('0xb0')](_0xe890('0xf0')+_0x4eb866,_0x2dc1e8,_0x9bf83d,this['_model'][_0xe890('0x115')](_0x3c1506,_0x420d9e)),_0x47013a;}}[_0xe890('0x86')](_0x58e352,_0x327bff,_0x4c756e=[],_0x2cb456=null,_0x27d65f={}){_0x327bff[_0xe890('0xbe')]||(_0x327bff[_0xe890('0xbe')]=_0x327bff[_0xe890('0x14f')]);const _0x4fbbf0=_0x58e352[0x0];_0x327bff['multipleBlocks']=_0x4fbbf0['is']('range'),_0x2cb456=_0x2cb456||Et(_0x327bff);const _0x1e3e7c=_0x4c756e[_0xe890('0x48')](_0x49b7f1=>Ot(_0x49b7f1,this[_0xe890('0xda')])),_0x3f117d=_0x4fbbf0['is']('range')?_0x58e352:_0x58e352[_0xe890('0x48')](_0x5ab1af=>Ot(_0x5ab1af,this['_model']));if('never'===this[_0xe890('0x177')]){const _0xa7f370=this[_0xe890('0x9c')][_0xe890('0x8b')](_0xe890('0x12f'),_0x2cb456,_0xe890('0x9'));return this[_0xe890('0xcf')](()=>_0xa7f370(_0x3f117d,_0x327bff,_0x27d65f)),null;}_0x1e3e7c[_0xe890('0xef')](..._0x3f117d);let _0x190a6b=!0x0;for(const _0x1c3af3 of _0x1e3e7c)if(!this[_0xe890('0xca')](_0x1c3af3)){_0x190a6b=!0x1;break;}if(_0x190a6b&&'always'!==this[_0xe890('0x177')]){const _0x31a3ac=this['_suggestionFactory'][_0xe890('0x8b')]('formatBlock',_0x2cb456,_0xe890('0x9'));return this[_0xe890('0xcf')](()=>_0x31a3ac(_0x3f117d,_0x327bff,_0x27d65f)),null;}const _0x4b1b71=this[_0xe890('0x10d')][_0xe890('0xd8')][_0xe890('0x168')](_0xe890('0x5'))['me'];for(const _0x2da6ba of this[_0xe890('0x24')]()){if(_0x2da6ba['author']['id']!=_0x4b1b71['id'])continue;if('formatBlock'!=_0x2da6ba[_0xe890('0x13d')]||_0x2da6ba[_0xe890('0x87')][_0xe890('0xbe')]!=_0x327bff['formatGroupId'])continue;if(!Pt(_0x2da6ba,_0x27d65f))continue;const _0x38bcad=_0x2da6ba['subType']==_0x2cb456;for(let _0x23230f=0x0;_0x23230f<_0x3f117d[_0xe890('0xfe')];_0x23230f++){const _0x54cfff=_0x3f117d[_0x23230f];for(const _0x25bd51 of _0x2da6ba[_0xe890('0x4d')]()){const _0x446326=_0x25bd51[_0xe890('0x15a')]();if(_0x54cfff['isEqual'](_0x446326)){_0x38bcad?(_0x3f117d[_0xe890('0x174')](_0x23230f,0x1),_0x23230f--):_0x2da6ba[_0xe890('0x8e')](_0x25bd51[_0xe890('0x19')]);break;}}}}if(0x0==_0x3f117d[_0xe890('0xfe')])return null;const _0xc42d52=this[_0xe890('0x9c')][_0xe890('0x8b')](_0xe890('0x12f'),_0x2cb456,_0xe890('0x59'));for(const _0x1990bc of this[_0xe890('0x24')]())if(_0x1990bc['author']['id']==_0x4b1b71['id']&&_0xe890('0x12f')==_0x1990bc[_0xe890('0x13d')]&&_0x1990bc[_0xe890('0x87')][_0xe890('0xbe')]==_0x327bff[_0xe890('0xbe')]&&_0x1990bc[_0xe890('0x95')]==_0x2cb456&&Pt(_0x1990bc,_0x27d65f)&&(_0xc42d52(_0x1990bc[_0xe890('0xa2')](),_0x3f117d)||_0xc42d52(_0x3f117d,_0x1990bc[_0xe890('0xa2')]()))){for(const _0x43f25e of _0x3f117d)_0x1990bc[_0xe890('0x76')](_0x43f25e);return _0x1990bc;}const _0x3fcb33=_0x2b5717(),_0xdde960=_0x4b1b71['id'],_0x2fd736=_0xe890('0xf0')+_0x2cb456,_0x558ddf=this[_0xe890('0x1c')]({'id':_0x3fcb33,'type':_0x2fd736,'data':_0x327bff,'createdAt':new Date(),'authorId':_0xdde960,'attributes':_0x27d65f});for(const _0x4edaca of _0x3f117d)this[_0xe890('0xb0')](_0x2fd736,_0x3fcb33,_0xdde960,_0x4edaca,_0x12f222[_0xe890('0x26')]());return _0x558ddf;}['markDeletion'](_0x40bee8,_0x584995=null,_0x2872ca={}){if(_0x40bee8[_0xe890('0x2')])return null;const _0x352248=this['editor'][_0xe890('0xd8')][_0xe890('0x168')](_0xe890('0x5'))['me'],_0x1a7cc1=new _0x18b498(_0x40bee8[_0xe890('0x14d')],_0x40bee8[_0xe890('0xd0')]);for(const {suggestion:_0x3460a1,meta:_0x1e0bfd}of this[_0xe890('0xff')](_0x1a7cc1,_0xe890('0xe2')))if(_0x1e0bfd[_0xe890('0x13f')]&&!_0x1e0bfd[_0xe890('0x162')]){if(_0x3460a1[_0xe890('0xc3')]){const _0x4c56f3=_0x3460a1[_0xe890('0xa2')]()[_0xe890('0xbb')](_0x225192=>'$graveyard'!=_0x225192[_0xe890('0x3e')][_0xe890('0x156')]);_0x4c56f3['every'](_0x37ed8c=>_0x1a7cc1[_0xe890('0x60')](_0x37ed8c,!0x0))&&_0x3460a1[_0xe890('0x39')]();if(_0x4c56f3['some'](_0x5597a0=>_0x5597a0[_0xe890('0x60')](_0x1a7cc1,!0x0))){const _0x524db9=this[_0xe890('0x9c')][_0xe890('0x8b')](_0xe890('0x67'),_0x584995,_0xe890('0x9'));return this[_0xe890('0xcf')](()=>_0x524db9([_0x1a7cc1],null,_0x2872ca)),null;}}else{const _0x587a1e=_0x1a7cc1['getIntersection'](_0x3460a1[_0xe890('0x149')]());null!==_0x587a1e&&_0x3460a1[_0xe890('0x12a')]([_0x587a1e],null,_0x2872ca);}}if(_0x1a7cc1[_0xe890('0x143')](),_0x1a7cc1[_0xe890('0x2')]||_0xe890('0x57')==_0x1a7cc1[_0xe890('0x3e')]['rootName'])return null;let _0x347b92=null,_0x1e9c3b=_0x1a7cc1[_0xe890('0x14d')],_0x20042b=_0x1a7cc1[_0xe890('0xd0')];const _0x3d8cb3=this['_findSuggestions'](_0x1a7cc1,_0xe890('0x67'));for(const {suggestion:_0x50ffbc,meta:_0x3b4d67}of _0x3d8cb3){const _0x1dca84=this['_model']['createRange'](_0x1e9c3b,_0x20042b);if(_0x3b4d67[_0xe890('0x13f')]&&(this[_0xe890('0x27')]||!_0x3b4d67['containsRangeInObject']&&!_0x3b4d67[_0xe890('0x8f')])){if(_0x50ffbc['isMultiRange']){if(!Pt(_0x50ffbc,_0x2872ca))continue;let _0x2950bb=!0x0;for(const _0x1a1c76 of _0x50ffbc['getRanges']()){if(_0x1a1c76[_0xe890('0x60')](_0x1dca84,!0x0))return _0x50ffbc;_0x1dca84[_0xe890('0x60')](_0x1a1c76)||(_0x2950bb=!0x1);}_0x2950bb&&_0x50ffbc[_0xe890('0x39')]();}else{const _0x40b7e8=_0x50ffbc[_0xe890('0x149')]();if(_0x40b7e8[_0xe890('0x60')](_0x1dca84,!0x0))return _0x50ffbc;if(!Pt(_0x50ffbc,_0x2872ca)){_0x1dca84['containsRange'](_0x40b7e8)?_0x50ffbc[_0xe890('0x1')]():_0x40b7e8[_0xe890('0x31')](_0x1e9c3b)?_0x1e9c3b=_0x40b7e8[_0xe890('0xd0')]:_0x40b7e8[_0xe890('0x31')](_0x20042b)&&(_0x20042b=_0x40b7e8['start']);continue;}_0x1e9c3b=_0x1e9c3b[_0xe890('0xec')](_0x40b7e8['start'])?_0x1e9c3b:_0x40b7e8[_0xe890('0x14d')],_0x20042b=_0x20042b['isAfter'](_0x40b7e8['end'])?_0x20042b:_0x40b7e8[_0xe890('0xd0')],_0x2872ca=Object[_0xe890('0xde')]({},_0x50ffbc[_0xe890('0x5b')]),_0x347b92?_0x40b7e8[_0xe890('0x14d')]['isBefore'](_0x347b92[_0xe890('0x149')]()['start'])?(_0x347b92[_0xe890('0x1')](),_0x347b92=_0x50ffbc):_0x50ffbc[_0xe890('0x1')]():_0x347b92=_0x50ffbc;}}}if(_0x347b92)return this[_0xe890('0xfc')](_0x347b92,this[_0xe890('0xda')][_0xe890('0x115')](_0x1e9c3b,_0x20042b)),_0x347b92;{const _0x362831=_0x2b5717(),_0x3f61cb=this[_0xe890('0xda')][_0xe890('0x115')](_0x1e9c3b,_0x20042b),_0x3ed929=_0x352248['id'],_0x3037fd=_0x584995?'deletion:'+_0x584995:_0xe890('0x67'),_0x2fa412=this[_0xe890('0x1c')]({'id':_0x362831,'type':_0x3037fd,'createdAt':new Date(),'authorId':_0x3ed929,'attributes':_0x2872ca});return this[_0xe890('0xb0')](_0x3037fd,_0x362831,_0x3ed929,_0x3f61cb),_0x2fa412;}}[_0xe890('0x9d')](_0x56258c,_0x2699d3=_0xe890('0x7b'),_0x3cd016={}){const _0x40a434=this[_0xe890('0x10d')]['plugins'][_0xe890('0x168')]('Users')['me'],_0x52adc8=_0x56258c[_0xe890('0x48')](_0x4c1010=>new _0x18b498(_0x4c1010[_0xe890('0x14d')],_0x4c1010[_0xe890('0xd0')])),_0x1abb35=new Set();for(const {suggestion:_0x59965f,meta:_0x303c39}of this[_0xe890('0xff')](_0x52adc8,_0xe890('0xe2')))_0x303c39[_0xe890('0x13f')]&&!_0x303c39[_0xe890('0x162')]&&_0x1abb35[_0xe890('0x16c')](_0x59965f);for(const _0x37f2f4 of _0x1abb35)if(_0x37f2f4[_0xe890('0xc3')]){const _0x40a550=_0x37f2f4[_0xe890('0xa2')]();(!_0x37f2f4['attributes']||!_0x37f2f4[_0xe890('0x5b')][_0xe890('0x1e')])&&(_0x40a550['every'](_0x3003c5=>_0x52adc8[_0xe890('0xa4')](_0x36d1a8=>_0x36d1a8[_0xe890('0x60')](_0x3003c5,!0x0)))&&_0x37f2f4[_0xe890('0x39')]());if(_0x52adc8[_0xe890('0xe1')](_0x2b8c17=>_0x40a550['some'](_0x34c569=>_0x34c569[_0xe890('0x60')](_0x2b8c17,!0x0)))){const _0xa17920=this[_0xe890('0x9c')][_0xe890('0x8b')](_0xe890('0x67'),_0x2699d3,_0xe890('0x9'));return this[_0xe890('0xcf')](()=>_0xa17920(_0x56258c,null,_0x3cd016)),null;}}else{const _0x44f828=_0x37f2f4[_0xe890('0x149')]();_0x52adc8[_0xe890('0xa4')](_0x2265fb=>_0x2265fb['containsRange'](_0x44f828,!0x0))&&_0x37f2f4[_0xe890('0x39')]();if(_0x52adc8[_0xe890('0xe1')](_0x46e5b7=>_0x44f828[_0xe890('0x60')](_0x46e5b7,!0x0))){const _0x50b00c=this['_suggestionFactory'][_0xe890('0x8b')]('deletion',_0x2699d3,_0xe890('0x9'));return this[_0xe890('0xcf')](()=>_0x50b00c(_0x52adc8,null,_0x3cd016)),null;}}const _0x4c6632=this[_0xe890('0x9c')][_0xe890('0x8b')](_0xe890('0x67'),_0x2699d3,'join');let _0x327dc5=null;for(const _0x116a1d of this[_0xe890('0x24')]())if(_0x116a1d[_0xe890('0xe9')]['id']==_0x40a434['id']&&_0x116a1d[_0xe890('0x4e')]&&_0xe890('0x67')==_0x116a1d[_0xe890('0x13d')]&&_0x116a1d[_0xe890('0x95')]==_0x2699d3&&Pt(_0x116a1d,_0x3cd016)&&(_0x4c6632(_0x116a1d[_0xe890('0xa2')](),_0x52adc8)||_0x4c6632(_0x52adc8,_0x116a1d[_0xe890('0xa2')]()))){if(_0x327dc5){if(_0x116a1d[_0xe890('0x15f')]&&_0x116a1d[_0xe890('0x15f')][_0xe890('0xfe')])continue;for(const _0x4cb391 of _0x116a1d[_0xe890('0xa2')]())_0x327dc5['isIntersectingWithRange'](_0x4cb391)||_0x327dc5['addRange'](_0x4cb391);_0x116a1d['removeMarkers']();}else{_0x327dc5=_0x116a1d;for(const _0x423e77 of _0x52adc8)_0x116a1d[_0xe890('0xb3')](_0x423e77)||_0x116a1d[_0xe890('0x76')](_0x423e77);}}if(_0x327dc5)return _0x327dc5;_0x1abb35['clear']();for(const {suggestion:_0x32cbe4,meta:_0x40eb56}of this[_0xe890('0xff')](_0x52adc8,_0xe890('0x67')))_0x40eb56['isOwn']&&(this[_0xe890('0x27')]||!_0x40eb56[_0xe890('0x4c')]&&!_0x40eb56[_0xe890('0x8f')])&&Pt(_0x32cbe4,_0x3cd016)&&_0x1abb35[_0xe890('0x16c')](_0x32cbe4);for(const _0x67bf0c of _0x1abb35){const _0x5bb62c=_0x67bf0c[_0xe890('0xa2')]();if(!_0x3cd016||!_0x3cd016[_0xe890('0x1e')]){if(_0x52adc8['every'](_0x2c7a13=>_0x5bb62c[_0xe890('0xa4')](_0x11e7d4=>_0x11e7d4[_0xe890('0x60')](_0x2c7a13,!0x0))))return _0x67bf0c;}(!_0x67bf0c[_0xe890('0x5b')]||!_0x67bf0c[_0xe890('0x5b')][_0xe890('0x1e')])&&(_0x5bb62c[_0xe890('0xe1')](_0x52f7a7=>_0x52adc8[_0xe890('0xa4')](_0x546534=>_0x546534[_0xe890('0x60')](_0x52f7a7,!0x0)))&&_0x67bf0c[_0xe890('0x39')]());}const _0x5228b7=_0x2b5717(),_0x2f4bd5=_0x40a434['id'],_0x4adc6b='deletion:'+_0x2699d3,_0x3f5ff8=this[_0xe890('0x1c')]({'id':_0x5228b7,'type':_0x4adc6b,'createdAt':new Date(),'authorId':_0x2f4bd5,'attributes':_0x3cd016});for(const _0x5b5e84 of _0x52adc8)_0x5b5e84['detach'](),_0x5b5e84[_0xe890('0x2')]||_0xe890('0x57')==_0x5b5e84[_0xe890('0x3e')][_0xe890('0x156')]||this[_0xe890('0xb0')](_0x4adc6b,_0x5228b7,_0x2f4bd5,_0x5b5e84,_0x12f222[_0xe890('0x26')]());return _0x3f5ff8;}[_0xe890('0x75')](_0x4d8975,_0x36bd2f,_0x5aad71,_0x5aa858,_0x2ac548){if(_0x4d8975['isCollapsed'])return[];if(_0xe890('0x61')===this[_0xe890('0x177')])return[];const _0x44726f=this[_0xe890('0x10d')][_0xe890('0xd8')][_0xe890('0x168')]('Users')['me']['id'],_0x39b6fd=Array['from'](this[_0xe890('0x63')][_0xe890('0x4')]())[_0xe890('0xbb')](_0x39befe=>'attribute'==_0x39befe['type']&&_0x39befe[_0xe890('0x87')][_0xe890('0x3')]==_0x36bd2f&&_0x39befe[_0xe890('0xb3')](_0x4d8975));if('default'===this[_0xe890('0x177')]){const _0x61d7ae=this[_0xe890('0xff')](_0x4d8975,_0xe890('0xe2'))['filter'](({meta:_0x536781})=>_0x536781['isOwn']&&!_0x536781[_0xe890('0x8f')]&&!_0x536781[_0xe890('0x162')])[_0xe890('0x48')](({suggestion:_0x5203f7})=>_0x5203f7);_0x39b6fd[_0xe890('0x70')](..._0x61d7ae);}const _0x555c21=new Map([[_0x4d8975,_0x5aad71]]);for(const _0x4e7dde of _0x39b6fd){const _0x4a1cd0='attribute'==_0x4e7dde[_0xe890('0x13d')]?_0x4e7dde[_0xe890('0x87')][_0xe890('0x136')]:void 0x0,_0x2c3cc1=_0x4e7dde[_0xe890('0x149')](),_0x49f515=Array[_0xe890('0x153')](_0x555c21['keys']())[_0xe890('0x119')](_0x1b3683=>_0x1b3683[_0xe890('0x137')](_0x2c3cc1));if(!_0x49f515)continue;const _0x40d2d4=_0x49f515['getDifference'](_0x2c3cc1);this[_0xe890('0x172')](_0x36bd2f)&&_0xe890('0xe2')==_0x4e7dde[_0xe890('0x13d')]&&0x0!=_0x40d2d4[_0xe890('0xfe')]||(_0x555c21[_0xe890('0x99')](_0x49f515),_0x40d2d4[_0xe890('0x13c')](_0x129ed6=>{_0x555c21[_0xe890('0x64')](_0x129ed6,_0x5aad71);}),_0xe890('0xe2')!=_0x4e7dde[_0xe890('0x13d')]&&_0x4a1cd0!=_0x5aa858&&_0x555c21['set'](_0x49f515[_0xe890('0x98')](_0x2c3cc1),_0x4a1cd0));}const _0x1b2faf=[];for(const [_0x43825e,_0x50e1da]of _0x555c21){const _0x47bb07=_0x2b5717(),_0x28564d={'key':_0x36bd2f,'oldValue':_0x50e1da,'newValue':_0x5aa858};_0x36bd2f['length']>0x25&&console[_0xe890('0x16b')]('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.',{'key':_0x36bd2f});const _0x93418=(_0xe890('0x175')+(_0x36bd2f+'|'+Et({'newValue':_0x5aa858})))['substring'](0x0,0x3c),_0x487ad5=this[_0xe890('0x1c')]({'id':_0x47bb07,'type':_0x93418,'data':_0x28564d,'createdAt':new Date(),'authorId':_0x44726f,'attributes':_0x2ac548});_0x1b2faf[_0xe890('0xef')](_0x487ad5),this['_addSuggestionMarker'](_0x93418,_0x47bb07,_0x44726f,_0x43825e);}return _0x1b2faf;}['_registerBlockAttribute'](_0x2ef40e){this[_0xe890('0x68')][_0xe890('0x16c')](_0x2ef40e);}[_0xe890('0x10e')](_0x55b957){this[_0xe890('0xf8')][_0xe890('0x16c')](_0x55b957);}[_0xe890('0x9e')](_0x3783ef,_0x309c97=[],_0x343f0c=[]){this['enableCommand'](_0x3783ef,(_0x3197e7,..._0x56288b)=>{this[_0xe890('0xcc')](()=>{_0x3197e7(..._0x56288b);});});for(const _0x10a519 of _0x309c97)this[_0xe890('0x10e')](_0x10a519);for(const _0x26d998 of _0x343f0c)this['_registerBlockAttribute'](_0x26d998);}[_0xe890('0x6')](_0x2d783b){return _0xe890('0x111')==_0x2d783b[_0xe890('0x13d')]?_0x2d783b[_0xe890('0x95')][_0xe890('0x56')]('|')[0x0]:null;}[_0xe890('0xfc')](_0x3ecd40,_0x317700){const _0x298ce1=_0x3ecd40[_0xe890('0xa3')]();this[_0xe890('0xda')][_0xe890('0xc7')](_0x30972=>{_0x30972[_0xe890('0x2f')](_0x298ce1,{'range':_0x317700});});}[_0xe890('0x16e')](_0x389311){const _0x2d6a39=_0x389311['id'],_0x467e45=this[_0xe890('0x10d')][_0xe890('0x79')]['get'](_0xe890('0x8'));this[_0xe890('0x77')][_0xe890('0x145')](_0x2d6a39)||this['_commentsRepository'][_0xe890('0x123')]({'channelId':_0x467e45,'threadId':_0x2d6a39,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f51a5=this['_commentsRepository'][_0xe890('0x12')](_0x2d6a39);_0x3f51a5[_0xe890('0x22')](_0xe890('0x6a')),_0x3f51a5[_0xe890('0x6a')]=!0x1,_0x389311[_0xe890('0x15f')]=_0x3f51a5;}['_checkSuggestionCorrectness'](_0x352ccc,_0x1e603e,_0x43ce76,_0x3c3365){if(_0x352ccc[_0xe890('0x13d')]!=_0x1e603e||_0x352ccc[_0xe890('0x95')]!=_0x43ce76||_0x352ccc[_0xe890('0x7c')]['id']!=_0x3c3365)throw this[_0xe890('0x10d')][_0xe890('0x11b')]('track-changes-suggestion-data-mismatch'),new _0xbc78f4(_0xe890('0x142'),this);}[_0xe890('0x93')](_0xf22413,_0x554094){const _0x3e0601=_0xf22413['getFirstRange']();if(_0x554094[_0xe890('0x18')](_0x3e0601))_0xf22413['removeMarkers']();else{if(_0x3e0601[_0xe890('0x60')](_0x554094)){const _0x3cf79d=this['_model'][_0xe890('0x81')](_0x554094[_0xe890('0x14d')]['nodeBefore'],_0xe890('0xd0'));this[_0xe890('0xfc')](_0xf22413,this[_0xe890('0xda')][_0xe890('0x115')](_0x3e0601['start'],_0x3cf79d));const _0x5b1e2c=_0x2b5717(),_0x3bc43f=_0xf22413['creator']['id'],_0x213c3=_0xf22413[_0xe890('0x13d')]+':'+_0xf22413[_0xe890('0x95')];this[_0xe890('0x1c')]({'id':_0x5b1e2c,'type':_0x213c3,'createdAt':new Date(),'authorId':_0x3bc43f,'data':_0xf22413[_0xe890('0x87')],'attributes':_0xf22413['attributes']});const _0x3a38c3=this[_0xe890('0xda')][_0xe890('0x81')](_0x554094[_0xe890('0xd0')]['parent'],_0xe890('0x163')),_0x5acfa1=this[_0xe890('0xda')][_0xe890('0x115')](_0x3a38c3,_0x3e0601[_0xe890('0xd0')]);this[_0xe890('0xb0')](_0x213c3,_0x5b1e2c,_0x3bc43f,_0x5acfa1);}else{if(_0x3e0601[_0xe890('0x31')](_0x554094[_0xe890('0x14d')])){const _0x543c1f=this[_0xe890('0xda')]['createPositionAt'](_0x554094['start']['nodeBefore'],_0xe890('0xd0'));this[_0xe890('0xfc')](_0xf22413,this[_0xe890('0xda')][_0xe890('0x115')](_0x3e0601[_0xe890('0x14d')],_0x543c1f));}else{const _0x31805a=this[_0xe890('0xda')][_0xe890('0x81')](_0x554094[_0xe890('0xd0')][_0xe890('0xee')],'after');this['_setSuggestionRange'](_0xf22413,this[_0xe890('0xda')][_0xe890('0x115')](_0x31805a,_0x3e0601[_0xe890('0xd0')]));}}}}[_0xe890('0xca')](_0x4db312){for(const {suggestion:_0x3008ee,meta:_0x40908d}of this[_0xe890('0xff')](_0x4db312,_0xe890('0xe2'))){if(!_0x40908d[_0xe890('0x13f')])continue;const _0x4633c2=_0x3008ee['getRanges']();for(const _0x105b51 of _0x4633c2)if(!_0x4db312['getDifference'](_0x105b51)[_0xe890('0xfe')])return!0x0;}return!0x1;}[_0xe890('0x72')](_0x126af5){const _0x18794f=this[_0xe890('0x10d')][_0xe890('0xd8')][_0xe890('0x168')](_0xe890('0x5'))[_0xe890('0x106')](_0x126af5);if(!_0x18794f)throw new _0xbc78f4(_0xe890('0x58'),this);return _0x18794f;}[_0xe890('0x5a')](_0x6060af){const _0x57a57c=this[_0xe890('0x10d')][_0xe890('0xd8')][_0xe890('0x168')](_0xe890('0x5')),_0x3f6260=_0x41b42f(_0xe890('0xc2')+_0x6060af),_0x3d525d=_0x57a57c[_0xe890('0x106')](_0x3f6260);return _0x3d525d||_0x57a57c['addUser']({'id':_0x3f6260,'name':_0x6060af});}['_createSuggestion'](_0x96f84e,_0x5d72e1,_0x18a3da,_0x501d61,_0x25c014){const _0x5f1f0b=this[_0xe890('0x72')](_0x501d61),_0x426197=this[_0xe890('0x9c')][_0xe890('0x96')](_0x96f84e,_0x5d72e1,_0x18a3da,_0x5f1f0b,_0x25c014,_0xce0350=>{this[_0xe890('0xe4')](_0x18a3da,{'attributes':_0xce0350});const _0x5d5cd2=this[_0xe890('0x117')](_0x18a3da);this[_0xe890('0xa1')](new Set([_0x5d5cd2])),this[_0xe890('0xd2')](new Set([_0x5d5cd2]));});return this[_0xe890('0xb')](_0x426197,_0xe890('0x9'),()=>{this[_0xe890('0xe4')](_0x18a3da,{'state':_0xe890('0xb9')});},{'priority':_0xe890('0x147')}),this[_0xe890('0xb')](_0x426197,_0xe890('0x39'),()=>{this['_updateSuggestionData'](_0x18a3da,{'state':_0xe890('0x40')});},{'priority':_0xe890('0x147')}),this[_0xe890('0x63')][_0xe890('0x64')](_0x18a3da,_0x426197),this[_0xe890('0x34')][_0xe890('0x64')](_0x426197,_0xe890('0xdf')),_0x426197;}[_0xe890('0x2a')](_0x26c034){const _0x2e7350=_0x26c034[_0xe890('0x56')](':');return{'group':_0x2e7350[0x0],'type':_0x2e7350[0x1],'subType':_0x2e7350[_0xe890('0xfe')]>=0x5?_0x2e7350[0x2]:null,'id':_0x2e7350['length']<0x5?_0x2e7350[0x2]:_0x2e7350[0x3],'authorId':_0x2e7350[_0xe890('0xfe')]<0x5?_0x2e7350[0x3]:_0x2e7350[0x4],'markerCount':0x6==_0x2e7350[_0xe890('0xfe')]?_0x2e7350[0x5]:null};}[_0xe890('0x14a')](_0x32655d,_0x42a1cb,_0x104bca){const _0x397ad8=_0x32655d[_0xe890('0x149')](),_0x32aa73=_0x397ad8[_0xe890('0x14d')],_0x56c1d5=_0x397ad8[_0xe890('0xd0')];this[_0xe890('0xfc')](_0x32655d,this[_0xe890('0xda')][_0xe890('0x115')](_0x32aa73,_0x42a1cb));const _0x44de00=_0x2b5717(),_0x2462c8=_0x32655d[_0xe890('0x7c')]['id'],_0x5f0053=_0x32655d[_0xe890('0x13d')]+(_0x32655d['subType']?':'+_0x32655d[_0xe890('0x95')]:'');this[_0xe890('0x1c')]({'id':_0x44de00,'type':_0x5f0053,'createdAt':new Date(),'authorId':_0x2462c8,'originalSuggestionId':_0x32655d['id'],'attributes':_0x32655d['attributes'],'data':_0x32655d[_0xe890('0x87')]});const _0x3091ae=this['_getAttributeKey'](_0x32655d);(_0xe890('0x12f')==_0x32655d['type']||_0x3091ae&&this[_0xe890('0x172')](_0x3091ae))&&(_0x104bca=this[_0xe890('0xda')][_0xe890('0xa0')](_0x104bca[_0xe890('0xee')])),this[_0xe890('0xb0')](_0x5f0053,_0x44de00,_0x2462c8,this[_0xe890('0xda')][_0xe890('0x115')](_0x104bca,_0x56c1d5));}[_0xe890('0xff')](_0x117a79,_0x432e4b=null){const _0x17c5f1=[],_0x5cf064=this[_0xe890('0x10d')][_0xe890('0xd8')]['get'](_0xe890('0x5'))['me'];Array[_0xe890('0x11d')](_0x117a79)||(_0x117a79=[_0x117a79]);for(const _0x104b22 of this['getSuggestions']()){if(!_0x104b22[_0xe890('0x4e')])continue;if(_0x432e4b&&_0x104b22[_0xe890('0x13d')]!=_0x432e4b)continue;let _0x4dbb7c=!0x1;for(const _0xa51670 of _0x104b22[_0xe890('0xa2')]()){for(const _0x722bd5 of _0x117a79){const _0x1cfbc9=_0x722bd5[_0xe890('0x14d')][_0xe890('0x18')](_0xa51670[_0xe890('0xd0')])||_0x722bd5['end'][_0xe890('0x18')](_0xa51670[_0xe890('0x14d')]);if(_0x1cfbc9||_0x722bd5[_0xe890('0x98')](_0xa51670)){const _0x51e761=_0x722bd5['containsRange'](_0xa51670)&&xt(this[_0xe890('0xda')]['schema'],_0xa51670[_0xe890('0x14d')],_0x722bd5),_0x5903e7=_0xa51670['containsRange'](_0x722bd5)&&xt(this[_0xe890('0xda')]['schema'],_0x722bd5[_0xe890('0x14d')],_0xa51670);_0x17c5f1[_0xe890('0xef')]({'suggestion':_0x104b22,'meta':{'isOwn':_0x5cf064==_0x104b22[_0xe890('0xe9')],'isNextTo':_0x1cfbc9,'isInsideObject':_0x51e761,'containsRangeInObject':_0x5903e7}}),_0x4dbb7c=!0x0;break;}}if(_0x4dbb7c)break;}}return _0x17c5f1;}['_addSuggestionMarker'](_0x1ff2c6,_0x2657a1,_0x462482,_0x1f0187,_0x3084d7){this[_0xe890('0xda')][_0xe890('0xc7')](_0x39c09d=>{let _0x573749=_0xe890('0x20')+_0x1ff2c6+':'+_0x2657a1+':'+_0x462482;_0x3084d7&&(_0x573749=_0x573749+':'+_0x3084d7),_0x39c09d[_0xe890('0x0')](_0x573749,{'range':_0x1f0187,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x630229){const _0xc3d15c=_0x630229[_0xe890('0xf5')],_0x153b84=_0x630229[_0xe890('0x33')];_0x630229[_0xe890('0xf5')]=null,_0x630229[_0xe890('0x33')]=null,null!=_0xc3d15c&&_0xc3d15c['next']==_0x630229&&(_0xc3d15c[_0xe890('0x33')]=_0x153b84),null!=_0x153b84&&_0x153b84[_0xe890('0xf5')]==_0x630229&&(_0x153b84['previous']=_0xc3d15c),'ready'==this[_0xe890('0x34')][_0xe890('0x168')](_0x630229)&&(this[_0xe890('0x34')][_0xe890('0x64')](_0x630229,_0xe890('0x8a')),this[_0xe890('0x85')](_0xe890('0x8c'),_0x630229,_0xc3d15c,_0x153b84));}[_0xe890('0x1c')](_0x558226){const _0x483201=_0x558226['id'],_0xb17113=this['addSuggestionData'](_0x558226);if(this[_0xe890('0x53')]&&this[_0xe890('0x53')][_0xe890('0x15e')]){const _0x1802d1=this[_0xe890('0x10d')][_0xe890('0xd8')][_0xe890('0x168')](_0xe890('0x1b')),_0x65e4f8=_0xb17113[_0xe890('0x14b')],_0x4d66c2=_0xb17113[_0xe890('0x95')]?_0xb17113['type']+':'+_0xb17113[_0xe890('0x95')]:_0xb17113[_0xe890('0x13d')],_0x8658f9=this[_0xe890('0x10d')][_0xe890('0xe')],_0xbdc3ce=_0x1802d1[_0xe890('0x16c')](_0x4f156c(_0x8658f9,_0xe890('0x102'))),_0x1e931b={'id':_0x483201,'type':_0x4d66c2,'hasComments':_0x65e4f8,'data':_0x558226[_0xe890('0x87')]||null,'originalSuggestionId':_0x558226[_0xe890('0x127')]||null,'attributes':_0xb17113[_0xe890('0x5b')]};this['_adapter']['addSuggestion'](_0x1e931b)['then'](_0x26b5f6=>{_0xb17113[_0xe890('0x14')]=!0x0,_0x1802d1[_0xe890('0x159')](_0xbdc3ce),_0x26b5f6&&_0x26b5f6[_0xe890('0x36')]&&(this[_0xe890('0x63')][_0xe890('0x168')](_0x483201)[_0xe890('0x36')]=_0x26b5f6['createdAt']);})[_0xe890('0x91')](_0x32cdb8=>{throw _0x574527(_0xe890('0xba')),this['editor'][_0xe890('0x7e')][_0xe890('0xa9')]({'isUndoable':!0x1},()=>{_0xb17113[_0xe890('0x39')]();}),_0xb17113[_0xe890('0x30')](),this[_0xe890('0x63')][_0xe890('0x99')](_0xb17113['id']),this[_0xe890('0x34')]['delete'](_0xb17113),_0x32cdb8;});}return _0xb17113;}[_0xe890('0x172')](_0x1b4419){return this['_blockAttributeKeys'][_0xe890('0x44')](_0x1b4419);}[_0xe890('0xe4')](_0x49a27c,_0xed5ae5){const _0x1a3e55=this[_0xe890('0x10d')][_0xe890('0xd8')][_0xe890('0x168')]('PendingActions'),_0x36bf7e=this[_0xe890('0x117')](_0x49a27c);if(this[_0xe890('0x53')]&&this['_adapter']['updateSuggestion']){if(_0x36bf7e[_0xe890('0x14')]){const _0x52ecf8=_0x1a3e55[_0xe890('0x16c')](_0x4f156c(this[_0xe890('0x10d')][_0xe890('0xe')],_0xe890('0x102')));this['_adapter']['updateSuggestion'](_0x49a27c,_0xed5ae5)[_0xe890('0x176')](()=>{_0x1a3e55[_0xe890('0x159')](_0x52ecf8);});}else _0x36bf7e['on'](_0xe890('0x74'),()=>{this[_0xe890('0xe4')](_0x49a27c,_0xed5ae5);});}}[_0xe890('0x5f')](_0x1edae2){if(!this[_0xe890('0x53')]||!this['_adapter'][_0xe890('0x117')])throw new _0xbc78f4('track-changes-adapter-missing-getsuggestion',this);return this[_0xe890('0x53')][_0xe890('0x117')](_0x1edae2);}[_0xe890('0x6d')](_0x869a13){const {id:_0x11334b,type:_0x23964f,subType:_0x30cbe4,authorId:_0xa8a55b}=this[_0xe890('0x2a')](_0x869a13),_0x4596f7=this[_0xe890('0x63')]['get'](_0x11334b)||this[_0xe890('0x108')](_0x23964f,_0x30cbe4,_0x11334b,_0xa8a55b,{});switch(this[_0xe890('0x3d')](_0x4596f7,_0x23964f,_0x30cbe4,_0xa8a55b),this[_0xe890('0x34')]['get'](_0x4596f7)){case _0xe890('0xdf'):this[_0xe890('0x5f')](_0x11334b)['then'](_0x588fa5=>{let _0x59e78e=Promise['resolve']();_0x588fa5[_0xe890('0x14b')]&&(_0x59e78e=this[_0xe890('0x77')][_0xe890('0x14e')]({'channelId':this[_0xe890('0x10d')][_0xe890('0x79')]['get']('collaboration.channelId'),'threadId':_0x11334b})),_0x59e78e[_0xe890('0x176')](()=>{this[_0xe890('0x154')](_0x588fa5)[_0xe890('0x14')]=!0x0;});}),this['_suggestionState'][_0xe890('0x64')](_0x4596f7,_0xe890('0xd1'));break;case _0xe890('0x8a'):this[_0xe890('0xe4')](_0x11334b,{'state':_0xe890('0xb7')});case'dataReady':this[_0xe890('0x34')][_0xe890('0x64')](_0x4596f7,_0xe890('0x134')),this[_0xe890('0x85')](_0xe890('0x128'),_0x4596f7);break;case _0xe890('0x134'):this[_0xe890('0x85')]('suggestionChanged',_0x4596f7);}return _0x4596f7['addMarkerName'](_0x869a13),_0x4596f7;}[_0xe890('0xd2')](_0x5e2160){const _0x25af36=Array[_0xe890('0x153')](_0x5e2160),_0x480745=_0x25af36[_0xe890('0xbb')](_0xadb057=>'attribute'==_0xadb057[_0xe890('0x13d')]);this['_refreshAttributeSuggestionsChain'](_0x480745);const _0x15f311=_0x25af36[_0xe890('0xbb')](_0x2a3b37=>!_0x2a3b37[_0xe890('0xc3')]&&_0xe890('0x111')!=_0x2a3b37[_0xe890('0x13d')]),_0x46ca0b=this[_0xe890('0x24')]({'skipNotAttached':!0x0})['filter'](_0x27fa33=>!_0x27fa33[_0xe890('0xc3')]&&_0xe890('0x111')!=_0x27fa33[_0xe890('0x13d')]),_0x168fff=_0x46ca0b[_0xe890('0xbb')](_0x5d6481=>!_0x5e2160[_0xe890('0x44')](_0x5d6481)),_0x104f7d=new Map(_0x46ca0b[_0xe890('0x48')](_0x402944=>[_0x402944,this[_0xe890('0x9c')][_0xe890('0x8b')](_0x402944[_0xe890('0x13d')],_0x402944[_0xe890('0x95')],_0xe890('0x2c'))])),_0x5a23ff=new Map(_0x46ca0b['map'](_0x508a78=>[_0x508a78,_0x508a78[_0xe890('0x149')]()])),_0x55ce70=new Set(),_0xce8914=new Set();for(let _0x24d1e9=0x0;_0x24d1e9<_0x15f311[_0xe890('0xfe')];_0x24d1e9++)_0x1c51cb(_0x15f311[_0x24d1e9],_0x15f311,_0x24d1e9+0x1);for(let _0x2f3e09=0x0;_0x2f3e09<_0x15f311[_0xe890('0xfe')];_0x2f3e09++)_0x1c51cb(_0x15f311[_0x2f3e09],_0x168fff,0x0);const _0x32b2d6=new Set();for(let _0x544ca8=0x0;_0x544ca8<_0x15f311[_0xe890('0xfe')];_0x544ca8++){const _0x19e720=_0x15f311[_0x544ca8];!_0xce8914[_0xe890('0x44')](_0x19e720)&&_0x19e720[_0xe890('0xf5')]&&(_0x32b2d6[_0xe890('0x16c')](_0x19e720[_0xe890('0xf5')]),_0x19e720[_0xe890('0xf5')][_0xe890('0x33')]===_0x19e720&&(_0x19e720['previous'][_0xe890('0x33')]=null),_0x19e720['previous']=null),!_0x55ce70[_0xe890('0x44')](_0x19e720)&&_0x19e720[_0xe890('0x33')]&&(_0x32b2d6[_0xe890('0x16c')](_0x19e720[_0xe890('0x33')]),_0x19e720[_0xe890('0x33')][_0xe890('0xf5')]===_0x19e720&&(_0x19e720['next']['previous']=null),_0x19e720[_0xe890('0x33')]=null);}function _0x1c51cb(_0x27e794,_0x5e59ca,_0x50b48d){for(let _0x3c0312=_0x50b48d;_0x3c0312<_0x5e59ca[_0xe890('0xfe')];_0x3c0312++){const _0x180849=_0xbdd983(_0x27e794,_0x5e59ca[_0x3c0312]);_0x180849&&(_0x180849[0x0][_0xe890('0x33')]=_0x180849[0x1],_0x180849[0x1][_0xe890('0xf5')]=_0x180849[0x0],_0x55ce70[_0xe890('0x16c')](_0x180849[0x0]),_0xce8914[_0xe890('0x16c')](_0x180849[0x1]));}}function _0xbdd983(_0x28a2cd,_0x233798){if(_0x28a2cd[_0xe890('0xe9')]['id']!==_0x233798[_0xe890('0xe9')]['id'])return null;const _0x139d12=_0x104f7d[_0xe890('0x168')](_0x28a2cd)(_0x28a2cd,_0x233798,_0x5a23ff[_0xe890('0x168')](_0x28a2cd),_0x5a23ff[_0xe890('0x168')](_0x233798));if(!_0x139d12)return null;return _0x104f7d['get'](_0x233798)(_0x28a2cd,_0x233798,_0x5a23ff[_0xe890('0x168')](_0x28a2cd),_0x5a23ff[_0xe890('0x168')](_0x233798))?_0x139d12[0x1][_0xe890('0x15f')]&&_0x139d12[0x1][_0xe890('0x15f')][_0xe890('0xfe')]?null:_0x139d12:null;}_0x32b2d6[_0xe890('0xce')]&&this[_0xe890('0xd2')](_0x32b2d6);}[_0xe890('0xe5')](_0x40091b){if(0x0==_0x40091b[_0xe890('0xfe')])return;const _0xd10deb=this[_0xe890('0x24')]({'skipNotAttached':!0x0})[_0xe890('0xbb')](_0x304971=>_0xe890('0x111')==_0x304971['type']&&_0x304971[_0xe890('0x110')]),_0x29fb18=[],_0x114867=new Map();for(const _0x180516 of _0xd10deb){const _0x409a18=_0x41b42f(_0x180516[_0xe890('0x5b')]);_0x114867[_0xe890('0x44')](_0x409a18)||(_0x114867[_0xe890('0x64')](_0x409a18,_0x29fb18['length']),_0x29fb18['push']([]));const _0x47d8c1=_0x114867['get'](_0x409a18);_0x29fb18[_0x47d8c1][_0xe890('0xef')](_0x180516);}!function(){_0x29fb18[_0xe890('0xf9')]((_0x5d954b,_0x42064d)=>{const _0x506591=_0x5d954b[0x0][_0xe890('0x36')],_0x9182ce=_0x42064d[0x0]['createdAt'];return _0x506591==_0x9182ce?_0x5d954b[0x0][_0xe890('0x5b')][_0xe890('0xc0')]<_0x42064d[0x0][_0xe890('0x5b')][_0xe890('0xc0')]?-0x1:0x1:_0x506591<_0x9182ce?-0x1:0x1;});for(const _0x5957b7 of _0x29fb18)_0x5957b7['sort']((_0x248550,_0x56b3f8)=>_0x248550['id']<_0x56b3f8['id']?-0x1:0x1);}();for(let _0x3424f6=0x0;_0x3424f6<_0x29fb18[_0xe890('0xfe')];_0x3424f6++){if(0x0==_0x29fb18[_0x3424f6][_0xe890('0xfe')])continue;const _0x1381ac=[];for(let _0x4a8c73=_0x3424f6+0x1;_0x4a8c73<_0x29fb18[_0xe890('0xfe')];_0x4a8c73++)0x0!=_0x29fb18[_0x4a8c73]['length']&&_0x1d4c50(_0x29fb18[_0x3424f6],_0x29fb18[_0x4a8c73])&&_0x1381ac[_0xe890('0xef')](_0x4a8c73);for(const _0x34d354 of _0x1381ac)_0x29fb18[_0x3424f6]=_0x29fb18[_0x3424f6][_0xe890('0x129')](_0x29fb18[_0x34d354]),_0x29fb18[_0x34d354]=[];}for(const _0x198d1c of _0x29fb18)for(let _0x3615d1=0x0;_0x3615d1<_0x198d1c['length'];_0x3615d1++)_0x198d1c[_0x3615d1][_0xe890('0x33')]=_0x198d1c[_0x3615d1+0x1]||null;for(const _0x4cfa27 of _0x29fb18)for(let _0x26a42f=0x0;_0x26a42f<_0x4cfa27[_0xe890('0xfe')];_0x26a42f++)_0x4cfa27[_0x26a42f][_0xe890('0xf5')]=_0x4cfa27[_0x26a42f-0x1]||null;function _0x1d4c50(_0x4ecbad,_0xc89961){if(_0x4ecbad[0x0][_0xe890('0x5b')][_0xe890('0xc0')]!==_0xc89961[0x0]['attributes']['groupId']&&_0x4ecbad[0x0][_0xe890('0xe9')]!==_0xc89961[0x0]['author'])return!0x1;if(!function(_0x3f3c88,_0x257568){if(!_0x3f3c88[_0xe890('0x14b')]&&!_0x257568[_0xe890('0x14b')])return!0x0;if(_0x3f3c88[_0xe890('0x14b')]&&_0x257568['hasComments'])return!0x1;if(_0x3f3c88[_0xe890('0x14b')]&&_0x257568[_0xe890('0x36')]<_0x3f3c88[_0xe890('0x15f')][_0xe890('0x13e')][_0xe890('0x168')](0x0)[_0xe890('0x36')])return!0x0;if(_0x257568[_0xe890('0x14b')]&&_0x3f3c88['createdAt']<_0x257568[_0xe890('0x15f')][_0xe890('0x13e')][_0xe890('0x168')](0x0)[_0xe890('0x36')])return!0x0;return!0x1;}(_0x4ecbad[0x0],_0xc89961[0x0]))return!0x1;const _0x566962=_0x10c2db(_0x4ecbad[0x0][_0xe890('0x5b')],'groupId'),_0x5e0fd6=_0x10c2db(_0xc89961[0x0]['attributes'],'groupId');if(!_0x2cbfc1(_0x566962,_0x5e0fd6))return!0x1;return!!_0x4ecbad[_0xe890('0xe1')](_0x1fea72=>_0xc89961[_0xe890('0xa4')](_0x3792dd=>_0x1fea72['getFirstRange']()[_0xe890('0x18')](_0x3792dd['getFirstRange']())))&&_0xc89961[_0xe890('0xe1')](_0x52f3b2=>_0x4ecbad[_0xe890('0xa4')](_0x51f6fa=>_0x52f3b2['getFirstRange']()[_0xe890('0x18')](_0x51f6fa[_0xe890('0x149')]())));}}[_0xe890('0xa1')](_0x72400a){const _0x3a3046=Array[_0xe890('0x153')](_0x72400a),_0x32184c=this[_0xe890('0x24')]({'skipNotAttached':!0x0}),_0x2a14c3=_0x32184c[_0xe890('0xbb')](_0x266e91=>!_0x72400a[_0xe890('0x44')](_0x266e91)),_0x56cdbb=new Map(_0x3a3046[_0xe890('0x48')](_0x20d061=>[_0x20d061,this['_suggestionFactory'][_0xe890('0x8b')](_0x20d061[_0xe890('0x13d')],_0x20d061[_0xe890('0x95')],'join')])),_0xd204c2=new Map(_0x32184c[_0xe890('0x48')](_0x49f4f1=>[_0x49f4f1,_0x49f4f1[_0xe890('0xa2')]()]));for(let _0x3129ef=0x0;_0x3129ef<_0x3a3046['length'];_0x3129ef++){if(_0x4451e0(this,_0x3a3046[_0x3129ef],_0x3a3046,_0x3129ef+0x1))return!0x0;}for(let _0x3724a5=0x0;_0x3724a5<_0x3a3046[_0xe890('0xfe')];_0x3724a5++){if(_0x4451e0(this,_0x3a3046[_0x3724a5],_0x2a14c3,0x0))return!0x0;}return!0x1;function _0x4451e0(_0x39ad05,_0x4e343a,_0x2db963,_0x32eda3){for(let _0x47d4ff=_0x32eda3;_0x47d4ff<_0x2db963[_0xe890('0xfe')];_0x47d4ff++){const _0x31d239=_0x2db963[_0x47d4ff];if(_0x31d239[_0xe890('0x13d')]!==_0x4e343a[_0xe890('0x13d')]||_0x31d239[_0xe890('0xe9')]['id']!==_0x4e343a[_0xe890('0xe9')]['id']||_0x31d239[_0xe890('0x95')]!==_0x4e343a[_0xe890('0x95')])continue;if(!Ft(_0x4e343a,_0x31d239,[_0xe890('0xc0')]))continue;if(_0xe890('0x111')==_0x4e343a[_0xe890('0x13d')]&&_0x4e343a[_0xe890('0x87')][_0xe890('0x136')]!=_0x31d239['data'][_0xe890('0x136')])continue;if(_0xe890('0x111')==_0x4e343a['type']&&_0x39ad05['_isBlockAttribute'](_0x4e343a[_0xe890('0x87')][_0xe890('0x3')]))continue;if('formatBlock'==_0x4e343a[_0xe890('0x13d')]){const _0x1789a2=_0x39ad05['editor']['model'],_0x1476a6=_0x4e343a[_0xe890('0x152')]();if(_0x1476a6&&(_0x1789a2[_0xe890('0x13b')][_0xe890('0x105')](_0x1476a6)||_0x1789a2[_0xe890('0x13b')][_0xe890('0x2d')](_0x1476a6)))continue;}const _0x3dbc3e=_0x56cdbb[_0xe890('0x168')](_0x4e343a),_0x556f20=_0xd204c2['get'](_0x4e343a),_0x506696=_0xd204c2[_0xe890('0x168')](_0x31d239),_0x363a26=_0x4e343a['commentThread']&&_0x4e343a['commentThread'][_0xe890('0xfe')],_0x552e11=_0x31d239[_0xe890('0x15f')]&&_0x31d239[_0xe890('0x15f')][_0xe890('0xfe')];if(!_0x363a26&&_0x3dbc3e(_0x506696,_0x556f20))return _0x39ad05[_0xe890('0x104')](_0x31d239,_0x4e343a),_0xd204c2[_0xe890('0x99')](_0x4e343a),!0x0;if(!_0x552e11&&_0x3dbc3e(_0x556f20,_0x506696))return _0x39ad05[_0xe890('0x104')](_0x4e343a,_0x31d239),_0xd204c2['delete'](_0x31d239),!0x0;}return!0x1;}}[_0xe890('0x104')](_0x130fa0,_0x1df4ea){if(_0x130fa0['isMultiRange'])for(const _0x445d52 of _0x1df4ea[_0xe890('0xa2')]())_0x130fa0[_0xe890('0x76')](_0x445d52);else{const _0x241b47=_0x1df4ea[_0xe890('0x149')]()['end'];this[_0xe890('0xfc')](_0x130fa0,this[_0xe890('0xda')]['createRange'](_0x130fa0[_0xe890('0x149')]()[_0xe890('0x14d')],_0x241b47));}_0x1df4ea['removeMarkers']();}[_0xe890('0x130')](_0xd7fb26,_0x30f0b6){const _0x2c30f5=_0xd7fb26[_0xe890('0x135')]('format')||_0xd7fb26[_0xe890('0x135')](_0xe890('0x111'))?'FORMATTING':_0xd7fb26[_0xe890('0xd3')]();return _0x4f156c(this[_0xe890('0x10d')][_0xe890('0xe')],_0x30f0b6+'_'+_0x2c30f5+_0xe890('0xdc'));}[_0xe890('0x88')](){const _0xe0de20=this[_0xe890('0x10d')];_0x44a11e(this[_0xe890('0xda')],({left:_0x574608,entered:_0x3a0999})=>{const _0x2df0d5=[];for(const _0x454e0b of _0x574608){const {group:_0xf2478,type:_0x25272e}=this[_0xe890('0x2a')](_0x454e0b['name']);if('suggestion'===_0xf2478){_0x2df0d5[_0xe890('0xef')](this['_getMarkerAnnouncementText'](_0x25272e,_0xe890('0x69')));break;}}for(const _0x4fd15e of _0x3a0999){const {group:_0x338daa,type:_0x421d1a}=this['_splitMarkerName'](_0x4fd15e[_0xe890('0x19')]);if(_0xe890('0x139')===_0x338daa){_0x2df0d5[_0xe890('0xef')](this[_0xe890('0x130')](_0x421d1a,_0xe890('0xdd')));break;}}_0x2df0d5['length']&&_0xe0de20['ui'][_0xe890('0xbd')][_0xe890('0xae')](_0xe890('0x5d'),_0x2df0d5['join']('\x20'));});}[_0xe890('0xc5')](_0x553776){if(this[_0xe890('0xf')])return!0x1;const _0x81dacc=this[_0xe890('0x10d')],_0x2c150a=_0x81dacc[_0xe890('0x7e')][_0xe890('0x1d')][_0xe890('0x140')]['getChanges']();if(0x0==_0x2c150a[_0xe890('0xfe')])return!0x1;const _0x488984=[],_0x376c2e=_0x2c150a[_0xe890('0xbb')](_0x13f8f8=>_0xe890('0x111')==_0x13f8f8[_0xe890('0x13d')]),_0x21db60=_0x2c150a[_0xe890('0xbb')](_0x1f2300=>_0xe890('0x42')==_0x1f2300[_0xe890('0x13d')]&&'$text'!=_0x1f2300[_0xe890('0x19')]),_0xa00d1b=_0x2c150a['filter'](_0x1f5ff0=>_0xe890('0x159')==_0x1f5ff0['type']&&'$text'!=_0x1f5ff0[_0xe890('0x19')]);for(const _0x3b6079 of _0x376c2e)_0x488984['push']({'key':_0x3b6079['attributeKey'],'newValue':_0x3b6079[_0xe890('0x6f')],'oldValue':_0x3b6079['attributeOldValue'],'range':Ut(_0x3b6079[_0xe890('0xa')],_0x81dacc['model'])});for(const _0x186ce3 of _0x21db60){const _0x4e6fb4=_0xa00d1b['find'](_0x4ab85a=>_0x4ab85a[_0xe890('0x4a')][_0xe890('0x18')](_0x186ce3['position']));_0x4e6fb4&&_0x488984[_0xe890('0xef')]({'key':_0xe890('0x3f'),'newValue':_0x186ce3[_0xe890('0x19')],'oldValue':_0x4e6fb4['name'],'range':_0x81dacc['model'][_0xe890('0x160')](_0x186ce3['position']['nodeAfter'])});}return 0x0!=_0x488984[_0xe890('0xfe')]&&this[_0xe890('0xe0')](_0x553776,_0x488984);}[_0xe890('0x89')](_0x4edf8d){let _0x180276=!0x1;const _0x285998=this[_0xe890('0x10d')]['model']['document'][_0xe890('0x140')]['getChangedMarkers']()[_0xe890('0xbb')](_0x4d3762=>_0x4d3762[_0xe890('0x87')][_0xe890('0x166')]&&_0x4d3762['name']['startsWith']('suggestion:attribute:'));for(const _0x5c4975 of _0x285998){const {subType:_0x4ed6b2,id:_0x2bb8ff}=this[_0xe890('0x2a')](_0x5c4975[_0xe890('0x19')]),_0x309b3f=_0x4ed6b2[_0xe890('0x56')]('|')[0x0];for(const _0x589d1f of this[_0xe890('0x24')]({'skipNotAttached':!0x0}))_0x589d1f['id']!=_0x2bb8ff&&_0xe890('0x111')==_0x589d1f[_0xe890('0x13d')]&&_0x589d1f['data']&&_0x589d1f[_0xe890('0x87')]['key']==_0x309b3f&&_0x589d1f[_0xe890('0x149')]()[_0xe890('0x137')](_0x5c4975[_0xe890('0x87')][_0xe890('0x166')])&&(this[_0xe890('0xd6')](_0x589d1f,_0x5c4975['data']['newRange'],_0x4edf8d),_0x180276=!0x0);}return _0x180276;}[_0xe890('0xcc')](_0x2bf239){this[_0xe890('0x10d')],(this[_0xe890('0xf')]=!0x0,_0x2bf239());}[_0xe890('0x150')](_0x430e31){const _0x12613a=this[_0xe890('0x172')](_0x430e31),_0x502c8c=this[_0xe890('0xf8')][_0xe890('0x44')](_0x430e31);return _0x12613a||_0x502c8c;}[_0xe890('0xe0')](_0x37bd40,_0x54c223){if(0x0==_0x54c223[_0xe890('0xfe')])return!0x1;let _0x5b504d=!0x1;for(const _0x5972ee of _0x54c223){const _0x34ab06=this['_findSuggestions'](_0x5972ee[_0xe890('0xa')],_0xe890('0x111'))[_0xe890('0xbb')](_0x28f2ac=>!_0x28f2ac[_0xe890('0x2b')][_0xe890('0x162')])[_0xe890('0x48')](_0x1f2f94=>_0x1f2f94[_0xe890('0x139')]),_0x112277=_0x41b42f({'newValue':_0x5972ee[_0xe890('0xfa')]});_0x34ab06['filter'](_0x4e53b2=>{const [_0x599eda,_0x1f45db]=_0x4e53b2['subType']['split']('|');return _0x599eda==_0x5972ee[_0xe890('0x3')]&&_0x1f45db!=_0x112277;})['forEach'](_0x547472=>{this[_0xe890('0xd6')](_0x547472,_0x5972ee[_0xe890('0xa')],_0x37bd40),_0x5b504d=!0x0;});}return _0x5b504d;}['_reduceSuggestionAttributeRange'](_0x57dcea,_0x5ea51e,_0x26adda){const _0x1a346f=_0x57dcea[_0xe890('0x149')]()[_0xe890('0x3b')](_0x5ea51e);0x0!==_0x1a346f['length']?0x1!==_0x1a346f[_0xe890('0xfe')]?this[_0xe890('0x14a')](_0x57dcea,_0x5ea51e[_0xe890('0x14d')],_0x5ea51e['end']):this[_0xe890('0xfc')](_0x57dcea,_0x1a346f[0x0]):_0x26adda[_0xe890('0x8e')](_0x57dcea['getFirstMarker']());}}class Bt{constructor(_0x339dab){this['_editor']=_0x339dab,this[_0xe890('0xda')]=_0x339dab['model'],this[_0xe890('0x8d')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0xe890('0xdb')]();}[_0xe890('0x96')](_0x424acc,_0xc07145,_0x3ef760,_0x6ac988,_0xd9d99b,_0x320596){return new _0x12f222(this[_0xe890('0xda')],{'type':_0x424acc,'subType':_0xc07145,'id':_0x3ef760,'author':_0x6ac988,'creator':_0x6ac988,'attributes':_0xd9d99b,'onAttributesChange':_0x320596,'onAccept':(..._0x5803f7)=>this[_0xe890('0x8b')](_0x424acc,_0xc07145,_0xe890('0x9'))(..._0x5803f7),'onDiscard':(..._0x1825a3)=>this[_0xe890('0x8b')](_0x424acc,_0xc07145,_0xe890('0x39'))(..._0x1825a3)});}[_0xe890('0xab')](_0x229008,_0x215448,_0x4b83e2,_0x4d2318){const _0x342de4=_0x229008+':'+_0x215448+':'+_0x4b83e2;this[_0xe890('0x8d')][_0xe890('0x64')](_0x342de4,_0x4d2318);}['getSuggestionCallback'](_0x95b3bd,_0x305200,_0x40f466){const _0x447c48=_0x95b3bd+':'+_0x305200+':'+_0x40f466;return this[_0xe890('0x8d')][_0xe890('0x168')](_0x447c48)||this[_0xe890('0xf1')][_0xe890('0x168')](_0x95b3bd+':'+_0x40f466);}['_registerDefaultCallbacks'](){const _0x371180=()=>!0x1,_0x269146=_0x31a8b6=>{_0x31a8b6[_0xe890('0xf9')]((_0x2d6d1c,_0x2c2ce7)=>_0x2d6d1c[_0xe890('0x14d')]['isBefore'](_0x2c2ce7[_0xe890('0x14d')])?0x1:-0x1),this[_0xe890('0xda')][_0xe890('0xc7')](_0x123563=>{for(const _0x313394 of _0x31a8b6){let _0x2db5aa;_0x2db5aa=_0x313394[_0xe890('0xd0')][_0xe890('0x9f')]&&_0x313394[_0xe890('0xd0')][_0xe890('0xee')]==_0x313394['start'][_0xe890('0x10f')]?_0x123563['createSelection'](_0x313394[_0xe890('0x14d')]['nodeAfter'],'on'):_0x123563[_0xe890('0x28')](_0x313394),this[_0xe890('0xda')]['deleteContent'](_0x2db5aa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3c7d89=(_0x3e8268,_0x5f24e1)=>{_0x5f24e1&&this[_0xe890('0xda')]['change'](_0x1f594b=>{const {commandName:_0x3fe2be,commandParams:_0x142c0f=[]}=_0x5f24e1,_0x2de371=_0x3e8268[_0xe890('0x48')](_0x2bda44=>(Rt(_0x2bda44)&&(_0x2bda44=this['_model'][_0xe890('0x115')](_0x2bda44['end'])),_0x2bda44))[_0xe890('0xbb')](_0x1c71da=>_0xe890('0x57')!==_0x1c71da[_0xe890('0x3e')][_0xe890('0x156')]);if(_0x2de371[_0xe890('0xfe')]<0x1)return;const _0x1ec691=Array[_0xe890('0x153')](this[_0xe890('0xda')]['document'][_0xe890('0x10b')]['getRanges']())[_0xe890('0x48')](_0x2f5223=>_0x18b498['fromRange'](_0x2f5223));_0x1f594b[_0xe890('0x164')](_0x2de371);for(const _0x1ab066 of this[_0xe890('0xf7')][_0xe890('0x133')][_0xe890('0x133')]())_0x1ab066[_0xe890('0x6b')]();_0x142c0f[_0xe890('0xef')]({'forceDefaultExecution':!0x0}),this['_editor'][_0xe890('0x16a')](_0x3fe2be,..._0x142c0f);const _0x297fe0=_0x1ec691[_0xe890('0xbb')](_0x1da6ed=>_0xe890('0x57')!=_0x1da6ed[_0xe890('0x3e')][_0xe890('0x156')]);_0x297fe0['length']>0x0&&_0x1f594b[_0xe890('0x164')](_0x297fe0);for(const _0x66885b of _0x1ec691)_0x66885b[_0xe890('0x143')]();});},_0x1956b3=(_0x396042,_0x285d38)=>0x1==_0x396042['length']&&0x1==_0x285d38[_0xe890('0xfe')]&&_0x396042[0x0][_0xe890('0xd0')][_0xe890('0x18')](_0x285d38[0x0][_0xe890('0x14d')]),_0x1faf2b=(_0x235299,_0x1dcebf,_0x120bc3,_0x33c889)=>Gt(_0x235299,_0x1dcebf,_0x120bc3,_0x33c889,this[_0xe890('0xda')])?[_0x235299,_0x1dcebf]:Gt(_0x1dcebf,_0x235299,_0x33c889,_0x120bc3,this[_0xe890('0xda')])?[_0x1dcebf,_0x235299]:null;this[_0xe890('0xf1')][_0xe890('0x64')](_0xe890('0x9a'),_0x371180),this[_0xe890('0xf1')][_0xe890('0x64')]('insertion:discard',_0x269146),this['_defaultCallbacks'][_0xe890('0x64')](_0xe890('0x158'),_0x1956b3),this['_defaultCallbacks'][_0xe890('0x64')](_0xe890('0xa5'),_0x1faf2b),this[_0xe890('0xf1')]['set']('deletion:accept',_0x269146),this['_defaultCallbacks']['set'](_0xe890('0x52'),_0x371180),this['_defaultCallbacks'][_0xe890('0x64')](_0xe890('0x3a'),_0x1956b3),this['_defaultCallbacks'][_0xe890('0x64')](_0xe890('0x73'),_0x1faf2b),this[_0xe890('0xf1')]['set'](_0xe890('0xfd'),_0x3c7d89),this[_0xe890('0xf1')][_0xe890('0x64')]('formatInline:discard',_0x371180),this[_0xe890('0xf1')][_0xe890('0x64')](_0xe890('0x7d'),_0x1956b3),this[_0xe890('0xf1')][_0xe890('0x64')](_0xe890('0x7'),_0x371180),this[_0xe890('0xf1')][_0xe890('0x64')](_0xe890('0x157'),_0x3c7d89),this[_0xe890('0xf1')]['set'](_0xe890('0x62'),_0x371180),this['_defaultCallbacks'][_0xe890('0x64')](_0xe890('0x50'),_0x1956b3),this['_defaultCallbacks'][_0xe890('0x64')](_0xe890('0x113'),_0x371180),this['_defaultCallbacks'][_0xe890('0x64')](_0xe890('0x114'),_0x371180),this[_0xe890('0xf1')]['set'](_0xe890('0x116'),(_0x2bc004,_0xe77051)=>{if(!_0xe77051)return;const _0x201b8d=this['_editor'][_0xe890('0xd8')][_0xe890('0x168')](p);this[_0xe890('0xda')][_0xe890('0xc7')](_0x439ad7=>{if('$elementName'==_0xe77051['key'])for(const _0x130f46 of _0x2bc004){const _0x5295f0=_0x130f46[_0xe890('0x14d')][_0xe890('0x10f')],_0x32e8dd=_0xe77051[_0xe890('0x136')];_0x439ad7[_0xe890('0x10c')](_0x5295f0,_0x32e8dd);}else{if(_0x201b8d['_isBlockAttribute'](_0xe77051['key']))for(const _0x296520 of _0x2bc004)void 0x0!==_0xe77051['oldValue']?_0x439ad7[_0xe890('0xc8')](_0xe77051[_0xe890('0x3')],_0xe77051['oldValue'],_0x296520[_0xe890('0x14d')][_0xe890('0x10f')]):_0x439ad7[_0xe890('0xc1')](_0xe77051[_0xe890('0x3')],_0x296520['start']['nodeAfter']);else for(const _0x5eadd7 of _0x2bc004)_0xe77051['oldValue']?_0x439ad7['setAttribute'](_0xe77051[_0xe890('0x3')],_0xe77051['oldValue'],_0x5eadd7):_0x439ad7[_0xe890('0xc1')](_0xe77051['key'],_0x5eadd7);}});}),this[_0xe890('0xf1')][_0xe890('0x64')](_0xe890('0x122'),_0x1956b3);}}function xt(_0x1546e6,_0x3aa08a,_0x3b2b95){for(const _0x2c1175 of _0x3aa08a[_0xe890('0xee')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c1175[_0xe890('0x3e')]==_0x2c1175)return!0x1;if(!_0x3b2b95[_0xe890('0x90')](_0x2c1175))return!0x1;if(_0x1546e6[_0xe890('0x105')](_0x2c1175)||_0x1546e6[_0xe890('0x2d')](_0x2c1175))return!0x0;}return!0x1;}function Rt(_0x35d5e8){return _0x35d5e8[_0xe890('0xd0')][_0xe890('0xee')]==_0x35d5e8['start'][_0xe890('0x10f')]&&_0x35d5e8[_0xe890('0xd0')]['isAtStart'];}function Tt(_0x6f69e1,_0x462d3e,_0x5258ff,_0x5add4e){const _0x20cb47=_0x3f4cc9=>!_0x3f4cc9['item']['is'](_0xe890('0x11'))&&!_0x5add4e[_0xe890('0x105')](_0x3f4cc9[_0xe890('0x11e')]),_0x1ed0fb=_0x6f69e1['start'][_0xe890('0x3c')](_0x20cb47),_0x465d07=_0x6f69e1[_0xe890('0xd0')]['getLastMatchingPosition'](_0x20cb47,{'direction':'backward'});return(!_0x6f69e1[_0xe890('0x14d')][_0xe890('0x18')](_0x1ed0fb)||!_0x6f69e1[_0xe890('0xd0')][_0xe890('0x18')](_0x465d07))&&(_0x1ed0fb[_0xe890('0xec')](_0x465d07)?_0x5258ff[_0xe890('0x2f')](_0x462d3e,{'range':_0x5258ff[_0xe890('0x115')](_0x1ed0fb,_0x465d07)}):_0x5258ff[_0xe890('0x8e')](_0x462d3e),!0x0);}function Et(_0x8cf46f){return _0x41b42f(_0x8cf46f);}function Vt(_0x148cdb){const _0x6817f3=_0x148cdb['start']['nodeAfter'];return _0x6817f3&&_0x6817f3['is'](_0xe890('0x125'));}function Ut(_0x120286,_0x1af9a8){return null==_0x120286[_0xe890('0xd0')][_0xe890('0x101')]&&_0x120286[_0xe890('0xd0')]['parent']==_0x120286[_0xe890('0x14d')]['nodeAfter']?Ot(_0x120286[_0xe890('0x14d')][_0xe890('0x10f')],_0x1af9a8):_0x120286;}function Ot(_0x3437a4,_0x474efc){const _0x8335ad=_0x474efc[_0xe890('0x13b')][_0xe890('0x105')](_0x3437a4)||_0x474efc[_0xe890('0x13b')][_0xe890('0x71')](_0x3437a4);return _0x474efc['createRange'](_0x474efc['createPositionAt'](_0x3437a4,'before'),_0x8335ad?_0x474efc[_0xe890('0xb1')](_0x3437a4):_0x474efc[_0xe890('0x81')](_0x3437a4,_0xe890('0xd0')));}function Gt(_0x1386e4,_0x189f47,_0x77d8d0,_0x54124e,_0xb71e6a){if(!Ft(_0x1386e4,_0x189f47))return!0x1;if(_0x77d8d0['end'][_0xe890('0x18')](_0x54124e[_0xe890('0x14d')]))return!0x0;if(_0x1386e4[_0xe890('0x13d')]!=_0x189f47[_0xe890('0x13d')])return!0x1;if(!_0x77d8d0[_0xe890('0xd0')]['isTouching'](_0x54124e['start']))return!0x1;const _0x9ad754=_0xb71e6a['createRange'](_0x77d8d0[_0xe890('0xd0')],_0x54124e['start'])['getWalker']();for(const _0x108a8a of _0x9ad754)if([_0xe890('0xaf'),'elementEnd']['includes'](_0x108a8a[_0xe890('0x13d')])&&_0xb71e6a[_0xe890('0x13b')]['isLimit'](_0x108a8a['item']))return!0x1;return!0x0;}function Ft(_0x1635c5,_0x57cc96,_0x2f076b=[]){return!(!_0x1635c5[_0xe890('0x110')]||!_0x57cc96[_0xe890('0x110')])&&_0x2cbfc1(_0x10c2db(_0x1635c5['attributes'],_0x2f076b),_0x10c2db(_0x57cc96[_0xe890('0x5b')],_0x2f076b));}function Pt(_0x1415a1,_0x1c6bb7){const _0x304ad0=Lt(_0x1415a1[_0xe890('0x5b')]),_0x439f2c=Lt(_0x1c6bb7);if(!_0x1415a1['_isDataLoaded'])return!0x1;for(const _0x3708af of Object[_0xe890('0xac')](_0x439f2c))if(!_0x2cbfc1(_0x304ad0[_0x3708af],_0x439f2c[_0x3708af]))return!0x1;return!0x0;}function Lt(_0x27b428){const _0x247883=Object[_0xe890('0xde')]({},_0x27b428);return delete _0x247883[_0xe890('0x1e')],delete _0x247883['tablePasteChainId'],_0x247883;}
|
|
23
|
+
const _0x5817=['createRange','ck-suggestion-marker-','_inlineAttributeKeys','ck-suggestion-marker-formatBlock','markerToData','_joinWithAdjacentSuggestions','change','attributeKey','CommentsRepository','createPositionAt','markBlockFormat','getShiftedBy','deletion','isMultiRange','removeAttribute','addMarker:suggestion:formatBlock','editing','oldValue','multipleBlocks','getFirstRange','_descriptionFactory','markAttributeChange','backward','reconvertMarker','toViewElement','listenTo','insertion:chain','rethrowUnexpectedError','$text','_registerDefaultCallbacks','insert','getFirstMarker','buildSuggestion','_suggestionState','authorName','_getExternalAuthor','get','editor','catch','track-changes-adapter-missing-getsuggestion','has','$marker','_isForcedDefaultExecutionBlock','addMarkerName','external:','hasComments','_isBlockAttribute','howMany','createPositionBefore','_customCallbacks','before','unbind','formatInline:','isOwn','start','addSuggestionData','startsWith','next','schema','adapter','_defaultCallbacks','getChangedMarkers','_reduceExistingSuggestions','_createSuggestion','oldRange','fromCharCode','error-saving-suggestion-data-suggestion-discarded','discardAllSuggestions','addMarker','ENTER','high','enableCommand','attribute:join','resolve','addCommentThread','lowest','PENDING_ACTION_SUGGESTION','never','_registerInlineAttribute','_rangeIsInLocalUserInsertion','_blockAttributeKeys','_registerBlockAttribute','addSuggestion','plugins','unbindElementFromMarkerName','accepted','removed','rootName','hasSuggestion','previous','_checkSuggestionCorrectness','groupId','add','track-changes-suggestion-not-found','length','suggestionLoaded','markDeletion','ariaLiveAnnouncer','getMarkers','containsRangeInObject','dataDowncast','formatBlock:','markerToHighlight','dataReady','root','createSelection','_setSuggestionRange','attributes','getWalker','always','low','_updateSuggestionData','markInsertion','markerReady','_getAttributeKey','upcast','isObject','isAtEnd','showSuggestionHighlights','addMarker:suggestion','delete','markMultiRangeBlockFormat','attributeNewValue','newRange','splice','elementToElement','createdAt','some','_enabledCommands','skipNestingCheck','pop','containsPosition','acceptAllSuggestions','tablePasteChainId','assign','data','applyOperation','forward','trackChanges','getAllAdjacentSuggestions','comments','change:_saved','trackChangesCommand','formatBlock','format','isUndo','key','removeMarkers','conversion','isLocal','_addSuggestionMarker','getIntersection','after','split','isTouching','element','isBefore','concat','getNearestSelectionRange','_getSuggestionData','addMarker:suggestion:attribute','formatInline','_refreshAttributeSuggestionsChain','getDifference','subType','deleteContent','forceDefaultExecution','data-suggestion','acceptSelectedSuggestions','multi','ck-suggestion-marker--active','getMultiRangeId','_initAriaMarkerChangeAnnouncements','then','ck-suggestion-marker','item','insertion:discard','meta','$elementName','_suggestionFactory','originalSuggestionId','activeMarkers','size','parent','config','setTo','suggestion','targetPosition','options','_recordAttributeChanges','isEqual','$graveyard','creator','insertContent','differ','marker-count','getLastMatchingPosition','$textProxy','track-changes-suggestion-data-mismatch','_removeSuggestion','_commentsRepository','values','addClass','_refreshSuggestionsChain','getItems','_saved','enqueueChange','from','getAncestors','setAttribute','formatBlock:discard','notReady','author','_processAttributeChanges','selection','@external','map','group','_model','consume','deletion:join','containerElement','track-changes-user-not-found','mapper','position','value','every','discard','filter','_editor','_suggestions','default','enableReadOnlyMode','removeMarker','batch','type','locale','_adapter','_enableDefaultAttributesIntegration','isBlock','chain','registerPostFixer','getCustomProperty','getSuggestion','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','removeClass','updateMarker','nodeAfter','acceptSuggestion','execute','stop','_SUGGESTION_ANNOUNCEMENT','Users','isInContent','sort','attribute:discard','_processAttributeSuggestions','substr','suggestionChanged','createElement','createRangeIn','isNextTo','getChanges','deletion:chain','formatInline:chain','set','includes','isCollapsed','_isDataLoaded','isArray','_getMarkerAnnouncementText','markers','_trackFormatChanges','_isRegisteredAttribute','normal','authoredAt','unshift','fetchCommentThread','addComment','requires','setSelection','range','markerName','removeComment','discardSelectedSuggestions','getAttribute','_addThreadToSuggestion','define','return','updateSuggestion','trackChanges.trackFormatChanges','detach','_element','_mergeNestedSuggestions','accept','_breakSuggestionMarker','deletion:','fromRange','toUpperCase','_setSuggestionData','rename','newValue','getRanges','end','refresh','nodeBefore','PendingActions','suggestion:','markInlineFormat','formatGroupId','markMultiRangeDeletion','for','elementStart','keys','_reduceSuggestionAttributeRange','join','attribute:accept','getCommentThread','_findSuggestions','LEAVE','toJSON','commands','getUser','isAfter','writer','removeMarker:suggestion:attribute','_splitMarkerName','containsRange','fire','pluginName','isIntersectingWithRange','elementEnd','isExternal','push','getSuggestions','isInsideObject','discardSuggestion','attribute','isIntersecting','insertion','_recordAttributeSuggestions','formatInline:discard','getContainedElement','find','isRemovable','editingDowncast','attributeOldValue','highest','_joinSuggestions','track-changes-enable-command-twice','rejected','FORMATTING','consumable','formatBlock:join','widget','name','model','change:data','moveTargetPosition','addUser','addRange','isLimit','forEach','remove','head','commentThread','document','formatInline:join','trackChanges.mergeNestedSuggestions','isAtStart','getSuggestionCallback','ready'];(function(_0x1dd09b,_0x581771){const _0x47988e=function(_0x24cb08){while(--_0x24cb08){_0x1dd09b['push'](_0x1dd09b['shift']());}};_0x47988e(++_0x581771);}(_0x5817,0xe1));const _0x4798=function(_0x1dd09b,_0x581771){_0x1dd09b=_0x1dd09b-0x0;let _0x47988e=_0x5817[_0x1dd09b];return _0x47988e;};import{Plugin as _0x1c0917,PendingActions as _0x49f735}from'ckeditor5/src/core.js';import{LiveRange as _0x29be14}from'ckeditor5/src/engine.js';import{CKEditorError as _0x2e9c34,uid as _0x54da7a,priorities as _0xacd8ad,logWarning as _0x4ae452}from'ckeditor5/src/utils.js';import{toWidget as _0x24b1f0}from'ckeditor5/src/widget.js';import{Users as _0x260be3,hashObject as _0x32f53a,surroundingMarkersDetector as _0x58fb5a}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x48bb1e from'./commands/trackchangescommand.js';import _0x50164f from'./commands/acceptsuggestioncommand.js';import _0x4ad637 from'./commands/discardsuggestioncommand.js';import _0x44da7b from'./commands/executeonallsuggestionscommand.js';import _0xa8c88 from'./commands/executeonselectedsuggestionscommand.js';import _0x75b5b8 from'./suggestion.js';import _0x5ee768 from'./suggestiondescriptionfactory.js';import _0x484414 from'./integrations/aiassistant.js';import _0x2f3176 from'./integrations/alignment.js';import _0x485466 from'./integrations/basicstyles.js';import _0x1644a9 from'./integrations/blockquote.js';import _0x15be2c from'./integrations/casechange.js';import _0x510d52 from'./integrations/ckbox.js';import _0x2ea82c from'./integrations/codeblock.js';import _0x20558f from'./integrations/comments.js';import _0x3ca81c from'./integrations/deletecommand.js';import _0x5c548a from'./integrations/list.js';import _0x3ed128 from'./integrations/listproperties.js';import _0x37903f from'./integrations/entercommand.js';import _0x353c2b from'./integrations/findandreplace.js';import _0x5b9d7a from'./integrations/font.js';import _0xb7dec7 from'./integrations/formatpainter.js';import _0x659bf2 from'./integrations/heading.js';import _0x24ef2a from'./integrations/highlight.js';import _0x42c617 from'./integrations/horizontalline.js';import _0x2fb620 from'./integrations/htmlembed.js';import _0xd0ed00 from'./integrations/image.js';import _0x4e4794 from'./integrations/imagereplace.js';import _0x702cb9 from'./integrations/imagestyle.js';import _0x17a06d from'./integrations/importword.js';import _0x5b989a from'./integrations/indent.js';import _0x152711 from'./integrations/inputcommand.js';import _0x4a5cf9 from'./integrations/link.js';import _0x486e9f from'./integrations/legacylist.js';import _0x1ef030 from'./integrations/legacylistproperties.js';import _0x16c3d8 from'./integrations/mediaembed.js';import _0x4825ba from'./integrations/mention.js';import _0x4cfbf2 from'./integrations/pagebreak.js';import _0x52234d from'./integrations/paragraph.js';import _0x8514e5 from'./integrations/removeformat.js';import _0x563dd9 from'./integrations/restrictededitingmode.js';import _0x1ede09 from'./integrations/shiftentercommand.js';import _0x14cfa1 from'./integrations/standardeditingmode.js';import _0x5307c3 from'./integrations/style.js';import _0x28be55 from'./integrations/table.js';import _0x446295 from'./integrations/tablemergesplit.js';import _0x3273ed from'./integrations/tableheadings.js';import _0x1f929c from'./integrations/tableclipboard.js';import _0xfcccba from'./integrations/tablecolumnresize.js';import _0x3343fe from'./integrations/template.js';import _0x59f2ef from'./integrations/tableofcontents.js';import _0x18aef from'./integrations/title.js';import _0x22e176 from'./integrations/undo.js';import _0x2d9d87 from'./integrations/tablecaption.js';import _0x1b7e41 from'./integrations/tableproperties.js';import{getTranslation as _0x5379c0}from'./utils/common-translations.js';import{isEqual as _0x1c6142,omit as _0x55cd11}from'lodash-es';export const renameAttributeKey=_0x4798('0x145');export default class p extends _0x1c0917{static get[_0x4798('0x36')](){return[_0x4798('0x9b'),_0x260be3,_0x49f735,_0x484414,_0x2f3176,_0x485466,_0x1644a9,_0x510d52,_0x15be2c,_0x2ea82c,_0x20558f,_0x3ca81c,_0x37903f,_0x353c2b,_0x5b9d7a,_0xb7dec7,_0x659bf2,_0x24ef2a,_0x42c617,_0x2fb620,_0xd0ed00,_0x702cb9,_0x4e4794,_0x17a06d,_0x5b989a,_0x152711,_0x486e9f,_0x1ef030,_0x4a5cf9,_0x5c548a,_0x3ed128,_0x16c3d8,_0x4825ba,_0x4cfbf2,_0x52234d,_0x8514e5,_0x563dd9,_0x1ede09,_0x14cfa1,_0x5307c3,_0x28be55,_0x446295,_0x3273ed,_0x2d9d87,_0x1f929c,_0xfcccba,_0x59f2ef,_0x1b7e41,_0x3343fe,_0x18aef,_0x22e176];}static get[_0x4798('0x68')](){return'TrackChangesEditing';}constructor(_0x118f58){function _0x474876(_0x38d194){return _0x38d194[_0x4798('0x16b')](_0x17bbe6=>String[_0x4798('0xd4')](_0x17bbe6))[_0x4798('0x5a')]('');}super(_0x118f58),this['_recordAttributeSuggestions']=!0x1,this['set'](_0x4798('0x148'),[]),this['on']('change:activeMarkers',(_0x36cf2b,_0x698524,_0x1a397e,_0x1151f7)=>{this[_0x4798('0x16d')][_0x4798('0x99')](()=>{for(const _0x4fcb92 of[..._0x1151f7,..._0x1a397e])this[_0x4798('0x16d')][_0x4798('0x2e')][_0x4798('0xbb')](_0x4fcb92)&&_0x118f58[_0x4798('0xa3')][_0x4798('0xaa')](_0x4fcb92);});}),this[_0x4798('0xa7')]=new _0x5ee768(this[_0x4798('0xb8')][_0x4798('0x83')][_0x4798('0xcd')],this[_0x4798('0xb8')]['locale']),this[_0x4798('0xc')]=null,this[_0x4798('0x146')]=new Bt(this[_0x4798('0xb8')]),this[_0x4798('0x5')]=new Map(),this[_0x4798('0x15b')]=_0x118f58[_0x4798('0xe6')]['get'](_0x4798('0x9b')),this[_0x4798('0x113')]=new Set(),this[_0x4798('0x16d')]=this[_0x4798('0xb8')][_0x4798('0x83')],this[_0x4798('0xb4')]=new WeakMap(),this[_0x4798('0xbd')]=!0x1,this[_0x4798('0xe3')]=new Set(['$elementName']),this[_0x4798('0x95')]=new Set(),_0x118f58[_0x4798('0x14b')][_0x4798('0x3e')](_0x4798('0x41'),_0x4798('0x6')),this[_0x4798('0x2f')]=_0x118f58['config'][_0x4798('0xb7')](_0x4798('0x41')),_0x118f58['config'][_0x4798('0x3e')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x4798('0x44')]=_0x118f58[_0x4798('0x14b')][_0x4798('0xb7')](_0x4798('0x8f')),this['trackChangesCommand']=new _0x48bb1e(_0x118f58,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x474876([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x474876([0x34,0x30,0x34,0x38,0x30,0x32,0x36,0x32]);}['init'](){const _0xca38a2=this['editor'],_0x3bbb84=(_0x1be020,_0x22163d)=>{if('attribute'!=_0x1be020)return _0x4798('0x94')+_0x1be020;const _0x173cb3=_0x22163d[_0x4798('0x12c')]('|')[0x0];return this['_isBlockAttribute'](_0x173cb3)?_0x4798('0x96'):'ck-suggestion-marker-formatInline';};_0xca38a2['conversion'][_0x4798('0x56')](_0x4798('0x78'))[_0x4798('0xf9')]({'model':_0x4798('0x14d'),'view':_0x37a96e=>{const {id:_0x1afbf5,type:_0x22aad5,subType:_0x2fa41a}=this[_0x4798('0x65')](_0x37a96e[_0x4798('0x39')]),_0x50f5d1=['ck-suggestion-marker',_0x3bbb84(_0x22aad5,_0x2fa41a)];let _0x820a3f=0xbb8;return this['activeMarkers'][_0x4798('0x29')](_0x37a96e[_0x4798('0x39')])&&(_0x50f5d1['push'](_0x4798('0x13d')),_0x820a3f=0xbc2),_0x4798('0x9f')==_0x22aad5&&(_0x820a3f+=0x5),{'classes':_0x50f5d1,'attributes':{'data-suggestion':_0x1afbf5},'priority':_0x820a3f};}}),_0xca38a2[_0x4798('0x127')]['for'](_0x4798('0xf7'))[_0x4798('0xef')](_0x4d183a=>{_0x4d183a['on'](_0x4798('0x10a'),(_0x171383,_0x300f37,_0x1741af)=>{if(!_0x1741af[_0x4798('0x14f')][_0x4798('0x109')])return;const _0x3e8a05=_0x300f37['item'];if(!_0x3e8a05)return;const _0x36e37e=_0x1741af[_0x4798('0x172')][_0x4798('0xab')](_0x3e8a05);_0xca38a2[_0x4798('0x83')][_0x4798('0xcd')]['isObject'](_0x3e8a05)&&_0x36e37e&&!_0x36e37e[_0x4798('0x11')](_0x4798('0x81'))&&_0x36e37e['is'](_0x4798('0x170'))&&_0x24b1f0(_0x36e37e,_0x1741af[_0x4798('0x63')]);},{'priority':_0x4798('0xd9')});}),_0xca38a2[_0x4798('0x127')][_0x4798('0x56')]('dataDowncast')[_0x4798('0xf9')]({'model':_0x4798('0x14d'),'view':(_0x386caf,_0x76499f)=>{if(!_0x76499f['options'][_0x4798('0x109')])return null;const {type:_0x3821cf,subType:_0x3c38ad}=this[_0x4798('0x65')](_0x386caf[_0x4798('0x39')]);return{'classes':[_0x4798('0x141'),_0x3bbb84(_0x3821cf,_0x3c38ad)],'priority':0xbb8};}});const _0x2af93b=({showActiveMarkers:_0x2930ca=!0x0,isAttributeSuggestion:_0x216a63=!0x1}={})=>(_0x2070ea,_0xe09970,_0x4fef64)=>{if(!_0xe09970[_0x4798('0x142')])return;const {id:_0x43d026}=this[_0x4798('0x65')](_0xe09970[_0x4798('0x39')]);if(_0x216a63){const _0x26e2b4=this[_0x4798('0x5')][_0x4798('0xb7')](_0x43d026),_0x58344b=this[_0x4798('0x105')](_0x26e2b4);if(!this[_0x4798('0xc1')](_0x58344b))return;}if(_0xe09970[_0x4798('0x142')]['is']('selection'))return void _0x4fef64['consumable'][_0x4798('0x16e')](_0xe09970[_0x4798('0x142')],_0x2070ea[_0x4798('0x82')]);const _0x4d2aad=_0x4fef64[_0x4798('0x172')][_0x4798('0xab')](_0xe09970[_0x4798('0x142')]);if(_0xe09970[_0x4798('0x142')]['is'](_0x4798('0x12e'))&&_0xca38a2['model'][_0x4798('0xcd')][_0x4798('0xe')](_0xe09970[_0x4798('0x142')])&&!_0x4d2aad[_0x4798('0x11')]('addHighlight')){_0x4fef64['writer']['addClass']([_0x4798('0x141'),_0x4798('0x96')],_0x4d2aad),_0x4fef64['writer']['setAttribute']('data-suggestion',_0x43d026,_0x4d2aad),_0x4fef64['mapper']['bindElementToMarker'](_0x4d2aad,_0xe09970[_0x4798('0x39')]),_0x2930ca&&(this[_0x4798('0x148')][_0x4798('0x29')](_0xe09970[_0x4798('0x39')])?_0x4fef64['writer'][_0x4798('0x15d')](_0x4798('0x13d'),_0x4d2aad):_0x4fef64[_0x4798('0x63')][_0x4798('0x14')]('ck-suggestion-marker--active',_0x4d2aad));for(const _0x5dc5c5 of _0xca38a2['model'][_0x4798('0x23')](_0xe09970[_0x4798('0x142')])[_0x4798('0x15f')]())_0x4fef64[_0x4798('0x7f')][_0x4798('0x16e')](_0x5dc5c5,_0x2070ea['name']);_0x4fef64[_0x4798('0x7f')][_0x4798('0x16e')](_0xe09970[_0x4798('0x142')],_0x2070ea['name']);}};_0xca38a2[_0x4798('0x127')][_0x4798('0x56')]('dataDowncast')[_0x4798('0xef')](_0x5ef1d8=>{_0x5ef1d8['on'](_0x4798('0xa2'),(_0x4ded7f,_0x23134b,_0x29a695)=>{_0x29a695[_0x4798('0x14f')][_0x4798('0x109')]&&_0x2af93b({'showActiveMarkers':!0x1})(_0x4ded7f,_0x23134b,_0x29a695);},{'priority':_0x4798('0x7a')});}),_0xca38a2[_0x4798('0x127')][_0x4798('0x56')](_0x4798('0xf7'))['add'](_0x594b5c=>{_0x594b5c['on'](_0x4798('0x133'),(_0x54c402,_0x3709f6,_0xa95959)=>{_0xa95959[_0x4798('0x14f')][_0x4798('0x109')]&&_0x2af93b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x54c402,_0x3709f6,_0xa95959);},{'priority':_0x4798('0x7a')});}),_0xca38a2[_0x4798('0x127')]['for'](_0x4798('0xf7'))[_0x4798('0x97')]({'model':_0x4798('0x14d'),'view':(_0x2b70d7,_0x22e8d4)=>_0x22e8d4[_0x4798('0x14f')][_0x4798('0x109')]?null:{'group':'suggestion','name':_0x2b70d7[_0x4798('0x20')](0xb)}}),_0xca38a2['conversion']['for']('upcast')[_0x4798('0x110')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x492a3b,{writer:_0x1cfdd4})=>{let _0x1d107b=_0x4798('0x52')+_0x492a3b[_0x4798('0x3c')]('suggestion-type')+':'+_0x492a3b['getAttribute']('id');return _0x492a3b['getAttribute'](_0x4798('0x156'))&&(_0x1d107b+=':'+_0x492a3b[_0x4798('0x3c')](_0x4798('0x156'))),_0x1cfdd4[_0x4798('0x22')](_0x4798('0xbc'),{'data-name':_0x1d107b});}}),_0xca38a2[_0x4798('0x127')][_0x4798('0x56')](_0x4798('0x106'))['dataToMarker']({'view':'suggestion'}),_0xca38a2[_0x4798('0x127')][_0x4798('0x56')](_0x4798('0x78'))[_0x4798('0xef')](_0x421871=>{_0x421871['on'](_0x4798('0xa2'),_0x2af93b(),{'priority':_0x4798('0xd9')});}),_0xca38a2[_0x4798('0x127')][_0x4798('0x56')](_0x4798('0x78'))['add'](_0x3dee14=>{_0x3dee14['on'](_0x4798('0x133'),_0x2af93b({'isAttributeSuggestion':!0x0}),{'priority':_0x4798('0xd9')});}),_0xca38a2[_0x4798('0x127')]['for'](_0x4798('0x78'))[_0x4798('0xef')](_0x2a9b0a=>{_0x2a9b0a['on']('removeMarker:suggestion:formatBlock',(_0x4af4ea,_0x3592fb,_0x302929)=>{const _0x447dc7=_0x302929[_0x4798('0x172')]['markerNameToElements'](_0x3592fb[_0x4798('0x39')]);if(_0x447dc7)for(const _0x368048 of _0x447dc7)_0x368048[_0x4798('0x11')]('addHighlight')||(_0x302929[_0x4798('0x63')][_0x4798('0x14')]([_0x4798('0x141'),_0x4798('0x96'),'ck-suggestion-marker--active'],_0x368048),_0x302929['writer'][_0x4798('0xa1')]('data-suggestion',_0x368048),_0x302929[_0x4798('0x172')][_0x4798('0xe7')](_0x368048,_0x3592fb[_0x4798('0x39')]));},{'priority':_0x4798('0xd9')});}),_0xca38a2['conversion'][_0x4798('0x56')](_0x4798('0x78'))['add'](_0x2318c9=>{_0x2318c9['on'](_0x4798('0x64'),(_0x188011,_0x364144,_0x917499)=>{const _0x4ce6cd=_0x917499[_0x4798('0x172')]['markerNameToElements'](_0x364144[_0x4798('0x39')]);if(!_0x4ce6cd)return;const {id:_0x2eeeeb}=this['_splitMarkerName'](_0x364144['markerName']),_0x36033d=this[_0x4798('0x5')][_0x4798('0xb7')](_0x2eeeeb),_0x14be01=this['_getAttributeKey'](_0x36033d);if(this[_0x4798('0xc1')](_0x14be01))for(const _0x1c5637 of _0x4ce6cd)_0x1c5637[_0x4798('0x11')]('addHighlight')||(_0x917499[_0x4798('0x63')][_0x4798('0x14')]([_0x4798('0x141'),'ck-suggestion-marker-formatBlock',_0x4798('0x13d')],_0x1c5637),_0x917499[_0x4798('0x63')]['removeAttribute'](_0x4798('0x13a'),_0x1c5637),_0x917499['mapper'][_0x4798('0xe7')](_0x1c5637,_0x364144['markerName']));},{'priority':'high'});}),_0xca38a2['model'][_0x4798('0x8d')][_0x4798('0x10')](_0x129c6a=>{let _0x4a224e=!0x1;const _0x1639da=Array['from'](_0xca38a2[_0x4798('0x83')]['document'][_0x4798('0x155')]['getChangedMarkers']()),_0x31f29f=new Set();for(const {name:_0x2f8b22,data:_0x3c22d6}of _0x1639da){const {group:_0x2eb885,type:_0x2d0133,subType:_0x4b22ea,id:_0x5bcc88}=this[_0x4798('0x65')](_0x2f8b22);if(_0x4798('0x14d')!==_0x2eb885)continue;const _0x3f313e=this[_0x4798('0x5')][_0x4798('0xb7')](_0x5bcc88);if(null!=_0x3c22d6[_0x4798('0x10e')]){_0x4798('0x134')==_0x2d0133&&(_0x4a224e=_0x4a224e||Tt(_0x3c22d6[_0x4798('0x10e')],_0x2f8b22,_0x129c6a,_0xca38a2[_0x4798('0x83')][_0x4798('0xcd')]));const _0x12128c='attribute'==_0x2d0133&&this['_isBlockAttribute'](_0x4b22ea[_0x4798('0x12c')]('|')[0x0]);if(_0x3c22d6[_0x4798('0x10e')][_0x4798('0x2a')]||_0x4798('0x152')==_0x3c22d6['newRange'][_0x4798('0xfb')][_0x4798('0xea')]||_0x4798('0x122')==_0x2d0133&&!Vt(_0x3c22d6['newRange'])||_0x12128c&&!Vt(_0x3c22d6[_0x4798('0x10e')])||_0x4798('0x9f')==_0x2d0133&&!(!Rt(_0x4e981f=_0x3c22d6['newRange'])&&!function(_0x280c42){return _0x280c42['start']['parent']==_0x280c42[_0x4798('0x4e')][_0x4798('0x50')]&&_0x280c42[_0x4798('0xc9')][_0x4798('0x108')];}(_0x4e981f)))_0x129c6a[_0x4798('0x8')](_0x2f8b22),_0x4a224e=!0x0;else{if(!_0x3f313e||!_0x3f313e['isInContent'])continue;_0x31f29f[_0x4798('0xef')](_0x3f313e);}}}var _0x4e981f;return _0x31f29f[_0x4798('0x149')]>0x0&&(_0x4a224e=!!this[_0x4798('0x98')](_0x31f29f)||_0x4a224e),_0x4a224e;}),_0xca38a2[_0x4798('0x83')]['document']['registerPostFixer'](_0x53b9c6=>{let _0x2e61c7=!0x1;for(const _0x4627e7 of _0xca38a2[_0x4798('0x83')][_0x4798('0x8d')][_0x4798('0x155')][_0x4798('0x25')]())if(_0x4798('0xb1')==_0x4627e7['type'])for(const _0x1df85e of this[_0x4798('0x5')][_0x4798('0x15c')]()){if(_0x1df85e[_0x4798('0xa0')]||!_0x1df85e[_0x4798('0x1c')])continue;const _0x55f53c=_0x4798('0x122')==_0x1df85e[_0x4798('0xa')],_0x3a88d1=this['_getAttributeKey'](_0x1df85e),_0x27a019=_0x3a88d1&&this['_isBlockAttribute'](_0x3a88d1);if(!_0x55f53c&&!_0x27a019)continue;const _0x457620=_0x1df85e['getFirstRange']();if(_0x457620['start'][_0x4798('0x14a')]!=_0x457620[_0x4798('0x4e')][_0x4798('0x14a')]&&!_0x457620['end'][_0x4798('0x108')]){const _0x177b06=_0xca38a2[_0x4798('0x83')][_0x4798('0x9c')](_0x457620[_0x4798('0xc9')][_0x4798('0x16')],_0x4798('0x4e')),_0x58eb89=_0xca38a2[_0x4798('0x83')][_0x4798('0x93')](_0x457620[_0x4798('0xc9')],_0x177b06);_0x53b9c6['updateMarker'](_0x1df85e[_0x4798('0xb2')](),{'range':_0x58eb89}),_0x2e61c7=!0x0;}}return _0x2e61c7;}),_0xca38a2[_0x4798('0x83')][_0x4798('0x8d')][_0x4798('0x10')](_0x4fcc0a=>this[_0x4798('0x168')](_0x4fcc0a)),_0xca38a2[_0x4798('0x83')][_0x4798('0x8d')][_0x4798('0x10')](_0x3e1b33=>!_0x3e1b33[_0x4798('0x9')][_0x4798('0x128')]&&this[_0x4798('0x1f')](_0x3e1b33)),_0xca38a2[_0x4798('0x83')]['on']('_afterChanges',()=>{this[_0x4798('0x73')]=!0x1;}),_0xca38a2[_0x4798('0x83')][_0x4798('0x8d')]['on'](_0x4798('0x84'),(_0x38363b,_0x2f4a34)=>{if(!_0x2f4a34[_0x4798('0x128')]||_0x2f4a34[_0x4798('0x124')])return;if(!this[_0x4798('0x73')])return;const _0x41e433=_0xca38a2[_0x4798('0x83')][_0x4798('0x8d')][_0x4798('0x155')]['getChanges']();if(0x0==_0x41e433[_0x4798('0xf1')])return;const _0x4a6988=[],_0x36ec8f=_0x41e433['filter'](_0x4eb495=>_0x4798('0x70')==_0x4eb495[_0x4798('0xa')]),_0xb9a387=_0x41e433[_0x4798('0x3')](_0x5a1027=>_0x4798('0xb1')==_0x5a1027[_0x4798('0xa')]&&_0x4798('0xaf')!=_0x5a1027[_0x4798('0x82')]),_0xadc5ab=_0x41e433[_0x4798('0x3')](_0x1ef8e4=>_0x4798('0x8a')==_0x1ef8e4['type']&&_0x4798('0xaf')!=_0x1ef8e4['name']);for(const _0x5a5f08 of _0x36ec8f)this['_isRegisteredAttribute'](_0x5a5f08[_0x4798('0x9a')])&&_0x4a6988['push']({'key':_0x5a5f08[_0x4798('0x9a')],'newValue':_0x5a5f08['attributeNewValue'],'oldValue':_0x5a5f08[_0x4798('0x79')],'range':Ut(_0x5a5f08[_0x4798('0x38')],_0xca38a2[_0x4798('0x83')])});for(const _0x4ea89a of _0xb9a387){const _0x418471=_0xadc5ab['find'](_0x2f5257=>_0x2f5257['_element']===_0x4ea89a[_0x4798('0x43')]);if(_0x418471){const _0x1e4667=Ot(_0x4ea89a[_0x4798('0x173')][_0x4798('0x16')],_0xca38a2['model']);_0x418471[_0x4798('0x82')]!==_0x4ea89a[_0x4798('0x82')]&&_0x4a6988[_0x4798('0x6c')]({'key':'$elementName','newValue':_0x4ea89a[_0x4798('0x82')],'oldValue':_0x418471[_0x4798('0x82')],'range':_0x1e4667});for(const [_0x332cf2,_0x231c8d]of _0x418471[_0x4798('0xfe')]){if(!this[_0x4798('0x30')](_0x332cf2))continue;const _0x2f23af=_0x4ea89a[_0x4798('0xfe')][_0x4798('0xb7')](_0x332cf2);_0x231c8d!==_0x2f23af&&_0x4a6988['push']({'key':_0x332cf2,'newValue':_0x2f23af,'oldValue':_0x231c8d,'range':_0x1e4667});}for(const [_0x3f8da2,_0x473399]of _0x4ea89a['attributes'])this[_0x4798('0x30')](_0x3f8da2)&&(_0x418471['attributes'][_0x4798('0xbb')](_0x3f8da2)||_0x4a6988[_0x4798('0x6c')]({'key':_0x3f8da2,'newValue':_0x473399,'oldValue':null,'range':_0x1e4667}));}}0x0!=_0x4a6988[_0x4798('0xf1')]&&_0xca38a2[_0x4798('0x83')][_0x4798('0x161')](_0x2f4a34,_0x43686c=>{const _0x4aca2a=_0x54da7a();for(const {range:_0x1b7173,key:_0x4da2f9,oldValue:_0x4e5e8c,newValue:_0x8e9a47}of _0x4a6988)this['markAttributeChange'](_0x1b7173,_0x4da2f9,_0x4e5e8c,_0x8e9a47,{'groupId':_0x4aca2a});this[_0x4798('0xd1')](_0x43686c,_0x4a6988);});},{'priority':_0x4798('0xde')}),_0xca38a2[_0x4798('0x83')][_0x4798('0x2e')]['on']('update:suggestion',(_0xcf8dd9,_0x327411,_0x35968c)=>{if(null==_0x35968c){const {id:_0x4bbd29}=this[_0x4798('0x65')](_0x327411['name']),_0x29c9df=this[_0x4798('0x5')]['get'](_0x4bbd29);_0x29c9df&&_0x29c9df[_0x4798('0xbe')](_0x327411[_0x4798('0x82')]);}}),_0xca38a2['model'][_0x4798('0x8d')]['on'](_0x4798('0x84'),()=>{const _0x5a059b=Array[_0x4798('0x162')](_0xca38a2[_0x4798('0x83')]['document'][_0x4798('0x155')]['getChangedMarkers']())[_0x4798('0x3')](_0x256b2d=>'suggestion'===this[_0x4798('0x65')](_0x256b2d['name'])[_0x4798('0x16c')]);if(0x0===_0x5a059b[_0x4798('0xf1')])return;_0x5a059b['sort']((_0x2789f9,_0x3bebef)=>{const _0x5b50f9=_0x2789f9[_0x4798('0x11a')]['oldRange'],_0x42f88b=_0x3bebef[_0x4798('0x11a')][_0x4798('0xd3')];return null===_0x5b50f9&&null===_0x42f88b?0x0:null===_0x5b50f9&&null!==_0x42f88b?-0x1:null!==_0x5b50f9&&null===_0x42f88b?0x1:_0x5b50f9[_0x4798('0xc9')]['isBefore'](_0x42f88b['start'])?-0x1:0x1;});const _0x1a542c=new Set(),_0x35c46c=new Set();for(const {name:_0x249ac9,data:_0x4c9d0b}of _0x5a059b){const {id:_0x4f736b}=this[_0x4798('0x65')](_0x249ac9);if(null===_0x4c9d0b['oldRange']){const _0x287ccd=this['_handleNewSuggestionMarker'](_0x249ac9);_0x35c46c[_0x4798('0xef')](_0x287ccd);}else{const _0x1995f3=this[_0x4798('0x5')][_0x4798('0xb7')](_0x4f736b);null!==_0x4c9d0b[_0x4798('0x10e')]||_0x1995f3[_0x4798('0x1c')]?(_0x1a542c[_0x4798('0xef')](_0x1995f3[_0x4798('0x8b')]),_0x35c46c[_0x4798('0xef')](_0x1995f3)):this[_0x4798('0x15a')](_0x1995f3);}}_0x35c46c['size']>0x0&&this['_refreshSuggestionsChain'](_0x35c46c);for(const _0x57cabe of _0x1a542c)this['fire']('suggestionChanged',_0x57cabe);}),_0xca38a2[_0x4798('0x83')]['on'](_0x4798('0x11b'),(_0x4650f5,_0x4a90de)=>{const _0x3a433e=_0x4a90de[0x0];if(!this[_0x4798('0x5')][_0x4798('0x149')])return;if(!_0x3a433e['isDocumentOperation'])return;if(_0x3a433e[_0x4798('0x9')]['isUndo']||!_0x3a433e[_0x4798('0x9')][_0x4798('0x128')])return;let _0x26ae14,_0x2bcc48;switch(_0x3a433e['type']){case'insert':_0x26ae14=_0xca38a2[_0x4798('0x83')][_0x4798('0x9c')](_0x3a433e[_0x4798('0x173')]),_0x2bcc48=_0x26ae14[_0x4798('0x9e')](_0x3a433e['howMany']);break;case _0x4798('0x12c'):_0x26ae14=_0xca38a2[_0x4798('0x83')][_0x4798('0x9c')](_0x3a433e['splitPosition']),_0x2bcc48=_0xca38a2[_0x4798('0x83')]['createPositionAt'](_0x3a433e[_0x4798('0x85')]);break;case'move':_0x26ae14=_0xca38a2[_0x4798('0x83')][_0x4798('0x9c')](_0x3a433e[_0x4798('0x14e')]),_0x2bcc48=_0x26ae14[_0x4798('0x9e')](_0x3a433e[_0x4798('0xc2')]);break;default:return;}const _0x17fdd5=_0xca38a2['model'][_0x4798('0x93')](_0x26ae14,_0x2bcc48);_0xca38a2['model'][_0x4798('0x99')](()=>{for(const {suggestion:_0x2a86f0,meta:_0x5d0cd4}of this[_0x4798('0x5d')](_0x17fdd5)){if(_0x2a86f0[_0x4798('0xa0')])continue;if(_0x4798('0x134')==_0x2a86f0[_0x4798('0xa')])continue;const _0x4ba9a9=this['_getAttributeKey'](_0x2a86f0);if(_0x4ba9a9&&this[_0x4798('0xc1')](_0x4ba9a9)&&'split'!=_0x3a433e['type'])continue;const _0x2521cc=_0x2a86f0['data']&&_0x2a86f0[_0x4798('0x11a')][_0x4798('0xa5')];(_0x4798('0x122')!=_0x2a86f0[_0x4798('0xa')]||_0x4798('0x12c')==_0x3a433e['type']&&!_0x2521cc)&&(_0x5d0cd4['containsRangeInObject']||'insertion'==_0x2a86f0[_0x4798('0xa')]&&_0x5d0cd4[_0x4798('0xc8')]||_0x2a86f0['getFirstRange']()[_0x4798('0x66')](_0x17fdd5)&&this[_0x4798('0x46')](_0x2a86f0,_0x26ae14,_0x2bcc48));}});},{'priority':'lowest'}),_0xca38a2[_0x4798('0x83')]['on'](_0x4798('0x138'),(_0x5c1908,_0x5b050d)=>{const _0xddffb7=_0x5b050d[0x0],_0x3a7c9a=_0x5b050d[0x1];if(_0x3a7c9a&&_0x3a7c9a[_0x4798('0x139')])return;if(this[_0x4798('0xbd')])return;if(!this[_0x4798('0x121')][_0x4798('0x0')])return;if(_0xddffb7[_0x4798('0x2a')])return;const _0x554815=_0xca38a2['model'][_0x4798('0xcd')],{start:_0x5c57ff,end:_0x92da19}=_0xddffb7['getFirstRange'](),_0xacc2e1=_0x5c57ff[_0x4798('0x16')]&&_0x554815[_0x4798('0x88')](_0x5c57ff[_0x4798('0x16')])?null:_0x554815[_0x4798('0x131')](_0x5c57ff,_0x4798('0x11c')),_0x49d87f=_0x92da19[_0x4798('0x50')]&&_0x554815[_0x4798('0x88')](_0x92da19['nodeBefore'])?null:_0x554815[_0x4798('0x131')](_0x92da19,_0x4798('0xa9')),_0x4768d7=_0xca38a2[_0x4798('0x83')][_0x4798('0x93')](_0xacc2e1?_0xacc2e1['start']:_0x5c57ff,_0x49d87f?_0x49d87f[_0x4798('0x4e')]:_0x92da19);_0xca38a2[_0x4798('0x83')][_0x4798('0x99')](_0x2d36b8=>{this[_0x4798('0xf3')](_0x4768d7);const _0x2d4a88=_0xca38a2['model'][_0x4798('0xcd')][_0x4798('0x131')](_0x4768d7[_0x4798('0xc9')]);_0xddffb7['is']('documentSelection')?_0x2d36b8[_0x4798('0x37')](_0x2d4a88):_0xddffb7[_0x4798('0x14c')](_0x2d4a88);}),_0x5c1908[_0x4798('0x19')]();},{'priority':_0xacd8ad[_0x4798('0x31')]+0xa}),_0xca38a2[_0x4798('0x83')]['on'](_0x4798('0x154'),(_0x2fb758,_0x476a39)=>{const _0x1a9da6=_0x476a39[_0x476a39['length']-0x1];_0x1a9da6&&_0x1a9da6[_0x4798('0x139')]||this[_0x4798('0xbd')]||this[_0x4798('0x121')][_0x4798('0x0')]&&(_0xca38a2['model']['change'](()=>{let _0x1dcb1b=_0xca38a2[_0x4798('0x83')][_0x4798('0x154')](_0x476a39[0x0],_0x476a39[0x1],_0x476a39[0x2],{'forceDefaultExecution':!0x0});if(!_0x1dcb1b)return;_0x2fb758[_0x4798('0x3f')]=_0x1dcb1b['clone']();const _0x37e7ea=_0x1dcb1b[_0x4798('0x4e')][_0x4798('0x50')],_0x48f915=_0xca38a2[_0x4798('0x83')][_0x4798('0xcd')];_0x37e7ea&&_0x48f915[_0x4798('0xe')](_0x37e7ea)&&!_0x48f915[_0x4798('0x107')](_0x37e7ea)&&(_0x1dcb1b=_0xca38a2[_0x4798('0x83')][_0x4798('0x93')](_0x1dcb1b[_0x4798('0xc9')],_0xca38a2[_0x4798('0x83')][_0x4798('0x9c')](_0x37e7ea,_0x4798('0x4e')))),this[_0x4798('0x103')](_0x1dcb1b);}),_0x2fb758[_0x4798('0x19')]());},{'priority':_0x4798('0xd9')}),this[_0x4798('0xb8')][_0x4798('0x60')][_0x4798('0xef')](_0x4798('0x11d'),this[_0x4798('0x121')]),this[_0x4798('0xda')](_0x4798('0x11d'));const _0x324098=new _0x50164f(_0xca38a2,this['_suggestions']);_0xca38a2['commands']['add'](_0x4798('0x17'),_0x324098),this['enableCommand'](_0x4798('0x17'));const _0x5b0807=new _0x4ad637(_0xca38a2,this['_suggestions']);_0xca38a2[_0x4798('0x60')]['add'](_0x4798('0x6f'),_0x5b0807),this[_0x4798('0xda')]('discardSuggestion'),_0xca38a2[_0x4798('0x60')][_0x4798('0xef')](_0x4798('0x117'),new _0x44da7b(_0xca38a2,_0x324098,this[_0x4798('0x5')])),this['enableCommand'](_0x4798('0x117')),_0xca38a2[_0x4798('0x60')][_0x4798('0xef')](_0x4798('0xd6'),new _0x44da7b(_0xca38a2,_0x5b0807,this['_suggestions'])),this[_0x4798('0xda')]('discardAllSuggestions'),_0xca38a2[_0x4798('0x60')]['add'](_0x4798('0x13b'),new _0xa8c88(_0xca38a2,_0x324098,this[_0x4798('0x5')])),this['enableCommand'](_0x4798('0x13b')),_0xca38a2[_0x4798('0x60')][_0x4798('0xef')](_0x4798('0x3b'),new _0xa8c88(_0xca38a2,_0x5b0807,this[_0x4798('0x5')])),this[_0x4798('0xda')]('discardSelectedSuggestions');const _0x403b30=_0xca38a2[_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x9b'));this[_0x4798('0xac')](_0x403b30,_0x4798('0x35'),(_0x42476c,{threadId:_0x5bc0cc})=>{const _0x776e43=this[_0x4798('0x5')][_0x4798('0xb7')](_0x5bc0cc);_0x776e43&&_0x776e43[_0x4798('0x8c')]&&0x1===_0x776e43['commentThread'][_0x4798('0xf1')]&&this[_0x4798('0x102')](_0x5bc0cc,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x403b30,_0x4798('0x3a'),(_0xacb08d,{threadId:_0x788ad8})=>{const _0x505149=this[_0x4798('0x5')][_0x4798('0xb7')](_0x788ad8);_0x505149&&_0x505149[_0x4798('0x8c')]&&!_0x505149[_0x4798('0x8c')][_0x4798('0xf1')]&&this[_0x4798('0x102')](_0x788ad8,{'hasComments':!0x1});},{'priority':_0x4798('0x101')});}set[_0x4798('0xce')](_0x35cefa){if(this[_0x4798('0xc')])throw new _0x2e9c34('track-changes-adapter-already-set',this);this[_0x4798('0xc')]=_0x35cefa;}get[_0x4798('0xce')](){return this['_adapter'];}[_0x4798('0x6d')]({skipNotAttached:_0x37e31f=!0x1,toJSON:_0xad591e=!0x1}={}){const _0x4bd0cd=[];for(const _0x116030 of this[_0x4798('0x5')]['values']())_0x37e31f&&!_0x116030['isInContent']||_0x4bd0cd[_0x4798('0x6c')](_0x116030);return _0xad591e?_0x4bd0cd[_0x4798('0x16b')](_0x1fe3a5=>_0x1fe3a5[_0x4798('0x5f')]()):_0x4bd0cd;}[_0x4798('0x12')](_0x5e78ed){const _0x934c11=this[_0x4798('0x5')]['get'](_0x5e78ed);if(!_0x934c11)throw new _0x2e9c34(_0x4798('0xf0'),this);return _0x934c11;}[_0x4798('0xeb')](_0x3a9b89){return this[_0x4798('0x5')][_0x4798('0xbb')](_0x3a9b89);}[_0x4798('0xca')](_0x47876f){const {authorId:_0x473508,id:_0xc4efbf,attributes:_0x1c0d4e}=_0x47876f,[_0x1bf945,_0x48d901]=_0x47876f['type'][_0x4798('0x12c')](':'),_0x25dc24=this[_0x4798('0x5')][_0x4798('0xb7')](_0xc4efbf)||this[_0x4798('0xd2')](_0x1bf945,_0x48d901,_0xc4efbf,_0x473508,_0x1c0d4e);if(this[_0x4798('0x3d')](_0x25dc24),this[_0x4798('0xed')](_0x25dc24,_0x1bf945,_0x48d901||null,_0x473508),_0x25dc24['createdAt']=_0x47876f[_0x4798('0x111')],_0x25dc24[_0x4798('0x2b')]=!0x0,_0x1c0d4e&&_0x1c0d4e[_0x4798('0x16a')]){const _0x40bf37=_0x1c0d4e[_0x4798('0x16a')],_0x42a13f=this[_0x4798('0xb6')](_0x40bf37[_0x4798('0xb5')]);_0x25dc24[_0x4798('0x32')]=_0x40bf37[_0x4798('0x111')],_0x25dc24['author']=_0x42a13f,_0x25dc24[_0x4798('0x6b')]=!0x0;}else _0x25dc24[_0x4798('0x32')]=_0x47876f[_0x4798('0x111')];switch(_0x47876f['data']&&(_0x25dc24['data']=_0x47876f['data']),_0x47876f[_0x4798('0xfe')]&&(_0x25dc24['attributes']=_0x47876f[_0x4798('0xfe')]),this[_0x4798('0xc')]&&this[_0x4798('0xc')][_0x4798('0xe5')]||(_0x25dc24[_0x4798('0x160')]=!0x0),this[_0x4798('0xb4')]['get'](_0x25dc24)){case _0x4798('0x166'):this['_suggestionState'][_0x4798('0x28')](_0x25dc24,_0x4798('0xfa'));break;case _0x4798('0x104'):_0x25dc24[_0x4798('0x1c')]?(this['_joinWithAdjacentSuggestions'](new Set([_0x25dc24])),this['_refreshSuggestionsChain'](new Set([_0x25dc24])),this['_suggestionState']['set'](_0x25dc24,_0x4798('0x92')),this[_0x4798('0x67')](_0x4798('0xf2'),_0x25dc24)):this['_suggestionState'][_0x4798('0x28')](_0x25dc24,_0x4798('0xe9'));}return _0x25dc24;}[_0x4798('0x17')](_0xa82854){this['forceDefaultExecution'](()=>{this['editor']['model'][_0x4798('0x99')](()=>{for(const _0x58408e of _0xa82854[_0x4798('0x11e')]())_0x58408e[_0x4798('0x45')]();});});}['discardSuggestion'](_0xab4d51){this[_0x4798('0x139')](()=>{this[_0x4798('0xb8')]['model']['change'](()=>{for(const _0x127c79 of _0xab4d51[_0x4798('0x11e')]())_0x127c79[_0x4798('0x2')]();});});}['enableCommand'](_0xd51087,_0x9c27be){const _0x1edfbf=this[_0x4798('0xb8')][_0x4798('0x60')][_0x4798('0xb7')](_0xd51087);if(!_0x1edfbf)throw new _0x2e9c34('track-changes-command-not-found',this,{'commandName':_0xd51087});if(this[_0x4798('0x113')]['has'](_0x1edfbf))throw new _0x2e9c34(_0x4798('0x7c'),this,{'commandName':_0xd51087});this[_0x4798('0x113')][_0x4798('0xef')](_0x1edfbf),_0x9c27be&&_0x1edfbf['on']('execute',(_0x4b1a95,_0x567248)=>{this[_0x4798('0x121')][_0x4798('0x0')]&&(this['_isForcedDefaultExecutionBlock']||(_0x567248[_0x4798('0xf1')]>0x0&&_0x567248[_0x567248[_0x4798('0xf1')]-0x1]&&_0x567248[_0x567248[_0x4798('0xf1')]-0x1]['forceDefaultExecution']?_0x567248[_0x4798('0x115')]():(_0x4b1a95[_0x4798('0x3f')]=_0x9c27be((..._0x5c56f1)=>_0x1edfbf['execute'](..._0x5c56f1,{'forceDefaultExecution':!0x0}),..._0x567248),_0x4b1a95['stop']())));},{'priority':_0x4798('0xd9')});}[_0x4798('0x139')](_0x2256d9){let _0x4b6eff,_0xe46fbf;const _0x3f309d=this['_isForcedDefaultExecutionBlock'];this[_0x4798('0xbd')]=!0x0;try{_0x4b6eff=_0x2256d9();}catch(_0x267c12){_0xe46fbf=_0x267c12;}return _0x3f309d||(this[_0x4798('0xbd')]=!0x1),_0xe46fbf&&_0x2e9c34[_0x4798('0xae')](_0xe46fbf,this),_0x4b6eff;}[_0x4798('0x103')](_0x542da7,_0x242e05=null,_0x3b9660={}){if(_0x542da7[_0x4798('0x2a')])return null;const _0x1174e7=this[_0x4798('0xb8')]['plugins'][_0x4798('0xb7')](_0x4798('0x1b'))['me'];for(const {suggestion:_0x4b3ac0,meta:_0x3a3968}of this[_0x4798('0x5d')](_0x542da7,'insertion'))if(_0x3a3968[_0x4798('0xc8')]){if(!_0x3a3968[_0x4798('0x24')]){if(_0x3a3968[_0x4798('0xf6')]){if(!this[_0x4798('0x44')]||!Pt(_0x4b3ac0,_0x3b9660))continue;return _0x4b3ac0;}if(Pt(_0x4b3ac0,_0x3b9660))return _0x4b3ac0;this[_0x4798('0x46')](_0x4b3ac0,_0x542da7[_0x4798('0xc9')],_0x542da7[_0x4798('0x4e')]);break;}if(_0x242e05==_0x4b3ac0[_0x4798('0x137')]&&Pt(_0x4b3ac0,_0x3b9660)){const _0x188db5=_0x4b3ac0[_0x4798('0xa6')]();return _0x188db5[_0x4798('0xc9')][_0x4798('0x151')](_0x542da7[_0x4798('0x4e')])?this[_0x4798('0xfd')](_0x4b3ac0,this[_0x4798('0x16d')]['createRange'](_0x542da7[_0x4798('0xc9')],_0x188db5[_0x4798('0x4e')])):this[_0x4798('0xfd')](_0x4b3ac0,this[_0x4798('0x16d')][_0x4798('0x93')](_0x188db5[_0x4798('0xc9')],_0x542da7['end'])),_0x4b3ac0;}}const _0x2797c3=_0x54da7a(),_0x5d33c9=_0x1174e7['id'],_0x45fa8f=_0x242e05?'insertion:'+_0x242e05:'insertion',_0x4408ce=this[_0x4798('0x4a')]({'id':_0x2797c3,'type':_0x45fa8f,'createdAt':new Date(),'authorId':_0x5d33c9,'attributes':_0x3b9660});return this[_0x4798('0x129')](_0x45fa8f,_0x2797c3,_0x5d33c9,_0x542da7),_0x4408ce;}['markMultiRangeInsertion'](_0x8b2d55,_0x54fdff=_0x4798('0x13c'),_0x2ec7a0={}){const _0x390188=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x1b'))['me'],_0x280e17=this['_suggestionFactory']['getSuggestionCallback'](_0x4798('0x72'),_0x54fdff,_0x4798('0x5a'));for(const _0x20a12d of this[_0x4798('0x6d')]())if(_0x20a12d[_0x4798('0x167')]['id']==_0x390188['id']&&'insertion'==_0x20a12d[_0x4798('0xa')]&&_0x20a12d[_0x4798('0x137')]==_0x54fdff&&Pt(_0x20a12d,_0x2ec7a0)&&(_0x280e17(_0x20a12d[_0x4798('0x4d')](),_0x8b2d55)||_0x280e17(_0x8b2d55,_0x20a12d[_0x4798('0x4d')]()))){for(const _0x54f04d of _0x8b2d55)_0x20a12d[_0x4798('0x87')](_0x54f04d);return _0x20a12d;}for(const {suggestion:_0x449717,meta:_0x18d682}of this[_0x4798('0x5d')](_0x8b2d55,'insertion')){if(!_0x18d682[_0x4798('0xc8')])continue;if(!this[_0x4798('0x44')]&&_0x18d682['containsRangeInObject'])continue;if(!Pt(_0x449717,_0x2ec7a0))continue;let _0x73ca00=!0x0;for(const _0x2f2944 of _0x449717[_0x4798('0x4d')]())for(const _0x2f1043 of _0x8b2d55)if(!_0x2f2944[_0x4798('0x66')](_0x2f1043)){_0x73ca00=!0x1;break;}if(_0x73ca00)return _0x449717;}const _0x414214=_0x54da7a(),_0x2615fe=_0x390188['id'],_0x1a31a6='insertion:'+_0x54fdff,_0x4a05de=this[_0x4798('0x4a')]({'id':_0x414214,'type':_0x1a31a6,'createdAt':new Date(),'authorId':_0x2615fe,'attributes':_0x2ec7a0});for(const _0x4f89af of _0x8b2d55)this[_0x4798('0x129')](_0x1a31a6,_0x414214,_0x2615fe,_0x4f89af,_0x75b5b8[_0x4798('0x13e')]());return _0x4a05de;}[_0x4798('0x53')](_0x1c55d4,_0x1bf58c,_0x41dc69=null,_0x18c196={}){if(_0x41dc69=_0x41dc69||Et(_0x1bf58c),_0x1c55d4[_0x4798('0x2a')])return null;if(_0x4798('0xe0')===this[_0x4798('0x2f')]){const _0xf5750a=this['_suggestionFactory'][_0x4798('0x91')]('formatInline',_0x41dc69,_0x4798('0x45'));return this['forceDefaultExecution'](()=>_0xf5750a([_0x1c55d4],_0x1bf58c,_0x18c196)),null;}const _0xc6636a=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')]('Users')['me'],_0x4bf91a=[];if(_0x4798('0x100')!==this['_trackFormatChanges'])for(const {suggestion:_0x1e70b2,meta:_0x2284c0}of this[_0x4798('0x5d')](_0x1c55d4,_0x4798('0x72')))_0x2284c0['isOwn']&&!_0x2284c0[_0x4798('0x6e')]&&_0x4bf91a[_0x4798('0x6c')](..._0x1e70b2[_0x4798('0x4d')]());const _0x4e0b43=function(_0x463d9d,_0x2f82ed){const _0x2ae263=[];for(const _0x105989 of _0x2f82ed){const _0x4cc5b1=_0x463d9d[_0x4798('0x12a')](_0x105989);_0x4cc5b1&&_0x2ae263['push'](_0x4cc5b1);}return _0x2ae263;}(_0x1c55d4,_0x4bf91a),_0x110fce=function(_0x530a10,_0x382d2b){const _0x9d3195=[_0x530a10];for(const _0xac612b of _0x382d2b){let _0x3e90e4=0x0;for(;_0x3e90e4<_0x9d3195['length'];){const _0x5d18d7=_0x9d3195[_0x3e90e4][_0x4798('0x136')](_0xac612b);_0x9d3195[_0x4798('0x10f')](_0x3e90e4,0x1,..._0x5d18d7),_0x3e90e4+=_0x5d18d7[_0x4798('0xf1')];}}return _0x9d3195;}(_0x1c55d4,_0x4bf91a);_0x4e0b43[_0x4798('0xf1')]&&this[_0x4798('0x16d')][_0x4798('0x99')](()=>{for(const _0x39e489 of _0x4e0b43){const _0x47f7d0=this[_0x4798('0x146')][_0x4798('0x91')](_0x4798('0x134'),_0x41dc69,_0x4798('0x45'));this[_0x4798('0x139')](()=>_0x47f7d0([_0x39e489],_0x1bf58c,_0x18c196));}});for(const _0x46d46f of _0x110fce){let _0x65c81a=null,_0x19daea=_0x46d46f[_0x4798('0xc9')],_0xf58e4a=_0x46d46f[_0x4798('0x4e')];for(const {suggestion:_0xa74735,meta:_0x161ecd}of this[_0x4798('0x5d')](_0x46d46f,_0x4798('0x134'))){if(!_0x161ecd[_0x4798('0xc8')])continue;if(_0xa74735[_0x4798('0x137')]!=_0x41dc69)continue;if(!Pt(_0xa74735,_0x18c196))continue;const _0x1ac142=_0xa74735[_0x4798('0xa6')]();if(_0x1ac142['containsRange'](_0x46d46f,!0x0))return null;_0x19daea=_0x19daea[_0x4798('0x12f')](_0x1ac142['start'])?_0x19daea:_0x1ac142[_0x4798('0xc9')],_0xf58e4a=_0xf58e4a['isAfter'](_0x1ac142[_0x4798('0x4e')])?_0xf58e4a:_0x1ac142['end'],_0x65c81a?_0x1ac142[_0x4798('0xc9')][_0x4798('0x12f')](_0x65c81a[_0x4798('0xa6')]()['start'])?(_0x65c81a[_0x4798('0x126')](),_0x65c81a=_0xa74735):_0xa74735[_0x4798('0x126')]():_0x65c81a=_0xa74735;}const _0x4da844=this[_0x4798('0x16d')][_0x4798('0x93')](_0x19daea,_0xf58e4a);if(_0x65c81a)this[_0x4798('0xfd')](_0x65c81a,_0x4da844);else{const _0x4ad1ca=_0x54da7a(),_0x24b25f=_0xc6636a['id'];this[_0x4798('0x4a')]({'id':_0x4ad1ca,'type':_0x4798('0xc7')+_0x41dc69,'data':_0x1bf58c,'createdAt':new Date(),'authorId':_0x24b25f,'attributes':_0x18c196}),this[_0x4798('0x129')](_0x4798('0xc7')+_0x41dc69,_0x4ad1ca,_0x24b25f,_0x4da844);}}return null;}[_0x4798('0x9d')](_0x5de43f,_0x5c1ae3,_0x11525f=[],_0x166004=null,_0x42f01c={}){_0x5c1ae3[_0x4798('0x54')]||(_0x5c1ae3[_0x4798('0x54')]=_0x5c1ae3['commandName']),_0x5c1ae3[_0x4798('0xa5')]=_0x5de43f['is'](_0x4798('0x38')),_0x166004=_0x166004||Et(_0x5c1ae3);const _0x457fae=_0x11525f[_0x4798('0x16b')](_0x827536=>Ot(_0x827536,this[_0x4798('0x16d')])),_0x6de614=_0x5de43f['is'](_0x4798('0x38'))?_0x5de43f:Ot(_0x5de43f,this[_0x4798('0x16d')]);if('never'===this[_0x4798('0x2f')]){const _0x1a1866=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x122'),_0x166004,'accept');return this[_0x4798('0x139')](()=>_0x1a1866([_0x6de614],_0x5c1ae3,_0x42f01c)),null;}_0x457fae[_0x4798('0x6c')](_0x6de614);let _0x49e4c0=!0x0;for(const _0x32a21d of _0x457fae)if(!this[_0x4798('0xe2')](_0x32a21d)){_0x49e4c0=!0x1;break;}if(_0x49e4c0&&'always'!==this[_0x4798('0x2f')]){const _0x29c30c=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x122'),_0x166004,_0x4798('0x45'));return this[_0x4798('0x139')](()=>_0x29c30c([_0x6de614],_0x5c1ae3,_0x42f01c)),null;}let _0x1f4985=null,_0x97247f=_0x6de614[_0x4798('0xc9')],_0x5503d5=_0x6de614[_0x4798('0x4e')];for(const {suggestion:_0x2f956b,meta:_0x2bedf9}of this[_0x4798('0x5d')](_0x6de614,_0x4798('0x122'))){if(!_0x2bedf9['isOwn'])continue;if(_0x2bedf9['isNextTo']||_0x2bedf9[_0x4798('0xf6')]||_0x2bedf9[_0x4798('0x6e')])continue;if(_0x2f956b[_0x4798('0x11a')][_0x4798('0x54')]!=_0x5c1ae3[_0x4798('0x54')])continue;if(!Pt(_0x2f956b,_0x42f01c))continue;const _0x3c0aa9=_0x2f956b['getFirstRange']();if(_0x2f956b['subType']==_0x166004){if(_0x3c0aa9[_0x4798('0x66')](_0x6de614,!0x0))return null;_0x97247f=_0x97247f[_0x4798('0x12f')](_0x3c0aa9[_0x4798('0xc9')])?_0x97247f:_0x3c0aa9[_0x4798('0xc9')],_0x5503d5=_0x5503d5['isAfter'](_0x3c0aa9['end'])?_0x5503d5:_0x3c0aa9[_0x4798('0x4e')],_0x1f4985?_0x3c0aa9[_0x4798('0xc9')][_0x4798('0x12f')](_0x1f4985['getFirstRange']()[_0x4798('0xc9')])?(_0x1f4985[_0x4798('0x126')](),_0x1f4985=_0x2f956b):_0x2f956b[_0x4798('0x126')]():_0x1f4985=_0x2f956b;}else{const _0x596eb0=_0x6de614['getIntersection'](_0x3c0aa9);this['_cutOutSuggestionMarker'](_0x2f956b,_0x596eb0);}}const _0x43c94c=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x1b'))['me'],_0x74e261=_0x54da7a(),_0x5ce6f7=_0x43c94c['id'];if(_0x1f4985)return this['_setSuggestionRange'](_0x1f4985,this['_model'][_0x4798('0x93')](_0x97247f,_0x5503d5)),_0x1f4985;{const _0x581962=this[_0x4798('0x4a')]({'id':_0x74e261,'type':_0x4798('0xf8')+_0x166004,'data':_0x5c1ae3,'createdAt':new Date(),'authorId':_0x5ce6f7,'attributes':_0x42f01c});return this[_0x4798('0x129')](_0x4798('0xf8')+_0x166004,_0x74e261,_0x5ce6f7,this[_0x4798('0x16d')][_0x4798('0x93')](_0x97247f,_0x5503d5)),_0x581962;}}[_0x4798('0x10c')](_0x643a9,_0x368d97,_0x483dac=[],_0x467b59=null,_0x1819ee={}){_0x368d97[_0x4798('0x54')]||(_0x368d97[_0x4798('0x54')]=_0x368d97['commandName']);const _0x170428=_0x643a9[0x0];_0x368d97[_0x4798('0xa5')]=_0x170428['is'](_0x4798('0x38')),_0x467b59=_0x467b59||Et(_0x368d97);const _0x5261b8=_0x483dac[_0x4798('0x16b')](_0x4b9d70=>Ot(_0x4b9d70,this[_0x4798('0x16d')])),_0x3d193d=_0x170428['is'](_0x4798('0x38'))?_0x643a9:_0x643a9[_0x4798('0x16b')](_0x1c9ebe=>Ot(_0x1c9ebe,this[_0x4798('0x16d')]));if(_0x4798('0xe0')===this[_0x4798('0x2f')]){const _0x3bbbdd=this[_0x4798('0x146')][_0x4798('0x91')](_0x4798('0x122'),_0x467b59,_0x4798('0x45'));return this[_0x4798('0x139')](()=>_0x3bbbdd(_0x3d193d,_0x368d97,_0x1819ee)),null;}_0x5261b8[_0x4798('0x6c')](..._0x3d193d);let _0x586009=!0x0;for(const _0x55036d of _0x5261b8)if(!this[_0x4798('0xe2')](_0x55036d)){_0x586009=!0x1;break;}if(_0x586009&&_0x4798('0x100')!==this[_0x4798('0x2f')]){const _0x21443f=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x122'),_0x467b59,_0x4798('0x45'));return this[_0x4798('0x139')](()=>_0x21443f(_0x3d193d,_0x368d97,_0x1819ee)),null;}const _0x1f34ac=this[_0x4798('0xb8')]['plugins']['get'](_0x4798('0x1b'))['me'];for(const _0x6e9b86 of this[_0x4798('0x6d')]()){if(_0x6e9b86['author']['id']!=_0x1f34ac['id'])continue;if(_0x4798('0x122')!=_0x6e9b86[_0x4798('0xa')]||_0x6e9b86[_0x4798('0x11a')][_0x4798('0x54')]!=_0x368d97[_0x4798('0x54')])continue;if(!Pt(_0x6e9b86,_0x1819ee))continue;const _0x3f2960=_0x6e9b86[_0x4798('0x137')]==_0x467b59;for(let _0x53ef25=0x0;_0x53ef25<_0x3d193d[_0x4798('0xf1')];_0x53ef25++){const _0xa43845=_0x3d193d[_0x53ef25];for(const _0x7ee427 of _0x6e9b86[_0x4798('0xf5')]()){const _0x546e33=_0x7ee427['getRange']();if(_0xa43845[_0x4798('0x151')](_0x546e33)){_0x3f2960?(_0x3d193d[_0x4798('0x10f')](_0x53ef25,0x1),_0x53ef25--):_0x6e9b86[_0x4798('0x8')](_0x7ee427[_0x4798('0x82')]);break;}}}}if(0x0==_0x3d193d[_0x4798('0xf1')])return null;const _0x4c9c8e=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x122'),_0x467b59,_0x4798('0x5a'));for(const _0xba438c of this[_0x4798('0x6d')]())if(_0xba438c['author']['id']==_0x1f34ac['id']&&_0x4798('0x122')==_0xba438c[_0x4798('0xa')]&&_0xba438c[_0x4798('0x11a')][_0x4798('0x54')]==_0x368d97[_0x4798('0x54')]&&_0xba438c['subType']==_0x467b59&&Pt(_0xba438c,_0x1819ee)&&(_0x4c9c8e(_0xba438c[_0x4798('0x4d')](),_0x3d193d)||_0x4c9c8e(_0x3d193d,_0xba438c[_0x4798('0x4d')]()))){for(const _0x334e2b of _0x3d193d)_0xba438c['addRange'](_0x334e2b);return _0xba438c;}const _0x5dd713=_0x54da7a(),_0x1c1573=_0x1f34ac['id'],_0x285c75='formatBlock:'+_0x467b59,_0x32fdc1=this[_0x4798('0x4a')]({'id':_0x5dd713,'type':_0x285c75,'data':_0x368d97,'createdAt':new Date(),'authorId':_0x1c1573,'attributes':_0x1819ee});for(const _0x224b99 of _0x3d193d)this[_0x4798('0x129')](_0x285c75,_0x5dd713,_0x1c1573,_0x224b99,_0x75b5b8[_0x4798('0x13e')]());return _0x32fdc1;}[_0x4798('0xf3')](_0x48608e,_0x4eb779=null,_0x2a6c7c={}){if(_0x48608e[_0x4798('0x2a')])return null;const _0x373f62=this[_0x4798('0xb8')]['plugins'][_0x4798('0xb7')](_0x4798('0x1b'))['me'],_0x1c7ac7=new _0x29be14(_0x48608e[_0x4798('0xc9')],_0x48608e[_0x4798('0x4e')]);for(const {suggestion:_0x339978,meta:_0x3317b0}of this[_0x4798('0x5d')](_0x1c7ac7,_0x4798('0x72')))if(_0x3317b0['isOwn']&&!_0x3317b0[_0x4798('0x24')]){if(_0x339978[_0x4798('0xa0')]){const _0x565a40=_0x339978[_0x4798('0x4d')]()[_0x4798('0x3')](_0x342cf1=>'$graveyard'!=_0x342cf1['root'][_0x4798('0xea')]);_0x565a40[_0x4798('0x1')](_0x2b2b45=>_0x1c7ac7[_0x4798('0x66')](_0x2b2b45,!0x0))&&_0x339978[_0x4798('0x2')]();if(_0x565a40[_0x4798('0x112')](_0x236813=>_0x236813['containsRange'](_0x1c7ac7,!0x0))){const _0xb55ec1=this[_0x4798('0x146')]['getSuggestionCallback'](_0x4798('0x9f'),_0x4eb779,_0x4798('0x45'));return this[_0x4798('0x139')](()=>_0xb55ec1([_0x1c7ac7],null,_0x2a6c7c)),null;}}else{const _0x1353f2=_0x1c7ac7[_0x4798('0x12a')](_0x339978[_0x4798('0xa6')]());null!==_0x1353f2&&_0x339978['_onDiscard']([_0x1353f2],null,_0x2a6c7c);}}if(_0x1c7ac7[_0x4798('0x42')](),_0x1c7ac7[_0x4798('0x2a')]||'$graveyard'==_0x1c7ac7['root'][_0x4798('0xea')])return null;let _0x31097a=null,_0x2acc4=_0x1c7ac7[_0x4798('0xc9')],_0x4045c7=_0x1c7ac7[_0x4798('0x4e')];const _0x51ba30=this[_0x4798('0x5d')](_0x1c7ac7,'deletion');for(const {suggestion:_0x3428e3,meta:_0x48338e}of _0x51ba30){const _0x3d527c=this[_0x4798('0x16d')][_0x4798('0x93')](_0x2acc4,_0x4045c7);if(_0x48338e['isOwn']&&(this[_0x4798('0x44')]||!_0x48338e[_0x4798('0xf6')]&&!_0x48338e[_0x4798('0x6e')])){if(_0x3428e3[_0x4798('0xa0')]){if(!Pt(_0x3428e3,_0x2a6c7c))continue;let _0x4eb3fa=!0x0;for(const _0x1ed738 of _0x3428e3[_0x4798('0x4d')]()){if(_0x1ed738[_0x4798('0x66')](_0x3d527c,!0x0))return _0x3428e3;_0x3d527c[_0x4798('0x66')](_0x1ed738)||(_0x4eb3fa=!0x1);}_0x4eb3fa&&_0x3428e3[_0x4798('0x2')]();}else{const _0x450387=_0x3428e3[_0x4798('0xa6')]();if(_0x450387[_0x4798('0x66')](_0x3d527c,!0x0))return _0x3428e3;if(!Pt(_0x3428e3,_0x2a6c7c)){_0x3d527c[_0x4798('0x66')](_0x450387)?_0x3428e3['removeMarkers']():_0x450387[_0x4798('0x116')](_0x2acc4)?_0x2acc4=_0x450387['end']:_0x450387[_0x4798('0x116')](_0x4045c7)&&(_0x4045c7=_0x450387['start']);continue;}_0x2acc4=_0x2acc4[_0x4798('0x12f')](_0x450387[_0x4798('0xc9')])?_0x2acc4:_0x450387[_0x4798('0xc9')],_0x4045c7=_0x4045c7[_0x4798('0x62')](_0x450387[_0x4798('0x4e')])?_0x4045c7:_0x450387[_0x4798('0x4e')],_0x2a6c7c=Object[_0x4798('0x119')]({},_0x3428e3[_0x4798('0xfe')]),_0x31097a?_0x450387[_0x4798('0xc9')]['isBefore'](_0x31097a['getFirstRange']()[_0x4798('0xc9')])?(_0x31097a[_0x4798('0x126')](),_0x31097a=_0x3428e3):_0x3428e3['removeMarkers']():_0x31097a=_0x3428e3;}}}if(_0x31097a)return this[_0x4798('0xfd')](_0x31097a,this[_0x4798('0x16d')][_0x4798('0x93')](_0x2acc4,_0x4045c7)),_0x31097a;{const _0x1384f4=_0x54da7a(),_0xf77cdf=this[_0x4798('0x16d')][_0x4798('0x93')](_0x2acc4,_0x4045c7),_0x124908=_0x373f62['id'],_0x1686c3=_0x4eb779?_0x4798('0x47')+_0x4eb779:_0x4798('0x9f'),_0x590257=this[_0x4798('0x4a')]({'id':_0x1384f4,'type':_0x1686c3,'createdAt':new Date(),'authorId':_0x124908,'attributes':_0x2a6c7c});return this[_0x4798('0x129')](_0x1686c3,_0x1384f4,_0x124908,_0xf77cdf),_0x590257;}}[_0x4798('0x55')](_0x487200,_0x506de2='multi',_0x320514={}){const _0x12cd98=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')]('Users')['me'],_0x47c58b=_0x487200[_0x4798('0x16b')](_0x458cea=>new _0x29be14(_0x458cea[_0x4798('0xc9')],_0x458cea['end'])),_0x2971ea=new Set();for(const {suggestion:_0x4b8bc9,meta:_0x811230}of this['_findSuggestions'](_0x47c58b,'insertion'))_0x811230['isOwn']&&!_0x811230[_0x4798('0x24')]&&_0x2971ea[_0x4798('0xef')](_0x4b8bc9);for(const _0x5d1445 of _0x2971ea)if(_0x5d1445[_0x4798('0xa0')]){const _0x44d237=_0x5d1445[_0x4798('0x4d')]();(!_0x5d1445[_0x4798('0xfe')]||!_0x5d1445[_0x4798('0xfe')][_0x4798('0x114')])&&(_0x44d237['every'](_0xda77eb=>_0x47c58b[_0x4798('0x112')](_0x4bd8cc=>_0x4bd8cc['containsRange'](_0xda77eb,!0x0)))&&_0x5d1445[_0x4798('0x2')]());if(_0x47c58b['every'](_0x4f4108=>_0x44d237[_0x4798('0x112')](_0x4bcf41=>_0x4bcf41['containsRange'](_0x4f4108,!0x0)))){const _0x5e6fb2=this[_0x4798('0x146')][_0x4798('0x91')](_0x4798('0x9f'),_0x506de2,_0x4798('0x45'));return this['forceDefaultExecution'](()=>_0x5e6fb2(_0x487200,null,_0x320514)),null;}}else{const _0x3fd15a=_0x5d1445['getFirstRange']();_0x47c58b[_0x4798('0x112')](_0x5f0157=>_0x5f0157['containsRange'](_0x3fd15a,!0x0))&&_0x5d1445[_0x4798('0x2')]();if(_0x47c58b[_0x4798('0x1')](_0x53a65d=>_0x3fd15a[_0x4798('0x66')](_0x53a65d,!0x0))){const _0x105108=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x9f'),_0x506de2,_0x4798('0x45'));return this[_0x4798('0x139')](()=>_0x105108(_0x47c58b,null,_0x320514)),null;}}const _0x173ccc=this['_suggestionFactory'][_0x4798('0x91')](_0x4798('0x9f'),_0x506de2,'join');let _0x48e4db=null;for(const _0x1504e5 of this['getSuggestions']())if(_0x1504e5[_0x4798('0x167')]['id']==_0x12cd98['id']&&_0x1504e5[_0x4798('0x1c')]&&_0x4798('0x9f')==_0x1504e5['type']&&_0x1504e5[_0x4798('0x137')]==_0x506de2&&Pt(_0x1504e5,_0x320514)&&(_0x173ccc(_0x1504e5[_0x4798('0x4d')](),_0x47c58b)||_0x173ccc(_0x47c58b,_0x1504e5['getRanges']()))){if(_0x48e4db){if(_0x1504e5[_0x4798('0x8c')]&&_0x1504e5['commentThread']['length'])continue;for(const _0x4952a7 of _0x1504e5[_0x4798('0x4d')]())_0x48e4db['isIntersectingWithRange'](_0x4952a7)||_0x48e4db[_0x4798('0x87')](_0x4952a7);_0x1504e5[_0x4798('0x126')]();}else{_0x48e4db=_0x1504e5;for(const _0x2a714b of _0x47c58b)_0x1504e5['isIntersectingWithRange'](_0x2a714b)||_0x1504e5['addRange'](_0x2a714b);}}if(_0x48e4db)return _0x48e4db;_0x2971ea['clear']();for(const {suggestion:_0x3420a0,meta:_0x490a3e}of this[_0x4798('0x5d')](_0x47c58b,_0x4798('0x9f')))_0x490a3e[_0x4798('0xc8')]&&(this[_0x4798('0x44')]||!_0x490a3e['containsRangeInObject']&&!_0x490a3e['isInsideObject'])&&Pt(_0x3420a0,_0x320514)&&_0x2971ea[_0x4798('0xef')](_0x3420a0);for(const _0x37060d of _0x2971ea){const _0x348e8a=_0x37060d['getRanges']();if(!_0x320514||!_0x320514[_0x4798('0x114')]){if(_0x47c58b['every'](_0x48ef79=>_0x348e8a[_0x4798('0x112')](_0x5bbfdb=>_0x5bbfdb[_0x4798('0x66')](_0x48ef79,!0x0))))return _0x37060d;}(!_0x37060d[_0x4798('0xfe')]||!_0x37060d[_0x4798('0xfe')][_0x4798('0x114')])&&(_0x348e8a[_0x4798('0x1')](_0x682947=>_0x47c58b['some'](_0x342d8d=>_0x342d8d[_0x4798('0x66')](_0x682947,!0x0)))&&_0x37060d[_0x4798('0x2')]());}const _0x33b6db=_0x54da7a(),_0x150215=_0x12cd98['id'],_0x455841=_0x4798('0x47')+_0x506de2,_0x48d3d5=this[_0x4798('0x4a')]({'id':_0x33b6db,'type':_0x455841,'createdAt':new Date(),'authorId':_0x150215,'attributes':_0x320514});for(const _0x547c48 of _0x47c58b)_0x547c48[_0x4798('0x42')](),_0x547c48[_0x4798('0x2a')]||'$graveyard'==_0x547c48[_0x4798('0xfb')]['rootName']||this[_0x4798('0x129')](_0x455841,_0x33b6db,_0x150215,_0x547c48,_0x75b5b8['getMultiRangeId']());return _0x48d3d5;}[_0x4798('0xa8')](_0xdb0f43,_0x19e3e7,_0x5863ce,_0x590642,_0x42b4a3){if(_0xdb0f43[_0x4798('0x2a')])return[];if(_0x4798('0xe0')===this[_0x4798('0x2f')])return[];const _0xd9c033=this[_0x4798('0xb8')]['plugins'][_0x4798('0xb7')]('Users')['me']['id'],_0x3c656d=Array[_0x4798('0x162')](this[_0x4798('0x5')][_0x4798('0x15c')]())[_0x4798('0x3')](_0x358451=>'attribute'==_0x358451[_0x4798('0xa')]&&_0x358451[_0x4798('0x11a')][_0x4798('0x125')]==_0x19e3e7&&_0x358451[_0x4798('0x69')](_0xdb0f43));if('default'===this['_trackFormatChanges']){const _0x1ce707=this['_findSuggestions'](_0xdb0f43,'insertion')[_0x4798('0x3')](({meta:_0x1408ad})=>_0x1408ad[_0x4798('0xc8')]&&!_0x1408ad[_0x4798('0x6e')]&&!_0x1408ad[_0x4798('0x24')])[_0x4798('0x16b')](({suggestion:_0x564742})=>_0x564742);_0x3c656d[_0x4798('0x33')](..._0x1ce707);}const _0x273e67=new Map([[_0xdb0f43,_0x5863ce]]);for(const _0xf1c3f9 of _0x3c656d){const _0x44fe86=_0x4798('0x70')==_0xf1c3f9['type']?_0xf1c3f9[_0x4798('0x11a')][_0x4798('0xa4')]:void 0x0,_0x32c85b=_0xf1c3f9[_0x4798('0xa6')](),_0x115166=Array[_0x4798('0x162')](_0x273e67[_0x4798('0x58')]())['find'](_0x2b6c17=>_0x2b6c17['isIntersecting'](_0x32c85b));if(!_0x115166)continue;const _0xa960d5=_0x115166[_0x4798('0x136')](_0x32c85b);this[_0x4798('0xc1')](_0x19e3e7)&&_0x4798('0x72')==_0xf1c3f9[_0x4798('0xa')]&&0x0!=_0xa960d5[_0x4798('0xf1')]||(_0x273e67[_0x4798('0x10b')](_0x115166),_0xa960d5[_0x4798('0x89')](_0x4e8187=>{_0x273e67[_0x4798('0x28')](_0x4e8187,_0x5863ce);}),_0x4798('0x72')!=_0xf1c3f9[_0x4798('0xa')]&&_0x44fe86!=_0x590642&&_0x273e67['set'](_0x115166['getIntersection'](_0x32c85b),_0x44fe86));}const _0x412294=[];for(const [_0x45d29d,_0x343b48]of _0x273e67){const _0x5e24a4=_0x54da7a(),_0x2eb2c7={'key':_0x19e3e7,'oldValue':_0x343b48,'newValue':_0x590642};_0x19e3e7[_0x4798('0xf1')]>0x25&&console['warn'](_0x4798('0x13'),{'key':_0x19e3e7});const _0x47f4ea=('attribute:'+(_0x19e3e7+'|'+Et({'newValue':_0x590642})))['substring'](0x0,0x3c),_0x4ea038=this['_setSuggestionData']({'id':_0x5e24a4,'type':_0x47f4ea,'data':_0x2eb2c7,'createdAt':new Date(),'authorId':_0xd9c033,'attributes':_0x42b4a3});_0x412294[_0x4798('0x6c')](_0x4ea038),this[_0x4798('0x129')](_0x47f4ea,_0x5e24a4,_0xd9c033,_0x45d29d);}return _0x412294;}[_0x4798('0xe4')](_0x154ab6){this[_0x4798('0xe3')][_0x4798('0xef')](_0x154ab6);}[_0x4798('0xe1')](_0x395f84){this[_0x4798('0x95')][_0x4798('0xef')](_0x395f84);}[_0x4798('0xd')](_0x430786,_0xdfca76=[],_0xee4941=[]){this[_0x4798('0xda')](_0x430786,(_0x1b3c58,..._0x5f2e41)=>{this[_0x4798('0x150')](()=>{_0x1b3c58(..._0x5f2e41);});});for(const _0x2ec87e of _0xdfca76)this[_0x4798('0xe1')](_0x2ec87e);for(const _0x8db8ce of _0xee4941)this[_0x4798('0xe4')](_0x8db8ce);}['_getAttributeKey'](_0x30d07a){return _0x4798('0x70')==_0x30d07a[_0x4798('0xa')]?_0x30d07a[_0x4798('0x137')][_0x4798('0x12c')]('|')[0x0]:null;}['_setSuggestionRange'](_0x110261,_0x702a28){const _0x304576=_0x110261[_0x4798('0xb2')]();this[_0x4798('0x16d')][_0x4798('0x99')](_0x2fc033=>{_0x2fc033[_0x4798('0x15')](_0x304576,{'range':_0x702a28});});}[_0x4798('0x3d')](_0x452f1d){const _0x650ad9=_0x452f1d['id'],_0x3e40e0=this[_0x4798('0xb8')][_0x4798('0x14b')][_0x4798('0xb7')]('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x650ad9)||this[_0x4798('0x15b')][_0x4798('0xdd')]({'channelId':_0x3e40e0,'threadId':_0x650ad9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x432c0b=this[_0x4798('0x15b')][_0x4798('0x5c')](_0x650ad9);_0x432c0b[_0x4798('0xc6')](_0x4798('0x77')),_0x432c0b[_0x4798('0x77')]=!0x1,_0x452f1d[_0x4798('0x8c')]=_0x432c0b;}[_0x4798('0xed')](_0x1c42b6,_0x56ac43,_0xdbfdf5,_0x581276){if(_0x1c42b6[_0x4798('0xa')]!=_0x56ac43||_0x1c42b6[_0x4798('0x137')]!=_0xdbfdf5||_0x1c42b6['creator']['id']!=_0x581276)throw this[_0x4798('0xb8')][_0x4798('0x7')](_0x4798('0x159')),new _0x2e9c34(_0x4798('0x159'),this);}['_cutOutSuggestionMarker'](_0x1b9a1e,_0x2d374a){const _0x4c7fd0=_0x1b9a1e[_0x4798('0xa6')]();if(_0x2d374a[_0x4798('0x151')](_0x4c7fd0))_0x1b9a1e[_0x4798('0x126')]();else{if(_0x4c7fd0[_0x4798('0x66')](_0x2d374a)){const _0x1fe3c4=this['_model'][_0x4798('0x9c')](_0x2d374a[_0x4798('0xc9')][_0x4798('0x50')],_0x4798('0x4e'));this[_0x4798('0xfd')](_0x1b9a1e,this['_model'][_0x4798('0x93')](_0x4c7fd0[_0x4798('0xc9')],_0x1fe3c4));const _0x28b8bc=_0x54da7a(),_0x19895c=_0x1b9a1e['creator']['id'],_0x397a2f=_0x1b9a1e[_0x4798('0xa')]+':'+_0x1b9a1e[_0x4798('0x137')];this[_0x4798('0x4a')]({'id':_0x28b8bc,'type':_0x397a2f,'createdAt':new Date(),'authorId':_0x19895c,'data':_0x1b9a1e['data'],'attributes':_0x1b9a1e[_0x4798('0xfe')]});const _0x5271d7=this['_model']['createPositionAt'](_0x2d374a[_0x4798('0x4e')][_0x4798('0x14a')],_0x4798('0x12b')),_0x1de47c=this[_0x4798('0x16d')]['createRange'](_0x5271d7,_0x4c7fd0[_0x4798('0x4e')]);this['_addSuggestionMarker'](_0x397a2f,_0x28b8bc,_0x19895c,_0x1de47c);}else{if(_0x4c7fd0[_0x4798('0x116')](_0x2d374a[_0x4798('0xc9')])){const _0x32c25c=this[_0x4798('0x16d')][_0x4798('0x9c')](_0x2d374a[_0x4798('0xc9')][_0x4798('0x50')],_0x4798('0x4e'));this[_0x4798('0xfd')](_0x1b9a1e,this['_model'][_0x4798('0x93')](_0x4c7fd0[_0x4798('0xc9')],_0x32c25c));}else{const _0x212aa3=this['_model'][_0x4798('0x9c')](_0x2d374a[_0x4798('0x4e')][_0x4798('0x14a')],_0x4798('0x12b'));this[_0x4798('0xfd')](_0x1b9a1e,this[_0x4798('0x16d')][_0x4798('0x93')](_0x212aa3,_0x4c7fd0[_0x4798('0x4e')]));}}}}['_rangeIsInLocalUserInsertion'](_0x5ddba7){for(const {suggestion:_0x436cbc,meta:_0x1670e9}of this[_0x4798('0x5d')](_0x5ddba7,'insertion')){if(!_0x1670e9[_0x4798('0xc8')])continue;const _0x2a3999=_0x436cbc['getRanges']();for(const _0x2f27c3 of _0x2a3999)if(!_0x5ddba7['getDifference'](_0x2f27c3)[_0x4798('0xf1')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x13b15b){const _0x268d07=this['editor']['plugins'][_0x4798('0xb7')]('Users')[_0x4798('0x61')](_0x13b15b);if(!_0x268d07)throw new _0x2e9c34(_0x4798('0x171'),this);return _0x268d07;}[_0x4798('0xb6')](_0x33d8ce){const _0x5ac5e5=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x1b')),_0xedfb26=_0x32f53a(_0x4798('0xbf')+_0x33d8ce),_0x2524a0=_0x5ac5e5[_0x4798('0x61')](_0xedfb26);return _0x2524a0||_0x5ac5e5[_0x4798('0x86')]({'id':_0xedfb26,'name':_0x33d8ce});}[_0x4798('0xd2')](_0x2d834f,_0x13ac4b,_0x786f17,_0x232b93,_0x3ba5ef){const _0x222b0d=this['_getAuthorFromId'](_0x232b93),_0x13e102=this[_0x4798('0x146')][_0x4798('0xb3')](_0x2d834f,_0x13ac4b,_0x786f17,_0x222b0d,_0x3ba5ef,_0x17f434=>{this[_0x4798('0x102')](_0x786f17,{'attributes':_0x17f434});const _0x2aa894=this[_0x4798('0x12')](_0x786f17);this[_0x4798('0x98')](new Set([_0x2aa894])),this['_refreshSuggestionsChain'](new Set([_0x2aa894]));});return this[_0x4798('0xac')](_0x13e102,_0x4798('0x45'),()=>{this[_0x4798('0x102')](_0x786f17,{'state':_0x4798('0xe8')});},{'priority':_0x4798('0xd9')}),this['listenTo'](_0x13e102,'discard',()=>{this['_updateSuggestionData'](_0x786f17,{'state':_0x4798('0x7d')});},{'priority':_0x4798('0xd9')}),this[_0x4798('0x5')][_0x4798('0x28')](_0x786f17,_0x13e102),this['_suggestionState'][_0x4798('0x28')](_0x13e102,'notReady'),_0x13e102;}[_0x4798('0x65')](_0x1704f6){const _0x418916=_0x1704f6[_0x4798('0x12c')](':');return{'group':_0x418916[0x0],'type':_0x418916[0x1],'subType':_0x418916[_0x4798('0xf1')]>=0x5?_0x418916[0x2]:null,'id':_0x418916[_0x4798('0xf1')]<0x5?_0x418916[0x2]:_0x418916[0x3],'authorId':_0x418916['length']<0x5?_0x418916[0x3]:_0x418916[0x4],'markerCount':0x6==_0x418916[_0x4798('0xf1')]?_0x418916[0x5]:null};}['_breakSuggestionMarker'](_0x4752c6,_0x49efd0,_0x15788c){const _0x1dc1f5=_0x4752c6[_0x4798('0xa6')](),_0x7bc81=_0x1dc1f5['start'],_0x48a331=_0x1dc1f5[_0x4798('0x4e')];this['_setSuggestionRange'](_0x4752c6,this['_model'][_0x4798('0x93')](_0x7bc81,_0x49efd0));const _0x4aae49=_0x54da7a(),_0x341725=_0x4752c6[_0x4798('0x153')]['id'],_0x21f786=_0x4752c6[_0x4798('0xa')]+(_0x4752c6[_0x4798('0x137')]?':'+_0x4752c6[_0x4798('0x137')]:'');this[_0x4798('0x4a')]({'id':_0x4aae49,'type':_0x21f786,'createdAt':new Date(),'authorId':_0x341725,'originalSuggestionId':_0x4752c6['id'],'attributes':_0x4752c6[_0x4798('0xfe')],'data':_0x4752c6[_0x4798('0x11a')]});const _0x47095c=this['_getAttributeKey'](_0x4752c6);(_0x4798('0x122')==_0x4752c6[_0x4798('0xa')]||_0x47095c&&this[_0x4798('0xc1')](_0x47095c))&&(_0x15788c=this[_0x4798('0x16d')][_0x4798('0xc3')](_0x15788c[_0x4798('0x14a')])),this[_0x4798('0x129')](_0x21f786,_0x4aae49,_0x341725,this[_0x4798('0x16d')][_0x4798('0x93')](_0x15788c,_0x48a331));}['_findSuggestions'](_0x20f3ac,_0x4a6f53=null){const _0x4a4797=[],_0xd1d33a=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x1b'))['me'];Array[_0x4798('0x2c')](_0x20f3ac)||(_0x20f3ac=[_0x20f3ac]);for(const _0x4fe6a4 of this[_0x4798('0x6d')]()){if(!_0x4fe6a4[_0x4798('0x1c')])continue;if(_0x4a6f53&&_0x4fe6a4['type']!=_0x4a6f53)continue;let _0x268b07=!0x1;for(const _0x37d82f of _0x4fe6a4[_0x4798('0x4d')]()){for(const _0x1e3b5c of _0x20f3ac){const _0xfca4e3=_0x1e3b5c[_0x4798('0xc9')][_0x4798('0x151')](_0x37d82f[_0x4798('0x4e')])||_0x1e3b5c[_0x4798('0x4e')]['isEqual'](_0x37d82f[_0x4798('0xc9')]);if(_0xfca4e3||_0x1e3b5c['getIntersection'](_0x37d82f)){const _0x5af0de=_0x1e3b5c['containsRange'](_0x37d82f)&&xt(this['_model'][_0x4798('0xcd')],_0x37d82f[_0x4798('0xc9')],_0x1e3b5c),_0x183636=_0x37d82f['containsRange'](_0x1e3b5c)&&xt(this[_0x4798('0x16d')][_0x4798('0xcd')],_0x1e3b5c[_0x4798('0xc9')],_0x37d82f);_0x4a4797[_0x4798('0x6c')]({'suggestion':_0x4fe6a4,'meta':{'isOwn':_0xd1d33a==_0x4fe6a4[_0x4798('0x167')],'isNextTo':_0xfca4e3,'isInsideObject':_0x5af0de,'containsRangeInObject':_0x183636}}),_0x268b07=!0x0;break;}}if(_0x268b07)break;}}return _0x4a4797;}[_0x4798('0x129')](_0x3be8f8,_0x1b863e,_0x4c458b,_0x35fd89,_0x23d847){this[_0x4798('0x16d')][_0x4798('0x99')](_0x7dbae9=>{let _0x3e38f3=_0x4798('0x52')+_0x3be8f8+':'+_0x1b863e+':'+_0x4c458b;_0x23d847&&(_0x3e38f3=_0x3e38f3+':'+_0x23d847),_0x7dbae9[_0x4798('0xd7')](_0x3e38f3,{'range':_0x35fd89,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4798('0x15a')](_0x3cc4db){const _0x472567=_0x3cc4db[_0x4798('0xec')],_0x1800e7=_0x3cc4db[_0x4798('0xcc')];_0x3cc4db[_0x4798('0xec')]=null,_0x3cc4db[_0x4798('0xcc')]=null,null!=_0x472567&&_0x472567[_0x4798('0xcc')]==_0x3cc4db&&(_0x472567['next']=_0x1800e7),null!=_0x1800e7&&_0x1800e7[_0x4798('0xec')]==_0x3cc4db&&(_0x1800e7[_0x4798('0xec')]=_0x472567),'ready'==this[_0x4798('0xb4')][_0x4798('0xb7')](_0x3cc4db)&&(this['_suggestionState'][_0x4798('0x28')](_0x3cc4db,_0x4798('0xe9')),this[_0x4798('0x67')]('suggestionUnloaded',_0x3cc4db,_0x472567,_0x1800e7));}[_0x4798('0x4a')](_0x585cbe){const _0x56ad81=_0x585cbe['id'],_0x371ecf=this[_0x4798('0xca')](_0x585cbe);if(this['_adapter']&&this[_0x4798('0xc')][_0x4798('0xe5')]){const _0x10afd9=this[_0x4798('0xb8')][_0x4798('0xe6')]['get'](_0x4798('0x51')),_0x23b6e4=_0x371ecf[_0x4798('0xc0')],_0x5b6a56=_0x371ecf[_0x4798('0x137')]?_0x371ecf['type']+':'+_0x371ecf['subType']:_0x371ecf['type'],_0x5d8f7e=this[_0x4798('0xb8')][_0x4798('0xb')],_0x21650d=_0x10afd9[_0x4798('0xef')](_0x5379c0(_0x5d8f7e,_0x4798('0xdf'))),_0x49f140={'id':_0x56ad81,'type':_0x5b6a56,'hasComments':_0x23b6e4,'data':_0x585cbe[_0x4798('0x11a')]||null,'originalSuggestionId':_0x585cbe[_0x4798('0x147')]||null,'attributes':_0x371ecf[_0x4798('0xfe')]};this[_0x4798('0xc')]['addSuggestion'](_0x49f140)[_0x4798('0x140')](_0x55959a=>{_0x371ecf[_0x4798('0x160')]=!0x0,_0x10afd9[_0x4798('0x8a')](_0x21650d),_0x55959a&&_0x55959a[_0x4798('0x111')]&&(this['_suggestions'][_0x4798('0xb7')](_0x56ad81)['createdAt']=_0x55959a[_0x4798('0x111')]);})[_0x4798('0xb9')](_0x11d147=>{throw _0x4ae452(_0x4798('0xd5')),this[_0x4798('0xb8')][_0x4798('0x83')][_0x4798('0x161')]({'isUndoable':!0x1},()=>{_0x371ecf['discard']();}),_0x371ecf['stopListening'](),this['_suggestions']['delete'](_0x371ecf['id']),this['_suggestionState'][_0x4798('0x10b')](_0x371ecf),_0x11d147;});}return _0x371ecf;}['_isBlockAttribute'](_0x3c8030){return this[_0x4798('0xe3')][_0x4798('0xbb')](_0x3c8030);}[_0x4798('0x102')](_0x447e3a,_0x507261){const _0x5769a9=this[_0x4798('0xb8')][_0x4798('0xe6')][_0x4798('0xb7')](_0x4798('0x51')),_0x188901=this[_0x4798('0x12')](_0x447e3a);if(this['_adapter']&&this[_0x4798('0xc')][_0x4798('0x40')]){if(_0x188901[_0x4798('0x160')]){const _0x53acbf=_0x5769a9['add'](_0x5379c0(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x4798('0x40')](_0x447e3a,_0x507261)[_0x4798('0x140')](()=>{_0x5769a9[_0x4798('0x8a')](_0x53acbf);});}else _0x188901['on'](_0x4798('0x120'),()=>{this[_0x4798('0x102')](_0x447e3a,_0x507261);});}}[_0x4798('0x132')](_0x580242){if(!this['_adapter']||!this[_0x4798('0xc')][_0x4798('0x12')])throw new _0x2e9c34(_0x4798('0xba'),this);return this[_0x4798('0xc')][_0x4798('0x12')](_0x580242);}['_handleNewSuggestionMarker'](_0x5fce2d){const {id:_0x50edda,type:_0xbc516e,subType:_0x309bd4,authorId:_0x36ff12}=this[_0x4798('0x65')](_0x5fce2d),_0x463add=this[_0x4798('0x5')][_0x4798('0xb7')](_0x50edda)||this[_0x4798('0xd2')](_0xbc516e,_0x309bd4,_0x50edda,_0x36ff12,{});switch(this['_checkSuggestionCorrectness'](_0x463add,_0xbc516e,_0x309bd4,_0x36ff12),this[_0x4798('0xb4')]['get'](_0x463add)){case _0x4798('0x166'):this['_getSuggestionData'](_0x50edda)[_0x4798('0x140')](_0x4f3512=>{let _0x1d148d=Promise[_0x4798('0xdc')]();_0x4f3512[_0x4798('0xc0')]&&(_0x1d148d=this[_0x4798('0x15b')][_0x4798('0x34')]({'channelId':this[_0x4798('0xb8')]['config'][_0x4798('0xb7')]('collaboration.channelId'),'threadId':_0x50edda})),_0x1d148d[_0x4798('0x140')](()=>{this[_0x4798('0xca')](_0x4f3512)[_0x4798('0x160')]=!0x0;});}),this['_suggestionState'][_0x4798('0x28')](_0x463add,_0x4798('0x104'));break;case _0x4798('0xe9'):this[_0x4798('0x102')](_0x50edda,{'state':'open'});case _0x4798('0xfa'):this[_0x4798('0xb4')]['set'](_0x463add,_0x4798('0x92')),this[_0x4798('0x67')]('suggestionLoaded',_0x463add);break;case'ready':this[_0x4798('0x67')](_0x4798('0x21'),_0x463add);}return _0x463add[_0x4798('0xbe')](_0x5fce2d),_0x463add;}[_0x4798('0x15e')](_0x5673b6){const _0x25c227=Array[_0x4798('0x162')](_0x5673b6),_0x3b3a92=_0x25c227[_0x4798('0x3')](_0x1895f7=>_0x4798('0x70')==_0x1895f7[_0x4798('0xa')]);this[_0x4798('0x135')](_0x3b3a92);const _0x27ef2d=_0x25c227[_0x4798('0x3')](_0x4d548f=>!_0x4d548f[_0x4798('0xa0')]&&_0x4798('0x70')!=_0x4d548f[_0x4798('0xa')]),_0x574d8e=this[_0x4798('0x6d')]({'skipNotAttached':!0x0})[_0x4798('0x3')](_0x1f329f=>!_0x1f329f[_0x4798('0xa0')]&&_0x4798('0x70')!=_0x1f329f[_0x4798('0xa')]),_0x16df5c=_0x574d8e[_0x4798('0x3')](_0x4c15da=>!_0x5673b6[_0x4798('0xbb')](_0x4c15da)),_0x58914f=new Map(_0x574d8e[_0x4798('0x16b')](_0xba5009=>[_0xba5009,this[_0x4798('0x146')][_0x4798('0x91')](_0xba5009[_0x4798('0xa')],_0xba5009[_0x4798('0x137')],_0x4798('0xf'))])),_0x34e321=new Map(_0x574d8e[_0x4798('0x16b')](_0x56f601=>[_0x56f601,_0x56f601[_0x4798('0xa6')]()])),_0x447d43=new Set(),_0x1e06b3=new Set();for(let _0x43da81=0x0;_0x43da81<_0x27ef2d[_0x4798('0xf1')];_0x43da81++)_0x3d3d3f(_0x27ef2d[_0x43da81],_0x27ef2d,_0x43da81+0x1);for(let _0x13ef2e=0x0;_0x13ef2e<_0x27ef2d[_0x4798('0xf1')];_0x13ef2e++)_0x3d3d3f(_0x27ef2d[_0x13ef2e],_0x16df5c,0x0);const _0x507100=new Set();for(let _0x238700=0x0;_0x238700<_0x27ef2d[_0x4798('0xf1')];_0x238700++){const _0x22ad7f=_0x27ef2d[_0x238700];!_0x1e06b3[_0x4798('0xbb')](_0x22ad7f)&&_0x22ad7f[_0x4798('0xec')]&&(_0x507100[_0x4798('0xef')](_0x22ad7f[_0x4798('0xec')]),_0x22ad7f[_0x4798('0xec')][_0x4798('0xcc')]===_0x22ad7f&&(_0x22ad7f['previous']['next']=null),_0x22ad7f[_0x4798('0xec')]=null),!_0x447d43[_0x4798('0xbb')](_0x22ad7f)&&_0x22ad7f[_0x4798('0xcc')]&&(_0x507100[_0x4798('0xef')](_0x22ad7f[_0x4798('0xcc')]),_0x22ad7f['next'][_0x4798('0xec')]===_0x22ad7f&&(_0x22ad7f[_0x4798('0xcc')]['previous']=null),_0x22ad7f['next']=null);}function _0x3d3d3f(_0x381ff6,_0x363aec,_0x113015){for(let _0x286ebf=_0x113015;_0x286ebf<_0x363aec[_0x4798('0xf1')];_0x286ebf++){const _0x3fe48b=_0x4215bb(_0x381ff6,_0x363aec[_0x286ebf]);_0x3fe48b&&(_0x3fe48b[0x0]['next']=_0x3fe48b[0x1],_0x3fe48b[0x1][_0x4798('0xec')]=_0x3fe48b[0x0],_0x447d43[_0x4798('0xef')](_0x3fe48b[0x0]),_0x1e06b3[_0x4798('0xef')](_0x3fe48b[0x1]));}}function _0x4215bb(_0x4f4516,_0x573fe6){if(_0x4f4516[_0x4798('0x167')]['id']!==_0x573fe6[_0x4798('0x167')]['id'])return null;const _0x24b001=_0x58914f[_0x4798('0xb7')](_0x4f4516)(_0x4f4516,_0x573fe6,_0x34e321[_0x4798('0xb7')](_0x4f4516),_0x34e321[_0x4798('0xb7')](_0x573fe6));if(!_0x24b001)return null;return _0x58914f[_0x4798('0xb7')](_0x573fe6)(_0x4f4516,_0x573fe6,_0x34e321[_0x4798('0xb7')](_0x4f4516),_0x34e321[_0x4798('0xb7')](_0x573fe6))?_0x24b001[0x1][_0x4798('0x8c')]&&_0x24b001[0x1][_0x4798('0x8c')]['length']?null:_0x24b001:null;}_0x507100['size']&&this[_0x4798('0x15e')](_0x507100);}[_0x4798('0x135')](_0x5447a7){if(0x0==_0x5447a7[_0x4798('0xf1')])return;const _0x49d11a=this[_0x4798('0x6d')]({'skipNotAttached':!0x0})['filter'](_0x240846=>_0x4798('0x70')==_0x240846['type']&&_0x240846[_0x4798('0x2b')]),_0x1067e0=[],_0x285884=new Map();for(const _0x21a079 of _0x49d11a){const _0x403f0c=_0x32f53a(_0x21a079[_0x4798('0xfe')]);_0x285884[_0x4798('0xbb')](_0x403f0c)||(_0x285884[_0x4798('0x28')](_0x403f0c,_0x1067e0[_0x4798('0xf1')]),_0x1067e0[_0x4798('0x6c')]([]));const _0x39c0e4=_0x285884[_0x4798('0xb7')](_0x403f0c);_0x1067e0[_0x39c0e4][_0x4798('0x6c')](_0x21a079);}!function(){_0x1067e0[_0x4798('0x1d')]((_0x19d2aa,_0x2c3d2d)=>{const _0x320c42=_0x19d2aa[0x0][_0x4798('0x111')],_0x4b49af=_0x2c3d2d[0x0][_0x4798('0x111')];return _0x320c42==_0x4b49af?_0x19d2aa[0x0][_0x4798('0xfe')][_0x4798('0xee')]<_0x2c3d2d[0x0]['attributes']['groupId']?-0x1:0x1:_0x320c42<_0x4b49af?-0x1:0x1;});for(const _0x390629 of _0x1067e0)_0x390629['sort']((_0x156452,_0x5bec3f)=>_0x156452['id']<_0x5bec3f['id']?-0x1:0x1);}();for(let _0x3b00b1=0x0;_0x3b00b1<_0x1067e0['length'];_0x3b00b1++){if(0x0==_0x1067e0[_0x3b00b1][_0x4798('0xf1')])continue;const _0x49c87a=[];for(let _0x1f7e66=_0x3b00b1+0x1;_0x1f7e66<_0x1067e0['length'];_0x1f7e66++)0x0!=_0x1067e0[_0x1f7e66]['length']&&_0xfc041d(_0x1067e0[_0x3b00b1],_0x1067e0[_0x1f7e66])&&_0x49c87a[_0x4798('0x6c')](_0x1f7e66);for(const _0x47c62f of _0x49c87a)_0x1067e0[_0x3b00b1]=_0x1067e0[_0x3b00b1][_0x4798('0x130')](_0x1067e0[_0x47c62f]),_0x1067e0[_0x47c62f]=[];}for(const _0x43250f of _0x1067e0)for(let _0x3b1f5c=0x0;_0x3b1f5c<_0x43250f['length'];_0x3b1f5c++)_0x43250f[_0x3b1f5c]['next']=_0x43250f[_0x3b1f5c+0x1]||null;for(const _0x3c4d6a of _0x1067e0)for(let _0x14be6a=0x0;_0x14be6a<_0x3c4d6a['length'];_0x14be6a++)_0x3c4d6a[_0x14be6a]['previous']=_0x3c4d6a[_0x14be6a-0x1]||null;function _0xfc041d(_0x5bf545,_0x47c200){if(_0x5bf545[0x0]['attributes'][_0x4798('0xee')]!==_0x47c200[0x0][_0x4798('0xfe')][_0x4798('0xee')]&&_0x5bf545[0x0]['author']!==_0x47c200[0x0][_0x4798('0x167')])return!0x1;if(!function(_0x1503aa,_0x2d478e){if(!_0x1503aa[_0x4798('0xc0')]&&!_0x2d478e[_0x4798('0xc0')])return!0x0;if(_0x1503aa[_0x4798('0xc0')]&&_0x2d478e[_0x4798('0xc0')])return!0x1;if(_0x1503aa[_0x4798('0xc0')]&&_0x2d478e[_0x4798('0x111')]<_0x1503aa[_0x4798('0x8c')][_0x4798('0x11f')][_0x4798('0xb7')](0x0)['createdAt'])return!0x0;if(_0x2d478e['hasComments']&&_0x1503aa['createdAt']<_0x2d478e['commentThread'][_0x4798('0x11f')][_0x4798('0xb7')](0x0)[_0x4798('0x111')])return!0x0;return!0x1;}(_0x5bf545[0x0],_0x47c200[0x0]))return!0x1;const _0x1df8a9=_0x55cd11(_0x5bf545[0x0][_0x4798('0xfe')],_0x4798('0xee')),_0x51a2d1=_0x55cd11(_0x47c200[0x0][_0x4798('0xfe')],_0x4798('0xee'));if(!_0x1c6142(_0x1df8a9,_0x51a2d1))return!0x1;return!!_0x5bf545[_0x4798('0x1')](_0xb5e81e=>_0x47c200[_0x4798('0x112')](_0x4553a1=>_0xb5e81e[_0x4798('0xa6')]()[_0x4798('0x151')](_0x4553a1[_0x4798('0xa6')]())))&&_0x47c200['every'](_0x1ba36f=>_0x5bf545[_0x4798('0x112')](_0x25e656=>_0x1ba36f[_0x4798('0xa6')]()[_0x4798('0x151')](_0x25e656[_0x4798('0xa6')]())));}}['_joinWithAdjacentSuggestions'](_0x30fa9b){const _0x1896e5=Array[_0x4798('0x162')](_0x30fa9b),_0x5e350e=this[_0x4798('0x6d')]({'skipNotAttached':!0x0}),_0x3dc85a=_0x5e350e[_0x4798('0x3')](_0x5ad76e=>!_0x30fa9b[_0x4798('0xbb')](_0x5ad76e)),_0x5dc907=new Map(_0x1896e5[_0x4798('0x16b')](_0x1c1fdb=>[_0x1c1fdb,this[_0x4798('0x146')]['getSuggestionCallback'](_0x1c1fdb[_0x4798('0xa')],_0x1c1fdb[_0x4798('0x137')],'join')])),_0x582873=new Map(_0x5e350e[_0x4798('0x16b')](_0x4421e9=>[_0x4421e9,_0x4421e9[_0x4798('0x4d')]()]));for(let _0x29fd3d=0x0;_0x29fd3d<_0x1896e5[_0x4798('0xf1')];_0x29fd3d++){if(_0x1d5c0d(this,_0x1896e5[_0x29fd3d],_0x1896e5,_0x29fd3d+0x1))return!0x0;}for(let _0xaf5e2=0x0;_0xaf5e2<_0x1896e5[_0x4798('0xf1')];_0xaf5e2++){if(_0x1d5c0d(this,_0x1896e5[_0xaf5e2],_0x3dc85a,0x0))return!0x0;}return!0x1;function _0x1d5c0d(_0x21ade4,_0x3d0a53,_0x139745,_0xd2a221){for(let _0x54537b=_0xd2a221;_0x54537b<_0x139745['length'];_0x54537b++){const _0x59823f=_0x139745[_0x54537b];if(_0x59823f[_0x4798('0xa')]!==_0x3d0a53[_0x4798('0xa')]||_0x59823f[_0x4798('0x167')]['id']!==_0x3d0a53[_0x4798('0x167')]['id']||_0x59823f[_0x4798('0x137')]!==_0x3d0a53[_0x4798('0x137')])continue;if(!Ft(_0x3d0a53,_0x59823f,[_0x4798('0xee')]))continue;if(_0x4798('0x70')==_0x3d0a53[_0x4798('0xa')]&&_0x3d0a53[_0x4798('0x11a')][_0x4798('0xa4')]!=_0x59823f[_0x4798('0x11a')][_0x4798('0xa4')])continue;if(_0x4798('0x70')==_0x3d0a53[_0x4798('0xa')]&&_0x21ade4[_0x4798('0xc1')](_0x3d0a53[_0x4798('0x11a')][_0x4798('0x125')]))continue;if(_0x4798('0x122')==_0x3d0a53[_0x4798('0xa')]){const _0x2b7ac8=_0x21ade4[_0x4798('0xb8')][_0x4798('0x83')],_0x4881e1=_0x3d0a53[_0x4798('0x75')]();if(_0x4881e1&&(_0x2b7ac8[_0x4798('0xcd')][_0x4798('0x107')](_0x4881e1)||_0x2b7ac8[_0x4798('0xcd')][_0x4798('0x88')](_0x4881e1)))continue;}const _0x53a61b=_0x5dc907['get'](_0x3d0a53),_0x3d9155=_0x582873[_0x4798('0xb7')](_0x3d0a53),_0x292b00=_0x582873[_0x4798('0xb7')](_0x59823f),_0x544b3a=_0x3d0a53[_0x4798('0x8c')]&&_0x3d0a53[_0x4798('0x8c')][_0x4798('0xf1')],_0x273751=_0x59823f[_0x4798('0x8c')]&&_0x59823f[_0x4798('0x8c')][_0x4798('0xf1')];if(!_0x544b3a&&_0x53a61b(_0x292b00,_0x3d9155))return _0x21ade4[_0x4798('0x7b')](_0x59823f,_0x3d0a53),_0x582873['delete'](_0x3d0a53),!0x0;if(!_0x273751&&_0x53a61b(_0x3d9155,_0x292b00))return _0x21ade4[_0x4798('0x7b')](_0x3d0a53,_0x59823f),_0x582873['delete'](_0x59823f),!0x0;}return!0x1;}}[_0x4798('0x7b')](_0x2b34ba,_0x22d2d8){if(_0x2b34ba[_0x4798('0xa0')])for(const _0x542a29 of _0x22d2d8[_0x4798('0x4d')]())_0x2b34ba['addRange'](_0x542a29);else{const _0x1fa37a=_0x22d2d8[_0x4798('0xa6')]()[_0x4798('0x4e')];this['_setSuggestionRange'](_0x2b34ba,this[_0x4798('0x16d')][_0x4798('0x93')](_0x2b34ba[_0x4798('0xa6')]()[_0x4798('0xc9')],_0x1fa37a));}_0x22d2d8[_0x4798('0x126')]();}[_0x4798('0x2d')](_0x58ce14,_0x5f1948){const _0x7e3491=_0x58ce14[_0x4798('0xcb')](_0x4798('0x123'))||_0x58ce14[_0x4798('0xcb')]('attribute')?_0x4798('0x7e'):_0x58ce14[_0x4798('0x49')]();return _0x5379c0(this['editor'][_0x4798('0xb')],_0x5f1948+'_'+_0x7e3491+_0x4798('0x1a'));}[_0x4798('0x13f')](){const _0x25e39b=this[_0x4798('0xb8')];_0x58fb5a(this[_0x4798('0x16d')],({left:_0x41581b,entered:_0x5e8f0c})=>{const _0x48dd2f=[];for(const _0x1f4730 of _0x41581b){const {group:_0x3afc5a,type:_0x3cf784}=this[_0x4798('0x65')](_0x1f4730[_0x4798('0x82')]);if(_0x4798('0x14d')===_0x3afc5a){_0x48dd2f[_0x4798('0x6c')](this[_0x4798('0x2d')](_0x3cf784,_0x4798('0x5e')));break;}}for(const _0x2e8341 of _0x5e8f0c){const {group:_0x2e034a,type:_0x223305}=this[_0x4798('0x65')](_0x2e8341[_0x4798('0x82')]);if(_0x4798('0x14d')===_0x2e034a){_0x48dd2f[_0x4798('0x6c')](this['_getMarkerAnnouncementText'](_0x223305,_0x4798('0xd8')));break;}}_0x48dd2f['length']&&_0x25e39b['ui'][_0x4798('0xf4')]['announce'](_0x4798('0x11d'),_0x48dd2f[_0x4798('0x5a')]('\x20'));});}[_0x4798('0x168')](_0x46ab26){if(this[_0x4798('0x73')])return!0x1;const _0xf82215=this[_0x4798('0xb8')],_0x2a1773=_0xf82215['model'][_0x4798('0x8d')][_0x4798('0x155')][_0x4798('0x25')]();if(0x0==_0x2a1773[_0x4798('0xf1')])return!0x1;const _0x35bafb=[],_0x2c9878=_0x2a1773[_0x4798('0x3')](_0x14796c=>_0x4798('0x70')==_0x14796c['type']),_0x3c6cb8=_0x2a1773['filter'](_0x54b70c=>'insert'==_0x54b70c[_0x4798('0xa')]&&'$text'!=_0x54b70c[_0x4798('0x82')]),_0x450451=_0x2a1773[_0x4798('0x3')](_0x2990cf=>_0x4798('0x8a')==_0x2990cf[_0x4798('0xa')]&&_0x4798('0xaf')!=_0x2990cf[_0x4798('0x82')]);for(const _0x2cbc63 of _0x2c9878)_0x35bafb[_0x4798('0x6c')]({'key':_0x2cbc63[_0x4798('0x9a')],'newValue':_0x2cbc63[_0x4798('0x10d')],'oldValue':_0x2cbc63['attributeOldValue'],'range':Ut(_0x2cbc63['range'],_0xf82215['model'])});for(const _0x1d5882 of _0x3c6cb8){const _0x579d4e=_0x450451[_0x4798('0x76')](_0x26522e=>_0x26522e[_0x4798('0x173')]['isEqual'](_0x1d5882[_0x4798('0x173')]));_0x579d4e&&_0x35bafb[_0x4798('0x6c')]({'key':_0x4798('0x145'),'newValue':_0x1d5882[_0x4798('0x82')],'oldValue':_0x579d4e['name'],'range':_0xf82215['model']['createRangeOn'](_0x1d5882[_0x4798('0x173')][_0x4798('0x16')])});}return 0x0!=_0x35bafb[_0x4798('0xf1')]&&this[_0x4798('0xd1')](_0x46ab26,_0x35bafb);}['_processAttributeSuggestions'](_0x3eed0e){let _0x5a941a=!0x1;const _0x2781b1=this['editor']['model']['document']['differ'][_0x4798('0xd0')]()['filter'](_0x1dd66e=>_0x1dd66e['data'][_0x4798('0x10e')]&&_0x1dd66e[_0x4798('0x82')][_0x4798('0xcb')]('suggestion:attribute:'));for(const _0x19883e of _0x2781b1){const {subType:_0x2c6e7b,id:_0x43b15b}=this['_splitMarkerName'](_0x19883e[_0x4798('0x82')]),_0x44ef46=_0x2c6e7b[_0x4798('0x12c')]('|')[0x0];for(const _0x2f99ab of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f99ab['id']!=_0x43b15b&&_0x4798('0x70')==_0x2f99ab[_0x4798('0xa')]&&_0x2f99ab[_0x4798('0x11a')]&&_0x2f99ab[_0x4798('0x11a')][_0x4798('0x125')]==_0x44ef46&&_0x2f99ab[_0x4798('0xa6')]()[_0x4798('0x71')](_0x19883e[_0x4798('0x11a')]['newRange'])&&(this[_0x4798('0x59')](_0x2f99ab,_0x19883e[_0x4798('0x11a')][_0x4798('0x10e')],_0x3eed0e),_0x5a941a=!0x0);}return _0x5a941a;}[_0x4798('0x150')](_0x22503e){this[_0x4798('0xb8')],(this[_0x4798('0x73')]=!0x0,_0x22503e());}['_isRegisteredAttribute'](_0x56c8a9){const _0x1886ad=this[_0x4798('0xc1')](_0x56c8a9),_0x4789a9=this['_inlineAttributeKeys'][_0x4798('0xbb')](_0x56c8a9);return _0x1886ad||_0x4789a9;}['_reduceExistingSuggestions'](_0x5828ec,_0x5dfbb5){if(0x0==_0x5dfbb5['length'])return!0x1;let _0x4c7e12=!0x1;for(const _0x195ecb of _0x5dfbb5){const _0x5ab5b1=this[_0x4798('0x5d')](_0x195ecb[_0x4798('0x38')],_0x4798('0x70'))[_0x4798('0x3')](_0x95f5c4=>!_0x95f5c4[_0x4798('0x144')][_0x4798('0x24')])['map'](_0x51ed15=>_0x51ed15[_0x4798('0x14d')]),_0x11a12a=_0x32f53a({'newValue':_0x195ecb[_0x4798('0x4c')]});_0x5ab5b1['filter'](_0x8530b4=>{const [_0x560319,_0x4a4f48]=_0x8530b4[_0x4798('0x137')]['split']('|');return _0x560319==_0x195ecb[_0x4798('0x125')]&&_0x4a4f48!=_0x11a12a;})[_0x4798('0x89')](_0x1f5da3=>{this[_0x4798('0x59')](_0x1f5da3,_0x195ecb[_0x4798('0x38')],_0x5828ec),_0x4c7e12=!0x0;});}return _0x4c7e12;}[_0x4798('0x59')](_0xee34ef,_0xb41be,_0x45f05c){const _0x5db11c=_0xee34ef[_0x4798('0xa6')]()['getDifference'](_0xb41be);0x0!==_0x5db11c[_0x4798('0xf1')]?0x1!==_0x5db11c['length']?this[_0x4798('0x46')](_0xee34ef,_0xb41be['start'],_0xb41be[_0x4798('0x4e')]):this[_0x4798('0xfd')](_0xee34ef,_0x5db11c[0x0]):_0x45f05c[_0x4798('0x8')](_0xee34ef[_0x4798('0xb2')]());}}class Bt{constructor(_0x1f83d5){this[_0x4798('0x4')]=_0x1f83d5,this[_0x4798('0x16d')]=_0x1f83d5['model'],this[_0x4798('0xc4')]=new Map(),this[_0x4798('0xcf')]=new Map(),this[_0x4798('0xb0')]();}[_0x4798('0xb3')](_0x37915d,_0x2d314c,_0x176bee,_0x3bf373,_0x9b702d,_0x41f304){return new _0x75b5b8(this[_0x4798('0x16d')],{'type':_0x37915d,'subType':_0x2d314c,'id':_0x176bee,'author':_0x3bf373,'creator':_0x3bf373,'attributes':_0x9b702d,'onAttributesChange':_0x41f304,'onAccept':(..._0x2afc31)=>this[_0x4798('0x91')](_0x37915d,_0x2d314c,_0x4798('0x45'))(..._0x2afc31),'onDiscard':(..._0x13c111)=>this['getSuggestionCallback'](_0x37915d,_0x2d314c,_0x4798('0x2'))(..._0x13c111)});}['registerCustomCallback'](_0x226acb,_0x165fc8,_0x551b0a,_0x23c7da){const _0x583f3e=_0x226acb+':'+_0x165fc8+':'+_0x551b0a;this[_0x4798('0xc4')][_0x4798('0x28')](_0x583f3e,_0x23c7da);}[_0x4798('0x91')](_0x452f78,_0x5275c7,_0x2303e1){const _0x2398e9=_0x452f78+':'+_0x5275c7+':'+_0x2303e1;return this[_0x4798('0xc4')]['get'](_0x2398e9)||this['_defaultCallbacks'][_0x4798('0xb7')](_0x452f78+':'+_0x2303e1);}['_registerDefaultCallbacks'](){const _0x47c137=()=>!0x1,_0x3321c3=_0x48a95a=>{_0x48a95a[_0x4798('0x1d')]((_0x5cbca2,_0xe1e0b8)=>_0x5cbca2[_0x4798('0xc9')][_0x4798('0x12f')](_0xe1e0b8[_0x4798('0xc9')])?0x1:-0x1),this['_model'][_0x4798('0x99')](_0xb23c4=>{for(const _0x302cf4 of _0x48a95a){let _0x35e6a9;_0x35e6a9=_0x302cf4['end'][_0x4798('0x108')]&&_0x302cf4[_0x4798('0x4e')][_0x4798('0x14a')]==_0x302cf4[_0x4798('0xc9')][_0x4798('0x16')]?_0xb23c4[_0x4798('0xfc')](_0x302cf4[_0x4798('0xc9')][_0x4798('0x16')],'on'):_0xb23c4[_0x4798('0xfc')](_0x302cf4),this['_model'][_0x4798('0x138')](_0x35e6a9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x357312=(_0xc9d27,_0x1182f2)=>{_0x1182f2&&this[_0x4798('0x16d')][_0x4798('0x99')](_0x113b0b=>{const {commandName:_0x519538,commandParams:_0x2bbbbd=[]}=_0x1182f2,_0x323c3e=_0xc9d27[_0x4798('0x16b')](_0x4acb9b=>(Rt(_0x4acb9b)&&(_0x4acb9b=this[_0x4798('0x16d')]['createRange'](_0x4acb9b[_0x4798('0x4e')])),_0x4acb9b))[_0x4798('0x3')](_0x8cef60=>_0x4798('0x152')!==_0x8cef60[_0x4798('0xfb')][_0x4798('0xea')]);if(_0x323c3e[_0x4798('0xf1')]<0x1)return;const _0xd14430=Array[_0x4798('0x162')](this[_0x4798('0x16d')][_0x4798('0x8d')][_0x4798('0x169')][_0x4798('0x4d')]())[_0x4798('0x16b')](_0x5e146b=>_0x29be14[_0x4798('0x48')](_0x5e146b));_0x113b0b[_0x4798('0x37')](_0x323c3e);for(const _0x422b63 of this[_0x4798('0x4')][_0x4798('0x60')]['commands']())_0x422b63[_0x4798('0x4f')]();_0x2bbbbd[_0x4798('0x6c')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4798('0x18')](_0x519538,..._0x2bbbbd);const _0x6daa36=_0xd14430[_0x4798('0x3')](_0x42e52c=>_0x4798('0x152')!=_0x42e52c[_0x4798('0xfb')]['rootName']);_0x6daa36[_0x4798('0xf1')]>0x0&&_0x113b0b[_0x4798('0x37')](_0x6daa36);for(const _0x318c91 of _0xd14430)_0x318c91[_0x4798('0x42')]();});},_0x32adc5=(_0x16104f,_0x347666)=>0x1==_0x16104f[_0x4798('0xf1')]&&0x1==_0x347666[_0x4798('0xf1')]&&_0x16104f[0x0][_0x4798('0x4e')][_0x4798('0x151')](_0x347666[0x0]['start']),_0x53bebf=(_0x483e36,_0x210576,_0x52b071,_0x429421)=>Gt(_0x483e36,_0x210576,_0x52b071,_0x429421,this[_0x4798('0x16d')])?[_0x483e36,_0x210576]:Gt(_0x210576,_0x483e36,_0x429421,_0x52b071,this[_0x4798('0x16d')])?[_0x210576,_0x483e36]:null;this[_0x4798('0xcf')][_0x4798('0x28')]('insertion:accept',_0x47c137),this['_defaultCallbacks']['set'](_0x4798('0x143'),_0x3321c3),this[_0x4798('0xcf')]['set']('insertion:join',_0x32adc5),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0xad'),_0x53bebf),this[_0x4798('0xcf')][_0x4798('0x28')]('deletion:accept',_0x3321c3),this[_0x4798('0xcf')]['set']('deletion:discard',_0x47c137),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x16f'),_0x32adc5),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x26'),_0x53bebf),this[_0x4798('0xcf')][_0x4798('0x28')]('formatInline:accept',_0x357312),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x74'),_0x47c137),this['_defaultCallbacks'][_0x4798('0x28')](_0x4798('0x8e'),_0x32adc5),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x27'),_0x47c137),this[_0x4798('0xcf')][_0x4798('0x28')]('formatBlock:accept',_0x357312),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x165'),_0x47c137),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0x80'),_0x32adc5),this['_defaultCallbacks'][_0x4798('0x28')]('formatBlock:chain',_0x47c137),this[_0x4798('0xcf')]['set'](_0x4798('0x5b'),_0x47c137),this['_defaultCallbacks']['set'](_0x4798('0x1e'),(_0x40c0cd,_0x592716)=>{if(!_0x592716)return;const _0x1a44a4=this[_0x4798('0x4')][_0x4798('0xe6')][_0x4798('0xb7')](p);this[_0x4798('0x16d')][_0x4798('0x99')](_0x3417ca=>{if('$elementName'==_0x592716[_0x4798('0x125')])for(const _0x10813e of _0x40c0cd){const _0x509997=_0x10813e[_0x4798('0xc9')][_0x4798('0x16')],_0x338b63=_0x592716[_0x4798('0xa4')];_0x3417ca[_0x4798('0x4b')](_0x509997,_0x338b63);}else{if(_0x1a44a4[_0x4798('0xc1')](_0x592716['key']))for(const _0x27463e of _0x40c0cd)void 0x0!==_0x592716[_0x4798('0xa4')]?_0x3417ca[_0x4798('0x164')](_0x592716['key'],_0x592716[_0x4798('0xa4')],_0x27463e[_0x4798('0xc9')][_0x4798('0x16')]):_0x3417ca[_0x4798('0xa1')](_0x592716['key'],_0x27463e['start']['nodeAfter']);else for(const _0x4782fe of _0x40c0cd)_0x592716[_0x4798('0xa4')]?_0x3417ca[_0x4798('0x164')](_0x592716[_0x4798('0x125')],_0x592716[_0x4798('0xa4')],_0x4782fe):_0x3417ca[_0x4798('0xa1')](_0x592716['key'],_0x4782fe);}});}),this[_0x4798('0xcf')][_0x4798('0x28')](_0x4798('0xdb'),_0x32adc5);}}function xt(_0x1fc42a,_0x4761d4,_0x3f7da0){for(const _0x508b26 of _0x4761d4['parent'][_0x4798('0x163')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x508b26[_0x4798('0xfb')]==_0x508b26)return!0x1;if(!_0x3f7da0['containsItem'](_0x508b26))return!0x1;if(_0x1fc42a[_0x4798('0x107')](_0x508b26)||_0x1fc42a[_0x4798('0x88')](_0x508b26))return!0x0;}return!0x1;}function Rt(_0x5dd7b7){return _0x5dd7b7[_0x4798('0x4e')][_0x4798('0x14a')]==_0x5dd7b7['start']['nodeAfter']&&_0x5dd7b7['end'][_0x4798('0x90')];}function Tt(_0x52461a,_0x37020b,_0x2a5b61,_0x7ccf06){const _0x140656=_0x4a48e5=>!_0x4a48e5[_0x4798('0x142')]['is'](_0x4798('0x158'))&&!_0x7ccf06['isObject'](_0x4a48e5['item']),_0x75ca86=_0x52461a[_0x4798('0xc9')][_0x4798('0x157')](_0x140656),_0x11e853=_0x52461a[_0x4798('0x4e')][_0x4798('0x157')](_0x140656,{'direction':_0x4798('0xa9')});return(!_0x52461a[_0x4798('0xc9')][_0x4798('0x151')](_0x75ca86)||!_0x52461a[_0x4798('0x4e')][_0x4798('0x151')](_0x11e853))&&(_0x75ca86[_0x4798('0x12f')](_0x11e853)?_0x2a5b61['updateMarker'](_0x37020b,{'range':_0x2a5b61[_0x4798('0x93')](_0x75ca86,_0x11e853)}):_0x2a5b61['removeMarker'](_0x37020b),!0x0);}function Et(_0x268528){return _0x32f53a(_0x268528);}function Vt(_0x204dc3){const _0x1e28bc=_0x204dc3[_0x4798('0xc9')][_0x4798('0x16')];return _0x1e28bc&&_0x1e28bc['is'](_0x4798('0x12e'));}function Ut(_0x636576,_0x27b443){return null==_0x636576[_0x4798('0x4e')][_0x4798('0x50')]&&_0x636576[_0x4798('0x4e')][_0x4798('0x14a')]==_0x636576[_0x4798('0xc9')][_0x4798('0x16')]?Ot(_0x636576[_0x4798('0xc9')][_0x4798('0x16')],_0x27b443):_0x636576;}function Ot(_0x4426ba,_0x14515b){const _0x576aa8=_0x14515b['schema']['isObject'](_0x4426ba)||_0x14515b['schema']['isSelectable'](_0x4426ba);return _0x14515b[_0x4798('0x93')](_0x14515b[_0x4798('0x9c')](_0x4426ba,_0x4798('0xc5')),_0x576aa8?_0x14515b['createPositionAfter'](_0x4426ba):_0x14515b[_0x4798('0x9c')](_0x4426ba,_0x4798('0x4e')));}function Gt(_0x1ff3c7,_0x41e05e,_0x282168,_0xb0cd5e,_0x2a2a3d){if(!Ft(_0x1ff3c7,_0x41e05e))return!0x1;if(_0x282168[_0x4798('0x4e')][_0x4798('0x151')](_0xb0cd5e[_0x4798('0xc9')]))return!0x0;if(_0x1ff3c7[_0x4798('0xa')]!=_0x41e05e[_0x4798('0xa')])return!0x1;if(!_0x282168['end'][_0x4798('0x12d')](_0xb0cd5e[_0x4798('0xc9')]))return!0x1;const _0x48201a=_0x2a2a3d[_0x4798('0x93')](_0x282168['end'],_0xb0cd5e['start'])[_0x4798('0xff')]();for(const _0x4d7305 of _0x48201a)if([_0x4798('0x57'),_0x4798('0x6a')]['includes'](_0x4d7305[_0x4798('0xa')])&&_0x2a2a3d[_0x4798('0xcd')][_0x4798('0x88')](_0x4d7305[_0x4798('0x142')]))return!0x1;return!0x0;}function Ft(_0x432cb8,_0xd6b3a1,_0x40588c=[]){return!(!_0x432cb8[_0x4798('0x2b')]||!_0xd6b3a1[_0x4798('0x2b')])&&_0x1c6142(_0x55cd11(_0x432cb8[_0x4798('0xfe')],_0x40588c),_0x55cd11(_0xd6b3a1[_0x4798('0xfe')],_0x40588c));}function Pt(_0x5e8584,_0x30f44e){const _0x2ca3c1=Lt(_0x5e8584[_0x4798('0xfe')]),_0x8b82b2=Lt(_0x30f44e);if(!_0x5e8584[_0x4798('0x2b')])return!0x1;for(const _0x1d93aa of Object[_0x4798('0x58')](_0x8b82b2))if(!_0x1c6142(_0x2ca3c1[_0x1d93aa],_0x8b82b2[_0x1d93aa]))return!0x1;return!0x0;}function Lt(_0x2ad8fa){const _0x1a08b3=Object[_0x4798('0x119')]({},_0x2ad8fa);return delete _0x1a08b3[_0x4798('0x114')],delete _0x1a08b3[_0x4798('0x118')],_0x1a08b3;}
|