@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231020.0 → 0.0.0-nightly-20231021.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-20231021.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-20231021.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231021.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 _0x52e9=['_suggestionState','chain','includes','has','name','updateSuggestion','element','next','markerNameToElements','track-changes-suggestion-not-found','fetchCommentThread','collaboration.channelId','formatBlock:chain','_handleNewSuggestionMarker','track-changes-command-not-found','setTo','plugins','size','isIntersectingWithRange','_editor','isExternal','insertion','addMarker','createRange','PENDING_ACTION_SUGGESTION','getLastMatchingPosition','nodeAfter','document','_addSuggestionMarker','ready','getSuggestions','skipNestingCheck','discardAllSuggestions','_joinWithAdjacentSuggestions','catch','then','getCustomProperty','forceDefaultExecution','removed','suggestionLoaded','upcast','containsRange','@external','return','attributes','trackChanges.mergeNestedSuggestions','push','accept','addSuggestionData','$marker','error-saving-suggestion-data-suggestion-discarded','removeMarker:suggestion:formatBlock','external:','getAllAdjacentSuggestions','_findSuggestions','nodeBefore','length','markerToData','formatBlock:discard','getSuggestionCallback','_onDiscard','_splitMarkerName','lowest','_mergeNestedSuggestions','value','oldRange','dataDowncast','_defaultCallbacks','isBefore','formatBlock:','schema','containsItem','addRange','updateMarker','formatInline:','createPositionAfter','moveTargetPosition','getMarkers','sort','multipleBlocks','elementEnd','addSuggestion','targetPosition','getNearestSelectionRange','_adapter','splitPosition','_enabledCommands','reconvertMarker','insertion:accept','activeMarkers','getFirstMarker','hasComments','split','range','TrackChangesEditing','requires','mapper','editingDowncast','removeClass','markDeletion','howMany','suggestion:','removeMarkers','deletion','backward','suggestionUnloaded','item','createRangeIn','registerPostFixer','hasSuggestion','formatInline:accept','getWalker','CommentsRepository','formatBlock:join','detach','conversion','addUser','_setSuggestionData','Users','trackChangesCommand','rootName','track-changes-adapter-missing-getsuggestion','data','insertContent','_getSuggestionData','deletion:','head','isOwn','getAttribute','ck-suggestion-marker','addCommentThread','formatInline:join','every','dataReady','containerElement','clear','type','formatInline:discard','markInsertion','markerToHighlight','editor','isMultiRange','formatInline:chain','keys','removeAttribute','_joinSuggestions','normal','_checkSuggestionCorrectness','_createSuggestion','getShiftedBy','acceptAllSuggestions','fromRange','consume','parent','deleteContent','_commentsRepository','markerReady','getChangedMarkers','start','containsPosition','discard','creator','for','get','authorName','addClass','isInsideObject','previous','stop','getRanges','_customCallbacks','removeComment','ck-suggestion-marker-formatBlock','adapter','open','acceptSelectedSuggestions','suggestion-type','setSelection','enqueueChange','insert','markers','writer','change','getRange','createPositionAt','elementStart','addHighlight','remove','isInContent','formatInline','set','getMultiRangeId','always','locale','acceptSuggestion','multi','dataToMarker','authoredAt','isLocal','formatBlock:accept','insertion:join','change:_saved','isNextTo','documentSelection','unbind','change:data','init','_rangeIsInLocalUserInsertion','_suggestions','position','options','listenTo','accepted','values','_saved','data-suggestion','model','change:activeMarkers','rejected','getItems','isBlock','isRemovable','never','$graveyard','isUndo','createElement','commandName','_breakSuggestionMarker','ck-suggestion-marker-','newRange','_refreshSuggestionsChain','addMarker:suggestion','define','markerName','formatBlock','formatGroupId','discardSuggestion','after','isAfter','createSelection','_updateSuggestionData','getCommentThread','hasCommentThread','default','_isForcedDefaultExecutionBlock','setAttribute','join','update:suggestion','trackChanges.trackFormatChanges','delete','isCollapsed','enableCommand','toViewElement','some','suggestionChanged','consumable','execute','isObject','splice','author','end','add','from','createdAt','$textProxy','_isDataLoaded','isEqual','selection','addMarker:suggestion:formatBlock','_trackFormatChanges','getUser','highest','_model','trackChanges','editing','deletion:accept','high','root','_getAuthorFromId','tablePasteChainId','refresh','notReady','low','_suggestionFactory','batch','subType','addMarkerName','commands','unbindElementFromMarkerName','insertion:','isAtEnd','isTouching','getFirstRange','commentThread','buildSuggestion','showSuggestionHighlights','isLimit','_setSuggestionRange','_getExternalAuthor','assign','markMultiRangeBlockFormat','config','fire','insertion:chain','removeMarker','ck-suggestion-marker--active','isDocumentOperation','differ','markBlockFormat','getIntersection','fromCharCode','_descriptionFactory','deletion:chain','elementToElement','PendingActions','_removeSuggestion','getSuggestion','map','suggestion','_addThreadToSuggestion','addComment','filter','containsRangeInObject','widget','marker-count'];(function(_0x2402fe,_0x52e9d8){const _0x1099b1=function(_0x19b796){while(--_0x19b796){_0x2402fe['push'](_0x2402fe['shift']());}};_0x1099b1(++_0x52e9d8);}(_0x52e9,0x6d));const _0x1099=function(_0x2402fe,_0x52e9d8){_0x2402fe=_0x2402fe-0x0;let _0x1099b1=_0x52e9[_0x2402fe];return _0x1099b1;};import{Plugin as _0x49d03f,PendingActions as _0x366406}from'ckeditor5/src/core';import{LiveRange as _0x582436}from'ckeditor5/src/engine';import{CKEditorError as _0x3ae20b,uid as _0x308d28,priorities as _0x3a5197,logWarning as _0x213ab2}from'ckeditor5/src/utils';import{toWidget as _0x1a43b5}from'ckeditor5/src/widget';import{Users as _0x4a567d,hashObject as _0x51d38b}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b9b04 from'./commands/trackchangescommand';import _0x5166c6 from'./commands/acceptsuggestioncommand';import _0x557ab4 from'./commands/discardsuggestioncommand';import _0x54c4d9 from'./commands/executeonallsuggestionscommand';import _0x30831b from'./commands/executeonselectedsuggestionscommand';import _0x2c5f77 from'./suggestion';import _0x6d4ebc from'./suggestiondescriptionfactory';import _0x5af1dd from'./integrations/aiassistant';import _0x4634cd from'./integrations/alignment';import _0x37e3c8 from'./integrations/basicstyles';import _0x36b8d2 from'./integrations/blockquote';import _0x5aa06b from'./integrations/ckbox';import _0x29ed21 from'./integrations/codeblock';import _0x4e17c9 from'./integrations/comments';import _0x1c0c9e from'./integrations/deletecommand';import _0x4b5b39 from'./integrations/documentlist';import _0x1e1f3b from'./integrations/entercommand';import _0x37ce6e from'./integrations/findandreplace';import _0x2cfe22 from'./integrations/font';import _0xbf7a79 from'./integrations/formatpainter';import _0x358a25 from'./integrations/heading';import _0x2abc9b from'./integrations/highlight';import _0x26e805 from'./integrations/horizontalline';import _0x22b531 from'./integrations/htmlembed';import _0x395a5f from'./integrations/image';import _0x1ae4ea from'./integrations/imagereplace';import _0x3933cd from'./integrations/importword';import _0x50cfb0 from'./integrations/indent';import _0x2b5ce2 from'./integrations/inputcommand';import _0x58f4db from'./integrations/link';import _0x32817b from'./integrations/list';import _0x3b41d9 from'./integrations/listproperties';import _0xf61353 from'./integrations/mediaembed';import _0x127500 from'./integrations/mention';import _0x348180 from'./integrations/pagebreak';import _0x446730 from'./integrations/paragraph';import _0x28bd19 from'./integrations/removeformat';import _0x271d68 from'./integrations/restrictededitingmode';import _0x4b21cd from'./integrations/shiftentercommand';import _0xde62dd from'./integrations/standardeditingmode';import _0x1115fe from'./integrations/style';import _0xdeae6a from'./integrations/table';import _0x34155c from'./integrations/tablemergesplit';import _0x41e2b9 from'./integrations/tableheadings';import _0xe3e276 from'./integrations/tableclipboard';import _0x2781cf from'./integrations/tablecolumnresize';import _0x5b709e from'./integrations/template';import _0x106eaa from'./integrations/tableofcontents';import _0x48e54c from'./integrations/title';import _0x356657 from'./integrations/undo';import{getTranslation as _0x6b0c5d}from'./utils/common-translations';import _0x3ef0bf from'./integrations/tablecaption';import _0x5d030b from'./integrations/documentlistproperties';import _0x42a644 from'./integrations/tableproperties';import{isEqual as _0xa68f16}from'lodash-es';export default class p extends _0x49d03f{static get[_0x1099('0x137')](){return[_0x1099('0x3'),_0x4a567d,_0x366406,_0x5af1dd,_0x4634cd,_0x37e3c8,_0x36b8d2,_0x5aa06b,_0x29ed21,_0x4e17c9,_0x1c0c9e,_0x4b5b39,_0x5d030b,_0x1e1f3b,_0x37ce6e,_0x2cfe22,_0xbf7a79,_0x358a25,_0x2abc9b,_0x26e805,_0x22b531,_0x395a5f,_0x1ae4ea,_0x3933cd,_0x50cfb0,_0x2b5ce2,_0x58f4db,_0x32817b,_0x3b41d9,_0xf61353,_0x127500,_0x348180,_0x446730,_0x28bd19,_0x271d68,_0x4b21cd,_0xde62dd,_0x1115fe,_0xdeae6a,_0x34155c,_0x41e2b9,_0x3ef0bf,_0xe3e276,_0x2781cf,_0x106eaa,_0x42a644,_0x5b709e,_0x48e54c,_0x356657];}static get['pluginName'](){return _0x1099('0x136');}constructor(_0x2fdd1d){function _0x1e96e8(_0x3a20ab){return _0x3a20ab[_0x1099('0xd0')](_0x3bfccb=>String[_0x1099('0xc9')](_0x3bfccb))[_0x1099('0x89')]('');}super(_0x2fdd1d),this[_0x1099('0x51')](_0x1099('0x131'),[]),this['on'](_0x1099('0x6c'),(_0x714c8a,_0x2b30ec,_0x331843,_0xe480a1)=>{this['_model'][_0x1099('0x49')](()=>{for(const _0x462f02 of[..._0xe480a1,..._0x331843])this[_0x1099('0xa3')][_0x1099('0x47')]['has'](_0x462f02)&&_0x2fdd1d[_0x1099('0xa5')][_0x1099('0x12f')](_0x462f02);});}),this[_0x1099('0xca')]=new _0x6d4ebc(this['editor'][_0x1099('0x6b')][_0x1099('0x11e')],this[_0x1099('0x1f')][_0x1099('0x54')]),this[_0x1099('0x12c')]=null,this['_suggestionFactory']=new Bt(this['editor']),this[_0x1099('0x63')]=new Map(),this[_0x1099('0x2e')]=_0x2fdd1d[_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x3')),this['_enabledCommands']=new Set(),this[_0x1099('0xa3')]=this[_0x1099('0x1f')][_0x1099('0x6b')],this[_0x1099('0xd8')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x7b')](_0x1099('0x8b'),_0x1099('0x86')),this[_0x1099('0xa0')]=_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x36')](_0x1099('0x8b')),_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x7b')](_0x1099('0x105'),!0x0),this['_mergeNestedSuggestions']=_0x2fdd1d[_0x1099('0xc0')][_0x1099('0x36')](_0x1099('0x105')),this['trackChangesCommand']=new _0x4b9b04(_0x2fdd1d,this[_0x1099('0x12e')]),this[_0x1e96e8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1e96e8([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x30]);}[_0x1099('0x61')](){const _0x535619=this['editor'];_0x535619[_0x1099('0x6')][_0x1099('0x35')]('editingDowncast')[_0x1099('0x1e')]({'model':_0x1099('0xd1'),'view':_0x2e08da=>{const {id:_0x1b05ed,type:_0x53a559}=this['_splitMarkerName'](_0x2e08da[_0x1099('0x7c')]),_0x3061f0=['ck-suggestion-marker',_0x1099('0x77')+_0x53a559];let _0x2ba2c4=0xbb8;return this[_0x1099('0x131')][_0x1099('0xda')](_0x2e08da[_0x1099('0x7c')])&&(_0x3061f0[_0x1099('0x106')]('ck-suggestion-marker--active'),_0x2ba2c4=0xbc2),_0x1099('0x13f')==_0x53a559&&(_0x2ba2c4+=0x5),{'classes':_0x3061f0,'attributes':{'data-suggestion':_0x1b05ed},'priority':_0x2ba2c4};}}),_0x535619['conversion'][_0x1099('0x35')](_0x1099('0x11a'))['add'](_0x23b254=>{_0x23b254['on'](_0x1099('0x7a'),(_0x2377db,_0x986e32,_0x1f56f2)=>{if(!_0x1f56f2[_0x1099('0x65')][_0x1099('0xba')])return;const _0x6754a5=_0x986e32[_0x1099('0x142')];if(!_0x6754a5)return;const _0x419cdf=_0x1f56f2[_0x1099('0x138')][_0x1099('0x8f')](_0x6754a5);_0x535619['model']['schema'][_0x1099('0x94')](_0x6754a5)&&_0x419cdf&&!_0x419cdf[_0x1099('0xfc')](_0x1099('0xd6'))&&_0x419cdf['is'](_0x1099('0x19'))&&_0x1a43b5(_0x419cdf,_0x1f56f2[_0x1099('0x48')]);},{'priority':_0x1099('0xa7')});}),_0x535619[_0x1099('0x6')][_0x1099('0x35')]('dataDowncast')[_0x1099('0x1e')]({'model':_0x1099('0xd1'),'view':(_0x26e9f5,_0x4f22ed)=>{if(!_0x4f22ed['options'][_0x1099('0xba')])return null;const {type:_0x3547cc}=this['_splitMarkerName'](_0x26e9f5[_0x1099('0x7c')]);return{'classes':['ck-suggestion-marker',_0x1099('0x77')+_0x3547cc],'priority':0xbb8};}});const _0x5aa258=({showActiveMarkers:_0x1a3a2b=!0x0}={})=>(_0x1a1ffe,_0x26e0d7,_0x3ed5a6)=>{if(!_0x26e0d7[_0x1099('0x142')])return;if(_0x26e0d7[_0x1099('0x142')]['is'](_0x1099('0x9e')))return void _0x3ed5a6[_0x1099('0x92')][_0x1099('0x2b')](_0x26e0d7[_0x1099('0x142')],_0x1a1ffe[_0x1099('0xdc')]);const _0x58d03a=_0x3ed5a6[_0x1099('0x138')][_0x1099('0x8f')](_0x26e0d7[_0x1099('0x142')]);if(!(_0x26e0d7[_0x1099('0x142')]['is'](_0x1099('0xde'))&&_0x535619[_0x1099('0x6b')][_0x1099('0x11e')][_0x1099('0x6f')](_0x26e0d7[_0x1099('0x142')])&&!_0x58d03a['getCustomProperty'](_0x1099('0x4d'))))return;const {id:_0x44f5c3}=this[_0x1099('0x115')](_0x26e0d7['markerName']);_0x3ed5a6[_0x1099('0x48')][_0x1099('0x38')]([_0x1099('0x14'),_0x1099('0x3f')],_0x58d03a),_0x3ed5a6['writer'][_0x1099('0x88')](_0x1099('0x6a'),_0x44f5c3,_0x58d03a),_0x3ed5a6['mapper']['bindElementToMarker'](_0x58d03a,_0x26e0d7[_0x1099('0x7c')]),_0x1a3a2b&&(this[_0x1099('0x131')]['includes'](_0x26e0d7[_0x1099('0x7c')])?_0x3ed5a6[_0x1099('0x48')][_0x1099('0x38')](_0x1099('0xc4'),_0x58d03a):_0x3ed5a6[_0x1099('0x48')][_0x1099('0x13a')]('ck-suggestion-marker--active',_0x58d03a));for(const _0x57828e of _0x535619['model'][_0x1099('0x143')](_0x26e0d7[_0x1099('0x142')])[_0x1099('0x6e')]())_0x3ed5a6[_0x1099('0x92')][_0x1099('0x2b')](_0x57828e,_0x1a1ffe['name']);_0x3ed5a6[_0x1099('0x92')][_0x1099('0x2b')](_0x26e0d7[_0x1099('0x142')],_0x1a1ffe[_0x1099('0xdc')]);};_0x535619[_0x1099('0x6')][_0x1099('0x35')]('dataDowncast')[_0x1099('0x98')](_0x489905=>{_0x489905['on'](_0x1099('0x9f'),(_0x1d95b7,_0x1985a5,_0x12f82e)=>{_0x12f82e[_0x1099('0x65')][_0x1099('0xba')]&&_0x5aa258({'showActiveMarkers':!0x1})(_0x1d95b7,_0x1985a5,_0x12f82e);},{'priority':_0x1099('0xa2')});}),_0x535619[_0x1099('0x6')]['for']('dataDowncast')[_0x1099('0x111')]({'model':'suggestion','view':(_0x11c8e5,_0x168dc1)=>_0x168dc1[_0x1099('0x65')][_0x1099('0xba')]?null:{'group':_0x1099('0xd1'),'name':_0x11c8e5['substr'](0xb)}}),_0x535619[_0x1099('0x6')][_0x1099('0x35')](_0x1099('0x100'))[_0x1099('0xcc')]({'view':{'name':_0x1099('0xd1'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x440c2c,{writer:_0x4c4c81})=>{let _0x37588c='suggestion:'+_0x440c2c[_0x1099('0x13')](_0x1099('0x43'))+':'+_0x440c2c[_0x1099('0x13')]('id');return _0x440c2c['getAttribute'](_0x1099('0xd7'))&&(_0x37588c+=':'+_0x440c2c['getAttribute']('marker-count')),_0x4c4c81[_0x1099('0x74')](_0x1099('0x109'),{'data-name':_0x37588c});}}),_0x535619['conversion']['for'](_0x1099('0x100'))[_0x1099('0x57')]({'view':_0x1099('0xd1')}),_0x535619['conversion'][_0x1099('0x35')](_0x1099('0x139'))['add'](_0x23cd48=>{_0x23cd48['on'](_0x1099('0x9f'),_0x5aa258(),{'priority':_0x1099('0xa7')});}),_0x535619['conversion'][_0x1099('0x35')](_0x1099('0x139'))[_0x1099('0x98')](_0x3d5715=>{_0x3d5715['on'](_0x1099('0x10b'),(_0x506eb4,_0x194a01,_0x3f0beb)=>{const _0x33cd0b=_0x3f0beb['mapper'][_0x1099('0xe0')](_0x194a01['markerName']);if(_0x33cd0b)for(const _0x118b2c of _0x33cd0b)_0x118b2c['getCustomProperty'](_0x1099('0x4d'))||(_0x3f0beb[_0x1099('0x48')][_0x1099('0x13a')]([_0x1099('0x14'),_0x1099('0x3f'),_0x1099('0xc4')],_0x118b2c),_0x3f0beb[_0x1099('0x48')][_0x1099('0x23')]('data-suggestion',_0x118b2c),_0x3f0beb['mapper'][_0x1099('0xb3')](_0x118b2c,_0x194a01[_0x1099('0x7c')]));},{'priority':_0x1099('0xa7')});}),_0x535619['model'][_0x1099('0xf3')][_0x1099('0x144')](_0x5416ba=>{let _0x105cd2=!0x1;const _0x3fab33=Array['from'](_0x535619[_0x1099('0x6b')]['document'][_0x1099('0xc6')][_0x1099('0x30')]()),_0x277031=new Set();for(const {name:_0x1c9538,data:_0x3cfb96}of _0x3fab33){const {group:_0xc5b505,type:_0x35c02b,id:_0x27afaf}=this[_0x1099('0x115')](_0x1c9538);if(_0x1099('0xd1')!==_0xc5b505)continue;const _0x20bd9c=this['_suggestions'][_0x1099('0x36')](_0x27afaf);if(null!=_0x3cfb96['newRange']){_0x1099('0x50')==_0x35c02b&&(_0x105cd2=_0x105cd2||$t(_0x3cfb96[_0x1099('0x78')],_0x1c9538,_0x5416ba,_0x535619['model'][_0x1099('0x11e')]));if(_0x3cfb96[_0x1099('0x78')]['isCollapsed']||_0x1099('0x72')==_0x3cfb96[_0x1099('0x78')]['root'][_0x1099('0xb')]||_0x1099('0x7d')==_0x35c02b&&!Rt(_0x3cfb96[_0x1099('0x78')])||_0x1099('0x13f')==_0x35c02b&&!(!Mt(_0x383e85=_0x3cfb96[_0x1099('0x78')])&&!function(_0x48acba){return _0x48acba[_0x1099('0x31')][_0x1099('0x2c')]==_0x48acba[_0x1099('0x97')][_0x1099('0x10f')]&&_0x48acba['start']['isAtEnd'];}(_0x383e85)))_0x5416ba[_0x1099('0xc3')](_0x1c9538),_0x105cd2=!0x0;else{if(!_0x20bd9c||!_0x20bd9c['isInContent'])continue;_0x277031[_0x1099('0x98')](_0x20bd9c);}}}var _0x383e85;return _0x277031['size']>0x0&&(_0x105cd2=!!this[_0x1099('0xf9')](_0x277031)||_0x105cd2),_0x105cd2;}),_0x535619[_0x1099('0x6b')][_0x1099('0xf3')]['registerPostFixer'](_0x37a27c=>{let _0x55e26f=!0x1;for(const _0xc01058 of _0x535619[_0x1099('0x6b')][_0x1099('0xf3')]['differ']['getChanges']()){if(_0x1099('0x46')!=_0xc01058[_0x1099('0x1b')])continue;const _0x2157cd=_0xc01058[_0x1099('0x64')][_0x1099('0x28')](_0xc01058[_0x1099('0x110')]);if(_0x2157cd[_0x1099('0xb5')])for(const _0x35e0c2 of this['_suggestions']['values']()){if(_0x35e0c2['isMultiRange']||!_0x35e0c2[_0x1099('0x4f')])continue;if(_0x1099('0x7d')!=_0x35e0c2['type'])continue;const _0x5c9cf6=_0x35e0c2[_0x1099('0xb7')]();if(_0x5c9cf6['start'][_0x1099('0x2c')]!=_0x5c9cf6[_0x1099('0x97')][_0x1099('0x2c')]&&_0x5c9cf6['end'][_0x1099('0x9d')](_0xc01058[_0x1099('0x64')])){const _0x1cc472=_0x535619['model'][_0x1099('0xef')](_0x5c9cf6[_0x1099('0x31')],_0x2157cd);_0x37a27c['updateMarker'](_0x35e0c2[_0x1099('0x132')](),{'range':_0x1cc472}),_0x55e26f=!0x0;}}}return _0x55e26f;}),_0x535619[_0x1099('0x6b')]['markers']['on'](_0x1099('0x8a'),(_0x21df64,_0xed5462,_0x50c690)=>{if(null==_0x50c690){const {id:_0x3f5595}=this[_0x1099('0x115')](_0xed5462[_0x1099('0xdc')]),_0x3a0bd9=this[_0x1099('0x63')][_0x1099('0x36')](_0x3f5595);_0x3a0bd9&&_0x3a0bd9[_0x1099('0xb1')](_0xed5462[_0x1099('0xdc')]);}}),_0x535619[_0x1099('0x6b')][_0x1099('0xf3')]['on'](_0x1099('0x60'),()=>{const _0x2e8762=Array['from'](_0x535619[_0x1099('0x6b')][_0x1099('0xf3')][_0x1099('0xc6')][_0x1099('0x30')]())['filter'](_0x3b6f4a=>_0x1099('0xd1')===this[_0x1099('0x115')](_0x3b6f4a[_0x1099('0xdc')])['group']);if(0x0===_0x2e8762['length'])return;_0x2e8762['sort']((_0x313ec8,_0x415496)=>{const _0x18812f=_0x313ec8[_0x1099('0xd')][_0x1099('0x119')],_0x5a65c=_0x415496[_0x1099('0xd')]['oldRange'];return null===_0x18812f&&null===_0x5a65c?0x0:null===_0x18812f&&null!==_0x5a65c?-0x1:null!==_0x18812f&&null===_0x5a65c?0x1:_0x18812f[_0x1099('0x31')]['isBefore'](_0x5a65c[_0x1099('0x31')])?-0x1:0x1;});const _0x13e4d1=new Set(),_0x5a5bb9=new Set();for(const {name:_0x119a81,data:_0x35fa9d}of _0x2e8762){const {id:_0x2dd069}=this[_0x1099('0x115')](_0x119a81);if(null===_0x35fa9d[_0x1099('0x119')]){const _0x18b3ba=this[_0x1099('0xe5')](_0x119a81);_0x5a5bb9['add'](_0x18b3ba);}else{const _0x46e841=this[_0x1099('0x63')][_0x1099('0x36')](_0x2dd069);null!==_0x35fa9d['newRange']||_0x46e841[_0x1099('0x4f')]?(_0x13e4d1['add'](_0x46e841[_0x1099('0x11')]),_0x5a5bb9['add'](_0x46e841)):this[_0x1099('0xce')](_0x46e841);}}_0x5a5bb9[_0x1099('0xe9')]>0x0&&this[_0x1099('0x79')](_0x5a5bb9);for(const _0x5b8e55 of _0x13e4d1)this[_0x1099('0xc1')](_0x1099('0x91'),_0x5b8e55);}),_0x535619['model']['on']('applyOperation',(_0x116507,_0x54206f)=>{const _0x5d0126=_0x54206f[0x0];if(!this[_0x1099('0x63')][_0x1099('0xe9')])return;if(!_0x5d0126[_0x1099('0xc5')])return;if(_0x5d0126['batch'][_0x1099('0x73')]||!_0x5d0126[_0x1099('0xaf')][_0x1099('0x59')])return;let _0x1036ee,_0x1f2507;switch(_0x5d0126[_0x1099('0x1b')]){case'insert':_0x1036ee=_0x535619[_0x1099('0x6b')]['createPositionAt'](_0x5d0126[_0x1099('0x64')]),_0x1f2507=_0x1036ee[_0x1099('0x28')](_0x5d0126[_0x1099('0x13c')]);break;case _0x1099('0x134'):_0x1036ee=_0x535619[_0x1099('0x6b')][_0x1099('0x4b')](_0x5d0126[_0x1099('0x12d')]),_0x1f2507=_0x535619[_0x1099('0x6b')]['createPositionAt'](_0x5d0126[_0x1099('0x124')]);break;case'move':_0x1036ee=_0x535619[_0x1099('0x6b')]['createPositionAt'](_0x5d0126[_0x1099('0x12a')]),_0x1f2507=_0x1036ee[_0x1099('0x28')](_0x5d0126['howMany']);break;default:return;}const _0x36f870=_0x535619[_0x1099('0x6b')][_0x1099('0xef')](_0x1036ee,_0x1f2507);_0x535619[_0x1099('0x6b')][_0x1099('0x49')](()=>{for(const {suggestion:_0x4f2160,meta:_0x5d35a2}of this[_0x1099('0x10e')](_0x36f870)){if(_0x4f2160[_0x1099('0x20')])continue;if(_0x1099('0x50')==_0x4f2160[_0x1099('0x1b')])continue;const _0x4e2d6d=_0x4f2160['data']&&_0x4f2160[_0x1099('0xd')][_0x1099('0x127')];(_0x1099('0x7d')!=_0x4f2160[_0x1099('0x1b')]||_0x1099('0x134')==_0x5d0126[_0x1099('0x1b')]&&!_0x4e2d6d)&&(_0x5d35a2[_0x1099('0xd5')]||_0x1099('0xed')==_0x4f2160['type']&&_0x5d35a2['isOwn']||_0x4f2160[_0x1099('0xb7')]()['containsRange'](_0x36f870)&&this['_breakSuggestionMarker'](_0x4f2160,_0x1036ee,_0x1f2507));}});},{'priority':_0x1099('0x116')}),_0x535619[_0x1099('0x6b')]['on'](_0x1099('0x2d'),(_0x386356,_0x5df6c1)=>{const _0xb68fb5=_0x5df6c1[0x0],_0x55925d=_0x5df6c1[0x1];if(_0x55925d&&_0x55925d[_0x1099('0xfd')])return;if(this[_0x1099('0x87')])return;if(!this[_0x1099('0xa')]['value'])return;if(_0xb68fb5[_0x1099('0x8d')])return;const _0x51ba13=_0x535619[_0x1099('0x6b')]['schema'],{start:_0x37a85f,end:_0xadce2f}=_0xb68fb5[_0x1099('0xb7')](),_0x23aaaf=_0x37a85f[_0x1099('0xf2')]&&_0x51ba13[_0x1099('0xbb')](_0x37a85f['nodeAfter'])?null:_0x51ba13[_0x1099('0x12b')](_0x37a85f,'forward'),_0x4a32e9=_0xadce2f[_0x1099('0x10f')]&&_0x51ba13[_0x1099('0xbb')](_0xadce2f[_0x1099('0x10f')])?null:_0x51ba13[_0x1099('0x12b')](_0xadce2f,_0x1099('0x140')),_0x129bb0=_0x535619[_0x1099('0x6b')]['createRange'](_0x23aaaf?_0x23aaaf['start']:_0x37a85f,_0x4a32e9?_0x4a32e9[_0x1099('0x97')]:_0xadce2f);_0x535619['model'][_0x1099('0x49')](_0x399968=>{this['markDeletion'](_0x129bb0);const _0x4392be=_0x535619[_0x1099('0x6b')]['schema'][_0x1099('0x12b')](_0x129bb0[_0x1099('0x31')]);_0xb68fb5['is'](_0x1099('0x5e'))?_0x399968[_0x1099('0x44')](_0x4392be):_0xb68fb5[_0x1099('0xe7')](_0x4392be);}),_0x386356[_0x1099('0x3b')]();},{'priority':_0x3a5197[_0x1099('0x25')]+0xa}),_0x535619[_0x1099('0x6b')]['on'](_0x1099('0xe'),(_0x4736c3,_0x3f5e33)=>{const _0x21a9e4=_0x3f5e33[_0x3f5e33[_0x1099('0x110')]-0x1];_0x21a9e4&&_0x21a9e4[_0x1099('0xfd')]||this[_0x1099('0x87')]||this[_0x1099('0xa')]['value']&&(_0x535619[_0x1099('0x6b')][_0x1099('0x49')](()=>{let _0x561959=_0x535619[_0x1099('0x6b')][_0x1099('0xe')](_0x3f5e33[0x0],_0x3f5e33[0x1],_0x3f5e33[0x2],{'forceDefaultExecution':!0x0});if(!_0x561959)return;_0x4736c3[_0x1099('0x103')]=_0x561959['clone']();const _0x3a9f88=_0x561959['end']['nodeBefore'],_0x6a7f22=_0x535619[_0x1099('0x6b')][_0x1099('0x11e')];_0x3a9f88&&_0x6a7f22[_0x1099('0x6f')](_0x3a9f88)&&!_0x6a7f22[_0x1099('0x94')](_0x3a9f88)&&(_0x561959=_0x535619['model']['createRange'](_0x561959[_0x1099('0x31')],_0x535619[_0x1099('0x6b')][_0x1099('0x4b')](_0x3a9f88,_0x1099('0x97')))),this[_0x1099('0x1d')](_0x561959);}),_0x4736c3[_0x1099('0x3b')]());},{'priority':_0x1099('0xa7')}),this['editor']['commands'][_0x1099('0x98')](_0x1099('0xa4'),this[_0x1099('0xa')]),this[_0x1099('0x8e')](_0x1099('0xa4'));const _0x45e681=new _0x5166c6(_0x535619,this[_0x1099('0x63')]);_0x535619[_0x1099('0xb2')][_0x1099('0x98')](_0x1099('0x55'),_0x45e681),this[_0x1099('0x8e')](_0x1099('0x55'));const _0x12e6c2=new _0x557ab4(_0x535619,this[_0x1099('0x63')]);_0x535619[_0x1099('0xb2')]['add'](_0x1099('0x7f'),_0x12e6c2),this[_0x1099('0x8e')](_0x1099('0x7f')),_0x535619[_0x1099('0xb2')][_0x1099('0x98')](_0x1099('0x29'),new _0x54c4d9(_0x535619,_0x45e681,this[_0x1099('0x63')])),this[_0x1099('0x8e')](_0x1099('0x29')),_0x535619['commands'][_0x1099('0x98')](_0x1099('0xf8'),new _0x54c4d9(_0x535619,_0x12e6c2,this[_0x1099('0x63')])),this[_0x1099('0x8e')](_0x1099('0xf8')),_0x535619['commands']['add'](_0x1099('0x42'),new _0x30831b(_0x535619,_0x45e681,this[_0x1099('0x63')])),this['enableCommand']('acceptSelectedSuggestions'),_0x535619[_0x1099('0xb2')][_0x1099('0x98')]('discardSelectedSuggestions',new _0x30831b(_0x535619,_0x12e6c2,this['_suggestions'])),this[_0x1099('0x8e')]('discardSelectedSuggestions');const _0x4b77e2=_0x535619[_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x3'));this['listenTo'](_0x4b77e2,_0x1099('0xd3'),(_0x46219a,{threadId:_0x4cef0d})=>{const _0x3cf4e2=this[_0x1099('0x63')]['get'](_0x4cef0d);_0x3cf4e2&&_0x3cf4e2[_0x1099('0xb8')]&&0x1===_0x3cf4e2['commentThread'][_0x1099('0x110')]&&this['_updateSuggestionData'](_0x4cef0d,{'hasComments':!0x0});},{'priority':_0x1099('0xad')}),this[_0x1099('0x66')](_0x4b77e2,_0x1099('0x3e'),(_0x2af8f7,{threadId:_0x5d9728})=>{const _0x1fb7df=this[_0x1099('0x63')][_0x1099('0x36')](_0x5d9728);_0x1fb7df&&_0x1fb7df[_0x1099('0xb8')]&&!_0x1fb7df[_0x1099('0xb8')][_0x1099('0x110')]&&this[_0x1099('0x83')](_0x5d9728,{'hasComments':!0x1});},{'priority':_0x1099('0xad')});}set[_0x1099('0x40')](_0x2459d7){if(this['_adapter'])throw new _0x3ae20b('track-changes-adapter-already-set',this);this[_0x1099('0x12c')]=_0x2459d7;}get[_0x1099('0x40')](){return this['_adapter'];}[_0x1099('0xf6')]({skipNotAttached:_0x5dd85c=!0x1,toJSON:_0x4b6378=!0x1}={}){const _0x50f613=[];for(const _0x37b308 of this[_0x1099('0x63')][_0x1099('0x68')]())_0x5dd85c&&!_0x37b308['isInContent']||_0x50f613[_0x1099('0x106')](_0x37b308);return _0x4b6378?_0x50f613[_0x1099('0xd0')](_0xa89ce5=>_0xa89ce5['toJSON']()):_0x50f613;}[_0x1099('0xcf')](_0x46e931){const _0x20c0a3=this[_0x1099('0x63')][_0x1099('0x36')](_0x46e931);if(!_0x20c0a3)throw new _0x3ae20b(_0x1099('0xe1'),this);return _0x20c0a3;}[_0x1099('0x0')](_0x2cb441){return this['_suggestions']['has'](_0x2cb441);}['addSuggestionData'](_0x5994ba){const {authorId:_0xcc4dbc,id:_0xd12de7,attributes:_0x336d92}=_0x5994ba,[_0x58475c,_0x8e9f1a]=_0x5994ba['type'][_0x1099('0x134')](':'),_0x3933c0=this[_0x1099('0x63')][_0x1099('0x36')](_0xd12de7)||this[_0x1099('0x27')](_0x58475c,_0x8e9f1a,_0xd12de7,_0xcc4dbc,_0x336d92);if(this[_0x1099('0xd2')](_0x3933c0),this[_0x1099('0x26')](_0x3933c0,_0x58475c,_0x8e9f1a||null,_0xcc4dbc),_0x3933c0[_0x1099('0x9a')]=_0x5994ba[_0x1099('0x9a')],_0x3933c0[_0x1099('0x9c')]=!0x0,_0x336d92&&_0x336d92[_0x1099('0x102')]){const _0x8ece46=_0x336d92[_0x1099('0x102')],_0x523993=this[_0x1099('0xbd')](_0x8ece46[_0x1099('0x37')]);_0x3933c0[_0x1099('0x58')]=_0x8ece46[_0x1099('0x9a')],_0x3933c0[_0x1099('0x96')]=_0x523993,_0x3933c0[_0x1099('0xec')]=!0x0;}else _0x3933c0[_0x1099('0x58')]=_0x5994ba[_0x1099('0x9a')];switch(_0x5994ba['data']&&(_0x3933c0[_0x1099('0xd')]=_0x5994ba[_0x1099('0xd')]),_0x5994ba[_0x1099('0x104')]&&(_0x3933c0['attributes']=_0x5994ba[_0x1099('0x104')]),this['_adapter']&&this[_0x1099('0x12c')]['addSuggestion']||(_0x3933c0[_0x1099('0x69')]=!0x0),this['_suggestionState']['get'](_0x3933c0)){case _0x1099('0xac'):this[_0x1099('0xd8')]['set'](_0x3933c0,_0x1099('0x18'));break;case _0x1099('0x2f'):_0x3933c0['isInContent']?(this['_refreshSuggestionsChain'](new Set([_0x3933c0])),this['_joinWithAdjacentSuggestions'](new Set([_0x3933c0])),this[_0x1099('0xd8')][_0x1099('0x51')](_0x3933c0,'ready'),this['fire'](_0x1099('0xff'),_0x3933c0)):this[_0x1099('0xd8')][_0x1099('0x51')](_0x3933c0,'removed');}return _0x3933c0;}[_0x1099('0x55')](_0x4f7f35){this[_0x1099('0xfd')](()=>{this[_0x1099('0x1f')]['model'][_0x1099('0x49')](()=>{for(const _0xf20064 of _0x4f7f35[_0x1099('0x10d')]())_0xf20064[_0x1099('0x107')]();});});}[_0x1099('0x7f')](_0x3e9995){this[_0x1099('0xfd')](()=>{this[_0x1099('0x1f')][_0x1099('0x6b')][_0x1099('0x49')](()=>{for(const _0x23d2f9 of _0x3e9995[_0x1099('0x10d')]())_0x23d2f9[_0x1099('0x33')]();});});}[_0x1099('0x8e')](_0x596e09,_0x3bdf9b){const _0xfc49a1=this[_0x1099('0x1f')]['commands'][_0x1099('0x36')](_0x596e09);if(!_0xfc49a1)throw new _0x3ae20b(_0x1099('0xe6'),this,{'commandName':_0x596e09});this[_0x1099('0x12e')][_0x1099('0x98')](_0xfc49a1),_0x3bdf9b&&_0xfc49a1['on']('execute',(_0x3f6bab,_0x49ec71)=>{this[_0x1099('0xa')][_0x1099('0x118')]&&(this['_isForcedDefaultExecutionBlock']||_0x49ec71[_0x1099('0x110')]>0x0&&_0x49ec71[_0x49ec71[_0x1099('0x110')]-0x1]&&_0x49ec71[_0x49ec71[_0x1099('0x110')]-0x1][_0x1099('0xfd')]||(_0x3f6bab[_0x1099('0x103')]=_0x3bdf9b((..._0x481143)=>_0xfc49a1[_0x1099('0x93')](..._0x481143,{'forceDefaultExecution':!0x0}),..._0x49ec71),_0x3f6bab[_0x1099('0x3b')]()));},{'priority':_0x1099('0xa7')});}[_0x1099('0xfd')](_0x2e174a){let _0x47285d,_0xb04080;const _0x26af36=this['_isForcedDefaultExecutionBlock'];this[_0x1099('0x87')]=!0x0;try{_0x47285d=_0x2e174a();}catch(_0x1017b6){_0xb04080=_0x1017b6;}return _0x26af36||(this[_0x1099('0x87')]=!0x1),_0xb04080&&_0x3ae20b['rethrowUnexpectedError'](_0xb04080,this),_0x47285d;}[_0x1099('0x1d')](_0x4ce64e,_0x3adc0b=null,_0x9696a1={}){if(_0x4ce64e[_0x1099('0x8d')])return null;const _0x45ff65=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'];for(const {suggestion:_0xef57f7,meta:_0x470cca}of this[_0x1099('0x10e')](_0x4ce64e,'insertion'))if(_0x470cca[_0x1099('0x12')]){if(!_0x470cca[_0x1099('0x5d')]){if(_0x470cca['containsRangeInObject']){if(!this[_0x1099('0x117')]||!Ot(_0xef57f7,_0x9696a1))continue;return _0xef57f7;}if(Ot(_0xef57f7,_0x9696a1))return _0xef57f7;this[_0x1099('0x76')](_0xef57f7,_0x4ce64e[_0x1099('0x31')],_0x4ce64e[_0x1099('0x97')]);break;}if(_0x3adc0b==_0xef57f7[_0x1099('0xb0')]&&Ot(_0xef57f7,_0x9696a1)){const _0x4b0450=_0xef57f7[_0x1099('0xb7')]();return _0x4b0450[_0x1099('0x31')][_0x1099('0x9d')](_0x4ce64e[_0x1099('0x97')])?this['_setSuggestionRange'](_0xef57f7,this[_0x1099('0xa3')]['createRange'](_0x4ce64e['start'],_0x4b0450['end'])):this['_setSuggestionRange'](_0xef57f7,this[_0x1099('0xa3')][_0x1099('0xef')](_0x4b0450['start'],_0x4ce64e[_0x1099('0x97')])),_0xef57f7;}}const _0x3e4d00=_0x308d28(),_0x178966=_0x45ff65['id'],_0x353317=_0x3adc0b?_0x1099('0xb4')+_0x3adc0b:_0x1099('0xed'),_0x1942f2=this[_0x1099('0x8')]({'id':_0x3e4d00,'type':_0x353317,'createdAt':new Date(),'authorId':_0x178966,'attributes':_0x9696a1});return this[_0x1099('0xf4')](_0x353317,_0x3e4d00,_0x178966,_0x4ce64e),_0x1942f2;}['markMultiRangeInsertion'](_0x5a16c4,_0x8d963f=_0x1099('0x56'),_0x392c0c={}){const _0x51d44a=this[_0x1099('0x1f')]['plugins']['get'](_0x1099('0x9'))['me'],_0x3f0a8a=this['_suggestionFactory'][_0x1099('0x113')](_0x1099('0xed'),_0x8d963f,_0x1099('0x89'));for(const _0x123896 of this[_0x1099('0xf6')]())if(_0x123896['author']['id']==_0x51d44a['id']&&_0x1099('0xed')==_0x123896['type']&&_0x123896[_0x1099('0xb0')]==_0x8d963f&&Ot(_0x123896,_0x392c0c)&&(_0x3f0a8a(_0x123896[_0x1099('0x3c')](),_0x5a16c4)||_0x3f0a8a(_0x5a16c4,_0x123896[_0x1099('0x3c')]()))){for(const _0x4d147f of _0x5a16c4)_0x123896[_0x1099('0x120')](_0x4d147f);return _0x123896;}for(const {suggestion:_0x2548c3,meta:_0x19b720}of this[_0x1099('0x10e')](_0x5a16c4,_0x1099('0xed'))){if(!_0x19b720[_0x1099('0x12')])continue;if(!this[_0x1099('0x117')]&&_0x19b720[_0x1099('0xd5')])continue;if(!Ot(_0x2548c3,_0x392c0c))continue;let _0x54ed78=!0x0;for(const _0x2d60a0 of _0x2548c3['getRanges']())for(const _0x5bca06 of _0x5a16c4)if(!_0x2d60a0[_0x1099('0x101')](_0x5bca06)){_0x54ed78=!0x1;break;}if(_0x54ed78)return _0x2548c3;}const _0x21e159=_0x308d28(),_0xef8c20=_0x51d44a['id'],_0x182c5b=_0x1099('0xb4')+_0x8d963f,_0x548f31=this[_0x1099('0x8')]({'id':_0x21e159,'type':_0x182c5b,'createdAt':new Date(),'authorId':_0xef8c20,'attributes':_0x392c0c});for(const _0x42ef13 of _0x5a16c4)this[_0x1099('0xf4')](_0x182c5b,_0x21e159,_0xef8c20,_0x42ef13,_0x2c5f77[_0x1099('0x52')]());return _0x548f31;}['markInlineFormat'](_0x22459a,_0x35718f,_0x5882b0=null,_0x50bc01={}){if(_0x5882b0=_0x5882b0||Nt(_0x35718f),_0x22459a[_0x1099('0x8d')])return null;if('never'===this[_0x1099('0xa0')]){const _0x1c0c1b=this[_0x1099('0xae')]['getSuggestionCallback'](_0x1099('0x50'),_0x5882b0,_0x1099('0x107'));return this['forceDefaultExecution'](()=>_0x1c0c1b([_0x22459a],_0x35718f,_0x50bc01)),null;}const _0xa6b25a=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'],_0x11c40f=[];if(_0x1099('0x53')!==this[_0x1099('0xa0')])for(const {suggestion:_0x178101,meta:_0x516876}of this[_0x1099('0x10e')](_0x22459a,_0x1099('0xed')))_0x516876[_0x1099('0x12')]&&!_0x516876[_0x1099('0x39')]&&_0x11c40f['push'](..._0x178101[_0x1099('0x3c')]());const _0x2729ef=function(_0x54d645,_0x56ba11){const _0x5f266e=[];for(const _0xb90a57 of _0x56ba11){const _0x35060c=_0x54d645['getIntersection'](_0xb90a57);_0x35060c&&_0x5f266e[_0x1099('0x106')](_0x35060c);}return _0x5f266e;}(_0x22459a,_0x11c40f),_0x2d0060=function(_0x5bb673,_0x20f363){const _0x3b73ca=[_0x5bb673];for(const _0x131b46 of _0x20f363){let _0x590197=0x0;for(;_0x590197<_0x3b73ca[_0x1099('0x110')];){const _0x4fa850=_0x3b73ca[_0x590197]['getDifference'](_0x131b46);_0x3b73ca[_0x1099('0x95')](_0x590197,0x1,..._0x4fa850),_0x590197+=_0x4fa850['length'];}}return _0x3b73ca;}(_0x22459a,_0x11c40f);_0x2729ef[_0x1099('0x110')]&&this[_0x1099('0xa3')][_0x1099('0x49')](()=>{for(const _0x1ec4b2 of _0x2729ef){const _0x33a59d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5882b0,_0x1099('0x107'));this['forceDefaultExecution'](()=>_0x33a59d([_0x1ec4b2],_0x35718f,_0x50bc01));}});for(const _0x19f1e2 of _0x2d0060){let _0x38553a=null,_0x2eccec=_0x19f1e2[_0x1099('0x31')],_0x3037b4=_0x19f1e2['end'];for(const {suggestion:_0x2c1d3f,meta:_0xd01e28}of this['_findSuggestions'](_0x19f1e2,_0x1099('0x50'))){if(!_0xd01e28[_0x1099('0x12')])continue;if(_0x2c1d3f[_0x1099('0xb0')]!=_0x5882b0)continue;if(!Ot(_0x2c1d3f,_0x50bc01))continue;const _0x19e125=_0x2c1d3f[_0x1099('0xb7')]();if(_0x19e125[_0x1099('0x101')](_0x19f1e2,!0x0))return null;_0x2eccec=_0x2eccec[_0x1099('0x11c')](_0x19e125[_0x1099('0x31')])?_0x2eccec:_0x19e125[_0x1099('0x31')],_0x3037b4=_0x3037b4[_0x1099('0x81')](_0x19e125['end'])?_0x3037b4:_0x19e125[_0x1099('0x97')],_0x38553a?_0x19e125[_0x1099('0x31')][_0x1099('0x11c')](_0x38553a[_0x1099('0xb7')]()['start'])?(_0x38553a[_0x1099('0x13e')](),_0x38553a=_0x2c1d3f):_0x2c1d3f[_0x1099('0x13e')]():_0x38553a=_0x2c1d3f;}const _0x369bb5=this[_0x1099('0xa3')][_0x1099('0xef')](_0x2eccec,_0x3037b4);if(_0x38553a)this[_0x1099('0xbc')](_0x38553a,_0x369bb5);else{const _0x466d02=_0x308d28(),_0x5e5330=_0xa6b25a['id'];this[_0x1099('0x8')]({'id':_0x466d02,'type':_0x1099('0x122')+_0x5882b0,'data':_0x35718f,'createdAt':new Date(),'authorId':_0x5e5330,'attributes':_0x50bc01}),this['_addSuggestionMarker'](_0x1099('0x122')+_0x5882b0,_0x466d02,_0x5e5330,_0x369bb5);}}return null;}[_0x1099('0xc7')](_0x2f1638,_0x1e32c3,_0x2e7377=[],_0x2518a4=null,_0x477d29={}){_0x1e32c3[_0x1099('0x7e')]||(_0x1e32c3['formatGroupId']=_0x1e32c3[_0x1099('0x75')]),_0x1e32c3[_0x1099('0x127')]=_0x2f1638['is']('range'),_0x2518a4=_0x2518a4||Nt(_0x1e32c3);const _0x11d3bc=_0x2e7377[_0x1099('0xd0')](_0x4a6467=>jt(_0x4a6467,this['_model'])),_0x4332c9=_0x2f1638['is'](_0x1099('0x135'))?_0x2f1638:jt(_0x2f1638,this[_0x1099('0xa3')]);if(_0x1099('0x71')===this['_trackFormatChanges']){const _0x115292=this['_suggestionFactory'][_0x1099('0x113')](_0x1099('0x7d'),_0x2518a4,_0x1099('0x107'));return this['forceDefaultExecution'](()=>_0x115292([_0x4332c9],_0x1e32c3,_0x477d29)),null;}_0x11d3bc[_0x1099('0x106')](_0x4332c9);let _0xec3478=!0x0;for(const _0x3c90e0 of _0x11d3bc)if(!this['_rangeIsInLocalUserInsertion'](_0x3c90e0)){_0xec3478=!0x1;break;}if(_0xec3478&&'always'!==this[_0x1099('0xa0')]){const _0x320917=this['_suggestionFactory'][_0x1099('0x113')](_0x1099('0x7d'),_0x2518a4,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x320917([_0x4332c9],_0x1e32c3,_0x477d29)),null;}let _0x55111c=null,_0x258dbb=_0x4332c9[_0x1099('0x31')],_0x4a43f9=_0x4332c9['end'];for(const {suggestion:_0x5f29d7,meta:_0x200e46}of this[_0x1099('0x10e')](_0x4332c9,_0x1099('0x7d'))){if(!_0x200e46['isOwn'])continue;if(_0x200e46['isNextTo']||_0x200e46[_0x1099('0xd5')]||_0x200e46[_0x1099('0x39')])continue;if(_0x5f29d7[_0x1099('0xd')][_0x1099('0x7e')]!=_0x1e32c3[_0x1099('0x7e')])continue;if(!Ot(_0x5f29d7,_0x477d29))continue;const _0x320f0c=_0x5f29d7[_0x1099('0xb7')]();if(_0x5f29d7[_0x1099('0xb0')]==_0x2518a4){if(_0x320f0c[_0x1099('0x101')](_0x4332c9,!0x0))return null;_0x258dbb=_0x258dbb['isBefore'](_0x320f0c[_0x1099('0x31')])?_0x258dbb:_0x320f0c['start'],_0x4a43f9=_0x4a43f9[_0x1099('0x81')](_0x320f0c['end'])?_0x4a43f9:_0x320f0c[_0x1099('0x97')],_0x55111c?_0x320f0c[_0x1099('0x31')][_0x1099('0x11c')](_0x55111c['getFirstRange']()[_0x1099('0x31')])?(_0x55111c[_0x1099('0x13e')](),_0x55111c=_0x5f29d7):_0x5f29d7[_0x1099('0x13e')]():_0x55111c=_0x5f29d7;}else{const _0x3842a5=_0x4332c9[_0x1099('0xc8')](_0x320f0c);this['_cutOutSuggestionMarker'](_0x5f29d7,_0x3842a5);}}const _0x4aad20=this[_0x1099('0x1f')]['plugins'][_0x1099('0x36')](_0x1099('0x9'))['me'],_0x18f598=_0x308d28(),_0x493822=_0x4aad20['id'];if(_0x55111c)return this['_setSuggestionRange'](_0x55111c,this[_0x1099('0xa3')][_0x1099('0xef')](_0x258dbb,_0x4a43f9)),_0x55111c;{const _0xf68cf=this[_0x1099('0x8')]({'id':_0x18f598,'type':'formatBlock:'+_0x2518a4,'data':_0x1e32c3,'createdAt':new Date(),'authorId':_0x493822,'attributes':_0x477d29});return this[_0x1099('0xf4')](_0x1099('0x11d')+_0x2518a4,_0x18f598,_0x493822,this['_model'][_0x1099('0xef')](_0x258dbb,_0x4a43f9)),_0xf68cf;}}[_0x1099('0xbf')](_0x30e5e0,_0xe201c2,_0x44e197=[],_0x15d9e7=null,_0x118ad2={}){_0xe201c2[_0x1099('0x7e')]||(_0xe201c2[_0x1099('0x7e')]=_0xe201c2['commandName']);const _0x8a6ee8=_0x30e5e0[0x0];_0xe201c2[_0x1099('0x127')]=_0x8a6ee8['is'](_0x1099('0x135')),_0x15d9e7=_0x15d9e7||Nt(_0xe201c2);const _0x44c56d=_0x44e197['map'](_0x5f03c7=>jt(_0x5f03c7,this['_model'])),_0x31e7f4=_0x8a6ee8['is'](_0x1099('0x135'))?_0x30e5e0:_0x30e5e0[_0x1099('0xd0')](_0x4aad50=>jt(_0x4aad50,this[_0x1099('0xa3')]));if(_0x1099('0x71')===this[_0x1099('0xa0')]){const _0x5e9388=this[_0x1099('0xae')][_0x1099('0x113')](_0x1099('0x7d'),_0x15d9e7,'accept');return this[_0x1099('0xfd')](()=>_0x5e9388(_0x31e7f4,_0xe201c2,_0x118ad2)),null;}_0x44c56d['push'](..._0x31e7f4);let _0x1f9918=!0x0;for(const _0x4a1f73 of _0x44c56d)if(!this[_0x1099('0x62')](_0x4a1f73)){_0x1f9918=!0x1;break;}if(_0x1f9918&&_0x1099('0x53')!==this[_0x1099('0xa0')]){const _0x41b08b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x15d9e7,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x41b08b(_0x31e7f4,_0xe201c2,_0x118ad2)),null;}const _0xe06005=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'];for(const _0x410e50 of this[_0x1099('0xf6')]()){if(_0x410e50[_0x1099('0x96')]['id']!=_0xe06005['id'])continue;if(_0x1099('0x7d')!=_0x410e50[_0x1099('0x1b')]||_0x410e50[_0x1099('0xd')]['formatGroupId']!=_0xe201c2[_0x1099('0x7e')])continue;if(!Ot(_0x410e50,_0x118ad2))continue;const _0x1e519a=_0x410e50[_0x1099('0xb0')]==_0x15d9e7;for(let _0x49816f=0x0;_0x49816f<_0x31e7f4[_0x1099('0x110')];_0x49816f++){const _0x55a827=_0x31e7f4[_0x49816f];for(const _0x1e833c of _0x410e50[_0x1099('0x125')]()){const _0x27fa72=_0x1e833c[_0x1099('0x4a')]();if(_0x55a827[_0x1099('0x9d')](_0x27fa72)){_0x1e519a?(_0x31e7f4[_0x1099('0x95')](_0x49816f,0x1),_0x49816f--):_0x410e50[_0x1099('0xc3')](_0x1e833c['name']);break;}}}}if(0x0==_0x31e7f4[_0x1099('0x110')])return null;const _0x4411e1=this[_0x1099('0xae')]['getSuggestionCallback']('formatBlock',_0x15d9e7,'join');for(const _0x3e9da6 of this[_0x1099('0xf6')]())if(_0x3e9da6[_0x1099('0x96')]['id']==_0xe06005['id']&&'formatBlock'==_0x3e9da6[_0x1099('0x1b')]&&_0x3e9da6['data'][_0x1099('0x7e')]==_0xe201c2[_0x1099('0x7e')]&&_0x3e9da6[_0x1099('0xb0')]==_0x15d9e7&&Ot(_0x3e9da6,_0x118ad2)&&(_0x4411e1(_0x3e9da6[_0x1099('0x3c')](),_0x31e7f4)||_0x4411e1(_0x31e7f4,_0x3e9da6[_0x1099('0x3c')]()))){for(const _0x5d20f3 of _0x31e7f4)_0x3e9da6['addRange'](_0x5d20f3);return _0x3e9da6;}const _0x1fa2e8=_0x308d28(),_0x4f760e=_0xe06005['id'],_0xd97fee=_0x1099('0x11d')+_0x15d9e7,_0x1225c9=this[_0x1099('0x8')]({'id':_0x1fa2e8,'type':_0xd97fee,'data':_0xe201c2,'createdAt':new Date(),'authorId':_0x4f760e,'attributes':_0x118ad2});for(const _0x4c0569 of _0x31e7f4)this[_0x1099('0xf4')](_0xd97fee,_0x1fa2e8,_0x4f760e,_0x4c0569,_0x2c5f77[_0x1099('0x52')]());return _0x1225c9;}[_0x1099('0x13b')](_0x28f476,_0x1c00b0=null,_0x2f14bb={}){if(_0x28f476[_0x1099('0x8d')])return null;const _0x4bc93c=this[_0x1099('0x1f')]['plugins'][_0x1099('0x36')]('Users')['me'],_0x48c7d3=new _0x582436(_0x28f476[_0x1099('0x31')],_0x28f476['end']);for(const {suggestion:_0x421918,meta:_0x1a7abe}of this[_0x1099('0x10e')](_0x48c7d3,_0x1099('0xed')))if(_0x1a7abe[_0x1099('0x12')]&&!_0x1a7abe[_0x1099('0x5d')]){if(_0x421918[_0x1099('0x20')]){const _0x285721=_0x421918[_0x1099('0x3c')]()[_0x1099('0xd4')](_0x1cc2e7=>'$graveyard'!=_0x1cc2e7[_0x1099('0xa8')][_0x1099('0xb')]);_0x285721[_0x1099('0x17')](_0x5c6a36=>_0x48c7d3[_0x1099('0x101')](_0x5c6a36,!0x0))&&_0x421918[_0x1099('0x33')]();if(_0x285721['some'](_0x14a107=>_0x14a107[_0x1099('0x101')](_0x48c7d3,!0x0))){const _0x426d0b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c00b0,'accept');return this[_0x1099('0xfd')](()=>_0x426d0b([_0x48c7d3],null,_0x2f14bb)),null;}}else{const _0x5b65da=_0x48c7d3[_0x1099('0xc8')](_0x421918[_0x1099('0xb7')]());null!==_0x5b65da&&_0x421918[_0x1099('0x114')]([_0x5b65da],null,_0x2f14bb);}}if(_0x48c7d3[_0x1099('0x5')](),_0x48c7d3[_0x1099('0x8d')]||'$graveyard'==_0x48c7d3['root']['rootName'])return null;let _0x4d298d=null,_0x3b83f7=_0x48c7d3[_0x1099('0x31')],_0x573480=_0x48c7d3[_0x1099('0x97')];const _0x2e8ea1=this[_0x1099('0x10e')](_0x48c7d3,_0x1099('0x13f'));for(const {suggestion:_0xca45be,meta:_0x1b17a2}of _0x2e8ea1){const _0x4a6d48=this['_model'][_0x1099('0xef')](_0x3b83f7,_0x573480);if(_0x1b17a2['isOwn']&&(this[_0x1099('0x117')]||!_0x1b17a2[_0x1099('0xd5')]&&!_0x1b17a2['isInsideObject'])){if(_0xca45be[_0x1099('0x20')]){if(!Ot(_0xca45be,_0x2f14bb))continue;let _0x139211=!0x0;for(const _0x4116d7 of _0xca45be[_0x1099('0x3c')]()){if(_0x4116d7[_0x1099('0x101')](_0x4a6d48,!0x0))return _0xca45be;_0x4a6d48['containsRange'](_0x4116d7)||(_0x139211=!0x1);}_0x139211&&_0xca45be[_0x1099('0x33')]();}else{const _0x101f0d=_0xca45be[_0x1099('0xb7')]();if(_0x101f0d['containsRange'](_0x4a6d48,!0x0))return _0xca45be;if(!Ot(_0xca45be,_0x2f14bb)){_0x4a6d48['containsRange'](_0x101f0d)?_0xca45be[_0x1099('0x13e')]():_0x101f0d[_0x1099('0x32')](_0x3b83f7)?_0x3b83f7=_0x101f0d[_0x1099('0x97')]:_0x101f0d['containsPosition'](_0x573480)&&(_0x573480=_0x101f0d[_0x1099('0x31')]);continue;}_0x3b83f7=_0x3b83f7[_0x1099('0x11c')](_0x101f0d[_0x1099('0x31')])?_0x3b83f7:_0x101f0d[_0x1099('0x31')],_0x573480=_0x573480['isAfter'](_0x101f0d[_0x1099('0x97')])?_0x573480:_0x101f0d[_0x1099('0x97')],_0x2f14bb=Object['assign']({},_0xca45be[_0x1099('0x104')]),_0x4d298d?_0x101f0d[_0x1099('0x31')][_0x1099('0x11c')](_0x4d298d[_0x1099('0xb7')]()[_0x1099('0x31')])?(_0x4d298d[_0x1099('0x13e')](),_0x4d298d=_0xca45be):_0xca45be['removeMarkers']():_0x4d298d=_0xca45be;}}}if(_0x4d298d)return this['_setSuggestionRange'](_0x4d298d,this['_model'][_0x1099('0xef')](_0x3b83f7,_0x573480)),_0x4d298d;{const _0x98790d=_0x308d28(),_0x3ccfb3=this[_0x1099('0xa3')][_0x1099('0xef')](_0x3b83f7,_0x573480),_0x4e95b6=_0x4bc93c['id'],_0x45b843=_0x1c00b0?_0x1099('0x10')+_0x1c00b0:_0x1099('0x13f'),_0x26db54=this[_0x1099('0x8')]({'id':_0x98790d,'type':_0x45b843,'createdAt':new Date(),'authorId':_0x4e95b6,'attributes':_0x2f14bb});return this[_0x1099('0xf4')](_0x45b843,_0x98790d,_0x4e95b6,_0x3ccfb3),_0x26db54;}}['markMultiRangeDeletion'](_0x594cdf,_0x2a8a6d='multi',_0x52a179={}){const _0x29d9a0=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9'))['me'],_0x49e6ac=_0x594cdf[_0x1099('0xd0')](_0x3d9ad1=>new _0x582436(_0x3d9ad1[_0x1099('0x31')],_0x3d9ad1[_0x1099('0x97')])),_0x5f5a25=new Set();for(const {suggestion:_0x53947a,meta:_0x23fcae}of this[_0x1099('0x10e')](_0x49e6ac,_0x1099('0xed')))_0x23fcae[_0x1099('0x12')]&&!_0x23fcae['isNextTo']&&_0x5f5a25['add'](_0x53947a);for(const _0x398fe0 of _0x5f5a25)if(_0x398fe0[_0x1099('0x20')]){const _0x1985d2=_0x398fe0[_0x1099('0x3c')]();(!_0x398fe0[_0x1099('0x104')]||!_0x398fe0['attributes'][_0x1099('0xf7')])&&(_0x1985d2[_0x1099('0x17')](_0x4ba33b=>_0x49e6ac[_0x1099('0x90')](_0x5d539d=>_0x5d539d['containsRange'](_0x4ba33b,!0x0)))&&_0x398fe0[_0x1099('0x33')]());if(_0x49e6ac[_0x1099('0x17')](_0xe0b42=>_0x1985d2[_0x1099('0x90')](_0x103908=>_0x103908[_0x1099('0x101')](_0xe0b42,!0x0)))){const _0x13bd91=this[_0x1099('0xae')][_0x1099('0x113')](_0x1099('0x13f'),_0x2a8a6d,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x13bd91(_0x594cdf,null,_0x52a179)),null;}}else{const _0x205678=_0x398fe0['getFirstRange']();_0x49e6ac['some'](_0x1eff88=>_0x1eff88[_0x1099('0x101')](_0x205678,!0x0))&&_0x398fe0[_0x1099('0x33')]();if(_0x49e6ac['every'](_0x3e9f5c=>_0x205678[_0x1099('0x101')](_0x3e9f5c,!0x0))){const _0x2a5154=this[_0x1099('0xae')][_0x1099('0x113')](_0x1099('0x13f'),_0x2a8a6d,_0x1099('0x107'));return this[_0x1099('0xfd')](()=>_0x2a5154(_0x49e6ac,null,_0x52a179)),null;}}const _0x1f1349=this[_0x1099('0xae')][_0x1099('0x113')]('deletion',_0x2a8a6d,_0x1099('0x89'));let _0x480f6c=null;for(const _0x3324ce of this[_0x1099('0xf6')]())if(_0x3324ce[_0x1099('0x96')]['id']==_0x29d9a0['id']&&_0x3324ce[_0x1099('0x4f')]&&_0x1099('0x13f')==_0x3324ce[_0x1099('0x1b')]&&_0x3324ce[_0x1099('0xb0')]==_0x2a8a6d&&Ot(_0x3324ce,_0x52a179)&&(_0x1f1349(_0x3324ce[_0x1099('0x3c')](),_0x49e6ac)||_0x1f1349(_0x49e6ac,_0x3324ce[_0x1099('0x3c')]()))){if(_0x480f6c){if(_0x3324ce['commentThread']&&_0x3324ce[_0x1099('0xb8')]['length'])continue;for(const _0x224c9d of _0x3324ce[_0x1099('0x3c')]())_0x480f6c[_0x1099('0xea')](_0x224c9d)||_0x480f6c[_0x1099('0x120')](_0x224c9d);_0x3324ce[_0x1099('0x13e')]();}else{_0x480f6c=_0x3324ce;for(const _0x3bf76f of _0x49e6ac)_0x3324ce[_0x1099('0xea')](_0x3bf76f)||_0x3324ce[_0x1099('0x120')](_0x3bf76f);}}if(_0x480f6c)return _0x480f6c;_0x5f5a25[_0x1099('0x1a')]();for(const {suggestion:_0x50768d,meta:_0x51332f}of this[_0x1099('0x10e')](_0x49e6ac,_0x1099('0x13f')))_0x51332f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x51332f[_0x1099('0xd5')]&&!_0x51332f[_0x1099('0x39')])&&Ot(_0x50768d,_0x52a179)&&_0x5f5a25[_0x1099('0x98')](_0x50768d);for(const _0x3f91de of _0x5f5a25){const _0x42bd8c=_0x3f91de[_0x1099('0x3c')]();if(!_0x52a179||!_0x52a179[_0x1099('0xf7')]){if(_0x49e6ac['every'](_0x5a583d=>_0x42bd8c['some'](_0x44ebfa=>_0x44ebfa['containsRange'](_0x5a583d,!0x0))))return _0x3f91de;}(!_0x3f91de['attributes']||!_0x3f91de[_0x1099('0x104')][_0x1099('0xf7')])&&(_0x42bd8c[_0x1099('0x17')](_0x18c552=>_0x49e6ac[_0x1099('0x90')](_0x5447b4=>_0x5447b4['containsRange'](_0x18c552,!0x0)))&&_0x3f91de[_0x1099('0x33')]());}const _0x5b5196=_0x308d28(),_0x22e162=_0x29d9a0['id'],_0x4a710d=_0x1099('0x10')+_0x2a8a6d,_0x73bb55=this['_setSuggestionData']({'id':_0x5b5196,'type':_0x4a710d,'createdAt':new Date(),'authorId':_0x22e162,'attributes':_0x52a179});for(const _0x58cc37 of _0x49e6ac)_0x58cc37['detach'](),_0x58cc37[_0x1099('0x8d')]||'$graveyard'==_0x58cc37['root'][_0x1099('0xb')]||this[_0x1099('0xf4')](_0x4a710d,_0x5b5196,_0x22e162,_0x58cc37,_0x2c5f77[_0x1099('0x52')]());return _0x73bb55;}[_0x1099('0xbc')](_0x12cb78,_0x113395){const _0x395928=_0x12cb78[_0x1099('0x132')]();this[_0x1099('0xa3')][_0x1099('0x49')](_0x5a11bc=>{_0x5a11bc[_0x1099('0x121')](_0x395928,{'range':_0x113395});});}['_addThreadToSuggestion'](_0x33c781){const _0x502abe=_0x33c781['id'],_0x14a96f=this[_0x1099('0x1f')][_0x1099('0xc0')]['get'](_0x1099('0xe3'));this[_0x1099('0x2e')][_0x1099('0x85')](_0x502abe)||this[_0x1099('0x2e')][_0x1099('0x15')]({'channelId':_0x14a96f,'threadId':_0x502abe,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x27a228=this[_0x1099('0x2e')][_0x1099('0x84')](_0x502abe);_0x27a228[_0x1099('0x5f')]('isRemovable'),_0x27a228[_0x1099('0x70')]=!0x1,_0x33c781[_0x1099('0xb8')]=_0x27a228;}[_0x1099('0x26')](_0x224117,_0x43ca10,_0x5c351a,_0x5b21d5){if(_0x224117[_0x1099('0x1b')]!=_0x43ca10||_0x224117[_0x1099('0xb0')]!=_0x5c351a||_0x224117[_0x1099('0x34')]['id']!=_0x5b21d5)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3ae20b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x22a087,_0x558135){const _0x39829d=_0x22a087['getFirstRange']();if(_0x558135[_0x1099('0x9d')](_0x39829d))_0x22a087[_0x1099('0x13e')]();else{if(_0x39829d[_0x1099('0x101')](_0x558135)){const _0xfe77a=this['_model'][_0x1099('0x4b')](_0x558135[_0x1099('0x31')][_0x1099('0x10f')],_0x1099('0x97'));this[_0x1099('0xbc')](_0x22a087,this['_model']['createRange'](_0x39829d[_0x1099('0x31')],_0xfe77a));const _0x594309=_0x308d28(),_0x5b2eeb=_0x22a087[_0x1099('0x34')]['id'],_0x263f20=_0x22a087[_0x1099('0x1b')]+':'+_0x22a087[_0x1099('0xb0')];this[_0x1099('0x8')]({'id':_0x594309,'type':_0x263f20,'createdAt':new Date(),'authorId':_0x5b2eeb,'data':_0x22a087[_0x1099('0xd')],'attributes':_0x22a087['attributes']});const _0x1ccdab=this[_0x1099('0xa3')][_0x1099('0x4b')](_0x558135[_0x1099('0x97')]['parent'],_0x1099('0x80')),_0x92470e=this[_0x1099('0xa3')][_0x1099('0xef')](_0x1ccdab,_0x39829d[_0x1099('0x97')]);this[_0x1099('0xf4')](_0x263f20,_0x594309,_0x5b2eeb,_0x92470e);}else{if(_0x39829d['containsPosition'](_0x558135[_0x1099('0x31')])){const _0x5eed7e=this['_model']['createPositionAt'](_0x558135['start'][_0x1099('0x10f')],_0x1099('0x97'));this[_0x1099('0xbc')](_0x22a087,this[_0x1099('0xa3')][_0x1099('0xef')](_0x39829d[_0x1099('0x31')],_0x5eed7e));}else{const _0x5cebb5=this[_0x1099('0xa3')]['createPositionAt'](_0x558135[_0x1099('0x97')][_0x1099('0x2c')],_0x1099('0x80'));this[_0x1099('0xbc')](_0x22a087,this[_0x1099('0xa3')][_0x1099('0xef')](_0x5cebb5,_0x39829d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1e4899){for(const {suggestion:_0x4c8756,meta:_0x2c2c1a}of this['_findSuggestions'](_0x1e4899,_0x1099('0xed'))){if(!_0x2c2c1a[_0x1099('0x12')])continue;const _0x5075f4=_0x4c8756[_0x1099('0x3c')]();for(const _0x469811 of _0x5075f4)if(!_0x1e4899['getDifference'](_0x469811)['length'])return!0x0;}return!0x1;}[_0x1099('0xa9')](_0x1eddec){const _0x4ba8b5=this['editor'][_0x1099('0xe8')]['get']('Users')['getUser'](_0x1eddec);if(!_0x4ba8b5)throw new _0x3ae20b('track-changes-user-not-found',this);return _0x4ba8b5;}['_getExternalAuthor'](_0x170891){const _0x115372=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0x9')),_0x3a55be=_0x51d38b(_0x1099('0x10c')+_0x170891),_0x11434b=_0x115372[_0x1099('0xa1')](_0x3a55be);return _0x11434b||_0x115372[_0x1099('0x7')]({'id':_0x3a55be,'name':_0x170891});}[_0x1099('0x27')](_0x5c6384,_0x45b93a,_0x31edfe,_0x5cc99e,_0x1b0b23){const _0xf1bde7=this[_0x1099('0xa9')](_0x5cc99e),_0x58c284=this[_0x1099('0xae')]['buildSuggestion'](_0x5c6384,_0x45b93a,_0x31edfe,_0xf1bde7,_0x1b0b23,_0x5716db=>this[_0x1099('0x83')](_0x31edfe,{'attributes':_0x5716db}));return this[_0x1099('0x66')](_0x58c284,_0x1099('0x107'),()=>{this[_0x1099('0x83')](_0x31edfe,{'state':_0x1099('0x67')});},{'priority':_0x1099('0xa7')}),this['listenTo'](_0x58c284,_0x1099('0x33'),()=>{this['_updateSuggestionData'](_0x31edfe,{'state':_0x1099('0x6d')});},{'priority':'high'}),this[_0x1099('0x63')][_0x1099('0x51')](_0x31edfe,_0x58c284),this[_0x1099('0xd8')][_0x1099('0x51')](_0x58c284,_0x1099('0xac')),_0x58c284;}['_splitMarkerName'](_0x2ab235){const _0x35f163=_0x2ab235[_0x1099('0x134')](':');return{'group':_0x35f163[0x0],'type':_0x35f163[0x1],'subType':_0x35f163[_0x1099('0x110')]>=0x5?_0x35f163[0x2]:null,'id':_0x35f163[_0x1099('0x110')]<0x5?_0x35f163[0x2]:_0x35f163[0x3],'authorId':_0x35f163[_0x1099('0x110')]<0x5?_0x35f163[0x3]:_0x35f163[0x4],'markerCount':0x6==_0x35f163[_0x1099('0x110')]?_0x35f163[0x5]:null};}[_0x1099('0x76')](_0x112f3e,_0x3c6fa7,_0x39e6b2){const _0x44f66e=_0x112f3e[_0x1099('0xb7')](),_0x597184=_0x44f66e[_0x1099('0x31')],_0x36e12c=_0x44f66e[_0x1099('0x97')];this[_0x1099('0xbc')](_0x112f3e,this[_0x1099('0xa3')][_0x1099('0xef')](_0x597184,_0x3c6fa7));const _0x2ce866=_0x308d28(),_0x453f1a=_0x112f3e[_0x1099('0x34')]['id'],_0x3fd4c1=_0x112f3e[_0x1099('0x1b')]+(_0x112f3e[_0x1099('0xb0')]?':'+_0x112f3e[_0x1099('0xb0')]:'');this[_0x1099('0x8')]({'id':_0x2ce866,'type':_0x3fd4c1,'createdAt':new Date(),'authorId':_0x453f1a,'originalSuggestionId':_0x112f3e['id'],'attributes':_0x112f3e[_0x1099('0x104')],'data':_0x112f3e[_0x1099('0xd')]}),_0x1099('0x7d')==_0x112f3e[_0x1099('0x1b')]&&(_0x39e6b2=this[_0x1099('0xa3')]['createPositionBefore'](_0x39e6b2['parent'])),this['_addSuggestionMarker'](_0x3fd4c1,_0x2ce866,_0x453f1a,this['_model'][_0x1099('0xef')](_0x39e6b2,_0x36e12c));}[_0x1099('0x10e')](_0x346d5e,_0x2ed3a0=null){const _0x221821=[],_0x5af8e0=this[_0x1099('0x1f')][_0x1099('0xe8')][_0x1099('0x36')]('Users')['me'];Array['isArray'](_0x346d5e)||(_0x346d5e=[_0x346d5e]);for(const _0x1f229f of this[_0x1099('0xf6')]()){if(!_0x1f229f[_0x1099('0x4f')])continue;if(_0x2ed3a0&&_0x1f229f['type']!=_0x2ed3a0)continue;let _0x32fe99=!0x1;for(const _0xfa4266 of _0x1f229f[_0x1099('0x3c')]()){for(const _0x50e7e1 of _0x346d5e){const _0x22c898=_0x50e7e1[_0x1099('0x31')]['isEqual'](_0xfa4266[_0x1099('0x97')])||_0x50e7e1[_0x1099('0x97')][_0x1099('0x9d')](_0xfa4266[_0x1099('0x31')]);if(_0x22c898||_0x50e7e1[_0x1099('0xc8')](_0xfa4266)){const _0x2f9714=_0x50e7e1[_0x1099('0x101')](_0xfa4266)&&_t(this[_0x1099('0xa3')][_0x1099('0x11e')],_0xfa4266['start'],_0x50e7e1),_0x328a1e=_0xfa4266[_0x1099('0x101')](_0x50e7e1)&&_t(this[_0x1099('0xa3')][_0x1099('0x11e')],_0x50e7e1[_0x1099('0x31')],_0xfa4266);_0x221821[_0x1099('0x106')]({'suggestion':_0x1f229f,'meta':{'isOwn':_0x5af8e0==_0x1f229f['author'],'isNextTo':_0x22c898,'isInsideObject':_0x2f9714,'containsRangeInObject':_0x328a1e}}),_0x32fe99=!0x0;break;}}if(_0x32fe99)break;}}return _0x221821;}['_addSuggestionMarker'](_0x1523c2,_0x1f7670,_0x259edd,_0x1ef299,_0x55e7eb){this[_0x1099('0xa3')][_0x1099('0x49')](_0x228dd8=>{let _0x11f0b2=_0x1099('0x13d')+_0x1523c2+':'+_0x1f7670+':'+_0x259edd;_0x55e7eb&&(_0x11f0b2=_0x11f0b2+':'+_0x55e7eb),_0x228dd8[_0x1099('0xee')](_0x11f0b2,{'range':_0x1ef299,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1099('0xce')](_0x4f9bff){const _0x4fb768=_0x4f9bff[_0x1099('0x3a')],_0x583442=_0x4f9bff[_0x1099('0xdf')];_0x4f9bff[_0x1099('0x3a')]=null,null!=_0x4fb768&&(_0x4fb768[_0x1099('0xdf')]=null),_0x4f9bff[_0x1099('0xdf')]=null,null!=_0x583442&&(_0x583442[_0x1099('0x3a')]=null),_0x1099('0xf5')==this[_0x1099('0xd8')][_0x1099('0x36')](_0x4f9bff)&&(this[_0x1099('0xd8')][_0x1099('0x51')](_0x4f9bff,'removed'),this[_0x1099('0xc1')](_0x1099('0x141'),_0x4f9bff,_0x4fb768,_0x583442));}[_0x1099('0x8')](_0x49536d){const _0xc323ab=_0x49536d['id'],_0x2ec1c2=this['addSuggestionData'](_0x49536d);if(this[_0x1099('0x12c')]&&this[_0x1099('0x12c')][_0x1099('0x129')]){const _0x2c0f70=this[_0x1099('0x1f')]['plugins'][_0x1099('0x36')](_0x1099('0xcd')),_0xefc558=_0x2ec1c2[_0x1099('0x133')],_0x444c49=_0x2ec1c2[_0x1099('0xb0')]?_0x2ec1c2['type']+':'+_0x2ec1c2['subType']:_0x2ec1c2['type'],_0x5ed3ce=this[_0x1099('0x1f')][_0x1099('0x54')],_0x552ec5=_0x2c0f70[_0x1099('0x98')](_0x6b0c5d(_0x5ed3ce,_0x1099('0xf0'))),_0x15153c={'id':_0xc323ab,'type':_0x444c49,'hasComments':_0xefc558,'data':_0x49536d[_0x1099('0xd')]||null,'originalSuggestionId':_0x49536d['originalSuggestionId']||null,'attributes':_0x2ec1c2[_0x1099('0x104')]};this[_0x1099('0x12c')][_0x1099('0x129')](_0x15153c)['then'](_0x1d4532=>{_0x2ec1c2[_0x1099('0x69')]=!0x0,_0x2c0f70['remove'](_0x552ec5),_0x1d4532&&_0x1d4532['createdAt']&&(this['_suggestions']['get'](_0xc323ab)[_0x1099('0x9a')]=_0x1d4532['createdAt']);})[_0x1099('0xfa')](_0x4d8fdf=>{throw _0x213ab2(_0x1099('0x10a')),this['editor'][_0x1099('0x6b')][_0x1099('0x45')]({'isUndoable':!0x1},()=>{_0x2ec1c2[_0x1099('0x33')]();}),_0x2ec1c2['stopListening'](),this[_0x1099('0x63')]['delete'](_0x2ec1c2['id']),this[_0x1099('0xd8')][_0x1099('0x8c')](_0x2ec1c2),_0x4d8fdf;});}return _0x2ec1c2;}[_0x1099('0x83')](_0x33dde7,_0x56fdd7){const _0x89f045=this['editor'][_0x1099('0xe8')][_0x1099('0x36')](_0x1099('0xcd')),_0x166abf=this[_0x1099('0xcf')](_0x33dde7);if(this['_adapter']&&this[_0x1099('0x12c')][_0x1099('0xdd')]){if(_0x166abf[_0x1099('0x69')]){const _0xde06f7=_0x89f045[_0x1099('0x98')](_0x6b0c5d(this[_0x1099('0x1f')][_0x1099('0x54')],_0x1099('0xf0')));this[_0x1099('0x12c')][_0x1099('0xdd')](_0x33dde7,_0x56fdd7)[_0x1099('0xfb')](()=>{_0x89f045[_0x1099('0x4e')](_0xde06f7);});}else _0x166abf['on'](_0x1099('0x5c'),()=>{this[_0x1099('0x83')](_0x33dde7,_0x56fdd7);});}}[_0x1099('0xf')](_0x1d5b87){if(!this['_adapter']||!this[_0x1099('0x12c')][_0x1099('0xcf')])throw new _0x3ae20b(_0x1099('0xc'),this);return this[_0x1099('0x12c')][_0x1099('0xcf')](_0x1d5b87);}['_handleNewSuggestionMarker'](_0x125a6b){const {id:_0x50de60,type:_0x181dc4,subType:_0x351e99,authorId:_0x5a0f69}=this[_0x1099('0x115')](_0x125a6b),_0x39bbe8=this['_suggestions'][_0x1099('0x36')](_0x50de60)||this[_0x1099('0x27')](_0x181dc4,_0x351e99,_0x50de60,_0x5a0f69,{});switch(this[_0x1099('0x26')](_0x39bbe8,_0x181dc4,_0x351e99,_0x5a0f69),this[_0x1099('0xd8')][_0x1099('0x36')](_0x39bbe8)){case _0x1099('0xac'):this[_0x1099('0xf')](_0x50de60)[_0x1099('0xfb')](_0xbcba88=>{let _0x55ceac=Promise['resolve']();_0xbcba88[_0x1099('0x133')]&&(_0x55ceac=this[_0x1099('0x2e')][_0x1099('0xe2')]({'channelId':this[_0x1099('0x1f')]['config'][_0x1099('0x36')](_0x1099('0xe3')),'threadId':_0x50de60})),_0x55ceac['then'](()=>{this[_0x1099('0x108')](_0xbcba88)['_saved']=!0x0;});}),this[_0x1099('0xd8')][_0x1099('0x51')](_0x39bbe8,_0x1099('0x2f'));break;case _0x1099('0xfe'):this[_0x1099('0x83')](_0x50de60,{'state':_0x1099('0x41')});case _0x1099('0x18'):this[_0x1099('0xd8')][_0x1099('0x51')](_0x39bbe8,_0x1099('0xf5')),this[_0x1099('0xc1')](_0x1099('0xff'),_0x39bbe8);break;case _0x1099('0xf5'):this[_0x1099('0xc1')](_0x1099('0x91'),_0x39bbe8);}return _0x39bbe8[_0x1099('0xb1')](_0x125a6b),_0x39bbe8;}['_refreshSuggestionsChain'](_0x5b4daa){const _0x645fce=Array[_0x1099('0x99')](_0x5b4daa)[_0x1099('0xd4')](_0x30998f=>!_0x30998f[_0x1099('0x20')]),_0x567a74=this[_0x1099('0xf6')]({'skipNotAttached':!0x0})[_0x1099('0xd4')](_0x583c89=>!_0x583c89[_0x1099('0x20')]),_0x24b70d=_0x567a74[_0x1099('0xd4')](_0x5be747=>!_0x5b4daa[_0x1099('0xdb')](_0x5be747)),_0x1bd30e=new Map(_0x567a74['map'](_0x397320=>[_0x397320,this[_0x1099('0xae')]['getSuggestionCallback'](_0x397320[_0x1099('0x1b')],_0x397320['subType'],_0x1099('0xd9'))])),_0x40f465=new Map(_0x567a74[_0x1099('0xd0')](_0x465d92=>[_0x465d92,_0x465d92[_0x1099('0xb7')]()])),_0x29fe30=new Set(),_0x5bebc7=new Set();for(let _0x374bba=0x0;_0x374bba<_0x645fce['length'];_0x374bba++)_0x1b2d80(_0x645fce[_0x374bba],_0x645fce,_0x374bba+0x1);for(let _0x92df3f=0x0;_0x92df3f<_0x645fce[_0x1099('0x110')];_0x92df3f++)_0x1b2d80(_0x645fce[_0x92df3f],_0x24b70d,0x0);for(let _0x100503=0x0;_0x100503<_0x645fce['length'];_0x100503++){const _0x1de6b2=_0x645fce[_0x100503];!_0x5bebc7[_0x1099('0xdb')](_0x1de6b2)&&_0x1de6b2[_0x1099('0x3a')]&&(_0x1de6b2[_0x1099('0x3a')][_0x1099('0xdf')]===_0x1de6b2&&(_0x1de6b2[_0x1099('0x3a')][_0x1099('0xdf')]=null),_0x1de6b2['previous']=null),!_0x29fe30[_0x1099('0xdb')](_0x1de6b2)&&_0x1de6b2[_0x1099('0xdf')]&&(_0x1de6b2[_0x1099('0xdf')]['previous']===_0x1de6b2&&(_0x1de6b2[_0x1099('0xdf')][_0x1099('0x3a')]=null),_0x1de6b2[_0x1099('0xdf')]=null);}function _0x1b2d80(_0x25963d,_0x387b52,_0xfa5c96){for(let _0x53c200=_0xfa5c96;_0x53c200<_0x387b52[_0x1099('0x110')];_0x53c200++){const _0x4400e3=_0x26abd5(_0x25963d,_0x387b52[_0x53c200]);_0x4400e3&&(_0x4400e3[0x0][_0x1099('0xdf')]=_0x4400e3[0x1],_0x4400e3[0x1]['previous']=_0x4400e3[0x0],_0x29fe30[_0x1099('0x98')](_0x4400e3[0x0]),_0x5bebc7['add'](_0x4400e3[0x1]));}}function _0x26abd5(_0x519616,_0x4d7151){if(_0x519616[_0x1099('0x96')]['id']!==_0x4d7151[_0x1099('0x96')]['id'])return null;const _0x4d4e53=_0x1bd30e[_0x1099('0x36')](_0x519616)(_0x519616,_0x4d7151,_0x40f465[_0x1099('0x36')](_0x519616),_0x40f465[_0x1099('0x36')](_0x4d7151));if(!_0x4d4e53)return null;return _0x1bd30e[_0x1099('0x36')](_0x4d7151)(_0x519616,_0x4d7151,_0x40f465[_0x1099('0x36')](_0x519616),_0x40f465[_0x1099('0x36')](_0x4d7151))?_0x4d4e53[0x1]['commentThread']&&_0x4d4e53[0x1]['commentThread'][_0x1099('0x110')]?null:_0x4d4e53:null;}}[_0x1099('0xf9')](_0x4fcb35){const _0x37f6bc=Array[_0x1099('0x99')](_0x4fcb35),_0x383170=this[_0x1099('0xf6')]({'skipNotAttached':!0x0}),_0x443834=_0x383170[_0x1099('0xd4')](_0x5666c9=>!_0x4fcb35['has'](_0x5666c9)),_0x5412e0=new Map(_0x37f6bc[_0x1099('0xd0')](_0x17183b=>[_0x17183b,this['_suggestionFactory'][_0x1099('0x113')](_0x17183b['type'],_0x17183b[_0x1099('0xb0')],_0x1099('0x89'))])),_0x8c3f3d=new Map(_0x383170[_0x1099('0xd0')](_0x1bcee1=>[_0x1bcee1,_0x1bcee1[_0x1099('0x3c')]()]));for(let _0x4c6f0f=0x0;_0x4c6f0f<_0x37f6bc['length'];_0x4c6f0f++){if(_0x4f7bd4(this,_0x37f6bc[_0x4c6f0f],_0x37f6bc,_0x4c6f0f+0x1))return!0x0;}for(let _0x5d3967=0x0;_0x5d3967<_0x37f6bc[_0x1099('0x110')];_0x5d3967++){if(_0x4f7bd4(this,_0x37f6bc[_0x5d3967],_0x443834,0x0))return!0x0;}return!0x1;function _0x4f7bd4(_0x5c39c6,_0xde49f3,_0x57abdf,_0x1e0033){for(let _0x41b53b=_0x1e0033;_0x41b53b<_0x57abdf['length'];_0x41b53b++){const _0x42ab25=_0x57abdf[_0x41b53b];if(_0x42ab25[_0x1099('0x1b')]!==_0xde49f3[_0x1099('0x1b')]||_0x42ab25[_0x1099('0x96')]['id']!==_0xde49f3[_0x1099('0x96')]['id']||_0x42ab25[_0x1099('0xb0')]!==_0xde49f3['subType'])continue;if(!Ut(_0xde49f3,_0x42ab25))continue;const _0x22a8c7=_0x5412e0[_0x1099('0x36')](_0xde49f3),_0x1ef37d=_0x8c3f3d['get'](_0xde49f3),_0xe58c1d=_0x8c3f3d[_0x1099('0x36')](_0x42ab25),_0x2e7546=_0xde49f3[_0x1099('0xb8')]&&_0xde49f3['commentThread'][_0x1099('0x110')],_0x812fd7=_0x42ab25[_0x1099('0xb8')]&&_0x42ab25[_0x1099('0xb8')][_0x1099('0x110')];if(!_0x2e7546&&_0x22a8c7(_0xe58c1d,_0x1ef37d))return _0x5c39c6['_joinSuggestions'](_0x42ab25,_0xde49f3),_0x8c3f3d[_0x1099('0x8c')](_0xde49f3),!0x0;if(!_0x812fd7&&_0x22a8c7(_0x1ef37d,_0xe58c1d))return _0x5c39c6['_joinSuggestions'](_0xde49f3,_0x42ab25),_0x8c3f3d['delete'](_0x42ab25),!0x0;}return!0x1;}}[_0x1099('0x24')](_0x40d6bf,_0x56e4e9){if(_0x40d6bf[_0x1099('0x20')])for(const _0x428fdf of _0x56e4e9[_0x1099('0x3c')]())_0x40d6bf[_0x1099('0x120')](_0x428fdf);else{const _0x30e5e6=_0x56e4e9['getFirstRange']()[_0x1099('0x97')];this[_0x1099('0xbc')](_0x40d6bf,this[_0x1099('0xa3')][_0x1099('0xef')](_0x40d6bf['getFirstRange']()['start'],_0x30e5e6));}_0x56e4e9['removeMarkers']();}}class Bt{constructor(_0x1aaca2){this[_0x1099('0xeb')]=_0x1aaca2,this[_0x1099('0xa3')]=_0x1aaca2[_0x1099('0x6b')],this[_0x1099('0x3d')]=new Map(),this[_0x1099('0x11b')]=new Map(),this['_registerDefaultCallbacks']();}[_0x1099('0xb9')](_0x557c69,_0x12e663,_0x3d62ac,_0x36db51,_0x3a99ce,_0x59c561){return new _0x2c5f77(this['_model'],{'type':_0x557c69,'subType':_0x12e663,'id':_0x3d62ac,'author':_0x36db51,'creator':_0x36db51,'attributes':_0x3a99ce,'onAttributesChange':_0x59c561,'onAccept':(..._0x4085a7)=>this['getSuggestionCallback'](_0x557c69,_0x12e663,_0x1099('0x107'))(..._0x4085a7),'onDiscard':(..._0x338e5d)=>this[_0x1099('0x113')](_0x557c69,_0x12e663,_0x1099('0x33'))(..._0x338e5d)});}['registerCustomCallback'](_0x4e94e5,_0x227193,_0x2da58d,_0x5b1dd4){const _0x4b5528=_0x4e94e5+':'+_0x227193+':'+_0x2da58d;this['_customCallbacks'][_0x1099('0x51')](_0x4b5528,_0x5b1dd4);}[_0x1099('0x113')](_0x5d8d5e,_0x3da223,_0x570130){const _0x1781f4=_0x5d8d5e+':'+_0x3da223+':'+_0x570130;return this['_customCallbacks'][_0x1099('0x36')](_0x1781f4)||this[_0x1099('0x11b')]['get'](_0x5d8d5e+':'+_0x570130);}['_registerDefaultCallbacks'](){const _0x44edb5=()=>!0x1,_0x11f77a=_0x579e09=>{_0x579e09[_0x1099('0x126')]((_0x1309bb,_0x1118ac)=>_0x1309bb[_0x1099('0x31')][_0x1099('0x11c')](_0x1118ac[_0x1099('0x31')])?0x1:-0x1),this[_0x1099('0xa3')][_0x1099('0x49')](_0x1f0c09=>{for(const _0x56d7fa of _0x579e09){let _0xa6be26;_0xa6be26=_0x56d7fa['end'][_0x1099('0xb5')]&&_0x56d7fa[_0x1099('0x97')][_0x1099('0x2c')]==_0x56d7fa[_0x1099('0x31')][_0x1099('0xf2')]?_0x1f0c09[_0x1099('0x82')](_0x56d7fa['start'][_0x1099('0xf2')],'on'):_0x1f0c09[_0x1099('0x82')](_0x56d7fa),this[_0x1099('0xa3')][_0x1099('0x2d')](_0xa6be26,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xd78582=(_0x2be835,_0x5592ed)=>{this[_0x1099('0xa3')][_0x1099('0x49')](_0x3fd921=>{const {commandName:_0x3be800,commandParams:_0xf4a5c4=[]}=_0x5592ed,_0x354a24=_0x2be835[_0x1099('0xd0')](_0x19c470=>(Mt(_0x19c470)&&(_0x19c470=this[_0x1099('0xa3')][_0x1099('0xef')](_0x19c470[_0x1099('0x97')])),_0x19c470))[_0x1099('0xd4')](_0x4ae607=>_0x1099('0x72')!==_0x4ae607['root'][_0x1099('0xb')]);if(_0x354a24[_0x1099('0x110')]<0x1)return;const _0x21d0bc=Array[_0x1099('0x99')](this['_model']['document']['selection'][_0x1099('0x3c')]())[_0x1099('0xd0')](_0x385d61=>_0x582436[_0x1099('0x2a')](_0x385d61));_0x3fd921[_0x1099('0x44')](_0x354a24);for(const _0x309c0b of this['_editor'][_0x1099('0xb2')][_0x1099('0xb2')]())_0x309c0b[_0x1099('0xab')]();_0xf4a5c4[_0x1099('0x106')]({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3be800,..._0xf4a5c4);const _0x2145f0=_0x21d0bc[_0x1099('0xd4')](_0x385fd9=>_0x1099('0x72')!=_0x385fd9[_0x1099('0xa8')][_0x1099('0xb')]);_0x2145f0[_0x1099('0x110')]>0x0&&_0x3fd921['setSelection'](_0x2145f0);for(const _0x2edae3 of _0x21d0bc)_0x2edae3[_0x1099('0x5')]();});},_0x3a4269=(_0x4a5582,_0x21da4f)=>0x1==_0x4a5582['length']&&0x1==_0x21da4f[_0x1099('0x110')]&&_0x4a5582[0x0]['end'][_0x1099('0x9d')](_0x21da4f[0x0]['start']),_0x1efb04=(_0x1c988e,_0x1503b7,_0x300475,_0x210a35)=>xt(_0x1c988e,_0x1503b7,_0x300475,_0x210a35,this['_model'])?[_0x1c988e,_0x1503b7]:xt(_0x1503b7,_0x1c988e,_0x210a35,_0x300475,this[_0x1099('0xa3')])?[_0x1503b7,_0x1c988e]:null;this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0x130'),_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')]('insertion:discard',_0x11f77a),this[_0x1099('0x11b')]['set'](_0x1099('0x5b'),_0x3a4269),this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0xc2'),_0x1efb04),this[_0x1099('0x11b')]['set'](_0x1099('0xa6'),_0x11f77a),this[_0x1099('0x11b')][_0x1099('0x51')]('deletion:discard',_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')]('deletion:join',_0x3a4269),this[_0x1099('0x11b')][_0x1099('0x51')](_0x1099('0xcb'),_0x1efb04),this[_0x1099('0x11b')]['set'](_0x1099('0x1'),_0xd78582),this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0x1c'),_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')](_0x1099('0x16'),_0x3a4269),this['_defaultCallbacks'][_0x1099('0x51')](_0x1099('0x21'),_0x44edb5),this[_0x1099('0x11b')][_0x1099('0x51')](_0x1099('0x5a'),_0xd78582),this['_defaultCallbacks']['set'](_0x1099('0x112'),_0x44edb5),this[_0x1099('0x11b')]['set'](_0x1099('0x4'),_0x3a4269),this['_defaultCallbacks']['set'](_0x1099('0xe4'),_0x44edb5);}}function _t(_0x28de76,_0x1ecb2a,_0xa575e3){for(const _0x4f92db of _0x1ecb2a[_0x1099('0x2c')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f92db[_0x1099('0xa8')]==_0x4f92db)return!0x1;if(!_0xa575e3[_0x1099('0x11f')](_0x4f92db))return!0x1;if(_0x28de76['isObject'](_0x4f92db)||_0x28de76[_0x1099('0xbb')](_0x4f92db))return!0x0;}return!0x1;}function Mt(_0x1f74f8){return _0x1f74f8[_0x1099('0x97')][_0x1099('0x2c')]==_0x1f74f8[_0x1099('0x31')][_0x1099('0xf2')]&&_0x1f74f8[_0x1099('0x97')]['isAtStart'];}function $t(_0x4ff728,_0x3d4843,_0x75a86d,_0x31dbbf){const _0x43b6d3=_0x49fdac=>!_0x49fdac[_0x1099('0x142')]['is'](_0x1099('0x9b'))&&!_0x31dbbf[_0x1099('0x94')](_0x49fdac[_0x1099('0x142')]),_0x1332c0=_0x4ff728[_0x1099('0x31')][_0x1099('0xf1')](_0x43b6d3),_0x33b3f3=_0x4ff728[_0x1099('0x97')]['getLastMatchingPosition'](_0x43b6d3,{'direction':_0x1099('0x140')});return(!_0x4ff728[_0x1099('0x31')]['isEqual'](_0x1332c0)||!_0x4ff728[_0x1099('0x97')]['isEqual'](_0x33b3f3))&&(_0x1332c0[_0x1099('0x11c')](_0x33b3f3)?_0x75a86d['updateMarker'](_0x3d4843,{'range':_0x75a86d[_0x1099('0xef')](_0x1332c0,_0x33b3f3)}):_0x75a86d[_0x1099('0xc3')](_0x3d4843),!0x0);}function Nt(_0x5ca9f9){return _0x51d38b(_0x5ca9f9);}function Rt(_0x4c19bf){const _0x450b13=_0x4c19bf[_0x1099('0x31')][_0x1099('0xf2')];return _0x450b13&&_0x450b13['is'](_0x1099('0xde'));}function jt(_0x2c2d7d,_0x4e0c1c){const _0x47bd55=_0x4e0c1c[_0x1099('0x11e')][_0x1099('0x94')](_0x2c2d7d)||_0x4e0c1c['schema']['isSelectable'](_0x2c2d7d);return _0x4e0c1c[_0x1099('0xef')](_0x4e0c1c[_0x1099('0x4b')](_0x2c2d7d,'before'),_0x47bd55?_0x4e0c1c[_0x1099('0x123')](_0x2c2d7d):_0x4e0c1c[_0x1099('0x4b')](_0x2c2d7d,'end'));}function xt(_0x5a7f13,_0x3591c4,_0x553d0f,_0x28518b,_0x16686f){if(!Ut(_0x5a7f13,_0x3591c4))return!0x1;if(_0x553d0f[_0x1099('0x97')]['isEqual'](_0x28518b[_0x1099('0x31')]))return!0x0;if(_0x5a7f13[_0x1099('0x1b')]!=_0x3591c4[_0x1099('0x1b')])return!0x1;if(!_0x553d0f[_0x1099('0x97')][_0x1099('0xb6')](_0x28518b[_0x1099('0x31')]))return!0x1;const _0x27ac39=_0x16686f[_0x1099('0xef')](_0x553d0f[_0x1099('0x97')],_0x28518b[_0x1099('0x31')])[_0x1099('0x2')]();for(const _0x33043a of _0x27ac39)if([_0x1099('0x4c'),_0x1099('0x128')]['includes'](_0x33043a[_0x1099('0x1b')])&&_0x16686f[_0x1099('0x11e')]['isLimit'](_0x33043a['item']))return!0x1;return!0x0;}function Ut(_0x28f908,_0x1cf4db){return!(!_0x28f908[_0x1099('0x9c')]||!_0x1cf4db[_0x1099('0x9c')])&&_0xa68f16(_0x28f908[_0x1099('0x104')],_0x1cf4db[_0x1099('0x104')]);}function Ot(_0x226d86,_0xb3e7c2){const _0x398677=Et(_0x226d86[_0x1099('0x104')]),_0x293bb8=Et(_0xb3e7c2);if(!_0x226d86['_isDataLoaded'])return!0x1;for(const _0x3bdb0f of Object[_0x1099('0x22')](_0x293bb8))if(!_0xa68f16(_0x398677[_0x3bdb0f],_0x293bb8[_0x3bdb0f]))return!0x1;return!0x0;}function Et(_0x4009c9){const _0x3bed17=Object[_0x1099('0xbe')]({},_0x4009c9);return delete _0x3bed17[_0x1099('0xf7')],delete _0x3bed17[_0x1099('0xaa')],_0x3bed17;}
|
|
23
|
+
const _0x1e9b=['getShiftedBy','previous','refresh','bindElementToMarker','trackChangesCommand','addMarkerName','TrackChangesEditing','formatInline','_addSuggestionMarker','markMultiRangeInsertion','isAfter','_joinWithAdjacentSuggestions','addComment','isTouching','acceptAllSuggestions','init','removeComment','next','markerToHighlight','addMarker:suggestion','dataReady','data','commandName','removeMarker','hasCommentThread','marker-count','deletion:','multi','includes','isRemovable','mapper','removeClass','setAttribute','update:suggestion','insert','element','markerName','trackChanges','createRange','remove','rootName','set','substr','_refreshSuggestionsChain','fromCharCode','howMany','then','containsRange','createPositionAfter','insertion:','execute','upcast','getNearestSelectionRange','fetchCommentThread','addClass','tablePasteChainId','_updateSuggestionData','start','editing','nodeBefore','track-changes-command-not-found','getItems','ready','_commentsRepository','formatInline:accept','isLocal','_model','registerCustomCallback','item','subType','track-changes-user-not-found','filter','consume','_cutOutSuggestionMarker','differ','newRange','detach','addRange','deletion:chain','consumable','config','_getSuggestionData','isOwn','_setSuggestionRange','moveTargetPosition','getRanges','isDocumentOperation','commentThread','_mergeNestedSuggestions','options','accepted','values','_isDataLoaded','enableReadOnlyMode','formatGroupId','attributes','trackChanges.mergeNestedSuggestions','change:activeMarkers','isLimit','PendingActions','isObject','ck-suggestion-marker-','deletion:join','get','forceDefaultExecution','registerPostFixer','_getAuthorFromId','discard','define','resolve','isUndo','batch','discardAllSuggestions','schema','sort','markerReady','delete','formatBlock','backward','formatBlock:join','addMarker:suggestion:formatBlock','removeMarkers','_adapter','notReady','group','head','getFirstRange','isMultiRange','clone','$marker','trackChanges.trackFormatChanges','writer','getMarkers','addSuggestionData','add','_removeSuggestion','_joinSuggestions','forward','isEqual','createSelection','getChanges','addCommentThread','_defaultCallbacks','isCollapsed','chain','deletion:accept','setSelection','rejected','deletion','type','_setSuggestionData','join','isInsideObject','PENDING_ACTION_SUGGESTION','highest','addSuggestion','root','acceptSuggestion','Users','never','showSuggestionHighlights','getSuggestions','enqueueChange','markDeletion','size','editingDowncast','_editor','selection','some','default','dataDowncast','removeAttribute','isIntersectingWithRange','formatBlock:','getUser','suggestionLoaded','activeMarkers','editor','isSelectable','formatInline:','markInsertion','_breakSuggestionMarker','isBlock','getCustomProperty','markerNameToElements','createRangeIn','high','getDifference','containsRangeInObject','getAttribute','position','getSuggestionCallback','containsPosition','isBefore','open','fromRange','listenTo','author','split','conversion','getCommentThread','markerToData','unbindElementFromMarkerName','addHighlight','insertContent','discardSuggestion','skipNestingCheck','_descriptionFactory','change:data','markers','_rangeIsInLocalUserInsertion','_customCallbacks','range','authoredAt','isInContent','always','change:_saved','change','parent','getFirstMarker','_suggestionState','@external','formatBlock:accept','ck-suggestion-marker','deleteContent','buildSuggestion','updateSuggestion','originalSuggestionId','_onDiscard','_registerDefaultCallbacks','getChangedMarkers','applyOperation','_enabledCommands','setTo','getIntersection','requires','ck-suggestion-marker--active','error-saving-suggestion-data-suggestion-discarded','_addThreadToSuggestion','markInlineFormat','elementEnd','toViewElement','addMarker','value','has','plugins','markMultiRangeBlockFormat','accept','updateMarker','map','multipleBlocks','collaboration.channelId','createPositionAt','elementStart','_handleNewSuggestionMarker','getLastMatchingPosition','_findSuggestions','model','locale','createElement','creator','_saved','_isForcedDefaultExecutionBlock','_suggestions','suggestion','fire','external:','unbind','isAtEnd','getAllAdjacentSuggestions','length','pluginName','formatInline:chain','getMultiRangeId','isArray','stop','from','elementToElement','createdAt','splitPosition','_createSuggestion','insertion:join','formatInline:join','_suggestionFactory','lowest','name','after','assign','for','hasComments','_trackFormatChanges','acceptSelectedSuggestions','isExternal','ck-suggestion-marker-formatBlock','formatBlock:chain','clear','stopListening','enableCommand','nodeAfter','removeMarker:suggestion:formatBlock','reconvertMarker','$graveyard','suggestionChanged','low','_checkSuggestionCorrectness','isNextTo','insertion:discard','getSuggestion','commands','push','track-changes-adapter-already-set','splice','document','_getExternalAuthor','oldRange','every','_splitMarkerName','track-changes-adapter-missing-getsuggestion','getAncestors','data-suggestion','CommentsRepository','end','insertion'];(function(_0x4a8597,_0x1e9b7b){const _0x2c67d9=function(_0x536943){while(--_0x536943){_0x4a8597['push'](_0x4a8597['shift']());}};_0x2c67d9(++_0x1e9b7b);}(_0x1e9b,0x19d));const _0x2c67=function(_0x4a8597,_0x1e9b7b){_0x4a8597=_0x4a8597-0x0;let _0x2c67d9=_0x1e9b[_0x4a8597];return _0x2c67d9;};import{Plugin as _0x3aae55,PendingActions as _0x307adb}from'ckeditor5/src/core';import{LiveRange as _0x2a689f}from'ckeditor5/src/engine';import{CKEditorError as _0x12916d,uid as _0x14b3c2,priorities as _0x41fd06,logWarning as _0x34eed0}from'ckeditor5/src/utils';import{toWidget as _0x23170e}from'ckeditor5/src/widget';import{Users as _0x27440e,hashObject as _0x26d881}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ad4ef from'./commands/trackchangescommand';import _0x37ca99 from'./commands/acceptsuggestioncommand';import _0x2e678f from'./commands/discardsuggestioncommand';import _0x8fd8 from'./commands/executeonallsuggestionscommand';import _0x5983b4 from'./commands/executeonselectedsuggestionscommand';import _0x368607 from'./suggestion';import _0x5077ed from'./suggestiondescriptionfactory';import _0x421534 from'./integrations/aiassistant';import _0x31f96b from'./integrations/alignment';import _0x382c09 from'./integrations/basicstyles';import _0x59fbac from'./integrations/blockquote';import _0x1687fd from'./integrations/ckbox';import _0x34ed8a from'./integrations/codeblock';import _0x2c0829 from'./integrations/comments';import _0x36ddb6 from'./integrations/deletecommand';import _0x15c5be from'./integrations/documentlist';import _0x40bde7 from'./integrations/entercommand';import _0x355ca6 from'./integrations/findandreplace';import _0x3e8fc0 from'./integrations/font';import _0x470a6b from'./integrations/formatpainter';import _0x419e69 from'./integrations/heading';import _0x56559b from'./integrations/highlight';import _0xa82cf5 from'./integrations/horizontalline';import _0x2e4e96 from'./integrations/htmlembed';import _0x3729c8 from'./integrations/image';import _0x283335 from'./integrations/imagereplace';import _0x547a0e from'./integrations/importword';import _0x17e56c from'./integrations/indent';import _0x224b9b from'./integrations/inputcommand';import _0x3b56d4 from'./integrations/link';import _0x631513 from'./integrations/list';import _0x5729a9 from'./integrations/listproperties';import _0x2efba4 from'./integrations/mediaembed';import _0x2a52f6 from'./integrations/mention';import _0x8402a0 from'./integrations/pagebreak';import _0x163ff6 from'./integrations/paragraph';import _0x5b8f58 from'./integrations/removeformat';import _0x363319 from'./integrations/restrictededitingmode';import _0x62e450 from'./integrations/shiftentercommand';import _0x5c23dd from'./integrations/standardeditingmode';import _0x5ec205 from'./integrations/style';import _0x2590f6 from'./integrations/table';import _0x2fc9d0 from'./integrations/tablemergesplit';import _0x222e10 from'./integrations/tableheadings';import _0x2a5d74 from'./integrations/tableclipboard';import _0x56df6d from'./integrations/tablecolumnresize';import _0x5e19b1 from'./integrations/template';import _0xe7a760 from'./integrations/tableofcontents';import _0x1f2a80 from'./integrations/title';import _0x1811ad from'./integrations/undo';import{getTranslation as _0x243cd0}from'./utils/common-translations';import _0x4c1868 from'./integrations/tablecaption';import _0x50f680 from'./integrations/documentlistproperties';import _0x58b798 from'./integrations/tableproperties';import{isEqual as _0x5960dc}from'lodash-es';export default class p extends _0x3aae55{static get[_0x2c67('0x91')](){return[_0x2c67('0xe6'),_0x27440e,_0x307adb,_0x421534,_0x31f96b,_0x382c09,_0x59fbac,_0x1687fd,_0x34ed8a,_0x2c0829,_0x36ddb6,_0x15c5be,_0x50f680,_0x40bde7,_0x355ca6,_0x3e8fc0,_0x470a6b,_0x419e69,_0x56559b,_0xa82cf5,_0x2e4e96,_0x3729c8,_0x283335,_0x547a0e,_0x17e56c,_0x224b9b,_0x3b56d4,_0x631513,_0x5729a9,_0x2efba4,_0x2a52f6,_0x8402a0,_0x163ff6,_0x5b8f58,_0x363319,_0x62e450,_0x5c23dd,_0x5ec205,_0x2590f6,_0x2fc9d0,_0x222e10,_0x4c1868,_0x2a5d74,_0x56df6d,_0xe7a760,_0x58b798,_0x5e19b1,_0x1f2a80,_0x1811ad];}static get[_0x2c67('0xb5')](){return _0x2c67('0xef');}constructor(_0x31d47c){function _0x1a6925(_0x34770b){return _0x34770b[_0x2c67('0x9f')](_0x42be93=>String[_0x2c67('0x115')](_0x42be93))[_0x2c67('0x3d')]('');}super(_0x31d47c),this[_0x2c67('0x112')](_0x2c67('0x56'),[]),this['on'](_0x2c67('0x7'),(_0x2f4ef5,_0x3101d4,_0xaf9642,_0xe6aef6)=>{this[_0x2c67('0x12b')][_0x2c67('0x7f')](()=>{for(const _0x51fd8c of[..._0xe6aef6,..._0xaf9642])this[_0x2c67('0x12b')][_0x2c67('0x77')][_0x2c67('0x9a')](_0x51fd8c)&&_0x31d47c[_0x2c67('0x123')][_0x2c67('0xd2')](_0x51fd8c);});}),this[_0x2c67('0x75')]=new _0x5077ed(this['editor']['model'][_0x2c67('0x17')],this[_0x2c67('0x57')]['locale']),this[_0x2c67('0x20')]=null,this[_0x2c67('0xc1')]=new Bt(this[_0x2c67('0x57')]),this['_suggestions']=new Map(),this[_0x2c67('0x128')]=_0x31d47c[_0x2c67('0x9b')]['get'](_0x2c67('0xe6')),this['_enabledCommands']=new Set(),this[_0x2c67('0x12b')]=this[_0x2c67('0x57')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2c67('0xac')]=!0x1,_0x31d47c[_0x2c67('0x139')][_0x2c67('0x12')](_0x2c67('0x28'),_0x2c67('0x4f')),this['_trackFormatChanges']=_0x31d47c['config'][_0x2c67('0xd')]('trackChanges.trackFormatChanges'),_0x31d47c[_0x2c67('0x139')][_0x2c67('0x12')](_0x2c67('0x6'),!0x0),this[_0x2c67('0x141')]=_0x31d47c[_0x2c67('0x139')][_0x2c67('0xd')]('trackChanges.mergeNestedSuggestions'),this[_0x2c67('0xed')]=new _0x5ad4ef(_0x31d47c,this[_0x2c67('0x8e')]),this[_0x1a6925([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1a6925([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x32]);}[_0x2c67('0xf8')](){const _0x2e35e1=this[_0x2c67('0x57')];_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x4b'))[_0x2c67('0xfb')]({'model':'suggestion','view':_0x5e7a39=>{const {id:_0x576a2a,type:_0x45ae56}=this['_splitMarkerName'](_0x5e7a39[_0x2c67('0x10d')]),_0x93478=[_0x2c67('0x85'),'ck-suggestion-marker-'+_0x45ae56];let _0x2aea62=0xbb8;return this[_0x2c67('0x56')][_0x2c67('0x105')](_0x5e7a39[_0x2c67('0x10d')])&&(_0x93478[_0x2c67('0xdb')]('ck-suggestion-marker--active'),_0x2aea62=0xbc2),'deletion'==_0x45ae56&&(_0x2aea62+=0x5),{'classes':_0x93478,'attributes':{'data-suggestion':_0x576a2a},'priority':_0x2aea62};}}),_0x2e35e1['conversion'][_0x2c67('0xc6')](_0x2c67('0x50'))[_0x2c67('0x2c')](_0x24baf7=>{_0x24baf7['on'](_0x2c67('0xfc'),(_0x35931f,_0x4cdb88,_0x3e898f)=>{if(!_0x3e898f[_0x2c67('0x142')][_0x2c67('0x46')])return;const _0x3a57a4=_0x4cdb88[_0x2c67('0x12d')];if(!_0x3a57a4)return;const _0x460cba=_0x3e898f['mapper'][_0x2c67('0x97')](_0x3a57a4);_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')]['isObject'](_0x3a57a4)&&_0x460cba&&!_0x460cba[_0x2c67('0x5d')]('widget')&&_0x460cba['is']('containerElement')&&_0x23170e(_0x460cba,_0x3e898f[_0x2c67('0x29')]);},{'priority':'high'});}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x50'))['markerToHighlight']({'model':_0x2c67('0xae'),'view':(_0x5b334f,_0xd6b8a8)=>{if(!_0xd6b8a8[_0x2c67('0x142')][_0x2c67('0x46')])return null;const {type:_0x55f9f6}=this[_0x2c67('0xe2')](_0x5b334f[_0x2c67('0x10d')]);return{'classes':[_0x2c67('0x85'),_0x2c67('0xb')+_0x55f9f6],'priority':0xbb8};}});const _0x4d2978=({showActiveMarkers:_0x69f34a=!0x0}={})=>(_0xfc9463,_0x506065,_0x262dc6)=>{if(!_0x506065[_0x2c67('0x12d')])return;if(_0x506065['item']['is'](_0x2c67('0x4d')))return void _0x262dc6[_0x2c67('0x138')][_0x2c67('0x131')](_0x506065['item'],_0xfc9463[_0x2c67('0xc3')]);const _0x539bdf=_0x262dc6[_0x2c67('0x107')]['toViewElement'](_0x506065['item']);if(!(_0x506065['item']['is'](_0x2c67('0x10c'))&&_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')][_0x2c67('0x5c')](_0x506065[_0x2c67('0x12d')])&&!_0x539bdf[_0x2c67('0x5d')](_0x2c67('0x71'))))return;const {id:_0x584d57}=this[_0x2c67('0xe2')](_0x506065[_0x2c67('0x10d')]);_0x262dc6[_0x2c67('0x29')]['addClass']([_0x2c67('0x85'),_0x2c67('0xcb')],_0x539bdf),_0x262dc6[_0x2c67('0x29')][_0x2c67('0x109')](_0x2c67('0xe5'),_0x584d57,_0x539bdf),_0x262dc6[_0x2c67('0x107')][_0x2c67('0xec')](_0x539bdf,_0x506065['markerName']),_0x69f34a&&(this[_0x2c67('0x56')][_0x2c67('0x105')](_0x506065[_0x2c67('0x10d')])?_0x262dc6['writer'][_0x2c67('0x11f')](_0x2c67('0x92'),_0x539bdf):_0x262dc6[_0x2c67('0x29')][_0x2c67('0x108')](_0x2c67('0x92'),_0x539bdf));for(const _0x74422 of _0x2e35e1['model'][_0x2c67('0x5f')](_0x506065[_0x2c67('0x12d')])[_0x2c67('0x126')]())_0x262dc6[_0x2c67('0x138')][_0x2c67('0x131')](_0x74422,_0xfc9463[_0x2c67('0xc3')]);_0x262dc6['consumable'][_0x2c67('0x131')](_0x506065[_0x2c67('0x12d')],_0xfc9463[_0x2c67('0xc3')]);};_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('dataDowncast')['add'](_0x4e479a=>{_0x4e479a['on'](_0x2c67('0x1e'),(_0x39d33a,_0x272cae,_0x3c2a35)=>{_0x3c2a35[_0x2c67('0x142')][_0x2c67('0x46')]&&_0x4d2978({'showActiveMarkers':!0x1})(_0x39d33a,_0x272cae,_0x3c2a35);},{'priority':_0x2c67('0x40')});}),_0x2e35e1['conversion'][_0x2c67('0xc6')](_0x2c67('0x50'))[_0x2c67('0x6f')]({'model':_0x2c67('0xae'),'view':(_0x57aed6,_0x4aaf0c)=>_0x4aaf0c[_0x2c67('0x142')][_0x2c67('0x46')]?null:{'group':_0x2c67('0xae'),'name':_0x57aed6[_0x2c67('0x113')](0xb)}}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('upcast')[_0x2c67('0xbb')]({'view':{'name':_0x2c67('0xae'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5baf44,{writer:_0x21c037})=>{let _0x4fb193='suggestion:'+_0x5baf44['getAttribute']('suggestion-type')+':'+_0x5baf44[_0x2c67('0x63')]('id');return _0x5baf44[_0x2c67('0x63')](_0x2c67('0x102'))&&(_0x4fb193+=':'+_0x5baf44[_0x2c67('0x63')](_0x2c67('0x102'))),_0x21c037[_0x2c67('0xa9')](_0x2c67('0x27'),{'data-name':_0x4fb193});}}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x11c'))['dataToMarker']({'view':_0x2c67('0xae')}),_0x2e35e1['conversion'][_0x2c67('0xc6')]('editingDowncast')[_0x2c67('0x2c')](_0x1f23eb=>{_0x1f23eb['on']('addMarker:suggestion:formatBlock',_0x4d2978(),{'priority':_0x2c67('0x60')});}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('editingDowncast')[_0x2c67('0x2c')](_0x2587c5=>{_0x2587c5['on'](_0x2c67('0xd1'),(_0xf3a6,_0xa998a,_0xddf438)=>{const _0x4df9e1=_0xddf438['mapper'][_0x2c67('0x5e')](_0xa998a[_0x2c67('0x10d')]);if(_0x4df9e1)for(const _0x5d7c07 of _0x4df9e1)_0x5d7c07[_0x2c67('0x5d')](_0x2c67('0x71'))||(_0xddf438[_0x2c67('0x29')]['removeClass']([_0x2c67('0x85'),_0x2c67('0xcb'),_0x2c67('0x92')],_0x5d7c07),_0xddf438[_0x2c67('0x29')][_0x2c67('0x51')](_0x2c67('0xe5'),_0x5d7c07),_0xddf438[_0x2c67('0x107')][_0x2c67('0x70')](_0x5d7c07,_0xa998a[_0x2c67('0x10d')]));},{'priority':_0x2c67('0x60')});}),_0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0xf')](_0x3306c9=>{let _0x418cf9=!0x1;const _0x60c433=Array['from'](_0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0x133')][_0x2c67('0x8c')]()),_0x65b2d2=new Set();for(const {name:_0x5b4375,data:_0x45dc16}of _0x60c433){const {group:_0x5e5c4a,type:_0x47e1dd,id:_0x3fdb8f}=this[_0x2c67('0xe2')](_0x5b4375);if(_0x2c67('0xae')!==_0x5e5c4a)continue;const _0x12f8e8=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x3fdb8f);if(null!=_0x45dc16['newRange']){_0x2c67('0xf0')==_0x47e1dd&&(_0x418cf9=_0x418cf9||$t(_0x45dc16[_0x2c67('0x134')],_0x5b4375,_0x3306c9,_0x2e35e1['model'][_0x2c67('0x17')]));if(_0x45dc16[_0x2c67('0x134')][_0x2c67('0x35')]||'$graveyard'==_0x45dc16['newRange'][_0x2c67('0x42')][_0x2c67('0x111')]||'formatBlock'==_0x47e1dd&&!Rt(_0x45dc16['newRange'])||_0x2c67('0x3a')==_0x47e1dd&&!(!Mt(_0x53b926=_0x45dc16[_0x2c67('0x134')])&&!function(_0x46229e){return _0x46229e[_0x2c67('0x122')][_0x2c67('0x80')]==_0x46229e['end'][_0x2c67('0x124')]&&_0x46229e['start'][_0x2c67('0xb2')];}(_0x53b926)))_0x3306c9[_0x2c67('0x100')](_0x5b4375),_0x418cf9=!0x0;else{if(!_0x12f8e8||!_0x12f8e8[_0x2c67('0x7c')])continue;_0x65b2d2['add'](_0x12f8e8);}}}var _0x53b926;return _0x65b2d2[_0x2c67('0x4a')]>0x0&&(_0x418cf9=!!this[_0x2c67('0xf4')](_0x65b2d2)||_0x418cf9),_0x418cf9;}),_0x2e35e1['model']['document']['registerPostFixer'](_0x36dbfa=>{let _0x381149=!0x1;for(const _0x184e05 of _0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0x133')][_0x2c67('0x32')]()){if(_0x2c67('0x10b')!=_0x184e05[_0x2c67('0x3b')])continue;const _0x1cddb3=_0x184e05[_0x2c67('0x64')]['getShiftedBy'](_0x184e05['length']);if(_0x1cddb3[_0x2c67('0xb2')])for(const _0x9321d4 of this[_0x2c67('0xad')][_0x2c67('0x1')]()){if(_0x9321d4[_0x2c67('0x25')]||!_0x9321d4[_0x2c67('0x7c')])continue;if('formatBlock'!=_0x9321d4[_0x2c67('0x3b')])continue;const _0x295064=_0x9321d4[_0x2c67('0x24')]();if(_0x295064[_0x2c67('0x122')][_0x2c67('0x80')]!=_0x295064['end'][_0x2c67('0x80')]&&_0x295064['end'][_0x2c67('0x30')](_0x184e05['position'])){const _0x4ad1ea=_0x2e35e1[_0x2c67('0xa7')]['createRange'](_0x295064[_0x2c67('0x122')],_0x1cddb3);_0x36dbfa[_0x2c67('0x9e')](_0x9321d4['getFirstMarker'](),{'range':_0x4ad1ea}),_0x381149=!0x0;}}}return _0x381149;}),_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x77')]['on'](_0x2c67('0x10a'),(_0x2930c6,_0x446d3c,_0x1c407c)=>{if(null==_0x1c407c){const {id:_0x5bdd1d}=this[_0x2c67('0xe2')](_0x446d3c['name']),_0x5903f2=this['_suggestions']['get'](_0x5bdd1d);_0x5903f2&&_0x5903f2[_0x2c67('0xee')](_0x446d3c[_0x2c67('0xc3')]);}}),_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xde')]['on'](_0x2c67('0x76'),()=>{const _0x7cf65=Array[_0x2c67('0xba')](_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xde')][_0x2c67('0x133')][_0x2c67('0x8c')]())[_0x2c67('0x130')](_0x52d2f7=>'suggestion'===this[_0x2c67('0xe2')](_0x52d2f7[_0x2c67('0xc3')])[_0x2c67('0x22')]);if(0x0===_0x7cf65[_0x2c67('0xb4')])return;_0x7cf65['sort']((_0x6a8c98,_0x329299)=>{const _0x430c46=_0x6a8c98[_0x2c67('0xfe')][_0x2c67('0xe0')],_0x5e582a=_0x329299[_0x2c67('0xfe')][_0x2c67('0xe0')];return null===_0x430c46&&null===_0x5e582a?0x0:null===_0x430c46&&null!==_0x5e582a?-0x1:null!==_0x430c46&&null===_0x5e582a?0x1:_0x430c46[_0x2c67('0x122')][_0x2c67('0x67')](_0x5e582a['start'])?-0x1:0x1;});const _0x38e6e6=new Set(),_0x38c110=new Set();for(const {name:_0x3f1324,data:_0x466981}of _0x7cf65){const {id:_0x21bece}=this[_0x2c67('0xe2')](_0x3f1324);if(null===_0x466981[_0x2c67('0xe0')]){const _0x42c4dc=this[_0x2c67('0xa4')](_0x3f1324);_0x38c110[_0x2c67('0x2c')](_0x42c4dc);}else{const _0x45333d=this['_suggestions'][_0x2c67('0xd')](_0x21bece);null!==_0x466981[_0x2c67('0x134')]||_0x45333d[_0x2c67('0x7c')]?(_0x38e6e6['add'](_0x45333d[_0x2c67('0x23')]),_0x38c110['add'](_0x45333d)):this[_0x2c67('0x2d')](_0x45333d);}}_0x38c110[_0x2c67('0x4a')]>0x0&&this[_0x2c67('0x114')](_0x38c110);for(const _0x3d3c9d of _0x38e6e6)this[_0x2c67('0xaf')](_0x2c67('0xd4'),_0x3d3c9d);}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x8d'),(_0x343fb9,_0x27fb6d)=>{const _0x52f7f8=_0x27fb6d[0x0];if(!this[_0x2c67('0xad')]['size'])return;if(!_0x52f7f8[_0x2c67('0x13f')])return;if(_0x52f7f8['batch'][_0x2c67('0x14')]||!_0x52f7f8[_0x2c67('0x15')][_0x2c67('0x12a')])return;let _0x3fc03c,_0xd4e2ab;switch(_0x52f7f8[_0x2c67('0x3b')]){case _0x2c67('0x10b'):_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0x64')]),_0xd4e2ab=_0x3fc03c[_0x2c67('0xe9')](_0x52f7f8[_0x2c67('0x116')]);break;case _0x2c67('0x6c'):_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0xbd')]),_0xd4e2ab=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0x13d')]);break;case'move':_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')]['createPositionAt'](_0x52f7f8['targetPosition']),_0xd4e2ab=_0x3fc03c[_0x2c67('0xe9')](_0x52f7f8[_0x2c67('0x116')]);break;default:return;}const _0x3d835a=_0x2e35e1[_0x2c67('0xa7')]['createRange'](_0x3fc03c,_0xd4e2ab);_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const {suggestion:_0x43d62a,meta:_0x4cf6e9}of this[_0x2c67('0xa6')](_0x3d835a)){if(_0x43d62a[_0x2c67('0x25')])continue;if('formatInline'==_0x43d62a[_0x2c67('0x3b')])continue;const _0x5b4d0a=_0x43d62a[_0x2c67('0xfe')]&&_0x43d62a[_0x2c67('0xfe')][_0x2c67('0xa0')];('formatBlock'!=_0x43d62a[_0x2c67('0x3b')]||_0x2c67('0x6c')==_0x52f7f8[_0x2c67('0x3b')]&&!_0x5b4d0a)&&(_0x4cf6e9[_0x2c67('0x62')]||_0x2c67('0xe8')==_0x43d62a['type']&&_0x4cf6e9[_0x2c67('0x13b')]||_0x43d62a[_0x2c67('0x24')]()['containsRange'](_0x3d835a)&&this[_0x2c67('0x5b')](_0x43d62a,_0x3fc03c,_0xd4e2ab));}});},{'priority':_0x2c67('0xc2')}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x86'),(_0x523459,_0x368b03)=>{const _0x41dbc1=_0x368b03[0x0],_0x4543a4=_0x368b03[0x1];if(_0x4543a4&&_0x4543a4[_0x2c67('0xe')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x2c67('0xed')]['value'])return;if(_0x41dbc1[_0x2c67('0x35')])return;const _0x574b75=_0x2e35e1[_0x2c67('0xa7')]['schema'],{start:_0xd823a7,end:_0x54c021}=_0x41dbc1[_0x2c67('0x24')](),_0x5c80f0=_0xd823a7['nodeAfter']&&_0x574b75[_0x2c67('0x8')](_0xd823a7[_0x2c67('0xd0')])?null:_0x574b75[_0x2c67('0x11d')](_0xd823a7,_0x2c67('0x2f')),_0x4b985e=_0x54c021[_0x2c67('0x124')]&&_0x574b75['isLimit'](_0x54c021[_0x2c67('0x124')])?null:_0x574b75['getNearestSelectionRange'](_0x54c021,_0x2c67('0x1c')),_0x2b409e=_0x2e35e1['model'][_0x2c67('0x10f')](_0x5c80f0?_0x5c80f0[_0x2c67('0x122')]:_0xd823a7,_0x4b985e?_0x4b985e[_0x2c67('0xe7')]:_0x54c021);_0x2e35e1['model'][_0x2c67('0x7f')](_0xee82b1=>{this[_0x2c67('0x49')](_0x2b409e);const _0x15feec=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')][_0x2c67('0x11d')](_0x2b409e['start']);_0x41dbc1['is']('documentSelection')?_0xee82b1[_0x2c67('0x38')](_0x15feec):_0x41dbc1[_0x2c67('0x8f')](_0x15feec);}),_0x523459['stop']();},{'priority':_0x41fd06['normal']+0xa}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x72'),(_0x4cdb39,_0x5a4ce5)=>{const _0x355738=_0x5a4ce5[_0x5a4ce5['length']-0x1];_0x355738&&_0x355738[_0x2c67('0xe')]||this['_isForcedDefaultExecutionBlock']||this[_0x2c67('0xed')][_0x2c67('0x99')]&&(_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{let _0x46c38f=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x72')](_0x5a4ce5[0x0],_0x5a4ce5[0x1],_0x5a4ce5[0x2],{'forceDefaultExecution':!0x0});if(!_0x46c38f)return;_0x4cdb39['return']=_0x46c38f[_0x2c67('0x26')]();const _0x35b0ee=_0x46c38f[_0x2c67('0xe7')][_0x2c67('0x124')],_0x1bd3f9=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')];_0x35b0ee&&_0x1bd3f9[_0x2c67('0x5c')](_0x35b0ee)&&!_0x1bd3f9[_0x2c67('0xa')](_0x35b0ee)&&(_0x46c38f=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x10f')](_0x46c38f[_0x2c67('0x122')],_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x35b0ee,_0x2c67('0xe7')))),this[_0x2c67('0x5a')](_0x46c38f);}),_0x4cdb39[_0x2c67('0xb9')]());},{'priority':_0x2c67('0x60')}),this[_0x2c67('0x57')]['commands'][_0x2c67('0x2c')]('trackChanges',this[_0x2c67('0xed')]),this['enableCommand'](_0x2c67('0x10e'));const _0x38e133=new _0x37ca99(_0x2e35e1,this[_0x2c67('0xad')]);_0x2e35e1[_0x2c67('0xda')]['add']('acceptSuggestion',_0x38e133),this[_0x2c67('0xcf')](_0x2c67('0x43'));const _0x4b8dc6=new _0x2e678f(_0x2e35e1,this[_0x2c67('0xad')]);_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')](_0x2c67('0x73'),_0x4b8dc6),this[_0x2c67('0xcf')](_0x2c67('0x73')),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')](_0x2c67('0xf7'),new _0x8fd8(_0x2e35e1,_0x38e133,this['_suggestions'])),this[_0x2c67('0xcf')]('acceptAllSuggestions'),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')]('discardAllSuggestions',new _0x8fd8(_0x2e35e1,_0x4b8dc6,this[_0x2c67('0xad')])),this['enableCommand'](_0x2c67('0x16')),_0x2e35e1['commands']['add'](_0x2c67('0xc9'),new _0x5983b4(_0x2e35e1,_0x38e133,this[_0x2c67('0xad')])),this[_0x2c67('0xcf')](_0x2c67('0xc9')),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')]('discardSelectedSuggestions',new _0x5983b4(_0x2e35e1,_0x4b8dc6,this[_0x2c67('0xad')])),this[_0x2c67('0xcf')]('discardSelectedSuggestions');const _0x1ceaff=_0x2e35e1[_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0xe6'));this[_0x2c67('0x6a')](_0x1ceaff,_0x2c67('0xf5'),(_0x29e976,{threadId:_0x4115b7})=>{const _0x4db7e5=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x4115b7);_0x4db7e5&&_0x4db7e5['commentThread']&&0x1===_0x4db7e5[_0x2c67('0x140')]['length']&&this['_updateSuggestionData'](_0x4115b7,{'hasComments':!0x0});},{'priority':_0x2c67('0xd5')}),this['listenTo'](_0x1ceaff,_0x2c67('0xf9'),(_0x149428,{threadId:_0x3d83de})=>{const _0x297574=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x3d83de);_0x297574&&_0x297574[_0x2c67('0x140')]&&!_0x297574['commentThread'][_0x2c67('0xb4')]&&this[_0x2c67('0x121')](_0x3d83de,{'hasComments':!0x1});},{'priority':_0x2c67('0xd5')});}set['adapter'](_0x105d6b){if(this[_0x2c67('0x20')])throw new _0x12916d(_0x2c67('0xdc'),this);this[_0x2c67('0x20')]=_0x105d6b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x107610=!0x1,toJSON:_0x2876b5=!0x1}={}){const _0x51ea94=[];for(const _0x36dec8 of this[_0x2c67('0xad')]['values']())_0x107610&&!_0x36dec8[_0x2c67('0x7c')]||_0x51ea94[_0x2c67('0xdb')](_0x36dec8);return _0x2876b5?_0x51ea94[_0x2c67('0x9f')](_0x50d650=>_0x50d650['toJSON']()):_0x51ea94;}[_0x2c67('0xd9')](_0x1b9b1d){const _0x178b32=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x1b9b1d);if(!_0x178b32)throw new _0x12916d('track-changes-suggestion-not-found',this);return _0x178b32;}['hasSuggestion'](_0x1a11b9){return this[_0x2c67('0xad')][_0x2c67('0x9a')](_0x1a11b9);}['addSuggestionData'](_0x2520ee){const {authorId:_0x4b1d83,id:_0xcba6c2,attributes:_0xaa172a}=_0x2520ee,[_0x4be77e,_0x403592]=_0x2520ee[_0x2c67('0x3b')][_0x2c67('0x6c')](':'),_0x3e9815=this[_0x2c67('0xad')][_0x2c67('0xd')](_0xcba6c2)||this[_0x2c67('0xbe')](_0x4be77e,_0x403592,_0xcba6c2,_0x4b1d83,_0xaa172a);if(this[_0x2c67('0x94')](_0x3e9815),this[_0x2c67('0xd6')](_0x3e9815,_0x4be77e,_0x403592||null,_0x4b1d83),_0x3e9815['createdAt']=_0x2520ee[_0x2c67('0xbc')],_0x3e9815[_0x2c67('0x2')]=!0x0,_0xaa172a&&_0xaa172a[_0x2c67('0x83')]){const _0x4d4ff0=_0xaa172a['@external'],_0x262173=this['_getExternalAuthor'](_0x4d4ff0['authorName']);_0x3e9815[_0x2c67('0x7b')]=_0x4d4ff0['createdAt'],_0x3e9815[_0x2c67('0x6b')]=_0x262173,_0x3e9815[_0x2c67('0xca')]=!0x0;}else _0x3e9815[_0x2c67('0x7b')]=_0x2520ee[_0x2c67('0xbc')];switch(_0x2520ee[_0x2c67('0xfe')]&&(_0x3e9815[_0x2c67('0xfe')]=_0x2520ee[_0x2c67('0xfe')]),_0x2520ee['attributes']&&(_0x3e9815[_0x2c67('0x5')]=_0x2520ee['attributes']),this[_0x2c67('0x20')]&&this[_0x2c67('0x20')]['addSuggestion']||(_0x3e9815[_0x2c67('0xab')]=!0x0),this[_0x2c67('0x82')][_0x2c67('0xd')](_0x3e9815)){case'notReady':this[_0x2c67('0x82')][_0x2c67('0x112')](_0x3e9815,'dataReady');break;case _0x2c67('0x19'):_0x3e9815[_0x2c67('0x7c')]?(this[_0x2c67('0x114')](new Set([_0x3e9815])),this['_joinWithAdjacentSuggestions'](new Set([_0x3e9815])),this[_0x2c67('0x82')]['set'](_0x3e9815,'ready'),this['fire'](_0x2c67('0x55'),_0x3e9815)):this[_0x2c67('0x82')][_0x2c67('0x112')](_0x3e9815,'removed');}return _0x3e9815;}[_0x2c67('0x43')](_0x2529d6){this[_0x2c67('0xe')](()=>{this[_0x2c67('0x57')][_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const _0x326b58 of _0x2529d6[_0x2c67('0xb3')]())_0x326b58[_0x2c67('0x9d')]();});});}[_0x2c67('0x73')](_0x8855dd){this[_0x2c67('0xe')](()=>{this[_0x2c67('0x57')][_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const _0x11c123 of _0x8855dd[_0x2c67('0xb3')]())_0x11c123[_0x2c67('0x11')]();});});}['enableCommand'](_0x558cb6,_0xed5299){const _0x52c573=this[_0x2c67('0x57')][_0x2c67('0xda')][_0x2c67('0xd')](_0x558cb6);if(!_0x52c573)throw new _0x12916d(_0x2c67('0x125'),this,{'commandName':_0x558cb6});this['_enabledCommands'][_0x2c67('0x2c')](_0x52c573),_0xed5299&&_0x52c573['on'](_0x2c67('0x11b'),(_0x198b55,_0x5886fd)=>{this[_0x2c67('0xed')][_0x2c67('0x99')]&&(this[_0x2c67('0xac')]||_0x5886fd[_0x2c67('0xb4')]>0x0&&_0x5886fd[_0x5886fd[_0x2c67('0xb4')]-0x1]&&_0x5886fd[_0x5886fd[_0x2c67('0xb4')]-0x1][_0x2c67('0xe')]||(_0x198b55['return']=_0xed5299((..._0x37088b)=>_0x52c573['execute'](..._0x37088b,{'forceDefaultExecution':!0x0}),..._0x5886fd),_0x198b55[_0x2c67('0xb9')]()));},{'priority':_0x2c67('0x60')});}['forceDefaultExecution'](_0x227f37){let _0x682a45,_0x247e31;const _0x1c3f56=this[_0x2c67('0xac')];this[_0x2c67('0xac')]=!0x0;try{_0x682a45=_0x227f37();}catch(_0x5de538){_0x247e31=_0x5de538;}return _0x1c3f56||(this[_0x2c67('0xac')]=!0x1),_0x247e31&&_0x12916d['rethrowUnexpectedError'](_0x247e31,this),_0x682a45;}[_0x2c67('0x5a')](_0x43ba0c,_0x1e3e48=null,_0x1cda64={}){if(_0x43ba0c[_0x2c67('0x35')])return null;const _0xae5ddb=this[_0x2c67('0x57')]['plugins'][_0x2c67('0xd')]('Users')['me'];for(const {suggestion:_0x397567,meta:_0x12e7f2}of this[_0x2c67('0xa6')](_0x43ba0c,_0x2c67('0xe8')))if(_0x12e7f2[_0x2c67('0x13b')]){if(!_0x12e7f2[_0x2c67('0xd7')]){if(_0x12e7f2['containsRangeInObject']){if(!this[_0x2c67('0x141')]||!Ot(_0x397567,_0x1cda64))continue;return _0x397567;}if(Ot(_0x397567,_0x1cda64))return _0x397567;this['_breakSuggestionMarker'](_0x397567,_0x43ba0c['start'],_0x43ba0c[_0x2c67('0xe7')]);break;}if(_0x1e3e48==_0x397567['subType']&&Ot(_0x397567,_0x1cda64)){const _0x8d52be=_0x397567[_0x2c67('0x24')]();return _0x8d52be[_0x2c67('0x122')][_0x2c67('0x30')](_0x43ba0c['end'])?this[_0x2c67('0x13c')](_0x397567,this['_model'][_0x2c67('0x10f')](_0x43ba0c[_0x2c67('0x122')],_0x8d52be[_0x2c67('0xe7')])):this[_0x2c67('0x13c')](_0x397567,this[_0x2c67('0x12b')]['createRange'](_0x8d52be[_0x2c67('0x122')],_0x43ba0c['end'])),_0x397567;}}const _0x21fa62=_0x14b3c2(),_0xae02ef=_0xae5ddb['id'],_0x3a867a=_0x1e3e48?_0x2c67('0x11a')+_0x1e3e48:_0x2c67('0xe8'),_0x4dae1d=this['_setSuggestionData']({'id':_0x21fa62,'type':_0x3a867a,'createdAt':new Date(),'authorId':_0xae02ef,'attributes':_0x1cda64});return this[_0x2c67('0xf1')](_0x3a867a,_0x21fa62,_0xae02ef,_0x43ba0c),_0x4dae1d;}[_0x2c67('0xf2')](_0x1d82a0,_0xebbff6=_0x2c67('0x104'),_0x201025={}){const _0xa5be83=this[_0x2c67('0x57')][_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0x44'))['me'],_0x100469=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0xe8'),_0xebbff6,_0x2c67('0x3d'));for(const _0x44ead9 of this[_0x2c67('0x47')]())if(_0x44ead9[_0x2c67('0x6b')]['id']==_0xa5be83['id']&&'insertion'==_0x44ead9[_0x2c67('0x3b')]&&_0x44ead9[_0x2c67('0x12e')]==_0xebbff6&&Ot(_0x44ead9,_0x201025)&&(_0x100469(_0x44ead9[_0x2c67('0x13e')](),_0x1d82a0)||_0x100469(_0x1d82a0,_0x44ead9[_0x2c67('0x13e')]()))){for(const _0x5b2553 of _0x1d82a0)_0x44ead9[_0x2c67('0x136')](_0x5b2553);return _0x44ead9;}for(const {suggestion:_0x202ff7,meta:_0x4dddfb}of this[_0x2c67('0xa6')](_0x1d82a0,'insertion')){if(!_0x4dddfb['isOwn'])continue;if(!this[_0x2c67('0x141')]&&_0x4dddfb['containsRangeInObject'])continue;if(!Ot(_0x202ff7,_0x201025))continue;let _0x557734=!0x0;for(const _0x425c57 of _0x202ff7['getRanges']())for(const _0x2af66c of _0x1d82a0)if(!_0x425c57[_0x2c67('0x118')](_0x2af66c)){_0x557734=!0x1;break;}if(_0x557734)return _0x202ff7;}const _0x2c91b2=_0x14b3c2(),_0x3e86a4=_0xa5be83['id'],_0x53bdb5='insertion:'+_0xebbff6,_0x390451=this[_0x2c67('0x3c')]({'id':_0x2c91b2,'type':_0x53bdb5,'createdAt':new Date(),'authorId':_0x3e86a4,'attributes':_0x201025});for(const _0x548ca8 of _0x1d82a0)this[_0x2c67('0xf1')](_0x53bdb5,_0x2c91b2,_0x3e86a4,_0x548ca8,_0x368607['getMultiRangeId']());return _0x390451;}[_0x2c67('0x95')](_0x49697a,_0x434517,_0x5158ec=null,_0x3fe7eb={}){if(_0x5158ec=_0x5158ec||Nt(_0x434517),_0x49697a[_0x2c67('0x35')])return null;if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x5b0834=this[_0x2c67('0xc1')]['getSuggestionCallback']('formatInline',_0x5158ec,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x5b0834([_0x49697a],_0x434517,_0x3fe7eb)),null;}const _0x140c97=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'],_0x265b54=[];if(_0x2c67('0x7d')!==this['_trackFormatChanges'])for(const {suggestion:_0x2c19a7,meta:_0x171c7a}of this[_0x2c67('0xa6')](_0x49697a,_0x2c67('0xe8')))_0x171c7a[_0x2c67('0x13b')]&&!_0x171c7a['isInsideObject']&&_0x265b54[_0x2c67('0xdb')](..._0x2c19a7['getRanges']());const _0x9ea269=function(_0x52262c,_0x5b7159){const _0x52b49f=[];for(const _0x336a94 of _0x5b7159){const _0x3b7d0a=_0x52262c[_0x2c67('0x90')](_0x336a94);_0x3b7d0a&&_0x52b49f['push'](_0x3b7d0a);}return _0x52b49f;}(_0x49697a,_0x265b54),_0x4d066d=function(_0x220be1,_0x2fc881){const _0x27b7fb=[_0x220be1];for(const _0x28ee14 of _0x2fc881){let _0x544e2b=0x0;for(;_0x544e2b<_0x27b7fb[_0x2c67('0xb4')];){const _0x253b37=_0x27b7fb[_0x544e2b][_0x2c67('0x61')](_0x28ee14);_0x27b7fb[_0x2c67('0xdd')](_0x544e2b,0x1,..._0x253b37),_0x544e2b+=_0x253b37[_0x2c67('0xb4')];}}return _0x27b7fb;}(_0x49697a,_0x265b54);_0x9ea269['length']&&this[_0x2c67('0x12b')][_0x2c67('0x7f')](()=>{for(const _0x5122d1 of _0x9ea269){const _0x429ffb=this['_suggestionFactory']['getSuggestionCallback'](_0x2c67('0xf0'),_0x5158ec,'accept');this[_0x2c67('0xe')](()=>_0x429ffb([_0x5122d1],_0x434517,_0x3fe7eb));}});for(const _0x2adf99 of _0x4d066d){let _0x3d93a1=null,_0x33bbe2=_0x2adf99[_0x2c67('0x122')],_0x461cbe=_0x2adf99['end'];for(const {suggestion:_0xf9ad05,meta:_0x89753a}of this[_0x2c67('0xa6')](_0x2adf99,_0x2c67('0xf0'))){if(!_0x89753a[_0x2c67('0x13b')])continue;if(_0xf9ad05['subType']!=_0x5158ec)continue;if(!Ot(_0xf9ad05,_0x3fe7eb))continue;const _0x990c30=_0xf9ad05['getFirstRange']();if(_0x990c30['containsRange'](_0x2adf99,!0x0))return null;_0x33bbe2=_0x33bbe2[_0x2c67('0x67')](_0x990c30['start'])?_0x33bbe2:_0x990c30['start'],_0x461cbe=_0x461cbe[_0x2c67('0xf3')](_0x990c30[_0x2c67('0xe7')])?_0x461cbe:_0x990c30[_0x2c67('0xe7')],_0x3d93a1?_0x990c30['start'][_0x2c67('0x67')](_0x3d93a1[_0x2c67('0x24')]()[_0x2c67('0x122')])?(_0x3d93a1[_0x2c67('0x1f')](),_0x3d93a1=_0xf9ad05):_0xf9ad05[_0x2c67('0x1f')]():_0x3d93a1=_0xf9ad05;}const _0x132c02=this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x33bbe2,_0x461cbe);if(_0x3d93a1)this[_0x2c67('0x13c')](_0x3d93a1,_0x132c02);else{const _0x285d5c=_0x14b3c2(),_0x330627=_0x140c97['id'];this[_0x2c67('0x3c')]({'id':_0x285d5c,'type':_0x2c67('0x59')+_0x5158ec,'data':_0x434517,'createdAt':new Date(),'authorId':_0x330627,'attributes':_0x3fe7eb}),this[_0x2c67('0xf1')](_0x2c67('0x59')+_0x5158ec,_0x285d5c,_0x330627,_0x132c02);}}return null;}['markBlockFormat'](_0x579461,_0x4b842c,_0x3004ad=[],_0x6377cb=null,_0x3e872a={}){_0x4b842c[_0x2c67('0x4')]||(_0x4b842c[_0x2c67('0x4')]=_0x4b842c['commandName']),_0x4b842c[_0x2c67('0xa0')]=_0x579461['is'](_0x2c67('0x7a')),_0x6377cb=_0x6377cb||Nt(_0x4b842c);const _0x2a12fa=_0x3004ad[_0x2c67('0x9f')](_0xba290d=>jt(_0xba290d,this[_0x2c67('0x12b')])),_0x1442b6=_0x579461['is']('range')?_0x579461:jt(_0x579461,this[_0x2c67('0x12b')]);if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x3c7ac0=this[_0x2c67('0xc1')]['getSuggestionCallback'](_0x2c67('0x1b'),_0x6377cb,_0x2c67('0x9d'));return this['forceDefaultExecution'](()=>_0x3c7ac0([_0x1442b6],_0x4b842c,_0x3e872a)),null;}_0x2a12fa['push'](_0x1442b6);let _0x1a5da3=!0x0;for(const _0x37a3e7 of _0x2a12fa)if(!this['_rangeIsInLocalUserInsertion'](_0x37a3e7)){_0x1a5da3=!0x1;break;}if(_0x1a5da3&&_0x2c67('0x7d')!==this[_0x2c67('0xc8')]){const _0x303921=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x1b'),_0x6377cb,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x303921([_0x1442b6],_0x4b842c,_0x3e872a)),null;}let _0x560074=null,_0x40322d=_0x1442b6[_0x2c67('0x122')],_0x1cb8f4=_0x1442b6[_0x2c67('0xe7')];for(const {suggestion:_0x366725,meta:_0x193e44}of this[_0x2c67('0xa6')](_0x1442b6,_0x2c67('0x1b'))){if(!_0x193e44[_0x2c67('0x13b')])continue;if(_0x193e44[_0x2c67('0xd7')]||_0x193e44[_0x2c67('0x62')]||_0x193e44['isInsideObject'])continue;if(_0x366725[_0x2c67('0xfe')]['formatGroupId']!=_0x4b842c[_0x2c67('0x4')])continue;if(!Ot(_0x366725,_0x3e872a))continue;const _0x535f9f=_0x366725[_0x2c67('0x24')]();if(_0x366725[_0x2c67('0x12e')]==_0x6377cb){if(_0x535f9f[_0x2c67('0x118')](_0x1442b6,!0x0))return null;_0x40322d=_0x40322d[_0x2c67('0x67')](_0x535f9f['start'])?_0x40322d:_0x535f9f['start'],_0x1cb8f4=_0x1cb8f4[_0x2c67('0xf3')](_0x535f9f[_0x2c67('0xe7')])?_0x1cb8f4:_0x535f9f[_0x2c67('0xe7')],_0x560074?_0x535f9f[_0x2c67('0x122')][_0x2c67('0x67')](_0x560074['getFirstRange']()[_0x2c67('0x122')])?(_0x560074[_0x2c67('0x1f')](),_0x560074=_0x366725):_0x366725[_0x2c67('0x1f')]():_0x560074=_0x366725;}else{const _0x438262=_0x1442b6[_0x2c67('0x90')](_0x535f9f);this[_0x2c67('0x132')](_0x366725,_0x438262);}}const _0x557f6c=this[_0x2c67('0x57')]['plugins']['get'](_0x2c67('0x44'))['me'],_0x1856f7=_0x14b3c2(),_0x46f408=_0x557f6c['id'];if(_0x560074)return this[_0x2c67('0x13c')](_0x560074,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x40322d,_0x1cb8f4)),_0x560074;{const _0x4fa710=this[_0x2c67('0x3c')]({'id':_0x1856f7,'type':'formatBlock:'+_0x6377cb,'data':_0x4b842c,'createdAt':new Date(),'authorId':_0x46f408,'attributes':_0x3e872a});return this['_addSuggestionMarker'](_0x2c67('0x53')+_0x6377cb,_0x1856f7,_0x46f408,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x40322d,_0x1cb8f4)),_0x4fa710;}}[_0x2c67('0x9c')](_0x31ac20,_0x40dd3b,_0x2f5873=[],_0xd85339=null,_0x3c6bcd={}){_0x40dd3b['formatGroupId']||(_0x40dd3b[_0x2c67('0x4')]=_0x40dd3b[_0x2c67('0xff')]);const _0x31139c=_0x31ac20[0x0];_0x40dd3b[_0x2c67('0xa0')]=_0x31139c['is']('range'),_0xd85339=_0xd85339||Nt(_0x40dd3b);const _0x570394=_0x2f5873[_0x2c67('0x9f')](_0x3cdf54=>jt(_0x3cdf54,this[_0x2c67('0x12b')])),_0xcb5480=_0x31139c['is']('range')?_0x31ac20:_0x31ac20[_0x2c67('0x9f')](_0x1805fa=>jt(_0x1805fa,this[_0x2c67('0x12b')]));if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x18b03a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd85339,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x18b03a(_0xcb5480,_0x40dd3b,_0x3c6bcd)),null;}_0x570394[_0x2c67('0xdb')](..._0xcb5480);let _0x48dbd9=!0x0;for(const _0x56ee43 of _0x570394)if(!this['_rangeIsInLocalUserInsertion'](_0x56ee43)){_0x48dbd9=!0x1;break;}if(_0x48dbd9&&_0x2c67('0x7d')!==this[_0x2c67('0xc8')]){const _0x1a9d67=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x1b'),_0xd85339,_0x2c67('0x9d'));return this['forceDefaultExecution'](()=>_0x1a9d67(_0xcb5480,_0x40dd3b,_0x3c6bcd)),null;}const _0x144181=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'];for(const _0x1cc35d of this['getSuggestions']()){if(_0x1cc35d[_0x2c67('0x6b')]['id']!=_0x144181['id'])continue;if('formatBlock'!=_0x1cc35d['type']||_0x1cc35d[_0x2c67('0xfe')][_0x2c67('0x4')]!=_0x40dd3b[_0x2c67('0x4')])continue;if(!Ot(_0x1cc35d,_0x3c6bcd))continue;const _0x3c68de=_0x1cc35d['subType']==_0xd85339;for(let _0x28481e=0x0;_0x28481e<_0xcb5480[_0x2c67('0xb4')];_0x28481e++){const _0x4fa39a=_0xcb5480[_0x28481e];for(const _0x4482f1 of _0x1cc35d[_0x2c67('0x2a')]()){const _0x2915d1=_0x4482f1['getRange']();if(_0x4fa39a[_0x2c67('0x30')](_0x2915d1)){_0x3c68de?(_0xcb5480[_0x2c67('0xdd')](_0x28481e,0x1),_0x28481e--):_0x1cc35d[_0x2c67('0x100')](_0x4482f1['name']);break;}}}}if(0x0==_0xcb5480[_0x2c67('0xb4')])return null;const _0x387063=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x1b'),_0xd85339,'join');for(const _0xccb967 of this[_0x2c67('0x47')]())if(_0xccb967['author']['id']==_0x144181['id']&&_0x2c67('0x1b')==_0xccb967[_0x2c67('0x3b')]&&_0xccb967[_0x2c67('0xfe')][_0x2c67('0x4')]==_0x40dd3b[_0x2c67('0x4')]&&_0xccb967['subType']==_0xd85339&&Ot(_0xccb967,_0x3c6bcd)&&(_0x387063(_0xccb967[_0x2c67('0x13e')](),_0xcb5480)||_0x387063(_0xcb5480,_0xccb967[_0x2c67('0x13e')]()))){for(const _0x3c5031 of _0xcb5480)_0xccb967[_0x2c67('0x136')](_0x3c5031);return _0xccb967;}const _0x58c7e0=_0x14b3c2(),_0x4aa7cb=_0x144181['id'],_0x5736dd=_0x2c67('0x53')+_0xd85339,_0xdbf4a5=this[_0x2c67('0x3c')]({'id':_0x58c7e0,'type':_0x5736dd,'data':_0x40dd3b,'createdAt':new Date(),'authorId':_0x4aa7cb,'attributes':_0x3c6bcd});for(const _0xf8cd5b of _0xcb5480)this['_addSuggestionMarker'](_0x5736dd,_0x58c7e0,_0x4aa7cb,_0xf8cd5b,_0x368607[_0x2c67('0xb7')]());return _0xdbf4a5;}['markDeletion'](_0x5c7f0e,_0x556165=null,_0x281c8b={}){if(_0x5c7f0e[_0x2c67('0x35')])return null;const _0x4cf962=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')['me'],_0x4f939d=new _0x2a689f(_0x5c7f0e['start'],_0x5c7f0e['end']);for(const {suggestion:_0x178438,meta:_0x5dbc48}of this[_0x2c67('0xa6')](_0x4f939d,_0x2c67('0xe8')))if(_0x5dbc48[_0x2c67('0x13b')]&&!_0x5dbc48[_0x2c67('0xd7')]){if(_0x178438['isMultiRange']){const _0x421a26=_0x178438[_0x2c67('0x13e')]()[_0x2c67('0x130')](_0x4c4ddf=>_0x2c67('0xd3')!=_0x4c4ddf[_0x2c67('0x42')][_0x2c67('0x111')]);_0x421a26[_0x2c67('0xe1')](_0x77b50a=>_0x4f939d[_0x2c67('0x118')](_0x77b50a,!0x0))&&_0x178438[_0x2c67('0x11')]();if(_0x421a26[_0x2c67('0x4e')](_0x102fab=>_0x102fab[_0x2c67('0x118')](_0x4f939d,!0x0))){const _0x3186e0=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x3a'),_0x556165,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x3186e0([_0x4f939d],null,_0x281c8b)),null;}}else{const _0x14e74e=_0x4f939d[_0x2c67('0x90')](_0x178438[_0x2c67('0x24')]());null!==_0x14e74e&&_0x178438[_0x2c67('0x8a')]([_0x14e74e],null,_0x281c8b);}}if(_0x4f939d[_0x2c67('0x135')](),_0x4f939d[_0x2c67('0x35')]||_0x2c67('0xd3')==_0x4f939d[_0x2c67('0x42')][_0x2c67('0x111')])return null;let _0x107b3e=null,_0x53332a=_0x4f939d[_0x2c67('0x122')],_0x2c3060=_0x4f939d[_0x2c67('0xe7')];const _0x303efe=this[_0x2c67('0xa6')](_0x4f939d,_0x2c67('0x3a'));for(const {suggestion:_0x51faeb,meta:_0x1d40cb}of _0x303efe){const _0x41cce3=this['_model']['createRange'](_0x53332a,_0x2c3060);if(_0x1d40cb[_0x2c67('0x13b')]&&(this[_0x2c67('0x141')]||!_0x1d40cb[_0x2c67('0x62')]&&!_0x1d40cb[_0x2c67('0x3e')])){if(_0x51faeb['isMultiRange']){if(!Ot(_0x51faeb,_0x281c8b))continue;let _0x1949ab=!0x0;for(const _0x2e9652 of _0x51faeb[_0x2c67('0x13e')]()){if(_0x2e9652[_0x2c67('0x118')](_0x41cce3,!0x0))return _0x51faeb;_0x41cce3[_0x2c67('0x118')](_0x2e9652)||(_0x1949ab=!0x1);}_0x1949ab&&_0x51faeb[_0x2c67('0x11')]();}else{const _0x48a02b=_0x51faeb[_0x2c67('0x24')]();if(_0x48a02b[_0x2c67('0x118')](_0x41cce3,!0x0))return _0x51faeb;if(!Ot(_0x51faeb,_0x281c8b)){_0x41cce3[_0x2c67('0x118')](_0x48a02b)?_0x51faeb[_0x2c67('0x1f')]():_0x48a02b[_0x2c67('0x66')](_0x53332a)?_0x53332a=_0x48a02b[_0x2c67('0xe7')]:_0x48a02b[_0x2c67('0x66')](_0x2c3060)&&(_0x2c3060=_0x48a02b[_0x2c67('0x122')]);continue;}_0x53332a=_0x53332a[_0x2c67('0x67')](_0x48a02b[_0x2c67('0x122')])?_0x53332a:_0x48a02b[_0x2c67('0x122')],_0x2c3060=_0x2c3060[_0x2c67('0xf3')](_0x48a02b[_0x2c67('0xe7')])?_0x2c3060:_0x48a02b[_0x2c67('0xe7')],_0x281c8b=Object[_0x2c67('0xc5')]({},_0x51faeb['attributes']),_0x107b3e?_0x48a02b[_0x2c67('0x122')][_0x2c67('0x67')](_0x107b3e[_0x2c67('0x24')]()[_0x2c67('0x122')])?(_0x107b3e[_0x2c67('0x1f')](),_0x107b3e=_0x51faeb):_0x51faeb[_0x2c67('0x1f')]():_0x107b3e=_0x51faeb;}}}if(_0x107b3e)return this[_0x2c67('0x13c')](_0x107b3e,this[_0x2c67('0x12b')]['createRange'](_0x53332a,_0x2c3060)),_0x107b3e;{const _0x184573=_0x14b3c2(),_0x551749=this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x53332a,_0x2c3060),_0x126073=_0x4cf962['id'],_0x3bcfc9=_0x556165?_0x2c67('0x103')+_0x556165:'deletion',_0x1384fa=this['_setSuggestionData']({'id':_0x184573,'type':_0x3bcfc9,'createdAt':new Date(),'authorId':_0x126073,'attributes':_0x281c8b});return this[_0x2c67('0xf1')](_0x3bcfc9,_0x184573,_0x126073,_0x551749),_0x1384fa;}}['markMultiRangeDeletion'](_0x3c589c,_0x34406c=_0x2c67('0x104'),_0x50ba1c={}){const _0x46c7fd=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')['me'],_0x5a9353=_0x3c589c['map'](_0x25a476=>new _0x2a689f(_0x25a476[_0x2c67('0x122')],_0x25a476[_0x2c67('0xe7')])),_0x513260=new Set();for(const {suggestion:_0xe1875e,meta:_0x3b061c}of this[_0x2c67('0xa6')](_0x5a9353,_0x2c67('0xe8')))_0x3b061c[_0x2c67('0x13b')]&&!_0x3b061c[_0x2c67('0xd7')]&&_0x513260[_0x2c67('0x2c')](_0xe1875e);for(const _0x3f443c of _0x513260)if(_0x3f443c[_0x2c67('0x25')]){const _0x449ecc=_0x3f443c[_0x2c67('0x13e')]();(!_0x3f443c['attributes']||!_0x3f443c['attributes']['skipNestingCheck'])&&(_0x449ecc[_0x2c67('0xe1')](_0x510b28=>_0x5a9353[_0x2c67('0x4e')](_0x1ccce9=>_0x1ccce9['containsRange'](_0x510b28,!0x0)))&&_0x3f443c['discard']());if(_0x5a9353[_0x2c67('0xe1')](_0x1d7c63=>_0x449ecc[_0x2c67('0x4e')](_0x3fa2be=>_0x3fa2be[_0x2c67('0x118')](_0x1d7c63,!0x0)))){const _0x5ee53d=this['_suggestionFactory']['getSuggestionCallback'](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x5ee53d(_0x3c589c,null,_0x50ba1c)),null;}}else{const _0x16a9d1=_0x3f443c[_0x2c67('0x24')]();_0x5a9353[_0x2c67('0x4e')](_0x2ba01c=>_0x2ba01c['containsRange'](_0x16a9d1,!0x0))&&_0x3f443c[_0x2c67('0x11')]();if(_0x5a9353[_0x2c67('0xe1')](_0x49a90f=>_0x16a9d1['containsRange'](_0x49a90f,!0x0))){const _0x234dd4=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x234dd4(_0x5a9353,null,_0x50ba1c)),null;}}const _0x37e179=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x3d'));let _0xe19f97=null;for(const _0x48d2d0 of this[_0x2c67('0x47')]())if(_0x48d2d0[_0x2c67('0x6b')]['id']==_0x46c7fd['id']&&_0x48d2d0[_0x2c67('0x7c')]&&_0x2c67('0x3a')==_0x48d2d0['type']&&_0x48d2d0['subType']==_0x34406c&&Ot(_0x48d2d0,_0x50ba1c)&&(_0x37e179(_0x48d2d0[_0x2c67('0x13e')](),_0x5a9353)||_0x37e179(_0x5a9353,_0x48d2d0[_0x2c67('0x13e')]()))){if(_0xe19f97){if(_0x48d2d0[_0x2c67('0x140')]&&_0x48d2d0[_0x2c67('0x140')][_0x2c67('0xb4')])continue;for(const _0x3fc9c6 of _0x48d2d0[_0x2c67('0x13e')]())_0xe19f97[_0x2c67('0x52')](_0x3fc9c6)||_0xe19f97['addRange'](_0x3fc9c6);_0x48d2d0[_0x2c67('0x1f')]();}else{_0xe19f97=_0x48d2d0;for(const _0x2b2dc7 of _0x5a9353)_0x48d2d0[_0x2c67('0x52')](_0x2b2dc7)||_0x48d2d0['addRange'](_0x2b2dc7);}}if(_0xe19f97)return _0xe19f97;_0x513260[_0x2c67('0xcd')]();for(const {suggestion:_0x42ebae,meta:_0x4df149}of this[_0x2c67('0xa6')](_0x5a9353,_0x2c67('0x3a')))_0x4df149[_0x2c67('0x13b')]&&(this[_0x2c67('0x141')]||!_0x4df149[_0x2c67('0x62')]&&!_0x4df149[_0x2c67('0x3e')])&&Ot(_0x42ebae,_0x50ba1c)&&_0x513260['add'](_0x42ebae);for(const _0x3fdefa of _0x513260){const _0x532839=_0x3fdefa[_0x2c67('0x13e')]();if(!_0x50ba1c||!_0x50ba1c[_0x2c67('0x74')]){if(_0x5a9353['every'](_0x589c07=>_0x532839[_0x2c67('0x4e')](_0x2256a1=>_0x2256a1['containsRange'](_0x589c07,!0x0))))return _0x3fdefa;}(!_0x3fdefa[_0x2c67('0x5')]||!_0x3fdefa[_0x2c67('0x5')][_0x2c67('0x74')])&&(_0x532839['every'](_0xb280a=>_0x5a9353[_0x2c67('0x4e')](_0x59bc5f=>_0x59bc5f[_0x2c67('0x118')](_0xb280a,!0x0)))&&_0x3fdefa[_0x2c67('0x11')]());}const _0x3579b9=_0x14b3c2(),_0x1fa3f4=_0x46c7fd['id'],_0x3f91f6='deletion:'+_0x34406c,_0x1712d5=this[_0x2c67('0x3c')]({'id':_0x3579b9,'type':_0x3f91f6,'createdAt':new Date(),'authorId':_0x1fa3f4,'attributes':_0x50ba1c});for(const _0x4a226d of _0x5a9353)_0x4a226d[_0x2c67('0x135')](),_0x4a226d['isCollapsed']||_0x2c67('0xd3')==_0x4a226d[_0x2c67('0x42')][_0x2c67('0x111')]||this[_0x2c67('0xf1')](_0x3f91f6,_0x3579b9,_0x1fa3f4,_0x4a226d,_0x368607[_0x2c67('0xb7')]());return _0x1712d5;}[_0x2c67('0x13c')](_0x2d2a42,_0x5e33a9){const _0x1dd409=_0x2d2a42[_0x2c67('0x81')]();this['_model']['change'](_0x5b2eb9=>{_0x5b2eb9['updateMarker'](_0x1dd409,{'range':_0x5e33a9});});}[_0x2c67('0x94')](_0x25d421){const _0x52cae5=_0x25d421['id'],_0x4d167b=this['editor'][_0x2c67('0x139')][_0x2c67('0xd')](_0x2c67('0xa1'));this[_0x2c67('0x128')][_0x2c67('0x101')](_0x52cae5)||this[_0x2c67('0x128')][_0x2c67('0x33')]({'channelId':_0x4d167b,'threadId':_0x52cae5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e721c=this['_commentsRepository'][_0x2c67('0x6e')](_0x52cae5);_0x1e721c[_0x2c67('0xb1')](_0x2c67('0x106')),_0x1e721c[_0x2c67('0x106')]=!0x1,_0x25d421[_0x2c67('0x140')]=_0x1e721c;}[_0x2c67('0xd6')](_0x4af61a,_0x46e861,_0x5fe775,_0x285fc4){if(_0x4af61a[_0x2c67('0x3b')]!=_0x46e861||_0x4af61a['subType']!=_0x5fe775||_0x4af61a[_0x2c67('0xaa')]['id']!=_0x285fc4)throw this['editor'][_0x2c67('0x3')]('track-changes-suggestion-data-mismatch'),new _0x12916d('track-changes-suggestion-data-mismatch',this);}[_0x2c67('0x132')](_0x2babfb,_0x4b554c){const _0x60d258=_0x2babfb[_0x2c67('0x24')]();if(_0x4b554c[_0x2c67('0x30')](_0x60d258))_0x2babfb[_0x2c67('0x1f')]();else{if(_0x60d258[_0x2c67('0x118')](_0x4b554c)){const _0x248487=this['_model'][_0x2c67('0xa2')](_0x4b554c['start'][_0x2c67('0x124')],'end');this[_0x2c67('0x13c')](_0x2babfb,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x60d258[_0x2c67('0x122')],_0x248487));const _0x271997=_0x14b3c2(),_0x133bd0=_0x2babfb['creator']['id'],_0x480bd4=_0x2babfb[_0x2c67('0x3b')]+':'+_0x2babfb[_0x2c67('0x12e')];this[_0x2c67('0x3c')]({'id':_0x271997,'type':_0x480bd4,'createdAt':new Date(),'authorId':_0x133bd0,'data':_0x2babfb['data'],'attributes':_0x2babfb[_0x2c67('0x5')]});const _0x2fb6f2=this[_0x2c67('0x12b')][_0x2c67('0xa2')](_0x4b554c[_0x2c67('0xe7')][_0x2c67('0x80')],_0x2c67('0xc4')),_0x3ff70b=this[_0x2c67('0x12b')]['createRange'](_0x2fb6f2,_0x60d258['end']);this[_0x2c67('0xf1')](_0x480bd4,_0x271997,_0x133bd0,_0x3ff70b);}else{if(_0x60d258[_0x2c67('0x66')](_0x4b554c[_0x2c67('0x122')])){const _0x537dd4=this[_0x2c67('0x12b')][_0x2c67('0xa2')](_0x4b554c[_0x2c67('0x122')][_0x2c67('0x124')],'end');this[_0x2c67('0x13c')](_0x2babfb,this['_model']['createRange'](_0x60d258[_0x2c67('0x122')],_0x537dd4));}else{const _0x7af79e=this[_0x2c67('0x12b')]['createPositionAt'](_0x4b554c[_0x2c67('0xe7')]['parent'],_0x2c67('0xc4'));this['_setSuggestionRange'](_0x2babfb,this['_model'][_0x2c67('0x10f')](_0x7af79e,_0x60d258['end']));}}}}[_0x2c67('0x78')](_0xd0e464){for(const {suggestion:_0x499b17,meta:_0xcd146c}of this[_0x2c67('0xa6')](_0xd0e464,_0x2c67('0xe8'))){if(!_0xcd146c[_0x2c67('0x13b')])continue;const _0x1f4d75=_0x499b17['getRanges']();for(const _0x2d3bee of _0x1f4d75)if(!_0xd0e464['getDifference'](_0x2d3bee)[_0x2c67('0xb4')])return!0x0;}return!0x1;}[_0x2c67('0x10')](_0x239721){const _0x222810=this[_0x2c67('0x57')][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')[_0x2c67('0x54')](_0x239721);if(!_0x222810)throw new _0x12916d(_0x2c67('0x12f'),this);return _0x222810;}[_0x2c67('0xdf')](_0x4b2f41){const _0x33685e=this['editor']['plugins'][_0x2c67('0xd')](_0x2c67('0x44')),_0x3ffa3a=_0x26d881(_0x2c67('0xb0')+_0x4b2f41),_0x4de70a=_0x33685e[_0x2c67('0x54')](_0x3ffa3a);return _0x4de70a||_0x33685e['addUser']({'id':_0x3ffa3a,'name':_0x4b2f41});}['_createSuggestion'](_0x2619b4,_0x3d4c77,_0x5e4687,_0x38944d,_0x5403c5){const _0x386411=this[_0x2c67('0x10')](_0x38944d),_0x1be287=this[_0x2c67('0xc1')][_0x2c67('0x87')](_0x2619b4,_0x3d4c77,_0x5e4687,_0x386411,_0x5403c5,_0x10f763=>this[_0x2c67('0x121')](_0x5e4687,{'attributes':_0x10f763}));return this[_0x2c67('0x6a')](_0x1be287,_0x2c67('0x9d'),()=>{this[_0x2c67('0x121')](_0x5e4687,{'state':_0x2c67('0x0')});},{'priority':_0x2c67('0x60')}),this[_0x2c67('0x6a')](_0x1be287,'discard',()=>{this['_updateSuggestionData'](_0x5e4687,{'state':_0x2c67('0x39')});},{'priority':_0x2c67('0x60')}),this[_0x2c67('0xad')][_0x2c67('0x112')](_0x5e4687,_0x1be287),this[_0x2c67('0x82')][_0x2c67('0x112')](_0x1be287,_0x2c67('0x21')),_0x1be287;}[_0x2c67('0xe2')](_0x3f63cf){const _0xa6da8=_0x3f63cf[_0x2c67('0x6c')](':');return{'group':_0xa6da8[0x0],'type':_0xa6da8[0x1],'subType':_0xa6da8[_0x2c67('0xb4')]>=0x5?_0xa6da8[0x2]:null,'id':_0xa6da8[_0x2c67('0xb4')]<0x5?_0xa6da8[0x2]:_0xa6da8[0x3],'authorId':_0xa6da8[_0x2c67('0xb4')]<0x5?_0xa6da8[0x3]:_0xa6da8[0x4],'markerCount':0x6==_0xa6da8[_0x2c67('0xb4')]?_0xa6da8[0x5]:null};}[_0x2c67('0x5b')](_0x258334,_0xf6344a,_0x15e3e6){const _0x5e4212=_0x258334[_0x2c67('0x24')](),_0x2a95c4=_0x5e4212[_0x2c67('0x122')],_0x5c976b=_0x5e4212[_0x2c67('0xe7')];this[_0x2c67('0x13c')](_0x258334,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x2a95c4,_0xf6344a));const _0x5b989e=_0x14b3c2(),_0x311d8f=_0x258334[_0x2c67('0xaa')]['id'],_0xe95f66=_0x258334[_0x2c67('0x3b')]+(_0x258334['subType']?':'+_0x258334[_0x2c67('0x12e')]:'');this[_0x2c67('0x3c')]({'id':_0x5b989e,'type':_0xe95f66,'createdAt':new Date(),'authorId':_0x311d8f,'originalSuggestionId':_0x258334['id'],'attributes':_0x258334['attributes'],'data':_0x258334[_0x2c67('0xfe')]}),'formatBlock'==_0x258334[_0x2c67('0x3b')]&&(_0x15e3e6=this['_model']['createPositionBefore'](_0x15e3e6['parent'])),this[_0x2c67('0xf1')](_0xe95f66,_0x5b989e,_0x311d8f,this[_0x2c67('0x12b')]['createRange'](_0x15e3e6,_0x5c976b));}[_0x2c67('0xa6')](_0x14e3e2,_0x257d04=null){const _0x11d162=[],_0x345ebe=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'];Array[_0x2c67('0xb8')](_0x14e3e2)||(_0x14e3e2=[_0x14e3e2]);for(const _0x4d8fce of this[_0x2c67('0x47')]()){if(!_0x4d8fce[_0x2c67('0x7c')])continue;if(_0x257d04&&_0x4d8fce[_0x2c67('0x3b')]!=_0x257d04)continue;let _0x1aab04=!0x1;for(const _0x4229ed of _0x4d8fce['getRanges']()){for(const _0x20885a of _0x14e3e2){const _0xd37a32=_0x20885a[_0x2c67('0x122')][_0x2c67('0x30')](_0x4229ed[_0x2c67('0xe7')])||_0x20885a[_0x2c67('0xe7')][_0x2c67('0x30')](_0x4229ed[_0x2c67('0x122')]);if(_0xd37a32||_0x20885a[_0x2c67('0x90')](_0x4229ed)){const _0xb46809=_0x20885a['containsRange'](_0x4229ed)&&_t(this[_0x2c67('0x12b')][_0x2c67('0x17')],_0x4229ed[_0x2c67('0x122')],_0x20885a),_0xe52eb3=_0x4229ed[_0x2c67('0x118')](_0x20885a)&&_t(this[_0x2c67('0x12b')][_0x2c67('0x17')],_0x20885a[_0x2c67('0x122')],_0x4229ed);_0x11d162[_0x2c67('0xdb')]({'suggestion':_0x4d8fce,'meta':{'isOwn':_0x345ebe==_0x4d8fce['author'],'isNextTo':_0xd37a32,'isInsideObject':_0xb46809,'containsRangeInObject':_0xe52eb3}}),_0x1aab04=!0x0;break;}}if(_0x1aab04)break;}}return _0x11d162;}[_0x2c67('0xf1')](_0x14c0e3,_0x595b96,_0x9ab734,_0x15e0a1,_0xc9f1f0){this['_model'][_0x2c67('0x7f')](_0x1561d4=>{let _0x13649f='suggestion:'+_0x14c0e3+':'+_0x595b96+':'+_0x9ab734;_0xc9f1f0&&(_0x13649f=_0x13649f+':'+_0xc9f1f0),_0x1561d4[_0x2c67('0x98')](_0x13649f,{'range':_0x15e0a1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x577380){const _0x2dcca5=_0x577380[_0x2c67('0xea')],_0x11f972=_0x577380[_0x2c67('0xfa')];_0x577380[_0x2c67('0xea')]=null,null!=_0x2dcca5&&(_0x2dcca5['next']=null),_0x577380[_0x2c67('0xfa')]=null,null!=_0x11f972&&(_0x11f972[_0x2c67('0xea')]=null),_0x2c67('0x127')==this['_suggestionState'][_0x2c67('0xd')](_0x577380)&&(this['_suggestionState'][_0x2c67('0x112')](_0x577380,'removed'),this[_0x2c67('0xaf')]('suggestionUnloaded',_0x577380,_0x2dcca5,_0x11f972));}[_0x2c67('0x3c')](_0x293bab){const _0x157319=_0x293bab['id'],_0x4808a9=this['addSuggestionData'](_0x293bab);if(this[_0x2c67('0x20')]&&this[_0x2c67('0x20')][_0x2c67('0x41')]){const _0x422583=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0x9')),_0x382e50=_0x4808a9[_0x2c67('0xc7')],_0x266db7=_0x4808a9['subType']?_0x4808a9[_0x2c67('0x3b')]+':'+_0x4808a9[_0x2c67('0x12e')]:_0x4808a9[_0x2c67('0x3b')],_0x34325d=this[_0x2c67('0x57')]['locale'],_0x40a5c8=_0x422583[_0x2c67('0x2c')](_0x243cd0(_0x34325d,_0x2c67('0x3f'))),_0x299a5a={'id':_0x157319,'type':_0x266db7,'hasComments':_0x382e50,'data':_0x293bab[_0x2c67('0xfe')]||null,'originalSuggestionId':_0x293bab[_0x2c67('0x89')]||null,'attributes':_0x4808a9[_0x2c67('0x5')]};this[_0x2c67('0x20')][_0x2c67('0x41')](_0x299a5a)[_0x2c67('0x117')](_0x1d05ba=>{_0x4808a9['_saved']=!0x0,_0x422583[_0x2c67('0x110')](_0x40a5c8),_0x1d05ba&&_0x1d05ba[_0x2c67('0xbc')]&&(this[_0x2c67('0xad')]['get'](_0x157319)[_0x2c67('0xbc')]=_0x1d05ba[_0x2c67('0xbc')]);})['catch'](_0x51ce95=>{throw _0x34eed0(_0x2c67('0x93')),this['editor'][_0x2c67('0xa7')][_0x2c67('0x48')]({'isUndoable':!0x1},()=>{_0x4808a9[_0x2c67('0x11')]();}),_0x4808a9[_0x2c67('0xce')](),this[_0x2c67('0xad')][_0x2c67('0x1a')](_0x4808a9['id']),this[_0x2c67('0x82')]['delete'](_0x4808a9),_0x51ce95;});}return _0x4808a9;}[_0x2c67('0x121')](_0x192139,_0x547021){const _0x52ae47=this[_0x2c67('0x57')]['plugins'][_0x2c67('0xd')](_0x2c67('0x9')),_0x34f4ab=this['getSuggestion'](_0x192139);if(this['_adapter']&&this['_adapter'][_0x2c67('0x88')]){if(_0x34f4ab[_0x2c67('0xab')]){const _0x312aca=_0x52ae47[_0x2c67('0x2c')](_0x243cd0(this[_0x2c67('0x57')][_0x2c67('0xa8')],'PENDING_ACTION_SUGGESTION'));this[_0x2c67('0x20')][_0x2c67('0x88')](_0x192139,_0x547021)[_0x2c67('0x117')](()=>{_0x52ae47['remove'](_0x312aca);});}else _0x34f4ab['on'](_0x2c67('0x7e'),()=>{this[_0x2c67('0x121')](_0x192139,_0x547021);});}}[_0x2c67('0x13a')](_0x33abed){if(!this[_0x2c67('0x20')]||!this[_0x2c67('0x20')][_0x2c67('0xd9')])throw new _0x12916d(_0x2c67('0xe3'),this);return this[_0x2c67('0x20')][_0x2c67('0xd9')](_0x33abed);}['_handleNewSuggestionMarker'](_0x1ec224){const {id:_0x1ff55b,type:_0x401cbd,subType:_0x4c0674,authorId:_0x40b984}=this[_0x2c67('0xe2')](_0x1ec224),_0x180f93=this['_suggestions'][_0x2c67('0xd')](_0x1ff55b)||this[_0x2c67('0xbe')](_0x401cbd,_0x4c0674,_0x1ff55b,_0x40b984,{});switch(this[_0x2c67('0xd6')](_0x180f93,_0x401cbd,_0x4c0674,_0x40b984),this[_0x2c67('0x82')][_0x2c67('0xd')](_0x180f93)){case'notReady':this[_0x2c67('0x13a')](_0x1ff55b)[_0x2c67('0x117')](_0x42bcb1=>{let _0xf39bec=Promise[_0x2c67('0x13')]();_0x42bcb1[_0x2c67('0xc7')]&&(_0xf39bec=this[_0x2c67('0x128')][_0x2c67('0x11e')]({'channelId':this[_0x2c67('0x57')]['config']['get'](_0x2c67('0xa1')),'threadId':_0x1ff55b})),_0xf39bec['then'](()=>{this[_0x2c67('0x2b')](_0x42bcb1)[_0x2c67('0xab')]=!0x0;});}),this['_suggestionState'][_0x2c67('0x112')](_0x180f93,_0x2c67('0x19'));break;case'removed':this[_0x2c67('0x121')](_0x1ff55b,{'state':_0x2c67('0x68')});case _0x2c67('0xfd'):this[_0x2c67('0x82')]['set'](_0x180f93,'ready'),this[_0x2c67('0xaf')](_0x2c67('0x55'),_0x180f93);break;case _0x2c67('0x127'):this[_0x2c67('0xaf')]('suggestionChanged',_0x180f93);}return _0x180f93['addMarkerName'](_0x1ec224),_0x180f93;}[_0x2c67('0x114')](_0x347c70){const _0x57b543=Array[_0x2c67('0xba')](_0x347c70)[_0x2c67('0x130')](_0x5717aa=>!_0x5717aa[_0x2c67('0x25')]),_0x3315f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b05fa=>!_0x5b05fa[_0x2c67('0x25')]),_0x301998=_0x3315f6[_0x2c67('0x130')](_0x44d1be=>!_0x347c70[_0x2c67('0x9a')](_0x44d1be)),_0x1c83bf=new Map(_0x3315f6['map'](_0x3248ea=>[_0x3248ea,this['_suggestionFactory'][_0x2c67('0x65')](_0x3248ea[_0x2c67('0x3b')],_0x3248ea[_0x2c67('0x12e')],_0x2c67('0x36'))])),_0x1b2bb9=new Map(_0x3315f6['map'](_0x5d266e=>[_0x5d266e,_0x5d266e['getFirstRange']()])),_0x11a858=new Set(),_0x32f470=new Set();for(let _0x57b66d=0x0;_0x57b66d<_0x57b543[_0x2c67('0xb4')];_0x57b66d++)_0x306f8f(_0x57b543[_0x57b66d],_0x57b543,_0x57b66d+0x1);for(let _0x8148db=0x0;_0x8148db<_0x57b543['length'];_0x8148db++)_0x306f8f(_0x57b543[_0x8148db],_0x301998,0x0);for(let _0x474735=0x0;_0x474735<_0x57b543['length'];_0x474735++){const _0x5c0b4b=_0x57b543[_0x474735];!_0x32f470[_0x2c67('0x9a')](_0x5c0b4b)&&_0x5c0b4b[_0x2c67('0xea')]&&(_0x5c0b4b[_0x2c67('0xea')][_0x2c67('0xfa')]===_0x5c0b4b&&(_0x5c0b4b[_0x2c67('0xea')]['next']=null),_0x5c0b4b[_0x2c67('0xea')]=null),!_0x11a858[_0x2c67('0x9a')](_0x5c0b4b)&&_0x5c0b4b[_0x2c67('0xfa')]&&(_0x5c0b4b['next']['previous']===_0x5c0b4b&&(_0x5c0b4b[_0x2c67('0xfa')][_0x2c67('0xea')]=null),_0x5c0b4b[_0x2c67('0xfa')]=null);}function _0x306f8f(_0x5d3ad3,_0x21bf81,_0x36f3b1){for(let _0xfe0b46=_0x36f3b1;_0xfe0b46<_0x21bf81[_0x2c67('0xb4')];_0xfe0b46++){const _0x1a3dd6=_0x1148ec(_0x5d3ad3,_0x21bf81[_0xfe0b46]);_0x1a3dd6&&(_0x1a3dd6[0x0]['next']=_0x1a3dd6[0x1],_0x1a3dd6[0x1][_0x2c67('0xea')]=_0x1a3dd6[0x0],_0x11a858['add'](_0x1a3dd6[0x0]),_0x32f470[_0x2c67('0x2c')](_0x1a3dd6[0x1]));}}function _0x1148ec(_0x5d4832,_0x5dfbb5){if(_0x5d4832[_0x2c67('0x6b')]['id']!==_0x5dfbb5['author']['id'])return null;const _0x5284ac=_0x1c83bf[_0x2c67('0xd')](_0x5d4832)(_0x5d4832,_0x5dfbb5,_0x1b2bb9[_0x2c67('0xd')](_0x5d4832),_0x1b2bb9[_0x2c67('0xd')](_0x5dfbb5));if(!_0x5284ac)return null;return _0x1c83bf[_0x2c67('0xd')](_0x5dfbb5)(_0x5d4832,_0x5dfbb5,_0x1b2bb9[_0x2c67('0xd')](_0x5d4832),_0x1b2bb9['get'](_0x5dfbb5))?_0x5284ac[0x1]['commentThread']&&_0x5284ac[0x1][_0x2c67('0x140')][_0x2c67('0xb4')]?null:_0x5284ac:null;}}[_0x2c67('0xf4')](_0x39df63){const _0xf9e1af=Array[_0x2c67('0xba')](_0x39df63),_0x44d045=this[_0x2c67('0x47')]({'skipNotAttached':!0x0}),_0x466419=_0x44d045[_0x2c67('0x130')](_0x3c7ecb=>!_0x39df63[_0x2c67('0x9a')](_0x3c7ecb)),_0x35d575=new Map(_0xf9e1af[_0x2c67('0x9f')](_0xbf9502=>[_0xbf9502,this[_0x2c67('0xc1')]['getSuggestionCallback'](_0xbf9502[_0x2c67('0x3b')],_0xbf9502['subType'],_0x2c67('0x3d'))])),_0x534daa=new Map(_0x44d045[_0x2c67('0x9f')](_0x161f34=>[_0x161f34,_0x161f34[_0x2c67('0x13e')]()]));for(let _0x3e167b=0x0;_0x3e167b<_0xf9e1af['length'];_0x3e167b++){if(_0x5688f0(this,_0xf9e1af[_0x3e167b],_0xf9e1af,_0x3e167b+0x1))return!0x0;}for(let _0x537ad8=0x0;_0x537ad8<_0xf9e1af[_0x2c67('0xb4')];_0x537ad8++){if(_0x5688f0(this,_0xf9e1af[_0x537ad8],_0x466419,0x0))return!0x0;}return!0x1;function _0x5688f0(_0x211444,_0x2f9d83,_0x54d79f,_0x3e5f81){for(let _0x33c78b=_0x3e5f81;_0x33c78b<_0x54d79f[_0x2c67('0xb4')];_0x33c78b++){const _0xead7be=_0x54d79f[_0x33c78b];if(_0xead7be['type']!==_0x2f9d83[_0x2c67('0x3b')]||_0xead7be[_0x2c67('0x6b')]['id']!==_0x2f9d83[_0x2c67('0x6b')]['id']||_0xead7be[_0x2c67('0x12e')]!==_0x2f9d83[_0x2c67('0x12e')])continue;if(!Ut(_0x2f9d83,_0xead7be))continue;const _0x5d88be=_0x35d575[_0x2c67('0xd')](_0x2f9d83),_0x52a6ed=_0x534daa[_0x2c67('0xd')](_0x2f9d83),_0x3e3072=_0x534daa['get'](_0xead7be),_0x525f22=_0x2f9d83[_0x2c67('0x140')]&&_0x2f9d83[_0x2c67('0x140')][_0x2c67('0xb4')],_0x437323=_0xead7be[_0x2c67('0x140')]&&_0xead7be['commentThread']['length'];if(!_0x525f22&&_0x5d88be(_0x3e3072,_0x52a6ed))return _0x211444[_0x2c67('0x2e')](_0xead7be,_0x2f9d83),_0x534daa[_0x2c67('0x1a')](_0x2f9d83),!0x0;if(!_0x437323&&_0x5d88be(_0x52a6ed,_0x3e3072))return _0x211444[_0x2c67('0x2e')](_0x2f9d83,_0xead7be),_0x534daa[_0x2c67('0x1a')](_0xead7be),!0x0;}return!0x1;}}[_0x2c67('0x2e')](_0x370035,_0x13ca36){if(_0x370035[_0x2c67('0x25')])for(const _0x2da569 of _0x13ca36['getRanges']())_0x370035[_0x2c67('0x136')](_0x2da569);else{const _0x21a523=_0x13ca36[_0x2c67('0x24')]()[_0x2c67('0xe7')];this[_0x2c67('0x13c')](_0x370035,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x370035[_0x2c67('0x24')]()['start'],_0x21a523));}_0x13ca36['removeMarkers']();}}class Bt{constructor(_0x52bc92){this[_0x2c67('0x4c')]=_0x52bc92,this[_0x2c67('0x12b')]=_0x52bc92[_0x2c67('0xa7')],this[_0x2c67('0x79')]=new Map(),this[_0x2c67('0x34')]=new Map(),this[_0x2c67('0x8b')]();}[_0x2c67('0x87')](_0xf88642,_0x52b6a9,_0x448aec,_0x575c2d,_0x50213c,_0x13532d){return new _0x368607(this[_0x2c67('0x12b')],{'type':_0xf88642,'subType':_0x52b6a9,'id':_0x448aec,'author':_0x575c2d,'creator':_0x575c2d,'attributes':_0x50213c,'onAttributesChange':_0x13532d,'onAccept':(..._0x437ff1)=>this[_0x2c67('0x65')](_0xf88642,_0x52b6a9,_0x2c67('0x9d'))(..._0x437ff1),'onDiscard':(..._0x3d4408)=>this[_0x2c67('0x65')](_0xf88642,_0x52b6a9,_0x2c67('0x11'))(..._0x3d4408)});}[_0x2c67('0x12c')](_0x502ac7,_0x2f8894,_0x441c64,_0x1a7b0a){const _0x1f0fd1=_0x502ac7+':'+_0x2f8894+':'+_0x441c64;this['_customCallbacks'][_0x2c67('0x112')](_0x1f0fd1,_0x1a7b0a);}[_0x2c67('0x65')](_0x3800af,_0x4b9e77,_0x2371db){const _0x5a9f89=_0x3800af+':'+_0x4b9e77+':'+_0x2371db;return this[_0x2c67('0x79')][_0x2c67('0xd')](_0x5a9f89)||this['_defaultCallbacks']['get'](_0x3800af+':'+_0x2371db);}[_0x2c67('0x8b')](){const _0x472c60=()=>!0x1,_0x443cdf=_0x3cbb92=>{_0x3cbb92[_0x2c67('0x18')]((_0xde8635,_0x314a66)=>_0xde8635[_0x2c67('0x122')][_0x2c67('0x67')](_0x314a66[_0x2c67('0x122')])?0x1:-0x1),this[_0x2c67('0x12b')][_0x2c67('0x7f')](_0x20fbfa=>{for(const _0xe7d118 of _0x3cbb92){let _0x62f01c;_0x62f01c=_0xe7d118[_0x2c67('0xe7')][_0x2c67('0xb2')]&&_0xe7d118[_0x2c67('0xe7')][_0x2c67('0x80')]==_0xe7d118[_0x2c67('0x122')][_0x2c67('0xd0')]?_0x20fbfa[_0x2c67('0x31')](_0xe7d118['start'][_0x2c67('0xd0')],'on'):_0x20fbfa[_0x2c67('0x31')](_0xe7d118),this[_0x2c67('0x12b')][_0x2c67('0x86')](_0x62f01c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2a3e20=(_0x2363a8,_0x364113)=>{this[_0x2c67('0x12b')][_0x2c67('0x7f')](_0x2f2adc=>{const {commandName:_0x59324c,commandParams:_0x4066d1=[]}=_0x364113,_0x37b046=_0x2363a8[_0x2c67('0x9f')](_0x274352=>(Mt(_0x274352)&&(_0x274352=this[_0x2c67('0x12b')]['createRange'](_0x274352[_0x2c67('0xe7')])),_0x274352))[_0x2c67('0x130')](_0x33394a=>_0x2c67('0xd3')!==_0x33394a[_0x2c67('0x42')][_0x2c67('0x111')]);if(_0x37b046['length']<0x1)return;const _0x3ccf9a=Array[_0x2c67('0xba')](this[_0x2c67('0x12b')][_0x2c67('0xde')][_0x2c67('0x4d')]['getRanges']())[_0x2c67('0x9f')](_0x443806=>_0x2a689f[_0x2c67('0x69')](_0x443806));_0x2f2adc['setSelection'](_0x37b046);for(const _0x14f4e0 of this['_editor'][_0x2c67('0xda')][_0x2c67('0xda')]())_0x14f4e0[_0x2c67('0xeb')]();_0x4066d1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x59324c,..._0x4066d1);const _0x3c2f26=_0x3ccf9a['filter'](_0x40d5f1=>_0x2c67('0xd3')!=_0x40d5f1[_0x2c67('0x42')][_0x2c67('0x111')]);_0x3c2f26['length']>0x0&&_0x2f2adc['setSelection'](_0x3c2f26);for(const _0x498c78 of _0x3ccf9a)_0x498c78[_0x2c67('0x135')]();});},_0x5de969=(_0x3a4ced,_0x34a760)=>0x1==_0x3a4ced[_0x2c67('0xb4')]&&0x1==_0x34a760[_0x2c67('0xb4')]&&_0x3a4ced[0x0][_0x2c67('0xe7')]['isEqual'](_0x34a760[0x0][_0x2c67('0x122')]),_0x5920d5=(_0x14d417,_0x4d5511,_0xd09c03,_0x3a4735)=>xt(_0x14d417,_0x4d5511,_0xd09c03,_0x3a4735,this[_0x2c67('0x12b')])?[_0x14d417,_0x4d5511]:xt(_0x4d5511,_0x14d417,_0x3a4735,_0xd09c03,this[_0x2c67('0x12b')])?[_0x4d5511,_0x14d417]:null;this['_defaultCallbacks'][_0x2c67('0x112')]('insertion:accept',_0x472c60),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xd8'),_0x443cdf),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0xbf'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')]('insertion:chain',_0x5920d5),this[_0x2c67('0x34')]['set'](_0x2c67('0x37'),_0x443cdf),this[_0x2c67('0x34')][_0x2c67('0x112')]('deletion:discard',_0x472c60),this[_0x2c67('0x34')]['set'](_0x2c67('0xc'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x137'),_0x5920d5),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x129'),_0x2a3e20),this[_0x2c67('0x34')][_0x2c67('0x112')]('formatInline:discard',_0x472c60),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xc0'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0xb6'),_0x472c60),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x84'),_0x2a3e20),this[_0x2c67('0x34')][_0x2c67('0x112')]('formatBlock:discard',_0x472c60),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x1d'),_0x5de969),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xcc'),_0x472c60);}}function _t(_0x3a8b63,_0x4087e0,_0x2bc9c7){for(const _0x4ef511 of _0x4087e0[_0x2c67('0x80')][_0x2c67('0xe4')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4ef511[_0x2c67('0x42')]==_0x4ef511)return!0x1;if(!_0x2bc9c7['containsItem'](_0x4ef511))return!0x1;if(_0x3a8b63[_0x2c67('0xa')](_0x4ef511)||_0x3a8b63[_0x2c67('0x8')](_0x4ef511))return!0x0;}return!0x1;}function Mt(_0x2e842a){return _0x2e842a[_0x2c67('0xe7')][_0x2c67('0x80')]==_0x2e842a[_0x2c67('0x122')]['nodeAfter']&&_0x2e842a[_0x2c67('0xe7')]['isAtStart'];}function $t(_0x1a05dd,_0x1178b5,_0x95fcc2,_0x57a8c5){const _0x1c86be=_0x465f11=>!_0x465f11['item']['is']('$textProxy')&&!_0x57a8c5[_0x2c67('0xa')](_0x465f11[_0x2c67('0x12d')]),_0xfee2fe=_0x1a05dd[_0x2c67('0x122')]['getLastMatchingPosition'](_0x1c86be),_0x5e0770=_0x1a05dd[_0x2c67('0xe7')][_0x2c67('0xa5')](_0x1c86be,{'direction':'backward'});return(!_0x1a05dd['start'][_0x2c67('0x30')](_0xfee2fe)||!_0x1a05dd[_0x2c67('0xe7')][_0x2c67('0x30')](_0x5e0770))&&(_0xfee2fe[_0x2c67('0x67')](_0x5e0770)?_0x95fcc2['updateMarker'](_0x1178b5,{'range':_0x95fcc2[_0x2c67('0x10f')](_0xfee2fe,_0x5e0770)}):_0x95fcc2['removeMarker'](_0x1178b5),!0x0);}function Nt(_0x3d6a93){return _0x26d881(_0x3d6a93);}function Rt(_0x1df46f){const _0x539c67=_0x1df46f[_0x2c67('0x122')][_0x2c67('0xd0')];return _0x539c67&&_0x539c67['is']('element');}function jt(_0x53d36c,_0x3e46d3){const _0x1ea4db=_0x3e46d3['schema'][_0x2c67('0xa')](_0x53d36c)||_0x3e46d3['schema'][_0x2c67('0x58')](_0x53d36c);return _0x3e46d3[_0x2c67('0x10f')](_0x3e46d3[_0x2c67('0xa2')](_0x53d36c,'before'),_0x1ea4db?_0x3e46d3[_0x2c67('0x119')](_0x53d36c):_0x3e46d3['createPositionAt'](_0x53d36c,_0x2c67('0xe7')));}function xt(_0x4f4ebb,_0x285c57,_0xd6b060,_0xeac180,_0x4b041b){if(!Ut(_0x4f4ebb,_0x285c57))return!0x1;if(_0xd6b060['end']['isEqual'](_0xeac180[_0x2c67('0x122')]))return!0x0;if(_0x4f4ebb['type']!=_0x285c57[_0x2c67('0x3b')])return!0x1;if(!_0xd6b060[_0x2c67('0xe7')][_0x2c67('0xf6')](_0xeac180[_0x2c67('0x122')]))return!0x1;const _0x125a15=_0x4b041b[_0x2c67('0x10f')](_0xd6b060[_0x2c67('0xe7')],_0xeac180[_0x2c67('0x122')])['getWalker']();for(const _0x17b65f of _0x125a15)if([_0x2c67('0xa3'),_0x2c67('0x96')]['includes'](_0x17b65f['type'])&&_0x4b041b['schema']['isLimit'](_0x17b65f[_0x2c67('0x12d')]))return!0x1;return!0x0;}function Ut(_0x17a7ab,_0x479ee5){return!(!_0x17a7ab[_0x2c67('0x2')]||!_0x479ee5[_0x2c67('0x2')])&&_0x5960dc(_0x17a7ab[_0x2c67('0x5')],_0x479ee5['attributes']);}function Ot(_0x122854,_0x40e9c5){const _0x2bb542=Et(_0x122854[_0x2c67('0x5')]),_0xa0a19d=Et(_0x40e9c5);if(!_0x122854['_isDataLoaded'])return!0x1;for(const _0xa3e853 of Object['keys'](_0xa0a19d))if(!_0x5960dc(_0x2bb542[_0xa3e853],_0xa0a19d[_0xa3e853]))return!0x1;return!0x0;}function Et(_0x339fc3){const _0x54b321=Object[_0x2c67('0xc5')]({},_0x339fc3);return delete _0x54b321[_0x2c67('0x74')],delete _0x54b321[_0x2c67('0x120')],_0x54b321;}
|