@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230701.0 → 0.0.0-nightly-20230702.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-20230701.0",
3
+ "version": "0.0.0-nightly-20230702.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-20230701.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230701.0",
42
+ "ckeditor5": "0.0.0-nightly-20230702.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230702.0",
44
44
  "lodash-es": "^4.17.11"
45
45
  },
46
46
  "engines": {
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8067=['containsRangeInObject','documentSelection','error-saving-suggestion-data-suggestion-discarded','requires','backward','highest','getFirstMarker','toViewElement','_adapter','showSuggestionHighlights','open','isBefore','isCollapsed','formatInline:','stop','end','ck-suggestion-marker-formatBlock','splice','pluginName','default','resolve','suggestion-type','isRemovable','updateMarker','ck-suggestion-marker-','upcast','formatBlock:chain','set','setTo','group','execute','suggestionUnloaded','getDifference','_commentsRepository','isAtStart','enqueueChange','applyOperation','ready','$graveyard','locale','hasComments','createSelection','insertion:chain','getShiftedBy','range','insertion:join','registerPostFixer','trackChanges','getFirstRange','bindElementToMarker','createPositionBefore','isExternal','nodeBefore','_setSuggestionRange','has','collaboration.channelId','hasCommentThread','notReady','attributes','commands','add','listenTo','setSelection','plugins','_checkSuggestionCorrectness','_addSuggestionMarker','_removeSuggestion','addHighlight','getCustomProperty','trackChanges.mergeNestedSuggestions','registerCustomCallback','_splitMarkerName','CommentsRepository','size','push','getSuggestionCallback','isInsideObject','values','elementStart','isSelectable','marker-count','suggestionLoaded','formatGroupId','acceptSuggestion','_registerDefaultCallbacks','getAllAdjacentSuggestions','fetchCommentThread','ck-suggestion-marker--active','rethrowUnexpectedError','normal','previous','element','_setSuggestionData','next','update:suggestion','markerToData','formatInline','_getSuggestionData','delete','data-suggestion','_handleNewSuggestionMarker','splitPosition','toJSON','skipNestingCheck','removed','addClass','suggestionChanged','multipleBlocks','writer','high','_mergeNestedSuggestions','deletion:','getRanges','creator','_trackFormatChanges','@external','_descriptionFactory','createPositionAt','chain','containerElement','markMultiRangeDeletion','newRange','consume','formatInline:chain','parent','isDocumentOperation','remove','discardSuggestion','enableCommand','suggestion','hasSuggestion','value','config','join','consumable','mapper','markInsertion','_createSuggestion','isInContent','getAttribute','markMultiRangeInsertion','activeMarkers','low','removeClass','head','fromRange','_enabledCommands','_model','_breakSuggestionMarker','getItems','_updateSuggestionData','containsItem','getLastMatchingPosition','_joinSuggestions','for','formatBlock:accept','track-changes-user-not-found','getUser','length','_suggestionState','removeMarker:suggestion:formatBlock','rootName','discard','includes','$marker','isAfter','commandName','batch','type','createElement','containsPosition','change:data','elementToElement','deletion','isLimit','addSuggestion','isEqual','getIntersection','map','isBlock','commentThread','formatBlock','acceptSelectedSuggestions','$textProxy','always','createPositionAfter','_editor','createRange','sort','isTouching','trackChangesCommand','enableReadOnlyMode','_defaultCallbacks','markBlockFormat','discardSelectedSuggestions','_refreshSuggestionsChain','addComment','createdAt','_saved','clone','dataReady','deletion:discard','nodeAfter','markerReady','some','insert','multi','conversion','removeMarkers','every','deletion:chain','split','isOwn','markerToHighlight','author','formatInline:accept','originalSuggestionId','get','authoredAt','_rangeIsInLocalUserInsertion','getSuggestions','insertion','dataDowncast','isObject','removeComment','acceptAllSuggestions','root','data','stopListening','trackChanges.trackFormatChanges','editor','_customCallbacks','_cutOutSuggestionMarker','move','addMarker:suggestion','insertion:','Users','containsRange','selection','ck-suggestion-marker','adapter','addMarkerName','markMultiRangeBlockFormat','isIntersectingWithRange','insertContent','removeMarker','elementEnd','_onDiscard','updateSuggestion','getRange','markerName','formatBlock:','howMany','differ','_suggestions','track-changes-adapter-already-set','getSuggestion','isMultiRange','then','subType','item','fire','accept','_isForcedDefaultExecutionBlock','editingDowncast','getChanges','from','markers','document','options','_getExternalAuthor','change','deletion:join','before','getAncestors','start','PENDING_ACTION_SUGGESTION','oldRange','deletion:accept','schema','isNextTo','_addThreadToSuggestion','PendingActions','buildSuggestion','suggestion:','filter','getNearestSelectionRange','setAttribute','model','addUser','addMarker:suggestion:formatBlock','addRange','position','forward','_suggestionFactory','unbind','name','catch','markDeletion','removeAttribute','deleteContent','change:activeMarkers','_findSuggestions','accepted','return','forceDefaultExecution','getMultiRangeId','track-changes-suggestion-data-mismatch','addSuggestionData','isAtEnd'];(function(_0x35ee50,_0x806707){const _0x505c69=function(_0x2ae937){while(--_0x2ae937){_0x35ee50['push'](_0x35ee50['shift']());}};_0x505c69(++_0x806707);}(_0x8067,0x146));const _0x505c=function(_0x35ee50,_0x806707){_0x35ee50=_0x35ee50-0x0;let _0x505c69=_0x8067[_0x35ee50];return _0x505c69;};import{Plugin as _0x642b50,PendingActions as _0x26601d}from'ckeditor5/src/core';import{LiveRange as _0x12fcf0}from'ckeditor5/src/engine';import{CKEditorError as _0x1dd7d0,uid as _0x226cf0,priorities as _0x3338f3,logWarning as _0x47ac89}from'ckeditor5/src/utils';import{toWidget as _0x3fc30f}from'ckeditor5/src/widget';import{Users as _0x1d2d11,hashObject as _0x496d2d}from'ckeditor5-collaboration/src/collaboration-core';import _0x3f9045 from'./commands/trackchangescommand';import _0x1ea979 from'./commands/acceptsuggestioncommand';import _0x4135ca from'./commands/discardsuggestioncommand';import _0xf7c60c from'./commands/executeonallsuggestionscommand';import _0x39a61f from'./commands/executeonselectedsuggestionscommand';import _0x492b8e from'./suggestion';import _0x2818a4 from'./suggestiondescriptionfactory';import _0x3a0fcc from'./integrations/alignment';import _0x436a63 from'./integrations/basicstyles';import _0x482416 from'./integrations/blockquote';import _0x114425 from'./integrations/ckbox';import _0xc0f196 from'./integrations/codeblock';import _0x18447f from'./integrations/comments';import _0x180757 from'./integrations/deletecommand';import _0x40af64 from'./integrations/documentlist';import _0x363648 from'./integrations/entercommand';import _0x2642b4 from'./integrations/findandreplace';import _0x341b91 from'./integrations/font';import _0x949ee3 from'./integrations/formatpainter';import _0x4a90a5 from'./integrations/heading';import _0x8fd302 from'./integrations/highlight';import _0x5ca8ca from'./integrations/horizontalline';import _0x2cfd17 from'./integrations/htmlembed';import _0x37e678 from'./integrations/image';import _0x565224 from'./integrations/imagereplace';import _0x2266d5 from'./integrations/importword';import _0x1500ab from'./integrations/indent';import _0x3e1293 from'./integrations/inputcommand';import _0x441d44 from'./integrations/link';import _0x2d0db7 from'./integrations/list';import _0x1254ad from'./integrations/listproperties';import _0x166cee from'./integrations/mediaembed';import _0x9d9403 from'./integrations/mention';import _0x536b8f from'./integrations/pagebreak';import _0x1e3f7d from'./integrations/paragraph';import _0x10d4fa from'./integrations/removeformat';import _0x487434 from'./integrations/restrictededitingmode';import _0x23b86f from'./integrations/shiftentercommand';import _0x48871d from'./integrations/standardeditingmode';import _0x35553d from'./integrations/style';import _0x4089a0 from'./integrations/table';import _0x2d25f8 from'./integrations/tablemergesplit';import _0x2b3f5e from'./integrations/tableheadings';import _0x3b5f2e from'./integrations/tableclipboard';import _0x4912ee from'./integrations/tablecolumnresize';import _0x4b26d6 from'./integrations/template';import _0x43e91d from'./integrations/tableofcontents';import _0x3caf88 from'./integrations/title';import _0x24744c from'./integrations/undo';import{getTranslation as _0x413b77}from'./utils/common-translations';import _0x2971e3 from'./integrations/tablecaption';import _0x1a6b48 from'./integrations/documentlistproperties';import _0x1ded50 from'./integrations/tableproperties';export default class p extends _0x642b50{static get[_0x505c('0x129')](){return[_0x505c('0x38'),_0x1d2d11,_0x26601d,_0x3a0fcc,_0x436a63,_0x482416,_0x114425,_0xc0f196,_0x18447f,_0x180757,_0x40af64,_0x1a6b48,_0x363648,_0x2642b4,_0x341b91,_0x949ee3,_0x4a90a5,_0x8fd302,_0x5ca8ca,_0x2cfd17,_0x37e678,_0x565224,_0x2266d5,_0x1500ab,_0x3e1293,_0x441d44,_0x2d0db7,_0x1254ad,_0x166cee,_0x9d9403,_0x536b8f,_0x1e3f7d,_0x10d4fa,_0x487434,_0x23b86f,_0x48871d,_0x35553d,_0x4089a0,_0x2d25f8,_0x2b3f5e,_0x2971e3,_0x3b5f2e,_0x4912ee,_0x43e91d,_0x1ded50,_0x4b26d6,_0x3caf88,_0x24744c];}static get[_0x505c('0x2')](){return'TrackChangesEditing';}constructor(_0x2858b4){function _0x1d3cdb(_0x132a3f){return _0x132a3f[_0x505c('0xa2')](_0x1a45b1=>String['fromCharCode'](_0x1a45b1))[_0x505c('0x75')]('');}super(_0x2858b4),this['set']('activeMarkers',[]),this['on'](_0x505c('0x11d'),(_0x29e0ca,_0x42f0e9,_0x2916fd,_0x4aed18)=>{this['_model'][_0x505c('0xff')](()=>{for(const _0x55a176 of[..._0x4aed18,..._0x2916fd])this[_0x505c('0x83')][_0x505c('0xfb')][_0x505c('0x26')](_0x55a176)&&_0x2858b4['editing']['reconvertMarker'](_0x55a176);});}),this[_0x505c('0x64')]=new _0x2818a4(this[_0x505c('0xd6')][_0x505c('0x110')]['schema'],this[_0x505c('0xd6')][_0x505c('0x17')]),this[_0x505c('0x12e')]=null,this[_0x505c('0x116')]=new Dt(this[_0x505c('0xd6')]),this[_0x505c('0xee')]=new Map(),this[_0x505c('0x11')]=_0x2858b4[_0x505c('0x2f')][_0x505c('0xc9')](_0x505c('0x38')),this[_0x505c('0x82')]=new Set(),this[_0x505c('0x83')]=this[_0x505c('0xd6')]['model'],this[_0x505c('0x8f')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2858b4['config']['define']('trackChanges.trackFormatChanges',_0x505c('0x3')),this[_0x505c('0x62')]=_0x2858b4[_0x505c('0x74')]['get'](_0x505c('0xd5')),_0x2858b4['config']['define'](_0x505c('0x35'),!0x0),this['_mergeNestedSuggestions']=_0x2858b4['config']['get'](_0x505c('0x35')),this['trackChangesCommand']=new _0x3f9045(_0x2858b4,this['_enabledCommands']),this[_0x1d3cdb([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d3cdb([0x34,0x30,0x34,0x36,0x31,0x34,0x30,0x32]);}['init'](){const _0xfcc73c=this['editor'];_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')](_0x505c('0xf8'))['markerToHighlight']({'model':_0x505c('0x71'),'view':_0x127a1a=>{const {id:_0xc59534,type:_0x134c8d}=this[_0x505c('0x37')](_0x127a1a[_0x505c('0xea')]),_0x4fc1bd=['ck-suggestion-marker',_0x505c('0x8')+_0x134c8d];let _0x413387=0xbb8;return this['activeMarkers'][_0x505c('0x93')](_0x127a1a['markerName'])&&(_0x4fc1bd[_0x505c('0x3a')](_0x505c('0x47')),_0x413387=0xbc2),_0x505c('0x9d')==_0x134c8d&&(_0x413387+=0x5),{'classes':_0x4fc1bd,'attributes':{'data-suggestion':_0xc59534},'priority':_0x413387};}}),_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')]('dataDowncast')['add'](_0xb7a245=>{_0xb7a245['on'](_0x505c('0xda'),(_0x1a6486,_0x5ca713,_0x1d4205)=>{if(!_0x1d4205[_0x505c('0xfd')][_0x505c('0x12f')])return;const _0x5e0654=_0x5ca713['item'];if(!_0x5e0654)return;const _0x4dfa67=_0x1d4205[_0x505c('0x77')][_0x505c('0x12d')](_0x5e0654);_0xfcc73c['model'][_0x505c('0x107')][_0x505c('0xcf')](_0x5e0654)&&_0x4dfa67&&!_0x4dfa67[_0x505c('0x34')]('widget')&&_0x4dfa67['is'](_0x505c('0x67'))&&_0x3fc30f(_0x4dfa67,_0x1d4205['writer']);},{'priority':_0x505c('0x5d')});}),_0xfcc73c['conversion']['for'](_0x505c('0xce'))[_0x505c('0xc5')]({'model':_0x505c('0x71'),'view':(_0x16942b,_0x3e21ee)=>{if(!_0x3e21ee[_0x505c('0xfd')][_0x505c('0x12f')])return null;const {type:_0x42450e}=this[_0x505c('0x37')](_0x16942b['markerName']);return{'classes':[_0x505c('0xdf'),'ck-suggestion-marker-'+_0x42450e],'priority':0xbb8};}});const _0x591f60=({showActiveMarkers:_0x34ecd8=!0x0}={})=>(_0x463d9d,_0xeab74,_0x105fde)=>{if(!_0xeab74[_0x505c('0xf4')])return;if(_0xeab74['item']['is'](_0x505c('0xde')))return void _0x105fde[_0x505c('0x76')][_0x505c('0x6a')](_0xeab74['item'],_0x463d9d[_0x505c('0x118')]);const _0x2d39bc=_0x105fde['mapper'][_0x505c('0x12d')](_0xeab74[_0x505c('0xf4')]);if(!(_0xeab74[_0x505c('0xf4')]['is'](_0x505c('0x4b'))&&_0xfcc73c[_0x505c('0x110')][_0x505c('0x107')][_0x505c('0xa3')](_0xeab74[_0x505c('0xf4')])&&!_0x2d39bc[_0x505c('0x34')](_0x505c('0x33'))))return;const {id:_0x2ea813}=this[_0x505c('0x37')](_0xeab74[_0x505c('0xea')]);_0x105fde['writer'][_0x505c('0x59')]([_0x505c('0xdf'),_0x505c('0x0')],_0x2d39bc),_0x105fde[_0x505c('0x5c')][_0x505c('0x10f')](_0x505c('0x53'),_0x2ea813,_0x2d39bc),_0x105fde['mapper'][_0x505c('0x21')](_0x2d39bc,_0xeab74['markerName']),_0x34ecd8&&(this[_0x505c('0x7d')][_0x505c('0x93')](_0xeab74[_0x505c('0xea')])?_0x105fde[_0x505c('0x5c')][_0x505c('0x59')]('ck-suggestion-marker--active',_0x2d39bc):_0x105fde[_0x505c('0x5c')][_0x505c('0x7f')](_0x505c('0x47'),_0x2d39bc));for(const _0x4450f0 of _0xfcc73c[_0x505c('0x110')]['createRangeIn'](_0xeab74['item'])[_0x505c('0x85')]())_0x105fde[_0x505c('0x76')][_0x505c('0x6a')](_0x4450f0,_0x463d9d[_0x505c('0x118')]);_0x105fde[_0x505c('0x76')][_0x505c('0x6a')](_0xeab74['item'],_0x463d9d[_0x505c('0x118')]);};_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')](_0x505c('0xce'))['add'](_0x32ae24=>{_0x32ae24['on']('addMarker:suggestion:formatBlock',(_0x5d91f3,_0x353504,_0x1e9e76)=>{_0x1e9e76[_0x505c('0xfd')]['showSuggestionHighlights']&&_0x591f60({'showActiveMarkers':!0x1})(_0x5d91f3,_0x353504,_0x1e9e76);},{'priority':_0x505c('0x12b')});}),_0xfcc73c[_0x505c('0xbf')]['for'](_0x505c('0xce'))[_0x505c('0x4f')]({'model':_0x505c('0x71'),'view':(_0x41e22a,_0x5775ff)=>_0x5775ff[_0x505c('0xfd')][_0x505c('0x12f')]?null:{'group':'suggestion','name':_0x41e22a['substr'](0xb)}}),_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')](_0x505c('0x9'))[_0x505c('0x9c')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xc54fda,{writer:_0x17b8ff})=>{let _0xf9d0d8=_0x505c('0x10c')+_0xc54fda[_0x505c('0x7b')](_0x505c('0x5'))+':'+_0xc54fda[_0x505c('0x7b')]('id');return _0xc54fda[_0x505c('0x7b')]('marker-count')&&(_0xf9d0d8+=':'+_0xc54fda[_0x505c('0x7b')](_0x505c('0x40'))),_0x17b8ff[_0x505c('0x99')](_0x505c('0x94'),{'data-name':_0xf9d0d8});}}),_0xfcc73c[_0x505c('0xbf')]['for'](_0x505c('0x9'))['dataToMarker']({'view':_0x505c('0x71')}),_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')](_0x505c('0xf8'))[_0x505c('0x2c')](_0x331ff5=>{_0x331ff5['on'](_0x505c('0x112'),_0x591f60(),{'priority':_0x505c('0x5d')});}),_0xfcc73c[_0x505c('0xbf')][_0x505c('0x8a')](_0x505c('0xf8'))[_0x505c('0x2c')](_0x2d1480=>{_0x2d1480['on'](_0x505c('0x90'),(_0x5efeb3,_0x5d8b0c,_0x275e81)=>{const _0x2a94a4=_0x275e81['mapper']['markerNameToElements'](_0x5d8b0c[_0x505c('0xea')]);if(_0x2a94a4)for(const _0xf2f903 of _0x2a94a4)_0xf2f903[_0x505c('0x34')](_0x505c('0x33'))||(_0x275e81[_0x505c('0x5c')][_0x505c('0x7f')]([_0x505c('0xdf'),_0x505c('0x0'),_0x505c('0x47')],_0xf2f903),_0x275e81[_0x505c('0x5c')][_0x505c('0x11b')](_0x505c('0x53'),_0xf2f903),_0x275e81[_0x505c('0x77')]['unbindElementFromMarkerName'](_0xf2f903,_0x5d8b0c[_0x505c('0xea')]));},{'priority':_0x505c('0x5d')});}),_0xfcc73c[_0x505c('0x110')][_0x505c('0xfc')][_0x505c('0x1e')](_0x3d54b1=>{let _0x4a100a=!0x1;const _0x213600=Array[_0x505c('0xfa')](_0xfcc73c[_0x505c('0x110')]['document'][_0x505c('0xed')]['getChangedMarkers']()),_0x1041dd=new Set();for(const {name:_0x51e049,data:_0xe3358a}of _0x213600){const {group:_0x4c497e,type:_0x173418,id:_0x36c54f}=this['_splitMarkerName'](_0x51e049);if(_0x505c('0x71')!==_0x4c497e)continue;const _0x15dbce=this['_suggestions']['get'](_0x36c54f);if(null!=_0xe3358a['newRange']){_0x505c('0x50')==_0x173418&&(_0x4a100a=_0x4a100a||Mt(_0xe3358a[_0x505c('0x69')],_0x51e049,_0x3d54b1,_0xfcc73c[_0x505c('0x110')]['schema']));if(_0xe3358a[_0x505c('0x69')][_0x505c('0x132')]||_0x505c('0x16')==_0xe3358a['newRange'][_0x505c('0xd2')][_0x505c('0x91')]||_0x505c('0xa5')==_0x173418&&!Nt(_0xe3358a[_0x505c('0x69')])||_0x505c('0x9d')==_0x173418&&!(!_t(_0x370551=_0xe3358a[_0x505c('0x69')])&&!function(_0x318eb1){return _0x318eb1[_0x505c('0x103')][_0x505c('0x6c')]==_0x318eb1[_0x505c('0x135')][_0x505c('0x24')]&&_0x318eb1[_0x505c('0x103')][_0x505c('0x125')];}(_0x370551)))_0x3d54b1[_0x505c('0xe5')](_0x51e049),_0x4a100a=!0x0;else{if(!_0x15dbce||!_0x15dbce['isInContent'])continue;_0x1041dd['add'](_0x15dbce);}}}var _0x370551;return _0x1041dd[_0x505c('0x39')]>0x0&&(_0x4a100a=!!this['_joinWithAdjacentSuggestions'](_0x1041dd)||_0x4a100a),_0x4a100a;}),_0xfcc73c[_0x505c('0x110')][_0x505c('0xfc')][_0x505c('0x1e')](_0x4cdb15=>{let _0x42230a=!0x1;for(const _0x44452e of _0xfcc73c[_0x505c('0x110')][_0x505c('0xfc')][_0x505c('0xed')][_0x505c('0xf9')]()){if(_0x505c('0xbd')!=_0x44452e[_0x505c('0x98')])continue;const _0x57d80b=_0x44452e[_0x505c('0x114')][_0x505c('0x1b')](_0x44452e[_0x505c('0x8e')]);if(_0x57d80b[_0x505c('0x125')])for(const _0x502a95 of this[_0x505c('0xee')]['values']()){if(_0x502a95[_0x505c('0xf1')]||!_0x502a95[_0x505c('0x7a')])continue;if(_0x505c('0xa5')!=_0x502a95['type'])continue;const _0x28c196=_0x502a95[_0x505c('0x20')]();if(_0x28c196[_0x505c('0x103')]['parent']!=_0x28c196[_0x505c('0x135')][_0x505c('0x6c')]&&_0x28c196[_0x505c('0x135')][_0x505c('0xa0')](_0x44452e[_0x505c('0x114')])){const _0xd0c977=_0xfcc73c[_0x505c('0x110')][_0x505c('0xab')](_0x28c196[_0x505c('0x103')],_0x57d80b);_0x4cdb15[_0x505c('0x7')](_0x502a95[_0x505c('0x12c')](),{'range':_0xd0c977}),_0x42230a=!0x0;}}}return _0x42230a;}),_0xfcc73c[_0x505c('0x110')][_0x505c('0xfb')]['on'](_0x505c('0x4e'),(_0x462bce,_0x45285c,_0x54f81f)=>{if(null==_0x54f81f){const {id:_0x5550c9}=this['_splitMarkerName'](_0x45285c[_0x505c('0x118')]),_0x20b8c4=this[_0x505c('0xee')][_0x505c('0xc9')](_0x5550c9);_0x20b8c4&&_0x20b8c4['addMarkerName'](_0x45285c[_0x505c('0x118')]);}}),_0xfcc73c[_0x505c('0x110')][_0x505c('0xfc')]['on'](_0x505c('0x9b'),()=>{const _0x588086=Array['from'](_0xfcc73c[_0x505c('0x110')][_0x505c('0xfc')][_0x505c('0xed')]['getChangedMarkers']())[_0x505c('0x10d')](_0x1063c4=>_0x505c('0x71')===this['_splitMarkerName'](_0x1063c4[_0x505c('0x118')])[_0x505c('0xd')]);if(0x0===_0x588086['length'])return;_0x588086['sort']((_0xc5b674,_0x4cd56c)=>{const _0x3bd53b=_0xc5b674[_0x505c('0xd3')][_0x505c('0x105')],_0x5d7d08=_0x4cd56c[_0x505c('0xd3')][_0x505c('0x105')];return null===_0x3bd53b&&null===_0x5d7d08?0x0:null===_0x3bd53b&&null!==_0x5d7d08?-0x1:null!==_0x3bd53b&&null===_0x5d7d08?0x1:_0x3bd53b[_0x505c('0x103')][_0x505c('0x131')](_0x5d7d08[_0x505c('0x103')])?-0x1:0x1;});const _0xcd86ec=new Set(),_0xbc4e9d=new Set();for(const {name:_0x4860b2,data:_0x47b44d}of _0x588086){const {id:_0x36c054}=this[_0x505c('0x37')](_0x4860b2);if(null===_0x47b44d[_0x505c('0x105')]){const _0x28f280=this[_0x505c('0x54')](_0x4860b2);_0xbc4e9d[_0x505c('0x2c')](_0x28f280);}else{const _0x58de6b=this[_0x505c('0xee')][_0x505c('0xc9')](_0x36c054);null!==_0x47b44d[_0x505c('0x69')]||_0x58de6b[_0x505c('0x7a')]?(_0xcd86ec[_0x505c('0x2c')](_0x58de6b[_0x505c('0x80')]),_0xbc4e9d['add'](_0x58de6b)):this['_removeSuggestion'](_0x58de6b);}}_0xbc4e9d['size']>0x0&&this['_refreshSuggestionsChain'](_0xbc4e9d);for(const _0x53cabc of _0xcd86ec)this[_0x505c('0xf5')](_0x505c('0x5a'),_0x53cabc);}),_0xfcc73c[_0x505c('0x110')]['on'](_0x505c('0x14'),(_0x828f0,_0x2386f1)=>{const _0x2113e6=_0x2386f1[0x0];if(!this[_0x505c('0xee')][_0x505c('0x39')])return;if(!_0x2113e6[_0x505c('0x6d')])return;if(_0x2113e6[_0x505c('0x97')]['isUndo']||!_0x2113e6['batch']['isLocal'])return;let _0x366d4b,_0x5e3ea1;switch(_0x2113e6[_0x505c('0x98')]){case'insert':_0x366d4b=_0xfcc73c['model'][_0x505c('0x65')](_0x2113e6[_0x505c('0x114')]),_0x5e3ea1=_0x366d4b['getShiftedBy'](_0x2113e6['howMany']);break;case _0x505c('0xc3'):_0x366d4b=_0xfcc73c[_0x505c('0x110')]['createPositionAt'](_0x2113e6[_0x505c('0x55')]),_0x5e3ea1=_0xfcc73c[_0x505c('0x110')][_0x505c('0x65')](_0x2113e6['moveTargetPosition']);break;case _0x505c('0xd9'):_0x366d4b=_0xfcc73c[_0x505c('0x110')][_0x505c('0x65')](_0x2113e6['targetPosition']),_0x5e3ea1=_0x366d4b[_0x505c('0x1b')](_0x2113e6[_0x505c('0xec')]);break;default:return;}const _0x331864=_0xfcc73c[_0x505c('0x110')]['createRange'](_0x366d4b,_0x5e3ea1);_0xfcc73c['model'][_0x505c('0xff')](()=>{for(const {suggestion:_0x570538,meta:_0x4bb097}of this[_0x505c('0x11e')](_0x331864)){if(_0x570538[_0x505c('0xf1')])continue;if('formatInline'==_0x570538[_0x505c('0x98')])continue;const _0x4ab535=_0x570538[_0x505c('0xd3')]&&_0x570538[_0x505c('0xd3')]['multipleBlocks'];('formatBlock'!=_0x570538[_0x505c('0x98')]||_0x505c('0xc3')==_0x2113e6[_0x505c('0x98')]&&!_0x4ab535)&&(_0x4bb097['containsRangeInObject']||'insertion'==_0x570538[_0x505c('0x98')]&&_0x4bb097[_0x505c('0xc4')]||_0x570538[_0x505c('0x20')]()['containsRange'](_0x331864)&&this[_0x505c('0x84')](_0x570538,_0x366d4b,_0x5e3ea1));}});},{'priority':'lowest'}),_0xfcc73c[_0x505c('0x110')]['on'](_0x505c('0x11c'),(_0x541c9f,_0x27833d)=>{const _0x1b90ae=_0x27833d[0x0],_0x288aec=_0x27833d[0x1];if(_0x288aec&&_0x288aec['forceDefaultExecution'])return;if(this[_0x505c('0xf7')])return;if(!this['trackChangesCommand'][_0x505c('0x73')])return;if(_0x1b90ae[_0x505c('0x132')])return;const _0x2f8966=_0xfcc73c['model'][_0x505c('0x107')],{start:_0x3120e1,end:_0x1a1dd2}=_0x1b90ae[_0x505c('0x20')](),_0x4e6240=_0x3120e1[_0x505c('0xba')]&&_0x2f8966[_0x505c('0x9e')](_0x3120e1[_0x505c('0xba')])?null:_0x2f8966['getNearestSelectionRange'](_0x3120e1,_0x505c('0x115')),_0x44179c=_0x1a1dd2[_0x505c('0x24')]&&_0x2f8966[_0x505c('0x9e')](_0x1a1dd2[_0x505c('0x24')])?null:_0x2f8966[_0x505c('0x10e')](_0x1a1dd2,_0x505c('0x12a')),_0x2747b4=_0xfcc73c[_0x505c('0x110')][_0x505c('0xab')](_0x4e6240?_0x4e6240[_0x505c('0x103')]:_0x3120e1,_0x44179c?_0x44179c['end']:_0x1a1dd2);_0xfcc73c[_0x505c('0x110')][_0x505c('0xff')](_0x286494=>{this[_0x505c('0x11a')](_0x2747b4);const _0x1f6653=_0xfcc73c['model'][_0x505c('0x107')][_0x505c('0x10e')](_0x2747b4[_0x505c('0x103')]);_0x1b90ae['is'](_0x505c('0x127'))?_0x286494[_0x505c('0x2e')](_0x1f6653):_0x1b90ae[_0x505c('0xc')](_0x1f6653);}),_0x541c9f[_0x505c('0x134')]();},{'priority':_0x3338f3[_0x505c('0x49')]+0xa}),_0xfcc73c[_0x505c('0x110')]['on']('insertContent',(_0x40d875,_0x341c36)=>{const _0x5bcef2=_0x341c36[_0x341c36[_0x505c('0x8e')]-0x1];_0x5bcef2&&_0x5bcef2['forceDefaultExecution']||this[_0x505c('0xf7')]||this[_0x505c('0xae')][_0x505c('0x73')]&&(_0xfcc73c['model']['change'](()=>{let _0xce1962=_0xfcc73c[_0x505c('0x110')][_0x505c('0xe4')](_0x341c36[0x0],_0x341c36[0x1],_0x341c36[0x2],{'forceDefaultExecution':!0x0});if(!_0xce1962)return;_0x40d875[_0x505c('0x120')]=_0xce1962[_0x505c('0xb7')]();const _0x12d27b=_0xce1962[_0x505c('0x135')]['nodeBefore'],_0x54b9c9=_0xfcc73c['model']['schema'];_0x12d27b&&_0x54b9c9['isBlock'](_0x12d27b)&&!_0x54b9c9[_0x505c('0xcf')](_0x12d27b)&&(_0xce1962=_0xfcc73c[_0x505c('0x110')]['createRange'](_0xce1962['start'],_0xfcc73c[_0x505c('0x110')][_0x505c('0x65')](_0x12d27b,_0x505c('0x135')))),this[_0x505c('0x78')](_0xce1962);}),_0x40d875[_0x505c('0x134')]());},{'priority':_0x505c('0x5d')}),this[_0x505c('0xd6')]['commands'][_0x505c('0x2c')](_0x505c('0x1f'),this['trackChangesCommand']),this[_0x505c('0x70')](_0x505c('0x1f'));const _0x318247=new _0x1ea979(_0xfcc73c,this[_0x505c('0xee')]);_0xfcc73c[_0x505c('0x2b')][_0x505c('0x2c')]('acceptSuggestion',_0x318247),this[_0x505c('0x70')]('acceptSuggestion');const _0x5d5650=new _0x4135ca(_0xfcc73c,this[_0x505c('0xee')]);_0xfcc73c[_0x505c('0x2b')]['add'](_0x505c('0x6f'),_0x5d5650),this[_0x505c('0x70')](_0x505c('0x6f')),_0xfcc73c[_0x505c('0x2b')][_0x505c('0x2c')](_0x505c('0xd1'),new _0xf7c60c(_0xfcc73c,_0x318247,this[_0x505c('0xee')])),this['enableCommand'](_0x505c('0xd1')),_0xfcc73c['commands']['add']('discardAllSuggestions',new _0xf7c60c(_0xfcc73c,_0x5d5650,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xfcc73c[_0x505c('0x2b')][_0x505c('0x2c')]('acceptSelectedSuggestions',new _0x39a61f(_0xfcc73c,_0x318247,this[_0x505c('0xee')])),this[_0x505c('0x70')](_0x505c('0xa6')),_0xfcc73c[_0x505c('0x2b')][_0x505c('0x2c')](_0x505c('0xb2'),new _0x39a61f(_0xfcc73c,_0x5d5650,this['_suggestions'])),this[_0x505c('0x70')](_0x505c('0xb2'));const _0x59dc5e=_0xfcc73c['plugins'][_0x505c('0xc9')](_0x505c('0x38'));this[_0x505c('0x2d')](_0x59dc5e,_0x505c('0xb4'),(_0x43183c,{threadId:_0xa872d2})=>{const _0x1c3df5=this[_0x505c('0xee')][_0x505c('0xc9')](_0xa872d2);_0x1c3df5&&_0x1c3df5['commentThread']&&0x1===_0x1c3df5[_0x505c('0xa4')]['length']&&this[_0x505c('0x86')](_0xa872d2,{'hasComments':!0x0});},{'priority':_0x505c('0x7e')}),this[_0x505c('0x2d')](_0x59dc5e,_0x505c('0xd0'),(_0xe302a5,{threadId:_0x189681})=>{const _0x56f23d=this['_suggestions'][_0x505c('0xc9')](_0x189681);_0x56f23d&&_0x56f23d['commentThread']&&!_0x56f23d[_0x505c('0xa4')][_0x505c('0x8e')]&&this[_0x505c('0x86')](_0x189681,{'hasComments':!0x1});},{'priority':_0x505c('0x7e')});}set[_0x505c('0xe0')](_0x5557d2){if(this[_0x505c('0x12e')])throw new _0x1dd7d0(_0x505c('0xef'),this);this[_0x505c('0x12e')]=_0x5557d2;}get[_0x505c('0xe0')](){return this[_0x505c('0x12e')];}[_0x505c('0xcc')]({skipNotAttached:_0x2f8a7f=!0x1,toJSON:_0x2957de=!0x1}={}){const _0xe7793b=[];for(const _0x48011e of this['_suggestions'][_0x505c('0x3d')]())_0x2f8a7f&&!_0x48011e['isInContent']||_0xe7793b[_0x505c('0x3a')](_0x48011e);return _0x2957de?_0xe7793b[_0x505c('0xa2')](_0x3c9393=>_0x3c9393[_0x505c('0x56')]()):_0xe7793b;}[_0x505c('0xf0')](_0x47fab7){const _0x2e50f4=this['_suggestions']['get'](_0x47fab7);if(!_0x2e50f4)throw new _0x1dd7d0('track-changes-suggestion-not-found',this);return _0x2e50f4;}[_0x505c('0x72')](_0x3eeee7){return this['_suggestions'][_0x505c('0x26')](_0x3eeee7);}[_0x505c('0x124')](_0x583c19){const {authorId:_0x455e8e,id:_0x2243de,attributes:_0x163176}=_0x583c19,[_0xf77646,_0xdc8a4c]=_0x583c19[_0x505c('0x98')][_0x505c('0xc3')](':'),_0x481b67=this[_0x505c('0xee')][_0x505c('0xc9')](_0x2243de)||this[_0x505c('0x79')](_0xf77646,_0xdc8a4c,_0x2243de,_0x455e8e,_0x163176);if(this[_0x505c('0x109')](_0x481b67),this[_0x505c('0x30')](_0x481b67,_0xf77646,_0xdc8a4c||null,_0x455e8e),_0x481b67[_0x505c('0xb5')]=_0x583c19[_0x505c('0xb5')],_0x163176&&_0x163176[_0x505c('0x63')]){const _0x48d08e=_0x163176[_0x505c('0x63')],_0x2f8725=this['_getExternalAuthor'](_0x48d08e['authorName']);_0x481b67[_0x505c('0xca')]=_0x48d08e[_0x505c('0xb5')],_0x481b67[_0x505c('0xc6')]=_0x2f8725,_0x481b67[_0x505c('0x23')]=!0x0;}else _0x481b67['authoredAt']=_0x583c19[_0x505c('0xb5')];switch(_0x583c19['data']&&(_0x481b67[_0x505c('0xd3')]=_0x583c19[_0x505c('0xd3')]),_0x583c19[_0x505c('0x2a')]&&(_0x481b67['attributes']=_0x583c19['attributes']),this[_0x505c('0x12e')]&&this[_0x505c('0x12e')][_0x505c('0x9f')]||(_0x481b67[_0x505c('0xb6')]=!0x0),this[_0x505c('0x8f')]['get'](_0x481b67)){case _0x505c('0x29'):this[_0x505c('0x8f')][_0x505c('0xb')](_0x481b67,_0x505c('0xb8'));break;case _0x505c('0xbb'):_0x481b67[_0x505c('0x7a')]?(this[_0x505c('0x8f')][_0x505c('0xb')](_0x481b67,_0x505c('0x15')),this[_0x505c('0xf5')](_0x505c('0x41'),_0x481b67)):this['_suggestionState'][_0x505c('0xb')](_0x481b67,_0x505c('0x58'));}return _0x481b67;}[_0x505c('0x43')](_0x17fdb9){this[_0x505c('0x121')](()=>{this[_0x505c('0xd6')]['model'][_0x505c('0xff')](()=>{for(const _0x224417 of _0x17fdb9[_0x505c('0x45')]())_0x224417[_0x505c('0xf6')]();});});}['discardSuggestion'](_0x3550ed){this[_0x505c('0x121')](()=>{this[_0x505c('0xd6')][_0x505c('0x110')][_0x505c('0xff')](()=>{for(const _0x1e8227 of _0x3550ed[_0x505c('0x45')]())_0x1e8227[_0x505c('0x92')]();});});}['enableCommand'](_0xfb8087,_0x4ed0ca){const _0x393210=this[_0x505c('0xd6')][_0x505c('0x2b')][_0x505c('0xc9')](_0xfb8087);if(!_0x393210)throw new _0x1dd7d0('track-changes-command-not-found',this,{'commandName':_0xfb8087});this['_enabledCommands'][_0x505c('0x2c')](_0x393210),_0x4ed0ca&&_0x393210['on'](_0x505c('0xe'),(_0x3e2975,_0x2bcdfc)=>{this[_0x505c('0xae')][_0x505c('0x73')]&&(this[_0x505c('0xf7')]||_0x2bcdfc[_0x505c('0x8e')]>0x0&&_0x2bcdfc[_0x2bcdfc[_0x505c('0x8e')]-0x1]&&_0x2bcdfc[_0x2bcdfc[_0x505c('0x8e')]-0x1][_0x505c('0x121')]||(_0x4ed0ca((..._0x38be0f)=>_0x393210[_0x505c('0xe')](..._0x38be0f,{'forceDefaultExecution':!0x0}),..._0x2bcdfc),_0x3e2975['stop']()));},{'priority':_0x505c('0x5d')});}[_0x505c('0x121')](_0x1fd766){let _0x56e26d,_0x3fba97;const _0x2353e6=this[_0x505c('0xf7')];this[_0x505c('0xf7')]=!0x0;try{_0x56e26d=_0x1fd766();}catch(_0x4448e1){_0x3fba97=_0x4448e1;}return _0x2353e6||(this[_0x505c('0xf7')]=!0x1),_0x3fba97&&_0x1dd7d0[_0x505c('0x48')](_0x3fba97,this),_0x56e26d;}[_0x505c('0x78')](_0x59cb65,_0x2c0f00=null,_0x380c8f={}){if(_0x59cb65[_0x505c('0x132')])return null;const _0x370d70=this[_0x505c('0xd6')]['plugins']['get'](_0x505c('0xdc'))['me'];for(const {suggestion:_0x5b7fa1,meta:_0xbfb3c}of this[_0x505c('0x11e')](_0x59cb65,_0x505c('0xcd')))if(_0xbfb3c['isOwn']){if(!_0xbfb3c[_0x505c('0x108')]){if(!this[_0x505c('0x5e')]&&_0xbfb3c[_0x505c('0x126')])continue;return _0x5b7fa1;}if(_0x2c0f00==_0x5b7fa1[_0x505c('0xf3')]){const _0x340934=_0x5b7fa1[_0x505c('0x20')]();return _0x340934[_0x505c('0x103')]['isEqual'](_0x59cb65[_0x505c('0x135')])?this['_setSuggestionRange'](_0x5b7fa1,this['_model'][_0x505c('0xab')](_0x59cb65[_0x505c('0x103')],_0x340934[_0x505c('0x135')])):this['_setSuggestionRange'](_0x5b7fa1,this[_0x505c('0x83')]['createRange'](_0x340934['start'],_0x59cb65[_0x505c('0x135')])),_0x5b7fa1;}}const _0x5d9d20=_0x226cf0(),_0x5ccec9=_0x370d70['id'],_0x5bda67=_0x2c0f00?_0x505c('0xdb')+_0x2c0f00:_0x505c('0xcd'),_0x456d16=this[_0x505c('0x4c')]({'id':_0x5d9d20,'type':_0x5bda67,'createdAt':new Date(),'authorId':_0x5ccec9,'attributes':_0x380c8f});return this['_addSuggestionMarker'](_0x5bda67,_0x5d9d20,_0x5ccec9,_0x59cb65),_0x456d16;}[_0x505c('0x7c')](_0x4c8706,_0x209059=_0x505c('0xbe'),_0x4d2188={}){const _0x334672=this[_0x505c('0xd6')][_0x505c('0x2f')][_0x505c('0xc9')](_0x505c('0xdc'))['me'],_0x2a6922=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0xcd'),_0x209059,_0x505c('0x75'));for(const _0x46ca7d of this[_0x505c('0xcc')]())if(_0x46ca7d['author']['id']==_0x334672['id']&&'insertion'==_0x46ca7d[_0x505c('0x98')]&&_0x46ca7d[_0x505c('0xf3')]==_0x209059&&(_0x2a6922(_0x46ca7d[_0x505c('0x60')](),_0x4c8706)||_0x2a6922(_0x4c8706,_0x46ca7d[_0x505c('0x60')]()))){for(const _0x2456cb of _0x4c8706)_0x46ca7d[_0x505c('0x113')](_0x2456cb);return _0x46ca7d;}if(this[_0x505c('0x5e')])for(const _0x588ed7 of _0x4c8706)for(const {suggestion:_0x3f8e64,meta:_0x358a27}of this['_findSuggestions'](_0x588ed7,'insertion')){if(!_0x358a27[_0x505c('0xc4')])continue;let _0x52dc76=!0x0;for(const _0x1d01dc of _0x3f8e64[_0x505c('0x60')]())for(const _0xc32c7d of _0x4c8706)if(!_0x1d01dc[_0x505c('0xdd')](_0xc32c7d)){_0x52dc76=!0x1;break;}if(_0x52dc76)return _0x3f8e64;}const _0x32fb17=_0x226cf0(),_0x282411=_0x334672['id'],_0x3de328=_0x505c('0xdb')+_0x209059,_0x2003a3=this[_0x505c('0x4c')]({'id':_0x32fb17,'type':_0x3de328,'createdAt':new Date(),'authorId':_0x282411,'attributes':_0x4d2188});for(const _0x58104c of _0x4c8706)this[_0x505c('0x31')](_0x3de328,_0x32fb17,_0x282411,_0x58104c,_0x492b8e[_0x505c('0x122')]());return _0x2003a3;}['markInlineFormat'](_0x42076f,_0x2a19f4,_0x234c9d=null,_0x33c3c6={}){if(_0x234c9d=_0x234c9d||$t(_0x2a19f4),_0x42076f[_0x505c('0x132')])return null;if('never'===this[_0x505c('0x62')]){const _0x33cb23=this[_0x505c('0x116')][_0x505c('0x3b')]('formatInline',_0x234c9d,'accept');return this[_0x505c('0x121')](()=>_0x33cb23([_0x42076f],_0x2a19f4,_0x33c3c6)),null;}const _0x56bed5=this[_0x505c('0xd6')][_0x505c('0x2f')][_0x505c('0xc9')]('Users')['me'],_0x472dd6=[];if('always'!==this[_0x505c('0x62')])for(const {suggestion:_0x1c916f,meta:_0x3f114f}of this[_0x505c('0x11e')](_0x42076f,_0x505c('0xcd')))_0x3f114f[_0x505c('0xc4')]&&!_0x3f114f[_0x505c('0x3c')]&&_0x472dd6[_0x505c('0x3a')](..._0x1c916f[_0x505c('0x60')]());const _0x4825bb=function(_0x244b20,_0x5de4d2){const _0x5d8b20=[];for(const _0x2120ca of _0x5de4d2){const _0x5c7b95=_0x244b20[_0x505c('0xa1')](_0x2120ca);_0x5c7b95&&_0x5d8b20[_0x505c('0x3a')](_0x5c7b95);}return _0x5d8b20;}(_0x42076f,_0x472dd6),_0x92348e=function(_0xb8ed9b,_0x316ecf){const _0x3bde23=[_0xb8ed9b];for(const _0x3e853f of _0x316ecf){let _0x26bbd9=0x0;for(;_0x26bbd9<_0x3bde23['length'];){const _0x2113f1=_0x3bde23[_0x26bbd9][_0x505c('0x10')](_0x3e853f);_0x3bde23[_0x505c('0x1')](_0x26bbd9,0x1,..._0x2113f1),_0x26bbd9+=_0x2113f1[_0x505c('0x8e')];}}return _0x3bde23;}(_0x42076f,_0x472dd6);_0x4825bb[_0x505c('0x8e')]&&this[_0x505c('0x83')][_0x505c('0xff')](()=>{for(const _0x5ee958 of _0x4825bb){const _0x307971=this['_suggestionFactory']['getSuggestionCallback'](_0x505c('0x50'),_0x234c9d,'accept');this[_0x505c('0x121')](()=>_0x307971([_0x5ee958],_0x2a19f4,_0x33c3c6));}});for(const _0x9505f4 of _0x92348e){let _0x1fd4b5=null,_0x45dec6=_0x9505f4[_0x505c('0x103')],_0x386219=_0x9505f4[_0x505c('0x135')];for(const {suggestion:_0xf86a78,meta:_0x2edd32}of this['_findSuggestions'](_0x9505f4,_0x505c('0x50'))){if(!_0x2edd32[_0x505c('0xc4')])continue;if(_0xf86a78[_0x505c('0xf3')]!=_0x234c9d)continue;const _0x587a4f=_0xf86a78[_0x505c('0x20')]();if(_0x587a4f[_0x505c('0xdd')](_0x9505f4,!0x0))return null;_0x45dec6=_0x45dec6[_0x505c('0x131')](_0x587a4f['start'])?_0x45dec6:_0x587a4f[_0x505c('0x103')],_0x386219=_0x386219[_0x505c('0x95')](_0x587a4f[_0x505c('0x135')])?_0x386219:_0x587a4f['end'],_0x1fd4b5?_0x587a4f[_0x505c('0x103')]['isBefore'](_0x1fd4b5[_0x505c('0x20')]()[_0x505c('0x103')])?(_0x1fd4b5[_0x505c('0xc0')](),_0x1fd4b5=_0xf86a78):_0xf86a78[_0x505c('0xc0')]():_0x1fd4b5=_0xf86a78;}const _0xf142f6=this[_0x505c('0x83')]['createRange'](_0x45dec6,_0x386219);if(_0x1fd4b5)this[_0x505c('0x25')](_0x1fd4b5,_0xf142f6);else{const _0x483e46=_0x226cf0(),_0xe3d670=_0x56bed5['id'];this['_setSuggestionData']({'id':_0x483e46,'type':_0x505c('0x133')+_0x234c9d,'data':_0x2a19f4,'createdAt':new Date(),'authorId':_0xe3d670,'attributes':_0x33c3c6}),this[_0x505c('0x31')]('formatInline:'+_0x234c9d,_0x483e46,_0xe3d670,_0xf142f6);}}return null;}[_0x505c('0xb1')](_0x25d64d,_0x5dd056,_0x17f9e8=[],_0x111025=null,_0x4a9095={}){_0x5dd056[_0x505c('0x42')]||(_0x5dd056[_0x505c('0x42')]=_0x5dd056[_0x505c('0x96')]),_0x5dd056[_0x505c('0x5b')]=_0x25d64d['is']('range'),_0x111025=_0x111025||$t(_0x5dd056);const _0x5b43c2=_0x17f9e8[_0x505c('0xa2')](_0x111eca=>Rt(_0x111eca,this[_0x505c('0x83')])),_0x2172a5=_0x25d64d['is']('range')?_0x25d64d:Rt(_0x25d64d,this['_model']);if('never'===this[_0x505c('0x62')]){const _0x4b0520=this['_suggestionFactory'][_0x505c('0x3b')]('formatBlock',_0x111025,_0x505c('0xf6'));return this[_0x505c('0x121')](()=>_0x4b0520([_0x2172a5],_0x5dd056,_0x4a9095)),null;}_0x5b43c2[_0x505c('0x3a')](_0x2172a5);let _0x226324=!0x0;for(const _0x11b35a of _0x5b43c2)if(!this[_0x505c('0xcb')](_0x11b35a)){_0x226324=!0x1;break;}if(_0x226324&&_0x505c('0xa8')!==this[_0x505c('0x62')]){const _0x217378=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0xa5'),_0x111025,_0x505c('0xf6'));return this[_0x505c('0x121')](()=>_0x217378([_0x2172a5],_0x5dd056,_0x4a9095)),null;}let _0x33fc36=null,_0x115a28=_0x2172a5['start'],_0x400a65=_0x2172a5[_0x505c('0x135')];for(const {suggestion:_0x10f6f7,meta:_0x35909a}of this[_0x505c('0x11e')](_0x2172a5,_0x505c('0xa5'))){if(!_0x35909a['isOwn']||_0x35909a['isNextTo']||_0x35909a['containsRangeInObject']||_0x35909a[_0x505c('0x3c')])continue;if(_0x10f6f7['data'][_0x505c('0x42')]!=_0x5dd056['formatGroupId'])continue;const _0x492560=_0x10f6f7['getFirstRange']();if(_0x10f6f7[_0x505c('0xf3')]==_0x111025){if(_0x492560[_0x505c('0xdd')](_0x2172a5,!0x0))return null;_0x115a28=_0x115a28[_0x505c('0x131')](_0x492560[_0x505c('0x103')])?_0x115a28:_0x492560['start'],_0x400a65=_0x400a65[_0x505c('0x95')](_0x492560[_0x505c('0x135')])?_0x400a65:_0x492560[_0x505c('0x135')],_0x33fc36?_0x492560[_0x505c('0x103')][_0x505c('0x131')](_0x33fc36[_0x505c('0x20')]()[_0x505c('0x103')])?(_0x33fc36[_0x505c('0xc0')](),_0x33fc36=_0x10f6f7):_0x10f6f7['removeMarkers']():_0x33fc36=_0x10f6f7;}else{const _0x93d125=_0x2172a5['getIntersection'](_0x492560);this[_0x505c('0xd8')](_0x10f6f7,_0x93d125);}}const _0x39623a=this['editor']['plugins']['get'](_0x505c('0xdc'))['me'],_0x44a226=_0x226cf0(),_0x64e140=_0x39623a['id'];if(_0x33fc36)return this[_0x505c('0x25')](_0x33fc36,this[_0x505c('0x83')][_0x505c('0xab')](_0x115a28,_0x400a65)),_0x33fc36;{const _0x551485=this[_0x505c('0x4c')]({'id':_0x44a226,'type':'formatBlock:'+_0x111025,'data':_0x5dd056,'createdAt':new Date(),'authorId':_0x64e140,'attributes':_0x4a9095});return this[_0x505c('0x31')](_0x505c('0xeb')+_0x111025,_0x44a226,_0x64e140,this[_0x505c('0x83')][_0x505c('0xab')](_0x115a28,_0x400a65)),_0x551485;}}[_0x505c('0xe2')](_0x1a77df,_0x574e56,_0x2adf46=[],_0x115eb0=null,_0x3d7faf={}){_0x574e56['formatGroupId']||(_0x574e56[_0x505c('0x42')]=_0x574e56[_0x505c('0x96')]);const _0x1f8e43=_0x1a77df[0x0];_0x574e56[_0x505c('0x5b')]=_0x1f8e43['is'](_0x505c('0x1c')),_0x115eb0=_0x115eb0||$t(_0x574e56);const _0xbeb56f=_0x2adf46[_0x505c('0xa2')](_0x337169=>Rt(_0x337169,this[_0x505c('0x83')])),_0x53beb6=_0x1f8e43['is']('range')?_0x1a77df:_0x1a77df[_0x505c('0xa2')](_0x1c42c5=>Rt(_0x1c42c5,this[_0x505c('0x83')]));if('never'===this[_0x505c('0x62')]){const _0x192aab=this['_suggestionFactory']['getSuggestionCallback'](_0x505c('0xa5'),_0x115eb0,_0x505c('0xf6'));return this[_0x505c('0x121')](()=>_0x192aab(_0x53beb6,_0x574e56,_0x3d7faf)),null;}_0xbeb56f[_0x505c('0x3a')](..._0x53beb6);let _0x3bd561=!0x0;for(const _0x40a513 of _0xbeb56f)if(!this['_rangeIsInLocalUserInsertion'](_0x40a513)){_0x3bd561=!0x1;break;}if(_0x3bd561&&'always'!==this[_0x505c('0x62')]){const _0x190f72=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0xa5'),_0x115eb0,'accept');return this['forceDefaultExecution'](()=>_0x190f72(_0x53beb6,_0x574e56,_0x3d7faf)),null;}const _0x4e00b0=this[_0x505c('0xd6')]['plugins'][_0x505c('0xc9')](_0x505c('0xdc'))['me'];for(const _0x9ac6 of this[_0x505c('0xcc')]()){if(_0x9ac6['author']['id']!=_0x4e00b0['id'])continue;if(_0x505c('0xa5')!=_0x9ac6['type']||_0x9ac6[_0x505c('0xd3')][_0x505c('0x42')]!=_0x574e56[_0x505c('0x42')])continue;const _0x38971d=_0x9ac6[_0x505c('0xf3')]==_0x115eb0;for(let _0x4bcb97=0x0;_0x4bcb97<_0x53beb6[_0x505c('0x8e')];_0x4bcb97++){const _0x5dbf6c=_0x53beb6[_0x4bcb97];for(const _0x91a9e1 of _0x9ac6['getMarkers']()){const _0x18aab8=_0x91a9e1[_0x505c('0xe9')]();if(_0x5dbf6c['isEqual'](_0x18aab8)){_0x38971d?(_0x53beb6[_0x505c('0x1')](_0x4bcb97,0x1),_0x4bcb97--):_0x9ac6[_0x505c('0xe5')](_0x91a9e1[_0x505c('0x118')]);break;}}}}if(0x0==_0x53beb6[_0x505c('0x8e')])return null;const _0x4ef21b=this[_0x505c('0x116')][_0x505c('0x3b')]('formatBlock',_0x115eb0,'join');for(const _0x11d588 of this[_0x505c('0xcc')]())if(_0x11d588[_0x505c('0xc6')]['id']==_0x4e00b0['id']&&_0x505c('0xa5')==_0x11d588[_0x505c('0x98')]&&_0x11d588[_0x505c('0xd3')][_0x505c('0x42')]==_0x574e56[_0x505c('0x42')]&&_0x11d588[_0x505c('0xf3')]==_0x115eb0&&(_0x4ef21b(_0x11d588['getRanges'](),_0x53beb6)||_0x4ef21b(_0x53beb6,_0x11d588[_0x505c('0x60')]()))){for(const _0x3dc391 of _0x53beb6)_0x11d588[_0x505c('0x113')](_0x3dc391);return _0x11d588;}const _0x18d5f8=_0x226cf0(),_0x401f60=_0x4e00b0['id'],_0x26a34e='formatBlock:'+_0x115eb0,_0x45b573=this['_setSuggestionData']({'id':_0x18d5f8,'type':_0x26a34e,'data':_0x574e56,'createdAt':new Date(),'authorId':_0x401f60,'attributes':_0x3d7faf});for(const _0x27c453 of _0x53beb6)this[_0x505c('0x31')](_0x26a34e,_0x18d5f8,_0x401f60,_0x27c453,_0x492b8e[_0x505c('0x122')]());return _0x45b573;}[_0x505c('0x11a')](_0x6ef183,_0x1a4549=null,_0x9e611f={}){if(_0x6ef183['isCollapsed'])return null;const _0x517983=this[_0x505c('0xd6')][_0x505c('0x2f')][_0x505c('0xc9')](_0x505c('0xdc'))['me'],_0x18effc=new _0x12fcf0(_0x6ef183['start'],_0x6ef183[_0x505c('0x135')]);for(const {suggestion:_0x225565,meta:_0x1d0311}of this[_0x505c('0x11e')](_0x18effc,'insertion'))if(_0x1d0311[_0x505c('0xc4')]&&!_0x1d0311[_0x505c('0x108')]){if(_0x225565[_0x505c('0xf1')]){const _0x5273ec=_0x225565[_0x505c('0x60')]()[_0x505c('0x10d')](_0x2568f3=>_0x505c('0x16')!=_0x2568f3[_0x505c('0xd2')][_0x505c('0x91')]);_0x5273ec['every'](_0x41eeed=>_0x18effc['containsRange'](_0x41eeed,!0x0))&&_0x225565[_0x505c('0x92')]();if(_0x5273ec['some'](_0x59b47c=>_0x59b47c[_0x505c('0xdd')](_0x18effc,!0x0))){const _0x4186b6=this['_suggestionFactory']['getSuggestionCallback'](_0x505c('0x9d'),_0x1a4549,'accept');return this[_0x505c('0x121')](()=>_0x4186b6([_0x18effc],null,_0x9e611f)),null;}}else{const _0x58ac62=_0x18effc[_0x505c('0xa1')](_0x225565[_0x505c('0x20')]());null!==_0x58ac62&&_0x225565[_0x505c('0xe7')]([_0x58ac62],null,_0x9e611f);}}if(_0x18effc['detach'](),_0x18effc[_0x505c('0x132')]||'$graveyard'==_0x18effc['root'][_0x505c('0x91')])return null;let _0x173d14=null,_0xd31a26=_0x18effc['start'],_0x166a4f=_0x18effc[_0x505c('0x135')];for(const {suggestion:_0x23ec72,meta:_0x1f22e7}of this[_0x505c('0x11e')](_0x18effc,'deletion'))if(_0x1f22e7['isOwn']){if(_0x23ec72[_0x505c('0xf1')]&&this[_0x505c('0x5e')]){let _0x3502cf=!0x0;for(const _0x9ba429 of _0x23ec72[_0x505c('0x60')]()){if(_0x9ba429[_0x505c('0xdd')](_0x18effc,!0x0))return _0x23ec72;_0x18effc[_0x505c('0xdd')](_0x9ba429)||(_0x3502cf=!0x1);}_0x3502cf&&_0x23ec72[_0x505c('0x92')]();}else{const _0x9b7302=_0x23ec72['getFirstRange']();if(_0x9b7302[_0x505c('0xdd')](_0x18effc,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x1f22e7[_0x505c('0x126')])continue;return _0x23ec72;}_0xd31a26=_0xd31a26[_0x505c('0x131')](_0x9b7302[_0x505c('0x103')])?_0xd31a26:_0x9b7302[_0x505c('0x103')],_0x166a4f=_0x166a4f[_0x505c('0x95')](_0x9b7302[_0x505c('0x135')])?_0x166a4f:_0x9b7302[_0x505c('0x135')],_0x173d14?_0x9b7302[_0x505c('0x103')]['isBefore'](_0x173d14['getFirstRange']()[_0x505c('0x103')])?(_0x173d14['removeMarkers'](),_0x173d14=_0x23ec72):_0x23ec72[_0x505c('0xc0')]():_0x173d14=_0x23ec72;}}if(_0x173d14)return this[_0x505c('0x25')](_0x173d14,this['_model'][_0x505c('0xab')](_0xd31a26,_0x166a4f)),_0x173d14;{const _0x10b39b=_0x226cf0(),_0x1b6c3b=this[_0x505c('0x83')][_0x505c('0xab')](_0xd31a26,_0x166a4f),_0x3a0f15=_0x517983['id'],_0x18f5cd=_0x1a4549?_0x505c('0x5f')+_0x1a4549:'deletion',_0x5567c4=this['_setSuggestionData']({'id':_0x10b39b,'type':_0x18f5cd,'createdAt':new Date(),'authorId':_0x3a0f15,'attributes':_0x9e611f});return this['_addSuggestionMarker'](_0x18f5cd,_0x10b39b,_0x3a0f15,_0x1b6c3b),_0x5567c4;}}[_0x505c('0x68')](_0x1f4c96,_0x577b31=_0x505c('0xbe'),_0x5cde9c={}){const _0x28794b=this[_0x505c('0xd6')][_0x505c('0x2f')][_0x505c('0xc9')]('Users')['me'],_0x4bfcf4=_0x1f4c96[_0x505c('0xa2')](_0x359438=>new _0x12fcf0(_0x359438['start'],_0x359438['end'])),_0x27cedc=new Set();for(const _0x444a8c of _0x4bfcf4)for(const {suggestion:_0x3d811e,meta:_0xc1fca6}of this[_0x505c('0x11e')](_0x444a8c,_0x505c('0xcd')))_0xc1fca6[_0x505c('0xc4')]&&!_0xc1fca6[_0x505c('0x108')]&&_0x27cedc[_0x505c('0x2c')](_0x3d811e);for(const _0x36cfb7 of _0x27cedc)if(_0x36cfb7[_0x505c('0xf1')]){const _0x5d39ec=_0x36cfb7['getRanges']();(!_0x36cfb7[_0x505c('0x2a')]||!_0x36cfb7['attributes'][_0x505c('0x57')])&&(_0x5d39ec[_0x505c('0xc1')](_0x3cf8aa=>_0x4bfcf4[_0x505c('0xbc')](_0x1eccc6=>_0x1eccc6['containsRange'](_0x3cf8aa,!0x0)))&&_0x36cfb7[_0x505c('0x92')]());if(_0x4bfcf4[_0x505c('0xc1')](_0x5dd028=>_0x5d39ec[_0x505c('0xbc')](_0x23baa1=>_0x23baa1['containsRange'](_0x5dd028,!0x0)))){const _0x4891b9=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0x9d'),_0x577b31,'accept');return this[_0x505c('0x121')](()=>_0x4891b9(_0x1f4c96,null,_0x5cde9c)),null;}}else{const _0xcacb09=_0x36cfb7[_0x505c('0x20')]();_0x4bfcf4[_0x505c('0xbc')](_0x33e66f=>_0x33e66f['containsRange'](_0xcacb09,!0x0))&&_0x36cfb7[_0x505c('0x92')]();if(_0x4bfcf4[_0x505c('0xc1')](_0x13d99d=>_0xcacb09[_0x505c('0xdd')](_0x13d99d,!0x0))){const _0x399676=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0x9d'),_0x577b31,_0x505c('0xf6'));return this[_0x505c('0x121')](()=>_0x399676(_0x4bfcf4,null,_0x5cde9c)),null;}}const _0x4598e0=this[_0x505c('0x116')][_0x505c('0x3b')](_0x505c('0x9d'),_0x577b31,_0x505c('0x75'));let _0x3e705e=null;for(const _0x53ed06 of this[_0x505c('0xcc')]())if(_0x53ed06[_0x505c('0xc6')]['id']==_0x28794b['id']&&_0x53ed06[_0x505c('0x7a')]&&_0x505c('0x9d')==_0x53ed06[_0x505c('0x98')]&&_0x53ed06[_0x505c('0xf3')]==_0x577b31&&(_0x4598e0(_0x53ed06[_0x505c('0x60')](),_0x4bfcf4)||_0x4598e0(_0x4bfcf4,_0x53ed06[_0x505c('0x60')]()))){if(_0x3e705e){if(_0x53ed06[_0x505c('0xa4')]&&_0x53ed06['commentThread'][_0x505c('0x8e')])continue;for(const _0x501c57 of _0x53ed06[_0x505c('0x60')]())_0x3e705e[_0x505c('0xe3')](_0x501c57)||_0x3e705e[_0x505c('0x113')](_0x501c57);_0x53ed06[_0x505c('0xc0')]();}else{_0x3e705e=_0x53ed06;for(const _0x3eb8da of _0x4bfcf4)_0x53ed06['isIntersectingWithRange'](_0x3eb8da)||_0x53ed06[_0x505c('0x113')](_0x3eb8da);}}if(_0x3e705e)return _0x3e705e;_0x27cedc['clear']();for(const _0x1df05c of _0x4bfcf4)for(const {suggestion:_0x15ae00,meta:_0x304a9c}of this[_0x505c('0x11e')](_0x1df05c,'deletion'))_0x304a9c[_0x505c('0xc4')]&&_0x27cedc[_0x505c('0x2c')](_0x15ae00);for(const _0x369f00 of _0x27cedc){const _0x3e4d37=_0x369f00[_0x505c('0x60')]();if(!_0x5cde9c||!_0x5cde9c[_0x505c('0x57')]){if(_0x4bfcf4['every'](_0x13106c=>_0x3e4d37[_0x505c('0xbc')](_0x2ba393=>_0x2ba393[_0x505c('0xdd')](_0x13106c,!0x0))))return _0x369f00;}(!_0x369f00[_0x505c('0x2a')]||!_0x369f00[_0x505c('0x2a')][_0x505c('0x57')])&&(_0x3e4d37[_0x505c('0xc1')](_0x3ae000=>_0x4bfcf4[_0x505c('0xbc')](_0x38a441=>_0x38a441['containsRange'](_0x3ae000,!0x0)))&&_0x369f00[_0x505c('0x92')]());}const _0xbe3a00=_0x226cf0(),_0x1665f1=_0x28794b['id'],_0x5ef6ad=_0x505c('0x5f')+_0x577b31,_0x49e61b=this[_0x505c('0x4c')]({'id':_0xbe3a00,'type':_0x5ef6ad,'createdAt':new Date(),'authorId':_0x1665f1,'attributes':_0x5cde9c});for(const _0x45d507 of _0x4bfcf4)_0x45d507['detach'](),_0x45d507[_0x505c('0x132')]||_0x505c('0x16')==_0x45d507[_0x505c('0xd2')][_0x505c('0x91')]||this[_0x505c('0x31')](_0x5ef6ad,_0xbe3a00,_0x1665f1,_0x45d507,_0x492b8e[_0x505c('0x122')]());return _0x49e61b;}[_0x505c('0x25')](_0x1395e8,_0x314075){const _0x4225d2=_0x1395e8[_0x505c('0x12c')]();this['_model'][_0x505c('0xff')](_0x362bcf=>{_0x362bcf[_0x505c('0x7')](_0x4225d2,{'range':_0x314075});});}[_0x505c('0x109')](_0x3469e4){const _0x4e68bf=_0x3469e4['id'],_0x598b71=this[_0x505c('0xd6')][_0x505c('0x74')]['get'](_0x505c('0x27'));this[_0x505c('0x11')][_0x505c('0x28')](_0x4e68bf)||this[_0x505c('0x11')]['addCommentThread']({'channelId':_0x598b71,'threadId':_0x4e68bf,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2567f1=this[_0x505c('0x11')]['getCommentThread'](_0x4e68bf);_0x2567f1[_0x505c('0x117')](_0x505c('0x6')),_0x2567f1[_0x505c('0x6')]=!0x1,_0x3469e4[_0x505c('0xa4')]=_0x2567f1;}[_0x505c('0x30')](_0x2b4167,_0xd7a227,_0x2f37f0,_0x484faf){if(_0x2b4167['type']!=_0xd7a227||_0x2b4167[_0x505c('0xf3')]!=_0x2f37f0||_0x2b4167[_0x505c('0x61')]['id']!=_0x484faf)throw this['editor'][_0x505c('0xaf')](_0x505c('0x123')),new _0x1dd7d0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b040,_0x52e3e9){const _0x11dcc7=_0x3b040[_0x505c('0x20')]();if(_0x52e3e9[_0x505c('0xa0')](_0x11dcc7))_0x3b040[_0x505c('0xc0')]();else{if(_0x11dcc7[_0x505c('0xdd')](_0x52e3e9)){const _0x3e0b5a=this[_0x505c('0x83')]['createPositionAt'](_0x52e3e9[_0x505c('0x103')]['nodeBefore'],_0x505c('0x135'));this[_0x505c('0x25')](_0x3b040,this['_model'][_0x505c('0xab')](_0x11dcc7['start'],_0x3e0b5a));const _0x309265=_0x226cf0(),_0x231452=_0x3b040[_0x505c('0x61')]['id'],_0x3137f3=_0x3b040['type']+':'+_0x3b040[_0x505c('0xf3')];this[_0x505c('0x4c')]({'id':_0x309265,'type':_0x3137f3,'createdAt':new Date(),'authorId':_0x231452,'data':_0x3b040[_0x505c('0xd3')],'attributes':_0x3b040['attributes']});const _0x594a84=this[_0x505c('0x83')][_0x505c('0x65')](_0x52e3e9[_0x505c('0x135')][_0x505c('0x6c')],'after'),_0x1f5732=this['_model'][_0x505c('0xab')](_0x594a84,_0x11dcc7[_0x505c('0x135')]);this['_addSuggestionMarker'](_0x3137f3,_0x309265,_0x231452,_0x1f5732);}else{if(_0x11dcc7[_0x505c('0x9a')](_0x52e3e9[_0x505c('0x103')])){const _0x531551=this[_0x505c('0x83')]['createPositionAt'](_0x52e3e9[_0x505c('0x103')][_0x505c('0x24')],_0x505c('0x135'));this[_0x505c('0x25')](_0x3b040,this[_0x505c('0x83')][_0x505c('0xab')](_0x11dcc7[_0x505c('0x103')],_0x531551));}else{const _0x4f7b1e=this[_0x505c('0x83')][_0x505c('0x65')](_0x52e3e9[_0x505c('0x135')][_0x505c('0x6c')],'after');this[_0x505c('0x25')](_0x3b040,this[_0x505c('0x83')]['createRange'](_0x4f7b1e,_0x11dcc7[_0x505c('0x135')]));}}}}[_0x505c('0xcb')](_0x4d6f56){for(const {suggestion:_0xefda90,meta:_0x40d9aa}of this['_findSuggestions'](_0x4d6f56,_0x505c('0xcd'))){if(!_0x40d9aa['isOwn'])continue;const _0x1d94f9=_0xefda90[_0x505c('0x60')]();for(const _0x5cf9f7 of _0x1d94f9)if(!_0x4d6f56[_0x505c('0x10')](_0x5cf9f7)[_0x505c('0x8e')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x33b11c){const _0x3232de=this[_0x505c('0xd6')][_0x505c('0x2f')]['get'](_0x505c('0xdc'))[_0x505c('0x8d')](_0x33b11c);if(!_0x3232de)throw new _0x1dd7d0(_0x505c('0x8c'),this);return _0x3232de;}[_0x505c('0xfe')](_0x4e98ff){const _0x553cab=this[_0x505c('0xd6')][_0x505c('0x2f')]['get'](_0x505c('0xdc')),_0x1f251f=_0x496d2d('external:'+_0x4e98ff),_0x4eac41=_0x553cab[_0x505c('0x8d')](_0x1f251f);return _0x4eac41||_0x553cab[_0x505c('0x111')]({'id':_0x1f251f,'name':_0x4e98ff});}[_0x505c('0x79')](_0x8ffa91,_0x13759c,_0x47e0f6,_0x3b1513,_0x37a2af){const _0x1bfb11=this['_getAuthorFromId'](_0x3b1513),_0x2b6225=this[_0x505c('0x116')][_0x505c('0x10b')](_0x8ffa91,_0x13759c,_0x47e0f6,_0x1bfb11,_0x37a2af,_0x315814=>this['_updateSuggestionData'](_0x47e0f6,{'attributes':_0x315814}));return this[_0x505c('0x2d')](_0x2b6225,_0x505c('0xf6'),()=>{this[_0x505c('0x86')](_0x47e0f6,{'state':_0x505c('0x11f')});},{'priority':_0x505c('0x5d')}),this['listenTo'](_0x2b6225,_0x505c('0x92'),()=>{this[_0x505c('0x86')](_0x47e0f6,{'state':'rejected'});},{'priority':_0x505c('0x5d')}),this[_0x505c('0xee')][_0x505c('0xb')](_0x47e0f6,_0x2b6225),this[_0x505c('0x8f')][_0x505c('0xb')](_0x2b6225,'notReady'),_0x2b6225;}[_0x505c('0x37')](_0x23f262){const _0x467f46=_0x23f262['split'](':');return{'group':_0x467f46[0x0],'type':_0x467f46[0x1],'subType':_0x467f46[_0x505c('0x8e')]>=0x5?_0x467f46[0x2]:null,'id':_0x467f46[_0x505c('0x8e')]<0x5?_0x467f46[0x2]:_0x467f46[0x3],'authorId':_0x467f46[_0x505c('0x8e')]<0x5?_0x467f46[0x3]:_0x467f46[0x4],'markerCount':0x6==_0x467f46[_0x505c('0x8e')]?_0x467f46[0x5]:null};}[_0x505c('0x84')](_0x46c60f,_0x3562d6,_0x18007c){const _0x509538=_0x46c60f['getFirstRange'](),_0x14372f=_0x509538['start'],_0x5cd094=_0x509538['end'];this[_0x505c('0x25')](_0x46c60f,this[_0x505c('0x83')][_0x505c('0xab')](_0x14372f,_0x3562d6));const _0x5d1f9e=_0x226cf0(),_0x4642f0=_0x46c60f['creator']['id'],_0x305dc2=_0x46c60f[_0x505c('0x98')]+(_0x46c60f[_0x505c('0xf3')]?':'+_0x46c60f[_0x505c('0xf3')]:'');this[_0x505c('0x4c')]({'id':_0x5d1f9e,'type':_0x305dc2,'createdAt':new Date(),'authorId':_0x4642f0,'originalSuggestionId':_0x46c60f['id'],'attributes':_0x46c60f[_0x505c('0x2a')],'data':_0x46c60f[_0x505c('0xd3')]}),_0x505c('0xa5')==_0x46c60f[_0x505c('0x98')]&&(_0x18007c=this[_0x505c('0x83')][_0x505c('0x22')](_0x18007c[_0x505c('0x6c')])),this[_0x505c('0x31')](_0x305dc2,_0x5d1f9e,_0x4642f0,this[_0x505c('0x83')][_0x505c('0xab')](_0x18007c,_0x5cd094));}[_0x505c('0x11e')](_0x59569c,_0x58ad90=null){const _0x18b2fc=[],_0x2d7fe0=this[_0x505c('0x83')]['schema'],_0x150070=this[_0x505c('0xd6')][_0x505c('0x2f')][_0x505c('0xc9')]('Users')['me'];for(const _0x3bc60b of this[_0x505c('0xcc')]())if(_0x3bc60b['isInContent']&&(!_0x58ad90||_0x3bc60b[_0x505c('0x98')]==_0x58ad90))for(const _0x128b1c of _0x3bc60b[_0x505c('0x60')]()){const _0x280250=_0x59569c['start'][_0x505c('0xa0')](_0x128b1c[_0x505c('0x135')])||_0x59569c['end'][_0x505c('0xa0')](_0x128b1c['start']);if(_0x280250||_0x59569c['getIntersection'](_0x128b1c)){const _0x735d4c=_0x59569c[_0x505c('0xdd')](_0x128b1c)&&Bt(_0x2d7fe0,_0x128b1c[_0x505c('0x103')],_0x59569c),_0xa0dc4b=_0x128b1c[_0x505c('0xdd')](_0x59569c)&&Bt(_0x2d7fe0,_0x59569c[_0x505c('0x103')],_0x128b1c);_0x18b2fc[_0x505c('0x3a')]({'suggestion':_0x3bc60b,'meta':{'isOwn':_0x150070==_0x3bc60b['author'],'isNextTo':_0x280250,'isInsideObject':_0x735d4c,'containsRangeInObject':_0xa0dc4b}});break;}}return _0x18b2fc;}[_0x505c('0x31')](_0x43cdb2,_0x316663,_0x4e0072,_0x4b68cf,_0x427ecf){this[_0x505c('0x83')]['change'](_0x5eec14=>{let _0x12715c=_0x505c('0x10c')+_0x43cdb2+':'+_0x316663+':'+_0x4e0072;_0x427ecf&&(_0x12715c=_0x12715c+':'+_0x427ecf),_0x5eec14['addMarker'](_0x12715c,{'range':_0x4b68cf,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x505c('0x32')](_0x1a045b){const _0x589d1f=_0x1a045b['previous'],_0x2f4bbd=_0x1a045b[_0x505c('0x4d')];_0x1a045b[_0x505c('0x4a')]=null,null!=_0x589d1f&&(_0x589d1f[_0x505c('0x4d')]=null),_0x1a045b['next']=null,null!=_0x2f4bbd&&(_0x2f4bbd[_0x505c('0x4a')]=null),_0x505c('0x15')==this[_0x505c('0x8f')][_0x505c('0xc9')](_0x1a045b)&&(this[_0x505c('0x8f')][_0x505c('0xb')](_0x1a045b,_0x505c('0x58')),this[_0x505c('0xf5')](_0x505c('0xf'),_0x1a045b,_0x589d1f,_0x2f4bbd));}[_0x505c('0x4c')](_0x4f798a){const _0x2da9d9=_0x4f798a['id'],_0x54f4fb=this[_0x505c('0x124')](_0x4f798a);if(this['_adapter']&&this[_0x505c('0x12e')][_0x505c('0x9f')]){const _0x44cf4e=this['editor'][_0x505c('0x2f')]['get'](_0x505c('0x10a')),_0x41975b=_0x54f4fb['hasComments'],_0x3c1e0f=_0x54f4fb[_0x505c('0xf3')]?_0x54f4fb['type']+':'+_0x54f4fb[_0x505c('0xf3')]:_0x54f4fb['type'],_0xdb1e9e=this[_0x505c('0xd6')][_0x505c('0x17')],_0x2b1a6f=_0x44cf4e[_0x505c('0x2c')](_0x413b77(_0xdb1e9e,_0x505c('0x104'))),_0x375cbd={'id':_0x2da9d9,'type':_0x3c1e0f,'hasComments':_0x41975b,'data':_0x4f798a[_0x505c('0xd3')]||null,'originalSuggestionId':_0x4f798a[_0x505c('0xc8')]||null,'attributes':_0x54f4fb[_0x505c('0x2a')]};this[_0x505c('0x12e')][_0x505c('0x9f')](_0x375cbd)[_0x505c('0xf2')](_0x2894dd=>{_0x54f4fb[_0x505c('0xb6')]=!0x0,_0x44cf4e[_0x505c('0x6e')](_0x2b1a6f),_0x2894dd&&_0x2894dd['createdAt']&&(this[_0x505c('0xee')][_0x505c('0xc9')](_0x2da9d9)['createdAt']=_0x2894dd['createdAt']);})[_0x505c('0x119')](_0x52560=>{throw _0x47ac89(_0x505c('0x128')),this[_0x505c('0xd6')][_0x505c('0x110')][_0x505c('0x13')]({'isUndoable':!0x1},()=>{_0x54f4fb['discard']();}),_0x54f4fb[_0x505c('0xd4')](),this[_0x505c('0xee')][_0x505c('0x52')](_0x54f4fb['id']),this[_0x505c('0x8f')][_0x505c('0x52')](_0x54f4fb),_0x52560;});}return _0x54f4fb;}[_0x505c('0x86')](_0x21a616,_0x5d9e3c){const _0x31bcf1=this['editor'][_0x505c('0x2f')][_0x505c('0xc9')](_0x505c('0x10a')),_0x4a7c8e=this['getSuggestion'](_0x21a616);if(this[_0x505c('0x12e')]&&this[_0x505c('0x12e')][_0x505c('0xe8')]){if(_0x4a7c8e[_0x505c('0xb6')]){const _0x56594b=_0x31bcf1[_0x505c('0x2c')](_0x413b77(this[_0x505c('0xd6')][_0x505c('0x17')],_0x505c('0x104')));this[_0x505c('0x12e')][_0x505c('0xe8')](_0x21a616,_0x5d9e3c)['then'](()=>{_0x31bcf1['remove'](_0x56594b);});}else _0x4a7c8e['on']('change:_saved',()=>{this[_0x505c('0x86')](_0x21a616,_0x5d9e3c);});}}['_getSuggestionData'](_0x3c0b9c){if(!this[_0x505c('0x12e')]||!this[_0x505c('0x12e')]['getSuggestion'])throw new _0x1dd7d0('track-changes-adapter-missing-getsuggestion',this);return this[_0x505c('0x12e')][_0x505c('0xf0')](_0x3c0b9c);}[_0x505c('0x54')](_0x24da24){const {id:_0x31cb2b,type:_0x5c10a5,subType:_0x69de64,authorId:_0x2d5726}=this[_0x505c('0x37')](_0x24da24),_0x2268a0=this[_0x505c('0xee')][_0x505c('0xc9')](_0x31cb2b)||this[_0x505c('0x79')](_0x5c10a5,_0x69de64,_0x31cb2b,_0x2d5726,{});switch(this[_0x505c('0x30')](_0x2268a0,_0x5c10a5,_0x69de64,_0x2d5726),this[_0x505c('0x8f')]['get'](_0x2268a0)){case _0x505c('0x29'):this[_0x505c('0x51')](_0x31cb2b)[_0x505c('0xf2')](_0x19261d=>{let _0xfb98a6=Promise[_0x505c('0x4')]();_0x19261d[_0x505c('0x18')]&&(_0xfb98a6=this[_0x505c('0x11')][_0x505c('0x46')]({'channelId':this[_0x505c('0xd6')][_0x505c('0x74')][_0x505c('0xc9')]('collaboration.channelId'),'threadId':_0x31cb2b})),_0xfb98a6['then'](()=>{this[_0x505c('0x124')](_0x19261d)[_0x505c('0xb6')]=!0x0;});}),this[_0x505c('0x8f')]['set'](_0x2268a0,_0x505c('0xbb'));break;case _0x505c('0x58'):this[_0x505c('0x86')](_0x31cb2b,{'state':_0x505c('0x130')});case'dataReady':this['_suggestionState'][_0x505c('0xb')](_0x2268a0,'ready'),this[_0x505c('0xf5')](_0x505c('0x41'),_0x2268a0);break;case _0x505c('0x15'):this[_0x505c('0xf5')](_0x505c('0x5a'),_0x2268a0);}return _0x2268a0[_0x505c('0xe1')](_0x24da24),_0x2268a0;}[_0x505c('0xb3')](_0x36fb71){const _0x1d5304=Array[_0x505c('0xfa')](_0x36fb71)[_0x505c('0x10d')](_0x3cad00=>!_0x3cad00[_0x505c('0xf1')]),_0xbf5287=this[_0x505c('0xcc')]({'skipNotAttached':!0x0})[_0x505c('0x10d')](_0x10af91=>!_0x10af91['isMultiRange']),_0x396d9f=_0xbf5287['filter'](_0x2614ce=>!_0x36fb71[_0x505c('0x26')](_0x2614ce)),_0x418efc=new Map(_0xbf5287[_0x505c('0xa2')](_0x31fd66=>[_0x31fd66,this[_0x505c('0x116')]['getSuggestionCallback'](_0x31fd66[_0x505c('0x98')],_0x31fd66[_0x505c('0xf3')],_0x505c('0x66'))])),_0xb569cc=new Map(_0xbf5287[_0x505c('0xa2')](_0x23bb33=>[_0x23bb33,_0x23bb33[_0x505c('0x20')]()])),_0x3178d3=new Set(),_0x125653=new Set();for(let _0x5421a8=0x0;_0x5421a8<_0x1d5304[_0x505c('0x8e')];_0x5421a8++)_0x41ea34(_0x1d5304[_0x5421a8],_0x1d5304,_0x5421a8+0x1);for(let _0x2d893c=0x0;_0x2d893c<_0x1d5304[_0x505c('0x8e')];_0x2d893c++)_0x41ea34(_0x1d5304[_0x2d893c],_0x396d9f,0x0);for(let _0x3b5a9a=0x0;_0x3b5a9a<_0x1d5304[_0x505c('0x8e')];_0x3b5a9a++){const _0x34d42c=_0x1d5304[_0x3b5a9a];!_0x125653[_0x505c('0x26')](_0x34d42c)&&_0x34d42c[_0x505c('0x4a')]&&(_0x34d42c[_0x505c('0x4a')][_0x505c('0x4d')]===_0x34d42c&&(_0x34d42c[_0x505c('0x4a')][_0x505c('0x4d')]=null),_0x34d42c['previous']=null),!_0x3178d3[_0x505c('0x26')](_0x34d42c)&&_0x34d42c[_0x505c('0x4d')]&&(_0x34d42c[_0x505c('0x4d')]['previous']===_0x34d42c&&(_0x34d42c['next'][_0x505c('0x4a')]=null),_0x34d42c[_0x505c('0x4d')]=null);}function _0x41ea34(_0x14cecb,_0x4dcbdc,_0x33591d){for(let _0x410502=_0x33591d;_0x410502<_0x4dcbdc[_0x505c('0x8e')];_0x410502++){const _0xeba712=_0x6f376b(_0x14cecb,_0x4dcbdc[_0x410502]);_0xeba712&&(_0xeba712[0x0][_0x505c('0x4d')]=_0xeba712[0x1],_0xeba712[0x1][_0x505c('0x4a')]=_0xeba712[0x0],_0x3178d3['add'](_0xeba712[0x0]),_0x125653[_0x505c('0x2c')](_0xeba712[0x1]));}}function _0x6f376b(_0x42e59f,_0x5037f3){if(_0x42e59f[_0x505c('0xc6')]['id']!==_0x5037f3[_0x505c('0xc6')]['id'])return null;const _0x26a427=_0x418efc['get'](_0x42e59f)(_0x42e59f,_0x5037f3,_0xb569cc[_0x505c('0xc9')](_0x42e59f),_0xb569cc[_0x505c('0xc9')](_0x5037f3));if(!_0x26a427)return null;return _0x418efc[_0x505c('0xc9')](_0x5037f3)(_0x42e59f,_0x5037f3,_0xb569cc['get'](_0x42e59f),_0xb569cc[_0x505c('0xc9')](_0x5037f3))?_0x26a427[0x1][_0x505c('0xa4')]&&_0x26a427[0x1]['commentThread']['length']?null:_0x26a427:null;}}['_joinWithAdjacentSuggestions'](_0x55e3b0){const _0x2965bb=Array[_0x505c('0xfa')](_0x55e3b0),_0x11cc4b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x203316=_0x11cc4b[_0x505c('0x10d')](_0x10becf=>!_0x55e3b0['has'](_0x10becf)),_0x3ccb55=new Map(_0x2965bb[_0x505c('0xa2')](_0xc3ee79=>[_0xc3ee79,this[_0x505c('0x116')][_0x505c('0x3b')](_0xc3ee79['type'],_0xc3ee79['subType'],_0x505c('0x75'))])),_0xd247ba=new Map(_0x11cc4b['map'](_0xe797c5=>[_0xe797c5,_0xe797c5[_0x505c('0x60')]()]));for(let _0xa33abb=0x0;_0xa33abb<_0x2965bb['length'];_0xa33abb++){if(_0x22e966(this,_0x2965bb[_0xa33abb],_0x2965bb,_0xa33abb+0x1))return!0x0;}for(let _0x36ee35=0x0;_0x36ee35<_0x2965bb[_0x505c('0x8e')];_0x36ee35++){if(_0x22e966(this,_0x2965bb[_0x36ee35],_0x203316,0x0))return!0x0;}return!0x1;function _0x22e966(_0x5d788f,_0x1e15ce,_0x44dab7,_0x36e232){for(let _0x128384=_0x36e232;_0x128384<_0x44dab7['length'];_0x128384++){const _0x450cc9=_0x44dab7[_0x128384];if(_0x450cc9['type']!==_0x1e15ce[_0x505c('0x98')]||_0x450cc9[_0x505c('0xc6')]['id']!==_0x1e15ce[_0x505c('0xc6')]['id']||_0x450cc9[_0x505c('0xf3')]!==_0x1e15ce[_0x505c('0xf3')])continue;const _0x9f5b7c=_0x3ccb55[_0x505c('0xc9')](_0x1e15ce),_0x57e917=_0xd247ba['get'](_0x1e15ce),_0x1084e6=_0xd247ba[_0x505c('0xc9')](_0x450cc9),_0x5eaabf=_0x1e15ce[_0x505c('0xa4')]&&_0x1e15ce[_0x505c('0xa4')][_0x505c('0x8e')],_0x53bb29=_0x450cc9[_0x505c('0xa4')]&&_0x450cc9[_0x505c('0xa4')]['length'];if(!_0x5eaabf&&_0x9f5b7c(_0x1084e6,_0x57e917))return _0x5d788f[_0x505c('0x89')](_0x450cc9,_0x1e15ce),_0xd247ba['delete'](_0x1e15ce),!0x0;if(!_0x53bb29&&_0x9f5b7c(_0x57e917,_0x1084e6))return _0x5d788f[_0x505c('0x89')](_0x1e15ce,_0x450cc9),_0xd247ba[_0x505c('0x52')](_0x450cc9),!0x0;}return!0x1;}}[_0x505c('0x89')](_0x149f65,_0x4598d7){if(_0x149f65[_0x505c('0xf1')])for(const _0x494482 of _0x4598d7[_0x505c('0x60')]())_0x149f65[_0x505c('0x113')](_0x494482);else{const _0x404123=_0x4598d7[_0x505c('0x20')]()[_0x505c('0x135')];this[_0x505c('0x25')](_0x149f65,this[_0x505c('0x83')][_0x505c('0xab')](_0x149f65[_0x505c('0x20')]()[_0x505c('0x103')],_0x404123));}_0x4598d7['removeMarkers']();}}class Dt{constructor(_0x4dc98b){this[_0x505c('0xaa')]=_0x4dc98b,this[_0x505c('0x83')]=_0x4dc98b[_0x505c('0x110')],this['_customCallbacks']=new Map(),this[_0x505c('0xb0')]=new Map(),this[_0x505c('0x44')]();}[_0x505c('0x10b')](_0x3a9c2c,_0x168d90,_0x5093a5,_0x1f23c1,_0x76ee5c,_0x105e7e){return new _0x492b8e(this['_model'],{'type':_0x3a9c2c,'subType':_0x168d90,'id':_0x5093a5,'author':_0x1f23c1,'creator':_0x1f23c1,'attributes':_0x76ee5c,'onAttributesChange':_0x105e7e,'onAccept':(..._0x1a8dd1)=>this[_0x505c('0x3b')](_0x3a9c2c,_0x168d90,'accept')(..._0x1a8dd1),'onDiscard':(..._0x193000)=>this['getSuggestionCallback'](_0x3a9c2c,_0x168d90,_0x505c('0x92'))(..._0x193000)});}[_0x505c('0x36')](_0x1e796a,_0x1aeb3a,_0x3b9f1a,_0x3a0f6e){const _0x422c7e=_0x1e796a+':'+_0x1aeb3a+':'+_0x3b9f1a;this[_0x505c('0xd7')][_0x505c('0xb')](_0x422c7e,_0x3a0f6e);}['getSuggestionCallback'](_0x5c820e,_0x38d4b8,_0x34b3bd){const _0x375f87=_0x5c820e+':'+_0x38d4b8+':'+_0x34b3bd;return this[_0x505c('0xd7')][_0x505c('0xc9')](_0x375f87)||this[_0x505c('0xb0')][_0x505c('0xc9')](_0x5c820e+':'+_0x34b3bd);}[_0x505c('0x44')](){const _0xd76db2=()=>{},_0x1a854b=_0x59f581=>{_0x59f581[_0x505c('0xac')]((_0xcf55fd,_0x2fdf26)=>_0xcf55fd[_0x505c('0x103')][_0x505c('0x131')](_0x2fdf26['start'])?0x1:-0x1),this[_0x505c('0x83')]['change'](_0x43f08f=>{for(const _0x44dd14 of _0x59f581){let _0x4df215;_0x4df215=_0x44dd14[_0x505c('0x135')][_0x505c('0x125')]&&_0x44dd14[_0x505c('0x135')]['parent']==_0x44dd14[_0x505c('0x103')][_0x505c('0xba')]?_0x43f08f[_0x505c('0x19')](_0x44dd14[_0x505c('0x103')][_0x505c('0xba')],'on'):_0x43f08f[_0x505c('0x19')](_0x44dd14),this[_0x505c('0x83')]['deleteContent'](_0x4df215,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3389c5=(_0x3df0bf,_0x7d0cd6)=>{this['_model'][_0x505c('0xff')](_0x38ecb5=>{const {commandName:_0xfdb8ea,commandParams:_0x5b81ce=[]}=_0x7d0cd6,_0x4ec5fd=_0x3df0bf[_0x505c('0xa2')](_0x3e4211=>(_t(_0x3e4211)&&(_0x3e4211=this[_0x505c('0x83')][_0x505c('0xab')](_0x3e4211['end'])),_0x3e4211))[_0x505c('0x10d')](_0x8adce=>_0x505c('0x16')!==_0x8adce[_0x505c('0xd2')][_0x505c('0x91')]);if(_0x4ec5fd[_0x505c('0x8e')]<0x1)return;const _0x40ae00=Array[_0x505c('0xfa')](this[_0x505c('0x83')][_0x505c('0xfc')][_0x505c('0xde')][_0x505c('0x60')]())[_0x505c('0xa2')](_0x33258a=>_0x12fcf0[_0x505c('0x81')](_0x33258a));_0x38ecb5[_0x505c('0x2e')](_0x4ec5fd);for(const _0x566a53 of this[_0x505c('0xaa')][_0x505c('0x2b')][_0x505c('0x2b')]())_0x566a53['refresh']();_0x5b81ce[_0x505c('0x3a')]({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xfdb8ea,..._0x5b81ce);const _0x4bfdbc=_0x40ae00[_0x505c('0x10d')](_0x964068=>'$graveyard'!=_0x964068['root'][_0x505c('0x91')]);_0x4bfdbc['length']>0x0&&_0x38ecb5[_0x505c('0x2e')](_0x4bfdbc);for(const _0x31c5b9 of _0x40ae00)_0x31c5b9['detach']();});},_0x23b7c5=(_0x30979c,_0x3ef8cd)=>0x1==_0x30979c['length']&&0x1==_0x3ef8cd['length']&&_0x30979c[0x0][_0x505c('0x135')][_0x505c('0xa0')](_0x3ef8cd[0x0][_0x505c('0x103')]),_0x31860c=(_0x1b7544,_0x1439f3,_0x1ecb8b,_0x1629d8)=>xt(_0x1b7544,_0x1439f3,_0x1ecb8b,_0x1629d8,this[_0x505c('0x83')])?[_0x1b7544,_0x1439f3]:xt(_0x1439f3,_0x1b7544,_0x1629d8,_0x1ecb8b,this[_0x505c('0x83')])?[_0x1439f3,_0x1b7544]:null;this['_defaultCallbacks'][_0x505c('0xb')]('insertion:accept',_0xd76db2),this[_0x505c('0xb0')][_0x505c('0xb')]('insertion:discard',_0x1a854b),this['_defaultCallbacks'][_0x505c('0xb')](_0x505c('0x1d'),_0x23b7c5),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0x1a'),_0x31860c),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0x106'),_0x1a854b),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0xb9'),_0xd76db2),this['_defaultCallbacks']['set'](_0x505c('0x100'),_0x23b7c5),this['_defaultCallbacks']['set'](_0x505c('0xc2'),_0x31860c),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0xc7'),_0x3389c5),this[_0x505c('0xb0')][_0x505c('0xb')]('formatInline:discard',_0xd76db2),this[_0x505c('0xb0')][_0x505c('0xb')]('formatInline:join',_0x23b7c5),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0x6b'),_0xd76db2),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0x8b'),_0x3389c5),this[_0x505c('0xb0')]['set']('formatBlock:discard',_0xd76db2),this[_0x505c('0xb0')][_0x505c('0xb')]('formatBlock:join',_0x23b7c5),this[_0x505c('0xb0')][_0x505c('0xb')](_0x505c('0xa'),_0xd76db2);}}function Bt(_0x3534c9,_0x1ac7ad,_0x4cd459){for(const _0x41e2b5 of _0x1ac7ad['parent'][_0x505c('0x102')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x41e2b5['root']==_0x41e2b5)return!0x1;if(!_0x4cd459[_0x505c('0x87')](_0x41e2b5))return!0x1;if(_0x3534c9[_0x505c('0xcf')](_0x41e2b5)||_0x3534c9[_0x505c('0x9e')](_0x41e2b5))return!0x0;}return!0x1;}function _t(_0x377bd7){return _0x377bd7[_0x505c('0x135')]['parent']==_0x377bd7[_0x505c('0x103')][_0x505c('0xba')]&&_0x377bd7['end'][_0x505c('0x12')];}function Mt(_0xbf9b26,_0x550444,_0x12366f,_0x544259){const _0x2948ad=_0x28945c=>!_0x28945c[_0x505c('0xf4')]['is'](_0x505c('0xa7'))&&!_0x544259[_0x505c('0xcf')](_0x28945c['item']),_0x25d079=_0xbf9b26[_0x505c('0x103')][_0x505c('0x88')](_0x2948ad),_0xab13d4=_0xbf9b26[_0x505c('0x135')][_0x505c('0x88')](_0x2948ad,{'direction':_0x505c('0x12a')});return(!_0xbf9b26['start']['isEqual'](_0x25d079)||!_0xbf9b26[_0x505c('0x135')][_0x505c('0xa0')](_0xab13d4))&&(_0x25d079[_0x505c('0x131')](_0xab13d4)?_0x12366f[_0x505c('0x7')](_0x550444,{'range':_0x12366f[_0x505c('0xab')](_0x25d079,_0xab13d4)}):_0x12366f[_0x505c('0xe5')](_0x550444),!0x0);}function $t(_0x13f3e8){return _0x496d2d(_0x13f3e8);}function Nt(_0x223415){const _0x1ae3b9=_0x223415[_0x505c('0x103')][_0x505c('0xba')];return _0x1ae3b9&&_0x1ae3b9['is'](_0x505c('0x4b'));}function Rt(_0x40d294,_0x4b6e1f){const _0x36fd80=_0x4b6e1f[_0x505c('0x107')]['isObject'](_0x40d294)||_0x4b6e1f[_0x505c('0x107')][_0x505c('0x3f')](_0x40d294);return _0x4b6e1f[_0x505c('0xab')](_0x4b6e1f[_0x505c('0x65')](_0x40d294,_0x505c('0x101')),_0x36fd80?_0x4b6e1f[_0x505c('0xa9')](_0x40d294):_0x4b6e1f[_0x505c('0x65')](_0x40d294,_0x505c('0x135')));}function xt(_0x363ce2,_0x3cc9d3,_0x5cb7d5,_0x4ff849,_0x16f787){if(_0x5cb7d5[_0x505c('0x135')]['isEqual'](_0x4ff849[_0x505c('0x103')]))return!0x0;if(_0x363ce2[_0x505c('0x98')]!=_0x3cc9d3[_0x505c('0x98')])return!0x1;if(!_0x5cb7d5[_0x505c('0x135')][_0x505c('0xad')](_0x4ff849[_0x505c('0x103')]))return!0x1;const _0x16e50f=_0x16f787[_0x505c('0xab')](_0x5cb7d5[_0x505c('0x135')],_0x4ff849[_0x505c('0x103')])['getWalker']();for(const _0x5d345c of _0x16e50f)if([_0x505c('0x3e'),_0x505c('0xe6')][_0x505c('0x93')](_0x5d345c[_0x505c('0x98')])&&_0x16f787[_0x505c('0x107')]['isLimit'](_0x5d345c[_0x505c('0xf4')]))return!0x1;return!0x0;}
23
+ const _0x5832=['ck-suggestion-marker','item','clone','discard','every','isTouching','track-changes-suggestion-not-found','addClass','getMultiRangeId','schema','PendingActions','move','insertContent','updateSuggestion','deletion:','type','@external','_mergeNestedSuggestions','data-suggestion','_editor','addUser','head','nodeAfter','markInlineFormat','suggestionChanged','stop','removeMarker:suggestion:formatBlock','change:data','default','removeClass','toJSON','_handleNewSuggestionMarker','markMultiRangeInsertion','formatBlock:accept','deletion','_getAuthorFromId','config','backward','elementStart','editor','never','update:suggestion','discardAllSuggestions','isDocumentOperation','hasComments','setSelection','isInsideObject','getFirstRange','_getSuggestionData','containsRange','_findSuggestions','previous','buildSuggestion','acceptSuggestion','addComment','acceptSelectedSuggestions','createPositionAt','init','adapter','isAtStart','authoredAt','isMultiRange','rejected','markerName','PENDING_ACTION_SUGGESTION','getRanges','forward','formatInline:discard','createSelection','commands','high','addMarker','filter','group','return','trackChanges.mergeNestedSuggestions','newRange','getMarkers','getSuggestionCallback','pluginName','moveTargetPosition','addSuggestion','insertion:join','isCollapsed','selection','_cutOutSuggestionMarker','for','_trackFormatChanges','accepted','$marker','dataDowncast','formatInline','skipNestingCheck','_adapter','formatInline:','change:_saved','_checkSuggestionCorrectness','setTo','Users','addMarker:suggestion','containsItem','document','_setSuggestionData','getCommentThread','dataToMarker','normal','split','_addSuggestionMarker','catch','containsRangeInObject','addCommentThread','_enabledCommands','commentThread','isIntersectingWithRange','formatBlock:join','clear','rethrowUnexpectedError','getSuggestion','delete','updateMarker','formatBlock','some','rootName','markerToData','multipleBlocks','insertion:','ck-suggestion-marker-formatBlock','suggestion:','isBefore','getAttribute','_saved','getSuggestions','createElement','_suggestionState','_onDiscard','listenTo','setAttribute','resolve','suggestion-type','parent','isAtEnd','element','change','root','ck-suggestion-marker--active','model','_createSuggestion','_isForcedDefaultExecutionBlock','removed','name','_registerDefaultCallbacks','start','has','isBlock','author','forceDefaultExecution','writer','subType','nodeBefore','editingDowncast','isInContent','ready','formatInline:chain','_setSuggestionRange','registerPostFixer','getCustomProperty','_updateSuggestionData','attributes','commandName','range','includes','define','differ','_refreshSuggestionsChain','add','length','push','insert','bindElementToMarker','consumable','formatBlock:discard','set','change:activeMarkers','_removeSuggestion','getFirstMarker','_addThreadToSuggestion','track-changes-command-not-found','options','originalSuggestionId','upcast','isOwn','then','dataReady','_suggestionFactory','low','markDeletion','_commentsRepository','markMultiRangeDeletion','createPositionAfter','TrackChangesEditing','markerReady','$graveyard','documentSelection','join','next','trackChanges.trackFormatChanges','consume','position','highest','end','getChanges','trackChanges','fromRange','howMany','mapper','plugins','ck-suggestion-marker-','suggestionUnloaded','formatGroupId','removeMarkers','splitPosition','isEqual','_defaultCallbacks','markerToHighlight','conversion','getNearestSelectionRange','_customCallbacks','markerNameToElements','isExternal','insertion','values','formatBlock:','fire','_suggestions','addHighlight','suggestion','data','refresh','getShiftedBy','getDifference','remove','track-changes-suggestion-data-mismatch','getAncestors','addMarker:suggestion:formatBlock','widget','deleteContent','_splitMarkerName','getChangedMarkers','size','value','locale','splice','suggestionLoaded','open','isLocal','isSelectable','isObject','createPositionBefore','unbind','addSuggestionData','_descriptionFactory','markInsertion','notReady','markers','getUser','toViewElement','getIntersection','marker-count','trackChangesCommand','error-saving-suggestion-data-suggestion-discarded','acceptAllSuggestions','isLimit','execute','createdAt','getWalker','multi','elementEnd','$textProxy','collaboration.channelId','getAllAdjacentSuggestions','isNextTo','showSuggestionHighlights','deletion:accept','enableCommand','sort','markMultiRangeBlockFormat','enqueueChange','containerElement','hasCommentThread','oldRange','batch','fromCharCode','insertion:chain','map','isUndo','deletion:discard','removeMarker','CommentsRepository','_joinSuggestions','formatInline:join','createRange','markBlockFormat','after','creator','_model','substr','from','detach','_rangeIsInLocalUserInsertion','addRange','accept','getItems','isAfter','addMarkerName','always','activeMarkers','_getExternalAuthor','get'];(function(_0x2b6109,_0x5832db){const _0x3db5b0=function(_0x3eeb8f){while(--_0x3eeb8f){_0x2b6109['push'](_0x2b6109['shift']());}};_0x3db5b0(++_0x5832db);}(_0x5832,0x11a));const _0x3db5=function(_0x2b6109,_0x5832db){_0x2b6109=_0x2b6109-0x0;let _0x3db5b0=_0x5832[_0x2b6109];return _0x3db5b0;};import{Plugin as _0x5ae2bd,PendingActions as _0x1cdab1}from'ckeditor5/src/core';import{LiveRange as _0x145035}from'ckeditor5/src/engine';import{CKEditorError as _0x485d84,uid as _0xf1fad3,priorities as _0x3d6093,logWarning as _0x17d652}from'ckeditor5/src/utils';import{toWidget as _0x3f4f56}from'ckeditor5/src/widget';import{Users as _0x542775,hashObject as _0x4279e5}from'ckeditor5-collaboration/src/collaboration-core';import _0x3d022b from'./commands/trackchangescommand';import _0x34fc6a from'./commands/acceptsuggestioncommand';import _0x515d89 from'./commands/discardsuggestioncommand';import _0x278337 from'./commands/executeonallsuggestionscommand';import _0x3a486a from'./commands/executeonselectedsuggestionscommand';import _0x31ad3a from'./suggestion';import _0x1be035 from'./suggestiondescriptionfactory';import _0x3d8953 from'./integrations/alignment';import _0x51abc3 from'./integrations/basicstyles';import _0x553280 from'./integrations/blockquote';import _0x5b75f0 from'./integrations/ckbox';import _0x23d83a from'./integrations/codeblock';import _0xa553e from'./integrations/comments';import _0x1baa99 from'./integrations/deletecommand';import _0x56a3f2 from'./integrations/documentlist';import _0x3b13d6 from'./integrations/entercommand';import _0x387dbb from'./integrations/findandreplace';import _0xa6a9ed from'./integrations/font';import _0x234f1e from'./integrations/formatpainter';import _0x115668 from'./integrations/heading';import _0x1ed14f from'./integrations/highlight';import _0x3c0516 from'./integrations/horizontalline';import _0x345ab1 from'./integrations/htmlembed';import _0x45811f from'./integrations/image';import _0x43af1e from'./integrations/imagereplace';import _0x3d36a9 from'./integrations/importword';import _0x39811c from'./integrations/indent';import _0x3e5db4 from'./integrations/inputcommand';import _0x5e0d14 from'./integrations/link';import _0x38c11f from'./integrations/list';import _0x2768d7 from'./integrations/listproperties';import _0x404a64 from'./integrations/mediaembed';import _0x43ee61 from'./integrations/mention';import _0x455c35 from'./integrations/pagebreak';import _0x1e10bb from'./integrations/paragraph';import _0xd4ecb3 from'./integrations/removeformat';import _0x5379db from'./integrations/restrictededitingmode';import _0x4b85fb from'./integrations/shiftentercommand';import _0x23c768 from'./integrations/standardeditingmode';import _0x33c39c from'./integrations/style';import _0x3c3838 from'./integrations/table';import _0x29dc72 from'./integrations/tablemergesplit';import _0x4f1823 from'./integrations/tableheadings';import _0x5eeac5 from'./integrations/tableclipboard';import _0x10ed75 from'./integrations/tablecolumnresize';import _0x273e32 from'./integrations/template';import _0xf0696a from'./integrations/tableofcontents';import _0x994f from'./integrations/title';import _0x5ea0e0 from'./integrations/undo';import{getTranslation as _0x4f3559}from'./utils/common-translations';import _0x34dc4b from'./integrations/tablecaption';import _0x3597e0 from'./integrations/documentlistproperties';import _0x12ae78 from'./integrations/tableproperties';export default class p extends _0x5ae2bd{static get['requires'](){return[_0x3db5('0xf'),_0x542775,_0x1cdab1,_0x3d8953,_0x51abc3,_0x553280,_0x5b75f0,_0x23d83a,_0xa553e,_0x1baa99,_0x56a3f2,_0x3597e0,_0x3b13d6,_0x387dbb,_0xa6a9ed,_0x234f1e,_0x115668,_0x1ed14f,_0x3c0516,_0x345ab1,_0x45811f,_0x43af1e,_0x3d36a9,_0x39811c,_0x3e5db4,_0x5e0d14,_0x38c11f,_0x2768d7,_0x404a64,_0x43ee61,_0x455c35,_0x1e10bb,_0xd4ecb3,_0x5379db,_0x4b85fb,_0x23c768,_0x33c39c,_0x3c3838,_0x29dc72,_0x4f1823,_0x34dc4b,_0x5eeac5,_0x10ed75,_0xf0696a,_0x12ae78,_0x273e32,_0x994f,_0x5ea0e0];}static get[_0x3db5('0x73')](){return _0x3db5('0xeb');}constructor(_0x57db98){function _0x20abc5(_0x21a8d2){return _0x21a8d2['map'](_0xa7de32=>String[_0x3db5('0x9')](_0xa7de32))[_0x3db5('0xef')]('');}super(_0x57db98),this[_0x3db5('0xd9')](_0x3db5('0x21'),[]),this['on'](_0x3db5('0xda'),(_0x571a72,_0xf77b64,_0x2d656d,_0x498888)=>{this[_0x3db5('0x16')]['change'](()=>{for(const _0x2051a2 of[..._0x498888,..._0x2d656d])this[_0x3db5('0x16')][_0x3db5('0x12b')][_0x3db5('0xbc')](_0x2051a2)&&_0x57db98['editing']['reconvertMarker'](_0x2051a2);});}),this[_0x3db5('0x128')]=new _0x1be035(this['editor']['model'][_0x3db5('0x2d')],this[_0x3db5('0x4b')][_0x3db5('0x11e')]),this[_0x3db5('0x81')]=null,this['_suggestionFactory']=new Dt(this[_0x3db5('0x4b')]),this[_0x3db5('0x10d')]=new Map(),this[_0x3db5('0xe8')]=_0x57db98[_0x3db5('0xfb')]['get'](_0x3db5('0xf')),this[_0x3db5('0x93')]=new Set(),this['_model']=this[_0x3db5('0x4b')][_0x3db5('0xb5')],this[_0x3db5('0xa9')]=new WeakMap(),this[_0x3db5('0xb7')]=!0x1,_0x57db98[_0x3db5('0x48')][_0x3db5('0xcf')](_0x3db5('0xf1'),_0x3db5('0x40')),this['_trackFormatChanges']=_0x57db98['config'][_0x3db5('0x23')](_0x3db5('0xf1')),_0x57db98['config'][_0x3db5('0xcf')](_0x3db5('0x6f'),!0x0),this[_0x3db5('0x35')]=_0x57db98[_0x3db5('0x48')][_0x3db5('0x23')](_0x3db5('0x6f')),this[_0x3db5('0x130')]=new _0x3d022b(_0x57db98,this[_0x3db5('0x93')]),this[_0x20abc5([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x20abc5([0x34,0x30,0x34,0x36,0x31,0x34,0x30,0x34]);}[_0x3db5('0x5d')](){const _0x489bdd=this[_0x3db5('0x4b')];_0x489bdd[_0x3db5('0x104')]['for'](_0x3db5('0xc3'))[_0x3db5('0x103')]({'model':_0x3db5('0x10f'),'view':_0x4ab32c=>{const {id:_0x24c437,type:_0x16b3e9}=this[_0x3db5('0x11a')](_0x4ab32c['markerName']),_0x2e56a0=[_0x3db5('0x24'),_0x3db5('0xfc')+_0x16b3e9];let _0x234a06=0xbb8;return this['activeMarkers']['includes'](_0x4ab32c['markerName'])&&(_0x2e56a0['push']('ck-suggestion-marker--active'),_0x234a06=0xbc2),'deletion'==_0x16b3e9&&(_0x234a06+=0x5),{'classes':_0x2e56a0,'attributes':{'data-suggestion':_0x24c437},'priority':_0x234a06};}}),_0x489bdd['conversion'][_0x3db5('0x7a')]('dataDowncast')['add'](_0x225dee=>{_0x225dee['on'](_0x3db5('0x87'),(_0x3ce6cc,_0x1cf534,_0x7d11a)=>{if(!_0x7d11a[_0x3db5('0xdf')][_0x3db5('0x13d')])return;const _0x14cb6c=_0x1cf534[_0x3db5('0x25')];if(!_0x14cb6c)return;const _0x467f6d=_0x7d11a[_0x3db5('0xfa')][_0x3db5('0x12d')](_0x14cb6c);_0x489bdd['model']['schema'][_0x3db5('0x124')](_0x14cb6c)&&_0x467f6d&&!_0x467f6d[_0x3db5('0xc9')](_0x3db5('0x118'))&&_0x467f6d['is'](_0x3db5('0x5'))&&_0x3f4f56(_0x467f6d,_0x7d11a[_0x3db5('0xc0')]);},{'priority':_0x3db5('0x6a')});}),_0x489bdd[_0x3db5('0x104')][_0x3db5('0x7a')](_0x3db5('0x7e'))['markerToHighlight']({'model':_0x3db5('0x10f'),'view':(_0x1fcb68,_0x4b1689)=>{if(!_0x4b1689[_0x3db5('0xdf')][_0x3db5('0x13d')])return null;const {type:_0x1883e8}=this['_splitMarkerName'](_0x1fcb68[_0x3db5('0x63')]);return{'classes':[_0x3db5('0x24'),_0x3db5('0xfc')+_0x1883e8],'priority':0xbb8};}});const _0x3bf081=({showActiveMarkers:_0x5ef885=!0x0}={})=>(_0x184363,_0x3a2f6a,_0x9a8781)=>{if(!_0x3a2f6a['item'])return;if(_0x3a2f6a[_0x3db5('0x25')]['is'](_0x3db5('0x78')))return void _0x9a8781[_0x3db5('0xd7')][_0x3db5('0xf2')](_0x3a2f6a[_0x3db5('0x25')],_0x184363[_0x3db5('0xb9')]);const _0x160655=_0x9a8781[_0x3db5('0xfa')][_0x3db5('0x12d')](_0x3a2f6a[_0x3db5('0x25')]);if(!(_0x3a2f6a[_0x3db5('0x25')]['is']('element')&&_0x489bdd[_0x3db5('0xb5')][_0x3db5('0x2d')]['isBlock'](_0x3a2f6a['item'])&&!_0x160655['getCustomProperty'](_0x3db5('0x10e'))))return;const {id:_0x4d9e03}=this[_0x3db5('0x11a')](_0x3a2f6a['markerName']);_0x9a8781[_0x3db5('0xc0')]['addClass']([_0x3db5('0x24'),_0x3db5('0xa2')],_0x160655),_0x9a8781[_0x3db5('0xc0')][_0x3db5('0xac')](_0x3db5('0x36'),_0x4d9e03,_0x160655),_0x9a8781[_0x3db5('0xfa')][_0x3db5('0xd6')](_0x160655,_0x3a2f6a['markerName']),_0x5ef885&&(this['activeMarkers'][_0x3db5('0xce')](_0x3a2f6a['markerName'])?_0x9a8781[_0x3db5('0xc0')][_0x3db5('0x2b')]('ck-suggestion-marker--active',_0x160655):_0x9a8781[_0x3db5('0xc0')][_0x3db5('0x41')](_0x3db5('0xb4'),_0x160655));for(const _0x27bc71 of _0x489bdd['model']['createRangeIn'](_0x3a2f6a[_0x3db5('0x25')])[_0x3db5('0x1d')]())_0x9a8781[_0x3db5('0xd7')]['consume'](_0x27bc71,_0x184363[_0x3db5('0xb9')]);_0x9a8781['consumable'][_0x3db5('0xf2')](_0x3a2f6a[_0x3db5('0x25')],_0x184363['name']);};_0x489bdd[_0x3db5('0x104')][_0x3db5('0x7a')](_0x3db5('0x7e'))[_0x3db5('0xd2')](_0x396b6e=>{_0x396b6e['on'](_0x3db5('0x117'),(_0x136189,_0xbc2c35,_0x4c3eb8)=>{_0x4c3eb8[_0x3db5('0xdf')]['showSuggestionHighlights']&&_0x3bf081({'showActiveMarkers':!0x1})(_0x136189,_0xbc2c35,_0x4c3eb8);},{'priority':_0x3db5('0xf4')});}),_0x489bdd[_0x3db5('0x104')]['for'](_0x3db5('0x7e'))[_0x3db5('0x9f')]({'model':_0x3db5('0x10f'),'view':(_0x302eec,_0xd6f806)=>_0xd6f806[_0x3db5('0xdf')][_0x3db5('0x13d')]?null:{'group':'suggestion','name':_0x302eec[_0x3db5('0x17')](0xb)}}),_0x489bdd[_0x3db5('0x104')][_0x3db5('0x7a')]('upcast')['elementToElement']({'view':{'name':_0x3db5('0x10f'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c2afc,{writer:_0x218845})=>{let _0x22eb53=_0x3db5('0xa3')+_0x5c2afc[_0x3db5('0xa5')](_0x3db5('0xae'))+':'+_0x5c2afc['getAttribute']('id');return _0x5c2afc['getAttribute'](_0x3db5('0x12f'))&&(_0x22eb53+=':'+_0x5c2afc['getAttribute']('marker-count')),_0x218845[_0x3db5('0xa8')](_0x3db5('0x7d'),{'data-name':_0x22eb53});}}),_0x489bdd[_0x3db5('0x104')]['for'](_0x3db5('0xe1'))[_0x3db5('0x8c')]({'view':_0x3db5('0x10f')}),_0x489bdd[_0x3db5('0x104')]['for'](_0x3db5('0xc3'))[_0x3db5('0xd2')](_0x5e9d0d=>{_0x5e9d0d['on'](_0x3db5('0x117'),_0x3bf081(),{'priority':_0x3db5('0x6a')});}),_0x489bdd[_0x3db5('0x104')][_0x3db5('0x7a')](_0x3db5('0xc3'))['add'](_0x46825f=>{_0x46825f['on'](_0x3db5('0x3e'),(_0x42d437,_0x4017e9,_0x17aa1f)=>{const _0x5c9c8c=_0x17aa1f[_0x3db5('0xfa')][_0x3db5('0x107')](_0x4017e9[_0x3db5('0x63')]);if(_0x5c9c8c)for(const _0x20cac1 of _0x5c9c8c)_0x20cac1[_0x3db5('0xc9')](_0x3db5('0x10e'))||(_0x17aa1f[_0x3db5('0xc0')][_0x3db5('0x41')]([_0x3db5('0x24'),_0x3db5('0xa2'),_0x3db5('0xb4')],_0x20cac1),_0x17aa1f[_0x3db5('0xc0')]['removeAttribute']('data-suggestion',_0x20cac1),_0x17aa1f[_0x3db5('0xfa')]['unbindElementFromMarkerName'](_0x20cac1,_0x4017e9[_0x3db5('0x63')]));},{'priority':_0x3db5('0x6a')});}),_0x489bdd[_0x3db5('0xb5')]['document'][_0x3db5('0xc8')](_0x54db47=>{let _0x51e1bd=!0x1;const _0x570bb5=Array[_0x3db5('0x18')](_0x489bdd[_0x3db5('0xb5')][_0x3db5('0x89')][_0x3db5('0xd0')][_0x3db5('0x11b')]()),_0xc0f6b9=new Set();for(const {name:_0xc62f8d,data:_0x2abdbf}of _0x570bb5){const {group:_0xc0e300,type:_0x4178fe,id:_0x4467a7}=this['_splitMarkerName'](_0xc62f8d);if(_0x3db5('0x10f')!==_0xc0e300)continue;const _0x2750ca=this[_0x3db5('0x10d')][_0x3db5('0x23')](_0x4467a7);if(null!=_0x2abdbf[_0x3db5('0x70')]){_0x3db5('0x7f')==_0x4178fe&&(_0x51e1bd=_0x51e1bd||Mt(_0x2abdbf[_0x3db5('0x70')],_0xc62f8d,_0x54db47,_0x489bdd[_0x3db5('0xb5')]['schema']));if(_0x2abdbf[_0x3db5('0x70')][_0x3db5('0x77')]||'$graveyard'==_0x2abdbf[_0x3db5('0x70')]['root']['rootName']||'formatBlock'==_0x4178fe&&!Nt(_0x2abdbf[_0x3db5('0x70')])||'deletion'==_0x4178fe&&!(!_t(_0x3efb76=_0x2abdbf[_0x3db5('0x70')])&&!function(_0x4d25f3){return _0x4d25f3[_0x3db5('0xbb')]['parent']==_0x4d25f3[_0x3db5('0xf5')]['nodeBefore']&&_0x4d25f3[_0x3db5('0xbb')][_0x3db5('0xb0')];}(_0x3efb76)))_0x54db47[_0x3db5('0xe')](_0xc62f8d),_0x51e1bd=!0x0;else{if(!_0x2750ca||!_0x2750ca[_0x3db5('0xc4')])continue;_0xc0f6b9[_0x3db5('0xd2')](_0x2750ca);}}}var _0x3efb76;return _0xc0f6b9[_0x3db5('0x11c')]>0x0&&(_0x51e1bd=!!this['_joinWithAdjacentSuggestions'](_0xc0f6b9)||_0x51e1bd),_0x51e1bd;}),_0x489bdd[_0x3db5('0xb5')][_0x3db5('0x89')]['registerPostFixer'](_0x5fe92b=>{let _0x2beb66=!0x1;for(const _0x6fb401 of _0x489bdd[_0x3db5('0xb5')][_0x3db5('0x89')][_0x3db5('0xd0')][_0x3db5('0xf6')]()){if(_0x3db5('0xd5')!=_0x6fb401[_0x3db5('0x33')])continue;const _0x1a6bd4=_0x6fb401[_0x3db5('0xf3')][_0x3db5('0x112')](_0x6fb401[_0x3db5('0xd3')]);if(_0x1a6bd4['isAtEnd'])for(const _0x4444f4 of this['_suggestions']['values']()){if(_0x4444f4[_0x3db5('0x61')]||!_0x4444f4[_0x3db5('0xc4')])continue;if(_0x3db5('0x9c')!=_0x4444f4[_0x3db5('0x33')])continue;const _0x51ec99=_0x4444f4[_0x3db5('0x53')]();if(_0x51ec99[_0x3db5('0xbb')][_0x3db5('0xaf')]!=_0x51ec99[_0x3db5('0xf5')][_0x3db5('0xaf')]&&_0x51ec99[_0x3db5('0xf5')]['isEqual'](_0x6fb401[_0x3db5('0xf3')])){const _0x11bf0b=_0x489bdd['model'][_0x3db5('0x12')](_0x51ec99[_0x3db5('0xbb')],_0x1a6bd4);_0x5fe92b[_0x3db5('0x9b')](_0x4444f4[_0x3db5('0xdc')](),{'range':_0x11bf0b}),_0x2beb66=!0x0;}}}return _0x2beb66;}),_0x489bdd['model']['markers']['on'](_0x3db5('0x4d'),(_0xcebd8f,_0x410943,_0x478c13)=>{if(null==_0x478c13){const {id:_0x4bba46}=this[_0x3db5('0x11a')](_0x410943[_0x3db5('0xb9')]),_0x35cab6=this['_suggestions']['get'](_0x4bba46);_0x35cab6&&_0x35cab6[_0x3db5('0x1f')](_0x410943[_0x3db5('0xb9')]);}}),_0x489bdd[_0x3db5('0xb5')]['document']['on'](_0x3db5('0x3f'),()=>{const _0x5a2744=Array[_0x3db5('0x18')](_0x489bdd[_0x3db5('0xb5')][_0x3db5('0x89')][_0x3db5('0xd0')]['getChangedMarkers']())[_0x3db5('0x6c')](_0x1e74cd=>_0x3db5('0x10f')===this[_0x3db5('0x11a')](_0x1e74cd[_0x3db5('0xb9')])[_0x3db5('0x6d')]);if(0x0===_0x5a2744[_0x3db5('0xd3')])return;_0x5a2744[_0x3db5('0x2')]((_0x59cc73,_0x281cc0)=>{const _0x3165db=_0x59cc73['data'][_0x3db5('0x7')],_0x3707d6=_0x281cc0[_0x3db5('0x110')][_0x3db5('0x7')];return null===_0x3165db&&null===_0x3707d6?0x0:null===_0x3165db&&null!==_0x3707d6?-0x1:null!==_0x3165db&&null===_0x3707d6?0x1:_0x3165db[_0x3db5('0xbb')]['isBefore'](_0x3707d6['start'])?-0x1:0x1;});const _0x33e741=new Set(),_0x331eaa=new Set();for(const {name:_0xfabcae,data:_0x2f6390}of _0x5a2744){const {id:_0x280bcb}=this['_splitMarkerName'](_0xfabcae);if(null===_0x2f6390[_0x3db5('0x7')]){const _0x1fe313=this[_0x3db5('0x43')](_0xfabcae);_0x331eaa[_0x3db5('0xd2')](_0x1fe313);}else{const _0x3ce427=this['_suggestions'][_0x3db5('0x23')](_0x280bcb);null!==_0x2f6390[_0x3db5('0x70')]||_0x3ce427[_0x3db5('0xc4')]?(_0x33e741[_0x3db5('0xd2')](_0x3ce427[_0x3db5('0x39')]),_0x331eaa[_0x3db5('0xd2')](_0x3ce427)):this[_0x3db5('0xdb')](_0x3ce427);}}_0x331eaa['size']>0x0&&this['_refreshSuggestionsChain'](_0x331eaa);for(const _0xa64f61 of _0x33e741)this[_0x3db5('0x10c')](_0x3db5('0x3c'),_0xa64f61);}),_0x489bdd[_0x3db5('0xb5')]['on']('applyOperation',(_0xc95670,_0x47e307)=>{const _0x363005=_0x47e307[0x0];if(!this[_0x3db5('0x10d')]['size'])return;if(!_0x363005[_0x3db5('0x4f')])return;if(_0x363005[_0x3db5('0x8')][_0x3db5('0xc')]||!_0x363005[_0x3db5('0x8')][_0x3db5('0x122')])return;let _0xef3836,_0x3fef5a;switch(_0x363005[_0x3db5('0x33')]){case _0x3db5('0xd5'):_0xef3836=_0x489bdd['model'][_0x3db5('0x5c')](_0x363005[_0x3db5('0xf3')]),_0x3fef5a=_0xef3836[_0x3db5('0x112')](_0x363005[_0x3db5('0xf9')]);break;case _0x3db5('0x8e'):_0xef3836=_0x489bdd[_0x3db5('0xb5')][_0x3db5('0x5c')](_0x363005[_0x3db5('0x100')]),_0x3fef5a=_0x489bdd[_0x3db5('0xb5')][_0x3db5('0x5c')](_0x363005[_0x3db5('0x74')]);break;case _0x3db5('0x2f'):_0xef3836=_0x489bdd['model'][_0x3db5('0x5c')](_0x363005['targetPosition']),_0x3fef5a=_0xef3836[_0x3db5('0x112')](_0x363005[_0x3db5('0xf9')]);break;default:return;}const _0x5d757b=_0x489bdd['model'][_0x3db5('0x12')](_0xef3836,_0x3fef5a);_0x489bdd['model'][_0x3db5('0xb2')](()=>{for(const {suggestion:_0x485844,meta:_0x3edf79}of this[_0x3db5('0x56')](_0x5d757b)){if(_0x485844[_0x3db5('0x61')])continue;if('formatInline'==_0x485844[_0x3db5('0x33')])continue;const _0x591fcb=_0x485844['data']&&_0x485844[_0x3db5('0x110')][_0x3db5('0xa0')];(_0x3db5('0x9c')!=_0x485844[_0x3db5('0x33')]||_0x3db5('0x8e')==_0x363005[_0x3db5('0x33')]&&!_0x591fcb)&&(_0x3edf79[_0x3db5('0x91')]||'insertion'==_0x485844[_0x3db5('0x33')]&&_0x3edf79['isOwn']||_0x485844[_0x3db5('0x53')]()['containsRange'](_0x5d757b)&&this['_breakSuggestionMarker'](_0x485844,_0xef3836,_0x3fef5a));}});},{'priority':'lowest'}),_0x489bdd[_0x3db5('0xb5')]['on'](_0x3db5('0x119'),(_0x4094ff,_0x586e4f)=>{const _0x2c4263=_0x586e4f[0x0],_0x21769b=_0x586e4f[0x1];if(_0x21769b&&_0x21769b[_0x3db5('0xbf')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x3db5('0x130')][_0x3db5('0x11d')])return;if(_0x2c4263[_0x3db5('0x77')])return;const _0x3b3655=_0x489bdd[_0x3db5('0xb5')][_0x3db5('0x2d')],{start:_0x37ea99,end:_0x3257cc}=_0x2c4263['getFirstRange'](),_0x1f0230=_0x37ea99[_0x3db5('0x3a')]&&_0x3b3655[_0x3db5('0x133')](_0x37ea99['nodeAfter'])?null:_0x3b3655[_0x3db5('0x105')](_0x37ea99,_0x3db5('0x66')),_0x4bfa01=_0x3257cc['nodeBefore']&&_0x3b3655['isLimit'](_0x3257cc[_0x3db5('0xc2')])?null:_0x3b3655[_0x3db5('0x105')](_0x3257cc,'backward'),_0x59b9e3=_0x489bdd[_0x3db5('0xb5')][_0x3db5('0x12')](_0x1f0230?_0x1f0230['start']:_0x37ea99,_0x4bfa01?_0x4bfa01[_0x3db5('0xf5')]:_0x3257cc);_0x489bdd['model']['change'](_0x44230c=>{this[_0x3db5('0xe7')](_0x59b9e3);const _0x58b485=_0x489bdd[_0x3db5('0xb5')]['schema'][_0x3db5('0x105')](_0x59b9e3[_0x3db5('0xbb')]);_0x2c4263['is'](_0x3db5('0xee'))?_0x44230c[_0x3db5('0x51')](_0x58b485):_0x2c4263[_0x3db5('0x85')](_0x58b485);}),_0x4094ff[_0x3db5('0x3d')]();},{'priority':_0x3d6093[_0x3db5('0x8d')]+0xa}),_0x489bdd[_0x3db5('0xb5')]['on'](_0x3db5('0x30'),(_0x25631d,_0x613b6a)=>{const _0xdc53bb=_0x613b6a[_0x613b6a[_0x3db5('0xd3')]-0x1];_0xdc53bb&&_0xdc53bb[_0x3db5('0xbf')]||this[_0x3db5('0xb7')]||this[_0x3db5('0x130')][_0x3db5('0x11d')]&&(_0x489bdd[_0x3db5('0xb5')]['change'](()=>{let _0xd82977=_0x489bdd[_0x3db5('0xb5')]['insertContent'](_0x613b6a[0x0],_0x613b6a[0x1],_0x613b6a[0x2],{'forceDefaultExecution':!0x0});if(!_0xd82977)return;_0x25631d[_0x3db5('0x6e')]=_0xd82977[_0x3db5('0x26')]();const _0x5d0fee=_0xd82977[_0x3db5('0xf5')][_0x3db5('0xc2')],_0x2b79d4=_0x489bdd[_0x3db5('0xb5')]['schema'];_0x5d0fee&&_0x2b79d4[_0x3db5('0xbd')](_0x5d0fee)&&!_0x2b79d4['isObject'](_0x5d0fee)&&(_0xd82977=_0x489bdd['model']['createRange'](_0xd82977[_0x3db5('0xbb')],_0x489bdd[_0x3db5('0xb5')][_0x3db5('0x5c')](_0x5d0fee,_0x3db5('0xf5')))),this[_0x3db5('0x129')](_0xd82977);}),_0x25631d[_0x3db5('0x3d')]());},{'priority':_0x3db5('0x6a')}),this['editor'][_0x3db5('0x69')][_0x3db5('0xd2')](_0x3db5('0xf7'),this[_0x3db5('0x130')]),this['enableCommand'](_0x3db5('0xf7'));const _0x5408f9=new _0x34fc6a(_0x489bdd,this[_0x3db5('0x10d')]);_0x489bdd[_0x3db5('0x69')][_0x3db5('0xd2')](_0x3db5('0x59'),_0x5408f9),this[_0x3db5('0x1')](_0x3db5('0x59'));const _0x3021b2=new _0x515d89(_0x489bdd,this[_0x3db5('0x10d')]);_0x489bdd[_0x3db5('0x69')]['add']('discardSuggestion',_0x3021b2),this[_0x3db5('0x1')]('discardSuggestion'),_0x489bdd[_0x3db5('0x69')][_0x3db5('0xd2')](_0x3db5('0x132'),new _0x278337(_0x489bdd,_0x5408f9,this['_suggestions'])),this['enableCommand'](_0x3db5('0x132')),_0x489bdd[_0x3db5('0x69')][_0x3db5('0xd2')](_0x3db5('0x4e'),new _0x278337(_0x489bdd,_0x3021b2,this[_0x3db5('0x10d')])),this[_0x3db5('0x1')](_0x3db5('0x4e')),_0x489bdd['commands'][_0x3db5('0xd2')](_0x3db5('0x5b'),new _0x3a486a(_0x489bdd,_0x5408f9,this[_0x3db5('0x10d')])),this[_0x3db5('0x1')]('acceptSelectedSuggestions'),_0x489bdd['commands'][_0x3db5('0xd2')]('discardSelectedSuggestions',new _0x3a486a(_0x489bdd,_0x3021b2,this['_suggestions'])),this[_0x3db5('0x1')]('discardSelectedSuggestions');const _0x412902=_0x489bdd[_0x3db5('0xfb')][_0x3db5('0x23')](_0x3db5('0xf'));this[_0x3db5('0xab')](_0x412902,_0x3db5('0x5a'),(_0x5b3c37,{threadId:_0x456087})=>{const _0x503485=this[_0x3db5('0x10d')][_0x3db5('0x23')](_0x456087);_0x503485&&_0x503485['commentThread']&&0x1===_0x503485['commentThread'][_0x3db5('0xd3')]&&this[_0x3db5('0xca')](_0x456087,{'hasComments':!0x0});},{'priority':_0x3db5('0xe6')}),this[_0x3db5('0xab')](_0x412902,'removeComment',(_0x457a36,{threadId:_0x45383d})=>{const _0x2af16b=this[_0x3db5('0x10d')][_0x3db5('0x23')](_0x45383d);_0x2af16b&&_0x2af16b[_0x3db5('0x94')]&&!_0x2af16b[_0x3db5('0x94')][_0x3db5('0xd3')]&&this[_0x3db5('0xca')](_0x45383d,{'hasComments':!0x1});},{'priority':_0x3db5('0xe6')});}set['adapter'](_0x55d015){if(this[_0x3db5('0x81')])throw new _0x485d84('track-changes-adapter-already-set',this);this[_0x3db5('0x81')]=_0x55d015;}get[_0x3db5('0x5e')](){return this[_0x3db5('0x81')];}[_0x3db5('0xa7')]({skipNotAttached:_0x3da7a5=!0x1,toJSON:_0x241761=!0x1}={}){const _0x11a59f=[];for(const _0xfacd78 of this['_suggestions'][_0x3db5('0x10a')]())_0x3da7a5&&!_0xfacd78[_0x3db5('0xc4')]||_0x11a59f['push'](_0xfacd78);return _0x241761?_0x11a59f[_0x3db5('0xb')](_0x977f3c=>_0x977f3c[_0x3db5('0x42')]()):_0x11a59f;}[_0x3db5('0x99')](_0x309d0b){const _0x3acd19=this[_0x3db5('0x10d')][_0x3db5('0x23')](_0x309d0b);if(!_0x3acd19)throw new _0x485d84(_0x3db5('0x2a'),this);return _0x3acd19;}['hasSuggestion'](_0x330e15){return this['_suggestions'][_0x3db5('0xbc')](_0x330e15);}[_0x3db5('0x127')](_0xf0a933){const {authorId:_0x21ee7c,id:_0x19aca4,attributes:_0x3680b9}=_0xf0a933,[_0x4f981c,_0x587ce8]=_0xf0a933[_0x3db5('0x33')]['split'](':'),_0x3c22e8=this['_suggestions'][_0x3db5('0x23')](_0x19aca4)||this[_0x3db5('0xb6')](_0x4f981c,_0x587ce8,_0x19aca4,_0x21ee7c,_0x3680b9);if(this[_0x3db5('0xdd')](_0x3c22e8),this[_0x3db5('0x84')](_0x3c22e8,_0x4f981c,_0x587ce8||null,_0x21ee7c),_0x3c22e8['createdAt']=_0xf0a933[_0x3db5('0x135')],_0x3680b9&&_0x3680b9[_0x3db5('0x34')]){const _0x1ff410=_0x3680b9['@external'],_0x189886=this[_0x3db5('0x22')](_0x1ff410['authorName']);_0x3c22e8[_0x3db5('0x60')]=_0x1ff410[_0x3db5('0x135')],_0x3c22e8[_0x3db5('0xbe')]=_0x189886,_0x3c22e8[_0x3db5('0x108')]=!0x0;}else _0x3c22e8[_0x3db5('0x60')]=_0xf0a933[_0x3db5('0x135')];switch(_0xf0a933[_0x3db5('0x110')]&&(_0x3c22e8[_0x3db5('0x110')]=_0xf0a933[_0x3db5('0x110')]),_0xf0a933[_0x3db5('0xcb')]&&(_0x3c22e8[_0x3db5('0xcb')]=_0xf0a933[_0x3db5('0xcb')]),this[_0x3db5('0x81')]&&this['_adapter']['addSuggestion']||(_0x3c22e8[_0x3db5('0xa6')]=!0x0),this[_0x3db5('0xa9')]['get'](_0x3c22e8)){case'notReady':this['_suggestionState'][_0x3db5('0xd9')](_0x3c22e8,_0x3db5('0xe4'));break;case _0x3db5('0xec'):_0x3c22e8['isInContent']?(this['_suggestionState'][_0x3db5('0xd9')](_0x3c22e8,_0x3db5('0xc5')),this[_0x3db5('0x10c')](_0x3db5('0x120'),_0x3c22e8)):this[_0x3db5('0xa9')][_0x3db5('0xd9')](_0x3c22e8,_0x3db5('0xb8'));}return _0x3c22e8;}[_0x3db5('0x59')](_0x1bd72f){this['forceDefaultExecution'](()=>{this[_0x3db5('0x4b')][_0x3db5('0xb5')][_0x3db5('0xb2')](()=>{for(const _0x2293a7 of _0x1bd72f['getAllAdjacentSuggestions']())_0x2293a7[_0x3db5('0x1c')]();});});}['discardSuggestion'](_0x3fa7dc){this[_0x3db5('0xbf')](()=>{this[_0x3db5('0x4b')][_0x3db5('0xb5')][_0x3db5('0xb2')](()=>{for(const _0x259515 of _0x3fa7dc[_0x3db5('0x13b')]())_0x259515['discard']();});});}[_0x3db5('0x1')](_0x20a13f,_0xd4f727){const _0x48a52b=this[_0x3db5('0x4b')][_0x3db5('0x69')]['get'](_0x20a13f);if(!_0x48a52b)throw new _0x485d84(_0x3db5('0xde'),this,{'commandName':_0x20a13f});this[_0x3db5('0x93')][_0x3db5('0xd2')](_0x48a52b),_0xd4f727&&_0x48a52b['on'](_0x3db5('0x134'),(_0x6a275d,_0x3eccf5)=>{this[_0x3db5('0x130')][_0x3db5('0x11d')]&&(this[_0x3db5('0xb7')]||_0x3eccf5[_0x3db5('0xd3')]>0x0&&_0x3eccf5[_0x3eccf5[_0x3db5('0xd3')]-0x1]&&_0x3eccf5[_0x3eccf5[_0x3db5('0xd3')]-0x1][_0x3db5('0xbf')]||(_0xd4f727((..._0x18e3f7)=>_0x48a52b[_0x3db5('0x134')](..._0x18e3f7,{'forceDefaultExecution':!0x0}),..._0x3eccf5),_0x6a275d['stop']()));},{'priority':_0x3db5('0x6a')});}[_0x3db5('0xbf')](_0x3db5c8){let _0x3415d9,_0x170e11;const _0x51b9aa=this[_0x3db5('0xb7')];this[_0x3db5('0xb7')]=!0x0;try{_0x3415d9=_0x3db5c8();}catch(_0x12ca7e){_0x170e11=_0x12ca7e;}return _0x51b9aa||(this[_0x3db5('0xb7')]=!0x1),_0x170e11&&_0x485d84[_0x3db5('0x98')](_0x170e11,this),_0x3415d9;}['markInsertion'](_0x21d562,_0x47a090=null,_0x4c7142={}){if(_0x21d562[_0x3db5('0x77')])return null;const _0x5c7616=this[_0x3db5('0x4b')][_0x3db5('0xfb')][_0x3db5('0x23')](_0x3db5('0x86'))['me'];for(const {suggestion:_0x19a618,meta:_0x4cf5c5}of this[_0x3db5('0x56')](_0x21d562,_0x3db5('0x109')))if(_0x4cf5c5[_0x3db5('0xe2')]){if(!_0x4cf5c5[_0x3db5('0x13c')]){if(!this[_0x3db5('0x35')]&&_0x4cf5c5[_0x3db5('0x91')])continue;return _0x19a618;}if(_0x47a090==_0x19a618[_0x3db5('0xc1')]){const _0xd9dc35=_0x19a618[_0x3db5('0x53')]();return _0xd9dc35[_0x3db5('0xbb')][_0x3db5('0x101')](_0x21d562[_0x3db5('0xf5')])?this[_0x3db5('0xc7')](_0x19a618,this[_0x3db5('0x16')]['createRange'](_0x21d562['start'],_0xd9dc35[_0x3db5('0xf5')])):this[_0x3db5('0xc7')](_0x19a618,this[_0x3db5('0x16')][_0x3db5('0x12')](_0xd9dc35['start'],_0x21d562[_0x3db5('0xf5')])),_0x19a618;}}const _0x25094e=_0xf1fad3(),_0x38b948=_0x5c7616['id'],_0x284441=_0x47a090?_0x3db5('0xa1')+_0x47a090:'insertion',_0x8d8049=this[_0x3db5('0x8a')]({'id':_0x25094e,'type':_0x284441,'createdAt':new Date(),'authorId':_0x38b948,'attributes':_0x4c7142});return this[_0x3db5('0x8f')](_0x284441,_0x25094e,_0x38b948,_0x21d562),_0x8d8049;}[_0x3db5('0x44')](_0x11a34d,_0x8b40b=_0x3db5('0x137'),_0x5a06b2={}){const _0x2a7e6b=this[_0x3db5('0x4b')][_0x3db5('0xfb')][_0x3db5('0x23')]('Users')['me'],_0x4fe9cb=this[_0x3db5('0xe5')][_0x3db5('0x72')](_0x3db5('0x109'),_0x8b40b,_0x3db5('0xef'));for(const _0x581165 of this[_0x3db5('0xa7')]())if(_0x581165['author']['id']==_0x2a7e6b['id']&&_0x3db5('0x109')==_0x581165['type']&&_0x581165[_0x3db5('0xc1')]==_0x8b40b&&(_0x4fe9cb(_0x581165[_0x3db5('0x65')](),_0x11a34d)||_0x4fe9cb(_0x11a34d,_0x581165[_0x3db5('0x65')]()))){for(const _0x546ad5 of _0x11a34d)_0x581165['addRange'](_0x546ad5);return _0x581165;}if(this[_0x3db5('0x35')])for(const _0x4b7318 of _0x11a34d)for(const {suggestion:_0x55f1c0,meta:_0x3366ac}of this[_0x3db5('0x56')](_0x4b7318,_0x3db5('0x109'))){if(!_0x3366ac['isOwn'])continue;let _0x397a97=!0x0;for(const _0x1bc351 of _0x55f1c0[_0x3db5('0x65')]())for(const _0x529c81 of _0x11a34d)if(!_0x1bc351[_0x3db5('0x55')](_0x529c81)){_0x397a97=!0x1;break;}if(_0x397a97)return _0x55f1c0;}const _0x87cd2b=_0xf1fad3(),_0x1bfa43=_0x2a7e6b['id'],_0x5a8632=_0x3db5('0xa1')+_0x8b40b,_0x255321=this[_0x3db5('0x8a')]({'id':_0x87cd2b,'type':_0x5a8632,'createdAt':new Date(),'authorId':_0x1bfa43,'attributes':_0x5a06b2});for(const _0x30138d of _0x11a34d)this[_0x3db5('0x8f')](_0x5a8632,_0x87cd2b,_0x1bfa43,_0x30138d,_0x31ad3a[_0x3db5('0x2c')]());return _0x255321;}[_0x3db5('0x3b')](_0x3426bd,_0x30ee39,_0x23d356=null,_0x328077={}){if(_0x23d356=_0x23d356||$t(_0x30ee39),_0x3426bd[_0x3db5('0x77')])return null;if(_0x3db5('0x4c')===this['_trackFormatChanges']){const _0x3dd4c9=this[_0x3db5('0xe5')]['getSuggestionCallback'](_0x3db5('0x7f'),_0x23d356,_0x3db5('0x1c'));return this[_0x3db5('0xbf')](()=>_0x3dd4c9([_0x3426bd],_0x30ee39,_0x328077)),null;}const _0x3878b5=this[_0x3db5('0x4b')]['plugins'][_0x3db5('0x23')](_0x3db5('0x86'))['me'],_0x3113bd=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0xa606fd,meta:_0x36c248}of this['_findSuggestions'](_0x3426bd,_0x3db5('0x109')))_0x36c248['isOwn']&&!_0x36c248[_0x3db5('0x52')]&&_0x3113bd[_0x3db5('0xd4')](..._0xa606fd[_0x3db5('0x65')]());const _0x1618a2=function(_0x42c26a,_0x4c09e3){const _0x242c0e=[];for(const _0x517d07 of _0x4c09e3){const _0x3253ba=_0x42c26a[_0x3db5('0x12e')](_0x517d07);_0x3253ba&&_0x242c0e[_0x3db5('0xd4')](_0x3253ba);}return _0x242c0e;}(_0x3426bd,_0x3113bd),_0x120888=function(_0x117b68,_0x547255){const _0x5759ee=[_0x117b68];for(const _0x40a116 of _0x547255){let _0x5e7e8c=0x0;for(;_0x5e7e8c<_0x5759ee[_0x3db5('0xd3')];){const _0x47f8f7=_0x5759ee[_0x5e7e8c][_0x3db5('0x113')](_0x40a116);_0x5759ee['splice'](_0x5e7e8c,0x1,..._0x47f8f7),_0x5e7e8c+=_0x47f8f7[_0x3db5('0xd3')];}}return _0x5759ee;}(_0x3426bd,_0x3113bd);_0x1618a2['length']&&this['_model'][_0x3db5('0xb2')](()=>{for(const _0x11305a of _0x1618a2){const _0x56b5da=this[_0x3db5('0xe5')][_0x3db5('0x72')](_0x3db5('0x7f'),_0x23d356,_0x3db5('0x1c'));this[_0x3db5('0xbf')](()=>_0x56b5da([_0x11305a],_0x30ee39,_0x328077));}});for(const _0x259a83 of _0x120888){let _0x3df5e7=null,_0x359a54=_0x259a83[_0x3db5('0xbb')],_0x5e32f6=_0x259a83[_0x3db5('0xf5')];for(const {suggestion:_0x214292,meta:_0x238cef}of this[_0x3db5('0x56')](_0x259a83,_0x3db5('0x7f'))){if(!_0x238cef[_0x3db5('0xe2')])continue;if(_0x214292[_0x3db5('0xc1')]!=_0x23d356)continue;const _0x126310=_0x214292['getFirstRange']();if(_0x126310[_0x3db5('0x55')](_0x259a83,!0x0))return null;_0x359a54=_0x359a54[_0x3db5('0xa4')](_0x126310['start'])?_0x359a54:_0x126310[_0x3db5('0xbb')],_0x5e32f6=_0x5e32f6[_0x3db5('0x1e')](_0x126310[_0x3db5('0xf5')])?_0x5e32f6:_0x126310['end'],_0x3df5e7?_0x126310['start'][_0x3db5('0xa4')](_0x3df5e7['getFirstRange']()[_0x3db5('0xbb')])?(_0x3df5e7[_0x3db5('0xff')](),_0x3df5e7=_0x214292):_0x214292[_0x3db5('0xff')]():_0x3df5e7=_0x214292;}const _0x827671=this['_model'][_0x3db5('0x12')](_0x359a54,_0x5e32f6);if(_0x3df5e7)this[_0x3db5('0xc7')](_0x3df5e7,_0x827671);else{const _0x505fae=_0xf1fad3(),_0x5eaed9=_0x3878b5['id'];this[_0x3db5('0x8a')]({'id':_0x505fae,'type':_0x3db5('0x82')+_0x23d356,'data':_0x30ee39,'createdAt':new Date(),'authorId':_0x5eaed9,'attributes':_0x328077}),this[_0x3db5('0x8f')](_0x3db5('0x82')+_0x23d356,_0x505fae,_0x5eaed9,_0x827671);}}return null;}[_0x3db5('0x13')](_0x2f12ee,_0x3364fe,_0x4cae18=[],_0x2cb68e=null,_0x1d6ef1={}){_0x3364fe[_0x3db5('0xfe')]||(_0x3364fe[_0x3db5('0xfe')]=_0x3364fe[_0x3db5('0xcc')]),_0x3364fe[_0x3db5('0xa0')]=_0x2f12ee['is'](_0x3db5('0xcd')),_0x2cb68e=_0x2cb68e||$t(_0x3364fe);const _0x3eb0c3=_0x4cae18[_0x3db5('0xb')](_0x4260bc=>Rt(_0x4260bc,this['_model'])),_0x15e749=_0x2f12ee['is'](_0x3db5('0xcd'))?_0x2f12ee:Rt(_0x2f12ee,this[_0x3db5('0x16')]);if('never'===this[_0x3db5('0x7b')]){const _0x2ba46d=this[_0x3db5('0xe5')][_0x3db5('0x72')](_0x3db5('0x9c'),_0x2cb68e,'accept');return this['forceDefaultExecution'](()=>_0x2ba46d([_0x15e749],_0x3364fe,_0x1d6ef1)),null;}_0x3eb0c3[_0x3db5('0xd4')](_0x15e749);let _0xe3abec=!0x0;for(const _0x43fbd2 of _0x3eb0c3)if(!this[_0x3db5('0x1a')](_0x43fbd2)){_0xe3abec=!0x1;break;}if(_0xe3abec&&_0x3db5('0x20')!==this[_0x3db5('0x7b')]){const _0x4f7b8c=this['_suggestionFactory'][_0x3db5('0x72')]('formatBlock',_0x2cb68e,_0x3db5('0x1c'));return this['forceDefaultExecution'](()=>_0x4f7b8c([_0x15e749],_0x3364fe,_0x1d6ef1)),null;}let _0x3e0328=null,_0x38ce57=_0x15e749[_0x3db5('0xbb')],_0x52c4e9=_0x15e749['end'];for(const {suggestion:_0x2d15e2,meta:_0x4173c2}of this[_0x3db5('0x56')](_0x15e749,_0x3db5('0x9c'))){if(!_0x4173c2[_0x3db5('0xe2')]||_0x4173c2['isNextTo']||_0x4173c2['containsRangeInObject']||_0x4173c2['isInsideObject'])continue;if(_0x2d15e2[_0x3db5('0x110')][_0x3db5('0xfe')]!=_0x3364fe[_0x3db5('0xfe')])continue;const _0x2ccbf3=_0x2d15e2[_0x3db5('0x53')]();if(_0x2d15e2[_0x3db5('0xc1')]==_0x2cb68e){if(_0x2ccbf3['containsRange'](_0x15e749,!0x0))return null;_0x38ce57=_0x38ce57[_0x3db5('0xa4')](_0x2ccbf3[_0x3db5('0xbb')])?_0x38ce57:_0x2ccbf3[_0x3db5('0xbb')],_0x52c4e9=_0x52c4e9['isAfter'](_0x2ccbf3[_0x3db5('0xf5')])?_0x52c4e9:_0x2ccbf3[_0x3db5('0xf5')],_0x3e0328?_0x2ccbf3[_0x3db5('0xbb')]['isBefore'](_0x3e0328[_0x3db5('0x53')]()[_0x3db5('0xbb')])?(_0x3e0328[_0x3db5('0xff')](),_0x3e0328=_0x2d15e2):_0x2d15e2[_0x3db5('0xff')]():_0x3e0328=_0x2d15e2;}else{const _0x595fd6=_0x15e749[_0x3db5('0x12e')](_0x2ccbf3);this[_0x3db5('0x79')](_0x2d15e2,_0x595fd6);}}const _0x18b9a6=this[_0x3db5('0x4b')]['plugins'][_0x3db5('0x23')](_0x3db5('0x86'))['me'],_0x1f99ae=_0xf1fad3(),_0x2bb7fa=_0x18b9a6['id'];if(_0x3e0328)return this[_0x3db5('0xc7')](_0x3e0328,this[_0x3db5('0x16')]['createRange'](_0x38ce57,_0x52c4e9)),_0x3e0328;{const _0x23be0c=this[_0x3db5('0x8a')]({'id':_0x1f99ae,'type':_0x3db5('0x10b')+_0x2cb68e,'data':_0x3364fe,'createdAt':new Date(),'authorId':_0x2bb7fa,'attributes':_0x1d6ef1});return this['_addSuggestionMarker'](_0x3db5('0x10b')+_0x2cb68e,_0x1f99ae,_0x2bb7fa,this[_0x3db5('0x16')][_0x3db5('0x12')](_0x38ce57,_0x52c4e9)),_0x23be0c;}}[_0x3db5('0x3')](_0x5d1b71,_0xffc03c,_0x246d1b=[],_0x350d94=null,_0x2d4824={}){_0xffc03c[_0x3db5('0xfe')]||(_0xffc03c[_0x3db5('0xfe')]=_0xffc03c[_0x3db5('0xcc')]);const _0x3d9e83=_0x5d1b71[0x0];_0xffc03c[_0x3db5('0xa0')]=_0x3d9e83['is'](_0x3db5('0xcd')),_0x350d94=_0x350d94||$t(_0xffc03c);const _0xaf33b4=_0x246d1b[_0x3db5('0xb')](_0x22f8db=>Rt(_0x22f8db,this[_0x3db5('0x16')])),_0x3d57a4=_0x3d9e83['is'](_0x3db5('0xcd'))?_0x5d1b71:_0x5d1b71[_0x3db5('0xb')](_0x20639c=>Rt(_0x20639c,this[_0x3db5('0x16')]));if(_0x3db5('0x4c')===this['_trackFormatChanges']){const _0x5ea2db=this[_0x3db5('0xe5')]['getSuggestionCallback'](_0x3db5('0x9c'),_0x350d94,'accept');return this[_0x3db5('0xbf')](()=>_0x5ea2db(_0x3d57a4,_0xffc03c,_0x2d4824)),null;}_0xaf33b4[_0x3db5('0xd4')](..._0x3d57a4);let _0x58f1a4=!0x0;for(const _0xdb02a8 of _0xaf33b4)if(!this[_0x3db5('0x1a')](_0xdb02a8)){_0x58f1a4=!0x1;break;}if(_0x58f1a4&&_0x3db5('0x20')!==this[_0x3db5('0x7b')]){const _0x52940f=this[_0x3db5('0xe5')][_0x3db5('0x72')](_0x3db5('0x9c'),_0x350d94,'accept');return this[_0x3db5('0xbf')](()=>_0x52940f(_0x3d57a4,_0xffc03c,_0x2d4824)),null;}const _0x12253a=this['editor'][_0x3db5('0xfb')]['get'](_0x3db5('0x86'))['me'];for(const _0x38ddb8 of this[_0x3db5('0xa7')]()){if(_0x38ddb8[_0x3db5('0xbe')]['id']!=_0x12253a['id'])continue;if('formatBlock'!=_0x38ddb8['type']||_0x38ddb8[_0x3db5('0x110')][_0x3db5('0xfe')]!=_0xffc03c['formatGroupId'])continue;const _0x15031a=_0x38ddb8['subType']==_0x350d94;for(let _0x2de720=0x0;_0x2de720<_0x3d57a4['length'];_0x2de720++){const _0x523936=_0x3d57a4[_0x2de720];for(const _0x440a1a of _0x38ddb8[_0x3db5('0x71')]()){const _0x29ade3=_0x440a1a['getRange']();if(_0x523936[_0x3db5('0x101')](_0x29ade3)){_0x15031a?(_0x3d57a4[_0x3db5('0x11f')](_0x2de720,0x1),_0x2de720--):_0x38ddb8[_0x3db5('0xe')](_0x440a1a[_0x3db5('0xb9')]);break;}}}}if(0x0==_0x3d57a4[_0x3db5('0xd3')])return null;const _0x2b77f2=this['_suggestionFactory']['getSuggestionCallback'](_0x3db5('0x9c'),_0x350d94,_0x3db5('0xef'));for(const _0x2891b8 of this['getSuggestions']())if(_0x2891b8['author']['id']==_0x12253a['id']&&_0x3db5('0x9c')==_0x2891b8[_0x3db5('0x33')]&&_0x2891b8[_0x3db5('0x110')][_0x3db5('0xfe')]==_0xffc03c[_0x3db5('0xfe')]&&_0x2891b8[_0x3db5('0xc1')]==_0x350d94&&(_0x2b77f2(_0x2891b8[_0x3db5('0x65')](),_0x3d57a4)||_0x2b77f2(_0x3d57a4,_0x2891b8[_0x3db5('0x65')]()))){for(const _0x19302f of _0x3d57a4)_0x2891b8[_0x3db5('0x1b')](_0x19302f);return _0x2891b8;}const _0x4321c9=_0xf1fad3(),_0x409a62=_0x12253a['id'],_0x21a40b='formatBlock:'+_0x350d94,_0x5afeaa=this[_0x3db5('0x8a')]({'id':_0x4321c9,'type':_0x21a40b,'data':_0xffc03c,'createdAt':new Date(),'authorId':_0x409a62,'attributes':_0x2d4824});for(const _0x527995 of _0x3d57a4)this[_0x3db5('0x8f')](_0x21a40b,_0x4321c9,_0x409a62,_0x527995,_0x31ad3a[_0x3db5('0x2c')]());return _0x5afeaa;}[_0x3db5('0xe7')](_0x478473,_0xf1285d=null,_0x27055c={}){if(_0x478473[_0x3db5('0x77')])return null;const _0x2dd73e=this['editor']['plugins'][_0x3db5('0x23')](_0x3db5('0x86'))['me'],_0x590907=new _0x145035(_0x478473[_0x3db5('0xbb')],_0x478473[_0x3db5('0xf5')]);for(const {suggestion:_0x49ff7c,meta:_0x3ccad1}of this[_0x3db5('0x56')](_0x590907,_0x3db5('0x109')))if(_0x3ccad1['isOwn']&&!_0x3ccad1['isNextTo']){if(_0x49ff7c[_0x3db5('0x61')]){const _0x32b1a5=_0x49ff7c['getRanges']()[_0x3db5('0x6c')](_0x468bc6=>_0x3db5('0xed')!=_0x468bc6[_0x3db5('0xb3')][_0x3db5('0x9e')]);_0x32b1a5['every'](_0x5e34ca=>_0x590907[_0x3db5('0x55')](_0x5e34ca,!0x0))&&_0x49ff7c[_0x3db5('0x27')]();if(_0x32b1a5[_0x3db5('0x9d')](_0x297c07=>_0x297c07[_0x3db5('0x55')](_0x590907,!0x0))){const _0x42496f=this[_0x3db5('0xe5')][_0x3db5('0x72')](_0x3db5('0x46'),_0xf1285d,_0x3db5('0x1c'));return this[_0x3db5('0xbf')](()=>_0x42496f([_0x590907],null,_0x27055c)),null;}}else{const _0x2efa30=_0x590907['getIntersection'](_0x49ff7c[_0x3db5('0x53')]());null!==_0x2efa30&&_0x49ff7c[_0x3db5('0xaa')]([_0x2efa30],null,_0x27055c);}}if(_0x590907['detach'](),_0x590907[_0x3db5('0x77')]||'$graveyard'==_0x590907['root'][_0x3db5('0x9e')])return null;let _0xb30a69=null,_0x298134=_0x590907['start'],_0x1365ed=_0x590907[_0x3db5('0xf5')];for(const {suggestion:_0x2ae5a3,meta:_0x33551d}of this[_0x3db5('0x56')](_0x590907,_0x3db5('0x46')))if(_0x33551d['isOwn']){if(_0x2ae5a3[_0x3db5('0x61')]&&this[_0x3db5('0x35')]){let _0x34501f=!0x0;for(const _0x1ad8c1 of _0x2ae5a3['getRanges']()){if(_0x1ad8c1[_0x3db5('0x55')](_0x590907,!0x0))return _0x2ae5a3;_0x590907['containsRange'](_0x1ad8c1)||(_0x34501f=!0x1);}_0x34501f&&_0x2ae5a3[_0x3db5('0x27')]();}else{const _0xc8012=_0x2ae5a3['getFirstRange']();if(_0xc8012[_0x3db5('0x55')](_0x590907,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x33551d['containsRangeInObject'])continue;return _0x2ae5a3;}_0x298134=_0x298134[_0x3db5('0xa4')](_0xc8012[_0x3db5('0xbb')])?_0x298134:_0xc8012[_0x3db5('0xbb')],_0x1365ed=_0x1365ed[_0x3db5('0x1e')](_0xc8012['end'])?_0x1365ed:_0xc8012['end'],_0xb30a69?_0xc8012[_0x3db5('0xbb')]['isBefore'](_0xb30a69['getFirstRange']()[_0x3db5('0xbb')])?(_0xb30a69[_0x3db5('0xff')](),_0xb30a69=_0x2ae5a3):_0x2ae5a3[_0x3db5('0xff')]():_0xb30a69=_0x2ae5a3;}}if(_0xb30a69)return this[_0x3db5('0xc7')](_0xb30a69,this[_0x3db5('0x16')]['createRange'](_0x298134,_0x1365ed)),_0xb30a69;{const _0x8ff55c=_0xf1fad3(),_0x40f3a5=this[_0x3db5('0x16')][_0x3db5('0x12')](_0x298134,_0x1365ed),_0xa9ba30=_0x2dd73e['id'],_0x4b1faf=_0xf1285d?_0x3db5('0x32')+_0xf1285d:_0x3db5('0x46'),_0x49a051=this[_0x3db5('0x8a')]({'id':_0x8ff55c,'type':_0x4b1faf,'createdAt':new Date(),'authorId':_0xa9ba30,'attributes':_0x27055c});return this[_0x3db5('0x8f')](_0x4b1faf,_0x8ff55c,_0xa9ba30,_0x40f3a5),_0x49a051;}}[_0x3db5('0xe9')](_0x13b1e6,_0x88a294=_0x3db5('0x137'),_0x2e0f9d={}){const _0x50f92e=this[_0x3db5('0x4b')][_0x3db5('0xfb')][_0x3db5('0x23')](_0x3db5('0x86'))['me'],_0x3a89cb=_0x13b1e6[_0x3db5('0xb')](_0x35d875=>new _0x145035(_0x35d875[_0x3db5('0xbb')],_0x35d875[_0x3db5('0xf5')])),_0x52b2b9=new Set();for(const _0x582324 of _0x3a89cb)for(const {suggestion:_0x10e25a,meta:_0x5a5f04}of this[_0x3db5('0x56')](_0x582324,_0x3db5('0x109')))_0x5a5f04[_0x3db5('0xe2')]&&!_0x5a5f04[_0x3db5('0x13c')]&&_0x52b2b9[_0x3db5('0xd2')](_0x10e25a);for(const _0x478ccb of _0x52b2b9)if(_0x478ccb['isMultiRange']){const _0x52d5f1=_0x478ccb[_0x3db5('0x65')]();(!_0x478ccb['attributes']||!_0x478ccb[_0x3db5('0xcb')][_0x3db5('0x80')])&&(_0x52d5f1[_0x3db5('0x28')](_0x3b14e7=>_0x3a89cb[_0x3db5('0x9d')](_0x56adb2=>_0x56adb2[_0x3db5('0x55')](_0x3b14e7,!0x0)))&&_0x478ccb[_0x3db5('0x27')]());if(_0x3a89cb[_0x3db5('0x28')](_0x22342c=>_0x52d5f1[_0x3db5('0x9d')](_0x83d2e0=>_0x83d2e0[_0x3db5('0x55')](_0x22342c,!0x0)))){const _0xd37e87=this[_0x3db5('0xe5')][_0x3db5('0x72')](_0x3db5('0x46'),_0x88a294,_0x3db5('0x1c'));return this[_0x3db5('0xbf')](()=>_0xd37e87(_0x13b1e6,null,_0x2e0f9d)),null;}}else{const _0x1ecc61=_0x478ccb['getFirstRange']();_0x3a89cb[_0x3db5('0x9d')](_0x1f982b=>_0x1f982b[_0x3db5('0x55')](_0x1ecc61,!0x0))&&_0x478ccb['discard']();if(_0x3a89cb['every'](_0xefc86=>_0x1ecc61[_0x3db5('0x55')](_0xefc86,!0x0))){const _0x3624c2=this[_0x3db5('0xe5')][_0x3db5('0x72')]('deletion',_0x88a294,'accept');return this[_0x3db5('0xbf')](()=>_0x3624c2(_0x3a89cb,null,_0x2e0f9d)),null;}}const _0x81457=this[_0x3db5('0xe5')][_0x3db5('0x72')](_0x3db5('0x46'),_0x88a294,'join');let _0x4fd1b7=null;for(const _0x34a7dc of this[_0x3db5('0xa7')]())if(_0x34a7dc[_0x3db5('0xbe')]['id']==_0x50f92e['id']&&_0x34a7dc[_0x3db5('0xc4')]&&_0x3db5('0x46')==_0x34a7dc[_0x3db5('0x33')]&&_0x34a7dc[_0x3db5('0xc1')]==_0x88a294&&(_0x81457(_0x34a7dc[_0x3db5('0x65')](),_0x3a89cb)||_0x81457(_0x3a89cb,_0x34a7dc[_0x3db5('0x65')]()))){if(_0x4fd1b7){if(_0x34a7dc['commentThread']&&_0x34a7dc['commentThread'][_0x3db5('0xd3')])continue;for(const _0x443380 of _0x34a7dc[_0x3db5('0x65')]())_0x4fd1b7[_0x3db5('0x95')](_0x443380)||_0x4fd1b7['addRange'](_0x443380);_0x34a7dc['removeMarkers']();}else{_0x4fd1b7=_0x34a7dc;for(const _0x24a822 of _0x3a89cb)_0x34a7dc[_0x3db5('0x95')](_0x24a822)||_0x34a7dc['addRange'](_0x24a822);}}if(_0x4fd1b7)return _0x4fd1b7;_0x52b2b9[_0x3db5('0x97')]();for(const _0x21862f of _0x3a89cb)for(const {suggestion:_0xfc20e5,meta:_0x474e87}of this['_findSuggestions'](_0x21862f,_0x3db5('0x46')))_0x474e87[_0x3db5('0xe2')]&&_0x52b2b9[_0x3db5('0xd2')](_0xfc20e5);for(const _0x5f2a2a of _0x52b2b9){const _0x4ea333=_0x5f2a2a[_0x3db5('0x65')]();if(!_0x2e0f9d||!_0x2e0f9d[_0x3db5('0x80')]){if(_0x3a89cb[_0x3db5('0x28')](_0x100e37=>_0x4ea333[_0x3db5('0x9d')](_0x2deea3=>_0x2deea3['containsRange'](_0x100e37,!0x0))))return _0x5f2a2a;}(!_0x5f2a2a[_0x3db5('0xcb')]||!_0x5f2a2a['attributes']['skipNestingCheck'])&&(_0x4ea333[_0x3db5('0x28')](_0x33aed3=>_0x3a89cb['some'](_0x19ed96=>_0x19ed96['containsRange'](_0x33aed3,!0x0)))&&_0x5f2a2a[_0x3db5('0x27')]());}const _0x337972=_0xf1fad3(),_0x45ae05=_0x50f92e['id'],_0x974fba=_0x3db5('0x32')+_0x88a294,_0x4d629e=this[_0x3db5('0x8a')]({'id':_0x337972,'type':_0x974fba,'createdAt':new Date(),'authorId':_0x45ae05,'attributes':_0x2e0f9d});for(const _0x56db28 of _0x3a89cb)_0x56db28[_0x3db5('0x19')](),_0x56db28[_0x3db5('0x77')]||_0x3db5('0xed')==_0x56db28[_0x3db5('0xb3')]['rootName']||this[_0x3db5('0x8f')](_0x974fba,_0x337972,_0x45ae05,_0x56db28,_0x31ad3a['getMultiRangeId']());return _0x4d629e;}['_setSuggestionRange'](_0x4d130b,_0x1ba952){const _0x3496b1=_0x4d130b[_0x3db5('0xdc')]();this[_0x3db5('0x16')][_0x3db5('0xb2')](_0x813340=>{_0x813340[_0x3db5('0x9b')](_0x3496b1,{'range':_0x1ba952});});}[_0x3db5('0xdd')](_0x1cbc5c){const _0x53a958=_0x1cbc5c['id'],_0x57e51c=this['editor']['config']['get'](_0x3db5('0x13a'));this[_0x3db5('0xe8')][_0x3db5('0x6')](_0x53a958)||this[_0x3db5('0xe8')][_0x3db5('0x92')]({'channelId':_0x57e51c,'threadId':_0x53a958,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x38c4e3=this[_0x3db5('0xe8')][_0x3db5('0x8b')](_0x53a958);_0x38c4e3[_0x3db5('0x126')]('isRemovable'),_0x38c4e3['isRemovable']=!0x1,_0x1cbc5c[_0x3db5('0x94')]=_0x38c4e3;}[_0x3db5('0x84')](_0x2b04e1,_0x23d8a5,_0x4f9342,_0x5e56c2){if(_0x2b04e1['type']!=_0x23d8a5||_0x2b04e1['subType']!=_0x4f9342||_0x2b04e1[_0x3db5('0x15')]['id']!=_0x5e56c2)throw this['editor']['enableReadOnlyMode'](_0x3db5('0x115')),new _0x485d84('track-changes-suggestion-data-mismatch',this);}[_0x3db5('0x79')](_0x1ecd8e,_0x301e41){const _0x36c4cb=_0x1ecd8e[_0x3db5('0x53')]();if(_0x301e41['isEqual'](_0x36c4cb))_0x1ecd8e['removeMarkers']();else{if(_0x36c4cb[_0x3db5('0x55')](_0x301e41)){const _0x34b985=this[_0x3db5('0x16')]['createPositionAt'](_0x301e41['start'][_0x3db5('0xc2')],'end');this[_0x3db5('0xc7')](_0x1ecd8e,this[_0x3db5('0x16')][_0x3db5('0x12')](_0x36c4cb[_0x3db5('0xbb')],_0x34b985));const _0x2ec3c2=_0xf1fad3(),_0x2a19ea=_0x1ecd8e['creator']['id'],_0x40c76b=_0x1ecd8e['type']+':'+_0x1ecd8e[_0x3db5('0xc1')];this[_0x3db5('0x8a')]({'id':_0x2ec3c2,'type':_0x40c76b,'createdAt':new Date(),'authorId':_0x2a19ea,'data':_0x1ecd8e[_0x3db5('0x110')],'attributes':_0x1ecd8e[_0x3db5('0xcb')]});const _0x232095=this[_0x3db5('0x16')][_0x3db5('0x5c')](_0x301e41[_0x3db5('0xf5')][_0x3db5('0xaf')],'after'),_0xf6e477=this[_0x3db5('0x16')][_0x3db5('0x12')](_0x232095,_0x36c4cb[_0x3db5('0xf5')]);this[_0x3db5('0x8f')](_0x40c76b,_0x2ec3c2,_0x2a19ea,_0xf6e477);}else{if(_0x36c4cb['containsPosition'](_0x301e41[_0x3db5('0xbb')])){const _0x1c037d=this[_0x3db5('0x16')][_0x3db5('0x5c')](_0x301e41['start']['nodeBefore'],_0x3db5('0xf5'));this['_setSuggestionRange'](_0x1ecd8e,this[_0x3db5('0x16')][_0x3db5('0x12')](_0x36c4cb[_0x3db5('0xbb')],_0x1c037d));}else{const _0x3ac720=this[_0x3db5('0x16')][_0x3db5('0x5c')](_0x301e41[_0x3db5('0xf5')][_0x3db5('0xaf')],_0x3db5('0x14'));this[_0x3db5('0xc7')](_0x1ecd8e,this[_0x3db5('0x16')]['createRange'](_0x3ac720,_0x36c4cb[_0x3db5('0xf5')]));}}}}[_0x3db5('0x1a')](_0x4fa558){for(const {suggestion:_0x56a52c,meta:_0x2869a5}of this[_0x3db5('0x56')](_0x4fa558,_0x3db5('0x109'))){if(!_0x2869a5['isOwn'])continue;const _0x45fe75=_0x56a52c['getRanges']();for(const _0x2ceb19 of _0x45fe75)if(!_0x4fa558[_0x3db5('0x113')](_0x2ceb19)[_0x3db5('0xd3')])return!0x0;}return!0x1;}[_0x3db5('0x47')](_0x40c2a7){const _0x2a4d29=this[_0x3db5('0x4b')][_0x3db5('0xfb')][_0x3db5('0x23')](_0x3db5('0x86'))['getUser'](_0x40c2a7);if(!_0x2a4d29)throw new _0x485d84('track-changes-user-not-found',this);return _0x2a4d29;}['_getExternalAuthor'](_0x21d758){const _0xd47af3=this[_0x3db5('0x4b')][_0x3db5('0xfb')]['get'](_0x3db5('0x86')),_0x30b564=_0x4279e5('external:'+_0x21d758),_0x40801c=_0xd47af3[_0x3db5('0x12c')](_0x30b564);return _0x40801c||_0xd47af3[_0x3db5('0x38')]({'id':_0x30b564,'name':_0x21d758});}[_0x3db5('0xb6')](_0x6359a1,_0x264b72,_0x3d3303,_0x374d3d,_0x2eb44e){const _0x901411=this[_0x3db5('0x47')](_0x374d3d),_0x246ed9=this[_0x3db5('0xe5')][_0x3db5('0x58')](_0x6359a1,_0x264b72,_0x3d3303,_0x901411,_0x2eb44e,_0x1aa170=>this[_0x3db5('0xca')](_0x3d3303,{'attributes':_0x1aa170}));return this['listenTo'](_0x246ed9,_0x3db5('0x1c'),()=>{this['_updateSuggestionData'](_0x3d3303,{'state':_0x3db5('0x7c')});},{'priority':_0x3db5('0x6a')}),this[_0x3db5('0xab')](_0x246ed9,_0x3db5('0x27'),()=>{this[_0x3db5('0xca')](_0x3d3303,{'state':_0x3db5('0x62')});},{'priority':'high'}),this[_0x3db5('0x10d')][_0x3db5('0xd9')](_0x3d3303,_0x246ed9),this[_0x3db5('0xa9')][_0x3db5('0xd9')](_0x246ed9,_0x3db5('0x12a')),_0x246ed9;}[_0x3db5('0x11a')](_0x3b9c7f){const _0x48c474=_0x3b9c7f[_0x3db5('0x8e')](':');return{'group':_0x48c474[0x0],'type':_0x48c474[0x1],'subType':_0x48c474[_0x3db5('0xd3')]>=0x5?_0x48c474[0x2]:null,'id':_0x48c474[_0x3db5('0xd3')]<0x5?_0x48c474[0x2]:_0x48c474[0x3],'authorId':_0x48c474[_0x3db5('0xd3')]<0x5?_0x48c474[0x3]:_0x48c474[0x4],'markerCount':0x6==_0x48c474[_0x3db5('0xd3')]?_0x48c474[0x5]:null};}['_breakSuggestionMarker'](_0x1e91e1,_0x1fc412,_0x56f879){const _0x4fa2e1=_0x1e91e1[_0x3db5('0x53')](),_0x2e6684=_0x4fa2e1[_0x3db5('0xbb')],_0x25776a=_0x4fa2e1[_0x3db5('0xf5')];this['_setSuggestionRange'](_0x1e91e1,this[_0x3db5('0x16')][_0x3db5('0x12')](_0x2e6684,_0x1fc412));const _0x526a31=_0xf1fad3(),_0x2901c0=_0x1e91e1[_0x3db5('0x15')]['id'],_0x59bc76=_0x1e91e1[_0x3db5('0x33')]+(_0x1e91e1['subType']?':'+_0x1e91e1[_0x3db5('0xc1')]:'');this[_0x3db5('0x8a')]({'id':_0x526a31,'type':_0x59bc76,'createdAt':new Date(),'authorId':_0x2901c0,'originalSuggestionId':_0x1e91e1['id'],'attributes':_0x1e91e1[_0x3db5('0xcb')],'data':_0x1e91e1[_0x3db5('0x110')]}),'formatBlock'==_0x1e91e1[_0x3db5('0x33')]&&(_0x56f879=this[_0x3db5('0x16')][_0x3db5('0x125')](_0x56f879['parent'])),this[_0x3db5('0x8f')](_0x59bc76,_0x526a31,_0x2901c0,this[_0x3db5('0x16')][_0x3db5('0x12')](_0x56f879,_0x25776a));}['_findSuggestions'](_0x52ee2e,_0x4f4766=null){const _0x2de0f6=[],_0x38e997=this[_0x3db5('0x16')]['schema'],_0x2aa380=this['editor'][_0x3db5('0xfb')][_0x3db5('0x23')](_0x3db5('0x86'))['me'];for(const _0x2c6b66 of this[_0x3db5('0xa7')]())if(_0x2c6b66[_0x3db5('0xc4')]&&(!_0x4f4766||_0x2c6b66[_0x3db5('0x33')]==_0x4f4766))for(const _0x4b063d of _0x2c6b66[_0x3db5('0x65')]()){const _0x25b84a=_0x52ee2e[_0x3db5('0xbb')][_0x3db5('0x101')](_0x4b063d[_0x3db5('0xf5')])||_0x52ee2e[_0x3db5('0xf5')][_0x3db5('0x101')](_0x4b063d[_0x3db5('0xbb')]);if(_0x25b84a||_0x52ee2e[_0x3db5('0x12e')](_0x4b063d)){const _0xb8ef6c=_0x52ee2e[_0x3db5('0x55')](_0x4b063d)&&Bt(_0x38e997,_0x4b063d[_0x3db5('0xbb')],_0x52ee2e),_0x3380cb=_0x4b063d['containsRange'](_0x52ee2e)&&Bt(_0x38e997,_0x52ee2e['start'],_0x4b063d);_0x2de0f6[_0x3db5('0xd4')]({'suggestion':_0x2c6b66,'meta':{'isOwn':_0x2aa380==_0x2c6b66['author'],'isNextTo':_0x25b84a,'isInsideObject':_0xb8ef6c,'containsRangeInObject':_0x3380cb}});break;}}return _0x2de0f6;}[_0x3db5('0x8f')](_0xb69b68,_0x1e97da,_0x425036,_0x5c52a3,_0x325775){this[_0x3db5('0x16')]['change'](_0x4c007b=>{let _0x105623=_0x3db5('0xa3')+_0xb69b68+':'+_0x1e97da+':'+_0x425036;_0x325775&&(_0x105623=_0x105623+':'+_0x325775),_0x4c007b[_0x3db5('0x6b')](_0x105623,{'range':_0x5c52a3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5e27ae){const _0x5026b7=_0x5e27ae['previous'],_0x437cd2=_0x5e27ae['next'];_0x5e27ae[_0x3db5('0x57')]=null,null!=_0x5026b7&&(_0x5026b7[_0x3db5('0xf0')]=null),_0x5e27ae[_0x3db5('0xf0')]=null,null!=_0x437cd2&&(_0x437cd2[_0x3db5('0x57')]=null),_0x3db5('0xc5')==this[_0x3db5('0xa9')][_0x3db5('0x23')](_0x5e27ae)&&(this['_suggestionState']['set'](_0x5e27ae,_0x3db5('0xb8')),this[_0x3db5('0x10c')](_0x3db5('0xfd'),_0x5e27ae,_0x5026b7,_0x437cd2));}[_0x3db5('0x8a')](_0x3a923a){const _0x323472=_0x3a923a['id'],_0x486df5=this['addSuggestionData'](_0x3a923a);if(this['_adapter']&&this[_0x3db5('0x81')][_0x3db5('0x75')]){const _0x2b0fd2=this['editor']['plugins'][_0x3db5('0x23')]('PendingActions'),_0x5956d7=_0x486df5[_0x3db5('0x50')],_0x45a8b4=_0x486df5[_0x3db5('0xc1')]?_0x486df5['type']+':'+_0x486df5[_0x3db5('0xc1')]:_0x486df5[_0x3db5('0x33')],_0x594d71=this[_0x3db5('0x4b')][_0x3db5('0x11e')],_0x3b64ee=_0x2b0fd2[_0x3db5('0xd2')](_0x4f3559(_0x594d71,_0x3db5('0x64'))),_0x49321c={'id':_0x323472,'type':_0x45a8b4,'hasComments':_0x5956d7,'data':_0x3a923a[_0x3db5('0x110')]||null,'originalSuggestionId':_0x3a923a[_0x3db5('0xe0')]||null,'attributes':_0x486df5[_0x3db5('0xcb')]};this[_0x3db5('0x81')]['addSuggestion'](_0x49321c)[_0x3db5('0xe3')](_0xba9295=>{_0x486df5['_saved']=!0x0,_0x2b0fd2[_0x3db5('0x114')](_0x3b64ee),_0xba9295&&_0xba9295[_0x3db5('0x135')]&&(this['_suggestions']['get'](_0x323472)[_0x3db5('0x135')]=_0xba9295[_0x3db5('0x135')]);})[_0x3db5('0x90')](_0x3048c5=>{throw _0x17d652(_0x3db5('0x131')),this[_0x3db5('0x4b')][_0x3db5('0xb5')][_0x3db5('0x4')]({'isUndoable':!0x1},()=>{_0x486df5[_0x3db5('0x27')]();}),_0x486df5['stopListening'](),this['_suggestions']['delete'](_0x486df5['id']),this[_0x3db5('0xa9')][_0x3db5('0x9a')](_0x486df5),_0x3048c5;});}return _0x486df5;}[_0x3db5('0xca')](_0xc1a7ed,_0x8f0e0f){const _0x389a7e=this[_0x3db5('0x4b')][_0x3db5('0xfb')][_0x3db5('0x23')](_0x3db5('0x2e')),_0x356b01=this[_0x3db5('0x99')](_0xc1a7ed);if(this[_0x3db5('0x81')]&&this[_0x3db5('0x81')]['updateSuggestion']){if(_0x356b01[_0x3db5('0xa6')]){const _0x3d79a5=_0x389a7e['add'](_0x4f3559(this['editor'][_0x3db5('0x11e')],_0x3db5('0x64')));this[_0x3db5('0x81')][_0x3db5('0x31')](_0xc1a7ed,_0x8f0e0f)['then'](()=>{_0x389a7e[_0x3db5('0x114')](_0x3d79a5);});}else _0x356b01['on'](_0x3db5('0x83'),()=>{this[_0x3db5('0xca')](_0xc1a7ed,_0x8f0e0f);});}}['_getSuggestionData'](_0x2d316f){if(!this[_0x3db5('0x81')]||!this[_0x3db5('0x81')][_0x3db5('0x99')])throw new _0x485d84('track-changes-adapter-missing-getsuggestion',this);return this[_0x3db5('0x81')]['getSuggestion'](_0x2d316f);}['_handleNewSuggestionMarker'](_0x242516){const {id:_0x331e3c,type:_0x392a18,subType:_0x28a4ed,authorId:_0x133fc7}=this['_splitMarkerName'](_0x242516),_0x181b70=this[_0x3db5('0x10d')][_0x3db5('0x23')](_0x331e3c)||this[_0x3db5('0xb6')](_0x392a18,_0x28a4ed,_0x331e3c,_0x133fc7,{});switch(this[_0x3db5('0x84')](_0x181b70,_0x392a18,_0x28a4ed,_0x133fc7),this['_suggestionState'][_0x3db5('0x23')](_0x181b70)){case _0x3db5('0x12a'):this[_0x3db5('0x54')](_0x331e3c)['then'](_0x511f38=>{let _0x5071fc=Promise[_0x3db5('0xad')]();_0x511f38['hasComments']&&(_0x5071fc=this['_commentsRepository']['fetchCommentThread']({'channelId':this[_0x3db5('0x4b')][_0x3db5('0x48')][_0x3db5('0x23')](_0x3db5('0x13a')),'threadId':_0x331e3c})),_0x5071fc[_0x3db5('0xe3')](()=>{this[_0x3db5('0x127')](_0x511f38)['_saved']=!0x0;});}),this[_0x3db5('0xa9')][_0x3db5('0xd9')](_0x181b70,_0x3db5('0xec'));break;case _0x3db5('0xb8'):this[_0x3db5('0xca')](_0x331e3c,{'state':_0x3db5('0x121')});case _0x3db5('0xe4'):this[_0x3db5('0xa9')][_0x3db5('0xd9')](_0x181b70,_0x3db5('0xc5')),this[_0x3db5('0x10c')](_0x3db5('0x120'),_0x181b70);break;case _0x3db5('0xc5'):this[_0x3db5('0x10c')](_0x3db5('0x3c'),_0x181b70);}return _0x181b70[_0x3db5('0x1f')](_0x242516),_0x181b70;}[_0x3db5('0xd1')](_0x3c164e){const _0x2c59b4=Array[_0x3db5('0x18')](_0x3c164e)[_0x3db5('0x6c')](_0x58278d=>!_0x58278d[_0x3db5('0x61')]),_0x10f12c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x514bb5=>!_0x514bb5[_0x3db5('0x61')]),_0x28e971=_0x10f12c[_0x3db5('0x6c')](_0x11c4a5=>!_0x3c164e[_0x3db5('0xbc')](_0x11c4a5)),_0x39c999=new Map(_0x10f12c[_0x3db5('0xb')](_0x5c5b11=>[_0x5c5b11,this[_0x3db5('0xe5')][_0x3db5('0x72')](_0x5c5b11[_0x3db5('0x33')],_0x5c5b11[_0x3db5('0xc1')],'chain')])),_0x5c2ae0=new Map(_0x10f12c[_0x3db5('0xb')](_0x2e87af=>[_0x2e87af,_0x2e87af[_0x3db5('0x53')]()])),_0x4cc3cd=new Set(),_0x5de9c1=new Set();for(let _0x3c12c0=0x0;_0x3c12c0<_0x2c59b4[_0x3db5('0xd3')];_0x3c12c0++)_0x2d63b9(_0x2c59b4[_0x3c12c0],_0x2c59b4,_0x3c12c0+0x1);for(let _0xf1fdfa=0x0;_0xf1fdfa<_0x2c59b4['length'];_0xf1fdfa++)_0x2d63b9(_0x2c59b4[_0xf1fdfa],_0x28e971,0x0);for(let _0x2424c9=0x0;_0x2424c9<_0x2c59b4[_0x3db5('0xd3')];_0x2424c9++){const _0x8146d6=_0x2c59b4[_0x2424c9];!_0x5de9c1[_0x3db5('0xbc')](_0x8146d6)&&_0x8146d6['previous']&&(_0x8146d6['previous'][_0x3db5('0xf0')]===_0x8146d6&&(_0x8146d6[_0x3db5('0x57')][_0x3db5('0xf0')]=null),_0x8146d6['previous']=null),!_0x4cc3cd[_0x3db5('0xbc')](_0x8146d6)&&_0x8146d6['next']&&(_0x8146d6[_0x3db5('0xf0')]['previous']===_0x8146d6&&(_0x8146d6[_0x3db5('0xf0')][_0x3db5('0x57')]=null),_0x8146d6[_0x3db5('0xf0')]=null);}function _0x2d63b9(_0x2bb6f6,_0x4ed5ec,_0x3b81a3){for(let _0x2082be=_0x3b81a3;_0x2082be<_0x4ed5ec[_0x3db5('0xd3')];_0x2082be++){const _0x2e81cf=_0x34e4f9(_0x2bb6f6,_0x4ed5ec[_0x2082be]);_0x2e81cf&&(_0x2e81cf[0x0]['next']=_0x2e81cf[0x1],_0x2e81cf[0x1][_0x3db5('0x57')]=_0x2e81cf[0x0],_0x4cc3cd['add'](_0x2e81cf[0x0]),_0x5de9c1[_0x3db5('0xd2')](_0x2e81cf[0x1]));}}function _0x34e4f9(_0x5be3e6,_0x377732){if(_0x5be3e6[_0x3db5('0xbe')]['id']!==_0x377732['author']['id'])return null;const _0x2f8080=_0x39c999[_0x3db5('0x23')](_0x5be3e6)(_0x5be3e6,_0x377732,_0x5c2ae0[_0x3db5('0x23')](_0x5be3e6),_0x5c2ae0[_0x3db5('0x23')](_0x377732));if(!_0x2f8080)return null;return _0x39c999[_0x3db5('0x23')](_0x377732)(_0x5be3e6,_0x377732,_0x5c2ae0[_0x3db5('0x23')](_0x5be3e6),_0x5c2ae0['get'](_0x377732))?_0x2f8080[0x1][_0x3db5('0x94')]&&_0x2f8080[0x1][_0x3db5('0x94')][_0x3db5('0xd3')]?null:_0x2f8080:null;}}['_joinWithAdjacentSuggestions'](_0x39dc6e){const _0x50e31b=Array['from'](_0x39dc6e),_0x51f37f=this[_0x3db5('0xa7')]({'skipNotAttached':!0x0}),_0x5caa84=_0x51f37f[_0x3db5('0x6c')](_0x318f28=>!_0x39dc6e[_0x3db5('0xbc')](_0x318f28)),_0x456747=new Map(_0x50e31b[_0x3db5('0xb')](_0x1ad646=>[_0x1ad646,this[_0x3db5('0xe5')][_0x3db5('0x72')](_0x1ad646[_0x3db5('0x33')],_0x1ad646[_0x3db5('0xc1')],_0x3db5('0xef'))])),_0x18650e=new Map(_0x51f37f[_0x3db5('0xb')](_0x544aa9=>[_0x544aa9,_0x544aa9[_0x3db5('0x65')]()]));for(let _0x146aa8=0x0;_0x146aa8<_0x50e31b[_0x3db5('0xd3')];_0x146aa8++){if(_0xc1dd99(this,_0x50e31b[_0x146aa8],_0x50e31b,_0x146aa8+0x1))return!0x0;}for(let _0x542b8c=0x0;_0x542b8c<_0x50e31b['length'];_0x542b8c++){if(_0xc1dd99(this,_0x50e31b[_0x542b8c],_0x5caa84,0x0))return!0x0;}return!0x1;function _0xc1dd99(_0x12adf7,_0x143876,_0x5f56ee,_0xb94481){for(let _0x57c0ea=_0xb94481;_0x57c0ea<_0x5f56ee[_0x3db5('0xd3')];_0x57c0ea++){const _0x24afef=_0x5f56ee[_0x57c0ea];if(_0x24afef['type']!==_0x143876[_0x3db5('0x33')]||_0x24afef[_0x3db5('0xbe')]['id']!==_0x143876[_0x3db5('0xbe')]['id']||_0x24afef[_0x3db5('0xc1')]!==_0x143876[_0x3db5('0xc1')])continue;const _0x46157a=_0x456747[_0x3db5('0x23')](_0x143876),_0x43ac9a=_0x18650e[_0x3db5('0x23')](_0x143876),_0x70bae1=_0x18650e[_0x3db5('0x23')](_0x24afef),_0x11040a=_0x143876[_0x3db5('0x94')]&&_0x143876[_0x3db5('0x94')][_0x3db5('0xd3')],_0x530afc=_0x24afef[_0x3db5('0x94')]&&_0x24afef[_0x3db5('0x94')][_0x3db5('0xd3')];if(!_0x11040a&&_0x46157a(_0x70bae1,_0x43ac9a))return _0x12adf7[_0x3db5('0x10')](_0x24afef,_0x143876),_0x18650e['delete'](_0x143876),!0x0;if(!_0x530afc&&_0x46157a(_0x43ac9a,_0x70bae1))return _0x12adf7[_0x3db5('0x10')](_0x143876,_0x24afef),_0x18650e['delete'](_0x24afef),!0x0;}return!0x1;}}[_0x3db5('0x10')](_0x4b154,_0x47525f){if(_0x4b154[_0x3db5('0x61')])for(const _0x3b983b of _0x47525f['getRanges']())_0x4b154['addRange'](_0x3b983b);else{const _0x1650c4=_0x47525f[_0x3db5('0x53')]()[_0x3db5('0xf5')];this[_0x3db5('0xc7')](_0x4b154,this['_model'][_0x3db5('0x12')](_0x4b154[_0x3db5('0x53')]()[_0x3db5('0xbb')],_0x1650c4));}_0x47525f[_0x3db5('0xff')]();}}class Dt{constructor(_0x201cfe){this[_0x3db5('0x37')]=_0x201cfe,this['_model']=_0x201cfe[_0x3db5('0xb5')],this[_0x3db5('0x106')]=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}[_0x3db5('0x58')](_0x175d2c,_0x19312d,_0x1e1f68,_0x266046,_0x678507,_0xf2fa98){return new _0x31ad3a(this[_0x3db5('0x16')],{'type':_0x175d2c,'subType':_0x19312d,'id':_0x1e1f68,'author':_0x266046,'creator':_0x266046,'attributes':_0x678507,'onAttributesChange':_0xf2fa98,'onAccept':(..._0x29044)=>this[_0x3db5('0x72')](_0x175d2c,_0x19312d,_0x3db5('0x1c'))(..._0x29044),'onDiscard':(..._0x3210ac)=>this['getSuggestionCallback'](_0x175d2c,_0x19312d,_0x3db5('0x27'))(..._0x3210ac)});}['registerCustomCallback'](_0x59648b,_0x2a1c68,_0x10b353,_0x5dcc2c){const _0x16373c=_0x59648b+':'+_0x2a1c68+':'+_0x10b353;this[_0x3db5('0x106')]['set'](_0x16373c,_0x5dcc2c);}[_0x3db5('0x72')](_0x264bee,_0xb5d59,_0x42a77b){const _0x304060=_0x264bee+':'+_0xb5d59+':'+_0x42a77b;return this['_customCallbacks'][_0x3db5('0x23')](_0x304060)||this['_defaultCallbacks'][_0x3db5('0x23')](_0x264bee+':'+_0x42a77b);}[_0x3db5('0xba')](){const _0x55cd23=()=>{},_0x14060f=_0x240c17=>{_0x240c17[_0x3db5('0x2')]((_0x184906,_0x3794e3)=>_0x184906['start']['isBefore'](_0x3794e3['start'])?0x1:-0x1),this[_0x3db5('0x16')][_0x3db5('0xb2')](_0x174069=>{for(const _0x4b7f95 of _0x240c17){let _0x38c1af;_0x38c1af=_0x4b7f95[_0x3db5('0xf5')][_0x3db5('0xb0')]&&_0x4b7f95[_0x3db5('0xf5')][_0x3db5('0xaf')]==_0x4b7f95['start'][_0x3db5('0x3a')]?_0x174069[_0x3db5('0x68')](_0x4b7f95[_0x3db5('0xbb')]['nodeAfter'],'on'):_0x174069['createSelection'](_0x4b7f95),this['_model']['deleteContent'](_0x38c1af,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x49a43f=(_0x53c9e2,_0x1cead8)=>{this[_0x3db5('0x16')]['change'](_0x42e186=>{const {commandName:_0x52e3bd,commandParams:_0x777138=[]}=_0x1cead8,_0x251c5d=_0x53c9e2['map'](_0x2e2df4=>(_t(_0x2e2df4)&&(_0x2e2df4=this['_model']['createRange'](_0x2e2df4[_0x3db5('0xf5')])),_0x2e2df4))['filter'](_0x44f4fe=>'$graveyard'!==_0x44f4fe[_0x3db5('0xb3')][_0x3db5('0x9e')]);if(_0x251c5d[_0x3db5('0xd3')]<0x1)return;const _0x308076=Array['from'](this['_model']['document']['selection'][_0x3db5('0x65')]())['map'](_0x29a076=>_0x145035[_0x3db5('0xf8')](_0x29a076));_0x42e186[_0x3db5('0x51')](_0x251c5d);for(const _0x12681e of this[_0x3db5('0x37')][_0x3db5('0x69')]['commands']())_0x12681e[_0x3db5('0x111')]();_0x777138[_0x3db5('0xd4')]({'forceDefaultExecution':!0x0}),this[_0x3db5('0x37')][_0x3db5('0x134')](_0x52e3bd,..._0x777138);const _0x429b6c=_0x308076[_0x3db5('0x6c')](_0x24d63d=>'$graveyard'!=_0x24d63d[_0x3db5('0xb3')][_0x3db5('0x9e')]);_0x429b6c[_0x3db5('0xd3')]>0x0&&_0x42e186[_0x3db5('0x51')](_0x429b6c);for(const _0x219c8d of _0x308076)_0x219c8d[_0x3db5('0x19')]();});},_0x419d79=(_0x2f5b45,_0x3542c8)=>0x1==_0x2f5b45[_0x3db5('0xd3')]&&0x1==_0x3542c8[_0x3db5('0xd3')]&&_0x2f5b45[0x0][_0x3db5('0xf5')]['isEqual'](_0x3542c8[0x0][_0x3db5('0xbb')]),_0x4a0fc8=(_0x40f5eb,_0x570c63,_0x4c89a9,_0x32ed47)=>xt(_0x40f5eb,_0x570c63,_0x4c89a9,_0x32ed47,this['_model'])?[_0x40f5eb,_0x570c63]:xt(_0x570c63,_0x40f5eb,_0x32ed47,_0x4c89a9,this[_0x3db5('0x16')])?[_0x570c63,_0x40f5eb]:null;this['_defaultCallbacks'][_0x3db5('0xd9')]('insertion:accept',_0x55cd23),this['_defaultCallbacks']['set']('insertion:discard',_0x14060f),this[_0x3db5('0x102')][_0x3db5('0xd9')](_0x3db5('0x76'),_0x419d79),this[_0x3db5('0x102')][_0x3db5('0xd9')](_0x3db5('0xa'),_0x4a0fc8),this[_0x3db5('0x102')][_0x3db5('0xd9')](_0x3db5('0x0'),_0x14060f),this[_0x3db5('0x102')]['set'](_0x3db5('0xd'),_0x55cd23),this[_0x3db5('0x102')]['set']('deletion:join',_0x419d79),this[_0x3db5('0x102')]['set']('deletion:chain',_0x4a0fc8),this[_0x3db5('0x102')]['set']('formatInline:accept',_0x49a43f),this[_0x3db5('0x102')]['set'](_0x3db5('0x67'),_0x55cd23),this[_0x3db5('0x102')]['set'](_0x3db5('0x11'),_0x419d79),this[_0x3db5('0x102')][_0x3db5('0xd9')](_0x3db5('0xc6'),_0x55cd23),this['_defaultCallbacks'][_0x3db5('0xd9')](_0x3db5('0x45'),_0x49a43f),this['_defaultCallbacks'][_0x3db5('0xd9')](_0x3db5('0xd8'),_0x55cd23),this[_0x3db5('0x102')][_0x3db5('0xd9')](_0x3db5('0x96'),_0x419d79),this[_0x3db5('0x102')][_0x3db5('0xd9')]('formatBlock:chain',_0x55cd23);}}function Bt(_0x501dc9,_0x50969b,_0x64f968){for(const _0x471653 of _0x50969b['parent'][_0x3db5('0x116')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x471653[_0x3db5('0xb3')]==_0x471653)return!0x1;if(!_0x64f968[_0x3db5('0x88')](_0x471653))return!0x1;if(_0x501dc9[_0x3db5('0x124')](_0x471653)||_0x501dc9['isLimit'](_0x471653))return!0x0;}return!0x1;}function _t(_0x2920e1){return _0x2920e1[_0x3db5('0xf5')][_0x3db5('0xaf')]==_0x2920e1[_0x3db5('0xbb')][_0x3db5('0x3a')]&&_0x2920e1['end'][_0x3db5('0x5f')];}function Mt(_0x30aad2,_0x5a9a6d,_0x28e85f,_0x216eb9){const _0x3f994b=_0xfac5d2=>!_0xfac5d2[_0x3db5('0x25')]['is'](_0x3db5('0x139'))&&!_0x216eb9[_0x3db5('0x124')](_0xfac5d2[_0x3db5('0x25')]),_0x236018=_0x30aad2[_0x3db5('0xbb')]['getLastMatchingPosition'](_0x3f994b),_0xd62d1c=_0x30aad2[_0x3db5('0xf5')]['getLastMatchingPosition'](_0x3f994b,{'direction':_0x3db5('0x49')});return(!_0x30aad2[_0x3db5('0xbb')][_0x3db5('0x101')](_0x236018)||!_0x30aad2['end']['isEqual'](_0xd62d1c))&&(_0x236018[_0x3db5('0xa4')](_0xd62d1c)?_0x28e85f[_0x3db5('0x9b')](_0x5a9a6d,{'range':_0x28e85f[_0x3db5('0x12')](_0x236018,_0xd62d1c)}):_0x28e85f[_0x3db5('0xe')](_0x5a9a6d),!0x0);}function $t(_0x545941){return _0x4279e5(_0x545941);}function Nt(_0x170af1){const _0x1d176d=_0x170af1[_0x3db5('0xbb')]['nodeAfter'];return _0x1d176d&&_0x1d176d['is'](_0x3db5('0xb1'));}function Rt(_0x40329f,_0x1a9a2d){const _0x3b29ab=_0x1a9a2d[_0x3db5('0x2d')][_0x3db5('0x124')](_0x40329f)||_0x1a9a2d[_0x3db5('0x2d')][_0x3db5('0x123')](_0x40329f);return _0x1a9a2d['createRange'](_0x1a9a2d['createPositionAt'](_0x40329f,'before'),_0x3b29ab?_0x1a9a2d[_0x3db5('0xea')](_0x40329f):_0x1a9a2d['createPositionAt'](_0x40329f,_0x3db5('0xf5')));}function xt(_0x58094f,_0x36f484,_0x551ce2,_0x3b0b36,_0xbcb762){if(_0x551ce2[_0x3db5('0xf5')][_0x3db5('0x101')](_0x3b0b36[_0x3db5('0xbb')]))return!0x0;if(_0x58094f['type']!=_0x36f484[_0x3db5('0x33')])return!0x1;if(!_0x551ce2['end'][_0x3db5('0x29')](_0x3b0b36[_0x3db5('0xbb')]))return!0x1;const _0x2911fc=_0xbcb762[_0x3db5('0x12')](_0x551ce2[_0x3db5('0xf5')],_0x3b0b36[_0x3db5('0xbb')])[_0x3db5('0x136')]();for(const _0x1f433b of _0x2911fc)if([_0x3db5('0x4a'),_0x3db5('0x138')][_0x3db5('0xce')](_0x1f433b[_0x3db5('0x33')])&&_0xbcb762[_0x3db5('0x2d')][_0x3db5('0x133')](_0x1f433b[_0x3db5('0x25')]))return!0x1;return!0x0;}