@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230805.0 → 0.0.0-nightly-20230806.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-20230806.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-20230806.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230806.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 _0x3350=['track-changes-user-not-found','createPositionBefore','pluginName','isIntersectingWithRange','execute','acceptAllSuggestions','upcast','lowest','_saved','reconvertMarker','error-saving-suggestion-data-suggestion-discarded','isEqual','highest','change:activeMarkers','change','getSuggestion','document','suggestionLoaded','markMultiRangeInsertion','_enabledCommands','isTouching','addCommentThread','markerNameToElements','_breakSuggestionMarker','open','isNextTo','discardSuggestion','data','containsRange','insertion:discard','addMarker:suggestion','isBefore','stopListening','includes','conversion','discardSelectedSuggestions','removed','writer','track-changes-suggestion-not-found','author','deletion:','join','isObject','next','config','track-changes-suggestion-data-mismatch','attributes','return','oldRange','addMarker:suggestion:formatBlock','default','multi','_splitMarkerName','getNearestSelectionRange','registerPostFixer','_getAuthorFromId','removeMarker','get','_customCallbacks','length','nodeBefore','suggestionChanged','type','some','markerName','_suggestionFactory','_addSuggestionMarker','isLocal','consume','acceptSelectedSuggestions','editing','markDeletion','addClass','_handleNewSuggestionMarker','commandName','getShiftedBy','from','PendingActions','low','ck-suggestion-marker-formatBlock','hasCommentThread','CommentsRepository','createPositionAfter','data-suggestion','isAtEnd','_mergeNestedSuggestions','filter','adapter','locale','listenTo','after','containsRangeInObject','item','size','formatInline:accept','splitPosition','track-changes-adapter-missing-getsuggestion','insertContent','$graveyard','split','previous','formatInline:chain','markerToData','rejected','dataDowncast','substr','getFirstMarker','_onDiscard','getMarkers','getRange','parent','getDifference','howMany','name','addMarkerName','addHighlight','markerToHighlight','markMultiRangeDeletion','never','forceDefaultExecution','consumable','setSelection','set','accepted','insertion:chain','for','remove','map','_setSuggestionData','elementEnd','registerCustomCallback','TrackChangesEditing','requires','every','getWalker','insertion:','change:data','_findSuggestions','widget','addUser','unbindElementFromMarkerName','_model','update:suggestion','isAfter','containsItem','hasComments','showSuggestionHighlights','_refreshSuggestionsChain','isInsideObject','markInlineFormat','formatInline:','sort','formatGroupId','getLastMatchingPosition','isCollapsed','getRanges','getCommentThread','activeMarkers','ck-suggestion-marker--active','getMultiRangeId','formatInline:join','head','removeAttribute','getAttribute','isMultiRange','deletion:join','_suggestionState','ck-suggestion-marker','_trackFormatChanges','insert','createRangeIn','marker-count','_removeSuggestion','then','deleteContent','markMultiRangeBlockFormat','getChangedMarkers','getCustomProperty','end','removeClass','trackChanges.trackFormatChanges','mapper','root','toJSON','detach','_updateSuggestionData','fire','createRange','multipleBlocks','subType','_joinWithAdjacentSuggestions','collaboration.channelId','markerReady','options','acceptSuggestion','Users','selection','createSelection','getUser','rethrowUnexpectedError','accept','getSuggestionCallback','add','catch','removeMarkers','isBlock','fromCharCode','clone','ck-suggestion-marker-','resolve','hasSuggestion','differ','markInsertion','addMarker','addRange','_joinSuggestions','ready','_commentsRepository','isUndo','documentSelection','enqueueChange','suggestion','high','newRange','trackChanges.mergeNestedSuggestions','elementStart','fetchCommentThread','getSuggestions','editor','normal','isRemovable','buildSuggestion','batch','position','markers','isOwn','start','_createSuggestion','_checkSuggestionCorrectness','addSuggestion','commentThread','skipNestingCheck','authoredAt','_getSuggestionData','move','_adapter','suggestion-type','formatBlock:','suggestionUnloaded','editingDowncast','stop','before','isInContent','createdAt','deletion','notReady','commands','define','getIntersection','dataReady','updateSuggestion','nodeAfter','enableCommand','originalSuggestionId','_getExternalAuthor','createPositionAt','_rangeIsInLocalUserInsertion','always','authorName','discardAllSuggestions','isLimit','markBlockFormat','has','_addThreadToSuggestion','discard','creator','model','trackChangesCommand','plugins','suggestion:','push','insertion','getAllAdjacentSuggestions','element','formatInline','PENDING_ACTION_SUGGESTION','_editor','_cutOutSuggestionMarker','toViewElement','track-changes-adapter-already-set','deletion:discard','formatBlock','updateMarker','_isForcedDefaultExecutionBlock','$textProxy','containerElement','targetPosition','insertion:accept','init','_registerDefaultCallbacks','clear','_setSuggestionRange','dataToMarker','addSuggestionData','values','getFirstRange','trackChanges','_defaultCallbacks','setAttribute','backward','schema','delete','_suggestions','range','rootName','@external','value','forward'];(function(_0xe069f,_0x335069){const _0x48acff=function(_0x45100f){while(--_0x45100f){_0xe069f['push'](_0xe069f['shift']());}};_0x48acff(++_0x335069);}(_0x3350,0x67));const _0x48ac=function(_0xe069f,_0x335069){_0xe069f=_0xe069f-0x0;let _0x48acff=_0x3350[_0xe069f];return _0x48acff;};import{Plugin as _0x325b73,PendingActions as _0x5ccb39}from'ckeditor5/src/core';import{LiveRange as _0x30323b}from'ckeditor5/src/engine';import{CKEditorError as _0x1f0e77,uid as _0x5dc213,priorities as _0x37fb3c,logWarning as _0xc4f741}from'ckeditor5/src/utils';import{toWidget as _0x19ac24}from'ckeditor5/src/widget';import{Users as _0x124309,hashObject as _0xdc36e}from'ckeditor5-collaboration/src/collaboration-core';import _0x23d5f0 from'./commands/trackchangescommand';import _0x258f1d from'./commands/acceptsuggestioncommand';import _0x38a68f from'./commands/discardsuggestioncommand';import _0x535104 from'./commands/executeonallsuggestionscommand';import _0x415ce7 from'./commands/executeonselectedsuggestionscommand';import _0x22d138 from'./suggestion';import _0x402a37 from'./suggestiondescriptionfactory';import _0x1bb794 from'./integrations/alignment';import _0x425e43 from'./integrations/basicstyles';import _0x4bb75f from'./integrations/blockquote';import _0x560460 from'./integrations/ckbox';import _0x1df489 from'./integrations/codeblock';import _0x2a522b from'./integrations/comments';import _0xbc8778 from'./integrations/deletecommand';import _0x31ea31 from'./integrations/documentlist';import _0x399c20 from'./integrations/entercommand';import _0x547b46 from'./integrations/findandreplace';import _0x1e61b5 from'./integrations/font';import _0x17d314 from'./integrations/formatpainter';import _0x1da30c from'./integrations/heading';import _0x3d6dd4 from'./integrations/highlight';import _0x15d2f0 from'./integrations/horizontalline';import _0x4411fa from'./integrations/htmlembed';import _0x245249 from'./integrations/image';import _0x4093cd from'./integrations/imagereplace';import _0x12386e from'./integrations/importword';import _0x3162a8 from'./integrations/indent';import _0x3362b8 from'./integrations/inputcommand';import _0xf31803 from'./integrations/link';import _0x307976 from'./integrations/list';import _0x4962ff from'./integrations/listproperties';import _0x260f77 from'./integrations/mediaembed';import _0x38a1f7 from'./integrations/mention';import _0x165782 from'./integrations/pagebreak';import _0x437530 from'./integrations/paragraph';import _0x543a79 from'./integrations/removeformat';import _0x246677 from'./integrations/restrictededitingmode';import _0x5329f3 from'./integrations/shiftentercommand';import _0x2faca1 from'./integrations/standardeditingmode';import _0x12c532 from'./integrations/style';import _0x2ef0c4 from'./integrations/table';import _0x263428 from'./integrations/tablemergesplit';import _0x2fd4a2 from'./integrations/tableheadings';import _0x134ab8 from'./integrations/tableclipboard';import _0x11d494 from'./integrations/tablecolumnresize';import _0x308f3a from'./integrations/template';import _0x25886c from'./integrations/tableofcontents';import _0x1a41a2 from'./integrations/title';import _0x3ea893 from'./integrations/undo';import{getTranslation as _0x56bead}from'./utils/common-translations';import _0x17509a from'./integrations/tablecaption';import _0x23f31b from'./integrations/documentlistproperties';import _0x3c777d from'./integrations/tableproperties';export default class p extends _0x325b73{static get[_0x48ac('0x1d')](){return['CommentsRepository',_0x124309,_0x5ccb39,_0x1bb794,_0x425e43,_0x4bb75f,_0x560460,_0x1df489,_0x2a522b,_0xbc8778,_0x31ea31,_0x23f31b,_0x399c20,_0x547b46,_0x1e61b5,_0x17d314,_0x1da30c,_0x3d6dd4,_0x15d2f0,_0x4411fa,_0x245249,_0x4093cd,_0x12386e,_0x3162a8,_0x3362b8,_0xf31803,_0x307976,_0x4962ff,_0x260f77,_0x38a1f7,_0x165782,_0x437530,_0x543a79,_0x246677,_0x5329f3,_0x2faca1,_0x12c532,_0x2ef0c4,_0x263428,_0x2fd4a2,_0x17509a,_0x134ab8,_0x11d494,_0x25886c,_0x3c777d,_0x308f3a,_0x1a41a2,_0x3ea893];}static get[_0x48ac('0xd9')](){return _0x48ac('0x1c');}constructor(_0xda8e46){function _0x1681d6(_0x430ae5){return _0x430ae5[_0x48ac('0x18')](_0x1cde7d=>String[_0x48ac('0x67')](_0x1cde7d))[_0x48ac('0x100')]('');}super(_0xda8e46),this['set'](_0x48ac('0x36'),[]),this['on'](_0x48ac('0xe4'),(_0xe28ebf,_0x38f046,_0x4afb57,_0xd41ef7)=>{this[_0x48ac('0x26')][_0x48ac('0xe5')](()=>{for(const _0xb70931 of[..._0xd41ef7,..._0x4afb57])this['_model'][_0x48ac('0x83')]['has'](_0xb70931)&&_0xda8e46[_0x48ac('0x11d')][_0x48ac('0xe0')](_0xb70931);});}),this['_descriptionFactory']=new _0x402a37(this[_0x48ac('0x7d')][_0x48ac('0xad')][_0x48ac('0xcf')],this[_0x48ac('0x7d')][_0x48ac('0x12f')]),this[_0x48ac('0x8e')]=null,this[_0x48ac('0x118')]=new Dt(this[_0x48ac('0x7d')]),this[_0x48ac('0xd1')]=new Map(),this['_commentsRepository']=_0xda8e46[_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x128')),this[_0x48ac('0xea')]=new Set(),this[_0x48ac('0x26')]=this[_0x48ac('0x7d')][_0x48ac('0xad')],this[_0x48ac('0x3f')]=new WeakMap(),this[_0x48ac('0xbe')]=!0x1,_0xda8e46[_0x48ac('0x103')][_0x48ac('0x9a')]('trackChanges.trackFormatChanges',_0x48ac('0x109')),this[_0x48ac('0x41')]=_0xda8e46[_0x48ac('0x103')]['get'](_0x48ac('0x4d')),_0xda8e46['config'][_0x48ac('0x9a')](_0x48ac('0x79'),!0x0),this[_0x48ac('0x12c')]=_0xda8e46[_0x48ac('0x103')]['get'](_0x48ac('0x79')),this['trackChangesCommand']=new _0x23d5f0(_0xda8e46,this['_enabledCommands']),this[_0x1681d6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1681d6([0x34,0x30,0x34,0x36,0x31,0x36,0x31,0x32]);}[_0x48ac('0xc3')](){const _0x3de4d3=this['editor'];_0x3de4d3[_0x48ac('0xf9')][_0x48ac('0x16')]('editingDowncast')[_0x48ac('0xd')]({'model':_0x48ac('0x76'),'view':_0x3dc4ae=>{const {id:_0x2457f5,type:_0x15da98}=this[_0x48ac('0x10b')](_0x3dc4ae[_0x48ac('0x117')]),_0x48de71=[_0x48ac('0x40'),_0x48ac('0x69')+_0x15da98];let _0x2d1886=0xbb8;return this['activeMarkers'][_0x48ac('0xf8')](_0x3dc4ae[_0x48ac('0x117')])&&(_0x48de71[_0x48ac('0xb1')](_0x48ac('0x37')),_0x2d1886=0xbc2),_0x48ac('0x97')==_0x15da98&&(_0x2d1886+=0x5),{'classes':_0x48de71,'attributes':{'data-suggestion':_0x2457f5},'priority':_0x2d1886};}}),_0x3de4d3[_0x48ac('0xf9')]['for'](_0x48ac('0x1'))[_0x48ac('0x63')](_0x5660a1=>{_0x5660a1['on'](_0x48ac('0xf5'),(_0x388e7c,_0x17b427,_0x4f5f66)=>{if(!_0x4f5f66['options'][_0x48ac('0x2b')])return;const _0x1790e7=_0x17b427[_0x48ac('0x133')];if(!_0x1790e7)return;const _0x41ffc0=_0x4f5f66['mapper'][_0x48ac('0xb9')](_0x1790e7);_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xcf')][_0x48ac('0x101')](_0x1790e7)&&_0x41ffc0&&!_0x41ffc0[_0x48ac('0x4a')](_0x48ac('0x23'))&&_0x41ffc0['is'](_0x48ac('0xc0'))&&_0x19ac24(_0x41ffc0,_0x4f5f66[_0x48ac('0xfc')]);},{'priority':_0x48ac('0x77')});}),_0x3de4d3[_0x48ac('0xf9')][_0x48ac('0x16')](_0x48ac('0x1'))[_0x48ac('0xd')]({'model':_0x48ac('0x76'),'view':(_0x57f977,_0x4ce6b8)=>{if(!_0x4ce6b8[_0x48ac('0x5a')][_0x48ac('0x2b')])return null;const {type:_0x4bb75b}=this[_0x48ac('0x10b')](_0x57f977[_0x48ac('0x117')]);return{'classes':[_0x48ac('0x40'),_0x48ac('0x69')+_0x4bb75b],'priority':0xbb8};}});const _0x2ddf3e=({showActiveMarkers:_0x7a854f=!0x0}={})=>(_0x3ee75d,_0x2307f9,_0x37ff58)=>{if(!_0x2307f9[_0x48ac('0x133')])return;if(_0x2307f9[_0x48ac('0x133')]['is'](_0x48ac('0x5d')))return void _0x37ff58[_0x48ac('0x11')]['consume'](_0x2307f9[_0x48ac('0x133')],_0x3ee75d[_0x48ac('0xa')]);const _0x30a499=_0x37ff58[_0x48ac('0x4e')][_0x48ac('0xb9')](_0x2307f9[_0x48ac('0x133')]);if(!(_0x2307f9[_0x48ac('0x133')]['is']('element')&&_0x3de4d3[_0x48ac('0xad')]['schema'][_0x48ac('0x66')](_0x2307f9['item'])&&!_0x30a499[_0x48ac('0x4a')](_0x48ac('0xc'))))return;const {id:_0x56b534}=this[_0x48ac('0x10b')](_0x2307f9['markerName']);_0x37ff58[_0x48ac('0xfc')][_0x48ac('0x11f')]([_0x48ac('0x40'),_0x48ac('0x126')],_0x30a499),_0x37ff58[_0x48ac('0xfc')][_0x48ac('0xcd')](_0x48ac('0x12a'),_0x56b534,_0x30a499),_0x37ff58[_0x48ac('0x4e')]['bindElementToMarker'](_0x30a499,_0x2307f9[_0x48ac('0x117')]),_0x7a854f&&(this[_0x48ac('0x36')][_0x48ac('0xf8')](_0x2307f9[_0x48ac('0x117')])?_0x37ff58[_0x48ac('0xfc')][_0x48ac('0x11f')](_0x48ac('0x37'),_0x30a499):_0x37ff58[_0x48ac('0xfc')][_0x48ac('0x4c')](_0x48ac('0x37'),_0x30a499));for(const _0x594167 of _0x3de4d3['model'][_0x48ac('0x43')](_0x2307f9[_0x48ac('0x133')])['getItems']())_0x37ff58[_0x48ac('0x11')][_0x48ac('0x11b')](_0x594167,_0x3ee75d[_0x48ac('0xa')]);_0x37ff58[_0x48ac('0x11')][_0x48ac('0x11b')](_0x2307f9[_0x48ac('0x133')],_0x3ee75d['name']);};_0x3de4d3[_0x48ac('0xf9')]['for'](_0x48ac('0x1'))[_0x48ac('0x63')](_0x40d1c8=>{_0x40d1c8['on'](_0x48ac('0x108'),(_0x19090a,_0x1c2731,_0x438e6e)=>{_0x438e6e[_0x48ac('0x5a')][_0x48ac('0x2b')]&&_0x2ddf3e({'showActiveMarkers':!0x1})(_0x19090a,_0x1c2731,_0x438e6e);},{'priority':_0x48ac('0xe3')});}),_0x3de4d3[_0x48ac('0xf9')]['for']('dataDowncast')[_0x48ac('0x13d')]({'model':_0x48ac('0x76'),'view':(_0xa246c,_0x55058e)=>_0x55058e['options'][_0x48ac('0x2b')]?null:{'group':_0x48ac('0x76'),'name':_0xa246c[_0x48ac('0x2')](0xb)}}),_0x3de4d3[_0x48ac('0xf9')][_0x48ac('0x16')](_0x48ac('0xdd'))['elementToElement']({'view':{'name':_0x48ac('0x76'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x214c83,{writer:_0xe73cfa})=>{let _0x209a9e=_0x48ac('0xb0')+_0x214c83['getAttribute'](_0x48ac('0x8f'))+':'+_0x214c83[_0x48ac('0x3c')]('id');return _0x214c83[_0x48ac('0x3c')](_0x48ac('0x44'))&&(_0x209a9e+=':'+_0x214c83[_0x48ac('0x3c')](_0x48ac('0x44'))),_0xe73cfa['createElement']('$marker',{'data-name':_0x209a9e});}}),_0x3de4d3[_0x48ac('0xf9')][_0x48ac('0x16')](_0x48ac('0xdd'))[_0x48ac('0xc7')]({'view':_0x48ac('0x76')}),_0x3de4d3[_0x48ac('0xf9')]['for'](_0x48ac('0x92'))[_0x48ac('0x63')](_0x45f0e8=>{_0x45f0e8['on'](_0x48ac('0x108'),_0x2ddf3e(),{'priority':_0x48ac('0x77')});}),_0x3de4d3[_0x48ac('0xf9')][_0x48ac('0x16')](_0x48ac('0x92'))['add'](_0x237d5a=>{_0x237d5a['on']('removeMarker:suggestion:formatBlock',(_0x3c1670,_0x28fbcb,_0x4283b0)=>{const _0x466c7c=_0x4283b0['mapper'][_0x48ac('0xed')](_0x28fbcb[_0x48ac('0x117')]);if(_0x466c7c)for(const _0x293f1c of _0x466c7c)_0x293f1c['getCustomProperty'](_0x48ac('0xc'))||(_0x4283b0['writer'][_0x48ac('0x4c')]([_0x48ac('0x40'),_0x48ac('0x126'),_0x48ac('0x37')],_0x293f1c),_0x4283b0[_0x48ac('0xfc')][_0x48ac('0x3b')](_0x48ac('0x12a'),_0x293f1c),_0x4283b0[_0x48ac('0x4e')][_0x48ac('0x25')](_0x293f1c,_0x28fbcb['markerName']));},{'priority':_0x48ac('0x77')});}),_0x3de4d3['model']['document'][_0x48ac('0x10d')](_0xe7710=>{let _0x4f17f3=!0x1;const _0x4eff4c=Array[_0x48ac('0x123')](_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xe7')][_0x48ac('0x6c')][_0x48ac('0x49')]()),_0x17a89f=new Set();for(const {name:_0xfd75ad,data:_0x1b023e}of _0x4eff4c){const {group:_0x32f220,type:_0x5c09e0,id:_0x553f23}=this['_splitMarkerName'](_0xfd75ad);if(_0x48ac('0x76')!==_0x32f220)continue;const _0x11f513=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x553f23);if(null!=_0x1b023e[_0x48ac('0x78')]){_0x48ac('0xb5')==_0x5c09e0&&(_0x4f17f3=_0x4f17f3||Mt(_0x1b023e['newRange'],_0xfd75ad,_0xe7710,_0x3de4d3['model']['schema']));if(_0x1b023e['newRange'][_0x48ac('0x33')]||_0x48ac('0x139')==_0x1b023e['newRange'][_0x48ac('0x4f')]['rootName']||_0x48ac('0xbc')==_0x5c09e0&&!Nt(_0x1b023e['newRange'])||'deletion'==_0x5c09e0&&!(!_t(_0x1e2a73=_0x1b023e[_0x48ac('0x78')])&&!function(_0x1bfc3f){return _0x1bfc3f[_0x48ac('0x85')][_0x48ac('0x7')]==_0x1bfc3f[_0x48ac('0x4b')][_0x48ac('0x113')]&&_0x1bfc3f[_0x48ac('0x85')][_0x48ac('0x12b')];}(_0x1e2a73)))_0xe7710[_0x48ac('0x10f')](_0xfd75ad),_0x4f17f3=!0x0;else{if(!_0x11f513||!_0x11f513['isInContent'])continue;_0x17a89f[_0x48ac('0x63')](_0x11f513);}}}var _0x1e2a73;return _0x17a89f[_0x48ac('0x134')]>0x0&&(_0x4f17f3=!!this[_0x48ac('0x57')](_0x17a89f)||_0x4f17f3),_0x4f17f3;}),_0x3de4d3['model'][_0x48ac('0xe7')][_0x48ac('0x10d')](_0x5dabf3=>{let _0x6563e9=!0x1;for(const _0x353a4b of _0x3de4d3['model'][_0x48ac('0xe7')][_0x48ac('0x6c')]['getChanges']()){if(_0x48ac('0x42')!=_0x353a4b[_0x48ac('0x115')])continue;const _0x2cc270=_0x353a4b[_0x48ac('0x82')][_0x48ac('0x122')](_0x353a4b[_0x48ac('0x112')]);if(_0x2cc270[_0x48ac('0x12b')])for(const _0x2133b0 of this['_suggestions'][_0x48ac('0xc9')]()){if(_0x2133b0[_0x48ac('0x3d')]||!_0x2133b0['isInContent'])continue;if('formatBlock'!=_0x2133b0[_0x48ac('0x115')])continue;const _0x3fd5b5=_0x2133b0[_0x48ac('0xca')]();if(_0x3fd5b5[_0x48ac('0x85')][_0x48ac('0x7')]!=_0x3fd5b5['end'][_0x48ac('0x7')]&&_0x3fd5b5['end'][_0x48ac('0xe2')](_0x353a4b[_0x48ac('0x82')])){const _0x5df1aa=_0x3de4d3['model'][_0x48ac('0x54')](_0x3fd5b5['start'],_0x2cc270);_0x5dabf3[_0x48ac('0xbd')](_0x2133b0['getFirstMarker'](),{'range':_0x5df1aa}),_0x6563e9=!0x0;}}}return _0x6563e9;}),_0x3de4d3[_0x48ac('0xad')][_0x48ac('0x83')]['on'](_0x48ac('0x27'),(_0x3b6909,_0x3d200b,_0x296314)=>{if(null==_0x296314){const {id:_0x422129}=this[_0x48ac('0x10b')](_0x3d200b[_0x48ac('0xa')]),_0x1ed479=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x422129);_0x1ed479&&_0x1ed479[_0x48ac('0xb')](_0x3d200b['name']);}}),_0x3de4d3[_0x48ac('0xad')]['document']['on'](_0x48ac('0x21'),()=>{const _0x5d5517=Array[_0x48ac('0x123')](_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xe7')][_0x48ac('0x6c')][_0x48ac('0x49')]())[_0x48ac('0x12d')](_0x1df722=>'suggestion'===this['_splitMarkerName'](_0x1df722[_0x48ac('0xa')])['group']);if(0x0===_0x5d5517[_0x48ac('0x112')])return;_0x5d5517[_0x48ac('0x30')]((_0x3afbaf,_0x46e8b8)=>{const _0x435e2f=_0x3afbaf[_0x48ac('0xf2')][_0x48ac('0x107')],_0x5405cf=_0x46e8b8[_0x48ac('0xf2')]['oldRange'];return null===_0x435e2f&&null===_0x5405cf?0x0:null===_0x435e2f&&null!==_0x5405cf?-0x1:null!==_0x435e2f&&null===_0x5405cf?0x1:_0x435e2f[_0x48ac('0x85')][_0x48ac('0xf6')](_0x5405cf[_0x48ac('0x85')])?-0x1:0x1;});const _0x4d2ee2=new Set(),_0x2886d1=new Set();for(const {name:_0x2aa2c3,data:_0x2c2fff}of _0x5d5517){const {id:_0x2a48c1}=this[_0x48ac('0x10b')](_0x2aa2c3);if(null===_0x2c2fff[_0x48ac('0x107')]){const _0x237c8c=this[_0x48ac('0x120')](_0x2aa2c3);_0x2886d1['add'](_0x237c8c);}else{const _0x3875c=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x2a48c1);null!==_0x2c2fff['newRange']||_0x3875c[_0x48ac('0x95')]?(_0x4d2ee2['add'](_0x3875c[_0x48ac('0x3a')]),_0x2886d1[_0x48ac('0x63')](_0x3875c)):this[_0x48ac('0x45')](_0x3875c);}}_0x2886d1[_0x48ac('0x134')]>0x0&&this['_refreshSuggestionsChain'](_0x2886d1);for(const _0x2ab8b7 of _0x4d2ee2)this[_0x48ac('0x53')](_0x48ac('0x114'),_0x2ab8b7);}),_0x3de4d3[_0x48ac('0xad')]['on']('applyOperation',(_0x45504d,_0x181552)=>{const _0x597198=_0x181552[0x0];if(!this[_0x48ac('0xd1')][_0x48ac('0x134')])return;if(!_0x597198['isDocumentOperation'])return;if(_0x597198[_0x48ac('0x81')][_0x48ac('0x73')]||!_0x597198[_0x48ac('0x81')][_0x48ac('0x11a')])return;let _0x2a9a94,_0x594abc;switch(_0x597198[_0x48ac('0x115')]){case _0x48ac('0x42'):_0x2a9a94=_0x3de4d3[_0x48ac('0xad')]['createPositionAt'](_0x597198['position']),_0x594abc=_0x2a9a94[_0x48ac('0x122')](_0x597198[_0x48ac('0x9')]);break;case'split':_0x2a9a94=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xa2')](_0x597198[_0x48ac('0x136')]),_0x594abc=_0x3de4d3['model'][_0x48ac('0xa2')](_0x597198['moveTargetPosition']);break;case _0x48ac('0x8d'):_0x2a9a94=_0x3de4d3['model'][_0x48ac('0xa2')](_0x597198[_0x48ac('0xc1')]),_0x594abc=_0x2a9a94['getShiftedBy'](_0x597198[_0x48ac('0x9')]);break;default:return;}const _0x4ff2dc=_0x3de4d3['model'][_0x48ac('0x54')](_0x2a9a94,_0x594abc);_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xe5')](()=>{for(const {suggestion:_0x1d8e94,meta:_0x1cf3b5}of this[_0x48ac('0x22')](_0x4ff2dc)){if(_0x1d8e94[_0x48ac('0x3d')])continue;if(_0x48ac('0xb5')==_0x1d8e94[_0x48ac('0x115')])continue;const _0x3926bf=_0x1d8e94[_0x48ac('0xf2')]&&_0x1d8e94[_0x48ac('0xf2')][_0x48ac('0x55')];(_0x48ac('0xbc')!=_0x1d8e94['type']||'split'==_0x597198['type']&&!_0x3926bf)&&(_0x1cf3b5['containsRangeInObject']||'insertion'==_0x1d8e94[_0x48ac('0x115')]&&_0x1cf3b5[_0x48ac('0x84')]||_0x1d8e94['getFirstRange']()[_0x48ac('0xf3')](_0x4ff2dc)&&this[_0x48ac('0xee')](_0x1d8e94,_0x2a9a94,_0x594abc));}});},{'priority':_0x48ac('0xde')}),_0x3de4d3[_0x48ac('0xad')]['on'](_0x48ac('0x47'),(_0x42f2ed,_0x1171d4)=>{const _0x5bbbf=_0x1171d4[0x0],_0x2b2770=_0x1171d4[0x1];if(_0x2b2770&&_0x2b2770[_0x48ac('0x10')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x48ac('0xae')][_0x48ac('0xd5')])return;if(_0x5bbbf[_0x48ac('0x33')])return;const _0x155db3=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xcf')],{start:_0x52ee49,end:_0x3456eb}=_0x5bbbf['getFirstRange'](),_0x3c6007=_0x52ee49[_0x48ac('0x9e')]&&_0x155db3[_0x48ac('0xa7')](_0x52ee49[_0x48ac('0x9e')])?null:_0x155db3[_0x48ac('0x10c')](_0x52ee49,_0x48ac('0xd6')),_0x414c22=_0x3456eb['nodeBefore']&&_0x155db3[_0x48ac('0xa7')](_0x3456eb[_0x48ac('0x113')])?null:_0x155db3['getNearestSelectionRange'](_0x3456eb,_0x48ac('0xce')),_0x4254ad=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0x54')](_0x3c6007?_0x3c6007[_0x48ac('0x85')]:_0x52ee49,_0x414c22?_0x414c22[_0x48ac('0x4b')]:_0x3456eb);_0x3de4d3['model'][_0x48ac('0xe5')](_0x3c419f=>{this['markDeletion'](_0x4254ad);const _0xcaf9dd=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xcf')][_0x48ac('0x10c')](_0x4254ad['start']);_0x5bbbf['is'](_0x48ac('0x74'))?_0x3c419f[_0x48ac('0x12')](_0xcaf9dd):_0x5bbbf['setTo'](_0xcaf9dd);}),_0x42f2ed[_0x48ac('0x93')]();},{'priority':_0x37fb3c[_0x48ac('0x7e')]+0xa}),_0x3de4d3['model']['on'](_0x48ac('0x138'),(_0x8b5bd8,_0x21a955)=>{const _0x58ffd0=_0x21a955[_0x21a955[_0x48ac('0x112')]-0x1];_0x58ffd0&&_0x58ffd0[_0x48ac('0x10')]||this['_isForcedDefaultExecutionBlock']||this[_0x48ac('0xae')][_0x48ac('0xd5')]&&(_0x3de4d3['model'][_0x48ac('0xe5')](()=>{let _0x2928bd=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0x138')](_0x21a955[0x0],_0x21a955[0x1],_0x21a955[0x2],{'forceDefaultExecution':!0x0});if(!_0x2928bd)return;_0x8b5bd8[_0x48ac('0x106')]=_0x2928bd[_0x48ac('0x68')]();const _0x3afa97=_0x2928bd[_0x48ac('0x4b')][_0x48ac('0x113')],_0x2f0a91=_0x3de4d3[_0x48ac('0xad')]['schema'];_0x3afa97&&_0x2f0a91[_0x48ac('0x66')](_0x3afa97)&&!_0x2f0a91[_0x48ac('0x101')](_0x3afa97)&&(_0x2928bd=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0x54')](_0x2928bd['start'],_0x3de4d3['model'][_0x48ac('0xa2')](_0x3afa97,_0x48ac('0x4b')))),this[_0x48ac('0x6d')](_0x2928bd);}),_0x8b5bd8[_0x48ac('0x93')]());},{'priority':_0x48ac('0x77')}),this[_0x48ac('0x7d')][_0x48ac('0x99')][_0x48ac('0x63')](_0x48ac('0xcb'),this[_0x48ac('0xae')]),this[_0x48ac('0x9f')](_0x48ac('0xcb'));const _0x37ac87=new _0x258f1d(_0x3de4d3,this['_suggestions']);_0x3de4d3[_0x48ac('0x99')]['add'](_0x48ac('0x5b'),_0x37ac87),this[_0x48ac('0x9f')]('acceptSuggestion');const _0x562169=new _0x38a68f(_0x3de4d3,this[_0x48ac('0xd1')]);_0x3de4d3[_0x48ac('0x99')]['add'](_0x48ac('0xf1'),_0x562169),this[_0x48ac('0x9f')]('discardSuggestion'),_0x3de4d3['commands'][_0x48ac('0x63')](_0x48ac('0xdc'),new _0x535104(_0x3de4d3,_0x37ac87,this[_0x48ac('0xd1')])),this[_0x48ac('0x9f')](_0x48ac('0xdc')),_0x3de4d3[_0x48ac('0x99')][_0x48ac('0x63')]('discardAllSuggestions',new _0x535104(_0x3de4d3,_0x562169,this[_0x48ac('0xd1')])),this[_0x48ac('0x9f')](_0x48ac('0xa6')),_0x3de4d3['commands'][_0x48ac('0x63')]('acceptSelectedSuggestions',new _0x415ce7(_0x3de4d3,_0x37ac87,this['_suggestions'])),this[_0x48ac('0x9f')](_0x48ac('0x11c')),_0x3de4d3['commands'][_0x48ac('0x63')](_0x48ac('0xfa'),new _0x415ce7(_0x3de4d3,_0x562169,this[_0x48ac('0xd1')])),this['enableCommand'](_0x48ac('0xfa'));const _0x327f11=_0x3de4d3['plugins']['get'](_0x48ac('0x128'));this[_0x48ac('0x130')](_0x327f11,'addComment',(_0x591a3e,{threadId:_0x3cd710})=>{const _0x804828=this[_0x48ac('0xd1')]['get'](_0x3cd710);_0x804828&&_0x804828[_0x48ac('0x89')]&&0x1===_0x804828[_0x48ac('0x89')][_0x48ac('0x112')]&&this[_0x48ac('0x52')](_0x3cd710,{'hasComments':!0x0});},{'priority':_0x48ac('0x125')}),this['listenTo'](_0x327f11,'removeComment',(_0x52bee7,{threadId:_0x5b3ad5})=>{const _0x402145=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x5b3ad5);_0x402145&&_0x402145[_0x48ac('0x89')]&&!_0x402145[_0x48ac('0x89')]['length']&&this[_0x48ac('0x52')](_0x5b3ad5,{'hasComments':!0x1});},{'priority':_0x48ac('0x125')});}set[_0x48ac('0x12e')](_0x94ca0d){if(this[_0x48ac('0x8e')])throw new _0x1f0e77(_0x48ac('0xba'),this);this[_0x48ac('0x8e')]=_0x94ca0d;}get['adapter'](){return this[_0x48ac('0x8e')];}[_0x48ac('0x7c')]({skipNotAttached:_0x1c1a24=!0x1,toJSON:_0x1e9a15=!0x1}={}){const _0x43c2d8=[];for(const _0x2a5d98 of this[_0x48ac('0xd1')][_0x48ac('0xc9')]())_0x1c1a24&&!_0x2a5d98[_0x48ac('0x95')]||_0x43c2d8[_0x48ac('0xb1')](_0x2a5d98);return _0x1e9a15?_0x43c2d8[_0x48ac('0x18')](_0x45c8ec=>_0x45c8ec[_0x48ac('0x50')]()):_0x43c2d8;}[_0x48ac('0xe6')](_0x85a684){const _0x465d14=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x85a684);if(!_0x465d14)throw new _0x1f0e77(_0x48ac('0xfd'),this);return _0x465d14;}[_0x48ac('0x6b')](_0x310b88){return this[_0x48ac('0xd1')][_0x48ac('0xa9')](_0x310b88);}['addSuggestionData'](_0x5017d4){const {authorId:_0x3e1379,id:_0x5d95cc,attributes:_0xce263e}=_0x5017d4,[_0x2207a0,_0x34f7a9]=_0x5017d4[_0x48ac('0x115')][_0x48ac('0x13a')](':'),_0x4957a2=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x5d95cc)||this[_0x48ac('0x86')](_0x2207a0,_0x34f7a9,_0x5d95cc,_0x3e1379,_0xce263e);if(this[_0x48ac('0xaa')](_0x4957a2),this['_checkSuggestionCorrectness'](_0x4957a2,_0x2207a0,_0x34f7a9||null,_0x3e1379),_0x4957a2['createdAt']=_0x5017d4[_0x48ac('0x96')],_0xce263e&&_0xce263e[_0x48ac('0xd4')]){const _0x25d73a=_0xce263e[_0x48ac('0xd4')],_0x2a338a=this[_0x48ac('0xa1')](_0x25d73a[_0x48ac('0xa5')]);_0x4957a2[_0x48ac('0x8b')]=_0x25d73a['createdAt'],_0x4957a2[_0x48ac('0xfe')]=_0x2a338a,_0x4957a2['isExternal']=!0x0;}else _0x4957a2[_0x48ac('0x8b')]=_0x5017d4[_0x48ac('0x96')];switch(_0x5017d4[_0x48ac('0xf2')]&&(_0x4957a2[_0x48ac('0xf2')]=_0x5017d4[_0x48ac('0xf2')]),_0x5017d4[_0x48ac('0x105')]&&(_0x4957a2[_0x48ac('0x105')]=_0x5017d4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4957a2[_0x48ac('0xdf')]=!0x0),this['_suggestionState']['get'](_0x4957a2)){case'notReady':this[_0x48ac('0x3f')]['set'](_0x4957a2,_0x48ac('0x9c'));break;case _0x48ac('0x59'):_0x4957a2[_0x48ac('0x95')]?(this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x4957a2,_0x48ac('0x71')),this[_0x48ac('0x53')](_0x48ac('0xe8'),_0x4957a2)):this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x4957a2,_0x48ac('0xfb'));}return _0x4957a2;}[_0x48ac('0x5b')](_0x1537c0){this[_0x48ac('0x10')](()=>{this[_0x48ac('0x7d')]['model']['change'](()=>{for(const _0x2b6029 of _0x1537c0[_0x48ac('0xb3')]())_0x2b6029[_0x48ac('0x61')]();});});}[_0x48ac('0xf1')](_0x4e5450){this['forceDefaultExecution'](()=>{this[_0x48ac('0x7d')][_0x48ac('0xad')]['change'](()=>{for(const _0x543a7d of _0x4e5450[_0x48ac('0xb3')]())_0x543a7d['discard']();});});}[_0x48ac('0x9f')](_0x227cb6,_0xd71a0f){const _0x1a168d=this[_0x48ac('0x7d')][_0x48ac('0x99')]['get'](_0x227cb6);if(!_0x1a168d)throw new _0x1f0e77('track-changes-command-not-found',this,{'commandName':_0x227cb6});this[_0x48ac('0xea')][_0x48ac('0x63')](_0x1a168d),_0xd71a0f&&_0x1a168d['on'](_0x48ac('0xdb'),(_0x7b7ba4,_0xa2ca24)=>{this[_0x48ac('0xae')][_0x48ac('0xd5')]&&(this[_0x48ac('0xbe')]||_0xa2ca24[_0x48ac('0x112')]>0x0&&_0xa2ca24[_0xa2ca24['length']-0x1]&&_0xa2ca24[_0xa2ca24[_0x48ac('0x112')]-0x1]['forceDefaultExecution']||(_0xd71a0f((..._0x58db69)=>_0x1a168d[_0x48ac('0xdb')](..._0x58db69,{'forceDefaultExecution':!0x0}),..._0xa2ca24),_0x7b7ba4['stop']()));},{'priority':_0x48ac('0x77')});}['forceDefaultExecution'](_0x503098){let _0x400f86,_0x4f0fa4;const _0x114956=this[_0x48ac('0xbe')];this[_0x48ac('0xbe')]=!0x0;try{_0x400f86=_0x503098();}catch(_0x343ff1){_0x4f0fa4=_0x343ff1;}return _0x114956||(this[_0x48ac('0xbe')]=!0x1),_0x4f0fa4&&_0x1f0e77[_0x48ac('0x60')](_0x4f0fa4,this),_0x400f86;}['markInsertion'](_0x287251,_0x32fd14=null,_0x378ec1={}){if(_0x287251[_0x48ac('0x33')])return null;const _0x29b2ee=this['editor'][_0x48ac('0xaf')]['get']('Users')['me'];for(const {suggestion:_0x124443,meta:_0x2e440e}of this['_findSuggestions'](_0x287251,_0x48ac('0xb2')))if(_0x2e440e[_0x48ac('0x84')]){if(!_0x2e440e[_0x48ac('0xf0')]){if(!this[_0x48ac('0x12c')]&&_0x2e440e[_0x48ac('0x132')])continue;return _0x124443;}if(_0x32fd14==_0x124443[_0x48ac('0x56')]){const _0x34a0bd=_0x124443['getFirstRange']();return _0x34a0bd['start']['isEqual'](_0x287251[_0x48ac('0x4b')])?this[_0x48ac('0xc6')](_0x124443,this[_0x48ac('0x26')][_0x48ac('0x54')](_0x287251[_0x48ac('0x85')],_0x34a0bd[_0x48ac('0x4b')])):this[_0x48ac('0xc6')](_0x124443,this[_0x48ac('0x26')][_0x48ac('0x54')](_0x34a0bd[_0x48ac('0x85')],_0x287251[_0x48ac('0x4b')])),_0x124443;}}const _0x2202ea=_0x5dc213(),_0xebc39e=_0x29b2ee['id'],_0x165f1b=_0x32fd14?'insertion:'+_0x32fd14:_0x48ac('0xb2'),_0x523a46=this[_0x48ac('0x19')]({'id':_0x2202ea,'type':_0x165f1b,'createdAt':new Date(),'authorId':_0xebc39e,'attributes':_0x378ec1});return this['_addSuggestionMarker'](_0x165f1b,_0x2202ea,_0xebc39e,_0x287251),_0x523a46;}[_0x48ac('0xe9')](_0x16aedf,_0x13827d=_0x48ac('0x10a'),_0x329209={}){const _0x4d4f88=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')]('Users')['me'],_0x493226=this['_suggestionFactory'][_0x48ac('0x62')](_0x48ac('0xb2'),_0x13827d,'join');for(const _0x3f3791 of this[_0x48ac('0x7c')]())if(_0x3f3791[_0x48ac('0xfe')]['id']==_0x4d4f88['id']&&'insertion'==_0x3f3791['type']&&_0x3f3791['subType']==_0x13827d&&(_0x493226(_0x3f3791['getRanges'](),_0x16aedf)||_0x493226(_0x16aedf,_0x3f3791['getRanges']()))){for(const _0x145fff of _0x16aedf)_0x3f3791[_0x48ac('0x6f')](_0x145fff);return _0x3f3791;}if(this[_0x48ac('0x12c')])for(const _0x1e7764 of _0x16aedf)for(const {suggestion:_0x50ba1d,meta:_0x479eb8}of this[_0x48ac('0x22')](_0x1e7764,_0x48ac('0xb2'))){if(!_0x479eb8[_0x48ac('0x84')])continue;let _0x43c718=!0x0;for(const _0x265843 of _0x50ba1d[_0x48ac('0x34')]())for(const _0x3ae369 of _0x16aedf)if(!_0x265843[_0x48ac('0xf3')](_0x3ae369)){_0x43c718=!0x1;break;}if(_0x43c718)return _0x50ba1d;}const _0x4175d5=_0x5dc213(),_0x6cc294=_0x4d4f88['id'],_0x493cb4=_0x48ac('0x20')+_0x13827d,_0xdf0bb1=this['_setSuggestionData']({'id':_0x4175d5,'type':_0x493cb4,'createdAt':new Date(),'authorId':_0x6cc294,'attributes':_0x329209});for(const _0x325640 of _0x16aedf)this['_addSuggestionMarker'](_0x493cb4,_0x4175d5,_0x6cc294,_0x325640,_0x22d138[_0x48ac('0x38')]());return _0xdf0bb1;}[_0x48ac('0x2e')](_0x207f96,_0x525e0f,_0x840167=null,_0x1d8d92={}){if(_0x840167=_0x840167||$t(_0x525e0f),_0x207f96[_0x48ac('0x33')])return null;if('never'===this['_trackFormatChanges']){const _0x3de1ba=this['_suggestionFactory'][_0x48ac('0x62')]('formatInline',_0x840167,'accept');return this['forceDefaultExecution'](()=>_0x3de1ba([_0x207f96],_0x525e0f,_0x1d8d92)),null;}const _0x31b595=this[_0x48ac('0x7d')]['plugins'][_0x48ac('0x110')](_0x48ac('0x5c'))['me'],_0x41d482=[];if(_0x48ac('0xa4')!==this['_trackFormatChanges'])for(const {suggestion:_0xf0bd92,meta:_0x336a82}of this[_0x48ac('0x22')](_0x207f96,_0x48ac('0xb2')))_0x336a82[_0x48ac('0x84')]&&!_0x336a82[_0x48ac('0x2d')]&&_0x41d482[_0x48ac('0xb1')](..._0xf0bd92[_0x48ac('0x34')]());const _0xb25cb1=function(_0x5e63de,_0x346dfe){const _0x34429e=[];for(const _0x34dfeb of _0x346dfe){const _0x5707a5=_0x5e63de['getIntersection'](_0x34dfeb);_0x5707a5&&_0x34429e[_0x48ac('0xb1')](_0x5707a5);}return _0x34429e;}(_0x207f96,_0x41d482),_0x3c60a2=function(_0x5a27a8,_0x2e9a01){const _0xdb06d8=[_0x5a27a8];for(const _0x3b4b6f of _0x2e9a01){let _0x2a6eff=0x0;for(;_0x2a6eff<_0xdb06d8['length'];){const _0x3041ac=_0xdb06d8[_0x2a6eff][_0x48ac('0x8')](_0x3b4b6f);_0xdb06d8['splice'](_0x2a6eff,0x1,..._0x3041ac),_0x2a6eff+=_0x3041ac['length'];}}return _0xdb06d8;}(_0x207f96,_0x41d482);_0xb25cb1[_0x48ac('0x112')]&&this[_0x48ac('0x26')]['change'](()=>{for(const _0x47ee7a of _0xb25cb1){const _0x21e13d=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0xb5'),_0x840167,_0x48ac('0x61'));this[_0x48ac('0x10')](()=>_0x21e13d([_0x47ee7a],_0x525e0f,_0x1d8d92));}});for(const _0x7e89be of _0x3c60a2){let _0x9a4ea5=null,_0x5a8ee6=_0x7e89be[_0x48ac('0x85')],_0x3d799b=_0x7e89be[_0x48ac('0x4b')];for(const {suggestion:_0x578dcc,meta:_0x37f2df}of this[_0x48ac('0x22')](_0x7e89be,'formatInline')){if(!_0x37f2df[_0x48ac('0x84')])continue;if(_0x578dcc['subType']!=_0x840167)continue;const _0x2f3b9a=_0x578dcc['getFirstRange']();if(_0x2f3b9a['containsRange'](_0x7e89be,!0x0))return null;_0x5a8ee6=_0x5a8ee6[_0x48ac('0xf6')](_0x2f3b9a[_0x48ac('0x85')])?_0x5a8ee6:_0x2f3b9a[_0x48ac('0x85')],_0x3d799b=_0x3d799b[_0x48ac('0x28')](_0x2f3b9a[_0x48ac('0x4b')])?_0x3d799b:_0x2f3b9a[_0x48ac('0x4b')],_0x9a4ea5?_0x2f3b9a[_0x48ac('0x85')][_0x48ac('0xf6')](_0x9a4ea5[_0x48ac('0xca')]()[_0x48ac('0x85')])?(_0x9a4ea5[_0x48ac('0x65')](),_0x9a4ea5=_0x578dcc):_0x578dcc[_0x48ac('0x65')]():_0x9a4ea5=_0x578dcc;}const _0x51e13c=this['_model'][_0x48ac('0x54')](_0x5a8ee6,_0x3d799b);if(_0x9a4ea5)this[_0x48ac('0xc6')](_0x9a4ea5,_0x51e13c);else{const _0x4c5c8a=_0x5dc213(),_0x2580f5=_0x31b595['id'];this[_0x48ac('0x19')]({'id':_0x4c5c8a,'type':_0x48ac('0x2f')+_0x840167,'data':_0x525e0f,'createdAt':new Date(),'authorId':_0x2580f5,'attributes':_0x1d8d92}),this[_0x48ac('0x119')](_0x48ac('0x2f')+_0x840167,_0x4c5c8a,_0x2580f5,_0x51e13c);}}return null;}[_0x48ac('0xa8')](_0x15555b,_0x35fa0b,_0x51b84e=[],_0x21f607=null,_0x1a1487={}){_0x35fa0b['formatGroupId']||(_0x35fa0b[_0x48ac('0x31')]=_0x35fa0b[_0x48ac('0x121')]),_0x35fa0b[_0x48ac('0x55')]=_0x15555b['is']('range'),_0x21f607=_0x21f607||$t(_0x35fa0b);const _0x71d36a=_0x51b84e[_0x48ac('0x18')](_0x3b94b8=>Rt(_0x3b94b8,this['_model'])),_0x75e614=_0x15555b['is'](_0x48ac('0xd2'))?_0x15555b:Rt(_0x15555b,this[_0x48ac('0x26')]);if(_0x48ac('0xf')===this[_0x48ac('0x41')]){const _0x5ac883=this['_suggestionFactory'][_0x48ac('0x62')](_0x48ac('0xbc'),_0x21f607,'accept');return this[_0x48ac('0x10')](()=>_0x5ac883([_0x75e614],_0x35fa0b,_0x1a1487)),null;}_0x71d36a['push'](_0x75e614);let _0x44f257=!0x0;for(const _0x540bc9 of _0x71d36a)if(!this[_0x48ac('0xa3')](_0x540bc9)){_0x44f257=!0x1;break;}if(_0x44f257&&_0x48ac('0xa4')!==this['_trackFormatChanges']){const _0x3c7cea=this[_0x48ac('0x118')][_0x48ac('0x62')]('formatBlock',_0x21f607,_0x48ac('0x61'));return this[_0x48ac('0x10')](()=>_0x3c7cea([_0x75e614],_0x35fa0b,_0x1a1487)),null;}let _0x557130=null,_0x50b878=_0x75e614[_0x48ac('0x85')],_0x147d38=_0x75e614['end'];for(const {suggestion:_0x492995,meta:_0x65288}of this[_0x48ac('0x22')](_0x75e614,'formatBlock')){if(!_0x65288['isOwn']||_0x65288[_0x48ac('0xf0')]||_0x65288[_0x48ac('0x132')]||_0x65288[_0x48ac('0x2d')])continue;if(_0x492995[_0x48ac('0xf2')]['formatGroupId']!=_0x35fa0b[_0x48ac('0x31')])continue;const _0x300a51=_0x492995['getFirstRange']();if(_0x492995[_0x48ac('0x56')]==_0x21f607){if(_0x300a51[_0x48ac('0xf3')](_0x75e614,!0x0))return null;_0x50b878=_0x50b878[_0x48ac('0xf6')](_0x300a51[_0x48ac('0x85')])?_0x50b878:_0x300a51[_0x48ac('0x85')],_0x147d38=_0x147d38[_0x48ac('0x28')](_0x300a51['end'])?_0x147d38:_0x300a51[_0x48ac('0x4b')],_0x557130?_0x300a51[_0x48ac('0x85')][_0x48ac('0xf6')](_0x557130['getFirstRange']()[_0x48ac('0x85')])?(_0x557130[_0x48ac('0x65')](),_0x557130=_0x492995):_0x492995['removeMarkers']():_0x557130=_0x492995;}else{const _0x5d8e38=_0x75e614[_0x48ac('0x9b')](_0x300a51);this['_cutOutSuggestionMarker'](_0x492995,_0x5d8e38);}}const _0x571e46=this['editor']['plugins'][_0x48ac('0x110')](_0x48ac('0x5c'))['me'],_0x3333f9=_0x5dc213(),_0x16bee0=_0x571e46['id'];if(_0x557130)return this['_setSuggestionRange'](_0x557130,this[_0x48ac('0x26')]['createRange'](_0x50b878,_0x147d38)),_0x557130;{const _0x3d1def=this[_0x48ac('0x19')]({'id':_0x3333f9,'type':_0x48ac('0x90')+_0x21f607,'data':_0x35fa0b,'createdAt':new Date(),'authorId':_0x16bee0,'attributes':_0x1a1487});return this['_addSuggestionMarker'](_0x48ac('0x90')+_0x21f607,_0x3333f9,_0x16bee0,this[_0x48ac('0x26')][_0x48ac('0x54')](_0x50b878,_0x147d38)),_0x3d1def;}}[_0x48ac('0x48')](_0x188f37,_0x2a825e,_0x34c1a6=[],_0x11d62e=null,_0x135804={}){_0x2a825e['formatGroupId']||(_0x2a825e[_0x48ac('0x31')]=_0x2a825e[_0x48ac('0x121')]);const _0x2ea63f=_0x188f37[0x0];_0x2a825e[_0x48ac('0x55')]=_0x2ea63f['is']('range'),_0x11d62e=_0x11d62e||$t(_0x2a825e);const _0x10662e=_0x34c1a6['map'](_0x28431a=>Rt(_0x28431a,this[_0x48ac('0x26')])),_0x2f281e=_0x2ea63f['is'](_0x48ac('0xd2'))?_0x188f37:_0x188f37['map'](_0x291c3c=>Rt(_0x291c3c,this[_0x48ac('0x26')]));if(_0x48ac('0xf')===this['_trackFormatChanges']){const _0x2de15c=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0xbc'),_0x11d62e,_0x48ac('0x61'));return this[_0x48ac('0x10')](()=>_0x2de15c(_0x2f281e,_0x2a825e,_0x135804)),null;}_0x10662e[_0x48ac('0xb1')](..._0x2f281e);let _0x3582e3=!0x0;for(const _0x48d1d4 of _0x10662e)if(!this[_0x48ac('0xa3')](_0x48d1d4)){_0x3582e3=!0x1;break;}if(_0x3582e3&&_0x48ac('0xa4')!==this[_0x48ac('0x41')]){const _0x2c5d4a=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0xbc'),_0x11d62e,_0x48ac('0x61'));return this['forceDefaultExecution'](()=>_0x2c5d4a(_0x2f281e,_0x2a825e,_0x135804)),null;}const _0x4ac20f=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x5c'))['me'];for(const _0x42d896 of this[_0x48ac('0x7c')]()){if(_0x42d896[_0x48ac('0xfe')]['id']!=_0x4ac20f['id'])continue;if(_0x48ac('0xbc')!=_0x42d896[_0x48ac('0x115')]||_0x42d896[_0x48ac('0xf2')][_0x48ac('0x31')]!=_0x2a825e[_0x48ac('0x31')])continue;const _0x4e986c=_0x42d896[_0x48ac('0x56')]==_0x11d62e;for(let _0x4cad54=0x0;_0x4cad54<_0x2f281e[_0x48ac('0x112')];_0x4cad54++){const _0x139fd7=_0x2f281e[_0x4cad54];for(const _0x432921 of _0x42d896[_0x48ac('0x5')]()){const _0x119919=_0x432921[_0x48ac('0x6')]();if(_0x139fd7[_0x48ac('0xe2')](_0x119919)){_0x4e986c?(_0x2f281e['splice'](_0x4cad54,0x1),_0x4cad54--):_0x42d896['removeMarker'](_0x432921[_0x48ac('0xa')]);break;}}}}if(0x0==_0x2f281e[_0x48ac('0x112')])return null;const _0x3c23b5=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0xbc'),_0x11d62e,_0x48ac('0x100'));for(const _0x2ddc2b of this['getSuggestions']())if(_0x2ddc2b['author']['id']==_0x4ac20f['id']&&_0x48ac('0xbc')==_0x2ddc2b['type']&&_0x2ddc2b[_0x48ac('0xf2')][_0x48ac('0x31')]==_0x2a825e[_0x48ac('0x31')]&&_0x2ddc2b[_0x48ac('0x56')]==_0x11d62e&&(_0x3c23b5(_0x2ddc2b[_0x48ac('0x34')](),_0x2f281e)||_0x3c23b5(_0x2f281e,_0x2ddc2b[_0x48ac('0x34')]()))){for(const _0x432757 of _0x2f281e)_0x2ddc2b[_0x48ac('0x6f')](_0x432757);return _0x2ddc2b;}const _0x33d01f=_0x5dc213(),_0x3b8ded=_0x4ac20f['id'],_0xac8c08=_0x48ac('0x90')+_0x11d62e,_0x67b57e=this[_0x48ac('0x19')]({'id':_0x33d01f,'type':_0xac8c08,'data':_0x2a825e,'createdAt':new Date(),'authorId':_0x3b8ded,'attributes':_0x135804});for(const _0x5ca564 of _0x2f281e)this[_0x48ac('0x119')](_0xac8c08,_0x33d01f,_0x3b8ded,_0x5ca564,_0x22d138['getMultiRangeId']());return _0x67b57e;}[_0x48ac('0x11e')](_0x1f2554,_0x47c282=null,_0x33561f={}){if(_0x1f2554[_0x48ac('0x33')])return null;const _0x49a629=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x5c'))['me'],_0x3d6661=new _0x30323b(_0x1f2554[_0x48ac('0x85')],_0x1f2554[_0x48ac('0x4b')]);for(const {suggestion:_0x4de9a7,meta:_0x4506f7}of this['_findSuggestions'](_0x3d6661,_0x48ac('0xb2')))if(_0x4506f7[_0x48ac('0x84')]&&!_0x4506f7[_0x48ac('0xf0')]){if(_0x4de9a7['isMultiRange']){const _0x4f846f=_0x4de9a7[_0x48ac('0x34')]()[_0x48ac('0x12d')](_0x53a1f7=>_0x48ac('0x139')!=_0x53a1f7[_0x48ac('0x4f')][_0x48ac('0xd3')]);_0x4f846f[_0x48ac('0x1e')](_0x2a30ba=>_0x3d6661['containsRange'](_0x2a30ba,!0x0))&&_0x4de9a7[_0x48ac('0xab')]();if(_0x4f846f[_0x48ac('0x116')](_0x170b06=>_0x170b06[_0x48ac('0xf3')](_0x3d6661,!0x0))){const _0x31bc1c=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0x97'),_0x47c282,_0x48ac('0x61'));return this[_0x48ac('0x10')](()=>_0x31bc1c([_0x3d6661],null,_0x33561f)),null;}}else{const _0x3b7f9c=_0x3d6661[_0x48ac('0x9b')](_0x4de9a7[_0x48ac('0xca')]());null!==_0x3b7f9c&&_0x4de9a7[_0x48ac('0x4')]([_0x3b7f9c],null,_0x33561f);}}if(_0x3d6661[_0x48ac('0x51')](),_0x3d6661[_0x48ac('0x33')]||'$graveyard'==_0x3d6661['root']['rootName'])return null;let _0x59770a=null,_0x49733e=_0x3d6661['start'],_0xc15a8d=_0x3d6661[_0x48ac('0x4b')];for(const {suggestion:_0x269f95,meta:_0x2c3316}of this[_0x48ac('0x22')](_0x3d6661,_0x48ac('0x97')))if(_0x2c3316[_0x48ac('0x84')]){if(_0x269f95[_0x48ac('0x3d')]&&this[_0x48ac('0x12c')]){let _0x16cafb=!0x0;for(const _0x578ac9 of _0x269f95[_0x48ac('0x34')]()){if(_0x578ac9[_0x48ac('0xf3')](_0x3d6661,!0x0))return _0x269f95;_0x3d6661[_0x48ac('0xf3')](_0x578ac9)||(_0x16cafb=!0x1);}_0x16cafb&&_0x269f95[_0x48ac('0xab')]();}else{const _0x30ecf0=_0x269f95[_0x48ac('0xca')]();if(_0x30ecf0[_0x48ac('0xf3')](_0x3d6661,!0x0)){if(!this[_0x48ac('0x12c')]&&_0x2c3316[_0x48ac('0x132')])continue;return _0x269f95;}_0x49733e=_0x49733e[_0x48ac('0xf6')](_0x30ecf0[_0x48ac('0x85')])?_0x49733e:_0x30ecf0[_0x48ac('0x85')],_0xc15a8d=_0xc15a8d[_0x48ac('0x28')](_0x30ecf0[_0x48ac('0x4b')])?_0xc15a8d:_0x30ecf0[_0x48ac('0x4b')],_0x59770a?_0x30ecf0['start'][_0x48ac('0xf6')](_0x59770a[_0x48ac('0xca')]()['start'])?(_0x59770a[_0x48ac('0x65')](),_0x59770a=_0x269f95):_0x269f95['removeMarkers']():_0x59770a=_0x269f95;}}if(_0x59770a)return this[_0x48ac('0xc6')](_0x59770a,this[_0x48ac('0x26')][_0x48ac('0x54')](_0x49733e,_0xc15a8d)),_0x59770a;{const _0x1b5f17=_0x5dc213(),_0x2c9ded=this[_0x48ac('0x26')]['createRange'](_0x49733e,_0xc15a8d),_0x22a79e=_0x49a629['id'],_0x589a50=_0x47c282?_0x48ac('0xff')+_0x47c282:_0x48ac('0x97'),_0x322d36=this[_0x48ac('0x19')]({'id':_0x1b5f17,'type':_0x589a50,'createdAt':new Date(),'authorId':_0x22a79e,'attributes':_0x33561f});return this[_0x48ac('0x119')](_0x589a50,_0x1b5f17,_0x22a79e,_0x2c9ded),_0x322d36;}}[_0x48ac('0xe')](_0x2019cd,_0x2e2c4e='multi',_0x5e2580={}){const _0xd4249d=this['editor'][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x5c'))['me'],_0x3f2b26=_0x2019cd[_0x48ac('0x18')](_0x1e17ff=>new _0x30323b(_0x1e17ff[_0x48ac('0x85')],_0x1e17ff['end'])),_0x1b50e9=new Set();for(const _0x2ccc9a of _0x3f2b26)for(const {suggestion:_0x41900d,meta:_0xfb9f6a}of this[_0x48ac('0x22')](_0x2ccc9a,'insertion'))_0xfb9f6a[_0x48ac('0x84')]&&!_0xfb9f6a[_0x48ac('0xf0')]&&_0x1b50e9['add'](_0x41900d);for(const _0x57fca5 of _0x1b50e9)if(_0x57fca5['isMultiRange']){const _0x17b5a5=_0x57fca5[_0x48ac('0x34')]();(!_0x57fca5['attributes']||!_0x57fca5[_0x48ac('0x105')][_0x48ac('0x8a')])&&(_0x17b5a5[_0x48ac('0x1e')](_0xeac41e=>_0x3f2b26[_0x48ac('0x116')](_0x6fcbea=>_0x6fcbea[_0x48ac('0xf3')](_0xeac41e,!0x0)))&&_0x57fca5[_0x48ac('0xab')]());if(_0x3f2b26[_0x48ac('0x1e')](_0x2df11a=>_0x17b5a5[_0x48ac('0x116')](_0x912c64=>_0x912c64[_0x48ac('0xf3')](_0x2df11a,!0x0)))){const _0x32e996=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0x97'),_0x2e2c4e,_0x48ac('0x61'));return this[_0x48ac('0x10')](()=>_0x32e996(_0x2019cd,null,_0x5e2580)),null;}}else{const _0x32b0b9=_0x57fca5['getFirstRange']();_0x3f2b26['some'](_0x1e341b=>_0x1e341b[_0x48ac('0xf3')](_0x32b0b9,!0x0))&&_0x57fca5[_0x48ac('0xab')]();if(_0x3f2b26[_0x48ac('0x1e')](_0x59a7e0=>_0x32b0b9['containsRange'](_0x59a7e0,!0x0))){const _0x9a326b=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0x97'),_0x2e2c4e,_0x48ac('0x61'));return this[_0x48ac('0x10')](()=>_0x9a326b(_0x3f2b26,null,_0x5e2580)),null;}}const _0x5b5a0c=this[_0x48ac('0x118')][_0x48ac('0x62')]('deletion',_0x2e2c4e,_0x48ac('0x100'));let _0x1afdb5=null;for(const _0x59bb83 of this[_0x48ac('0x7c')]())if(_0x59bb83[_0x48ac('0xfe')]['id']==_0xd4249d['id']&&_0x59bb83['isInContent']&&_0x48ac('0x97')==_0x59bb83['type']&&_0x59bb83[_0x48ac('0x56')]==_0x2e2c4e&&(_0x5b5a0c(_0x59bb83['getRanges'](),_0x3f2b26)||_0x5b5a0c(_0x3f2b26,_0x59bb83[_0x48ac('0x34')]()))){if(_0x1afdb5){if(_0x59bb83[_0x48ac('0x89')]&&_0x59bb83[_0x48ac('0x89')]['length'])continue;for(const _0x31434b of _0x59bb83['getRanges']())_0x1afdb5[_0x48ac('0xda')](_0x31434b)||_0x1afdb5[_0x48ac('0x6f')](_0x31434b);_0x59bb83['removeMarkers']();}else{_0x1afdb5=_0x59bb83;for(const _0x1faff7 of _0x3f2b26)_0x59bb83[_0x48ac('0xda')](_0x1faff7)||_0x59bb83[_0x48ac('0x6f')](_0x1faff7);}}if(_0x1afdb5)return _0x1afdb5;_0x1b50e9[_0x48ac('0xc5')]();for(const _0x4ae0a1 of _0x3f2b26)for(const {suggestion:_0x2412f5,meta:_0x370bb9}of this['_findSuggestions'](_0x4ae0a1,'deletion'))_0x370bb9[_0x48ac('0x84')]&&_0x1b50e9[_0x48ac('0x63')](_0x2412f5);for(const _0x42bc22 of _0x1b50e9){const _0x253dcc=_0x42bc22['getRanges']();if(!_0x5e2580||!_0x5e2580['skipNestingCheck']){if(_0x3f2b26[_0x48ac('0x1e')](_0x2538a0=>_0x253dcc[_0x48ac('0x116')](_0x5952d6=>_0x5952d6[_0x48ac('0xf3')](_0x2538a0,!0x0))))return _0x42bc22;}(!_0x42bc22['attributes']||!_0x42bc22['attributes'][_0x48ac('0x8a')])&&(_0x253dcc[_0x48ac('0x1e')](_0xba13b1=>_0x3f2b26[_0x48ac('0x116')](_0x5c3dce=>_0x5c3dce['containsRange'](_0xba13b1,!0x0)))&&_0x42bc22['discard']());}const _0x5efe1a=_0x5dc213(),_0x26f1c2=_0xd4249d['id'],_0x1fb5a6=_0x48ac('0xff')+_0x2e2c4e,_0x4dee77=this[_0x48ac('0x19')]({'id':_0x5efe1a,'type':_0x1fb5a6,'createdAt':new Date(),'authorId':_0x26f1c2,'attributes':_0x5e2580});for(const _0x1fa45b of _0x3f2b26)_0x1fa45b[_0x48ac('0x51')](),_0x1fa45b[_0x48ac('0x33')]||_0x48ac('0x139')==_0x1fa45b['root'][_0x48ac('0xd3')]||this[_0x48ac('0x119')](_0x1fb5a6,_0x5efe1a,_0x26f1c2,_0x1fa45b,_0x22d138[_0x48ac('0x38')]());return _0x4dee77;}[_0x48ac('0xc6')](_0x4bd6a0,_0xbc0fa0){const _0x234613=_0x4bd6a0[_0x48ac('0x3')]();this[_0x48ac('0x26')][_0x48ac('0xe5')](_0x256f2a=>{_0x256f2a['updateMarker'](_0x234613,{'range':_0xbc0fa0});});}[_0x48ac('0xaa')](_0x35a5e4){const _0x18fb2a=_0x35a5e4['id'],_0x4de202=this[_0x48ac('0x7d')]['config']['get'](_0x48ac('0x58'));this[_0x48ac('0x72')][_0x48ac('0x127')](_0x18fb2a)||this[_0x48ac('0x72')][_0x48ac('0xec')]({'channelId':_0x4de202,'threadId':_0x18fb2a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f0dfb=this[_0x48ac('0x72')][_0x48ac('0x35')](_0x18fb2a);_0x3f0dfb['unbind']('isRemovable'),_0x3f0dfb[_0x48ac('0x7f')]=!0x1,_0x35a5e4[_0x48ac('0x89')]=_0x3f0dfb;}[_0x48ac('0x87')](_0x1138cf,_0x30c7e6,_0x1731b7,_0x39ad98){if(_0x1138cf[_0x48ac('0x115')]!=_0x30c7e6||_0x1138cf[_0x48ac('0x56')]!=_0x1731b7||_0x1138cf[_0x48ac('0xac')]['id']!=_0x39ad98)throw this[_0x48ac('0x7d')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1f0e77(_0x48ac('0x104'),this);}[_0x48ac('0xb8')](_0x579a93,_0x51adc1){const _0x524a93=_0x579a93[_0x48ac('0xca')]();if(_0x51adc1[_0x48ac('0xe2')](_0x524a93))_0x579a93[_0x48ac('0x65')]();else{if(_0x524a93[_0x48ac('0xf3')](_0x51adc1)){const _0xc6b7fd=this[_0x48ac('0x26')][_0x48ac('0xa2')](_0x51adc1[_0x48ac('0x85')][_0x48ac('0x113')],_0x48ac('0x4b'));this[_0x48ac('0xc6')](_0x579a93,this[_0x48ac('0x26')]['createRange'](_0x524a93[_0x48ac('0x85')],_0xc6b7fd));const _0x59479c=_0x5dc213(),_0x2dc7b4=_0x579a93[_0x48ac('0xac')]['id'],_0x26b847=_0x579a93[_0x48ac('0x115')]+':'+_0x579a93[_0x48ac('0x56')];this[_0x48ac('0x19')]({'id':_0x59479c,'type':_0x26b847,'createdAt':new Date(),'authorId':_0x2dc7b4,'data':_0x579a93['data'],'attributes':_0x579a93[_0x48ac('0x105')]});const _0x73ed94=this[_0x48ac('0x26')][_0x48ac('0xa2')](_0x51adc1['end'][_0x48ac('0x7')],_0x48ac('0x131')),_0x5c255e=this[_0x48ac('0x26')][_0x48ac('0x54')](_0x73ed94,_0x524a93[_0x48ac('0x4b')]);this['_addSuggestionMarker'](_0x26b847,_0x59479c,_0x2dc7b4,_0x5c255e);}else{if(_0x524a93['containsPosition'](_0x51adc1[_0x48ac('0x85')])){const _0x25bfbb=this[_0x48ac('0x26')]['createPositionAt'](_0x51adc1[_0x48ac('0x85')][_0x48ac('0x113')],_0x48ac('0x4b'));this['_setSuggestionRange'](_0x579a93,this[_0x48ac('0x26')][_0x48ac('0x54')](_0x524a93['start'],_0x25bfbb));}else{const _0x287ef4=this['_model'][_0x48ac('0xa2')](_0x51adc1[_0x48ac('0x4b')]['parent'],'after');this[_0x48ac('0xc6')](_0x579a93,this['_model'][_0x48ac('0x54')](_0x287ef4,_0x524a93[_0x48ac('0x4b')]));}}}}[_0x48ac('0xa3')](_0x117291){for(const {suggestion:_0x1db156,meta:_0x4c8099}of this[_0x48ac('0x22')](_0x117291,_0x48ac('0xb2'))){if(!_0x4c8099['isOwn'])continue;const _0x51155e=_0x1db156[_0x48ac('0x34')]();for(const _0x2dc22b of _0x51155e)if(!_0x117291[_0x48ac('0x8')](_0x2dc22b)[_0x48ac('0x112')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1a6055){const _0x5ad7ae=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x5c'))['getUser'](_0x1a6055);if(!_0x5ad7ae)throw new _0x1f0e77(_0x48ac('0xd7'),this);return _0x5ad7ae;}[_0x48ac('0xa1')](_0x31a8eb){const _0x2f496e=this[_0x48ac('0x7d')]['plugins']['get'](_0x48ac('0x5c')),_0xcba078=_0xdc36e('external:'+_0x31a8eb),_0x19e208=_0x2f496e[_0x48ac('0x5f')](_0xcba078);return _0x19e208||_0x2f496e[_0x48ac('0x24')]({'id':_0xcba078,'name':_0x31a8eb});}['_createSuggestion'](_0x97a3cc,_0x220858,_0x3ca8bf,_0x37a1a1,_0x583121){const _0x3ea39b=this[_0x48ac('0x10e')](_0x37a1a1),_0x26d89e=this[_0x48ac('0x118')][_0x48ac('0x80')](_0x97a3cc,_0x220858,_0x3ca8bf,_0x3ea39b,_0x583121,_0x300337=>this[_0x48ac('0x52')](_0x3ca8bf,{'attributes':_0x300337}));return this['listenTo'](_0x26d89e,_0x48ac('0x61'),()=>{this[_0x48ac('0x52')](_0x3ca8bf,{'state':_0x48ac('0x14')});},{'priority':_0x48ac('0x77')}),this[_0x48ac('0x130')](_0x26d89e,_0x48ac('0xab'),()=>{this[_0x48ac('0x52')](_0x3ca8bf,{'state':_0x48ac('0x0')});},{'priority':_0x48ac('0x77')}),this[_0x48ac('0xd1')][_0x48ac('0x13')](_0x3ca8bf,_0x26d89e),this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x26d89e,_0x48ac('0x98')),_0x26d89e;}['_splitMarkerName'](_0x47eee6){const _0x3823ea=_0x47eee6[_0x48ac('0x13a')](':');return{'group':_0x3823ea[0x0],'type':_0x3823ea[0x1],'subType':_0x3823ea[_0x48ac('0x112')]>=0x5?_0x3823ea[0x2]:null,'id':_0x3823ea[_0x48ac('0x112')]<0x5?_0x3823ea[0x2]:_0x3823ea[0x3],'authorId':_0x3823ea[_0x48ac('0x112')]<0x5?_0x3823ea[0x3]:_0x3823ea[0x4],'markerCount':0x6==_0x3823ea[_0x48ac('0x112')]?_0x3823ea[0x5]:null};}['_breakSuggestionMarker'](_0x2e6102,_0x559162,_0x3d2b18){const _0x2b2d57=_0x2e6102[_0x48ac('0xca')](),_0x14cb22=_0x2b2d57['start'],_0x4822c2=_0x2b2d57[_0x48ac('0x4b')];this['_setSuggestionRange'](_0x2e6102,this['_model'][_0x48ac('0x54')](_0x14cb22,_0x559162));const _0x2264dd=_0x5dc213(),_0x2da6de=_0x2e6102[_0x48ac('0xac')]['id'],_0xc25841=_0x2e6102[_0x48ac('0x115')]+(_0x2e6102[_0x48ac('0x56')]?':'+_0x2e6102[_0x48ac('0x56')]:'');this[_0x48ac('0x19')]({'id':_0x2264dd,'type':_0xc25841,'createdAt':new Date(),'authorId':_0x2da6de,'originalSuggestionId':_0x2e6102['id'],'attributes':_0x2e6102['attributes'],'data':_0x2e6102[_0x48ac('0xf2')]}),_0x48ac('0xbc')==_0x2e6102[_0x48ac('0x115')]&&(_0x3d2b18=this[_0x48ac('0x26')][_0x48ac('0xd8')](_0x3d2b18[_0x48ac('0x7')])),this[_0x48ac('0x119')](_0xc25841,_0x2264dd,_0x2da6de,this['_model'][_0x48ac('0x54')](_0x3d2b18,_0x4822c2));}[_0x48ac('0x22')](_0x50d711,_0x47bf8f=null){const _0x59bec3=[],_0x38ee39=this[_0x48ac('0x26')]['schema'],_0x4a4839=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x5c'))['me'];for(const _0x403eda of this[_0x48ac('0x7c')]())if(_0x403eda['isInContent']&&(!_0x47bf8f||_0x403eda[_0x48ac('0x115')]==_0x47bf8f))for(const _0x3f1236 of _0x403eda[_0x48ac('0x34')]()){const _0x3d85e1=_0x50d711['start']['isEqual'](_0x3f1236['end'])||_0x50d711[_0x48ac('0x4b')][_0x48ac('0xe2')](_0x3f1236[_0x48ac('0x85')]);if(_0x3d85e1||_0x50d711['getIntersection'](_0x3f1236)){const _0x7c8b80=_0x50d711['containsRange'](_0x3f1236)&&Bt(_0x38ee39,_0x3f1236[_0x48ac('0x85')],_0x50d711),_0x449d7f=_0x3f1236['containsRange'](_0x50d711)&&Bt(_0x38ee39,_0x50d711['start'],_0x3f1236);_0x59bec3[_0x48ac('0xb1')]({'suggestion':_0x403eda,'meta':{'isOwn':_0x4a4839==_0x403eda[_0x48ac('0xfe')],'isNextTo':_0x3d85e1,'isInsideObject':_0x7c8b80,'containsRangeInObject':_0x449d7f}});break;}}return _0x59bec3;}['_addSuggestionMarker'](_0x5e95df,_0x22672d,_0x20579e,_0x18b541,_0xb58200){this[_0x48ac('0x26')][_0x48ac('0xe5')](_0x29d600=>{let _0x242127=_0x48ac('0xb0')+_0x5e95df+':'+_0x22672d+':'+_0x20579e;_0xb58200&&(_0x242127=_0x242127+':'+_0xb58200),_0x29d600[_0x48ac('0x6e')](_0x242127,{'range':_0x18b541,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x48ac('0x45')](_0x47a537){const _0x5d3c30=_0x47a537[_0x48ac('0x13b')],_0x481cde=_0x47a537['next'];_0x47a537[_0x48ac('0x13b')]=null,null!=_0x5d3c30&&(_0x5d3c30[_0x48ac('0x102')]=null),_0x47a537['next']=null,null!=_0x481cde&&(_0x481cde[_0x48ac('0x13b')]=null),_0x48ac('0x71')==this[_0x48ac('0x3f')][_0x48ac('0x110')](_0x47a537)&&(this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x47a537,'removed'),this[_0x48ac('0x53')](_0x48ac('0x91'),_0x47a537,_0x5d3c30,_0x481cde));}[_0x48ac('0x19')](_0x5dfcec){const _0x4866ae=_0x5dfcec['id'],_0x3c34e7=this[_0x48ac('0xc8')](_0x5dfcec);if(this[_0x48ac('0x8e')]&&this[_0x48ac('0x8e')][_0x48ac('0x88')]){const _0x12e46a=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x124')),_0x4fc49b=_0x3c34e7['hasComments'],_0x101c18=_0x3c34e7[_0x48ac('0x56')]?_0x3c34e7['type']+':'+_0x3c34e7[_0x48ac('0x56')]:_0x3c34e7['type'],_0x33d1c5=this[_0x48ac('0x7d')]['locale'],_0x382722=_0x12e46a[_0x48ac('0x63')](_0x56bead(_0x33d1c5,'PENDING_ACTION_SUGGESTION')),_0x26a620={'id':_0x4866ae,'type':_0x101c18,'hasComments':_0x4fc49b,'data':_0x5dfcec[_0x48ac('0xf2')]||null,'originalSuggestionId':_0x5dfcec[_0x48ac('0xa0')]||null,'attributes':_0x3c34e7['attributes']};this[_0x48ac('0x8e')]['addSuggestion'](_0x26a620)[_0x48ac('0x46')](_0x3ec692=>{_0x3c34e7[_0x48ac('0xdf')]=!0x0,_0x12e46a[_0x48ac('0x17')](_0x382722),_0x3ec692&&_0x3ec692[_0x48ac('0x96')]&&(this[_0x48ac('0xd1')]['get'](_0x4866ae)[_0x48ac('0x96')]=_0x3ec692['createdAt']);})[_0x48ac('0x64')](_0x17424d=>{throw _0xc4f741(_0x48ac('0xe1')),this[_0x48ac('0x7d')][_0x48ac('0xad')][_0x48ac('0x75')]({'isUndoable':!0x1},()=>{_0x3c34e7['discard']();}),_0x3c34e7[_0x48ac('0xf7')](),this[_0x48ac('0xd1')][_0x48ac('0xd0')](_0x3c34e7['id']),this[_0x48ac('0x3f')]['delete'](_0x3c34e7),_0x17424d;});}return _0x3c34e7;}['_updateSuggestionData'](_0x2110b0,_0x3b6da5){const _0x5b51c8=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x124')),_0x334fb4=this['getSuggestion'](_0x2110b0);if(this['_adapter']&&this[_0x48ac('0x8e')][_0x48ac('0x9d')]){if(_0x334fb4[_0x48ac('0xdf')]){const _0x1f78b0=_0x5b51c8['add'](_0x56bead(this[_0x48ac('0x7d')]['locale'],_0x48ac('0xb6')));this['_adapter'][_0x48ac('0x9d')](_0x2110b0,_0x3b6da5)[_0x48ac('0x46')](()=>{_0x5b51c8[_0x48ac('0x17')](_0x1f78b0);});}else _0x334fb4['on']('change:_saved',()=>{this[_0x48ac('0x52')](_0x2110b0,_0x3b6da5);});}}[_0x48ac('0x8c')](_0x688478){if(!this[_0x48ac('0x8e')]||!this[_0x48ac('0x8e')][_0x48ac('0xe6')])throw new _0x1f0e77(_0x48ac('0x137'),this);return this[_0x48ac('0x8e')][_0x48ac('0xe6')](_0x688478);}[_0x48ac('0x120')](_0x5ccc37){const {id:_0x41073b,type:_0x2500e0,subType:_0x1f9c19,authorId:_0x2aac3d}=this['_splitMarkerName'](_0x5ccc37),_0x553951=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x41073b)||this[_0x48ac('0x86')](_0x2500e0,_0x1f9c19,_0x41073b,_0x2aac3d,{});switch(this['_checkSuggestionCorrectness'](_0x553951,_0x2500e0,_0x1f9c19,_0x2aac3d),this[_0x48ac('0x3f')][_0x48ac('0x110')](_0x553951)){case _0x48ac('0x98'):this[_0x48ac('0x8c')](_0x41073b)[_0x48ac('0x46')](_0x2457c4=>{let _0x74d7b7=Promise[_0x48ac('0x6a')]();_0x2457c4[_0x48ac('0x2a')]&&(_0x74d7b7=this[_0x48ac('0x72')][_0x48ac('0x7b')]({'channelId':this[_0x48ac('0x7d')][_0x48ac('0x103')][_0x48ac('0x110')]('collaboration.channelId'),'threadId':_0x41073b})),_0x74d7b7['then'](()=>{this[_0x48ac('0xc8')](_0x2457c4)[_0x48ac('0xdf')]=!0x0;});}),this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x553951,_0x48ac('0x59'));break;case _0x48ac('0xfb'):this[_0x48ac('0x52')](_0x41073b,{'state':_0x48ac('0xef')});case _0x48ac('0x9c'):this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x553951,'ready'),this[_0x48ac('0x53')]('suggestionLoaded',_0x553951);break;case _0x48ac('0x71'):this[_0x48ac('0x53')](_0x48ac('0x114'),_0x553951);}return _0x553951[_0x48ac('0xb')](_0x5ccc37),_0x553951;}[_0x48ac('0x2c')](_0x5e615b){const _0x3bdaeb=Array['from'](_0x5e615b)[_0x48ac('0x12d')](_0x2c0ffc=>!_0x2c0ffc[_0x48ac('0x3d')]),_0x257a8b=this[_0x48ac('0x7c')]({'skipNotAttached':!0x0})[_0x48ac('0x12d')](_0x46e187=>!_0x46e187['isMultiRange']),_0x513872=_0x257a8b[_0x48ac('0x12d')](_0x1c20ee=>!_0x5e615b['has'](_0x1c20ee)),_0x2b8654=new Map(_0x257a8b[_0x48ac('0x18')](_0x1dd08e=>[_0x1dd08e,this['_suggestionFactory']['getSuggestionCallback'](_0x1dd08e['type'],_0x1dd08e['subType'],'chain')])),_0x417940=new Map(_0x257a8b['map'](_0x365548=>[_0x365548,_0x365548[_0x48ac('0xca')]()])),_0x3e5af5=new Set(),_0x25a8d3=new Set();for(let _0x1521b7=0x0;_0x1521b7<_0x3bdaeb[_0x48ac('0x112')];_0x1521b7++)_0x21d971(_0x3bdaeb[_0x1521b7],_0x3bdaeb,_0x1521b7+0x1);for(let _0xd4fe03=0x0;_0xd4fe03<_0x3bdaeb[_0x48ac('0x112')];_0xd4fe03++)_0x21d971(_0x3bdaeb[_0xd4fe03],_0x513872,0x0);for(let _0x4c31ff=0x0;_0x4c31ff<_0x3bdaeb[_0x48ac('0x112')];_0x4c31ff++){const _0x9cb174=_0x3bdaeb[_0x4c31ff];!_0x25a8d3[_0x48ac('0xa9')](_0x9cb174)&&_0x9cb174[_0x48ac('0x13b')]&&(_0x9cb174[_0x48ac('0x13b')]['next']===_0x9cb174&&(_0x9cb174['previous'][_0x48ac('0x102')]=null),_0x9cb174[_0x48ac('0x13b')]=null),!_0x3e5af5['has'](_0x9cb174)&&_0x9cb174['next']&&(_0x9cb174[_0x48ac('0x102')]['previous']===_0x9cb174&&(_0x9cb174[_0x48ac('0x102')]['previous']=null),_0x9cb174[_0x48ac('0x102')]=null);}function _0x21d971(_0x1d4fce,_0x471f7c,_0xaefe3e){for(let _0x2a013f=_0xaefe3e;_0x2a013f<_0x471f7c[_0x48ac('0x112')];_0x2a013f++){const _0x172f1d=_0x4b66ff(_0x1d4fce,_0x471f7c[_0x2a013f]);_0x172f1d&&(_0x172f1d[0x0][_0x48ac('0x102')]=_0x172f1d[0x1],_0x172f1d[0x1][_0x48ac('0x13b')]=_0x172f1d[0x0],_0x3e5af5['add'](_0x172f1d[0x0]),_0x25a8d3[_0x48ac('0x63')](_0x172f1d[0x1]));}}function _0x4b66ff(_0x2d9e98,_0x2bc072){if(_0x2d9e98[_0x48ac('0xfe')]['id']!==_0x2bc072[_0x48ac('0xfe')]['id'])return null;const _0x4dfc1a=_0x2b8654[_0x48ac('0x110')](_0x2d9e98)(_0x2d9e98,_0x2bc072,_0x417940[_0x48ac('0x110')](_0x2d9e98),_0x417940['get'](_0x2bc072));if(!_0x4dfc1a)return null;return _0x2b8654[_0x48ac('0x110')](_0x2bc072)(_0x2d9e98,_0x2bc072,_0x417940[_0x48ac('0x110')](_0x2d9e98),_0x417940[_0x48ac('0x110')](_0x2bc072))?_0x4dfc1a[0x1]['commentThread']&&_0x4dfc1a[0x1]['commentThread'][_0x48ac('0x112')]?null:_0x4dfc1a:null;}}['_joinWithAdjacentSuggestions'](_0x14a141){const _0x118ca3=Array['from'](_0x14a141),_0x46e035=this[_0x48ac('0x7c')]({'skipNotAttached':!0x0}),_0x5ae8aa=_0x46e035[_0x48ac('0x12d')](_0xc013d0=>!_0x14a141[_0x48ac('0xa9')](_0xc013d0)),_0x29073a=new Map(_0x118ca3[_0x48ac('0x18')](_0x356997=>[_0x356997,this[_0x48ac('0x118')][_0x48ac('0x62')](_0x356997['type'],_0x356997[_0x48ac('0x56')],_0x48ac('0x100'))])),_0x36585a=new Map(_0x46e035[_0x48ac('0x18')](_0x38e51a=>[_0x38e51a,_0x38e51a[_0x48ac('0x34')]()]));for(let _0x51209d=0x0;_0x51209d<_0x118ca3[_0x48ac('0x112')];_0x51209d++){if(_0x45580c(this,_0x118ca3[_0x51209d],_0x118ca3,_0x51209d+0x1))return!0x0;}for(let _0x5948ba=0x0;_0x5948ba<_0x118ca3[_0x48ac('0x112')];_0x5948ba++){if(_0x45580c(this,_0x118ca3[_0x5948ba],_0x5ae8aa,0x0))return!0x0;}return!0x1;function _0x45580c(_0x23da53,_0x53a172,_0x313f63,_0x85bbd8){for(let _0x363d2b=_0x85bbd8;_0x363d2b<_0x313f63['length'];_0x363d2b++){const _0x1f0e60=_0x313f63[_0x363d2b];if(_0x1f0e60[_0x48ac('0x115')]!==_0x53a172[_0x48ac('0x115')]||_0x1f0e60[_0x48ac('0xfe')]['id']!==_0x53a172[_0x48ac('0xfe')]['id']||_0x1f0e60[_0x48ac('0x56')]!==_0x53a172[_0x48ac('0x56')])continue;const _0x32adae=_0x29073a[_0x48ac('0x110')](_0x53a172),_0xd25c3d=_0x36585a[_0x48ac('0x110')](_0x53a172),_0x2ee01b=_0x36585a[_0x48ac('0x110')](_0x1f0e60),_0x2fb532=_0x53a172[_0x48ac('0x89')]&&_0x53a172[_0x48ac('0x89')][_0x48ac('0x112')],_0x4fe9ff=_0x1f0e60[_0x48ac('0x89')]&&_0x1f0e60[_0x48ac('0x89')][_0x48ac('0x112')];if(!_0x2fb532&&_0x32adae(_0x2ee01b,_0xd25c3d))return _0x23da53[_0x48ac('0x70')](_0x1f0e60,_0x53a172),_0x36585a['delete'](_0x53a172),!0x0;if(!_0x4fe9ff&&_0x32adae(_0xd25c3d,_0x2ee01b))return _0x23da53[_0x48ac('0x70')](_0x53a172,_0x1f0e60),_0x36585a['delete'](_0x1f0e60),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4e2ea9,_0x2e739d){if(_0x4e2ea9[_0x48ac('0x3d')])for(const _0x28accd of _0x2e739d[_0x48ac('0x34')]())_0x4e2ea9[_0x48ac('0x6f')](_0x28accd);else{const _0x11fd0e=_0x2e739d[_0x48ac('0xca')]()[_0x48ac('0x4b')];this[_0x48ac('0xc6')](_0x4e2ea9,this[_0x48ac('0x26')]['createRange'](_0x4e2ea9[_0x48ac('0xca')]()[_0x48ac('0x85')],_0x11fd0e));}_0x2e739d[_0x48ac('0x65')]();}}class Dt{constructor(_0x3dbe17){this['_editor']=_0x3dbe17,this['_model']=_0x3dbe17[_0x48ac('0xad')],this['_customCallbacks']=new Map(),this[_0x48ac('0xcc')]=new Map(),this[_0x48ac('0xc4')]();}[_0x48ac('0x80')](_0x31078f,_0x581da9,_0x504faa,_0x4c0ce7,_0x964a8c,_0x28c43d){return new _0x22d138(this[_0x48ac('0x26')],{'type':_0x31078f,'subType':_0x581da9,'id':_0x504faa,'author':_0x4c0ce7,'creator':_0x4c0ce7,'attributes':_0x964a8c,'onAttributesChange':_0x28c43d,'onAccept':(..._0x2a246e)=>this['getSuggestionCallback'](_0x31078f,_0x581da9,_0x48ac('0x61'))(..._0x2a246e),'onDiscard':(..._0x4525d3)=>this[_0x48ac('0x62')](_0x31078f,_0x581da9,'discard')(..._0x4525d3)});}[_0x48ac('0x1b')](_0x33c28a,_0x124e7d,_0x179edc,_0x132584){const _0x3134ee=_0x33c28a+':'+_0x124e7d+':'+_0x179edc;this['_customCallbacks'][_0x48ac('0x13')](_0x3134ee,_0x132584);}[_0x48ac('0x62')](_0x1f934b,_0x21cc31,_0x279a26){const _0x405910=_0x1f934b+':'+_0x21cc31+':'+_0x279a26;return this[_0x48ac('0x111')]['get'](_0x405910)||this['_defaultCallbacks'][_0x48ac('0x110')](_0x1f934b+':'+_0x279a26);}['_registerDefaultCallbacks'](){const _0x3ea00f=()=>{},_0x475f5f=_0x2126d1=>{_0x2126d1[_0x48ac('0x30')]((_0x307589,_0x123432)=>_0x307589[_0x48ac('0x85')][_0x48ac('0xf6')](_0x123432[_0x48ac('0x85')])?0x1:-0x1),this[_0x48ac('0x26')]['change'](_0x3670e7=>{for(const _0x5844a1 of _0x2126d1){let _0x29e4b4;_0x29e4b4=_0x5844a1[_0x48ac('0x4b')][_0x48ac('0x12b')]&&_0x5844a1['end']['parent']==_0x5844a1[_0x48ac('0x85')]['nodeAfter']?_0x3670e7[_0x48ac('0x5e')](_0x5844a1['start'][_0x48ac('0x9e')],'on'):_0x3670e7[_0x48ac('0x5e')](_0x5844a1),this['_model'][_0x48ac('0x47')](_0x29e4b4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x356e8c=(_0x230761,_0x56cc60)=>{this[_0x48ac('0x26')][_0x48ac('0xe5')](_0x40ff92=>{const {commandName:_0x4716ff,commandParams:_0x539d56=[]}=_0x56cc60,_0x3484ca=_0x230761[_0x48ac('0x18')](_0x515385=>(_t(_0x515385)&&(_0x515385=this[_0x48ac('0x26')]['createRange'](_0x515385[_0x48ac('0x4b')])),_0x515385))[_0x48ac('0x12d')](_0x3c5c4e=>_0x48ac('0x139')!==_0x3c5c4e['root'][_0x48ac('0xd3')]);if(_0x3484ca[_0x48ac('0x112')]<0x1)return;const _0x3eed46=Array['from'](this[_0x48ac('0x26')][_0x48ac('0xe7')][_0x48ac('0x5d')][_0x48ac('0x34')]())[_0x48ac('0x18')](_0x4909a5=>_0x30323b['fromRange'](_0x4909a5));_0x40ff92[_0x48ac('0x12')](_0x3484ca);for(const _0x545ba7 of this[_0x48ac('0xb7')][_0x48ac('0x99')]['commands']())_0x545ba7['refresh']();_0x539d56[_0x48ac('0xb1')]({'forceDefaultExecution':!0x0}),this[_0x48ac('0xb7')][_0x48ac('0xdb')](_0x4716ff,..._0x539d56);const _0x3dcd08=_0x3eed46['filter'](_0x59c8f7=>_0x48ac('0x139')!=_0x59c8f7['root']['rootName']);_0x3dcd08[_0x48ac('0x112')]>0x0&&_0x40ff92['setSelection'](_0x3dcd08);for(const _0x5ea598 of _0x3eed46)_0x5ea598[_0x48ac('0x51')]();});},_0x5b7dae=(_0x381853,_0x1a1651)=>0x1==_0x381853['length']&&0x1==_0x1a1651[_0x48ac('0x112')]&&_0x381853[0x0][_0x48ac('0x4b')][_0x48ac('0xe2')](_0x1a1651[0x0][_0x48ac('0x85')]),_0x49d51a=(_0x22374,_0x4198c3,_0x235ffa,_0x17a7c2)=>xt(_0x22374,_0x4198c3,_0x235ffa,_0x17a7c2,this[_0x48ac('0x26')])?[_0x22374,_0x4198c3]:xt(_0x4198c3,_0x22374,_0x17a7c2,_0x235ffa,this[_0x48ac('0x26')])?[_0x4198c3,_0x22374]:null;this['_defaultCallbacks']['set'](_0x48ac('0xc2'),_0x3ea00f),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0xf4'),_0x475f5f),this['_defaultCallbacks']['set']('insertion:join',_0x5b7dae),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0x15'),_0x49d51a),this[_0x48ac('0xcc')][_0x48ac('0x13')]('deletion:accept',_0x475f5f),this['_defaultCallbacks']['set'](_0x48ac('0xbb'),_0x3ea00f),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0x3e'),_0x5b7dae),this[_0x48ac('0xcc')]['set']('deletion:chain',_0x49d51a),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0x135'),_0x356e8c),this['_defaultCallbacks']['set']('formatInline:discard',_0x3ea00f),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0x39'),_0x5b7dae),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0x13c'),_0x3ea00f),this[_0x48ac('0xcc')]['set']('formatBlock:accept',_0x356e8c),this[_0x48ac('0xcc')][_0x48ac('0x13')]('formatBlock:discard',_0x3ea00f),this['_defaultCallbacks'][_0x48ac('0x13')]('formatBlock:join',_0x5b7dae),this[_0x48ac('0xcc')][_0x48ac('0x13')]('formatBlock:chain',_0x3ea00f);}}function Bt(_0x4aa4c1,_0x5a5ab3,_0x3ee7ac){for(const _0x11fac3 of _0x5a5ab3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x11fac3['root']==_0x11fac3)return!0x1;if(!_0x3ee7ac[_0x48ac('0x29')](_0x11fac3))return!0x1;if(_0x4aa4c1['isObject'](_0x11fac3)||_0x4aa4c1[_0x48ac('0xa7')](_0x11fac3))return!0x0;}return!0x1;}function _t(_0x5ed7d8){return _0x5ed7d8[_0x48ac('0x4b')][_0x48ac('0x7')]==_0x5ed7d8[_0x48ac('0x85')][_0x48ac('0x9e')]&&_0x5ed7d8['end']['isAtStart'];}function Mt(_0x5cf122,_0x16d91c,_0x425163,_0x55426c){const _0xa15d8d=_0x1f0f72=>!_0x1f0f72[_0x48ac('0x133')]['is'](_0x48ac('0xbf'))&&!_0x55426c[_0x48ac('0x101')](_0x1f0f72[_0x48ac('0x133')]),_0x206d5c=_0x5cf122[_0x48ac('0x85')][_0x48ac('0x32')](_0xa15d8d),_0x5e8bf2=_0x5cf122[_0x48ac('0x4b')][_0x48ac('0x32')](_0xa15d8d,{'direction':'backward'});return(!_0x5cf122['start'][_0x48ac('0xe2')](_0x206d5c)||!_0x5cf122['end'][_0x48ac('0xe2')](_0x5e8bf2))&&(_0x206d5c[_0x48ac('0xf6')](_0x5e8bf2)?_0x425163[_0x48ac('0xbd')](_0x16d91c,{'range':_0x425163['createRange'](_0x206d5c,_0x5e8bf2)}):_0x425163[_0x48ac('0x10f')](_0x16d91c),!0x0);}function $t(_0xa307f0){return _0xdc36e(_0xa307f0);}function Nt(_0x1ef9fe){const _0x4dd078=_0x1ef9fe[_0x48ac('0x85')][_0x48ac('0x9e')];return _0x4dd078&&_0x4dd078['is'](_0x48ac('0xb4'));}function Rt(_0x31b89c,_0xae3b69){const _0x4879f0=_0xae3b69['schema'][_0x48ac('0x101')](_0x31b89c)||_0xae3b69['schema']['isSelectable'](_0x31b89c);return _0xae3b69[_0x48ac('0x54')](_0xae3b69[_0x48ac('0xa2')](_0x31b89c,_0x48ac('0x94')),_0x4879f0?_0xae3b69[_0x48ac('0x129')](_0x31b89c):_0xae3b69[_0x48ac('0xa2')](_0x31b89c,_0x48ac('0x4b')));}function xt(_0x4e8699,_0x20665c,_0x22fa9f,_0xe8b0a,_0x394c75){if(_0x22fa9f[_0x48ac('0x4b')]['isEqual'](_0xe8b0a[_0x48ac('0x85')]))return!0x0;if(_0x4e8699['type']!=_0x20665c[_0x48ac('0x115')])return!0x1;if(!_0x22fa9f[_0x48ac('0x4b')][_0x48ac('0xeb')](_0xe8b0a[_0x48ac('0x85')]))return!0x1;const _0x574c34=_0x394c75['createRange'](_0x22fa9f['end'],_0xe8b0a[_0x48ac('0x85')])[_0x48ac('0x1f')]();for(const _0xf60a21 of _0x574c34)if([_0x48ac('0x7a'),_0x48ac('0x1a')][_0x48ac('0xf8')](_0xf60a21['type'])&&_0x394c75[_0x48ac('0xcf')][_0x48ac('0xa7')](_0xf60a21[_0x48ac('0x133')]))return!0x1;return!0x0;}