@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230816.0 → 0.0.0-nightly-20230817.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 _0x2928=['isObject','group','creator','position','options','_mergeNestedSuggestions','createdAt','markMultiRangeDeletion','ready','_checkSuggestionCorrectness','ck-suggestion-marker-','multi','_addSuggestionMarker','filter','isMultiRange','markerName','rootName','_registerDefaultCallbacks','editing','formatBlock:','createRange','subType','_descriptionFactory','containsItem','stop','howMany','_suggestionFactory','reconvertMarker','createElement','catch','after','track-changes-user-not-found','getRange','trackChanges.trackFormatChanges','root','originalSuggestionId','setSelection','removeAttribute','markMultiRangeBlockFormat','pluginName','nodeBefore','suggestionLoaded','insertContent','isSelectable','TrackChangesEditing','return','CommentsRepository','createPositionAfter','toJSON','insert','containsRangeInObject','push','buildSuggestion','createRangeIn','widget','conversion','_isForcedDefaultExecutionBlock','addHighlight','config','_defaultCallbacks','PendingActions','never','schema','addMarker:suggestion:formatBlock','selection','addCommentThread','isExternal','bindElementToMarker','includes','_trackFormatChanges','item','formatBlock','backward','track-changes-adapter-missing-getsuggestion','_suggestionState','start','_setSuggestionRange','enqueueChange','data-suggestion','authorName','isAfter','fire','getMultiRangeId','formatInline:accept','model','size','every','getCustomProperty','some','dataDowncast','removeComment','hasCommentThread','formatBlock:discard','always','_handleNewSuggestionMarker','_addThreadToSuggestion','formatInline:discard','getFirstMarker','head','_updateSuggestionData','from','getMarkers','getUser','isEqual','update:suggestion','differ','hasComments','_adapter','next','splitPosition','$graveyard','add','formatInline','then','getNearestSelectionRange','_saved','isRemovable','_commentsRepository','acceptSuggestion','_editor','markerReady','ck-suggestion-marker','isInContent','forceDefaultExecution','name','markerNameToElements','suggestionChanged','change','_rangeIsInLocalUserInsertion','length','suggestion-type','mapper','getLastMatchingPosition','commands','removeMarkers','split','documentSelection','unbindElementFromMarkerName','deletion:accept','trackChanges.mergeNestedSuggestions','addMarkerName','moveTargetPosition','activeMarkers','_model','map','suggestion:','author','ck-suggestion-marker--active','setTo','data','get','highest','getFirstRange','_breakSuggestionMarker','listenTo','_findSuggestions','applyOperation','createPositionAt','track-changes-suggestion-data-mismatch','containsPosition','formatInline:chain','element','has','enableReadOnlyMode','addSuggestionData','ck-suggestion-marker-formatBlock','$marker','getSuggestionCallback','acceptAllSuggestions','_splitMarkerName','values','registerPostFixer','trackChanges','insertion:accept','splice','join','discardSelectedSuggestions','type','unbind','registerCustomCallback','previous','targetPosition','discardSuggestion','accept','isNextTo','authoredAt','value','document','removed','discardAllSuggestions','plugins','getSuggestion','markInsertion','markers','_refreshSuggestionsChain','low','addMarker:suggestion','_enabledCommands','createSelection','elementEnd','high','sort','remove','for','getItems','enableCommand','init','change:_saved','_createSuggestion','clone','getAttribute','@external','_onDiscard','commentThread','removeMarker','resolve','removeClass','containsRange','deletion:join','_joinSuggestions','forward','_setSuggestionData','formatInline:','collaboration.channelId','isIntersectingWithRange','getDifference','showSuggestionHighlights','newRange','execute','isLocal','isUndo','deletion','multipleBlocks','upcast','setAttribute','normal','isTouching','isLimit','insertion:chain','deletion:chain','substr','nodeAfter','updateMarker','trackChangesCommand','updateSuggestion','rejected','addComment','locale','consumable','chain','getIntersection','dataReady','discard','markMultiRangeInsertion','commandName','removeMarker:suggestion:formatBlock','isBlock','track-changes-suggestion-not-found','getChangedMarkers','getAllAdjacentSuggestions','deleteContent','getRanges','getShiftedBy','detach','default','notReady','_joinWithAdjacentSuggestions','acceptSelectedSuggestions','addClass','change:data','writer','editor','getSuggestions','track-changes-command-not-found','Users','elementStart','define','insertion','markDeletion','editingDowncast','dataToMarker','error-saving-suggestion-data-suggestion-discarded','refresh','isAtEnd','skipNestingCheck','getWalker','delete','oldRange','addSuggestion','addRange','insertion:','getCommentThread','deletion:','isCollapsed','_getAuthorFromId','batch','adapter','isBefore','formatGroupId','markInlineFormat','external:','formatBlock:accept','isDocumentOperation','createPositionBefore','markerToHighlight','consume','PENDING_ACTION_SUGGESTION','isOwn','attributes','set','suggestion','_removeSuggestion','end','move','fromRange','parent','suggestionUnloaded','_cutOutSuggestionMarker','getAncestors','_suggestions','range','clear','_getSuggestionData','change:activeMarkers','_customCallbacks','isInsideObject'];(function(_0x276c62,_0x2928f7){const _0x7e0b26=function(_0x1f5715){while(--_0x1f5715){_0x276c62['push'](_0x276c62['shift']());}};_0x7e0b26(++_0x2928f7);}(_0x2928,0x109));const _0x7e0b=function(_0x276c62,_0x2928f7){_0x276c62=_0x276c62-0x0;let _0x7e0b26=_0x2928[_0x276c62];return _0x7e0b26;};import{Plugin as _0x321376,PendingActions as _0x520fbc}from'ckeditor5/src/core';import{LiveRange as _0x491aa7}from'ckeditor5/src/engine';import{CKEditorError as _0x58fb70,uid as _0x1862e6,priorities as _0xf969cc,logWarning as _0x2f4b48}from'ckeditor5/src/utils';import{toWidget as _0x37d5c8}from'ckeditor5/src/widget';import{Users as _0x3bd855,hashObject as _0x1685bc}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ab93a from'./commands/trackchangescommand';import _0x3b4901 from'./commands/acceptsuggestioncommand';import _0x433a42 from'./commands/discardsuggestioncommand';import _0x28e3b2 from'./commands/executeonallsuggestionscommand';import _0x16f9ac from'./commands/executeonselectedsuggestionscommand';import _0x232d62 from'./suggestion';import _0x929de5 from'./suggestiondescriptionfactory';import _0x46390a from'./integrations/alignment';import _0x5bc39d from'./integrations/basicstyles';import _0x3fabc7 from'./integrations/blockquote';import _0x5c8300 from'./integrations/ckbox';import _0x1336c0 from'./integrations/codeblock';import _0x5ebef3 from'./integrations/comments';import _0x501c8d from'./integrations/deletecommand';import _0x51bd62 from'./integrations/documentlist';import _0x13d70b from'./integrations/entercommand';import _0x84dcad from'./integrations/findandreplace';import _0x21b2af from'./integrations/font';import _0xa36196 from'./integrations/formatpainter';import _0x1f25b3 from'./integrations/heading';import _0x1aae36 from'./integrations/highlight';import _0x2813b1 from'./integrations/horizontalline';import _0x15fbd0 from'./integrations/htmlembed';import _0x1c9fb3 from'./integrations/image';import _0x1c9f51 from'./integrations/imagereplace';import _0x2ba43c from'./integrations/importword';import _0x16afbd from'./integrations/indent';import _0x28a733 from'./integrations/inputcommand';import _0x3fdfa3 from'./integrations/link';import _0x253459 from'./integrations/list';import _0x9d363 from'./integrations/listproperties';import _0x1cdd9f from'./integrations/mediaembed';import _0x47d786 from'./integrations/mention';import _0x498742 from'./integrations/pagebreak';import _0x20b1f8 from'./integrations/paragraph';import _0x4436ef from'./integrations/removeformat';import _0x47fb5a from'./integrations/restrictededitingmode';import _0x22659d from'./integrations/shiftentercommand';import _0x29deed from'./integrations/standardeditingmode';import _0x40b576 from'./integrations/style';import _0x4e4e61 from'./integrations/table';import _0x4b7877 from'./integrations/tablemergesplit';import _0x367a89 from'./integrations/tableheadings';import _0x14e9e3 from'./integrations/tableclipboard';import _0x31d3ab from'./integrations/tablecolumnresize';import _0x1051a8 from'./integrations/template';import _0x46015f from'./integrations/tableofcontents';import _0x5b2246 from'./integrations/title';import _0xe3760a from'./integrations/undo';import{getTranslation as _0x25f2c4}from'./utils/common-translations';import _0x3ddec0 from'./integrations/tablecaption';import _0x98523b from'./integrations/documentlistproperties';import _0x14be67 from'./integrations/tableproperties';export default class p extends _0x321376{static get['requires'](){return['CommentsRepository',_0x3bd855,_0x520fbc,_0x46390a,_0x5bc39d,_0x3fabc7,_0x5c8300,_0x1336c0,_0x5ebef3,_0x501c8d,_0x51bd62,_0x98523b,_0x13d70b,_0x84dcad,_0x21b2af,_0xa36196,_0x1f25b3,_0x1aae36,_0x2813b1,_0x15fbd0,_0x1c9fb3,_0x1c9f51,_0x2ba43c,_0x16afbd,_0x28a733,_0x3fdfa3,_0x253459,_0x9d363,_0x1cdd9f,_0x47d786,_0x498742,_0x20b1f8,_0x4436ef,_0x47fb5a,_0x22659d,_0x29deed,_0x40b576,_0x4e4e61,_0x4b7877,_0x367a89,_0x3ddec0,_0x14e9e3,_0x31d3ab,_0x46015f,_0x14be67,_0x1051a8,_0x5b2246,_0xe3760a];}static get[_0x7e0b('0x64')](){return _0x7e0b('0x69');}constructor(_0x2d1cf4){function _0x10c953(_0x2bb088){return _0x2bb088[_0x7e0b('0xcd')](_0x4309aa=>String['fromCharCode'](_0x4309aa))[_0x7e0b('0xec')]('');}super(_0x2d1cf4),this[_0x7e0b('0x2c')]('activeMarkers',[]),this['on'](_0x7e0b('0x3a'),(_0x53208a,_0x46fd8b,_0xbf4de6,_0x14352d)=>{this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](()=>{for(const _0x101118 of[..._0x14352d,..._0xbf4de6])this[_0x7e0b('0xcc')][_0x7e0b('0xfe')][_0x7e0b('0xdf')](_0x101118)&&_0x2d1cf4[_0x7e0b('0x4f')][_0x7e0b('0x58')](_0x101118);});}),this[_0x7e0b('0x53')]=new _0x929de5(this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0x7b')],this[_0x7e0b('0x6')][_0x7e0b('0x134')]),this['_adapter']=null,this[_0x7e0b('0x57')]=new Dt(this['editor']),this[_0x7e0b('0x36')]=new Map(),this['_commentsRepository']=_0x2d1cf4[_0x7e0b('0xfb')]['get'](_0x7e0b('0x6b')),this['_enabledCommands']=new Set(),this[_0x7e0b('0xcc')]=this[_0x7e0b('0x6')][_0x7e0b('0x91')],this[_0x7e0b('0x87')]=new WeakMap(),this[_0x7e0b('0x75')]=!0x1,_0x2d1cf4[_0x7e0b('0x77')]['define']('trackChanges.trackFormatChanges',_0x7e0b('0x145')),this[_0x7e0b('0x82')]=_0x2d1cf4[_0x7e0b('0x77')][_0x7e0b('0xd3')](_0x7e0b('0x5e')),_0x2d1cf4[_0x7e0b('0x77')][_0x7e0b('0xb')](_0x7e0b('0xc8'),!0x0),this[_0x7e0b('0x42')]=_0x2d1cf4[_0x7e0b('0x77')]['get']('trackChanges.mergeNestedSuggestions'),this[_0x7e0b('0x130')]=new _0x3ab93a(_0x2d1cf4,this['_enabledCommands']),this[_0x10c953([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10c953([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x32]);}[_0x7e0b('0x10b')](){const _0x3db3e4=this['editor'];_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0xe'))[_0x7e0b('0x27')]({'model':'suggestion','view':_0x4f3c62=>{const {id:_0x1432aa,type:_0x5142c5}=this['_splitMarkerName'](_0x4f3c62['markerName']),_0x2e185a=[_0x7e0b('0xb6'),_0x7e0b('0x47')+_0x5142c5];let _0x570db1=0xbb8;return this[_0x7e0b('0xcb')][_0x7e0b('0x81')](_0x4f3c62['markerName'])&&(_0x2e185a['push'](_0x7e0b('0xd0')),_0x570db1=0xbc2),'deletion'==_0x5142c5&&(_0x570db1+=0x5),{'classes':_0x2e185a,'attributes':{'data-suggestion':_0x1432aa},'priority':_0x570db1};}}),_0x3db3e4['conversion'][_0x7e0b('0x108')](_0x7e0b('0x96'))[_0x7e0b('0xac')](_0x4ce6fa=>{_0x4ce6fa['on'](_0x7e0b('0x101'),(_0x517b73,_0x472d83,_0x38af86)=>{if(!_0x38af86['options'][_0x7e0b('0x11f')])return;const _0x1ca598=_0x472d83['item'];if(!_0x1ca598)return;const _0x40c0b3=_0x38af86[_0x7e0b('0xc0')]['toViewElement'](_0x1ca598);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')][_0x7e0b('0x3d')](_0x1ca598)&&_0x40c0b3&&!_0x40c0b3[_0x7e0b('0x94')](_0x7e0b('0x73'))&&_0x40c0b3['is']('containerElement')&&_0x37d5c8(_0x40c0b3,_0x38af86['writer']);},{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x74')]['for'](_0x7e0b('0x96'))[_0x7e0b('0x27')]({'model':_0x7e0b('0x2d'),'view':(_0x21adf7,_0x2181a7)=>{if(!_0x2181a7[_0x7e0b('0x41')][_0x7e0b('0x11f')])return null;const {type:_0x3b0ad1}=this[_0x7e0b('0xe6')](_0x21adf7[_0x7e0b('0x4c')]);return{'classes':['ck-suggestion-marker',_0x7e0b('0x47')+_0x3b0ad1],'priority':0xbb8};}});const _0x41f028=({showActiveMarkers:_0x455852=!0x0}={})=>(_0x4c2214,_0x3a04f7,_0x10f6fc)=>{if(!_0x3a04f7[_0x7e0b('0x83')])return;if(_0x3a04f7[_0x7e0b('0x83')]['is'](_0x7e0b('0x7d')))return void _0x10f6fc[_0x7e0b('0x135')][_0x7e0b('0x28')](_0x3a04f7[_0x7e0b('0x83')],_0x4c2214[_0x7e0b('0xb9')]);const _0x3ba81f=_0x10f6fc[_0x7e0b('0xc0')]['toViewElement'](_0x3a04f7[_0x7e0b('0x83')]);if(!(_0x3a04f7['item']['is'](_0x7e0b('0xde'))&&_0x3db3e4[_0x7e0b('0x91')]['schema'][_0x7e0b('0x13d')](_0x3a04f7['item'])&&!_0x3ba81f[_0x7e0b('0x94')](_0x7e0b('0x76'))))return;const {id:_0x3b99b2}=this[_0x7e0b('0xe6')](_0x3a04f7[_0x7e0b('0x4c')]);_0x10f6fc['writer']['addClass']([_0x7e0b('0xb6'),_0x7e0b('0xe2')],_0x3ba81f),_0x10f6fc[_0x7e0b('0x5')][_0x7e0b('0x127')](_0x7e0b('0x8b'),_0x3b99b2,_0x3ba81f),_0x10f6fc[_0x7e0b('0xc0')][_0x7e0b('0x80')](_0x3ba81f,_0x3a04f7[_0x7e0b('0x4c')]),_0x455852&&(this[_0x7e0b('0xcb')][_0x7e0b('0x81')](_0x3a04f7['markerName'])?_0x10f6fc['writer'][_0x7e0b('0x3')](_0x7e0b('0xd0'),_0x3ba81f):_0x10f6fc['writer'][_0x7e0b('0x115')](_0x7e0b('0xd0'),_0x3ba81f));for(const _0x599772 of _0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x72')](_0x3a04f7[_0x7e0b('0x83')])[_0x7e0b('0x109')]())_0x10f6fc['consumable'][_0x7e0b('0x28')](_0x599772,_0x4c2214[_0x7e0b('0xb9')]);_0x10f6fc[_0x7e0b('0x135')][_0x7e0b('0x28')](_0x3a04f7['item'],_0x4c2214['name']);};_0x3db3e4['conversion'][_0x7e0b('0x108')](_0x7e0b('0x96'))[_0x7e0b('0xac')](_0x55c3ae=>{_0x55c3ae['on'](_0x7e0b('0x7c'),(_0x6ff516,_0x12bb06,_0x1098c9)=>{_0x1098c9['options'][_0x7e0b('0x11f')]&&_0x41f028({'showActiveMarkers':!0x1})(_0x6ff516,_0x12bb06,_0x1098c9);},{'priority':_0x7e0b('0xd4')});}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x96'))['markerToData']({'model':_0x7e0b('0x2d'),'view':(_0x1a610b,_0x2459d7)=>_0x2459d7[_0x7e0b('0x41')][_0x7e0b('0x11f')]?null:{'group':_0x7e0b('0x2d'),'name':_0x1a610b[_0x7e0b('0x12d')](0xb)}}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x126'))['elementToElement']({'view':{'name':_0x7e0b('0x2d'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5b8e34,{writer:_0x8d5bc})=>{let _0x3ac5aa='suggestion:'+_0x5b8e34[_0x7e0b('0x10f')](_0x7e0b('0xbf'))+':'+_0x5b8e34['getAttribute']('id');return _0x5b8e34['getAttribute']('marker-count')&&(_0x3ac5aa+=':'+_0x5b8e34[_0x7e0b('0x10f')]('marker-count')),_0x8d5bc[_0x7e0b('0x59')](_0x7e0b('0xe3'),{'data-name':_0x3ac5aa});}}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0x126'))[_0x7e0b('0xf')]({'view':'suggestion'}),_0x3db3e4[_0x7e0b('0x74')][_0x7e0b('0x108')](_0x7e0b('0xe'))[_0x7e0b('0xac')](_0x379d06=>{_0x379d06['on'](_0x7e0b('0x7c'),_0x41f028(),{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x74')]['for']('editingDowncast')[_0x7e0b('0xac')](_0x546f4b=>{_0x546f4b['on'](_0x7e0b('0x13c'),(_0x249c24,_0x3f78b8,_0x5b6170)=>{const _0x4683ee=_0x5b6170[_0x7e0b('0xc0')][_0x7e0b('0xba')](_0x3f78b8[_0x7e0b('0x4c')]);if(_0x4683ee)for(const _0x27038a of _0x4683ee)_0x27038a[_0x7e0b('0x94')](_0x7e0b('0x76'))||(_0x5b6170['writer']['removeClass']([_0x7e0b('0xb6'),'ck-suggestion-marker-formatBlock',_0x7e0b('0xd0')],_0x27038a),_0x5b6170[_0x7e0b('0x5')][_0x7e0b('0x62')]('data-suggestion',_0x27038a),_0x5b6170[_0x7e0b('0xc0')][_0x7e0b('0xc6')](_0x27038a,_0x3f78b8[_0x7e0b('0x4c')]));},{'priority':_0x7e0b('0x105')});}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xe8')](_0x68975=>{let _0x34306d=!0x1;const _0x5f3864=Array['from'](_0x3db3e4[_0x7e0b('0x91')]['document']['differ'][_0x7e0b('0x13f')]()),_0x304d04=new Set();for(const {name:_0x3e2fc0,data:_0x4206a2}of _0x5f3864){const {group:_0x343103,type:_0x22e4f9,id:_0x3680b8}=this['_splitMarkerName'](_0x3e2fc0);if(_0x7e0b('0x2d')!==_0x343103)continue;const _0x32b5aa=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x3680b8);if(null!=_0x4206a2['newRange']){_0x7e0b('0xad')==_0x22e4f9&&(_0x34306d=_0x34306d||Mt(_0x4206a2[_0x7e0b('0x120')],_0x3e2fc0,_0x68975,_0x3db3e4['model'][_0x7e0b('0x7b')]));if(_0x4206a2[_0x7e0b('0x120')][_0x7e0b('0x1c')]||_0x7e0b('0xab')==_0x4206a2[_0x7e0b('0x120')][_0x7e0b('0x5f')][_0x7e0b('0x4d')]||_0x7e0b('0x84')==_0x22e4f9&&!Nt(_0x4206a2[_0x7e0b('0x120')])||'deletion'==_0x22e4f9&&!(!_t(_0x53f75b=_0x4206a2[_0x7e0b('0x120')])&&!function(_0x54668f){return _0x54668f['start'][_0x7e0b('0x32')]==_0x54668f[_0x7e0b('0x2f')]['nodeBefore']&&_0x54668f['start'][_0x7e0b('0x12')];}(_0x53f75b)))_0x68975[_0x7e0b('0x113')](_0x3e2fc0),_0x34306d=!0x0;else{if(!_0x32b5aa||!_0x32b5aa[_0x7e0b('0xb7')])continue;_0x304d04[_0x7e0b('0xac')](_0x32b5aa);}}}var _0x53f75b;return _0x304d04[_0x7e0b('0x92')]>0x0&&(_0x34306d=!!this[_0x7e0b('0x1')](_0x304d04)||_0x34306d),_0x34306d;}),_0x3db3e4['model'][_0x7e0b('0xf8')][_0x7e0b('0xe8')](_0x3d829d=>{let _0x5d128f=!0x1;for(const _0x1279db of _0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xa6')]['getChanges']()){if(_0x7e0b('0x6e')!=_0x1279db[_0x7e0b('0xee')])continue;const _0x214359=_0x1279db['position']['getShiftedBy'](_0x1279db[_0x7e0b('0xbe')]);if(_0x214359['isAtEnd'])for(const _0x36ce40 of this[_0x7e0b('0x36')][_0x7e0b('0xe7')]()){if(_0x36ce40['isMultiRange']||!_0x36ce40[_0x7e0b('0xb7')])continue;if(_0x7e0b('0x84')!=_0x36ce40[_0x7e0b('0xee')])continue;const _0x17595a=_0x36ce40[_0x7e0b('0xd5')]();if(_0x17595a['start'][_0x7e0b('0x32')]!=_0x17595a[_0x7e0b('0x2f')][_0x7e0b('0x32')]&&_0x17595a['end'][_0x7e0b('0xa4')](_0x1279db[_0x7e0b('0x40')])){const _0x455508=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x17595a['start'],_0x214359);_0x3d829d['updateMarker'](_0x36ce40[_0x7e0b('0x9e')](),{'range':_0x455508}),_0x5d128f=!0x0;}}}return _0x5d128f;}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xfe')]['on'](_0x7e0b('0xa5'),(_0x59db46,_0x286fbc,_0x4ce649)=>{if(null==_0x4ce649){const {id:_0x1144e1}=this['_splitMarkerName'](_0x286fbc[_0x7e0b('0xb9')]),_0x5b1f65=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x1144e1);_0x5b1f65&&_0x5b1f65[_0x7e0b('0xc9')](_0x286fbc[_0x7e0b('0xb9')]);}}),_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')]['on'](_0x7e0b('0x4'),()=>{const _0x418fd2=Array[_0x7e0b('0xa1')](_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xf8')][_0x7e0b('0xa6')][_0x7e0b('0x13f')]())['filter'](_0xad5cd2=>_0x7e0b('0x2d')===this[_0x7e0b('0xe6')](_0xad5cd2[_0x7e0b('0xb9')])[_0x7e0b('0x3e')]);if(0x0===_0x418fd2[_0x7e0b('0xbe')])return;_0x418fd2[_0x7e0b('0x106')]((_0x5aafa4,_0x49912f)=>{const _0x8c6685=_0x5aafa4['data'][_0x7e0b('0x16')],_0x4321f5=_0x49912f['data'][_0x7e0b('0x16')];return null===_0x8c6685&&null===_0x4321f5?0x0:null===_0x8c6685&&null!==_0x4321f5?-0x1:null!==_0x8c6685&&null===_0x4321f5?0x1:_0x8c6685['start']['isBefore'](_0x4321f5[_0x7e0b('0x88')])?-0x1:0x1;});const _0x446e7b=new Set(),_0x43aaef=new Set();for(const {name:_0x5f19f4,data:_0x4c4081}of _0x418fd2){const {id:_0x4425c3}=this[_0x7e0b('0xe6')](_0x5f19f4);if(null===_0x4c4081[_0x7e0b('0x16')]){const _0x4ccecb=this[_0x7e0b('0x9b')](_0x5f19f4);_0x43aaef[_0x7e0b('0xac')](_0x4ccecb);}else{const _0xaaa503=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x4425c3);null!==_0x4c4081['newRange']||_0xaaa503[_0x7e0b('0xb7')]?(_0x446e7b[_0x7e0b('0xac')](_0xaaa503[_0x7e0b('0x9f')]),_0x43aaef['add'](_0xaaa503)):this[_0x7e0b('0x2e')](_0xaaa503);}}_0x43aaef['size']>0x0&&this[_0x7e0b('0xff')](_0x43aaef);for(const _0x21ccfb of _0x446e7b)this[_0x7e0b('0x8e')](_0x7e0b('0xbb'),_0x21ccfb);}),_0x3db3e4['model']['on'](_0x7e0b('0xd9'),(_0x4398bd,_0x59c986)=>{const _0x383316=_0x59c986[0x0];if(!this[_0x7e0b('0x36')]['size'])return;if(!_0x383316[_0x7e0b('0x25')])return;if(_0x383316[_0x7e0b('0x1e')][_0x7e0b('0x123')]||!_0x383316[_0x7e0b('0x1e')][_0x7e0b('0x122')])return;let _0x124e73,_0x1074e0;switch(_0x383316[_0x7e0b('0xee')]){case'insert':_0x124e73=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xda')](_0x383316[_0x7e0b('0x40')]),_0x1074e0=_0x124e73['getShiftedBy'](_0x383316[_0x7e0b('0x56')]);break;case _0x7e0b('0xc4'):_0x124e73=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xaa')]),_0x1074e0=_0x3db3e4['model'][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xca')]);break;case _0x7e0b('0x30'):_0x124e73=_0x3db3e4['model'][_0x7e0b('0xda')](_0x383316[_0x7e0b('0xf2')]),_0x1074e0=_0x124e73[_0x7e0b('0x143')](_0x383316[_0x7e0b('0x56')]);break;default:return;}const _0x3d051c=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x124e73,_0x1074e0);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const {suggestion:_0x2f2bfb,meta:_0x71c7b}of this['_findSuggestions'](_0x3d051c)){if(_0x2f2bfb['isMultiRange'])continue;if(_0x7e0b('0xad')==_0x2f2bfb[_0x7e0b('0xee')])continue;const _0x26c107=_0x2f2bfb['data']&&_0x2f2bfb[_0x7e0b('0xd2')][_0x7e0b('0x125')];(_0x7e0b('0x84')!=_0x2f2bfb['type']||_0x7e0b('0xc4')==_0x383316['type']&&!_0x26c107)&&(_0x71c7b[_0x7e0b('0x6f')]||_0x7e0b('0xc')==_0x2f2bfb['type']&&_0x71c7b[_0x7e0b('0x2a')]||_0x2f2bfb['getFirstRange']()[_0x7e0b('0x116')](_0x3d051c)&&this[_0x7e0b('0xd6')](_0x2f2bfb,_0x124e73,_0x1074e0));}});},{'priority':'lowest'}),_0x3db3e4[_0x7e0b('0x91')]['on'](_0x7e0b('0x141'),(_0x3dc275,_0x23ef7a)=>{const _0x581212=_0x23ef7a[0x0],_0x624f7a=_0x23ef7a[0x1];if(_0x624f7a&&_0x624f7a[_0x7e0b('0xb8')])return;if(this[_0x7e0b('0x75')])return;if(!this[_0x7e0b('0x130')][_0x7e0b('0xf7')])return;if(_0x581212[_0x7e0b('0x1c')])return;const _0x2cfdbe=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')],{start:_0x5db3fd,end:_0x181faa}=_0x581212[_0x7e0b('0xd5')](),_0x54954d=_0x5db3fd[_0x7e0b('0x12e')]&&_0x2cfdbe['isLimit'](_0x5db3fd[_0x7e0b('0x12e')])?null:_0x2cfdbe[_0x7e0b('0xaf')](_0x5db3fd,_0x7e0b('0x119')),_0x2841dd=_0x181faa[_0x7e0b('0x65')]&&_0x2cfdbe[_0x7e0b('0x12a')](_0x181faa[_0x7e0b('0x65')])?null:_0x2cfdbe[_0x7e0b('0xaf')](_0x181faa,_0x7e0b('0x85')),_0x140e06=_0x3db3e4['model'][_0x7e0b('0x51')](_0x54954d?_0x54954d[_0x7e0b('0x88')]:_0x5db3fd,_0x2841dd?_0x2841dd['end']:_0x181faa);_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](_0xe243d7=>{this[_0x7e0b('0xd')](_0x140e06);const _0x3fe944=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x7b')][_0x7e0b('0xaf')](_0x140e06[_0x7e0b('0x88')]);_0x581212['is'](_0x7e0b('0xc5'))?_0xe243d7[_0x7e0b('0x61')](_0x3fe944):_0x581212[_0x7e0b('0xd1')](_0x3fe944);}),_0x3dc275[_0x7e0b('0x55')]();},{'priority':_0xf969cc[_0x7e0b('0x128')]+0xa}),_0x3db3e4[_0x7e0b('0x91')]['on'](_0x7e0b('0x67'),(_0x2b7587,_0x53d36c)=>{const _0xfa6446=_0x53d36c[_0x53d36c[_0x7e0b('0xbe')]-0x1];_0xfa6446&&_0xfa6446['forceDefaultExecution']||this[_0x7e0b('0x75')]||this[_0x7e0b('0x130')][_0x7e0b('0xf7')]&&(_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{let _0x310459=_0x3db3e4['model'][_0x7e0b('0x67')](_0x53d36c[0x0],_0x53d36c[0x1],_0x53d36c[0x2],{'forceDefaultExecution':!0x0});if(!_0x310459)return;_0x2b7587[_0x7e0b('0x6a')]=_0x310459[_0x7e0b('0x10e')]();const _0x28aead=_0x310459[_0x7e0b('0x2f')][_0x7e0b('0x65')],_0x7ca8d4=_0x3db3e4['model']['schema'];_0x28aead&&_0x7ca8d4[_0x7e0b('0x13d')](_0x28aead)&&!_0x7ca8d4['isObject'](_0x28aead)&&(_0x310459=_0x3db3e4[_0x7e0b('0x91')][_0x7e0b('0x51')](_0x310459[_0x7e0b('0x88')],_0x3db3e4[_0x7e0b('0x91')]['createPositionAt'](_0x28aead,_0x7e0b('0x2f')))),this[_0x7e0b('0xfd')](_0x310459);}),_0x2b7587['stop']());},{'priority':_0x7e0b('0x105')}),this[_0x7e0b('0x6')][_0x7e0b('0xc2')]['add'](_0x7e0b('0xe9'),this[_0x7e0b('0x130')]),this[_0x7e0b('0x10a')](_0x7e0b('0xe9'));const _0x2d6d1e=new _0x3b4901(_0x3db3e4,this[_0x7e0b('0x36')]);_0x3db3e4['commands'][_0x7e0b('0xac')]('acceptSuggestion',_0x2d6d1e),this['enableCommand'](_0x7e0b('0xb3'));const _0x2e76b4=new _0x433a42(_0x3db3e4,this['_suggestions']);_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xf3'),_0x2e76b4),this[_0x7e0b('0x10a')](_0x7e0b('0xf3')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xe5'),new _0x28e3b2(_0x3db3e4,_0x2d6d1e,this['_suggestions'])),this[_0x7e0b('0x10a')](_0x7e0b('0xe5')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xfa'),new _0x28e3b2(_0x3db3e4,_0x2e76b4,this[_0x7e0b('0x36')])),this[_0x7e0b('0x10a')](_0x7e0b('0xfa')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0x2'),new _0x16f9ac(_0x3db3e4,_0x2d6d1e,this['_suggestions'])),this[_0x7e0b('0x10a')](_0x7e0b('0x2')),_0x3db3e4[_0x7e0b('0xc2')][_0x7e0b('0xac')](_0x7e0b('0xed'),new _0x16f9ac(_0x3db3e4,_0x2e76b4,this[_0x7e0b('0x36')])),this['enableCommand'](_0x7e0b('0xed'));const _0x2c5538=_0x3db3e4[_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x6b'));this[_0x7e0b('0xd7')](_0x2c5538,_0x7e0b('0x133'),(_0x34e5dc,{threadId:_0x231807})=>{const _0x330e0f=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x231807);_0x330e0f&&_0x330e0f[_0x7e0b('0x112')]&&0x1===_0x330e0f[_0x7e0b('0x112')][_0x7e0b('0xbe')]&&this['_updateSuggestionData'](_0x231807,{'hasComments':!0x0});},{'priority':_0x7e0b('0x100')}),this[_0x7e0b('0xd7')](_0x2c5538,_0x7e0b('0x97'),(_0xa2faeb,{threadId:_0x2538aa})=>{const _0x986047=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x2538aa);_0x986047&&_0x986047[_0x7e0b('0x112')]&&!_0x986047['commentThread'][_0x7e0b('0xbe')]&&this[_0x7e0b('0xa0')](_0x2538aa,{'hasComments':!0x1});},{'priority':_0x7e0b('0x100')});}set[_0x7e0b('0x1f')](_0xd29e1){if(this['_adapter'])throw new _0x58fb70('track-changes-adapter-already-set',this);this[_0x7e0b('0xa8')]=_0xd29e1;}get[_0x7e0b('0x1f')](){return this[_0x7e0b('0xa8')];}['getSuggestions']({skipNotAttached:_0x5eb0b2=!0x1,toJSON:_0x177403=!0x1}={}){const _0x269ae9=[];for(const _0x4112a2 of this[_0x7e0b('0x36')][_0x7e0b('0xe7')]())_0x5eb0b2&&!_0x4112a2[_0x7e0b('0xb7')]||_0x269ae9[_0x7e0b('0x70')](_0x4112a2);return _0x177403?_0x269ae9[_0x7e0b('0xcd')](_0x5742f6=>_0x5742f6[_0x7e0b('0x6d')]()):_0x269ae9;}[_0x7e0b('0xfc')](_0x295ae9){const _0x13074f=this[_0x7e0b('0x36')]['get'](_0x295ae9);if(!_0x13074f)throw new _0x58fb70(_0x7e0b('0x13e'),this);return _0x13074f;}['hasSuggestion'](_0x3e6869){return this[_0x7e0b('0x36')][_0x7e0b('0xdf')](_0x3e6869);}[_0x7e0b('0xe1')](_0x59d7a4){const {authorId:_0x33b11f,id:_0x24b98b,attributes:_0x4d5cc6}=_0x59d7a4,[_0x5e7706,_0x572aaf]=_0x59d7a4[_0x7e0b('0xee')][_0x7e0b('0xc4')](':'),_0x26c2a5=this[_0x7e0b('0x36')]['get'](_0x24b98b)||this[_0x7e0b('0x10d')](_0x5e7706,_0x572aaf,_0x24b98b,_0x33b11f,_0x4d5cc6);if(this[_0x7e0b('0x9c')](_0x26c2a5),this[_0x7e0b('0x46')](_0x26c2a5,_0x5e7706,_0x572aaf||null,_0x33b11f),_0x26c2a5[_0x7e0b('0x43')]=_0x59d7a4['createdAt'],_0x4d5cc6&&_0x4d5cc6[_0x7e0b('0x110')]){const _0x50ba99=_0x4d5cc6['@external'],_0x4b227c=this['_getExternalAuthor'](_0x50ba99[_0x7e0b('0x8c')]);_0x26c2a5[_0x7e0b('0xf6')]=_0x50ba99[_0x7e0b('0x43')],_0x26c2a5[_0x7e0b('0xcf')]=_0x4b227c,_0x26c2a5[_0x7e0b('0x7f')]=!0x0;}else _0x26c2a5[_0x7e0b('0xf6')]=_0x59d7a4[_0x7e0b('0x43')];switch(_0x59d7a4[_0x7e0b('0xd2')]&&(_0x26c2a5[_0x7e0b('0xd2')]=_0x59d7a4[_0x7e0b('0xd2')]),_0x59d7a4['attributes']&&(_0x26c2a5['attributes']=_0x59d7a4[_0x7e0b('0x2b')]),this['_adapter']&&this[_0x7e0b('0xa8')]['addSuggestion']||(_0x26c2a5[_0x7e0b('0xb0')]=!0x0),this['_suggestionState']['get'](_0x26c2a5)){case _0x7e0b('0x0'):this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0x138'));break;case _0x7e0b('0xb5'):_0x26c2a5[_0x7e0b('0xb7')]?(this['_suggestionState'][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0x45')),this[_0x7e0b('0x8e')](_0x7e0b('0x66'),_0x26c2a5)):this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x26c2a5,_0x7e0b('0xf9'));}return _0x26c2a5;}[_0x7e0b('0xb3')](_0x89a8f0){this[_0x7e0b('0xb8')](()=>{this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const _0x19c168 of _0x89a8f0[_0x7e0b('0x140')]())_0x19c168[_0x7e0b('0xf4')]();});});}[_0x7e0b('0xf3')](_0x111c46){this[_0x7e0b('0xb8')](()=>{this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0xbc')](()=>{for(const _0x5692de of _0x111c46[_0x7e0b('0x140')]())_0x5692de['discard']();});});}[_0x7e0b('0x10a')](_0x24f15b,_0x17e2c0){const _0x5e0a72=this[_0x7e0b('0x6')][_0x7e0b('0xc2')][_0x7e0b('0xd3')](_0x24f15b);if(!_0x5e0a72)throw new _0x58fb70(_0x7e0b('0x8'),this,{'commandName':_0x24f15b});this[_0x7e0b('0x102')][_0x7e0b('0xac')](_0x5e0a72),_0x17e2c0&&_0x5e0a72['on']('execute',(_0x242d50,_0x3d5e4b)=>{this[_0x7e0b('0x130')]['value']&&(this[_0x7e0b('0x75')]||_0x3d5e4b[_0x7e0b('0xbe')]>0x0&&_0x3d5e4b[_0x3d5e4b[_0x7e0b('0xbe')]-0x1]&&_0x3d5e4b[_0x3d5e4b[_0x7e0b('0xbe')]-0x1][_0x7e0b('0xb8')]||(_0x17e2c0((..._0x4f6dde)=>_0x5e0a72[_0x7e0b('0x121')](..._0x4f6dde,{'forceDefaultExecution':!0x0}),..._0x3d5e4b),_0x242d50['stop']()));},{'priority':'high'});}[_0x7e0b('0xb8')](_0x4a43db){let _0x2adcbc,_0x2af685;const _0x4fe3d0=this[_0x7e0b('0x75')];this[_0x7e0b('0x75')]=!0x0;try{_0x2adcbc=_0x4a43db();}catch(_0x1d71aa){_0x2af685=_0x1d71aa;}return _0x4fe3d0||(this[_0x7e0b('0x75')]=!0x1),_0x2af685&&_0x58fb70['rethrowUnexpectedError'](_0x2af685,this),_0x2adcbc;}[_0x7e0b('0xfd')](_0xca550c,_0xb5c730=null,_0x1635e5={}){if(_0xca550c['isCollapsed'])return null;const _0x3b52bb=this['editor'][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'];for(const {suggestion:_0x256682,meta:_0xf6e4f9}of this[_0x7e0b('0xd8')](_0xca550c,_0x7e0b('0xc')))if(_0xf6e4f9[_0x7e0b('0x2a')]){if(!_0xf6e4f9['isNextTo']){if(!this[_0x7e0b('0x42')]&&_0xf6e4f9[_0x7e0b('0x6f')])continue;return _0x256682;}if(_0xb5c730==_0x256682[_0x7e0b('0x52')]){const _0x64c672=_0x256682[_0x7e0b('0xd5')]();return _0x64c672['start']['isEqual'](_0xca550c['end'])?this[_0x7e0b('0x89')](_0x256682,this['_model'][_0x7e0b('0x51')](_0xca550c['start'],_0x64c672[_0x7e0b('0x2f')])):this['_setSuggestionRange'](_0x256682,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x64c672[_0x7e0b('0x88')],_0xca550c[_0x7e0b('0x2f')])),_0x256682;}}const _0x31a99f=_0x1862e6(),_0x3b169d=_0x3b52bb['id'],_0x5b41c0=_0xb5c730?_0x7e0b('0x19')+_0xb5c730:_0x7e0b('0xc'),_0x1cfc09=this[_0x7e0b('0x11a')]({'id':_0x31a99f,'type':_0x5b41c0,'createdAt':new Date(),'authorId':_0x3b169d,'attributes':_0x1635e5});return this[_0x7e0b('0x49')](_0x5b41c0,_0x31a99f,_0x3b169d,_0xca550c),_0x1cfc09;}[_0x7e0b('0x13a')](_0x2bb7ab,_0x134322=_0x7e0b('0x48'),_0x4755fe={}){const _0x1fbdf3=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'],_0xb7fad2=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('insertion',_0x134322,_0x7e0b('0xec'));for(const _0x31f79d of this[_0x7e0b('0x7')]())if(_0x31f79d['author']['id']==_0x1fbdf3['id']&&_0x7e0b('0xc')==_0x31f79d[_0x7e0b('0xee')]&&_0x31f79d[_0x7e0b('0x52')]==_0x134322&&(_0xb7fad2(_0x31f79d[_0x7e0b('0x142')](),_0x2bb7ab)||_0xb7fad2(_0x2bb7ab,_0x31f79d[_0x7e0b('0x142')]()))){for(const _0x5025a5 of _0x2bb7ab)_0x31f79d[_0x7e0b('0x18')](_0x5025a5);return _0x31f79d;}if(this['_mergeNestedSuggestions'])for(const _0x59aef7 of _0x2bb7ab)for(const {suggestion:_0x3a53b7,meta:_0x4e4ece}of this['_findSuggestions'](_0x59aef7,_0x7e0b('0xc'))){if(!_0x4e4ece[_0x7e0b('0x2a')])continue;let _0x2c651b=!0x0;for(const _0x427839 of _0x3a53b7[_0x7e0b('0x142')]())for(const _0x42a68d of _0x2bb7ab)if(!_0x427839[_0x7e0b('0x116')](_0x42a68d)){_0x2c651b=!0x1;break;}if(_0x2c651b)return _0x3a53b7;}const _0x4085b0=_0x1862e6(),_0xd6650=_0x1fbdf3['id'],_0x399b98=_0x7e0b('0x19')+_0x134322,_0x14321d=this[_0x7e0b('0x11a')]({'id':_0x4085b0,'type':_0x399b98,'createdAt':new Date(),'authorId':_0xd6650,'attributes':_0x4755fe});for(const _0x561506 of _0x2bb7ab)this['_addSuggestionMarker'](_0x399b98,_0x4085b0,_0xd6650,_0x561506,_0x232d62[_0x7e0b('0x8f')]());return _0x14321d;}[_0x7e0b('0x22')](_0x1c5c15,_0x1c071c,_0x49f541=null,_0x60eb4a={}){if(_0x49f541=_0x49f541||$t(_0x1c071c),_0x1c5c15[_0x7e0b('0x1c')])return null;if(_0x7e0b('0x7a')===this[_0x7e0b('0x82')]){const _0x1d97d1=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0xad'),_0x49f541,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x1d97d1([_0x1c5c15],_0x1c071c,_0x60eb4a)),null;}const _0x4d684a=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')['me'],_0x1bb58f=[];if('always'!==this[_0x7e0b('0x82')])for(const {suggestion:_0x402948,meta:_0x93e36e}of this['_findSuggestions'](_0x1c5c15,_0x7e0b('0xc')))_0x93e36e['isOwn']&&!_0x93e36e['isInsideObject']&&_0x1bb58f[_0x7e0b('0x70')](..._0x402948[_0x7e0b('0x142')]());const _0x1e8fa9=function(_0x51835e,_0x46c69e){const _0x314a8f=[];for(const _0x1a1b0b of _0x46c69e){const _0x1733e0=_0x51835e[_0x7e0b('0x137')](_0x1a1b0b);_0x1733e0&&_0x314a8f[_0x7e0b('0x70')](_0x1733e0);}return _0x314a8f;}(_0x1c5c15,_0x1bb58f),_0x54ac21=function(_0x499b44,_0x4453e3){const _0x1c1d17=[_0x499b44];for(const _0x4ecdd8 of _0x4453e3){let _0xbca074=0x0;for(;_0xbca074<_0x1c1d17[_0x7e0b('0xbe')];){const _0x3147f8=_0x1c1d17[_0xbca074][_0x7e0b('0x11e')](_0x4ecdd8);_0x1c1d17['splice'](_0xbca074,0x1,..._0x3147f8),_0xbca074+=_0x3147f8['length'];}}return _0x1c1d17;}(_0x1c5c15,_0x1bb58f);_0x1e8fa9[_0x7e0b('0xbe')]&&this[_0x7e0b('0xcc')]['change'](()=>{for(const _0x56494a of _0x1e8fa9){const _0xa401ca=this['_suggestionFactory'][_0x7e0b('0xe4')]('formatInline',_0x49f541,'accept');this[_0x7e0b('0xb8')](()=>_0xa401ca([_0x56494a],_0x1c071c,_0x60eb4a));}});for(const _0x38ec93 of _0x54ac21){let _0x3b6bda=null,_0x58533e=_0x38ec93[_0x7e0b('0x88')],_0x350aa0=_0x38ec93['end'];for(const {suggestion:_0x4ce2f7,meta:_0x40a755}of this[_0x7e0b('0xd8')](_0x38ec93,'formatInline')){if(!_0x40a755[_0x7e0b('0x2a')])continue;if(_0x4ce2f7[_0x7e0b('0x52')]!=_0x49f541)continue;const _0x4c2e34=_0x4ce2f7[_0x7e0b('0xd5')]();if(_0x4c2e34[_0x7e0b('0x116')](_0x38ec93,!0x0))return null;_0x58533e=_0x58533e[_0x7e0b('0x20')](_0x4c2e34[_0x7e0b('0x88')])?_0x58533e:_0x4c2e34['start'],_0x350aa0=_0x350aa0[_0x7e0b('0x8d')](_0x4c2e34['end'])?_0x350aa0:_0x4c2e34['end'],_0x3b6bda?_0x4c2e34[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x3b6bda['getFirstRange']()[_0x7e0b('0x88')])?(_0x3b6bda[_0x7e0b('0xc3')](),_0x3b6bda=_0x4ce2f7):_0x4ce2f7[_0x7e0b('0xc3')]():_0x3b6bda=_0x4ce2f7;}const _0x5b8d7b=this[_0x7e0b('0xcc')]['createRange'](_0x58533e,_0x350aa0);if(_0x3b6bda)this[_0x7e0b('0x89')](_0x3b6bda,_0x5b8d7b);else{const _0x1e745c=_0x1862e6(),_0x5b9080=_0x4d684a['id'];this['_setSuggestionData']({'id':_0x1e745c,'type':_0x7e0b('0x11b')+_0x49f541,'data':_0x1c071c,'createdAt':new Date(),'authorId':_0x5b9080,'attributes':_0x60eb4a}),this[_0x7e0b('0x49')](_0x7e0b('0x11b')+_0x49f541,_0x1e745c,_0x5b9080,_0x5b8d7b);}}return null;}['markBlockFormat'](_0x36f9b7,_0x2364ea,_0x279a07=[],_0x447b4e=null,_0x201840={}){_0x2364ea[_0x7e0b('0x21')]||(_0x2364ea[_0x7e0b('0x21')]=_0x2364ea['commandName']),_0x2364ea[_0x7e0b('0x125')]=_0x36f9b7['is'](_0x7e0b('0x37')),_0x447b4e=_0x447b4e||$t(_0x2364ea);const _0x311dbe=_0x279a07['map'](_0x36ffcd=>Rt(_0x36ffcd,this['_model'])),_0x303bad=_0x36f9b7['is'](_0x7e0b('0x37'))?_0x36f9b7:Rt(_0x36f9b7,this[_0x7e0b('0xcc')]);if(_0x7e0b('0x7a')===this[_0x7e0b('0x82')]){const _0x472997=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x447b4e,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x472997([_0x303bad],_0x2364ea,_0x201840)),null;}_0x311dbe['push'](_0x303bad);let _0x547e44=!0x0;for(const _0x1e9b28 of _0x311dbe)if(!this[_0x7e0b('0xbd')](_0x1e9b28)){_0x547e44=!0x1;break;}if(_0x547e44&&_0x7e0b('0x9a')!==this[_0x7e0b('0x82')]){const _0x5df665=this['_suggestionFactory'][_0x7e0b('0xe4')](_0x7e0b('0x84'),_0x447b4e,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x5df665([_0x303bad],_0x2364ea,_0x201840)),null;}let _0x3a01c9=null,_0x2d7d26=_0x303bad['start'],_0x10ff75=_0x303bad[_0x7e0b('0x2f')];for(const {suggestion:_0x3ac22f,meta:_0x51f309}of this[_0x7e0b('0xd8')](_0x303bad,_0x7e0b('0x84'))){if(!_0x51f309[_0x7e0b('0x2a')]||_0x51f309[_0x7e0b('0xf5')]||_0x51f309[_0x7e0b('0x6f')]||_0x51f309[_0x7e0b('0x3c')])continue;if(_0x3ac22f[_0x7e0b('0xd2')][_0x7e0b('0x21')]!=_0x2364ea[_0x7e0b('0x21')])continue;const _0x2e0ed9=_0x3ac22f[_0x7e0b('0xd5')]();if(_0x3ac22f['subType']==_0x447b4e){if(_0x2e0ed9[_0x7e0b('0x116')](_0x303bad,!0x0))return null;_0x2d7d26=_0x2d7d26[_0x7e0b('0x20')](_0x2e0ed9[_0x7e0b('0x88')])?_0x2d7d26:_0x2e0ed9['start'],_0x10ff75=_0x10ff75[_0x7e0b('0x8d')](_0x2e0ed9[_0x7e0b('0x2f')])?_0x10ff75:_0x2e0ed9[_0x7e0b('0x2f')],_0x3a01c9?_0x2e0ed9[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x3a01c9[_0x7e0b('0xd5')]()['start'])?(_0x3a01c9[_0x7e0b('0xc3')](),_0x3a01c9=_0x3ac22f):_0x3ac22f[_0x7e0b('0xc3')]():_0x3a01c9=_0x3ac22f;}else{const _0x2bc298=_0x303bad[_0x7e0b('0x137')](_0x2e0ed9);this[_0x7e0b('0x34')](_0x3ac22f,_0x2bc298);}}const _0x45a94a=this[_0x7e0b('0x6')]['plugins'][_0x7e0b('0xd3')](_0x7e0b('0x9'))['me'],_0x1288fa=_0x1862e6(),_0x3ab646=_0x45a94a['id'];if(_0x3a01c9)return this[_0x7e0b('0x89')](_0x3a01c9,this['_model'][_0x7e0b('0x51')](_0x2d7d26,_0x10ff75)),_0x3a01c9;{const _0x26f148=this[_0x7e0b('0x11a')]({'id':_0x1288fa,'type':_0x7e0b('0x50')+_0x447b4e,'data':_0x2364ea,'createdAt':new Date(),'authorId':_0x3ab646,'attributes':_0x201840});return this['_addSuggestionMarker'](_0x7e0b('0x50')+_0x447b4e,_0x1288fa,_0x3ab646,this[_0x7e0b('0xcc')]['createRange'](_0x2d7d26,_0x10ff75)),_0x26f148;}}[_0x7e0b('0x63')](_0x46e1c6,_0x3e5e73,_0x4150fe=[],_0x6e4355=null,_0x3c12e4={}){_0x3e5e73[_0x7e0b('0x21')]||(_0x3e5e73[_0x7e0b('0x21')]=_0x3e5e73[_0x7e0b('0x13b')]);const _0x2de93c=_0x46e1c6[0x0];_0x3e5e73['multipleBlocks']=_0x2de93c['is'](_0x7e0b('0x37')),_0x6e4355=_0x6e4355||$t(_0x3e5e73);const _0xe10ca=_0x4150fe[_0x7e0b('0xcd')](_0x150e14=>Rt(_0x150e14,this[_0x7e0b('0xcc')])),_0x2eba05=_0x2de93c['is'](_0x7e0b('0x37'))?_0x46e1c6:_0x46e1c6[_0x7e0b('0xcd')](_0x1dd816=>Rt(_0x1dd816,this['_model']));if(_0x7e0b('0x7a')===this['_trackFormatChanges']){const _0xed68c3=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x6e4355,'accept');return this[_0x7e0b('0xb8')](()=>_0xed68c3(_0x2eba05,_0x3e5e73,_0x3c12e4)),null;}_0xe10ca[_0x7e0b('0x70')](..._0x2eba05);let _0x3ab87a=!0x0;for(const _0x4a0079 of _0xe10ca)if(!this[_0x7e0b('0xbd')](_0x4a0079)){_0x3ab87a=!0x1;break;}if(_0x3ab87a&&_0x7e0b('0x9a')!==this['_trackFormatChanges']){const _0x228809=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('formatBlock',_0x6e4355,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x228809(_0x2eba05,_0x3e5e73,_0x3c12e4)),null;}const _0x4f5383=this['editor'][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9'))['me'];for(const _0x48a5a1 of this['getSuggestions']()){if(_0x48a5a1['author']['id']!=_0x4f5383['id'])continue;if(_0x7e0b('0x84')!=_0x48a5a1[_0x7e0b('0xee')]||_0x48a5a1[_0x7e0b('0xd2')]['formatGroupId']!=_0x3e5e73[_0x7e0b('0x21')])continue;const _0x3a542c=_0x48a5a1[_0x7e0b('0x52')]==_0x6e4355;for(let _0xe60c5e=0x0;_0xe60c5e<_0x2eba05['length'];_0xe60c5e++){const _0x2b99b5=_0x2eba05[_0xe60c5e];for(const _0x1b9cee of _0x48a5a1[_0x7e0b('0xa2')]()){const _0x446ff6=_0x1b9cee[_0x7e0b('0x5d')]();if(_0x2b99b5[_0x7e0b('0xa4')](_0x446ff6)){_0x3a542c?(_0x2eba05[_0x7e0b('0xeb')](_0xe60c5e,0x1),_0xe60c5e--):_0x48a5a1[_0x7e0b('0x113')](_0x1b9cee['name']);break;}}}}if(0x0==_0x2eba05[_0x7e0b('0xbe')])return null;const _0x5d5abc=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0x84'),_0x6e4355,_0x7e0b('0xec'));for(const _0x310c95 of this['getSuggestions']())if(_0x310c95[_0x7e0b('0xcf')]['id']==_0x4f5383['id']&&_0x7e0b('0x84')==_0x310c95[_0x7e0b('0xee')]&&_0x310c95[_0x7e0b('0xd2')][_0x7e0b('0x21')]==_0x3e5e73[_0x7e0b('0x21')]&&_0x310c95[_0x7e0b('0x52')]==_0x6e4355&&(_0x5d5abc(_0x310c95[_0x7e0b('0x142')](),_0x2eba05)||_0x5d5abc(_0x2eba05,_0x310c95[_0x7e0b('0x142')]()))){for(const _0x12c45f of _0x2eba05)_0x310c95['addRange'](_0x12c45f);return _0x310c95;}const _0x27953b=_0x1862e6(),_0x11e11f=_0x4f5383['id'],_0xaa4480=_0x7e0b('0x50')+_0x6e4355,_0x519e8a=this['_setSuggestionData']({'id':_0x27953b,'type':_0xaa4480,'data':_0x3e5e73,'createdAt':new Date(),'authorId':_0x11e11f,'attributes':_0x3c12e4});for(const _0xb1f0a9 of _0x2eba05)this['_addSuggestionMarker'](_0xaa4480,_0x27953b,_0x11e11f,_0xb1f0a9,_0x232d62[_0x7e0b('0x8f')]());return _0x519e8a;}[_0x7e0b('0xd')](_0x299b18,_0x3d1fcd=null,_0xc042cb={}){if(_0x299b18[_0x7e0b('0x1c')])return null;const _0x23065f=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')['me'],_0x46c732=new _0x491aa7(_0x299b18[_0x7e0b('0x88')],_0x299b18[_0x7e0b('0x2f')]);for(const {suggestion:_0x1838be,meta:_0x25cd15}of this[_0x7e0b('0xd8')](_0x46c732,_0x7e0b('0xc')))if(_0x25cd15[_0x7e0b('0x2a')]&&!_0x25cd15[_0x7e0b('0xf5')]){if(_0x1838be[_0x7e0b('0x4b')]){const _0x20bad6=_0x1838be['getRanges']()[_0x7e0b('0x4a')](_0x5130a8=>_0x7e0b('0xab')!=_0x5130a8[_0x7e0b('0x5f')][_0x7e0b('0x4d')]);_0x20bad6[_0x7e0b('0x93')](_0x508db2=>_0x46c732[_0x7e0b('0x116')](_0x508db2,!0x0))&&_0x1838be[_0x7e0b('0x139')]();if(_0x20bad6['some'](_0x4a6d1b=>_0x4a6d1b[_0x7e0b('0x116')](_0x46c732,!0x0))){const _0x42f404=this[_0x7e0b('0x57')][_0x7e0b('0xe4')]('deletion',_0x3d1fcd,_0x7e0b('0xf4'));return this['forceDefaultExecution'](()=>_0x42f404([_0x46c732],null,_0xc042cb)),null;}}else{const _0x263c37=_0x46c732[_0x7e0b('0x137')](_0x1838be['getFirstRange']());null!==_0x263c37&&_0x1838be[_0x7e0b('0x111')]([_0x263c37],null,_0xc042cb);}}if(_0x46c732[_0x7e0b('0x144')](),_0x46c732['isCollapsed']||_0x7e0b('0xab')==_0x46c732[_0x7e0b('0x5f')][_0x7e0b('0x4d')])return null;let _0x650384=null,_0x47e24e=_0x46c732['start'],_0x4b275e=_0x46c732[_0x7e0b('0x2f')];for(const {suggestion:_0x15cfd8,meta:_0x293a5d}of this[_0x7e0b('0xd8')](_0x46c732,'deletion'))if(_0x293a5d[_0x7e0b('0x2a')]){if(_0x15cfd8[_0x7e0b('0x4b')]&&this[_0x7e0b('0x42')]){let _0x3d5cd8=!0x0;for(const _0x453086 of _0x15cfd8[_0x7e0b('0x142')]()){if(_0x453086[_0x7e0b('0x116')](_0x46c732,!0x0))return _0x15cfd8;_0x46c732[_0x7e0b('0x116')](_0x453086)||(_0x3d5cd8=!0x1);}_0x3d5cd8&&_0x15cfd8[_0x7e0b('0x139')]();}else{const _0x5b23d4=_0x15cfd8[_0x7e0b('0xd5')]();if(_0x5b23d4[_0x7e0b('0x116')](_0x46c732,!0x0)){if(!this[_0x7e0b('0x42')]&&_0x293a5d[_0x7e0b('0x6f')])continue;return _0x15cfd8;}_0x47e24e=_0x47e24e[_0x7e0b('0x20')](_0x5b23d4[_0x7e0b('0x88')])?_0x47e24e:_0x5b23d4[_0x7e0b('0x88')],_0x4b275e=_0x4b275e[_0x7e0b('0x8d')](_0x5b23d4[_0x7e0b('0x2f')])?_0x4b275e:_0x5b23d4[_0x7e0b('0x2f')],_0x650384?_0x5b23d4[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x650384[_0x7e0b('0xd5')]()['start'])?(_0x650384['removeMarkers'](),_0x650384=_0x15cfd8):_0x15cfd8[_0x7e0b('0xc3')]():_0x650384=_0x15cfd8;}}if(_0x650384)return this['_setSuggestionRange'](_0x650384,this[_0x7e0b('0xcc')]['createRange'](_0x47e24e,_0x4b275e)),_0x650384;{const _0x5dccee=_0x1862e6(),_0x399c8e=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x47e24e,_0x4b275e),_0x36abf5=_0x23065f['id'],_0x359fca=_0x3d1fcd?_0x7e0b('0x1b')+_0x3d1fcd:_0x7e0b('0x124'),_0x28af88=this[_0x7e0b('0x11a')]({'id':_0x5dccee,'type':_0x359fca,'createdAt':new Date(),'authorId':_0x36abf5,'attributes':_0xc042cb});return this[_0x7e0b('0x49')](_0x359fca,_0x5dccee,_0x36abf5,_0x399c8e),_0x28af88;}}[_0x7e0b('0x44')](_0x264db5,_0x35c65b=_0x7e0b('0x48'),_0x5a1319={}){const _0x25f478=this[_0x7e0b('0x6')][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9'))['me'],_0x30c39f=_0x264db5[_0x7e0b('0xcd')](_0x35ed13=>new _0x491aa7(_0x35ed13[_0x7e0b('0x88')],_0x35ed13[_0x7e0b('0x2f')])),_0xbabaae=new Set();for(const _0x54a1d8 of _0x30c39f)for(const {suggestion:_0x33a635,meta:_0x259d26}of this[_0x7e0b('0xd8')](_0x54a1d8,_0x7e0b('0xc')))_0x259d26[_0x7e0b('0x2a')]&&!_0x259d26[_0x7e0b('0xf5')]&&_0xbabaae[_0x7e0b('0xac')](_0x33a635);for(const _0x35cb04 of _0xbabaae)if(_0x35cb04[_0x7e0b('0x4b')]){const _0x28d7ba=_0x35cb04[_0x7e0b('0x142')]();(!_0x35cb04['attributes']||!_0x35cb04[_0x7e0b('0x2b')][_0x7e0b('0x13')])&&(_0x28d7ba['every'](_0x3ca08a=>_0x30c39f[_0x7e0b('0x95')](_0x3bcbc3=>_0x3bcbc3['containsRange'](_0x3ca08a,!0x0)))&&_0x35cb04[_0x7e0b('0x139')]());if(_0x30c39f[_0x7e0b('0x93')](_0x865c5=>_0x28d7ba[_0x7e0b('0x95')](_0x27c03c=>_0x27c03c[_0x7e0b('0x116')](_0x865c5,!0x0)))){const _0x2089ca=this['_suggestionFactory']['getSuggestionCallback'](_0x7e0b('0x124'),_0x35c65b,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x2089ca(_0x264db5,null,_0x5a1319)),null;}}else{const _0x394533=_0x35cb04['getFirstRange']();_0x30c39f[_0x7e0b('0x95')](_0x4bc796=>_0x4bc796[_0x7e0b('0x116')](_0x394533,!0x0))&&_0x35cb04[_0x7e0b('0x139')]();if(_0x30c39f['every'](_0x1b1c32=>_0x394533['containsRange'](_0x1b1c32,!0x0))){const _0x53f96d=this[_0x7e0b('0x57')]['getSuggestionCallback']('deletion',_0x35c65b,_0x7e0b('0xf4'));return this[_0x7e0b('0xb8')](()=>_0x53f96d(_0x30c39f,null,_0x5a1319)),null;}}const _0x8e0b2b=this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x7e0b('0x124'),_0x35c65b,_0x7e0b('0xec'));let _0x1db33f=null;for(const _0x42ee77 of this['getSuggestions']())if(_0x42ee77[_0x7e0b('0xcf')]['id']==_0x25f478['id']&&_0x42ee77[_0x7e0b('0xb7')]&&_0x7e0b('0x124')==_0x42ee77['type']&&_0x42ee77[_0x7e0b('0x52')]==_0x35c65b&&(_0x8e0b2b(_0x42ee77['getRanges'](),_0x30c39f)||_0x8e0b2b(_0x30c39f,_0x42ee77[_0x7e0b('0x142')]()))){if(_0x1db33f){if(_0x42ee77['commentThread']&&_0x42ee77[_0x7e0b('0x112')][_0x7e0b('0xbe')])continue;for(const _0x443fac of _0x42ee77['getRanges']())_0x1db33f[_0x7e0b('0x11d')](_0x443fac)||_0x1db33f[_0x7e0b('0x18')](_0x443fac);_0x42ee77[_0x7e0b('0xc3')]();}else{_0x1db33f=_0x42ee77;for(const _0x74112 of _0x30c39f)_0x42ee77[_0x7e0b('0x11d')](_0x74112)||_0x42ee77[_0x7e0b('0x18')](_0x74112);}}if(_0x1db33f)return _0x1db33f;_0xbabaae[_0x7e0b('0x38')]();for(const _0x17495c of _0x30c39f)for(const {suggestion:_0x20612d,meta:_0x507167}of this['_findSuggestions'](_0x17495c,_0x7e0b('0x124')))_0x507167[_0x7e0b('0x2a')]&&_0xbabaae[_0x7e0b('0xac')](_0x20612d);for(const _0x13c6b6 of _0xbabaae){const _0xb20573=_0x13c6b6[_0x7e0b('0x142')]();if(!_0x5a1319||!_0x5a1319[_0x7e0b('0x13')]){if(_0x30c39f[_0x7e0b('0x93')](_0x52207a=>_0xb20573[_0x7e0b('0x95')](_0x395e33=>_0x395e33['containsRange'](_0x52207a,!0x0))))return _0x13c6b6;}(!_0x13c6b6['attributes']||!_0x13c6b6[_0x7e0b('0x2b')][_0x7e0b('0x13')])&&(_0xb20573[_0x7e0b('0x93')](_0x1d24bc=>_0x30c39f[_0x7e0b('0x95')](_0x47fc67=>_0x47fc67[_0x7e0b('0x116')](_0x1d24bc,!0x0)))&&_0x13c6b6[_0x7e0b('0x139')]());}const _0x3ae1ed=_0x1862e6(),_0x2d0c2c=_0x25f478['id'],_0x343966='deletion:'+_0x35c65b,_0x3014ad=this[_0x7e0b('0x11a')]({'id':_0x3ae1ed,'type':_0x343966,'createdAt':new Date(),'authorId':_0x2d0c2c,'attributes':_0x5a1319});for(const _0x87c642 of _0x30c39f)_0x87c642[_0x7e0b('0x144')](),_0x87c642[_0x7e0b('0x1c')]||_0x7e0b('0xab')==_0x87c642[_0x7e0b('0x5f')]['rootName']||this[_0x7e0b('0x49')](_0x343966,_0x3ae1ed,_0x2d0c2c,_0x87c642,_0x232d62['getMultiRangeId']());return _0x3014ad;}[_0x7e0b('0x89')](_0x277bcb,_0x5ec64e){const _0xdda608=_0x277bcb[_0x7e0b('0x9e')]();this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0x17ec8a=>{_0x17ec8a[_0x7e0b('0x12f')](_0xdda608,{'range':_0x5ec64e});});}[_0x7e0b('0x9c')](_0x320c47){const _0x279c5a=_0x320c47['id'],_0x7054d5=this[_0x7e0b('0x6')]['config'][_0x7e0b('0xd3')]('collaboration.channelId');this[_0x7e0b('0xb2')][_0x7e0b('0x98')](_0x279c5a)||this[_0x7e0b('0xb2')][_0x7e0b('0x7e')]({'channelId':_0x7054d5,'threadId':_0x279c5a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4dd02e=this[_0x7e0b('0xb2')][_0x7e0b('0x1a')](_0x279c5a);_0x4dd02e[_0x7e0b('0xef')](_0x7e0b('0xb1')),_0x4dd02e['isRemovable']=!0x1,_0x320c47[_0x7e0b('0x112')]=_0x4dd02e;}[_0x7e0b('0x46')](_0xa63780,_0x56887d,_0x32600f,_0x2753da){if(_0xa63780[_0x7e0b('0xee')]!=_0x56887d||_0xa63780['subType']!=_0x32600f||_0xa63780[_0x7e0b('0x3f')]['id']!=_0x2753da)throw this[_0x7e0b('0x6')][_0x7e0b('0xe0')](_0x7e0b('0xdb')),new _0x58fb70('track-changes-suggestion-data-mismatch',this);}[_0x7e0b('0x34')](_0x40532b,_0x22123c){const _0x335a3e=_0x40532b[_0x7e0b('0xd5')]();if(_0x22123c[_0x7e0b('0xa4')](_0x335a3e))_0x40532b[_0x7e0b('0xc3')]();else{if(_0x335a3e['containsRange'](_0x22123c)){const _0x76ec58=this[_0x7e0b('0xcc')]['createPositionAt'](_0x22123c[_0x7e0b('0x88')][_0x7e0b('0x65')],_0x7e0b('0x2f'));this['_setSuggestionRange'](_0x40532b,this['_model'][_0x7e0b('0x51')](_0x335a3e[_0x7e0b('0x88')],_0x76ec58));const _0x2cb229=_0x1862e6(),_0x5654c8=_0x40532b[_0x7e0b('0x3f')]['id'],_0x1a965e=_0x40532b[_0x7e0b('0xee')]+':'+_0x40532b[_0x7e0b('0x52')];this['_setSuggestionData']({'id':_0x2cb229,'type':_0x1a965e,'createdAt':new Date(),'authorId':_0x5654c8,'data':_0x40532b[_0x7e0b('0xd2')],'attributes':_0x40532b[_0x7e0b('0x2b')]});const _0xf3b54c=this[_0x7e0b('0xcc')][_0x7e0b('0xda')](_0x22123c[_0x7e0b('0x2f')][_0x7e0b('0x32')],_0x7e0b('0x5b')),_0x2d1199=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0xf3b54c,_0x335a3e[_0x7e0b('0x2f')]);this['_addSuggestionMarker'](_0x1a965e,_0x2cb229,_0x5654c8,_0x2d1199);}else{if(_0x335a3e[_0x7e0b('0xdc')](_0x22123c[_0x7e0b('0x88')])){const _0xedaf8c=this[_0x7e0b('0xcc')][_0x7e0b('0xda')](_0x22123c[_0x7e0b('0x88')][_0x7e0b('0x65')],_0x7e0b('0x2f'));this[_0x7e0b('0x89')](_0x40532b,this['_model'][_0x7e0b('0x51')](_0x335a3e[_0x7e0b('0x88')],_0xedaf8c));}else{const _0x455e20=this[_0x7e0b('0xcc')]['createPositionAt'](_0x22123c['end']['parent'],_0x7e0b('0x5b'));this[_0x7e0b('0x89')](_0x40532b,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x455e20,_0x335a3e['end']));}}}}[_0x7e0b('0xbd')](_0x5cb8a7){for(const {suggestion:_0xd79f82,meta:_0x128edb}of this[_0x7e0b('0xd8')](_0x5cb8a7,_0x7e0b('0xc'))){if(!_0x128edb['isOwn'])continue;const _0x4de765=_0xd79f82[_0x7e0b('0x142')]();for(const _0x3dcc9e of _0x4de765)if(!_0x5cb8a7[_0x7e0b('0x11e')](_0x3dcc9e)[_0x7e0b('0xbe')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x589c04){const _0x1863b2=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('Users')[_0x7e0b('0xa3')](_0x589c04);if(!_0x1863b2)throw new _0x58fb70(_0x7e0b('0x5c'),this);return _0x1863b2;}['_getExternalAuthor'](_0x58818f){const _0x577637=this['editor'][_0x7e0b('0xfb')]['get'](_0x7e0b('0x9')),_0x3cd3ff=_0x1685bc(_0x7e0b('0x23')+_0x58818f),_0x3973f5=_0x577637['getUser'](_0x3cd3ff);return _0x3973f5||_0x577637['addUser']({'id':_0x3cd3ff,'name':_0x58818f});}[_0x7e0b('0x10d')](_0x812417,_0x5e45c3,_0x260b29,_0x332367,_0x3f49c6){const _0x4d9246=this[_0x7e0b('0x1d')](_0x332367),_0x26358a=this[_0x7e0b('0x57')][_0x7e0b('0x71')](_0x812417,_0x5e45c3,_0x260b29,_0x4d9246,_0x3f49c6,_0x4aa897=>this[_0x7e0b('0xa0')](_0x260b29,{'attributes':_0x4aa897}));return this['listenTo'](_0x26358a,_0x7e0b('0xf4'),()=>{this['_updateSuggestionData'](_0x260b29,{'state':'accepted'});},{'priority':_0x7e0b('0x105')}),this[_0x7e0b('0xd7')](_0x26358a,_0x7e0b('0x139'),()=>{this[_0x7e0b('0xa0')](_0x260b29,{'state':_0x7e0b('0x132')});},{'priority':'high'}),this[_0x7e0b('0x36')][_0x7e0b('0x2c')](_0x260b29,_0x26358a),this['_suggestionState']['set'](_0x26358a,_0x7e0b('0x0')),_0x26358a;}[_0x7e0b('0xe6')](_0x32fd19){const _0x2c77f0=_0x32fd19['split'](':');return{'group':_0x2c77f0[0x0],'type':_0x2c77f0[0x1],'subType':_0x2c77f0[_0x7e0b('0xbe')]>=0x5?_0x2c77f0[0x2]:null,'id':_0x2c77f0[_0x7e0b('0xbe')]<0x5?_0x2c77f0[0x2]:_0x2c77f0[0x3],'authorId':_0x2c77f0[_0x7e0b('0xbe')]<0x5?_0x2c77f0[0x3]:_0x2c77f0[0x4],'markerCount':0x6==_0x2c77f0[_0x7e0b('0xbe')]?_0x2c77f0[0x5]:null};}['_breakSuggestionMarker'](_0x31b3f4,_0x5c9ab7,_0x5914f5){const _0x2ada24=_0x31b3f4[_0x7e0b('0xd5')](),_0x45039e=_0x2ada24[_0x7e0b('0x88')],_0x42807e=_0x2ada24[_0x7e0b('0x2f')];this[_0x7e0b('0x89')](_0x31b3f4,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x45039e,_0x5c9ab7));const _0x9c365b=_0x1862e6(),_0x5312d8=_0x31b3f4[_0x7e0b('0x3f')]['id'],_0x59a7ae=_0x31b3f4['type']+(_0x31b3f4[_0x7e0b('0x52')]?':'+_0x31b3f4['subType']:'');this[_0x7e0b('0x11a')]({'id':_0x9c365b,'type':_0x59a7ae,'createdAt':new Date(),'authorId':_0x5312d8,'originalSuggestionId':_0x31b3f4['id'],'attributes':_0x31b3f4[_0x7e0b('0x2b')],'data':_0x31b3f4['data']}),_0x7e0b('0x84')==_0x31b3f4[_0x7e0b('0xee')]&&(_0x5914f5=this['_model'][_0x7e0b('0x26')](_0x5914f5[_0x7e0b('0x32')])),this[_0x7e0b('0x49')](_0x59a7ae,_0x9c365b,_0x5312d8,this['_model'][_0x7e0b('0x51')](_0x5914f5,_0x42807e));}[_0x7e0b('0xd8')](_0x2503d5,_0x22187c=null){const _0x486438=[],_0x45aef1=this['_model']['schema'],_0x2ca04e=this[_0x7e0b('0x6')]['plugins'][_0x7e0b('0xd3')]('Users')['me'];for(const _0x16f974 of this[_0x7e0b('0x7')]())if(_0x16f974[_0x7e0b('0xb7')]&&(!_0x22187c||_0x16f974[_0x7e0b('0xee')]==_0x22187c))for(const _0x38d4e1 of _0x16f974[_0x7e0b('0x142')]()){const _0x2298aa=_0x2503d5[_0x7e0b('0x88')][_0x7e0b('0xa4')](_0x38d4e1[_0x7e0b('0x2f')])||_0x2503d5[_0x7e0b('0x2f')][_0x7e0b('0xa4')](_0x38d4e1[_0x7e0b('0x88')]);if(_0x2298aa||_0x2503d5['getIntersection'](_0x38d4e1)){const _0x4968ee=_0x2503d5['containsRange'](_0x38d4e1)&&Bt(_0x45aef1,_0x38d4e1[_0x7e0b('0x88')],_0x2503d5),_0x3ef930=_0x38d4e1[_0x7e0b('0x116')](_0x2503d5)&&Bt(_0x45aef1,_0x2503d5[_0x7e0b('0x88')],_0x38d4e1);_0x486438[_0x7e0b('0x70')]({'suggestion':_0x16f974,'meta':{'isOwn':_0x2ca04e==_0x16f974[_0x7e0b('0xcf')],'isNextTo':_0x2298aa,'isInsideObject':_0x4968ee,'containsRangeInObject':_0x3ef930}});break;}}return _0x486438;}['_addSuggestionMarker'](_0x1dba94,_0x54cec8,_0x195ff6,_0x4b22ac,_0x48761f){this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0x47979d=>{let _0x3a0465=_0x7e0b('0xce')+_0x1dba94+':'+_0x54cec8+':'+_0x195ff6;_0x48761f&&(_0x3a0465=_0x3a0465+':'+_0x48761f),_0x47979d['addMarker'](_0x3a0465,{'range':_0x4b22ac,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x7e0b('0x2e')](_0x47bf86){const _0x49b64e=_0x47bf86[_0x7e0b('0xf1')],_0x4cb72b=_0x47bf86[_0x7e0b('0xa9')];_0x47bf86[_0x7e0b('0xf1')]=null,null!=_0x49b64e&&(_0x49b64e[_0x7e0b('0xa9')]=null),_0x47bf86[_0x7e0b('0xa9')]=null,null!=_0x4cb72b&&(_0x4cb72b[_0x7e0b('0xf1')]=null),_0x7e0b('0x45')==this[_0x7e0b('0x87')]['get'](_0x47bf86)&&(this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x47bf86,'removed'),this[_0x7e0b('0x8e')](_0x7e0b('0x33'),_0x47bf86,_0x49b64e,_0x4cb72b));}[_0x7e0b('0x11a')](_0x366703){const _0x1bd044=_0x366703['id'],_0x38ce50=this[_0x7e0b('0xe1')](_0x366703);if(this[_0x7e0b('0xa8')]&&this[_0x7e0b('0xa8')][_0x7e0b('0x17')]){const _0x51a7db=this['editor'][_0x7e0b('0xfb')][_0x7e0b('0xd3')]('PendingActions'),_0x5eb50d=_0x38ce50['hasComments'],_0x5c1c1c=_0x38ce50['subType']?_0x38ce50['type']+':'+_0x38ce50[_0x7e0b('0x52')]:_0x38ce50[_0x7e0b('0xee')],_0x455b9f=this[_0x7e0b('0x6')][_0x7e0b('0x134')],_0x32a96a=_0x51a7db[_0x7e0b('0xac')](_0x25f2c4(_0x455b9f,_0x7e0b('0x29'))),_0x1ada71={'id':_0x1bd044,'type':_0x5c1c1c,'hasComments':_0x5eb50d,'data':_0x366703['data']||null,'originalSuggestionId':_0x366703[_0x7e0b('0x60')]||null,'attributes':_0x38ce50['attributes']};this[_0x7e0b('0xa8')][_0x7e0b('0x17')](_0x1ada71)['then'](_0x3e3a8b=>{_0x38ce50[_0x7e0b('0xb0')]=!0x0,_0x51a7db[_0x7e0b('0x107')](_0x32a96a),_0x3e3a8b&&_0x3e3a8b[_0x7e0b('0x43')]&&(this['_suggestions'][_0x7e0b('0xd3')](_0x1bd044)[_0x7e0b('0x43')]=_0x3e3a8b[_0x7e0b('0x43')]);})[_0x7e0b('0x5a')](_0x2cf0a9=>{throw _0x2f4b48(_0x7e0b('0x10')),this[_0x7e0b('0x6')][_0x7e0b('0x91')][_0x7e0b('0x8a')]({'isUndoable':!0x1},()=>{_0x38ce50[_0x7e0b('0x139')]();}),_0x38ce50['stopListening'](),this[_0x7e0b('0x36')][_0x7e0b('0x15')](_0x38ce50['id']),this[_0x7e0b('0x87')][_0x7e0b('0x15')](_0x38ce50),_0x2cf0a9;});}return _0x38ce50;}['_updateSuggestionData'](_0x2b0e1d,_0x283c51){const _0x1d07bb=this[_0x7e0b('0x6')][_0x7e0b('0xfb')][_0x7e0b('0xd3')](_0x7e0b('0x79')),_0x479a9e=this[_0x7e0b('0xfc')](_0x2b0e1d);if(this[_0x7e0b('0xa8')]&&this['_adapter'][_0x7e0b('0x131')]){if(_0x479a9e[_0x7e0b('0xb0')]){const _0x1024b0=_0x1d07bb['add'](_0x25f2c4(this[_0x7e0b('0x6')]['locale'],_0x7e0b('0x29')));this[_0x7e0b('0xa8')][_0x7e0b('0x131')](_0x2b0e1d,_0x283c51)[_0x7e0b('0xae')](()=>{_0x1d07bb['remove'](_0x1024b0);});}else _0x479a9e['on'](_0x7e0b('0x10c'),()=>{this['_updateSuggestionData'](_0x2b0e1d,_0x283c51);});}}[_0x7e0b('0x39')](_0x549c35){if(!this[_0x7e0b('0xa8')]||!this[_0x7e0b('0xa8')][_0x7e0b('0xfc')])throw new _0x58fb70(_0x7e0b('0x86'),this);return this[_0x7e0b('0xa8')]['getSuggestion'](_0x549c35);}['_handleNewSuggestionMarker'](_0x309d92){const {id:_0x74948f,type:_0x334e56,subType:_0x188c97,authorId:_0x7ddaf6}=this[_0x7e0b('0xe6')](_0x309d92),_0x5d46f2=this[_0x7e0b('0x36')][_0x7e0b('0xd3')](_0x74948f)||this[_0x7e0b('0x10d')](_0x334e56,_0x188c97,_0x74948f,_0x7ddaf6,{});switch(this[_0x7e0b('0x46')](_0x5d46f2,_0x334e56,_0x188c97,_0x7ddaf6),this[_0x7e0b('0x87')][_0x7e0b('0xd3')](_0x5d46f2)){case _0x7e0b('0x0'):this[_0x7e0b('0x39')](_0x74948f)[_0x7e0b('0xae')](_0x2bc9c2=>{let _0x54ab26=Promise[_0x7e0b('0x114')]();_0x2bc9c2[_0x7e0b('0xa7')]&&(_0x54ab26=this[_0x7e0b('0xb2')]['fetchCommentThread']({'channelId':this[_0x7e0b('0x6')][_0x7e0b('0x77')][_0x7e0b('0xd3')](_0x7e0b('0x11c')),'threadId':_0x74948f})),_0x54ab26[_0x7e0b('0xae')](()=>{this[_0x7e0b('0xe1')](_0x2bc9c2)['_saved']=!0x0;});}),this[_0x7e0b('0x87')][_0x7e0b('0x2c')](_0x5d46f2,_0x7e0b('0xb5'));break;case _0x7e0b('0xf9'):this[_0x7e0b('0xa0')](_0x74948f,{'state':'open'});case _0x7e0b('0x138'):this[_0x7e0b('0x87')]['set'](_0x5d46f2,_0x7e0b('0x45')),this[_0x7e0b('0x8e')]('suggestionLoaded',_0x5d46f2);break;case _0x7e0b('0x45'):this[_0x7e0b('0x8e')](_0x7e0b('0xbb'),_0x5d46f2);}return _0x5d46f2[_0x7e0b('0xc9')](_0x309d92),_0x5d46f2;}[_0x7e0b('0xff')](_0x3cde14){const _0x547ed0=Array[_0x7e0b('0xa1')](_0x3cde14)[_0x7e0b('0x4a')](_0x7f6afb=>!_0x7f6afb[_0x7e0b('0x4b')]),_0x255e6b=this[_0x7e0b('0x7')]({'skipNotAttached':!0x0})[_0x7e0b('0x4a')](_0x433823=>!_0x433823[_0x7e0b('0x4b')]),_0x435280=_0x255e6b['filter'](_0x537a8d=>!_0x3cde14[_0x7e0b('0xdf')](_0x537a8d)),_0x96803f=new Map(_0x255e6b['map'](_0x14ca1f=>[_0x14ca1f,this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x14ca1f[_0x7e0b('0xee')],_0x14ca1f[_0x7e0b('0x52')],_0x7e0b('0x136'))])),_0x3d12e7=new Map(_0x255e6b['map'](_0x2d1eb5=>[_0x2d1eb5,_0x2d1eb5['getFirstRange']()])),_0x469c83=new Set(),_0x288ac0=new Set();for(let _0x5009a4=0x0;_0x5009a4<_0x547ed0[_0x7e0b('0xbe')];_0x5009a4++)_0x2529fd(_0x547ed0[_0x5009a4],_0x547ed0,_0x5009a4+0x1);for(let _0x10e7eb=0x0;_0x10e7eb<_0x547ed0[_0x7e0b('0xbe')];_0x10e7eb++)_0x2529fd(_0x547ed0[_0x10e7eb],_0x435280,0x0);for(let _0x1ee8e3=0x0;_0x1ee8e3<_0x547ed0[_0x7e0b('0xbe')];_0x1ee8e3++){const _0x2f5dd0=_0x547ed0[_0x1ee8e3];!_0x288ac0[_0x7e0b('0xdf')](_0x2f5dd0)&&_0x2f5dd0[_0x7e0b('0xf1')]&&(_0x2f5dd0[_0x7e0b('0xf1')]['next']===_0x2f5dd0&&(_0x2f5dd0['previous'][_0x7e0b('0xa9')]=null),_0x2f5dd0[_0x7e0b('0xf1')]=null),!_0x469c83[_0x7e0b('0xdf')](_0x2f5dd0)&&_0x2f5dd0[_0x7e0b('0xa9')]&&(_0x2f5dd0['next'][_0x7e0b('0xf1')]===_0x2f5dd0&&(_0x2f5dd0[_0x7e0b('0xa9')]['previous']=null),_0x2f5dd0[_0x7e0b('0xa9')]=null);}function _0x2529fd(_0xdaf3da,_0x525ae1,_0x2a83ff){for(let _0x446f80=_0x2a83ff;_0x446f80<_0x525ae1[_0x7e0b('0xbe')];_0x446f80++){const _0x308cc8=_0x55c8e3(_0xdaf3da,_0x525ae1[_0x446f80]);_0x308cc8&&(_0x308cc8[0x0][_0x7e0b('0xa9')]=_0x308cc8[0x1],_0x308cc8[0x1][_0x7e0b('0xf1')]=_0x308cc8[0x0],_0x469c83[_0x7e0b('0xac')](_0x308cc8[0x0]),_0x288ac0['add'](_0x308cc8[0x1]));}}function _0x55c8e3(_0x1d8a79,_0x31eb6c){if(_0x1d8a79[_0x7e0b('0xcf')]['id']!==_0x31eb6c[_0x7e0b('0xcf')]['id'])return null;const _0x1f6a7d=_0x96803f[_0x7e0b('0xd3')](_0x1d8a79)(_0x1d8a79,_0x31eb6c,_0x3d12e7[_0x7e0b('0xd3')](_0x1d8a79),_0x3d12e7['get'](_0x31eb6c));if(!_0x1f6a7d)return null;return _0x96803f[_0x7e0b('0xd3')](_0x31eb6c)(_0x1d8a79,_0x31eb6c,_0x3d12e7[_0x7e0b('0xd3')](_0x1d8a79),_0x3d12e7[_0x7e0b('0xd3')](_0x31eb6c))?_0x1f6a7d[0x1][_0x7e0b('0x112')]&&_0x1f6a7d[0x1][_0x7e0b('0x112')]['length']?null:_0x1f6a7d:null;}}[_0x7e0b('0x1')](_0x1f63a4){const _0x4e7561=Array[_0x7e0b('0xa1')](_0x1f63a4),_0x1ed4ab=this[_0x7e0b('0x7')]({'skipNotAttached':!0x0}),_0x1276d4=_0x1ed4ab[_0x7e0b('0x4a')](_0x88de27=>!_0x1f63a4['has'](_0x88de27)),_0x3aa887=new Map(_0x4e7561[_0x7e0b('0xcd')](_0x39253c=>[_0x39253c,this[_0x7e0b('0x57')][_0x7e0b('0xe4')](_0x39253c[_0x7e0b('0xee')],_0x39253c[_0x7e0b('0x52')],'join')])),_0x993455=new Map(_0x1ed4ab[_0x7e0b('0xcd')](_0x306e60=>[_0x306e60,_0x306e60[_0x7e0b('0x142')]()]));for(let _0x5d8f41=0x0;_0x5d8f41<_0x4e7561[_0x7e0b('0xbe')];_0x5d8f41++){if(_0x34e6d8(this,_0x4e7561[_0x5d8f41],_0x4e7561,_0x5d8f41+0x1))return!0x0;}for(let _0x4b45c4=0x0;_0x4b45c4<_0x4e7561[_0x7e0b('0xbe')];_0x4b45c4++){if(_0x34e6d8(this,_0x4e7561[_0x4b45c4],_0x1276d4,0x0))return!0x0;}return!0x1;function _0x34e6d8(_0x28102d,_0x467bc7,_0x27b67e,_0x1bbb3b){for(let _0x584968=_0x1bbb3b;_0x584968<_0x27b67e[_0x7e0b('0xbe')];_0x584968++){const _0x24447e=_0x27b67e[_0x584968];if(_0x24447e['type']!==_0x467bc7[_0x7e0b('0xee')]||_0x24447e[_0x7e0b('0xcf')]['id']!==_0x467bc7[_0x7e0b('0xcf')]['id']||_0x24447e[_0x7e0b('0x52')]!==_0x467bc7[_0x7e0b('0x52')])continue;const _0x201897=_0x3aa887[_0x7e0b('0xd3')](_0x467bc7),_0x1bfca2=_0x993455[_0x7e0b('0xd3')](_0x467bc7),_0x3496a9=_0x993455['get'](_0x24447e),_0x1e11a7=_0x467bc7['commentThread']&&_0x467bc7[_0x7e0b('0x112')]['length'],_0x295116=_0x24447e[_0x7e0b('0x112')]&&_0x24447e[_0x7e0b('0x112')][_0x7e0b('0xbe')];if(!_0x1e11a7&&_0x201897(_0x3496a9,_0x1bfca2))return _0x28102d[_0x7e0b('0x118')](_0x24447e,_0x467bc7),_0x993455['delete'](_0x467bc7),!0x0;if(!_0x295116&&_0x201897(_0x1bfca2,_0x3496a9))return _0x28102d['_joinSuggestions'](_0x467bc7,_0x24447e),_0x993455[_0x7e0b('0x15')](_0x24447e),!0x0;}return!0x1;}}[_0x7e0b('0x118')](_0x2927a7,_0x5442ec){if(_0x2927a7[_0x7e0b('0x4b')])for(const _0x2f22a6 of _0x5442ec['getRanges']())_0x2927a7[_0x7e0b('0x18')](_0x2f22a6);else{const _0x270e52=_0x5442ec[_0x7e0b('0xd5')]()['end'];this[_0x7e0b('0x89')](_0x2927a7,this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x2927a7[_0x7e0b('0xd5')]()[_0x7e0b('0x88')],_0x270e52));}_0x5442ec[_0x7e0b('0xc3')]();}}class Dt{constructor(_0xd47833){this['_editor']=_0xd47833,this[_0x7e0b('0xcc')]=_0xd47833[_0x7e0b('0x91')],this[_0x7e0b('0x3b')]=new Map(),this[_0x7e0b('0x78')]=new Map(),this[_0x7e0b('0x4e')]();}[_0x7e0b('0x71')](_0x48045c,_0x363884,_0x3a9931,_0x374b16,_0x12741e,_0x2bacbc){return new _0x232d62(this[_0x7e0b('0xcc')],{'type':_0x48045c,'subType':_0x363884,'id':_0x3a9931,'author':_0x374b16,'creator':_0x374b16,'attributes':_0x12741e,'onAttributesChange':_0x2bacbc,'onAccept':(..._0x7ed563)=>this[_0x7e0b('0xe4')](_0x48045c,_0x363884,_0x7e0b('0xf4'))(..._0x7ed563),'onDiscard':(..._0x412786)=>this[_0x7e0b('0xe4')](_0x48045c,_0x363884,'discard')(..._0x412786)});}[_0x7e0b('0xf0')](_0x121069,_0x681c9c,_0x198eac,_0x21d725){const _0x3ee56d=_0x121069+':'+_0x681c9c+':'+_0x198eac;this[_0x7e0b('0x3b')]['set'](_0x3ee56d,_0x21d725);}[_0x7e0b('0xe4')](_0x1233eb,_0x4227e2,_0x1df37a){const _0x3f08ea=_0x1233eb+':'+_0x4227e2+':'+_0x1df37a;return this[_0x7e0b('0x3b')][_0x7e0b('0xd3')](_0x3f08ea)||this[_0x7e0b('0x78')][_0x7e0b('0xd3')](_0x1233eb+':'+_0x1df37a);}[_0x7e0b('0x4e')](){const _0x1c305a=()=>{},_0x4e563c=_0x278653=>{_0x278653[_0x7e0b('0x106')]((_0x5dcc5a,_0x5213df)=>_0x5dcc5a[_0x7e0b('0x88')][_0x7e0b('0x20')](_0x5213df[_0x7e0b('0x88')])?0x1:-0x1),this[_0x7e0b('0xcc')][_0x7e0b('0xbc')](_0xabd811=>{for(const _0x186086 of _0x278653){let _0x2a854e;_0x2a854e=_0x186086[_0x7e0b('0x2f')]['isAtEnd']&&_0x186086['end'][_0x7e0b('0x32')]==_0x186086['start'][_0x7e0b('0x12e')]?_0xabd811['createSelection'](_0x186086[_0x7e0b('0x88')][_0x7e0b('0x12e')],'on'):_0xabd811[_0x7e0b('0x103')](_0x186086),this[_0x7e0b('0xcc')][_0x7e0b('0x141')](_0x2a854e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x18a1b2=(_0x4907b5,_0x227bb5)=>{this['_model'][_0x7e0b('0xbc')](_0x1bba84=>{const {commandName:_0x575e40,commandParams:_0x595e6b=[]}=_0x227bb5,_0x1034e5=_0x4907b5[_0x7e0b('0xcd')](_0x46e38f=>(_t(_0x46e38f)&&(_0x46e38f=this[_0x7e0b('0xcc')][_0x7e0b('0x51')](_0x46e38f[_0x7e0b('0x2f')])),_0x46e38f))[_0x7e0b('0x4a')](_0x4dce27=>'$graveyard'!==_0x4dce27[_0x7e0b('0x5f')][_0x7e0b('0x4d')]);if(_0x1034e5[_0x7e0b('0xbe')]<0x1)return;const _0x5ba33c=Array[_0x7e0b('0xa1')](this['_model'][_0x7e0b('0xf8')][_0x7e0b('0x7d')]['getRanges']())['map'](_0x350b7f=>_0x491aa7[_0x7e0b('0x31')](_0x350b7f));_0x1bba84[_0x7e0b('0x61')](_0x1034e5);for(const _0x229aae of this[_0x7e0b('0xb4')][_0x7e0b('0xc2')][_0x7e0b('0xc2')]())_0x229aae[_0x7e0b('0x11')]();_0x595e6b[_0x7e0b('0x70')]({'forceDefaultExecution':!0x0}),this[_0x7e0b('0xb4')][_0x7e0b('0x121')](_0x575e40,..._0x595e6b);const _0x528e92=_0x5ba33c[_0x7e0b('0x4a')](_0x1ac59c=>'$graveyard'!=_0x1ac59c[_0x7e0b('0x5f')]['rootName']);_0x528e92['length']>0x0&&_0x1bba84['setSelection'](_0x528e92);for(const _0x28348a of _0x5ba33c)_0x28348a[_0x7e0b('0x144')]();});},_0x17817f=(_0x5106cc,_0x4282c3)=>0x1==_0x5106cc[_0x7e0b('0xbe')]&&0x1==_0x4282c3[_0x7e0b('0xbe')]&&_0x5106cc[0x0][_0x7e0b('0x2f')]['isEqual'](_0x4282c3[0x0][_0x7e0b('0x88')]),_0x26b62d=(_0x1f1d85,_0x37807b,_0x4edfae,_0x299fd1)=>xt(_0x1f1d85,_0x37807b,_0x4edfae,_0x299fd1,this[_0x7e0b('0xcc')])?[_0x1f1d85,_0x37807b]:xt(_0x37807b,_0x1f1d85,_0x299fd1,_0x4edfae,this[_0x7e0b('0xcc')])?[_0x37807b,_0x1f1d85]:null;this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0xea'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('insertion:discard',_0x4e563c),this['_defaultCallbacks'][_0x7e0b('0x2c')]('insertion:join',_0x17817f),this['_defaultCallbacks'][_0x7e0b('0x2c')](_0x7e0b('0x12b'),_0x26b62d),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0xc7'),_0x4e563c),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('deletion:discard',_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x117'),_0x17817f),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x12c'),_0x26b62d),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x90'),_0x18a1b2),this['_defaultCallbacks']['set'](_0x7e0b('0x9d'),_0x1c305a),this['_defaultCallbacks'][_0x7e0b('0x2c')]('formatInline:join',_0x17817f),this[_0x7e0b('0x78')]['set'](_0x7e0b('0xdd'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x24'),_0x18a1b2),this[_0x7e0b('0x78')][_0x7e0b('0x2c')](_0x7e0b('0x99'),_0x1c305a),this[_0x7e0b('0x78')][_0x7e0b('0x2c')]('formatBlock:join',_0x17817f),this['_defaultCallbacks'][_0x7e0b('0x2c')]('formatBlock:chain',_0x1c305a);}}function Bt(_0x7cdbb3,_0x585bb4,_0xfcb79b){for(const _0x4d0682 of _0x585bb4['parent'][_0x7e0b('0x35')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4d0682['root']==_0x4d0682)return!0x1;if(!_0xfcb79b[_0x7e0b('0x54')](_0x4d0682))return!0x1;if(_0x7cdbb3['isObject'](_0x4d0682)||_0x7cdbb3[_0x7e0b('0x12a')](_0x4d0682))return!0x0;}return!0x1;}function _t(_0xcd12a6){return _0xcd12a6['end'][_0x7e0b('0x32')]==_0xcd12a6[_0x7e0b('0x88')]['nodeAfter']&&_0xcd12a6['end']['isAtStart'];}function Mt(_0x563208,_0x554fde,_0x3791c2,_0x2bd65d){const _0x155f4d=_0x5df75d=>!_0x5df75d['item']['is']('$textProxy')&&!_0x2bd65d[_0x7e0b('0x3d')](_0x5df75d[_0x7e0b('0x83')]),_0x2886a4=_0x563208[_0x7e0b('0x88')][_0x7e0b('0xc1')](_0x155f4d),_0x324c1c=_0x563208['end'][_0x7e0b('0xc1')](_0x155f4d,{'direction':'backward'});return(!_0x563208[_0x7e0b('0x88')][_0x7e0b('0xa4')](_0x2886a4)||!_0x563208['end']['isEqual'](_0x324c1c))&&(_0x2886a4['isBefore'](_0x324c1c)?_0x3791c2[_0x7e0b('0x12f')](_0x554fde,{'range':_0x3791c2[_0x7e0b('0x51')](_0x2886a4,_0x324c1c)}):_0x3791c2[_0x7e0b('0x113')](_0x554fde),!0x0);}function $t(_0x2120ff){return _0x1685bc(_0x2120ff);}function Nt(_0x526a58){const _0x5a52dd=_0x526a58[_0x7e0b('0x88')][_0x7e0b('0x12e')];return _0x5a52dd&&_0x5a52dd['is'](_0x7e0b('0xde'));}function Rt(_0x1f556a,_0x905b13){const _0x16dbb7=_0x905b13[_0x7e0b('0x7b')][_0x7e0b('0x3d')](_0x1f556a)||_0x905b13[_0x7e0b('0x7b')][_0x7e0b('0x68')](_0x1f556a);return _0x905b13['createRange'](_0x905b13[_0x7e0b('0xda')](_0x1f556a,'before'),_0x16dbb7?_0x905b13[_0x7e0b('0x6c')](_0x1f556a):_0x905b13['createPositionAt'](_0x1f556a,'end'));}function xt(_0x2ec874,_0xdcdf5,_0x42ca3a,_0x3cc74c,_0x2f36e9){if(_0x42ca3a['end'][_0x7e0b('0xa4')](_0x3cc74c[_0x7e0b('0x88')]))return!0x0;if(_0x2ec874[_0x7e0b('0xee')]!=_0xdcdf5['type'])return!0x1;if(!_0x42ca3a[_0x7e0b('0x2f')][_0x7e0b('0x129')](_0x3cc74c['start']))return!0x1;const _0x46cd38=_0x2f36e9[_0x7e0b('0x51')](_0x42ca3a['end'],_0x3cc74c[_0x7e0b('0x88')])[_0x7e0b('0x14')]();for(const _0x25b06a of _0x46cd38)if([_0x7e0b('0xa'),_0x7e0b('0x104')]['includes'](_0x25b06a[_0x7e0b('0xee')])&&_0x2f36e9[_0x7e0b('0x7b')][_0x7e0b('0x12a')](_0x25b06a[_0x7e0b('0x83')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x47c5=['commands','has','@external','low','deletion:chain','isExternal','addMarker:suggestion:formatBlock','_suggestionFactory','_rangeIsInLocalUserInsertion','isLocal','isEqual','markMultiRangeInsertion','includes','_defaultCallbacks','getChangedMarkers','change:data','mapper','high','_checkSuggestionCorrectness','filter','_joinWithAdjacentSuggestions','_adapter','ck-suggestion-marker--active','listenTo','sort','for','nodeAfter','execute','reconvertMarker','removeMarker','locale','range','editor','isRemovable','_suggestions','detach','_commentsRepository','push','bindElementToMarker','addComment','attributes','removeAttribute','deleteContent','_handleNewSuggestionMarker','conversion','_descriptionFactory','acceptAllSuggestions','splitPosition','toJSON','isMultiRange','subType','values','isCollapsed','_editor','join','elementEnd','trackChanges.trackFormatChanges','collaboration.channelId','track-changes-adapter-already-set','isObject','change','delete','accept','markers','nodeBefore','forceDefaultExecution','removeClass','getAllAdjacentSuggestions','start','rootName','insertion','config','chain','_cutOutSuggestionMarker','getSuggestion','_registerDefaultCallbacks','getCommentThread','get','deletion:','CommentsRepository','_getAuthorFromId','refresh','createSelection','add','multi','update:suggestion','insertion:','isAtStart','getRange','head','getAttribute','data','_updateSuggestionData','isUndo','_setSuggestionData','getCustomProperty','originalSuggestionId','previous','track-changes-suggestion-not-found','fromCharCode','lowest','containsRangeInObject','set','map','showSuggestionHighlights','getIntersection','_suggestionState','fire','change:_saved','selection','hasCommentThread','requires','_mergeNestedSuggestions','writer','_addSuggestionMarker','deletion','root','acceptSuggestion','clone','getLastMatchingPosition','external:','consume','formatBlock:discard','getMultiRangeId','never','markerName','formatBlock:join','discardSelectedSuggestions','$graveyard','_joinSuggestions','insertion:accept','addCommentThread','suggestionLoaded','_saved','from','howMany','error-saving-suggestion-data-suggestion-discarded','getDifference','schema','discardAllSuggestions','_findSuggestions','isBlock','track-changes-user-not-found','isInsideObject','formatInline:accept','document','suggestion:','suggestion','createPositionBefore','createPositionAfter','trackChanges','addSuggestionData','commandName','containerElement','data-suggestion','forward','Users','highest','_enabledCommands','containsRange','then','move','isAtEnd','insertion:join','markInsertion','change:activeMarkers','elementStart','parent','createdAt','addMarkerName','isTouching','marker-count','newRange','formatGroupId','track-changes-adapter-missing-getsuggestion','getRanges','length','skipNestingCheck','formatInline:discard','formatInline:','remove','next','discard','toViewElement','end','markInlineFormat','activeMarkers','_getSuggestionData','size','insertion:discard','getItems','containsItem','isSelectable','removeMarkers','discardSuggestion','isOwn','markerReady','elementToElement','unbind','isInContent','getFirstMarker','createRange','markDeletion','formatBlock:accept','deletion:accept','insertion:chain','markerToData','isDocumentOperation','markerNameToElements','value','removed','resolve','_setSuggestionRange','hasComments','_splitMarkerName','addSuggestion','fetchCommentThread','ck-suggestion-marker-formatBlock','return','oldRange','markBlockFormat','catch','element','multipleBlocks','$textProxy','always','applyOperation','PendingActions','_getExternalAuthor','addRange','buildSuggestion','enableCommand','addHighlight','dataToMarker','rejected','containsPosition','formatInline','isBefore','updateMarker','model','dataReady','markMultiRangeDeletion','getUser','isAfter','createPositionAt','getChanges','acceptSelectedSuggestions','moveTargetPosition','setAttribute','upcast','registerPostFixer','position','_breakSuggestionMarker','isIntersectingWithRange','commentThread','createElement','before','registerCustomCallback','isNextTo','addClass','some','options','markMultiRangeBlockFormat','getWalker','formatInline:chain','getFirstRange','trackChangesCommand','_isForcedDefaultExecutionBlock','_customCallbacks','authoredAt','hasSuggestion','ready','trackChanges.mergeNestedSuggestions','getSuggestions','_addThreadToSuggestion','ck-suggestion-marker','insertContent','adapter','batch','formatBlock:','define','getShiftedBy','plugins','consumable','unbindElementFromMarkerName','isLimit','creator','formatBlock','after','setSelection','getSuggestionCallback','deletion:discard','updateSuggestion','name','getNearestSelectionRange','_trackFormatChanges','fromRange','differ','group','open','_createSuggestion','item','type','split','dataDowncast','_refreshSuggestionsChain','addMarker','editingDowncast','_model','author','stop','_removeSuggestion','every','splice','formatInline:join','suggestionChanged','PENDING_ACTION_SUGGESTION','backward','pluginName','ck-suggestion-marker-','notReady'];(function(_0x342c28,_0x47c5c3){const _0x2a0847=function(_0x35d6b1){while(--_0x35d6b1){_0x342c28['push'](_0x342c28['shift']());}};_0x2a0847(++_0x47c5c3);}(_0x47c5,0x13f));const _0x2a08=function(_0x342c28,_0x47c5c3){_0x342c28=_0x342c28-0x0;let _0x2a0847=_0x47c5[_0x342c28];return _0x2a0847;};import{Plugin as _0x9bf3f0,PendingActions as _0x5e0d00}from'ckeditor5/src/core';import{LiveRange as _0x104eb2}from'ckeditor5/src/engine';import{CKEditorError as _0x248bc3,uid as _0x1938d2,priorities as _0x386e38,logWarning as _0x5d2605}from'ckeditor5/src/utils';import{toWidget as _0x4cf11d}from'ckeditor5/src/widget';import{Users as _0x12cb27,hashObject as _0x4c1c58}from'ckeditor5-collaboration/src/collaboration-core';import _0x2fc740 from'./commands/trackchangescommand';import _0x3fef26 from'./commands/acceptsuggestioncommand';import _0x411370 from'./commands/discardsuggestioncommand';import _0x25ef5a from'./commands/executeonallsuggestionscommand';import _0x51188b from'./commands/executeonselectedsuggestionscommand';import _0x21d5ce from'./suggestion';import _0x227f09 from'./suggestiondescriptionfactory';import _0x57e084 from'./integrations/alignment';import _0x2fd8a2 from'./integrations/basicstyles';import _0x130288 from'./integrations/blockquote';import _0x2db2aa from'./integrations/ckbox';import _0x271865 from'./integrations/codeblock';import _0x4c716d from'./integrations/comments';import _0x46ca49 from'./integrations/deletecommand';import _0x44ae24 from'./integrations/documentlist';import _0x312133 from'./integrations/entercommand';import _0x4482c6 from'./integrations/findandreplace';import _0x12aafc from'./integrations/font';import _0x2382af from'./integrations/formatpainter';import _0x1abf64 from'./integrations/heading';import _0xf046fb from'./integrations/highlight';import _0x36e02f from'./integrations/horizontalline';import _0x4347cc from'./integrations/htmlembed';import _0x1d1079 from'./integrations/image';import _0x2b42af from'./integrations/imagereplace';import _0x58db04 from'./integrations/importword';import _0x710fb2 from'./integrations/indent';import _0x1e3bb0 from'./integrations/inputcommand';import _0x406902 from'./integrations/link';import _0x453cb0 from'./integrations/list';import _0xf568fe from'./integrations/listproperties';import _0x6c0f38 from'./integrations/mediaembed';import _0x10e95e from'./integrations/mention';import _0x4c714e from'./integrations/pagebreak';import _0x1fea08 from'./integrations/paragraph';import _0x1cd2c6 from'./integrations/removeformat';import _0x297299 from'./integrations/restrictededitingmode';import _0x2218ad from'./integrations/shiftentercommand';import _0x5c47f6 from'./integrations/standardeditingmode';import _0x2644ae from'./integrations/style';import _0x1f19e8 from'./integrations/table';import _0x2808fb from'./integrations/tablemergesplit';import _0x5bcff2 from'./integrations/tableheadings';import _0x247bd6 from'./integrations/tableclipboard';import _0xd8d317 from'./integrations/tablecolumnresize';import _0xfa75ee from'./integrations/template';import _0x2f5fa7 from'./integrations/tableofcontents';import _0x20a55d from'./integrations/title';import _0x517160 from'./integrations/undo';import{getTranslation as _0x5528e0}from'./utils/common-translations';import _0x100e65 from'./integrations/tablecaption';import _0x39c704 from'./integrations/documentlistproperties';import _0x15328e from'./integrations/tableproperties';export default class p extends _0x9bf3f0{static get[_0x2a08('0x71')](){return['CommentsRepository',_0x12cb27,_0x5e0d00,_0x57e084,_0x2fd8a2,_0x130288,_0x2db2aa,_0x271865,_0x4c716d,_0x46ca49,_0x44ae24,_0x39c704,_0x312133,_0x4482c6,_0x12aafc,_0x2382af,_0x1abf64,_0xf046fb,_0x36e02f,_0x4347cc,_0x1d1079,_0x2b42af,_0x58db04,_0x710fb2,_0x1e3bb0,_0x406902,_0x453cb0,_0xf568fe,_0x6c0f38,_0x10e95e,_0x4c714e,_0x1fea08,_0x1cd2c6,_0x297299,_0x2218ad,_0x5c47f6,_0x2644ae,_0x1f19e8,_0x2808fb,_0x5bcff2,_0x100e65,_0x247bd6,_0xd8d317,_0x2f5fa7,_0x15328e,_0xfa75ee,_0x20a55d,_0x517160];}static get[_0x2a08('0x140')](){return'TrackChangesEditing';}constructor(_0x3cfb6a){function _0x205c33(_0x185669){return _0x185669['map'](_0x26e90=>String[_0x2a08('0x65')](_0x26e90))[_0x2a08('0x38')]('');}super(_0x3cfb6a),this[_0x2a08('0x68')]('activeMarkers',[]),this['on'](_0x2a08('0xa7'),(_0x3f585c,_0x310bea,_0x81d29d,_0x3a16dc)=>{this[_0x2a08('0x136')]['change'](()=>{for(const _0x3c0b29 of[..._0x3a16dc,..._0x81d29d])this[_0x2a08('0x136')]['markers'][_0x2a08('0x3')](_0x3c0b29)&&_0x3cfb6a['editing'][_0x2a08('0x1e')](_0x3c0b29);});}),this[_0x2a08('0x2f')]=new _0x227f09(this[_0x2a08('0x22')][_0x2a08('0xf1')]['schema'],this['editor']['locale']),this[_0x2a08('0x17')]=null,this[_0x2a08('0x9')]=new Dt(this[_0x2a08('0x22')]),this[_0x2a08('0x24')]=new Map(),this[_0x2a08('0x26')]=_0x3cfb6a[_0x2a08('0x11c')]['get'](_0x2a08('0x51')),this[_0x2a08('0xa0')]=new Set(),this[_0x2a08('0x136')]=this[_0x2a08('0x22')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2a08('0x10d')]=!0x1,_0x3cfb6a[_0x2a08('0x49')][_0x2a08('0x11a')](_0x2a08('0x3a'),'default'),this[_0x2a08('0x129')]=_0x3cfb6a[_0x2a08('0x49')][_0x2a08('0x4f')]('trackChanges.trackFormatChanges'),_0x3cfb6a[_0x2a08('0x49')]['define'](_0x2a08('0x112'),!0x0),this[_0x2a08('0x72')]=_0x3cfb6a['config']['get'](_0x2a08('0x112')),this['trackChangesCommand']=new _0x2fc740(_0x3cfb6a,this[_0x2a08('0xa0')]),this[_0x205c33([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x205c33([0x34,0x30,0x34,0x36,0x31,0x36,0x33,0x34]);}['init'](){const _0x3807c5=this[_0x2a08('0x22')];_0x3807c5[_0x2a08('0x2e')][_0x2a08('0x1b')]('editingDowncast')['markerToHighlight']({'model':_0x2a08('0x95'),'view':_0x13e25f=>{const {id:_0x45ea28,type:_0x14548c}=this['_splitMarkerName'](_0x13e25f[_0x2a08('0x7f')]),_0x57429c=[_0x2a08('0x115'),_0x2a08('0x0')+_0x14548c];let _0x201aaa=0xbb8;return this[_0x2a08('0xbc')][_0x2a08('0xe')](_0x13e25f[_0x2a08('0x7f')])&&(_0x57429c[_0x2a08('0x27')](_0x2a08('0x18')),_0x201aaa=0xbc2),_0x2a08('0x75')==_0x14548c&&(_0x201aaa+=0x5),{'classes':_0x57429c,'attributes':{'data-suggestion':_0x45ea28},'priority':_0x201aaa};}}),_0x3807c5[_0x2a08('0x2e')][_0x2a08('0x1b')](_0x2a08('0x132'))[_0x2a08('0x55')](_0x53d74d=>{_0x53d74d['on']('addMarker:suggestion',(_0x1e1534,_0x447c30,_0x5e995b)=>{if(!_0x5e995b[_0x2a08('0x107')][_0x2a08('0x6a')])return;const _0x5a17c8=_0x447c30[_0x2a08('0x12f')];if(!_0x5a17c8)return;const _0x557c13=_0x5e995b[_0x2a08('0x12')][_0x2a08('0xb9')](_0x5a17c8);_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x8c')][_0x2a08('0x3d')](_0x5a17c8)&&_0x557c13&&!_0x557c13[_0x2a08('0x61')]('widget')&&_0x557c13['is'](_0x2a08('0x9b'))&&_0x4cf11d(_0x557c13,_0x5e995b[_0x2a08('0x73')]);},{'priority':_0x2a08('0x13')});}),_0x3807c5[_0x2a08('0x2e')][_0x2a08('0x1b')]('dataDowncast')['markerToHighlight']({'model':_0x2a08('0x95'),'view':(_0x28861b,_0x3c0259)=>{if(!_0x3c0259[_0x2a08('0x107')][_0x2a08('0x6a')])return null;const {type:_0x5e7e5e}=this[_0x2a08('0xd8')](_0x28861b[_0x2a08('0x7f')]);return{'classes':[_0x2a08('0x115'),'ck-suggestion-marker-'+_0x5e7e5e],'priority':0xbb8};}});const _0x202b66=({showActiveMarkers:_0x2e2910=!0x0}={})=>(_0x3f160f,_0x3b1a48,_0x228529)=>{if(!_0x3b1a48[_0x2a08('0x12f')])return;if(_0x3b1a48[_0x2a08('0x12f')]['is'](_0x2a08('0x6f')))return void _0x228529['consumable']['consume'](_0x3b1a48['item'],_0x3f160f[_0x2a08('0x127')]);const _0x115ec1=_0x228529[_0x2a08('0x12')][_0x2a08('0xb9')](_0x3b1a48['item']);if(!(_0x3b1a48[_0x2a08('0x12f')]['is'](_0x2a08('0xe0'))&&_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x8c')][_0x2a08('0x8f')](_0x3b1a48[_0x2a08('0x12f')])&&!_0x115ec1[_0x2a08('0x61')](_0x2a08('0xea'))))return;const {id:_0x234ea8}=this[_0x2a08('0xd8')](_0x3b1a48[_0x2a08('0x7f')]);_0x228529[_0x2a08('0x73')][_0x2a08('0x105')]([_0x2a08('0x115'),'ck-suggestion-marker-formatBlock'],_0x115ec1),_0x228529[_0x2a08('0x73')][_0x2a08('0xfa')]('data-suggestion',_0x234ea8,_0x115ec1),_0x228529[_0x2a08('0x12')][_0x2a08('0x28')](_0x115ec1,_0x3b1a48[_0x2a08('0x7f')]),_0x2e2910&&(this[_0x2a08('0xbc')][_0x2a08('0xe')](_0x3b1a48[_0x2a08('0x7f')])?_0x228529[_0x2a08('0x73')][_0x2a08('0x105')]('ck-suggestion-marker--active',_0x115ec1):_0x228529[_0x2a08('0x73')][_0x2a08('0x44')]('ck-suggestion-marker--active',_0x115ec1));for(const _0x43cf7b of _0x3807c5[_0x2a08('0xf1')]['createRangeIn'](_0x3b1a48['item'])[_0x2a08('0xc0')]())_0x228529[_0x2a08('0x11d')][_0x2a08('0x7b')](_0x43cf7b,_0x3f160f[_0x2a08('0x127')]);_0x228529['consumable'][_0x2a08('0x7b')](_0x3b1a48[_0x2a08('0x12f')],_0x3f160f[_0x2a08('0x127')]);};_0x3807c5['conversion'][_0x2a08('0x1b')](_0x2a08('0x132'))[_0x2a08('0x55')](_0x3c3850=>{_0x3c3850['on']('addMarker:suggestion:formatBlock',(_0x387791,_0x276d4e,_0x241d69)=>{_0x241d69[_0x2a08('0x107')][_0x2a08('0x6a')]&&_0x202b66({'showActiveMarkers':!0x1})(_0x387791,_0x276d4e,_0x241d69);},{'priority':_0x2a08('0x9f')});}),_0x3807c5['conversion'][_0x2a08('0x1b')](_0x2a08('0x132'))[_0x2a08('0xd0')]({'model':_0x2a08('0x95'),'view':(_0x3eb8d3,_0x1dfd6b)=>_0x1dfd6b[_0x2a08('0x107')][_0x2a08('0x6a')]?null:{'group':_0x2a08('0x95'),'name':_0x3eb8d3['substr'](0xb)}}),_0x3807c5[_0x2a08('0x2e')][_0x2a08('0x1b')](_0x2a08('0xfb'))[_0x2a08('0xc7')]({'view':{'name':_0x2a08('0x95'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a0e92,{writer:_0x5bc7be})=>{let _0x5f3d71=_0x2a08('0x94')+_0x4a0e92[_0x2a08('0x5c')]('suggestion-type')+':'+_0x4a0e92[_0x2a08('0x5c')]('id');return _0x4a0e92[_0x2a08('0x5c')]('marker-count')&&(_0x5f3d71+=':'+_0x4a0e92['getAttribute'](_0x2a08('0xad'))),_0x5bc7be[_0x2a08('0x101')]('$marker',{'data-name':_0x5f3d71});}}),_0x3807c5[_0x2a08('0x2e')]['for'](_0x2a08('0xfb'))[_0x2a08('0xeb')]({'view':'suggestion'}),_0x3807c5[_0x2a08('0x2e')]['for'](_0x2a08('0x135'))[_0x2a08('0x55')](_0x130c2b=>{_0x130c2b['on'](_0x2a08('0x8'),_0x202b66(),{'priority':_0x2a08('0x13')});}),_0x3807c5['conversion'][_0x2a08('0x1b')](_0x2a08('0x135'))[_0x2a08('0x55')](_0x2ff032=>{_0x2ff032['on']('removeMarker:suggestion:formatBlock',(_0x67cf7c,_0x35e923,_0xffe75)=>{const _0x36a205=_0xffe75[_0x2a08('0x12')][_0x2a08('0xd2')](_0x35e923[_0x2a08('0x7f')]);if(_0x36a205)for(const _0x142218 of _0x36a205)_0x142218[_0x2a08('0x61')](_0x2a08('0xea'))||(_0xffe75[_0x2a08('0x73')][_0x2a08('0x44')](['ck-suggestion-marker',_0x2a08('0xdb'),_0x2a08('0x18')],_0x142218),_0xffe75[_0x2a08('0x73')][_0x2a08('0x2b')](_0x2a08('0x9c'),_0x142218),_0xffe75[_0x2a08('0x12')][_0x2a08('0x11e')](_0x142218,_0x35e923[_0x2a08('0x7f')]));},{'priority':'high'});}),_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x93')][_0x2a08('0xfc')](_0x599e67=>{let _0x43b17b=!0x1;const _0x4b2516=Array[_0x2a08('0x88')](_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x93')][_0x2a08('0x12b')][_0x2a08('0x10')]()),_0x5720d0=new Set();for(const {name:_0x4d9354,data:_0x5331f6}of _0x4b2516){const {group:_0x183cab,type:_0x274ce1,id:_0x1e65f4}=this[_0x2a08('0xd8')](_0x4d9354);if('suggestion'!==_0x183cab)continue;const _0x23319e=this[_0x2a08('0x24')][_0x2a08('0x4f')](_0x1e65f4);if(null!=_0x5331f6['newRange']){_0x2a08('0xee')==_0x274ce1&&(_0x43b17b=_0x43b17b||Mt(_0x5331f6[_0x2a08('0xae')],_0x4d9354,_0x599e67,_0x3807c5['model'][_0x2a08('0x8c')]));if(_0x5331f6['newRange'][_0x2a08('0x36')]||_0x2a08('0x82')==_0x5331f6[_0x2a08('0xae')][_0x2a08('0x76')][_0x2a08('0x47')]||'formatBlock'==_0x274ce1&&!Nt(_0x5331f6[_0x2a08('0xae')])||'deletion'==_0x274ce1&&!(!_t(_0x396358=_0x5331f6[_0x2a08('0xae')])&&!function(_0x57bea9){return _0x57bea9[_0x2a08('0x46')][_0x2a08('0xa9')]==_0x57bea9[_0x2a08('0xba')][_0x2a08('0x42')]&&_0x57bea9['start']['isAtEnd'];}(_0x396358)))_0x599e67[_0x2a08('0x1f')](_0x4d9354),_0x43b17b=!0x0;else{if(!_0x23319e||!_0x23319e[_0x2a08('0xc9')])continue;_0x5720d0[_0x2a08('0x55')](_0x23319e);}}}var _0x396358;return _0x5720d0[_0x2a08('0xbe')]>0x0&&(_0x43b17b=!!this[_0x2a08('0x16')](_0x5720d0)||_0x43b17b),_0x43b17b;}),_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x93')]['registerPostFixer'](_0x103880=>{let _0x507ba4=!0x1;for(const _0x360d1f of _0x3807c5['model'][_0x2a08('0x93')][_0x2a08('0x12b')][_0x2a08('0xf7')]()){if('insert'!=_0x360d1f['type'])continue;const _0x432cfb=_0x360d1f['position'][_0x2a08('0x11b')](_0x360d1f[_0x2a08('0xb2')]);if(_0x432cfb[_0x2a08('0xa4')])for(const _0x4603c3 of this['_suggestions'][_0x2a08('0x35')]()){if(_0x4603c3['isMultiRange']||!_0x4603c3[_0x2a08('0xc9')])continue;if(_0x2a08('0x121')!=_0x4603c3['type'])continue;const _0x2ea0f2=_0x4603c3['getFirstRange']();if(_0x2ea0f2[_0x2a08('0x46')][_0x2a08('0xa9')]!=_0x2ea0f2[_0x2a08('0xba')]['parent']&&_0x2ea0f2[_0x2a08('0xba')]['isEqual'](_0x360d1f['position'])){const _0x307320=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xcb')](_0x2ea0f2[_0x2a08('0x46')],_0x432cfb);_0x103880[_0x2a08('0xf0')](_0x4603c3[_0x2a08('0xca')](),{'range':_0x307320}),_0x507ba4=!0x0;}}}return _0x507ba4;}),_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x41')]['on'](_0x2a08('0x57'),(_0x458608,_0x25f4fa,_0x197b21)=>{if(null==_0x197b21){const {id:_0x141824}=this[_0x2a08('0xd8')](_0x25f4fa[_0x2a08('0x127')]),_0x11d116=this['_suggestions'][_0x2a08('0x4f')](_0x141824);_0x11d116&&_0x11d116[_0x2a08('0xab')](_0x25f4fa[_0x2a08('0x127')]);}}),_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x93')]['on'](_0x2a08('0x11'),()=>{const _0x180a47=Array[_0x2a08('0x88')](_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x93')]['differ']['getChangedMarkers']())['filter'](_0x220581=>_0x2a08('0x95')===this[_0x2a08('0xd8')](_0x220581['name'])[_0x2a08('0x12c')]);if(0x0===_0x180a47[_0x2a08('0xb2')])return;_0x180a47[_0x2a08('0x1a')]((_0x50e864,_0x2b5d98)=>{const _0x107cc3=_0x50e864['data'][_0x2a08('0xdd')],_0x3d26cd=_0x2b5d98[_0x2a08('0x5d')][_0x2a08('0xdd')];return null===_0x107cc3&&null===_0x3d26cd?0x0:null===_0x107cc3&&null!==_0x3d26cd?-0x1:null!==_0x107cc3&&null===_0x3d26cd?0x1:_0x107cc3['start']['isBefore'](_0x3d26cd['start'])?-0x1:0x1;});const _0x464b1a=new Set(),_0x3e250a=new Set();for(const {name:_0x27e8d9,data:_0x4b29ff}of _0x180a47){const {id:_0xe3a1f4}=this[_0x2a08('0xd8')](_0x27e8d9);if(null===_0x4b29ff[_0x2a08('0xdd')]){const _0x2f4924=this[_0x2a08('0x2d')](_0x27e8d9);_0x3e250a[_0x2a08('0x55')](_0x2f4924);}else{const _0x9c3746=this[_0x2a08('0x24')][_0x2a08('0x4f')](_0xe3a1f4);null!==_0x4b29ff[_0x2a08('0xae')]||_0x9c3746[_0x2a08('0xc9')]?(_0x464b1a[_0x2a08('0x55')](_0x9c3746[_0x2a08('0x5b')]),_0x3e250a[_0x2a08('0x55')](_0x9c3746)):this[_0x2a08('0x139')](_0x9c3746);}}_0x3e250a['size']>0x0&&this[_0x2a08('0x133')](_0x3e250a);for(const _0x3b16c5 of _0x464b1a)this[_0x2a08('0x6d')](_0x2a08('0x13d'),_0x3b16c5);}),_0x3807c5[_0x2a08('0xf1')]['on'](_0x2a08('0xe4'),(_0x24f87f,_0x1211ce)=>{const _0x30343e=_0x1211ce[0x0];if(!this[_0x2a08('0x24')]['size'])return;if(!_0x30343e[_0x2a08('0xd1')])return;if(_0x30343e[_0x2a08('0x118')][_0x2a08('0x5f')]||!_0x30343e[_0x2a08('0x118')][_0x2a08('0xb')])return;let _0x423ad7,_0x66f0b6;switch(_0x30343e['type']){case'insert':_0x423ad7=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xf6')](_0x30343e[_0x2a08('0xfd')]),_0x66f0b6=_0x423ad7['getShiftedBy'](_0x30343e[_0x2a08('0x89')]);break;case _0x2a08('0x131'):_0x423ad7=_0x3807c5['model'][_0x2a08('0xf6')](_0x30343e[_0x2a08('0x31')]),_0x66f0b6=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xf6')](_0x30343e[_0x2a08('0xf9')]);break;case _0x2a08('0xa3'):_0x423ad7=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xf6')](_0x30343e['targetPosition']),_0x66f0b6=_0x423ad7[_0x2a08('0x11b')](_0x30343e['howMany']);break;default:return;}const _0x1c76ed=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xcb')](_0x423ad7,_0x66f0b6);_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x3e')](()=>{for(const {suggestion:_0x449d03,meta:_0x2144a8}of this[_0x2a08('0x8e')](_0x1c76ed)){if(_0x449d03[_0x2a08('0x33')])continue;if('formatInline'==_0x449d03[_0x2a08('0x130')])continue;const _0x25c2d0=_0x449d03[_0x2a08('0x5d')]&&_0x449d03['data'][_0x2a08('0xe1')];(_0x2a08('0x121')!=_0x449d03[_0x2a08('0x130')]||_0x2a08('0x131')==_0x30343e['type']&&!_0x25c2d0)&&(_0x2144a8['containsRangeInObject']||'insertion'==_0x449d03[_0x2a08('0x130')]&&_0x2144a8['isOwn']||_0x449d03['getFirstRange']()[_0x2a08('0xa1')](_0x1c76ed)&&this[_0x2a08('0xfe')](_0x449d03,_0x423ad7,_0x66f0b6));}});},{'priority':_0x2a08('0x66')}),_0x3807c5[_0x2a08('0xf1')]['on'](_0x2a08('0x2c'),(_0x220737,_0x23738a)=>{const _0x5ad757=_0x23738a[0x0],_0x45fb28=_0x23738a[0x1];if(_0x45fb28&&_0x45fb28['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x2a08('0x10c')][_0x2a08('0xd3')])return;if(_0x5ad757['isCollapsed'])return;const _0x8e6a42=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x8c')],{start:_0xceec9b,end:_0x53483c}=_0x5ad757['getFirstRange'](),_0x4301bc=_0xceec9b[_0x2a08('0x1c')]&&_0x8e6a42[_0x2a08('0x11f')](_0xceec9b[_0x2a08('0x1c')])?null:_0x8e6a42[_0x2a08('0x128')](_0xceec9b,_0x2a08('0x9d')),_0x451f91=_0x53483c[_0x2a08('0x42')]&&_0x8e6a42[_0x2a08('0x11f')](_0x53483c['nodeBefore'])?null:_0x8e6a42[_0x2a08('0x128')](_0x53483c,'backward'),_0x44d54c=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xcb')](_0x4301bc?_0x4301bc['start']:_0xceec9b,_0x451f91?_0x451f91[_0x2a08('0xba')]:_0x53483c);_0x3807c5[_0x2a08('0xf1')]['change'](_0x132942=>{this[_0x2a08('0xcc')](_0x44d54c);const _0x41bb8b=_0x3807c5['model'][_0x2a08('0x8c')][_0x2a08('0x128')](_0x44d54c[_0x2a08('0x46')]);_0x5ad757['is']('documentSelection')?_0x132942[_0x2a08('0x123')](_0x41bb8b):_0x5ad757['setTo'](_0x41bb8b);}),_0x220737[_0x2a08('0x138')]();},{'priority':_0x386e38['normal']+0xa}),_0x3807c5[_0x2a08('0xf1')]['on'](_0x2a08('0x116'),(_0x2b6512,_0x2fe73c)=>{const _0x4b33f4=_0x2fe73c[_0x2fe73c['length']-0x1];_0x4b33f4&&_0x4b33f4[_0x2a08('0x43')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x3e')](()=>{let _0x17fa8e=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x116')](_0x2fe73c[0x0],_0x2fe73c[0x1],_0x2fe73c[0x2],{'forceDefaultExecution':!0x0});if(!_0x17fa8e)return;_0x2b6512[_0x2a08('0xdc')]=_0x17fa8e[_0x2a08('0x78')]();const _0x263d92=_0x17fa8e[_0x2a08('0xba')][_0x2a08('0x42')],_0x2d35ee=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0x8c')];_0x263d92&&_0x2d35ee[_0x2a08('0x8f')](_0x263d92)&&!_0x2d35ee['isObject'](_0x263d92)&&(_0x17fa8e=_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xcb')](_0x17fa8e['start'],_0x3807c5[_0x2a08('0xf1')][_0x2a08('0xf6')](_0x263d92,_0x2a08('0xba')))),this[_0x2a08('0xa6')](_0x17fa8e);}),_0x2b6512['stop']());},{'priority':_0x2a08('0x13')}),this[_0x2a08('0x22')][_0x2a08('0x2')][_0x2a08('0x55')](_0x2a08('0x98'),this['trackChangesCommand']),this[_0x2a08('0xe9')](_0x2a08('0x98'));const _0x82e7a5=new _0x3fef26(_0x3807c5,this[_0x2a08('0x24')]);_0x3807c5[_0x2a08('0x2')][_0x2a08('0x55')]('acceptSuggestion',_0x82e7a5),this[_0x2a08('0xe9')](_0x2a08('0x77'));const _0x427a5e=new _0x411370(_0x3807c5,this[_0x2a08('0x24')]);_0x3807c5[_0x2a08('0x2')][_0x2a08('0x55')](_0x2a08('0xc4'),_0x427a5e),this[_0x2a08('0xe9')]('discardSuggestion'),_0x3807c5['commands'][_0x2a08('0x55')](_0x2a08('0x30'),new _0x25ef5a(_0x3807c5,_0x82e7a5,this['_suggestions'])),this['enableCommand'](_0x2a08('0x30')),_0x3807c5[_0x2a08('0x2')][_0x2a08('0x55')](_0x2a08('0x8d'),new _0x25ef5a(_0x3807c5,_0x427a5e,this['_suggestions'])),this[_0x2a08('0xe9')](_0x2a08('0x8d')),_0x3807c5['commands']['add'](_0x2a08('0xf8'),new _0x51188b(_0x3807c5,_0x82e7a5,this['_suggestions'])),this[_0x2a08('0xe9')]('acceptSelectedSuggestions'),_0x3807c5[_0x2a08('0x2')][_0x2a08('0x55')]('discardSelectedSuggestions',new _0x51188b(_0x3807c5,_0x427a5e,this['_suggestions'])),this[_0x2a08('0xe9')](_0x2a08('0x81'));const _0x27c55d=_0x3807c5[_0x2a08('0x11c')][_0x2a08('0x4f')](_0x2a08('0x51'));this[_0x2a08('0x19')](_0x27c55d,_0x2a08('0x29'),(_0x415632,{threadId:_0x229955})=>{const _0x5d4bc1=this[_0x2a08('0x24')][_0x2a08('0x4f')](_0x229955);_0x5d4bc1&&_0x5d4bc1['commentThread']&&0x1===_0x5d4bc1[_0x2a08('0x100')][_0x2a08('0xb2')]&&this[_0x2a08('0x5e')](_0x229955,{'hasComments':!0x0});},{'priority':_0x2a08('0x5')}),this['listenTo'](_0x27c55d,'removeComment',(_0x36d60c,{threadId:_0x223bfb})=>{const _0x25a405=this[_0x2a08('0x24')][_0x2a08('0x4f')](_0x223bfb);_0x25a405&&_0x25a405[_0x2a08('0x100')]&&!_0x25a405[_0x2a08('0x100')]['length']&&this[_0x2a08('0x5e')](_0x223bfb,{'hasComments':!0x1});},{'priority':_0x2a08('0x5')});}set[_0x2a08('0x117')](_0xdfe651){if(this[_0x2a08('0x17')])throw new _0x248bc3(_0x2a08('0x3c'),this);this[_0x2a08('0x17')]=_0xdfe651;}get['adapter'](){return this[_0x2a08('0x17')];}[_0x2a08('0x113')]({skipNotAttached:_0x10a9bb=!0x1,toJSON:_0x32cee1=!0x1}={}){const _0x4a483=[];for(const _0x51ec99 of this[_0x2a08('0x24')][_0x2a08('0x35')]())_0x10a9bb&&!_0x51ec99['isInContent']||_0x4a483[_0x2a08('0x27')](_0x51ec99);return _0x32cee1?_0x4a483[_0x2a08('0x69')](_0x2ea79a=>_0x2ea79a[_0x2a08('0x32')]()):_0x4a483;}['getSuggestion'](_0x5898cb){const _0x3f0c75=this[_0x2a08('0x24')]['get'](_0x5898cb);if(!_0x3f0c75)throw new _0x248bc3(_0x2a08('0x64'),this);return _0x3f0c75;}[_0x2a08('0x110')](_0x2e4650){return this[_0x2a08('0x24')][_0x2a08('0x3')](_0x2e4650);}[_0x2a08('0x99')](_0x36580f){const {authorId:_0x4deca3,id:_0x5a26a9,attributes:_0x5eb858}=_0x36580f,[_0x1d2e77,_0x3ba2bf]=_0x36580f[_0x2a08('0x130')]['split'](':'),_0x1cb5df=this[_0x2a08('0x24')][_0x2a08('0x4f')](_0x5a26a9)||this['_createSuggestion'](_0x1d2e77,_0x3ba2bf,_0x5a26a9,_0x4deca3,_0x5eb858);if(this['_addThreadToSuggestion'](_0x1cb5df),this[_0x2a08('0x14')](_0x1cb5df,_0x1d2e77,_0x3ba2bf||null,_0x4deca3),_0x1cb5df[_0x2a08('0xaa')]=_0x36580f[_0x2a08('0xaa')],_0x5eb858&&_0x5eb858[_0x2a08('0x4')]){const _0x197268=_0x5eb858[_0x2a08('0x4')],_0x3f593d=this['_getExternalAuthor'](_0x197268['authorName']);_0x1cb5df['authoredAt']=_0x197268[_0x2a08('0xaa')],_0x1cb5df[_0x2a08('0x137')]=_0x3f593d,_0x1cb5df[_0x2a08('0x7')]=!0x0;}else _0x1cb5df[_0x2a08('0x10f')]=_0x36580f['createdAt'];switch(_0x36580f['data']&&(_0x1cb5df[_0x2a08('0x5d')]=_0x36580f[_0x2a08('0x5d')]),_0x36580f['attributes']&&(_0x1cb5df['attributes']=_0x36580f[_0x2a08('0x2a')]),this[_0x2a08('0x17')]&&this[_0x2a08('0x17')][_0x2a08('0xd9')]||(_0x1cb5df[_0x2a08('0x87')]=!0x0),this[_0x2a08('0x6c')][_0x2a08('0x4f')](_0x1cb5df)){case _0x2a08('0x1'):this[_0x2a08('0x6c')]['set'](_0x1cb5df,_0x2a08('0xf2'));break;case _0x2a08('0xc6'):_0x1cb5df[_0x2a08('0xc9')]?(this[_0x2a08('0x6c')][_0x2a08('0x68')](_0x1cb5df,_0x2a08('0x111')),this[_0x2a08('0x6d')](_0x2a08('0x86'),_0x1cb5df)):this[_0x2a08('0x6c')][_0x2a08('0x68')](_0x1cb5df,'removed');}return _0x1cb5df;}[_0x2a08('0x77')](_0x2c07b7){this[_0x2a08('0x43')](()=>{this['editor'][_0x2a08('0xf1')][_0x2a08('0x3e')](()=>{for(const _0x4e2ed7 of _0x2c07b7[_0x2a08('0x45')]())_0x4e2ed7['accept']();});});}[_0x2a08('0xc4')](_0x4bb434){this['forceDefaultExecution'](()=>{this[_0x2a08('0x22')][_0x2a08('0xf1')][_0x2a08('0x3e')](()=>{for(const _0x6aa0bc of _0x4bb434['getAllAdjacentSuggestions']())_0x6aa0bc['discard']();});});}[_0x2a08('0xe9')](_0x15eb2f,_0x5c4586){const _0x59e4b4=this[_0x2a08('0x22')][_0x2a08('0x2')]['get'](_0x15eb2f);if(!_0x59e4b4)throw new _0x248bc3('track-changes-command-not-found',this,{'commandName':_0x15eb2f});this[_0x2a08('0xa0')][_0x2a08('0x55')](_0x59e4b4),_0x5c4586&&_0x59e4b4['on'](_0x2a08('0x1d'),(_0x2d3dd4,_0x32f0dc)=>{this['trackChangesCommand'][_0x2a08('0xd3')]&&(this['_isForcedDefaultExecutionBlock']||_0x32f0dc[_0x2a08('0xb2')]>0x0&&_0x32f0dc[_0x32f0dc[_0x2a08('0xb2')]-0x1]&&_0x32f0dc[_0x32f0dc['length']-0x1][_0x2a08('0x43')]||(_0x5c4586((..._0x5dfbfe)=>_0x59e4b4[_0x2a08('0x1d')](..._0x5dfbfe,{'forceDefaultExecution':!0x0}),..._0x32f0dc),_0x2d3dd4['stop']()));},{'priority':_0x2a08('0x13')});}['forceDefaultExecution'](_0x12fc8e){let _0x26a6a6,_0x31f17b;const _0x5612a6=this[_0x2a08('0x10d')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x26a6a6=_0x12fc8e();}catch(_0x2408d6){_0x31f17b=_0x2408d6;}return _0x5612a6||(this[_0x2a08('0x10d')]=!0x1),_0x31f17b&&_0x248bc3['rethrowUnexpectedError'](_0x31f17b,this),_0x26a6a6;}[_0x2a08('0xa6')](_0x51a9aa,_0x43106f=null,_0x2fad54={}){if(_0x51a9aa[_0x2a08('0x36')])return null;const _0x534913=this[_0x2a08('0x22')][_0x2a08('0x11c')]['get'](_0x2a08('0x9e'))['me'];for(const {suggestion:_0x5ebf28,meta:_0x3137e9}of this[_0x2a08('0x8e')](_0x51a9aa,_0x2a08('0x48')))if(_0x3137e9[_0x2a08('0xc5')]){if(!_0x3137e9[_0x2a08('0x104')]){if(!this[_0x2a08('0x72')]&&_0x3137e9[_0x2a08('0x67')])continue;return _0x5ebf28;}if(_0x43106f==_0x5ebf28['subType']){const _0x1d7b0e=_0x5ebf28[_0x2a08('0x10b')]();return _0x1d7b0e['start'][_0x2a08('0xc')](_0x51a9aa[_0x2a08('0xba')])?this[_0x2a08('0xd6')](_0x5ebf28,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x51a9aa[_0x2a08('0x46')],_0x1d7b0e[_0x2a08('0xba')])):this['_setSuggestionRange'](_0x5ebf28,this[_0x2a08('0x136')]['createRange'](_0x1d7b0e[_0x2a08('0x46')],_0x51a9aa['end'])),_0x5ebf28;}}const _0x2f3931=_0x1938d2(),_0x43dacf=_0x534913['id'],_0x19711f=_0x43106f?_0x2a08('0x58')+_0x43106f:_0x2a08('0x48'),_0x41ecf9=this['_setSuggestionData']({'id':_0x2f3931,'type':_0x19711f,'createdAt':new Date(),'authorId':_0x43dacf,'attributes':_0x2fad54});return this[_0x2a08('0x74')](_0x19711f,_0x2f3931,_0x43dacf,_0x51a9aa),_0x41ecf9;}[_0x2a08('0xd')](_0x55d889,_0x3fd9cf=_0x2a08('0x56'),_0x49ecb2={}){const _0x48e9ef=this[_0x2a08('0x22')]['plugins'][_0x2a08('0x4f')]('Users')['me'],_0x35c7bf=this[_0x2a08('0x9')]['getSuggestionCallback'](_0x2a08('0x48'),_0x3fd9cf,_0x2a08('0x38'));for(const _0x188e41 of this[_0x2a08('0x113')]())if(_0x188e41[_0x2a08('0x137')]['id']==_0x48e9ef['id']&&_0x2a08('0x48')==_0x188e41[_0x2a08('0x130')]&&_0x188e41[_0x2a08('0x34')]==_0x3fd9cf&&(_0x35c7bf(_0x188e41[_0x2a08('0xb1')](),_0x55d889)||_0x35c7bf(_0x55d889,_0x188e41[_0x2a08('0xb1')]()))){for(const _0x335836 of _0x55d889)_0x188e41[_0x2a08('0xe7')](_0x335836);return _0x188e41;}if(this[_0x2a08('0x72')])for(const _0x4deff1 of _0x55d889)for(const {suggestion:_0x7d448,meta:_0x583369}of this[_0x2a08('0x8e')](_0x4deff1,_0x2a08('0x48'))){if(!_0x583369['isOwn'])continue;let _0x9564ee=!0x0;for(const _0x3a6f41 of _0x7d448['getRanges']())for(const _0x29d070 of _0x55d889)if(!_0x3a6f41[_0x2a08('0xa1')](_0x29d070)){_0x9564ee=!0x1;break;}if(_0x9564ee)return _0x7d448;}const _0x34df35=_0x1938d2(),_0x49addf=_0x48e9ef['id'],_0x26f9b3='insertion:'+_0x3fd9cf,_0x4b49b3=this['_setSuggestionData']({'id':_0x34df35,'type':_0x26f9b3,'createdAt':new Date(),'authorId':_0x49addf,'attributes':_0x49ecb2});for(const _0x20184a of _0x55d889)this[_0x2a08('0x74')](_0x26f9b3,_0x34df35,_0x49addf,_0x20184a,_0x21d5ce[_0x2a08('0x7d')]());return _0x4b49b3;}[_0x2a08('0xbb')](_0x32b3e7,_0x59b9d9,_0x253f14=null,_0x58fe69={}){if(_0x253f14=_0x253f14||$t(_0x59b9d9),_0x32b3e7[_0x2a08('0x36')])return null;if(_0x2a08('0x7e')===this[_0x2a08('0x129')]){const _0x4a1ddb=this['_suggestionFactory'][_0x2a08('0x124')](_0x2a08('0xee'),_0x253f14,_0x2a08('0x40'));return this['forceDefaultExecution'](()=>_0x4a1ddb([_0x32b3e7],_0x59b9d9,_0x58fe69)),null;}const _0x4079a2=this['editor'][_0x2a08('0x11c')][_0x2a08('0x4f')]('Users')['me'],_0x1e0466=[];if('always'!==this[_0x2a08('0x129')])for(const {suggestion:_0x30275d,meta:_0x1ff2f8}of this[_0x2a08('0x8e')](_0x32b3e7,_0x2a08('0x48')))_0x1ff2f8[_0x2a08('0xc5')]&&!_0x1ff2f8[_0x2a08('0x91')]&&_0x1e0466[_0x2a08('0x27')](..._0x30275d[_0x2a08('0xb1')]());const _0x2a948b=function(_0x16c3ae,_0xf26598){const _0x336d0d=[];for(const _0x11ae85 of _0xf26598){const _0x308e11=_0x16c3ae['getIntersection'](_0x11ae85);_0x308e11&&_0x336d0d[_0x2a08('0x27')](_0x308e11);}return _0x336d0d;}(_0x32b3e7,_0x1e0466),_0xb32d1d=function(_0x37f5e9,_0x2fa541){const _0x19b0b1=[_0x37f5e9];for(const _0x5d1cd3 of _0x2fa541){let _0x189f85=0x0;for(;_0x189f85<_0x19b0b1[_0x2a08('0xb2')];){const _0x4e4dba=_0x19b0b1[_0x189f85][_0x2a08('0x8b')](_0x5d1cd3);_0x19b0b1[_0x2a08('0x13b')](_0x189f85,0x1,..._0x4e4dba),_0x189f85+=_0x4e4dba[_0x2a08('0xb2')];}}return _0x19b0b1;}(_0x32b3e7,_0x1e0466);_0x2a948b[_0x2a08('0xb2')]&&this[_0x2a08('0x136')][_0x2a08('0x3e')](()=>{for(const _0x3d297b of _0x2a948b){const _0x284ce9=this[_0x2a08('0x9')][_0x2a08('0x124')](_0x2a08('0xee'),_0x253f14,'accept');this[_0x2a08('0x43')](()=>_0x284ce9([_0x3d297b],_0x59b9d9,_0x58fe69));}});for(const _0x36692b of _0xb32d1d){let _0x5673d1=null,_0xd530e8=_0x36692b[_0x2a08('0x46')],_0x420bdb=_0x36692b[_0x2a08('0xba')];for(const {suggestion:_0xd619c1,meta:_0x43d369}of this[_0x2a08('0x8e')](_0x36692b,_0x2a08('0xee'))){if(!_0x43d369[_0x2a08('0xc5')])continue;if(_0xd619c1['subType']!=_0x253f14)continue;const _0x5b5641=_0xd619c1['getFirstRange']();if(_0x5b5641[_0x2a08('0xa1')](_0x36692b,!0x0))return null;_0xd530e8=_0xd530e8['isBefore'](_0x5b5641[_0x2a08('0x46')])?_0xd530e8:_0x5b5641['start'],_0x420bdb=_0x420bdb[_0x2a08('0xf5')](_0x5b5641[_0x2a08('0xba')])?_0x420bdb:_0x5b5641[_0x2a08('0xba')],_0x5673d1?_0x5b5641[_0x2a08('0x46')][_0x2a08('0xef')](_0x5673d1[_0x2a08('0x10b')]()[_0x2a08('0x46')])?(_0x5673d1['removeMarkers'](),_0x5673d1=_0xd619c1):_0xd619c1[_0x2a08('0xc3')]():_0x5673d1=_0xd619c1;}const _0x231cd2=this[_0x2a08('0x136')]['createRange'](_0xd530e8,_0x420bdb);if(_0x5673d1)this['_setSuggestionRange'](_0x5673d1,_0x231cd2);else{const _0x200fc4=_0x1938d2(),_0x2c0b39=_0x4079a2['id'];this[_0x2a08('0x60')]({'id':_0x200fc4,'type':'formatInline:'+_0x253f14,'data':_0x59b9d9,'createdAt':new Date(),'authorId':_0x2c0b39,'attributes':_0x58fe69}),this[_0x2a08('0x74')](_0x2a08('0xb5')+_0x253f14,_0x200fc4,_0x2c0b39,_0x231cd2);}}return null;}[_0x2a08('0xde')](_0x563f50,_0x4fc0f1,_0x3e5136=[],_0x181fe5=null,_0x2cde22={}){_0x4fc0f1['formatGroupId']||(_0x4fc0f1[_0x2a08('0xaf')]=_0x4fc0f1['commandName']),_0x4fc0f1[_0x2a08('0xe1')]=_0x563f50['is']('range'),_0x181fe5=_0x181fe5||$t(_0x4fc0f1);const _0x3cc2ba=_0x3e5136[_0x2a08('0x69')](_0x5198c6=>Rt(_0x5198c6,this[_0x2a08('0x136')])),_0x4b2d70=_0x563f50['is'](_0x2a08('0x21'))?_0x563f50:Rt(_0x563f50,this[_0x2a08('0x136')]);if(_0x2a08('0x7e')===this[_0x2a08('0x129')]){const _0x6e339e=this[_0x2a08('0x9')]['getSuggestionCallback'](_0x2a08('0x121'),_0x181fe5,_0x2a08('0x40'));return this[_0x2a08('0x43')](()=>_0x6e339e([_0x4b2d70],_0x4fc0f1,_0x2cde22)),null;}_0x3cc2ba[_0x2a08('0x27')](_0x4b2d70);let _0x4e3a5d=!0x0;for(const _0x3bebe8 of _0x3cc2ba)if(!this[_0x2a08('0xa')](_0x3bebe8)){_0x4e3a5d=!0x1;break;}if(_0x4e3a5d&&_0x2a08('0xe3')!==this['_trackFormatChanges']){const _0x591ff3=this[_0x2a08('0x9')]['getSuggestionCallback'](_0x2a08('0x121'),_0x181fe5,_0x2a08('0x40'));return this['forceDefaultExecution'](()=>_0x591ff3([_0x4b2d70],_0x4fc0f1,_0x2cde22)),null;}let _0x1f47df=null,_0x271e11=_0x4b2d70[_0x2a08('0x46')],_0xf9a5c9=_0x4b2d70[_0x2a08('0xba')];for(const {suggestion:_0x2883b2,meta:_0x3077ee}of this[_0x2a08('0x8e')](_0x4b2d70,'formatBlock')){if(!_0x3077ee['isOwn']||_0x3077ee['isNextTo']||_0x3077ee['containsRangeInObject']||_0x3077ee['isInsideObject'])continue;if(_0x2883b2[_0x2a08('0x5d')][_0x2a08('0xaf')]!=_0x4fc0f1[_0x2a08('0xaf')])continue;const _0x50798c=_0x2883b2[_0x2a08('0x10b')]();if(_0x2883b2[_0x2a08('0x34')]==_0x181fe5){if(_0x50798c['containsRange'](_0x4b2d70,!0x0))return null;_0x271e11=_0x271e11['isBefore'](_0x50798c[_0x2a08('0x46')])?_0x271e11:_0x50798c[_0x2a08('0x46')],_0xf9a5c9=_0xf9a5c9[_0x2a08('0xf5')](_0x50798c[_0x2a08('0xba')])?_0xf9a5c9:_0x50798c[_0x2a08('0xba')],_0x1f47df?_0x50798c['start'][_0x2a08('0xef')](_0x1f47df[_0x2a08('0x10b')]()[_0x2a08('0x46')])?(_0x1f47df[_0x2a08('0xc3')](),_0x1f47df=_0x2883b2):_0x2883b2[_0x2a08('0xc3')]():_0x1f47df=_0x2883b2;}else{const _0x136cf1=_0x4b2d70[_0x2a08('0x6b')](_0x50798c);this[_0x2a08('0x4b')](_0x2883b2,_0x136cf1);}}const _0x5bf721=this[_0x2a08('0x22')][_0x2a08('0x11c')]['get']('Users')['me'],_0x5dd6fe=_0x1938d2(),_0x4c9fb6=_0x5bf721['id'];if(_0x1f47df)return this[_0x2a08('0xd6')](_0x1f47df,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x271e11,_0xf9a5c9)),_0x1f47df;{const _0x1f6eaa=this[_0x2a08('0x60')]({'id':_0x5dd6fe,'type':_0x2a08('0x119')+_0x181fe5,'data':_0x4fc0f1,'createdAt':new Date(),'authorId':_0x4c9fb6,'attributes':_0x2cde22});return this[_0x2a08('0x74')]('formatBlock:'+_0x181fe5,_0x5dd6fe,_0x4c9fb6,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x271e11,_0xf9a5c9)),_0x1f6eaa;}}[_0x2a08('0x108')](_0x1f5950,_0x4a93d8,_0x2a1aa4=[],_0x226e81=null,_0x4479e4={}){_0x4a93d8['formatGroupId']||(_0x4a93d8[_0x2a08('0xaf')]=_0x4a93d8[_0x2a08('0x9a')]);const _0x47cf28=_0x1f5950[0x0];_0x4a93d8[_0x2a08('0xe1')]=_0x47cf28['is'](_0x2a08('0x21')),_0x226e81=_0x226e81||$t(_0x4a93d8);const _0x24ba3f=_0x2a1aa4['map'](_0x30835=>Rt(_0x30835,this[_0x2a08('0x136')])),_0x36f1df=_0x47cf28['is'](_0x2a08('0x21'))?_0x1f5950:_0x1f5950[_0x2a08('0x69')](_0x2b3e82=>Rt(_0x2b3e82,this[_0x2a08('0x136')]));if('never'===this[_0x2a08('0x129')]){const _0x316dc5=this['_suggestionFactory'][_0x2a08('0x124')](_0x2a08('0x121'),_0x226e81,_0x2a08('0x40'));return this['forceDefaultExecution'](()=>_0x316dc5(_0x36f1df,_0x4a93d8,_0x4479e4)),null;}_0x24ba3f[_0x2a08('0x27')](..._0x36f1df);let _0xe19923=!0x0;for(const _0x50c5e3 of _0x24ba3f)if(!this[_0x2a08('0xa')](_0x50c5e3)){_0xe19923=!0x1;break;}if(_0xe19923&&_0x2a08('0xe3')!==this[_0x2a08('0x129')]){const _0xf49069=this[_0x2a08('0x9')][_0x2a08('0x124')](_0x2a08('0x121'),_0x226e81,_0x2a08('0x40'));return this[_0x2a08('0x43')](()=>_0xf49069(_0x36f1df,_0x4a93d8,_0x4479e4)),null;}const _0x525133=this[_0x2a08('0x22')][_0x2a08('0x11c')][_0x2a08('0x4f')](_0x2a08('0x9e'))['me'];for(const _0x3d857f of this[_0x2a08('0x113')]()){if(_0x3d857f[_0x2a08('0x137')]['id']!=_0x525133['id'])continue;if(_0x2a08('0x121')!=_0x3d857f['type']||_0x3d857f[_0x2a08('0x5d')]['formatGroupId']!=_0x4a93d8[_0x2a08('0xaf')])continue;const _0x429cfe=_0x3d857f[_0x2a08('0x34')]==_0x226e81;for(let _0x1d7ce9=0x0;_0x1d7ce9<_0x36f1df[_0x2a08('0xb2')];_0x1d7ce9++){const _0x1934cc=_0x36f1df[_0x1d7ce9];for(const _0x2d2e09 of _0x3d857f['getMarkers']()){const _0x141369=_0x2d2e09[_0x2a08('0x5a')]();if(_0x1934cc['isEqual'](_0x141369)){_0x429cfe?(_0x36f1df[_0x2a08('0x13b')](_0x1d7ce9,0x1),_0x1d7ce9--):_0x3d857f[_0x2a08('0x1f')](_0x2d2e09['name']);break;}}}}if(0x0==_0x36f1df[_0x2a08('0xb2')])return null;const _0x1f870f=this[_0x2a08('0x9')][_0x2a08('0x124')](_0x2a08('0x121'),_0x226e81,_0x2a08('0x38'));for(const _0xcfa8a3 of this[_0x2a08('0x113')]())if(_0xcfa8a3[_0x2a08('0x137')]['id']==_0x525133['id']&&'formatBlock'==_0xcfa8a3[_0x2a08('0x130')]&&_0xcfa8a3['data'][_0x2a08('0xaf')]==_0x4a93d8[_0x2a08('0xaf')]&&_0xcfa8a3[_0x2a08('0x34')]==_0x226e81&&(_0x1f870f(_0xcfa8a3[_0x2a08('0xb1')](),_0x36f1df)||_0x1f870f(_0x36f1df,_0xcfa8a3['getRanges']()))){for(const _0x384f24 of _0x36f1df)_0xcfa8a3['addRange'](_0x384f24);return _0xcfa8a3;}const _0x31d1f9=_0x1938d2(),_0x4e7e42=_0x525133['id'],_0x4fd2ba=_0x2a08('0x119')+_0x226e81,_0x5e57dd=this[_0x2a08('0x60')]({'id':_0x31d1f9,'type':_0x4fd2ba,'data':_0x4a93d8,'createdAt':new Date(),'authorId':_0x4e7e42,'attributes':_0x4479e4});for(const _0x509425 of _0x36f1df)this[_0x2a08('0x74')](_0x4fd2ba,_0x31d1f9,_0x4e7e42,_0x509425,_0x21d5ce[_0x2a08('0x7d')]());return _0x5e57dd;}[_0x2a08('0xcc')](_0x4685d3,_0x62c57e=null,_0x546138={}){if(_0x4685d3[_0x2a08('0x36')])return null;const _0x368586=this[_0x2a08('0x22')][_0x2a08('0x11c')][_0x2a08('0x4f')](_0x2a08('0x9e'))['me'],_0xc255b=new _0x104eb2(_0x4685d3[_0x2a08('0x46')],_0x4685d3[_0x2a08('0xba')]);for(const {suggestion:_0x40a0d0,meta:_0x3cf570}of this[_0x2a08('0x8e')](_0xc255b,_0x2a08('0x48')))if(_0x3cf570[_0x2a08('0xc5')]&&!_0x3cf570['isNextTo']){if(_0x40a0d0['isMultiRange']){const _0x3e07b9=_0x40a0d0[_0x2a08('0xb1')]()[_0x2a08('0x15')](_0x127c74=>_0x2a08('0x82')!=_0x127c74[_0x2a08('0x76')]['rootName']);_0x3e07b9[_0x2a08('0x13a')](_0x35eb75=>_0xc255b[_0x2a08('0xa1')](_0x35eb75,!0x0))&&_0x40a0d0[_0x2a08('0xb8')]();if(_0x3e07b9[_0x2a08('0x106')](_0x2a6d07=>_0x2a6d07[_0x2a08('0xa1')](_0xc255b,!0x0))){const _0x3572c1=this[_0x2a08('0x9')]['getSuggestionCallback']('deletion',_0x62c57e,_0x2a08('0x40'));return this['forceDefaultExecution'](()=>_0x3572c1([_0xc255b],null,_0x546138)),null;}}else{const _0x3046e6=_0xc255b['getIntersection'](_0x40a0d0['getFirstRange']());null!==_0x3046e6&&_0x40a0d0['_onDiscard']([_0x3046e6],null,_0x546138);}}if(_0xc255b['detach'](),_0xc255b[_0x2a08('0x36')]||_0x2a08('0x82')==_0xc255b[_0x2a08('0x76')]['rootName'])return null;let _0x347902=null,_0x46e8e5=_0xc255b[_0x2a08('0x46')],_0x41d238=_0xc255b[_0x2a08('0xba')];for(const {suggestion:_0x4d7cc0,meta:_0x349008}of this[_0x2a08('0x8e')](_0xc255b,_0x2a08('0x75')))if(_0x349008[_0x2a08('0xc5')]){if(_0x4d7cc0['isMultiRange']&&this[_0x2a08('0x72')]){let _0x40e6d6=!0x0;for(const _0x519c5c of _0x4d7cc0[_0x2a08('0xb1')]()){if(_0x519c5c[_0x2a08('0xa1')](_0xc255b,!0x0))return _0x4d7cc0;_0xc255b['containsRange'](_0x519c5c)||(_0x40e6d6=!0x1);}_0x40e6d6&&_0x4d7cc0['discard']();}else{const _0xe53bfd=_0x4d7cc0[_0x2a08('0x10b')]();if(_0xe53bfd[_0x2a08('0xa1')](_0xc255b,!0x0)){if(!this[_0x2a08('0x72')]&&_0x349008[_0x2a08('0x67')])continue;return _0x4d7cc0;}_0x46e8e5=_0x46e8e5[_0x2a08('0xef')](_0xe53bfd[_0x2a08('0x46')])?_0x46e8e5:_0xe53bfd[_0x2a08('0x46')],_0x41d238=_0x41d238['isAfter'](_0xe53bfd[_0x2a08('0xba')])?_0x41d238:_0xe53bfd[_0x2a08('0xba')],_0x347902?_0xe53bfd['start'][_0x2a08('0xef')](_0x347902['getFirstRange']()[_0x2a08('0x46')])?(_0x347902['removeMarkers'](),_0x347902=_0x4d7cc0):_0x4d7cc0[_0x2a08('0xc3')]():_0x347902=_0x4d7cc0;}}if(_0x347902)return this['_setSuggestionRange'](_0x347902,this[_0x2a08('0x136')]['createRange'](_0x46e8e5,_0x41d238)),_0x347902;{const _0x117952=_0x1938d2(),_0x2bb2e6=this['_model'][_0x2a08('0xcb')](_0x46e8e5,_0x41d238),_0xffa238=_0x368586['id'],_0xf446fc=_0x62c57e?'deletion:'+_0x62c57e:_0x2a08('0x75'),_0x189073=this[_0x2a08('0x60')]({'id':_0x117952,'type':_0xf446fc,'createdAt':new Date(),'authorId':_0xffa238,'attributes':_0x546138});return this[_0x2a08('0x74')](_0xf446fc,_0x117952,_0xffa238,_0x2bb2e6),_0x189073;}}[_0x2a08('0xf3')](_0x148264,_0x79032a='multi',_0x36344d={}){const _0x52851d=this[_0x2a08('0x22')]['plugins'][_0x2a08('0x4f')]('Users')['me'],_0x4823ce=_0x148264[_0x2a08('0x69')](_0x2ea1b4=>new _0x104eb2(_0x2ea1b4[_0x2a08('0x46')],_0x2ea1b4['end'])),_0x5e727c=new Set();for(const _0x1119f1 of _0x4823ce)for(const {suggestion:_0x2a4653,meta:_0x515f2c}of this[_0x2a08('0x8e')](_0x1119f1,'insertion'))_0x515f2c[_0x2a08('0xc5')]&&!_0x515f2c[_0x2a08('0x104')]&&_0x5e727c[_0x2a08('0x55')](_0x2a4653);for(const _0x3365b3 of _0x5e727c)if(_0x3365b3['isMultiRange']){const _0x14f726=_0x3365b3['getRanges']();(!_0x3365b3[_0x2a08('0x2a')]||!_0x3365b3[_0x2a08('0x2a')][_0x2a08('0xb3')])&&(_0x14f726[_0x2a08('0x13a')](_0x131258=>_0x4823ce[_0x2a08('0x106')](_0x53f855=>_0x53f855[_0x2a08('0xa1')](_0x131258,!0x0)))&&_0x3365b3[_0x2a08('0xb8')]());if(_0x4823ce['every'](_0x2a87c7=>_0x14f726[_0x2a08('0x106')](_0x3b5946=>_0x3b5946['containsRange'](_0x2a87c7,!0x0)))){const _0x4653ce=this[_0x2a08('0x9')]['getSuggestionCallback']('deletion',_0x79032a,_0x2a08('0x40'));return this['forceDefaultExecution'](()=>_0x4653ce(_0x148264,null,_0x36344d)),null;}}else{const _0x5bec77=_0x3365b3['getFirstRange']();_0x4823ce[_0x2a08('0x106')](_0x24fc4b=>_0x24fc4b[_0x2a08('0xa1')](_0x5bec77,!0x0))&&_0x3365b3['discard']();if(_0x4823ce[_0x2a08('0x13a')](_0x31c210=>_0x5bec77[_0x2a08('0xa1')](_0x31c210,!0x0))){const _0x3c41d3=this['_suggestionFactory']['getSuggestionCallback'](_0x2a08('0x75'),_0x79032a,_0x2a08('0x40'));return this[_0x2a08('0x43')](()=>_0x3c41d3(_0x4823ce,null,_0x36344d)),null;}}const _0x228176=this[_0x2a08('0x9')][_0x2a08('0x124')](_0x2a08('0x75'),_0x79032a,_0x2a08('0x38'));let _0xeb4de0=null;for(const _0x34b87d of this[_0x2a08('0x113')]())if(_0x34b87d[_0x2a08('0x137')]['id']==_0x52851d['id']&&_0x34b87d[_0x2a08('0xc9')]&&'deletion'==_0x34b87d[_0x2a08('0x130')]&&_0x34b87d[_0x2a08('0x34')]==_0x79032a&&(_0x228176(_0x34b87d['getRanges'](),_0x4823ce)||_0x228176(_0x4823ce,_0x34b87d[_0x2a08('0xb1')]()))){if(_0xeb4de0){if(_0x34b87d[_0x2a08('0x100')]&&_0x34b87d[_0x2a08('0x100')][_0x2a08('0xb2')])continue;for(const _0x38f690 of _0x34b87d['getRanges']())_0xeb4de0[_0x2a08('0xff')](_0x38f690)||_0xeb4de0['addRange'](_0x38f690);_0x34b87d[_0x2a08('0xc3')]();}else{_0xeb4de0=_0x34b87d;for(const _0x42106e of _0x4823ce)_0x34b87d[_0x2a08('0xff')](_0x42106e)||_0x34b87d['addRange'](_0x42106e);}}if(_0xeb4de0)return _0xeb4de0;_0x5e727c['clear']();for(const _0x522129 of _0x4823ce)for(const {suggestion:_0x2996a6,meta:_0xfbf33b}of this[_0x2a08('0x8e')](_0x522129,'deletion'))_0xfbf33b[_0x2a08('0xc5')]&&_0x5e727c[_0x2a08('0x55')](_0x2996a6);for(const _0x47a9e1 of _0x5e727c){const _0x5f2034=_0x47a9e1[_0x2a08('0xb1')]();if(!_0x36344d||!_0x36344d[_0x2a08('0xb3')]){if(_0x4823ce[_0x2a08('0x13a')](_0x437a6a=>_0x5f2034[_0x2a08('0x106')](_0x4ecf7=>_0x4ecf7[_0x2a08('0xa1')](_0x437a6a,!0x0))))return _0x47a9e1;}(!_0x47a9e1['attributes']||!_0x47a9e1[_0x2a08('0x2a')][_0x2a08('0xb3')])&&(_0x5f2034[_0x2a08('0x13a')](_0x1497d9=>_0x4823ce['some'](_0x432eab=>_0x432eab['containsRange'](_0x1497d9,!0x0)))&&_0x47a9e1[_0x2a08('0xb8')]());}const _0x16d1a8=_0x1938d2(),_0x4bd90f=_0x52851d['id'],_0xc68a98=_0x2a08('0x50')+_0x79032a,_0x476e9c=this[_0x2a08('0x60')]({'id':_0x16d1a8,'type':_0xc68a98,'createdAt':new Date(),'authorId':_0x4bd90f,'attributes':_0x36344d});for(const _0x244fed of _0x4823ce)_0x244fed[_0x2a08('0x25')](),_0x244fed['isCollapsed']||'$graveyard'==_0x244fed[_0x2a08('0x76')][_0x2a08('0x47')]||this[_0x2a08('0x74')](_0xc68a98,_0x16d1a8,_0x4bd90f,_0x244fed,_0x21d5ce[_0x2a08('0x7d')]());return _0x476e9c;}[_0x2a08('0xd6')](_0x44d532,_0x875fc4){const _0x236f47=_0x44d532[_0x2a08('0xca')]();this['_model'][_0x2a08('0x3e')](_0x35d85b=>{_0x35d85b[_0x2a08('0xf0')](_0x236f47,{'range':_0x875fc4});});}[_0x2a08('0x114')](_0x1cbfe6){const _0x1194cb=_0x1cbfe6['id'],_0x1029c7=this[_0x2a08('0x22')][_0x2a08('0x49')]['get'](_0x2a08('0x3b'));this[_0x2a08('0x26')][_0x2a08('0x70')](_0x1194cb)||this['_commentsRepository'][_0x2a08('0x85')]({'channelId':_0x1029c7,'threadId':_0x1194cb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x9ece14=this[_0x2a08('0x26')][_0x2a08('0x4e')](_0x1194cb);_0x9ece14[_0x2a08('0xc8')](_0x2a08('0x23')),_0x9ece14[_0x2a08('0x23')]=!0x1,_0x1cbfe6[_0x2a08('0x100')]=_0x9ece14;}[_0x2a08('0x14')](_0x4df260,_0x2bd469,_0x5f470f,_0x2f9313){if(_0x4df260['type']!=_0x2bd469||_0x4df260[_0x2a08('0x34')]!=_0x5f470f||_0x4df260['creator']['id']!=_0x2f9313)throw this[_0x2a08('0x22')]['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x248bc3('track-changes-suggestion-data-mismatch',this);}[_0x2a08('0x4b')](_0x3573b8,_0x21aa68){const _0x5b73ef=_0x3573b8['getFirstRange']();if(_0x21aa68[_0x2a08('0xc')](_0x5b73ef))_0x3573b8[_0x2a08('0xc3')]();else{if(_0x5b73ef[_0x2a08('0xa1')](_0x21aa68)){const _0x50dac6=this[_0x2a08('0x136')][_0x2a08('0xf6')](_0x21aa68[_0x2a08('0x46')]['nodeBefore'],_0x2a08('0xba'));this[_0x2a08('0xd6')](_0x3573b8,this[_0x2a08('0x136')]['createRange'](_0x5b73ef[_0x2a08('0x46')],_0x50dac6));const _0x37eeb2=_0x1938d2(),_0x3d4e2a=_0x3573b8[_0x2a08('0x120')]['id'],_0x228410=_0x3573b8[_0x2a08('0x130')]+':'+_0x3573b8['subType'];this[_0x2a08('0x60')]({'id':_0x37eeb2,'type':_0x228410,'createdAt':new Date(),'authorId':_0x3d4e2a,'data':_0x3573b8[_0x2a08('0x5d')],'attributes':_0x3573b8[_0x2a08('0x2a')]});const _0x1f1688=this[_0x2a08('0x136')][_0x2a08('0xf6')](_0x21aa68[_0x2a08('0xba')][_0x2a08('0xa9')],_0x2a08('0x122')),_0x268852=this[_0x2a08('0x136')]['createRange'](_0x1f1688,_0x5b73ef['end']);this[_0x2a08('0x74')](_0x228410,_0x37eeb2,_0x3d4e2a,_0x268852);}else{if(_0x5b73ef[_0x2a08('0xed')](_0x21aa68[_0x2a08('0x46')])){const _0x22194c=this[_0x2a08('0x136')][_0x2a08('0xf6')](_0x21aa68[_0x2a08('0x46')][_0x2a08('0x42')],_0x2a08('0xba'));this[_0x2a08('0xd6')](_0x3573b8,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x5b73ef[_0x2a08('0x46')],_0x22194c));}else{const _0x3c625a=this[_0x2a08('0x136')]['createPositionAt'](_0x21aa68['end'][_0x2a08('0xa9')],'after');this[_0x2a08('0xd6')](_0x3573b8,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x3c625a,_0x5b73ef[_0x2a08('0xba')]));}}}}[_0x2a08('0xa')](_0x709075){for(const {suggestion:_0xb8b960,meta:_0x36fb6f}of this['_findSuggestions'](_0x709075,_0x2a08('0x48'))){if(!_0x36fb6f[_0x2a08('0xc5')])continue;const _0x39905f=_0xb8b960[_0x2a08('0xb1')]();for(const _0x36f13c of _0x39905f)if(!_0x709075[_0x2a08('0x8b')](_0x36f13c)['length'])return!0x0;}return!0x1;}[_0x2a08('0x52')](_0x1ee077){const _0x35049d=this[_0x2a08('0x22')][_0x2a08('0x11c')][_0x2a08('0x4f')]('Users')[_0x2a08('0xf4')](_0x1ee077);if(!_0x35049d)throw new _0x248bc3(_0x2a08('0x90'),this);return _0x35049d;}[_0x2a08('0xe6')](_0x4f5958){const _0x39b4c4=this[_0x2a08('0x22')]['plugins']['get'](_0x2a08('0x9e')),_0x3c91bd=_0x4c1c58(_0x2a08('0x7a')+_0x4f5958),_0x12b814=_0x39b4c4[_0x2a08('0xf4')](_0x3c91bd);return _0x12b814||_0x39b4c4['addUser']({'id':_0x3c91bd,'name':_0x4f5958});}[_0x2a08('0x12e')](_0x55ab9c,_0x5c7dc4,_0x359e16,_0x5d632d,_0x1c360c){const _0x1c4b00=this[_0x2a08('0x52')](_0x5d632d),_0x553d93=this[_0x2a08('0x9')][_0x2a08('0xe8')](_0x55ab9c,_0x5c7dc4,_0x359e16,_0x1c4b00,_0x1c360c,_0x208e74=>this[_0x2a08('0x5e')](_0x359e16,{'attributes':_0x208e74}));return this[_0x2a08('0x19')](_0x553d93,_0x2a08('0x40'),()=>{this['_updateSuggestionData'](_0x359e16,{'state':'accepted'});},{'priority':_0x2a08('0x13')}),this[_0x2a08('0x19')](_0x553d93,_0x2a08('0xb8'),()=>{this[_0x2a08('0x5e')](_0x359e16,{'state':_0x2a08('0xec')});},{'priority':_0x2a08('0x13')}),this[_0x2a08('0x24')][_0x2a08('0x68')](_0x359e16,_0x553d93),this[_0x2a08('0x6c')]['set'](_0x553d93,_0x2a08('0x1')),_0x553d93;}[_0x2a08('0xd8')](_0x31724e){const _0x153cd7=_0x31724e['split'](':');return{'group':_0x153cd7[0x0],'type':_0x153cd7[0x1],'subType':_0x153cd7[_0x2a08('0xb2')]>=0x5?_0x153cd7[0x2]:null,'id':_0x153cd7[_0x2a08('0xb2')]<0x5?_0x153cd7[0x2]:_0x153cd7[0x3],'authorId':_0x153cd7[_0x2a08('0xb2')]<0x5?_0x153cd7[0x3]:_0x153cd7[0x4],'markerCount':0x6==_0x153cd7['length']?_0x153cd7[0x5]:null};}[_0x2a08('0xfe')](_0x57e7f4,_0x5651c4,_0x29fbfa){const _0xb658d2=_0x57e7f4['getFirstRange'](),_0x179dbc=_0xb658d2[_0x2a08('0x46')],_0xa028ba=_0xb658d2['end'];this[_0x2a08('0xd6')](_0x57e7f4,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x179dbc,_0x5651c4));const _0x335b2b=_0x1938d2(),_0x1e882f=_0x57e7f4[_0x2a08('0x120')]['id'],_0x2751ee=_0x57e7f4[_0x2a08('0x130')]+(_0x57e7f4[_0x2a08('0x34')]?':'+_0x57e7f4[_0x2a08('0x34')]:'');this[_0x2a08('0x60')]({'id':_0x335b2b,'type':_0x2751ee,'createdAt':new Date(),'authorId':_0x1e882f,'originalSuggestionId':_0x57e7f4['id'],'attributes':_0x57e7f4[_0x2a08('0x2a')],'data':_0x57e7f4[_0x2a08('0x5d')]}),_0x2a08('0x121')==_0x57e7f4[_0x2a08('0x130')]&&(_0x29fbfa=this['_model'][_0x2a08('0x96')](_0x29fbfa[_0x2a08('0xa9')])),this[_0x2a08('0x74')](_0x2751ee,_0x335b2b,_0x1e882f,this['_model']['createRange'](_0x29fbfa,_0xa028ba));}[_0x2a08('0x8e')](_0x55f8f0,_0xdd1ea8=null){const _0x1ba892=[],_0x528513=this[_0x2a08('0x136')][_0x2a08('0x8c')],_0x2734a0=this[_0x2a08('0x22')]['plugins'][_0x2a08('0x4f')](_0x2a08('0x9e'))['me'];for(const _0x5d9997 of this[_0x2a08('0x113')]())if(_0x5d9997[_0x2a08('0xc9')]&&(!_0xdd1ea8||_0x5d9997[_0x2a08('0x130')]==_0xdd1ea8))for(const _0x5c05dd of _0x5d9997[_0x2a08('0xb1')]()){const _0x4ccfc0=_0x55f8f0['start'][_0x2a08('0xc')](_0x5c05dd['end'])||_0x55f8f0['end'][_0x2a08('0xc')](_0x5c05dd['start']);if(_0x4ccfc0||_0x55f8f0[_0x2a08('0x6b')](_0x5c05dd)){const _0x996a=_0x55f8f0[_0x2a08('0xa1')](_0x5c05dd)&&Bt(_0x528513,_0x5c05dd[_0x2a08('0x46')],_0x55f8f0),_0x2decbd=_0x5c05dd[_0x2a08('0xa1')](_0x55f8f0)&&Bt(_0x528513,_0x55f8f0['start'],_0x5c05dd);_0x1ba892[_0x2a08('0x27')]({'suggestion':_0x5d9997,'meta':{'isOwn':_0x2734a0==_0x5d9997['author'],'isNextTo':_0x4ccfc0,'isInsideObject':_0x996a,'containsRangeInObject':_0x2decbd}});break;}}return _0x1ba892;}[_0x2a08('0x74')](_0xc7cf14,_0x5061f8,_0x3b9755,_0x12abcc,_0x2e912e){this['_model'][_0x2a08('0x3e')](_0x471164=>{let _0x74b25a=_0x2a08('0x94')+_0xc7cf14+':'+_0x5061f8+':'+_0x3b9755;_0x2e912e&&(_0x74b25a=_0x74b25a+':'+_0x2e912e),_0x471164[_0x2a08('0x134')](_0x74b25a,{'range':_0x12abcc,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2a08('0x139')](_0x2f14c7){const _0x447ce3=_0x2f14c7[_0x2a08('0x63')],_0xe9b627=_0x2f14c7[_0x2a08('0xb7')];_0x2f14c7[_0x2a08('0x63')]=null,null!=_0x447ce3&&(_0x447ce3[_0x2a08('0xb7')]=null),_0x2f14c7['next']=null,null!=_0xe9b627&&(_0xe9b627[_0x2a08('0x63')]=null),_0x2a08('0x111')==this['_suggestionState'][_0x2a08('0x4f')](_0x2f14c7)&&(this['_suggestionState'][_0x2a08('0x68')](_0x2f14c7,_0x2a08('0xd4')),this[_0x2a08('0x6d')]('suggestionUnloaded',_0x2f14c7,_0x447ce3,_0xe9b627));}[_0x2a08('0x60')](_0x223d87){const _0x197b0a=_0x223d87['id'],_0x44f749=this['addSuggestionData'](_0x223d87);if(this[_0x2a08('0x17')]&&this[_0x2a08('0x17')]['addSuggestion']){const _0x2e8e14=this[_0x2a08('0x22')][_0x2a08('0x11c')][_0x2a08('0x4f')](_0x2a08('0xe5')),_0xd25824=_0x44f749[_0x2a08('0xd7')],_0x5ca26f=_0x44f749[_0x2a08('0x34')]?_0x44f749[_0x2a08('0x130')]+':'+_0x44f749[_0x2a08('0x34')]:_0x44f749[_0x2a08('0x130')],_0x112fe7=this[_0x2a08('0x22')][_0x2a08('0x20')],_0x171b01=_0x2e8e14[_0x2a08('0x55')](_0x5528e0(_0x112fe7,_0x2a08('0x13e'))),_0x1af15e={'id':_0x197b0a,'type':_0x5ca26f,'hasComments':_0xd25824,'data':_0x223d87['data']||null,'originalSuggestionId':_0x223d87[_0x2a08('0x62')]||null,'attributes':_0x44f749[_0x2a08('0x2a')]};this[_0x2a08('0x17')][_0x2a08('0xd9')](_0x1af15e)[_0x2a08('0xa2')](_0x5b7fae=>{_0x44f749['_saved']=!0x0,_0x2e8e14[_0x2a08('0xb6')](_0x171b01),_0x5b7fae&&_0x5b7fae['createdAt']&&(this[_0x2a08('0x24')]['get'](_0x197b0a)[_0x2a08('0xaa')]=_0x5b7fae[_0x2a08('0xaa')]);})[_0x2a08('0xdf')](_0x2149cc=>{throw _0x5d2605(_0x2a08('0x8a')),this[_0x2a08('0x22')][_0x2a08('0xf1')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x44f749[_0x2a08('0xb8')]();}),_0x44f749['stopListening'](),this[_0x2a08('0x24')][_0x2a08('0x3f')](_0x44f749['id']),this['_suggestionState'][_0x2a08('0x3f')](_0x44f749),_0x2149cc;});}return _0x44f749;}[_0x2a08('0x5e')](_0x33a793,_0x5ed1c5){const _0x3430c8=this[_0x2a08('0x22')][_0x2a08('0x11c')][_0x2a08('0x4f')](_0x2a08('0xe5')),_0x4aba34=this[_0x2a08('0x4c')](_0x33a793);if(this['_adapter']&&this['_adapter'][_0x2a08('0x126')]){if(_0x4aba34['_saved']){const _0x3a89bc=_0x3430c8['add'](_0x5528e0(this['editor'][_0x2a08('0x20')],_0x2a08('0x13e')));this['_adapter'][_0x2a08('0x126')](_0x33a793,_0x5ed1c5)[_0x2a08('0xa2')](()=>{_0x3430c8[_0x2a08('0xb6')](_0x3a89bc);});}else _0x4aba34['on'](_0x2a08('0x6e'),()=>{this[_0x2a08('0x5e')](_0x33a793,_0x5ed1c5);});}}[_0x2a08('0xbd')](_0x505835){if(!this[_0x2a08('0x17')]||!this[_0x2a08('0x17')]['getSuggestion'])throw new _0x248bc3(_0x2a08('0xb0'),this);return this[_0x2a08('0x17')]['getSuggestion'](_0x505835);}[_0x2a08('0x2d')](_0x36c369){const {id:_0x5a2365,type:_0x40e986,subType:_0x31a2b9,authorId:_0x5be72c}=this['_splitMarkerName'](_0x36c369),_0x2f83c9=this['_suggestions'][_0x2a08('0x4f')](_0x5a2365)||this['_createSuggestion'](_0x40e986,_0x31a2b9,_0x5a2365,_0x5be72c,{});switch(this[_0x2a08('0x14')](_0x2f83c9,_0x40e986,_0x31a2b9,_0x5be72c),this[_0x2a08('0x6c')][_0x2a08('0x4f')](_0x2f83c9)){case'notReady':this['_getSuggestionData'](_0x5a2365)[_0x2a08('0xa2')](_0x339b9f=>{let _0x2ebb10=Promise[_0x2a08('0xd5')]();_0x339b9f[_0x2a08('0xd7')]&&(_0x2ebb10=this['_commentsRepository'][_0x2a08('0xda')]({'channelId':this[_0x2a08('0x22')][_0x2a08('0x49')]['get'](_0x2a08('0x3b')),'threadId':_0x5a2365})),_0x2ebb10['then'](()=>{this['addSuggestionData'](_0x339b9f)[_0x2a08('0x87')]=!0x0;});}),this['_suggestionState'][_0x2a08('0x68')](_0x2f83c9,_0x2a08('0xc6'));break;case _0x2a08('0xd4'):this[_0x2a08('0x5e')](_0x5a2365,{'state':_0x2a08('0x12d')});case _0x2a08('0xf2'):this['_suggestionState']['set'](_0x2f83c9,'ready'),this[_0x2a08('0x6d')](_0x2a08('0x86'),_0x2f83c9);break;case _0x2a08('0x111'):this[_0x2a08('0x6d')](_0x2a08('0x13d'),_0x2f83c9);}return _0x2f83c9[_0x2a08('0xab')](_0x36c369),_0x2f83c9;}[_0x2a08('0x133')](_0x1da9a4){const _0x1fc927=Array[_0x2a08('0x88')](_0x1da9a4)[_0x2a08('0x15')](_0xab7dc5=>!_0xab7dc5[_0x2a08('0x33')]),_0x50b787=this[_0x2a08('0x113')]({'skipNotAttached':!0x0})[_0x2a08('0x15')](_0x10453a=>!_0x10453a[_0x2a08('0x33')]),_0x6f4ee0=_0x50b787['filter'](_0x5c7421=>!_0x1da9a4[_0x2a08('0x3')](_0x5c7421)),_0x48f708=new Map(_0x50b787[_0x2a08('0x69')](_0x33c453=>[_0x33c453,this[_0x2a08('0x9')][_0x2a08('0x124')](_0x33c453[_0x2a08('0x130')],_0x33c453[_0x2a08('0x34')],_0x2a08('0x4a'))])),_0x583f66=new Map(_0x50b787[_0x2a08('0x69')](_0x56f4fc=>[_0x56f4fc,_0x56f4fc[_0x2a08('0x10b')]()])),_0x39d9eb=new Set(),_0x4b894e=new Set();for(let _0x14e9d7=0x0;_0x14e9d7<_0x1fc927['length'];_0x14e9d7++)_0x3e080f(_0x1fc927[_0x14e9d7],_0x1fc927,_0x14e9d7+0x1);for(let _0x4571bc=0x0;_0x4571bc<_0x1fc927['length'];_0x4571bc++)_0x3e080f(_0x1fc927[_0x4571bc],_0x6f4ee0,0x0);for(let _0x559467=0x0;_0x559467<_0x1fc927[_0x2a08('0xb2')];_0x559467++){const _0x5828a8=_0x1fc927[_0x559467];!_0x4b894e[_0x2a08('0x3')](_0x5828a8)&&_0x5828a8['previous']&&(_0x5828a8[_0x2a08('0x63')]['next']===_0x5828a8&&(_0x5828a8['previous'][_0x2a08('0xb7')]=null),_0x5828a8[_0x2a08('0x63')]=null),!_0x39d9eb[_0x2a08('0x3')](_0x5828a8)&&_0x5828a8[_0x2a08('0xb7')]&&(_0x5828a8[_0x2a08('0xb7')]['previous']===_0x5828a8&&(_0x5828a8[_0x2a08('0xb7')][_0x2a08('0x63')]=null),_0x5828a8['next']=null);}function _0x3e080f(_0x49e545,_0x4d78e5,_0x1e3c5b){for(let _0x6526e1=_0x1e3c5b;_0x6526e1<_0x4d78e5[_0x2a08('0xb2')];_0x6526e1++){const _0x46e686=_0x559b4d(_0x49e545,_0x4d78e5[_0x6526e1]);_0x46e686&&(_0x46e686[0x0][_0x2a08('0xb7')]=_0x46e686[0x1],_0x46e686[0x1]['previous']=_0x46e686[0x0],_0x39d9eb['add'](_0x46e686[0x0]),_0x4b894e[_0x2a08('0x55')](_0x46e686[0x1]));}}function _0x559b4d(_0x5f1ab8,_0xd25f30){if(_0x5f1ab8[_0x2a08('0x137')]['id']!==_0xd25f30['author']['id'])return null;const _0x1328f5=_0x48f708[_0x2a08('0x4f')](_0x5f1ab8)(_0x5f1ab8,_0xd25f30,_0x583f66[_0x2a08('0x4f')](_0x5f1ab8),_0x583f66[_0x2a08('0x4f')](_0xd25f30));if(!_0x1328f5)return null;return _0x48f708['get'](_0xd25f30)(_0x5f1ab8,_0xd25f30,_0x583f66[_0x2a08('0x4f')](_0x5f1ab8),_0x583f66['get'](_0xd25f30))?_0x1328f5[0x1][_0x2a08('0x100')]&&_0x1328f5[0x1]['commentThread'][_0x2a08('0xb2')]?null:_0x1328f5:null;}}[_0x2a08('0x16')](_0x32e2ab){const _0x3fe718=Array[_0x2a08('0x88')](_0x32e2ab),_0x986676=this[_0x2a08('0x113')]({'skipNotAttached':!0x0}),_0x26379f=_0x986676[_0x2a08('0x15')](_0x291304=>!_0x32e2ab['has'](_0x291304)),_0x5dc798=new Map(_0x3fe718[_0x2a08('0x69')](_0x3f16f9=>[_0x3f16f9,this[_0x2a08('0x9')]['getSuggestionCallback'](_0x3f16f9[_0x2a08('0x130')],_0x3f16f9[_0x2a08('0x34')],_0x2a08('0x38'))])),_0xde82da=new Map(_0x986676['map'](_0x181be4=>[_0x181be4,_0x181be4[_0x2a08('0xb1')]()]));for(let _0x29adb8=0x0;_0x29adb8<_0x3fe718[_0x2a08('0xb2')];_0x29adb8++){if(_0x4ac47d(this,_0x3fe718[_0x29adb8],_0x3fe718,_0x29adb8+0x1))return!0x0;}for(let _0x447e6c=0x0;_0x447e6c<_0x3fe718[_0x2a08('0xb2')];_0x447e6c++){if(_0x4ac47d(this,_0x3fe718[_0x447e6c],_0x26379f,0x0))return!0x0;}return!0x1;function _0x4ac47d(_0x289889,_0x1e350b,_0x49ea0f,_0x8b9aa6){for(let _0x337775=_0x8b9aa6;_0x337775<_0x49ea0f[_0x2a08('0xb2')];_0x337775++){const _0x37179f=_0x49ea0f[_0x337775];if(_0x37179f[_0x2a08('0x130')]!==_0x1e350b[_0x2a08('0x130')]||_0x37179f[_0x2a08('0x137')]['id']!==_0x1e350b[_0x2a08('0x137')]['id']||_0x37179f[_0x2a08('0x34')]!==_0x1e350b[_0x2a08('0x34')])continue;const _0x356873=_0x5dc798[_0x2a08('0x4f')](_0x1e350b),_0x102864=_0xde82da[_0x2a08('0x4f')](_0x1e350b),_0x418eb9=_0xde82da[_0x2a08('0x4f')](_0x37179f),_0x5c1fc9=_0x1e350b[_0x2a08('0x100')]&&_0x1e350b['commentThread'][_0x2a08('0xb2')],_0x5b6f7c=_0x37179f[_0x2a08('0x100')]&&_0x37179f['commentThread']['length'];if(!_0x5c1fc9&&_0x356873(_0x418eb9,_0x102864))return _0x289889[_0x2a08('0x83')](_0x37179f,_0x1e350b),_0xde82da[_0x2a08('0x3f')](_0x1e350b),!0x0;if(!_0x5b6f7c&&_0x356873(_0x102864,_0x418eb9))return _0x289889[_0x2a08('0x83')](_0x1e350b,_0x37179f),_0xde82da[_0x2a08('0x3f')](_0x37179f),!0x0;}return!0x1;}}[_0x2a08('0x83')](_0x2c4bdc,_0x37bdb8){if(_0x2c4bdc[_0x2a08('0x33')])for(const _0x26e195 of _0x37bdb8[_0x2a08('0xb1')]())_0x2c4bdc[_0x2a08('0xe7')](_0x26e195);else{const _0x4e5267=_0x37bdb8['getFirstRange']()[_0x2a08('0xba')];this[_0x2a08('0xd6')](_0x2c4bdc,this[_0x2a08('0x136')][_0x2a08('0xcb')](_0x2c4bdc[_0x2a08('0x10b')]()[_0x2a08('0x46')],_0x4e5267));}_0x37bdb8[_0x2a08('0xc3')]();}}class Dt{constructor(_0x577f1a){this[_0x2a08('0x37')]=_0x577f1a,this[_0x2a08('0x136')]=_0x577f1a['model'],this[_0x2a08('0x10e')]=new Map(),this[_0x2a08('0xf')]=new Map(),this[_0x2a08('0x4d')]();}[_0x2a08('0xe8')](_0x354921,_0x5d689a,_0x20ac68,_0x437cb4,_0x438400,_0x57b333){return new _0x21d5ce(this['_model'],{'type':_0x354921,'subType':_0x5d689a,'id':_0x20ac68,'author':_0x437cb4,'creator':_0x437cb4,'attributes':_0x438400,'onAttributesChange':_0x57b333,'onAccept':(..._0x75397d)=>this[_0x2a08('0x124')](_0x354921,_0x5d689a,_0x2a08('0x40'))(..._0x75397d),'onDiscard':(..._0x1f094b)=>this[_0x2a08('0x124')](_0x354921,_0x5d689a,_0x2a08('0xb8'))(..._0x1f094b)});}[_0x2a08('0x103')](_0x5bb4f3,_0x188491,_0x434406,_0x8e7aa0){const _0x57de47=_0x5bb4f3+':'+_0x188491+':'+_0x434406;this['_customCallbacks'][_0x2a08('0x68')](_0x57de47,_0x8e7aa0);}[_0x2a08('0x124')](_0x221aa1,_0x2bbf36,_0x4e7a45){const _0x3d1ba2=_0x221aa1+':'+_0x2bbf36+':'+_0x4e7a45;return this[_0x2a08('0x10e')]['get'](_0x3d1ba2)||this['_defaultCallbacks']['get'](_0x221aa1+':'+_0x4e7a45);}[_0x2a08('0x4d')](){const _0x129447=()=>{},_0x48af03=_0x1a32a2=>{_0x1a32a2[_0x2a08('0x1a')]((_0x5e7f1c,_0x56f53a)=>_0x5e7f1c['start'][_0x2a08('0xef')](_0x56f53a[_0x2a08('0x46')])?0x1:-0x1),this[_0x2a08('0x136')][_0x2a08('0x3e')](_0x241c19=>{for(const _0x1d54c1 of _0x1a32a2){let _0x340c0f;_0x340c0f=_0x1d54c1[_0x2a08('0xba')]['isAtEnd']&&_0x1d54c1[_0x2a08('0xba')]['parent']==_0x1d54c1['start'][_0x2a08('0x1c')]?_0x241c19[_0x2a08('0x54')](_0x1d54c1[_0x2a08('0x46')]['nodeAfter'],'on'):_0x241c19[_0x2a08('0x54')](_0x1d54c1),this[_0x2a08('0x136')]['deleteContent'](_0x340c0f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x24d4fa=(_0x693d06,_0x54b137)=>{this[_0x2a08('0x136')][_0x2a08('0x3e')](_0x57e195=>{const {commandName:_0x3e18f7,commandParams:_0xe2bd61=[]}=_0x54b137,_0x5b01f0=_0x693d06[_0x2a08('0x69')](_0x2ad442=>(_t(_0x2ad442)&&(_0x2ad442=this['_model']['createRange'](_0x2ad442[_0x2a08('0xba')])),_0x2ad442))[_0x2a08('0x15')](_0x3650bd=>'$graveyard'!==_0x3650bd[_0x2a08('0x76')][_0x2a08('0x47')]);if(_0x5b01f0[_0x2a08('0xb2')]<0x1)return;const _0x24fd79=Array[_0x2a08('0x88')](this['_model']['document']['selection'][_0x2a08('0xb1')]())['map'](_0xc1778=>_0x104eb2[_0x2a08('0x12a')](_0xc1778));_0x57e195['setSelection'](_0x5b01f0);for(const _0x33c74e of this['_editor'][_0x2a08('0x2')][_0x2a08('0x2')]())_0x33c74e[_0x2a08('0x53')]();_0xe2bd61[_0x2a08('0x27')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x2a08('0x1d')](_0x3e18f7,..._0xe2bd61);const _0x160d25=_0x24fd79[_0x2a08('0x15')](_0x5be0cb=>'$graveyard'!=_0x5be0cb[_0x2a08('0x76')][_0x2a08('0x47')]);_0x160d25[_0x2a08('0xb2')]>0x0&&_0x57e195[_0x2a08('0x123')](_0x160d25);for(const _0x48033f of _0x24fd79)_0x48033f['detach']();});},_0x5f273e=(_0x571f9d,_0x481696)=>0x1==_0x571f9d[_0x2a08('0xb2')]&&0x1==_0x481696['length']&&_0x571f9d[0x0][_0x2a08('0xba')]['isEqual'](_0x481696[0x0]['start']),_0x3bc79c=(_0xe6a0d0,_0x203c0d,_0x3147ba,_0x2281f1)=>xt(_0xe6a0d0,_0x203c0d,_0x3147ba,_0x2281f1,this[_0x2a08('0x136')])?[_0xe6a0d0,_0x203c0d]:xt(_0x203c0d,_0xe6a0d0,_0x2281f1,_0x3147ba,this[_0x2a08('0x136')])?[_0x203c0d,_0xe6a0d0]:null;this[_0x2a08('0xf')]['set'](_0x2a08('0x84'),_0x129447),this['_defaultCallbacks'][_0x2a08('0x68')](_0x2a08('0xbf'),_0x48af03),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0xa5'),_0x5f273e),this['_defaultCallbacks']['set'](_0x2a08('0xcf'),_0x3bc79c),this[_0x2a08('0xf')]['set'](_0x2a08('0xce'),_0x48af03),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x125'),_0x129447),this[_0x2a08('0xf')][_0x2a08('0x68')]('deletion:join',_0x5f273e),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x6'),_0x3bc79c),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x92'),_0x24d4fa),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0xb4'),_0x129447),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x13c'),_0x5f273e),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x10a'),_0x129447),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0xcd'),_0x24d4fa),this['_defaultCallbacks']['set'](_0x2a08('0x7c'),_0x129447),this[_0x2a08('0xf')][_0x2a08('0x68')](_0x2a08('0x80'),_0x5f273e),this[_0x2a08('0xf')][_0x2a08('0x68')]('formatBlock:chain',_0x129447);}}function Bt(_0x14cbb1,_0x61bae9,_0x350828){for(const _0xe25e36 of _0x61bae9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xe25e36[_0x2a08('0x76')]==_0xe25e36)return!0x1;if(!_0x350828[_0x2a08('0xc1')](_0xe25e36))return!0x1;if(_0x14cbb1[_0x2a08('0x3d')](_0xe25e36)||_0x14cbb1[_0x2a08('0x11f')](_0xe25e36))return!0x0;}return!0x1;}function _t(_0x23db03){return _0x23db03[_0x2a08('0xba')][_0x2a08('0xa9')]==_0x23db03[_0x2a08('0x46')][_0x2a08('0x1c')]&&_0x23db03[_0x2a08('0xba')][_0x2a08('0x59')];}function Mt(_0x24a71b,_0x49d91f,_0x2685fd,_0x24a673){const _0x4d16c9=_0xa1b3d2=>!_0xa1b3d2['item']['is'](_0x2a08('0xe2'))&&!_0x24a673['isObject'](_0xa1b3d2[_0x2a08('0x12f')]),_0x592e0d=_0x24a71b['start'][_0x2a08('0x79')](_0x4d16c9),_0x43473c=_0x24a71b[_0x2a08('0xba')]['getLastMatchingPosition'](_0x4d16c9,{'direction':_0x2a08('0x13f')});return(!_0x24a71b[_0x2a08('0x46')][_0x2a08('0xc')](_0x592e0d)||!_0x24a71b[_0x2a08('0xba')][_0x2a08('0xc')](_0x43473c))&&(_0x592e0d['isBefore'](_0x43473c)?_0x2685fd[_0x2a08('0xf0')](_0x49d91f,{'range':_0x2685fd[_0x2a08('0xcb')](_0x592e0d,_0x43473c)}):_0x2685fd['removeMarker'](_0x49d91f),!0x0);}function $t(_0x3ac3c8){return _0x4c1c58(_0x3ac3c8);}function Nt(_0x25f7d2){const _0x5d006b=_0x25f7d2['start'][_0x2a08('0x1c')];return _0x5d006b&&_0x5d006b['is'](_0x2a08('0xe0'));}function Rt(_0x46ed1f,_0x2f3994){const _0x355905=_0x2f3994['schema'][_0x2a08('0x3d')](_0x46ed1f)||_0x2f3994[_0x2a08('0x8c')][_0x2a08('0xc2')](_0x46ed1f);return _0x2f3994[_0x2a08('0xcb')](_0x2f3994[_0x2a08('0xf6')](_0x46ed1f,_0x2a08('0x102')),_0x355905?_0x2f3994[_0x2a08('0x97')](_0x46ed1f):_0x2f3994['createPositionAt'](_0x46ed1f,'end'));}function xt(_0x3e5ef4,_0xefaa9f,_0x40b5cf,_0x59233f,_0x361f7e){if(_0x40b5cf[_0x2a08('0xba')][_0x2a08('0xc')](_0x59233f['start']))return!0x0;if(_0x3e5ef4[_0x2a08('0x130')]!=_0xefaa9f[_0x2a08('0x130')])return!0x1;if(!_0x40b5cf[_0x2a08('0xba')][_0x2a08('0xac')](_0x59233f[_0x2a08('0x46')]))return!0x1;const _0x171728=_0x361f7e['createRange'](_0x40b5cf[_0x2a08('0xba')],_0x59233f[_0x2a08('0x46')])[_0x2a08('0x109')]();for(const _0x3f6b10 of _0x171728)if([_0x2a08('0xa8'),_0x2a08('0x39')]['includes'](_0x3f6b10[_0x2a08('0x130')])&&_0x361f7e[_0x2a08('0x8c')][_0x2a08('0x11f')](_0x3f6b10[_0x2a08('0x12f')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x10ad=['_handleSuggestionControllerDelayed','trackChanges','config','reduce','separator','size','execute','getDescriptions','getSuggestion','init','comments.maxCommentsWhenCollapsed','isInContent','_createUIButton','suggestionUnloaded','actionView','discardButton','_destroyController','acceptAllSuggestions','_handleControllerBuffer','createAnnotation','clear','commands','_initializeController','comments.maxCommentCharsWhenCollapsed','buttonView','isEnabled','bind','locale','arrowView','plugins','change:activeAnnotations','commentThread','isOn','add','acceptButton','getMarkers','comments','_updateController','getAllAdjacentSuggestions','mainView','registerAnnotation','trackChanges.SuggestionThreadView','focus','button','CommentsUI','TrackChangesUI','_descriptionFactory','Track\x20changes','Discard\x20all\x20selected\x20suggestions','hasSuggestion','_annotationViews','trackChanges.disableComments','Annotations','view','getFirstRange','Accept\x20all\x20selected\x20suggestions','_viewToController','CommentsRepository','unbind','listenTo','suggestion-','getJoined','switchbutton','previous','activeMarkers','comments.maxThreadTotalWeight','define','lowest','from','requires','keys','model','head','addSourceCollector','type','_disableComments','discardAllSuggestions','get','TrackChangesEditing','editor','createCommentThreadController','toMany','getRanges','change:previous','filter','values','activeAnnotations','discardSelectedSuggestions','value','EditorAnnotations','source','isMultiRange','destroy','_suggestionToController','comments.editorConfig','isDirty','set','Discard\x20all\x20suggestions','descriptionParts','length','has','editing','CommentView','acceptSelectedSuggestions','createAnnotationView','_refreshActiveMarkers','_bindAnnotationToEditors','innerView','delete','push'];(function(_0x21984c,_0x10ad0e){const _0x4694f8=function(_0x1ef25f){while(--_0x1ef25f){_0x21984c['push'](_0x21984c['shift']());}};_0x4694f8(++_0x10ad0e);}(_0x10ad,0xf1));const _0x4694=function(_0x21984c,_0x10ad0e){_0x21984c=_0x21984c-0x0;let _0x4694f8=_0x10ad[_0x21984c];return _0x4694f8;};import{Plugin as _0x3b41ad}from'ckeditor5/src/core';import{Collection as _0x1b6b62}from'ckeditor5/src/utils';import{Model as _0x4fcc01,SplitButtonView as _0x54e14f,createDropdown as _0xe20a07,addListToDropdown as _0x479dad}from'ckeditor5/src/ui';import{Users as _0x755b65,getDateTimeFormatter as _0x5c594e,getAllMarkersDomElementsSorted as _0x55558b}from'ckeditor5-collaboration/src/collaboration-core';import _0xb2eaa4 from'./trackchangesediting';import _0x4483a9 from'./ui/suggestioncontroller';import _0x177038 from'./ui/view/suggestionthreadview';import{getTranslation as _0x364151}from'./utils/common-translations';import _0x493945 from'../theme/icons/track-changes.svg';export default class d extends _0x3b41ad{static get[_0x4694('0x30')](){return[_0xb2eaa4,_0x755b65,_0x4694('0x24'),_0x4694('0x1f'),'EditorAnnotations'];}static get['pluginName'](){return _0x4694('0x18');}constructor(_0x31cef9){super(_0x31cef9),this[_0x4694('0x48')]=new Map(),this[_0x4694('0x23')]=new Map(),this[_0x4694('0x1d')]=new Map(),this[_0x4694('0x6b')]=new Map();const _0x4a743f=this['editor'][_0x4694('0x5b')];_0x4a743f['define'](_0x4694('0x14'),_0x177038),_0x4a743f[_0x4694('0x2d')](_0x4694('0x1e'),!0x1),this[_0x4694('0x36')]=_0x4a743f[_0x4694('0x38')]('trackChanges.disableComments');}[_0x4694('0x59')](_0x2e2a4c,_0x269afe){0x0===this['_handleControllerBuffer'][_0x4694('0x5e')]&&setTimeout(()=>{for(const [_0x55252e,_0x28b86b]of this[_0x4694('0x6b')]){const _0x42085f=this[_0x4694('0x48')][_0x4694('0x4f')](_0x55252e);_0x42085f||_0x28b86b?_0x42085f&&_0x28b86b&&this[_0x4694('0x69')](_0x55252e):this[_0x4694('0x1')](_0x55252e);}this['editor'][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x44'))['refreshSelectedViews'](),this[_0x4694('0x54')](),this[_0x4694('0x6b')][_0x4694('0x6d')]();},0xa),this[_0x4694('0x6b')][_0x4694('0x4b')](_0x2e2a4c,_0x269afe);}[_0x4694('0x62')](){const _0x10f51a=this[_0x4694('0x3a')],_0x1f0f06=_0x10f51a[_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x39')),_0x44765c=_0x10f51a[_0x4694('0x8')]['get'](_0x4694('0x1f')),_0x13e4bc=_0x10f51a[_0x4694('0x8')]['get'](_0x4694('0x44')),_0x663813=_0x10f51a[_0x4694('0x8')]['get']('CommentsRepository');_0x10f51a['ui']['componentFactory'][_0x4694('0xc')](_0x4694('0x5a'),_0x32d405=>this[_0x4694('0x65')](_0x32d405)),_0x13e4bc[_0x4694('0x34')](()=>{const _0x3dd77c=[];for(const [_0x370148,_0x4121cb]of Array[_0x4694('0x2f')](this[_0x4694('0x48')])){const _0x4345bc=_0x370148[_0x4694('0x11')](),_0x4afd57=[];for(const _0x2f9beb of _0x4345bc){if(!_0x2f9beb[_0x4694('0x64')])continue;if(_0x2f9beb[_0x4694('0x46')]){_0x4afd57['push'](..._0x2f9beb[_0x4694('0x3d')]());continue;}const _0x46c3ba=_0x2f9beb[_0x4694('0x21')]();if(_0x4afd57[_0x4694('0x4e')]>0x0){const _0x8f600e=_0x4afd57[0x0][_0x4694('0x28')](_0x46c3ba);if(_0x8f600e){_0x4afd57[0x0]=_0x8f600e;continue;}}_0x4afd57['push'](_0x46c3ba);}_0x3dd77c[_0x4694('0x58')]([_0x4121cb[_0x4694('0x20')],_0x4afd57]);}return _0x3dd77c;}),this['listenTo'](_0x1f0f06,'suggestionLoaded',(_0x2b3b0e,_0xfee3e8)=>{this[_0x4694('0x26')](_0xfee3e8,_0x4694('0x3e'),(_0x13db7d,_0x399357,_0x3b28f3,_0x2d652a)=>{_0xfee3e8[_0x4694('0x64')]&&(null==_0x3b28f3?(this[_0x4694('0x10')](_0x2d652a[_0x4694('0x33')]),this[_0x4694('0x59')](_0xfee3e8,!0x1)):(this[_0x4694('0x10')](_0x3b28f3[_0x4694('0x33')]),this['_handleSuggestionControllerDelayed'](_0xfee3e8,!0x0)));}),null===_0xfee3e8[_0x4694('0x2a')]?this[_0x4694('0x59')](_0xfee3e8,!0x1):this[_0x4694('0x10')](_0xfee3e8['head']);}),this['listenTo'](_0x1f0f06,_0x4694('0x66'),(_0x268481,_0x3c83f8,_0x15d08f)=>{this['stopListening'](_0x3c83f8,_0x4694('0x3e')),this['_handleControllerBuffer'][_0x4694('0x57')](_0x3c83f8);const _0x4d0119=_0x15d08f?_0x15d08f[_0x4694('0x33')]:_0x3c83f8,_0x4713ae=this[_0x4694('0x48')][_0x4694('0x38')](_0x4d0119);null!==_0x15d08f&&this[_0x4694('0x10')](_0x4d0119),null===_0x15d08f&&_0x4713ae&&this[_0x4694('0x69')](_0x3c83f8);}),this[_0x4694('0x26')](_0x1f0f06,'suggestionChanged',(_0x3479c2,_0x20bfbe)=>{this[_0x4694('0x10')](_0x20bfbe);}),this[_0x4694('0x26')](_0x44765c,_0x4694('0x9'),()=>{this[_0x4694('0x54')]();}),this['listenTo'](_0x663813,'addComment',(_0xc9d13f,{threadId:_0x183fd8,isFromAdapter:_0x3ffeda})=>{if(_0x3ffeda||!_0x1f0f06[_0x4694('0x1c')](_0x183fd8))return;const _0x3c2305=_0x1f0f06[_0x4694('0x61')](_0x183fd8);this['_suggestionToController'][_0x4694('0x38')](_0x3c2305)[_0x4694('0x20')]['focus']();},{'priority':_0x4694('0x2e')});}[_0x4694('0x54')](){const _0x233718=this[_0x4694('0x3a')][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x1f')),_0xbb86c7=this['editor'][_0x4694('0x8')][_0x4694('0x38')]('TrackChangesEditing'),_0x8ca89d=Array[_0x4694('0x2f')](_0x233718[_0x4694('0x41')],_0xc385e1=>_0xc385e1[_0x4694('0x56')])['filter'](_0x5b2203=>this['_viewToController']['has'](_0x5b2203)),_0x72895b=[];for(const _0x7a9952 of _0x8ca89d){const _0x5ce18f=this['_viewToController'][_0x4694('0x38')](_0x7a9952)[_0x4694('0x32')][_0x4694('0x11')]();_0x72895b[_0x4694('0x58')](..._0x5ce18f[_0x4694('0x5c')]((_0x19ff06,_0x4d4928)=>[..._0x19ff06,..._0x4d4928['getMarkerNames']()],[]));}_0xbb86c7[_0x4694('0x2b')]=_0x72895b;}[_0x4694('0x65')](_0x25ab86){const _0x3cf9ee=_0xe20a07(_0x25ab86,_0x54e14f),_0x2ac349=this[_0x4694('0x3a')][_0x4694('0x0')][_0x4694('0x38')](_0x4694('0x5a')),_0x52930f=_0x364151(_0x25ab86,_0x4694('0x1a'));_0x3cf9ee[_0x4694('0x3')][_0x4694('0x4b')]({'tooltip':_0x52930f,'label':_0x52930f,'icon':_0x493945}),_0x3cf9ee[_0x4694('0x3')][_0x4694('0x5')](_0x4694('0xb'))['to'](_0x2ac349,_0x4694('0x43')),_0x3cf9ee['buttonView']['on']('execute',()=>{_0x2ac349['execute'](),this[_0x4694('0x3a')][_0x4694('0x50')]['view'][_0x4694('0x15')]();});const _0x7675a6=new _0x1b6b62(),_0x344a2c=[{'type':_0x4694('0x29'),'model':{'withText':!0x0,'label':_0x52930f,'commandName':_0x4694('0x5a')}},{'type':_0x4694('0x5d')},{'type':'button','model':{'withText':!0x0,'label':_0x364151(_0x25ab86,'Accept\x20all\x20suggestions'),'commandName':_0x4694('0x6a')}},{'type':'button','model':{'withText':!0x0,'label':_0x364151(_0x25ab86,_0x4694('0x22')),'commandName':_0x4694('0x52')}},{'type':_0x4694('0x16'),'model':{'withText':!0x0,'label':_0x364151(_0x25ab86,_0x4694('0x4c')),'commandName':_0x4694('0x37')}},{'type':_0x4694('0x16'),'model':{'withText':!0x0,'label':_0x364151(_0x25ab86,_0x4694('0x1b')),'commandName':_0x4694('0x42')}}];for(const _0x32cdf0 of _0x344a2c){let _0xdd564b={'type':_0x4694('0x5d')};if(_0x32cdf0[_0x4694('0x32')]){const _0x534dbd=new _0x4fcc01(_0x32cdf0[_0x4694('0x32')]),_0x3505ad=this[_0x4694('0x3a')][_0x4694('0x0')][_0x4694('0x38')](_0x534dbd['commandName']);_0x534dbd[_0x4694('0x5')](_0x4694('0xb'),_0x4694('0x4'))['to'](_0x3505ad,_0x4694('0x43'),_0x4694('0x4')),_0xdd564b={'type':_0x32cdf0[_0x4694('0x35')],'model':_0x534dbd};}_0x7675a6[_0x4694('0xc')](_0xdd564b);}_0x479dad(_0x3cf9ee,_0x7675a6);const _0x2174cb=_0x344a2c['filter'](_0x4c8804=>null!=_0x4c8804['model'])['map'](_0x1ae731=>this[_0x4694('0x3a')][_0x4694('0x0')][_0x4694('0x38')](_0x1ae731[_0x4694('0x32')]['commandName'])),_0x2f9156=_0x3cf9ee[_0x4694('0x3')];return _0x2f9156[_0x4694('0x67')]['unbind'](_0x4694('0x4')),_0x2f9156['arrowView'][_0x4694('0x25')](_0x4694('0x4')),_0x2f9156[_0x4694('0x67')][_0x4694('0x5')](_0x4694('0x4'))['to'](_0x2ac349,_0x4694('0x4')),_0x2f9156[_0x4694('0x7')]['bind'](_0x4694('0x4'))[_0x4694('0x3c')](_0x2174cb,_0x4694('0x4'),(..._0x55dfec)=>_0x55dfec['some'](_0x418f64=>_0x418f64)),_0x3cf9ee['on'](_0x4694('0x5f'),_0x4bce4b=>{this[_0x4694('0x3a')][_0x4694('0x5f')](_0x4bce4b[_0x4694('0x45')]['commandName']),this[_0x4694('0x3a')][_0x4694('0x50')][_0x4694('0x20')][_0x4694('0x15')]();}),_0x3cf9ee;}['_initializeController'](_0xcfa19f){const _0x4b2bfc=this[_0x4694('0x3a')],_0x58c0cd=_0x4b2bfc[_0x4694('0x5b')],_0x14e07e=_0x4b2bfc[_0x4694('0x8')][_0x4694('0x38')]('Annotations'),_0x51015b=_0x4b2bfc['plugins'][_0x4694('0x38')](_0x4694('0x24')),_0x438d8f=_0x4b2bfc[_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x44')),_0x2c2c41=_0x4b2bfc['plugins']['get'](_0x755b65)['me'],_0x33403a=_0x58c0cd[_0x4694('0x38')]('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x73072,CommentThreadInputView:_0x16b891}=_0x4b2bfc['plugins'][_0x4694('0x38')](_0x4694('0x17'));let _0x438b47,_0x271f8b;this['_annotationViews']['has'](_0xcfa19f['id'])?(_0x271f8b=this[_0x4694('0x1d')][_0x4694('0x38')](_0xcfa19f['id']),_0x438b47=_0x271f8b[_0x4694('0x12')]):(_0x438b47=new _0x33403a(_0x4b2bfc['locale'],_0xcfa19f,_0x2c2c41,{'disableComments':this[_0x4694('0x36')],'editorConfig':_0x58c0cd[_0x4694('0x38')](_0x4694('0x49')),'maxCommentsWhenCollapsed':_0x58c0cd[_0x4694('0x38')](_0x4694('0x63')),'maxThreadTotalWeight':_0x58c0cd['get'](_0x4694('0x2c')),'maxCommentCharsWhenCollapsed':_0x58c0cd[_0x4694('0x38')](_0x4694('0x2')),'formatDateTime':_0x5c594e(_0x58c0cd[_0x4694('0x38')](_0x4694('0x6'))),'CommentView':_0x58c0cd[_0x4694('0x38')](_0x4694('0xf'))[_0x4694('0x51')],'CommentsListView':_0x73072,'CommentThreadInputView':_0x16b891}),_0x438b47[_0x4694('0xd')]['on']('execute',()=>{_0x4b2bfc[_0x4694('0x50')][_0x4694('0x20')][_0x4694('0x15')]();}),_0x438b47[_0x4694('0x68')]['on']('execute',()=>{_0x4b2bfc['editing']['view']['focus']();}),_0x271f8b=_0x14e07e[_0x4694('0x53')](this[_0x4694('0x3a')][_0x4694('0x6')],_0x438b47),_0x271f8b[_0x4694('0x5')](_0x4694('0x4a'))['to'](_0x438b47,_0x4694('0x4a')),_0x271f8b[_0x4694('0x5')](_0x4694('0x4e'))['to'](_0x438b47),_0x271f8b['bind'](_0x4694('0x35'))['to'](_0x438b47,'type',_0x3dd6f2=>_0x4694('0x27')+_0x3dd6f2),this['_annotationViews'][_0x4694('0x4b')](_0xcfa19f['id'],_0x271f8b));const _0x4f7fe8=_0x51015b[_0x4694('0x3b')](_0xcfa19f[_0x4694('0xa')],_0x438b47),_0x41067c=new _0x4483a9(_0x4b2bfc,_0xcfa19f,_0x438b47,_0x4f7fe8),_0x2b691c=_0xcfa19f[_0x4694('0x11')]()[_0x4694('0x3f')](_0x2d3d84=>_0x2d3d84[_0x4694('0x64')]);_0x438b47[_0x4694('0x4d')]=_0x4b2bfc[_0x4694('0x8')]['get'](_0x4694('0x39'))[_0x4694('0x19')][_0x4694('0x60')](_0x2b691c),this[_0x4694('0x48')][_0x4694('0x4b')](_0xcfa19f,_0x41067c),this[_0x4694('0x23')][_0x4694('0x4b')](_0x438b47,_0x41067c);const _0x1534c4=_0x14e07e[_0x4694('0x6c')]({'view':_0x271f8b,'target':()=>{const _0x40dcfc=[],_0x402ad4=_0xcfa19f[_0x4694('0x11')]()['filter'](_0x3bc7b6=>_0x3bc7b6[_0x4694('0x64')]);for(const _0x27b098 of _0x402ad4)_0x40dcfc[_0x4694('0x58')](..._0x27b098[_0x4694('0xe')]());return _0x55558b(_0x4b2bfc['editing'],_0x40dcfc);},'type':()=>_0x4694('0x27')+_0x41067c[_0x4694('0x20')][_0x4694('0x35')]});_0x51015b[_0x4694('0x55')](_0x438b47,_0x1534c4),_0x14e07e[_0x4694('0xc')](_0x1534c4),_0x438d8f[_0x4694('0x13')](_0x1534c4);}[_0x4694('0x69')](_0x338284){const _0x53fd3d=this[_0x4694('0x3a')][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x1f')),_0x2a7e5e=this[_0x4694('0x48')][_0x4694('0x38')](_0x338284),_0xee9b4f=_0x2a7e5e[_0x4694('0x20')],_0x42eef6=_0x53fd3d['getByInnerView'](_0xee9b4f);_0x42eef6&&_0x53fd3d['remove'](_0x42eef6),this[_0x4694('0x48')][_0x4694('0x57')](_0x338284),this[_0x4694('0x23')][_0x4694('0x57')](_0xee9b4f),_0x2a7e5e[_0x4694('0x47')]();}[_0x4694('0x10')](_0x53393a){if(!_0x53393a['isInContent']||!this[_0x4694('0x48')][_0x4694('0x4f')](_0x53393a))return;const _0x1ee460=this['editor'][_0x4694('0x8')][_0x4694('0x38')](_0x4694('0x39')),_0x226a39=this[_0x4694('0x48')][_0x4694('0x38')](_0x53393a),_0x35529a=_0x53393a['getAllAdjacentSuggestions']();_0x226a39[_0x4694('0x20')][_0x4694('0x4d')]=_0x1ee460['_descriptionFactory'][_0x4694('0x60')](_0x35529a);}[_0x4694('0x47')](){for(const _0x30ef65 of this[_0x4694('0x48')][_0x4694('0x31')]())this[_0x4694('0x69')](_0x30ef65);for(const _0x1f5c71 of this['_annotationViews'][_0x4694('0x40')]())_0x1f5c71[_0x4694('0x12')][_0x4694('0x47')]();super[_0x4694('0x47')]();}}
|
|
23
|
+
const _0x1948=['length','createAnnotationView','CommentView','commands','comments.maxCommentCharsWhenCollapsed','createAnnotation','componentFactory','execute','comments.editorConfig','model','requires','addSourceCollector','add','comments','getMarkerNames','destroy','_descriptionFactory','commentThread','keys','TrackChangesUI','from','clear','CommentsUI','Discard\x20all\x20selected\x20suggestions','value','init','locale','suggestionLoaded','getDescriptions','_initializeController','innerView','Annotations','suggestion-','acceptSelectedSuggestions','Accept\x20all\x20suggestions','_refreshActiveMarkers','some','actionView','isOn','_disableComments','activeAnnotations','isEnabled','_suggestionToController','filter','button','commandName','Accept\x20all\x20selected\x20suggestions','pluginName','comments.maxThreadTotalWeight','trackChanges','isDirty','config','getAllAdjacentSuggestions','comments.maxCommentsWhenCollapsed','_createUIButton','get','change:previous','_handleSuggestionControllerDelayed','Discard\x20all\x20suggestions','CommentsRepository','_destroyController','editor','_annotationViews','toMany','EditorAnnotations','activeMarkers','bind','_updateController','map','listenTo','suggestionChanged','acceptButton','focus','descriptionParts','_handleControllerBuffer','previous','trackChanges.disableComments','values','mainView','type','isMultiRange','hasSuggestion','define','unbind','registerAnnotation','delete','suggestionUnloaded','acceptAllSuggestions','arrowView','editing','discardButton','plugins','buttonView','getRanges','TrackChangesEditing','_bindAnnotationToEditors','set','getMarkers','Track\x20changes','remove','head','view','isInContent','getSuggestion','push','has','SuggestionThreadView','_viewToController','separator','size'];(function(_0xb37658,_0x1948ff){const _0x42e53d=function(_0x2f77fb){while(--_0x2f77fb){_0xb37658['push'](_0xb37658['shift']());}};_0x42e53d(++_0x1948ff);}(_0x1948,0x93));const _0x42e5=function(_0xb37658,_0x1948ff){_0xb37658=_0xb37658-0x0;let _0x42e53d=_0x1948[_0xb37658];return _0x42e53d;};import{Plugin as _0x2f077a}from'ckeditor5/src/core';import{Collection as _0xe72de4}from'ckeditor5/src/utils';import{Model as _0x572d01,SplitButtonView as _0x486d55,createDropdown as _0x107967,addListToDropdown as _0x5ab986}from'ckeditor5/src/ui';import{Users as _0x3f3414,getDateTimeFormatter as _0x31292d,getAllMarkersDomElementsSorted as _0x8f3102}from'ckeditor5-collaboration/src/collaboration-core';import _0x58f679 from'./trackchangesediting';import _0x4b3c72 from'./ui/suggestioncontroller';import _0x244a6b from'./ui/view/suggestionthreadview';import{getTranslation as _0x2dff47}from'./utils/common-translations';import _0x48bd6f from'../theme/icons/track-changes.svg';export default class d extends _0x2f077a{static get[_0x42e5('0x53')](){return[_0x58f679,_0x3f3414,_0x42e5('0x16'),_0x42e5('0x68'),_0x42e5('0x1b')];}static get[_0x42e5('0xa')](){return _0x42e5('0x5c');}constructor(_0x524a83){super(_0x524a83),this[_0x42e5('0x5')]=new Map(),this[_0x42e5('0x46')]=new Map(),this[_0x42e5('0x19')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x1eb680=this[_0x42e5('0x18')][_0x42e5('0xe')];_0x1eb680['define']('trackChanges.SuggestionThreadView',_0x244a6b),_0x1eb680[_0x42e5('0x2d')](_0x42e5('0x27'),!0x1),this[_0x42e5('0x2')]=_0x1eb680[_0x42e5('0x12')](_0x42e5('0x27'));}['_handleSuggestionControllerDelayed'](_0x4daf15,_0xb9c586){0x0===this[_0x42e5('0x25')][_0x42e5('0x48')]&&setTimeout(()=>{for(const [_0x5c6875,_0x3549ab]of this[_0x42e5('0x25')]){const _0x320529=this[_0x42e5('0x5')][_0x42e5('0x44')](_0x5c6875);_0x320529||_0x3549ab?_0x320529&&_0x3549ab&&this[_0x42e5('0x17')](_0x5c6875):this[_0x42e5('0x66')](_0x5c6875);}this[_0x42e5('0x18')][_0x42e5('0x36')][_0x42e5('0x12')](_0x42e5('0x1b'))['refreshSelectedViews'](),this['_refreshActiveMarkers'](),this[_0x42e5('0x25')][_0x42e5('0x5e')]();},0xa),this['_handleControllerBuffer'][_0x42e5('0x3b')](_0x4daf15,_0xb9c586);}[_0x42e5('0x62')](){const _0x3d7af8=this['editor'],_0x527642=_0x3d7af8[_0x42e5('0x36')][_0x42e5('0x12')]('TrackChangesEditing'),_0x584c76=_0x3d7af8[_0x42e5('0x36')][_0x42e5('0x12')]('Annotations'),_0x4d61b8=_0x3d7af8[_0x42e5('0x36')]['get']('EditorAnnotations'),_0x3eb79c=_0x3d7af8[_0x42e5('0x36')][_0x42e5('0x12')](_0x42e5('0x16'));_0x3d7af8['ui'][_0x42e5('0x4f')][_0x42e5('0x55')](_0x42e5('0xc'),_0x5c5e8c=>this[_0x42e5('0x11')](_0x5c5e8c)),_0x4d61b8[_0x42e5('0x54')](()=>{const _0x4ae56f=[];for(const [_0x3798b4,_0x3c343d]of Array[_0x42e5('0x5d')](this['_suggestionToController'])){const _0x3c3e1a=_0x3798b4['getAllAdjacentSuggestions'](),_0x376899=[];for(const _0x2612e5 of _0x3c3e1a){if(!_0x2612e5[_0x42e5('0x41')])continue;if(_0x2612e5[_0x42e5('0x2b')]){_0x376899['push'](..._0x2612e5[_0x42e5('0x38')]());continue;}const _0x1a7489=_0x2612e5['getFirstRange']();if(_0x376899[_0x42e5('0x49')]>0x0){const _0x25d3fe=_0x376899[0x0]['getJoined'](_0x1a7489);if(_0x25d3fe){_0x376899[0x0]=_0x25d3fe;continue;}}_0x376899['push'](_0x1a7489);}_0x4ae56f[_0x42e5('0x43')]([_0x3c343d[_0x42e5('0x40')],_0x376899]);}return _0x4ae56f;}),this[_0x42e5('0x20')](_0x527642,_0x42e5('0x64'),(_0x2bb540,_0x3badc8)=>{this['listenTo'](_0x3badc8,_0x42e5('0x13'),(_0x102986,_0x491c1d,_0x1ed301,_0x474ae7)=>{_0x3badc8[_0x42e5('0x41')]&&(null==_0x1ed301?(this[_0x42e5('0x1e')](_0x474ae7[_0x42e5('0x3f')]),this[_0x42e5('0x14')](_0x3badc8,!0x1)):(this[_0x42e5('0x1e')](_0x1ed301['head']),this[_0x42e5('0x14')](_0x3badc8,!0x0)));}),null===_0x3badc8[_0x42e5('0x26')]?this[_0x42e5('0x14')](_0x3badc8,!0x1):this[_0x42e5('0x1e')](_0x3badc8['head']);}),this[_0x42e5('0x20')](_0x527642,_0x42e5('0x31'),(_0x2841ae,_0x29769f,_0x41535a)=>{this['stopListening'](_0x29769f,_0x42e5('0x13')),this[_0x42e5('0x25')][_0x42e5('0x30')](_0x29769f);const _0x5f11fa=_0x41535a?_0x41535a[_0x42e5('0x3f')]:_0x29769f,_0x1feb8e=this[_0x42e5('0x5')][_0x42e5('0x12')](_0x5f11fa);null!==_0x41535a&&this[_0x42e5('0x1e')](_0x5f11fa),null===_0x41535a&&_0x1feb8e&&this[_0x42e5('0x17')](_0x29769f);}),this[_0x42e5('0x20')](_0x527642,_0x42e5('0x21'),(_0x4f59ee,_0x5f2efe)=>{this[_0x42e5('0x1e')](_0x5f2efe);}),this[_0x42e5('0x20')](_0x584c76,'change:activeAnnotations',()=>{this[_0x42e5('0x6c')]();}),this[_0x42e5('0x20')](_0x3eb79c,'addComment',(_0x10684a,{threadId:_0x337b78,isFromAdapter:_0x5b497c})=>{if(_0x5b497c||!_0x527642[_0x42e5('0x2c')](_0x337b78))return;const _0x2e8a57=_0x527642[_0x42e5('0x42')](_0x337b78);this[_0x42e5('0x5')]['get'](_0x2e8a57)['view'][_0x42e5('0x23')]();},{'priority':'lowest'});}[_0x42e5('0x6c')](){const _0x2f50ec=this[_0x42e5('0x18')]['plugins'][_0x42e5('0x12')](_0x42e5('0x68')),_0x40c1ba=this[_0x42e5('0x18')][_0x42e5('0x36')][_0x42e5('0x12')](_0x42e5('0x39')),_0x50f2e6=Array[_0x42e5('0x5d')](_0x2f50ec[_0x42e5('0x3')],_0xed4653=>_0xed4653[_0x42e5('0x67')])[_0x42e5('0x6')](_0x5afa22=>this[_0x42e5('0x46')]['has'](_0x5afa22)),_0x52f320=[];for(const _0x3f05d0 of _0x50f2e6){const _0x45d79a=this[_0x42e5('0x46')][_0x42e5('0x12')](_0x3f05d0)[_0x42e5('0x52')][_0x42e5('0xf')]();_0x52f320[_0x42e5('0x43')](..._0x45d79a['reduce']((_0x44299d,_0x9ae5dc)=>[..._0x44299d,..._0x9ae5dc[_0x42e5('0x57')]()],[]));}_0x40c1ba[_0x42e5('0x1c')]=_0x52f320;}['_createUIButton'](_0x5583de){const _0x44403b=_0x107967(_0x5583de,_0x486d55),_0xc8fd37=this['editor'][_0x42e5('0x4c')][_0x42e5('0x12')](_0x42e5('0xc')),_0x35db0e=_0x2dff47(_0x5583de,_0x42e5('0x3d'));_0x44403b[_0x42e5('0x37')]['set']({'tooltip':_0x35db0e,'label':_0x35db0e,'icon':_0x48bd6f}),_0x44403b[_0x42e5('0x37')][_0x42e5('0x1d')](_0x42e5('0x1'))['to'](_0xc8fd37,_0x42e5('0x61')),_0x44403b[_0x42e5('0x37')]['on'](_0x42e5('0x50'),()=>{_0xc8fd37[_0x42e5('0x50')](),this[_0x42e5('0x18')][_0x42e5('0x34')][_0x42e5('0x40')][_0x42e5('0x23')]();});const _0x28d8ce=new _0xe72de4(),_0x310c27=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x35db0e,'commandName':'trackChanges'}},{'type':_0x42e5('0x47')},{'type':'button','model':{'withText':!0x0,'label':_0x2dff47(_0x5583de,_0x42e5('0x6b')),'commandName':_0x42e5('0x32')}},{'type':_0x42e5('0x7'),'model':{'withText':!0x0,'label':_0x2dff47(_0x5583de,_0x42e5('0x9')),'commandName':_0x42e5('0x6a')}},{'type':_0x42e5('0x7'),'model':{'withText':!0x0,'label':_0x2dff47(_0x5583de,_0x42e5('0x15')),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2dff47(_0x5583de,_0x42e5('0x60')),'commandName':'discardSelectedSuggestions'}}];for(const _0x3ad4da of _0x310c27){let _0x5b3166={'type':_0x42e5('0x47')};if(_0x3ad4da[_0x42e5('0x52')]){const _0x5eeef0=new _0x572d01(_0x3ad4da['model']),_0x1cb759=this[_0x42e5('0x18')]['commands'][_0x42e5('0x12')](_0x5eeef0[_0x42e5('0x8')]);_0x5eeef0[_0x42e5('0x1d')](_0x42e5('0x1'),_0x42e5('0x4'))['to'](_0x1cb759,_0x42e5('0x61'),'isEnabled'),_0x5b3166={'type':_0x3ad4da[_0x42e5('0x2a')],'model':_0x5eeef0};}_0x28d8ce[_0x42e5('0x55')](_0x5b3166);}_0x5ab986(_0x44403b,_0x28d8ce);const _0x1b1285=_0x310c27[_0x42e5('0x6')](_0x37acc9=>null!=_0x37acc9['model'])[_0x42e5('0x1f')](_0x317c26=>this[_0x42e5('0x18')][_0x42e5('0x4c')][_0x42e5('0x12')](_0x317c26[_0x42e5('0x52')][_0x42e5('0x8')])),_0x358412=_0x44403b['buttonView'];return _0x358412[_0x42e5('0x0')][_0x42e5('0x2e')](_0x42e5('0x4')),_0x358412[_0x42e5('0x33')]['unbind']('isEnabled'),_0x358412[_0x42e5('0x0')][_0x42e5('0x1d')](_0x42e5('0x4'))['to'](_0xc8fd37,_0x42e5('0x4')),_0x358412[_0x42e5('0x33')][_0x42e5('0x1d')](_0x42e5('0x4'))[_0x42e5('0x1a')](_0x1b1285,_0x42e5('0x4'),(..._0x11f563)=>_0x11f563[_0x42e5('0x6d')](_0x2dca8c=>_0x2dca8c)),_0x44403b['on']('execute',_0xbf65e3=>{this[_0x42e5('0x18')][_0x42e5('0x50')](_0xbf65e3['source'][_0x42e5('0x8')]),this['editor'][_0x42e5('0x34')][_0x42e5('0x40')]['focus']();}),_0x44403b;}[_0x42e5('0x66')](_0x310c65){const _0x43a356=this['editor'],_0x4faef3=_0x43a356[_0x42e5('0xe')],_0x34eac8=_0x43a356[_0x42e5('0x36')][_0x42e5('0x12')]('Annotations'),_0x562da5=_0x43a356['plugins'][_0x42e5('0x12')](_0x42e5('0x16')),_0x406f56=_0x43a356['plugins'][_0x42e5('0x12')](_0x42e5('0x1b')),_0x346646=_0x43a356['plugins'][_0x42e5('0x12')](_0x3f3414)['me'],_0x261abd=_0x4faef3['get']('trackChanges')[_0x42e5('0x45')],{CommentsListView:_0x2fa4fe,CommentThreadInputView:_0x163db7}=_0x43a356[_0x42e5('0x36')][_0x42e5('0x12')](_0x42e5('0x5f'));let _0x1a7bd0,_0x5e71c0;this[_0x42e5('0x19')][_0x42e5('0x44')](_0x310c65['id'])?(_0x5e71c0=this[_0x42e5('0x19')][_0x42e5('0x12')](_0x310c65['id']),_0x1a7bd0=_0x5e71c0[_0x42e5('0x29')]):(_0x1a7bd0=new _0x261abd(_0x43a356[_0x42e5('0x63')],_0x310c65,_0x346646,{'disableComments':this['_disableComments'],'editorConfig':_0x4faef3[_0x42e5('0x12')](_0x42e5('0x51')),'maxCommentsWhenCollapsed':_0x4faef3[_0x42e5('0x12')](_0x42e5('0x10')),'maxThreadTotalWeight':_0x4faef3[_0x42e5('0x12')](_0x42e5('0xb')),'maxCommentCharsWhenCollapsed':_0x4faef3['get'](_0x42e5('0x4d')),'formatDateTime':_0x31292d(_0x4faef3[_0x42e5('0x12')]('locale')),'CommentView':_0x4faef3[_0x42e5('0x12')](_0x42e5('0x56'))[_0x42e5('0x4b')],'CommentsListView':_0x2fa4fe,'CommentThreadInputView':_0x163db7}),_0x1a7bd0[_0x42e5('0x22')]['on']('execute',()=>{_0x43a356[_0x42e5('0x34')][_0x42e5('0x40')][_0x42e5('0x23')]();}),_0x1a7bd0[_0x42e5('0x35')]['on'](_0x42e5('0x50'),()=>{_0x43a356[_0x42e5('0x34')][_0x42e5('0x40')][_0x42e5('0x23')]();}),_0x5e71c0=_0x34eac8[_0x42e5('0x4a')](this[_0x42e5('0x18')][_0x42e5('0x63')],_0x1a7bd0),_0x5e71c0[_0x42e5('0x1d')](_0x42e5('0xd'))['to'](_0x1a7bd0,_0x42e5('0xd')),_0x5e71c0[_0x42e5('0x1d')](_0x42e5('0x49'))['to'](_0x1a7bd0),_0x5e71c0[_0x42e5('0x1d')](_0x42e5('0x2a'))['to'](_0x1a7bd0,_0x42e5('0x2a'),_0x2c7f39=>_0x42e5('0x69')+_0x2c7f39),this[_0x42e5('0x19')][_0x42e5('0x3b')](_0x310c65['id'],_0x5e71c0));const _0x52d697=_0x562da5['createCommentThreadController'](_0x310c65[_0x42e5('0x5a')],_0x1a7bd0),_0x165446=new _0x4b3c72(_0x43a356,_0x310c65,_0x1a7bd0,_0x52d697),_0x50a17d=_0x310c65['getAllAdjacentSuggestions']()[_0x42e5('0x6')](_0xd254f2=>_0xd254f2['isInContent']);_0x1a7bd0[_0x42e5('0x24')]=_0x43a356[_0x42e5('0x36')]['get']('TrackChangesEditing')[_0x42e5('0x59')]['getDescriptions'](_0x50a17d),this[_0x42e5('0x5')][_0x42e5('0x3b')](_0x310c65,_0x165446),this[_0x42e5('0x46')][_0x42e5('0x3b')](_0x1a7bd0,_0x165446);const _0x57fbf8=_0x34eac8[_0x42e5('0x4e')]({'view':_0x5e71c0,'target':()=>{const _0x6a2f61=[],_0x1c12bc=_0x310c65[_0x42e5('0xf')]()[_0x42e5('0x6')](_0x5ba957=>_0x5ba957['isInContent']);for(const _0x437e5c of _0x1c12bc)_0x6a2f61[_0x42e5('0x43')](..._0x437e5c[_0x42e5('0x3c')]());return _0x8f3102(_0x43a356['editing'],_0x6a2f61);},'type':()=>_0x42e5('0x69')+_0x165446['view'][_0x42e5('0x2a')]});_0x562da5[_0x42e5('0x3a')](_0x1a7bd0,_0x57fbf8),_0x34eac8[_0x42e5('0x55')](_0x57fbf8),_0x406f56[_0x42e5('0x2f')](_0x57fbf8);}[_0x42e5('0x17')](_0x3b1fa7){const _0x452f08=this[_0x42e5('0x18')][_0x42e5('0x36')][_0x42e5('0x12')](_0x42e5('0x68')),_0x4555de=this[_0x42e5('0x5')][_0x42e5('0x12')](_0x3b1fa7),_0x1fe33d=_0x4555de['view'],_0x42ee6c=_0x452f08['getByInnerView'](_0x1fe33d);_0x42ee6c&&_0x452f08[_0x42e5('0x3e')](_0x42ee6c),this['_suggestionToController'][_0x42e5('0x30')](_0x3b1fa7),this[_0x42e5('0x46')][_0x42e5('0x30')](_0x1fe33d),_0x4555de[_0x42e5('0x58')]();}[_0x42e5('0x1e')](_0x241d4d){if(!_0x241d4d[_0x42e5('0x41')]||!this[_0x42e5('0x5')][_0x42e5('0x44')](_0x241d4d))return;const _0x3514a8=this[_0x42e5('0x18')]['plugins'][_0x42e5('0x12')](_0x42e5('0x39')),_0x412817=this[_0x42e5('0x5')][_0x42e5('0x12')](_0x241d4d),_0x552947=_0x241d4d[_0x42e5('0xf')]();_0x412817[_0x42e5('0x40')][_0x42e5('0x24')]=_0x3514a8['_descriptionFactory'][_0x42e5('0x65')](_0x552947);}['destroy'](){for(const _0x4d3f50 of this[_0x42e5('0x5')][_0x42e5('0x5b')]())this[_0x42e5('0x17')](_0x4d3f50);for(const _0xe27a77 of this[_0x42e5('0x19')][_0x42e5('0x28')]())_0xe27a77[_0x42e5('0x29')][_0x42e5('0x58')]();super[_0x42e5('0x58')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bd0=['_editor','isDirty','destroy','canAccept','isEnabled','discardSuggestion','get','model','add','listenTo','locale','_pendingAction','_acceptCommand','remove','PendingActions','change:isDirty','bind','execute','plugins','_discardCommand','view','commentThreadController','_setPendingAction','_removePendingAction','unbind','canEditAt','canDiscard','stopListening','getRanges','PENDING_ACTION_SUGGESTION','commands'];(function(_0x2bf292,_0x3bd00e){const _0x1855e6=function(_0x4b874a){while(--_0x4b874a){_0x2bf292['push'](_0x2bf292['shift']());}};_0x1855e6(++_0x3bd00e);}(_0x3bd0,0x11c));const _0x1855=function(_0x2bf292,_0x3bd00e){_0x2bf292=_0x2bf292-0x0;let _0x1855e6=_0x3bd0[_0x2bf292];return _0x1855e6;};import{ObservableMixin as _0x5b53d3}from'ckeditor5/src/utils';import{getTranslation as _0x209813}from'../utils/common-translations';export default class qt extends _0x5b53d3(){constructor(_0x2c0458,_0x21ce00,_0x34fa3a,_0x411d15){super(),this[_0x1855('0x2')]=_0x21ce00,this['view']=_0x34fa3a,this[_0x1855('0x10')]=_0x411d15,this[_0x1855('0x1a')]=_0x2c0458,this['_acceptCommand']=_0x2c0458[_0x1855('0x19')]['get']('acceptSuggestion'),this[_0x1855('0xe')]=_0x2c0458[_0x1855('0x19')][_0x1855('0x1')](_0x1855('0x0')),this[_0x1855('0xf')][_0x1855('0xb')](_0x1855('0x1e'))['to'](this[_0x1855('0x7')],this['_discardCommand'],(_0x171ef9,_0x4608ff)=>_0x171ef9||_0x4608ff),this['view'][_0x1855('0xb')](_0x1855('0x1d'))['to'](this[_0x1855('0x7')],'isEnabled',_0x2199fc=>_0x2199fc&&this[_0x1855('0x1a')][_0x1855('0x2')][_0x1855('0x14')](_0x21ce00[_0x1855('0x17')]())),this['view']['bind'](_0x1855('0x15'))['to'](this[_0x1855('0xe')],'isEnabled',_0x74043=>_0x74043&&this[_0x1855('0x1a')]['model'][_0x1855('0x14')](_0x21ce00[_0x1855('0x17')]())),this['_pendingAction']=null,_0x34fa3a[_0x1855('0x1b')]&&this['_setPendingAction'](),this[_0x1855('0x4')](_0x34fa3a,'acceptSuggestion',()=>this['acceptSuggestion']()),this[_0x1855('0x4')](_0x34fa3a,_0x1855('0x0'),()=>this['discardSuggestion']()),this[_0x1855('0x4')](_0x34fa3a,_0x1855('0xa'),()=>{_0x34fa3a[_0x1855('0x1b')]?this[_0x1855('0x11')]():this[_0x1855('0x12')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0x1855('0xc')](this[_0x1855('0x2')]['id']);}[_0x1855('0x0')](){this[_0x1855('0xe')][_0x1855('0xc')](this[_0x1855('0x2')]['id']);}[_0x1855('0x1c')](){this[_0x1855('0xf')][_0x1855('0x13')](_0x1855('0x1e')),this[_0x1855('0xf')][_0x1855('0x13')](_0x1855('0x1d')),this[_0x1855('0xf')][_0x1855('0x13')]('canDiscard'),this[_0x1855('0x16')](),this[_0x1855('0x10')][_0x1855('0x1c')](),this['_pendingAction']&&this[_0x1855('0x12')]();}[_0x1855('0x11')](){const _0x35dbe4=_0x209813(this[_0x1855('0x1a')][_0x1855('0x5')],_0x1855('0x18'));this[_0x1855('0x6')]=this[_0x1855('0x1a')]['plugins']['get'](_0x1855('0x9'))[_0x1855('0x3')](_0x35dbe4);}[_0x1855('0x12')](){null!==this[_0x1855('0x6')]&&this[_0x1855('0x1a')][_0x1855('0xd')]['get'](_0x1855('0x9'))[_0x1855('0x8')](this['_pendingAction']),this[_0x1855('0x6')]=null;}}
|