@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231017.0 → 0.0.0-nightly-20231018.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-20231018.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-20231018.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20231018.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 _0x2352=['_cutOutSuggestionMarker','markerNameToElements','unbindElementFromMarkerName','getSuggestion','isInContent','markerName','element','trackChanges.mergeNestedSuggestions','dataDowncast','getAllAdjacentSuggestions','stop','formatInline:discard','getShiftedBy','isRemovable','model','_joinSuggestions','deletion:accept','getChangedMarkers','formatGroupId','getItems','add','acceptAllSuggestions','track-changes-adapter-missing-getsuggestion','_joinWithAdjacentSuggestions','addUser','_createSuggestion','addClass','getMultiRangeId','_getExternalAuthor','ck-suggestion-marker-formatBlock','removed','formatBlock:accept','enqueueChange','_findSuggestions','plugins','start','_adapter','getFirstMarker','insert','split','getCustomProperty','addHighlight','authorName','splitPosition','isArray','track-changes-suggestion-data-mismatch','some','nodeAfter','ck-suggestion-marker','multipleBlocks','addMarker:suggestion','insertion:join','_editor','insertion','createdAt','_refreshSuggestionsChain','then','markerToData','markMultiRangeBlockFormat','markerReady','getNearestSelectionRange','isInsideObject','Users','data-suggestion','consume','hasComments','forward','detach','markBlockFormat','_suggestions','dataToMarker','enableCommand','createElement','trackChanges','@external','isAfter','registerCustomCallback','originalSuggestionId','_saved','mapper','forceDefaultExecution','updateMarker','fromCharCode','$textProxy','assign','getDifference','change:activeMarkers','join','trackChanges.trackFormatChanges','sort','buildSuggestion','isAtStart','tablePasteChainId','bindElementToMarker','_updateSuggestionData','item','nodeBefore','move','previous','suggestion','upcast','attributes','setSelection','stopListening','deletion:chain','discardSuggestion','hasCommentThread','commandName','rootName','suggestion:','markInsertion','formatInline:','getRange','oldRange','addSuggestionData','getSuggestionCallback','locale','isTouching','deletion:','isLimit','_registerDefaultCallbacks','schema','getRanges','acceptSuggestion','formatBlock','insertContent','before','for','setTo','_customCallbacks','map','_isDataLoaded','isNextTo','markInlineFormat','containsPosition','fromRange','push','updateSuggestion','formatInline:accept','getSuggestions','suggestionUnloaded','end','filter','suggestionChanged','_rangeIsInLocalUserInsertion','isCollapsed','high','createPositionAt','ck-suggestion-marker--active','commands','addRange','_trackFormatChanges','TrackChangesEditing','author','clone','selection','isAtEnd','dataReady','discardSelectedSuggestions','differ','subType','formatBlock:','track-changes-user-not-found','removeMarkers','next','keys','parent','config','_getSuggestionData','_suggestionFactory','delete','isBefore','markers','removeMarker','newRange','size','getAttribute','addMarker:suggestion:formatBlock','length','chain','splice','insertion:chain','get','deleteContent','getCommentThread','_onDiscard','skipNestingCheck','formatInline:chain','every','isOwn','always','PENDING_ACTION_SUGGESTION','addSuggestion','_defaultCallbacks','commentThread','_isForcedDefaultExecutionBlock','refresh','never','change:data','_setSuggestionRange','isExternal','removeAttribute','rejected','change','from','root','insertion:discard','catch','discard','removeComment','addMarkerName','_handleNewSuggestionMarker','getIntersection','ready','requires','normal','acceptSelectedSuggestions','markerToHighlight','createRange','editor','_splitMarkerName','range','markMultiRangeDeletion','_mergeNestedSuggestions','options','formatInline:join','addCommentThread','fire','CommentsRepository','suggestionLoaded','addComment','ck-suggestion-marker-','formatBlock:join','track-changes-suggestion-not-found','_enabledCommands','position','deletion:discard','toViewElement','insertion:','isLocal','getChanges','consumable','setAttribute','update:suggestion','_setSuggestionData','return','_descriptionFactory','howMany','conversion','elementToElement','set','_checkSuggestionCorrectness','markDeletion','activeMarkers','value','containsRange','isObject','createSelection','accept','registerPostFixer','_breakSuggestionMarker','_commentsRepository','marker-count','trackChangesCommand','_addSuggestionMarker','after','$graveyard','_addThreadToSuggestion','name','getFirstRange','deletion','containsRangeInObject','execute','containsItem','fetchCommentThread','formatBlock:chain','creator','writer','showSuggestionHighlights','includes','PendingActions','_suggestionState','external:','getUser','toJSON','data','multi','isMultiRange','listenTo','document','_removeSuggestion','hasSuggestion','unbind','_model','discardAllSuggestions','batch','authoredAt','remove','formatInline','widget','accepted','define','low','containerElement','_getAuthorFromId','backward','isEqual','notReady','type','default','insertion:accept','has','isDocumentOperation','editingDowncast','highest','elementStart'];(function(_0x2c833e,_0x23529c){const _0x2415d5=function(_0x37db15){while(--_0x37db15){_0x2c833e['push'](_0x2c833e['shift']());}};_0x2415d5(++_0x23529c);}(_0x2352,0x11f));const _0x2415=function(_0x2c833e,_0x23529c){_0x2c833e=_0x2c833e-0x0;let _0x2415d5=_0x2352[_0x2c833e];return _0x2415d5;};import{Plugin as _0xf6eef3,PendingActions as _0x54a0fa}from'ckeditor5/src/core';import{LiveRange as _0x4b2b04}from'ckeditor5/src/engine';import{CKEditorError as _0xfc2d3f,uid as _0x464a74,priorities as _0x15c895,logWarning as _0x1cc911}from'ckeditor5/src/utils';import{toWidget as _0x566913}from'ckeditor5/src/widget';import{Users as _0x3129f4,hashObject as _0x1952c9}from'ckeditor5-collaboration/src/collaboration-core';import _0x309402 from'./commands/trackchangescommand';import _0x2b4fa2 from'./commands/acceptsuggestioncommand';import _0x47ccbd from'./commands/discardsuggestioncommand';import _0x14f666 from'./commands/executeonallsuggestionscommand';import _0x2ddfeb from'./commands/executeonselectedsuggestionscommand';import _0x47e839 from'./suggestion';import _0x509ac3 from'./suggestiondescriptionfactory';import _0x5613d9 from'./integrations/aiassistant';import _0x578e76 from'./integrations/alignment';import _0x45453a from'./integrations/basicstyles';import _0x52c967 from'./integrations/blockquote';import _0x2c1373 from'./integrations/ckbox';import _0x596b9a from'./integrations/codeblock';import _0x5b3d7e from'./integrations/comments';import _0xe5ff9f from'./integrations/deletecommand';import _0x3ccc0a from'./integrations/documentlist';import _0x5773e9 from'./integrations/entercommand';import _0x2c5a2e from'./integrations/findandreplace';import _0x5c2de3 from'./integrations/font';import _0x4d07a6 from'./integrations/formatpainter';import _0x125c61 from'./integrations/heading';import _0x2223fd from'./integrations/highlight';import _0x5b683c from'./integrations/horizontalline';import _0x4865bb from'./integrations/htmlembed';import _0x1cf8f9 from'./integrations/image';import _0x428ecf from'./integrations/imagereplace';import _0x2577f1 from'./integrations/importword';import _0x398894 from'./integrations/indent';import _0x55ad98 from'./integrations/inputcommand';import _0x584389 from'./integrations/link';import _0x14f2ea from'./integrations/list';import _0x3ce128 from'./integrations/listproperties';import _0xf93fdf from'./integrations/mediaembed';import _0x339432 from'./integrations/mention';import _0x1c297d from'./integrations/pagebreak';import _0x32dcfc from'./integrations/paragraph';import _0x39ec3b from'./integrations/removeformat';import _0x2eab23 from'./integrations/restrictededitingmode';import _0x55b833 from'./integrations/shiftentercommand';import _0x1e7812 from'./integrations/standardeditingmode';import _0x508c6e from'./integrations/style';import _0x1c09ac from'./integrations/table';import _0x17d0e6 from'./integrations/tablemergesplit';import _0x19174d from'./integrations/tableheadings';import _0x5b436b from'./integrations/tableclipboard';import _0x4c9de5 from'./integrations/tablecolumnresize';import _0x5d694b from'./integrations/template';import _0x124f20 from'./integrations/tableofcontents';import _0x377c4a from'./integrations/title';import _0x4ad764 from'./integrations/undo';import{getTranslation as _0x2f5143}from'./utils/common-translations';import _0x1a0c3f from'./integrations/tablecaption';import _0x3f9724 from'./integrations/documentlistproperties';import _0x43f907 from'./integrations/tableproperties';import{isEqual as _0x45c4c7}from'lodash-es';export default class p extends _0xf6eef3{static get[_0x2415('0xf3')](){return[_0x2415('0x101'),_0x3129f4,_0x54a0fa,_0x5613d9,_0x578e76,_0x45453a,_0x52c967,_0x2c1373,_0x596b9a,_0x5b3d7e,_0xe5ff9f,_0x3ccc0a,_0x3f9724,_0x5773e9,_0x2c5a2e,_0x5c2de3,_0x4d07a6,_0x125c61,_0x2223fd,_0x5b683c,_0x4865bb,_0x1cf8f9,_0x428ecf,_0x2577f1,_0x398894,_0x55ad98,_0x584389,_0x14f2ea,_0x3ce128,_0xf93fdf,_0x339432,_0x1c297d,_0x32dcfc,_0x39ec3b,_0x2eab23,_0x55b833,_0x1e7812,_0x508c6e,_0x1c09ac,_0x17d0e6,_0x19174d,_0x1a0c3f,_0x5b436b,_0x4c9de5,_0x124f20,_0x43f907,_0x5d694b,_0x377c4a,_0x4ad764];}static get['pluginName'](){return _0x2415('0xb5');}constructor(_0x213f0c){function _0x1ccb37(_0x59c85){return _0x59c85['map'](_0x4b5dca=>String[_0x2415('0x6f')](_0x4b5dca))[_0x2415('0x74')]('');}super(_0x213f0c),this[_0x2415('0x117')]('activeMarkers',[]),this['on'](_0x2415('0x73'),(_0x4a69d8,_0x50de90,_0x4909af,_0x9b5839)=>{this[_0x2415('0x6')][_0x2415('0xe8')](()=>{for(const _0x176fd5 of[..._0x9b5839,..._0x4909af])this[_0x2415('0x6')]['markers'][_0x2415('0x18')](_0x176fd5)&&_0x213f0c['editing']['reconvertMarker'](_0x176fd5);});}),this[_0x2415('0x113')]=new _0x509ac3(this[_0x2415('0xf8')][_0x2415('0x2b')][_0x2415('0x96')],this[_0x2415('0xf8')]['locale']),this['_adapter']=null,this[_0x2415('0xc6')]=new Bt(this['editor']),this[_0x2415('0x62')]=new Map(),this[_0x2415('0x122')]=_0x213f0c[_0x2415('0x3f')][_0x2415('0xd3')](_0x2415('0x101')),this['_enabledCommands']=new Set(),this[_0x2415('0x6')]=this[_0x2415('0xf8')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2415('0xe0')]=!0x1,_0x213f0c[_0x2415('0xc4')][_0x2415('0xe')](_0x2415('0x75'),_0x2415('0x16')),this[_0x2415('0xb4')]=_0x213f0c[_0x2415('0xc4')][_0x2415('0xd3')]('trackChanges.trackFormatChanges'),_0x213f0c[_0x2415('0xc4')][_0x2415('0xe')](_0x2415('0x24'),!0x0),this[_0x2415('0xfc')]=_0x213f0c[_0x2415('0xc4')][_0x2415('0xd3')](_0x2415('0x24')),this[_0x2415('0x124')]=new _0x309402(_0x213f0c,this[_0x2415('0x107')]),this[_0x1ccb37([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1ccb37([0x34,0x30,0x34,0x36,0x32,0x30,0x33,0x34]);}['init'](){const _0x58508e=this[_0x2415('0xf8')];_0x58508e[_0x2415('0x115')][_0x2415('0x9c')](_0x2415('0x1a'))[_0x2415('0xf6')]({'model':'suggestion','view':_0x518c11=>{const {id:_0x4a9389,type:_0xcb081}=this['_splitMarkerName'](_0x518c11[_0x2415('0x22')]),_0x1dcede=[_0x2415('0x4d'),_0x2415('0x104')+_0xcb081];let _0x3860f1=0xbb8;return this[_0x2415('0x11a')][_0x2415('0x134')](_0x518c11[_0x2415('0x22')])&&(_0x1dcede[_0x2415('0xa5')](_0x2415('0xb1')),_0x3860f1=0xbc2),_0x2415('0x12b')==_0xcb081&&(_0x3860f1+=0x5),{'classes':_0x1dcede,'attributes':{'data-suggestion':_0x4a9389},'priority':_0x3860f1};}}),_0x58508e[_0x2415('0x115')]['for'](_0x2415('0x25'))[_0x2415('0x31')](_0x142b08=>{_0x142b08['on'](_0x2415('0x4f'),(_0x805e8a,_0x405f74,_0x56df9d)=>{if(!_0x56df9d[_0x2415('0xfd')]['showSuggestionHighlights'])return;const _0x5e80a4=_0x405f74[_0x2415('0x7c')];if(!_0x5e80a4)return;const _0xe4c905=_0x56df9d[_0x2415('0x6c')][_0x2415('0x10a')](_0x5e80a4);_0x58508e[_0x2415('0x2b')]['schema'][_0x2415('0x11d')](_0x5e80a4)&&_0xe4c905&&!_0xe4c905[_0x2415('0x45')](_0x2415('0xc'))&&_0xe4c905['is'](_0x2415('0x10'))&&_0x566913(_0xe4c905,_0x56df9d['writer']);},{'priority':_0x2415('0xaf')});}),_0x58508e['conversion'][_0x2415('0x9c')](_0x2415('0x25'))['markerToHighlight']({'model':_0x2415('0x80'),'view':(_0x200e10,_0x59f429)=>{if(!_0x59f429[_0x2415('0xfd')][_0x2415('0x133')])return null;const {type:_0x4a28e7}=this[_0x2415('0xf9')](_0x200e10[_0x2415('0x22')]);return{'classes':[_0x2415('0x4d'),_0x2415('0x104')+_0x4a28e7],'priority':0xbb8};}});const _0x5c3a72=({showActiveMarkers:_0x1b976c=!0x0}={})=>(_0x3f4faf,_0x4879ce,_0x3b761f)=>{if(!_0x4879ce[_0x2415('0x7c')])return;if(_0x4879ce[_0x2415('0x7c')]['is'](_0x2415('0xb8')))return void _0x3b761f[_0x2415('0x10e')][_0x2415('0x5d')](_0x4879ce[_0x2415('0x7c')],_0x3f4faf['name']);const _0x174f73=_0x3b761f[_0x2415('0x6c')][_0x2415('0x10a')](_0x4879ce[_0x2415('0x7c')]);if(!(_0x4879ce[_0x2415('0x7c')]['is'](_0x2415('0x23'))&&_0x58508e['model'][_0x2415('0x96')]['isBlock'](_0x4879ce[_0x2415('0x7c')])&&!_0x174f73[_0x2415('0x45')]('addHighlight')))return;const {id:_0x2e2d16}=this[_0x2415('0xf9')](_0x4879ce[_0x2415('0x22')]);_0x3b761f[_0x2415('0x132')][_0x2415('0x37')]([_0x2415('0x4d'),_0x2415('0x3a')],_0x174f73),_0x3b761f[_0x2415('0x132')][_0x2415('0x10f')](_0x2415('0x5c'),_0x2e2d16,_0x174f73),_0x3b761f[_0x2415('0x6c')][_0x2415('0x7a')](_0x174f73,_0x4879ce['markerName']),_0x1b976c&&(this[_0x2415('0x11a')][_0x2415('0x134')](_0x4879ce['markerName'])?_0x3b761f[_0x2415('0x132')][_0x2415('0x37')](_0x2415('0xb1'),_0x174f73):_0x3b761f[_0x2415('0x132')]['removeClass']('ck-suggestion-marker--active',_0x174f73));for(const _0x4cb9ae of _0x58508e[_0x2415('0x2b')]['createRangeIn'](_0x4879ce[_0x2415('0x7c')])[_0x2415('0x30')]())_0x3b761f[_0x2415('0x10e')]['consume'](_0x4cb9ae,_0x3f4faf['name']);_0x3b761f[_0x2415('0x10e')][_0x2415('0x5d')](_0x4879ce['item'],_0x3f4faf[_0x2415('0x129')]);};_0x58508e[_0x2415('0x115')][_0x2415('0x9c')](_0x2415('0x25'))[_0x2415('0x31')](_0x324939=>{_0x324939['on'](_0x2415('0xce'),(_0x38dad5,_0x472d33,_0x39e69b)=>{_0x39e69b[_0x2415('0xfd')][_0x2415('0x133')]&&_0x5c3a72({'showActiveMarkers':!0x1})(_0x38dad5,_0x472d33,_0x39e69b);},{'priority':_0x2415('0x1b')});}),_0x58508e['conversion'][_0x2415('0x9c')](_0x2415('0x25'))[_0x2415('0x56')]({'model':_0x2415('0x80'),'view':(_0x365a0c,_0x18b9af)=>_0x18b9af[_0x2415('0xfd')][_0x2415('0x133')]?null:{'group':_0x2415('0x80'),'name':_0x365a0c['substr'](0xb)}}),_0x58508e[_0x2415('0x115')][_0x2415('0x9c')](_0x2415('0x81'))[_0x2415('0x116')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x113bb2,{writer:_0x34e4d1})=>{let _0x287a11=_0x2415('0x8a')+_0x113bb2[_0x2415('0xcd')]('suggestion-type')+':'+_0x113bb2['getAttribute']('id');return _0x113bb2[_0x2415('0xcd')](_0x2415('0x123'))&&(_0x287a11+=':'+_0x113bb2[_0x2415('0xcd')](_0x2415('0x123'))),_0x34e4d1[_0x2415('0x65')]('$marker',{'data-name':_0x287a11});}}),_0x58508e['conversion'][_0x2415('0x9c')]('upcast')[_0x2415('0x63')]({'view':_0x2415('0x80')}),_0x58508e['conversion'][_0x2415('0x9c')](_0x2415('0x1a'))[_0x2415('0x31')](_0xb29484=>{_0xb29484['on'](_0x2415('0xce'),_0x5c3a72(),{'priority':_0x2415('0xaf')});}),_0x58508e['conversion'][_0x2415('0x9c')](_0x2415('0x1a'))[_0x2415('0x31')](_0x154fb6=>{_0x154fb6['on']('removeMarker:suggestion:formatBlock',(_0x55ef7e,_0x3fb9b8,_0x417d4b)=>{const _0x2e414b=_0x417d4b[_0x2415('0x6c')][_0x2415('0x1e')](_0x3fb9b8['markerName']);if(_0x2e414b)for(const _0x24314f of _0x2e414b)_0x24314f[_0x2415('0x45')](_0x2415('0x46'))||(_0x417d4b[_0x2415('0x132')]['removeClass'](['ck-suggestion-marker',_0x2415('0x3a'),_0x2415('0xb1')],_0x24314f),_0x417d4b[_0x2415('0x132')][_0x2415('0xe6')](_0x2415('0x5c'),_0x24314f),_0x417d4b[_0x2415('0x6c')][_0x2415('0x1f')](_0x24314f,_0x3fb9b8['markerName']));},{'priority':_0x2415('0xaf')});}),_0x58508e[_0x2415('0x2b')]['document'][_0x2415('0x120')](_0x112b40=>{let _0x4faf74=!0x1;const _0x47edcc=Array['from'](_0x58508e[_0x2415('0x2b')]['document']['differ'][_0x2415('0x2e')]()),_0x401844=new Set();for(const {name:_0x261c8a,data:_0x46646}of _0x47edcc){const {group:_0xd1d031,type:_0x1c04a5,id:_0x30fc31}=this[_0x2415('0xf9')](_0x261c8a);if('suggestion'!==_0xd1d031)continue;const _0x189a06=this[_0x2415('0x62')]['get'](_0x30fc31);if(null!=_0x46646[_0x2415('0xcb')]){_0x2415('0xb')==_0x1c04a5&&(_0x4faf74=_0x4faf74||$t(_0x46646[_0x2415('0xcb')],_0x261c8a,_0x112b40,_0x58508e[_0x2415('0x2b')]['schema']));if(_0x46646[_0x2415('0xcb')]['isCollapsed']||_0x2415('0x127')==_0x46646['newRange'][_0x2415('0xea')][_0x2415('0x89')]||_0x2415('0x99')==_0x1c04a5&&!Rt(_0x46646[_0x2415('0xcb')])||_0x2415('0x12b')==_0x1c04a5&&!(!Mt(_0x50518c=_0x46646[_0x2415('0xcb')])&&!function(_0x546b78){return _0x546b78[_0x2415('0x40')][_0x2415('0xc3')]==_0x546b78['end'][_0x2415('0x7d')]&&_0x546b78[_0x2415('0x40')]['isAtEnd'];}(_0x50518c)))_0x112b40[_0x2415('0xca')](_0x261c8a),_0x4faf74=!0x0;else{if(!_0x189a06||!_0x189a06[_0x2415('0x21')])continue;_0x401844['add'](_0x189a06);}}}var _0x50518c;return _0x401844[_0x2415('0xcc')]>0x0&&(_0x4faf74=!!this[_0x2415('0x34')](_0x401844)||_0x4faf74),_0x4faf74;}),_0x58508e['model']['document'][_0x2415('0x120')](_0x5ab5b3=>{let _0x1963c4=!0x1;for(const _0x5bbe14 of _0x58508e['model'][_0x2415('0x2')][_0x2415('0xbc')][_0x2415('0x10d')]()){if(_0x2415('0x43')!=_0x5bbe14['type'])continue;const _0x5a7c02=_0x5bbe14[_0x2415('0x108')]['getShiftedBy'](_0x5bbe14[_0x2415('0xcf')]);if(_0x5a7c02[_0x2415('0xb9')])for(const _0x189688 of this[_0x2415('0x62')]['values']()){if(_0x189688[_0x2415('0x0')]||!_0x189688['isInContent'])continue;if(_0x2415('0x99')!=_0x189688['type'])continue;const _0x57bbb9=_0x189688['getFirstRange']();if(_0x57bbb9['start'][_0x2415('0xc3')]!=_0x57bbb9[_0x2415('0xaa')][_0x2415('0xc3')]&&_0x57bbb9[_0x2415('0xaa')][_0x2415('0x13')](_0x5bbe14['position'])){const _0x52983a=_0x58508e[_0x2415('0x2b')]['createRange'](_0x57bbb9[_0x2415('0x40')],_0x5a7c02);_0x5ab5b3[_0x2415('0x6e')](_0x189688[_0x2415('0x42')](),{'range':_0x52983a}),_0x1963c4=!0x0;}}}return _0x1963c4;}),_0x58508e['model'][_0x2415('0xc9')]['on'](_0x2415('0x110'),(_0x521411,_0x68f44a,_0x5c83b8)=>{if(null==_0x5c83b8){const {id:_0x2f8689}=this['_splitMarkerName'](_0x68f44a['name']),_0xfb0dc9=this[_0x2415('0x62')][_0x2415('0xd3')](_0x2f8689);_0xfb0dc9&&_0xfb0dc9[_0x2415('0xef')](_0x68f44a['name']);}}),_0x58508e['model']['document']['on'](_0x2415('0xe3'),()=>{const _0x111c33=Array[_0x2415('0xe9')](_0x58508e[_0x2415('0x2b')][_0x2415('0x2')][_0x2415('0xbc')][_0x2415('0x2e')]())[_0x2415('0xab')](_0x1f2b8c=>'suggestion'===this[_0x2415('0xf9')](_0x1f2b8c[_0x2415('0x129')])['group']);if(0x0===_0x111c33['length'])return;_0x111c33[_0x2415('0x76')]((_0x3b021f,_0x48269f)=>{const _0x53d890=_0x3b021f[_0x2415('0x13a')][_0x2415('0x8e')],_0x21c606=_0x48269f[_0x2415('0x13a')][_0x2415('0x8e')];return null===_0x53d890&&null===_0x21c606?0x0:null===_0x53d890&&null!==_0x21c606?-0x1:null!==_0x53d890&&null===_0x21c606?0x1:_0x53d890[_0x2415('0x40')][_0x2415('0xc8')](_0x21c606['start'])?-0x1:0x1;});const _0x47b13e=new Set(),_0x10ab95=new Set();for(const {name:_0xf3b43a,data:_0x46e4b3}of _0x111c33){const {id:_0x3d0402}=this[_0x2415('0xf9')](_0xf3b43a);if(null===_0x46e4b3[_0x2415('0x8e')]){const _0x2f1a31=this[_0x2415('0xf0')](_0xf3b43a);_0x10ab95['add'](_0x2f1a31);}else{const _0xddfaa=this['_suggestions'][_0x2415('0xd3')](_0x3d0402);null!==_0x46e4b3[_0x2415('0xcb')]||_0xddfaa['isInContent']?(_0x47b13e[_0x2415('0x31')](_0xddfaa['head']),_0x10ab95['add'](_0xddfaa)):this[_0x2415('0x3')](_0xddfaa);}}_0x10ab95['size']>0x0&&this['_refreshSuggestionsChain'](_0x10ab95);for(const _0x325b9c of _0x47b13e)this[_0x2415('0x100')](_0x2415('0xac'),_0x325b9c);}),_0x58508e[_0x2415('0x2b')]['on']('applyOperation',(_0x4a7448,_0x1b5c0f)=>{const _0x4a73a5=_0x1b5c0f[0x0];if(!this['_suggestions'][_0x2415('0xcc')])return;if(!_0x4a73a5[_0x2415('0x19')])return;if(_0x4a73a5['batch']['isUndo']||!_0x4a73a5[_0x2415('0x8')][_0x2415('0x10c')])return;let _0x1e54a1,_0x3cd299;switch(_0x4a73a5['type']){case _0x2415('0x43'):_0x1e54a1=_0x58508e['model'][_0x2415('0xb0')](_0x4a73a5[_0x2415('0x108')]),_0x3cd299=_0x1e54a1[_0x2415('0x29')](_0x4a73a5[_0x2415('0x114')]);break;case'split':_0x1e54a1=_0x58508e[_0x2415('0x2b')][_0x2415('0xb0')](_0x4a73a5[_0x2415('0x48')]),_0x3cd299=_0x58508e['model'][_0x2415('0xb0')](_0x4a73a5['moveTargetPosition']);break;case _0x2415('0x7e'):_0x1e54a1=_0x58508e[_0x2415('0x2b')]['createPositionAt'](_0x4a73a5['targetPosition']),_0x3cd299=_0x1e54a1[_0x2415('0x29')](_0x4a73a5[_0x2415('0x114')]);break;default:return;}const _0x5ebc7c=_0x58508e[_0x2415('0x2b')][_0x2415('0xf7')](_0x1e54a1,_0x3cd299);_0x58508e[_0x2415('0x2b')][_0x2415('0xe8')](()=>{for(const {suggestion:_0x2fb2ba,meta:_0x2357b4}of this[_0x2415('0x3e')](_0x5ebc7c)){if(_0x2fb2ba[_0x2415('0x0')])continue;if('formatInline'==_0x2fb2ba[_0x2415('0x15')])continue;const _0x47bc23=_0x2fb2ba[_0x2415('0x13a')]&&_0x2fb2ba[_0x2415('0x13a')][_0x2415('0x4e')];('formatBlock'!=_0x2fb2ba[_0x2415('0x15')]||_0x2415('0x44')==_0x4a73a5[_0x2415('0x15')]&&!_0x47bc23)&&(_0x2357b4[_0x2415('0x12c')]||_0x2415('0x52')==_0x2fb2ba[_0x2415('0x15')]&&_0x2357b4[_0x2415('0xda')]||_0x2fb2ba[_0x2415('0x12a')]()[_0x2415('0x11c')](_0x5ebc7c)&&this[_0x2415('0x121')](_0x2fb2ba,_0x1e54a1,_0x3cd299));}});},{'priority':'lowest'}),_0x58508e[_0x2415('0x2b')]['on']('deleteContent',(_0x60f073,_0x3535d1)=>{const _0x59c263=_0x3535d1[0x0],_0x4693cf=_0x3535d1[0x1];if(_0x4693cf&&_0x4693cf['forceDefaultExecution'])return;if(this[_0x2415('0xe0')])return;if(!this[_0x2415('0x124')][_0x2415('0x11b')])return;if(_0x59c263[_0x2415('0xae')])return;const _0x2a0344=_0x58508e[_0x2415('0x2b')][_0x2415('0x96')],{start:_0x245101,end:_0x1e7a27}=_0x59c263[_0x2415('0x12a')](),_0x513b80=_0x245101[_0x2415('0x4c')]&&_0x2a0344['isLimit'](_0x245101[_0x2415('0x4c')])?null:_0x2a0344[_0x2415('0x59')](_0x245101,_0x2415('0x5f')),_0x2adc04=_0x1e7a27[_0x2415('0x7d')]&&_0x2a0344[_0x2415('0x94')](_0x1e7a27[_0x2415('0x7d')])?null:_0x2a0344['getNearestSelectionRange'](_0x1e7a27,_0x2415('0x12')),_0x2494a7=_0x58508e[_0x2415('0x2b')][_0x2415('0xf7')](_0x513b80?_0x513b80[_0x2415('0x40')]:_0x245101,_0x2adc04?_0x2adc04[_0x2415('0xaa')]:_0x1e7a27);_0x58508e[_0x2415('0x2b')]['change'](_0x5383df=>{this['markDeletion'](_0x2494a7);const _0xfbaacd=_0x58508e['model'][_0x2415('0x96')][_0x2415('0x59')](_0x2494a7[_0x2415('0x40')]);_0x59c263['is']('documentSelection')?_0x5383df[_0x2415('0x83')](_0xfbaacd):_0x59c263[_0x2415('0x9d')](_0xfbaacd);}),_0x60f073[_0x2415('0x27')]();},{'priority':_0x15c895[_0x2415('0xf4')]+0xa}),_0x58508e[_0x2415('0x2b')]['on'](_0x2415('0x9a'),(_0x202027,_0x4f5390)=>{const _0x19f1da=_0x4f5390[_0x4f5390[_0x2415('0xcf')]-0x1];_0x19f1da&&_0x19f1da[_0x2415('0x6d')]||this[_0x2415('0xe0')]||this[_0x2415('0x124')]['value']&&(_0x58508e['model']['change'](()=>{let _0x4fbece=_0x58508e[_0x2415('0x2b')][_0x2415('0x9a')](_0x4f5390[0x0],_0x4f5390[0x1],_0x4f5390[0x2],{'forceDefaultExecution':!0x0});if(!_0x4fbece)return;_0x202027[_0x2415('0x112')]=_0x4fbece[_0x2415('0xb7')]();const _0x5e5b0f=_0x4fbece[_0x2415('0xaa')][_0x2415('0x7d')],_0x207325=_0x58508e[_0x2415('0x2b')][_0x2415('0x96')];_0x5e5b0f&&_0x207325['isBlock'](_0x5e5b0f)&&!_0x207325[_0x2415('0x11d')](_0x5e5b0f)&&(_0x4fbece=_0x58508e[_0x2415('0x2b')]['createRange'](_0x4fbece['start'],_0x58508e[_0x2415('0x2b')][_0x2415('0xb0')](_0x5e5b0f,'end'))),this[_0x2415('0x8b')](_0x4fbece);}),_0x202027[_0x2415('0x27')]());},{'priority':_0x2415('0xaf')}),this[_0x2415('0xf8')]['commands']['add'](_0x2415('0x66'),this[_0x2415('0x124')]),this[_0x2415('0x64')](_0x2415('0x66'));const _0x5cc527=new _0x2b4fa2(_0x58508e,this[_0x2415('0x62')]);_0x58508e['commands'][_0x2415('0x31')](_0x2415('0x98'),_0x5cc527),this[_0x2415('0x64')](_0x2415('0x98'));const _0x470eaa=new _0x47ccbd(_0x58508e,this[_0x2415('0x62')]);_0x58508e['commands'][_0x2415('0x31')](_0x2415('0x86'),_0x470eaa),this[_0x2415('0x64')](_0x2415('0x86')),_0x58508e[_0x2415('0xb2')]['add'](_0x2415('0x32'),new _0x14f666(_0x58508e,_0x5cc527,this[_0x2415('0x62')])),this[_0x2415('0x64')](_0x2415('0x32')),_0x58508e[_0x2415('0xb2')][_0x2415('0x31')](_0x2415('0x7'),new _0x14f666(_0x58508e,_0x470eaa,this[_0x2415('0x62')])),this['enableCommand'](_0x2415('0x7')),_0x58508e[_0x2415('0xb2')]['add'](_0x2415('0xf5'),new _0x2ddfeb(_0x58508e,_0x5cc527,this[_0x2415('0x62')])),this[_0x2415('0x64')](_0x2415('0xf5')),_0x58508e[_0x2415('0xb2')][_0x2415('0x31')](_0x2415('0xbb'),new _0x2ddfeb(_0x58508e,_0x470eaa,this[_0x2415('0x62')])),this['enableCommand'](_0x2415('0xbb'));const _0x121c45=_0x58508e[_0x2415('0x3f')][_0x2415('0xd3')](_0x2415('0x101'));this[_0x2415('0x1')](_0x121c45,_0x2415('0x103'),(_0xfd70c1,{threadId:_0x2c56a8})=>{const _0x1cf74d=this[_0x2415('0x62')]['get'](_0x2c56a8);_0x1cf74d&&_0x1cf74d[_0x2415('0xdf')]&&0x1===_0x1cf74d['commentThread'][_0x2415('0xcf')]&&this[_0x2415('0x7b')](_0x2c56a8,{'hasComments':!0x0});},{'priority':_0x2415('0xf')}),this['listenTo'](_0x121c45,_0x2415('0xee'),(_0x19681e,{threadId:_0x53bcb7})=>{const _0x12725d=this[_0x2415('0x62')][_0x2415('0xd3')](_0x53bcb7);_0x12725d&&_0x12725d[_0x2415('0xdf')]&&!_0x12725d[_0x2415('0xdf')][_0x2415('0xcf')]&&this[_0x2415('0x7b')](_0x53bcb7,{'hasComments':!0x1});},{'priority':_0x2415('0xf')});}set['adapter'](_0x171c06){if(this[_0x2415('0x41')])throw new _0xfc2d3f('track-changes-adapter-already-set',this);this['_adapter']=_0x171c06;}get['adapter'](){return this[_0x2415('0x41')];}[_0x2415('0xa8')]({skipNotAttached:_0x5baf50=!0x1,toJSON:_0x5db5ba=!0x1}={}){const _0x5e3599=[];for(const _0x2c8fba of this[_0x2415('0x62')]['values']())_0x5baf50&&!_0x2c8fba[_0x2415('0x21')]||_0x5e3599[_0x2415('0xa5')](_0x2c8fba);return _0x5db5ba?_0x5e3599[_0x2415('0x9f')](_0xc47aea=>_0xc47aea[_0x2415('0x139')]()):_0x5e3599;}[_0x2415('0x20')](_0xd0596c){const _0x314a06=this[_0x2415('0x62')][_0x2415('0xd3')](_0xd0596c);if(!_0x314a06)throw new _0xfc2d3f(_0x2415('0x106'),this);return _0x314a06;}[_0x2415('0x4')](_0x38a0a3){return this[_0x2415('0x62')][_0x2415('0x18')](_0x38a0a3);}['addSuggestionData'](_0x2fb69c){const {authorId:_0x22746c,id:_0x4387f4,attributes:_0xabdfdd}=_0x2fb69c,[_0x13a8ab,_0x5b7baf]=_0x2fb69c['type'][_0x2415('0x44')](':'),_0x25795c=this[_0x2415('0x62')]['get'](_0x4387f4)||this[_0x2415('0x36')](_0x13a8ab,_0x5b7baf,_0x4387f4,_0x22746c,_0xabdfdd);if(this[_0x2415('0x128')](_0x25795c),this['_checkSuggestionCorrectness'](_0x25795c,_0x13a8ab,_0x5b7baf||null,_0x22746c),_0x25795c[_0x2415('0x53')]=_0x2fb69c[_0x2415('0x53')],_0x25795c['_isDataLoaded']=!0x0,_0xabdfdd&&_0xabdfdd[_0x2415('0x67')]){const _0x15851b=_0xabdfdd[_0x2415('0x67')],_0x138d0e=this[_0x2415('0x39')](_0x15851b[_0x2415('0x47')]);_0x25795c[_0x2415('0x9')]=_0x15851b[_0x2415('0x53')],_0x25795c[_0x2415('0xb6')]=_0x138d0e,_0x25795c[_0x2415('0xe5')]=!0x0;}else _0x25795c[_0x2415('0x9')]=_0x2fb69c[_0x2415('0x53')];switch(_0x2fb69c[_0x2415('0x13a')]&&(_0x25795c[_0x2415('0x13a')]=_0x2fb69c[_0x2415('0x13a')]),_0x2fb69c[_0x2415('0x82')]&&(_0x25795c['attributes']=_0x2fb69c[_0x2415('0x82')]),this[_0x2415('0x41')]&&this[_0x2415('0x41')]['addSuggestion']||(_0x25795c['_saved']=!0x0),this['_suggestionState'][_0x2415('0xd3')](_0x25795c)){case _0x2415('0x14'):this[_0x2415('0x136')][_0x2415('0x117')](_0x25795c,'dataReady');break;case _0x2415('0x58'):_0x25795c[_0x2415('0x21')]?(this[_0x2415('0x54')](new Set([_0x25795c])),this[_0x2415('0x34')](new Set([_0x25795c])),this['_suggestionState']['set'](_0x25795c,_0x2415('0xf2')),this[_0x2415('0x100')](_0x2415('0x102'),_0x25795c)):this[_0x2415('0x136')]['set'](_0x25795c,_0x2415('0x3b'));}return _0x25795c;}[_0x2415('0x98')](_0x4af31c){this[_0x2415('0x6d')](()=>{this['editor'][_0x2415('0x2b')][_0x2415('0xe8')](()=>{for(const _0x1469b7 of _0x4af31c[_0x2415('0x26')]())_0x1469b7[_0x2415('0x11f')]();});});}[_0x2415('0x86')](_0x3efbc0){this[_0x2415('0x6d')](()=>{this[_0x2415('0xf8')][_0x2415('0x2b')][_0x2415('0xe8')](()=>{for(const _0x133a3d of _0x3efbc0[_0x2415('0x26')]())_0x133a3d['discard']();});});}[_0x2415('0x64')](_0x5d7f58,_0x50aca7){const _0x40a100=this[_0x2415('0xf8')]['commands'][_0x2415('0xd3')](_0x5d7f58);if(!_0x40a100)throw new _0xfc2d3f('track-changes-command-not-found',this,{'commandName':_0x5d7f58});this[_0x2415('0x107')][_0x2415('0x31')](_0x40a100),_0x50aca7&&_0x40a100['on'](_0x2415('0x12d'),(_0x479263,_0x1ffb73)=>{this[_0x2415('0x124')][_0x2415('0x11b')]&&(this[_0x2415('0xe0')]||_0x1ffb73['length']>0x0&&_0x1ffb73[_0x1ffb73[_0x2415('0xcf')]-0x1]&&_0x1ffb73[_0x1ffb73['length']-0x1][_0x2415('0x6d')]||(_0x479263['return']=_0x50aca7((..._0x450dc1)=>_0x40a100['execute'](..._0x450dc1,{'forceDefaultExecution':!0x0}),..._0x1ffb73),_0x479263[_0x2415('0x27')]()));},{'priority':_0x2415('0xaf')});}[_0x2415('0x6d')](_0x1897c5){let _0x1d3d91,_0x197cc8;const _0x11d5cc=this[_0x2415('0xe0')];this[_0x2415('0xe0')]=!0x0;try{_0x1d3d91=_0x1897c5();}catch(_0x5b922d){_0x197cc8=_0x5b922d;}return _0x11d5cc||(this[_0x2415('0xe0')]=!0x1),_0x197cc8&&_0xfc2d3f['rethrowUnexpectedError'](_0x197cc8,this),_0x1d3d91;}[_0x2415('0x8b')](_0x2f54a7,_0x464802=null,_0xd2172d={}){if(_0x2f54a7['isCollapsed'])return null;const _0x4c07ac=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')]('Users')['me'];for(const {suggestion:_0x539d77,meta:_0x2c0add}of this[_0x2415('0x3e')](_0x2f54a7,'insertion'))if(_0x2c0add[_0x2415('0xda')]){if(!_0x2c0add[_0x2415('0xa1')]){if(_0x2c0add[_0x2415('0x12c')]){if(!this[_0x2415('0xfc')]||!Ot(_0x539d77,_0xd2172d))continue;return _0x539d77;}if(Ot(_0x539d77,_0xd2172d))return _0x539d77;this[_0x2415('0x121')](_0x539d77,_0x2f54a7[_0x2415('0x40')],_0x2f54a7['end']);break;}if(_0x464802==_0x539d77[_0x2415('0xbd')]&&Ot(_0x539d77,_0xd2172d)){const _0x2beb26=_0x539d77[_0x2415('0x12a')]();return _0x2beb26[_0x2415('0x40')][_0x2415('0x13')](_0x2f54a7[_0x2415('0xaa')])?this[_0x2415('0xe4')](_0x539d77,this['_model']['createRange'](_0x2f54a7[_0x2415('0x40')],_0x2beb26['end'])):this[_0x2415('0xe4')](_0x539d77,this[_0x2415('0x6')][_0x2415('0xf7')](_0x2beb26['start'],_0x2f54a7[_0x2415('0xaa')])),_0x539d77;}}const _0x35c8fd=_0x464a74(),_0x3d6c41=_0x4c07ac['id'],_0xb27238=_0x464802?_0x2415('0x10b')+_0x464802:_0x2415('0x52'),_0x18712d=this[_0x2415('0x111')]({'id':_0x35c8fd,'type':_0xb27238,'createdAt':new Date(),'authorId':_0x3d6c41,'attributes':_0xd2172d});return this[_0x2415('0x125')](_0xb27238,_0x35c8fd,_0x3d6c41,_0x2f54a7),_0x18712d;}['markMultiRangeInsertion'](_0x3efcd8,_0xf4ae73=_0x2415('0x13b'),_0x1efdf3={}){const _0x20e4a7=this[_0x2415('0xf8')][_0x2415('0x3f')]['get'](_0x2415('0x5b'))['me'],_0x536a38=this[_0x2415('0xc6')][_0x2415('0x90')](_0x2415('0x52'),_0xf4ae73,_0x2415('0x74'));for(const _0x3c55ab of this['getSuggestions']())if(_0x3c55ab[_0x2415('0xb6')]['id']==_0x20e4a7['id']&&'insertion'==_0x3c55ab[_0x2415('0x15')]&&_0x3c55ab[_0x2415('0xbd')]==_0xf4ae73&&Ot(_0x3c55ab,_0x1efdf3)&&(_0x536a38(_0x3c55ab[_0x2415('0x97')](),_0x3efcd8)||_0x536a38(_0x3efcd8,_0x3c55ab['getRanges']()))){for(const _0x39ea88 of _0x3efcd8)_0x3c55ab[_0x2415('0xb3')](_0x39ea88);return _0x3c55ab;}for(const {suggestion:_0x271d89,meta:_0x527c91}of this[_0x2415('0x3e')](_0x3efcd8,_0x2415('0x52'))){if(!_0x527c91[_0x2415('0xda')])continue;if(!this[_0x2415('0xfc')]&&_0x527c91[_0x2415('0x12c')])continue;if(!Ot(_0x271d89,_0x1efdf3))continue;let _0x1cded8=!0x0;for(const _0x27a9df of _0x271d89['getRanges']())for(const _0x282e4e of _0x3efcd8)if(!_0x27a9df[_0x2415('0x11c')](_0x282e4e)){_0x1cded8=!0x1;break;}if(_0x1cded8)return _0x271d89;}const _0x39fd35=_0x464a74(),_0x4951ea=_0x20e4a7['id'],_0x6346d4=_0x2415('0x10b')+_0xf4ae73,_0x47d067=this[_0x2415('0x111')]({'id':_0x39fd35,'type':_0x6346d4,'createdAt':new Date(),'authorId':_0x4951ea,'attributes':_0x1efdf3});for(const _0x324b36 of _0x3efcd8)this[_0x2415('0x125')](_0x6346d4,_0x39fd35,_0x4951ea,_0x324b36,_0x47e839[_0x2415('0x38')]());return _0x47d067;}[_0x2415('0xa2')](_0x4a7960,_0x28bedd,_0x225677=null,_0x4f1779={}){if(_0x225677=_0x225677||Nt(_0x28bedd),_0x4a7960[_0x2415('0xae')])return null;if(_0x2415('0xe2')===this['_trackFormatChanges']){const _0x1613b9=this[_0x2415('0xc6')][_0x2415('0x90')](_0x2415('0xb'),_0x225677,'accept');return this[_0x2415('0x6d')](()=>_0x1613b9([_0x4a7960],_0x28bedd,_0x4f1779)),null;}const _0x46bfb5=this[_0x2415('0xf8')]['plugins'][_0x2415('0xd3')](_0x2415('0x5b'))['me'],_0x250144=[];if(_0x2415('0xdb')!==this[_0x2415('0xb4')])for(const {suggestion:_0x38326d,meta:_0x426f4f}of this[_0x2415('0x3e')](_0x4a7960,_0x2415('0x52')))_0x426f4f[_0x2415('0xda')]&&!_0x426f4f['isInsideObject']&&_0x250144[_0x2415('0xa5')](..._0x38326d[_0x2415('0x97')]());const _0x4633cc=function(_0x2fd867,_0x45dd70){const _0x4d19f3=[];for(const _0xadc586 of _0x45dd70){const _0xb616b8=_0x2fd867[_0x2415('0xf1')](_0xadc586);_0xb616b8&&_0x4d19f3[_0x2415('0xa5')](_0xb616b8);}return _0x4d19f3;}(_0x4a7960,_0x250144),_0x1a2b90=function(_0x12f3f0,_0x5e9743){const _0x12bf55=[_0x12f3f0];for(const _0x27f534 of _0x5e9743){let _0x531309=0x0;for(;_0x531309<_0x12bf55[_0x2415('0xcf')];){const _0x5d0c4d=_0x12bf55[_0x531309][_0x2415('0x72')](_0x27f534);_0x12bf55[_0x2415('0xd1')](_0x531309,0x1,..._0x5d0c4d),_0x531309+=_0x5d0c4d['length'];}}return _0x12bf55;}(_0x4a7960,_0x250144);_0x4633cc['length']&&this[_0x2415('0x6')][_0x2415('0xe8')](()=>{for(const _0x14a5ef of _0x4633cc){const _0x45aeae=this[_0x2415('0xc6')][_0x2415('0x90')]('formatInline',_0x225677,_0x2415('0x11f'));this[_0x2415('0x6d')](()=>_0x45aeae([_0x14a5ef],_0x28bedd,_0x4f1779));}});for(const _0x47855f of _0x1a2b90){let _0x2946d8=null,_0x99ebaf=_0x47855f[_0x2415('0x40')],_0x5b2ed1=_0x47855f['end'];for(const {suggestion:_0x40aba0,meta:_0x5650ab}of this[_0x2415('0x3e')](_0x47855f,_0x2415('0xb'))){if(!_0x5650ab['isOwn'])continue;if(_0x40aba0['subType']!=_0x225677)continue;if(!Ot(_0x40aba0,_0x4f1779))continue;const _0x37aa9d=_0x40aba0['getFirstRange']();if(_0x37aa9d['containsRange'](_0x47855f,!0x0))return null;_0x99ebaf=_0x99ebaf[_0x2415('0xc8')](_0x37aa9d[_0x2415('0x40')])?_0x99ebaf:_0x37aa9d[_0x2415('0x40')],_0x5b2ed1=_0x5b2ed1[_0x2415('0x68')](_0x37aa9d[_0x2415('0xaa')])?_0x5b2ed1:_0x37aa9d[_0x2415('0xaa')],_0x2946d8?_0x37aa9d['start'][_0x2415('0xc8')](_0x2946d8[_0x2415('0x12a')]()['start'])?(_0x2946d8['removeMarkers'](),_0x2946d8=_0x40aba0):_0x40aba0[_0x2415('0xc0')]():_0x2946d8=_0x40aba0;}const _0x4e6351=this['_model'][_0x2415('0xf7')](_0x99ebaf,_0x5b2ed1);if(_0x2946d8)this['_setSuggestionRange'](_0x2946d8,_0x4e6351);else{const _0x299cb1=_0x464a74(),_0x28f3d3=_0x46bfb5['id'];this[_0x2415('0x111')]({'id':_0x299cb1,'type':_0x2415('0x8c')+_0x225677,'data':_0x28bedd,'createdAt':new Date(),'authorId':_0x28f3d3,'attributes':_0x4f1779}),this[_0x2415('0x125')]('formatInline:'+_0x225677,_0x299cb1,_0x28f3d3,_0x4e6351);}}return null;}[_0x2415('0x61')](_0x54a10d,_0x1709c6,_0x3e257c=[],_0x318428=null,_0x2da228={}){_0x1709c6['formatGroupId']||(_0x1709c6[_0x2415('0x2f')]=_0x1709c6[_0x2415('0x88')]),_0x1709c6['multipleBlocks']=_0x54a10d['is'](_0x2415('0xfa')),_0x318428=_0x318428||Nt(_0x1709c6);const _0xc7d24=_0x3e257c[_0x2415('0x9f')](_0x40b714=>jt(_0x40b714,this[_0x2415('0x6')])),_0x19b575=_0x54a10d['is'](_0x2415('0xfa'))?_0x54a10d:jt(_0x54a10d,this[_0x2415('0x6')]);if(_0x2415('0xe2')===this[_0x2415('0xb4')]){const _0x2ade00=this['_suggestionFactory'][_0x2415('0x90')](_0x2415('0x99'),_0x318428,_0x2415('0x11f'));return this[_0x2415('0x6d')](()=>_0x2ade00([_0x19b575],_0x1709c6,_0x2da228)),null;}_0xc7d24[_0x2415('0xa5')](_0x19b575);let _0x24b3a7=!0x0;for(const _0x33f3e3 of _0xc7d24)if(!this[_0x2415('0xad')](_0x33f3e3)){_0x24b3a7=!0x1;break;}if(_0x24b3a7&&'always'!==this['_trackFormatChanges']){const _0x322fd1=this[_0x2415('0xc6')][_0x2415('0x90')](_0x2415('0x99'),_0x318428,_0x2415('0x11f'));return this['forceDefaultExecution'](()=>_0x322fd1([_0x19b575],_0x1709c6,_0x2da228)),null;}let _0x5ac44a=null,_0x37b814=_0x19b575[_0x2415('0x40')],_0x2c87bc=_0x19b575[_0x2415('0xaa')];for(const {suggestion:_0x5b9ad3,meta:_0x1bc1c9}of this[_0x2415('0x3e')](_0x19b575,_0x2415('0x99'))){if(!_0x1bc1c9[_0x2415('0xda')])continue;if(_0x1bc1c9[_0x2415('0xa1')]||_0x1bc1c9[_0x2415('0x12c')]||_0x1bc1c9[_0x2415('0x5a')])continue;if(_0x5b9ad3[_0x2415('0x13a')][_0x2415('0x2f')]!=_0x1709c6[_0x2415('0x2f')])continue;if(!Ot(_0x5b9ad3,_0x2da228))continue;const _0x5ec299=_0x5b9ad3[_0x2415('0x12a')]();if(_0x5b9ad3['subType']==_0x318428){if(_0x5ec299[_0x2415('0x11c')](_0x19b575,!0x0))return null;_0x37b814=_0x37b814[_0x2415('0xc8')](_0x5ec299[_0x2415('0x40')])?_0x37b814:_0x5ec299[_0x2415('0x40')],_0x2c87bc=_0x2c87bc[_0x2415('0x68')](_0x5ec299['end'])?_0x2c87bc:_0x5ec299[_0x2415('0xaa')],_0x5ac44a?_0x5ec299[_0x2415('0x40')][_0x2415('0xc8')](_0x5ac44a[_0x2415('0x12a')]()[_0x2415('0x40')])?(_0x5ac44a['removeMarkers'](),_0x5ac44a=_0x5b9ad3):_0x5b9ad3['removeMarkers']():_0x5ac44a=_0x5b9ad3;}else{const _0x417b24=_0x19b575[_0x2415('0xf1')](_0x5ec299);this[_0x2415('0x1d')](_0x5b9ad3,_0x417b24);}}const _0x1e9ff6=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')]('Users')['me'],_0x25899e=_0x464a74(),_0x286ca8=_0x1e9ff6['id'];if(_0x5ac44a)return this[_0x2415('0xe4')](_0x5ac44a,this['_model'][_0x2415('0xf7')](_0x37b814,_0x2c87bc)),_0x5ac44a;{const _0x42856e=this['_setSuggestionData']({'id':_0x25899e,'type':_0x2415('0xbe')+_0x318428,'data':_0x1709c6,'createdAt':new Date(),'authorId':_0x286ca8,'attributes':_0x2da228});return this[_0x2415('0x125')](_0x2415('0xbe')+_0x318428,_0x25899e,_0x286ca8,this['_model'][_0x2415('0xf7')](_0x37b814,_0x2c87bc)),_0x42856e;}}[_0x2415('0x57')](_0x62d789,_0x4ea731,_0x164936=[],_0x5b8149=null,_0x4e449f={}){_0x4ea731[_0x2415('0x2f')]||(_0x4ea731[_0x2415('0x2f')]=_0x4ea731['commandName']);const _0x5166d4=_0x62d789[0x0];_0x4ea731['multipleBlocks']=_0x5166d4['is'](_0x2415('0xfa')),_0x5b8149=_0x5b8149||Nt(_0x4ea731);const _0x3bf250=_0x164936[_0x2415('0x9f')](_0x3c59ce=>jt(_0x3c59ce,this['_model'])),_0x4e87b4=_0x5166d4['is'](_0x2415('0xfa'))?_0x62d789:_0x62d789[_0x2415('0x9f')](_0x4e2b10=>jt(_0x4e2b10,this[_0x2415('0x6')]));if('never'===this['_trackFormatChanges']){const _0x45968a=this['_suggestionFactory'][_0x2415('0x90')](_0x2415('0x99'),_0x5b8149,_0x2415('0x11f'));return this[_0x2415('0x6d')](()=>_0x45968a(_0x4e87b4,_0x4ea731,_0x4e449f)),null;}_0x3bf250[_0x2415('0xa5')](..._0x4e87b4);let _0x347959=!0x0;for(const _0x1a4c96 of _0x3bf250)if(!this[_0x2415('0xad')](_0x1a4c96)){_0x347959=!0x1;break;}if(_0x347959&&_0x2415('0xdb')!==this['_trackFormatChanges']){const _0x36039a=this[_0x2415('0xc6')]['getSuggestionCallback'](_0x2415('0x99'),_0x5b8149,_0x2415('0x11f'));return this['forceDefaultExecution'](()=>_0x36039a(_0x4e87b4,_0x4ea731,_0x4e449f)),null;}const _0x2742e7=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')](_0x2415('0x5b'))['me'];for(const _0x191a9b of this[_0x2415('0xa8')]()){if(_0x191a9b[_0x2415('0xb6')]['id']!=_0x2742e7['id'])continue;if(_0x2415('0x99')!=_0x191a9b[_0x2415('0x15')]||_0x191a9b[_0x2415('0x13a')]['formatGroupId']!=_0x4ea731[_0x2415('0x2f')])continue;if(!Ot(_0x191a9b,_0x4e449f))continue;const _0x48c842=_0x191a9b[_0x2415('0xbd')]==_0x5b8149;for(let _0x1e8820=0x0;_0x1e8820<_0x4e87b4[_0x2415('0xcf')];_0x1e8820++){const _0x1435e2=_0x4e87b4[_0x1e8820];for(const _0x7321ed of _0x191a9b['getMarkers']()){const _0x50cbe6=_0x7321ed[_0x2415('0x8d')]();if(_0x1435e2[_0x2415('0x13')](_0x50cbe6)){_0x48c842?(_0x4e87b4[_0x2415('0xd1')](_0x1e8820,0x1),_0x1e8820--):_0x191a9b[_0x2415('0xca')](_0x7321ed[_0x2415('0x129')]);break;}}}}if(0x0==_0x4e87b4[_0x2415('0xcf')])return null;const _0x934e79=this[_0x2415('0xc6')][_0x2415('0x90')](_0x2415('0x99'),_0x5b8149,_0x2415('0x74'));for(const _0x2871d0 of this['getSuggestions']())if(_0x2871d0[_0x2415('0xb6')]['id']==_0x2742e7['id']&&_0x2415('0x99')==_0x2871d0[_0x2415('0x15')]&&_0x2871d0[_0x2415('0x13a')][_0x2415('0x2f')]==_0x4ea731[_0x2415('0x2f')]&&_0x2871d0[_0x2415('0xbd')]==_0x5b8149&&Ot(_0x2871d0,_0x4e449f)&&(_0x934e79(_0x2871d0[_0x2415('0x97')](),_0x4e87b4)||_0x934e79(_0x4e87b4,_0x2871d0['getRanges']()))){for(const _0x2bdc94 of _0x4e87b4)_0x2871d0['addRange'](_0x2bdc94);return _0x2871d0;}const _0x3f111d=_0x464a74(),_0x3af65a=_0x2742e7['id'],_0x318b18=_0x2415('0xbe')+_0x5b8149,_0x22e3eb=this[_0x2415('0x111')]({'id':_0x3f111d,'type':_0x318b18,'data':_0x4ea731,'createdAt':new Date(),'authorId':_0x3af65a,'attributes':_0x4e449f});for(const _0x279b61 of _0x4e87b4)this[_0x2415('0x125')](_0x318b18,_0x3f111d,_0x3af65a,_0x279b61,_0x47e839[_0x2415('0x38')]());return _0x22e3eb;}[_0x2415('0x119')](_0x4bd08e,_0xb80f8=null,_0x544cf4={}){if(_0x4bd08e[_0x2415('0xae')])return null;const _0x4d5b1f=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')]('Users')['me'],_0x223942=new _0x4b2b04(_0x4bd08e[_0x2415('0x40')],_0x4bd08e['end']);for(const {suggestion:_0x2a5959,meta:_0xcbecd7}of this[_0x2415('0x3e')](_0x223942,'insertion'))if(_0xcbecd7['isOwn']&&!_0xcbecd7['isNextTo']){if(_0x2a5959[_0x2415('0x0')]){const _0x59ab66=_0x2a5959['getRanges']()[_0x2415('0xab')](_0x13e7c5=>_0x2415('0x127')!=_0x13e7c5[_0x2415('0xea')][_0x2415('0x89')]);_0x59ab66[_0x2415('0xd9')](_0x2e9e29=>_0x223942[_0x2415('0x11c')](_0x2e9e29,!0x0))&&_0x2a5959[_0x2415('0xed')]();if(_0x59ab66['some'](_0x21285b=>_0x21285b[_0x2415('0x11c')](_0x223942,!0x0))){const _0x7c3f14=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb80f8,_0x2415('0x11f'));return this['forceDefaultExecution'](()=>_0x7c3f14([_0x223942],null,_0x544cf4)),null;}}else{const _0x6e6257=_0x223942[_0x2415('0xf1')](_0x2a5959['getFirstRange']());null!==_0x6e6257&&_0x2a5959[_0x2415('0xd6')]([_0x6e6257],null,_0x544cf4);}}if(_0x223942[_0x2415('0x60')](),_0x223942[_0x2415('0xae')]||'$graveyard'==_0x223942[_0x2415('0xea')][_0x2415('0x89')])return null;let _0x3d4eb3=null,_0x374230=_0x223942[_0x2415('0x40')],_0x38c4b2=_0x223942[_0x2415('0xaa')];const _0x203e03=this['_findSuggestions'](_0x223942,_0x2415('0x12b'));for(const {suggestion:_0x5d1251,meta:_0x421692}of _0x203e03){const _0x2fd3dd=this[_0x2415('0x6')][_0x2415('0xf7')](_0x374230,_0x38c4b2);if(_0x421692[_0x2415('0xda')]&&(this[_0x2415('0xfc')]||!_0x421692['containsRangeInObject']&&!_0x421692[_0x2415('0x5a')])){if(_0x5d1251['isMultiRange']){if(!Ot(_0x5d1251,_0x544cf4))continue;let _0x2ebf75=!0x0;for(const _0x3e2bc2 of _0x5d1251['getRanges']()){if(_0x3e2bc2[_0x2415('0x11c')](_0x2fd3dd,!0x0))return _0x5d1251;_0x2fd3dd[_0x2415('0x11c')](_0x3e2bc2)||(_0x2ebf75=!0x1);}_0x2ebf75&&_0x5d1251[_0x2415('0xed')]();}else{const _0x53e3f7=_0x5d1251[_0x2415('0x12a')]();if(_0x53e3f7[_0x2415('0x11c')](_0x2fd3dd,!0x0))return _0x5d1251;if(!Ot(_0x5d1251,_0x544cf4)){_0x2fd3dd['containsRange'](_0x53e3f7)?_0x5d1251[_0x2415('0xc0')]():_0x53e3f7[_0x2415('0xa3')](_0x374230)?_0x374230=_0x53e3f7[_0x2415('0xaa')]:_0x53e3f7['containsPosition'](_0x38c4b2)&&(_0x38c4b2=_0x53e3f7[_0x2415('0x40')]);continue;}_0x374230=_0x374230[_0x2415('0xc8')](_0x53e3f7[_0x2415('0x40')])?_0x374230:_0x53e3f7[_0x2415('0x40')],_0x38c4b2=_0x38c4b2[_0x2415('0x68')](_0x53e3f7[_0x2415('0xaa')])?_0x38c4b2:_0x53e3f7['end'],_0x544cf4=Object[_0x2415('0x71')]({},_0x5d1251[_0x2415('0x82')]),_0x3d4eb3?_0x53e3f7[_0x2415('0x40')][_0x2415('0xc8')](_0x3d4eb3[_0x2415('0x12a')]()[_0x2415('0x40')])?(_0x3d4eb3['removeMarkers'](),_0x3d4eb3=_0x5d1251):_0x5d1251[_0x2415('0xc0')]():_0x3d4eb3=_0x5d1251;}}}if(_0x3d4eb3)return this[_0x2415('0xe4')](_0x3d4eb3,this[_0x2415('0x6')]['createRange'](_0x374230,_0x38c4b2)),_0x3d4eb3;{const _0x1990b5=_0x464a74(),_0x31734f=this[_0x2415('0x6')][_0x2415('0xf7')](_0x374230,_0x38c4b2),_0x3a6736=_0x4d5b1f['id'],_0x2b4469=_0xb80f8?_0x2415('0x93')+_0xb80f8:'deletion',_0x26dd86=this[_0x2415('0x111')]({'id':_0x1990b5,'type':_0x2b4469,'createdAt':new Date(),'authorId':_0x3a6736,'attributes':_0x544cf4});return this[_0x2415('0x125')](_0x2b4469,_0x1990b5,_0x3a6736,_0x31734f),_0x26dd86;}}[_0x2415('0xfb')](_0x7d9d57,_0x5889c8='multi',_0x757753={}){const _0x211e04=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')](_0x2415('0x5b'))['me'],_0x28995f=_0x7d9d57[_0x2415('0x9f')](_0x35768b=>new _0x4b2b04(_0x35768b[_0x2415('0x40')],_0x35768b[_0x2415('0xaa')])),_0x206aba=new Set();for(const {suggestion:_0x3bc61b,meta:_0x7c53b2}of this['_findSuggestions'](_0x28995f,_0x2415('0x52')))_0x7c53b2[_0x2415('0xda')]&&!_0x7c53b2[_0x2415('0xa1')]&&_0x206aba['add'](_0x3bc61b);for(const _0x33ebba of _0x206aba)if(_0x33ebba[_0x2415('0x0')]){const _0x29d92d=_0x33ebba['getRanges']();(!_0x33ebba[_0x2415('0x82')]||!_0x33ebba[_0x2415('0x82')][_0x2415('0xd7')])&&(_0x29d92d['every'](_0x1d5923=>_0x28995f['some'](_0x2aeb70=>_0x2aeb70['containsRange'](_0x1d5923,!0x0)))&&_0x33ebba['discard']());if(_0x28995f[_0x2415('0xd9')](_0x3af400=>_0x29d92d['some'](_0x424489=>_0x424489[_0x2415('0x11c')](_0x3af400,!0x0)))){const _0x28ce39=this[_0x2415('0xc6')]['getSuggestionCallback'](_0x2415('0x12b'),_0x5889c8,_0x2415('0x11f'));return this[_0x2415('0x6d')](()=>_0x28ce39(_0x7d9d57,null,_0x757753)),null;}}else{const _0x209b44=_0x33ebba['getFirstRange']();_0x28995f[_0x2415('0x4b')](_0xc6503a=>_0xc6503a[_0x2415('0x11c')](_0x209b44,!0x0))&&_0x33ebba['discard']();if(_0x28995f['every'](_0x49c582=>_0x209b44['containsRange'](_0x49c582,!0x0))){const _0x130368=this[_0x2415('0xc6')][_0x2415('0x90')](_0x2415('0x12b'),_0x5889c8,_0x2415('0x11f'));return this['forceDefaultExecution'](()=>_0x130368(_0x28995f,null,_0x757753)),null;}}const _0x5df018=this[_0x2415('0xc6')][_0x2415('0x90')]('deletion',_0x5889c8,'join');let _0x21506f=null;for(const _0x3a6146 of this['getSuggestions']())if(_0x3a6146[_0x2415('0xb6')]['id']==_0x211e04['id']&&_0x3a6146['isInContent']&&'deletion'==_0x3a6146[_0x2415('0x15')]&&_0x3a6146[_0x2415('0xbd')]==_0x5889c8&&Ot(_0x3a6146,_0x757753)&&(_0x5df018(_0x3a6146[_0x2415('0x97')](),_0x28995f)||_0x5df018(_0x28995f,_0x3a6146[_0x2415('0x97')]()))){if(_0x21506f){if(_0x3a6146[_0x2415('0xdf')]&&_0x3a6146['commentThread']['length'])continue;for(const _0x24b29b of _0x3a6146[_0x2415('0x97')]())_0x21506f['isIntersectingWithRange'](_0x24b29b)||_0x21506f[_0x2415('0xb3')](_0x24b29b);_0x3a6146['removeMarkers']();}else{_0x21506f=_0x3a6146;for(const _0x375c0f of _0x28995f)_0x3a6146['isIntersectingWithRange'](_0x375c0f)||_0x3a6146['addRange'](_0x375c0f);}}if(_0x21506f)return _0x21506f;_0x206aba['clear']();for(const {suggestion:_0x1e447b,meta:_0x4c0a53}of this['_findSuggestions'](_0x28995f,_0x2415('0x12b')))_0x4c0a53[_0x2415('0xda')]&&(this['_mergeNestedSuggestions']||!_0x4c0a53[_0x2415('0x12c')]&&!_0x4c0a53[_0x2415('0x5a')])&&Ot(_0x1e447b,_0x757753)&&_0x206aba[_0x2415('0x31')](_0x1e447b);for(const _0x224ecc of _0x206aba){const _0x421edd=_0x224ecc[_0x2415('0x97')]();if(!_0x757753||!_0x757753[_0x2415('0xd7')]){if(_0x28995f[_0x2415('0xd9')](_0x5336c3=>_0x421edd[_0x2415('0x4b')](_0x5be3aa=>_0x5be3aa[_0x2415('0x11c')](_0x5336c3,!0x0))))return _0x224ecc;}(!_0x224ecc['attributes']||!_0x224ecc[_0x2415('0x82')][_0x2415('0xd7')])&&(_0x421edd[_0x2415('0xd9')](_0x3f226f=>_0x28995f[_0x2415('0x4b')](_0x40e091=>_0x40e091[_0x2415('0x11c')](_0x3f226f,!0x0)))&&_0x224ecc['discard']());}const _0x173f58=_0x464a74(),_0x3fe780=_0x211e04['id'],_0x3aee59=_0x2415('0x93')+_0x5889c8,_0x599afd=this[_0x2415('0x111')]({'id':_0x173f58,'type':_0x3aee59,'createdAt':new Date(),'authorId':_0x3fe780,'attributes':_0x757753});for(const _0x265312 of _0x28995f)_0x265312['detach'](),_0x265312['isCollapsed']||_0x2415('0x127')==_0x265312[_0x2415('0xea')][_0x2415('0x89')]||this[_0x2415('0x125')](_0x3aee59,_0x173f58,_0x3fe780,_0x265312,_0x47e839[_0x2415('0x38')]());return _0x599afd;}[_0x2415('0xe4')](_0x1b0e19,_0x510542){const _0x11aa71=_0x1b0e19[_0x2415('0x42')]();this['_model'][_0x2415('0xe8')](_0x5edd0c=>{_0x5edd0c[_0x2415('0x6e')](_0x11aa71,{'range':_0x510542});});}['_addThreadToSuggestion'](_0x502dd6){const _0x6550df=_0x502dd6['id'],_0x3d4281=this[_0x2415('0xf8')][_0x2415('0xc4')][_0x2415('0xd3')]('collaboration.channelId');this[_0x2415('0x122')][_0x2415('0x87')](_0x6550df)||this[_0x2415('0x122')][_0x2415('0xff')]({'channelId':_0x3d4281,'threadId':_0x6550df,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4bc016=this[_0x2415('0x122')][_0x2415('0xd5')](_0x6550df);_0x4bc016[_0x2415('0x5')](_0x2415('0x2a')),_0x4bc016[_0x2415('0x2a')]=!0x1,_0x502dd6['commentThread']=_0x4bc016;}[_0x2415('0x118')](_0x53bd88,_0x440fd0,_0x14bf77,_0x5207a3){if(_0x53bd88[_0x2415('0x15')]!=_0x440fd0||_0x53bd88['subType']!=_0x14bf77||_0x53bd88[_0x2415('0x131')]['id']!=_0x5207a3)throw this[_0x2415('0xf8')]['enableReadOnlyMode'](_0x2415('0x4a')),new _0xfc2d3f(_0x2415('0x4a'),this);}[_0x2415('0x1d')](_0x4b49f5,_0x3c9c81){const _0x477b1b=_0x4b49f5[_0x2415('0x12a')]();if(_0x3c9c81[_0x2415('0x13')](_0x477b1b))_0x4b49f5[_0x2415('0xc0')]();else{if(_0x477b1b[_0x2415('0x11c')](_0x3c9c81)){const _0x4db9c8=this[_0x2415('0x6')][_0x2415('0xb0')](_0x3c9c81[_0x2415('0x40')][_0x2415('0x7d')],_0x2415('0xaa'));this[_0x2415('0xe4')](_0x4b49f5,this['_model'][_0x2415('0xf7')](_0x477b1b[_0x2415('0x40')],_0x4db9c8));const _0x17f6a4=_0x464a74(),_0x1a0737=_0x4b49f5[_0x2415('0x131')]['id'],_0x553ad5=_0x4b49f5[_0x2415('0x15')]+':'+_0x4b49f5[_0x2415('0xbd')];this[_0x2415('0x111')]({'id':_0x17f6a4,'type':_0x553ad5,'createdAt':new Date(),'authorId':_0x1a0737,'data':_0x4b49f5[_0x2415('0x13a')],'attributes':_0x4b49f5[_0x2415('0x82')]});const _0x12e32b=this[_0x2415('0x6')]['createPositionAt'](_0x3c9c81[_0x2415('0xaa')][_0x2415('0xc3')],_0x2415('0x126')),_0x5ebb73=this[_0x2415('0x6')][_0x2415('0xf7')](_0x12e32b,_0x477b1b[_0x2415('0xaa')]);this[_0x2415('0x125')](_0x553ad5,_0x17f6a4,_0x1a0737,_0x5ebb73);}else{if(_0x477b1b[_0x2415('0xa3')](_0x3c9c81[_0x2415('0x40')])){const _0x1c37ae=this['_model'][_0x2415('0xb0')](_0x3c9c81[_0x2415('0x40')][_0x2415('0x7d')],_0x2415('0xaa'));this['_setSuggestionRange'](_0x4b49f5,this[_0x2415('0x6')]['createRange'](_0x477b1b[_0x2415('0x40')],_0x1c37ae));}else{const _0x18e44d=this[_0x2415('0x6')][_0x2415('0xb0')](_0x3c9c81[_0x2415('0xaa')]['parent'],_0x2415('0x126'));this['_setSuggestionRange'](_0x4b49f5,this[_0x2415('0x6')][_0x2415('0xf7')](_0x18e44d,_0x477b1b[_0x2415('0xaa')]));}}}}[_0x2415('0xad')](_0x104460){for(const {suggestion:_0x4386d7,meta:_0xf112a5}of this[_0x2415('0x3e')](_0x104460,_0x2415('0x52'))){if(!_0xf112a5[_0x2415('0xda')])continue;const _0x1bbc4f=_0x4386d7[_0x2415('0x97')]();for(const _0x35c53a of _0x1bbc4f)if(!_0x104460[_0x2415('0x72')](_0x35c53a)[_0x2415('0xcf')])return!0x0;}return!0x1;}[_0x2415('0x11')](_0x35f4a8){const _0x210d5b=this['editor']['plugins']['get'](_0x2415('0x5b'))[_0x2415('0x138')](_0x35f4a8);if(!_0x210d5b)throw new _0xfc2d3f(_0x2415('0xbf'),this);return _0x210d5b;}[_0x2415('0x39')](_0x578d30){const _0x160988=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')](_0x2415('0x5b')),_0x450941=_0x1952c9(_0x2415('0x137')+_0x578d30),_0x4c9b6f=_0x160988[_0x2415('0x138')](_0x450941);return _0x4c9b6f||_0x160988[_0x2415('0x35')]({'id':_0x450941,'name':_0x578d30});}['_createSuggestion'](_0x56e048,_0x3e6d09,_0x39f520,_0x3b099d,_0xbb71bf){const _0x5ae86b=this[_0x2415('0x11')](_0x3b099d),_0x1a2704=this['_suggestionFactory'][_0x2415('0x77')](_0x56e048,_0x3e6d09,_0x39f520,_0x5ae86b,_0xbb71bf,_0x263893=>this[_0x2415('0x7b')](_0x39f520,{'attributes':_0x263893}));return this[_0x2415('0x1')](_0x1a2704,'accept',()=>{this[_0x2415('0x7b')](_0x39f520,{'state':_0x2415('0xd')});},{'priority':'high'}),this['listenTo'](_0x1a2704,_0x2415('0xed'),()=>{this['_updateSuggestionData'](_0x39f520,{'state':_0x2415('0xe7')});},{'priority':_0x2415('0xaf')}),this[_0x2415('0x62')]['set'](_0x39f520,_0x1a2704),this[_0x2415('0x136')]['set'](_0x1a2704,_0x2415('0x14')),_0x1a2704;}[_0x2415('0xf9')](_0x5e585a){const _0x5f48ea=_0x5e585a[_0x2415('0x44')](':');return{'group':_0x5f48ea[0x0],'type':_0x5f48ea[0x1],'subType':_0x5f48ea[_0x2415('0xcf')]>=0x5?_0x5f48ea[0x2]:null,'id':_0x5f48ea[_0x2415('0xcf')]<0x5?_0x5f48ea[0x2]:_0x5f48ea[0x3],'authorId':_0x5f48ea[_0x2415('0xcf')]<0x5?_0x5f48ea[0x3]:_0x5f48ea[0x4],'markerCount':0x6==_0x5f48ea['length']?_0x5f48ea[0x5]:null};}[_0x2415('0x121')](_0x9f7e4d,_0x52d6f5,_0x308fbb){const _0x59ed48=_0x9f7e4d['getFirstRange'](),_0x54fe4a=_0x59ed48[_0x2415('0x40')],_0x1c2920=_0x59ed48['end'];this[_0x2415('0xe4')](_0x9f7e4d,this[_0x2415('0x6')]['createRange'](_0x54fe4a,_0x52d6f5));const _0x51ce2b=_0x464a74(),_0x8c9583=_0x9f7e4d[_0x2415('0x131')]['id'],_0x203d1e=_0x9f7e4d[_0x2415('0x15')]+(_0x9f7e4d[_0x2415('0xbd')]?':'+_0x9f7e4d[_0x2415('0xbd')]:'');this[_0x2415('0x111')]({'id':_0x51ce2b,'type':_0x203d1e,'createdAt':new Date(),'authorId':_0x8c9583,'originalSuggestionId':_0x9f7e4d['id'],'attributes':_0x9f7e4d[_0x2415('0x82')],'data':_0x9f7e4d[_0x2415('0x13a')]}),'formatBlock'==_0x9f7e4d[_0x2415('0x15')]&&(_0x308fbb=this[_0x2415('0x6')]['createPositionBefore'](_0x308fbb['parent'])),this[_0x2415('0x125')](_0x203d1e,_0x51ce2b,_0x8c9583,this[_0x2415('0x6')][_0x2415('0xf7')](_0x308fbb,_0x1c2920));}[_0x2415('0x3e')](_0x3f02d2,_0x41ae3a=null){const _0x359544=[],_0xc57759=this[_0x2415('0xf8')][_0x2415('0x3f')]['get'](_0x2415('0x5b'))['me'];Array[_0x2415('0x49')](_0x3f02d2)||(_0x3f02d2=[_0x3f02d2]);for(const _0x296bea of this[_0x2415('0xa8')]()){if(!_0x296bea[_0x2415('0x21')])continue;if(_0x41ae3a&&_0x296bea['type']!=_0x41ae3a)continue;let _0x24de38=!0x1;for(const _0x7d2083 of _0x296bea['getRanges']()){for(const _0x5752a2 of _0x3f02d2){const _0x5a674d=_0x5752a2[_0x2415('0x40')][_0x2415('0x13')](_0x7d2083[_0x2415('0xaa')])||_0x5752a2[_0x2415('0xaa')][_0x2415('0x13')](_0x7d2083[_0x2415('0x40')]);if(_0x5a674d||_0x5752a2[_0x2415('0xf1')](_0x7d2083)){const _0x5fbf4=_0x5752a2['containsRange'](_0x7d2083)&&_t(this[_0x2415('0x6')][_0x2415('0x96')],_0x7d2083[_0x2415('0x40')],_0x5752a2),_0x43243f=_0x7d2083[_0x2415('0x11c')](_0x5752a2)&&_t(this['_model']['schema'],_0x5752a2[_0x2415('0x40')],_0x7d2083);_0x359544[_0x2415('0xa5')]({'suggestion':_0x296bea,'meta':{'isOwn':_0xc57759==_0x296bea[_0x2415('0xb6')],'isNextTo':_0x5a674d,'isInsideObject':_0x5fbf4,'containsRangeInObject':_0x43243f}}),_0x24de38=!0x0;break;}}if(_0x24de38)break;}}return _0x359544;}[_0x2415('0x125')](_0x26612d,_0xe50904,_0x474f2e,_0x51a7ac,_0x39505d){this['_model'][_0x2415('0xe8')](_0x5965d7=>{let _0x5aec53=_0x2415('0x8a')+_0x26612d+':'+_0xe50904+':'+_0x474f2e;_0x39505d&&(_0x5aec53=_0x5aec53+':'+_0x39505d),_0x5965d7['addMarker'](_0x5aec53,{'range':_0x51a7ac,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2415('0x3')](_0x4864ac){const _0x56ea07=_0x4864ac[_0x2415('0x7f')],_0x5040d7=_0x4864ac['next'];_0x4864ac[_0x2415('0x7f')]=null,null!=_0x56ea07&&(_0x56ea07[_0x2415('0xc1')]=null),_0x4864ac[_0x2415('0xc1')]=null,null!=_0x5040d7&&(_0x5040d7[_0x2415('0x7f')]=null),_0x2415('0xf2')==this['_suggestionState']['get'](_0x4864ac)&&(this[_0x2415('0x136')][_0x2415('0x117')](_0x4864ac,_0x2415('0x3b')),this[_0x2415('0x100')](_0x2415('0xa9'),_0x4864ac,_0x56ea07,_0x5040d7));}['_setSuggestionData'](_0x1c5e46){const _0x41536b=_0x1c5e46['id'],_0x4adde7=this['addSuggestionData'](_0x1c5e46);if(this[_0x2415('0x41')]&&this[_0x2415('0x41')][_0x2415('0xdd')]){const _0x5e1a17=this[_0x2415('0xf8')]['plugins'][_0x2415('0xd3')](_0x2415('0x135')),_0x3b3c67=_0x4adde7[_0x2415('0x5e')],_0xe5e7f8=_0x4adde7[_0x2415('0xbd')]?_0x4adde7[_0x2415('0x15')]+':'+_0x4adde7[_0x2415('0xbd')]:_0x4adde7[_0x2415('0x15')],_0xa1e95a=this['editor'][_0x2415('0x91')],_0x471aef=_0x5e1a17[_0x2415('0x31')](_0x2f5143(_0xa1e95a,'PENDING_ACTION_SUGGESTION')),_0x7e34cb={'id':_0x41536b,'type':_0xe5e7f8,'hasComments':_0x3b3c67,'data':_0x1c5e46[_0x2415('0x13a')]||null,'originalSuggestionId':_0x1c5e46[_0x2415('0x6a')]||null,'attributes':_0x4adde7[_0x2415('0x82')]};this[_0x2415('0x41')][_0x2415('0xdd')](_0x7e34cb)[_0x2415('0x55')](_0x4de832=>{_0x4adde7[_0x2415('0x6b')]=!0x0,_0x5e1a17[_0x2415('0xa')](_0x471aef),_0x4de832&&_0x4de832[_0x2415('0x53')]&&(this['_suggestions']['get'](_0x41536b)[_0x2415('0x53')]=_0x4de832[_0x2415('0x53')]);})[_0x2415('0xec')](_0x4b82bf=>{throw _0x1cc911('error-saving-suggestion-data-suggestion-discarded'),this[_0x2415('0xf8')][_0x2415('0x2b')][_0x2415('0x3d')]({'isUndoable':!0x1},()=>{_0x4adde7['discard']();}),_0x4adde7[_0x2415('0x84')](),this[_0x2415('0x62')][_0x2415('0xc7')](_0x4adde7['id']),this[_0x2415('0x136')][_0x2415('0xc7')](_0x4adde7),_0x4b82bf;});}return _0x4adde7;}[_0x2415('0x7b')](_0x5e0ce2,_0x4f233a){const _0x323698=this[_0x2415('0xf8')][_0x2415('0x3f')][_0x2415('0xd3')]('PendingActions'),_0x696f54=this[_0x2415('0x20')](_0x5e0ce2);if(this[_0x2415('0x41')]&&this[_0x2415('0x41')][_0x2415('0xa6')]){if(_0x696f54[_0x2415('0x6b')]){const _0x477104=_0x323698[_0x2415('0x31')](_0x2f5143(this[_0x2415('0xf8')][_0x2415('0x91')],_0x2415('0xdc')));this[_0x2415('0x41')][_0x2415('0xa6')](_0x5e0ce2,_0x4f233a)['then'](()=>{_0x323698['remove'](_0x477104);});}else _0x696f54['on']('change:_saved',()=>{this[_0x2415('0x7b')](_0x5e0ce2,_0x4f233a);});}}[_0x2415('0xc5')](_0x518117){if(!this[_0x2415('0x41')]||!this[_0x2415('0x41')][_0x2415('0x20')])throw new _0xfc2d3f(_0x2415('0x33'),this);return this[_0x2415('0x41')][_0x2415('0x20')](_0x518117);}['_handleNewSuggestionMarker'](_0x5e62a5){const {id:_0x28a747,type:_0xbc2785,subType:_0x4a199a,authorId:_0x55a224}=this['_splitMarkerName'](_0x5e62a5),_0x14ebd4=this[_0x2415('0x62')][_0x2415('0xd3')](_0x28a747)||this[_0x2415('0x36')](_0xbc2785,_0x4a199a,_0x28a747,_0x55a224,{});switch(this[_0x2415('0x118')](_0x14ebd4,_0xbc2785,_0x4a199a,_0x55a224),this[_0x2415('0x136')]['get'](_0x14ebd4)){case'notReady':this[_0x2415('0xc5')](_0x28a747)['then'](_0x44d3d2=>{let _0x3b4d08=Promise['resolve']();_0x44d3d2[_0x2415('0x5e')]&&(_0x3b4d08=this[_0x2415('0x122')][_0x2415('0x12f')]({'channelId':this[_0x2415('0xf8')][_0x2415('0xc4')][_0x2415('0xd3')]('collaboration.channelId'),'threadId':_0x28a747})),_0x3b4d08[_0x2415('0x55')](()=>{this[_0x2415('0x8f')](_0x44d3d2)[_0x2415('0x6b')]=!0x0;});}),this[_0x2415('0x136')][_0x2415('0x117')](_0x14ebd4,_0x2415('0x58'));break;case _0x2415('0x3b'):this['_updateSuggestionData'](_0x28a747,{'state':'open'});case _0x2415('0xba'):this['_suggestionState'][_0x2415('0x117')](_0x14ebd4,_0x2415('0xf2')),this[_0x2415('0x100')]('suggestionLoaded',_0x14ebd4);break;case _0x2415('0xf2'):this[_0x2415('0x100')]('suggestionChanged',_0x14ebd4);}return _0x14ebd4['addMarkerName'](_0x5e62a5),_0x14ebd4;}['_refreshSuggestionsChain'](_0x2f8a20){const _0x564552=Array[_0x2415('0xe9')](_0x2f8a20)[_0x2415('0xab')](_0x25f8b7=>!_0x25f8b7['isMultiRange']),_0xea27f7=this[_0x2415('0xa8')]({'skipNotAttached':!0x0})[_0x2415('0xab')](_0x21f3cd=>!_0x21f3cd['isMultiRange']),_0x64bfce=_0xea27f7['filter'](_0x1d946f=>!_0x2f8a20['has'](_0x1d946f)),_0xaaa3e6=new Map(_0xea27f7[_0x2415('0x9f')](_0x54305b=>[_0x54305b,this[_0x2415('0xc6')][_0x2415('0x90')](_0x54305b[_0x2415('0x15')],_0x54305b[_0x2415('0xbd')],_0x2415('0xd0'))])),_0x1d0cf2=new Map(_0xea27f7['map'](_0x2210d6=>[_0x2210d6,_0x2210d6['getFirstRange']()])),_0x3fbc50=new Set(),_0x4f152a=new Set();for(let _0x2c9023=0x0;_0x2c9023<_0x564552[_0x2415('0xcf')];_0x2c9023++)_0x3f4406(_0x564552[_0x2c9023],_0x564552,_0x2c9023+0x1);for(let _0x2145f0=0x0;_0x2145f0<_0x564552[_0x2415('0xcf')];_0x2145f0++)_0x3f4406(_0x564552[_0x2145f0],_0x64bfce,0x0);for(let _0x3c2e0b=0x0;_0x3c2e0b<_0x564552[_0x2415('0xcf')];_0x3c2e0b++){const _0x2a5308=_0x564552[_0x3c2e0b];!_0x4f152a['has'](_0x2a5308)&&_0x2a5308['previous']&&(_0x2a5308[_0x2415('0x7f')][_0x2415('0xc1')]===_0x2a5308&&(_0x2a5308['previous'][_0x2415('0xc1')]=null),_0x2a5308['previous']=null),!_0x3fbc50[_0x2415('0x18')](_0x2a5308)&&_0x2a5308[_0x2415('0xc1')]&&(_0x2a5308['next'][_0x2415('0x7f')]===_0x2a5308&&(_0x2a5308[_0x2415('0xc1')][_0x2415('0x7f')]=null),_0x2a5308[_0x2415('0xc1')]=null);}function _0x3f4406(_0xa366c7,_0x353961,_0x4a0d01){for(let _0x26c3cc=_0x4a0d01;_0x26c3cc<_0x353961[_0x2415('0xcf')];_0x26c3cc++){const _0xeda261=_0x879e79(_0xa366c7,_0x353961[_0x26c3cc]);_0xeda261&&(_0xeda261[0x0]['next']=_0xeda261[0x1],_0xeda261[0x1][_0x2415('0x7f')]=_0xeda261[0x0],_0x3fbc50[_0x2415('0x31')](_0xeda261[0x0]),_0x4f152a[_0x2415('0x31')](_0xeda261[0x1]));}}function _0x879e79(_0x54488c,_0x4449a2){if(_0x54488c[_0x2415('0xb6')]['id']!==_0x4449a2[_0x2415('0xb6')]['id'])return null;const _0x5dded3=_0xaaa3e6[_0x2415('0xd3')](_0x54488c)(_0x54488c,_0x4449a2,_0x1d0cf2[_0x2415('0xd3')](_0x54488c),_0x1d0cf2[_0x2415('0xd3')](_0x4449a2));if(!_0x5dded3)return null;return _0xaaa3e6['get'](_0x4449a2)(_0x54488c,_0x4449a2,_0x1d0cf2[_0x2415('0xd3')](_0x54488c),_0x1d0cf2['get'](_0x4449a2))?_0x5dded3[0x1][_0x2415('0xdf')]&&_0x5dded3[0x1]['commentThread']['length']?null:_0x5dded3:null;}}[_0x2415('0x34')](_0xd1b8f){const _0x567bcd=Array['from'](_0xd1b8f),_0x284ec3=this[_0x2415('0xa8')]({'skipNotAttached':!0x0}),_0x56966d=_0x284ec3['filter'](_0x2f37c1=>!_0xd1b8f[_0x2415('0x18')](_0x2f37c1)),_0x591a2e=new Map(_0x567bcd[_0x2415('0x9f')](_0x1f4153=>[_0x1f4153,this[_0x2415('0xc6')]['getSuggestionCallback'](_0x1f4153[_0x2415('0x15')],_0x1f4153[_0x2415('0xbd')],'join')])),_0x21d3a6=new Map(_0x284ec3['map'](_0x553184=>[_0x553184,_0x553184[_0x2415('0x97')]()]));for(let _0x568e23=0x0;_0x568e23<_0x567bcd[_0x2415('0xcf')];_0x568e23++){if(_0x21f648(this,_0x567bcd[_0x568e23],_0x567bcd,_0x568e23+0x1))return!0x0;}for(let _0xd91270=0x0;_0xd91270<_0x567bcd[_0x2415('0xcf')];_0xd91270++){if(_0x21f648(this,_0x567bcd[_0xd91270],_0x56966d,0x0))return!0x0;}return!0x1;function _0x21f648(_0x58fa59,_0x49db23,_0x5c7e4a,_0x8ca741){for(let _0x1ba6b4=_0x8ca741;_0x1ba6b4<_0x5c7e4a[_0x2415('0xcf')];_0x1ba6b4++){const _0x1b8322=_0x5c7e4a[_0x1ba6b4];if(_0x1b8322[_0x2415('0x15')]!==_0x49db23[_0x2415('0x15')]||_0x1b8322[_0x2415('0xb6')]['id']!==_0x49db23[_0x2415('0xb6')]['id']||_0x1b8322[_0x2415('0xbd')]!==_0x49db23[_0x2415('0xbd')])continue;if(!Ut(_0x49db23,_0x1b8322))continue;const _0x188283=_0x591a2e[_0x2415('0xd3')](_0x49db23),_0x2dc1ff=_0x21d3a6[_0x2415('0xd3')](_0x49db23),_0x23c68a=_0x21d3a6[_0x2415('0xd3')](_0x1b8322),_0x1d96cf=_0x49db23['commentThread']&&_0x49db23['commentThread'][_0x2415('0xcf')],_0x538978=_0x1b8322[_0x2415('0xdf')]&&_0x1b8322[_0x2415('0xdf')][_0x2415('0xcf')];if(!_0x1d96cf&&_0x188283(_0x23c68a,_0x2dc1ff))return _0x58fa59[_0x2415('0x2c')](_0x1b8322,_0x49db23),_0x21d3a6['delete'](_0x49db23),!0x0;if(!_0x538978&&_0x188283(_0x2dc1ff,_0x23c68a))return _0x58fa59[_0x2415('0x2c')](_0x49db23,_0x1b8322),_0x21d3a6[_0x2415('0xc7')](_0x1b8322),!0x0;}return!0x1;}}[_0x2415('0x2c')](_0x9257e1,_0x2c985a){if(_0x9257e1[_0x2415('0x0')])for(const _0x10f337 of _0x2c985a[_0x2415('0x97')]())_0x9257e1[_0x2415('0xb3')](_0x10f337);else{const _0x2317b2=_0x2c985a[_0x2415('0x12a')]()[_0x2415('0xaa')];this[_0x2415('0xe4')](_0x9257e1,this[_0x2415('0x6')][_0x2415('0xf7')](_0x9257e1[_0x2415('0x12a')]()[_0x2415('0x40')],_0x2317b2));}_0x2c985a['removeMarkers']();}}class Bt{constructor(_0x12a9ac){this['_editor']=_0x12a9ac,this['_model']=_0x12a9ac[_0x2415('0x2b')],this[_0x2415('0x9e')]=new Map(),this[_0x2415('0xde')]=new Map(),this[_0x2415('0x95')]();}[_0x2415('0x77')](_0x48e6b6,_0x5586f9,_0x31bbd6,_0xa5acfd,_0x449823,_0x19c6a1){return new _0x47e839(this[_0x2415('0x6')],{'type':_0x48e6b6,'subType':_0x5586f9,'id':_0x31bbd6,'author':_0xa5acfd,'creator':_0xa5acfd,'attributes':_0x449823,'onAttributesChange':_0x19c6a1,'onAccept':(..._0x56c241)=>this[_0x2415('0x90')](_0x48e6b6,_0x5586f9,_0x2415('0x11f'))(..._0x56c241),'onDiscard':(..._0xc7afaf)=>this[_0x2415('0x90')](_0x48e6b6,_0x5586f9,'discard')(..._0xc7afaf)});}[_0x2415('0x69')](_0x1ce585,_0x2150cd,_0x108b5d,_0x4d162a){const _0x3cddf8=_0x1ce585+':'+_0x2150cd+':'+_0x108b5d;this[_0x2415('0x9e')][_0x2415('0x117')](_0x3cddf8,_0x4d162a);}['getSuggestionCallback'](_0x5972bd,_0x18aa75,_0x22d5dd){const _0x265557=_0x5972bd+':'+_0x18aa75+':'+_0x22d5dd;return this['_customCallbacks'][_0x2415('0xd3')](_0x265557)||this[_0x2415('0xde')][_0x2415('0xd3')](_0x5972bd+':'+_0x22d5dd);}[_0x2415('0x95')](){const _0x30feca=()=>!0x1,_0x31ed93=_0x370a63=>{_0x370a63[_0x2415('0x76')]((_0x255348,_0x143140)=>_0x255348[_0x2415('0x40')]['isBefore'](_0x143140[_0x2415('0x40')])?0x1:-0x1),this[_0x2415('0x6')][_0x2415('0xe8')](_0x2d63b8=>{for(const _0x4ef854 of _0x370a63){let _0x3cdd07;_0x3cdd07=_0x4ef854[_0x2415('0xaa')][_0x2415('0xb9')]&&_0x4ef854[_0x2415('0xaa')]['parent']==_0x4ef854[_0x2415('0x40')][_0x2415('0x4c')]?_0x2d63b8[_0x2415('0x11e')](_0x4ef854[_0x2415('0x40')]['nodeAfter'],'on'):_0x2d63b8[_0x2415('0x11e')](_0x4ef854),this['_model'][_0x2415('0xd4')](_0x3cdd07,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x30015d=(_0x21ed2f,_0x35ff81)=>{this[_0x2415('0x6')]['change'](_0x428196=>{const {commandName:_0x2e602e,commandParams:_0x345bbb=[]}=_0x35ff81,_0x58c3c9=_0x21ed2f[_0x2415('0x9f')](_0x4fffb9=>(Mt(_0x4fffb9)&&(_0x4fffb9=this[_0x2415('0x6')][_0x2415('0xf7')](_0x4fffb9[_0x2415('0xaa')])),_0x4fffb9))[_0x2415('0xab')](_0x2dadf5=>_0x2415('0x127')!==_0x2dadf5[_0x2415('0xea')]['rootName']);if(_0x58c3c9['length']<0x1)return;const _0x3a7793=Array[_0x2415('0xe9')](this[_0x2415('0x6')][_0x2415('0x2')][_0x2415('0xb8')][_0x2415('0x97')]())[_0x2415('0x9f')](_0x132cdf=>_0x4b2b04[_0x2415('0xa4')](_0x132cdf));_0x428196[_0x2415('0x83')](_0x58c3c9);for(const _0x231a47 of this[_0x2415('0x51')][_0x2415('0xb2')]['commands']())_0x231a47[_0x2415('0xe1')]();_0x345bbb[_0x2415('0xa5')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x2415('0x12d')](_0x2e602e,..._0x345bbb);const _0x32f79d=_0x3a7793[_0x2415('0xab')](_0x49fa01=>'$graveyard'!=_0x49fa01['root'][_0x2415('0x89')]);_0x32f79d['length']>0x0&&_0x428196['setSelection'](_0x32f79d);for(const _0x110328 of _0x3a7793)_0x110328[_0x2415('0x60')]();});},_0x3ae2ca=(_0x5e4270,_0x7f3455)=>0x1==_0x5e4270['length']&&0x1==_0x7f3455['length']&&_0x5e4270[0x0][_0x2415('0xaa')][_0x2415('0x13')](_0x7f3455[0x0]['start']),_0x4f8211=(_0x246cd2,_0x5ddfc1,_0x4c5070,_0x1d5874)=>xt(_0x246cd2,_0x5ddfc1,_0x4c5070,_0x1d5874,this[_0x2415('0x6')])?[_0x246cd2,_0x5ddfc1]:xt(_0x5ddfc1,_0x246cd2,_0x1d5874,_0x4c5070,this[_0x2415('0x6')])?[_0x5ddfc1,_0x246cd2]:null;this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x17'),_0x30feca),this[_0x2415('0xde')]['set'](_0x2415('0xeb'),_0x31ed93),this[_0x2415('0xde')]['set'](_0x2415('0x50'),_0x3ae2ca),this[_0x2415('0xde')]['set'](_0x2415('0xd2'),_0x4f8211),this[_0x2415('0xde')]['set'](_0x2415('0x2d'),_0x31ed93),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x109'),_0x30feca),this[_0x2415('0xde')]['set']('deletion:join',_0x3ae2ca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x85'),_0x4f8211),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0xa7'),_0x30015d),this[_0x2415('0xde')]['set'](_0x2415('0x28'),_0x30feca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0xfe'),_0x3ae2ca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0xd8'),_0x30feca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x3c'),_0x30015d),this['_defaultCallbacks'][_0x2415('0x117')]('formatBlock:discard',_0x30feca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x105'),_0x3ae2ca),this[_0x2415('0xde')][_0x2415('0x117')](_0x2415('0x130'),_0x30feca);}}function _t(_0x577489,_0x4f2ff7,_0x235f96){for(const _0x2ac1dc of _0x4f2ff7[_0x2415('0xc3')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2ac1dc[_0x2415('0xea')]==_0x2ac1dc)return!0x1;if(!_0x235f96[_0x2415('0x12e')](_0x2ac1dc))return!0x1;if(_0x577489[_0x2415('0x11d')](_0x2ac1dc)||_0x577489[_0x2415('0x94')](_0x2ac1dc))return!0x0;}return!0x1;}function Mt(_0x23564d){return _0x23564d['end'][_0x2415('0xc3')]==_0x23564d[_0x2415('0x40')][_0x2415('0x4c')]&&_0x23564d[_0x2415('0xaa')][_0x2415('0x78')];}function $t(_0x117b47,_0x41c60c,_0x50077e,_0x74b06c){const _0x13abb4=_0xca6103=>!_0xca6103[_0x2415('0x7c')]['is'](_0x2415('0x70'))&&!_0x74b06c[_0x2415('0x11d')](_0xca6103['item']),_0x258ca5=_0x117b47['start']['getLastMatchingPosition'](_0x13abb4),_0x3956e9=_0x117b47['end']['getLastMatchingPosition'](_0x13abb4,{'direction':'backward'});return(!_0x117b47[_0x2415('0x40')][_0x2415('0x13')](_0x258ca5)||!_0x117b47['end']['isEqual'](_0x3956e9))&&(_0x258ca5[_0x2415('0xc8')](_0x3956e9)?_0x50077e[_0x2415('0x6e')](_0x41c60c,{'range':_0x50077e[_0x2415('0xf7')](_0x258ca5,_0x3956e9)}):_0x50077e[_0x2415('0xca')](_0x41c60c),!0x0);}function Nt(_0x683b62){return _0x1952c9(_0x683b62);}function Rt(_0x290c22){const _0xdbad1b=_0x290c22[_0x2415('0x40')]['nodeAfter'];return _0xdbad1b&&_0xdbad1b['is']('element');}function jt(_0x3f728d,_0x48a2ad){const _0x5f3b37=_0x48a2ad[_0x2415('0x96')][_0x2415('0x11d')](_0x3f728d)||_0x48a2ad[_0x2415('0x96')]['isSelectable'](_0x3f728d);return _0x48a2ad['createRange'](_0x48a2ad[_0x2415('0xb0')](_0x3f728d,_0x2415('0x9b')),_0x5f3b37?_0x48a2ad['createPositionAfter'](_0x3f728d):_0x48a2ad['createPositionAt'](_0x3f728d,_0x2415('0xaa')));}function xt(_0x16d035,_0x1089ce,_0x83bb9b,_0x3de836,_0x5c425a){if(!Ut(_0x16d035,_0x1089ce))return!0x1;if(_0x83bb9b[_0x2415('0xaa')][_0x2415('0x13')](_0x3de836[_0x2415('0x40')]))return!0x0;if(_0x16d035[_0x2415('0x15')]!=_0x1089ce[_0x2415('0x15')])return!0x1;if(!_0x83bb9b[_0x2415('0xaa')][_0x2415('0x92')](_0x3de836[_0x2415('0x40')]))return!0x1;const _0x103c69=_0x5c425a[_0x2415('0xf7')](_0x83bb9b[_0x2415('0xaa')],_0x3de836[_0x2415('0x40')])['getWalker']();for(const _0xaf3f5c of _0x103c69)if([_0x2415('0x1c'),'elementEnd']['includes'](_0xaf3f5c[_0x2415('0x15')])&&_0x5c425a[_0x2415('0x96')][_0x2415('0x94')](_0xaf3f5c[_0x2415('0x7c')]))return!0x1;return!0x0;}function Ut(_0x5c34a6,_0x5810ee){return!(!_0x5c34a6[_0x2415('0xa0')]||!_0x5810ee[_0x2415('0xa0')])&&_0x45c4c7(_0x5c34a6[_0x2415('0x82')],_0x5810ee[_0x2415('0x82')]);}function Ot(_0x1806a1,_0x4bb4df){const _0xa6cc26=Et(_0x1806a1[_0x2415('0x82')]),_0x2c516c=Et(_0x4bb4df);if(!_0x1806a1[_0x2415('0xa0')])return!0x1;for(const _0x55e118 of Object[_0x2415('0xc2')](_0x2c516c))if(!_0x45c4c7(_0xa6cc26[_0x55e118],_0x2c516c[_0x55e118]))return!0x1;return!0x0;}function Et(_0x18b894){const _0x2f4313=Object[_0x2415('0x71')]({},_0x18b894);return delete _0x2f4313['skipNestingCheck'],delete _0x2f4313[_0x2415('0x79')],_0x2f4313;}
|
|
23
|
+
const _0x3481=['isMultiRange','value','author','insertion','after','highest','getSuggestions','return','_updateSuggestionData','range','push','chain','_trackFormatChanges','addCommentThread','discard','_checkSuggestionCorrectness','_getSuggestionData','position','@external','Users','PendingActions','moveTargetPosition','options','_setSuggestionRange','plugins','detach','catch','every','attributes','removed','differ','markInsertion','markerNameToElements','hasSuggestion','editor','toViewElement','set','getIntersection','remove','default','stop','_suggestions','addSuggestionData','keys','isInsideObject','getRange','isAfter','suggestion','addRange','fromCharCode','formatInline:chain','add','_customCallbacks','then','item','createRange','addSuggestion','toJSON','markerName','applyOperation','some','splitPosition','delete','suggestionChanged','_createSuggestion','define','track-changes-adapter-already-set','_suggestionState','next','containsPosition','upcast','change:activeMarkers','markMultiRangeDeletion','change','formatGroupId','insertion:discard','forward','rootName','get','locale','isSelectable','createdAt','skipNestingCheck','_setSuggestionData','_mergeNestedSuggestions','discardSuggestion','getUser','adapter','deletion:chain','insertion:','update:suggestion','removeMarker:suggestion:formatBlock','hasComments','suggestion-type','high','track-changes-command-not-found','enableCommand','error-saving-suggestion-data-suggestion-discarded','getRanges','$marker','_cutOutSuggestionMarker','_model','_getExternalAuthor','registerPostFixer','_descriptionFactory','markMultiRangeInsertion','config','document','_enabledCommands','for','lowest','showSuggestionHighlights','_registerDefaultCallbacks','getLastMatchingPosition','discardSelectedSuggestions','rejected','isLimit','enqueueChange','markerToData','isLocal','includes','isIntersectingWithRange','consume','fire','createPositionAfter','_breakSuggestionMarker','data','getMultiRangeId','reconvertMarker','elementStart','isTouching','formatInline:','_saved','init','tablePasteChainId','resolve','markerToHighlight','_refreshSuggestionsChain','from','getAllAdjacentSuggestions','commands','howMany','enableReadOnlyMode','markMultiRangeBlockFormat','getDifference','setSelection','split','discardAllSuggestions','insertion:accept','nodeBefore','has','isOwn','collaboration.channelId','getSuggestionCallback','ck-suggestion-marker','getAncestors','setTo','getItems','parent','getCustomProperty','containerElement','addMarker:suggestion','unbindElementFromMarkerName','isInContent','addHighlight','ready','isExternal','createPositionAt','getChanges','isArray','elementEnd','_handleNewSuggestionMarker','multipleBlocks','formatInline:accept','createSelection','creator','addMarker:suggestion:formatBlock','ck-suggestion-marker-','filter','hasCommentThread','consumable','suggestion:','external:','trackChanges','markers','acceptAllSuggestions','_findSuggestions','isBlock','addUser','registerCustomCallback','markInlineFormat','acceptSuggestion','isCollapsed','deletion','createElement','name','conversion','commandName','_isDataLoaded','_addThreadToSuggestion','containsRangeInObject','formatBlock:accept','accept','isEqual','fromRange','removeMarker','originalSuggestionId','widget','schema','pluginName','end','deletion:discard','join','removeAttribute','authoredAt','assign','updateSuggestion','markBlockFormat','_commentsRepository','splice','_joinSuggestions','deleteContent','previous','containsRange','fetchCommentThread','requires','formatBlock:chain','getFirstMarker','element','always','execute','isRemovable','notReady','oldRange','formatBlock:join','getSuggestion','values','newRange','PENDING_ACTION_SUGGESTION','formatInline','updateMarker','suggestionLoaded','move','CommentsRepository','editingDowncast','formatBlock','getShiftedBy','backward','insertContent','$graveyard','activeMarkers','_adapter','getNearestSelectionRange','isUndo','trackChanges.mergeNestedSuggestions','_addSuggestionMarker','isAtEnd','createPositionBefore','nodeAfter','isObject','addMarkerName','trackChanges.trackFormatChanges','root','data-suggestion','stopListening','_editor','subType','sort','multi','markerReady','getAttribute','removeClass','_suggestionFactory','type','_joinWithAdjacentSuggestions','insert','formatBlock:discard','addComment','buildSuggestion','track-changes-user-not-found','forceDefaultExecution','deletion:','createRangeIn','trackChangesCommand','suggestionUnloaded','writer','isNextTo','open','addMarker','deletion:accept','model','map','acceptSelectedSuggestions','getFirstRange','formatInline:join','head','TrackChangesEditing','unbind','commentThread','start','isAtStart','mapper','dataReady','batch','_defaultCallbacks','containsItem','removeMarkers','_splitMarkerName','listenTo','refresh','length','_removeSuggestion','_isForcedDefaultExecutionBlock','dataDowncast','selection','clone','formatBlock:','_rangeIsInLocalUserInsertion','addClass','isBefore','ck-suggestion-marker--active','group','size','ck-suggestion-marker-formatBlock','low'];(function(_0x574b33,_0x34813b){const _0x3d5eec=function(_0x4c38e5){while(--_0x4c38e5){_0x574b33['push'](_0x574b33['shift']());}};_0x3d5eec(++_0x34813b);}(_0x3481,0x1d3));const _0x3d5e=function(_0x574b33,_0x34813b){_0x574b33=_0x574b33-0x0;let _0x3d5eec=_0x3481[_0x574b33];return _0x3d5eec;};import{Plugin as _0x2c6fc4,PendingActions as _0x42a800}from'ckeditor5/src/core';import{LiveRange as _0x43231c}from'ckeditor5/src/engine';import{CKEditorError as _0x407a23,uid as _0x59e8c4,priorities as _0x372370,logWarning as _0x54b295}from'ckeditor5/src/utils';import{toWidget as _0x2956e3}from'ckeditor5/src/widget';import{Users as _0x37b1a6,hashObject as _0x544d40}from'ckeditor5-collaboration/src/collaboration-core';import _0x307cab from'./commands/trackchangescommand';import _0x36f33e from'./commands/acceptsuggestioncommand';import _0x2749cc from'./commands/discardsuggestioncommand';import _0x8ecd0f from'./commands/executeonallsuggestionscommand';import _0x4ab4a7 from'./commands/executeonselectedsuggestionscommand';import _0x439cc9 from'./suggestion';import _0x4652fd from'./suggestiondescriptionfactory';import _0x448949 from'./integrations/aiassistant';import _0x240b75 from'./integrations/alignment';import _0x35540b from'./integrations/basicstyles';import _0x1d962c from'./integrations/blockquote';import _0x37aeb0 from'./integrations/ckbox';import _0x96a1b from'./integrations/codeblock';import _0x5e3042 from'./integrations/comments';import _0x3cfa1c from'./integrations/deletecommand';import _0x50252f from'./integrations/documentlist';import _0x26800c from'./integrations/entercommand';import _0x1c91ac from'./integrations/findandreplace';import _0x2b2e6e from'./integrations/font';import _0x566329 from'./integrations/formatpainter';import _0x558ec7 from'./integrations/heading';import _0x30137f from'./integrations/highlight';import _0x369a52 from'./integrations/horizontalline';import _0x1a9cad from'./integrations/htmlembed';import _0x37ef12 from'./integrations/image';import _0x4bc03d from'./integrations/imagereplace';import _0x16a1b8 from'./integrations/importword';import _0x30230d from'./integrations/indent';import _0x5ada57 from'./integrations/inputcommand';import _0x152f68 from'./integrations/link';import _0x5c8d31 from'./integrations/list';import _0x1a9277 from'./integrations/listproperties';import _0x151926 from'./integrations/mediaembed';import _0x2ba83e from'./integrations/mention';import _0x1f2fc8 from'./integrations/pagebreak';import _0x16c7cd from'./integrations/paragraph';import _0x3471d8 from'./integrations/removeformat';import _0x5b5cfe from'./integrations/restrictededitingmode';import _0x58979e from'./integrations/shiftentercommand';import _0x31743e from'./integrations/standardeditingmode';import _0x4ab311 from'./integrations/style';import _0x5b8b13 from'./integrations/table';import _0x516094 from'./integrations/tablemergesplit';import _0x293f87 from'./integrations/tableheadings';import _0x5d5715 from'./integrations/tableclipboard';import _0x5d0df0 from'./integrations/tablecolumnresize';import _0x518d72 from'./integrations/template';import _0x5ecc3e from'./integrations/tableofcontents';import _0x412b10 from'./integrations/title';import _0x149884 from'./integrations/undo';import{getTranslation as _0x47b482}from'./utils/common-translations';import _0x34a9fa from'./integrations/tablecaption';import _0xdf43fc from'./integrations/documentlistproperties';import _0xcd9733 from'./integrations/tableproperties';import{isEqual as _0x170aad}from'lodash-es';export default class p extends _0x2c6fc4{static get[_0x3d5e('0x53')](){return[_0x3d5e('0x65'),_0x37b1a6,_0x42a800,_0x448949,_0x240b75,_0x35540b,_0x1d962c,_0x37aeb0,_0x96a1b,_0x5e3042,_0x3cfa1c,_0x50252f,_0xdf43fc,_0x26800c,_0x1c91ac,_0x2b2e6e,_0x566329,_0x558ec7,_0x30137f,_0x369a52,_0x1a9cad,_0x37ef12,_0x4bc03d,_0x16a1b8,_0x30230d,_0x5ada57,_0x152f68,_0x5c8d31,_0x1a9277,_0x151926,_0x2ba83e,_0x1f2fc8,_0x16c7cd,_0x3471d8,_0x5b5cfe,_0x58979e,_0x31743e,_0x4ab311,_0x5b8b13,_0x516094,_0x293f87,_0x34a9fa,_0x5d5715,_0x5d0df0,_0x5ecc3e,_0xcd9733,_0x518d72,_0x412b10,_0x149884];}static get[_0x3d5e('0x43')](){return _0x3d5e('0x9a');}constructor(_0x8219d1){function _0x4efb92(_0x4fcceb){return _0x4fcceb[_0x3d5e('0x95')](_0x167002=>String[_0x3d5e('0xe8')](_0x167002))['join']('');}super(_0x8219d1),this['set'](_0x3d5e('0x6c'),[]),this['on'](_0x3d5e('0xfe'),(_0x52d4a5,_0x323491,_0x2fc581,_0x48832c)=>{this[_0x3d5e('0x11c')][_0x3d5e('0x100')](()=>{for(const _0xdf8ee3 of[..._0x48832c,..._0x2fc581])this[_0x3d5e('0x11c')][_0x3d5e('0x2a')][_0x3d5e('0x8')](_0xdf8ee3)&&_0x8219d1['editing'][_0x3d5e('0x137')](_0xdf8ee3);});}),this[_0x3d5e('0x11f')]=new _0x4652fd(this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x42')],this[_0x3d5e('0xd9')][_0x3d5e('0x106')]),this[_0x3d5e('0x6d')]=null,this[_0x3d5e('0x82')]=new Bt(this['editor']),this[_0x3d5e('0xe0')]=new Map(),this[_0x3d5e('0x4c')]=_0x8219d1[_0x3d5e('0xcf')][_0x3d5e('0x105')]('CommentsRepository'),this[_0x3d5e('0x123')]=new Set(),this['_model']=this['editor'][_0x3d5e('0x94')],this[_0x3d5e('0xfa')]=new WeakMap(),this[_0x3d5e('0xaa')]=!0x1,_0x8219d1[_0x3d5e('0x121')][_0x3d5e('0xf8')](_0x3d5e('0x77'),_0x3d5e('0xde')),this[_0x3d5e('0xc3')]=_0x8219d1[_0x3d5e('0x121')]['get'](_0x3d5e('0x77')),_0x8219d1[_0x3d5e('0x121')][_0x3d5e('0xf8')](_0x3d5e('0x70'),!0x0),this['_mergeNestedSuggestions']=_0x8219d1[_0x3d5e('0x121')][_0x3d5e('0x105')](_0x3d5e('0x70')),this[_0x3d5e('0x8d')]=new _0x307cab(_0x8219d1,this[_0x3d5e('0x123')]),this[_0x4efb92([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4efb92([0x34,0x30,0x34,0x36,0x32,0x30,0x33,0x36]);}[_0x3d5e('0x13c')](){const _0x16bd4f=this[_0x3d5e('0xd9')];_0x16bd4f['conversion'][_0x3d5e('0x124')](_0x3d5e('0x66'))[_0x3d5e('0x13f')]({'model':_0x3d5e('0xe6'),'view':_0x1f4fb3=>{const {id:_0x4cf9bd,type:_0x1f3b6a}=this[_0x3d5e('0xa5')](_0x1f4fb3[_0x3d5e('0xf1')]),_0x22dd12=[_0x3d5e('0xc'),_0x3d5e('0x23')+_0x1f3b6a];let _0x4d27d8=0xbb8;return this['activeMarkers'][_0x3d5e('0x12f')](_0x1f4fb3[_0x3d5e('0xf1')])&&(_0x22dd12[_0x3d5e('0xc1')]('ck-suggestion-marker--active'),_0x4d27d8=0xbc2),_0x3d5e('0x33')==_0x1f3b6a&&(_0x4d27d8+=0x5),{'classes':_0x22dd12,'attributes':{'data-suggestion':_0x4cf9bd},'priority':_0x4d27d8};}}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xab'))['add'](_0x3e64b7=>{_0x3e64b7['on'](_0x3d5e('0x13'),(_0x118b6f,_0x381a9f,_0x33efd7)=>{if(!_0x33efd7[_0x3d5e('0xcd')][_0x3d5e('0x126')])return;const _0x1bffd6=_0x381a9f['item'];if(!_0x1bffd6)return;const _0x34b872=_0x33efd7[_0x3d5e('0x9f')]['toViewElement'](_0x1bffd6);_0x16bd4f['model'][_0x3d5e('0x42')][_0x3d5e('0x75')](_0x1bffd6)&&_0x34b872&&!_0x34b872[_0x3d5e('0x11')](_0x3d5e('0x41'))&&_0x34b872['is'](_0x3d5e('0x12'))&&_0x2956e3(_0x34b872,_0x33efd7['writer']);},{'priority':'high'});}),_0x16bd4f['conversion'][_0x3d5e('0x124')](_0x3d5e('0xab'))['markerToHighlight']({'model':_0x3d5e('0xe6'),'view':(_0x350f37,_0x1a1863)=>{if(!_0x1a1863[_0x3d5e('0xcd')][_0x3d5e('0x126')])return null;const {type:_0x1ec080}=this[_0x3d5e('0xa5')](_0x350f37[_0x3d5e('0xf1')]);return{'classes':[_0x3d5e('0xc'),_0x3d5e('0x23')+_0x1ec080],'priority':0xbb8};}});const _0x426c47=({showActiveMarkers:_0x4d99e1=!0x0}={})=>(_0x31f8ae,_0x3274d7,_0x5d478c)=>{if(!_0x3274d7[_0x3d5e('0xed')])return;if(_0x3274d7[_0x3d5e('0xed')]['is'](_0x3d5e('0xac')))return void _0x5d478c['consumable'][_0x3d5e('0x131')](_0x3274d7[_0x3d5e('0xed')],_0x31f8ae['name']);const _0x371dce=_0x5d478c[_0x3d5e('0x9f')][_0x3d5e('0xda')](_0x3274d7['item']);if(!(_0x3274d7[_0x3d5e('0xed')]['is']('element')&&_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x42')][_0x3d5e('0x2d')](_0x3274d7['item'])&&!_0x371dce['getCustomProperty']('addHighlight')))return;const {id:_0x693da}=this['_splitMarkerName'](_0x3274d7[_0x3d5e('0xf1')]);_0x5d478c[_0x3d5e('0x8f')][_0x3d5e('0xb0')]([_0x3d5e('0xc'),_0x3d5e('0xb5')],_0x371dce),_0x5d478c[_0x3d5e('0x8f')]['setAttribute'](_0x3d5e('0x79'),_0x693da,_0x371dce),_0x5d478c[_0x3d5e('0x9f')]['bindElementToMarker'](_0x371dce,_0x3274d7[_0x3d5e('0xf1')]),_0x4d99e1&&(this[_0x3d5e('0x6c')]['includes'](_0x3274d7['markerName'])?_0x5d478c[_0x3d5e('0x8f')][_0x3d5e('0xb0')](_0x3d5e('0xb2'),_0x371dce):_0x5d478c[_0x3d5e('0x8f')][_0x3d5e('0x81')](_0x3d5e('0xb2'),_0x371dce));for(const _0x139a0a of _0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x8c')](_0x3274d7['item'])[_0x3d5e('0xf')]())_0x5d478c[_0x3d5e('0x26')][_0x3d5e('0x131')](_0x139a0a,_0x31f8ae[_0x3d5e('0x35')]);_0x5d478c['consumable'][_0x3d5e('0x131')](_0x3274d7[_0x3d5e('0xed')],_0x31f8ae[_0x3d5e('0x35')]);};_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xab'))[_0x3d5e('0xea')](_0x13d960=>{_0x13d960['on'](_0x3d5e('0x22'),(_0x32ed0e,_0x199aed,_0x45fd30)=>{_0x45fd30['options']['showSuggestionHighlights']&&_0x426c47({'showActiveMarkers':!0x1})(_0x32ed0e,_0x199aed,_0x45fd30);},{'priority':_0x3d5e('0xbc')});}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xab'))[_0x3d5e('0x12d')]({'model':'suggestion','view':(_0x3cf6fd,_0x21c43b)=>_0x21c43b[_0x3d5e('0xcd')][_0x3d5e('0x126')]?null:{'group':_0x3d5e('0xe6'),'name':_0x3cf6fd['substr'](0xb)}}),_0x16bd4f['conversion']['for'](_0x3d5e('0xfd'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1bdee1,{writer:_0x426e8a})=>{let _0xd6a4c6=_0x3d5e('0x27')+_0x1bdee1[_0x3d5e('0x80')](_0x3d5e('0x114'))+':'+_0x1bdee1[_0x3d5e('0x80')]('id');return _0x1bdee1[_0x3d5e('0x80')]('marker-count')&&(_0xd6a4c6+=':'+_0x1bdee1['getAttribute']('marker-count')),_0x426e8a[_0x3d5e('0x34')](_0x3d5e('0x11a'),{'data-name':_0xd6a4c6});}}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0xfd'))['dataToMarker']({'view':_0x3d5e('0xe6')}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0x66'))[_0x3d5e('0xea')](_0x38887b=>{_0x38887b['on'](_0x3d5e('0x22'),_0x426c47(),{'priority':_0x3d5e('0x115')});}),_0x16bd4f[_0x3d5e('0x36')][_0x3d5e('0x124')](_0x3d5e('0x66'))[_0x3d5e('0xea')](_0x4d1506=>{_0x4d1506['on'](_0x3d5e('0x112'),(_0x24be6a,_0x3c8425,_0x4db599)=>{const _0x2f31eb=_0x4db599[_0x3d5e('0x9f')][_0x3d5e('0xd7')](_0x3c8425[_0x3d5e('0xf1')]);if(_0x2f31eb)for(const _0x3f5193 of _0x2f31eb)_0x3f5193[_0x3d5e('0x11')](_0x3d5e('0x16'))||(_0x4db599['writer'][_0x3d5e('0x81')]([_0x3d5e('0xc'),_0x3d5e('0xb5'),_0x3d5e('0xb2')],_0x3f5193),_0x4db599[_0x3d5e('0x8f')][_0x3d5e('0x47')](_0x3d5e('0x79'),_0x3f5193),_0x4db599[_0x3d5e('0x9f')][_0x3d5e('0x14')](_0x3f5193,_0x3c8425[_0x3d5e('0xf1')]));},{'priority':_0x3d5e('0x115')});}),_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')]['registerPostFixer'](_0x4ca596=>{let _0x3ba77b=!0x1;const _0x5d1c16=Array[_0x3d5e('0x141')](_0x16bd4f[_0x3d5e('0x94')]['document']['differ']['getChangedMarkers']()),_0x171db4=new Set();for(const {name:_0x9d9220,data:_0x244d64}of _0x5d1c16){const {group:_0x5420c1,type:_0x42c954,id:_0x2d60cf}=this[_0x3d5e('0xa5')](_0x9d9220);if(_0x3d5e('0xe6')!==_0x5420c1)continue;const _0x26647b=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x2d60cf);if(null!=_0x244d64[_0x3d5e('0x5f')]){_0x3d5e('0x61')==_0x42c954&&(_0x3ba77b=_0x3ba77b||$t(_0x244d64[_0x3d5e('0x5f')],_0x9d9220,_0x4ca596,_0x16bd4f['model'][_0x3d5e('0x42')]));if(_0x244d64['newRange'][_0x3d5e('0x32')]||'$graveyard'==_0x244d64[_0x3d5e('0x5f')]['root'][_0x3d5e('0x104')]||'formatBlock'==_0x42c954&&!Rt(_0x244d64['newRange'])||_0x3d5e('0x33')==_0x42c954&&!(!Mt(_0x273da1=_0x244d64[_0x3d5e('0x5f')])&&!function(_0x15fc4d){return _0x15fc4d[_0x3d5e('0x9d')]['parent']==_0x15fc4d[_0x3d5e('0x44')][_0x3d5e('0x7')]&&_0x15fc4d[_0x3d5e('0x9d')][_0x3d5e('0x72')];}(_0x273da1)))_0x4ca596[_0x3d5e('0x3f')](_0x9d9220),_0x3ba77b=!0x0;else{if(!_0x26647b||!_0x26647b[_0x3d5e('0x15')])continue;_0x171db4[_0x3d5e('0xea')](_0x26647b);}}}var _0x273da1;return _0x171db4[_0x3d5e('0xb4')]>0x0&&(_0x3ba77b=!!this[_0x3d5e('0x84')](_0x171db4)||_0x3ba77b),_0x3ba77b;}),_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')][_0x3d5e('0x11e')](_0xf993f1=>{let _0x219dc4=!0x1;for(const _0x138d91 of _0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')][_0x3d5e('0xd5')][_0x3d5e('0x1a')]()){if(_0x3d5e('0x85')!=_0x138d91[_0x3d5e('0x83')])continue;const _0x484311=_0x138d91[_0x3d5e('0xc8')][_0x3d5e('0x68')](_0x138d91['length']);if(_0x484311[_0x3d5e('0x72')])for(const _0x5e38a0 of this['_suggestions'][_0x3d5e('0x5e')]()){if(_0x5e38a0[_0x3d5e('0xb7')]||!_0x5e38a0[_0x3d5e('0x15')])continue;if(_0x3d5e('0x67')!=_0x5e38a0[_0x3d5e('0x83')])continue;const _0x3f8fd5=_0x5e38a0['getFirstRange']();if(_0x3f8fd5[_0x3d5e('0x9d')]['parent']!=_0x3f8fd5[_0x3d5e('0x44')][_0x3d5e('0x10')]&&_0x3f8fd5['end']['isEqual'](_0x138d91[_0x3d5e('0xc8')])){const _0x261d15=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0xee')](_0x3f8fd5[_0x3d5e('0x9d')],_0x484311);_0xf993f1[_0x3d5e('0x62')](_0x5e38a0[_0x3d5e('0x55')](),{'range':_0x261d15}),_0x219dc4=!0x0;}}}return _0x219dc4;}),_0x16bd4f[_0x3d5e('0x94')]['markers']['on'](_0x3d5e('0x111'),(_0x3f8ffa,_0x363d82,_0x242920)=>{if(null==_0x242920){const {id:_0x3b7c10}=this['_splitMarkerName'](_0x363d82[_0x3d5e('0x35')]),_0x289924=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x3b7c10);_0x289924&&_0x289924['addMarkerName'](_0x363d82[_0x3d5e('0x35')]);}}),_0x16bd4f[_0x3d5e('0x94')]['document']['on']('change:data',()=>{const _0x52c891=Array[_0x3d5e('0x141')](_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x122')][_0x3d5e('0xd5')]['getChangedMarkers']())['filter'](_0x167d3c=>'suggestion'===this['_splitMarkerName'](_0x167d3c[_0x3d5e('0x35')])[_0x3d5e('0xb3')]);if(0x0===_0x52c891[_0x3d5e('0xa8')])return;_0x52c891[_0x3d5e('0x7d')]((_0x9413da,_0x3f9721)=>{const _0x437601=_0x9413da['data'][_0x3d5e('0x5b')],_0x4f45e9=_0x3f9721['data'][_0x3d5e('0x5b')];return null===_0x437601&&null===_0x4f45e9?0x0:null===_0x437601&&null!==_0x4f45e9?-0x1:null!==_0x437601&&null===_0x4f45e9?0x1:_0x437601[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x4f45e9[_0x3d5e('0x9d')])?-0x1:0x1;});const _0x39731c=new Set(),_0x535606=new Set();for(const {name:_0x307c1c,data:_0x3c2967}of _0x52c891){const {id:_0x8dedf2}=this['_splitMarkerName'](_0x307c1c);if(null===_0x3c2967[_0x3d5e('0x5b')]){const _0x3a8d36=this['_handleNewSuggestionMarker'](_0x307c1c);_0x535606[_0x3d5e('0xea')](_0x3a8d36);}else{const _0x2aced0=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x8dedf2);null!==_0x3c2967[_0x3d5e('0x5f')]||_0x2aced0[_0x3d5e('0x15')]?(_0x39731c['add'](_0x2aced0[_0x3d5e('0x99')]),_0x535606[_0x3d5e('0xea')](_0x2aced0)):this[_0x3d5e('0xa9')](_0x2aced0);}}_0x535606[_0x3d5e('0xb4')]>0x0&&this[_0x3d5e('0x140')](_0x535606);for(const _0x1a211b of _0x39731c)this['fire'](_0x3d5e('0xf6'),_0x1a211b);}),_0x16bd4f[_0x3d5e('0x94')]['on'](_0x3d5e('0xf2'),(_0x3ea956,_0x33431a)=>{const _0x42689c=_0x33431a[0x0];if(!this[_0x3d5e('0xe0')][_0x3d5e('0xb4')])return;if(!_0x42689c['isDocumentOperation'])return;if(_0x42689c['batch'][_0x3d5e('0x6f')]||!_0x42689c[_0x3d5e('0xa1')][_0x3d5e('0x12e')])return;let _0x537b10,_0x3b4b07;switch(_0x42689c[_0x3d5e('0x83')]){case _0x3d5e('0x85'):_0x537b10=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c[_0x3d5e('0xc8')]),_0x3b4b07=_0x537b10[_0x3d5e('0x68')](_0x42689c[_0x3d5e('0x144')]);break;case _0x3d5e('0x4'):_0x537b10=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c[_0x3d5e('0xf4')]),_0x3b4b07=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c[_0x3d5e('0xcc')]);break;case _0x3d5e('0x64'):_0x537b10=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x42689c['targetPosition']),_0x3b4b07=_0x537b10['getShiftedBy'](_0x42689c[_0x3d5e('0x144')]);break;default:return;}const _0x4d20bd=_0x16bd4f['model'][_0x3d5e('0xee')](_0x537b10,_0x3b4b07);_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x100')](()=>{for(const {suggestion:_0x34604b,meta:_0x269d77}of this[_0x3d5e('0x2c')](_0x4d20bd)){if(_0x34604b[_0x3d5e('0xb7')])continue;if(_0x3d5e('0x61')==_0x34604b['type'])continue;const _0x4acac1=_0x34604b[_0x3d5e('0x135')]&&_0x34604b['data'][_0x3d5e('0x1e')];(_0x3d5e('0x67')!=_0x34604b[_0x3d5e('0x83')]||_0x3d5e('0x4')==_0x42689c[_0x3d5e('0x83')]&&!_0x4acac1)&&(_0x269d77[_0x3d5e('0x3a')]||_0x3d5e('0xba')==_0x34604b[_0x3d5e('0x83')]&&_0x269d77[_0x3d5e('0x9')]||_0x34604b[_0x3d5e('0x97')]()[_0x3d5e('0x51')](_0x4d20bd)&&this[_0x3d5e('0x134')](_0x34604b,_0x537b10,_0x3b4b07));}});},{'priority':_0x3d5e('0x125')}),_0x16bd4f['model']['on'](_0x3d5e('0x4f'),(_0x54a040,_0x4f1701)=>{const _0x21ec5a=_0x4f1701[0x0],_0x2ef749=_0x4f1701[0x1];if(_0x2ef749&&_0x2ef749[_0x3d5e('0x8a')])return;if(this[_0x3d5e('0xaa')])return;if(!this['trackChangesCommand'][_0x3d5e('0xb8')])return;if(_0x21ec5a[_0x3d5e('0x32')])return;const _0x1371f2=_0x16bd4f['model'][_0x3d5e('0x42')],{start:_0x1abd76,end:_0x2d9b0d}=_0x21ec5a[_0x3d5e('0x97')](),_0x2e0114=_0x1abd76[_0x3d5e('0x74')]&&_0x1371f2[_0x3d5e('0x12b')](_0x1abd76[_0x3d5e('0x74')])?null:_0x1371f2[_0x3d5e('0x6e')](_0x1abd76,_0x3d5e('0x103')),_0xc39a8e=_0x2d9b0d[_0x3d5e('0x7')]&&_0x1371f2[_0x3d5e('0x12b')](_0x2d9b0d[_0x3d5e('0x7')])?null:_0x1371f2[_0x3d5e('0x6e')](_0x2d9b0d,_0x3d5e('0x69')),_0x295bfe=_0x16bd4f['model'][_0x3d5e('0xee')](_0x2e0114?_0x2e0114[_0x3d5e('0x9d')]:_0x1abd76,_0xc39a8e?_0xc39a8e[_0x3d5e('0x44')]:_0x2d9b0d);_0x16bd4f[_0x3d5e('0x94')]['change'](_0x1957ea=>{this['markDeletion'](_0x295bfe);const _0x5bce8f=_0x16bd4f[_0x3d5e('0x94')]['schema'][_0x3d5e('0x6e')](_0x295bfe[_0x3d5e('0x9d')]);_0x21ec5a['is']('documentSelection')?_0x1957ea[_0x3d5e('0x3')](_0x5bce8f):_0x21ec5a[_0x3d5e('0xe')](_0x5bce8f);}),_0x54a040[_0x3d5e('0xdf')]();},{'priority':_0x372370['normal']+0xa}),_0x16bd4f[_0x3d5e('0x94')]['on'](_0x3d5e('0x6a'),(_0x4a4838,_0x188021)=>{const _0x233f49=_0x188021[_0x188021['length']-0x1];_0x233f49&&_0x233f49[_0x3d5e('0x8a')]||this[_0x3d5e('0xaa')]||this[_0x3d5e('0x8d')]['value']&&(_0x16bd4f[_0x3d5e('0x94')]['change'](()=>{let _0x321b53=_0x16bd4f['model']['insertContent'](_0x188021[0x0],_0x188021[0x1],_0x188021[0x2],{'forceDefaultExecution':!0x0});if(!_0x321b53)return;_0x4a4838[_0x3d5e('0xbe')]=_0x321b53[_0x3d5e('0xad')]();const _0x5aa0e8=_0x321b53[_0x3d5e('0x44')][_0x3d5e('0x7')],_0x32c436=_0x16bd4f[_0x3d5e('0x94')]['schema'];_0x5aa0e8&&_0x32c436[_0x3d5e('0x2d')](_0x5aa0e8)&&!_0x32c436[_0x3d5e('0x75')](_0x5aa0e8)&&(_0x321b53=_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0xee')](_0x321b53[_0x3d5e('0x9d')],_0x16bd4f[_0x3d5e('0x94')][_0x3d5e('0x19')](_0x5aa0e8,'end'))),this[_0x3d5e('0xd6')](_0x321b53);}),_0x4a4838[_0x3d5e('0xdf')]());},{'priority':_0x3d5e('0x115')}),this[_0x3d5e('0xd9')][_0x3d5e('0x143')]['add'](_0x3d5e('0x29'),this[_0x3d5e('0x8d')]),this['enableCommand'](_0x3d5e('0x29'));const _0x298501=new _0x36f33e(_0x16bd4f,this[_0x3d5e('0xe0')]);_0x16bd4f['commands'][_0x3d5e('0xea')](_0x3d5e('0x31'),_0x298501),this[_0x3d5e('0x117')]('acceptSuggestion');const _0x515008=new _0x2749cc(_0x16bd4f,this[_0x3d5e('0xe0')]);_0x16bd4f['commands'][_0x3d5e('0xea')]('discardSuggestion',_0x515008),this[_0x3d5e('0x117')](_0x3d5e('0x10c')),_0x16bd4f[_0x3d5e('0x143')][_0x3d5e('0xea')](_0x3d5e('0x2b'),new _0x8ecd0f(_0x16bd4f,_0x298501,this['_suggestions'])),this[_0x3d5e('0x117')](_0x3d5e('0x2b')),_0x16bd4f[_0x3d5e('0x143')]['add'](_0x3d5e('0x5'),new _0x8ecd0f(_0x16bd4f,_0x515008,this[_0x3d5e('0xe0')])),this[_0x3d5e('0x117')](_0x3d5e('0x5')),_0x16bd4f[_0x3d5e('0x143')][_0x3d5e('0xea')]('acceptSelectedSuggestions',new _0x4ab4a7(_0x16bd4f,_0x298501,this['_suggestions'])),this[_0x3d5e('0x117')](_0x3d5e('0x96')),_0x16bd4f[_0x3d5e('0x143')]['add'](_0x3d5e('0x129'),new _0x4ab4a7(_0x16bd4f,_0x515008,this[_0x3d5e('0xe0')])),this[_0x3d5e('0x117')](_0x3d5e('0x129'));const _0x5a3c0a=_0x16bd4f[_0x3d5e('0xcf')]['get']('CommentsRepository');this[_0x3d5e('0xa6')](_0x5a3c0a,_0x3d5e('0x87'),(_0x1f97c3,{threadId:_0x5a9333})=>{const _0x4e33ff=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x5a9333);_0x4e33ff&&_0x4e33ff[_0x3d5e('0x9c')]&&0x1===_0x4e33ff[_0x3d5e('0x9c')]['length']&&this[_0x3d5e('0xbf')](_0x5a9333,{'hasComments':!0x0});},{'priority':_0x3d5e('0xb6')}),this['listenTo'](_0x5a3c0a,'removeComment',(_0x1c4f8b,{threadId:_0x3a378b})=>{const _0x2ce182=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x3a378b);_0x2ce182&&_0x2ce182[_0x3d5e('0x9c')]&&!_0x2ce182[_0x3d5e('0x9c')][_0x3d5e('0xa8')]&&this['_updateSuggestionData'](_0x3a378b,{'hasComments':!0x1});},{'priority':_0x3d5e('0xb6')});}set[_0x3d5e('0x10e')](_0x5b1ae2){if(this[_0x3d5e('0x6d')])throw new _0x407a23(_0x3d5e('0xf9'),this);this['_adapter']=_0x5b1ae2;}get[_0x3d5e('0x10e')](){return this[_0x3d5e('0x6d')];}['getSuggestions']({skipNotAttached:_0x38f867=!0x1,toJSON:_0x39cd3c=!0x1}={}){const _0x20cb15=[];for(const _0x364141 of this['_suggestions'][_0x3d5e('0x5e')]())_0x38f867&&!_0x364141['isInContent']||_0x20cb15[_0x3d5e('0xc1')](_0x364141);return _0x39cd3c?_0x20cb15[_0x3d5e('0x95')](_0x11ef06=>_0x11ef06[_0x3d5e('0xf0')]()):_0x20cb15;}[_0x3d5e('0x5d')](_0x123a74){const _0x391ad9=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x123a74);if(!_0x391ad9)throw new _0x407a23('track-changes-suggestion-not-found',this);return _0x391ad9;}[_0x3d5e('0xd8')](_0x1da081){return this[_0x3d5e('0xe0')][_0x3d5e('0x8')](_0x1da081);}[_0x3d5e('0xe1')](_0x4a9115){const {authorId:_0x101c68,id:_0x4b0598,attributes:_0x12ad6c}=_0x4a9115,[_0x2ee3b4,_0x2678e1]=_0x4a9115[_0x3d5e('0x83')][_0x3d5e('0x4')](':'),_0x1ad9c5=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x4b0598)||this[_0x3d5e('0xf7')](_0x2ee3b4,_0x2678e1,_0x4b0598,_0x101c68,_0x12ad6c);if(this[_0x3d5e('0x39')](_0x1ad9c5),this[_0x3d5e('0xc6')](_0x1ad9c5,_0x2ee3b4,_0x2678e1||null,_0x101c68),_0x1ad9c5[_0x3d5e('0x108')]=_0x4a9115[_0x3d5e('0x108')],_0x1ad9c5['_isDataLoaded']=!0x0,_0x12ad6c&&_0x12ad6c[_0x3d5e('0xc9')]){const _0x10b786=_0x12ad6c[_0x3d5e('0xc9')],_0x4215b6=this[_0x3d5e('0x11d')](_0x10b786['authorName']);_0x1ad9c5['authoredAt']=_0x10b786['createdAt'],_0x1ad9c5[_0x3d5e('0xb9')]=_0x4215b6,_0x1ad9c5[_0x3d5e('0x18')]=!0x0;}else _0x1ad9c5[_0x3d5e('0x48')]=_0x4a9115[_0x3d5e('0x108')];switch(_0x4a9115['data']&&(_0x1ad9c5[_0x3d5e('0x135')]=_0x4a9115[_0x3d5e('0x135')]),_0x4a9115[_0x3d5e('0xd3')]&&(_0x1ad9c5['attributes']=_0x4a9115[_0x3d5e('0xd3')]),this[_0x3d5e('0x6d')]&&this[_0x3d5e('0x6d')]['addSuggestion']||(_0x1ad9c5['_saved']=!0x0),this[_0x3d5e('0xfa')][_0x3d5e('0x105')](_0x1ad9c5)){case _0x3d5e('0x5a'):this['_suggestionState'][_0x3d5e('0xdb')](_0x1ad9c5,_0x3d5e('0xa0'));break;case _0x3d5e('0x7f'):_0x1ad9c5[_0x3d5e('0x15')]?(this[_0x3d5e('0x140')](new Set([_0x1ad9c5])),this['_joinWithAdjacentSuggestions'](new Set([_0x1ad9c5])),this['_suggestionState']['set'](_0x1ad9c5,_0x3d5e('0x17')),this[_0x3d5e('0x132')](_0x3d5e('0x63'),_0x1ad9c5)):this[_0x3d5e('0xfa')][_0x3d5e('0xdb')](_0x1ad9c5,'removed');}return _0x1ad9c5;}['acceptSuggestion'](_0xc9c298){this[_0x3d5e('0x8a')](()=>{this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x100')](()=>{for(const _0x1bd4d8 of _0xc9c298[_0x3d5e('0x142')]())_0x1bd4d8['accept']();});});}[_0x3d5e('0x10c')](_0x1c1f65){this[_0x3d5e('0x8a')](()=>{this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x100')](()=>{for(const _0x1f1894 of _0x1c1f65[_0x3d5e('0x142')]())_0x1f1894[_0x3d5e('0xc5')]();});});}['enableCommand'](_0x1e752e,_0x125626){const _0x398ae8=this[_0x3d5e('0xd9')][_0x3d5e('0x143')]['get'](_0x1e752e);if(!_0x398ae8)throw new _0x407a23(_0x3d5e('0x116'),this,{'commandName':_0x1e752e});this[_0x3d5e('0x123')][_0x3d5e('0xea')](_0x398ae8),_0x125626&&_0x398ae8['on'](_0x3d5e('0x58'),(_0x1c09ba,_0x20514a)=>{this['trackChangesCommand'][_0x3d5e('0xb8')]&&(this[_0x3d5e('0xaa')]||_0x20514a[_0x3d5e('0xa8')]>0x0&&_0x20514a[_0x20514a[_0x3d5e('0xa8')]-0x1]&&_0x20514a[_0x20514a[_0x3d5e('0xa8')]-0x1][_0x3d5e('0x8a')]||(_0x1c09ba['return']=_0x125626((..._0x300770)=>_0x398ae8[_0x3d5e('0x58')](..._0x300770,{'forceDefaultExecution':!0x0}),..._0x20514a),_0x1c09ba[_0x3d5e('0xdf')]()));},{'priority':_0x3d5e('0x115')});}[_0x3d5e('0x8a')](_0x507fd6){let _0x50bf65,_0x2291b0;const _0x503cf1=this[_0x3d5e('0xaa')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50bf65=_0x507fd6();}catch(_0x172fed){_0x2291b0=_0x172fed;}return _0x503cf1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2291b0&&_0x407a23['rethrowUnexpectedError'](_0x2291b0,this),_0x50bf65;}['markInsertion'](_0x181aab,_0x357f0e=null,_0x478da2={}){if(_0x181aab[_0x3d5e('0x32')])return null;const _0x19cb23=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'];for(const {suggestion:_0x3b896a,meta:_0x33bf45}of this[_0x3d5e('0x2c')](_0x181aab,_0x3d5e('0xba')))if(_0x33bf45[_0x3d5e('0x9')]){if(!_0x33bf45[_0x3d5e('0x90')]){if(_0x33bf45[_0x3d5e('0x3a')]){if(!this[_0x3d5e('0x10b')]||!Ot(_0x3b896a,_0x478da2))continue;return _0x3b896a;}if(Ot(_0x3b896a,_0x478da2))return _0x3b896a;this['_breakSuggestionMarker'](_0x3b896a,_0x181aab[_0x3d5e('0x9d')],_0x181aab[_0x3d5e('0x44')]);break;}if(_0x357f0e==_0x3b896a['subType']&&Ot(_0x3b896a,_0x478da2)){const _0x2091f9=_0x3b896a[_0x3d5e('0x97')]();return _0x2091f9['start'][_0x3d5e('0x3d')](_0x181aab[_0x3d5e('0x44')])?this[_0x3d5e('0xce')](_0x3b896a,this['_model'][_0x3d5e('0xee')](_0x181aab[_0x3d5e('0x9d')],_0x2091f9[_0x3d5e('0x44')])):this[_0x3d5e('0xce')](_0x3b896a,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2091f9['start'],_0x181aab[_0x3d5e('0x44')])),_0x3b896a;}}const _0x180e96=_0x59e8c4(),_0x55ea90=_0x19cb23['id'],_0x3c39ec=_0x357f0e?_0x3d5e('0x110')+_0x357f0e:_0x3d5e('0xba'),_0x283572=this['_setSuggestionData']({'id':_0x180e96,'type':_0x3c39ec,'createdAt':new Date(),'authorId':_0x55ea90,'attributes':_0x478da2});return this[_0x3d5e('0x71')](_0x3c39ec,_0x180e96,_0x55ea90,_0x181aab),_0x283572;}[_0x3d5e('0x120')](_0x12e93b,_0xde0a23=_0x3d5e('0x7e'),_0x26c8cf={}){const _0xd4caab=this['editor']['plugins'][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'],_0x54b1c4=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xde0a23,_0x3d5e('0x46'));for(const _0x3e51a9 of this[_0x3d5e('0xbd')]())if(_0x3e51a9[_0x3d5e('0xb9')]['id']==_0xd4caab['id']&&_0x3d5e('0xba')==_0x3e51a9[_0x3d5e('0x83')]&&_0x3e51a9['subType']==_0xde0a23&&Ot(_0x3e51a9,_0x26c8cf)&&(_0x54b1c4(_0x3e51a9[_0x3d5e('0x119')](),_0x12e93b)||_0x54b1c4(_0x12e93b,_0x3e51a9[_0x3d5e('0x119')]()))){for(const _0x306fe6 of _0x12e93b)_0x3e51a9[_0x3d5e('0xe7')](_0x306fe6);return _0x3e51a9;}for(const {suggestion:_0xe29f73,meta:_0x4e0991}of this[_0x3d5e('0x2c')](_0x12e93b,_0x3d5e('0xba'))){if(!_0x4e0991[_0x3d5e('0x9')])continue;if(!this[_0x3d5e('0x10b')]&&_0x4e0991['containsRangeInObject'])continue;if(!Ot(_0xe29f73,_0x26c8cf))continue;let _0x4baed1=!0x0;for(const _0x169fdf of _0xe29f73[_0x3d5e('0x119')]())for(const _0x35ccca of _0x12e93b)if(!_0x169fdf[_0x3d5e('0x51')](_0x35ccca)){_0x4baed1=!0x1;break;}if(_0x4baed1)return _0xe29f73;}const _0x333da0=_0x59e8c4(),_0x53d89b=_0xd4caab['id'],_0x168397=_0x3d5e('0x110')+_0xde0a23,_0xa72143=this[_0x3d5e('0x10a')]({'id':_0x333da0,'type':_0x168397,'createdAt':new Date(),'authorId':_0x53d89b,'attributes':_0x26c8cf});for(const _0x40c86e of _0x12e93b)this[_0x3d5e('0x71')](_0x168397,_0x333da0,_0x53d89b,_0x40c86e,_0x439cc9[_0x3d5e('0x136')]());return _0xa72143;}[_0x3d5e('0x30')](_0x127472,_0x3d047c,_0x1526f8=null,_0x42bd0e={}){if(_0x1526f8=_0x1526f8||Nt(_0x3d047c),_0x127472[_0x3d5e('0x32')])return null;if('never'===this[_0x3d5e('0xc3')]){const _0x4661ea=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x61'),_0x1526f8,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x4661ea([_0x127472],_0x3d047c,_0x42bd0e)),null;}const _0x44388e=this[_0x3d5e('0xd9')]['plugins'][_0x3d5e('0x105')]('Users')['me'],_0x2a3051=[];if('always'!==this[_0x3d5e('0xc3')])for(const {suggestion:_0x4a45fd,meta:_0x5931d6}of this[_0x3d5e('0x2c')](_0x127472,'insertion'))_0x5931d6['isOwn']&&!_0x5931d6[_0x3d5e('0xe3')]&&_0x2a3051[_0x3d5e('0xc1')](..._0x4a45fd[_0x3d5e('0x119')]());const _0x21795a=function(_0x1400bc,_0x1ab7c4){const _0x5750a8=[];for(const _0x27abff of _0x1ab7c4){const _0x83eb84=_0x1400bc[_0x3d5e('0xdc')](_0x27abff);_0x83eb84&&_0x5750a8[_0x3d5e('0xc1')](_0x83eb84);}return _0x5750a8;}(_0x127472,_0x2a3051),_0x2fc2b7=function(_0x57ec34,_0x249ac7){const _0x539c23=[_0x57ec34];for(const _0x353f95 of _0x249ac7){let _0xef1ca=0x0;for(;_0xef1ca<_0x539c23['length'];){const _0x4a13c8=_0x539c23[_0xef1ca][_0x3d5e('0x2')](_0x353f95);_0x539c23['splice'](_0xef1ca,0x1,..._0x4a13c8),_0xef1ca+=_0x4a13c8[_0x3d5e('0xa8')];}}return _0x539c23;}(_0x127472,_0x2a3051);_0x21795a['length']&&this[_0x3d5e('0x11c')][_0x3d5e('0x100')](()=>{for(const _0x4bb72f of _0x21795a){const _0x18e97b=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x61'),_0x1526f8,_0x3d5e('0x3c'));this[_0x3d5e('0x8a')](()=>_0x18e97b([_0x4bb72f],_0x3d047c,_0x42bd0e));}});for(const _0xa4eb3d of _0x2fc2b7){let _0x298ccf=null,_0x1bfec1=_0xa4eb3d['start'],_0x2b0fb2=_0xa4eb3d[_0x3d5e('0x44')];for(const {suggestion:_0x25f72b,meta:_0x5d5995}of this['_findSuggestions'](_0xa4eb3d,'formatInline')){if(!_0x5d5995[_0x3d5e('0x9')])continue;if(_0x25f72b[_0x3d5e('0x7c')]!=_0x1526f8)continue;if(!Ot(_0x25f72b,_0x42bd0e))continue;const _0x298c7c=_0x25f72b['getFirstRange']();if(_0x298c7c['containsRange'](_0xa4eb3d,!0x0))return null;_0x1bfec1=_0x1bfec1[_0x3d5e('0xb1')](_0x298c7c[_0x3d5e('0x9d')])?_0x1bfec1:_0x298c7c[_0x3d5e('0x9d')],_0x2b0fb2=_0x2b0fb2[_0x3d5e('0xe5')](_0x298c7c['end'])?_0x2b0fb2:_0x298c7c['end'],_0x298ccf?_0x298c7c[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x298ccf[_0x3d5e('0x97')]()[_0x3d5e('0x9d')])?(_0x298ccf[_0x3d5e('0xa4')](),_0x298ccf=_0x25f72b):_0x25f72b[_0x3d5e('0xa4')]():_0x298ccf=_0x25f72b;}const _0xe407bb=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x1bfec1,_0x2b0fb2);if(_0x298ccf)this[_0x3d5e('0xce')](_0x298ccf,_0xe407bb);else{const _0x265885=_0x59e8c4(),_0x49b870=_0x44388e['id'];this[_0x3d5e('0x10a')]({'id':_0x265885,'type':_0x3d5e('0x13a')+_0x1526f8,'data':_0x3d047c,'createdAt':new Date(),'authorId':_0x49b870,'attributes':_0x42bd0e}),this[_0x3d5e('0x71')](_0x3d5e('0x13a')+_0x1526f8,_0x265885,_0x49b870,_0xe407bb);}}return null;}[_0x3d5e('0x4b')](_0x1374fe,_0x5ababe,_0x85eb9=[],_0x4a1334=null,_0x2e38e4={}){_0x5ababe['formatGroupId']||(_0x5ababe[_0x3d5e('0x101')]=_0x5ababe['commandName']),_0x5ababe[_0x3d5e('0x1e')]=_0x1374fe['is'](_0x3d5e('0xc0')),_0x4a1334=_0x4a1334||Nt(_0x5ababe);const _0x28be54=_0x85eb9[_0x3d5e('0x95')](_0x1c2b2f=>jt(_0x1c2b2f,this['_model'])),_0x145550=_0x1374fe['is'](_0x3d5e('0xc0'))?_0x1374fe:jt(_0x1374fe,this[_0x3d5e('0x11c')]);if('never'===this['_trackFormatChanges']){const _0x4595b8=this[_0x3d5e('0x82')]['getSuggestionCallback'](_0x3d5e('0x67'),_0x4a1334,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x4595b8([_0x145550],_0x5ababe,_0x2e38e4)),null;}_0x28be54['push'](_0x145550);let _0x19a7ac=!0x0;for(const _0xa11140 of _0x28be54)if(!this[_0x3d5e('0xaf')](_0xa11140)){_0x19a7ac=!0x1;break;}if(_0x19a7ac&&_0x3d5e('0x57')!==this['_trackFormatChanges']){const _0x34e573=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x67'),_0x4a1334,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x34e573([_0x145550],_0x5ababe,_0x2e38e4)),null;}let _0x92ddb3=null,_0x5c18e8=_0x145550['start'],_0x146f38=_0x145550[_0x3d5e('0x44')];for(const {suggestion:_0x509512,meta:_0x23199a}of this[_0x3d5e('0x2c')](_0x145550,_0x3d5e('0x67'))){if(!_0x23199a['isOwn'])continue;if(_0x23199a[_0x3d5e('0x90')]||_0x23199a[_0x3d5e('0x3a')]||_0x23199a[_0x3d5e('0xe3')])continue;if(_0x509512[_0x3d5e('0x135')][_0x3d5e('0x101')]!=_0x5ababe[_0x3d5e('0x101')])continue;if(!Ot(_0x509512,_0x2e38e4))continue;const _0x4ae105=_0x509512['getFirstRange']();if(_0x509512[_0x3d5e('0x7c')]==_0x4a1334){if(_0x4ae105['containsRange'](_0x145550,!0x0))return null;_0x5c18e8=_0x5c18e8[_0x3d5e('0xb1')](_0x4ae105['start'])?_0x5c18e8:_0x4ae105['start'],_0x146f38=_0x146f38[_0x3d5e('0xe5')](_0x4ae105[_0x3d5e('0x44')])?_0x146f38:_0x4ae105[_0x3d5e('0x44')],_0x92ddb3?_0x4ae105[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x92ddb3[_0x3d5e('0x97')]()['start'])?(_0x92ddb3[_0x3d5e('0xa4')](),_0x92ddb3=_0x509512):_0x509512[_0x3d5e('0xa4')]():_0x92ddb3=_0x509512;}else{const _0x3f95c6=_0x145550['getIntersection'](_0x4ae105);this[_0x3d5e('0x11b')](_0x509512,_0x3f95c6);}}const _0x2806fa=this['editor'][_0x3d5e('0xcf')]['get'](_0x3d5e('0xca'))['me'],_0x36b9a1=_0x59e8c4(),_0x40c546=_0x2806fa['id'];if(_0x92ddb3)return this[_0x3d5e('0xce')](_0x92ddb3,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x5c18e8,_0x146f38)),_0x92ddb3;{const _0x34d739=this[_0x3d5e('0x10a')]({'id':_0x36b9a1,'type':'formatBlock:'+_0x4a1334,'data':_0x5ababe,'createdAt':new Date(),'authorId':_0x40c546,'attributes':_0x2e38e4});return this[_0x3d5e('0x71')](_0x3d5e('0xae')+_0x4a1334,_0x36b9a1,_0x40c546,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x5c18e8,_0x146f38)),_0x34d739;}}[_0x3d5e('0x1')](_0x5b1146,_0x397e6e,_0xd78133=[],_0xd53a45=null,_0x50ff73={}){_0x397e6e[_0x3d5e('0x101')]||(_0x397e6e['formatGroupId']=_0x397e6e[_0x3d5e('0x37')]);const _0x39fb32=_0x5b1146[0x0];_0x397e6e[_0x3d5e('0x1e')]=_0x39fb32['is'](_0x3d5e('0xc0')),_0xd53a45=_0xd53a45||Nt(_0x397e6e);const _0x3d5385=_0xd78133[_0x3d5e('0x95')](_0x59f891=>jt(_0x59f891,this[_0x3d5e('0x11c')])),_0x206229=_0x39fb32['is'](_0x3d5e('0xc0'))?_0x5b1146:_0x5b1146[_0x3d5e('0x95')](_0x5c067e=>jt(_0x5c067e,this[_0x3d5e('0x11c')]));if('never'===this[_0x3d5e('0xc3')]){const _0x32ec65=this[_0x3d5e('0x82')]['getSuggestionCallback'](_0x3d5e('0x67'),_0xd53a45,_0x3d5e('0x3c'));return this['forceDefaultExecution'](()=>_0x32ec65(_0x206229,_0x397e6e,_0x50ff73)),null;}_0x3d5385['push'](..._0x206229);let _0x1e6e0b=!0x0;for(const _0x4b070e of _0x3d5385)if(!this[_0x3d5e('0xaf')](_0x4b070e)){_0x1e6e0b=!0x1;break;}if(_0x1e6e0b&&_0x3d5e('0x57')!==this['_trackFormatChanges']){const _0x183248=this['_suggestionFactory']['getSuggestionCallback'](_0x3d5e('0x67'),_0xd53a45,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x183248(_0x206229,_0x397e6e,_0x50ff73)),null;}const _0x5ecef0=this['editor']['plugins'][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'];for(const _0x22738a of this[_0x3d5e('0xbd')]()){if(_0x22738a[_0x3d5e('0xb9')]['id']!=_0x5ecef0['id'])continue;if(_0x3d5e('0x67')!=_0x22738a[_0x3d5e('0x83')]||_0x22738a[_0x3d5e('0x135')]['formatGroupId']!=_0x397e6e['formatGroupId'])continue;if(!Ot(_0x22738a,_0x50ff73))continue;const _0x4877f3=_0x22738a[_0x3d5e('0x7c')]==_0xd53a45;for(let _0x5e1820=0x0;_0x5e1820<_0x206229[_0x3d5e('0xa8')];_0x5e1820++){const _0x2178d9=_0x206229[_0x5e1820];for(const _0x2d8d11 of _0x22738a['getMarkers']()){const _0x128e2c=_0x2d8d11[_0x3d5e('0xe4')]();if(_0x2178d9['isEqual'](_0x128e2c)){_0x4877f3?(_0x206229[_0x3d5e('0x4d')](_0x5e1820,0x1),_0x5e1820--):_0x22738a[_0x3d5e('0x3f')](_0x2d8d11[_0x3d5e('0x35')]);break;}}}}if(0x0==_0x206229[_0x3d5e('0xa8')])return null;const _0x5df338=this[_0x3d5e('0x82')][_0x3d5e('0xb')]('formatBlock',_0xd53a45,'join');for(const _0x1408a5 of this[_0x3d5e('0xbd')]())if(_0x1408a5['author']['id']==_0x5ecef0['id']&&_0x3d5e('0x67')==_0x1408a5[_0x3d5e('0x83')]&&_0x1408a5[_0x3d5e('0x135')][_0x3d5e('0x101')]==_0x397e6e['formatGroupId']&&_0x1408a5['subType']==_0xd53a45&&Ot(_0x1408a5,_0x50ff73)&&(_0x5df338(_0x1408a5[_0x3d5e('0x119')](),_0x206229)||_0x5df338(_0x206229,_0x1408a5[_0x3d5e('0x119')]()))){for(const _0x4c77fd of _0x206229)_0x1408a5[_0x3d5e('0xe7')](_0x4c77fd);return _0x1408a5;}const _0x55e76f=_0x59e8c4(),_0x20275f=_0x5ecef0['id'],_0x57eef0=_0x3d5e('0xae')+_0xd53a45,_0x1d01df=this[_0x3d5e('0x10a')]({'id':_0x55e76f,'type':_0x57eef0,'data':_0x397e6e,'createdAt':new Date(),'authorId':_0x20275f,'attributes':_0x50ff73});for(const _0xa5415a of _0x206229)this['_addSuggestionMarker'](_0x57eef0,_0x55e76f,_0x20275f,_0xa5415a,_0x439cc9['getMultiRangeId']());return _0x1d01df;}['markDeletion'](_0x1fd885,_0x400294=null,_0x73f3e0={}){if(_0x1fd885[_0x3d5e('0x32')])return null;const _0x36c22b=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')]('Users')['me'],_0x3ca37e=new _0x43231c(_0x1fd885['start'],_0x1fd885[_0x3d5e('0x44')]);for(const {suggestion:_0x53f199,meta:_0x1202d1}of this['_findSuggestions'](_0x3ca37e,_0x3d5e('0xba')))if(_0x1202d1['isOwn']&&!_0x1202d1[_0x3d5e('0x90')]){if(_0x53f199[_0x3d5e('0xb7')]){const _0x25d83d=_0x53f199['getRanges']()[_0x3d5e('0x24')](_0x54ea24=>_0x3d5e('0x6b')!=_0x54ea24[_0x3d5e('0x78')]['rootName']);_0x25d83d[_0x3d5e('0xd2')](_0x12231a=>_0x3ca37e[_0x3d5e('0x51')](_0x12231a,!0x0))&&_0x53f199[_0x3d5e('0xc5')]();if(_0x25d83d[_0x3d5e('0xf3')](_0x3f442b=>_0x3f442b['containsRange'](_0x3ca37e,!0x0))){const _0x501d0a=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x33'),_0x400294,'accept');return this[_0x3d5e('0x8a')](()=>_0x501d0a([_0x3ca37e],null,_0x73f3e0)),null;}}else{const _0x471d9a=_0x3ca37e['getIntersection'](_0x53f199[_0x3d5e('0x97')]());null!==_0x471d9a&&_0x53f199['_onDiscard']([_0x471d9a],null,_0x73f3e0);}}if(_0x3ca37e[_0x3d5e('0xd0')](),_0x3ca37e[_0x3d5e('0x32')]||_0x3d5e('0x6b')==_0x3ca37e['root'][_0x3d5e('0x104')])return null;let _0x14b69a=null,_0x2faf94=_0x3ca37e['start'],_0x193cb4=_0x3ca37e[_0x3d5e('0x44')];const _0x4df307=this[_0x3d5e('0x2c')](_0x3ca37e,_0x3d5e('0x33'));for(const {suggestion:_0x53b474,meta:_0x342aa4}of _0x4df307){const _0x30c443=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2faf94,_0x193cb4);if(_0x342aa4[_0x3d5e('0x9')]&&(this[_0x3d5e('0x10b')]||!_0x342aa4[_0x3d5e('0x3a')]&&!_0x342aa4[_0x3d5e('0xe3')])){if(_0x53b474[_0x3d5e('0xb7')]){if(!Ot(_0x53b474,_0x73f3e0))continue;let _0x1f4e4e=!0x0;for(const _0x58978e of _0x53b474[_0x3d5e('0x119')]()){if(_0x58978e['containsRange'](_0x30c443,!0x0))return _0x53b474;_0x30c443[_0x3d5e('0x51')](_0x58978e)||(_0x1f4e4e=!0x1);}_0x1f4e4e&&_0x53b474['discard']();}else{const _0x61c87a=_0x53b474[_0x3d5e('0x97')]();if(_0x61c87a[_0x3d5e('0x51')](_0x30c443,!0x0))return _0x53b474;if(!Ot(_0x53b474,_0x73f3e0)){_0x30c443['containsRange'](_0x61c87a)?_0x53b474[_0x3d5e('0xa4')]():_0x61c87a['containsPosition'](_0x2faf94)?_0x2faf94=_0x61c87a['end']:_0x61c87a[_0x3d5e('0xfc')](_0x193cb4)&&(_0x193cb4=_0x61c87a['start']);continue;}_0x2faf94=_0x2faf94[_0x3d5e('0xb1')](_0x61c87a['start'])?_0x2faf94:_0x61c87a['start'],_0x193cb4=_0x193cb4[_0x3d5e('0xe5')](_0x61c87a[_0x3d5e('0x44')])?_0x193cb4:_0x61c87a[_0x3d5e('0x44')],_0x73f3e0=Object[_0x3d5e('0x49')]({},_0x53b474[_0x3d5e('0xd3')]),_0x14b69a?_0x61c87a['start'][_0x3d5e('0xb1')](_0x14b69a[_0x3d5e('0x97')]()[_0x3d5e('0x9d')])?(_0x14b69a['removeMarkers'](),_0x14b69a=_0x53b474):_0x53b474[_0x3d5e('0xa4')]():_0x14b69a=_0x53b474;}}}if(_0x14b69a)return this[_0x3d5e('0xce')](_0x14b69a,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2faf94,_0x193cb4)),_0x14b69a;{const _0x32932e=_0x59e8c4(),_0x22120d=this[_0x3d5e('0x11c')]['createRange'](_0x2faf94,_0x193cb4),_0x5e4d7e=_0x36c22b['id'],_0x2ebce5=_0x400294?_0x3d5e('0x8b')+_0x400294:_0x3d5e('0x33'),_0x111530=this[_0x3d5e('0x10a')]({'id':_0x32932e,'type':_0x2ebce5,'createdAt':new Date(),'authorId':_0x5e4d7e,'attributes':_0x73f3e0});return this[_0x3d5e('0x71')](_0x2ebce5,_0x32932e,_0x5e4d7e,_0x22120d),_0x111530;}}[_0x3d5e('0xff')](_0x162270,_0x2a98f3=_0x3d5e('0x7e'),_0x31ac67={}){const _0x4a225d=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xca'))['me'],_0x24b8c5=_0x162270[_0x3d5e('0x95')](_0x3c1975=>new _0x43231c(_0x3c1975[_0x3d5e('0x9d')],_0x3c1975[_0x3d5e('0x44')])),_0x14f423=new Set();for(const {suggestion:_0x3d3067,meta:_0x32728f}of this[_0x3d5e('0x2c')](_0x24b8c5,_0x3d5e('0xba')))_0x32728f[_0x3d5e('0x9')]&&!_0x32728f['isNextTo']&&_0x14f423[_0x3d5e('0xea')](_0x3d3067);for(const _0x1c3a23 of _0x14f423)if(_0x1c3a23[_0x3d5e('0xb7')]){const _0x2e23a5=_0x1c3a23['getRanges']();(!_0x1c3a23[_0x3d5e('0xd3')]||!_0x1c3a23[_0x3d5e('0xd3')][_0x3d5e('0x109')])&&(_0x2e23a5[_0x3d5e('0xd2')](_0x3e75c1=>_0x24b8c5['some'](_0x27bfff=>_0x27bfff[_0x3d5e('0x51')](_0x3e75c1,!0x0)))&&_0x1c3a23['discard']());if(_0x24b8c5['every'](_0x25331d=>_0x2e23a5['some'](_0x1fd5c3=>_0x1fd5c3[_0x3d5e('0x51')](_0x25331d,!0x0)))){const _0x4dff72=this[_0x3d5e('0x82')][_0x3d5e('0xb')]('deletion',_0x2a98f3,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x4dff72(_0x162270,null,_0x31ac67)),null;}}else{const _0x39dde6=_0x1c3a23[_0x3d5e('0x97')]();_0x24b8c5['some'](_0x516fba=>_0x516fba['containsRange'](_0x39dde6,!0x0))&&_0x1c3a23[_0x3d5e('0xc5')]();if(_0x24b8c5[_0x3d5e('0xd2')](_0x40a18d=>_0x39dde6[_0x3d5e('0x51')](_0x40a18d,!0x0))){const _0x1c71ab=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x33'),_0x2a98f3,_0x3d5e('0x3c'));return this[_0x3d5e('0x8a')](()=>_0x1c71ab(_0x24b8c5,null,_0x31ac67)),null;}}const _0xcd8bfe=this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x3d5e('0x33'),_0x2a98f3,_0x3d5e('0x46'));let _0x42169b=null;for(const _0x5deb02 of this['getSuggestions']())if(_0x5deb02[_0x3d5e('0xb9')]['id']==_0x4a225d['id']&&_0x5deb02[_0x3d5e('0x15')]&&'deletion'==_0x5deb02[_0x3d5e('0x83')]&&_0x5deb02[_0x3d5e('0x7c')]==_0x2a98f3&&Ot(_0x5deb02,_0x31ac67)&&(_0xcd8bfe(_0x5deb02['getRanges'](),_0x24b8c5)||_0xcd8bfe(_0x24b8c5,_0x5deb02['getRanges']()))){if(_0x42169b){if(_0x5deb02['commentThread']&&_0x5deb02[_0x3d5e('0x9c')][_0x3d5e('0xa8')])continue;for(const _0x38aeb2 of _0x5deb02['getRanges']())_0x42169b['isIntersectingWithRange'](_0x38aeb2)||_0x42169b[_0x3d5e('0xe7')](_0x38aeb2);_0x5deb02[_0x3d5e('0xa4')]();}else{_0x42169b=_0x5deb02;for(const _0x2518b3 of _0x24b8c5)_0x5deb02[_0x3d5e('0x130')](_0x2518b3)||_0x5deb02[_0x3d5e('0xe7')](_0x2518b3);}}if(_0x42169b)return _0x42169b;_0x14f423['clear']();for(const {suggestion:_0x1a5e12,meta:_0x2fe9f9}of this[_0x3d5e('0x2c')](_0x24b8c5,'deletion'))_0x2fe9f9[_0x3d5e('0x9')]&&(this[_0x3d5e('0x10b')]||!_0x2fe9f9[_0x3d5e('0x3a')]&&!_0x2fe9f9[_0x3d5e('0xe3')])&&Ot(_0x1a5e12,_0x31ac67)&&_0x14f423[_0x3d5e('0xea')](_0x1a5e12);for(const _0x55cbe7 of _0x14f423){const _0x435d7a=_0x55cbe7[_0x3d5e('0x119')]();if(!_0x31ac67||!_0x31ac67[_0x3d5e('0x109')]){if(_0x24b8c5[_0x3d5e('0xd2')](_0x2b0560=>_0x435d7a[_0x3d5e('0xf3')](_0x18c54c=>_0x18c54c[_0x3d5e('0x51')](_0x2b0560,!0x0))))return _0x55cbe7;}(!_0x55cbe7[_0x3d5e('0xd3')]||!_0x55cbe7[_0x3d5e('0xd3')][_0x3d5e('0x109')])&&(_0x435d7a[_0x3d5e('0xd2')](_0x48fab2=>_0x24b8c5['some'](_0x839720=>_0x839720[_0x3d5e('0x51')](_0x48fab2,!0x0)))&&_0x55cbe7['discard']());}const _0x3b12db=_0x59e8c4(),_0x5182e5=_0x4a225d['id'],_0x81a373=_0x3d5e('0x8b')+_0x2a98f3,_0x2ec41b=this[_0x3d5e('0x10a')]({'id':_0x3b12db,'type':_0x81a373,'createdAt':new Date(),'authorId':_0x5182e5,'attributes':_0x31ac67});for(const _0x1fb006 of _0x24b8c5)_0x1fb006['detach'](),_0x1fb006[_0x3d5e('0x32')]||_0x3d5e('0x6b')==_0x1fb006[_0x3d5e('0x78')]['rootName']||this['_addSuggestionMarker'](_0x81a373,_0x3b12db,_0x5182e5,_0x1fb006,_0x439cc9['getMultiRangeId']());return _0x2ec41b;}[_0x3d5e('0xce')](_0x962874,_0x4bf21b){const _0x9aaeb=_0x962874[_0x3d5e('0x55')]();this[_0x3d5e('0x11c')][_0x3d5e('0x100')](_0x655071=>{_0x655071[_0x3d5e('0x62')](_0x9aaeb,{'range':_0x4bf21b});});}[_0x3d5e('0x39')](_0x250931){const _0x30a9f2=_0x250931['id'],_0x4957ff=this[_0x3d5e('0xd9')]['config']['get'](_0x3d5e('0xa'));this[_0x3d5e('0x4c')][_0x3d5e('0x25')](_0x30a9f2)||this['_commentsRepository'][_0x3d5e('0xc4')]({'channelId':_0x4957ff,'threadId':_0x30a9f2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd76dc1=this[_0x3d5e('0x4c')]['getCommentThread'](_0x30a9f2);_0xd76dc1[_0x3d5e('0x9b')](_0x3d5e('0x59')),_0xd76dc1[_0x3d5e('0x59')]=!0x1,_0x250931['commentThread']=_0xd76dc1;}['_checkSuggestionCorrectness'](_0x8db817,_0x2e4500,_0xe73518,_0x271407){if(_0x8db817[_0x3d5e('0x83')]!=_0x2e4500||_0x8db817['subType']!=_0xe73518||_0x8db817[_0x3d5e('0x21')]['id']!=_0x271407)throw this[_0x3d5e('0xd9')][_0x3d5e('0x0')]('track-changes-suggestion-data-mismatch'),new _0x407a23('track-changes-suggestion-data-mismatch',this);}[_0x3d5e('0x11b')](_0x3f96c3,_0xfa99f9){const _0x39f9ac=_0x3f96c3[_0x3d5e('0x97')]();if(_0xfa99f9[_0x3d5e('0x3d')](_0x39f9ac))_0x3f96c3[_0x3d5e('0xa4')]();else{if(_0x39f9ac[_0x3d5e('0x51')](_0xfa99f9)){const _0x46925b=this[_0x3d5e('0x11c')]['createPositionAt'](_0xfa99f9['start'][_0x3d5e('0x7')],_0x3d5e('0x44'));this[_0x3d5e('0xce')](_0x3f96c3,this['_model'][_0x3d5e('0xee')](_0x39f9ac['start'],_0x46925b));const _0x477bb9=_0x59e8c4(),_0x2e419e=_0x3f96c3[_0x3d5e('0x21')]['id'],_0x335b90=_0x3f96c3['type']+':'+_0x3f96c3[_0x3d5e('0x7c')];this[_0x3d5e('0x10a')]({'id':_0x477bb9,'type':_0x335b90,'createdAt':new Date(),'authorId':_0x2e419e,'data':_0x3f96c3[_0x3d5e('0x135')],'attributes':_0x3f96c3['attributes']});const _0x3ec040=this[_0x3d5e('0x11c')][_0x3d5e('0x19')](_0xfa99f9[_0x3d5e('0x44')][_0x3d5e('0x10')],_0x3d5e('0xbb')),_0x1a4db6=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x3ec040,_0x39f9ac[_0x3d5e('0x44')]);this[_0x3d5e('0x71')](_0x335b90,_0x477bb9,_0x2e419e,_0x1a4db6);}else{if(_0x39f9ac['containsPosition'](_0xfa99f9['start'])){const _0x46e894=this[_0x3d5e('0x11c')]['createPositionAt'](_0xfa99f9[_0x3d5e('0x9d')][_0x3d5e('0x7')],_0x3d5e('0x44'));this[_0x3d5e('0xce')](_0x3f96c3,this['_model']['createRange'](_0x39f9ac[_0x3d5e('0x9d')],_0x46e894));}else{const _0x3e6983=this[_0x3d5e('0x11c')][_0x3d5e('0x19')](_0xfa99f9[_0x3d5e('0x44')][_0x3d5e('0x10')],_0x3d5e('0xbb'));this[_0x3d5e('0xce')](_0x3f96c3,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x3e6983,_0x39f9ac['end']));}}}}[_0x3d5e('0xaf')](_0xd33596){for(const {suggestion:_0x2cf082,meta:_0x48e5bb}of this['_findSuggestions'](_0xd33596,'insertion')){if(!_0x48e5bb[_0x3d5e('0x9')])continue;const _0x50ba9b=_0x2cf082[_0x3d5e('0x119')]();for(const _0xdeb9db of _0x50ba9b)if(!_0xd33596[_0x3d5e('0x2')](_0xdeb9db)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5c660d){const _0x44c5b3=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')]['get'](_0x3d5e('0xca'))[_0x3d5e('0x10d')](_0x5c660d);if(!_0x44c5b3)throw new _0x407a23(_0x3d5e('0x89'),this);return _0x44c5b3;}[_0x3d5e('0x11d')](_0x7d11d5){const _0x448904=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')]['get'](_0x3d5e('0xca')),_0x5e4921=_0x544d40(_0x3d5e('0x28')+_0x7d11d5),_0xb44b2d=_0x448904['getUser'](_0x5e4921);return _0xb44b2d||_0x448904[_0x3d5e('0x2e')]({'id':_0x5e4921,'name':_0x7d11d5});}['_createSuggestion'](_0x350afc,_0x1ae0e4,_0x477b12,_0xfad97a,_0x4a8ba7){const _0x70059a=this['_getAuthorFromId'](_0xfad97a),_0x5ec7ba=this[_0x3d5e('0x82')][_0x3d5e('0x88')](_0x350afc,_0x1ae0e4,_0x477b12,_0x70059a,_0x4a8ba7,_0x3ba3e1=>this[_0x3d5e('0xbf')](_0x477b12,{'attributes':_0x3ba3e1}));return this[_0x3d5e('0xa6')](_0x5ec7ba,'accept',()=>{this[_0x3d5e('0xbf')](_0x477b12,{'state':'accepted'});},{'priority':_0x3d5e('0x115')}),this[_0x3d5e('0xa6')](_0x5ec7ba,_0x3d5e('0xc5'),()=>{this['_updateSuggestionData'](_0x477b12,{'state':_0x3d5e('0x12a')});},{'priority':'high'}),this['_suggestions'][_0x3d5e('0xdb')](_0x477b12,_0x5ec7ba),this[_0x3d5e('0xfa')][_0x3d5e('0xdb')](_0x5ec7ba,_0x3d5e('0x5a')),_0x5ec7ba;}[_0x3d5e('0xa5')](_0x5c7fa0){const _0x258b46=_0x5c7fa0[_0x3d5e('0x4')](':');return{'group':_0x258b46[0x0],'type':_0x258b46[0x1],'subType':_0x258b46[_0x3d5e('0xa8')]>=0x5?_0x258b46[0x2]:null,'id':_0x258b46[_0x3d5e('0xa8')]<0x5?_0x258b46[0x2]:_0x258b46[0x3],'authorId':_0x258b46[_0x3d5e('0xa8')]<0x5?_0x258b46[0x3]:_0x258b46[0x4],'markerCount':0x6==_0x258b46[_0x3d5e('0xa8')]?_0x258b46[0x5]:null};}[_0x3d5e('0x134')](_0x2c3216,_0x24bf59,_0x47d3b7){const _0x104ac8=_0x2c3216[_0x3d5e('0x97')](),_0x126419=_0x104ac8[_0x3d5e('0x9d')],_0x7caca=_0x104ac8[_0x3d5e('0x44')];this[_0x3d5e('0xce')](_0x2c3216,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x126419,_0x24bf59));const _0x16fc59=_0x59e8c4(),_0x40ad79=_0x2c3216['creator']['id'],_0x1c5da3=_0x2c3216[_0x3d5e('0x83')]+(_0x2c3216['subType']?':'+_0x2c3216[_0x3d5e('0x7c')]:'');this[_0x3d5e('0x10a')]({'id':_0x16fc59,'type':_0x1c5da3,'createdAt':new Date(),'authorId':_0x40ad79,'originalSuggestionId':_0x2c3216['id'],'attributes':_0x2c3216['attributes'],'data':_0x2c3216['data']}),'formatBlock'==_0x2c3216[_0x3d5e('0x83')]&&(_0x47d3b7=this[_0x3d5e('0x11c')][_0x3d5e('0x73')](_0x47d3b7['parent'])),this[_0x3d5e('0x71')](_0x1c5da3,_0x16fc59,_0x40ad79,this['_model'][_0x3d5e('0xee')](_0x47d3b7,_0x7caca));}[_0x3d5e('0x2c')](_0x5e7727,_0x50609a=null){const _0x70a990=[],_0x525a05=this[_0x3d5e('0xd9')]['plugins'][_0x3d5e('0x105')]('Users')['me'];Array[_0x3d5e('0x1b')](_0x5e7727)||(_0x5e7727=[_0x5e7727]);for(const _0x369949 of this[_0x3d5e('0xbd')]()){if(!_0x369949[_0x3d5e('0x15')])continue;if(_0x50609a&&_0x369949[_0x3d5e('0x83')]!=_0x50609a)continue;let _0x51f72f=!0x1;for(const _0x23c7a9 of _0x369949[_0x3d5e('0x119')]()){for(const _0x29ce7a of _0x5e7727){const _0x240a59=_0x29ce7a[_0x3d5e('0x9d')]['isEqual'](_0x23c7a9[_0x3d5e('0x44')])||_0x29ce7a[_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x23c7a9['start']);if(_0x240a59||_0x29ce7a['getIntersection'](_0x23c7a9)){const _0x161d52=_0x29ce7a[_0x3d5e('0x51')](_0x23c7a9)&&_t(this[_0x3d5e('0x11c')][_0x3d5e('0x42')],_0x23c7a9[_0x3d5e('0x9d')],_0x29ce7a),_0x597353=_0x23c7a9['containsRange'](_0x29ce7a)&&_t(this['_model'][_0x3d5e('0x42')],_0x29ce7a[_0x3d5e('0x9d')],_0x23c7a9);_0x70a990[_0x3d5e('0xc1')]({'suggestion':_0x369949,'meta':{'isOwn':_0x525a05==_0x369949[_0x3d5e('0xb9')],'isNextTo':_0x240a59,'isInsideObject':_0x161d52,'containsRangeInObject':_0x597353}}),_0x51f72f=!0x0;break;}}if(_0x51f72f)break;}}return _0x70a990;}[_0x3d5e('0x71')](_0x5a378c,_0x86fedb,_0x23caf1,_0x3d8158,_0x518bf3){this[_0x3d5e('0x11c')]['change'](_0x8a8997=>{let _0x189398=_0x3d5e('0x27')+_0x5a378c+':'+_0x86fedb+':'+_0x23caf1;_0x518bf3&&(_0x189398=_0x189398+':'+_0x518bf3),_0x8a8997[_0x3d5e('0x92')](_0x189398,{'range':_0x3d8158,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x57210e){const _0x100b0a=_0x57210e[_0x3d5e('0x50')],_0x5f1ef0=_0x57210e[_0x3d5e('0xfb')];_0x57210e['previous']=null,null!=_0x100b0a&&(_0x100b0a[_0x3d5e('0xfb')]=null),_0x57210e[_0x3d5e('0xfb')]=null,null!=_0x5f1ef0&&(_0x5f1ef0[_0x3d5e('0x50')]=null),_0x3d5e('0x17')==this[_0x3d5e('0xfa')][_0x3d5e('0x105')](_0x57210e)&&(this[_0x3d5e('0xfa')][_0x3d5e('0xdb')](_0x57210e,_0x3d5e('0xd4')),this[_0x3d5e('0x132')](_0x3d5e('0x8e'),_0x57210e,_0x100b0a,_0x5f1ef0));}[_0x3d5e('0x10a')](_0xef393c){const _0x35cf49=_0xef393c['id'],_0x10bdfe=this[_0x3d5e('0xe1')](_0xef393c);if(this[_0x3d5e('0x6d')]&&this[_0x3d5e('0x6d')][_0x3d5e('0xef')]){const _0x3ee44d=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xcb')),_0x5ba469=_0x10bdfe['hasComments'],_0x3349a0=_0x10bdfe[_0x3d5e('0x7c')]?_0x10bdfe['type']+':'+_0x10bdfe['subType']:_0x10bdfe[_0x3d5e('0x83')],_0x15d396=this[_0x3d5e('0xd9')]['locale'],_0x244a18=_0x3ee44d[_0x3d5e('0xea')](_0x47b482(_0x15d396,'PENDING_ACTION_SUGGESTION')),_0x567614={'id':_0x35cf49,'type':_0x3349a0,'hasComments':_0x5ba469,'data':_0xef393c[_0x3d5e('0x135')]||null,'originalSuggestionId':_0xef393c[_0x3d5e('0x40')]||null,'attributes':_0x10bdfe[_0x3d5e('0xd3')]};this['_adapter'][_0x3d5e('0xef')](_0x567614)['then'](_0x38b134=>{_0x10bdfe['_saved']=!0x0,_0x3ee44d[_0x3d5e('0xdd')](_0x244a18),_0x38b134&&_0x38b134[_0x3d5e('0x108')]&&(this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x35cf49)['createdAt']=_0x38b134['createdAt']);})[_0x3d5e('0xd1')](_0x22c21d=>{throw _0x54b295(_0x3d5e('0x118')),this[_0x3d5e('0xd9')][_0x3d5e('0x94')][_0x3d5e('0x12c')]({'isUndoable':!0x1},()=>{_0x10bdfe[_0x3d5e('0xc5')]();}),_0x10bdfe[_0x3d5e('0x7a')](),this[_0x3d5e('0xe0')]['delete'](_0x10bdfe['id']),this[_0x3d5e('0xfa')]['delete'](_0x10bdfe),_0x22c21d;});}return _0x10bdfe;}[_0x3d5e('0xbf')](_0x19250c,_0x55fd30){const _0x3a513b=this[_0x3d5e('0xd9')][_0x3d5e('0xcf')][_0x3d5e('0x105')](_0x3d5e('0xcb')),_0x3bf1c9=this[_0x3d5e('0x5d')](_0x19250c);if(this['_adapter']&&this[_0x3d5e('0x6d')][_0x3d5e('0x4a')]){if(_0x3bf1c9[_0x3d5e('0x13b')]){const _0x4143e9=_0x3a513b[_0x3d5e('0xea')](_0x47b482(this[_0x3d5e('0xd9')][_0x3d5e('0x106')],_0x3d5e('0x60')));this['_adapter'][_0x3d5e('0x4a')](_0x19250c,_0x55fd30)[_0x3d5e('0xec')](()=>{_0x3a513b[_0x3d5e('0xdd')](_0x4143e9);});}else _0x3bf1c9['on']('change:_saved',()=>{this[_0x3d5e('0xbf')](_0x19250c,_0x55fd30);});}}[_0x3d5e('0xc7')](_0x1126d1){if(!this['_adapter']||!this[_0x3d5e('0x6d')]['getSuggestion'])throw new _0x407a23('track-changes-adapter-missing-getsuggestion',this);return this[_0x3d5e('0x6d')]['getSuggestion'](_0x1126d1);}[_0x3d5e('0x1d')](_0x2d7ce8){const {id:_0x5d85ff,type:_0x2f0e47,subType:_0x33c1fd,authorId:_0x2548c6}=this[_0x3d5e('0xa5')](_0x2d7ce8),_0x43e745=this[_0x3d5e('0xe0')][_0x3d5e('0x105')](_0x5d85ff)||this['_createSuggestion'](_0x2f0e47,_0x33c1fd,_0x5d85ff,_0x2548c6,{});switch(this[_0x3d5e('0xc6')](_0x43e745,_0x2f0e47,_0x33c1fd,_0x2548c6),this[_0x3d5e('0xfa')][_0x3d5e('0x105')](_0x43e745)){case _0x3d5e('0x5a'):this['_getSuggestionData'](_0x5d85ff)[_0x3d5e('0xec')](_0x5c1ab4=>{let _0x3261ed=Promise[_0x3d5e('0x13e')]();_0x5c1ab4[_0x3d5e('0x113')]&&(_0x3261ed=this[_0x3d5e('0x4c')][_0x3d5e('0x52')]({'channelId':this[_0x3d5e('0xd9')][_0x3d5e('0x121')]['get'](_0x3d5e('0xa')),'threadId':_0x5d85ff})),_0x3261ed[_0x3d5e('0xec')](()=>{this['addSuggestionData'](_0x5c1ab4)[_0x3d5e('0x13b')]=!0x0;});}),this['_suggestionState'][_0x3d5e('0xdb')](_0x43e745,_0x3d5e('0x7f'));break;case _0x3d5e('0xd4'):this[_0x3d5e('0xbf')](_0x5d85ff,{'state':_0x3d5e('0x91')});case _0x3d5e('0xa0'):this['_suggestionState'][_0x3d5e('0xdb')](_0x43e745,_0x3d5e('0x17')),this[_0x3d5e('0x132')](_0x3d5e('0x63'),_0x43e745);break;case _0x3d5e('0x17'):this[_0x3d5e('0x132')](_0x3d5e('0xf6'),_0x43e745);}return _0x43e745[_0x3d5e('0x76')](_0x2d7ce8),_0x43e745;}['_refreshSuggestionsChain'](_0x18e067){const _0x3df9d3=Array[_0x3d5e('0x141')](_0x18e067)['filter'](_0x597b2f=>!_0x597b2f[_0x3d5e('0xb7')]),_0x3e1186=this['getSuggestions']({'skipNotAttached':!0x0})[_0x3d5e('0x24')](_0x390d93=>!_0x390d93[_0x3d5e('0xb7')]),_0x3ad3e3=_0x3e1186[_0x3d5e('0x24')](_0x23d1a8=>!_0x18e067[_0x3d5e('0x8')](_0x23d1a8)),_0x507b42=new Map(_0x3e1186['map'](_0x199159=>[_0x199159,this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x199159[_0x3d5e('0x83')],_0x199159[_0x3d5e('0x7c')],_0x3d5e('0xc2'))])),_0xe10cf2=new Map(_0x3e1186[_0x3d5e('0x95')](_0x18bfc0=>[_0x18bfc0,_0x18bfc0['getFirstRange']()])),_0x551752=new Set(),_0x40b25a=new Set();for(let _0xe3d68a=0x0;_0xe3d68a<_0x3df9d3[_0x3d5e('0xa8')];_0xe3d68a++)_0x4ad369(_0x3df9d3[_0xe3d68a],_0x3df9d3,_0xe3d68a+0x1);for(let _0x6d2591=0x0;_0x6d2591<_0x3df9d3[_0x3d5e('0xa8')];_0x6d2591++)_0x4ad369(_0x3df9d3[_0x6d2591],_0x3ad3e3,0x0);for(let _0x397bda=0x0;_0x397bda<_0x3df9d3[_0x3d5e('0xa8')];_0x397bda++){const _0x19ef01=_0x3df9d3[_0x397bda];!_0x40b25a['has'](_0x19ef01)&&_0x19ef01['previous']&&(_0x19ef01[_0x3d5e('0x50')][_0x3d5e('0xfb')]===_0x19ef01&&(_0x19ef01[_0x3d5e('0x50')][_0x3d5e('0xfb')]=null),_0x19ef01[_0x3d5e('0x50')]=null),!_0x551752['has'](_0x19ef01)&&_0x19ef01[_0x3d5e('0xfb')]&&(_0x19ef01[_0x3d5e('0xfb')]['previous']===_0x19ef01&&(_0x19ef01[_0x3d5e('0xfb')][_0x3d5e('0x50')]=null),_0x19ef01[_0x3d5e('0xfb')]=null);}function _0x4ad369(_0x307ef0,_0x1bc569,_0x4a03b7){for(let _0xd9cfca=_0x4a03b7;_0xd9cfca<_0x1bc569[_0x3d5e('0xa8')];_0xd9cfca++){const _0x4b29cb=_0x3051c3(_0x307ef0,_0x1bc569[_0xd9cfca]);_0x4b29cb&&(_0x4b29cb[0x0][_0x3d5e('0xfb')]=_0x4b29cb[0x1],_0x4b29cb[0x1][_0x3d5e('0x50')]=_0x4b29cb[0x0],_0x551752[_0x3d5e('0xea')](_0x4b29cb[0x0]),_0x40b25a[_0x3d5e('0xea')](_0x4b29cb[0x1]));}}function _0x3051c3(_0x39c6db,_0x2946fa){if(_0x39c6db['author']['id']!==_0x2946fa[_0x3d5e('0xb9')]['id'])return null;const _0xdbb27c=_0x507b42[_0x3d5e('0x105')](_0x39c6db)(_0x39c6db,_0x2946fa,_0xe10cf2[_0x3d5e('0x105')](_0x39c6db),_0xe10cf2['get'](_0x2946fa));if(!_0xdbb27c)return null;return _0x507b42['get'](_0x2946fa)(_0x39c6db,_0x2946fa,_0xe10cf2[_0x3d5e('0x105')](_0x39c6db),_0xe10cf2['get'](_0x2946fa))?_0xdbb27c[0x1]['commentThread']&&_0xdbb27c[0x1]['commentThread'][_0x3d5e('0xa8')]?null:_0xdbb27c:null;}}[_0x3d5e('0x84')](_0x44f826){const _0xde96c6=Array[_0x3d5e('0x141')](_0x44f826),_0xaae951=this[_0x3d5e('0xbd')]({'skipNotAttached':!0x0}),_0x1e33cf=_0xaae951[_0x3d5e('0x24')](_0x54deb4=>!_0x44f826['has'](_0x54deb4)),_0x1c16e3=new Map(_0xde96c6[_0x3d5e('0x95')](_0x559f0f=>[_0x559f0f,this[_0x3d5e('0x82')][_0x3d5e('0xb')](_0x559f0f[_0x3d5e('0x83')],_0x559f0f[_0x3d5e('0x7c')],'join')])),_0x2d80de=new Map(_0xaae951[_0x3d5e('0x95')](_0x5cfd36=>[_0x5cfd36,_0x5cfd36['getRanges']()]));for(let _0x5470ab=0x0;_0x5470ab<_0xde96c6[_0x3d5e('0xa8')];_0x5470ab++){if(_0x1d6d8a(this,_0xde96c6[_0x5470ab],_0xde96c6,_0x5470ab+0x1))return!0x0;}for(let _0x77db64=0x0;_0x77db64<_0xde96c6[_0x3d5e('0xa8')];_0x77db64++){if(_0x1d6d8a(this,_0xde96c6[_0x77db64],_0x1e33cf,0x0))return!0x0;}return!0x1;function _0x1d6d8a(_0x4cb924,_0x215e25,_0x25919a,_0x5b0b04){for(let _0x4119ab=_0x5b0b04;_0x4119ab<_0x25919a[_0x3d5e('0xa8')];_0x4119ab++){const _0x215cbc=_0x25919a[_0x4119ab];if(_0x215cbc[_0x3d5e('0x83')]!==_0x215e25[_0x3d5e('0x83')]||_0x215cbc[_0x3d5e('0xb9')]['id']!==_0x215e25['author']['id']||_0x215cbc[_0x3d5e('0x7c')]!==_0x215e25['subType'])continue;if(!Ut(_0x215e25,_0x215cbc))continue;const _0x4fd9b2=_0x1c16e3[_0x3d5e('0x105')](_0x215e25),_0x14d1b8=_0x2d80de[_0x3d5e('0x105')](_0x215e25),_0x80a485=_0x2d80de[_0x3d5e('0x105')](_0x215cbc),_0x3ac3f2=_0x215e25[_0x3d5e('0x9c')]&&_0x215e25['commentThread'][_0x3d5e('0xa8')],_0x33f318=_0x215cbc['commentThread']&&_0x215cbc[_0x3d5e('0x9c')]['length'];if(!_0x3ac3f2&&_0x4fd9b2(_0x80a485,_0x14d1b8))return _0x4cb924[_0x3d5e('0x4e')](_0x215cbc,_0x215e25),_0x2d80de[_0x3d5e('0xf5')](_0x215e25),!0x0;if(!_0x33f318&&_0x4fd9b2(_0x14d1b8,_0x80a485))return _0x4cb924[_0x3d5e('0x4e')](_0x215e25,_0x215cbc),_0x2d80de['delete'](_0x215cbc),!0x0;}return!0x1;}}[_0x3d5e('0x4e')](_0x58a50a,_0x401b89){if(_0x58a50a[_0x3d5e('0xb7')])for(const _0x11630b of _0x401b89['getRanges']())_0x58a50a['addRange'](_0x11630b);else{const _0x37711c=_0x401b89[_0x3d5e('0x97')]()['end'];this['_setSuggestionRange'](_0x58a50a,this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x58a50a[_0x3d5e('0x97')]()[_0x3d5e('0x9d')],_0x37711c));}_0x401b89[_0x3d5e('0xa4')]();}}class Bt{constructor(_0x373ea7){this[_0x3d5e('0x7b')]=_0x373ea7,this[_0x3d5e('0x11c')]=_0x373ea7['model'],this[_0x3d5e('0xeb')]=new Map(),this[_0x3d5e('0xa2')]=new Map(),this[_0x3d5e('0x127')]();}[_0x3d5e('0x88')](_0x1980cc,_0x31a713,_0xe5143,_0xbaff65,_0x5d4f77,_0xcdc590){return new _0x439cc9(this[_0x3d5e('0x11c')],{'type':_0x1980cc,'subType':_0x31a713,'id':_0xe5143,'author':_0xbaff65,'creator':_0xbaff65,'attributes':_0x5d4f77,'onAttributesChange':_0xcdc590,'onAccept':(..._0x3e7c3a)=>this[_0x3d5e('0xb')](_0x1980cc,_0x31a713,_0x3d5e('0x3c'))(..._0x3e7c3a),'onDiscard':(..._0x509e56)=>this['getSuggestionCallback'](_0x1980cc,_0x31a713,'discard')(..._0x509e56)});}[_0x3d5e('0x2f')](_0x44eafe,_0x29fd92,_0x5bacf1,_0x2808cf){const _0x40110f=_0x44eafe+':'+_0x29fd92+':'+_0x5bacf1;this[_0x3d5e('0xeb')][_0x3d5e('0xdb')](_0x40110f,_0x2808cf);}[_0x3d5e('0xb')](_0x507f13,_0x323b20,_0x1701b9){const _0x243b63=_0x507f13+':'+_0x323b20+':'+_0x1701b9;return this['_customCallbacks'][_0x3d5e('0x105')](_0x243b63)||this[_0x3d5e('0xa2')][_0x3d5e('0x105')](_0x507f13+':'+_0x1701b9);}['_registerDefaultCallbacks'](){const _0x32e84f=()=>!0x1,_0x476090=_0x21a754=>{_0x21a754['sort']((_0x367f56,_0x234b36)=>_0x367f56[_0x3d5e('0x9d')][_0x3d5e('0xb1')](_0x234b36[_0x3d5e('0x9d')])?0x1:-0x1),this[_0x3d5e('0x11c')]['change'](_0x190af9=>{for(const _0x1afe32 of _0x21a754){let _0x2ba759;_0x2ba759=_0x1afe32[_0x3d5e('0x44')][_0x3d5e('0x72')]&&_0x1afe32['end'][_0x3d5e('0x10')]==_0x1afe32[_0x3d5e('0x9d')][_0x3d5e('0x74')]?_0x190af9['createSelection'](_0x1afe32[_0x3d5e('0x9d')]['nodeAfter'],'on'):_0x190af9[_0x3d5e('0x20')](_0x1afe32),this['_model'][_0x3d5e('0x4f')](_0x2ba759,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x716374=(_0x52ac8a,_0x174e07)=>{this[_0x3d5e('0x11c')][_0x3d5e('0x100')](_0x19d1df=>{const {commandName:_0x2cf16e,commandParams:_0x120d94=[]}=_0x174e07,_0x21aa56=_0x52ac8a['map'](_0x2eb7ef=>(Mt(_0x2eb7ef)&&(_0x2eb7ef=this[_0x3d5e('0x11c')][_0x3d5e('0xee')](_0x2eb7ef['end'])),_0x2eb7ef))['filter'](_0x18e994=>_0x3d5e('0x6b')!==_0x18e994[_0x3d5e('0x78')][_0x3d5e('0x104')]);if(_0x21aa56[_0x3d5e('0xa8')]<0x1)return;const _0xc6bdf5=Array[_0x3d5e('0x141')](this[_0x3d5e('0x11c')]['document']['selection'][_0x3d5e('0x119')]())[_0x3d5e('0x95')](_0x4d4c24=>_0x43231c[_0x3d5e('0x3e')](_0x4d4c24));_0x19d1df['setSelection'](_0x21aa56);for(const _0x178259 of this[_0x3d5e('0x7b')][_0x3d5e('0x143')][_0x3d5e('0x143')]())_0x178259[_0x3d5e('0xa7')]();_0x120d94[_0x3d5e('0xc1')]({'forceDefaultExecution':!0x0}),this[_0x3d5e('0x7b')]['execute'](_0x2cf16e,..._0x120d94);const _0x25fd9e=_0xc6bdf5[_0x3d5e('0x24')](_0x3fc1ad=>_0x3d5e('0x6b')!=_0x3fc1ad['root']['rootName']);_0x25fd9e[_0x3d5e('0xa8')]>0x0&&_0x19d1df[_0x3d5e('0x3')](_0x25fd9e);for(const _0x5a0551 of _0xc6bdf5)_0x5a0551[_0x3d5e('0xd0')]();});},_0x339749=(_0xe4c0db,_0x3efed9)=>0x1==_0xe4c0db[_0x3d5e('0xa8')]&&0x1==_0x3efed9[_0x3d5e('0xa8')]&&_0xe4c0db[0x0][_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x3efed9[0x0]['start']),_0x220498=(_0x269e75,_0x502e5b,_0x1c0903,_0x47b777)=>xt(_0x269e75,_0x502e5b,_0x1c0903,_0x47b777,this['_model'])?[_0x269e75,_0x502e5b]:xt(_0x502e5b,_0x269e75,_0x47b777,_0x1c0903,this[_0x3d5e('0x11c')])?[_0x502e5b,_0x269e75]:null;this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x6'),_0x32e84f),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x102'),_0x476090),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('insertion:join',_0x339749),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('insertion:chain',_0x220498),this[_0x3d5e('0xa2')]['set'](_0x3d5e('0x93'),_0x476090),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x45'),_0x32e84f),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('deletion:join',_0x339749),this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x10f'),_0x220498),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x1f'),_0x716374),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')]('formatInline:discard',_0x32e84f),this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x98'),_0x339749),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0xe9'),_0x32e84f),this[_0x3d5e('0xa2')]['set'](_0x3d5e('0x3b'),_0x716374),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x86'),_0x32e84f),this['_defaultCallbacks'][_0x3d5e('0xdb')](_0x3d5e('0x5c'),_0x339749),this[_0x3d5e('0xa2')][_0x3d5e('0xdb')](_0x3d5e('0x54'),_0x32e84f);}}function _t(_0x3af93b,_0x415dae,_0x1738a8){for(const _0x510c75 of _0x415dae['parent'][_0x3d5e('0xd')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x510c75[_0x3d5e('0x78')]==_0x510c75)return!0x1;if(!_0x1738a8[_0x3d5e('0xa3')](_0x510c75))return!0x1;if(_0x3af93b[_0x3d5e('0x75')](_0x510c75)||_0x3af93b[_0x3d5e('0x12b')](_0x510c75))return!0x0;}return!0x1;}function Mt(_0x27714e){return _0x27714e[_0x3d5e('0x44')][_0x3d5e('0x10')]==_0x27714e[_0x3d5e('0x9d')]['nodeAfter']&&_0x27714e[_0x3d5e('0x44')][_0x3d5e('0x9e')];}function $t(_0x26cdd6,_0x4e6d04,_0x53fdc6,_0x2f1d01){const _0x374c7a=_0x58f6e6=>!_0x58f6e6[_0x3d5e('0xed')]['is']('$textProxy')&&!_0x2f1d01[_0x3d5e('0x75')](_0x58f6e6[_0x3d5e('0xed')]),_0x3587e3=_0x26cdd6[_0x3d5e('0x9d')][_0x3d5e('0x128')](_0x374c7a),_0x48e20e=_0x26cdd6[_0x3d5e('0x44')][_0x3d5e('0x128')](_0x374c7a,{'direction':_0x3d5e('0x69')});return(!_0x26cdd6[_0x3d5e('0x9d')][_0x3d5e('0x3d')](_0x3587e3)||!_0x26cdd6[_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x48e20e))&&(_0x3587e3[_0x3d5e('0xb1')](_0x48e20e)?_0x53fdc6[_0x3d5e('0x62')](_0x4e6d04,{'range':_0x53fdc6[_0x3d5e('0xee')](_0x3587e3,_0x48e20e)}):_0x53fdc6['removeMarker'](_0x4e6d04),!0x0);}function Nt(_0x38e79b){return _0x544d40(_0x38e79b);}function Rt(_0x4855fa){const _0x5e53ba=_0x4855fa['start'][_0x3d5e('0x74')];return _0x5e53ba&&_0x5e53ba['is'](_0x3d5e('0x56'));}function jt(_0x1e151f,_0x14ba7e){const _0x20bde3=_0x14ba7e[_0x3d5e('0x42')]['isObject'](_0x1e151f)||_0x14ba7e[_0x3d5e('0x42')][_0x3d5e('0x107')](_0x1e151f);return _0x14ba7e[_0x3d5e('0xee')](_0x14ba7e[_0x3d5e('0x19')](_0x1e151f,'before'),_0x20bde3?_0x14ba7e[_0x3d5e('0x133')](_0x1e151f):_0x14ba7e[_0x3d5e('0x19')](_0x1e151f,_0x3d5e('0x44')));}function xt(_0x448dff,_0x1c7fc7,_0x2804e6,_0x55590d,_0x55eb4e){if(!Ut(_0x448dff,_0x1c7fc7))return!0x1;if(_0x2804e6[_0x3d5e('0x44')][_0x3d5e('0x3d')](_0x55590d['start']))return!0x0;if(_0x448dff[_0x3d5e('0x83')]!=_0x1c7fc7[_0x3d5e('0x83')])return!0x1;if(!_0x2804e6[_0x3d5e('0x44')][_0x3d5e('0x139')](_0x55590d[_0x3d5e('0x9d')]))return!0x1;const _0x215369=_0x55eb4e[_0x3d5e('0xee')](_0x2804e6[_0x3d5e('0x44')],_0x55590d['start'])['getWalker']();for(const _0x335f2d of _0x215369)if([_0x3d5e('0x138'),_0x3d5e('0x1c')]['includes'](_0x335f2d[_0x3d5e('0x83')])&&_0x55eb4e[_0x3d5e('0x42')]['isLimit'](_0x335f2d[_0x3d5e('0xed')]))return!0x1;return!0x0;}function Ut(_0x3c91bb,_0x372e02){return!(!_0x3c91bb[_0x3d5e('0x38')]||!_0x372e02[_0x3d5e('0x38')])&&_0x170aad(_0x3c91bb['attributes'],_0x372e02[_0x3d5e('0xd3')]);}function Ot(_0x3dfceb,_0x5c5093){const _0x2ad104=Et(_0x3dfceb[_0x3d5e('0xd3')]),_0x288906=Et(_0x5c5093);if(!_0x3dfceb['_isDataLoaded'])return!0x1;for(const _0x893135 of Object[_0x3d5e('0xe2')](_0x288906))if(!_0x170aad(_0x2ad104[_0x893135],_0x288906[_0x893135]))return!0x1;return!0x0;}function Et(_0x2ab307){const _0x28113b=Object[_0x3d5e('0x49')]({},_0x2ab307);return delete _0x28113b[_0x3d5e('0x109')],delete _0x28113b[_0x3d5e('0x13d')],_0x28113b;}
|