@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231024.0 → 0.0.0-nightly-20231025.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20231025.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"ckeditor5": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20231025.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231025.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 _0x4c00=['root','markerNameToElements','_addThreadToSuggestion','_refreshSuggestionsChain','removed','addSuggestionData','deletion','isExternal','_model','commandName','ck-suggestion-marker','elementStart','listenTo','markDeletion','getRanges','_commentsRepository','insertion','data','hasComments','backward','getFirstRange','start','deletion:discard','tablePasteChainId','formatInline:accept','isSelectable','_checkSuggestionCorrectness','discardAllSuggestions','toViewElement','updateMarker','formatBlock','registerCustomCallback','low','hasCommentThread','bindElementToMarker','length','_suggestionFactory','writer','stop','detach','getLastMatchingPosition','open','multi','formatInline:','update:suggestion','skipNestingCheck','formatInline:chain','trackChanges.trackFormatChanges','isNextTo','getCustomProperty','position','_descriptionFactory','_findSuggestions','values','isEqual','adapter','_createSuggestion','isAfter','createdAt','addRange','containsRange','_joinSuggestions','options','highest','_updateSuggestionData','addMarker:suggestion:formatBlock','isMultiRange','never','_adapter','next','default','name','every','createRange','assign','fire','_suggestions','@external','isAtEnd','item','lowest','addMarkerName','isAtStart','suggestionUnloaded','delete','mapper','setSelection','track-changes-suggestion-data-mismatch','batch','isArray','creator','applyOperation','value','keys','howMany','insert','discardSelectedSuggestions','map','differ','activeMarkers','removeClass','markMultiRangeBlockFormat','model','end','markInlineFormat','pluginName','addClass','track-changes-suggestion-not-found','track-changes-adapter-already-set','define','getSuggestionCallback','hasSuggestion','_trackFormatChanges','fetchCommentThread','trackChanges','_setSuggestionData','some','updateSuggestion','formatInline:join','formatBlock:join','join','isInsideObject','$marker','chain','accepted','_defaultCallbacks','_breakSuggestionMarker','showSuggestionHighlights','deletion:accept','for','clone','addMarker:suggestion','_addSuggestionMarker','accept','trackChanges.mergeNestedSuggestions','unbind','elementEnd','schema','_mergeNestedSuggestions','_rangeIsInLocalUserInsertion','forward','setTo','splice','document','acceptSelectedSuggestions','commands','consumable','createSelection','trackChangesCommand','isBlock','newRange','nodeBefore','formatInline','dataToMarker','originalSuggestionId','formatInline:discard','PENDING_ACTION_SUGGESTION','_isDataLoaded','_removeSuggestion','add','type','change','formatBlock:','getDifference','dataDowncast','then','getIntersection','deletion:','enableReadOnlyMode','high','insertion:','TrackChangesEditing','authoredAt','$textProxy','$graveyard','substr','discardSuggestion','getSuggestion','filter','discard','_getExternalAuthor','notReady','getChanges','track-changes-adapter-missing-getsuggestion','marker-count','markInsertion','formatBlock:accept','enableCommand','oldRange','set','PendingActions','_suggestionState','_saved','rootName','markMultiRangeDeletion','acceptSuggestion','plugins','markerName','getNearestSelectionRange','head','catch','deletion:join','getAttribute','selection','isObject','_getAuthorFromId','createPositionBefore','isOwn','clear','size','markers','Users','sort','getUser','isCollapsed','_editor','insertion:chain','removeMarker','registerPostFixer','isIntersectingWithRange','author','isDocumentOperation','containerElement','formatBlock:discard','getAllAdjacentSuggestions','isLimit','getShiftedBy','_customCallbacks','addSuggestion','forceDefaultExecution','collaboration.channelId','upcast','removeComment','isBefore','_setSuggestionRange','acceptAllSuggestions','getChangedMarkers','_cutOutSuggestionMarker','buildSuggestion','editingDowncast','getRange','targetPosition','containsRangeInObject','fromRange','suggestion:','_isForcedDefaultExecutionBlock','dataReady','parent','insertContent','ck-suggestion-marker-','consume','editor','insertion:discard','ck-suggestion-marker--active','moveTargetPosition','after','_onDiscard','locale','suggestionChanged','containsItem','commentThread','addHighlight','normal','markerToData','suggestion','addMarker','range','attributes','external:','includes','nodeAfter','from','removeAttribute','getMultiRangeId','removeMarkers','conversion','return','config','getItems','previous','ck-suggestion-marker-formatBlock','isInContent','split','get','formatGroupId','push','getSuggestions','change:activeMarkers','_enabledCommands','multipleBlocks','suggestion-type','addUser','unbindElementFromMarkerName','group','_splitMarkerName','fromCharCode','execute','subType','change:data','ready','error-saving-suggestion-data-suggestion-discarded','createPositionAt','createRangeIn','remove','element','getMarkers','CommentsRepository','getFirstMarker','containsPosition','has','markMultiRangeInsertion','splitPosition','always','getWalker','before','authorName','stopListening','setAttribute','markerToHighlight','addCommentThread','_joinWithAdjacentSuggestions','isRemovable'];(function(_0x1c1b32,_0x4c0057){const _0x4c7c83=function(_0x4b9b54){while(--_0x4b9b54){_0x1c1b32['push'](_0x1c1b32['shift']());}};_0x4c7c83(++_0x4c0057);}(_0x4c00,0xda));const _0x4c7c=function(_0x1c1b32,_0x4c0057){_0x1c1b32=_0x1c1b32-0x0;let _0x4c7c83=_0x4c00[_0x1c1b32];return _0x4c7c83;};import{Plugin as _0x5348d7,PendingActions as _0x302d36}from'ckeditor5/src/core';import{LiveRange as _0x4f665b}from'ckeditor5/src/engine';import{CKEditorError as _0x81df42,uid as _0x52451d,priorities as _0x235764,logWarning as _0x44d4db}from'ckeditor5/src/utils';import{toWidget as _0x244c6f}from'ckeditor5/src/widget';import{Users as _0x4ae80b,hashObject as _0x4eb39b}from'ckeditor5-collaboration/src/collaboration-core';import _0x2efa39 from'./commands/trackchangescommand';import _0x423b5d from'./commands/acceptsuggestioncommand';import _0x2bcc83 from'./commands/discardsuggestioncommand';import _0xc58386 from'./commands/executeonallsuggestionscommand';import _0x376181 from'./commands/executeonselectedsuggestionscommand';import _0x5a82f6 from'./suggestion';import _0x3b10b6 from'./suggestiondescriptionfactory';import _0x492b89 from'./integrations/aiassistant';import _0x2697ac from'./integrations/alignment';import _0x17ed43 from'./integrations/basicstyles';import _0x1c8ffe from'./integrations/blockquote';import _0x8a5e06 from'./integrations/ckbox';import _0x3fa3e1 from'./integrations/codeblock';import _0x2e0d55 from'./integrations/comments';import _0x1596f9 from'./integrations/deletecommand';import _0x156363 from'./integrations/documentlist';import _0x89fd65 from'./integrations/entercommand';import _0x508dc7 from'./integrations/findandreplace';import _0x5f1b47 from'./integrations/font';import _0xd5c09c from'./integrations/formatpainter';import _0x1c0904 from'./integrations/heading';import _0x22591c from'./integrations/highlight';import _0x4b9d70 from'./integrations/horizontalline';import _0x34c502 from'./integrations/htmlembed';import _0x6d1eaf from'./integrations/image';import _0x11eba8 from'./integrations/imagereplace';import _0x4934f9 from'./integrations/importword';import _0x4ac83d from'./integrations/indent';import _0x4f71e9 from'./integrations/inputcommand';import _0x3f105e from'./integrations/link';import _0x4b2e31 from'./integrations/list';import _0x5495a4 from'./integrations/listproperties';import _0x283a0e from'./integrations/mediaembed';import _0x5c24a5 from'./integrations/mention';import _0x31ac37 from'./integrations/pagebreak';import _0x5c9d5a from'./integrations/paragraph';import _0x4fb273 from'./integrations/removeformat';import _0x23f528 from'./integrations/restrictededitingmode';import _0x5dd27c from'./integrations/shiftentercommand';import _0x271fa7 from'./integrations/standardeditingmode';import _0x13446e from'./integrations/style';import _0x216db8 from'./integrations/table';import _0x36edd7 from'./integrations/tablemergesplit';import _0x1966fc from'./integrations/tableheadings';import _0x20746b from'./integrations/tableclipboard';import _0x3aaa16 from'./integrations/tablecolumnresize';import _0x66e4af from'./integrations/template';import _0x1af750 from'./integrations/tableofcontents';import _0x41f368 from'./integrations/title';import _0x2e3ae4 from'./integrations/undo';import{getTranslation as _0x4b0140}from'./utils/common-translations';import _0xf76fa7 from'./integrations/tablecaption';import _0x32abba from'./integrations/documentlistproperties';import _0x572041 from'./integrations/tableproperties';import{isEqual as _0x4d46c0}from'lodash-es';export default class p extends _0x5348d7{static get['requires'](){return['CommentsRepository',_0x4ae80b,_0x302d36,_0x492b89,_0x2697ac,_0x17ed43,_0x1c8ffe,_0x8a5e06,_0x3fa3e1,_0x2e0d55,_0x1596f9,_0x156363,_0x32abba,_0x89fd65,_0x508dc7,_0x5f1b47,_0xd5c09c,_0x1c0904,_0x22591c,_0x4b9d70,_0x34c502,_0x6d1eaf,_0x11eba8,_0x4934f9,_0x4ac83d,_0x4f71e9,_0x3f105e,_0x4b2e31,_0x5495a4,_0x283a0e,_0x5c24a5,_0x31ac37,_0x5c9d5a,_0x4fb273,_0x23f528,_0x5dd27c,_0x271fa7,_0x13446e,_0x216db8,_0x36edd7,_0x1966fc,_0xf76fa7,_0x20746b,_0x3aaa16,_0x1af750,_0x572041,_0x66e4af,_0x41f368,_0x2e3ae4];}static get[_0x4c7c('0xd1')](){return _0x4c7c('0x113');}constructor(_0x257696){function _0x57b68a(_0x20a053){return _0x20a053['map'](_0x6a3779=>String[_0x4c7c('0x4d')](_0x6a3779))[_0x4c7c('0xe0')]('');}super(_0x257696),this[_0x4c7c('0x125')](_0x4c7c('0xcb'),[]),this['on'](_0x4c7c('0x45'),(_0x2cec9c,_0x2fd62a,_0x182f07,_0x1cebfb)=>{this['_model']['change'](()=>{for(const _0x3f89b1 of[..._0x1cebfb,..._0x182f07])this[_0x4c7c('0x70')][_0x4c7c('0x13a')]['has'](_0x3f89b1)&&_0x257696['editing']['reconvertMarker'](_0x3f89b1);});}),this[_0x4c7c('0x9b')]=new _0x3b10b6(this[_0x4c7c('0x21')][_0x4c7c('0xce')][_0x4c7c('0xf1')],this[_0x4c7c('0x21')][_0x4c7c('0x27')]),this['_adapter']=null,this['_suggestionFactory']=new Bt(this['editor']),this[_0x4c7c('0xb4')]=new Map(),this[_0x4c7c('0x77')]=_0x257696[_0x4c7c('0x12c')][_0x4c7c('0x41')]('CommentsRepository'),this[_0x4c7c('0x46')]=new Set(),this['_model']=this[_0x4c7c('0x21')][_0x4c7c('0xce')],this[_0x4c7c('0x127')]=new WeakMap(),this[_0x4c7c('0x1b')]=!0x1,_0x257696[_0x4c7c('0x3b')][_0x4c7c('0xd5')](_0x4c7c('0x97'),_0x4c7c('0xae')),this[_0x4c7c('0xd8')]=_0x257696[_0x4c7c('0x3b')][_0x4c7c('0x41')]('trackChanges.trackFormatChanges'),_0x257696[_0x4c7c('0x3b')][_0x4c7c('0xd5')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x4c7c('0xf2')]=_0x257696[_0x4c7c('0x3b')][_0x4c7c('0x41')](_0x4c7c('0xee')),this['trackChangesCommand']=new _0x2efa39(_0x257696,this[_0x4c7c('0x46')]),this[_0x57b68a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57b68a([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x38]);}['init'](){const _0x14f34a=this[_0x4c7c('0x21')];_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')](_0x4c7c('0x15'))[_0x4c7c('0x64')]({'model':_0x4c7c('0x2e'),'view':_0x206137=>{const {id:_0x58f56f,type:_0x4d18e6}=this['_splitMarkerName'](_0x206137[_0x4c7c('0x12d')]),_0x5976d8=[_0x4c7c('0x72'),_0x4c7c('0x1f')+_0x4d18e6];let _0x4dbd40=0xbb8;return this['activeMarkers']['includes'](_0x206137[_0x4c7c('0x12d')])&&(_0x5976d8[_0x4c7c('0x43')](_0x4c7c('0x23')),_0x4dbd40=0xbc2),_0x4c7c('0x6e')==_0x4d18e6&&(_0x4dbd40+=0x5),{'classes':_0x5976d8,'attributes':{'data-suggestion':_0x58f56f},'priority':_0x4dbd40};}}),_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')](_0x4c7c('0x10c'))['add'](_0x568d25=>{_0x568d25['on'](_0x4c7c('0xeb'),(_0x578df5,_0x5a64b6,_0x2ae217)=>{if(!_0x2ae217[_0x4c7c('0xa6')]['showSuggestionHighlights'])return;const _0x399c9b=_0x5a64b6[_0x4c7c('0xb7')];if(!_0x399c9b)return;const _0x158669=_0x2ae217[_0x4c7c('0xbd')]['toViewElement'](_0x399c9b);_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf1')][_0x4c7c('0x134')](_0x399c9b)&&_0x158669&&!_0x158669['getCustomProperty']('widget')&&_0x158669['is'](_0x4c7c('0x4'))&&_0x244c6f(_0x158669,_0x2ae217[_0x4c7c('0x8d')]);},{'priority':_0x4c7c('0x111')});}),_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')](_0x4c7c('0x10c'))[_0x4c7c('0x64')]({'model':'suggestion','view':(_0x31841c,_0x32e130)=>{if(!_0x32e130[_0x4c7c('0xa6')][_0x4c7c('0xe7')])return null;const {type:_0x466e86}=this[_0x4c7c('0x4c')](_0x31841c[_0x4c7c('0x12d')]);return{'classes':[_0x4c7c('0x72'),'ck-suggestion-marker-'+_0x466e86],'priority':0xbb8};}});const _0x44fe8d=({showActiveMarkers:_0x5405d2=!0x0}={})=>(_0x10c0d9,_0x237ddf,_0x208af2)=>{if(!_0x237ddf[_0x4c7c('0xb7')])return;if(_0x237ddf[_0x4c7c('0xb7')]['is'](_0x4c7c('0x133')))return void _0x208af2[_0x4c7c('0xfa')][_0x4c7c('0x20')](_0x237ddf[_0x4c7c('0xb7')],_0x10c0d9['name']);const _0x44ff17=_0x208af2['mapper'][_0x4c7c('0x84')](_0x237ddf[_0x4c7c('0xb7')]);if(!(_0x237ddf['item']['is'](_0x4c7c('0x56'))&&_0x14f34a[_0x4c7c('0xce')]['schema'][_0x4c7c('0xfd')](_0x237ddf[_0x4c7c('0xb7')])&&!_0x44ff17['getCustomProperty'](_0x4c7c('0x2b'))))return;const {id:_0x42ff88}=this[_0x4c7c('0x4c')](_0x237ddf[_0x4c7c('0x12d')]);_0x208af2['writer'][_0x4c7c('0xd2')]([_0x4c7c('0x72'),_0x4c7c('0x3e')],_0x44ff17),_0x208af2[_0x4c7c('0x8d')][_0x4c7c('0x63')]('data-suggestion',_0x42ff88,_0x44ff17),_0x208af2[_0x4c7c('0xbd')][_0x4c7c('0x8a')](_0x44ff17,_0x237ddf[_0x4c7c('0x12d')]),_0x5405d2&&(this[_0x4c7c('0xcb')][_0x4c7c('0x33')](_0x237ddf[_0x4c7c('0x12d')])?_0x208af2[_0x4c7c('0x8d')][_0x4c7c('0xd2')](_0x4c7c('0x23'),_0x44ff17):_0x208af2['writer'][_0x4c7c('0xcc')]('ck-suggestion-marker--active',_0x44ff17));for(const _0x83ee2f of _0x14f34a['model'][_0x4c7c('0x54')](_0x237ddf[_0x4c7c('0xb7')])[_0x4c7c('0x3c')]())_0x208af2[_0x4c7c('0xfa')][_0x4c7c('0x20')](_0x83ee2f,_0x10c0d9['name']);_0x208af2[_0x4c7c('0xfa')][_0x4c7c('0x20')](_0x237ddf[_0x4c7c('0xb7')],_0x10c0d9[_0x4c7c('0xaf')]);};_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')](_0x4c7c('0x10c'))[_0x4c7c('0x107')](_0x448dd9=>{_0x448dd9['on'](_0x4c7c('0xa9'),(_0x1b0c7d,_0x54dd0b,_0x24c056)=>{_0x24c056['options'][_0x4c7c('0xe7')]&&_0x44fe8d({'showActiveMarkers':!0x1})(_0x1b0c7d,_0x54dd0b,_0x24c056);},{'priority':_0x4c7c('0xa7')});}),_0x14f34a['conversion'][_0x4c7c('0xe9')](_0x4c7c('0x10c'))[_0x4c7c('0x2d')]({'model':'suggestion','view':(_0xc5a6ce,_0x40de28)=>_0x40de28[_0x4c7c('0xa6')][_0x4c7c('0xe7')]?null:{'group':_0x4c7c('0x2e'),'name':_0xc5a6ce[_0x4c7c('0x117')](0xb)}}),_0x14f34a['conversion'][_0x4c7c('0xe9')]('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe79b64,{writer:_0x53f088})=>{let _0x1d97a5='suggestion:'+_0xe79b64[_0x4c7c('0x132')](_0x4c7c('0x48'))+':'+_0xe79b64[_0x4c7c('0x132')]('id');return _0xe79b64[_0x4c7c('0x132')](_0x4c7c('0x120'))&&(_0x1d97a5+=':'+_0xe79b64[_0x4c7c('0x132')](_0x4c7c('0x120'))),_0x53f088['createElement'](_0x4c7c('0xe2'),{'data-name':_0x1d97a5});}}),_0x14f34a['conversion']['for'](_0x4c7c('0xd'))[_0x4c7c('0x101')]({'view':_0x4c7c('0x2e')}),_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')](_0x4c7c('0x15'))[_0x4c7c('0x107')](_0x16b88c=>{_0x16b88c['on']('addMarker:suggestion:formatBlock',_0x44fe8d(),{'priority':'high'});}),_0x14f34a[_0x4c7c('0x39')][_0x4c7c('0xe9')]('editingDowncast')[_0x4c7c('0x107')](_0x13e079=>{_0x13e079['on']('removeMarker:suggestion:formatBlock',(_0x3ae135,_0x26a9ea,_0x31f7ce)=>{const _0x415ff7=_0x31f7ce['mapper'][_0x4c7c('0x69')](_0x26a9ea[_0x4c7c('0x12d')]);if(_0x415ff7)for(const _0x2e3ce8 of _0x415ff7)_0x2e3ce8[_0x4c7c('0x99')](_0x4c7c('0x2b'))||(_0x31f7ce[_0x4c7c('0x8d')][_0x4c7c('0xcc')]([_0x4c7c('0x72'),'ck-suggestion-marker-formatBlock',_0x4c7c('0x23')],_0x2e3ce8),_0x31f7ce['writer'][_0x4c7c('0x36')]('data-suggestion',_0x2e3ce8),_0x31f7ce[_0x4c7c('0xbd')][_0x4c7c('0x4a')](_0x2e3ce8,_0x26a9ea['markerName']));},{'priority':_0x4c7c('0x111')});}),_0x14f34a['model'][_0x4c7c('0xf7')]['registerPostFixer'](_0x409dde=>{let _0x37d35e=!0x1;const _0x59c7f2=Array[_0x4c7c('0x35')](_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf7')][_0x4c7c('0xca')][_0x4c7c('0x12')]()),_0x155e8e=new Set();for(const {name:_0x58f871,data:_0x56e0bc}of _0x59c7f2){const {group:_0xfeddb2,type:_0x2b5cc6,id:_0x243071}=this['_splitMarkerName'](_0x58f871);if(_0x4c7c('0x2e')!==_0xfeddb2)continue;const _0x5dc571=this[_0x4c7c('0xb4')][_0x4c7c('0x41')](_0x243071);if(null!=_0x56e0bc[_0x4c7c('0xfe')]){_0x4c7c('0x100')==_0x2b5cc6&&(_0x37d35e=_0x37d35e||$t(_0x56e0bc['newRange'],_0x58f871,_0x409dde,_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf1')]));if(_0x56e0bc[_0x4c7c('0xfe')][_0x4c7c('0x13e')]||_0x4c7c('0x116')==_0x56e0bc['newRange'][_0x4c7c('0x68')][_0x4c7c('0x129')]||_0x4c7c('0x86')==_0x2b5cc6&&!Rt(_0x56e0bc['newRange'])||'deletion'==_0x2b5cc6&&!(!Mt(_0x4ca8dd=_0x56e0bc[_0x4c7c('0xfe')])&&!function(_0x4af4ca){return _0x4af4ca[_0x4c7c('0x7d')][_0x4c7c('0x1d')]==_0x4af4ca[_0x4c7c('0xcf')][_0x4c7c('0xff')]&&_0x4af4ca[_0x4c7c('0x7d')][_0x4c7c('0xb6')];}(_0x4ca8dd)))_0x409dde['removeMarker'](_0x58f871),_0x37d35e=!0x0;else{if(!_0x5dc571||!_0x5dc571['isInContent'])continue;_0x155e8e['add'](_0x5dc571);}}}var _0x4ca8dd;return _0x155e8e[_0x4c7c('0x139')]>0x0&&(_0x37d35e=!!this[_0x4c7c('0x66')](_0x155e8e)||_0x37d35e),_0x37d35e;}),_0x14f34a['model'][_0x4c7c('0xf7')][_0x4c7c('0x0')](_0x429fd2=>{let _0x3f6829=!0x1;for(const _0x315b89 of _0x14f34a['model'][_0x4c7c('0xf7')]['differ'][_0x4c7c('0x11e')]()){if(_0x4c7c('0xc7')!=_0x315b89[_0x4c7c('0x108')])continue;const _0x1b2ef2=_0x315b89[_0x4c7c('0x9a')]['getShiftedBy'](_0x315b89[_0x4c7c('0x8b')]);if(_0x1b2ef2[_0x4c7c('0xb6')])for(const _0x17c9ae of this[_0x4c7c('0xb4')][_0x4c7c('0x9d')]()){if(_0x17c9ae['isMultiRange']||!_0x17c9ae[_0x4c7c('0x3f')])continue;if(_0x4c7c('0x86')!=_0x17c9ae[_0x4c7c('0x108')])continue;const _0x50cdce=_0x17c9ae[_0x4c7c('0x7c')]();if(_0x50cdce[_0x4c7c('0x7d')][_0x4c7c('0x1d')]!=_0x50cdce[_0x4c7c('0xcf')]['parent']&&_0x50cdce['end'][_0x4c7c('0x9e')](_0x315b89[_0x4c7c('0x9a')])){const _0x52a6f7=_0x14f34a[_0x4c7c('0xce')]['createRange'](_0x50cdce[_0x4c7c('0x7d')],_0x1b2ef2);_0x429fd2['updateMarker'](_0x17c9ae['getFirstMarker'](),{'range':_0x52a6f7}),_0x3f6829=!0x0;}}}return _0x3f6829;}),_0x14f34a['model'][_0x4c7c('0x13a')]['on'](_0x4c7c('0x94'),(_0x452a17,_0x55bf79,_0x58fcc8)=>{if(null==_0x58fcc8){const {id:_0x326694}=this[_0x4c7c('0x4c')](_0x55bf79['name']),_0x3f1636=this[_0x4c7c('0xb4')][_0x4c7c('0x41')](_0x326694);_0x3f1636&&_0x3f1636[_0x4c7c('0xb9')](_0x55bf79[_0x4c7c('0xaf')]);}}),_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf7')]['on'](_0x4c7c('0x50'),()=>{const _0x3dfccf=Array[_0x4c7c('0x35')](_0x14f34a['model'][_0x4c7c('0xf7')][_0x4c7c('0xca')]['getChangedMarkers']())[_0x4c7c('0x11a')](_0x558c46=>'suggestion'===this[_0x4c7c('0x4c')](_0x558c46[_0x4c7c('0xaf')])[_0x4c7c('0x4b')]);if(0x0===_0x3dfccf[_0x4c7c('0x8b')])return;_0x3dfccf[_0x4c7c('0x13c')]((_0x3233c4,_0x4c5e61)=>{const _0x5c0c44=_0x3233c4[_0x4c7c('0x79')]['oldRange'],_0x7ed09a=_0x4c5e61[_0x4c7c('0x79')][_0x4c7c('0x124')];return null===_0x5c0c44&&null===_0x7ed09a?0x0:null===_0x5c0c44&&null!==_0x7ed09a?-0x1:null!==_0x5c0c44&&null===_0x7ed09a?0x1:_0x5c0c44[_0x4c7c('0x7d')][_0x4c7c('0xf')](_0x7ed09a[_0x4c7c('0x7d')])?-0x1:0x1;});const _0x200e84=new Set(),_0x17e3b3=new Set();for(const {name:_0x20e459,data:_0x2f70d8}of _0x3dfccf){const {id:_0x48de48}=this['_splitMarkerName'](_0x20e459);if(null===_0x2f70d8[_0x4c7c('0x124')]){const _0x1b88c6=this['_handleNewSuggestionMarker'](_0x20e459);_0x17e3b3[_0x4c7c('0x107')](_0x1b88c6);}else{const _0x21eb06=this[_0x4c7c('0xb4')][_0x4c7c('0x41')](_0x48de48);null!==_0x2f70d8[_0x4c7c('0xfe')]||_0x21eb06['isInContent']?(_0x200e84['add'](_0x21eb06[_0x4c7c('0x12f')]),_0x17e3b3[_0x4c7c('0x107')](_0x21eb06)):this[_0x4c7c('0x106')](_0x21eb06);}}_0x17e3b3['size']>0x0&&this[_0x4c7c('0x6b')](_0x17e3b3);for(const _0x4858b7 of _0x200e84)this[_0x4c7c('0xb3')](_0x4c7c('0x28'),_0x4858b7);}),_0x14f34a[_0x4c7c('0xce')]['on'](_0x4c7c('0xc3'),(_0x383c40,_0x1a4e39)=>{const _0x3d952a=_0x1a4e39[0x0];if(!this['_suggestions'][_0x4c7c('0x139')])return;if(!_0x3d952a[_0x4c7c('0x3')])return;if(_0x3d952a[_0x4c7c('0xc0')]['isUndo']||!_0x3d952a[_0x4c7c('0xc0')]['isLocal'])return;let _0x124f08,_0x335cde;switch(_0x3d952a['type']){case _0x4c7c('0xc7'):_0x124f08=_0x14f34a['model'][_0x4c7c('0x53')](_0x3d952a[_0x4c7c('0x9a')]),_0x335cde=_0x124f08['getShiftedBy'](_0x3d952a[_0x4c7c('0xc6')]);break;case'split':_0x124f08=_0x14f34a[_0x4c7c('0xce')]['createPositionAt'](_0x3d952a[_0x4c7c('0x5d')]),_0x335cde=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0x53')](_0x3d952a[_0x4c7c('0x24')]);break;case'move':_0x124f08=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0x53')](_0x3d952a[_0x4c7c('0x17')]),_0x335cde=_0x124f08[_0x4c7c('0x8')](_0x3d952a[_0x4c7c('0xc6')]);break;default:return;}const _0x2ce06b=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xb1')](_0x124f08,_0x335cde);_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0x109')](()=>{for(const {suggestion:_0x3b2002,meta:_0x53c16e}of this[_0x4c7c('0x9c')](_0x2ce06b)){if(_0x3b2002[_0x4c7c('0xaa')])continue;if(_0x4c7c('0x100')==_0x3b2002[_0x4c7c('0x108')])continue;const _0x2fa2d0=_0x3b2002[_0x4c7c('0x79')]&&_0x3b2002['data'][_0x4c7c('0x47')];(_0x4c7c('0x86')!=_0x3b2002[_0x4c7c('0x108')]||_0x4c7c('0x40')==_0x3d952a[_0x4c7c('0x108')]&&!_0x2fa2d0)&&(_0x53c16e['containsRangeInObject']||'insertion'==_0x3b2002[_0x4c7c('0x108')]&&_0x53c16e[_0x4c7c('0x137')]||_0x3b2002[_0x4c7c('0x7c')]()[_0x4c7c('0xa4')](_0x2ce06b)&&this['_breakSuggestionMarker'](_0x3b2002,_0x124f08,_0x335cde));}});},{'priority':_0x4c7c('0xb8')}),_0x14f34a[_0x4c7c('0xce')]['on']('deleteContent',(_0x154160,_0x2c7c20)=>{const _0x112740=_0x2c7c20[0x0],_0x1e432f=_0x2c7c20[0x1];if(_0x1e432f&&_0x1e432f[_0x4c7c('0xb')])return;if(this[_0x4c7c('0x1b')])return;if(!this['trackChangesCommand'][_0x4c7c('0xc4')])return;if(_0x112740[_0x4c7c('0x13e')])return;const _0x575680=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf1')],{start:_0x579241,end:_0x22d270}=_0x112740[_0x4c7c('0x7c')](),_0x21cb51=_0x579241[_0x4c7c('0x34')]&&_0x575680[_0x4c7c('0x7')](_0x579241['nodeAfter'])?null:_0x575680['getNearestSelectionRange'](_0x579241,_0x4c7c('0xf4')),_0xc7d2b=_0x22d270[_0x4c7c('0xff')]&&_0x575680[_0x4c7c('0x7')](_0x22d270[_0x4c7c('0xff')])?null:_0x575680[_0x4c7c('0x12e')](_0x22d270,_0x4c7c('0x7b')),_0x430b41=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xb1')](_0x21cb51?_0x21cb51['start']:_0x579241,_0xc7d2b?_0xc7d2b[_0x4c7c('0xcf')]:_0x22d270);_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0x109')](_0x19fdda=>{this[_0x4c7c('0x75')](_0x430b41);const _0xc69a6c=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0xf1')][_0x4c7c('0x12e')](_0x430b41['start']);_0x112740['is']('documentSelection')?_0x19fdda[_0x4c7c('0xbe')](_0xc69a6c):_0x112740[_0x4c7c('0xf5')](_0xc69a6c);}),_0x154160[_0x4c7c('0x8e')]();},{'priority':_0x235764[_0x4c7c('0x2c')]+0xa}),_0x14f34a[_0x4c7c('0xce')]['on']('insertContent',(_0x31e148,_0x179092)=>{const _0x3df4bd=_0x179092[_0x179092[_0x4c7c('0x8b')]-0x1];_0x3df4bd&&_0x3df4bd[_0x4c7c('0xb')]||this[_0x4c7c('0x1b')]||this[_0x4c7c('0xfc')][_0x4c7c('0xc4')]&&(_0x14f34a['model'][_0x4c7c('0x109')](()=>{let _0x34adf5=_0x14f34a[_0x4c7c('0xce')][_0x4c7c('0x1e')](_0x179092[0x0],_0x179092[0x1],_0x179092[0x2],{'forceDefaultExecution':!0x0});if(!_0x34adf5)return;_0x31e148[_0x4c7c('0x3a')]=_0x34adf5[_0x4c7c('0xea')]();const _0x346f96=_0x34adf5[_0x4c7c('0xcf')][_0x4c7c('0xff')],_0x42e87f=_0x14f34a[_0x4c7c('0xce')]['schema'];_0x346f96&&_0x42e87f[_0x4c7c('0xfd')](_0x346f96)&&!_0x42e87f[_0x4c7c('0x134')](_0x346f96)&&(_0x34adf5=_0x14f34a['model'][_0x4c7c('0xb1')](_0x34adf5['start'],_0x14f34a[_0x4c7c('0xce')]['createPositionAt'](_0x346f96,_0x4c7c('0xcf')))),this[_0x4c7c('0x121')](_0x34adf5);}),_0x31e148['stop']());},{'priority':_0x4c7c('0x111')}),this[_0x4c7c('0x21')][_0x4c7c('0xf9')][_0x4c7c('0x107')](_0x4c7c('0xda'),this[_0x4c7c('0xfc')]),this['enableCommand'](_0x4c7c('0xda'));const _0x418a27=new _0x423b5d(_0x14f34a,this['_suggestions']);_0x14f34a[_0x4c7c('0xf9')][_0x4c7c('0x107')](_0x4c7c('0x12b'),_0x418a27),this[_0x4c7c('0x123')](_0x4c7c('0x12b'));const _0x5f5080=new _0x2bcc83(_0x14f34a,this[_0x4c7c('0xb4')]);_0x14f34a[_0x4c7c('0xf9')][_0x4c7c('0x107')](_0x4c7c('0x118'),_0x5f5080),this[_0x4c7c('0x123')](_0x4c7c('0x118')),_0x14f34a[_0x4c7c('0xf9')]['add']('acceptAllSuggestions',new _0xc58386(_0x14f34a,_0x418a27,this[_0x4c7c('0xb4')])),this[_0x4c7c('0x123')](_0x4c7c('0x11')),_0x14f34a['commands'][_0x4c7c('0x107')](_0x4c7c('0x83'),new _0xc58386(_0x14f34a,_0x5f5080,this[_0x4c7c('0xb4')])),this[_0x4c7c('0x123')]('discardAllSuggestions'),_0x14f34a[_0x4c7c('0xf9')][_0x4c7c('0x107')](_0x4c7c('0xf8'),new _0x376181(_0x14f34a,_0x418a27,this[_0x4c7c('0xb4')])),this[_0x4c7c('0x123')](_0x4c7c('0xf8')),_0x14f34a[_0x4c7c('0xf9')][_0x4c7c('0x107')](_0x4c7c('0xc8'),new _0x376181(_0x14f34a,_0x5f5080,this[_0x4c7c('0xb4')])),this[_0x4c7c('0x123')]('discardSelectedSuggestions');const _0x16eb27=_0x14f34a[_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x58'));this[_0x4c7c('0x74')](_0x16eb27,'addComment',(_0x5208fd,{threadId:_0x1e83ea})=>{const _0x2745dc=this[_0x4c7c('0xb4')]['get'](_0x1e83ea);_0x2745dc&&_0x2745dc[_0x4c7c('0x2a')]&&0x1===_0x2745dc[_0x4c7c('0x2a')][_0x4c7c('0x8b')]&&this[_0x4c7c('0xa8')](_0x1e83ea,{'hasComments':!0x0});},{'priority':_0x4c7c('0x88')}),this[_0x4c7c('0x74')](_0x16eb27,_0x4c7c('0xe'),(_0x50a8cb,{threadId:_0x2b9ff4})=>{const _0x37e48e=this[_0x4c7c('0xb4')]['get'](_0x2b9ff4);_0x37e48e&&_0x37e48e[_0x4c7c('0x2a')]&&!_0x37e48e['commentThread'][_0x4c7c('0x8b')]&&this[_0x4c7c('0xa8')](_0x2b9ff4,{'hasComments':!0x1});},{'priority':_0x4c7c('0x88')});}set[_0x4c7c('0x9f')](_0x2fb2e0){if(this[_0x4c7c('0xac')])throw new _0x81df42(_0x4c7c('0xd4'),this);this['_adapter']=_0x2fb2e0;}get[_0x4c7c('0x9f')](){return this[_0x4c7c('0xac')];}[_0x4c7c('0x44')]({skipNotAttached:_0x1d9cbe=!0x1,toJSON:_0x5571da=!0x1}={}){const _0x4508f4=[];for(const _0x4338a7 of this[_0x4c7c('0xb4')]['values']())_0x1d9cbe&&!_0x4338a7[_0x4c7c('0x3f')]||_0x4508f4[_0x4c7c('0x43')](_0x4338a7);return _0x5571da?_0x4508f4[_0x4c7c('0xc9')](_0x324bcc=>_0x324bcc['toJSON']()):_0x4508f4;}[_0x4c7c('0x119')](_0x2f62d0){const _0x1a645f=this['_suggestions'][_0x4c7c('0x41')](_0x2f62d0);if(!_0x1a645f)throw new _0x81df42(_0x4c7c('0xd3'),this);return _0x1a645f;}[_0x4c7c('0xd7')](_0x49f7e6){return this['_suggestions'][_0x4c7c('0x5b')](_0x49f7e6);}[_0x4c7c('0x6d')](_0x45663f){const {authorId:_0x53cf2b,id:_0x35cab1,attributes:_0x92b90f}=_0x45663f,[_0xa2287b,_0x455276]=_0x45663f['type'][_0x4c7c('0x40')](':'),_0x57b631=this[_0x4c7c('0xb4')][_0x4c7c('0x41')](_0x35cab1)||this[_0x4c7c('0xa0')](_0xa2287b,_0x455276,_0x35cab1,_0x53cf2b,_0x92b90f);if(this['_addThreadToSuggestion'](_0x57b631),this[_0x4c7c('0x82')](_0x57b631,_0xa2287b,_0x455276||null,_0x53cf2b),_0x57b631[_0x4c7c('0xa2')]=_0x45663f[_0x4c7c('0xa2')],_0x57b631[_0x4c7c('0x105')]=!0x0,_0x92b90f&&_0x92b90f[_0x4c7c('0xb5')]){const _0x35a200=_0x92b90f['@external'],_0x5954ca=this['_getExternalAuthor'](_0x35a200[_0x4c7c('0x61')]);_0x57b631[_0x4c7c('0x114')]=_0x35a200[_0x4c7c('0xa2')],_0x57b631['author']=_0x5954ca,_0x57b631[_0x4c7c('0x6f')]=!0x0;}else _0x57b631[_0x4c7c('0x114')]=_0x45663f[_0x4c7c('0xa2')];switch(_0x45663f[_0x4c7c('0x79')]&&(_0x57b631['data']=_0x45663f[_0x4c7c('0x79')]),_0x45663f[_0x4c7c('0x31')]&&(_0x57b631['attributes']=_0x45663f[_0x4c7c('0x31')]),this[_0x4c7c('0xac')]&&this['_adapter'][_0x4c7c('0xa')]||(_0x57b631[_0x4c7c('0x128')]=!0x0),this[_0x4c7c('0x127')][_0x4c7c('0x41')](_0x57b631)){case _0x4c7c('0x11d'):this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0x57b631,_0x4c7c('0x1c'));break;case'markerReady':_0x57b631['isInContent']?(this[_0x4c7c('0x6b')](new Set([_0x57b631])),this[_0x4c7c('0x66')](new Set([_0x57b631])),this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0x57b631,_0x4c7c('0x51')),this[_0x4c7c('0xb3')]('suggestionLoaded',_0x57b631)):this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0x57b631,'removed');}return _0x57b631;}[_0x4c7c('0x12b')](_0x4cbbec){this['forceDefaultExecution'](()=>{this[_0x4c7c('0x21')]['model']['change'](()=>{for(const _0x2cd81b of _0x4cbbec[_0x4c7c('0x6')]())_0x2cd81b['accept']();});});}[_0x4c7c('0x118')](_0x22fafd){this[_0x4c7c('0xb')](()=>{this[_0x4c7c('0x21')][_0x4c7c('0xce')][_0x4c7c('0x109')](()=>{for(const _0x6972c7 of _0x22fafd[_0x4c7c('0x6')]())_0x6972c7['discard']();});});}[_0x4c7c('0x123')](_0x163c07,_0x32375b){const _0x3d7d44=this['editor']['commands']['get'](_0x163c07);if(!_0x3d7d44)throw new _0x81df42('track-changes-command-not-found',this,{'commandName':_0x163c07});this[_0x4c7c('0x46')][_0x4c7c('0x107')](_0x3d7d44),_0x32375b&&_0x3d7d44['on']('execute',(_0x2f6fd7,_0x469f69)=>{this[_0x4c7c('0xfc')][_0x4c7c('0xc4')]&&(this[_0x4c7c('0x1b')]||_0x469f69[_0x4c7c('0x8b')]>0x0&&_0x469f69[_0x469f69[_0x4c7c('0x8b')]-0x1]&&_0x469f69[_0x469f69[_0x4c7c('0x8b')]-0x1][_0x4c7c('0xb')]||(_0x2f6fd7[_0x4c7c('0x3a')]=_0x32375b((..._0xa2e5de)=>_0x3d7d44[_0x4c7c('0x4e')](..._0xa2e5de,{'forceDefaultExecution':!0x0}),..._0x469f69),_0x2f6fd7[_0x4c7c('0x8e')]()));},{'priority':'high'});}['forceDefaultExecution'](_0xf2d782){let _0x4b8f0f,_0x22c4f0;const _0x5c84a9=this[_0x4c7c('0x1b')];this[_0x4c7c('0x1b')]=!0x0;try{_0x4b8f0f=_0xf2d782();}catch(_0x4bad65){_0x22c4f0=_0x4bad65;}return _0x5c84a9||(this[_0x4c7c('0x1b')]=!0x1),_0x22c4f0&&_0x81df42['rethrowUnexpectedError'](_0x22c4f0,this),_0x4b8f0f;}[_0x4c7c('0x121')](_0x515a67,_0x919990=null,_0x37129a={}){if(_0x515a67[_0x4c7c('0x13e')])return null;const _0x1a8409=this['editor'][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'];for(const {suggestion:_0x42ee95,meta:_0x1172cf}of this[_0x4c7c('0x9c')](_0x515a67,_0x4c7c('0x78')))if(_0x1172cf['isOwn']){if(!_0x1172cf[_0x4c7c('0x98')]){if(_0x1172cf[_0x4c7c('0x18')]){if(!this[_0x4c7c('0xf2')]||!Ot(_0x42ee95,_0x37129a))continue;return _0x42ee95;}if(Ot(_0x42ee95,_0x37129a))return _0x42ee95;this[_0x4c7c('0xe6')](_0x42ee95,_0x515a67[_0x4c7c('0x7d')],_0x515a67[_0x4c7c('0xcf')]);break;}if(_0x919990==_0x42ee95[_0x4c7c('0x4f')]&&Ot(_0x42ee95,_0x37129a)){const _0x5f469e=_0x42ee95[_0x4c7c('0x7c')]();return _0x5f469e[_0x4c7c('0x7d')][_0x4c7c('0x9e')](_0x515a67[_0x4c7c('0xcf')])?this[_0x4c7c('0x10')](_0x42ee95,this[_0x4c7c('0x70')][_0x4c7c('0xb1')](_0x515a67[_0x4c7c('0x7d')],_0x5f469e['end'])):this['_setSuggestionRange'](_0x42ee95,this[_0x4c7c('0x70')][_0x4c7c('0xb1')](_0x5f469e[_0x4c7c('0x7d')],_0x515a67[_0x4c7c('0xcf')])),_0x42ee95;}}const _0x53c70d=_0x52451d(),_0x47ad8e=_0x1a8409['id'],_0x6460d5=_0x919990?_0x4c7c('0x112')+_0x919990:'insertion',_0x8c621c=this[_0x4c7c('0xdb')]({'id':_0x53c70d,'type':_0x6460d5,'createdAt':new Date(),'authorId':_0x47ad8e,'attributes':_0x37129a});return this['_addSuggestionMarker'](_0x6460d5,_0x53c70d,_0x47ad8e,_0x515a67),_0x8c621c;}[_0x4c7c('0x5c')](_0x237c9c,_0x21a65b=_0x4c7c('0x92'),_0x20a31d={}){const _0x352ec3=this['editor']['plugins']['get']('Users')['me'],_0x10f1d7=this['_suggestionFactory'][_0x4c7c('0xd6')](_0x4c7c('0x78'),_0x21a65b,_0x4c7c('0xe0'));for(const _0x561064 of this['getSuggestions']())if(_0x561064[_0x4c7c('0x2')]['id']==_0x352ec3['id']&&_0x4c7c('0x78')==_0x561064[_0x4c7c('0x108')]&&_0x561064[_0x4c7c('0x4f')]==_0x21a65b&&Ot(_0x561064,_0x20a31d)&&(_0x10f1d7(_0x561064[_0x4c7c('0x76')](),_0x237c9c)||_0x10f1d7(_0x237c9c,_0x561064[_0x4c7c('0x76')]()))){for(const _0x25ec3e of _0x237c9c)_0x561064['addRange'](_0x25ec3e);return _0x561064;}for(const {suggestion:_0x298b89,meta:_0x3bb698}of this[_0x4c7c('0x9c')](_0x237c9c,_0x4c7c('0x78'))){if(!_0x3bb698[_0x4c7c('0x137')])continue;if(!this[_0x4c7c('0xf2')]&&_0x3bb698[_0x4c7c('0x18')])continue;if(!Ot(_0x298b89,_0x20a31d))continue;let _0x1d889e=!0x0;for(const _0x3f0f10 of _0x298b89[_0x4c7c('0x76')]())for(const _0x192570 of _0x237c9c)if(!_0x3f0f10['containsRange'](_0x192570)){_0x1d889e=!0x1;break;}if(_0x1d889e)return _0x298b89;}const _0x487a34=_0x52451d(),_0x2b3829=_0x352ec3['id'],_0x11c288=_0x4c7c('0x112')+_0x21a65b,_0x7d762d=this['_setSuggestionData']({'id':_0x487a34,'type':_0x11c288,'createdAt':new Date(),'authorId':_0x2b3829,'attributes':_0x20a31d});for(const _0x4b06eb of _0x237c9c)this['_addSuggestionMarker'](_0x11c288,_0x487a34,_0x2b3829,_0x4b06eb,_0x5a82f6[_0x4c7c('0x37')]());return _0x7d762d;}[_0x4c7c('0xd0')](_0x5ce390,_0x53c551,_0x2c8e60=null,_0x750c3b={}){if(_0x2c8e60=_0x2c8e60||Nt(_0x53c551),_0x5ce390[_0x4c7c('0x13e')])return null;if('never'===this[_0x4c7c('0xd8')]){const _0x5a6771=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x100'),_0x2c8e60,'accept');return this[_0x4c7c('0xb')](()=>_0x5a6771([_0x5ce390],_0x53c551,_0x750c3b)),null;}const _0x338ac2=this[_0x4c7c('0x21')][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'],_0x633e28=[];if(_0x4c7c('0x5e')!==this[_0x4c7c('0xd8')])for(const {suggestion:_0x5d2366,meta:_0x1affae}of this['_findSuggestions'](_0x5ce390,_0x4c7c('0x78')))_0x1affae[_0x4c7c('0x137')]&&!_0x1affae[_0x4c7c('0xe1')]&&_0x633e28[_0x4c7c('0x43')](..._0x5d2366[_0x4c7c('0x76')]());const _0x39ba9a=function(_0x3b44dc,_0x3eed85){const _0x33d0e5=[];for(const _0x196772 of _0x3eed85){const _0x15660=_0x3b44dc['getIntersection'](_0x196772);_0x15660&&_0x33d0e5[_0x4c7c('0x43')](_0x15660);}return _0x33d0e5;}(_0x5ce390,_0x633e28),_0x407fa0=function(_0x4ede48,_0x1fceb9){const _0x5ed691=[_0x4ede48];for(const _0x3031cc of _0x1fceb9){let _0x1d7923=0x0;for(;_0x1d7923<_0x5ed691['length'];){const _0x957fce=_0x5ed691[_0x1d7923][_0x4c7c('0x10b')](_0x3031cc);_0x5ed691[_0x4c7c('0xf6')](_0x1d7923,0x1,..._0x957fce),_0x1d7923+=_0x957fce[_0x4c7c('0x8b')];}}return _0x5ed691;}(_0x5ce390,_0x633e28);_0x39ba9a['length']&&this['_model'][_0x4c7c('0x109')](()=>{for(const _0x2be525 of _0x39ba9a){const _0x2e7e7e=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')]('formatInline',_0x2c8e60,'accept');this[_0x4c7c('0xb')](()=>_0x2e7e7e([_0x2be525],_0x53c551,_0x750c3b));}});for(const _0x236339 of _0x407fa0){let _0x23d19c=null,_0x477cb8=_0x236339[_0x4c7c('0x7d')],_0x77a81f=_0x236339[_0x4c7c('0xcf')];for(const {suggestion:_0x25ac3b,meta:_0x234acd}of this['_findSuggestions'](_0x236339,'formatInline')){if(!_0x234acd[_0x4c7c('0x137')])continue;if(_0x25ac3b[_0x4c7c('0x4f')]!=_0x2c8e60)continue;if(!Ot(_0x25ac3b,_0x750c3b))continue;const _0x123ea2=_0x25ac3b['getFirstRange']();if(_0x123ea2['containsRange'](_0x236339,!0x0))return null;_0x477cb8=_0x477cb8[_0x4c7c('0xf')](_0x123ea2[_0x4c7c('0x7d')])?_0x477cb8:_0x123ea2['start'],_0x77a81f=_0x77a81f[_0x4c7c('0xa1')](_0x123ea2[_0x4c7c('0xcf')])?_0x77a81f:_0x123ea2[_0x4c7c('0xcf')],_0x23d19c?_0x123ea2[_0x4c7c('0x7d')][_0x4c7c('0xf')](_0x23d19c[_0x4c7c('0x7c')]()[_0x4c7c('0x7d')])?(_0x23d19c['removeMarkers'](),_0x23d19c=_0x25ac3b):_0x25ac3b[_0x4c7c('0x38')]():_0x23d19c=_0x25ac3b;}const _0x223d74=this['_model'][_0x4c7c('0xb1')](_0x477cb8,_0x77a81f);if(_0x23d19c)this['_setSuggestionRange'](_0x23d19c,_0x223d74);else{const _0x14a300=_0x52451d(),_0x6c5c3=_0x338ac2['id'];this[_0x4c7c('0xdb')]({'id':_0x14a300,'type':'formatInline:'+_0x2c8e60,'data':_0x53c551,'createdAt':new Date(),'authorId':_0x6c5c3,'attributes':_0x750c3b}),this['_addSuggestionMarker'](_0x4c7c('0x93')+_0x2c8e60,_0x14a300,_0x6c5c3,_0x223d74);}}return null;}['markBlockFormat'](_0x5ec617,_0x35d159,_0x42afd0=[],_0x2f3469=null,_0x4b980e={}){_0x35d159[_0x4c7c('0x42')]||(_0x35d159['formatGroupId']=_0x35d159['commandName']),_0x35d159[_0x4c7c('0x47')]=_0x5ec617['is'](_0x4c7c('0x30')),_0x2f3469=_0x2f3469||Nt(_0x35d159);const _0x5d1b63=_0x42afd0['map'](_0x734e38=>jt(_0x734e38,this['_model'])),_0x8805ce=_0x5ec617['is'](_0x4c7c('0x30'))?_0x5ec617:jt(_0x5ec617,this[_0x4c7c('0x70')]);if(_0x4c7c('0xab')===this['_trackFormatChanges']){const _0x5342ff=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x86'),_0x2f3469,_0x4c7c('0xed'));return this[_0x4c7c('0xb')](()=>_0x5342ff([_0x8805ce],_0x35d159,_0x4b980e)),null;}_0x5d1b63['push'](_0x8805ce);let _0x4ed49e=!0x0;for(const _0x50cf93 of _0x5d1b63)if(!this[_0x4c7c('0xf3')](_0x50cf93)){_0x4ed49e=!0x1;break;}if(_0x4ed49e&&_0x4c7c('0x5e')!==this['_trackFormatChanges']){const _0x2ecfa4=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x86'),_0x2f3469,_0x4c7c('0xed'));return this[_0x4c7c('0xb')](()=>_0x2ecfa4([_0x8805ce],_0x35d159,_0x4b980e)),null;}let _0x1a2edd=null,_0x156aca=_0x8805ce[_0x4c7c('0x7d')],_0xec1817=_0x8805ce[_0x4c7c('0xcf')];for(const {suggestion:_0x282eb5,meta:_0x9cd8f1}of this['_findSuggestions'](_0x8805ce,_0x4c7c('0x86'))){if(!_0x9cd8f1[_0x4c7c('0x137')])continue;if(_0x9cd8f1['isNextTo']||_0x9cd8f1[_0x4c7c('0x18')]||_0x9cd8f1[_0x4c7c('0xe1')])continue;if(_0x282eb5[_0x4c7c('0x79')][_0x4c7c('0x42')]!=_0x35d159[_0x4c7c('0x42')])continue;if(!Ot(_0x282eb5,_0x4b980e))continue;const _0x708c1d=_0x282eb5['getFirstRange']();if(_0x282eb5[_0x4c7c('0x4f')]==_0x2f3469){if(_0x708c1d[_0x4c7c('0xa4')](_0x8805ce,!0x0))return null;_0x156aca=_0x156aca[_0x4c7c('0xf')](_0x708c1d[_0x4c7c('0x7d')])?_0x156aca:_0x708c1d[_0x4c7c('0x7d')],_0xec1817=_0xec1817[_0x4c7c('0xa1')](_0x708c1d[_0x4c7c('0xcf')])?_0xec1817:_0x708c1d[_0x4c7c('0xcf')],_0x1a2edd?_0x708c1d['start'][_0x4c7c('0xf')](_0x1a2edd[_0x4c7c('0x7c')]()[_0x4c7c('0x7d')])?(_0x1a2edd[_0x4c7c('0x38')](),_0x1a2edd=_0x282eb5):_0x282eb5['removeMarkers']():_0x1a2edd=_0x282eb5;}else{const _0xb6c506=_0x8805ce[_0x4c7c('0x10e')](_0x708c1d);this[_0x4c7c('0x13')](_0x282eb5,_0xb6c506);}}const _0x4ce919=this[_0x4c7c('0x21')][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'],_0x5a20b6=_0x52451d(),_0x5df202=_0x4ce919['id'];if(_0x1a2edd)return this[_0x4c7c('0x10')](_0x1a2edd,this[_0x4c7c('0x70')]['createRange'](_0x156aca,_0xec1817)),_0x1a2edd;{const _0x304cc8=this[_0x4c7c('0xdb')]({'id':_0x5a20b6,'type':'formatBlock:'+_0x2f3469,'data':_0x35d159,'createdAt':new Date(),'authorId':_0x5df202,'attributes':_0x4b980e});return this[_0x4c7c('0xec')](_0x4c7c('0x10a')+_0x2f3469,_0x5a20b6,_0x5df202,this['_model'][_0x4c7c('0xb1')](_0x156aca,_0xec1817)),_0x304cc8;}}[_0x4c7c('0xcd')](_0x2000cf,_0x446544,_0x3a1b0c=[],_0x13a487=null,_0x1f2487={}){_0x446544['formatGroupId']||(_0x446544[_0x4c7c('0x42')]=_0x446544[_0x4c7c('0x71')]);const _0x4e9017=_0x2000cf[0x0];_0x446544[_0x4c7c('0x47')]=_0x4e9017['is'](_0x4c7c('0x30')),_0x13a487=_0x13a487||Nt(_0x446544);const _0x3eb783=_0x3a1b0c[_0x4c7c('0xc9')](_0x5142a0=>jt(_0x5142a0,this['_model'])),_0x2fb6d6=_0x4e9017['is'](_0x4c7c('0x30'))?_0x2000cf:_0x2000cf[_0x4c7c('0xc9')](_0x4d3e7f=>jt(_0x4d3e7f,this[_0x4c7c('0x70')]));if(_0x4c7c('0xab')===this[_0x4c7c('0xd8')]){const _0xbf3a9f=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x86'),_0x13a487,_0x4c7c('0xed'));return this[_0x4c7c('0xb')](()=>_0xbf3a9f(_0x2fb6d6,_0x446544,_0x1f2487)),null;}_0x3eb783['push'](..._0x2fb6d6);let _0x588524=!0x0;for(const _0x168b4a of _0x3eb783)if(!this['_rangeIsInLocalUserInsertion'](_0x168b4a)){_0x588524=!0x1;break;}if(_0x588524&&_0x4c7c('0x5e')!==this[_0x4c7c('0xd8')]){const _0x258a32=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x86'),_0x13a487,_0x4c7c('0xed'));return this[_0x4c7c('0xb')](()=>_0x258a32(_0x2fb6d6,_0x446544,_0x1f2487)),null;}const _0x3fddb2=this[_0x4c7c('0x21')][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'];for(const _0xe2cd1d of this[_0x4c7c('0x44')]()){if(_0xe2cd1d[_0x4c7c('0x2')]['id']!=_0x3fddb2['id'])continue;if(_0x4c7c('0x86')!=_0xe2cd1d[_0x4c7c('0x108')]||_0xe2cd1d[_0x4c7c('0x79')]['formatGroupId']!=_0x446544[_0x4c7c('0x42')])continue;if(!Ot(_0xe2cd1d,_0x1f2487))continue;const _0x13baf2=_0xe2cd1d[_0x4c7c('0x4f')]==_0x13a487;for(let _0x4b3347=0x0;_0x4b3347<_0x2fb6d6[_0x4c7c('0x8b')];_0x4b3347++){const _0x682d78=_0x2fb6d6[_0x4b3347];for(const _0x396ddf of _0xe2cd1d[_0x4c7c('0x57')]()){const _0x57f288=_0x396ddf[_0x4c7c('0x16')]();if(_0x682d78[_0x4c7c('0x9e')](_0x57f288)){_0x13baf2?(_0x2fb6d6[_0x4c7c('0xf6')](_0x4b3347,0x1),_0x4b3347--):_0xe2cd1d['removeMarker'](_0x396ddf['name']);break;}}}}if(0x0==_0x2fb6d6[_0x4c7c('0x8b')])return null;const _0x18a73f=this[_0x4c7c('0x8c')]['getSuggestionCallback'](_0x4c7c('0x86'),_0x13a487,_0x4c7c('0xe0'));for(const _0x3ce629 of this[_0x4c7c('0x44')]())if(_0x3ce629['author']['id']==_0x3fddb2['id']&&_0x4c7c('0x86')==_0x3ce629[_0x4c7c('0x108')]&&_0x3ce629['data'][_0x4c7c('0x42')]==_0x446544[_0x4c7c('0x42')]&&_0x3ce629[_0x4c7c('0x4f')]==_0x13a487&&Ot(_0x3ce629,_0x1f2487)&&(_0x18a73f(_0x3ce629[_0x4c7c('0x76')](),_0x2fb6d6)||_0x18a73f(_0x2fb6d6,_0x3ce629[_0x4c7c('0x76')]()))){for(const _0x983e37 of _0x2fb6d6)_0x3ce629[_0x4c7c('0xa3')](_0x983e37);return _0x3ce629;}const _0x1ef2cd=_0x52451d(),_0x2eacd7=_0x3fddb2['id'],_0x616b34=_0x4c7c('0x10a')+_0x13a487,_0x1db95f=this[_0x4c7c('0xdb')]({'id':_0x1ef2cd,'type':_0x616b34,'data':_0x446544,'createdAt':new Date(),'authorId':_0x2eacd7,'attributes':_0x1f2487});for(const _0x2a327f of _0x2fb6d6)this[_0x4c7c('0xec')](_0x616b34,_0x1ef2cd,_0x2eacd7,_0x2a327f,_0x5a82f6[_0x4c7c('0x37')]());return _0x1db95f;}[_0x4c7c('0x75')](_0x517c71,_0x386679=null,_0x30a741={}){if(_0x517c71[_0x4c7c('0x13e')])return null;const _0x34bcc5=this[_0x4c7c('0x21')]['plugins'][_0x4c7c('0x41')]('Users')['me'],_0x411f64=new _0x4f665b(_0x517c71['start'],_0x517c71[_0x4c7c('0xcf')]);for(const {suggestion:_0x26cd3a,meta:_0x58bb3c}of this[_0x4c7c('0x9c')](_0x411f64,_0x4c7c('0x78')))if(_0x58bb3c[_0x4c7c('0x137')]&&!_0x58bb3c[_0x4c7c('0x98')]){if(_0x26cd3a[_0x4c7c('0xaa')]){const _0x3cc5a5=_0x26cd3a['getRanges']()['filter'](_0xf878b6=>'$graveyard'!=_0xf878b6[_0x4c7c('0x68')][_0x4c7c('0x129')]);_0x3cc5a5[_0x4c7c('0xb0')](_0x2e0453=>_0x411f64['containsRange'](_0x2e0453,!0x0))&&_0x26cd3a[_0x4c7c('0x11b')]();if(_0x3cc5a5['some'](_0xe70c12=>_0xe70c12['containsRange'](_0x411f64,!0x0))){const _0x2c2fb0=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')]('deletion',_0x386679,'accept');return this[_0x4c7c('0xb')](()=>_0x2c2fb0([_0x411f64],null,_0x30a741)),null;}}else{const _0x34be7f=_0x411f64['getIntersection'](_0x26cd3a[_0x4c7c('0x7c')]());null!==_0x34be7f&&_0x26cd3a[_0x4c7c('0x26')]([_0x34be7f],null,_0x30a741);}}if(_0x411f64[_0x4c7c('0x8f')](),_0x411f64['isCollapsed']||_0x4c7c('0x116')==_0x411f64[_0x4c7c('0x68')]['rootName'])return null;let _0x3298f9=null,_0x2671e9=_0x411f64[_0x4c7c('0x7d')],_0x656bb9=_0x411f64[_0x4c7c('0xcf')];const _0xdf1641=this[_0x4c7c('0x9c')](_0x411f64,_0x4c7c('0x6e'));for(const {suggestion:_0x250210,meta:_0x389af8}of _0xdf1641){const _0x152bde=this[_0x4c7c('0x70')][_0x4c7c('0xb1')](_0x2671e9,_0x656bb9);if(_0x389af8[_0x4c7c('0x137')]&&(this[_0x4c7c('0xf2')]||!_0x389af8[_0x4c7c('0x18')]&&!_0x389af8[_0x4c7c('0xe1')])){if(_0x250210['isMultiRange']){if(!Ot(_0x250210,_0x30a741))continue;let _0x2f3918=!0x0;for(const _0x891a69 of _0x250210['getRanges']()){if(_0x891a69['containsRange'](_0x152bde,!0x0))return _0x250210;_0x152bde['containsRange'](_0x891a69)||(_0x2f3918=!0x1);}_0x2f3918&&_0x250210['discard']();}else{const _0x209543=_0x250210[_0x4c7c('0x7c')]();if(_0x209543[_0x4c7c('0xa4')](_0x152bde,!0x0))return _0x250210;if(!Ot(_0x250210,_0x30a741)){_0x152bde[_0x4c7c('0xa4')](_0x209543)?_0x250210[_0x4c7c('0x38')]():_0x209543['containsPosition'](_0x2671e9)?_0x2671e9=_0x209543['end']:_0x209543[_0x4c7c('0x5a')](_0x656bb9)&&(_0x656bb9=_0x209543['start']);continue;}_0x2671e9=_0x2671e9['isBefore'](_0x209543[_0x4c7c('0x7d')])?_0x2671e9:_0x209543[_0x4c7c('0x7d')],_0x656bb9=_0x656bb9[_0x4c7c('0xa1')](_0x209543['end'])?_0x656bb9:_0x209543[_0x4c7c('0xcf')],_0x30a741=Object[_0x4c7c('0xb2')]({},_0x250210[_0x4c7c('0x31')]),_0x3298f9?_0x209543[_0x4c7c('0x7d')][_0x4c7c('0xf')](_0x3298f9[_0x4c7c('0x7c')]()[_0x4c7c('0x7d')])?(_0x3298f9['removeMarkers'](),_0x3298f9=_0x250210):_0x250210[_0x4c7c('0x38')]():_0x3298f9=_0x250210;}}}if(_0x3298f9)return this[_0x4c7c('0x10')](_0x3298f9,this[_0x4c7c('0x70')]['createRange'](_0x2671e9,_0x656bb9)),_0x3298f9;{const _0x32343f=_0x52451d(),_0x327bf7=this[_0x4c7c('0x70')]['createRange'](_0x2671e9,_0x656bb9),_0x50938c=_0x34bcc5['id'],_0x261640=_0x386679?_0x4c7c('0x10f')+_0x386679:_0x4c7c('0x6e'),_0x58afd8=this[_0x4c7c('0xdb')]({'id':_0x32343f,'type':_0x261640,'createdAt':new Date(),'authorId':_0x50938c,'attributes':_0x30a741});return this[_0x4c7c('0xec')](_0x261640,_0x32343f,_0x50938c,_0x327bf7),_0x58afd8;}}[_0x4c7c('0x12a')](_0x3bd9b1,_0x500f86=_0x4c7c('0x92'),_0x8de20a={}){const _0x3eebaf=this['editor']['plugins'][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'],_0x925571=_0x3bd9b1[_0x4c7c('0xc9')](_0x5963fc=>new _0x4f665b(_0x5963fc[_0x4c7c('0x7d')],_0x5963fc[_0x4c7c('0xcf')])),_0x51d4f8=new Set();for(const {suggestion:_0x2c1797,meta:_0xeeb1d8}of this[_0x4c7c('0x9c')](_0x925571,_0x4c7c('0x78')))_0xeeb1d8[_0x4c7c('0x137')]&&!_0xeeb1d8[_0x4c7c('0x98')]&&_0x51d4f8[_0x4c7c('0x107')](_0x2c1797);for(const _0x1ffe8f of _0x51d4f8)if(_0x1ffe8f[_0x4c7c('0xaa')]){const _0x44be1d=_0x1ffe8f[_0x4c7c('0x76')]();(!_0x1ffe8f[_0x4c7c('0x31')]||!_0x1ffe8f['attributes']['skipNestingCheck'])&&(_0x44be1d['every'](_0x4dce0a=>_0x925571['some'](_0x88f895=>_0x88f895[_0x4c7c('0xa4')](_0x4dce0a,!0x0)))&&_0x1ffe8f[_0x4c7c('0x11b')]());if(_0x925571[_0x4c7c('0xb0')](_0xd5d563=>_0x44be1d[_0x4c7c('0xdc')](_0x5a3277=>_0x5a3277[_0x4c7c('0xa4')](_0xd5d563,!0x0)))){const _0x3dff24=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')]('deletion',_0x500f86,'accept');return this['forceDefaultExecution'](()=>_0x3dff24(_0x3bd9b1,null,_0x8de20a)),null;}}else{const _0x50480a=_0x1ffe8f['getFirstRange']();_0x925571[_0x4c7c('0xdc')](_0x2c245a=>_0x2c245a[_0x4c7c('0xa4')](_0x50480a,!0x0))&&_0x1ffe8f['discard']();if(_0x925571[_0x4c7c('0xb0')](_0x4f669f=>_0x50480a['containsRange'](_0x4f669f,!0x0))){const _0x35d033=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x6e'),_0x500f86,_0x4c7c('0xed'));return this['forceDefaultExecution'](()=>_0x35d033(_0x925571,null,_0x8de20a)),null;}}const _0x2408e6=this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4c7c('0x6e'),_0x500f86,_0x4c7c('0xe0'));let _0x4520f7=null;for(const _0x3b9e06 of this[_0x4c7c('0x44')]())if(_0x3b9e06['author']['id']==_0x3eebaf['id']&&_0x3b9e06[_0x4c7c('0x3f')]&&'deletion'==_0x3b9e06['type']&&_0x3b9e06[_0x4c7c('0x4f')]==_0x500f86&&Ot(_0x3b9e06,_0x8de20a)&&(_0x2408e6(_0x3b9e06[_0x4c7c('0x76')](),_0x925571)||_0x2408e6(_0x925571,_0x3b9e06['getRanges']()))){if(_0x4520f7){if(_0x3b9e06[_0x4c7c('0x2a')]&&_0x3b9e06[_0x4c7c('0x2a')][_0x4c7c('0x8b')])continue;for(const _0x310f4b of _0x3b9e06[_0x4c7c('0x76')]())_0x4520f7[_0x4c7c('0x1')](_0x310f4b)||_0x4520f7[_0x4c7c('0xa3')](_0x310f4b);_0x3b9e06[_0x4c7c('0x38')]();}else{_0x4520f7=_0x3b9e06;for(const _0x127c9c of _0x925571)_0x3b9e06[_0x4c7c('0x1')](_0x127c9c)||_0x3b9e06[_0x4c7c('0xa3')](_0x127c9c);}}if(_0x4520f7)return _0x4520f7;_0x51d4f8[_0x4c7c('0x138')]();for(const {suggestion:_0x601476,meta:_0x57547f}of this[_0x4c7c('0x9c')](_0x925571,_0x4c7c('0x6e')))_0x57547f[_0x4c7c('0x137')]&&(this[_0x4c7c('0xf2')]||!_0x57547f['containsRangeInObject']&&!_0x57547f[_0x4c7c('0xe1')])&&Ot(_0x601476,_0x8de20a)&&_0x51d4f8['add'](_0x601476);for(const _0x5307a7 of _0x51d4f8){const _0x5b89d4=_0x5307a7[_0x4c7c('0x76')]();if(!_0x8de20a||!_0x8de20a['skipNestingCheck']){if(_0x925571['every'](_0x5d5c4a=>_0x5b89d4['some'](_0x2ccf62=>_0x2ccf62[_0x4c7c('0xa4')](_0x5d5c4a,!0x0))))return _0x5307a7;}(!_0x5307a7[_0x4c7c('0x31')]||!_0x5307a7[_0x4c7c('0x31')][_0x4c7c('0x95')])&&(_0x5b89d4[_0x4c7c('0xb0')](_0x1f0d88=>_0x925571[_0x4c7c('0xdc')](_0x395225=>_0x395225[_0x4c7c('0xa4')](_0x1f0d88,!0x0)))&&_0x5307a7[_0x4c7c('0x11b')]());}const _0x305320=_0x52451d(),_0x224fe9=_0x3eebaf['id'],_0x5537ff=_0x4c7c('0x10f')+_0x500f86,_0x1c5a7e=this[_0x4c7c('0xdb')]({'id':_0x305320,'type':_0x5537ff,'createdAt':new Date(),'authorId':_0x224fe9,'attributes':_0x8de20a});for(const _0x3c7d37 of _0x925571)_0x3c7d37[_0x4c7c('0x8f')](),_0x3c7d37[_0x4c7c('0x13e')]||_0x4c7c('0x116')==_0x3c7d37['root']['rootName']||this[_0x4c7c('0xec')](_0x5537ff,_0x305320,_0x224fe9,_0x3c7d37,_0x5a82f6[_0x4c7c('0x37')]());return _0x1c5a7e;}[_0x4c7c('0x10')](_0x516b81,_0x13f324){const _0x859bbe=_0x516b81[_0x4c7c('0x59')]();this[_0x4c7c('0x70')][_0x4c7c('0x109')](_0xd96ef3=>{_0xd96ef3[_0x4c7c('0x85')](_0x859bbe,{'range':_0x13f324});});}[_0x4c7c('0x6a')](_0x1e8407){const _0x5313e7=_0x1e8407['id'],_0x58ec41=this['editor'][_0x4c7c('0x3b')][_0x4c7c('0x41')](_0x4c7c('0xc'));this[_0x4c7c('0x77')][_0x4c7c('0x89')](_0x5313e7)||this[_0x4c7c('0x77')][_0x4c7c('0x65')]({'channelId':_0x58ec41,'threadId':_0x5313e7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x468007=this[_0x4c7c('0x77')]['getCommentThread'](_0x5313e7);_0x468007[_0x4c7c('0xef')](_0x4c7c('0x67')),_0x468007[_0x4c7c('0x67')]=!0x1,_0x1e8407[_0x4c7c('0x2a')]=_0x468007;}[_0x4c7c('0x82')](_0x4c5c19,_0x5ccae4,_0x9aec1e,_0x815e40){if(_0x4c5c19[_0x4c7c('0x108')]!=_0x5ccae4||_0x4c5c19[_0x4c7c('0x4f')]!=_0x9aec1e||_0x4c5c19[_0x4c7c('0xc2')]['id']!=_0x815e40)throw this[_0x4c7c('0x21')][_0x4c7c('0x110')](_0x4c7c('0xbf')),new _0x81df42(_0x4c7c('0xbf'),this);}[_0x4c7c('0x13')](_0x2b1bc5,_0x11cb20){const _0x347def=_0x2b1bc5['getFirstRange']();if(_0x11cb20[_0x4c7c('0x9e')](_0x347def))_0x2b1bc5['removeMarkers']();else{if(_0x347def[_0x4c7c('0xa4')](_0x11cb20)){const _0x47709f=this[_0x4c7c('0x70')][_0x4c7c('0x53')](_0x11cb20[_0x4c7c('0x7d')][_0x4c7c('0xff')],_0x4c7c('0xcf'));this['_setSuggestionRange'](_0x2b1bc5,this[_0x4c7c('0x70')]['createRange'](_0x347def['start'],_0x47709f));const _0x4a89a1=_0x52451d(),_0x17dfd1=_0x2b1bc5['creator']['id'],_0x7828ac=_0x2b1bc5[_0x4c7c('0x108')]+':'+_0x2b1bc5[_0x4c7c('0x4f')];this['_setSuggestionData']({'id':_0x4a89a1,'type':_0x7828ac,'createdAt':new Date(),'authorId':_0x17dfd1,'data':_0x2b1bc5['data'],'attributes':_0x2b1bc5[_0x4c7c('0x31')]});const _0x268d26=this['_model'][_0x4c7c('0x53')](_0x11cb20[_0x4c7c('0xcf')][_0x4c7c('0x1d')],_0x4c7c('0x25')),_0x117128=this['_model']['createRange'](_0x268d26,_0x347def['end']);this[_0x4c7c('0xec')](_0x7828ac,_0x4a89a1,_0x17dfd1,_0x117128);}else{if(_0x347def[_0x4c7c('0x5a')](_0x11cb20[_0x4c7c('0x7d')])){const _0x4da06e=this[_0x4c7c('0x70')][_0x4c7c('0x53')](_0x11cb20[_0x4c7c('0x7d')][_0x4c7c('0xff')],_0x4c7c('0xcf'));this[_0x4c7c('0x10')](_0x2b1bc5,this['_model']['createRange'](_0x347def[_0x4c7c('0x7d')],_0x4da06e));}else{const _0x9c9f9a=this['_model'][_0x4c7c('0x53')](_0x11cb20[_0x4c7c('0xcf')]['parent'],_0x4c7c('0x25'));this[_0x4c7c('0x10')](_0x2b1bc5,this['_model']['createRange'](_0x9c9f9a,_0x347def[_0x4c7c('0xcf')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2b21e7){for(const {suggestion:_0x47d600,meta:_0x3f58f3}of this['_findSuggestions'](_0x2b21e7,_0x4c7c('0x78'))){if(!_0x3f58f3[_0x4c7c('0x137')])continue;const _0x579c0a=_0x47d600['getRanges']();for(const _0xea0549 of _0x579c0a)if(!_0x2b21e7[_0x4c7c('0x10b')](_0xea0549)[_0x4c7c('0x8b')])return!0x0;}return!0x1;}[_0x4c7c('0x135')](_0x387181){const _0x36d82f=this['editor'][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))[_0x4c7c('0x13d')](_0x387181);if(!_0x36d82f)throw new _0x81df42('track-changes-user-not-found',this);return _0x36d82f;}[_0x4c7c('0x11c')](_0x15e209){const _0x4d9126=this[_0x4c7c('0x21')][_0x4c7c('0x12c')]['get'](_0x4c7c('0x13b')),_0x5611e1=_0x4eb39b(_0x4c7c('0x32')+_0x15e209),_0x32542b=_0x4d9126['getUser'](_0x5611e1);return _0x32542b||_0x4d9126[_0x4c7c('0x49')]({'id':_0x5611e1,'name':_0x15e209});}[_0x4c7c('0xa0')](_0x1e3858,_0x16c4fd,_0x4d4b5b,_0xedfc76,_0x42c5aa){const _0x4154fa=this['_getAuthorFromId'](_0xedfc76),_0x41321c=this[_0x4c7c('0x8c')][_0x4c7c('0x14')](_0x1e3858,_0x16c4fd,_0x4d4b5b,_0x4154fa,_0x42c5aa,_0x1540ba=>this[_0x4c7c('0xa8')](_0x4d4b5b,{'attributes':_0x1540ba}));return this[_0x4c7c('0x74')](_0x41321c,_0x4c7c('0xed'),()=>{this[_0x4c7c('0xa8')](_0x4d4b5b,{'state':_0x4c7c('0xe4')});},{'priority':_0x4c7c('0x111')}),this[_0x4c7c('0x74')](_0x41321c,'discard',()=>{this[_0x4c7c('0xa8')](_0x4d4b5b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4d4b5b,_0x41321c),this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0x41321c,_0x4c7c('0x11d')),_0x41321c;}[_0x4c7c('0x4c')](_0x2a3729){const _0x33183f=_0x2a3729[_0x4c7c('0x40')](':');return{'group':_0x33183f[0x0],'type':_0x33183f[0x1],'subType':_0x33183f['length']>=0x5?_0x33183f[0x2]:null,'id':_0x33183f[_0x4c7c('0x8b')]<0x5?_0x33183f[0x2]:_0x33183f[0x3],'authorId':_0x33183f[_0x4c7c('0x8b')]<0x5?_0x33183f[0x3]:_0x33183f[0x4],'markerCount':0x6==_0x33183f[_0x4c7c('0x8b')]?_0x33183f[0x5]:null};}['_breakSuggestionMarker'](_0x4d5ecc,_0x709a64,_0xa15e01){const _0x1179b1=_0x4d5ecc[_0x4c7c('0x7c')](),_0xa9a206=_0x1179b1[_0x4c7c('0x7d')],_0x1e64f2=_0x1179b1[_0x4c7c('0xcf')];this['_setSuggestionRange'](_0x4d5ecc,this[_0x4c7c('0x70')][_0x4c7c('0xb1')](_0xa9a206,_0x709a64));const _0x95637e=_0x52451d(),_0x48e8a1=_0x4d5ecc[_0x4c7c('0xc2')]['id'],_0x487966=_0x4d5ecc['type']+(_0x4d5ecc[_0x4c7c('0x4f')]?':'+_0x4d5ecc[_0x4c7c('0x4f')]:'');this[_0x4c7c('0xdb')]({'id':_0x95637e,'type':_0x487966,'createdAt':new Date(),'authorId':_0x48e8a1,'originalSuggestionId':_0x4d5ecc['id'],'attributes':_0x4d5ecc[_0x4c7c('0x31')],'data':_0x4d5ecc[_0x4c7c('0x79')]}),_0x4c7c('0x86')==_0x4d5ecc[_0x4c7c('0x108')]&&(_0xa15e01=this['_model'][_0x4c7c('0x136')](_0xa15e01[_0x4c7c('0x1d')])),this[_0x4c7c('0xec')](_0x487966,_0x95637e,_0x48e8a1,this[_0x4c7c('0x70')]['createRange'](_0xa15e01,_0x1e64f2));}[_0x4c7c('0x9c')](_0x4b5afe,_0x8644ab=null){const _0x43e825=[],_0x459507=this[_0x4c7c('0x21')][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x13b'))['me'];Array[_0x4c7c('0xc1')](_0x4b5afe)||(_0x4b5afe=[_0x4b5afe]);for(const _0x27929f of this[_0x4c7c('0x44')]()){if(!_0x27929f[_0x4c7c('0x3f')])continue;if(_0x8644ab&&_0x27929f[_0x4c7c('0x108')]!=_0x8644ab)continue;let _0x7d1bf8=!0x1;for(const _0x2d67ca of _0x27929f['getRanges']()){for(const _0x3af929 of _0x4b5afe){const _0x45425c=_0x3af929[_0x4c7c('0x7d')][_0x4c7c('0x9e')](_0x2d67ca[_0x4c7c('0xcf')])||_0x3af929[_0x4c7c('0xcf')][_0x4c7c('0x9e')](_0x2d67ca[_0x4c7c('0x7d')]);if(_0x45425c||_0x3af929['getIntersection'](_0x2d67ca)){const _0x2bbdf6=_0x3af929[_0x4c7c('0xa4')](_0x2d67ca)&&_t(this[_0x4c7c('0x70')]['schema'],_0x2d67ca[_0x4c7c('0x7d')],_0x3af929),_0x319260=_0x2d67ca[_0x4c7c('0xa4')](_0x3af929)&&_t(this[_0x4c7c('0x70')][_0x4c7c('0xf1')],_0x3af929[_0x4c7c('0x7d')],_0x2d67ca);_0x43e825['push']({'suggestion':_0x27929f,'meta':{'isOwn':_0x459507==_0x27929f['author'],'isNextTo':_0x45425c,'isInsideObject':_0x2bbdf6,'containsRangeInObject':_0x319260}}),_0x7d1bf8=!0x0;break;}}if(_0x7d1bf8)break;}}return _0x43e825;}[_0x4c7c('0xec')](_0x37d8ee,_0x3c5310,_0x2ecd25,_0x4c9492,_0x54da7f){this[_0x4c7c('0x70')][_0x4c7c('0x109')](_0x2445fe=>{let _0xf1288e=_0x4c7c('0x1a')+_0x37d8ee+':'+_0x3c5310+':'+_0x2ecd25;_0x54da7f&&(_0xf1288e=_0xf1288e+':'+_0x54da7f),_0x2445fe[_0x4c7c('0x2f')](_0xf1288e,{'range':_0x4c9492,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4c7c('0x106')](_0x5f085a){const _0x14e31c=_0x5f085a['previous'],_0x571e20=_0x5f085a[_0x4c7c('0xad')];_0x5f085a['previous']=null,null!=_0x14e31c&&(_0x14e31c[_0x4c7c('0xad')]=null),_0x5f085a[_0x4c7c('0xad')]=null,null!=_0x571e20&&(_0x571e20['previous']=null),'ready'==this[_0x4c7c('0x127')][_0x4c7c('0x41')](_0x5f085a)&&(this[_0x4c7c('0x127')]['set'](_0x5f085a,_0x4c7c('0x6c')),this['fire'](_0x4c7c('0xbb'),_0x5f085a,_0x14e31c,_0x571e20));}['_setSuggestionData'](_0x4d35dd){const _0x4653d9=_0x4d35dd['id'],_0x2bef1c=this[_0x4c7c('0x6d')](_0x4d35dd);if(this[_0x4c7c('0xac')]&&this[_0x4c7c('0xac')][_0x4c7c('0xa')]){const _0x45b3ee=this[_0x4c7c('0x21')][_0x4c7c('0x12c')]['get']('PendingActions'),_0x2cfe01=_0x2bef1c[_0x4c7c('0x7a')],_0x169d46=_0x2bef1c[_0x4c7c('0x4f')]?_0x2bef1c['type']+':'+_0x2bef1c[_0x4c7c('0x4f')]:_0x2bef1c[_0x4c7c('0x108')],_0x393571=this[_0x4c7c('0x21')]['locale'],_0x5e15a3=_0x45b3ee[_0x4c7c('0x107')](_0x4b0140(_0x393571,_0x4c7c('0x104'))),_0x34df25={'id':_0x4653d9,'type':_0x169d46,'hasComments':_0x2cfe01,'data':_0x4d35dd['data']||null,'originalSuggestionId':_0x4d35dd[_0x4c7c('0x102')]||null,'attributes':_0x2bef1c['attributes']};this[_0x4c7c('0xac')][_0x4c7c('0xa')](_0x34df25)['then'](_0x311b4a=>{_0x2bef1c[_0x4c7c('0x128')]=!0x0,_0x45b3ee[_0x4c7c('0x55')](_0x5e15a3),_0x311b4a&&_0x311b4a[_0x4c7c('0xa2')]&&(this['_suggestions'][_0x4c7c('0x41')](_0x4653d9)[_0x4c7c('0xa2')]=_0x311b4a[_0x4c7c('0xa2')]);})[_0x4c7c('0x130')](_0x560ec9=>{throw _0x44d4db(_0x4c7c('0x52')),this[_0x4c7c('0x21')][_0x4c7c('0xce')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x2bef1c[_0x4c7c('0x11b')]();}),_0x2bef1c[_0x4c7c('0x62')](),this[_0x4c7c('0xb4')][_0x4c7c('0xbc')](_0x2bef1c['id']),this['_suggestionState'][_0x4c7c('0xbc')](_0x2bef1c),_0x560ec9;});}return _0x2bef1c;}[_0x4c7c('0xa8')](_0x472ade,_0x2ffd39){const _0x59a033=this[_0x4c7c('0x21')][_0x4c7c('0x12c')][_0x4c7c('0x41')](_0x4c7c('0x126')),_0x3ce8e2=this[_0x4c7c('0x119')](_0x472ade);if(this[_0x4c7c('0xac')]&&this[_0x4c7c('0xac')][_0x4c7c('0xdd')]){if(_0x3ce8e2[_0x4c7c('0x128')]){const _0x406934=_0x59a033[_0x4c7c('0x107')](_0x4b0140(this['editor'][_0x4c7c('0x27')],_0x4c7c('0x104')));this[_0x4c7c('0xac')][_0x4c7c('0xdd')](_0x472ade,_0x2ffd39)[_0x4c7c('0x10d')](()=>{_0x59a033[_0x4c7c('0x55')](_0x406934);});}else _0x3ce8e2['on']('change:_saved',()=>{this[_0x4c7c('0xa8')](_0x472ade,_0x2ffd39);});}}['_getSuggestionData'](_0x57bdb5){if(!this[_0x4c7c('0xac')]||!this[_0x4c7c('0xac')]['getSuggestion'])throw new _0x81df42(_0x4c7c('0x11f'),this);return this[_0x4c7c('0xac')][_0x4c7c('0x119')](_0x57bdb5);}['_handleNewSuggestionMarker'](_0x15f60f){const {id:_0x323ac7,type:_0x1b3db5,subType:_0x1a19dc,authorId:_0x347407}=this[_0x4c7c('0x4c')](_0x15f60f),_0xf33d35=this[_0x4c7c('0xb4')][_0x4c7c('0x41')](_0x323ac7)||this['_createSuggestion'](_0x1b3db5,_0x1a19dc,_0x323ac7,_0x347407,{});switch(this[_0x4c7c('0x82')](_0xf33d35,_0x1b3db5,_0x1a19dc,_0x347407),this[_0x4c7c('0x127')]['get'](_0xf33d35)){case _0x4c7c('0x11d'):this['_getSuggestionData'](_0x323ac7)[_0x4c7c('0x10d')](_0x55102a=>{let _0x3038a3=Promise['resolve']();_0x55102a[_0x4c7c('0x7a')]&&(_0x3038a3=this[_0x4c7c('0x77')][_0x4c7c('0xd9')]({'channelId':this[_0x4c7c('0x21')][_0x4c7c('0x3b')][_0x4c7c('0x41')]('collaboration.channelId'),'threadId':_0x323ac7})),_0x3038a3[_0x4c7c('0x10d')](()=>{this[_0x4c7c('0x6d')](_0x55102a)['_saved']=!0x0;});}),this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0xf33d35,'markerReady');break;case'removed':this[_0x4c7c('0xa8')](_0x323ac7,{'state':_0x4c7c('0x91')});case _0x4c7c('0x1c'):this[_0x4c7c('0x127')][_0x4c7c('0x125')](_0xf33d35,_0x4c7c('0x51')),this[_0x4c7c('0xb3')]('suggestionLoaded',_0xf33d35);break;case _0x4c7c('0x51'):this['fire'](_0x4c7c('0x28'),_0xf33d35);}return _0xf33d35['addMarkerName'](_0x15f60f),_0xf33d35;}[_0x4c7c('0x6b')](_0x5e272a){const _0x328596=Array[_0x4c7c('0x35')](_0x5e272a)['filter'](_0x6d48e1=>!_0x6d48e1[_0x4c7c('0xaa')]),_0x367061=this[_0x4c7c('0x44')]({'skipNotAttached':!0x0})['filter'](_0x4a15a6=>!_0x4a15a6[_0x4c7c('0xaa')]),_0x25184e=_0x367061[_0x4c7c('0x11a')](_0x4011b0=>!_0x5e272a['has'](_0x4011b0)),_0x55a28d=new Map(_0x367061[_0x4c7c('0xc9')](_0x195010=>[_0x195010,this[_0x4c7c('0x8c')]['getSuggestionCallback'](_0x195010[_0x4c7c('0x108')],_0x195010[_0x4c7c('0x4f')],_0x4c7c('0xe3'))])),_0x6844c3=new Map(_0x367061[_0x4c7c('0xc9')](_0x538984=>[_0x538984,_0x538984[_0x4c7c('0x7c')]()])),_0x43b4bf=new Set(),_0x341216=new Set();for(let _0x4c4e30=0x0;_0x4c4e30<_0x328596[_0x4c7c('0x8b')];_0x4c4e30++)_0x2de1f4(_0x328596[_0x4c4e30],_0x328596,_0x4c4e30+0x1);for(let _0x380eb6=0x0;_0x380eb6<_0x328596[_0x4c7c('0x8b')];_0x380eb6++)_0x2de1f4(_0x328596[_0x380eb6],_0x25184e,0x0);for(let _0x45a10a=0x0;_0x45a10a<_0x328596['length'];_0x45a10a++){const _0x2fccdf=_0x328596[_0x45a10a];!_0x341216[_0x4c7c('0x5b')](_0x2fccdf)&&_0x2fccdf[_0x4c7c('0x3d')]&&(_0x2fccdf[_0x4c7c('0x3d')][_0x4c7c('0xad')]===_0x2fccdf&&(_0x2fccdf['previous'][_0x4c7c('0xad')]=null),_0x2fccdf[_0x4c7c('0x3d')]=null),!_0x43b4bf['has'](_0x2fccdf)&&_0x2fccdf['next']&&(_0x2fccdf[_0x4c7c('0xad')][_0x4c7c('0x3d')]===_0x2fccdf&&(_0x2fccdf[_0x4c7c('0xad')][_0x4c7c('0x3d')]=null),_0x2fccdf[_0x4c7c('0xad')]=null);}function _0x2de1f4(_0x5e8c93,_0x4ec90e,_0x405fc1){for(let _0x507002=_0x405fc1;_0x507002<_0x4ec90e[_0x4c7c('0x8b')];_0x507002++){const _0x5a8b14=_0x4ab37f(_0x5e8c93,_0x4ec90e[_0x507002]);_0x5a8b14&&(_0x5a8b14[0x0][_0x4c7c('0xad')]=_0x5a8b14[0x1],_0x5a8b14[0x1]['previous']=_0x5a8b14[0x0],_0x43b4bf[_0x4c7c('0x107')](_0x5a8b14[0x0]),_0x341216[_0x4c7c('0x107')](_0x5a8b14[0x1]));}}function _0x4ab37f(_0x4887ca,_0x358d5f){if(_0x4887ca[_0x4c7c('0x2')]['id']!==_0x358d5f[_0x4c7c('0x2')]['id'])return null;const _0x1b390e=_0x55a28d[_0x4c7c('0x41')](_0x4887ca)(_0x4887ca,_0x358d5f,_0x6844c3[_0x4c7c('0x41')](_0x4887ca),_0x6844c3[_0x4c7c('0x41')](_0x358d5f));if(!_0x1b390e)return null;return _0x55a28d[_0x4c7c('0x41')](_0x358d5f)(_0x4887ca,_0x358d5f,_0x6844c3[_0x4c7c('0x41')](_0x4887ca),_0x6844c3[_0x4c7c('0x41')](_0x358d5f))?_0x1b390e[0x1][_0x4c7c('0x2a')]&&_0x1b390e[0x1]['commentThread']['length']?null:_0x1b390e:null;}}[_0x4c7c('0x66')](_0x8ee6bf){const _0x2b2126=Array[_0x4c7c('0x35')](_0x8ee6bf),_0x53c296=this[_0x4c7c('0x44')]({'skipNotAttached':!0x0}),_0x35f702=_0x53c296['filter'](_0x330ba0=>!_0x8ee6bf[_0x4c7c('0x5b')](_0x330ba0)),_0x2d5216=new Map(_0x2b2126['map'](_0x4973db=>[_0x4973db,this[_0x4c7c('0x8c')][_0x4c7c('0xd6')](_0x4973db[_0x4c7c('0x108')],_0x4973db[_0x4c7c('0x4f')],'join')])),_0x5adb25=new Map(_0x53c296[_0x4c7c('0xc9')](_0x26addc=>[_0x26addc,_0x26addc[_0x4c7c('0x76')]()]));for(let _0x1716b3=0x0;_0x1716b3<_0x2b2126['length'];_0x1716b3++){if(_0x2610d5(this,_0x2b2126[_0x1716b3],_0x2b2126,_0x1716b3+0x1))return!0x0;}for(let _0x49401f=0x0;_0x49401f<_0x2b2126[_0x4c7c('0x8b')];_0x49401f++){if(_0x2610d5(this,_0x2b2126[_0x49401f],_0x35f702,0x0))return!0x0;}return!0x1;function _0x2610d5(_0x32ecc8,_0x23cd9c,_0x5a573f,_0x1fb07a){for(let _0x47c71e=_0x1fb07a;_0x47c71e<_0x5a573f['length'];_0x47c71e++){const _0xe6cc31=_0x5a573f[_0x47c71e];if(_0xe6cc31[_0x4c7c('0x108')]!==_0x23cd9c[_0x4c7c('0x108')]||_0xe6cc31[_0x4c7c('0x2')]['id']!==_0x23cd9c[_0x4c7c('0x2')]['id']||_0xe6cc31[_0x4c7c('0x4f')]!==_0x23cd9c[_0x4c7c('0x4f')])continue;if(!Ut(_0x23cd9c,_0xe6cc31))continue;const _0x40ccc8=_0x2d5216[_0x4c7c('0x41')](_0x23cd9c),_0x3845ee=_0x5adb25[_0x4c7c('0x41')](_0x23cd9c),_0x3ea4a6=_0x5adb25[_0x4c7c('0x41')](_0xe6cc31),_0x40bdb7=_0x23cd9c[_0x4c7c('0x2a')]&&_0x23cd9c['commentThread']['length'],_0x588604=_0xe6cc31[_0x4c7c('0x2a')]&&_0xe6cc31['commentThread']['length'];if(!_0x40bdb7&&_0x40ccc8(_0x3ea4a6,_0x3845ee))return _0x32ecc8[_0x4c7c('0xa5')](_0xe6cc31,_0x23cd9c),_0x5adb25[_0x4c7c('0xbc')](_0x23cd9c),!0x0;if(!_0x588604&&_0x40ccc8(_0x3845ee,_0x3ea4a6))return _0x32ecc8[_0x4c7c('0xa5')](_0x23cd9c,_0xe6cc31),_0x5adb25['delete'](_0xe6cc31),!0x0;}return!0x1;}}[_0x4c7c('0xa5')](_0x1e5445,_0x2662d8){if(_0x1e5445[_0x4c7c('0xaa')])for(const _0x19d1d0 of _0x2662d8['getRanges']())_0x1e5445[_0x4c7c('0xa3')](_0x19d1d0);else{const _0x2d4d6d=_0x2662d8[_0x4c7c('0x7c')]()[_0x4c7c('0xcf')];this[_0x4c7c('0x10')](_0x1e5445,this[_0x4c7c('0x70')][_0x4c7c('0xb1')](_0x1e5445[_0x4c7c('0x7c')]()[_0x4c7c('0x7d')],_0x2d4d6d));}_0x2662d8[_0x4c7c('0x38')]();}}class Bt{constructor(_0x5ef894){this['_editor']=_0x5ef894,this[_0x4c7c('0x70')]=_0x5ef894['model'],this[_0x4c7c('0x9')]=new Map(),this[_0x4c7c('0xe5')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4c7c('0x14')](_0x286189,_0x42cb62,_0x2e6555,_0x2c2a68,_0x39aff7,_0x500a5e){return new _0x5a82f6(this[_0x4c7c('0x70')],{'type':_0x286189,'subType':_0x42cb62,'id':_0x2e6555,'author':_0x2c2a68,'creator':_0x2c2a68,'attributes':_0x39aff7,'onAttributesChange':_0x500a5e,'onAccept':(..._0x42e93f)=>this[_0x4c7c('0xd6')](_0x286189,_0x42cb62,_0x4c7c('0xed'))(..._0x42e93f),'onDiscard':(..._0x1744b1)=>this['getSuggestionCallback'](_0x286189,_0x42cb62,_0x4c7c('0x11b'))(..._0x1744b1)});}[_0x4c7c('0x87')](_0x292e5c,_0x8aee76,_0xb27e68,_0x16da83){const _0x3d096b=_0x292e5c+':'+_0x8aee76+':'+_0xb27e68;this[_0x4c7c('0x9')][_0x4c7c('0x125')](_0x3d096b,_0x16da83);}['getSuggestionCallback'](_0x2f5520,_0xbc84d0,_0x6d10e4){const _0x47bdfc=_0x2f5520+':'+_0xbc84d0+':'+_0x6d10e4;return this['_customCallbacks'][_0x4c7c('0x41')](_0x47bdfc)||this['_defaultCallbacks'][_0x4c7c('0x41')](_0x2f5520+':'+_0x6d10e4);}['_registerDefaultCallbacks'](){const _0x39573c=()=>!0x1,_0x3c48d7=_0x13a9d6=>{_0x13a9d6[_0x4c7c('0x13c')]((_0x890a8,_0x1ccf7b)=>_0x890a8[_0x4c7c('0x7d')][_0x4c7c('0xf')](_0x1ccf7b[_0x4c7c('0x7d')])?0x1:-0x1),this[_0x4c7c('0x70')][_0x4c7c('0x109')](_0x47f4db=>{for(const _0x237ed2 of _0x13a9d6){let _0xcb5256;_0xcb5256=_0x237ed2[_0x4c7c('0xcf')]['isAtEnd']&&_0x237ed2[_0x4c7c('0xcf')][_0x4c7c('0x1d')]==_0x237ed2[_0x4c7c('0x7d')][_0x4c7c('0x34')]?_0x47f4db[_0x4c7c('0xfb')](_0x237ed2[_0x4c7c('0x7d')][_0x4c7c('0x34')],'on'):_0x47f4db[_0x4c7c('0xfb')](_0x237ed2),this[_0x4c7c('0x70')]['deleteContent'](_0xcb5256,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2ed673=(_0x4b4f28,_0x2c81b8)=>{this[_0x4c7c('0x70')][_0x4c7c('0x109')](_0x62368e=>{const {commandName:_0x33b8ae,commandParams:_0x11d3c9=[]}=_0x2c81b8,_0x404984=_0x4b4f28[_0x4c7c('0xc9')](_0x1e9330=>(Mt(_0x1e9330)&&(_0x1e9330=this['_model'][_0x4c7c('0xb1')](_0x1e9330[_0x4c7c('0xcf')])),_0x1e9330))['filter'](_0x1a156f=>_0x4c7c('0x116')!==_0x1a156f[_0x4c7c('0x68')]['rootName']);if(_0x404984['length']<0x1)return;const _0x43a5f0=Array[_0x4c7c('0x35')](this[_0x4c7c('0x70')][_0x4c7c('0xf7')]['selection'][_0x4c7c('0x76')]())['map'](_0x13a9cb=>_0x4f665b[_0x4c7c('0x19')](_0x13a9cb));_0x62368e[_0x4c7c('0xbe')](_0x404984);for(const _0x16c855 of this[_0x4c7c('0x13f')][_0x4c7c('0xf9')]['commands']())_0x16c855['refresh']();_0x11d3c9[_0x4c7c('0x43')]({'forceDefaultExecution':!0x0}),this[_0x4c7c('0x13f')][_0x4c7c('0x4e')](_0x33b8ae,..._0x11d3c9);const _0x5a4630=_0x43a5f0[_0x4c7c('0x11a')](_0x3a16d2=>_0x4c7c('0x116')!=_0x3a16d2[_0x4c7c('0x68')]['rootName']);_0x5a4630[_0x4c7c('0x8b')]>0x0&&_0x62368e[_0x4c7c('0xbe')](_0x5a4630);for(const _0xff143f of _0x43a5f0)_0xff143f[_0x4c7c('0x8f')]();});},_0x484eb4=(_0x154685,_0x5e40fd)=>0x1==_0x154685[_0x4c7c('0x8b')]&&0x1==_0x5e40fd[_0x4c7c('0x8b')]&&_0x154685[0x0][_0x4c7c('0xcf')][_0x4c7c('0x9e')](_0x5e40fd[0x0]['start']),_0x17a6a2=(_0x36bb41,_0x53e383,_0x262793,_0x1366a4)=>xt(_0x36bb41,_0x53e383,_0x262793,_0x1366a4,this['_model'])?[_0x36bb41,_0x53e383]:xt(_0x53e383,_0x36bb41,_0x1366a4,_0x262793,this['_model'])?[_0x53e383,_0x36bb41]:null;this[_0x4c7c('0xe5')][_0x4c7c('0x125')]('insertion:accept',_0x39573c),this[_0x4c7c('0xe5')]['set'](_0x4c7c('0x22'),_0x3c48d7),this[_0x4c7c('0xe5')][_0x4c7c('0x125')]('insertion:join',_0x484eb4),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x140'),_0x17a6a2),this['_defaultCallbacks'][_0x4c7c('0x125')](_0x4c7c('0xe8'),_0x3c48d7),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x7e'),_0x39573c),this[_0x4c7c('0xe5')]['set'](_0x4c7c('0x131'),_0x484eb4),this['_defaultCallbacks'][_0x4c7c('0x125')]('deletion:chain',_0x17a6a2),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x80'),_0x2ed673),this['_defaultCallbacks'][_0x4c7c('0x125')](_0x4c7c('0x103'),_0x39573c),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0xde'),_0x484eb4),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x96'),_0x39573c),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x122'),_0x2ed673),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0x5'),_0x39573c),this[_0x4c7c('0xe5')][_0x4c7c('0x125')](_0x4c7c('0xdf'),_0x484eb4),this[_0x4c7c('0xe5')][_0x4c7c('0x125')]('formatBlock:chain',_0x39573c);}}function _t(_0x1b0f10,_0x465e90,_0x2af5bd){for(const _0xaa5c26 of _0x465e90[_0x4c7c('0x1d')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xaa5c26[_0x4c7c('0x68')]==_0xaa5c26)return!0x1;if(!_0x2af5bd[_0x4c7c('0x29')](_0xaa5c26))return!0x1;if(_0x1b0f10[_0x4c7c('0x134')](_0xaa5c26)||_0x1b0f10['isLimit'](_0xaa5c26))return!0x0;}return!0x1;}function Mt(_0xbed323){return _0xbed323['end'][_0x4c7c('0x1d')]==_0xbed323['start'][_0x4c7c('0x34')]&&_0xbed323[_0x4c7c('0xcf')][_0x4c7c('0xba')];}function $t(_0x26cb00,_0x39a44c,_0x2112b8,_0x240afb){const _0x52bf9f=_0x547a29=>!_0x547a29[_0x4c7c('0xb7')]['is'](_0x4c7c('0x115'))&&!_0x240afb[_0x4c7c('0x134')](_0x547a29['item']),_0x19c594=_0x26cb00['start']['getLastMatchingPosition'](_0x52bf9f),_0x2b6f11=_0x26cb00[_0x4c7c('0xcf')][_0x4c7c('0x90')](_0x52bf9f,{'direction':_0x4c7c('0x7b')});return(!_0x26cb00['start'][_0x4c7c('0x9e')](_0x19c594)||!_0x26cb00['end']['isEqual'](_0x2b6f11))&&(_0x19c594[_0x4c7c('0xf')](_0x2b6f11)?_0x2112b8['updateMarker'](_0x39a44c,{'range':_0x2112b8[_0x4c7c('0xb1')](_0x19c594,_0x2b6f11)}):_0x2112b8[_0x4c7c('0x141')](_0x39a44c),!0x0);}function Nt(_0x3f3d2b){return _0x4eb39b(_0x3f3d2b);}function Rt(_0x2d75a9){const _0x3946ce=_0x2d75a9[_0x4c7c('0x7d')][_0x4c7c('0x34')];return _0x3946ce&&_0x3946ce['is']('element');}function jt(_0xf0591,_0x216883){const _0x5ba5e2=_0x216883['schema'][_0x4c7c('0x134')](_0xf0591)||_0x216883['schema'][_0x4c7c('0x81')](_0xf0591);return _0x216883[_0x4c7c('0xb1')](_0x216883[_0x4c7c('0x53')](_0xf0591,_0x4c7c('0x60')),_0x5ba5e2?_0x216883['createPositionAfter'](_0xf0591):_0x216883[_0x4c7c('0x53')](_0xf0591,_0x4c7c('0xcf')));}function xt(_0xac6f7d,_0x21a4c3,_0x27af27,_0x5df230,_0x585186){if(!Ut(_0xac6f7d,_0x21a4c3))return!0x1;if(_0x27af27['end'][_0x4c7c('0x9e')](_0x5df230[_0x4c7c('0x7d')]))return!0x0;if(_0xac6f7d[_0x4c7c('0x108')]!=_0x21a4c3['type'])return!0x1;if(!_0x27af27[_0x4c7c('0xcf')]['isTouching'](_0x5df230[_0x4c7c('0x7d')]))return!0x1;const _0x5b5a98=_0x585186['createRange'](_0x27af27[_0x4c7c('0xcf')],_0x5df230[_0x4c7c('0x7d')])[_0x4c7c('0x5f')]();for(const _0x58a143 of _0x5b5a98)if([_0x4c7c('0x73'),_0x4c7c('0xf0')][_0x4c7c('0x33')](_0x58a143[_0x4c7c('0x108')])&&_0x585186[_0x4c7c('0xf1')][_0x4c7c('0x7')](_0x58a143[_0x4c7c('0xb7')]))return!0x1;return!0x0;}function Ut(_0xd6a2c5,_0x556bb4){return!(!_0xd6a2c5[_0x4c7c('0x105')]||!_0x556bb4[_0x4c7c('0x105')])&&_0x4d46c0(_0xd6a2c5[_0x4c7c('0x31')],_0x556bb4[_0x4c7c('0x31')]);}function Ot(_0x5153bc,_0x3c05e4){const _0x17d1fe=Et(_0x5153bc[_0x4c7c('0x31')]),_0xe7c9f6=Et(_0x3c05e4);if(!_0x5153bc[_0x4c7c('0x105')])return!0x1;for(const _0x55a53a of Object[_0x4c7c('0xc5')](_0xe7c9f6))if(!_0x4d46c0(_0x17d1fe[_0x55a53a],_0xe7c9f6[_0x55a53a]))return!0x1;return!0x0;}function Et(_0x575a1a){const _0x19e18a=Object[_0x4c7c('0xb2')]({},_0x575a1a);return delete _0x19e18a['skipNestingCheck'],delete _0x19e18a[_0x4c7c('0x7f')],_0x19e18a;}
|
|
23
|
+
const _0x40e3=['_suggestionState','elementToElement','track-changes-adapter-missing-getsuggestion','markMultiRangeDeletion','_saved','updateMarker','next','_joinWithAdjacentSuggestions','_removeSuggestion','isArray','high','suggestionChanged','createRange','data','getMultiRangeId','filter','authoredAt','isBefore','nodeBefore','deletion:','end','addSuggestionData','formatInline:','getCustomProperty','createPositionBefore','isSelectable','low','_registerDefaultCallbacks','isIntersectingWithRange','notReady','isNextTo','values','_splitMarkerName','change:activeMarkers','_breakSuggestionMarker','enableReadOnlyMode','normal','formatInline:chain','detach','formatBlock:','getChanges','stopListening','markerToHighlight','get','getWalker','splice','group','value','formatBlock:join','insertion:discard','isLocal','trackChangesCommand','parent','hasCommentThread','removeAttribute','suggestionUnloaded','_updateSuggestionData','authorName','addUser','addMarker:suggestion:formatBlock','delete','add','_checkSuggestionCorrectness','createPositionAfter','stop','getAttribute','author','init','formatInline:accept','subType','markInsertion','_setSuggestionData','removeMarker:suggestion:formatBlock','removeClass','getShiftedBy','commands','markBlockFormat','type','insert','_createSuggestion','commandName','marker-count','rethrowUnexpectedError','getRange','always','item','ck-suggestion-marker-','sort','collaboration.channelId','options','has','deletion','setTo','never','formatInline:discard','markers','clear','nodeAfter','removeMarkers','getIntersection','getFirstMarker','trackChanges.trackFormatChanges','ck-suggestion-marker','_adapter','plugins','oldRange','hasSuggestion','ck-suggestion-marker-formatBlock','config','insertion:chain','forceDefaultExecution','acceptSuggestion','consumable','change','getUser','markDeletion','_descriptionFactory','getChangedMarkers','addClass','addRange','insertion:accept','bindElementToMarker','assign','before','markerName','getSuggestion','createElement','_commentsRepository','model','_cutOutSuggestionMarker','_suggestionFactory','adapter','schema','previous','differ','markerToData','PendingActions','creator','isMultiRange','insertion:','external:','map','data-suggestion','_addSuggestionMarker','isUndo','track-changes-user-not-found','_isForcedDefaultExecutionBlock','getDifference','addMarker:suggestion','accept','resolve','change:_saved','multipleBlocks','PENDING_ACTION_SUGGESTION','isAtEnd','howMany','suggestionLoaded','execute','isRemovable','toJSON','containsRange','suggestion:','range','size','track-changes-suggestion-data-mismatch','addSuggestion','containsPosition','_handleNewSuggestionMarker','_getExternalAuthor','unbind','position','insertion','return','_enabledCommands','keys','selection','length','formatBlock','acceptSelectedSuggestions','_rangeIsInLocalUserInsertion','getAllAdjacentSuggestions','activeMarkers','rootName','isExternal','some','fire','setSelection','setAttribute','markMultiRangeInsertion','@external','_joinSuggestions','catch','backward','trackChanges.mergeNestedSuggestions','_getSuggestionData','containsRangeInObject','discard','Users','createdAt','batch','markerReady','$marker','_customCallbacks','editing','markerNameToElements','consume','discardSuggestion','root','fromRange','getAncestors','suggestion','markMultiRangeBlockFormat','splitPosition','_findSuggestions','every','isInContent','refresh','conversion','attributes','ck-suggestion-marker--active','clone','_addThreadToSuggestion','isBlock','createSelection','containsItem','trackChanges','isCollapsed','_getAuthorFromId','isObject','updateSuggestion','ready','_onDiscard','removeComment','getItems','isEqual','elementStart','_editor','_isDataLoaded','_refreshSuggestionsChain','$graveyard','getNearestSelectionRange','removed','editingDowncast','_setSuggestionRange','open','formatInline:join','insertion:join','error-saving-suggestion-data-suggestion-discarded','enableCommand','for','insertContent','multi','_trackFormatChanges','_mergeNestedSuggestions','addCommentThread','markInlineFormat','deletion:chain','newRange','then','head','lowest','CommentsRepository','removeMarker','getRanges','isLimit','listenTo','rejected','getSuggestions','join','reconvertMarker','formatInline','addMarkerName','moveTargetPosition','locale','addHighlight','getFirstRange','commentThread','after','_model','define','isAfter','dataDowncast','upcast','isTouching','acceptAllSuggestions','set','formatBlock:accept','formatGroupId','track-changes-command-not-found','mapper','targetPosition','toViewElement','dataReady','containerElement','_defaultCallbacks','buildSuggestion','start','discardSelectedSuggestions','createPositionAt','hasComments','addComment','document','track-changes-adapter-already-set','isInsideObject','editor','deletion:accept','getSuggestionCallback','push','name','skipNestingCheck','pluginName','includes','update:suggestion','discardAllSuggestions','remove','showSuggestionHighlights','chain','element','split','registerPostFixer','writer','_suggestions','$textProxy','from','isDocumentOperation','suggestion-type','addMarker','isOwn','createRangeIn'];(function(_0x5431de,_0x40e34e){const _0x17ec90=function(_0x59afba){while(--_0x59afba){_0x5431de['push'](_0x5431de['shift']());}};_0x17ec90(++_0x40e34e);}(_0x40e3,0x1c6));const _0x17ec=function(_0x5431de,_0x40e34e){_0x5431de=_0x5431de-0x0;let _0x17ec90=_0x40e3[_0x5431de];return _0x17ec90;};import{Plugin as _0x3940dc,PendingActions as _0x454d28}from'ckeditor5/src/core';import{LiveRange as _0x5b7c0c}from'ckeditor5/src/engine';import{CKEditorError as _0x2a3dc7,uid as _0x30e77c,priorities as _0x2f4fde,logWarning as _0x5c4f63}from'ckeditor5/src/utils';import{toWidget as _0x38e897}from'ckeditor5/src/widget';import{Users as _0xe69bb,hashObject as _0x478159}from'ckeditor5-collaboration/src/collaboration-core';import _0x210453 from'./commands/trackchangescommand';import _0x453538 from'./commands/acceptsuggestioncommand';import _0x3bd816 from'./commands/discardsuggestioncommand';import _0x573948 from'./commands/executeonallsuggestionscommand';import _0x5cc8f8 from'./commands/executeonselectedsuggestionscommand';import _0x3509b3 from'./suggestion';import _0x1fe19c from'./suggestiondescriptionfactory';import _0x28a59e from'./integrations/aiassistant';import _0x2a49b6 from'./integrations/alignment';import _0x4e4fa1 from'./integrations/basicstyles';import _0x4cfd1f from'./integrations/blockquote';import _0x32a3b0 from'./integrations/ckbox';import _0x13da7c from'./integrations/codeblock';import _0x556a3b from'./integrations/comments';import _0x2661a3 from'./integrations/deletecommand';import _0x2cc07d from'./integrations/documentlist';import _0x8ac22d from'./integrations/entercommand';import _0xa53c66 from'./integrations/findandreplace';import _0x88f470 from'./integrations/font';import _0x48d6eb from'./integrations/formatpainter';import _0x4ea11c from'./integrations/heading';import _0x3933ec from'./integrations/highlight';import _0x4c50bc from'./integrations/horizontalline';import _0x22d53b from'./integrations/htmlembed';import _0x8c45d0 from'./integrations/image';import _0x10f401 from'./integrations/imagereplace';import _0x32f7ed from'./integrations/importword';import _0x2c8107 from'./integrations/indent';import _0x48b0bc from'./integrations/inputcommand';import _0x303410 from'./integrations/link';import _0xa107c9 from'./integrations/list';import _0x8942f4 from'./integrations/listproperties';import _0x12d58e from'./integrations/mediaembed';import _0x1f7340 from'./integrations/mention';import _0x55d8df from'./integrations/pagebreak';import _0x352d70 from'./integrations/paragraph';import _0x2a9568 from'./integrations/removeformat';import _0x26090f from'./integrations/restrictededitingmode';import _0x587a87 from'./integrations/shiftentercommand';import _0x3c7737 from'./integrations/standardeditingmode';import _0x580d04 from'./integrations/style';import _0x350d65 from'./integrations/table';import _0x310ecb from'./integrations/tablemergesplit';import _0x3086da from'./integrations/tableheadings';import _0xed993 from'./integrations/tableclipboard';import _0x16f65b from'./integrations/tablecolumnresize';import _0x5c2cb4 from'./integrations/template';import _0x42601d from'./integrations/tableofcontents';import _0x40189f from'./integrations/title';import _0x4eee3f from'./integrations/undo';import{getTranslation as _0x4d4de8}from'./utils/common-translations';import _0x3c9912 from'./integrations/tablecaption';import _0x2a5b49 from'./integrations/documentlistproperties';import _0x186f5c from'./integrations/tableproperties';import{isEqual as _0x4d409c}from'lodash-es';export default class p extends _0x3940dc{static get['requires'](){return[_0x17ec('0x88'),_0xe69bb,_0x454d28,_0x28a59e,_0x2a49b6,_0x4e4fa1,_0x4cfd1f,_0x32a3b0,_0x13da7c,_0x556a3b,_0x2661a3,_0x2cc07d,_0x2a5b49,_0x8ac22d,_0xa53c66,_0x88f470,_0x48d6eb,_0x4ea11c,_0x3933ec,_0x4c50bc,_0x22d53b,_0x8c45d0,_0x10f401,_0x32f7ed,_0x2c8107,_0x48b0bc,_0x303410,_0xa107c9,_0x8942f4,_0x12d58e,_0x1f7340,_0x55d8df,_0x352d70,_0x2a9568,_0x26090f,_0x587a87,_0x3c7737,_0x580d04,_0x350d65,_0x310ecb,_0x3086da,_0x3c9912,_0xed993,_0x16f65b,_0x42601d,_0x186f5c,_0x5c2cb4,_0x40189f,_0x4eee3f];}static get[_0x17ec('0xb9')](){return'TrackChangesEditing';}constructor(_0x140d06){function _0x37693b(_0x492d54){return _0x492d54[_0x17ec('0x10')](_0xbcd73a=>String['fromCharCode'](_0xbcd73a))[_0x17ec('0x8f')]('');}super(_0x140d06),this[_0x17ec('0xa0')](_0x17ec('0x38'),[]),this['on'](_0x17ec('0xed'),(_0x324810,_0xdc31ef,_0x4523bb,_0x11deae)=>{this[_0x17ec('0x99')]['change'](()=>{for(const _0x528203 of[..._0x11deae,..._0x4523bb])this['_model'][_0x17ec('0x12b')][_0x17ec('0x126')](_0x528203)&&_0x140d06[_0x17ec('0x4e')][_0x17ec('0x90')](_0x528203);});}),this[_0x17ec('0x140')]=new _0x1fe19c(this[_0x17ec('0xb3')][_0x17ec('0x3')][_0x17ec('0x7')],this['editor'][_0x17ec('0x94')]),this[_0x17ec('0x133')]=null,this[_0x17ec('0x5')]=new Bt(this[_0x17ec('0xb3')]),this[_0x17ec('0xc4')]=new Map(),this[_0x17ec('0x2')]=_0x140d06['plugins'][_0x17ec('0xf7')](_0x17ec('0x88')),this[_0x17ec('0x30')]=new Set(),this[_0x17ec('0x99')]=this['editor'][_0x17ec('0x3')],this['_suggestionState']=new WeakMap(),this[_0x17ec('0x15')]=!0x1,_0x140d06[_0x17ec('0x138')]['define'](_0x17ec('0x131'),'default'),this[_0x17ec('0x7f')]=_0x140d06['config'][_0x17ec('0xf7')](_0x17ec('0x131')),_0x140d06[_0x17ec('0x138')][_0x17ec('0x9a')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x17ec('0x80')]=_0x140d06[_0x17ec('0x138')][_0x17ec('0xf7')](_0x17ec('0x44')),this[_0x17ec('0xff')]=new _0x210453(_0x140d06,this[_0x17ec('0x30')]),this[_0x37693b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x37693b([0x34,0x30,0x34,0x36,0x32,0x30,0x35,0x30]);}[_0x17ec('0x10f')](){const _0x28710f=this[_0x17ec('0xb3')];_0x28710f[_0x17ec('0x5c')][_0x17ec('0x7c')](_0x17ec('0x75'))[_0x17ec('0xf6')]({'model':_0x17ec('0x55'),'view':_0x50302d=>{const {id:_0x43c0a5,type:_0x2f8498}=this[_0x17ec('0xec')](_0x50302d[_0x17ec('0x148')]),_0x39867d=[_0x17ec('0x132'),'ck-suggestion-marker-'+_0x2f8498];let _0x379ba1=0xbb8;return this[_0x17ec('0x38')][_0x17ec('0xba')](_0x50302d[_0x17ec('0x148')])&&(_0x39867d['push'](_0x17ec('0x5e')),_0x379ba1=0xbc2),_0x17ec('0x127')==_0x2f8498&&(_0x379ba1+=0x5),{'classes':_0x39867d,'attributes':{'data-suggestion':_0x43c0a5},'priority':_0x379ba1};}}),_0x28710f[_0x17ec('0x5c')][_0x17ec('0x7c')](_0x17ec('0x9c'))[_0x17ec('0x109')](_0x45d979=>{_0x45d979['on'](_0x17ec('0x17'),(_0x440774,_0x1fdd86,_0xf8a039)=>{if(!_0xf8a039['options'][_0x17ec('0xbe')])return;const _0x88f1cb=_0x1fdd86[_0x17ec('0x121')];if(!_0x88f1cb)return;const _0x1cfc3a=_0xf8a039[_0x17ec('0xa4')][_0x17ec('0xa6')](_0x88f1cb);_0x28710f['model'][_0x17ec('0x7')][_0x17ec('0x67')](_0x88f1cb)&&_0x1cfc3a&&!_0x1cfc3a[_0x17ec('0xe3')]('widget')&&_0x1cfc3a['is'](_0x17ec('0xa8'))&&_0x38e897(_0x1cfc3a,_0xf8a039[_0x17ec('0xc3')]);},{'priority':_0x17ec('0xd6')});}),_0x28710f[_0x17ec('0x5c')][_0x17ec('0x7c')]('dataDowncast')[_0x17ec('0xf6')]({'model':_0x17ec('0x55'),'view':(_0x281e84,_0x254392)=>{if(!_0x254392[_0x17ec('0x125')]['showSuggestionHighlights'])return null;const {type:_0x3dec29}=this['_splitMarkerName'](_0x281e84[_0x17ec('0x148')]);return{'classes':['ck-suggestion-marker',_0x17ec('0x122')+_0x3dec29],'priority':0xbb8};}});const _0x6afba7=({showActiveMarkers:_0x5545a3=!0x0}={})=>(_0x2b342b,_0x2b05b9,_0x4bd9bf)=>{if(!_0x2b05b9[_0x17ec('0x121')])return;if(_0x2b05b9[_0x17ec('0x121')]['is'](_0x17ec('0x32')))return void _0x4bd9bf[_0x17ec('0x13c')][_0x17ec('0x50')](_0x2b05b9[_0x17ec('0x121')],_0x2b342b['name']);const _0x825125=_0x4bd9bf[_0x17ec('0xa4')][_0x17ec('0xa6')](_0x2b05b9[_0x17ec('0x121')]);if(!(_0x2b05b9[_0x17ec('0x121')]['is'](_0x17ec('0xc0'))&&_0x28710f[_0x17ec('0x3')][_0x17ec('0x7')][_0x17ec('0x61')](_0x2b05b9[_0x17ec('0x121')])&&!_0x825125[_0x17ec('0xe3')](_0x17ec('0x95'))))return;const {id:_0x3ccf84}=this['_splitMarkerName'](_0x2b05b9[_0x17ec('0x148')]);_0x4bd9bf['writer'][_0x17ec('0x142')]([_0x17ec('0x132'),_0x17ec('0x137')],_0x825125),_0x4bd9bf['writer'][_0x17ec('0x3e')](_0x17ec('0x11'),_0x3ccf84,_0x825125),_0x4bd9bf[_0x17ec('0xa4')][_0x17ec('0x145')](_0x825125,_0x2b05b9[_0x17ec('0x148')]),_0x5545a3&&(this[_0x17ec('0x38')]['includes'](_0x2b05b9['markerName'])?_0x4bd9bf['writer'][_0x17ec('0x142')]('ck-suggestion-marker--active',_0x825125):_0x4bd9bf['writer']['removeClass']('ck-suggestion-marker--active',_0x825125));for(const _0x24fe0e of _0x28710f[_0x17ec('0x3')][_0x17ec('0xcb')](_0x2b05b9[_0x17ec('0x121')])[_0x17ec('0x6c')]())_0x4bd9bf['consumable'][_0x17ec('0x50')](_0x24fe0e,_0x2b342b[_0x17ec('0xb7')]);_0x4bd9bf[_0x17ec('0x13c')]['consume'](_0x2b05b9[_0x17ec('0x121')],_0x2b342b[_0x17ec('0xb7')]);};_0x28710f[_0x17ec('0x5c')][_0x17ec('0x7c')](_0x17ec('0x9c'))[_0x17ec('0x109')](_0x4ca035=>{_0x4ca035['on'](_0x17ec('0x107'),(_0x125510,_0x128e2c,_0x547239)=>{_0x547239[_0x17ec('0x125')][_0x17ec('0xbe')]&&_0x6afba7({'showActiveMarkers':!0x1})(_0x125510,_0x128e2c,_0x547239);},{'priority':'highest'});}),_0x28710f['conversion'][_0x17ec('0x7c')](_0x17ec('0x9c'))[_0x17ec('0xa')]({'model':'suggestion','view':(_0x351a97,_0x42b179)=>_0x42b179[_0x17ec('0x125')][_0x17ec('0xbe')]?null:{'group':'suggestion','name':_0x351a97['substr'](0xb)}}),_0x28710f['conversion'][_0x17ec('0x7c')]('upcast')[_0x17ec('0xcd')]({'view':{'name':_0x17ec('0x55'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a68c9,{writer:_0x123205})=>{let _0x492851=_0x17ec('0x24')+_0x4a68c9[_0x17ec('0x10d')](_0x17ec('0xc8'))+':'+_0x4a68c9[_0x17ec('0x10d')]('id');return _0x4a68c9[_0x17ec('0x10d')](_0x17ec('0x11d'))&&(_0x492851+=':'+_0x4a68c9[_0x17ec('0x10d')](_0x17ec('0x11d'))),_0x123205[_0x17ec('0x1')](_0x17ec('0x4c'),{'data-name':_0x492851});}}),_0x28710f['conversion'][_0x17ec('0x7c')](_0x17ec('0x9d'))['dataToMarker']({'view':_0x17ec('0x55')}),_0x28710f[_0x17ec('0x5c')][_0x17ec('0x7c')](_0x17ec('0x75'))['add'](_0x5bf9a1=>{_0x5bf9a1['on'](_0x17ec('0x107'),_0x6afba7(),{'priority':'high'});}),_0x28710f[_0x17ec('0x5c')]['for'](_0x17ec('0x75'))[_0x17ec('0x109')](_0x3fdd01=>{_0x3fdd01['on'](_0x17ec('0x114'),(_0x2f58ab,_0x53426a,_0x4fa3b0)=>{const _0x97b7ac=_0x4fa3b0[_0x17ec('0xa4')][_0x17ec('0x4f')](_0x53426a[_0x17ec('0x148')]);if(_0x97b7ac)for(const _0x1d6853 of _0x97b7ac)_0x1d6853[_0x17ec('0xe3')](_0x17ec('0x95'))||(_0x4fa3b0[_0x17ec('0xc3')][_0x17ec('0x115')]([_0x17ec('0x132'),_0x17ec('0x137'),_0x17ec('0x5e')],_0x1d6853),_0x4fa3b0[_0x17ec('0xc3')][_0x17ec('0x102')](_0x17ec('0x11'),_0x1d6853),_0x4fa3b0[_0x17ec('0xa4')]['unbindElementFromMarkerName'](_0x1d6853,_0x53426a[_0x17ec('0x148')]));},{'priority':_0x17ec('0xd6')});}),_0x28710f[_0x17ec('0x3')][_0x17ec('0xb0')][_0x17ec('0xc2')](_0x23df78=>{let _0x1f13a4=!0x1;const _0xc99de8=Array[_0x17ec('0xc6')](_0x28710f[_0x17ec('0x3')][_0x17ec('0xb0')]['differ'][_0x17ec('0x141')]()),_0xb8f5=new Set();for(const {name:_0x13d7ff,data:_0x95a5f}of _0xc99de8){const {group:_0x543046,type:_0x2775a2,id:_0x153d2d}=this[_0x17ec('0xec')](_0x13d7ff);if(_0x17ec('0x55')!==_0x543046)continue;const _0x622770=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x153d2d);if(null!=_0x95a5f[_0x17ec('0x84')]){_0x17ec('0x91')==_0x2775a2&&(_0x1f13a4=_0x1f13a4||$t(_0x95a5f[_0x17ec('0x84')],_0x13d7ff,_0x23df78,_0x28710f[_0x17ec('0x3')][_0x17ec('0x7')]));if(_0x95a5f['newRange']['isCollapsed']||_0x17ec('0x72')==_0x95a5f[_0x17ec('0x84')][_0x17ec('0x52')][_0x17ec('0x39')]||_0x17ec('0x34')==_0x2775a2&&!Rt(_0x95a5f[_0x17ec('0x84')])||_0x17ec('0x127')==_0x2775a2&&!(!Mt(_0x24dc4b=_0x95a5f[_0x17ec('0x84')])&&!function(_0x4c2a39){return _0x4c2a39['start'][_0x17ec('0x100')]==_0x4c2a39[_0x17ec('0xe0')]['nodeBefore']&&_0x4c2a39[_0x17ec('0xab')][_0x17ec('0x1d')];}(_0x24dc4b)))_0x23df78['removeMarker'](_0x13d7ff),_0x1f13a4=!0x0;else{if(!_0x622770||!_0x622770['isInContent'])continue;_0xb8f5['add'](_0x622770);}}}var _0x24dc4b;return _0xb8f5[_0x17ec('0x26')]>0x0&&(_0x1f13a4=!!this[_0x17ec('0xd3')](_0xb8f5)||_0x1f13a4),_0x1f13a4;}),_0x28710f['model'][_0x17ec('0xb0')][_0x17ec('0xc2')](_0x5c4ec0=>{let _0x50f5fe=!0x1;for(const _0x36220e of _0x28710f['model']['document'][_0x17ec('0x9')][_0x17ec('0xf4')]()){if(_0x17ec('0x11a')!=_0x36220e['type'])continue;const _0x1ccd26=_0x36220e[_0x17ec('0x2d')][_0x17ec('0x116')](_0x36220e[_0x17ec('0x33')]);if(_0x1ccd26[_0x17ec('0x1d')])for(const _0x29c1ca of this[_0x17ec('0xc4')][_0x17ec('0xeb')]()){if(_0x29c1ca[_0x17ec('0xd')]||!_0x29c1ca[_0x17ec('0x5a')])continue;if(_0x17ec('0x34')!=_0x29c1ca['type'])continue;const _0x5d2b3f=_0x29c1ca['getFirstRange']();if(_0x5d2b3f[_0x17ec('0xab')]['parent']!=_0x5d2b3f[_0x17ec('0xe0')]['parent']&&_0x5d2b3f[_0x17ec('0xe0')][_0x17ec('0x6d')](_0x36220e[_0x17ec('0x2d')])){const _0x2aba42=_0x28710f[_0x17ec('0x3')][_0x17ec('0xd8')](_0x5d2b3f[_0x17ec('0xab')],_0x1ccd26);_0x5c4ec0[_0x17ec('0xd1')](_0x29c1ca[_0x17ec('0x130')](),{'range':_0x2aba42}),_0x50f5fe=!0x0;}}}return _0x50f5fe;}),_0x28710f['model'][_0x17ec('0x12b')]['on'](_0x17ec('0xbb'),(_0x447cf7,_0x5e422a,_0x46e21b)=>{if(null==_0x46e21b){const {id:_0x3b8be8}=this[_0x17ec('0xec')](_0x5e422a[_0x17ec('0xb7')]),_0x47daed=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x3b8be8);_0x47daed&&_0x47daed[_0x17ec('0x92')](_0x5e422a[_0x17ec('0xb7')]);}}),_0x28710f[_0x17ec('0x3')]['document']['on']('change:data',()=>{const _0x22906d=Array['from'](_0x28710f['model']['document'][_0x17ec('0x9')][_0x17ec('0x141')]())[_0x17ec('0xdb')](_0x440c41=>_0x17ec('0x55')===this['_splitMarkerName'](_0x440c41[_0x17ec('0xb7')])[_0x17ec('0xfa')]);if(0x0===_0x22906d[_0x17ec('0x33')])return;_0x22906d[_0x17ec('0x123')]((_0x28818d,_0x1282a6)=>{const _0x3f7ce9=_0x28818d[_0x17ec('0xd9')][_0x17ec('0x135')],_0x4f37e9=_0x1282a6[_0x17ec('0xd9')][_0x17ec('0x135')];return null===_0x3f7ce9&&null===_0x4f37e9?0x0:null===_0x3f7ce9&&null!==_0x4f37e9?-0x1:null!==_0x3f7ce9&&null===_0x4f37e9?0x1:_0x3f7ce9['start']['isBefore'](_0x4f37e9[_0x17ec('0xab')])?-0x1:0x1;});const _0x383d75=new Set(),_0xb4e117=new Set();for(const {name:_0xedc651,data:_0x46fde0}of _0x22906d){const {id:_0x149e13}=this['_splitMarkerName'](_0xedc651);if(null===_0x46fde0['oldRange']){const _0x4783ef=this[_0x17ec('0x2a')](_0xedc651);_0xb4e117[_0x17ec('0x109')](_0x4783ef);}else{const _0x4ff056=this['_suggestions'][_0x17ec('0xf7')](_0x149e13);null!==_0x46fde0[_0x17ec('0x84')]||_0x4ff056[_0x17ec('0x5a')]?(_0x383d75[_0x17ec('0x109')](_0x4ff056[_0x17ec('0x86')]),_0xb4e117[_0x17ec('0x109')](_0x4ff056)):this[_0x17ec('0xd4')](_0x4ff056);}}_0xb4e117[_0x17ec('0x26')]>0x0&&this[_0x17ec('0x71')](_0xb4e117);for(const _0x272f87 of _0x383d75)this[_0x17ec('0x3c')](_0x17ec('0xd7'),_0x272f87);}),_0x28710f['model']['on']('applyOperation',(_0xe6004a,_0xd398a3)=>{const _0x1f1062=_0xd398a3[0x0];if(!this[_0x17ec('0xc4')][_0x17ec('0x26')])return;if(!_0x1f1062[_0x17ec('0xc7')])return;if(_0x1f1062['batch'][_0x17ec('0x13')]||!_0x1f1062[_0x17ec('0x4a')][_0x17ec('0xfe')])return;let _0x3e3602,_0x229ba9;switch(_0x1f1062[_0x17ec('0x119')]){case'insert':_0x3e3602=_0x28710f[_0x17ec('0x3')][_0x17ec('0xad')](_0x1f1062[_0x17ec('0x2d')]),_0x229ba9=_0x3e3602[_0x17ec('0x116')](_0x1f1062[_0x17ec('0x1e')]);break;case'split':_0x3e3602=_0x28710f[_0x17ec('0x3')][_0x17ec('0xad')](_0x1f1062[_0x17ec('0x57')]),_0x229ba9=_0x28710f[_0x17ec('0x3')]['createPositionAt'](_0x1f1062[_0x17ec('0x93')]);break;case'move':_0x3e3602=_0x28710f['model'][_0x17ec('0xad')](_0x1f1062[_0x17ec('0xa5')]),_0x229ba9=_0x3e3602[_0x17ec('0x116')](_0x1f1062[_0x17ec('0x1e')]);break;default:return;}const _0x5d36f7=_0x28710f[_0x17ec('0x3')][_0x17ec('0xd8')](_0x3e3602,_0x229ba9);_0x28710f[_0x17ec('0x3')][_0x17ec('0x13d')](()=>{for(const {suggestion:_0x1978cf,meta:_0x3d9f9b}of this[_0x17ec('0x58')](_0x5d36f7)){if(_0x1978cf[_0x17ec('0xd')])continue;if(_0x17ec('0x91')==_0x1978cf[_0x17ec('0x119')])continue;const _0x38280b=_0x1978cf[_0x17ec('0xd9')]&&_0x1978cf['data']['multipleBlocks'];(_0x17ec('0x34')!=_0x1978cf[_0x17ec('0x119')]||_0x17ec('0xc1')==_0x1f1062['type']&&!_0x38280b)&&(_0x3d9f9b[_0x17ec('0x46')]||_0x17ec('0x2e')==_0x1978cf[_0x17ec('0x119')]&&_0x3d9f9b[_0x17ec('0xca')]||_0x1978cf[_0x17ec('0x96')]()[_0x17ec('0x23')](_0x5d36f7)&&this[_0x17ec('0xee')](_0x1978cf,_0x3e3602,_0x229ba9));}});},{'priority':_0x17ec('0x87')}),_0x28710f[_0x17ec('0x3')]['on']('deleteContent',(_0x34e060,_0xa88f24)=>{const _0xe1c912=_0xa88f24[0x0],_0x34737c=_0xa88f24[0x1];if(_0x34737c&&_0x34737c[_0x17ec('0x13a')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x17ec('0xff')][_0x17ec('0xfb')])return;if(_0xe1c912[_0x17ec('0x65')])return;const _0x5b2abc=_0x28710f['model'][_0x17ec('0x7')],{start:_0x1d8aa4,end:_0x120049}=_0xe1c912['getFirstRange'](),_0x356e5f=_0x1d8aa4[_0x17ec('0x12d')]&&_0x5b2abc[_0x17ec('0x8b')](_0x1d8aa4[_0x17ec('0x12d')])?null:_0x5b2abc[_0x17ec('0x73')](_0x1d8aa4,'forward'),_0x2bed12=_0x120049[_0x17ec('0xde')]&&_0x5b2abc['isLimit'](_0x120049[_0x17ec('0xde')])?null:_0x5b2abc[_0x17ec('0x73')](_0x120049,'backward'),_0x5c0fdc=_0x28710f[_0x17ec('0x3')][_0x17ec('0xd8')](_0x356e5f?_0x356e5f[_0x17ec('0xab')]:_0x1d8aa4,_0x2bed12?_0x2bed12[_0x17ec('0xe0')]:_0x120049);_0x28710f[_0x17ec('0x3')][_0x17ec('0x13d')](_0xe31352=>{this['markDeletion'](_0x5c0fdc);const _0x4f374f=_0x28710f[_0x17ec('0x3')][_0x17ec('0x7')][_0x17ec('0x73')](_0x5c0fdc[_0x17ec('0xab')]);_0xe1c912['is']('documentSelection')?_0xe31352[_0x17ec('0x3d')](_0x4f374f):_0xe1c912[_0x17ec('0x128')](_0x4f374f);}),_0x34e060[_0x17ec('0x10c')]();},{'priority':_0x2f4fde[_0x17ec('0xf0')]+0xa}),_0x28710f[_0x17ec('0x3')]['on'](_0x17ec('0x7d'),(_0x3c2cdc,_0x47222a)=>{const _0x5539bb=_0x47222a[_0x47222a['length']-0x1];_0x5539bb&&_0x5539bb['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this[_0x17ec('0xff')]['value']&&(_0x28710f[_0x17ec('0x3')][_0x17ec('0x13d')](()=>{let _0x169026=_0x28710f[_0x17ec('0x3')][_0x17ec('0x7d')](_0x47222a[0x0],_0x47222a[0x1],_0x47222a[0x2],{'forceDefaultExecution':!0x0});if(!_0x169026)return;_0x3c2cdc[_0x17ec('0x2f')]=_0x169026[_0x17ec('0x5f')]();const _0x45a867=_0x169026[_0x17ec('0xe0')][_0x17ec('0xde')],_0x2fac78=_0x28710f['model']['schema'];_0x45a867&&_0x2fac78[_0x17ec('0x61')](_0x45a867)&&!_0x2fac78[_0x17ec('0x67')](_0x45a867)&&(_0x169026=_0x28710f[_0x17ec('0x3')][_0x17ec('0xd8')](_0x169026['start'],_0x28710f[_0x17ec('0x3')][_0x17ec('0xad')](_0x45a867,_0x17ec('0xe0')))),this[_0x17ec('0x112')](_0x169026);}),_0x3c2cdc[_0x17ec('0x10c')]());},{'priority':_0x17ec('0xd6')}),this['editor'][_0x17ec('0x117')][_0x17ec('0x109')]('trackChanges',this[_0x17ec('0xff')]),this['enableCommand'](_0x17ec('0x64'));const _0x1bd62a=new _0x453538(_0x28710f,this[_0x17ec('0xc4')]);_0x28710f[_0x17ec('0x117')]['add'](_0x17ec('0x13b'),_0x1bd62a),this['enableCommand'](_0x17ec('0x13b'));const _0x24381a=new _0x3bd816(_0x28710f,this[_0x17ec('0xc4')]);_0x28710f[_0x17ec('0x117')][_0x17ec('0x109')](_0x17ec('0x51'),_0x24381a),this[_0x17ec('0x7b')](_0x17ec('0x51')),_0x28710f[_0x17ec('0x117')][_0x17ec('0x109')](_0x17ec('0x9f'),new _0x573948(_0x28710f,_0x1bd62a,this['_suggestions'])),this[_0x17ec('0x7b')]('acceptAllSuggestions'),_0x28710f['commands'][_0x17ec('0x109')](_0x17ec('0xbc'),new _0x573948(_0x28710f,_0x24381a,this[_0x17ec('0xc4')])),this['enableCommand'](_0x17ec('0xbc')),_0x28710f['commands'][_0x17ec('0x109')]('acceptSelectedSuggestions',new _0x5cc8f8(_0x28710f,_0x1bd62a,this[_0x17ec('0xc4')])),this['enableCommand'](_0x17ec('0x35')),_0x28710f[_0x17ec('0x117')][_0x17ec('0x109')](_0x17ec('0xac'),new _0x5cc8f8(_0x28710f,_0x24381a,this[_0x17ec('0xc4')])),this['enableCommand'](_0x17ec('0xac'));const _0x508877=_0x28710f['plugins']['get'](_0x17ec('0x88'));this['listenTo'](_0x508877,_0x17ec('0xaf'),(_0x5c96f1,{threadId:_0x1b1e9b})=>{const _0x1fe0f2=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x1b1e9b);_0x1fe0f2&&_0x1fe0f2['commentThread']&&0x1===_0x1fe0f2[_0x17ec('0x97')][_0x17ec('0x33')]&&this[_0x17ec('0x104')](_0x1b1e9b,{'hasComments':!0x0});},{'priority':_0x17ec('0xe6')}),this[_0x17ec('0x8c')](_0x508877,_0x17ec('0x6b'),(_0x1b8bcf,{threadId:_0x1fa24b})=>{const _0x17b049=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x1fa24b);_0x17b049&&_0x17b049['commentThread']&&!_0x17b049[_0x17ec('0x97')][_0x17ec('0x33')]&&this[_0x17ec('0x104')](_0x1fa24b,{'hasComments':!0x1});},{'priority':_0x17ec('0xe6')});}set[_0x17ec('0x6')](_0x1ae810){if(this['_adapter'])throw new _0x2a3dc7(_0x17ec('0xb1'),this);this[_0x17ec('0x133')]=_0x1ae810;}get['adapter'](){return this[_0x17ec('0x133')];}['getSuggestions']({skipNotAttached:_0x10555c=!0x1,toJSON:_0x7aafa2=!0x1}={}){const _0x4ceaf1=[];for(const _0x154b95 of this[_0x17ec('0xc4')][_0x17ec('0xeb')]())_0x10555c&&!_0x154b95[_0x17ec('0x5a')]||_0x4ceaf1['push'](_0x154b95);return _0x7aafa2?_0x4ceaf1[_0x17ec('0x10')](_0x372e7c=>_0x372e7c[_0x17ec('0x22')]()):_0x4ceaf1;}['getSuggestion'](_0x1be364){const _0xd94140=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x1be364);if(!_0xd94140)throw new _0x2a3dc7('track-changes-suggestion-not-found',this);return _0xd94140;}[_0x17ec('0x136')](_0x519120){return this[_0x17ec('0xc4')][_0x17ec('0x126')](_0x519120);}[_0x17ec('0xe1')](_0x3eb1bf){const {authorId:_0x2ff1c6,id:_0x1edb45,attributes:_0x16abc0}=_0x3eb1bf,[_0x4142ad,_0x3bd492]=_0x3eb1bf[_0x17ec('0x119')][_0x17ec('0xc1')](':'),_0x3a8784=this[_0x17ec('0xc4')]['get'](_0x1edb45)||this['_createSuggestion'](_0x4142ad,_0x3bd492,_0x1edb45,_0x2ff1c6,_0x16abc0);if(this[_0x17ec('0x60')](_0x3a8784),this[_0x17ec('0x10a')](_0x3a8784,_0x4142ad,_0x3bd492||null,_0x2ff1c6),_0x3a8784[_0x17ec('0x49')]=_0x3eb1bf[_0x17ec('0x49')],_0x3a8784[_0x17ec('0x70')]=!0x0,_0x16abc0&&_0x16abc0[_0x17ec('0x40')]){const _0x57915b=_0x16abc0[_0x17ec('0x40')],_0x31eafb=this[_0x17ec('0x2b')](_0x57915b[_0x17ec('0x105')]);_0x3a8784[_0x17ec('0xdc')]=_0x57915b['createdAt'],_0x3a8784[_0x17ec('0x10e')]=_0x31eafb,_0x3a8784[_0x17ec('0x3a')]=!0x0;}else _0x3a8784[_0x17ec('0xdc')]=_0x3eb1bf['createdAt'];switch(_0x3eb1bf[_0x17ec('0xd9')]&&(_0x3a8784['data']=_0x3eb1bf[_0x17ec('0xd9')]),_0x3eb1bf[_0x17ec('0x5d')]&&(_0x3a8784['attributes']=_0x3eb1bf[_0x17ec('0x5d')]),this['_adapter']&&this[_0x17ec('0x133')][_0x17ec('0x28')]||(_0x3a8784['_saved']=!0x0),this[_0x17ec('0xcc')][_0x17ec('0xf7')](_0x3a8784)){case'notReady':this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x3a8784,_0x17ec('0xa7'));break;case _0x17ec('0x4b'):_0x3a8784[_0x17ec('0x5a')]?(this['_refreshSuggestionsChain'](new Set([_0x3a8784])),this[_0x17ec('0xd3')](new Set([_0x3a8784])),this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x3a8784,_0x17ec('0x69')),this[_0x17ec('0x3c')]('suggestionLoaded',_0x3a8784)):this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x3a8784,_0x17ec('0x74'));}return _0x3a8784;}['acceptSuggestion'](_0x32f343){this[_0x17ec('0x13a')](()=>{this[_0x17ec('0xb3')][_0x17ec('0x3')][_0x17ec('0x13d')](()=>{for(const _0xce8528 of _0x32f343[_0x17ec('0x37')]())_0xce8528[_0x17ec('0x18')]();});});}[_0x17ec('0x51')](_0x1dadd2){this['forceDefaultExecution'](()=>{this[_0x17ec('0xb3')][_0x17ec('0x3')][_0x17ec('0x13d')](()=>{for(const _0x171e7f of _0x1dadd2[_0x17ec('0x37')]())_0x171e7f[_0x17ec('0x47')]();});});}['enableCommand'](_0x215242,_0x220756){const _0x5b86e4=this['editor'][_0x17ec('0x117')][_0x17ec('0xf7')](_0x215242);if(!_0x5b86e4)throw new _0x2a3dc7(_0x17ec('0xa3'),this,{'commandName':_0x215242});this[_0x17ec('0x30')][_0x17ec('0x109')](_0x5b86e4),_0x220756&&_0x5b86e4['on'](_0x17ec('0x20'),(_0x112ecb,_0x1bca2b)=>{this[_0x17ec('0xff')][_0x17ec('0xfb')]&&(this[_0x17ec('0x15')]||_0x1bca2b[_0x17ec('0x33')]>0x0&&_0x1bca2b[_0x1bca2b[_0x17ec('0x33')]-0x1]&&_0x1bca2b[_0x1bca2b[_0x17ec('0x33')]-0x1]['forceDefaultExecution']||(_0x112ecb[_0x17ec('0x2f')]=_0x220756((..._0x132b63)=>_0x5b86e4[_0x17ec('0x20')](..._0x132b63,{'forceDefaultExecution':!0x0}),..._0x1bca2b),_0x112ecb[_0x17ec('0x10c')]()));},{'priority':_0x17ec('0xd6')});}[_0x17ec('0x13a')](_0x214596){let _0xf4c19f,_0x492021;const _0x14a297=this[_0x17ec('0x15')];this[_0x17ec('0x15')]=!0x0;try{_0xf4c19f=_0x214596();}catch(_0x553aac){_0x492021=_0x553aac;}return _0x14a297||(this[_0x17ec('0x15')]=!0x1),_0x492021&&_0x2a3dc7[_0x17ec('0x11e')](_0x492021,this),_0xf4c19f;}['markInsertion'](_0x54409f,_0x2e0c24=null,_0x4c6ea8={}){if(_0x54409f[_0x17ec('0x65')])return null;const _0x2afd94=this[_0x17ec('0xb3')][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48'))['me'];for(const {suggestion:_0x5ee505,meta:_0xe9197}of this[_0x17ec('0x58')](_0x54409f,_0x17ec('0x2e')))if(_0xe9197[_0x17ec('0xca')]){if(!_0xe9197[_0x17ec('0xea')]){if(_0xe9197[_0x17ec('0x46')]){if(!this[_0x17ec('0x80')]||!Ot(_0x5ee505,_0x4c6ea8))continue;return _0x5ee505;}if(Ot(_0x5ee505,_0x4c6ea8))return _0x5ee505;this[_0x17ec('0xee')](_0x5ee505,_0x54409f[_0x17ec('0xab')],_0x54409f[_0x17ec('0xe0')]);break;}if(_0x2e0c24==_0x5ee505['subType']&&Ot(_0x5ee505,_0x4c6ea8)){const _0x36aaf7=_0x5ee505[_0x17ec('0x96')]();return _0x36aaf7[_0x17ec('0xab')][_0x17ec('0x6d')](_0x54409f[_0x17ec('0xe0')])?this[_0x17ec('0x76')](_0x5ee505,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x54409f[_0x17ec('0xab')],_0x36aaf7[_0x17ec('0xe0')])):this[_0x17ec('0x76')](_0x5ee505,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x36aaf7[_0x17ec('0xab')],_0x54409f[_0x17ec('0xe0')])),_0x5ee505;}}const _0x3a8cff=_0x30e77c(),_0x299da7=_0x2afd94['id'],_0x26376e=_0x2e0c24?_0x17ec('0xe')+_0x2e0c24:_0x17ec('0x2e'),_0x1828c1=this[_0x17ec('0x113')]({'id':_0x3a8cff,'type':_0x26376e,'createdAt':new Date(),'authorId':_0x299da7,'attributes':_0x4c6ea8});return this['_addSuggestionMarker'](_0x26376e,_0x3a8cff,_0x299da7,_0x54409f),_0x1828c1;}[_0x17ec('0x3f')](_0x1f730d,_0x242760=_0x17ec('0x7e'),_0x15f8c7={}){const _0x576db2=this['editor'][_0x17ec('0x134')]['get'](_0x17ec('0x48'))['me'],_0x116e1c=this[_0x17ec('0x5')]['getSuggestionCallback']('insertion',_0x242760,_0x17ec('0x8f'));for(const _0x233bca of this[_0x17ec('0x8e')]())if(_0x233bca[_0x17ec('0x10e')]['id']==_0x576db2['id']&&_0x17ec('0x2e')==_0x233bca[_0x17ec('0x119')]&&_0x233bca[_0x17ec('0x111')]==_0x242760&&Ot(_0x233bca,_0x15f8c7)&&(_0x116e1c(_0x233bca[_0x17ec('0x8a')](),_0x1f730d)||_0x116e1c(_0x1f730d,_0x233bca[_0x17ec('0x8a')]()))){for(const _0x49ecc8 of _0x1f730d)_0x233bca[_0x17ec('0x143')](_0x49ecc8);return _0x233bca;}for(const {suggestion:_0x188b22,meta:_0x44c860}of this['_findSuggestions'](_0x1f730d,_0x17ec('0x2e'))){if(!_0x44c860[_0x17ec('0xca')])continue;if(!this[_0x17ec('0x80')]&&_0x44c860[_0x17ec('0x46')])continue;if(!Ot(_0x188b22,_0x15f8c7))continue;let _0x277179=!0x0;for(const _0x2bb8f2 of _0x188b22[_0x17ec('0x8a')]())for(const _0x3c3230 of _0x1f730d)if(!_0x2bb8f2[_0x17ec('0x23')](_0x3c3230)){_0x277179=!0x1;break;}if(_0x277179)return _0x188b22;}const _0x155599=_0x30e77c(),_0x1ea045=_0x576db2['id'],_0x49b003=_0x17ec('0xe')+_0x242760,_0x45647d=this[_0x17ec('0x113')]({'id':_0x155599,'type':_0x49b003,'createdAt':new Date(),'authorId':_0x1ea045,'attributes':_0x15f8c7});for(const _0x5546b5 of _0x1f730d)this['_addSuggestionMarker'](_0x49b003,_0x155599,_0x1ea045,_0x5546b5,_0x3509b3[_0x17ec('0xda')]());return _0x45647d;}[_0x17ec('0x82')](_0x5c983a,_0x4bf390,_0x213e8e=null,_0x92910b={}){if(_0x213e8e=_0x213e8e||Nt(_0x4bf390),_0x5c983a['isCollapsed'])return null;if(_0x17ec('0x129')===this[_0x17ec('0x7f')]){const _0x1e7d90=this[_0x17ec('0x5')]['getSuggestionCallback']('formatInline',_0x213e8e,'accept');return this[_0x17ec('0x13a')](()=>_0x1e7d90([_0x5c983a],_0x4bf390,_0x92910b)),null;}const _0x427ee6=this[_0x17ec('0xb3')][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48'))['me'],_0x2d779f=[];if('always'!==this[_0x17ec('0x7f')])for(const {suggestion:_0x4ceb35,meta:_0x41269c}of this[_0x17ec('0x58')](_0x5c983a,_0x17ec('0x2e')))_0x41269c[_0x17ec('0xca')]&&!_0x41269c[_0x17ec('0xb2')]&&_0x2d779f[_0x17ec('0xb6')](..._0x4ceb35[_0x17ec('0x8a')]());const _0x58fdf5=function(_0x4fa149,_0x4ded9c){const _0x6ff0d7=[];for(const _0x1b5648 of _0x4ded9c){const _0xb4bc49=_0x4fa149[_0x17ec('0x12f')](_0x1b5648);_0xb4bc49&&_0x6ff0d7['push'](_0xb4bc49);}return _0x6ff0d7;}(_0x5c983a,_0x2d779f),_0x254959=function(_0x4b1968,_0x3ec9bd){const _0x51a0af=[_0x4b1968];for(const _0x5ec39a of _0x3ec9bd){let _0x47e79c=0x0;for(;_0x47e79c<_0x51a0af[_0x17ec('0x33')];){const _0x268e1b=_0x51a0af[_0x47e79c][_0x17ec('0x16')](_0x5ec39a);_0x51a0af[_0x17ec('0xf9')](_0x47e79c,0x1,..._0x268e1b),_0x47e79c+=_0x268e1b['length'];}}return _0x51a0af;}(_0x5c983a,_0x2d779f);_0x58fdf5['length']&&this[_0x17ec('0x99')][_0x17ec('0x13d')](()=>{for(const _0x4c044b of _0x58fdf5){const _0x1f29fc=this['_suggestionFactory'][_0x17ec('0xb5')](_0x17ec('0x91'),_0x213e8e,_0x17ec('0x18'));this[_0x17ec('0x13a')](()=>_0x1f29fc([_0x4c044b],_0x4bf390,_0x92910b));}});for(const _0x65d3f0 of _0x254959){let _0x450192=null,_0x4abd14=_0x65d3f0[_0x17ec('0xab')],_0x37716b=_0x65d3f0['end'];for(const {suggestion:_0x26033f,meta:_0x4117d9}of this[_0x17ec('0x58')](_0x65d3f0,'formatInline')){if(!_0x4117d9[_0x17ec('0xca')])continue;if(_0x26033f[_0x17ec('0x111')]!=_0x213e8e)continue;if(!Ot(_0x26033f,_0x92910b))continue;const _0x17f5a7=_0x26033f[_0x17ec('0x96')]();if(_0x17f5a7['containsRange'](_0x65d3f0,!0x0))return null;_0x4abd14=_0x4abd14[_0x17ec('0xdd')](_0x17f5a7['start'])?_0x4abd14:_0x17f5a7[_0x17ec('0xab')],_0x37716b=_0x37716b[_0x17ec('0x9b')](_0x17f5a7[_0x17ec('0xe0')])?_0x37716b:_0x17f5a7[_0x17ec('0xe0')],_0x450192?_0x17f5a7[_0x17ec('0xab')][_0x17ec('0xdd')](_0x450192[_0x17ec('0x96')]()[_0x17ec('0xab')])?(_0x450192[_0x17ec('0x12e')](),_0x450192=_0x26033f):_0x26033f[_0x17ec('0x12e')]():_0x450192=_0x26033f;}const _0x3bcb53=this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x4abd14,_0x37716b);if(_0x450192)this[_0x17ec('0x76')](_0x450192,_0x3bcb53);else{const _0x14b7cb=_0x30e77c(),_0x275aaf=_0x427ee6['id'];this[_0x17ec('0x113')]({'id':_0x14b7cb,'type':'formatInline:'+_0x213e8e,'data':_0x4bf390,'createdAt':new Date(),'authorId':_0x275aaf,'attributes':_0x92910b}),this[_0x17ec('0x12')](_0x17ec('0xe2')+_0x213e8e,_0x14b7cb,_0x275aaf,_0x3bcb53);}}return null;}[_0x17ec('0x118')](_0x456aba,_0x5916e1,_0x50c5ec=[],_0x336319=null,_0x3b6f6f={}){_0x5916e1[_0x17ec('0xa2')]||(_0x5916e1[_0x17ec('0xa2')]=_0x5916e1['commandName']),_0x5916e1[_0x17ec('0x1b')]=_0x456aba['is'](_0x17ec('0x25')),_0x336319=_0x336319||Nt(_0x5916e1);const _0x445389=_0x50c5ec[_0x17ec('0x10')](_0x316d07=>jt(_0x316d07,this[_0x17ec('0x99')])),_0x205dae=_0x456aba['is'](_0x17ec('0x25'))?_0x456aba:jt(_0x456aba,this[_0x17ec('0x99')]);if('never'===this[_0x17ec('0x7f')]){const _0x3188b0=this['_suggestionFactory'][_0x17ec('0xb5')](_0x17ec('0x34'),_0x336319,_0x17ec('0x18'));return this[_0x17ec('0x13a')](()=>_0x3188b0([_0x205dae],_0x5916e1,_0x3b6f6f)),null;}_0x445389[_0x17ec('0xb6')](_0x205dae);let _0xb5eca=!0x0;for(const _0x525373 of _0x445389)if(!this[_0x17ec('0x36')](_0x525373)){_0xb5eca=!0x1;break;}if(_0xb5eca&&_0x17ec('0x120')!==this[_0x17ec('0x7f')]){const _0x1cc2ca=this[_0x17ec('0x5')][_0x17ec('0xb5')](_0x17ec('0x34'),_0x336319,_0x17ec('0x18'));return this[_0x17ec('0x13a')](()=>_0x1cc2ca([_0x205dae],_0x5916e1,_0x3b6f6f)),null;}let _0x505945=null,_0x52456e=_0x205dae[_0x17ec('0xab')],_0xf5d5a4=_0x205dae[_0x17ec('0xe0')];for(const {suggestion:_0x2b6416,meta:_0x3d06c5}of this[_0x17ec('0x58')](_0x205dae,_0x17ec('0x34'))){if(!_0x3d06c5[_0x17ec('0xca')])continue;if(_0x3d06c5[_0x17ec('0xea')]||_0x3d06c5[_0x17ec('0x46')]||_0x3d06c5[_0x17ec('0xb2')])continue;if(_0x2b6416[_0x17ec('0xd9')]['formatGroupId']!=_0x5916e1[_0x17ec('0xa2')])continue;if(!Ot(_0x2b6416,_0x3b6f6f))continue;const _0x446b86=_0x2b6416[_0x17ec('0x96')]();if(_0x2b6416[_0x17ec('0x111')]==_0x336319){if(_0x446b86['containsRange'](_0x205dae,!0x0))return null;_0x52456e=_0x52456e['isBefore'](_0x446b86['start'])?_0x52456e:_0x446b86[_0x17ec('0xab')],_0xf5d5a4=_0xf5d5a4['isAfter'](_0x446b86[_0x17ec('0xe0')])?_0xf5d5a4:_0x446b86[_0x17ec('0xe0')],_0x505945?_0x446b86['start']['isBefore'](_0x505945[_0x17ec('0x96')]()['start'])?(_0x505945['removeMarkers'](),_0x505945=_0x2b6416):_0x2b6416[_0x17ec('0x12e')]():_0x505945=_0x2b6416;}else{const _0x15a9ae=_0x205dae[_0x17ec('0x12f')](_0x446b86);this[_0x17ec('0x4')](_0x2b6416,_0x15a9ae);}}const _0x31001d=this['editor']['plugins'][_0x17ec('0xf7')](_0x17ec('0x48'))['me'],_0x3e4284=_0x30e77c(),_0x10059a=_0x31001d['id'];if(_0x505945)return this[_0x17ec('0x76')](_0x505945,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x52456e,_0xf5d5a4)),_0x505945;{const _0x2a7871=this[_0x17ec('0x113')]({'id':_0x3e4284,'type':_0x17ec('0xf3')+_0x336319,'data':_0x5916e1,'createdAt':new Date(),'authorId':_0x10059a,'attributes':_0x3b6f6f});return this['_addSuggestionMarker'](_0x17ec('0xf3')+_0x336319,_0x3e4284,_0x10059a,this['_model'][_0x17ec('0xd8')](_0x52456e,_0xf5d5a4)),_0x2a7871;}}[_0x17ec('0x56')](_0x39259b,_0x3d7ab8,_0x374245=[],_0x5c13a3=null,_0xd8b187={}){_0x3d7ab8['formatGroupId']||(_0x3d7ab8[_0x17ec('0xa2')]=_0x3d7ab8[_0x17ec('0x11c')]);const _0x10cf75=_0x39259b[0x0];_0x3d7ab8['multipleBlocks']=_0x10cf75['is']('range'),_0x5c13a3=_0x5c13a3||Nt(_0x3d7ab8);const _0x3ea5d2=_0x374245['map'](_0x12cf35=>jt(_0x12cf35,this[_0x17ec('0x99')])),_0x255335=_0x10cf75['is']('range')?_0x39259b:_0x39259b['map'](_0x5667b3=>jt(_0x5667b3,this[_0x17ec('0x99')]));if('never'===this[_0x17ec('0x7f')]){const _0x5e6d9f=this[_0x17ec('0x5')]['getSuggestionCallback'](_0x17ec('0x34'),_0x5c13a3,'accept');return this[_0x17ec('0x13a')](()=>_0x5e6d9f(_0x255335,_0x3d7ab8,_0xd8b187)),null;}_0x3ea5d2[_0x17ec('0xb6')](..._0x255335);let _0x135631=!0x0;for(const _0x308d01 of _0x3ea5d2)if(!this[_0x17ec('0x36')](_0x308d01)){_0x135631=!0x1;break;}if(_0x135631&&_0x17ec('0x120')!==this[_0x17ec('0x7f')]){const _0x69f6ad=this['_suggestionFactory'][_0x17ec('0xb5')]('formatBlock',_0x5c13a3,_0x17ec('0x18'));return this[_0x17ec('0x13a')](()=>_0x69f6ad(_0x255335,_0x3d7ab8,_0xd8b187)),null;}const _0x227cc0=this[_0x17ec('0xb3')][_0x17ec('0x134')]['get']('Users')['me'];for(const _0x5d1cee of this[_0x17ec('0x8e')]()){if(_0x5d1cee[_0x17ec('0x10e')]['id']!=_0x227cc0['id'])continue;if('formatBlock'!=_0x5d1cee[_0x17ec('0x119')]||_0x5d1cee[_0x17ec('0xd9')][_0x17ec('0xa2')]!=_0x3d7ab8[_0x17ec('0xa2')])continue;if(!Ot(_0x5d1cee,_0xd8b187))continue;const _0x4290fc=_0x5d1cee[_0x17ec('0x111')]==_0x5c13a3;for(let _0xa5074b=0x0;_0xa5074b<_0x255335[_0x17ec('0x33')];_0xa5074b++){const _0x528794=_0x255335[_0xa5074b];for(const _0x569fc3 of _0x5d1cee['getMarkers']()){const _0x582053=_0x569fc3[_0x17ec('0x11f')]();if(_0x528794[_0x17ec('0x6d')](_0x582053)){_0x4290fc?(_0x255335['splice'](_0xa5074b,0x1),_0xa5074b--):_0x5d1cee[_0x17ec('0x89')](_0x569fc3[_0x17ec('0xb7')]);break;}}}}if(0x0==_0x255335[_0x17ec('0x33')])return null;const _0x52da2f=this[_0x17ec('0x5')][_0x17ec('0xb5')]('formatBlock',_0x5c13a3,_0x17ec('0x8f'));for(const _0x5d4c53 of this[_0x17ec('0x8e')]())if(_0x5d4c53[_0x17ec('0x10e')]['id']==_0x227cc0['id']&&_0x17ec('0x34')==_0x5d4c53[_0x17ec('0x119')]&&_0x5d4c53[_0x17ec('0xd9')]['formatGroupId']==_0x3d7ab8[_0x17ec('0xa2')]&&_0x5d4c53['subType']==_0x5c13a3&&Ot(_0x5d4c53,_0xd8b187)&&(_0x52da2f(_0x5d4c53[_0x17ec('0x8a')](),_0x255335)||_0x52da2f(_0x255335,_0x5d4c53[_0x17ec('0x8a')]()))){for(const _0x438387 of _0x255335)_0x5d4c53[_0x17ec('0x143')](_0x438387);return _0x5d4c53;}const _0x52fb60=_0x30e77c(),_0xccd633=_0x227cc0['id'],_0x45fb99='formatBlock:'+_0x5c13a3,_0x5e8840=this[_0x17ec('0x113')]({'id':_0x52fb60,'type':_0x45fb99,'data':_0x3d7ab8,'createdAt':new Date(),'authorId':_0xccd633,'attributes':_0xd8b187});for(const _0x3cf89f of _0x255335)this[_0x17ec('0x12')](_0x45fb99,_0x52fb60,_0xccd633,_0x3cf89f,_0x3509b3['getMultiRangeId']());return _0x5e8840;}[_0x17ec('0x13f')](_0x10e15f,_0x2752f8=null,_0x113030={}){if(_0x10e15f[_0x17ec('0x65')])return null;const _0x13e8b5=this[_0x17ec('0xb3')][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48'))['me'],_0x316333=new _0x5b7c0c(_0x10e15f['start'],_0x10e15f[_0x17ec('0xe0')]);for(const {suggestion:_0x443c6b,meta:_0x3a26f6}of this[_0x17ec('0x58')](_0x316333,_0x17ec('0x2e')))if(_0x3a26f6[_0x17ec('0xca')]&&!_0x3a26f6[_0x17ec('0xea')]){if(_0x443c6b['isMultiRange']){const _0x4680b3=_0x443c6b[_0x17ec('0x8a')]()[_0x17ec('0xdb')](_0x55eb76=>_0x17ec('0x72')!=_0x55eb76['root'][_0x17ec('0x39')]);_0x4680b3[_0x17ec('0x59')](_0x195043=>_0x316333[_0x17ec('0x23')](_0x195043,!0x0))&&_0x443c6b[_0x17ec('0x47')]();if(_0x4680b3[_0x17ec('0x3b')](_0x1ff31b=>_0x1ff31b[_0x17ec('0x23')](_0x316333,!0x0))){const _0x1fca0f=this[_0x17ec('0x5')][_0x17ec('0xb5')]('deletion',_0x2752f8,'accept');return this[_0x17ec('0x13a')](()=>_0x1fca0f([_0x316333],null,_0x113030)),null;}}else{const _0x1fc6f7=_0x316333['getIntersection'](_0x443c6b[_0x17ec('0x96')]());null!==_0x1fc6f7&&_0x443c6b[_0x17ec('0x6a')]([_0x1fc6f7],null,_0x113030);}}if(_0x316333['detach'](),_0x316333[_0x17ec('0x65')]||_0x17ec('0x72')==_0x316333[_0x17ec('0x52')][_0x17ec('0x39')])return null;let _0x5787a1=null,_0x2369b8=_0x316333[_0x17ec('0xab')],_0x4dfbc0=_0x316333[_0x17ec('0xe0')];const _0x5ad5b5=this[_0x17ec('0x58')](_0x316333,_0x17ec('0x127'));for(const {suggestion:_0x19672e,meta:_0x1f312e}of _0x5ad5b5){const _0x4e5591=this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x2369b8,_0x4dfbc0);if(_0x1f312e[_0x17ec('0xca')]&&(this[_0x17ec('0x80')]||!_0x1f312e[_0x17ec('0x46')]&&!_0x1f312e[_0x17ec('0xb2')])){if(_0x19672e['isMultiRange']){if(!Ot(_0x19672e,_0x113030))continue;let _0x1ed4da=!0x0;for(const _0x530342 of _0x19672e[_0x17ec('0x8a')]()){if(_0x530342[_0x17ec('0x23')](_0x4e5591,!0x0))return _0x19672e;_0x4e5591[_0x17ec('0x23')](_0x530342)||(_0x1ed4da=!0x1);}_0x1ed4da&&_0x19672e['discard']();}else{const _0x4637ca=_0x19672e[_0x17ec('0x96')]();if(_0x4637ca[_0x17ec('0x23')](_0x4e5591,!0x0))return _0x19672e;if(!Ot(_0x19672e,_0x113030)){_0x4e5591['containsRange'](_0x4637ca)?_0x19672e['removeMarkers']():_0x4637ca[_0x17ec('0x29')](_0x2369b8)?_0x2369b8=_0x4637ca['end']:_0x4637ca['containsPosition'](_0x4dfbc0)&&(_0x4dfbc0=_0x4637ca[_0x17ec('0xab')]);continue;}_0x2369b8=_0x2369b8['isBefore'](_0x4637ca[_0x17ec('0xab')])?_0x2369b8:_0x4637ca[_0x17ec('0xab')],_0x4dfbc0=_0x4dfbc0[_0x17ec('0x9b')](_0x4637ca[_0x17ec('0xe0')])?_0x4dfbc0:_0x4637ca[_0x17ec('0xe0')],_0x113030=Object[_0x17ec('0x146')]({},_0x19672e[_0x17ec('0x5d')]),_0x5787a1?_0x4637ca['start'][_0x17ec('0xdd')](_0x5787a1[_0x17ec('0x96')]()['start'])?(_0x5787a1[_0x17ec('0x12e')](),_0x5787a1=_0x19672e):_0x19672e[_0x17ec('0x12e')]():_0x5787a1=_0x19672e;}}}if(_0x5787a1)return this[_0x17ec('0x76')](_0x5787a1,this['_model'][_0x17ec('0xd8')](_0x2369b8,_0x4dfbc0)),_0x5787a1;{const _0x32b594=_0x30e77c(),_0x31fe30=this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x2369b8,_0x4dfbc0),_0x55dc8e=_0x13e8b5['id'],_0x533569=_0x2752f8?_0x17ec('0xdf')+_0x2752f8:_0x17ec('0x127'),_0x2edc77=this[_0x17ec('0x113')]({'id':_0x32b594,'type':_0x533569,'createdAt':new Date(),'authorId':_0x55dc8e,'attributes':_0x113030});return this[_0x17ec('0x12')](_0x533569,_0x32b594,_0x55dc8e,_0x31fe30),_0x2edc77;}}[_0x17ec('0xcf')](_0x5c0361,_0x2d32f8=_0x17ec('0x7e'),_0x503464={}){const _0x6a1b77=this[_0x17ec('0xb3')][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48'))['me'],_0x4eecc1=_0x5c0361[_0x17ec('0x10')](_0x2f2bdc=>new _0x5b7c0c(_0x2f2bdc['start'],_0x2f2bdc[_0x17ec('0xe0')])),_0x116ff4=new Set();for(const {suggestion:_0x66f2db,meta:_0x18c74c}of this[_0x17ec('0x58')](_0x4eecc1,'insertion'))_0x18c74c[_0x17ec('0xca')]&&!_0x18c74c[_0x17ec('0xea')]&&_0x116ff4[_0x17ec('0x109')](_0x66f2db);for(const _0x377d78 of _0x116ff4)if(_0x377d78[_0x17ec('0xd')]){const _0x2298ad=_0x377d78[_0x17ec('0x8a')]();(!_0x377d78['attributes']||!_0x377d78[_0x17ec('0x5d')][_0x17ec('0xb8')])&&(_0x2298ad['every'](_0x3c799e=>_0x4eecc1[_0x17ec('0x3b')](_0x3dac4f=>_0x3dac4f[_0x17ec('0x23')](_0x3c799e,!0x0)))&&_0x377d78[_0x17ec('0x47')]());if(_0x4eecc1[_0x17ec('0x59')](_0x7f6ad1=>_0x2298ad[_0x17ec('0x3b')](_0x55dcdd=>_0x55dcdd[_0x17ec('0x23')](_0x7f6ad1,!0x0)))){const _0x1c55b4=this[_0x17ec('0x5')][_0x17ec('0xb5')]('deletion',_0x2d32f8,_0x17ec('0x18'));return this[_0x17ec('0x13a')](()=>_0x1c55b4(_0x5c0361,null,_0x503464)),null;}}else{const _0x2c8490=_0x377d78['getFirstRange']();_0x4eecc1[_0x17ec('0x3b')](_0x3d8146=>_0x3d8146[_0x17ec('0x23')](_0x2c8490,!0x0))&&_0x377d78[_0x17ec('0x47')]();if(_0x4eecc1['every'](_0x541a8a=>_0x2c8490['containsRange'](_0x541a8a,!0x0))){const _0x6f4ea5=this['_suggestionFactory'][_0x17ec('0xb5')](_0x17ec('0x127'),_0x2d32f8,_0x17ec('0x18'));return this[_0x17ec('0x13a')](()=>_0x6f4ea5(_0x4eecc1,null,_0x503464)),null;}}const _0xbe09ae=this[_0x17ec('0x5')]['getSuggestionCallback'](_0x17ec('0x127'),_0x2d32f8,_0x17ec('0x8f'));let _0x2ee256=null;for(const _0x1176c1 of this[_0x17ec('0x8e')]())if(_0x1176c1[_0x17ec('0x10e')]['id']==_0x6a1b77['id']&&_0x1176c1[_0x17ec('0x5a')]&&_0x17ec('0x127')==_0x1176c1[_0x17ec('0x119')]&&_0x1176c1[_0x17ec('0x111')]==_0x2d32f8&&Ot(_0x1176c1,_0x503464)&&(_0xbe09ae(_0x1176c1[_0x17ec('0x8a')](),_0x4eecc1)||_0xbe09ae(_0x4eecc1,_0x1176c1[_0x17ec('0x8a')]()))){if(_0x2ee256){if(_0x1176c1[_0x17ec('0x97')]&&_0x1176c1[_0x17ec('0x97')][_0x17ec('0x33')])continue;for(const _0x773ef1 of _0x1176c1[_0x17ec('0x8a')]())_0x2ee256[_0x17ec('0xe8')](_0x773ef1)||_0x2ee256[_0x17ec('0x143')](_0x773ef1);_0x1176c1[_0x17ec('0x12e')]();}else{_0x2ee256=_0x1176c1;for(const _0x1ee377 of _0x4eecc1)_0x1176c1['isIntersectingWithRange'](_0x1ee377)||_0x1176c1[_0x17ec('0x143')](_0x1ee377);}}if(_0x2ee256)return _0x2ee256;_0x116ff4[_0x17ec('0x12c')]();for(const {suggestion:_0x41813e,meta:_0x44d835}of this['_findSuggestions'](_0x4eecc1,_0x17ec('0x127')))_0x44d835['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44d835[_0x17ec('0x46')]&&!_0x44d835[_0x17ec('0xb2')])&&Ot(_0x41813e,_0x503464)&&_0x116ff4[_0x17ec('0x109')](_0x41813e);for(const _0x6bf616 of _0x116ff4){const _0x2a7bfa=_0x6bf616[_0x17ec('0x8a')]();if(!_0x503464||!_0x503464[_0x17ec('0xb8')]){if(_0x4eecc1[_0x17ec('0x59')](_0x4456ea=>_0x2a7bfa[_0x17ec('0x3b')](_0x52c480=>_0x52c480[_0x17ec('0x23')](_0x4456ea,!0x0))))return _0x6bf616;}(!_0x6bf616[_0x17ec('0x5d')]||!_0x6bf616[_0x17ec('0x5d')][_0x17ec('0xb8')])&&(_0x2a7bfa['every'](_0x140c05=>_0x4eecc1[_0x17ec('0x3b')](_0x4043e9=>_0x4043e9['containsRange'](_0x140c05,!0x0)))&&_0x6bf616[_0x17ec('0x47')]());}const _0x3d09b2=_0x30e77c(),_0x42c685=_0x6a1b77['id'],_0x12e1fb='deletion:'+_0x2d32f8,_0x55b7a1=this[_0x17ec('0x113')]({'id':_0x3d09b2,'type':_0x12e1fb,'createdAt':new Date(),'authorId':_0x42c685,'attributes':_0x503464});for(const _0x475ff1 of _0x4eecc1)_0x475ff1[_0x17ec('0xf2')](),_0x475ff1[_0x17ec('0x65')]||'$graveyard'==_0x475ff1[_0x17ec('0x52')][_0x17ec('0x39')]||this['_addSuggestionMarker'](_0x12e1fb,_0x3d09b2,_0x42c685,_0x475ff1,_0x3509b3[_0x17ec('0xda')]());return _0x55b7a1;}[_0x17ec('0x76')](_0x568e55,_0x3f214d){const _0x227bf8=_0x568e55[_0x17ec('0x130')]();this[_0x17ec('0x99')][_0x17ec('0x13d')](_0xa1c146=>{_0xa1c146[_0x17ec('0xd1')](_0x227bf8,{'range':_0x3f214d});});}[_0x17ec('0x60')](_0x57c43c){const _0x533551=_0x57c43c['id'],_0x53ef4f=this[_0x17ec('0xb3')]['config']['get'](_0x17ec('0x124'));this['_commentsRepository'][_0x17ec('0x101')](_0x533551)||this['_commentsRepository'][_0x17ec('0x81')]({'channelId':_0x53ef4f,'threadId':_0x533551,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5e7181=this['_commentsRepository']['getCommentThread'](_0x533551);_0x5e7181[_0x17ec('0x2c')](_0x17ec('0x21')),_0x5e7181[_0x17ec('0x21')]=!0x1,_0x57c43c['commentThread']=_0x5e7181;}['_checkSuggestionCorrectness'](_0x23f02c,_0x12c615,_0x42a5a5,_0x37cfe3){if(_0x23f02c['type']!=_0x12c615||_0x23f02c[_0x17ec('0x111')]!=_0x42a5a5||_0x23f02c[_0x17ec('0xc')]['id']!=_0x37cfe3)throw this[_0x17ec('0xb3')][_0x17ec('0xef')](_0x17ec('0x27')),new _0x2a3dc7('track-changes-suggestion-data-mismatch',this);}[_0x17ec('0x4')](_0x10df6b,_0x31467b){const _0x296bee=_0x10df6b['getFirstRange']();if(_0x31467b['isEqual'](_0x296bee))_0x10df6b[_0x17ec('0x12e')]();else{if(_0x296bee[_0x17ec('0x23')](_0x31467b)){const _0x255445=this[_0x17ec('0x99')]['createPositionAt'](_0x31467b['start'][_0x17ec('0xde')],'end');this[_0x17ec('0x76')](_0x10df6b,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x296bee[_0x17ec('0xab')],_0x255445));const _0x25999e=_0x30e77c(),_0x5dbfef=_0x10df6b[_0x17ec('0xc')]['id'],_0x280cfe=_0x10df6b[_0x17ec('0x119')]+':'+_0x10df6b[_0x17ec('0x111')];this[_0x17ec('0x113')]({'id':_0x25999e,'type':_0x280cfe,'createdAt':new Date(),'authorId':_0x5dbfef,'data':_0x10df6b['data'],'attributes':_0x10df6b['attributes']});const _0x4d8966=this[_0x17ec('0x99')][_0x17ec('0xad')](_0x31467b[_0x17ec('0xe0')][_0x17ec('0x100')],_0x17ec('0x98')),_0x24dd0d=this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x4d8966,_0x296bee[_0x17ec('0xe0')]);this[_0x17ec('0x12')](_0x280cfe,_0x25999e,_0x5dbfef,_0x24dd0d);}else{if(_0x296bee['containsPosition'](_0x31467b[_0x17ec('0xab')])){const _0x590298=this[_0x17ec('0x99')][_0x17ec('0xad')](_0x31467b['start'][_0x17ec('0xde')],_0x17ec('0xe0'));this['_setSuggestionRange'](_0x10df6b,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x296bee[_0x17ec('0xab')],_0x590298));}else{const _0x28acc8=this[_0x17ec('0x99')]['createPositionAt'](_0x31467b[_0x17ec('0xe0')][_0x17ec('0x100')],_0x17ec('0x98'));this[_0x17ec('0x76')](_0x10df6b,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x28acc8,_0x296bee[_0x17ec('0xe0')]));}}}}[_0x17ec('0x36')](_0x3ce2be){for(const {suggestion:_0x24a45f,meta:_0x5461a8}of this[_0x17ec('0x58')](_0x3ce2be,_0x17ec('0x2e'))){if(!_0x5461a8[_0x17ec('0xca')])continue;const _0x2bd0e=_0x24a45f[_0x17ec('0x8a')]();for(const _0x1f9cbb of _0x2bd0e)if(!_0x3ce2be[_0x17ec('0x16')](_0x1f9cbb)[_0x17ec('0x33')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x494fde){const _0x8a04ac=this['editor'][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48'))[_0x17ec('0x13e')](_0x494fde);if(!_0x8a04ac)throw new _0x2a3dc7(_0x17ec('0x14'),this);return _0x8a04ac;}[_0x17ec('0x2b')](_0x3ddd0c){const _0x4f95bf=this['editor'][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48')),_0x4f48fc=_0x478159(_0x17ec('0xf')+_0x3ddd0c),_0xeb6ad8=_0x4f95bf[_0x17ec('0x13e')](_0x4f48fc);return _0xeb6ad8||_0x4f95bf[_0x17ec('0x106')]({'id':_0x4f48fc,'name':_0x3ddd0c});}[_0x17ec('0x11b')](_0x116f9a,_0x52ae21,_0xf423df,_0xe59586,_0x28469c){const _0x2fce5c=this[_0x17ec('0x66')](_0xe59586),_0x1221b3=this[_0x17ec('0x5')]['buildSuggestion'](_0x116f9a,_0x52ae21,_0xf423df,_0x2fce5c,_0x28469c,_0x19b5e7=>this[_0x17ec('0x104')](_0xf423df,{'attributes':_0x19b5e7}));return this[_0x17ec('0x8c')](_0x1221b3,'accept',()=>{this[_0x17ec('0x104')](_0xf423df,{'state':'accepted'});},{'priority':_0x17ec('0xd6')}),this[_0x17ec('0x8c')](_0x1221b3,_0x17ec('0x47'),()=>{this['_updateSuggestionData'](_0xf423df,{'state':_0x17ec('0x8d')});},{'priority':_0x17ec('0xd6')}),this[_0x17ec('0xc4')][_0x17ec('0xa0')](_0xf423df,_0x1221b3),this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x1221b3,_0x17ec('0xe9')),_0x1221b3;}['_splitMarkerName'](_0x2c0c11){const _0x439913=_0x2c0c11[_0x17ec('0xc1')](':');return{'group':_0x439913[0x0],'type':_0x439913[0x1],'subType':_0x439913[_0x17ec('0x33')]>=0x5?_0x439913[0x2]:null,'id':_0x439913['length']<0x5?_0x439913[0x2]:_0x439913[0x3],'authorId':_0x439913[_0x17ec('0x33')]<0x5?_0x439913[0x3]:_0x439913[0x4],'markerCount':0x6==_0x439913[_0x17ec('0x33')]?_0x439913[0x5]:null};}[_0x17ec('0xee')](_0x1cd200,_0xcf720a,_0x36d05a){const _0x90d955=_0x1cd200['getFirstRange'](),_0x9dfc28=_0x90d955['start'],_0x43e5e0=_0x90d955[_0x17ec('0xe0')];this[_0x17ec('0x76')](_0x1cd200,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x9dfc28,_0xcf720a));const _0x35a6ac=_0x30e77c(),_0x4a97a9=_0x1cd200[_0x17ec('0xc')]['id'],_0x485615=_0x1cd200[_0x17ec('0x119')]+(_0x1cd200['subType']?':'+_0x1cd200['subType']:'');this['_setSuggestionData']({'id':_0x35a6ac,'type':_0x485615,'createdAt':new Date(),'authorId':_0x4a97a9,'originalSuggestionId':_0x1cd200['id'],'attributes':_0x1cd200['attributes'],'data':_0x1cd200['data']}),_0x17ec('0x34')==_0x1cd200[_0x17ec('0x119')]&&(_0x36d05a=this[_0x17ec('0x99')][_0x17ec('0xe4')](_0x36d05a['parent'])),this[_0x17ec('0x12')](_0x485615,_0x35a6ac,_0x4a97a9,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x36d05a,_0x43e5e0));}[_0x17ec('0x58')](_0x4e0e51,_0x4edc8a=null){const _0x1a4665=[],_0x3dc074=this[_0x17ec('0xb3')]['plugins'][_0x17ec('0xf7')](_0x17ec('0x48'))['me'];Array[_0x17ec('0xd5')](_0x4e0e51)||(_0x4e0e51=[_0x4e0e51]);for(const _0x181c44 of this[_0x17ec('0x8e')]()){if(!_0x181c44[_0x17ec('0x5a')])continue;if(_0x4edc8a&&_0x181c44['type']!=_0x4edc8a)continue;let _0xfcc84f=!0x1;for(const _0x557586 of _0x181c44['getRanges']()){for(const _0x652ad0 of _0x4e0e51){const _0x44cb4e=_0x652ad0['start'][_0x17ec('0x6d')](_0x557586[_0x17ec('0xe0')])||_0x652ad0['end'][_0x17ec('0x6d')](_0x557586['start']);if(_0x44cb4e||_0x652ad0[_0x17ec('0x12f')](_0x557586)){const _0x4a0857=_0x652ad0[_0x17ec('0x23')](_0x557586)&&_t(this[_0x17ec('0x99')]['schema'],_0x557586[_0x17ec('0xab')],_0x652ad0),_0x5dc170=_0x557586[_0x17ec('0x23')](_0x652ad0)&&_t(this[_0x17ec('0x99')]['schema'],_0x652ad0['start'],_0x557586);_0x1a4665[_0x17ec('0xb6')]({'suggestion':_0x181c44,'meta':{'isOwn':_0x3dc074==_0x181c44[_0x17ec('0x10e')],'isNextTo':_0x44cb4e,'isInsideObject':_0x4a0857,'containsRangeInObject':_0x5dc170}}),_0xfcc84f=!0x0;break;}}if(_0xfcc84f)break;}}return _0x1a4665;}[_0x17ec('0x12')](_0x586d47,_0x1df0a9,_0x103b9c,_0x3b67c0,_0x477b13){this[_0x17ec('0x99')]['change'](_0x29665c=>{let _0x10915a='suggestion:'+_0x586d47+':'+_0x1df0a9+':'+_0x103b9c;_0x477b13&&(_0x10915a=_0x10915a+':'+_0x477b13),_0x29665c[_0x17ec('0xc9')](_0x10915a,{'range':_0x3b67c0,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x17ec('0xd4')](_0x789a5f){const _0x3590b8=_0x789a5f[_0x17ec('0x8')],_0x2b39f7=_0x789a5f[_0x17ec('0xd2')];_0x789a5f[_0x17ec('0x8')]=null,null!=_0x3590b8&&(_0x3590b8['next']=null),_0x789a5f[_0x17ec('0xd2')]=null,null!=_0x2b39f7&&(_0x2b39f7[_0x17ec('0x8')]=null),_0x17ec('0x69')==this[_0x17ec('0xcc')]['get'](_0x789a5f)&&(this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x789a5f,_0x17ec('0x74')),this[_0x17ec('0x3c')](_0x17ec('0x103'),_0x789a5f,_0x3590b8,_0x2b39f7));}[_0x17ec('0x113')](_0x4faace){const _0x314b89=_0x4faace['id'],_0x3ac3a4=this[_0x17ec('0xe1')](_0x4faace);if(this['_adapter']&&this[_0x17ec('0x133')][_0x17ec('0x28')]){const _0x2598eb=this['editor'][_0x17ec('0x134')][_0x17ec('0xf7')]('PendingActions'),_0x27b50c=_0x3ac3a4[_0x17ec('0xae')],_0x416fc9=_0x3ac3a4[_0x17ec('0x111')]?_0x3ac3a4['type']+':'+_0x3ac3a4['subType']:_0x3ac3a4[_0x17ec('0x119')],_0x479959=this[_0x17ec('0xb3')][_0x17ec('0x94')],_0x561c0d=_0x2598eb[_0x17ec('0x109')](_0x4d4de8(_0x479959,_0x17ec('0x1c'))),_0x49a145={'id':_0x314b89,'type':_0x416fc9,'hasComments':_0x27b50c,'data':_0x4faace[_0x17ec('0xd9')]||null,'originalSuggestionId':_0x4faace['originalSuggestionId']||null,'attributes':_0x3ac3a4[_0x17ec('0x5d')]};this[_0x17ec('0x133')][_0x17ec('0x28')](_0x49a145)[_0x17ec('0x85')](_0x53f451=>{_0x3ac3a4['_saved']=!0x0,_0x2598eb[_0x17ec('0xbd')](_0x561c0d),_0x53f451&&_0x53f451[_0x17ec('0x49')]&&(this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x314b89)[_0x17ec('0x49')]=_0x53f451[_0x17ec('0x49')]);})[_0x17ec('0x42')](_0x47f53a=>{throw _0x5c4f63(_0x17ec('0x7a')),this[_0x17ec('0xb3')][_0x17ec('0x3')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x3ac3a4['discard']();}),_0x3ac3a4[_0x17ec('0xf5')](),this[_0x17ec('0xc4')][_0x17ec('0x108')](_0x3ac3a4['id']),this[_0x17ec('0xcc')][_0x17ec('0x108')](_0x3ac3a4),_0x47f53a;});}return _0x3ac3a4;}['_updateSuggestionData'](_0x18504b,_0x11d9c5){const _0x16bfb1=this[_0x17ec('0xb3')][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0xb')),_0x3a82ef=this[_0x17ec('0x0')](_0x18504b);if(this[_0x17ec('0x133')]&&this[_0x17ec('0x133')][_0x17ec('0x68')]){if(_0x3a82ef['_saved']){const _0x56de0a=_0x16bfb1[_0x17ec('0x109')](_0x4d4de8(this['editor'][_0x17ec('0x94')],_0x17ec('0x1c')));this[_0x17ec('0x133')][_0x17ec('0x68')](_0x18504b,_0x11d9c5)[_0x17ec('0x85')](()=>{_0x16bfb1[_0x17ec('0xbd')](_0x56de0a);});}else _0x3a82ef['on'](_0x17ec('0x1a'),()=>{this[_0x17ec('0x104')](_0x18504b,_0x11d9c5);});}}[_0x17ec('0x45')](_0x108b99){if(!this['_adapter']||!this[_0x17ec('0x133')][_0x17ec('0x0')])throw new _0x2a3dc7(_0x17ec('0xce'),this);return this[_0x17ec('0x133')][_0x17ec('0x0')](_0x108b99);}[_0x17ec('0x2a')](_0x2b1754){const {id:_0x44d9fa,type:_0x2c16a0,subType:_0x4976e1,authorId:_0x3c453f}=this[_0x17ec('0xec')](_0x2b1754),_0x1f7ea8=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x44d9fa)||this[_0x17ec('0x11b')](_0x2c16a0,_0x4976e1,_0x44d9fa,_0x3c453f,{});switch(this[_0x17ec('0x10a')](_0x1f7ea8,_0x2c16a0,_0x4976e1,_0x3c453f),this[_0x17ec('0xcc')][_0x17ec('0xf7')](_0x1f7ea8)){case'notReady':this[_0x17ec('0x45')](_0x44d9fa)[_0x17ec('0x85')](_0x3116ea=>{let _0x482d22=Promise[_0x17ec('0x19')]();_0x3116ea[_0x17ec('0xae')]&&(_0x482d22=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config'][_0x17ec('0xf7')](_0x17ec('0x124')),'threadId':_0x44d9fa})),_0x482d22[_0x17ec('0x85')](()=>{this[_0x17ec('0xe1')](_0x3116ea)[_0x17ec('0xd0')]=!0x0;});}),this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x1f7ea8,_0x17ec('0x4b'));break;case'removed':this[_0x17ec('0x104')](_0x44d9fa,{'state':_0x17ec('0x77')});case'dataReady':this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x1f7ea8,'ready'),this[_0x17ec('0x3c')](_0x17ec('0x1f'),_0x1f7ea8);break;case'ready':this[_0x17ec('0x3c')]('suggestionChanged',_0x1f7ea8);}return _0x1f7ea8['addMarkerName'](_0x2b1754),_0x1f7ea8;}[_0x17ec('0x71')](_0x3de4c0){const _0x3fc9b9=Array[_0x17ec('0xc6')](_0x3de4c0)[_0x17ec('0xdb')](_0xf9ee26=>!_0xf9ee26[_0x17ec('0xd')]),_0x570d24=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x75dd60=>!_0x75dd60['isMultiRange']),_0x26e0cb=_0x570d24[_0x17ec('0xdb')](_0x596e49=>!_0x3de4c0[_0x17ec('0x126')](_0x596e49)),_0x52b82f=new Map(_0x570d24[_0x17ec('0x10')](_0x36cd40=>[_0x36cd40,this['_suggestionFactory'][_0x17ec('0xb5')](_0x36cd40[_0x17ec('0x119')],_0x36cd40['subType'],_0x17ec('0xbf'))])),_0x22e57a=new Map(_0x570d24[_0x17ec('0x10')](_0x12121a=>[_0x12121a,_0x12121a['getFirstRange']()])),_0x862d72=new Set(),_0x65564c=new Set();for(let _0x451a79=0x0;_0x451a79<_0x3fc9b9[_0x17ec('0x33')];_0x451a79++)_0x53f0a1(_0x3fc9b9[_0x451a79],_0x3fc9b9,_0x451a79+0x1);for(let _0x564570=0x0;_0x564570<_0x3fc9b9[_0x17ec('0x33')];_0x564570++)_0x53f0a1(_0x3fc9b9[_0x564570],_0x26e0cb,0x0);for(let _0x112d7b=0x0;_0x112d7b<_0x3fc9b9['length'];_0x112d7b++){const _0x5e2e7b=_0x3fc9b9[_0x112d7b];!_0x65564c[_0x17ec('0x126')](_0x5e2e7b)&&_0x5e2e7b[_0x17ec('0x8')]&&(_0x5e2e7b[_0x17ec('0x8')][_0x17ec('0xd2')]===_0x5e2e7b&&(_0x5e2e7b[_0x17ec('0x8')][_0x17ec('0xd2')]=null),_0x5e2e7b[_0x17ec('0x8')]=null),!_0x862d72[_0x17ec('0x126')](_0x5e2e7b)&&_0x5e2e7b[_0x17ec('0xd2')]&&(_0x5e2e7b['next'][_0x17ec('0x8')]===_0x5e2e7b&&(_0x5e2e7b[_0x17ec('0xd2')][_0x17ec('0x8')]=null),_0x5e2e7b[_0x17ec('0xd2')]=null);}function _0x53f0a1(_0x31013b,_0x38bfba,_0x38be39){for(let _0xf89ed1=_0x38be39;_0xf89ed1<_0x38bfba[_0x17ec('0x33')];_0xf89ed1++){const _0x514c48=_0x249007(_0x31013b,_0x38bfba[_0xf89ed1]);_0x514c48&&(_0x514c48[0x0]['next']=_0x514c48[0x1],_0x514c48[0x1][_0x17ec('0x8')]=_0x514c48[0x0],_0x862d72[_0x17ec('0x109')](_0x514c48[0x0]),_0x65564c[_0x17ec('0x109')](_0x514c48[0x1]));}}function _0x249007(_0xf9b36e,_0x4f7db3){if(_0xf9b36e[_0x17ec('0x10e')]['id']!==_0x4f7db3[_0x17ec('0x10e')]['id'])return null;const _0x25e027=_0x52b82f[_0x17ec('0xf7')](_0xf9b36e)(_0xf9b36e,_0x4f7db3,_0x22e57a['get'](_0xf9b36e),_0x22e57a[_0x17ec('0xf7')](_0x4f7db3));if(!_0x25e027)return null;return _0x52b82f[_0x17ec('0xf7')](_0x4f7db3)(_0xf9b36e,_0x4f7db3,_0x22e57a[_0x17ec('0xf7')](_0xf9b36e),_0x22e57a[_0x17ec('0xf7')](_0x4f7db3))?_0x25e027[0x1]['commentThread']&&_0x25e027[0x1][_0x17ec('0x97')]['length']?null:_0x25e027:null;}}['_joinWithAdjacentSuggestions'](_0x581687){const _0x20c0f7=Array[_0x17ec('0xc6')](_0x581687),_0x5a10c8=this[_0x17ec('0x8e')]({'skipNotAttached':!0x0}),_0x51dd25=_0x5a10c8['filter'](_0x483311=>!_0x581687[_0x17ec('0x126')](_0x483311)),_0x3fac20=new Map(_0x20c0f7[_0x17ec('0x10')](_0x131ac1=>[_0x131ac1,this['_suggestionFactory'][_0x17ec('0xb5')](_0x131ac1[_0x17ec('0x119')],_0x131ac1['subType'],'join')])),_0x37539d=new Map(_0x5a10c8[_0x17ec('0x10')](_0x42e038=>[_0x42e038,_0x42e038[_0x17ec('0x8a')]()]));for(let _0x110c99=0x0;_0x110c99<_0x20c0f7[_0x17ec('0x33')];_0x110c99++){if(_0x2dfa52(this,_0x20c0f7[_0x110c99],_0x20c0f7,_0x110c99+0x1))return!0x0;}for(let _0x4bfe12=0x0;_0x4bfe12<_0x20c0f7['length'];_0x4bfe12++){if(_0x2dfa52(this,_0x20c0f7[_0x4bfe12],_0x51dd25,0x0))return!0x0;}return!0x1;function _0x2dfa52(_0x1f18f3,_0x59b783,_0x32cd54,_0x339163){for(let _0x489b5e=_0x339163;_0x489b5e<_0x32cd54[_0x17ec('0x33')];_0x489b5e++){const _0x185cf5=_0x32cd54[_0x489b5e];if(_0x185cf5[_0x17ec('0x119')]!==_0x59b783[_0x17ec('0x119')]||_0x185cf5[_0x17ec('0x10e')]['id']!==_0x59b783['author']['id']||_0x185cf5[_0x17ec('0x111')]!==_0x59b783[_0x17ec('0x111')])continue;if(!Ut(_0x59b783,_0x185cf5))continue;const _0x14d620=_0x3fac20[_0x17ec('0xf7')](_0x59b783),_0x24b5c5=_0x37539d['get'](_0x59b783),_0x52cc1e=_0x37539d[_0x17ec('0xf7')](_0x185cf5),_0x37997a=_0x59b783[_0x17ec('0x97')]&&_0x59b783[_0x17ec('0x97')][_0x17ec('0x33')],_0x11db83=_0x185cf5['commentThread']&&_0x185cf5['commentThread'][_0x17ec('0x33')];if(!_0x37997a&&_0x14d620(_0x52cc1e,_0x24b5c5))return _0x1f18f3[_0x17ec('0x41')](_0x185cf5,_0x59b783),_0x37539d[_0x17ec('0x108')](_0x59b783),!0x0;if(!_0x11db83&&_0x14d620(_0x24b5c5,_0x52cc1e))return _0x1f18f3[_0x17ec('0x41')](_0x59b783,_0x185cf5),_0x37539d[_0x17ec('0x108')](_0x185cf5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x132ea1,_0x2a69f7){if(_0x132ea1[_0x17ec('0xd')])for(const _0x33abb7 of _0x2a69f7[_0x17ec('0x8a')]())_0x132ea1[_0x17ec('0x143')](_0x33abb7);else{const _0x116e49=_0x2a69f7[_0x17ec('0x96')]()[_0x17ec('0xe0')];this['_setSuggestionRange'](_0x132ea1,this['_model'][_0x17ec('0xd8')](_0x132ea1[_0x17ec('0x96')]()[_0x17ec('0xab')],_0x116e49));}_0x2a69f7[_0x17ec('0x12e')]();}}class Bt{constructor(_0xdb3a19){this[_0x17ec('0x6f')]=_0xdb3a19,this[_0x17ec('0x99')]=_0xdb3a19['model'],this[_0x17ec('0x4d')]=new Map(),this[_0x17ec('0xa9')]=new Map(),this['_registerDefaultCallbacks']();}[_0x17ec('0xaa')](_0x43f491,_0x31fcb5,_0x58ae68,_0x101dee,_0x5df4d2,_0x182737){return new _0x3509b3(this[_0x17ec('0x99')],{'type':_0x43f491,'subType':_0x31fcb5,'id':_0x58ae68,'author':_0x101dee,'creator':_0x101dee,'attributes':_0x5df4d2,'onAttributesChange':_0x182737,'onAccept':(..._0x1ef74e)=>this[_0x17ec('0xb5')](_0x43f491,_0x31fcb5,_0x17ec('0x18'))(..._0x1ef74e),'onDiscard':(..._0x1eecc2)=>this[_0x17ec('0xb5')](_0x43f491,_0x31fcb5,_0x17ec('0x47'))(..._0x1eecc2)});}['registerCustomCallback'](_0x25b3d6,_0x5edfa7,_0x9d985,_0x475849){const _0x365598=_0x25b3d6+':'+_0x5edfa7+':'+_0x9d985;this['_customCallbacks'][_0x17ec('0xa0')](_0x365598,_0x475849);}['getSuggestionCallback'](_0x9620a9,_0x2a985c,_0xa2a03f){const _0x2587de=_0x9620a9+':'+_0x2a985c+':'+_0xa2a03f;return this['_customCallbacks'][_0x17ec('0xf7')](_0x2587de)||this['_defaultCallbacks'][_0x17ec('0xf7')](_0x9620a9+':'+_0xa2a03f);}[_0x17ec('0xe7')](){const _0x4f7f9f=()=>!0x1,_0x23326d=_0x1415ee=>{_0x1415ee[_0x17ec('0x123')]((_0x2679b1,_0x24ecdc)=>_0x2679b1[_0x17ec('0xab')][_0x17ec('0xdd')](_0x24ecdc[_0x17ec('0xab')])?0x1:-0x1),this['_model'][_0x17ec('0x13d')](_0x513988=>{for(const _0x510cc2 of _0x1415ee){let _0x5d72b2;_0x5d72b2=_0x510cc2[_0x17ec('0xe0')]['isAtEnd']&&_0x510cc2['end'][_0x17ec('0x100')]==_0x510cc2[_0x17ec('0xab')][_0x17ec('0x12d')]?_0x513988[_0x17ec('0x62')](_0x510cc2[_0x17ec('0xab')][_0x17ec('0x12d')],'on'):_0x513988['createSelection'](_0x510cc2),this[_0x17ec('0x99')]['deleteContent'](_0x5d72b2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1dcbf0=(_0x50b76c,_0x48b3f7)=>{this[_0x17ec('0x99')][_0x17ec('0x13d')](_0x4487fc=>{const {commandName:_0x238003,commandParams:_0x9ddf17=[]}=_0x48b3f7,_0x5833fd=_0x50b76c['map'](_0x31e672=>(Mt(_0x31e672)&&(_0x31e672=this['_model'][_0x17ec('0xd8')](_0x31e672[_0x17ec('0xe0')])),_0x31e672))[_0x17ec('0xdb')](_0x1961ee=>_0x17ec('0x72')!==_0x1961ee[_0x17ec('0x52')]['rootName']);if(_0x5833fd[_0x17ec('0x33')]<0x1)return;const _0x5bf3e2=Array[_0x17ec('0xc6')](this[_0x17ec('0x99')][_0x17ec('0xb0')]['selection']['getRanges']())[_0x17ec('0x10')](_0x199391=>_0x5b7c0c[_0x17ec('0x53')](_0x199391));_0x4487fc[_0x17ec('0x3d')](_0x5833fd);for(const _0x1c18e9 of this['_editor'][_0x17ec('0x117')][_0x17ec('0x117')]())_0x1c18e9[_0x17ec('0x5b')]();_0x9ddf17[_0x17ec('0xb6')]({'forceDefaultExecution':!0x0}),this[_0x17ec('0x6f')][_0x17ec('0x20')](_0x238003,..._0x9ddf17);const _0x125ede=_0x5bf3e2[_0x17ec('0xdb')](_0x38ca72=>'$graveyard'!=_0x38ca72[_0x17ec('0x52')][_0x17ec('0x39')]);_0x125ede[_0x17ec('0x33')]>0x0&&_0x4487fc[_0x17ec('0x3d')](_0x125ede);for(const _0x408a91 of _0x5bf3e2)_0x408a91[_0x17ec('0xf2')]();});},_0x542830=(_0x32f7d5,_0x5d3dab)=>0x1==_0x32f7d5[_0x17ec('0x33')]&&0x1==_0x5d3dab[_0x17ec('0x33')]&&_0x32f7d5[0x0]['end'][_0x17ec('0x6d')](_0x5d3dab[0x0][_0x17ec('0xab')]),_0x4d7c57=(_0x131334,_0x4613f4,_0x1775a6,_0x528b2e)=>xt(_0x131334,_0x4613f4,_0x1775a6,_0x528b2e,this['_model'])?[_0x131334,_0x4613f4]:xt(_0x4613f4,_0x131334,_0x528b2e,_0x1775a6,this[_0x17ec('0x99')])?[_0x4613f4,_0x131334]:null;this[_0x17ec('0xa9')][_0x17ec('0xa0')](_0x17ec('0x144'),_0x4f7f9f),this[_0x17ec('0xa9')]['set'](_0x17ec('0xfd'),_0x23326d),this['_defaultCallbacks'][_0x17ec('0xa0')](_0x17ec('0x79'),_0x542830),this[_0x17ec('0xa9')][_0x17ec('0xa0')](_0x17ec('0x139'),_0x4d7c57),this[_0x17ec('0xa9')][_0x17ec('0xa0')](_0x17ec('0xb4'),_0x23326d),this[_0x17ec('0xa9')][_0x17ec('0xa0')]('deletion:discard',_0x4f7f9f),this[_0x17ec('0xa9')][_0x17ec('0xa0')]('deletion:join',_0x542830),this[_0x17ec('0xa9')][_0x17ec('0xa0')](_0x17ec('0x83'),_0x4d7c57),this['_defaultCallbacks'][_0x17ec('0xa0')](_0x17ec('0x110'),_0x1dcbf0),this[_0x17ec('0xa9')][_0x17ec('0xa0')](_0x17ec('0x12a'),_0x4f7f9f),this[_0x17ec('0xa9')]['set'](_0x17ec('0x78'),_0x542830),this['_defaultCallbacks']['set'](_0x17ec('0xf1'),_0x4f7f9f),this['_defaultCallbacks'][_0x17ec('0xa0')](_0x17ec('0xa1'),_0x1dcbf0),this[_0x17ec('0xa9')][_0x17ec('0xa0')]('formatBlock:discard',_0x4f7f9f),this[_0x17ec('0xa9')]['set'](_0x17ec('0xfc'),_0x542830),this[_0x17ec('0xa9')][_0x17ec('0xa0')]('formatBlock:chain',_0x4f7f9f);}}function _t(_0x2fe131,_0x52de2b,_0x81698b){for(const _0x45bd3f of _0x52de2b[_0x17ec('0x100')][_0x17ec('0x54')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x45bd3f['root']==_0x45bd3f)return!0x1;if(!_0x81698b[_0x17ec('0x63')](_0x45bd3f))return!0x1;if(_0x2fe131[_0x17ec('0x67')](_0x45bd3f)||_0x2fe131['isLimit'](_0x45bd3f))return!0x0;}return!0x1;}function Mt(_0x2f78d2){return _0x2f78d2[_0x17ec('0xe0')]['parent']==_0x2f78d2[_0x17ec('0xab')][_0x17ec('0x12d')]&&_0x2f78d2[_0x17ec('0xe0')]['isAtStart'];}function $t(_0x2ea48c,_0xcd7d07,_0xe190ac,_0x4916dd){const _0x2943ce=_0x218e36=>!_0x218e36[_0x17ec('0x121')]['is'](_0x17ec('0xc5'))&&!_0x4916dd[_0x17ec('0x67')](_0x218e36[_0x17ec('0x121')]),_0xcadfea=_0x2ea48c[_0x17ec('0xab')]['getLastMatchingPosition'](_0x2943ce),_0x2c4144=_0x2ea48c[_0x17ec('0xe0')]['getLastMatchingPosition'](_0x2943ce,{'direction':_0x17ec('0x43')});return(!_0x2ea48c[_0x17ec('0xab')][_0x17ec('0x6d')](_0xcadfea)||!_0x2ea48c[_0x17ec('0xe0')][_0x17ec('0x6d')](_0x2c4144))&&(_0xcadfea[_0x17ec('0xdd')](_0x2c4144)?_0xe190ac['updateMarker'](_0xcd7d07,{'range':_0xe190ac['createRange'](_0xcadfea,_0x2c4144)}):_0xe190ac[_0x17ec('0x89')](_0xcd7d07),!0x0);}function Nt(_0x1a9ae1){return _0x478159(_0x1a9ae1);}function Rt(_0x19206f){const _0x371249=_0x19206f['start'][_0x17ec('0x12d')];return _0x371249&&_0x371249['is'](_0x17ec('0xc0'));}function jt(_0x167e6d,_0x2f6297){const _0x2d82c4=_0x2f6297[_0x17ec('0x7')]['isObject'](_0x167e6d)||_0x2f6297[_0x17ec('0x7')][_0x17ec('0xe5')](_0x167e6d);return _0x2f6297[_0x17ec('0xd8')](_0x2f6297[_0x17ec('0xad')](_0x167e6d,_0x17ec('0x147')),_0x2d82c4?_0x2f6297[_0x17ec('0x10b')](_0x167e6d):_0x2f6297[_0x17ec('0xad')](_0x167e6d,_0x17ec('0xe0')));}function xt(_0x457413,_0x42f576,_0x5415ca,_0x1dc8a0,_0x1c193b){if(!Ut(_0x457413,_0x42f576))return!0x1;if(_0x5415ca['end'][_0x17ec('0x6d')](_0x1dc8a0[_0x17ec('0xab')]))return!0x0;if(_0x457413['type']!=_0x42f576['type'])return!0x1;if(!_0x5415ca[_0x17ec('0xe0')][_0x17ec('0x9e')](_0x1dc8a0['start']))return!0x1;const _0x592f56=_0x1c193b[_0x17ec('0xd8')](_0x5415ca['end'],_0x1dc8a0[_0x17ec('0xab')])[_0x17ec('0xf8')]();for(const _0x4296af of _0x592f56)if([_0x17ec('0x6e'),'elementEnd'][_0x17ec('0xba')](_0x4296af[_0x17ec('0x119')])&&_0x1c193b[_0x17ec('0x7')][_0x17ec('0x8b')](_0x4296af[_0x17ec('0x121')]))return!0x1;return!0x0;}function Ut(_0x29651f,_0x1b6155){return!(!_0x29651f[_0x17ec('0x70')]||!_0x1b6155[_0x17ec('0x70')])&&_0x4d409c(_0x29651f[_0x17ec('0x5d')],_0x1b6155[_0x17ec('0x5d')]);}function Ot(_0x11298c,_0x1bf34e){const _0x15ccbc=Et(_0x11298c[_0x17ec('0x5d')]),_0x31e4e0=Et(_0x1bf34e);if(!_0x11298c[_0x17ec('0x70')])return!0x1;for(const _0x2c650b of Object[_0x17ec('0x31')](_0x31e4e0))if(!_0x4d409c(_0x15ccbc[_0x2c650b],_0x31e4e0[_0x2c650b]))return!0x1;return!0x0;}function Et(_0x40fc6d){const _0x41f1e4=Object[_0x17ec('0x146')]({},_0x40fc6d);return delete _0x41f1e4[_0x17ec('0xb8')],delete _0x41f1e4['tablePasteChainId'],_0x41f1e4;}
|