@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230805.0 → 0.0.0-nightly-20230807.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-20230805.0",
3
+ "version": "0.0.0-nightly-20230807.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-20230805.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230805.0",
42
+ "ckeditor5": "0.0.0-nightly-20230807.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230807.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x11e6=['TrackChangesEditing','getMarkers','getSuggestion','getShiftedBy','isOwn','trackChangesCommand','isRemovable','createdAt','substr','change:data','suggestionLoaded','CommentsRepository','removeClass','addCommentThread','isInContent','item','has','isMultiRange','_cutOutSuggestionMarker','multipleBlocks','authoredAt','formatBlock:','for','config','commentThread','init','_trackFormatChanges','end','markerNameToElements','insertion:chain','creator','markDeletion','before','attributes','addMarker','skipNestingCheck','set','position','discard','name','next','never','Users','_updateSuggestionData','enableReadOnlyMode','normal','accept','elementStart','discardSuggestion','refresh','isExternal','elementEnd','nodeAfter','previous','removeComment','delete','markMultiRangeDeletion','bindElementToMarker','define','removeAttribute','reconvertMarker','document','addRange','change:_saved','data-suggestion','ck-suggestion-marker-formatBlock','$graveyard','fetchCommentThread','updateSuggestion','getChanges','update:suggestion','splice','formatGroupId','commandName','createSelection','selection','removeMarkers','formatInline','rootName','editing','acceptSelectedSuggestions','rejected','discardSelectedSuggestions','deletion:discard','getChangedMarkers','setSelection','isCollapsed','_getAuthorFromId','isAtEnd','_suggestionFactory','containsRangeInObject','writer','change','_defaultCallbacks','ready','markerReady','notReady','targetPosition','ck-suggestion-marker-','map','stop','newRange','formatBlock:accept','listenTo','join','always','from','discardAllSuggestions','catch','rethrowUnexpectedError','widget','addUser','moveTargetPosition','createRange','getAttribute','type','data','chain','every','getAncestors','subType','containsItem','then','multi','documentSelection','return','dataToMarker','howMany','addMarker:suggestion','getMultiRangeId','group','_rangeIsInLocalUserInsertion','suggestion','activeMarkers','get','_onDiscard','getUser','_enabledCommands','locale','addComment','containsPosition','track-changes-suggestion-data-mismatch','element','track-changes-user-not-found','track-changes-adapter-already-set','deletion:join','schema','root','getSuggestionCallback','getLastMatchingPosition','_joinWithAdjacentSuggestions','resolve','_saved','suggestionUnloaded','getNearestSelectionRange','getRange','external:','sort','_editor','insertContent','_mergeNestedSuggestions','formatBlock:join','_registerDefaultCallbacks','markInlineFormat','_addSuggestionMarker','length','value','model','markMultiRangeBlockFormat','forceDefaultExecution','@external','after','registerPostFixer','accepted','$marker','_descriptionFactory','$textProxy','fromCharCode','marker-count','deletion:','markBlockFormat','getDifference','createPositionAt','addSuggestion','acceptAllSuggestions','low','getFirstMarker','_createSuggestion','open','start','upcast','_refreshSuggestionsChain','_suggestions','range','createElement','isAtStart','push','getWalker','buildSuggestion','markers','split','add','_getExternalAuthor','insertion:','plugins','differ','_joinSuggestions','head','mapper','isSelectable','_addThreadToSuggestion','registerCustomCallback','formatInline:','isNextTo','editor','formatBlock','_suggestionState','removed','trackChanges.trackFormatChanges','execute','addMarker:suggestion:formatBlock','isDocumentOperation','createPositionAfter','batch','addClass','acceptSuggestion','_customCallbacks','containerElement','forward','consumable','isLocal','splitPosition','addSuggestionData','pluginName','showSuggestionHighlights','hasCommentThread','isIntersectingWithRange','setAttribute','_setSuggestionData','conversion','options','getCustomProperty','filter','toViewElement','ck-suggestion-marker','insertion','markInsertion','removeMarker','remove','_isForcedDefaultExecutionBlock','containsRange','addMarkerName','addHighlight','markerName','enableCommand','markMultiRangeInsertion','ck-suggestion-marker--active','clone','_commentsRepository','_findSuggestions','backward','adapter','formatBlock:chain','_breakSuggestionMarker','track-changes-adapter-missing-getsuggestion','editingDowncast','isBlock','isLimit','getIntersection','isBefore','deletion','detach','parent','_getSuggestionData','getFirstRange','size','markerToData','getSuggestions','change:activeMarkers','getAllAdjacentSuggestions','isObject','high','trackChanges.mergeNestedSuggestions','_checkSuggestionCorrectness','stopListening','suggestionChanged','dataReady','oldRange','unbind','consume','fire','getCommentThread','insertion:accept','_adapter','_handleNewSuggestionMarker','removeMarker:suggestion:formatBlock','isInsideObject','some','getRanges','commands','formatInline:accept','author','_splitMarkerName','dataDowncast','_setSuggestionRange','isEqual','_model','insert','nodeBefore','createRangeIn'];(function(_0xd1d40d,_0x11e696){const _0x2a32fe=function(_0x5e1bd1){while(--_0x5e1bd1){_0xd1d40d['push'](_0xd1d40d['shift']());}};_0x2a32fe(++_0x11e696);}(_0x11e6,0x9b));const _0x2a32=function(_0xd1d40d,_0x11e696){_0xd1d40d=_0xd1d40d-0x0;let _0x2a32fe=_0x11e6[_0xd1d40d];return _0x2a32fe;};import{Plugin as _0x2ef49d,PendingActions as _0x2f6c36}from'ckeditor5/src/core';import{LiveRange as _0x5ba02d}from'ckeditor5/src/engine';import{CKEditorError as _0x5368fe,uid as _0x161255,priorities as _0x4483ff,logWarning as _0x2e9bb2}from'ckeditor5/src/utils';import{toWidget as _0x91f06a}from'ckeditor5/src/widget';import{Users as _0x50d90d,hashObject as _0x234eab}from'ckeditor5-collaboration/src/collaboration-core';import _0x5eea0f from'./commands/trackchangescommand';import _0x4e710f from'./commands/acceptsuggestioncommand';import _0x28388e from'./commands/discardsuggestioncommand';import _0x35991b from'./commands/executeonallsuggestionscommand';import _0x2a07c7 from'./commands/executeonselectedsuggestionscommand';import _0x115070 from'./suggestion';import _0x43b93b from'./suggestiondescriptionfactory';import _0x806bae from'./integrations/alignment';import _0xc96650 from'./integrations/basicstyles';import _0x237f4b from'./integrations/blockquote';import _0x33a0e4 from'./integrations/ckbox';import _0x21ea7d from'./integrations/codeblock';import _0x2dbc77 from'./integrations/comments';import _0x141a1a from'./integrations/deletecommand';import _0x4f910 from'./integrations/documentlist';import _0x242a2a from'./integrations/entercommand';import _0x5a8182 from'./integrations/findandreplace';import _0x52e86c from'./integrations/font';import _0x4d4304 from'./integrations/formatpainter';import _0x540bdc from'./integrations/heading';import _0x48b367 from'./integrations/highlight';import _0x36153b from'./integrations/horizontalline';import _0x2d467 from'./integrations/htmlembed';import _0x48299a from'./integrations/image';import _0x1d42e5 from'./integrations/imagereplace';import _0x32fe0f from'./integrations/importword';import _0x1fbf98 from'./integrations/indent';import _0x2e3a0a from'./integrations/inputcommand';import _0xfa3320 from'./integrations/link';import _0x591860 from'./integrations/list';import _0x325bd1 from'./integrations/listproperties';import _0x34d591 from'./integrations/mediaembed';import _0x32894a from'./integrations/mention';import _0x4f6b7e from'./integrations/pagebreak';import _0x4760a1 from'./integrations/paragraph';import _0x5836e2 from'./integrations/removeformat';import _0x2e4678 from'./integrations/restrictededitingmode';import _0x564d51 from'./integrations/shiftentercommand';import _0x877b56 from'./integrations/standardeditingmode';import _0x139638 from'./integrations/style';import _0x5294b6 from'./integrations/table';import _0x3d3b7b from'./integrations/tablemergesplit';import _0x60549f from'./integrations/tableheadings';import _0x2eb6cf from'./integrations/tableclipboard';import _0x4334c5 from'./integrations/tablecolumnresize';import _0x225a28 from'./integrations/template';import _0x2fcbc1 from'./integrations/tableofcontents';import _0x7f4b4a from'./integrations/title';import _0x1ba3f9 from'./integrations/undo';import{getTranslation as _0x4842e8}from'./utils/common-translations';import _0x55a972 from'./integrations/tablecaption';import _0x176d5a from'./integrations/documentlistproperties';import _0x1bf69e from'./integrations/tableproperties';export default class p extends _0x2ef49d{static get['requires'](){return[_0x2a32('0xa6'),_0x50d90d,_0x2f6c36,_0x806bae,_0xc96650,_0x237f4b,_0x33a0e4,_0x21ea7d,_0x2dbc77,_0x141a1a,_0x4f910,_0x176d5a,_0x242a2a,_0x5a8182,_0x52e86c,_0x4d4304,_0x540bdc,_0x48b367,_0x36153b,_0x2d467,_0x48299a,_0x1d42e5,_0x32fe0f,_0x1fbf98,_0x2e3a0a,_0xfa3320,_0x591860,_0x325bd1,_0x34d591,_0x32894a,_0x4f6b7e,_0x4760a1,_0x5836e2,_0x2e4678,_0x564d51,_0x877b56,_0x139638,_0x5294b6,_0x3d3b7b,_0x60549f,_0x55a972,_0x2eb6cf,_0x4334c5,_0x2fcbc1,_0x1bf69e,_0x225a28,_0x7f4b4a,_0x1ba3f9];}static get[_0x2a32('0x4e')](){return _0x2a32('0x9b');}constructor(_0x165e60){function _0x4e61b8(_0x3d26f6){return _0x3d26f6['map'](_0x3b5146=>String[_0x2a32('0x16')](_0x3b5146))[_0x2a32('0x103')]('');}super(_0x165e60),this['set'](_0x2a32('0x120'),[]),this['on'](_0x2a32('0x7b'),(_0x5ba6b6,_0x2dfa93,_0x55c5e4,_0x71c3d6)=>{this['_model']['change'](()=>{for(const _0xcb5ce1 of[..._0x71c3d6,..._0x55c5e4])this[_0x2a32('0x97')][_0x2a32('0x2c')][_0x2a32('0xab')](_0xcb5ce1)&&_0x165e60[_0x2a32('0xea')][_0x2a32('0xd7')](_0xcb5ce1);});}),this[_0x2a32('0x14')]=new _0x43b93b(this[_0x2a32('0x3b')][_0x2a32('0xc')][_0x2a32('0x12d')],this[_0x2a32('0x3b')][_0x2a32('0x125')]),this['_adapter']=null,this[_0x2a32('0xf4')]=new Dt(this['editor']),this[_0x2a32('0x25')]=new Map(),this['_commentsRepository']=_0x165e60[_0x2a32('0x31')]['get'](_0x2a32('0xa6')),this[_0x2a32('0x124')]=new Set(),this[_0x2a32('0x97')]=this[_0x2a32('0x3b')][_0x2a32('0xc')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x165e60['config'][_0x2a32('0xd5')](_0x2a32('0x3f'),'default'),this[_0x2a32('0xb5')]=_0x165e60[_0x2a32('0xb2')][_0x2a32('0x121')]('trackChanges.trackFormatChanges'),_0x165e60['config'][_0x2a32('0xd5')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x2a32('0x5')]=_0x165e60[_0x2a32('0xb2')][_0x2a32('0x121')](_0x2a32('0x7f')),this[_0x2a32('0xa0')]=new _0x5eea0f(_0x165e60,this[_0x2a32('0x124')]),this[_0x4e61b8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4e61b8([0x34,0x30,0x34,0x36,0x31,0x36,0x31,0x30]);}[_0x2a32('0xb4')](){const _0x4a9193=this[_0x2a32('0x3b')];_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')]('editingDowncast')['markerToHighlight']({'model':_0x2a32('0x11f'),'view':_0x3b7f3f=>{const {id:_0x293991,type:_0x25d53a}=this[_0x2a32('0x93')](_0x3b7f3f[_0x2a32('0x62')]),_0x832bae=[_0x2a32('0x59'),_0x2a32('0xfd')+_0x25d53a];let _0x2bc505=0xbb8;return this[_0x2a32('0x120')]['includes'](_0x3b7f3f[_0x2a32('0x62')])&&(_0x832bae['push'](_0x2a32('0x65')),_0x2bc505=0xbc2),_0x2a32('0x73')==_0x25d53a&&(_0x2bc505+=0x5),{'classes':_0x832bae,'attributes':{'data-suggestion':_0x293991},'priority':_0x2bc505};}}),_0x4a9193[_0x2a32('0x54')]['for'](_0x2a32('0x94'))[_0x2a32('0x2e')](_0x2d4ed3=>{_0x2d4ed3['on'](_0x2a32('0x11b'),(_0x28087a,_0x243b4f,_0x3f2bb2)=>{if(!_0x3f2bb2[_0x2a32('0x55')][_0x2a32('0x4f')])return;const _0x25931a=_0x243b4f['item'];if(!_0x25931a)return;const _0xb03639=_0x3f2bb2[_0x2a32('0x35')]['toViewElement'](_0x25931a);_0x4a9193[_0x2a32('0xc')]['schema'][_0x2a32('0x7d')](_0x25931a)&&_0xb03639&&!_0xb03639[_0x2a32('0x56')](_0x2a32('0x109'))&&_0xb03639['is'](_0x2a32('0x48'))&&_0x91f06a(_0xb03639,_0x3f2bb2[_0x2a32('0xf6')]);},{'priority':'high'});}),_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')](_0x2a32('0x94'))['markerToHighlight']({'model':_0x2a32('0x11f'),'view':(_0x15ec6e,_0x3232d1)=>{if(!_0x3232d1[_0x2a32('0x55')][_0x2a32('0x4f')])return null;const {type:_0x1204e0}=this[_0x2a32('0x93')](_0x15ec6e[_0x2a32('0x62')]);return{'classes':['ck-suggestion-marker',_0x2a32('0xfd')+_0x1204e0],'priority':0xbb8};}});const _0x34b309=({showActiveMarkers:_0x1dd955=!0x0}={})=>(_0x5d1221,_0x37c783,_0x2b1bbb)=>{if(!_0x37c783[_0x2a32('0xaa')])return;if(_0x37c783[_0x2a32('0xaa')]['is'](_0x2a32('0xe6')))return void _0x2b1bbb[_0x2a32('0x4a')][_0x2a32('0x86')](_0x37c783[_0x2a32('0xaa')],_0x5d1221[_0x2a32('0xc2')]);const _0x5d4b94=_0x2b1bbb[_0x2a32('0x35')][_0x2a32('0x58')](_0x37c783['item']);if(!(_0x37c783[_0x2a32('0xaa')]['is'](_0x2a32('0x129'))&&_0x4a9193[_0x2a32('0xc')]['schema'][_0x2a32('0x6f')](_0x37c783['item'])&&!_0x5d4b94['getCustomProperty'](_0x2a32('0x61'))))return;const {id:_0x30e0bc}=this[_0x2a32('0x93')](_0x37c783[_0x2a32('0x62')]);_0x2b1bbb[_0x2a32('0xf6')][_0x2a32('0x45')]([_0x2a32('0x59'),'ck-suggestion-marker-formatBlock'],_0x5d4b94),_0x2b1bbb[_0x2a32('0xf6')][_0x2a32('0x52')](_0x2a32('0xdb'),_0x30e0bc,_0x5d4b94),_0x2b1bbb[_0x2a32('0x35')][_0x2a32('0xd4')](_0x5d4b94,_0x37c783[_0x2a32('0x62')]),_0x1dd955&&(this[_0x2a32('0x120')]['includes'](_0x37c783[_0x2a32('0x62')])?_0x2b1bbb[_0x2a32('0xf6')][_0x2a32('0x45')](_0x2a32('0x65'),_0x5d4b94):_0x2b1bbb[_0x2a32('0xf6')][_0x2a32('0xa7')](_0x2a32('0x65'),_0x5d4b94));for(const _0xa2297f of _0x4a9193['model'][_0x2a32('0x9a')](_0x37c783[_0x2a32('0xaa')])['getItems']())_0x2b1bbb[_0x2a32('0x4a')][_0x2a32('0x86')](_0xa2297f,_0x5d1221[_0x2a32('0xc2')]);_0x2b1bbb[_0x2a32('0x4a')]['consume'](_0x37c783[_0x2a32('0xaa')],_0x5d1221['name']);};_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')](_0x2a32('0x94'))[_0x2a32('0x2e')](_0x46c4f4=>{_0x46c4f4['on'](_0x2a32('0x41'),(_0x41fc8c,_0x39d3e0,_0x24c143)=>{_0x24c143[_0x2a32('0x55')][_0x2a32('0x4f')]&&_0x34b309({'showActiveMarkers':!0x1})(_0x41fc8c,_0x39d3e0,_0x24c143);},{'priority':'highest'});}),_0x4a9193['conversion'][_0x2a32('0xb1')](_0x2a32('0x94'))[_0x2a32('0x79')]({'model':_0x2a32('0x11f'),'view':(_0x5d84b0,_0x3f8eff)=>_0x3f8eff[_0x2a32('0x55')][_0x2a32('0x4f')]?null:{'group':_0x2a32('0x11f'),'name':_0x5d84b0[_0x2a32('0xa3')](0xb)}}),_0x4a9193['conversion'][_0x2a32('0xb1')](_0x2a32('0x23'))['elementToElement']({'view':{'name':_0x2a32('0x11f'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x283339,{writer:_0x4391c5})=>{let _0x5b9421='suggestion:'+_0x283339['getAttribute']('suggestion-type')+':'+_0x283339['getAttribute']('id');return _0x283339[_0x2a32('0x10d')](_0x2a32('0x17'))&&(_0x5b9421+=':'+_0x283339['getAttribute'](_0x2a32('0x17'))),_0x4391c5[_0x2a32('0x27')](_0x2a32('0x13'),{'data-name':_0x5b9421});}}),_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')](_0x2a32('0x23'))[_0x2a32('0x119')]({'view':_0x2a32('0x11f')}),_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')](_0x2a32('0x6e'))[_0x2a32('0x2e')](_0x2e22d9=>{_0x2e22d9['on'](_0x2a32('0x41'),_0x34b309(),{'priority':_0x2a32('0x7e')});}),_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')](_0x2a32('0x6e'))[_0x2a32('0x2e')](_0x1c5b08=>{_0x1c5b08['on'](_0x2a32('0x8c'),(_0x50897e,_0x26daaa,_0x5ded6e)=>{const _0x1a23cb=_0x5ded6e[_0x2a32('0x35')][_0x2a32('0xb7')](_0x26daaa['markerName']);if(_0x1a23cb)for(const _0x6f07e6 of _0x1a23cb)_0x6f07e6[_0x2a32('0x56')](_0x2a32('0x61'))||(_0x5ded6e[_0x2a32('0xf6')][_0x2a32('0xa7')]([_0x2a32('0x59'),_0x2a32('0xdc'),_0x2a32('0x65')],_0x6f07e6),_0x5ded6e[_0x2a32('0xf6')][_0x2a32('0xd6')](_0x2a32('0xdb'),_0x6f07e6),_0x5ded6e[_0x2a32('0x35')]['unbindElementFromMarkerName'](_0x6f07e6,_0x26daaa['markerName']));},{'priority':_0x2a32('0x7e')});}),_0x4a9193[_0x2a32('0xc')][_0x2a32('0xd8')][_0x2a32('0x11')](_0x3c00d6=>{let _0x4971d8=!0x1;const _0x11d328=Array[_0x2a32('0x105')](_0x4a9193[_0x2a32('0xc')][_0x2a32('0xd8')][_0x2a32('0x32')][_0x2a32('0xef')]()),_0x2e3e25=new Set();for(const {name:_0x56e577,data:_0x256c16}of _0x11d328){const {group:_0xd97080,type:_0x3a58f2,id:_0x4f522c}=this[_0x2a32('0x93')](_0x56e577);if('suggestion'!==_0xd97080)continue;const _0x44970c=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x4f522c);if(null!=_0x256c16[_0x2a32('0x100')]){_0x2a32('0xe8')==_0x3a58f2&&(_0x4971d8=_0x4971d8||Mt(_0x256c16[_0x2a32('0x100')],_0x56e577,_0x3c00d6,_0x4a9193[_0x2a32('0xc')][_0x2a32('0x12d')]));if(_0x256c16['newRange'][_0x2a32('0xf1')]||_0x2a32('0xdd')==_0x256c16[_0x2a32('0x100')][_0x2a32('0x12e')][_0x2a32('0xe9')]||'formatBlock'==_0x3a58f2&&!Nt(_0x256c16[_0x2a32('0x100')])||'deletion'==_0x3a58f2&&!(!_t(_0x593c17=_0x256c16[_0x2a32('0x100')])&&!function(_0x2bc7c7){return _0x2bc7c7[_0x2a32('0x22')][_0x2a32('0x75')]==_0x2bc7c7['end'][_0x2a32('0x99')]&&_0x2bc7c7[_0x2a32('0x22')][_0x2a32('0xf3')];}(_0x593c17)))_0x3c00d6['removeMarker'](_0x56e577),_0x4971d8=!0x0;else{if(!_0x44970c||!_0x44970c[_0x2a32('0xa9')])continue;_0x2e3e25[_0x2a32('0x2e')](_0x44970c);}}}var _0x593c17;return _0x2e3e25[_0x2a32('0x78')]>0x0&&(_0x4971d8=!!this[_0x2a32('0x131')](_0x2e3e25)||_0x4971d8),_0x4971d8;}),_0x4a9193[_0x2a32('0xc')]['document'][_0x2a32('0x11')](_0x10d105=>{let _0x16964e=!0x1;for(const _0x5848f8 of _0x4a9193[_0x2a32('0xc')][_0x2a32('0xd8')][_0x2a32('0x32')][_0x2a32('0xe0')]()){if(_0x2a32('0x98')!=_0x5848f8[_0x2a32('0x10e')])continue;const _0x456cb9=_0x5848f8['position'][_0x2a32('0x9e')](_0x5848f8[_0x2a32('0xa')]);if(_0x456cb9[_0x2a32('0xf3')])for(const _0x2b3648 of this[_0x2a32('0x25')]['values']()){if(_0x2b3648['isMultiRange']||!_0x2b3648[_0x2a32('0xa9')])continue;if(_0x2a32('0x3c')!=_0x2b3648['type'])continue;const _0x1a9d85=_0x2b3648[_0x2a32('0x77')]();if(_0x1a9d85[_0x2a32('0x22')][_0x2a32('0x75')]!=_0x1a9d85[_0x2a32('0xb6')][_0x2a32('0x75')]&&_0x1a9d85[_0x2a32('0xb6')][_0x2a32('0x96')](_0x5848f8[_0x2a32('0xc0')])){const _0xb1e37b=_0x4a9193['model'][_0x2a32('0x10c')](_0x1a9d85['start'],_0x456cb9);_0x10d105['updateMarker'](_0x2b3648[_0x2a32('0x1f')](),{'range':_0xb1e37b}),_0x16964e=!0x0;}}}return _0x16964e;}),_0x4a9193[_0x2a32('0xc')][_0x2a32('0x2c')]['on'](_0x2a32('0xe1'),(_0x338530,_0x562218,_0x3d02e5)=>{if(null==_0x3d02e5){const {id:_0x26208e}=this[_0x2a32('0x93')](_0x562218[_0x2a32('0xc2')]),_0x2ebea8=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x26208e);_0x2ebea8&&_0x2ebea8[_0x2a32('0x60')](_0x562218[_0x2a32('0xc2')]);}}),_0x4a9193['model'][_0x2a32('0xd8')]['on'](_0x2a32('0xa4'),()=>{const _0x2551f9=Array['from'](_0x4a9193['model']['document'][_0x2a32('0x32')][_0x2a32('0xef')]())[_0x2a32('0x57')](_0x2be200=>'suggestion'===this[_0x2a32('0x93')](_0x2be200[_0x2a32('0xc2')])[_0x2a32('0x11d')]);if(0x0===_0x2551f9[_0x2a32('0xa')])return;_0x2551f9[_0x2a32('0x2')]((_0x3f7047,_0x583f59)=>{const _0x1b4bfd=_0x3f7047['data'][_0x2a32('0x84')],_0x42ecd5=_0x583f59['data'][_0x2a32('0x84')];return null===_0x1b4bfd&&null===_0x42ecd5?0x0:null===_0x1b4bfd&&null!==_0x42ecd5?-0x1:null!==_0x1b4bfd&&null===_0x42ecd5?0x1:_0x1b4bfd[_0x2a32('0x22')][_0x2a32('0x72')](_0x42ecd5[_0x2a32('0x22')])?-0x1:0x1;});const _0x1a3730=new Set(),_0x1e301c=new Set();for(const {name:_0x3057e8,data:_0x338f05}of _0x2551f9){const {id:_0x15b854}=this[_0x2a32('0x93')](_0x3057e8);if(null===_0x338f05[_0x2a32('0x84')]){const _0x563846=this[_0x2a32('0x8b')](_0x3057e8);_0x1e301c[_0x2a32('0x2e')](_0x563846);}else{const _0x40ec29=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x15b854);null!==_0x338f05[_0x2a32('0x100')]||_0x40ec29[_0x2a32('0xa9')]?(_0x1a3730[_0x2a32('0x2e')](_0x40ec29[_0x2a32('0x34')]),_0x1e301c[_0x2a32('0x2e')](_0x40ec29)):this['_removeSuggestion'](_0x40ec29);}}_0x1e301c[_0x2a32('0x78')]>0x0&&this[_0x2a32('0x24')](_0x1e301c);for(const _0x398c70 of _0x1a3730)this[_0x2a32('0x87')](_0x2a32('0x82'),_0x398c70);}),_0x4a9193[_0x2a32('0xc')]['on']('applyOperation',(_0xd8e3b5,_0x189c20)=>{const _0x2b47f0=_0x189c20[0x0];if(!this[_0x2a32('0x25')][_0x2a32('0x78')])return;if(!_0x2b47f0[_0x2a32('0x42')])return;if(_0x2b47f0[_0x2a32('0x44')]['isUndo']||!_0x2b47f0[_0x2a32('0x44')][_0x2a32('0x4b')])return;let _0xe066ac,_0x180d25;switch(_0x2b47f0[_0x2a32('0x10e')]){case'insert':_0xe066ac=_0x4a9193['model'][_0x2a32('0x1b')](_0x2b47f0[_0x2a32('0xc0')]),_0x180d25=_0xe066ac[_0x2a32('0x9e')](_0x2b47f0[_0x2a32('0x11a')]);break;case _0x2a32('0x2d'):_0xe066ac=_0x4a9193[_0x2a32('0xc')][_0x2a32('0x1b')](_0x2b47f0[_0x2a32('0x4c')]),_0x180d25=_0x4a9193[_0x2a32('0xc')][_0x2a32('0x1b')](_0x2b47f0[_0x2a32('0x10b')]);break;case'move':_0xe066ac=_0x4a9193[_0x2a32('0xc')][_0x2a32('0x1b')](_0x2b47f0[_0x2a32('0xfc')]),_0x180d25=_0xe066ac[_0x2a32('0x9e')](_0x2b47f0[_0x2a32('0x11a')]);break;default:return;}const _0x5a6fab=_0x4a9193[_0x2a32('0xc')]['createRange'](_0xe066ac,_0x180d25);_0x4a9193[_0x2a32('0xc')][_0x2a32('0xf7')](()=>{for(const {suggestion:_0x540410,meta:_0x3e907b}of this[_0x2a32('0x68')](_0x5a6fab)){if(_0x540410[_0x2a32('0xac')])continue;if('formatInline'==_0x540410['type'])continue;const _0x3d1313=_0x540410[_0x2a32('0x10f')]&&_0x540410[_0x2a32('0x10f')][_0x2a32('0xae')];(_0x2a32('0x3c')!=_0x540410[_0x2a32('0x10e')]||'split'==_0x2b47f0[_0x2a32('0x10e')]&&!_0x3d1313)&&(_0x3e907b['containsRangeInObject']||'insertion'==_0x540410[_0x2a32('0x10e')]&&_0x3e907b[_0x2a32('0x9f')]||_0x540410[_0x2a32('0x77')]()[_0x2a32('0x5f')](_0x5a6fab)&&this[_0x2a32('0x6c')](_0x540410,_0xe066ac,_0x180d25));}});},{'priority':'lowest'}),_0x4a9193[_0x2a32('0xc')]['on']('deleteContent',(_0x3ec4d5,_0x811b60)=>{const _0xafcf2e=_0x811b60[0x0],_0xb54075=_0x811b60[0x1];if(_0xb54075&&_0xb54075[_0x2a32('0xe')])return;if(this[_0x2a32('0x5e')])return;if(!this[_0x2a32('0xa0')][_0x2a32('0xb')])return;if(_0xafcf2e[_0x2a32('0xf1')])return;const _0x101375=_0x4a9193['model']['schema'],{start:_0x202ed4,end:_0x4a61be}=_0xafcf2e[_0x2a32('0x77')](),_0x736126=_0x202ed4['nodeAfter']&&_0x101375[_0x2a32('0x70')](_0x202ed4[_0x2a32('0xcf')])?null:_0x101375[_0x2a32('0x135')](_0x202ed4,_0x2a32('0x49')),_0x55e493=_0x4a61be['nodeBefore']&&_0x101375[_0x2a32('0x70')](_0x4a61be[_0x2a32('0x99')])?null:_0x101375[_0x2a32('0x135')](_0x4a61be,_0x2a32('0x69')),_0x3b0b3a=_0x4a9193['model'][_0x2a32('0x10c')](_0x736126?_0x736126[_0x2a32('0x22')]:_0x202ed4,_0x55e493?_0x55e493[_0x2a32('0xb6')]:_0x4a61be);_0x4a9193['model'][_0x2a32('0xf7')](_0x215e14=>{this[_0x2a32('0xba')](_0x3b0b3a);const _0x149a9c=_0x4a9193['model']['schema'][_0x2a32('0x135')](_0x3b0b3a[_0x2a32('0x22')]);_0xafcf2e['is'](_0x2a32('0x117'))?_0x215e14['setSelection'](_0x149a9c):_0xafcf2e['setTo'](_0x149a9c);}),_0x3ec4d5[_0x2a32('0xff')]();},{'priority':_0x4483ff[_0x2a32('0xc8')]+0xa}),_0x4a9193[_0x2a32('0xc')]['on']('insertContent',(_0x3d4e66,_0x6681f6)=>{const _0x3ce4b7=_0x6681f6[_0x6681f6['length']-0x1];_0x3ce4b7&&_0x3ce4b7[_0x2a32('0xe')]||this[_0x2a32('0x5e')]||this[_0x2a32('0xa0')]['value']&&(_0x4a9193[_0x2a32('0xc')]['change'](()=>{let _0x11bd1b=_0x4a9193['model'][_0x2a32('0x4')](_0x6681f6[0x0],_0x6681f6[0x1],_0x6681f6[0x2],{'forceDefaultExecution':!0x0});if(!_0x11bd1b)return;_0x3d4e66[_0x2a32('0x118')]=_0x11bd1b[_0x2a32('0x66')]();const _0x1c6428=_0x11bd1b['end'][_0x2a32('0x99')],_0x4b93d8=_0x4a9193[_0x2a32('0xc')][_0x2a32('0x12d')];_0x1c6428&&_0x4b93d8[_0x2a32('0x6f')](_0x1c6428)&&!_0x4b93d8[_0x2a32('0x7d')](_0x1c6428)&&(_0x11bd1b=_0x4a9193[_0x2a32('0xc')]['createRange'](_0x11bd1b[_0x2a32('0x22')],_0x4a9193[_0x2a32('0xc')][_0x2a32('0x1b')](_0x1c6428,'end'))),this[_0x2a32('0x5b')](_0x11bd1b);}),_0x3d4e66[_0x2a32('0xff')]());},{'priority':_0x2a32('0x7e')}),this[_0x2a32('0x3b')]['commands'][_0x2a32('0x2e')]('trackChanges',this[_0x2a32('0xa0')]),this[_0x2a32('0x63')]('trackChanges');const _0x1372b0=new _0x4e710f(_0x4a9193,this[_0x2a32('0x25')]);_0x4a9193[_0x2a32('0x90')]['add'](_0x2a32('0x46'),_0x1372b0),this['enableCommand'](_0x2a32('0x46'));const _0x19a52a=new _0x28388e(_0x4a9193,this[_0x2a32('0x25')]);_0x4a9193[_0x2a32('0x90')]['add'](_0x2a32('0xcb'),_0x19a52a),this[_0x2a32('0x63')](_0x2a32('0xcb')),_0x4a9193[_0x2a32('0x90')]['add']('acceptAllSuggestions',new _0x35991b(_0x4a9193,_0x1372b0,this['_suggestions'])),this[_0x2a32('0x63')](_0x2a32('0x1d')),_0x4a9193[_0x2a32('0x90')]['add']('discardAllSuggestions',new _0x35991b(_0x4a9193,_0x19a52a,this[_0x2a32('0x25')])),this[_0x2a32('0x63')](_0x2a32('0x106')),_0x4a9193[_0x2a32('0x90')][_0x2a32('0x2e')]('acceptSelectedSuggestions',new _0x2a07c7(_0x4a9193,_0x1372b0,this['_suggestions'])),this[_0x2a32('0x63')](_0x2a32('0xeb')),_0x4a9193[_0x2a32('0x90')][_0x2a32('0x2e')](_0x2a32('0xed'),new _0x2a07c7(_0x4a9193,_0x19a52a,this[_0x2a32('0x25')])),this[_0x2a32('0x63')]('discardSelectedSuggestions');const _0x1dc91c=_0x4a9193[_0x2a32('0x31')][_0x2a32('0x121')](_0x2a32('0xa6'));this[_0x2a32('0x102')](_0x1dc91c,_0x2a32('0x126'),(_0x3e598a,{threadId:_0x45f94e})=>{const _0x3f784e=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x45f94e);_0x3f784e&&_0x3f784e['commentThread']&&0x1===_0x3f784e[_0x2a32('0xb3')][_0x2a32('0xa')]&&this['_updateSuggestionData'](_0x45f94e,{'hasComments':!0x0});},{'priority':_0x2a32('0x1e')}),this[_0x2a32('0x102')](_0x1dc91c,_0x2a32('0xd1'),(_0x18b2a6,{threadId:_0x10a20c})=>{const _0x34bedd=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x10a20c);_0x34bedd&&_0x34bedd[_0x2a32('0xb3')]&&!_0x34bedd[_0x2a32('0xb3')][_0x2a32('0xa')]&&this['_updateSuggestionData'](_0x10a20c,{'hasComments':!0x1});},{'priority':_0x2a32('0x1e')});}set[_0x2a32('0x6a')](_0x5772b9){if(this[_0x2a32('0x8a')])throw new _0x5368fe(_0x2a32('0x12b'),this);this[_0x2a32('0x8a')]=_0x5772b9;}get[_0x2a32('0x6a')](){return this[_0x2a32('0x8a')];}[_0x2a32('0x7a')]({skipNotAttached:_0xc2976c=!0x1,toJSON:_0x353805=!0x1}={}){const _0x17f511=[];for(const _0x3b08fc of this[_0x2a32('0x25')]['values']())_0xc2976c&&!_0x3b08fc['isInContent']||_0x17f511['push'](_0x3b08fc);return _0x353805?_0x17f511[_0x2a32('0xfe')](_0x897dfe=>_0x897dfe['toJSON']()):_0x17f511;}[_0x2a32('0x9d')](_0x109965){const _0x8a4526=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x109965);if(!_0x8a4526)throw new _0x5368fe('track-changes-suggestion-not-found',this);return _0x8a4526;}['hasSuggestion'](_0x413ab4){return this['_suggestions'][_0x2a32('0xab')](_0x413ab4);}[_0x2a32('0x4d')](_0x44c2f3){const {authorId:_0x427f6c,id:_0x49b6e2,attributes:_0x1d0804}=_0x44c2f3,[_0x16c0f5,_0xdbe00f]=_0x44c2f3[_0x2a32('0x10e')][_0x2a32('0x2d')](':'),_0x420c1a=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x49b6e2)||this[_0x2a32('0x20')](_0x16c0f5,_0xdbe00f,_0x49b6e2,_0x427f6c,_0x1d0804);if(this[_0x2a32('0x37')](_0x420c1a),this[_0x2a32('0x80')](_0x420c1a,_0x16c0f5,_0xdbe00f||null,_0x427f6c),_0x420c1a[_0x2a32('0xa2')]=_0x44c2f3[_0x2a32('0xa2')],_0x1d0804&&_0x1d0804['@external']){const _0x510c6d=_0x1d0804[_0x2a32('0xf')],_0x22d265=this[_0x2a32('0x2f')](_0x510c6d['authorName']);_0x420c1a[_0x2a32('0xaf')]=_0x510c6d[_0x2a32('0xa2')],_0x420c1a[_0x2a32('0x92')]=_0x22d265,_0x420c1a[_0x2a32('0xcd')]=!0x0;}else _0x420c1a[_0x2a32('0xaf')]=_0x44c2f3['createdAt'];switch(_0x44c2f3['data']&&(_0x420c1a[_0x2a32('0x10f')]=_0x44c2f3[_0x2a32('0x10f')]),_0x44c2f3[_0x2a32('0xbc')]&&(_0x420c1a['attributes']=_0x44c2f3[_0x2a32('0xbc')]),this[_0x2a32('0x8a')]&&this[_0x2a32('0x8a')][_0x2a32('0x1c')]||(_0x420c1a[_0x2a32('0x133')]=!0x0),this[_0x2a32('0x3d')][_0x2a32('0x121')](_0x420c1a)){case'notReady':this[_0x2a32('0x3d')]['set'](_0x420c1a,_0x2a32('0x83'));break;case'markerReady':_0x420c1a[_0x2a32('0xa9')]?(this['_suggestionState'][_0x2a32('0xbf')](_0x420c1a,_0x2a32('0xf9')),this[_0x2a32('0x87')]('suggestionLoaded',_0x420c1a)):this[_0x2a32('0x3d')][_0x2a32('0xbf')](_0x420c1a,'removed');}return _0x420c1a;}[_0x2a32('0x46')](_0xb95aee){this[_0x2a32('0xe')](()=>{this[_0x2a32('0x3b')][_0x2a32('0xc')][_0x2a32('0xf7')](()=>{for(const _0x17aa70 of _0xb95aee[_0x2a32('0x7c')]())_0x17aa70['accept']();});});}[_0x2a32('0xcb')](_0xd03e6e){this['forceDefaultExecution'](()=>{this[_0x2a32('0x3b')]['model']['change'](()=>{for(const _0xf7c73c of _0xd03e6e[_0x2a32('0x7c')]())_0xf7c73c[_0x2a32('0xc1')]();});});}[_0x2a32('0x63')](_0x478e8c,_0x305180){const _0x30c177=this['editor']['commands'][_0x2a32('0x121')](_0x478e8c);if(!_0x30c177)throw new _0x5368fe('track-changes-command-not-found',this,{'commandName':_0x478e8c});this[_0x2a32('0x124')][_0x2a32('0x2e')](_0x30c177),_0x305180&&_0x30c177['on'](_0x2a32('0x40'),(_0x112f5f,_0x357927)=>{this['trackChangesCommand'][_0x2a32('0xb')]&&(this[_0x2a32('0x5e')]||_0x357927[_0x2a32('0xa')]>0x0&&_0x357927[_0x357927[_0x2a32('0xa')]-0x1]&&_0x357927[_0x357927[_0x2a32('0xa')]-0x1][_0x2a32('0xe')]||(_0x305180((..._0x224ce4)=>_0x30c177[_0x2a32('0x40')](..._0x224ce4,{'forceDefaultExecution':!0x0}),..._0x357927),_0x112f5f[_0x2a32('0xff')]()));},{'priority':_0x2a32('0x7e')});}[_0x2a32('0xe')](_0x27a4d0){let _0x24356e,_0x258331;const _0x3683b0=this[_0x2a32('0x5e')];this[_0x2a32('0x5e')]=!0x0;try{_0x24356e=_0x27a4d0();}catch(_0x4267d1){_0x258331=_0x4267d1;}return _0x3683b0||(this[_0x2a32('0x5e')]=!0x1),_0x258331&&_0x5368fe[_0x2a32('0x108')](_0x258331,this),_0x24356e;}[_0x2a32('0x5b')](_0x154066,_0x6edc5b=null,_0x4621fc={}){if(_0x154066[_0x2a32('0xf1')])return null;const _0xc8d8a=this[_0x2a32('0x3b')][_0x2a32('0x31')]['get'](_0x2a32('0xc5'))['me'];for(const {suggestion:_0x14ce7b,meta:_0x3ed55c}of this[_0x2a32('0x68')](_0x154066,_0x2a32('0x5a')))if(_0x3ed55c[_0x2a32('0x9f')]){if(!_0x3ed55c[_0x2a32('0x3a')]){if(!this[_0x2a32('0x5')]&&_0x3ed55c[_0x2a32('0xf5')])continue;return _0x14ce7b;}if(_0x6edc5b==_0x14ce7b[_0x2a32('0x113')]){const _0x5a327e=_0x14ce7b[_0x2a32('0x77')]();return _0x5a327e[_0x2a32('0x22')][_0x2a32('0x96')](_0x154066[_0x2a32('0xb6')])?this['_setSuggestionRange'](_0x14ce7b,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x154066['start'],_0x5a327e[_0x2a32('0xb6')])):this[_0x2a32('0x95')](_0x14ce7b,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x5a327e[_0x2a32('0x22')],_0x154066[_0x2a32('0xb6')])),_0x14ce7b;}}const _0x4846a9=_0x161255(),_0x2f2ece=_0xc8d8a['id'],_0x20acdc=_0x6edc5b?_0x2a32('0x30')+_0x6edc5b:'insertion',_0x1d7401=this[_0x2a32('0x53')]({'id':_0x4846a9,'type':_0x20acdc,'createdAt':new Date(),'authorId':_0x2f2ece,'attributes':_0x4621fc});return this[_0x2a32('0x9')](_0x20acdc,_0x4846a9,_0x2f2ece,_0x154066),_0x1d7401;}[_0x2a32('0x64')](_0x50ff3a,_0x5d9038=_0x2a32('0x116'),_0xf23461={}){const _0x19656a=this['editor']['plugins'][_0x2a32('0x121')](_0x2a32('0xc5'))['me'],_0x45edf0=this[_0x2a32('0xf4')]['getSuggestionCallback'](_0x2a32('0x5a'),_0x5d9038,'join');for(const _0x391d2a of this[_0x2a32('0x7a')]())if(_0x391d2a[_0x2a32('0x92')]['id']==_0x19656a['id']&&_0x2a32('0x5a')==_0x391d2a[_0x2a32('0x10e')]&&_0x391d2a[_0x2a32('0x113')]==_0x5d9038&&(_0x45edf0(_0x391d2a[_0x2a32('0x8f')](),_0x50ff3a)||_0x45edf0(_0x50ff3a,_0x391d2a[_0x2a32('0x8f')]()))){for(const _0x5ad17c of _0x50ff3a)_0x391d2a[_0x2a32('0xd9')](_0x5ad17c);return _0x391d2a;}if(this[_0x2a32('0x5')])for(const _0x5f4fa2 of _0x50ff3a)for(const {suggestion:_0x64a7bd,meta:_0x30b0e0}of this['_findSuggestions'](_0x5f4fa2,_0x2a32('0x5a'))){if(!_0x30b0e0['isOwn'])continue;let _0x217c39=!0x0;for(const _0x4d5a65 of _0x64a7bd[_0x2a32('0x8f')]())for(const _0xe7a59e of _0x50ff3a)if(!_0x4d5a65[_0x2a32('0x5f')](_0xe7a59e)){_0x217c39=!0x1;break;}if(_0x217c39)return _0x64a7bd;}const _0x2f4556=_0x161255(),_0xe09d54=_0x19656a['id'],_0x34b5db='insertion:'+_0x5d9038,_0x34d271=this[_0x2a32('0x53')]({'id':_0x2f4556,'type':_0x34b5db,'createdAt':new Date(),'authorId':_0xe09d54,'attributes':_0xf23461});for(const _0x4b0570 of _0x50ff3a)this['_addSuggestionMarker'](_0x34b5db,_0x2f4556,_0xe09d54,_0x4b0570,_0x115070[_0x2a32('0x11c')]());return _0x34d271;}[_0x2a32('0x8')](_0x3553de,_0x17df92,_0x1b36fa=null,_0x3c784a={}){if(_0x1b36fa=_0x1b36fa||$t(_0x17df92),_0x3553de[_0x2a32('0xf1')])return null;if(_0x2a32('0xc4')===this[_0x2a32('0xb5')]){const _0x40703d=this[_0x2a32('0xf4')]['getSuggestionCallback'](_0x2a32('0xe8'),_0x1b36fa,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x40703d([_0x3553de],_0x17df92,_0x3c784a)),null;}const _0x13371d=this[_0x2a32('0x3b')]['plugins'][_0x2a32('0x121')]('Users')['me'],_0x2a04bd=[];if(_0x2a32('0x104')!==this[_0x2a32('0xb5')])for(const {suggestion:_0x2b62a5,meta:_0x1d8f41}of this[_0x2a32('0x68')](_0x3553de,'insertion'))_0x1d8f41[_0x2a32('0x9f')]&&!_0x1d8f41[_0x2a32('0x8d')]&&_0x2a04bd[_0x2a32('0x29')](..._0x2b62a5[_0x2a32('0x8f')]());const _0x1a7717=function(_0x52e7de,_0x451e4a){const _0x200cfe=[];for(const _0x493411 of _0x451e4a){const _0x373f1f=_0x52e7de[_0x2a32('0x71')](_0x493411);_0x373f1f&&_0x200cfe[_0x2a32('0x29')](_0x373f1f);}return _0x200cfe;}(_0x3553de,_0x2a04bd),_0xab30ad=function(_0x3998a3,_0x290b55){const _0x3af6d4=[_0x3998a3];for(const _0x2dd13a of _0x290b55){let _0x35a684=0x0;for(;_0x35a684<_0x3af6d4[_0x2a32('0xa')];){const _0x2fb19c=_0x3af6d4[_0x35a684][_0x2a32('0x1a')](_0x2dd13a);_0x3af6d4[_0x2a32('0xe2')](_0x35a684,0x1,..._0x2fb19c),_0x35a684+=_0x2fb19c[_0x2a32('0xa')];}}return _0x3af6d4;}(_0x3553de,_0x2a04bd);_0x1a7717[_0x2a32('0xa')]&&this[_0x2a32('0x97')][_0x2a32('0xf7')](()=>{for(const _0x1aeae4 of _0x1a7717){const _0x593d0a=this[_0x2a32('0xf4')][_0x2a32('0x12f')]('formatInline',_0x1b36fa,_0x2a32('0xc9'));this[_0x2a32('0xe')](()=>_0x593d0a([_0x1aeae4],_0x17df92,_0x3c784a));}});for(const _0x884428 of _0xab30ad){let _0x1ac570=null,_0x526eb0=_0x884428['start'],_0xfff633=_0x884428[_0x2a32('0xb6')];for(const {suggestion:_0x416126,meta:_0x589e06}of this[_0x2a32('0x68')](_0x884428,_0x2a32('0xe8'))){if(!_0x589e06[_0x2a32('0x9f')])continue;if(_0x416126[_0x2a32('0x113')]!=_0x1b36fa)continue;const _0x272960=_0x416126['getFirstRange']();if(_0x272960['containsRange'](_0x884428,!0x0))return null;_0x526eb0=_0x526eb0[_0x2a32('0x72')](_0x272960[_0x2a32('0x22')])?_0x526eb0:_0x272960[_0x2a32('0x22')],_0xfff633=_0xfff633['isAfter'](_0x272960[_0x2a32('0xb6')])?_0xfff633:_0x272960[_0x2a32('0xb6')],_0x1ac570?_0x272960[_0x2a32('0x22')][_0x2a32('0x72')](_0x1ac570[_0x2a32('0x77')]()[_0x2a32('0x22')])?(_0x1ac570[_0x2a32('0xe7')](),_0x1ac570=_0x416126):_0x416126[_0x2a32('0xe7')]():_0x1ac570=_0x416126;}const _0x87d6f8=this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x526eb0,_0xfff633);if(_0x1ac570)this['_setSuggestionRange'](_0x1ac570,_0x87d6f8);else{const _0x4d4aae=_0x161255(),_0x17b1b4=_0x13371d['id'];this['_setSuggestionData']({'id':_0x4d4aae,'type':_0x2a32('0x39')+_0x1b36fa,'data':_0x17df92,'createdAt':new Date(),'authorId':_0x17b1b4,'attributes':_0x3c784a}),this[_0x2a32('0x9')](_0x2a32('0x39')+_0x1b36fa,_0x4d4aae,_0x17b1b4,_0x87d6f8);}}return null;}[_0x2a32('0x19')](_0x4d20b4,_0x5882ae,_0x3ded5f=[],_0x12cf13=null,_0xbaa5f6={}){_0x5882ae[_0x2a32('0xe3')]||(_0x5882ae[_0x2a32('0xe3')]=_0x5882ae[_0x2a32('0xe4')]),_0x5882ae[_0x2a32('0xae')]=_0x4d20b4['is'](_0x2a32('0x26')),_0x12cf13=_0x12cf13||$t(_0x5882ae);const _0x2e5103=_0x3ded5f[_0x2a32('0xfe')](_0xf78b7d=>Rt(_0xf78b7d,this[_0x2a32('0x97')])),_0x39d135=_0x4d20b4['is'](_0x2a32('0x26'))?_0x4d20b4:Rt(_0x4d20b4,this[_0x2a32('0x97')]);if(_0x2a32('0xc4')===this['_trackFormatChanges']){const _0x5886a2=this['_suggestionFactory'][_0x2a32('0x12f')](_0x2a32('0x3c'),_0x12cf13,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x5886a2([_0x39d135],_0x5882ae,_0xbaa5f6)),null;}_0x2e5103[_0x2a32('0x29')](_0x39d135);let _0x31050b=!0x0;for(const _0x335dc7 of _0x2e5103)if(!this[_0x2a32('0x11e')](_0x335dc7)){_0x31050b=!0x1;break;}if(_0x31050b&&_0x2a32('0x104')!==this[_0x2a32('0xb5')]){const _0x5f2472=this['_suggestionFactory']['getSuggestionCallback'](_0x2a32('0x3c'),_0x12cf13,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x5f2472([_0x39d135],_0x5882ae,_0xbaa5f6)),null;}let _0x5cf69a=null,_0x282408=_0x39d135[_0x2a32('0x22')],_0x53701f=_0x39d135[_0x2a32('0xb6')];for(const {suggestion:_0x1a73e9,meta:_0x55b3bb}of this['_findSuggestions'](_0x39d135,'formatBlock')){if(!_0x55b3bb['isOwn']||_0x55b3bb[_0x2a32('0x3a')]||_0x55b3bb['containsRangeInObject']||_0x55b3bb['isInsideObject'])continue;if(_0x1a73e9['data']['formatGroupId']!=_0x5882ae['formatGroupId'])continue;const _0x457400=_0x1a73e9[_0x2a32('0x77')]();if(_0x1a73e9[_0x2a32('0x113')]==_0x12cf13){if(_0x457400[_0x2a32('0x5f')](_0x39d135,!0x0))return null;_0x282408=_0x282408['isBefore'](_0x457400[_0x2a32('0x22')])?_0x282408:_0x457400[_0x2a32('0x22')],_0x53701f=_0x53701f['isAfter'](_0x457400[_0x2a32('0xb6')])?_0x53701f:_0x457400[_0x2a32('0xb6')],_0x5cf69a?_0x457400[_0x2a32('0x22')][_0x2a32('0x72')](_0x5cf69a[_0x2a32('0x77')]()['start'])?(_0x5cf69a['removeMarkers'](),_0x5cf69a=_0x1a73e9):_0x1a73e9[_0x2a32('0xe7')]():_0x5cf69a=_0x1a73e9;}else{const _0x4df0c1=_0x39d135[_0x2a32('0x71')](_0x457400);this['_cutOutSuggestionMarker'](_0x1a73e9,_0x4df0c1);}}const _0x108c88=this[_0x2a32('0x3b')][_0x2a32('0x31')][_0x2a32('0x121')](_0x2a32('0xc5'))['me'],_0x3d8d50=_0x161255(),_0x1f9a73=_0x108c88['id'];if(_0x5cf69a)return this[_0x2a32('0x95')](_0x5cf69a,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x282408,_0x53701f)),_0x5cf69a;{const _0x3f17a3=this['_setSuggestionData']({'id':_0x3d8d50,'type':_0x2a32('0xb0')+_0x12cf13,'data':_0x5882ae,'createdAt':new Date(),'authorId':_0x1f9a73,'attributes':_0xbaa5f6});return this[_0x2a32('0x9')](_0x2a32('0xb0')+_0x12cf13,_0x3d8d50,_0x1f9a73,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x282408,_0x53701f)),_0x3f17a3;}}[_0x2a32('0xd')](_0x3f078d,_0x46851f,_0x15830f=[],_0x3316eb=null,_0x2b0d77={}){_0x46851f[_0x2a32('0xe3')]||(_0x46851f[_0x2a32('0xe3')]=_0x46851f['commandName']);const _0x58d6b6=_0x3f078d[0x0];_0x46851f[_0x2a32('0xae')]=_0x58d6b6['is'](_0x2a32('0x26')),_0x3316eb=_0x3316eb||$t(_0x46851f);const _0x178e12=_0x15830f[_0x2a32('0xfe')](_0x8c362f=>Rt(_0x8c362f,this[_0x2a32('0x97')])),_0x1529d3=_0x58d6b6['is'](_0x2a32('0x26'))?_0x3f078d:_0x3f078d[_0x2a32('0xfe')](_0x46a6bf=>Rt(_0x46a6bf,this['_model']));if(_0x2a32('0xc4')===this['_trackFormatChanges']){const _0x1923a3=this['_suggestionFactory'][_0x2a32('0x12f')](_0x2a32('0x3c'),_0x3316eb,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x1923a3(_0x1529d3,_0x46851f,_0x2b0d77)),null;}_0x178e12[_0x2a32('0x29')](..._0x1529d3);let _0x4e5164=!0x0;for(const _0x45e3d4 of _0x178e12)if(!this[_0x2a32('0x11e')](_0x45e3d4)){_0x4e5164=!0x1;break;}if(_0x4e5164&&_0x2a32('0x104')!==this['_trackFormatChanges']){const _0x5a17bf=this['_suggestionFactory']['getSuggestionCallback'](_0x2a32('0x3c'),_0x3316eb,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x5a17bf(_0x1529d3,_0x46851f,_0x2b0d77)),null;}const _0x1c1728=this[_0x2a32('0x3b')]['plugins'][_0x2a32('0x121')](_0x2a32('0xc5'))['me'];for(const _0x4bc6ea of this[_0x2a32('0x7a')]()){if(_0x4bc6ea[_0x2a32('0x92')]['id']!=_0x1c1728['id'])continue;if(_0x2a32('0x3c')!=_0x4bc6ea['type']||_0x4bc6ea[_0x2a32('0x10f')][_0x2a32('0xe3')]!=_0x46851f[_0x2a32('0xe3')])continue;const _0x40873c=_0x4bc6ea['subType']==_0x3316eb;for(let _0x235535=0x0;_0x235535<_0x1529d3[_0x2a32('0xa')];_0x235535++){const _0x29f914=_0x1529d3[_0x235535];for(const _0x10b2bd of _0x4bc6ea[_0x2a32('0x9c')]()){const _0x205625=_0x10b2bd[_0x2a32('0x0')]();if(_0x29f914[_0x2a32('0x96')](_0x205625)){_0x40873c?(_0x1529d3[_0x2a32('0xe2')](_0x235535,0x1),_0x235535--):_0x4bc6ea[_0x2a32('0x5c')](_0x10b2bd[_0x2a32('0xc2')]);break;}}}}if(0x0==_0x1529d3[_0x2a32('0xa')])return null;const _0x22dc17=this[_0x2a32('0xf4')]['getSuggestionCallback'](_0x2a32('0x3c'),_0x3316eb,_0x2a32('0x103'));for(const _0xacc77c of this['getSuggestions']())if(_0xacc77c[_0x2a32('0x92')]['id']==_0x1c1728['id']&&_0x2a32('0x3c')==_0xacc77c[_0x2a32('0x10e')]&&_0xacc77c['data'][_0x2a32('0xe3')]==_0x46851f['formatGroupId']&&_0xacc77c[_0x2a32('0x113')]==_0x3316eb&&(_0x22dc17(_0xacc77c[_0x2a32('0x8f')](),_0x1529d3)||_0x22dc17(_0x1529d3,_0xacc77c[_0x2a32('0x8f')]()))){for(const _0x4da132 of _0x1529d3)_0xacc77c['addRange'](_0x4da132);return _0xacc77c;}const _0x294556=_0x161255(),_0x5408dc=_0x1c1728['id'],_0x479b5e=_0x2a32('0xb0')+_0x3316eb,_0x27473d=this[_0x2a32('0x53')]({'id':_0x294556,'type':_0x479b5e,'data':_0x46851f,'createdAt':new Date(),'authorId':_0x5408dc,'attributes':_0x2b0d77});for(const _0x3a3c16 of _0x1529d3)this[_0x2a32('0x9')](_0x479b5e,_0x294556,_0x5408dc,_0x3a3c16,_0x115070['getMultiRangeId']());return _0x27473d;}['markDeletion'](_0xd82856,_0x273146=null,_0x4988e0={}){if(_0xd82856[_0x2a32('0xf1')])return null;const _0xff8419=this[_0x2a32('0x3b')][_0x2a32('0x31')]['get'](_0x2a32('0xc5'))['me'],_0x52788c=new _0x5ba02d(_0xd82856[_0x2a32('0x22')],_0xd82856[_0x2a32('0xb6')]);for(const {suggestion:_0x491429,meta:_0x39f19b}of this[_0x2a32('0x68')](_0x52788c,_0x2a32('0x5a')))if(_0x39f19b[_0x2a32('0x9f')]&&!_0x39f19b['isNextTo']){if(_0x491429[_0x2a32('0xac')]){const _0x5ae638=_0x491429[_0x2a32('0x8f')]()['filter'](_0x25b8e0=>_0x2a32('0xdd')!=_0x25b8e0['root'][_0x2a32('0xe9')]);_0x5ae638[_0x2a32('0x111')](_0x29ced9=>_0x52788c[_0x2a32('0x5f')](_0x29ced9,!0x0))&&_0x491429[_0x2a32('0xc1')]();if(_0x5ae638[_0x2a32('0x8e')](_0x4f5df5=>_0x4f5df5[_0x2a32('0x5f')](_0x52788c,!0x0))){const _0x2d8474=this[_0x2a32('0xf4')][_0x2a32('0x12f')](_0x2a32('0x73'),_0x273146,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x2d8474([_0x52788c],null,_0x4988e0)),null;}}else{const _0xc8f11d=_0x52788c['getIntersection'](_0x491429[_0x2a32('0x77')]());null!==_0xc8f11d&&_0x491429[_0x2a32('0x122')]([_0xc8f11d],null,_0x4988e0);}}if(_0x52788c['detach'](),_0x52788c[_0x2a32('0xf1')]||'$graveyard'==_0x52788c['root'][_0x2a32('0xe9')])return null;let _0x12af84=null,_0x5a657a=_0x52788c[_0x2a32('0x22')],_0x498ad7=_0x52788c[_0x2a32('0xb6')];for(const {suggestion:_0x5debe3,meta:_0xe22c74}of this[_0x2a32('0x68')](_0x52788c,_0x2a32('0x73')))if(_0xe22c74[_0x2a32('0x9f')]){if(_0x5debe3[_0x2a32('0xac')]&&this[_0x2a32('0x5')]){let _0x158056=!0x0;for(const _0x3e4f51 of _0x5debe3[_0x2a32('0x8f')]()){if(_0x3e4f51[_0x2a32('0x5f')](_0x52788c,!0x0))return _0x5debe3;_0x52788c[_0x2a32('0x5f')](_0x3e4f51)||(_0x158056=!0x1);}_0x158056&&_0x5debe3[_0x2a32('0xc1')]();}else{const _0x58392a=_0x5debe3[_0x2a32('0x77')]();if(_0x58392a[_0x2a32('0x5f')](_0x52788c,!0x0)){if(!this[_0x2a32('0x5')]&&_0xe22c74[_0x2a32('0xf5')])continue;return _0x5debe3;}_0x5a657a=_0x5a657a[_0x2a32('0x72')](_0x58392a[_0x2a32('0x22')])?_0x5a657a:_0x58392a['start'],_0x498ad7=_0x498ad7['isAfter'](_0x58392a[_0x2a32('0xb6')])?_0x498ad7:_0x58392a[_0x2a32('0xb6')],_0x12af84?_0x58392a[_0x2a32('0x22')][_0x2a32('0x72')](_0x12af84[_0x2a32('0x77')]()[_0x2a32('0x22')])?(_0x12af84['removeMarkers'](),_0x12af84=_0x5debe3):_0x5debe3[_0x2a32('0xe7')]():_0x12af84=_0x5debe3;}}if(_0x12af84)return this[_0x2a32('0x95')](_0x12af84,this['_model'][_0x2a32('0x10c')](_0x5a657a,_0x498ad7)),_0x12af84;{const _0x3f89dd=_0x161255(),_0x39ef7b=this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x5a657a,_0x498ad7),_0x5d0bc7=_0xff8419['id'],_0x24f500=_0x273146?'deletion:'+_0x273146:'deletion',_0x1d25a4=this[_0x2a32('0x53')]({'id':_0x3f89dd,'type':_0x24f500,'createdAt':new Date(),'authorId':_0x5d0bc7,'attributes':_0x4988e0});return this[_0x2a32('0x9')](_0x24f500,_0x3f89dd,_0x5d0bc7,_0x39ef7b),_0x1d25a4;}}[_0x2a32('0xd3')](_0x51c0f3,_0x26d5ff=_0x2a32('0x116'),_0x298c67={}){const _0x25b15d=this[_0x2a32('0x3b')][_0x2a32('0x31')][_0x2a32('0x121')]('Users')['me'],_0x592c65=_0x51c0f3['map'](_0x200041=>new _0x5ba02d(_0x200041['start'],_0x200041[_0x2a32('0xb6')])),_0x181ab7=new Set();for(const _0xd6f845 of _0x592c65)for(const {suggestion:_0x50309b,meta:_0x44b68b}of this[_0x2a32('0x68')](_0xd6f845,_0x2a32('0x5a')))_0x44b68b[_0x2a32('0x9f')]&&!_0x44b68b[_0x2a32('0x3a')]&&_0x181ab7[_0x2a32('0x2e')](_0x50309b);for(const _0x38197e of _0x181ab7)if(_0x38197e[_0x2a32('0xac')]){const _0x3b6a33=_0x38197e[_0x2a32('0x8f')]();(!_0x38197e['attributes']||!_0x38197e[_0x2a32('0xbc')]['skipNestingCheck'])&&(_0x3b6a33[_0x2a32('0x111')](_0x23c88c=>_0x592c65[_0x2a32('0x8e')](_0x14b47c=>_0x14b47c[_0x2a32('0x5f')](_0x23c88c,!0x0)))&&_0x38197e[_0x2a32('0xc1')]());if(_0x592c65[_0x2a32('0x111')](_0x2b9007=>_0x3b6a33[_0x2a32('0x8e')](_0x374037=>_0x374037['containsRange'](_0x2b9007,!0x0)))){const _0x16d98c=this[_0x2a32('0xf4')][_0x2a32('0x12f')](_0x2a32('0x73'),_0x26d5ff,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x16d98c(_0x51c0f3,null,_0x298c67)),null;}}else{const _0x196b26=_0x38197e[_0x2a32('0x77')]();_0x592c65[_0x2a32('0x8e')](_0x17bc75=>_0x17bc75[_0x2a32('0x5f')](_0x196b26,!0x0))&&_0x38197e['discard']();if(_0x592c65[_0x2a32('0x111')](_0x128381=>_0x196b26[_0x2a32('0x5f')](_0x128381,!0x0))){const _0x27ba36=this[_0x2a32('0xf4')][_0x2a32('0x12f')](_0x2a32('0x73'),_0x26d5ff,_0x2a32('0xc9'));return this['forceDefaultExecution'](()=>_0x27ba36(_0x592c65,null,_0x298c67)),null;}}const _0x18b896=this[_0x2a32('0xf4')][_0x2a32('0x12f')](_0x2a32('0x73'),_0x26d5ff,_0x2a32('0x103'));let _0x5c6dd1=null;for(const _0x415a01 of this[_0x2a32('0x7a')]())if(_0x415a01[_0x2a32('0x92')]['id']==_0x25b15d['id']&&_0x415a01[_0x2a32('0xa9')]&&'deletion'==_0x415a01['type']&&_0x415a01[_0x2a32('0x113')]==_0x26d5ff&&(_0x18b896(_0x415a01[_0x2a32('0x8f')](),_0x592c65)||_0x18b896(_0x592c65,_0x415a01[_0x2a32('0x8f')]()))){if(_0x5c6dd1){if(_0x415a01[_0x2a32('0xb3')]&&_0x415a01[_0x2a32('0xb3')]['length'])continue;for(const _0x49266a of _0x415a01[_0x2a32('0x8f')]())_0x5c6dd1[_0x2a32('0x51')](_0x49266a)||_0x5c6dd1[_0x2a32('0xd9')](_0x49266a);_0x415a01[_0x2a32('0xe7')]();}else{_0x5c6dd1=_0x415a01;for(const _0x5502ef of _0x592c65)_0x415a01[_0x2a32('0x51')](_0x5502ef)||_0x415a01['addRange'](_0x5502ef);}}if(_0x5c6dd1)return _0x5c6dd1;_0x181ab7['clear']();for(const _0x1a062a of _0x592c65)for(const {suggestion:_0x2bdc2a,meta:_0x3a4a8c}of this['_findSuggestions'](_0x1a062a,_0x2a32('0x73')))_0x3a4a8c[_0x2a32('0x9f')]&&_0x181ab7['add'](_0x2bdc2a);for(const _0x379077 of _0x181ab7){const _0x32d5e0=_0x379077[_0x2a32('0x8f')]();if(!_0x298c67||!_0x298c67['skipNestingCheck']){if(_0x592c65[_0x2a32('0x111')](_0x5e125d=>_0x32d5e0[_0x2a32('0x8e')](_0x3fa30d=>_0x3fa30d[_0x2a32('0x5f')](_0x5e125d,!0x0))))return _0x379077;}(!_0x379077['attributes']||!_0x379077[_0x2a32('0xbc')][_0x2a32('0xbe')])&&(_0x32d5e0[_0x2a32('0x111')](_0xcb62fb=>_0x592c65[_0x2a32('0x8e')](_0x22687a=>_0x22687a[_0x2a32('0x5f')](_0xcb62fb,!0x0)))&&_0x379077['discard']());}const _0x4be7f4=_0x161255(),_0x3c0fb5=_0x25b15d['id'],_0x252e5a=_0x2a32('0x18')+_0x26d5ff,_0x35f46e=this[_0x2a32('0x53')]({'id':_0x4be7f4,'type':_0x252e5a,'createdAt':new Date(),'authorId':_0x3c0fb5,'attributes':_0x298c67});for(const _0x5a6dcd of _0x592c65)_0x5a6dcd[_0x2a32('0x74')](),_0x5a6dcd['isCollapsed']||_0x2a32('0xdd')==_0x5a6dcd[_0x2a32('0x12e')][_0x2a32('0xe9')]||this['_addSuggestionMarker'](_0x252e5a,_0x4be7f4,_0x3c0fb5,_0x5a6dcd,_0x115070[_0x2a32('0x11c')]());return _0x35f46e;}[_0x2a32('0x95')](_0xf6e8e2,_0x4f7ec7){const _0x278883=_0xf6e8e2['getFirstMarker']();this['_model'][_0x2a32('0xf7')](_0x387c1f=>{_0x387c1f['updateMarker'](_0x278883,{'range':_0x4f7ec7});});}[_0x2a32('0x37')](_0x3fb0e4){const _0x2c72ea=_0x3fb0e4['id'],_0x17b728=this[_0x2a32('0x3b')][_0x2a32('0xb2')][_0x2a32('0x121')]('collaboration.channelId');this[_0x2a32('0x67')][_0x2a32('0x50')](_0x2c72ea)||this[_0x2a32('0x67')][_0x2a32('0xa8')]({'channelId':_0x17b728,'threadId':_0x2c72ea,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x11e3fd=this[_0x2a32('0x67')][_0x2a32('0x88')](_0x2c72ea);_0x11e3fd[_0x2a32('0x85')](_0x2a32('0xa1')),_0x11e3fd[_0x2a32('0xa1')]=!0x1,_0x3fb0e4[_0x2a32('0xb3')]=_0x11e3fd;}['_checkSuggestionCorrectness'](_0x44ce3a,_0x4f1974,_0x4400b5,_0x10d054){if(_0x44ce3a[_0x2a32('0x10e')]!=_0x4f1974||_0x44ce3a[_0x2a32('0x113')]!=_0x4400b5||_0x44ce3a[_0x2a32('0xb9')]['id']!=_0x10d054)throw this[_0x2a32('0x3b')][_0x2a32('0xc7')](_0x2a32('0x128')),new _0x5368fe(_0x2a32('0x128'),this);}[_0x2a32('0xad')](_0x54673d,_0x239bbc){const _0x70874f=_0x54673d[_0x2a32('0x77')]();if(_0x239bbc[_0x2a32('0x96')](_0x70874f))_0x54673d['removeMarkers']();else{if(_0x70874f[_0x2a32('0x5f')](_0x239bbc)){const _0xfce98e=this[_0x2a32('0x97')][_0x2a32('0x1b')](_0x239bbc['start'][_0x2a32('0x99')],_0x2a32('0xb6'));this[_0x2a32('0x95')](_0x54673d,this['_model'][_0x2a32('0x10c')](_0x70874f[_0x2a32('0x22')],_0xfce98e));const _0x1c639c=_0x161255(),_0x42a7d2=_0x54673d[_0x2a32('0xb9')]['id'],_0x3b32a1=_0x54673d[_0x2a32('0x10e')]+':'+_0x54673d['subType'];this['_setSuggestionData']({'id':_0x1c639c,'type':_0x3b32a1,'createdAt':new Date(),'authorId':_0x42a7d2,'data':_0x54673d['data'],'attributes':_0x54673d[_0x2a32('0xbc')]});const _0x3bfd98=this[_0x2a32('0x97')][_0x2a32('0x1b')](_0x239bbc[_0x2a32('0xb6')][_0x2a32('0x75')],'after'),_0x2e935a=this[_0x2a32('0x97')]['createRange'](_0x3bfd98,_0x70874f[_0x2a32('0xb6')]);this[_0x2a32('0x9')](_0x3b32a1,_0x1c639c,_0x42a7d2,_0x2e935a);}else{if(_0x70874f[_0x2a32('0x127')](_0x239bbc[_0x2a32('0x22')])){const _0x228f64=this[_0x2a32('0x97')]['createPositionAt'](_0x239bbc[_0x2a32('0x22')][_0x2a32('0x99')],_0x2a32('0xb6'));this[_0x2a32('0x95')](_0x54673d,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x70874f[_0x2a32('0x22')],_0x228f64));}else{const _0x238a20=this[_0x2a32('0x97')]['createPositionAt'](_0x239bbc[_0x2a32('0xb6')][_0x2a32('0x75')],_0x2a32('0x10'));this[_0x2a32('0x95')](_0x54673d,this[_0x2a32('0x97')]['createRange'](_0x238a20,_0x70874f[_0x2a32('0xb6')]));}}}}[_0x2a32('0x11e')](_0x18d969){for(const {suggestion:_0x4701d1,meta:_0x127a3d}of this[_0x2a32('0x68')](_0x18d969,'insertion')){if(!_0x127a3d[_0x2a32('0x9f')])continue;const _0x1ea8ad=_0x4701d1[_0x2a32('0x8f')]();for(const _0x4dfad4 of _0x1ea8ad)if(!_0x18d969[_0x2a32('0x1a')](_0x4dfad4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1279fa){const _0x401429=this[_0x2a32('0x3b')][_0x2a32('0x31')][_0x2a32('0x121')](_0x2a32('0xc5'))['getUser'](_0x1279fa);if(!_0x401429)throw new _0x5368fe(_0x2a32('0x12a'),this);return _0x401429;}[_0x2a32('0x2f')](_0x5e8c69){const _0x2abefb=this[_0x2a32('0x3b')]['plugins'][_0x2a32('0x121')](_0x2a32('0xc5')),_0x5e7766=_0x234eab(_0x2a32('0x1')+_0x5e8c69),_0x70e95b=_0x2abefb[_0x2a32('0x123')](_0x5e7766);return _0x70e95b||_0x2abefb[_0x2a32('0x10a')]({'id':_0x5e7766,'name':_0x5e8c69});}['_createSuggestion'](_0x2b0901,_0x327ec7,_0x1c46c9,_0x2177cd,_0x37b2ed){const _0x156cdd=this[_0x2a32('0xf2')](_0x2177cd),_0x383753=this[_0x2a32('0xf4')][_0x2a32('0x2b')](_0x2b0901,_0x327ec7,_0x1c46c9,_0x156cdd,_0x37b2ed,_0x23f622=>this[_0x2a32('0xc6')](_0x1c46c9,{'attributes':_0x23f622}));return this[_0x2a32('0x102')](_0x383753,_0x2a32('0xc9'),()=>{this[_0x2a32('0xc6')](_0x1c46c9,{'state':_0x2a32('0x12')});},{'priority':'high'}),this[_0x2a32('0x102')](_0x383753,_0x2a32('0xc1'),()=>{this[_0x2a32('0xc6')](_0x1c46c9,{'state':_0x2a32('0xec')});},{'priority':_0x2a32('0x7e')}),this[_0x2a32('0x25')][_0x2a32('0xbf')](_0x1c46c9,_0x383753),this['_suggestionState'][_0x2a32('0xbf')](_0x383753,_0x2a32('0xfb')),_0x383753;}[_0x2a32('0x93')](_0x3e0180){const _0x2de6cc=_0x3e0180[_0x2a32('0x2d')](':');return{'group':_0x2de6cc[0x0],'type':_0x2de6cc[0x1],'subType':_0x2de6cc['length']>=0x5?_0x2de6cc[0x2]:null,'id':_0x2de6cc[_0x2a32('0xa')]<0x5?_0x2de6cc[0x2]:_0x2de6cc[0x3],'authorId':_0x2de6cc['length']<0x5?_0x2de6cc[0x3]:_0x2de6cc[0x4],'markerCount':0x6==_0x2de6cc[_0x2a32('0xa')]?_0x2de6cc[0x5]:null};}[_0x2a32('0x6c')](_0x255acf,_0x593f87,_0xb229b7){const _0x793d37=_0x255acf[_0x2a32('0x77')](),_0x409186=_0x793d37[_0x2a32('0x22')],_0x462922=_0x793d37[_0x2a32('0xb6')];this[_0x2a32('0x95')](_0x255acf,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x409186,_0x593f87));const _0x3835a9=_0x161255(),_0x1e3870=_0x255acf[_0x2a32('0xb9')]['id'],_0x543656=_0x255acf[_0x2a32('0x10e')]+(_0x255acf[_0x2a32('0x113')]?':'+_0x255acf[_0x2a32('0x113')]:'');this['_setSuggestionData']({'id':_0x3835a9,'type':_0x543656,'createdAt':new Date(),'authorId':_0x1e3870,'originalSuggestionId':_0x255acf['id'],'attributes':_0x255acf[_0x2a32('0xbc')],'data':_0x255acf[_0x2a32('0x10f')]}),_0x2a32('0x3c')==_0x255acf[_0x2a32('0x10e')]&&(_0xb229b7=this[_0x2a32('0x97')]['createPositionBefore'](_0xb229b7['parent'])),this[_0x2a32('0x9')](_0x543656,_0x3835a9,_0x1e3870,this[_0x2a32('0x97')]['createRange'](_0xb229b7,_0x462922));}[_0x2a32('0x68')](_0x26a508,_0x43aab1=null){const _0x573efa=[],_0x4f114b=this[_0x2a32('0x97')][_0x2a32('0x12d')],_0xef8b3d=this['editor'][_0x2a32('0x31')][_0x2a32('0x121')]('Users')['me'];for(const _0x38404d of this['getSuggestions']())if(_0x38404d[_0x2a32('0xa9')]&&(!_0x43aab1||_0x38404d[_0x2a32('0x10e')]==_0x43aab1))for(const _0x3f5977 of _0x38404d[_0x2a32('0x8f')]()){const _0x510b91=_0x26a508[_0x2a32('0x22')][_0x2a32('0x96')](_0x3f5977[_0x2a32('0xb6')])||_0x26a508['end'][_0x2a32('0x96')](_0x3f5977[_0x2a32('0x22')]);if(_0x510b91||_0x26a508[_0x2a32('0x71')](_0x3f5977)){const _0x5f038f=_0x26a508[_0x2a32('0x5f')](_0x3f5977)&&Bt(_0x4f114b,_0x3f5977[_0x2a32('0x22')],_0x26a508),_0x43554c=_0x3f5977[_0x2a32('0x5f')](_0x26a508)&&Bt(_0x4f114b,_0x26a508[_0x2a32('0x22')],_0x3f5977);_0x573efa[_0x2a32('0x29')]({'suggestion':_0x38404d,'meta':{'isOwn':_0xef8b3d==_0x38404d[_0x2a32('0x92')],'isNextTo':_0x510b91,'isInsideObject':_0x5f038f,'containsRangeInObject':_0x43554c}});break;}}return _0x573efa;}[_0x2a32('0x9')](_0x261227,_0x49838a,_0x280166,_0x3dc740,_0x2e7b58){this[_0x2a32('0x97')][_0x2a32('0xf7')](_0x10a449=>{let _0x207b49='suggestion:'+_0x261227+':'+_0x49838a+':'+_0x280166;_0x2e7b58&&(_0x207b49=_0x207b49+':'+_0x2e7b58),_0x10a449[_0x2a32('0xbd')](_0x207b49,{'range':_0x3dc740,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2879d6){const _0x4cede0=_0x2879d6[_0x2a32('0xd0')],_0x409277=_0x2879d6[_0x2a32('0xc3')];_0x2879d6[_0x2a32('0xd0')]=null,null!=_0x4cede0&&(_0x4cede0['next']=null),_0x2879d6[_0x2a32('0xc3')]=null,null!=_0x409277&&(_0x409277[_0x2a32('0xd0')]=null),_0x2a32('0xf9')==this[_0x2a32('0x3d')][_0x2a32('0x121')](_0x2879d6)&&(this[_0x2a32('0x3d')][_0x2a32('0xbf')](_0x2879d6,_0x2a32('0x3e')),this[_0x2a32('0x87')](_0x2a32('0x134'),_0x2879d6,_0x4cede0,_0x409277));}[_0x2a32('0x53')](_0x4f0046){const _0x585c59=_0x4f0046['id'],_0x1a8f36=this[_0x2a32('0x4d')](_0x4f0046);if(this[_0x2a32('0x8a')]&&this[_0x2a32('0x8a')]['addSuggestion']){const _0x59640a=this['editor'][_0x2a32('0x31')][_0x2a32('0x121')]('PendingActions'),_0x29088f=_0x1a8f36['hasComments'],_0x5e713c=_0x1a8f36['subType']?_0x1a8f36['type']+':'+_0x1a8f36[_0x2a32('0x113')]:_0x1a8f36[_0x2a32('0x10e')],_0x53f512=this[_0x2a32('0x3b')][_0x2a32('0x125')],_0x395e06=_0x59640a[_0x2a32('0x2e')](_0x4842e8(_0x53f512,'PENDING_ACTION_SUGGESTION')),_0x36de74={'id':_0x585c59,'type':_0x5e713c,'hasComments':_0x29088f,'data':_0x4f0046[_0x2a32('0x10f')]||null,'originalSuggestionId':_0x4f0046['originalSuggestionId']||null,'attributes':_0x1a8f36['attributes']};this['_adapter'][_0x2a32('0x1c')](_0x36de74)[_0x2a32('0x115')](_0x1712cf=>{_0x1a8f36[_0x2a32('0x133')]=!0x0,_0x59640a[_0x2a32('0x5d')](_0x395e06),_0x1712cf&&_0x1712cf[_0x2a32('0xa2')]&&(this[_0x2a32('0x25')][_0x2a32('0x121')](_0x585c59)[_0x2a32('0xa2')]=_0x1712cf[_0x2a32('0xa2')]);})[_0x2a32('0x107')](_0x336e22=>{throw _0x2e9bb2('error-saving-suggestion-data-suggestion-discarded'),this[_0x2a32('0x3b')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1a8f36[_0x2a32('0xc1')]();}),_0x1a8f36[_0x2a32('0x81')](),this[_0x2a32('0x25')]['delete'](_0x1a8f36['id']),this['_suggestionState'][_0x2a32('0xd2')](_0x1a8f36),_0x336e22;});}return _0x1a8f36;}[_0x2a32('0xc6')](_0x1d5d38,_0xebac58){const _0x3b2b71=this[_0x2a32('0x3b')][_0x2a32('0x31')][_0x2a32('0x121')]('PendingActions'),_0x4b4f84=this['getSuggestion'](_0x1d5d38);if(this[_0x2a32('0x8a')]&&this[_0x2a32('0x8a')][_0x2a32('0xdf')]){if(_0x4b4f84[_0x2a32('0x133')]){const _0x345dac=_0x3b2b71['add'](_0x4842e8(this[_0x2a32('0x3b')][_0x2a32('0x125')],'PENDING_ACTION_SUGGESTION'));this[_0x2a32('0x8a')][_0x2a32('0xdf')](_0x1d5d38,_0xebac58)[_0x2a32('0x115')](()=>{_0x3b2b71['remove'](_0x345dac);});}else _0x4b4f84['on'](_0x2a32('0xda'),()=>{this[_0x2a32('0xc6')](_0x1d5d38,_0xebac58);});}}[_0x2a32('0x76')](_0x1bee80){if(!this[_0x2a32('0x8a')]||!this[_0x2a32('0x8a')]['getSuggestion'])throw new _0x5368fe(_0x2a32('0x6d'),this);return this[_0x2a32('0x8a')][_0x2a32('0x9d')](_0x1bee80);}[_0x2a32('0x8b')](_0x2e01f9){const {id:_0x2cba68,type:_0x4c2c7f,subType:_0x39b801,authorId:_0x3a2826}=this[_0x2a32('0x93')](_0x2e01f9),_0x184cdb=this[_0x2a32('0x25')]['get'](_0x2cba68)||this['_createSuggestion'](_0x4c2c7f,_0x39b801,_0x2cba68,_0x3a2826,{});switch(this['_checkSuggestionCorrectness'](_0x184cdb,_0x4c2c7f,_0x39b801,_0x3a2826),this[_0x2a32('0x3d')][_0x2a32('0x121')](_0x184cdb)){case _0x2a32('0xfb'):this[_0x2a32('0x76')](_0x2cba68)[_0x2a32('0x115')](_0xc112ac=>{let _0x339da6=Promise[_0x2a32('0x132')]();_0xc112ac['hasComments']&&(_0x339da6=this[_0x2a32('0x67')][_0x2a32('0xde')]({'channelId':this[_0x2a32('0x3b')][_0x2a32('0xb2')][_0x2a32('0x121')]('collaboration.channelId'),'threadId':_0x2cba68})),_0x339da6[_0x2a32('0x115')](()=>{this['addSuggestionData'](_0xc112ac)[_0x2a32('0x133')]=!0x0;});}),this['_suggestionState']['set'](_0x184cdb,_0x2a32('0xfa'));break;case _0x2a32('0x3e'):this[_0x2a32('0xc6')](_0x2cba68,{'state':_0x2a32('0x21')});case _0x2a32('0x83'):this[_0x2a32('0x3d')]['set'](_0x184cdb,_0x2a32('0xf9')),this[_0x2a32('0x87')](_0x2a32('0xa5'),_0x184cdb);break;case _0x2a32('0xf9'):this[_0x2a32('0x87')](_0x2a32('0x82'),_0x184cdb);}return _0x184cdb[_0x2a32('0x60')](_0x2e01f9),_0x184cdb;}[_0x2a32('0x24')](_0x28e373){const _0x397087=Array[_0x2a32('0x105')](_0x28e373)[_0x2a32('0x57')](_0x4bdf55=>!_0x4bdf55[_0x2a32('0xac')]),_0x14a11f=this[_0x2a32('0x7a')]({'skipNotAttached':!0x0})[_0x2a32('0x57')](_0x1832e8=>!_0x1832e8['isMultiRange']),_0x2e041d=_0x14a11f[_0x2a32('0x57')](_0x101a69=>!_0x28e373[_0x2a32('0xab')](_0x101a69)),_0x4bce31=new Map(_0x14a11f[_0x2a32('0xfe')](_0x19eb30=>[_0x19eb30,this['_suggestionFactory'][_0x2a32('0x12f')](_0x19eb30['type'],_0x19eb30[_0x2a32('0x113')],_0x2a32('0x110'))])),_0x4bd69e=new Map(_0x14a11f[_0x2a32('0xfe')](_0x11abb3=>[_0x11abb3,_0x11abb3[_0x2a32('0x77')]()])),_0x3c36b4=new Set(),_0x44610f=new Set();for(let _0x504d19=0x0;_0x504d19<_0x397087[_0x2a32('0xa')];_0x504d19++)_0x52af12(_0x397087[_0x504d19],_0x397087,_0x504d19+0x1);for(let _0x5900b8=0x0;_0x5900b8<_0x397087[_0x2a32('0xa')];_0x5900b8++)_0x52af12(_0x397087[_0x5900b8],_0x2e041d,0x0);for(let _0x27dcb1=0x0;_0x27dcb1<_0x397087['length'];_0x27dcb1++){const _0x35db0f=_0x397087[_0x27dcb1];!_0x44610f[_0x2a32('0xab')](_0x35db0f)&&_0x35db0f[_0x2a32('0xd0')]&&(_0x35db0f[_0x2a32('0xd0')]['next']===_0x35db0f&&(_0x35db0f[_0x2a32('0xd0')][_0x2a32('0xc3')]=null),_0x35db0f['previous']=null),!_0x3c36b4['has'](_0x35db0f)&&_0x35db0f[_0x2a32('0xc3')]&&(_0x35db0f[_0x2a32('0xc3')][_0x2a32('0xd0')]===_0x35db0f&&(_0x35db0f[_0x2a32('0xc3')][_0x2a32('0xd0')]=null),_0x35db0f[_0x2a32('0xc3')]=null);}function _0x52af12(_0x13afd0,_0x56c5db,_0x16d221){for(let _0x3dfdbb=_0x16d221;_0x3dfdbb<_0x56c5db[_0x2a32('0xa')];_0x3dfdbb++){const _0x10d9f1=_0x3435f2(_0x13afd0,_0x56c5db[_0x3dfdbb]);_0x10d9f1&&(_0x10d9f1[0x0][_0x2a32('0xc3')]=_0x10d9f1[0x1],_0x10d9f1[0x1][_0x2a32('0xd0')]=_0x10d9f1[0x0],_0x3c36b4[_0x2a32('0x2e')](_0x10d9f1[0x0]),_0x44610f[_0x2a32('0x2e')](_0x10d9f1[0x1]));}}function _0x3435f2(_0x4abc01,_0x39099b){if(_0x4abc01[_0x2a32('0x92')]['id']!==_0x39099b[_0x2a32('0x92')]['id'])return null;const _0x4ed443=_0x4bce31['get'](_0x4abc01)(_0x4abc01,_0x39099b,_0x4bd69e['get'](_0x4abc01),_0x4bd69e[_0x2a32('0x121')](_0x39099b));if(!_0x4ed443)return null;return _0x4bce31['get'](_0x39099b)(_0x4abc01,_0x39099b,_0x4bd69e[_0x2a32('0x121')](_0x4abc01),_0x4bd69e['get'](_0x39099b))?_0x4ed443[0x1][_0x2a32('0xb3')]&&_0x4ed443[0x1][_0x2a32('0xb3')]['length']?null:_0x4ed443:null;}}[_0x2a32('0x131')](_0xf9dc12){const _0x587e28=Array['from'](_0xf9dc12),_0x2aa335=this[_0x2a32('0x7a')]({'skipNotAttached':!0x0}),_0x4a0e86=_0x2aa335[_0x2a32('0x57')](_0x331902=>!_0xf9dc12[_0x2a32('0xab')](_0x331902)),_0x5afe2d=new Map(_0x587e28[_0x2a32('0xfe')](_0x4568e2=>[_0x4568e2,this[_0x2a32('0xf4')][_0x2a32('0x12f')](_0x4568e2[_0x2a32('0x10e')],_0x4568e2['subType'],_0x2a32('0x103'))])),_0x4a153c=new Map(_0x2aa335['map'](_0x552627=>[_0x552627,_0x552627[_0x2a32('0x8f')]()]));for(let _0x626830=0x0;_0x626830<_0x587e28[_0x2a32('0xa')];_0x626830++){if(_0x1a6ae7(this,_0x587e28[_0x626830],_0x587e28,_0x626830+0x1))return!0x0;}for(let _0x33f64f=0x0;_0x33f64f<_0x587e28[_0x2a32('0xa')];_0x33f64f++){if(_0x1a6ae7(this,_0x587e28[_0x33f64f],_0x4a0e86,0x0))return!0x0;}return!0x1;function _0x1a6ae7(_0x4c0f53,_0xd8f894,_0x3ce35c,_0x34fb2d){for(let _0x5700cf=_0x34fb2d;_0x5700cf<_0x3ce35c['length'];_0x5700cf++){const _0x574a27=_0x3ce35c[_0x5700cf];if(_0x574a27[_0x2a32('0x10e')]!==_0xd8f894[_0x2a32('0x10e')]||_0x574a27['author']['id']!==_0xd8f894['author']['id']||_0x574a27[_0x2a32('0x113')]!==_0xd8f894['subType'])continue;const _0x198b57=_0x5afe2d['get'](_0xd8f894),_0x279df1=_0x4a153c['get'](_0xd8f894),_0x2f92f7=_0x4a153c['get'](_0x574a27),_0x3b5024=_0xd8f894[_0x2a32('0xb3')]&&_0xd8f894['commentThread'][_0x2a32('0xa')],_0x8154c5=_0x574a27[_0x2a32('0xb3')]&&_0x574a27[_0x2a32('0xb3')][_0x2a32('0xa')];if(!_0x3b5024&&_0x198b57(_0x2f92f7,_0x279df1))return _0x4c0f53[_0x2a32('0x33')](_0x574a27,_0xd8f894),_0x4a153c['delete'](_0xd8f894),!0x0;if(!_0x8154c5&&_0x198b57(_0x279df1,_0x2f92f7))return _0x4c0f53[_0x2a32('0x33')](_0xd8f894,_0x574a27),_0x4a153c[_0x2a32('0xd2')](_0x574a27),!0x0;}return!0x1;}}[_0x2a32('0x33')](_0x49603,_0x1d3d47){if(_0x49603[_0x2a32('0xac')])for(const _0x437a26 of _0x1d3d47[_0x2a32('0x8f')]())_0x49603[_0x2a32('0xd9')](_0x437a26);else{const _0x4884c9=_0x1d3d47[_0x2a32('0x77')]()[_0x2a32('0xb6')];this[_0x2a32('0x95')](_0x49603,this[_0x2a32('0x97')]['createRange'](_0x49603['getFirstRange']()['start'],_0x4884c9));}_0x1d3d47[_0x2a32('0xe7')]();}}class Dt{constructor(_0x4362a4){this[_0x2a32('0x3')]=_0x4362a4,this['_model']=_0x4362a4[_0x2a32('0xc')],this[_0x2a32('0x47')]=new Map(),this[_0x2a32('0xf8')]=new Map(),this['_registerDefaultCallbacks']();}[_0x2a32('0x2b')](_0x314fac,_0x4977bb,_0x33571b,_0x5abaa9,_0x252a46,_0x16b4be){return new _0x115070(this[_0x2a32('0x97')],{'type':_0x314fac,'subType':_0x4977bb,'id':_0x33571b,'author':_0x5abaa9,'creator':_0x5abaa9,'attributes':_0x252a46,'onAttributesChange':_0x16b4be,'onAccept':(..._0xaa1753)=>this[_0x2a32('0x12f')](_0x314fac,_0x4977bb,'accept')(..._0xaa1753),'onDiscard':(..._0x550d5a)=>this[_0x2a32('0x12f')](_0x314fac,_0x4977bb,_0x2a32('0xc1'))(..._0x550d5a)});}[_0x2a32('0x38')](_0x58ccf4,_0x3b51a7,_0x16fbd5,_0x24c866){const _0x51b0e2=_0x58ccf4+':'+_0x3b51a7+':'+_0x16fbd5;this[_0x2a32('0x47')][_0x2a32('0xbf')](_0x51b0e2,_0x24c866);}['getSuggestionCallback'](_0x11778f,_0x5267f1,_0x5e8906){const _0x423343=_0x11778f+':'+_0x5267f1+':'+_0x5e8906;return this[_0x2a32('0x47')][_0x2a32('0x121')](_0x423343)||this[_0x2a32('0xf8')][_0x2a32('0x121')](_0x11778f+':'+_0x5e8906);}[_0x2a32('0x7')](){const _0x401526=()=>{},_0x37c5e4=_0x423548=>{_0x423548[_0x2a32('0x2')]((_0x223a48,_0x29d6a8)=>_0x223a48[_0x2a32('0x22')][_0x2a32('0x72')](_0x29d6a8[_0x2a32('0x22')])?0x1:-0x1),this[_0x2a32('0x97')][_0x2a32('0xf7')](_0x1fcec7=>{for(const _0xaf5a55 of _0x423548){let _0x33492c;_0x33492c=_0xaf5a55[_0x2a32('0xb6')][_0x2a32('0xf3')]&&_0xaf5a55['end']['parent']==_0xaf5a55['start'][_0x2a32('0xcf')]?_0x1fcec7['createSelection'](_0xaf5a55['start'][_0x2a32('0xcf')],'on'):_0x1fcec7[_0x2a32('0xe5')](_0xaf5a55),this['_model']['deleteContent'](_0x33492c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x783220=(_0x2a3820,_0x29e790)=>{this['_model'][_0x2a32('0xf7')](_0xb52b8=>{const {commandName:_0x32cd97,commandParams:_0x3110b2=[]}=_0x29e790,_0x193e29=_0x2a3820[_0x2a32('0xfe')](_0x4317dd=>(_t(_0x4317dd)&&(_0x4317dd=this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x4317dd[_0x2a32('0xb6')])),_0x4317dd))['filter'](_0x4a5b7f=>_0x2a32('0xdd')!==_0x4a5b7f['root'][_0x2a32('0xe9')]);if(_0x193e29['length']<0x1)return;const _0x189275=Array[_0x2a32('0x105')](this[_0x2a32('0x97')][_0x2a32('0xd8')][_0x2a32('0xe6')][_0x2a32('0x8f')]())[_0x2a32('0xfe')](_0x567b59=>_0x5ba02d['fromRange'](_0x567b59));_0xb52b8[_0x2a32('0xf0')](_0x193e29);for(const _0x69289f of this[_0x2a32('0x3')][_0x2a32('0x90')]['commands']())_0x69289f[_0x2a32('0xcc')]();_0x3110b2[_0x2a32('0x29')]({'forceDefaultExecution':!0x0}),this[_0x2a32('0x3')]['execute'](_0x32cd97,..._0x3110b2);const _0x9a4b28=_0x189275[_0x2a32('0x57')](_0x24774e=>_0x2a32('0xdd')!=_0x24774e[_0x2a32('0x12e')]['rootName']);_0x9a4b28[_0x2a32('0xa')]>0x0&&_0xb52b8['setSelection'](_0x9a4b28);for(const _0x2d96d2 of _0x189275)_0x2d96d2[_0x2a32('0x74')]();});},_0x2f33b2=(_0x41157c,_0x5c877b)=>0x1==_0x41157c[_0x2a32('0xa')]&&0x1==_0x5c877b['length']&&_0x41157c[0x0]['end'][_0x2a32('0x96')](_0x5c877b[0x0][_0x2a32('0x22')]),_0x55a8ad=(_0x4795d2,_0x2ce67f,_0x199a68,_0x201708)=>xt(_0x4795d2,_0x2ce67f,_0x199a68,_0x201708,this[_0x2a32('0x97')])?[_0x4795d2,_0x2ce67f]:xt(_0x2ce67f,_0x4795d2,_0x201708,_0x199a68,this[_0x2a32('0x97')])?[_0x2ce67f,_0x4795d2]:null;this[_0x2a32('0xf8')][_0x2a32('0xbf')](_0x2a32('0x89'),_0x401526),this['_defaultCallbacks'][_0x2a32('0xbf')]('insertion:discard',_0x37c5e4),this[_0x2a32('0xf8')][_0x2a32('0xbf')]('insertion:join',_0x2f33b2),this['_defaultCallbacks']['set'](_0x2a32('0xb8'),_0x55a8ad),this[_0x2a32('0xf8')][_0x2a32('0xbf')]('deletion:accept',_0x37c5e4),this[_0x2a32('0xf8')][_0x2a32('0xbf')](_0x2a32('0xee'),_0x401526),this[_0x2a32('0xf8')][_0x2a32('0xbf')](_0x2a32('0x12c'),_0x2f33b2),this['_defaultCallbacks'][_0x2a32('0xbf')]('deletion:chain',_0x55a8ad),this['_defaultCallbacks'][_0x2a32('0xbf')](_0x2a32('0x91'),_0x783220),this[_0x2a32('0xf8')]['set']('formatInline:discard',_0x401526),this[_0x2a32('0xf8')][_0x2a32('0xbf')]('formatInline:join',_0x2f33b2),this['_defaultCallbacks'][_0x2a32('0xbf')]('formatInline:chain',_0x401526),this['_defaultCallbacks'][_0x2a32('0xbf')](_0x2a32('0x101'),_0x783220),this['_defaultCallbacks'][_0x2a32('0xbf')]('formatBlock:discard',_0x401526),this[_0x2a32('0xf8')][_0x2a32('0xbf')](_0x2a32('0x6'),_0x2f33b2),this[_0x2a32('0xf8')][_0x2a32('0xbf')](_0x2a32('0x6b'),_0x401526);}}function Bt(_0x4ddf8c,_0x204fc4,_0x368ea2){for(const _0x157cf6 of _0x204fc4[_0x2a32('0x75')][_0x2a32('0x112')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x157cf6['root']==_0x157cf6)return!0x1;if(!_0x368ea2[_0x2a32('0x114')](_0x157cf6))return!0x1;if(_0x4ddf8c[_0x2a32('0x7d')](_0x157cf6)||_0x4ddf8c[_0x2a32('0x70')](_0x157cf6))return!0x0;}return!0x1;}function _t(_0x3e41d0){return _0x3e41d0[_0x2a32('0xb6')][_0x2a32('0x75')]==_0x3e41d0['start']['nodeAfter']&&_0x3e41d0[_0x2a32('0xb6')][_0x2a32('0x28')];}function Mt(_0x180fa3,_0x6f7ae4,_0x5ca492,_0x43b754){const _0x1421e6=_0x3e39ae=>!_0x3e39ae[_0x2a32('0xaa')]['is'](_0x2a32('0x15'))&&!_0x43b754[_0x2a32('0x7d')](_0x3e39ae[_0x2a32('0xaa')]),_0x14874f=_0x180fa3[_0x2a32('0x22')][_0x2a32('0x130')](_0x1421e6),_0x5b557b=_0x180fa3[_0x2a32('0xb6')][_0x2a32('0x130')](_0x1421e6,{'direction':_0x2a32('0x69')});return(!_0x180fa3[_0x2a32('0x22')][_0x2a32('0x96')](_0x14874f)||!_0x180fa3['end'][_0x2a32('0x96')](_0x5b557b))&&(_0x14874f[_0x2a32('0x72')](_0x5b557b)?_0x5ca492['updateMarker'](_0x6f7ae4,{'range':_0x5ca492[_0x2a32('0x10c')](_0x14874f,_0x5b557b)}):_0x5ca492[_0x2a32('0x5c')](_0x6f7ae4),!0x0);}function $t(_0x3fcc73){return _0x234eab(_0x3fcc73);}function Nt(_0x3fd1ec){const _0x43aec7=_0x3fd1ec['start']['nodeAfter'];return _0x43aec7&&_0x43aec7['is'](_0x2a32('0x129'));}function Rt(_0x533441,_0x69ce3d){const _0x1368fc=_0x69ce3d[_0x2a32('0x12d')][_0x2a32('0x7d')](_0x533441)||_0x69ce3d[_0x2a32('0x12d')][_0x2a32('0x36')](_0x533441);return _0x69ce3d[_0x2a32('0x10c')](_0x69ce3d[_0x2a32('0x1b')](_0x533441,_0x2a32('0xbb')),_0x1368fc?_0x69ce3d[_0x2a32('0x43')](_0x533441):_0x69ce3d[_0x2a32('0x1b')](_0x533441,_0x2a32('0xb6')));}function xt(_0x3e5eef,_0x5968a1,_0x2e8053,_0x25ed90,_0x11cac7){if(_0x2e8053[_0x2a32('0xb6')][_0x2a32('0x96')](_0x25ed90[_0x2a32('0x22')]))return!0x0;if(_0x3e5eef[_0x2a32('0x10e')]!=_0x5968a1[_0x2a32('0x10e')])return!0x1;if(!_0x2e8053[_0x2a32('0xb6')]['isTouching'](_0x25ed90['start']))return!0x1;const _0x58e626=_0x11cac7['createRange'](_0x2e8053[_0x2a32('0xb6')],_0x25ed90[_0x2a32('0x22')])[_0x2a32('0x2a')]();for(const _0x3bde19 of _0x58e626)if([_0x2a32('0xca'),_0x2a32('0xce')]['includes'](_0x3bde19[_0x2a32('0x10e')])&&_0x11cac7[_0x2a32('0x12d')][_0x2a32('0x70')](_0x3bde19[_0x2a32('0xaa')]))return!0x1;return!0x0;}
23
+ const _0x3ba9=['isCollapsed','getChanges','always','_setSuggestionRange','markDeletion','data-suggestion','editing','start','_getSuggestionData','discardAllSuggestions','addMarker:suggestion:formatBlock','_editor','isAtEnd','ck-suggestion-marker','howMany','value','get','previous','backward','formatInline','consumable','containerElement','mapper','plugins','addHighlight','dataDowncast','track-changes-command-not-found','deletion:chain','isAfter','attributes','trackChangesCommand','containsRange','ck-suggestion-marker--active','createSelection','normal','removeMarker','getSuggestions','ck-suggestion-marker-formatBlock','error-saving-suggestion-data-suggestion-discarded','createPositionAt','addMarker:suggestion','getCustomProperty','_addThreadToSuggestion','markInsertion','hasComments','rethrowUnexpectedError','insertion','discard','widget','suggestionChanged','_suggestionState','push','_commentsRepository','_suggestionFactory','options','head','stop','notReady','getMultiRangeId','PendingActions','splice','_onDiscard','clear','_checkSuggestionCorrectness','markMultiRangeInsertion','map','isBlock','setAttribute','insertion:','oldRange','consume','isAtStart','batch','addUser','markMultiRangeBlockFormat','_registerDefaultCallbacks','isOwn','move','createRangeIn','insert','formatBlock:','next','acceptAllSuggestions','registerCustomCallback','deleteContent','define','nodeAfter','isMultiRange','_joinWithAdjacentSuggestions','ck-suggestion-marker-','formatBlock','getDifference','accept','skipNestingCheck','length','formatInline:accept','isObject','toJSON','adapter','CommentsRepository','config','track-changes-suggestion-not-found','ready','setSelection','markerNameToElements','insertion:join','size','registerPostFixer','fire','markMultiRangeDeletion','values','formatBlock:join','multipleBlocks','highest','stopListening','element','getMarkers','acceptSelectedSuggestions','root','forceDefaultExecution','editor','getItems','markerToHighlight','containsRangeInObject','never','isBefore','_getExternalAuthor','addMarkerName','newRange','formatBlock:accept','markerToData','getChangedMarkers','markerName','addComment','isEqual','add','_trackFormatChanges','isInContent','conversion','unbindElementFromMarkerName','commands','addClass','createdAt','end','detach','_model','_customCallbacks','change:activeMarkers','activeMarkers','removeClass','removeComment','getIntersection','formatGroupId','isTouching','change','bindElementToMarker','toViewElement','formatBlock:discard','set','subType','track-changes-user-not-found','isLimit','updateMarker','schema','_descriptionFactory','suggestion','addMarker','getShiftedBy','_refreshSuggestionsChain','PENDING_ACTION_SUGGESTION','getLastMatchingPosition','execute','getAncestors','_handleNewSuggestionMarker','split','return','discardSuggestion','filter','rejected','getRanges','markInlineFormat','acceptSuggestion','catch','addRange','authoredAt','model','remove','$graveyard','_saved','_addSuggestionMarker','moveTargetPosition','enableReadOnlyMode','change:data','track-changes-adapter-missing-getsuggestion','unbind','containsPosition','_setSuggestionData','elementStart','formatBlock:chain','deletion','editingDowncast','isNextTo','collaboration.channelId','targetPosition','delete','_defaultCallbacks','getFirstRange','then','commentThread','showSuggestionHighlights','_rangeIsInLocalUserInsertion','forward','lowest','isExternal','selection','_adapter','removed','elementEnd','upcast','listenTo','Users','getAttribute','for','createRange','documentSelection','addCommentThread','_splitMarkerName','_updateSuggestionData','markerReady','_cutOutSuggestionMarker','getSuggestion','TrackChangesEditing','accepted','suggestion:','isUndo','some','isIntersectingWithRange','position','@external','dataToMarker','fetchCommentThread','fromRange','getUser','trackChanges.mergeNestedSuggestions','pluginName','_createSuggestion','deletion:accept','trackChanges','elementToElement','init','authorName','addSuggestionData','deletion:','enqueueChange','_findSuggestions','substr','parent','from','enableCommand','dataReady','marker-count','$textProxy','_isForcedDefaultExecutionBlock','range','high','insertContent','name','type','getFirstMarker','writer','differ','rootName','insertion:discard','locale','has','getRange','suggestionUnloaded','external:','multi','getSuggestionCallback','commandName','isSelectable','_joinSuggestions','chain','after','_getAuthorFromId','discardSelectedSuggestions','low','item','join','document','applyOperation','insertion:chain','nodeBefore','creator','isDocumentOperation','formatInline:chain','_mergeNestedSuggestions','group','markers','createPositionBefore','_removeSuggestion','_enabledCommands','data','includes','suggestionLoaded','getNearestSelectionRange','author','reconvertMarker','insertion:accept','getAllAdjacentSuggestions','every','updateSuggestion','removeMarkers','_suggestions','isInsideObject'];(function(_0x4c21d8,_0x3ba9de){const _0x4c52a9=function(_0xe8e0d0){while(--_0xe8e0d0){_0x4c21d8['push'](_0x4c21d8['shift']());}};_0x4c52a9(++_0x3ba9de);}(_0x3ba9,0x1a4));const _0x4c52=function(_0x4c21d8,_0x3ba9de){_0x4c21d8=_0x4c21d8-0x0;let _0x4c52a9=_0x3ba9[_0x4c21d8];return _0x4c52a9;};import{Plugin as _0x2278de,PendingActions as _0x42c456}from'ckeditor5/src/core';import{LiveRange as _0x10252d}from'ckeditor5/src/engine';import{CKEditorError as _0x1b57cc,uid as _0x1e91a8,priorities as _0xdb9c03,logWarning as _0x111092}from'ckeditor5/src/utils';import{toWidget as _0x58eae2}from'ckeditor5/src/widget';import{Users as _0x59def2,hashObject as _0x24249f}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a261f from'./commands/trackchangescommand';import _0xdf3be2 from'./commands/acceptsuggestioncommand';import _0x2a530f from'./commands/discardsuggestioncommand';import _0x596ff8 from'./commands/executeonallsuggestionscommand';import _0x289e98 from'./commands/executeonselectedsuggestionscommand';import _0x24016f from'./suggestion';import _0x2f3657 from'./suggestiondescriptionfactory';import _0x804455 from'./integrations/alignment';import _0x55a5c5 from'./integrations/basicstyles';import _0x152a8f from'./integrations/blockquote';import _0x5a9363 from'./integrations/ckbox';import _0x3ac387 from'./integrations/codeblock';import _0x51ae5e from'./integrations/comments';import _0x4ee884 from'./integrations/deletecommand';import _0x156c0f from'./integrations/documentlist';import _0x5842a7 from'./integrations/entercommand';import _0x55f160 from'./integrations/findandreplace';import _0x42bd03 from'./integrations/font';import _0x60438 from'./integrations/formatpainter';import _0x4f47b9 from'./integrations/heading';import _0x4c875c from'./integrations/highlight';import _0x5e6a32 from'./integrations/horizontalline';import _0x22a34f from'./integrations/htmlembed';import _0x42c5da from'./integrations/image';import _0xf36e1a from'./integrations/imagereplace';import _0x2d0ede from'./integrations/importword';import _0xa78eac from'./integrations/indent';import _0x3d1095 from'./integrations/inputcommand';import _0x2d3810 from'./integrations/link';import _0x487e77 from'./integrations/list';import _0x2da241 from'./integrations/listproperties';import _0x562b8b from'./integrations/mediaembed';import _0x197e76 from'./integrations/mention';import _0x5f2e9e from'./integrations/pagebreak';import _0x42d554 from'./integrations/paragraph';import _0x498bc6 from'./integrations/removeformat';import _0x45cddb from'./integrations/restrictededitingmode';import _0x372bc2 from'./integrations/shiftentercommand';import _0x1fe1a6 from'./integrations/standardeditingmode';import _0x4d709 from'./integrations/style';import _0x1e8fa9 from'./integrations/table';import _0x427cca from'./integrations/tablemergesplit';import _0xcfaffd from'./integrations/tableheadings';import _0x16251a from'./integrations/tableclipboard';import _0x194040 from'./integrations/tablecolumnresize';import _0x33ed61 from'./integrations/template';import _0x559816 from'./integrations/tableofcontents';import _0x5166b4 from'./integrations/title';import _0x12e4df from'./integrations/undo';import{getTranslation as _0x495697}from'./utils/common-translations';import _0x40e331 from'./integrations/tablecaption';import _0x3de438 from'./integrations/documentlistproperties';import _0x366f03 from'./integrations/tableproperties';export default class p extends _0x2278de{static get['requires'](){return[_0x4c52('0x137'),_0x59def2,_0x42c456,_0x804455,_0x55a5c5,_0x152a8f,_0x5a9363,_0x3ac387,_0x51ae5e,_0x4ee884,_0x156c0f,_0x3de438,_0x5842a7,_0x55f160,_0x42bd03,_0x60438,_0x4f47b9,_0x4c875c,_0x5e6a32,_0x22a34f,_0x42c5da,_0xf36e1a,_0x2d0ede,_0xa78eac,_0x3d1095,_0x2d3810,_0x487e77,_0x2da241,_0x562b8b,_0x197e76,_0x5f2e9e,_0x42d554,_0x498bc6,_0x45cddb,_0x372bc2,_0x1fe1a6,_0x4d709,_0x1e8fa9,_0x427cca,_0xcfaffd,_0x40e331,_0x16251a,_0x194040,_0x559816,_0x366f03,_0x33ed61,_0x5166b4,_0x12e4df];}static get[_0x4c52('0x8c')](){return _0x4c52('0x7f');}constructor(_0x46b947){function _0x2191d0(_0x9bf31e){return _0x9bf31e[_0x4c52('0x115')](_0x1f5a40=>String['fromCharCode'](_0x1f5a40))[_0x4c52('0xb9')]('');}super(_0x46b947),this['set']('activeMarkers',[]),this['on'](_0x4c52('0x2b'),(_0x4379a9,_0x4bbb2a,_0x1a43a5,_0x21c4be)=>{this[_0x4c52('0x29')][_0x4c52('0x32')](()=>{for(const _0x20389d of[..._0x21c4be,..._0x1a43a5])this[_0x4c52('0x29')][_0x4c52('0xc3')][_0x4c52('0xaa')](_0x20389d)&&_0x46b947[_0x4c52('0xda')][_0x4c52('0xcc')](_0x20389d);});}),this[_0x4c52('0x3c')]=new _0x2f3657(this[_0x4c52('0x10')][_0x4c52('0x51')][_0x4c52('0x3b')],this[_0x4c52('0x10')]['locale']),this[_0x4c52('0x6f')]=null,this[_0x4c52('0x109')]=new Dt(this[_0x4c52('0x10')]),this['_suggestions']=new Map(),this[_0x4c52('0x108')]=_0x46b947[_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x137')),this[_0x4c52('0xc6')]=new Set(),this['_model']=this['editor'][_0x4c52('0x51')],this['_suggestionState']=new WeakMap(),this[_0x4c52('0x9e')]=!0x1,_0x46b947[_0x4c52('0x138')]['define']('trackChanges.trackFormatChanges','default'),this[_0x4c52('0x20')]=_0x46b947[_0x4c52('0x138')][_0x4c52('0xe4')]('trackChanges.trackFormatChanges'),_0x46b947['config'][_0x4c52('0x129')](_0x4c52('0x8b'),!0x0),this['_mergeNestedSuggestions']=_0x46b947[_0x4c52('0x138')][_0x4c52('0xe4')](_0x4c52('0x8b')),this[_0x4c52('0xf2')]=new _0x4a261f(_0x46b947,this[_0x4c52('0xc6')]),this[_0x2191d0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2191d0([0x34,0x30,0x34,0x36,0x31,0x36,0x31,0x34]);}[_0x4c52('0x91')](){const _0x59c665=this[_0x4c52('0x10')];_0x59c665['conversion'][_0x4c52('0x76')]('editingDowncast')[_0x4c52('0x12')]({'model':_0x4c52('0x3d'),'view':_0x30d6fd=>{const {id:_0x3cf57a,type:_0x49faeb}=this[_0x4c52('0x7a')](_0x30d6fd[_0x4c52('0x1c')]),_0x1cb8bc=[_0x4c52('0xe1'),_0x4c52('0x12d')+_0x49faeb];let _0x9a292a=0xbb8;return this[_0x4c52('0x2c')][_0x4c52('0xc8')](_0x30d6fd[_0x4c52('0x1c')])&&(_0x1cb8bc[_0x4c52('0x107')](_0x4c52('0xf4')),_0x9a292a=0xbc2),_0x4c52('0x5f')==_0x49faeb&&(_0x9a292a+=0x5),{'classes':_0x1cb8bc,'attributes':{'data-suggestion':_0x3cf57a},'priority':_0x9a292a};}}),_0x59c665[_0x4c52('0x22')]['for'](_0x4c52('0xed'))[_0x4c52('0x1f')](_0x5cf451=>{_0x5cf451['on'](_0x4c52('0xfc'),(_0x20b112,_0x1f65f7,_0x16bdf1)=>{if(!_0x16bdf1[_0x4c52('0x10a')]['showSuggestionHighlights'])return;const _0x430b93=_0x1f65f7[_0x4c52('0xb8')];if(!_0x430b93)return;const _0x95a1b8=_0x16bdf1[_0x4c52('0xea')][_0x4c52('0x34')](_0x430b93);_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')][_0x4c52('0x134')](_0x430b93)&&_0x95a1b8&&!_0x95a1b8[_0x4c52('0xfd')](_0x4c52('0x104'))&&_0x95a1b8['is'](_0x4c52('0xe9'))&&_0x58eae2(_0x95a1b8,_0x16bdf1['writer']);},{'priority':_0x4c52('0xa0')});}),_0x59c665['conversion'][_0x4c52('0x76')](_0x4c52('0xed'))[_0x4c52('0x12')]({'model':'suggestion','view':(_0x3ec832,_0x3d3cdd)=>{if(!_0x3d3cdd[_0x4c52('0x10a')][_0x4c52('0x69')])return null;const {type:_0x1aef35}=this['_splitMarkerName'](_0x3ec832[_0x4c52('0x1c')]);return{'classes':[_0x4c52('0xe1'),_0x4c52('0x12d')+_0x1aef35],'priority':0xbb8};}});const _0x198aac=({showActiveMarkers:_0x1ca819=!0x0}={})=>(_0x1852d4,_0x572ccc,_0x266638)=>{if(!_0x572ccc[_0x4c52('0xb8')])return;if(_0x572ccc[_0x4c52('0xb8')]['is']('selection'))return void _0x266638[_0x4c52('0xe8')]['consume'](_0x572ccc[_0x4c52('0xb8')],_0x1852d4[_0x4c52('0xa2')]);const _0x4e3e96=_0x266638[_0x4c52('0xea')][_0x4c52('0x34')](_0x572ccc[_0x4c52('0xb8')]);if(!(_0x572ccc[_0x4c52('0xb8')]['is'](_0x4c52('0xb'))&&_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')][_0x4c52('0x116')](_0x572ccc[_0x4c52('0xb8')])&&!_0x4e3e96[_0x4c52('0xfd')](_0x4c52('0xec'))))return;const {id:_0x478422}=this[_0x4c52('0x7a')](_0x572ccc[_0x4c52('0x1c')]);_0x266638['writer']['addClass']([_0x4c52('0xe1'),_0x4c52('0xf9')],_0x4e3e96),_0x266638[_0x4c52('0xa5')][_0x4c52('0x117')](_0x4c52('0xd9'),_0x478422,_0x4e3e96),_0x266638[_0x4c52('0xea')][_0x4c52('0x33')](_0x4e3e96,_0x572ccc[_0x4c52('0x1c')]),_0x1ca819&&(this[_0x4c52('0x2c')]['includes'](_0x572ccc[_0x4c52('0x1c')])?_0x266638['writer'][_0x4c52('0x25')](_0x4c52('0xf4'),_0x4e3e96):_0x266638['writer'][_0x4c52('0x2d')]('ck-suggestion-marker--active',_0x4e3e96));for(const _0x5f1585 of _0x59c665['model'][_0x4c52('0x122')](_0x572ccc['item'])[_0x4c52('0x11')]())_0x266638[_0x4c52('0xe8')][_0x4c52('0x11a')](_0x5f1585,_0x1852d4['name']);_0x266638[_0x4c52('0xe8')]['consume'](_0x572ccc[_0x4c52('0xb8')],_0x1852d4[_0x4c52('0xa2')]);};_0x59c665[_0x4c52('0x22')]['for'](_0x4c52('0xed'))[_0x4c52('0x1f')](_0x13af6c=>{_0x13af6c['on'](_0x4c52('0xde'),(_0x360ce6,_0x2a1527,_0x385430)=>{_0x385430['options']['showSuggestionHighlights']&&_0x198aac({'showActiveMarkers':!0x1})(_0x360ce6,_0x2a1527,_0x385430);},{'priority':_0x4c52('0x9')});}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0xed'))[_0x4c52('0x1a')]({'model':'suggestion','view':(_0x2540a6,_0x36e5f2)=>_0x36e5f2['options'][_0x4c52('0x69')]?null:{'group':'suggestion','name':_0x2540a6[_0x4c52('0x97')](0xb)}}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0x72'))[_0x4c52('0x90')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x196b7d,{writer:_0x152dc0})=>{let _0x4e84f0=_0x4c52('0x81')+_0x196b7d[_0x4c52('0x75')]('suggestion-type')+':'+_0x196b7d[_0x4c52('0x75')]('id');return _0x196b7d[_0x4c52('0x75')](_0x4c52('0x9c'))&&(_0x4e84f0+=':'+_0x196b7d[_0x4c52('0x75')](_0x4c52('0x9c'))),_0x152dc0['createElement']('$marker',{'data-name':_0x4e84f0});}}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0x72'))[_0x4c52('0x87')]({'view':_0x4c52('0x3d')}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0x60'))[_0x4c52('0x1f')](_0x1a18bb=>{_0x1a18bb['on'](_0x4c52('0xde'),_0x198aac(),{'priority':_0x4c52('0xa0')});}),_0x59c665['conversion'][_0x4c52('0x76')]('editingDowncast')[_0x4c52('0x1f')](_0x5e0884=>{_0x5e0884['on']('removeMarker:suggestion:formatBlock',(_0x381acf,_0xbc38da,_0x114fcd)=>{const _0x2026f7=_0x114fcd[_0x4c52('0xea')][_0x4c52('0x0')](_0xbc38da[_0x4c52('0x1c')]);if(_0x2026f7)for(const _0x454197 of _0x2026f7)_0x454197[_0x4c52('0xfd')](_0x4c52('0xec'))||(_0x114fcd['writer'][_0x4c52('0x2d')]([_0x4c52('0xe1'),_0x4c52('0xf9'),_0x4c52('0xf4')],_0x454197),_0x114fcd[_0x4c52('0xa5')]['removeAttribute']('data-suggestion',_0x454197),_0x114fcd[_0x4c52('0xea')][_0x4c52('0x23')](_0x454197,_0xbc38da[_0x4c52('0x1c')]));},{'priority':'high'});}),_0x59c665[_0x4c52('0x51')]['document'][_0x4c52('0x3')](_0x167b0c=>{let _0x5445dc=!0x1;const _0x4091d3=Array[_0x4c52('0x99')](_0x59c665[_0x4c52('0x51')][_0x4c52('0xba')][_0x4c52('0xa6')][_0x4c52('0x1b')]()),_0x375df8=new Set();for(const {name:_0x3fa574,data:_0x45a153}of _0x4091d3){const {group:_0x118995,type:_0x3c3c8b,id:_0x5587c3}=this[_0x4c52('0x7a')](_0x3fa574);if(_0x4c52('0x3d')!==_0x118995)continue;const _0x35bbc1=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x5587c3);if(null!=_0x45a153[_0x4c52('0x18')]){_0x4c52('0xe7')==_0x3c3c8b&&(_0x5445dc=_0x5445dc||Mt(_0x45a153[_0x4c52('0x18')],_0x3fa574,_0x167b0c,_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')]));if(_0x45a153[_0x4c52('0x18')]['isCollapsed']||_0x4c52('0x53')==_0x45a153[_0x4c52('0x18')][_0x4c52('0xe')][_0x4c52('0xa7')]||_0x4c52('0x12e')==_0x3c3c8b&&!Nt(_0x45a153[_0x4c52('0x18')])||_0x4c52('0x5f')==_0x3c3c8b&&!(!_t(_0x57d588=_0x45a153[_0x4c52('0x18')])&&!function(_0xa44e9b){return _0xa44e9b[_0x4c52('0xdb')]['parent']==_0xa44e9b[_0x4c52('0x27')][_0x4c52('0xbd')]&&_0xa44e9b[_0x4c52('0xdb')][_0x4c52('0xe0')];}(_0x57d588)))_0x167b0c[_0x4c52('0xf7')](_0x3fa574),_0x5445dc=!0x0;else{if(!_0x35bbc1||!_0x35bbc1[_0x4c52('0x21')])continue;_0x375df8[_0x4c52('0x1f')](_0x35bbc1);}}}var _0x57d588;return _0x375df8[_0x4c52('0x2')]>0x0&&(_0x5445dc=!!this[_0x4c52('0x12c')](_0x375df8)||_0x5445dc),_0x5445dc;}),_0x59c665[_0x4c52('0x51')]['document']['registerPostFixer'](_0x7cd9c3=>{let _0x283a4a=!0x1;for(const _0x4e86d7 of _0x59c665[_0x4c52('0x51')][_0x4c52('0xba')][_0x4c52('0xa6')][_0x4c52('0xd5')]()){if(_0x4c52('0x123')!=_0x4e86d7[_0x4c52('0xa3')])continue;const _0x1868a9=_0x4e86d7[_0x4c52('0x85')]['getShiftedBy'](_0x4e86d7[_0x4c52('0x132')]);if(_0x1868a9['isAtEnd'])for(const _0x532a11 of this[_0x4c52('0xd2')][_0x4c52('0x6')]()){if(_0x532a11[_0x4c52('0x12b')]||!_0x532a11['isInContent'])continue;if(_0x4c52('0x12e')!=_0x532a11[_0x4c52('0xa3')])continue;const _0x454bae=_0x532a11['getFirstRange']();if(_0x454bae[_0x4c52('0xdb')][_0x4c52('0x98')]!=_0x454bae[_0x4c52('0x27')][_0x4c52('0x98')]&&_0x454bae[_0x4c52('0x27')][_0x4c52('0x1e')](_0x4e86d7['position'])){const _0x4f7903=_0x59c665[_0x4c52('0x51')]['createRange'](_0x454bae[_0x4c52('0xdb')],_0x1868a9);_0x7cd9c3[_0x4c52('0x3a')](_0x532a11['getFirstMarker'](),{'range':_0x4f7903}),_0x283a4a=!0x0;}}}return _0x283a4a;}),_0x59c665[_0x4c52('0x51')]['markers']['on']('update:suggestion',(_0x23f1c3,_0x35757b,_0x272b20)=>{if(null==_0x272b20){const {id:_0x36df38}=this[_0x4c52('0x7a')](_0x35757b['name']),_0x37c167=this[_0x4c52('0xd2')]['get'](_0x36df38);_0x37c167&&_0x37c167['addMarkerName'](_0x35757b['name']);}}),_0x59c665[_0x4c52('0x51')][_0x4c52('0xba')]['on'](_0x4c52('0x58'),()=>{const _0x5488b5=Array[_0x4c52('0x99')](_0x59c665['model'][_0x4c52('0xba')][_0x4c52('0xa6')]['getChangedMarkers']())[_0x4c52('0x49')](_0x33887c=>'suggestion'===this['_splitMarkerName'](_0x33887c[_0x4c52('0xa2')])[_0x4c52('0xc2')]);if(0x0===_0x5488b5['length'])return;_0x5488b5['sort']((_0x226c9e,_0x153408)=>{const _0x218208=_0x226c9e[_0x4c52('0xc7')][_0x4c52('0x119')],_0x2c83ac=_0x153408[_0x4c52('0xc7')][_0x4c52('0x119')];return null===_0x218208&&null===_0x2c83ac?0x0:null===_0x218208&&null!==_0x2c83ac?-0x1:null!==_0x218208&&null===_0x2c83ac?0x1:_0x218208[_0x4c52('0xdb')][_0x4c52('0x15')](_0x2c83ac[_0x4c52('0xdb')])?-0x1:0x1;});const _0x217bf8=new Set(),_0x884f3b=new Set();for(const {name:_0x555be0,data:_0x641b72}of _0x5488b5){const {id:_0x356308}=this[_0x4c52('0x7a')](_0x555be0);if(null===_0x641b72[_0x4c52('0x119')]){const _0x1c16f6=this[_0x4c52('0x45')](_0x555be0);_0x884f3b[_0x4c52('0x1f')](_0x1c16f6);}else{const _0x2b9b90=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x356308);null!==_0x641b72[_0x4c52('0x18')]||_0x2b9b90['isInContent']?(_0x217bf8[_0x4c52('0x1f')](_0x2b9b90[_0x4c52('0x10b')]),_0x884f3b['add'](_0x2b9b90)):this[_0x4c52('0xc5')](_0x2b9b90);}}_0x884f3b[_0x4c52('0x2')]>0x0&&this[_0x4c52('0x40')](_0x884f3b);for(const _0x21b090 of _0x217bf8)this[_0x4c52('0x4')](_0x4c52('0x105'),_0x21b090);}),_0x59c665[_0x4c52('0x51')]['on'](_0x4c52('0xbb'),(_0x1a74bb,_0x2343a2)=>{const _0x367bc7=_0x2343a2[0x0];if(!this['_suggestions'][_0x4c52('0x2')])return;if(!_0x367bc7[_0x4c52('0xbf')])return;if(_0x367bc7[_0x4c52('0x11c')][_0x4c52('0x82')]||!_0x367bc7[_0x4c52('0x11c')]['isLocal'])return;let _0x5b5afc,_0x1824cd;switch(_0x367bc7[_0x4c52('0xa3')]){case _0x4c52('0x123'):_0x5b5afc=_0x59c665[_0x4c52('0x51')][_0x4c52('0xfb')](_0x367bc7['position']),_0x1824cd=_0x5b5afc[_0x4c52('0x3f')](_0x367bc7[_0x4c52('0xe2')]);break;case _0x4c52('0x46'):_0x5b5afc=_0x59c665[_0x4c52('0x51')][_0x4c52('0xfb')](_0x367bc7['splitPosition']),_0x1824cd=_0x59c665[_0x4c52('0x51')][_0x4c52('0xfb')](_0x367bc7[_0x4c52('0x56')]);break;case _0x4c52('0x121'):_0x5b5afc=_0x59c665[_0x4c52('0x51')]['createPositionAt'](_0x367bc7[_0x4c52('0x63')]),_0x1824cd=_0x5b5afc['getShiftedBy'](_0x367bc7[_0x4c52('0xe2')]);break;default:return;}const _0xd9fe=_0x59c665[_0x4c52('0x51')][_0x4c52('0x77')](_0x5b5afc,_0x1824cd);_0x59c665[_0x4c52('0x51')][_0x4c52('0x32')](()=>{for(const {suggestion:_0x178d3d,meta:_0x1da90a}of this[_0x4c52('0x96')](_0xd9fe)){if(_0x178d3d[_0x4c52('0x12b')])continue;if(_0x4c52('0xe7')==_0x178d3d['type'])continue;const _0x449a01=_0x178d3d['data']&&_0x178d3d[_0x4c52('0xc7')][_0x4c52('0x8')];(_0x4c52('0x12e')!=_0x178d3d[_0x4c52('0xa3')]||_0x4c52('0x46')==_0x367bc7[_0x4c52('0xa3')]&&!_0x449a01)&&(_0x1da90a['containsRangeInObject']||'insertion'==_0x178d3d[_0x4c52('0xa3')]&&_0x1da90a['isOwn']||_0x178d3d[_0x4c52('0x66')]()['containsRange'](_0xd9fe)&&this['_breakSuggestionMarker'](_0x178d3d,_0x5b5afc,_0x1824cd));}});},{'priority':_0x4c52('0x6c')}),_0x59c665[_0x4c52('0x51')]['on'](_0x4c52('0x128'),(_0x3c6346,_0x3f2a05)=>{const _0x1da72f=_0x3f2a05[0x0],_0x3433cf=_0x3f2a05[0x1];if(_0x3433cf&&_0x3433cf[_0x4c52('0xf')])return;if(this[_0x4c52('0x9e')])return;if(!this['trackChangesCommand'][_0x4c52('0xe3')])return;if(_0x1da72f[_0x4c52('0xd4')])return;const _0x2d8c56=_0x59c665['model'][_0x4c52('0x3b')],{start:_0x285301,end:_0x59b2f7}=_0x1da72f[_0x4c52('0x66')](),_0x4e1859=_0x285301[_0x4c52('0x12a')]&&_0x2d8c56['isLimit'](_0x285301['nodeAfter'])?null:_0x2d8c56['getNearestSelectionRange'](_0x285301,_0x4c52('0x6b')),_0x66e48d=_0x59b2f7[_0x4c52('0xbd')]&&_0x2d8c56['isLimit'](_0x59b2f7[_0x4c52('0xbd')])?null:_0x2d8c56[_0x4c52('0xca')](_0x59b2f7,_0x4c52('0xe6')),_0x4823b4=_0x59c665[_0x4c52('0x51')][_0x4c52('0x77')](_0x4e1859?_0x4e1859[_0x4c52('0xdb')]:_0x285301,_0x66e48d?_0x66e48d[_0x4c52('0x27')]:_0x59b2f7);_0x59c665[_0x4c52('0x51')][_0x4c52('0x32')](_0x5521ae=>{this[_0x4c52('0xd8')](_0x4823b4);const _0xfd4647=_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')][_0x4c52('0xca')](_0x4823b4[_0x4c52('0xdb')]);_0x1da72f['is'](_0x4c52('0x78'))?_0x5521ae[_0x4c52('0x13b')](_0xfd4647):_0x1da72f['setTo'](_0xfd4647);}),_0x3c6346['stop']();},{'priority':_0xdb9c03[_0x4c52('0xf6')]+0xa}),_0x59c665[_0x4c52('0x51')]['on'](_0x4c52('0xa1'),(_0x26f1a4,_0x5cb3c7)=>{const _0x2940ac=_0x5cb3c7[_0x5cb3c7[_0x4c52('0x132')]-0x1];_0x2940ac&&_0x2940ac[_0x4c52('0xf')]||this['_isForcedDefaultExecutionBlock']||this[_0x4c52('0xf2')][_0x4c52('0xe3')]&&(_0x59c665[_0x4c52('0x51')][_0x4c52('0x32')](()=>{let _0x553e96=_0x59c665['model']['insertContent'](_0x5cb3c7[0x0],_0x5cb3c7[0x1],_0x5cb3c7[0x2],{'forceDefaultExecution':!0x0});if(!_0x553e96)return;_0x26f1a4[_0x4c52('0x47')]=_0x553e96['clone']();const _0x18a7ec=_0x553e96[_0x4c52('0x27')][_0x4c52('0xbd')],_0x5be809=_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')];_0x18a7ec&&_0x5be809['isBlock'](_0x18a7ec)&&!_0x5be809['isObject'](_0x18a7ec)&&(_0x553e96=_0x59c665[_0x4c52('0x51')][_0x4c52('0x77')](_0x553e96[_0x4c52('0xdb')],_0x59c665[_0x4c52('0x51')]['createPositionAt'](_0x18a7ec,'end'))),this[_0x4c52('0xff')](_0x553e96);}),_0x26f1a4[_0x4c52('0x10c')]());},{'priority':_0x4c52('0xa0')}),this[_0x4c52('0x10')][_0x4c52('0x24')]['add'](_0x4c52('0x8f'),this[_0x4c52('0xf2')]),this[_0x4c52('0x9a')](_0x4c52('0x8f'));const _0x58a7b5=new _0xdf3be2(_0x59c665,this[_0x4c52('0xd2')]);_0x59c665['commands'][_0x4c52('0x1f')](_0x4c52('0x4d'),_0x58a7b5),this[_0x4c52('0x9a')](_0x4c52('0x4d'));const _0x529962=new _0x2a530f(_0x59c665,this[_0x4c52('0xd2')]);_0x59c665[_0x4c52('0x24')][_0x4c52('0x1f')]('discardSuggestion',_0x529962),this[_0x4c52('0x9a')]('discardSuggestion'),_0x59c665[_0x4c52('0x24')]['add'](_0x4c52('0x126'),new _0x596ff8(_0x59c665,_0x58a7b5,this['_suggestions'])),this['enableCommand'](_0x4c52('0x126')),_0x59c665[_0x4c52('0x24')]['add'](_0x4c52('0xdd'),new _0x596ff8(_0x59c665,_0x529962,this[_0x4c52('0xd2')])),this[_0x4c52('0x9a')](_0x4c52('0xdd')),_0x59c665[_0x4c52('0x24')][_0x4c52('0x1f')](_0x4c52('0xd'),new _0x289e98(_0x59c665,_0x58a7b5,this['_suggestions'])),this[_0x4c52('0x9a')](_0x4c52('0xd')),_0x59c665[_0x4c52('0x24')][_0x4c52('0x1f')](_0x4c52('0xb6'),new _0x289e98(_0x59c665,_0x529962,this[_0x4c52('0xd2')])),this[_0x4c52('0x9a')](_0x4c52('0xb6'));const _0x59b785=_0x59c665['plugins'][_0x4c52('0xe4')]('CommentsRepository');this[_0x4c52('0x73')](_0x59b785,_0x4c52('0x1d'),(_0x48eb31,{threadId:_0xf75c9})=>{const _0x4e2260=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0xf75c9);_0x4e2260&&_0x4e2260[_0x4c52('0x68')]&&0x1===_0x4e2260['commentThread']['length']&&this['_updateSuggestionData'](_0xf75c9,{'hasComments':!0x0});},{'priority':_0x4c52('0xb7')}),this[_0x4c52('0x73')](_0x59b785,_0x4c52('0x2e'),(_0x51fad1,{threadId:_0x215b06})=>{const _0x2c7d07=this['_suggestions'][_0x4c52('0xe4')](_0x215b06);_0x2c7d07&&_0x2c7d07['commentThread']&&!_0x2c7d07[_0x4c52('0x68')][_0x4c52('0x132')]&&this[_0x4c52('0x7b')](_0x215b06,{'hasComments':!0x1});},{'priority':_0x4c52('0xb7')});}set[_0x4c52('0x136')](_0x3a011d){if(this[_0x4c52('0x6f')])throw new _0x1b57cc('track-changes-adapter-already-set',this);this[_0x4c52('0x6f')]=_0x3a011d;}get['adapter'](){return this['_adapter'];}[_0x4c52('0xf8')]({skipNotAttached:_0x1ec1c4=!0x1,toJSON:_0x76919f=!0x1}={}){const _0x5bbf89=[];for(const _0x5d3913 of this[_0x4c52('0xd2')][_0x4c52('0x6')]())_0x1ec1c4&&!_0x5d3913[_0x4c52('0x21')]||_0x5bbf89[_0x4c52('0x107')](_0x5d3913);return _0x76919f?_0x5bbf89[_0x4c52('0x115')](_0x5160ce=>_0x5160ce[_0x4c52('0x135')]()):_0x5bbf89;}[_0x4c52('0x7e')](_0x230616){const _0xa85b76=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x230616);if(!_0xa85b76)throw new _0x1b57cc(_0x4c52('0x139'),this);return _0xa85b76;}['hasSuggestion'](_0x358184){return this[_0x4c52('0xd2')]['has'](_0x358184);}[_0x4c52('0x93')](_0x3293d1){const {authorId:_0x48cdae,id:_0x14acca,attributes:_0x39b83b}=_0x3293d1,[_0x2c3832,_0x5ddf9]=_0x3293d1['type'][_0x4c52('0x46')](':'),_0x12db62=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x14acca)||this[_0x4c52('0x8d')](_0x2c3832,_0x5ddf9,_0x14acca,_0x48cdae,_0x39b83b);if(this[_0x4c52('0xfe')](_0x12db62),this[_0x4c52('0x113')](_0x12db62,_0x2c3832,_0x5ddf9||null,_0x48cdae),_0x12db62[_0x4c52('0x26')]=_0x3293d1[_0x4c52('0x26')],_0x39b83b&&_0x39b83b['@external']){const _0xb27333=_0x39b83b[_0x4c52('0x86')],_0x207303=this[_0x4c52('0x16')](_0xb27333[_0x4c52('0x92')]);_0x12db62[_0x4c52('0x50')]=_0xb27333[_0x4c52('0x26')],_0x12db62[_0x4c52('0xcb')]=_0x207303,_0x12db62[_0x4c52('0x6d')]=!0x0;}else _0x12db62[_0x4c52('0x50')]=_0x3293d1[_0x4c52('0x26')];switch(_0x3293d1[_0x4c52('0xc7')]&&(_0x12db62[_0x4c52('0xc7')]=_0x3293d1['data']),_0x3293d1[_0x4c52('0xf1')]&&(_0x12db62[_0x4c52('0xf1')]=_0x3293d1[_0x4c52('0xf1')]),this[_0x4c52('0x6f')]&&this[_0x4c52('0x6f')]['addSuggestion']||(_0x12db62[_0x4c52('0x54')]=!0x0),this[_0x4c52('0x106')][_0x4c52('0xe4')](_0x12db62)){case'notReady':this['_suggestionState'][_0x4c52('0x36')](_0x12db62,'dataReady');break;case _0x4c52('0x7c'):_0x12db62[_0x4c52('0x21')]?(this['_suggestionState']['set'](_0x12db62,'ready'),this['fire'](_0x4c52('0xc9'),_0x12db62)):this['_suggestionState'][_0x4c52('0x36')](_0x12db62,_0x4c52('0x70'));}return _0x12db62;}['acceptSuggestion'](_0x20a6aa){this[_0x4c52('0xf')](()=>{this[_0x4c52('0x10')]['model'][_0x4c52('0x32')](()=>{for(const _0x49386c of _0x20a6aa[_0x4c52('0xce')]())_0x49386c[_0x4c52('0x130')]();});});}[_0x4c52('0x48')](_0x31aa1c){this[_0x4c52('0xf')](()=>{this[_0x4c52('0x10')][_0x4c52('0x51')]['change'](()=>{for(const _0xac602 of _0x31aa1c['getAllAdjacentSuggestions']())_0xac602[_0x4c52('0x103')]();});});}[_0x4c52('0x9a')](_0x191ce0,_0x275fd5){const _0x40e505=this[_0x4c52('0x10')][_0x4c52('0x24')][_0x4c52('0xe4')](_0x191ce0);if(!_0x40e505)throw new _0x1b57cc(_0x4c52('0xee'),this,{'commandName':_0x191ce0});this['_enabledCommands'][_0x4c52('0x1f')](_0x40e505),_0x275fd5&&_0x40e505['on']('execute',(_0x3ba975,_0xd320a5)=>{this[_0x4c52('0xf2')][_0x4c52('0xe3')]&&(this[_0x4c52('0x9e')]||_0xd320a5[_0x4c52('0x132')]>0x0&&_0xd320a5[_0xd320a5[_0x4c52('0x132')]-0x1]&&_0xd320a5[_0xd320a5[_0x4c52('0x132')]-0x1][_0x4c52('0xf')]||(_0x275fd5((..._0x494ac5)=>_0x40e505[_0x4c52('0x43')](..._0x494ac5,{'forceDefaultExecution':!0x0}),..._0xd320a5),_0x3ba975['stop']()));},{'priority':'high'});}[_0x4c52('0xf')](_0xfae19e){let _0x245ac3,_0x50f7d1;const _0x2927fa=this['_isForcedDefaultExecutionBlock'];this[_0x4c52('0x9e')]=!0x0;try{_0x245ac3=_0xfae19e();}catch(_0x268003){_0x50f7d1=_0x268003;}return _0x2927fa||(this[_0x4c52('0x9e')]=!0x1),_0x50f7d1&&_0x1b57cc[_0x4c52('0x101')](_0x50f7d1,this),_0x245ac3;}[_0x4c52('0xff')](_0x4bce1f,_0x53ac47=null,_0x2a9e22={}){if(_0x4bce1f[_0x4c52('0xd4')])return null;const _0x489f76=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')]('Users')['me'];for(const {suggestion:_0x161ea9,meta:_0x440600}of this[_0x4c52('0x96')](_0x4bce1f,_0x4c52('0x102')))if(_0x440600[_0x4c52('0x120')]){if(!_0x440600[_0x4c52('0x61')]){if(!this[_0x4c52('0xc1')]&&_0x440600['containsRangeInObject'])continue;return _0x161ea9;}if(_0x53ac47==_0x161ea9[_0x4c52('0x37')]){const _0x5a28cb=_0x161ea9[_0x4c52('0x66')]();return _0x5a28cb[_0x4c52('0xdb')][_0x4c52('0x1e')](_0x4bce1f[_0x4c52('0x27')])?this[_0x4c52('0xd7')](_0x161ea9,this['_model'][_0x4c52('0x77')](_0x4bce1f[_0x4c52('0xdb')],_0x5a28cb[_0x4c52('0x27')])):this[_0x4c52('0xd7')](_0x161ea9,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x5a28cb[_0x4c52('0xdb')],_0x4bce1f[_0x4c52('0x27')])),_0x161ea9;}}const _0x3d9855=_0x1e91a8(),_0x51c60d=_0x489f76['id'],_0x1a2c42=_0x53ac47?_0x4c52('0x118')+_0x53ac47:'insertion',_0x57c5ea=this[_0x4c52('0x5c')]({'id':_0x3d9855,'type':_0x1a2c42,'createdAt':new Date(),'authorId':_0x51c60d,'attributes':_0x2a9e22});return this[_0x4c52('0x55')](_0x1a2c42,_0x3d9855,_0x51c60d,_0x4bce1f),_0x57c5ea;}[_0x4c52('0x114')](_0x1a48db,_0x23ce87=_0x4c52('0xae'),_0x281da4={}){const _0x41b31d=this['editor'][_0x4c52('0xeb')]['get'](_0x4c52('0x74'))['me'],_0x1d9111=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x102'),_0x23ce87,_0x4c52('0xb9'));for(const _0x521c4f of this[_0x4c52('0xf8')]())if(_0x521c4f[_0x4c52('0xcb')]['id']==_0x41b31d['id']&&_0x4c52('0x102')==_0x521c4f[_0x4c52('0xa3')]&&_0x521c4f['subType']==_0x23ce87&&(_0x1d9111(_0x521c4f[_0x4c52('0x4b')](),_0x1a48db)||_0x1d9111(_0x1a48db,_0x521c4f[_0x4c52('0x4b')]()))){for(const _0xb4384d of _0x1a48db)_0x521c4f[_0x4c52('0x4f')](_0xb4384d);return _0x521c4f;}if(this[_0x4c52('0xc1')])for(const _0x30ce3f of _0x1a48db)for(const {suggestion:_0x27f6e6,meta:_0x2281bc}of this['_findSuggestions'](_0x30ce3f,_0x4c52('0x102'))){if(!_0x2281bc[_0x4c52('0x120')])continue;let _0x6474c9=!0x0;for(const _0x227a99 of _0x27f6e6[_0x4c52('0x4b')]())for(const _0x2850d2 of _0x1a48db)if(!_0x227a99['containsRange'](_0x2850d2)){_0x6474c9=!0x1;break;}if(_0x6474c9)return _0x27f6e6;}const _0x30ae6f=_0x1e91a8(),_0x1fc334=_0x41b31d['id'],_0x47c757='insertion:'+_0x23ce87,_0x259c63=this[_0x4c52('0x5c')]({'id':_0x30ae6f,'type':_0x47c757,'createdAt':new Date(),'authorId':_0x1fc334,'attributes':_0x281da4});for(const _0x40cfbd of _0x1a48db)this[_0x4c52('0x55')](_0x47c757,_0x30ae6f,_0x1fc334,_0x40cfbd,_0x24016f[_0x4c52('0x10e')]());return _0x259c63;}[_0x4c52('0x4c')](_0x8a0317,_0x2e684a,_0x22bdbc=null,_0x1d3fe4={}){if(_0x22bdbc=_0x22bdbc||$t(_0x2e684a),_0x8a0317[_0x4c52('0xd4')])return null;if('never'===this[_0x4c52('0x20')]){const _0x37ca9f=this['_suggestionFactory'][_0x4c52('0xaf')](_0x4c52('0xe7'),_0x22bdbc,_0x4c52('0x130'));return this['forceDefaultExecution'](()=>_0x37ca9f([_0x8a0317],_0x2e684a,_0x1d3fe4)),null;}const _0x3fbd3e=this['editor']['plugins'][_0x4c52('0xe4')]('Users')['me'],_0x2a2e32=[];if(_0x4c52('0xd6')!==this[_0x4c52('0x20')])for(const {suggestion:_0x5be2fc,meta:_0x12d883}of this[_0x4c52('0x96')](_0x8a0317,'insertion'))_0x12d883[_0x4c52('0x120')]&&!_0x12d883[_0x4c52('0xd3')]&&_0x2a2e32[_0x4c52('0x107')](..._0x5be2fc[_0x4c52('0x4b')]());const _0x13b932=function(_0x555052,_0x63aa47){const _0x5c00b5=[];for(const _0x45c341 of _0x63aa47){const _0x5077ec=_0x555052[_0x4c52('0x2f')](_0x45c341);_0x5077ec&&_0x5c00b5[_0x4c52('0x107')](_0x5077ec);}return _0x5c00b5;}(_0x8a0317,_0x2a2e32),_0x441012=function(_0x300f64,_0x45722d){const _0x12a3aa=[_0x300f64];for(const _0x385543 of _0x45722d){let _0x49bc82=0x0;for(;_0x49bc82<_0x12a3aa[_0x4c52('0x132')];){const _0x5ff89c=_0x12a3aa[_0x49bc82][_0x4c52('0x12f')](_0x385543);_0x12a3aa[_0x4c52('0x110')](_0x49bc82,0x1,..._0x5ff89c),_0x49bc82+=_0x5ff89c['length'];}}return _0x12a3aa;}(_0x8a0317,_0x2a2e32);_0x13b932[_0x4c52('0x132')]&&this['_model']['change'](()=>{for(const _0x199a2a of _0x13b932){const _0x4231fb=this['_suggestionFactory']['getSuggestionCallback'](_0x4c52('0xe7'),_0x22bdbc,_0x4c52('0x130'));this[_0x4c52('0xf')](()=>_0x4231fb([_0x199a2a],_0x2e684a,_0x1d3fe4));}});for(const _0x588c5a of _0x441012){let _0x3554a8=null,_0x234560=_0x588c5a[_0x4c52('0xdb')],_0x225301=_0x588c5a[_0x4c52('0x27')];for(const {suggestion:_0x19bc3e,meta:_0x522930}of this[_0x4c52('0x96')](_0x588c5a,_0x4c52('0xe7'))){if(!_0x522930[_0x4c52('0x120')])continue;if(_0x19bc3e[_0x4c52('0x37')]!=_0x22bdbc)continue;const _0x258aba=_0x19bc3e[_0x4c52('0x66')]();if(_0x258aba['containsRange'](_0x588c5a,!0x0))return null;_0x234560=_0x234560['isBefore'](_0x258aba[_0x4c52('0xdb')])?_0x234560:_0x258aba[_0x4c52('0xdb')],_0x225301=_0x225301[_0x4c52('0xf0')](_0x258aba[_0x4c52('0x27')])?_0x225301:_0x258aba[_0x4c52('0x27')],_0x3554a8?_0x258aba['start'][_0x4c52('0x15')](_0x3554a8[_0x4c52('0x66')]()['start'])?(_0x3554a8[_0x4c52('0xd1')](),_0x3554a8=_0x19bc3e):_0x19bc3e[_0x4c52('0xd1')]():_0x3554a8=_0x19bc3e;}const _0x5adbd9=this['_model'][_0x4c52('0x77')](_0x234560,_0x225301);if(_0x3554a8)this['_setSuggestionRange'](_0x3554a8,_0x5adbd9);else{const _0x451ab1=_0x1e91a8(),_0x2f55f5=_0x3fbd3e['id'];this['_setSuggestionData']({'id':_0x451ab1,'type':'formatInline:'+_0x22bdbc,'data':_0x2e684a,'createdAt':new Date(),'authorId':_0x2f55f5,'attributes':_0x1d3fe4}),this[_0x4c52('0x55')]('formatInline:'+_0x22bdbc,_0x451ab1,_0x2f55f5,_0x5adbd9);}}return null;}['markBlockFormat'](_0x407a86,_0x25485f,_0x486f5a=[],_0x376bc3=null,_0x5e6a18={}){_0x25485f['formatGroupId']||(_0x25485f[_0x4c52('0x30')]=_0x25485f[_0x4c52('0xb0')]),_0x25485f['multipleBlocks']=_0x407a86['is'](_0x4c52('0x9f')),_0x376bc3=_0x376bc3||$t(_0x25485f);const _0x4cf1f0=_0x486f5a['map'](_0x126a0d=>Rt(_0x126a0d,this[_0x4c52('0x29')])),_0x23bd3b=_0x407a86['is']('range')?_0x407a86:Rt(_0x407a86,this[_0x4c52('0x29')]);if(_0x4c52('0x14')===this[_0x4c52('0x20')]){const _0x296b02=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x12e'),_0x376bc3,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x296b02([_0x23bd3b],_0x25485f,_0x5e6a18)),null;}_0x4cf1f0['push'](_0x23bd3b);let _0x33b688=!0x0;for(const _0x32d80d of _0x4cf1f0)if(!this['_rangeIsInLocalUserInsertion'](_0x32d80d)){_0x33b688=!0x1;break;}if(_0x33b688&&'always'!==this['_trackFormatChanges']){const _0x393539=this['_suggestionFactory'][_0x4c52('0xaf')](_0x4c52('0x12e'),_0x376bc3,'accept');return this[_0x4c52('0xf')](()=>_0x393539([_0x23bd3b],_0x25485f,_0x5e6a18)),null;}let _0x1ae954=null,_0x5508c2=_0x23bd3b[_0x4c52('0xdb')],_0x2ef499=_0x23bd3b[_0x4c52('0x27')];for(const {suggestion:_0x167fb1,meta:_0x303203}of this[_0x4c52('0x96')](_0x23bd3b,'formatBlock')){if(!_0x303203[_0x4c52('0x120')]||_0x303203[_0x4c52('0x61')]||_0x303203[_0x4c52('0x13')]||_0x303203['isInsideObject'])continue;if(_0x167fb1[_0x4c52('0xc7')][_0x4c52('0x30')]!=_0x25485f[_0x4c52('0x30')])continue;const _0x190fe7=_0x167fb1['getFirstRange']();if(_0x167fb1[_0x4c52('0x37')]==_0x376bc3){if(_0x190fe7[_0x4c52('0xf3')](_0x23bd3b,!0x0))return null;_0x5508c2=_0x5508c2[_0x4c52('0x15')](_0x190fe7[_0x4c52('0xdb')])?_0x5508c2:_0x190fe7[_0x4c52('0xdb')],_0x2ef499=_0x2ef499[_0x4c52('0xf0')](_0x190fe7[_0x4c52('0x27')])?_0x2ef499:_0x190fe7[_0x4c52('0x27')],_0x1ae954?_0x190fe7[_0x4c52('0xdb')]['isBefore'](_0x1ae954[_0x4c52('0x66')]()[_0x4c52('0xdb')])?(_0x1ae954[_0x4c52('0xd1')](),_0x1ae954=_0x167fb1):_0x167fb1['removeMarkers']():_0x1ae954=_0x167fb1;}else{const _0x9ca47e=_0x23bd3b[_0x4c52('0x2f')](_0x190fe7);this[_0x4c52('0x7d')](_0x167fb1,_0x9ca47e);}}const _0x300c57=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74'))['me'],_0x3c740c=_0x1e91a8(),_0x1dfa98=_0x300c57['id'];if(_0x1ae954)return this[_0x4c52('0xd7')](_0x1ae954,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x5508c2,_0x2ef499)),_0x1ae954;{const _0x8e8804=this[_0x4c52('0x5c')]({'id':_0x3c740c,'type':_0x4c52('0x124')+_0x376bc3,'data':_0x25485f,'createdAt':new Date(),'authorId':_0x1dfa98,'attributes':_0x5e6a18});return this['_addSuggestionMarker'](_0x4c52('0x124')+_0x376bc3,_0x3c740c,_0x1dfa98,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x5508c2,_0x2ef499)),_0x8e8804;}}[_0x4c52('0x11e')](_0x4e71c4,_0x3f3ea3,_0x4d8f43=[],_0x248262=null,_0x1b490e={}){_0x3f3ea3['formatGroupId']||(_0x3f3ea3['formatGroupId']=_0x3f3ea3[_0x4c52('0xb0')]);const _0xb90f25=_0x4e71c4[0x0];_0x3f3ea3[_0x4c52('0x8')]=_0xb90f25['is'](_0x4c52('0x9f')),_0x248262=_0x248262||$t(_0x3f3ea3);const _0x1a595e=_0x4d8f43[_0x4c52('0x115')](_0x28d522=>Rt(_0x28d522,this[_0x4c52('0x29')])),_0x1f3b53=_0xb90f25['is'](_0x4c52('0x9f'))?_0x4e71c4:_0x4e71c4[_0x4c52('0x115')](_0x4b31b0=>Rt(_0x4b31b0,this[_0x4c52('0x29')]));if(_0x4c52('0x14')===this[_0x4c52('0x20')]){const _0x53eda3=this[_0x4c52('0x109')][_0x4c52('0xaf')]('formatBlock',_0x248262,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x53eda3(_0x1f3b53,_0x3f3ea3,_0x1b490e)),null;}_0x1a595e[_0x4c52('0x107')](..._0x1f3b53);let _0x13039c=!0x0;for(const _0xb82935 of _0x1a595e)if(!this[_0x4c52('0x6a')](_0xb82935)){_0x13039c=!0x1;break;}if(_0x13039c&&_0x4c52('0xd6')!==this[_0x4c52('0x20')]){const _0x1820b5=this['_suggestionFactory'][_0x4c52('0xaf')](_0x4c52('0x12e'),_0x248262,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x1820b5(_0x1f3b53,_0x3f3ea3,_0x1b490e)),null;}const _0x3c1e7f=this[_0x4c52('0x10')][_0x4c52('0xeb')]['get'](_0x4c52('0x74'))['me'];for(const _0x74bf8 of this[_0x4c52('0xf8')]()){if(_0x74bf8[_0x4c52('0xcb')]['id']!=_0x3c1e7f['id'])continue;if(_0x4c52('0x12e')!=_0x74bf8[_0x4c52('0xa3')]||_0x74bf8[_0x4c52('0xc7')][_0x4c52('0x30')]!=_0x3f3ea3[_0x4c52('0x30')])continue;const _0x480d8f=_0x74bf8[_0x4c52('0x37')]==_0x248262;for(let _0xaa7b63=0x0;_0xaa7b63<_0x1f3b53[_0x4c52('0x132')];_0xaa7b63++){const _0x14d5dd=_0x1f3b53[_0xaa7b63];for(const _0x5e4da3 of _0x74bf8[_0x4c52('0xc')]()){const _0x28de3c=_0x5e4da3[_0x4c52('0xab')]();if(_0x14d5dd[_0x4c52('0x1e')](_0x28de3c)){_0x480d8f?(_0x1f3b53[_0x4c52('0x110')](_0xaa7b63,0x1),_0xaa7b63--):_0x74bf8[_0x4c52('0xf7')](_0x5e4da3[_0x4c52('0xa2')]);break;}}}}if(0x0==_0x1f3b53['length'])return null;const _0x3afa32=this[_0x4c52('0x109')]['getSuggestionCallback'](_0x4c52('0x12e'),_0x248262,'join');for(const _0x22aba3 of this[_0x4c52('0xf8')]())if(_0x22aba3[_0x4c52('0xcb')]['id']==_0x3c1e7f['id']&&_0x4c52('0x12e')==_0x22aba3[_0x4c52('0xa3')]&&_0x22aba3[_0x4c52('0xc7')][_0x4c52('0x30')]==_0x3f3ea3[_0x4c52('0x30')]&&_0x22aba3['subType']==_0x248262&&(_0x3afa32(_0x22aba3[_0x4c52('0x4b')](),_0x1f3b53)||_0x3afa32(_0x1f3b53,_0x22aba3[_0x4c52('0x4b')]()))){for(const _0x447bd3 of _0x1f3b53)_0x22aba3[_0x4c52('0x4f')](_0x447bd3);return _0x22aba3;}const _0x5c2d44=_0x1e91a8(),_0x2c0332=_0x3c1e7f['id'],_0x3580e5=_0x4c52('0x124')+_0x248262,_0x4c9438=this[_0x4c52('0x5c')]({'id':_0x5c2d44,'type':_0x3580e5,'data':_0x3f3ea3,'createdAt':new Date(),'authorId':_0x2c0332,'attributes':_0x1b490e});for(const _0x27f9d3 of _0x1f3b53)this[_0x4c52('0x55')](_0x3580e5,_0x5c2d44,_0x2c0332,_0x27f9d3,_0x24016f[_0x4c52('0x10e')]());return _0x4c9438;}[_0x4c52('0xd8')](_0x3a3505,_0x2df30b=null,_0x5b1f00={}){if(_0x3a3505[_0x4c52('0xd4')])return null;const _0x44d740=this['editor'][_0x4c52('0xeb')]['get']('Users')['me'],_0x2d6407=new _0x10252d(_0x3a3505[_0x4c52('0xdb')],_0x3a3505[_0x4c52('0x27')]);for(const {suggestion:_0x2c888a,meta:_0x58aaf9}of this[_0x4c52('0x96')](_0x2d6407,'insertion'))if(_0x58aaf9['isOwn']&&!_0x58aaf9['isNextTo']){if(_0x2c888a[_0x4c52('0x12b')]){const _0x246aae=_0x2c888a['getRanges']()[_0x4c52('0x49')](_0x5d10fe=>_0x4c52('0x53')!=_0x5d10fe[_0x4c52('0xe')]['rootName']);_0x246aae[_0x4c52('0xcf')](_0x3325f4=>_0x2d6407[_0x4c52('0xf3')](_0x3325f4,!0x0))&&_0x2c888a[_0x4c52('0x103')]();if(_0x246aae[_0x4c52('0x83')](_0x51e230=>_0x51e230[_0x4c52('0xf3')](_0x2d6407,!0x0))){const _0x336d25=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x5f'),_0x2df30b,_0x4c52('0x130'));return this['forceDefaultExecution'](()=>_0x336d25([_0x2d6407],null,_0x5b1f00)),null;}}else{const _0xc2b690=_0x2d6407[_0x4c52('0x2f')](_0x2c888a[_0x4c52('0x66')]());null!==_0xc2b690&&_0x2c888a[_0x4c52('0x111')]([_0xc2b690],null,_0x5b1f00);}}if(_0x2d6407[_0x4c52('0x28')](),_0x2d6407['isCollapsed']||_0x4c52('0x53')==_0x2d6407[_0x4c52('0xe')][_0x4c52('0xa7')])return null;let _0x4ef5c3=null,_0x31d035=_0x2d6407[_0x4c52('0xdb')],_0x4fe4e2=_0x2d6407['end'];for(const {suggestion:_0xd1cfcd,meta:_0x24ab55}of this[_0x4c52('0x96')](_0x2d6407,_0x4c52('0x5f')))if(_0x24ab55[_0x4c52('0x120')]){if(_0xd1cfcd[_0x4c52('0x12b')]&&this[_0x4c52('0xc1')]){let _0x392abd=!0x0;for(const _0x19043f of _0xd1cfcd[_0x4c52('0x4b')]()){if(_0x19043f['containsRange'](_0x2d6407,!0x0))return _0xd1cfcd;_0x2d6407['containsRange'](_0x19043f)||(_0x392abd=!0x1);}_0x392abd&&_0xd1cfcd['discard']();}else{const _0x172abc=_0xd1cfcd['getFirstRange']();if(_0x172abc[_0x4c52('0xf3')](_0x2d6407,!0x0)){if(!this[_0x4c52('0xc1')]&&_0x24ab55[_0x4c52('0x13')])continue;return _0xd1cfcd;}_0x31d035=_0x31d035[_0x4c52('0x15')](_0x172abc[_0x4c52('0xdb')])?_0x31d035:_0x172abc['start'],_0x4fe4e2=_0x4fe4e2[_0x4c52('0xf0')](_0x172abc['end'])?_0x4fe4e2:_0x172abc['end'],_0x4ef5c3?_0x172abc[_0x4c52('0xdb')][_0x4c52('0x15')](_0x4ef5c3[_0x4c52('0x66')]()['start'])?(_0x4ef5c3[_0x4c52('0xd1')](),_0x4ef5c3=_0xd1cfcd):_0xd1cfcd[_0x4c52('0xd1')]():_0x4ef5c3=_0xd1cfcd;}}if(_0x4ef5c3)return this[_0x4c52('0xd7')](_0x4ef5c3,this['_model'][_0x4c52('0x77')](_0x31d035,_0x4fe4e2)),_0x4ef5c3;{const _0x3ff91d=_0x1e91a8(),_0x36c8b7=this[_0x4c52('0x29')][_0x4c52('0x77')](_0x31d035,_0x4fe4e2),_0x351b9a=_0x44d740['id'],_0x381491=_0x2df30b?'deletion:'+_0x2df30b:'deletion',_0x3270ca=this[_0x4c52('0x5c')]({'id':_0x3ff91d,'type':_0x381491,'createdAt':new Date(),'authorId':_0x351b9a,'attributes':_0x5b1f00});return this['_addSuggestionMarker'](_0x381491,_0x3ff91d,_0x351b9a,_0x36c8b7),_0x3270ca;}}[_0x4c52('0x5')](_0x4938b9,_0x4bb9aa=_0x4c52('0xae'),_0x4ea69f={}){const _0x21cd9d=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74'))['me'],_0x1ee782=_0x4938b9[_0x4c52('0x115')](_0x4df2d6=>new _0x10252d(_0x4df2d6[_0x4c52('0xdb')],_0x4df2d6[_0x4c52('0x27')])),_0x193fe5=new Set();for(const _0x4d909d of _0x1ee782)for(const {suggestion:_0x515cde,meta:_0x94b55a}of this[_0x4c52('0x96')](_0x4d909d,_0x4c52('0x102')))_0x94b55a['isOwn']&&!_0x94b55a['isNextTo']&&_0x193fe5[_0x4c52('0x1f')](_0x515cde);for(const _0xa93ff7 of _0x193fe5)if(_0xa93ff7[_0x4c52('0x12b')]){const _0x4da106=_0xa93ff7[_0x4c52('0x4b')]();(!_0xa93ff7['attributes']||!_0xa93ff7[_0x4c52('0xf1')][_0x4c52('0x131')])&&(_0x4da106['every'](_0x177bad=>_0x1ee782['some'](_0x269ba3=>_0x269ba3[_0x4c52('0xf3')](_0x177bad,!0x0)))&&_0xa93ff7[_0x4c52('0x103')]());if(_0x1ee782[_0x4c52('0xcf')](_0x5579f5=>_0x4da106[_0x4c52('0x83')](_0x1c827e=>_0x1c827e['containsRange'](_0x5579f5,!0x0)))){const _0x3d3ab9=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x5f'),_0x4bb9aa,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x3d3ab9(_0x4938b9,null,_0x4ea69f)),null;}}else{const _0x4b4724=_0xa93ff7['getFirstRange']();_0x1ee782[_0x4c52('0x83')](_0xfad60a=>_0xfad60a[_0x4c52('0xf3')](_0x4b4724,!0x0))&&_0xa93ff7[_0x4c52('0x103')]();if(_0x1ee782[_0x4c52('0xcf')](_0x1491b0=>_0x4b4724[_0x4c52('0xf3')](_0x1491b0,!0x0))){const _0xdb2fe=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x5f'),_0x4bb9aa,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0xdb2fe(_0x1ee782,null,_0x4ea69f)),null;}}const _0x2bb48c=this[_0x4c52('0x109')]['getSuggestionCallback'](_0x4c52('0x5f'),_0x4bb9aa,_0x4c52('0xb9'));let _0x59339d=null;for(const _0x267025 of this[_0x4c52('0xf8')]())if(_0x267025[_0x4c52('0xcb')]['id']==_0x21cd9d['id']&&_0x267025['isInContent']&&_0x4c52('0x5f')==_0x267025['type']&&_0x267025['subType']==_0x4bb9aa&&(_0x2bb48c(_0x267025[_0x4c52('0x4b')](),_0x1ee782)||_0x2bb48c(_0x1ee782,_0x267025[_0x4c52('0x4b')]()))){if(_0x59339d){if(_0x267025[_0x4c52('0x68')]&&_0x267025[_0x4c52('0x68')]['length'])continue;for(const _0x87340f of _0x267025[_0x4c52('0x4b')]())_0x59339d['isIntersectingWithRange'](_0x87340f)||_0x59339d[_0x4c52('0x4f')](_0x87340f);_0x267025[_0x4c52('0xd1')]();}else{_0x59339d=_0x267025;for(const _0x314361 of _0x1ee782)_0x267025[_0x4c52('0x84')](_0x314361)||_0x267025[_0x4c52('0x4f')](_0x314361);}}if(_0x59339d)return _0x59339d;_0x193fe5[_0x4c52('0x112')]();for(const _0x156057 of _0x1ee782)for(const {suggestion:_0x4916d6,meta:_0x5eda19}of this[_0x4c52('0x96')](_0x156057,_0x4c52('0x5f')))_0x5eda19[_0x4c52('0x120')]&&_0x193fe5[_0x4c52('0x1f')](_0x4916d6);for(const _0x20ab77 of _0x193fe5){const _0x5968fa=_0x20ab77[_0x4c52('0x4b')]();if(!_0x4ea69f||!_0x4ea69f[_0x4c52('0x131')]){if(_0x1ee782[_0x4c52('0xcf')](_0xd36ebc=>_0x5968fa['some'](_0x2e0a07=>_0x2e0a07[_0x4c52('0xf3')](_0xd36ebc,!0x0))))return _0x20ab77;}(!_0x20ab77[_0x4c52('0xf1')]||!_0x20ab77[_0x4c52('0xf1')][_0x4c52('0x131')])&&(_0x5968fa['every'](_0x2b0261=>_0x1ee782[_0x4c52('0x83')](_0x34a174=>_0x34a174[_0x4c52('0xf3')](_0x2b0261,!0x0)))&&_0x20ab77['discard']());}const _0x40b941=_0x1e91a8(),_0x1966f4=_0x21cd9d['id'],_0x681768=_0x4c52('0x94')+_0x4bb9aa,_0x38a4b0=this[_0x4c52('0x5c')]({'id':_0x40b941,'type':_0x681768,'createdAt':new Date(),'authorId':_0x1966f4,'attributes':_0x4ea69f});for(const _0x8912c9 of _0x1ee782)_0x8912c9['detach'](),_0x8912c9[_0x4c52('0xd4')]||_0x4c52('0x53')==_0x8912c9[_0x4c52('0xe')]['rootName']||this[_0x4c52('0x55')](_0x681768,_0x40b941,_0x1966f4,_0x8912c9,_0x24016f[_0x4c52('0x10e')]());return _0x38a4b0;}[_0x4c52('0xd7')](_0x54d8b5,_0xfd34f1){const _0x303e64=_0x54d8b5[_0x4c52('0xa4')]();this[_0x4c52('0x29')]['change'](_0x2857a3=>{_0x2857a3[_0x4c52('0x3a')](_0x303e64,{'range':_0xfd34f1});});}[_0x4c52('0xfe')](_0x3a4eb8){const _0x7d5a00=_0x3a4eb8['id'],_0x39722a=this[_0x4c52('0x10')][_0x4c52('0x138')][_0x4c52('0xe4')](_0x4c52('0x62'));this[_0x4c52('0x108')]['hasCommentThread'](_0x7d5a00)||this['_commentsRepository'][_0x4c52('0x79')]({'channelId':_0x39722a,'threadId':_0x7d5a00,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x51e99a=this[_0x4c52('0x108')]['getCommentThread'](_0x7d5a00);_0x51e99a[_0x4c52('0x5a')]('isRemovable'),_0x51e99a['isRemovable']=!0x1,_0x3a4eb8[_0x4c52('0x68')]=_0x51e99a;}[_0x4c52('0x113')](_0xb57be9,_0x31c236,_0x1ccf2b,_0x3bb093){if(_0xb57be9[_0x4c52('0xa3')]!=_0x31c236||_0xb57be9[_0x4c52('0x37')]!=_0x1ccf2b||_0xb57be9[_0x4c52('0xbe')]['id']!=_0x3bb093)throw this[_0x4c52('0x10')][_0x4c52('0x57')]('track-changes-suggestion-data-mismatch'),new _0x1b57cc('track-changes-suggestion-data-mismatch',this);}[_0x4c52('0x7d')](_0x57fd38,_0x2cb560){const _0xc0b529=_0x57fd38[_0x4c52('0x66')]();if(_0x2cb560[_0x4c52('0x1e')](_0xc0b529))_0x57fd38['removeMarkers']();else{if(_0xc0b529[_0x4c52('0xf3')](_0x2cb560)){const _0x1c06f2=this['_model'][_0x4c52('0xfb')](_0x2cb560[_0x4c52('0xdb')][_0x4c52('0xbd')],'end');this[_0x4c52('0xd7')](_0x57fd38,this[_0x4c52('0x29')][_0x4c52('0x77')](_0xc0b529[_0x4c52('0xdb')],_0x1c06f2));const _0x3b4bb4=_0x1e91a8(),_0x3b64c1=_0x57fd38[_0x4c52('0xbe')]['id'],_0x3da2fe=_0x57fd38[_0x4c52('0xa3')]+':'+_0x57fd38[_0x4c52('0x37')];this[_0x4c52('0x5c')]({'id':_0x3b4bb4,'type':_0x3da2fe,'createdAt':new Date(),'authorId':_0x3b64c1,'data':_0x57fd38['data'],'attributes':_0x57fd38['attributes']});const _0x3bf628=this[_0x4c52('0x29')]['createPositionAt'](_0x2cb560['end'][_0x4c52('0x98')],'after'),_0x431ecc=this[_0x4c52('0x29')][_0x4c52('0x77')](_0x3bf628,_0xc0b529[_0x4c52('0x27')]);this[_0x4c52('0x55')](_0x3da2fe,_0x3b4bb4,_0x3b64c1,_0x431ecc);}else{if(_0xc0b529[_0x4c52('0x5b')](_0x2cb560[_0x4c52('0xdb')])){const _0x4838ff=this['_model'][_0x4c52('0xfb')](_0x2cb560[_0x4c52('0xdb')][_0x4c52('0xbd')],_0x4c52('0x27'));this[_0x4c52('0xd7')](_0x57fd38,this[_0x4c52('0x29')][_0x4c52('0x77')](_0xc0b529[_0x4c52('0xdb')],_0x4838ff));}else{const _0x555e5b=this['_model']['createPositionAt'](_0x2cb560['end']['parent'],_0x4c52('0xb4'));this[_0x4c52('0xd7')](_0x57fd38,this['_model'][_0x4c52('0x77')](_0x555e5b,_0xc0b529['end']));}}}}[_0x4c52('0x6a')](_0x54f27a){for(const {suggestion:_0x20b48a,meta:_0x231c3d}of this['_findSuggestions'](_0x54f27a,_0x4c52('0x102'))){if(!_0x231c3d[_0x4c52('0x120')])continue;const _0x232eb1=_0x20b48a[_0x4c52('0x4b')]();for(const _0x50dfa1 of _0x232eb1)if(!_0x54f27a[_0x4c52('0x12f')](_0x50dfa1)['length'])return!0x0;}return!0x1;}[_0x4c52('0xb5')](_0x137cec){const _0x18ffef=this['editor'][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74'))['getUser'](_0x137cec);if(!_0x18ffef)throw new _0x1b57cc(_0x4c52('0x38'),this);return _0x18ffef;}[_0x4c52('0x16')](_0x2f8cf1){const _0x16b01b=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74')),_0x4d1a35=_0x24249f(_0x4c52('0xad')+_0x2f8cf1),_0x53001f=_0x16b01b[_0x4c52('0x8a')](_0x4d1a35);return _0x53001f||_0x16b01b[_0x4c52('0x11d')]({'id':_0x4d1a35,'name':_0x2f8cf1});}[_0x4c52('0x8d')](_0x538f1f,_0x3fd911,_0x35487c,_0x46040b,_0x307ed0){const _0x4b7897=this[_0x4c52('0xb5')](_0x46040b),_0x3d31f1=this[_0x4c52('0x109')]['buildSuggestion'](_0x538f1f,_0x3fd911,_0x35487c,_0x4b7897,_0x307ed0,_0x5e38c7=>this['_updateSuggestionData'](_0x35487c,{'attributes':_0x5e38c7}));return this[_0x4c52('0x73')](_0x3d31f1,_0x4c52('0x130'),()=>{this['_updateSuggestionData'](_0x35487c,{'state':_0x4c52('0x80')});},{'priority':_0x4c52('0xa0')}),this[_0x4c52('0x73')](_0x3d31f1,_0x4c52('0x103'),()=>{this['_updateSuggestionData'](_0x35487c,{'state':_0x4c52('0x4a')});},{'priority':_0x4c52('0xa0')}),this[_0x4c52('0xd2')]['set'](_0x35487c,_0x3d31f1),this[_0x4c52('0x106')][_0x4c52('0x36')](_0x3d31f1,_0x4c52('0x10d')),_0x3d31f1;}[_0x4c52('0x7a')](_0x1698d2){const _0x94e33a=_0x1698d2[_0x4c52('0x46')](':');return{'group':_0x94e33a[0x0],'type':_0x94e33a[0x1],'subType':_0x94e33a[_0x4c52('0x132')]>=0x5?_0x94e33a[0x2]:null,'id':_0x94e33a[_0x4c52('0x132')]<0x5?_0x94e33a[0x2]:_0x94e33a[0x3],'authorId':_0x94e33a[_0x4c52('0x132')]<0x5?_0x94e33a[0x3]:_0x94e33a[0x4],'markerCount':0x6==_0x94e33a[_0x4c52('0x132')]?_0x94e33a[0x5]:null};}['_breakSuggestionMarker'](_0x5880c8,_0x43fbda,_0x540ed4){const _0x12d1cd=_0x5880c8['getFirstRange'](),_0x23a2f6=_0x12d1cd[_0x4c52('0xdb')],_0x57f137=_0x12d1cd[_0x4c52('0x27')];this[_0x4c52('0xd7')](_0x5880c8,this['_model'][_0x4c52('0x77')](_0x23a2f6,_0x43fbda));const _0x3d1ec7=_0x1e91a8(),_0x10d35a=_0x5880c8[_0x4c52('0xbe')]['id'],_0x5011aa=_0x5880c8[_0x4c52('0xa3')]+(_0x5880c8[_0x4c52('0x37')]?':'+_0x5880c8[_0x4c52('0x37')]:'');this[_0x4c52('0x5c')]({'id':_0x3d1ec7,'type':_0x5011aa,'createdAt':new Date(),'authorId':_0x10d35a,'originalSuggestionId':_0x5880c8['id'],'attributes':_0x5880c8['attributes'],'data':_0x5880c8[_0x4c52('0xc7')]}),_0x4c52('0x12e')==_0x5880c8[_0x4c52('0xa3')]&&(_0x540ed4=this[_0x4c52('0x29')][_0x4c52('0xc4')](_0x540ed4[_0x4c52('0x98')])),this[_0x4c52('0x55')](_0x5011aa,_0x3d1ec7,_0x10d35a,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x540ed4,_0x57f137));}[_0x4c52('0x96')](_0x5b41ad,_0x38ee24=null){const _0x29c319=[],_0x30d3a8=this[_0x4c52('0x29')]['schema'],_0x96545f=this[_0x4c52('0x10')]['plugins'][_0x4c52('0xe4')](_0x4c52('0x74'))['me'];for(const _0x2e4336 of this[_0x4c52('0xf8')]())if(_0x2e4336[_0x4c52('0x21')]&&(!_0x38ee24||_0x2e4336[_0x4c52('0xa3')]==_0x38ee24))for(const _0x45bc79 of _0x2e4336[_0x4c52('0x4b')]()){const _0xd83488=_0x5b41ad['start'][_0x4c52('0x1e')](_0x45bc79[_0x4c52('0x27')])||_0x5b41ad[_0x4c52('0x27')][_0x4c52('0x1e')](_0x45bc79[_0x4c52('0xdb')]);if(_0xd83488||_0x5b41ad['getIntersection'](_0x45bc79)){const _0x5f4686=_0x5b41ad['containsRange'](_0x45bc79)&&Bt(_0x30d3a8,_0x45bc79[_0x4c52('0xdb')],_0x5b41ad),_0x367366=_0x45bc79[_0x4c52('0xf3')](_0x5b41ad)&&Bt(_0x30d3a8,_0x5b41ad[_0x4c52('0xdb')],_0x45bc79);_0x29c319[_0x4c52('0x107')]({'suggestion':_0x2e4336,'meta':{'isOwn':_0x96545f==_0x2e4336[_0x4c52('0xcb')],'isNextTo':_0xd83488,'isInsideObject':_0x5f4686,'containsRangeInObject':_0x367366}});break;}}return _0x29c319;}[_0x4c52('0x55')](_0x337b1e,_0x23d310,_0x5ec472,_0x75d987,_0x29a422){this[_0x4c52('0x29')][_0x4c52('0x32')](_0x110856=>{let _0x182417=_0x4c52('0x81')+_0x337b1e+':'+_0x23d310+':'+_0x5ec472;_0x29a422&&(_0x182417=_0x182417+':'+_0x29a422),_0x110856[_0x4c52('0x3e')](_0x182417,{'range':_0x75d987,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x347281){const _0x5e8e0a=_0x347281[_0x4c52('0xe5')],_0x14675b=_0x347281[_0x4c52('0x125')];_0x347281[_0x4c52('0xe5')]=null,null!=_0x5e8e0a&&(_0x5e8e0a[_0x4c52('0x125')]=null),_0x347281['next']=null,null!=_0x14675b&&(_0x14675b['previous']=null),_0x4c52('0x13a')==this[_0x4c52('0x106')][_0x4c52('0xe4')](_0x347281)&&(this['_suggestionState']['set'](_0x347281,_0x4c52('0x70')),this[_0x4c52('0x4')](_0x4c52('0xac'),_0x347281,_0x5e8e0a,_0x14675b));}[_0x4c52('0x5c')](_0x4ba8ca){const _0x37be62=_0x4ba8ca['id'],_0x1481c1=this[_0x4c52('0x93')](_0x4ba8ca);if(this[_0x4c52('0x6f')]&&this[_0x4c52('0x6f')]['addSuggestion']){const _0x13e0b6=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x10f')),_0x35dbf5=_0x1481c1[_0x4c52('0x100')],_0x2c0f8c=_0x1481c1[_0x4c52('0x37')]?_0x1481c1['type']+':'+_0x1481c1['subType']:_0x1481c1['type'],_0x37a704=this[_0x4c52('0x10')][_0x4c52('0xa9')],_0x9eb181=_0x13e0b6[_0x4c52('0x1f')](_0x495697(_0x37a704,'PENDING_ACTION_SUGGESTION')),_0x570c7c={'id':_0x37be62,'type':_0x2c0f8c,'hasComments':_0x35dbf5,'data':_0x4ba8ca[_0x4c52('0xc7')]||null,'originalSuggestionId':_0x4ba8ca['originalSuggestionId']||null,'attributes':_0x1481c1['attributes']};this[_0x4c52('0x6f')]['addSuggestion'](_0x570c7c)['then'](_0x155ec6=>{_0x1481c1[_0x4c52('0x54')]=!0x0,_0x13e0b6['remove'](_0x9eb181),_0x155ec6&&_0x155ec6[_0x4c52('0x26')]&&(this['_suggestions'][_0x4c52('0xe4')](_0x37be62)[_0x4c52('0x26')]=_0x155ec6[_0x4c52('0x26')]);})[_0x4c52('0x4e')](_0x3d377e=>{throw _0x111092(_0x4c52('0xfa')),this[_0x4c52('0x10')][_0x4c52('0x51')][_0x4c52('0x95')]({'isUndoable':!0x1},()=>{_0x1481c1[_0x4c52('0x103')]();}),_0x1481c1[_0x4c52('0xa')](),this[_0x4c52('0xd2')][_0x4c52('0x64')](_0x1481c1['id']),this[_0x4c52('0x106')][_0x4c52('0x64')](_0x1481c1),_0x3d377e;});}return _0x1481c1;}[_0x4c52('0x7b')](_0xd1fecb,_0x8050dc){const _0x299e8d=this['editor'][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x10f')),_0x4e23e4=this[_0x4c52('0x7e')](_0xd1fecb);if(this[_0x4c52('0x6f')]&&this['_adapter'][_0x4c52('0xd0')]){if(_0x4e23e4[_0x4c52('0x54')]){const _0x203833=_0x299e8d[_0x4c52('0x1f')](_0x495697(this[_0x4c52('0x10')][_0x4c52('0xa9')],_0x4c52('0x41')));this[_0x4c52('0x6f')]['updateSuggestion'](_0xd1fecb,_0x8050dc)['then'](()=>{_0x299e8d[_0x4c52('0x52')](_0x203833);});}else _0x4e23e4['on']('change:_saved',()=>{this[_0x4c52('0x7b')](_0xd1fecb,_0x8050dc);});}}['_getSuggestionData'](_0x40d96f){if(!this['_adapter']||!this[_0x4c52('0x6f')][_0x4c52('0x7e')])throw new _0x1b57cc(_0x4c52('0x59'),this);return this[_0x4c52('0x6f')][_0x4c52('0x7e')](_0x40d96f);}[_0x4c52('0x45')](_0x57eedc){const {id:_0x2a4426,type:_0x199d85,subType:_0x1601a2,authorId:_0xef3ba8}=this[_0x4c52('0x7a')](_0x57eedc),_0x3fe3da=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x2a4426)||this[_0x4c52('0x8d')](_0x199d85,_0x1601a2,_0x2a4426,_0xef3ba8,{});switch(this[_0x4c52('0x113')](_0x3fe3da,_0x199d85,_0x1601a2,_0xef3ba8),this[_0x4c52('0x106')][_0x4c52('0xe4')](_0x3fe3da)){case _0x4c52('0x10d'):this[_0x4c52('0xdc')](_0x2a4426)['then'](_0x1e008c=>{let _0x46e86b=Promise['resolve']();_0x1e008c[_0x4c52('0x100')]&&(_0x46e86b=this['_commentsRepository'][_0x4c52('0x88')]({'channelId':this[_0x4c52('0x10')]['config'][_0x4c52('0xe4')]('collaboration.channelId'),'threadId':_0x2a4426})),_0x46e86b[_0x4c52('0x67')](()=>{this[_0x4c52('0x93')](_0x1e008c)['_saved']=!0x0;});}),this[_0x4c52('0x106')][_0x4c52('0x36')](_0x3fe3da,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2a4426,{'state':'open'});case _0x4c52('0x9b'):this[_0x4c52('0x106')][_0x4c52('0x36')](_0x3fe3da,_0x4c52('0x13a')),this[_0x4c52('0x4')](_0x4c52('0xc9'),_0x3fe3da);break;case'ready':this[_0x4c52('0x4')](_0x4c52('0x105'),_0x3fe3da);}return _0x3fe3da[_0x4c52('0x17')](_0x57eedc),_0x3fe3da;}[_0x4c52('0x40')](_0x120068){const _0x1a53ef=Array[_0x4c52('0x99')](_0x120068)['filter'](_0x2256c2=>!_0x2256c2[_0x4c52('0x12b')]),_0x1c736d=this[_0x4c52('0xf8')]({'skipNotAttached':!0x0})[_0x4c52('0x49')](_0x1f38c6=>!_0x1f38c6[_0x4c52('0x12b')]),_0x23ed4f=_0x1c736d[_0x4c52('0x49')](_0x211534=>!_0x120068[_0x4c52('0xaa')](_0x211534)),_0x4790c5=new Map(_0x1c736d[_0x4c52('0x115')](_0x18072c=>[_0x18072c,this['_suggestionFactory']['getSuggestionCallback'](_0x18072c[_0x4c52('0xa3')],_0x18072c['subType'],_0x4c52('0xb3'))])),_0x22fc80=new Map(_0x1c736d[_0x4c52('0x115')](_0x2b7b7f=>[_0x2b7b7f,_0x2b7b7f[_0x4c52('0x66')]()])),_0x320ec7=new Set(),_0x80f6f9=new Set();for(let _0xd4a006=0x0;_0xd4a006<_0x1a53ef[_0x4c52('0x132')];_0xd4a006++)_0x3f42d0(_0x1a53ef[_0xd4a006],_0x1a53ef,_0xd4a006+0x1);for(let _0x5ec500=0x0;_0x5ec500<_0x1a53ef[_0x4c52('0x132')];_0x5ec500++)_0x3f42d0(_0x1a53ef[_0x5ec500],_0x23ed4f,0x0);for(let _0x22d763=0x0;_0x22d763<_0x1a53ef[_0x4c52('0x132')];_0x22d763++){const _0x5f1f42=_0x1a53ef[_0x22d763];!_0x80f6f9[_0x4c52('0xaa')](_0x5f1f42)&&_0x5f1f42[_0x4c52('0xe5')]&&(_0x5f1f42[_0x4c52('0xe5')][_0x4c52('0x125')]===_0x5f1f42&&(_0x5f1f42['previous'][_0x4c52('0x125')]=null),_0x5f1f42[_0x4c52('0xe5')]=null),!_0x320ec7[_0x4c52('0xaa')](_0x5f1f42)&&_0x5f1f42[_0x4c52('0x125')]&&(_0x5f1f42['next'][_0x4c52('0xe5')]===_0x5f1f42&&(_0x5f1f42['next'][_0x4c52('0xe5')]=null),_0x5f1f42[_0x4c52('0x125')]=null);}function _0x3f42d0(_0xe5424f,_0x30e330,_0x21ce56){for(let _0x33ef54=_0x21ce56;_0x33ef54<_0x30e330[_0x4c52('0x132')];_0x33ef54++){const _0x144329=_0x52a5e4(_0xe5424f,_0x30e330[_0x33ef54]);_0x144329&&(_0x144329[0x0][_0x4c52('0x125')]=_0x144329[0x1],_0x144329[0x1]['previous']=_0x144329[0x0],_0x320ec7[_0x4c52('0x1f')](_0x144329[0x0]),_0x80f6f9[_0x4c52('0x1f')](_0x144329[0x1]));}}function _0x52a5e4(_0x1032db,_0x50127f){if(_0x1032db[_0x4c52('0xcb')]['id']!==_0x50127f[_0x4c52('0xcb')]['id'])return null;const _0x38cdc3=_0x4790c5['get'](_0x1032db)(_0x1032db,_0x50127f,_0x22fc80[_0x4c52('0xe4')](_0x1032db),_0x22fc80[_0x4c52('0xe4')](_0x50127f));if(!_0x38cdc3)return null;return _0x4790c5[_0x4c52('0xe4')](_0x50127f)(_0x1032db,_0x50127f,_0x22fc80['get'](_0x1032db),_0x22fc80[_0x4c52('0xe4')](_0x50127f))?_0x38cdc3[0x1][_0x4c52('0x68')]&&_0x38cdc3[0x1][_0x4c52('0x68')][_0x4c52('0x132')]?null:_0x38cdc3:null;}}[_0x4c52('0x12c')](_0x450051){const _0x5b6e68=Array['from'](_0x450051),_0x74bc68=this[_0x4c52('0xf8')]({'skipNotAttached':!0x0}),_0x4d8dcc=_0x74bc68['filter'](_0x4deb50=>!_0x450051[_0x4c52('0xaa')](_0x4deb50)),_0x574ee6=new Map(_0x5b6e68['map'](_0x1155b3=>[_0x1155b3,this[_0x4c52('0x109')]['getSuggestionCallback'](_0x1155b3[_0x4c52('0xa3')],_0x1155b3[_0x4c52('0x37')],'join')])),_0x2fd7ca=new Map(_0x74bc68[_0x4c52('0x115')](_0x4315cb=>[_0x4315cb,_0x4315cb['getRanges']()]));for(let _0x38e4fd=0x0;_0x38e4fd<_0x5b6e68['length'];_0x38e4fd++){if(_0x11905d(this,_0x5b6e68[_0x38e4fd],_0x5b6e68,_0x38e4fd+0x1))return!0x0;}for(let _0x1e0ce7=0x0;_0x1e0ce7<_0x5b6e68['length'];_0x1e0ce7++){if(_0x11905d(this,_0x5b6e68[_0x1e0ce7],_0x4d8dcc,0x0))return!0x0;}return!0x1;function _0x11905d(_0x209597,_0x5eac68,_0x5606c9,_0x141393){for(let _0x32cb86=_0x141393;_0x32cb86<_0x5606c9[_0x4c52('0x132')];_0x32cb86++){const _0x3199e9=_0x5606c9[_0x32cb86];if(_0x3199e9[_0x4c52('0xa3')]!==_0x5eac68[_0x4c52('0xa3')]||_0x3199e9[_0x4c52('0xcb')]['id']!==_0x5eac68['author']['id']||_0x3199e9['subType']!==_0x5eac68[_0x4c52('0x37')])continue;const _0x20d200=_0x574ee6[_0x4c52('0xe4')](_0x5eac68),_0x24ce92=_0x2fd7ca[_0x4c52('0xe4')](_0x5eac68),_0x3b96e7=_0x2fd7ca[_0x4c52('0xe4')](_0x3199e9),_0x3aadc0=_0x5eac68[_0x4c52('0x68')]&&_0x5eac68[_0x4c52('0x68')][_0x4c52('0x132')],_0x59ceea=_0x3199e9[_0x4c52('0x68')]&&_0x3199e9[_0x4c52('0x68')][_0x4c52('0x132')];if(!_0x3aadc0&&_0x20d200(_0x3b96e7,_0x24ce92))return _0x209597['_joinSuggestions'](_0x3199e9,_0x5eac68),_0x2fd7ca[_0x4c52('0x64')](_0x5eac68),!0x0;if(!_0x59ceea&&_0x20d200(_0x24ce92,_0x3b96e7))return _0x209597[_0x4c52('0xb2')](_0x5eac68,_0x3199e9),_0x2fd7ca[_0x4c52('0x64')](_0x3199e9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x6f00e7,_0xe8d82){if(_0x6f00e7[_0x4c52('0x12b')])for(const _0x4b3751 of _0xe8d82[_0x4c52('0x4b')]())_0x6f00e7[_0x4c52('0x4f')](_0x4b3751);else{const _0x339621=_0xe8d82['getFirstRange']()['end'];this[_0x4c52('0xd7')](_0x6f00e7,this['_model'][_0x4c52('0x77')](_0x6f00e7[_0x4c52('0x66')]()[_0x4c52('0xdb')],_0x339621));}_0xe8d82[_0x4c52('0xd1')]();}}class Dt{constructor(_0x409507){this[_0x4c52('0xdf')]=_0x409507,this[_0x4c52('0x29')]=_0x409507['model'],this['_customCallbacks']=new Map(),this[_0x4c52('0x65')]=new Map(),this[_0x4c52('0x11f')]();}['buildSuggestion'](_0x27f68e,_0x2232a4,_0x2d115d,_0x264b54,_0x486786,_0x3b44ae){return new _0x24016f(this['_model'],{'type':_0x27f68e,'subType':_0x2232a4,'id':_0x2d115d,'author':_0x264b54,'creator':_0x264b54,'attributes':_0x486786,'onAttributesChange':_0x3b44ae,'onAccept':(..._0x4d3f09)=>this[_0x4c52('0xaf')](_0x27f68e,_0x2232a4,'accept')(..._0x4d3f09),'onDiscard':(..._0x17c646)=>this['getSuggestionCallback'](_0x27f68e,_0x2232a4,_0x4c52('0x103'))(..._0x17c646)});}[_0x4c52('0x127')](_0x40a14e,_0x3ca6c9,_0x3b4cb0,_0x51c3b8){const _0x10125a=_0x40a14e+':'+_0x3ca6c9+':'+_0x3b4cb0;this[_0x4c52('0x2a')][_0x4c52('0x36')](_0x10125a,_0x51c3b8);}[_0x4c52('0xaf')](_0xee8267,_0x2e4464,_0x50a0ef){const _0x494498=_0xee8267+':'+_0x2e4464+':'+_0x50a0ef;return this['_customCallbacks'][_0x4c52('0xe4')](_0x494498)||this[_0x4c52('0x65')][_0x4c52('0xe4')](_0xee8267+':'+_0x50a0ef);}[_0x4c52('0x11f')](){const _0x2a1799=()=>{},_0x408276=_0x418da5=>{_0x418da5['sort']((_0x2d7699,_0x54233f)=>_0x2d7699[_0x4c52('0xdb')][_0x4c52('0x15')](_0x54233f[_0x4c52('0xdb')])?0x1:-0x1),this[_0x4c52('0x29')]['change'](_0x4e76cf=>{for(const _0x302b62 of _0x418da5){let _0x2b2b18;_0x2b2b18=_0x302b62[_0x4c52('0x27')]['isAtEnd']&&_0x302b62[_0x4c52('0x27')][_0x4c52('0x98')]==_0x302b62['start']['nodeAfter']?_0x4e76cf[_0x4c52('0xf5')](_0x302b62[_0x4c52('0xdb')][_0x4c52('0x12a')],'on'):_0x4e76cf[_0x4c52('0xf5')](_0x302b62),this[_0x4c52('0x29')][_0x4c52('0x128')](_0x2b2b18,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x59b627=(_0x520198,_0x266870)=>{this['_model'][_0x4c52('0x32')](_0xe1eb0a=>{const {commandName:_0x29d758,commandParams:_0x4e26e6=[]}=_0x266870,_0x1a4c3c=_0x520198[_0x4c52('0x115')](_0xcab3cb=>(_t(_0xcab3cb)&&(_0xcab3cb=this['_model'][_0x4c52('0x77')](_0xcab3cb[_0x4c52('0x27')])),_0xcab3cb))['filter'](_0xd6e229=>_0x4c52('0x53')!==_0xd6e229['root'][_0x4c52('0xa7')]);if(_0x1a4c3c[_0x4c52('0x132')]<0x1)return;const _0xc425b0=Array['from'](this[_0x4c52('0x29')][_0x4c52('0xba')][_0x4c52('0x6e')][_0x4c52('0x4b')]())[_0x4c52('0x115')](_0x3ad6d6=>_0x10252d[_0x4c52('0x89')](_0x3ad6d6));_0xe1eb0a[_0x4c52('0x13b')](_0x1a4c3c);for(const _0x10cea6 of this[_0x4c52('0xdf')][_0x4c52('0x24')][_0x4c52('0x24')]())_0x10cea6['refresh']();_0x4e26e6['push']({'forceDefaultExecution':!0x0}),this[_0x4c52('0xdf')][_0x4c52('0x43')](_0x29d758,..._0x4e26e6);const _0x7ff616=_0xc425b0[_0x4c52('0x49')](_0x440b05=>_0x4c52('0x53')!=_0x440b05[_0x4c52('0xe')][_0x4c52('0xa7')]);_0x7ff616[_0x4c52('0x132')]>0x0&&_0xe1eb0a[_0x4c52('0x13b')](_0x7ff616);for(const _0x3c9538 of _0xc425b0)_0x3c9538['detach']();});},_0xc3cd9a=(_0x3c6ec2,_0x421220)=>0x1==_0x3c6ec2['length']&&0x1==_0x421220[_0x4c52('0x132')]&&_0x3c6ec2[0x0][_0x4c52('0x27')][_0x4c52('0x1e')](_0x421220[0x0][_0x4c52('0xdb')]),_0x421166=(_0x2506e5,_0x3d383e,_0xf0da28,_0x3f3fe4)=>xt(_0x2506e5,_0x3d383e,_0xf0da28,_0x3f3fe4,this[_0x4c52('0x29')])?[_0x2506e5,_0x3d383e]:xt(_0x3d383e,_0x2506e5,_0x3f3fe4,_0xf0da28,this[_0x4c52('0x29')])?[_0x3d383e,_0x2506e5]:null;this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0xcd'),_0x2a1799),this[_0x4c52('0x65')]['set'](_0x4c52('0xa8'),_0x408276),this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0x1'),_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0xbc'),_0x421166),this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0x8e'),_0x408276),this[_0x4c52('0x65')][_0x4c52('0x36')]('deletion:discard',_0x2a1799),this[_0x4c52('0x65')][_0x4c52('0x36')]('deletion:join',_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0xef'),_0x421166),this['_defaultCallbacks'][_0x4c52('0x36')](_0x4c52('0x133'),_0x59b627),this[_0x4c52('0x65')][_0x4c52('0x36')]('formatInline:discard',_0x2a1799),this[_0x4c52('0x65')]['set']('formatInline:join',_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0xc0'),_0x2a1799),this[_0x4c52('0x65')]['set'](_0x4c52('0x19'),_0x59b627),this['_defaultCallbacks'][_0x4c52('0x36')](_0x4c52('0x35'),_0x2a1799),this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0x7'),_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0x5e'),_0x2a1799);}}function Bt(_0x4c539a,_0x2a3b2f,_0x141fe7){for(const _0x28e36b of _0x2a3b2f[_0x4c52('0x98')][_0x4c52('0x44')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28e36b['root']==_0x28e36b)return!0x1;if(!_0x141fe7['containsItem'](_0x28e36b))return!0x1;if(_0x4c539a[_0x4c52('0x134')](_0x28e36b)||_0x4c539a[_0x4c52('0x39')](_0x28e36b))return!0x0;}return!0x1;}function _t(_0x2993ab){return _0x2993ab[_0x4c52('0x27')]['parent']==_0x2993ab[_0x4c52('0xdb')][_0x4c52('0x12a')]&&_0x2993ab[_0x4c52('0x27')][_0x4c52('0x11b')];}function Mt(_0x356790,_0x523409,_0x3f8619,_0x11bf19){const _0x22e91a=_0x17252d=>!_0x17252d[_0x4c52('0xb8')]['is'](_0x4c52('0x9d'))&&!_0x11bf19[_0x4c52('0x134')](_0x17252d[_0x4c52('0xb8')]),_0x18ef1e=_0x356790[_0x4c52('0xdb')]['getLastMatchingPosition'](_0x22e91a),_0x53dfed=_0x356790['end'][_0x4c52('0x42')](_0x22e91a,{'direction':_0x4c52('0xe6')});return(!_0x356790[_0x4c52('0xdb')][_0x4c52('0x1e')](_0x18ef1e)||!_0x356790[_0x4c52('0x27')][_0x4c52('0x1e')](_0x53dfed))&&(_0x18ef1e[_0x4c52('0x15')](_0x53dfed)?_0x3f8619['updateMarker'](_0x523409,{'range':_0x3f8619[_0x4c52('0x77')](_0x18ef1e,_0x53dfed)}):_0x3f8619[_0x4c52('0xf7')](_0x523409),!0x0);}function $t(_0x16a7eb){return _0x24249f(_0x16a7eb);}function Nt(_0xe689c2){const _0x4d6dc0=_0xe689c2['start'][_0x4c52('0x12a')];return _0x4d6dc0&&_0x4d6dc0['is'](_0x4c52('0xb'));}function Rt(_0x190991,_0x40538c){const _0x4ec045=_0x40538c[_0x4c52('0x3b')][_0x4c52('0x134')](_0x190991)||_0x40538c[_0x4c52('0x3b')][_0x4c52('0xb1')](_0x190991);return _0x40538c[_0x4c52('0x77')](_0x40538c[_0x4c52('0xfb')](_0x190991,'before'),_0x4ec045?_0x40538c['createPositionAfter'](_0x190991):_0x40538c['createPositionAt'](_0x190991,_0x4c52('0x27')));}function xt(_0x177de4,_0x374c90,_0x155e04,_0x39d3c8,_0xbdae1e){if(_0x155e04[_0x4c52('0x27')][_0x4c52('0x1e')](_0x39d3c8['start']))return!0x0;if(_0x177de4[_0x4c52('0xa3')]!=_0x374c90[_0x4c52('0xa3')])return!0x1;if(!_0x155e04[_0x4c52('0x27')][_0x4c52('0x31')](_0x39d3c8[_0x4c52('0xdb')]))return!0x1;const _0x31bee4=_0xbdae1e['createRange'](_0x155e04[_0x4c52('0x27')],_0x39d3c8[_0x4c52('0xdb')])['getWalker']();for(const _0x445a3e of _0x31bee4)if([_0x4c52('0x5d'),_0x4c52('0x71')][_0x4c52('0xc8')](_0x445a3e[_0x4c52('0xa3')])&&_0xbdae1e[_0x4c52('0x3b')][_0x4c52('0x39')](_0x445a3e[_0x4c52('0xb8')]))return!0x1;return!0x0;}