@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231007.0 → 0.0.0-nightly-20231009.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20231009.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"ckeditor5": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20231009.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231009.0",
|
|
44
44
|
"lodash-es": "4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x53c4=['never','has','isMultiRange','getMultiRangeId','detach','after','removeMarker','insertion:','insert','editor','ck-suggestion-marker','insertion','_cutOutSuggestionMarker','originalSuggestionId','$textProxy','change','getNearestSelectionRange','notReady','filter','containerElement','writer','bindElementToMarker','_createSuggestion','multipleBlocks','data-suggestion','buildSuggestion','forceDefaultExecution','hasComments','includes','start','fromRange','isBlock','formatBlock:','suggestionChanged','ck-suggestion-marker--active','discardSuggestion','multi','_getSuggestionData','showSuggestionHighlights','isSelectable','_suggestionFactory','formatGroupId','registerPostFixer','formatBlock:discard','PendingActions','commandName','open','_isDataLoaded','removeComment','fire','consume','upcast','nodeAfter','getCommentThread','_enabledCommands','updateSuggestion','createElement','PENDING_ACTION_SUGGESTION','data','containsRange','_addSuggestionMarker','acceptSelectedSuggestions','batch','marker-count','isAfter','oldRange','item','accepted','keys','enableCommand','remove','editingDowncast','getAttribute','_getAuthorFromId','tablePasteChainId','range','deletion:discard','targetPosition','suggestion-type','getRanges','isNextTo','deletion','get','_updateSuggestionData','fromCharCode','createPositionAfter','assign','from','createdAt','widget','name','addMarker:suggestion:formatBlock','acceptSuggestion','isDocumentOperation','$graveyard','attributes','change:activeMarkers','activeMarkers','authoredAt','track-changes-adapter-already-set','insertion:discard','addComment','formatInline:accept','every','_editor','_refreshSuggestionsChain','addRange','markerToData','acceptAllSuggestions','map','dataToMarker','stopListening','split','_mergeNestedSuggestions','addMarker:suggestion','push','registerCustomCallback','$marker','getChangedMarkers','author','add','track-changes-suggestion-not-found','model','removeMarker:suggestion:formatBlock','createRange','locale','markDeletion','chain','removeClass','low','hasSuggestion','removed','insertion:join','_adapter','adapter','addSuggestion','parent','documentSelection','deletion:join','plugins','suggestion:','getLastMatchingPosition','mapper','@external','high','rethrowUnexpectedError','subType','ck-suggestion-marker-','_getExternalAuthor','discardAllSuggestions','options','removeAttribute','_splitMarkerName','value','markBlockFormat','return','isObject','backward','commands','isTouching','containsRangeInObject','resolve','getAllAdjacentSuggestions','unbind','_addThreadToSuggestion','_onDiscard','nodeBefore','_suggestionState','document','conversion','refresh','addSuggestionData','discard','isInContent','isOwn','rootName','getMarkers','end','insertContent','isInsideObject','delete','stop','set','_commentsRepository','_findSuggestions','isAtStart','before','trackChanges.trackFormatChanges','addHighlight','commentThread','howMany','deletion:chain','track-changes-command-not-found','values','creator','ck-suggestion-marker-formatBlock','newRange','addMarker','updateMarker','length','forward','size','clear','authorName','splitPosition','getShiftedBy','consumable','some','_suggestions','type','_setSuggestionData','addCommentThread','getCustomProperty','track-changes-suggestion-data-mismatch','formatInline:join','_breakSuggestionMarker','formatInline:chain','position','removeMarkers','normal','join','differ','isRemovable','setAttribute','substr','getIntersection','setSelection','isAtEnd','TrackChangesEditing','unbindElementFromMarkerName','splice','trackChangesCommand','isBefore','_registerDefaultCallbacks','getFirstRange','root','always','formatBlock:accept','dataDowncast','formatInline:discard','formatInline','_joinSuggestions','editing','_defaultCallbacks','change:data','getSuggestionCallback','config','_isForcedDefaultExecutionBlock','_rangeIsInLocalUserInsertion','trackChanges','group','markerName','markerToHighlight','_removeSuggestion','lowest','collaboration.channelId','formatBlock','addClass','getWalker','Users','setTo','previous','isLimit','elementStart','deletion:accept','_trackFormatChanges','then','execute','listenTo','_handleNewSuggestionMarker','track-changes-user-not-found','_checkSuggestionCorrectness','isEqual','enableReadOnlyMode','next','createSelection','getSuggestion','applyOperation','schema','_joinWithAdjacentSuggestions','suggestion','highest','addMarkerName','suggestionLoaded','markInsertion','element','rejected','elementToElement','toViewElement','isIntersectingWithRange','markMultiRangeDeletion','CommentsRepository','for','getSuggestions','createPositionBefore','deleteContent','elementEnd','containsPosition','skipNestingCheck','getDifference','isCollapsed','_descriptionFactory','formatBlock:join','isUndo','ready','markMultiRangeInsertion','markers','createRangeIn','getChanges','getUser','pluginName','trackChanges.mergeNestedSuggestions','isLocal','_model','accept','markMultiRangeBlockFormat','define','insertion:accept','selection','sort','_customCallbacks','createPositionAt','dataReady','_setSuggestionRange'];(function(_0x710fd4,_0x53c435){const _0xe0fe8b=function(_0x392e82){while(--_0x392e82){_0x710fd4['push'](_0x710fd4['shift']());}};_0xe0fe8b(++_0x53c435);}(_0x53c4,0x81));const _0xe0fe=function(_0x710fd4,_0x53c435){_0x710fd4=_0x710fd4-0x0;let _0xe0fe8b=_0x53c4[_0x710fd4];return _0xe0fe8b;};import{Plugin as _0x5ee91d,PendingActions as _0x4e5a37}from'ckeditor5/src/core';import{LiveRange as _0x1d44fa}from'ckeditor5/src/engine';import{CKEditorError as _0x27bad2,uid as _0x4d9555,priorities as _0x569d50,logWarning as _0x566570}from'ckeditor5/src/utils';import{toWidget as _0x322868}from'ckeditor5/src/widget';import{Users as _0x2c5f66,hashObject as _0x292271}from'ckeditor5-collaboration/src/collaboration-core';import _0x4da1ba from'./commands/trackchangescommand';import _0x3a9ef5 from'./commands/acceptsuggestioncommand';import _0x39d705 from'./commands/discardsuggestioncommand';import _0x34b0db from'./commands/executeonallsuggestionscommand';import _0x5c582c from'./commands/executeonselectedsuggestionscommand';import _0x7857d8 from'./suggestion';import _0x7d5af5 from'./suggestiondescriptionfactory';import _0x5e53b1 from'./integrations/aiassistant';import _0x4dc17d from'./integrations/alignment';import _0x1952cc from'./integrations/basicstyles';import _0x230a22 from'./integrations/blockquote';import _0x30296e from'./integrations/ckbox';import _0x528790 from'./integrations/codeblock';import _0x14e553 from'./integrations/comments';import _0x3290b0 from'./integrations/deletecommand';import _0x5e2609 from'./integrations/documentlist';import _0x5bd2de from'./integrations/entercommand';import _0x458825 from'./integrations/findandreplace';import _0x472912 from'./integrations/font';import _0x264db4 from'./integrations/formatpainter';import _0x288ffb from'./integrations/heading';import _0xcab58c from'./integrations/highlight';import _0x53816d from'./integrations/horizontalline';import _0x28811f from'./integrations/htmlembed';import _0x36bf97 from'./integrations/image';import _0x1f6c41 from'./integrations/imagereplace';import _0x505062 from'./integrations/importword';import _0x14b899 from'./integrations/indent';import _0xaf06d6 from'./integrations/inputcommand';import _0x487e68 from'./integrations/link';import _0xeb86aa from'./integrations/list';import _0x13286b from'./integrations/listproperties';import _0x4affeb from'./integrations/mediaembed';import _0x594769 from'./integrations/mention';import _0x47e02b from'./integrations/pagebreak';import _0x233312 from'./integrations/paragraph';import _0x22091f from'./integrations/removeformat';import _0x42e039 from'./integrations/restrictededitingmode';import _0x26ee01 from'./integrations/shiftentercommand';import _0x3059a0 from'./integrations/standardeditingmode';import _0x1380af from'./integrations/style';import _0x13f377 from'./integrations/table';import _0x530587 from'./integrations/tablemergesplit';import _0x135268 from'./integrations/tableheadings';import _0x561264 from'./integrations/tableclipboard';import _0x4cb37d from'./integrations/tablecolumnresize';import _0x4e79c2 from'./integrations/template';import _0x2620e4 from'./integrations/tableofcontents';import _0x201540 from'./integrations/title';import _0x42284c from'./integrations/undo';import{getTranslation as _0x4a8c73}from'./utils/common-translations';import _0x5ba7fc from'./integrations/tablecaption';import _0x27bae0 from'./integrations/documentlistproperties';import _0x3cd6eb from'./integrations/tableproperties';import{isEqual as _0x85de1d}from'lodash-es';export default class p extends _0x5ee91d{static get['requires'](){return[_0xe0fe('0xa2'),_0x2c5f66,_0x4e5a37,_0x5e53b1,_0x4dc17d,_0x1952cc,_0x230a22,_0x30296e,_0x528790,_0x14e553,_0x3290b0,_0x5e2609,_0x27bae0,_0x5bd2de,_0x458825,_0x472912,_0x264db4,_0x288ffb,_0xcab58c,_0x53816d,_0x28811f,_0x36bf97,_0x1f6c41,_0x505062,_0x14b899,_0xaf06d6,_0x487e68,_0xeb86aa,_0x13286b,_0x4affeb,_0x594769,_0x47e02b,_0x233312,_0x22091f,_0x42e039,_0x26ee01,_0x3059a0,_0x1380af,_0x13f377,_0x530587,_0x135268,_0x5ba7fc,_0x561264,_0x4cb37d,_0x2620e4,_0x3cd6eb,_0x4e79c2,_0x201540,_0x42284c];}static get[_0xe0fe('0xb5')](){return _0xe0fe('0x63');}constructor(_0x3fc5bb){function _0x2f0554(_0x519016){return _0x519016['map'](_0x594ba3=>String[_0xe0fe('0x117')](_0x594ba3))[_0xe0fe('0x5b')]('');}super(_0x3fc5bb),this[_0xe0fe('0x35')](_0xe0fe('0x124'),[]),this['on'](_0xe0fe('0x123'),(_0x4ef96a,_0xb5f236,_0xc69519,_0x1f9644)=>{this[_0xe0fe('0xb8')]['change'](()=>{for(const _0x4a9451 of[..._0x1f9644,..._0xc69519])this[_0xe0fe('0xb8')][_0xe0fe('0xb1')]['has'](_0x4a9451)&&_0x3fc5bb[_0xe0fe('0x71')]['reconvertMarker'](_0x4a9451);});}),this[_0xe0fe('0xac')]=new _0x7d5af5(this[_0xe0fe('0xcc')][_0xe0fe('0x13d')]['schema'],this[_0xe0fe('0xcc')]['locale']),this[_0xe0fe('0x4')]=null,this[_0xe0fe('0xeb')]=new Bt(this[_0xe0fe('0xcc')]),this[_0xe0fe('0x4f')]=new Map(),this[_0xe0fe('0x36')]=_0x3fc5bb[_0xe0fe('0xa')][_0xe0fe('0x115')]('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this[_0xe0fe('0xcc')]['model'],this[_0xe0fe('0x26')]=new WeakMap(),this[_0xe0fe('0x76')]=!0x1,_0x3fc5bb[_0xe0fe('0x75')]['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3fc5bb['config']['get'](_0xe0fe('0x3a')),_0x3fc5bb[_0xe0fe('0x75')][_0xe0fe('0xbb')](_0xe0fe('0xb6'),!0x0),this[_0xe0fe('0x134')]=_0x3fc5bb['config'][_0xe0fe('0x115')]('trackChanges.mergeNestedSuggestions'),this[_0xe0fe('0x66')]=new _0x4da1ba(_0x3fc5bb,this[_0xe0fe('0xf9')]),this[_0x2f0554([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2f0554([0x34,0x30,0x34,0x36,0x32,0x30,0x31,0x34]);}['init'](){const _0x24c247=this['editor'];_0x24c247['conversion'][_0xe0fe('0xa3')]('editingDowncast')[_0xe0fe('0x7b')]({'model':_0xe0fe('0x97'),'view':_0x22b028=>{const {id:_0x158269,type:_0xa4b40c}=this[_0xe0fe('0x17')](_0x22b028[_0xe0fe('0x7a')]),_0x5f3d23=[_0xe0fe('0xcd'),_0xe0fe('0x12')+_0xa4b40c];let _0x23d01f=0xbb8;return this['activeMarkers']['includes'](_0x22b028['markerName'])&&(_0x5f3d23['push'](_0xe0fe('0xe5')),_0x23d01f=0xbc2),_0xe0fe('0x114')==_0xa4b40c&&(_0x23d01f+=0x5),{'classes':_0x5f3d23,'attributes':{'data-suggestion':_0x158269},'priority':_0x23d01f};}}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')](_0xe0fe('0x6d'))['add'](_0x52d9fc=>{_0x52d9fc['on'](_0xe0fe('0x135'),(_0x7f6575,_0x198ce2,_0x1991f4)=>{if(!_0x1991f4[_0xe0fe('0x15')][_0xe0fe('0xe9')])return;const _0x18b280=_0x198ce2[_0xe0fe('0x105')];if(!_0x18b280)return;const _0x5795ba=_0x1991f4[_0xe0fe('0xd')][_0xe0fe('0x9f')](_0x18b280);_0x24c247['model']['schema'][_0xe0fe('0x1b')](_0x18b280)&&_0x5795ba&&!_0x5795ba[_0xe0fe('0x53')](_0xe0fe('0x11c'))&&_0x5795ba['is'](_0xe0fe('0xd6'))&&_0x322868(_0x5795ba,_0x1991f4['writer']);},{'priority':_0xe0fe('0xf')});}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')](_0xe0fe('0x6d'))[_0xe0fe('0x7b')]({'model':_0xe0fe('0x97'),'view':(_0x55e939,_0x51c997)=>{if(!_0x51c997[_0xe0fe('0x15')][_0xe0fe('0xe9')])return null;const {type:_0x380903}=this[_0xe0fe('0x17')](_0x55e939[_0xe0fe('0x7a')]);return{'classes':[_0xe0fe('0xcd'),'ck-suggestion-marker-'+_0x380903],'priority':0xbb8};}});const _0x1783c4=({showActiveMarkers:_0x3f2668=!0x0}={})=>(_0x36fa40,_0xe4186e,_0x1fb531)=>{if(!_0xe4186e[_0xe0fe('0x105')])return;if(_0xe4186e[_0xe0fe('0x105')]['is'](_0xe0fe('0xbd')))return void _0x1fb531[_0xe0fe('0x4d')]['consume'](_0xe4186e[_0xe0fe('0x105')],_0x36fa40['name']);const _0x1e6f96=_0x1fb531[_0xe0fe('0xd')][_0xe0fe('0x9f')](_0xe4186e[_0xe0fe('0x105')]);if(!(_0xe4186e['item']['is'](_0xe0fe('0x9c'))&&_0x24c247['model'][_0xe0fe('0x95')]['isBlock'](_0xe4186e[_0xe0fe('0x105')])&&!_0x1e6f96[_0xe0fe('0x53')](_0xe0fe('0x3b'))))return;const {id:_0xce6a3f}=this[_0xe0fe('0x17')](_0xe4186e['markerName']);_0x1fb531[_0xe0fe('0xd7')][_0xe0fe('0x80')]([_0xe0fe('0xcd'),_0xe0fe('0x42')],_0x1e6f96),_0x1fb531[_0xe0fe('0xd7')][_0xe0fe('0x5e')](_0xe0fe('0xdb'),_0xce6a3f,_0x1e6f96),_0x1fb531[_0xe0fe('0xd')][_0xe0fe('0xd8')](_0x1e6f96,_0xe4186e[_0xe0fe('0x7a')]),_0x3f2668&&(this[_0xe0fe('0x124')][_0xe0fe('0xdf')](_0xe4186e[_0xe0fe('0x7a')])?_0x1fb531['writer'][_0xe0fe('0x80')](_0xe0fe('0xe5'),_0x1e6f96):_0x1fb531[_0xe0fe('0xd7')][_0xe0fe('0x143')](_0xe0fe('0xe5'),_0x1e6f96));for(const _0x1dd094 of _0x24c247['model'][_0xe0fe('0xb2')](_0xe4186e[_0xe0fe('0x105')])['getItems']())_0x1fb531[_0xe0fe('0x4d')]['consume'](_0x1dd094,_0x36fa40['name']);_0x1fb531[_0xe0fe('0x4d')][_0xe0fe('0xf5')](_0xe4186e['item'],_0x36fa40['name']);};_0x24c247[_0xe0fe('0x28')]['for'](_0xe0fe('0x6d'))[_0xe0fe('0x13b')](_0x45d08b=>{_0x45d08b['on'](_0xe0fe('0x11e'),(_0x4ef9ef,_0x3c5535,_0x585143)=>{_0x585143['options'][_0xe0fe('0xe9')]&&_0x1783c4({'showActiveMarkers':!0x1})(_0x4ef9ef,_0x3c5535,_0x585143);},{'priority':_0xe0fe('0x98')});}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')](_0xe0fe('0x6d'))[_0xe0fe('0x12e')]({'model':'suggestion','view':(_0x47cee9,_0x59e823)=>_0x59e823[_0xe0fe('0x15')][_0xe0fe('0xe9')]?null:{'group':_0xe0fe('0x97'),'name':_0x47cee9[_0xe0fe('0x5f')](0xb)}}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')]('upcast')[_0xe0fe('0x9e')]({'view':{'name':_0xe0fe('0x97'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x587d65,{writer:_0x3a21fe})=>{let _0x29e78d=_0xe0fe('0xb')+_0x587d65[_0xe0fe('0x10b')](_0xe0fe('0x111'))+':'+_0x587d65[_0xe0fe('0x10b')]('id');return _0x587d65[_0xe0fe('0x10b')]('marker-count')&&(_0x29e78d+=':'+_0x587d65[_0xe0fe('0x10b')](_0xe0fe('0x102'))),_0x3a21fe[_0xe0fe('0xfb')](_0xe0fe('0x138'),{'data-name':_0x29e78d});}}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')](_0xe0fe('0xf6'))[_0xe0fe('0x131')]({'view':_0xe0fe('0x97')}),_0x24c247['conversion'][_0xe0fe('0xa3')](_0xe0fe('0x10a'))['add'](_0x6fde10=>{_0x6fde10['on'](_0xe0fe('0x11e'),_0x1783c4(),{'priority':'high'});}),_0x24c247[_0xe0fe('0x28')][_0xe0fe('0xa3')](_0xe0fe('0x10a'))[_0xe0fe('0x13b')](_0x517ce9=>{_0x517ce9['on'](_0xe0fe('0x13e'),(_0x14ef25,_0x3d6206,_0x52a2a5)=>{const _0x1402d8=_0x52a2a5['mapper']['markerNameToElements'](_0x3d6206[_0xe0fe('0x7a')]);if(_0x1402d8)for(const _0x1c989b of _0x1402d8)_0x1c989b['getCustomProperty'](_0xe0fe('0x3b'))||(_0x52a2a5[_0xe0fe('0xd7')]['removeClass']([_0xe0fe('0xcd'),_0xe0fe('0x42'),'ck-suggestion-marker--active'],_0x1c989b),_0x52a2a5[_0xe0fe('0xd7')][_0xe0fe('0x16')]('data-suggestion',_0x1c989b),_0x52a2a5[_0xe0fe('0xd')][_0xe0fe('0x64')](_0x1c989b,_0x3d6206[_0xe0fe('0x7a')]));},{'priority':'high'});}),_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x27')][_0xe0fe('0xed')](_0x4dad6d=>{let _0x18494f=!0x1;const _0x117b03=Array[_0xe0fe('0x11a')](_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x27')][_0xe0fe('0x5c')]['getChangedMarkers']()),_0x548022=new Set();for(const {name:_0xab85f5,data:_0x259085}of _0x117b03){const {group:_0x2ba1e3,type:_0x1e2c97,id:_0x1caee9}=this[_0xe0fe('0x17')](_0xab85f5);if(_0xe0fe('0x97')!==_0x2ba1e3)continue;const _0xaad189=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x1caee9);if(null!=_0x259085[_0xe0fe('0x43')]){_0xe0fe('0x6f')==_0x1e2c97&&(_0x18494f=_0x18494f||$t(_0x259085[_0xe0fe('0x43')],_0xab85f5,_0x4dad6d,_0x24c247['model'][_0xe0fe('0x95')]));if(_0x259085['newRange']['isCollapsed']||'$graveyard'==_0x259085[_0xe0fe('0x43')]['root'][_0xe0fe('0x2e')]||_0xe0fe('0x7f')==_0x1e2c97&&!Rt(_0x259085[_0xe0fe('0x43')])||_0xe0fe('0x114')==_0x1e2c97&&!(!Mt(_0xb8844e=_0x259085[_0xe0fe('0x43')])&&!function(_0x1e2239){return _0x1e2239[_0xe0fe('0xe0')]['parent']==_0x1e2239[_0xe0fe('0x30')][_0xe0fe('0x25')]&&_0x1e2239['start'][_0xe0fe('0x62')];}(_0xb8844e)))_0x4dad6d['removeMarker'](_0xab85f5),_0x18494f=!0x0;else{if(!_0xaad189||!_0xaad189[_0xe0fe('0x2c')])continue;_0x548022[_0xe0fe('0x13b')](_0xaad189);}}}var _0xb8844e;return _0x548022[_0xe0fe('0x48')]>0x0&&(_0x18494f=!!this[_0xe0fe('0x96')](_0x548022)||_0x18494f),_0x18494f;}),_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x27')][_0xe0fe('0xed')](_0x2737e5=>{let _0x4b4f11=!0x1;for(const _0x9871ac of _0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x27')][_0xe0fe('0x5c')][_0xe0fe('0xb3')]()){if(_0xe0fe('0xcb')!=_0x9871ac['type'])continue;const _0x4b2144=_0x9871ac[_0xe0fe('0x58')]['getShiftedBy'](_0x9871ac[_0xe0fe('0x46')]);if(_0x4b2144[_0xe0fe('0x62')])for(const _0x414921 of this[_0xe0fe('0x4f')][_0xe0fe('0x40')]()){if(_0x414921['isMultiRange']||!_0x414921[_0xe0fe('0x2c')])continue;if(_0xe0fe('0x7f')!=_0x414921['type'])continue;const _0x1b75e9=_0x414921[_0xe0fe('0x69')]();if(_0x1b75e9[_0xe0fe('0xe0')][_0xe0fe('0x7')]!=_0x1b75e9['end'][_0xe0fe('0x7')]&&_0x1b75e9[_0xe0fe('0x30')]['isEqual'](_0x9871ac['position'])){const _0x2e15e3=_0x24c247['model'][_0xe0fe('0x13f')](_0x1b75e9[_0xe0fe('0xe0')],_0x4b2144);_0x2737e5[_0xe0fe('0x45')](_0x414921['getFirstMarker'](),{'range':_0x2e15e3}),_0x4b4f11=!0x0;}}}return _0x4b4f11;}),_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0xb1')]['on']('update:suggestion',(_0x3f1518,_0x136084,_0x33d63)=>{if(null==_0x33d63){const {id:_0x261530}=this[_0xe0fe('0x17')](_0x136084['name']),_0x3709d7=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x261530);_0x3709d7&&_0x3709d7['addMarkerName'](_0x136084[_0xe0fe('0x11d')]);}}),_0x24c247[_0xe0fe('0x13d')]['document']['on'](_0xe0fe('0x73'),()=>{const _0x46adcf=Array[_0xe0fe('0x11a')](_0x24c247['model'][_0xe0fe('0x27')][_0xe0fe('0x5c')][_0xe0fe('0x139')]())[_0xe0fe('0xd5')](_0x3ef21e=>_0xe0fe('0x97')===this['_splitMarkerName'](_0x3ef21e[_0xe0fe('0x11d')])[_0xe0fe('0x79')]);if(0x0===_0x46adcf[_0xe0fe('0x46')])return;_0x46adcf[_0xe0fe('0xbe')]((_0xd081f0,_0x22f2ed)=>{const _0x6f011=_0xd081f0[_0xe0fe('0xfd')][_0xe0fe('0x104')],_0x14962d=_0x22f2ed[_0xe0fe('0xfd')][_0xe0fe('0x104')];return null===_0x6f011&&null===_0x14962d?0x0:null===_0x6f011&&null!==_0x14962d?-0x1:null!==_0x6f011&&null===_0x14962d?0x1:_0x6f011[_0xe0fe('0xe0')][_0xe0fe('0x67')](_0x14962d['start'])?-0x1:0x1;});const _0x17918b=new Set(),_0x74a5cd=new Set();for(const {name:_0x2715ea,data:_0x4e1127}of _0x46adcf){const {id:_0x33c5f6}=this[_0xe0fe('0x17')](_0x2715ea);if(null===_0x4e1127['oldRange']){const _0xc35c3f=this[_0xe0fe('0x8c')](_0x2715ea);_0x74a5cd['add'](_0xc35c3f);}else{const _0xfda776=this['_suggestions'][_0xe0fe('0x115')](_0x33c5f6);null!==_0x4e1127[_0xe0fe('0x43')]||_0xfda776[_0xe0fe('0x2c')]?(_0x17918b[_0xe0fe('0x13b')](_0xfda776['head']),_0x74a5cd['add'](_0xfda776)):this[_0xe0fe('0x7c')](_0xfda776);}}_0x74a5cd['size']>0x0&&this[_0xe0fe('0x12c')](_0x74a5cd);for(const _0x307f83 of _0x17918b)this['fire'](_0xe0fe('0xe4'),_0x307f83);}),_0x24c247[_0xe0fe('0x13d')]['on'](_0xe0fe('0x94'),(_0x26a430,_0x31f936)=>{const _0x2c295f=_0x31f936[0x0];if(!this[_0xe0fe('0x4f')][_0xe0fe('0x48')])return;if(!_0x2c295f[_0xe0fe('0x120')])return;if(_0x2c295f[_0xe0fe('0x101')][_0xe0fe('0xae')]||!_0x2c295f[_0xe0fe('0x101')][_0xe0fe('0xb7')])return;let _0x3dd607,_0x4ba84a;switch(_0x2c295f[_0xe0fe('0x50')]){case _0xe0fe('0xcb'):_0x3dd607=_0x24c247['model'][_0xe0fe('0xc0')](_0x2c295f[_0xe0fe('0x58')]),_0x4ba84a=_0x3dd607[_0xe0fe('0x4c')](_0x2c295f[_0xe0fe('0x3d')]);break;case'split':_0x3dd607=_0x24c247['model']['createPositionAt'](_0x2c295f[_0xe0fe('0x4b')]),_0x4ba84a=_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0xc0')](_0x2c295f['moveTargetPosition']);break;case'move':_0x3dd607=_0x24c247[_0xe0fe('0x13d')]['createPositionAt'](_0x2c295f[_0xe0fe('0x110')]),_0x4ba84a=_0x3dd607[_0xe0fe('0x4c')](_0x2c295f['howMany']);break;default:return;}const _0x22488a=_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x13f')](_0x3dd607,_0x4ba84a);_0x24c247['model'][_0xe0fe('0xd2')](()=>{for(const {suggestion:_0x2dbc5f,meta:_0x2e23ea}of this[_0xe0fe('0x37')](_0x22488a)){if(_0x2dbc5f[_0xe0fe('0xc5')])continue;if('formatInline'==_0x2dbc5f[_0xe0fe('0x50')])continue;const _0x3f856b=_0x2dbc5f[_0xe0fe('0xfd')]&&_0x2dbc5f['data'][_0xe0fe('0xda')];(_0xe0fe('0x7f')!=_0x2dbc5f[_0xe0fe('0x50')]||'split'==_0x2c295f[_0xe0fe('0x50')]&&!_0x3f856b)&&(_0x2e23ea['containsRangeInObject']||_0xe0fe('0xce')==_0x2dbc5f['type']&&_0x2e23ea[_0xe0fe('0x2d')]||_0x2dbc5f[_0xe0fe('0x69')]()['containsRange'](_0x22488a)&&this[_0xe0fe('0x56')](_0x2dbc5f,_0x3dd607,_0x4ba84a));}});},{'priority':_0xe0fe('0x7d')}),_0x24c247['model']['on'](_0xe0fe('0xa6'),(_0x10e577,_0x7e69f4)=>{const _0x546b15=_0x7e69f4[0x0],_0x199768=_0x7e69f4[0x1];if(_0x199768&&_0x199768[_0xe0fe('0xdd')])return;if(this[_0xe0fe('0x76')])return;if(!this[_0xe0fe('0x66')][_0xe0fe('0x18')])return;if(_0x546b15[_0xe0fe('0xab')])return;const _0x5545b0=_0x24c247['model'][_0xe0fe('0x95')],{start:_0x30f5f6,end:_0x3c6b25}=_0x546b15[_0xe0fe('0x69')](),_0x34df98=_0x30f5f6[_0xe0fe('0xf7')]&&_0x5545b0[_0xe0fe('0x85')](_0x30f5f6[_0xe0fe('0xf7')])?null:_0x5545b0[_0xe0fe('0xd3')](_0x30f5f6,_0xe0fe('0x47')),_0x4aa255=_0x3c6b25[_0xe0fe('0x25')]&&_0x5545b0[_0xe0fe('0x85')](_0x3c6b25['nodeBefore'])?null:_0x5545b0[_0xe0fe('0xd3')](_0x3c6b25,'backward'),_0x18b563=_0x24c247['model'][_0xe0fe('0x13f')](_0x34df98?_0x34df98[_0xe0fe('0xe0')]:_0x30f5f6,_0x4aa255?_0x4aa255[_0xe0fe('0x30')]:_0x3c6b25);_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0xd2')](_0x42459d=>{this[_0xe0fe('0x141')](_0x18b563);const _0x4617eb=_0x24c247[_0xe0fe('0x13d')]['schema'][_0xe0fe('0xd3')](_0x18b563[_0xe0fe('0xe0')]);_0x546b15['is'](_0xe0fe('0x8'))?_0x42459d[_0xe0fe('0x61')](_0x4617eb):_0x546b15[_0xe0fe('0x83')](_0x4617eb);}),_0x10e577[_0xe0fe('0x34')]();},{'priority':_0x569d50[_0xe0fe('0x5a')]+0xa}),_0x24c247[_0xe0fe('0x13d')]['on'](_0xe0fe('0x31'),(_0x4f32a4,_0xaa0394)=>{const _0x184062=_0xaa0394[_0xaa0394['length']-0x1];_0x184062&&_0x184062['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0xe0fe('0x18')]&&(_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0xd2')](()=>{let _0x14052d=_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x31')](_0xaa0394[0x0],_0xaa0394[0x1],_0xaa0394[0x2],{'forceDefaultExecution':!0x0});if(!_0x14052d)return;_0x4f32a4[_0xe0fe('0x1a')]=_0x14052d['clone']();const _0x1d2db5=_0x14052d['end'][_0xe0fe('0x25')],_0x3145e3=_0x24c247[_0xe0fe('0x13d')]['schema'];_0x1d2db5&&_0x3145e3[_0xe0fe('0xe2')](_0x1d2db5)&&!_0x3145e3['isObject'](_0x1d2db5)&&(_0x14052d=_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0x13f')](_0x14052d['start'],_0x24c247[_0xe0fe('0x13d')][_0xe0fe('0xc0')](_0x1d2db5,'end'))),this[_0xe0fe('0x9b')](_0x14052d);}),_0x4f32a4['stop']());},{'priority':_0xe0fe('0xf')}),this[_0xe0fe('0xcc')][_0xe0fe('0x1d')][_0xe0fe('0x13b')](_0xe0fe('0x78'),this[_0xe0fe('0x66')]),this[_0xe0fe('0x108')](_0xe0fe('0x78'));const _0x3c1718=new _0x3a9ef5(_0x24c247,this[_0xe0fe('0x4f')]);_0x24c247['commands'][_0xe0fe('0x13b')]('acceptSuggestion',_0x3c1718),this[_0xe0fe('0x108')]('acceptSuggestion');const _0x36c143=new _0x39d705(_0x24c247,this[_0xe0fe('0x4f')]);_0x24c247[_0xe0fe('0x1d')][_0xe0fe('0x13b')]('discardSuggestion',_0x36c143),this['enableCommand'](_0xe0fe('0xe6')),_0x24c247['commands']['add']('acceptAllSuggestions',new _0x34b0db(_0x24c247,_0x3c1718,this[_0xe0fe('0x4f')])),this[_0xe0fe('0x108')](_0xe0fe('0x12f')),_0x24c247[_0xe0fe('0x1d')]['add'](_0xe0fe('0x14'),new _0x34b0db(_0x24c247,_0x36c143,this[_0xe0fe('0x4f')])),this[_0xe0fe('0x108')]('discardAllSuggestions'),_0x24c247[_0xe0fe('0x1d')][_0xe0fe('0x13b')](_0xe0fe('0x100'),new _0x5c582c(_0x24c247,_0x3c1718,this[_0xe0fe('0x4f')])),this['enableCommand'](_0xe0fe('0x100')),_0x24c247[_0xe0fe('0x1d')][_0xe0fe('0x13b')]('discardSelectedSuggestions',new _0x5c582c(_0x24c247,_0x36c143,this[_0xe0fe('0x4f')])),this['enableCommand']('discardSelectedSuggestions');const _0xfda05=_0x24c247['plugins'][_0xe0fe('0x115')](_0xe0fe('0xa2'));this[_0xe0fe('0x8b')](_0xfda05,_0xe0fe('0x128'),(_0x56d1bc,{threadId:_0x5acf20})=>{const _0x3d8464=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x5acf20);_0x3d8464&&_0x3d8464[_0xe0fe('0x3c')]&&0x1===_0x3d8464[_0xe0fe('0x3c')]['length']&&this['_updateSuggestionData'](_0x5acf20,{'hasComments':!0x0});},{'priority':_0xe0fe('0x0')}),this[_0xe0fe('0x8b')](_0xfda05,_0xe0fe('0xf3'),(_0x3fd7a0,{threadId:_0x30ffcb})=>{const _0x44815d=this['_suggestions'][_0xe0fe('0x115')](_0x30ffcb);_0x44815d&&_0x44815d[_0xe0fe('0x3c')]&&!_0x44815d[_0xe0fe('0x3c')][_0xe0fe('0x46')]&&this['_updateSuggestionData'](_0x30ffcb,{'hasComments':!0x1});},{'priority':'low'});}set[_0xe0fe('0x5')](_0x24d90c){if(this['_adapter'])throw new _0x27bad2(_0xe0fe('0x126'),this);this[_0xe0fe('0x4')]=_0x24d90c;}get[_0xe0fe('0x5')](){return this[_0xe0fe('0x4')];}['getSuggestions']({skipNotAttached:_0xc73c29=!0x1,toJSON:_0x152137=!0x1}={}){const _0x1b10f0=[];for(const _0xf8d4e4 of this['_suggestions'][_0xe0fe('0x40')]())_0xc73c29&&!_0xf8d4e4[_0xe0fe('0x2c')]||_0x1b10f0[_0xe0fe('0x136')](_0xf8d4e4);return _0x152137?_0x1b10f0[_0xe0fe('0x130')](_0x51203d=>_0x51203d['toJSON']()):_0x1b10f0;}[_0xe0fe('0x93')](_0x1207df){const _0x535066=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x1207df);if(!_0x535066)throw new _0x27bad2(_0xe0fe('0x13c'),this);return _0x535066;}[_0xe0fe('0x1')](_0x1dc050){return this[_0xe0fe('0x4f')][_0xe0fe('0xc4')](_0x1dc050);}[_0xe0fe('0x2a')](_0x1cf08e){const {authorId:_0x111409,id:_0x3f6633,attributes:_0x557df9}=_0x1cf08e,[_0x164e9f,_0x1f1189]=_0x1cf08e[_0xe0fe('0x50')]['split'](':'),_0x2d69a6=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x3f6633)||this[_0xe0fe('0xd9')](_0x164e9f,_0x1f1189,_0x3f6633,_0x111409,_0x557df9);if(this[_0xe0fe('0x23')](_0x2d69a6),this['_checkSuggestionCorrectness'](_0x2d69a6,_0x164e9f,_0x1f1189||null,_0x111409),_0x2d69a6[_0xe0fe('0x11b')]=_0x1cf08e[_0xe0fe('0x11b')],_0x2d69a6['_isDataLoaded']=!0x0,_0x557df9&&_0x557df9[_0xe0fe('0xe')]){const _0xc960a0=_0x557df9['@external'],_0x547ee3=this[_0xe0fe('0x13')](_0xc960a0[_0xe0fe('0x4a')]);_0x2d69a6['authoredAt']=_0xc960a0[_0xe0fe('0x11b')],_0x2d69a6[_0xe0fe('0x13a')]=_0x547ee3,_0x2d69a6['isExternal']=!0x0;}else _0x2d69a6[_0xe0fe('0x125')]=_0x1cf08e[_0xe0fe('0x11b')];switch(_0x1cf08e['data']&&(_0x2d69a6[_0xe0fe('0xfd')]=_0x1cf08e[_0xe0fe('0xfd')]),_0x1cf08e['attributes']&&(_0x2d69a6['attributes']=_0x1cf08e[_0xe0fe('0x122')]),this[_0xe0fe('0x4')]&&this[_0xe0fe('0x4')]['addSuggestion']||(_0x2d69a6['_saved']=!0x0),this[_0xe0fe('0x26')][_0xe0fe('0x115')](_0x2d69a6)){case'notReady':this[_0xe0fe('0x26')][_0xe0fe('0x35')](_0x2d69a6,_0xe0fe('0xc1'));break;case'markerReady':_0x2d69a6[_0xe0fe('0x2c')]?(this[_0xe0fe('0x12c')](new Set([_0x2d69a6])),this[_0xe0fe('0x96')](new Set([_0x2d69a6])),this[_0xe0fe('0x26')][_0xe0fe('0x35')](_0x2d69a6,_0xe0fe('0xaf')),this[_0xe0fe('0xf4')](_0xe0fe('0x9a'),_0x2d69a6)):this['_suggestionState'][_0xe0fe('0x35')](_0x2d69a6,_0xe0fe('0x2'));}return _0x2d69a6;}[_0xe0fe('0x11f')](_0x49c38b){this[_0xe0fe('0xdd')](()=>{this[_0xe0fe('0xcc')]['model'][_0xe0fe('0xd2')](()=>{for(const _0x1094ce of _0x49c38b[_0xe0fe('0x21')]())_0x1094ce[_0xe0fe('0xb9')]();});});}[_0xe0fe('0xe6')](_0x2e45a5){this[_0xe0fe('0xdd')](()=>{this[_0xe0fe('0xcc')]['model'][_0xe0fe('0xd2')](()=>{for(const _0x57b345 of _0x2e45a5[_0xe0fe('0x21')]())_0x57b345[_0xe0fe('0x2b')]();});});}[_0xe0fe('0x108')](_0x457562,_0x1d262c){const _0x40519f=this[_0xe0fe('0xcc')][_0xe0fe('0x1d')][_0xe0fe('0x115')](_0x457562);if(!_0x40519f)throw new _0x27bad2(_0xe0fe('0x3f'),this,{'commandName':_0x457562});this[_0xe0fe('0xf9')][_0xe0fe('0x13b')](_0x40519f),_0x1d262c&&_0x40519f['on']('execute',(_0x2c9350,_0x12d405)=>{this[_0xe0fe('0x66')]['value']&&(this['_isForcedDefaultExecutionBlock']||_0x12d405['length']>0x0&&_0x12d405[_0x12d405[_0xe0fe('0x46')]-0x1]&&_0x12d405[_0x12d405['length']-0x1][_0xe0fe('0xdd')]||(_0x1d262c((..._0x3c8c4a)=>_0x40519f[_0xe0fe('0x8a')](..._0x3c8c4a,{'forceDefaultExecution':!0x0}),..._0x12d405),_0x2c9350['stop']()));},{'priority':_0xe0fe('0xf')});}[_0xe0fe('0xdd')](_0x42b567){let _0x42654d,_0x300835;const _0x4aa9c2=this['_isForcedDefaultExecutionBlock'];this[_0xe0fe('0x76')]=!0x0;try{_0x42654d=_0x42b567();}catch(_0x243a12){_0x300835=_0x243a12;}return _0x4aa9c2||(this[_0xe0fe('0x76')]=!0x1),_0x300835&&_0x27bad2[_0xe0fe('0x10')](_0x300835,this),_0x42654d;}[_0xe0fe('0x9b')](_0x30cb31,_0x23cd82=null,_0x438b5f={}){if(_0x30cb31[_0xe0fe('0xab')])return null;const _0x939e90=this['editor'][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'];for(const {suggestion:_0x3e1997,meta:_0x58660d}of this[_0xe0fe('0x37')](_0x30cb31,_0xe0fe('0xce')))if(_0x58660d[_0xe0fe('0x2d')]){if(!_0x58660d[_0xe0fe('0x113')]){if(_0x58660d[_0xe0fe('0x1f')]){if(!this[_0xe0fe('0x134')]||!Ot(_0x3e1997,_0x438b5f))continue;return _0x3e1997;}if(Ot(_0x3e1997,_0x438b5f))return _0x3e1997;this[_0xe0fe('0x56')](_0x3e1997,_0x30cb31[_0xe0fe('0xe0')],_0x30cb31[_0xe0fe('0x30')]);break;}if(_0x23cd82==_0x3e1997[_0xe0fe('0x11')]&&Ot(_0x3e1997,_0x438b5f)){const _0x278f29=_0x3e1997[_0xe0fe('0x69')]();return _0x278f29['start'][_0xe0fe('0x8f')](_0x30cb31[_0xe0fe('0x30')])?this[_0xe0fe('0xc2')](_0x3e1997,this['_model']['createRange'](_0x30cb31['start'],_0x278f29[_0xe0fe('0x30')])):this[_0xe0fe('0xc2')](_0x3e1997,this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x278f29[_0xe0fe('0xe0')],_0x30cb31[_0xe0fe('0x30')])),_0x3e1997;}}const _0x5a77d9=_0x4d9555(),_0x237549=_0x939e90['id'],_0x3c41c9=_0x23cd82?'insertion:'+_0x23cd82:_0xe0fe('0xce'),_0x328357=this[_0xe0fe('0x51')]({'id':_0x5a77d9,'type':_0x3c41c9,'createdAt':new Date(),'authorId':_0x237549,'attributes':_0x438b5f});return this[_0xe0fe('0xff')](_0x3c41c9,_0x5a77d9,_0x237549,_0x30cb31),_0x328357;}[_0xe0fe('0xb0')](_0x515d99,_0x427809=_0xe0fe('0xe7'),_0x9cbd58={}){const _0x239ff8=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'],_0x2ee848=this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0xe0fe('0xce'),_0x427809,_0xe0fe('0x5b'));for(const _0x2cb06e of this[_0xe0fe('0xa4')]())if(_0x2cb06e[_0xe0fe('0x13a')]['id']==_0x239ff8['id']&&_0xe0fe('0xce')==_0x2cb06e[_0xe0fe('0x50')]&&_0x2cb06e[_0xe0fe('0x11')]==_0x427809&&Ot(_0x2cb06e,_0x9cbd58)&&(_0x2ee848(_0x2cb06e[_0xe0fe('0x112')](),_0x515d99)||_0x2ee848(_0x515d99,_0x2cb06e[_0xe0fe('0x112')]()))){for(const _0x380b0a of _0x515d99)_0x2cb06e[_0xe0fe('0x12d')](_0x380b0a);return _0x2cb06e;}for(const {suggestion:_0x23ac85,meta:_0x36e5a9}of this['_findSuggestions'](_0x515d99,'insertion')){if(!_0x36e5a9['isOwn'])continue;if(!this[_0xe0fe('0x134')]&&_0x36e5a9[_0xe0fe('0x1f')])continue;if(!Ot(_0x23ac85,_0x9cbd58))continue;let _0x13775d=!0x0;for(const _0x348ceb of _0x23ac85[_0xe0fe('0x112')]())for(const _0x2f80cd of _0x515d99)if(!_0x348ceb[_0xe0fe('0xfe')](_0x2f80cd)){_0x13775d=!0x1;break;}if(_0x13775d)return _0x23ac85;}const _0x9e5840=_0x4d9555(),_0x2c3c07=_0x239ff8['id'],_0x3498fa=_0xe0fe('0xca')+_0x427809,_0x3b804a=this[_0xe0fe('0x51')]({'id':_0x9e5840,'type':_0x3498fa,'createdAt':new Date(),'authorId':_0x2c3c07,'attributes':_0x9cbd58});for(const _0x3cffe2 of _0x515d99)this[_0xe0fe('0xff')](_0x3498fa,_0x9e5840,_0x2c3c07,_0x3cffe2,_0x7857d8[_0xe0fe('0xc6')]());return _0x3b804a;}['markInlineFormat'](_0xa74a47,_0x4471fa,_0x1c9c11=null,_0x314f66={}){if(_0x1c9c11=_0x1c9c11||Nt(_0x4471fa),_0xa74a47[_0xe0fe('0xab')])return null;if(_0xe0fe('0xc3')===this['_trackFormatChanges']){const _0x354778=this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0xe0fe('0x6f'),_0x1c9c11,'accept');return this[_0xe0fe('0xdd')](()=>_0x354778([_0xa74a47],_0x4471fa,_0x314f66)),null;}const _0x1c8f1e=this[_0xe0fe('0xcc')][_0xe0fe('0xa')]['get'](_0xe0fe('0x82'))['me'],_0x195f52=[];if(_0xe0fe('0x6b')!==this[_0xe0fe('0x88')])for(const {suggestion:_0x2ecced,meta:_0x4da4fc}of this[_0xe0fe('0x37')](_0xa74a47,_0xe0fe('0xce')))_0x4da4fc['isOwn']&&!_0x4da4fc[_0xe0fe('0x32')]&&_0x195f52['push'](..._0x2ecced[_0xe0fe('0x112')]());const _0x5f4dd8=function(_0x2342ec,_0x3fd093){const _0x56f95d=[];for(const _0x43c5c8 of _0x3fd093){const _0x31c3f1=_0x2342ec['getIntersection'](_0x43c5c8);_0x31c3f1&&_0x56f95d[_0xe0fe('0x136')](_0x31c3f1);}return _0x56f95d;}(_0xa74a47,_0x195f52),_0x3f6a08=function(_0x4480fe,_0x4b92fa){const _0x3e9160=[_0x4480fe];for(const _0x10307d of _0x4b92fa){let _0x11b067=0x0;for(;_0x11b067<_0x3e9160[_0xe0fe('0x46')];){const _0x35ea2b=_0x3e9160[_0x11b067][_0xe0fe('0xaa')](_0x10307d);_0x3e9160[_0xe0fe('0x65')](_0x11b067,0x1,..._0x35ea2b),_0x11b067+=_0x35ea2b[_0xe0fe('0x46')];}}return _0x3e9160;}(_0xa74a47,_0x195f52);_0x5f4dd8[_0xe0fe('0x46')]&&this['_model'][_0xe0fe('0xd2')](()=>{for(const _0x32f135 of _0x5f4dd8){const _0xba5060=this[_0xe0fe('0xeb')]['getSuggestionCallback'](_0xe0fe('0x6f'),_0x1c9c11,_0xe0fe('0xb9'));this[_0xe0fe('0xdd')](()=>_0xba5060([_0x32f135],_0x4471fa,_0x314f66));}});for(const _0x140f3d of _0x3f6a08){let _0x4a0a91=null,_0x2289be=_0x140f3d[_0xe0fe('0xe0')],_0x47b6e4=_0x140f3d[_0xe0fe('0x30')];for(const {suggestion:_0x3ddc90,meta:_0x338721}of this['_findSuggestions'](_0x140f3d,_0xe0fe('0x6f'))){if(!_0x338721[_0xe0fe('0x2d')])continue;if(_0x3ddc90[_0xe0fe('0x11')]!=_0x1c9c11)continue;if(!Ot(_0x3ddc90,_0x314f66))continue;const _0x3bce91=_0x3ddc90[_0xe0fe('0x69')]();if(_0x3bce91[_0xe0fe('0xfe')](_0x140f3d,!0x0))return null;_0x2289be=_0x2289be[_0xe0fe('0x67')](_0x3bce91[_0xe0fe('0xe0')])?_0x2289be:_0x3bce91[_0xe0fe('0xe0')],_0x47b6e4=_0x47b6e4[_0xe0fe('0x103')](_0x3bce91[_0xe0fe('0x30')])?_0x47b6e4:_0x3bce91[_0xe0fe('0x30')],_0x4a0a91?_0x3bce91[_0xe0fe('0xe0')][_0xe0fe('0x67')](_0x4a0a91[_0xe0fe('0x69')]()['start'])?(_0x4a0a91[_0xe0fe('0x59')](),_0x4a0a91=_0x3ddc90):_0x3ddc90[_0xe0fe('0x59')]():_0x4a0a91=_0x3ddc90;}const _0x10196a=this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x2289be,_0x47b6e4);if(_0x4a0a91)this['_setSuggestionRange'](_0x4a0a91,_0x10196a);else{const _0xf6b47b=_0x4d9555(),_0x1c849e=_0x1c8f1e['id'];this['_setSuggestionData']({'id':_0xf6b47b,'type':'formatInline:'+_0x1c9c11,'data':_0x4471fa,'createdAt':new Date(),'authorId':_0x1c849e,'attributes':_0x314f66}),this[_0xe0fe('0xff')]('formatInline:'+_0x1c9c11,_0xf6b47b,_0x1c849e,_0x10196a);}}return null;}[_0xe0fe('0x19')](_0x13a6d2,_0x580799,_0x2654b8=[],_0x58547d=null,_0xd6db0c={}){_0x580799[_0xe0fe('0xec')]||(_0x580799[_0xe0fe('0xec')]=_0x580799[_0xe0fe('0xf0')]),_0x580799[_0xe0fe('0xda')]=_0x13a6d2['is']('range'),_0x58547d=_0x58547d||Nt(_0x580799);const _0x3fbd92=_0x2654b8[_0xe0fe('0x130')](_0xddc2a0=>jt(_0xddc2a0,this[_0xe0fe('0xb8')])),_0x2e6ef9=_0x13a6d2['is'](_0xe0fe('0x10e'))?_0x13a6d2:jt(_0x13a6d2,this[_0xe0fe('0xb8')]);if(_0xe0fe('0xc3')===this[_0xe0fe('0x88')]){const _0x242fe8=this[_0xe0fe('0xeb')]['getSuggestionCallback'](_0xe0fe('0x7f'),_0x58547d,_0xe0fe('0xb9'));return this[_0xe0fe('0xdd')](()=>_0x242fe8([_0x2e6ef9],_0x580799,_0xd6db0c)),null;}_0x3fbd92[_0xe0fe('0x136')](_0x2e6ef9);let _0x2d6784=!0x0;for(const _0x33e518 of _0x3fbd92)if(!this['_rangeIsInLocalUserInsertion'](_0x33e518)){_0x2d6784=!0x1;break;}if(_0x2d6784&&_0xe0fe('0x6b')!==this['_trackFormatChanges']){const _0x422569=this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0xe0fe('0x7f'),_0x58547d,'accept');return this['forceDefaultExecution'](()=>_0x422569([_0x2e6ef9],_0x580799,_0xd6db0c)),null;}let _0x53c698=null,_0x15a663=_0x2e6ef9[_0xe0fe('0xe0')],_0x3b0221=_0x2e6ef9['end'];for(const {suggestion:_0xa5e7cb,meta:_0x172790}of this[_0xe0fe('0x37')](_0x2e6ef9,_0xe0fe('0x7f'))){if(!_0x172790['isOwn'])continue;if(_0x172790[_0xe0fe('0x113')]||_0x172790['containsRangeInObject']||_0x172790[_0xe0fe('0x32')])continue;if(_0xa5e7cb['data']['formatGroupId']!=_0x580799[_0xe0fe('0xec')])continue;if(!Ot(_0xa5e7cb,_0xd6db0c))continue;const _0x385a85=_0xa5e7cb[_0xe0fe('0x69')]();if(_0xa5e7cb[_0xe0fe('0x11')]==_0x58547d){if(_0x385a85[_0xe0fe('0xfe')](_0x2e6ef9,!0x0))return null;_0x15a663=_0x15a663[_0xe0fe('0x67')](_0x385a85[_0xe0fe('0xe0')])?_0x15a663:_0x385a85['start'],_0x3b0221=_0x3b0221[_0xe0fe('0x103')](_0x385a85[_0xe0fe('0x30')])?_0x3b0221:_0x385a85['end'],_0x53c698?_0x385a85['start'][_0xe0fe('0x67')](_0x53c698['getFirstRange']()[_0xe0fe('0xe0')])?(_0x53c698[_0xe0fe('0x59')](),_0x53c698=_0xa5e7cb):_0xa5e7cb['removeMarkers']():_0x53c698=_0xa5e7cb;}else{const _0x5804cd=_0x2e6ef9['getIntersection'](_0x385a85);this[_0xe0fe('0xcf')](_0xa5e7cb,_0x5804cd);}}const _0x19d536=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'],_0x4cc3ba=_0x4d9555(),_0x4a5b15=_0x19d536['id'];if(_0x53c698)return this[_0xe0fe('0xc2')](_0x53c698,this['_model'][_0xe0fe('0x13f')](_0x15a663,_0x3b0221)),_0x53c698;{const _0x36df66=this[_0xe0fe('0x51')]({'id':_0x4cc3ba,'type':_0xe0fe('0xe3')+_0x58547d,'data':_0x580799,'createdAt':new Date(),'authorId':_0x4a5b15,'attributes':_0xd6db0c});return this[_0xe0fe('0xff')](_0xe0fe('0xe3')+_0x58547d,_0x4cc3ba,_0x4a5b15,this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x15a663,_0x3b0221)),_0x36df66;}}[_0xe0fe('0xba')](_0x1b75fe,_0x3535d4,_0x34255f=[],_0x474076=null,_0x4e928d={}){_0x3535d4[_0xe0fe('0xec')]||(_0x3535d4[_0xe0fe('0xec')]=_0x3535d4[_0xe0fe('0xf0')]);const _0x16bddb=_0x1b75fe[0x0];_0x3535d4[_0xe0fe('0xda')]=_0x16bddb['is'](_0xe0fe('0x10e')),_0x474076=_0x474076||Nt(_0x3535d4);const _0x236995=_0x34255f['map'](_0x282311=>jt(_0x282311,this[_0xe0fe('0xb8')])),_0x24bfe3=_0x16bddb['is'](_0xe0fe('0x10e'))?_0x1b75fe:_0x1b75fe[_0xe0fe('0x130')](_0x5cff57=>jt(_0x5cff57,this['_model']));if('never'===this[_0xe0fe('0x88')]){const _0x109d21=this['_suggestionFactory'][_0xe0fe('0x74')](_0xe0fe('0x7f'),_0x474076,_0xe0fe('0xb9'));return this[_0xe0fe('0xdd')](()=>_0x109d21(_0x24bfe3,_0x3535d4,_0x4e928d)),null;}_0x236995[_0xe0fe('0x136')](..._0x24bfe3);let _0x15b95=!0x0;for(const _0x2426d0 of _0x236995)if(!this[_0xe0fe('0x77')](_0x2426d0)){_0x15b95=!0x1;break;}if(_0x15b95&&'always'!==this['_trackFormatChanges']){const _0x577803=this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0xe0fe('0x7f'),_0x474076,_0xe0fe('0xb9'));return this[_0xe0fe('0xdd')](()=>_0x577803(_0x24bfe3,_0x3535d4,_0x4e928d)),null;}const _0x39265d=this[_0xe0fe('0xcc')]['plugins'][_0xe0fe('0x115')]('Users')['me'];for(const _0x4d4747 of this[_0xe0fe('0xa4')]()){if(_0x4d4747['author']['id']!=_0x39265d['id'])continue;if(_0xe0fe('0x7f')!=_0x4d4747['type']||_0x4d4747[_0xe0fe('0xfd')][_0xe0fe('0xec')]!=_0x3535d4[_0xe0fe('0xec')])continue;if(!Ot(_0x4d4747,_0x4e928d))continue;const _0x40f30a=_0x4d4747['subType']==_0x474076;for(let _0x544569=0x0;_0x544569<_0x24bfe3['length'];_0x544569++){const _0x256ed7=_0x24bfe3[_0x544569];for(const _0x2a94dc of _0x4d4747[_0xe0fe('0x2f')]()){const _0x28db46=_0x2a94dc['getRange']();if(_0x256ed7['isEqual'](_0x28db46)){_0x40f30a?(_0x24bfe3[_0xe0fe('0x65')](_0x544569,0x1),_0x544569--):_0x4d4747[_0xe0fe('0xc9')](_0x2a94dc['name']);break;}}}}if(0x0==_0x24bfe3[_0xe0fe('0x46')])return null;const _0x320b55=this[_0xe0fe('0xeb')]['getSuggestionCallback'](_0xe0fe('0x7f'),_0x474076,_0xe0fe('0x5b'));for(const _0x4d0859 of this['getSuggestions']())if(_0x4d0859[_0xe0fe('0x13a')]['id']==_0x39265d['id']&&_0xe0fe('0x7f')==_0x4d0859[_0xe0fe('0x50')]&&_0x4d0859[_0xe0fe('0xfd')][_0xe0fe('0xec')]==_0x3535d4['formatGroupId']&&_0x4d0859['subType']==_0x474076&&Ot(_0x4d0859,_0x4e928d)&&(_0x320b55(_0x4d0859[_0xe0fe('0x112')](),_0x24bfe3)||_0x320b55(_0x24bfe3,_0x4d0859[_0xe0fe('0x112')]()))){for(const _0x45f8f3 of _0x24bfe3)_0x4d0859[_0xe0fe('0x12d')](_0x45f8f3);return _0x4d0859;}const _0x5e5c7c=_0x4d9555(),_0x485ad7=_0x39265d['id'],_0x34b48a=_0xe0fe('0xe3')+_0x474076,_0xb18258=this[_0xe0fe('0x51')]({'id':_0x5e5c7c,'type':_0x34b48a,'data':_0x3535d4,'createdAt':new Date(),'authorId':_0x485ad7,'attributes':_0x4e928d});for(const _0xa7efa5 of _0x24bfe3)this[_0xe0fe('0xff')](_0x34b48a,_0x5e5c7c,_0x485ad7,_0xa7efa5,_0x7857d8[_0xe0fe('0xc6')]());return _0xb18258;}[_0xe0fe('0x141')](_0xd1a72b,_0x17bd62=null,_0x4ef77d={}){if(_0xd1a72b['isCollapsed'])return null;const _0x26d2b2=this['editor'][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'],_0x599081=new _0x1d44fa(_0xd1a72b[_0xe0fe('0xe0')],_0xd1a72b[_0xe0fe('0x30')]);for(const {suggestion:_0x18a602,meta:_0x25465e}of this['_findSuggestions'](_0x599081,'insertion'))if(_0x25465e[_0xe0fe('0x2d')]&&!_0x25465e[_0xe0fe('0x113')]){if(_0x18a602[_0xe0fe('0xc5')]){const _0x390c3e=_0x18a602[_0xe0fe('0x112')]()[_0xe0fe('0xd5')](_0x1a1922=>_0xe0fe('0x121')!=_0x1a1922[_0xe0fe('0x6a')]['rootName']);_0x390c3e[_0xe0fe('0x12a')](_0x444d14=>_0x599081[_0xe0fe('0xfe')](_0x444d14,!0x0))&&_0x18a602[_0xe0fe('0x2b')]();if(_0x390c3e['some'](_0x49eddd=>_0x49eddd[_0xe0fe('0xfe')](_0x599081,!0x0))){const _0x2887e1=this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0xe0fe('0x114'),_0x17bd62,_0xe0fe('0xb9'));return this['forceDefaultExecution'](()=>_0x2887e1([_0x599081],null,_0x4ef77d)),null;}}else{const _0x3350be=_0x599081[_0xe0fe('0x60')](_0x18a602[_0xe0fe('0x69')]());null!==_0x3350be&&_0x18a602[_0xe0fe('0x24')]([_0x3350be],null,_0x4ef77d);}}if(_0x599081[_0xe0fe('0xc7')](),_0x599081[_0xe0fe('0xab')]||_0xe0fe('0x121')==_0x599081[_0xe0fe('0x6a')][_0xe0fe('0x2e')])return null;let _0x353173=null,_0x8e5dd4=_0x599081[_0xe0fe('0xe0')],_0x2fd7e3=_0x599081[_0xe0fe('0x30')];const _0x563902=this[_0xe0fe('0x37')](_0x599081,_0xe0fe('0x114'));for(const {suggestion:_0x2ad25d,meta:_0x443187}of _0x563902){const _0x5eb010=this['_model'][_0xe0fe('0x13f')](_0x8e5dd4,_0x2fd7e3);if(_0x443187[_0xe0fe('0x2d')]&&(this[_0xe0fe('0x134')]||!_0x443187[_0xe0fe('0x1f')]&&!_0x443187[_0xe0fe('0x32')])){if(_0x2ad25d['isMultiRange']){if(!Ot(_0x2ad25d,_0x4ef77d))continue;let _0x40f886=!0x0;for(const _0x13db34 of _0x2ad25d[_0xe0fe('0x112')]()){if(_0x13db34['containsRange'](_0x5eb010,!0x0))return _0x2ad25d;_0x5eb010[_0xe0fe('0xfe')](_0x13db34)||(_0x40f886=!0x1);}_0x40f886&&_0x2ad25d[_0xe0fe('0x2b')]();}else{const _0x194a55=_0x2ad25d[_0xe0fe('0x69')]();if(_0x194a55[_0xe0fe('0xfe')](_0x5eb010,!0x0))return _0x2ad25d;if(!Ot(_0x2ad25d,_0x4ef77d)){_0x5eb010['containsRange'](_0x194a55)?_0x2ad25d[_0xe0fe('0x59')]():_0x194a55[_0xe0fe('0xa8')](_0x8e5dd4)?_0x8e5dd4=_0x194a55[_0xe0fe('0x30')]:_0x194a55['containsPosition'](_0x2fd7e3)&&(_0x2fd7e3=_0x194a55['start']);continue;}_0x8e5dd4=_0x8e5dd4[_0xe0fe('0x67')](_0x194a55[_0xe0fe('0xe0')])?_0x8e5dd4:_0x194a55['start'],_0x2fd7e3=_0x2fd7e3[_0xe0fe('0x103')](_0x194a55[_0xe0fe('0x30')])?_0x2fd7e3:_0x194a55[_0xe0fe('0x30')],_0x4ef77d=Object[_0xe0fe('0x119')]({},_0x2ad25d[_0xe0fe('0x122')]),_0x353173?_0x194a55[_0xe0fe('0xe0')][_0xe0fe('0x67')](_0x353173[_0xe0fe('0x69')]()['start'])?(_0x353173['removeMarkers'](),_0x353173=_0x2ad25d):_0x2ad25d['removeMarkers']():_0x353173=_0x2ad25d;}}}if(_0x353173)return this[_0xe0fe('0xc2')](_0x353173,this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x8e5dd4,_0x2fd7e3)),_0x353173;{const _0x216cbd=_0x4d9555(),_0x53ef49=this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x8e5dd4,_0x2fd7e3),_0x51b537=_0x26d2b2['id'],_0x1f7923=_0x17bd62?'deletion:'+_0x17bd62:_0xe0fe('0x114'),_0x339038=this[_0xe0fe('0x51')]({'id':_0x216cbd,'type':_0x1f7923,'createdAt':new Date(),'authorId':_0x51b537,'attributes':_0x4ef77d});return this[_0xe0fe('0xff')](_0x1f7923,_0x216cbd,_0x51b537,_0x53ef49),_0x339038;}}[_0xe0fe('0xa1')](_0x2fac6e,_0x40d6c3=_0xe0fe('0xe7'),_0x3d1800={}){const _0x5c94ff=this['editor'][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'],_0x9923b2=_0x2fac6e[_0xe0fe('0x130')](_0x4bc693=>new _0x1d44fa(_0x4bc693[_0xe0fe('0xe0')],_0x4bc693['end'])),_0x4a3bd6=new Set();for(const {suggestion:_0xfc9f06,meta:_0x426b6f}of this['_findSuggestions'](_0x9923b2,_0xe0fe('0xce')))_0x426b6f[_0xe0fe('0x2d')]&&!_0x426b6f[_0xe0fe('0x113')]&&_0x4a3bd6['add'](_0xfc9f06);for(const _0x37d1fc of _0x4a3bd6)if(_0x37d1fc[_0xe0fe('0xc5')]){const _0x24e7f9=_0x37d1fc[_0xe0fe('0x112')]();(!_0x37d1fc[_0xe0fe('0x122')]||!_0x37d1fc['attributes']['skipNestingCheck'])&&(_0x24e7f9[_0xe0fe('0x12a')](_0x148bc5=>_0x9923b2[_0xe0fe('0x4e')](_0x54b746=>_0x54b746[_0xe0fe('0xfe')](_0x148bc5,!0x0)))&&_0x37d1fc[_0xe0fe('0x2b')]());if(_0x9923b2[_0xe0fe('0x12a')](_0x102e79=>_0x24e7f9[_0xe0fe('0x4e')](_0x348ea1=>_0x348ea1['containsRange'](_0x102e79,!0x0)))){const _0x46ee54=this[_0xe0fe('0xeb')]['getSuggestionCallback'](_0xe0fe('0x114'),_0x40d6c3,_0xe0fe('0xb9'));return this[_0xe0fe('0xdd')](()=>_0x46ee54(_0x2fac6e,null,_0x3d1800)),null;}}else{const _0x1473b2=_0x37d1fc[_0xe0fe('0x69')]();_0x9923b2[_0xe0fe('0x4e')](_0x18835d=>_0x18835d[_0xe0fe('0xfe')](_0x1473b2,!0x0))&&_0x37d1fc[_0xe0fe('0x2b')]();if(_0x9923b2[_0xe0fe('0x12a')](_0x4e10bb=>_0x1473b2['containsRange'](_0x4e10bb,!0x0))){const _0x48a4ad=this['_suggestionFactory'][_0xe0fe('0x74')]('deletion',_0x40d6c3,_0xe0fe('0xb9'));return this[_0xe0fe('0xdd')](()=>_0x48a4ad(_0x9923b2,null,_0x3d1800)),null;}}const _0x124f50=this['_suggestionFactory'][_0xe0fe('0x74')](_0xe0fe('0x114'),_0x40d6c3,_0xe0fe('0x5b'));let _0x35cc1b=null;for(const _0x3a367d of this[_0xe0fe('0xa4')]())if(_0x3a367d[_0xe0fe('0x13a')]['id']==_0x5c94ff['id']&&_0x3a367d[_0xe0fe('0x2c')]&&_0xe0fe('0x114')==_0x3a367d[_0xe0fe('0x50')]&&_0x3a367d[_0xe0fe('0x11')]==_0x40d6c3&&Ot(_0x3a367d,_0x3d1800)&&(_0x124f50(_0x3a367d[_0xe0fe('0x112')](),_0x9923b2)||_0x124f50(_0x9923b2,_0x3a367d['getRanges']()))){if(_0x35cc1b){if(_0x3a367d[_0xe0fe('0x3c')]&&_0x3a367d[_0xe0fe('0x3c')]['length'])continue;for(const _0x54c276 of _0x3a367d['getRanges']())_0x35cc1b[_0xe0fe('0xa0')](_0x54c276)||_0x35cc1b[_0xe0fe('0x12d')](_0x54c276);_0x3a367d['removeMarkers']();}else{_0x35cc1b=_0x3a367d;for(const _0x16ba1b of _0x9923b2)_0x3a367d[_0xe0fe('0xa0')](_0x16ba1b)||_0x3a367d[_0xe0fe('0x12d')](_0x16ba1b);}}if(_0x35cc1b)return _0x35cc1b;_0x4a3bd6[_0xe0fe('0x49')]();for(const {suggestion:_0x49b11c,meta:_0x1aaa11}of this[_0xe0fe('0x37')](_0x9923b2,_0xe0fe('0x114')))_0x1aaa11[_0xe0fe('0x2d')]&&(this[_0xe0fe('0x134')]||!_0x1aaa11[_0xe0fe('0x1f')]&&!_0x1aaa11['isInsideObject'])&&Ot(_0x49b11c,_0x3d1800)&&_0x4a3bd6[_0xe0fe('0x13b')](_0x49b11c);for(const _0x257439 of _0x4a3bd6){const _0x37659c=_0x257439[_0xe0fe('0x112')]();if(!_0x3d1800||!_0x3d1800[_0xe0fe('0xa9')]){if(_0x9923b2[_0xe0fe('0x12a')](_0x5c002f=>_0x37659c[_0xe0fe('0x4e')](_0x191129=>_0x191129[_0xe0fe('0xfe')](_0x5c002f,!0x0))))return _0x257439;}(!_0x257439['attributes']||!_0x257439['attributes'][_0xe0fe('0xa9')])&&(_0x37659c['every'](_0x4c8a14=>_0x9923b2['some'](_0x3318a8=>_0x3318a8[_0xe0fe('0xfe')](_0x4c8a14,!0x0)))&&_0x257439['discard']());}const _0x44bb0d=_0x4d9555(),_0xef642f=_0x5c94ff['id'],_0x38b7f2='deletion:'+_0x40d6c3,_0x426f60=this['_setSuggestionData']({'id':_0x44bb0d,'type':_0x38b7f2,'createdAt':new Date(),'authorId':_0xef642f,'attributes':_0x3d1800});for(const _0x5b9f9d of _0x9923b2)_0x5b9f9d[_0xe0fe('0xc7')](),_0x5b9f9d[_0xe0fe('0xab')]||_0xe0fe('0x121')==_0x5b9f9d[_0xe0fe('0x6a')]['rootName']||this[_0xe0fe('0xff')](_0x38b7f2,_0x44bb0d,_0xef642f,_0x5b9f9d,_0x7857d8[_0xe0fe('0xc6')]());return _0x426f60;}[_0xe0fe('0xc2')](_0x2ddca7,_0x2250ba){const _0x11dbe1=_0x2ddca7['getFirstMarker']();this['_model'][_0xe0fe('0xd2')](_0x1ef58f=>{_0x1ef58f[_0xe0fe('0x45')](_0x11dbe1,{'range':_0x2250ba});});}[_0xe0fe('0x23')](_0x50c31e){const _0x99739b=_0x50c31e['id'],_0x495dbd=this[_0xe0fe('0xcc')][_0xe0fe('0x75')][_0xe0fe('0x115')](_0xe0fe('0x7e'));this['_commentsRepository']['hasCommentThread'](_0x99739b)||this[_0xe0fe('0x36')][_0xe0fe('0x52')]({'channelId':_0x495dbd,'threadId':_0x99739b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x175cf9=this[_0xe0fe('0x36')][_0xe0fe('0xf8')](_0x99739b);_0x175cf9[_0xe0fe('0x22')](_0xe0fe('0x5d')),_0x175cf9['isRemovable']=!0x1,_0x50c31e[_0xe0fe('0x3c')]=_0x175cf9;}[_0xe0fe('0x8e')](_0x3a850d,_0x473b1f,_0x30d57c,_0x4916e8){if(_0x3a850d[_0xe0fe('0x50')]!=_0x473b1f||_0x3a850d[_0xe0fe('0x11')]!=_0x30d57c||_0x3a850d[_0xe0fe('0x41')]['id']!=_0x4916e8)throw this[_0xe0fe('0xcc')][_0xe0fe('0x90')](_0xe0fe('0x54')),new _0x27bad2(_0xe0fe('0x54'),this);}[_0xe0fe('0xcf')](_0x6cae12,_0xbba479){const _0x26effe=_0x6cae12['getFirstRange']();if(_0xbba479[_0xe0fe('0x8f')](_0x26effe))_0x6cae12[_0xe0fe('0x59')]();else{if(_0x26effe[_0xe0fe('0xfe')](_0xbba479)){const _0x5c05a8=this[_0xe0fe('0xb8')]['createPositionAt'](_0xbba479[_0xe0fe('0xe0')][_0xe0fe('0x25')],_0xe0fe('0x30'));this[_0xe0fe('0xc2')](_0x6cae12,this['_model'][_0xe0fe('0x13f')](_0x26effe['start'],_0x5c05a8));const _0x118556=_0x4d9555(),_0xb4b21e=_0x6cae12['creator']['id'],_0x1c6fe9=_0x6cae12[_0xe0fe('0x50')]+':'+_0x6cae12[_0xe0fe('0x11')];this[_0xe0fe('0x51')]({'id':_0x118556,'type':_0x1c6fe9,'createdAt':new Date(),'authorId':_0xb4b21e,'data':_0x6cae12['data'],'attributes':_0x6cae12[_0xe0fe('0x122')]});const _0x26b039=this[_0xe0fe('0xb8')][_0xe0fe('0xc0')](_0xbba479['end']['parent'],_0xe0fe('0xc8')),_0x190758=this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x26b039,_0x26effe[_0xe0fe('0x30')]);this['_addSuggestionMarker'](_0x1c6fe9,_0x118556,_0xb4b21e,_0x190758);}else{if(_0x26effe[_0xe0fe('0xa8')](_0xbba479[_0xe0fe('0xe0')])){const _0x388cd9=this[_0xe0fe('0xb8')][_0xe0fe('0xc0')](_0xbba479['start']['nodeBefore'],_0xe0fe('0x30'));this[_0xe0fe('0xc2')](_0x6cae12,this['_model']['createRange'](_0x26effe[_0xe0fe('0xe0')],_0x388cd9));}else{const _0x2566de=this[_0xe0fe('0xb8')][_0xe0fe('0xc0')](_0xbba479['end'][_0xe0fe('0x7')],_0xe0fe('0xc8'));this[_0xe0fe('0xc2')](_0x6cae12,this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x2566de,_0x26effe[_0xe0fe('0x30')]));}}}}[_0xe0fe('0x77')](_0x50393d){for(const {suggestion:_0x3dce91,meta:_0x18ce0e}of this[_0xe0fe('0x37')](_0x50393d,_0xe0fe('0xce'))){if(!_0x18ce0e['isOwn'])continue;const _0x48c10=_0x3dce91[_0xe0fe('0x112')]();for(const _0x32de0e of _0x48c10)if(!_0x50393d['getDifference'](_0x32de0e)[_0xe0fe('0x46')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xba2130){const _0x5295f8=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))[_0xe0fe('0xb4')](_0xba2130);if(!_0x5295f8)throw new _0x27bad2(_0xe0fe('0x8d'),this);return _0x5295f8;}[_0xe0fe('0x13')](_0x11c3e5){const _0x212c8b=this['editor'][_0xe0fe('0xa')][_0xe0fe('0x115')]('Users'),_0x353f0c=_0x292271('external:'+_0x11c3e5),_0x138275=_0x212c8b['getUser'](_0x353f0c);return _0x138275||_0x212c8b['addUser']({'id':_0x353f0c,'name':_0x11c3e5});}[_0xe0fe('0xd9')](_0x416f44,_0x421599,_0x25b1e6,_0x430faa,_0x3955dd){const _0x1b79d2=this[_0xe0fe('0x10c')](_0x430faa),_0x5b2a06=this['_suggestionFactory'][_0xe0fe('0xdc')](_0x416f44,_0x421599,_0x25b1e6,_0x1b79d2,_0x3955dd,_0xc5a824=>this[_0xe0fe('0x116')](_0x25b1e6,{'attributes':_0xc5a824}));return this[_0xe0fe('0x8b')](_0x5b2a06,_0xe0fe('0xb9'),()=>{this[_0xe0fe('0x116')](_0x25b1e6,{'state':_0xe0fe('0x106')});},{'priority':'high'}),this['listenTo'](_0x5b2a06,_0xe0fe('0x2b'),()=>{this[_0xe0fe('0x116')](_0x25b1e6,{'state':_0xe0fe('0x9d')});},{'priority':'high'}),this[_0xe0fe('0x4f')][_0xe0fe('0x35')](_0x25b1e6,_0x5b2a06),this[_0xe0fe('0x26')][_0xe0fe('0x35')](_0x5b2a06,'notReady'),_0x5b2a06;}[_0xe0fe('0x17')](_0x4a9a69){const _0x5261b4=_0x4a9a69[_0xe0fe('0x133')](':');return{'group':_0x5261b4[0x0],'type':_0x5261b4[0x1],'subType':_0x5261b4[_0xe0fe('0x46')]>=0x5?_0x5261b4[0x2]:null,'id':_0x5261b4[_0xe0fe('0x46')]<0x5?_0x5261b4[0x2]:_0x5261b4[0x3],'authorId':_0x5261b4[_0xe0fe('0x46')]<0x5?_0x5261b4[0x3]:_0x5261b4[0x4],'markerCount':0x6==_0x5261b4['length']?_0x5261b4[0x5]:null};}['_breakSuggestionMarker'](_0x374494,_0x37b861,_0x3f610d){const _0xef1616=_0x374494[_0xe0fe('0x69')](),_0x5b46e7=_0xef1616[_0xe0fe('0xe0')],_0x54d055=_0xef1616[_0xe0fe('0x30')];this[_0xe0fe('0xc2')](_0x374494,this[_0xe0fe('0xb8')]['createRange'](_0x5b46e7,_0x37b861));const _0x44fe26=_0x4d9555(),_0x50300b=_0x374494[_0xe0fe('0x41')]['id'],_0x45b391=_0x374494[_0xe0fe('0x50')]+(_0x374494[_0xe0fe('0x11')]?':'+_0x374494[_0xe0fe('0x11')]:'');this[_0xe0fe('0x51')]({'id':_0x44fe26,'type':_0x45b391,'createdAt':new Date(),'authorId':_0x50300b,'originalSuggestionId':_0x374494['id'],'attributes':_0x374494['attributes'],'data':_0x374494['data']}),_0xe0fe('0x7f')==_0x374494[_0xe0fe('0x50')]&&(_0x3f610d=this[_0xe0fe('0xb8')][_0xe0fe('0xa5')](_0x3f610d[_0xe0fe('0x7')])),this[_0xe0fe('0xff')](_0x45b391,_0x44fe26,_0x50300b,this[_0xe0fe('0xb8')]['createRange'](_0x3f610d,_0x54d055));}[_0xe0fe('0x37')](_0x58f46a,_0x149dd0=null){const _0x4b405f=[],_0x2e5bd1=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0x82'))['me'];Array['isArray'](_0x58f46a)||(_0x58f46a=[_0x58f46a]);for(const _0xe6fd96 of this[_0xe0fe('0xa4')]()){if(!_0xe6fd96['isInContent'])continue;if(_0x149dd0&&_0xe6fd96[_0xe0fe('0x50')]!=_0x149dd0)continue;let _0x18801=!0x1;for(const _0x5eda03 of _0xe6fd96[_0xe0fe('0x112')]()){for(const _0xb58e9d of _0x58f46a){const _0x6fdd77=_0xb58e9d[_0xe0fe('0xe0')]['isEqual'](_0x5eda03[_0xe0fe('0x30')])||_0xb58e9d[_0xe0fe('0x30')]['isEqual'](_0x5eda03[_0xe0fe('0xe0')]);if(_0x6fdd77||_0xb58e9d[_0xe0fe('0x60')](_0x5eda03)){const _0x1f5a83=_0xb58e9d[_0xe0fe('0xfe')](_0x5eda03)&&_t(this['_model'][_0xe0fe('0x95')],_0x5eda03['start'],_0xb58e9d),_0x10d7a6=_0x5eda03['containsRange'](_0xb58e9d)&&_t(this[_0xe0fe('0xb8')]['schema'],_0xb58e9d['start'],_0x5eda03);_0x4b405f[_0xe0fe('0x136')]({'suggestion':_0xe6fd96,'meta':{'isOwn':_0x2e5bd1==_0xe6fd96[_0xe0fe('0x13a')],'isNextTo':_0x6fdd77,'isInsideObject':_0x1f5a83,'containsRangeInObject':_0x10d7a6}}),_0x18801=!0x0;break;}}if(_0x18801)break;}}return _0x4b405f;}[_0xe0fe('0xff')](_0x54fa7f,_0x233392,_0x1e7e10,_0x1088c8,_0x1e186c){this['_model'][_0xe0fe('0xd2')](_0x464801=>{let _0x3a69cf=_0xe0fe('0xb')+_0x54fa7f+':'+_0x233392+':'+_0x1e7e10;_0x1e186c&&(_0x3a69cf=_0x3a69cf+':'+_0x1e186c),_0x464801[_0xe0fe('0x44')](_0x3a69cf,{'range':_0x1088c8,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xe0fe('0x7c')](_0x52c14f){const _0x2d1452=_0x52c14f[_0xe0fe('0x84')],_0x2c030f=_0x52c14f[_0xe0fe('0x91')];_0x52c14f[_0xe0fe('0x84')]=null,null!=_0x2d1452&&(_0x2d1452['next']=null),_0x52c14f[_0xe0fe('0x91')]=null,null!=_0x2c030f&&(_0x2c030f['previous']=null),_0xe0fe('0xaf')==this['_suggestionState'][_0xe0fe('0x115')](_0x52c14f)&&(this['_suggestionState'][_0xe0fe('0x35')](_0x52c14f,'removed'),this[_0xe0fe('0xf4')]('suggestionUnloaded',_0x52c14f,_0x2d1452,_0x2c030f));}[_0xe0fe('0x51')](_0x2d11d7){const _0x5287f1=_0x2d11d7['id'],_0x363724=this['addSuggestionData'](_0x2d11d7);if(this[_0xe0fe('0x4')]&&this[_0xe0fe('0x4')][_0xe0fe('0x6')]){const _0x1366f0=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0xef')),_0x2a921d=_0x363724[_0xe0fe('0xde')],_0x2c903a=_0x363724[_0xe0fe('0x11')]?_0x363724[_0xe0fe('0x50')]+':'+_0x363724['subType']:_0x363724['type'],_0x43b33e=this[_0xe0fe('0xcc')][_0xe0fe('0x140')],_0x2b3cfd=_0x1366f0[_0xe0fe('0x13b')](_0x4a8c73(_0x43b33e,_0xe0fe('0xfc'))),_0xae5f45={'id':_0x5287f1,'type':_0x2c903a,'hasComments':_0x2a921d,'data':_0x2d11d7['data']||null,'originalSuggestionId':_0x2d11d7[_0xe0fe('0xd0')]||null,'attributes':_0x363724[_0xe0fe('0x122')]};this[_0xe0fe('0x4')]['addSuggestion'](_0xae5f45)[_0xe0fe('0x89')](_0xdbb123=>{_0x363724['_saved']=!0x0,_0x1366f0[_0xe0fe('0x109')](_0x2b3cfd),_0xdbb123&&_0xdbb123['createdAt']&&(this[_0xe0fe('0x4f')]['get'](_0x5287f1)['createdAt']=_0xdbb123[_0xe0fe('0x11b')]);})['catch'](_0x3d3bdc=>{throw _0x566570('error-saving-suggestion-data-suggestion-discarded'),this[_0xe0fe('0xcc')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x363724[_0xe0fe('0x2b')]();}),_0x363724[_0xe0fe('0x132')](),this[_0xe0fe('0x4f')]['delete'](_0x363724['id']),this[_0xe0fe('0x26')][_0xe0fe('0x33')](_0x363724),_0x3d3bdc;});}return _0x363724;}[_0xe0fe('0x116')](_0x2a0259,_0x22cbf5){const _0x349808=this[_0xe0fe('0xcc')][_0xe0fe('0xa')][_0xe0fe('0x115')](_0xe0fe('0xef')),_0x569541=this[_0xe0fe('0x93')](_0x2a0259);if(this['_adapter']&&this['_adapter'][_0xe0fe('0xfa')]){if(_0x569541['_saved']){const _0x3bbfe4=_0x349808['add'](_0x4a8c73(this['editor'][_0xe0fe('0x140')],_0xe0fe('0xfc')));this[_0xe0fe('0x4')][_0xe0fe('0xfa')](_0x2a0259,_0x22cbf5)[_0xe0fe('0x89')](()=>{_0x349808[_0xe0fe('0x109')](_0x3bbfe4);});}else _0x569541['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2a0259,_0x22cbf5);});}}[_0xe0fe('0xe8')](_0x57a50d){if(!this[_0xe0fe('0x4')]||!this[_0xe0fe('0x4')][_0xe0fe('0x93')])throw new _0x27bad2('track-changes-adapter-missing-getsuggestion',this);return this[_0xe0fe('0x4')][_0xe0fe('0x93')](_0x57a50d);}['_handleNewSuggestionMarker'](_0xdbcbaa){const {id:_0x1eb54d,type:_0x12b5f7,subType:_0x5856b5,authorId:_0x578ae6}=this[_0xe0fe('0x17')](_0xdbcbaa),_0xe4b2df=this[_0xe0fe('0x4f')][_0xe0fe('0x115')](_0x1eb54d)||this['_createSuggestion'](_0x12b5f7,_0x5856b5,_0x1eb54d,_0x578ae6,{});switch(this['_checkSuggestionCorrectness'](_0xe4b2df,_0x12b5f7,_0x5856b5,_0x578ae6),this['_suggestionState'][_0xe0fe('0x115')](_0xe4b2df)){case _0xe0fe('0xd4'):this[_0xe0fe('0xe8')](_0x1eb54d)[_0xe0fe('0x89')](_0x34e63b=>{let _0x485d7b=Promise[_0xe0fe('0x20')]();_0x34e63b[_0xe0fe('0xde')]&&(_0x485d7b=this[_0xe0fe('0x36')]['fetchCommentThread']({'channelId':this[_0xe0fe('0xcc')][_0xe0fe('0x75')][_0xe0fe('0x115')](_0xe0fe('0x7e')),'threadId':_0x1eb54d})),_0x485d7b[_0xe0fe('0x89')](()=>{this[_0xe0fe('0x2a')](_0x34e63b)['_saved']=!0x0;});}),this[_0xe0fe('0x26')][_0xe0fe('0x35')](_0xe4b2df,'markerReady');break;case _0xe0fe('0x2'):this[_0xe0fe('0x116')](_0x1eb54d,{'state':_0xe0fe('0xf1')});case _0xe0fe('0xc1'):this[_0xe0fe('0x26')][_0xe0fe('0x35')](_0xe4b2df,_0xe0fe('0xaf')),this[_0xe0fe('0xf4')](_0xe0fe('0x9a'),_0xe4b2df);break;case _0xe0fe('0xaf'):this[_0xe0fe('0xf4')](_0xe0fe('0xe4'),_0xe4b2df);}return _0xe4b2df[_0xe0fe('0x99')](_0xdbcbaa),_0xe4b2df;}['_refreshSuggestionsChain'](_0x3bad0a){const _0x3ed4ab=Array['from'](_0x3bad0a)[_0xe0fe('0xd5')](_0x4839bd=>!_0x4839bd[_0xe0fe('0xc5')]),_0x42239f=this[_0xe0fe('0xa4')]({'skipNotAttached':!0x0})['filter'](_0x286d92=>!_0x286d92[_0xe0fe('0xc5')]),_0x1bbac5=_0x42239f[_0xe0fe('0xd5')](_0x33eade=>!_0x3bad0a[_0xe0fe('0xc4')](_0x33eade)),_0x435532=new Map(_0x42239f['map'](_0x4085ac=>[_0x4085ac,this[_0xe0fe('0xeb')][_0xe0fe('0x74')](_0x4085ac['type'],_0x4085ac[_0xe0fe('0x11')],_0xe0fe('0x142'))])),_0x2d380a=new Map(_0x42239f['map'](_0x1a971e=>[_0x1a971e,_0x1a971e[_0xe0fe('0x69')]()])),_0x1fa554=new Set(),_0x182e7c=new Set();for(let _0x33f104=0x0;_0x33f104<_0x3ed4ab[_0xe0fe('0x46')];_0x33f104++)_0x4a9964(_0x3ed4ab[_0x33f104],_0x3ed4ab,_0x33f104+0x1);for(let _0x1352d0=0x0;_0x1352d0<_0x3ed4ab[_0xe0fe('0x46')];_0x1352d0++)_0x4a9964(_0x3ed4ab[_0x1352d0],_0x1bbac5,0x0);for(let _0x427492=0x0;_0x427492<_0x3ed4ab['length'];_0x427492++){const _0x303dee=_0x3ed4ab[_0x427492];!_0x182e7c[_0xe0fe('0xc4')](_0x303dee)&&_0x303dee['previous']&&(_0x303dee['previous'][_0xe0fe('0x91')]===_0x303dee&&(_0x303dee[_0xe0fe('0x84')]['next']=null),_0x303dee['previous']=null),!_0x1fa554[_0xe0fe('0xc4')](_0x303dee)&&_0x303dee[_0xe0fe('0x91')]&&(_0x303dee[_0xe0fe('0x91')][_0xe0fe('0x84')]===_0x303dee&&(_0x303dee['next']['previous']=null),_0x303dee['next']=null);}function _0x4a9964(_0xe7ac57,_0x437868,_0x48039d){for(let _0x594c1b=_0x48039d;_0x594c1b<_0x437868['length'];_0x594c1b++){const _0x914bfc=_0x5d4394(_0xe7ac57,_0x437868[_0x594c1b]);_0x914bfc&&(_0x914bfc[0x0]['next']=_0x914bfc[0x1],_0x914bfc[0x1][_0xe0fe('0x84')]=_0x914bfc[0x0],_0x1fa554[_0xe0fe('0x13b')](_0x914bfc[0x0]),_0x182e7c[_0xe0fe('0x13b')](_0x914bfc[0x1]));}}function _0x5d4394(_0x147636,_0x233062){if(_0x147636[_0xe0fe('0x13a')]['id']!==_0x233062[_0xe0fe('0x13a')]['id'])return null;const _0xadb594=_0x435532[_0xe0fe('0x115')](_0x147636)(_0x147636,_0x233062,_0x2d380a[_0xe0fe('0x115')](_0x147636),_0x2d380a['get'](_0x233062));if(!_0xadb594)return null;return _0x435532[_0xe0fe('0x115')](_0x233062)(_0x147636,_0x233062,_0x2d380a[_0xe0fe('0x115')](_0x147636),_0x2d380a[_0xe0fe('0x115')](_0x233062))?_0xadb594[0x1]['commentThread']&&_0xadb594[0x1][_0xe0fe('0x3c')][_0xe0fe('0x46')]?null:_0xadb594:null;}}['_joinWithAdjacentSuggestions'](_0x1899e9){const _0x1bef7a=Array['from'](_0x1899e9),_0x4ef7b8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5b91dc=_0x4ef7b8['filter'](_0x3b28b4=>!_0x1899e9[_0xe0fe('0xc4')](_0x3b28b4)),_0x18a36b=new Map(_0x1bef7a['map'](_0x482b97=>[_0x482b97,this['_suggestionFactory']['getSuggestionCallback'](_0x482b97[_0xe0fe('0x50')],_0x482b97['subType'],_0xe0fe('0x5b'))])),_0x28b694=new Map(_0x4ef7b8['map'](_0x200a59=>[_0x200a59,_0x200a59[_0xe0fe('0x112')]()]));for(let _0x343446=0x0;_0x343446<_0x1bef7a[_0xe0fe('0x46')];_0x343446++){if(_0x539b4a(this,_0x1bef7a[_0x343446],_0x1bef7a,_0x343446+0x1))return!0x0;}for(let _0x11ed71=0x0;_0x11ed71<_0x1bef7a['length'];_0x11ed71++){if(_0x539b4a(this,_0x1bef7a[_0x11ed71],_0x5b91dc,0x0))return!0x0;}return!0x1;function _0x539b4a(_0x164f28,_0xa3b452,_0x24dc99,_0x39593e){for(let _0xc23286=_0x39593e;_0xc23286<_0x24dc99['length'];_0xc23286++){const _0x247eb6=_0x24dc99[_0xc23286];if(_0x247eb6[_0xe0fe('0x50')]!==_0xa3b452[_0xe0fe('0x50')]||_0x247eb6[_0xe0fe('0x13a')]['id']!==_0xa3b452[_0xe0fe('0x13a')]['id']||_0x247eb6[_0xe0fe('0x11')]!==_0xa3b452['subType'])continue;if(!Ut(_0xa3b452,_0x247eb6))continue;const _0x1524bb=_0x18a36b[_0xe0fe('0x115')](_0xa3b452),_0x33b895=_0x28b694['get'](_0xa3b452),_0x35fd62=_0x28b694[_0xe0fe('0x115')](_0x247eb6),_0x77badc=_0xa3b452[_0xe0fe('0x3c')]&&_0xa3b452['commentThread']['length'],_0x3eb3ca=_0x247eb6[_0xe0fe('0x3c')]&&_0x247eb6[_0xe0fe('0x3c')]['length'];if(!_0x77badc&&_0x1524bb(_0x35fd62,_0x33b895))return _0x164f28[_0xe0fe('0x70')](_0x247eb6,_0xa3b452),_0x28b694[_0xe0fe('0x33')](_0xa3b452),!0x0;if(!_0x3eb3ca&&_0x1524bb(_0x33b895,_0x35fd62))return _0x164f28[_0xe0fe('0x70')](_0xa3b452,_0x247eb6),_0x28b694['delete'](_0x247eb6),!0x0;}return!0x1;}}[_0xe0fe('0x70')](_0x14ac6d,_0x3971fb){if(_0x14ac6d[_0xe0fe('0xc5')])for(const _0x2ba1b3 of _0x3971fb[_0xe0fe('0x112')]())_0x14ac6d[_0xe0fe('0x12d')](_0x2ba1b3);else{const _0x324706=_0x3971fb[_0xe0fe('0x69')]()[_0xe0fe('0x30')];this[_0xe0fe('0xc2')](_0x14ac6d,this['_model'][_0xe0fe('0x13f')](_0x14ac6d[_0xe0fe('0x69')]()[_0xe0fe('0xe0')],_0x324706));}_0x3971fb[_0xe0fe('0x59')]();}}class Bt{constructor(_0x2943ea){this[_0xe0fe('0x12b')]=_0x2943ea,this[_0xe0fe('0xb8')]=_0x2943ea['model'],this[_0xe0fe('0xbf')]=new Map(),this[_0xe0fe('0x72')]=new Map(),this[_0xe0fe('0x68')]();}[_0xe0fe('0xdc')](_0x44e211,_0xeaf0a2,_0xe5017d,_0x58942d,_0x13cb05,_0x26361d){return new _0x7857d8(this[_0xe0fe('0xb8')],{'type':_0x44e211,'subType':_0xeaf0a2,'id':_0xe5017d,'author':_0x58942d,'creator':_0x58942d,'attributes':_0x13cb05,'onAttributesChange':_0x26361d,'onAccept':(..._0x1d7952)=>this['getSuggestionCallback'](_0x44e211,_0xeaf0a2,_0xe0fe('0xb9'))(..._0x1d7952),'onDiscard':(..._0x69b0fc)=>this[_0xe0fe('0x74')](_0x44e211,_0xeaf0a2,'discard')(..._0x69b0fc)});}[_0xe0fe('0x137')](_0xda96ec,_0x536618,_0x203728,_0x10b1e2){const _0x4476f3=_0xda96ec+':'+_0x536618+':'+_0x203728;this[_0xe0fe('0xbf')][_0xe0fe('0x35')](_0x4476f3,_0x10b1e2);}['getSuggestionCallback'](_0x18c7b9,_0x50c9fb,_0x1a8b92){const _0x488e78=_0x18c7b9+':'+_0x50c9fb+':'+_0x1a8b92;return this['_customCallbacks']['get'](_0x488e78)||this[_0xe0fe('0x72')]['get'](_0x18c7b9+':'+_0x1a8b92);}[_0xe0fe('0x68')](){const _0x2672a6=()=>!0x1,_0x2607a5=_0xd59bc8=>{_0xd59bc8['sort']((_0x5bc0fd,_0x529a06)=>_0x5bc0fd['start'][_0xe0fe('0x67')](_0x529a06[_0xe0fe('0xe0')])?0x1:-0x1),this[_0xe0fe('0xb8')][_0xe0fe('0xd2')](_0x59882f=>{for(const _0x2f52ba of _0xd59bc8){let _0x519c36;_0x519c36=_0x2f52ba[_0xe0fe('0x30')]['isAtEnd']&&_0x2f52ba[_0xe0fe('0x30')][_0xe0fe('0x7')]==_0x2f52ba[_0xe0fe('0xe0')][_0xe0fe('0xf7')]?_0x59882f[_0xe0fe('0x92')](_0x2f52ba[_0xe0fe('0xe0')][_0xe0fe('0xf7')],'on'):_0x59882f['createSelection'](_0x2f52ba),this[_0xe0fe('0xb8')]['deleteContent'](_0x519c36,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x174e06=(_0x88d5,_0x40184a)=>{this[_0xe0fe('0xb8')]['change'](_0x1e55e9=>{const {commandName:_0x20aa3b,commandParams:_0x181fdf=[]}=_0x40184a,_0x201e86=_0x88d5[_0xe0fe('0x130')](_0x280009=>(Mt(_0x280009)&&(_0x280009=this[_0xe0fe('0xb8')][_0xe0fe('0x13f')](_0x280009[_0xe0fe('0x30')])),_0x280009))[_0xe0fe('0xd5')](_0x2abdb2=>_0xe0fe('0x121')!==_0x2abdb2[_0xe0fe('0x6a')][_0xe0fe('0x2e')]);if(_0x201e86['length']<0x1)return;const _0x119847=Array['from'](this[_0xe0fe('0xb8')][_0xe0fe('0x27')]['selection'][_0xe0fe('0x112')]())[_0xe0fe('0x130')](_0x7a004=>_0x1d44fa[_0xe0fe('0xe1')](_0x7a004));_0x1e55e9['setSelection'](_0x201e86);for(const _0x27e8e6 of this[_0xe0fe('0x12b')][_0xe0fe('0x1d')][_0xe0fe('0x1d')]())_0x27e8e6[_0xe0fe('0x29')]();_0x181fdf[_0xe0fe('0x136')]({'forceDefaultExecution':!0x0}),this[_0xe0fe('0x12b')][_0xe0fe('0x8a')](_0x20aa3b,..._0x181fdf);const _0x42873f=_0x119847[_0xe0fe('0xd5')](_0x238f37=>'$graveyard'!=_0x238f37[_0xe0fe('0x6a')][_0xe0fe('0x2e')]);_0x42873f[_0xe0fe('0x46')]>0x0&&_0x1e55e9[_0xe0fe('0x61')](_0x42873f);for(const _0x1f8831 of _0x119847)_0x1f8831[_0xe0fe('0xc7')]();});},_0x14e172=(_0x53793b,_0x50e7ed)=>0x1==_0x53793b[_0xe0fe('0x46')]&&0x1==_0x50e7ed['length']&&_0x53793b[0x0][_0xe0fe('0x30')]['isEqual'](_0x50e7ed[0x0]['start']),_0x25bf2e=(_0x67d184,_0x371246,_0x248443,_0x4234ef)=>xt(_0x67d184,_0x371246,_0x248443,_0x4234ef,this['_model'])?[_0x67d184,_0x371246]:xt(_0x371246,_0x67d184,_0x4234ef,_0x248443,this[_0xe0fe('0xb8')])?[_0x371246,_0x67d184]:null;this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0xbc'),_0x2672a6),this['_defaultCallbacks'][_0xe0fe('0x35')](_0xe0fe('0x127'),_0x2607a5),this[_0xe0fe('0x72')]['set'](_0xe0fe('0x3'),_0x14e172),this['_defaultCallbacks']['set']('insertion:chain',_0x25bf2e),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0x87'),_0x2607a5),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0x10f'),_0x2672a6),this[_0xe0fe('0x72')]['set'](_0xe0fe('0x9'),_0x14e172),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0x3e'),_0x25bf2e),this[_0xe0fe('0x72')]['set'](_0xe0fe('0x129'),_0x174e06),this['_defaultCallbacks'][_0xe0fe('0x35')](_0xe0fe('0x6e'),_0x2672a6),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0x55'),_0x14e172),this['_defaultCallbacks']['set'](_0xe0fe('0x57'),_0x2672a6),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0x6c'),_0x174e06),this[_0xe0fe('0x72')][_0xe0fe('0x35')](_0xe0fe('0xee'),_0x2672a6),this['_defaultCallbacks']['set'](_0xe0fe('0xad'),_0x14e172),this[_0xe0fe('0x72')]['set']('formatBlock:chain',_0x2672a6);}}function _t(_0x1b74c6,_0x273e79,_0x5f042b){for(const _0x4431f6 of _0x273e79[_0xe0fe('0x7')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4431f6['root']==_0x4431f6)return!0x1;if(!_0x5f042b['containsItem'](_0x4431f6))return!0x1;if(_0x1b74c6[_0xe0fe('0x1b')](_0x4431f6)||_0x1b74c6['isLimit'](_0x4431f6))return!0x0;}return!0x1;}function Mt(_0x2f3f0d){return _0x2f3f0d[_0xe0fe('0x30')][_0xe0fe('0x7')]==_0x2f3f0d[_0xe0fe('0xe0')]['nodeAfter']&&_0x2f3f0d['end'][_0xe0fe('0x38')];}function $t(_0x55027f,_0x466b25,_0x4f7c76,_0x3a020c){const _0x2f6547=_0x5ceb65=>!_0x5ceb65[_0xe0fe('0x105')]['is'](_0xe0fe('0xd1'))&&!_0x3a020c['isObject'](_0x5ceb65['item']),_0x568aa2=_0x55027f['start'][_0xe0fe('0xc')](_0x2f6547),_0x549637=_0x55027f[_0xe0fe('0x30')]['getLastMatchingPosition'](_0x2f6547,{'direction':_0xe0fe('0x1c')});return(!_0x55027f[_0xe0fe('0xe0')]['isEqual'](_0x568aa2)||!_0x55027f['end'][_0xe0fe('0x8f')](_0x549637))&&(_0x568aa2[_0xe0fe('0x67')](_0x549637)?_0x4f7c76[_0xe0fe('0x45')](_0x466b25,{'range':_0x4f7c76['createRange'](_0x568aa2,_0x549637)}):_0x4f7c76[_0xe0fe('0xc9')](_0x466b25),!0x0);}function Nt(_0x4ed7f7){return _0x292271(_0x4ed7f7);}function Rt(_0x337a99){const _0x500c8d=_0x337a99[_0xe0fe('0xe0')][_0xe0fe('0xf7')];return _0x500c8d&&_0x500c8d['is'](_0xe0fe('0x9c'));}function jt(_0x535410,_0x5740c0){const _0x2d32d7=_0x5740c0['schema']['isObject'](_0x535410)||_0x5740c0[_0xe0fe('0x95')][_0xe0fe('0xea')](_0x535410);return _0x5740c0[_0xe0fe('0x13f')](_0x5740c0[_0xe0fe('0xc0')](_0x535410,_0xe0fe('0x39')),_0x2d32d7?_0x5740c0[_0xe0fe('0x118')](_0x535410):_0x5740c0[_0xe0fe('0xc0')](_0x535410,_0xe0fe('0x30')));}function xt(_0x3e442f,_0x2d404d,_0x1e1dd1,_0x4a2834,_0x49be36){if(!Ut(_0x3e442f,_0x2d404d))return!0x1;if(_0x1e1dd1[_0xe0fe('0x30')][_0xe0fe('0x8f')](_0x4a2834[_0xe0fe('0xe0')]))return!0x0;if(_0x3e442f['type']!=_0x2d404d[_0xe0fe('0x50')])return!0x1;if(!_0x1e1dd1[_0xe0fe('0x30')][_0xe0fe('0x1e')](_0x4a2834[_0xe0fe('0xe0')]))return!0x1;const _0x5ab9d1=_0x49be36[_0xe0fe('0x13f')](_0x1e1dd1['end'],_0x4a2834[_0xe0fe('0xe0')])[_0xe0fe('0x81')]();for(const _0x666eea of _0x5ab9d1)if([_0xe0fe('0x86'),_0xe0fe('0xa7')]['includes'](_0x666eea[_0xe0fe('0x50')])&&_0x49be36[_0xe0fe('0x95')][_0xe0fe('0x85')](_0x666eea['item']))return!0x1;return!0x0;}function Ut(_0x48caf7,_0x162871){return!(!_0x48caf7[_0xe0fe('0xf2')]||!_0x162871[_0xe0fe('0xf2')])&&_0x85de1d(_0x48caf7[_0xe0fe('0x122')],_0x162871[_0xe0fe('0x122')]);}function Ot(_0x55fd58,_0x3c3b47){const _0x7e2804=Et(_0x55fd58['attributes']),_0x1b202f=Et(_0x3c3b47);if(!_0x55fd58[_0xe0fe('0xf2')])return!0x1;for(const _0x5952d0 of Object[_0xe0fe('0x107')](_0x1b202f))if(!_0x85de1d(_0x7e2804[_0x5952d0],_0x1b202f[_0x5952d0]))return!0x1;return!0x0;}function Et(_0x56dfee){const _0x44ecf6=Object['assign']({},_0x56dfee);return delete _0x44ecf6[_0xe0fe('0xa9')],delete _0x44ecf6[_0xe0fe('0x10d')],_0x44ecf6;}
|
|
23
|
+
const _0x544a=['split','formatInline:chain','getFirstRange','suggestion-type','return','_suggestions','editingDowncast','_splitMarkerName','collaboration.channelId','addMarker','deletion:','setTo','nodeBefore','change:_saved','fromCharCode','highest','move','accept','_commentsRepository','filter','isArray','schema','addMarkerName','consumable','registerPostFixer','listenTo','reconvertMarker','fetchCommentThread','data','_isDataLoaded','acceptSuggestion','isBlock','enqueueChange','type','plugins','PENDING_ACTION_SUGGESTION','assign','isOwn','editor','trackChangesCommand','selection','getFirstMarker','insertion:chain','addSuggestionData','change:data','never','deletion:join','getRange','_trackFormatChanges','@external','consume','for','isUndo','containsRange','_customCallbacks','rethrowUnexpectedError','isCollapsed','includes','elementStart','isAtEnd','updateSuggestion','delete','formatGroupId','element','suggestionLoaded','substr','containerElement','document','markerReady','sort','formatBlock','normal','addMarker:suggestion','unbindElementFromMarkerName','track-changes-suggestion-data-mismatch','markerNameToElements','removeMarkers','_editor','addComment','insertion:','targetPosition','enableReadOnlyMode','_createSuggestion','_setSuggestionRange','suggestion','getDifference','isMultiRange','_model','markInsertion','formatInline:','open','model','isObject','high','_getAuthorFromId','forceDefaultExecution','writer','markDeletion','deletion','_joinSuggestions','isDocumentOperation','getCommentThread','next','addRange','removeMarker','getSuggestionCallback','_onDiscard','authoredAt','formatBlock:chain','multi','getIntersection','change:activeMarkers','_mergeNestedSuggestions','low','add','creator','range','insert','execute','markMultiRangeInsertion','originalSuggestionId','addUser','_rangeIsInLocalUserInsertion','containsRangeInObject','isEqual','before','always','values','dataReady','isInsideObject','addMarker:suggestion:formatBlock','$textProxy','CommentsRepository','_adapter','position','formatBlock:','_enabledCommands','notReady','differ','upcast','splice','markerName','value','containsPosition','default','_joinWithAdjacentSuggestions','isRemovable','acceptSelectedSuggestions','_handleNewSuggestionMarker','detach','name','getAllAdjacentSuggestions','resolve','stopListening','containsItem','dataToMarker','group','toJSON','unbind','documentSelection','formatBlock:accept','length','commands','commandName','elementToElement','some','pluginName','insertion','formatInline','_breakSuggestionMarker','marker-count','addSuggestion','createRange','end','rootName','dataDowncast','ck-suggestion-marker-','then','setSelection','markers','bindElementToMarker','formatInline:accept','track-changes-suggestion-not-found','removed','data-suggestion','accepted','isLimit','_refreshSuggestionsChain','getChangedMarkers','isNextTo','getSuggestions','_addSuggestionMarker','isIntersectingWithRange','getMultiRangeId','markMultiRangeBlockFormat','head','ck-suggestion-marker-formatBlock','isLocal','discardSelectedSuggestions','createSelection','_isForcedDefaultExecutionBlock','toViewElement','item','_getExternalAuthor','track-changes-user-not-found','_defaultCallbacks','_saved','splitPosition','Users','isSelectable','remove','suggestionChanged','createdAt','trackChanges','multipleBlocks','backward','_descriptionFactory','isAtStart','createPositionAfter','_addThreadToSuggestion','author','isExternal','push','get','size','deletion:accept','fire','forward','setAttribute','previous','join','authorName','trackChanges.trackFormatChanges','applyOperation','_registerDefaultCallbacks','widget','getLastMatchingPosition','_checkSuggestionCorrectness','start','attributes','root','refresh','deletion:chain','_updateSuggestionData','showSuggestionHighlights','getAttribute','_removeSuggestion','getNearestSelectionRange','getChanges','_suggestionFactory','updateMarker','TrackChangesEditing','has','define','config','requires','ready','mapper','clear','lowest','options','getUser','createPositionAt','ck-suggestion-marker--active','error-saving-suggestion-data-suggestion-discarded','parent','after','_suggestionState','addClass','set','ck-suggestion-marker','discardSuggestion','adapter','isInContent','PendingActions','addHighlight','change','from','update:suggestion','removeMarker:suggestion:formatBlock','getShiftedBy','conversion','_setSuggestionData','newRange','stop','fromRange','_cutOutSuggestionMarker','suggestion:','acceptAllSuggestions','trackChanges.mergeNestedSuggestions','enableCommand','map','markMultiRangeDeletion','$graveyard','insertion:discard','every','getRanges','activeMarkers','init','track-changes-adapter-missing-getsuggestion','deleteContent','getMarkers','getWalker','getSuggestion','moveTargetPosition','editing','skipNestingCheck','subType','nodeAfter','isBefore','_findSuggestions','discardAllSuggestions','discard','_getSuggestionData','isAfter','keys','$marker','batch','commentThread','oldRange','isTouching','locale'];(function(_0x8b78b8,_0x544a83){const _0x136e21=function(_0x38330){while(--_0x38330){_0x8b78b8['push'](_0x8b78b8['shift']());}};_0x136e21(++_0x544a83);}(_0x544a,0x88));const _0x136e=function(_0x8b78b8,_0x544a83){_0x8b78b8=_0x8b78b8-0x0;let _0x136e21=_0x544a[_0x8b78b8];return _0x136e21;};import{Plugin as _0x3a5f12,PendingActions as _0x4b646f}from'ckeditor5/src/core';import{LiveRange as _0x29be02}from'ckeditor5/src/engine';import{CKEditorError as _0x22b8c7,uid as _0x354618,priorities as _0x115b37,logWarning as _0x5a5021}from'ckeditor5/src/utils';import{toWidget as _0x5d25eb}from'ckeditor5/src/widget';import{Users as _0x208cf5,hashObject as _0x299fef}from'ckeditor5-collaboration/src/collaboration-core';import _0x2b93cb from'./commands/trackchangescommand';import _0x1dd3f0 from'./commands/acceptsuggestioncommand';import _0x1c7d38 from'./commands/discardsuggestioncommand';import _0x2e1d64 from'./commands/executeonallsuggestionscommand';import _0x4b8353 from'./commands/executeonselectedsuggestionscommand';import _0x38d814 from'./suggestion';import _0x42d1b9 from'./suggestiondescriptionfactory';import _0x30bc12 from'./integrations/aiassistant';import _0xe85023 from'./integrations/alignment';import _0x3a69da from'./integrations/basicstyles';import _0x43500d from'./integrations/blockquote';import _0x6643a4 from'./integrations/ckbox';import _0x2974e6 from'./integrations/codeblock';import _0x28a640 from'./integrations/comments';import _0x84c1bf from'./integrations/deletecommand';import _0x322a3f from'./integrations/documentlist';import _0x445109 from'./integrations/entercommand';import _0x3c5a8f from'./integrations/findandreplace';import _0x364822 from'./integrations/font';import _0x1f69ef from'./integrations/formatpainter';import _0x248709 from'./integrations/heading';import _0x1f60ad from'./integrations/highlight';import _0x11f6cf from'./integrations/horizontalline';import _0x39d042 from'./integrations/htmlembed';import _0xd068eb from'./integrations/image';import _0x54eb59 from'./integrations/imagereplace';import _0x2c82ea from'./integrations/importword';import _0x115c4b from'./integrations/indent';import _0x4c178e from'./integrations/inputcommand';import _0x562815 from'./integrations/link';import _0x115bff from'./integrations/list';import _0x3aea83 from'./integrations/listproperties';import _0x2f39f1 from'./integrations/mediaembed';import _0x373f09 from'./integrations/mention';import _0x962660 from'./integrations/pagebreak';import _0x551e8c from'./integrations/paragraph';import _0x5f4db8 from'./integrations/removeformat';import _0x2ef65c from'./integrations/restrictededitingmode';import _0x172814 from'./integrations/shiftentercommand';import _0x2e0e62 from'./integrations/standardeditingmode';import _0x3ed66a from'./integrations/style';import _0x2c87dd from'./integrations/table';import _0x1d29ca from'./integrations/tablemergesplit';import _0x33935c from'./integrations/tableheadings';import _0x4ba4bb from'./integrations/tableclipboard';import _0x15fecd from'./integrations/tablecolumnresize';import _0x356c9c from'./integrations/template';import _0xb48820 from'./integrations/tableofcontents';import _0x2bd791 from'./integrations/title';import _0x5c36df from'./integrations/undo';import{getTranslation as _0x302a9d}from'./utils/common-translations';import _0x2d6f83 from'./integrations/tablecaption';import _0x413505 from'./integrations/documentlistproperties';import _0x41dec4 from'./integrations/tableproperties';import{isEqual as _0x548309}from'lodash-es';export default class p extends _0x3a5f12{static get[_0x136e('0x77')](){return[_0x136e('0x13e'),_0x208cf5,_0x4b646f,_0x30bc12,_0xe85023,_0x3a69da,_0x43500d,_0x6643a4,_0x2974e6,_0x28a640,_0x84c1bf,_0x322a3f,_0x413505,_0x445109,_0x3c5a8f,_0x364822,_0x1f69ef,_0x248709,_0x1f60ad,_0x11f6cf,_0x39d042,_0xd068eb,_0x54eb59,_0x2c82ea,_0x115c4b,_0x4c178e,_0x562815,_0x115bff,_0x3aea83,_0x2f39f1,_0x373f09,_0x962660,_0x551e8c,_0x5f4db8,_0x2ef65c,_0x172814,_0x2e0e62,_0x3ed66a,_0x2c87dd,_0x1d29ca,_0x33935c,_0x2d6f83,_0x4ba4bb,_0x15fecd,_0xb48820,_0x41dec4,_0x356c9c,_0x2bd791,_0x5c36df];}static get[_0x136e('0x1e')](){return _0x136e('0x73');}constructor(_0x477692){function _0x2b0c85(_0x9fc4ae){return _0x9fc4ae[_0x136e('0x9b')](_0x2d6513=>String[_0x136e('0xc8')](_0x2d6513))[_0x136e('0x5e')]('');}super(_0x477692),this['set'](_0x136e('0xa1'),[]),this['on'](_0x136e('0x129'),(_0x2ca48e,_0xab939e,_0x139068,_0x3448fb)=>{this[_0x136e('0x111')][_0x136e('0x8c')](()=>{for(const _0x2010f8 of[..._0x3448fb,..._0x139068])this['_model'][_0x136e('0x2b')]['has'](_0x2010f8)&&_0x477692[_0x136e('0xa9')][_0x136e('0xd4')](_0x2010f8);});}),this[_0x136e('0x50')]=new _0x42d1b9(this[_0x136e('0xe0')]['model'][_0x136e('0xcf')],this[_0x136e('0xe0')][_0x136e('0xb9')]),this[_0x136e('0x13f')]=null,this[_0x136e('0x71')]=new Bt(this[_0x136e('0xe0')]),this[_0x136e('0xbf')]=new Map(),this[_0x136e('0xcc')]=_0x477692[_0x136e('0xdc')]['get'](_0x136e('0x13e')),this[_0x136e('0x0')]=new Set(),this[_0x136e('0x111')]=this['editor'][_0x136e('0x115')],this[_0x136e('0x83')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x477692[_0x136e('0x76')][_0x136e('0x75')](_0x136e('0x60'),_0x136e('0x8')),this[_0x136e('0xea')]=_0x477692[_0x136e('0x76')][_0x136e('0x57')](_0x136e('0x60')),_0x477692[_0x136e('0x76')]['define'](_0x136e('0x99'),!0x0),this[_0x136e('0x12a')]=_0x477692['config'][_0x136e('0x57')](_0x136e('0x99')),this['trackChangesCommand']=new _0x2b93cb(_0x477692,this['_enabledCommands']),this[_0x2b0c85([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2b0c85([0x34,0x30,0x34,0x36,0x32,0x30,0x31,0x38]);}[_0x136e('0xa2')](){const _0x1e371c=this[_0x136e('0xe0')];_0x1e371c['conversion'][_0x136e('0xed')](_0x136e('0xc0'))['markerToHighlight']({'model':_0x136e('0x10e'),'view':_0x34498f=>{const {id:_0x4fb4ef,type:_0x522b68}=this[_0x136e('0xc1')](_0x34498f[_0x136e('0x5')]),_0x1d9348=['ck-suggestion-marker',_0x136e('0x28')+_0x522b68];let _0x953633=0xbb8;return this[_0x136e('0xa1')][_0x136e('0xf3')](_0x34498f['markerName'])&&(_0x1d9348[_0x136e('0x56')](_0x136e('0x7f')),_0x953633=0xbc2),_0x136e('0x11c')==_0x522b68&&(_0x953633+=0x5),{'classes':_0x1d9348,'attributes':{'data-suggestion':_0x4fb4ef},'priority':_0x953633};}}),_0x1e371c[_0x136e('0x91')][_0x136e('0xed')](_0x136e('0x27'))[_0x136e('0x12c')](_0x52abb9=>{_0x52abb9['on'](_0x136e('0x102'),(_0xa20cd6,_0xc5f2bb,_0x51a8c5)=>{if(!_0x51a8c5['options'][_0x136e('0x6c')])return;const _0x227694=_0xc5f2bb[_0x136e('0x42')];if(!_0x227694)return;const _0x5e6a49=_0x51a8c5[_0x136e('0x79')][_0x136e('0x41')](_0x227694);_0x1e371c[_0x136e('0x115')]['schema']['isObject'](_0x227694)&&_0x5e6a49&&!_0x5e6a49['getCustomProperty'](_0x136e('0x63'))&&_0x5e6a49['is'](_0x136e('0xfc'))&&_0x5d25eb(_0x5e6a49,_0x51a8c5[_0x136e('0x11a')]);},{'priority':_0x136e('0x117')});}),_0x1e371c[_0x136e('0x91')][_0x136e('0xed')]('dataDowncast')['markerToHighlight']({'model':_0x136e('0x10e'),'view':(_0x570f2a,_0x1791ba)=>{if(!_0x1791ba[_0x136e('0x7c')]['showSuggestionHighlights'])return null;const {type:_0x1a9d2c}=this[_0x136e('0xc1')](_0x570f2a[_0x136e('0x5')]);return{'classes':[_0x136e('0x86'),_0x136e('0x28')+_0x1a9d2c],'priority':0xbb8};}});const _0x4810b9=({showActiveMarkers:_0x5eb404=!0x0}={})=>(_0x13795c,_0x4964e3,_0x2384e6)=>{if(!_0x4964e3[_0x136e('0x42')])return;if(_0x4964e3['item']['is'](_0x136e('0xe2')))return void _0x2384e6['consumable']['consume'](_0x4964e3[_0x136e('0x42')],_0x13795c['name']);const _0x5bf83a=_0x2384e6['mapper']['toViewElement'](_0x4964e3['item']);if(!(_0x4964e3[_0x136e('0x42')]['is']('element')&&_0x1e371c[_0x136e('0x115')][_0x136e('0xcf')][_0x136e('0xd9')](_0x4964e3[_0x136e('0x42')])&&!_0x5bf83a['getCustomProperty']('addHighlight')))return;const {id:_0x1d8a5}=this[_0x136e('0xc1')](_0x4964e3[_0x136e('0x5')]);_0x2384e6['writer'][_0x136e('0x84')]([_0x136e('0x86'),'ck-suggestion-marker-formatBlock'],_0x5bf83a),_0x2384e6['writer'][_0x136e('0x5c')]('data-suggestion',_0x1d8a5,_0x5bf83a),_0x2384e6[_0x136e('0x79')][_0x136e('0x2c')](_0x5bf83a,_0x4964e3['markerName']),_0x5eb404&&(this['activeMarkers'][_0x136e('0xf3')](_0x4964e3[_0x136e('0x5')])?_0x2384e6[_0x136e('0x11a')][_0x136e('0x84')]('ck-suggestion-marker--active',_0x5bf83a):_0x2384e6[_0x136e('0x11a')]['removeClass']('ck-suggestion-marker--active',_0x5bf83a));for(const _0x3abfa1 of _0x1e371c['model']['createRangeIn'](_0x4964e3['item'])['getItems']())_0x2384e6[_0x136e('0xd1')][_0x136e('0xec')](_0x3abfa1,_0x13795c[_0x136e('0xe')]);_0x2384e6[_0x136e('0xd1')][_0x136e('0xec')](_0x4964e3['item'],_0x13795c['name']);};_0x1e371c[_0x136e('0x91')]['for'](_0x136e('0x27'))['add'](_0x155047=>{_0x155047['on'](_0x136e('0x13c'),(_0x51be62,_0x25f662,_0x2a9ec6)=>{_0x2a9ec6['options'][_0x136e('0x6c')]&&_0x4810b9({'showActiveMarkers':!0x1})(_0x51be62,_0x25f662,_0x2a9ec6);},{'priority':_0x136e('0xc9')});}),_0x1e371c['conversion']['for'](_0x136e('0x27'))['markerToData']({'model':_0x136e('0x10e'),'view':(_0x2b2fb9,_0x2efb57)=>_0x2efb57[_0x136e('0x7c')][_0x136e('0x6c')]?null:{'group':_0x136e('0x10e'),'name':_0x2b2fb9[_0x136e('0xfb')](0xb)}}),_0x1e371c[_0x136e('0x91')][_0x136e('0xed')](_0x136e('0x3'))[_0x136e('0x1c')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ba7f7,{writer:_0x178240})=>{let _0x2ad527=_0x136e('0x97')+_0x1ba7f7[_0x136e('0x6d')](_0x136e('0xbd'))+':'+_0x1ba7f7['getAttribute']('id');return _0x1ba7f7[_0x136e('0x6d')](_0x136e('0x22'))&&(_0x2ad527+=':'+_0x1ba7f7[_0x136e('0x6d')](_0x136e('0x22'))),_0x178240['createElement'](_0x136e('0xb4'),{'data-name':_0x2ad527});}}),_0x1e371c[_0x136e('0x91')][_0x136e('0xed')](_0x136e('0x3'))[_0x136e('0x13')]({'view':_0x136e('0x10e')}),_0x1e371c[_0x136e('0x91')][_0x136e('0xed')](_0x136e('0xc0'))[_0x136e('0x12c')](_0x49cfdf=>{_0x49cfdf['on'](_0x136e('0x13c'),_0x4810b9(),{'priority':_0x136e('0x117')});}),_0x1e371c['conversion'][_0x136e('0xed')](_0x136e('0xc0'))['add'](_0x36e0c0=>{_0x36e0c0['on'](_0x136e('0x8f'),(_0x36f361,_0x1afe76,_0x32c7b6)=>{const _0x56dd22=_0x32c7b6[_0x136e('0x79')][_0x136e('0x105')](_0x1afe76[_0x136e('0x5')]);if(_0x56dd22)for(const _0x93c0f1 of _0x56dd22)_0x93c0f1['getCustomProperty'](_0x136e('0x8b'))||(_0x32c7b6['writer']['removeClass']([_0x136e('0x86'),_0x136e('0x3c'),_0x136e('0x7f')],_0x93c0f1),_0x32c7b6[_0x136e('0x11a')]['removeAttribute'](_0x136e('0x30'),_0x93c0f1),_0x32c7b6['mapper'][_0x136e('0x103')](_0x93c0f1,_0x1afe76[_0x136e('0x5')]));},{'priority':'high'});}),_0x1e371c['model'][_0x136e('0xfd')][_0x136e('0xd2')](_0x4a900a=>{let _0x508743=!0x1;const _0x487d25=Array[_0x136e('0x8d')](_0x1e371c['model'][_0x136e('0xfd')][_0x136e('0x2')][_0x136e('0x34')]()),_0x1b1ca=new Set();for(const {name:_0x686cf4,data:_0x374af5}of _0x487d25){const {group:_0x5f5848,type:_0x367d70,id:_0x980e81}=this['_splitMarkerName'](_0x686cf4);if(_0x136e('0x10e')!==_0x5f5848)continue;const _0x357915=this['_suggestions']['get'](_0x980e81);if(null!=_0x374af5['newRange']){_0x136e('0x20')==_0x367d70&&(_0x508743=_0x508743||$t(_0x374af5[_0x136e('0x93')],_0x686cf4,_0x4a900a,_0x1e371c['model'][_0x136e('0xcf')]));if(_0x374af5['newRange'][_0x136e('0xf2')]||_0x136e('0x9d')==_0x374af5['newRange'][_0x136e('0x68')][_0x136e('0x26')]||_0x136e('0x100')==_0x367d70&&!Rt(_0x374af5['newRange'])||_0x136e('0x11c')==_0x367d70&&!(!Mt(_0x3ed92b=_0x374af5[_0x136e('0x93')])&&!function(_0x5dd5e4){return _0x5dd5e4[_0x136e('0x66')]['parent']==_0x5dd5e4[_0x136e('0x25')][_0x136e('0xc6')]&&_0x5dd5e4[_0x136e('0x66')][_0x136e('0xf5')];}(_0x3ed92b)))_0x4a900a[_0x136e('0x122')](_0x686cf4),_0x508743=!0x0;else{if(!_0x357915||!_0x357915[_0x136e('0x89')])continue;_0x1b1ca[_0x136e('0x12c')](_0x357915);}}}var _0x3ed92b;return _0x1b1ca[_0x136e('0x58')]>0x0&&(_0x508743=!!this[_0x136e('0x9')](_0x1b1ca)||_0x508743),_0x508743;}),_0x1e371c[_0x136e('0x115')][_0x136e('0xfd')]['registerPostFixer'](_0x501c49=>{let _0x11a178=!0x1;for(const _0x3a9805 of _0x1e371c[_0x136e('0x115')][_0x136e('0xfd')][_0x136e('0x2')][_0x136e('0x70')]()){if(_0x136e('0x12f')!=_0x3a9805[_0x136e('0xdb')])continue;const _0x394ea0=_0x3a9805['position'][_0x136e('0x90')](_0x3a9805[_0x136e('0x19')]);if(_0x394ea0[_0x136e('0xf5')])for(const _0x281b49 of this['_suggestions'][_0x136e('0x139')]()){if(_0x281b49[_0x136e('0x110')]||!_0x281b49[_0x136e('0x89')])continue;if(_0x136e('0x100')!=_0x281b49['type'])continue;const _0x233546=_0x281b49[_0x136e('0xbc')]();if(_0x233546['start'][_0x136e('0x81')]!=_0x233546[_0x136e('0x25')][_0x136e('0x81')]&&_0x233546[_0x136e('0x25')][_0x136e('0x136')](_0x3a9805[_0x136e('0x140')])){const _0xab8409=_0x1e371c[_0x136e('0x115')]['createRange'](_0x233546[_0x136e('0x66')],_0x394ea0);_0x501c49['updateMarker'](_0x281b49[_0x136e('0xe3')](),{'range':_0xab8409}),_0x11a178=!0x0;}}}return _0x11a178;}),_0x1e371c[_0x136e('0x115')][_0x136e('0x2b')]['on'](_0x136e('0x8e'),(_0x3932d5,_0x40d52d,_0x9557d6)=>{if(null==_0x9557d6){const {id:_0xa52570}=this[_0x136e('0xc1')](_0x40d52d[_0x136e('0xe')]),_0x133bd0=this[_0x136e('0xbf')][_0x136e('0x57')](_0xa52570);_0x133bd0&&_0x133bd0[_0x136e('0xd0')](_0x40d52d[_0x136e('0xe')]);}}),_0x1e371c['model'][_0x136e('0xfd')]['on'](_0x136e('0xe6'),()=>{const _0x341cb4=Array['from'](_0x1e371c['model'][_0x136e('0xfd')][_0x136e('0x2')][_0x136e('0x34')]())[_0x136e('0xcd')](_0x238eb8=>_0x136e('0x10e')===this[_0x136e('0xc1')](_0x238eb8[_0x136e('0xe')])[_0x136e('0x14')]);if(0x0===_0x341cb4[_0x136e('0x19')])return;_0x341cb4[_0x136e('0xff')]((_0x5e5c11,_0x5ae903)=>{const _0x59c541=_0x5e5c11[_0x136e('0xd6')][_0x136e('0xb7')],_0x1548d3=_0x5ae903[_0x136e('0xd6')][_0x136e('0xb7')];return null===_0x59c541&&null===_0x1548d3?0x0:null===_0x59c541&&null!==_0x1548d3?-0x1:null!==_0x59c541&&null===_0x1548d3?0x1:_0x59c541[_0x136e('0x66')][_0x136e('0xad')](_0x1548d3['start'])?-0x1:0x1;});const _0x52b23=new Set(),_0x16b30a=new Set();for(const {name:_0x194059,data:_0x3f0742}of _0x341cb4){const {id:_0x5201de}=this[_0x136e('0xc1')](_0x194059);if(null===_0x3f0742['oldRange']){const _0x46f372=this[_0x136e('0xc')](_0x194059);_0x16b30a[_0x136e('0x12c')](_0x46f372);}else{const _0x5a0c31=this[_0x136e('0xbf')][_0x136e('0x57')](_0x5201de);null!==_0x3f0742[_0x136e('0x93')]||_0x5a0c31[_0x136e('0x89')]?(_0x52b23[_0x136e('0x12c')](_0x5a0c31[_0x136e('0x3b')]),_0x16b30a[_0x136e('0x12c')](_0x5a0c31)):this[_0x136e('0x6e')](_0x5a0c31);}}_0x16b30a['size']>0x0&&this[_0x136e('0x33')](_0x16b30a);for(const _0x51e2ba of _0x52b23)this[_0x136e('0x5a')](_0x136e('0x4b'),_0x51e2ba);}),_0x1e371c[_0x136e('0x115')]['on'](_0x136e('0x61'),(_0x8dc77c,_0x45cf58)=>{const _0x3dbdbd=_0x45cf58[0x0];if(!this['_suggestions'][_0x136e('0x58')])return;if(!_0x3dbdbd[_0x136e('0x11e')])return;if(_0x3dbdbd['batch'][_0x136e('0xee')]||!_0x3dbdbd[_0x136e('0xb5')][_0x136e('0x3d')])return;let _0x7573ea,_0x2091dd;switch(_0x3dbdbd[_0x136e('0xdb')]){case'insert':_0x7573ea=_0x1e371c['model'][_0x136e('0x7e')](_0x3dbdbd[_0x136e('0x140')]),_0x2091dd=_0x7573ea['getShiftedBy'](_0x3dbdbd['howMany']);break;case _0x136e('0xba'):_0x7573ea=_0x1e371c[_0x136e('0x115')]['createPositionAt'](_0x3dbdbd[_0x136e('0x47')]),_0x2091dd=_0x1e371c[_0x136e('0x115')][_0x136e('0x7e')](_0x3dbdbd[_0x136e('0xa8')]);break;case _0x136e('0xca'):_0x7573ea=_0x1e371c[_0x136e('0x115')]['createPositionAt'](_0x3dbdbd[_0x136e('0x10a')]),_0x2091dd=_0x7573ea[_0x136e('0x90')](_0x3dbdbd['howMany']);break;default:return;}const _0x115594=_0x1e371c[_0x136e('0x115')][_0x136e('0x24')](_0x7573ea,_0x2091dd);_0x1e371c[_0x136e('0x115')][_0x136e('0x8c')](()=>{for(const {suggestion:_0x59a5c7,meta:_0x2e13bd}of this[_0x136e('0xae')](_0x115594)){if(_0x59a5c7[_0x136e('0x110')])continue;if(_0x136e('0x20')==_0x59a5c7[_0x136e('0xdb')])continue;const _0x7d0c91=_0x59a5c7[_0x136e('0xd6')]&&_0x59a5c7[_0x136e('0xd6')]['multipleBlocks'];(_0x136e('0x100')!=_0x59a5c7[_0x136e('0xdb')]||_0x136e('0xba')==_0x3dbdbd['type']&&!_0x7d0c91)&&(_0x2e13bd[_0x136e('0x135')]||_0x136e('0x1f')==_0x59a5c7[_0x136e('0xdb')]&&_0x2e13bd[_0x136e('0xdf')]||_0x59a5c7[_0x136e('0xbc')]()['containsRange'](_0x115594)&&this['_breakSuggestionMarker'](_0x59a5c7,_0x7573ea,_0x2091dd));}});},{'priority':_0x136e('0x7b')}),_0x1e371c[_0x136e('0x115')]['on'](_0x136e('0xa4'),(_0x572803,_0x6625c0)=>{const _0x29e810=_0x6625c0[0x0],_0x73b6fa=_0x6625c0[0x1];if(_0x73b6fa&&_0x73b6fa[_0x136e('0x119')])return;if(this[_0x136e('0x40')])return;if(!this[_0x136e('0xe1')][_0x136e('0x6')])return;if(_0x29e810[_0x136e('0xf2')])return;const _0x65e5ef=_0x1e371c['model']['schema'],{start:_0x3ff0bb,end:_0x1c4dc2}=_0x29e810[_0x136e('0xbc')](),_0x40e877=_0x3ff0bb[_0x136e('0xac')]&&_0x65e5ef[_0x136e('0x32')](_0x3ff0bb['nodeAfter'])?null:_0x65e5ef[_0x136e('0x6f')](_0x3ff0bb,_0x136e('0x5b')),_0x4e05e7=_0x1c4dc2['nodeBefore']&&_0x65e5ef['isLimit'](_0x1c4dc2[_0x136e('0xc6')])?null:_0x65e5ef['getNearestSelectionRange'](_0x1c4dc2,_0x136e('0x4f')),_0x28f9ee=_0x1e371c[_0x136e('0x115')]['createRange'](_0x40e877?_0x40e877['start']:_0x3ff0bb,_0x4e05e7?_0x4e05e7[_0x136e('0x25')]:_0x1c4dc2);_0x1e371c['model'][_0x136e('0x8c')](_0x501112=>{this[_0x136e('0x11b')](_0x28f9ee);const _0x2cb836=_0x1e371c[_0x136e('0x115')]['schema'][_0x136e('0x6f')](_0x28f9ee[_0x136e('0x66')]);_0x29e810['is'](_0x136e('0x17'))?_0x501112[_0x136e('0x2a')](_0x2cb836):_0x29e810[_0x136e('0xc5')](_0x2cb836);}),_0x572803[_0x136e('0x94')]();},{'priority':_0x115b37[_0x136e('0x101')]+0xa}),_0x1e371c[_0x136e('0x115')]['on']('insertContent',(_0x18b3f8,_0x161559)=>{const _0x34cd6c=_0x161559[_0x161559[_0x136e('0x19')]-0x1];_0x34cd6c&&_0x34cd6c[_0x136e('0x119')]||this[_0x136e('0x40')]||this['trackChangesCommand'][_0x136e('0x6')]&&(_0x1e371c[_0x136e('0x115')][_0x136e('0x8c')](()=>{let _0x294b98=_0x1e371c[_0x136e('0x115')]['insertContent'](_0x161559[0x0],_0x161559[0x1],_0x161559[0x2],{'forceDefaultExecution':!0x0});if(!_0x294b98)return;_0x18b3f8[_0x136e('0xbe')]=_0x294b98['clone']();const _0x1071a6=_0x294b98[_0x136e('0x25')]['nodeBefore'],_0x37eacc=_0x1e371c[_0x136e('0x115')][_0x136e('0xcf')];_0x1071a6&&_0x37eacc[_0x136e('0xd9')](_0x1071a6)&&!_0x37eacc['isObject'](_0x1071a6)&&(_0x294b98=_0x1e371c[_0x136e('0x115')][_0x136e('0x24')](_0x294b98[_0x136e('0x66')],_0x1e371c[_0x136e('0x115')]['createPositionAt'](_0x1071a6,_0x136e('0x25')))),this[_0x136e('0x112')](_0x294b98);}),_0x18b3f8[_0x136e('0x94')]());},{'priority':'high'}),this['editor'][_0x136e('0x1a')][_0x136e('0x12c')](_0x136e('0x4d'),this['trackChangesCommand']),this['enableCommand'](_0x136e('0x4d'));const _0x59e72d=new _0x1dd3f0(_0x1e371c,this[_0x136e('0xbf')]);_0x1e371c[_0x136e('0x1a')]['add']('acceptSuggestion',_0x59e72d),this[_0x136e('0x9a')](_0x136e('0xd8'));const _0x62fb0=new _0x1c7d38(_0x1e371c,this[_0x136e('0xbf')]);_0x1e371c[_0x136e('0x1a')][_0x136e('0x12c')]('discardSuggestion',_0x62fb0),this[_0x136e('0x9a')](_0x136e('0x87')),_0x1e371c[_0x136e('0x1a')][_0x136e('0x12c')](_0x136e('0x98'),new _0x2e1d64(_0x1e371c,_0x59e72d,this[_0x136e('0xbf')])),this['enableCommand'](_0x136e('0x98')),_0x1e371c[_0x136e('0x1a')][_0x136e('0x12c')]('discardAllSuggestions',new _0x2e1d64(_0x1e371c,_0x62fb0,this['_suggestions'])),this[_0x136e('0x9a')](_0x136e('0xaf')),_0x1e371c[_0x136e('0x1a')][_0x136e('0x12c')]('acceptSelectedSuggestions',new _0x4b8353(_0x1e371c,_0x59e72d,this[_0x136e('0xbf')])),this[_0x136e('0x9a')](_0x136e('0xb')),_0x1e371c['commands']['add']('discardSelectedSuggestions',new _0x4b8353(_0x1e371c,_0x62fb0,this[_0x136e('0xbf')])),this[_0x136e('0x9a')](_0x136e('0x3e'));const _0x1ee53a=_0x1e371c[_0x136e('0xdc')]['get']('CommentsRepository');this[_0x136e('0xd3')](_0x1ee53a,_0x136e('0x108'),(_0x11039c,{threadId:_0x2ec7e6})=>{const _0x232d6b=this[_0x136e('0xbf')][_0x136e('0x57')](_0x2ec7e6);_0x232d6b&&_0x232d6b[_0x136e('0xb6')]&&0x1===_0x232d6b['commentThread'][_0x136e('0x19')]&&this[_0x136e('0x6b')](_0x2ec7e6,{'hasComments':!0x0});},{'priority':_0x136e('0x12b')}),this['listenTo'](_0x1ee53a,'removeComment',(_0x2111aa,{threadId:_0xa9fdf8})=>{const _0x47e148=this[_0x136e('0xbf')]['get'](_0xa9fdf8);_0x47e148&&_0x47e148[_0x136e('0xb6')]&&!_0x47e148[_0x136e('0xb6')][_0x136e('0x19')]&&this[_0x136e('0x6b')](_0xa9fdf8,{'hasComments':!0x1});},{'priority':_0x136e('0x12b')});}set['adapter'](_0x25d820){if(this[_0x136e('0x13f')])throw new _0x22b8c7('track-changes-adapter-already-set',this);this[_0x136e('0x13f')]=_0x25d820;}get[_0x136e('0x88')](){return this[_0x136e('0x13f')];}[_0x136e('0x36')]({skipNotAttached:_0x1f3d25=!0x1,toJSON:_0x369b67=!0x1}={}){const _0x4464cb=[];for(const _0x5668dc of this['_suggestions'][_0x136e('0x139')]())_0x1f3d25&&!_0x5668dc[_0x136e('0x89')]||_0x4464cb[_0x136e('0x56')](_0x5668dc);return _0x369b67?_0x4464cb[_0x136e('0x9b')](_0x4e63ef=>_0x4e63ef[_0x136e('0x15')]()):_0x4464cb;}['getSuggestion'](_0x4b2838){const _0x5ed598=this['_suggestions'][_0x136e('0x57')](_0x4b2838);if(!_0x5ed598)throw new _0x22b8c7(_0x136e('0x2e'),this);return _0x5ed598;}['hasSuggestion'](_0xddc427){return this[_0x136e('0xbf')][_0x136e('0x74')](_0xddc427);}[_0x136e('0xe5')](_0x14d4c6){const {authorId:_0x7574a,id:_0x1c3ce2,attributes:_0x40225f}=_0x14d4c6,[_0x329da4,_0x34ef4b]=_0x14d4c6[_0x136e('0xdb')][_0x136e('0xba')](':'),_0x409390=this[_0x136e('0xbf')]['get'](_0x1c3ce2)||this['_createSuggestion'](_0x329da4,_0x34ef4b,_0x1c3ce2,_0x7574a,_0x40225f);if(this[_0x136e('0x53')](_0x409390),this[_0x136e('0x65')](_0x409390,_0x329da4,_0x34ef4b||null,_0x7574a),_0x409390[_0x136e('0x4c')]=_0x14d4c6[_0x136e('0x4c')],_0x409390[_0x136e('0xd7')]=!0x0,_0x40225f&&_0x40225f[_0x136e('0xeb')]){const _0x3f4082=_0x40225f[_0x136e('0xeb')],_0x37ae9f=this['_getExternalAuthor'](_0x3f4082[_0x136e('0x5f')]);_0x409390[_0x136e('0x125')]=_0x3f4082[_0x136e('0x4c')],_0x409390[_0x136e('0x54')]=_0x37ae9f,_0x409390[_0x136e('0x55')]=!0x0;}else _0x409390['authoredAt']=_0x14d4c6[_0x136e('0x4c')];switch(_0x14d4c6[_0x136e('0xd6')]&&(_0x409390[_0x136e('0xd6')]=_0x14d4c6[_0x136e('0xd6')]),_0x14d4c6[_0x136e('0x67')]&&(_0x409390['attributes']=_0x14d4c6['attributes']),this[_0x136e('0x13f')]&&this[_0x136e('0x13f')][_0x136e('0x23')]||(_0x409390[_0x136e('0x46')]=!0x0),this[_0x136e('0x83')]['get'](_0x409390)){case'notReady':this['_suggestionState'][_0x136e('0x85')](_0x409390,_0x136e('0x13a'));break;case _0x136e('0xfe'):_0x409390[_0x136e('0x89')]?(this['_refreshSuggestionsChain'](new Set([_0x409390])),this[_0x136e('0x9')](new Set([_0x409390])),this[_0x136e('0x83')]['set'](_0x409390,_0x136e('0x78')),this['fire'](_0x136e('0xfa'),_0x409390)):this[_0x136e('0x83')]['set'](_0x409390,'removed');}return _0x409390;}[_0x136e('0xd8')](_0x853305){this[_0x136e('0x119')](()=>{this[_0x136e('0xe0')][_0x136e('0x115')][_0x136e('0x8c')](()=>{for(const _0x562a3c of _0x853305[_0x136e('0xf')]())_0x562a3c[_0x136e('0xcb')]();});});}[_0x136e('0x87')](_0xa065fc){this[_0x136e('0x119')](()=>{this['editor'][_0x136e('0x115')]['change'](()=>{for(const _0x164c05 of _0xa065fc[_0x136e('0xf')]())_0x164c05[_0x136e('0xb0')]();});});}[_0x136e('0x9a')](_0xbf4640,_0x389818){const _0x469db6=this['editor'][_0x136e('0x1a')][_0x136e('0x57')](_0xbf4640);if(!_0x469db6)throw new _0x22b8c7('track-changes-command-not-found',this,{'commandName':_0xbf4640});this[_0x136e('0x0')]['add'](_0x469db6),_0x389818&&_0x469db6['on'](_0x136e('0x130'),(_0x4a24f5,_0x58b8ab)=>{this[_0x136e('0xe1')]['value']&&(this[_0x136e('0x40')]||_0x58b8ab['length']>0x0&&_0x58b8ab[_0x58b8ab[_0x136e('0x19')]-0x1]&&_0x58b8ab[_0x58b8ab['length']-0x1][_0x136e('0x119')]||(_0x389818((..._0x1b3073)=>_0x469db6[_0x136e('0x130')](..._0x1b3073,{'forceDefaultExecution':!0x0}),..._0x58b8ab),_0x4a24f5[_0x136e('0x94')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x11cdf1){let _0x3edde0,_0x9a1ef6;const _0xb7ca75=this[_0x136e('0x40')];this[_0x136e('0x40')]=!0x0;try{_0x3edde0=_0x11cdf1();}catch(_0x3f68ea){_0x9a1ef6=_0x3f68ea;}return _0xb7ca75||(this[_0x136e('0x40')]=!0x1),_0x9a1ef6&&_0x22b8c7[_0x136e('0xf1')](_0x9a1ef6,this),_0x3edde0;}[_0x136e('0x112')](_0x495466,_0x1a226a=null,_0x16409b={}){if(_0x495466['isCollapsed'])return null;const _0x59cbb0=this['editor'][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'];for(const {suggestion:_0xcc17cc,meta:_0x12072c}of this[_0x136e('0xae')](_0x495466,'insertion'))if(_0x12072c[_0x136e('0xdf')]){if(!_0x12072c[_0x136e('0x35')]){if(_0x12072c['containsRangeInObject']){if(!this[_0x136e('0x12a')]||!Ot(_0xcc17cc,_0x16409b))continue;return _0xcc17cc;}if(Ot(_0xcc17cc,_0x16409b))return _0xcc17cc;this[_0x136e('0x21')](_0xcc17cc,_0x495466[_0x136e('0x66')],_0x495466['end']);break;}if(_0x1a226a==_0xcc17cc[_0x136e('0xab')]&&Ot(_0xcc17cc,_0x16409b)){const _0xe541b0=_0xcc17cc[_0x136e('0xbc')]();return _0xe541b0['start'][_0x136e('0x136')](_0x495466['end'])?this[_0x136e('0x10d')](_0xcc17cc,this[_0x136e('0x111')]['createRange'](_0x495466[_0x136e('0x66')],_0xe541b0[_0x136e('0x25')])):this[_0x136e('0x10d')](_0xcc17cc,this[_0x136e('0x111')][_0x136e('0x24')](_0xe541b0[_0x136e('0x66')],_0x495466[_0x136e('0x25')])),_0xcc17cc;}}const _0x52c50f=_0x354618(),_0x53eb7c=_0x59cbb0['id'],_0x59df4f=_0x1a226a?_0x136e('0x109')+_0x1a226a:_0x136e('0x1f'),_0x1f7b8f=this['_setSuggestionData']({'id':_0x52c50f,'type':_0x59df4f,'createdAt':new Date(),'authorId':_0x53eb7c,'attributes':_0x16409b});return this[_0x136e('0x37')](_0x59df4f,_0x52c50f,_0x53eb7c,_0x495466),_0x1f7b8f;}[_0x136e('0x131')](_0x2d19e4,_0x360ae3='multi',_0x1a8e9e={}){const _0xa63b16=this['editor'][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'],_0x6ed19f=this['_suggestionFactory'][_0x136e('0x123')]('insertion',_0x360ae3,_0x136e('0x5e'));for(const _0x5c20d8 of this['getSuggestions']())if(_0x5c20d8[_0x136e('0x54')]['id']==_0xa63b16['id']&&_0x136e('0x1f')==_0x5c20d8['type']&&_0x5c20d8[_0x136e('0xab')]==_0x360ae3&&Ot(_0x5c20d8,_0x1a8e9e)&&(_0x6ed19f(_0x5c20d8[_0x136e('0xa0')](),_0x2d19e4)||_0x6ed19f(_0x2d19e4,_0x5c20d8['getRanges']()))){for(const _0x471615 of _0x2d19e4)_0x5c20d8['addRange'](_0x471615);return _0x5c20d8;}for(const {suggestion:_0x4a203c,meta:_0x18c914}of this[_0x136e('0xae')](_0x2d19e4,_0x136e('0x1f'))){if(!_0x18c914[_0x136e('0xdf')])continue;if(!this[_0x136e('0x12a')]&&_0x18c914[_0x136e('0x135')])continue;if(!Ot(_0x4a203c,_0x1a8e9e))continue;let _0x5e77b9=!0x0;for(const _0x5e724f of _0x4a203c[_0x136e('0xa0')]())for(const _0x9982aa of _0x2d19e4)if(!_0x5e724f[_0x136e('0xef')](_0x9982aa)){_0x5e77b9=!0x1;break;}if(_0x5e77b9)return _0x4a203c;}const _0x568fef=_0x354618(),_0x17d472=_0xa63b16['id'],_0xadd54=_0x136e('0x109')+_0x360ae3,_0x18821f=this['_setSuggestionData']({'id':_0x568fef,'type':_0xadd54,'createdAt':new Date(),'authorId':_0x17d472,'attributes':_0x1a8e9e});for(const _0x2f6dae of _0x2d19e4)this[_0x136e('0x37')](_0xadd54,_0x568fef,_0x17d472,_0x2f6dae,_0x38d814[_0x136e('0x39')]());return _0x18821f;}['markInlineFormat'](_0x3a08de,_0x120358,_0x4b571c=null,_0x2c8a14={}){if(_0x4b571c=_0x4b571c||Nt(_0x120358),_0x3a08de[_0x136e('0xf2')])return null;if(_0x136e('0xe7')===this['_trackFormatChanges']){const _0x1f8de1=this['_suggestionFactory'][_0x136e('0x123')](_0x136e('0x20'),_0x4b571c,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x1f8de1([_0x3a08de],_0x120358,_0x2c8a14)),null;}const _0x3b4414=this[_0x136e('0xe0')][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'],_0x1fd236=[];if(_0x136e('0x138')!==this[_0x136e('0xea')])for(const {suggestion:_0x54f440,meta:_0x2821d3}of this[_0x136e('0xae')](_0x3a08de,_0x136e('0x1f')))_0x2821d3[_0x136e('0xdf')]&&!_0x2821d3['isInsideObject']&&_0x1fd236[_0x136e('0x56')](..._0x54f440[_0x136e('0xa0')]());const _0x514afa=function(_0x383a0f,_0x369563){const _0x45c7af=[];for(const _0x5ed923 of _0x369563){const _0xce4607=_0x383a0f['getIntersection'](_0x5ed923);_0xce4607&&_0x45c7af['push'](_0xce4607);}return _0x45c7af;}(_0x3a08de,_0x1fd236),_0x39af4d=function(_0x1753d3,_0x573153){const _0x2eadf7=[_0x1753d3];for(const _0x332adc of _0x573153){let _0x42058a=0x0;for(;_0x42058a<_0x2eadf7[_0x136e('0x19')];){const _0x2169bb=_0x2eadf7[_0x42058a]['getDifference'](_0x332adc);_0x2eadf7[_0x136e('0x4')](_0x42058a,0x1,..._0x2169bb),_0x42058a+=_0x2169bb[_0x136e('0x19')];}}return _0x2eadf7;}(_0x3a08de,_0x1fd236);_0x514afa[_0x136e('0x19')]&&this['_model']['change'](()=>{for(const _0x25d61c of _0x514afa){const _0x32137c=this['_suggestionFactory'][_0x136e('0x123')](_0x136e('0x20'),_0x4b571c,_0x136e('0xcb'));this[_0x136e('0x119')](()=>_0x32137c([_0x25d61c],_0x120358,_0x2c8a14));}});for(const _0x28aec0 of _0x39af4d){let _0x2837d2=null,_0x1eae76=_0x28aec0['start'],_0x2f7ac7=_0x28aec0[_0x136e('0x25')];for(const {suggestion:_0x23ef37,meta:_0x1f889a}of this[_0x136e('0xae')](_0x28aec0,_0x136e('0x20'))){if(!_0x1f889a[_0x136e('0xdf')])continue;if(_0x23ef37[_0x136e('0xab')]!=_0x4b571c)continue;if(!Ot(_0x23ef37,_0x2c8a14))continue;const _0x545c50=_0x23ef37[_0x136e('0xbc')]();if(_0x545c50[_0x136e('0xef')](_0x28aec0,!0x0))return null;_0x1eae76=_0x1eae76[_0x136e('0xad')](_0x545c50[_0x136e('0x66')])?_0x1eae76:_0x545c50['start'],_0x2f7ac7=_0x2f7ac7[_0x136e('0xb2')](_0x545c50[_0x136e('0x25')])?_0x2f7ac7:_0x545c50[_0x136e('0x25')],_0x2837d2?_0x545c50[_0x136e('0x66')][_0x136e('0xad')](_0x2837d2[_0x136e('0xbc')]()[_0x136e('0x66')])?(_0x2837d2[_0x136e('0x106')](),_0x2837d2=_0x23ef37):_0x23ef37[_0x136e('0x106')]():_0x2837d2=_0x23ef37;}const _0x52f49a=this['_model'][_0x136e('0x24')](_0x1eae76,_0x2f7ac7);if(_0x2837d2)this[_0x136e('0x10d')](_0x2837d2,_0x52f49a);else{const _0x4425f2=_0x354618(),_0x2f4154=_0x3b4414['id'];this[_0x136e('0x92')]({'id':_0x4425f2,'type':_0x136e('0x113')+_0x4b571c,'data':_0x120358,'createdAt':new Date(),'authorId':_0x2f4154,'attributes':_0x2c8a14}),this[_0x136e('0x37')](_0x136e('0x113')+_0x4b571c,_0x4425f2,_0x2f4154,_0x52f49a);}}return null;}['markBlockFormat'](_0x3db7f4,_0x40aa3f,_0x2df200=[],_0xe22e65=null,_0x64ce62={}){_0x40aa3f['formatGroupId']||(_0x40aa3f[_0x136e('0xf8')]=_0x40aa3f[_0x136e('0x1b')]),_0x40aa3f[_0x136e('0x4e')]=_0x3db7f4['is'](_0x136e('0x12e')),_0xe22e65=_0xe22e65||Nt(_0x40aa3f);const _0x48331a=_0x2df200[_0x136e('0x9b')](_0x8653b1=>jt(_0x8653b1,this['_model'])),_0x5f4a66=_0x3db7f4['is'](_0x136e('0x12e'))?_0x3db7f4:jt(_0x3db7f4,this[_0x136e('0x111')]);if(_0x136e('0xe7')===this[_0x136e('0xea')]){const _0x45b4f4=this['_suggestionFactory'][_0x136e('0x123')](_0x136e('0x100'),_0xe22e65,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x45b4f4([_0x5f4a66],_0x40aa3f,_0x64ce62)),null;}_0x48331a[_0x136e('0x56')](_0x5f4a66);let _0x2184af=!0x0;for(const _0x67f098 of _0x48331a)if(!this[_0x136e('0x134')](_0x67f098)){_0x2184af=!0x1;break;}if(_0x2184af&&_0x136e('0x138')!==this[_0x136e('0xea')]){const _0x3bf185=this[_0x136e('0x71')][_0x136e('0x123')](_0x136e('0x100'),_0xe22e65,'accept');return this[_0x136e('0x119')](()=>_0x3bf185([_0x5f4a66],_0x40aa3f,_0x64ce62)),null;}let _0x5299f2=null,_0x34e120=_0x5f4a66[_0x136e('0x66')],_0x2c1ec3=_0x5f4a66['end'];for(const {suggestion:_0x353993,meta:_0x49d67f}of this[_0x136e('0xae')](_0x5f4a66,_0x136e('0x100'))){if(!_0x49d67f[_0x136e('0xdf')])continue;if(_0x49d67f[_0x136e('0x35')]||_0x49d67f[_0x136e('0x135')]||_0x49d67f[_0x136e('0x13b')])continue;if(_0x353993[_0x136e('0xd6')]['formatGroupId']!=_0x40aa3f['formatGroupId'])continue;if(!Ot(_0x353993,_0x64ce62))continue;const _0x15afcd=_0x353993[_0x136e('0xbc')]();if(_0x353993[_0x136e('0xab')]==_0xe22e65){if(_0x15afcd[_0x136e('0xef')](_0x5f4a66,!0x0))return null;_0x34e120=_0x34e120[_0x136e('0xad')](_0x15afcd[_0x136e('0x66')])?_0x34e120:_0x15afcd[_0x136e('0x66')],_0x2c1ec3=_0x2c1ec3[_0x136e('0xb2')](_0x15afcd['end'])?_0x2c1ec3:_0x15afcd[_0x136e('0x25')],_0x5299f2?_0x15afcd[_0x136e('0x66')][_0x136e('0xad')](_0x5299f2[_0x136e('0xbc')]()[_0x136e('0x66')])?(_0x5299f2['removeMarkers'](),_0x5299f2=_0x353993):_0x353993[_0x136e('0x106')]():_0x5299f2=_0x353993;}else{const _0x360231=_0x5f4a66[_0x136e('0x128')](_0x15afcd);this[_0x136e('0x96')](_0x353993,_0x360231);}}const _0x548305=this[_0x136e('0xe0')][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'],_0x9ff8d=_0x354618(),_0x4314f4=_0x548305['id'];if(_0x5299f2)return this['_setSuggestionRange'](_0x5299f2,this[_0x136e('0x111')][_0x136e('0x24')](_0x34e120,_0x2c1ec3)),_0x5299f2;{const _0x1a354c=this['_setSuggestionData']({'id':_0x9ff8d,'type':_0x136e('0x141')+_0xe22e65,'data':_0x40aa3f,'createdAt':new Date(),'authorId':_0x4314f4,'attributes':_0x64ce62});return this[_0x136e('0x37')](_0x136e('0x141')+_0xe22e65,_0x9ff8d,_0x4314f4,this[_0x136e('0x111')][_0x136e('0x24')](_0x34e120,_0x2c1ec3)),_0x1a354c;}}[_0x136e('0x3a')](_0x27b7a1,_0x593612,_0x5a0b21=[],_0x54ef75=null,_0x10c473={}){_0x593612[_0x136e('0xf8')]||(_0x593612[_0x136e('0xf8')]=_0x593612[_0x136e('0x1b')]);const _0x814497=_0x27b7a1[0x0];_0x593612['multipleBlocks']=_0x814497['is']('range'),_0x54ef75=_0x54ef75||Nt(_0x593612);const _0x531269=_0x5a0b21['map'](_0x2e4516=>jt(_0x2e4516,this[_0x136e('0x111')])),_0x18410a=_0x814497['is'](_0x136e('0x12e'))?_0x27b7a1:_0x27b7a1['map'](_0x4febc0=>jt(_0x4febc0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x435bce=this[_0x136e('0x71')]['getSuggestionCallback'](_0x136e('0x100'),_0x54ef75,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x435bce(_0x18410a,_0x593612,_0x10c473)),null;}_0x531269[_0x136e('0x56')](..._0x18410a);let _0x39af91=!0x0;for(const _0x4a8a32 of _0x531269)if(!this[_0x136e('0x134')](_0x4a8a32)){_0x39af91=!0x1;break;}if(_0x39af91&&_0x136e('0x138')!==this[_0x136e('0xea')]){const _0x259256=this[_0x136e('0x71')]['getSuggestionCallback'](_0x136e('0x100'),_0x54ef75,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x259256(_0x18410a,_0x593612,_0x10c473)),null;}const _0x343933=this[_0x136e('0xe0')]['plugins'][_0x136e('0x57')](_0x136e('0x48'))['me'];for(const _0xb404a0 of this[_0x136e('0x36')]()){if(_0xb404a0['author']['id']!=_0x343933['id'])continue;if(_0x136e('0x100')!=_0xb404a0[_0x136e('0xdb')]||_0xb404a0[_0x136e('0xd6')][_0x136e('0xf8')]!=_0x593612['formatGroupId'])continue;if(!Ot(_0xb404a0,_0x10c473))continue;const _0x239ea1=_0xb404a0['subType']==_0x54ef75;for(let _0x4d02d4=0x0;_0x4d02d4<_0x18410a[_0x136e('0x19')];_0x4d02d4++){const _0x17fb1c=_0x18410a[_0x4d02d4];for(const _0x13c984 of _0xb404a0[_0x136e('0xa5')]()){const _0x59ed9e=_0x13c984[_0x136e('0xe9')]();if(_0x17fb1c[_0x136e('0x136')](_0x59ed9e)){_0x239ea1?(_0x18410a['splice'](_0x4d02d4,0x1),_0x4d02d4--):_0xb404a0[_0x136e('0x122')](_0x13c984['name']);break;}}}}if(0x0==_0x18410a['length'])return null;const _0x56a579=this[_0x136e('0x71')][_0x136e('0x123')](_0x136e('0x100'),_0x54ef75,_0x136e('0x5e'));for(const _0x21e832 of this[_0x136e('0x36')]())if(_0x21e832['author']['id']==_0x343933['id']&&_0x136e('0x100')==_0x21e832['type']&&_0x21e832[_0x136e('0xd6')][_0x136e('0xf8')]==_0x593612[_0x136e('0xf8')]&&_0x21e832[_0x136e('0xab')]==_0x54ef75&&Ot(_0x21e832,_0x10c473)&&(_0x56a579(_0x21e832[_0x136e('0xa0')](),_0x18410a)||_0x56a579(_0x18410a,_0x21e832[_0x136e('0xa0')]()))){for(const _0xabf175 of _0x18410a)_0x21e832[_0x136e('0x121')](_0xabf175);return _0x21e832;}const _0x3c33db=_0x354618(),_0x2def07=_0x343933['id'],_0x98f380=_0x136e('0x141')+_0x54ef75,_0xf407dd=this[_0x136e('0x92')]({'id':_0x3c33db,'type':_0x98f380,'data':_0x593612,'createdAt':new Date(),'authorId':_0x2def07,'attributes':_0x10c473});for(const _0xee22fc of _0x18410a)this['_addSuggestionMarker'](_0x98f380,_0x3c33db,_0x2def07,_0xee22fc,_0x38d814['getMultiRangeId']());return _0xf407dd;}[_0x136e('0x11b')](_0xe6f089,_0x10950f=null,_0xa6c708={}){if(_0xe6f089[_0x136e('0xf2')])return null;const _0x28c600=this['editor'][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'],_0x2db077=new _0x29be02(_0xe6f089['start'],_0xe6f089[_0x136e('0x25')]);for(const {suggestion:_0x1ccfd6,meta:_0x3ab0ac}of this[_0x136e('0xae')](_0x2db077,_0x136e('0x1f')))if(_0x3ab0ac[_0x136e('0xdf')]&&!_0x3ab0ac[_0x136e('0x35')]){if(_0x1ccfd6['isMultiRange']){const _0x3625b8=_0x1ccfd6[_0x136e('0xa0')]()[_0x136e('0xcd')](_0xda241b=>'$graveyard'!=_0xda241b[_0x136e('0x68')][_0x136e('0x26')]);_0x3625b8[_0x136e('0x9f')](_0xb7cf05=>_0x2db077[_0x136e('0xef')](_0xb7cf05,!0x0))&&_0x1ccfd6[_0x136e('0xb0')]();if(_0x3625b8[_0x136e('0x1d')](_0x5bdfe5=>_0x5bdfe5[_0x136e('0xef')](_0x2db077,!0x0))){const _0x1597bb=this[_0x136e('0x71')]['getSuggestionCallback'](_0x136e('0x11c'),_0x10950f,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x1597bb([_0x2db077],null,_0xa6c708)),null;}}else{const _0x35b224=_0x2db077['getIntersection'](_0x1ccfd6[_0x136e('0xbc')]());null!==_0x35b224&&_0x1ccfd6[_0x136e('0x124')]([_0x35b224],null,_0xa6c708);}}if(_0x2db077['detach'](),_0x2db077[_0x136e('0xf2')]||_0x136e('0x9d')==_0x2db077['root'][_0x136e('0x26')])return null;let _0x4c6c59=null,_0x48cd74=_0x2db077[_0x136e('0x66')],_0x16da8a=_0x2db077[_0x136e('0x25')];const _0x284cbc=this[_0x136e('0xae')](_0x2db077,'deletion');for(const {suggestion:_0x48f590,meta:_0x47806a}of _0x284cbc){const _0x905d27=this['_model'][_0x136e('0x24')](_0x48cd74,_0x16da8a);if(_0x47806a[_0x136e('0xdf')]&&(this['_mergeNestedSuggestions']||!_0x47806a[_0x136e('0x135')]&&!_0x47806a['isInsideObject'])){if(_0x48f590[_0x136e('0x110')]){if(!Ot(_0x48f590,_0xa6c708))continue;let _0x1193dc=!0x0;for(const _0x81535b of _0x48f590['getRanges']()){if(_0x81535b[_0x136e('0xef')](_0x905d27,!0x0))return _0x48f590;_0x905d27[_0x136e('0xef')](_0x81535b)||(_0x1193dc=!0x1);}_0x1193dc&&_0x48f590[_0x136e('0xb0')]();}else{const _0x5460a9=_0x48f590['getFirstRange']();if(_0x5460a9[_0x136e('0xef')](_0x905d27,!0x0))return _0x48f590;if(!Ot(_0x48f590,_0xa6c708)){_0x905d27['containsRange'](_0x5460a9)?_0x48f590[_0x136e('0x106')]():_0x5460a9[_0x136e('0x7')](_0x48cd74)?_0x48cd74=_0x5460a9['end']:_0x5460a9[_0x136e('0x7')](_0x16da8a)&&(_0x16da8a=_0x5460a9[_0x136e('0x66')]);continue;}_0x48cd74=_0x48cd74[_0x136e('0xad')](_0x5460a9['start'])?_0x48cd74:_0x5460a9[_0x136e('0x66')],_0x16da8a=_0x16da8a[_0x136e('0xb2')](_0x5460a9[_0x136e('0x25')])?_0x16da8a:_0x5460a9['end'],_0xa6c708=Object[_0x136e('0xde')]({},_0x48f590[_0x136e('0x67')]),_0x4c6c59?_0x5460a9[_0x136e('0x66')][_0x136e('0xad')](_0x4c6c59[_0x136e('0xbc')]()[_0x136e('0x66')])?(_0x4c6c59[_0x136e('0x106')](),_0x4c6c59=_0x48f590):_0x48f590[_0x136e('0x106')]():_0x4c6c59=_0x48f590;}}}if(_0x4c6c59)return this[_0x136e('0x10d')](_0x4c6c59,this[_0x136e('0x111')][_0x136e('0x24')](_0x48cd74,_0x16da8a)),_0x4c6c59;{const _0x3f9fa4=_0x354618(),_0x437da0=this['_model'][_0x136e('0x24')](_0x48cd74,_0x16da8a),_0x3c0bcd=_0x28c600['id'],_0x5b8d2e=_0x10950f?_0x136e('0xc4')+_0x10950f:_0x136e('0x11c'),_0x3e18d0=this[_0x136e('0x92')]({'id':_0x3f9fa4,'type':_0x5b8d2e,'createdAt':new Date(),'authorId':_0x3c0bcd,'attributes':_0xa6c708});return this[_0x136e('0x37')](_0x5b8d2e,_0x3f9fa4,_0x3c0bcd,_0x437da0),_0x3e18d0;}}[_0x136e('0x9c')](_0x2db201,_0x3529a3=_0x136e('0x127'),_0x907e9e={}){const _0x19fdb7=this[_0x136e('0xe0')][_0x136e('0xdc')][_0x136e('0x57')]('Users')['me'],_0x25ad94=_0x2db201['map'](_0x2b8faa=>new _0x29be02(_0x2b8faa[_0x136e('0x66')],_0x2b8faa[_0x136e('0x25')])),_0xe3025f=new Set();for(const {suggestion:_0x2f3561,meta:_0xf4b8ac}of this['_findSuggestions'](_0x25ad94,_0x136e('0x1f')))_0xf4b8ac[_0x136e('0xdf')]&&!_0xf4b8ac[_0x136e('0x35')]&&_0xe3025f[_0x136e('0x12c')](_0x2f3561);for(const _0x103877 of _0xe3025f)if(_0x103877[_0x136e('0x110')]){const _0x1780c7=_0x103877['getRanges']();(!_0x103877[_0x136e('0x67')]||!_0x103877[_0x136e('0x67')]['skipNestingCheck'])&&(_0x1780c7[_0x136e('0x9f')](_0x22a39c=>_0x25ad94['some'](_0x410662=>_0x410662[_0x136e('0xef')](_0x22a39c,!0x0)))&&_0x103877[_0x136e('0xb0')]());if(_0x25ad94[_0x136e('0x9f')](_0x159005=>_0x1780c7['some'](_0x51b08b=>_0x51b08b['containsRange'](_0x159005,!0x0)))){const _0x3203a4=this[_0x136e('0x71')][_0x136e('0x123')](_0x136e('0x11c'),_0x3529a3,_0x136e('0xcb'));return this['forceDefaultExecution'](()=>_0x3203a4(_0x2db201,null,_0x907e9e)),null;}}else{const _0x36acb2=_0x103877[_0x136e('0xbc')]();_0x25ad94['some'](_0x4de1b9=>_0x4de1b9[_0x136e('0xef')](_0x36acb2,!0x0))&&_0x103877[_0x136e('0xb0')]();if(_0x25ad94[_0x136e('0x9f')](_0x330eb6=>_0x36acb2[_0x136e('0xef')](_0x330eb6,!0x0))){const _0x2c7482=this[_0x136e('0x71')][_0x136e('0x123')](_0x136e('0x11c'),_0x3529a3,_0x136e('0xcb'));return this[_0x136e('0x119')](()=>_0x2c7482(_0x25ad94,null,_0x907e9e)),null;}}const _0xca9d83=this[_0x136e('0x71')]['getSuggestionCallback']('deletion',_0x3529a3,'join');let _0x25fef6=null;for(const _0x88cb0a of this[_0x136e('0x36')]())if(_0x88cb0a[_0x136e('0x54')]['id']==_0x19fdb7['id']&&_0x88cb0a[_0x136e('0x89')]&&_0x136e('0x11c')==_0x88cb0a[_0x136e('0xdb')]&&_0x88cb0a[_0x136e('0xab')]==_0x3529a3&&Ot(_0x88cb0a,_0x907e9e)&&(_0xca9d83(_0x88cb0a[_0x136e('0xa0')](),_0x25ad94)||_0xca9d83(_0x25ad94,_0x88cb0a[_0x136e('0xa0')]()))){if(_0x25fef6){if(_0x88cb0a['commentThread']&&_0x88cb0a['commentThread'][_0x136e('0x19')])continue;for(const _0x57387e of _0x88cb0a[_0x136e('0xa0')]())_0x25fef6[_0x136e('0x38')](_0x57387e)||_0x25fef6['addRange'](_0x57387e);_0x88cb0a['removeMarkers']();}else{_0x25fef6=_0x88cb0a;for(const _0x27bfe4 of _0x25ad94)_0x88cb0a[_0x136e('0x38')](_0x27bfe4)||_0x88cb0a['addRange'](_0x27bfe4);}}if(_0x25fef6)return _0x25fef6;_0xe3025f[_0x136e('0x7a')]();for(const {suggestion:_0x256d65,meta:_0xb79e61}of this[_0x136e('0xae')](_0x25ad94,_0x136e('0x11c')))_0xb79e61[_0x136e('0xdf')]&&(this[_0x136e('0x12a')]||!_0xb79e61['containsRangeInObject']&&!_0xb79e61['isInsideObject'])&&Ot(_0x256d65,_0x907e9e)&&_0xe3025f['add'](_0x256d65);for(const _0x18158a of _0xe3025f){const _0x42f684=_0x18158a[_0x136e('0xa0')]();if(!_0x907e9e||!_0x907e9e[_0x136e('0xaa')]){if(_0x25ad94[_0x136e('0x9f')](_0x2d552a=>_0x42f684[_0x136e('0x1d')](_0x4d1d51=>_0x4d1d51['containsRange'](_0x2d552a,!0x0))))return _0x18158a;}(!_0x18158a[_0x136e('0x67')]||!_0x18158a[_0x136e('0x67')][_0x136e('0xaa')])&&(_0x42f684[_0x136e('0x9f')](_0x300191=>_0x25ad94[_0x136e('0x1d')](_0x3404ef=>_0x3404ef[_0x136e('0xef')](_0x300191,!0x0)))&&_0x18158a['discard']());}const _0x2fcef8=_0x354618(),_0x5eac0d=_0x19fdb7['id'],_0x4fdda3=_0x136e('0xc4')+_0x3529a3,_0x2259f=this[_0x136e('0x92')]({'id':_0x2fcef8,'type':_0x4fdda3,'createdAt':new Date(),'authorId':_0x5eac0d,'attributes':_0x907e9e});for(const _0x14be3f of _0x25ad94)_0x14be3f[_0x136e('0xd')](),_0x14be3f[_0x136e('0xf2')]||'$graveyard'==_0x14be3f['root'][_0x136e('0x26')]||this['_addSuggestionMarker'](_0x4fdda3,_0x2fcef8,_0x5eac0d,_0x14be3f,_0x38d814['getMultiRangeId']());return _0x2259f;}[_0x136e('0x10d')](_0x35b549,_0x2503a4){const _0x24004d=_0x35b549['getFirstMarker']();this[_0x136e('0x111')][_0x136e('0x8c')](_0x557217=>{_0x557217[_0x136e('0x72')](_0x24004d,{'range':_0x2503a4});});}[_0x136e('0x53')](_0x2a5e71){const _0x4a7384=_0x2a5e71['id'],_0x4f06d9=this[_0x136e('0xe0')][_0x136e('0x76')]['get'](_0x136e('0xc2'));this['_commentsRepository']['hasCommentThread'](_0x4a7384)||this[_0x136e('0xcc')]['addCommentThread']({'channelId':_0x4f06d9,'threadId':_0x4a7384,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5c3062=this[_0x136e('0xcc')][_0x136e('0x11f')](_0x4a7384);_0x5c3062[_0x136e('0x16')](_0x136e('0xa')),_0x5c3062[_0x136e('0xa')]=!0x1,_0x2a5e71[_0x136e('0xb6')]=_0x5c3062;}[_0x136e('0x65')](_0x1d556e,_0x58933e,_0x28f7c5,_0x18f5c4){if(_0x1d556e[_0x136e('0xdb')]!=_0x58933e||_0x1d556e[_0x136e('0xab')]!=_0x28f7c5||_0x1d556e[_0x136e('0x12d')]['id']!=_0x18f5c4)throw this[_0x136e('0xe0')][_0x136e('0x10b')](_0x136e('0x104')),new _0x22b8c7('track-changes-suggestion-data-mismatch',this);}[_0x136e('0x96')](_0x2dfdea,_0x4ffb48){const _0x156449=_0x2dfdea[_0x136e('0xbc')]();if(_0x4ffb48[_0x136e('0x136')](_0x156449))_0x2dfdea['removeMarkers']();else{if(_0x156449[_0x136e('0xef')](_0x4ffb48)){const _0x1fcb1d=this['_model'][_0x136e('0x7e')](_0x4ffb48[_0x136e('0x66')][_0x136e('0xc6')],_0x136e('0x25'));this[_0x136e('0x10d')](_0x2dfdea,this[_0x136e('0x111')][_0x136e('0x24')](_0x156449[_0x136e('0x66')],_0x1fcb1d));const _0x28b1c7=_0x354618(),_0x540d38=_0x2dfdea[_0x136e('0x12d')]['id'],_0x41e16c=_0x2dfdea[_0x136e('0xdb')]+':'+_0x2dfdea[_0x136e('0xab')];this[_0x136e('0x92')]({'id':_0x28b1c7,'type':_0x41e16c,'createdAt':new Date(),'authorId':_0x540d38,'data':_0x2dfdea['data'],'attributes':_0x2dfdea[_0x136e('0x67')]});const _0x3921bd=this[_0x136e('0x111')][_0x136e('0x7e')](_0x4ffb48[_0x136e('0x25')]['parent'],_0x136e('0x82')),_0x382dac=this['_model'][_0x136e('0x24')](_0x3921bd,_0x156449[_0x136e('0x25')]);this[_0x136e('0x37')](_0x41e16c,_0x28b1c7,_0x540d38,_0x382dac);}else{if(_0x156449['containsPosition'](_0x4ffb48[_0x136e('0x66')])){const _0x1bb0d7=this['_model'][_0x136e('0x7e')](_0x4ffb48['start'][_0x136e('0xc6')],_0x136e('0x25'));this[_0x136e('0x10d')](_0x2dfdea,this[_0x136e('0x111')][_0x136e('0x24')](_0x156449['start'],_0x1bb0d7));}else{const _0x3c774d=this['_model'][_0x136e('0x7e')](_0x4ffb48['end'][_0x136e('0x81')],_0x136e('0x82'));this[_0x136e('0x10d')](_0x2dfdea,this['_model'][_0x136e('0x24')](_0x3c774d,_0x156449[_0x136e('0x25')]));}}}}[_0x136e('0x134')](_0x29503a){for(const {suggestion:_0x10075b,meta:_0x3bdb11}of this['_findSuggestions'](_0x29503a,_0x136e('0x1f'))){if(!_0x3bdb11[_0x136e('0xdf')])continue;const _0x2dd116=_0x10075b[_0x136e('0xa0')]();for(const _0x53bad7 of _0x2dd116)if(!_0x29503a[_0x136e('0x10f')](_0x53bad7)['length'])return!0x0;}return!0x1;}[_0x136e('0x118')](_0x86fb7f){const _0x32ad72=this[_0x136e('0xe0')][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))[_0x136e('0x7d')](_0x86fb7f);if(!_0x32ad72)throw new _0x22b8c7(_0x136e('0x44'),this);return _0x32ad72;}[_0x136e('0x43')](_0x59bbec){const _0x36b583=this['editor']['plugins']['get'](_0x136e('0x48')),_0x3019b1=_0x299fef('external:'+_0x59bbec),_0x2eac50=_0x36b583[_0x136e('0x7d')](_0x3019b1);return _0x2eac50||_0x36b583[_0x136e('0x133')]({'id':_0x3019b1,'name':_0x59bbec});}[_0x136e('0x10c')](_0x457857,_0x568e49,_0x2e7983,_0x27c38e,_0x471eb4){const _0x5734f1=this[_0x136e('0x118')](_0x27c38e),_0x36472f=this[_0x136e('0x71')]['buildSuggestion'](_0x457857,_0x568e49,_0x2e7983,_0x5734f1,_0x471eb4,_0x1252ee=>this[_0x136e('0x6b')](_0x2e7983,{'attributes':_0x1252ee}));return this[_0x136e('0xd3')](_0x36472f,_0x136e('0xcb'),()=>{this[_0x136e('0x6b')](_0x2e7983,{'state':_0x136e('0x31')});},{'priority':_0x136e('0x117')}),this['listenTo'](_0x36472f,_0x136e('0xb0'),()=>{this[_0x136e('0x6b')](_0x2e7983,{'state':'rejected'});},{'priority':_0x136e('0x117')}),this[_0x136e('0xbf')][_0x136e('0x85')](_0x2e7983,_0x36472f),this[_0x136e('0x83')][_0x136e('0x85')](_0x36472f,_0x136e('0x1')),_0x36472f;}[_0x136e('0xc1')](_0x47479a){const _0x506b06=_0x47479a[_0x136e('0xba')](':');return{'group':_0x506b06[0x0],'type':_0x506b06[0x1],'subType':_0x506b06[_0x136e('0x19')]>=0x5?_0x506b06[0x2]:null,'id':_0x506b06[_0x136e('0x19')]<0x5?_0x506b06[0x2]:_0x506b06[0x3],'authorId':_0x506b06[_0x136e('0x19')]<0x5?_0x506b06[0x3]:_0x506b06[0x4],'markerCount':0x6==_0x506b06[_0x136e('0x19')]?_0x506b06[0x5]:null};}[_0x136e('0x21')](_0x2ebf6d,_0x2a768a,_0x1e8724){const _0x56b721=_0x2ebf6d[_0x136e('0xbc')](),_0x2f9a7a=_0x56b721['start'],_0x4824c5=_0x56b721['end'];this[_0x136e('0x10d')](_0x2ebf6d,this[_0x136e('0x111')]['createRange'](_0x2f9a7a,_0x2a768a));const _0xd421b1=_0x354618(),_0x427354=_0x2ebf6d[_0x136e('0x12d')]['id'],_0x2855cc=_0x2ebf6d[_0x136e('0xdb')]+(_0x2ebf6d['subType']?':'+_0x2ebf6d['subType']:'');this[_0x136e('0x92')]({'id':_0xd421b1,'type':_0x2855cc,'createdAt':new Date(),'authorId':_0x427354,'originalSuggestionId':_0x2ebf6d['id'],'attributes':_0x2ebf6d[_0x136e('0x67')],'data':_0x2ebf6d[_0x136e('0xd6')]}),_0x136e('0x100')==_0x2ebf6d[_0x136e('0xdb')]&&(_0x1e8724=this[_0x136e('0x111')]['createPositionBefore'](_0x1e8724[_0x136e('0x81')])),this[_0x136e('0x37')](_0x2855cc,_0xd421b1,_0x427354,this[_0x136e('0x111')][_0x136e('0x24')](_0x1e8724,_0x4824c5));}[_0x136e('0xae')](_0x586d95,_0x5f0227=null){const _0x1b73cf=[],_0x317a54=this[_0x136e('0xe0')][_0x136e('0xdc')][_0x136e('0x57')](_0x136e('0x48'))['me'];Array[_0x136e('0xce')](_0x586d95)||(_0x586d95=[_0x586d95]);for(const _0x5235fd of this[_0x136e('0x36')]()){if(!_0x5235fd[_0x136e('0x89')])continue;if(_0x5f0227&&_0x5235fd['type']!=_0x5f0227)continue;let _0xa82913=!0x1;for(const _0x2b953a of _0x5235fd[_0x136e('0xa0')]()){for(const _0x13ee1e of _0x586d95){const _0x344340=_0x13ee1e['start']['isEqual'](_0x2b953a[_0x136e('0x25')])||_0x13ee1e[_0x136e('0x25')][_0x136e('0x136')](_0x2b953a[_0x136e('0x66')]);if(_0x344340||_0x13ee1e['getIntersection'](_0x2b953a)){const _0x4db83d=_0x13ee1e[_0x136e('0xef')](_0x2b953a)&&_t(this['_model'][_0x136e('0xcf')],_0x2b953a[_0x136e('0x66')],_0x13ee1e),_0x3a849e=_0x2b953a['containsRange'](_0x13ee1e)&&_t(this[_0x136e('0x111')][_0x136e('0xcf')],_0x13ee1e[_0x136e('0x66')],_0x2b953a);_0x1b73cf[_0x136e('0x56')]({'suggestion':_0x5235fd,'meta':{'isOwn':_0x317a54==_0x5235fd[_0x136e('0x54')],'isNextTo':_0x344340,'isInsideObject':_0x4db83d,'containsRangeInObject':_0x3a849e}}),_0xa82913=!0x0;break;}}if(_0xa82913)break;}}return _0x1b73cf;}['_addSuggestionMarker'](_0xf0ce5,_0x29c2cb,_0x5b0931,_0xf682d0,_0x3f5091){this[_0x136e('0x111')]['change'](_0x523406=>{let _0x570e8b=_0x136e('0x97')+_0xf0ce5+':'+_0x29c2cb+':'+_0x5b0931;_0x3f5091&&(_0x570e8b=_0x570e8b+':'+_0x3f5091),_0x523406[_0x136e('0xc3')](_0x570e8b,{'range':_0xf682d0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x19d10b){const _0x246567=_0x19d10b['previous'],_0x563f84=_0x19d10b[_0x136e('0x120')];_0x19d10b[_0x136e('0x5d')]=null,null!=_0x246567&&(_0x246567['next']=null),_0x19d10b[_0x136e('0x120')]=null,null!=_0x563f84&&(_0x563f84['previous']=null),_0x136e('0x78')==this[_0x136e('0x83')]['get'](_0x19d10b)&&(this[_0x136e('0x83')][_0x136e('0x85')](_0x19d10b,_0x136e('0x2f')),this[_0x136e('0x5a')]('suggestionUnloaded',_0x19d10b,_0x246567,_0x563f84));}[_0x136e('0x92')](_0x3a7890){const _0x172c25=_0x3a7890['id'],_0x3efeec=this[_0x136e('0xe5')](_0x3a7890);if(this[_0x136e('0x13f')]&&this[_0x136e('0x13f')][_0x136e('0x23')]){const _0x18a550=this['editor']['plugins']['get'](_0x136e('0x8a')),_0x399da5=_0x3efeec['hasComments'],_0x5e1f0b=_0x3efeec[_0x136e('0xab')]?_0x3efeec[_0x136e('0xdb')]+':'+_0x3efeec[_0x136e('0xab')]:_0x3efeec[_0x136e('0xdb')],_0x94fc80=this[_0x136e('0xe0')][_0x136e('0xb9')],_0x10ccde=_0x18a550['add'](_0x302a9d(_0x94fc80,_0x136e('0xdd'))),_0x48e186={'id':_0x172c25,'type':_0x5e1f0b,'hasComments':_0x399da5,'data':_0x3a7890[_0x136e('0xd6')]||null,'originalSuggestionId':_0x3a7890[_0x136e('0x132')]||null,'attributes':_0x3efeec[_0x136e('0x67')]};this[_0x136e('0x13f')][_0x136e('0x23')](_0x48e186)['then'](_0x2d9e48=>{_0x3efeec[_0x136e('0x46')]=!0x0,_0x18a550[_0x136e('0x4a')](_0x10ccde),_0x2d9e48&&_0x2d9e48['createdAt']&&(this[_0x136e('0xbf')]['get'](_0x172c25)[_0x136e('0x4c')]=_0x2d9e48[_0x136e('0x4c')]);})['catch'](_0x21f4c7=>{throw _0x5a5021(_0x136e('0x80')),this['editor']['model'][_0x136e('0xda')]({'isUndoable':!0x1},()=>{_0x3efeec[_0x136e('0xb0')]();}),_0x3efeec[_0x136e('0x11')](),this['_suggestions'][_0x136e('0xf7')](_0x3efeec['id']),this[_0x136e('0x83')][_0x136e('0xf7')](_0x3efeec),_0x21f4c7;});}return _0x3efeec;}[_0x136e('0x6b')](_0x58539b,_0x14fefd){const _0x3b1302=this[_0x136e('0xe0')]['plugins']['get'](_0x136e('0x8a')),_0x1f483e=this[_0x136e('0xa7')](_0x58539b);if(this[_0x136e('0x13f')]&&this[_0x136e('0x13f')][_0x136e('0xf6')]){if(_0x1f483e[_0x136e('0x46')]){const _0x347179=_0x3b1302['add'](_0x302a9d(this[_0x136e('0xe0')][_0x136e('0xb9')],_0x136e('0xdd')));this[_0x136e('0x13f')][_0x136e('0xf6')](_0x58539b,_0x14fefd)[_0x136e('0x29')](()=>{_0x3b1302['remove'](_0x347179);});}else _0x1f483e['on'](_0x136e('0xc7'),()=>{this[_0x136e('0x6b')](_0x58539b,_0x14fefd);});}}['_getSuggestionData'](_0x4dd780){if(!this[_0x136e('0x13f')]||!this[_0x136e('0x13f')][_0x136e('0xa7')])throw new _0x22b8c7(_0x136e('0xa3'),this);return this[_0x136e('0x13f')]['getSuggestion'](_0x4dd780);}[_0x136e('0xc')](_0x2a9891){const {id:_0x471d93,type:_0x17333f,subType:_0x17d31b,authorId:_0x35bbf3}=this['_splitMarkerName'](_0x2a9891),_0x22b8c9=this[_0x136e('0xbf')][_0x136e('0x57')](_0x471d93)||this[_0x136e('0x10c')](_0x17333f,_0x17d31b,_0x471d93,_0x35bbf3,{});switch(this[_0x136e('0x65')](_0x22b8c9,_0x17333f,_0x17d31b,_0x35bbf3),this[_0x136e('0x83')][_0x136e('0x57')](_0x22b8c9)){case _0x136e('0x1'):this[_0x136e('0xb1')](_0x471d93)[_0x136e('0x29')](_0x3f8d9c=>{let _0x31cbe0=Promise[_0x136e('0x10')]();_0x3f8d9c['hasComments']&&(_0x31cbe0=this[_0x136e('0xcc')][_0x136e('0xd5')]({'channelId':this['editor'][_0x136e('0x76')][_0x136e('0x57')](_0x136e('0xc2')),'threadId':_0x471d93})),_0x31cbe0['then'](()=>{this[_0x136e('0xe5')](_0x3f8d9c)['_saved']=!0x0;});}),this['_suggestionState'][_0x136e('0x85')](_0x22b8c9,'markerReady');break;case _0x136e('0x2f'):this[_0x136e('0x6b')](_0x471d93,{'state':_0x136e('0x114')});case'dataReady':this['_suggestionState'][_0x136e('0x85')](_0x22b8c9,_0x136e('0x78')),this[_0x136e('0x5a')](_0x136e('0xfa'),_0x22b8c9);break;case'ready':this[_0x136e('0x5a')](_0x136e('0x4b'),_0x22b8c9);}return _0x22b8c9['addMarkerName'](_0x2a9891),_0x22b8c9;}[_0x136e('0x33')](_0x455e02){const _0x210d28=Array[_0x136e('0x8d')](_0x455e02)[_0x136e('0xcd')](_0x29c41e=>!_0x29c41e[_0x136e('0x110')]),_0xf9bba2=this[_0x136e('0x36')]({'skipNotAttached':!0x0})[_0x136e('0xcd')](_0x357ff4=>!_0x357ff4['isMultiRange']),_0x160098=_0xf9bba2[_0x136e('0xcd')](_0x5ac8f1=>!_0x455e02[_0x136e('0x74')](_0x5ac8f1)),_0x54c806=new Map(_0xf9bba2['map'](_0x114076=>[_0x114076,this[_0x136e('0x71')][_0x136e('0x123')](_0x114076[_0x136e('0xdb')],_0x114076[_0x136e('0xab')],'chain')])),_0x2b2443=new Map(_0xf9bba2[_0x136e('0x9b')](_0x1ebead=>[_0x1ebead,_0x1ebead[_0x136e('0xbc')]()])),_0x3f0a21=new Set(),_0x39706d=new Set();for(let _0x47cf96=0x0;_0x47cf96<_0x210d28[_0x136e('0x19')];_0x47cf96++)_0x61ba22(_0x210d28[_0x47cf96],_0x210d28,_0x47cf96+0x1);for(let _0x3efd04=0x0;_0x3efd04<_0x210d28[_0x136e('0x19')];_0x3efd04++)_0x61ba22(_0x210d28[_0x3efd04],_0x160098,0x0);for(let _0x407ae3=0x0;_0x407ae3<_0x210d28['length'];_0x407ae3++){const _0x5237e9=_0x210d28[_0x407ae3];!_0x39706d[_0x136e('0x74')](_0x5237e9)&&_0x5237e9['previous']&&(_0x5237e9['previous'][_0x136e('0x120')]===_0x5237e9&&(_0x5237e9[_0x136e('0x5d')][_0x136e('0x120')]=null),_0x5237e9[_0x136e('0x5d')]=null),!_0x3f0a21[_0x136e('0x74')](_0x5237e9)&&_0x5237e9[_0x136e('0x120')]&&(_0x5237e9[_0x136e('0x120')][_0x136e('0x5d')]===_0x5237e9&&(_0x5237e9['next'][_0x136e('0x5d')]=null),_0x5237e9[_0x136e('0x120')]=null);}function _0x61ba22(_0x6d5e2f,_0x1b1bf1,_0x2935a6){for(let _0x48ffd4=_0x2935a6;_0x48ffd4<_0x1b1bf1[_0x136e('0x19')];_0x48ffd4++){const _0x3fb143=_0x1b8b88(_0x6d5e2f,_0x1b1bf1[_0x48ffd4]);_0x3fb143&&(_0x3fb143[0x0]['next']=_0x3fb143[0x1],_0x3fb143[0x1][_0x136e('0x5d')]=_0x3fb143[0x0],_0x3f0a21[_0x136e('0x12c')](_0x3fb143[0x0]),_0x39706d['add'](_0x3fb143[0x1]));}}function _0x1b8b88(_0x380819,_0x29451a){if(_0x380819[_0x136e('0x54')]['id']!==_0x29451a[_0x136e('0x54')]['id'])return null;const _0x4bdee4=_0x54c806[_0x136e('0x57')](_0x380819)(_0x380819,_0x29451a,_0x2b2443[_0x136e('0x57')](_0x380819),_0x2b2443['get'](_0x29451a));if(!_0x4bdee4)return null;return _0x54c806[_0x136e('0x57')](_0x29451a)(_0x380819,_0x29451a,_0x2b2443[_0x136e('0x57')](_0x380819),_0x2b2443[_0x136e('0x57')](_0x29451a))?_0x4bdee4[0x1][_0x136e('0xb6')]&&_0x4bdee4[0x1][_0x136e('0xb6')][_0x136e('0x19')]?null:_0x4bdee4:null;}}['_joinWithAdjacentSuggestions'](_0x39b819){const _0x4b592c=Array[_0x136e('0x8d')](_0x39b819),_0x3c823f=this[_0x136e('0x36')]({'skipNotAttached':!0x0}),_0x506c3b=_0x3c823f[_0x136e('0xcd')](_0x294149=>!_0x39b819['has'](_0x294149)),_0x1e6ca1=new Map(_0x4b592c['map'](_0x4a2733=>[_0x4a2733,this[_0x136e('0x71')][_0x136e('0x123')](_0x4a2733['type'],_0x4a2733[_0x136e('0xab')],'join')])),_0x5ad6bc=new Map(_0x3c823f[_0x136e('0x9b')](_0x36ae4a=>[_0x36ae4a,_0x36ae4a[_0x136e('0xa0')]()]));for(let _0x3ba715=0x0;_0x3ba715<_0x4b592c[_0x136e('0x19')];_0x3ba715++){if(_0xc63972(this,_0x4b592c[_0x3ba715],_0x4b592c,_0x3ba715+0x1))return!0x0;}for(let _0x4e4712=0x0;_0x4e4712<_0x4b592c[_0x136e('0x19')];_0x4e4712++){if(_0xc63972(this,_0x4b592c[_0x4e4712],_0x506c3b,0x0))return!0x0;}return!0x1;function _0xc63972(_0x5dcc9d,_0x3dcc45,_0x1067b,_0x36859b){for(let _0x8228c6=_0x36859b;_0x8228c6<_0x1067b['length'];_0x8228c6++){const _0x4011f7=_0x1067b[_0x8228c6];if(_0x4011f7['type']!==_0x3dcc45[_0x136e('0xdb')]||_0x4011f7['author']['id']!==_0x3dcc45[_0x136e('0x54')]['id']||_0x4011f7[_0x136e('0xab')]!==_0x3dcc45[_0x136e('0xab')])continue;if(!Ut(_0x3dcc45,_0x4011f7))continue;const _0x517411=_0x1e6ca1['get'](_0x3dcc45),_0x591f02=_0x5ad6bc[_0x136e('0x57')](_0x3dcc45),_0x24e229=_0x5ad6bc[_0x136e('0x57')](_0x4011f7),_0x55fc3b=_0x3dcc45[_0x136e('0xb6')]&&_0x3dcc45[_0x136e('0xb6')][_0x136e('0x19')],_0x360433=_0x4011f7['commentThread']&&_0x4011f7[_0x136e('0xb6')][_0x136e('0x19')];if(!_0x55fc3b&&_0x517411(_0x24e229,_0x591f02))return _0x5dcc9d[_0x136e('0x11d')](_0x4011f7,_0x3dcc45),_0x5ad6bc['delete'](_0x3dcc45),!0x0;if(!_0x360433&&_0x517411(_0x591f02,_0x24e229))return _0x5dcc9d[_0x136e('0x11d')](_0x3dcc45,_0x4011f7),_0x5ad6bc[_0x136e('0xf7')](_0x4011f7),!0x0;}return!0x1;}}[_0x136e('0x11d')](_0x2ea405,_0x36199f){if(_0x2ea405[_0x136e('0x110')])for(const _0xf335c1 of _0x36199f[_0x136e('0xa0')]())_0x2ea405[_0x136e('0x121')](_0xf335c1);else{const _0x38f3e0=_0x36199f[_0x136e('0xbc')]()[_0x136e('0x25')];this[_0x136e('0x10d')](_0x2ea405,this[_0x136e('0x111')][_0x136e('0x24')](_0x2ea405[_0x136e('0xbc')]()[_0x136e('0x66')],_0x38f3e0));}_0x36199f['removeMarkers']();}}class Bt{constructor(_0x2dfc64){this[_0x136e('0x107')]=_0x2dfc64,this[_0x136e('0x111')]=_0x2dfc64[_0x136e('0x115')],this[_0x136e('0xf0')]=new Map(),this[_0x136e('0x45')]=new Map(),this[_0x136e('0x62')]();}['buildSuggestion'](_0x4b3e0c,_0x44e160,_0x44ef87,_0x3e2637,_0x7ab20b,_0x5d1e4e){return new _0x38d814(this[_0x136e('0x111')],{'type':_0x4b3e0c,'subType':_0x44e160,'id':_0x44ef87,'author':_0x3e2637,'creator':_0x3e2637,'attributes':_0x7ab20b,'onAttributesChange':_0x5d1e4e,'onAccept':(..._0x1f082e)=>this[_0x136e('0x123')](_0x4b3e0c,_0x44e160,_0x136e('0xcb'))(..._0x1f082e),'onDiscard':(..._0x59ec69)=>this['getSuggestionCallback'](_0x4b3e0c,_0x44e160,_0x136e('0xb0'))(..._0x59ec69)});}['registerCustomCallback'](_0x5c88b3,_0x53bf18,_0x17f6eb,_0x496ea2){const _0x15fe59=_0x5c88b3+':'+_0x53bf18+':'+_0x17f6eb;this[_0x136e('0xf0')][_0x136e('0x85')](_0x15fe59,_0x496ea2);}['getSuggestionCallback'](_0x4d2c62,_0x38e6d9,_0x3f22e0){const _0x5021f0=_0x4d2c62+':'+_0x38e6d9+':'+_0x3f22e0;return this[_0x136e('0xf0')][_0x136e('0x57')](_0x5021f0)||this['_defaultCallbacks'][_0x136e('0x57')](_0x4d2c62+':'+_0x3f22e0);}['_registerDefaultCallbacks'](){const _0x4c880e=()=>!0x1,_0x25cf8f=_0x403e2b=>{_0x403e2b[_0x136e('0xff')]((_0xb413bd,_0x2fc994)=>_0xb413bd['start'][_0x136e('0xad')](_0x2fc994[_0x136e('0x66')])?0x1:-0x1),this['_model'][_0x136e('0x8c')](_0x128ee0=>{for(const _0x20226d of _0x403e2b){let _0x44a34f;_0x44a34f=_0x20226d[_0x136e('0x25')][_0x136e('0xf5')]&&_0x20226d[_0x136e('0x25')]['parent']==_0x20226d[_0x136e('0x66')][_0x136e('0xac')]?_0x128ee0[_0x136e('0x3f')](_0x20226d['start'][_0x136e('0xac')],'on'):_0x128ee0[_0x136e('0x3f')](_0x20226d),this[_0x136e('0x111')]['deleteContent'](_0x44a34f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x376923=(_0x3b9623,_0x78e375)=>{this[_0x136e('0x111')][_0x136e('0x8c')](_0x425724=>{const {commandName:_0x4f77fe,commandParams:_0x19c457=[]}=_0x78e375,_0x5ef88d=_0x3b9623['map'](_0x297db2=>(Mt(_0x297db2)&&(_0x297db2=this['_model'][_0x136e('0x24')](_0x297db2[_0x136e('0x25')])),_0x297db2))[_0x136e('0xcd')](_0x366d61=>_0x136e('0x9d')!==_0x366d61[_0x136e('0x68')][_0x136e('0x26')]);if(_0x5ef88d[_0x136e('0x19')]<0x1)return;const _0x32b741=Array[_0x136e('0x8d')](this['_model'][_0x136e('0xfd')][_0x136e('0xe2')][_0x136e('0xa0')]())[_0x136e('0x9b')](_0x188768=>_0x29be02[_0x136e('0x95')](_0x188768));_0x425724['setSelection'](_0x5ef88d);for(const _0x389797 of this[_0x136e('0x107')][_0x136e('0x1a')]['commands']())_0x389797[_0x136e('0x69')]();_0x19c457[_0x136e('0x56')]({'forceDefaultExecution':!0x0}),this[_0x136e('0x107')][_0x136e('0x130')](_0x4f77fe,..._0x19c457);const _0x4e9160=_0x32b741[_0x136e('0xcd')](_0x5a8b68=>_0x136e('0x9d')!=_0x5a8b68[_0x136e('0x68')]['rootName']);_0x4e9160[_0x136e('0x19')]>0x0&&_0x425724['setSelection'](_0x4e9160);for(const _0x3a2bb5 of _0x32b741)_0x3a2bb5[_0x136e('0xd')]();});},_0x116883=(_0x421bec,_0x4b6a65)=>0x1==_0x421bec[_0x136e('0x19')]&&0x1==_0x4b6a65['length']&&_0x421bec[0x0][_0x136e('0x25')][_0x136e('0x136')](_0x4b6a65[0x0][_0x136e('0x66')]),_0x392273=(_0x250efd,_0x5d6d6e,_0x57637c,_0x9df2a2)=>xt(_0x250efd,_0x5d6d6e,_0x57637c,_0x9df2a2,this[_0x136e('0x111')])?[_0x250efd,_0x5d6d6e]:xt(_0x5d6d6e,_0x250efd,_0x9df2a2,_0x57637c,this[_0x136e('0x111')])?[_0x5d6d6e,_0x250efd]:null;this[_0x136e('0x45')][_0x136e('0x85')]('insertion:accept',_0x4c880e),this['_defaultCallbacks']['set'](_0x136e('0x9e'),_0x25cf8f),this[_0x136e('0x45')]['set']('insertion:join',_0x116883),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0xe4'),_0x392273),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0x59'),_0x25cf8f),this[_0x136e('0x45')]['set']('deletion:discard',_0x4c880e),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0xe8'),_0x116883),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0x6a'),_0x392273),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0x2d'),_0x376923),this[_0x136e('0x45')][_0x136e('0x85')]('formatInline:discard',_0x4c880e),this[_0x136e('0x45')]['set']('formatInline:join',_0x116883),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0xbb'),_0x4c880e),this[_0x136e('0x45')][_0x136e('0x85')](_0x136e('0x18'),_0x376923),this[_0x136e('0x45')][_0x136e('0x85')]('formatBlock:discard',_0x4c880e),this[_0x136e('0x45')][_0x136e('0x85')]('formatBlock:join',_0x116883),this['_defaultCallbacks'][_0x136e('0x85')](_0x136e('0x126'),_0x4c880e);}}function _t(_0x14d9bc,_0x316acd,_0x1beb68){for(const _0x26d8bf of _0x316acd[_0x136e('0x81')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x26d8bf['root']==_0x26d8bf)return!0x1;if(!_0x1beb68[_0x136e('0x12')](_0x26d8bf))return!0x1;if(_0x14d9bc[_0x136e('0x116')](_0x26d8bf)||_0x14d9bc['isLimit'](_0x26d8bf))return!0x0;}return!0x1;}function Mt(_0x36364a){return _0x36364a[_0x136e('0x25')][_0x136e('0x81')]==_0x36364a[_0x136e('0x66')][_0x136e('0xac')]&&_0x36364a['end'][_0x136e('0x51')];}function $t(_0x297c0a,_0x5017f6,_0x21f520,_0x1b72c8){const _0x5c0a12=_0x400387=>!_0x400387[_0x136e('0x42')]['is'](_0x136e('0x13d'))&&!_0x1b72c8[_0x136e('0x116')](_0x400387[_0x136e('0x42')]),_0x9cb263=_0x297c0a[_0x136e('0x66')][_0x136e('0x64')](_0x5c0a12),_0x132320=_0x297c0a['end'][_0x136e('0x64')](_0x5c0a12,{'direction':_0x136e('0x4f')});return(!_0x297c0a['start'][_0x136e('0x136')](_0x9cb263)||!_0x297c0a[_0x136e('0x25')][_0x136e('0x136')](_0x132320))&&(_0x9cb263[_0x136e('0xad')](_0x132320)?_0x21f520[_0x136e('0x72')](_0x5017f6,{'range':_0x21f520[_0x136e('0x24')](_0x9cb263,_0x132320)}):_0x21f520['removeMarker'](_0x5017f6),!0x0);}function Nt(_0x542c32){return _0x299fef(_0x542c32);}function Rt(_0x114f5e){const _0x2ef806=_0x114f5e['start'][_0x136e('0xac')];return _0x2ef806&&_0x2ef806['is'](_0x136e('0xf9'));}function jt(_0x5111fb,_0x40528a){const _0x379baa=_0x40528a[_0x136e('0xcf')]['isObject'](_0x5111fb)||_0x40528a['schema'][_0x136e('0x49')](_0x5111fb);return _0x40528a[_0x136e('0x24')](_0x40528a[_0x136e('0x7e')](_0x5111fb,_0x136e('0x137')),_0x379baa?_0x40528a[_0x136e('0x52')](_0x5111fb):_0x40528a[_0x136e('0x7e')](_0x5111fb,_0x136e('0x25')));}function xt(_0x26949e,_0x28bc72,_0x5bd67f,_0x401bad,_0x1cf2ce){if(!Ut(_0x26949e,_0x28bc72))return!0x1;if(_0x5bd67f[_0x136e('0x25')]['isEqual'](_0x401bad[_0x136e('0x66')]))return!0x0;if(_0x26949e['type']!=_0x28bc72[_0x136e('0xdb')])return!0x1;if(!_0x5bd67f['end'][_0x136e('0xb8')](_0x401bad[_0x136e('0x66')]))return!0x1;const _0x29fbfa=_0x1cf2ce[_0x136e('0x24')](_0x5bd67f['end'],_0x401bad[_0x136e('0x66')])[_0x136e('0xa6')]();for(const _0x405242 of _0x29fbfa)if([_0x136e('0xf4'),'elementEnd'][_0x136e('0xf3')](_0x405242[_0x136e('0xdb')])&&_0x1cf2ce[_0x136e('0xcf')][_0x136e('0x32')](_0x405242['item']))return!0x1;return!0x0;}function Ut(_0x45e92b,_0x4e13bf){return!(!_0x45e92b[_0x136e('0xd7')]||!_0x4e13bf[_0x136e('0xd7')])&&_0x548309(_0x45e92b[_0x136e('0x67')],_0x4e13bf[_0x136e('0x67')]);}function Ot(_0x45fc04,_0x48c0cd){const _0x31e650=Et(_0x45fc04[_0x136e('0x67')]),_0x209aa1=Et(_0x48c0cd);if(!_0x45fc04[_0x136e('0xd7')])return!0x1;for(const _0x38ea6a of Object[_0x136e('0xb3')](_0x209aa1))if(!_0x548309(_0x31e650[_0x38ea6a],_0x209aa1[_0x38ea6a]))return!0x1;return!0x0;}function Et(_0x4cca05){const _0x339eae=Object[_0x136e('0xde')]({},_0x4cca05);return delete _0x339eae['skipNestingCheck'],delete _0x339eae['tablePasteChainId'],_0x339eae;}
|