@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230908.0 → 0.0.0-nightly-20230910.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 _0x2d68=['isObject','getChanges','_adapter','isMultiRange','_enabledCommands','splitPosition','creator','previous','addUser','removed','removeMarker:suggestion:formatBlock','isAfter','_cutOutSuggestionMarker','elementEnd','_saved','_onDiscard','_joinSuggestions','isUndo','removeComment','deletion:','has','trackChanges.mergeNestedSuggestions','_defaultCallbacks','_registerDefaultCallbacks','change:data','howMany','data','originalSuggestionId','isCollapsed','push','formatInline:chain','updateSuggestion','registerPostFixer','createRange','formatInline:discard','getAllAdjacentSuggestions','item','isBefore','_handleNewSuggestionMarker','split','mapper','_addSuggestionMarker','showSuggestionHighlights','fromCharCode','suggestionLoaded','commands','size','getRanges','discardAllSuggestions','attributes','acceptSuggestion','isAtStart','elementToElement','ready','isIntersectingWithRange','formatInline','hasCommentThread','_removeSuggestion','getCustomProperty','getFirstRange','suggestionUnloaded','every','Users','activeMarkers','getItems','containsRange','getSuggestions','addClass','end','deletion:discard','normal','isDocumentOperation','formatBlock:accept','isLimit','update:suggestion','return','getUser','start','clear','registerCustomCallback','isNextTo','addMarkerName','substr','assign','formatInline:accept','parent','createPositionAfter','document','createdAt','author','conversion','clone','position','_updateSuggestionData','setSelection','backward','requires','isInsideObject','_getSuggestionData','hasSuggestion','getWalker','formatBlock','authoredAt','keys','getIntersection','data-suggestion','PENDING_ACTION_SUGGESTION','applyOperation','adapter','commentThread','createSelection','oldRange','delete','always','init','formatBlock:','editor','multi','_isForcedDefaultExecutionBlock','high','isAtEnd','@external','move','acceptSelectedSuggestions','error-saving-suggestion-data-suggestion-discarded','isExternal','_suggestionFactory','type','map','unbind','ck-suggestion-marker','nodeAfter','PendingActions','_commentsRepository','name','getAttribute','addSuggestionData','_setSuggestionData','plugins','before','trackChanges','model','highest','getSuggestionCallback','add','formatInline:join','_createSuggestion','enableCommand','containsItem','track-changes-adapter-already-set','config','getLastMatchingPosition','chain','default','addMarker:suggestion:formatBlock','toViewElement','batch','define','fire','set','updateMarker','join','pluginName','acceptAllSuggestions','insertion','markerReady','CommentsRepository','createRangeIn','get','isLocal','unbindElementFromMarkerName','accept','trackChangesCommand','enqueueChange','removeMarkers','addComment','removeClass','createPositionBefore','editing','toJSON','nodeBefore','getMultiRangeId','_isDataLoaded','discardSuggestion','then','never','getShiftedBy','widget','isInContent','_addThreadToSuggestion','external:','includes','isEqual','_getAuthorFromId','insertion:discard','rejected','some','$graveyard','after','deletion','track-changes-suggestion-not-found','$textProxy','deletion:accept','isRemovable','lowest','_model','insertion:accept','subType','schema','discardSelectedSuggestions','deletion:chain','detach','rootName','bindElementToMarker','fetchCommentThread','insert','value','range','filter','_checkSuggestionCorrectness','execute','fromRange','resolve','buildSuggestion','forceDefaultExecution','markInsertion','containsRangeInObject','addRange','dataDowncast','dataReady','trackChanges.trackFormatChanges','group','locale','setAttribute','values','_editor','_suggestionState','formatGroupId','discard','isArray','reconvertMarker','options','getNearestSelectionRange','getChangedMarkers','markerToHighlight','suggestion:','getMarkers','for','isOwn','track-changes-adapter-missing-getsuggestion','getDifference','_trackFormatChanges','consume','root','addSuggestion','forward','authorName','markerNameToElements','insertContent','markDeletion','next','getRange','formatBlock:chain','_rangeIsInLocalUserInsertion','markBlockFormat','editingDowncast','_customCallbacks','dataToMarker','notReady','_suggestions','differ','_mergeNestedSuggestions','remove','ck-suggestion-marker-formatBlock','markInlineFormat','track-changes-suggestion-data-mismatch','getSuggestion','marker-count','markerToData','newRange','createPositionAt','commandName','skipNestingCheck','TrackChangesEditing','createElement','change:_saved','moveTargetPosition','addHighlight','getAncestors','_findSuggestions','isBlock','_refreshSuggestionsChain','_breakSuggestionMarker','containerElement','containsPosition','consumable','change','ck-suggestion-marker--active','stop','hasComments','writer','listenTo','elementStart','addMarker','head','removeMarker','suggestion','markerName','getFirstMarker','_joinWithAdjacentSuggestions','formatBlock:discard','upcast','from','change:activeMarkers','_splitMarkerName','removeAttribute','length','formatInline:','insertion:','multipleBlocks','_setSuggestionRange','low'];(function(_0x509f57,_0x2d68ec){const _0x5663d5=function(_0x511d0c){while(--_0x511d0c){_0x509f57['push'](_0x509f57['shift']());}};_0x5663d5(++_0x2d68ec);}(_0x2d68,0x1b6));const _0x5663=function(_0x509f57,_0x2d68ec){_0x509f57=_0x509f57-0x0;let _0x5663d5=_0x2d68[_0x509f57];return _0x5663d5;};import{Plugin as _0x16ebc9,PendingActions as _0xde3cd1}from'ckeditor5/src/core';import{LiveRange as _0x21149e}from'ckeditor5/src/engine';import{CKEditorError as _0x464c58,uid as _0x38e0ed,priorities as _0x2e04e5,logWarning as _0x22fae2}from'ckeditor5/src/utils';import{toWidget as _0x8bc719}from'ckeditor5/src/widget';import{Users as _0x3b3bef,hashObject as _0x17dee1}from'ckeditor5-collaboration/src/collaboration-core';import _0x1ed372 from'./commands/trackchangescommand';import _0x1bc67b from'./commands/acceptsuggestioncommand';import _0x2dbde8 from'./commands/discardsuggestioncommand';import _0x374b1f from'./commands/executeonallsuggestionscommand';import _0xed453c from'./commands/executeonselectedsuggestionscommand';import _0x1b2caa from'./suggestion';import _0x2a7ab4 from'./suggestiondescriptionfactory';import _0x2be2da from'./integrations/alignment';import _0x33561e from'./integrations/basicstyles';import _0x3231f2 from'./integrations/blockquote';import _0x1b90be from'./integrations/ckbox';import _0x356c62 from'./integrations/codeblock';import _0x1127cf from'./integrations/comments';import _0x5942ef from'./integrations/deletecommand';import _0x27aa11 from'./integrations/documentlist';import _0x1ffcb3 from'./integrations/entercommand';import _0xab7ccd from'./integrations/findandreplace';import _0xd4daf5 from'./integrations/font';import _0x275f2e from'./integrations/formatpainter';import _0x12e22e from'./integrations/heading';import _0x5696e9 from'./integrations/highlight';import _0x1b9e73 from'./integrations/horizontalline';import _0x3b7b43 from'./integrations/htmlembed';import _0x423ca1 from'./integrations/image';import _0x15be78 from'./integrations/imagereplace';import _0x42789e from'./integrations/importword';import _0x5a4a90 from'./integrations/indent';import _0x405ac7 from'./integrations/inputcommand';import _0x4a5796 from'./integrations/link';import _0x1f48c5 from'./integrations/list';import _0x5215d9 from'./integrations/listproperties';import _0x3f6d06 from'./integrations/mediaembed';import _0x13b537 from'./integrations/mention';import _0x25c17e from'./integrations/pagebreak';import _0x2aa9fb from'./integrations/paragraph';import _0x3e0079 from'./integrations/removeformat';import _0x1a6035 from'./integrations/restrictededitingmode';import _0x4107de from'./integrations/shiftentercommand';import _0x2968e0 from'./integrations/standardeditingmode';import _0x3512eb from'./integrations/style';import _0x5bfa53 from'./integrations/table';import _0x3fd7d4 from'./integrations/tablemergesplit';import _0x4ccd1b from'./integrations/tableheadings';import _0x18fe2e from'./integrations/tableclipboard';import _0x218897 from'./integrations/tablecolumnresize';import _0x42d20b from'./integrations/template';import _0x11af3c from'./integrations/tableofcontents';import _0x35f81d from'./integrations/title';import _0x4aa537 from'./integrations/undo';import{getTranslation as _0x393f40}from'./utils/common-translations';import _0x4ca231 from'./integrations/tablecaption';import _0x320329 from'./integrations/documentlistproperties';import _0x24b51e from'./integrations/tableproperties';import{isEqual as _0x17381c}from'lodash-es';export default class p extends _0x16ebc9{static get[_0x5663('0x12e')](){return['CommentsRepository',_0x3b3bef,_0xde3cd1,_0x2be2da,_0x33561e,_0x3231f2,_0x1b90be,_0x356c62,_0x1127cf,_0x5942ef,_0x27aa11,_0x320329,_0x1ffcb3,_0xab7ccd,_0xd4daf5,_0x275f2e,_0x12e22e,_0x5696e9,_0x1b9e73,_0x3b7b43,_0x423ca1,_0x15be78,_0x42789e,_0x5a4a90,_0x405ac7,_0x4a5796,_0x1f48c5,_0x5215d9,_0x3f6d06,_0x13b537,_0x25c17e,_0x2aa9fb,_0x3e0079,_0x1a6035,_0x4107de,_0x2968e0,_0x3512eb,_0x5bfa53,_0x3fd7d4,_0x4ccd1b,_0x4ca231,_0x18fe2e,_0x218897,_0x11af3c,_0x24b51e,_0x42d20b,_0x35f81d,_0x4aa537];}static get[_0x5663('0x2e')](){return _0x5663('0xa7');}constructor(_0x2fb99f){function _0x438883(_0x548263){return _0x548263[_0x5663('0xc')](_0x4ed485=>String[_0x5663('0xf9')](_0x4ed485))[_0x5663('0x2d')]('');}super(_0x2fb99f),this[_0x5663('0x2b')](_0x5663('0x10d'),[]),this['on'](_0x5663('0xc5'),(_0x417ec3,_0x3fd6da,_0x1cc59b,_0x3d829a)=>{this[_0x5663('0x59')][_0x5663('0xb4')](()=>{for(const _0x226fc9 of[..._0x3d829a,..._0x1cc59b])this[_0x5663('0x59')]['markers'][_0x5663('0xe2')](_0x226fc9)&&_0x2fb99f[_0x5663('0x3e')][_0x5663('0x7c')](_0x226fc9);});}),this['_descriptionFactory']=new _0x2a7ab4(this['editor'][_0x5663('0x19')][_0x5663('0x5c')],this['editor'][_0x5663('0x74')]),this[_0x5663('0xd0')]=null,this[_0x5663('0xa')]=new Dt(this[_0x5663('0x0')]),this[_0x5663('0x99')]=new Map(),this[_0x5663('0x11')]=_0x2fb99f[_0x5663('0x16')][_0x5663('0x34')]('CommentsRepository'),this[_0x5663('0xd2')]=new Set(),this[_0x5663('0x59')]=this[_0x5663('0x0')][_0x5663('0x19')],this[_0x5663('0x78')]=new WeakMap(),this[_0x5663('0x2')]=!0x1,_0x2fb99f['config'][_0x5663('0x29')](_0x5663('0x72'),_0x5663('0x25')),this['_trackFormatChanges']=_0x2fb99f[_0x5663('0x22')][_0x5663('0x34')](_0x5663('0x72')),_0x2fb99f[_0x5663('0x22')][_0x5663('0x29')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x5663('0x9b')]=_0x2fb99f[_0x5663('0x22')][_0x5663('0x34')](_0x5663('0xe3')),this[_0x5663('0x38')]=new _0x1ed372(_0x2fb99f,this[_0x5663('0xd2')]),this[_0x438883([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x438883([0x34,0x30,0x34,0x36,0x31,0x38,0x31,0x36]);}[_0x5663('0x140')](){const _0x37a8de=this[_0x5663('0x0')];_0x37a8de[_0x5663('0x128')]['for'](_0x5663('0x95'))[_0x5663('0x80')]({'model':_0x5663('0xbe'),'view':_0x4bd03b=>{const {id:_0x202324,type:_0x3a4f93}=this[_0x5663('0xc6')](_0x4bd03b[_0x5663('0xbf')]),_0x1ca474=[_0x5663('0xe'),'ck-suggestion-marker-'+_0x3a4f93];let _0x17966b=0xbb8;return this[_0x5663('0x10d')][_0x5663('0x4b')](_0x4bd03b[_0x5663('0xbf')])&&(_0x1ca474['push'](_0x5663('0xb5')),_0x17966b=0xbc2),_0x5663('0x53')==_0x3a4f93&&(_0x17966b+=0x5),{'classes':_0x1ca474,'attributes':{'data-suggestion':_0x202324},'priority':_0x17966b};}}),_0x37a8de[_0x5663('0x128')][_0x5663('0x83')]('dataDowncast')['add'](_0x4bb2b3=>{_0x4bb2b3['on']('addMarker:suggestion',(_0x7f4068,_0x41c642,_0x69bbc5)=>{if(!_0x69bbc5['options'][_0x5663('0xf8')])return;const _0x2da85c=_0x41c642[_0x5663('0xf2')];if(!_0x2da85c)return;const _0x2b648d=_0x69bbc5[_0x5663('0xf6')][_0x5663('0x27')](_0x2da85c);_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')]['isObject'](_0x2da85c)&&_0x2b648d&&!_0x2b648d[_0x5663('0x108')](_0x5663('0x47'))&&_0x2b648d['is'](_0x5663('0xb1'))&&_0x8bc719(_0x2b648d,_0x69bbc5[_0x5663('0xb8')]);},{'priority':_0x5663('0x3')});}),_0x37a8de[_0x5663('0x128')][_0x5663('0x83')](_0x5663('0x70'))[_0x5663('0x80')]({'model':_0x5663('0xbe'),'view':(_0x2b9b8b,_0x1b0960)=>{if(!_0x1b0960[_0x5663('0x7d')][_0x5663('0xf8')])return null;const {type:_0x2c15d7}=this[_0x5663('0xc6')](_0x2b9b8b[_0x5663('0xbf')]);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x2c15d7],'priority':0xbb8};}});const _0x3e8306=({showActiveMarkers:_0x1627f1=!0x0}={})=>(_0x4eb63e,_0x120053,_0x1fb10f)=>{if(!_0x120053['item'])return;if(_0x120053[_0x5663('0xf2')]['is']('selection'))return void _0x1fb10f['consumable']['consume'](_0x120053['item'],_0x4eb63e[_0x5663('0x12')]);const _0x154951=_0x1fb10f[_0x5663('0xf6')][_0x5663('0x27')](_0x120053[_0x5663('0xf2')]);if(!(_0x120053['item']['is']('element')&&_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')][_0x5663('0xae')](_0x120053[_0x5663('0xf2')])&&!_0x154951[_0x5663('0x108')](_0x5663('0xab'))))return;const {id:_0x4983bf}=this[_0x5663('0xc6')](_0x120053['markerName']);_0x1fb10f[_0x5663('0xb8')]['addClass']([_0x5663('0xe'),_0x5663('0x9d')],_0x154951),_0x1fb10f[_0x5663('0xb8')][_0x5663('0x75')](_0x5663('0x137'),_0x4983bf,_0x154951),_0x1fb10f['mapper'][_0x5663('0x61')](_0x154951,_0x120053[_0x5663('0xbf')]),_0x1627f1&&(this[_0x5663('0x10d')][_0x5663('0x4b')](_0x120053[_0x5663('0xbf')])?_0x1fb10f[_0x5663('0xb8')][_0x5663('0x111')](_0x5663('0xb5'),_0x154951):_0x1fb10f['writer'][_0x5663('0x3c')]('ck-suggestion-marker--active',_0x154951));for(const _0x13673c of _0x37a8de[_0x5663('0x19')][_0x5663('0x33')](_0x120053[_0x5663('0xf2')])[_0x5663('0x10e')]())_0x1fb10f[_0x5663('0xb3')][_0x5663('0x88')](_0x13673c,_0x4eb63e[_0x5663('0x12')]);_0x1fb10f['consumable'][_0x5663('0x88')](_0x120053['item'],_0x4eb63e[_0x5663('0x12')]);};_0x37a8de['conversion'][_0x5663('0x83')](_0x5663('0x70'))[_0x5663('0x1c')](_0x591b51=>{_0x591b51['on'](_0x5663('0x26'),(_0x1b303c,_0x656285,_0x196df7)=>{_0x196df7[_0x5663('0x7d')][_0x5663('0xf8')]&&_0x3e8306({'showActiveMarkers':!0x1})(_0x1b303c,_0x656285,_0x196df7);},{'priority':_0x5663('0x1a')});}),_0x37a8de[_0x5663('0x128')][_0x5663('0x83')](_0x5663('0x70'))[_0x5663('0xa2')]({'model':'suggestion','view':(_0x75717a,_0x480428)=>_0x480428[_0x5663('0x7d')][_0x5663('0xf8')]?null:{'group':_0x5663('0xbe'),'name':_0x75717a[_0x5663('0x120')](0xb)}}),_0x37a8de[_0x5663('0x128')]['for'](_0x5663('0xc3'))[_0x5663('0x102')]({'view':{'name':_0x5663('0xbe'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2e3306,{writer:_0x319123})=>{let _0x23dc18='suggestion:'+_0x2e3306['getAttribute']('suggestion-type')+':'+_0x2e3306[_0x5663('0x13')]('id');return _0x2e3306['getAttribute'](_0x5663('0xa1'))&&(_0x23dc18+=':'+_0x2e3306[_0x5663('0x13')](_0x5663('0xa1'))),_0x319123[_0x5663('0xa8')]('$marker',{'data-name':_0x23dc18});}}),_0x37a8de[_0x5663('0x128')][_0x5663('0x83')](_0x5663('0xc3'))[_0x5663('0x97')]({'view':_0x5663('0xbe')}),_0x37a8de['conversion']['for'](_0x5663('0x95'))['add'](_0x579469=>{_0x579469['on'](_0x5663('0x26'),_0x3e8306(),{'priority':_0x5663('0x3')});}),_0x37a8de[_0x5663('0x128')]['for']('editingDowncast')['add'](_0x2c7168=>{_0x2c7168['on'](_0x5663('0xd8'),(_0x45f81d,_0xa60220,_0x198409)=>{const _0x35fa18=_0x198409[_0x5663('0xf6')][_0x5663('0x8d')](_0xa60220[_0x5663('0xbf')]);if(_0x35fa18)for(const _0x1e0769 of _0x35fa18)_0x1e0769[_0x5663('0x108')]('addHighlight')||(_0x198409[_0x5663('0xb8')][_0x5663('0x3c')]([_0x5663('0xe'),_0x5663('0x9d'),_0x5663('0xb5')],_0x1e0769),_0x198409[_0x5663('0xb8')][_0x5663('0xc7')](_0x5663('0x137'),_0x1e0769),_0x198409[_0x5663('0xf6')][_0x5663('0x36')](_0x1e0769,_0xa60220['markerName']));},{'priority':_0x5663('0x3')});}),_0x37a8de[_0x5663('0x19')][_0x5663('0x125')][_0x5663('0xee')](_0x2aa901=>{let _0x112279=!0x1;const _0x4b8027=Array[_0x5663('0xc4')](_0x37a8de['model']['document'][_0x5663('0x9a')][_0x5663('0x7f')]()),_0x5b1084=new Set();for(const {name:_0x14f2d2,data:_0x170a9d}of _0x4b8027){const {group:_0x201088,type:_0x2b8f67,id:_0x1fe9d3}=this['_splitMarkerName'](_0x14f2d2);if('suggestion'!==_0x201088)continue;const _0x5c1cd0=this['_suggestions'][_0x5663('0x34')](_0x1fe9d3);if(null!=_0x170a9d[_0x5663('0xa3')]){_0x5663('0x105')==_0x2b8f67&&(_0x112279=_0x112279||Mt(_0x170a9d[_0x5663('0xa3')],_0x14f2d2,_0x2aa901,_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')]));if(_0x170a9d['newRange'][_0x5663('0xea')]||_0x5663('0x51')==_0x170a9d[_0x5663('0xa3')][_0x5663('0x89')][_0x5663('0x60')]||_0x5663('0x133')==_0x2b8f67&&!Nt(_0x170a9d['newRange'])||_0x5663('0x53')==_0x2b8f67&&!(!_t(_0x4d18aa=_0x170a9d['newRange'])&&!function(_0x49494a){return _0x49494a[_0x5663('0x11b')][_0x5663('0x123')]==_0x49494a[_0x5663('0x112')][_0x5663('0x40')]&&_0x49494a[_0x5663('0x11b')][_0x5663('0x4')];}(_0x4d18aa)))_0x2aa901['removeMarker'](_0x14f2d2),_0x112279=!0x0;else{if(!_0x5c1cd0||!_0x5c1cd0[_0x5663('0x48')])continue;_0x5b1084['add'](_0x5c1cd0);}}}var _0x4d18aa;return _0x5b1084[_0x5663('0xfc')]>0x0&&(_0x112279=!!this['_joinWithAdjacentSuggestions'](_0x5b1084)||_0x112279),_0x112279;}),_0x37a8de[_0x5663('0x19')][_0x5663('0x125')]['registerPostFixer'](_0x46d114=>{let _0x5969b2=!0x1;for(const _0x1b6883 of _0x37a8de['model'][_0x5663('0x125')][_0x5663('0x9a')][_0x5663('0xcf')]()){if('insert'!=_0x1b6883[_0x5663('0xb')])continue;const _0x5a73ad=_0x1b6883[_0x5663('0x12a')][_0x5663('0x46')](_0x1b6883[_0x5663('0xc8')]);if(_0x5a73ad[_0x5663('0x4')])for(const _0x3cf417 of this[_0x5663('0x99')][_0x5663('0x76')]()){if(_0x3cf417[_0x5663('0xd1')]||!_0x3cf417[_0x5663('0x48')])continue;if(_0x5663('0x133')!=_0x3cf417[_0x5663('0xb')])continue;const _0x3db97b=_0x3cf417['getFirstRange']();if(_0x3db97b[_0x5663('0x11b')][_0x5663('0x123')]!=_0x3db97b[_0x5663('0x112')][_0x5663('0x123')]&&_0x3db97b[_0x5663('0x112')][_0x5663('0x4c')](_0x1b6883[_0x5663('0x12a')])){const _0x23d6d3=_0x37a8de[_0x5663('0x19')][_0x5663('0xef')](_0x3db97b[_0x5663('0x11b')],_0x5a73ad);_0x46d114[_0x5663('0x2c')](_0x3cf417[_0x5663('0xc0')](),{'range':_0x23d6d3}),_0x5969b2=!0x0;}}}return _0x5969b2;}),_0x37a8de[_0x5663('0x19')]['markers']['on'](_0x5663('0x118'),(_0x451d10,_0x5226d4,_0x4f8501)=>{if(null==_0x4f8501){const {id:_0x531013}=this[_0x5663('0xc6')](_0x5226d4['name']),_0x5cf426=this['_suggestions'][_0x5663('0x34')](_0x531013);_0x5cf426&&_0x5cf426[_0x5663('0x11f')](_0x5226d4[_0x5663('0x12')]);}}),_0x37a8de['model']['document']['on'](_0x5663('0xe6'),()=>{const _0x409307=Array['from'](_0x37a8de['model']['document']['differ'][_0x5663('0x7f')]())[_0x5663('0x66')](_0x48e44e=>'suggestion'===this[_0x5663('0xc6')](_0x48e44e[_0x5663('0x12')])[_0x5663('0x73')]);if(0x0===_0x409307[_0x5663('0xc8')])return;_0x409307['sort']((_0x300906,_0x1e91ed)=>{const _0x45aa0c=_0x300906[_0x5663('0xe8')][_0x5663('0x13d')],_0x303c6e=_0x1e91ed['data'][_0x5663('0x13d')];return null===_0x45aa0c&&null===_0x303c6e?0x0:null===_0x45aa0c&&null!==_0x303c6e?-0x1:null!==_0x45aa0c&&null===_0x303c6e?0x1:_0x45aa0c['start'][_0x5663('0xf3')](_0x303c6e[_0x5663('0x11b')])?-0x1:0x1;});const _0x5ed1b9=new Set(),_0x43044e=new Set();for(const {name:_0x568540,data:_0x22e61e}of _0x409307){const {id:_0x583de5}=this['_splitMarkerName'](_0x568540);if(null===_0x22e61e[_0x5663('0x13d')]){const _0x3c4edc=this[_0x5663('0xf4')](_0x568540);_0x43044e[_0x5663('0x1c')](_0x3c4edc);}else{const _0x7874b3=this[_0x5663('0x99')]['get'](_0x583de5);null!==_0x22e61e['newRange']||_0x7874b3[_0x5663('0x48')]?(_0x5ed1b9[_0x5663('0x1c')](_0x7874b3[_0x5663('0xbc')]),_0x43044e[_0x5663('0x1c')](_0x7874b3)):this[_0x5663('0x107')](_0x7874b3);}}_0x43044e[_0x5663('0xfc')]>0x0&&this[_0x5663('0xaf')](_0x43044e);for(const _0x141e13 of _0x5ed1b9)this['fire']('suggestionChanged',_0x141e13);}),_0x37a8de[_0x5663('0x19')]['on'](_0x5663('0x139'),(_0x5ae84b,_0x31dd9d)=>{const _0xb03563=_0x31dd9d[0x0];if(!this[_0x5663('0x99')][_0x5663('0xfc')])return;if(!_0xb03563[_0x5663('0x115')])return;if(_0xb03563[_0x5663('0x28')][_0x5663('0xdf')]||!_0xb03563[_0x5663('0x28')][_0x5663('0x35')])return;let _0x3e8a82,_0x466ecb;switch(_0xb03563[_0x5663('0xb')]){case _0x5663('0x63'):_0x3e8a82=_0x37a8de[_0x5663('0x19')][_0x5663('0xa4')](_0xb03563[_0x5663('0x12a')]),_0x466ecb=_0x3e8a82['getShiftedBy'](_0xb03563[_0x5663('0xe7')]);break;case'split':_0x3e8a82=_0x37a8de['model']['createPositionAt'](_0xb03563[_0x5663('0xd3')]),_0x466ecb=_0x37a8de[_0x5663('0x19')][_0x5663('0xa4')](_0xb03563[_0x5663('0xaa')]);break;case _0x5663('0x6'):_0x3e8a82=_0x37a8de[_0x5663('0x19')][_0x5663('0xa4')](_0xb03563['targetPosition']),_0x466ecb=_0x3e8a82['getShiftedBy'](_0xb03563[_0x5663('0xe7')]);break;default:return;}const _0x45fc3c=_0x37a8de['model'][_0x5663('0xef')](_0x3e8a82,_0x466ecb);_0x37a8de[_0x5663('0x19')][_0x5663('0xb4')](()=>{for(const {suggestion:_0x510d9a,meta:_0x43ab83}of this[_0x5663('0xad')](_0x45fc3c)){if(_0x510d9a['isMultiRange'])continue;if(_0x5663('0x105')==_0x510d9a['type'])continue;const _0x2ad306=_0x510d9a[_0x5663('0xe8')]&&_0x510d9a[_0x5663('0xe8')][_0x5663('0xcb')];('formatBlock'!=_0x510d9a[_0x5663('0xb')]||'split'==_0xb03563['type']&&!_0x2ad306)&&(_0x43ab83['containsRangeInObject']||_0x5663('0x30')==_0x510d9a['type']&&_0x43ab83[_0x5663('0x84')]||_0x510d9a[_0x5663('0x109')]()['containsRange'](_0x45fc3c)&&this[_0x5663('0xb0')](_0x510d9a,_0x3e8a82,_0x466ecb));}});},{'priority':_0x5663('0x58')}),_0x37a8de['model']['on']('deleteContent',(_0x40cf0b,_0xcf336e)=>{const _0x57b1c8=_0xcf336e[0x0],_0x5eddbf=_0xcf336e[0x1];if(_0x5eddbf&&_0x5eddbf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5663('0x38')][_0x5663('0x64')])return;if(_0x57b1c8[_0x5663('0xea')])return;const _0x256c0e=_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')],{start:_0x397921,end:_0x3c0797}=_0x57b1c8['getFirstRange'](),_0x22cc22=_0x397921[_0x5663('0xf')]&&_0x256c0e['isLimit'](_0x397921[_0x5663('0xf')])?null:_0x256c0e['getNearestSelectionRange'](_0x397921,_0x5663('0x8b')),_0x396ad3=_0x3c0797[_0x5663('0x40')]&&_0x256c0e[_0x5663('0x117')](_0x3c0797[_0x5663('0x40')])?null:_0x256c0e[_0x5663('0x7e')](_0x3c0797,_0x5663('0x12d')),_0x4033be=_0x37a8de[_0x5663('0x19')][_0x5663('0xef')](_0x22cc22?_0x22cc22[_0x5663('0x11b')]:_0x397921,_0x396ad3?_0x396ad3[_0x5663('0x112')]:_0x3c0797);_0x37a8de['model'][_0x5663('0xb4')](_0x161f87=>{this[_0x5663('0x8f')](_0x4033be);const _0x36905f=_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')][_0x5663('0x7e')](_0x4033be[_0x5663('0x11b')]);_0x57b1c8['is']('documentSelection')?_0x161f87[_0x5663('0x12c')](_0x36905f):_0x57b1c8['setTo'](_0x36905f);}),_0x40cf0b['stop']();},{'priority':_0x2e04e5[_0x5663('0x114')]+0xa}),_0x37a8de[_0x5663('0x19')]['on'](_0x5663('0x8e'),(_0x1d7b2d,_0x5c8c01)=>{const _0x2e2cd6=_0x5c8c01[_0x5c8c01['length']-0x1];_0x2e2cd6&&_0x2e2cd6[_0x5663('0x6c')]||this['_isForcedDefaultExecutionBlock']||this[_0x5663('0x38')][_0x5663('0x64')]&&(_0x37a8de[_0x5663('0x19')][_0x5663('0xb4')](()=>{let _0x307742=_0x37a8de['model'][_0x5663('0x8e')](_0x5c8c01[0x0],_0x5c8c01[0x1],_0x5c8c01[0x2],{'forceDefaultExecution':!0x0});if(!_0x307742)return;_0x1d7b2d[_0x5663('0x119')]=_0x307742[_0x5663('0x129')]();const _0x1f3113=_0x307742['end'][_0x5663('0x40')],_0xeec16f=_0x37a8de[_0x5663('0x19')][_0x5663('0x5c')];_0x1f3113&&_0xeec16f[_0x5663('0xae')](_0x1f3113)&&!_0xeec16f[_0x5663('0xce')](_0x1f3113)&&(_0x307742=_0x37a8de[_0x5663('0x19')]['createRange'](_0x307742[_0x5663('0x11b')],_0x37a8de[_0x5663('0x19')][_0x5663('0xa4')](_0x1f3113,_0x5663('0x112')))),this[_0x5663('0x6d')](_0x307742);}),_0x1d7b2d[_0x5663('0xb6')]());},{'priority':_0x5663('0x3')}),this['editor'][_0x5663('0xfb')][_0x5663('0x1c')](_0x5663('0x18'),this[_0x5663('0x38')]),this[_0x5663('0x1f')](_0x5663('0x18'));const _0x1d50d2=new _0x1bc67b(_0x37a8de,this[_0x5663('0x99')]);_0x37a8de[_0x5663('0xfb')][_0x5663('0x1c')](_0x5663('0x100'),_0x1d50d2),this[_0x5663('0x1f')]('acceptSuggestion');const _0x23b576=new _0x2dbde8(_0x37a8de,this[_0x5663('0x99')]);_0x37a8de[_0x5663('0xfb')][_0x5663('0x1c')](_0x5663('0x43'),_0x23b576),this[_0x5663('0x1f')](_0x5663('0x43')),_0x37a8de[_0x5663('0xfb')][_0x5663('0x1c')]('acceptAllSuggestions',new _0x374b1f(_0x37a8de,_0x1d50d2,this[_0x5663('0x99')])),this['enableCommand'](_0x5663('0x2f')),_0x37a8de[_0x5663('0xfb')]['add'](_0x5663('0xfe'),new _0x374b1f(_0x37a8de,_0x23b576,this[_0x5663('0x99')])),this[_0x5663('0x1f')](_0x5663('0xfe')),_0x37a8de[_0x5663('0xfb')][_0x5663('0x1c')](_0x5663('0x7'),new _0xed453c(_0x37a8de,_0x1d50d2,this[_0x5663('0x99')])),this[_0x5663('0x1f')](_0x5663('0x7')),_0x37a8de[_0x5663('0xfb')][_0x5663('0x1c')](_0x5663('0x5d'),new _0xed453c(_0x37a8de,_0x23b576,this[_0x5663('0x99')])),this['enableCommand'](_0x5663('0x5d'));const _0x55b1ca=_0x37a8de['plugins'][_0x5663('0x34')](_0x5663('0x32'));this[_0x5663('0xb9')](_0x55b1ca,_0x5663('0x3b'),(_0x2a77de,{threadId:_0x539f0d})=>{const _0x4e96e1=this[_0x5663('0x99')][_0x5663('0x34')](_0x539f0d);_0x4e96e1&&_0x4e96e1['commentThread']&&0x1===_0x4e96e1[_0x5663('0x13b')][_0x5663('0xc8')]&&this[_0x5663('0x12b')](_0x539f0d,{'hasComments':!0x0});},{'priority':_0x5663('0xcd')}),this['listenTo'](_0x55b1ca,_0x5663('0xe0'),(_0x597a5f,{threadId:_0x527b86})=>{const _0x47eada=this[_0x5663('0x99')][_0x5663('0x34')](_0x527b86);_0x47eada&&_0x47eada[_0x5663('0x13b')]&&!_0x47eada[_0x5663('0x13b')]['length']&&this['_updateSuggestionData'](_0x527b86,{'hasComments':!0x1});},{'priority':_0x5663('0xcd')});}set[_0x5663('0x13a')](_0x2c0ea1){if(this['_adapter'])throw new _0x464c58(_0x5663('0x21'),this);this[_0x5663('0xd0')]=_0x2c0ea1;}get[_0x5663('0x13a')](){return this[_0x5663('0xd0')];}[_0x5663('0x110')]({skipNotAttached:_0xd1398f=!0x1,toJSON:_0x45b229=!0x1}={}){const _0x1a0315=[];for(const _0x2316d7 of this[_0x5663('0x99')][_0x5663('0x76')]())_0xd1398f&&!_0x2316d7[_0x5663('0x48')]||_0x1a0315[_0x5663('0xeb')](_0x2316d7);return _0x45b229?_0x1a0315['map'](_0x556e41=>_0x556e41[_0x5663('0x3f')]()):_0x1a0315;}[_0x5663('0xa0')](_0x1c7160){const _0x7e5b16=this[_0x5663('0x99')][_0x5663('0x34')](_0x1c7160);if(!_0x7e5b16)throw new _0x464c58(_0x5663('0x54'),this);return _0x7e5b16;}[_0x5663('0x131')](_0xb45522){return this['_suggestions'][_0x5663('0xe2')](_0xb45522);}[_0x5663('0x14')](_0x1edcc9){const {authorId:_0x27974c,id:_0x1c26d4,attributes:_0x4c1fde}=_0x1edcc9,[_0x4e499d,_0x350a7f]=_0x1edcc9['type'][_0x5663('0xf5')](':'),_0xf63d1b=this[_0x5663('0x99')][_0x5663('0x34')](_0x1c26d4)||this[_0x5663('0x1e')](_0x4e499d,_0x350a7f,_0x1c26d4,_0x27974c,_0x4c1fde);if(this[_0x5663('0x49')](_0xf63d1b),this[_0x5663('0x67')](_0xf63d1b,_0x4e499d,_0x350a7f||null,_0x27974c),_0xf63d1b['createdAt']=_0x1edcc9[_0x5663('0x126')],_0xf63d1b[_0x5663('0x42')]=!0x0,_0x4c1fde&&_0x4c1fde[_0x5663('0x5')]){const _0x2520c6=_0x4c1fde[_0x5663('0x5')],_0x20bfea=this['_getExternalAuthor'](_0x2520c6[_0x5663('0x8c')]);_0xf63d1b[_0x5663('0x134')]=_0x2520c6[_0x5663('0x126')],_0xf63d1b[_0x5663('0x127')]=_0x20bfea,_0xf63d1b[_0x5663('0x9')]=!0x0;}else _0xf63d1b[_0x5663('0x134')]=_0x1edcc9['createdAt'];switch(_0x1edcc9[_0x5663('0xe8')]&&(_0xf63d1b[_0x5663('0xe8')]=_0x1edcc9[_0x5663('0xe8')]),_0x1edcc9[_0x5663('0xff')]&&(_0xf63d1b[_0x5663('0xff')]=_0x1edcc9[_0x5663('0xff')]),this[_0x5663('0xd0')]&&this[_0x5663('0xd0')][_0x5663('0x8a')]||(_0xf63d1b[_0x5663('0xdc')]=!0x0),this[_0x5663('0x78')][_0x5663('0x34')](_0xf63d1b)){case'notReady':this[_0x5663('0x78')][_0x5663('0x2b')](_0xf63d1b,_0x5663('0x71'));break;case _0x5663('0x31'):_0xf63d1b[_0x5663('0x48')]?(this[_0x5663('0xaf')](new Set([_0xf63d1b])),this[_0x5663('0xc1')](new Set([_0xf63d1b])),this['_suggestionState']['set'](_0xf63d1b,_0x5663('0x103')),this[_0x5663('0x2a')](_0x5663('0xfa'),_0xf63d1b)):this[_0x5663('0x78')][_0x5663('0x2b')](_0xf63d1b,_0x5663('0xd7'));}return _0xf63d1b;}[_0x5663('0x100')](_0x3551f4){this['forceDefaultExecution'](()=>{this['editor'][_0x5663('0x19')]['change'](()=>{for(const _0x5f4aa8 of _0x3551f4[_0x5663('0xf1')]())_0x5f4aa8['accept']();});});}[_0x5663('0x43')](_0x37a784){this[_0x5663('0x6c')](()=>{this[_0x5663('0x0')]['model'][_0x5663('0xb4')](()=>{for(const _0x351136 of _0x37a784[_0x5663('0xf1')]())_0x351136[_0x5663('0x7a')]();});});}[_0x5663('0x1f')](_0x24d34a,_0x497f96){const _0x3dcf4a=this['editor'][_0x5663('0xfb')][_0x5663('0x34')](_0x24d34a);if(!_0x3dcf4a)throw new _0x464c58('track-changes-command-not-found',this,{'commandName':_0x24d34a});this[_0x5663('0xd2')][_0x5663('0x1c')](_0x3dcf4a),_0x497f96&&_0x3dcf4a['on'](_0x5663('0x68'),(_0x23a44c,_0x5db635)=>{this[_0x5663('0x38')][_0x5663('0x64')]&&(this[_0x5663('0x2')]||_0x5db635[_0x5663('0xc8')]>0x0&&_0x5db635[_0x5db635['length']-0x1]&&_0x5db635[_0x5db635[_0x5663('0xc8')]-0x1][_0x5663('0x6c')]||(_0x497f96((..._0x5cc9d6)=>_0x3dcf4a[_0x5663('0x68')](..._0x5cc9d6,{'forceDefaultExecution':!0x0}),..._0x5db635),_0x23a44c[_0x5663('0xb6')]()));},{'priority':_0x5663('0x3')});}[_0x5663('0x6c')](_0x1d8069){let _0x45adc1,_0x4e9385;const _0x49dd57=this[_0x5663('0x2')];this[_0x5663('0x2')]=!0x0;try{_0x45adc1=_0x1d8069();}catch(_0x280b60){_0x4e9385=_0x280b60;}return _0x49dd57||(this[_0x5663('0x2')]=!0x1),_0x4e9385&&_0x464c58['rethrowUnexpectedError'](_0x4e9385,this),_0x45adc1;}[_0x5663('0x6d')](_0x4a37e2,_0xb6a185=null,_0x548aca={}){if(_0x4a37e2[_0x5663('0xea')])return null;const _0x50c484=this[_0x5663('0x0')]['plugins']['get'](_0x5663('0x10c'))['me'];for(const {suggestion:_0x573606,meta:_0x3543cd}of this[_0x5663('0xad')](_0x4a37e2,_0x5663('0x30')))if(_0x3543cd[_0x5663('0x84')]){if(!_0x3543cd[_0x5663('0x11e')]){if(_0x3543cd[_0x5663('0x6e')]){if(!this[_0x5663('0x9b')]||!Ut(_0x573606,_0x548aca))continue;return _0x573606;}if(Ut(_0x573606,_0x548aca))return _0x573606;this[_0x5663('0xb0')](_0x573606,_0x4a37e2[_0x5663('0x11b')],_0x4a37e2[_0x5663('0x112')]);break;}if(_0xb6a185==_0x573606[_0x5663('0x5b')]&&Ut(_0x573606,_0x548aca)){const _0x2d310a=_0x573606['getFirstRange']();return _0x2d310a[_0x5663('0x11b')][_0x5663('0x4c')](_0x4a37e2[_0x5663('0x112')])?this[_0x5663('0xcc')](_0x573606,this['_model'][_0x5663('0xef')](_0x4a37e2['start'],_0x2d310a[_0x5663('0x112')])):this['_setSuggestionRange'](_0x573606,this[_0x5663('0x59')]['createRange'](_0x2d310a[_0x5663('0x11b')],_0x4a37e2[_0x5663('0x112')])),_0x573606;}}const _0xa42e32=_0x38e0ed(),_0x166786=_0x50c484['id'],_0x47aba8=_0xb6a185?_0x5663('0xca')+_0xb6a185:_0x5663('0x30'),_0x4bb977=this[_0x5663('0x15')]({'id':_0xa42e32,'type':_0x47aba8,'createdAt':new Date(),'authorId':_0x166786,'attributes':_0x548aca});return this['_addSuggestionMarker'](_0x47aba8,_0xa42e32,_0x166786,_0x4a37e2),_0x4bb977;}['markMultiRangeInsertion'](_0x331f65,_0x21f66e=_0x5663('0x1'),_0xf64cea={}){const _0xfb494a=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'],_0x129a58=this['_suggestionFactory'][_0x5663('0x1b')](_0x5663('0x30'),_0x21f66e,'join');for(const _0x21f5bb of this['getSuggestions']())if(_0x21f5bb['author']['id']==_0xfb494a['id']&&_0x5663('0x30')==_0x21f5bb[_0x5663('0xb')]&&_0x21f5bb['subType']==_0x21f66e&&Ut(_0x21f5bb,_0xf64cea)&&(_0x129a58(_0x21f5bb[_0x5663('0xfd')](),_0x331f65)||_0x129a58(_0x331f65,_0x21f5bb[_0x5663('0xfd')]()))){for(const _0xdbf7cf of _0x331f65)_0x21f5bb[_0x5663('0x6f')](_0xdbf7cf);return _0x21f5bb;}for(const {suggestion:_0x139e33,meta:_0x28536d}of this[_0x5663('0xad')](_0x331f65,_0x5663('0x30'))){if(!_0x28536d[_0x5663('0x84')])continue;if(!this[_0x5663('0x9b')]&&_0x28536d['containsRangeInObject'])continue;if(!Ut(_0x139e33,_0xf64cea))continue;let _0xa0ff6e=!0x0;for(const _0x2aee20 of _0x139e33['getRanges']())for(const _0x5e6996 of _0x331f65)if(!_0x2aee20[_0x5663('0x10f')](_0x5e6996)){_0xa0ff6e=!0x1;break;}if(_0xa0ff6e)return _0x139e33;}const _0x218624=_0x38e0ed(),_0xe8180a=_0xfb494a['id'],_0x383c90='insertion:'+_0x21f66e,_0x5f0941=this['_setSuggestionData']({'id':_0x218624,'type':_0x383c90,'createdAt':new Date(),'authorId':_0xe8180a,'attributes':_0xf64cea});for(const _0x2fd872 of _0x331f65)this[_0x5663('0xf7')](_0x383c90,_0x218624,_0xe8180a,_0x2fd872,_0x1b2caa[_0x5663('0x41')]());return _0x5f0941;}[_0x5663('0x9e')](_0x48f3d7,_0x2533f0,_0x1db261=null,_0x42bc33={}){if(_0x1db261=_0x1db261||$t(_0x2533f0),_0x48f3d7['isCollapsed'])return null;if(_0x5663('0x45')===this['_trackFormatChanges']){const _0x2266d2=this['_suggestionFactory'][_0x5663('0x1b')](_0x5663('0x105'),_0x1db261,_0x5663('0x37'));return this[_0x5663('0x6c')](()=>_0x2266d2([_0x48f3d7],_0x2533f0,_0x42bc33)),null;}const _0x253ec6=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'],_0x2789a5=[];if('always'!==this[_0x5663('0x87')])for(const {suggestion:_0x13b3a1,meta:_0x151636}of this[_0x5663('0xad')](_0x48f3d7,_0x5663('0x30')))_0x151636[_0x5663('0x84')]&&!_0x151636[_0x5663('0x12f')]&&_0x2789a5[_0x5663('0xeb')](..._0x13b3a1[_0x5663('0xfd')]());const _0x207ff0=function(_0xc48e73,_0x4cab33){const _0x44f1c0=[];for(const _0xe7050f of _0x4cab33){const _0x5ba716=_0xc48e73[_0x5663('0x136')](_0xe7050f);_0x5ba716&&_0x44f1c0['push'](_0x5ba716);}return _0x44f1c0;}(_0x48f3d7,_0x2789a5),_0x4b7e8b=function(_0x5d38f7,_0x1546f0){const _0x42f7a3=[_0x5d38f7];for(const _0x160773 of _0x1546f0){let _0x34e282=0x0;for(;_0x34e282<_0x42f7a3[_0x5663('0xc8')];){const _0x3705c6=_0x42f7a3[_0x34e282][_0x5663('0x86')](_0x160773);_0x42f7a3['splice'](_0x34e282,0x1,..._0x3705c6),_0x34e282+=_0x3705c6['length'];}}return _0x42f7a3;}(_0x48f3d7,_0x2789a5);_0x207ff0[_0x5663('0xc8')]&&this['_model'][_0x5663('0xb4')](()=>{for(const _0x34fdb9 of _0x207ff0){const _0x58dd02=this['_suggestionFactory']['getSuggestionCallback'](_0x5663('0x105'),_0x1db261,_0x5663('0x37'));this['forceDefaultExecution'](()=>_0x58dd02([_0x34fdb9],_0x2533f0,_0x42bc33));}});for(const _0x1f0959 of _0x4b7e8b){let _0x499fc3=null,_0x8ac50f=_0x1f0959[_0x5663('0x11b')],_0x2b5aef=_0x1f0959[_0x5663('0x112')];for(const {suggestion:_0xa39242,meta:_0x41fdf4}of this[_0x5663('0xad')](_0x1f0959,'formatInline')){if(!_0x41fdf4['isOwn'])continue;if(_0xa39242['subType']!=_0x1db261)continue;if(!Ut(_0xa39242,_0x42bc33))continue;const _0x51631b=_0xa39242[_0x5663('0x109')]();if(_0x51631b[_0x5663('0x10f')](_0x1f0959,!0x0))return null;_0x8ac50f=_0x8ac50f[_0x5663('0xf3')](_0x51631b[_0x5663('0x11b')])?_0x8ac50f:_0x51631b[_0x5663('0x11b')],_0x2b5aef=_0x2b5aef[_0x5663('0xd9')](_0x51631b[_0x5663('0x112')])?_0x2b5aef:_0x51631b[_0x5663('0x112')],_0x499fc3?_0x51631b[_0x5663('0x11b')][_0x5663('0xf3')](_0x499fc3[_0x5663('0x109')]()['start'])?(_0x499fc3[_0x5663('0x3a')](),_0x499fc3=_0xa39242):_0xa39242[_0x5663('0x3a')]():_0x499fc3=_0xa39242;}const _0x4e899e=this[_0x5663('0x59')][_0x5663('0xef')](_0x8ac50f,_0x2b5aef);if(_0x499fc3)this['_setSuggestionRange'](_0x499fc3,_0x4e899e);else{const _0x3a24b7=_0x38e0ed(),_0x3bee47=_0x253ec6['id'];this[_0x5663('0x15')]({'id':_0x3a24b7,'type':_0x5663('0xc9')+_0x1db261,'data':_0x2533f0,'createdAt':new Date(),'authorId':_0x3bee47,'attributes':_0x42bc33}),this[_0x5663('0xf7')](_0x5663('0xc9')+_0x1db261,_0x3a24b7,_0x3bee47,_0x4e899e);}}return null;}[_0x5663('0x94')](_0x1bd601,_0x4e3569,_0x47c264=[],_0x21b767=null,_0x56162f={}){_0x4e3569[_0x5663('0x79')]||(_0x4e3569['formatGroupId']=_0x4e3569[_0x5663('0xa5')]),_0x4e3569[_0x5663('0xcb')]=_0x1bd601['is'](_0x5663('0x65')),_0x21b767=_0x21b767||$t(_0x4e3569);const _0x500d93=_0x47c264[_0x5663('0xc')](_0x4f094a=>Rt(_0x4f094a,this['_model'])),_0x457392=_0x1bd601['is'](_0x5663('0x65'))?_0x1bd601:Rt(_0x1bd601,this[_0x5663('0x59')]);if(_0x5663('0x45')===this[_0x5663('0x87')]){const _0x273208=this[_0x5663('0xa')][_0x5663('0x1b')](_0x5663('0x133'),_0x21b767,_0x5663('0x37'));return this[_0x5663('0x6c')](()=>_0x273208([_0x457392],_0x4e3569,_0x56162f)),null;}_0x500d93[_0x5663('0xeb')](_0x457392);let _0x4e003d=!0x0;for(const _0x135491 of _0x500d93)if(!this['_rangeIsInLocalUserInsertion'](_0x135491)){_0x4e003d=!0x1;break;}if(_0x4e003d&&_0x5663('0x13f')!==this[_0x5663('0x87')]){const _0x2bee49=this[_0x5663('0xa')][_0x5663('0x1b')](_0x5663('0x133'),_0x21b767,_0x5663('0x37'));return this['forceDefaultExecution'](()=>_0x2bee49([_0x457392],_0x4e3569,_0x56162f)),null;}let _0x15257c=null,_0x5d99d0=_0x457392[_0x5663('0x11b')],_0x22bc07=_0x457392['end'];for(const {suggestion:_0x539fa2,meta:_0x5cd82a}of this[_0x5663('0xad')](_0x457392,_0x5663('0x133'))){if(!_0x5cd82a[_0x5663('0x84')])continue;if(_0x5cd82a[_0x5663('0x11e')]||_0x5cd82a['containsRangeInObject']||_0x5cd82a[_0x5663('0x12f')])continue;if(_0x539fa2[_0x5663('0xe8')][_0x5663('0x79')]!=_0x4e3569[_0x5663('0x79')])continue;if(!Ut(_0x539fa2,_0x56162f))continue;const _0x1a4525=_0x539fa2['getFirstRange']();if(_0x539fa2[_0x5663('0x5b')]==_0x21b767){if(_0x1a4525[_0x5663('0x10f')](_0x457392,!0x0))return null;_0x5d99d0=_0x5d99d0['isBefore'](_0x1a4525[_0x5663('0x11b')])?_0x5d99d0:_0x1a4525[_0x5663('0x11b')],_0x22bc07=_0x22bc07[_0x5663('0xd9')](_0x1a4525[_0x5663('0x112')])?_0x22bc07:_0x1a4525[_0x5663('0x112')],_0x15257c?_0x1a4525[_0x5663('0x11b')][_0x5663('0xf3')](_0x15257c[_0x5663('0x109')]()[_0x5663('0x11b')])?(_0x15257c[_0x5663('0x3a')](),_0x15257c=_0x539fa2):_0x539fa2[_0x5663('0x3a')]():_0x15257c=_0x539fa2;}else{const _0x4e3323=_0x457392['getIntersection'](_0x1a4525);this['_cutOutSuggestionMarker'](_0x539fa2,_0x4e3323);}}const _0x14a115=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'],_0x4d470b=_0x38e0ed(),_0xc705bc=_0x14a115['id'];if(_0x15257c)return this[_0x5663('0xcc')](_0x15257c,this['_model'][_0x5663('0xef')](_0x5d99d0,_0x22bc07)),_0x15257c;{const _0x2dc67e=this['_setSuggestionData']({'id':_0x4d470b,'type':_0x5663('0x141')+_0x21b767,'data':_0x4e3569,'createdAt':new Date(),'authorId':_0xc705bc,'attributes':_0x56162f});return this[_0x5663('0xf7')]('formatBlock:'+_0x21b767,_0x4d470b,_0xc705bc,this[_0x5663('0x59')][_0x5663('0xef')](_0x5d99d0,_0x22bc07)),_0x2dc67e;}}['markMultiRangeBlockFormat'](_0x487db2,_0xa2e377,_0x6e9308=[],_0x5a47b3=null,_0xc9bdb8={}){_0xa2e377['formatGroupId']||(_0xa2e377['formatGroupId']=_0xa2e377[_0x5663('0xa5')]);const _0x447761=_0x487db2[0x0];_0xa2e377[_0x5663('0xcb')]=_0x447761['is'](_0x5663('0x65')),_0x5a47b3=_0x5a47b3||$t(_0xa2e377);const _0x25ce8f=_0x6e9308['map'](_0x5720ad=>Rt(_0x5720ad,this[_0x5663('0x59')])),_0x16d716=_0x447761['is'](_0x5663('0x65'))?_0x487db2:_0x487db2[_0x5663('0xc')](_0x204b28=>Rt(_0x204b28,this[_0x5663('0x59')]));if(_0x5663('0x45')===this[_0x5663('0x87')]){const _0x3bb83c=this['_suggestionFactory']['getSuggestionCallback'](_0x5663('0x133'),_0x5a47b3,_0x5663('0x37'));return this[_0x5663('0x6c')](()=>_0x3bb83c(_0x16d716,_0xa2e377,_0xc9bdb8)),null;}_0x25ce8f[_0x5663('0xeb')](..._0x16d716);let _0x2b43c6=!0x0;for(const _0x3ec598 of _0x25ce8f)if(!this[_0x5663('0x93')](_0x3ec598)){_0x2b43c6=!0x1;break;}if(_0x2b43c6&&_0x5663('0x13f')!==this[_0x5663('0x87')]){const _0x19a432=this[_0x5663('0xa')]['getSuggestionCallback']('formatBlock',_0x5a47b3,_0x5663('0x37'));return this[_0x5663('0x6c')](()=>_0x19a432(_0x16d716,_0xa2e377,_0xc9bdb8)),null;}const _0x51b4d2=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'];for(const _0x1bb375 of this[_0x5663('0x110')]()){if(_0x1bb375['author']['id']!=_0x51b4d2['id'])continue;if('formatBlock'!=_0x1bb375[_0x5663('0xb')]||_0x1bb375[_0x5663('0xe8')]['formatGroupId']!=_0xa2e377['formatGroupId'])continue;if(!Ut(_0x1bb375,_0xc9bdb8))continue;const _0x579a4c=_0x1bb375[_0x5663('0x5b')]==_0x5a47b3;for(let _0x3bdc4=0x0;_0x3bdc4<_0x16d716[_0x5663('0xc8')];_0x3bdc4++){const _0x3ddf3d=_0x16d716[_0x3bdc4];for(const _0x33ae7e of _0x1bb375[_0x5663('0x82')]()){const _0x725b10=_0x33ae7e[_0x5663('0x91')]();if(_0x3ddf3d['isEqual'](_0x725b10)){_0x579a4c?(_0x16d716['splice'](_0x3bdc4,0x1),_0x3bdc4--):_0x1bb375[_0x5663('0xbd')](_0x33ae7e[_0x5663('0x12')]);break;}}}}if(0x0==_0x16d716[_0x5663('0xc8')])return null;const _0x441e71=this['_suggestionFactory'][_0x5663('0x1b')](_0x5663('0x133'),_0x5a47b3,_0x5663('0x2d'));for(const _0xde6cff of this[_0x5663('0x110')]())if(_0xde6cff['author']['id']==_0x51b4d2['id']&&_0x5663('0x133')==_0xde6cff['type']&&_0xde6cff['data'][_0x5663('0x79')]==_0xa2e377[_0x5663('0x79')]&&_0xde6cff[_0x5663('0x5b')]==_0x5a47b3&&Ut(_0xde6cff,_0xc9bdb8)&&(_0x441e71(_0xde6cff[_0x5663('0xfd')](),_0x16d716)||_0x441e71(_0x16d716,_0xde6cff[_0x5663('0xfd')]()))){for(const _0xa43c2e of _0x16d716)_0xde6cff[_0x5663('0x6f')](_0xa43c2e);return _0xde6cff;}const _0x341b0d=_0x38e0ed(),_0x29fb82=_0x51b4d2['id'],_0x4f1142=_0x5663('0x141')+_0x5a47b3,_0x46d957=this[_0x5663('0x15')]({'id':_0x341b0d,'type':_0x4f1142,'data':_0xa2e377,'createdAt':new Date(),'authorId':_0x29fb82,'attributes':_0xc9bdb8});for(const _0x37504d of _0x16d716)this[_0x5663('0xf7')](_0x4f1142,_0x341b0d,_0x29fb82,_0x37504d,_0x1b2caa[_0x5663('0x41')]());return _0x46d957;}[_0x5663('0x8f')](_0x4d11d8,_0x49f82a=null,_0x1d63a2={}){if(_0x4d11d8[_0x5663('0xea')])return null;const _0x492ba6=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'],_0xbc5597=new _0x21149e(_0x4d11d8['start'],_0x4d11d8[_0x5663('0x112')]);for(const {suggestion:_0x273352,meta:_0x413202}of this['_findSuggestions'](_0xbc5597,_0x5663('0x30')))if(_0x413202[_0x5663('0x84')]&&!_0x413202[_0x5663('0x11e')]){if(_0x273352[_0x5663('0xd1')]){const _0x2986b9=_0x273352[_0x5663('0xfd')]()[_0x5663('0x66')](_0x3ae22e=>_0x5663('0x51')!=_0x3ae22e[_0x5663('0x89')][_0x5663('0x60')]);_0x2986b9[_0x5663('0x10b')](_0x43aaac=>_0xbc5597[_0x5663('0x10f')](_0x43aaac,!0x0))&&_0x273352[_0x5663('0x7a')]();if(_0x2986b9[_0x5663('0x50')](_0x1eaa49=>_0x1eaa49[_0x5663('0x10f')](_0xbc5597,!0x0))){const _0x871e54=this[_0x5663('0xa')][_0x5663('0x1b')](_0x5663('0x53'),_0x49f82a,_0x5663('0x37'));return this[_0x5663('0x6c')](()=>_0x871e54([_0xbc5597],null,_0x1d63a2)),null;}}else{const _0x130fb5=_0xbc5597[_0x5663('0x136')](_0x273352['getFirstRange']());null!==_0x130fb5&&_0x273352[_0x5663('0xdd')]([_0x130fb5],null,_0x1d63a2);}}if(_0xbc5597[_0x5663('0x5f')](),_0xbc5597[_0x5663('0xea')]||_0x5663('0x51')==_0xbc5597[_0x5663('0x89')]['rootName'])return null;let _0x274983=null,_0x566813=_0xbc5597[_0x5663('0x11b')],_0x9d69eb=_0xbc5597['end'];const _0x5e8c75=this[_0x5663('0xad')](_0xbc5597,'deletion');for(const {suggestion:_0x17b6d7,meta:_0x5dba4f}of _0x5e8c75){const _0x236d7e=this[_0x5663('0x59')][_0x5663('0xef')](_0x566813,_0x9d69eb);if(_0x5dba4f[_0x5663('0x84')]&&(this[_0x5663('0x9b')]||!_0x5dba4f[_0x5663('0x6e')]&&!_0x5dba4f['isInsideObject'])){if(_0x17b6d7[_0x5663('0xd1')]){if(!Ut(_0x17b6d7,_0x1d63a2))continue;let _0x44f6bf=!0x0;for(const _0x21ff00 of _0x17b6d7[_0x5663('0xfd')]()){if(_0x21ff00[_0x5663('0x10f')](_0x236d7e,!0x0))return _0x17b6d7;_0x236d7e[_0x5663('0x10f')](_0x21ff00)||(_0x44f6bf=!0x1);}_0x44f6bf&&_0x17b6d7[_0x5663('0x7a')]();}else{const _0x4e5f2e=_0x17b6d7[_0x5663('0x109')]();if(_0x4e5f2e['containsRange'](_0x236d7e,!0x0))return _0x17b6d7;if(!Ut(_0x17b6d7,_0x1d63a2)){_0x236d7e[_0x5663('0x10f')](_0x4e5f2e)?_0x17b6d7['removeMarkers']():_0x4e5f2e['containsPosition'](_0x566813)?_0x566813=_0x4e5f2e['end']:_0x4e5f2e[_0x5663('0xb2')](_0x9d69eb)&&(_0x9d69eb=_0x4e5f2e[_0x5663('0x11b')]);continue;}_0x566813=_0x566813[_0x5663('0xf3')](_0x4e5f2e[_0x5663('0x11b')])?_0x566813:_0x4e5f2e[_0x5663('0x11b')],_0x9d69eb=_0x9d69eb[_0x5663('0xd9')](_0x4e5f2e['end'])?_0x9d69eb:_0x4e5f2e[_0x5663('0x112')],_0x1d63a2=Object[_0x5663('0x121')]({},_0x17b6d7[_0x5663('0xff')]),_0x274983?_0x4e5f2e[_0x5663('0x11b')]['isBefore'](_0x274983[_0x5663('0x109')]()[_0x5663('0x11b')])?(_0x274983[_0x5663('0x3a')](),_0x274983=_0x17b6d7):_0x17b6d7['removeMarkers']():_0x274983=_0x17b6d7;}}}if(_0x274983)return this[_0x5663('0xcc')](_0x274983,this[_0x5663('0x59')][_0x5663('0xef')](_0x566813,_0x9d69eb)),_0x274983;{const _0x1d3cf5=_0x38e0ed(),_0x1e6f21=this[_0x5663('0x59')]['createRange'](_0x566813,_0x9d69eb),_0x3ae7d0=_0x492ba6['id'],_0x5db8aa=_0x49f82a?_0x5663('0xe1')+_0x49f82a:_0x5663('0x53'),_0xcdd471=this[_0x5663('0x15')]({'id':_0x1d3cf5,'type':_0x5db8aa,'createdAt':new Date(),'authorId':_0x3ae7d0,'attributes':_0x1d63a2});return this[_0x5663('0xf7')](_0x5db8aa,_0x1d3cf5,_0x3ae7d0,_0x1e6f21),_0xcdd471;}}['markMultiRangeDeletion'](_0x3c62d5,_0x398f97='multi',_0x5b89f6={}){const _0x44b71c=this[_0x5663('0x0')]['plugins'][_0x5663('0x34')]('Users')['me'],_0x1999df=_0x3c62d5[_0x5663('0xc')](_0x262c8f=>new _0x21149e(_0x262c8f['start'],_0x262c8f['end'])),_0x3a92cf=new Set();for(const {suggestion:_0x43f3c3,meta:_0x9601cb}of this[_0x5663('0xad')](_0x1999df,'insertion'))_0x9601cb[_0x5663('0x84')]&&!_0x9601cb[_0x5663('0x11e')]&&_0x3a92cf[_0x5663('0x1c')](_0x43f3c3);for(const _0x180741 of _0x3a92cf)if(_0x180741[_0x5663('0xd1')]){const _0x27a4b3=_0x180741[_0x5663('0xfd')]();(!_0x180741[_0x5663('0xff')]||!_0x180741[_0x5663('0xff')]['skipNestingCheck'])&&(_0x27a4b3[_0x5663('0x10b')](_0xbcf9ad=>_0x1999df[_0x5663('0x50')](_0x112a36=>_0x112a36[_0x5663('0x10f')](_0xbcf9ad,!0x0)))&&_0x180741['discard']());if(_0x1999df['every'](_0x309d1=>_0x27a4b3[_0x5663('0x50')](_0x574b6a=>_0x574b6a[_0x5663('0x10f')](_0x309d1,!0x0)))){const _0x422e27=this[_0x5663('0xa')]['getSuggestionCallback'](_0x5663('0x53'),_0x398f97,_0x5663('0x37'));return this['forceDefaultExecution'](()=>_0x422e27(_0x3c62d5,null,_0x5b89f6)),null;}}else{const _0x4ca375=_0x180741['getFirstRange']();_0x1999df['some'](_0x39903f=>_0x39903f[_0x5663('0x10f')](_0x4ca375,!0x0))&&_0x180741['discard']();if(_0x1999df[_0x5663('0x10b')](_0x3de022=>_0x4ca375['containsRange'](_0x3de022,!0x0))){const _0x57938b=this[_0x5663('0xa')]['getSuggestionCallback'](_0x5663('0x53'),_0x398f97,_0x5663('0x37'));return this['forceDefaultExecution'](()=>_0x57938b(_0x1999df,null,_0x5b89f6)),null;}}const _0x29c957=this[_0x5663('0xa')][_0x5663('0x1b')](_0x5663('0x53'),_0x398f97,'join');let _0x1b114d=null;for(const _0x44c0c5 of this[_0x5663('0x110')]())if(_0x44c0c5[_0x5663('0x127')]['id']==_0x44b71c['id']&&_0x44c0c5[_0x5663('0x48')]&&_0x5663('0x53')==_0x44c0c5[_0x5663('0xb')]&&_0x44c0c5['subType']==_0x398f97&&Ut(_0x44c0c5,_0x5b89f6)&&(_0x29c957(_0x44c0c5[_0x5663('0xfd')](),_0x1999df)||_0x29c957(_0x1999df,_0x44c0c5[_0x5663('0xfd')]()))){if(_0x1b114d){if(_0x44c0c5[_0x5663('0x13b')]&&_0x44c0c5[_0x5663('0x13b')][_0x5663('0xc8')])continue;for(const _0xe8da97 of _0x44c0c5[_0x5663('0xfd')]())_0x1b114d[_0x5663('0x104')](_0xe8da97)||_0x1b114d['addRange'](_0xe8da97);_0x44c0c5[_0x5663('0x3a')]();}else{_0x1b114d=_0x44c0c5;for(const _0x261b33 of _0x1999df)_0x44c0c5[_0x5663('0x104')](_0x261b33)||_0x44c0c5[_0x5663('0x6f')](_0x261b33);}}if(_0x1b114d)return _0x1b114d;_0x3a92cf[_0x5663('0x11c')]();for(const {suggestion:_0x38f7c1,meta:_0x1168bd}of this[_0x5663('0xad')](_0x1999df,_0x5663('0x53')))_0x1168bd['isOwn']&&(this[_0x5663('0x9b')]||!_0x1168bd[_0x5663('0x6e')]&&!_0x1168bd[_0x5663('0x12f')])&&Ut(_0x38f7c1,_0x5b89f6)&&_0x3a92cf[_0x5663('0x1c')](_0x38f7c1);for(const _0x572baa of _0x3a92cf){const _0x3d7e3e=_0x572baa[_0x5663('0xfd')]();if(!_0x5b89f6||!_0x5b89f6[_0x5663('0xa6')]){if(_0x1999df[_0x5663('0x10b')](_0x14ac12=>_0x3d7e3e[_0x5663('0x50')](_0x56c57a=>_0x56c57a[_0x5663('0x10f')](_0x14ac12,!0x0))))return _0x572baa;}(!_0x572baa[_0x5663('0xff')]||!_0x572baa[_0x5663('0xff')]['skipNestingCheck'])&&(_0x3d7e3e[_0x5663('0x10b')](_0x727c60=>_0x1999df[_0x5663('0x50')](_0x5e2474=>_0x5e2474[_0x5663('0x10f')](_0x727c60,!0x0)))&&_0x572baa[_0x5663('0x7a')]());}const _0x38ef8d=_0x38e0ed(),_0x291372=_0x44b71c['id'],_0x5ec77e=_0x5663('0xe1')+_0x398f97,_0x35eb14=this[_0x5663('0x15')]({'id':_0x38ef8d,'type':_0x5ec77e,'createdAt':new Date(),'authorId':_0x291372,'attributes':_0x5b89f6});for(const _0x153353 of _0x1999df)_0x153353[_0x5663('0x5f')](),_0x153353['isCollapsed']||'$graveyard'==_0x153353[_0x5663('0x89')][_0x5663('0x60')]||this['_addSuggestionMarker'](_0x5ec77e,_0x38ef8d,_0x291372,_0x153353,_0x1b2caa['getMultiRangeId']());return _0x35eb14;}[_0x5663('0xcc')](_0x5bb782,_0x521e4b){const _0x5912e6=_0x5bb782[_0x5663('0xc0')]();this[_0x5663('0x59')]['change'](_0xe37d51=>{_0xe37d51[_0x5663('0x2c')](_0x5912e6,{'range':_0x521e4b});});}[_0x5663('0x49')](_0x3d0eb1){const _0x3ba79f=_0x3d0eb1['id'],_0x30b1e4=this[_0x5663('0x0')][_0x5663('0x22')][_0x5663('0x34')]('collaboration.channelId');this[_0x5663('0x11')][_0x5663('0x106')](_0x3ba79f)||this[_0x5663('0x11')]['addCommentThread']({'channelId':_0x30b1e4,'threadId':_0x3ba79f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x46436e=this[_0x5663('0x11')]['getCommentThread'](_0x3ba79f);_0x46436e[_0x5663('0xd')](_0x5663('0x57')),_0x46436e[_0x5663('0x57')]=!0x1,_0x3d0eb1[_0x5663('0x13b')]=_0x46436e;}[_0x5663('0x67')](_0x4039d0,_0x2017d5,_0x18c6e4,_0xe558cb){if(_0x4039d0[_0x5663('0xb')]!=_0x2017d5||_0x4039d0['subType']!=_0x18c6e4||_0x4039d0[_0x5663('0xd4')]['id']!=_0xe558cb)throw this[_0x5663('0x0')]['enableReadOnlyMode'](_0x5663('0x9f')),new _0x464c58(_0x5663('0x9f'),this);}[_0x5663('0xda')](_0x48c94e,_0x593198){const _0x30bd18=_0x48c94e[_0x5663('0x109')]();if(_0x593198['isEqual'](_0x30bd18))_0x48c94e[_0x5663('0x3a')]();else{if(_0x30bd18['containsRange'](_0x593198)){const _0x149b88=this[_0x5663('0x59')][_0x5663('0xa4')](_0x593198['start'][_0x5663('0x40')],'end');this['_setSuggestionRange'](_0x48c94e,this[_0x5663('0x59')][_0x5663('0xef')](_0x30bd18[_0x5663('0x11b')],_0x149b88));const _0x2a959b=_0x38e0ed(),_0x139f18=_0x48c94e[_0x5663('0xd4')]['id'],_0x364dfe=_0x48c94e[_0x5663('0xb')]+':'+_0x48c94e['subType'];this[_0x5663('0x15')]({'id':_0x2a959b,'type':_0x364dfe,'createdAt':new Date(),'authorId':_0x139f18,'data':_0x48c94e[_0x5663('0xe8')],'attributes':_0x48c94e['attributes']});const _0x27de0b=this[_0x5663('0x59')]['createPositionAt'](_0x593198['end']['parent'],_0x5663('0x52')),_0x1792bb=this['_model']['createRange'](_0x27de0b,_0x30bd18[_0x5663('0x112')]);this[_0x5663('0xf7')](_0x364dfe,_0x2a959b,_0x139f18,_0x1792bb);}else{if(_0x30bd18[_0x5663('0xb2')](_0x593198[_0x5663('0x11b')])){const _0x204942=this[_0x5663('0x59')][_0x5663('0xa4')](_0x593198[_0x5663('0x11b')][_0x5663('0x40')],_0x5663('0x112'));this[_0x5663('0xcc')](_0x48c94e,this[_0x5663('0x59')][_0x5663('0xef')](_0x30bd18[_0x5663('0x11b')],_0x204942));}else{const _0x58059b=this[_0x5663('0x59')]['createPositionAt'](_0x593198['end']['parent'],_0x5663('0x52'));this[_0x5663('0xcc')](_0x48c94e,this[_0x5663('0x59')]['createRange'](_0x58059b,_0x30bd18[_0x5663('0x112')]));}}}}['_rangeIsInLocalUserInsertion'](_0x133962){for(const {suggestion:_0xc70c48,meta:_0xa8304b}of this[_0x5663('0xad')](_0x133962,_0x5663('0x30'))){if(!_0xa8304b[_0x5663('0x84')])continue;const _0x1d8ae9=_0xc70c48[_0x5663('0xfd')]();for(const _0xf5f25e of _0x1d8ae9)if(!_0x133962[_0x5663('0x86')](_0xf5f25e)['length'])return!0x0;}return!0x1;}[_0x5663('0x4d')](_0x50112c){const _0x36a4c3=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['getUser'](_0x50112c);if(!_0x36a4c3)throw new _0x464c58('track-changes-user-not-found',this);return _0x36a4c3;}['_getExternalAuthor'](_0x1200fa){const _0x4459f9=this['editor']['plugins'][_0x5663('0x34')](_0x5663('0x10c')),_0xa01e5f=_0x17dee1(_0x5663('0x4a')+_0x1200fa),_0x23d909=_0x4459f9[_0x5663('0x11a')](_0xa01e5f);return _0x23d909||_0x4459f9[_0x5663('0xd6')]({'id':_0xa01e5f,'name':_0x1200fa});}[_0x5663('0x1e')](_0x240e70,_0xe35db1,_0x4a5e76,_0x4eb382,_0x69cb6e){const _0x3b21c3=this[_0x5663('0x4d')](_0x4eb382),_0x36e5eb=this[_0x5663('0xa')][_0x5663('0x6b')](_0x240e70,_0xe35db1,_0x4a5e76,_0x3b21c3,_0x69cb6e,_0x1a77bd=>this[_0x5663('0x12b')](_0x4a5e76,{'attributes':_0x1a77bd}));return this[_0x5663('0xb9')](_0x36e5eb,_0x5663('0x37'),()=>{this['_updateSuggestionData'](_0x4a5e76,{'state':'accepted'});},{'priority':_0x5663('0x3')}),this['listenTo'](_0x36e5eb,_0x5663('0x7a'),()=>{this[_0x5663('0x12b')](_0x4a5e76,{'state':_0x5663('0x4f')});},{'priority':'high'}),this[_0x5663('0x99')]['set'](_0x4a5e76,_0x36e5eb),this[_0x5663('0x78')][_0x5663('0x2b')](_0x36e5eb,_0x5663('0x98')),_0x36e5eb;}[_0x5663('0xc6')](_0x1e5fb2){const _0x379c37=_0x1e5fb2[_0x5663('0xf5')](':');return{'group':_0x379c37[0x0],'type':_0x379c37[0x1],'subType':_0x379c37['length']>=0x5?_0x379c37[0x2]:null,'id':_0x379c37[_0x5663('0xc8')]<0x5?_0x379c37[0x2]:_0x379c37[0x3],'authorId':_0x379c37[_0x5663('0xc8')]<0x5?_0x379c37[0x3]:_0x379c37[0x4],'markerCount':0x6==_0x379c37[_0x5663('0xc8')]?_0x379c37[0x5]:null};}[_0x5663('0xb0')](_0x3ca724,_0x3e9e64,_0x34e03f){const _0x4bc324=_0x3ca724[_0x5663('0x109')](),_0x5327fe=_0x4bc324[_0x5663('0x11b')],_0x27f627=_0x4bc324[_0x5663('0x112')];this['_setSuggestionRange'](_0x3ca724,this[_0x5663('0x59')][_0x5663('0xef')](_0x5327fe,_0x3e9e64));const _0x54f855=_0x38e0ed(),_0x8034a6=_0x3ca724['creator']['id'],_0x7db55=_0x3ca724['type']+(_0x3ca724['subType']?':'+_0x3ca724[_0x5663('0x5b')]:'');this['_setSuggestionData']({'id':_0x54f855,'type':_0x7db55,'createdAt':new Date(),'authorId':_0x8034a6,'originalSuggestionId':_0x3ca724['id'],'attributes':_0x3ca724['attributes'],'data':_0x3ca724['data']}),_0x5663('0x133')==_0x3ca724[_0x5663('0xb')]&&(_0x34e03f=this['_model'][_0x5663('0x3d')](_0x34e03f[_0x5663('0x123')])),this['_addSuggestionMarker'](_0x7db55,_0x54f855,_0x8034a6,this[_0x5663('0x59')][_0x5663('0xef')](_0x34e03f,_0x27f627));}[_0x5663('0xad')](_0x2e4a0f,_0x3a3c6f=null){const _0x21dd27=[],_0x582a53=this['editor'][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10c'))['me'];Array[_0x5663('0x7b')](_0x2e4a0f)||(_0x2e4a0f=[_0x2e4a0f]);for(const _0x427feb of this[_0x5663('0x110')]()){if(!_0x427feb['isInContent'])continue;if(_0x3a3c6f&&_0x427feb[_0x5663('0xb')]!=_0x3a3c6f)continue;let _0x44b150=!0x1;for(const _0x3e2995 of _0x427feb[_0x5663('0xfd')]()){for(const _0xfceb93 of _0x2e4a0f){const _0x375bb0=_0xfceb93['start'][_0x5663('0x4c')](_0x3e2995[_0x5663('0x112')])||_0xfceb93['end'][_0x5663('0x4c')](_0x3e2995[_0x5663('0x11b')]);if(_0x375bb0||_0xfceb93[_0x5663('0x136')](_0x3e2995)){const _0x8a6eb7=_0xfceb93[_0x5663('0x10f')](_0x3e2995)&&Bt(this[_0x5663('0x59')][_0x5663('0x5c')],_0x3e2995[_0x5663('0x11b')],_0xfceb93),_0x29aef1=_0x3e2995['containsRange'](_0xfceb93)&&Bt(this[_0x5663('0x59')][_0x5663('0x5c')],_0xfceb93['start'],_0x3e2995);_0x21dd27[_0x5663('0xeb')]({'suggestion':_0x427feb,'meta':{'isOwn':_0x582a53==_0x427feb[_0x5663('0x127')],'isNextTo':_0x375bb0,'isInsideObject':_0x8a6eb7,'containsRangeInObject':_0x29aef1}}),_0x44b150=!0x0;break;}}if(_0x44b150)break;}}return _0x21dd27;}[_0x5663('0xf7')](_0x371714,_0x41bdb0,_0xcfe7c8,_0x571cb1,_0x58b0ba){this['_model']['change'](_0x4fb5ea=>{let _0x50fc09=_0x5663('0x81')+_0x371714+':'+_0x41bdb0+':'+_0xcfe7c8;_0x58b0ba&&(_0x50fc09=_0x50fc09+':'+_0x58b0ba),_0x4fb5ea[_0x5663('0xbb')](_0x50fc09,{'range':_0x571cb1,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5663('0x107')](_0x1d6446){const _0x285ca0=_0x1d6446[_0x5663('0xd5')],_0x4d1acb=_0x1d6446[_0x5663('0x90')];_0x1d6446[_0x5663('0xd5')]=null,null!=_0x285ca0&&(_0x285ca0[_0x5663('0x90')]=null),_0x1d6446[_0x5663('0x90')]=null,null!=_0x4d1acb&&(_0x4d1acb[_0x5663('0xd5')]=null),_0x5663('0x103')==this[_0x5663('0x78')][_0x5663('0x34')](_0x1d6446)&&(this['_suggestionState'][_0x5663('0x2b')](_0x1d6446,_0x5663('0xd7')),this[_0x5663('0x2a')](_0x5663('0x10a'),_0x1d6446,_0x285ca0,_0x4d1acb));}[_0x5663('0x15')](_0x3ed9fe){const _0x4531c9=_0x3ed9fe['id'],_0x465a47=this[_0x5663('0x14')](_0x3ed9fe);if(this[_0x5663('0xd0')]&&this[_0x5663('0xd0')][_0x5663('0x8a')]){const _0xe73804=this[_0x5663('0x0')][_0x5663('0x16')][_0x5663('0x34')](_0x5663('0x10')),_0x257bcf=_0x465a47[_0x5663('0xb7')],_0x5ad64c=_0x465a47[_0x5663('0x5b')]?_0x465a47[_0x5663('0xb')]+':'+_0x465a47[_0x5663('0x5b')]:_0x465a47[_0x5663('0xb')],_0x2f3be4=this['editor']['locale'],_0x43e32c=_0xe73804[_0x5663('0x1c')](_0x393f40(_0x2f3be4,_0x5663('0x138'))),_0x2b3a4c={'id':_0x4531c9,'type':_0x5ad64c,'hasComments':_0x257bcf,'data':_0x3ed9fe[_0x5663('0xe8')]||null,'originalSuggestionId':_0x3ed9fe[_0x5663('0xe9')]||null,'attributes':_0x465a47[_0x5663('0xff')]};this['_adapter'][_0x5663('0x8a')](_0x2b3a4c)[_0x5663('0x44')](_0x49135c=>{_0x465a47[_0x5663('0xdc')]=!0x0,_0xe73804['remove'](_0x43e32c),_0x49135c&&_0x49135c['createdAt']&&(this[_0x5663('0x99')][_0x5663('0x34')](_0x4531c9)['createdAt']=_0x49135c[_0x5663('0x126')]);})['catch'](_0x3ea9d4=>{throw _0x22fae2(_0x5663('0x8')),this['editor']['model'][_0x5663('0x39')]({'isUndoable':!0x1},()=>{_0x465a47['discard']();}),_0x465a47['stopListening'](),this[_0x5663('0x99')][_0x5663('0x13e')](_0x465a47['id']),this[_0x5663('0x78')][_0x5663('0x13e')](_0x465a47),_0x3ea9d4;});}return _0x465a47;}[_0x5663('0x12b')](_0x3db7a6,_0x45eaf2){const _0x385223=this[_0x5663('0x0')]['plugins']['get']('PendingActions'),_0x36332b=this[_0x5663('0xa0')](_0x3db7a6);if(this[_0x5663('0xd0')]&&this['_adapter'][_0x5663('0xed')]){if(_0x36332b[_0x5663('0xdc')]){const _0x5198e1=_0x385223[_0x5663('0x1c')](_0x393f40(this[_0x5663('0x0')][_0x5663('0x74')],_0x5663('0x138')));this['_adapter'][_0x5663('0xed')](_0x3db7a6,_0x45eaf2)[_0x5663('0x44')](()=>{_0x385223[_0x5663('0x9c')](_0x5198e1);});}else _0x36332b['on'](_0x5663('0xa9'),()=>{this[_0x5663('0x12b')](_0x3db7a6,_0x45eaf2);});}}[_0x5663('0x130')](_0x2bb8ab){if(!this[_0x5663('0xd0')]||!this[_0x5663('0xd0')][_0x5663('0xa0')])throw new _0x464c58(_0x5663('0x85'),this);return this['_adapter']['getSuggestion'](_0x2bb8ab);}[_0x5663('0xf4')](_0x13760f){const {id:_0x4e443b,type:_0x11783c,subType:_0x4301ff,authorId:_0x4a5c29}=this[_0x5663('0xc6')](_0x13760f),_0x28b6e2=this[_0x5663('0x99')][_0x5663('0x34')](_0x4e443b)||this[_0x5663('0x1e')](_0x11783c,_0x4301ff,_0x4e443b,_0x4a5c29,{});switch(this[_0x5663('0x67')](_0x28b6e2,_0x11783c,_0x4301ff,_0x4a5c29),this[_0x5663('0x78')][_0x5663('0x34')](_0x28b6e2)){case _0x5663('0x98'):this[_0x5663('0x130')](_0x4e443b)[_0x5663('0x44')](_0x2fafe8=>{let _0x208dcd=Promise[_0x5663('0x6a')]();_0x2fafe8[_0x5663('0xb7')]&&(_0x208dcd=this[_0x5663('0x11')][_0x5663('0x62')]({'channelId':this[_0x5663('0x0')][_0x5663('0x22')]['get']('collaboration.channelId'),'threadId':_0x4e443b})),_0x208dcd[_0x5663('0x44')](()=>{this[_0x5663('0x14')](_0x2fafe8)['_saved']=!0x0;});}),this[_0x5663('0x78')][_0x5663('0x2b')](_0x28b6e2,_0x5663('0x31'));break;case _0x5663('0xd7'):this[_0x5663('0x12b')](_0x4e443b,{'state':'open'});case _0x5663('0x71'):this[_0x5663('0x78')]['set'](_0x28b6e2,'ready'),this[_0x5663('0x2a')]('suggestionLoaded',_0x28b6e2);break;case _0x5663('0x103'):this[_0x5663('0x2a')]('suggestionChanged',_0x28b6e2);}return _0x28b6e2[_0x5663('0x11f')](_0x13760f),_0x28b6e2;}[_0x5663('0xaf')](_0x3ee519){const _0x2fa3f3=Array[_0x5663('0xc4')](_0x3ee519)[_0x5663('0x66')](_0x30b542=>!_0x30b542[_0x5663('0xd1')]),_0x4a6b2f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cbb12=>!_0x1cbb12[_0x5663('0xd1')]),_0x2bb36c=_0x4a6b2f[_0x5663('0x66')](_0x1814a4=>!_0x3ee519[_0x5663('0xe2')](_0x1814a4)),_0x25640b=new Map(_0x4a6b2f[_0x5663('0xc')](_0x130269=>[_0x130269,this[_0x5663('0xa')][_0x5663('0x1b')](_0x130269[_0x5663('0xb')],_0x130269['subType'],_0x5663('0x24'))])),_0x205d37=new Map(_0x4a6b2f['map'](_0xa07ebd=>[_0xa07ebd,_0xa07ebd[_0x5663('0x109')]()])),_0x2c1dd1=new Set(),_0x45e3cb=new Set();for(let _0xeeb81e=0x0;_0xeeb81e<_0x2fa3f3[_0x5663('0xc8')];_0xeeb81e++)_0x45cf4b(_0x2fa3f3[_0xeeb81e],_0x2fa3f3,_0xeeb81e+0x1);for(let _0xc2d064=0x0;_0xc2d064<_0x2fa3f3[_0x5663('0xc8')];_0xc2d064++)_0x45cf4b(_0x2fa3f3[_0xc2d064],_0x2bb36c,0x0);for(let _0x69b78d=0x0;_0x69b78d<_0x2fa3f3['length'];_0x69b78d++){const _0xf99f02=_0x2fa3f3[_0x69b78d];!_0x45e3cb[_0x5663('0xe2')](_0xf99f02)&&_0xf99f02[_0x5663('0xd5')]&&(_0xf99f02[_0x5663('0xd5')][_0x5663('0x90')]===_0xf99f02&&(_0xf99f02[_0x5663('0xd5')][_0x5663('0x90')]=null),_0xf99f02[_0x5663('0xd5')]=null),!_0x2c1dd1[_0x5663('0xe2')](_0xf99f02)&&_0xf99f02[_0x5663('0x90')]&&(_0xf99f02[_0x5663('0x90')][_0x5663('0xd5')]===_0xf99f02&&(_0xf99f02[_0x5663('0x90')][_0x5663('0xd5')]=null),_0xf99f02[_0x5663('0x90')]=null);}function _0x45cf4b(_0x8aa944,_0x1cb5c2,_0x1f26b1){for(let _0x45a919=_0x1f26b1;_0x45a919<_0x1cb5c2[_0x5663('0xc8')];_0x45a919++){const _0x4a4ca7=_0x2bf2ca(_0x8aa944,_0x1cb5c2[_0x45a919]);_0x4a4ca7&&(_0x4a4ca7[0x0][_0x5663('0x90')]=_0x4a4ca7[0x1],_0x4a4ca7[0x1][_0x5663('0xd5')]=_0x4a4ca7[0x0],_0x2c1dd1['add'](_0x4a4ca7[0x0]),_0x45e3cb[_0x5663('0x1c')](_0x4a4ca7[0x1]));}}function _0x2bf2ca(_0x25b2b5,_0x4d06a3){if(_0x25b2b5[_0x5663('0x127')]['id']!==_0x4d06a3[_0x5663('0x127')]['id'])return null;const _0x37dd14=_0x25640b['get'](_0x25b2b5)(_0x25b2b5,_0x4d06a3,_0x205d37[_0x5663('0x34')](_0x25b2b5),_0x205d37[_0x5663('0x34')](_0x4d06a3));if(!_0x37dd14)return null;return _0x25640b['get'](_0x4d06a3)(_0x25b2b5,_0x4d06a3,_0x205d37[_0x5663('0x34')](_0x25b2b5),_0x205d37[_0x5663('0x34')](_0x4d06a3))?_0x37dd14[0x1][_0x5663('0x13b')]&&_0x37dd14[0x1][_0x5663('0x13b')][_0x5663('0xc8')]?null:_0x37dd14:null;}}[_0x5663('0xc1')](_0x552b02){const _0x5f322b=Array['from'](_0x552b02),_0x3a4269=this[_0x5663('0x110')]({'skipNotAttached':!0x0}),_0x5684b2=_0x3a4269[_0x5663('0x66')](_0x123ee2=>!_0x552b02[_0x5663('0xe2')](_0x123ee2)),_0x5bcbde=new Map(_0x5f322b[_0x5663('0xc')](_0x5b488b=>[_0x5b488b,this[_0x5663('0xa')][_0x5663('0x1b')](_0x5b488b[_0x5663('0xb')],_0x5b488b[_0x5663('0x5b')],_0x5663('0x2d'))])),_0x570ac1=new Map(_0x3a4269[_0x5663('0xc')](_0x276f1d=>[_0x276f1d,_0x276f1d[_0x5663('0xfd')]()]));for(let _0x1a37d2=0x0;_0x1a37d2<_0x5f322b[_0x5663('0xc8')];_0x1a37d2++){if(_0x46ba6a(this,_0x5f322b[_0x1a37d2],_0x5f322b,_0x1a37d2+0x1))return!0x0;}for(let _0x1f443a=0x0;_0x1f443a<_0x5f322b[_0x5663('0xc8')];_0x1f443a++){if(_0x46ba6a(this,_0x5f322b[_0x1f443a],_0x5684b2,0x0))return!0x0;}return!0x1;function _0x46ba6a(_0x4cfc9c,_0x209e24,_0x5c5324,_0x1a9293){for(let _0x3832ab=_0x1a9293;_0x3832ab<_0x5c5324[_0x5663('0xc8')];_0x3832ab++){const _0x1e670e=_0x5c5324[_0x3832ab];if(_0x1e670e['type']!==_0x209e24[_0x5663('0xb')]||_0x1e670e['author']['id']!==_0x209e24[_0x5663('0x127')]['id']||_0x1e670e[_0x5663('0x5b')]!==_0x209e24[_0x5663('0x5b')])continue;if(!xt(_0x209e24,_0x1e670e))continue;const _0x28fe79=_0x5bcbde['get'](_0x209e24),_0x192571=_0x570ac1[_0x5663('0x34')](_0x209e24),_0x301928=_0x570ac1[_0x5663('0x34')](_0x1e670e),_0x585bf4=_0x209e24['commentThread']&&_0x209e24[_0x5663('0x13b')][_0x5663('0xc8')],_0x1544cf=_0x1e670e['commentThread']&&_0x1e670e['commentThread'][_0x5663('0xc8')];if(!_0x585bf4&&_0x28fe79(_0x301928,_0x192571))return _0x4cfc9c[_0x5663('0xde')](_0x1e670e,_0x209e24),_0x570ac1[_0x5663('0x13e')](_0x209e24),!0x0;if(!_0x1544cf&&_0x28fe79(_0x192571,_0x301928))return _0x4cfc9c['_joinSuggestions'](_0x209e24,_0x1e670e),_0x570ac1[_0x5663('0x13e')](_0x1e670e),!0x0;}return!0x1;}}[_0x5663('0xde')](_0x246705,_0x1fb5dc){if(_0x246705[_0x5663('0xd1')])for(const _0x462368 of _0x1fb5dc['getRanges']())_0x246705['addRange'](_0x462368);else{const _0x4467ca=_0x1fb5dc[_0x5663('0x109')]()[_0x5663('0x112')];this[_0x5663('0xcc')](_0x246705,this['_model'][_0x5663('0xef')](_0x246705[_0x5663('0x109')]()[_0x5663('0x11b')],_0x4467ca));}_0x1fb5dc['removeMarkers']();}}class Dt{constructor(_0x34fec9){this[_0x5663('0x77')]=_0x34fec9,this[_0x5663('0x59')]=_0x34fec9[_0x5663('0x19')],this['_customCallbacks']=new Map(),this[_0x5663('0xe4')]=new Map(),this[_0x5663('0xe5')]();}[_0x5663('0x6b')](_0x22e482,_0x8d551,_0x10459a,_0x478c22,_0x4ef47e,_0x196545){return new _0x1b2caa(this['_model'],{'type':_0x22e482,'subType':_0x8d551,'id':_0x10459a,'author':_0x478c22,'creator':_0x478c22,'attributes':_0x4ef47e,'onAttributesChange':_0x196545,'onAccept':(..._0x53bb32)=>this['getSuggestionCallback'](_0x22e482,_0x8d551,'accept')(..._0x53bb32),'onDiscard':(..._0x5c3118)=>this['getSuggestionCallback'](_0x22e482,_0x8d551,'discard')(..._0x5c3118)});}[_0x5663('0x11d')](_0x52e962,_0x382f75,_0x2eeedb,_0x244bc8){const _0x217122=_0x52e962+':'+_0x382f75+':'+_0x2eeedb;this[_0x5663('0x96')]['set'](_0x217122,_0x244bc8);}[_0x5663('0x1b')](_0xe72264,_0x222e9a,_0x402a30){const _0x3a8214=_0xe72264+':'+_0x222e9a+':'+_0x402a30;return this[_0x5663('0x96')][_0x5663('0x34')](_0x3a8214)||this[_0x5663('0xe4')][_0x5663('0x34')](_0xe72264+':'+_0x402a30);}['_registerDefaultCallbacks'](){const _0x3e7048=()=>!0x1,_0x54b6ec=_0x261f57=>{_0x261f57['sort']((_0xe93021,_0x23fb35)=>_0xe93021['start'][_0x5663('0xf3')](_0x23fb35[_0x5663('0x11b')])?0x1:-0x1),this[_0x5663('0x59')][_0x5663('0xb4')](_0x3229e6=>{for(const _0x4b3314 of _0x261f57){let _0x50cf58;_0x50cf58=_0x4b3314[_0x5663('0x112')][_0x5663('0x4')]&&_0x4b3314[_0x5663('0x112')][_0x5663('0x123')]==_0x4b3314[_0x5663('0x11b')]['nodeAfter']?_0x3229e6[_0x5663('0x13c')](_0x4b3314[_0x5663('0x11b')][_0x5663('0xf')],'on'):_0x3229e6[_0x5663('0x13c')](_0x4b3314),this['_model']['deleteContent'](_0x50cf58,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3c4daf=(_0x5440ec,_0x4b7034)=>{this[_0x5663('0x59')][_0x5663('0xb4')](_0xe04bc2=>{const {commandName:_0x5b04fa,commandParams:_0x4ec099=[]}=_0x4b7034,_0x39f494=_0x5440ec[_0x5663('0xc')](_0x52bb76=>(_t(_0x52bb76)&&(_0x52bb76=this[_0x5663('0x59')][_0x5663('0xef')](_0x52bb76[_0x5663('0x112')])),_0x52bb76))[_0x5663('0x66')](_0x4390ef=>_0x5663('0x51')!==_0x4390ef[_0x5663('0x89')][_0x5663('0x60')]);if(_0x39f494[_0x5663('0xc8')]<0x1)return;const _0x3c100e=Array[_0x5663('0xc4')](this[_0x5663('0x59')][_0x5663('0x125')]['selection'][_0x5663('0xfd')]())[_0x5663('0xc')](_0x1ed1a1=>_0x21149e[_0x5663('0x69')](_0x1ed1a1));_0xe04bc2[_0x5663('0x12c')](_0x39f494);for(const _0x12f9cc of this[_0x5663('0x77')]['commands'][_0x5663('0xfb')]())_0x12f9cc['refresh']();_0x4ec099['push']({'forceDefaultExecution':!0x0}),this['_editor'][_0x5663('0x68')](_0x5b04fa,..._0x4ec099);const _0x1817c4=_0x3c100e[_0x5663('0x66')](_0x5a7082=>_0x5663('0x51')!=_0x5a7082['root']['rootName']);_0x1817c4[_0x5663('0xc8')]>0x0&&_0xe04bc2[_0x5663('0x12c')](_0x1817c4);for(const _0x8b279e of _0x3c100e)_0x8b279e[_0x5663('0x5f')]();});},_0x491987=(_0x4c5159,_0x508f15)=>0x1==_0x4c5159[_0x5663('0xc8')]&&0x1==_0x508f15['length']&&_0x4c5159[0x0][_0x5663('0x112')][_0x5663('0x4c')](_0x508f15[0x0]['start']),_0xbc431b=(_0x8101bb,_0x36aba5,_0x5b458c,_0x41c63b)=>jt(_0x8101bb,_0x36aba5,_0x5b458c,_0x41c63b,this[_0x5663('0x59')])?[_0x8101bb,_0x36aba5]:jt(_0x36aba5,_0x8101bb,_0x41c63b,_0x5b458c,this['_model'])?[_0x36aba5,_0x8101bb]:null;this[_0x5663('0xe4')]['set'](_0x5663('0x5a'),_0x3e7048),this['_defaultCallbacks'][_0x5663('0x2b')](_0x5663('0x4e'),_0x54b6ec),this[_0x5663('0xe4')][_0x5663('0x2b')]('insertion:join',_0x491987),this[_0x5663('0xe4')]['set']('insertion:chain',_0xbc431b),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0x56'),_0x54b6ec),this['_defaultCallbacks'][_0x5663('0x2b')](_0x5663('0x113'),_0x3e7048),this[_0x5663('0xe4')][_0x5663('0x2b')]('deletion:join',_0x491987),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0x5e'),_0xbc431b),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0x122'),_0x3c4daf),this['_defaultCallbacks'][_0x5663('0x2b')](_0x5663('0xf0'),_0x3e7048),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0x1d'),_0x491987),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0xec'),_0x3e7048),this['_defaultCallbacks'][_0x5663('0x2b')](_0x5663('0x116'),_0x3c4daf),this[_0x5663('0xe4')][_0x5663('0x2b')](_0x5663('0xc2'),_0x3e7048),this[_0x5663('0xe4')][_0x5663('0x2b')]('formatBlock:join',_0x491987),this[_0x5663('0xe4')]['set'](_0x5663('0x92'),_0x3e7048);}}function Bt(_0x3720ee,_0x1b80f1,_0x32f426){for(const _0x8702e3 of _0x1b80f1[_0x5663('0x123')][_0x5663('0xac')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x8702e3[_0x5663('0x89')]==_0x8702e3)return!0x1;if(!_0x32f426[_0x5663('0x20')](_0x8702e3))return!0x1;if(_0x3720ee['isObject'](_0x8702e3)||_0x3720ee[_0x5663('0x117')](_0x8702e3))return!0x0;}return!0x1;}function _t(_0x37b48b){return _0x37b48b[_0x5663('0x112')][_0x5663('0x123')]==_0x37b48b['start'][_0x5663('0xf')]&&_0x37b48b['end'][_0x5663('0x101')];}function Mt(_0x3f800e,_0x479a19,_0x4020b,_0x450d11){const _0x419045=_0x169c10=>!_0x169c10[_0x5663('0xf2')]['is'](_0x5663('0x55'))&&!_0x450d11[_0x5663('0xce')](_0x169c10[_0x5663('0xf2')]),_0x2b5bd4=_0x3f800e[_0x5663('0x11b')][_0x5663('0x23')](_0x419045),_0x56cf1c=_0x3f800e[_0x5663('0x112')][_0x5663('0x23')](_0x419045,{'direction':'backward'});return(!_0x3f800e[_0x5663('0x11b')][_0x5663('0x4c')](_0x2b5bd4)||!_0x3f800e[_0x5663('0x112')][_0x5663('0x4c')](_0x56cf1c))&&(_0x2b5bd4[_0x5663('0xf3')](_0x56cf1c)?_0x4020b['updateMarker'](_0x479a19,{'range':_0x4020b[_0x5663('0xef')](_0x2b5bd4,_0x56cf1c)}):_0x4020b[_0x5663('0xbd')](_0x479a19),!0x0);}function $t(_0x40c85d){return _0x17dee1(_0x40c85d);}function Nt(_0x14cf2e){const _0x15bc34=_0x14cf2e[_0x5663('0x11b')][_0x5663('0xf')];return _0x15bc34&&_0x15bc34['is']('element');}function Rt(_0x169c2d,_0xb05741){const _0x3a6e75=_0xb05741[_0x5663('0x5c')][_0x5663('0xce')](_0x169c2d)||_0xb05741[_0x5663('0x5c')]['isSelectable'](_0x169c2d);return _0xb05741[_0x5663('0xef')](_0xb05741[_0x5663('0xa4')](_0x169c2d,_0x5663('0x17')),_0x3a6e75?_0xb05741[_0x5663('0x124')](_0x169c2d):_0xb05741[_0x5663('0xa4')](_0x169c2d,_0x5663('0x112')));}function jt(_0x55042a,_0x2293c1,_0x44ca78,_0x11350d,_0x48f59b){if(!xt(_0x55042a,_0x2293c1))return!0x1;if(_0x44ca78['end'][_0x5663('0x4c')](_0x11350d['start']))return!0x0;if(_0x55042a[_0x5663('0xb')]!=_0x2293c1['type'])return!0x1;if(!_0x44ca78['end']['isTouching'](_0x11350d[_0x5663('0x11b')]))return!0x1;const _0x2e4949=_0x48f59b[_0x5663('0xef')](_0x44ca78[_0x5663('0x112')],_0x11350d['start'])[_0x5663('0x132')]();for(const _0x25c197 of _0x2e4949)if([_0x5663('0xba'),_0x5663('0xdb')][_0x5663('0x4b')](_0x25c197['type'])&&_0x48f59b[_0x5663('0x5c')][_0x5663('0x117')](_0x25c197[_0x5663('0xf2')]))return!0x1;return!0x0;}function xt(_0x2d01f9,_0x4f4f26){return!(!_0x2d01f9['_isDataLoaded']||!_0x4f4f26[_0x5663('0x42')])&&_0x17381c(_0x2d01f9[_0x5663('0xff')],_0x4f4f26[_0x5663('0xff')]);}function Ut(_0x5c8445,_0xa3cb80){const _0xd3187f=Ot(_0x5c8445[_0x5663('0xff')]),_0x1d4ae4=Ot(_0xa3cb80);if(!_0x5c8445['_isDataLoaded'])return!0x1;for(const _0x5e1c6f of Object[_0x5663('0x135')](_0x1d4ae4))if(!_0x17381c(_0xd3187f[_0x5e1c6f],_0x1d4ae4[_0x5e1c6f]))return!0x1;return!0x0;}function Ot(_0xd19e37){const _0x3aee21=Object[_0x5663('0x121')]({},_0xd19e37);return delete _0x3aee21[_0x5663('0xa6')],delete _0x3aee21['tablePasteChainId'],_0x3aee21;}
|
|
23
|
+
const _0x12ed=['getLastMatchingPosition','_adapter','$graveyard','discard','_addThreadToSuggestion','previous','change','activeMarkers','removed','howMany','getFirstRange','from','hasComments','isDocumentOperation','_refreshSuggestionsChain','isOwn','getAllAdjacentSuggestions','consumable','documentSelection','isTouching','$textProxy','_breakSuggestionMarker','enqueueChange','consume','_joinWithAdjacentSuggestions','change:activeMarkers','marker-count','isAtStart','deletion','setSelection','commandName','clone','_removeSuggestion','isAfter','pluginName','elementEnd','batch','acceptSuggestion','insertion','getCommentThread','setTo','data','insertContent','markMultiRangeDeletion','_createSuggestion','high','for','CommentsRepository','init','editor','createPositionAt','assign','getChanges','delete','oldRange','model','adapter','splice','accept','element','type','_handleNewSuggestionMarker','getSuggestions','containsPosition','backward','never','addMarker:suggestion','ck-suggestion-marker--active','setAttribute','collaboration.channelId','discardSelectedSuggestions','creator','schema','formatInline','name','_cutOutSuggestionMarker','acceptSelectedSuggestions','unbind','_commentsRepository','getSuggestion','insertion:chain','deletion:chain','getUser','stopListening','ck-suggestion-marker','elementToElement','_suggestionState','_isForcedDefaultExecutionBlock','_isDataLoaded','get','range','editingDowncast','author','newRange','notReady','addMarker','removeMarkers','join','suggestionUnloaded','then','suggestion','_suggestions','value','data-suggestion','always','markDeletion','ready','addSuggestionData','getSuggestionCallback','insertion:join','ck-suggestion-marker-','isInContent','mapper','markerNameToElements','isObject','every','default','formatInline:chain','getMultiRangeId','markMultiRangeInsertion','config','ck-suggestion-marker-formatBlock','registerCustomCallback','isRemovable','addSuggestion','_descriptionFactory','_suggestionFactory','createRange','markerToData','nodeBefore','add','requires','forward','external:','_addSuggestionMarker','rootName','_saved','showSuggestionHighlights','_checkSuggestionCorrectness','map','next','conversion','_mergeNestedSuggestions','attributes','formatBlock:join','isAtEnd','lowest','splitPosition','dataDowncast','removeMarker','isLimit','return','removeClass','forceDefaultExecution','acceptAllSuggestions','differ','_setSuggestionData','enableReadOnlyMode','rethrowUnexpectedError','split','deletion:','addHighlight','addCommentThread','discardSuggestion','Users','upcast','length','isEqual','plugins','skipNestingCheck','applyOperation','normal','track-changes-suggestion-not-found','writer','isArray','isBlock','createdAt','containsItem','getWalker','containsRange','insertion:','suggestionLoaded','isLocal','markers','multi','catch','enableCommand','_getSuggestionData','open','getCustomProperty','_getExternalAuthor','getIntersection','_getAuthorFromId','updateMarker','trackChangesCommand','commands','_rangeIsInLocalUserInsertion','PendingActions','addMarker:suggestion:formatBlock','detach','_model','registerPostFixer','_setSuggestionRange','removeAttribute','createPositionBefore','formatInline:discard','toViewElement','head','dataReady','position','_editor','addRange','_customCallbacks','sort','formatInline:accept','isUndo','hasSuggestion','deletion:accept','getNearestSelectionRange','fromRange','isMultiRange','originalSuggestionId','createElement','selection','_enabledCommands','markerReady','multipleBlocks','after','markerName','removeComment','document','isExternal','nodeAfter','change:data','end','formatGroupId','formatInline:','define','move','substr','highest','buildSuggestion','dataToMarker','addMarkerName','getDifference','markerToHighlight','suggestionChanged','hasCommentThread','includes','isInsideObject','_splitMarkerName','createSelection','isIntersectingWithRange','resolve','fetchCommentThread','start','getAncestors','getFirstMarker','refresh','size','suggestion:','discardAllSuggestions','getRange','remove','formatBlock:','getMarkers','set','_updateSuggestionData','isCollapsed','item','markMultiRangeBlockFormat','TrackChangesEditing','listenTo','_defaultCallbacks','containerElement','commentThread','subType','before','suggestion-type','push','deletion:discard','_findSuggestions','trackChanges','root','containsRangeInObject','track-changes-suggestion-data-mismatch','@external','getRanges','_joinSuggestions','deleteContent','parent','insertion:accept','low','locale','values','trackChanges.trackFormatChanges','getChangedMarkers','has','markInsertion','isNextTo','reconvertMarker','insert','fromCharCode','execute','formatBlock:chain','some','removeMarker:suggestion:formatBlock','fire','_registerDefaultCallbacks','isSelectable','deletion:join','group','filter','formatBlock','PENDING_ACTION_SUGGESTION','options','authoredAt','updateSuggestion','_trackFormatChanges','widget','getAttribute','$marker','accepted','editing','stop','addClass','isBefore','getShiftedBy'];(function(_0x422720,_0x12ed2d){const _0x5f118e=function(_0x3eb003){while(--_0x3eb003){_0x422720['push'](_0x422720['shift']());}};_0x5f118e(++_0x12ed2d);}(_0x12ed,0x17a));const _0x5f11=function(_0x422720,_0x12ed2d){_0x422720=_0x422720-0x0;let _0x5f118e=_0x12ed[_0x422720];return _0x5f118e;};import{Plugin as _0x344cb2,PendingActions as _0x4eafc3}from'ckeditor5/src/core';import{LiveRange as _0x21916d}from'ckeditor5/src/engine';import{CKEditorError as _0x2cf346,uid as _0x10549d,priorities as _0x3ccadf,logWarning as _0x593ff6}from'ckeditor5/src/utils';import{toWidget as _0xfd0e23}from'ckeditor5/src/widget';import{Users as _0x933fb4,hashObject as _0x281bde}from'ckeditor5-collaboration/src/collaboration-core';import _0xa54139 from'./commands/trackchangescommand';import _0x1baaf6 from'./commands/acceptsuggestioncommand';import _0x2dfaf9 from'./commands/discardsuggestioncommand';import _0x1b9d15 from'./commands/executeonallsuggestionscommand';import _0x457fd9 from'./commands/executeonselectedsuggestionscommand';import _0x2ad42f from'./suggestion';import _0x4ce1ea from'./suggestiondescriptionfactory';import _0x1af5ce from'./integrations/alignment';import _0x220c43 from'./integrations/basicstyles';import _0x1e4601 from'./integrations/blockquote';import _0x46bf12 from'./integrations/ckbox';import _0x45b5f5 from'./integrations/codeblock';import _0x5eae45 from'./integrations/comments';import _0x4e4fc0 from'./integrations/deletecommand';import _0x558efe from'./integrations/documentlist';import _0x6e3001 from'./integrations/entercommand';import _0x1d6b3f from'./integrations/findandreplace';import _0x1a7cb0 from'./integrations/font';import _0x42c30d from'./integrations/formatpainter';import _0x11acd4 from'./integrations/heading';import _0x5c3890 from'./integrations/highlight';import _0x5aaf98 from'./integrations/horizontalline';import _0x464088 from'./integrations/htmlembed';import _0x41f811 from'./integrations/image';import _0x25d3cb from'./integrations/imagereplace';import _0x4329f7 from'./integrations/importword';import _0x2b0798 from'./integrations/indent';import _0x52faa7 from'./integrations/inputcommand';import _0x470fb1 from'./integrations/link';import _0x402e1e from'./integrations/list';import _0x333177 from'./integrations/listproperties';import _0x580a01 from'./integrations/mediaembed';import _0x1cfd2d from'./integrations/mention';import _0x54b7f3 from'./integrations/pagebreak';import _0x30353a from'./integrations/paragraph';import _0x24d8cd from'./integrations/removeformat';import _0x3c157a from'./integrations/restrictededitingmode';import _0x437969 from'./integrations/shiftentercommand';import _0x470231 from'./integrations/standardeditingmode';import _0x2b70b9 from'./integrations/style';import _0x146bd9 from'./integrations/table';import _0xb667d1 from'./integrations/tablemergesplit';import _0x24a12d from'./integrations/tableheadings';import _0x5f27e7 from'./integrations/tableclipboard';import _0x9e2e1d from'./integrations/tablecolumnresize';import _0xf1e729 from'./integrations/template';import _0x2d042a from'./integrations/tableofcontents';import _0x305002 from'./integrations/title';import _0x516061 from'./integrations/undo';import{getTranslation as _0x415b1b}from'./utils/common-translations';import _0x55f011 from'./integrations/tablecaption';import _0x33a3a7 from'./integrations/documentlistproperties';import _0x32ac01 from'./integrations/tableproperties';import{isEqual as _0x252be2}from'lodash-es';export default class p extends _0x344cb2{static get[_0x5f11('0x51')](){return['CommentsRepository',_0x933fb4,_0x4eafc3,_0x1af5ce,_0x220c43,_0x1e4601,_0x46bf12,_0x45b5f5,_0x5eae45,_0x4e4fc0,_0x558efe,_0x33a3a7,_0x6e3001,_0x1d6b3f,_0x1a7cb0,_0x42c30d,_0x11acd4,_0x5c3890,_0x5aaf98,_0x464088,_0x41f811,_0x25d3cb,_0x4329f7,_0x2b0798,_0x52faa7,_0x470fb1,_0x402e1e,_0x333177,_0x580a01,_0x1cfd2d,_0x54b7f3,_0x30353a,_0x24d8cd,_0x3c157a,_0x437969,_0x470231,_0x2b70b9,_0x146bd9,_0xb667d1,_0x24a12d,_0x55f011,_0x5f27e7,_0x9e2e1d,_0x2d042a,_0x32ac01,_0xf1e729,_0x305002,_0x516061];}static get[_0x5f11('0x138')](){return _0x5f11('0xdd');}constructor(_0x3e4837){function _0x59f670(_0x20d9e6){return _0x20d9e6[_0x5f11('0x59')](_0x32ac8d=>String[_0x5f11('0xfc')](_0x32ac8d))[_0x5f11('0x2f')]('');}super(_0x3e4837),this[_0x5f11('0xd8')](_0x5f11('0x11d'),[]),this['on'](_0x5f11('0x12f'),(_0x68f65c,_0x3f4ea5,_0x10aa08,_0x522744)=>{this[_0x5f11('0x96')][_0x5f11('0x11c')](()=>{for(const _0x2495d3 of[..._0x522744,..._0x10aa08])this['_model'][_0x5f11('0x85')][_0x5f11('0xf7')](_0x2495d3)&&_0x3e4837[_0x5f11('0x111')][_0x5f11('0xfa')](_0x2495d3);});}),this[_0x5f11('0x4b')]=new _0x4ce1ea(this[_0x5f11('0x147')][_0x5f11('0x5')][_0x5f11('0x16')],this['editor'][_0x5f11('0xf3')]),this[_0x5f11('0x117')]=null,this[_0x5f11('0x4c')]=new Dt(this[_0x5f11('0x147')]),this[_0x5f11('0x33')]=new Map(),this[_0x5f11('0x1c')]=_0x3e4837[_0x5f11('0x76')]['get'](_0x5f11('0x145')),this[_0x5f11('0xae')]=new Set(),this['_model']=this[_0x5f11('0x147')][_0x5f11('0x5')],this[_0x5f11('0x24')]=new WeakMap(),this[_0x5f11('0x25')]=!0x1,_0x3e4837[_0x5f11('0x46')]['define'](_0x5f11('0xf5'),_0x5f11('0x42')),this[_0x5f11('0x10c')]=_0x3e4837[_0x5f11('0x46')][_0x5f11('0x27')](_0x5f11('0xf5')),_0x3e4837['config'][_0x5f11('0xbb')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x5f11('0x5c')]=_0x3e4837['config'][_0x5f11('0x27')]('trackChanges.mergeNestedSuggestions'),this[_0x5f11('0x90')]=new _0xa54139(_0x3e4837,this[_0x5f11('0xae')]),this[_0x59f670([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x59f670([0x34,0x30,0x34,0x36,0x31,0x38,0x32,0x30]);}[_0x5f11('0x146')](){const _0x4eaaf2=this[_0x5f11('0x147')];_0x4eaaf2[_0x5f11('0x5b')][_0x5f11('0x144')](_0x5f11('0x29'))[_0x5f11('0xc3')]({'model':'suggestion','view':_0x5aca53=>{const {id:_0x1dc242,type:_0x58fa41}=this[_0x5f11('0xc8')](_0x5aca53[_0x5f11('0xb2')]),_0x57cf25=[_0x5f11('0x22'),_0x5f11('0x3c')+_0x58fa41];let _0x37940f=0xbb8;return this[_0x5f11('0x11d')][_0x5f11('0xc6')](_0x5aca53[_0x5f11('0xb2')])&&(_0x57cf25['push'](_0x5f11('0x11')),_0x37940f=0xbc2),_0x5f11('0x132')==_0x58fa41&&(_0x37940f+=0x5),{'classes':_0x57cf25,'attributes':{'data-suggestion':_0x1dc242},'priority':_0x37940f};}}),_0x4eaaf2['conversion'][_0x5f11('0x144')](_0x5f11('0x62'))[_0x5f11('0x50')](_0x9f9abc=>{_0x9f9abc['on'](_0x5f11('0x10'),(_0x143568,_0x355d52,_0x1b2f6e)=>{if(!_0x1b2f6e['options']['showSuggestionHighlights'])return;const _0x111221=_0x355d52[_0x5f11('0xdb')];if(!_0x111221)return;const _0x4c0873=_0x1b2f6e[_0x5f11('0x3e')]['toViewElement'](_0x111221);_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x16')][_0x5f11('0x40')](_0x111221)&&_0x4c0873&&!_0x4c0873[_0x5f11('0x8b')](_0x5f11('0x10d'))&&_0x4c0873['is'](_0x5f11('0xe0'))&&_0xfd0e23(_0x4c0873,_0x1b2f6e['writer']);},{'priority':_0x5f11('0x143')});}),_0x4eaaf2['conversion'][_0x5f11('0x144')](_0x5f11('0x62'))[_0x5f11('0xc3')]({'model':_0x5f11('0x32'),'view':(_0x24d1e8,_0x48883f)=>{if(!_0x48883f[_0x5f11('0x109')][_0x5f11('0x57')])return null;const {type:_0x110a6e}=this[_0x5f11('0xc8')](_0x24d1e8[_0x5f11('0xb2')]);return{'classes':[_0x5f11('0x22'),_0x5f11('0x3c')+_0x110a6e],'priority':0xbb8};}});const _0x2c4e41=({showActiveMarkers:_0x50025a=!0x0}={})=>(_0x3f9f1d,_0x22367a,_0x4f8b2d)=>{if(!_0x22367a['item'])return;if(_0x22367a[_0x5f11('0xdb')]['is'](_0x5f11('0xad')))return void _0x4f8b2d[_0x5f11('0x127')][_0x5f11('0x12d')](_0x22367a[_0x5f11('0xdb')],_0x3f9f1d['name']);const _0x22086d=_0x4f8b2d[_0x5f11('0x3e')][_0x5f11('0x9c')](_0x22367a[_0x5f11('0xdb')]);if(!(_0x22367a[_0x5f11('0xdb')]['is']('element')&&_0x4eaaf2['model'][_0x5f11('0x16')][_0x5f11('0x7d')](_0x22367a[_0x5f11('0xdb')])&&!_0x22086d[_0x5f11('0x8b')](_0x5f11('0x6f'))))return;const {id:_0x1a82b2}=this[_0x5f11('0xc8')](_0x22367a[_0x5f11('0xb2')]);_0x4f8b2d[_0x5f11('0x7b')]['addClass']([_0x5f11('0x22'),_0x5f11('0x47')],_0x22086d),_0x4f8b2d['writer'][_0x5f11('0x12')](_0x5f11('0x35'),_0x1a82b2,_0x22086d),_0x4f8b2d[_0x5f11('0x3e')]['bindElementToMarker'](_0x22086d,_0x22367a[_0x5f11('0xb2')]),_0x50025a&&(this['activeMarkers'][_0x5f11('0xc6')](_0x22367a[_0x5f11('0xb2')])?_0x4f8b2d[_0x5f11('0x7b')][_0x5f11('0x113')]('ck-suggestion-marker--active',_0x22086d):_0x4f8b2d[_0x5f11('0x7b')][_0x5f11('0x66')](_0x5f11('0x11'),_0x22086d));for(const _0x7bd077 of _0x4eaaf2[_0x5f11('0x5')]['createRangeIn'](_0x22367a['item'])['getItems']())_0x4f8b2d[_0x5f11('0x127')][_0x5f11('0x12d')](_0x7bd077,_0x3f9f1d[_0x5f11('0x18')]);_0x4f8b2d[_0x5f11('0x127')][_0x5f11('0x12d')](_0x22367a[_0x5f11('0xdb')],_0x3f9f1d['name']);};_0x4eaaf2['conversion'][_0x5f11('0x144')](_0x5f11('0x62'))[_0x5f11('0x50')](_0x2760fd=>{_0x2760fd['on'](_0x5f11('0x94'),(_0x3ae805,_0x45d15b,_0x529e88)=>{_0x529e88[_0x5f11('0x109')][_0x5f11('0x57')]&&_0x2c4e41({'showActiveMarkers':!0x1})(_0x3ae805,_0x45d15b,_0x529e88);},{'priority':_0x5f11('0xbe')});}),_0x4eaaf2[_0x5f11('0x5b')][_0x5f11('0x144')](_0x5f11('0x62'))[_0x5f11('0x4e')]({'model':_0x5f11('0x32'),'view':(_0x449d28,_0x3f618c)=>_0x3f618c[_0x5f11('0x109')][_0x5f11('0x57')]?null:{'group':_0x5f11('0x32'),'name':_0x449d28[_0x5f11('0xbd')](0xb)}}),_0x4eaaf2[_0x5f11('0x5b')][_0x5f11('0x144')](_0x5f11('0x73'))[_0x5f11('0x23')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1fae1e,{writer:_0x29f24e})=>{let _0x14308d=_0x5f11('0xd2')+_0x1fae1e['getAttribute'](_0x5f11('0xe4'))+':'+_0x1fae1e['getAttribute']('id');return _0x1fae1e[_0x5f11('0x10e')]('marker-count')&&(_0x14308d+=':'+_0x1fae1e[_0x5f11('0x10e')](_0x5f11('0x130'))),_0x29f24e[_0x5f11('0xac')](_0x5f11('0x10f'),{'data-name':_0x14308d});}}),_0x4eaaf2[_0x5f11('0x5b')][_0x5f11('0x144')]('upcast')[_0x5f11('0xc0')]({'view':_0x5f11('0x32')}),_0x4eaaf2[_0x5f11('0x5b')][_0x5f11('0x144')](_0x5f11('0x29'))[_0x5f11('0x50')](_0x1dccbe=>{_0x1dccbe['on']('addMarker:suggestion:formatBlock',_0x2c4e41(),{'priority':'high'});}),_0x4eaaf2[_0x5f11('0x5b')]['for'](_0x5f11('0x29'))['add'](_0x475c28=>{_0x475c28['on'](_0x5f11('0x100'),(_0x3907ec,_0x2950d3,_0x11276c)=>{const _0x1d95bf=_0x11276c['mapper'][_0x5f11('0x3f')](_0x2950d3[_0x5f11('0xb2')]);if(_0x1d95bf)for(const _0x363f57 of _0x1d95bf)_0x363f57[_0x5f11('0x8b')](_0x5f11('0x6f'))||(_0x11276c['writer'][_0x5f11('0x66')]([_0x5f11('0x22'),'ck-suggestion-marker-formatBlock',_0x5f11('0x11')],_0x363f57),_0x11276c['writer'][_0x5f11('0x99')](_0x5f11('0x35'),_0x363f57),_0x11276c['mapper']['unbindElementFromMarkerName'](_0x363f57,_0x2950d3['markerName']));},{'priority':_0x5f11('0x143')});}),_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0xb4')][_0x5f11('0x97')](_0x486f23=>{let _0x350862=!0x1;const _0x33fd40=Array['from'](_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0xb4')][_0x5f11('0x69')][_0x5f11('0xf6')]()),_0x193f45=new Set();for(const {name:_0x3b39c7,data:_0x255229}of _0x33fd40){const {group:_0x4b6300,type:_0x49a71b,id:_0x55d5f7}=this['_splitMarkerName'](_0x3b39c7);if(_0x5f11('0x32')!==_0x4b6300)continue;const _0xb60774=this[_0x5f11('0x33')][_0x5f11('0x27')](_0x55d5f7);if(null!=_0x255229[_0x5f11('0x2b')]){_0x5f11('0x17')==_0x49a71b&&(_0x350862=_0x350862||Mt(_0x255229[_0x5f11('0x2b')],_0x3b39c7,_0x486f23,_0x4eaaf2['model']['schema']));if(_0x255229[_0x5f11('0x2b')]['isCollapsed']||_0x5f11('0x118')==_0x255229[_0x5f11('0x2b')][_0x5f11('0xe9')][_0x5f11('0x55')]||'formatBlock'==_0x49a71b&&!Nt(_0x255229[_0x5f11('0x2b')])||_0x5f11('0x132')==_0x49a71b&&!(!_t(_0x56d78c=_0x255229[_0x5f11('0x2b')])&&!function(_0x435858){return _0x435858['start'][_0x5f11('0xf0')]==_0x435858['end']['nodeBefore']&&_0x435858['start'][_0x5f11('0x5f')];}(_0x56d78c)))_0x486f23[_0x5f11('0x63')](_0x3b39c7),_0x350862=!0x0;else{if(!_0xb60774||!_0xb60774[_0x5f11('0x3d')])continue;_0x193f45['add'](_0xb60774);}}}var _0x56d78c;return _0x193f45['size']>0x0&&(_0x350862=!!this[_0x5f11('0x12e')](_0x193f45)||_0x350862),_0x350862;}),_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0xb4')][_0x5f11('0x97')](_0x31b0ef=>{let _0x14f1ee=!0x1;for(const _0x161ee2 of _0x4eaaf2[_0x5f11('0x5')][_0x5f11('0xb4')]['differ'][_0x5f11('0x2')]()){if(_0x5f11('0xfb')!=_0x161ee2[_0x5f11('0xa')])continue;const _0x210432=_0x161ee2[_0x5f11('0x9f')][_0x5f11('0x115')](_0x161ee2[_0x5f11('0x74')]);if(_0x210432[_0x5f11('0x5f')])for(const _0x345323 of this[_0x5f11('0x33')][_0x5f11('0xf4')]()){if(_0x345323[_0x5f11('0xaa')]||!_0x345323['isInContent'])continue;if(_0x5f11('0x107')!=_0x345323[_0x5f11('0xa')])continue;const _0x218bfb=_0x345323['getFirstRange']();if(_0x218bfb[_0x5f11('0xcd')][_0x5f11('0xf0')]!=_0x218bfb[_0x5f11('0xb8')]['parent']&&_0x218bfb['end']['isEqual'](_0x161ee2[_0x5f11('0x9f')])){const _0x1953e6=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x4d')](_0x218bfb['start'],_0x210432);_0x31b0ef['updateMarker'](_0x345323[_0x5f11('0xcf')](),{'range':_0x1953e6}),_0x14f1ee=!0x0;}}}return _0x14f1ee;}),_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x85')]['on']('update:suggestion',(_0x1a6b2d,_0x2d0c12,_0x241292)=>{if(null==_0x241292){const {id:_0xbb84f1}=this['_splitMarkerName'](_0x2d0c12['name']),_0x2fc3db=this[_0x5f11('0x33')][_0x5f11('0x27')](_0xbb84f1);_0x2fc3db&&_0x2fc3db['addMarkerName'](_0x2d0c12[_0x5f11('0x18')]);}}),_0x4eaaf2[_0x5f11('0x5')]['document']['on'](_0x5f11('0xb7'),()=>{const _0x47ffe7=Array[_0x5f11('0x121')](_0x4eaaf2[_0x5f11('0x5')]['document'][_0x5f11('0x69')][_0x5f11('0xf6')]())['filter'](_0x5915b5=>_0x5f11('0x32')===this['_splitMarkerName'](_0x5915b5[_0x5f11('0x18')])[_0x5f11('0x105')]);if(0x0===_0x47ffe7[_0x5f11('0x74')])return;_0x47ffe7[_0x5f11('0xa3')]((_0x106890,_0x5e843d)=>{const _0x5f3a1a=_0x106890['data'][_0x5f11('0x4')],_0x453f1b=_0x5e843d['data'][_0x5f11('0x4')];return null===_0x5f3a1a&&null===_0x453f1b?0x0:null===_0x5f3a1a&&null!==_0x453f1b?-0x1:null!==_0x5f3a1a&&null===_0x453f1b?0x1:_0x5f3a1a[_0x5f11('0xcd')]['isBefore'](_0x453f1b[_0x5f11('0xcd')])?-0x1:0x1;});const _0x382612=new Set(),_0x4cc47d=new Set();for(const {name:_0x3441ae,data:_0x55f61f}of _0x47ffe7){const {id:_0x578256}=this[_0x5f11('0xc8')](_0x3441ae);if(null===_0x55f61f[_0x5f11('0x4')]){const _0x5f26b8=this['_handleNewSuggestionMarker'](_0x3441ae);_0x4cc47d['add'](_0x5f26b8);}else{const _0x3a5d13=this[_0x5f11('0x33')][_0x5f11('0x27')](_0x578256);null!==_0x55f61f[_0x5f11('0x2b')]||_0x3a5d13[_0x5f11('0x3d')]?(_0x382612[_0x5f11('0x50')](_0x3a5d13[_0x5f11('0x9d')]),_0x4cc47d[_0x5f11('0x50')](_0x3a5d13)):this[_0x5f11('0x136')](_0x3a5d13);}}_0x4cc47d['size']>0x0&&this[_0x5f11('0x124')](_0x4cc47d);for(const _0x1f3cdc of _0x382612)this[_0x5f11('0x101')](_0x5f11('0xc4'),_0x1f3cdc);}),_0x4eaaf2[_0x5f11('0x5')]['on'](_0x5f11('0x78'),(_0x3394ea,_0x5da20e)=>{const _0x45b8f4=_0x5da20e[0x0];if(!this['_suggestions'][_0x5f11('0xd1')])return;if(!_0x45b8f4[_0x5f11('0x123')])return;if(_0x45b8f4[_0x5f11('0x13a')][_0x5f11('0xa5')]||!_0x45b8f4[_0x5f11('0x13a')][_0x5f11('0x84')])return;let _0x15ebf6,_0x35d448;switch(_0x45b8f4[_0x5f11('0xa')]){case _0x5f11('0xfb'):_0x15ebf6=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x0')](_0x45b8f4['position']),_0x35d448=_0x15ebf6[_0x5f11('0x115')](_0x45b8f4[_0x5f11('0x11f')]);break;case _0x5f11('0x6d'):_0x15ebf6=_0x4eaaf2[_0x5f11('0x5')]['createPositionAt'](_0x45b8f4[_0x5f11('0x61')]),_0x35d448=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x0')](_0x45b8f4['moveTargetPosition']);break;case _0x5f11('0xbc'):_0x15ebf6=_0x4eaaf2[_0x5f11('0x5')]['createPositionAt'](_0x45b8f4['targetPosition']),_0x35d448=_0x15ebf6[_0x5f11('0x115')](_0x45b8f4['howMany']);break;default:return;}const _0x756a74=_0x4eaaf2['model']['createRange'](_0x15ebf6,_0x35d448);_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x11c')](()=>{for(const {suggestion:_0x119959,meta:_0x5aefee}of this[_0x5f11('0xe7')](_0x756a74)){if(_0x119959[_0x5f11('0xaa')])continue;if('formatInline'==_0x119959['type'])continue;const _0xaa5006=_0x119959[_0x5f11('0x13f')]&&_0x119959[_0x5f11('0x13f')][_0x5f11('0xb0')];(_0x5f11('0x107')!=_0x119959[_0x5f11('0xa')]||_0x5f11('0x6d')==_0x45b8f4[_0x5f11('0xa')]&&!_0xaa5006)&&(_0x5aefee[_0x5f11('0xea')]||_0x5f11('0x13c')==_0x119959[_0x5f11('0xa')]&&_0x5aefee[_0x5f11('0x125')]||_0x119959['getFirstRange']()[_0x5f11('0x81')](_0x756a74)&&this[_0x5f11('0x12b')](_0x119959,_0x15ebf6,_0x35d448));}});},{'priority':_0x5f11('0x60')}),_0x4eaaf2[_0x5f11('0x5')]['on'](_0x5f11('0xef'),(_0x12f728,_0x15d0e8)=>{const _0x56fd86=_0x15d0e8[0x0],_0x59c042=_0x15d0e8[0x1];if(_0x59c042&&_0x59c042[_0x5f11('0x67')])return;if(this[_0x5f11('0x25')])return;if(!this[_0x5f11('0x90')][_0x5f11('0x34')])return;if(_0x56fd86[_0x5f11('0xda')])return;const _0xe1b8=_0x4eaaf2[_0x5f11('0x5')]['schema'],{start:_0xd84c69,end:_0x2f527b}=_0x56fd86[_0x5f11('0x120')](),_0x2f2ad5=_0xd84c69[_0x5f11('0xb6')]&&_0xe1b8[_0x5f11('0x64')](_0xd84c69[_0x5f11('0xb6')])?null:_0xe1b8[_0x5f11('0xa8')](_0xd84c69,_0x5f11('0x52')),_0x8ee018=_0x2f527b[_0x5f11('0x4f')]&&_0xe1b8[_0x5f11('0x64')](_0x2f527b[_0x5f11('0x4f')])?null:_0xe1b8[_0x5f11('0xa8')](_0x2f527b,_0x5f11('0xe')),_0x507a86=_0x4eaaf2['model'][_0x5f11('0x4d')](_0x2f2ad5?_0x2f2ad5['start']:_0xd84c69,_0x8ee018?_0x8ee018[_0x5f11('0xb8')]:_0x2f527b);_0x4eaaf2[_0x5f11('0x5')]['change'](_0x44d588=>{this['markDeletion'](_0x507a86);const _0xd19746=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x16')][_0x5f11('0xa8')](_0x507a86[_0x5f11('0xcd')]);_0x56fd86['is'](_0x5f11('0x128'))?_0x44d588['setSelection'](_0xd19746):_0x56fd86[_0x5f11('0x13e')](_0xd19746);}),_0x12f728['stop']();},{'priority':_0x3ccadf[_0x5f11('0x79')]+0xa}),_0x4eaaf2['model']['on']('insertContent',(_0x301169,_0x30d587)=>{const _0x3bc1ed=_0x30d587[_0x30d587['length']-0x1];_0x3bc1ed&&_0x3bc1ed[_0x5f11('0x67')]||this[_0x5f11('0x25')]||this[_0x5f11('0x90')][_0x5f11('0x34')]&&(_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x11c')](()=>{let _0x1e3037=_0x4eaaf2['model'][_0x5f11('0x140')](_0x30d587[0x0],_0x30d587[0x1],_0x30d587[0x2],{'forceDefaultExecution':!0x0});if(!_0x1e3037)return;_0x301169[_0x5f11('0x65')]=_0x1e3037[_0x5f11('0x135')]();const _0x10f0a4=_0x1e3037[_0x5f11('0xb8')][_0x5f11('0x4f')],_0x3ec913=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x16')];_0x10f0a4&&_0x3ec913[_0x5f11('0x7d')](_0x10f0a4)&&!_0x3ec913[_0x5f11('0x40')](_0x10f0a4)&&(_0x1e3037=_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x4d')](_0x1e3037[_0x5f11('0xcd')],_0x4eaaf2[_0x5f11('0x5')][_0x5f11('0x0')](_0x10f0a4,_0x5f11('0xb8')))),this[_0x5f11('0xf8')](_0x1e3037);}),_0x301169[_0x5f11('0x112')]());},{'priority':_0x5f11('0x143')}),this['editor']['commands'][_0x5f11('0x50')](_0x5f11('0xe8'),this[_0x5f11('0x90')]),this[_0x5f11('0x88')](_0x5f11('0xe8'));const _0x28ee5c=new _0x1baaf6(_0x4eaaf2,this[_0x5f11('0x33')]);_0x4eaaf2[_0x5f11('0x91')]['add'](_0x5f11('0x13b'),_0x28ee5c),this[_0x5f11('0x88')](_0x5f11('0x13b'));const _0x1525d9=new _0x2dfaf9(_0x4eaaf2,this[_0x5f11('0x33')]);_0x4eaaf2['commands'][_0x5f11('0x50')](_0x5f11('0x71'),_0x1525d9),this[_0x5f11('0x88')](_0x5f11('0x71')),_0x4eaaf2[_0x5f11('0x91')][_0x5f11('0x50')](_0x5f11('0x68'),new _0x1b9d15(_0x4eaaf2,_0x28ee5c,this[_0x5f11('0x33')])),this['enableCommand'](_0x5f11('0x68')),_0x4eaaf2[_0x5f11('0x91')][_0x5f11('0x50')](_0x5f11('0xd3'),new _0x1b9d15(_0x4eaaf2,_0x1525d9,this['_suggestions'])),this[_0x5f11('0x88')](_0x5f11('0xd3')),_0x4eaaf2[_0x5f11('0x91')][_0x5f11('0x50')](_0x5f11('0x1a'),new _0x457fd9(_0x4eaaf2,_0x28ee5c,this[_0x5f11('0x33')])),this['enableCommand'](_0x5f11('0x1a')),_0x4eaaf2[_0x5f11('0x91')][_0x5f11('0x50')]('discardSelectedSuggestions',new _0x457fd9(_0x4eaaf2,_0x1525d9,this[_0x5f11('0x33')])),this[_0x5f11('0x88')](_0x5f11('0x14'));const _0x3a29da=_0x4eaaf2[_0x5f11('0x76')][_0x5f11('0x27')]('CommentsRepository');this['listenTo'](_0x3a29da,'addComment',(_0x4f577b,{threadId:_0x1f9c6c})=>{const _0x4adcb0=this[_0x5f11('0x33')][_0x5f11('0x27')](_0x1f9c6c);_0x4adcb0&&_0x4adcb0[_0x5f11('0xe1')]&&0x1===_0x4adcb0[_0x5f11('0xe1')][_0x5f11('0x74')]&&this[_0x5f11('0xd9')](_0x1f9c6c,{'hasComments':!0x0});},{'priority':_0x5f11('0xf2')}),this[_0x5f11('0xde')](_0x3a29da,_0x5f11('0xb3'),(_0xa37a18,{threadId:_0x106582})=>{const _0x37e7f3=this[_0x5f11('0x33')][_0x5f11('0x27')](_0x106582);_0x37e7f3&&_0x37e7f3[_0x5f11('0xe1')]&&!_0x37e7f3[_0x5f11('0xe1')]['length']&&this[_0x5f11('0xd9')](_0x106582,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4c86c1){if(this[_0x5f11('0x117')])throw new _0x2cf346('track-changes-adapter-already-set',this);this['_adapter']=_0x4c86c1;}get[_0x5f11('0x6')](){return this[_0x5f11('0x117')];}['getSuggestions']({skipNotAttached:_0x4fae27=!0x1,toJSON:_0x44e698=!0x1}={}){const _0x5a1f26=[];for(const _0x33d4e9 of this[_0x5f11('0x33')][_0x5f11('0xf4')]())_0x4fae27&&!_0x33d4e9['isInContent']||_0x5a1f26[_0x5f11('0xe5')](_0x33d4e9);return _0x44e698?_0x5a1f26[_0x5f11('0x59')](_0x5ead9e=>_0x5ead9e['toJSON']()):_0x5a1f26;}[_0x5f11('0x1d')](_0x221a60){const _0x33cac5=this['_suggestions'][_0x5f11('0x27')](_0x221a60);if(!_0x33cac5)throw new _0x2cf346(_0x5f11('0x7a'),this);return _0x33cac5;}[_0x5f11('0xa6')](_0x42a722){return this[_0x5f11('0x33')][_0x5f11('0xf7')](_0x42a722);}[_0x5f11('0x39')](_0xaf6739){const {authorId:_0x54c130,id:_0xaa16d0,attributes:_0x4ad12f}=_0xaf6739,[_0x4439a3,_0x23d297]=_0xaf6739['type'][_0x5f11('0x6d')](':'),_0x5854ba=this['_suggestions']['get'](_0xaa16d0)||this[_0x5f11('0x142')](_0x4439a3,_0x23d297,_0xaa16d0,_0x54c130,_0x4ad12f);if(this[_0x5f11('0x11a')](_0x5854ba),this[_0x5f11('0x58')](_0x5854ba,_0x4439a3,_0x23d297||null,_0x54c130),_0x5854ba[_0x5f11('0x7e')]=_0xaf6739[_0x5f11('0x7e')],_0x5854ba['_isDataLoaded']=!0x0,_0x4ad12f&&_0x4ad12f['@external']){const _0x474bde=_0x4ad12f[_0x5f11('0xec')],_0x76453f=this['_getExternalAuthor'](_0x474bde['authorName']);_0x5854ba[_0x5f11('0x10a')]=_0x474bde[_0x5f11('0x7e')],_0x5854ba[_0x5f11('0x2a')]=_0x76453f,_0x5854ba[_0x5f11('0xb5')]=!0x0;}else _0x5854ba['authoredAt']=_0xaf6739[_0x5f11('0x7e')];switch(_0xaf6739[_0x5f11('0x13f')]&&(_0x5854ba['data']=_0xaf6739[_0x5f11('0x13f')]),_0xaf6739[_0x5f11('0x5d')]&&(_0x5854ba['attributes']=_0xaf6739[_0x5f11('0x5d')]),this[_0x5f11('0x117')]&&this[_0x5f11('0x117')][_0x5f11('0x4a')]||(_0x5854ba['_saved']=!0x0),this[_0x5f11('0x24')][_0x5f11('0x27')](_0x5854ba)){case _0x5f11('0x2c'):this[_0x5f11('0x24')]['set'](_0x5854ba,_0x5f11('0x9e'));break;case _0x5f11('0xaf'):_0x5854ba[_0x5f11('0x3d')]?(this['_refreshSuggestionsChain'](new Set([_0x5854ba])),this[_0x5f11('0x12e')](new Set([_0x5854ba])),this[_0x5f11('0x24')][_0x5f11('0xd8')](_0x5854ba,'ready'),this['fire'](_0x5f11('0x83'),_0x5854ba)):this['_suggestionState']['set'](_0x5854ba,_0x5f11('0x11e'));}return _0x5854ba;}['acceptSuggestion'](_0x59fd8b){this[_0x5f11('0x67')](()=>{this[_0x5f11('0x147')][_0x5f11('0x5')][_0x5f11('0x11c')](()=>{for(const _0x3dbb8d of _0x59fd8b['getAllAdjacentSuggestions']())_0x3dbb8d[_0x5f11('0x8')]();});});}[_0x5f11('0x71')](_0x5bb789){this[_0x5f11('0x67')](()=>{this[_0x5f11('0x147')][_0x5f11('0x5')][_0x5f11('0x11c')](()=>{for(const _0x1aa355 of _0x5bb789[_0x5f11('0x126')]())_0x1aa355[_0x5f11('0x119')]();});});}[_0x5f11('0x88')](_0x44ae8d,_0x188ba9){const _0x358e6b=this[_0x5f11('0x147')][_0x5f11('0x91')][_0x5f11('0x27')](_0x44ae8d);if(!_0x358e6b)throw new _0x2cf346('track-changes-command-not-found',this,{'commandName':_0x44ae8d});this['_enabledCommands'][_0x5f11('0x50')](_0x358e6b),_0x188ba9&&_0x358e6b['on']('execute',(_0x8c7804,_0x45a9e7)=>{this[_0x5f11('0x90')][_0x5f11('0x34')]&&(this[_0x5f11('0x25')]||_0x45a9e7[_0x5f11('0x74')]>0x0&&_0x45a9e7[_0x45a9e7['length']-0x1]&&_0x45a9e7[_0x45a9e7[_0x5f11('0x74')]-0x1][_0x5f11('0x67')]||(_0x188ba9((..._0x39a59a)=>_0x358e6b[_0x5f11('0xfd')](..._0x39a59a,{'forceDefaultExecution':!0x0}),..._0x45a9e7),_0x8c7804[_0x5f11('0x112')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x45be25){let _0x406894,_0x427aa4;const _0x4c04ed=this[_0x5f11('0x25')];this[_0x5f11('0x25')]=!0x0;try{_0x406894=_0x45be25();}catch(_0x4812df){_0x427aa4=_0x4812df;}return _0x4c04ed||(this[_0x5f11('0x25')]=!0x1),_0x427aa4&&_0x2cf346[_0x5f11('0x6c')](_0x427aa4,this),_0x406894;}[_0x5f11('0xf8')](_0xa45713,_0x4bff53=null,_0x587df3={}){if(_0xa45713[_0x5f11('0xda')])return null;const _0x4136ed=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x72'))['me'];for(const {suggestion:_0x24151b,meta:_0x266401}of this['_findSuggestions'](_0xa45713,_0x5f11('0x13c')))if(_0x266401[_0x5f11('0x125')]){if(!_0x266401[_0x5f11('0xf9')]){if(_0x266401['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ut(_0x24151b,_0x587df3))continue;return _0x24151b;}if(Ut(_0x24151b,_0x587df3))return _0x24151b;this[_0x5f11('0x12b')](_0x24151b,_0xa45713['start'],_0xa45713['end']);break;}if(_0x4bff53==_0x24151b[_0x5f11('0xe2')]&&Ut(_0x24151b,_0x587df3)){const _0x1e5d2c=_0x24151b[_0x5f11('0x120')]();return _0x1e5d2c['start'][_0x5f11('0x75')](_0xa45713[_0x5f11('0xb8')])?this[_0x5f11('0x98')](_0x24151b,this['_model']['createRange'](_0xa45713['start'],_0x1e5d2c[_0x5f11('0xb8')])):this[_0x5f11('0x98')](_0x24151b,this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x1e5d2c[_0x5f11('0xcd')],_0xa45713[_0x5f11('0xb8')])),_0x24151b;}}const _0x1649b3=_0x10549d(),_0x44bd62=_0x4136ed['id'],_0xae8ec5=_0x4bff53?_0x5f11('0x82')+_0x4bff53:'insertion',_0x4d4fff=this['_setSuggestionData']({'id':_0x1649b3,'type':_0xae8ec5,'createdAt':new Date(),'authorId':_0x44bd62,'attributes':_0x587df3});return this[_0x5f11('0x54')](_0xae8ec5,_0x1649b3,_0x44bd62,_0xa45713),_0x4d4fff;}[_0x5f11('0x45')](_0x12be5f,_0x6b9eea='multi',_0xf31729={}){const _0x1d8f77=this[_0x5f11('0x147')][_0x5f11('0x76')]['get'](_0x5f11('0x72'))['me'],_0x41c6ed=this[_0x5f11('0x4c')]['getSuggestionCallback'](_0x5f11('0x13c'),_0x6b9eea,'join');for(const _0x3b5a28 of this[_0x5f11('0xc')]())if(_0x3b5a28['author']['id']==_0x1d8f77['id']&&_0x5f11('0x13c')==_0x3b5a28[_0x5f11('0xa')]&&_0x3b5a28[_0x5f11('0xe2')]==_0x6b9eea&&Ut(_0x3b5a28,_0xf31729)&&(_0x41c6ed(_0x3b5a28['getRanges'](),_0x12be5f)||_0x41c6ed(_0x12be5f,_0x3b5a28['getRanges']()))){for(const _0x348433 of _0x12be5f)_0x3b5a28[_0x5f11('0xa1')](_0x348433);return _0x3b5a28;}for(const {suggestion:_0x29d64d,meta:_0x84d094}of this[_0x5f11('0xe7')](_0x12be5f,_0x5f11('0x13c'))){if(!_0x84d094['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x84d094[_0x5f11('0xea')])continue;if(!Ut(_0x29d64d,_0xf31729))continue;let _0x1b7c85=!0x0;for(const _0x5837b7 of _0x29d64d[_0x5f11('0xed')]())for(const _0x542885 of _0x12be5f)if(!_0x5837b7[_0x5f11('0x81')](_0x542885)){_0x1b7c85=!0x1;break;}if(_0x1b7c85)return _0x29d64d;}const _0x5b177a=_0x10549d(),_0x4b12ae=_0x1d8f77['id'],_0x15f372=_0x5f11('0x82')+_0x6b9eea,_0x3400f6=this[_0x5f11('0x6a')]({'id':_0x5b177a,'type':_0x15f372,'createdAt':new Date(),'authorId':_0x4b12ae,'attributes':_0xf31729});for(const _0x5563aa of _0x12be5f)this['_addSuggestionMarker'](_0x15f372,_0x5b177a,_0x4b12ae,_0x5563aa,_0x2ad42f[_0x5f11('0x44')]());return _0x3400f6;}['markInlineFormat'](_0x26e3bb,_0x5e2c49,_0x53f247=null,_0x4239bd={}){if(_0x53f247=_0x53f247||$t(_0x5e2c49),_0x26e3bb[_0x5f11('0xda')])return null;if(_0x5f11('0xf')===this[_0x5f11('0x10c')]){const _0x1a8074=this['_suggestionFactory'][_0x5f11('0x3a')]('formatInline',_0x53f247,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x1a8074([_0x26e3bb],_0x5e2c49,_0x4239bd)),null;}const _0x3e7bda=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x72'))['me'],_0x33f12e=[];if('always'!==this[_0x5f11('0x10c')])for(const {suggestion:_0x431fcb,meta:_0xb6e3ba}of this[_0x5f11('0xe7')](_0x26e3bb,'insertion'))_0xb6e3ba['isOwn']&&!_0xb6e3ba[_0x5f11('0xc7')]&&_0x33f12e[_0x5f11('0xe5')](..._0x431fcb['getRanges']());const _0xe32d48=function(_0x1a82fe,_0x57cdb4){const _0x3c9b25=[];for(const _0x185436 of _0x57cdb4){const _0x89bd0=_0x1a82fe['getIntersection'](_0x185436);_0x89bd0&&_0x3c9b25[_0x5f11('0xe5')](_0x89bd0);}return _0x3c9b25;}(_0x26e3bb,_0x33f12e),_0x2c188d=function(_0x8dd1ff,_0x3b6263){const _0x224d7f=[_0x8dd1ff];for(const _0x5d14f7 of _0x3b6263){let _0x5dc353=0x0;for(;_0x5dc353<_0x224d7f[_0x5f11('0x74')];){const _0x1ac389=_0x224d7f[_0x5dc353][_0x5f11('0xc2')](_0x5d14f7);_0x224d7f[_0x5f11('0x7')](_0x5dc353,0x1,..._0x1ac389),_0x5dc353+=_0x1ac389[_0x5f11('0x74')];}}return _0x224d7f;}(_0x26e3bb,_0x33f12e);_0xe32d48['length']&&this[_0x5f11('0x96')][_0x5f11('0x11c')](()=>{for(const _0x4acf2b of _0xe32d48){const _0x44dc79=this[_0x5f11('0x4c')][_0x5f11('0x3a')]('formatInline',_0x53f247,_0x5f11('0x8'));this[_0x5f11('0x67')](()=>_0x44dc79([_0x4acf2b],_0x5e2c49,_0x4239bd));}});for(const _0x532251 of _0x2c188d){let _0x42185c=null,_0x2a2dcc=_0x532251[_0x5f11('0xcd')],_0x153fbf=_0x532251[_0x5f11('0xb8')];for(const {suggestion:_0x10be81,meta:_0x327feb}of this[_0x5f11('0xe7')](_0x532251,_0x5f11('0x17'))){if(!_0x327feb[_0x5f11('0x125')])continue;if(_0x10be81[_0x5f11('0xe2')]!=_0x53f247)continue;if(!Ut(_0x10be81,_0x4239bd))continue;const _0x42962f=_0x10be81[_0x5f11('0x120')]();if(_0x42962f['containsRange'](_0x532251,!0x0))return null;_0x2a2dcc=_0x2a2dcc[_0x5f11('0x114')](_0x42962f[_0x5f11('0xcd')])?_0x2a2dcc:_0x42962f['start'],_0x153fbf=_0x153fbf[_0x5f11('0x137')](_0x42962f[_0x5f11('0xb8')])?_0x153fbf:_0x42962f['end'],_0x42185c?_0x42962f[_0x5f11('0xcd')][_0x5f11('0x114')](_0x42185c[_0x5f11('0x120')]()[_0x5f11('0xcd')])?(_0x42185c[_0x5f11('0x2e')](),_0x42185c=_0x10be81):_0x10be81[_0x5f11('0x2e')]():_0x42185c=_0x10be81;}const _0x3b69cc=this[_0x5f11('0x96')]['createRange'](_0x2a2dcc,_0x153fbf);if(_0x42185c)this['_setSuggestionRange'](_0x42185c,_0x3b69cc);else{const _0x36ca7e=_0x10549d(),_0x195145=_0x3e7bda['id'];this['_setSuggestionData']({'id':_0x36ca7e,'type':_0x5f11('0xba')+_0x53f247,'data':_0x5e2c49,'createdAt':new Date(),'authorId':_0x195145,'attributes':_0x4239bd}),this['_addSuggestionMarker'](_0x5f11('0xba')+_0x53f247,_0x36ca7e,_0x195145,_0x3b69cc);}}return null;}['markBlockFormat'](_0x1f00a2,_0xb27a2,_0xe93b57=[],_0x1bca63=null,_0x1c35d5={}){_0xb27a2[_0x5f11('0xb9')]||(_0xb27a2[_0x5f11('0xb9')]=_0xb27a2[_0x5f11('0x134')]),_0xb27a2['multipleBlocks']=_0x1f00a2['is']('range'),_0x1bca63=_0x1bca63||$t(_0xb27a2);const _0x29a48c=_0xe93b57['map'](_0x37dc94=>Rt(_0x37dc94,this['_model'])),_0x55752f=_0x1f00a2['is'](_0x5f11('0x28'))?_0x1f00a2:Rt(_0x1f00a2,this['_model']);if(_0x5f11('0xf')===this[_0x5f11('0x10c')]){const _0x25c72e=this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x5f11('0x107'),_0x1bca63,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x25c72e([_0x55752f],_0xb27a2,_0x1c35d5)),null;}_0x29a48c['push'](_0x55752f);let _0x35ca05=!0x0;for(const _0xbee81c of _0x29a48c)if(!this[_0x5f11('0x92')](_0xbee81c)){_0x35ca05=!0x1;break;}if(_0x35ca05&&_0x5f11('0x36')!==this[_0x5f11('0x10c')]){const _0x2a5e20=this[_0x5f11('0x4c')]['getSuggestionCallback']('formatBlock',_0x1bca63,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x2a5e20([_0x55752f],_0xb27a2,_0x1c35d5)),null;}let _0x4cc34e=null,_0x12b2a5=_0x55752f[_0x5f11('0xcd')],_0x146a83=_0x55752f[_0x5f11('0xb8')];for(const {suggestion:_0x2340a3,meta:_0x56bd34}of this[_0x5f11('0xe7')](_0x55752f,_0x5f11('0x107'))){if(!_0x56bd34[_0x5f11('0x125')])continue;if(_0x56bd34[_0x5f11('0xf9')]||_0x56bd34[_0x5f11('0xea')]||_0x56bd34[_0x5f11('0xc7')])continue;if(_0x2340a3[_0x5f11('0x13f')][_0x5f11('0xb9')]!=_0xb27a2[_0x5f11('0xb9')])continue;if(!Ut(_0x2340a3,_0x1c35d5))continue;const _0x110e63=_0x2340a3['getFirstRange']();if(_0x2340a3['subType']==_0x1bca63){if(_0x110e63['containsRange'](_0x55752f,!0x0))return null;_0x12b2a5=_0x12b2a5[_0x5f11('0x114')](_0x110e63[_0x5f11('0xcd')])?_0x12b2a5:_0x110e63['start'],_0x146a83=_0x146a83['isAfter'](_0x110e63[_0x5f11('0xb8')])?_0x146a83:_0x110e63[_0x5f11('0xb8')],_0x4cc34e?_0x110e63['start']['isBefore'](_0x4cc34e['getFirstRange']()[_0x5f11('0xcd')])?(_0x4cc34e[_0x5f11('0x2e')](),_0x4cc34e=_0x2340a3):_0x2340a3[_0x5f11('0x2e')]():_0x4cc34e=_0x2340a3;}else{const _0x448d03=_0x55752f[_0x5f11('0x8d')](_0x110e63);this['_cutOutSuggestionMarker'](_0x2340a3,_0x448d03);}}const _0x2774c8=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x72'))['me'],_0x4e600e=_0x10549d(),_0x35e896=_0x2774c8['id'];if(_0x4cc34e)return this[_0x5f11('0x98')](_0x4cc34e,this['_model'][_0x5f11('0x4d')](_0x12b2a5,_0x146a83)),_0x4cc34e;{const _0x169b4d=this[_0x5f11('0x6a')]({'id':_0x4e600e,'type':_0x5f11('0xd6')+_0x1bca63,'data':_0xb27a2,'createdAt':new Date(),'authorId':_0x35e896,'attributes':_0x1c35d5});return this[_0x5f11('0x54')](_0x5f11('0xd6')+_0x1bca63,_0x4e600e,_0x35e896,this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x12b2a5,_0x146a83)),_0x169b4d;}}[_0x5f11('0xdc')](_0x70998b,_0x1e05f,_0x2bc1a3=[],_0x46c0a9=null,_0x288926={}){_0x1e05f['formatGroupId']||(_0x1e05f[_0x5f11('0xb9')]=_0x1e05f[_0x5f11('0x134')]);const _0x4fcad8=_0x70998b[0x0];_0x1e05f[_0x5f11('0xb0')]=_0x4fcad8['is'](_0x5f11('0x28')),_0x46c0a9=_0x46c0a9||$t(_0x1e05f);const _0x2cb15c=_0x2bc1a3[_0x5f11('0x59')](_0x4b2fc2=>Rt(_0x4b2fc2,this[_0x5f11('0x96')])),_0x3285f0=_0x4fcad8['is'](_0x5f11('0x28'))?_0x70998b:_0x70998b[_0x5f11('0x59')](_0x7fc8b5=>Rt(_0x7fc8b5,this[_0x5f11('0x96')]));if(_0x5f11('0xf')===this[_0x5f11('0x10c')]){const _0x296b56=this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x5f11('0x107'),_0x46c0a9,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x296b56(_0x3285f0,_0x1e05f,_0x288926)),null;}_0x2cb15c[_0x5f11('0xe5')](..._0x3285f0);let _0x2c8481=!0x0;for(const _0x364d68 of _0x2cb15c)if(!this[_0x5f11('0x92')](_0x364d68)){_0x2c8481=!0x1;break;}if(_0x2c8481&&_0x5f11('0x36')!==this[_0x5f11('0x10c')]){const _0xcdceb8=this[_0x5f11('0x4c')][_0x5f11('0x3a')]('formatBlock',_0x46c0a9,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0xcdceb8(_0x3285f0,_0x1e05f,_0x288926)),null;}const _0x2b8b6a=this[_0x5f11('0x147')][_0x5f11('0x76')]['get'](_0x5f11('0x72'))['me'];for(const _0x13e49c of this['getSuggestions']()){if(_0x13e49c[_0x5f11('0x2a')]['id']!=_0x2b8b6a['id'])continue;if(_0x5f11('0x107')!=_0x13e49c[_0x5f11('0xa')]||_0x13e49c[_0x5f11('0x13f')][_0x5f11('0xb9')]!=_0x1e05f[_0x5f11('0xb9')])continue;if(!Ut(_0x13e49c,_0x288926))continue;const _0x5ca649=_0x13e49c['subType']==_0x46c0a9;for(let _0x1488e3=0x0;_0x1488e3<_0x3285f0[_0x5f11('0x74')];_0x1488e3++){const _0x2d9185=_0x3285f0[_0x1488e3];for(const _0x10cca6 of _0x13e49c[_0x5f11('0xd7')]()){const _0x2b4bac=_0x10cca6[_0x5f11('0xd4')]();if(_0x2d9185[_0x5f11('0x75')](_0x2b4bac)){_0x5ca649?(_0x3285f0[_0x5f11('0x7')](_0x1488e3,0x1),_0x1488e3--):_0x13e49c[_0x5f11('0x63')](_0x10cca6[_0x5f11('0x18')]);break;}}}}if(0x0==_0x3285f0['length'])return null;const _0x4039b0=this[_0x5f11('0x4c')]['getSuggestionCallback'](_0x5f11('0x107'),_0x46c0a9,_0x5f11('0x2f'));for(const _0x30ec63 of this[_0x5f11('0xc')]())if(_0x30ec63[_0x5f11('0x2a')]['id']==_0x2b8b6a['id']&&'formatBlock'==_0x30ec63[_0x5f11('0xa')]&&_0x30ec63['data'][_0x5f11('0xb9')]==_0x1e05f['formatGroupId']&&_0x30ec63[_0x5f11('0xe2')]==_0x46c0a9&&Ut(_0x30ec63,_0x288926)&&(_0x4039b0(_0x30ec63[_0x5f11('0xed')](),_0x3285f0)||_0x4039b0(_0x3285f0,_0x30ec63['getRanges']()))){for(const _0x3e5348 of _0x3285f0)_0x30ec63['addRange'](_0x3e5348);return _0x30ec63;}const _0x1022fc=_0x10549d(),_0x434fd0=_0x2b8b6a['id'],_0x119965=_0x5f11('0xd6')+_0x46c0a9,_0x25b482=this[_0x5f11('0x6a')]({'id':_0x1022fc,'type':_0x119965,'data':_0x1e05f,'createdAt':new Date(),'authorId':_0x434fd0,'attributes':_0x288926});for(const _0x52cf9e of _0x3285f0)this['_addSuggestionMarker'](_0x119965,_0x1022fc,_0x434fd0,_0x52cf9e,_0x2ad42f['getMultiRangeId']());return _0x25b482;}[_0x5f11('0x37')](_0x22e04a,_0x2fbfec=null,_0x3ee2f9={}){if(_0x22e04a[_0x5f11('0xda')])return null;const _0x5b1db7=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')]('Users')['me'],_0x271e59=new _0x21916d(_0x22e04a['start'],_0x22e04a[_0x5f11('0xb8')]);for(const {suggestion:_0x3d8c9e,meta:_0x1c26ed}of this['_findSuggestions'](_0x271e59,_0x5f11('0x13c')))if(_0x1c26ed['isOwn']&&!_0x1c26ed[_0x5f11('0xf9')]){if(_0x3d8c9e[_0x5f11('0xaa')]){const _0xf049ac=_0x3d8c9e[_0x5f11('0xed')]()['filter'](_0x19054b=>_0x5f11('0x118')!=_0x19054b[_0x5f11('0xe9')][_0x5f11('0x55')]);_0xf049ac[_0x5f11('0x41')](_0x4eb2fb=>_0x271e59[_0x5f11('0x81')](_0x4eb2fb,!0x0))&&_0x3d8c9e[_0x5f11('0x119')]();if(_0xf049ac['some'](_0x8908ee=>_0x8908ee[_0x5f11('0x81')](_0x271e59,!0x0))){const _0x335f27=this['_suggestionFactory'][_0x5f11('0x3a')](_0x5f11('0x132'),_0x2fbfec,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x335f27([_0x271e59],null,_0x3ee2f9)),null;}}else{const _0xf55b25=_0x271e59[_0x5f11('0x8d')](_0x3d8c9e[_0x5f11('0x120')]());null!==_0xf55b25&&_0x3d8c9e['_onDiscard']([_0xf55b25],null,_0x3ee2f9);}}if(_0x271e59[_0x5f11('0x95')](),_0x271e59[_0x5f11('0xda')]||_0x5f11('0x118')==_0x271e59[_0x5f11('0xe9')][_0x5f11('0x55')])return null;let _0xafee3=null,_0x259f32=_0x271e59[_0x5f11('0xcd')],_0x59f340=_0x271e59[_0x5f11('0xb8')];const _0x1a835a=this['_findSuggestions'](_0x271e59,_0x5f11('0x132'));for(const {suggestion:_0x3d489f,meta:_0x5bc5cb}of _0x1a835a){const _0x282e46=this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x259f32,_0x59f340);if(_0x5bc5cb[_0x5f11('0x125')]&&(this['_mergeNestedSuggestions']||!_0x5bc5cb[_0x5f11('0xea')]&&!_0x5bc5cb[_0x5f11('0xc7')])){if(_0x3d489f[_0x5f11('0xaa')]){if(!Ut(_0x3d489f,_0x3ee2f9))continue;let _0x38f530=!0x0;for(const _0x348bb8 of _0x3d489f['getRanges']()){if(_0x348bb8[_0x5f11('0x81')](_0x282e46,!0x0))return _0x3d489f;_0x282e46[_0x5f11('0x81')](_0x348bb8)||(_0x38f530=!0x1);}_0x38f530&&_0x3d489f[_0x5f11('0x119')]();}else{const _0x318a1c=_0x3d489f[_0x5f11('0x120')]();if(_0x318a1c['containsRange'](_0x282e46,!0x0))return _0x3d489f;if(!Ut(_0x3d489f,_0x3ee2f9)){_0x282e46[_0x5f11('0x81')](_0x318a1c)?_0x3d489f[_0x5f11('0x2e')]():_0x318a1c[_0x5f11('0xd')](_0x259f32)?_0x259f32=_0x318a1c[_0x5f11('0xb8')]:_0x318a1c[_0x5f11('0xd')](_0x59f340)&&(_0x59f340=_0x318a1c[_0x5f11('0xcd')]);continue;}_0x259f32=_0x259f32[_0x5f11('0x114')](_0x318a1c['start'])?_0x259f32:_0x318a1c[_0x5f11('0xcd')],_0x59f340=_0x59f340[_0x5f11('0x137')](_0x318a1c[_0x5f11('0xb8')])?_0x59f340:_0x318a1c['end'],_0x3ee2f9=Object['assign']({},_0x3d489f['attributes']),_0xafee3?_0x318a1c['start']['isBefore'](_0xafee3[_0x5f11('0x120')]()[_0x5f11('0xcd')])?(_0xafee3[_0x5f11('0x2e')](),_0xafee3=_0x3d489f):_0x3d489f['removeMarkers']():_0xafee3=_0x3d489f;}}}if(_0xafee3)return this['_setSuggestionRange'](_0xafee3,this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x259f32,_0x59f340)),_0xafee3;{const _0x1906d6=_0x10549d(),_0x46c898=this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x259f32,_0x59f340),_0x230eb4=_0x5b1db7['id'],_0x25c105=_0x2fbfec?'deletion:'+_0x2fbfec:'deletion',_0x358b7b=this['_setSuggestionData']({'id':_0x1906d6,'type':_0x25c105,'createdAt':new Date(),'authorId':_0x230eb4,'attributes':_0x3ee2f9});return this[_0x5f11('0x54')](_0x25c105,_0x1906d6,_0x230eb4,_0x46c898),_0x358b7b;}}[_0x5f11('0x141')](_0x5c39d6,_0x5b3b4a=_0x5f11('0x86'),_0x1d713f={}){const _0x12908d=this[_0x5f11('0x147')]['plugins'][_0x5f11('0x27')](_0x5f11('0x72'))['me'],_0x3dbf3b=_0x5c39d6['map'](_0x1f3a65=>new _0x21916d(_0x1f3a65[_0x5f11('0xcd')],_0x1f3a65['end'])),_0x55361a=new Set();for(const {suggestion:_0x90f3a2,meta:_0xa02491}of this['_findSuggestions'](_0x3dbf3b,'insertion'))_0xa02491['isOwn']&&!_0xa02491['isNextTo']&&_0x55361a['add'](_0x90f3a2);for(const _0x505158 of _0x55361a)if(_0x505158['isMultiRange']){const _0x46a962=_0x505158[_0x5f11('0xed')]();(!_0x505158[_0x5f11('0x5d')]||!_0x505158['attributes'][_0x5f11('0x77')])&&(_0x46a962['every'](_0xf7584e=>_0x3dbf3b['some'](_0x3a5566=>_0x3a5566['containsRange'](_0xf7584e,!0x0)))&&_0x505158[_0x5f11('0x119')]());if(_0x3dbf3b[_0x5f11('0x41')](_0x4c1cc4=>_0x46a962[_0x5f11('0xff')](_0x5db9cd=>_0x5db9cd['containsRange'](_0x4c1cc4,!0x0)))){const _0x5125fb=this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x5f11('0x132'),_0x5b3b4a,_0x5f11('0x8'));return this[_0x5f11('0x67')](()=>_0x5125fb(_0x5c39d6,null,_0x1d713f)),null;}}else{const _0x4d41bd=_0x505158[_0x5f11('0x120')]();_0x3dbf3b[_0x5f11('0xff')](_0x26a340=>_0x26a340[_0x5f11('0x81')](_0x4d41bd,!0x0))&&_0x505158[_0x5f11('0x119')]();if(_0x3dbf3b['every'](_0x4ec447=>_0x4d41bd[_0x5f11('0x81')](_0x4ec447,!0x0))){const _0x10fc07=this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x5f11('0x132'),_0x5b3b4a,'accept');return this['forceDefaultExecution'](()=>_0x10fc07(_0x3dbf3b,null,_0x1d713f)),null;}}const _0x3da230=this['_suggestionFactory'][_0x5f11('0x3a')]('deletion',_0x5b3b4a,_0x5f11('0x2f'));let _0x4d9554=null;for(const _0x308e25 of this['getSuggestions']())if(_0x308e25[_0x5f11('0x2a')]['id']==_0x12908d['id']&&_0x308e25[_0x5f11('0x3d')]&&_0x5f11('0x132')==_0x308e25[_0x5f11('0xa')]&&_0x308e25[_0x5f11('0xe2')]==_0x5b3b4a&&Ut(_0x308e25,_0x1d713f)&&(_0x3da230(_0x308e25[_0x5f11('0xed')](),_0x3dbf3b)||_0x3da230(_0x3dbf3b,_0x308e25['getRanges']()))){if(_0x4d9554){if(_0x308e25[_0x5f11('0xe1')]&&_0x308e25[_0x5f11('0xe1')][_0x5f11('0x74')])continue;for(const _0x4c8a49 of _0x308e25[_0x5f11('0xed')]())_0x4d9554[_0x5f11('0xca')](_0x4c8a49)||_0x4d9554['addRange'](_0x4c8a49);_0x308e25[_0x5f11('0x2e')]();}else{_0x4d9554=_0x308e25;for(const _0x56d668 of _0x3dbf3b)_0x308e25['isIntersectingWithRange'](_0x56d668)||_0x308e25[_0x5f11('0xa1')](_0x56d668);}}if(_0x4d9554)return _0x4d9554;_0x55361a['clear']();for(const {suggestion:_0x551f18,meta:_0x197454}of this[_0x5f11('0xe7')](_0x3dbf3b,_0x5f11('0x132')))_0x197454['isOwn']&&(this['_mergeNestedSuggestions']||!_0x197454[_0x5f11('0xea')]&&!_0x197454['isInsideObject'])&&Ut(_0x551f18,_0x1d713f)&&_0x55361a[_0x5f11('0x50')](_0x551f18);for(const _0x5942be of _0x55361a){const _0x362456=_0x5942be[_0x5f11('0xed')]();if(!_0x1d713f||!_0x1d713f[_0x5f11('0x77')]){if(_0x3dbf3b[_0x5f11('0x41')](_0x4b5dd9=>_0x362456['some'](_0x1f160d=>_0x1f160d[_0x5f11('0x81')](_0x4b5dd9,!0x0))))return _0x5942be;}(!_0x5942be[_0x5f11('0x5d')]||!_0x5942be[_0x5f11('0x5d')][_0x5f11('0x77')])&&(_0x362456[_0x5f11('0x41')](_0x162842=>_0x3dbf3b['some'](_0xa64b7e=>_0xa64b7e['containsRange'](_0x162842,!0x0)))&&_0x5942be['discard']());}const _0x3af612=_0x10549d(),_0x4a2a2e=_0x12908d['id'],_0x1870ae=_0x5f11('0x6e')+_0x5b3b4a,_0x2d96db=this[_0x5f11('0x6a')]({'id':_0x3af612,'type':_0x1870ae,'createdAt':new Date(),'authorId':_0x4a2a2e,'attributes':_0x1d713f});for(const _0x2dcc9c of _0x3dbf3b)_0x2dcc9c[_0x5f11('0x95')](),_0x2dcc9c[_0x5f11('0xda')]||'$graveyard'==_0x2dcc9c[_0x5f11('0xe9')]['rootName']||this[_0x5f11('0x54')](_0x1870ae,_0x3af612,_0x4a2a2e,_0x2dcc9c,_0x2ad42f[_0x5f11('0x44')]());return _0x2d96db;}[_0x5f11('0x98')](_0x98aa00,_0x4f9c19){const _0x436893=_0x98aa00['getFirstMarker']();this[_0x5f11('0x96')][_0x5f11('0x11c')](_0xfeae92=>{_0xfeae92[_0x5f11('0x8f')](_0x436893,{'range':_0x4f9c19});});}[_0x5f11('0x11a')](_0x7d2b67){const _0xc3987f=_0x7d2b67['id'],_0x7d2b78=this[_0x5f11('0x147')][_0x5f11('0x46')][_0x5f11('0x27')](_0x5f11('0x13'));this['_commentsRepository'][_0x5f11('0xc5')](_0xc3987f)||this['_commentsRepository'][_0x5f11('0x70')]({'channelId':_0x7d2b78,'threadId':_0xc3987f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x58925c=this[_0x5f11('0x1c')][_0x5f11('0x13d')](_0xc3987f);_0x58925c[_0x5f11('0x1b')](_0x5f11('0x49')),_0x58925c[_0x5f11('0x49')]=!0x1,_0x7d2b67[_0x5f11('0xe1')]=_0x58925c;}['_checkSuggestionCorrectness'](_0x1bd6c7,_0x45de1f,_0x2bf8e3,_0x2655a4){if(_0x1bd6c7['type']!=_0x45de1f||_0x1bd6c7[_0x5f11('0xe2')]!=_0x2bf8e3||_0x1bd6c7['creator']['id']!=_0x2655a4)throw this[_0x5f11('0x147')][_0x5f11('0x6b')](_0x5f11('0xeb')),new _0x2cf346('track-changes-suggestion-data-mismatch',this);}[_0x5f11('0x19')](_0x15bf5f,_0x39b8e3){const _0x3a324d=_0x15bf5f[_0x5f11('0x120')]();if(_0x39b8e3['isEqual'](_0x3a324d))_0x15bf5f['removeMarkers']();else{if(_0x3a324d[_0x5f11('0x81')](_0x39b8e3)){const _0x8a2843=this['_model'][_0x5f11('0x0')](_0x39b8e3[_0x5f11('0xcd')][_0x5f11('0x4f')],'end');this[_0x5f11('0x98')](_0x15bf5f,this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x3a324d[_0x5f11('0xcd')],_0x8a2843));const _0xe044de=_0x10549d(),_0x1e7c44=_0x15bf5f[_0x5f11('0x15')]['id'],_0x5a6200=_0x15bf5f[_0x5f11('0xa')]+':'+_0x15bf5f[_0x5f11('0xe2')];this[_0x5f11('0x6a')]({'id':_0xe044de,'type':_0x5a6200,'createdAt':new Date(),'authorId':_0x1e7c44,'data':_0x15bf5f['data'],'attributes':_0x15bf5f['attributes']});const _0xc5935=this['_model'][_0x5f11('0x0')](_0x39b8e3[_0x5f11('0xb8')][_0x5f11('0xf0')],_0x5f11('0xb1')),_0xc8e76c=this[_0x5f11('0x96')]['createRange'](_0xc5935,_0x3a324d[_0x5f11('0xb8')]);this[_0x5f11('0x54')](_0x5a6200,_0xe044de,_0x1e7c44,_0xc8e76c);}else{if(_0x3a324d[_0x5f11('0xd')](_0x39b8e3[_0x5f11('0xcd')])){const _0x238466=this[_0x5f11('0x96')][_0x5f11('0x0')](_0x39b8e3[_0x5f11('0xcd')]['nodeBefore'],_0x5f11('0xb8'));this[_0x5f11('0x98')](_0x15bf5f,this[_0x5f11('0x96')]['createRange'](_0x3a324d[_0x5f11('0xcd')],_0x238466));}else{const _0x131326=this[_0x5f11('0x96')]['createPositionAt'](_0x39b8e3[_0x5f11('0xb8')][_0x5f11('0xf0')],_0x5f11('0xb1'));this[_0x5f11('0x98')](_0x15bf5f,this['_model'][_0x5f11('0x4d')](_0x131326,_0x3a324d[_0x5f11('0xb8')]));}}}}[_0x5f11('0x92')](_0x4f94c2){for(const {suggestion:_0x3246a6,meta:_0xbbece4}of this[_0x5f11('0xe7')](_0x4f94c2,_0x5f11('0x13c'))){if(!_0xbbece4[_0x5f11('0x125')])continue;const _0x3e220a=_0x3246a6[_0x5f11('0xed')]();for(const _0x232397 of _0x3e220a)if(!_0x4f94c2[_0x5f11('0xc2')](_0x232397)['length'])return!0x0;}return!0x1;}[_0x5f11('0x8e')](_0x17e20c){const _0x2b6622=this['editor'][_0x5f11('0x76')][_0x5f11('0x27')]('Users')[_0x5f11('0x20')](_0x17e20c);if(!_0x2b6622)throw new _0x2cf346('track-changes-user-not-found',this);return _0x2b6622;}[_0x5f11('0x8c')](_0x3675ac){const _0x292472=this[_0x5f11('0x147')][_0x5f11('0x76')]['get'](_0x5f11('0x72')),_0x30cc3e=_0x281bde(_0x5f11('0x53')+_0x3675ac),_0x115117=_0x292472[_0x5f11('0x20')](_0x30cc3e);return _0x115117||_0x292472['addUser']({'id':_0x30cc3e,'name':_0x3675ac});}['_createSuggestion'](_0x59e373,_0x4c32d5,_0x40dc3d,_0x4ae0ab,_0x2a11a6){const _0x520b02=this[_0x5f11('0x8e')](_0x4ae0ab),_0x1a7108=this[_0x5f11('0x4c')][_0x5f11('0xbf')](_0x59e373,_0x4c32d5,_0x40dc3d,_0x520b02,_0x2a11a6,_0xa881f9=>this[_0x5f11('0xd9')](_0x40dc3d,{'attributes':_0xa881f9}));return this['listenTo'](_0x1a7108,_0x5f11('0x8'),()=>{this[_0x5f11('0xd9')](_0x40dc3d,{'state':_0x5f11('0x110')});},{'priority':'high'}),this['listenTo'](_0x1a7108,_0x5f11('0x119'),()=>{this[_0x5f11('0xd9')](_0x40dc3d,{'state':'rejected'});},{'priority':'high'}),this[_0x5f11('0x33')][_0x5f11('0xd8')](_0x40dc3d,_0x1a7108),this[_0x5f11('0x24')][_0x5f11('0xd8')](_0x1a7108,_0x5f11('0x2c')),_0x1a7108;}[_0x5f11('0xc8')](_0x4d4ce1){const _0x14b802=_0x4d4ce1['split'](':');return{'group':_0x14b802[0x0],'type':_0x14b802[0x1],'subType':_0x14b802[_0x5f11('0x74')]>=0x5?_0x14b802[0x2]:null,'id':_0x14b802[_0x5f11('0x74')]<0x5?_0x14b802[0x2]:_0x14b802[0x3],'authorId':_0x14b802[_0x5f11('0x74')]<0x5?_0x14b802[0x3]:_0x14b802[0x4],'markerCount':0x6==_0x14b802[_0x5f11('0x74')]?_0x14b802[0x5]:null};}[_0x5f11('0x12b')](_0x2c4b16,_0x11f8a4,_0x1d8799){const _0xb00202=_0x2c4b16[_0x5f11('0x120')](),_0x29b758=_0xb00202[_0x5f11('0xcd')],_0x5791f3=_0xb00202[_0x5f11('0xb8')];this['_setSuggestionRange'](_0x2c4b16,this[_0x5f11('0x96')]['createRange'](_0x29b758,_0x11f8a4));const _0x263564=_0x10549d(),_0x160816=_0x2c4b16[_0x5f11('0x15')]['id'],_0x2d487c=_0x2c4b16[_0x5f11('0xa')]+(_0x2c4b16[_0x5f11('0xe2')]?':'+_0x2c4b16[_0x5f11('0xe2')]:'');this[_0x5f11('0x6a')]({'id':_0x263564,'type':_0x2d487c,'createdAt':new Date(),'authorId':_0x160816,'originalSuggestionId':_0x2c4b16['id'],'attributes':_0x2c4b16[_0x5f11('0x5d')],'data':_0x2c4b16['data']}),_0x5f11('0x107')==_0x2c4b16['type']&&(_0x1d8799=this[_0x5f11('0x96')][_0x5f11('0x9a')](_0x1d8799[_0x5f11('0xf0')])),this[_0x5f11('0x54')](_0x2d487c,_0x263564,_0x160816,this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x1d8799,_0x5791f3));}[_0x5f11('0xe7')](_0x27e2ee,_0x46d965=null){const _0x4bb54c=[],_0x4e911b=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x72'))['me'];Array[_0x5f11('0x7c')](_0x27e2ee)||(_0x27e2ee=[_0x27e2ee]);for(const _0x3d3276 of this['getSuggestions']()){if(!_0x3d3276[_0x5f11('0x3d')])continue;if(_0x46d965&&_0x3d3276[_0x5f11('0xa')]!=_0x46d965)continue;let _0x275bc6=!0x1;for(const _0x467997 of _0x3d3276[_0x5f11('0xed')]()){for(const _0xa6d4d8 of _0x27e2ee){const _0x5267d8=_0xa6d4d8[_0x5f11('0xcd')]['isEqual'](_0x467997['end'])||_0xa6d4d8[_0x5f11('0xb8')][_0x5f11('0x75')](_0x467997[_0x5f11('0xcd')]);if(_0x5267d8||_0xa6d4d8[_0x5f11('0x8d')](_0x467997)){const _0x3140af=_0xa6d4d8[_0x5f11('0x81')](_0x467997)&&Bt(this['_model'][_0x5f11('0x16')],_0x467997[_0x5f11('0xcd')],_0xa6d4d8),_0x52e249=_0x467997['containsRange'](_0xa6d4d8)&&Bt(this['_model'][_0x5f11('0x16')],_0xa6d4d8[_0x5f11('0xcd')],_0x467997);_0x4bb54c[_0x5f11('0xe5')]({'suggestion':_0x3d3276,'meta':{'isOwn':_0x4e911b==_0x3d3276[_0x5f11('0x2a')],'isNextTo':_0x5267d8,'isInsideObject':_0x3140af,'containsRangeInObject':_0x52e249}}),_0x275bc6=!0x0;break;}}if(_0x275bc6)break;}}return _0x4bb54c;}['_addSuggestionMarker'](_0x21a1df,_0x192758,_0x3106f1,_0x215648,_0x3920a8){this[_0x5f11('0x96')][_0x5f11('0x11c')](_0x2f0087=>{let _0x21b9b6=_0x5f11('0xd2')+_0x21a1df+':'+_0x192758+':'+_0x3106f1;_0x3920a8&&(_0x21b9b6=_0x21b9b6+':'+_0x3920a8),_0x2f0087[_0x5f11('0x2d')](_0x21b9b6,{'range':_0x215648,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5f11('0x136')](_0x3a5543){const _0x31912c=_0x3a5543[_0x5f11('0x11b')],_0x191367=_0x3a5543['next'];_0x3a5543[_0x5f11('0x11b')]=null,null!=_0x31912c&&(_0x31912c[_0x5f11('0x5a')]=null),_0x3a5543[_0x5f11('0x5a')]=null,null!=_0x191367&&(_0x191367[_0x5f11('0x11b')]=null),_0x5f11('0x38')==this[_0x5f11('0x24')][_0x5f11('0x27')](_0x3a5543)&&(this['_suggestionState'][_0x5f11('0xd8')](_0x3a5543,_0x5f11('0x11e')),this[_0x5f11('0x101')](_0x5f11('0x30'),_0x3a5543,_0x31912c,_0x191367));}[_0x5f11('0x6a')](_0x4bbd6d){const _0x3048ce=_0x4bbd6d['id'],_0x4675bb=this[_0x5f11('0x39')](_0x4bbd6d);if(this[_0x5f11('0x117')]&&this[_0x5f11('0x117')][_0x5f11('0x4a')]){const _0x339e53=this[_0x5f11('0x147')][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x93')),_0x4a0e4d=_0x4675bb[_0x5f11('0x122')],_0x5047e2=_0x4675bb[_0x5f11('0xe2')]?_0x4675bb[_0x5f11('0xa')]+':'+_0x4675bb[_0x5f11('0xe2')]:_0x4675bb[_0x5f11('0xa')],_0x4a9ce7=this[_0x5f11('0x147')]['locale'],_0x451329=_0x339e53[_0x5f11('0x50')](_0x415b1b(_0x4a9ce7,'PENDING_ACTION_SUGGESTION')),_0x42736e={'id':_0x3048ce,'type':_0x5047e2,'hasComments':_0x4a0e4d,'data':_0x4bbd6d[_0x5f11('0x13f')]||null,'originalSuggestionId':_0x4bbd6d[_0x5f11('0xab')]||null,'attributes':_0x4675bb['attributes']};this['_adapter'][_0x5f11('0x4a')](_0x42736e)['then'](_0x11ee3f=>{_0x4675bb['_saved']=!0x0,_0x339e53['remove'](_0x451329),_0x11ee3f&&_0x11ee3f[_0x5f11('0x7e')]&&(this[_0x5f11('0x33')][_0x5f11('0x27')](_0x3048ce)['createdAt']=_0x11ee3f[_0x5f11('0x7e')]);})[_0x5f11('0x87')](_0x334d7f=>{throw _0x593ff6('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x5f11('0x5')][_0x5f11('0x12c')]({'isUndoable':!0x1},()=>{_0x4675bb[_0x5f11('0x119')]();}),_0x4675bb[_0x5f11('0x21')](),this['_suggestions']['delete'](_0x4675bb['id']),this[_0x5f11('0x24')][_0x5f11('0x3')](_0x4675bb),_0x334d7f;});}return _0x4675bb;}[_0x5f11('0xd9')](_0x1962a5,_0x426e8d){const _0x3b5bb2=this['editor'][_0x5f11('0x76')][_0x5f11('0x27')](_0x5f11('0x93')),_0x46d923=this[_0x5f11('0x1d')](_0x1962a5);if(this[_0x5f11('0x117')]&&this['_adapter']['updateSuggestion']){if(_0x46d923[_0x5f11('0x56')]){const _0x34bea1=_0x3b5bb2[_0x5f11('0x50')](_0x415b1b(this[_0x5f11('0x147')][_0x5f11('0xf3')],_0x5f11('0x108')));this[_0x5f11('0x117')][_0x5f11('0x10b')](_0x1962a5,_0x426e8d)[_0x5f11('0x31')](()=>{_0x3b5bb2[_0x5f11('0xd5')](_0x34bea1);});}else _0x46d923['on']('change:_saved',()=>{this[_0x5f11('0xd9')](_0x1962a5,_0x426e8d);});}}[_0x5f11('0x89')](_0xc93404){if(!this['_adapter']||!this[_0x5f11('0x117')][_0x5f11('0x1d')])throw new _0x2cf346('track-changes-adapter-missing-getsuggestion',this);return this[_0x5f11('0x117')]['getSuggestion'](_0xc93404);}[_0x5f11('0xb')](_0x304439){const {id:_0xf0d18f,type:_0x5db8f5,subType:_0x52b5a4,authorId:_0x545706}=this[_0x5f11('0xc8')](_0x304439),_0x307f31=this[_0x5f11('0x33')]['get'](_0xf0d18f)||this[_0x5f11('0x142')](_0x5db8f5,_0x52b5a4,_0xf0d18f,_0x545706,{});switch(this[_0x5f11('0x58')](_0x307f31,_0x5db8f5,_0x52b5a4,_0x545706),this[_0x5f11('0x24')][_0x5f11('0x27')](_0x307f31)){case'notReady':this['_getSuggestionData'](_0xf0d18f)[_0x5f11('0x31')](_0x522eca=>{let _0x5c11fd=Promise[_0x5f11('0xcb')]();_0x522eca[_0x5f11('0x122')]&&(_0x5c11fd=this[_0x5f11('0x1c')][_0x5f11('0xcc')]({'channelId':this[_0x5f11('0x147')][_0x5f11('0x46')][_0x5f11('0x27')]('collaboration.channelId'),'threadId':_0xf0d18f})),_0x5c11fd[_0x5f11('0x31')](()=>{this[_0x5f11('0x39')](_0x522eca)['_saved']=!0x0;});}),this[_0x5f11('0x24')][_0x5f11('0xd8')](_0x307f31,'markerReady');break;case _0x5f11('0x11e'):this[_0x5f11('0xd9')](_0xf0d18f,{'state':_0x5f11('0x8a')});case _0x5f11('0x9e'):this[_0x5f11('0x24')][_0x5f11('0xd8')](_0x307f31,_0x5f11('0x38')),this[_0x5f11('0x101')](_0x5f11('0x83'),_0x307f31);break;case _0x5f11('0x38'):this['fire']('suggestionChanged',_0x307f31);}return _0x307f31[_0x5f11('0xc1')](_0x304439),_0x307f31;}[_0x5f11('0x124')](_0x2b6fe4){const _0x415007=Array[_0x5f11('0x121')](_0x2b6fe4)[_0x5f11('0x106')](_0xfeed2c=>!_0xfeed2c[_0x5f11('0xaa')]),_0x6bdfef=this[_0x5f11('0xc')]({'skipNotAttached':!0x0})[_0x5f11('0x106')](_0x3e49b6=>!_0x3e49b6[_0x5f11('0xaa')]),_0x1e0cd3=_0x6bdfef[_0x5f11('0x106')](_0x2bea6d=>!_0x2b6fe4[_0x5f11('0xf7')](_0x2bea6d)),_0x1b7416=new Map(_0x6bdfef[_0x5f11('0x59')](_0x2ba51c=>[_0x2ba51c,this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x2ba51c[_0x5f11('0xa')],_0x2ba51c[_0x5f11('0xe2')],'chain')])),_0x166375=new Map(_0x6bdfef[_0x5f11('0x59')](_0x4a8095=>[_0x4a8095,_0x4a8095[_0x5f11('0x120')]()])),_0x49efe9=new Set(),_0x273a38=new Set();for(let _0x55dd63=0x0;_0x55dd63<_0x415007[_0x5f11('0x74')];_0x55dd63++)_0x3160b6(_0x415007[_0x55dd63],_0x415007,_0x55dd63+0x1);for(let _0xf75be4=0x0;_0xf75be4<_0x415007[_0x5f11('0x74')];_0xf75be4++)_0x3160b6(_0x415007[_0xf75be4],_0x1e0cd3,0x0);for(let _0x20098e=0x0;_0x20098e<_0x415007[_0x5f11('0x74')];_0x20098e++){const _0x831a6=_0x415007[_0x20098e];!_0x273a38[_0x5f11('0xf7')](_0x831a6)&&_0x831a6[_0x5f11('0x11b')]&&(_0x831a6[_0x5f11('0x11b')][_0x5f11('0x5a')]===_0x831a6&&(_0x831a6[_0x5f11('0x11b')][_0x5f11('0x5a')]=null),_0x831a6[_0x5f11('0x11b')]=null),!_0x49efe9[_0x5f11('0xf7')](_0x831a6)&&_0x831a6[_0x5f11('0x5a')]&&(_0x831a6['next'][_0x5f11('0x11b')]===_0x831a6&&(_0x831a6[_0x5f11('0x5a')]['previous']=null),_0x831a6[_0x5f11('0x5a')]=null);}function _0x3160b6(_0x288a95,_0xad72cd,_0x53e157){for(let _0x3ac557=_0x53e157;_0x3ac557<_0xad72cd[_0x5f11('0x74')];_0x3ac557++){const _0x5866a5=_0x88f02c(_0x288a95,_0xad72cd[_0x3ac557]);_0x5866a5&&(_0x5866a5[0x0]['next']=_0x5866a5[0x1],_0x5866a5[0x1][_0x5f11('0x11b')]=_0x5866a5[0x0],_0x49efe9['add'](_0x5866a5[0x0]),_0x273a38[_0x5f11('0x50')](_0x5866a5[0x1]));}}function _0x88f02c(_0x5a33ff,_0x18c1e2){if(_0x5a33ff[_0x5f11('0x2a')]['id']!==_0x18c1e2[_0x5f11('0x2a')]['id'])return null;const _0x35dff9=_0x1b7416[_0x5f11('0x27')](_0x5a33ff)(_0x5a33ff,_0x18c1e2,_0x166375[_0x5f11('0x27')](_0x5a33ff),_0x166375[_0x5f11('0x27')](_0x18c1e2));if(!_0x35dff9)return null;return _0x1b7416[_0x5f11('0x27')](_0x18c1e2)(_0x5a33ff,_0x18c1e2,_0x166375['get'](_0x5a33ff),_0x166375[_0x5f11('0x27')](_0x18c1e2))?_0x35dff9[0x1][_0x5f11('0xe1')]&&_0x35dff9[0x1][_0x5f11('0xe1')]['length']?null:_0x35dff9:null;}}[_0x5f11('0x12e')](_0xd67026){const _0x14b911=Array[_0x5f11('0x121')](_0xd67026),_0x1d2d1e=this[_0x5f11('0xc')]({'skipNotAttached':!0x0}),_0x1469f9=_0x1d2d1e[_0x5f11('0x106')](_0x3422e7=>!_0xd67026[_0x5f11('0xf7')](_0x3422e7)),_0x2ec271=new Map(_0x14b911[_0x5f11('0x59')](_0x22263a=>[_0x22263a,this[_0x5f11('0x4c')][_0x5f11('0x3a')](_0x22263a[_0x5f11('0xa')],_0x22263a[_0x5f11('0xe2')],_0x5f11('0x2f'))])),_0x519f4c=new Map(_0x1d2d1e[_0x5f11('0x59')](_0x146932=>[_0x146932,_0x146932[_0x5f11('0xed')]()]));for(let _0x22e42f=0x0;_0x22e42f<_0x14b911[_0x5f11('0x74')];_0x22e42f++){if(_0x376898(this,_0x14b911[_0x22e42f],_0x14b911,_0x22e42f+0x1))return!0x0;}for(let _0x5b2705=0x0;_0x5b2705<_0x14b911[_0x5f11('0x74')];_0x5b2705++){if(_0x376898(this,_0x14b911[_0x5b2705],_0x1469f9,0x0))return!0x0;}return!0x1;function _0x376898(_0x29498c,_0x56a6c9,_0x3fe654,_0x2da679){for(let _0x2a0e3a=_0x2da679;_0x2a0e3a<_0x3fe654[_0x5f11('0x74')];_0x2a0e3a++){const _0x50c2cf=_0x3fe654[_0x2a0e3a];if(_0x50c2cf[_0x5f11('0xa')]!==_0x56a6c9[_0x5f11('0xa')]||_0x50c2cf[_0x5f11('0x2a')]['id']!==_0x56a6c9[_0x5f11('0x2a')]['id']||_0x50c2cf[_0x5f11('0xe2')]!==_0x56a6c9[_0x5f11('0xe2')])continue;if(!xt(_0x56a6c9,_0x50c2cf))continue;const _0x3291f7=_0x2ec271[_0x5f11('0x27')](_0x56a6c9),_0x3286ad=_0x519f4c[_0x5f11('0x27')](_0x56a6c9),_0x324fc0=_0x519f4c['get'](_0x50c2cf),_0x1761c2=_0x56a6c9[_0x5f11('0xe1')]&&_0x56a6c9[_0x5f11('0xe1')]['length'],_0xf4eaac=_0x50c2cf[_0x5f11('0xe1')]&&_0x50c2cf[_0x5f11('0xe1')][_0x5f11('0x74')];if(!_0x1761c2&&_0x3291f7(_0x324fc0,_0x3286ad))return _0x29498c[_0x5f11('0xee')](_0x50c2cf,_0x56a6c9),_0x519f4c['delete'](_0x56a6c9),!0x0;if(!_0xf4eaac&&_0x3291f7(_0x3286ad,_0x324fc0))return _0x29498c[_0x5f11('0xee')](_0x56a6c9,_0x50c2cf),_0x519f4c['delete'](_0x50c2cf),!0x0;}return!0x1;}}['_joinSuggestions'](_0x30c12d,_0x76a5a5){if(_0x30c12d[_0x5f11('0xaa')])for(const _0x16fda5 of _0x76a5a5['getRanges']())_0x30c12d[_0x5f11('0xa1')](_0x16fda5);else{const _0x36c1a9=_0x76a5a5[_0x5f11('0x120')]()['end'];this[_0x5f11('0x98')](_0x30c12d,this[_0x5f11('0x96')]['createRange'](_0x30c12d[_0x5f11('0x120')]()['start'],_0x36c1a9));}_0x76a5a5[_0x5f11('0x2e')]();}}class Dt{constructor(_0x3793b2){this[_0x5f11('0xa0')]=_0x3793b2,this[_0x5f11('0x96')]=_0x3793b2[_0x5f11('0x5')],this[_0x5f11('0xa2')]=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}[_0x5f11('0xbf')](_0x315480,_0x598bc4,_0x4b0b69,_0x9d449,_0x325a95,_0x55f8a2){return new _0x2ad42f(this['_model'],{'type':_0x315480,'subType':_0x598bc4,'id':_0x4b0b69,'author':_0x9d449,'creator':_0x9d449,'attributes':_0x325a95,'onAttributesChange':_0x55f8a2,'onAccept':(..._0x4b66eb)=>this['getSuggestionCallback'](_0x315480,_0x598bc4,_0x5f11('0x8'))(..._0x4b66eb),'onDiscard':(..._0x390857)=>this[_0x5f11('0x3a')](_0x315480,_0x598bc4,_0x5f11('0x119'))(..._0x390857)});}[_0x5f11('0x48')](_0x1a770c,_0x2323de,_0x1b4e10,_0x143249){const _0x3ea16c=_0x1a770c+':'+_0x2323de+':'+_0x1b4e10;this['_customCallbacks'][_0x5f11('0xd8')](_0x3ea16c,_0x143249);}[_0x5f11('0x3a')](_0x2ce9b3,_0x494ccc,_0x5c91f5){const _0x52e019=_0x2ce9b3+':'+_0x494ccc+':'+_0x5c91f5;return this[_0x5f11('0xa2')]['get'](_0x52e019)||this['_defaultCallbacks']['get'](_0x2ce9b3+':'+_0x5c91f5);}[_0x5f11('0x102')](){const _0x39f4c0=()=>!0x1,_0x11ddbf=_0x1df17b=>{_0x1df17b[_0x5f11('0xa3')]((_0xe45d18,_0x375928)=>_0xe45d18[_0x5f11('0xcd')][_0x5f11('0x114')](_0x375928[_0x5f11('0xcd')])?0x1:-0x1),this[_0x5f11('0x96')][_0x5f11('0x11c')](_0xc7e3a4=>{for(const _0x165319 of _0x1df17b){let _0x4c80ac;_0x4c80ac=_0x165319[_0x5f11('0xb8')]['isAtEnd']&&_0x165319['end']['parent']==_0x165319[_0x5f11('0xcd')][_0x5f11('0xb6')]?_0xc7e3a4['createSelection'](_0x165319['start']['nodeAfter'],'on'):_0xc7e3a4[_0x5f11('0xc9')](_0x165319),this['_model'][_0x5f11('0xef')](_0x4c80ac,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b1f6c=(_0x2d112f,_0x3a88ee)=>{this[_0x5f11('0x96')]['change'](_0x5d08ac=>{const {commandName:_0x510810,commandParams:_0x2ae9fc=[]}=_0x3a88ee,_0x4904a7=_0x2d112f['map'](_0x1c00e3=>(_t(_0x1c00e3)&&(_0x1c00e3=this[_0x5f11('0x96')][_0x5f11('0x4d')](_0x1c00e3[_0x5f11('0xb8')])),_0x1c00e3))['filter'](_0x3ef73c=>_0x5f11('0x118')!==_0x3ef73c[_0x5f11('0xe9')][_0x5f11('0x55')]);if(_0x4904a7[_0x5f11('0x74')]<0x1)return;const _0x5c8019=Array[_0x5f11('0x121')](this['_model'][_0x5f11('0xb4')][_0x5f11('0xad')][_0x5f11('0xed')]())[_0x5f11('0x59')](_0x77bb59=>_0x21916d[_0x5f11('0xa9')](_0x77bb59));_0x5d08ac[_0x5f11('0x133')](_0x4904a7);for(const _0x3748fc of this[_0x5f11('0xa0')]['commands'][_0x5f11('0x91')]())_0x3748fc[_0x5f11('0xd0')]();_0x2ae9fc['push']({'forceDefaultExecution':!0x0}),this[_0x5f11('0xa0')][_0x5f11('0xfd')](_0x510810,..._0x2ae9fc);const _0x4d1d90=_0x5c8019[_0x5f11('0x106')](_0x5aecad=>_0x5f11('0x118')!=_0x5aecad[_0x5f11('0xe9')][_0x5f11('0x55')]);_0x4d1d90['length']>0x0&&_0x5d08ac[_0x5f11('0x133')](_0x4d1d90);for(const _0x2abb7a of _0x5c8019)_0x2abb7a[_0x5f11('0x95')]();});},_0x34c7cb=(_0x44f8a2,_0x11ecbb)=>0x1==_0x44f8a2[_0x5f11('0x74')]&&0x1==_0x11ecbb[_0x5f11('0x74')]&&_0x44f8a2[0x0][_0x5f11('0xb8')][_0x5f11('0x75')](_0x11ecbb[0x0][_0x5f11('0xcd')]),_0x76d5ea=(_0x55414a,_0x1dae54,_0x5494d0,_0x327ae3)=>jt(_0x55414a,_0x1dae54,_0x5494d0,_0x327ae3,this[_0x5f11('0x96')])?[_0x55414a,_0x1dae54]:jt(_0x1dae54,_0x55414a,_0x327ae3,_0x5494d0,this[_0x5f11('0x96')])?[_0x1dae54,_0x55414a]:null;this[_0x5f11('0xdf')]['set'](_0x5f11('0xf1'),_0x39f4c0),this[_0x5f11('0xdf')][_0x5f11('0xd8')]('insertion:discard',_0x11ddbf),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x3b'),_0x34c7cb),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x1e'),_0x76d5ea),this[_0x5f11('0xdf')]['set'](_0x5f11('0xa7'),_0x11ddbf),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0xe6'),_0x39f4c0),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x104'),_0x34c7cb),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x1f'),_0x76d5ea),this[_0x5f11('0xdf')]['set'](_0x5f11('0xa4'),_0x3b1f6c),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x9b'),_0x39f4c0),this['_defaultCallbacks'][_0x5f11('0xd8')]('formatInline:join',_0x34c7cb),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0x43'),_0x39f4c0),this[_0x5f11('0xdf')][_0x5f11('0xd8')]('formatBlock:accept',_0x3b1f6c),this[_0x5f11('0xdf')][_0x5f11('0xd8')]('formatBlock:discard',_0x39f4c0),this['_defaultCallbacks']['set'](_0x5f11('0x5e'),_0x34c7cb),this[_0x5f11('0xdf')][_0x5f11('0xd8')](_0x5f11('0xfe'),_0x39f4c0);}}function Bt(_0x19de24,_0x373457,_0x116e66){for(const _0x136e25 of _0x373457[_0x5f11('0xf0')][_0x5f11('0xce')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x136e25[_0x5f11('0xe9')]==_0x136e25)return!0x1;if(!_0x116e66[_0x5f11('0x7f')](_0x136e25))return!0x1;if(_0x19de24[_0x5f11('0x40')](_0x136e25)||_0x19de24[_0x5f11('0x64')](_0x136e25))return!0x0;}return!0x1;}function _t(_0x29bf0a){return _0x29bf0a[_0x5f11('0xb8')][_0x5f11('0xf0')]==_0x29bf0a[_0x5f11('0xcd')][_0x5f11('0xb6')]&&_0x29bf0a[_0x5f11('0xb8')][_0x5f11('0x131')];}function Mt(_0x1ec25b,_0x508352,_0x38ff5f,_0x2d7b7e){const _0x4e57e4=_0x6b2248=>!_0x6b2248[_0x5f11('0xdb')]['is'](_0x5f11('0x12a'))&&!_0x2d7b7e[_0x5f11('0x40')](_0x6b2248[_0x5f11('0xdb')]),_0x46a75b=_0x1ec25b[_0x5f11('0xcd')]['getLastMatchingPosition'](_0x4e57e4),_0x58006b=_0x1ec25b[_0x5f11('0xb8')][_0x5f11('0x116')](_0x4e57e4,{'direction':'backward'});return(!_0x1ec25b[_0x5f11('0xcd')]['isEqual'](_0x46a75b)||!_0x1ec25b[_0x5f11('0xb8')][_0x5f11('0x75')](_0x58006b))&&(_0x46a75b[_0x5f11('0x114')](_0x58006b)?_0x38ff5f[_0x5f11('0x8f')](_0x508352,{'range':_0x38ff5f[_0x5f11('0x4d')](_0x46a75b,_0x58006b)}):_0x38ff5f['removeMarker'](_0x508352),!0x0);}function $t(_0x1b9a56){return _0x281bde(_0x1b9a56);}function Nt(_0x7c575c){const _0xa812d7=_0x7c575c[_0x5f11('0xcd')][_0x5f11('0xb6')];return _0xa812d7&&_0xa812d7['is'](_0x5f11('0x9'));}function Rt(_0x57c423,_0x37662a){const _0x565ee4=_0x37662a[_0x5f11('0x16')]['isObject'](_0x57c423)||_0x37662a[_0x5f11('0x16')][_0x5f11('0x103')](_0x57c423);return _0x37662a[_0x5f11('0x4d')](_0x37662a[_0x5f11('0x0')](_0x57c423,_0x5f11('0xe3')),_0x565ee4?_0x37662a['createPositionAfter'](_0x57c423):_0x37662a[_0x5f11('0x0')](_0x57c423,'end'));}function jt(_0x1a6f3b,_0x8ad4af,_0x4a94b2,_0x203f73,_0x1e353c){if(!xt(_0x1a6f3b,_0x8ad4af))return!0x1;if(_0x4a94b2[_0x5f11('0xb8')][_0x5f11('0x75')](_0x203f73[_0x5f11('0xcd')]))return!0x0;if(_0x1a6f3b[_0x5f11('0xa')]!=_0x8ad4af['type'])return!0x1;if(!_0x4a94b2['end'][_0x5f11('0x129')](_0x203f73[_0x5f11('0xcd')]))return!0x1;const _0x176eb4=_0x1e353c[_0x5f11('0x4d')](_0x4a94b2[_0x5f11('0xb8')],_0x203f73['start'])[_0x5f11('0x80')]();for(const _0x47195d of _0x176eb4)if(['elementStart',_0x5f11('0x139')][_0x5f11('0xc6')](_0x47195d[_0x5f11('0xa')])&&_0x1e353c[_0x5f11('0x16')]['isLimit'](_0x47195d[_0x5f11('0xdb')]))return!0x1;return!0x0;}function xt(_0x2b74ac,_0x225f5f){return!(!_0x2b74ac[_0x5f11('0x26')]||!_0x225f5f['_isDataLoaded'])&&_0x252be2(_0x2b74ac[_0x5f11('0x5d')],_0x225f5f[_0x5f11('0x5d')]);}function Ut(_0x2dabd2,_0x136031){const _0x32f8e1=Ot(_0x2dabd2[_0x5f11('0x5d')]),_0x3541be=Ot(_0x136031);if(!_0x2dabd2[_0x5f11('0x26')])return!0x1;for(const _0x2d9531 of Object['keys'](_0x3541be))if(!_0x252be2(_0x32f8e1[_0x2d9531],_0x3541be[_0x2d9531]))return!0x1;return!0x0;}function Ot(_0x5ef885){const _0x5c0118=Object[_0x5f11('0x1')]({},_0x5ef885);return delete _0x5c0118[_0x5f11('0x77')],delete _0x5c0118['tablePasteChainId'],_0x5c0118;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1972=['isEnabled','bind','acceptSelectedSuggestions','createAnnotation','isMultiRange','has','arrowView','clear','addComment','comments.maxThreadTotalWeight','reduce','trackChanges','_bindAnnotationToEditors','switchbutton','change:activeAnnotations','view','set','getDescriptions','CommentView','_handleControllerBuffer','CommentsUI','getJoined','acceptButton','discardAllSuggestions','_refreshActiveMarkers','listenTo','init','discardSelectedSuggestions','_initializeController','innerView','previous','destroy','execute','head','_updateController','Accept\x20all\x20suggestions','buttonView','getMarkers','focus','plugins','remove','activeAnnotations','config','length','value','_disableComments','commands','getAllAdjacentSuggestions','TrackChangesEditing','button','get','isOn','type','getRanges','add','CommentsRepository','lowest','stopListening','_suggestionToController','keys','SuggestionThreadView','TrackChangesUI','push','actionView','suggestionChanged','Annotations','comments','Accept\x20all\x20selected\x20suggestions','activeMarkers','EditorAnnotations','size','locale','delete','_descriptionFactory','unbind','_handleSuggestionControllerDelayed','editing','isInContent','suggestionLoaded','Discard\x20all\x20selected\x20suggestions','descriptionParts','Discard\x20all\x20suggestions','mainView','_createUIButton','trackChanges.SuggestionThreadView','model','change:previous','createCommentThreadController','getFirstRange','comments.maxCommentsWhenCollapsed','separator','_annotationViews','editor','_viewToController','addSourceCollector','filter','commandName','toMany','refreshSelectedViews','pluginName','trackChanges.disableComments','from','_destroyController','Track\x20changes','commentThread','suggestion-','isDirty'];(function(_0x536129,_0x1972f3){const _0x1f8a21=function(_0x21781f){while(--_0x21781f){_0x536129['push'](_0x536129['shift']());}};_0x1f8a21(++_0x1972f3);}(_0x1972,0x1c2));const _0x1f8a=function(_0x536129,_0x1972f3){_0x536129=_0x536129-0x0;let _0x1f8a21=_0x1972[_0x536129];return _0x1f8a21;};import{Plugin as _0x57f5ab}from'ckeditor5/src/core';import{Collection as _0x53e61c}from'ckeditor5/src/utils';import{Model as _0x543834,SplitButtonView as _0x764f47,createDropdown as _0x126d13,addListToDropdown as _0x1ffa5d}from'ckeditor5/src/ui';import{Users as _0x1ec6f2,getDateTimeFormatter as _0x5020c7,getAllMarkersDomElementsSorted as _0xc82ae5}from'ckeditor5-collaboration/src/collaboration-core';import _0x29e555 from'./trackchangesediting';import _0x3faca1 from'./ui/suggestioncontroller';import _0x4d1161 from'./ui/view/suggestionthreadview';import{getTranslation as _0x67014a}from'./utils/common-translations';import _0x33bf61 from'../theme/icons/track-changes.svg';export default class d extends _0x57f5ab{static get['requires'](){return[_0x29e555,_0x1ec6f2,_0x1f8a('0x21'),'Annotations',_0x1f8a('0x2f')];}static get[_0x1f8a('0x4d')](){return _0x1f8a('0x27');}constructor(_0x5bbbaa){super(_0x5bbbaa),this[_0x1f8a('0x24')]=new Map(),this[_0x1f8a('0x47')]=new Map(),this[_0x1f8a('0x45')]=new Map(),this[_0x1f8a('0x68')]=new Map();const _0x5a4fbf=this[_0x1f8a('0x46')][_0x1f8a('0x14')];_0x5a4fbf['define'](_0x1f8a('0x3e'),_0x4d1161),_0x5a4fbf['define'](_0x1f8a('0x4e'),!0x1),this[_0x1f8a('0x17')]=_0x5a4fbf[_0x1f8a('0x1c')](_0x1f8a('0x4e'));}[_0x1f8a('0x35')](_0x219ba7,_0x36cd37){0x0===this[_0x1f8a('0x68')][_0x1f8a('0x30')]&&setTimeout(()=>{for(const [_0x315ccb,_0x3a3627]of this[_0x1f8a('0x68')]){const _0x1cd4b4=this[_0x1f8a('0x24')][_0x1f8a('0x5a')](_0x315ccb);_0x1cd4b4||_0x3a3627?_0x1cd4b4&&_0x3a3627&&this[_0x1f8a('0x50')](_0x315ccb):this[_0x1f8a('0x6')](_0x315ccb);}this[_0x1f8a('0x46')]['plugins'][_0x1f8a('0x1c')](_0x1f8a('0x2f'))[_0x1f8a('0x4c')](),this[_0x1f8a('0x2')](),this[_0x1f8a('0x68')][_0x1f8a('0x5c')]();},0xa),this[_0x1f8a('0x68')]['set'](_0x219ba7,_0x36cd37);}[_0x1f8a('0x4')](){const _0x26ab96=this[_0x1f8a('0x46')],_0x38e9a6=_0x26ab96['plugins'][_0x1f8a('0x1c')](_0x1f8a('0x1a')),_0x19eec5=_0x26ab96[_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x2b')),_0xc05264=_0x26ab96[_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x2f')),_0x436601=_0x26ab96[_0x1f8a('0x11')][_0x1f8a('0x1c')]('CommentsRepository');_0x26ab96['ui']['componentFactory']['add'](_0x1f8a('0x60'),_0x34205d=>this[_0x1f8a('0x3d')](_0x34205d)),_0xc05264[_0x1f8a('0x48')](()=>{const _0x512a58=[];for(const [_0x4feee6,_0x5ef451]of Array[_0x1f8a('0x4f')](this[_0x1f8a('0x24')])){const _0x48db7c=_0x4feee6['getAllAdjacentSuggestions'](),_0x3453d0=[];for(const _0x548d85 of _0x48db7c){if(!_0x548d85[_0x1f8a('0x37')])continue;if(_0x548d85[_0x1f8a('0x59')]){_0x3453d0[_0x1f8a('0x28')](..._0x548d85[_0x1f8a('0x1f')]());continue;}const _0x4056ec=_0x548d85[_0x1f8a('0x42')]();if(_0x3453d0[_0x1f8a('0x15')]>0x0){const _0x9eaca1=_0x3453d0[0x0][_0x1f8a('0x6a')](_0x4056ec);if(_0x9eaca1){_0x3453d0[0x0]=_0x9eaca1;continue;}}_0x3453d0[_0x1f8a('0x28')](_0x4056ec);}_0x512a58[_0x1f8a('0x28')]([_0x5ef451[_0x1f8a('0x64')],_0x3453d0]);}return _0x512a58;}),this[_0x1f8a('0x3')](_0x38e9a6,_0x1f8a('0x38'),(_0x5abea2,_0x527587)=>{this['listenTo'](_0x527587,_0x1f8a('0x40'),(_0x4007f1,_0x241d84,_0x139f88,_0x537679)=>{_0x527587[_0x1f8a('0x37')]&&(null==_0x139f88?(this[_0x1f8a('0xc')](_0x537679[_0x1f8a('0xb')]),this['_handleSuggestionControllerDelayed'](_0x527587,!0x1)):(this[_0x1f8a('0xc')](_0x139f88[_0x1f8a('0xb')]),this[_0x1f8a('0x35')](_0x527587,!0x0)));}),null===_0x527587[_0x1f8a('0x8')]?this[_0x1f8a('0x35')](_0x527587,!0x1):this[_0x1f8a('0xc')](_0x527587[_0x1f8a('0xb')]);}),this['listenTo'](_0x38e9a6,'suggestionUnloaded',(_0x540e2e,_0x324d3c,_0x1e3816)=>{this[_0x1f8a('0x23')](_0x324d3c,'change:previous'),this[_0x1f8a('0x68')][_0x1f8a('0x32')](_0x324d3c);const _0x5bcaec=_0x1e3816?_0x1e3816[_0x1f8a('0xb')]:_0x324d3c,_0x31a431=this[_0x1f8a('0x24')][_0x1f8a('0x1c')](_0x5bcaec);null!==_0x1e3816&&this[_0x1f8a('0xc')](_0x5bcaec),null===_0x1e3816&&_0x31a431&&this[_0x1f8a('0x50')](_0x324d3c);}),this[_0x1f8a('0x3')](_0x38e9a6,_0x1f8a('0x2a'),(_0x327edd,_0x3d70c3)=>{this[_0x1f8a('0xc')](_0x3d70c3);}),this['listenTo'](_0x19eec5,_0x1f8a('0x63'),()=>{this['_refreshActiveMarkers']();}),this[_0x1f8a('0x3')](_0x436601,_0x1f8a('0x5d'),(_0x178fbd,{threadId:_0x6bb041,isFromAdapter:_0x2d7c56})=>{if(_0x2d7c56||!_0x38e9a6['hasSuggestion'](_0x6bb041))return;const _0x781557=_0x38e9a6['getSuggestion'](_0x6bb041);this['_suggestionToController'][_0x1f8a('0x1c')](_0x781557)['view']['focus']();},{'priority':_0x1f8a('0x22')});}[_0x1f8a('0x2')](){const _0x4333cd=this[_0x1f8a('0x46')]['plugins'][_0x1f8a('0x1c')](_0x1f8a('0x2b')),_0x3665eb=this[_0x1f8a('0x46')][_0x1f8a('0x11')]['get'](_0x1f8a('0x1a')),_0x51a8bc=Array[_0x1f8a('0x4f')](_0x4333cd[_0x1f8a('0x13')],_0x19cb4b=>_0x19cb4b[_0x1f8a('0x7')])[_0x1f8a('0x49')](_0x5a3b23=>this[_0x1f8a('0x47')]['has'](_0x5a3b23)),_0x154de0=[];for(const _0x5425db of _0x51a8bc){const _0x36aefe=this[_0x1f8a('0x47')][_0x1f8a('0x1c')](_0x5425db)[_0x1f8a('0x3f')][_0x1f8a('0x19')]();_0x154de0[_0x1f8a('0x28')](..._0x36aefe[_0x1f8a('0x5f')]((_0x28f295,_0x170ac5)=>[..._0x28f295,..._0x170ac5['getMarkerNames']()],[]));}_0x3665eb[_0x1f8a('0x2e')]=_0x154de0;}['_createUIButton'](_0x15c67a){const _0x474aa3=_0x126d13(_0x15c67a,_0x764f47),_0x44381c=this[_0x1f8a('0x46')][_0x1f8a('0x18')][_0x1f8a('0x1c')](_0x1f8a('0x60')),_0x3dee95=_0x67014a(_0x15c67a,_0x1f8a('0x51'));_0x474aa3[_0x1f8a('0xe')][_0x1f8a('0x65')]({'tooltip':_0x3dee95,'label':_0x3dee95,'icon':_0x33bf61}),_0x474aa3[_0x1f8a('0xe')][_0x1f8a('0x56')](_0x1f8a('0x1d'))['to'](_0x44381c,_0x1f8a('0x16')),_0x474aa3['buttonView']['on'](_0x1f8a('0xa'),()=>{_0x44381c['execute'](),this[_0x1f8a('0x46')][_0x1f8a('0x36')][_0x1f8a('0x64')][_0x1f8a('0x10')]();});const _0x5a1e4b=new _0x53e61c(),_0x4ea9e7=[{'type':_0x1f8a('0x62'),'model':{'withText':!0x0,'label':_0x3dee95,'commandName':_0x1f8a('0x60')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x67014a(_0x15c67a,_0x1f8a('0xd')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x67014a(_0x15c67a,_0x1f8a('0x2d')),'commandName':_0x1f8a('0x57')}},{'type':_0x1f8a('0x1b'),'model':{'withText':!0x0,'label':_0x67014a(_0x15c67a,_0x1f8a('0x3b')),'commandName':_0x1f8a('0x1')}},{'type':_0x1f8a('0x1b'),'model':{'withText':!0x0,'label':_0x67014a(_0x15c67a,_0x1f8a('0x39')),'commandName':_0x1f8a('0x5')}}];for(const _0x511118 of _0x4ea9e7){let _0x13ec9a={'type':_0x1f8a('0x44')};if(_0x511118[_0x1f8a('0x3f')]){const _0x23be5c=new _0x543834(_0x511118[_0x1f8a('0x3f')]),_0x4fd0ec=this[_0x1f8a('0x46')][_0x1f8a('0x18')][_0x1f8a('0x1c')](_0x23be5c['commandName']);_0x23be5c['bind']('isOn',_0x1f8a('0x55'))['to'](_0x4fd0ec,'value',_0x1f8a('0x55')),_0x13ec9a={'type':_0x511118[_0x1f8a('0x1e')],'model':_0x23be5c};}_0x5a1e4b['add'](_0x13ec9a);}_0x1ffa5d(_0x474aa3,_0x5a1e4b);const _0x799e4f=_0x4ea9e7[_0x1f8a('0x49')](_0x30f638=>null!=_0x30f638[_0x1f8a('0x3f')])['map'](_0x25dc3b=>this[_0x1f8a('0x46')][_0x1f8a('0x18')][_0x1f8a('0x1c')](_0x25dc3b[_0x1f8a('0x3f')][_0x1f8a('0x4a')])),_0x2c91d3=_0x474aa3['buttonView'];return _0x2c91d3['actionView']['unbind'](_0x1f8a('0x55')),_0x2c91d3['arrowView'][_0x1f8a('0x34')]('isEnabled'),_0x2c91d3[_0x1f8a('0x29')][_0x1f8a('0x56')](_0x1f8a('0x55'))['to'](_0x44381c,_0x1f8a('0x55')),_0x2c91d3[_0x1f8a('0x5b')]['bind'](_0x1f8a('0x55'))[_0x1f8a('0x4b')](_0x799e4f,_0x1f8a('0x55'),(..._0x29cc83)=>_0x29cc83['some'](_0x2b028a=>_0x2b028a)),_0x474aa3['on'](_0x1f8a('0xa'),_0x46dfaa=>{this[_0x1f8a('0x46')]['execute'](_0x46dfaa['source'][_0x1f8a('0x4a')]),this[_0x1f8a('0x46')][_0x1f8a('0x36')][_0x1f8a('0x64')][_0x1f8a('0x10')]();}),_0x474aa3;}['_initializeController'](_0x15b784){const _0x4099dc=this['editor'],_0x131b5a=_0x4099dc[_0x1f8a('0x14')],_0x34ba48=_0x4099dc[_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x2b')),_0x40fc32=_0x4099dc['plugins'][_0x1f8a('0x1c')]('CommentsRepository'),_0xecaee2=_0x4099dc[_0x1f8a('0x11')]['get'](_0x1f8a('0x2f')),_0x1f4d7a=_0x4099dc[_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1ec6f2)['me'],_0xf951b7=_0x131b5a[_0x1f8a('0x1c')](_0x1f8a('0x60'))[_0x1f8a('0x26')],{CommentsListView:_0x140ae7,CommentThreadInputView:_0x508cd6}=_0x4099dc[_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x69'));let _0xae7a10,_0x1b5038;this[_0x1f8a('0x45')][_0x1f8a('0x5a')](_0x15b784['id'])?(_0x1b5038=this[_0x1f8a('0x45')][_0x1f8a('0x1c')](_0x15b784['id']),_0xae7a10=_0x1b5038['mainView']):(_0xae7a10=new _0xf951b7(_0x4099dc[_0x1f8a('0x31')],_0x15b784,_0x1f4d7a,{'disableComments':this[_0x1f8a('0x17')],'editorConfig':_0x131b5a[_0x1f8a('0x1c')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x131b5a[_0x1f8a('0x1c')](_0x1f8a('0x43')),'maxThreadTotalWeight':_0x131b5a[_0x1f8a('0x1c')](_0x1f8a('0x5e')),'maxCommentCharsWhenCollapsed':_0x131b5a[_0x1f8a('0x1c')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5020c7(_0x131b5a[_0x1f8a('0x1c')]('locale')),'CommentView':_0x131b5a['get'](_0x1f8a('0x2c'))[_0x1f8a('0x67')],'CommentsListView':_0x140ae7,'CommentThreadInputView':_0x508cd6}),_0xae7a10[_0x1f8a('0x0')]['on'](_0x1f8a('0xa'),()=>{_0x4099dc[_0x1f8a('0x36')][_0x1f8a('0x64')][_0x1f8a('0x10')]();}),_0xae7a10['discardButton']['on']('execute',()=>{_0x4099dc[_0x1f8a('0x36')]['view']['focus']();}),_0x1b5038=_0x34ba48['createAnnotationView'](this[_0x1f8a('0x46')][_0x1f8a('0x31')],_0xae7a10),_0x1b5038[_0x1f8a('0x56')](_0x1f8a('0x54'))['to'](_0xae7a10,_0x1f8a('0x54')),_0x1b5038[_0x1f8a('0x56')](_0x1f8a('0x15'))['to'](_0xae7a10),_0x1b5038['bind']('type')['to'](_0xae7a10,'type',_0x4d6e14=>_0x1f8a('0x53')+_0x4d6e14),this[_0x1f8a('0x45')][_0x1f8a('0x65')](_0x15b784['id'],_0x1b5038));const _0x2dc955=_0x40fc32[_0x1f8a('0x41')](_0x15b784[_0x1f8a('0x52')],_0xae7a10),_0x3c8385=new _0x3faca1(_0x4099dc,_0x15b784,_0xae7a10,_0x2dc955),_0x18b9f0=_0x15b784[_0x1f8a('0x19')]()[_0x1f8a('0x49')](_0x4690fc=>_0x4690fc[_0x1f8a('0x37')]);_0xae7a10[_0x1f8a('0x3a')]=_0x4099dc[_0x1f8a('0x11')]['get'](_0x1f8a('0x1a'))[_0x1f8a('0x33')][_0x1f8a('0x66')](_0x18b9f0),this['_suggestionToController'][_0x1f8a('0x65')](_0x15b784,_0x3c8385),this['_viewToController']['set'](_0xae7a10,_0x3c8385);const _0x744711=_0x34ba48[_0x1f8a('0x58')]({'view':_0x1b5038,'target':()=>{const _0x37faa0=[],_0x583652=_0x15b784[_0x1f8a('0x19')]()[_0x1f8a('0x49')](_0x3bd379=>_0x3bd379[_0x1f8a('0x37')]);for(const _0x55cfc6 of _0x583652)_0x37faa0['push'](..._0x55cfc6[_0x1f8a('0xf')]());return _0xc82ae5(_0x4099dc['editing'],_0x37faa0);},'type':()=>'suggestion-'+_0x3c8385[_0x1f8a('0x64')]['type']});_0x40fc32[_0x1f8a('0x61')](_0xae7a10,_0x744711),_0x34ba48[_0x1f8a('0x20')](_0x744711),_0xecaee2['registerAnnotation'](_0x744711);}[_0x1f8a('0x50')](_0x2421b5){const _0x5db8ad=this[_0x1f8a('0x46')][_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x21')),_0x44e857=this['editor'][_0x1f8a('0x11')][_0x1f8a('0x1c')](_0x1f8a('0x2b')),_0x18740b=this['_suggestionToController'][_0x1f8a('0x1c')](_0x2421b5),_0x392b5b=_0x18740b[_0x1f8a('0x64')],_0x3f4365=_0x44e857['getByInnerView'](_0x392b5b);_0x5db8ad['_unbindEditors'](_0x392b5b),_0x3f4365&&_0x44e857[_0x1f8a('0x12')](_0x3f4365),this[_0x1f8a('0x24')][_0x1f8a('0x32')](_0x2421b5),this['_viewToController'][_0x1f8a('0x32')](_0x392b5b),_0x18740b[_0x1f8a('0x9')]();}[_0x1f8a('0xc')](_0x612620){if(!_0x612620['isInContent']||!this[_0x1f8a('0x24')][_0x1f8a('0x5a')](_0x612620))return;const _0x3f5865=this[_0x1f8a('0x46')][_0x1f8a('0x11')]['get'](_0x1f8a('0x1a')),_0x24bc7c=this[_0x1f8a('0x24')][_0x1f8a('0x1c')](_0x612620),_0x3781a6=_0x612620[_0x1f8a('0x19')]();_0x24bc7c[_0x1f8a('0x64')]['descriptionParts']=_0x3f5865['_descriptionFactory']['getDescriptions'](_0x3781a6);}[_0x1f8a('0x9')](){for(const _0x3b1a18 of this[_0x1f8a('0x24')][_0x1f8a('0x25')]())this[_0x1f8a('0x50')](_0x3b1a18);for(const _0x2d2d56 of this[_0x1f8a('0x45')]['values']())_0x2d2d56[_0x1f8a('0x3c')]['destroy']();super[_0x1f8a('0x9')]();}}
|
|
23
|
+
const _0x488b=['filter','_annotationViews','toMany','has','delete','suggestionChanged','Discard\x20all\x20selected\x20suggestions','map','isInContent','SuggestionThreadView','view','suggestionUnloaded','isEnabled','getSuggestion','trackChanges','_updateController','arrowView','Annotations','Track\x20changes','type','button','addComment','_viewToController','lowest','getJoined','innerView','values','get','destroy','requires','_refreshActiveMarkers','buttonView','_createUIButton','locale','set','_descriptionFactory','commandName','descriptionParts','focus','trackChanges.disableComments','switchbutton','length','getAllAdjacentSuggestions','commentThread','Discard\x20all\x20suggestions','isDirty','discardSelectedSuggestions','getMarkers','activeMarkers','Accept\x20all\x20selected\x20suggestions','listenTo','_suggestionToController','add','commands','value','init','_handleControllerBuffer','model','reduce','bind','comments.maxCommentCharsWhenCollapsed','Accept\x20all\x20suggestions','_disableComments','getFirstRange','getRanges','getDescriptions','suggestionLoaded','addSourceCollector','change:activeAnnotations','getMarkerNames','discardAllSuggestions','TrackChangesEditing','editor','_bindAnnotationToEditors','trackChanges.SuggestionThreadView','CommentView','previous','CommentsUI','getByInnerView','hasSuggestion','change:previous','registerAnnotation','_unbindEditors','createAnnotationView','pluginName','size','EditorAnnotations','createCommentThreadController','isMultiRange','execute','_destroyController','mainView','acceptSelectedSuggestions','remove','acceptButton','actionView','isOn','config','push','editing','head','createAnnotation','CommentsRepository','from','acceptAllSuggestions','refreshSelectedViews','activeAnnotations','_initializeController','plugins','_handleSuggestionControllerDelayed'];(function(_0x6856ad,_0x488be2){const _0x490624=function(_0x386c6b){while(--_0x386c6b){_0x6856ad['push'](_0x6856ad['shift']());}};_0x490624(++_0x488be2);}(_0x488b,0x7f));const _0x4906=function(_0x6856ad,_0x488be2){_0x6856ad=_0x6856ad-0x0;let _0x490624=_0x488b[_0x6856ad];return _0x490624;};import{Plugin as _0x10c3d1}from'ckeditor5/src/core';import{Collection as _0x549d01}from'ckeditor5/src/utils';import{Model as _0xf307d2,SplitButtonView as _0x3f8b1d,createDropdown as _0x311a90,addListToDropdown as _0x164343}from'ckeditor5/src/ui';import{Users as _0x52b7bd,getDateTimeFormatter as _0x45b533,getAllMarkersDomElementsSorted as _0x12132d}from'ckeditor5-collaboration/src/collaboration-core';import _0x4171d2 from'./trackchangesediting';import _0x2a569d from'./ui/suggestioncontroller';import _0xc2d7d9 from'./ui/view/suggestionthreadview';import{getTranslation as _0x321fe9}from'./utils/common-translations';import _0x3ffd49 from'../theme/icons/track-changes.svg';export default class d extends _0x10c3d1{static get[_0x4906('0xc')](){return[_0x4171d2,_0x52b7bd,_0x4906('0x55'),'Annotations',_0x4906('0x45')];}static get[_0x4906('0x43')](){return'TrackChangesUI';}constructor(_0x1fa1e4){super(_0x1fa1e4),this['_suggestionToController']=new Map(),this[_0x4906('0x5')]=new Map(),this['_annotationViews']=new Map(),this[_0x4906('0x27')]=new Map();const _0x164c61=this['editor'][_0x4906('0x50')];_0x164c61['define'](_0x4906('0x39'),_0xc2d7d9),_0x164c61['define'](_0x4906('0x16'),!0x1),this[_0x4906('0x2d')]=_0x164c61[_0x4906('0xa')](_0x4906('0x16'));}[_0x4906('0x5c')](_0xadb617,_0x2de3a1){0x0===this['_handleControllerBuffer'][_0x4906('0x44')]&&setTimeout(()=>{for(const [_0x43c248,_0x27c628]of this['_handleControllerBuffer']){const _0x22f7ec=this['_suggestionToController'][_0x4906('0x60')](_0x43c248);_0x22f7ec||_0x27c628?_0x22f7ec&&_0x27c628&&this[_0x4906('0x49')](_0x43c248):this[_0x4906('0x5a')](_0x43c248);}this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')]('EditorAnnotations')[_0x4906('0x58')](),this[_0x4906('0xd')](),this[_0x4906('0x27')]['clear']();},0xa),this[_0x4906('0x27')][_0x4906('0x11')](_0xadb617,_0x2de3a1);}[_0x4906('0x26')](){const _0x18b06d=this['editor'],_0x133ad1=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')]('TrackChangesEditing'),_0x4e1677=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')]('Annotations'),_0x546ee4=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x45')),_0xb6b6c8=_0x18b06d[_0x4906('0x5b')][_0x4906('0xa')]('CommentsRepository');_0x18b06d['ui']['componentFactory'][_0x4906('0x23')](_0x4906('0x6b'),_0xfa5f54=>this[_0x4906('0xf')](_0xfa5f54)),_0x546ee4[_0x4906('0x32')](()=>{const _0x5c2a91=[];for(const [_0x49f9fc,_0x4f6849]of Array[_0x4906('0x56')](this[_0x4906('0x22')])){const _0x3ab8d5=_0x49f9fc[_0x4906('0x19')](),_0x21d88e=[];for(const _0x33af9a of _0x3ab8d5){if(!_0x33af9a[_0x4906('0x65')])continue;if(_0x33af9a[_0x4906('0x47')]){_0x21d88e[_0x4906('0x51')](..._0x33af9a[_0x4906('0x2f')]());continue;}const _0x2827b1=_0x33af9a[_0x4906('0x2e')]();if(_0x21d88e[_0x4906('0x18')]>0x0){const _0x47dc87=_0x21d88e[0x0][_0x4906('0x7')](_0x2827b1);if(_0x47dc87){_0x21d88e[0x0]=_0x47dc87;continue;}}_0x21d88e[_0x4906('0x51')](_0x2827b1);}_0x5c2a91['push']([_0x4f6849[_0x4906('0x67')],_0x21d88e]);}return _0x5c2a91;}),this[_0x4906('0x21')](_0x133ad1,_0x4906('0x31'),(_0x1acd91,_0x45e36d)=>{this[_0x4906('0x21')](_0x45e36d,_0x4906('0x3f'),(_0x5c0220,_0x49c610,_0x1c5d2d,_0x588215)=>{_0x45e36d[_0x4906('0x65')]&&(null==_0x1c5d2d?(this[_0x4906('0x6c')](_0x588215[_0x4906('0x53')]),this[_0x4906('0x5c')](_0x45e36d,!0x1)):(this['_updateController'](_0x1c5d2d[_0x4906('0x53')]),this[_0x4906('0x5c')](_0x45e36d,!0x0)));}),null===_0x45e36d[_0x4906('0x3b')]?this[_0x4906('0x5c')](_0x45e36d,!0x1):this[_0x4906('0x6c')](_0x45e36d[_0x4906('0x53')]);}),this[_0x4906('0x21')](_0x133ad1,_0x4906('0x68'),(_0x114e64,_0x5bd2c6,_0x18881f)=>{this['stopListening'](_0x5bd2c6,_0x4906('0x3f')),this[_0x4906('0x27')][_0x4906('0x61')](_0x5bd2c6);const _0x560bfe=_0x18881f?_0x18881f['head']:_0x5bd2c6,_0x5cc93e=this['_suggestionToController'][_0x4906('0xa')](_0x560bfe);null!==_0x18881f&&this[_0x4906('0x6c')](_0x560bfe),null===_0x18881f&&_0x5cc93e&&this[_0x4906('0x49')](_0x5bd2c6);}),this[_0x4906('0x21')](_0x133ad1,_0x4906('0x62'),(_0x22bbec,_0x10f850)=>{this[_0x4906('0x6c')](_0x10f850);}),this[_0x4906('0x21')](_0x4e1677,_0x4906('0x33'),()=>{this[_0x4906('0xd')]();}),this[_0x4906('0x21')](_0xb6b6c8,_0x4906('0x4'),(_0x57d25e,{threadId:_0x4881ae,isFromAdapter:_0x17d0b5})=>{if(_0x17d0b5||!_0x133ad1[_0x4906('0x3e')](_0x4881ae))return;const _0x698d45=_0x133ad1[_0x4906('0x6a')](_0x4881ae);this[_0x4906('0x22')]['get'](_0x698d45)['view'][_0x4906('0x15')]();},{'priority':_0x4906('0x6')});}['_refreshActiveMarkers'](){const _0x4d0629=this[_0x4906('0x37')]['plugins']['get']('Annotations'),_0x19504e=this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x36')),_0x3e6dbc=Array[_0x4906('0x56')](_0x4d0629[_0x4906('0x59')],_0x16f8ff=>_0x16f8ff[_0x4906('0x8')])[_0x4906('0x5d')](_0x3fe39d=>this[_0x4906('0x5')]['has'](_0x3fe39d)),_0x595c56=[];for(const _0x38aa9e of _0x3e6dbc){const _0x494084=this[_0x4906('0x5')]['get'](_0x38aa9e)[_0x4906('0x28')][_0x4906('0x19')]();_0x595c56[_0x4906('0x51')](..._0x494084[_0x4906('0x29')]((_0x3ecc21,_0x59a091)=>[..._0x3ecc21,..._0x59a091[_0x4906('0x34')]()],[]));}_0x19504e[_0x4906('0x1f')]=_0x595c56;}[_0x4906('0xf')](_0x5c4863){const _0x5293b4=_0x311a90(_0x5c4863,_0x3f8b1d),_0x5527c9=this[_0x4906('0x37')][_0x4906('0x24')]['get'](_0x4906('0x6b')),_0x1884e8=_0x321fe9(_0x5c4863,_0x4906('0x1'));_0x5293b4[_0x4906('0xe')][_0x4906('0x11')]({'tooltip':_0x1884e8,'label':_0x1884e8,'icon':_0x3ffd49}),_0x5293b4['buttonView'][_0x4906('0x2a')](_0x4906('0x4f'))['to'](_0x5527c9,_0x4906('0x25')),_0x5293b4[_0x4906('0xe')]['on']('execute',()=>{_0x5527c9[_0x4906('0x48')](),this['editor']['editing'][_0x4906('0x67')]['focus']();});const _0x38bf2a=new _0x549d01(),_0x359f0e=[{'type':_0x4906('0x17'),'model':{'withText':!0x0,'label':_0x1884e8,'commandName':_0x4906('0x6b')}},{'type':'separator'},{'type':_0x4906('0x3'),'model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x2c')),'commandName':_0x4906('0x57')}},{'type':'button','model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x20')),'commandName':_0x4906('0x4b')}},{'type':_0x4906('0x3'),'model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x1b')),'commandName':_0x4906('0x35')}},{'type':_0x4906('0x3'),'model':{'withText':!0x0,'label':_0x321fe9(_0x5c4863,_0x4906('0x63')),'commandName':_0x4906('0x1d')}}];for(const _0x1a0630 of _0x359f0e){let _0x578d1b={'type':'separator'};if(_0x1a0630[_0x4906('0x28')]){const _0x368b9e=new _0xf307d2(_0x1a0630[_0x4906('0x28')]),_0x23c555=this['editor']['commands'][_0x4906('0xa')](_0x368b9e['commandName']);_0x368b9e[_0x4906('0x2a')](_0x4906('0x4f'),_0x4906('0x69'))['to'](_0x23c555,'value',_0x4906('0x69')),_0x578d1b={'type':_0x1a0630['type'],'model':_0x368b9e};}_0x38bf2a['add'](_0x578d1b);}_0x164343(_0x5293b4,_0x38bf2a);const _0x39b30c=_0x359f0e[_0x4906('0x5d')](_0x5486d5=>null!=_0x5486d5['model'])[_0x4906('0x64')](_0x1961b9=>this[_0x4906('0x37')][_0x4906('0x24')][_0x4906('0xa')](_0x1961b9[_0x4906('0x28')][_0x4906('0x13')])),_0x2da691=_0x5293b4[_0x4906('0xe')];return _0x2da691[_0x4906('0x4e')]['unbind'](_0x4906('0x69')),_0x2da691[_0x4906('0x6d')]['unbind'](_0x4906('0x69')),_0x2da691[_0x4906('0x4e')][_0x4906('0x2a')](_0x4906('0x69'))['to'](_0x5527c9,_0x4906('0x69')),_0x2da691[_0x4906('0x6d')]['bind']('isEnabled')[_0x4906('0x5f')](_0x39b30c,_0x4906('0x69'),(..._0x2de38d)=>_0x2de38d['some'](_0x62737a=>_0x62737a)),_0x5293b4['on'](_0x4906('0x48'),_0x5ce26f=>{this[_0x4906('0x37')][_0x4906('0x48')](_0x5ce26f['source'][_0x4906('0x13')]),this[_0x4906('0x37')][_0x4906('0x52')][_0x4906('0x67')]['focus']();}),_0x5293b4;}[_0x4906('0x5a')](_0x153f57){const _0x4fcded=this['editor'],_0x46623a=_0x4fcded['config'],_0x459789=_0x4fcded['plugins'][_0x4906('0xa')](_0x4906('0x0')),_0x56c92f=_0x4fcded[_0x4906('0x5b')]['get'](_0x4906('0x55')),_0x205556=_0x4fcded[_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x45')),_0x2e022f=_0x4fcded['plugins']['get'](_0x52b7bd)['me'],_0x5b47f5=_0x46623a[_0x4906('0xa')](_0x4906('0x6b'))[_0x4906('0x66')],{CommentsListView:_0x4e0a58,CommentThreadInputView:_0x2b5330}=_0x4fcded[_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x3c'));let _0x50136f,_0x29c3ba;this[_0x4906('0x5e')]['has'](_0x153f57['id'])?(_0x29c3ba=this[_0x4906('0x5e')]['get'](_0x153f57['id']),_0x50136f=_0x29c3ba[_0x4906('0x4a')]):(_0x50136f=new _0x5b47f5(_0x4fcded[_0x4906('0x10')],_0x153f57,_0x2e022f,{'disableComments':this[_0x4906('0x2d')],'editorConfig':_0x46623a[_0x4906('0xa')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x46623a[_0x4906('0xa')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x46623a[_0x4906('0xa')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x46623a[_0x4906('0xa')](_0x4906('0x2b')),'formatDateTime':_0x45b533(_0x46623a[_0x4906('0xa')](_0x4906('0x10'))),'CommentView':_0x46623a[_0x4906('0xa')]('comments')[_0x4906('0x3a')],'CommentsListView':_0x4e0a58,'CommentThreadInputView':_0x2b5330}),_0x50136f[_0x4906('0x4d')]['on']('execute',()=>{_0x4fcded[_0x4906('0x52')][_0x4906('0x67')][_0x4906('0x15')]();}),_0x50136f['discardButton']['on'](_0x4906('0x48'),()=>{_0x4fcded[_0x4906('0x52')][_0x4906('0x67')]['focus']();}),_0x29c3ba=_0x459789[_0x4906('0x42')](this[_0x4906('0x37')][_0x4906('0x10')],_0x50136f),_0x29c3ba[_0x4906('0x2a')](_0x4906('0x1c'))['to'](_0x50136f,'isDirty'),_0x29c3ba[_0x4906('0x2a')](_0x4906('0x18'))['to'](_0x50136f),_0x29c3ba['bind'](_0x4906('0x2'))['to'](_0x50136f,_0x4906('0x2'),_0xea2b7a=>'suggestion-'+_0xea2b7a),this[_0x4906('0x5e')][_0x4906('0x11')](_0x153f57['id'],_0x29c3ba));const _0x5a9ff5=_0x56c92f[_0x4906('0x46')](_0x153f57[_0x4906('0x1a')],_0x50136f),_0x56391e=new _0x2a569d(_0x4fcded,_0x153f57,_0x50136f,_0x5a9ff5),_0x17206a=_0x153f57['getAllAdjacentSuggestions']()[_0x4906('0x5d')](_0x5b1f61=>_0x5b1f61[_0x4906('0x65')]);_0x50136f['descriptionParts']=_0x4fcded[_0x4906('0x5b')]['get']('TrackChangesEditing')[_0x4906('0x12')][_0x4906('0x30')](_0x17206a),this[_0x4906('0x22')][_0x4906('0x11')](_0x153f57,_0x56391e),this['_viewToController'][_0x4906('0x11')](_0x50136f,_0x56391e);const _0x894dfc=_0x459789[_0x4906('0x54')]({'view':_0x29c3ba,'target':()=>{const _0x3fa19b=[],_0x304cdd=_0x153f57['getAllAdjacentSuggestions']()[_0x4906('0x5d')](_0x2e9189=>_0x2e9189[_0x4906('0x65')]);for(const _0x1c2667 of _0x304cdd)_0x3fa19b[_0x4906('0x51')](..._0x1c2667[_0x4906('0x1e')]());return _0x12132d(_0x4fcded['editing'],_0x3fa19b);},'type':()=>'suggestion-'+_0x56391e[_0x4906('0x67')][_0x4906('0x2')]});_0x56c92f[_0x4906('0x38')](_0x50136f,_0x894dfc),_0x459789[_0x4906('0x23')](_0x894dfc),_0x205556[_0x4906('0x40')](_0x894dfc);}['_destroyController'](_0x22f27a){const _0x57117d=this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x55')),_0xc91f94=this[_0x4906('0x37')][_0x4906('0x5b')][_0x4906('0xa')](_0x4906('0x0')),_0x236854=this[_0x4906('0x22')]['get'](_0x22f27a),_0x4ab308=_0x236854[_0x4906('0x67')],_0xc02953=_0xc91f94[_0x4906('0x3d')](_0x4ab308);_0x57117d[_0x4906('0x41')](_0x4ab308),_0xc02953&&_0xc91f94[_0x4906('0x4c')](_0xc02953),this[_0x4906('0x22')]['delete'](_0x22f27a),this['_viewToController'][_0x4906('0x61')](_0x4ab308),_0x236854[_0x4906('0xb')]();}[_0x4906('0x6c')](_0x2c03ca){if(!_0x2c03ca[_0x4906('0x65')]||!this[_0x4906('0x22')][_0x4906('0x60')](_0x2c03ca))return;const _0x5ab308=this[_0x4906('0x37')]['plugins']['get'](_0x4906('0x36')),_0x4a840d=this[_0x4906('0x22')][_0x4906('0xa')](_0x2c03ca),_0x54e709=_0x2c03ca['getAllAdjacentSuggestions']();_0x4a840d[_0x4906('0x67')][_0x4906('0x14')]=_0x5ab308[_0x4906('0x12')][_0x4906('0x30')](_0x54e709);}[_0x4906('0xb')](){for(const _0x398634 of this[_0x4906('0x22')]['keys']())this['_destroyController'](_0x398634);for(const _0x35abcc of this[_0x4906('0x5e')][_0x4906('0x9')]())_0x35abcc[_0x4906('0x4a')][_0x4906('0xb')]();super[_0x4906('0xb')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f5f=['destroy','unbind','get','_editor','_pendingAction','PendingActions','commands','stopListening','getRanges','remove','isEnabled','canAccept','_acceptCommand','canDiscard','bind','commentThreadController','add','discardSuggestion','acceptSuggestion','model','_discardCommand','execute','PENDING_ACTION_SUGGESTION','_removePendingAction','listenTo','locale','isDirty','view','_setPendingAction','plugins'];(function(_0x5a6d08,_0x1f5ff7){const _0x49da17=function(_0x2be3a6){while(--_0x2be3a6){_0x5a6d08['push'](_0x5a6d08['shift']());}};_0x49da17(++_0x1f5ff7);}(_0x1f5f,0x1e0));const _0x49da=function(_0x5a6d08,_0x1f5ff7){_0x5a6d08=_0x5a6d08-0x0;let _0x49da17=_0x1f5f[_0x5a6d08];return _0x49da17;};import{ObservableMixin as _0x37f863}from'ckeditor5/src/utils';import{getTranslation as _0x10669d}from'../utils/common-translations';export default class Ft extends _0x37f863(){constructor(_0x457a60,_0x1af259,_0x5bb2a8,_0x49c05d){super(),this[_0x49da('0x13')]=_0x1af259,this['view']=_0x5bb2a8,this['commentThreadController']=_0x49c05d,this['_editor']=_0x457a60,this[_0x49da('0xc')]=_0x457a60[_0x49da('0x6')][_0x49da('0x2')]('acceptSuggestion'),this[_0x49da('0x14')]=_0x457a60[_0x49da('0x6')][_0x49da('0x2')](_0x49da('0x11')),this['view'][_0x49da('0xe')](_0x49da('0xa'))['to'](this['_acceptCommand'],this['_discardCommand'],(_0x488810,_0x35fe27)=>_0x488810||_0x35fe27),this['view'][_0x49da('0xe')]('canAccept')['to'](this[_0x49da('0xc')],'isEnabled',_0x255ff3=>_0x255ff3&&this[_0x49da('0x3')][_0x49da('0x13')]['canEditAt'](_0x1af259[_0x49da('0x8')]())),this[_0x49da('0x1b')][_0x49da('0xe')]('canDiscard')['to'](this[_0x49da('0x14')],_0x49da('0xa'),_0x309673=>_0x309673&&this[_0x49da('0x3')]['model']['canEditAt'](_0x1af259[_0x49da('0x8')]())),this[_0x49da('0x4')]=null,_0x5bb2a8[_0x49da('0x1a')]&&this['_setPendingAction'](),this['listenTo'](_0x5bb2a8,'acceptSuggestion',()=>this[_0x49da('0x12')]()),this[_0x49da('0x18')](_0x5bb2a8,_0x49da('0x11'),()=>this['discardSuggestion']()),this['listenTo'](_0x5bb2a8,'change:isDirty',()=>{_0x5bb2a8[_0x49da('0x1a')]?this[_0x49da('0x1c')]():this[_0x49da('0x17')]();});}[_0x49da('0x12')](){this[_0x49da('0xc')][_0x49da('0x15')](this[_0x49da('0x13')]['id']);}[_0x49da('0x11')](){this[_0x49da('0x14')]['execute'](this[_0x49da('0x13')]['id']);}[_0x49da('0x0')](){this['view'][_0x49da('0x1')](_0x49da('0xa')),this[_0x49da('0x1b')][_0x49da('0x1')](_0x49da('0xb')),this[_0x49da('0x1b')][_0x49da('0x1')](_0x49da('0xd')),this[_0x49da('0x7')](),this[_0x49da('0xf')][_0x49da('0x0')](),this[_0x49da('0x4')]&&this[_0x49da('0x17')]();}[_0x49da('0x1c')](){const _0x49a05f=_0x10669d(this[_0x49da('0x3')][_0x49da('0x19')],_0x49da('0x16'));this[_0x49da('0x4')]=this[_0x49da('0x3')][_0x49da('0x1d')][_0x49da('0x2')]('PendingActions')[_0x49da('0x10')](_0x49a05f);}['_removePendingAction'](){null!==this['_pendingAction']&&this[_0x49da('0x3')][_0x49da('0x1d')][_0x49da('0x2')](_0x49da('0x5'))[_0x49da('0x9')](this[_0x49da('0x4')]),this[_0x49da('0x4')]=null;}}
|