@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230902.0 → 0.0.0-nightly-20230904.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-20230904.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-20230904.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230904.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 _0x311e=['createPositionBefore','move','widget','rethrowUnexpectedError','addMarker:suggestion:formatBlock','_saved','ck-suggestion-marker','formatBlock:','_setSuggestionRange','assign','locale','add','Users','collaboration.channelId','addRange','return','discard','isAtStart','getAncestors','never','getItems','nodeBefore','parent','name','markDeletion','start','consumable','schema','enableReadOnlyMode','clear','_setSuggestionData','getAllAdjacentSuggestions','track-changes-user-not-found','formatInline:accept','type','isNextTo','_commentsRepository','_getAuthorFromId','_defaultCallbacks','acceptSelectedSuggestions','oldRange','_getExternalAuthor','getMultiRangeId','markMultiRangeInsertion','substr','document','lowest','toViewElement','isEqual','batch','sort','track-changes-adapter-missing-getsuggestion','highest','change:activeMarkers','formatInline:chain','_refreshSuggestionsChain','removed','getAttribute','writer','isBefore','init','createRange','_rangeIsInLocalUserInsertion','updateSuggestion','registerCustomCallback','CommentsRepository','splice','_joinWithAdjacentSuggestions','createRangeIn','filter','change','_trackFormatChanges','createdAt','plugins','@external','group','open','join','stop','_checkSuggestionCorrectness','markerReady','multi','editing','_addThreadToSuggestion','documentSelection','isAfter','formatInline','author','_onDiscard','deleteContent','deletion:','isSelectable','accept','removeMarker:suggestion:formatBlock','keys','_handleNewSuggestionMarker','ck-suggestion-marker-','dataReady','map','insertion:','has','registerPostFixer','buildSuggestion','markerNameToElements','change:data','isArray','_editor','addSuggestion','options','set','trackChangesCommand','deletion','deletion:join','insert','listenTo','execute','consume','getWalker','isObject','createSelection','suggestionLoaded','activeMarkers','track-changes-suggestion-data-mismatch','fromCharCode','getChangedMarkers','containsRangeInObject','containerElement','getIntersection','formatInline:join','conversion','values','unbind','createPositionAfter','range','detach','isUndo','showSuggestionHighlights','discardAllSuggestions','removeMarker','removeMarkers','discardSelectedSuggestions','updateMarker','elementToElement','ready','setAttribute','_joinSuggestions','track-changes-adapter-already-set','suggestion:','_removeSuggestion','notReady','getSuggestionCallback','markerName','suggestion-type','formatBlock:chain','markers','commentThread','_cutOutSuggestionMarker','getShiftedBy','adapter','from','selection','high','markInsertion','position','_adapter','ck-suggestion-marker--active','insertion:chain','end','addClass','size','suggestion','isCollapsed','suggestionChanged','split','isAtEnd','_suggestions','nodeAfter','formatGroupId','next','isRemovable','PENDING_ACTION_SUGGESTION','createPositionAt','setSelection','trackChanges.trackFormatChanges','define','$marker','isDocumentOperation','bindElementToMarker','_breakSuggestionMarker','getUser','low','config','applyOperation','_addSuggestionMarker','get','pluginName','before','acceptSuggestion','_model','reconvertMarker','_getSuggestionData','getRanges','_suggestionState','previous','fromRange','rootName','some','authoredAt','isMultiRange','acceptAllSuggestions','every','addMarkerName','getCommentThread','isInsideObject','stopListening','removeComment','PendingActions','creator','getCustomProperty','_mergeNestedSuggestions','enableCommand','forceDefaultExecution','enqueueChange','markMultiRangeBlockFormat','getLastMatchingPosition','removeClass','rejected','delete','commands','remove','data','length','multipleBlocks','isBlock','setTo','addUser','unbindElementFromMarkerName','_isDataLoaded','elementStart','createElement','_customCallbacks','_enabledCommands','insertion:join','isInContent','skipNestingCheck','containsPosition','item','for','discardSuggestion','mapper','_splitMarkerName','containsRange','catch','addHighlight','_isForcedDefaultExecutionBlock','getFirstMarker','insertContent','_updateSuggestionData','addCommentThread','containsItem','upcast','subType','_findSuggestions','isExternal','hasComments','insertion','newRange','addMarker','markInlineFormat','getSuggestion','then','hasCommentThread','TrackChangesEditing','includes','root','element','isTouching','getNearestSelectionRange','deletion:accept','$graveyard','addComment','editor','markerToHighlight','formatBlock:discard','markerToData','backward','isLimit','deletion:discard','elementEnd','fire','_suggestionFactory','trackChanges','editingDowncast','attributes','hasSuggestion','data-suggestion','formatBlock:join','external:','getRange','getDifference','model','formatBlock','addSuggestionData','push','isIntersectingWithRange','getSuggestions','trackChanges.mergeNestedSuggestions','always','_registerDefaultCallbacks','forward','isOwn','value','dataDowncast','$textProxy','getFirstRange'];(function(_0x4d5881,_0x311e65){const _0x4070c4=function(_0x208a68){while(--_0x208a68){_0x4d5881['push'](_0x4d5881['shift']());}};_0x4070c4(++_0x311e65);}(_0x311e,0x1a9));const _0x4070=function(_0x4d5881,_0x311e65){_0x4d5881=_0x4d5881-0x0;let _0x4070c4=_0x311e[_0x4d5881];return _0x4070c4;};import{Plugin as _0x22862a,PendingActions as _0x5c13f4}from'ckeditor5/src/core';import{LiveRange as _0xa146d2}from'ckeditor5/src/engine';import{CKEditorError as _0xe2c45,uid as _0x2cecee,priorities as _0x85390b,logWarning as _0x2f3731}from'ckeditor5/src/utils';import{toWidget as _0x2bcb74}from'ckeditor5/src/widget';import{Users as _0x43e427,hashObject as _0x211e1a}from'ckeditor5-collaboration/src/collaboration-core';import _0x20086b from'./commands/trackchangescommand';import _0x26ccd9 from'./commands/acceptsuggestioncommand';import _0x46116c from'./commands/discardsuggestioncommand';import _0x4ca370 from'./commands/executeonallsuggestionscommand';import _0x1d2d56 from'./commands/executeonselectedsuggestionscommand';import _0x4062b9 from'./suggestion';import _0x5af0fc from'./suggestiondescriptionfactory';import _0x37e5f3 from'./integrations/alignment';import _0x3da68d from'./integrations/basicstyles';import _0x57df06 from'./integrations/blockquote';import _0x1e4138 from'./integrations/ckbox';import _0x255208 from'./integrations/codeblock';import _0x13f3d7 from'./integrations/comments';import _0x12285a from'./integrations/deletecommand';import _0x4b6d2a from'./integrations/documentlist';import _0x4b940d from'./integrations/entercommand';import _0x369715 from'./integrations/findandreplace';import _0x27d556 from'./integrations/font';import _0x40e2be from'./integrations/formatpainter';import _0x3b44d9 from'./integrations/heading';import _0x22bd19 from'./integrations/highlight';import _0x17bbc8 from'./integrations/horizontalline';import _0x43a687 from'./integrations/htmlembed';import _0x4ee8d9 from'./integrations/image';import _0x71723d from'./integrations/imagereplace';import _0x3fd773 from'./integrations/importword';import _0x5cabe0 from'./integrations/indent';import _0x42309b from'./integrations/inputcommand';import _0x2ade67 from'./integrations/link';import _0x441e74 from'./integrations/list';import _0x358c0e from'./integrations/listproperties';import _0x314561 from'./integrations/mediaembed';import _0x509f34 from'./integrations/mention';import _0x377b23 from'./integrations/pagebreak';import _0x557e37 from'./integrations/paragraph';import _0x2d7f60 from'./integrations/removeformat';import _0x34bde7 from'./integrations/restrictededitingmode';import _0x2db81e from'./integrations/shiftentercommand';import _0x2821aa from'./integrations/standardeditingmode';import _0x3707b4 from'./integrations/style';import _0x500983 from'./integrations/table';import _0xa76141 from'./integrations/tablemergesplit';import _0x348f2c from'./integrations/tableheadings';import _0x4eccb7 from'./integrations/tableclipboard';import _0x268766 from'./integrations/tablecolumnresize';import _0x2c7ccb from'./integrations/template';import _0x40222e from'./integrations/tableofcontents';import _0x15ad92 from'./integrations/title';import _0xc43837 from'./integrations/undo';import{getTranslation as _0xa532f}from'./utils/common-translations';import _0x59ddcb from'./integrations/tablecaption';import _0x1972e4 from'./integrations/documentlistproperties';import _0x53b3e4 from'./integrations/tableproperties';import{isEqual as _0x52583c}from'lodash-es';export default class p extends _0x22862a{static get['requires'](){return[_0x4070('0x10e'),_0x43e427,_0x5c13f4,_0x37e5f3,_0x3da68d,_0x57df06,_0x1e4138,_0x255208,_0x13f3d7,_0x12285a,_0x4b6d2a,_0x1972e4,_0x4b940d,_0x369715,_0x27d556,_0x40e2be,_0x3b44d9,_0x22bd19,_0x17bbc8,_0x43a687,_0x4ee8d9,_0x71723d,_0x3fd773,_0x5cabe0,_0x42309b,_0x2ade67,_0x441e74,_0x358c0e,_0x314561,_0x509f34,_0x377b23,_0x557e37,_0x2d7f60,_0x34bde7,_0x2db81e,_0x2821aa,_0x3707b4,_0x500983,_0xa76141,_0x348f2c,_0x59ddcb,_0x4eccb7,_0x268766,_0x40222e,_0x53b3e4,_0x2c7ccb,_0x15ad92,_0xc43837];}static get[_0x4070('0x55')](){return _0x4070('0xa2');}constructor(_0x5af43f){function _0x3a4c2d(_0x47ce41){return _0x47ce41[_0x4070('0x12f')](_0x388afb=>String[_0x4070('0xd')](_0x388afb))[_0x4070('0x11a')]('');}super(_0x5af43f),this[_0x4070('0x13a')]('activeMarkers',[]),this['on'](_0x4070('0x102'),(_0x513c88,_0x468721,_0x3abfe4,_0x57ee4b)=>{this[_0x4070('0x58')][_0x4070('0x113')](()=>{for(const _0x5ebd7b of[..._0x57ee4b,..._0x3abfe4])this[_0x4070('0x58')][_0x4070('0x2c')][_0x4070('0x131')](_0x5ebd7b)&&_0x5af43f[_0x4070('0x11f')][_0x4070('0x59')](_0x5ebd7b);});}),this['_descriptionFactory']=new _0x5af0fc(this[_0x4070('0xab')][_0x4070('0xbe')][_0x4070('0xe8')],this['editor'][_0x4070('0xd7')]),this[_0x4070('0x36')]=null,this[_0x4070('0xb4')]=new Dt(this[_0x4070('0xab')]),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5af43f[_0x4070('0x116')][_0x4070('0x54')]('CommentsRepository'),this[_0x4070('0x83')]=new Set(),this[_0x4070('0x58')]=this[_0x4070('0xab')]['model'],this[_0x4070('0x5c')]=new WeakMap(),this[_0x4070('0x90')]=!0x1,_0x5af43f[_0x4070('0x51')][_0x4070('0x4a')](_0x4070('0x49'),'default'),this[_0x4070('0x114')]=_0x5af43f[_0x4070('0x51')]['get'](_0x4070('0x49')),_0x5af43f[_0x4070('0x51')][_0x4070('0x4a')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x4070('0x6d')]=_0x5af43f[_0x4070('0x51')][_0x4070('0x54')](_0x4070('0xc4')),this['trackChangesCommand']=new _0x20086b(_0x5af43f,this['_enabledCommands']),this[_0x3a4c2d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3a4c2d([0x34,0x30,0x34,0x36,0x31,0x38,0x30,0x34]);}[_0x4070('0x109')](){const _0x25cbba=this[_0x4070('0xab')];_0x25cbba[_0x4070('0x13')]['for'](_0x4070('0xb6'))['markerToHighlight']({'model':'suggestion','view':_0xd7045c=>{const {id:_0x5e4ce3,type:_0x2e0f7a}=this[_0x4070('0x8c')](_0xd7045c['markerName']),_0xe17524=[_0x4070('0xd3'),'ck-suggestion-marker-'+_0x2e0f7a];let _0x5d64d8=0xbb8;return this[_0x4070('0xb')][_0x4070('0xa3')](_0xd7045c['markerName'])&&(_0xe17524[_0x4070('0xc1')](_0x4070('0x37')),_0x5d64d8=0xbc2),_0x4070('0x1')==_0x2e0f7a&&(_0x5d64d8+=0x5),{'classes':_0xe17524,'attributes':{'data-suggestion':_0x5e4ce3},'priority':_0x5d64d8};}}),_0x25cbba[_0x4070('0x13')]['for'](_0x4070('0xca'))['add'](_0x22ddbe=>{_0x22ddbe['on']('addMarker:suggestion',(_0x1d3f69,_0x18c541,_0x4a7dda)=>{if(!_0x4a7dda['options'][_0x4070('0x1a')])return;const _0x48ee58=_0x18c541[_0x4070('0x88')];if(!_0x48ee58)return;const _0x2acdc9=_0x4a7dda[_0x4070('0x8b')][_0x4070('0xfc')](_0x48ee58);_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')][_0x4070('0x8')](_0x48ee58)&&_0x2acdc9&&!_0x2acdc9[_0x4070('0x6c')](_0x4070('0xcf'))&&_0x2acdc9['is'](_0x4070('0x10'))&&_0x2bcb74(_0x2acdc9,_0x4a7dda[_0x4070('0x107')]);},{'priority':_0x4070('0x33')});}),_0x25cbba['conversion'][_0x4070('0x89')](_0x4070('0xca'))[_0x4070('0xac')]({'model':_0x4070('0x3c'),'view':(_0x1f5fad,_0x392a0b)=>{if(!_0x392a0b['options'][_0x4070('0x1a')])return null;const {type:_0xa20583}=this[_0x4070('0x8c')](_0x1f5fad[_0x4070('0x29')]);return{'classes':[_0x4070('0xd3'),_0x4070('0x12d')+_0xa20583],'priority':0xbb8};}});const _0x36d6bb=({showActiveMarkers:_0x54861e=!0x0}={})=>(_0xecc281,_0x18f7d5,_0x4faebf)=>{if(!_0x18f7d5[_0x4070('0x88')])return;if(_0x18f7d5['item']['is'](_0x4070('0x32')))return void _0x4faebf[_0x4070('0xe7')][_0x4070('0x6')](_0x18f7d5[_0x4070('0x88')],_0xecc281[_0x4070('0xe4')]);const _0xdfbc8d=_0x4faebf[_0x4070('0x8b')]['toViewElement'](_0x18f7d5[_0x4070('0x88')]);if(!(_0x18f7d5[_0x4070('0x88')]['is'](_0x4070('0xa5'))&&_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')][_0x4070('0x7b')](_0x18f7d5[_0x4070('0x88')])&&!_0xdfbc8d[_0x4070('0x6c')](_0x4070('0x8f'))))return;const {id:_0x38f65f}=this[_0x4070('0x8c')](_0x18f7d5[_0x4070('0x29')]);_0x4faebf[_0x4070('0x107')][_0x4070('0x3a')]([_0x4070('0xd3'),'ck-suggestion-marker-formatBlock'],_0xdfbc8d),_0x4faebf[_0x4070('0x107')][_0x4070('0x22')](_0x4070('0xb9'),_0x38f65f,_0xdfbc8d),_0x4faebf[_0x4070('0x8b')][_0x4070('0x4d')](_0xdfbc8d,_0x18f7d5[_0x4070('0x29')]),_0x54861e&&(this[_0x4070('0xb')][_0x4070('0xa3')](_0x18f7d5[_0x4070('0x29')])?_0x4faebf['writer']['addClass'](_0x4070('0x37'),_0xdfbc8d):_0x4faebf[_0x4070('0x107')]['removeClass'](_0x4070('0x37'),_0xdfbc8d));for(const _0x56a13 of _0x25cbba[_0x4070('0xbe')][_0x4070('0x111')](_0x18f7d5['item'])[_0x4070('0xe1')]())_0x4faebf[_0x4070('0xe7')][_0x4070('0x6')](_0x56a13,_0xecc281[_0x4070('0xe4')]);_0x4faebf['consumable'][_0x4070('0x6')](_0x18f7d5[_0x4070('0x88')],_0xecc281[_0x4070('0xe4')]);};_0x25cbba[_0x4070('0x13')]['for']('dataDowncast')[_0x4070('0xd8')](_0xda4899=>{_0xda4899['on'](_0x4070('0xd1'),(_0xd3b99,_0x3a4fe0,_0xe768d1)=>{_0xe768d1[_0x4070('0x139')][_0x4070('0x1a')]&&_0x36d6bb({'showActiveMarkers':!0x1})(_0xd3b99,_0x3a4fe0,_0xe768d1);},{'priority':_0x4070('0x101')});}),_0x25cbba[_0x4070('0x13')][_0x4070('0x89')](_0x4070('0xca'))[_0x4070('0xae')]({'model':_0x4070('0x3c'),'view':(_0xd92e02,_0x3943d1)=>_0x3943d1[_0x4070('0x139')][_0x4070('0x1a')]?null:{'group':_0x4070('0x3c'),'name':_0xd92e02[_0x4070('0xf9')](0xb)}}),_0x25cbba['conversion'][_0x4070('0x89')]('upcast')[_0x4070('0x20')]({'view':{'name':_0x4070('0x3c'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xad0924,{writer:_0x194b5b})=>{let _0x5a9bcf=_0x4070('0x25')+_0xad0924[_0x4070('0x106')](_0x4070('0x2a'))+':'+_0xad0924[_0x4070('0x106')]('id');return _0xad0924['getAttribute']('marker-count')&&(_0x5a9bcf+=':'+_0xad0924['getAttribute']('marker-count')),_0x194b5b[_0x4070('0x81')](_0x4070('0x4b'),{'data-name':_0x5a9bcf});}}),_0x25cbba['conversion']['for'](_0x4070('0x96'))['dataToMarker']({'view':_0x4070('0x3c')}),_0x25cbba[_0x4070('0x13')][_0x4070('0x89')](_0x4070('0xb6'))[_0x4070('0xd8')](_0x1f8d2a=>{_0x1f8d2a['on'](_0x4070('0xd1'),_0x36d6bb(),{'priority':_0x4070('0x33')});}),_0x25cbba[_0x4070('0x13')]['for'](_0x4070('0xb6'))[_0x4070('0xd8')](_0x11e1d0=>{_0x11e1d0['on'](_0x4070('0x12a'),(_0x5b7650,_0x481577,_0xe9cea7)=>{const _0x26edb1=_0xe9cea7[_0x4070('0x8b')][_0x4070('0x134')](_0x481577[_0x4070('0x29')]);if(_0x26edb1)for(const _0x260e36 of _0x26edb1)_0x260e36[_0x4070('0x6c')](_0x4070('0x8f'))||(_0xe9cea7[_0x4070('0x107')][_0x4070('0x73')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x4070('0x37')],_0x260e36),_0xe9cea7[_0x4070('0x107')]['removeAttribute'](_0x4070('0xb9'),_0x260e36),_0xe9cea7[_0x4070('0x8b')][_0x4070('0x7e')](_0x260e36,_0x481577[_0x4070('0x29')]));},{'priority':_0x4070('0x33')});}),_0x25cbba[_0x4070('0xbe')][_0x4070('0xfa')][_0x4070('0x132')](_0x532e2b=>{let _0x26bd07=!0x1;const _0x1140f5=Array['from'](_0x25cbba['model'][_0x4070('0xfa')]['differ'][_0x4070('0xe')]()),_0xf8588=new Set();for(const {name:_0xac7470,data:_0x2ec0a8}of _0x1140f5){const {group:_0x8a015,type:_0x213f0b,id:_0x2e245e}=this['_splitMarkerName'](_0xac7470);if(_0x4070('0x3c')!==_0x8a015)continue;const _0x260553=this[_0x4070('0x41')][_0x4070('0x54')](_0x2e245e);if(null!=_0x2ec0a8[_0x4070('0x9c')]){'formatInline'==_0x213f0b&&(_0x26bd07=_0x26bd07||Mt(_0x2ec0a8['newRange'],_0xac7470,_0x532e2b,_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')]));if(_0x2ec0a8['newRange'][_0x4070('0x3d')]||_0x4070('0xa9')==_0x2ec0a8[_0x4070('0x9c')]['root'][_0x4070('0x5f')]||_0x4070('0xbf')==_0x213f0b&&!Nt(_0x2ec0a8[_0x4070('0x9c')])||_0x4070('0x1')==_0x213f0b&&!(!_t(_0x1d1018=_0x2ec0a8[_0x4070('0x9c')])&&!function(_0x3eff34){return _0x3eff34[_0x4070('0xe6')][_0x4070('0xe3')]==_0x3eff34[_0x4070('0x39')]['nodeBefore']&&_0x3eff34[_0x4070('0xe6')]['isAtEnd'];}(_0x1d1018)))_0x532e2b[_0x4070('0x1c')](_0xac7470),_0x26bd07=!0x0;else{if(!_0x260553||!_0x260553[_0x4070('0x85')])continue;_0xf8588['add'](_0x260553);}}}var _0x1d1018;return _0xf8588[_0x4070('0x3b')]>0x0&&(_0x26bd07=!!this[_0x4070('0x110')](_0xf8588)||_0x26bd07),_0x26bd07;}),_0x25cbba[_0x4070('0xbe')]['document'][_0x4070('0x132')](_0x4ddae3=>{let _0x7117c3=!0x1;for(const _0x1e9cc8 of _0x25cbba['model'][_0x4070('0xfa')]['differ']['getChanges']()){if(_0x4070('0x3')!=_0x1e9cc8[_0x4070('0xef')])continue;const _0x4b3d16=_0x1e9cc8[_0x4070('0x35')][_0x4070('0x2f')](_0x1e9cc8[_0x4070('0x79')]);if(_0x4b3d16[_0x4070('0x40')])for(const _0x493a61 of this[_0x4070('0x41')]['values']()){if(_0x493a61[_0x4070('0x62')]||!_0x493a61[_0x4070('0x85')])continue;if(_0x4070('0xbf')!=_0x493a61[_0x4070('0xef')])continue;const _0x2f40a3=_0x493a61['getFirstRange']();if(_0x2f40a3[_0x4070('0xe6')]['parent']!=_0x2f40a3[_0x4070('0x39')][_0x4070('0xe3')]&&_0x2f40a3[_0x4070('0x39')][_0x4070('0xfd')](_0x1e9cc8[_0x4070('0x35')])){const _0x18a8cf=_0x25cbba[_0x4070('0xbe')]['createRange'](_0x2f40a3[_0x4070('0xe6')],_0x4b3d16);_0x4ddae3['updateMarker'](_0x493a61[_0x4070('0x91')](),{'range':_0x18a8cf}),_0x7117c3=!0x0;}}}return _0x7117c3;}),_0x25cbba[_0x4070('0xbe')]['markers']['on']('update:suggestion',(_0x47bf97,_0x3d0b0c,_0x2df2b4)=>{if(null==_0x2df2b4){const {id:_0x472f09}=this[_0x4070('0x8c')](_0x3d0b0c[_0x4070('0xe4')]),_0x3d3cb4=this[_0x4070('0x41')][_0x4070('0x54')](_0x472f09);_0x3d3cb4&&_0x3d3cb4['addMarkerName'](_0x3d0b0c[_0x4070('0xe4')]);}}),_0x25cbba[_0x4070('0xbe')][_0x4070('0xfa')]['on'](_0x4070('0x135'),()=>{const _0x42cf83=Array[_0x4070('0x31')](_0x25cbba[_0x4070('0xbe')]['document']['differ']['getChangedMarkers']())[_0x4070('0x112')](_0x441f52=>_0x4070('0x3c')===this['_splitMarkerName'](_0x441f52[_0x4070('0xe4')])[_0x4070('0x118')]);if(0x0===_0x42cf83['length'])return;_0x42cf83[_0x4070('0xff')]((_0x15c358,_0xc04040)=>{const _0x5514d0=_0x15c358[_0x4070('0x78')][_0x4070('0xf5')],_0x398af0=_0xc04040[_0x4070('0x78')][_0x4070('0xf5')];return null===_0x5514d0&&null===_0x398af0?0x0:null===_0x5514d0&&null!==_0x398af0?-0x1:null!==_0x5514d0&&null===_0x398af0?0x1:_0x5514d0[_0x4070('0xe6')][_0x4070('0x108')](_0x398af0[_0x4070('0xe6')])?-0x1:0x1;});const _0x543e5d=new Set(),_0x464bda=new Set();for(const {name:_0x281517,data:_0x14c881}of _0x42cf83){const {id:_0x12112c}=this['_splitMarkerName'](_0x281517);if(null===_0x14c881[_0x4070('0xf5')]){const _0x428bd9=this['_handleNewSuggestionMarker'](_0x281517);_0x464bda[_0x4070('0xd8')](_0x428bd9);}else{const _0x302e32=this[_0x4070('0x41')][_0x4070('0x54')](_0x12112c);null!==_0x14c881[_0x4070('0x9c')]||_0x302e32['isInContent']?(_0x543e5d[_0x4070('0xd8')](_0x302e32['head']),_0x464bda[_0x4070('0xd8')](_0x302e32)):this[_0x4070('0x26')](_0x302e32);}}_0x464bda[_0x4070('0x3b')]>0x0&&this['_refreshSuggestionsChain'](_0x464bda);for(const _0x50bf27 of _0x543e5d)this['fire'](_0x4070('0x3e'),_0x50bf27);}),_0x25cbba[_0x4070('0xbe')]['on'](_0x4070('0x52'),(_0x5c42cd,_0x5c08cc)=>{const _0x81c79e=_0x5c08cc[0x0];if(!this['_suggestions'][_0x4070('0x3b')])return;if(!_0x81c79e[_0x4070('0x4c')])return;if(_0x81c79e[_0x4070('0xfe')][_0x4070('0x19')]||!_0x81c79e[_0x4070('0xfe')]['isLocal'])return;let _0x32dd03,_0x5d9a7f;switch(_0x81c79e[_0x4070('0xef')]){case _0x4070('0x3'):_0x32dd03=_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x81c79e[_0x4070('0x35')]),_0x5d9a7f=_0x32dd03['getShiftedBy'](_0x81c79e['howMany']);break;case'split':_0x32dd03=_0x25cbba['model']['createPositionAt'](_0x81c79e['splitPosition']),_0x5d9a7f=_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x81c79e['moveTargetPosition']);break;case _0x4070('0xce'):_0x32dd03=_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x81c79e['targetPosition']),_0x5d9a7f=_0x32dd03[_0x4070('0x2f')](_0x81c79e['howMany']);break;default:return;}const _0x486b5f=_0x25cbba[_0x4070('0xbe')]['createRange'](_0x32dd03,_0x5d9a7f);_0x25cbba[_0x4070('0xbe')]['change'](()=>{for(const {suggestion:_0x5c7a9b,meta:_0x4f7ac7}of this[_0x4070('0x98')](_0x486b5f)){if(_0x5c7a9b['isMultiRange'])continue;if('formatInline'==_0x5c7a9b['type'])continue;const _0x1d8283=_0x5c7a9b[_0x4070('0x78')]&&_0x5c7a9b['data'][_0x4070('0x7a')];(_0x4070('0xbf')!=_0x5c7a9b['type']||_0x4070('0x3f')==_0x81c79e[_0x4070('0xef')]&&!_0x1d8283)&&(_0x4f7ac7['containsRangeInObject']||_0x4070('0x9b')==_0x5c7a9b[_0x4070('0xef')]&&_0x4f7ac7[_0x4070('0xc8')]||_0x5c7a9b['getFirstRange']()[_0x4070('0x8d')](_0x486b5f)&&this[_0x4070('0x4e')](_0x5c7a9b,_0x32dd03,_0x5d9a7f));}});},{'priority':_0x4070('0xfb')}),_0x25cbba[_0x4070('0xbe')]['on'](_0x4070('0x126'),(_0x89d442,_0x4761e3)=>{const _0x2b8279=_0x4761e3[0x0],_0x364c64=_0x4761e3[0x1];if(_0x364c64&&_0x364c64[_0x4070('0x6f')])return;if(this[_0x4070('0x90')])return;if(!this[_0x4070('0x0')][_0x4070('0xc9')])return;if(_0x2b8279[_0x4070('0x3d')])return;const _0x4d906c=_0x25cbba['model'][_0x4070('0xe8')],{start:_0x45c1a4,end:_0x186fa0}=_0x2b8279[_0x4070('0xcc')](),_0x59537d=_0x45c1a4[_0x4070('0x42')]&&_0x4d906c[_0x4070('0xb0')](_0x45c1a4['nodeAfter'])?null:_0x4d906c[_0x4070('0xa7')](_0x45c1a4,_0x4070('0xc7')),_0x4112a0=_0x186fa0[_0x4070('0xe2')]&&_0x4d906c[_0x4070('0xb0')](_0x186fa0[_0x4070('0xe2')])?null:_0x4d906c[_0x4070('0xa7')](_0x186fa0,_0x4070('0xaf')),_0x107c9b=_0x25cbba[_0x4070('0xbe')][_0x4070('0x10a')](_0x59537d?_0x59537d[_0x4070('0xe6')]:_0x45c1a4,_0x4112a0?_0x4112a0['end']:_0x186fa0);_0x25cbba['model']['change'](_0x138e2f=>{this[_0x4070('0xe5')](_0x107c9b);const _0x3e38f7=_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')][_0x4070('0xa7')](_0x107c9b[_0x4070('0xe6')]);_0x2b8279['is'](_0x4070('0x121'))?_0x138e2f[_0x4070('0x48')](_0x3e38f7):_0x2b8279[_0x4070('0x7c')](_0x3e38f7);}),_0x89d442['stop']();},{'priority':_0x85390b['normal']+0xa}),_0x25cbba[_0x4070('0xbe')]['on'](_0x4070('0x92'),(_0x59cd18,_0x4891fa)=>{const _0x4ecb77=_0x4891fa[_0x4891fa['length']-0x1];_0x4ecb77&&_0x4ecb77[_0x4070('0x6f')]||this[_0x4070('0x90')]||this[_0x4070('0x0')]['value']&&(_0x25cbba[_0x4070('0xbe')][_0x4070('0x113')](()=>{let _0xa67eb7=_0x25cbba['model'][_0x4070('0x92')](_0x4891fa[0x0],_0x4891fa[0x1],_0x4891fa[0x2],{'forceDefaultExecution':!0x0});if(!_0xa67eb7)return;_0x59cd18[_0x4070('0xdc')]=_0xa67eb7['clone']();const _0x17dd2d=_0xa67eb7['end'][_0x4070('0xe2')],_0x1080ca=_0x25cbba[_0x4070('0xbe')][_0x4070('0xe8')];_0x17dd2d&&_0x1080ca['isBlock'](_0x17dd2d)&&!_0x1080ca[_0x4070('0x8')](_0x17dd2d)&&(_0xa67eb7=_0x25cbba[_0x4070('0xbe')]['createRange'](_0xa67eb7[_0x4070('0xe6')],_0x25cbba[_0x4070('0xbe')][_0x4070('0x47')](_0x17dd2d,_0x4070('0x39')))),this[_0x4070('0x34')](_0xa67eb7);}),_0x59cd18['stop']());},{'priority':_0x4070('0x33')}),this[_0x4070('0xab')]['commands']['add'](_0x4070('0xb5'),this[_0x4070('0x0')]),this['enableCommand'](_0x4070('0xb5'));const _0x3a6308=new _0x26ccd9(_0x25cbba,this[_0x4070('0x41')]);_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')](_0x4070('0x57'),_0x3a6308),this[_0x4070('0x6e')](_0x4070('0x57'));const _0x3487a4=new _0x46116c(_0x25cbba,this[_0x4070('0x41')]);_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')](_0x4070('0x8a'),_0x3487a4),this[_0x4070('0x6e')](_0x4070('0x8a')),_0x25cbba[_0x4070('0x76')]['add']('acceptAllSuggestions',new _0x4ca370(_0x25cbba,_0x3a6308,this[_0x4070('0x41')])),this[_0x4070('0x6e')](_0x4070('0x63')),_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')](_0x4070('0x1b'),new _0x4ca370(_0x25cbba,_0x3487a4,this[_0x4070('0x41')])),this[_0x4070('0x6e')](_0x4070('0x1b')),_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')]('acceptSelectedSuggestions',new _0x1d2d56(_0x25cbba,_0x3a6308,this[_0x4070('0x41')])),this['enableCommand'](_0x4070('0xf4')),_0x25cbba[_0x4070('0x76')][_0x4070('0xd8')]('discardSelectedSuggestions',new _0x1d2d56(_0x25cbba,_0x3487a4,this['_suggestions'])),this['enableCommand'](_0x4070('0x1e'));const _0x3b784a=_0x25cbba[_0x4070('0x116')]['get'](_0x4070('0x10e'));this['listenTo'](_0x3b784a,_0x4070('0xaa'),(_0xee8716,{threadId:_0x5b4871})=>{const _0x57695b=this[_0x4070('0x41')][_0x4070('0x54')](_0x5b4871);_0x57695b&&_0x57695b[_0x4070('0x2d')]&&0x1===_0x57695b[_0x4070('0x2d')][_0x4070('0x79')]&&this['_updateSuggestionData'](_0x5b4871,{'hasComments':!0x0});},{'priority':'low'}),this[_0x4070('0x4')](_0x3b784a,_0x4070('0x69'),(_0x1e7add,{threadId:_0x2587f7})=>{const _0x37e3cb=this[_0x4070('0x41')]['get'](_0x2587f7);_0x37e3cb&&_0x37e3cb[_0x4070('0x2d')]&&!_0x37e3cb[_0x4070('0x2d')][_0x4070('0x79')]&&this[_0x4070('0x93')](_0x2587f7,{'hasComments':!0x1});},{'priority':_0x4070('0x50')});}set[_0x4070('0x30')](_0x3f6c30){if(this[_0x4070('0x36')])throw new _0xe2c45(_0x4070('0x24'),this);this[_0x4070('0x36')]=_0x3f6c30;}get[_0x4070('0x30')](){return this[_0x4070('0x36')];}[_0x4070('0xc3')]({skipNotAttached:_0x4411e1=!0x1,toJSON:_0x30007c=!0x1}={}){const _0x526068=[];for(const _0x14abba of this[_0x4070('0x41')][_0x4070('0x14')]())_0x4411e1&&!_0x14abba[_0x4070('0x85')]||_0x526068[_0x4070('0xc1')](_0x14abba);return _0x30007c?_0x526068[_0x4070('0x12f')](_0x26e0ea=>_0x26e0ea['toJSON']()):_0x526068;}[_0x4070('0x9f')](_0x40f267){const _0x148980=this['_suggestions']['get'](_0x40f267);if(!_0x148980)throw new _0xe2c45('track-changes-suggestion-not-found',this);return _0x148980;}[_0x4070('0xb8')](_0x4da302){return this['_suggestions'][_0x4070('0x131')](_0x4da302);}[_0x4070('0xc0')](_0x5a3ba2){const {authorId:_0xe8e633,id:_0xe8e69,attributes:_0xc56e92}=_0x5a3ba2,[_0x14f689,_0x464703]=_0x5a3ba2[_0x4070('0xef')][_0x4070('0x3f')](':'),_0x295590=this[_0x4070('0x41')][_0x4070('0x54')](_0xe8e69)||this['_createSuggestion'](_0x14f689,_0x464703,_0xe8e69,_0xe8e633,_0xc56e92);if(this[_0x4070('0x120')](_0x295590),this['_checkSuggestionCorrectness'](_0x295590,_0x14f689,_0x464703||null,_0xe8e633),_0x295590['createdAt']=_0x5a3ba2['createdAt'],_0x295590[_0x4070('0x7f')]=!0x0,_0xc56e92&&_0xc56e92[_0x4070('0x117')]){const _0x27adc8=_0xc56e92[_0x4070('0x117')],_0x402770=this['_getExternalAuthor'](_0x27adc8['authorName']);_0x295590[_0x4070('0x61')]=_0x27adc8[_0x4070('0x115')],_0x295590[_0x4070('0x124')]=_0x402770,_0x295590[_0x4070('0x99')]=!0x0;}else _0x295590[_0x4070('0x61')]=_0x5a3ba2[_0x4070('0x115')];switch(_0x5a3ba2[_0x4070('0x78')]&&(_0x295590[_0x4070('0x78')]=_0x5a3ba2['data']),_0x5a3ba2['attributes']&&(_0x295590[_0x4070('0xb7')]=_0x5a3ba2[_0x4070('0xb7')]),this[_0x4070('0x36')]&&this[_0x4070('0x36')]['addSuggestion']||(_0x295590[_0x4070('0xd2')]=!0x0),this[_0x4070('0x5c')][_0x4070('0x54')](_0x295590)){case'notReady':this[_0x4070('0x5c')]['set'](_0x295590,_0x4070('0x12e'));break;case _0x4070('0x11d'):_0x295590[_0x4070('0x85')]?(this['_refreshSuggestionsChain'](new Set([_0x295590])),this[_0x4070('0x110')](new Set([_0x295590])),this[_0x4070('0x5c')]['set'](_0x295590,_0x4070('0x21')),this[_0x4070('0xb3')]('suggestionLoaded',_0x295590)):this[_0x4070('0x5c')][_0x4070('0x13a')](_0x295590,_0x4070('0x105'));}return _0x295590;}[_0x4070('0x57')](_0x2fb97a){this[_0x4070('0x6f')](()=>{this[_0x4070('0xab')][_0x4070('0xbe')][_0x4070('0x113')](()=>{for(const _0x4fbdab of _0x2fb97a[_0x4070('0xec')]())_0x4fbdab[_0x4070('0x129')]();});});}[_0x4070('0x8a')](_0x3ff379){this[_0x4070('0x6f')](()=>{this['editor'][_0x4070('0xbe')]['change'](()=>{for(const _0x3ad29b of _0x3ff379[_0x4070('0xec')]())_0x3ad29b[_0x4070('0xdd')]();});});}['enableCommand'](_0x4d574c,_0x2068c2){const _0x2c21bb=this[_0x4070('0xab')][_0x4070('0x76')][_0x4070('0x54')](_0x4d574c);if(!_0x2c21bb)throw new _0xe2c45('track-changes-command-not-found',this,{'commandName':_0x4d574c});this[_0x4070('0x83')][_0x4070('0xd8')](_0x2c21bb),_0x2068c2&&_0x2c21bb['on'](_0x4070('0x5'),(_0x4e31d1,_0x220c51)=>{this[_0x4070('0x0')][_0x4070('0xc9')]&&(this[_0x4070('0x90')]||_0x220c51[_0x4070('0x79')]>0x0&&_0x220c51[_0x220c51['length']-0x1]&&_0x220c51[_0x220c51['length']-0x1][_0x4070('0x6f')]||(_0x2068c2((..._0x4d7be8)=>_0x2c21bb[_0x4070('0x5')](..._0x4d7be8,{'forceDefaultExecution':!0x0}),..._0x220c51),_0x4e31d1[_0x4070('0x11b')]()));},{'priority':_0x4070('0x33')});}['forceDefaultExecution'](_0x4fe1d8){let _0x48db2c,_0x156c1f;const _0x13308d=this[_0x4070('0x90')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x48db2c=_0x4fe1d8();}catch(_0xa34a7){_0x156c1f=_0xa34a7;}return _0x13308d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x156c1f&&_0xe2c45[_0x4070('0xd0')](_0x156c1f,this),_0x48db2c;}[_0x4070('0x34')](_0x366506,_0x1f552f=null,_0x5f27db={}){if(_0x366506[_0x4070('0x3d')])return null;const _0x31f091=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'];for(const {suggestion:_0x3236e7,meta:_0x34f5cf}of this[_0x4070('0x98')](_0x366506,_0x4070('0x9b')))if(_0x34f5cf[_0x4070('0xc8')]){if(!_0x34f5cf[_0x4070('0xf0')]){if(_0x34f5cf['containsRangeInObject']){if(!this[_0x4070('0x6d')]||!Ut(_0x3236e7,_0x5f27db))continue;return _0x3236e7;}if(Ut(_0x3236e7,_0x5f27db))return _0x3236e7;this[_0x4070('0x4e')](_0x3236e7,_0x366506[_0x4070('0xe6')],_0x366506['end']);break;}if(_0x1f552f==_0x3236e7['subType']&&Ut(_0x3236e7,_0x5f27db)){const _0x58a8ac=_0x3236e7['getFirstRange']();return _0x58a8ac[_0x4070('0xe6')]['isEqual'](_0x366506[_0x4070('0x39')])?this[_0x4070('0xd5')](_0x3236e7,this[_0x4070('0x58')]['createRange'](_0x366506[_0x4070('0xe6')],_0x58a8ac[_0x4070('0x39')])):this['_setSuggestionRange'](_0x3236e7,this['_model'][_0x4070('0x10a')](_0x58a8ac[_0x4070('0xe6')],_0x366506[_0x4070('0x39')])),_0x3236e7;}}const _0x508e1f=_0x2cecee(),_0x174561=_0x31f091['id'],_0x211097=_0x1f552f?_0x4070('0x130')+_0x1f552f:_0x4070('0x9b'),_0x3cab65=this[_0x4070('0xeb')]({'id':_0x508e1f,'type':_0x211097,'createdAt':new Date(),'authorId':_0x174561,'attributes':_0x5f27db});return this['_addSuggestionMarker'](_0x211097,_0x508e1f,_0x174561,_0x366506),_0x3cab65;}[_0x4070('0xf8')](_0x10f0c1,_0xc9daee=_0x4070('0x11e'),_0x39aee3={}){const _0x1e9317=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x1623bf=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0x9b'),_0xc9daee,_0x4070('0x11a'));for(const _0x845c6b of this[_0x4070('0xc3')]())if(_0x845c6b[_0x4070('0x124')]['id']==_0x1e9317['id']&&_0x4070('0x9b')==_0x845c6b[_0x4070('0xef')]&&_0x845c6b['subType']==_0xc9daee&&Ut(_0x845c6b,_0x39aee3)&&(_0x1623bf(_0x845c6b[_0x4070('0x5b')](),_0x10f0c1)||_0x1623bf(_0x10f0c1,_0x845c6b[_0x4070('0x5b')]()))){for(const _0x2521db of _0x10f0c1)_0x845c6b['addRange'](_0x2521db);return _0x845c6b;}for(const {suggestion:_0x62ff15,meta:_0x3a770d}of this['_findSuggestions'](_0x10f0c1,'insertion')){if(!_0x3a770d[_0x4070('0xc8')])continue;if(!this[_0x4070('0x6d')]&&_0x3a770d[_0x4070('0xf')])continue;if(!Ut(_0x62ff15,_0x39aee3))continue;let _0x492700=!0x0;for(const _0xc0a056 of _0x62ff15['getRanges']())for(const _0x5559ec of _0x10f0c1)if(!_0xc0a056[_0x4070('0x8d')](_0x5559ec)){_0x492700=!0x1;break;}if(_0x492700)return _0x62ff15;}const _0x2ecb7a=_0x2cecee(),_0x595515=_0x1e9317['id'],_0x4e0fad=_0x4070('0x130')+_0xc9daee,_0x5d9589=this[_0x4070('0xeb')]({'id':_0x2ecb7a,'type':_0x4e0fad,'createdAt':new Date(),'authorId':_0x595515,'attributes':_0x39aee3});for(const _0x59946a of _0x10f0c1)this[_0x4070('0x53')](_0x4e0fad,_0x2ecb7a,_0x595515,_0x59946a,_0x4062b9[_0x4070('0xf7')]());return _0x5d9589;}[_0x4070('0x9e')](_0x51c426,_0xfc33e3,_0x297829=null,_0x2df5e8={}){if(_0x297829=_0x297829||$t(_0xfc33e3),_0x51c426[_0x4070('0x3d')])return null;if(_0x4070('0xe0')===this['_trackFormatChanges']){const _0x265527=this[_0x4070('0xb4')][_0x4070('0x28')]('formatInline',_0x297829,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x265527([_0x51c426],_0xfc33e3,_0x2df5e8)),null;}const _0x156e16=this['editor'][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x401701=[];if(_0x4070('0xc5')!==this[_0x4070('0x114')])for(const {suggestion:_0xa9378d,meta:_0x433f26}of this[_0x4070('0x98')](_0x51c426,_0x4070('0x9b')))_0x433f26[_0x4070('0xc8')]&&!_0x433f26['isInsideObject']&&_0x401701[_0x4070('0xc1')](..._0xa9378d[_0x4070('0x5b')]());const _0x5c4f50=function(_0x59ec1a,_0x4fda0b){const _0x152629=[];for(const _0xffc811 of _0x4fda0b){const _0x48d3ac=_0x59ec1a['getIntersection'](_0xffc811);_0x48d3ac&&_0x152629['push'](_0x48d3ac);}return _0x152629;}(_0x51c426,_0x401701),_0x4af59d=function(_0x5dfab9,_0x31c0de){const _0x1e6111=[_0x5dfab9];for(const _0x409191 of _0x31c0de){let _0x239128=0x0;for(;_0x239128<_0x1e6111[_0x4070('0x79')];){const _0x1497a3=_0x1e6111[_0x239128][_0x4070('0xbd')](_0x409191);_0x1e6111[_0x4070('0x10f')](_0x239128,0x1,..._0x1497a3),_0x239128+=_0x1497a3[_0x4070('0x79')];}}return _0x1e6111;}(_0x51c426,_0x401701);_0x5c4f50['length']&&this['_model'][_0x4070('0x113')](()=>{for(const _0x9aa1d5 of _0x5c4f50){const _0x3306fd=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0x123'),_0x297829,_0x4070('0x129'));this[_0x4070('0x6f')](()=>_0x3306fd([_0x9aa1d5],_0xfc33e3,_0x2df5e8));}});for(const _0x4fcc37 of _0x4af59d){let _0x30c8fe=null,_0x1caa73=_0x4fcc37[_0x4070('0xe6')],_0x1b7034=_0x4fcc37[_0x4070('0x39')];for(const {suggestion:_0x19de29,meta:_0x54f427}of this[_0x4070('0x98')](_0x4fcc37,_0x4070('0x123'))){if(!_0x54f427[_0x4070('0xc8')])continue;if(_0x19de29[_0x4070('0x97')]!=_0x297829)continue;if(!Ut(_0x19de29,_0x2df5e8))continue;const _0x3c41e7=_0x19de29[_0x4070('0xcc')]();if(_0x3c41e7['containsRange'](_0x4fcc37,!0x0))return null;_0x1caa73=_0x1caa73[_0x4070('0x108')](_0x3c41e7[_0x4070('0xe6')])?_0x1caa73:_0x3c41e7[_0x4070('0xe6')],_0x1b7034=_0x1b7034['isAfter'](_0x3c41e7[_0x4070('0x39')])?_0x1b7034:_0x3c41e7[_0x4070('0x39')],_0x30c8fe?_0x3c41e7[_0x4070('0xe6')][_0x4070('0x108')](_0x30c8fe['getFirstRange']()[_0x4070('0xe6')])?(_0x30c8fe[_0x4070('0x1d')](),_0x30c8fe=_0x19de29):_0x19de29[_0x4070('0x1d')]():_0x30c8fe=_0x19de29;}const _0x5043cd=this['_model'][_0x4070('0x10a')](_0x1caa73,_0x1b7034);if(_0x30c8fe)this[_0x4070('0xd5')](_0x30c8fe,_0x5043cd);else{const _0x1f044a=_0x2cecee(),_0x309c75=_0x156e16['id'];this[_0x4070('0xeb')]({'id':_0x1f044a,'type':'formatInline:'+_0x297829,'data':_0xfc33e3,'createdAt':new Date(),'authorId':_0x309c75,'attributes':_0x2df5e8}),this[_0x4070('0x53')]('formatInline:'+_0x297829,_0x1f044a,_0x309c75,_0x5043cd);}}return null;}['markBlockFormat'](_0x4b2395,_0x528739,_0x4e020b=[],_0x238f3d=null,_0x2b4bf7={}){_0x528739[_0x4070('0x43')]||(_0x528739[_0x4070('0x43')]=_0x528739['commandName']),_0x528739['multipleBlocks']=_0x4b2395['is']('range'),_0x238f3d=_0x238f3d||$t(_0x528739);const _0x125239=_0x4e020b[_0x4070('0x12f')](_0x8fc462=>Rt(_0x8fc462,this[_0x4070('0x58')])),_0x21ba3d=_0x4b2395['is'](_0x4070('0x17'))?_0x4b2395:Rt(_0x4b2395,this[_0x4070('0x58')]);if(_0x4070('0xe0')===this[_0x4070('0x114')]){const _0xcc5d07=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0xbf'),_0x238f3d,_0x4070('0x129'));return this['forceDefaultExecution'](()=>_0xcc5d07([_0x21ba3d],_0x528739,_0x2b4bf7)),null;}_0x125239[_0x4070('0xc1')](_0x21ba3d);let _0x430044=!0x0;for(const _0x4c98a0 of _0x125239)if(!this['_rangeIsInLocalUserInsertion'](_0x4c98a0)){_0x430044=!0x1;break;}if(_0x430044&&'always'!==this[_0x4070('0x114')]){const _0x3783bd=this['_suggestionFactory']['getSuggestionCallback'](_0x4070('0xbf'),_0x238f3d,'accept');return this['forceDefaultExecution'](()=>_0x3783bd([_0x21ba3d],_0x528739,_0x2b4bf7)),null;}let _0x176a39=null,_0x14fac7=_0x21ba3d[_0x4070('0xe6')],_0x184846=_0x21ba3d[_0x4070('0x39')];for(const {suggestion:_0x14897f,meta:_0x122750}of this[_0x4070('0x98')](_0x21ba3d,_0x4070('0xbf'))){if(!_0x122750[_0x4070('0xc8')])continue;if(_0x122750[_0x4070('0xf0')]||_0x122750[_0x4070('0xf')]||_0x122750[_0x4070('0x67')])continue;if(_0x14897f['data'][_0x4070('0x43')]!=_0x528739[_0x4070('0x43')])continue;if(!Ut(_0x14897f,_0x2b4bf7))continue;const _0x49f726=_0x14897f[_0x4070('0xcc')]();if(_0x14897f[_0x4070('0x97')]==_0x238f3d){if(_0x49f726[_0x4070('0x8d')](_0x21ba3d,!0x0))return null;_0x14fac7=_0x14fac7[_0x4070('0x108')](_0x49f726[_0x4070('0xe6')])?_0x14fac7:_0x49f726[_0x4070('0xe6')],_0x184846=_0x184846[_0x4070('0x122')](_0x49f726[_0x4070('0x39')])?_0x184846:_0x49f726[_0x4070('0x39')],_0x176a39?_0x49f726[_0x4070('0xe6')][_0x4070('0x108')](_0x176a39[_0x4070('0xcc')]()[_0x4070('0xe6')])?(_0x176a39[_0x4070('0x1d')](),_0x176a39=_0x14897f):_0x14897f[_0x4070('0x1d')]():_0x176a39=_0x14897f;}else{const _0x2884c6=_0x21ba3d[_0x4070('0x11')](_0x49f726);this[_0x4070('0x2e')](_0x14897f,_0x2884c6);}}const _0xb00479=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x54e60c=_0x2cecee(),_0xcf5f1e=_0xb00479['id'];if(_0x176a39)return this['_setSuggestionRange'](_0x176a39,this[_0x4070('0x58')]['createRange'](_0x14fac7,_0x184846)),_0x176a39;{const _0x23a781=this[_0x4070('0xeb')]({'id':_0x54e60c,'type':'formatBlock:'+_0x238f3d,'data':_0x528739,'createdAt':new Date(),'authorId':_0xcf5f1e,'attributes':_0x2b4bf7});return this[_0x4070('0x53')]('formatBlock:'+_0x238f3d,_0x54e60c,_0xcf5f1e,this[_0x4070('0x58')][_0x4070('0x10a')](_0x14fac7,_0x184846)),_0x23a781;}}[_0x4070('0x71')](_0x4e3b67,_0x1852d1,_0x8fa20d=[],_0x38d0f8=null,_0x7bfc70={}){_0x1852d1[_0x4070('0x43')]||(_0x1852d1[_0x4070('0x43')]=_0x1852d1['commandName']);const _0x593ae2=_0x4e3b67[0x0];_0x1852d1['multipleBlocks']=_0x593ae2['is'](_0x4070('0x17')),_0x38d0f8=_0x38d0f8||$t(_0x1852d1);const _0x5f55ae=_0x8fa20d[_0x4070('0x12f')](_0x4e80ba=>Rt(_0x4e80ba,this[_0x4070('0x58')])),_0x25f0f1=_0x593ae2['is'](_0x4070('0x17'))?_0x4e3b67:_0x4e3b67[_0x4070('0x12f')](_0x54aaed=>Rt(_0x54aaed,this[_0x4070('0x58')]));if(_0x4070('0xe0')===this[_0x4070('0x114')]){const _0x2104e7=this[_0x4070('0xb4')][_0x4070('0x28')]('formatBlock',_0x38d0f8,_0x4070('0x129'));return this['forceDefaultExecution'](()=>_0x2104e7(_0x25f0f1,_0x1852d1,_0x7bfc70)),null;}_0x5f55ae[_0x4070('0xc1')](..._0x25f0f1);let _0x37622e=!0x0;for(const _0x335c29 of _0x5f55ae)if(!this[_0x4070('0x10b')](_0x335c29)){_0x37622e=!0x1;break;}if(_0x37622e&&_0x4070('0xc5')!==this['_trackFormatChanges']){const _0x99a3f=this['_suggestionFactory'][_0x4070('0x28')](_0x4070('0xbf'),_0x38d0f8,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x99a3f(_0x25f0f1,_0x1852d1,_0x7bfc70)),null;}const _0xabf3d5=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0xd9'))['me'];for(const _0x25f6e6 of this[_0x4070('0xc3')]()){if(_0x25f6e6[_0x4070('0x124')]['id']!=_0xabf3d5['id'])continue;if(_0x4070('0xbf')!=_0x25f6e6[_0x4070('0xef')]||_0x25f6e6[_0x4070('0x78')][_0x4070('0x43')]!=_0x1852d1['formatGroupId'])continue;if(!Ut(_0x25f6e6,_0x7bfc70))continue;const _0x49a375=_0x25f6e6[_0x4070('0x97')]==_0x38d0f8;for(let _0x282146=0x0;_0x282146<_0x25f0f1[_0x4070('0x79')];_0x282146++){const _0x32132e=_0x25f0f1[_0x282146];for(const _0x4f4c2b of _0x25f6e6['getMarkers']()){const _0x4d439b=_0x4f4c2b[_0x4070('0xbc')]();if(_0x32132e['isEqual'](_0x4d439b)){_0x49a375?(_0x25f0f1[_0x4070('0x10f')](_0x282146,0x1),_0x282146--):_0x25f6e6[_0x4070('0x1c')](_0x4f4c2b[_0x4070('0xe4')]);break;}}}}if(0x0==_0x25f0f1[_0x4070('0x79')])return null;const _0x4f7de8=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0xbf'),_0x38d0f8,_0x4070('0x11a'));for(const _0x186e62 of this[_0x4070('0xc3')]())if(_0x186e62[_0x4070('0x124')]['id']==_0xabf3d5['id']&&_0x4070('0xbf')==_0x186e62['type']&&_0x186e62[_0x4070('0x78')][_0x4070('0x43')]==_0x1852d1[_0x4070('0x43')]&&_0x186e62[_0x4070('0x97')]==_0x38d0f8&&Ut(_0x186e62,_0x7bfc70)&&(_0x4f7de8(_0x186e62[_0x4070('0x5b')](),_0x25f0f1)||_0x4f7de8(_0x25f0f1,_0x186e62[_0x4070('0x5b')]()))){for(const _0x58498c of _0x25f0f1)_0x186e62[_0x4070('0xdb')](_0x58498c);return _0x186e62;}const _0x3bb946=_0x2cecee(),_0x4b3c4c=_0xabf3d5['id'],_0xb63def=_0x4070('0xd4')+_0x38d0f8,_0x480165=this[_0x4070('0xeb')]({'id':_0x3bb946,'type':_0xb63def,'data':_0x1852d1,'createdAt':new Date(),'authorId':_0x4b3c4c,'attributes':_0x7bfc70});for(const _0x21ed19 of _0x25f0f1)this[_0x4070('0x53')](_0xb63def,_0x3bb946,_0x4b3c4c,_0x21ed19,_0x4062b9[_0x4070('0xf7')]());return _0x480165;}[_0x4070('0xe5')](_0x1bef51,_0x349ed4=null,_0x1680d1={}){if(_0x1bef51[_0x4070('0x3d')])return null;const _0x1434fb=this[_0x4070('0xab')]['plugins'][_0x4070('0x54')](_0x4070('0xd9'))['me'],_0x4d5cc2=new _0xa146d2(_0x1bef51['start'],_0x1bef51[_0x4070('0x39')]);for(const {suggestion:_0x46e1b2,meta:_0x5038fb}of this[_0x4070('0x98')](_0x4d5cc2,_0x4070('0x9b')))if(_0x5038fb[_0x4070('0xc8')]&&!_0x5038fb[_0x4070('0xf0')]){if(_0x46e1b2[_0x4070('0x62')]){const _0x4dcfc3=_0x46e1b2[_0x4070('0x5b')]()[_0x4070('0x112')](_0x5a4078=>_0x4070('0xa9')!=_0x5a4078[_0x4070('0xa4')][_0x4070('0x5f')]);_0x4dcfc3[_0x4070('0x64')](_0x15582c=>_0x4d5cc2['containsRange'](_0x15582c,!0x0))&&_0x46e1b2['discard']();if(_0x4dcfc3[_0x4070('0x60')](_0x49ac48=>_0x49ac48[_0x4070('0x8d')](_0x4d5cc2,!0x0))){const _0x1bb99e=this['_suggestionFactory']['getSuggestionCallback'](_0x4070('0x1'),_0x349ed4,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x1bb99e([_0x4d5cc2],null,_0x1680d1)),null;}}else{const _0x54511d=_0x4d5cc2['getIntersection'](_0x46e1b2['getFirstRange']());null!==_0x54511d&&_0x46e1b2[_0x4070('0x125')]([_0x54511d],null,_0x1680d1);}}if(_0x4d5cc2[_0x4070('0x18')](),_0x4d5cc2[_0x4070('0x3d')]||_0x4070('0xa9')==_0x4d5cc2[_0x4070('0xa4')][_0x4070('0x5f')])return null;let _0x2a17fe=null,_0x1d4862=_0x4d5cc2[_0x4070('0xe6')],_0x382eb5=_0x4d5cc2['end'];const _0x216bdb=this[_0x4070('0x98')](_0x4d5cc2,_0x4070('0x1'));for(const {suggestion:_0xa5727,meta:_0x1b4417}of _0x216bdb){const _0x405cdf=this[_0x4070('0x58')][_0x4070('0x10a')](_0x1d4862,_0x382eb5);if(_0x1b4417[_0x4070('0xc8')]&&(this[_0x4070('0x6d')]||!_0x1b4417[_0x4070('0xf')]&&!_0x1b4417[_0x4070('0x67')])){if(_0xa5727[_0x4070('0x62')]){if(!Ut(_0xa5727,_0x1680d1))continue;let _0x164328=!0x0;for(const _0x903cd1 of _0xa5727[_0x4070('0x5b')]()){if(_0x903cd1[_0x4070('0x8d')](_0x405cdf,!0x0))return _0xa5727;_0x405cdf[_0x4070('0x8d')](_0x903cd1)||(_0x164328=!0x1);}_0x164328&&_0xa5727[_0x4070('0xdd')]();}else{const _0x45567c=_0xa5727['getFirstRange']();if(_0x45567c[_0x4070('0x8d')](_0x405cdf,!0x0))return _0xa5727;if(!Ut(_0xa5727,_0x1680d1)){_0x405cdf[_0x4070('0x8d')](_0x45567c)?_0xa5727[_0x4070('0x1d')]():_0x45567c[_0x4070('0x87')](_0x1d4862)?_0x1d4862=_0x45567c[_0x4070('0x39')]:_0x45567c[_0x4070('0x87')](_0x382eb5)&&(_0x382eb5=_0x45567c[_0x4070('0xe6')]);continue;}_0x1d4862=_0x1d4862['isBefore'](_0x45567c['start'])?_0x1d4862:_0x45567c[_0x4070('0xe6')],_0x382eb5=_0x382eb5[_0x4070('0x122')](_0x45567c[_0x4070('0x39')])?_0x382eb5:_0x45567c[_0x4070('0x39')],_0x1680d1=Object[_0x4070('0xd6')]({},_0xa5727[_0x4070('0xb7')]),_0x2a17fe?_0x45567c[_0x4070('0xe6')][_0x4070('0x108')](_0x2a17fe[_0x4070('0xcc')]()[_0x4070('0xe6')])?(_0x2a17fe['removeMarkers'](),_0x2a17fe=_0xa5727):_0xa5727[_0x4070('0x1d')]():_0x2a17fe=_0xa5727;}}}if(_0x2a17fe)return this[_0x4070('0xd5')](_0x2a17fe,this[_0x4070('0x58')]['createRange'](_0x1d4862,_0x382eb5)),_0x2a17fe;{const _0x3380fe=_0x2cecee(),_0x5d4d18=this[_0x4070('0x58')]['createRange'](_0x1d4862,_0x382eb5),_0x45a734=_0x1434fb['id'],_0x2245c8=_0x349ed4?'deletion:'+_0x349ed4:'deletion',_0x48626c=this[_0x4070('0xeb')]({'id':_0x3380fe,'type':_0x2245c8,'createdAt':new Date(),'authorId':_0x45a734,'attributes':_0x1680d1});return this[_0x4070('0x53')](_0x2245c8,_0x3380fe,_0x45a734,_0x5d4d18),_0x48626c;}}['markMultiRangeDeletion'](_0x4ad8b3,_0x439243=_0x4070('0x11e'),_0x58e5c2={}){const _0x35934d=this[_0x4070('0xab')][_0x4070('0x116')][_0x4070('0x54')]('Users')['me'],_0x31163f=_0x4ad8b3[_0x4070('0x12f')](_0x13362d=>new _0xa146d2(_0x13362d[_0x4070('0xe6')],_0x13362d[_0x4070('0x39')])),_0x763d1f=new Set();for(const {suggestion:_0x2c0826,meta:_0xcff323}of this[_0x4070('0x98')](_0x31163f,_0x4070('0x9b')))_0xcff323[_0x4070('0xc8')]&&!_0xcff323['isNextTo']&&_0x763d1f[_0x4070('0xd8')](_0x2c0826);for(const _0x5900d3 of _0x763d1f)if(_0x5900d3[_0x4070('0x62')]){const _0x1ec2ca=_0x5900d3[_0x4070('0x5b')]();(!_0x5900d3[_0x4070('0xb7')]||!_0x5900d3[_0x4070('0xb7')][_0x4070('0x86')])&&(_0x1ec2ca[_0x4070('0x64')](_0x339c3e=>_0x31163f[_0x4070('0x60')](_0x27260d=>_0x27260d[_0x4070('0x8d')](_0x339c3e,!0x0)))&&_0x5900d3['discard']());if(_0x31163f[_0x4070('0x64')](_0x28fa95=>_0x1ec2ca['some'](_0x226a76=>_0x226a76[_0x4070('0x8d')](_0x28fa95,!0x0)))){const _0x121d93=this['_suggestionFactory'][_0x4070('0x28')](_0x4070('0x1'),_0x439243,_0x4070('0x129'));return this[_0x4070('0x6f')](()=>_0x121d93(_0x4ad8b3,null,_0x58e5c2)),null;}}else{const _0x135bc1=_0x5900d3['getFirstRange']();_0x31163f[_0x4070('0x60')](_0x244b8c=>_0x244b8c[_0x4070('0x8d')](_0x135bc1,!0x0))&&_0x5900d3['discard']();if(_0x31163f[_0x4070('0x64')](_0x2c372a=>_0x135bc1[_0x4070('0x8d')](_0x2c372a,!0x0))){const _0x14f8b5=this['_suggestionFactory'][_0x4070('0x28')]('deletion',_0x439243,'accept');return this['forceDefaultExecution'](()=>_0x14f8b5(_0x31163f,null,_0x58e5c2)),null;}}const _0x592e1c=this[_0x4070('0xb4')][_0x4070('0x28')](_0x4070('0x1'),_0x439243,_0x4070('0x11a'));let _0x1fb6f6=null;for(const _0x1bfcdc of this['getSuggestions']())if(_0x1bfcdc['author']['id']==_0x35934d['id']&&_0x1bfcdc['isInContent']&&'deletion'==_0x1bfcdc[_0x4070('0xef')]&&_0x1bfcdc[_0x4070('0x97')]==_0x439243&&Ut(_0x1bfcdc,_0x58e5c2)&&(_0x592e1c(_0x1bfcdc[_0x4070('0x5b')](),_0x31163f)||_0x592e1c(_0x31163f,_0x1bfcdc['getRanges']()))){if(_0x1fb6f6){if(_0x1bfcdc[_0x4070('0x2d')]&&_0x1bfcdc[_0x4070('0x2d')]['length'])continue;for(const _0x361dee of _0x1bfcdc[_0x4070('0x5b')]())_0x1fb6f6[_0x4070('0xc2')](_0x361dee)||_0x1fb6f6[_0x4070('0xdb')](_0x361dee);_0x1bfcdc['removeMarkers']();}else{_0x1fb6f6=_0x1bfcdc;for(const _0x3d4874 of _0x31163f)_0x1bfcdc[_0x4070('0xc2')](_0x3d4874)||_0x1bfcdc[_0x4070('0xdb')](_0x3d4874);}}if(_0x1fb6f6)return _0x1fb6f6;_0x763d1f[_0x4070('0xea')]();for(const {suggestion:_0x54c0f8,meta:_0x4dbc24}of this[_0x4070('0x98')](_0x31163f,_0x4070('0x1')))_0x4dbc24[_0x4070('0xc8')]&&(this[_0x4070('0x6d')]||!_0x4dbc24[_0x4070('0xf')]&&!_0x4dbc24[_0x4070('0x67')])&&Ut(_0x54c0f8,_0x58e5c2)&&_0x763d1f[_0x4070('0xd8')](_0x54c0f8);for(const _0x469af5 of _0x763d1f){const _0x1cb97a=_0x469af5[_0x4070('0x5b')]();if(!_0x58e5c2||!_0x58e5c2[_0x4070('0x86')]){if(_0x31163f['every'](_0x152370=>_0x1cb97a[_0x4070('0x60')](_0x13fe71=>_0x13fe71[_0x4070('0x8d')](_0x152370,!0x0))))return _0x469af5;}(!_0x469af5['attributes']||!_0x469af5[_0x4070('0xb7')][_0x4070('0x86')])&&(_0x1cb97a[_0x4070('0x64')](_0x26ae91=>_0x31163f['some'](_0x15b7e6=>_0x15b7e6[_0x4070('0x8d')](_0x26ae91,!0x0)))&&_0x469af5[_0x4070('0xdd')]());}const _0x3c97dd=_0x2cecee(),_0x1b1aff=_0x35934d['id'],_0x101bb5=_0x4070('0x127')+_0x439243,_0x25c076=this[_0x4070('0xeb')]({'id':_0x3c97dd,'type':_0x101bb5,'createdAt':new Date(),'authorId':_0x1b1aff,'attributes':_0x58e5c2});for(const _0x3021aa of _0x31163f)_0x3021aa['detach'](),_0x3021aa[_0x4070('0x3d')]||_0x4070('0xa9')==_0x3021aa['root']['rootName']||this[_0x4070('0x53')](_0x101bb5,_0x3c97dd,_0x1b1aff,_0x3021aa,_0x4062b9[_0x4070('0xf7')]());return _0x25c076;}[_0x4070('0xd5')](_0x206483,_0x1c6919){const _0x84ed7b=_0x206483[_0x4070('0x91')]();this['_model'][_0x4070('0x113')](_0x3de92b=>{_0x3de92b[_0x4070('0x1f')](_0x84ed7b,{'range':_0x1c6919});});}[_0x4070('0x120')](_0x81f66a){const _0x3178a2=_0x81f66a['id'],_0x53df76=this['editor'][_0x4070('0x51')][_0x4070('0x54')](_0x4070('0xda'));this[_0x4070('0xf1')][_0x4070('0xa1')](_0x3178a2)||this[_0x4070('0xf1')][_0x4070('0x94')]({'channelId':_0x53df76,'threadId':_0x3178a2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x111af4=this[_0x4070('0xf1')][_0x4070('0x66')](_0x3178a2);_0x111af4[_0x4070('0x15')](_0x4070('0x45')),_0x111af4['isRemovable']=!0x1,_0x81f66a[_0x4070('0x2d')]=_0x111af4;}['_checkSuggestionCorrectness'](_0x738736,_0x1c5b4f,_0x264186,_0x19f27a){if(_0x738736[_0x4070('0xef')]!=_0x1c5b4f||_0x738736[_0x4070('0x97')]!=_0x264186||_0x738736[_0x4070('0x6b')]['id']!=_0x19f27a)throw this[_0x4070('0xab')][_0x4070('0xe9')]('track-changes-suggestion-data-mismatch'),new _0xe2c45(_0x4070('0xc'),this);}[_0x4070('0x2e')](_0x4a3551,_0x2ea9a2){const _0x5e6966=_0x4a3551['getFirstRange']();if(_0x2ea9a2[_0x4070('0xfd')](_0x5e6966))_0x4a3551['removeMarkers']();else{if(_0x5e6966[_0x4070('0x8d')](_0x2ea9a2)){const _0xe87acc=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0xe6')][_0x4070('0xe2')],_0x4070('0x39'));this[_0x4070('0xd5')](_0x4a3551,this['_model']['createRange'](_0x5e6966[_0x4070('0xe6')],_0xe87acc));const _0x5117bf=_0x2cecee(),_0x33dd20=_0x4a3551[_0x4070('0x6b')]['id'],_0x4b1f89=_0x4a3551[_0x4070('0xef')]+':'+_0x4a3551[_0x4070('0x97')];this[_0x4070('0xeb')]({'id':_0x5117bf,'type':_0x4b1f89,'createdAt':new Date(),'authorId':_0x33dd20,'data':_0x4a3551['data'],'attributes':_0x4a3551[_0x4070('0xb7')]});const _0x5e0228=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0x39')]['parent'],'after'),_0x567fb2=this[_0x4070('0x58')][_0x4070('0x10a')](_0x5e0228,_0x5e6966[_0x4070('0x39')]);this[_0x4070('0x53')](_0x4b1f89,_0x5117bf,_0x33dd20,_0x567fb2);}else{if(_0x5e6966[_0x4070('0x87')](_0x2ea9a2[_0x4070('0xe6')])){const _0x22015c=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0xe6')]['nodeBefore'],'end');this[_0x4070('0xd5')](_0x4a3551,this[_0x4070('0x58')][_0x4070('0x10a')](_0x5e6966[_0x4070('0xe6')],_0x22015c));}else{const _0x5e5a2f=this[_0x4070('0x58')][_0x4070('0x47')](_0x2ea9a2[_0x4070('0x39')][_0x4070('0xe3')],'after');this[_0x4070('0xd5')](_0x4a3551,this[_0x4070('0x58')]['createRange'](_0x5e5a2f,_0x5e6966[_0x4070('0x39')]));}}}}[_0x4070('0x10b')](_0x39f460){for(const {suggestion:_0x1586eb,meta:_0x57bc54}of this[_0x4070('0x98')](_0x39f460,_0x4070('0x9b'))){if(!_0x57bc54[_0x4070('0xc8')])continue;const _0x3ac7b2=_0x1586eb[_0x4070('0x5b')]();for(const _0x2e3891 of _0x3ac7b2)if(!_0x39f460[_0x4070('0xbd')](_0x2e3891)[_0x4070('0x79')])return!0x0;}return!0x1;}[_0x4070('0xf2')](_0x51bd8e){const _0x5ef549=this[_0x4070('0xab')][_0x4070('0x116')]['get'](_0x4070('0xd9'))[_0x4070('0x4f')](_0x51bd8e);if(!_0x5ef549)throw new _0xe2c45(_0x4070('0xed'),this);return _0x5ef549;}[_0x4070('0xf6')](_0x1560f1){const _0xbf8696=this['editor'][_0x4070('0x116')][_0x4070('0x54')]('Users'),_0x23a21b=_0x211e1a(_0x4070('0xbb')+_0x1560f1),_0x5ddaa0=_0xbf8696[_0x4070('0x4f')](_0x23a21b);return _0x5ddaa0||_0xbf8696[_0x4070('0x7d')]({'id':_0x23a21b,'name':_0x1560f1});}['_createSuggestion'](_0x9fe8d,_0x5785f1,_0x535874,_0x4edaa1,_0x32c654){const _0x3275ac=this[_0x4070('0xf2')](_0x4edaa1),_0x24da9f=this[_0x4070('0xb4')][_0x4070('0x133')](_0x9fe8d,_0x5785f1,_0x535874,_0x3275ac,_0x32c654,_0x4e26e2=>this[_0x4070('0x93')](_0x535874,{'attributes':_0x4e26e2}));return this[_0x4070('0x4')](_0x24da9f,'accept',()=>{this['_updateSuggestionData'](_0x535874,{'state':'accepted'});},{'priority':'high'}),this[_0x4070('0x4')](_0x24da9f,_0x4070('0xdd'),()=>{this['_updateSuggestionData'](_0x535874,{'state':_0x4070('0x74')});},{'priority':'high'}),this[_0x4070('0x41')]['set'](_0x535874,_0x24da9f),this[_0x4070('0x5c')][_0x4070('0x13a')](_0x24da9f,'notReady'),_0x24da9f;}[_0x4070('0x8c')](_0x263b73){const _0x1b0500=_0x263b73[_0x4070('0x3f')](':');return{'group':_0x1b0500[0x0],'type':_0x1b0500[0x1],'subType':_0x1b0500[_0x4070('0x79')]>=0x5?_0x1b0500[0x2]:null,'id':_0x1b0500[_0x4070('0x79')]<0x5?_0x1b0500[0x2]:_0x1b0500[0x3],'authorId':_0x1b0500['length']<0x5?_0x1b0500[0x3]:_0x1b0500[0x4],'markerCount':0x6==_0x1b0500[_0x4070('0x79')]?_0x1b0500[0x5]:null};}[_0x4070('0x4e')](_0x537905,_0x5efc8d,_0x3175ed){const _0x4e02f6=_0x537905[_0x4070('0xcc')](),_0x2a9436=_0x4e02f6[_0x4070('0xe6')],_0x449b55=_0x4e02f6[_0x4070('0x39')];this['_setSuggestionRange'](_0x537905,this[_0x4070('0x58')]['createRange'](_0x2a9436,_0x5efc8d));const _0x494e41=_0x2cecee(),_0x2e8b78=_0x537905[_0x4070('0x6b')]['id'],_0x56b9f0=_0x537905[_0x4070('0xef')]+(_0x537905[_0x4070('0x97')]?':'+_0x537905[_0x4070('0x97')]:'');this[_0x4070('0xeb')]({'id':_0x494e41,'type':_0x56b9f0,'createdAt':new Date(),'authorId':_0x2e8b78,'originalSuggestionId':_0x537905['id'],'attributes':_0x537905[_0x4070('0xb7')],'data':_0x537905[_0x4070('0x78')]}),'formatBlock'==_0x537905[_0x4070('0xef')]&&(_0x3175ed=this[_0x4070('0x58')][_0x4070('0xcd')](_0x3175ed[_0x4070('0xe3')])),this[_0x4070('0x53')](_0x56b9f0,_0x494e41,_0x2e8b78,this[_0x4070('0x58')][_0x4070('0x10a')](_0x3175ed,_0x449b55));}[_0x4070('0x98')](_0x16f099,_0x1e7536=null){const _0x33da88=[],_0x377c76=this['editor'][_0x4070('0x116')][_0x4070('0x54')]('Users')['me'];Array[_0x4070('0x136')](_0x16f099)||(_0x16f099=[_0x16f099]);for(const _0x31824f of this['getSuggestions']()){if(!_0x31824f['isInContent'])continue;if(_0x1e7536&&_0x31824f[_0x4070('0xef')]!=_0x1e7536)continue;let _0x2ad4bb=!0x1;for(const _0x435710 of _0x31824f[_0x4070('0x5b')]()){for(const _0x30c338 of _0x16f099){const _0x1f05c7=_0x30c338['start'][_0x4070('0xfd')](_0x435710[_0x4070('0x39')])||_0x30c338[_0x4070('0x39')][_0x4070('0xfd')](_0x435710[_0x4070('0xe6')]);if(_0x1f05c7||_0x30c338['getIntersection'](_0x435710)){const _0x41028a=_0x30c338['containsRange'](_0x435710)&&Bt(this[_0x4070('0x58')][_0x4070('0xe8')],_0x435710[_0x4070('0xe6')],_0x30c338),_0x104bf2=_0x435710[_0x4070('0x8d')](_0x30c338)&&Bt(this[_0x4070('0x58')][_0x4070('0xe8')],_0x30c338[_0x4070('0xe6')],_0x435710);_0x33da88['push']({'suggestion':_0x31824f,'meta':{'isOwn':_0x377c76==_0x31824f[_0x4070('0x124')],'isNextTo':_0x1f05c7,'isInsideObject':_0x41028a,'containsRangeInObject':_0x104bf2}}),_0x2ad4bb=!0x0;break;}}if(_0x2ad4bb)break;}}return _0x33da88;}[_0x4070('0x53')](_0x2959ba,_0x2f6f12,_0x16bdd4,_0x1b8d30,_0x36ed13){this[_0x4070('0x58')]['change'](_0x21b6f1=>{let _0x2543f7=_0x4070('0x25')+_0x2959ba+':'+_0x2f6f12+':'+_0x16bdd4;_0x36ed13&&(_0x2543f7=_0x2543f7+':'+_0x36ed13),_0x21b6f1[_0x4070('0x9d')](_0x2543f7,{'range':_0x1b8d30,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4070('0x26')](_0x34940e){const _0x5b7081=_0x34940e[_0x4070('0x5d')],_0x663026=_0x34940e[_0x4070('0x44')];_0x34940e[_0x4070('0x5d')]=null,null!=_0x5b7081&&(_0x5b7081[_0x4070('0x44')]=null),_0x34940e['next']=null,null!=_0x663026&&(_0x663026[_0x4070('0x5d')]=null),_0x4070('0x21')==this[_0x4070('0x5c')]['get'](_0x34940e)&&(this[_0x4070('0x5c')][_0x4070('0x13a')](_0x34940e,'removed'),this[_0x4070('0xb3')]('suggestionUnloaded',_0x34940e,_0x5b7081,_0x663026));}[_0x4070('0xeb')](_0x4b657a){const _0x20a1fc=_0x4b657a['id'],_0x397978=this[_0x4070('0xc0')](_0x4b657a);if(this[_0x4070('0x36')]&&this['_adapter'][_0x4070('0x138')]){const _0x51b378=this['editor'][_0x4070('0x116')][_0x4070('0x54')](_0x4070('0x6a')),_0x2bcd5d=_0x397978[_0x4070('0x9a')],_0x3c00f4=_0x397978['subType']?_0x397978[_0x4070('0xef')]+':'+_0x397978['subType']:_0x397978['type'],_0xce573f=this[_0x4070('0xab')][_0x4070('0xd7')],_0x38d2f1=_0x51b378[_0x4070('0xd8')](_0xa532f(_0xce573f,_0x4070('0x46'))),_0x3944ec={'id':_0x20a1fc,'type':_0x3c00f4,'hasComments':_0x2bcd5d,'data':_0x4b657a['data']||null,'originalSuggestionId':_0x4b657a['originalSuggestionId']||null,'attributes':_0x397978[_0x4070('0xb7')]};this[_0x4070('0x36')][_0x4070('0x138')](_0x3944ec)[_0x4070('0xa0')](_0x562408=>{_0x397978[_0x4070('0xd2')]=!0x0,_0x51b378[_0x4070('0x77')](_0x38d2f1),_0x562408&&_0x562408[_0x4070('0x115')]&&(this['_suggestions'][_0x4070('0x54')](_0x20a1fc)[_0x4070('0x115')]=_0x562408[_0x4070('0x115')]);})[_0x4070('0x8e')](_0x582959=>{throw _0x2f3731('error-saving-suggestion-data-suggestion-discarded'),this[_0x4070('0xab')][_0x4070('0xbe')][_0x4070('0x70')]({'isUndoable':!0x1},()=>{_0x397978[_0x4070('0xdd')]();}),_0x397978[_0x4070('0x68')](),this[_0x4070('0x41')][_0x4070('0x75')](_0x397978['id']),this[_0x4070('0x5c')][_0x4070('0x75')](_0x397978),_0x582959;});}return _0x397978;}[_0x4070('0x93')](_0x779e7b,_0x4c0234){const _0x4fe699=this['editor']['plugins'][_0x4070('0x54')](_0x4070('0x6a')),_0x4abbdc=this[_0x4070('0x9f')](_0x779e7b);if(this['_adapter']&&this[_0x4070('0x36')][_0x4070('0x10c')]){if(_0x4abbdc[_0x4070('0xd2')]){const _0x430dca=_0x4fe699['add'](_0xa532f(this['editor'][_0x4070('0xd7')],'PENDING_ACTION_SUGGESTION'));this[_0x4070('0x36')][_0x4070('0x10c')](_0x779e7b,_0x4c0234)['then'](()=>{_0x4fe699[_0x4070('0x77')](_0x430dca);});}else _0x4abbdc['on']('change:_saved',()=>{this[_0x4070('0x93')](_0x779e7b,_0x4c0234);});}}[_0x4070('0x5a')](_0x188f70){if(!this['_adapter']||!this[_0x4070('0x36')][_0x4070('0x9f')])throw new _0xe2c45(_0x4070('0x100'),this);return this['_adapter'][_0x4070('0x9f')](_0x188f70);}[_0x4070('0x12c')](_0xb6ed49){const {id:_0x361235,type:_0x540b95,subType:_0x42110e,authorId:_0x235023}=this[_0x4070('0x8c')](_0xb6ed49),_0x19df79=this[_0x4070('0x41')][_0x4070('0x54')](_0x361235)||this['_createSuggestion'](_0x540b95,_0x42110e,_0x361235,_0x235023,{});switch(this[_0x4070('0x11c')](_0x19df79,_0x540b95,_0x42110e,_0x235023),this[_0x4070('0x5c')][_0x4070('0x54')](_0x19df79)){case _0x4070('0x27'):this[_0x4070('0x5a')](_0x361235)[_0x4070('0xa0')](_0x2e9399=>{let _0x22b4b2=Promise['resolve']();_0x2e9399['hasComments']&&(_0x22b4b2=this[_0x4070('0xf1')]['fetchCommentThread']({'channelId':this[_0x4070('0xab')][_0x4070('0x51')][_0x4070('0x54')](_0x4070('0xda')),'threadId':_0x361235})),_0x22b4b2[_0x4070('0xa0')](()=>{this[_0x4070('0xc0')](_0x2e9399)[_0x4070('0xd2')]=!0x0;});}),this[_0x4070('0x5c')][_0x4070('0x13a')](_0x19df79,_0x4070('0x11d'));break;case _0x4070('0x105'):this[_0x4070('0x93')](_0x361235,{'state':_0x4070('0x119')});case'dataReady':this[_0x4070('0x5c')][_0x4070('0x13a')](_0x19df79,_0x4070('0x21')),this[_0x4070('0xb3')](_0x4070('0xa'),_0x19df79);break;case'ready':this[_0x4070('0xb3')]('suggestionChanged',_0x19df79);}return _0x19df79[_0x4070('0x65')](_0xb6ed49),_0x19df79;}[_0x4070('0x104')](_0x133811){const _0x10f5a1=Array[_0x4070('0x31')](_0x133811)['filter'](_0x31d94f=>!_0x31d94f[_0x4070('0x62')]),_0x1ccf02=this[_0x4070('0xc3')]({'skipNotAttached':!0x0})[_0x4070('0x112')](_0x4dba69=>!_0x4dba69['isMultiRange']),_0x3cfdc3=_0x1ccf02['filter'](_0x1d564a=>!_0x133811['has'](_0x1d564a)),_0x12b3ec=new Map(_0x1ccf02['map'](_0x1255b1=>[_0x1255b1,this[_0x4070('0xb4')][_0x4070('0x28')](_0x1255b1[_0x4070('0xef')],_0x1255b1[_0x4070('0x97')],'chain')])),_0x17367b=new Map(_0x1ccf02['map'](_0x18444e=>[_0x18444e,_0x18444e[_0x4070('0xcc')]()])),_0xc3b27f=new Set(),_0x3fe609=new Set();for(let _0x506a38=0x0;_0x506a38<_0x10f5a1[_0x4070('0x79')];_0x506a38++)_0x2962ab(_0x10f5a1[_0x506a38],_0x10f5a1,_0x506a38+0x1);for(let _0x2be0c3=0x0;_0x2be0c3<_0x10f5a1[_0x4070('0x79')];_0x2be0c3++)_0x2962ab(_0x10f5a1[_0x2be0c3],_0x3cfdc3,0x0);for(let _0x5e32bf=0x0;_0x5e32bf<_0x10f5a1['length'];_0x5e32bf++){const _0x349138=_0x10f5a1[_0x5e32bf];!_0x3fe609['has'](_0x349138)&&_0x349138[_0x4070('0x5d')]&&(_0x349138['previous'][_0x4070('0x44')]===_0x349138&&(_0x349138[_0x4070('0x5d')][_0x4070('0x44')]=null),_0x349138[_0x4070('0x5d')]=null),!_0xc3b27f['has'](_0x349138)&&_0x349138[_0x4070('0x44')]&&(_0x349138['next']['previous']===_0x349138&&(_0x349138[_0x4070('0x44')][_0x4070('0x5d')]=null),_0x349138[_0x4070('0x44')]=null);}function _0x2962ab(_0x17c9e9,_0x3ea4b4,_0x2dd633){for(let _0x1b13e9=_0x2dd633;_0x1b13e9<_0x3ea4b4[_0x4070('0x79')];_0x1b13e9++){const _0x2bee26=_0x37cf47(_0x17c9e9,_0x3ea4b4[_0x1b13e9]);_0x2bee26&&(_0x2bee26[0x0]['next']=_0x2bee26[0x1],_0x2bee26[0x1][_0x4070('0x5d')]=_0x2bee26[0x0],_0xc3b27f[_0x4070('0xd8')](_0x2bee26[0x0]),_0x3fe609[_0x4070('0xd8')](_0x2bee26[0x1]));}}function _0x37cf47(_0x30d990,_0x51fae2){if(_0x30d990[_0x4070('0x124')]['id']!==_0x51fae2[_0x4070('0x124')]['id'])return null;const _0x10c494=_0x12b3ec[_0x4070('0x54')](_0x30d990)(_0x30d990,_0x51fae2,_0x17367b['get'](_0x30d990),_0x17367b[_0x4070('0x54')](_0x51fae2));if(!_0x10c494)return null;return _0x12b3ec['get'](_0x51fae2)(_0x30d990,_0x51fae2,_0x17367b[_0x4070('0x54')](_0x30d990),_0x17367b[_0x4070('0x54')](_0x51fae2))?_0x10c494[0x1][_0x4070('0x2d')]&&_0x10c494[0x1][_0x4070('0x2d')]['length']?null:_0x10c494:null;}}[_0x4070('0x110')](_0x532c0c){const _0x4cf27f=Array['from'](_0x532c0c),_0x5ebfad=this[_0x4070('0xc3')]({'skipNotAttached':!0x0}),_0x1e19a2=_0x5ebfad[_0x4070('0x112')](_0x15ba58=>!_0x532c0c[_0x4070('0x131')](_0x15ba58)),_0x1018fa=new Map(_0x4cf27f['map'](_0x350a84=>[_0x350a84,this[_0x4070('0xb4')][_0x4070('0x28')](_0x350a84[_0x4070('0xef')],_0x350a84[_0x4070('0x97')],_0x4070('0x11a'))])),_0x27ec52=new Map(_0x5ebfad[_0x4070('0x12f')](_0x2eecf9=>[_0x2eecf9,_0x2eecf9[_0x4070('0x5b')]()]));for(let _0x32a209=0x0;_0x32a209<_0x4cf27f[_0x4070('0x79')];_0x32a209++){if(_0x351558(this,_0x4cf27f[_0x32a209],_0x4cf27f,_0x32a209+0x1))return!0x0;}for(let _0x4f002f=0x0;_0x4f002f<_0x4cf27f[_0x4070('0x79')];_0x4f002f++){if(_0x351558(this,_0x4cf27f[_0x4f002f],_0x1e19a2,0x0))return!0x0;}return!0x1;function _0x351558(_0x3c9b7e,_0x183af7,_0x3937e7,_0x16be0b){for(let _0x2b0b72=_0x16be0b;_0x2b0b72<_0x3937e7[_0x4070('0x79')];_0x2b0b72++){const _0x4d491e=_0x3937e7[_0x2b0b72];if(_0x4d491e['type']!==_0x183af7['type']||_0x4d491e[_0x4070('0x124')]['id']!==_0x183af7['author']['id']||_0x4d491e[_0x4070('0x97')]!==_0x183af7[_0x4070('0x97')])continue;if(!xt(_0x183af7,_0x4d491e))continue;const _0x340b81=_0x1018fa[_0x4070('0x54')](_0x183af7),_0x9e5eb=_0x27ec52[_0x4070('0x54')](_0x183af7),_0x56bc44=_0x27ec52['get'](_0x4d491e),_0x211ce4=_0x183af7[_0x4070('0x2d')]&&_0x183af7['commentThread'][_0x4070('0x79')],_0x5f1b61=_0x4d491e[_0x4070('0x2d')]&&_0x4d491e['commentThread']['length'];if(!_0x211ce4&&_0x340b81(_0x56bc44,_0x9e5eb))return _0x3c9b7e[_0x4070('0x23')](_0x4d491e,_0x183af7),_0x27ec52['delete'](_0x183af7),!0x0;if(!_0x5f1b61&&_0x340b81(_0x9e5eb,_0x56bc44))return _0x3c9b7e['_joinSuggestions'](_0x183af7,_0x4d491e),_0x27ec52[_0x4070('0x75')](_0x4d491e),!0x0;}return!0x1;}}[_0x4070('0x23')](_0x570881,_0x4c4f6e){if(_0x570881['isMultiRange'])for(const _0x455fe0 of _0x4c4f6e[_0x4070('0x5b')]())_0x570881[_0x4070('0xdb')](_0x455fe0);else{const _0x2305c8=_0x4c4f6e[_0x4070('0xcc')]()[_0x4070('0x39')];this[_0x4070('0xd5')](_0x570881,this[_0x4070('0x58')][_0x4070('0x10a')](_0x570881['getFirstRange']()[_0x4070('0xe6')],_0x2305c8));}_0x4c4f6e[_0x4070('0x1d')]();}}class Dt{constructor(_0xe8c426){this[_0x4070('0x137')]=_0xe8c426,this[_0x4070('0x58')]=_0xe8c426[_0x4070('0xbe')],this[_0x4070('0x82')]=new Map(),this[_0x4070('0xf3')]=new Map(),this[_0x4070('0xc6')]();}[_0x4070('0x133')](_0x2bfd14,_0x2759f2,_0x4f446a,_0x4121be,_0x2196b8,_0x5b9b27){return new _0x4062b9(this[_0x4070('0x58')],{'type':_0x2bfd14,'subType':_0x2759f2,'id':_0x4f446a,'author':_0x4121be,'creator':_0x4121be,'attributes':_0x2196b8,'onAttributesChange':_0x5b9b27,'onAccept':(..._0x37a6b9)=>this[_0x4070('0x28')](_0x2bfd14,_0x2759f2,_0x4070('0x129'))(..._0x37a6b9),'onDiscard':(..._0xed1abf)=>this[_0x4070('0x28')](_0x2bfd14,_0x2759f2,'discard')(..._0xed1abf)});}[_0x4070('0x10d')](_0x3505b1,_0x4b0598,_0x1e80b8,_0x15e0e8){const _0x4d7f5c=_0x3505b1+':'+_0x4b0598+':'+_0x1e80b8;this['_customCallbacks']['set'](_0x4d7f5c,_0x15e0e8);}['getSuggestionCallback'](_0x1e04ec,_0x1638b8,_0x9bd225){const _0x11e23d=_0x1e04ec+':'+_0x1638b8+':'+_0x9bd225;return this[_0x4070('0x82')][_0x4070('0x54')](_0x11e23d)||this[_0x4070('0xf3')][_0x4070('0x54')](_0x1e04ec+':'+_0x9bd225);}[_0x4070('0xc6')](){const _0x365ce0=()=>!0x1,_0x3312e8=_0xec210b=>{_0xec210b[_0x4070('0xff')]((_0x5eda87,_0x5154a1)=>_0x5eda87[_0x4070('0xe6')]['isBefore'](_0x5154a1['start'])?0x1:-0x1),this[_0x4070('0x58')]['change'](_0x40f5ab=>{for(const _0x50a327 of _0xec210b){let _0x25049e;_0x25049e=_0x50a327['end'][_0x4070('0x40')]&&_0x50a327['end']['parent']==_0x50a327[_0x4070('0xe6')][_0x4070('0x42')]?_0x40f5ab[_0x4070('0x9')](_0x50a327['start'][_0x4070('0x42')],'on'):_0x40f5ab[_0x4070('0x9')](_0x50a327),this['_model'][_0x4070('0x126')](_0x25049e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b52bc=(_0x283b45,_0x2c6444)=>{this[_0x4070('0x58')]['change'](_0x4f6477=>{const {commandName:_0x20e1ae,commandParams:_0x1a3aa4=[]}=_0x2c6444,_0x10624f=_0x283b45[_0x4070('0x12f')](_0x3f5647=>(_t(_0x3f5647)&&(_0x3f5647=this['_model']['createRange'](_0x3f5647['end'])),_0x3f5647))[_0x4070('0x112')](_0x5d0b92=>_0x4070('0xa9')!==_0x5d0b92[_0x4070('0xa4')]['rootName']);if(_0x10624f[_0x4070('0x79')]<0x1)return;const _0x37f031=Array[_0x4070('0x31')](this['_model'][_0x4070('0xfa')][_0x4070('0x32')][_0x4070('0x5b')]())['map'](_0x284dbe=>_0xa146d2[_0x4070('0x5e')](_0x284dbe));_0x4f6477[_0x4070('0x48')](_0x10624f);for(const _0x446dfd of this[_0x4070('0x137')][_0x4070('0x76')][_0x4070('0x76')]())_0x446dfd['refresh']();_0x1a3aa4[_0x4070('0xc1')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4070('0x5')](_0x20e1ae,..._0x1a3aa4);const _0x24e765=_0x37f031['filter'](_0x667a97=>'$graveyard'!=_0x667a97[_0x4070('0xa4')]['rootName']);_0x24e765[_0x4070('0x79')]>0x0&&_0x4f6477[_0x4070('0x48')](_0x24e765);for(const _0x44b025 of _0x37f031)_0x44b025[_0x4070('0x18')]();});},_0x561ce0=(_0x4c88a9,_0x174745)=>0x1==_0x4c88a9[_0x4070('0x79')]&&0x1==_0x174745[_0x4070('0x79')]&&_0x4c88a9[0x0]['end'][_0x4070('0xfd')](_0x174745[0x0][_0x4070('0xe6')]),_0x12c53d=(_0x3e81f1,_0x103dca,_0x1a5862,_0xaf2d92)=>jt(_0x3e81f1,_0x103dca,_0x1a5862,_0xaf2d92,this[_0x4070('0x58')])?[_0x3e81f1,_0x103dca]:jt(_0x103dca,_0x3e81f1,_0xaf2d92,_0x1a5862,this[_0x4070('0x58')])?[_0x103dca,_0x3e81f1]:null;this[_0x4070('0xf3')][_0x4070('0x13a')]('insertion:accept',_0x365ce0),this['_defaultCallbacks']['set']('insertion:discard',_0x3312e8),this['_defaultCallbacks']['set'](_0x4070('0x84'),_0x561ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0x38'),_0x12c53d),this[_0x4070('0xf3')]['set'](_0x4070('0xa8'),_0x3312e8),this[_0x4070('0xf3')]['set'](_0x4070('0xb1'),_0x365ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0x2'),_0x561ce0),this[_0x4070('0xf3')][_0x4070('0x13a')]('deletion:chain',_0x12c53d),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0xee'),_0x3b52bc),this[_0x4070('0xf3')][_0x4070('0x13a')]('formatInline:discard',_0x365ce0),this['_defaultCallbacks'][_0x4070('0x13a')](_0x4070('0x12'),_0x561ce0),this[_0x4070('0xf3')]['set'](_0x4070('0x103'),_0x365ce0),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b52bc),this[_0x4070('0xf3')]['set'](_0x4070('0xad'),_0x365ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0xba'),_0x561ce0),this[_0x4070('0xf3')][_0x4070('0x13a')](_0x4070('0x2b'),_0x365ce0);}}function Bt(_0x9820a1,_0x1322b6,_0x303593){for(const _0x71b712 of _0x1322b6['parent'][_0x4070('0xdf')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x71b712['root']==_0x71b712)return!0x1;if(!_0x303593[_0x4070('0x95')](_0x71b712))return!0x1;if(_0x9820a1[_0x4070('0x8')](_0x71b712)||_0x9820a1['isLimit'](_0x71b712))return!0x0;}return!0x1;}function _t(_0x22b90d){return _0x22b90d[_0x4070('0x39')][_0x4070('0xe3')]==_0x22b90d[_0x4070('0xe6')]['nodeAfter']&&_0x22b90d['end'][_0x4070('0xde')];}function Mt(_0x59e324,_0xda6e9d,_0x4600a0,_0x1820a4){const _0x42e7e1=_0x43efd7=>!_0x43efd7[_0x4070('0x88')]['is'](_0x4070('0xcb'))&&!_0x1820a4['isObject'](_0x43efd7[_0x4070('0x88')]),_0x40fcff=_0x59e324[_0x4070('0xe6')][_0x4070('0x72')](_0x42e7e1),_0x12f019=_0x59e324['end'][_0x4070('0x72')](_0x42e7e1,{'direction':_0x4070('0xaf')});return(!_0x59e324[_0x4070('0xe6')]['isEqual'](_0x40fcff)||!_0x59e324[_0x4070('0x39')][_0x4070('0xfd')](_0x12f019))&&(_0x40fcff[_0x4070('0x108')](_0x12f019)?_0x4600a0[_0x4070('0x1f')](_0xda6e9d,{'range':_0x4600a0['createRange'](_0x40fcff,_0x12f019)}):_0x4600a0[_0x4070('0x1c')](_0xda6e9d),!0x0);}function $t(_0x13a583){return _0x211e1a(_0x13a583);}function Nt(_0x2adc09){const _0x45d578=_0x2adc09['start'][_0x4070('0x42')];return _0x45d578&&_0x45d578['is'](_0x4070('0xa5'));}function Rt(_0x1f331e,_0x3340f0){const _0x24ca19=_0x3340f0['schema'][_0x4070('0x8')](_0x1f331e)||_0x3340f0[_0x4070('0xe8')][_0x4070('0x128')](_0x1f331e);return _0x3340f0['createRange'](_0x3340f0['createPositionAt'](_0x1f331e,_0x4070('0x56')),_0x24ca19?_0x3340f0[_0x4070('0x16')](_0x1f331e):_0x3340f0[_0x4070('0x47')](_0x1f331e,_0x4070('0x39')));}function jt(_0x110926,_0x247536,_0x71481d,_0x341f62,_0x52b068){if(!xt(_0x110926,_0x247536))return!0x1;if(_0x71481d['end']['isEqual'](_0x341f62[_0x4070('0xe6')]))return!0x0;if(_0x110926[_0x4070('0xef')]!=_0x247536[_0x4070('0xef')])return!0x1;if(!_0x71481d[_0x4070('0x39')][_0x4070('0xa6')](_0x341f62[_0x4070('0xe6')]))return!0x1;const _0x26c7d4=_0x52b068['createRange'](_0x71481d['end'],_0x341f62[_0x4070('0xe6')])[_0x4070('0x7')]();for(const _0x2da79f of _0x26c7d4)if([_0x4070('0x80'),_0x4070('0xb2')][_0x4070('0xa3')](_0x2da79f['type'])&&_0x52b068[_0x4070('0xe8')][_0x4070('0xb0')](_0x2da79f[_0x4070('0x88')]))return!0x1;return!0x0;}function xt(_0x104af1,_0x5df175){return!(!_0x104af1['_isDataLoaded']||!_0x5df175[_0x4070('0x7f')])&&_0x52583c(_0x104af1[_0x4070('0xb7')],_0x5df175[_0x4070('0xb7')]);}function Ut(_0x36c4f1,_0x5e3ca8){const _0x3a885d=Ot(_0x36c4f1['attributes']),_0x141c80=Ot(_0x5e3ca8);if(!_0x36c4f1[_0x4070('0x7f')])return!0x1;for(const _0x25a508 of Object[_0x4070('0x12b')](_0x141c80))if(!_0x52583c(_0x3a885d[_0x25a508],_0x141c80[_0x25a508]))return!0x1;return!0x0;}function Ot(_0x335fd3){const _0x5bf282=Object[_0x4070('0xd6')]({},_0x335fd3);return delete _0x5bf282[_0x4070('0x86')],delete _0x5bf282['tablePasteChainId'],_0x5bf282;}
|
|
23
|
+
const _0xfc38=['getCustomProperty','dataReady','authoredAt','nodeAfter','ck-suggestion-marker','accept','markInlineFormat','formatBlock','getChanges','toViewElement','acceptSelectedSuggestions','dataDowncast','markerToData','conversion','suggestion-type','_mergeNestedSuggestions','stop','selection','chain','discardAllSuggestions','isTouching','getRanges','join','suggestionChanged','reconvertMarker','isEqual','isAfter','widget','_createSuggestion','showSuggestionHighlights','consumable','previous','addSuggestionData','isDocumentOperation','unbind','open','ck-suggestion-marker-formatBlock','isIntersectingWithRange','_editor','createSelection','markMultiRangeDeletion','containsItem','delete','markerNameToElements','never','deletion:','author','ck-suggestion-marker--active','document','fire','track-changes-adapter-missing-getsuggestion','low','collaboration.channelId','insertion:','formatBlock:join','_customCallbacks','toJSON','markers','formatBlock:discard','enableReadOnlyMode','_cutOutSuggestionMarker','deleteContent','createRange','formatInline:chain','markInsertion','unbindElementFromMarkerName','registerCustomCallback','batch','fetchCommentThread','mapper','$graveyard','trackChanges','removeClass','CommentsRepository','_rangeIsInLocalUserInsertion','upcast','howMany','isBefore','then','removeComment','_joinSuggestions','suggestion:','pluginName','forward','hasCommentThread','removed','_addThreadToSuggestion','isNextTo','getUser','targetPosition','getAllAdjacentSuggestions','commands','always','elementToElement','markMultiRangeInsertion','setSelection','@external','containsPosition','setTo','_commentsRepository','_splitMarkerName','track-changes-adapter-already-set','getFirstRange','insertion:accept','change:data','activeMarkers','splitPosition','_suggestions','suggestionUnloaded','attributes','adapter','isLocal','writer','after','item','_setSuggestionData','authorName','createRangeIn','insertion:chain','data','insertion','enableCommand','trackChanges.mergeNestedSuggestions','isUndo','markerToHighlight','tablePasteChainId','accepted','track-changes-command-not-found','init','_isDataLoaded','discard','move','map','moveTargetPosition','_updateSuggestionData','containsRangeInObject','execute','deletion:chain','getCommentThread','getWalker','PendingActions','getChangedMarkers','root','_breakSuggestionMarker','commandName','suggestion','addHighlight','notReady','rethrowUnexpectedError','formatInline:','options','resolve','change:activeMarkers','backward','ready','push','add','splice','_isForcedDefaultExecutionBlock','acceptSuggestion','highest','trackChangesCommand','getNearestSelectionRange','isObject','commentThread','_getAuthorFromId','addRange','deletion:join','isSelectable','updateSuggestion','markerReady','markBlockFormat','Users','_getExternalAuthor','name','refresh','_trackFormatChanges','has','_addSuggestionMarker','getLastMatchingPosition','formatBlock:','setAttribute','change:_saved','multi','model','_setSuggestionRange','_adapter','deletion','substr','PENDING_ACTION_SUGGESTION','group','$marker','marker-count','_joinWithAdjacentSuggestions','schema','nodeBefore','isRemovable','TrackChangesEditing','parent','values','dataToMarker','editor','range','_suggestionState','_handleNewSuggestionMarker','editingDowncast','formatInline:join','discardSuggestion','catch','isOwn','hasComments','formatBlock:accept','updateMarker','includes','acceptAllSuggestions','every','_suggestionFactory','_removeSuggestion','start','for','filter','getSuggestions','getIntersection','addMarker:suggestion:formatBlock','formatGroupId','external:','removeMarker','addMarker','getFirstMarker','split','assign','_findSuggestions','createPositionBefore','plugins','get','containerElement','length','getShiftedBy','forceDefaultExecution','deletion:discard','isAtEnd','clear','position','skipNestingCheck','define','oldRange','data-suggestion','isArray','deletion:accept','stopListening','remove','change','addCommentThread','formatBlock:chain','getAncestors','addSuggestion','track-changes-user-not-found','rootName','lowest','insertion:join','ck-suggestion-marker-','some','isBlock','_saved','requires','sort','value','isInContent','insertContent','type','creator','differ','getMultiRangeId','getMarkers','_refreshSuggestionsChain','hasSuggestion','elementStart','formatInline','_getSuggestionData','from','subType','locale','high','buildSuggestion','_defaultCallbacks','elementEnd','fromCharCode','normal','$textProxy','markerName','newRange','end','_model','next','config','getSuggestion','listenTo','isAtStart','isInsideObject','createPositionAt','discardSelectedSuggestions','insertion:discard','getDifference','element','isLimit','_checkSuggestionCorrectness','bindElementToMarker','containsRange','multipleBlocks','set','trackChanges.trackFormatChanges','track-changes-suggestion-data-mismatch','detach','suggestionLoaded','getAttribute','markDeletion','removeAttribute','enqueueChange','addUser','isMultiRange','getSuggestionCallback','createdAt','removeMarkers','addMarkerName','_registerDefaultCallbacks','isCollapsed','head','consume'];(function(_0x5e2282,_0xfc3873){const _0x4bfbf7=function(_0x39894d){while(--_0x39894d){_0x5e2282['push'](_0x5e2282['shift']());}};_0x4bfbf7(++_0xfc3873);}(_0xfc38,0x1ef));const _0x4bfb=function(_0x5e2282,_0xfc3873){_0x5e2282=_0x5e2282-0x0;let _0x4bfbf7=_0xfc38[_0x5e2282];return _0x4bfbf7;};import{Plugin as _0x404131,PendingActions as _0x42b687}from'ckeditor5/src/core';import{LiveRange as _0x3b509a}from'ckeditor5/src/engine';import{CKEditorError as _0x5cc285,uid as _0x405b2a,priorities as _0x2a39a3,logWarning as _0x11be23}from'ckeditor5/src/utils';import{toWidget as _0x55bee1}from'ckeditor5/src/widget';import{Users as _0x563e41,hashObject as _0x5225a2}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ebdeb from'./commands/trackchangescommand';import _0x42e371 from'./commands/acceptsuggestioncommand';import _0x2ec97c from'./commands/discardsuggestioncommand';import _0x107841 from'./commands/executeonallsuggestionscommand';import _0x5acbbe from'./commands/executeonselectedsuggestionscommand';import _0x128731 from'./suggestion';import _0x4708e4 from'./suggestiondescriptionfactory';import _0x5c7915 from'./integrations/alignment';import _0x40b8cd from'./integrations/basicstyles';import _0x364dcc from'./integrations/blockquote';import _0x529637 from'./integrations/ckbox';import _0x4e2484 from'./integrations/codeblock';import _0x87ad7e from'./integrations/comments';import _0x31c8eb from'./integrations/deletecommand';import _0x3f1dff from'./integrations/documentlist';import _0x46a59d from'./integrations/entercommand';import _0x2ccef8 from'./integrations/findandreplace';import _0x39ee0a from'./integrations/font';import _0x1c20d5 from'./integrations/formatpainter';import _0x5127bf from'./integrations/heading';import _0x3dc020 from'./integrations/highlight';import _0x54df0f from'./integrations/horizontalline';import _0x5e2bdd from'./integrations/htmlembed';import _0x333615 from'./integrations/image';import _0x24648d from'./integrations/imagereplace';import _0x177ed7 from'./integrations/importword';import _0x330c1e from'./integrations/indent';import _0x1bb5d4 from'./integrations/inputcommand';import _0x1ddc0d from'./integrations/link';import _0x458e37 from'./integrations/list';import _0x2c08cb from'./integrations/listproperties';import _0x283571 from'./integrations/mediaembed';import _0x363e29 from'./integrations/mention';import _0x3f8abe from'./integrations/pagebreak';import _0x134593 from'./integrations/paragraph';import _0x387102 from'./integrations/removeformat';import _0x472109 from'./integrations/restrictededitingmode';import _0x283105 from'./integrations/shiftentercommand';import _0x141d53 from'./integrations/standardeditingmode';import _0x28d3b5 from'./integrations/style';import _0xed6974 from'./integrations/table';import _0x1a1655 from'./integrations/tablemergesplit';import _0x4365b4 from'./integrations/tableheadings';import _0x32d6bf from'./integrations/tableclipboard';import _0x457e55 from'./integrations/tablecolumnresize';import _0x38e658 from'./integrations/template';import _0x3778ac from'./integrations/tableofcontents';import _0x43560d from'./integrations/title';import _0x16d137 from'./integrations/undo';import{getTranslation as _0x41814a}from'./utils/common-translations';import _0x3d3407 from'./integrations/tablecaption';import _0x58b8ba from'./integrations/documentlistproperties';import _0xabb38b from'./integrations/tableproperties';import{isEqual as _0x2821ce}from'lodash-es';export default class p extends _0x404131{static get[_0x4bfb('0x61')](){return[_0x4bfb('0xea'),_0x563e41,_0x42b687,_0x5c7915,_0x40b8cd,_0x364dcc,_0x529637,_0x4e2484,_0x87ad7e,_0x31c8eb,_0x3f1dff,_0x58b8ba,_0x46a59d,_0x2ccef8,_0x39ee0a,_0x1c20d5,_0x5127bf,_0x3dc020,_0x54df0f,_0x5e2bdd,_0x333615,_0x24648d,_0x177ed7,_0x330c1e,_0x1bb5d4,_0x1ddc0d,_0x458e37,_0x2c08cb,_0x283571,_0x363e29,_0x3f8abe,_0x134593,_0x387102,_0x472109,_0x283105,_0x141d53,_0x28d3b5,_0xed6974,_0x1a1655,_0x4365b4,_0x3d3407,_0x32d6bf,_0x457e55,_0x3778ac,_0xabb38b,_0x38e658,_0x43560d,_0x16d137];}static get[_0x4bfb('0xf3')](){return _0x4bfb('0x1e');}constructor(_0x340e8a){function _0x195aab(_0x54161d){return _0x54161d[_0x4bfb('0x125')](_0x2d5926=>String[_0x4bfb('0x77')](_0x2d5926))['join']('');}super(_0x340e8a),this[_0x4bfb('0x8e')](_0x4bfb('0x10a'),[]),this['on'](_0x4bfb('0x139'),(_0x3c5dae,_0x96341f,_0x248d2f,_0x70594f)=>{this[_0x4bfb('0x7d')]['change'](()=>{for(const _0x4f9963 of[..._0x70594f,..._0x248d2f])this[_0x4bfb('0x7d')][_0x4bfb('0xda')]['has'](_0x4f9963)&&_0x340e8a['editing'][_0x4bfb('0xb9')](_0x4f9963);});}),this['_descriptionFactory']=new _0x4708e4(this['editor'][_0x4bfb('0x11')][_0x4bfb('0x1b')],this[_0x4bfb('0x22')][_0x4bfb('0x72')]),this[_0x4bfb('0x13')]=null,this[_0x4bfb('0x31')]=new Dt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x340e8a['plugins'][_0x4bfb('0x43')](_0x4bfb('0xea')),this['_enabledCommands']=new Set(),this['_model']=this[_0x4bfb('0x22')][_0x4bfb('0x11')],this[_0x4bfb('0x24')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x340e8a[_0x4bfb('0x7f')][_0x4bfb('0x4d')](_0x4bfb('0x8f'),'default'),this['_trackFormatChanges']=_0x340e8a[_0x4bfb('0x7f')]['get']('trackChanges.trackFormatChanges'),_0x340e8a['config']['define'](_0x4bfb('0x11b'),!0x0),this[_0x4bfb('0xb0')]=_0x340e8a[_0x4bfb('0x7f')][_0x4bfb('0x43')](_0x4bfb('0x11b')),this[_0x4bfb('0x142')]=new _0x5ebdeb(_0x340e8a,this['_enabledCommands']),this[_0x195aab([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x195aab([0x34,0x30,0x34,0x36,0x31,0x38,0x30,0x38]);}[_0x4bfb('0x121')](){const _0xcb326a=this['editor'];_0xcb326a[_0x4bfb('0xae')][_0x4bfb('0x34')]('editingDowncast')[_0x4bfb('0x11d')]({'model':_0x4bfb('0x132'),'view':_0x16888f=>{const {id:_0x8b0728,type:_0x3697e4}=this[_0x4bfb('0x105')](_0x16888f[_0x4bfb('0x7a')]),_0x58d9f6=[_0x4bfb('0xa5'),_0x4bfb('0x5d')+_0x3697e4];let _0xdd8cdf=0xbb8;return this[_0x4bfb('0x10a')][_0x4bfb('0x2e')](_0x16888f[_0x4bfb('0x7a')])&&(_0x58d9f6[_0x4bfb('0x13c')](_0x4bfb('0xd0')),_0xdd8cdf=0xbc2),_0x4bfb('0x14')==_0x3697e4&&(_0xdd8cdf+=0x5),{'classes':_0x58d9f6,'attributes':{'data-suggestion':_0x8b0728},'priority':_0xdd8cdf};}}),_0xcb326a['conversion'][_0x4bfb('0x34')]('dataDowncast')[_0x4bfb('0x13d')](_0x436733=>{_0x436733['on']('addMarker:suggestion',(_0x1c5258,_0x4bcb98,_0x42859c)=>{if(!_0x42859c[_0x4bfb('0x137')][_0x4bfb('0xbe')])return;const _0x594ba7=_0x4bcb98['item'];if(!_0x594ba7)return;const _0x5809c1=_0x42859c[_0x4bfb('0xe6')]['toViewElement'](_0x594ba7);_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x1b')]['isObject'](_0x594ba7)&&_0x5809c1&&!_0x5809c1['getCustomProperty'](_0x4bfb('0xbc'))&&_0x5809c1['is'](_0x4bfb('0x44'))&&_0x55bee1(_0x5809c1,_0x42859c['writer']);},{'priority':_0x4bfb('0x73')});}),_0xcb326a[_0x4bfb('0xae')]['for'](_0x4bfb('0xac'))[_0x4bfb('0x11d')]({'model':_0x4bfb('0x132'),'view':(_0x320b35,_0x62035b)=>{if(!_0x62035b['options'][_0x4bfb('0xbe')])return null;const {type:_0x392dfb}=this[_0x4bfb('0x105')](_0x320b35[_0x4bfb('0x7a')]);return{'classes':[_0x4bfb('0xa5'),_0x4bfb('0x5d')+_0x392dfb],'priority':0xbb8};}});const _0x181ae6=({showActiveMarkers:_0x316052=!0x0}={})=>(_0x41736b,_0x167aef,_0x4aff90)=>{if(!_0x167aef[_0x4bfb('0x113')])return;if(_0x167aef[_0x4bfb('0x113')]['is'](_0x4bfb('0xb2')))return void _0x4aff90[_0x4bfb('0xbf')][_0x4bfb('0xa0')](_0x167aef['item'],_0x41736b[_0x4bfb('0x7')]);const _0x117737=_0x4aff90[_0x4bfb('0xe6')][_0x4bfb('0xaa')](_0x167aef[_0x4bfb('0x113')]);if(!(_0x167aef['item']['is'](_0x4bfb('0x88'))&&_0xcb326a['model'][_0x4bfb('0x1b')][_0x4bfb('0x5f')](_0x167aef[_0x4bfb('0x113')])&&!_0x117737[_0x4bfb('0xa1')]('addHighlight')))return;const {id:_0x75c55b}=this[_0x4bfb('0x105')](_0x167aef[_0x4bfb('0x7a')]);_0x4aff90['writer']['addClass']([_0x4bfb('0xa5'),'ck-suggestion-marker-formatBlock'],_0x117737),_0x4aff90[_0x4bfb('0x111')][_0x4bfb('0xe')](_0x4bfb('0x4f'),_0x75c55b,_0x117737),_0x4aff90['mapper'][_0x4bfb('0x8b')](_0x117737,_0x167aef[_0x4bfb('0x7a')]),_0x316052&&(this[_0x4bfb('0x10a')][_0x4bfb('0x2e')](_0x167aef[_0x4bfb('0x7a')])?_0x4aff90[_0x4bfb('0x111')]['addClass'](_0x4bfb('0xd0'),_0x117737):_0x4aff90[_0x4bfb('0x111')]['removeClass'](_0x4bfb('0xd0'),_0x117737));for(const _0x35585b of _0xcb326a['model'][_0x4bfb('0x116')](_0x167aef[_0x4bfb('0x113')])['getItems']())_0x4aff90[_0x4bfb('0xbf')]['consume'](_0x35585b,_0x41736b[_0x4bfb('0x7')]);_0x4aff90['consumable'][_0x4bfb('0xa0')](_0x167aef['item'],_0x41736b['name']);};_0xcb326a[_0x4bfb('0xae')]['for']('dataDowncast')[_0x4bfb('0x13d')](_0x339c2d=>{_0x339c2d['on']('addMarker:suggestion:formatBlock',(_0x2604be,_0x36ff13,_0x9bc34e)=>{_0x9bc34e[_0x4bfb('0x137')][_0x4bfb('0xbe')]&&_0x181ae6({'showActiveMarkers':!0x1})(_0x2604be,_0x36ff13,_0x9bc34e);},{'priority':_0x4bfb('0x141')});}),_0xcb326a[_0x4bfb('0xae')][_0x4bfb('0x34')](_0x4bfb('0xac'))[_0x4bfb('0xad')]({'model':_0x4bfb('0x132'),'view':(_0x4db258,_0x4f3958)=>_0x4f3958[_0x4bfb('0x137')][_0x4bfb('0xbe')]?null:{'group':'suggestion','name':_0x4db258[_0x4bfb('0x15')](0xb)}}),_0xcb326a['conversion']['for'](_0x4bfb('0xec'))[_0x4bfb('0xfe')]({'view':{'name':_0x4bfb('0x132'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x41898c,{writer:_0x274d1a})=>{let _0x55b37f=_0x4bfb('0xf2')+_0x41898c['getAttribute'](_0x4bfb('0xaf'))+':'+_0x41898c[_0x4bfb('0x93')]('id');return _0x41898c[_0x4bfb('0x93')](_0x4bfb('0x19'))&&(_0x55b37f+=':'+_0x41898c['getAttribute'](_0x4bfb('0x19'))),_0x274d1a['createElement'](_0x4bfb('0x18'),{'data-name':_0x55b37f});}}),_0xcb326a[_0x4bfb('0xae')][_0x4bfb('0x34')](_0x4bfb('0xec'))[_0x4bfb('0x21')]({'view':_0x4bfb('0x132')}),_0xcb326a[_0x4bfb('0xae')][_0x4bfb('0x34')]('editingDowncast')[_0x4bfb('0x13d')](_0x3a139c=>{_0x3a139c['on'](_0x4bfb('0x38'),_0x181ae6(),{'priority':_0x4bfb('0x73')});}),_0xcb326a[_0x4bfb('0xae')][_0x4bfb('0x34')](_0x4bfb('0x26'))[_0x4bfb('0x13d')](_0x5f4f6b=>{_0x5f4f6b['on']('removeMarker:suggestion:formatBlock',(_0x4f807c,_0x80dff,_0x3e4790)=>{const _0xe5aa01=_0x3e4790[_0x4bfb('0xe6')][_0x4bfb('0xcc')](_0x80dff['markerName']);if(_0xe5aa01)for(const _0x1e805a of _0xe5aa01)_0x1e805a[_0x4bfb('0xa1')](_0x4bfb('0x133'))||(_0x3e4790[_0x4bfb('0x111')][_0x4bfb('0xe9')]([_0x4bfb('0xa5'),_0x4bfb('0xc5'),_0x4bfb('0xd0')],_0x1e805a),_0x3e4790[_0x4bfb('0x111')][_0x4bfb('0x95')]('data-suggestion',_0x1e805a),_0x3e4790['mapper'][_0x4bfb('0xe2')](_0x1e805a,_0x80dff['markerName']));},{'priority':_0x4bfb('0x73')});}),_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xd1')]['registerPostFixer'](_0x48efab=>{let _0x30153d=!0x1;const _0x1932bf=Array['from'](_0xcb326a['model'][_0x4bfb('0xd1')][_0x4bfb('0x68')][_0x4bfb('0x12e')]()),_0x14d87e=new Set();for(const {name:_0x336bfa,data:_0x4ff14c}of _0x1932bf){const {group:_0x1f6af0,type:_0x5f10dd,id:_0x50182f}=this[_0x4bfb('0x105')](_0x336bfa);if(_0x4bfb('0x132')!==_0x1f6af0)continue;const _0x21fb77=this['_suggestions']['get'](_0x50182f);if(null!=_0x4ff14c[_0x4bfb('0x7b')]){_0x4bfb('0x6e')==_0x5f10dd&&(_0x30153d=_0x30153d||Mt(_0x4ff14c[_0x4bfb('0x7b')],_0x336bfa,_0x48efab,_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x1b')]));if(_0x4ff14c['newRange'][_0x4bfb('0x9e')]||_0x4bfb('0xe7')==_0x4ff14c[_0x4bfb('0x7b')][_0x4bfb('0x12f')][_0x4bfb('0x5a')]||_0x4bfb('0xa8')==_0x5f10dd&&!Nt(_0x4ff14c[_0x4bfb('0x7b')])||_0x4bfb('0x14')==_0x5f10dd&&!(!_t(_0xd6dc2b=_0x4ff14c[_0x4bfb('0x7b')])&&!function(_0x30a94f){return _0x30a94f[_0x4bfb('0x33')][_0x4bfb('0x1f')]==_0x30a94f[_0x4bfb('0x7c')][_0x4bfb('0x1c')]&&_0x30a94f['start'][_0x4bfb('0x49')];}(_0xd6dc2b)))_0x48efab[_0x4bfb('0x3b')](_0x336bfa),_0x30153d=!0x0;else{if(!_0x21fb77||!_0x21fb77[_0x4bfb('0x64')])continue;_0x14d87e['add'](_0x21fb77);}}}var _0xd6dc2b;return _0x14d87e['size']>0x0&&(_0x30153d=!!this[_0x4bfb('0x1a')](_0x14d87e)||_0x30153d),_0x30153d;}),_0xcb326a['model'][_0x4bfb('0xd1')]['registerPostFixer'](_0x571394=>{let _0x69f5fd=!0x1;for(const _0x3bf8b4 of _0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xd1')][_0x4bfb('0x68')][_0x4bfb('0xa9')]()){if('insert'!=_0x3bf8b4[_0x4bfb('0x66')])continue;const _0x372e26=_0x3bf8b4[_0x4bfb('0x4b')][_0x4bfb('0x46')](_0x3bf8b4['length']);if(_0x372e26[_0x4bfb('0x49')])for(const _0xc3e676 of this[_0x4bfb('0x10c')][_0x4bfb('0x20')]()){if(_0xc3e676[_0x4bfb('0x98')]||!_0xc3e676['isInContent'])continue;if('formatBlock'!=_0xc3e676['type'])continue;const _0x1f5026=_0xc3e676[_0x4bfb('0x107')]();if(_0x1f5026['start']['parent']!=_0x1f5026[_0x4bfb('0x7c')][_0x4bfb('0x1f')]&&_0x1f5026[_0x4bfb('0x7c')]['isEqual'](_0x3bf8b4[_0x4bfb('0x4b')])){const _0x17de39=_0xcb326a['model']['createRange'](_0x1f5026[_0x4bfb('0x33')],_0x372e26);_0x571394[_0x4bfb('0x2d')](_0xc3e676[_0x4bfb('0x3d')](),{'range':_0x17de39}),_0x69f5fd=!0x0;}}}return _0x69f5fd;}),_0xcb326a[_0x4bfb('0x11')]['markers']['on']('update:suggestion',(_0x52eb64,_0x553ee6,_0x23732d)=>{if(null==_0x23732d){const {id:_0x37e79e}=this[_0x4bfb('0x105')](_0x553ee6[_0x4bfb('0x7')]),_0x51b663=this[_0x4bfb('0x10c')][_0x4bfb('0x43')](_0x37e79e);_0x51b663&&_0x51b663[_0x4bfb('0x9c')](_0x553ee6[_0x4bfb('0x7')]);}}),_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xd1')]['on'](_0x4bfb('0x109'),()=>{const _0x494c75=Array[_0x4bfb('0x70')](_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xd1')]['differ'][_0x4bfb('0x12e')]())[_0x4bfb('0x35')](_0x3933a3=>_0x4bfb('0x132')===this['_splitMarkerName'](_0x3933a3[_0x4bfb('0x7')])[_0x4bfb('0x17')]);if(0x0===_0x494c75[_0x4bfb('0x45')])return;_0x494c75[_0x4bfb('0x62')]((_0xa81e5c,_0x14ef52)=>{const _0x23c9e6=_0xa81e5c[_0x4bfb('0x118')]['oldRange'],_0x47afa1=_0x14ef52[_0x4bfb('0x118')][_0x4bfb('0x4e')];return null===_0x23c9e6&&null===_0x47afa1?0x0:null===_0x23c9e6&&null!==_0x47afa1?-0x1:null!==_0x23c9e6&&null===_0x47afa1?0x1:_0x23c9e6[_0x4bfb('0x33')]['isBefore'](_0x47afa1[_0x4bfb('0x33')])?-0x1:0x1;});const _0x14af78=new Set(),_0x336b8d=new Set();for(const {name:_0x3e6980,data:_0x47931a}of _0x494c75){const {id:_0x3250b6}=this[_0x4bfb('0x105')](_0x3e6980);if(null===_0x47931a['oldRange']){const _0x2f857e=this[_0x4bfb('0x25')](_0x3e6980);_0x336b8d['add'](_0x2f857e);}else{const _0x485402=this[_0x4bfb('0x10c')][_0x4bfb('0x43')](_0x3250b6);null!==_0x47931a[_0x4bfb('0x7b')]||_0x485402['isInContent']?(_0x14af78[_0x4bfb('0x13d')](_0x485402[_0x4bfb('0x9f')]),_0x336b8d[_0x4bfb('0x13d')](_0x485402)):this[_0x4bfb('0x32')](_0x485402);}}_0x336b8d['size']>0x0&&this[_0x4bfb('0x6b')](_0x336b8d);for(const _0x56707d of _0x14af78)this[_0x4bfb('0xd2')](_0x4bfb('0xb8'),_0x56707d);}),_0xcb326a[_0x4bfb('0x11')]['on']('applyOperation',(_0x538397,_0x5f1b77)=>{const _0x5189da=_0x5f1b77[0x0];if(!this[_0x4bfb('0x10c')]['size'])return;if(!_0x5189da[_0x4bfb('0xc2')])return;if(_0x5189da[_0x4bfb('0xe4')][_0x4bfb('0x11c')]||!_0x5189da[_0x4bfb('0xe4')][_0x4bfb('0x110')])return;let _0x49d69a,_0xe261f1;switch(_0x5189da[_0x4bfb('0x66')]){case'insert':_0x49d69a=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x84')](_0x5189da[_0x4bfb('0x4b')]),_0xe261f1=_0x49d69a[_0x4bfb('0x46')](_0x5189da[_0x4bfb('0xed')]);break;case _0x4bfb('0x3e'):_0x49d69a=_0xcb326a['model'][_0x4bfb('0x84')](_0x5189da[_0x4bfb('0x10b')]),_0xe261f1=_0xcb326a[_0x4bfb('0x11')]['createPositionAt'](_0x5189da[_0x4bfb('0x126')]);break;case _0x4bfb('0x124'):_0x49d69a=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x84')](_0x5189da[_0x4bfb('0xfa')]),_0xe261f1=_0x49d69a['getShiftedBy'](_0x5189da[_0x4bfb('0xed')]);break;default:return;}const _0x4de38b=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xdf')](_0x49d69a,_0xe261f1);_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x54')](()=>{for(const {suggestion:_0x2ea08a,meta:_0x5c5f3e}of this[_0x4bfb('0x40')](_0x4de38b)){if(_0x2ea08a[_0x4bfb('0x98')])continue;if(_0x4bfb('0x6e')==_0x2ea08a[_0x4bfb('0x66')])continue;const _0x29f637=_0x2ea08a[_0x4bfb('0x118')]&&_0x2ea08a[_0x4bfb('0x118')]['multipleBlocks'];('formatBlock'!=_0x2ea08a[_0x4bfb('0x66')]||'split'==_0x5189da[_0x4bfb('0x66')]&&!_0x29f637)&&(_0x5c5f3e['containsRangeInObject']||'insertion'==_0x2ea08a[_0x4bfb('0x66')]&&_0x5c5f3e['isOwn']||_0x2ea08a[_0x4bfb('0x107')]()[_0x4bfb('0x8c')](_0x4de38b)&&this[_0x4bfb('0x130')](_0x2ea08a,_0x49d69a,_0xe261f1));}});},{'priority':_0x4bfb('0x5b')}),_0xcb326a['model']['on'](_0x4bfb('0xde'),(_0x172159,_0x473c3b)=>{const _0x30fa62=_0x473c3b[0x0],_0x19ce9=_0x473c3b[0x1];if(_0x19ce9&&_0x19ce9[_0x4bfb('0x47')])return;if(this[_0x4bfb('0x13f')])return;if(!this[_0x4bfb('0x142')][_0x4bfb('0x63')])return;if(_0x30fa62['isCollapsed'])return;const _0x2909d3=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x1b')],{start:_0x5abcf4,end:_0x3ab64c}=_0x30fa62['getFirstRange'](),_0x30c8bb=_0x5abcf4[_0x4bfb('0xa4')]&&_0x2909d3[_0x4bfb('0x89')](_0x5abcf4[_0x4bfb('0xa4')])?null:_0x2909d3[_0x4bfb('0x143')](_0x5abcf4,_0x4bfb('0xf4')),_0x327d84=_0x3ab64c[_0x4bfb('0x1c')]&&_0x2909d3[_0x4bfb('0x89')](_0x3ab64c[_0x4bfb('0x1c')])?null:_0x2909d3[_0x4bfb('0x143')](_0x3ab64c,_0x4bfb('0x13a')),_0x326572=_0xcb326a['model']['createRange'](_0x30c8bb?_0x30c8bb['start']:_0x5abcf4,_0x327d84?_0x327d84[_0x4bfb('0x7c')]:_0x3ab64c);_0xcb326a['model'][_0x4bfb('0x54')](_0x41fb8f=>{this[_0x4bfb('0x94')](_0x326572);const _0x382a06=_0xcb326a['model'][_0x4bfb('0x1b')]['getNearestSelectionRange'](_0x326572[_0x4bfb('0x33')]);_0x30fa62['is']('documentSelection')?_0x41fb8f[_0x4bfb('0x100')](_0x382a06):_0x30fa62[_0x4bfb('0x103')](_0x382a06);}),_0x172159[_0x4bfb('0xb1')]();},{'priority':_0x2a39a3[_0x4bfb('0x78')]+0xa}),_0xcb326a[_0x4bfb('0x11')]['on'](_0x4bfb('0x65'),(_0x2fab38,_0x34a3ee)=>{const _0x6cdb0c=_0x34a3ee[_0x34a3ee[_0x4bfb('0x45')]-0x1];_0x6cdb0c&&_0x6cdb0c[_0x4bfb('0x47')]||this[_0x4bfb('0x13f')]||this[_0x4bfb('0x142')]['value']&&(_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x54')](()=>{let _0x25f082=_0xcb326a['model']['insertContent'](_0x34a3ee[0x0],_0x34a3ee[0x1],_0x34a3ee[0x2],{'forceDefaultExecution':!0x0});if(!_0x25f082)return;_0x2fab38['return']=_0x25f082['clone']();const _0x45b680=_0x25f082['end'][_0x4bfb('0x1c')],_0x3eae25=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x1b')];_0x45b680&&_0x3eae25[_0x4bfb('0x5f')](_0x45b680)&&!_0x3eae25[_0x4bfb('0x144')](_0x45b680)&&(_0x25f082=_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0xdf')](_0x25f082[_0x4bfb('0x33')],_0xcb326a[_0x4bfb('0x11')][_0x4bfb('0x84')](_0x45b680,_0x4bfb('0x7c')))),this[_0x4bfb('0xe1')](_0x25f082);}),_0x2fab38[_0x4bfb('0xb1')]());},{'priority':_0x4bfb('0x73')}),this[_0x4bfb('0x22')][_0x4bfb('0xfc')]['add'](_0x4bfb('0xe8'),this[_0x4bfb('0x142')]),this[_0x4bfb('0x11a')](_0x4bfb('0xe8'));const _0x21a619=new _0x42e371(_0xcb326a,this['_suggestions']);_0xcb326a[_0x4bfb('0xfc')][_0x4bfb('0x13d')](_0x4bfb('0x140'),_0x21a619),this[_0x4bfb('0x11a')]('acceptSuggestion');const _0xfde995=new _0x2ec97c(_0xcb326a,this[_0x4bfb('0x10c')]);_0xcb326a[_0x4bfb('0xfc')]['add'](_0x4bfb('0x28'),_0xfde995),this[_0x4bfb('0x11a')](_0x4bfb('0x28')),_0xcb326a[_0x4bfb('0xfc')][_0x4bfb('0x13d')](_0x4bfb('0x2f'),new _0x107841(_0xcb326a,_0x21a619,this['_suggestions'])),this[_0x4bfb('0x11a')](_0x4bfb('0x2f')),_0xcb326a[_0x4bfb('0xfc')][_0x4bfb('0x13d')](_0x4bfb('0xb4'),new _0x107841(_0xcb326a,_0xfde995,this[_0x4bfb('0x10c')])),this[_0x4bfb('0x11a')](_0x4bfb('0xb4')),_0xcb326a[_0x4bfb('0xfc')][_0x4bfb('0x13d')](_0x4bfb('0xab'),new _0x5acbbe(_0xcb326a,_0x21a619,this[_0x4bfb('0x10c')])),this[_0x4bfb('0x11a')]('acceptSelectedSuggestions'),_0xcb326a[_0x4bfb('0xfc')][_0x4bfb('0x13d')](_0x4bfb('0x85'),new _0x5acbbe(_0xcb326a,_0xfde995,this[_0x4bfb('0x10c')])),this[_0x4bfb('0x11a')](_0x4bfb('0x85'));const _0x4f3130=_0xcb326a[_0x4bfb('0x42')]['get'](_0x4bfb('0xea'));this[_0x4bfb('0x81')](_0x4f3130,'addComment',(_0x328954,{threadId:_0x4c9437})=>{const _0x16843f=this[_0x4bfb('0x10c')][_0x4bfb('0x43')](_0x4c9437);_0x16843f&&_0x16843f[_0x4bfb('0x145')]&&0x1===_0x16843f[_0x4bfb('0x145')]['length']&&this[_0x4bfb('0x127')](_0x4c9437,{'hasComments':!0x0});},{'priority':_0x4bfb('0xd4')}),this[_0x4bfb('0x81')](_0x4f3130,_0x4bfb('0xf0'),(_0x220cb9,{threadId:_0x24cee3})=>{const _0x3d848d=this['_suggestions']['get'](_0x24cee3);_0x3d848d&&_0x3d848d[_0x4bfb('0x145')]&&!_0x3d848d[_0x4bfb('0x145')]['length']&&this[_0x4bfb('0x127')](_0x24cee3,{'hasComments':!0x1});},{'priority':_0x4bfb('0xd4')});}set[_0x4bfb('0x10f')](_0x3942dc){if(this['_adapter'])throw new _0x5cc285(_0x4bfb('0x106'),this);this[_0x4bfb('0x13')]=_0x3942dc;}get['adapter'](){return this[_0x4bfb('0x13')];}['getSuggestions']({skipNotAttached:_0x41e683=!0x1,toJSON:_0x46397a=!0x1}={}){const _0x2ca9e=[];for(const _0x40a3a8 of this[_0x4bfb('0x10c')][_0x4bfb('0x20')]())_0x41e683&&!_0x40a3a8[_0x4bfb('0x64')]||_0x2ca9e[_0x4bfb('0x13c')](_0x40a3a8);return _0x46397a?_0x2ca9e[_0x4bfb('0x125')](_0x5ac2bc=>_0x5ac2bc[_0x4bfb('0xd9')]()):_0x2ca9e;}['getSuggestion'](_0x367b43){const _0x28d4e7=this[_0x4bfb('0x10c')][_0x4bfb('0x43')](_0x367b43);if(!_0x28d4e7)throw new _0x5cc285('track-changes-suggestion-not-found',this);return _0x28d4e7;}[_0x4bfb('0x6c')](_0x17affb){return this[_0x4bfb('0x10c')]['has'](_0x17affb);}[_0x4bfb('0xc1')](_0x28b4fd){const {authorId:_0x2b4d7a,id:_0xf34799,attributes:_0x511abf}=_0x28b4fd,[_0x14b408,_0xf30ab2]=_0x28b4fd[_0x4bfb('0x66')]['split'](':'),_0xefd9f1=this['_suggestions'][_0x4bfb('0x43')](_0xf34799)||this[_0x4bfb('0xbd')](_0x14b408,_0xf30ab2,_0xf34799,_0x2b4d7a,_0x511abf);if(this[_0x4bfb('0xf7')](_0xefd9f1),this[_0x4bfb('0x8a')](_0xefd9f1,_0x14b408,_0xf30ab2||null,_0x2b4d7a),_0xefd9f1['createdAt']=_0x28b4fd[_0x4bfb('0x9a')],_0xefd9f1[_0x4bfb('0x122')]=!0x0,_0x511abf&&_0x511abf[_0x4bfb('0x101')]){const _0x2ed6f0=_0x511abf[_0x4bfb('0x101')],_0x2da03e=this[_0x4bfb('0x6')](_0x2ed6f0[_0x4bfb('0x115')]);_0xefd9f1['authoredAt']=_0x2ed6f0[_0x4bfb('0x9a')],_0xefd9f1['author']=_0x2da03e,_0xefd9f1['isExternal']=!0x0;}else _0xefd9f1[_0x4bfb('0xa3')]=_0x28b4fd[_0x4bfb('0x9a')];switch(_0x28b4fd[_0x4bfb('0x118')]&&(_0xefd9f1[_0x4bfb('0x118')]=_0x28b4fd[_0x4bfb('0x118')]),_0x28b4fd[_0x4bfb('0x10e')]&&(_0xefd9f1[_0x4bfb('0x10e')]=_0x28b4fd[_0x4bfb('0x10e')]),this[_0x4bfb('0x13')]&&this[_0x4bfb('0x13')]['addSuggestion']||(_0xefd9f1[_0x4bfb('0x60')]=!0x0),this[_0x4bfb('0x24')][_0x4bfb('0x43')](_0xefd9f1)){case _0x4bfb('0x134'):this[_0x4bfb('0x24')]['set'](_0xefd9f1,_0x4bfb('0xa2'));break;case'markerReady':_0xefd9f1[_0x4bfb('0x64')]?(this[_0x4bfb('0x6b')](new Set([_0xefd9f1])),this['_joinWithAdjacentSuggestions'](new Set([_0xefd9f1])),this[_0x4bfb('0x24')][_0x4bfb('0x8e')](_0xefd9f1,_0x4bfb('0x13b')),this['fire']('suggestionLoaded',_0xefd9f1)):this[_0x4bfb('0x24')]['set'](_0xefd9f1,_0x4bfb('0xf6'));}return _0xefd9f1;}['acceptSuggestion'](_0x80b266){this[_0x4bfb('0x47')](()=>{this[_0x4bfb('0x22')]['model']['change'](()=>{for(const _0x465ddb of _0x80b266[_0x4bfb('0xfb')]())_0x465ddb[_0x4bfb('0xa6')]();});});}[_0x4bfb('0x28')](_0x11792d){this[_0x4bfb('0x47')](()=>{this[_0x4bfb('0x22')][_0x4bfb('0x11')]['change'](()=>{for(const _0x222a02 of _0x11792d[_0x4bfb('0xfb')]())_0x222a02[_0x4bfb('0x123')]();});});}['enableCommand'](_0x1d4e17,_0x2d9306){const _0x59527c=this[_0x4bfb('0x22')]['commands'][_0x4bfb('0x43')](_0x1d4e17);if(!_0x59527c)throw new _0x5cc285(_0x4bfb('0x120'),this,{'commandName':_0x1d4e17});this['_enabledCommands'][_0x4bfb('0x13d')](_0x59527c),_0x2d9306&&_0x59527c['on'](_0x4bfb('0x129'),(_0x11e66a,_0x4f0b07)=>{this[_0x4bfb('0x142')]['value']&&(this[_0x4bfb('0x13f')]||_0x4f0b07[_0x4bfb('0x45')]>0x0&&_0x4f0b07[_0x4f0b07['length']-0x1]&&_0x4f0b07[_0x4f0b07['length']-0x1][_0x4bfb('0x47')]||(_0x2d9306((..._0x12c978)=>_0x59527c['execute'](..._0x12c978,{'forceDefaultExecution':!0x0}),..._0x4f0b07),_0x11e66a[_0x4bfb('0xb1')]()));},{'priority':_0x4bfb('0x73')});}[_0x4bfb('0x47')](_0xde21bc){let _0x3d964b,_0xd5a892;const _0x2da6cb=this[_0x4bfb('0x13f')];this[_0x4bfb('0x13f')]=!0x0;try{_0x3d964b=_0xde21bc();}catch(_0x2a7e9a){_0xd5a892=_0x2a7e9a;}return _0x2da6cb||(this[_0x4bfb('0x13f')]=!0x1),_0xd5a892&&_0x5cc285[_0x4bfb('0x135')](_0xd5a892,this),_0x3d964b;}['markInsertion'](_0xf581dc,_0x528345=null,_0x5cf397={}){if(_0xf581dc[_0x4bfb('0x9e')])return null;const _0x278df5=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5'))['me'];for(const {suggestion:_0x111403,meta:_0x3be144}of this[_0x4bfb('0x40')](_0xf581dc,'insertion'))if(_0x3be144[_0x4bfb('0x2a')]){if(!_0x3be144['isNextTo']){if(_0x3be144[_0x4bfb('0x128')]){if(!this['_mergeNestedSuggestions']||!Ut(_0x111403,_0x5cf397))continue;return _0x111403;}if(Ut(_0x111403,_0x5cf397))return _0x111403;this['_breakSuggestionMarker'](_0x111403,_0xf581dc[_0x4bfb('0x33')],_0xf581dc[_0x4bfb('0x7c')]);break;}if(_0x528345==_0x111403[_0x4bfb('0x71')]&&Ut(_0x111403,_0x5cf397)){const _0x5bd62d=_0x111403[_0x4bfb('0x107')]();return _0x5bd62d['start'][_0x4bfb('0xba')](_0xf581dc[_0x4bfb('0x7c')])?this[_0x4bfb('0x12')](_0x111403,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0xf581dc[_0x4bfb('0x33')],_0x5bd62d[_0x4bfb('0x7c')])):this[_0x4bfb('0x12')](_0x111403,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x5bd62d['start'],_0xf581dc['end'])),_0x111403;}}const _0x10b56c=_0x405b2a(),_0xbff7f9=_0x278df5['id'],_0x34388d=_0x528345?_0x4bfb('0xd6')+_0x528345:'insertion',_0x1c8ecd=this[_0x4bfb('0x114')]({'id':_0x10b56c,'type':_0x34388d,'createdAt':new Date(),'authorId':_0xbff7f9,'attributes':_0x5cf397});return this[_0x4bfb('0xb')](_0x34388d,_0x10b56c,_0xbff7f9,_0xf581dc),_0x1c8ecd;}[_0x4bfb('0xff')](_0x56b8fd,_0xf1460e=_0x4bfb('0x10'),_0x4580ce={}){const _0x1342fe=this[_0x4bfb('0x22')][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5'))['me'],_0x46e9af=this['_suggestionFactory'][_0x4bfb('0x99')]('insertion',_0xf1460e,_0x4bfb('0xb7'));for(const _0x8544cd of this['getSuggestions']())if(_0x8544cd['author']['id']==_0x1342fe['id']&&_0x4bfb('0x119')==_0x8544cd[_0x4bfb('0x66')]&&_0x8544cd[_0x4bfb('0x71')]==_0xf1460e&&Ut(_0x8544cd,_0x4580ce)&&(_0x46e9af(_0x8544cd[_0x4bfb('0xb6')](),_0x56b8fd)||_0x46e9af(_0x56b8fd,_0x8544cd['getRanges']()))){for(const _0x189a23 of _0x56b8fd)_0x8544cd['addRange'](_0x189a23);return _0x8544cd;}for(const {suggestion:_0x5cd154,meta:_0x286540}of this[_0x4bfb('0x40')](_0x56b8fd,_0x4bfb('0x119'))){if(!_0x286540['isOwn'])continue;if(!this[_0x4bfb('0xb0')]&&_0x286540[_0x4bfb('0x128')])continue;if(!Ut(_0x5cd154,_0x4580ce))continue;let _0x4dc83c=!0x0;for(const _0x340586 of _0x5cd154['getRanges']())for(const _0xcec347 of _0x56b8fd)if(!_0x340586[_0x4bfb('0x8c')](_0xcec347)){_0x4dc83c=!0x1;break;}if(_0x4dc83c)return _0x5cd154;}const _0x4e9de2=_0x405b2a(),_0x4d936e=_0x1342fe['id'],_0x58a379=_0x4bfb('0xd6')+_0xf1460e,_0x58234f=this[_0x4bfb('0x114')]({'id':_0x4e9de2,'type':_0x58a379,'createdAt':new Date(),'authorId':_0x4d936e,'attributes':_0x4580ce});for(const _0x28361d of _0x56b8fd)this[_0x4bfb('0xb')](_0x58a379,_0x4e9de2,_0x4d936e,_0x28361d,_0x128731[_0x4bfb('0x69')]());return _0x58234f;}[_0x4bfb('0xa7')](_0x2bdd60,_0x40ba7f,_0x1e9862=null,_0x5c29a5={}){if(_0x1e9862=_0x1e9862||$t(_0x40ba7f),_0x2bdd60['isCollapsed'])return null;if(_0x4bfb('0xcd')===this[_0x4bfb('0x9')]){const _0x343c57=this[_0x4bfb('0x31')]['getSuggestionCallback'](_0x4bfb('0x6e'),_0x1e9862,_0x4bfb('0xa6'));return this['forceDefaultExecution'](()=>_0x343c57([_0x2bdd60],_0x40ba7f,_0x5c29a5)),null;}const _0x8bbf84=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')]('Users')['me'],_0x1e58b6=[];if(_0x4bfb('0xfd')!==this['_trackFormatChanges'])for(const {suggestion:_0x187f62,meta:_0x485655}of this[_0x4bfb('0x40')](_0x2bdd60,_0x4bfb('0x119')))_0x485655[_0x4bfb('0x2a')]&&!_0x485655[_0x4bfb('0x83')]&&_0x1e58b6['push'](..._0x187f62[_0x4bfb('0xb6')]());const _0x45f252=function(_0x443921,_0x525827){const _0x4307b7=[];for(const _0x54a258 of _0x525827){const _0x5ad356=_0x443921['getIntersection'](_0x54a258);_0x5ad356&&_0x4307b7[_0x4bfb('0x13c')](_0x5ad356);}return _0x4307b7;}(_0x2bdd60,_0x1e58b6),_0x9437b4=function(_0x51b2ba,_0xbea408){const _0x341e1a=[_0x51b2ba];for(const _0x5732d1 of _0xbea408){let _0x17c694=0x0;for(;_0x17c694<_0x341e1a['length'];){const _0x423399=_0x341e1a[_0x17c694][_0x4bfb('0x87')](_0x5732d1);_0x341e1a[_0x4bfb('0x13e')](_0x17c694,0x1,..._0x423399),_0x17c694+=_0x423399[_0x4bfb('0x45')];}}return _0x341e1a;}(_0x2bdd60,_0x1e58b6);_0x45f252[_0x4bfb('0x45')]&&this[_0x4bfb('0x7d')][_0x4bfb('0x54')](()=>{for(const _0x589591 of _0x45f252){const _0x55ae66=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0x6e'),_0x1e9862,_0x4bfb('0xa6'));this[_0x4bfb('0x47')](()=>_0x55ae66([_0x589591],_0x40ba7f,_0x5c29a5));}});for(const _0x1c07a8 of _0x9437b4){let _0x27aca5=null,_0x2dc414=_0x1c07a8[_0x4bfb('0x33')],_0x4b0b74=_0x1c07a8[_0x4bfb('0x7c')];for(const {suggestion:_0x33ca76,meta:_0x595b09}of this[_0x4bfb('0x40')](_0x1c07a8,'formatInline')){if(!_0x595b09[_0x4bfb('0x2a')])continue;if(_0x33ca76[_0x4bfb('0x71')]!=_0x1e9862)continue;if(!Ut(_0x33ca76,_0x5c29a5))continue;const _0x24c75e=_0x33ca76[_0x4bfb('0x107')]();if(_0x24c75e[_0x4bfb('0x8c')](_0x1c07a8,!0x0))return null;_0x2dc414=_0x2dc414[_0x4bfb('0xee')](_0x24c75e[_0x4bfb('0x33')])?_0x2dc414:_0x24c75e['start'],_0x4b0b74=_0x4b0b74[_0x4bfb('0xbb')](_0x24c75e[_0x4bfb('0x7c')])?_0x4b0b74:_0x24c75e[_0x4bfb('0x7c')],_0x27aca5?_0x24c75e[_0x4bfb('0x33')]['isBefore'](_0x27aca5['getFirstRange']()[_0x4bfb('0x33')])?(_0x27aca5['removeMarkers'](),_0x27aca5=_0x33ca76):_0x33ca76[_0x4bfb('0x9b')]():_0x27aca5=_0x33ca76;}const _0x46847c=this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x2dc414,_0x4b0b74);if(_0x27aca5)this[_0x4bfb('0x12')](_0x27aca5,_0x46847c);else{const _0x573343=_0x405b2a(),_0x26468c=_0x8bbf84['id'];this[_0x4bfb('0x114')]({'id':_0x573343,'type':_0x4bfb('0x136')+_0x1e9862,'data':_0x40ba7f,'createdAt':new Date(),'authorId':_0x26468c,'attributes':_0x5c29a5}),this[_0x4bfb('0xb')]('formatInline:'+_0x1e9862,_0x573343,_0x26468c,_0x46847c);}}return null;}[_0x4bfb('0x4')](_0x1c5e30,_0x53a636,_0x3a8966=[],_0x5cdf0e=null,_0x25030b={}){_0x53a636['formatGroupId']||(_0x53a636['formatGroupId']=_0x53a636[_0x4bfb('0x131')]),_0x53a636['multipleBlocks']=_0x1c5e30['is'](_0x4bfb('0x23')),_0x5cdf0e=_0x5cdf0e||$t(_0x53a636);const _0x16af32=_0x3a8966['map'](_0x53f1fe=>Rt(_0x53f1fe,this['_model'])),_0x42390f=_0x1c5e30['is'](_0x4bfb('0x23'))?_0x1c5e30:Rt(_0x1c5e30,this['_model']);if(_0x4bfb('0xcd')===this['_trackFormatChanges']){const _0x569be0=this['_suggestionFactory'][_0x4bfb('0x99')]('formatBlock',_0x5cdf0e,_0x4bfb('0xa6'));return this['forceDefaultExecution'](()=>_0x569be0([_0x42390f],_0x53a636,_0x25030b)),null;}_0x16af32['push'](_0x42390f);let _0x25a576=!0x0;for(const _0xa73676 of _0x16af32)if(!this[_0x4bfb('0xeb')](_0xa73676)){_0x25a576=!0x1;break;}if(_0x25a576&&_0x4bfb('0xfd')!==this[_0x4bfb('0x9')]){const _0x2909a0=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0xa8'),_0x5cdf0e,_0x4bfb('0xa6'));return this['forceDefaultExecution'](()=>_0x2909a0([_0x42390f],_0x53a636,_0x25030b)),null;}let _0x2ca596=null,_0x280ff3=_0x42390f['start'],_0x537f15=_0x42390f['end'];for(const {suggestion:_0x6be373,meta:_0x2ea24c}of this[_0x4bfb('0x40')](_0x42390f,'formatBlock')){if(!_0x2ea24c['isOwn'])continue;if(_0x2ea24c[_0x4bfb('0xf8')]||_0x2ea24c[_0x4bfb('0x128')]||_0x2ea24c[_0x4bfb('0x83')])continue;if(_0x6be373[_0x4bfb('0x118')][_0x4bfb('0x39')]!=_0x53a636[_0x4bfb('0x39')])continue;if(!Ut(_0x6be373,_0x25030b))continue;const _0x3168f0=_0x6be373[_0x4bfb('0x107')]();if(_0x6be373[_0x4bfb('0x71')]==_0x5cdf0e){if(_0x3168f0[_0x4bfb('0x8c')](_0x42390f,!0x0))return null;_0x280ff3=_0x280ff3[_0x4bfb('0xee')](_0x3168f0[_0x4bfb('0x33')])?_0x280ff3:_0x3168f0[_0x4bfb('0x33')],_0x537f15=_0x537f15[_0x4bfb('0xbb')](_0x3168f0[_0x4bfb('0x7c')])?_0x537f15:_0x3168f0[_0x4bfb('0x7c')],_0x2ca596?_0x3168f0['start']['isBefore'](_0x2ca596['getFirstRange']()[_0x4bfb('0x33')])?(_0x2ca596[_0x4bfb('0x9b')](),_0x2ca596=_0x6be373):_0x6be373[_0x4bfb('0x9b')]():_0x2ca596=_0x6be373;}else{const _0x29e7aa=_0x42390f[_0x4bfb('0x37')](_0x3168f0);this[_0x4bfb('0xdd')](_0x6be373,_0x29e7aa);}}const _0x213b1c=this[_0x4bfb('0x22')][_0x4bfb('0x42')]['get']('Users')['me'],_0xffdcea=_0x405b2a(),_0x50c72c=_0x213b1c['id'];if(_0x2ca596)return this['_setSuggestionRange'](_0x2ca596,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x280ff3,_0x537f15)),_0x2ca596;{const _0xada8e1=this['_setSuggestionData']({'id':_0xffdcea,'type':_0x4bfb('0xd')+_0x5cdf0e,'data':_0x53a636,'createdAt':new Date(),'authorId':_0x50c72c,'attributes':_0x25030b});return this[_0x4bfb('0xb')]('formatBlock:'+_0x5cdf0e,_0xffdcea,_0x50c72c,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x280ff3,_0x537f15)),_0xada8e1;}}['markMultiRangeBlockFormat'](_0x16adeb,_0xfbc254,_0x5b8dbc=[],_0x1b99b9=null,_0x51921b={}){_0xfbc254[_0x4bfb('0x39')]||(_0xfbc254[_0x4bfb('0x39')]=_0xfbc254[_0x4bfb('0x131')]);const _0x2e2916=_0x16adeb[0x0];_0xfbc254[_0x4bfb('0x8d')]=_0x2e2916['is'](_0x4bfb('0x23')),_0x1b99b9=_0x1b99b9||$t(_0xfbc254);const _0x1ab4ec=_0x5b8dbc['map'](_0x1ed82e=>Rt(_0x1ed82e,this[_0x4bfb('0x7d')])),_0x3ca0d6=_0x2e2916['is'](_0x4bfb('0x23'))?_0x16adeb:_0x16adeb['map'](_0x2cad02=>Rt(_0x2cad02,this[_0x4bfb('0x7d')]));if(_0x4bfb('0xcd')===this[_0x4bfb('0x9')]){const _0x3a4118=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0xa8'),_0x1b99b9,_0x4bfb('0xa6'));return this[_0x4bfb('0x47')](()=>_0x3a4118(_0x3ca0d6,_0xfbc254,_0x51921b)),null;}_0x1ab4ec[_0x4bfb('0x13c')](..._0x3ca0d6);let _0x383425=!0x0;for(const _0x421a55 of _0x1ab4ec)if(!this[_0x4bfb('0xeb')](_0x421a55)){_0x383425=!0x1;break;}if(_0x383425&&_0x4bfb('0xfd')!==this[_0x4bfb('0x9')]){const _0x37e3c7=this['_suggestionFactory'][_0x4bfb('0x99')](_0x4bfb('0xa8'),_0x1b99b9,_0x4bfb('0xa6'));return this[_0x4bfb('0x47')](()=>_0x37e3c7(_0x3ca0d6,_0xfbc254,_0x51921b)),null;}const _0x36c224=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')]('Users')['me'];for(const _0x44e4f9 of this['getSuggestions']()){if(_0x44e4f9['author']['id']!=_0x36c224['id'])continue;if(_0x4bfb('0xa8')!=_0x44e4f9[_0x4bfb('0x66')]||_0x44e4f9[_0x4bfb('0x118')][_0x4bfb('0x39')]!=_0xfbc254['formatGroupId'])continue;if(!Ut(_0x44e4f9,_0x51921b))continue;const _0x758c63=_0x44e4f9[_0x4bfb('0x71')]==_0x1b99b9;for(let _0x1c5c33=0x0;_0x1c5c33<_0x3ca0d6[_0x4bfb('0x45')];_0x1c5c33++){const _0x309534=_0x3ca0d6[_0x1c5c33];for(const _0x1acf65 of _0x44e4f9[_0x4bfb('0x6a')]()){const _0x8755d7=_0x1acf65['getRange']();if(_0x309534[_0x4bfb('0xba')](_0x8755d7)){_0x758c63?(_0x3ca0d6[_0x4bfb('0x13e')](_0x1c5c33,0x1),_0x1c5c33--):_0x44e4f9['removeMarker'](_0x1acf65[_0x4bfb('0x7')]);break;}}}}if(0x0==_0x3ca0d6[_0x4bfb('0x45')])return null;const _0x2b2442=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0xa8'),_0x1b99b9,'join');for(const _0x4cc73c of this['getSuggestions']())if(_0x4cc73c['author']['id']==_0x36c224['id']&&_0x4bfb('0xa8')==_0x4cc73c[_0x4bfb('0x66')]&&_0x4cc73c['data'][_0x4bfb('0x39')]==_0xfbc254['formatGroupId']&&_0x4cc73c['subType']==_0x1b99b9&&Ut(_0x4cc73c,_0x51921b)&&(_0x2b2442(_0x4cc73c['getRanges'](),_0x3ca0d6)||_0x2b2442(_0x3ca0d6,_0x4cc73c[_0x4bfb('0xb6')]()))){for(const _0x2fd96f of _0x3ca0d6)_0x4cc73c['addRange'](_0x2fd96f);return _0x4cc73c;}const _0x2552a1=_0x405b2a(),_0x3fc919=_0x36c224['id'],_0x3c321a='formatBlock:'+_0x1b99b9,_0x57d3b2=this[_0x4bfb('0x114')]({'id':_0x2552a1,'type':_0x3c321a,'data':_0xfbc254,'createdAt':new Date(),'authorId':_0x3fc919,'attributes':_0x51921b});for(const _0x588732 of _0x3ca0d6)this[_0x4bfb('0xb')](_0x3c321a,_0x2552a1,_0x3fc919,_0x588732,_0x128731[_0x4bfb('0x69')]());return _0x57d3b2;}[_0x4bfb('0x94')](_0x5419f4,_0x2b1f2f=null,_0x59877e={}){if(_0x5419f4['isCollapsed'])return null;const _0x298334=this[_0x4bfb('0x22')][_0x4bfb('0x42')]['get'](_0x4bfb('0x5'))['me'],_0x1b9cff=new _0x3b509a(_0x5419f4[_0x4bfb('0x33')],_0x5419f4[_0x4bfb('0x7c')]);for(const {suggestion:_0x1e43ad,meta:_0x197f1f}of this[_0x4bfb('0x40')](_0x1b9cff,'insertion'))if(_0x197f1f['isOwn']&&!_0x197f1f[_0x4bfb('0xf8')]){if(_0x1e43ad[_0x4bfb('0x98')]){const _0x480c0c=_0x1e43ad[_0x4bfb('0xb6')]()[_0x4bfb('0x35')](_0x123764=>_0x4bfb('0xe7')!=_0x123764['root'][_0x4bfb('0x5a')]);_0x480c0c[_0x4bfb('0x30')](_0x14ab34=>_0x1b9cff[_0x4bfb('0x8c')](_0x14ab34,!0x0))&&_0x1e43ad['discard']();if(_0x480c0c['some'](_0x2f5170=>_0x2f5170['containsRange'](_0x1b9cff,!0x0))){const _0x38fe70=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0x14'),_0x2b1f2f,_0x4bfb('0xa6'));return this[_0x4bfb('0x47')](()=>_0x38fe70([_0x1b9cff],null,_0x59877e)),null;}}else{const _0x1ab0a7=_0x1b9cff['getIntersection'](_0x1e43ad['getFirstRange']());null!==_0x1ab0a7&&_0x1e43ad['_onDiscard']([_0x1ab0a7],null,_0x59877e);}}if(_0x1b9cff['detach'](),_0x1b9cff['isCollapsed']||_0x4bfb('0xe7')==_0x1b9cff[_0x4bfb('0x12f')]['rootName'])return null;let _0x5c6b7a=null,_0x59d38d=_0x1b9cff[_0x4bfb('0x33')],_0x40e46c=_0x1b9cff[_0x4bfb('0x7c')];const _0xa71404=this[_0x4bfb('0x40')](_0x1b9cff,_0x4bfb('0x14'));for(const {suggestion:_0x34533f,meta:_0x3ca5f9}of _0xa71404){const _0x44e9c1=this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x59d38d,_0x40e46c);if(_0x3ca5f9[_0x4bfb('0x2a')]&&(this[_0x4bfb('0xb0')]||!_0x3ca5f9[_0x4bfb('0x128')]&&!_0x3ca5f9['isInsideObject'])){if(_0x34533f[_0x4bfb('0x98')]){if(!Ut(_0x34533f,_0x59877e))continue;let _0xfb2c3c=!0x0;for(const _0x4239d3 of _0x34533f[_0x4bfb('0xb6')]()){if(_0x4239d3[_0x4bfb('0x8c')](_0x44e9c1,!0x0))return _0x34533f;_0x44e9c1[_0x4bfb('0x8c')](_0x4239d3)||(_0xfb2c3c=!0x1);}_0xfb2c3c&&_0x34533f[_0x4bfb('0x123')]();}else{const _0xfe88ad=_0x34533f[_0x4bfb('0x107')]();if(_0xfe88ad[_0x4bfb('0x8c')](_0x44e9c1,!0x0))return _0x34533f;if(!Ut(_0x34533f,_0x59877e)){_0x44e9c1[_0x4bfb('0x8c')](_0xfe88ad)?_0x34533f[_0x4bfb('0x9b')]():_0xfe88ad[_0x4bfb('0x102')](_0x59d38d)?_0x59d38d=_0xfe88ad[_0x4bfb('0x7c')]:_0xfe88ad['containsPosition'](_0x40e46c)&&(_0x40e46c=_0xfe88ad[_0x4bfb('0x33')]);continue;}_0x59d38d=_0x59d38d['isBefore'](_0xfe88ad['start'])?_0x59d38d:_0xfe88ad['start'],_0x40e46c=_0x40e46c[_0x4bfb('0xbb')](_0xfe88ad['end'])?_0x40e46c:_0xfe88ad[_0x4bfb('0x7c')],_0x59877e=Object['assign']({},_0x34533f[_0x4bfb('0x10e')]),_0x5c6b7a?_0xfe88ad[_0x4bfb('0x33')]['isBefore'](_0x5c6b7a[_0x4bfb('0x107')]()['start'])?(_0x5c6b7a[_0x4bfb('0x9b')](),_0x5c6b7a=_0x34533f):_0x34533f[_0x4bfb('0x9b')]():_0x5c6b7a=_0x34533f;}}}if(_0x5c6b7a)return this[_0x4bfb('0x12')](_0x5c6b7a,this[_0x4bfb('0x7d')]['createRange'](_0x59d38d,_0x40e46c)),_0x5c6b7a;{const _0x48b1ab=_0x405b2a(),_0x483249=this['_model'][_0x4bfb('0xdf')](_0x59d38d,_0x40e46c),_0xc1d241=_0x298334['id'],_0x184083=_0x2b1f2f?'deletion:'+_0x2b1f2f:_0x4bfb('0x14'),_0x6ad4a5=this[_0x4bfb('0x114')]({'id':_0x48b1ab,'type':_0x184083,'createdAt':new Date(),'authorId':_0xc1d241,'attributes':_0x59877e});return this[_0x4bfb('0xb')](_0x184083,_0x48b1ab,_0xc1d241,_0x483249),_0x6ad4a5;}}[_0x4bfb('0xc9')](_0x1941cf,_0x40c97a=_0x4bfb('0x10'),_0x38c428={}){const _0xb6d4c7=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5'))['me'],_0x39c2eb=_0x1941cf[_0x4bfb('0x125')](_0x5e2250=>new _0x3b509a(_0x5e2250[_0x4bfb('0x33')],_0x5e2250[_0x4bfb('0x7c')])),_0x2bcd59=new Set();for(const {suggestion:_0x480eba,meta:_0x43c536}of this[_0x4bfb('0x40')](_0x39c2eb,'insertion'))_0x43c536[_0x4bfb('0x2a')]&&!_0x43c536[_0x4bfb('0xf8')]&&_0x2bcd59[_0x4bfb('0x13d')](_0x480eba);for(const _0x1bfa33 of _0x2bcd59)if(_0x1bfa33[_0x4bfb('0x98')]){const _0x1a4dcc=_0x1bfa33[_0x4bfb('0xb6')]();(!_0x1bfa33[_0x4bfb('0x10e')]||!_0x1bfa33['attributes'][_0x4bfb('0x4c')])&&(_0x1a4dcc[_0x4bfb('0x30')](_0x443600=>_0x39c2eb[_0x4bfb('0x5e')](_0x3c01b1=>_0x3c01b1['containsRange'](_0x443600,!0x0)))&&_0x1bfa33[_0x4bfb('0x123')]());if(_0x39c2eb[_0x4bfb('0x30')](_0x331e93=>_0x1a4dcc[_0x4bfb('0x5e')](_0x5ba952=>_0x5ba952[_0x4bfb('0x8c')](_0x331e93,!0x0)))){const _0x441f08=this['_suggestionFactory'][_0x4bfb('0x99')](_0x4bfb('0x14'),_0x40c97a,_0x4bfb('0xa6'));return this[_0x4bfb('0x47')](()=>_0x441f08(_0x1941cf,null,_0x38c428)),null;}}else{const _0x10cd44=_0x1bfa33['getFirstRange']();_0x39c2eb[_0x4bfb('0x5e')](_0xb558bc=>_0xb558bc[_0x4bfb('0x8c')](_0x10cd44,!0x0))&&_0x1bfa33[_0x4bfb('0x123')]();if(_0x39c2eb[_0x4bfb('0x30')](_0x36f335=>_0x10cd44['containsRange'](_0x36f335,!0x0))){const _0x1c7017=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40c97a,_0x4bfb('0xa6'));return this[_0x4bfb('0x47')](()=>_0x1c7017(_0x39c2eb,null,_0x38c428)),null;}}const _0x3a96fd=this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x4bfb('0x14'),_0x40c97a,_0x4bfb('0xb7'));let _0x18f2b6=null;for(const _0x47282d of this[_0x4bfb('0x36')]())if(_0x47282d['author']['id']==_0xb6d4c7['id']&&_0x47282d[_0x4bfb('0x64')]&&_0x4bfb('0x14')==_0x47282d['type']&&_0x47282d[_0x4bfb('0x71')]==_0x40c97a&&Ut(_0x47282d,_0x38c428)&&(_0x3a96fd(_0x47282d[_0x4bfb('0xb6')](),_0x39c2eb)||_0x3a96fd(_0x39c2eb,_0x47282d[_0x4bfb('0xb6')]()))){if(_0x18f2b6){if(_0x47282d['commentThread']&&_0x47282d[_0x4bfb('0x145')][_0x4bfb('0x45')])continue;for(const _0x4891df of _0x47282d['getRanges']())_0x18f2b6[_0x4bfb('0xc6')](_0x4891df)||_0x18f2b6[_0x4bfb('0x147')](_0x4891df);_0x47282d[_0x4bfb('0x9b')]();}else{_0x18f2b6=_0x47282d;for(const _0x126465 of _0x39c2eb)_0x47282d[_0x4bfb('0xc6')](_0x126465)||_0x47282d['addRange'](_0x126465);}}if(_0x18f2b6)return _0x18f2b6;_0x2bcd59[_0x4bfb('0x4a')]();for(const {suggestion:_0x542013,meta:_0x5a2a9b}of this['_findSuggestions'](_0x39c2eb,_0x4bfb('0x14')))_0x5a2a9b[_0x4bfb('0x2a')]&&(this[_0x4bfb('0xb0')]||!_0x5a2a9b['containsRangeInObject']&&!_0x5a2a9b['isInsideObject'])&&Ut(_0x542013,_0x38c428)&&_0x2bcd59[_0x4bfb('0x13d')](_0x542013);for(const _0x18709e of _0x2bcd59){const _0x3d26cb=_0x18709e[_0x4bfb('0xb6')]();if(!_0x38c428||!_0x38c428[_0x4bfb('0x4c')]){if(_0x39c2eb[_0x4bfb('0x30')](_0x251e87=>_0x3d26cb[_0x4bfb('0x5e')](_0x182724=>_0x182724[_0x4bfb('0x8c')](_0x251e87,!0x0))))return _0x18709e;}(!_0x18709e['attributes']||!_0x18709e[_0x4bfb('0x10e')][_0x4bfb('0x4c')])&&(_0x3d26cb[_0x4bfb('0x30')](_0x39c8de=>_0x39c2eb[_0x4bfb('0x5e')](_0xb4e3fc=>_0xb4e3fc[_0x4bfb('0x8c')](_0x39c8de,!0x0)))&&_0x18709e[_0x4bfb('0x123')]());}const _0x3c2085=_0x405b2a(),_0x5b274f=_0xb6d4c7['id'],_0x1c8c4e=_0x4bfb('0xce')+_0x40c97a,_0x1d3b3c=this[_0x4bfb('0x114')]({'id':_0x3c2085,'type':_0x1c8c4e,'createdAt':new Date(),'authorId':_0x5b274f,'attributes':_0x38c428});for(const _0x5a04a2 of _0x39c2eb)_0x5a04a2[_0x4bfb('0x91')](),_0x5a04a2[_0x4bfb('0x9e')]||'$graveyard'==_0x5a04a2[_0x4bfb('0x12f')][_0x4bfb('0x5a')]||this[_0x4bfb('0xb')](_0x1c8c4e,_0x3c2085,_0x5b274f,_0x5a04a2,_0x128731[_0x4bfb('0x69')]());return _0x1d3b3c;}[_0x4bfb('0x12')](_0x42a4ae,_0x46b545){const _0x2b2e97=_0x42a4ae[_0x4bfb('0x3d')]();this[_0x4bfb('0x7d')][_0x4bfb('0x54')](_0x513a3a=>{_0x513a3a[_0x4bfb('0x2d')](_0x2b2e97,{'range':_0x46b545});});}[_0x4bfb('0xf7')](_0x3c57eb){const _0x447fd2=_0x3c57eb['id'],_0x4e7afb=this['editor'][_0x4bfb('0x7f')]['get'](_0x4bfb('0xd5'));this[_0x4bfb('0x104')][_0x4bfb('0xf5')](_0x447fd2)||this[_0x4bfb('0x104')][_0x4bfb('0x55')]({'channelId':_0x4e7afb,'threadId':_0x447fd2,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d1b24=this['_commentsRepository'][_0x4bfb('0x12b')](_0x447fd2);_0x3d1b24[_0x4bfb('0xc3')](_0x4bfb('0x1d')),_0x3d1b24[_0x4bfb('0x1d')]=!0x1,_0x3c57eb[_0x4bfb('0x145')]=_0x3d1b24;}['_checkSuggestionCorrectness'](_0x2e99f8,_0x308d4a,_0x195050,_0x1ef925){if(_0x2e99f8['type']!=_0x308d4a||_0x2e99f8['subType']!=_0x195050||_0x2e99f8['creator']['id']!=_0x1ef925)throw this['editor'][_0x4bfb('0xdc')]('track-changes-suggestion-data-mismatch'),new _0x5cc285(_0x4bfb('0x90'),this);}[_0x4bfb('0xdd')](_0x19f4f7,_0x347b3a){const _0x1a7aaf=_0x19f4f7[_0x4bfb('0x107')]();if(_0x347b3a[_0x4bfb('0xba')](_0x1a7aaf))_0x19f4f7[_0x4bfb('0x9b')]();else{if(_0x1a7aaf['containsRange'](_0x347b3a)){const _0x26a097=this['_model'][_0x4bfb('0x84')](_0x347b3a[_0x4bfb('0x33')]['nodeBefore'],_0x4bfb('0x7c'));this[_0x4bfb('0x12')](_0x19f4f7,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x1a7aaf[_0x4bfb('0x33')],_0x26a097));const _0x1c122b=_0x405b2a(),_0x18835d=_0x19f4f7[_0x4bfb('0x67')]['id'],_0x3cf456=_0x19f4f7['type']+':'+_0x19f4f7[_0x4bfb('0x71')];this[_0x4bfb('0x114')]({'id':_0x1c122b,'type':_0x3cf456,'createdAt':new Date(),'authorId':_0x18835d,'data':_0x19f4f7[_0x4bfb('0x118')],'attributes':_0x19f4f7[_0x4bfb('0x10e')]});const _0x4a5c00=this['_model'][_0x4bfb('0x84')](_0x347b3a[_0x4bfb('0x7c')][_0x4bfb('0x1f')],_0x4bfb('0x112')),_0x2e9048=this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x4a5c00,_0x1a7aaf[_0x4bfb('0x7c')]);this[_0x4bfb('0xb')](_0x3cf456,_0x1c122b,_0x18835d,_0x2e9048);}else{if(_0x1a7aaf[_0x4bfb('0x102')](_0x347b3a['start'])){const _0x1b23ba=this['_model'][_0x4bfb('0x84')](_0x347b3a['start'][_0x4bfb('0x1c')],'end');this[_0x4bfb('0x12')](_0x19f4f7,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x1a7aaf['start'],_0x1b23ba));}else{const _0x19d4db=this[_0x4bfb('0x7d')][_0x4bfb('0x84')](_0x347b3a[_0x4bfb('0x7c')][_0x4bfb('0x1f')],_0x4bfb('0x112'));this[_0x4bfb('0x12')](_0x19f4f7,this['_model'][_0x4bfb('0xdf')](_0x19d4db,_0x1a7aaf[_0x4bfb('0x7c')]));}}}}['_rangeIsInLocalUserInsertion'](_0x3dc8d1){for(const {suggestion:_0x300107,meta:_0x226fbe}of this['_findSuggestions'](_0x3dc8d1,_0x4bfb('0x119'))){if(!_0x226fbe['isOwn'])continue;const _0x54ec3f=_0x300107[_0x4bfb('0xb6')]();for(const _0x172464 of _0x54ec3f)if(!_0x3dc8d1[_0x4bfb('0x87')](_0x172464)[_0x4bfb('0x45')])return!0x0;}return!0x1;}[_0x4bfb('0x146')](_0x3c0dab){const _0x425e69=this[_0x4bfb('0x22')][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5'))['getUser'](_0x3c0dab);if(!_0x425e69)throw new _0x5cc285(_0x4bfb('0x59'),this);return _0x425e69;}[_0x4bfb('0x6')](_0x112672){const _0x250263=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5')),_0xd50d70=_0x5225a2(_0x4bfb('0x3a')+_0x112672),_0x1c94f3=_0x250263[_0x4bfb('0xf9')](_0xd50d70);return _0x1c94f3||_0x250263[_0x4bfb('0x97')]({'id':_0xd50d70,'name':_0x112672});}[_0x4bfb('0xbd')](_0x163641,_0x391dba,_0x38a09c,_0x49108b,_0x143495){const _0x525bc3=this['_getAuthorFromId'](_0x49108b),_0x25e080=this[_0x4bfb('0x31')][_0x4bfb('0x74')](_0x163641,_0x391dba,_0x38a09c,_0x525bc3,_0x143495,_0xabde0e=>this[_0x4bfb('0x127')](_0x38a09c,{'attributes':_0xabde0e}));return this['listenTo'](_0x25e080,'accept',()=>{this[_0x4bfb('0x127')](_0x38a09c,{'state':_0x4bfb('0x11f')});},{'priority':_0x4bfb('0x73')}),this['listenTo'](_0x25e080,_0x4bfb('0x123'),()=>{this['_updateSuggestionData'](_0x38a09c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x38a09c,_0x25e080),this['_suggestionState'][_0x4bfb('0x8e')](_0x25e080,_0x4bfb('0x134')),_0x25e080;}[_0x4bfb('0x105')](_0x3db48b){const _0xd04e51=_0x3db48b[_0x4bfb('0x3e')](':');return{'group':_0xd04e51[0x0],'type':_0xd04e51[0x1],'subType':_0xd04e51['length']>=0x5?_0xd04e51[0x2]:null,'id':_0xd04e51[_0x4bfb('0x45')]<0x5?_0xd04e51[0x2]:_0xd04e51[0x3],'authorId':_0xd04e51['length']<0x5?_0xd04e51[0x3]:_0xd04e51[0x4],'markerCount':0x6==_0xd04e51[_0x4bfb('0x45')]?_0xd04e51[0x5]:null};}[_0x4bfb('0x130')](_0x234d30,_0xdf251a,_0x18ef80){const _0x91e5af=_0x234d30['getFirstRange'](),_0x3ceb2a=_0x91e5af[_0x4bfb('0x33')],_0x5361a1=_0x91e5af[_0x4bfb('0x7c')];this[_0x4bfb('0x12')](_0x234d30,this[_0x4bfb('0x7d')]['createRange'](_0x3ceb2a,_0xdf251a));const _0x3bd00f=_0x405b2a(),_0x5414ae=_0x234d30[_0x4bfb('0x67')]['id'],_0x55d9f3=_0x234d30[_0x4bfb('0x66')]+(_0x234d30['subType']?':'+_0x234d30[_0x4bfb('0x71')]:'');this[_0x4bfb('0x114')]({'id':_0x3bd00f,'type':_0x55d9f3,'createdAt':new Date(),'authorId':_0x5414ae,'originalSuggestionId':_0x234d30['id'],'attributes':_0x234d30[_0x4bfb('0x10e')],'data':_0x234d30[_0x4bfb('0x118')]}),_0x4bfb('0xa8')==_0x234d30[_0x4bfb('0x66')]&&(_0x18ef80=this[_0x4bfb('0x7d')][_0x4bfb('0x41')](_0x18ef80[_0x4bfb('0x1f')])),this[_0x4bfb('0xb')](_0x55d9f3,_0x3bd00f,_0x5414ae,this['_model'][_0x4bfb('0xdf')](_0x18ef80,_0x5361a1));}[_0x4bfb('0x40')](_0x5b9a85,_0x54f308=null){const _0x388b06=[],_0x27d28c=this[_0x4bfb('0x22')][_0x4bfb('0x42')][_0x4bfb('0x43')](_0x4bfb('0x5'))['me'];Array[_0x4bfb('0x50')](_0x5b9a85)||(_0x5b9a85=[_0x5b9a85]);for(const _0x14ce10 of this[_0x4bfb('0x36')]()){if(!_0x14ce10[_0x4bfb('0x64')])continue;if(_0x54f308&&_0x14ce10['type']!=_0x54f308)continue;let _0x23bb51=!0x1;for(const _0x36cd14 of _0x14ce10[_0x4bfb('0xb6')]()){for(const _0x7646e2 of _0x5b9a85){const _0x17a9a3=_0x7646e2[_0x4bfb('0x33')][_0x4bfb('0xba')](_0x36cd14['end'])||_0x7646e2[_0x4bfb('0x7c')][_0x4bfb('0xba')](_0x36cd14[_0x4bfb('0x33')]);if(_0x17a9a3||_0x7646e2[_0x4bfb('0x37')](_0x36cd14)){const _0x290bdb=_0x7646e2[_0x4bfb('0x8c')](_0x36cd14)&&Bt(this[_0x4bfb('0x7d')][_0x4bfb('0x1b')],_0x36cd14['start'],_0x7646e2),_0x3f4159=_0x36cd14[_0x4bfb('0x8c')](_0x7646e2)&&Bt(this[_0x4bfb('0x7d')][_0x4bfb('0x1b')],_0x7646e2[_0x4bfb('0x33')],_0x36cd14);_0x388b06['push']({'suggestion':_0x14ce10,'meta':{'isOwn':_0x27d28c==_0x14ce10[_0x4bfb('0xcf')],'isNextTo':_0x17a9a3,'isInsideObject':_0x290bdb,'containsRangeInObject':_0x3f4159}}),_0x23bb51=!0x0;break;}}if(_0x23bb51)break;}}return _0x388b06;}[_0x4bfb('0xb')](_0x5ac5e4,_0x464fee,_0x3c4afa,_0xc8332b,_0x4bd9b3){this[_0x4bfb('0x7d')]['change'](_0x3d5f0c=>{let _0xaf5116=_0x4bfb('0xf2')+_0x5ac5e4+':'+_0x464fee+':'+_0x3c4afa;_0x4bd9b3&&(_0xaf5116=_0xaf5116+':'+_0x4bd9b3),_0x3d5f0c[_0x4bfb('0x3c')](_0xaf5116,{'range':_0xc8332b,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4bfb('0x32')](_0x5a25fe){const _0x5d6f6a=_0x5a25fe[_0x4bfb('0xc0')],_0x495824=_0x5a25fe[_0x4bfb('0x7e')];_0x5a25fe['previous']=null,null!=_0x5d6f6a&&(_0x5d6f6a[_0x4bfb('0x7e')]=null),_0x5a25fe[_0x4bfb('0x7e')]=null,null!=_0x495824&&(_0x495824[_0x4bfb('0xc0')]=null),'ready'==this[_0x4bfb('0x24')][_0x4bfb('0x43')](_0x5a25fe)&&(this['_suggestionState'][_0x4bfb('0x8e')](_0x5a25fe,_0x4bfb('0xf6')),this['fire'](_0x4bfb('0x10d'),_0x5a25fe,_0x5d6f6a,_0x495824));}[_0x4bfb('0x114')](_0x4d4be3){const _0x59e802=_0x4d4be3['id'],_0x5e75f0=this[_0x4bfb('0xc1')](_0x4d4be3);if(this['_adapter']&&this[_0x4bfb('0x13')][_0x4bfb('0x58')]){const _0x20b091=this[_0x4bfb('0x22')][_0x4bfb('0x42')]['get'](_0x4bfb('0x12d')),_0x70fe7e=_0x5e75f0[_0x4bfb('0x2b')],_0x2864bb=_0x5e75f0[_0x4bfb('0x71')]?_0x5e75f0[_0x4bfb('0x66')]+':'+_0x5e75f0[_0x4bfb('0x71')]:_0x5e75f0['type'],_0x501377=this['editor'][_0x4bfb('0x72')],_0x4a5570=_0x20b091[_0x4bfb('0x13d')](_0x41814a(_0x501377,_0x4bfb('0x16'))),_0x56c180={'id':_0x59e802,'type':_0x2864bb,'hasComments':_0x70fe7e,'data':_0x4d4be3[_0x4bfb('0x118')]||null,'originalSuggestionId':_0x4d4be3['originalSuggestionId']||null,'attributes':_0x5e75f0[_0x4bfb('0x10e')]};this['_adapter'][_0x4bfb('0x58')](_0x56c180)['then'](_0x574adf=>{_0x5e75f0['_saved']=!0x0,_0x20b091[_0x4bfb('0x53')](_0x4a5570),_0x574adf&&_0x574adf['createdAt']&&(this[_0x4bfb('0x10c')][_0x4bfb('0x43')](_0x59e802)[_0x4bfb('0x9a')]=_0x574adf['createdAt']);})[_0x4bfb('0x29')](_0x19ed41=>{throw _0x11be23('error-saving-suggestion-data-suggestion-discarded'),this[_0x4bfb('0x22')][_0x4bfb('0x11')][_0x4bfb('0x96')]({'isUndoable':!0x1},()=>{_0x5e75f0[_0x4bfb('0x123')]();}),_0x5e75f0[_0x4bfb('0x52')](),this['_suggestions'][_0x4bfb('0xcb')](_0x5e75f0['id']),this['_suggestionState'][_0x4bfb('0xcb')](_0x5e75f0),_0x19ed41;});}return _0x5e75f0;}[_0x4bfb('0x127')](_0x4bc747,_0x3f18be){const _0x2430aa=this['editor'][_0x4bfb('0x42')][_0x4bfb('0x43')]('PendingActions'),_0x257abf=this['getSuggestion'](_0x4bc747);if(this[_0x4bfb('0x13')]&&this['_adapter']['updateSuggestion']){if(_0x257abf['_saved']){const _0x58884e=_0x2430aa[_0x4bfb('0x13d')](_0x41814a(this[_0x4bfb('0x22')][_0x4bfb('0x72')],'PENDING_ACTION_SUGGESTION'));this[_0x4bfb('0x13')][_0x4bfb('0x2')](_0x4bc747,_0x3f18be)[_0x4bfb('0xef')](()=>{_0x2430aa['remove'](_0x58884e);});}else _0x257abf['on'](_0x4bfb('0xf'),()=>{this[_0x4bfb('0x127')](_0x4bc747,_0x3f18be);});}}[_0x4bfb('0x6f')](_0x2813d6){if(!this['_adapter']||!this[_0x4bfb('0x13')]['getSuggestion'])throw new _0x5cc285(_0x4bfb('0xd3'),this);return this[_0x4bfb('0x13')][_0x4bfb('0x80')](_0x2813d6);}[_0x4bfb('0x25')](_0x2687cb){const {id:_0x144aa4,type:_0x264c94,subType:_0x5e9eed,authorId:_0x55c611}=this['_splitMarkerName'](_0x2687cb),_0x35c853=this[_0x4bfb('0x10c')]['get'](_0x144aa4)||this[_0x4bfb('0xbd')](_0x264c94,_0x5e9eed,_0x144aa4,_0x55c611,{});switch(this[_0x4bfb('0x8a')](_0x35c853,_0x264c94,_0x5e9eed,_0x55c611),this['_suggestionState'][_0x4bfb('0x43')](_0x35c853)){case _0x4bfb('0x134'):this[_0x4bfb('0x6f')](_0x144aa4)[_0x4bfb('0xef')](_0x1e39c0=>{let _0x424b49=Promise[_0x4bfb('0x138')]();_0x1e39c0[_0x4bfb('0x2b')]&&(_0x424b49=this[_0x4bfb('0x104')][_0x4bfb('0xe5')]({'channelId':this['editor']['config'][_0x4bfb('0x43')](_0x4bfb('0xd5')),'threadId':_0x144aa4})),_0x424b49[_0x4bfb('0xef')](()=>{this[_0x4bfb('0xc1')](_0x1e39c0)[_0x4bfb('0x60')]=!0x0;});}),this[_0x4bfb('0x24')]['set'](_0x35c853,_0x4bfb('0x3'));break;case _0x4bfb('0xf6'):this[_0x4bfb('0x127')](_0x144aa4,{'state':_0x4bfb('0xc4')});case _0x4bfb('0xa2'):this[_0x4bfb('0x24')][_0x4bfb('0x8e')](_0x35c853,_0x4bfb('0x13b')),this[_0x4bfb('0xd2')](_0x4bfb('0x92'),_0x35c853);break;case'ready':this[_0x4bfb('0xd2')](_0x4bfb('0xb8'),_0x35c853);}return _0x35c853[_0x4bfb('0x9c')](_0x2687cb),_0x35c853;}[_0x4bfb('0x6b')](_0x2d107a){const _0x468be9=Array[_0x4bfb('0x70')](_0x2d107a)[_0x4bfb('0x35')](_0x33eb99=>!_0x33eb99[_0x4bfb('0x98')]),_0x5e0cbe=this[_0x4bfb('0x36')]({'skipNotAttached':!0x0})[_0x4bfb('0x35')](_0x20b9bd=>!_0x20b9bd[_0x4bfb('0x98')]),_0x2ffc20=_0x5e0cbe[_0x4bfb('0x35')](_0x1d9e87=>!_0x2d107a[_0x4bfb('0xa')](_0x1d9e87)),_0xfe6163=new Map(_0x5e0cbe['map'](_0x928fd8=>[_0x928fd8,this[_0x4bfb('0x31')][_0x4bfb('0x99')](_0x928fd8[_0x4bfb('0x66')],_0x928fd8['subType'],_0x4bfb('0xb3'))])),_0x32b991=new Map(_0x5e0cbe[_0x4bfb('0x125')](_0x4ff0ab=>[_0x4ff0ab,_0x4ff0ab[_0x4bfb('0x107')]()])),_0x46e805=new Set(),_0x412516=new Set();for(let _0x3c3fc1=0x0;_0x3c3fc1<_0x468be9[_0x4bfb('0x45')];_0x3c3fc1++)_0x5723f3(_0x468be9[_0x3c3fc1],_0x468be9,_0x3c3fc1+0x1);for(let _0x124b9f=0x0;_0x124b9f<_0x468be9[_0x4bfb('0x45')];_0x124b9f++)_0x5723f3(_0x468be9[_0x124b9f],_0x2ffc20,0x0);for(let _0x3066c9=0x0;_0x3066c9<_0x468be9['length'];_0x3066c9++){const _0x3f2139=_0x468be9[_0x3066c9];!_0x412516[_0x4bfb('0xa')](_0x3f2139)&&_0x3f2139[_0x4bfb('0xc0')]&&(_0x3f2139[_0x4bfb('0xc0')][_0x4bfb('0x7e')]===_0x3f2139&&(_0x3f2139['previous'][_0x4bfb('0x7e')]=null),_0x3f2139[_0x4bfb('0xc0')]=null),!_0x46e805[_0x4bfb('0xa')](_0x3f2139)&&_0x3f2139['next']&&(_0x3f2139[_0x4bfb('0x7e')]['previous']===_0x3f2139&&(_0x3f2139[_0x4bfb('0x7e')]['previous']=null),_0x3f2139['next']=null);}function _0x5723f3(_0x45ab8c,_0x331c80,_0x625e0a){for(let _0x528e75=_0x625e0a;_0x528e75<_0x331c80['length'];_0x528e75++){const _0x1de654=_0x1328dd(_0x45ab8c,_0x331c80[_0x528e75]);_0x1de654&&(_0x1de654[0x0][_0x4bfb('0x7e')]=_0x1de654[0x1],_0x1de654[0x1][_0x4bfb('0xc0')]=_0x1de654[0x0],_0x46e805[_0x4bfb('0x13d')](_0x1de654[0x0]),_0x412516[_0x4bfb('0x13d')](_0x1de654[0x1]));}}function _0x1328dd(_0x32d36e,_0x4ded6e){if(_0x32d36e[_0x4bfb('0xcf')]['id']!==_0x4ded6e[_0x4bfb('0xcf')]['id'])return null;const _0x1c9b75=_0xfe6163['get'](_0x32d36e)(_0x32d36e,_0x4ded6e,_0x32b991[_0x4bfb('0x43')](_0x32d36e),_0x32b991[_0x4bfb('0x43')](_0x4ded6e));if(!_0x1c9b75)return null;return _0xfe6163[_0x4bfb('0x43')](_0x4ded6e)(_0x32d36e,_0x4ded6e,_0x32b991[_0x4bfb('0x43')](_0x32d36e),_0x32b991[_0x4bfb('0x43')](_0x4ded6e))?_0x1c9b75[0x1][_0x4bfb('0x145')]&&_0x1c9b75[0x1][_0x4bfb('0x145')][_0x4bfb('0x45')]?null:_0x1c9b75:null;}}[_0x4bfb('0x1a')](_0x29bf39){const _0x5cc6fd=Array[_0x4bfb('0x70')](_0x29bf39),_0x11e8d3=this[_0x4bfb('0x36')]({'skipNotAttached':!0x0}),_0x295762=_0x11e8d3['filter'](_0x333579=>!_0x29bf39[_0x4bfb('0xa')](_0x333579)),_0x3711f5=new Map(_0x5cc6fd['map'](_0x469472=>[_0x469472,this[_0x4bfb('0x31')]['getSuggestionCallback'](_0x469472[_0x4bfb('0x66')],_0x469472['subType'],_0x4bfb('0xb7'))])),_0x3e9ebc=new Map(_0x11e8d3[_0x4bfb('0x125')](_0xa4d98d=>[_0xa4d98d,_0xa4d98d['getRanges']()]));for(let _0x2b9c22=0x0;_0x2b9c22<_0x5cc6fd[_0x4bfb('0x45')];_0x2b9c22++){if(_0x2be09a(this,_0x5cc6fd[_0x2b9c22],_0x5cc6fd,_0x2b9c22+0x1))return!0x0;}for(let _0x521955=0x0;_0x521955<_0x5cc6fd['length'];_0x521955++){if(_0x2be09a(this,_0x5cc6fd[_0x521955],_0x295762,0x0))return!0x0;}return!0x1;function _0x2be09a(_0x4e1e9e,_0x1cf184,_0x119cf3,_0x1d8bf4){for(let _0x363f8a=_0x1d8bf4;_0x363f8a<_0x119cf3[_0x4bfb('0x45')];_0x363f8a++){const _0x3f514a=_0x119cf3[_0x363f8a];if(_0x3f514a['type']!==_0x1cf184['type']||_0x3f514a[_0x4bfb('0xcf')]['id']!==_0x1cf184[_0x4bfb('0xcf')]['id']||_0x3f514a[_0x4bfb('0x71')]!==_0x1cf184['subType'])continue;if(!xt(_0x1cf184,_0x3f514a))continue;const _0x2c0fa9=_0x3711f5[_0x4bfb('0x43')](_0x1cf184),_0x5c63b0=_0x3e9ebc[_0x4bfb('0x43')](_0x1cf184),_0x2ba58e=_0x3e9ebc[_0x4bfb('0x43')](_0x3f514a),_0x450818=_0x1cf184[_0x4bfb('0x145')]&&_0x1cf184[_0x4bfb('0x145')][_0x4bfb('0x45')],_0x172442=_0x3f514a[_0x4bfb('0x145')]&&_0x3f514a[_0x4bfb('0x145')]['length'];if(!_0x450818&&_0x2c0fa9(_0x2ba58e,_0x5c63b0))return _0x4e1e9e['_joinSuggestions'](_0x3f514a,_0x1cf184),_0x3e9ebc['delete'](_0x1cf184),!0x0;if(!_0x172442&&_0x2c0fa9(_0x5c63b0,_0x2ba58e))return _0x4e1e9e[_0x4bfb('0xf1')](_0x1cf184,_0x3f514a),_0x3e9ebc[_0x4bfb('0xcb')](_0x3f514a),!0x0;}return!0x1;}}[_0x4bfb('0xf1')](_0x533a89,_0xf9a183){if(_0x533a89[_0x4bfb('0x98')])for(const _0x29b019 of _0xf9a183[_0x4bfb('0xb6')]())_0x533a89['addRange'](_0x29b019);else{const _0x5e86be=_0xf9a183[_0x4bfb('0x107')]()[_0x4bfb('0x7c')];this[_0x4bfb('0x12')](_0x533a89,this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x533a89[_0x4bfb('0x107')]()[_0x4bfb('0x33')],_0x5e86be));}_0xf9a183[_0x4bfb('0x9b')]();}}class Dt{constructor(_0x5b2210){this['_editor']=_0x5b2210,this[_0x4bfb('0x7d')]=_0x5b2210[_0x4bfb('0x11')],this[_0x4bfb('0xd8')]=new Map(),this[_0x4bfb('0x75')]=new Map(),this[_0x4bfb('0x9d')]();}[_0x4bfb('0x74')](_0x61b4d7,_0x2b7512,_0x4e310a,_0x188ccd,_0x37931e,_0x542dbf){return new _0x128731(this['_model'],{'type':_0x61b4d7,'subType':_0x2b7512,'id':_0x4e310a,'author':_0x188ccd,'creator':_0x188ccd,'attributes':_0x37931e,'onAttributesChange':_0x542dbf,'onAccept':(..._0x47ff2d)=>this[_0x4bfb('0x99')](_0x61b4d7,_0x2b7512,_0x4bfb('0xa6'))(..._0x47ff2d),'onDiscard':(..._0x287c37)=>this[_0x4bfb('0x99')](_0x61b4d7,_0x2b7512,_0x4bfb('0x123'))(..._0x287c37)});}[_0x4bfb('0xe3')](_0x4161f7,_0x23e196,_0x259f6f,_0x4cdd57){const _0x1f4b31=_0x4161f7+':'+_0x23e196+':'+_0x259f6f;this[_0x4bfb('0xd8')]['set'](_0x1f4b31,_0x4cdd57);}[_0x4bfb('0x99')](_0x1396a4,_0xba0b,_0x11c7d3){const _0x577c1c=_0x1396a4+':'+_0xba0b+':'+_0x11c7d3;return this[_0x4bfb('0xd8')][_0x4bfb('0x43')](_0x577c1c)||this['_defaultCallbacks'][_0x4bfb('0x43')](_0x1396a4+':'+_0x11c7d3);}[_0x4bfb('0x9d')](){const _0x39002e=()=>!0x1,_0x3b3f9f=_0x1db45c=>{_0x1db45c[_0x4bfb('0x62')]((_0xe1d662,_0x31e1e0)=>_0xe1d662[_0x4bfb('0x33')][_0x4bfb('0xee')](_0x31e1e0[_0x4bfb('0x33')])?0x1:-0x1),this[_0x4bfb('0x7d')][_0x4bfb('0x54')](_0x56c43d=>{for(const _0x257cea of _0x1db45c){let _0x58806d;_0x58806d=_0x257cea[_0x4bfb('0x7c')][_0x4bfb('0x49')]&&_0x257cea['end'][_0x4bfb('0x1f')]==_0x257cea['start'][_0x4bfb('0xa4')]?_0x56c43d[_0x4bfb('0xc8')](_0x257cea[_0x4bfb('0x33')][_0x4bfb('0xa4')],'on'):_0x56c43d[_0x4bfb('0xc8')](_0x257cea),this['_model']['deleteContent'](_0x58806d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x43bb89=(_0x572d40,_0x18004b)=>{this['_model'][_0x4bfb('0x54')](_0x173389=>{const {commandName:_0x4fc399,commandParams:_0x39444b=[]}=_0x18004b,_0x1f539b=_0x572d40['map'](_0x111e8d=>(_t(_0x111e8d)&&(_0x111e8d=this[_0x4bfb('0x7d')][_0x4bfb('0xdf')](_0x111e8d['end'])),_0x111e8d))[_0x4bfb('0x35')](_0x2d6e31=>_0x4bfb('0xe7')!==_0x2d6e31['root'][_0x4bfb('0x5a')]);if(_0x1f539b['length']<0x1)return;const _0x33f5cb=Array[_0x4bfb('0x70')](this['_model'][_0x4bfb('0xd1')][_0x4bfb('0xb2')][_0x4bfb('0xb6')]())['map'](_0x394b48=>_0x3b509a['fromRange'](_0x394b48));_0x173389[_0x4bfb('0x100')](_0x1f539b);for(const _0x3c09f8 of this[_0x4bfb('0xc7')]['commands']['commands']())_0x3c09f8[_0x4bfb('0x8')]();_0x39444b[_0x4bfb('0x13c')]({'forceDefaultExecution':!0x0}),this[_0x4bfb('0xc7')][_0x4bfb('0x129')](_0x4fc399,..._0x39444b);const _0x147980=_0x33f5cb[_0x4bfb('0x35')](_0x40f1a4=>'$graveyard'!=_0x40f1a4[_0x4bfb('0x12f')][_0x4bfb('0x5a')]);_0x147980[_0x4bfb('0x45')]>0x0&&_0x173389['setSelection'](_0x147980);for(const _0x565608 of _0x33f5cb)_0x565608['detach']();});},_0x4d8301=(_0x2e5416,_0x17a841)=>0x1==_0x2e5416[_0x4bfb('0x45')]&&0x1==_0x17a841[_0x4bfb('0x45')]&&_0x2e5416[0x0][_0x4bfb('0x7c')][_0x4bfb('0xba')](_0x17a841[0x0][_0x4bfb('0x33')]),_0x5dba5a=(_0x3c6c40,_0x5096c6,_0x2ce41e,_0x4a7fb1)=>jt(_0x3c6c40,_0x5096c6,_0x2ce41e,_0x4a7fb1,this['_model'])?[_0x3c6c40,_0x5096c6]:jt(_0x5096c6,_0x3c6c40,_0x4a7fb1,_0x2ce41e,this[_0x4bfb('0x7d')])?[_0x5096c6,_0x3c6c40]:null;this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x108'),_0x39002e),this['_defaultCallbacks']['set'](_0x4bfb('0x86'),_0x3b3f9f),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x5c'),_0x4d8301),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x117'),_0x5dba5a),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x51'),_0x3b3f9f),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x48'),_0x39002e),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x0'),_0x4d8301),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x12a'),_0x5dba5a),this[_0x4bfb('0x75')][_0x4bfb('0x8e')]('formatInline:accept',_0x43bb89),this[_0x4bfb('0x75')]['set']('formatInline:discard',_0x39002e),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x27'),_0x4d8301),this[_0x4bfb('0x75')]['set'](_0x4bfb('0xe0'),_0x39002e),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x2c'),_0x43bb89),this['_defaultCallbacks'][_0x4bfb('0x8e')](_0x4bfb('0xdb'),_0x39002e),this['_defaultCallbacks'][_0x4bfb('0x8e')](_0x4bfb('0xd7'),_0x4d8301),this[_0x4bfb('0x75')][_0x4bfb('0x8e')](_0x4bfb('0x56'),_0x39002e);}}function Bt(_0x1567e2,_0x1320a5,_0x324774){for(const _0x128324 of _0x1320a5[_0x4bfb('0x1f')][_0x4bfb('0x57')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x128324[_0x4bfb('0x12f')]==_0x128324)return!0x1;if(!_0x324774[_0x4bfb('0xca')](_0x128324))return!0x1;if(_0x1567e2[_0x4bfb('0x144')](_0x128324)||_0x1567e2['isLimit'](_0x128324))return!0x0;}return!0x1;}function _t(_0x4fd08a){return _0x4fd08a['end']['parent']==_0x4fd08a[_0x4bfb('0x33')][_0x4bfb('0xa4')]&&_0x4fd08a['end'][_0x4bfb('0x82')];}function Mt(_0x5c079b,_0x543e18,_0x42251d,_0x3f99b0){const _0x33d6e9=_0x543db1=>!_0x543db1[_0x4bfb('0x113')]['is'](_0x4bfb('0x79'))&&!_0x3f99b0['isObject'](_0x543db1[_0x4bfb('0x113')]),_0x12a729=_0x5c079b[_0x4bfb('0x33')][_0x4bfb('0xc')](_0x33d6e9),_0x3afb27=_0x5c079b[_0x4bfb('0x7c')][_0x4bfb('0xc')](_0x33d6e9,{'direction':_0x4bfb('0x13a')});return(!_0x5c079b[_0x4bfb('0x33')][_0x4bfb('0xba')](_0x12a729)||!_0x5c079b[_0x4bfb('0x7c')][_0x4bfb('0xba')](_0x3afb27))&&(_0x12a729[_0x4bfb('0xee')](_0x3afb27)?_0x42251d[_0x4bfb('0x2d')](_0x543e18,{'range':_0x42251d[_0x4bfb('0xdf')](_0x12a729,_0x3afb27)}):_0x42251d[_0x4bfb('0x3b')](_0x543e18),!0x0);}function $t(_0x32ab4b){return _0x5225a2(_0x32ab4b);}function Nt(_0x4eebca){const _0x216096=_0x4eebca['start'][_0x4bfb('0xa4')];return _0x216096&&_0x216096['is'](_0x4bfb('0x88'));}function Rt(_0x5d2105,_0x2c7215){const _0xb3c8d8=_0x2c7215[_0x4bfb('0x1b')]['isObject'](_0x5d2105)||_0x2c7215[_0x4bfb('0x1b')][_0x4bfb('0x1')](_0x5d2105);return _0x2c7215[_0x4bfb('0xdf')](_0x2c7215[_0x4bfb('0x84')](_0x5d2105,'before'),_0xb3c8d8?_0x2c7215['createPositionAfter'](_0x5d2105):_0x2c7215['createPositionAt'](_0x5d2105,_0x4bfb('0x7c')));}function jt(_0xb84d2,_0x31d3ac,_0x21df2b,_0x5ae443,_0x44751c){if(!xt(_0xb84d2,_0x31d3ac))return!0x1;if(_0x21df2b[_0x4bfb('0x7c')]['isEqual'](_0x5ae443[_0x4bfb('0x33')]))return!0x0;if(_0xb84d2[_0x4bfb('0x66')]!=_0x31d3ac[_0x4bfb('0x66')])return!0x1;if(!_0x21df2b[_0x4bfb('0x7c')][_0x4bfb('0xb5')](_0x5ae443[_0x4bfb('0x33')]))return!0x1;const _0x5a9670=_0x44751c[_0x4bfb('0xdf')](_0x21df2b[_0x4bfb('0x7c')],_0x5ae443[_0x4bfb('0x33')])[_0x4bfb('0x12c')]();for(const _0x1484e0 of _0x5a9670)if([_0x4bfb('0x6d'),_0x4bfb('0x76')][_0x4bfb('0x2e')](_0x1484e0[_0x4bfb('0x66')])&&_0x44751c['schema']['isLimit'](_0x1484e0[_0x4bfb('0x113')]))return!0x1;return!0x0;}function xt(_0x13d794,_0xab7874){return!(!_0x13d794['_isDataLoaded']||!_0xab7874['_isDataLoaded'])&&_0x2821ce(_0x13d794[_0x4bfb('0x10e')],_0xab7874[_0x4bfb('0x10e')]);}function Ut(_0x19442c,_0x2326fd){const _0x271e31=Ot(_0x19442c[_0x4bfb('0x10e')]),_0x233677=Ot(_0x2326fd);if(!_0x19442c['_isDataLoaded'])return!0x1;for(const _0x407046 of Object['keys'](_0x233677))if(!_0x2821ce(_0x271e31[_0x407046],_0x233677[_0x407046]))return!0x1;return!0x0;}function Ot(_0x31c4cc){const _0x373cff=Object[_0x4bfb('0x3f')]({},_0x31c4cc);return delete _0x373cff[_0x4bfb('0x4c')],delete _0x373cff[_0x4bfb('0x11e')],_0x373cff;}
|