@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230806.0 → 0.0.0-nightly-20230807.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-track-changes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20230807.0",
|
|
4
4
|
"description": "CKEditor 5 track changes plugin.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"CHANGELOG.md"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"ckeditor5": "0.0.0-nightly-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20230807.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230807.0",
|
|
44
44
|
"lodash-es": "4.17.21"
|
|
45
45
|
},
|
|
46
46
|
"types": "src/index.d.ts",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3350=['track-changes-user-not-found','createPositionBefore','pluginName','isIntersectingWithRange','execute','acceptAllSuggestions','upcast','lowest','_saved','reconvertMarker','error-saving-suggestion-data-suggestion-discarded','isEqual','highest','change:activeMarkers','change','getSuggestion','document','suggestionLoaded','markMultiRangeInsertion','_enabledCommands','isTouching','addCommentThread','markerNameToElements','_breakSuggestionMarker','open','isNextTo','discardSuggestion','data','containsRange','insertion:discard','addMarker:suggestion','isBefore','stopListening','includes','conversion','discardSelectedSuggestions','removed','writer','track-changes-suggestion-not-found','author','deletion:','join','isObject','next','config','track-changes-suggestion-data-mismatch','attributes','return','oldRange','addMarker:suggestion:formatBlock','default','multi','_splitMarkerName','getNearestSelectionRange','registerPostFixer','_getAuthorFromId','removeMarker','get','_customCallbacks','length','nodeBefore','suggestionChanged','type','some','markerName','_suggestionFactory','_addSuggestionMarker','isLocal','consume','acceptSelectedSuggestions','editing','markDeletion','addClass','_handleNewSuggestionMarker','commandName','getShiftedBy','from','PendingActions','low','ck-suggestion-marker-formatBlock','hasCommentThread','CommentsRepository','createPositionAfter','data-suggestion','isAtEnd','_mergeNestedSuggestions','filter','adapter','locale','listenTo','after','containsRangeInObject','item','size','formatInline:accept','splitPosition','track-changes-adapter-missing-getsuggestion','insertContent','$graveyard','split','previous','formatInline:chain','markerToData','rejected','dataDowncast','substr','getFirstMarker','_onDiscard','getMarkers','getRange','parent','getDifference','howMany','name','addMarkerName','addHighlight','markerToHighlight','markMultiRangeDeletion','never','forceDefaultExecution','consumable','setSelection','set','accepted','insertion:chain','for','remove','map','_setSuggestionData','elementEnd','registerCustomCallback','TrackChangesEditing','requires','every','getWalker','insertion:','change:data','_findSuggestions','widget','addUser','unbindElementFromMarkerName','_model','update:suggestion','isAfter','containsItem','hasComments','showSuggestionHighlights','_refreshSuggestionsChain','isInsideObject','markInlineFormat','formatInline:','sort','formatGroupId','getLastMatchingPosition','isCollapsed','getRanges','getCommentThread','activeMarkers','ck-suggestion-marker--active','getMultiRangeId','formatInline:join','head','removeAttribute','getAttribute','isMultiRange','deletion:join','_suggestionState','ck-suggestion-marker','_trackFormatChanges','insert','createRangeIn','marker-count','_removeSuggestion','then','deleteContent','markMultiRangeBlockFormat','getChangedMarkers','getCustomProperty','end','removeClass','trackChanges.trackFormatChanges','mapper','root','toJSON','detach','_updateSuggestionData','fire','createRange','multipleBlocks','subType','_joinWithAdjacentSuggestions','collaboration.channelId','markerReady','options','acceptSuggestion','Users','selection','createSelection','getUser','rethrowUnexpectedError','accept','getSuggestionCallback','add','catch','removeMarkers','isBlock','fromCharCode','clone','ck-suggestion-marker-','resolve','hasSuggestion','differ','markInsertion','addMarker','addRange','_joinSuggestions','ready','_commentsRepository','isUndo','documentSelection','enqueueChange','suggestion','high','newRange','trackChanges.mergeNestedSuggestions','elementStart','fetchCommentThread','getSuggestions','editor','normal','isRemovable','buildSuggestion','batch','position','markers','isOwn','start','_createSuggestion','_checkSuggestionCorrectness','addSuggestion','commentThread','skipNestingCheck','authoredAt','_getSuggestionData','move','_adapter','suggestion-type','formatBlock:','suggestionUnloaded','editingDowncast','stop','before','isInContent','createdAt','deletion','notReady','commands','define','getIntersection','dataReady','updateSuggestion','nodeAfter','enableCommand','originalSuggestionId','_getExternalAuthor','createPositionAt','_rangeIsInLocalUserInsertion','always','authorName','discardAllSuggestions','isLimit','markBlockFormat','has','_addThreadToSuggestion','discard','creator','model','trackChangesCommand','plugins','suggestion:','push','insertion','getAllAdjacentSuggestions','element','formatInline','PENDING_ACTION_SUGGESTION','_editor','_cutOutSuggestionMarker','toViewElement','track-changes-adapter-already-set','deletion:discard','formatBlock','updateMarker','_isForcedDefaultExecutionBlock','$textProxy','containerElement','targetPosition','insertion:accept','init','_registerDefaultCallbacks','clear','_setSuggestionRange','dataToMarker','addSuggestionData','values','getFirstRange','trackChanges','_defaultCallbacks','setAttribute','backward','schema','delete','_suggestions','range','rootName','@external','value','forward'];(function(_0xe069f,_0x335069){const _0x48acff=function(_0x45100f){while(--_0x45100f){_0xe069f['push'](_0xe069f['shift']());}};_0x48acff(++_0x335069);}(_0x3350,0x67));const _0x48ac=function(_0xe069f,_0x335069){_0xe069f=_0xe069f-0x0;let _0x48acff=_0x3350[_0xe069f];return _0x48acff;};import{Plugin as _0x325b73,PendingActions as _0x5ccb39}from'ckeditor5/src/core';import{LiveRange as _0x30323b}from'ckeditor5/src/engine';import{CKEditorError as _0x1f0e77,uid as _0x5dc213,priorities as _0x37fb3c,logWarning as _0xc4f741}from'ckeditor5/src/utils';import{toWidget as _0x19ac24}from'ckeditor5/src/widget';import{Users as _0x124309,hashObject as _0xdc36e}from'ckeditor5-collaboration/src/collaboration-core';import _0x23d5f0 from'./commands/trackchangescommand';import _0x258f1d from'./commands/acceptsuggestioncommand';import _0x38a68f from'./commands/discardsuggestioncommand';import _0x535104 from'./commands/executeonallsuggestionscommand';import _0x415ce7 from'./commands/executeonselectedsuggestionscommand';import _0x22d138 from'./suggestion';import _0x402a37 from'./suggestiondescriptionfactory';import _0x1bb794 from'./integrations/alignment';import _0x425e43 from'./integrations/basicstyles';import _0x4bb75f from'./integrations/blockquote';import _0x560460 from'./integrations/ckbox';import _0x1df489 from'./integrations/codeblock';import _0x2a522b from'./integrations/comments';import _0xbc8778 from'./integrations/deletecommand';import _0x31ea31 from'./integrations/documentlist';import _0x399c20 from'./integrations/entercommand';import _0x547b46 from'./integrations/findandreplace';import _0x1e61b5 from'./integrations/font';import _0x17d314 from'./integrations/formatpainter';import _0x1da30c from'./integrations/heading';import _0x3d6dd4 from'./integrations/highlight';import _0x15d2f0 from'./integrations/horizontalline';import _0x4411fa from'./integrations/htmlembed';import _0x245249 from'./integrations/image';import _0x4093cd from'./integrations/imagereplace';import _0x12386e from'./integrations/importword';import _0x3162a8 from'./integrations/indent';import _0x3362b8 from'./integrations/inputcommand';import _0xf31803 from'./integrations/link';import _0x307976 from'./integrations/list';import _0x4962ff from'./integrations/listproperties';import _0x260f77 from'./integrations/mediaembed';import _0x38a1f7 from'./integrations/mention';import _0x165782 from'./integrations/pagebreak';import _0x437530 from'./integrations/paragraph';import _0x543a79 from'./integrations/removeformat';import _0x246677 from'./integrations/restrictededitingmode';import _0x5329f3 from'./integrations/shiftentercommand';import _0x2faca1 from'./integrations/standardeditingmode';import _0x12c532 from'./integrations/style';import _0x2ef0c4 from'./integrations/table';import _0x263428 from'./integrations/tablemergesplit';import _0x2fd4a2 from'./integrations/tableheadings';import _0x134ab8 from'./integrations/tableclipboard';import _0x11d494 from'./integrations/tablecolumnresize';import _0x308f3a from'./integrations/template';import _0x25886c from'./integrations/tableofcontents';import _0x1a41a2 from'./integrations/title';import _0x3ea893 from'./integrations/undo';import{getTranslation as _0x56bead}from'./utils/common-translations';import _0x17509a from'./integrations/tablecaption';import _0x23f31b from'./integrations/documentlistproperties';import _0x3c777d from'./integrations/tableproperties';export default class p extends _0x325b73{static get[_0x48ac('0x1d')](){return['CommentsRepository',_0x124309,_0x5ccb39,_0x1bb794,_0x425e43,_0x4bb75f,_0x560460,_0x1df489,_0x2a522b,_0xbc8778,_0x31ea31,_0x23f31b,_0x399c20,_0x547b46,_0x1e61b5,_0x17d314,_0x1da30c,_0x3d6dd4,_0x15d2f0,_0x4411fa,_0x245249,_0x4093cd,_0x12386e,_0x3162a8,_0x3362b8,_0xf31803,_0x307976,_0x4962ff,_0x260f77,_0x38a1f7,_0x165782,_0x437530,_0x543a79,_0x246677,_0x5329f3,_0x2faca1,_0x12c532,_0x2ef0c4,_0x263428,_0x2fd4a2,_0x17509a,_0x134ab8,_0x11d494,_0x25886c,_0x3c777d,_0x308f3a,_0x1a41a2,_0x3ea893];}static get[_0x48ac('0xd9')](){return _0x48ac('0x1c');}constructor(_0xda8e46){function _0x1681d6(_0x430ae5){return _0x430ae5[_0x48ac('0x18')](_0x1cde7d=>String[_0x48ac('0x67')](_0x1cde7d))[_0x48ac('0x100')]('');}super(_0xda8e46),this['set'](_0x48ac('0x36'),[]),this['on'](_0x48ac('0xe4'),(_0xe28ebf,_0x38f046,_0x4afb57,_0xd41ef7)=>{this[_0x48ac('0x26')][_0x48ac('0xe5')](()=>{for(const _0xb70931 of[..._0xd41ef7,..._0x4afb57])this['_model'][_0x48ac('0x83')]['has'](_0xb70931)&&_0xda8e46[_0x48ac('0x11d')][_0x48ac('0xe0')](_0xb70931);});}),this['_descriptionFactory']=new _0x402a37(this[_0x48ac('0x7d')][_0x48ac('0xad')][_0x48ac('0xcf')],this[_0x48ac('0x7d')][_0x48ac('0x12f')]),this[_0x48ac('0x8e')]=null,this[_0x48ac('0x118')]=new Dt(this[_0x48ac('0x7d')]),this[_0x48ac('0xd1')]=new Map(),this['_commentsRepository']=_0xda8e46[_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x128')),this[_0x48ac('0xea')]=new Set(),this[_0x48ac('0x26')]=this[_0x48ac('0x7d')][_0x48ac('0xad')],this[_0x48ac('0x3f')]=new WeakMap(),this[_0x48ac('0xbe')]=!0x1,_0xda8e46[_0x48ac('0x103')][_0x48ac('0x9a')]('trackChanges.trackFormatChanges',_0x48ac('0x109')),this[_0x48ac('0x41')]=_0xda8e46[_0x48ac('0x103')]['get'](_0x48ac('0x4d')),_0xda8e46['config'][_0x48ac('0x9a')](_0x48ac('0x79'),!0x0),this[_0x48ac('0x12c')]=_0xda8e46[_0x48ac('0x103')]['get'](_0x48ac('0x79')),this['trackChangesCommand']=new _0x23d5f0(_0xda8e46,this['_enabledCommands']),this[_0x1681d6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1681d6([0x34,0x30,0x34,0x36,0x31,0x36,0x31,0x32]);}[_0x48ac('0xc3')](){const _0x3de4d3=this['editor'];_0x3de4d3[_0x48ac('0xf9')][_0x48ac('0x16')]('editingDowncast')[_0x48ac('0xd')]({'model':_0x48ac('0x76'),'view':_0x3dc4ae=>{const {id:_0x2457f5,type:_0x15da98}=this[_0x48ac('0x10b')](_0x3dc4ae[_0x48ac('0x117')]),_0x48de71=[_0x48ac('0x40'),_0x48ac('0x69')+_0x15da98];let _0x2d1886=0xbb8;return this['activeMarkers'][_0x48ac('0xf8')](_0x3dc4ae[_0x48ac('0x117')])&&(_0x48de71[_0x48ac('0xb1')](_0x48ac('0x37')),_0x2d1886=0xbc2),_0x48ac('0x97')==_0x15da98&&(_0x2d1886+=0x5),{'classes':_0x48de71,'attributes':{'data-suggestion':_0x2457f5},'priority':_0x2d1886};}}),_0x3de4d3[_0x48ac('0xf9')]['for'](_0x48ac('0x1'))[_0x48ac('0x63')](_0x5660a1=>{_0x5660a1['on'](_0x48ac('0xf5'),(_0x388e7c,_0x17b427,_0x4f5f66)=>{if(!_0x4f5f66['options'][_0x48ac('0x2b')])return;const _0x1790e7=_0x17b427[_0x48ac('0x133')];if(!_0x1790e7)return;const _0x41ffc0=_0x4f5f66['mapper'][_0x48ac('0xb9')](_0x1790e7);_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xcf')][_0x48ac('0x101')](_0x1790e7)&&_0x41ffc0&&!_0x41ffc0[_0x48ac('0x4a')](_0x48ac('0x23'))&&_0x41ffc0['is'](_0x48ac('0xc0'))&&_0x19ac24(_0x41ffc0,_0x4f5f66[_0x48ac('0xfc')]);},{'priority':_0x48ac('0x77')});}),_0x3de4d3[_0x48ac('0xf9')][_0x48ac('0x16')](_0x48ac('0x1'))[_0x48ac('0xd')]({'model':_0x48ac('0x76'),'view':(_0x57f977,_0x4ce6b8)=>{if(!_0x4ce6b8[_0x48ac('0x5a')][_0x48ac('0x2b')])return null;const {type:_0x4bb75b}=this[_0x48ac('0x10b')](_0x57f977[_0x48ac('0x117')]);return{'classes':[_0x48ac('0x40'),_0x48ac('0x69')+_0x4bb75b],'priority':0xbb8};}});const _0x2ddf3e=({showActiveMarkers:_0x7a854f=!0x0}={})=>(_0x3ee75d,_0x2307f9,_0x37ff58)=>{if(!_0x2307f9[_0x48ac('0x133')])return;if(_0x2307f9[_0x48ac('0x133')]['is'](_0x48ac('0x5d')))return void _0x37ff58[_0x48ac('0x11')]['consume'](_0x2307f9[_0x48ac('0x133')],_0x3ee75d[_0x48ac('0xa')]);const _0x30a499=_0x37ff58[_0x48ac('0x4e')][_0x48ac('0xb9')](_0x2307f9[_0x48ac('0x133')]);if(!(_0x2307f9[_0x48ac('0x133')]['is']('element')&&_0x3de4d3[_0x48ac('0xad')]['schema'][_0x48ac('0x66')](_0x2307f9['item'])&&!_0x30a499[_0x48ac('0x4a')](_0x48ac('0xc'))))return;const {id:_0x56b534}=this[_0x48ac('0x10b')](_0x2307f9['markerName']);_0x37ff58[_0x48ac('0xfc')][_0x48ac('0x11f')]([_0x48ac('0x40'),_0x48ac('0x126')],_0x30a499),_0x37ff58[_0x48ac('0xfc')][_0x48ac('0xcd')](_0x48ac('0x12a'),_0x56b534,_0x30a499),_0x37ff58[_0x48ac('0x4e')]['bindElementToMarker'](_0x30a499,_0x2307f9[_0x48ac('0x117')]),_0x7a854f&&(this[_0x48ac('0x36')][_0x48ac('0xf8')](_0x2307f9[_0x48ac('0x117')])?_0x37ff58[_0x48ac('0xfc')][_0x48ac('0x11f')](_0x48ac('0x37'),_0x30a499):_0x37ff58[_0x48ac('0xfc')][_0x48ac('0x4c')](_0x48ac('0x37'),_0x30a499));for(const _0x594167 of _0x3de4d3['model'][_0x48ac('0x43')](_0x2307f9[_0x48ac('0x133')])['getItems']())_0x37ff58[_0x48ac('0x11')][_0x48ac('0x11b')](_0x594167,_0x3ee75d[_0x48ac('0xa')]);_0x37ff58[_0x48ac('0x11')][_0x48ac('0x11b')](_0x2307f9[_0x48ac('0x133')],_0x3ee75d['name']);};_0x3de4d3[_0x48ac('0xf9')]['for'](_0x48ac('0x1'))[_0x48ac('0x63')](_0x40d1c8=>{_0x40d1c8['on'](_0x48ac('0x108'),(_0x19090a,_0x1c2731,_0x438e6e)=>{_0x438e6e[_0x48ac('0x5a')][_0x48ac('0x2b')]&&_0x2ddf3e({'showActiveMarkers':!0x1})(_0x19090a,_0x1c2731,_0x438e6e);},{'priority':_0x48ac('0xe3')});}),_0x3de4d3[_0x48ac('0xf9')]['for']('dataDowncast')[_0x48ac('0x13d')]({'model':_0x48ac('0x76'),'view':(_0xa246c,_0x55058e)=>_0x55058e['options'][_0x48ac('0x2b')]?null:{'group':_0x48ac('0x76'),'name':_0xa246c[_0x48ac('0x2')](0xb)}}),_0x3de4d3[_0x48ac('0xf9')][_0x48ac('0x16')](_0x48ac('0xdd'))['elementToElement']({'view':{'name':_0x48ac('0x76'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x214c83,{writer:_0xe73cfa})=>{let _0x209a9e=_0x48ac('0xb0')+_0x214c83['getAttribute'](_0x48ac('0x8f'))+':'+_0x214c83[_0x48ac('0x3c')]('id');return _0x214c83[_0x48ac('0x3c')](_0x48ac('0x44'))&&(_0x209a9e+=':'+_0x214c83[_0x48ac('0x3c')](_0x48ac('0x44'))),_0xe73cfa['createElement']('$marker',{'data-name':_0x209a9e});}}),_0x3de4d3[_0x48ac('0xf9')][_0x48ac('0x16')](_0x48ac('0xdd'))[_0x48ac('0xc7')]({'view':_0x48ac('0x76')}),_0x3de4d3[_0x48ac('0xf9')]['for'](_0x48ac('0x92'))[_0x48ac('0x63')](_0x45f0e8=>{_0x45f0e8['on'](_0x48ac('0x108'),_0x2ddf3e(),{'priority':_0x48ac('0x77')});}),_0x3de4d3[_0x48ac('0xf9')][_0x48ac('0x16')](_0x48ac('0x92'))['add'](_0x237d5a=>{_0x237d5a['on']('removeMarker:suggestion:formatBlock',(_0x3c1670,_0x28fbcb,_0x4283b0)=>{const _0x466c7c=_0x4283b0['mapper'][_0x48ac('0xed')](_0x28fbcb[_0x48ac('0x117')]);if(_0x466c7c)for(const _0x293f1c of _0x466c7c)_0x293f1c['getCustomProperty'](_0x48ac('0xc'))||(_0x4283b0['writer'][_0x48ac('0x4c')]([_0x48ac('0x40'),_0x48ac('0x126'),_0x48ac('0x37')],_0x293f1c),_0x4283b0[_0x48ac('0xfc')][_0x48ac('0x3b')](_0x48ac('0x12a'),_0x293f1c),_0x4283b0[_0x48ac('0x4e')][_0x48ac('0x25')](_0x293f1c,_0x28fbcb['markerName']));},{'priority':_0x48ac('0x77')});}),_0x3de4d3['model']['document'][_0x48ac('0x10d')](_0xe7710=>{let _0x4f17f3=!0x1;const _0x4eff4c=Array[_0x48ac('0x123')](_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xe7')][_0x48ac('0x6c')][_0x48ac('0x49')]()),_0x17a89f=new Set();for(const {name:_0xfd75ad,data:_0x1b023e}of _0x4eff4c){const {group:_0x32f220,type:_0x5c09e0,id:_0x553f23}=this['_splitMarkerName'](_0xfd75ad);if(_0x48ac('0x76')!==_0x32f220)continue;const _0x11f513=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x553f23);if(null!=_0x1b023e[_0x48ac('0x78')]){_0x48ac('0xb5')==_0x5c09e0&&(_0x4f17f3=_0x4f17f3||Mt(_0x1b023e['newRange'],_0xfd75ad,_0xe7710,_0x3de4d3['model']['schema']));if(_0x1b023e['newRange'][_0x48ac('0x33')]||_0x48ac('0x139')==_0x1b023e['newRange'][_0x48ac('0x4f')]['rootName']||_0x48ac('0xbc')==_0x5c09e0&&!Nt(_0x1b023e['newRange'])||'deletion'==_0x5c09e0&&!(!_t(_0x1e2a73=_0x1b023e[_0x48ac('0x78')])&&!function(_0x1bfc3f){return _0x1bfc3f[_0x48ac('0x85')][_0x48ac('0x7')]==_0x1bfc3f[_0x48ac('0x4b')][_0x48ac('0x113')]&&_0x1bfc3f[_0x48ac('0x85')][_0x48ac('0x12b')];}(_0x1e2a73)))_0xe7710[_0x48ac('0x10f')](_0xfd75ad),_0x4f17f3=!0x0;else{if(!_0x11f513||!_0x11f513['isInContent'])continue;_0x17a89f[_0x48ac('0x63')](_0x11f513);}}}var _0x1e2a73;return _0x17a89f[_0x48ac('0x134')]>0x0&&(_0x4f17f3=!!this[_0x48ac('0x57')](_0x17a89f)||_0x4f17f3),_0x4f17f3;}),_0x3de4d3['model'][_0x48ac('0xe7')][_0x48ac('0x10d')](_0x5dabf3=>{let _0x6563e9=!0x1;for(const _0x353a4b of _0x3de4d3['model'][_0x48ac('0xe7')][_0x48ac('0x6c')]['getChanges']()){if(_0x48ac('0x42')!=_0x353a4b[_0x48ac('0x115')])continue;const _0x2cc270=_0x353a4b[_0x48ac('0x82')][_0x48ac('0x122')](_0x353a4b[_0x48ac('0x112')]);if(_0x2cc270[_0x48ac('0x12b')])for(const _0x2133b0 of this['_suggestions'][_0x48ac('0xc9')]()){if(_0x2133b0[_0x48ac('0x3d')]||!_0x2133b0['isInContent'])continue;if('formatBlock'!=_0x2133b0[_0x48ac('0x115')])continue;const _0x3fd5b5=_0x2133b0[_0x48ac('0xca')]();if(_0x3fd5b5[_0x48ac('0x85')][_0x48ac('0x7')]!=_0x3fd5b5['end'][_0x48ac('0x7')]&&_0x3fd5b5['end'][_0x48ac('0xe2')](_0x353a4b[_0x48ac('0x82')])){const _0x5df1aa=_0x3de4d3['model'][_0x48ac('0x54')](_0x3fd5b5['start'],_0x2cc270);_0x5dabf3[_0x48ac('0xbd')](_0x2133b0['getFirstMarker'](),{'range':_0x5df1aa}),_0x6563e9=!0x0;}}}return _0x6563e9;}),_0x3de4d3[_0x48ac('0xad')][_0x48ac('0x83')]['on'](_0x48ac('0x27'),(_0x3b6909,_0x3d200b,_0x296314)=>{if(null==_0x296314){const {id:_0x422129}=this[_0x48ac('0x10b')](_0x3d200b[_0x48ac('0xa')]),_0x1ed479=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x422129);_0x1ed479&&_0x1ed479[_0x48ac('0xb')](_0x3d200b['name']);}}),_0x3de4d3[_0x48ac('0xad')]['document']['on'](_0x48ac('0x21'),()=>{const _0x5d5517=Array[_0x48ac('0x123')](_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xe7')][_0x48ac('0x6c')][_0x48ac('0x49')]())[_0x48ac('0x12d')](_0x1df722=>'suggestion'===this['_splitMarkerName'](_0x1df722[_0x48ac('0xa')])['group']);if(0x0===_0x5d5517[_0x48ac('0x112')])return;_0x5d5517[_0x48ac('0x30')]((_0x3afbaf,_0x46e8b8)=>{const _0x435e2f=_0x3afbaf[_0x48ac('0xf2')][_0x48ac('0x107')],_0x5405cf=_0x46e8b8[_0x48ac('0xf2')]['oldRange'];return null===_0x435e2f&&null===_0x5405cf?0x0:null===_0x435e2f&&null!==_0x5405cf?-0x1:null!==_0x435e2f&&null===_0x5405cf?0x1:_0x435e2f[_0x48ac('0x85')][_0x48ac('0xf6')](_0x5405cf[_0x48ac('0x85')])?-0x1:0x1;});const _0x4d2ee2=new Set(),_0x2886d1=new Set();for(const {name:_0x2aa2c3,data:_0x2c2fff}of _0x5d5517){const {id:_0x2a48c1}=this[_0x48ac('0x10b')](_0x2aa2c3);if(null===_0x2c2fff[_0x48ac('0x107')]){const _0x237c8c=this[_0x48ac('0x120')](_0x2aa2c3);_0x2886d1['add'](_0x237c8c);}else{const _0x3875c=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x2a48c1);null!==_0x2c2fff['newRange']||_0x3875c[_0x48ac('0x95')]?(_0x4d2ee2['add'](_0x3875c[_0x48ac('0x3a')]),_0x2886d1[_0x48ac('0x63')](_0x3875c)):this[_0x48ac('0x45')](_0x3875c);}}_0x2886d1[_0x48ac('0x134')]>0x0&&this['_refreshSuggestionsChain'](_0x2886d1);for(const _0x2ab8b7 of _0x4d2ee2)this[_0x48ac('0x53')](_0x48ac('0x114'),_0x2ab8b7);}),_0x3de4d3[_0x48ac('0xad')]['on']('applyOperation',(_0x45504d,_0x181552)=>{const _0x597198=_0x181552[0x0];if(!this[_0x48ac('0xd1')][_0x48ac('0x134')])return;if(!_0x597198['isDocumentOperation'])return;if(_0x597198[_0x48ac('0x81')][_0x48ac('0x73')]||!_0x597198[_0x48ac('0x81')][_0x48ac('0x11a')])return;let _0x2a9a94,_0x594abc;switch(_0x597198[_0x48ac('0x115')]){case _0x48ac('0x42'):_0x2a9a94=_0x3de4d3[_0x48ac('0xad')]['createPositionAt'](_0x597198['position']),_0x594abc=_0x2a9a94[_0x48ac('0x122')](_0x597198[_0x48ac('0x9')]);break;case'split':_0x2a9a94=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xa2')](_0x597198[_0x48ac('0x136')]),_0x594abc=_0x3de4d3['model'][_0x48ac('0xa2')](_0x597198['moveTargetPosition']);break;case _0x48ac('0x8d'):_0x2a9a94=_0x3de4d3['model'][_0x48ac('0xa2')](_0x597198[_0x48ac('0xc1')]),_0x594abc=_0x2a9a94['getShiftedBy'](_0x597198[_0x48ac('0x9')]);break;default:return;}const _0x4ff2dc=_0x3de4d3['model'][_0x48ac('0x54')](_0x2a9a94,_0x594abc);_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xe5')](()=>{for(const {suggestion:_0x1d8e94,meta:_0x1cf3b5}of this[_0x48ac('0x22')](_0x4ff2dc)){if(_0x1d8e94[_0x48ac('0x3d')])continue;if(_0x48ac('0xb5')==_0x1d8e94[_0x48ac('0x115')])continue;const _0x3926bf=_0x1d8e94[_0x48ac('0xf2')]&&_0x1d8e94[_0x48ac('0xf2')][_0x48ac('0x55')];(_0x48ac('0xbc')!=_0x1d8e94['type']||'split'==_0x597198['type']&&!_0x3926bf)&&(_0x1cf3b5['containsRangeInObject']||'insertion'==_0x1d8e94[_0x48ac('0x115')]&&_0x1cf3b5[_0x48ac('0x84')]||_0x1d8e94['getFirstRange']()[_0x48ac('0xf3')](_0x4ff2dc)&&this[_0x48ac('0xee')](_0x1d8e94,_0x2a9a94,_0x594abc));}});},{'priority':_0x48ac('0xde')}),_0x3de4d3[_0x48ac('0xad')]['on'](_0x48ac('0x47'),(_0x42f2ed,_0x1171d4)=>{const _0x5bbbf=_0x1171d4[0x0],_0x2b2770=_0x1171d4[0x1];if(_0x2b2770&&_0x2b2770[_0x48ac('0x10')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x48ac('0xae')][_0x48ac('0xd5')])return;if(_0x5bbbf[_0x48ac('0x33')])return;const _0x155db3=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xcf')],{start:_0x52ee49,end:_0x3456eb}=_0x5bbbf['getFirstRange'](),_0x3c6007=_0x52ee49[_0x48ac('0x9e')]&&_0x155db3[_0x48ac('0xa7')](_0x52ee49[_0x48ac('0x9e')])?null:_0x155db3[_0x48ac('0x10c')](_0x52ee49,_0x48ac('0xd6')),_0x414c22=_0x3456eb['nodeBefore']&&_0x155db3[_0x48ac('0xa7')](_0x3456eb[_0x48ac('0x113')])?null:_0x155db3['getNearestSelectionRange'](_0x3456eb,_0x48ac('0xce')),_0x4254ad=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0x54')](_0x3c6007?_0x3c6007[_0x48ac('0x85')]:_0x52ee49,_0x414c22?_0x414c22[_0x48ac('0x4b')]:_0x3456eb);_0x3de4d3['model'][_0x48ac('0xe5')](_0x3c419f=>{this['markDeletion'](_0x4254ad);const _0xcaf9dd=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0xcf')][_0x48ac('0x10c')](_0x4254ad['start']);_0x5bbbf['is'](_0x48ac('0x74'))?_0x3c419f[_0x48ac('0x12')](_0xcaf9dd):_0x5bbbf['setTo'](_0xcaf9dd);}),_0x42f2ed[_0x48ac('0x93')]();},{'priority':_0x37fb3c[_0x48ac('0x7e')]+0xa}),_0x3de4d3['model']['on'](_0x48ac('0x138'),(_0x8b5bd8,_0x21a955)=>{const _0x58ffd0=_0x21a955[_0x21a955[_0x48ac('0x112')]-0x1];_0x58ffd0&&_0x58ffd0[_0x48ac('0x10')]||this['_isForcedDefaultExecutionBlock']||this[_0x48ac('0xae')][_0x48ac('0xd5')]&&(_0x3de4d3['model'][_0x48ac('0xe5')](()=>{let _0x2928bd=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0x138')](_0x21a955[0x0],_0x21a955[0x1],_0x21a955[0x2],{'forceDefaultExecution':!0x0});if(!_0x2928bd)return;_0x8b5bd8[_0x48ac('0x106')]=_0x2928bd[_0x48ac('0x68')]();const _0x3afa97=_0x2928bd[_0x48ac('0x4b')][_0x48ac('0x113')],_0x2f0a91=_0x3de4d3[_0x48ac('0xad')]['schema'];_0x3afa97&&_0x2f0a91[_0x48ac('0x66')](_0x3afa97)&&!_0x2f0a91[_0x48ac('0x101')](_0x3afa97)&&(_0x2928bd=_0x3de4d3[_0x48ac('0xad')][_0x48ac('0x54')](_0x2928bd['start'],_0x3de4d3['model'][_0x48ac('0xa2')](_0x3afa97,_0x48ac('0x4b')))),this[_0x48ac('0x6d')](_0x2928bd);}),_0x8b5bd8[_0x48ac('0x93')]());},{'priority':_0x48ac('0x77')}),this[_0x48ac('0x7d')][_0x48ac('0x99')][_0x48ac('0x63')](_0x48ac('0xcb'),this[_0x48ac('0xae')]),this[_0x48ac('0x9f')](_0x48ac('0xcb'));const _0x37ac87=new _0x258f1d(_0x3de4d3,this['_suggestions']);_0x3de4d3[_0x48ac('0x99')]['add'](_0x48ac('0x5b'),_0x37ac87),this[_0x48ac('0x9f')]('acceptSuggestion');const _0x562169=new _0x38a68f(_0x3de4d3,this[_0x48ac('0xd1')]);_0x3de4d3[_0x48ac('0x99')]['add'](_0x48ac('0xf1'),_0x562169),this[_0x48ac('0x9f')]('discardSuggestion'),_0x3de4d3['commands'][_0x48ac('0x63')](_0x48ac('0xdc'),new _0x535104(_0x3de4d3,_0x37ac87,this[_0x48ac('0xd1')])),this[_0x48ac('0x9f')](_0x48ac('0xdc')),_0x3de4d3[_0x48ac('0x99')][_0x48ac('0x63')]('discardAllSuggestions',new _0x535104(_0x3de4d3,_0x562169,this[_0x48ac('0xd1')])),this[_0x48ac('0x9f')](_0x48ac('0xa6')),_0x3de4d3['commands'][_0x48ac('0x63')]('acceptSelectedSuggestions',new _0x415ce7(_0x3de4d3,_0x37ac87,this['_suggestions'])),this[_0x48ac('0x9f')](_0x48ac('0x11c')),_0x3de4d3['commands'][_0x48ac('0x63')](_0x48ac('0xfa'),new _0x415ce7(_0x3de4d3,_0x562169,this[_0x48ac('0xd1')])),this['enableCommand'](_0x48ac('0xfa'));const _0x327f11=_0x3de4d3['plugins']['get'](_0x48ac('0x128'));this[_0x48ac('0x130')](_0x327f11,'addComment',(_0x591a3e,{threadId:_0x3cd710})=>{const _0x804828=this[_0x48ac('0xd1')]['get'](_0x3cd710);_0x804828&&_0x804828[_0x48ac('0x89')]&&0x1===_0x804828[_0x48ac('0x89')][_0x48ac('0x112')]&&this[_0x48ac('0x52')](_0x3cd710,{'hasComments':!0x0});},{'priority':_0x48ac('0x125')}),this['listenTo'](_0x327f11,'removeComment',(_0x52bee7,{threadId:_0x5b3ad5})=>{const _0x402145=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x5b3ad5);_0x402145&&_0x402145[_0x48ac('0x89')]&&!_0x402145[_0x48ac('0x89')]['length']&&this[_0x48ac('0x52')](_0x5b3ad5,{'hasComments':!0x1});},{'priority':_0x48ac('0x125')});}set[_0x48ac('0x12e')](_0x94ca0d){if(this[_0x48ac('0x8e')])throw new _0x1f0e77(_0x48ac('0xba'),this);this[_0x48ac('0x8e')]=_0x94ca0d;}get['adapter'](){return this[_0x48ac('0x8e')];}[_0x48ac('0x7c')]({skipNotAttached:_0x1c1a24=!0x1,toJSON:_0x1e9a15=!0x1}={}){const _0x43c2d8=[];for(const _0x2a5d98 of this[_0x48ac('0xd1')][_0x48ac('0xc9')]())_0x1c1a24&&!_0x2a5d98[_0x48ac('0x95')]||_0x43c2d8[_0x48ac('0xb1')](_0x2a5d98);return _0x1e9a15?_0x43c2d8[_0x48ac('0x18')](_0x45c8ec=>_0x45c8ec[_0x48ac('0x50')]()):_0x43c2d8;}[_0x48ac('0xe6')](_0x85a684){const _0x465d14=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x85a684);if(!_0x465d14)throw new _0x1f0e77(_0x48ac('0xfd'),this);return _0x465d14;}[_0x48ac('0x6b')](_0x310b88){return this[_0x48ac('0xd1')][_0x48ac('0xa9')](_0x310b88);}['addSuggestionData'](_0x5017d4){const {authorId:_0x3e1379,id:_0x5d95cc,attributes:_0xce263e}=_0x5017d4,[_0x2207a0,_0x34f7a9]=_0x5017d4[_0x48ac('0x115')][_0x48ac('0x13a')](':'),_0x4957a2=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x5d95cc)||this[_0x48ac('0x86')](_0x2207a0,_0x34f7a9,_0x5d95cc,_0x3e1379,_0xce263e);if(this[_0x48ac('0xaa')](_0x4957a2),this['_checkSuggestionCorrectness'](_0x4957a2,_0x2207a0,_0x34f7a9||null,_0x3e1379),_0x4957a2['createdAt']=_0x5017d4[_0x48ac('0x96')],_0xce263e&&_0xce263e[_0x48ac('0xd4')]){const _0x25d73a=_0xce263e[_0x48ac('0xd4')],_0x2a338a=this[_0x48ac('0xa1')](_0x25d73a[_0x48ac('0xa5')]);_0x4957a2[_0x48ac('0x8b')]=_0x25d73a['createdAt'],_0x4957a2[_0x48ac('0xfe')]=_0x2a338a,_0x4957a2['isExternal']=!0x0;}else _0x4957a2[_0x48ac('0x8b')]=_0x5017d4[_0x48ac('0x96')];switch(_0x5017d4[_0x48ac('0xf2')]&&(_0x4957a2[_0x48ac('0xf2')]=_0x5017d4[_0x48ac('0xf2')]),_0x5017d4[_0x48ac('0x105')]&&(_0x4957a2[_0x48ac('0x105')]=_0x5017d4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4957a2[_0x48ac('0xdf')]=!0x0),this['_suggestionState']['get'](_0x4957a2)){case'notReady':this[_0x48ac('0x3f')]['set'](_0x4957a2,_0x48ac('0x9c'));break;case _0x48ac('0x59'):_0x4957a2[_0x48ac('0x95')]?(this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x4957a2,_0x48ac('0x71')),this[_0x48ac('0x53')](_0x48ac('0xe8'),_0x4957a2)):this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x4957a2,_0x48ac('0xfb'));}return _0x4957a2;}[_0x48ac('0x5b')](_0x1537c0){this[_0x48ac('0x10')](()=>{this[_0x48ac('0x7d')]['model']['change'](()=>{for(const _0x2b6029 of _0x1537c0[_0x48ac('0xb3')]())_0x2b6029[_0x48ac('0x61')]();});});}[_0x48ac('0xf1')](_0x4e5450){this['forceDefaultExecution'](()=>{this[_0x48ac('0x7d')][_0x48ac('0xad')]['change'](()=>{for(const _0x543a7d of _0x4e5450[_0x48ac('0xb3')]())_0x543a7d['discard']();});});}[_0x48ac('0x9f')](_0x227cb6,_0xd71a0f){const _0x1a168d=this[_0x48ac('0x7d')][_0x48ac('0x99')]['get'](_0x227cb6);if(!_0x1a168d)throw new _0x1f0e77('track-changes-command-not-found',this,{'commandName':_0x227cb6});this[_0x48ac('0xea')][_0x48ac('0x63')](_0x1a168d),_0xd71a0f&&_0x1a168d['on'](_0x48ac('0xdb'),(_0x7b7ba4,_0xa2ca24)=>{this[_0x48ac('0xae')][_0x48ac('0xd5')]&&(this[_0x48ac('0xbe')]||_0xa2ca24[_0x48ac('0x112')]>0x0&&_0xa2ca24[_0xa2ca24['length']-0x1]&&_0xa2ca24[_0xa2ca24[_0x48ac('0x112')]-0x1]['forceDefaultExecution']||(_0xd71a0f((..._0x58db69)=>_0x1a168d[_0x48ac('0xdb')](..._0x58db69,{'forceDefaultExecution':!0x0}),..._0xa2ca24),_0x7b7ba4['stop']()));},{'priority':_0x48ac('0x77')});}['forceDefaultExecution'](_0x503098){let _0x400f86,_0x4f0fa4;const _0x114956=this[_0x48ac('0xbe')];this[_0x48ac('0xbe')]=!0x0;try{_0x400f86=_0x503098();}catch(_0x343ff1){_0x4f0fa4=_0x343ff1;}return _0x114956||(this[_0x48ac('0xbe')]=!0x1),_0x4f0fa4&&_0x1f0e77[_0x48ac('0x60')](_0x4f0fa4,this),_0x400f86;}['markInsertion'](_0x287251,_0x32fd14=null,_0x378ec1={}){if(_0x287251[_0x48ac('0x33')])return null;const _0x29b2ee=this['editor'][_0x48ac('0xaf')]['get']('Users')['me'];for(const {suggestion:_0x124443,meta:_0x2e440e}of this['_findSuggestions'](_0x287251,_0x48ac('0xb2')))if(_0x2e440e[_0x48ac('0x84')]){if(!_0x2e440e[_0x48ac('0xf0')]){if(!this[_0x48ac('0x12c')]&&_0x2e440e[_0x48ac('0x132')])continue;return _0x124443;}if(_0x32fd14==_0x124443[_0x48ac('0x56')]){const _0x34a0bd=_0x124443['getFirstRange']();return _0x34a0bd['start']['isEqual'](_0x287251[_0x48ac('0x4b')])?this[_0x48ac('0xc6')](_0x124443,this[_0x48ac('0x26')][_0x48ac('0x54')](_0x287251[_0x48ac('0x85')],_0x34a0bd[_0x48ac('0x4b')])):this[_0x48ac('0xc6')](_0x124443,this[_0x48ac('0x26')][_0x48ac('0x54')](_0x34a0bd[_0x48ac('0x85')],_0x287251[_0x48ac('0x4b')])),_0x124443;}}const _0x2202ea=_0x5dc213(),_0xebc39e=_0x29b2ee['id'],_0x165f1b=_0x32fd14?'insertion:'+_0x32fd14:_0x48ac('0xb2'),_0x523a46=this[_0x48ac('0x19')]({'id':_0x2202ea,'type':_0x165f1b,'createdAt':new Date(),'authorId':_0xebc39e,'attributes':_0x378ec1});return this['_addSuggestionMarker'](_0x165f1b,_0x2202ea,_0xebc39e,_0x287251),_0x523a46;}[_0x48ac('0xe9')](_0x16aedf,_0x13827d=_0x48ac('0x10a'),_0x329209={}){const _0x4d4f88=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')]('Users')['me'],_0x493226=this['_suggestionFactory'][_0x48ac('0x62')](_0x48ac('0xb2'),_0x13827d,'join');for(const _0x3f3791 of this[_0x48ac('0x7c')]())if(_0x3f3791[_0x48ac('0xfe')]['id']==_0x4d4f88['id']&&'insertion'==_0x3f3791['type']&&_0x3f3791['subType']==_0x13827d&&(_0x493226(_0x3f3791['getRanges'](),_0x16aedf)||_0x493226(_0x16aedf,_0x3f3791['getRanges']()))){for(const _0x145fff of _0x16aedf)_0x3f3791[_0x48ac('0x6f')](_0x145fff);return _0x3f3791;}if(this[_0x48ac('0x12c')])for(const _0x1e7764 of _0x16aedf)for(const {suggestion:_0x50ba1d,meta:_0x479eb8}of this[_0x48ac('0x22')](_0x1e7764,_0x48ac('0xb2'))){if(!_0x479eb8[_0x48ac('0x84')])continue;let _0x43c718=!0x0;for(const _0x265843 of _0x50ba1d[_0x48ac('0x34')]())for(const _0x3ae369 of _0x16aedf)if(!_0x265843[_0x48ac('0xf3')](_0x3ae369)){_0x43c718=!0x1;break;}if(_0x43c718)return _0x50ba1d;}const _0x4175d5=_0x5dc213(),_0x6cc294=_0x4d4f88['id'],_0x493cb4=_0x48ac('0x20')+_0x13827d,_0xdf0bb1=this['_setSuggestionData']({'id':_0x4175d5,'type':_0x493cb4,'createdAt':new Date(),'authorId':_0x6cc294,'attributes':_0x329209});for(const _0x325640 of _0x16aedf)this['_addSuggestionMarker'](_0x493cb4,_0x4175d5,_0x6cc294,_0x325640,_0x22d138[_0x48ac('0x38')]());return _0xdf0bb1;}[_0x48ac('0x2e')](_0x207f96,_0x525e0f,_0x840167=null,_0x1d8d92={}){if(_0x840167=_0x840167||$t(_0x525e0f),_0x207f96[_0x48ac('0x33')])return null;if('never'===this['_trackFormatChanges']){const _0x3de1ba=this['_suggestionFactory'][_0x48ac('0x62')]('formatInline',_0x840167,'accept');return this['forceDefaultExecution'](()=>_0x3de1ba([_0x207f96],_0x525e0f,_0x1d8d92)),null;}const _0x31b595=this[_0x48ac('0x7d')]['plugins'][_0x48ac('0x110')](_0x48ac('0x5c'))['me'],_0x41d482=[];if(_0x48ac('0xa4')!==this['_trackFormatChanges'])for(const {suggestion:_0xf0bd92,meta:_0x336a82}of this[_0x48ac('0x22')](_0x207f96,_0x48ac('0xb2')))_0x336a82[_0x48ac('0x84')]&&!_0x336a82[_0x48ac('0x2d')]&&_0x41d482[_0x48ac('0xb1')](..._0xf0bd92[_0x48ac('0x34')]());const _0xb25cb1=function(_0x5e63de,_0x346dfe){const _0x34429e=[];for(const _0x34dfeb of _0x346dfe){const _0x5707a5=_0x5e63de['getIntersection'](_0x34dfeb);_0x5707a5&&_0x34429e[_0x48ac('0xb1')](_0x5707a5);}return _0x34429e;}(_0x207f96,_0x41d482),_0x3c60a2=function(_0x5a27a8,_0x2e9a01){const _0xdb06d8=[_0x5a27a8];for(const _0x3b4b6f of _0x2e9a01){let _0x2a6eff=0x0;for(;_0x2a6eff<_0xdb06d8['length'];){const _0x3041ac=_0xdb06d8[_0x2a6eff][_0x48ac('0x8')](_0x3b4b6f);_0xdb06d8['splice'](_0x2a6eff,0x1,..._0x3041ac),_0x2a6eff+=_0x3041ac['length'];}}return _0xdb06d8;}(_0x207f96,_0x41d482);_0xb25cb1[_0x48ac('0x112')]&&this[_0x48ac('0x26')]['change'](()=>{for(const _0x47ee7a of _0xb25cb1){const _0x21e13d=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0xb5'),_0x840167,_0x48ac('0x61'));this[_0x48ac('0x10')](()=>_0x21e13d([_0x47ee7a],_0x525e0f,_0x1d8d92));}});for(const _0x7e89be of _0x3c60a2){let _0x9a4ea5=null,_0x5a8ee6=_0x7e89be[_0x48ac('0x85')],_0x3d799b=_0x7e89be[_0x48ac('0x4b')];for(const {suggestion:_0x578dcc,meta:_0x37f2df}of this[_0x48ac('0x22')](_0x7e89be,'formatInline')){if(!_0x37f2df[_0x48ac('0x84')])continue;if(_0x578dcc['subType']!=_0x840167)continue;const _0x2f3b9a=_0x578dcc['getFirstRange']();if(_0x2f3b9a['containsRange'](_0x7e89be,!0x0))return null;_0x5a8ee6=_0x5a8ee6[_0x48ac('0xf6')](_0x2f3b9a[_0x48ac('0x85')])?_0x5a8ee6:_0x2f3b9a[_0x48ac('0x85')],_0x3d799b=_0x3d799b[_0x48ac('0x28')](_0x2f3b9a[_0x48ac('0x4b')])?_0x3d799b:_0x2f3b9a[_0x48ac('0x4b')],_0x9a4ea5?_0x2f3b9a[_0x48ac('0x85')][_0x48ac('0xf6')](_0x9a4ea5[_0x48ac('0xca')]()[_0x48ac('0x85')])?(_0x9a4ea5[_0x48ac('0x65')](),_0x9a4ea5=_0x578dcc):_0x578dcc[_0x48ac('0x65')]():_0x9a4ea5=_0x578dcc;}const _0x51e13c=this['_model'][_0x48ac('0x54')](_0x5a8ee6,_0x3d799b);if(_0x9a4ea5)this[_0x48ac('0xc6')](_0x9a4ea5,_0x51e13c);else{const _0x4c5c8a=_0x5dc213(),_0x2580f5=_0x31b595['id'];this[_0x48ac('0x19')]({'id':_0x4c5c8a,'type':_0x48ac('0x2f')+_0x840167,'data':_0x525e0f,'createdAt':new Date(),'authorId':_0x2580f5,'attributes':_0x1d8d92}),this[_0x48ac('0x119')](_0x48ac('0x2f')+_0x840167,_0x4c5c8a,_0x2580f5,_0x51e13c);}}return null;}[_0x48ac('0xa8')](_0x15555b,_0x35fa0b,_0x51b84e=[],_0x21f607=null,_0x1a1487={}){_0x35fa0b['formatGroupId']||(_0x35fa0b[_0x48ac('0x31')]=_0x35fa0b[_0x48ac('0x121')]),_0x35fa0b[_0x48ac('0x55')]=_0x15555b['is']('range'),_0x21f607=_0x21f607||$t(_0x35fa0b);const _0x71d36a=_0x51b84e[_0x48ac('0x18')](_0x3b94b8=>Rt(_0x3b94b8,this['_model'])),_0x75e614=_0x15555b['is'](_0x48ac('0xd2'))?_0x15555b:Rt(_0x15555b,this[_0x48ac('0x26')]);if(_0x48ac('0xf')===this[_0x48ac('0x41')]){const _0x5ac883=this['_suggestionFactory'][_0x48ac('0x62')](_0x48ac('0xbc'),_0x21f607,'accept');return this[_0x48ac('0x10')](()=>_0x5ac883([_0x75e614],_0x35fa0b,_0x1a1487)),null;}_0x71d36a['push'](_0x75e614);let _0x44f257=!0x0;for(const _0x540bc9 of _0x71d36a)if(!this[_0x48ac('0xa3')](_0x540bc9)){_0x44f257=!0x1;break;}if(_0x44f257&&_0x48ac('0xa4')!==this['_trackFormatChanges']){const _0x3c7cea=this[_0x48ac('0x118')][_0x48ac('0x62')]('formatBlock',_0x21f607,_0x48ac('0x61'));return this[_0x48ac('0x10')](()=>_0x3c7cea([_0x75e614],_0x35fa0b,_0x1a1487)),null;}let _0x557130=null,_0x50b878=_0x75e614[_0x48ac('0x85')],_0x147d38=_0x75e614['end'];for(const {suggestion:_0x492995,meta:_0x65288}of this[_0x48ac('0x22')](_0x75e614,'formatBlock')){if(!_0x65288['isOwn']||_0x65288[_0x48ac('0xf0')]||_0x65288[_0x48ac('0x132')]||_0x65288[_0x48ac('0x2d')])continue;if(_0x492995[_0x48ac('0xf2')]['formatGroupId']!=_0x35fa0b[_0x48ac('0x31')])continue;const _0x300a51=_0x492995['getFirstRange']();if(_0x492995[_0x48ac('0x56')]==_0x21f607){if(_0x300a51[_0x48ac('0xf3')](_0x75e614,!0x0))return null;_0x50b878=_0x50b878[_0x48ac('0xf6')](_0x300a51[_0x48ac('0x85')])?_0x50b878:_0x300a51[_0x48ac('0x85')],_0x147d38=_0x147d38[_0x48ac('0x28')](_0x300a51['end'])?_0x147d38:_0x300a51[_0x48ac('0x4b')],_0x557130?_0x300a51[_0x48ac('0x85')][_0x48ac('0xf6')](_0x557130['getFirstRange']()[_0x48ac('0x85')])?(_0x557130[_0x48ac('0x65')](),_0x557130=_0x492995):_0x492995['removeMarkers']():_0x557130=_0x492995;}else{const _0x5d8e38=_0x75e614[_0x48ac('0x9b')](_0x300a51);this['_cutOutSuggestionMarker'](_0x492995,_0x5d8e38);}}const _0x571e46=this['editor']['plugins'][_0x48ac('0x110')](_0x48ac('0x5c'))['me'],_0x3333f9=_0x5dc213(),_0x16bee0=_0x571e46['id'];if(_0x557130)return this['_setSuggestionRange'](_0x557130,this[_0x48ac('0x26')]['createRange'](_0x50b878,_0x147d38)),_0x557130;{const _0x3d1def=this[_0x48ac('0x19')]({'id':_0x3333f9,'type':_0x48ac('0x90')+_0x21f607,'data':_0x35fa0b,'createdAt':new Date(),'authorId':_0x16bee0,'attributes':_0x1a1487});return this['_addSuggestionMarker'](_0x48ac('0x90')+_0x21f607,_0x3333f9,_0x16bee0,this[_0x48ac('0x26')][_0x48ac('0x54')](_0x50b878,_0x147d38)),_0x3d1def;}}[_0x48ac('0x48')](_0x188f37,_0x2a825e,_0x34c1a6=[],_0x11d62e=null,_0x135804={}){_0x2a825e['formatGroupId']||(_0x2a825e[_0x48ac('0x31')]=_0x2a825e[_0x48ac('0x121')]);const _0x2ea63f=_0x188f37[0x0];_0x2a825e[_0x48ac('0x55')]=_0x2ea63f['is']('range'),_0x11d62e=_0x11d62e||$t(_0x2a825e);const _0x10662e=_0x34c1a6['map'](_0x28431a=>Rt(_0x28431a,this[_0x48ac('0x26')])),_0x2f281e=_0x2ea63f['is'](_0x48ac('0xd2'))?_0x188f37:_0x188f37['map'](_0x291c3c=>Rt(_0x291c3c,this[_0x48ac('0x26')]));if(_0x48ac('0xf')===this['_trackFormatChanges']){const _0x2de15c=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0xbc'),_0x11d62e,_0x48ac('0x61'));return this[_0x48ac('0x10')](()=>_0x2de15c(_0x2f281e,_0x2a825e,_0x135804)),null;}_0x10662e[_0x48ac('0xb1')](..._0x2f281e);let _0x3582e3=!0x0;for(const _0x48d1d4 of _0x10662e)if(!this[_0x48ac('0xa3')](_0x48d1d4)){_0x3582e3=!0x1;break;}if(_0x3582e3&&_0x48ac('0xa4')!==this[_0x48ac('0x41')]){const _0x2c5d4a=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0xbc'),_0x11d62e,_0x48ac('0x61'));return this['forceDefaultExecution'](()=>_0x2c5d4a(_0x2f281e,_0x2a825e,_0x135804)),null;}const _0x4ac20f=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x5c'))['me'];for(const _0x42d896 of this[_0x48ac('0x7c')]()){if(_0x42d896[_0x48ac('0xfe')]['id']!=_0x4ac20f['id'])continue;if(_0x48ac('0xbc')!=_0x42d896[_0x48ac('0x115')]||_0x42d896[_0x48ac('0xf2')][_0x48ac('0x31')]!=_0x2a825e[_0x48ac('0x31')])continue;const _0x4e986c=_0x42d896[_0x48ac('0x56')]==_0x11d62e;for(let _0x4cad54=0x0;_0x4cad54<_0x2f281e[_0x48ac('0x112')];_0x4cad54++){const _0x139fd7=_0x2f281e[_0x4cad54];for(const _0x432921 of _0x42d896[_0x48ac('0x5')]()){const _0x119919=_0x432921[_0x48ac('0x6')]();if(_0x139fd7[_0x48ac('0xe2')](_0x119919)){_0x4e986c?(_0x2f281e['splice'](_0x4cad54,0x1),_0x4cad54--):_0x42d896['removeMarker'](_0x432921[_0x48ac('0xa')]);break;}}}}if(0x0==_0x2f281e[_0x48ac('0x112')])return null;const _0x3c23b5=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0xbc'),_0x11d62e,_0x48ac('0x100'));for(const _0x2ddc2b of this['getSuggestions']())if(_0x2ddc2b['author']['id']==_0x4ac20f['id']&&_0x48ac('0xbc')==_0x2ddc2b['type']&&_0x2ddc2b[_0x48ac('0xf2')][_0x48ac('0x31')]==_0x2a825e[_0x48ac('0x31')]&&_0x2ddc2b[_0x48ac('0x56')]==_0x11d62e&&(_0x3c23b5(_0x2ddc2b[_0x48ac('0x34')](),_0x2f281e)||_0x3c23b5(_0x2f281e,_0x2ddc2b[_0x48ac('0x34')]()))){for(const _0x432757 of _0x2f281e)_0x2ddc2b[_0x48ac('0x6f')](_0x432757);return _0x2ddc2b;}const _0x33d01f=_0x5dc213(),_0x3b8ded=_0x4ac20f['id'],_0xac8c08=_0x48ac('0x90')+_0x11d62e,_0x67b57e=this[_0x48ac('0x19')]({'id':_0x33d01f,'type':_0xac8c08,'data':_0x2a825e,'createdAt':new Date(),'authorId':_0x3b8ded,'attributes':_0x135804});for(const _0x5ca564 of _0x2f281e)this[_0x48ac('0x119')](_0xac8c08,_0x33d01f,_0x3b8ded,_0x5ca564,_0x22d138['getMultiRangeId']());return _0x67b57e;}[_0x48ac('0x11e')](_0x1f2554,_0x47c282=null,_0x33561f={}){if(_0x1f2554[_0x48ac('0x33')])return null;const _0x49a629=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x5c'))['me'],_0x3d6661=new _0x30323b(_0x1f2554[_0x48ac('0x85')],_0x1f2554[_0x48ac('0x4b')]);for(const {suggestion:_0x4de9a7,meta:_0x4506f7}of this['_findSuggestions'](_0x3d6661,_0x48ac('0xb2')))if(_0x4506f7[_0x48ac('0x84')]&&!_0x4506f7[_0x48ac('0xf0')]){if(_0x4de9a7['isMultiRange']){const _0x4f846f=_0x4de9a7[_0x48ac('0x34')]()[_0x48ac('0x12d')](_0x53a1f7=>_0x48ac('0x139')!=_0x53a1f7[_0x48ac('0x4f')][_0x48ac('0xd3')]);_0x4f846f[_0x48ac('0x1e')](_0x2a30ba=>_0x3d6661['containsRange'](_0x2a30ba,!0x0))&&_0x4de9a7[_0x48ac('0xab')]();if(_0x4f846f[_0x48ac('0x116')](_0x170b06=>_0x170b06[_0x48ac('0xf3')](_0x3d6661,!0x0))){const _0x31bc1c=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0x97'),_0x47c282,_0x48ac('0x61'));return this[_0x48ac('0x10')](()=>_0x31bc1c([_0x3d6661],null,_0x33561f)),null;}}else{const _0x3b7f9c=_0x3d6661[_0x48ac('0x9b')](_0x4de9a7[_0x48ac('0xca')]());null!==_0x3b7f9c&&_0x4de9a7[_0x48ac('0x4')]([_0x3b7f9c],null,_0x33561f);}}if(_0x3d6661[_0x48ac('0x51')](),_0x3d6661[_0x48ac('0x33')]||'$graveyard'==_0x3d6661['root']['rootName'])return null;let _0x59770a=null,_0x49733e=_0x3d6661['start'],_0xc15a8d=_0x3d6661[_0x48ac('0x4b')];for(const {suggestion:_0x269f95,meta:_0x2c3316}of this[_0x48ac('0x22')](_0x3d6661,_0x48ac('0x97')))if(_0x2c3316[_0x48ac('0x84')]){if(_0x269f95[_0x48ac('0x3d')]&&this[_0x48ac('0x12c')]){let _0x16cafb=!0x0;for(const _0x578ac9 of _0x269f95[_0x48ac('0x34')]()){if(_0x578ac9[_0x48ac('0xf3')](_0x3d6661,!0x0))return _0x269f95;_0x3d6661[_0x48ac('0xf3')](_0x578ac9)||(_0x16cafb=!0x1);}_0x16cafb&&_0x269f95[_0x48ac('0xab')]();}else{const _0x30ecf0=_0x269f95[_0x48ac('0xca')]();if(_0x30ecf0[_0x48ac('0xf3')](_0x3d6661,!0x0)){if(!this[_0x48ac('0x12c')]&&_0x2c3316[_0x48ac('0x132')])continue;return _0x269f95;}_0x49733e=_0x49733e[_0x48ac('0xf6')](_0x30ecf0[_0x48ac('0x85')])?_0x49733e:_0x30ecf0[_0x48ac('0x85')],_0xc15a8d=_0xc15a8d[_0x48ac('0x28')](_0x30ecf0[_0x48ac('0x4b')])?_0xc15a8d:_0x30ecf0[_0x48ac('0x4b')],_0x59770a?_0x30ecf0['start'][_0x48ac('0xf6')](_0x59770a[_0x48ac('0xca')]()['start'])?(_0x59770a[_0x48ac('0x65')](),_0x59770a=_0x269f95):_0x269f95['removeMarkers']():_0x59770a=_0x269f95;}}if(_0x59770a)return this[_0x48ac('0xc6')](_0x59770a,this[_0x48ac('0x26')][_0x48ac('0x54')](_0x49733e,_0xc15a8d)),_0x59770a;{const _0x1b5f17=_0x5dc213(),_0x2c9ded=this[_0x48ac('0x26')]['createRange'](_0x49733e,_0xc15a8d),_0x22a79e=_0x49a629['id'],_0x589a50=_0x47c282?_0x48ac('0xff')+_0x47c282:_0x48ac('0x97'),_0x322d36=this[_0x48ac('0x19')]({'id':_0x1b5f17,'type':_0x589a50,'createdAt':new Date(),'authorId':_0x22a79e,'attributes':_0x33561f});return this[_0x48ac('0x119')](_0x589a50,_0x1b5f17,_0x22a79e,_0x2c9ded),_0x322d36;}}[_0x48ac('0xe')](_0x2019cd,_0x2e2c4e='multi',_0x5e2580={}){const _0xd4249d=this['editor'][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x5c'))['me'],_0x3f2b26=_0x2019cd[_0x48ac('0x18')](_0x1e17ff=>new _0x30323b(_0x1e17ff[_0x48ac('0x85')],_0x1e17ff['end'])),_0x1b50e9=new Set();for(const _0x2ccc9a of _0x3f2b26)for(const {suggestion:_0x41900d,meta:_0xfb9f6a}of this[_0x48ac('0x22')](_0x2ccc9a,'insertion'))_0xfb9f6a[_0x48ac('0x84')]&&!_0xfb9f6a[_0x48ac('0xf0')]&&_0x1b50e9['add'](_0x41900d);for(const _0x57fca5 of _0x1b50e9)if(_0x57fca5['isMultiRange']){const _0x17b5a5=_0x57fca5[_0x48ac('0x34')]();(!_0x57fca5['attributes']||!_0x57fca5[_0x48ac('0x105')][_0x48ac('0x8a')])&&(_0x17b5a5[_0x48ac('0x1e')](_0xeac41e=>_0x3f2b26[_0x48ac('0x116')](_0x6fcbea=>_0x6fcbea[_0x48ac('0xf3')](_0xeac41e,!0x0)))&&_0x57fca5[_0x48ac('0xab')]());if(_0x3f2b26[_0x48ac('0x1e')](_0x2df11a=>_0x17b5a5[_0x48ac('0x116')](_0x912c64=>_0x912c64[_0x48ac('0xf3')](_0x2df11a,!0x0)))){const _0x32e996=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0x97'),_0x2e2c4e,_0x48ac('0x61'));return this[_0x48ac('0x10')](()=>_0x32e996(_0x2019cd,null,_0x5e2580)),null;}}else{const _0x32b0b9=_0x57fca5['getFirstRange']();_0x3f2b26['some'](_0x1e341b=>_0x1e341b[_0x48ac('0xf3')](_0x32b0b9,!0x0))&&_0x57fca5[_0x48ac('0xab')]();if(_0x3f2b26[_0x48ac('0x1e')](_0x59a7e0=>_0x32b0b9['containsRange'](_0x59a7e0,!0x0))){const _0x9a326b=this[_0x48ac('0x118')][_0x48ac('0x62')](_0x48ac('0x97'),_0x2e2c4e,_0x48ac('0x61'));return this[_0x48ac('0x10')](()=>_0x9a326b(_0x3f2b26,null,_0x5e2580)),null;}}const _0x5b5a0c=this[_0x48ac('0x118')][_0x48ac('0x62')]('deletion',_0x2e2c4e,_0x48ac('0x100'));let _0x1afdb5=null;for(const _0x59bb83 of this[_0x48ac('0x7c')]())if(_0x59bb83[_0x48ac('0xfe')]['id']==_0xd4249d['id']&&_0x59bb83['isInContent']&&_0x48ac('0x97')==_0x59bb83['type']&&_0x59bb83[_0x48ac('0x56')]==_0x2e2c4e&&(_0x5b5a0c(_0x59bb83['getRanges'](),_0x3f2b26)||_0x5b5a0c(_0x3f2b26,_0x59bb83[_0x48ac('0x34')]()))){if(_0x1afdb5){if(_0x59bb83[_0x48ac('0x89')]&&_0x59bb83[_0x48ac('0x89')]['length'])continue;for(const _0x31434b of _0x59bb83['getRanges']())_0x1afdb5[_0x48ac('0xda')](_0x31434b)||_0x1afdb5[_0x48ac('0x6f')](_0x31434b);_0x59bb83['removeMarkers']();}else{_0x1afdb5=_0x59bb83;for(const _0x1faff7 of _0x3f2b26)_0x59bb83[_0x48ac('0xda')](_0x1faff7)||_0x59bb83[_0x48ac('0x6f')](_0x1faff7);}}if(_0x1afdb5)return _0x1afdb5;_0x1b50e9[_0x48ac('0xc5')]();for(const _0x4ae0a1 of _0x3f2b26)for(const {suggestion:_0x2412f5,meta:_0x370bb9}of this['_findSuggestions'](_0x4ae0a1,'deletion'))_0x370bb9[_0x48ac('0x84')]&&_0x1b50e9[_0x48ac('0x63')](_0x2412f5);for(const _0x42bc22 of _0x1b50e9){const _0x253dcc=_0x42bc22['getRanges']();if(!_0x5e2580||!_0x5e2580['skipNestingCheck']){if(_0x3f2b26[_0x48ac('0x1e')](_0x2538a0=>_0x253dcc[_0x48ac('0x116')](_0x5952d6=>_0x5952d6[_0x48ac('0xf3')](_0x2538a0,!0x0))))return _0x42bc22;}(!_0x42bc22['attributes']||!_0x42bc22['attributes'][_0x48ac('0x8a')])&&(_0x253dcc[_0x48ac('0x1e')](_0xba13b1=>_0x3f2b26[_0x48ac('0x116')](_0x5c3dce=>_0x5c3dce['containsRange'](_0xba13b1,!0x0)))&&_0x42bc22['discard']());}const _0x5efe1a=_0x5dc213(),_0x26f1c2=_0xd4249d['id'],_0x1fb5a6=_0x48ac('0xff')+_0x2e2c4e,_0x4dee77=this[_0x48ac('0x19')]({'id':_0x5efe1a,'type':_0x1fb5a6,'createdAt':new Date(),'authorId':_0x26f1c2,'attributes':_0x5e2580});for(const _0x1fa45b of _0x3f2b26)_0x1fa45b[_0x48ac('0x51')](),_0x1fa45b[_0x48ac('0x33')]||_0x48ac('0x139')==_0x1fa45b['root'][_0x48ac('0xd3')]||this[_0x48ac('0x119')](_0x1fb5a6,_0x5efe1a,_0x26f1c2,_0x1fa45b,_0x22d138[_0x48ac('0x38')]());return _0x4dee77;}[_0x48ac('0xc6')](_0x4bd6a0,_0xbc0fa0){const _0x234613=_0x4bd6a0[_0x48ac('0x3')]();this[_0x48ac('0x26')][_0x48ac('0xe5')](_0x256f2a=>{_0x256f2a['updateMarker'](_0x234613,{'range':_0xbc0fa0});});}[_0x48ac('0xaa')](_0x35a5e4){const _0x18fb2a=_0x35a5e4['id'],_0x4de202=this[_0x48ac('0x7d')]['config']['get'](_0x48ac('0x58'));this[_0x48ac('0x72')][_0x48ac('0x127')](_0x18fb2a)||this[_0x48ac('0x72')][_0x48ac('0xec')]({'channelId':_0x4de202,'threadId':_0x18fb2a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f0dfb=this[_0x48ac('0x72')][_0x48ac('0x35')](_0x18fb2a);_0x3f0dfb['unbind']('isRemovable'),_0x3f0dfb[_0x48ac('0x7f')]=!0x1,_0x35a5e4[_0x48ac('0x89')]=_0x3f0dfb;}[_0x48ac('0x87')](_0x1138cf,_0x30c7e6,_0x1731b7,_0x39ad98){if(_0x1138cf[_0x48ac('0x115')]!=_0x30c7e6||_0x1138cf[_0x48ac('0x56')]!=_0x1731b7||_0x1138cf[_0x48ac('0xac')]['id']!=_0x39ad98)throw this[_0x48ac('0x7d')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1f0e77(_0x48ac('0x104'),this);}[_0x48ac('0xb8')](_0x579a93,_0x51adc1){const _0x524a93=_0x579a93[_0x48ac('0xca')]();if(_0x51adc1[_0x48ac('0xe2')](_0x524a93))_0x579a93[_0x48ac('0x65')]();else{if(_0x524a93[_0x48ac('0xf3')](_0x51adc1)){const _0xc6b7fd=this[_0x48ac('0x26')][_0x48ac('0xa2')](_0x51adc1[_0x48ac('0x85')][_0x48ac('0x113')],_0x48ac('0x4b'));this[_0x48ac('0xc6')](_0x579a93,this[_0x48ac('0x26')]['createRange'](_0x524a93[_0x48ac('0x85')],_0xc6b7fd));const _0x59479c=_0x5dc213(),_0x2dc7b4=_0x579a93[_0x48ac('0xac')]['id'],_0x26b847=_0x579a93[_0x48ac('0x115')]+':'+_0x579a93[_0x48ac('0x56')];this[_0x48ac('0x19')]({'id':_0x59479c,'type':_0x26b847,'createdAt':new Date(),'authorId':_0x2dc7b4,'data':_0x579a93['data'],'attributes':_0x579a93[_0x48ac('0x105')]});const _0x73ed94=this[_0x48ac('0x26')][_0x48ac('0xa2')](_0x51adc1['end'][_0x48ac('0x7')],_0x48ac('0x131')),_0x5c255e=this[_0x48ac('0x26')][_0x48ac('0x54')](_0x73ed94,_0x524a93[_0x48ac('0x4b')]);this['_addSuggestionMarker'](_0x26b847,_0x59479c,_0x2dc7b4,_0x5c255e);}else{if(_0x524a93['containsPosition'](_0x51adc1[_0x48ac('0x85')])){const _0x25bfbb=this[_0x48ac('0x26')]['createPositionAt'](_0x51adc1[_0x48ac('0x85')][_0x48ac('0x113')],_0x48ac('0x4b'));this['_setSuggestionRange'](_0x579a93,this[_0x48ac('0x26')][_0x48ac('0x54')](_0x524a93['start'],_0x25bfbb));}else{const _0x287ef4=this['_model'][_0x48ac('0xa2')](_0x51adc1[_0x48ac('0x4b')]['parent'],'after');this[_0x48ac('0xc6')](_0x579a93,this['_model'][_0x48ac('0x54')](_0x287ef4,_0x524a93[_0x48ac('0x4b')]));}}}}[_0x48ac('0xa3')](_0x117291){for(const {suggestion:_0x1db156,meta:_0x4c8099}of this[_0x48ac('0x22')](_0x117291,_0x48ac('0xb2'))){if(!_0x4c8099['isOwn'])continue;const _0x51155e=_0x1db156[_0x48ac('0x34')]();for(const _0x2dc22b of _0x51155e)if(!_0x117291[_0x48ac('0x8')](_0x2dc22b)[_0x48ac('0x112')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1a6055){const _0x5ad7ae=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x5c'))['getUser'](_0x1a6055);if(!_0x5ad7ae)throw new _0x1f0e77(_0x48ac('0xd7'),this);return _0x5ad7ae;}[_0x48ac('0xa1')](_0x31a8eb){const _0x2f496e=this[_0x48ac('0x7d')]['plugins']['get'](_0x48ac('0x5c')),_0xcba078=_0xdc36e('external:'+_0x31a8eb),_0x19e208=_0x2f496e[_0x48ac('0x5f')](_0xcba078);return _0x19e208||_0x2f496e[_0x48ac('0x24')]({'id':_0xcba078,'name':_0x31a8eb});}['_createSuggestion'](_0x97a3cc,_0x220858,_0x3ca8bf,_0x37a1a1,_0x583121){const _0x3ea39b=this[_0x48ac('0x10e')](_0x37a1a1),_0x26d89e=this[_0x48ac('0x118')][_0x48ac('0x80')](_0x97a3cc,_0x220858,_0x3ca8bf,_0x3ea39b,_0x583121,_0x300337=>this[_0x48ac('0x52')](_0x3ca8bf,{'attributes':_0x300337}));return this['listenTo'](_0x26d89e,_0x48ac('0x61'),()=>{this[_0x48ac('0x52')](_0x3ca8bf,{'state':_0x48ac('0x14')});},{'priority':_0x48ac('0x77')}),this[_0x48ac('0x130')](_0x26d89e,_0x48ac('0xab'),()=>{this[_0x48ac('0x52')](_0x3ca8bf,{'state':_0x48ac('0x0')});},{'priority':_0x48ac('0x77')}),this[_0x48ac('0xd1')][_0x48ac('0x13')](_0x3ca8bf,_0x26d89e),this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x26d89e,_0x48ac('0x98')),_0x26d89e;}['_splitMarkerName'](_0x47eee6){const _0x3823ea=_0x47eee6[_0x48ac('0x13a')](':');return{'group':_0x3823ea[0x0],'type':_0x3823ea[0x1],'subType':_0x3823ea[_0x48ac('0x112')]>=0x5?_0x3823ea[0x2]:null,'id':_0x3823ea[_0x48ac('0x112')]<0x5?_0x3823ea[0x2]:_0x3823ea[0x3],'authorId':_0x3823ea[_0x48ac('0x112')]<0x5?_0x3823ea[0x3]:_0x3823ea[0x4],'markerCount':0x6==_0x3823ea[_0x48ac('0x112')]?_0x3823ea[0x5]:null};}['_breakSuggestionMarker'](_0x2e6102,_0x559162,_0x3d2b18){const _0x2b2d57=_0x2e6102[_0x48ac('0xca')](),_0x14cb22=_0x2b2d57['start'],_0x4822c2=_0x2b2d57[_0x48ac('0x4b')];this['_setSuggestionRange'](_0x2e6102,this['_model'][_0x48ac('0x54')](_0x14cb22,_0x559162));const _0x2264dd=_0x5dc213(),_0x2da6de=_0x2e6102[_0x48ac('0xac')]['id'],_0xc25841=_0x2e6102[_0x48ac('0x115')]+(_0x2e6102[_0x48ac('0x56')]?':'+_0x2e6102[_0x48ac('0x56')]:'');this[_0x48ac('0x19')]({'id':_0x2264dd,'type':_0xc25841,'createdAt':new Date(),'authorId':_0x2da6de,'originalSuggestionId':_0x2e6102['id'],'attributes':_0x2e6102['attributes'],'data':_0x2e6102[_0x48ac('0xf2')]}),_0x48ac('0xbc')==_0x2e6102[_0x48ac('0x115')]&&(_0x3d2b18=this[_0x48ac('0x26')][_0x48ac('0xd8')](_0x3d2b18[_0x48ac('0x7')])),this[_0x48ac('0x119')](_0xc25841,_0x2264dd,_0x2da6de,this['_model'][_0x48ac('0x54')](_0x3d2b18,_0x4822c2));}[_0x48ac('0x22')](_0x50d711,_0x47bf8f=null){const _0x59bec3=[],_0x38ee39=this[_0x48ac('0x26')]['schema'],_0x4a4839=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x5c'))['me'];for(const _0x403eda of this[_0x48ac('0x7c')]())if(_0x403eda['isInContent']&&(!_0x47bf8f||_0x403eda[_0x48ac('0x115')]==_0x47bf8f))for(const _0x3f1236 of _0x403eda[_0x48ac('0x34')]()){const _0x3d85e1=_0x50d711['start']['isEqual'](_0x3f1236['end'])||_0x50d711[_0x48ac('0x4b')][_0x48ac('0xe2')](_0x3f1236[_0x48ac('0x85')]);if(_0x3d85e1||_0x50d711['getIntersection'](_0x3f1236)){const _0x7c8b80=_0x50d711['containsRange'](_0x3f1236)&&Bt(_0x38ee39,_0x3f1236[_0x48ac('0x85')],_0x50d711),_0x449d7f=_0x3f1236['containsRange'](_0x50d711)&&Bt(_0x38ee39,_0x50d711['start'],_0x3f1236);_0x59bec3[_0x48ac('0xb1')]({'suggestion':_0x403eda,'meta':{'isOwn':_0x4a4839==_0x403eda[_0x48ac('0xfe')],'isNextTo':_0x3d85e1,'isInsideObject':_0x7c8b80,'containsRangeInObject':_0x449d7f}});break;}}return _0x59bec3;}['_addSuggestionMarker'](_0x5e95df,_0x22672d,_0x20579e,_0x18b541,_0xb58200){this[_0x48ac('0x26')][_0x48ac('0xe5')](_0x29d600=>{let _0x242127=_0x48ac('0xb0')+_0x5e95df+':'+_0x22672d+':'+_0x20579e;_0xb58200&&(_0x242127=_0x242127+':'+_0xb58200),_0x29d600[_0x48ac('0x6e')](_0x242127,{'range':_0x18b541,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x48ac('0x45')](_0x47a537){const _0x5d3c30=_0x47a537[_0x48ac('0x13b')],_0x481cde=_0x47a537['next'];_0x47a537[_0x48ac('0x13b')]=null,null!=_0x5d3c30&&(_0x5d3c30[_0x48ac('0x102')]=null),_0x47a537['next']=null,null!=_0x481cde&&(_0x481cde[_0x48ac('0x13b')]=null),_0x48ac('0x71')==this[_0x48ac('0x3f')][_0x48ac('0x110')](_0x47a537)&&(this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x47a537,'removed'),this[_0x48ac('0x53')](_0x48ac('0x91'),_0x47a537,_0x5d3c30,_0x481cde));}[_0x48ac('0x19')](_0x5dfcec){const _0x4866ae=_0x5dfcec['id'],_0x3c34e7=this[_0x48ac('0xc8')](_0x5dfcec);if(this[_0x48ac('0x8e')]&&this[_0x48ac('0x8e')][_0x48ac('0x88')]){const _0x12e46a=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x124')),_0x4fc49b=_0x3c34e7['hasComments'],_0x101c18=_0x3c34e7[_0x48ac('0x56')]?_0x3c34e7['type']+':'+_0x3c34e7[_0x48ac('0x56')]:_0x3c34e7['type'],_0x33d1c5=this[_0x48ac('0x7d')]['locale'],_0x382722=_0x12e46a[_0x48ac('0x63')](_0x56bead(_0x33d1c5,'PENDING_ACTION_SUGGESTION')),_0x26a620={'id':_0x4866ae,'type':_0x101c18,'hasComments':_0x4fc49b,'data':_0x5dfcec[_0x48ac('0xf2')]||null,'originalSuggestionId':_0x5dfcec[_0x48ac('0xa0')]||null,'attributes':_0x3c34e7['attributes']};this[_0x48ac('0x8e')]['addSuggestion'](_0x26a620)[_0x48ac('0x46')](_0x3ec692=>{_0x3c34e7[_0x48ac('0xdf')]=!0x0,_0x12e46a[_0x48ac('0x17')](_0x382722),_0x3ec692&&_0x3ec692[_0x48ac('0x96')]&&(this[_0x48ac('0xd1')]['get'](_0x4866ae)[_0x48ac('0x96')]=_0x3ec692['createdAt']);})[_0x48ac('0x64')](_0x17424d=>{throw _0xc4f741(_0x48ac('0xe1')),this[_0x48ac('0x7d')][_0x48ac('0xad')][_0x48ac('0x75')]({'isUndoable':!0x1},()=>{_0x3c34e7['discard']();}),_0x3c34e7[_0x48ac('0xf7')](),this[_0x48ac('0xd1')][_0x48ac('0xd0')](_0x3c34e7['id']),this[_0x48ac('0x3f')]['delete'](_0x3c34e7),_0x17424d;});}return _0x3c34e7;}['_updateSuggestionData'](_0x2110b0,_0x3b6da5){const _0x5b51c8=this[_0x48ac('0x7d')][_0x48ac('0xaf')][_0x48ac('0x110')](_0x48ac('0x124')),_0x334fb4=this['getSuggestion'](_0x2110b0);if(this['_adapter']&&this[_0x48ac('0x8e')][_0x48ac('0x9d')]){if(_0x334fb4[_0x48ac('0xdf')]){const _0x1f78b0=_0x5b51c8['add'](_0x56bead(this[_0x48ac('0x7d')]['locale'],_0x48ac('0xb6')));this['_adapter'][_0x48ac('0x9d')](_0x2110b0,_0x3b6da5)[_0x48ac('0x46')](()=>{_0x5b51c8[_0x48ac('0x17')](_0x1f78b0);});}else _0x334fb4['on']('change:_saved',()=>{this[_0x48ac('0x52')](_0x2110b0,_0x3b6da5);});}}[_0x48ac('0x8c')](_0x688478){if(!this[_0x48ac('0x8e')]||!this[_0x48ac('0x8e')][_0x48ac('0xe6')])throw new _0x1f0e77(_0x48ac('0x137'),this);return this[_0x48ac('0x8e')][_0x48ac('0xe6')](_0x688478);}[_0x48ac('0x120')](_0x5ccc37){const {id:_0x41073b,type:_0x2500e0,subType:_0x1f9c19,authorId:_0x2aac3d}=this['_splitMarkerName'](_0x5ccc37),_0x553951=this[_0x48ac('0xd1')][_0x48ac('0x110')](_0x41073b)||this[_0x48ac('0x86')](_0x2500e0,_0x1f9c19,_0x41073b,_0x2aac3d,{});switch(this['_checkSuggestionCorrectness'](_0x553951,_0x2500e0,_0x1f9c19,_0x2aac3d),this[_0x48ac('0x3f')][_0x48ac('0x110')](_0x553951)){case _0x48ac('0x98'):this[_0x48ac('0x8c')](_0x41073b)[_0x48ac('0x46')](_0x2457c4=>{let _0x74d7b7=Promise[_0x48ac('0x6a')]();_0x2457c4[_0x48ac('0x2a')]&&(_0x74d7b7=this[_0x48ac('0x72')][_0x48ac('0x7b')]({'channelId':this[_0x48ac('0x7d')][_0x48ac('0x103')][_0x48ac('0x110')]('collaboration.channelId'),'threadId':_0x41073b})),_0x74d7b7['then'](()=>{this[_0x48ac('0xc8')](_0x2457c4)[_0x48ac('0xdf')]=!0x0;});}),this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x553951,_0x48ac('0x59'));break;case _0x48ac('0xfb'):this[_0x48ac('0x52')](_0x41073b,{'state':_0x48ac('0xef')});case _0x48ac('0x9c'):this[_0x48ac('0x3f')][_0x48ac('0x13')](_0x553951,'ready'),this[_0x48ac('0x53')]('suggestionLoaded',_0x553951);break;case _0x48ac('0x71'):this[_0x48ac('0x53')](_0x48ac('0x114'),_0x553951);}return _0x553951[_0x48ac('0xb')](_0x5ccc37),_0x553951;}[_0x48ac('0x2c')](_0x5e615b){const _0x3bdaeb=Array['from'](_0x5e615b)[_0x48ac('0x12d')](_0x2c0ffc=>!_0x2c0ffc[_0x48ac('0x3d')]),_0x257a8b=this[_0x48ac('0x7c')]({'skipNotAttached':!0x0})[_0x48ac('0x12d')](_0x46e187=>!_0x46e187['isMultiRange']),_0x513872=_0x257a8b[_0x48ac('0x12d')](_0x1c20ee=>!_0x5e615b['has'](_0x1c20ee)),_0x2b8654=new Map(_0x257a8b[_0x48ac('0x18')](_0x1dd08e=>[_0x1dd08e,this['_suggestionFactory']['getSuggestionCallback'](_0x1dd08e['type'],_0x1dd08e['subType'],'chain')])),_0x417940=new Map(_0x257a8b['map'](_0x365548=>[_0x365548,_0x365548[_0x48ac('0xca')]()])),_0x3e5af5=new Set(),_0x25a8d3=new Set();for(let _0x1521b7=0x0;_0x1521b7<_0x3bdaeb[_0x48ac('0x112')];_0x1521b7++)_0x21d971(_0x3bdaeb[_0x1521b7],_0x3bdaeb,_0x1521b7+0x1);for(let _0xd4fe03=0x0;_0xd4fe03<_0x3bdaeb[_0x48ac('0x112')];_0xd4fe03++)_0x21d971(_0x3bdaeb[_0xd4fe03],_0x513872,0x0);for(let _0x4c31ff=0x0;_0x4c31ff<_0x3bdaeb[_0x48ac('0x112')];_0x4c31ff++){const _0x9cb174=_0x3bdaeb[_0x4c31ff];!_0x25a8d3[_0x48ac('0xa9')](_0x9cb174)&&_0x9cb174[_0x48ac('0x13b')]&&(_0x9cb174[_0x48ac('0x13b')]['next']===_0x9cb174&&(_0x9cb174['previous'][_0x48ac('0x102')]=null),_0x9cb174[_0x48ac('0x13b')]=null),!_0x3e5af5['has'](_0x9cb174)&&_0x9cb174['next']&&(_0x9cb174[_0x48ac('0x102')]['previous']===_0x9cb174&&(_0x9cb174[_0x48ac('0x102')]['previous']=null),_0x9cb174[_0x48ac('0x102')]=null);}function _0x21d971(_0x1d4fce,_0x471f7c,_0xaefe3e){for(let _0x2a013f=_0xaefe3e;_0x2a013f<_0x471f7c[_0x48ac('0x112')];_0x2a013f++){const _0x172f1d=_0x4b66ff(_0x1d4fce,_0x471f7c[_0x2a013f]);_0x172f1d&&(_0x172f1d[0x0][_0x48ac('0x102')]=_0x172f1d[0x1],_0x172f1d[0x1][_0x48ac('0x13b')]=_0x172f1d[0x0],_0x3e5af5['add'](_0x172f1d[0x0]),_0x25a8d3[_0x48ac('0x63')](_0x172f1d[0x1]));}}function _0x4b66ff(_0x2d9e98,_0x2bc072){if(_0x2d9e98[_0x48ac('0xfe')]['id']!==_0x2bc072[_0x48ac('0xfe')]['id'])return null;const _0x4dfc1a=_0x2b8654[_0x48ac('0x110')](_0x2d9e98)(_0x2d9e98,_0x2bc072,_0x417940[_0x48ac('0x110')](_0x2d9e98),_0x417940['get'](_0x2bc072));if(!_0x4dfc1a)return null;return _0x2b8654[_0x48ac('0x110')](_0x2bc072)(_0x2d9e98,_0x2bc072,_0x417940[_0x48ac('0x110')](_0x2d9e98),_0x417940[_0x48ac('0x110')](_0x2bc072))?_0x4dfc1a[0x1]['commentThread']&&_0x4dfc1a[0x1]['commentThread'][_0x48ac('0x112')]?null:_0x4dfc1a:null;}}['_joinWithAdjacentSuggestions'](_0x14a141){const _0x118ca3=Array['from'](_0x14a141),_0x46e035=this[_0x48ac('0x7c')]({'skipNotAttached':!0x0}),_0x5ae8aa=_0x46e035[_0x48ac('0x12d')](_0xc013d0=>!_0x14a141[_0x48ac('0xa9')](_0xc013d0)),_0x29073a=new Map(_0x118ca3[_0x48ac('0x18')](_0x356997=>[_0x356997,this[_0x48ac('0x118')][_0x48ac('0x62')](_0x356997['type'],_0x356997[_0x48ac('0x56')],_0x48ac('0x100'))])),_0x36585a=new Map(_0x46e035[_0x48ac('0x18')](_0x38e51a=>[_0x38e51a,_0x38e51a[_0x48ac('0x34')]()]));for(let _0x51209d=0x0;_0x51209d<_0x118ca3[_0x48ac('0x112')];_0x51209d++){if(_0x45580c(this,_0x118ca3[_0x51209d],_0x118ca3,_0x51209d+0x1))return!0x0;}for(let _0x5948ba=0x0;_0x5948ba<_0x118ca3[_0x48ac('0x112')];_0x5948ba++){if(_0x45580c(this,_0x118ca3[_0x5948ba],_0x5ae8aa,0x0))return!0x0;}return!0x1;function _0x45580c(_0x23da53,_0x53a172,_0x313f63,_0x85bbd8){for(let _0x363d2b=_0x85bbd8;_0x363d2b<_0x313f63['length'];_0x363d2b++){const _0x1f0e60=_0x313f63[_0x363d2b];if(_0x1f0e60[_0x48ac('0x115')]!==_0x53a172[_0x48ac('0x115')]||_0x1f0e60[_0x48ac('0xfe')]['id']!==_0x53a172[_0x48ac('0xfe')]['id']||_0x1f0e60[_0x48ac('0x56')]!==_0x53a172[_0x48ac('0x56')])continue;const _0x32adae=_0x29073a[_0x48ac('0x110')](_0x53a172),_0xd25c3d=_0x36585a[_0x48ac('0x110')](_0x53a172),_0x2ee01b=_0x36585a[_0x48ac('0x110')](_0x1f0e60),_0x2fb532=_0x53a172[_0x48ac('0x89')]&&_0x53a172[_0x48ac('0x89')][_0x48ac('0x112')],_0x4fe9ff=_0x1f0e60[_0x48ac('0x89')]&&_0x1f0e60[_0x48ac('0x89')][_0x48ac('0x112')];if(!_0x2fb532&&_0x32adae(_0x2ee01b,_0xd25c3d))return _0x23da53[_0x48ac('0x70')](_0x1f0e60,_0x53a172),_0x36585a['delete'](_0x53a172),!0x0;if(!_0x4fe9ff&&_0x32adae(_0xd25c3d,_0x2ee01b))return _0x23da53[_0x48ac('0x70')](_0x53a172,_0x1f0e60),_0x36585a['delete'](_0x1f0e60),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4e2ea9,_0x2e739d){if(_0x4e2ea9[_0x48ac('0x3d')])for(const _0x28accd of _0x2e739d[_0x48ac('0x34')]())_0x4e2ea9[_0x48ac('0x6f')](_0x28accd);else{const _0x11fd0e=_0x2e739d[_0x48ac('0xca')]()[_0x48ac('0x4b')];this[_0x48ac('0xc6')](_0x4e2ea9,this[_0x48ac('0x26')]['createRange'](_0x4e2ea9[_0x48ac('0xca')]()[_0x48ac('0x85')],_0x11fd0e));}_0x2e739d[_0x48ac('0x65')]();}}class Dt{constructor(_0x3dbe17){this['_editor']=_0x3dbe17,this['_model']=_0x3dbe17[_0x48ac('0xad')],this['_customCallbacks']=new Map(),this[_0x48ac('0xcc')]=new Map(),this[_0x48ac('0xc4')]();}[_0x48ac('0x80')](_0x31078f,_0x581da9,_0x504faa,_0x4c0ce7,_0x964a8c,_0x28c43d){return new _0x22d138(this[_0x48ac('0x26')],{'type':_0x31078f,'subType':_0x581da9,'id':_0x504faa,'author':_0x4c0ce7,'creator':_0x4c0ce7,'attributes':_0x964a8c,'onAttributesChange':_0x28c43d,'onAccept':(..._0x2a246e)=>this['getSuggestionCallback'](_0x31078f,_0x581da9,_0x48ac('0x61'))(..._0x2a246e),'onDiscard':(..._0x4525d3)=>this[_0x48ac('0x62')](_0x31078f,_0x581da9,'discard')(..._0x4525d3)});}[_0x48ac('0x1b')](_0x33c28a,_0x124e7d,_0x179edc,_0x132584){const _0x3134ee=_0x33c28a+':'+_0x124e7d+':'+_0x179edc;this['_customCallbacks'][_0x48ac('0x13')](_0x3134ee,_0x132584);}[_0x48ac('0x62')](_0x1f934b,_0x21cc31,_0x279a26){const _0x405910=_0x1f934b+':'+_0x21cc31+':'+_0x279a26;return this[_0x48ac('0x111')]['get'](_0x405910)||this['_defaultCallbacks'][_0x48ac('0x110')](_0x1f934b+':'+_0x279a26);}['_registerDefaultCallbacks'](){const _0x3ea00f=()=>{},_0x475f5f=_0x2126d1=>{_0x2126d1[_0x48ac('0x30')]((_0x307589,_0x123432)=>_0x307589[_0x48ac('0x85')][_0x48ac('0xf6')](_0x123432[_0x48ac('0x85')])?0x1:-0x1),this[_0x48ac('0x26')]['change'](_0x3670e7=>{for(const _0x5844a1 of _0x2126d1){let _0x29e4b4;_0x29e4b4=_0x5844a1[_0x48ac('0x4b')][_0x48ac('0x12b')]&&_0x5844a1['end']['parent']==_0x5844a1[_0x48ac('0x85')]['nodeAfter']?_0x3670e7[_0x48ac('0x5e')](_0x5844a1['start'][_0x48ac('0x9e')],'on'):_0x3670e7[_0x48ac('0x5e')](_0x5844a1),this['_model'][_0x48ac('0x47')](_0x29e4b4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x356e8c=(_0x230761,_0x56cc60)=>{this[_0x48ac('0x26')][_0x48ac('0xe5')](_0x40ff92=>{const {commandName:_0x4716ff,commandParams:_0x539d56=[]}=_0x56cc60,_0x3484ca=_0x230761[_0x48ac('0x18')](_0x515385=>(_t(_0x515385)&&(_0x515385=this[_0x48ac('0x26')]['createRange'](_0x515385[_0x48ac('0x4b')])),_0x515385))[_0x48ac('0x12d')](_0x3c5c4e=>_0x48ac('0x139')!==_0x3c5c4e['root'][_0x48ac('0xd3')]);if(_0x3484ca[_0x48ac('0x112')]<0x1)return;const _0x3eed46=Array['from'](this[_0x48ac('0x26')][_0x48ac('0xe7')][_0x48ac('0x5d')][_0x48ac('0x34')]())[_0x48ac('0x18')](_0x4909a5=>_0x30323b['fromRange'](_0x4909a5));_0x40ff92[_0x48ac('0x12')](_0x3484ca);for(const _0x545ba7 of this[_0x48ac('0xb7')][_0x48ac('0x99')]['commands']())_0x545ba7['refresh']();_0x539d56[_0x48ac('0xb1')]({'forceDefaultExecution':!0x0}),this[_0x48ac('0xb7')][_0x48ac('0xdb')](_0x4716ff,..._0x539d56);const _0x3dcd08=_0x3eed46['filter'](_0x59c8f7=>_0x48ac('0x139')!=_0x59c8f7['root']['rootName']);_0x3dcd08[_0x48ac('0x112')]>0x0&&_0x40ff92['setSelection'](_0x3dcd08);for(const _0x5ea598 of _0x3eed46)_0x5ea598[_0x48ac('0x51')]();});},_0x5b7dae=(_0x381853,_0x1a1651)=>0x1==_0x381853['length']&&0x1==_0x1a1651[_0x48ac('0x112')]&&_0x381853[0x0][_0x48ac('0x4b')][_0x48ac('0xe2')](_0x1a1651[0x0][_0x48ac('0x85')]),_0x49d51a=(_0x22374,_0x4198c3,_0x235ffa,_0x17a7c2)=>xt(_0x22374,_0x4198c3,_0x235ffa,_0x17a7c2,this[_0x48ac('0x26')])?[_0x22374,_0x4198c3]:xt(_0x4198c3,_0x22374,_0x17a7c2,_0x235ffa,this[_0x48ac('0x26')])?[_0x4198c3,_0x22374]:null;this['_defaultCallbacks']['set'](_0x48ac('0xc2'),_0x3ea00f),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0xf4'),_0x475f5f),this['_defaultCallbacks']['set']('insertion:join',_0x5b7dae),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0x15'),_0x49d51a),this[_0x48ac('0xcc')][_0x48ac('0x13')]('deletion:accept',_0x475f5f),this['_defaultCallbacks']['set'](_0x48ac('0xbb'),_0x3ea00f),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0x3e'),_0x5b7dae),this[_0x48ac('0xcc')]['set']('deletion:chain',_0x49d51a),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0x135'),_0x356e8c),this['_defaultCallbacks']['set']('formatInline:discard',_0x3ea00f),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0x39'),_0x5b7dae),this[_0x48ac('0xcc')][_0x48ac('0x13')](_0x48ac('0x13c'),_0x3ea00f),this[_0x48ac('0xcc')]['set']('formatBlock:accept',_0x356e8c),this[_0x48ac('0xcc')][_0x48ac('0x13')]('formatBlock:discard',_0x3ea00f),this['_defaultCallbacks'][_0x48ac('0x13')]('formatBlock:join',_0x5b7dae),this[_0x48ac('0xcc')][_0x48ac('0x13')]('formatBlock:chain',_0x3ea00f);}}function Bt(_0x4aa4c1,_0x5a5ab3,_0x3ee7ac){for(const _0x11fac3 of _0x5a5ab3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x11fac3['root']==_0x11fac3)return!0x1;if(!_0x3ee7ac[_0x48ac('0x29')](_0x11fac3))return!0x1;if(_0x4aa4c1['isObject'](_0x11fac3)||_0x4aa4c1[_0x48ac('0xa7')](_0x11fac3))return!0x0;}return!0x1;}function _t(_0x5ed7d8){return _0x5ed7d8[_0x48ac('0x4b')][_0x48ac('0x7')]==_0x5ed7d8[_0x48ac('0x85')][_0x48ac('0x9e')]&&_0x5ed7d8['end']['isAtStart'];}function Mt(_0x5cf122,_0x16d91c,_0x425163,_0x55426c){const _0xa15d8d=_0x1f0f72=>!_0x1f0f72[_0x48ac('0x133')]['is'](_0x48ac('0xbf'))&&!_0x55426c[_0x48ac('0x101')](_0x1f0f72[_0x48ac('0x133')]),_0x206d5c=_0x5cf122[_0x48ac('0x85')][_0x48ac('0x32')](_0xa15d8d),_0x5e8bf2=_0x5cf122[_0x48ac('0x4b')][_0x48ac('0x32')](_0xa15d8d,{'direction':'backward'});return(!_0x5cf122['start'][_0x48ac('0xe2')](_0x206d5c)||!_0x5cf122['end'][_0x48ac('0xe2')](_0x5e8bf2))&&(_0x206d5c[_0x48ac('0xf6')](_0x5e8bf2)?_0x425163[_0x48ac('0xbd')](_0x16d91c,{'range':_0x425163['createRange'](_0x206d5c,_0x5e8bf2)}):_0x425163[_0x48ac('0x10f')](_0x16d91c),!0x0);}function $t(_0xa307f0){return _0xdc36e(_0xa307f0);}function Nt(_0x1ef9fe){const _0x4dd078=_0x1ef9fe[_0x48ac('0x85')][_0x48ac('0x9e')];return _0x4dd078&&_0x4dd078['is'](_0x48ac('0xb4'));}function Rt(_0x31b89c,_0xae3b69){const _0x4879f0=_0xae3b69['schema'][_0x48ac('0x101')](_0x31b89c)||_0xae3b69['schema']['isSelectable'](_0x31b89c);return _0xae3b69[_0x48ac('0x54')](_0xae3b69[_0x48ac('0xa2')](_0x31b89c,_0x48ac('0x94')),_0x4879f0?_0xae3b69[_0x48ac('0x129')](_0x31b89c):_0xae3b69[_0x48ac('0xa2')](_0x31b89c,_0x48ac('0x4b')));}function xt(_0x4e8699,_0x20665c,_0x22fa9f,_0xe8b0a,_0x394c75){if(_0x22fa9f[_0x48ac('0x4b')]['isEqual'](_0xe8b0a[_0x48ac('0x85')]))return!0x0;if(_0x4e8699['type']!=_0x20665c[_0x48ac('0x115')])return!0x1;if(!_0x22fa9f[_0x48ac('0x4b')][_0x48ac('0xeb')](_0xe8b0a[_0x48ac('0x85')]))return!0x1;const _0x574c34=_0x394c75['createRange'](_0x22fa9f['end'],_0xe8b0a[_0x48ac('0x85')])[_0x48ac('0x1f')]();for(const _0xf60a21 of _0x574c34)if([_0x48ac('0x7a'),_0x48ac('0x1a')][_0x48ac('0xf8')](_0xf60a21['type'])&&_0x394c75[_0x48ac('0xcf')][_0x48ac('0xa7')](_0xf60a21[_0x48ac('0x133')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x3ba9=['isCollapsed','getChanges','always','_setSuggestionRange','markDeletion','data-suggestion','editing','start','_getSuggestionData','discardAllSuggestions','addMarker:suggestion:formatBlock','_editor','isAtEnd','ck-suggestion-marker','howMany','value','get','previous','backward','formatInline','consumable','containerElement','mapper','plugins','addHighlight','dataDowncast','track-changes-command-not-found','deletion:chain','isAfter','attributes','trackChangesCommand','containsRange','ck-suggestion-marker--active','createSelection','normal','removeMarker','getSuggestions','ck-suggestion-marker-formatBlock','error-saving-suggestion-data-suggestion-discarded','createPositionAt','addMarker:suggestion','getCustomProperty','_addThreadToSuggestion','markInsertion','hasComments','rethrowUnexpectedError','insertion','discard','widget','suggestionChanged','_suggestionState','push','_commentsRepository','_suggestionFactory','options','head','stop','notReady','getMultiRangeId','PendingActions','splice','_onDiscard','clear','_checkSuggestionCorrectness','markMultiRangeInsertion','map','isBlock','setAttribute','insertion:','oldRange','consume','isAtStart','batch','addUser','markMultiRangeBlockFormat','_registerDefaultCallbacks','isOwn','move','createRangeIn','insert','formatBlock:','next','acceptAllSuggestions','registerCustomCallback','deleteContent','define','nodeAfter','isMultiRange','_joinWithAdjacentSuggestions','ck-suggestion-marker-','formatBlock','getDifference','accept','skipNestingCheck','length','formatInline:accept','isObject','toJSON','adapter','CommentsRepository','config','track-changes-suggestion-not-found','ready','setSelection','markerNameToElements','insertion:join','size','registerPostFixer','fire','markMultiRangeDeletion','values','formatBlock:join','multipleBlocks','highest','stopListening','element','getMarkers','acceptSelectedSuggestions','root','forceDefaultExecution','editor','getItems','markerToHighlight','containsRangeInObject','never','isBefore','_getExternalAuthor','addMarkerName','newRange','formatBlock:accept','markerToData','getChangedMarkers','markerName','addComment','isEqual','add','_trackFormatChanges','isInContent','conversion','unbindElementFromMarkerName','commands','addClass','createdAt','end','detach','_model','_customCallbacks','change:activeMarkers','activeMarkers','removeClass','removeComment','getIntersection','formatGroupId','isTouching','change','bindElementToMarker','toViewElement','formatBlock:discard','set','subType','track-changes-user-not-found','isLimit','updateMarker','schema','_descriptionFactory','suggestion','addMarker','getShiftedBy','_refreshSuggestionsChain','PENDING_ACTION_SUGGESTION','getLastMatchingPosition','execute','getAncestors','_handleNewSuggestionMarker','split','return','discardSuggestion','filter','rejected','getRanges','markInlineFormat','acceptSuggestion','catch','addRange','authoredAt','model','remove','$graveyard','_saved','_addSuggestionMarker','moveTargetPosition','enableReadOnlyMode','change:data','track-changes-adapter-missing-getsuggestion','unbind','containsPosition','_setSuggestionData','elementStart','formatBlock:chain','deletion','editingDowncast','isNextTo','collaboration.channelId','targetPosition','delete','_defaultCallbacks','getFirstRange','then','commentThread','showSuggestionHighlights','_rangeIsInLocalUserInsertion','forward','lowest','isExternal','selection','_adapter','removed','elementEnd','upcast','listenTo','Users','getAttribute','for','createRange','documentSelection','addCommentThread','_splitMarkerName','_updateSuggestionData','markerReady','_cutOutSuggestionMarker','getSuggestion','TrackChangesEditing','accepted','suggestion:','isUndo','some','isIntersectingWithRange','position','@external','dataToMarker','fetchCommentThread','fromRange','getUser','trackChanges.mergeNestedSuggestions','pluginName','_createSuggestion','deletion:accept','trackChanges','elementToElement','init','authorName','addSuggestionData','deletion:','enqueueChange','_findSuggestions','substr','parent','from','enableCommand','dataReady','marker-count','$textProxy','_isForcedDefaultExecutionBlock','range','high','insertContent','name','type','getFirstMarker','writer','differ','rootName','insertion:discard','locale','has','getRange','suggestionUnloaded','external:','multi','getSuggestionCallback','commandName','isSelectable','_joinSuggestions','chain','after','_getAuthorFromId','discardSelectedSuggestions','low','item','join','document','applyOperation','insertion:chain','nodeBefore','creator','isDocumentOperation','formatInline:chain','_mergeNestedSuggestions','group','markers','createPositionBefore','_removeSuggestion','_enabledCommands','data','includes','suggestionLoaded','getNearestSelectionRange','author','reconvertMarker','insertion:accept','getAllAdjacentSuggestions','every','updateSuggestion','removeMarkers','_suggestions','isInsideObject'];(function(_0x4c21d8,_0x3ba9de){const _0x4c52a9=function(_0xe8e0d0){while(--_0xe8e0d0){_0x4c21d8['push'](_0x4c21d8['shift']());}};_0x4c52a9(++_0x3ba9de);}(_0x3ba9,0x1a4));const _0x4c52=function(_0x4c21d8,_0x3ba9de){_0x4c21d8=_0x4c21d8-0x0;let _0x4c52a9=_0x3ba9[_0x4c21d8];return _0x4c52a9;};import{Plugin as _0x2278de,PendingActions as _0x42c456}from'ckeditor5/src/core';import{LiveRange as _0x10252d}from'ckeditor5/src/engine';import{CKEditorError as _0x1b57cc,uid as _0x1e91a8,priorities as _0xdb9c03,logWarning as _0x111092}from'ckeditor5/src/utils';import{toWidget as _0x58eae2}from'ckeditor5/src/widget';import{Users as _0x59def2,hashObject as _0x24249f}from'ckeditor5-collaboration/src/collaboration-core';import _0x4a261f from'./commands/trackchangescommand';import _0xdf3be2 from'./commands/acceptsuggestioncommand';import _0x2a530f from'./commands/discardsuggestioncommand';import _0x596ff8 from'./commands/executeonallsuggestionscommand';import _0x289e98 from'./commands/executeonselectedsuggestionscommand';import _0x24016f from'./suggestion';import _0x2f3657 from'./suggestiondescriptionfactory';import _0x804455 from'./integrations/alignment';import _0x55a5c5 from'./integrations/basicstyles';import _0x152a8f from'./integrations/blockquote';import _0x5a9363 from'./integrations/ckbox';import _0x3ac387 from'./integrations/codeblock';import _0x51ae5e from'./integrations/comments';import _0x4ee884 from'./integrations/deletecommand';import _0x156c0f from'./integrations/documentlist';import _0x5842a7 from'./integrations/entercommand';import _0x55f160 from'./integrations/findandreplace';import _0x42bd03 from'./integrations/font';import _0x60438 from'./integrations/formatpainter';import _0x4f47b9 from'./integrations/heading';import _0x4c875c from'./integrations/highlight';import _0x5e6a32 from'./integrations/horizontalline';import _0x22a34f from'./integrations/htmlembed';import _0x42c5da from'./integrations/image';import _0xf36e1a from'./integrations/imagereplace';import _0x2d0ede from'./integrations/importword';import _0xa78eac from'./integrations/indent';import _0x3d1095 from'./integrations/inputcommand';import _0x2d3810 from'./integrations/link';import _0x487e77 from'./integrations/list';import _0x2da241 from'./integrations/listproperties';import _0x562b8b from'./integrations/mediaembed';import _0x197e76 from'./integrations/mention';import _0x5f2e9e from'./integrations/pagebreak';import _0x42d554 from'./integrations/paragraph';import _0x498bc6 from'./integrations/removeformat';import _0x45cddb from'./integrations/restrictededitingmode';import _0x372bc2 from'./integrations/shiftentercommand';import _0x1fe1a6 from'./integrations/standardeditingmode';import _0x4d709 from'./integrations/style';import _0x1e8fa9 from'./integrations/table';import _0x427cca from'./integrations/tablemergesplit';import _0xcfaffd from'./integrations/tableheadings';import _0x16251a from'./integrations/tableclipboard';import _0x194040 from'./integrations/tablecolumnresize';import _0x33ed61 from'./integrations/template';import _0x559816 from'./integrations/tableofcontents';import _0x5166b4 from'./integrations/title';import _0x12e4df from'./integrations/undo';import{getTranslation as _0x495697}from'./utils/common-translations';import _0x40e331 from'./integrations/tablecaption';import _0x3de438 from'./integrations/documentlistproperties';import _0x366f03 from'./integrations/tableproperties';export default class p extends _0x2278de{static get['requires'](){return[_0x4c52('0x137'),_0x59def2,_0x42c456,_0x804455,_0x55a5c5,_0x152a8f,_0x5a9363,_0x3ac387,_0x51ae5e,_0x4ee884,_0x156c0f,_0x3de438,_0x5842a7,_0x55f160,_0x42bd03,_0x60438,_0x4f47b9,_0x4c875c,_0x5e6a32,_0x22a34f,_0x42c5da,_0xf36e1a,_0x2d0ede,_0xa78eac,_0x3d1095,_0x2d3810,_0x487e77,_0x2da241,_0x562b8b,_0x197e76,_0x5f2e9e,_0x42d554,_0x498bc6,_0x45cddb,_0x372bc2,_0x1fe1a6,_0x4d709,_0x1e8fa9,_0x427cca,_0xcfaffd,_0x40e331,_0x16251a,_0x194040,_0x559816,_0x366f03,_0x33ed61,_0x5166b4,_0x12e4df];}static get[_0x4c52('0x8c')](){return _0x4c52('0x7f');}constructor(_0x46b947){function _0x2191d0(_0x9bf31e){return _0x9bf31e[_0x4c52('0x115')](_0x1f5a40=>String['fromCharCode'](_0x1f5a40))[_0x4c52('0xb9')]('');}super(_0x46b947),this['set']('activeMarkers',[]),this['on'](_0x4c52('0x2b'),(_0x4379a9,_0x4bbb2a,_0x1a43a5,_0x21c4be)=>{this[_0x4c52('0x29')][_0x4c52('0x32')](()=>{for(const _0x20389d of[..._0x21c4be,..._0x1a43a5])this[_0x4c52('0x29')][_0x4c52('0xc3')][_0x4c52('0xaa')](_0x20389d)&&_0x46b947[_0x4c52('0xda')][_0x4c52('0xcc')](_0x20389d);});}),this[_0x4c52('0x3c')]=new _0x2f3657(this[_0x4c52('0x10')][_0x4c52('0x51')][_0x4c52('0x3b')],this[_0x4c52('0x10')]['locale']),this[_0x4c52('0x6f')]=null,this[_0x4c52('0x109')]=new Dt(this[_0x4c52('0x10')]),this['_suggestions']=new Map(),this[_0x4c52('0x108')]=_0x46b947[_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x137')),this[_0x4c52('0xc6')]=new Set(),this['_model']=this['editor'][_0x4c52('0x51')],this['_suggestionState']=new WeakMap(),this[_0x4c52('0x9e')]=!0x1,_0x46b947[_0x4c52('0x138')]['define']('trackChanges.trackFormatChanges','default'),this[_0x4c52('0x20')]=_0x46b947[_0x4c52('0x138')][_0x4c52('0xe4')]('trackChanges.trackFormatChanges'),_0x46b947['config'][_0x4c52('0x129')](_0x4c52('0x8b'),!0x0),this['_mergeNestedSuggestions']=_0x46b947[_0x4c52('0x138')][_0x4c52('0xe4')](_0x4c52('0x8b')),this[_0x4c52('0xf2')]=new _0x4a261f(_0x46b947,this[_0x4c52('0xc6')]),this[_0x2191d0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2191d0([0x34,0x30,0x34,0x36,0x31,0x36,0x31,0x34]);}[_0x4c52('0x91')](){const _0x59c665=this[_0x4c52('0x10')];_0x59c665['conversion'][_0x4c52('0x76')]('editingDowncast')[_0x4c52('0x12')]({'model':_0x4c52('0x3d'),'view':_0x30d6fd=>{const {id:_0x3cf57a,type:_0x49faeb}=this[_0x4c52('0x7a')](_0x30d6fd[_0x4c52('0x1c')]),_0x1cb8bc=[_0x4c52('0xe1'),_0x4c52('0x12d')+_0x49faeb];let _0x9a292a=0xbb8;return this[_0x4c52('0x2c')][_0x4c52('0xc8')](_0x30d6fd[_0x4c52('0x1c')])&&(_0x1cb8bc[_0x4c52('0x107')](_0x4c52('0xf4')),_0x9a292a=0xbc2),_0x4c52('0x5f')==_0x49faeb&&(_0x9a292a+=0x5),{'classes':_0x1cb8bc,'attributes':{'data-suggestion':_0x3cf57a},'priority':_0x9a292a};}}),_0x59c665[_0x4c52('0x22')]['for'](_0x4c52('0xed'))[_0x4c52('0x1f')](_0x5cf451=>{_0x5cf451['on'](_0x4c52('0xfc'),(_0x20b112,_0x1f65f7,_0x16bdf1)=>{if(!_0x16bdf1[_0x4c52('0x10a')]['showSuggestionHighlights'])return;const _0x430b93=_0x1f65f7[_0x4c52('0xb8')];if(!_0x430b93)return;const _0x95a1b8=_0x16bdf1[_0x4c52('0xea')][_0x4c52('0x34')](_0x430b93);_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')][_0x4c52('0x134')](_0x430b93)&&_0x95a1b8&&!_0x95a1b8[_0x4c52('0xfd')](_0x4c52('0x104'))&&_0x95a1b8['is'](_0x4c52('0xe9'))&&_0x58eae2(_0x95a1b8,_0x16bdf1['writer']);},{'priority':_0x4c52('0xa0')});}),_0x59c665['conversion'][_0x4c52('0x76')](_0x4c52('0xed'))[_0x4c52('0x12')]({'model':'suggestion','view':(_0x3ec832,_0x3d3cdd)=>{if(!_0x3d3cdd[_0x4c52('0x10a')][_0x4c52('0x69')])return null;const {type:_0x1aef35}=this['_splitMarkerName'](_0x3ec832[_0x4c52('0x1c')]);return{'classes':[_0x4c52('0xe1'),_0x4c52('0x12d')+_0x1aef35],'priority':0xbb8};}});const _0x198aac=({showActiveMarkers:_0x1ca819=!0x0}={})=>(_0x1852d4,_0x572ccc,_0x266638)=>{if(!_0x572ccc[_0x4c52('0xb8')])return;if(_0x572ccc[_0x4c52('0xb8')]['is']('selection'))return void _0x266638[_0x4c52('0xe8')]['consume'](_0x572ccc[_0x4c52('0xb8')],_0x1852d4[_0x4c52('0xa2')]);const _0x4e3e96=_0x266638[_0x4c52('0xea')][_0x4c52('0x34')](_0x572ccc[_0x4c52('0xb8')]);if(!(_0x572ccc[_0x4c52('0xb8')]['is'](_0x4c52('0xb'))&&_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')][_0x4c52('0x116')](_0x572ccc[_0x4c52('0xb8')])&&!_0x4e3e96[_0x4c52('0xfd')](_0x4c52('0xec'))))return;const {id:_0x478422}=this[_0x4c52('0x7a')](_0x572ccc[_0x4c52('0x1c')]);_0x266638['writer']['addClass']([_0x4c52('0xe1'),_0x4c52('0xf9')],_0x4e3e96),_0x266638[_0x4c52('0xa5')][_0x4c52('0x117')](_0x4c52('0xd9'),_0x478422,_0x4e3e96),_0x266638[_0x4c52('0xea')][_0x4c52('0x33')](_0x4e3e96,_0x572ccc[_0x4c52('0x1c')]),_0x1ca819&&(this[_0x4c52('0x2c')]['includes'](_0x572ccc[_0x4c52('0x1c')])?_0x266638['writer'][_0x4c52('0x25')](_0x4c52('0xf4'),_0x4e3e96):_0x266638['writer'][_0x4c52('0x2d')]('ck-suggestion-marker--active',_0x4e3e96));for(const _0x5f1585 of _0x59c665['model'][_0x4c52('0x122')](_0x572ccc['item'])[_0x4c52('0x11')]())_0x266638[_0x4c52('0xe8')][_0x4c52('0x11a')](_0x5f1585,_0x1852d4['name']);_0x266638[_0x4c52('0xe8')]['consume'](_0x572ccc[_0x4c52('0xb8')],_0x1852d4[_0x4c52('0xa2')]);};_0x59c665[_0x4c52('0x22')]['for'](_0x4c52('0xed'))[_0x4c52('0x1f')](_0x13af6c=>{_0x13af6c['on'](_0x4c52('0xde'),(_0x360ce6,_0x2a1527,_0x385430)=>{_0x385430['options']['showSuggestionHighlights']&&_0x198aac({'showActiveMarkers':!0x1})(_0x360ce6,_0x2a1527,_0x385430);},{'priority':_0x4c52('0x9')});}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0xed'))[_0x4c52('0x1a')]({'model':'suggestion','view':(_0x2540a6,_0x36e5f2)=>_0x36e5f2['options'][_0x4c52('0x69')]?null:{'group':'suggestion','name':_0x2540a6[_0x4c52('0x97')](0xb)}}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0x72'))[_0x4c52('0x90')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x196b7d,{writer:_0x152dc0})=>{let _0x4e84f0=_0x4c52('0x81')+_0x196b7d[_0x4c52('0x75')]('suggestion-type')+':'+_0x196b7d[_0x4c52('0x75')]('id');return _0x196b7d[_0x4c52('0x75')](_0x4c52('0x9c'))&&(_0x4e84f0+=':'+_0x196b7d[_0x4c52('0x75')](_0x4c52('0x9c'))),_0x152dc0['createElement']('$marker',{'data-name':_0x4e84f0});}}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0x72'))[_0x4c52('0x87')]({'view':_0x4c52('0x3d')}),_0x59c665[_0x4c52('0x22')][_0x4c52('0x76')](_0x4c52('0x60'))[_0x4c52('0x1f')](_0x1a18bb=>{_0x1a18bb['on'](_0x4c52('0xde'),_0x198aac(),{'priority':_0x4c52('0xa0')});}),_0x59c665['conversion'][_0x4c52('0x76')]('editingDowncast')[_0x4c52('0x1f')](_0x5e0884=>{_0x5e0884['on']('removeMarker:suggestion:formatBlock',(_0x381acf,_0xbc38da,_0x114fcd)=>{const _0x2026f7=_0x114fcd[_0x4c52('0xea')][_0x4c52('0x0')](_0xbc38da[_0x4c52('0x1c')]);if(_0x2026f7)for(const _0x454197 of _0x2026f7)_0x454197[_0x4c52('0xfd')](_0x4c52('0xec'))||(_0x114fcd['writer'][_0x4c52('0x2d')]([_0x4c52('0xe1'),_0x4c52('0xf9'),_0x4c52('0xf4')],_0x454197),_0x114fcd[_0x4c52('0xa5')]['removeAttribute']('data-suggestion',_0x454197),_0x114fcd[_0x4c52('0xea')][_0x4c52('0x23')](_0x454197,_0xbc38da[_0x4c52('0x1c')]));},{'priority':'high'});}),_0x59c665[_0x4c52('0x51')]['document'][_0x4c52('0x3')](_0x167b0c=>{let _0x5445dc=!0x1;const _0x4091d3=Array[_0x4c52('0x99')](_0x59c665[_0x4c52('0x51')][_0x4c52('0xba')][_0x4c52('0xa6')][_0x4c52('0x1b')]()),_0x375df8=new Set();for(const {name:_0x3fa574,data:_0x45a153}of _0x4091d3){const {group:_0x118995,type:_0x3c3c8b,id:_0x5587c3}=this[_0x4c52('0x7a')](_0x3fa574);if(_0x4c52('0x3d')!==_0x118995)continue;const _0x35bbc1=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x5587c3);if(null!=_0x45a153[_0x4c52('0x18')]){_0x4c52('0xe7')==_0x3c3c8b&&(_0x5445dc=_0x5445dc||Mt(_0x45a153[_0x4c52('0x18')],_0x3fa574,_0x167b0c,_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')]));if(_0x45a153[_0x4c52('0x18')]['isCollapsed']||_0x4c52('0x53')==_0x45a153[_0x4c52('0x18')][_0x4c52('0xe')][_0x4c52('0xa7')]||_0x4c52('0x12e')==_0x3c3c8b&&!Nt(_0x45a153[_0x4c52('0x18')])||_0x4c52('0x5f')==_0x3c3c8b&&!(!_t(_0x57d588=_0x45a153[_0x4c52('0x18')])&&!function(_0xa44e9b){return _0xa44e9b[_0x4c52('0xdb')]['parent']==_0xa44e9b[_0x4c52('0x27')][_0x4c52('0xbd')]&&_0xa44e9b[_0x4c52('0xdb')][_0x4c52('0xe0')];}(_0x57d588)))_0x167b0c[_0x4c52('0xf7')](_0x3fa574),_0x5445dc=!0x0;else{if(!_0x35bbc1||!_0x35bbc1[_0x4c52('0x21')])continue;_0x375df8[_0x4c52('0x1f')](_0x35bbc1);}}}var _0x57d588;return _0x375df8[_0x4c52('0x2')]>0x0&&(_0x5445dc=!!this[_0x4c52('0x12c')](_0x375df8)||_0x5445dc),_0x5445dc;}),_0x59c665[_0x4c52('0x51')]['document']['registerPostFixer'](_0x7cd9c3=>{let _0x283a4a=!0x1;for(const _0x4e86d7 of _0x59c665[_0x4c52('0x51')][_0x4c52('0xba')][_0x4c52('0xa6')][_0x4c52('0xd5')]()){if(_0x4c52('0x123')!=_0x4e86d7[_0x4c52('0xa3')])continue;const _0x1868a9=_0x4e86d7[_0x4c52('0x85')]['getShiftedBy'](_0x4e86d7[_0x4c52('0x132')]);if(_0x1868a9['isAtEnd'])for(const _0x532a11 of this[_0x4c52('0xd2')][_0x4c52('0x6')]()){if(_0x532a11[_0x4c52('0x12b')]||!_0x532a11['isInContent'])continue;if(_0x4c52('0x12e')!=_0x532a11[_0x4c52('0xa3')])continue;const _0x454bae=_0x532a11['getFirstRange']();if(_0x454bae[_0x4c52('0xdb')][_0x4c52('0x98')]!=_0x454bae[_0x4c52('0x27')][_0x4c52('0x98')]&&_0x454bae[_0x4c52('0x27')][_0x4c52('0x1e')](_0x4e86d7['position'])){const _0x4f7903=_0x59c665[_0x4c52('0x51')]['createRange'](_0x454bae[_0x4c52('0xdb')],_0x1868a9);_0x7cd9c3[_0x4c52('0x3a')](_0x532a11['getFirstMarker'](),{'range':_0x4f7903}),_0x283a4a=!0x0;}}}return _0x283a4a;}),_0x59c665[_0x4c52('0x51')]['markers']['on']('update:suggestion',(_0x23f1c3,_0x35757b,_0x272b20)=>{if(null==_0x272b20){const {id:_0x36df38}=this[_0x4c52('0x7a')](_0x35757b['name']),_0x37c167=this[_0x4c52('0xd2')]['get'](_0x36df38);_0x37c167&&_0x37c167['addMarkerName'](_0x35757b['name']);}}),_0x59c665[_0x4c52('0x51')][_0x4c52('0xba')]['on'](_0x4c52('0x58'),()=>{const _0x5488b5=Array[_0x4c52('0x99')](_0x59c665['model'][_0x4c52('0xba')][_0x4c52('0xa6')]['getChangedMarkers']())[_0x4c52('0x49')](_0x33887c=>'suggestion'===this['_splitMarkerName'](_0x33887c[_0x4c52('0xa2')])[_0x4c52('0xc2')]);if(0x0===_0x5488b5['length'])return;_0x5488b5['sort']((_0x226c9e,_0x153408)=>{const _0x218208=_0x226c9e[_0x4c52('0xc7')][_0x4c52('0x119')],_0x2c83ac=_0x153408[_0x4c52('0xc7')][_0x4c52('0x119')];return null===_0x218208&&null===_0x2c83ac?0x0:null===_0x218208&&null!==_0x2c83ac?-0x1:null!==_0x218208&&null===_0x2c83ac?0x1:_0x218208[_0x4c52('0xdb')][_0x4c52('0x15')](_0x2c83ac[_0x4c52('0xdb')])?-0x1:0x1;});const _0x217bf8=new Set(),_0x884f3b=new Set();for(const {name:_0x555be0,data:_0x641b72}of _0x5488b5){const {id:_0x356308}=this[_0x4c52('0x7a')](_0x555be0);if(null===_0x641b72[_0x4c52('0x119')]){const _0x1c16f6=this[_0x4c52('0x45')](_0x555be0);_0x884f3b[_0x4c52('0x1f')](_0x1c16f6);}else{const _0x2b9b90=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x356308);null!==_0x641b72[_0x4c52('0x18')]||_0x2b9b90['isInContent']?(_0x217bf8[_0x4c52('0x1f')](_0x2b9b90[_0x4c52('0x10b')]),_0x884f3b['add'](_0x2b9b90)):this[_0x4c52('0xc5')](_0x2b9b90);}}_0x884f3b[_0x4c52('0x2')]>0x0&&this[_0x4c52('0x40')](_0x884f3b);for(const _0x21b090 of _0x217bf8)this[_0x4c52('0x4')](_0x4c52('0x105'),_0x21b090);}),_0x59c665[_0x4c52('0x51')]['on'](_0x4c52('0xbb'),(_0x1a74bb,_0x2343a2)=>{const _0x367bc7=_0x2343a2[0x0];if(!this['_suggestions'][_0x4c52('0x2')])return;if(!_0x367bc7[_0x4c52('0xbf')])return;if(_0x367bc7[_0x4c52('0x11c')][_0x4c52('0x82')]||!_0x367bc7[_0x4c52('0x11c')]['isLocal'])return;let _0x5b5afc,_0x1824cd;switch(_0x367bc7[_0x4c52('0xa3')]){case _0x4c52('0x123'):_0x5b5afc=_0x59c665[_0x4c52('0x51')][_0x4c52('0xfb')](_0x367bc7['position']),_0x1824cd=_0x5b5afc[_0x4c52('0x3f')](_0x367bc7[_0x4c52('0xe2')]);break;case _0x4c52('0x46'):_0x5b5afc=_0x59c665[_0x4c52('0x51')][_0x4c52('0xfb')](_0x367bc7['splitPosition']),_0x1824cd=_0x59c665[_0x4c52('0x51')][_0x4c52('0xfb')](_0x367bc7[_0x4c52('0x56')]);break;case _0x4c52('0x121'):_0x5b5afc=_0x59c665[_0x4c52('0x51')]['createPositionAt'](_0x367bc7[_0x4c52('0x63')]),_0x1824cd=_0x5b5afc['getShiftedBy'](_0x367bc7[_0x4c52('0xe2')]);break;default:return;}const _0xd9fe=_0x59c665[_0x4c52('0x51')][_0x4c52('0x77')](_0x5b5afc,_0x1824cd);_0x59c665[_0x4c52('0x51')][_0x4c52('0x32')](()=>{for(const {suggestion:_0x178d3d,meta:_0x1da90a}of this[_0x4c52('0x96')](_0xd9fe)){if(_0x178d3d[_0x4c52('0x12b')])continue;if(_0x4c52('0xe7')==_0x178d3d['type'])continue;const _0x449a01=_0x178d3d['data']&&_0x178d3d[_0x4c52('0xc7')][_0x4c52('0x8')];(_0x4c52('0x12e')!=_0x178d3d[_0x4c52('0xa3')]||_0x4c52('0x46')==_0x367bc7[_0x4c52('0xa3')]&&!_0x449a01)&&(_0x1da90a['containsRangeInObject']||'insertion'==_0x178d3d[_0x4c52('0xa3')]&&_0x1da90a['isOwn']||_0x178d3d[_0x4c52('0x66')]()['containsRange'](_0xd9fe)&&this['_breakSuggestionMarker'](_0x178d3d,_0x5b5afc,_0x1824cd));}});},{'priority':_0x4c52('0x6c')}),_0x59c665[_0x4c52('0x51')]['on'](_0x4c52('0x128'),(_0x3c6346,_0x3f2a05)=>{const _0x1da72f=_0x3f2a05[0x0],_0x3433cf=_0x3f2a05[0x1];if(_0x3433cf&&_0x3433cf[_0x4c52('0xf')])return;if(this[_0x4c52('0x9e')])return;if(!this['trackChangesCommand'][_0x4c52('0xe3')])return;if(_0x1da72f[_0x4c52('0xd4')])return;const _0x2d8c56=_0x59c665['model'][_0x4c52('0x3b')],{start:_0x285301,end:_0x59b2f7}=_0x1da72f[_0x4c52('0x66')](),_0x4e1859=_0x285301[_0x4c52('0x12a')]&&_0x2d8c56['isLimit'](_0x285301['nodeAfter'])?null:_0x2d8c56['getNearestSelectionRange'](_0x285301,_0x4c52('0x6b')),_0x66e48d=_0x59b2f7[_0x4c52('0xbd')]&&_0x2d8c56['isLimit'](_0x59b2f7[_0x4c52('0xbd')])?null:_0x2d8c56[_0x4c52('0xca')](_0x59b2f7,_0x4c52('0xe6')),_0x4823b4=_0x59c665[_0x4c52('0x51')][_0x4c52('0x77')](_0x4e1859?_0x4e1859[_0x4c52('0xdb')]:_0x285301,_0x66e48d?_0x66e48d[_0x4c52('0x27')]:_0x59b2f7);_0x59c665[_0x4c52('0x51')][_0x4c52('0x32')](_0x5521ae=>{this[_0x4c52('0xd8')](_0x4823b4);const _0xfd4647=_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')][_0x4c52('0xca')](_0x4823b4[_0x4c52('0xdb')]);_0x1da72f['is'](_0x4c52('0x78'))?_0x5521ae[_0x4c52('0x13b')](_0xfd4647):_0x1da72f['setTo'](_0xfd4647);}),_0x3c6346['stop']();},{'priority':_0xdb9c03[_0x4c52('0xf6')]+0xa}),_0x59c665[_0x4c52('0x51')]['on'](_0x4c52('0xa1'),(_0x26f1a4,_0x5cb3c7)=>{const _0x2940ac=_0x5cb3c7[_0x5cb3c7[_0x4c52('0x132')]-0x1];_0x2940ac&&_0x2940ac[_0x4c52('0xf')]||this['_isForcedDefaultExecutionBlock']||this[_0x4c52('0xf2')][_0x4c52('0xe3')]&&(_0x59c665[_0x4c52('0x51')][_0x4c52('0x32')](()=>{let _0x553e96=_0x59c665['model']['insertContent'](_0x5cb3c7[0x0],_0x5cb3c7[0x1],_0x5cb3c7[0x2],{'forceDefaultExecution':!0x0});if(!_0x553e96)return;_0x26f1a4[_0x4c52('0x47')]=_0x553e96['clone']();const _0x18a7ec=_0x553e96[_0x4c52('0x27')][_0x4c52('0xbd')],_0x5be809=_0x59c665[_0x4c52('0x51')][_0x4c52('0x3b')];_0x18a7ec&&_0x5be809['isBlock'](_0x18a7ec)&&!_0x5be809['isObject'](_0x18a7ec)&&(_0x553e96=_0x59c665[_0x4c52('0x51')][_0x4c52('0x77')](_0x553e96[_0x4c52('0xdb')],_0x59c665[_0x4c52('0x51')]['createPositionAt'](_0x18a7ec,'end'))),this[_0x4c52('0xff')](_0x553e96);}),_0x26f1a4[_0x4c52('0x10c')]());},{'priority':_0x4c52('0xa0')}),this[_0x4c52('0x10')][_0x4c52('0x24')]['add'](_0x4c52('0x8f'),this[_0x4c52('0xf2')]),this[_0x4c52('0x9a')](_0x4c52('0x8f'));const _0x58a7b5=new _0xdf3be2(_0x59c665,this[_0x4c52('0xd2')]);_0x59c665['commands'][_0x4c52('0x1f')](_0x4c52('0x4d'),_0x58a7b5),this[_0x4c52('0x9a')](_0x4c52('0x4d'));const _0x529962=new _0x2a530f(_0x59c665,this[_0x4c52('0xd2')]);_0x59c665[_0x4c52('0x24')][_0x4c52('0x1f')]('discardSuggestion',_0x529962),this[_0x4c52('0x9a')]('discardSuggestion'),_0x59c665[_0x4c52('0x24')]['add'](_0x4c52('0x126'),new _0x596ff8(_0x59c665,_0x58a7b5,this['_suggestions'])),this['enableCommand'](_0x4c52('0x126')),_0x59c665[_0x4c52('0x24')]['add'](_0x4c52('0xdd'),new _0x596ff8(_0x59c665,_0x529962,this[_0x4c52('0xd2')])),this[_0x4c52('0x9a')](_0x4c52('0xdd')),_0x59c665[_0x4c52('0x24')][_0x4c52('0x1f')](_0x4c52('0xd'),new _0x289e98(_0x59c665,_0x58a7b5,this['_suggestions'])),this[_0x4c52('0x9a')](_0x4c52('0xd')),_0x59c665[_0x4c52('0x24')][_0x4c52('0x1f')](_0x4c52('0xb6'),new _0x289e98(_0x59c665,_0x529962,this[_0x4c52('0xd2')])),this[_0x4c52('0x9a')](_0x4c52('0xb6'));const _0x59b785=_0x59c665['plugins'][_0x4c52('0xe4')]('CommentsRepository');this[_0x4c52('0x73')](_0x59b785,_0x4c52('0x1d'),(_0x48eb31,{threadId:_0xf75c9})=>{const _0x4e2260=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0xf75c9);_0x4e2260&&_0x4e2260[_0x4c52('0x68')]&&0x1===_0x4e2260['commentThread']['length']&&this['_updateSuggestionData'](_0xf75c9,{'hasComments':!0x0});},{'priority':_0x4c52('0xb7')}),this[_0x4c52('0x73')](_0x59b785,_0x4c52('0x2e'),(_0x51fad1,{threadId:_0x215b06})=>{const _0x2c7d07=this['_suggestions'][_0x4c52('0xe4')](_0x215b06);_0x2c7d07&&_0x2c7d07['commentThread']&&!_0x2c7d07[_0x4c52('0x68')][_0x4c52('0x132')]&&this[_0x4c52('0x7b')](_0x215b06,{'hasComments':!0x1});},{'priority':_0x4c52('0xb7')});}set[_0x4c52('0x136')](_0x3a011d){if(this[_0x4c52('0x6f')])throw new _0x1b57cc('track-changes-adapter-already-set',this);this[_0x4c52('0x6f')]=_0x3a011d;}get['adapter'](){return this['_adapter'];}[_0x4c52('0xf8')]({skipNotAttached:_0x1ec1c4=!0x1,toJSON:_0x76919f=!0x1}={}){const _0x5bbf89=[];for(const _0x5d3913 of this[_0x4c52('0xd2')][_0x4c52('0x6')]())_0x1ec1c4&&!_0x5d3913[_0x4c52('0x21')]||_0x5bbf89[_0x4c52('0x107')](_0x5d3913);return _0x76919f?_0x5bbf89[_0x4c52('0x115')](_0x5160ce=>_0x5160ce[_0x4c52('0x135')]()):_0x5bbf89;}[_0x4c52('0x7e')](_0x230616){const _0xa85b76=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x230616);if(!_0xa85b76)throw new _0x1b57cc(_0x4c52('0x139'),this);return _0xa85b76;}['hasSuggestion'](_0x358184){return this[_0x4c52('0xd2')]['has'](_0x358184);}[_0x4c52('0x93')](_0x3293d1){const {authorId:_0x48cdae,id:_0x14acca,attributes:_0x39b83b}=_0x3293d1,[_0x2c3832,_0x5ddf9]=_0x3293d1['type'][_0x4c52('0x46')](':'),_0x12db62=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x14acca)||this[_0x4c52('0x8d')](_0x2c3832,_0x5ddf9,_0x14acca,_0x48cdae,_0x39b83b);if(this[_0x4c52('0xfe')](_0x12db62),this[_0x4c52('0x113')](_0x12db62,_0x2c3832,_0x5ddf9||null,_0x48cdae),_0x12db62[_0x4c52('0x26')]=_0x3293d1[_0x4c52('0x26')],_0x39b83b&&_0x39b83b['@external']){const _0xb27333=_0x39b83b[_0x4c52('0x86')],_0x207303=this[_0x4c52('0x16')](_0xb27333[_0x4c52('0x92')]);_0x12db62[_0x4c52('0x50')]=_0xb27333[_0x4c52('0x26')],_0x12db62[_0x4c52('0xcb')]=_0x207303,_0x12db62[_0x4c52('0x6d')]=!0x0;}else _0x12db62[_0x4c52('0x50')]=_0x3293d1[_0x4c52('0x26')];switch(_0x3293d1[_0x4c52('0xc7')]&&(_0x12db62[_0x4c52('0xc7')]=_0x3293d1['data']),_0x3293d1[_0x4c52('0xf1')]&&(_0x12db62[_0x4c52('0xf1')]=_0x3293d1[_0x4c52('0xf1')]),this[_0x4c52('0x6f')]&&this[_0x4c52('0x6f')]['addSuggestion']||(_0x12db62[_0x4c52('0x54')]=!0x0),this[_0x4c52('0x106')][_0x4c52('0xe4')](_0x12db62)){case'notReady':this['_suggestionState'][_0x4c52('0x36')](_0x12db62,'dataReady');break;case _0x4c52('0x7c'):_0x12db62[_0x4c52('0x21')]?(this['_suggestionState']['set'](_0x12db62,'ready'),this['fire'](_0x4c52('0xc9'),_0x12db62)):this['_suggestionState'][_0x4c52('0x36')](_0x12db62,_0x4c52('0x70'));}return _0x12db62;}['acceptSuggestion'](_0x20a6aa){this[_0x4c52('0xf')](()=>{this[_0x4c52('0x10')]['model'][_0x4c52('0x32')](()=>{for(const _0x49386c of _0x20a6aa[_0x4c52('0xce')]())_0x49386c[_0x4c52('0x130')]();});});}[_0x4c52('0x48')](_0x31aa1c){this[_0x4c52('0xf')](()=>{this[_0x4c52('0x10')][_0x4c52('0x51')]['change'](()=>{for(const _0xac602 of _0x31aa1c['getAllAdjacentSuggestions']())_0xac602[_0x4c52('0x103')]();});});}[_0x4c52('0x9a')](_0x191ce0,_0x275fd5){const _0x40e505=this[_0x4c52('0x10')][_0x4c52('0x24')][_0x4c52('0xe4')](_0x191ce0);if(!_0x40e505)throw new _0x1b57cc(_0x4c52('0xee'),this,{'commandName':_0x191ce0});this['_enabledCommands'][_0x4c52('0x1f')](_0x40e505),_0x275fd5&&_0x40e505['on']('execute',(_0x3ba975,_0xd320a5)=>{this[_0x4c52('0xf2')][_0x4c52('0xe3')]&&(this[_0x4c52('0x9e')]||_0xd320a5[_0x4c52('0x132')]>0x0&&_0xd320a5[_0xd320a5[_0x4c52('0x132')]-0x1]&&_0xd320a5[_0xd320a5[_0x4c52('0x132')]-0x1][_0x4c52('0xf')]||(_0x275fd5((..._0x494ac5)=>_0x40e505[_0x4c52('0x43')](..._0x494ac5,{'forceDefaultExecution':!0x0}),..._0xd320a5),_0x3ba975['stop']()));},{'priority':'high'});}[_0x4c52('0xf')](_0xfae19e){let _0x245ac3,_0x50f7d1;const _0x2927fa=this['_isForcedDefaultExecutionBlock'];this[_0x4c52('0x9e')]=!0x0;try{_0x245ac3=_0xfae19e();}catch(_0x268003){_0x50f7d1=_0x268003;}return _0x2927fa||(this[_0x4c52('0x9e')]=!0x1),_0x50f7d1&&_0x1b57cc[_0x4c52('0x101')](_0x50f7d1,this),_0x245ac3;}[_0x4c52('0xff')](_0x4bce1f,_0x53ac47=null,_0x2a9e22={}){if(_0x4bce1f[_0x4c52('0xd4')])return null;const _0x489f76=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')]('Users')['me'];for(const {suggestion:_0x161ea9,meta:_0x440600}of this[_0x4c52('0x96')](_0x4bce1f,_0x4c52('0x102')))if(_0x440600[_0x4c52('0x120')]){if(!_0x440600[_0x4c52('0x61')]){if(!this[_0x4c52('0xc1')]&&_0x440600['containsRangeInObject'])continue;return _0x161ea9;}if(_0x53ac47==_0x161ea9[_0x4c52('0x37')]){const _0x5a28cb=_0x161ea9[_0x4c52('0x66')]();return _0x5a28cb[_0x4c52('0xdb')][_0x4c52('0x1e')](_0x4bce1f[_0x4c52('0x27')])?this[_0x4c52('0xd7')](_0x161ea9,this['_model'][_0x4c52('0x77')](_0x4bce1f[_0x4c52('0xdb')],_0x5a28cb[_0x4c52('0x27')])):this[_0x4c52('0xd7')](_0x161ea9,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x5a28cb[_0x4c52('0xdb')],_0x4bce1f[_0x4c52('0x27')])),_0x161ea9;}}const _0x3d9855=_0x1e91a8(),_0x51c60d=_0x489f76['id'],_0x1a2c42=_0x53ac47?_0x4c52('0x118')+_0x53ac47:'insertion',_0x57c5ea=this[_0x4c52('0x5c')]({'id':_0x3d9855,'type':_0x1a2c42,'createdAt':new Date(),'authorId':_0x51c60d,'attributes':_0x2a9e22});return this[_0x4c52('0x55')](_0x1a2c42,_0x3d9855,_0x51c60d,_0x4bce1f),_0x57c5ea;}[_0x4c52('0x114')](_0x1a48db,_0x23ce87=_0x4c52('0xae'),_0x281da4={}){const _0x41b31d=this['editor'][_0x4c52('0xeb')]['get'](_0x4c52('0x74'))['me'],_0x1d9111=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x102'),_0x23ce87,_0x4c52('0xb9'));for(const _0x521c4f of this[_0x4c52('0xf8')]())if(_0x521c4f[_0x4c52('0xcb')]['id']==_0x41b31d['id']&&_0x4c52('0x102')==_0x521c4f[_0x4c52('0xa3')]&&_0x521c4f['subType']==_0x23ce87&&(_0x1d9111(_0x521c4f[_0x4c52('0x4b')](),_0x1a48db)||_0x1d9111(_0x1a48db,_0x521c4f[_0x4c52('0x4b')]()))){for(const _0xb4384d of _0x1a48db)_0x521c4f[_0x4c52('0x4f')](_0xb4384d);return _0x521c4f;}if(this[_0x4c52('0xc1')])for(const _0x30ce3f of _0x1a48db)for(const {suggestion:_0x27f6e6,meta:_0x2281bc}of this['_findSuggestions'](_0x30ce3f,_0x4c52('0x102'))){if(!_0x2281bc[_0x4c52('0x120')])continue;let _0x6474c9=!0x0;for(const _0x227a99 of _0x27f6e6[_0x4c52('0x4b')]())for(const _0x2850d2 of _0x1a48db)if(!_0x227a99['containsRange'](_0x2850d2)){_0x6474c9=!0x1;break;}if(_0x6474c9)return _0x27f6e6;}const _0x30ae6f=_0x1e91a8(),_0x1fc334=_0x41b31d['id'],_0x47c757='insertion:'+_0x23ce87,_0x259c63=this[_0x4c52('0x5c')]({'id':_0x30ae6f,'type':_0x47c757,'createdAt':new Date(),'authorId':_0x1fc334,'attributes':_0x281da4});for(const _0x40cfbd of _0x1a48db)this[_0x4c52('0x55')](_0x47c757,_0x30ae6f,_0x1fc334,_0x40cfbd,_0x24016f[_0x4c52('0x10e')]());return _0x259c63;}[_0x4c52('0x4c')](_0x8a0317,_0x2e684a,_0x22bdbc=null,_0x1d3fe4={}){if(_0x22bdbc=_0x22bdbc||$t(_0x2e684a),_0x8a0317[_0x4c52('0xd4')])return null;if('never'===this[_0x4c52('0x20')]){const _0x37ca9f=this['_suggestionFactory'][_0x4c52('0xaf')](_0x4c52('0xe7'),_0x22bdbc,_0x4c52('0x130'));return this['forceDefaultExecution'](()=>_0x37ca9f([_0x8a0317],_0x2e684a,_0x1d3fe4)),null;}const _0x3fbd3e=this['editor']['plugins'][_0x4c52('0xe4')]('Users')['me'],_0x2a2e32=[];if(_0x4c52('0xd6')!==this[_0x4c52('0x20')])for(const {suggestion:_0x5be2fc,meta:_0x12d883}of this[_0x4c52('0x96')](_0x8a0317,'insertion'))_0x12d883[_0x4c52('0x120')]&&!_0x12d883[_0x4c52('0xd3')]&&_0x2a2e32[_0x4c52('0x107')](..._0x5be2fc[_0x4c52('0x4b')]());const _0x13b932=function(_0x555052,_0x63aa47){const _0x5c00b5=[];for(const _0x45c341 of _0x63aa47){const _0x5077ec=_0x555052[_0x4c52('0x2f')](_0x45c341);_0x5077ec&&_0x5c00b5[_0x4c52('0x107')](_0x5077ec);}return _0x5c00b5;}(_0x8a0317,_0x2a2e32),_0x441012=function(_0x300f64,_0x45722d){const _0x12a3aa=[_0x300f64];for(const _0x385543 of _0x45722d){let _0x49bc82=0x0;for(;_0x49bc82<_0x12a3aa[_0x4c52('0x132')];){const _0x5ff89c=_0x12a3aa[_0x49bc82][_0x4c52('0x12f')](_0x385543);_0x12a3aa[_0x4c52('0x110')](_0x49bc82,0x1,..._0x5ff89c),_0x49bc82+=_0x5ff89c['length'];}}return _0x12a3aa;}(_0x8a0317,_0x2a2e32);_0x13b932[_0x4c52('0x132')]&&this['_model']['change'](()=>{for(const _0x199a2a of _0x13b932){const _0x4231fb=this['_suggestionFactory']['getSuggestionCallback'](_0x4c52('0xe7'),_0x22bdbc,_0x4c52('0x130'));this[_0x4c52('0xf')](()=>_0x4231fb([_0x199a2a],_0x2e684a,_0x1d3fe4));}});for(const _0x588c5a of _0x441012){let _0x3554a8=null,_0x234560=_0x588c5a[_0x4c52('0xdb')],_0x225301=_0x588c5a[_0x4c52('0x27')];for(const {suggestion:_0x19bc3e,meta:_0x522930}of this[_0x4c52('0x96')](_0x588c5a,_0x4c52('0xe7'))){if(!_0x522930[_0x4c52('0x120')])continue;if(_0x19bc3e[_0x4c52('0x37')]!=_0x22bdbc)continue;const _0x258aba=_0x19bc3e[_0x4c52('0x66')]();if(_0x258aba['containsRange'](_0x588c5a,!0x0))return null;_0x234560=_0x234560['isBefore'](_0x258aba[_0x4c52('0xdb')])?_0x234560:_0x258aba[_0x4c52('0xdb')],_0x225301=_0x225301[_0x4c52('0xf0')](_0x258aba[_0x4c52('0x27')])?_0x225301:_0x258aba[_0x4c52('0x27')],_0x3554a8?_0x258aba['start'][_0x4c52('0x15')](_0x3554a8[_0x4c52('0x66')]()['start'])?(_0x3554a8[_0x4c52('0xd1')](),_0x3554a8=_0x19bc3e):_0x19bc3e[_0x4c52('0xd1')]():_0x3554a8=_0x19bc3e;}const _0x5adbd9=this['_model'][_0x4c52('0x77')](_0x234560,_0x225301);if(_0x3554a8)this['_setSuggestionRange'](_0x3554a8,_0x5adbd9);else{const _0x451ab1=_0x1e91a8(),_0x2f55f5=_0x3fbd3e['id'];this['_setSuggestionData']({'id':_0x451ab1,'type':'formatInline:'+_0x22bdbc,'data':_0x2e684a,'createdAt':new Date(),'authorId':_0x2f55f5,'attributes':_0x1d3fe4}),this[_0x4c52('0x55')]('formatInline:'+_0x22bdbc,_0x451ab1,_0x2f55f5,_0x5adbd9);}}return null;}['markBlockFormat'](_0x407a86,_0x25485f,_0x486f5a=[],_0x376bc3=null,_0x5e6a18={}){_0x25485f['formatGroupId']||(_0x25485f[_0x4c52('0x30')]=_0x25485f[_0x4c52('0xb0')]),_0x25485f['multipleBlocks']=_0x407a86['is'](_0x4c52('0x9f')),_0x376bc3=_0x376bc3||$t(_0x25485f);const _0x4cf1f0=_0x486f5a['map'](_0x126a0d=>Rt(_0x126a0d,this[_0x4c52('0x29')])),_0x23bd3b=_0x407a86['is']('range')?_0x407a86:Rt(_0x407a86,this[_0x4c52('0x29')]);if(_0x4c52('0x14')===this[_0x4c52('0x20')]){const _0x296b02=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x12e'),_0x376bc3,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x296b02([_0x23bd3b],_0x25485f,_0x5e6a18)),null;}_0x4cf1f0['push'](_0x23bd3b);let _0x33b688=!0x0;for(const _0x32d80d of _0x4cf1f0)if(!this['_rangeIsInLocalUserInsertion'](_0x32d80d)){_0x33b688=!0x1;break;}if(_0x33b688&&'always'!==this['_trackFormatChanges']){const _0x393539=this['_suggestionFactory'][_0x4c52('0xaf')](_0x4c52('0x12e'),_0x376bc3,'accept');return this[_0x4c52('0xf')](()=>_0x393539([_0x23bd3b],_0x25485f,_0x5e6a18)),null;}let _0x1ae954=null,_0x5508c2=_0x23bd3b[_0x4c52('0xdb')],_0x2ef499=_0x23bd3b[_0x4c52('0x27')];for(const {suggestion:_0x167fb1,meta:_0x303203}of this[_0x4c52('0x96')](_0x23bd3b,'formatBlock')){if(!_0x303203[_0x4c52('0x120')]||_0x303203[_0x4c52('0x61')]||_0x303203[_0x4c52('0x13')]||_0x303203['isInsideObject'])continue;if(_0x167fb1[_0x4c52('0xc7')][_0x4c52('0x30')]!=_0x25485f[_0x4c52('0x30')])continue;const _0x190fe7=_0x167fb1['getFirstRange']();if(_0x167fb1[_0x4c52('0x37')]==_0x376bc3){if(_0x190fe7[_0x4c52('0xf3')](_0x23bd3b,!0x0))return null;_0x5508c2=_0x5508c2[_0x4c52('0x15')](_0x190fe7[_0x4c52('0xdb')])?_0x5508c2:_0x190fe7[_0x4c52('0xdb')],_0x2ef499=_0x2ef499[_0x4c52('0xf0')](_0x190fe7[_0x4c52('0x27')])?_0x2ef499:_0x190fe7[_0x4c52('0x27')],_0x1ae954?_0x190fe7[_0x4c52('0xdb')]['isBefore'](_0x1ae954[_0x4c52('0x66')]()[_0x4c52('0xdb')])?(_0x1ae954[_0x4c52('0xd1')](),_0x1ae954=_0x167fb1):_0x167fb1['removeMarkers']():_0x1ae954=_0x167fb1;}else{const _0x9ca47e=_0x23bd3b[_0x4c52('0x2f')](_0x190fe7);this[_0x4c52('0x7d')](_0x167fb1,_0x9ca47e);}}const _0x300c57=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74'))['me'],_0x3c740c=_0x1e91a8(),_0x1dfa98=_0x300c57['id'];if(_0x1ae954)return this[_0x4c52('0xd7')](_0x1ae954,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x5508c2,_0x2ef499)),_0x1ae954;{const _0x8e8804=this[_0x4c52('0x5c')]({'id':_0x3c740c,'type':_0x4c52('0x124')+_0x376bc3,'data':_0x25485f,'createdAt':new Date(),'authorId':_0x1dfa98,'attributes':_0x5e6a18});return this['_addSuggestionMarker'](_0x4c52('0x124')+_0x376bc3,_0x3c740c,_0x1dfa98,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x5508c2,_0x2ef499)),_0x8e8804;}}[_0x4c52('0x11e')](_0x4e71c4,_0x3f3ea3,_0x4d8f43=[],_0x248262=null,_0x1b490e={}){_0x3f3ea3['formatGroupId']||(_0x3f3ea3['formatGroupId']=_0x3f3ea3[_0x4c52('0xb0')]);const _0xb90f25=_0x4e71c4[0x0];_0x3f3ea3[_0x4c52('0x8')]=_0xb90f25['is'](_0x4c52('0x9f')),_0x248262=_0x248262||$t(_0x3f3ea3);const _0x1a595e=_0x4d8f43[_0x4c52('0x115')](_0x28d522=>Rt(_0x28d522,this[_0x4c52('0x29')])),_0x1f3b53=_0xb90f25['is'](_0x4c52('0x9f'))?_0x4e71c4:_0x4e71c4[_0x4c52('0x115')](_0x4b31b0=>Rt(_0x4b31b0,this[_0x4c52('0x29')]));if(_0x4c52('0x14')===this[_0x4c52('0x20')]){const _0x53eda3=this[_0x4c52('0x109')][_0x4c52('0xaf')]('formatBlock',_0x248262,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x53eda3(_0x1f3b53,_0x3f3ea3,_0x1b490e)),null;}_0x1a595e[_0x4c52('0x107')](..._0x1f3b53);let _0x13039c=!0x0;for(const _0xb82935 of _0x1a595e)if(!this[_0x4c52('0x6a')](_0xb82935)){_0x13039c=!0x1;break;}if(_0x13039c&&_0x4c52('0xd6')!==this[_0x4c52('0x20')]){const _0x1820b5=this['_suggestionFactory'][_0x4c52('0xaf')](_0x4c52('0x12e'),_0x248262,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x1820b5(_0x1f3b53,_0x3f3ea3,_0x1b490e)),null;}const _0x3c1e7f=this[_0x4c52('0x10')][_0x4c52('0xeb')]['get'](_0x4c52('0x74'))['me'];for(const _0x74bf8 of this[_0x4c52('0xf8')]()){if(_0x74bf8[_0x4c52('0xcb')]['id']!=_0x3c1e7f['id'])continue;if(_0x4c52('0x12e')!=_0x74bf8[_0x4c52('0xa3')]||_0x74bf8[_0x4c52('0xc7')][_0x4c52('0x30')]!=_0x3f3ea3[_0x4c52('0x30')])continue;const _0x480d8f=_0x74bf8[_0x4c52('0x37')]==_0x248262;for(let _0xaa7b63=0x0;_0xaa7b63<_0x1f3b53[_0x4c52('0x132')];_0xaa7b63++){const _0x14d5dd=_0x1f3b53[_0xaa7b63];for(const _0x5e4da3 of _0x74bf8[_0x4c52('0xc')]()){const _0x28de3c=_0x5e4da3[_0x4c52('0xab')]();if(_0x14d5dd[_0x4c52('0x1e')](_0x28de3c)){_0x480d8f?(_0x1f3b53[_0x4c52('0x110')](_0xaa7b63,0x1),_0xaa7b63--):_0x74bf8[_0x4c52('0xf7')](_0x5e4da3[_0x4c52('0xa2')]);break;}}}}if(0x0==_0x1f3b53['length'])return null;const _0x3afa32=this[_0x4c52('0x109')]['getSuggestionCallback'](_0x4c52('0x12e'),_0x248262,'join');for(const _0x22aba3 of this[_0x4c52('0xf8')]())if(_0x22aba3[_0x4c52('0xcb')]['id']==_0x3c1e7f['id']&&_0x4c52('0x12e')==_0x22aba3[_0x4c52('0xa3')]&&_0x22aba3[_0x4c52('0xc7')][_0x4c52('0x30')]==_0x3f3ea3[_0x4c52('0x30')]&&_0x22aba3['subType']==_0x248262&&(_0x3afa32(_0x22aba3[_0x4c52('0x4b')](),_0x1f3b53)||_0x3afa32(_0x1f3b53,_0x22aba3[_0x4c52('0x4b')]()))){for(const _0x447bd3 of _0x1f3b53)_0x22aba3[_0x4c52('0x4f')](_0x447bd3);return _0x22aba3;}const _0x5c2d44=_0x1e91a8(),_0x2c0332=_0x3c1e7f['id'],_0x3580e5=_0x4c52('0x124')+_0x248262,_0x4c9438=this[_0x4c52('0x5c')]({'id':_0x5c2d44,'type':_0x3580e5,'data':_0x3f3ea3,'createdAt':new Date(),'authorId':_0x2c0332,'attributes':_0x1b490e});for(const _0x27f9d3 of _0x1f3b53)this[_0x4c52('0x55')](_0x3580e5,_0x5c2d44,_0x2c0332,_0x27f9d3,_0x24016f[_0x4c52('0x10e')]());return _0x4c9438;}[_0x4c52('0xd8')](_0x3a3505,_0x2df30b=null,_0x5b1f00={}){if(_0x3a3505[_0x4c52('0xd4')])return null;const _0x44d740=this['editor'][_0x4c52('0xeb')]['get']('Users')['me'],_0x2d6407=new _0x10252d(_0x3a3505[_0x4c52('0xdb')],_0x3a3505[_0x4c52('0x27')]);for(const {suggestion:_0x2c888a,meta:_0x58aaf9}of this[_0x4c52('0x96')](_0x2d6407,'insertion'))if(_0x58aaf9['isOwn']&&!_0x58aaf9['isNextTo']){if(_0x2c888a[_0x4c52('0x12b')]){const _0x246aae=_0x2c888a['getRanges']()[_0x4c52('0x49')](_0x5d10fe=>_0x4c52('0x53')!=_0x5d10fe[_0x4c52('0xe')]['rootName']);_0x246aae[_0x4c52('0xcf')](_0x3325f4=>_0x2d6407[_0x4c52('0xf3')](_0x3325f4,!0x0))&&_0x2c888a[_0x4c52('0x103')]();if(_0x246aae[_0x4c52('0x83')](_0x51e230=>_0x51e230[_0x4c52('0xf3')](_0x2d6407,!0x0))){const _0x336d25=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x5f'),_0x2df30b,_0x4c52('0x130'));return this['forceDefaultExecution'](()=>_0x336d25([_0x2d6407],null,_0x5b1f00)),null;}}else{const _0xc2b690=_0x2d6407[_0x4c52('0x2f')](_0x2c888a[_0x4c52('0x66')]());null!==_0xc2b690&&_0x2c888a[_0x4c52('0x111')]([_0xc2b690],null,_0x5b1f00);}}if(_0x2d6407[_0x4c52('0x28')](),_0x2d6407['isCollapsed']||_0x4c52('0x53')==_0x2d6407[_0x4c52('0xe')][_0x4c52('0xa7')])return null;let _0x4ef5c3=null,_0x31d035=_0x2d6407[_0x4c52('0xdb')],_0x4fe4e2=_0x2d6407['end'];for(const {suggestion:_0xd1cfcd,meta:_0x24ab55}of this[_0x4c52('0x96')](_0x2d6407,_0x4c52('0x5f')))if(_0x24ab55[_0x4c52('0x120')]){if(_0xd1cfcd[_0x4c52('0x12b')]&&this[_0x4c52('0xc1')]){let _0x392abd=!0x0;for(const _0x19043f of _0xd1cfcd[_0x4c52('0x4b')]()){if(_0x19043f['containsRange'](_0x2d6407,!0x0))return _0xd1cfcd;_0x2d6407['containsRange'](_0x19043f)||(_0x392abd=!0x1);}_0x392abd&&_0xd1cfcd['discard']();}else{const _0x172abc=_0xd1cfcd['getFirstRange']();if(_0x172abc[_0x4c52('0xf3')](_0x2d6407,!0x0)){if(!this[_0x4c52('0xc1')]&&_0x24ab55[_0x4c52('0x13')])continue;return _0xd1cfcd;}_0x31d035=_0x31d035[_0x4c52('0x15')](_0x172abc[_0x4c52('0xdb')])?_0x31d035:_0x172abc['start'],_0x4fe4e2=_0x4fe4e2[_0x4c52('0xf0')](_0x172abc['end'])?_0x4fe4e2:_0x172abc['end'],_0x4ef5c3?_0x172abc[_0x4c52('0xdb')][_0x4c52('0x15')](_0x4ef5c3[_0x4c52('0x66')]()['start'])?(_0x4ef5c3[_0x4c52('0xd1')](),_0x4ef5c3=_0xd1cfcd):_0xd1cfcd[_0x4c52('0xd1')]():_0x4ef5c3=_0xd1cfcd;}}if(_0x4ef5c3)return this[_0x4c52('0xd7')](_0x4ef5c3,this['_model'][_0x4c52('0x77')](_0x31d035,_0x4fe4e2)),_0x4ef5c3;{const _0x3ff91d=_0x1e91a8(),_0x36c8b7=this[_0x4c52('0x29')][_0x4c52('0x77')](_0x31d035,_0x4fe4e2),_0x351b9a=_0x44d740['id'],_0x381491=_0x2df30b?'deletion:'+_0x2df30b:'deletion',_0x3270ca=this[_0x4c52('0x5c')]({'id':_0x3ff91d,'type':_0x381491,'createdAt':new Date(),'authorId':_0x351b9a,'attributes':_0x5b1f00});return this['_addSuggestionMarker'](_0x381491,_0x3ff91d,_0x351b9a,_0x36c8b7),_0x3270ca;}}[_0x4c52('0x5')](_0x4938b9,_0x4bb9aa=_0x4c52('0xae'),_0x4ea69f={}){const _0x21cd9d=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74'))['me'],_0x1ee782=_0x4938b9[_0x4c52('0x115')](_0x4df2d6=>new _0x10252d(_0x4df2d6[_0x4c52('0xdb')],_0x4df2d6[_0x4c52('0x27')])),_0x193fe5=new Set();for(const _0x4d909d of _0x1ee782)for(const {suggestion:_0x515cde,meta:_0x94b55a}of this[_0x4c52('0x96')](_0x4d909d,_0x4c52('0x102')))_0x94b55a['isOwn']&&!_0x94b55a['isNextTo']&&_0x193fe5[_0x4c52('0x1f')](_0x515cde);for(const _0xa93ff7 of _0x193fe5)if(_0xa93ff7[_0x4c52('0x12b')]){const _0x4da106=_0xa93ff7[_0x4c52('0x4b')]();(!_0xa93ff7['attributes']||!_0xa93ff7[_0x4c52('0xf1')][_0x4c52('0x131')])&&(_0x4da106['every'](_0x177bad=>_0x1ee782['some'](_0x269ba3=>_0x269ba3[_0x4c52('0xf3')](_0x177bad,!0x0)))&&_0xa93ff7[_0x4c52('0x103')]());if(_0x1ee782[_0x4c52('0xcf')](_0x5579f5=>_0x4da106[_0x4c52('0x83')](_0x1c827e=>_0x1c827e['containsRange'](_0x5579f5,!0x0)))){const _0x3d3ab9=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x5f'),_0x4bb9aa,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0x3d3ab9(_0x4938b9,null,_0x4ea69f)),null;}}else{const _0x4b4724=_0xa93ff7['getFirstRange']();_0x1ee782[_0x4c52('0x83')](_0xfad60a=>_0xfad60a[_0x4c52('0xf3')](_0x4b4724,!0x0))&&_0xa93ff7[_0x4c52('0x103')]();if(_0x1ee782[_0x4c52('0xcf')](_0x1491b0=>_0x4b4724[_0x4c52('0xf3')](_0x1491b0,!0x0))){const _0xdb2fe=this[_0x4c52('0x109')][_0x4c52('0xaf')](_0x4c52('0x5f'),_0x4bb9aa,_0x4c52('0x130'));return this[_0x4c52('0xf')](()=>_0xdb2fe(_0x1ee782,null,_0x4ea69f)),null;}}const _0x2bb48c=this[_0x4c52('0x109')]['getSuggestionCallback'](_0x4c52('0x5f'),_0x4bb9aa,_0x4c52('0xb9'));let _0x59339d=null;for(const _0x267025 of this[_0x4c52('0xf8')]())if(_0x267025[_0x4c52('0xcb')]['id']==_0x21cd9d['id']&&_0x267025['isInContent']&&_0x4c52('0x5f')==_0x267025['type']&&_0x267025['subType']==_0x4bb9aa&&(_0x2bb48c(_0x267025[_0x4c52('0x4b')](),_0x1ee782)||_0x2bb48c(_0x1ee782,_0x267025[_0x4c52('0x4b')]()))){if(_0x59339d){if(_0x267025[_0x4c52('0x68')]&&_0x267025[_0x4c52('0x68')]['length'])continue;for(const _0x87340f of _0x267025[_0x4c52('0x4b')]())_0x59339d['isIntersectingWithRange'](_0x87340f)||_0x59339d[_0x4c52('0x4f')](_0x87340f);_0x267025[_0x4c52('0xd1')]();}else{_0x59339d=_0x267025;for(const _0x314361 of _0x1ee782)_0x267025[_0x4c52('0x84')](_0x314361)||_0x267025[_0x4c52('0x4f')](_0x314361);}}if(_0x59339d)return _0x59339d;_0x193fe5[_0x4c52('0x112')]();for(const _0x156057 of _0x1ee782)for(const {suggestion:_0x4916d6,meta:_0x5eda19}of this[_0x4c52('0x96')](_0x156057,_0x4c52('0x5f')))_0x5eda19[_0x4c52('0x120')]&&_0x193fe5[_0x4c52('0x1f')](_0x4916d6);for(const _0x20ab77 of _0x193fe5){const _0x5968fa=_0x20ab77[_0x4c52('0x4b')]();if(!_0x4ea69f||!_0x4ea69f[_0x4c52('0x131')]){if(_0x1ee782[_0x4c52('0xcf')](_0xd36ebc=>_0x5968fa['some'](_0x2e0a07=>_0x2e0a07[_0x4c52('0xf3')](_0xd36ebc,!0x0))))return _0x20ab77;}(!_0x20ab77[_0x4c52('0xf1')]||!_0x20ab77[_0x4c52('0xf1')][_0x4c52('0x131')])&&(_0x5968fa['every'](_0x2b0261=>_0x1ee782[_0x4c52('0x83')](_0x34a174=>_0x34a174[_0x4c52('0xf3')](_0x2b0261,!0x0)))&&_0x20ab77['discard']());}const _0x40b941=_0x1e91a8(),_0x1966f4=_0x21cd9d['id'],_0x681768=_0x4c52('0x94')+_0x4bb9aa,_0x38a4b0=this[_0x4c52('0x5c')]({'id':_0x40b941,'type':_0x681768,'createdAt':new Date(),'authorId':_0x1966f4,'attributes':_0x4ea69f});for(const _0x8912c9 of _0x1ee782)_0x8912c9['detach'](),_0x8912c9[_0x4c52('0xd4')]||_0x4c52('0x53')==_0x8912c9[_0x4c52('0xe')]['rootName']||this[_0x4c52('0x55')](_0x681768,_0x40b941,_0x1966f4,_0x8912c9,_0x24016f[_0x4c52('0x10e')]());return _0x38a4b0;}[_0x4c52('0xd7')](_0x54d8b5,_0xfd34f1){const _0x303e64=_0x54d8b5[_0x4c52('0xa4')]();this[_0x4c52('0x29')]['change'](_0x2857a3=>{_0x2857a3[_0x4c52('0x3a')](_0x303e64,{'range':_0xfd34f1});});}[_0x4c52('0xfe')](_0x3a4eb8){const _0x7d5a00=_0x3a4eb8['id'],_0x39722a=this[_0x4c52('0x10')][_0x4c52('0x138')][_0x4c52('0xe4')](_0x4c52('0x62'));this[_0x4c52('0x108')]['hasCommentThread'](_0x7d5a00)||this['_commentsRepository'][_0x4c52('0x79')]({'channelId':_0x39722a,'threadId':_0x7d5a00,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x51e99a=this[_0x4c52('0x108')]['getCommentThread'](_0x7d5a00);_0x51e99a[_0x4c52('0x5a')]('isRemovable'),_0x51e99a['isRemovable']=!0x1,_0x3a4eb8[_0x4c52('0x68')]=_0x51e99a;}[_0x4c52('0x113')](_0xb57be9,_0x31c236,_0x1ccf2b,_0x3bb093){if(_0xb57be9[_0x4c52('0xa3')]!=_0x31c236||_0xb57be9[_0x4c52('0x37')]!=_0x1ccf2b||_0xb57be9[_0x4c52('0xbe')]['id']!=_0x3bb093)throw this[_0x4c52('0x10')][_0x4c52('0x57')]('track-changes-suggestion-data-mismatch'),new _0x1b57cc('track-changes-suggestion-data-mismatch',this);}[_0x4c52('0x7d')](_0x57fd38,_0x2cb560){const _0xc0b529=_0x57fd38[_0x4c52('0x66')]();if(_0x2cb560[_0x4c52('0x1e')](_0xc0b529))_0x57fd38['removeMarkers']();else{if(_0xc0b529[_0x4c52('0xf3')](_0x2cb560)){const _0x1c06f2=this['_model'][_0x4c52('0xfb')](_0x2cb560[_0x4c52('0xdb')][_0x4c52('0xbd')],'end');this[_0x4c52('0xd7')](_0x57fd38,this[_0x4c52('0x29')][_0x4c52('0x77')](_0xc0b529[_0x4c52('0xdb')],_0x1c06f2));const _0x3b4bb4=_0x1e91a8(),_0x3b64c1=_0x57fd38[_0x4c52('0xbe')]['id'],_0x3da2fe=_0x57fd38[_0x4c52('0xa3')]+':'+_0x57fd38[_0x4c52('0x37')];this[_0x4c52('0x5c')]({'id':_0x3b4bb4,'type':_0x3da2fe,'createdAt':new Date(),'authorId':_0x3b64c1,'data':_0x57fd38['data'],'attributes':_0x57fd38['attributes']});const _0x3bf628=this[_0x4c52('0x29')]['createPositionAt'](_0x2cb560['end'][_0x4c52('0x98')],'after'),_0x431ecc=this[_0x4c52('0x29')][_0x4c52('0x77')](_0x3bf628,_0xc0b529[_0x4c52('0x27')]);this[_0x4c52('0x55')](_0x3da2fe,_0x3b4bb4,_0x3b64c1,_0x431ecc);}else{if(_0xc0b529[_0x4c52('0x5b')](_0x2cb560[_0x4c52('0xdb')])){const _0x4838ff=this['_model'][_0x4c52('0xfb')](_0x2cb560[_0x4c52('0xdb')][_0x4c52('0xbd')],_0x4c52('0x27'));this[_0x4c52('0xd7')](_0x57fd38,this[_0x4c52('0x29')][_0x4c52('0x77')](_0xc0b529[_0x4c52('0xdb')],_0x4838ff));}else{const _0x555e5b=this['_model']['createPositionAt'](_0x2cb560['end']['parent'],_0x4c52('0xb4'));this[_0x4c52('0xd7')](_0x57fd38,this['_model'][_0x4c52('0x77')](_0x555e5b,_0xc0b529['end']));}}}}[_0x4c52('0x6a')](_0x54f27a){for(const {suggestion:_0x20b48a,meta:_0x231c3d}of this['_findSuggestions'](_0x54f27a,_0x4c52('0x102'))){if(!_0x231c3d[_0x4c52('0x120')])continue;const _0x232eb1=_0x20b48a[_0x4c52('0x4b')]();for(const _0x50dfa1 of _0x232eb1)if(!_0x54f27a[_0x4c52('0x12f')](_0x50dfa1)['length'])return!0x0;}return!0x1;}[_0x4c52('0xb5')](_0x137cec){const _0x18ffef=this['editor'][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74'))['getUser'](_0x137cec);if(!_0x18ffef)throw new _0x1b57cc(_0x4c52('0x38'),this);return _0x18ffef;}[_0x4c52('0x16')](_0x2f8cf1){const _0x16b01b=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x74')),_0x4d1a35=_0x24249f(_0x4c52('0xad')+_0x2f8cf1),_0x53001f=_0x16b01b[_0x4c52('0x8a')](_0x4d1a35);return _0x53001f||_0x16b01b[_0x4c52('0x11d')]({'id':_0x4d1a35,'name':_0x2f8cf1});}[_0x4c52('0x8d')](_0x538f1f,_0x3fd911,_0x35487c,_0x46040b,_0x307ed0){const _0x4b7897=this[_0x4c52('0xb5')](_0x46040b),_0x3d31f1=this[_0x4c52('0x109')]['buildSuggestion'](_0x538f1f,_0x3fd911,_0x35487c,_0x4b7897,_0x307ed0,_0x5e38c7=>this['_updateSuggestionData'](_0x35487c,{'attributes':_0x5e38c7}));return this[_0x4c52('0x73')](_0x3d31f1,_0x4c52('0x130'),()=>{this['_updateSuggestionData'](_0x35487c,{'state':_0x4c52('0x80')});},{'priority':_0x4c52('0xa0')}),this[_0x4c52('0x73')](_0x3d31f1,_0x4c52('0x103'),()=>{this['_updateSuggestionData'](_0x35487c,{'state':_0x4c52('0x4a')});},{'priority':_0x4c52('0xa0')}),this[_0x4c52('0xd2')]['set'](_0x35487c,_0x3d31f1),this[_0x4c52('0x106')][_0x4c52('0x36')](_0x3d31f1,_0x4c52('0x10d')),_0x3d31f1;}[_0x4c52('0x7a')](_0x1698d2){const _0x94e33a=_0x1698d2[_0x4c52('0x46')](':');return{'group':_0x94e33a[0x0],'type':_0x94e33a[0x1],'subType':_0x94e33a[_0x4c52('0x132')]>=0x5?_0x94e33a[0x2]:null,'id':_0x94e33a[_0x4c52('0x132')]<0x5?_0x94e33a[0x2]:_0x94e33a[0x3],'authorId':_0x94e33a[_0x4c52('0x132')]<0x5?_0x94e33a[0x3]:_0x94e33a[0x4],'markerCount':0x6==_0x94e33a[_0x4c52('0x132')]?_0x94e33a[0x5]:null};}['_breakSuggestionMarker'](_0x5880c8,_0x43fbda,_0x540ed4){const _0x12d1cd=_0x5880c8['getFirstRange'](),_0x23a2f6=_0x12d1cd[_0x4c52('0xdb')],_0x57f137=_0x12d1cd[_0x4c52('0x27')];this[_0x4c52('0xd7')](_0x5880c8,this['_model'][_0x4c52('0x77')](_0x23a2f6,_0x43fbda));const _0x3d1ec7=_0x1e91a8(),_0x10d35a=_0x5880c8[_0x4c52('0xbe')]['id'],_0x5011aa=_0x5880c8[_0x4c52('0xa3')]+(_0x5880c8[_0x4c52('0x37')]?':'+_0x5880c8[_0x4c52('0x37')]:'');this[_0x4c52('0x5c')]({'id':_0x3d1ec7,'type':_0x5011aa,'createdAt':new Date(),'authorId':_0x10d35a,'originalSuggestionId':_0x5880c8['id'],'attributes':_0x5880c8['attributes'],'data':_0x5880c8[_0x4c52('0xc7')]}),_0x4c52('0x12e')==_0x5880c8[_0x4c52('0xa3')]&&(_0x540ed4=this[_0x4c52('0x29')][_0x4c52('0xc4')](_0x540ed4[_0x4c52('0x98')])),this[_0x4c52('0x55')](_0x5011aa,_0x3d1ec7,_0x10d35a,this[_0x4c52('0x29')][_0x4c52('0x77')](_0x540ed4,_0x57f137));}[_0x4c52('0x96')](_0x5b41ad,_0x38ee24=null){const _0x29c319=[],_0x30d3a8=this[_0x4c52('0x29')]['schema'],_0x96545f=this[_0x4c52('0x10')]['plugins'][_0x4c52('0xe4')](_0x4c52('0x74'))['me'];for(const _0x2e4336 of this[_0x4c52('0xf8')]())if(_0x2e4336[_0x4c52('0x21')]&&(!_0x38ee24||_0x2e4336[_0x4c52('0xa3')]==_0x38ee24))for(const _0x45bc79 of _0x2e4336[_0x4c52('0x4b')]()){const _0xd83488=_0x5b41ad['start'][_0x4c52('0x1e')](_0x45bc79[_0x4c52('0x27')])||_0x5b41ad[_0x4c52('0x27')][_0x4c52('0x1e')](_0x45bc79[_0x4c52('0xdb')]);if(_0xd83488||_0x5b41ad['getIntersection'](_0x45bc79)){const _0x5f4686=_0x5b41ad['containsRange'](_0x45bc79)&&Bt(_0x30d3a8,_0x45bc79[_0x4c52('0xdb')],_0x5b41ad),_0x367366=_0x45bc79[_0x4c52('0xf3')](_0x5b41ad)&&Bt(_0x30d3a8,_0x5b41ad[_0x4c52('0xdb')],_0x45bc79);_0x29c319[_0x4c52('0x107')]({'suggestion':_0x2e4336,'meta':{'isOwn':_0x96545f==_0x2e4336[_0x4c52('0xcb')],'isNextTo':_0xd83488,'isInsideObject':_0x5f4686,'containsRangeInObject':_0x367366}});break;}}return _0x29c319;}[_0x4c52('0x55')](_0x337b1e,_0x23d310,_0x5ec472,_0x75d987,_0x29a422){this[_0x4c52('0x29')][_0x4c52('0x32')](_0x110856=>{let _0x182417=_0x4c52('0x81')+_0x337b1e+':'+_0x23d310+':'+_0x5ec472;_0x29a422&&(_0x182417=_0x182417+':'+_0x29a422),_0x110856[_0x4c52('0x3e')](_0x182417,{'range':_0x75d987,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x347281){const _0x5e8e0a=_0x347281[_0x4c52('0xe5')],_0x14675b=_0x347281[_0x4c52('0x125')];_0x347281[_0x4c52('0xe5')]=null,null!=_0x5e8e0a&&(_0x5e8e0a[_0x4c52('0x125')]=null),_0x347281['next']=null,null!=_0x14675b&&(_0x14675b['previous']=null),_0x4c52('0x13a')==this[_0x4c52('0x106')][_0x4c52('0xe4')](_0x347281)&&(this['_suggestionState']['set'](_0x347281,_0x4c52('0x70')),this[_0x4c52('0x4')](_0x4c52('0xac'),_0x347281,_0x5e8e0a,_0x14675b));}[_0x4c52('0x5c')](_0x4ba8ca){const _0x37be62=_0x4ba8ca['id'],_0x1481c1=this[_0x4c52('0x93')](_0x4ba8ca);if(this[_0x4c52('0x6f')]&&this[_0x4c52('0x6f')]['addSuggestion']){const _0x13e0b6=this[_0x4c52('0x10')][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x10f')),_0x35dbf5=_0x1481c1[_0x4c52('0x100')],_0x2c0f8c=_0x1481c1[_0x4c52('0x37')]?_0x1481c1['type']+':'+_0x1481c1['subType']:_0x1481c1['type'],_0x37a704=this[_0x4c52('0x10')][_0x4c52('0xa9')],_0x9eb181=_0x13e0b6[_0x4c52('0x1f')](_0x495697(_0x37a704,'PENDING_ACTION_SUGGESTION')),_0x570c7c={'id':_0x37be62,'type':_0x2c0f8c,'hasComments':_0x35dbf5,'data':_0x4ba8ca[_0x4c52('0xc7')]||null,'originalSuggestionId':_0x4ba8ca['originalSuggestionId']||null,'attributes':_0x1481c1['attributes']};this[_0x4c52('0x6f')]['addSuggestion'](_0x570c7c)['then'](_0x155ec6=>{_0x1481c1[_0x4c52('0x54')]=!0x0,_0x13e0b6['remove'](_0x9eb181),_0x155ec6&&_0x155ec6[_0x4c52('0x26')]&&(this['_suggestions'][_0x4c52('0xe4')](_0x37be62)[_0x4c52('0x26')]=_0x155ec6[_0x4c52('0x26')]);})[_0x4c52('0x4e')](_0x3d377e=>{throw _0x111092(_0x4c52('0xfa')),this[_0x4c52('0x10')][_0x4c52('0x51')][_0x4c52('0x95')]({'isUndoable':!0x1},()=>{_0x1481c1[_0x4c52('0x103')]();}),_0x1481c1[_0x4c52('0xa')](),this[_0x4c52('0xd2')][_0x4c52('0x64')](_0x1481c1['id']),this[_0x4c52('0x106')][_0x4c52('0x64')](_0x1481c1),_0x3d377e;});}return _0x1481c1;}[_0x4c52('0x7b')](_0xd1fecb,_0x8050dc){const _0x299e8d=this['editor'][_0x4c52('0xeb')][_0x4c52('0xe4')](_0x4c52('0x10f')),_0x4e23e4=this[_0x4c52('0x7e')](_0xd1fecb);if(this[_0x4c52('0x6f')]&&this['_adapter'][_0x4c52('0xd0')]){if(_0x4e23e4[_0x4c52('0x54')]){const _0x203833=_0x299e8d[_0x4c52('0x1f')](_0x495697(this[_0x4c52('0x10')][_0x4c52('0xa9')],_0x4c52('0x41')));this[_0x4c52('0x6f')]['updateSuggestion'](_0xd1fecb,_0x8050dc)['then'](()=>{_0x299e8d[_0x4c52('0x52')](_0x203833);});}else _0x4e23e4['on']('change:_saved',()=>{this[_0x4c52('0x7b')](_0xd1fecb,_0x8050dc);});}}['_getSuggestionData'](_0x40d96f){if(!this['_adapter']||!this[_0x4c52('0x6f')][_0x4c52('0x7e')])throw new _0x1b57cc(_0x4c52('0x59'),this);return this[_0x4c52('0x6f')][_0x4c52('0x7e')](_0x40d96f);}[_0x4c52('0x45')](_0x57eedc){const {id:_0x2a4426,type:_0x199d85,subType:_0x1601a2,authorId:_0xef3ba8}=this[_0x4c52('0x7a')](_0x57eedc),_0x3fe3da=this[_0x4c52('0xd2')][_0x4c52('0xe4')](_0x2a4426)||this[_0x4c52('0x8d')](_0x199d85,_0x1601a2,_0x2a4426,_0xef3ba8,{});switch(this[_0x4c52('0x113')](_0x3fe3da,_0x199d85,_0x1601a2,_0xef3ba8),this[_0x4c52('0x106')][_0x4c52('0xe4')](_0x3fe3da)){case _0x4c52('0x10d'):this[_0x4c52('0xdc')](_0x2a4426)['then'](_0x1e008c=>{let _0x46e86b=Promise['resolve']();_0x1e008c[_0x4c52('0x100')]&&(_0x46e86b=this['_commentsRepository'][_0x4c52('0x88')]({'channelId':this[_0x4c52('0x10')]['config'][_0x4c52('0xe4')]('collaboration.channelId'),'threadId':_0x2a4426})),_0x46e86b[_0x4c52('0x67')](()=>{this[_0x4c52('0x93')](_0x1e008c)['_saved']=!0x0;});}),this[_0x4c52('0x106')][_0x4c52('0x36')](_0x3fe3da,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2a4426,{'state':'open'});case _0x4c52('0x9b'):this[_0x4c52('0x106')][_0x4c52('0x36')](_0x3fe3da,_0x4c52('0x13a')),this[_0x4c52('0x4')](_0x4c52('0xc9'),_0x3fe3da);break;case'ready':this[_0x4c52('0x4')](_0x4c52('0x105'),_0x3fe3da);}return _0x3fe3da[_0x4c52('0x17')](_0x57eedc),_0x3fe3da;}[_0x4c52('0x40')](_0x120068){const _0x1a53ef=Array[_0x4c52('0x99')](_0x120068)['filter'](_0x2256c2=>!_0x2256c2[_0x4c52('0x12b')]),_0x1c736d=this[_0x4c52('0xf8')]({'skipNotAttached':!0x0})[_0x4c52('0x49')](_0x1f38c6=>!_0x1f38c6[_0x4c52('0x12b')]),_0x23ed4f=_0x1c736d[_0x4c52('0x49')](_0x211534=>!_0x120068[_0x4c52('0xaa')](_0x211534)),_0x4790c5=new Map(_0x1c736d[_0x4c52('0x115')](_0x18072c=>[_0x18072c,this['_suggestionFactory']['getSuggestionCallback'](_0x18072c[_0x4c52('0xa3')],_0x18072c['subType'],_0x4c52('0xb3'))])),_0x22fc80=new Map(_0x1c736d[_0x4c52('0x115')](_0x2b7b7f=>[_0x2b7b7f,_0x2b7b7f[_0x4c52('0x66')]()])),_0x320ec7=new Set(),_0x80f6f9=new Set();for(let _0xd4a006=0x0;_0xd4a006<_0x1a53ef[_0x4c52('0x132')];_0xd4a006++)_0x3f42d0(_0x1a53ef[_0xd4a006],_0x1a53ef,_0xd4a006+0x1);for(let _0x5ec500=0x0;_0x5ec500<_0x1a53ef[_0x4c52('0x132')];_0x5ec500++)_0x3f42d0(_0x1a53ef[_0x5ec500],_0x23ed4f,0x0);for(let _0x22d763=0x0;_0x22d763<_0x1a53ef[_0x4c52('0x132')];_0x22d763++){const _0x5f1f42=_0x1a53ef[_0x22d763];!_0x80f6f9[_0x4c52('0xaa')](_0x5f1f42)&&_0x5f1f42[_0x4c52('0xe5')]&&(_0x5f1f42[_0x4c52('0xe5')][_0x4c52('0x125')]===_0x5f1f42&&(_0x5f1f42['previous'][_0x4c52('0x125')]=null),_0x5f1f42[_0x4c52('0xe5')]=null),!_0x320ec7[_0x4c52('0xaa')](_0x5f1f42)&&_0x5f1f42[_0x4c52('0x125')]&&(_0x5f1f42['next'][_0x4c52('0xe5')]===_0x5f1f42&&(_0x5f1f42['next'][_0x4c52('0xe5')]=null),_0x5f1f42[_0x4c52('0x125')]=null);}function _0x3f42d0(_0xe5424f,_0x30e330,_0x21ce56){for(let _0x33ef54=_0x21ce56;_0x33ef54<_0x30e330[_0x4c52('0x132')];_0x33ef54++){const _0x144329=_0x52a5e4(_0xe5424f,_0x30e330[_0x33ef54]);_0x144329&&(_0x144329[0x0][_0x4c52('0x125')]=_0x144329[0x1],_0x144329[0x1]['previous']=_0x144329[0x0],_0x320ec7[_0x4c52('0x1f')](_0x144329[0x0]),_0x80f6f9[_0x4c52('0x1f')](_0x144329[0x1]));}}function _0x52a5e4(_0x1032db,_0x50127f){if(_0x1032db[_0x4c52('0xcb')]['id']!==_0x50127f[_0x4c52('0xcb')]['id'])return null;const _0x38cdc3=_0x4790c5['get'](_0x1032db)(_0x1032db,_0x50127f,_0x22fc80[_0x4c52('0xe4')](_0x1032db),_0x22fc80[_0x4c52('0xe4')](_0x50127f));if(!_0x38cdc3)return null;return _0x4790c5[_0x4c52('0xe4')](_0x50127f)(_0x1032db,_0x50127f,_0x22fc80['get'](_0x1032db),_0x22fc80[_0x4c52('0xe4')](_0x50127f))?_0x38cdc3[0x1][_0x4c52('0x68')]&&_0x38cdc3[0x1][_0x4c52('0x68')][_0x4c52('0x132')]?null:_0x38cdc3:null;}}[_0x4c52('0x12c')](_0x450051){const _0x5b6e68=Array['from'](_0x450051),_0x74bc68=this[_0x4c52('0xf8')]({'skipNotAttached':!0x0}),_0x4d8dcc=_0x74bc68['filter'](_0x4deb50=>!_0x450051[_0x4c52('0xaa')](_0x4deb50)),_0x574ee6=new Map(_0x5b6e68['map'](_0x1155b3=>[_0x1155b3,this[_0x4c52('0x109')]['getSuggestionCallback'](_0x1155b3[_0x4c52('0xa3')],_0x1155b3[_0x4c52('0x37')],'join')])),_0x2fd7ca=new Map(_0x74bc68[_0x4c52('0x115')](_0x4315cb=>[_0x4315cb,_0x4315cb['getRanges']()]));for(let _0x38e4fd=0x0;_0x38e4fd<_0x5b6e68['length'];_0x38e4fd++){if(_0x11905d(this,_0x5b6e68[_0x38e4fd],_0x5b6e68,_0x38e4fd+0x1))return!0x0;}for(let _0x1e0ce7=0x0;_0x1e0ce7<_0x5b6e68['length'];_0x1e0ce7++){if(_0x11905d(this,_0x5b6e68[_0x1e0ce7],_0x4d8dcc,0x0))return!0x0;}return!0x1;function _0x11905d(_0x209597,_0x5eac68,_0x5606c9,_0x141393){for(let _0x32cb86=_0x141393;_0x32cb86<_0x5606c9[_0x4c52('0x132')];_0x32cb86++){const _0x3199e9=_0x5606c9[_0x32cb86];if(_0x3199e9[_0x4c52('0xa3')]!==_0x5eac68[_0x4c52('0xa3')]||_0x3199e9[_0x4c52('0xcb')]['id']!==_0x5eac68['author']['id']||_0x3199e9['subType']!==_0x5eac68[_0x4c52('0x37')])continue;const _0x20d200=_0x574ee6[_0x4c52('0xe4')](_0x5eac68),_0x24ce92=_0x2fd7ca[_0x4c52('0xe4')](_0x5eac68),_0x3b96e7=_0x2fd7ca[_0x4c52('0xe4')](_0x3199e9),_0x3aadc0=_0x5eac68[_0x4c52('0x68')]&&_0x5eac68[_0x4c52('0x68')][_0x4c52('0x132')],_0x59ceea=_0x3199e9[_0x4c52('0x68')]&&_0x3199e9[_0x4c52('0x68')][_0x4c52('0x132')];if(!_0x3aadc0&&_0x20d200(_0x3b96e7,_0x24ce92))return _0x209597['_joinSuggestions'](_0x3199e9,_0x5eac68),_0x2fd7ca[_0x4c52('0x64')](_0x5eac68),!0x0;if(!_0x59ceea&&_0x20d200(_0x24ce92,_0x3b96e7))return _0x209597[_0x4c52('0xb2')](_0x5eac68,_0x3199e9),_0x2fd7ca[_0x4c52('0x64')](_0x3199e9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x6f00e7,_0xe8d82){if(_0x6f00e7[_0x4c52('0x12b')])for(const _0x4b3751 of _0xe8d82[_0x4c52('0x4b')]())_0x6f00e7[_0x4c52('0x4f')](_0x4b3751);else{const _0x339621=_0xe8d82['getFirstRange']()['end'];this[_0x4c52('0xd7')](_0x6f00e7,this['_model'][_0x4c52('0x77')](_0x6f00e7[_0x4c52('0x66')]()[_0x4c52('0xdb')],_0x339621));}_0xe8d82[_0x4c52('0xd1')]();}}class Dt{constructor(_0x409507){this[_0x4c52('0xdf')]=_0x409507,this[_0x4c52('0x29')]=_0x409507['model'],this['_customCallbacks']=new Map(),this[_0x4c52('0x65')]=new Map(),this[_0x4c52('0x11f')]();}['buildSuggestion'](_0x27f68e,_0x2232a4,_0x2d115d,_0x264b54,_0x486786,_0x3b44ae){return new _0x24016f(this['_model'],{'type':_0x27f68e,'subType':_0x2232a4,'id':_0x2d115d,'author':_0x264b54,'creator':_0x264b54,'attributes':_0x486786,'onAttributesChange':_0x3b44ae,'onAccept':(..._0x4d3f09)=>this[_0x4c52('0xaf')](_0x27f68e,_0x2232a4,'accept')(..._0x4d3f09),'onDiscard':(..._0x17c646)=>this['getSuggestionCallback'](_0x27f68e,_0x2232a4,_0x4c52('0x103'))(..._0x17c646)});}[_0x4c52('0x127')](_0x40a14e,_0x3ca6c9,_0x3b4cb0,_0x51c3b8){const _0x10125a=_0x40a14e+':'+_0x3ca6c9+':'+_0x3b4cb0;this[_0x4c52('0x2a')][_0x4c52('0x36')](_0x10125a,_0x51c3b8);}[_0x4c52('0xaf')](_0xee8267,_0x2e4464,_0x50a0ef){const _0x494498=_0xee8267+':'+_0x2e4464+':'+_0x50a0ef;return this['_customCallbacks'][_0x4c52('0xe4')](_0x494498)||this[_0x4c52('0x65')][_0x4c52('0xe4')](_0xee8267+':'+_0x50a0ef);}[_0x4c52('0x11f')](){const _0x2a1799=()=>{},_0x408276=_0x418da5=>{_0x418da5['sort']((_0x2d7699,_0x54233f)=>_0x2d7699[_0x4c52('0xdb')][_0x4c52('0x15')](_0x54233f[_0x4c52('0xdb')])?0x1:-0x1),this[_0x4c52('0x29')]['change'](_0x4e76cf=>{for(const _0x302b62 of _0x418da5){let _0x2b2b18;_0x2b2b18=_0x302b62[_0x4c52('0x27')]['isAtEnd']&&_0x302b62[_0x4c52('0x27')][_0x4c52('0x98')]==_0x302b62['start']['nodeAfter']?_0x4e76cf[_0x4c52('0xf5')](_0x302b62[_0x4c52('0xdb')][_0x4c52('0x12a')],'on'):_0x4e76cf[_0x4c52('0xf5')](_0x302b62),this[_0x4c52('0x29')][_0x4c52('0x128')](_0x2b2b18,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x59b627=(_0x520198,_0x266870)=>{this['_model'][_0x4c52('0x32')](_0xe1eb0a=>{const {commandName:_0x29d758,commandParams:_0x4e26e6=[]}=_0x266870,_0x1a4c3c=_0x520198[_0x4c52('0x115')](_0xcab3cb=>(_t(_0xcab3cb)&&(_0xcab3cb=this['_model'][_0x4c52('0x77')](_0xcab3cb[_0x4c52('0x27')])),_0xcab3cb))['filter'](_0xd6e229=>_0x4c52('0x53')!==_0xd6e229['root'][_0x4c52('0xa7')]);if(_0x1a4c3c[_0x4c52('0x132')]<0x1)return;const _0xc425b0=Array['from'](this[_0x4c52('0x29')][_0x4c52('0xba')][_0x4c52('0x6e')][_0x4c52('0x4b')]())[_0x4c52('0x115')](_0x3ad6d6=>_0x10252d[_0x4c52('0x89')](_0x3ad6d6));_0xe1eb0a[_0x4c52('0x13b')](_0x1a4c3c);for(const _0x10cea6 of this[_0x4c52('0xdf')][_0x4c52('0x24')][_0x4c52('0x24')]())_0x10cea6['refresh']();_0x4e26e6['push']({'forceDefaultExecution':!0x0}),this[_0x4c52('0xdf')][_0x4c52('0x43')](_0x29d758,..._0x4e26e6);const _0x7ff616=_0xc425b0[_0x4c52('0x49')](_0x440b05=>_0x4c52('0x53')!=_0x440b05[_0x4c52('0xe')][_0x4c52('0xa7')]);_0x7ff616[_0x4c52('0x132')]>0x0&&_0xe1eb0a[_0x4c52('0x13b')](_0x7ff616);for(const _0x3c9538 of _0xc425b0)_0x3c9538['detach']();});},_0xc3cd9a=(_0x3c6ec2,_0x421220)=>0x1==_0x3c6ec2['length']&&0x1==_0x421220[_0x4c52('0x132')]&&_0x3c6ec2[0x0][_0x4c52('0x27')][_0x4c52('0x1e')](_0x421220[0x0][_0x4c52('0xdb')]),_0x421166=(_0x2506e5,_0x3d383e,_0xf0da28,_0x3f3fe4)=>xt(_0x2506e5,_0x3d383e,_0xf0da28,_0x3f3fe4,this[_0x4c52('0x29')])?[_0x2506e5,_0x3d383e]:xt(_0x3d383e,_0x2506e5,_0x3f3fe4,_0xf0da28,this[_0x4c52('0x29')])?[_0x3d383e,_0x2506e5]:null;this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0xcd'),_0x2a1799),this[_0x4c52('0x65')]['set'](_0x4c52('0xa8'),_0x408276),this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0x1'),_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0xbc'),_0x421166),this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0x8e'),_0x408276),this[_0x4c52('0x65')][_0x4c52('0x36')]('deletion:discard',_0x2a1799),this[_0x4c52('0x65')][_0x4c52('0x36')]('deletion:join',_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0xef'),_0x421166),this['_defaultCallbacks'][_0x4c52('0x36')](_0x4c52('0x133'),_0x59b627),this[_0x4c52('0x65')][_0x4c52('0x36')]('formatInline:discard',_0x2a1799),this[_0x4c52('0x65')]['set']('formatInline:join',_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0xc0'),_0x2a1799),this[_0x4c52('0x65')]['set'](_0x4c52('0x19'),_0x59b627),this['_defaultCallbacks'][_0x4c52('0x36')](_0x4c52('0x35'),_0x2a1799),this[_0x4c52('0x65')][_0x4c52('0x36')](_0x4c52('0x7'),_0xc3cd9a),this[_0x4c52('0x65')]['set'](_0x4c52('0x5e'),_0x2a1799);}}function Bt(_0x4c539a,_0x2a3b2f,_0x141fe7){for(const _0x28e36b of _0x2a3b2f[_0x4c52('0x98')][_0x4c52('0x44')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28e36b['root']==_0x28e36b)return!0x1;if(!_0x141fe7['containsItem'](_0x28e36b))return!0x1;if(_0x4c539a[_0x4c52('0x134')](_0x28e36b)||_0x4c539a[_0x4c52('0x39')](_0x28e36b))return!0x0;}return!0x1;}function _t(_0x2993ab){return _0x2993ab[_0x4c52('0x27')]['parent']==_0x2993ab[_0x4c52('0xdb')][_0x4c52('0x12a')]&&_0x2993ab[_0x4c52('0x27')][_0x4c52('0x11b')];}function Mt(_0x356790,_0x523409,_0x3f8619,_0x11bf19){const _0x22e91a=_0x17252d=>!_0x17252d[_0x4c52('0xb8')]['is'](_0x4c52('0x9d'))&&!_0x11bf19[_0x4c52('0x134')](_0x17252d[_0x4c52('0xb8')]),_0x18ef1e=_0x356790[_0x4c52('0xdb')]['getLastMatchingPosition'](_0x22e91a),_0x53dfed=_0x356790['end'][_0x4c52('0x42')](_0x22e91a,{'direction':_0x4c52('0xe6')});return(!_0x356790[_0x4c52('0xdb')][_0x4c52('0x1e')](_0x18ef1e)||!_0x356790[_0x4c52('0x27')][_0x4c52('0x1e')](_0x53dfed))&&(_0x18ef1e[_0x4c52('0x15')](_0x53dfed)?_0x3f8619['updateMarker'](_0x523409,{'range':_0x3f8619[_0x4c52('0x77')](_0x18ef1e,_0x53dfed)}):_0x3f8619[_0x4c52('0xf7')](_0x523409),!0x0);}function $t(_0x16a7eb){return _0x24249f(_0x16a7eb);}function Nt(_0xe689c2){const _0x4d6dc0=_0xe689c2['start'][_0x4c52('0x12a')];return _0x4d6dc0&&_0x4d6dc0['is'](_0x4c52('0xb'));}function Rt(_0x190991,_0x40538c){const _0x4ec045=_0x40538c[_0x4c52('0x3b')][_0x4c52('0x134')](_0x190991)||_0x40538c[_0x4c52('0x3b')][_0x4c52('0xb1')](_0x190991);return _0x40538c[_0x4c52('0x77')](_0x40538c[_0x4c52('0xfb')](_0x190991,'before'),_0x4ec045?_0x40538c['createPositionAfter'](_0x190991):_0x40538c['createPositionAt'](_0x190991,_0x4c52('0x27')));}function xt(_0x177de4,_0x374c90,_0x155e04,_0x39d3c8,_0xbdae1e){if(_0x155e04[_0x4c52('0x27')][_0x4c52('0x1e')](_0x39d3c8['start']))return!0x0;if(_0x177de4[_0x4c52('0xa3')]!=_0x374c90[_0x4c52('0xa3')])return!0x1;if(!_0x155e04[_0x4c52('0x27')][_0x4c52('0x31')](_0x39d3c8[_0x4c52('0xdb')]))return!0x1;const _0x31bee4=_0xbdae1e['createRange'](_0x155e04[_0x4c52('0x27')],_0x39d3c8[_0x4c52('0xdb')])['getWalker']();for(const _0x445a3e of _0x31bee4)if([_0x4c52('0x5d'),_0x4c52('0x71')][_0x4c52('0xc8')](_0x445a3e[_0x4c52('0xa3')])&&_0xbdae1e[_0x4c52('0x3b')][_0x4c52('0x39')](_0x445a3e[_0x4c52('0xb8')]))return!0x1;return!0x0;}
|