@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230802.0 → 0.0.0-nightly-20230803.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/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x58bf=['_joinWithAdjacentSuggestions','formatInline','selection','catch','dataReady','markerToData','CommentsRepository','toJSON','_getSuggestionData','addSuggestionData','resolve','toViewElement','clear','isSelectable','_suggestionState','_saved','suggestion-type','removeMarker','formatInline:join','targetPosition','size','oldRange','requires','getNearestSelectionRange','default','registerCustomCallback','consumable','multipleBlocks','getMultiRangeId','formatInline:discard','isExternal','getRanges','getUser','addMarkerName','trackChanges','isTouching','head','map','getSuggestionCallback','model','addMarker:suggestion','suggestionChanged','deleteContent','discardSuggestion','add','data','authorName','_addThreadToSuggestion','track-changes-adapter-already-set','createElement','isEqual','addHighlight','_joinSuggestions','document','fromRange','deletion:','_suggestions','consume','createRange','get','formatBlock:','locale','range','trackChanges.trackFormatChanges','getCustomProperty','conversion','forceDefaultExecution','addSuggestion','_defaultCallbacks','length','_handleNewSuggestionMarker','dataToMarker','removed','author','ck-suggestion-marker-','insertion','stopListening','PENDING_ACTION_SUGGESTION','before','track-changes-command-not-found','execute','getLastMatchingPosition','isLocal','_findSuggestions','documentSelection','commandName','_addSuggestionMarker','addCommentThread','backward','isBefore','formatBlock','filter','removeAttribute','listenTo','getChanges','isInContent','external:','getFirstRange','enableCommand','rootName','_model','set','isRemovable','getFirstMarker','join','group','hasComments','options','editingDowncast','containsRangeInObject','editor','setTo','activeMarkers','values','isNextTo','deletion:chain','TrackChangesEditing','getAllAdjacentSuggestions','stop','_updateSuggestionData','getCommentThread','batch','_trackFormatChanges','getAttribute','track-changes-suggestion-data-mismatch','suggestion','addRange','normal','isMultiRange','_adapter','has','change','trackChanges.mergeNestedSuggestions','getRange','insertion:','getMarkers','getSuggestions','isInsideObject','value','dataDowncast','containsPosition','never','getIntersection','discardAllSuggestions','push','low','config','isOwn','ck-suggestion-marker','suggestionUnloaded','type','createSelection','addMarker','_breakSuggestionMarker','markInlineFormat','getAncestors','createPositionBefore','updateSuggestion','collaboration.channelId','$graveyard','start','commands','chain','includes','delete','_getExternalAuthor','move','attributes','rethrowUnexpectedError','ck-suggestion-marker-formatBlock','accept','_enabledCommands','skipNestingCheck','high','splitPosition','markers','isAtEnd','_splitMarkerName','parent','deletion:join','markerToHighlight','insertion:chain','hasSuggestion','always','isDocumentOperation','elementEnd','formatInline:','element','authoredAt','acceptSuggestion','position','lowest','insert','data-suggestion','_editor','writer','addMarker:suggestion:formatBlock','nodeAfter','ck-suggestion-marker--active','buildSuggestion','removeClass','_mergeNestedSuggestions','isCollapsed','then','ready','item','insertion:discard','removeMarkers','subType','accepted','removeComment','_refreshSuggestionsChain','split','next','getWalker','bindElementToMarker','Users','substr','for','acceptSelectedSuggestions','_getAuthorFromId','change:data','containsRange','createPositionAfter','suggestionLoaded','_cutOutSuggestionMarker','_checkSuggestionCorrectness','_isForcedDefaultExecutionBlock','multi','addComment','elementStart','_suggestionFactory','highest','addClass','fire','root','reconvertMarker','_descriptionFactory','_rangeIsInLocalUserInsertion','commentThread','schema','every','upcast','@external','return','update:suggestion','adapter','showSuggestionHighlights','createRangeIn','registerPostFixer','isAfter','name','isIntersectingWithRange','_removeSuggestion','creator','mapper','markInsertion','howMany','PendingActions','differ','getItems','_createSuggestion','deletion','_setSuggestionRange','nodeBefore','containsItem','fromCharCode','notReady','isAtStart','discardSelectedSuggestions','change:activeMarkers','markerReady','from','createPositionAt','insertion:accept','widget','previous','remove','_commentsRepository','enqueueChange','unbindElementFromMarkerName','suggestion:','sort','_setSuggestionData','some','formatGroupId','track-changes-user-not-found','getDifference','refresh','containerElement','isObject','detach','end','track-changes-adapter-missing-getsuggestion','deletion:discard','newRange','plugins','getShiftedBy','$marker','updateMarker','splice','setSelection','trackChangesCommand','discard','getSuggestion','isLimit','after','markerName','change:_saved','insertContent','_registerDefaultCallbacks','moveTargetPosition','acceptAllSuggestions','createdAt','_customCallbacks','markMultiRangeInsertion'];(function(_0x8197a2,_0x58bf75){const _0xcedb4e=function(_0xdffd08){while(--_0xdffd08){_0x8197a2['push'](_0x8197a2['shift']());}};_0xcedb4e(++_0x58bf75);}(_0x58bf,0x86));const _0xcedb=function(_0x8197a2,_0x58bf75){_0x8197a2=_0x8197a2-0x0;let _0xcedb4e=_0x58bf[_0x8197a2];return _0xcedb4e;};import{Plugin as _0x382cc3,PendingActions as _0x46aead}from'ckeditor5/src/core';import{LiveRange as _0x5261dd}from'ckeditor5/src/engine';import{CKEditorError as _0x47ae60,uid as _0xa49531,priorities as _0xc6cb6d,logWarning as _0x1900c0}from'ckeditor5/src/utils';import{toWidget as _0x311991}from'ckeditor5/src/widget';import{Users as _0x46108b,hashObject as _0x353f62}from'ckeditor5-collaboration/src/collaboration-core';import _0x8863ac from'./commands/trackchangescommand';import _0x1bfab0 from'./commands/acceptsuggestioncommand';import _0x3fc170 from'./commands/discardsuggestioncommand';import _0x1f8af6 from'./commands/executeonallsuggestionscommand';import _0xd9b9e6 from'./commands/executeonselectedsuggestionscommand';import _0x58c80b from'./suggestion';import _0x4e1a67 from'./suggestiondescriptionfactory';import _0x53ea55 from'./integrations/alignment';import _0x388eea from'./integrations/basicstyles';import _0x463cb3 from'./integrations/blockquote';import _0x3d9841 from'./integrations/ckbox';import _0x451400 from'./integrations/codeblock';import _0x28f376 from'./integrations/comments';import _0x1467d2 from'./integrations/deletecommand';import _0x506980 from'./integrations/documentlist';import _0xc6fe64 from'./integrations/entercommand';import _0x4e0438 from'./integrations/findandreplace';import _0x392e26 from'./integrations/font';import _0x3229a7 from'./integrations/formatpainter';import _0x5ce64e from'./integrations/heading';import _0x3e4ab0 from'./integrations/highlight';import _0xf6dac from'./integrations/horizontalline';import _0x4bbc93 from'./integrations/htmlembed';import _0x1f36ed from'./integrations/image';import _0xa1f734 from'./integrations/imagereplace';import _0xc34074 from'./integrations/importword';import _0x1402c5 from'./integrations/indent';import _0x101a88 from'./integrations/inputcommand';import _0x108521 from'./integrations/link';import _0x599133 from'./integrations/list';import _0x505951 from'./integrations/listproperties';import _0x2cc813 from'./integrations/mediaembed';import _0x33227a from'./integrations/mention';import _0xe830f5 from'./integrations/pagebreak';import _0x14795c from'./integrations/paragraph';import _0x391e27 from'./integrations/removeformat';import _0x4e4d27 from'./integrations/restrictededitingmode';import _0x1b9165 from'./integrations/shiftentercommand';import _0x3d4488 from'./integrations/standardeditingmode';import _0xa46c80 from'./integrations/style';import _0x3b1e29 from'./integrations/table';import _0x7a59f from'./integrations/tablemergesplit';import _0x4f6e0f from'./integrations/tableheadings';import _0x418cf5 from'./integrations/tableclipboard';import _0x5743e1 from'./integrations/tablecolumnresize';import _0x439a04 from'./integrations/template';import _0x21a467 from'./integrations/tableofcontents';import _0x320f8e from'./integrations/title';import _0x268428 from'./integrations/undo';import{getTranslation as _0x1365f6}from'./utils/common-translations';import _0x1ca64c from'./integrations/tablecaption';import _0x42c4df from'./integrations/documentlistproperties';import _0x567b80 from'./integrations/tableproperties';export default class p extends _0x382cc3{static get[_0xcedb('0xcc')](){return['CommentsRepository',_0x46108b,_0x46aead,_0x53ea55,_0x388eea,_0x463cb3,_0x3d9841,_0x451400,_0x28f376,_0x1467d2,_0x506980,_0x42c4df,_0xc6fe64,_0x4e0438,_0x392e26,_0x3229a7,_0x5ce64e,_0x3e4ab0,_0xf6dac,_0x4bbc93,_0x1f36ed,_0xa1f734,_0xc34074,_0x1402c5,_0x101a88,_0x108521,_0x599133,_0x505951,_0x2cc813,_0x33227a,_0xe830f5,_0x14795c,_0x391e27,_0x4e4d27,_0x1b9165,_0x3d4488,_0xa46c80,_0x3b1e29,_0x7a59f,_0x4f6e0f,_0x1ca64c,_0x418cf5,_0x5743e1,_0x21a467,_0x567b80,_0x439a04,_0x320f8e,_0x268428];}static get['pluginName'](){return _0xcedb('0x12a');}constructor(_0x52d609){function _0x37cac4(_0x1b3250){return _0x1b3250[_0xcedb('0xdb')](_0x3313d1=>String[_0xcedb('0x84')](_0x3313d1))[_0xcedb('0x11e')]('');}super(_0x52d609),this[_0xcedb('0x11b')](_0xcedb('0x126'),[]),this['on'](_0xcedb('0x88'),(_0x57f982,_0x37d38e,_0x25bfc8,_0xe3e402)=>{this['_model'][_0xcedb('0x139')](()=>{for(const _0x104ba9 of[..._0xe3e402,..._0x25bfc8])this[_0xcedb('0x11a')][_0xcedb('0x29')][_0xcedb('0x138')](_0x104ba9)&&_0x52d609['editing'][_0xcedb('0x66')](_0x104ba9);});}),this[_0xcedb('0x67')]=new _0x4e1a67(this[_0xcedb('0x124')]['model']['schema'],this[_0xcedb('0x124')]['locale']),this['_adapter']=null,this[_0xcedb('0x61')]=new Dt(this[_0xcedb('0x124')]),this['_suggestions']=new Map(),this[_0xcedb('0x90')]=_0x52d609['plugins'][_0xcedb('0xf1')](_0xcedb('0xbc')),this[_0xcedb('0x25')]=new Set(),this[_0xcedb('0x11a')]=this[_0xcedb('0x124')][_0xcedb('0xdd')],this['_suggestionState']=new WeakMap(),this[_0xcedb('0x5d')]=!0x1,_0x52d609[_0xcedb('0xc')]['define'](_0xcedb('0xf5'),_0xcedb('0xce')),this[_0xcedb('0x130')]=_0x52d609[_0xcedb('0xc')][_0xcedb('0xf1')](_0xcedb('0xf5')),_0x52d609[_0xcedb('0xc')]['define'](_0xcedb('0x13a'),!0x0),this[_0xcedb('0x43')]=_0x52d609['config'][_0xcedb('0xf1')]('trackChanges.mergeNestedSuggestions'),this[_0xcedb('0xa8')]=new _0x8863ac(_0x52d609,this['_enabledCommands']),this[_0x37cac4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x37cac4([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x34]);}['init'](){const _0x45082b=this['editor'];_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x122'))[_0xcedb('0x2e')]({'model':_0xcedb('0x133'),'view':_0xec7efd=>{const {id:_0x172d75,type:_0x4157b3}=this['_splitMarkerName'](_0xec7efd[_0xcedb('0xad')]),_0x32f91a=[_0xcedb('0xe'),_0xcedb('0x100')+_0x4157b3];let _0x5c7aed=0xbb8;return this[_0xcedb('0x126')][_0xcedb('0x1d')](_0xec7efd['markerName'])&&(_0x32f91a[_0xcedb('0xa')]('ck-suggestion-marker--active'),_0x5c7aed=0xbc2),_0xcedb('0x80')==_0x4157b3&&(_0x5c7aed+=0x5),{'classes':_0x32f91a,'attributes':{'data-suggestion':_0x172d75},'priority':_0x5c7aed};}}),_0x45082b[_0xcedb('0xf7')][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0xe2')](_0x27c66f=>{_0x27c66f['on'](_0xcedb('0xde'),(_0x5986a6,_0x58ec56,_0x362e00)=>{if(!_0x362e00['options'][_0xcedb('0x71')])return;const _0x35f102=_0x58ec56[_0xcedb('0x47')];if(!_0x35f102)return;const _0x52b363=_0x362e00[_0xcedb('0x79')][_0xcedb('0xc1')](_0x35f102);_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')][_0xcedb('0x9c')](_0x35f102)&&_0x52b363&&!_0x52b363['getCustomProperty'](_0xcedb('0x8d'))&&_0x52b363['is'](_0xcedb('0x9b'))&&_0x311991(_0x52b363,_0x362e00['writer']);},{'priority':_0xcedb('0x27')});}),_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0x2e')]({'model':_0xcedb('0x133'),'view':(_0x18966b,_0x3966fb)=>{if(!_0x3966fb[_0xcedb('0x121')]['showSuggestionHighlights'])return null;const {type:_0x33ccef}=this[_0xcedb('0x2b')](_0x18966b['markerName']);return{'classes':[_0xcedb('0xe'),'ck-suggestion-marker-'+_0x33ccef],'priority':0xbb8};}});const _0x43738b=({showActiveMarkers:_0x168bc5=!0x0}={})=>(_0x278ab9,_0x2b9472,_0x99b9cc)=>{if(!_0x2b9472['item'])return;if(_0x2b9472[_0xcedb('0x47')]['is'](_0xcedb('0xb8')))return void _0x99b9cc[_0xcedb('0xd0')]['consume'](_0x2b9472[_0xcedb('0x47')],_0x278ab9[_0xcedb('0x75')]);const _0x4defdc=_0x99b9cc[_0xcedb('0x79')][_0xcedb('0xc1')](_0x2b9472[_0xcedb('0x47')]);if(!(_0x2b9472['item']['is'](_0xcedb('0x35'))&&_0x45082b['model'][_0xcedb('0x6a')]['isBlock'](_0x2b9472[_0xcedb('0x47')])&&!_0x4defdc[_0xcedb('0xf6')](_0xcedb('0xe9'))))return;const {id:_0x30fd8e}=this[_0xcedb('0x2b')](_0x2b9472['markerName']);_0x99b9cc[_0xcedb('0x3d')][_0xcedb('0x63')]([_0xcedb('0xe'),_0xcedb('0x23')],_0x4defdc),_0x99b9cc['writer']['setAttribute'](_0xcedb('0x3b'),_0x30fd8e,_0x4defdc),_0x99b9cc[_0xcedb('0x79')][_0xcedb('0x51')](_0x4defdc,_0x2b9472['markerName']),_0x168bc5&&(this[_0xcedb('0x126')][_0xcedb('0x1d')](_0x2b9472[_0xcedb('0xad')])?_0x99b9cc[_0xcedb('0x3d')][_0xcedb('0x63')](_0xcedb('0x40'),_0x4defdc):_0x99b9cc['writer'][_0xcedb('0x42')](_0xcedb('0x40'),_0x4defdc));for(const _0x96efb4 of _0x45082b['model'][_0xcedb('0x72')](_0x2b9472[_0xcedb('0x47')])[_0xcedb('0x7e')]())_0x99b9cc['consumable']['consume'](_0x96efb4,_0x278ab9['name']);_0x99b9cc[_0xcedb('0xd0')][_0xcedb('0xef')](_0x2b9472[_0xcedb('0x47')],_0x278ab9['name']);};_0x45082b[_0xcedb('0xf7')][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0xe2')](_0x280ff7=>{_0x280ff7['on'](_0xcedb('0x3e'),(_0x5153da,_0x414df7,_0x33f723)=>{_0x33f723[_0xcedb('0x121')]['showSuggestionHighlights']&&_0x43738b({'showActiveMarkers':!0x1})(_0x5153da,_0x414df7,_0x33f723);},{'priority':_0xcedb('0x62')});}),_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x5'))[_0xcedb('0xbb')]({'model':_0xcedb('0x133'),'view':(_0x855c23,_0x55e345)=>_0x55e345[_0xcedb('0x121')]['showSuggestionHighlights']?null:{'group':_0xcedb('0x133'),'name':_0x855c23[_0xcedb('0x53')](0xb)}}),_0x45082b['conversion'][_0xcedb('0x54')](_0xcedb('0x6c'))['elementToElement']({'view':{'name':_0xcedb('0x133'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5843de,{writer:_0xbbcdf5})=>{let _0x2c50a2=_0xcedb('0x93')+_0x5843de[_0xcedb('0x131')](_0xcedb('0xc6'))+':'+_0x5843de[_0xcedb('0x131')]('id');return _0x5843de[_0xcedb('0x131')]('marker-count')&&(_0x2c50a2+=':'+_0x5843de['getAttribute']('marker-count')),_0xbbcdf5[_0xcedb('0xe7')](_0xcedb('0xa4'),{'data-name':_0x2c50a2});}}),_0x45082b['conversion'][_0xcedb('0x54')]('upcast')[_0xcedb('0xfd')]({'view':'suggestion'}),_0x45082b[_0xcedb('0xf7')][_0xcedb('0x54')](_0xcedb('0x122'))['add'](_0x147edd=>{_0x147edd['on'](_0xcedb('0x3e'),_0x43738b(),{'priority':_0xcedb('0x27')});}),_0x45082b[_0xcedb('0xf7')]['for'](_0xcedb('0x122'))[_0xcedb('0xe2')](_0xb42a1e=>{_0xb42a1e['on']('removeMarker:suggestion:formatBlock',(_0x5a0aa9,_0x5d9ed9,_0x41487b)=>{const _0x59b838=_0x41487b[_0xcedb('0x79')]['markerNameToElements'](_0x5d9ed9[_0xcedb('0xad')]);if(_0x59b838)for(const _0x5a8fd7 of _0x59b838)_0x5a8fd7[_0xcedb('0xf6')](_0xcedb('0xe9'))||(_0x41487b[_0xcedb('0x3d')][_0xcedb('0x42')]([_0xcedb('0xe'),_0xcedb('0x23'),_0xcedb('0x40')],_0x5a8fd7),_0x41487b[_0xcedb('0x3d')][_0xcedb('0x112')](_0xcedb('0x3b'),_0x5a8fd7),_0x41487b['mapper'][_0xcedb('0x92')](_0x5a8fd7,_0x5d9ed9[_0xcedb('0xad')]));},{'priority':_0xcedb('0x27')});}),_0x45082b[_0xcedb('0xdd')]['document'][_0xcedb('0x73')](_0x527c1e=>{let _0x25993d=!0x1;const _0x41d1a2=Array['from'](_0x45082b[_0xcedb('0xdd')][_0xcedb('0xeb')][_0xcedb('0x7d')]['getChangedMarkers']()),_0x36fc2a=new Set();for(const {name:_0x4b7f47,data:_0x138943}of _0x41d1a2){const {group:_0x5af2da,type:_0xda185d,id:_0x40516f}=this[_0xcedb('0x2b')](_0x4b7f47);if(_0xcedb('0x133')!==_0x5af2da)continue;const _0x452162=this[_0xcedb('0xee')]['get'](_0x40516f);if(null!=_0x138943[_0xcedb('0xa1')]){_0xcedb('0xb7')==_0xda185d&&(_0x25993d=_0x25993d||Mt(_0x138943[_0xcedb('0xa1')],_0x4b7f47,_0x527c1e,_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')]));if(_0x138943[_0xcedb('0xa1')][_0xcedb('0x44')]||_0xcedb('0x19')==_0x138943[_0xcedb('0xa1')]['root'][_0xcedb('0x119')]||'formatBlock'==_0xda185d&&!Nt(_0x138943[_0xcedb('0xa1')])||'deletion'==_0xda185d&&!(!_t(_0x3463a7=_0x138943['newRange'])&&!function(_0x15ca47){return _0x15ca47[_0xcedb('0x1a')][_0xcedb('0x2c')]==_0x15ca47[_0xcedb('0x9e')][_0xcedb('0x82')]&&_0x15ca47[_0xcedb('0x1a')][_0xcedb('0x2a')];}(_0x3463a7)))_0x527c1e[_0xcedb('0xc7')](_0x4b7f47),_0x25993d=!0x0;else{if(!_0x452162||!_0x452162['isInContent'])continue;_0x36fc2a[_0xcedb('0xe2')](_0x452162);}}}var _0x3463a7;return _0x36fc2a[_0xcedb('0xca')]>0x0&&(_0x25993d=!!this['_joinWithAdjacentSuggestions'](_0x36fc2a)||_0x25993d),_0x25993d;}),_0x45082b[_0xcedb('0xdd')][_0xcedb('0xeb')][_0xcedb('0x73')](_0x52755d=>{let _0x9f16e=!0x1;for(const _0x46da21 of _0x45082b[_0xcedb('0xdd')][_0xcedb('0xeb')][_0xcedb('0x7d')][_0xcedb('0x114')]()){if('insert'!=_0x46da21[_0xcedb('0x10')])continue;const _0x57ca18=_0x46da21[_0xcedb('0x38')][_0xcedb('0xa3')](_0x46da21['length']);if(_0x57ca18['isAtEnd'])for(const _0x356b42 of this['_suggestions'][_0xcedb('0x127')]()){if(_0x356b42['isMultiRange']||!_0x356b42[_0xcedb('0x115')])continue;if(_0xcedb('0x110')!=_0x356b42[_0xcedb('0x10')])continue;const _0x4bf137=_0x356b42[_0xcedb('0x117')]();if(_0x4bf137[_0xcedb('0x1a')][_0xcedb('0x2c')]!=_0x4bf137['end'][_0xcedb('0x2c')]&&_0x4bf137['end'][_0xcedb('0xe8')](_0x46da21['position'])){const _0x353dea=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x4bf137['start'],_0x57ca18);_0x52755d[_0xcedb('0xa5')](_0x356b42[_0xcedb('0x11d')](),{'range':_0x353dea}),_0x9f16e=!0x0;}}}return _0x9f16e;}),_0x45082b[_0xcedb('0xdd')][_0xcedb('0x29')]['on'](_0xcedb('0x6f'),(_0x194036,_0x2df80c,_0x56c543)=>{if(null==_0x56c543){const {id:_0x10e2f9}=this[_0xcedb('0x2b')](_0x2df80c['name']),_0x9babaf=this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x10e2f9);_0x9babaf&&_0x9babaf[_0xcedb('0xd7')](_0x2df80c[_0xcedb('0x75')]);}}),_0x45082b['model'][_0xcedb('0xeb')]['on'](_0xcedb('0x57'),()=>{const _0x3be6ba=Array[_0xcedb('0x8a')](_0x45082b['model'][_0xcedb('0xeb')][_0xcedb('0x7d')]['getChangedMarkers']())[_0xcedb('0x111')](_0x4f76a1=>'suggestion'===this['_splitMarkerName'](_0x4f76a1['name'])[_0xcedb('0x11f')]);if(0x0===_0x3be6ba['length'])return;_0x3be6ba['sort']((_0x41ab89,_0x1f80a4)=>{const _0x30a540=_0x41ab89[_0xcedb('0xe3')][_0xcedb('0xcb')],_0x2be1ac=_0x1f80a4['data'][_0xcedb('0xcb')];return null===_0x30a540&&null===_0x2be1ac?0x0:null===_0x30a540&&null!==_0x2be1ac?-0x1:null!==_0x30a540&&null===_0x2be1ac?0x1:_0x30a540['start']['isBefore'](_0x2be1ac[_0xcedb('0x1a')])?-0x1:0x1;});const _0x165b00=new Set(),_0x1fd8a0=new Set();for(const {name:_0x1dc49d,data:_0x572bdd}of _0x3be6ba){const {id:_0x4cebbd}=this[_0xcedb('0x2b')](_0x1dc49d);if(null===_0x572bdd[_0xcedb('0xcb')]){const _0x39f0f4=this[_0xcedb('0xfc')](_0x1dc49d);_0x1fd8a0[_0xcedb('0xe2')](_0x39f0f4);}else{const _0x5a88ed=this[_0xcedb('0xee')]['get'](_0x4cebbd);null!==_0x572bdd['newRange']||_0x5a88ed[_0xcedb('0x115')]?(_0x165b00[_0xcedb('0xe2')](_0x5a88ed[_0xcedb('0xda')]),_0x1fd8a0['add'](_0x5a88ed)):this[_0xcedb('0x77')](_0x5a88ed);}}_0x1fd8a0[_0xcedb('0xca')]>0x0&&this['_refreshSuggestionsChain'](_0x1fd8a0);for(const _0x33fa3c of _0x165b00)this['fire'](_0xcedb('0xdf'),_0x33fa3c);}),_0x45082b[_0xcedb('0xdd')]['on']('applyOperation',(_0x582bb8,_0x3947b4)=>{const _0x5257ed=_0x3947b4[0x0];if(!this[_0xcedb('0xee')][_0xcedb('0xca')])return;if(!_0x5257ed[_0xcedb('0x32')])return;if(_0x5257ed['batch']['isUndo']||!_0x5257ed[_0xcedb('0x12f')][_0xcedb('0x108')])return;let _0x4c5d4d,_0x310a42;switch(_0x5257ed['type']){case _0xcedb('0x3a'):_0x4c5d4d=_0x45082b['model']['createPositionAt'](_0x5257ed['position']),_0x310a42=_0x4c5d4d[_0xcedb('0xa3')](_0x5257ed[_0xcedb('0x7b')]);break;case'split':_0x4c5d4d=_0x45082b['model'][_0xcedb('0x8b')](_0x5257ed[_0xcedb('0x28')]),_0x310a42=_0x45082b[_0xcedb('0xdd')]['createPositionAt'](_0x5257ed[_0xcedb('0xb1')]);break;case _0xcedb('0x20'):_0x4c5d4d=_0x45082b['model'][_0xcedb('0x8b')](_0x5257ed[_0xcedb('0xc9')]),_0x310a42=_0x4c5d4d[_0xcedb('0xa3')](_0x5257ed[_0xcedb('0x7b')]);break;default:return;}const _0x45e7c7=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x4c5d4d,_0x310a42);_0x45082b[_0xcedb('0xdd')][_0xcedb('0x139')](()=>{for(const {suggestion:_0x26eb0f,meta:_0x3b0a70}of this[_0xcedb('0x109')](_0x45e7c7)){if(_0x26eb0f[_0xcedb('0x136')])continue;if('formatInline'==_0x26eb0f[_0xcedb('0x10')])continue;const _0x22dadd=_0x26eb0f[_0xcedb('0xe3')]&&_0x26eb0f[_0xcedb('0xe3')][_0xcedb('0xd1')];(_0xcedb('0x110')!=_0x26eb0f[_0xcedb('0x10')]||_0xcedb('0x4e')==_0x5257ed[_0xcedb('0x10')]&&!_0x22dadd)&&(_0x3b0a70[_0xcedb('0x123')]||_0xcedb('0x101')==_0x26eb0f[_0xcedb('0x10')]&&_0x3b0a70[_0xcedb('0xd')]||_0x26eb0f[_0xcedb('0x117')]()[_0xcedb('0x58')](_0x45e7c7)&&this[_0xcedb('0x13')](_0x26eb0f,_0x4c5d4d,_0x310a42));}});},{'priority':_0xcedb('0x39')}),_0x45082b[_0xcedb('0xdd')]['on'](_0xcedb('0xe0'),(_0x4ea3e0,_0x244917)=>{const _0x5d748f=_0x244917[0x0],_0x26f814=_0x244917[0x1];if(_0x26f814&&_0x26f814[_0xcedb('0xf8')])return;if(this[_0xcedb('0x5d')])return;if(!this[_0xcedb('0xa8')][_0xcedb('0x4')])return;if(_0x5d748f[_0xcedb('0x44')])return;const _0x2bc747=_0x45082b['model'][_0xcedb('0x6a')],{start:_0x48d3a6,end:_0x422eb3}=_0x5d748f[_0xcedb('0x117')](),_0x3fe112=_0x48d3a6[_0xcedb('0x3f')]&&_0x2bc747[_0xcedb('0xab')](_0x48d3a6[_0xcedb('0x3f')])?null:_0x2bc747['getNearestSelectionRange'](_0x48d3a6,'forward'),_0x201528=_0x422eb3[_0xcedb('0x82')]&&_0x2bc747[_0xcedb('0xab')](_0x422eb3[_0xcedb('0x82')])?null:_0x2bc747[_0xcedb('0xcd')](_0x422eb3,'backward'),_0x4b0367=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x3fe112?_0x3fe112[_0xcedb('0x1a')]:_0x48d3a6,_0x201528?_0x201528[_0xcedb('0x9e')]:_0x422eb3);_0x45082b['model'][_0xcedb('0x139')](_0x39dbd5=>{this['markDeletion'](_0x4b0367);const _0x130144=_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')]['getNearestSelectionRange'](_0x4b0367[_0xcedb('0x1a')]);_0x5d748f['is'](_0xcedb('0x10a'))?_0x39dbd5[_0xcedb('0xa7')](_0x130144):_0x5d748f[_0xcedb('0x125')](_0x130144);}),_0x4ea3e0['stop']();},{'priority':_0xc6cb6d[_0xcedb('0x135')]+0xa}),_0x45082b[_0xcedb('0xdd')]['on'](_0xcedb('0xaf'),(_0x221f6a,_0x59660b)=>{const _0x3ea150=_0x59660b[_0x59660b[_0xcedb('0xfb')]-0x1];_0x3ea150&&_0x3ea150[_0xcedb('0xf8')]||this[_0xcedb('0x5d')]||this['trackChangesCommand'][_0xcedb('0x4')]&&(_0x45082b[_0xcedb('0xdd')][_0xcedb('0x139')](()=>{let _0x3b4d0a=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xaf')](_0x59660b[0x0],_0x59660b[0x1],_0x59660b[0x2],{'forceDefaultExecution':!0x0});if(!_0x3b4d0a)return;_0x221f6a[_0xcedb('0x6e')]=_0x3b4d0a['clone']();const _0xa0184b=_0x3b4d0a['end']['nodeBefore'],_0x1b4395=_0x45082b[_0xcedb('0xdd')][_0xcedb('0x6a')];_0xa0184b&&_0x1b4395['isBlock'](_0xa0184b)&&!_0x1b4395[_0xcedb('0x9c')](_0xa0184b)&&(_0x3b4d0a=_0x45082b[_0xcedb('0xdd')][_0xcedb('0xf0')](_0x3b4d0a[_0xcedb('0x1a')],_0x45082b[_0xcedb('0xdd')][_0xcedb('0x8b')](_0xa0184b,_0xcedb('0x9e')))),this['markInsertion'](_0x3b4d0a);}),_0x221f6a['stop']());},{'priority':'high'}),this[_0xcedb('0x124')][_0xcedb('0x1b')]['add']('trackChanges',this['trackChangesCommand']),this['enableCommand'](_0xcedb('0xd8'));const _0x1801eb=new _0x1bfab0(_0x45082b,this['_suggestions']);_0x45082b['commands']['add']('acceptSuggestion',_0x1801eb),this[_0xcedb('0x118')](_0xcedb('0x37'));const _0x24d183=new _0x3fc170(_0x45082b,this[_0xcedb('0xee')]);_0x45082b['commands'][_0xcedb('0xe2')](_0xcedb('0xe1'),_0x24d183),this[_0xcedb('0x118')]('discardSuggestion'),_0x45082b[_0xcedb('0x1b')][_0xcedb('0xe2')](_0xcedb('0xb2'),new _0x1f8af6(_0x45082b,_0x1801eb,this[_0xcedb('0xee')])),this[_0xcedb('0x118')](_0xcedb('0xb2')),_0x45082b[_0xcedb('0x1b')]['add']('discardAllSuggestions',new _0x1f8af6(_0x45082b,_0x24d183,this[_0xcedb('0xee')])),this['enableCommand'](_0xcedb('0x9')),_0x45082b[_0xcedb('0x1b')][_0xcedb('0xe2')](_0xcedb('0x55'),new _0xd9b9e6(_0x45082b,_0x1801eb,this[_0xcedb('0xee')])),this[_0xcedb('0x118')](_0xcedb('0x55')),_0x45082b[_0xcedb('0x1b')][_0xcedb('0xe2')](_0xcedb('0x87'),new _0xd9b9e6(_0x45082b,_0x24d183,this[_0xcedb('0xee')])),this[_0xcedb('0x118')](_0xcedb('0x87'));const _0x35c957=_0x45082b[_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0xbc'));this[_0xcedb('0x113')](_0x35c957,_0xcedb('0x5f'),(_0x306c07,{threadId:_0x2d9656})=>{const _0x15cb8e=this['_suggestions'][_0xcedb('0xf1')](_0x2d9656);_0x15cb8e&&_0x15cb8e['commentThread']&&0x1===_0x15cb8e[_0xcedb('0x69')]['length']&&this[_0xcedb('0x12d')](_0x2d9656,{'hasComments':!0x0});},{'priority':'low'}),this[_0xcedb('0x113')](_0x35c957,_0xcedb('0x4c'),(_0x11354d,{threadId:_0x579ca6})=>{const _0x567525=this[_0xcedb('0xee')]['get'](_0x579ca6);_0x567525&&_0x567525[_0xcedb('0x69')]&&!_0x567525[_0xcedb('0x69')][_0xcedb('0xfb')]&&this[_0xcedb('0x12d')](_0x579ca6,{'hasComments':!0x1});},{'priority':_0xcedb('0xb')});}set[_0xcedb('0x70')](_0x30efac){if(this['_adapter'])throw new _0x47ae60(_0xcedb('0xe6'),this);this[_0xcedb('0x137')]=_0x30efac;}get[_0xcedb('0x70')](){return this[_0xcedb('0x137')];}[_0xcedb('0x2')]({skipNotAttached:_0x239cc7=!0x1,toJSON:_0x2c2706=!0x1}={}){const _0x2c5a44=[];for(const _0x757a57 of this[_0xcedb('0xee')][_0xcedb('0x127')]())_0x239cc7&&!_0x757a57[_0xcedb('0x115')]||_0x2c5a44[_0xcedb('0xa')](_0x757a57);return _0x2c2706?_0x2c5a44['map'](_0x17cfc1=>_0x17cfc1[_0xcedb('0xbd')]()):_0x2c5a44;}[_0xcedb('0xaa')](_0x48eeb4){const _0x4777c7=this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x48eeb4);if(!_0x4777c7)throw new _0x47ae60('track-changes-suggestion-not-found',this);return _0x4777c7;}[_0xcedb('0x30')](_0x38a491){return this['_suggestions'][_0xcedb('0x138')](_0x38a491);}[_0xcedb('0xbf')](_0x1f016f){const {authorId:_0x19022e,id:_0x8b0e76,attributes:_0x1d4b4c}=_0x1f016f,[_0x374fd1,_0x5729ab]=_0x1f016f[_0xcedb('0x10')][_0xcedb('0x4e')](':'),_0x1ee17d=this['_suggestions'][_0xcedb('0xf1')](_0x8b0e76)||this['_createSuggestion'](_0x374fd1,_0x5729ab,_0x8b0e76,_0x19022e,_0x1d4b4c);if(this['_addThreadToSuggestion'](_0x1ee17d),this[_0xcedb('0x5c')](_0x1ee17d,_0x374fd1,_0x5729ab||null,_0x19022e),_0x1ee17d[_0xcedb('0xb3')]=_0x1f016f[_0xcedb('0xb3')],_0x1d4b4c&&_0x1d4b4c[_0xcedb('0x6d')]){const _0x1137c1=_0x1d4b4c[_0xcedb('0x6d')],_0x9157a2=this[_0xcedb('0x1f')](_0x1137c1[_0xcedb('0xe4')]);_0x1ee17d[_0xcedb('0x36')]=_0x1137c1['createdAt'],_0x1ee17d[_0xcedb('0xff')]=_0x9157a2,_0x1ee17d[_0xcedb('0xd4')]=!0x0;}else _0x1ee17d['authoredAt']=_0x1f016f[_0xcedb('0xb3')];switch(_0x1f016f[_0xcedb('0xe3')]&&(_0x1ee17d[_0xcedb('0xe3')]=_0x1f016f[_0xcedb('0xe3')]),_0x1f016f[_0xcedb('0x21')]&&(_0x1ee17d['attributes']=_0x1f016f['attributes']),this[_0xcedb('0x137')]&&this[_0xcedb('0x137')][_0xcedb('0xf9')]||(_0x1ee17d[_0xcedb('0xc5')]=!0x0),this[_0xcedb('0xc4')]['get'](_0x1ee17d)){case _0xcedb('0x85'):this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x1ee17d,_0xcedb('0xba'));break;case _0xcedb('0x89'):_0x1ee17d[_0xcedb('0x115')]?(this['_suggestionState']['set'](_0x1ee17d,_0xcedb('0x46')),this[_0xcedb('0x64')]('suggestionLoaded',_0x1ee17d)):this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x1ee17d,_0xcedb('0xfe'));}return _0x1ee17d;}[_0xcedb('0x37')](_0x58c234){this[_0xcedb('0xf8')](()=>{this['editor'][_0xcedb('0xdd')]['change'](()=>{for(const _0x57a0c1 of _0x58c234['getAllAdjacentSuggestions']())_0x57a0c1[_0xcedb('0x24')]();});});}[_0xcedb('0xe1')](_0x4c06d1){this['forceDefaultExecution'](()=>{this['editor'][_0xcedb('0xdd')][_0xcedb('0x139')](()=>{for(const _0x4295ad of _0x4c06d1[_0xcedb('0x12b')]())_0x4295ad[_0xcedb('0xa9')]();});});}[_0xcedb('0x118')](_0x53381c,_0x5e9ab9){const _0x38ec88=this[_0xcedb('0x124')]['commands'][_0xcedb('0xf1')](_0x53381c);if(!_0x38ec88)throw new _0x47ae60(_0xcedb('0x105'),this,{'commandName':_0x53381c});this[_0xcedb('0x25')]['add'](_0x38ec88),_0x5e9ab9&&_0x38ec88['on'](_0xcedb('0x106'),(_0x11e86f,_0x1d49de)=>{this[_0xcedb('0xa8')][_0xcedb('0x4')]&&(this[_0xcedb('0x5d')]||_0x1d49de[_0xcedb('0xfb')]>0x0&&_0x1d49de[_0x1d49de[_0xcedb('0xfb')]-0x1]&&_0x1d49de[_0x1d49de['length']-0x1]['forceDefaultExecution']||(_0x5e9ab9((..._0x146b61)=>_0x38ec88[_0xcedb('0x106')](..._0x146b61,{'forceDefaultExecution':!0x0}),..._0x1d49de),_0x11e86f[_0xcedb('0x12c')]()));},{'priority':_0xcedb('0x27')});}[_0xcedb('0xf8')](_0x11450a){let _0x3b96f7,_0x2b5bae;const _0x5f45bf=this[_0xcedb('0x5d')];this[_0xcedb('0x5d')]=!0x0;try{_0x3b96f7=_0x11450a();}catch(_0x5370ee){_0x2b5bae=_0x5370ee;}return _0x5f45bf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2b5bae&&_0x47ae60[_0xcedb('0x22')](_0x2b5bae,this),_0x3b96f7;}[_0xcedb('0x7a')](_0x2ebd0f,_0xa22a64=null,_0x552f37={}){if(_0x2ebd0f[_0xcedb('0x44')])return null;const _0x49fd3c=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')]('Users')['me'];for(const {suggestion:_0x3a7dc1,meta:_0x592be9}of this[_0xcedb('0x109')](_0x2ebd0f,_0xcedb('0x101')))if(_0x592be9[_0xcedb('0xd')]){if(!_0x592be9[_0xcedb('0x128')]){if(!this[_0xcedb('0x43')]&&_0x592be9[_0xcedb('0x123')])continue;return _0x3a7dc1;}if(_0xa22a64==_0x3a7dc1[_0xcedb('0x4a')]){const _0x23a489=_0x3a7dc1[_0xcedb('0x117')]();return _0x23a489[_0xcedb('0x1a')][_0xcedb('0xe8')](_0x2ebd0f[_0xcedb('0x9e')])?this['_setSuggestionRange'](_0x3a7dc1,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x2ebd0f[_0xcedb('0x1a')],_0x23a489['end'])):this[_0xcedb('0x81')](_0x3a7dc1,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x23a489[_0xcedb('0x1a')],_0x2ebd0f['end'])),_0x3a7dc1;}}const _0x38f427=_0xa49531(),_0x489a25=_0x49fd3c['id'],_0x257e89=_0xa22a64?_0xcedb('0x0')+_0xa22a64:_0xcedb('0x101'),_0x474123=this[_0xcedb('0x95')]({'id':_0x38f427,'type':_0x257e89,'createdAt':new Date(),'authorId':_0x489a25,'attributes':_0x552f37});return this[_0xcedb('0x10c')](_0x257e89,_0x38f427,_0x489a25,_0x2ebd0f),_0x474123;}[_0xcedb('0xb5')](_0x51a3f4,_0x191438=_0xcedb('0x5e'),_0x5043dd={}){const _0x5c01de=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')]('Users')['me'],_0x2c4eac=this[_0xcedb('0x61')]['getSuggestionCallback'](_0xcedb('0x101'),_0x191438,_0xcedb('0x11e'));for(const _0x786c28 of this[_0xcedb('0x2')]())if(_0x786c28[_0xcedb('0xff')]['id']==_0x5c01de['id']&&_0xcedb('0x101')==_0x786c28[_0xcedb('0x10')]&&_0x786c28['subType']==_0x191438&&(_0x2c4eac(_0x786c28[_0xcedb('0xd5')](),_0x51a3f4)||_0x2c4eac(_0x51a3f4,_0x786c28[_0xcedb('0xd5')]()))){for(const _0x28c290 of _0x51a3f4)_0x786c28[_0xcedb('0x134')](_0x28c290);return _0x786c28;}if(this[_0xcedb('0x43')])for(const _0x73121e of _0x51a3f4)for(const {suggestion:_0x259391,meta:_0x2073ed}of this[_0xcedb('0x109')](_0x73121e,_0xcedb('0x101'))){if(!_0x2073ed[_0xcedb('0xd')])continue;let _0x4a0bbf=!0x0;for(const _0x1ac982 of _0x259391['getRanges']())for(const _0x5bbbbd of _0x51a3f4)if(!_0x1ac982[_0xcedb('0x58')](_0x5bbbbd)){_0x4a0bbf=!0x1;break;}if(_0x4a0bbf)return _0x259391;}const _0x18bb8e=_0xa49531(),_0xd9afdb=_0x5c01de['id'],_0x3249f1='insertion:'+_0x191438,_0x31b247=this[_0xcedb('0x95')]({'id':_0x18bb8e,'type':_0x3249f1,'createdAt':new Date(),'authorId':_0xd9afdb,'attributes':_0x5043dd});for(const _0x4c0bb5 of _0x51a3f4)this['_addSuggestionMarker'](_0x3249f1,_0x18bb8e,_0xd9afdb,_0x4c0bb5,_0x58c80b['getMultiRangeId']());return _0x31b247;}[_0xcedb('0x14')](_0xb31786,_0x2b85c8,_0x4dd615=null,_0x2a69de={}){if(_0x4dd615=_0x4dd615||$t(_0x2b85c8),_0xb31786[_0xcedb('0x44')])return null;if(_0xcedb('0x7')===this['_trackFormatChanges']){const _0x35c25c=this['_suggestionFactory'][_0xcedb('0xdc')]('formatInline',_0x4dd615,_0xcedb('0x24'));return this['forceDefaultExecution'](()=>_0x35c25c([_0xb31786],_0x2b85c8,_0x2a69de)),null;}const _0x1fa461=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')]('Users')['me'],_0x4c9254=[];if(_0xcedb('0x31')!==this[_0xcedb('0x130')])for(const {suggestion:_0x4e44b2,meta:_0x381ebf}of this['_findSuggestions'](_0xb31786,'insertion'))_0x381ebf[_0xcedb('0xd')]&&!_0x381ebf['isInsideObject']&&_0x4c9254['push'](..._0x4e44b2[_0xcedb('0xd5')]());const _0x15426b=function(_0x51f48b,_0x43ff16){const _0x33bb33=[];for(const _0x24d438 of _0x43ff16){const _0x1cb04f=_0x51f48b[_0xcedb('0x8')](_0x24d438);_0x1cb04f&&_0x33bb33['push'](_0x1cb04f);}return _0x33bb33;}(_0xb31786,_0x4c9254),_0x2f73cc=function(_0x5884ab,_0x59dfaa){const _0x4bc02e=[_0x5884ab];for(const _0x25d3cd of _0x59dfaa){let _0x33e629=0x0;for(;_0x33e629<_0x4bc02e[_0xcedb('0xfb')];){const _0x43c781=_0x4bc02e[_0x33e629][_0xcedb('0x99')](_0x25d3cd);_0x4bc02e['splice'](_0x33e629,0x1,..._0x43c781),_0x33e629+=_0x43c781['length'];}}return _0x4bc02e;}(_0xb31786,_0x4c9254);_0x15426b[_0xcedb('0xfb')]&&this['_model'][_0xcedb('0x139')](()=>{for(const _0x506588 of _0x15426b){const _0x4e57ef=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0xb7'),_0x4dd615,'accept');this[_0xcedb('0xf8')](()=>_0x4e57ef([_0x506588],_0x2b85c8,_0x2a69de));}});for(const _0x39baba of _0x2f73cc){let _0x438aca=null,_0xd2009b=_0x39baba[_0xcedb('0x1a')],_0x29739a=_0x39baba[_0xcedb('0x9e')];for(const {suggestion:_0x489773,meta:_0x64e681}of this['_findSuggestions'](_0x39baba,_0xcedb('0xb7'))){if(!_0x64e681[_0xcedb('0xd')])continue;if(_0x489773[_0xcedb('0x4a')]!=_0x4dd615)continue;const _0x5246ed=_0x489773['getFirstRange']();if(_0x5246ed[_0xcedb('0x58')](_0x39baba,!0x0))return null;_0xd2009b=_0xd2009b[_0xcedb('0x10f')](_0x5246ed[_0xcedb('0x1a')])?_0xd2009b:_0x5246ed[_0xcedb('0x1a')],_0x29739a=_0x29739a[_0xcedb('0x74')](_0x5246ed[_0xcedb('0x9e')])?_0x29739a:_0x5246ed['end'],_0x438aca?_0x5246ed[_0xcedb('0x1a')][_0xcedb('0x10f')](_0x438aca[_0xcedb('0x117')]()[_0xcedb('0x1a')])?(_0x438aca['removeMarkers'](),_0x438aca=_0x489773):_0x489773['removeMarkers']():_0x438aca=_0x489773;}const _0x4fa609=this[_0xcedb('0x11a')]['createRange'](_0xd2009b,_0x29739a);if(_0x438aca)this[_0xcedb('0x81')](_0x438aca,_0x4fa609);else{const _0x21c9e3=_0xa49531(),_0xb86c12=_0x1fa461['id'];this[_0xcedb('0x95')]({'id':_0x21c9e3,'type':'formatInline:'+_0x4dd615,'data':_0x2b85c8,'createdAt':new Date(),'authorId':_0xb86c12,'attributes':_0x2a69de}),this[_0xcedb('0x10c')](_0xcedb('0x34')+_0x4dd615,_0x21c9e3,_0xb86c12,_0x4fa609);}}return null;}['markBlockFormat'](_0x223554,_0x324e1e,_0x8094b7=[],_0x50f621=null,_0x652357={}){_0x324e1e[_0xcedb('0x97')]||(_0x324e1e[_0xcedb('0x97')]=_0x324e1e['commandName']),_0x324e1e[_0xcedb('0xd1')]=_0x223554['is']('range'),_0x50f621=_0x50f621||$t(_0x324e1e);const _0x5be72d=_0x8094b7['map'](_0x107410=>Rt(_0x107410,this['_model'])),_0x5d0112=_0x223554['is'](_0xcedb('0xf4'))?_0x223554:Rt(_0x223554,this[_0xcedb('0x11a')]);if(_0xcedb('0x7')===this[_0xcedb('0x130')]){const _0x1ee20e=this['_suggestionFactory']['getSuggestionCallback'](_0xcedb('0x110'),_0x50f621,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x1ee20e([_0x5d0112],_0x324e1e,_0x652357)),null;}_0x5be72d[_0xcedb('0xa')](_0x5d0112);let _0xac0d57=!0x0;for(const _0x7fe67a of _0x5be72d)if(!this[_0xcedb('0x68')](_0x7fe67a)){_0xac0d57=!0x1;break;}if(_0xac0d57&&'always'!==this['_trackFormatChanges']){const _0x65de1d=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x110'),_0x50f621,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x65de1d([_0x5d0112],_0x324e1e,_0x652357)),null;}let _0x198d8d=null,_0x2228f2=_0x5d0112['start'],_0x5bf0c9=_0x5d0112[_0xcedb('0x9e')];for(const {suggestion:_0xdc36fe,meta:_0x26a8b3}of this[_0xcedb('0x109')](_0x5d0112,_0xcedb('0x110'))){if(!_0x26a8b3['isOwn']||_0x26a8b3[_0xcedb('0x128')]||_0x26a8b3[_0xcedb('0x123')]||_0x26a8b3[_0xcedb('0x3')])continue;if(_0xdc36fe[_0xcedb('0xe3')][_0xcedb('0x97')]!=_0x324e1e['formatGroupId'])continue;const _0x269339=_0xdc36fe[_0xcedb('0x117')]();if(_0xdc36fe['subType']==_0x50f621){if(_0x269339[_0xcedb('0x58')](_0x5d0112,!0x0))return null;_0x2228f2=_0x2228f2['isBefore'](_0x269339[_0xcedb('0x1a')])?_0x2228f2:_0x269339[_0xcedb('0x1a')],_0x5bf0c9=_0x5bf0c9[_0xcedb('0x74')](_0x269339[_0xcedb('0x9e')])?_0x5bf0c9:_0x269339['end'],_0x198d8d?_0x269339[_0xcedb('0x1a')][_0xcedb('0x10f')](_0x198d8d[_0xcedb('0x117')]()[_0xcedb('0x1a')])?(_0x198d8d[_0xcedb('0x49')](),_0x198d8d=_0xdc36fe):_0xdc36fe[_0xcedb('0x49')]():_0x198d8d=_0xdc36fe;}else{const _0x539095=_0x5d0112['getIntersection'](_0x269339);this[_0xcedb('0x5b')](_0xdc36fe,_0x539095);}}const _0xc2feae=this[_0xcedb('0x124')]['plugins'][_0xcedb('0xf1')](_0xcedb('0x52'))['me'],_0x229816=_0xa49531(),_0x1abd96=_0xc2feae['id'];if(_0x198d8d)return this[_0xcedb('0x81')](_0x198d8d,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x2228f2,_0x5bf0c9)),_0x198d8d;{const _0x9092e5=this[_0xcedb('0x95')]({'id':_0x229816,'type':_0xcedb('0xf2')+_0x50f621,'data':_0x324e1e,'createdAt':new Date(),'authorId':_0x1abd96,'attributes':_0x652357});return this['_addSuggestionMarker'](_0xcedb('0xf2')+_0x50f621,_0x229816,_0x1abd96,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x2228f2,_0x5bf0c9)),_0x9092e5;}}['markMultiRangeBlockFormat'](_0xa4bab7,_0x5e54bc,_0x5e0092=[],_0x2c088a=null,_0x5d70cc={}){_0x5e54bc[_0xcedb('0x97')]||(_0x5e54bc['formatGroupId']=_0x5e54bc[_0xcedb('0x10b')]);const _0x172db6=_0xa4bab7[0x0];_0x5e54bc['multipleBlocks']=_0x172db6['is'](_0xcedb('0xf4')),_0x2c088a=_0x2c088a||$t(_0x5e54bc);const _0x44fcfb=_0x5e0092[_0xcedb('0xdb')](_0x40def3=>Rt(_0x40def3,this['_model'])),_0xa61d15=_0x172db6['is']('range')?_0xa4bab7:_0xa4bab7[_0xcedb('0xdb')](_0x385166=>Rt(_0x385166,this[_0xcedb('0x11a')]));if(_0xcedb('0x7')===this[_0xcedb('0x130')]){const _0x2cb4f9=this['_suggestionFactory'][_0xcedb('0xdc')](_0xcedb('0x110'),_0x2c088a,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x2cb4f9(_0xa61d15,_0x5e54bc,_0x5d70cc)),null;}_0x44fcfb[_0xcedb('0xa')](..._0xa61d15);let _0x2b6a89=!0x0;for(const _0x4f9c71 of _0x44fcfb)if(!this[_0xcedb('0x68')](_0x4f9c71)){_0x2b6a89=!0x1;break;}if(_0x2b6a89&&_0xcedb('0x31')!==this['_trackFormatChanges']){const _0x30774b=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x110'),_0x2c088a,'accept');return this[_0xcedb('0xf8')](()=>_0x30774b(_0xa61d15,_0x5e54bc,_0x5d70cc)),null;}const _0x296fb0=this['editor'][_0xcedb('0xa2')]['get'](_0xcedb('0x52'))['me'];for(const _0x4de444 of this['getSuggestions']()){if(_0x4de444[_0xcedb('0xff')]['id']!=_0x296fb0['id'])continue;if('formatBlock'!=_0x4de444[_0xcedb('0x10')]||_0x4de444[_0xcedb('0xe3')][_0xcedb('0x97')]!=_0x5e54bc[_0xcedb('0x97')])continue;const _0x351787=_0x4de444['subType']==_0x2c088a;for(let _0x36a9db=0x0;_0x36a9db<_0xa61d15[_0xcedb('0xfb')];_0x36a9db++){const _0x1e89c4=_0xa61d15[_0x36a9db];for(const _0x2577b7 of _0x4de444[_0xcedb('0x1')]()){const _0x1bde85=_0x2577b7[_0xcedb('0x13b')]();if(_0x1e89c4['isEqual'](_0x1bde85)){_0x351787?(_0xa61d15[_0xcedb('0xa6')](_0x36a9db,0x1),_0x36a9db--):_0x4de444['removeMarker'](_0x2577b7[_0xcedb('0x75')]);break;}}}}if(0x0==_0xa61d15[_0xcedb('0xfb')])return null;const _0x5bf7fb=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x110'),_0x2c088a,'join');for(const _0x1e265a of this[_0xcedb('0x2')]())if(_0x1e265a[_0xcedb('0xff')]['id']==_0x296fb0['id']&&_0xcedb('0x110')==_0x1e265a[_0xcedb('0x10')]&&_0x1e265a[_0xcedb('0xe3')][_0xcedb('0x97')]==_0x5e54bc[_0xcedb('0x97')]&&_0x1e265a[_0xcedb('0x4a')]==_0x2c088a&&(_0x5bf7fb(_0x1e265a['getRanges'](),_0xa61d15)||_0x5bf7fb(_0xa61d15,_0x1e265a['getRanges']()))){for(const _0x99c6d7 of _0xa61d15)_0x1e265a[_0xcedb('0x134')](_0x99c6d7);return _0x1e265a;}const _0x585067=_0xa49531(),_0xfad207=_0x296fb0['id'],_0x89873a=_0xcedb('0xf2')+_0x2c088a,_0x4a275a=this[_0xcedb('0x95')]({'id':_0x585067,'type':_0x89873a,'data':_0x5e54bc,'createdAt':new Date(),'authorId':_0xfad207,'attributes':_0x5d70cc});for(const _0x2a9632 of _0xa61d15)this[_0xcedb('0x10c')](_0x89873a,_0x585067,_0xfad207,_0x2a9632,_0x58c80b['getMultiRangeId']());return _0x4a275a;}['markDeletion'](_0x116469,_0x5280e6=null,_0x532b86={}){if(_0x116469[_0xcedb('0x44')])return null;const _0x1834d3=this['editor'][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52'))['me'],_0x209fb7=new _0x5261dd(_0x116469[_0xcedb('0x1a')],_0x116469[_0xcedb('0x9e')]);for(const {suggestion:_0x5c912b,meta:_0x5b0de8}of this['_findSuggestions'](_0x209fb7,_0xcedb('0x101')))if(_0x5b0de8[_0xcedb('0xd')]&&!_0x5b0de8[_0xcedb('0x128')]){if(_0x5c912b['isMultiRange']){const _0x205ff7=_0x5c912b[_0xcedb('0xd5')]()[_0xcedb('0x111')](_0x34648f=>_0xcedb('0x19')!=_0x34648f[_0xcedb('0x65')][_0xcedb('0x119')]);_0x205ff7['every'](_0x11bd58=>_0x209fb7[_0xcedb('0x58')](_0x11bd58,!0x0))&&_0x5c912b[_0xcedb('0xa9')]();if(_0x205ff7[_0xcedb('0x96')](_0x5eb8db=>_0x5eb8db[_0xcedb('0x58')](_0x209fb7,!0x0))){const _0x12ac64=this[_0xcedb('0x61')]['getSuggestionCallback']('deletion',_0x5280e6,'accept');return this['forceDefaultExecution'](()=>_0x12ac64([_0x209fb7],null,_0x532b86)),null;}}else{const _0x11b25b=_0x209fb7['getIntersection'](_0x5c912b[_0xcedb('0x117')]());null!==_0x11b25b&&_0x5c912b['_onDiscard']([_0x11b25b],null,_0x532b86);}}if(_0x209fb7[_0xcedb('0x9d')](),_0x209fb7[_0xcedb('0x44')]||'$graveyard'==_0x209fb7[_0xcedb('0x65')]['rootName'])return null;let _0x5c9a31=null,_0x502ad7=_0x209fb7[_0xcedb('0x1a')],_0x182391=_0x209fb7['end'];for(const {suggestion:_0x4a93a9,meta:_0x4aec13}of this['_findSuggestions'](_0x209fb7,_0xcedb('0x80')))if(_0x4aec13[_0xcedb('0xd')]){if(_0x4a93a9[_0xcedb('0x136')]&&this[_0xcedb('0x43')]){let _0x565d40=!0x0;for(const _0x3e31c8 of _0x4a93a9[_0xcedb('0xd5')]()){if(_0x3e31c8[_0xcedb('0x58')](_0x209fb7,!0x0))return _0x4a93a9;_0x209fb7[_0xcedb('0x58')](_0x3e31c8)||(_0x565d40=!0x1);}_0x565d40&&_0x4a93a9[_0xcedb('0xa9')]();}else{const _0x1e03e4=_0x4a93a9['getFirstRange']();if(_0x1e03e4[_0xcedb('0x58')](_0x209fb7,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x4aec13['containsRangeInObject'])continue;return _0x4a93a9;}_0x502ad7=_0x502ad7['isBefore'](_0x1e03e4[_0xcedb('0x1a')])?_0x502ad7:_0x1e03e4[_0xcedb('0x1a')],_0x182391=_0x182391[_0xcedb('0x74')](_0x1e03e4['end'])?_0x182391:_0x1e03e4[_0xcedb('0x9e')],_0x5c9a31?_0x1e03e4['start']['isBefore'](_0x5c9a31[_0xcedb('0x117')]()[_0xcedb('0x1a')])?(_0x5c9a31[_0xcedb('0x49')](),_0x5c9a31=_0x4a93a9):_0x4a93a9['removeMarkers']():_0x5c9a31=_0x4a93a9;}}if(_0x5c9a31)return this[_0xcedb('0x81')](_0x5c9a31,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x502ad7,_0x182391)),_0x5c9a31;{const _0x1e9580=_0xa49531(),_0x591b5a=this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x502ad7,_0x182391),_0x193776=_0x1834d3['id'],_0x1602e1=_0x5280e6?_0xcedb('0xed')+_0x5280e6:_0xcedb('0x80'),_0x555ed3=this[_0xcedb('0x95')]({'id':_0x1e9580,'type':_0x1602e1,'createdAt':new Date(),'authorId':_0x193776,'attributes':_0x532b86});return this[_0xcedb('0x10c')](_0x1602e1,_0x1e9580,_0x193776,_0x591b5a),_0x555ed3;}}['markMultiRangeDeletion'](_0x4031d2,_0xcd199d='multi',_0x4ba97d={}){const _0x3b430b=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52'))['me'],_0x257306=_0x4031d2[_0xcedb('0xdb')](_0x6e33af=>new _0x5261dd(_0x6e33af[_0xcedb('0x1a')],_0x6e33af[_0xcedb('0x9e')])),_0x19e491=new Set();for(const _0x8c76da of _0x257306)for(const {suggestion:_0x56c4ed,meta:_0x9dfda0}of this['_findSuggestions'](_0x8c76da,'insertion'))_0x9dfda0['isOwn']&&!_0x9dfda0[_0xcedb('0x128')]&&_0x19e491[_0xcedb('0xe2')](_0x56c4ed);for(const _0x40662f of _0x19e491)if(_0x40662f[_0xcedb('0x136')]){const _0x1b6cc6=_0x40662f['getRanges']();(!_0x40662f[_0xcedb('0x21')]||!_0x40662f[_0xcedb('0x21')][_0xcedb('0x26')])&&(_0x1b6cc6[_0xcedb('0x6b')](_0x96ae88=>_0x257306[_0xcedb('0x96')](_0x450b0c=>_0x450b0c[_0xcedb('0x58')](_0x96ae88,!0x0)))&&_0x40662f[_0xcedb('0xa9')]());if(_0x257306[_0xcedb('0x6b')](_0x56628e=>_0x1b6cc6[_0xcedb('0x96')](_0x5022db=>_0x5022db[_0xcedb('0x58')](_0x56628e,!0x0)))){const _0x4ca04b=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x80'),_0xcd199d,_0xcedb('0x24'));return this['forceDefaultExecution'](()=>_0x4ca04b(_0x4031d2,null,_0x4ba97d)),null;}}else{const _0x1a60fe=_0x40662f['getFirstRange']();_0x257306[_0xcedb('0x96')](_0x5c3858=>_0x5c3858['containsRange'](_0x1a60fe,!0x0))&&_0x40662f['discard']();if(_0x257306['every'](_0x15d878=>_0x1a60fe[_0xcedb('0x58')](_0x15d878,!0x0))){const _0x46dab7=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x80'),_0xcd199d,_0xcedb('0x24'));return this[_0xcedb('0xf8')](()=>_0x46dab7(_0x257306,null,_0x4ba97d)),null;}}const _0xf782b6=this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xcedb('0x80'),_0xcd199d,_0xcedb('0x11e'));let _0x1b84f3=null;for(const _0x508578 of this[_0xcedb('0x2')]())if(_0x508578['author']['id']==_0x3b430b['id']&&_0x508578[_0xcedb('0x115')]&&'deletion'==_0x508578['type']&&_0x508578['subType']==_0xcd199d&&(_0xf782b6(_0x508578['getRanges'](),_0x257306)||_0xf782b6(_0x257306,_0x508578[_0xcedb('0xd5')]()))){if(_0x1b84f3){if(_0x508578[_0xcedb('0x69')]&&_0x508578['commentThread'][_0xcedb('0xfb')])continue;for(const _0x5e17e0 of _0x508578['getRanges']())_0x1b84f3[_0xcedb('0x76')](_0x5e17e0)||_0x1b84f3[_0xcedb('0x134')](_0x5e17e0);_0x508578['removeMarkers']();}else{_0x1b84f3=_0x508578;for(const _0x2a5a79 of _0x257306)_0x508578[_0xcedb('0x76')](_0x2a5a79)||_0x508578[_0xcedb('0x134')](_0x2a5a79);}}if(_0x1b84f3)return _0x1b84f3;_0x19e491[_0xcedb('0xc2')]();for(const _0x5f4eb3 of _0x257306)for(const {suggestion:_0xf2b7c6,meta:_0x5dae0b}of this[_0xcedb('0x109')](_0x5f4eb3,_0xcedb('0x80')))_0x5dae0b[_0xcedb('0xd')]&&_0x19e491[_0xcedb('0xe2')](_0xf2b7c6);for(const _0x403bc5 of _0x19e491){const _0x3a89cd=_0x403bc5[_0xcedb('0xd5')]();if(!_0x4ba97d||!_0x4ba97d[_0xcedb('0x26')]){if(_0x257306['every'](_0x8d141f=>_0x3a89cd[_0xcedb('0x96')](_0x30a6a2=>_0x30a6a2['containsRange'](_0x8d141f,!0x0))))return _0x403bc5;}(!_0x403bc5[_0xcedb('0x21')]||!_0x403bc5[_0xcedb('0x21')][_0xcedb('0x26')])&&(_0x3a89cd[_0xcedb('0x6b')](_0x2fc59c=>_0x257306['some'](_0x24a930=>_0x24a930[_0xcedb('0x58')](_0x2fc59c,!0x0)))&&_0x403bc5[_0xcedb('0xa9')]());}const _0x2605e2=_0xa49531(),_0x4e361f=_0x3b430b['id'],_0x27c21a=_0xcedb('0xed')+_0xcd199d,_0x5ef47a=this[_0xcedb('0x95')]({'id':_0x2605e2,'type':_0x27c21a,'createdAt':new Date(),'authorId':_0x4e361f,'attributes':_0x4ba97d});for(const _0x12ee29 of _0x257306)_0x12ee29[_0xcedb('0x9d')](),_0x12ee29[_0xcedb('0x44')]||_0xcedb('0x19')==_0x12ee29[_0xcedb('0x65')]['rootName']||this['_addSuggestionMarker'](_0x27c21a,_0x2605e2,_0x4e361f,_0x12ee29,_0x58c80b[_0xcedb('0xd2')]());return _0x5ef47a;}['_setSuggestionRange'](_0x5d454e,_0x2c435e){const _0x42e3a1=_0x5d454e['getFirstMarker']();this[_0xcedb('0x11a')][_0xcedb('0x139')](_0x3441cb=>{_0x3441cb[_0xcedb('0xa5')](_0x42e3a1,{'range':_0x2c435e});});}[_0xcedb('0xe5')](_0x3592c6){const _0x204a58=_0x3592c6['id'],_0x43d5d0=this['editor']['config']['get'](_0xcedb('0x18'));this[_0xcedb('0x90')]['hasCommentThread'](_0x204a58)||this[_0xcedb('0x90')][_0xcedb('0x10d')]({'channelId':_0x43d5d0,'threadId':_0x204a58,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x58cefd=this[_0xcedb('0x90')][_0xcedb('0x12e')](_0x204a58);_0x58cefd['unbind'](_0xcedb('0x11c')),_0x58cefd[_0xcedb('0x11c')]=!0x1,_0x3592c6[_0xcedb('0x69')]=_0x58cefd;}['_checkSuggestionCorrectness'](_0x46bf0b,_0x119056,_0x45a728,_0x53d027){if(_0x46bf0b[_0xcedb('0x10')]!=_0x119056||_0x46bf0b['subType']!=_0x45a728||_0x46bf0b[_0xcedb('0x78')]['id']!=_0x53d027)throw this[_0xcedb('0x124')]['enableReadOnlyMode'](_0xcedb('0x132')),new _0x47ae60(_0xcedb('0x132'),this);}[_0xcedb('0x5b')](_0x2f91b3,_0x57e3be){const _0x54d040=_0x2f91b3[_0xcedb('0x117')]();if(_0x57e3be['isEqual'](_0x54d040))_0x2f91b3[_0xcedb('0x49')]();else{if(_0x54d040[_0xcedb('0x58')](_0x57e3be)){const _0x5d45a0=this[_0xcedb('0x11a')][_0xcedb('0x8b')](_0x57e3be['start']['nodeBefore'],'end');this[_0xcedb('0x81')](_0x2f91b3,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x54d040[_0xcedb('0x1a')],_0x5d45a0));const _0x51e305=_0xa49531(),_0x2515c8=_0x2f91b3[_0xcedb('0x78')]['id'],_0x3cbc86=_0x2f91b3[_0xcedb('0x10')]+':'+_0x2f91b3[_0xcedb('0x4a')];this[_0xcedb('0x95')]({'id':_0x51e305,'type':_0x3cbc86,'createdAt':new Date(),'authorId':_0x2515c8,'data':_0x2f91b3['data'],'attributes':_0x2f91b3[_0xcedb('0x21')]});const _0x42ec1a=this[_0xcedb('0x11a')]['createPositionAt'](_0x57e3be[_0xcedb('0x9e')][_0xcedb('0x2c')],_0xcedb('0xac')),_0x426a50=this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x42ec1a,_0x54d040[_0xcedb('0x9e')]);this[_0xcedb('0x10c')](_0x3cbc86,_0x51e305,_0x2515c8,_0x426a50);}else{if(_0x54d040[_0xcedb('0x6')](_0x57e3be[_0xcedb('0x1a')])){const _0x4cc16d=this[_0xcedb('0x11a')][_0xcedb('0x8b')](_0x57e3be[_0xcedb('0x1a')]['nodeBefore'],_0xcedb('0x9e'));this[_0xcedb('0x81')](_0x2f91b3,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x54d040['start'],_0x4cc16d));}else{const _0x23173a=this[_0xcedb('0x11a')][_0xcedb('0x8b')](_0x57e3be[_0xcedb('0x9e')][_0xcedb('0x2c')],_0xcedb('0xac'));this[_0xcedb('0x81')](_0x2f91b3,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x23173a,_0x54d040[_0xcedb('0x9e')]));}}}}[_0xcedb('0x68')](_0x46f17){for(const {suggestion:_0x4b2ad3,meta:_0x56e8d6}of this[_0xcedb('0x109')](_0x46f17,_0xcedb('0x101'))){if(!_0x56e8d6[_0xcedb('0xd')])continue;const _0xb0d51b=_0x4b2ad3[_0xcedb('0xd5')]();for(const _0x530189 of _0xb0d51b)if(!_0x46f17[_0xcedb('0x99')](_0x530189)[_0xcedb('0xfb')])return!0x0;}return!0x1;}[_0xcedb('0x56')](_0x46a9b1){const _0x2a9429=this[_0xcedb('0x124')]['plugins'][_0xcedb('0xf1')](_0xcedb('0x52'))[_0xcedb('0xd6')](_0x46a9b1);if(!_0x2a9429)throw new _0x47ae60(_0xcedb('0x98'),this);return _0x2a9429;}[_0xcedb('0x1f')](_0x16ef38){const _0x27690f=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52')),_0x5447ae=_0x353f62(_0xcedb('0x116')+_0x16ef38),_0xa1af89=_0x27690f[_0xcedb('0xd6')](_0x5447ae);return _0xa1af89||_0x27690f['addUser']({'id':_0x5447ae,'name':_0x16ef38});}[_0xcedb('0x7f')](_0x37325b,_0x273e76,_0x47d78d,_0xa341e6,_0x1e9c78){const _0xe3b5df=this[_0xcedb('0x56')](_0xa341e6),_0x5e575d=this['_suggestionFactory']['buildSuggestion'](_0x37325b,_0x273e76,_0x47d78d,_0xe3b5df,_0x1e9c78,_0x4e4801=>this[_0xcedb('0x12d')](_0x47d78d,{'attributes':_0x4e4801}));return this['listenTo'](_0x5e575d,_0xcedb('0x24'),()=>{this[_0xcedb('0x12d')](_0x47d78d,{'state':_0xcedb('0x4b')});},{'priority':'high'}),this['listenTo'](_0x5e575d,_0xcedb('0xa9'),()=>{this[_0xcedb('0x12d')](_0x47d78d,{'state':'rejected'});},{'priority':_0xcedb('0x27')}),this[_0xcedb('0xee')]['set'](_0x47d78d,_0x5e575d),this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x5e575d,'notReady'),_0x5e575d;}['_splitMarkerName'](_0x5eb364){const _0x130cf9=_0x5eb364[_0xcedb('0x4e')](':');return{'group':_0x130cf9[0x0],'type':_0x130cf9[0x1],'subType':_0x130cf9[_0xcedb('0xfb')]>=0x5?_0x130cf9[0x2]:null,'id':_0x130cf9[_0xcedb('0xfb')]<0x5?_0x130cf9[0x2]:_0x130cf9[0x3],'authorId':_0x130cf9[_0xcedb('0xfb')]<0x5?_0x130cf9[0x3]:_0x130cf9[0x4],'markerCount':0x6==_0x130cf9[_0xcedb('0xfb')]?_0x130cf9[0x5]:null};}[_0xcedb('0x13')](_0x3549fa,_0x290549,_0x33d331){const _0x48abba=_0x3549fa['getFirstRange'](),_0x1fa1af=_0x48abba[_0xcedb('0x1a')],_0x2cad15=_0x48abba[_0xcedb('0x9e')];this['_setSuggestionRange'](_0x3549fa,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x1fa1af,_0x290549));const _0x14a5c8=_0xa49531(),_0x296e1c=_0x3549fa[_0xcedb('0x78')]['id'],_0x676413=_0x3549fa[_0xcedb('0x10')]+(_0x3549fa['subType']?':'+_0x3549fa['subType']:'');this[_0xcedb('0x95')]({'id':_0x14a5c8,'type':_0x676413,'createdAt':new Date(),'authorId':_0x296e1c,'originalSuggestionId':_0x3549fa['id'],'attributes':_0x3549fa[_0xcedb('0x21')],'data':_0x3549fa['data']}),_0xcedb('0x110')==_0x3549fa['type']&&(_0x33d331=this[_0xcedb('0x11a')][_0xcedb('0x16')](_0x33d331[_0xcedb('0x2c')])),this[_0xcedb('0x10c')](_0x676413,_0x14a5c8,_0x296e1c,this['_model']['createRange'](_0x33d331,_0x2cad15));}['_findSuggestions'](_0x3e82d5,_0x3fa716=null){const _0x46e99d=[],_0x13cabb=this[_0xcedb('0x11a')]['schema'],_0x3723b7=this[_0xcedb('0x124')][_0xcedb('0xa2')][_0xcedb('0xf1')](_0xcedb('0x52'))['me'];for(const _0xa59ac8 of this['getSuggestions']())if(_0xa59ac8[_0xcedb('0x115')]&&(!_0x3fa716||_0xa59ac8[_0xcedb('0x10')]==_0x3fa716))for(const _0x14ec9c of _0xa59ac8[_0xcedb('0xd5')]()){const _0x26e391=_0x3e82d5[_0xcedb('0x1a')][_0xcedb('0xe8')](_0x14ec9c[_0xcedb('0x9e')])||_0x3e82d5[_0xcedb('0x9e')][_0xcedb('0xe8')](_0x14ec9c[_0xcedb('0x1a')]);if(_0x26e391||_0x3e82d5[_0xcedb('0x8')](_0x14ec9c)){const _0x4138d0=_0x3e82d5[_0xcedb('0x58')](_0x14ec9c)&&Bt(_0x13cabb,_0x14ec9c[_0xcedb('0x1a')],_0x3e82d5),_0x238765=_0x14ec9c[_0xcedb('0x58')](_0x3e82d5)&&Bt(_0x13cabb,_0x3e82d5[_0xcedb('0x1a')],_0x14ec9c);_0x46e99d[_0xcedb('0xa')]({'suggestion':_0xa59ac8,'meta':{'isOwn':_0x3723b7==_0xa59ac8['author'],'isNextTo':_0x26e391,'isInsideObject':_0x4138d0,'containsRangeInObject':_0x238765}});break;}}return _0x46e99d;}[_0xcedb('0x10c')](_0x50dbda,_0xff1662,_0x1f5c2b,_0x267112,_0xaba20b){this[_0xcedb('0x11a')][_0xcedb('0x139')](_0x3266ba=>{let _0x4b0a60='suggestion:'+_0x50dbda+':'+_0xff1662+':'+_0x1f5c2b;_0xaba20b&&(_0x4b0a60=_0x4b0a60+':'+_0xaba20b),_0x3266ba[_0xcedb('0x12')](_0x4b0a60,{'range':_0x267112,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xcedb('0x77')](_0x1669e4){const _0x2f9269=_0x1669e4[_0xcedb('0x8e')],_0x178a30=_0x1669e4[_0xcedb('0x4f')];_0x1669e4['previous']=null,null!=_0x2f9269&&(_0x2f9269[_0xcedb('0x4f')]=null),_0x1669e4[_0xcedb('0x4f')]=null,null!=_0x178a30&&(_0x178a30[_0xcedb('0x8e')]=null),_0xcedb('0x46')==this[_0xcedb('0xc4')][_0xcedb('0xf1')](_0x1669e4)&&(this[_0xcedb('0xc4')][_0xcedb('0x11b')](_0x1669e4,_0xcedb('0xfe')),this['fire'](_0xcedb('0xf'),_0x1669e4,_0x2f9269,_0x178a30));}[_0xcedb('0x95')](_0x152e70){const _0x363570=_0x152e70['id'],_0x255169=this['addSuggestionData'](_0x152e70);if(this['_adapter']&&this['_adapter'][_0xcedb('0xf9')]){const _0x4094a5=this['editor']['plugins'][_0xcedb('0xf1')](_0xcedb('0x7c')),_0x445c00=_0x255169['hasComments'],_0x83f88=_0x255169[_0xcedb('0x4a')]?_0x255169[_0xcedb('0x10')]+':'+_0x255169[_0xcedb('0x4a')]:_0x255169[_0xcedb('0x10')],_0x59e422=this[_0xcedb('0x124')]['locale'],_0x3b0f2f=_0x4094a5['add'](_0x1365f6(_0x59e422,_0xcedb('0x103'))),_0x5bbbec={'id':_0x363570,'type':_0x83f88,'hasComments':_0x445c00,'data':_0x152e70['data']||null,'originalSuggestionId':_0x152e70['originalSuggestionId']||null,'attributes':_0x255169['attributes']};this[_0xcedb('0x137')][_0xcedb('0xf9')](_0x5bbbec)[_0xcedb('0x45')](_0x5bba2b=>{_0x255169[_0xcedb('0xc5')]=!0x0,_0x4094a5[_0xcedb('0x8f')](_0x3b0f2f),_0x5bba2b&&_0x5bba2b[_0xcedb('0xb3')]&&(this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x363570)[_0xcedb('0xb3')]=_0x5bba2b[_0xcedb('0xb3')]);})[_0xcedb('0xb9')](_0x1e7b32=>{throw _0x1900c0('error-saving-suggestion-data-suggestion-discarded'),this[_0xcedb('0x124')][_0xcedb('0xdd')][_0xcedb('0x91')]({'isUndoable':!0x1},()=>{_0x255169[_0xcedb('0xa9')]();}),_0x255169[_0xcedb('0x102')](),this[_0xcedb('0xee')][_0xcedb('0x1e')](_0x255169['id']),this[_0xcedb('0xc4')][_0xcedb('0x1e')](_0x255169),_0x1e7b32;});}return _0x255169;}[_0xcedb('0x12d')](_0x591baa,_0x1bdd8e){const _0x2640c7=this[_0xcedb('0x124')]['plugins'][_0xcedb('0xf1')](_0xcedb('0x7c')),_0x3c15ee=this[_0xcedb('0xaa')](_0x591baa);if(this[_0xcedb('0x137')]&&this[_0xcedb('0x137')][_0xcedb('0x17')]){if(_0x3c15ee['_saved']){const _0x536907=_0x2640c7[_0xcedb('0xe2')](_0x1365f6(this[_0xcedb('0x124')][_0xcedb('0xf3')],_0xcedb('0x103')));this[_0xcedb('0x137')][_0xcedb('0x17')](_0x591baa,_0x1bdd8e)[_0xcedb('0x45')](()=>{_0x2640c7[_0xcedb('0x8f')](_0x536907);});}else _0x3c15ee['on'](_0xcedb('0xae'),()=>{this[_0xcedb('0x12d')](_0x591baa,_0x1bdd8e);});}}['_getSuggestionData'](_0x2cb6bc){if(!this['_adapter']||!this[_0xcedb('0x137')]['getSuggestion'])throw new _0x47ae60(_0xcedb('0x9f'),this);return this['_adapter']['getSuggestion'](_0x2cb6bc);}[_0xcedb('0xfc')](_0x349ffa){const {id:_0x5b684b,type:_0x517b43,subType:_0x5d1d07,authorId:_0x4a5ba3}=this[_0xcedb('0x2b')](_0x349ffa),_0x2e1718=this[_0xcedb('0xee')][_0xcedb('0xf1')](_0x5b684b)||this[_0xcedb('0x7f')](_0x517b43,_0x5d1d07,_0x5b684b,_0x4a5ba3,{});switch(this[_0xcedb('0x5c')](_0x2e1718,_0x517b43,_0x5d1d07,_0x4a5ba3),this[_0xcedb('0xc4')][_0xcedb('0xf1')](_0x2e1718)){case _0xcedb('0x85'):this[_0xcedb('0xbe')](_0x5b684b)[_0xcedb('0x45')](_0x3029ec=>{let _0x380faf=Promise[_0xcedb('0xc0')]();_0x3029ec[_0xcedb('0x120')]&&(_0x380faf=this[_0xcedb('0x90')]['fetchCommentThread']({'channelId':this['editor'][_0xcedb('0xc')]['get']('collaboration.channelId'),'threadId':_0x5b684b})),_0x380faf['then'](()=>{this[_0xcedb('0xbf')](_0x3029ec)['_saved']=!0x0;});}),this['_suggestionState'][_0xcedb('0x11b')](_0x2e1718,'markerReady');break;case _0xcedb('0xfe'):this[_0xcedb('0x12d')](_0x5b684b,{'state':'open'});case'dataReady':this['_suggestionState'][_0xcedb('0x11b')](_0x2e1718,'ready'),this[_0xcedb('0x64')](_0xcedb('0x5a'),_0x2e1718);break;case _0xcedb('0x46'):this[_0xcedb('0x64')]('suggestionChanged',_0x2e1718);}return _0x2e1718[_0xcedb('0xd7')](_0x349ffa),_0x2e1718;}[_0xcedb('0x4d')](_0x19b71e){const _0x1edfe0=Array[_0xcedb('0x8a')](_0x19b71e)[_0xcedb('0x111')](_0x42eb84=>!_0x42eb84['isMultiRange']),_0x4fc240=this[_0xcedb('0x2')]({'skipNotAttached':!0x0})[_0xcedb('0x111')](_0x583850=>!_0x583850[_0xcedb('0x136')]),_0x4fd4f4=_0x4fc240[_0xcedb('0x111')](_0x5e1431=>!_0x19b71e[_0xcedb('0x138')](_0x5e1431)),_0x5b9bc6=new Map(_0x4fc240['map'](_0xb4c3c8=>[_0xb4c3c8,this[_0xcedb('0x61')][_0xcedb('0xdc')](_0xb4c3c8['type'],_0xb4c3c8[_0xcedb('0x4a')],_0xcedb('0x1c'))])),_0x2f1f5d=new Map(_0x4fc240[_0xcedb('0xdb')](_0x5aa5da=>[_0x5aa5da,_0x5aa5da[_0xcedb('0x117')]()])),_0x3692b9=new Set(),_0x59d19f=new Set();for(let _0x250c19=0x0;_0x250c19<_0x1edfe0['length'];_0x250c19++)_0x368e4b(_0x1edfe0[_0x250c19],_0x1edfe0,_0x250c19+0x1);for(let _0x239a7e=0x0;_0x239a7e<_0x1edfe0[_0xcedb('0xfb')];_0x239a7e++)_0x368e4b(_0x1edfe0[_0x239a7e],_0x4fd4f4,0x0);for(let _0x2504f1=0x0;_0x2504f1<_0x1edfe0[_0xcedb('0xfb')];_0x2504f1++){const _0x59fd0a=_0x1edfe0[_0x2504f1];!_0x59d19f[_0xcedb('0x138')](_0x59fd0a)&&_0x59fd0a['previous']&&(_0x59fd0a[_0xcedb('0x8e')]['next']===_0x59fd0a&&(_0x59fd0a[_0xcedb('0x8e')]['next']=null),_0x59fd0a[_0xcedb('0x8e')]=null),!_0x3692b9[_0xcedb('0x138')](_0x59fd0a)&&_0x59fd0a[_0xcedb('0x4f')]&&(_0x59fd0a[_0xcedb('0x4f')][_0xcedb('0x8e')]===_0x59fd0a&&(_0x59fd0a[_0xcedb('0x4f')][_0xcedb('0x8e')]=null),_0x59fd0a[_0xcedb('0x4f')]=null);}function _0x368e4b(_0xb3f268,_0x3dff0a,_0x332868){for(let _0x5d6159=_0x332868;_0x5d6159<_0x3dff0a[_0xcedb('0xfb')];_0x5d6159++){const _0x23cb24=_0x5d6be5(_0xb3f268,_0x3dff0a[_0x5d6159]);_0x23cb24&&(_0x23cb24[0x0][_0xcedb('0x4f')]=_0x23cb24[0x1],_0x23cb24[0x1][_0xcedb('0x8e')]=_0x23cb24[0x0],_0x3692b9[_0xcedb('0xe2')](_0x23cb24[0x0]),_0x59d19f[_0xcedb('0xe2')](_0x23cb24[0x1]));}}function _0x5d6be5(_0x2cdfcd,_0x46d11a){if(_0x2cdfcd[_0xcedb('0xff')]['id']!==_0x46d11a[_0xcedb('0xff')]['id'])return null;const _0x18271f=_0x5b9bc6['get'](_0x2cdfcd)(_0x2cdfcd,_0x46d11a,_0x2f1f5d[_0xcedb('0xf1')](_0x2cdfcd),_0x2f1f5d['get'](_0x46d11a));if(!_0x18271f)return null;return _0x5b9bc6[_0xcedb('0xf1')](_0x46d11a)(_0x2cdfcd,_0x46d11a,_0x2f1f5d[_0xcedb('0xf1')](_0x2cdfcd),_0x2f1f5d[_0xcedb('0xf1')](_0x46d11a))?_0x18271f[0x1]['commentThread']&&_0x18271f[0x1][_0xcedb('0x69')][_0xcedb('0xfb')]?null:_0x18271f:null;}}[_0xcedb('0xb6')](_0x7c853b){const _0xbcfbe6=Array['from'](_0x7c853b),_0x26da81=this[_0xcedb('0x2')]({'skipNotAttached':!0x0}),_0x5b3993=_0x26da81['filter'](_0x1d81e2=>!_0x7c853b[_0xcedb('0x138')](_0x1d81e2)),_0x542361=new Map(_0xbcfbe6[_0xcedb('0xdb')](_0x4a13de=>[_0x4a13de,this[_0xcedb('0x61')][_0xcedb('0xdc')](_0x4a13de[_0xcedb('0x10')],_0x4a13de[_0xcedb('0x4a')],_0xcedb('0x11e'))])),_0x4c17a1=new Map(_0x26da81[_0xcedb('0xdb')](_0x5bf81f=>[_0x5bf81f,_0x5bf81f[_0xcedb('0xd5')]()]));for(let _0x1efe9=0x0;_0x1efe9<_0xbcfbe6[_0xcedb('0xfb')];_0x1efe9++){if(_0x4764dd(this,_0xbcfbe6[_0x1efe9],_0xbcfbe6,_0x1efe9+0x1))return!0x0;}for(let _0x138fd0=0x0;_0x138fd0<_0xbcfbe6[_0xcedb('0xfb')];_0x138fd0++){if(_0x4764dd(this,_0xbcfbe6[_0x138fd0],_0x5b3993,0x0))return!0x0;}return!0x1;function _0x4764dd(_0x4eb322,_0x413429,_0x124c65,_0x3b7992){for(let _0x4cb70c=_0x3b7992;_0x4cb70c<_0x124c65[_0xcedb('0xfb')];_0x4cb70c++){const _0x56c8df=_0x124c65[_0x4cb70c];if(_0x56c8df['type']!==_0x413429[_0xcedb('0x10')]||_0x56c8df[_0xcedb('0xff')]['id']!==_0x413429['author']['id']||_0x56c8df[_0xcedb('0x4a')]!==_0x413429[_0xcedb('0x4a')])continue;const _0x12d284=_0x542361[_0xcedb('0xf1')](_0x413429),_0x58d20d=_0x4c17a1[_0xcedb('0xf1')](_0x413429),_0x548a05=_0x4c17a1[_0xcedb('0xf1')](_0x56c8df),_0x2f48fb=_0x413429['commentThread']&&_0x413429[_0xcedb('0x69')][_0xcedb('0xfb')],_0x4ff184=_0x56c8df['commentThread']&&_0x56c8df[_0xcedb('0x69')][_0xcedb('0xfb')];if(!_0x2f48fb&&_0x12d284(_0x548a05,_0x58d20d))return _0x4eb322[_0xcedb('0xea')](_0x56c8df,_0x413429),_0x4c17a1[_0xcedb('0x1e')](_0x413429),!0x0;if(!_0x4ff184&&_0x12d284(_0x58d20d,_0x548a05))return _0x4eb322[_0xcedb('0xea')](_0x413429,_0x56c8df),_0x4c17a1[_0xcedb('0x1e')](_0x56c8df),!0x0;}return!0x1;}}[_0xcedb('0xea')](_0x59d4a9,_0x233158){if(_0x59d4a9[_0xcedb('0x136')])for(const _0x3b2ba1 of _0x233158['getRanges']())_0x59d4a9['addRange'](_0x3b2ba1);else{const _0x833443=_0x233158[_0xcedb('0x117')]()['end'];this[_0xcedb('0x81')](_0x59d4a9,this[_0xcedb('0x11a')][_0xcedb('0xf0')](_0x59d4a9[_0xcedb('0x117')]()[_0xcedb('0x1a')],_0x833443));}_0x233158[_0xcedb('0x49')]();}}class Dt{constructor(_0x503405){this['_editor']=_0x503405,this[_0xcedb('0x11a')]=_0x503405['model'],this[_0xcedb('0xb4')]=new Map(),this[_0xcedb('0xfa')]=new Map(),this[_0xcedb('0xb0')]();}[_0xcedb('0x41')](_0x20745f,_0x3520a6,_0xbc3114,_0x167c0f,_0x4ee203,_0x8baf68){return new _0x58c80b(this[_0xcedb('0x11a')],{'type':_0x20745f,'subType':_0x3520a6,'id':_0xbc3114,'author':_0x167c0f,'creator':_0x167c0f,'attributes':_0x4ee203,'onAttributesChange':_0x8baf68,'onAccept':(..._0x5884de)=>this[_0xcedb('0xdc')](_0x20745f,_0x3520a6,_0xcedb('0x24'))(..._0x5884de),'onDiscard':(..._0x589286)=>this[_0xcedb('0xdc')](_0x20745f,_0x3520a6,_0xcedb('0xa9'))(..._0x589286)});}[_0xcedb('0xcf')](_0x45a261,_0x9b9fb1,_0x5cbea3,_0x77cdb0){const _0x258f5c=_0x45a261+':'+_0x9b9fb1+':'+_0x5cbea3;this[_0xcedb('0xb4')][_0xcedb('0x11b')](_0x258f5c,_0x77cdb0);}[_0xcedb('0xdc')](_0x374f4a,_0x5666ff,_0x5aea03){const _0x1c3adf=_0x374f4a+':'+_0x5666ff+':'+_0x5aea03;return this[_0xcedb('0xb4')]['get'](_0x1c3adf)||this['_defaultCallbacks'][_0xcedb('0xf1')](_0x374f4a+':'+_0x5aea03);}[_0xcedb('0xb0')](){const _0x9ba042=()=>{},_0x3e3180=_0x5a3e54=>{_0x5a3e54[_0xcedb('0x94')]((_0x2dae6c,_0x51c2ef)=>_0x2dae6c['start'][_0xcedb('0x10f')](_0x51c2ef[_0xcedb('0x1a')])?0x1:-0x1),this[_0xcedb('0x11a')]['change'](_0x427952=>{for(const _0x397e9c of _0x5a3e54){let _0x5a0041;_0x5a0041=_0x397e9c[_0xcedb('0x9e')][_0xcedb('0x2a')]&&_0x397e9c[_0xcedb('0x9e')][_0xcedb('0x2c')]==_0x397e9c['start']['nodeAfter']?_0x427952[_0xcedb('0x11')](_0x397e9c[_0xcedb('0x1a')][_0xcedb('0x3f')],'on'):_0x427952[_0xcedb('0x11')](_0x397e9c),this[_0xcedb('0x11a')][_0xcedb('0xe0')](_0x5a0041,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x57ae2d=(_0x2b2092,_0x2737cb)=>{this[_0xcedb('0x11a')]['change'](_0x45d8ee=>{const {commandName:_0x4a9a31,commandParams:_0x429611=[]}=_0x2737cb,_0x21ac99=_0x2b2092[_0xcedb('0xdb')](_0x48a35f=>(_t(_0x48a35f)&&(_0x48a35f=this[_0xcedb('0x11a')]['createRange'](_0x48a35f[_0xcedb('0x9e')])),_0x48a35f))[_0xcedb('0x111')](_0x4f026d=>_0xcedb('0x19')!==_0x4f026d['root'][_0xcedb('0x119')]);if(_0x21ac99[_0xcedb('0xfb')]<0x1)return;const _0x5c1d6e=Array[_0xcedb('0x8a')](this[_0xcedb('0x11a')][_0xcedb('0xeb')][_0xcedb('0xb8')][_0xcedb('0xd5')]())['map'](_0x1d7aa4=>_0x5261dd[_0xcedb('0xec')](_0x1d7aa4));_0x45d8ee[_0xcedb('0xa7')](_0x21ac99);for(const _0x17645f of this[_0xcedb('0x3c')][_0xcedb('0x1b')][_0xcedb('0x1b')]())_0x17645f[_0xcedb('0x9a')]();_0x429611[_0xcedb('0xa')]({'forceDefaultExecution':!0x0}),this[_0xcedb('0x3c')][_0xcedb('0x106')](_0x4a9a31,..._0x429611);const _0x63fec4=_0x5c1d6e[_0xcedb('0x111')](_0x5ad5b3=>_0xcedb('0x19')!=_0x5ad5b3[_0xcedb('0x65')][_0xcedb('0x119')]);_0x63fec4['length']>0x0&&_0x45d8ee[_0xcedb('0xa7')](_0x63fec4);for(const _0x128fcd of _0x5c1d6e)_0x128fcd[_0xcedb('0x9d')]();});},_0x428e54=(_0x222eb0,_0x105190)=>0x1==_0x222eb0[_0xcedb('0xfb')]&&0x1==_0x105190[_0xcedb('0xfb')]&&_0x222eb0[0x0]['end']['isEqual'](_0x105190[0x0]['start']),_0x444033=(_0x1e9ed1,_0x3f0a3d,_0x3d0d7c,_0x557c7b)=>xt(_0x1e9ed1,_0x3f0a3d,_0x3d0d7c,_0x557c7b,this[_0xcedb('0x11a')])?[_0x1e9ed1,_0x3f0a3d]:xt(_0x3f0a3d,_0x1e9ed1,_0x557c7b,_0x3d0d7c,this[_0xcedb('0x11a')])?[_0x3f0a3d,_0x1e9ed1]:null;this[_0xcedb('0xfa')]['set'](_0xcedb('0x8c'),_0x9ba042),this[_0xcedb('0xfa')][_0xcedb('0x11b')](_0xcedb('0x48'),_0x3e3180),this[_0xcedb('0xfa')]['set']('insertion:join',_0x428e54),this[_0xcedb('0xfa')][_0xcedb('0x11b')](_0xcedb('0x2f'),_0x444033),this['_defaultCallbacks']['set']('deletion:accept',_0x3e3180),this[_0xcedb('0xfa')][_0xcedb('0x11b')](_0xcedb('0xa0'),_0x9ba042),this[_0xcedb('0xfa')]['set'](_0xcedb('0x2d'),_0x428e54),this['_defaultCallbacks'][_0xcedb('0x11b')](_0xcedb('0x129'),_0x444033),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatInline:accept',_0x57ae2d),this['_defaultCallbacks'][_0xcedb('0x11b')](_0xcedb('0xd3'),_0x9ba042),this['_defaultCallbacks'][_0xcedb('0x11b')](_0xcedb('0xc8'),_0x428e54),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatInline:chain',_0x9ba042),this[_0xcedb('0xfa')]['set']('formatBlock:accept',_0x57ae2d),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatBlock:discard',_0x9ba042),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatBlock:join',_0x428e54),this[_0xcedb('0xfa')][_0xcedb('0x11b')]('formatBlock:chain',_0x9ba042);}}function Bt(_0xb04695,_0x53c22b,_0x6e3bd6){for(const _0x40fdb3 of _0x53c22b[_0xcedb('0x2c')][_0xcedb('0x15')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x40fdb3['root']==_0x40fdb3)return!0x1;if(!_0x6e3bd6[_0xcedb('0x83')](_0x40fdb3))return!0x1;if(_0xb04695[_0xcedb('0x9c')](_0x40fdb3)||_0xb04695[_0xcedb('0xab')](_0x40fdb3))return!0x0;}return!0x1;}function _t(_0x432da0){return _0x432da0[_0xcedb('0x9e')][_0xcedb('0x2c')]==_0x432da0['start'][_0xcedb('0x3f')]&&_0x432da0[_0xcedb('0x9e')][_0xcedb('0x86')];}function Mt(_0x508279,_0x50985d,_0x34dfb5,_0x2e7555){const _0x2ee84e=_0x3a7325=>!_0x3a7325[_0xcedb('0x47')]['is']('$textProxy')&&!_0x2e7555[_0xcedb('0x9c')](_0x3a7325[_0xcedb('0x47')]),_0x46e7bb=_0x508279[_0xcedb('0x1a')]['getLastMatchingPosition'](_0x2ee84e),_0x175cdd=_0x508279[_0xcedb('0x9e')][_0xcedb('0x107')](_0x2ee84e,{'direction':_0xcedb('0x10e')});return(!_0x508279[_0xcedb('0x1a')][_0xcedb('0xe8')](_0x46e7bb)||!_0x508279[_0xcedb('0x9e')][_0xcedb('0xe8')](_0x175cdd))&&(_0x46e7bb[_0xcedb('0x10f')](_0x175cdd)?_0x34dfb5[_0xcedb('0xa5')](_0x50985d,{'range':_0x34dfb5['createRange'](_0x46e7bb,_0x175cdd)}):_0x34dfb5[_0xcedb('0xc7')](_0x50985d),!0x0);}function $t(_0xe17898){return _0x353f62(_0xe17898);}function Nt(_0x11cb3c){const _0x52fd81=_0x11cb3c[_0xcedb('0x1a')][_0xcedb('0x3f')];return _0x52fd81&&_0x52fd81['is']('element');}function Rt(_0x18ee99,_0x1a1798){const _0x38684c=_0x1a1798[_0xcedb('0x6a')][_0xcedb('0x9c')](_0x18ee99)||_0x1a1798[_0xcedb('0x6a')][_0xcedb('0xc3')](_0x18ee99);return _0x1a1798[_0xcedb('0xf0')](_0x1a1798[_0xcedb('0x8b')](_0x18ee99,_0xcedb('0x104')),_0x38684c?_0x1a1798[_0xcedb('0x59')](_0x18ee99):_0x1a1798[_0xcedb('0x8b')](_0x18ee99,'end'));}function xt(_0x40fb74,_0x102da7,_0x6b2537,_0xbc7b65,_0x47d75e){if(_0x6b2537[_0xcedb('0x9e')][_0xcedb('0xe8')](_0xbc7b65['start']))return!0x0;if(_0x40fb74[_0xcedb('0x10')]!=_0x102da7[_0xcedb('0x10')])return!0x1;if(!_0x6b2537[_0xcedb('0x9e')][_0xcedb('0xd9')](_0xbc7b65[_0xcedb('0x1a')]))return!0x1;const _0x393a94=_0x47d75e[_0xcedb('0xf0')](_0x6b2537[_0xcedb('0x9e')],_0xbc7b65[_0xcedb('0x1a')])[_0xcedb('0x50')]();for(const _0x1175b3 of _0x393a94)if([_0xcedb('0x60'),_0xcedb('0x33')][_0xcedb('0x1d')](_0x1175b3['type'])&&_0x47d75e['schema'][_0xcedb('0xab')](_0x1175b3['item']))return!0x1;return!0x0;}
|
|
23
|
+
const _0x268f=['isEqual','enableCommand','deleteContent','isIntersectingWithRange','group','change','track-changes-suggestion-data-mismatch','removeMarker','getWalker','deletion','getMarkers','isTouching','consume','track-changes-user-not-found','isAtEnd','_getExternalAuthor','getChanges','suggestionChanged','options','insertion','containsRangeInObject','author','addComment','subType','track-changes-adapter-already-set','_onDiscard','_defaultCallbacks','length','_trackFormatChanges','rootName','_suggestionFactory','addRange','rejected','authorName','_addSuggestionMarker','removeComment','low','_findSuggestions','formatInline:discard','getShiftedBy','_suggestions','acceptAllSuggestions','discard','formatInline:accept','_commentsRepository','_mergeNestedSuggestions','getChangedMarkers','hasCommentThread','join','oldRange','isAfter','commentThread','multipleBlocks','getRanges','high','stopListening','originalSuggestionId','deletion:chain','Users','_registerDefaultCallbacks','normal','_joinSuggestions','insertContent','createSelection','then','_getAuthorFromId','insertion:discard','fire','discardAllSuggestions','notReady','collaboration.channelId','execute','hasSuggestion','move','insertion:','deletion:discard','editor','external:','setAttribute','createPositionBefore','schema','nodeBefore','getRange','removeMarker:suggestion:formatBlock','selection','$graveyard','registerPostFixer','getAttribute','getLastMatchingPosition','nodeAfter','after','start','setSelection','fetchCommentThread','getAncestors','data-suggestion','createdAt','addClass','createPositionAfter','PendingActions','suggestion-type','authoredAt','rethrowUnexpectedError','isObject','CommentsRepository','enableReadOnlyMode','discardSuggestion','map','registerCustomCallback','dataDowncast','dataReady','formatBlock:discard','get','locale','some','hasComments','getFirstRange','init','createRange','createRangeIn','before','_suggestionState','isInsideObject','_cutOutSuggestionMarker','suggestionUnloaded','formatBlock','updateSuggestion','includes','createElement','toJSON','creator','size','_getSuggestionData','batch','widget','never','splice','isCollapsed','formatInline:chain','markerToHighlight','define','getAllAdjacentSuggestions','suggestion','moveTargetPosition','$textProxy','plugins','forceDefaultExecution','getFirstMarker','values','@external','formatBlock:join','ready','ck-suggestion-marker--active','removed','position','_enabledCommands','highest','markerToData','formatBlock:','add','commands','markers','mapper','formatBlock:chain','howMany','bindElementToMarker','isUndo','_addThreadToSuggestion','addHighlight','_customCallbacks','containsItem','markInsertion','dataToMarker','value','markDeletion','update:suggestion','document','parent','set','ck-suggestion-marker-','markerReady','isDocumentOperation','root','elementEnd','adapter','isExternal','enqueueChange','_handleNewSuggestionMarker','fromCharCode','getIntersection','_setSuggestionData','conversion','ck-suggestion-marker-formatBlock','addSuggestionData','ck-suggestion-marker','previous','isAtStart','remove','sort','splitPosition','type','isRemovable','next','_setSuggestionRange','addUser','from','removeMarkers','item','model','config','isLimit','markMultiRangeInsertion','upcast','split','editingDowncast','insertion:accept','setTo','every','_saved','getItems','accepted','chain','insertion:chain','applyOperation','range','documentSelection','formatGroupId','for','createPositionAt','_splitMarkerName','element','getNearestSelectionRange','_isForcedDefaultExecutionBlock','marker-count','catch','formatInline','getMultiRangeId','delete','showSuggestionHighlights','consumable','isNextTo','_removeSuggestion','_breakSuggestionMarker','insert','push','trackChanges.mergeNestedSuggestions','name','return','data','writer','listenTo','_adapter','getCustomProperty','isBlock','isOwn','markBlockFormat','_updateSuggestionData','addCommentThread','head','filter','formatBlock:accept','newRange','getSuggestion','isBefore','change:data','addSuggestion','skipNestingCheck','discardSelectedSuggestions','isInContent','default','suggestionLoaded','end','_createSuggestion','acceptSelectedSuggestions','stop','isMultiRange','trackChanges.trackFormatChanges','error-saving-suggestion-data-suggestion-discarded','differ','acceptSuggestion','trackChangesCommand','_model','accept','attributes','addMarker:suggestion:formatBlock','has','containsRange','backward','updateMarker','elementToElement','fromRange','detach','getSuggestions','always','suggestion:','multi','isLocal','buildSuggestion','formatInline:','_refreshSuggestionsChain','editing','activeMarkers','markerName','_descriptionFactory','trackChanges','getUser','getSuggestionCallback','deletion:','_checkSuggestionCorrectness','_joinWithAdjacentSuggestions'];(function(_0x1dc25b,_0x268f2e){const _0x4e9b2d=function(_0x3b805d){while(--_0x3b805d){_0x1dc25b['push'](_0x1dc25b['shift']());}};_0x4e9b2d(++_0x268f2e);}(_0x268f,0xe1));const _0x4e9b=function(_0x1dc25b,_0x268f2e){_0x1dc25b=_0x1dc25b-0x0;let _0x4e9b2d=_0x268f[_0x1dc25b];return _0x4e9b2d;};import{Plugin as _0x5cfeb3,PendingActions as _0x126477}from'ckeditor5/src/core';import{LiveRange as _0x5e3949}from'ckeditor5/src/engine';import{CKEditorError as _0x225a88,uid as _0x4fbab8,priorities as _0x18fc4d,logWarning as _0x37bdeb}from'ckeditor5/src/utils';import{toWidget as _0x2da679}from'ckeditor5/src/widget';import{Users as _0x350619,hashObject as _0x305c8b}from'ckeditor5-collaboration/src/collaboration-core';import _0x496b9b from'./commands/trackchangescommand';import _0x5a576d from'./commands/acceptsuggestioncommand';import _0x157d55 from'./commands/discardsuggestioncommand';import _0x4ad869 from'./commands/executeonallsuggestionscommand';import _0x341c88 from'./commands/executeonselectedsuggestionscommand';import _0x2b860e from'./suggestion';import _0x15b0ef from'./suggestiondescriptionfactory';import _0x4ad944 from'./integrations/alignment';import _0x575592 from'./integrations/basicstyles';import _0x347130 from'./integrations/blockquote';import _0x4ad339 from'./integrations/ckbox';import _0x40cf46 from'./integrations/codeblock';import _0x1cdd72 from'./integrations/comments';import _0x22b136 from'./integrations/deletecommand';import _0x5ef35d from'./integrations/documentlist';import _0x34beb1 from'./integrations/entercommand';import _0x586877 from'./integrations/findandreplace';import _0x4a030b from'./integrations/font';import _0x49627a from'./integrations/formatpainter';import _0x22e833 from'./integrations/heading';import _0x223046 from'./integrations/highlight';import _0x147d3f from'./integrations/horizontalline';import _0x56a0fc from'./integrations/htmlembed';import _0x565f20 from'./integrations/image';import _0x5e23fc from'./integrations/imagereplace';import _0x583d5e from'./integrations/importword';import _0x2412ab from'./integrations/indent';import _0x1a289e from'./integrations/inputcommand';import _0x184872 from'./integrations/link';import _0x1dff40 from'./integrations/list';import _0x31b5b2 from'./integrations/listproperties';import _0x47d4a7 from'./integrations/mediaembed';import _0x1b49cb from'./integrations/mention';import _0x58c3bb from'./integrations/pagebreak';import _0x21b8d9 from'./integrations/paragraph';import _0x268dd0 from'./integrations/removeformat';import _0x47dd82 from'./integrations/restrictededitingmode';import _0x49532e from'./integrations/shiftentercommand';import _0x5036f1 from'./integrations/standardeditingmode';import _0x425480 from'./integrations/style';import _0x58f85b from'./integrations/table';import _0x5d36aa from'./integrations/tablemergesplit';import _0x52ccb9 from'./integrations/tableheadings';import _0x3485df from'./integrations/tableclipboard';import _0x3e859a from'./integrations/tablecolumnresize';import _0x10bc77 from'./integrations/template';import _0x216b6b from'./integrations/tableofcontents';import _0x1e4ec3 from'./integrations/title';import _0x333a76 from'./integrations/undo';import{getTranslation as _0x2d35a6}from'./utils/common-translations';import _0x1fca42 from'./integrations/tablecaption';import _0x420746 from'./integrations/documentlistproperties';import _0x343e3c from'./integrations/tableproperties';export default class p extends _0x5cfeb3{static get['requires'](){return[_0x4e9b('0xbd'),_0x350619,_0x126477,_0x4ad944,_0x575592,_0x347130,_0x4ad339,_0x40cf46,_0x1cdd72,_0x22b136,_0x5ef35d,_0x420746,_0x34beb1,_0x586877,_0x4a030b,_0x49627a,_0x22e833,_0x223046,_0x147d3f,_0x56a0fc,_0x565f20,_0x5e23fc,_0x583d5e,_0x2412ab,_0x1a289e,_0x184872,_0x1dff40,_0x31b5b2,_0x47d4a7,_0x1b49cb,_0x58c3bb,_0x21b8d9,_0x268dd0,_0x47dd82,_0x49532e,_0x5036f1,_0x425480,_0x58f85b,_0x5d36aa,_0x52ccb9,_0x1fca42,_0x3485df,_0x3e859a,_0x216b6b,_0x343e3c,_0x10bc77,_0x1e4ec3,_0x333a76];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x4b3a0d){function _0x554931(_0x3ee72f){return _0x3ee72f[_0x4e9b('0xc0')](_0xb28f55=>String[_0x4e9b('0x111')](_0xb28f55))['join']('');}super(_0x4b3a0d),this['set'](_0x4e9b('0x4c'),[]),this['on']('change:activeMarkers',(_0x1d8c3a,_0x240b8c,_0x2d54c3,_0x58e9e1)=>{this[_0x4e9b('0x38')]['change'](()=>{for(const _0x14483a of[..._0x58e9e1,..._0x2d54c3])this[_0x4e9b('0x38')][_0x4e9b('0xf6')][_0x4e9b('0x3c')](_0x14483a)&&_0x4b3a0d[_0x4e9b('0x4b')]['reconvertMarker'](_0x14483a);});}),this[_0x4e9b('0x4e')]=new _0x15b0ef(this['editor'][_0x4e9b('0x125')]['schema'],this['editor'][_0x4e9b('0xc6')]),this[_0x4e9b('0x1a')]=null,this['_suggestionFactory']=new Dt(this[_0x4e9b('0xa1')]),this[_0x4e9b('0x7d')]=new Map(),this[_0x4e9b('0x81')]=_0x4b3a0d[_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0xbd')),this[_0x4e9b('0xf0')]=new Set(),this[_0x4e9b('0x38')]=this[_0x4e9b('0xa1')][_0x4e9b('0x125')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xe1')](_0x4e9b('0x33'),_0x4e9b('0x2c')),this[_0x4e9b('0x71')]=_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xc5')]('trackChanges.trackFormatChanges'),_0x4b3a0d['config']['define'](_0x4e9b('0x14'),!0x0),this['_mergeNestedSuggestions']=_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xc5')](_0x4e9b('0x14')),this['trackChangesCommand']=new _0x496b9b(_0x4b3a0d,this[_0x4e9b('0xf0')]),this[_0x554931([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x554931([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x36]);}[_0x4e9b('0xca')](){const _0x5aad04=this['editor'];_0x5aad04['conversion']['for'](_0x4e9b('0x12b'))[_0x4e9b('0xe0')]({'model':_0x4e9b('0xe3'),'view':_0x38b36c=>{const {id:_0x49f7a4,type:_0x2f2b48}=this[_0x4e9b('0x4')](_0x38b36c[_0x4e9b('0x4d')]),_0x46b85c=[_0x4e9b('0x117'),_0x4e9b('0x108')+_0x2f2b48];let _0x208465=0xbb8;return this[_0x4e9b('0x4c')][_0x4e9b('0xd4')](_0x38b36c['markerName'])&&(_0x46b85c[_0x4e9b('0x13')](_0x4e9b('0xed')),_0x208465=0xbc2),_0x4e9b('0x5e')==_0x2f2b48&&(_0x208465+=0x5),{'classes':_0x46b85c,'attributes':{'data-suggestion':_0x49f7a4},'priority':_0x208465};}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('dataDowncast')[_0x4e9b('0xf4')](_0x437bb8=>{_0x437bb8['on']('addMarker:suggestion',(_0x4382e0,_0x4742c,_0x442343)=>{if(!_0x442343[_0x4e9b('0x67')][_0x4e9b('0xd')])return;const _0x4ed09f=_0x4742c[_0x4e9b('0x124')];if(!_0x4ed09f)return;const _0x2029fd=_0x442343[_0x4e9b('0xf7')]['toViewElement'](_0x4ed09f);_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xa5')][_0x4e9b('0xbc')](_0x4ed09f)&&_0x2029fd&&!_0x2029fd[_0x4e9b('0x1b')](_0x4e9b('0xdb'))&&_0x2029fd['is']('containerElement')&&_0x2da679(_0x2029fd,_0x442343[_0x4e9b('0x18')]);},{'priority':_0x4e9b('0x8b')});}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0xc2'))[_0x4e9b('0xe0')]({'model':_0x4e9b('0xe3'),'view':(_0x4dbb63,_0x21cf31)=>{if(!_0x21cf31['options']['showSuggestionHighlights'])return null;const {type:_0x56e9b7}=this['_splitMarkerName'](_0x4dbb63[_0x4e9b('0x4d')]);return{'classes':[_0x4e9b('0x117'),_0x4e9b('0x108')+_0x56e9b7],'priority':0xbb8};}});const _0x41bbe3=({showActiveMarkers:_0x25f349=!0x0}={})=>(_0x36f8ba,_0xa8a740,_0x158218)=>{if(!_0xa8a740[_0x4e9b('0x124')])return;if(_0xa8a740[_0x4e9b('0x124')]['is'](_0x4e9b('0xa9')))return void _0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0xa8a740['item'],_0x36f8ba[_0x4e9b('0x15')]);const _0x1f4a32=_0x158218[_0x4e9b('0xf7')]['toViewElement'](_0xa8a740[_0x4e9b('0x124')]);if(!(_0xa8a740['item']['is'](_0x4e9b('0x5'))&&_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xa5')][_0x4e9b('0x1c')](_0xa8a740[_0x4e9b('0x124')])&&!_0x1f4a32[_0x4e9b('0x1b')]('addHighlight')))return;const {id:_0xf49efb}=this[_0x4e9b('0x4')](_0xa8a740[_0x4e9b('0x4d')]);_0x158218[_0x4e9b('0x18')]['addClass']([_0x4e9b('0x117'),_0x4e9b('0x115')],_0x1f4a32),_0x158218['writer'][_0x4e9b('0xa3')](_0x4e9b('0xb4'),_0xf49efb,_0x1f4a32),_0x158218[_0x4e9b('0xf7')][_0x4e9b('0xfa')](_0x1f4a32,_0xa8a740[_0x4e9b('0x4d')]),_0x25f349&&(this[_0x4e9b('0x4c')][_0x4e9b('0xd4')](_0xa8a740[_0x4e9b('0x4d')])?_0x158218[_0x4e9b('0x18')][_0x4e9b('0xb6')](_0x4e9b('0xed'),_0x1f4a32):_0x158218['writer']['removeClass']('ck-suggestion-marker--active',_0x1f4a32));for(const _0x49b0d8 of _0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcc')](_0xa8a740[_0x4e9b('0x124')])[_0x4e9b('0x130')]())_0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0x49b0d8,_0x36f8ba[_0x4e9b('0x15')]);_0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0xa8a740[_0x4e9b('0x124')],_0x36f8ba[_0x4e9b('0x15')]);};_0x5aad04[_0x4e9b('0x114')]['for']('dataDowncast')[_0x4e9b('0xf4')](_0x167f04=>{_0x167f04['on'](_0x4e9b('0x3b'),(_0x22b42f,_0x1a79bc,_0x15be90)=>{_0x15be90['options'][_0x4e9b('0xd')]&&_0x41bbe3({'showActiveMarkers':!0x1})(_0x22b42f,_0x1a79bc,_0x15be90);},{'priority':_0x4e9b('0xf1')});}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('dataDowncast')[_0x4e9b('0xf2')]({'model':'suggestion','view':(_0x499df8,_0xceb4cc)=>_0xceb4cc['options'][_0x4e9b('0xd')]?null:{'group':_0x4e9b('0xe3'),'name':_0x499df8['substr'](0xb)}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0x129'))[_0x4e9b('0x40')]({'view':{'name':_0x4e9b('0xe3'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4fda0c,{writer:_0x165fba})=>{let _0x5938b9=_0x4e9b('0x45')+_0x4fda0c['getAttribute'](_0x4e9b('0xb9'))+':'+_0x4fda0c[_0x4e9b('0xac')]('id');return _0x4fda0c['getAttribute'](_0x4e9b('0x8'))&&(_0x5938b9+=':'+_0x4fda0c['getAttribute'](_0x4e9b('0x8'))),_0x165fba[_0x4e9b('0xd5')]('$marker',{'data-name':_0x5938b9});}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('upcast')[_0x4e9b('0x101')]({'view':_0x4e9b('0xe3')}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0x12b'))['add'](_0x1b9677=>{_0x1b9677['on'](_0x4e9b('0x3b'),_0x41bbe3(),{'priority':_0x4e9b('0x8b')});}),_0x5aad04['conversion'][_0x4e9b('0x2')](_0x4e9b('0x12b'))['add'](_0x2fa0e9=>{_0x2fa0e9['on'](_0x4e9b('0xa8'),(_0xbbb234,_0x5d0f3a,_0x5623d1)=>{const _0xcd93a7=_0x5623d1['mapper']['markerNameToElements'](_0x5d0f3a[_0x4e9b('0x4d')]);if(_0xcd93a7)for(const _0x1e601d of _0xcd93a7)_0x1e601d[_0x4e9b('0x1b')](_0x4e9b('0xfd'))||(_0x5623d1[_0x4e9b('0x18')]['removeClass']([_0x4e9b('0x117'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e601d),_0x5623d1['writer']['removeAttribute'](_0x4e9b('0xb4'),_0x1e601d),_0x5623d1[_0x4e9b('0xf7')]['unbindElementFromMarkerName'](_0x1e601d,_0x5d0f3a['markerName']));},{'priority':_0x4e9b('0x8b')});}),_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')][_0x4e9b('0xab')](_0x4f430a=>{let _0x1e5ce7=!0x1;const _0x3b8db2=Array['from'](_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')]['differ'][_0x4e9b('0x83')]()),_0x5c594a=new Set();for(const {name:_0x43715c,data:_0x24f627}of _0x3b8db2){const {group:_0x345623,type:_0x5f5c92,id:_0x179a8c}=this['_splitMarkerName'](_0x43715c);if(_0x4e9b('0xe3')!==_0x345623)continue;const _0x28cc92=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x179a8c);if(null!=_0x24f627[_0x4e9b('0x24')]){'formatInline'==_0x5f5c92&&(_0x1e5ce7=_0x1e5ce7||Mt(_0x24f627['newRange'],_0x43715c,_0x4f430a,_0x5aad04['model']['schema']));if(_0x24f627[_0x4e9b('0x24')][_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x24f627[_0x4e9b('0x24')]['root']['rootName']||_0x4e9b('0xd2')==_0x5f5c92&&!Nt(_0x24f627[_0x4e9b('0x24')])||_0x4e9b('0x5e')==_0x5f5c92&&!(!_t(_0x5c61e4=_0x24f627[_0x4e9b('0x24')])&&!function(_0x508deb){return _0x508deb[_0x4e9b('0xb0')][_0x4e9b('0x106')]==_0x508deb[_0x4e9b('0x2e')][_0x4e9b('0xa6')]&&_0x508deb[_0x4e9b('0xb0')]['isAtEnd'];}(_0x5c61e4)))_0x4f430a['removeMarker'](_0x43715c),_0x1e5ce7=!0x0;else{if(!_0x28cc92||!_0x28cc92[_0x4e9b('0x2b')])continue;_0x5c594a[_0x4e9b('0xf4')](_0x28cc92);}}}var _0x5c61e4;return _0x5c594a[_0x4e9b('0xd8')]>0x0&&(_0x1e5ce7=!!this[_0x4e9b('0x54')](_0x5c594a)||_0x1e5ce7),_0x1e5ce7;}),_0x5aad04['model'][_0x4e9b('0x105')][_0x4e9b('0xab')](_0x200a51=>{let _0x14a215=!0x1;for(const _0x2fa598 of _0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')][_0x4e9b('0x35')][_0x4e9b('0x65')]()){if('insert'!=_0x2fa598[_0x4e9b('0x11d')])continue;const _0x491f42=_0x2fa598[_0x4e9b('0xef')][_0x4e9b('0x7c')](_0x2fa598[_0x4e9b('0x70')]);if(_0x491f42[_0x4e9b('0x63')])for(const _0x5b3a5d of this[_0x4e9b('0x7d')][_0x4e9b('0xe9')]()){if(_0x5b3a5d[_0x4e9b('0x32')]||!_0x5b3a5d[_0x4e9b('0x2b')])continue;if(_0x4e9b('0xd2')!=_0x5b3a5d['type'])continue;const _0x266b39=_0x5b3a5d[_0x4e9b('0xc9')]();if(_0x266b39[_0x4e9b('0xb0')][_0x4e9b('0x106')]!=_0x266b39[_0x4e9b('0x2e')][_0x4e9b('0x106')]&&_0x266b39['end'][_0x4e9b('0x55')](_0x2fa598[_0x4e9b('0xef')])){const _0x6fdcd8=_0x5aad04['model']['createRange'](_0x266b39[_0x4e9b('0xb0')],_0x491f42);_0x200a51['updateMarker'](_0x5b3a5d['getFirstMarker'](),{'range':_0x6fdcd8}),_0x14a215=!0x0;}}}return _0x14a215;}),_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xf6')]['on'](_0x4e9b('0x104'),(_0x35f7fe,_0x4eba93,_0x42b930)=>{if(null==_0x42b930){const {id:_0x14aa91}=this[_0x4e9b('0x4')](_0x4eba93[_0x4e9b('0x15')]),_0x548012=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x14aa91);_0x548012&&_0x548012['addMarkerName'](_0x4eba93[_0x4e9b('0x15')]);}}),_0x5aad04['model']['document']['on'](_0x4e9b('0x27'),()=>{const _0x1a98db=Array['from'](_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')]['differ'][_0x4e9b('0x83')]())[_0x4e9b('0x22')](_0x457300=>_0x4e9b('0xe3')===this[_0x4e9b('0x4')](_0x457300[_0x4e9b('0x15')])[_0x4e9b('0x59')]);if(0x0===_0x1a98db[_0x4e9b('0x70')])return;_0x1a98db[_0x4e9b('0x11b')]((_0x1ddaa4,_0x5b179c)=>{const _0x31e352=_0x1ddaa4[_0x4e9b('0x17')][_0x4e9b('0x86')],_0x27888c=_0x5b179c[_0x4e9b('0x17')]['oldRange'];return null===_0x31e352&&null===_0x27888c?0x0:null===_0x31e352&&null!==_0x27888c?-0x1:null!==_0x31e352&&null===_0x27888c?0x1:_0x31e352[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x27888c[_0x4e9b('0xb0')])?-0x1:0x1;});const _0x25a8b1=new Set(),_0x2597e2=new Set();for(const {name:_0x339e32,data:_0x22e148}of _0x1a98db){const {id:_0x356c63}=this[_0x4e9b('0x4')](_0x339e32);if(null===_0x22e148['oldRange']){const _0xa3cd88=this['_handleNewSuggestionMarker'](_0x339e32);_0x2597e2[_0x4e9b('0xf4')](_0xa3cd88);}else{const _0x53fd10=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x356c63);null!==_0x22e148['newRange']||_0x53fd10['isInContent']?(_0x25a8b1[_0x4e9b('0xf4')](_0x53fd10[_0x4e9b('0x21')]),_0x2597e2[_0x4e9b('0xf4')](_0x53fd10)):this['_removeSuggestion'](_0x53fd10);}}_0x2597e2['size']>0x0&&this[_0x4e9b('0x4a')](_0x2597e2);for(const _0x407bc0 of _0x25a8b1)this[_0x4e9b('0x98')](_0x4e9b('0x66'),_0x407bc0);}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x134'),(_0x19f019,_0xb2c9bb)=>{const _0xc43970=_0xb2c9bb[0x0];if(!this['_suggestions'][_0x4e9b('0xd8')])return;if(!_0xc43970[_0x4e9b('0x10a')])return;if(_0xc43970['batch'][_0x4e9b('0xfb')]||!_0xc43970[_0x4e9b('0xda')][_0x4e9b('0x47')])return;let _0x402e3f,_0x4a0d46;switch(_0xc43970[_0x4e9b('0x11d')]){case _0x4e9b('0x12'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0xef')]),_0x4a0d46=_0x402e3f['getShiftedBy'](_0xc43970[_0x4e9b('0xf9')]);break;case _0x4e9b('0x12a'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0x11c')]),_0x4a0d46=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0xe4')]);break;case _0x4e9b('0x9e'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970['targetPosition']),_0x4a0d46=_0x402e3f['getShiftedBy'](_0xc43970[_0x4e9b('0xf9')]);break;default:return;}const _0x1fc660=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcb')](_0x402e3f,_0x4a0d46);_0x5aad04['model'][_0x4e9b('0x5a')](()=>{for(const {suggestion:_0x3d4f48,meta:_0x9cdd05}of this[_0x4e9b('0x7a')](_0x1fc660)){if(_0x3d4f48[_0x4e9b('0x32')])continue;if(_0x4e9b('0xa')==_0x3d4f48[_0x4e9b('0x11d')])continue;const _0x294aa8=_0x3d4f48[_0x4e9b('0x17')]&&_0x3d4f48[_0x4e9b('0x17')]['multipleBlocks'];('formatBlock'!=_0x3d4f48['type']||'split'==_0xc43970['type']&&!_0x294aa8)&&(_0x9cdd05[_0x4e9b('0x69')]||_0x4e9b('0x68')==_0x3d4f48[_0x4e9b('0x11d')]&&_0x9cdd05[_0x4e9b('0x1d')]||_0x3d4f48[_0x4e9b('0xc9')]()[_0x4e9b('0x3d')](_0x1fc660)&&this[_0x4e9b('0x11')](_0x3d4f48,_0x402e3f,_0x4a0d46));}});},{'priority':'lowest'}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x57'),(_0x485eb4,_0x363520)=>{const _0x254d98=_0x363520[0x0],_0x9e18f=_0x363520[0x1];if(_0x9e18f&&_0x9e18f[_0x4e9b('0xe7')])return;if(this[_0x4e9b('0x7')])return;if(!this[_0x4e9b('0x37')][_0x4e9b('0x102')])return;if(_0x254d98[_0x4e9b('0xde')])return;const _0x29dc74=_0x5aad04[_0x4e9b('0x125')]['schema'],{start:_0x25d12f,end:_0x295a39}=_0x254d98[_0x4e9b('0xc9')](),_0x53ca46=_0x25d12f[_0x4e9b('0xae')]&&_0x29dc74[_0x4e9b('0x127')](_0x25d12f['nodeAfter'])?null:_0x29dc74[_0x4e9b('0x6')](_0x25d12f,'forward'),_0x40740b=_0x295a39['nodeBefore']&&_0x29dc74[_0x4e9b('0x127')](_0x295a39[_0x4e9b('0xa6')])?null:_0x29dc74[_0x4e9b('0x6')](_0x295a39,_0x4e9b('0x3e')),_0x430b8c=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcb')](_0x53ca46?_0x53ca46[_0x4e9b('0xb0')]:_0x25d12f,_0x40740b?_0x40740b[_0x4e9b('0x2e')]:_0x295a39);_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x5a')](_0x27f4d7=>{this[_0x4e9b('0x103')](_0x430b8c);const _0x247336=_0x5aad04['model'][_0x4e9b('0xa5')][_0x4e9b('0x6')](_0x430b8c[_0x4e9b('0xb0')]);_0x254d98['is'](_0x4e9b('0x0'))?_0x27f4d7[_0x4e9b('0xb1')](_0x247336):_0x254d98[_0x4e9b('0x12d')](_0x247336);}),_0x485eb4[_0x4e9b('0x31')]();},{'priority':_0x18fc4d[_0x4e9b('0x91')]+0xa}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x93'),(_0x50f56d,_0x5cfe28)=>{const _0x381d46=_0x5cfe28[_0x5cfe28[_0x4e9b('0x70')]-0x1];_0x381d46&&_0x381d46[_0x4e9b('0xe7')]||this['_isForcedDefaultExecutionBlock']||this[_0x4e9b('0x37')][_0x4e9b('0x102')]&&(_0x5aad04['model'][_0x4e9b('0x5a')](()=>{let _0x1a4ed6=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x93')](_0x5cfe28[0x0],_0x5cfe28[0x1],_0x5cfe28[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a4ed6)return;_0x50f56d[_0x4e9b('0x16')]=_0x1a4ed6['clone']();const _0x2147a8=_0x1a4ed6[_0x4e9b('0x2e')][_0x4e9b('0xa6')],_0x55b966=_0x5aad04['model'][_0x4e9b('0xa5')];_0x2147a8&&_0x55b966[_0x4e9b('0x1c')](_0x2147a8)&&!_0x55b966[_0x4e9b('0xbc')](_0x2147a8)&&(_0x1a4ed6=_0x5aad04['model'][_0x4e9b('0xcb')](_0x1a4ed6[_0x4e9b('0xb0')],_0x5aad04['model'][_0x4e9b('0x3')](_0x2147a8,_0x4e9b('0x2e')))),this[_0x4e9b('0x100')](_0x1a4ed6);}),_0x50f56d[_0x4e9b('0x31')]());},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0xa1')]['commands'][_0x4e9b('0xf4')](_0x4e9b('0x4f'),this['trackChangesCommand']),this[_0x4e9b('0x56')](_0x4e9b('0x4f'));const _0xb0a828=new _0x5a576d(_0x5aad04,this['_suggestions']);_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')](_0x4e9b('0x36'),_0xb0a828),this[_0x4e9b('0x56')](_0x4e9b('0x36'));const _0x58c22c=new _0x157d55(_0x5aad04,this[_0x4e9b('0x7d')]);_0x5aad04[_0x4e9b('0xf5')]['add'](_0x4e9b('0xbf'),_0x58c22c),this[_0x4e9b('0x56')](_0x4e9b('0xbf')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('acceptAllSuggestions',new _0x4ad869(_0x5aad04,_0xb0a828,this[_0x4e9b('0x7d')])),this[_0x4e9b('0x56')](_0x4e9b('0x7e')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')](_0x4e9b('0x99'),new _0x4ad869(_0x5aad04,_0x58c22c,this['_suggestions'])),this[_0x4e9b('0x56')](_0x4e9b('0x99')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('acceptSelectedSuggestions',new _0x341c88(_0x5aad04,_0xb0a828,this[_0x4e9b('0x7d')])),this['enableCommand'](_0x4e9b('0x30')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('discardSelectedSuggestions',new _0x341c88(_0x5aad04,_0x58c22c,this[_0x4e9b('0x7d')])),this[_0x4e9b('0x56')](_0x4e9b('0x2a'));const _0x553151=_0x5aad04[_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0xbd'));this[_0x4e9b('0x19')](_0x553151,_0x4e9b('0x6b'),(_0x4f55f6,{threadId:_0x18548e})=>{const _0x4e5f07=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x18548e);_0x4e5f07&&_0x4e5f07['commentThread']&&0x1===_0x4e5f07[_0x4e9b('0x88')][_0x4e9b('0x70')]&&this[_0x4e9b('0x1f')](_0x18548e,{'hasComments':!0x0});},{'priority':_0x4e9b('0x79')}),this[_0x4e9b('0x19')](_0x553151,_0x4e9b('0x78'),(_0x3cca38,{threadId:_0x21b7aa})=>{const _0x57a439=this['_suggestions'][_0x4e9b('0xc5')](_0x21b7aa);_0x57a439&&_0x57a439[_0x4e9b('0x88')]&&!_0x57a439['commentThread'][_0x4e9b('0x70')]&&this[_0x4e9b('0x1f')](_0x21b7aa,{'hasComments':!0x1});},{'priority':_0x4e9b('0x79')});}set[_0x4e9b('0x10d')](_0x43fca8){if(this[_0x4e9b('0x1a')])throw new _0x225a88(_0x4e9b('0x6d'),this);this[_0x4e9b('0x1a')]=_0x43fca8;}get[_0x4e9b('0x10d')](){return this[_0x4e9b('0x1a')];}['getSuggestions']({skipNotAttached:_0x486bb3=!0x1,toJSON:_0x2527da=!0x1}={}){const _0x4d167d=[];for(const _0x4f1d0f of this['_suggestions'][_0x4e9b('0xe9')]())_0x486bb3&&!_0x4f1d0f[_0x4e9b('0x2b')]||_0x4d167d['push'](_0x4f1d0f);return _0x2527da?_0x4d167d['map'](_0x4c4696=>_0x4c4696[_0x4e9b('0xd6')]()):_0x4d167d;}[_0x4e9b('0x25')](_0x410a4d){const _0x1befae=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x410a4d);if(!_0x1befae)throw new _0x225a88('track-changes-suggestion-not-found',this);return _0x1befae;}[_0x4e9b('0x9d')](_0x3f7d37){return this[_0x4e9b('0x7d')][_0x4e9b('0x3c')](_0x3f7d37);}[_0x4e9b('0x116')](_0xdfe2a7){const {authorId:_0x492807,id:_0x58b2e7,attributes:_0x491376}=_0xdfe2a7,[_0xd38913,_0x38d91b]=_0xdfe2a7['type'][_0x4e9b('0x12a')](':'),_0x47ac7e=this[_0x4e9b('0x7d')]['get'](_0x58b2e7)||this[_0x4e9b('0x2f')](_0xd38913,_0x38d91b,_0x58b2e7,_0x492807,_0x491376);if(this[_0x4e9b('0xfc')](_0x47ac7e),this['_checkSuggestionCorrectness'](_0x47ac7e,_0xd38913,_0x38d91b||null,_0x492807),_0x47ac7e[_0x4e9b('0xb5')]=_0xdfe2a7[_0x4e9b('0xb5')],_0x491376&&_0x491376[_0x4e9b('0xea')]){const _0x388cb1=_0x491376[_0x4e9b('0xea')],_0x92fb6=this['_getExternalAuthor'](_0x388cb1[_0x4e9b('0x76')]);_0x47ac7e['authoredAt']=_0x388cb1['createdAt'],_0x47ac7e[_0x4e9b('0x6a')]=_0x92fb6,_0x47ac7e[_0x4e9b('0x10e')]=!0x0;}else _0x47ac7e[_0x4e9b('0xba')]=_0xdfe2a7[_0x4e9b('0xb5')];switch(_0xdfe2a7['data']&&(_0x47ac7e[_0x4e9b('0x17')]=_0xdfe2a7[_0x4e9b('0x17')]),_0xdfe2a7[_0x4e9b('0x3a')]&&(_0x47ac7e[_0x4e9b('0x3a')]=_0xdfe2a7[_0x4e9b('0x3a')]),this[_0x4e9b('0x1a')]&&this[_0x4e9b('0x1a')][_0x4e9b('0x28')]||(_0x47ac7e[_0x4e9b('0x12f')]=!0x0),this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x47ac7e)){case _0x4e9b('0x9a'):this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xc3'));break;case _0x4e9b('0x109'):_0x47ac7e[_0x4e9b('0x2b')]?(this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xec')),this['fire']('suggestionLoaded',_0x47ac7e)):this['_suggestionState'][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xee'));}return _0x47ac7e;}[_0x4e9b('0x36')](_0x487b6c){this['forceDefaultExecution'](()=>{this[_0x4e9b('0xa1')][_0x4e9b('0x125')]['change'](()=>{for(const _0x2a3813 of _0x487b6c[_0x4e9b('0xe2')]())_0x2a3813[_0x4e9b('0x39')]();});});}[_0x4e9b('0xbf')](_0x3974ee){this[_0x4e9b('0xe7')](()=>{this[_0x4e9b('0xa1')][_0x4e9b('0x125')][_0x4e9b('0x5a')](()=>{for(const _0x4537a8 of _0x3974ee['getAllAdjacentSuggestions']())_0x4537a8[_0x4e9b('0x7f')]();});});}[_0x4e9b('0x56')](_0x55f8ee,_0x8a3aa){const _0x3cb0ed=this[_0x4e9b('0xa1')][_0x4e9b('0xf5')][_0x4e9b('0xc5')](_0x55f8ee);if(!_0x3cb0ed)throw new _0x225a88('track-changes-command-not-found',this,{'commandName':_0x55f8ee});this[_0x4e9b('0xf0')]['add'](_0x3cb0ed),_0x8a3aa&&_0x3cb0ed['on']('execute',(_0x506fc7,_0x353adb)=>{this[_0x4e9b('0x37')]['value']&&(this[_0x4e9b('0x7')]||_0x353adb[_0x4e9b('0x70')]>0x0&&_0x353adb[_0x353adb[_0x4e9b('0x70')]-0x1]&&_0x353adb[_0x353adb[_0x4e9b('0x70')]-0x1][_0x4e9b('0xe7')]||(_0x8a3aa((..._0x216cab)=>_0x3cb0ed['execute'](..._0x216cab,{'forceDefaultExecution':!0x0}),..._0x353adb),_0x506fc7[_0x4e9b('0x31')]()));},{'priority':_0x4e9b('0x8b')});}[_0x4e9b('0xe7')](_0xf9eb4a){let _0x1efedf,_0xfab974;const _0x517b54=this[_0x4e9b('0x7')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1efedf=_0xf9eb4a();}catch(_0x38578c){_0xfab974=_0x38578c;}return _0x517b54||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xfab974&&_0x225a88[_0x4e9b('0xbb')](_0xfab974,this),_0x1efedf;}['markInsertion'](_0x7f068e,_0x55df49=null,_0x2a4c4e={}){if(_0x7f068e[_0x4e9b('0xde')])return null;const _0x43d971=this['editor'][_0x4e9b('0xe6')]['get']('Users')['me'];for(const {suggestion:_0xe3b505,meta:_0xa7b208}of this[_0x4e9b('0x7a')](_0x7f068e,'insertion'))if(_0xa7b208[_0x4e9b('0x1d')]){if(!_0xa7b208[_0x4e9b('0xf')]){if(!this[_0x4e9b('0x82')]&&_0xa7b208[_0x4e9b('0x69')])continue;return _0xe3b505;}if(_0x55df49==_0xe3b505[_0x4e9b('0x6c')]){const _0x4aba4c=_0xe3b505['getFirstRange']();return _0x4aba4c[_0x4e9b('0xb0')][_0x4e9b('0x55')](_0x7f068e[_0x4e9b('0x2e')])?this[_0x4e9b('0x120')](_0xe3b505,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x7f068e['start'],_0x4aba4c['end'])):this[_0x4e9b('0x120')](_0xe3b505,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x4aba4c[_0x4e9b('0xb0')],_0x7f068e[_0x4e9b('0x2e')])),_0xe3b505;}}const _0x5765d0=_0x4fbab8(),_0x342cc4=_0x43d971['id'],_0xd3b589=_0x55df49?'insertion:'+_0x55df49:'insertion',_0x2dfd19=this[_0x4e9b('0x113')]({'id':_0x5765d0,'type':_0xd3b589,'createdAt':new Date(),'authorId':_0x342cc4,'attributes':_0x2a4c4e});return this[_0x4e9b('0x77')](_0xd3b589,_0x5765d0,_0x342cc4,_0x7f068e),_0x2dfd19;}[_0x4e9b('0x128')](_0x48f3c1,_0x304604=_0x4e9b('0x46'),_0x19e442={}){const _0x51bb81=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x5a6ffd=this['_suggestionFactory'][_0x4e9b('0x51')](_0x4e9b('0x68'),_0x304604,_0x4e9b('0x85'));for(const _0x44bb6d of this[_0x4e9b('0x43')]())if(_0x44bb6d[_0x4e9b('0x6a')]['id']==_0x51bb81['id']&&_0x4e9b('0x68')==_0x44bb6d['type']&&_0x44bb6d['subType']==_0x304604&&(_0x5a6ffd(_0x44bb6d[_0x4e9b('0x8a')](),_0x48f3c1)||_0x5a6ffd(_0x48f3c1,_0x44bb6d['getRanges']()))){for(const _0x39c1f1 of _0x48f3c1)_0x44bb6d[_0x4e9b('0x74')](_0x39c1f1);return _0x44bb6d;}if(this[_0x4e9b('0x82')])for(const _0x3d781e of _0x48f3c1)for(const {suggestion:_0x1d85bc,meta:_0xebc558}of this[_0x4e9b('0x7a')](_0x3d781e,_0x4e9b('0x68'))){if(!_0xebc558[_0x4e9b('0x1d')])continue;let _0x4fd5ef=!0x0;for(const _0x359cdc of _0x1d85bc[_0x4e9b('0x8a')]())for(const _0x542ff7 of _0x48f3c1)if(!_0x359cdc['containsRange'](_0x542ff7)){_0x4fd5ef=!0x1;break;}if(_0x4fd5ef)return _0x1d85bc;}const _0x96425c=_0x4fbab8(),_0x475090=_0x51bb81['id'],_0x5bac57=_0x4e9b('0x9f')+_0x304604,_0x2dfb48=this[_0x4e9b('0x113')]({'id':_0x96425c,'type':_0x5bac57,'createdAt':new Date(),'authorId':_0x475090,'attributes':_0x19e442});for(const _0x41964d of _0x48f3c1)this[_0x4e9b('0x77')](_0x5bac57,_0x96425c,_0x475090,_0x41964d,_0x2b860e[_0x4e9b('0xb')]());return _0x2dfb48;}['markInlineFormat'](_0x5b95aa,_0x5856a9,_0x35460b=null,_0x12d425={}){if(_0x35460b=_0x35460b||$t(_0x5856a9),_0x5b95aa['isCollapsed'])return null;if(_0x4e9b('0xdc')===this['_trackFormatChanges']){const _0x10d07d=this['_suggestionFactory']['getSuggestionCallback'](_0x4e9b('0xa'),_0x35460b,'accept');return this[_0x4e9b('0xe7')](()=>_0x10d07d([_0x5b95aa],_0x5856a9,_0x12d425)),null;}const _0xb70062=this['editor']['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x5e08c6=[];if('always'!==this[_0x4e9b('0x71')])for(const {suggestion:_0x1122ea,meta:_0x4e3a11}of this[_0x4e9b('0x7a')](_0x5b95aa,_0x4e9b('0x68')))_0x4e3a11[_0x4e9b('0x1d')]&&!_0x4e3a11[_0x4e9b('0xcf')]&&_0x5e08c6[_0x4e9b('0x13')](..._0x1122ea[_0x4e9b('0x8a')]());const _0x9ff8a1=function(_0x2a8792,_0x556094){const _0xbfe57e=[];for(const _0x38c9eb of _0x556094){const _0x3c55f7=_0x2a8792[_0x4e9b('0x112')](_0x38c9eb);_0x3c55f7&&_0xbfe57e[_0x4e9b('0x13')](_0x3c55f7);}return _0xbfe57e;}(_0x5b95aa,_0x5e08c6),_0x114b11=function(_0x2f8a8c,_0x56cc4f){const _0x512287=[_0x2f8a8c];for(const _0x150d98 of _0x56cc4f){let _0x2d5690=0x0;for(;_0x2d5690<_0x512287[_0x4e9b('0x70')];){const _0x5d6e7d=_0x512287[_0x2d5690]['getDifference'](_0x150d98);_0x512287[_0x4e9b('0xdd')](_0x2d5690,0x1,..._0x5d6e7d),_0x2d5690+=_0x5d6e7d['length'];}}return _0x512287;}(_0x5b95aa,_0x5e08c6);_0x9ff8a1[_0x4e9b('0x70')]&&this['_model'][_0x4e9b('0x5a')](()=>{for(const _0x5e6bf3 of _0x9ff8a1){const _0x4d296d=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xa'),_0x35460b,_0x4e9b('0x39'));this['forceDefaultExecution'](()=>_0x4d296d([_0x5e6bf3],_0x5856a9,_0x12d425));}});for(const _0x794ed4 of _0x114b11){let _0x521f1a=null,_0x50c0c9=_0x794ed4[_0x4e9b('0xb0')],_0x183fb0=_0x794ed4['end'];for(const {suggestion:_0x2af6ec,meta:_0x2c1f91}of this['_findSuggestions'](_0x794ed4,_0x4e9b('0xa'))){if(!_0x2c1f91['isOwn'])continue;if(_0x2af6ec['subType']!=_0x35460b)continue;const _0x142ba1=_0x2af6ec['getFirstRange']();if(_0x142ba1[_0x4e9b('0x3d')](_0x794ed4,!0x0))return null;_0x50c0c9=_0x50c0c9['isBefore'](_0x142ba1[_0x4e9b('0xb0')])?_0x50c0c9:_0x142ba1[_0x4e9b('0xb0')],_0x183fb0=_0x183fb0[_0x4e9b('0x87')](_0x142ba1[_0x4e9b('0x2e')])?_0x183fb0:_0x142ba1[_0x4e9b('0x2e')],_0x521f1a?_0x142ba1[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x521f1a[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')])?(_0x521f1a[_0x4e9b('0x123')](),_0x521f1a=_0x2af6ec):_0x2af6ec[_0x4e9b('0x123')]():_0x521f1a=_0x2af6ec;}const _0x3ced5e=this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x50c0c9,_0x183fb0);if(_0x521f1a)this[_0x4e9b('0x120')](_0x521f1a,_0x3ced5e);else{const _0x2a877a=_0x4fbab8(),_0x2e90db=_0xb70062['id'];this[_0x4e9b('0x113')]({'id':_0x2a877a,'type':_0x4e9b('0x49')+_0x35460b,'data':_0x5856a9,'createdAt':new Date(),'authorId':_0x2e90db,'attributes':_0x12d425}),this[_0x4e9b('0x77')](_0x4e9b('0x49')+_0x35460b,_0x2a877a,_0x2e90db,_0x3ced5e);}}return null;}[_0x4e9b('0x1e')](_0xdd5715,_0x56afd7,_0x30d2e8=[],_0x17d13a=null,_0xb5089d={}){_0x56afd7[_0x4e9b('0x1')]||(_0x56afd7[_0x4e9b('0x1')]=_0x56afd7['commandName']),_0x56afd7['multipleBlocks']=_0xdd5715['is'](_0x4e9b('0x135')),_0x17d13a=_0x17d13a||$t(_0x56afd7);const _0x5ad02f=_0x30d2e8[_0x4e9b('0xc0')](_0x93e532=>Rt(_0x93e532,this[_0x4e9b('0x38')])),_0x2d518b=_0xdd5715['is'](_0x4e9b('0x135'))?_0xdd5715:Rt(_0xdd5715,this[_0x4e9b('0x38')]);if(_0x4e9b('0xdc')===this[_0x4e9b('0x71')]){const _0x54cbdf=this['_suggestionFactory'][_0x4e9b('0x51')]('formatBlock',_0x17d13a,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x54cbdf([_0x2d518b],_0x56afd7,_0xb5089d)),null;}_0x5ad02f[_0x4e9b('0x13')](_0x2d518b);let _0x5c7518=!0x0;for(const _0x1be67e of _0x5ad02f)if(!this['_rangeIsInLocalUserInsertion'](_0x1be67e)){_0x5c7518=!0x1;break;}if(_0x5c7518&&_0x4e9b('0x44')!==this[_0x4e9b('0x71')]){const _0x520cff=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x17d13a,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x520cff([_0x2d518b],_0x56afd7,_0xb5089d)),null;}let _0x2d5fcc=null,_0x260daa=_0x2d518b['start'],_0x404b0c=_0x2d518b[_0x4e9b('0x2e')];for(const {suggestion:_0x193fad,meta:_0x99b6e2}of this['_findSuggestions'](_0x2d518b,_0x4e9b('0xd2'))){if(!_0x99b6e2[_0x4e9b('0x1d')]||_0x99b6e2[_0x4e9b('0xf')]||_0x99b6e2[_0x4e9b('0x69')]||_0x99b6e2[_0x4e9b('0xcf')])continue;if(_0x193fad[_0x4e9b('0x17')]['formatGroupId']!=_0x56afd7[_0x4e9b('0x1')])continue;const _0x39be02=_0x193fad['getFirstRange']();if(_0x193fad[_0x4e9b('0x6c')]==_0x17d13a){if(_0x39be02[_0x4e9b('0x3d')](_0x2d518b,!0x0))return null;_0x260daa=_0x260daa['isBefore'](_0x39be02[_0x4e9b('0xb0')])?_0x260daa:_0x39be02[_0x4e9b('0xb0')],_0x404b0c=_0x404b0c[_0x4e9b('0x87')](_0x39be02[_0x4e9b('0x2e')])?_0x404b0c:_0x39be02[_0x4e9b('0x2e')],_0x2d5fcc?_0x39be02['start'][_0x4e9b('0x26')](_0x2d5fcc[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')])?(_0x2d5fcc[_0x4e9b('0x123')](),_0x2d5fcc=_0x193fad):_0x193fad['removeMarkers']():_0x2d5fcc=_0x193fad;}else{const _0x451741=_0x2d518b[_0x4e9b('0x112')](_0x39be02);this[_0x4e9b('0xd0')](_0x193fad,_0x451741);}}const _0x565e5a=this[_0x4e9b('0xa1')]['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x3db704=_0x4fbab8(),_0x4f0ce5=_0x565e5a['id'];if(_0x2d5fcc)return this['_setSuggestionRange'](_0x2d5fcc,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x260daa,_0x404b0c)),_0x2d5fcc;{const _0x12af96=this[_0x4e9b('0x113')]({'id':_0x3db704,'type':'formatBlock:'+_0x17d13a,'data':_0x56afd7,'createdAt':new Date(),'authorId':_0x4f0ce5,'attributes':_0xb5089d});return this[_0x4e9b('0x77')](_0x4e9b('0xf3')+_0x17d13a,_0x3db704,_0x4f0ce5,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x260daa,_0x404b0c)),_0x12af96;}}['markMultiRangeBlockFormat'](_0x4ec7a1,_0x429fb8,_0x34d391=[],_0x4c71d7=null,_0x4729dc={}){_0x429fb8[_0x4e9b('0x1')]||(_0x429fb8[_0x4e9b('0x1')]=_0x429fb8['commandName']);const _0x1b692e=_0x4ec7a1[0x0];_0x429fb8[_0x4e9b('0x89')]=_0x1b692e['is'](_0x4e9b('0x135')),_0x4c71d7=_0x4c71d7||$t(_0x429fb8);const _0x596b98=_0x34d391[_0x4e9b('0xc0')](_0x122965=>Rt(_0x122965,this[_0x4e9b('0x38')])),_0x2c9b37=_0x1b692e['is'](_0x4e9b('0x135'))?_0x4ec7a1:_0x4ec7a1['map'](_0x17d5fb=>Rt(_0x17d5fb,this[_0x4e9b('0x38')]));if(_0x4e9b('0xdc')===this[_0x4e9b('0x71')]){const _0x14f55d=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x14f55d(_0x2c9b37,_0x429fb8,_0x4729dc)),null;}_0x596b98['push'](..._0x2c9b37);let _0x20b6cc=!0x0;for(const _0x42401c of _0x596b98)if(!this['_rangeIsInLocalUserInsertion'](_0x42401c)){_0x20b6cc=!0x1;break;}if(_0x20b6cc&&_0x4e9b('0x44')!==this['_trackFormatChanges']){const _0x2b2243=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,'accept');return this[_0x4e9b('0xe7')](()=>_0x2b2243(_0x2c9b37,_0x429fb8,_0x4729dc)),null;}const _0x44461e=this['editor'][_0x4e9b('0xe6')]['get'](_0x4e9b('0x8f'))['me'];for(const _0xd8b49e of this[_0x4e9b('0x43')]()){if(_0xd8b49e[_0x4e9b('0x6a')]['id']!=_0x44461e['id'])continue;if('formatBlock'!=_0xd8b49e[_0x4e9b('0x11d')]||_0xd8b49e['data'][_0x4e9b('0x1')]!=_0x429fb8[_0x4e9b('0x1')])continue;const _0x37ee4d=_0xd8b49e['subType']==_0x4c71d7;for(let _0x36a1d2=0x0;_0x36a1d2<_0x2c9b37['length'];_0x36a1d2++){const _0x39f300=_0x2c9b37[_0x36a1d2];for(const _0x1917ca of _0xd8b49e[_0x4e9b('0x5f')]()){const _0x2fbf83=_0x1917ca[_0x4e9b('0xa7')]();if(_0x39f300[_0x4e9b('0x55')](_0x2fbf83)){_0x37ee4d?(_0x2c9b37['splice'](_0x36a1d2,0x1),_0x36a1d2--):_0xd8b49e[_0x4e9b('0x5c')](_0x1917ca[_0x4e9b('0x15')]);break;}}}}if(0x0==_0x2c9b37['length'])return null;const _0x32c307=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,'join');for(const _0x4c0eb3 of this[_0x4e9b('0x43')]())if(_0x4c0eb3[_0x4e9b('0x6a')]['id']==_0x44461e['id']&&_0x4e9b('0xd2')==_0x4c0eb3[_0x4e9b('0x11d')]&&_0x4c0eb3['data'][_0x4e9b('0x1')]==_0x429fb8['formatGroupId']&&_0x4c0eb3[_0x4e9b('0x6c')]==_0x4c71d7&&(_0x32c307(_0x4c0eb3['getRanges'](),_0x2c9b37)||_0x32c307(_0x2c9b37,_0x4c0eb3[_0x4e9b('0x8a')]()))){for(const _0x33c7b1 of _0x2c9b37)_0x4c0eb3[_0x4e9b('0x74')](_0x33c7b1);return _0x4c0eb3;}const _0x4f7f2b=_0x4fbab8(),_0x8646ba=_0x44461e['id'],_0x326d59=_0x4e9b('0xf3')+_0x4c71d7,_0x2e6a10=this[_0x4e9b('0x113')]({'id':_0x4f7f2b,'type':_0x326d59,'data':_0x429fb8,'createdAt':new Date(),'authorId':_0x8646ba,'attributes':_0x4729dc});for(const _0x40f4ed of _0x2c9b37)this[_0x4e9b('0x77')](_0x326d59,_0x4f7f2b,_0x8646ba,_0x40f4ed,_0x2b860e[_0x4e9b('0xb')]());return _0x2e6a10;}['markDeletion'](_0x29120c,_0x26440d=null,_0x3a805d={}){if(_0x29120c['isCollapsed'])return null;const _0x266caa=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x262543=new _0x5e3949(_0x29120c[_0x4e9b('0xb0')],_0x29120c[_0x4e9b('0x2e')]);for(const {suggestion:_0x425a72,meta:_0x4cb168}of this[_0x4e9b('0x7a')](_0x262543,_0x4e9b('0x68')))if(_0x4cb168[_0x4e9b('0x1d')]&&!_0x4cb168[_0x4e9b('0xf')]){if(_0x425a72[_0x4e9b('0x32')]){const _0x2776df=_0x425a72['getRanges']()[_0x4e9b('0x22')](_0x18be0a=>_0x4e9b('0xaa')!=_0x18be0a['root'][_0x4e9b('0x72')]);_0x2776df[_0x4e9b('0x12e')](_0x4fdbc7=>_0x262543[_0x4e9b('0x3d')](_0x4fdbc7,!0x0))&&_0x425a72[_0x4e9b('0x7f')]();if(_0x2776df['some'](_0x3c26d8=>_0x3c26d8[_0x4e9b('0x3d')](_0x262543,!0x0))){const _0x1a17fd=this[_0x4e9b('0x73')]['getSuggestionCallback'](_0x4e9b('0x5e'),_0x26440d,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x1a17fd([_0x262543],null,_0x3a805d)),null;}}else{const _0x1856bf=_0x262543['getIntersection'](_0x425a72[_0x4e9b('0xc9')]());null!==_0x1856bf&&_0x425a72[_0x4e9b('0x6e')]([_0x1856bf],null,_0x3a805d);}}if(_0x262543[_0x4e9b('0x42')](),_0x262543[_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x262543[_0x4e9b('0x10b')][_0x4e9b('0x72')])return null;let _0x227e75=null,_0x50fa48=_0x262543[_0x4e9b('0xb0')],_0x5216be=_0x262543['end'];for(const {suggestion:_0x20aa58,meta:_0x1b8698}of this[_0x4e9b('0x7a')](_0x262543,_0x4e9b('0x5e')))if(_0x1b8698['isOwn']){if(_0x20aa58[_0x4e9b('0x32')]&&this[_0x4e9b('0x82')]){let _0x29791e=!0x0;for(const _0x2d3c19 of _0x20aa58[_0x4e9b('0x8a')]()){if(_0x2d3c19[_0x4e9b('0x3d')](_0x262543,!0x0))return _0x20aa58;_0x262543['containsRange'](_0x2d3c19)||(_0x29791e=!0x1);}_0x29791e&&_0x20aa58['discard']();}else{const _0x353421=_0x20aa58['getFirstRange']();if(_0x353421[_0x4e9b('0x3d')](_0x262543,!0x0)){if(!this[_0x4e9b('0x82')]&&_0x1b8698[_0x4e9b('0x69')])continue;return _0x20aa58;}_0x50fa48=_0x50fa48['isBefore'](_0x353421['start'])?_0x50fa48:_0x353421['start'],_0x5216be=_0x5216be[_0x4e9b('0x87')](_0x353421[_0x4e9b('0x2e')])?_0x5216be:_0x353421[_0x4e9b('0x2e')],_0x227e75?_0x353421['start'][_0x4e9b('0x26')](_0x227e75['getFirstRange']()[_0x4e9b('0xb0')])?(_0x227e75[_0x4e9b('0x123')](),_0x227e75=_0x20aa58):_0x20aa58[_0x4e9b('0x123')]():_0x227e75=_0x20aa58;}}if(_0x227e75)return this[_0x4e9b('0x120')](_0x227e75,this[_0x4e9b('0x38')]['createRange'](_0x50fa48,_0x5216be)),_0x227e75;{const _0x4e6b05=_0x4fbab8(),_0x5e5386=this['_model'][_0x4e9b('0xcb')](_0x50fa48,_0x5216be),_0x32e8de=_0x266caa['id'],_0x6893dc=_0x26440d?_0x4e9b('0x52')+_0x26440d:'deletion',_0x4b6076=this[_0x4e9b('0x113')]({'id':_0x4e6b05,'type':_0x6893dc,'createdAt':new Date(),'authorId':_0x32e8de,'attributes':_0x3a805d});return this[_0x4e9b('0x77')](_0x6893dc,_0x4e6b05,_0x32e8de,_0x5e5386),_0x4b6076;}}['markMultiRangeDeletion'](_0x4f965c,_0x5cdbc7=_0x4e9b('0x46'),_0x1a8700={}){const _0x201387=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0xc2b319=_0x4f965c[_0x4e9b('0xc0')](_0x363854=>new _0x5e3949(_0x363854[_0x4e9b('0xb0')],_0x363854[_0x4e9b('0x2e')])),_0x322c1d=new Set();for(const _0x5130f3 of _0xc2b319)for(const {suggestion:_0xce186a,meta:_0x127c94}of this[_0x4e9b('0x7a')](_0x5130f3,'insertion'))_0x127c94[_0x4e9b('0x1d')]&&!_0x127c94[_0x4e9b('0xf')]&&_0x322c1d['add'](_0xce186a);for(const _0x6b8c12 of _0x322c1d)if(_0x6b8c12['isMultiRange']){const _0x2acf67=_0x6b8c12[_0x4e9b('0x8a')]();(!_0x6b8c12[_0x4e9b('0x3a')]||!_0x6b8c12['attributes'][_0x4e9b('0x29')])&&(_0x2acf67[_0x4e9b('0x12e')](_0x9ec8a9=>_0xc2b319[_0x4e9b('0xc7')](_0x612352=>_0x612352[_0x4e9b('0x3d')](_0x9ec8a9,!0x0)))&&_0x6b8c12[_0x4e9b('0x7f')]());if(_0xc2b319[_0x4e9b('0x12e')](_0x5656df=>_0x2acf67[_0x4e9b('0xc7')](_0x4f8cd7=>_0x4f8cd7[_0x4e9b('0x3d')](_0x5656df,!0x0)))){const _0x45928f=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0x5e'),_0x5cdbc7,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x45928f(_0x4f965c,null,_0x1a8700)),null;}}else{const _0x2ac3bc=_0x6b8c12[_0x4e9b('0xc9')]();_0xc2b319[_0x4e9b('0xc7')](_0x17c044=>_0x17c044[_0x4e9b('0x3d')](_0x2ac3bc,!0x0))&&_0x6b8c12[_0x4e9b('0x7f')]();if(_0xc2b319[_0x4e9b('0x12e')](_0x47d945=>_0x2ac3bc[_0x4e9b('0x3d')](_0x47d945,!0x0))){const _0xb15a06=this[_0x4e9b('0x73')]['getSuggestionCallback'](_0x4e9b('0x5e'),_0x5cdbc7,_0x4e9b('0x39'));return this['forceDefaultExecution'](()=>_0xb15a06(_0xc2b319,null,_0x1a8700)),null;}}const _0x51935c=this[_0x4e9b('0x73')]['getSuggestionCallback']('deletion',_0x5cdbc7,_0x4e9b('0x85'));let _0x4914e1=null;for(const _0x9598a6 of this[_0x4e9b('0x43')]())if(_0x9598a6[_0x4e9b('0x6a')]['id']==_0x201387['id']&&_0x9598a6['isInContent']&&_0x4e9b('0x5e')==_0x9598a6['type']&&_0x9598a6['subType']==_0x5cdbc7&&(_0x51935c(_0x9598a6[_0x4e9b('0x8a')](),_0xc2b319)||_0x51935c(_0xc2b319,_0x9598a6[_0x4e9b('0x8a')]()))){if(_0x4914e1){if(_0x9598a6['commentThread']&&_0x9598a6[_0x4e9b('0x88')][_0x4e9b('0x70')])continue;for(const _0x14be2c of _0x9598a6['getRanges']())_0x4914e1[_0x4e9b('0x58')](_0x14be2c)||_0x4914e1['addRange'](_0x14be2c);_0x9598a6['removeMarkers']();}else{_0x4914e1=_0x9598a6;for(const _0x4e9968 of _0xc2b319)_0x9598a6['isIntersectingWithRange'](_0x4e9968)||_0x9598a6[_0x4e9b('0x74')](_0x4e9968);}}if(_0x4914e1)return _0x4914e1;_0x322c1d['clear']();for(const _0x2d27d0 of _0xc2b319)for(const {suggestion:_0x51f347,meta:_0x28ab84}of this[_0x4e9b('0x7a')](_0x2d27d0,'deletion'))_0x28ab84[_0x4e9b('0x1d')]&&_0x322c1d[_0x4e9b('0xf4')](_0x51f347);for(const _0xe1a0a8 of _0x322c1d){const _0x59f901=_0xe1a0a8[_0x4e9b('0x8a')]();if(!_0x1a8700||!_0x1a8700[_0x4e9b('0x29')]){if(_0xc2b319[_0x4e9b('0x12e')](_0x1febbc=>_0x59f901[_0x4e9b('0xc7')](_0x303e30=>_0x303e30[_0x4e9b('0x3d')](_0x1febbc,!0x0))))return _0xe1a0a8;}(!_0xe1a0a8[_0x4e9b('0x3a')]||!_0xe1a0a8[_0x4e9b('0x3a')]['skipNestingCheck'])&&(_0x59f901[_0x4e9b('0x12e')](_0x1ade87=>_0xc2b319[_0x4e9b('0xc7')](_0x49e6dd=>_0x49e6dd[_0x4e9b('0x3d')](_0x1ade87,!0x0)))&&_0xe1a0a8['discard']());}const _0x256af3=_0x4fbab8(),_0x418e1a=_0x201387['id'],_0x554499=_0x4e9b('0x52')+_0x5cdbc7,_0x62171=this[_0x4e9b('0x113')]({'id':_0x256af3,'type':_0x554499,'createdAt':new Date(),'authorId':_0x418e1a,'attributes':_0x1a8700});for(const _0x3ee350 of _0xc2b319)_0x3ee350[_0x4e9b('0x42')](),_0x3ee350[_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x3ee350[_0x4e9b('0x10b')]['rootName']||this[_0x4e9b('0x77')](_0x554499,_0x256af3,_0x418e1a,_0x3ee350,_0x2b860e['getMultiRangeId']());return _0x62171;}['_setSuggestionRange'](_0x474348,_0x5c5b59){const _0x156175=_0x474348[_0x4e9b('0xe8')]();this[_0x4e9b('0x38')][_0x4e9b('0x5a')](_0x48318f=>{_0x48318f[_0x4e9b('0x3f')](_0x156175,{'range':_0x5c5b59});});}[_0x4e9b('0xfc')](_0x3ffddd){const _0x114da3=_0x3ffddd['id'],_0x1e100b=this[_0x4e9b('0xa1')]['config'][_0x4e9b('0xc5')](_0x4e9b('0x9b'));this[_0x4e9b('0x81')][_0x4e9b('0x84')](_0x114da3)||this[_0x4e9b('0x81')][_0x4e9b('0x20')]({'channelId':_0x1e100b,'threadId':_0x114da3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f3f03=this['_commentsRepository']['getCommentThread'](_0x114da3);_0x3f3f03['unbind'](_0x4e9b('0x11e')),_0x3f3f03[_0x4e9b('0x11e')]=!0x1,_0x3ffddd[_0x4e9b('0x88')]=_0x3f3f03;}[_0x4e9b('0x53')](_0x1aa0a5,_0x44b085,_0x238fe4,_0x4c376f){if(_0x1aa0a5[_0x4e9b('0x11d')]!=_0x44b085||_0x1aa0a5[_0x4e9b('0x6c')]!=_0x238fe4||_0x1aa0a5[_0x4e9b('0xd7')]['id']!=_0x4c376f)throw this['editor'][_0x4e9b('0xbe')](_0x4e9b('0x5b')),new _0x225a88('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3dc53b,_0xaaf60f){const _0x181472=_0x3dc53b[_0x4e9b('0xc9')]();if(_0xaaf60f['isEqual'](_0x181472))_0x3dc53b[_0x4e9b('0x123')]();else{if(_0x181472[_0x4e9b('0x3d')](_0xaaf60f)){const _0x31aa58=this[_0x4e9b('0x38')]['createPositionAt'](_0xaaf60f['start'][_0x4e9b('0xa6')],_0x4e9b('0x2e'));this['_setSuggestionRange'](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x181472[_0x4e9b('0xb0')],_0x31aa58));const _0x4bc7df=_0x4fbab8(),_0x37bf22=_0x3dc53b['creator']['id'],_0x657888=_0x3dc53b[_0x4e9b('0x11d')]+':'+_0x3dc53b['subType'];this[_0x4e9b('0x113')]({'id':_0x4bc7df,'type':_0x657888,'createdAt':new Date(),'authorId':_0x37bf22,'data':_0x3dc53b[_0x4e9b('0x17')],'attributes':_0x3dc53b[_0x4e9b('0x3a')]});const _0x398fce=this[_0x4e9b('0x38')]['createPositionAt'](_0xaaf60f[_0x4e9b('0x2e')][_0x4e9b('0x106')],_0x4e9b('0xaf')),_0x1ea48d=this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x398fce,_0x181472['end']);this[_0x4e9b('0x77')](_0x657888,_0x4bc7df,_0x37bf22,_0x1ea48d);}else{if(_0x181472['containsPosition'](_0xaaf60f[_0x4e9b('0xb0')])){const _0x3535f5=this['_model']['createPositionAt'](_0xaaf60f[_0x4e9b('0xb0')][_0x4e9b('0xa6')],'end');this[_0x4e9b('0x120')](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x181472[_0x4e9b('0xb0')],_0x3535f5));}else{const _0x4915d8=this['_model']['createPositionAt'](_0xaaf60f[_0x4e9b('0x2e')]['parent'],'after');this[_0x4e9b('0x120')](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x4915d8,_0x181472[_0x4e9b('0x2e')]));}}}}['_rangeIsInLocalUserInsertion'](_0x4ad2c0){for(const {suggestion:_0x11dd87,meta:_0x19b45b}of this[_0x4e9b('0x7a')](_0x4ad2c0,_0x4e9b('0x68'))){if(!_0x19b45b[_0x4e9b('0x1d')])continue;const _0x2e22fc=_0x11dd87[_0x4e9b('0x8a')]();for(const _0x45795e of _0x2e22fc)if(!_0x4ad2c0['getDifference'](_0x45795e)[_0x4e9b('0x70')])return!0x0;}return!0x1;}[_0x4e9b('0x96')](_0x4cac67){const _0xfc2335=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['getUser'](_0x4cac67);if(!_0xfc2335)throw new _0x225a88(_0x4e9b('0x62'),this);return _0xfc2335;}[_0x4e9b('0x64')](_0x31fab1){const _0xe442d4=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f')),_0x5817bb=_0x305c8b(_0x4e9b('0xa2')+_0x31fab1),_0x34b1da=_0xe442d4[_0x4e9b('0x50')](_0x5817bb);return _0x34b1da||_0xe442d4[_0x4e9b('0x121')]({'id':_0x5817bb,'name':_0x31fab1});}['_createSuggestion'](_0xb2f8db,_0x3eef38,_0x18d80a,_0xc57ed1,_0x250532){const _0x347069=this[_0x4e9b('0x96')](_0xc57ed1),_0x30defd=this[_0x4e9b('0x73')][_0x4e9b('0x48')](_0xb2f8db,_0x3eef38,_0x18d80a,_0x347069,_0x250532,_0xbf9535=>this[_0x4e9b('0x1f')](_0x18d80a,{'attributes':_0xbf9535}));return this['listenTo'](_0x30defd,_0x4e9b('0x39'),()=>{this[_0x4e9b('0x1f')](_0x18d80a,{'state':_0x4e9b('0x131')});},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0x19')](_0x30defd,_0x4e9b('0x7f'),()=>{this[_0x4e9b('0x1f')](_0x18d80a,{'state':_0x4e9b('0x75')});},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0x7d')][_0x4e9b('0x107')](_0x18d80a,_0x30defd),this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x30defd,'notReady'),_0x30defd;}[_0x4e9b('0x4')](_0x2d2d4b){const _0x244ccc=_0x2d2d4b[_0x4e9b('0x12a')](':');return{'group':_0x244ccc[0x0],'type':_0x244ccc[0x1],'subType':_0x244ccc['length']>=0x5?_0x244ccc[0x2]:null,'id':_0x244ccc[_0x4e9b('0x70')]<0x5?_0x244ccc[0x2]:_0x244ccc[0x3],'authorId':_0x244ccc[_0x4e9b('0x70')]<0x5?_0x244ccc[0x3]:_0x244ccc[0x4],'markerCount':0x6==_0x244ccc['length']?_0x244ccc[0x5]:null};}[_0x4e9b('0x11')](_0x165fee,_0x2e5bc9,_0x7d0dee){const _0x231239=_0x165fee[_0x4e9b('0xc9')](),_0x2d6432=_0x231239[_0x4e9b('0xb0')],_0x4605dd=_0x231239[_0x4e9b('0x2e')];this[_0x4e9b('0x120')](_0x165fee,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x2d6432,_0x2e5bc9));const _0x1d39be=_0x4fbab8(),_0x41a91a=_0x165fee[_0x4e9b('0xd7')]['id'],_0x33805e=_0x165fee[_0x4e9b('0x11d')]+(_0x165fee['subType']?':'+_0x165fee[_0x4e9b('0x6c')]:'');this['_setSuggestionData']({'id':_0x1d39be,'type':_0x33805e,'createdAt':new Date(),'authorId':_0x41a91a,'originalSuggestionId':_0x165fee['id'],'attributes':_0x165fee['attributes'],'data':_0x165fee['data']}),_0x4e9b('0xd2')==_0x165fee[_0x4e9b('0x11d')]&&(_0x7d0dee=this['_model'][_0x4e9b('0xa4')](_0x7d0dee[_0x4e9b('0x106')])),this['_addSuggestionMarker'](_0x33805e,_0x1d39be,_0x41a91a,this['_model'][_0x4e9b('0xcb')](_0x7d0dee,_0x4605dd));}[_0x4e9b('0x7a')](_0x491783,_0x2e451e=null){const _0x577e63=[],_0x1b0770=this[_0x4e9b('0x38')]['schema'],_0x551735=this[_0x4e9b('0xa1')]['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'];for(const _0xeae648 of this[_0x4e9b('0x43')]())if(_0xeae648['isInContent']&&(!_0x2e451e||_0xeae648[_0x4e9b('0x11d')]==_0x2e451e))for(const _0x340c8c of _0xeae648['getRanges']()){const _0x1a95ed=_0x491783[_0x4e9b('0xb0')][_0x4e9b('0x55')](_0x340c8c['end'])||_0x491783[_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x340c8c['start']);if(_0x1a95ed||_0x491783[_0x4e9b('0x112')](_0x340c8c)){const _0x5079f4=_0x491783['containsRange'](_0x340c8c)&&Bt(_0x1b0770,_0x340c8c[_0x4e9b('0xb0')],_0x491783),_0x422a8c=_0x340c8c[_0x4e9b('0x3d')](_0x491783)&&Bt(_0x1b0770,_0x491783['start'],_0x340c8c);_0x577e63[_0x4e9b('0x13')]({'suggestion':_0xeae648,'meta':{'isOwn':_0x551735==_0xeae648[_0x4e9b('0x6a')],'isNextTo':_0x1a95ed,'isInsideObject':_0x5079f4,'containsRangeInObject':_0x422a8c}});break;}}return _0x577e63;}[_0x4e9b('0x77')](_0x497840,_0x5d15de,_0x29a935,_0x5166cd,_0xbd9318){this[_0x4e9b('0x38')][_0x4e9b('0x5a')](_0x4a84a3=>{let _0x52bc20=_0x4e9b('0x45')+_0x497840+':'+_0x5d15de+':'+_0x29a935;_0xbd9318&&(_0x52bc20=_0x52bc20+':'+_0xbd9318),_0x4a84a3['addMarker'](_0x52bc20,{'range':_0x5166cd,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4e9b('0x10')](_0x85229f){const _0x507a8f=_0x85229f['previous'],_0x414d6e=_0x85229f['next'];_0x85229f['previous']=null,null!=_0x507a8f&&(_0x507a8f['next']=null),_0x85229f[_0x4e9b('0x11f')]=null,null!=_0x414d6e&&(_0x414d6e[_0x4e9b('0x118')]=null),_0x4e9b('0xec')==this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x85229f)&&(this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x85229f,_0x4e9b('0xee')),this['fire'](_0x4e9b('0xd1'),_0x85229f,_0x507a8f,_0x414d6e));}[_0x4e9b('0x113')](_0x157a14){const _0x583620=_0x157a14['id'],_0x1ab97f=this[_0x4e9b('0x116')](_0x157a14);if(this[_0x4e9b('0x1a')]&&this['_adapter']['addSuggestion']){const _0x4c4612=this['editor'][_0x4e9b('0xe6')]['get'](_0x4e9b('0xb8')),_0x204cec=_0x1ab97f[_0x4e9b('0xc8')],_0x3d84b3=_0x1ab97f['subType']?_0x1ab97f[_0x4e9b('0x11d')]+':'+_0x1ab97f[_0x4e9b('0x6c')]:_0x1ab97f[_0x4e9b('0x11d')],_0x2fce71=this[_0x4e9b('0xa1')]['locale'],_0x32ee8f=_0x4c4612[_0x4e9b('0xf4')](_0x2d35a6(_0x2fce71,'PENDING_ACTION_SUGGESTION')),_0x2b7b03={'id':_0x583620,'type':_0x3d84b3,'hasComments':_0x204cec,'data':_0x157a14[_0x4e9b('0x17')]||null,'originalSuggestionId':_0x157a14[_0x4e9b('0x8d')]||null,'attributes':_0x1ab97f[_0x4e9b('0x3a')]};this[_0x4e9b('0x1a')][_0x4e9b('0x28')](_0x2b7b03)[_0x4e9b('0x95')](_0x331e4f=>{_0x1ab97f['_saved']=!0x0,_0x4c4612[_0x4e9b('0x11a')](_0x32ee8f),_0x331e4f&&_0x331e4f['createdAt']&&(this['_suggestions']['get'](_0x583620)[_0x4e9b('0xb5')]=_0x331e4f[_0x4e9b('0xb5')]);})[_0x4e9b('0x9')](_0x246e95=>{throw _0x37bdeb(_0x4e9b('0x34')),this[_0x4e9b('0xa1')][_0x4e9b('0x125')][_0x4e9b('0x10f')]({'isUndoable':!0x1},()=>{_0x1ab97f['discard']();}),_0x1ab97f[_0x4e9b('0x8c')](),this[_0x4e9b('0x7d')][_0x4e9b('0xc')](_0x1ab97f['id']),this[_0x4e9b('0xce')][_0x4e9b('0xc')](_0x1ab97f),_0x246e95;});}return _0x1ab97f;}[_0x4e9b('0x1f')](_0x2a278c,_0x9007ce){const _0x54646e=this['editor']['plugins'][_0x4e9b('0xc5')]('PendingActions'),_0x2d8396=this[_0x4e9b('0x25')](_0x2a278c);if(this[_0x4e9b('0x1a')]&&this[_0x4e9b('0x1a')][_0x4e9b('0xd3')]){if(_0x2d8396[_0x4e9b('0x12f')]){const _0x3e087f=_0x54646e[_0x4e9b('0xf4')](_0x2d35a6(this['editor'][_0x4e9b('0xc6')],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x4e9b('0xd3')](_0x2a278c,_0x9007ce)['then'](()=>{_0x54646e[_0x4e9b('0x11a')](_0x3e087f);});}else _0x2d8396['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2a278c,_0x9007ce);});}}['_getSuggestionData'](_0x4a7df6){if(!this[_0x4e9b('0x1a')]||!this[_0x4e9b('0x1a')][_0x4e9b('0x25')])throw new _0x225a88('track-changes-adapter-missing-getsuggestion',this);return this[_0x4e9b('0x1a')][_0x4e9b('0x25')](_0x4a7df6);}[_0x4e9b('0x110')](_0x1f3a3){const {id:_0x4f35c6,type:_0x4a4d5a,subType:_0x5e3d60,authorId:_0x81b782}=this[_0x4e9b('0x4')](_0x1f3a3),_0x486764=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x4f35c6)||this[_0x4e9b('0x2f')](_0x4a4d5a,_0x5e3d60,_0x4f35c6,_0x81b782,{});switch(this[_0x4e9b('0x53')](_0x486764,_0x4a4d5a,_0x5e3d60,_0x81b782),this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x486764)){case _0x4e9b('0x9a'):this[_0x4e9b('0xd9')](_0x4f35c6)['then'](_0x2caa61=>{let _0x5094cb=Promise['resolve']();_0x2caa61[_0x4e9b('0xc8')]&&(_0x5094cb=this[_0x4e9b('0x81')][_0x4e9b('0xb2')]({'channelId':this[_0x4e9b('0xa1')][_0x4e9b('0x126')][_0x4e9b('0xc5')](_0x4e9b('0x9b')),'threadId':_0x4f35c6})),_0x5094cb[_0x4e9b('0x95')](()=>{this[_0x4e9b('0x116')](_0x2caa61)['_saved']=!0x0;});}),this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x486764,_0x4e9b('0x109'));break;case _0x4e9b('0xee'):this[_0x4e9b('0x1f')](_0x4f35c6,{'state':'open'});case'dataReady':this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x486764,_0x4e9b('0xec')),this['fire'](_0x4e9b('0x2d'),_0x486764);break;case _0x4e9b('0xec'):this[_0x4e9b('0x98')](_0x4e9b('0x66'),_0x486764);}return _0x486764['addMarkerName'](_0x1f3a3),_0x486764;}[_0x4e9b('0x4a')](_0x2fa343){const _0x4dad43=Array[_0x4e9b('0x122')](_0x2fa343)[_0x4e9b('0x22')](_0x457ee8=>!_0x457ee8['isMultiRange']),_0x1241bf=this[_0x4e9b('0x43')]({'skipNotAttached':!0x0})['filter'](_0x259d33=>!_0x259d33[_0x4e9b('0x32')]),_0x493cee=_0x1241bf['filter'](_0x155be0=>!_0x2fa343[_0x4e9b('0x3c')](_0x155be0)),_0x16500b=new Map(_0x1241bf[_0x4e9b('0xc0')](_0x4470c2=>[_0x4470c2,this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4470c2[_0x4e9b('0x11d')],_0x4470c2['subType'],_0x4e9b('0x132'))])),_0x574336=new Map(_0x1241bf[_0x4e9b('0xc0')](_0x3642f0=>[_0x3642f0,_0x3642f0[_0x4e9b('0xc9')]()])),_0x17f643=new Set(),_0x45525e=new Set();for(let _0x30b661=0x0;_0x30b661<_0x4dad43[_0x4e9b('0x70')];_0x30b661++)_0x3b01fb(_0x4dad43[_0x30b661],_0x4dad43,_0x30b661+0x1);for(let _0x31445a=0x0;_0x31445a<_0x4dad43[_0x4e9b('0x70')];_0x31445a++)_0x3b01fb(_0x4dad43[_0x31445a],_0x493cee,0x0);for(let _0xfa21ee=0x0;_0xfa21ee<_0x4dad43[_0x4e9b('0x70')];_0xfa21ee++){const _0x486c9d=_0x4dad43[_0xfa21ee];!_0x45525e[_0x4e9b('0x3c')](_0x486c9d)&&_0x486c9d[_0x4e9b('0x118')]&&(_0x486c9d[_0x4e9b('0x118')][_0x4e9b('0x11f')]===_0x486c9d&&(_0x486c9d['previous'][_0x4e9b('0x11f')]=null),_0x486c9d['previous']=null),!_0x17f643[_0x4e9b('0x3c')](_0x486c9d)&&_0x486c9d[_0x4e9b('0x11f')]&&(_0x486c9d[_0x4e9b('0x11f')][_0x4e9b('0x118')]===_0x486c9d&&(_0x486c9d[_0x4e9b('0x11f')][_0x4e9b('0x118')]=null),_0x486c9d['next']=null);}function _0x3b01fb(_0x11b680,_0x35d6df,_0x1393b1){for(let _0x94fd22=_0x1393b1;_0x94fd22<_0x35d6df[_0x4e9b('0x70')];_0x94fd22++){const _0xd67301=_0x2f24ae(_0x11b680,_0x35d6df[_0x94fd22]);_0xd67301&&(_0xd67301[0x0][_0x4e9b('0x11f')]=_0xd67301[0x1],_0xd67301[0x1][_0x4e9b('0x118')]=_0xd67301[0x0],_0x17f643[_0x4e9b('0xf4')](_0xd67301[0x0]),_0x45525e[_0x4e9b('0xf4')](_0xd67301[0x1]));}}function _0x2f24ae(_0x2076ce,_0x4a5c2a){if(_0x2076ce[_0x4e9b('0x6a')]['id']!==_0x4a5c2a[_0x4e9b('0x6a')]['id'])return null;const _0x1ecfc0=_0x16500b[_0x4e9b('0xc5')](_0x2076ce)(_0x2076ce,_0x4a5c2a,_0x574336[_0x4e9b('0xc5')](_0x2076ce),_0x574336[_0x4e9b('0xc5')](_0x4a5c2a));if(!_0x1ecfc0)return null;return _0x16500b[_0x4e9b('0xc5')](_0x4a5c2a)(_0x2076ce,_0x4a5c2a,_0x574336[_0x4e9b('0xc5')](_0x2076ce),_0x574336[_0x4e9b('0xc5')](_0x4a5c2a))?_0x1ecfc0[0x1]['commentThread']&&_0x1ecfc0[0x1][_0x4e9b('0x88')][_0x4e9b('0x70')]?null:_0x1ecfc0:null;}}[_0x4e9b('0x54')](_0x28ad50){const _0x33cd05=Array[_0x4e9b('0x122')](_0x28ad50),_0x59469f=this[_0x4e9b('0x43')]({'skipNotAttached':!0x0}),_0x5ca9b2=_0x59469f[_0x4e9b('0x22')](_0x170300=>!_0x28ad50['has'](_0x170300)),_0x271f49=new Map(_0x33cd05[_0x4e9b('0xc0')](_0x446b06=>[_0x446b06,this['_suggestionFactory'][_0x4e9b('0x51')](_0x446b06[_0x4e9b('0x11d')],_0x446b06[_0x4e9b('0x6c')],'join')])),_0x35eecc=new Map(_0x59469f[_0x4e9b('0xc0')](_0x39c205=>[_0x39c205,_0x39c205[_0x4e9b('0x8a')]()]));for(let _0x302c65=0x0;_0x302c65<_0x33cd05[_0x4e9b('0x70')];_0x302c65++){if(_0x37ffb8(this,_0x33cd05[_0x302c65],_0x33cd05,_0x302c65+0x1))return!0x0;}for(let _0x1e17b6=0x0;_0x1e17b6<_0x33cd05[_0x4e9b('0x70')];_0x1e17b6++){if(_0x37ffb8(this,_0x33cd05[_0x1e17b6],_0x5ca9b2,0x0))return!0x0;}return!0x1;function _0x37ffb8(_0x4da458,_0x4fd019,_0x5d9b91,_0x188893){for(let _0x5d8df2=_0x188893;_0x5d8df2<_0x5d9b91[_0x4e9b('0x70')];_0x5d8df2++){const _0x123806=_0x5d9b91[_0x5d8df2];if(_0x123806[_0x4e9b('0x11d')]!==_0x4fd019['type']||_0x123806[_0x4e9b('0x6a')]['id']!==_0x4fd019['author']['id']||_0x123806[_0x4e9b('0x6c')]!==_0x4fd019[_0x4e9b('0x6c')])continue;const _0x290208=_0x271f49['get'](_0x4fd019),_0x54b416=_0x35eecc[_0x4e9b('0xc5')](_0x4fd019),_0x17930f=_0x35eecc['get'](_0x123806),_0x587600=_0x4fd019[_0x4e9b('0x88')]&&_0x4fd019[_0x4e9b('0x88')][_0x4e9b('0x70')],_0x4394ff=_0x123806[_0x4e9b('0x88')]&&_0x123806['commentThread']['length'];if(!_0x587600&&_0x290208(_0x17930f,_0x54b416))return _0x4da458[_0x4e9b('0x92')](_0x123806,_0x4fd019),_0x35eecc[_0x4e9b('0xc')](_0x4fd019),!0x0;if(!_0x4394ff&&_0x290208(_0x54b416,_0x17930f))return _0x4da458[_0x4e9b('0x92')](_0x4fd019,_0x123806),_0x35eecc[_0x4e9b('0xc')](_0x123806),!0x0;}return!0x1;}}[_0x4e9b('0x92')](_0x5e415b,_0x3f9cd4){if(_0x5e415b['isMultiRange'])for(const _0x22bb6a of _0x3f9cd4[_0x4e9b('0x8a')]())_0x5e415b[_0x4e9b('0x74')](_0x22bb6a);else{const _0x43a930=_0x3f9cd4['getFirstRange']()[_0x4e9b('0x2e')];this[_0x4e9b('0x120')](_0x5e415b,this['_model']['createRange'](_0x5e415b[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')],_0x43a930));}_0x3f9cd4[_0x4e9b('0x123')]();}}class Dt{constructor(_0x25a74d){this['_editor']=_0x25a74d,this[_0x4e9b('0x38')]=_0x25a74d['model'],this[_0x4e9b('0xfe')]=new Map(),this[_0x4e9b('0x6f')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4e9b('0x48')](_0xe5b9d8,_0x58c4e6,_0x60d45d,_0x49e70c,_0x461649,_0x1add7e){return new _0x2b860e(this['_model'],{'type':_0xe5b9d8,'subType':_0x58c4e6,'id':_0x60d45d,'author':_0x49e70c,'creator':_0x49e70c,'attributes':_0x461649,'onAttributesChange':_0x1add7e,'onAccept':(..._0x140edb)=>this[_0x4e9b('0x51')](_0xe5b9d8,_0x58c4e6,_0x4e9b('0x39'))(..._0x140edb),'onDiscard':(..._0x47bdf6)=>this[_0x4e9b('0x51')](_0xe5b9d8,_0x58c4e6,_0x4e9b('0x7f'))(..._0x47bdf6)});}[_0x4e9b('0xc1')](_0x105a08,_0x2754ab,_0x20b50d,_0x55c3ac){const _0x577ab7=_0x105a08+':'+_0x2754ab+':'+_0x20b50d;this['_customCallbacks'][_0x4e9b('0x107')](_0x577ab7,_0x55c3ac);}[_0x4e9b('0x51')](_0x1249f9,_0x307b29,_0x5576ab){const _0x5bb705=_0x1249f9+':'+_0x307b29+':'+_0x5576ab;return this['_customCallbacks']['get'](_0x5bb705)||this['_defaultCallbacks'][_0x4e9b('0xc5')](_0x1249f9+':'+_0x5576ab);}[_0x4e9b('0x90')](){const _0x11b67a=()=>{},_0x2679e7=_0x22f951=>{_0x22f951['sort']((_0x324a48,_0x24adee)=>_0x324a48[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x24adee[_0x4e9b('0xb0')])?0x1:-0x1),this['_model'][_0x4e9b('0x5a')](_0x19e62c=>{for(const _0x5290be of _0x22f951){let _0x4d9af0;_0x4d9af0=_0x5290be['end'][_0x4e9b('0x63')]&&_0x5290be[_0x4e9b('0x2e')][_0x4e9b('0x106')]==_0x5290be[_0x4e9b('0xb0')][_0x4e9b('0xae')]?_0x19e62c[_0x4e9b('0x94')](_0x5290be[_0x4e9b('0xb0')][_0x4e9b('0xae')],'on'):_0x19e62c[_0x4e9b('0x94')](_0x5290be),this[_0x4e9b('0x38')][_0x4e9b('0x57')](_0x4d9af0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2b50cc=(_0x4749fa,_0x262d09)=>{this['_model'][_0x4e9b('0x5a')](_0x3b9f3a=>{const {commandName:_0x2c6982,commandParams:_0x43966c=[]}=_0x262d09,_0x91383a=_0x4749fa[_0x4e9b('0xc0')](_0x5a3f35=>(_t(_0x5a3f35)&&(_0x5a3f35=this['_model'][_0x4e9b('0xcb')](_0x5a3f35[_0x4e9b('0x2e')])),_0x5a3f35))[_0x4e9b('0x22')](_0x459e2d=>_0x4e9b('0xaa')!==_0x459e2d['root']['rootName']);if(_0x91383a['length']<0x1)return;const _0x1f94b9=Array['from'](this[_0x4e9b('0x38')]['document'][_0x4e9b('0xa9')][_0x4e9b('0x8a')]())[_0x4e9b('0xc0')](_0x32662d=>_0x5e3949[_0x4e9b('0x41')](_0x32662d));_0x3b9f3a[_0x4e9b('0xb1')](_0x91383a);for(const _0x3f14a9 of this['_editor'][_0x4e9b('0xf5')]['commands']())_0x3f14a9['refresh']();_0x43966c[_0x4e9b('0x13')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4e9b('0x9c')](_0x2c6982,..._0x43966c);const _0x9f5973=_0x1f94b9[_0x4e9b('0x22')](_0x1f03f8=>'$graveyard'!=_0x1f03f8[_0x4e9b('0x10b')][_0x4e9b('0x72')]);_0x9f5973[_0x4e9b('0x70')]>0x0&&_0x3b9f3a[_0x4e9b('0xb1')](_0x9f5973);for(const _0x38ad78 of _0x1f94b9)_0x38ad78['detach']();});},_0x676c69=(_0x5a0bd6,_0x3ad73f)=>0x1==_0x5a0bd6[_0x4e9b('0x70')]&&0x1==_0x3ad73f[_0x4e9b('0x70')]&&_0x5a0bd6[0x0][_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x3ad73f[0x0][_0x4e9b('0xb0')]),_0xe0c28e=(_0x5c7170,_0x2b1e14,_0x978bee,_0xfa6355)=>xt(_0x5c7170,_0x2b1e14,_0x978bee,_0xfa6355,this[_0x4e9b('0x38')])?[_0x5c7170,_0x2b1e14]:xt(_0x2b1e14,_0x5c7170,_0xfa6355,_0x978bee,this[_0x4e9b('0x38')])?[_0x2b1e14,_0x5c7170]:null;this['_defaultCallbacks'][_0x4e9b('0x107')](_0x4e9b('0x12c'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x97'),_0x2679e7),this[_0x4e9b('0x6f')]['set']('insertion:join',_0x676c69),this[_0x4e9b('0x6f')]['set'](_0x4e9b('0x133'),_0xe0c28e),this[_0x4e9b('0x6f')][_0x4e9b('0x107')]('deletion:accept',_0x2679e7),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xa0'),_0x11b67a),this[_0x4e9b('0x6f')]['set']('deletion:join',_0x676c69),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x8e'),_0xe0c28e),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x80'),_0x2b50cc),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x7b'),_0x11b67a),this[_0x4e9b('0x6f')]['set']('formatInline:join',_0x676c69),this[_0x4e9b('0x6f')]['set'](_0x4e9b('0xdf'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x23'),_0x2b50cc),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xc4'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xeb'),_0x676c69),this['_defaultCallbacks'][_0x4e9b('0x107')](_0x4e9b('0xf8'),_0x11b67a);}}function Bt(_0x59bed9,_0x26624f,_0x19b72c){for(const _0x5096c5 of _0x26624f[_0x4e9b('0x106')][_0x4e9b('0xb3')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5096c5[_0x4e9b('0x10b')]==_0x5096c5)return!0x1;if(!_0x19b72c[_0x4e9b('0xff')](_0x5096c5))return!0x1;if(_0x59bed9['isObject'](_0x5096c5)||_0x59bed9['isLimit'](_0x5096c5))return!0x0;}return!0x1;}function _t(_0x169317){return _0x169317['end'][_0x4e9b('0x106')]==_0x169317['start'][_0x4e9b('0xae')]&&_0x169317[_0x4e9b('0x2e')][_0x4e9b('0x119')];}function Mt(_0xfba5b4,_0x83e4a6,_0x1e1ee1,_0x24cd97){const _0x3967e6=_0x29a649=>!_0x29a649['item']['is'](_0x4e9b('0xe5'))&&!_0x24cd97[_0x4e9b('0xbc')](_0x29a649[_0x4e9b('0x124')]),_0x58ab26=_0xfba5b4[_0x4e9b('0xb0')][_0x4e9b('0xad')](_0x3967e6),_0x158298=_0xfba5b4['end'][_0x4e9b('0xad')](_0x3967e6,{'direction':_0x4e9b('0x3e')});return(!_0xfba5b4['start'][_0x4e9b('0x55')](_0x58ab26)||!_0xfba5b4['end'][_0x4e9b('0x55')](_0x158298))&&(_0x58ab26['isBefore'](_0x158298)?_0x1e1ee1[_0x4e9b('0x3f')](_0x83e4a6,{'range':_0x1e1ee1['createRange'](_0x58ab26,_0x158298)}):_0x1e1ee1[_0x4e9b('0x5c')](_0x83e4a6),!0x0);}function $t(_0x40b196){return _0x305c8b(_0x40b196);}function Nt(_0x23b705){const _0x4e7dd9=_0x23b705[_0x4e9b('0xb0')][_0x4e9b('0xae')];return _0x4e7dd9&&_0x4e7dd9['is'](_0x4e9b('0x5'));}function Rt(_0x233f96,_0x5f3e9b){const _0x5ab231=_0x5f3e9b[_0x4e9b('0xa5')]['isObject'](_0x233f96)||_0x5f3e9b[_0x4e9b('0xa5')]['isSelectable'](_0x233f96);return _0x5f3e9b[_0x4e9b('0xcb')](_0x5f3e9b[_0x4e9b('0x3')](_0x233f96,_0x4e9b('0xcd')),_0x5ab231?_0x5f3e9b[_0x4e9b('0xb7')](_0x233f96):_0x5f3e9b[_0x4e9b('0x3')](_0x233f96,_0x4e9b('0x2e')));}function xt(_0x415dc4,_0xf96d60,_0x501e2a,_0x142d9b,_0xe3a3ff){if(_0x501e2a[_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x142d9b[_0x4e9b('0xb0')]))return!0x0;if(_0x415dc4['type']!=_0xf96d60['type'])return!0x1;if(!_0x501e2a['end'][_0x4e9b('0x60')](_0x142d9b[_0x4e9b('0xb0')]))return!0x1;const _0xc6677=_0xe3a3ff[_0x4e9b('0xcb')](_0x501e2a[_0x4e9b('0x2e')],_0x142d9b[_0x4e9b('0xb0')])[_0x4e9b('0x5d')]();for(const _0x5bc801 of _0xc6677)if(['elementStart',_0x4e9b('0x10c')][_0x4e9b('0xd4')](_0x5bc801['type'])&&_0xe3a3ff[_0x4e9b('0xa5')]['isLimit'](_0x5bc801[_0x4e9b('0x124')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5493=['_updateController','addComment','plugins','head','get','getSuggestion','suggestionLoaded','_destroyController','has','keys','isMultiRange','Accept\x20all\x20suggestions','hasSuggestion','buttonView','config','remove','commands','getJoined','comments.editorConfig','switchbutton','editor','TrackChangesEditing','_refreshActiveMarkers','_disableComments','registerAnnotation','Discard\x20all\x20selected\x20suggestions','map','commandName','Annotations','delete','change:activeAnnotations','Accept\x20all\x20selected\x20suggestions','comments.maxCommentsWhenCollapsed','requires','getMarkerNames','_handleControllerBuffer','comments.maxThreadTotalWeight','length','createAnnotationView','locale','mainView','bind','editing','filter','add','getFirstRange','type','listenTo','CommentsUI','activeAnnotations','refreshSelectedViews','size','focus','value','Discard\x20all\x20suggestions','init','some','lowest','CommentsRepository','comments','model','set','destroy','suggestion-','addSourceCollector','isOn','_annotationViews','EditorAnnotations','innerView','trackChanges.SuggestionThreadView','source','actionView','Track\x20changes','pluginName','CommentView','suggestionChanged','previous','_handleSuggestionControllerDelayed','discardAllSuggestions','unbind','trackChanges.disableComments','arrowView','getRanges','SuggestionThreadView','_initializeController','push','TrackChangesUI','componentFactory','acceptSelectedSuggestions','getMarkers','suggestionUnloaded','acceptAllSuggestions','execute','getDescriptions','descriptionParts','reduce','isEnabled','activeMarkers','_viewToController','stopListening','acceptButton','define','button','separator','isInContent','comments.maxCommentCharsWhenCollapsed','_descriptionFactory','_suggestionToController','getAllAdjacentSuggestions','clear','trackChanges','_createUIButton','from','change:previous','isDirty','view','discardSelectedSuggestions','toMany'];(function(_0x3d27e6,_0x5493a0){const _0x99521b=function(_0x3bc1f5){while(--_0x3bc1f5){_0x3d27e6['push'](_0x3d27e6['shift']());}};_0x99521b(++_0x5493a0);}(_0x5493,0x165));const _0x9952=function(_0x3d27e6,_0x5493a0){_0x3d27e6=_0x3d27e6-0x0;let _0x99521b=_0x5493[_0x3d27e6];return _0x99521b;};import{Plugin as _0x62471d}from'ckeditor5/src/core';import{Collection as _0x223b16}from'ckeditor5/src/utils';import{Model as _0x5ae391,SplitButtonView as _0x5bb54a,createDropdown as _0x252fc6,addListToDropdown as _0x4cc014}from'ckeditor5/src/ui';import{Users as _0x5012ac,getDateTimeFormatter as _0x2a0970,getAllMarkersDomElementsSorted as _0x7f301}from'ckeditor5-collaboration/src/collaboration-core';import _0x59d46a from'./trackchangesediting';import _0xcef13b from'./ui/suggestioncontroller';import _0x605b50 from'./ui/view/suggestionthreadview';import{getTranslation as _0x49db51}from'./utils/common-translations';import _0x4778fb from'../theme/icons/track-changes.svg';export default class d extends _0x62471d{static get[_0x9952('0x1e')](){return[_0x59d46a,_0x5012ac,_0x9952('0x37'),_0x9952('0x19'),_0x9952('0x40')];}static get[_0x9952('0x46')](){return _0x9952('0x53');}constructor(_0x58aa95){super(_0x58aa95),this[_0x9952('0x68')]=new Map(),this['_viewToController']=new Map(),this[_0x9952('0x3f')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x220974=this[_0x9952('0x11')][_0x9952('0xb')];_0x220974[_0x9952('0x62')](_0x9952('0x42'),_0x605b50),_0x220974[_0x9952('0x62')]('trackChanges.disableComments',!0x1),this[_0x9952('0x14')]=_0x220974[_0x9952('0x1')](_0x9952('0x4d'));}['_handleSuggestionControllerDelayed'](_0x314f3e,_0x50aa33){0x0===this[_0x9952('0x20')][_0x9952('0x30')]&&setTimeout(()=>{for(const [_0x5b56cd,_0x34d3aa]of this[_0x9952('0x20')]){const _0x188775=this[_0x9952('0x68')][_0x9952('0x5')](_0x5b56cd);_0x188775||_0x34d3aa?_0x188775&&_0x34d3aa&&this['_destroyController'](_0x5b56cd):this[_0x9952('0x51')](_0x5b56cd);}this[_0x9952('0x11')][_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x40'))[_0x9952('0x2f')](),this[_0x9952('0x13')](),this[_0x9952('0x20')][_0x9952('0x6a')]();},0xa),this[_0x9952('0x20')][_0x9952('0x3a')](_0x314f3e,_0x50aa33);}[_0x9952('0x34')](){const _0xfb200e=this[_0x9952('0x11')],_0x4f7cc6=_0xfb200e[_0x9952('0x75')]['get'](_0x9952('0x12')),_0xd88bc6=_0xfb200e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x19')),_0x36b6bc=_0xfb200e[_0x9952('0x75')][_0x9952('0x1')]('EditorAnnotations'),_0x1237e1=_0xfb200e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x37'));_0xfb200e['ui'][_0x9952('0x54')][_0x9952('0x29')](_0x9952('0x6b'),_0x179afc=>this[_0x9952('0x6c')](_0x179afc)),_0x36b6bc[_0x9952('0x3d')](()=>{const _0x363db6=[];for(const [_0x1f5b86,_0x51d394]of Array[_0x9952('0x6d')](this['_suggestionToController'])){const _0x585e60=_0x1f5b86[_0x9952('0x69')](),_0x12f916=[];for(const _0x2c3fc6 of _0x585e60){if(!_0x2c3fc6[_0x9952('0x65')])continue;if(_0x2c3fc6[_0x9952('0x7')]){_0x12f916[_0x9952('0x52')](..._0x2c3fc6[_0x9952('0x4f')]());continue;}const _0x553e6a=_0x2c3fc6[_0x9952('0x2a')]();if(_0x12f916[_0x9952('0x22')]>0x0){const _0x3bf9f4=_0x12f916[0x0][_0x9952('0xe')](_0x553e6a);if(_0x3bf9f4){_0x12f916[0x0]=_0x3bf9f4;continue;}}_0x12f916[_0x9952('0x52')](_0x553e6a);}_0x363db6[_0x9952('0x52')]([_0x51d394[_0x9952('0x70')],_0x12f916]);}return _0x363db6;}),this['listenTo'](_0x4f7cc6,_0x9952('0x3'),(_0x4e7451,_0x13889e)=>{this[_0x9952('0x2c')](_0x13889e,_0x9952('0x6e'),(_0x2903b1,_0x90cda2,_0x257f8a,_0x226be2)=>{_0x13889e[_0x9952('0x65')]&&(null==_0x257f8a?(this[_0x9952('0x73')](_0x226be2[_0x9952('0x0')]),this[_0x9952('0x4a')](_0x13889e,!0x1)):(this[_0x9952('0x73')](_0x257f8a[_0x9952('0x0')]),this['_handleSuggestionControllerDelayed'](_0x13889e,!0x0)));}),null===_0x13889e[_0x9952('0x49')]?this['_handleSuggestionControllerDelayed'](_0x13889e,!0x1):this[_0x9952('0x73')](_0x13889e[_0x9952('0x0')]);}),this[_0x9952('0x2c')](_0x4f7cc6,_0x9952('0x57'),(_0x57521d,_0x4808b7,_0x226c4f)=>{this[_0x9952('0x60')](_0x4808b7,_0x9952('0x6e')),this[_0x9952('0x20')][_0x9952('0x1a')](_0x4808b7);const _0x18253c=_0x226c4f?_0x226c4f[_0x9952('0x0')]:_0x4808b7,_0x11d894=this[_0x9952('0x68')][_0x9952('0x1')](_0x18253c);null!==_0x226c4f&&this[_0x9952('0x73')](_0x18253c),null===_0x226c4f&&_0x11d894&&this[_0x9952('0x4')](_0x4808b7);}),this[_0x9952('0x2c')](_0x4f7cc6,_0x9952('0x48'),(_0x23a618,_0x2524de)=>{this[_0x9952('0x73')](_0x2524de);}),this[_0x9952('0x2c')](_0xd88bc6,_0x9952('0x1b'),()=>{this[_0x9952('0x13')]();}),this[_0x9952('0x2c')](_0x1237e1,_0x9952('0x74'),(_0x1fa383,{threadId:_0x2880dc,isFromAdapter:_0x4b4f9e})=>{if(_0x4b4f9e||!_0x4f7cc6[_0x9952('0x9')](_0x2880dc))return;const _0x56a10d=_0x4f7cc6[_0x9952('0x2')](_0x2880dc);this[_0x9952('0x68')][_0x9952('0x1')](_0x56a10d)[_0x9952('0x70')]['focus']();},{'priority':_0x9952('0x36')});}[_0x9952('0x13')](){const _0x38f57f=this[_0x9952('0x11')]['plugins'][_0x9952('0x1')](_0x9952('0x19')),_0x34e9f1=this[_0x9952('0x11')][_0x9952('0x75')][_0x9952('0x1')]('TrackChangesEditing'),_0x1684b4=Array[_0x9952('0x6d')](_0x38f57f[_0x9952('0x2e')],_0xf9e46e=>_0xf9e46e[_0x9952('0x41')])[_0x9952('0x28')](_0x31ceca=>this['_viewToController'][_0x9952('0x5')](_0x31ceca)),_0xbbd7ab=[];for(const _0xe00896 of _0x1684b4){const _0x1f099b=this['_viewToController']['get'](_0xe00896)[_0x9952('0x39')][_0x9952('0x69')]();_0xbbd7ab['push'](..._0x1f099b[_0x9952('0x5c')]((_0x55e9fb,_0x2fa613)=>[..._0x55e9fb,..._0x2fa613[_0x9952('0x1f')]()],[]));}_0x34e9f1[_0x9952('0x5e')]=_0xbbd7ab;}[_0x9952('0x6c')](_0x5a6470){const _0x3832e0=_0x252fc6(_0x5a6470,_0x5bb54a),_0x4691c5=this[_0x9952('0x11')][_0x9952('0xd')][_0x9952('0x1')](_0x9952('0x6b')),_0x2fe7d1=_0x49db51(_0x5a6470,_0x9952('0x45'));_0x3832e0['buttonView'][_0x9952('0x3a')]({'tooltip':_0x2fe7d1,'label':_0x2fe7d1,'icon':_0x4778fb}),_0x3832e0[_0x9952('0xa')]['bind']('isOn')['to'](_0x4691c5,_0x9952('0x32')),_0x3832e0[_0x9952('0xa')]['on'](_0x9952('0x59'),()=>{_0x4691c5[_0x9952('0x59')](),this[_0x9952('0x11')][_0x9952('0x27')][_0x9952('0x70')][_0x9952('0x31')]();});const _0x1d6410=new _0x223b16(),_0x3db02d=[{'type':_0x9952('0x10'),'model':{'withText':!0x0,'label':_0x2fe7d1,'commandName':_0x9952('0x6b')}},{'type':_0x9952('0x64')},{'type':_0x9952('0x63'),'model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x8')),'commandName':_0x9952('0x58')}},{'type':_0x9952('0x63'),'model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x1c')),'commandName':_0x9952('0x55')}},{'type':_0x9952('0x63'),'model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x33')),'commandName':_0x9952('0x4b')}},{'type':'button','model':{'withText':!0x0,'label':_0x49db51(_0x5a6470,_0x9952('0x16')),'commandName':_0x9952('0x71')}}];for(const _0x202231 of _0x3db02d){let _0x44e8cd={'type':_0x9952('0x64')};if(_0x202231[_0x9952('0x39')]){const _0x2fe58a=new _0x5ae391(_0x202231[_0x9952('0x39')]),_0x39eef4=this[_0x9952('0x11')]['commands']['get'](_0x2fe58a['commandName']);_0x2fe58a[_0x9952('0x26')](_0x9952('0x3e'),'isEnabled')['to'](_0x39eef4,_0x9952('0x32'),_0x9952('0x5d')),_0x44e8cd={'type':_0x202231[_0x9952('0x2b')],'model':_0x2fe58a};}_0x1d6410[_0x9952('0x29')](_0x44e8cd);}_0x4cc014(_0x3832e0,_0x1d6410);const _0x51a0b3=_0x3db02d[_0x9952('0x28')](_0x13cac1=>null!=_0x13cac1[_0x9952('0x39')])[_0x9952('0x17')](_0x572d96=>this[_0x9952('0x11')][_0x9952('0xd')][_0x9952('0x1')](_0x572d96[_0x9952('0x39')][_0x9952('0x18')])),_0x3be6f2=_0x3832e0[_0x9952('0xa')];return _0x3be6f2[_0x9952('0x44')]['unbind'](_0x9952('0x5d')),_0x3be6f2[_0x9952('0x4e')][_0x9952('0x4c')](_0x9952('0x5d')),_0x3be6f2[_0x9952('0x44')]['bind'](_0x9952('0x5d'))['to'](_0x4691c5,_0x9952('0x5d')),_0x3be6f2[_0x9952('0x4e')][_0x9952('0x26')](_0x9952('0x5d'))[_0x9952('0x72')](_0x51a0b3,_0x9952('0x5d'),(..._0x369ea5)=>_0x369ea5[_0x9952('0x35')](_0x1ccb9b=>_0x1ccb9b)),_0x3832e0['on']('execute',_0x576bc8=>{this[_0x9952('0x11')][_0x9952('0x59')](_0x576bc8[_0x9952('0x43')][_0x9952('0x18')]),this[_0x9952('0x11')][_0x9952('0x27')][_0x9952('0x70')][_0x9952('0x31')]();}),_0x3832e0;}[_0x9952('0x51')](_0x1f9e61){const _0x59d91e=this[_0x9952('0x11')],_0x24c3e5=_0x59d91e[_0x9952('0xb')],_0x1bfd6d=_0x59d91e['plugins']['get']('Annotations'),_0x1e5075=_0x59d91e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x37')),_0x2715d2=_0x59d91e[_0x9952('0x75')][_0x9952('0x1')]('EditorAnnotations'),_0xd5a334=_0x59d91e['plugins']['get'](_0x5012ac)['me'],_0x38234a=_0x24c3e5['get'](_0x9952('0x6b'))[_0x9952('0x50')],{CommentsListView:_0x56fa46,CommentThreadInputView:_0x137632}=_0x59d91e['plugins'][_0x9952('0x1')](_0x9952('0x2d'));let _0x3713a7,_0x23957c;this[_0x9952('0x3f')]['has'](_0x1f9e61['id'])?(_0x23957c=this[_0x9952('0x3f')][_0x9952('0x1')](_0x1f9e61['id']),_0x3713a7=_0x23957c[_0x9952('0x25')]):(_0x3713a7=new _0x38234a(_0x59d91e[_0x9952('0x24')],_0x1f9e61,_0xd5a334,{'disableComments':this[_0x9952('0x14')],'editorConfig':_0x24c3e5[_0x9952('0x1')](_0x9952('0xf')),'maxCommentsWhenCollapsed':_0x24c3e5[_0x9952('0x1')](_0x9952('0x1d')),'maxThreadTotalWeight':_0x24c3e5[_0x9952('0x1')](_0x9952('0x21')),'maxCommentCharsWhenCollapsed':_0x24c3e5[_0x9952('0x1')](_0x9952('0x66')),'formatDateTime':_0x2a0970(_0x24c3e5['get'](_0x9952('0x24'))),'CommentView':_0x24c3e5['get'](_0x9952('0x38'))[_0x9952('0x47')],'CommentsListView':_0x56fa46,'CommentThreadInputView':_0x137632}),_0x3713a7[_0x9952('0x61')]['on']('execute',()=>{_0x59d91e[_0x9952('0x27')][_0x9952('0x70')][_0x9952('0x31')]();}),_0x3713a7['discardButton']['on']('execute',()=>{_0x59d91e[_0x9952('0x27')]['view'][_0x9952('0x31')]();}),_0x23957c=_0x1bfd6d[_0x9952('0x23')](this[_0x9952('0x11')]['locale'],_0x3713a7),_0x23957c[_0x9952('0x26')](_0x9952('0x6f'))['to'](_0x3713a7,_0x9952('0x6f')),_0x23957c['bind'](_0x9952('0x22'))['to'](_0x3713a7),_0x23957c['bind'](_0x9952('0x2b'))['to'](_0x3713a7,_0x9952('0x2b'),_0xe126ac=>_0x9952('0x3c')+_0xe126ac),this[_0x9952('0x3f')][_0x9952('0x3a')](_0x1f9e61['id'],_0x23957c));const _0xe37757=_0x1e5075['createCommentThreadController'](_0x1f9e61['commentThread'],_0x3713a7),_0x47f1b7=new _0xcef13b(_0x59d91e,_0x1f9e61,_0x3713a7,_0xe37757),_0x5cd5b1=_0x1f9e61[_0x9952('0x69')]()[_0x9952('0x28')](_0x13d1f3=>_0x13d1f3[_0x9952('0x65')]);_0x3713a7[_0x9952('0x5b')]=_0x59d91e[_0x9952('0x75')][_0x9952('0x1')](_0x9952('0x12'))[_0x9952('0x67')][_0x9952('0x5a')](_0x5cd5b1),this[_0x9952('0x68')][_0x9952('0x3a')](_0x1f9e61,_0x47f1b7),this[_0x9952('0x5f')][_0x9952('0x3a')](_0x3713a7,_0x47f1b7);const _0x24cef4=_0x1bfd6d['createAnnotation']({'view':_0x23957c,'target':()=>{const _0x12afe1=[],_0x352a49=_0x1f9e61[_0x9952('0x69')]()[_0x9952('0x28')](_0x385f6a=>_0x385f6a[_0x9952('0x65')]);for(const _0x381426 of _0x352a49)_0x12afe1[_0x9952('0x52')](..._0x381426[_0x9952('0x56')]());return _0x7f301(_0x59d91e[_0x9952('0x27')],_0x12afe1);},'type':()=>_0x9952('0x3c')+_0x47f1b7[_0x9952('0x70')][_0x9952('0x2b')]});_0x1bfd6d[_0x9952('0x29')](_0x24cef4),_0x2715d2[_0x9952('0x15')](_0x24cef4);}[_0x9952('0x4')](_0x38a3bf){const _0x5a72fd=this[_0x9952('0x11')]['plugins'][_0x9952('0x1')]('Annotations'),_0x2515c5=this['_suggestionToController']['get'](_0x38a3bf),_0x81fd1b=_0x2515c5[_0x9952('0x70')],_0x442d48=_0x5a72fd['getByInnerView'](_0x81fd1b);_0x442d48&&_0x5a72fd[_0x9952('0xc')](_0x442d48),this[_0x9952('0x68')][_0x9952('0x1a')](_0x38a3bf),this[_0x9952('0x5f')][_0x9952('0x1a')](_0x81fd1b),_0x2515c5[_0x9952('0x3b')]();}[_0x9952('0x73')](_0x2b4e1f){if(!_0x2b4e1f['isInContent']||!this[_0x9952('0x68')][_0x9952('0x5')](_0x2b4e1f))return;const _0x9f1b82=this['editor'][_0x9952('0x75')]['get']('TrackChangesEditing'),_0x48fa13=this['_suggestionToController']['get'](_0x2b4e1f),_0x5479be=_0x2b4e1f[_0x9952('0x69')]();_0x48fa13[_0x9952('0x70')][_0x9952('0x5b')]=_0x9f1b82['_descriptionFactory'][_0x9952('0x5a')](_0x5479be);}[_0x9952('0x3b')](){for(const _0x287ed1 of this['_suggestionToController'][_0x9952('0x6')]())this[_0x9952('0x4')](_0x287ed1);for(const _0xdbc977 of this[_0x9952('0x3f')]['values']())_0xdbc977[_0x9952('0x25')][_0x9952('0x3b')]();super[_0x9952('0x3b')]();}}
|
|
23
|
+
const _0xefea=['separator','unbind','isInContent','execute','length','getByInnerView','_destroyController','createAnnotationView','_viewToController','trackChanges','size','getDescriptions','CommentsRepository','EditorAnnotations','commands','remove','discardButton','button','discardSelectedSuggestions','type','define','editing','suggestion-','getMarkerNames','Discard\x20all\x20suggestions','filter','change:activeAnnotations','mainView','_bindAnnotationToEditors','listenTo','acceptSelectedSuggestions','some','add','buttonView','set','TrackChangesUI','Discard\x20all\x20selected\x20suggestions','TrackChangesEditing','map','init','suggestionChanged','acceptAllSuggestions','destroy','comments.maxCommentsWhenCollapsed','_initializeController','innerView','comments.editorConfig','descriptionParts','head','commentThread','reduce','config','hasSuggestion','CommentView','has','suggestionLoaded','previous','focus','_disableComments','value','_refreshActiveMarkers','trackChanges.SuggestionThreadView','_updateController','comments','view','arrowView','plugins','bind','componentFactory','keys','_handleSuggestionControllerDelayed','pluginName','model','_descriptionFactory','activeMarkers','Annotations','getSuggestion','isOn','CommentsUI','isDirty','change:previous','SuggestionThreadView','from','addComment','addSourceCollector','editor','_handleControllerBuffer','_suggestionToController','_annotationViews','discardAllSuggestions','acceptButton','trackChanges.disableComments','getAllAdjacentSuggestions','delete','comments.maxCommentCharsWhenCollapsed','get','getFirstRange','getRanges','createCommentThreadController','actionView','isEnabled','switchbutton','push','activeAnnotations','refreshSelectedViews','Accept\x20all\x20selected\x20suggestions','locale','toMany','commandName'];(function(_0x2b159c,_0xefea5e){const _0x5ee5ed=function(_0x337632){while(--_0x337632){_0x2b159c['push'](_0x2b159c['shift']());}};_0x5ee5ed(++_0xefea5e);}(_0xefea,0x119));const _0x5ee5=function(_0x2b159c,_0xefea5e){_0x2b159c=_0x2b159c-0x0;let _0x5ee5ed=_0xefea[_0x2b159c];return _0x5ee5ed;};import{Plugin as _0x4a00b1}from'ckeditor5/src/core';import{Collection as _0xb0859c}from'ckeditor5/src/utils';import{Model as _0x35e809,SplitButtonView as _0x390442,createDropdown as _0x5ecbce,addListToDropdown as _0x38c074}from'ckeditor5/src/ui';import{Users as _0x368dc9,getDateTimeFormatter as _0x5785a0,getAllMarkersDomElementsSorted as _0x444aff}from'ckeditor5-collaboration/src/collaboration-core';import _0xc3ade1 from'./trackchangesediting';import _0x1d5b55 from'./ui/suggestioncontroller';import _0x310e7c from'./ui/view/suggestionthreadview';import{getTranslation as _0x4692cd}from'./utils/common-translations';import _0x4252f4 from'../theme/icons/track-changes.svg';export default class d extends _0x4a00b1{static get['requires'](){return[_0xc3ade1,_0x368dc9,'CommentsRepository',_0x5ee5('0xc'),_0x5ee5('0x3b')];}static get[_0x5ee5('0x8')](){return _0x5ee5('0x51');}constructor(_0x485eae){super(_0x485eae),this[_0x5ee5('0x18')]=new Map(),this[_0x5ee5('0x36')]=new Map(),this['_annotationViews']=new Map(),this[_0x5ee5('0x17')]=new Map();const _0x46af4e=this['editor'][_0x5ee5('0x61')];_0x46af4e[_0x5ee5('0x42')](_0x5ee5('0x6b'),_0x310e7c),_0x46af4e['define'](_0x5ee5('0x1c'),!0x1),this[_0x5ee5('0x68')]=_0x46af4e[_0x5ee5('0x20')]('trackChanges.disableComments');}[_0x5ee5('0x7')](_0x2387d8,_0x505cdb){0x0===this[_0x5ee5('0x17')][_0x5ee5('0x38')]&&setTimeout(()=>{for(const [_0x509ff1,_0x4f3783]of this[_0x5ee5('0x17')]){const _0x864d80=this['_suggestionToController']['has'](_0x509ff1);_0x864d80||_0x4f3783?_0x864d80&&_0x4f3783&&this[_0x5ee5('0x34')](_0x509ff1):this[_0x5ee5('0x5a')](_0x509ff1);}this['editor']['plugins']['get'](_0x5ee5('0x3b'))[_0x5ee5('0x29')](),this[_0x5ee5('0x6a')](),this[_0x5ee5('0x17')]['clear']();},0xa),this[_0x5ee5('0x17')][_0x5ee5('0x50')](_0x2387d8,_0x505cdb);}[_0x5ee5('0x55')](){const _0x4e6f4c=this['editor'],_0x24f54d=_0x4e6f4c['plugins'][_0x5ee5('0x20')]('TrackChangesEditing'),_0x12c695=_0x4e6f4c[_0x5ee5('0x3')]['get']('Annotations'),_0x4a277f=_0x4e6f4c[_0x5ee5('0x3')][_0x5ee5('0x20')]('EditorAnnotations'),_0x45697c=_0x4e6f4c[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x3a'));_0x4e6f4c['ui'][_0x5ee5('0x5')]['add']('trackChanges',_0x13bf5f=>this['_createUIButton'](_0x13bf5f)),_0x4a277f[_0x5ee5('0x15')](()=>{const _0x320c88=[];for(const [_0x3a765b,_0x33ec87]of Array[_0x5ee5('0x13')](this[_0x5ee5('0x18')])){const _0x346b39=_0x3a765b['getAllAdjacentSuggestions'](),_0x4d119e=[];for(const _0x44c8c9 of _0x346b39){if(!_0x44c8c9[_0x5ee5('0x30')])continue;if(_0x44c8c9['isMultiRange']){_0x4d119e[_0x5ee5('0x27')](..._0x44c8c9[_0x5ee5('0x22')]());continue;}const _0xb49f81=_0x44c8c9[_0x5ee5('0x21')]();if(_0x4d119e[_0x5ee5('0x32')]>0x0){const _0x56232c=_0x4d119e[0x0]['getJoined'](_0xb49f81);if(_0x56232c){_0x4d119e[0x0]=_0x56232c;continue;}}_0x4d119e['push'](_0xb49f81);}_0x320c88['push']([_0x33ec87[_0x5ee5('0x1')],_0x4d119e]);}return _0x320c88;}),this[_0x5ee5('0x4b')](_0x24f54d,_0x5ee5('0x65'),(_0x4e63a7,_0x11bf33)=>{this['listenTo'](_0x11bf33,_0x5ee5('0x11'),(_0x48ebb1,_0x35cf12,_0x3e0b83,_0x568eb4)=>{_0x11bf33['isInContent']&&(null==_0x3e0b83?(this['_updateController'](_0x568eb4[_0x5ee5('0x5e')]),this[_0x5ee5('0x7')](_0x11bf33,!0x1)):(this[_0x5ee5('0x6c')](_0x3e0b83[_0x5ee5('0x5e')]),this[_0x5ee5('0x7')](_0x11bf33,!0x0)));}),null===_0x11bf33[_0x5ee5('0x66')]?this[_0x5ee5('0x7')](_0x11bf33,!0x1):this[_0x5ee5('0x6c')](_0x11bf33[_0x5ee5('0x5e')]);}),this[_0x5ee5('0x4b')](_0x24f54d,'suggestionUnloaded',(_0x870f28,_0x27797b,_0x252b71)=>{this['stopListening'](_0x27797b,'change:previous'),this[_0x5ee5('0x17')][_0x5ee5('0x1e')](_0x27797b);const _0x2b4c85=_0x252b71?_0x252b71['head']:_0x27797b,_0x3e5920=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2b4c85);null!==_0x252b71&&this[_0x5ee5('0x6c')](_0x2b4c85),null===_0x252b71&&_0x3e5920&&this[_0x5ee5('0x34')](_0x27797b);}),this[_0x5ee5('0x4b')](_0x24f54d,_0x5ee5('0x56'),(_0x550b72,_0x3423e2)=>{this['_updateController'](_0x3423e2);}),this[_0x5ee5('0x4b')](_0x12c695,_0x5ee5('0x48'),()=>{this[_0x5ee5('0x6a')]();}),this[_0x5ee5('0x4b')](_0x45697c,_0x5ee5('0x14'),(_0x146596,{threadId:_0x46d6c8,isFromAdapter:_0xb08a27})=>{if(_0xb08a27||!_0x24f54d[_0x5ee5('0x62')](_0x46d6c8))return;const _0x2d8dcf=_0x24f54d[_0x5ee5('0xd')](_0x46d6c8);this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2d8dcf)[_0x5ee5('0x1')][_0x5ee5('0x67')]();},{'priority':'lowest'});}[_0x5ee5('0x6a')](){const _0x266067=this[_0x5ee5('0x16')][_0x5ee5('0x3')][_0x5ee5('0x20')]('Annotations'),_0x4ef8e0=this[_0x5ee5('0x16')]['plugins']['get'](_0x5ee5('0x53')),_0x5c0f51=Array['from'](_0x266067[_0x5ee5('0x28')],_0x4f7275=>_0x4f7275[_0x5ee5('0x5b')])[_0x5ee5('0x47')](_0x5344cf=>this[_0x5ee5('0x36')][_0x5ee5('0x64')](_0x5344cf)),_0x39e57c=[];for(const _0x507490 of _0x5c0f51){const _0x3af8f4=this[_0x5ee5('0x36')]['get'](_0x507490)[_0x5ee5('0x9')][_0x5ee5('0x1d')]();_0x39e57c[_0x5ee5('0x27')](..._0x3af8f4[_0x5ee5('0x60')]((_0x4043a9,_0x351244)=>[..._0x4043a9,..._0x351244[_0x5ee5('0x45')]()],[]));}_0x4ef8e0[_0x5ee5('0xb')]=_0x39e57c;}['_createUIButton'](_0x253fd7){const _0x471934=_0x5ecbce(_0x253fd7,_0x390442),_0x17ac0e=this[_0x5ee5('0x16')][_0x5ee5('0x3c')][_0x5ee5('0x20')]('trackChanges'),_0x428eb8=_0x4692cd(_0x253fd7,'Track\x20changes');_0x471934['buttonView']['set']({'tooltip':_0x428eb8,'label':_0x428eb8,'icon':_0x4252f4}),_0x471934[_0x5ee5('0x4f')][_0x5ee5('0x4')](_0x5ee5('0xe'))['to'](_0x17ac0e,_0x5ee5('0x69')),_0x471934[_0x5ee5('0x4f')]['on']('execute',()=>{_0x17ac0e[_0x5ee5('0x31')](),this[_0x5ee5('0x16')][_0x5ee5('0x43')][_0x5ee5('0x1')][_0x5ee5('0x67')]();});const _0x3cc075=new _0xb0859c(),_0x1dfc9b=[{'type':_0x5ee5('0x26'),'model':{'withText':!0x0,'label':_0x428eb8,'commandName':_0x5ee5('0x37')}},{'type':_0x5ee5('0x2e')},{'type':_0x5ee5('0x3f'),'model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,'Accept\x20all\x20suggestions'),'commandName':_0x5ee5('0x57')}},{'type':'button','model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x2a')),'commandName':_0x5ee5('0x4c')}},{'type':'button','model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x46')),'commandName':_0x5ee5('0x1a')}},{'type':_0x5ee5('0x3f'),'model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x52')),'commandName':_0x5ee5('0x40')}}];for(const _0x1ee228 of _0x1dfc9b){let _0x2cb19d={'type':_0x5ee5('0x2e')};if(_0x1ee228['model']){const _0x55925a=new _0x35e809(_0x1ee228[_0x5ee5('0x9')]),_0x334427=this['editor'][_0x5ee5('0x3c')][_0x5ee5('0x20')](_0x55925a[_0x5ee5('0x2d')]);_0x55925a[_0x5ee5('0x4')](_0x5ee5('0xe'),_0x5ee5('0x25'))['to'](_0x334427,_0x5ee5('0x69'),_0x5ee5('0x25')),_0x2cb19d={'type':_0x1ee228['type'],'model':_0x55925a};}_0x3cc075[_0x5ee5('0x4e')](_0x2cb19d);}_0x38c074(_0x471934,_0x3cc075);const _0x4dc0f9=_0x1dfc9b[_0x5ee5('0x47')](_0x32077d=>null!=_0x32077d['model'])[_0x5ee5('0x54')](_0x2931f6=>this[_0x5ee5('0x16')][_0x5ee5('0x3c')]['get'](_0x2931f6[_0x5ee5('0x9')]['commandName'])),_0x29e2e9=_0x471934[_0x5ee5('0x4f')];return _0x29e2e9[_0x5ee5('0x24')][_0x5ee5('0x2f')](_0x5ee5('0x25')),_0x29e2e9['arrowView']['unbind'](_0x5ee5('0x25')),_0x29e2e9[_0x5ee5('0x24')][_0x5ee5('0x4')](_0x5ee5('0x25'))['to'](_0x17ac0e,_0x5ee5('0x25')),_0x29e2e9[_0x5ee5('0x2')][_0x5ee5('0x4')](_0x5ee5('0x25'))[_0x5ee5('0x2c')](_0x4dc0f9,_0x5ee5('0x25'),(..._0x3570a4)=>_0x3570a4[_0x5ee5('0x4d')](_0x3c5022=>_0x3c5022)),_0x471934['on']('execute',_0x68c00a=>{this[_0x5ee5('0x16')][_0x5ee5('0x31')](_0x68c00a['source']['commandName']),this[_0x5ee5('0x16')]['editing'][_0x5ee5('0x1')][_0x5ee5('0x67')]();}),_0x471934;}[_0x5ee5('0x5a')](_0x4edd9d){const _0xee818d=this['editor'],_0x334d01=_0xee818d[_0x5ee5('0x61')],_0x5d5a4e=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xc')),_0xf0eec9=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x3a')),_0x264889=_0xee818d['plugins']['get'](_0x5ee5('0x3b')),_0x27cbb8=_0xee818d[_0x5ee5('0x3')]['get'](_0x368dc9)['me'],_0x22b969=_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x37'))[_0x5ee5('0x12')],{CommentsListView:_0x505f6a,CommentThreadInputView:_0x296bbb}=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xf'));let _0x188b11,_0x16a607;this['_annotationViews'][_0x5ee5('0x64')](_0x4edd9d['id'])?(_0x16a607=this[_0x5ee5('0x19')][_0x5ee5('0x20')](_0x4edd9d['id']),_0x188b11=_0x16a607[_0x5ee5('0x49')]):(_0x188b11=new _0x22b969(_0xee818d['locale'],_0x4edd9d,_0x27cbb8,{'disableComments':this[_0x5ee5('0x68')],'editorConfig':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x5c')),'maxCommentsWhenCollapsed':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x59')),'maxThreadTotalWeight':_0x334d01[_0x5ee5('0x20')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x1f')),'formatDateTime':_0x5785a0(_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x2b'))),'CommentView':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x0'))[_0x5ee5('0x63')],'CommentsListView':_0x505f6a,'CommentThreadInputView':_0x296bbb}),_0x188b11[_0x5ee5('0x1b')]['on'](_0x5ee5('0x31'),()=>{_0xee818d[_0x5ee5('0x43')]['view'][_0x5ee5('0x67')]();}),_0x188b11[_0x5ee5('0x3e')]['on']('execute',()=>{_0xee818d[_0x5ee5('0x43')]['view'][_0x5ee5('0x67')]();}),_0x16a607=_0x5d5a4e[_0x5ee5('0x35')](this['editor'][_0x5ee5('0x2b')],_0x188b11),_0x16a607['bind'](_0x5ee5('0x10'))['to'](_0x188b11,_0x5ee5('0x10')),_0x16a607[_0x5ee5('0x4')](_0x5ee5('0x32'))['to'](_0x188b11),_0x16a607[_0x5ee5('0x4')](_0x5ee5('0x41'))['to'](_0x188b11,_0x5ee5('0x41'),_0x2dc0aa=>'suggestion-'+_0x2dc0aa),this[_0x5ee5('0x19')][_0x5ee5('0x50')](_0x4edd9d['id'],_0x16a607));const _0x37e70f=_0xf0eec9[_0x5ee5('0x23')](_0x4edd9d[_0x5ee5('0x5f')],_0x188b11),_0x58f1a6=new _0x1d5b55(_0xee818d,_0x4edd9d,_0x188b11,_0x37e70f),_0x355140=_0x4edd9d[_0x5ee5('0x1d')]()[_0x5ee5('0x47')](_0x472375=>_0x472375[_0x5ee5('0x30')]);_0x188b11['descriptionParts']=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x53'))[_0x5ee5('0xa')]['getDescriptions'](_0x355140),this[_0x5ee5('0x18')][_0x5ee5('0x50')](_0x4edd9d,_0x58f1a6),this[_0x5ee5('0x36')][_0x5ee5('0x50')](_0x188b11,_0x58f1a6);const _0x53bdd4=_0x5d5a4e['createAnnotation']({'view':_0x16a607,'target':()=>{const _0x2adbb8=[],_0x310a92=_0x4edd9d[_0x5ee5('0x1d')]()[_0x5ee5('0x47')](_0x593142=>_0x593142[_0x5ee5('0x30')]);for(const _0x3b53a2 of _0x310a92)_0x2adbb8[_0x5ee5('0x27')](..._0x3b53a2['getMarkers']());return _0x444aff(_0xee818d['editing'],_0x2adbb8);},'type':()=>_0x5ee5('0x44')+_0x58f1a6[_0x5ee5('0x1')][_0x5ee5('0x41')]});_0xf0eec9[_0x5ee5('0x4a')](_0x188b11,_0x53bdd4),_0x5d5a4e[_0x5ee5('0x4e')](_0x53bdd4),_0x264889['registerAnnotation'](_0x53bdd4);}[_0x5ee5('0x34')](_0x2c1523){const _0x5630b4=this['editor'][_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xc')),_0x535214=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2c1523),_0x529396=_0x535214['view'],_0x5499a7=_0x5630b4[_0x5ee5('0x33')](_0x529396);_0x5499a7&&_0x5630b4[_0x5ee5('0x3d')](_0x5499a7),this[_0x5ee5('0x18')]['delete'](_0x2c1523),this[_0x5ee5('0x36')][_0x5ee5('0x1e')](_0x529396),_0x535214[_0x5ee5('0x58')]();}[_0x5ee5('0x6c')](_0x148a38){if(!_0x148a38[_0x5ee5('0x30')]||!this[_0x5ee5('0x18')][_0x5ee5('0x64')](_0x148a38))return;const _0x4f4e70=this[_0x5ee5('0x16')][_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x53')),_0x2037b4=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x148a38),_0x2aca1b=_0x148a38['getAllAdjacentSuggestions']();_0x2037b4[_0x5ee5('0x1')][_0x5ee5('0x5d')]=_0x4f4e70[_0x5ee5('0xa')][_0x5ee5('0x39')](_0x2aca1b);}[_0x5ee5('0x58')](){for(const _0x103b51 of this['_suggestionToController'][_0x5ee5('0x6')]())this[_0x5ee5('0x34')](_0x103b51);for(const _0x40a70a of this[_0x5ee5('0x19')]['values']())_0x40a70a[_0x5ee5('0x49')][_0x5ee5('0x58')]();super[_0x5ee5('0x58')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x28d1=['PENDING_ACTION_SUGGESTION','model','canDiscard','commentThreadController','view','canEditAt','isEnabled','change:isDirty','unbind','_discardCommand','execute','_removePendingAction','canAccept','_acceptCommand','add','_editor','get','PendingActions','discardSuggestion','listenTo','stopListening','locale','getRanges','isDirty','_pendingAction','acceptSuggestion','commands','_setPendingAction','bind'];(function(_0x1dbe32,_0x28d106){const _0x1110a9=function(_0x15d43d){while(--_0x15d43d){_0x1dbe32['push'](_0x1dbe32['shift']());}};_0x1110a9(++_0x28d106);}(_0x28d1,0xe1));const _0x1110=function(_0x1dbe32,_0x28d106){_0x1dbe32=_0x1dbe32-0x0;let _0x1110a9=_0x28d1[_0x1dbe32];return _0x1110a9;};import{ObservableMixin as _0x1e83a5}from'ckeditor5/src/utils';import{getTranslation as _0xa628f9}from'../utils/common-translations';export default class qt extends _0x1e83a5(){constructor(_0x3677df,_0x142716,_0x431e71,_0x4297c1){super(),this[_0x1110('0x8')]=_0x142716,this['view']=_0x431e71,this[_0x1110('0xa')]=_0x4297c1,this[_0x1110('0x16')]=_0x3677df,this[_0x1110('0x14')]=_0x3677df[_0x1110('0x4')]['get'](_0x1110('0x3')),this[_0x1110('0x10')]=_0x3677df[_0x1110('0x4')][_0x1110('0x17')](_0x1110('0x19')),this[_0x1110('0xb')][_0x1110('0x6')](_0x1110('0xd'))['to'](this[_0x1110('0x14')],this['_discardCommand'],(_0x2079bf,_0x43d39d)=>_0x2079bf||_0x43d39d),this[_0x1110('0xb')][_0x1110('0x6')](_0x1110('0x13'))['to'](this[_0x1110('0x14')],_0x1110('0xd'),_0x511d7d=>_0x511d7d&&this[_0x1110('0x16')][_0x1110('0x8')]['canEditAt'](_0x142716[_0x1110('0x0')]())),this[_0x1110('0xb')][_0x1110('0x6')]('canDiscard')['to'](this[_0x1110('0x10')],_0x1110('0xd'),_0x3e7b25=>_0x3e7b25&&this['_editor'][_0x1110('0x8')][_0x1110('0xc')](_0x142716[_0x1110('0x0')]())),this[_0x1110('0x2')]=null,_0x431e71[_0x1110('0x1')]&&this[_0x1110('0x5')](),this[_0x1110('0x1a')](_0x431e71,_0x1110('0x3'),()=>this['acceptSuggestion']()),this[_0x1110('0x1a')](_0x431e71,_0x1110('0x19'),()=>this[_0x1110('0x19')]()),this[_0x1110('0x1a')](_0x431e71,_0x1110('0xe'),()=>{_0x431e71[_0x1110('0x1')]?this[_0x1110('0x5')]():this[_0x1110('0x12')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0x1110('0x11')](this[_0x1110('0x8')]['id']);}[_0x1110('0x19')](){this['_discardCommand']['execute'](this[_0x1110('0x8')]['id']);}['destroy'](){this[_0x1110('0xb')][_0x1110('0xf')](_0x1110('0xd')),this[_0x1110('0xb')][_0x1110('0xf')](_0x1110('0x13')),this[_0x1110('0xb')]['unbind'](_0x1110('0x9')),this[_0x1110('0x1b')](),this[_0x1110('0xa')]['destroy'](),this[_0x1110('0x2')]&&this[_0x1110('0x12')]();}[_0x1110('0x5')](){const _0x520cdd=_0xa628f9(this[_0x1110('0x16')][_0x1110('0x1c')],_0x1110('0x7'));this['_pendingAction']=this[_0x1110('0x16')]['plugins'][_0x1110('0x17')](_0x1110('0x18'))[_0x1110('0x15')](_0x520cdd);}[_0x1110('0x12')](){null!==this[_0x1110('0x2')]&&this['_editor']['plugins'][_0x1110('0x17')]('PendingActions')['remove'](this[_0x1110('0x2')]),this[_0x1110('0x2')]=null;}}
|