@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230803.0 → 0.0.0-nightly-20230805.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 -7
- 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 _0x268f=['isEqual','enableCommand','deleteContent','isIntersectingWithRange','group','change','track-changes-suggestion-data-mismatch','removeMarker','getWalker','deletion','getMarkers','isTouching','consume','track-changes-user-not-found','isAtEnd','_getExternalAuthor','getChanges','suggestionChanged','options','insertion','containsRangeInObject','author','addComment','subType','track-changes-adapter-already-set','_onDiscard','_defaultCallbacks','length','_trackFormatChanges','rootName','_suggestionFactory','addRange','rejected','authorName','_addSuggestionMarker','removeComment','low','_findSuggestions','formatInline:discard','getShiftedBy','_suggestions','acceptAllSuggestions','discard','formatInline:accept','_commentsRepository','_mergeNestedSuggestions','getChangedMarkers','hasCommentThread','join','oldRange','isAfter','commentThread','multipleBlocks','getRanges','high','stopListening','originalSuggestionId','deletion:chain','Users','_registerDefaultCallbacks','normal','_joinSuggestions','insertContent','createSelection','then','_getAuthorFromId','insertion:discard','fire','discardAllSuggestions','notReady','collaboration.channelId','execute','hasSuggestion','move','insertion:','deletion:discard','editor','external:','setAttribute','createPositionBefore','schema','nodeBefore','getRange','removeMarker:suggestion:formatBlock','selection','$graveyard','registerPostFixer','getAttribute','getLastMatchingPosition','nodeAfter','after','start','setSelection','fetchCommentThread','getAncestors','data-suggestion','createdAt','addClass','createPositionAfter','PendingActions','suggestion-type','authoredAt','rethrowUnexpectedError','isObject','CommentsRepository','enableReadOnlyMode','discardSuggestion','map','registerCustomCallback','dataDowncast','dataReady','formatBlock:discard','get','locale','some','hasComments','getFirstRange','init','createRange','createRangeIn','before','_suggestionState','isInsideObject','_cutOutSuggestionMarker','suggestionUnloaded','formatBlock','updateSuggestion','includes','createElement','toJSON','creator','size','_getSuggestionData','batch','widget','never','splice','isCollapsed','formatInline:chain','markerToHighlight','define','getAllAdjacentSuggestions','suggestion','moveTargetPosition','$textProxy','plugins','forceDefaultExecution','getFirstMarker','values','@external','formatBlock:join','ready','ck-suggestion-marker--active','removed','position','_enabledCommands','highest','markerToData','formatBlock:','add','commands','markers','mapper','formatBlock:chain','howMany','bindElementToMarker','isUndo','_addThreadToSuggestion','addHighlight','_customCallbacks','containsItem','markInsertion','dataToMarker','value','markDeletion','update:suggestion','document','parent','set','ck-suggestion-marker-','markerReady','isDocumentOperation','root','elementEnd','adapter','isExternal','enqueueChange','_handleNewSuggestionMarker','fromCharCode','getIntersection','_setSuggestionData','conversion','ck-suggestion-marker-formatBlock','addSuggestionData','ck-suggestion-marker','previous','isAtStart','remove','sort','splitPosition','type','isRemovable','next','_setSuggestionRange','addUser','from','removeMarkers','item','model','config','isLimit','markMultiRangeInsertion','upcast','split','editingDowncast','insertion:accept','setTo','every','_saved','getItems','accepted','chain','insertion:chain','applyOperation','range','documentSelection','formatGroupId','for','createPositionAt','_splitMarkerName','element','getNearestSelectionRange','_isForcedDefaultExecutionBlock','marker-count','catch','formatInline','getMultiRangeId','delete','showSuggestionHighlights','consumable','isNextTo','_removeSuggestion','_breakSuggestionMarker','insert','push','trackChanges.mergeNestedSuggestions','name','return','data','writer','listenTo','_adapter','getCustomProperty','isBlock','isOwn','markBlockFormat','_updateSuggestionData','addCommentThread','head','filter','formatBlock:accept','newRange','getSuggestion','isBefore','change:data','addSuggestion','skipNestingCheck','discardSelectedSuggestions','isInContent','default','suggestionLoaded','end','_createSuggestion','acceptSelectedSuggestions','stop','isMultiRange','trackChanges.trackFormatChanges','error-saving-suggestion-data-suggestion-discarded','differ','acceptSuggestion','trackChangesCommand','_model','accept','attributes','addMarker:suggestion:formatBlock','has','containsRange','backward','updateMarker','elementToElement','fromRange','detach','getSuggestions','always','suggestion:','multi','isLocal','buildSuggestion','formatInline:','_refreshSuggestionsChain','editing','activeMarkers','markerName','_descriptionFactory','trackChanges','getUser','getSuggestionCallback','deletion:','_checkSuggestionCorrectness','_joinWithAdjacentSuggestions'];(function(_0x1dc25b,_0x268f2e){const _0x4e9b2d=function(_0x3b805d){while(--_0x3b805d){_0x1dc25b['push'](_0x1dc25b['shift']());}};_0x4e9b2d(++_0x268f2e);}(_0x268f,0xe1));const _0x4e9b=function(_0x1dc25b,_0x268f2e){_0x1dc25b=_0x1dc25b-0x0;let _0x4e9b2d=_0x268f[_0x1dc25b];return _0x4e9b2d;};import{Plugin as _0x5cfeb3,PendingActions as _0x126477}from'ckeditor5/src/core';import{LiveRange as _0x5e3949}from'ckeditor5/src/engine';import{CKEditorError as _0x225a88,uid as _0x4fbab8,priorities as _0x18fc4d,logWarning as _0x37bdeb}from'ckeditor5/src/utils';import{toWidget as _0x2da679}from'ckeditor5/src/widget';import{Users as _0x350619,hashObject as _0x305c8b}from'ckeditor5-collaboration/src/collaboration-core';import _0x496b9b from'./commands/trackchangescommand';import _0x5a576d from'./commands/acceptsuggestioncommand';import _0x157d55 from'./commands/discardsuggestioncommand';import _0x4ad869 from'./commands/executeonallsuggestionscommand';import _0x341c88 from'./commands/executeonselectedsuggestionscommand';import _0x2b860e from'./suggestion';import _0x15b0ef from'./suggestiondescriptionfactory';import _0x4ad944 from'./integrations/alignment';import _0x575592 from'./integrations/basicstyles';import _0x347130 from'./integrations/blockquote';import _0x4ad339 from'./integrations/ckbox';import _0x40cf46 from'./integrations/codeblock';import _0x1cdd72 from'./integrations/comments';import _0x22b136 from'./integrations/deletecommand';import _0x5ef35d from'./integrations/documentlist';import _0x34beb1 from'./integrations/entercommand';import _0x586877 from'./integrations/findandreplace';import _0x4a030b from'./integrations/font';import _0x49627a from'./integrations/formatpainter';import _0x22e833 from'./integrations/heading';import _0x223046 from'./integrations/highlight';import _0x147d3f from'./integrations/horizontalline';import _0x56a0fc from'./integrations/htmlembed';import _0x565f20 from'./integrations/image';import _0x5e23fc from'./integrations/imagereplace';import _0x583d5e from'./integrations/importword';import _0x2412ab from'./integrations/indent';import _0x1a289e from'./integrations/inputcommand';import _0x184872 from'./integrations/link';import _0x1dff40 from'./integrations/list';import _0x31b5b2 from'./integrations/listproperties';import _0x47d4a7 from'./integrations/mediaembed';import _0x1b49cb from'./integrations/mention';import _0x58c3bb from'./integrations/pagebreak';import _0x21b8d9 from'./integrations/paragraph';import _0x268dd0 from'./integrations/removeformat';import _0x47dd82 from'./integrations/restrictededitingmode';import _0x49532e from'./integrations/shiftentercommand';import _0x5036f1 from'./integrations/standardeditingmode';import _0x425480 from'./integrations/style';import _0x58f85b from'./integrations/table';import _0x5d36aa from'./integrations/tablemergesplit';import _0x52ccb9 from'./integrations/tableheadings';import _0x3485df from'./integrations/tableclipboard';import _0x3e859a from'./integrations/tablecolumnresize';import _0x10bc77 from'./integrations/template';import _0x216b6b from'./integrations/tableofcontents';import _0x1e4ec3 from'./integrations/title';import _0x333a76 from'./integrations/undo';import{getTranslation as _0x2d35a6}from'./utils/common-translations';import _0x1fca42 from'./integrations/tablecaption';import _0x420746 from'./integrations/documentlistproperties';import _0x343e3c from'./integrations/tableproperties';export default class p extends _0x5cfeb3{static get['requires'](){return[_0x4e9b('0xbd'),_0x350619,_0x126477,_0x4ad944,_0x575592,_0x347130,_0x4ad339,_0x40cf46,_0x1cdd72,_0x22b136,_0x5ef35d,_0x420746,_0x34beb1,_0x586877,_0x4a030b,_0x49627a,_0x22e833,_0x223046,_0x147d3f,_0x56a0fc,_0x565f20,_0x5e23fc,_0x583d5e,_0x2412ab,_0x1a289e,_0x184872,_0x1dff40,_0x31b5b2,_0x47d4a7,_0x1b49cb,_0x58c3bb,_0x21b8d9,_0x268dd0,_0x47dd82,_0x49532e,_0x5036f1,_0x425480,_0x58f85b,_0x5d36aa,_0x52ccb9,_0x1fca42,_0x3485df,_0x3e859a,_0x216b6b,_0x343e3c,_0x10bc77,_0x1e4ec3,_0x333a76];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x4b3a0d){function _0x554931(_0x3ee72f){return _0x3ee72f[_0x4e9b('0xc0')](_0xb28f55=>String[_0x4e9b('0x111')](_0xb28f55))['join']('');}super(_0x4b3a0d),this['set'](_0x4e9b('0x4c'),[]),this['on']('change:activeMarkers',(_0x1d8c3a,_0x240b8c,_0x2d54c3,_0x58e9e1)=>{this[_0x4e9b('0x38')]['change'](()=>{for(const _0x14483a of[..._0x58e9e1,..._0x2d54c3])this[_0x4e9b('0x38')][_0x4e9b('0xf6')][_0x4e9b('0x3c')](_0x14483a)&&_0x4b3a0d[_0x4e9b('0x4b')]['reconvertMarker'](_0x14483a);});}),this[_0x4e9b('0x4e')]=new _0x15b0ef(this['editor'][_0x4e9b('0x125')]['schema'],this['editor'][_0x4e9b('0xc6')]),this[_0x4e9b('0x1a')]=null,this['_suggestionFactory']=new Dt(this[_0x4e9b('0xa1')]),this[_0x4e9b('0x7d')]=new Map(),this[_0x4e9b('0x81')]=_0x4b3a0d[_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0xbd')),this[_0x4e9b('0xf0')]=new Set(),this[_0x4e9b('0x38')]=this[_0x4e9b('0xa1')][_0x4e9b('0x125')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xe1')](_0x4e9b('0x33'),_0x4e9b('0x2c')),this[_0x4e9b('0x71')]=_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xc5')]('trackChanges.trackFormatChanges'),_0x4b3a0d['config']['define'](_0x4e9b('0x14'),!0x0),this['_mergeNestedSuggestions']=_0x4b3a0d[_0x4e9b('0x126')][_0x4e9b('0xc5')](_0x4e9b('0x14')),this['trackChangesCommand']=new _0x496b9b(_0x4b3a0d,this[_0x4e9b('0xf0')]),this[_0x554931([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x554931([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x36]);}[_0x4e9b('0xca')](){const _0x5aad04=this['editor'];_0x5aad04['conversion']['for'](_0x4e9b('0x12b'))[_0x4e9b('0xe0')]({'model':_0x4e9b('0xe3'),'view':_0x38b36c=>{const {id:_0x49f7a4,type:_0x2f2b48}=this[_0x4e9b('0x4')](_0x38b36c[_0x4e9b('0x4d')]),_0x46b85c=[_0x4e9b('0x117'),_0x4e9b('0x108')+_0x2f2b48];let _0x208465=0xbb8;return this[_0x4e9b('0x4c')][_0x4e9b('0xd4')](_0x38b36c['markerName'])&&(_0x46b85c[_0x4e9b('0x13')](_0x4e9b('0xed')),_0x208465=0xbc2),_0x4e9b('0x5e')==_0x2f2b48&&(_0x208465+=0x5),{'classes':_0x46b85c,'attributes':{'data-suggestion':_0x49f7a4},'priority':_0x208465};}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('dataDowncast')[_0x4e9b('0xf4')](_0x437bb8=>{_0x437bb8['on']('addMarker:suggestion',(_0x4382e0,_0x4742c,_0x442343)=>{if(!_0x442343[_0x4e9b('0x67')][_0x4e9b('0xd')])return;const _0x4ed09f=_0x4742c[_0x4e9b('0x124')];if(!_0x4ed09f)return;const _0x2029fd=_0x442343[_0x4e9b('0xf7')]['toViewElement'](_0x4ed09f);_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xa5')][_0x4e9b('0xbc')](_0x4ed09f)&&_0x2029fd&&!_0x2029fd[_0x4e9b('0x1b')](_0x4e9b('0xdb'))&&_0x2029fd['is']('containerElement')&&_0x2da679(_0x2029fd,_0x442343[_0x4e9b('0x18')]);},{'priority':_0x4e9b('0x8b')});}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0xc2'))[_0x4e9b('0xe0')]({'model':_0x4e9b('0xe3'),'view':(_0x4dbb63,_0x21cf31)=>{if(!_0x21cf31['options']['showSuggestionHighlights'])return null;const {type:_0x56e9b7}=this['_splitMarkerName'](_0x4dbb63[_0x4e9b('0x4d')]);return{'classes':[_0x4e9b('0x117'),_0x4e9b('0x108')+_0x56e9b7],'priority':0xbb8};}});const _0x41bbe3=({showActiveMarkers:_0x25f349=!0x0}={})=>(_0x36f8ba,_0xa8a740,_0x158218)=>{if(!_0xa8a740[_0x4e9b('0x124')])return;if(_0xa8a740[_0x4e9b('0x124')]['is'](_0x4e9b('0xa9')))return void _0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0xa8a740['item'],_0x36f8ba[_0x4e9b('0x15')]);const _0x1f4a32=_0x158218[_0x4e9b('0xf7')]['toViewElement'](_0xa8a740[_0x4e9b('0x124')]);if(!(_0xa8a740['item']['is'](_0x4e9b('0x5'))&&_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xa5')][_0x4e9b('0x1c')](_0xa8a740[_0x4e9b('0x124')])&&!_0x1f4a32[_0x4e9b('0x1b')]('addHighlight')))return;const {id:_0xf49efb}=this[_0x4e9b('0x4')](_0xa8a740[_0x4e9b('0x4d')]);_0x158218[_0x4e9b('0x18')]['addClass']([_0x4e9b('0x117'),_0x4e9b('0x115')],_0x1f4a32),_0x158218['writer'][_0x4e9b('0xa3')](_0x4e9b('0xb4'),_0xf49efb,_0x1f4a32),_0x158218[_0x4e9b('0xf7')][_0x4e9b('0xfa')](_0x1f4a32,_0xa8a740[_0x4e9b('0x4d')]),_0x25f349&&(this[_0x4e9b('0x4c')][_0x4e9b('0xd4')](_0xa8a740[_0x4e9b('0x4d')])?_0x158218[_0x4e9b('0x18')][_0x4e9b('0xb6')](_0x4e9b('0xed'),_0x1f4a32):_0x158218['writer']['removeClass']('ck-suggestion-marker--active',_0x1f4a32));for(const _0x49b0d8 of _0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcc')](_0xa8a740[_0x4e9b('0x124')])[_0x4e9b('0x130')]())_0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0x49b0d8,_0x36f8ba[_0x4e9b('0x15')]);_0x158218[_0x4e9b('0xe')][_0x4e9b('0x61')](_0xa8a740[_0x4e9b('0x124')],_0x36f8ba[_0x4e9b('0x15')]);};_0x5aad04[_0x4e9b('0x114')]['for']('dataDowncast')[_0x4e9b('0xf4')](_0x167f04=>{_0x167f04['on'](_0x4e9b('0x3b'),(_0x22b42f,_0x1a79bc,_0x15be90)=>{_0x15be90['options'][_0x4e9b('0xd')]&&_0x41bbe3({'showActiveMarkers':!0x1})(_0x22b42f,_0x1a79bc,_0x15be90);},{'priority':_0x4e9b('0xf1')});}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('dataDowncast')[_0x4e9b('0xf2')]({'model':'suggestion','view':(_0x499df8,_0xceb4cc)=>_0xceb4cc['options'][_0x4e9b('0xd')]?null:{'group':_0x4e9b('0xe3'),'name':_0x499df8['substr'](0xb)}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0x129'))[_0x4e9b('0x40')]({'view':{'name':_0x4e9b('0xe3'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4fda0c,{writer:_0x165fba})=>{let _0x5938b9=_0x4e9b('0x45')+_0x4fda0c['getAttribute'](_0x4e9b('0xb9'))+':'+_0x4fda0c[_0x4e9b('0xac')]('id');return _0x4fda0c['getAttribute'](_0x4e9b('0x8'))&&(_0x5938b9+=':'+_0x4fda0c['getAttribute'](_0x4e9b('0x8'))),_0x165fba[_0x4e9b('0xd5')]('$marker',{'data-name':_0x5938b9});}}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')]('upcast')[_0x4e9b('0x101')]({'view':_0x4e9b('0xe3')}),_0x5aad04[_0x4e9b('0x114')][_0x4e9b('0x2')](_0x4e9b('0x12b'))['add'](_0x1b9677=>{_0x1b9677['on'](_0x4e9b('0x3b'),_0x41bbe3(),{'priority':_0x4e9b('0x8b')});}),_0x5aad04['conversion'][_0x4e9b('0x2')](_0x4e9b('0x12b'))['add'](_0x2fa0e9=>{_0x2fa0e9['on'](_0x4e9b('0xa8'),(_0xbbb234,_0x5d0f3a,_0x5623d1)=>{const _0xcd93a7=_0x5623d1['mapper']['markerNameToElements'](_0x5d0f3a[_0x4e9b('0x4d')]);if(_0xcd93a7)for(const _0x1e601d of _0xcd93a7)_0x1e601d[_0x4e9b('0x1b')](_0x4e9b('0xfd'))||(_0x5623d1[_0x4e9b('0x18')]['removeClass']([_0x4e9b('0x117'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e601d),_0x5623d1['writer']['removeAttribute'](_0x4e9b('0xb4'),_0x1e601d),_0x5623d1[_0x4e9b('0xf7')]['unbindElementFromMarkerName'](_0x1e601d,_0x5d0f3a['markerName']));},{'priority':_0x4e9b('0x8b')});}),_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')][_0x4e9b('0xab')](_0x4f430a=>{let _0x1e5ce7=!0x1;const _0x3b8db2=Array['from'](_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')]['differ'][_0x4e9b('0x83')]()),_0x5c594a=new Set();for(const {name:_0x43715c,data:_0x24f627}of _0x3b8db2){const {group:_0x345623,type:_0x5f5c92,id:_0x179a8c}=this['_splitMarkerName'](_0x43715c);if(_0x4e9b('0xe3')!==_0x345623)continue;const _0x28cc92=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x179a8c);if(null!=_0x24f627[_0x4e9b('0x24')]){'formatInline'==_0x5f5c92&&(_0x1e5ce7=_0x1e5ce7||Mt(_0x24f627['newRange'],_0x43715c,_0x4f430a,_0x5aad04['model']['schema']));if(_0x24f627[_0x4e9b('0x24')][_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x24f627[_0x4e9b('0x24')]['root']['rootName']||_0x4e9b('0xd2')==_0x5f5c92&&!Nt(_0x24f627[_0x4e9b('0x24')])||_0x4e9b('0x5e')==_0x5f5c92&&!(!_t(_0x5c61e4=_0x24f627[_0x4e9b('0x24')])&&!function(_0x508deb){return _0x508deb[_0x4e9b('0xb0')][_0x4e9b('0x106')]==_0x508deb[_0x4e9b('0x2e')][_0x4e9b('0xa6')]&&_0x508deb[_0x4e9b('0xb0')]['isAtEnd'];}(_0x5c61e4)))_0x4f430a['removeMarker'](_0x43715c),_0x1e5ce7=!0x0;else{if(!_0x28cc92||!_0x28cc92[_0x4e9b('0x2b')])continue;_0x5c594a[_0x4e9b('0xf4')](_0x28cc92);}}}var _0x5c61e4;return _0x5c594a[_0x4e9b('0xd8')]>0x0&&(_0x1e5ce7=!!this[_0x4e9b('0x54')](_0x5c594a)||_0x1e5ce7),_0x1e5ce7;}),_0x5aad04['model'][_0x4e9b('0x105')][_0x4e9b('0xab')](_0x200a51=>{let _0x14a215=!0x1;for(const _0x2fa598 of _0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')][_0x4e9b('0x35')][_0x4e9b('0x65')]()){if('insert'!=_0x2fa598[_0x4e9b('0x11d')])continue;const _0x491f42=_0x2fa598[_0x4e9b('0xef')][_0x4e9b('0x7c')](_0x2fa598[_0x4e9b('0x70')]);if(_0x491f42[_0x4e9b('0x63')])for(const _0x5b3a5d of this[_0x4e9b('0x7d')][_0x4e9b('0xe9')]()){if(_0x5b3a5d[_0x4e9b('0x32')]||!_0x5b3a5d[_0x4e9b('0x2b')])continue;if(_0x4e9b('0xd2')!=_0x5b3a5d['type'])continue;const _0x266b39=_0x5b3a5d[_0x4e9b('0xc9')]();if(_0x266b39[_0x4e9b('0xb0')][_0x4e9b('0x106')]!=_0x266b39[_0x4e9b('0x2e')][_0x4e9b('0x106')]&&_0x266b39['end'][_0x4e9b('0x55')](_0x2fa598[_0x4e9b('0xef')])){const _0x6fdcd8=_0x5aad04['model']['createRange'](_0x266b39[_0x4e9b('0xb0')],_0x491f42);_0x200a51['updateMarker'](_0x5b3a5d['getFirstMarker'](),{'range':_0x6fdcd8}),_0x14a215=!0x0;}}}return _0x14a215;}),_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xf6')]['on'](_0x4e9b('0x104'),(_0x35f7fe,_0x4eba93,_0x42b930)=>{if(null==_0x42b930){const {id:_0x14aa91}=this[_0x4e9b('0x4')](_0x4eba93[_0x4e9b('0x15')]),_0x548012=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x14aa91);_0x548012&&_0x548012['addMarkerName'](_0x4eba93[_0x4e9b('0x15')]);}}),_0x5aad04['model']['document']['on'](_0x4e9b('0x27'),()=>{const _0x1a98db=Array['from'](_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x105')]['differ'][_0x4e9b('0x83')]())[_0x4e9b('0x22')](_0x457300=>_0x4e9b('0xe3')===this[_0x4e9b('0x4')](_0x457300[_0x4e9b('0x15')])[_0x4e9b('0x59')]);if(0x0===_0x1a98db[_0x4e9b('0x70')])return;_0x1a98db[_0x4e9b('0x11b')]((_0x1ddaa4,_0x5b179c)=>{const _0x31e352=_0x1ddaa4[_0x4e9b('0x17')][_0x4e9b('0x86')],_0x27888c=_0x5b179c[_0x4e9b('0x17')]['oldRange'];return null===_0x31e352&&null===_0x27888c?0x0:null===_0x31e352&&null!==_0x27888c?-0x1:null!==_0x31e352&&null===_0x27888c?0x1:_0x31e352[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x27888c[_0x4e9b('0xb0')])?-0x1:0x1;});const _0x25a8b1=new Set(),_0x2597e2=new Set();for(const {name:_0x339e32,data:_0x22e148}of _0x1a98db){const {id:_0x356c63}=this[_0x4e9b('0x4')](_0x339e32);if(null===_0x22e148['oldRange']){const _0xa3cd88=this['_handleNewSuggestionMarker'](_0x339e32);_0x2597e2[_0x4e9b('0xf4')](_0xa3cd88);}else{const _0x53fd10=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x356c63);null!==_0x22e148['newRange']||_0x53fd10['isInContent']?(_0x25a8b1[_0x4e9b('0xf4')](_0x53fd10[_0x4e9b('0x21')]),_0x2597e2[_0x4e9b('0xf4')](_0x53fd10)):this['_removeSuggestion'](_0x53fd10);}}_0x2597e2['size']>0x0&&this[_0x4e9b('0x4a')](_0x2597e2);for(const _0x407bc0 of _0x25a8b1)this[_0x4e9b('0x98')](_0x4e9b('0x66'),_0x407bc0);}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x134'),(_0x19f019,_0xb2c9bb)=>{const _0xc43970=_0xb2c9bb[0x0];if(!this['_suggestions'][_0x4e9b('0xd8')])return;if(!_0xc43970[_0x4e9b('0x10a')])return;if(_0xc43970['batch'][_0x4e9b('0xfb')]||!_0xc43970[_0x4e9b('0xda')][_0x4e9b('0x47')])return;let _0x402e3f,_0x4a0d46;switch(_0xc43970[_0x4e9b('0x11d')]){case _0x4e9b('0x12'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0xef')]),_0x4a0d46=_0x402e3f['getShiftedBy'](_0xc43970[_0x4e9b('0xf9')]);break;case _0x4e9b('0x12a'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0x11c')]),_0x4a0d46=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970[_0x4e9b('0xe4')]);break;case _0x4e9b('0x9e'):_0x402e3f=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x3')](_0xc43970['targetPosition']),_0x4a0d46=_0x402e3f['getShiftedBy'](_0xc43970[_0x4e9b('0xf9')]);break;default:return;}const _0x1fc660=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcb')](_0x402e3f,_0x4a0d46);_0x5aad04['model'][_0x4e9b('0x5a')](()=>{for(const {suggestion:_0x3d4f48,meta:_0x9cdd05}of this[_0x4e9b('0x7a')](_0x1fc660)){if(_0x3d4f48[_0x4e9b('0x32')])continue;if(_0x4e9b('0xa')==_0x3d4f48[_0x4e9b('0x11d')])continue;const _0x294aa8=_0x3d4f48[_0x4e9b('0x17')]&&_0x3d4f48[_0x4e9b('0x17')]['multipleBlocks'];('formatBlock'!=_0x3d4f48['type']||'split'==_0xc43970['type']&&!_0x294aa8)&&(_0x9cdd05[_0x4e9b('0x69')]||_0x4e9b('0x68')==_0x3d4f48[_0x4e9b('0x11d')]&&_0x9cdd05[_0x4e9b('0x1d')]||_0x3d4f48[_0x4e9b('0xc9')]()[_0x4e9b('0x3d')](_0x1fc660)&&this[_0x4e9b('0x11')](_0x3d4f48,_0x402e3f,_0x4a0d46));}});},{'priority':'lowest'}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x57'),(_0x485eb4,_0x363520)=>{const _0x254d98=_0x363520[0x0],_0x9e18f=_0x363520[0x1];if(_0x9e18f&&_0x9e18f[_0x4e9b('0xe7')])return;if(this[_0x4e9b('0x7')])return;if(!this[_0x4e9b('0x37')][_0x4e9b('0x102')])return;if(_0x254d98[_0x4e9b('0xde')])return;const _0x29dc74=_0x5aad04[_0x4e9b('0x125')]['schema'],{start:_0x25d12f,end:_0x295a39}=_0x254d98[_0x4e9b('0xc9')](),_0x53ca46=_0x25d12f[_0x4e9b('0xae')]&&_0x29dc74[_0x4e9b('0x127')](_0x25d12f['nodeAfter'])?null:_0x29dc74[_0x4e9b('0x6')](_0x25d12f,'forward'),_0x40740b=_0x295a39['nodeBefore']&&_0x29dc74[_0x4e9b('0x127')](_0x295a39[_0x4e9b('0xa6')])?null:_0x29dc74[_0x4e9b('0x6')](_0x295a39,_0x4e9b('0x3e')),_0x430b8c=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0xcb')](_0x53ca46?_0x53ca46[_0x4e9b('0xb0')]:_0x25d12f,_0x40740b?_0x40740b[_0x4e9b('0x2e')]:_0x295a39);_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x5a')](_0x27f4d7=>{this[_0x4e9b('0x103')](_0x430b8c);const _0x247336=_0x5aad04['model'][_0x4e9b('0xa5')][_0x4e9b('0x6')](_0x430b8c[_0x4e9b('0xb0')]);_0x254d98['is'](_0x4e9b('0x0'))?_0x27f4d7[_0x4e9b('0xb1')](_0x247336):_0x254d98[_0x4e9b('0x12d')](_0x247336);}),_0x485eb4[_0x4e9b('0x31')]();},{'priority':_0x18fc4d[_0x4e9b('0x91')]+0xa}),_0x5aad04[_0x4e9b('0x125')]['on'](_0x4e9b('0x93'),(_0x50f56d,_0x5cfe28)=>{const _0x381d46=_0x5cfe28[_0x5cfe28[_0x4e9b('0x70')]-0x1];_0x381d46&&_0x381d46[_0x4e9b('0xe7')]||this['_isForcedDefaultExecutionBlock']||this[_0x4e9b('0x37')][_0x4e9b('0x102')]&&(_0x5aad04['model'][_0x4e9b('0x5a')](()=>{let _0x1a4ed6=_0x5aad04[_0x4e9b('0x125')][_0x4e9b('0x93')](_0x5cfe28[0x0],_0x5cfe28[0x1],_0x5cfe28[0x2],{'forceDefaultExecution':!0x0});if(!_0x1a4ed6)return;_0x50f56d[_0x4e9b('0x16')]=_0x1a4ed6['clone']();const _0x2147a8=_0x1a4ed6[_0x4e9b('0x2e')][_0x4e9b('0xa6')],_0x55b966=_0x5aad04['model'][_0x4e9b('0xa5')];_0x2147a8&&_0x55b966[_0x4e9b('0x1c')](_0x2147a8)&&!_0x55b966[_0x4e9b('0xbc')](_0x2147a8)&&(_0x1a4ed6=_0x5aad04['model'][_0x4e9b('0xcb')](_0x1a4ed6[_0x4e9b('0xb0')],_0x5aad04['model'][_0x4e9b('0x3')](_0x2147a8,_0x4e9b('0x2e')))),this[_0x4e9b('0x100')](_0x1a4ed6);}),_0x50f56d[_0x4e9b('0x31')]());},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0xa1')]['commands'][_0x4e9b('0xf4')](_0x4e9b('0x4f'),this['trackChangesCommand']),this[_0x4e9b('0x56')](_0x4e9b('0x4f'));const _0xb0a828=new _0x5a576d(_0x5aad04,this['_suggestions']);_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')](_0x4e9b('0x36'),_0xb0a828),this[_0x4e9b('0x56')](_0x4e9b('0x36'));const _0x58c22c=new _0x157d55(_0x5aad04,this[_0x4e9b('0x7d')]);_0x5aad04[_0x4e9b('0xf5')]['add'](_0x4e9b('0xbf'),_0x58c22c),this[_0x4e9b('0x56')](_0x4e9b('0xbf')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('acceptAllSuggestions',new _0x4ad869(_0x5aad04,_0xb0a828,this[_0x4e9b('0x7d')])),this[_0x4e9b('0x56')](_0x4e9b('0x7e')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')](_0x4e9b('0x99'),new _0x4ad869(_0x5aad04,_0x58c22c,this['_suggestions'])),this[_0x4e9b('0x56')](_0x4e9b('0x99')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('acceptSelectedSuggestions',new _0x341c88(_0x5aad04,_0xb0a828,this[_0x4e9b('0x7d')])),this['enableCommand'](_0x4e9b('0x30')),_0x5aad04[_0x4e9b('0xf5')][_0x4e9b('0xf4')]('discardSelectedSuggestions',new _0x341c88(_0x5aad04,_0x58c22c,this[_0x4e9b('0x7d')])),this[_0x4e9b('0x56')](_0x4e9b('0x2a'));const _0x553151=_0x5aad04[_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0xbd'));this[_0x4e9b('0x19')](_0x553151,_0x4e9b('0x6b'),(_0x4f55f6,{threadId:_0x18548e})=>{const _0x4e5f07=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x18548e);_0x4e5f07&&_0x4e5f07['commentThread']&&0x1===_0x4e5f07[_0x4e9b('0x88')][_0x4e9b('0x70')]&&this[_0x4e9b('0x1f')](_0x18548e,{'hasComments':!0x0});},{'priority':_0x4e9b('0x79')}),this[_0x4e9b('0x19')](_0x553151,_0x4e9b('0x78'),(_0x3cca38,{threadId:_0x21b7aa})=>{const _0x57a439=this['_suggestions'][_0x4e9b('0xc5')](_0x21b7aa);_0x57a439&&_0x57a439[_0x4e9b('0x88')]&&!_0x57a439['commentThread'][_0x4e9b('0x70')]&&this[_0x4e9b('0x1f')](_0x21b7aa,{'hasComments':!0x1});},{'priority':_0x4e9b('0x79')});}set[_0x4e9b('0x10d')](_0x43fca8){if(this[_0x4e9b('0x1a')])throw new _0x225a88(_0x4e9b('0x6d'),this);this[_0x4e9b('0x1a')]=_0x43fca8;}get[_0x4e9b('0x10d')](){return this[_0x4e9b('0x1a')];}['getSuggestions']({skipNotAttached:_0x486bb3=!0x1,toJSON:_0x2527da=!0x1}={}){const _0x4d167d=[];for(const _0x4f1d0f of this['_suggestions'][_0x4e9b('0xe9')]())_0x486bb3&&!_0x4f1d0f[_0x4e9b('0x2b')]||_0x4d167d['push'](_0x4f1d0f);return _0x2527da?_0x4d167d['map'](_0x4c4696=>_0x4c4696[_0x4e9b('0xd6')]()):_0x4d167d;}[_0x4e9b('0x25')](_0x410a4d){const _0x1befae=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x410a4d);if(!_0x1befae)throw new _0x225a88('track-changes-suggestion-not-found',this);return _0x1befae;}[_0x4e9b('0x9d')](_0x3f7d37){return this[_0x4e9b('0x7d')][_0x4e9b('0x3c')](_0x3f7d37);}[_0x4e9b('0x116')](_0xdfe2a7){const {authorId:_0x492807,id:_0x58b2e7,attributes:_0x491376}=_0xdfe2a7,[_0xd38913,_0x38d91b]=_0xdfe2a7['type'][_0x4e9b('0x12a')](':'),_0x47ac7e=this[_0x4e9b('0x7d')]['get'](_0x58b2e7)||this[_0x4e9b('0x2f')](_0xd38913,_0x38d91b,_0x58b2e7,_0x492807,_0x491376);if(this[_0x4e9b('0xfc')](_0x47ac7e),this['_checkSuggestionCorrectness'](_0x47ac7e,_0xd38913,_0x38d91b||null,_0x492807),_0x47ac7e[_0x4e9b('0xb5')]=_0xdfe2a7[_0x4e9b('0xb5')],_0x491376&&_0x491376[_0x4e9b('0xea')]){const _0x388cb1=_0x491376[_0x4e9b('0xea')],_0x92fb6=this['_getExternalAuthor'](_0x388cb1[_0x4e9b('0x76')]);_0x47ac7e['authoredAt']=_0x388cb1['createdAt'],_0x47ac7e[_0x4e9b('0x6a')]=_0x92fb6,_0x47ac7e[_0x4e9b('0x10e')]=!0x0;}else _0x47ac7e[_0x4e9b('0xba')]=_0xdfe2a7[_0x4e9b('0xb5')];switch(_0xdfe2a7['data']&&(_0x47ac7e[_0x4e9b('0x17')]=_0xdfe2a7[_0x4e9b('0x17')]),_0xdfe2a7[_0x4e9b('0x3a')]&&(_0x47ac7e[_0x4e9b('0x3a')]=_0xdfe2a7[_0x4e9b('0x3a')]),this[_0x4e9b('0x1a')]&&this[_0x4e9b('0x1a')][_0x4e9b('0x28')]||(_0x47ac7e[_0x4e9b('0x12f')]=!0x0),this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x47ac7e)){case _0x4e9b('0x9a'):this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xc3'));break;case _0x4e9b('0x109'):_0x47ac7e[_0x4e9b('0x2b')]?(this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xec')),this['fire']('suggestionLoaded',_0x47ac7e)):this['_suggestionState'][_0x4e9b('0x107')](_0x47ac7e,_0x4e9b('0xee'));}return _0x47ac7e;}[_0x4e9b('0x36')](_0x487b6c){this['forceDefaultExecution'](()=>{this[_0x4e9b('0xa1')][_0x4e9b('0x125')]['change'](()=>{for(const _0x2a3813 of _0x487b6c[_0x4e9b('0xe2')]())_0x2a3813[_0x4e9b('0x39')]();});});}[_0x4e9b('0xbf')](_0x3974ee){this[_0x4e9b('0xe7')](()=>{this[_0x4e9b('0xa1')][_0x4e9b('0x125')][_0x4e9b('0x5a')](()=>{for(const _0x4537a8 of _0x3974ee['getAllAdjacentSuggestions']())_0x4537a8[_0x4e9b('0x7f')]();});});}[_0x4e9b('0x56')](_0x55f8ee,_0x8a3aa){const _0x3cb0ed=this[_0x4e9b('0xa1')][_0x4e9b('0xf5')][_0x4e9b('0xc5')](_0x55f8ee);if(!_0x3cb0ed)throw new _0x225a88('track-changes-command-not-found',this,{'commandName':_0x55f8ee});this[_0x4e9b('0xf0')]['add'](_0x3cb0ed),_0x8a3aa&&_0x3cb0ed['on']('execute',(_0x506fc7,_0x353adb)=>{this[_0x4e9b('0x37')]['value']&&(this[_0x4e9b('0x7')]||_0x353adb[_0x4e9b('0x70')]>0x0&&_0x353adb[_0x353adb[_0x4e9b('0x70')]-0x1]&&_0x353adb[_0x353adb[_0x4e9b('0x70')]-0x1][_0x4e9b('0xe7')]||(_0x8a3aa((..._0x216cab)=>_0x3cb0ed['execute'](..._0x216cab,{'forceDefaultExecution':!0x0}),..._0x353adb),_0x506fc7[_0x4e9b('0x31')]()));},{'priority':_0x4e9b('0x8b')});}[_0x4e9b('0xe7')](_0xf9eb4a){let _0x1efedf,_0xfab974;const _0x517b54=this[_0x4e9b('0x7')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1efedf=_0xf9eb4a();}catch(_0x38578c){_0xfab974=_0x38578c;}return _0x517b54||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xfab974&&_0x225a88[_0x4e9b('0xbb')](_0xfab974,this),_0x1efedf;}['markInsertion'](_0x7f068e,_0x55df49=null,_0x2a4c4e={}){if(_0x7f068e[_0x4e9b('0xde')])return null;const _0x43d971=this['editor'][_0x4e9b('0xe6')]['get']('Users')['me'];for(const {suggestion:_0xe3b505,meta:_0xa7b208}of this[_0x4e9b('0x7a')](_0x7f068e,'insertion'))if(_0xa7b208[_0x4e9b('0x1d')]){if(!_0xa7b208[_0x4e9b('0xf')]){if(!this[_0x4e9b('0x82')]&&_0xa7b208[_0x4e9b('0x69')])continue;return _0xe3b505;}if(_0x55df49==_0xe3b505[_0x4e9b('0x6c')]){const _0x4aba4c=_0xe3b505['getFirstRange']();return _0x4aba4c[_0x4e9b('0xb0')][_0x4e9b('0x55')](_0x7f068e[_0x4e9b('0x2e')])?this[_0x4e9b('0x120')](_0xe3b505,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x7f068e['start'],_0x4aba4c['end'])):this[_0x4e9b('0x120')](_0xe3b505,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x4aba4c[_0x4e9b('0xb0')],_0x7f068e[_0x4e9b('0x2e')])),_0xe3b505;}}const _0x5765d0=_0x4fbab8(),_0x342cc4=_0x43d971['id'],_0xd3b589=_0x55df49?'insertion:'+_0x55df49:'insertion',_0x2dfd19=this[_0x4e9b('0x113')]({'id':_0x5765d0,'type':_0xd3b589,'createdAt':new Date(),'authorId':_0x342cc4,'attributes':_0x2a4c4e});return this[_0x4e9b('0x77')](_0xd3b589,_0x5765d0,_0x342cc4,_0x7f068e),_0x2dfd19;}[_0x4e9b('0x128')](_0x48f3c1,_0x304604=_0x4e9b('0x46'),_0x19e442={}){const _0x51bb81=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x5a6ffd=this['_suggestionFactory'][_0x4e9b('0x51')](_0x4e9b('0x68'),_0x304604,_0x4e9b('0x85'));for(const _0x44bb6d of this[_0x4e9b('0x43')]())if(_0x44bb6d[_0x4e9b('0x6a')]['id']==_0x51bb81['id']&&_0x4e9b('0x68')==_0x44bb6d['type']&&_0x44bb6d['subType']==_0x304604&&(_0x5a6ffd(_0x44bb6d[_0x4e9b('0x8a')](),_0x48f3c1)||_0x5a6ffd(_0x48f3c1,_0x44bb6d['getRanges']()))){for(const _0x39c1f1 of _0x48f3c1)_0x44bb6d[_0x4e9b('0x74')](_0x39c1f1);return _0x44bb6d;}if(this[_0x4e9b('0x82')])for(const _0x3d781e of _0x48f3c1)for(const {suggestion:_0x1d85bc,meta:_0xebc558}of this[_0x4e9b('0x7a')](_0x3d781e,_0x4e9b('0x68'))){if(!_0xebc558[_0x4e9b('0x1d')])continue;let _0x4fd5ef=!0x0;for(const _0x359cdc of _0x1d85bc[_0x4e9b('0x8a')]())for(const _0x542ff7 of _0x48f3c1)if(!_0x359cdc['containsRange'](_0x542ff7)){_0x4fd5ef=!0x1;break;}if(_0x4fd5ef)return _0x1d85bc;}const _0x96425c=_0x4fbab8(),_0x475090=_0x51bb81['id'],_0x5bac57=_0x4e9b('0x9f')+_0x304604,_0x2dfb48=this[_0x4e9b('0x113')]({'id':_0x96425c,'type':_0x5bac57,'createdAt':new Date(),'authorId':_0x475090,'attributes':_0x19e442});for(const _0x41964d of _0x48f3c1)this[_0x4e9b('0x77')](_0x5bac57,_0x96425c,_0x475090,_0x41964d,_0x2b860e[_0x4e9b('0xb')]());return _0x2dfb48;}['markInlineFormat'](_0x5b95aa,_0x5856a9,_0x35460b=null,_0x12d425={}){if(_0x35460b=_0x35460b||$t(_0x5856a9),_0x5b95aa['isCollapsed'])return null;if(_0x4e9b('0xdc')===this['_trackFormatChanges']){const _0x10d07d=this['_suggestionFactory']['getSuggestionCallback'](_0x4e9b('0xa'),_0x35460b,'accept');return this[_0x4e9b('0xe7')](()=>_0x10d07d([_0x5b95aa],_0x5856a9,_0x12d425)),null;}const _0xb70062=this['editor']['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x5e08c6=[];if('always'!==this[_0x4e9b('0x71')])for(const {suggestion:_0x1122ea,meta:_0x4e3a11}of this[_0x4e9b('0x7a')](_0x5b95aa,_0x4e9b('0x68')))_0x4e3a11[_0x4e9b('0x1d')]&&!_0x4e3a11[_0x4e9b('0xcf')]&&_0x5e08c6[_0x4e9b('0x13')](..._0x1122ea[_0x4e9b('0x8a')]());const _0x9ff8a1=function(_0x2a8792,_0x556094){const _0xbfe57e=[];for(const _0x38c9eb of _0x556094){const _0x3c55f7=_0x2a8792[_0x4e9b('0x112')](_0x38c9eb);_0x3c55f7&&_0xbfe57e[_0x4e9b('0x13')](_0x3c55f7);}return _0xbfe57e;}(_0x5b95aa,_0x5e08c6),_0x114b11=function(_0x2f8a8c,_0x56cc4f){const _0x512287=[_0x2f8a8c];for(const _0x150d98 of _0x56cc4f){let _0x2d5690=0x0;for(;_0x2d5690<_0x512287[_0x4e9b('0x70')];){const _0x5d6e7d=_0x512287[_0x2d5690]['getDifference'](_0x150d98);_0x512287[_0x4e9b('0xdd')](_0x2d5690,0x1,..._0x5d6e7d),_0x2d5690+=_0x5d6e7d['length'];}}return _0x512287;}(_0x5b95aa,_0x5e08c6);_0x9ff8a1[_0x4e9b('0x70')]&&this['_model'][_0x4e9b('0x5a')](()=>{for(const _0x5e6bf3 of _0x9ff8a1){const _0x4d296d=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xa'),_0x35460b,_0x4e9b('0x39'));this['forceDefaultExecution'](()=>_0x4d296d([_0x5e6bf3],_0x5856a9,_0x12d425));}});for(const _0x794ed4 of _0x114b11){let _0x521f1a=null,_0x50c0c9=_0x794ed4[_0x4e9b('0xb0')],_0x183fb0=_0x794ed4['end'];for(const {suggestion:_0x2af6ec,meta:_0x2c1f91}of this['_findSuggestions'](_0x794ed4,_0x4e9b('0xa'))){if(!_0x2c1f91['isOwn'])continue;if(_0x2af6ec['subType']!=_0x35460b)continue;const _0x142ba1=_0x2af6ec['getFirstRange']();if(_0x142ba1[_0x4e9b('0x3d')](_0x794ed4,!0x0))return null;_0x50c0c9=_0x50c0c9['isBefore'](_0x142ba1[_0x4e9b('0xb0')])?_0x50c0c9:_0x142ba1[_0x4e9b('0xb0')],_0x183fb0=_0x183fb0[_0x4e9b('0x87')](_0x142ba1[_0x4e9b('0x2e')])?_0x183fb0:_0x142ba1[_0x4e9b('0x2e')],_0x521f1a?_0x142ba1[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x521f1a[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')])?(_0x521f1a[_0x4e9b('0x123')](),_0x521f1a=_0x2af6ec):_0x2af6ec[_0x4e9b('0x123')]():_0x521f1a=_0x2af6ec;}const _0x3ced5e=this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x50c0c9,_0x183fb0);if(_0x521f1a)this[_0x4e9b('0x120')](_0x521f1a,_0x3ced5e);else{const _0x2a877a=_0x4fbab8(),_0x2e90db=_0xb70062['id'];this[_0x4e9b('0x113')]({'id':_0x2a877a,'type':_0x4e9b('0x49')+_0x35460b,'data':_0x5856a9,'createdAt':new Date(),'authorId':_0x2e90db,'attributes':_0x12d425}),this[_0x4e9b('0x77')](_0x4e9b('0x49')+_0x35460b,_0x2a877a,_0x2e90db,_0x3ced5e);}}return null;}[_0x4e9b('0x1e')](_0xdd5715,_0x56afd7,_0x30d2e8=[],_0x17d13a=null,_0xb5089d={}){_0x56afd7[_0x4e9b('0x1')]||(_0x56afd7[_0x4e9b('0x1')]=_0x56afd7['commandName']),_0x56afd7['multipleBlocks']=_0xdd5715['is'](_0x4e9b('0x135')),_0x17d13a=_0x17d13a||$t(_0x56afd7);const _0x5ad02f=_0x30d2e8[_0x4e9b('0xc0')](_0x93e532=>Rt(_0x93e532,this[_0x4e9b('0x38')])),_0x2d518b=_0xdd5715['is'](_0x4e9b('0x135'))?_0xdd5715:Rt(_0xdd5715,this[_0x4e9b('0x38')]);if(_0x4e9b('0xdc')===this[_0x4e9b('0x71')]){const _0x54cbdf=this['_suggestionFactory'][_0x4e9b('0x51')]('formatBlock',_0x17d13a,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x54cbdf([_0x2d518b],_0x56afd7,_0xb5089d)),null;}_0x5ad02f[_0x4e9b('0x13')](_0x2d518b);let _0x5c7518=!0x0;for(const _0x1be67e of _0x5ad02f)if(!this['_rangeIsInLocalUserInsertion'](_0x1be67e)){_0x5c7518=!0x1;break;}if(_0x5c7518&&_0x4e9b('0x44')!==this[_0x4e9b('0x71')]){const _0x520cff=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x17d13a,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x520cff([_0x2d518b],_0x56afd7,_0xb5089d)),null;}let _0x2d5fcc=null,_0x260daa=_0x2d518b['start'],_0x404b0c=_0x2d518b[_0x4e9b('0x2e')];for(const {suggestion:_0x193fad,meta:_0x99b6e2}of this['_findSuggestions'](_0x2d518b,_0x4e9b('0xd2'))){if(!_0x99b6e2[_0x4e9b('0x1d')]||_0x99b6e2[_0x4e9b('0xf')]||_0x99b6e2[_0x4e9b('0x69')]||_0x99b6e2[_0x4e9b('0xcf')])continue;if(_0x193fad[_0x4e9b('0x17')]['formatGroupId']!=_0x56afd7[_0x4e9b('0x1')])continue;const _0x39be02=_0x193fad['getFirstRange']();if(_0x193fad[_0x4e9b('0x6c')]==_0x17d13a){if(_0x39be02[_0x4e9b('0x3d')](_0x2d518b,!0x0))return null;_0x260daa=_0x260daa['isBefore'](_0x39be02[_0x4e9b('0xb0')])?_0x260daa:_0x39be02[_0x4e9b('0xb0')],_0x404b0c=_0x404b0c[_0x4e9b('0x87')](_0x39be02[_0x4e9b('0x2e')])?_0x404b0c:_0x39be02[_0x4e9b('0x2e')],_0x2d5fcc?_0x39be02['start'][_0x4e9b('0x26')](_0x2d5fcc[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')])?(_0x2d5fcc[_0x4e9b('0x123')](),_0x2d5fcc=_0x193fad):_0x193fad['removeMarkers']():_0x2d5fcc=_0x193fad;}else{const _0x451741=_0x2d518b[_0x4e9b('0x112')](_0x39be02);this[_0x4e9b('0xd0')](_0x193fad,_0x451741);}}const _0x565e5a=this[_0x4e9b('0xa1')]['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x3db704=_0x4fbab8(),_0x4f0ce5=_0x565e5a['id'];if(_0x2d5fcc)return this['_setSuggestionRange'](_0x2d5fcc,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x260daa,_0x404b0c)),_0x2d5fcc;{const _0x12af96=this[_0x4e9b('0x113')]({'id':_0x3db704,'type':'formatBlock:'+_0x17d13a,'data':_0x56afd7,'createdAt':new Date(),'authorId':_0x4f0ce5,'attributes':_0xb5089d});return this[_0x4e9b('0x77')](_0x4e9b('0xf3')+_0x17d13a,_0x3db704,_0x4f0ce5,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x260daa,_0x404b0c)),_0x12af96;}}['markMultiRangeBlockFormat'](_0x4ec7a1,_0x429fb8,_0x34d391=[],_0x4c71d7=null,_0x4729dc={}){_0x429fb8[_0x4e9b('0x1')]||(_0x429fb8[_0x4e9b('0x1')]=_0x429fb8['commandName']);const _0x1b692e=_0x4ec7a1[0x0];_0x429fb8[_0x4e9b('0x89')]=_0x1b692e['is'](_0x4e9b('0x135')),_0x4c71d7=_0x4c71d7||$t(_0x429fb8);const _0x596b98=_0x34d391[_0x4e9b('0xc0')](_0x122965=>Rt(_0x122965,this[_0x4e9b('0x38')])),_0x2c9b37=_0x1b692e['is'](_0x4e9b('0x135'))?_0x4ec7a1:_0x4ec7a1['map'](_0x17d5fb=>Rt(_0x17d5fb,this[_0x4e9b('0x38')]));if(_0x4e9b('0xdc')===this[_0x4e9b('0x71')]){const _0x14f55d=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x14f55d(_0x2c9b37,_0x429fb8,_0x4729dc)),null;}_0x596b98['push'](..._0x2c9b37);let _0x20b6cc=!0x0;for(const _0x42401c of _0x596b98)if(!this['_rangeIsInLocalUserInsertion'](_0x42401c)){_0x20b6cc=!0x1;break;}if(_0x20b6cc&&_0x4e9b('0x44')!==this['_trackFormatChanges']){const _0x2b2243=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,'accept');return this[_0x4e9b('0xe7')](()=>_0x2b2243(_0x2c9b37,_0x429fb8,_0x4729dc)),null;}const _0x44461e=this['editor'][_0x4e9b('0xe6')]['get'](_0x4e9b('0x8f'))['me'];for(const _0xd8b49e of this[_0x4e9b('0x43')]()){if(_0xd8b49e[_0x4e9b('0x6a')]['id']!=_0x44461e['id'])continue;if('formatBlock'!=_0xd8b49e[_0x4e9b('0x11d')]||_0xd8b49e['data'][_0x4e9b('0x1')]!=_0x429fb8[_0x4e9b('0x1')])continue;const _0x37ee4d=_0xd8b49e['subType']==_0x4c71d7;for(let _0x36a1d2=0x0;_0x36a1d2<_0x2c9b37['length'];_0x36a1d2++){const _0x39f300=_0x2c9b37[_0x36a1d2];for(const _0x1917ca of _0xd8b49e[_0x4e9b('0x5f')]()){const _0x2fbf83=_0x1917ca[_0x4e9b('0xa7')]();if(_0x39f300[_0x4e9b('0x55')](_0x2fbf83)){_0x37ee4d?(_0x2c9b37['splice'](_0x36a1d2,0x1),_0x36a1d2--):_0xd8b49e[_0x4e9b('0x5c')](_0x1917ca[_0x4e9b('0x15')]);break;}}}}if(0x0==_0x2c9b37['length'])return null;const _0x32c307=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0xd2'),_0x4c71d7,'join');for(const _0x4c0eb3 of this[_0x4e9b('0x43')]())if(_0x4c0eb3[_0x4e9b('0x6a')]['id']==_0x44461e['id']&&_0x4e9b('0xd2')==_0x4c0eb3[_0x4e9b('0x11d')]&&_0x4c0eb3['data'][_0x4e9b('0x1')]==_0x429fb8['formatGroupId']&&_0x4c0eb3[_0x4e9b('0x6c')]==_0x4c71d7&&(_0x32c307(_0x4c0eb3['getRanges'](),_0x2c9b37)||_0x32c307(_0x2c9b37,_0x4c0eb3[_0x4e9b('0x8a')]()))){for(const _0x33c7b1 of _0x2c9b37)_0x4c0eb3[_0x4e9b('0x74')](_0x33c7b1);return _0x4c0eb3;}const _0x4f7f2b=_0x4fbab8(),_0x8646ba=_0x44461e['id'],_0x326d59=_0x4e9b('0xf3')+_0x4c71d7,_0x2e6a10=this[_0x4e9b('0x113')]({'id':_0x4f7f2b,'type':_0x326d59,'data':_0x429fb8,'createdAt':new Date(),'authorId':_0x8646ba,'attributes':_0x4729dc});for(const _0x40f4ed of _0x2c9b37)this[_0x4e9b('0x77')](_0x326d59,_0x4f7f2b,_0x8646ba,_0x40f4ed,_0x2b860e[_0x4e9b('0xb')]());return _0x2e6a10;}['markDeletion'](_0x29120c,_0x26440d=null,_0x3a805d={}){if(_0x29120c['isCollapsed'])return null;const _0x266caa=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0x262543=new _0x5e3949(_0x29120c[_0x4e9b('0xb0')],_0x29120c[_0x4e9b('0x2e')]);for(const {suggestion:_0x425a72,meta:_0x4cb168}of this[_0x4e9b('0x7a')](_0x262543,_0x4e9b('0x68')))if(_0x4cb168[_0x4e9b('0x1d')]&&!_0x4cb168[_0x4e9b('0xf')]){if(_0x425a72[_0x4e9b('0x32')]){const _0x2776df=_0x425a72['getRanges']()[_0x4e9b('0x22')](_0x18be0a=>_0x4e9b('0xaa')!=_0x18be0a['root'][_0x4e9b('0x72')]);_0x2776df[_0x4e9b('0x12e')](_0x4fdbc7=>_0x262543[_0x4e9b('0x3d')](_0x4fdbc7,!0x0))&&_0x425a72[_0x4e9b('0x7f')]();if(_0x2776df['some'](_0x3c26d8=>_0x3c26d8[_0x4e9b('0x3d')](_0x262543,!0x0))){const _0x1a17fd=this[_0x4e9b('0x73')]['getSuggestionCallback'](_0x4e9b('0x5e'),_0x26440d,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x1a17fd([_0x262543],null,_0x3a805d)),null;}}else{const _0x1856bf=_0x262543['getIntersection'](_0x425a72[_0x4e9b('0xc9')]());null!==_0x1856bf&&_0x425a72[_0x4e9b('0x6e')]([_0x1856bf],null,_0x3a805d);}}if(_0x262543[_0x4e9b('0x42')](),_0x262543[_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x262543[_0x4e9b('0x10b')][_0x4e9b('0x72')])return null;let _0x227e75=null,_0x50fa48=_0x262543[_0x4e9b('0xb0')],_0x5216be=_0x262543['end'];for(const {suggestion:_0x20aa58,meta:_0x1b8698}of this[_0x4e9b('0x7a')](_0x262543,_0x4e9b('0x5e')))if(_0x1b8698['isOwn']){if(_0x20aa58[_0x4e9b('0x32')]&&this[_0x4e9b('0x82')]){let _0x29791e=!0x0;for(const _0x2d3c19 of _0x20aa58[_0x4e9b('0x8a')]()){if(_0x2d3c19[_0x4e9b('0x3d')](_0x262543,!0x0))return _0x20aa58;_0x262543['containsRange'](_0x2d3c19)||(_0x29791e=!0x1);}_0x29791e&&_0x20aa58['discard']();}else{const _0x353421=_0x20aa58['getFirstRange']();if(_0x353421[_0x4e9b('0x3d')](_0x262543,!0x0)){if(!this[_0x4e9b('0x82')]&&_0x1b8698[_0x4e9b('0x69')])continue;return _0x20aa58;}_0x50fa48=_0x50fa48['isBefore'](_0x353421['start'])?_0x50fa48:_0x353421['start'],_0x5216be=_0x5216be[_0x4e9b('0x87')](_0x353421[_0x4e9b('0x2e')])?_0x5216be:_0x353421[_0x4e9b('0x2e')],_0x227e75?_0x353421['start'][_0x4e9b('0x26')](_0x227e75['getFirstRange']()[_0x4e9b('0xb0')])?(_0x227e75[_0x4e9b('0x123')](),_0x227e75=_0x20aa58):_0x20aa58[_0x4e9b('0x123')]():_0x227e75=_0x20aa58;}}if(_0x227e75)return this[_0x4e9b('0x120')](_0x227e75,this[_0x4e9b('0x38')]['createRange'](_0x50fa48,_0x5216be)),_0x227e75;{const _0x4e6b05=_0x4fbab8(),_0x5e5386=this['_model'][_0x4e9b('0xcb')](_0x50fa48,_0x5216be),_0x32e8de=_0x266caa['id'],_0x6893dc=_0x26440d?_0x4e9b('0x52')+_0x26440d:'deletion',_0x4b6076=this[_0x4e9b('0x113')]({'id':_0x4e6b05,'type':_0x6893dc,'createdAt':new Date(),'authorId':_0x32e8de,'attributes':_0x3a805d});return this[_0x4e9b('0x77')](_0x6893dc,_0x4e6b05,_0x32e8de,_0x5e5386),_0x4b6076;}}['markMultiRangeDeletion'](_0x4f965c,_0x5cdbc7=_0x4e9b('0x46'),_0x1a8700={}){const _0x201387=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'],_0xc2b319=_0x4f965c[_0x4e9b('0xc0')](_0x363854=>new _0x5e3949(_0x363854[_0x4e9b('0xb0')],_0x363854[_0x4e9b('0x2e')])),_0x322c1d=new Set();for(const _0x5130f3 of _0xc2b319)for(const {suggestion:_0xce186a,meta:_0x127c94}of this[_0x4e9b('0x7a')](_0x5130f3,'insertion'))_0x127c94[_0x4e9b('0x1d')]&&!_0x127c94[_0x4e9b('0xf')]&&_0x322c1d['add'](_0xce186a);for(const _0x6b8c12 of _0x322c1d)if(_0x6b8c12['isMultiRange']){const _0x2acf67=_0x6b8c12[_0x4e9b('0x8a')]();(!_0x6b8c12[_0x4e9b('0x3a')]||!_0x6b8c12['attributes'][_0x4e9b('0x29')])&&(_0x2acf67[_0x4e9b('0x12e')](_0x9ec8a9=>_0xc2b319[_0x4e9b('0xc7')](_0x612352=>_0x612352[_0x4e9b('0x3d')](_0x9ec8a9,!0x0)))&&_0x6b8c12[_0x4e9b('0x7f')]());if(_0xc2b319[_0x4e9b('0x12e')](_0x5656df=>_0x2acf67[_0x4e9b('0xc7')](_0x4f8cd7=>_0x4f8cd7[_0x4e9b('0x3d')](_0x5656df,!0x0)))){const _0x45928f=this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4e9b('0x5e'),_0x5cdbc7,_0x4e9b('0x39'));return this[_0x4e9b('0xe7')](()=>_0x45928f(_0x4f965c,null,_0x1a8700)),null;}}else{const _0x2ac3bc=_0x6b8c12[_0x4e9b('0xc9')]();_0xc2b319[_0x4e9b('0xc7')](_0x17c044=>_0x17c044[_0x4e9b('0x3d')](_0x2ac3bc,!0x0))&&_0x6b8c12[_0x4e9b('0x7f')]();if(_0xc2b319[_0x4e9b('0x12e')](_0x47d945=>_0x2ac3bc[_0x4e9b('0x3d')](_0x47d945,!0x0))){const _0xb15a06=this[_0x4e9b('0x73')]['getSuggestionCallback'](_0x4e9b('0x5e'),_0x5cdbc7,_0x4e9b('0x39'));return this['forceDefaultExecution'](()=>_0xb15a06(_0xc2b319,null,_0x1a8700)),null;}}const _0x51935c=this[_0x4e9b('0x73')]['getSuggestionCallback']('deletion',_0x5cdbc7,_0x4e9b('0x85'));let _0x4914e1=null;for(const _0x9598a6 of this[_0x4e9b('0x43')]())if(_0x9598a6[_0x4e9b('0x6a')]['id']==_0x201387['id']&&_0x9598a6['isInContent']&&_0x4e9b('0x5e')==_0x9598a6['type']&&_0x9598a6['subType']==_0x5cdbc7&&(_0x51935c(_0x9598a6[_0x4e9b('0x8a')](),_0xc2b319)||_0x51935c(_0xc2b319,_0x9598a6[_0x4e9b('0x8a')]()))){if(_0x4914e1){if(_0x9598a6['commentThread']&&_0x9598a6[_0x4e9b('0x88')][_0x4e9b('0x70')])continue;for(const _0x14be2c of _0x9598a6['getRanges']())_0x4914e1[_0x4e9b('0x58')](_0x14be2c)||_0x4914e1['addRange'](_0x14be2c);_0x9598a6['removeMarkers']();}else{_0x4914e1=_0x9598a6;for(const _0x4e9968 of _0xc2b319)_0x9598a6['isIntersectingWithRange'](_0x4e9968)||_0x9598a6[_0x4e9b('0x74')](_0x4e9968);}}if(_0x4914e1)return _0x4914e1;_0x322c1d['clear']();for(const _0x2d27d0 of _0xc2b319)for(const {suggestion:_0x51f347,meta:_0x28ab84}of this[_0x4e9b('0x7a')](_0x2d27d0,'deletion'))_0x28ab84[_0x4e9b('0x1d')]&&_0x322c1d[_0x4e9b('0xf4')](_0x51f347);for(const _0xe1a0a8 of _0x322c1d){const _0x59f901=_0xe1a0a8[_0x4e9b('0x8a')]();if(!_0x1a8700||!_0x1a8700[_0x4e9b('0x29')]){if(_0xc2b319[_0x4e9b('0x12e')](_0x1febbc=>_0x59f901[_0x4e9b('0xc7')](_0x303e30=>_0x303e30[_0x4e9b('0x3d')](_0x1febbc,!0x0))))return _0xe1a0a8;}(!_0xe1a0a8[_0x4e9b('0x3a')]||!_0xe1a0a8[_0x4e9b('0x3a')]['skipNestingCheck'])&&(_0x59f901[_0x4e9b('0x12e')](_0x1ade87=>_0xc2b319[_0x4e9b('0xc7')](_0x49e6dd=>_0x49e6dd[_0x4e9b('0x3d')](_0x1ade87,!0x0)))&&_0xe1a0a8['discard']());}const _0x256af3=_0x4fbab8(),_0x418e1a=_0x201387['id'],_0x554499=_0x4e9b('0x52')+_0x5cdbc7,_0x62171=this[_0x4e9b('0x113')]({'id':_0x256af3,'type':_0x554499,'createdAt':new Date(),'authorId':_0x418e1a,'attributes':_0x1a8700});for(const _0x3ee350 of _0xc2b319)_0x3ee350[_0x4e9b('0x42')](),_0x3ee350[_0x4e9b('0xde')]||_0x4e9b('0xaa')==_0x3ee350[_0x4e9b('0x10b')]['rootName']||this[_0x4e9b('0x77')](_0x554499,_0x256af3,_0x418e1a,_0x3ee350,_0x2b860e['getMultiRangeId']());return _0x62171;}['_setSuggestionRange'](_0x474348,_0x5c5b59){const _0x156175=_0x474348[_0x4e9b('0xe8')]();this[_0x4e9b('0x38')][_0x4e9b('0x5a')](_0x48318f=>{_0x48318f[_0x4e9b('0x3f')](_0x156175,{'range':_0x5c5b59});});}[_0x4e9b('0xfc')](_0x3ffddd){const _0x114da3=_0x3ffddd['id'],_0x1e100b=this[_0x4e9b('0xa1')]['config'][_0x4e9b('0xc5')](_0x4e9b('0x9b'));this[_0x4e9b('0x81')][_0x4e9b('0x84')](_0x114da3)||this[_0x4e9b('0x81')][_0x4e9b('0x20')]({'channelId':_0x1e100b,'threadId':_0x114da3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f3f03=this['_commentsRepository']['getCommentThread'](_0x114da3);_0x3f3f03['unbind'](_0x4e9b('0x11e')),_0x3f3f03[_0x4e9b('0x11e')]=!0x1,_0x3ffddd[_0x4e9b('0x88')]=_0x3f3f03;}[_0x4e9b('0x53')](_0x1aa0a5,_0x44b085,_0x238fe4,_0x4c376f){if(_0x1aa0a5[_0x4e9b('0x11d')]!=_0x44b085||_0x1aa0a5[_0x4e9b('0x6c')]!=_0x238fe4||_0x1aa0a5[_0x4e9b('0xd7')]['id']!=_0x4c376f)throw this['editor'][_0x4e9b('0xbe')](_0x4e9b('0x5b')),new _0x225a88('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3dc53b,_0xaaf60f){const _0x181472=_0x3dc53b[_0x4e9b('0xc9')]();if(_0xaaf60f['isEqual'](_0x181472))_0x3dc53b[_0x4e9b('0x123')]();else{if(_0x181472[_0x4e9b('0x3d')](_0xaaf60f)){const _0x31aa58=this[_0x4e9b('0x38')]['createPositionAt'](_0xaaf60f['start'][_0x4e9b('0xa6')],_0x4e9b('0x2e'));this['_setSuggestionRange'](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x181472[_0x4e9b('0xb0')],_0x31aa58));const _0x4bc7df=_0x4fbab8(),_0x37bf22=_0x3dc53b['creator']['id'],_0x657888=_0x3dc53b[_0x4e9b('0x11d')]+':'+_0x3dc53b['subType'];this[_0x4e9b('0x113')]({'id':_0x4bc7df,'type':_0x657888,'createdAt':new Date(),'authorId':_0x37bf22,'data':_0x3dc53b[_0x4e9b('0x17')],'attributes':_0x3dc53b[_0x4e9b('0x3a')]});const _0x398fce=this[_0x4e9b('0x38')]['createPositionAt'](_0xaaf60f[_0x4e9b('0x2e')][_0x4e9b('0x106')],_0x4e9b('0xaf')),_0x1ea48d=this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x398fce,_0x181472['end']);this[_0x4e9b('0x77')](_0x657888,_0x4bc7df,_0x37bf22,_0x1ea48d);}else{if(_0x181472['containsPosition'](_0xaaf60f[_0x4e9b('0xb0')])){const _0x3535f5=this['_model']['createPositionAt'](_0xaaf60f[_0x4e9b('0xb0')][_0x4e9b('0xa6')],'end');this[_0x4e9b('0x120')](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x181472[_0x4e9b('0xb0')],_0x3535f5));}else{const _0x4915d8=this['_model']['createPositionAt'](_0xaaf60f[_0x4e9b('0x2e')]['parent'],'after');this[_0x4e9b('0x120')](_0x3dc53b,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x4915d8,_0x181472[_0x4e9b('0x2e')]));}}}}['_rangeIsInLocalUserInsertion'](_0x4ad2c0){for(const {suggestion:_0x11dd87,meta:_0x19b45b}of this[_0x4e9b('0x7a')](_0x4ad2c0,_0x4e9b('0x68'))){if(!_0x19b45b[_0x4e9b('0x1d')])continue;const _0x2e22fc=_0x11dd87[_0x4e9b('0x8a')]();for(const _0x45795e of _0x2e22fc)if(!_0x4ad2c0['getDifference'](_0x45795e)[_0x4e9b('0x70')])return!0x0;}return!0x1;}[_0x4e9b('0x96')](_0x4cac67){const _0xfc2335=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['getUser'](_0x4cac67);if(!_0xfc2335)throw new _0x225a88(_0x4e9b('0x62'),this);return _0xfc2335;}[_0x4e9b('0x64')](_0x31fab1){const _0xe442d4=this[_0x4e9b('0xa1')][_0x4e9b('0xe6')][_0x4e9b('0xc5')](_0x4e9b('0x8f')),_0x5817bb=_0x305c8b(_0x4e9b('0xa2')+_0x31fab1),_0x34b1da=_0xe442d4[_0x4e9b('0x50')](_0x5817bb);return _0x34b1da||_0xe442d4[_0x4e9b('0x121')]({'id':_0x5817bb,'name':_0x31fab1});}['_createSuggestion'](_0xb2f8db,_0x3eef38,_0x18d80a,_0xc57ed1,_0x250532){const _0x347069=this[_0x4e9b('0x96')](_0xc57ed1),_0x30defd=this[_0x4e9b('0x73')][_0x4e9b('0x48')](_0xb2f8db,_0x3eef38,_0x18d80a,_0x347069,_0x250532,_0xbf9535=>this[_0x4e9b('0x1f')](_0x18d80a,{'attributes':_0xbf9535}));return this['listenTo'](_0x30defd,_0x4e9b('0x39'),()=>{this[_0x4e9b('0x1f')](_0x18d80a,{'state':_0x4e9b('0x131')});},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0x19')](_0x30defd,_0x4e9b('0x7f'),()=>{this[_0x4e9b('0x1f')](_0x18d80a,{'state':_0x4e9b('0x75')});},{'priority':_0x4e9b('0x8b')}),this[_0x4e9b('0x7d')][_0x4e9b('0x107')](_0x18d80a,_0x30defd),this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x30defd,'notReady'),_0x30defd;}[_0x4e9b('0x4')](_0x2d2d4b){const _0x244ccc=_0x2d2d4b[_0x4e9b('0x12a')](':');return{'group':_0x244ccc[0x0],'type':_0x244ccc[0x1],'subType':_0x244ccc['length']>=0x5?_0x244ccc[0x2]:null,'id':_0x244ccc[_0x4e9b('0x70')]<0x5?_0x244ccc[0x2]:_0x244ccc[0x3],'authorId':_0x244ccc[_0x4e9b('0x70')]<0x5?_0x244ccc[0x3]:_0x244ccc[0x4],'markerCount':0x6==_0x244ccc['length']?_0x244ccc[0x5]:null};}[_0x4e9b('0x11')](_0x165fee,_0x2e5bc9,_0x7d0dee){const _0x231239=_0x165fee[_0x4e9b('0xc9')](),_0x2d6432=_0x231239[_0x4e9b('0xb0')],_0x4605dd=_0x231239[_0x4e9b('0x2e')];this[_0x4e9b('0x120')](_0x165fee,this[_0x4e9b('0x38')][_0x4e9b('0xcb')](_0x2d6432,_0x2e5bc9));const _0x1d39be=_0x4fbab8(),_0x41a91a=_0x165fee[_0x4e9b('0xd7')]['id'],_0x33805e=_0x165fee[_0x4e9b('0x11d')]+(_0x165fee['subType']?':'+_0x165fee[_0x4e9b('0x6c')]:'');this['_setSuggestionData']({'id':_0x1d39be,'type':_0x33805e,'createdAt':new Date(),'authorId':_0x41a91a,'originalSuggestionId':_0x165fee['id'],'attributes':_0x165fee['attributes'],'data':_0x165fee['data']}),_0x4e9b('0xd2')==_0x165fee[_0x4e9b('0x11d')]&&(_0x7d0dee=this['_model'][_0x4e9b('0xa4')](_0x7d0dee[_0x4e9b('0x106')])),this['_addSuggestionMarker'](_0x33805e,_0x1d39be,_0x41a91a,this['_model'][_0x4e9b('0xcb')](_0x7d0dee,_0x4605dd));}[_0x4e9b('0x7a')](_0x491783,_0x2e451e=null){const _0x577e63=[],_0x1b0770=this[_0x4e9b('0x38')]['schema'],_0x551735=this[_0x4e9b('0xa1')]['plugins'][_0x4e9b('0xc5')](_0x4e9b('0x8f'))['me'];for(const _0xeae648 of this[_0x4e9b('0x43')]())if(_0xeae648['isInContent']&&(!_0x2e451e||_0xeae648[_0x4e9b('0x11d')]==_0x2e451e))for(const _0x340c8c of _0xeae648['getRanges']()){const _0x1a95ed=_0x491783[_0x4e9b('0xb0')][_0x4e9b('0x55')](_0x340c8c['end'])||_0x491783[_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x340c8c['start']);if(_0x1a95ed||_0x491783[_0x4e9b('0x112')](_0x340c8c)){const _0x5079f4=_0x491783['containsRange'](_0x340c8c)&&Bt(_0x1b0770,_0x340c8c[_0x4e9b('0xb0')],_0x491783),_0x422a8c=_0x340c8c[_0x4e9b('0x3d')](_0x491783)&&Bt(_0x1b0770,_0x491783['start'],_0x340c8c);_0x577e63[_0x4e9b('0x13')]({'suggestion':_0xeae648,'meta':{'isOwn':_0x551735==_0xeae648[_0x4e9b('0x6a')],'isNextTo':_0x1a95ed,'isInsideObject':_0x5079f4,'containsRangeInObject':_0x422a8c}});break;}}return _0x577e63;}[_0x4e9b('0x77')](_0x497840,_0x5d15de,_0x29a935,_0x5166cd,_0xbd9318){this[_0x4e9b('0x38')][_0x4e9b('0x5a')](_0x4a84a3=>{let _0x52bc20=_0x4e9b('0x45')+_0x497840+':'+_0x5d15de+':'+_0x29a935;_0xbd9318&&(_0x52bc20=_0x52bc20+':'+_0xbd9318),_0x4a84a3['addMarker'](_0x52bc20,{'range':_0x5166cd,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4e9b('0x10')](_0x85229f){const _0x507a8f=_0x85229f['previous'],_0x414d6e=_0x85229f['next'];_0x85229f['previous']=null,null!=_0x507a8f&&(_0x507a8f['next']=null),_0x85229f[_0x4e9b('0x11f')]=null,null!=_0x414d6e&&(_0x414d6e[_0x4e9b('0x118')]=null),_0x4e9b('0xec')==this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x85229f)&&(this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x85229f,_0x4e9b('0xee')),this['fire'](_0x4e9b('0xd1'),_0x85229f,_0x507a8f,_0x414d6e));}[_0x4e9b('0x113')](_0x157a14){const _0x583620=_0x157a14['id'],_0x1ab97f=this[_0x4e9b('0x116')](_0x157a14);if(this[_0x4e9b('0x1a')]&&this['_adapter']['addSuggestion']){const _0x4c4612=this['editor'][_0x4e9b('0xe6')]['get'](_0x4e9b('0xb8')),_0x204cec=_0x1ab97f[_0x4e9b('0xc8')],_0x3d84b3=_0x1ab97f['subType']?_0x1ab97f[_0x4e9b('0x11d')]+':'+_0x1ab97f[_0x4e9b('0x6c')]:_0x1ab97f[_0x4e9b('0x11d')],_0x2fce71=this[_0x4e9b('0xa1')]['locale'],_0x32ee8f=_0x4c4612[_0x4e9b('0xf4')](_0x2d35a6(_0x2fce71,'PENDING_ACTION_SUGGESTION')),_0x2b7b03={'id':_0x583620,'type':_0x3d84b3,'hasComments':_0x204cec,'data':_0x157a14[_0x4e9b('0x17')]||null,'originalSuggestionId':_0x157a14[_0x4e9b('0x8d')]||null,'attributes':_0x1ab97f[_0x4e9b('0x3a')]};this[_0x4e9b('0x1a')][_0x4e9b('0x28')](_0x2b7b03)[_0x4e9b('0x95')](_0x331e4f=>{_0x1ab97f['_saved']=!0x0,_0x4c4612[_0x4e9b('0x11a')](_0x32ee8f),_0x331e4f&&_0x331e4f['createdAt']&&(this['_suggestions']['get'](_0x583620)[_0x4e9b('0xb5')]=_0x331e4f[_0x4e9b('0xb5')]);})[_0x4e9b('0x9')](_0x246e95=>{throw _0x37bdeb(_0x4e9b('0x34')),this[_0x4e9b('0xa1')][_0x4e9b('0x125')][_0x4e9b('0x10f')]({'isUndoable':!0x1},()=>{_0x1ab97f['discard']();}),_0x1ab97f[_0x4e9b('0x8c')](),this[_0x4e9b('0x7d')][_0x4e9b('0xc')](_0x1ab97f['id']),this[_0x4e9b('0xce')][_0x4e9b('0xc')](_0x1ab97f),_0x246e95;});}return _0x1ab97f;}[_0x4e9b('0x1f')](_0x2a278c,_0x9007ce){const _0x54646e=this['editor']['plugins'][_0x4e9b('0xc5')]('PendingActions'),_0x2d8396=this[_0x4e9b('0x25')](_0x2a278c);if(this[_0x4e9b('0x1a')]&&this[_0x4e9b('0x1a')][_0x4e9b('0xd3')]){if(_0x2d8396[_0x4e9b('0x12f')]){const _0x3e087f=_0x54646e[_0x4e9b('0xf4')](_0x2d35a6(this['editor'][_0x4e9b('0xc6')],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x4e9b('0xd3')](_0x2a278c,_0x9007ce)['then'](()=>{_0x54646e[_0x4e9b('0x11a')](_0x3e087f);});}else _0x2d8396['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2a278c,_0x9007ce);});}}['_getSuggestionData'](_0x4a7df6){if(!this[_0x4e9b('0x1a')]||!this[_0x4e9b('0x1a')][_0x4e9b('0x25')])throw new _0x225a88('track-changes-adapter-missing-getsuggestion',this);return this[_0x4e9b('0x1a')][_0x4e9b('0x25')](_0x4a7df6);}[_0x4e9b('0x110')](_0x1f3a3){const {id:_0x4f35c6,type:_0x4a4d5a,subType:_0x5e3d60,authorId:_0x81b782}=this[_0x4e9b('0x4')](_0x1f3a3),_0x486764=this[_0x4e9b('0x7d')][_0x4e9b('0xc5')](_0x4f35c6)||this[_0x4e9b('0x2f')](_0x4a4d5a,_0x5e3d60,_0x4f35c6,_0x81b782,{});switch(this[_0x4e9b('0x53')](_0x486764,_0x4a4d5a,_0x5e3d60,_0x81b782),this[_0x4e9b('0xce')][_0x4e9b('0xc5')](_0x486764)){case _0x4e9b('0x9a'):this[_0x4e9b('0xd9')](_0x4f35c6)['then'](_0x2caa61=>{let _0x5094cb=Promise['resolve']();_0x2caa61[_0x4e9b('0xc8')]&&(_0x5094cb=this[_0x4e9b('0x81')][_0x4e9b('0xb2')]({'channelId':this[_0x4e9b('0xa1')][_0x4e9b('0x126')][_0x4e9b('0xc5')](_0x4e9b('0x9b')),'threadId':_0x4f35c6})),_0x5094cb[_0x4e9b('0x95')](()=>{this[_0x4e9b('0x116')](_0x2caa61)['_saved']=!0x0;});}),this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x486764,_0x4e9b('0x109'));break;case _0x4e9b('0xee'):this[_0x4e9b('0x1f')](_0x4f35c6,{'state':'open'});case'dataReady':this[_0x4e9b('0xce')][_0x4e9b('0x107')](_0x486764,_0x4e9b('0xec')),this['fire'](_0x4e9b('0x2d'),_0x486764);break;case _0x4e9b('0xec'):this[_0x4e9b('0x98')](_0x4e9b('0x66'),_0x486764);}return _0x486764['addMarkerName'](_0x1f3a3),_0x486764;}[_0x4e9b('0x4a')](_0x2fa343){const _0x4dad43=Array[_0x4e9b('0x122')](_0x2fa343)[_0x4e9b('0x22')](_0x457ee8=>!_0x457ee8['isMultiRange']),_0x1241bf=this[_0x4e9b('0x43')]({'skipNotAttached':!0x0})['filter'](_0x259d33=>!_0x259d33[_0x4e9b('0x32')]),_0x493cee=_0x1241bf['filter'](_0x155be0=>!_0x2fa343[_0x4e9b('0x3c')](_0x155be0)),_0x16500b=new Map(_0x1241bf[_0x4e9b('0xc0')](_0x4470c2=>[_0x4470c2,this[_0x4e9b('0x73')][_0x4e9b('0x51')](_0x4470c2[_0x4e9b('0x11d')],_0x4470c2['subType'],_0x4e9b('0x132'))])),_0x574336=new Map(_0x1241bf[_0x4e9b('0xc0')](_0x3642f0=>[_0x3642f0,_0x3642f0[_0x4e9b('0xc9')]()])),_0x17f643=new Set(),_0x45525e=new Set();for(let _0x30b661=0x0;_0x30b661<_0x4dad43[_0x4e9b('0x70')];_0x30b661++)_0x3b01fb(_0x4dad43[_0x30b661],_0x4dad43,_0x30b661+0x1);for(let _0x31445a=0x0;_0x31445a<_0x4dad43[_0x4e9b('0x70')];_0x31445a++)_0x3b01fb(_0x4dad43[_0x31445a],_0x493cee,0x0);for(let _0xfa21ee=0x0;_0xfa21ee<_0x4dad43[_0x4e9b('0x70')];_0xfa21ee++){const _0x486c9d=_0x4dad43[_0xfa21ee];!_0x45525e[_0x4e9b('0x3c')](_0x486c9d)&&_0x486c9d[_0x4e9b('0x118')]&&(_0x486c9d[_0x4e9b('0x118')][_0x4e9b('0x11f')]===_0x486c9d&&(_0x486c9d['previous'][_0x4e9b('0x11f')]=null),_0x486c9d['previous']=null),!_0x17f643[_0x4e9b('0x3c')](_0x486c9d)&&_0x486c9d[_0x4e9b('0x11f')]&&(_0x486c9d[_0x4e9b('0x11f')][_0x4e9b('0x118')]===_0x486c9d&&(_0x486c9d[_0x4e9b('0x11f')][_0x4e9b('0x118')]=null),_0x486c9d['next']=null);}function _0x3b01fb(_0x11b680,_0x35d6df,_0x1393b1){for(let _0x94fd22=_0x1393b1;_0x94fd22<_0x35d6df[_0x4e9b('0x70')];_0x94fd22++){const _0xd67301=_0x2f24ae(_0x11b680,_0x35d6df[_0x94fd22]);_0xd67301&&(_0xd67301[0x0][_0x4e9b('0x11f')]=_0xd67301[0x1],_0xd67301[0x1][_0x4e9b('0x118')]=_0xd67301[0x0],_0x17f643[_0x4e9b('0xf4')](_0xd67301[0x0]),_0x45525e[_0x4e9b('0xf4')](_0xd67301[0x1]));}}function _0x2f24ae(_0x2076ce,_0x4a5c2a){if(_0x2076ce[_0x4e9b('0x6a')]['id']!==_0x4a5c2a[_0x4e9b('0x6a')]['id'])return null;const _0x1ecfc0=_0x16500b[_0x4e9b('0xc5')](_0x2076ce)(_0x2076ce,_0x4a5c2a,_0x574336[_0x4e9b('0xc5')](_0x2076ce),_0x574336[_0x4e9b('0xc5')](_0x4a5c2a));if(!_0x1ecfc0)return null;return _0x16500b[_0x4e9b('0xc5')](_0x4a5c2a)(_0x2076ce,_0x4a5c2a,_0x574336[_0x4e9b('0xc5')](_0x2076ce),_0x574336[_0x4e9b('0xc5')](_0x4a5c2a))?_0x1ecfc0[0x1]['commentThread']&&_0x1ecfc0[0x1][_0x4e9b('0x88')][_0x4e9b('0x70')]?null:_0x1ecfc0:null;}}[_0x4e9b('0x54')](_0x28ad50){const _0x33cd05=Array[_0x4e9b('0x122')](_0x28ad50),_0x59469f=this[_0x4e9b('0x43')]({'skipNotAttached':!0x0}),_0x5ca9b2=_0x59469f[_0x4e9b('0x22')](_0x170300=>!_0x28ad50['has'](_0x170300)),_0x271f49=new Map(_0x33cd05[_0x4e9b('0xc0')](_0x446b06=>[_0x446b06,this['_suggestionFactory'][_0x4e9b('0x51')](_0x446b06[_0x4e9b('0x11d')],_0x446b06[_0x4e9b('0x6c')],'join')])),_0x35eecc=new Map(_0x59469f[_0x4e9b('0xc0')](_0x39c205=>[_0x39c205,_0x39c205[_0x4e9b('0x8a')]()]));for(let _0x302c65=0x0;_0x302c65<_0x33cd05[_0x4e9b('0x70')];_0x302c65++){if(_0x37ffb8(this,_0x33cd05[_0x302c65],_0x33cd05,_0x302c65+0x1))return!0x0;}for(let _0x1e17b6=0x0;_0x1e17b6<_0x33cd05[_0x4e9b('0x70')];_0x1e17b6++){if(_0x37ffb8(this,_0x33cd05[_0x1e17b6],_0x5ca9b2,0x0))return!0x0;}return!0x1;function _0x37ffb8(_0x4da458,_0x4fd019,_0x5d9b91,_0x188893){for(let _0x5d8df2=_0x188893;_0x5d8df2<_0x5d9b91[_0x4e9b('0x70')];_0x5d8df2++){const _0x123806=_0x5d9b91[_0x5d8df2];if(_0x123806[_0x4e9b('0x11d')]!==_0x4fd019['type']||_0x123806[_0x4e9b('0x6a')]['id']!==_0x4fd019['author']['id']||_0x123806[_0x4e9b('0x6c')]!==_0x4fd019[_0x4e9b('0x6c')])continue;const _0x290208=_0x271f49['get'](_0x4fd019),_0x54b416=_0x35eecc[_0x4e9b('0xc5')](_0x4fd019),_0x17930f=_0x35eecc['get'](_0x123806),_0x587600=_0x4fd019[_0x4e9b('0x88')]&&_0x4fd019[_0x4e9b('0x88')][_0x4e9b('0x70')],_0x4394ff=_0x123806[_0x4e9b('0x88')]&&_0x123806['commentThread']['length'];if(!_0x587600&&_0x290208(_0x17930f,_0x54b416))return _0x4da458[_0x4e9b('0x92')](_0x123806,_0x4fd019),_0x35eecc[_0x4e9b('0xc')](_0x4fd019),!0x0;if(!_0x4394ff&&_0x290208(_0x54b416,_0x17930f))return _0x4da458[_0x4e9b('0x92')](_0x4fd019,_0x123806),_0x35eecc[_0x4e9b('0xc')](_0x123806),!0x0;}return!0x1;}}[_0x4e9b('0x92')](_0x5e415b,_0x3f9cd4){if(_0x5e415b['isMultiRange'])for(const _0x22bb6a of _0x3f9cd4[_0x4e9b('0x8a')]())_0x5e415b[_0x4e9b('0x74')](_0x22bb6a);else{const _0x43a930=_0x3f9cd4['getFirstRange']()[_0x4e9b('0x2e')];this[_0x4e9b('0x120')](_0x5e415b,this['_model']['createRange'](_0x5e415b[_0x4e9b('0xc9')]()[_0x4e9b('0xb0')],_0x43a930));}_0x3f9cd4[_0x4e9b('0x123')]();}}class Dt{constructor(_0x25a74d){this['_editor']=_0x25a74d,this[_0x4e9b('0x38')]=_0x25a74d['model'],this[_0x4e9b('0xfe')]=new Map(),this[_0x4e9b('0x6f')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4e9b('0x48')](_0xe5b9d8,_0x58c4e6,_0x60d45d,_0x49e70c,_0x461649,_0x1add7e){return new _0x2b860e(this['_model'],{'type':_0xe5b9d8,'subType':_0x58c4e6,'id':_0x60d45d,'author':_0x49e70c,'creator':_0x49e70c,'attributes':_0x461649,'onAttributesChange':_0x1add7e,'onAccept':(..._0x140edb)=>this[_0x4e9b('0x51')](_0xe5b9d8,_0x58c4e6,_0x4e9b('0x39'))(..._0x140edb),'onDiscard':(..._0x47bdf6)=>this[_0x4e9b('0x51')](_0xe5b9d8,_0x58c4e6,_0x4e9b('0x7f'))(..._0x47bdf6)});}[_0x4e9b('0xc1')](_0x105a08,_0x2754ab,_0x20b50d,_0x55c3ac){const _0x577ab7=_0x105a08+':'+_0x2754ab+':'+_0x20b50d;this['_customCallbacks'][_0x4e9b('0x107')](_0x577ab7,_0x55c3ac);}[_0x4e9b('0x51')](_0x1249f9,_0x307b29,_0x5576ab){const _0x5bb705=_0x1249f9+':'+_0x307b29+':'+_0x5576ab;return this['_customCallbacks']['get'](_0x5bb705)||this['_defaultCallbacks'][_0x4e9b('0xc5')](_0x1249f9+':'+_0x5576ab);}[_0x4e9b('0x90')](){const _0x11b67a=()=>{},_0x2679e7=_0x22f951=>{_0x22f951['sort']((_0x324a48,_0x24adee)=>_0x324a48[_0x4e9b('0xb0')][_0x4e9b('0x26')](_0x24adee[_0x4e9b('0xb0')])?0x1:-0x1),this['_model'][_0x4e9b('0x5a')](_0x19e62c=>{for(const _0x5290be of _0x22f951){let _0x4d9af0;_0x4d9af0=_0x5290be['end'][_0x4e9b('0x63')]&&_0x5290be[_0x4e9b('0x2e')][_0x4e9b('0x106')]==_0x5290be[_0x4e9b('0xb0')][_0x4e9b('0xae')]?_0x19e62c[_0x4e9b('0x94')](_0x5290be[_0x4e9b('0xb0')][_0x4e9b('0xae')],'on'):_0x19e62c[_0x4e9b('0x94')](_0x5290be),this[_0x4e9b('0x38')][_0x4e9b('0x57')](_0x4d9af0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2b50cc=(_0x4749fa,_0x262d09)=>{this['_model'][_0x4e9b('0x5a')](_0x3b9f3a=>{const {commandName:_0x2c6982,commandParams:_0x43966c=[]}=_0x262d09,_0x91383a=_0x4749fa[_0x4e9b('0xc0')](_0x5a3f35=>(_t(_0x5a3f35)&&(_0x5a3f35=this['_model'][_0x4e9b('0xcb')](_0x5a3f35[_0x4e9b('0x2e')])),_0x5a3f35))[_0x4e9b('0x22')](_0x459e2d=>_0x4e9b('0xaa')!==_0x459e2d['root']['rootName']);if(_0x91383a['length']<0x1)return;const _0x1f94b9=Array['from'](this[_0x4e9b('0x38')]['document'][_0x4e9b('0xa9')][_0x4e9b('0x8a')]())[_0x4e9b('0xc0')](_0x32662d=>_0x5e3949[_0x4e9b('0x41')](_0x32662d));_0x3b9f3a[_0x4e9b('0xb1')](_0x91383a);for(const _0x3f14a9 of this['_editor'][_0x4e9b('0xf5')]['commands']())_0x3f14a9['refresh']();_0x43966c[_0x4e9b('0x13')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4e9b('0x9c')](_0x2c6982,..._0x43966c);const _0x9f5973=_0x1f94b9[_0x4e9b('0x22')](_0x1f03f8=>'$graveyard'!=_0x1f03f8[_0x4e9b('0x10b')][_0x4e9b('0x72')]);_0x9f5973[_0x4e9b('0x70')]>0x0&&_0x3b9f3a[_0x4e9b('0xb1')](_0x9f5973);for(const _0x38ad78 of _0x1f94b9)_0x38ad78['detach']();});},_0x676c69=(_0x5a0bd6,_0x3ad73f)=>0x1==_0x5a0bd6[_0x4e9b('0x70')]&&0x1==_0x3ad73f[_0x4e9b('0x70')]&&_0x5a0bd6[0x0][_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x3ad73f[0x0][_0x4e9b('0xb0')]),_0xe0c28e=(_0x5c7170,_0x2b1e14,_0x978bee,_0xfa6355)=>xt(_0x5c7170,_0x2b1e14,_0x978bee,_0xfa6355,this[_0x4e9b('0x38')])?[_0x5c7170,_0x2b1e14]:xt(_0x2b1e14,_0x5c7170,_0xfa6355,_0x978bee,this[_0x4e9b('0x38')])?[_0x2b1e14,_0x5c7170]:null;this['_defaultCallbacks'][_0x4e9b('0x107')](_0x4e9b('0x12c'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x97'),_0x2679e7),this[_0x4e9b('0x6f')]['set']('insertion:join',_0x676c69),this[_0x4e9b('0x6f')]['set'](_0x4e9b('0x133'),_0xe0c28e),this[_0x4e9b('0x6f')][_0x4e9b('0x107')]('deletion:accept',_0x2679e7),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xa0'),_0x11b67a),this[_0x4e9b('0x6f')]['set']('deletion:join',_0x676c69),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x8e'),_0xe0c28e),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x80'),_0x2b50cc),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x7b'),_0x11b67a),this[_0x4e9b('0x6f')]['set']('formatInline:join',_0x676c69),this[_0x4e9b('0x6f')]['set'](_0x4e9b('0xdf'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0x23'),_0x2b50cc),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xc4'),_0x11b67a),this[_0x4e9b('0x6f')][_0x4e9b('0x107')](_0x4e9b('0xeb'),_0x676c69),this['_defaultCallbacks'][_0x4e9b('0x107')](_0x4e9b('0xf8'),_0x11b67a);}}function Bt(_0x59bed9,_0x26624f,_0x19b72c){for(const _0x5096c5 of _0x26624f[_0x4e9b('0x106')][_0x4e9b('0xb3')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5096c5[_0x4e9b('0x10b')]==_0x5096c5)return!0x1;if(!_0x19b72c[_0x4e9b('0xff')](_0x5096c5))return!0x1;if(_0x59bed9['isObject'](_0x5096c5)||_0x59bed9['isLimit'](_0x5096c5))return!0x0;}return!0x1;}function _t(_0x169317){return _0x169317['end'][_0x4e9b('0x106')]==_0x169317['start'][_0x4e9b('0xae')]&&_0x169317[_0x4e9b('0x2e')][_0x4e9b('0x119')];}function Mt(_0xfba5b4,_0x83e4a6,_0x1e1ee1,_0x24cd97){const _0x3967e6=_0x29a649=>!_0x29a649['item']['is'](_0x4e9b('0xe5'))&&!_0x24cd97[_0x4e9b('0xbc')](_0x29a649[_0x4e9b('0x124')]),_0x58ab26=_0xfba5b4[_0x4e9b('0xb0')][_0x4e9b('0xad')](_0x3967e6),_0x158298=_0xfba5b4['end'][_0x4e9b('0xad')](_0x3967e6,{'direction':_0x4e9b('0x3e')});return(!_0xfba5b4['start'][_0x4e9b('0x55')](_0x58ab26)||!_0xfba5b4['end'][_0x4e9b('0x55')](_0x158298))&&(_0x58ab26['isBefore'](_0x158298)?_0x1e1ee1[_0x4e9b('0x3f')](_0x83e4a6,{'range':_0x1e1ee1['createRange'](_0x58ab26,_0x158298)}):_0x1e1ee1[_0x4e9b('0x5c')](_0x83e4a6),!0x0);}function $t(_0x40b196){return _0x305c8b(_0x40b196);}function Nt(_0x23b705){const _0x4e7dd9=_0x23b705[_0x4e9b('0xb0')][_0x4e9b('0xae')];return _0x4e7dd9&&_0x4e7dd9['is'](_0x4e9b('0x5'));}function Rt(_0x233f96,_0x5f3e9b){const _0x5ab231=_0x5f3e9b[_0x4e9b('0xa5')]['isObject'](_0x233f96)||_0x5f3e9b[_0x4e9b('0xa5')]['isSelectable'](_0x233f96);return _0x5f3e9b[_0x4e9b('0xcb')](_0x5f3e9b[_0x4e9b('0x3')](_0x233f96,_0x4e9b('0xcd')),_0x5ab231?_0x5f3e9b[_0x4e9b('0xb7')](_0x233f96):_0x5f3e9b[_0x4e9b('0x3')](_0x233f96,_0x4e9b('0x2e')));}function xt(_0x415dc4,_0xf96d60,_0x501e2a,_0x142d9b,_0xe3a3ff){if(_0x501e2a[_0x4e9b('0x2e')][_0x4e9b('0x55')](_0x142d9b[_0x4e9b('0xb0')]))return!0x0;if(_0x415dc4['type']!=_0xf96d60['type'])return!0x1;if(!_0x501e2a['end'][_0x4e9b('0x60')](_0x142d9b[_0x4e9b('0xb0')]))return!0x1;const _0xc6677=_0xe3a3ff[_0x4e9b('0xcb')](_0x501e2a[_0x4e9b('0x2e')],_0x142d9b[_0x4e9b('0xb0')])[_0x4e9b('0x5d')]();for(const _0x5bc801 of _0xc6677)if(['elementStart',_0x4e9b('0x10c')][_0x4e9b('0xd4')](_0x5bc801['type'])&&_0xe3a3ff[_0x4e9b('0xa5')]['isLimit'](_0x5bc801[_0x4e9b('0x124')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x11e6=['TrackChangesEditing','getMarkers','getSuggestion','getShiftedBy','isOwn','trackChangesCommand','isRemovable','createdAt','substr','change:data','suggestionLoaded','CommentsRepository','removeClass','addCommentThread','isInContent','item','has','isMultiRange','_cutOutSuggestionMarker','multipleBlocks','authoredAt','formatBlock:','for','config','commentThread','init','_trackFormatChanges','end','markerNameToElements','insertion:chain','creator','markDeletion','before','attributes','addMarker','skipNestingCheck','set','position','discard','name','next','never','Users','_updateSuggestionData','enableReadOnlyMode','normal','accept','elementStart','discardSuggestion','refresh','isExternal','elementEnd','nodeAfter','previous','removeComment','delete','markMultiRangeDeletion','bindElementToMarker','define','removeAttribute','reconvertMarker','document','addRange','change:_saved','data-suggestion','ck-suggestion-marker-formatBlock','$graveyard','fetchCommentThread','updateSuggestion','getChanges','update:suggestion','splice','formatGroupId','commandName','createSelection','selection','removeMarkers','formatInline','rootName','editing','acceptSelectedSuggestions','rejected','discardSelectedSuggestions','deletion:discard','getChangedMarkers','setSelection','isCollapsed','_getAuthorFromId','isAtEnd','_suggestionFactory','containsRangeInObject','writer','change','_defaultCallbacks','ready','markerReady','notReady','targetPosition','ck-suggestion-marker-','map','stop','newRange','formatBlock:accept','listenTo','join','always','from','discardAllSuggestions','catch','rethrowUnexpectedError','widget','addUser','moveTargetPosition','createRange','getAttribute','type','data','chain','every','getAncestors','subType','containsItem','then','multi','documentSelection','return','dataToMarker','howMany','addMarker:suggestion','getMultiRangeId','group','_rangeIsInLocalUserInsertion','suggestion','activeMarkers','get','_onDiscard','getUser','_enabledCommands','locale','addComment','containsPosition','track-changes-suggestion-data-mismatch','element','track-changes-user-not-found','track-changes-adapter-already-set','deletion:join','schema','root','getSuggestionCallback','getLastMatchingPosition','_joinWithAdjacentSuggestions','resolve','_saved','suggestionUnloaded','getNearestSelectionRange','getRange','external:','sort','_editor','insertContent','_mergeNestedSuggestions','formatBlock:join','_registerDefaultCallbacks','markInlineFormat','_addSuggestionMarker','length','value','model','markMultiRangeBlockFormat','forceDefaultExecution','@external','after','registerPostFixer','accepted','$marker','_descriptionFactory','$textProxy','fromCharCode','marker-count','deletion:','markBlockFormat','getDifference','createPositionAt','addSuggestion','acceptAllSuggestions','low','getFirstMarker','_createSuggestion','open','start','upcast','_refreshSuggestionsChain','_suggestions','range','createElement','isAtStart','push','getWalker','buildSuggestion','markers','split','add','_getExternalAuthor','insertion:','plugins','differ','_joinSuggestions','head','mapper','isSelectable','_addThreadToSuggestion','registerCustomCallback','formatInline:','isNextTo','editor','formatBlock','_suggestionState','removed','trackChanges.trackFormatChanges','execute','addMarker:suggestion:formatBlock','isDocumentOperation','createPositionAfter','batch','addClass','acceptSuggestion','_customCallbacks','containerElement','forward','consumable','isLocal','splitPosition','addSuggestionData','pluginName','showSuggestionHighlights','hasCommentThread','isIntersectingWithRange','setAttribute','_setSuggestionData','conversion','options','getCustomProperty','filter','toViewElement','ck-suggestion-marker','insertion','markInsertion','removeMarker','remove','_isForcedDefaultExecutionBlock','containsRange','addMarkerName','addHighlight','markerName','enableCommand','markMultiRangeInsertion','ck-suggestion-marker--active','clone','_commentsRepository','_findSuggestions','backward','adapter','formatBlock:chain','_breakSuggestionMarker','track-changes-adapter-missing-getsuggestion','editingDowncast','isBlock','isLimit','getIntersection','isBefore','deletion','detach','parent','_getSuggestionData','getFirstRange','size','markerToData','getSuggestions','change:activeMarkers','getAllAdjacentSuggestions','isObject','high','trackChanges.mergeNestedSuggestions','_checkSuggestionCorrectness','stopListening','suggestionChanged','dataReady','oldRange','unbind','consume','fire','getCommentThread','insertion:accept','_adapter','_handleNewSuggestionMarker','removeMarker:suggestion:formatBlock','isInsideObject','some','getRanges','commands','formatInline:accept','author','_splitMarkerName','dataDowncast','_setSuggestionRange','isEqual','_model','insert','nodeBefore','createRangeIn'];(function(_0xd1d40d,_0x11e696){const _0x2a32fe=function(_0x5e1bd1){while(--_0x5e1bd1){_0xd1d40d['push'](_0xd1d40d['shift']());}};_0x2a32fe(++_0x11e696);}(_0x11e6,0x9b));const _0x2a32=function(_0xd1d40d,_0x11e696){_0xd1d40d=_0xd1d40d-0x0;let _0x2a32fe=_0x11e6[_0xd1d40d];return _0x2a32fe;};import{Plugin as _0x2ef49d,PendingActions as _0x2f6c36}from'ckeditor5/src/core';import{LiveRange as _0x5ba02d}from'ckeditor5/src/engine';import{CKEditorError as _0x5368fe,uid as _0x161255,priorities as _0x4483ff,logWarning as _0x2e9bb2}from'ckeditor5/src/utils';import{toWidget as _0x91f06a}from'ckeditor5/src/widget';import{Users as _0x50d90d,hashObject as _0x234eab}from'ckeditor5-collaboration/src/collaboration-core';import _0x5eea0f from'./commands/trackchangescommand';import _0x4e710f from'./commands/acceptsuggestioncommand';import _0x28388e from'./commands/discardsuggestioncommand';import _0x35991b from'./commands/executeonallsuggestionscommand';import _0x2a07c7 from'./commands/executeonselectedsuggestionscommand';import _0x115070 from'./suggestion';import _0x43b93b from'./suggestiondescriptionfactory';import _0x806bae from'./integrations/alignment';import _0xc96650 from'./integrations/basicstyles';import _0x237f4b from'./integrations/blockquote';import _0x33a0e4 from'./integrations/ckbox';import _0x21ea7d from'./integrations/codeblock';import _0x2dbc77 from'./integrations/comments';import _0x141a1a from'./integrations/deletecommand';import _0x4f910 from'./integrations/documentlist';import _0x242a2a from'./integrations/entercommand';import _0x5a8182 from'./integrations/findandreplace';import _0x52e86c from'./integrations/font';import _0x4d4304 from'./integrations/formatpainter';import _0x540bdc from'./integrations/heading';import _0x48b367 from'./integrations/highlight';import _0x36153b from'./integrations/horizontalline';import _0x2d467 from'./integrations/htmlembed';import _0x48299a from'./integrations/image';import _0x1d42e5 from'./integrations/imagereplace';import _0x32fe0f from'./integrations/importword';import _0x1fbf98 from'./integrations/indent';import _0x2e3a0a from'./integrations/inputcommand';import _0xfa3320 from'./integrations/link';import _0x591860 from'./integrations/list';import _0x325bd1 from'./integrations/listproperties';import _0x34d591 from'./integrations/mediaembed';import _0x32894a from'./integrations/mention';import _0x4f6b7e from'./integrations/pagebreak';import _0x4760a1 from'./integrations/paragraph';import _0x5836e2 from'./integrations/removeformat';import _0x2e4678 from'./integrations/restrictededitingmode';import _0x564d51 from'./integrations/shiftentercommand';import _0x877b56 from'./integrations/standardeditingmode';import _0x139638 from'./integrations/style';import _0x5294b6 from'./integrations/table';import _0x3d3b7b from'./integrations/tablemergesplit';import _0x60549f from'./integrations/tableheadings';import _0x2eb6cf from'./integrations/tableclipboard';import _0x4334c5 from'./integrations/tablecolumnresize';import _0x225a28 from'./integrations/template';import _0x2fcbc1 from'./integrations/tableofcontents';import _0x7f4b4a from'./integrations/title';import _0x1ba3f9 from'./integrations/undo';import{getTranslation as _0x4842e8}from'./utils/common-translations';import _0x55a972 from'./integrations/tablecaption';import _0x176d5a from'./integrations/documentlistproperties';import _0x1bf69e from'./integrations/tableproperties';export default class p extends _0x2ef49d{static get['requires'](){return[_0x2a32('0xa6'),_0x50d90d,_0x2f6c36,_0x806bae,_0xc96650,_0x237f4b,_0x33a0e4,_0x21ea7d,_0x2dbc77,_0x141a1a,_0x4f910,_0x176d5a,_0x242a2a,_0x5a8182,_0x52e86c,_0x4d4304,_0x540bdc,_0x48b367,_0x36153b,_0x2d467,_0x48299a,_0x1d42e5,_0x32fe0f,_0x1fbf98,_0x2e3a0a,_0xfa3320,_0x591860,_0x325bd1,_0x34d591,_0x32894a,_0x4f6b7e,_0x4760a1,_0x5836e2,_0x2e4678,_0x564d51,_0x877b56,_0x139638,_0x5294b6,_0x3d3b7b,_0x60549f,_0x55a972,_0x2eb6cf,_0x4334c5,_0x2fcbc1,_0x1bf69e,_0x225a28,_0x7f4b4a,_0x1ba3f9];}static get[_0x2a32('0x4e')](){return _0x2a32('0x9b');}constructor(_0x165e60){function _0x4e61b8(_0x3d26f6){return _0x3d26f6['map'](_0x3b5146=>String[_0x2a32('0x16')](_0x3b5146))[_0x2a32('0x103')]('');}super(_0x165e60),this['set'](_0x2a32('0x120'),[]),this['on'](_0x2a32('0x7b'),(_0x5ba6b6,_0x2dfa93,_0x55c5e4,_0x71c3d6)=>{this['_model']['change'](()=>{for(const _0xcb5ce1 of[..._0x71c3d6,..._0x55c5e4])this[_0x2a32('0x97')][_0x2a32('0x2c')][_0x2a32('0xab')](_0xcb5ce1)&&_0x165e60[_0x2a32('0xea')][_0x2a32('0xd7')](_0xcb5ce1);});}),this[_0x2a32('0x14')]=new _0x43b93b(this[_0x2a32('0x3b')][_0x2a32('0xc')][_0x2a32('0x12d')],this[_0x2a32('0x3b')][_0x2a32('0x125')]),this['_adapter']=null,this[_0x2a32('0xf4')]=new Dt(this['editor']),this[_0x2a32('0x25')]=new Map(),this['_commentsRepository']=_0x165e60[_0x2a32('0x31')]['get'](_0x2a32('0xa6')),this[_0x2a32('0x124')]=new Set(),this[_0x2a32('0x97')]=this[_0x2a32('0x3b')][_0x2a32('0xc')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x165e60['config'][_0x2a32('0xd5')](_0x2a32('0x3f'),'default'),this[_0x2a32('0xb5')]=_0x165e60[_0x2a32('0xb2')][_0x2a32('0x121')]('trackChanges.trackFormatChanges'),_0x165e60['config'][_0x2a32('0xd5')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x2a32('0x5')]=_0x165e60[_0x2a32('0xb2')][_0x2a32('0x121')](_0x2a32('0x7f')),this[_0x2a32('0xa0')]=new _0x5eea0f(_0x165e60,this[_0x2a32('0x124')]),this[_0x4e61b8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4e61b8([0x34,0x30,0x34,0x36,0x31,0x36,0x31,0x30]);}[_0x2a32('0xb4')](){const _0x4a9193=this[_0x2a32('0x3b')];_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')]('editingDowncast')['markerToHighlight']({'model':_0x2a32('0x11f'),'view':_0x3b7f3f=>{const {id:_0x293991,type:_0x25d53a}=this[_0x2a32('0x93')](_0x3b7f3f[_0x2a32('0x62')]),_0x832bae=[_0x2a32('0x59'),_0x2a32('0xfd')+_0x25d53a];let _0x2bc505=0xbb8;return this[_0x2a32('0x120')]['includes'](_0x3b7f3f[_0x2a32('0x62')])&&(_0x832bae['push'](_0x2a32('0x65')),_0x2bc505=0xbc2),_0x2a32('0x73')==_0x25d53a&&(_0x2bc505+=0x5),{'classes':_0x832bae,'attributes':{'data-suggestion':_0x293991},'priority':_0x2bc505};}}),_0x4a9193[_0x2a32('0x54')]['for'](_0x2a32('0x94'))[_0x2a32('0x2e')](_0x2d4ed3=>{_0x2d4ed3['on'](_0x2a32('0x11b'),(_0x28087a,_0x243b4f,_0x3f2bb2)=>{if(!_0x3f2bb2[_0x2a32('0x55')][_0x2a32('0x4f')])return;const _0x25931a=_0x243b4f['item'];if(!_0x25931a)return;const _0xb03639=_0x3f2bb2[_0x2a32('0x35')]['toViewElement'](_0x25931a);_0x4a9193[_0x2a32('0xc')]['schema'][_0x2a32('0x7d')](_0x25931a)&&_0xb03639&&!_0xb03639[_0x2a32('0x56')](_0x2a32('0x109'))&&_0xb03639['is'](_0x2a32('0x48'))&&_0x91f06a(_0xb03639,_0x3f2bb2[_0x2a32('0xf6')]);},{'priority':'high'});}),_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')](_0x2a32('0x94'))['markerToHighlight']({'model':_0x2a32('0x11f'),'view':(_0x15ec6e,_0x3232d1)=>{if(!_0x3232d1[_0x2a32('0x55')][_0x2a32('0x4f')])return null;const {type:_0x1204e0}=this[_0x2a32('0x93')](_0x15ec6e[_0x2a32('0x62')]);return{'classes':['ck-suggestion-marker',_0x2a32('0xfd')+_0x1204e0],'priority':0xbb8};}});const _0x34b309=({showActiveMarkers:_0x1dd955=!0x0}={})=>(_0x5d1221,_0x37c783,_0x2b1bbb)=>{if(!_0x37c783[_0x2a32('0xaa')])return;if(_0x37c783[_0x2a32('0xaa')]['is'](_0x2a32('0xe6')))return void _0x2b1bbb[_0x2a32('0x4a')][_0x2a32('0x86')](_0x37c783[_0x2a32('0xaa')],_0x5d1221[_0x2a32('0xc2')]);const _0x5d4b94=_0x2b1bbb[_0x2a32('0x35')][_0x2a32('0x58')](_0x37c783['item']);if(!(_0x37c783[_0x2a32('0xaa')]['is'](_0x2a32('0x129'))&&_0x4a9193[_0x2a32('0xc')]['schema'][_0x2a32('0x6f')](_0x37c783['item'])&&!_0x5d4b94['getCustomProperty'](_0x2a32('0x61'))))return;const {id:_0x30e0bc}=this[_0x2a32('0x93')](_0x37c783[_0x2a32('0x62')]);_0x2b1bbb[_0x2a32('0xf6')][_0x2a32('0x45')]([_0x2a32('0x59'),'ck-suggestion-marker-formatBlock'],_0x5d4b94),_0x2b1bbb[_0x2a32('0xf6')][_0x2a32('0x52')](_0x2a32('0xdb'),_0x30e0bc,_0x5d4b94),_0x2b1bbb[_0x2a32('0x35')][_0x2a32('0xd4')](_0x5d4b94,_0x37c783[_0x2a32('0x62')]),_0x1dd955&&(this[_0x2a32('0x120')]['includes'](_0x37c783[_0x2a32('0x62')])?_0x2b1bbb[_0x2a32('0xf6')][_0x2a32('0x45')](_0x2a32('0x65'),_0x5d4b94):_0x2b1bbb[_0x2a32('0xf6')][_0x2a32('0xa7')](_0x2a32('0x65'),_0x5d4b94));for(const _0xa2297f of _0x4a9193['model'][_0x2a32('0x9a')](_0x37c783[_0x2a32('0xaa')])['getItems']())_0x2b1bbb[_0x2a32('0x4a')][_0x2a32('0x86')](_0xa2297f,_0x5d1221[_0x2a32('0xc2')]);_0x2b1bbb[_0x2a32('0x4a')]['consume'](_0x37c783[_0x2a32('0xaa')],_0x5d1221['name']);};_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')](_0x2a32('0x94'))[_0x2a32('0x2e')](_0x46c4f4=>{_0x46c4f4['on'](_0x2a32('0x41'),(_0x41fc8c,_0x39d3e0,_0x24c143)=>{_0x24c143[_0x2a32('0x55')][_0x2a32('0x4f')]&&_0x34b309({'showActiveMarkers':!0x1})(_0x41fc8c,_0x39d3e0,_0x24c143);},{'priority':'highest'});}),_0x4a9193['conversion'][_0x2a32('0xb1')](_0x2a32('0x94'))[_0x2a32('0x79')]({'model':_0x2a32('0x11f'),'view':(_0x5d84b0,_0x3f8eff)=>_0x3f8eff[_0x2a32('0x55')][_0x2a32('0x4f')]?null:{'group':_0x2a32('0x11f'),'name':_0x5d84b0[_0x2a32('0xa3')](0xb)}}),_0x4a9193['conversion'][_0x2a32('0xb1')](_0x2a32('0x23'))['elementToElement']({'view':{'name':_0x2a32('0x11f'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x283339,{writer:_0x4391c5})=>{let _0x5b9421='suggestion:'+_0x283339['getAttribute']('suggestion-type')+':'+_0x283339['getAttribute']('id');return _0x283339[_0x2a32('0x10d')](_0x2a32('0x17'))&&(_0x5b9421+=':'+_0x283339['getAttribute'](_0x2a32('0x17'))),_0x4391c5[_0x2a32('0x27')](_0x2a32('0x13'),{'data-name':_0x5b9421});}}),_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')](_0x2a32('0x23'))[_0x2a32('0x119')]({'view':_0x2a32('0x11f')}),_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')](_0x2a32('0x6e'))[_0x2a32('0x2e')](_0x2e22d9=>{_0x2e22d9['on'](_0x2a32('0x41'),_0x34b309(),{'priority':_0x2a32('0x7e')});}),_0x4a9193[_0x2a32('0x54')][_0x2a32('0xb1')](_0x2a32('0x6e'))[_0x2a32('0x2e')](_0x1c5b08=>{_0x1c5b08['on'](_0x2a32('0x8c'),(_0x50897e,_0x26daaa,_0x5ded6e)=>{const _0x1a23cb=_0x5ded6e[_0x2a32('0x35')][_0x2a32('0xb7')](_0x26daaa['markerName']);if(_0x1a23cb)for(const _0x6f07e6 of _0x1a23cb)_0x6f07e6[_0x2a32('0x56')](_0x2a32('0x61'))||(_0x5ded6e[_0x2a32('0xf6')][_0x2a32('0xa7')]([_0x2a32('0x59'),_0x2a32('0xdc'),_0x2a32('0x65')],_0x6f07e6),_0x5ded6e[_0x2a32('0xf6')][_0x2a32('0xd6')](_0x2a32('0xdb'),_0x6f07e6),_0x5ded6e[_0x2a32('0x35')]['unbindElementFromMarkerName'](_0x6f07e6,_0x26daaa['markerName']));},{'priority':_0x2a32('0x7e')});}),_0x4a9193[_0x2a32('0xc')][_0x2a32('0xd8')][_0x2a32('0x11')](_0x3c00d6=>{let _0x4971d8=!0x1;const _0x11d328=Array[_0x2a32('0x105')](_0x4a9193[_0x2a32('0xc')][_0x2a32('0xd8')][_0x2a32('0x32')][_0x2a32('0xef')]()),_0x2e3e25=new Set();for(const {name:_0x56e577,data:_0x256c16}of _0x11d328){const {group:_0xd97080,type:_0x3a58f2,id:_0x4f522c}=this[_0x2a32('0x93')](_0x56e577);if('suggestion'!==_0xd97080)continue;const _0x44970c=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x4f522c);if(null!=_0x256c16[_0x2a32('0x100')]){_0x2a32('0xe8')==_0x3a58f2&&(_0x4971d8=_0x4971d8||Mt(_0x256c16[_0x2a32('0x100')],_0x56e577,_0x3c00d6,_0x4a9193[_0x2a32('0xc')][_0x2a32('0x12d')]));if(_0x256c16['newRange'][_0x2a32('0xf1')]||_0x2a32('0xdd')==_0x256c16[_0x2a32('0x100')][_0x2a32('0x12e')][_0x2a32('0xe9')]||'formatBlock'==_0x3a58f2&&!Nt(_0x256c16[_0x2a32('0x100')])||'deletion'==_0x3a58f2&&!(!_t(_0x593c17=_0x256c16[_0x2a32('0x100')])&&!function(_0x2bc7c7){return _0x2bc7c7[_0x2a32('0x22')][_0x2a32('0x75')]==_0x2bc7c7['end'][_0x2a32('0x99')]&&_0x2bc7c7[_0x2a32('0x22')][_0x2a32('0xf3')];}(_0x593c17)))_0x3c00d6['removeMarker'](_0x56e577),_0x4971d8=!0x0;else{if(!_0x44970c||!_0x44970c[_0x2a32('0xa9')])continue;_0x2e3e25[_0x2a32('0x2e')](_0x44970c);}}}var _0x593c17;return _0x2e3e25[_0x2a32('0x78')]>0x0&&(_0x4971d8=!!this[_0x2a32('0x131')](_0x2e3e25)||_0x4971d8),_0x4971d8;}),_0x4a9193[_0x2a32('0xc')]['document'][_0x2a32('0x11')](_0x10d105=>{let _0x16964e=!0x1;for(const _0x5848f8 of _0x4a9193[_0x2a32('0xc')][_0x2a32('0xd8')][_0x2a32('0x32')][_0x2a32('0xe0')]()){if(_0x2a32('0x98')!=_0x5848f8[_0x2a32('0x10e')])continue;const _0x456cb9=_0x5848f8['position'][_0x2a32('0x9e')](_0x5848f8[_0x2a32('0xa')]);if(_0x456cb9[_0x2a32('0xf3')])for(const _0x2b3648 of this[_0x2a32('0x25')]['values']()){if(_0x2b3648['isMultiRange']||!_0x2b3648[_0x2a32('0xa9')])continue;if(_0x2a32('0x3c')!=_0x2b3648['type'])continue;const _0x1a9d85=_0x2b3648[_0x2a32('0x77')]();if(_0x1a9d85[_0x2a32('0x22')][_0x2a32('0x75')]!=_0x1a9d85[_0x2a32('0xb6')][_0x2a32('0x75')]&&_0x1a9d85[_0x2a32('0xb6')][_0x2a32('0x96')](_0x5848f8[_0x2a32('0xc0')])){const _0xb1e37b=_0x4a9193['model'][_0x2a32('0x10c')](_0x1a9d85['start'],_0x456cb9);_0x10d105['updateMarker'](_0x2b3648[_0x2a32('0x1f')](),{'range':_0xb1e37b}),_0x16964e=!0x0;}}}return _0x16964e;}),_0x4a9193[_0x2a32('0xc')][_0x2a32('0x2c')]['on'](_0x2a32('0xe1'),(_0x338530,_0x562218,_0x3d02e5)=>{if(null==_0x3d02e5){const {id:_0x26208e}=this[_0x2a32('0x93')](_0x562218[_0x2a32('0xc2')]),_0x2ebea8=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x26208e);_0x2ebea8&&_0x2ebea8[_0x2a32('0x60')](_0x562218[_0x2a32('0xc2')]);}}),_0x4a9193['model'][_0x2a32('0xd8')]['on'](_0x2a32('0xa4'),()=>{const _0x2551f9=Array['from'](_0x4a9193['model']['document'][_0x2a32('0x32')][_0x2a32('0xef')]())[_0x2a32('0x57')](_0x2be200=>'suggestion'===this[_0x2a32('0x93')](_0x2be200[_0x2a32('0xc2')])[_0x2a32('0x11d')]);if(0x0===_0x2551f9[_0x2a32('0xa')])return;_0x2551f9[_0x2a32('0x2')]((_0x3f7047,_0x583f59)=>{const _0x1b4bfd=_0x3f7047['data'][_0x2a32('0x84')],_0x42ecd5=_0x583f59['data'][_0x2a32('0x84')];return null===_0x1b4bfd&&null===_0x42ecd5?0x0:null===_0x1b4bfd&&null!==_0x42ecd5?-0x1:null!==_0x1b4bfd&&null===_0x42ecd5?0x1:_0x1b4bfd[_0x2a32('0x22')][_0x2a32('0x72')](_0x42ecd5[_0x2a32('0x22')])?-0x1:0x1;});const _0x1a3730=new Set(),_0x1e301c=new Set();for(const {name:_0x3057e8,data:_0x338f05}of _0x2551f9){const {id:_0x15b854}=this[_0x2a32('0x93')](_0x3057e8);if(null===_0x338f05[_0x2a32('0x84')]){const _0x563846=this[_0x2a32('0x8b')](_0x3057e8);_0x1e301c[_0x2a32('0x2e')](_0x563846);}else{const _0x40ec29=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x15b854);null!==_0x338f05[_0x2a32('0x100')]||_0x40ec29[_0x2a32('0xa9')]?(_0x1a3730[_0x2a32('0x2e')](_0x40ec29[_0x2a32('0x34')]),_0x1e301c[_0x2a32('0x2e')](_0x40ec29)):this['_removeSuggestion'](_0x40ec29);}}_0x1e301c[_0x2a32('0x78')]>0x0&&this[_0x2a32('0x24')](_0x1e301c);for(const _0x398c70 of _0x1a3730)this[_0x2a32('0x87')](_0x2a32('0x82'),_0x398c70);}),_0x4a9193[_0x2a32('0xc')]['on']('applyOperation',(_0xd8e3b5,_0x189c20)=>{const _0x2b47f0=_0x189c20[0x0];if(!this[_0x2a32('0x25')][_0x2a32('0x78')])return;if(!_0x2b47f0[_0x2a32('0x42')])return;if(_0x2b47f0[_0x2a32('0x44')]['isUndo']||!_0x2b47f0[_0x2a32('0x44')][_0x2a32('0x4b')])return;let _0xe066ac,_0x180d25;switch(_0x2b47f0[_0x2a32('0x10e')]){case'insert':_0xe066ac=_0x4a9193['model'][_0x2a32('0x1b')](_0x2b47f0[_0x2a32('0xc0')]),_0x180d25=_0xe066ac[_0x2a32('0x9e')](_0x2b47f0[_0x2a32('0x11a')]);break;case _0x2a32('0x2d'):_0xe066ac=_0x4a9193[_0x2a32('0xc')][_0x2a32('0x1b')](_0x2b47f0[_0x2a32('0x4c')]),_0x180d25=_0x4a9193[_0x2a32('0xc')][_0x2a32('0x1b')](_0x2b47f0[_0x2a32('0x10b')]);break;case'move':_0xe066ac=_0x4a9193[_0x2a32('0xc')][_0x2a32('0x1b')](_0x2b47f0[_0x2a32('0xfc')]),_0x180d25=_0xe066ac[_0x2a32('0x9e')](_0x2b47f0[_0x2a32('0x11a')]);break;default:return;}const _0x5a6fab=_0x4a9193[_0x2a32('0xc')]['createRange'](_0xe066ac,_0x180d25);_0x4a9193[_0x2a32('0xc')][_0x2a32('0xf7')](()=>{for(const {suggestion:_0x540410,meta:_0x3e907b}of this[_0x2a32('0x68')](_0x5a6fab)){if(_0x540410[_0x2a32('0xac')])continue;if('formatInline'==_0x540410['type'])continue;const _0x3d1313=_0x540410[_0x2a32('0x10f')]&&_0x540410[_0x2a32('0x10f')][_0x2a32('0xae')];(_0x2a32('0x3c')!=_0x540410[_0x2a32('0x10e')]||'split'==_0x2b47f0[_0x2a32('0x10e')]&&!_0x3d1313)&&(_0x3e907b['containsRangeInObject']||'insertion'==_0x540410[_0x2a32('0x10e')]&&_0x3e907b[_0x2a32('0x9f')]||_0x540410[_0x2a32('0x77')]()[_0x2a32('0x5f')](_0x5a6fab)&&this[_0x2a32('0x6c')](_0x540410,_0xe066ac,_0x180d25));}});},{'priority':'lowest'}),_0x4a9193[_0x2a32('0xc')]['on']('deleteContent',(_0x3ec4d5,_0x811b60)=>{const _0xafcf2e=_0x811b60[0x0],_0xb54075=_0x811b60[0x1];if(_0xb54075&&_0xb54075[_0x2a32('0xe')])return;if(this[_0x2a32('0x5e')])return;if(!this[_0x2a32('0xa0')][_0x2a32('0xb')])return;if(_0xafcf2e[_0x2a32('0xf1')])return;const _0x101375=_0x4a9193['model']['schema'],{start:_0x202ed4,end:_0x4a61be}=_0xafcf2e[_0x2a32('0x77')](),_0x736126=_0x202ed4['nodeAfter']&&_0x101375[_0x2a32('0x70')](_0x202ed4[_0x2a32('0xcf')])?null:_0x101375[_0x2a32('0x135')](_0x202ed4,_0x2a32('0x49')),_0x55e493=_0x4a61be['nodeBefore']&&_0x101375[_0x2a32('0x70')](_0x4a61be[_0x2a32('0x99')])?null:_0x101375[_0x2a32('0x135')](_0x4a61be,_0x2a32('0x69')),_0x3b0b3a=_0x4a9193['model'][_0x2a32('0x10c')](_0x736126?_0x736126[_0x2a32('0x22')]:_0x202ed4,_0x55e493?_0x55e493[_0x2a32('0xb6')]:_0x4a61be);_0x4a9193['model'][_0x2a32('0xf7')](_0x215e14=>{this[_0x2a32('0xba')](_0x3b0b3a);const _0x149a9c=_0x4a9193['model']['schema'][_0x2a32('0x135')](_0x3b0b3a[_0x2a32('0x22')]);_0xafcf2e['is'](_0x2a32('0x117'))?_0x215e14['setSelection'](_0x149a9c):_0xafcf2e['setTo'](_0x149a9c);}),_0x3ec4d5[_0x2a32('0xff')]();},{'priority':_0x4483ff[_0x2a32('0xc8')]+0xa}),_0x4a9193[_0x2a32('0xc')]['on']('insertContent',(_0x3d4e66,_0x6681f6)=>{const _0x3ce4b7=_0x6681f6[_0x6681f6['length']-0x1];_0x3ce4b7&&_0x3ce4b7[_0x2a32('0xe')]||this[_0x2a32('0x5e')]||this[_0x2a32('0xa0')]['value']&&(_0x4a9193[_0x2a32('0xc')]['change'](()=>{let _0x11bd1b=_0x4a9193['model'][_0x2a32('0x4')](_0x6681f6[0x0],_0x6681f6[0x1],_0x6681f6[0x2],{'forceDefaultExecution':!0x0});if(!_0x11bd1b)return;_0x3d4e66[_0x2a32('0x118')]=_0x11bd1b[_0x2a32('0x66')]();const _0x1c6428=_0x11bd1b['end'][_0x2a32('0x99')],_0x4b93d8=_0x4a9193[_0x2a32('0xc')][_0x2a32('0x12d')];_0x1c6428&&_0x4b93d8[_0x2a32('0x6f')](_0x1c6428)&&!_0x4b93d8[_0x2a32('0x7d')](_0x1c6428)&&(_0x11bd1b=_0x4a9193[_0x2a32('0xc')]['createRange'](_0x11bd1b[_0x2a32('0x22')],_0x4a9193[_0x2a32('0xc')][_0x2a32('0x1b')](_0x1c6428,'end'))),this[_0x2a32('0x5b')](_0x11bd1b);}),_0x3d4e66[_0x2a32('0xff')]());},{'priority':_0x2a32('0x7e')}),this[_0x2a32('0x3b')]['commands'][_0x2a32('0x2e')]('trackChanges',this[_0x2a32('0xa0')]),this[_0x2a32('0x63')]('trackChanges');const _0x1372b0=new _0x4e710f(_0x4a9193,this[_0x2a32('0x25')]);_0x4a9193[_0x2a32('0x90')]['add'](_0x2a32('0x46'),_0x1372b0),this['enableCommand'](_0x2a32('0x46'));const _0x19a52a=new _0x28388e(_0x4a9193,this[_0x2a32('0x25')]);_0x4a9193[_0x2a32('0x90')]['add'](_0x2a32('0xcb'),_0x19a52a),this[_0x2a32('0x63')](_0x2a32('0xcb')),_0x4a9193[_0x2a32('0x90')]['add']('acceptAllSuggestions',new _0x35991b(_0x4a9193,_0x1372b0,this['_suggestions'])),this[_0x2a32('0x63')](_0x2a32('0x1d')),_0x4a9193[_0x2a32('0x90')]['add']('discardAllSuggestions',new _0x35991b(_0x4a9193,_0x19a52a,this[_0x2a32('0x25')])),this[_0x2a32('0x63')](_0x2a32('0x106')),_0x4a9193[_0x2a32('0x90')][_0x2a32('0x2e')]('acceptSelectedSuggestions',new _0x2a07c7(_0x4a9193,_0x1372b0,this['_suggestions'])),this[_0x2a32('0x63')](_0x2a32('0xeb')),_0x4a9193[_0x2a32('0x90')][_0x2a32('0x2e')](_0x2a32('0xed'),new _0x2a07c7(_0x4a9193,_0x19a52a,this[_0x2a32('0x25')])),this[_0x2a32('0x63')]('discardSelectedSuggestions');const _0x1dc91c=_0x4a9193[_0x2a32('0x31')][_0x2a32('0x121')](_0x2a32('0xa6'));this[_0x2a32('0x102')](_0x1dc91c,_0x2a32('0x126'),(_0x3e598a,{threadId:_0x45f94e})=>{const _0x3f784e=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x45f94e);_0x3f784e&&_0x3f784e['commentThread']&&0x1===_0x3f784e[_0x2a32('0xb3')][_0x2a32('0xa')]&&this['_updateSuggestionData'](_0x45f94e,{'hasComments':!0x0});},{'priority':_0x2a32('0x1e')}),this[_0x2a32('0x102')](_0x1dc91c,_0x2a32('0xd1'),(_0x18b2a6,{threadId:_0x10a20c})=>{const _0x34bedd=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x10a20c);_0x34bedd&&_0x34bedd[_0x2a32('0xb3')]&&!_0x34bedd[_0x2a32('0xb3')][_0x2a32('0xa')]&&this['_updateSuggestionData'](_0x10a20c,{'hasComments':!0x1});},{'priority':_0x2a32('0x1e')});}set[_0x2a32('0x6a')](_0x5772b9){if(this[_0x2a32('0x8a')])throw new _0x5368fe(_0x2a32('0x12b'),this);this[_0x2a32('0x8a')]=_0x5772b9;}get[_0x2a32('0x6a')](){return this[_0x2a32('0x8a')];}[_0x2a32('0x7a')]({skipNotAttached:_0xc2976c=!0x1,toJSON:_0x353805=!0x1}={}){const _0x17f511=[];for(const _0x3b08fc of this[_0x2a32('0x25')]['values']())_0xc2976c&&!_0x3b08fc['isInContent']||_0x17f511['push'](_0x3b08fc);return _0x353805?_0x17f511[_0x2a32('0xfe')](_0x897dfe=>_0x897dfe['toJSON']()):_0x17f511;}[_0x2a32('0x9d')](_0x109965){const _0x8a4526=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x109965);if(!_0x8a4526)throw new _0x5368fe('track-changes-suggestion-not-found',this);return _0x8a4526;}['hasSuggestion'](_0x413ab4){return this['_suggestions'][_0x2a32('0xab')](_0x413ab4);}[_0x2a32('0x4d')](_0x44c2f3){const {authorId:_0x427f6c,id:_0x49b6e2,attributes:_0x1d0804}=_0x44c2f3,[_0x16c0f5,_0xdbe00f]=_0x44c2f3[_0x2a32('0x10e')][_0x2a32('0x2d')](':'),_0x420c1a=this[_0x2a32('0x25')][_0x2a32('0x121')](_0x49b6e2)||this[_0x2a32('0x20')](_0x16c0f5,_0xdbe00f,_0x49b6e2,_0x427f6c,_0x1d0804);if(this[_0x2a32('0x37')](_0x420c1a),this[_0x2a32('0x80')](_0x420c1a,_0x16c0f5,_0xdbe00f||null,_0x427f6c),_0x420c1a[_0x2a32('0xa2')]=_0x44c2f3[_0x2a32('0xa2')],_0x1d0804&&_0x1d0804['@external']){const _0x510c6d=_0x1d0804[_0x2a32('0xf')],_0x22d265=this[_0x2a32('0x2f')](_0x510c6d['authorName']);_0x420c1a[_0x2a32('0xaf')]=_0x510c6d[_0x2a32('0xa2')],_0x420c1a[_0x2a32('0x92')]=_0x22d265,_0x420c1a[_0x2a32('0xcd')]=!0x0;}else _0x420c1a[_0x2a32('0xaf')]=_0x44c2f3['createdAt'];switch(_0x44c2f3['data']&&(_0x420c1a[_0x2a32('0x10f')]=_0x44c2f3[_0x2a32('0x10f')]),_0x44c2f3[_0x2a32('0xbc')]&&(_0x420c1a['attributes']=_0x44c2f3[_0x2a32('0xbc')]),this[_0x2a32('0x8a')]&&this[_0x2a32('0x8a')][_0x2a32('0x1c')]||(_0x420c1a[_0x2a32('0x133')]=!0x0),this[_0x2a32('0x3d')][_0x2a32('0x121')](_0x420c1a)){case'notReady':this[_0x2a32('0x3d')]['set'](_0x420c1a,_0x2a32('0x83'));break;case'markerReady':_0x420c1a[_0x2a32('0xa9')]?(this['_suggestionState'][_0x2a32('0xbf')](_0x420c1a,_0x2a32('0xf9')),this[_0x2a32('0x87')]('suggestionLoaded',_0x420c1a)):this[_0x2a32('0x3d')][_0x2a32('0xbf')](_0x420c1a,'removed');}return _0x420c1a;}[_0x2a32('0x46')](_0xb95aee){this[_0x2a32('0xe')](()=>{this[_0x2a32('0x3b')][_0x2a32('0xc')][_0x2a32('0xf7')](()=>{for(const _0x17aa70 of _0xb95aee[_0x2a32('0x7c')]())_0x17aa70['accept']();});});}[_0x2a32('0xcb')](_0xd03e6e){this['forceDefaultExecution'](()=>{this[_0x2a32('0x3b')]['model']['change'](()=>{for(const _0xf7c73c of _0xd03e6e[_0x2a32('0x7c')]())_0xf7c73c[_0x2a32('0xc1')]();});});}[_0x2a32('0x63')](_0x478e8c,_0x305180){const _0x30c177=this['editor']['commands'][_0x2a32('0x121')](_0x478e8c);if(!_0x30c177)throw new _0x5368fe('track-changes-command-not-found',this,{'commandName':_0x478e8c});this[_0x2a32('0x124')][_0x2a32('0x2e')](_0x30c177),_0x305180&&_0x30c177['on'](_0x2a32('0x40'),(_0x112f5f,_0x357927)=>{this['trackChangesCommand'][_0x2a32('0xb')]&&(this[_0x2a32('0x5e')]||_0x357927[_0x2a32('0xa')]>0x0&&_0x357927[_0x357927[_0x2a32('0xa')]-0x1]&&_0x357927[_0x357927[_0x2a32('0xa')]-0x1][_0x2a32('0xe')]||(_0x305180((..._0x224ce4)=>_0x30c177[_0x2a32('0x40')](..._0x224ce4,{'forceDefaultExecution':!0x0}),..._0x357927),_0x112f5f[_0x2a32('0xff')]()));},{'priority':_0x2a32('0x7e')});}[_0x2a32('0xe')](_0x27a4d0){let _0x24356e,_0x258331;const _0x3683b0=this[_0x2a32('0x5e')];this[_0x2a32('0x5e')]=!0x0;try{_0x24356e=_0x27a4d0();}catch(_0x4267d1){_0x258331=_0x4267d1;}return _0x3683b0||(this[_0x2a32('0x5e')]=!0x1),_0x258331&&_0x5368fe[_0x2a32('0x108')](_0x258331,this),_0x24356e;}[_0x2a32('0x5b')](_0x154066,_0x6edc5b=null,_0x4621fc={}){if(_0x154066[_0x2a32('0xf1')])return null;const _0xc8d8a=this[_0x2a32('0x3b')][_0x2a32('0x31')]['get'](_0x2a32('0xc5'))['me'];for(const {suggestion:_0x14ce7b,meta:_0x3ed55c}of this[_0x2a32('0x68')](_0x154066,_0x2a32('0x5a')))if(_0x3ed55c[_0x2a32('0x9f')]){if(!_0x3ed55c[_0x2a32('0x3a')]){if(!this[_0x2a32('0x5')]&&_0x3ed55c[_0x2a32('0xf5')])continue;return _0x14ce7b;}if(_0x6edc5b==_0x14ce7b[_0x2a32('0x113')]){const _0x5a327e=_0x14ce7b[_0x2a32('0x77')]();return _0x5a327e[_0x2a32('0x22')][_0x2a32('0x96')](_0x154066[_0x2a32('0xb6')])?this['_setSuggestionRange'](_0x14ce7b,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x154066['start'],_0x5a327e[_0x2a32('0xb6')])):this[_0x2a32('0x95')](_0x14ce7b,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x5a327e[_0x2a32('0x22')],_0x154066[_0x2a32('0xb6')])),_0x14ce7b;}}const _0x4846a9=_0x161255(),_0x2f2ece=_0xc8d8a['id'],_0x20acdc=_0x6edc5b?_0x2a32('0x30')+_0x6edc5b:'insertion',_0x1d7401=this[_0x2a32('0x53')]({'id':_0x4846a9,'type':_0x20acdc,'createdAt':new Date(),'authorId':_0x2f2ece,'attributes':_0x4621fc});return this[_0x2a32('0x9')](_0x20acdc,_0x4846a9,_0x2f2ece,_0x154066),_0x1d7401;}[_0x2a32('0x64')](_0x50ff3a,_0x5d9038=_0x2a32('0x116'),_0xf23461={}){const _0x19656a=this['editor']['plugins'][_0x2a32('0x121')](_0x2a32('0xc5'))['me'],_0x45edf0=this[_0x2a32('0xf4')]['getSuggestionCallback'](_0x2a32('0x5a'),_0x5d9038,'join');for(const _0x391d2a of this[_0x2a32('0x7a')]())if(_0x391d2a[_0x2a32('0x92')]['id']==_0x19656a['id']&&_0x2a32('0x5a')==_0x391d2a[_0x2a32('0x10e')]&&_0x391d2a[_0x2a32('0x113')]==_0x5d9038&&(_0x45edf0(_0x391d2a[_0x2a32('0x8f')](),_0x50ff3a)||_0x45edf0(_0x50ff3a,_0x391d2a[_0x2a32('0x8f')]()))){for(const _0x5ad17c of _0x50ff3a)_0x391d2a[_0x2a32('0xd9')](_0x5ad17c);return _0x391d2a;}if(this[_0x2a32('0x5')])for(const _0x5f4fa2 of _0x50ff3a)for(const {suggestion:_0x64a7bd,meta:_0x30b0e0}of this['_findSuggestions'](_0x5f4fa2,_0x2a32('0x5a'))){if(!_0x30b0e0['isOwn'])continue;let _0x217c39=!0x0;for(const _0x4d5a65 of _0x64a7bd[_0x2a32('0x8f')]())for(const _0xe7a59e of _0x50ff3a)if(!_0x4d5a65[_0x2a32('0x5f')](_0xe7a59e)){_0x217c39=!0x1;break;}if(_0x217c39)return _0x64a7bd;}const _0x2f4556=_0x161255(),_0xe09d54=_0x19656a['id'],_0x34b5db='insertion:'+_0x5d9038,_0x34d271=this[_0x2a32('0x53')]({'id':_0x2f4556,'type':_0x34b5db,'createdAt':new Date(),'authorId':_0xe09d54,'attributes':_0xf23461});for(const _0x4b0570 of _0x50ff3a)this['_addSuggestionMarker'](_0x34b5db,_0x2f4556,_0xe09d54,_0x4b0570,_0x115070[_0x2a32('0x11c')]());return _0x34d271;}[_0x2a32('0x8')](_0x3553de,_0x17df92,_0x1b36fa=null,_0x3c784a={}){if(_0x1b36fa=_0x1b36fa||$t(_0x17df92),_0x3553de[_0x2a32('0xf1')])return null;if(_0x2a32('0xc4')===this[_0x2a32('0xb5')]){const _0x40703d=this[_0x2a32('0xf4')]['getSuggestionCallback'](_0x2a32('0xe8'),_0x1b36fa,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x40703d([_0x3553de],_0x17df92,_0x3c784a)),null;}const _0x13371d=this[_0x2a32('0x3b')]['plugins'][_0x2a32('0x121')]('Users')['me'],_0x2a04bd=[];if(_0x2a32('0x104')!==this[_0x2a32('0xb5')])for(const {suggestion:_0x2b62a5,meta:_0x1d8f41}of this[_0x2a32('0x68')](_0x3553de,'insertion'))_0x1d8f41[_0x2a32('0x9f')]&&!_0x1d8f41[_0x2a32('0x8d')]&&_0x2a04bd[_0x2a32('0x29')](..._0x2b62a5[_0x2a32('0x8f')]());const _0x1a7717=function(_0x52e7de,_0x451e4a){const _0x200cfe=[];for(const _0x493411 of _0x451e4a){const _0x373f1f=_0x52e7de[_0x2a32('0x71')](_0x493411);_0x373f1f&&_0x200cfe[_0x2a32('0x29')](_0x373f1f);}return _0x200cfe;}(_0x3553de,_0x2a04bd),_0xab30ad=function(_0x3998a3,_0x290b55){const _0x3af6d4=[_0x3998a3];for(const _0x2dd13a of _0x290b55){let _0x35a684=0x0;for(;_0x35a684<_0x3af6d4[_0x2a32('0xa')];){const _0x2fb19c=_0x3af6d4[_0x35a684][_0x2a32('0x1a')](_0x2dd13a);_0x3af6d4[_0x2a32('0xe2')](_0x35a684,0x1,..._0x2fb19c),_0x35a684+=_0x2fb19c[_0x2a32('0xa')];}}return _0x3af6d4;}(_0x3553de,_0x2a04bd);_0x1a7717[_0x2a32('0xa')]&&this[_0x2a32('0x97')][_0x2a32('0xf7')](()=>{for(const _0x1aeae4 of _0x1a7717){const _0x593d0a=this[_0x2a32('0xf4')][_0x2a32('0x12f')]('formatInline',_0x1b36fa,_0x2a32('0xc9'));this[_0x2a32('0xe')](()=>_0x593d0a([_0x1aeae4],_0x17df92,_0x3c784a));}});for(const _0x884428 of _0xab30ad){let _0x1ac570=null,_0x526eb0=_0x884428['start'],_0xfff633=_0x884428[_0x2a32('0xb6')];for(const {suggestion:_0x416126,meta:_0x589e06}of this[_0x2a32('0x68')](_0x884428,_0x2a32('0xe8'))){if(!_0x589e06[_0x2a32('0x9f')])continue;if(_0x416126[_0x2a32('0x113')]!=_0x1b36fa)continue;const _0x272960=_0x416126['getFirstRange']();if(_0x272960['containsRange'](_0x884428,!0x0))return null;_0x526eb0=_0x526eb0[_0x2a32('0x72')](_0x272960[_0x2a32('0x22')])?_0x526eb0:_0x272960[_0x2a32('0x22')],_0xfff633=_0xfff633['isAfter'](_0x272960[_0x2a32('0xb6')])?_0xfff633:_0x272960[_0x2a32('0xb6')],_0x1ac570?_0x272960[_0x2a32('0x22')][_0x2a32('0x72')](_0x1ac570[_0x2a32('0x77')]()[_0x2a32('0x22')])?(_0x1ac570[_0x2a32('0xe7')](),_0x1ac570=_0x416126):_0x416126[_0x2a32('0xe7')]():_0x1ac570=_0x416126;}const _0x87d6f8=this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x526eb0,_0xfff633);if(_0x1ac570)this['_setSuggestionRange'](_0x1ac570,_0x87d6f8);else{const _0x4d4aae=_0x161255(),_0x17b1b4=_0x13371d['id'];this['_setSuggestionData']({'id':_0x4d4aae,'type':_0x2a32('0x39')+_0x1b36fa,'data':_0x17df92,'createdAt':new Date(),'authorId':_0x17b1b4,'attributes':_0x3c784a}),this[_0x2a32('0x9')](_0x2a32('0x39')+_0x1b36fa,_0x4d4aae,_0x17b1b4,_0x87d6f8);}}return null;}[_0x2a32('0x19')](_0x4d20b4,_0x5882ae,_0x3ded5f=[],_0x12cf13=null,_0xbaa5f6={}){_0x5882ae[_0x2a32('0xe3')]||(_0x5882ae[_0x2a32('0xe3')]=_0x5882ae[_0x2a32('0xe4')]),_0x5882ae[_0x2a32('0xae')]=_0x4d20b4['is'](_0x2a32('0x26')),_0x12cf13=_0x12cf13||$t(_0x5882ae);const _0x2e5103=_0x3ded5f[_0x2a32('0xfe')](_0xf78b7d=>Rt(_0xf78b7d,this[_0x2a32('0x97')])),_0x39d135=_0x4d20b4['is'](_0x2a32('0x26'))?_0x4d20b4:Rt(_0x4d20b4,this[_0x2a32('0x97')]);if(_0x2a32('0xc4')===this['_trackFormatChanges']){const _0x5886a2=this['_suggestionFactory'][_0x2a32('0x12f')](_0x2a32('0x3c'),_0x12cf13,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x5886a2([_0x39d135],_0x5882ae,_0xbaa5f6)),null;}_0x2e5103[_0x2a32('0x29')](_0x39d135);let _0x31050b=!0x0;for(const _0x335dc7 of _0x2e5103)if(!this[_0x2a32('0x11e')](_0x335dc7)){_0x31050b=!0x1;break;}if(_0x31050b&&_0x2a32('0x104')!==this[_0x2a32('0xb5')]){const _0x5f2472=this['_suggestionFactory']['getSuggestionCallback'](_0x2a32('0x3c'),_0x12cf13,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x5f2472([_0x39d135],_0x5882ae,_0xbaa5f6)),null;}let _0x5cf69a=null,_0x282408=_0x39d135[_0x2a32('0x22')],_0x53701f=_0x39d135[_0x2a32('0xb6')];for(const {suggestion:_0x1a73e9,meta:_0x55b3bb}of this['_findSuggestions'](_0x39d135,'formatBlock')){if(!_0x55b3bb['isOwn']||_0x55b3bb[_0x2a32('0x3a')]||_0x55b3bb['containsRangeInObject']||_0x55b3bb['isInsideObject'])continue;if(_0x1a73e9['data']['formatGroupId']!=_0x5882ae['formatGroupId'])continue;const _0x457400=_0x1a73e9[_0x2a32('0x77')]();if(_0x1a73e9[_0x2a32('0x113')]==_0x12cf13){if(_0x457400[_0x2a32('0x5f')](_0x39d135,!0x0))return null;_0x282408=_0x282408['isBefore'](_0x457400[_0x2a32('0x22')])?_0x282408:_0x457400[_0x2a32('0x22')],_0x53701f=_0x53701f['isAfter'](_0x457400[_0x2a32('0xb6')])?_0x53701f:_0x457400[_0x2a32('0xb6')],_0x5cf69a?_0x457400[_0x2a32('0x22')][_0x2a32('0x72')](_0x5cf69a[_0x2a32('0x77')]()['start'])?(_0x5cf69a['removeMarkers'](),_0x5cf69a=_0x1a73e9):_0x1a73e9[_0x2a32('0xe7')]():_0x5cf69a=_0x1a73e9;}else{const _0x4df0c1=_0x39d135[_0x2a32('0x71')](_0x457400);this['_cutOutSuggestionMarker'](_0x1a73e9,_0x4df0c1);}}const _0x108c88=this[_0x2a32('0x3b')][_0x2a32('0x31')][_0x2a32('0x121')](_0x2a32('0xc5'))['me'],_0x3d8d50=_0x161255(),_0x1f9a73=_0x108c88['id'];if(_0x5cf69a)return this[_0x2a32('0x95')](_0x5cf69a,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x282408,_0x53701f)),_0x5cf69a;{const _0x3f17a3=this['_setSuggestionData']({'id':_0x3d8d50,'type':_0x2a32('0xb0')+_0x12cf13,'data':_0x5882ae,'createdAt':new Date(),'authorId':_0x1f9a73,'attributes':_0xbaa5f6});return this[_0x2a32('0x9')](_0x2a32('0xb0')+_0x12cf13,_0x3d8d50,_0x1f9a73,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x282408,_0x53701f)),_0x3f17a3;}}[_0x2a32('0xd')](_0x3f078d,_0x46851f,_0x15830f=[],_0x3316eb=null,_0x2b0d77={}){_0x46851f[_0x2a32('0xe3')]||(_0x46851f[_0x2a32('0xe3')]=_0x46851f['commandName']);const _0x58d6b6=_0x3f078d[0x0];_0x46851f[_0x2a32('0xae')]=_0x58d6b6['is'](_0x2a32('0x26')),_0x3316eb=_0x3316eb||$t(_0x46851f);const _0x178e12=_0x15830f[_0x2a32('0xfe')](_0x8c362f=>Rt(_0x8c362f,this[_0x2a32('0x97')])),_0x1529d3=_0x58d6b6['is'](_0x2a32('0x26'))?_0x3f078d:_0x3f078d[_0x2a32('0xfe')](_0x46a6bf=>Rt(_0x46a6bf,this['_model']));if(_0x2a32('0xc4')===this['_trackFormatChanges']){const _0x1923a3=this['_suggestionFactory'][_0x2a32('0x12f')](_0x2a32('0x3c'),_0x3316eb,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x1923a3(_0x1529d3,_0x46851f,_0x2b0d77)),null;}_0x178e12[_0x2a32('0x29')](..._0x1529d3);let _0x4e5164=!0x0;for(const _0x45e3d4 of _0x178e12)if(!this[_0x2a32('0x11e')](_0x45e3d4)){_0x4e5164=!0x1;break;}if(_0x4e5164&&_0x2a32('0x104')!==this['_trackFormatChanges']){const _0x5a17bf=this['_suggestionFactory']['getSuggestionCallback'](_0x2a32('0x3c'),_0x3316eb,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x5a17bf(_0x1529d3,_0x46851f,_0x2b0d77)),null;}const _0x1c1728=this[_0x2a32('0x3b')]['plugins'][_0x2a32('0x121')](_0x2a32('0xc5'))['me'];for(const _0x4bc6ea of this[_0x2a32('0x7a')]()){if(_0x4bc6ea[_0x2a32('0x92')]['id']!=_0x1c1728['id'])continue;if(_0x2a32('0x3c')!=_0x4bc6ea['type']||_0x4bc6ea[_0x2a32('0x10f')][_0x2a32('0xe3')]!=_0x46851f[_0x2a32('0xe3')])continue;const _0x40873c=_0x4bc6ea['subType']==_0x3316eb;for(let _0x235535=0x0;_0x235535<_0x1529d3[_0x2a32('0xa')];_0x235535++){const _0x29f914=_0x1529d3[_0x235535];for(const _0x10b2bd of _0x4bc6ea[_0x2a32('0x9c')]()){const _0x205625=_0x10b2bd[_0x2a32('0x0')]();if(_0x29f914[_0x2a32('0x96')](_0x205625)){_0x40873c?(_0x1529d3[_0x2a32('0xe2')](_0x235535,0x1),_0x235535--):_0x4bc6ea[_0x2a32('0x5c')](_0x10b2bd[_0x2a32('0xc2')]);break;}}}}if(0x0==_0x1529d3[_0x2a32('0xa')])return null;const _0x22dc17=this[_0x2a32('0xf4')]['getSuggestionCallback'](_0x2a32('0x3c'),_0x3316eb,_0x2a32('0x103'));for(const _0xacc77c of this['getSuggestions']())if(_0xacc77c[_0x2a32('0x92')]['id']==_0x1c1728['id']&&_0x2a32('0x3c')==_0xacc77c[_0x2a32('0x10e')]&&_0xacc77c['data'][_0x2a32('0xe3')]==_0x46851f['formatGroupId']&&_0xacc77c[_0x2a32('0x113')]==_0x3316eb&&(_0x22dc17(_0xacc77c[_0x2a32('0x8f')](),_0x1529d3)||_0x22dc17(_0x1529d3,_0xacc77c[_0x2a32('0x8f')]()))){for(const _0x4da132 of _0x1529d3)_0xacc77c['addRange'](_0x4da132);return _0xacc77c;}const _0x294556=_0x161255(),_0x5408dc=_0x1c1728['id'],_0x479b5e=_0x2a32('0xb0')+_0x3316eb,_0x27473d=this[_0x2a32('0x53')]({'id':_0x294556,'type':_0x479b5e,'data':_0x46851f,'createdAt':new Date(),'authorId':_0x5408dc,'attributes':_0x2b0d77});for(const _0x3a3c16 of _0x1529d3)this[_0x2a32('0x9')](_0x479b5e,_0x294556,_0x5408dc,_0x3a3c16,_0x115070['getMultiRangeId']());return _0x27473d;}['markDeletion'](_0xd82856,_0x273146=null,_0x4988e0={}){if(_0xd82856[_0x2a32('0xf1')])return null;const _0xff8419=this[_0x2a32('0x3b')][_0x2a32('0x31')]['get'](_0x2a32('0xc5'))['me'],_0x52788c=new _0x5ba02d(_0xd82856[_0x2a32('0x22')],_0xd82856[_0x2a32('0xb6')]);for(const {suggestion:_0x491429,meta:_0x39f19b}of this[_0x2a32('0x68')](_0x52788c,_0x2a32('0x5a')))if(_0x39f19b[_0x2a32('0x9f')]&&!_0x39f19b['isNextTo']){if(_0x491429[_0x2a32('0xac')]){const _0x5ae638=_0x491429[_0x2a32('0x8f')]()['filter'](_0x25b8e0=>_0x2a32('0xdd')!=_0x25b8e0['root'][_0x2a32('0xe9')]);_0x5ae638[_0x2a32('0x111')](_0x29ced9=>_0x52788c[_0x2a32('0x5f')](_0x29ced9,!0x0))&&_0x491429[_0x2a32('0xc1')]();if(_0x5ae638[_0x2a32('0x8e')](_0x4f5df5=>_0x4f5df5[_0x2a32('0x5f')](_0x52788c,!0x0))){const _0x2d8474=this[_0x2a32('0xf4')][_0x2a32('0x12f')](_0x2a32('0x73'),_0x273146,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x2d8474([_0x52788c],null,_0x4988e0)),null;}}else{const _0xc8f11d=_0x52788c['getIntersection'](_0x491429[_0x2a32('0x77')]());null!==_0xc8f11d&&_0x491429[_0x2a32('0x122')]([_0xc8f11d],null,_0x4988e0);}}if(_0x52788c['detach'](),_0x52788c[_0x2a32('0xf1')]||'$graveyard'==_0x52788c['root'][_0x2a32('0xe9')])return null;let _0x12af84=null,_0x5a657a=_0x52788c[_0x2a32('0x22')],_0x498ad7=_0x52788c[_0x2a32('0xb6')];for(const {suggestion:_0x5debe3,meta:_0xe22c74}of this[_0x2a32('0x68')](_0x52788c,_0x2a32('0x73')))if(_0xe22c74[_0x2a32('0x9f')]){if(_0x5debe3[_0x2a32('0xac')]&&this[_0x2a32('0x5')]){let _0x158056=!0x0;for(const _0x3e4f51 of _0x5debe3[_0x2a32('0x8f')]()){if(_0x3e4f51[_0x2a32('0x5f')](_0x52788c,!0x0))return _0x5debe3;_0x52788c[_0x2a32('0x5f')](_0x3e4f51)||(_0x158056=!0x1);}_0x158056&&_0x5debe3[_0x2a32('0xc1')]();}else{const _0x58392a=_0x5debe3[_0x2a32('0x77')]();if(_0x58392a[_0x2a32('0x5f')](_0x52788c,!0x0)){if(!this[_0x2a32('0x5')]&&_0xe22c74[_0x2a32('0xf5')])continue;return _0x5debe3;}_0x5a657a=_0x5a657a[_0x2a32('0x72')](_0x58392a[_0x2a32('0x22')])?_0x5a657a:_0x58392a['start'],_0x498ad7=_0x498ad7['isAfter'](_0x58392a[_0x2a32('0xb6')])?_0x498ad7:_0x58392a[_0x2a32('0xb6')],_0x12af84?_0x58392a[_0x2a32('0x22')][_0x2a32('0x72')](_0x12af84[_0x2a32('0x77')]()[_0x2a32('0x22')])?(_0x12af84['removeMarkers'](),_0x12af84=_0x5debe3):_0x5debe3[_0x2a32('0xe7')]():_0x12af84=_0x5debe3;}}if(_0x12af84)return this[_0x2a32('0x95')](_0x12af84,this['_model'][_0x2a32('0x10c')](_0x5a657a,_0x498ad7)),_0x12af84;{const _0x3f89dd=_0x161255(),_0x39ef7b=this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x5a657a,_0x498ad7),_0x5d0bc7=_0xff8419['id'],_0x24f500=_0x273146?'deletion:'+_0x273146:'deletion',_0x1d25a4=this[_0x2a32('0x53')]({'id':_0x3f89dd,'type':_0x24f500,'createdAt':new Date(),'authorId':_0x5d0bc7,'attributes':_0x4988e0});return this[_0x2a32('0x9')](_0x24f500,_0x3f89dd,_0x5d0bc7,_0x39ef7b),_0x1d25a4;}}[_0x2a32('0xd3')](_0x51c0f3,_0x26d5ff=_0x2a32('0x116'),_0x298c67={}){const _0x25b15d=this[_0x2a32('0x3b')][_0x2a32('0x31')][_0x2a32('0x121')]('Users')['me'],_0x592c65=_0x51c0f3['map'](_0x200041=>new _0x5ba02d(_0x200041['start'],_0x200041[_0x2a32('0xb6')])),_0x181ab7=new Set();for(const _0xd6f845 of _0x592c65)for(const {suggestion:_0x50309b,meta:_0x44b68b}of this[_0x2a32('0x68')](_0xd6f845,_0x2a32('0x5a')))_0x44b68b[_0x2a32('0x9f')]&&!_0x44b68b[_0x2a32('0x3a')]&&_0x181ab7[_0x2a32('0x2e')](_0x50309b);for(const _0x38197e of _0x181ab7)if(_0x38197e[_0x2a32('0xac')]){const _0x3b6a33=_0x38197e[_0x2a32('0x8f')]();(!_0x38197e['attributes']||!_0x38197e[_0x2a32('0xbc')]['skipNestingCheck'])&&(_0x3b6a33[_0x2a32('0x111')](_0x23c88c=>_0x592c65[_0x2a32('0x8e')](_0x14b47c=>_0x14b47c[_0x2a32('0x5f')](_0x23c88c,!0x0)))&&_0x38197e[_0x2a32('0xc1')]());if(_0x592c65[_0x2a32('0x111')](_0x2b9007=>_0x3b6a33[_0x2a32('0x8e')](_0x374037=>_0x374037['containsRange'](_0x2b9007,!0x0)))){const _0x16d98c=this[_0x2a32('0xf4')][_0x2a32('0x12f')](_0x2a32('0x73'),_0x26d5ff,_0x2a32('0xc9'));return this[_0x2a32('0xe')](()=>_0x16d98c(_0x51c0f3,null,_0x298c67)),null;}}else{const _0x196b26=_0x38197e[_0x2a32('0x77')]();_0x592c65[_0x2a32('0x8e')](_0x17bc75=>_0x17bc75[_0x2a32('0x5f')](_0x196b26,!0x0))&&_0x38197e['discard']();if(_0x592c65[_0x2a32('0x111')](_0x128381=>_0x196b26[_0x2a32('0x5f')](_0x128381,!0x0))){const _0x27ba36=this[_0x2a32('0xf4')][_0x2a32('0x12f')](_0x2a32('0x73'),_0x26d5ff,_0x2a32('0xc9'));return this['forceDefaultExecution'](()=>_0x27ba36(_0x592c65,null,_0x298c67)),null;}}const _0x18b896=this[_0x2a32('0xf4')][_0x2a32('0x12f')](_0x2a32('0x73'),_0x26d5ff,_0x2a32('0x103'));let _0x5c6dd1=null;for(const _0x415a01 of this[_0x2a32('0x7a')]())if(_0x415a01[_0x2a32('0x92')]['id']==_0x25b15d['id']&&_0x415a01[_0x2a32('0xa9')]&&'deletion'==_0x415a01['type']&&_0x415a01[_0x2a32('0x113')]==_0x26d5ff&&(_0x18b896(_0x415a01[_0x2a32('0x8f')](),_0x592c65)||_0x18b896(_0x592c65,_0x415a01[_0x2a32('0x8f')]()))){if(_0x5c6dd1){if(_0x415a01[_0x2a32('0xb3')]&&_0x415a01[_0x2a32('0xb3')]['length'])continue;for(const _0x49266a of _0x415a01[_0x2a32('0x8f')]())_0x5c6dd1[_0x2a32('0x51')](_0x49266a)||_0x5c6dd1[_0x2a32('0xd9')](_0x49266a);_0x415a01[_0x2a32('0xe7')]();}else{_0x5c6dd1=_0x415a01;for(const _0x5502ef of _0x592c65)_0x415a01[_0x2a32('0x51')](_0x5502ef)||_0x415a01['addRange'](_0x5502ef);}}if(_0x5c6dd1)return _0x5c6dd1;_0x181ab7['clear']();for(const _0x1a062a of _0x592c65)for(const {suggestion:_0x2bdc2a,meta:_0x3a4a8c}of this['_findSuggestions'](_0x1a062a,_0x2a32('0x73')))_0x3a4a8c[_0x2a32('0x9f')]&&_0x181ab7['add'](_0x2bdc2a);for(const _0x379077 of _0x181ab7){const _0x32d5e0=_0x379077[_0x2a32('0x8f')]();if(!_0x298c67||!_0x298c67['skipNestingCheck']){if(_0x592c65[_0x2a32('0x111')](_0x5e125d=>_0x32d5e0[_0x2a32('0x8e')](_0x3fa30d=>_0x3fa30d[_0x2a32('0x5f')](_0x5e125d,!0x0))))return _0x379077;}(!_0x379077['attributes']||!_0x379077[_0x2a32('0xbc')][_0x2a32('0xbe')])&&(_0x32d5e0[_0x2a32('0x111')](_0xcb62fb=>_0x592c65[_0x2a32('0x8e')](_0x22687a=>_0x22687a[_0x2a32('0x5f')](_0xcb62fb,!0x0)))&&_0x379077['discard']());}const _0x4be7f4=_0x161255(),_0x3c0fb5=_0x25b15d['id'],_0x252e5a=_0x2a32('0x18')+_0x26d5ff,_0x35f46e=this[_0x2a32('0x53')]({'id':_0x4be7f4,'type':_0x252e5a,'createdAt':new Date(),'authorId':_0x3c0fb5,'attributes':_0x298c67});for(const _0x5a6dcd of _0x592c65)_0x5a6dcd[_0x2a32('0x74')](),_0x5a6dcd['isCollapsed']||_0x2a32('0xdd')==_0x5a6dcd[_0x2a32('0x12e')][_0x2a32('0xe9')]||this['_addSuggestionMarker'](_0x252e5a,_0x4be7f4,_0x3c0fb5,_0x5a6dcd,_0x115070[_0x2a32('0x11c')]());return _0x35f46e;}[_0x2a32('0x95')](_0xf6e8e2,_0x4f7ec7){const _0x278883=_0xf6e8e2['getFirstMarker']();this['_model'][_0x2a32('0xf7')](_0x387c1f=>{_0x387c1f['updateMarker'](_0x278883,{'range':_0x4f7ec7});});}[_0x2a32('0x37')](_0x3fb0e4){const _0x2c72ea=_0x3fb0e4['id'],_0x17b728=this[_0x2a32('0x3b')][_0x2a32('0xb2')][_0x2a32('0x121')]('collaboration.channelId');this[_0x2a32('0x67')][_0x2a32('0x50')](_0x2c72ea)||this[_0x2a32('0x67')][_0x2a32('0xa8')]({'channelId':_0x17b728,'threadId':_0x2c72ea,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x11e3fd=this[_0x2a32('0x67')][_0x2a32('0x88')](_0x2c72ea);_0x11e3fd[_0x2a32('0x85')](_0x2a32('0xa1')),_0x11e3fd[_0x2a32('0xa1')]=!0x1,_0x3fb0e4[_0x2a32('0xb3')]=_0x11e3fd;}['_checkSuggestionCorrectness'](_0x44ce3a,_0x4f1974,_0x4400b5,_0x10d054){if(_0x44ce3a[_0x2a32('0x10e')]!=_0x4f1974||_0x44ce3a[_0x2a32('0x113')]!=_0x4400b5||_0x44ce3a[_0x2a32('0xb9')]['id']!=_0x10d054)throw this[_0x2a32('0x3b')][_0x2a32('0xc7')](_0x2a32('0x128')),new _0x5368fe(_0x2a32('0x128'),this);}[_0x2a32('0xad')](_0x54673d,_0x239bbc){const _0x70874f=_0x54673d[_0x2a32('0x77')]();if(_0x239bbc[_0x2a32('0x96')](_0x70874f))_0x54673d['removeMarkers']();else{if(_0x70874f[_0x2a32('0x5f')](_0x239bbc)){const _0xfce98e=this[_0x2a32('0x97')][_0x2a32('0x1b')](_0x239bbc['start'][_0x2a32('0x99')],_0x2a32('0xb6'));this[_0x2a32('0x95')](_0x54673d,this['_model'][_0x2a32('0x10c')](_0x70874f[_0x2a32('0x22')],_0xfce98e));const _0x1c639c=_0x161255(),_0x42a7d2=_0x54673d[_0x2a32('0xb9')]['id'],_0x3b32a1=_0x54673d[_0x2a32('0x10e')]+':'+_0x54673d['subType'];this['_setSuggestionData']({'id':_0x1c639c,'type':_0x3b32a1,'createdAt':new Date(),'authorId':_0x42a7d2,'data':_0x54673d['data'],'attributes':_0x54673d[_0x2a32('0xbc')]});const _0x3bfd98=this[_0x2a32('0x97')][_0x2a32('0x1b')](_0x239bbc[_0x2a32('0xb6')][_0x2a32('0x75')],'after'),_0x2e935a=this[_0x2a32('0x97')]['createRange'](_0x3bfd98,_0x70874f[_0x2a32('0xb6')]);this[_0x2a32('0x9')](_0x3b32a1,_0x1c639c,_0x42a7d2,_0x2e935a);}else{if(_0x70874f[_0x2a32('0x127')](_0x239bbc[_0x2a32('0x22')])){const _0x228f64=this[_0x2a32('0x97')]['createPositionAt'](_0x239bbc[_0x2a32('0x22')][_0x2a32('0x99')],_0x2a32('0xb6'));this[_0x2a32('0x95')](_0x54673d,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x70874f[_0x2a32('0x22')],_0x228f64));}else{const _0x238a20=this[_0x2a32('0x97')]['createPositionAt'](_0x239bbc[_0x2a32('0xb6')][_0x2a32('0x75')],_0x2a32('0x10'));this[_0x2a32('0x95')](_0x54673d,this[_0x2a32('0x97')]['createRange'](_0x238a20,_0x70874f[_0x2a32('0xb6')]));}}}}[_0x2a32('0x11e')](_0x18d969){for(const {suggestion:_0x4701d1,meta:_0x127a3d}of this[_0x2a32('0x68')](_0x18d969,'insertion')){if(!_0x127a3d[_0x2a32('0x9f')])continue;const _0x1ea8ad=_0x4701d1[_0x2a32('0x8f')]();for(const _0x4dfad4 of _0x1ea8ad)if(!_0x18d969[_0x2a32('0x1a')](_0x4dfad4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1279fa){const _0x401429=this[_0x2a32('0x3b')][_0x2a32('0x31')][_0x2a32('0x121')](_0x2a32('0xc5'))['getUser'](_0x1279fa);if(!_0x401429)throw new _0x5368fe(_0x2a32('0x12a'),this);return _0x401429;}[_0x2a32('0x2f')](_0x5e8c69){const _0x2abefb=this[_0x2a32('0x3b')]['plugins'][_0x2a32('0x121')](_0x2a32('0xc5')),_0x5e7766=_0x234eab(_0x2a32('0x1')+_0x5e8c69),_0x70e95b=_0x2abefb[_0x2a32('0x123')](_0x5e7766);return _0x70e95b||_0x2abefb[_0x2a32('0x10a')]({'id':_0x5e7766,'name':_0x5e8c69});}['_createSuggestion'](_0x2b0901,_0x327ec7,_0x1c46c9,_0x2177cd,_0x37b2ed){const _0x156cdd=this[_0x2a32('0xf2')](_0x2177cd),_0x383753=this[_0x2a32('0xf4')][_0x2a32('0x2b')](_0x2b0901,_0x327ec7,_0x1c46c9,_0x156cdd,_0x37b2ed,_0x23f622=>this[_0x2a32('0xc6')](_0x1c46c9,{'attributes':_0x23f622}));return this[_0x2a32('0x102')](_0x383753,_0x2a32('0xc9'),()=>{this[_0x2a32('0xc6')](_0x1c46c9,{'state':_0x2a32('0x12')});},{'priority':'high'}),this[_0x2a32('0x102')](_0x383753,_0x2a32('0xc1'),()=>{this[_0x2a32('0xc6')](_0x1c46c9,{'state':_0x2a32('0xec')});},{'priority':_0x2a32('0x7e')}),this[_0x2a32('0x25')][_0x2a32('0xbf')](_0x1c46c9,_0x383753),this['_suggestionState'][_0x2a32('0xbf')](_0x383753,_0x2a32('0xfb')),_0x383753;}[_0x2a32('0x93')](_0x3e0180){const _0x2de6cc=_0x3e0180[_0x2a32('0x2d')](':');return{'group':_0x2de6cc[0x0],'type':_0x2de6cc[0x1],'subType':_0x2de6cc['length']>=0x5?_0x2de6cc[0x2]:null,'id':_0x2de6cc[_0x2a32('0xa')]<0x5?_0x2de6cc[0x2]:_0x2de6cc[0x3],'authorId':_0x2de6cc['length']<0x5?_0x2de6cc[0x3]:_0x2de6cc[0x4],'markerCount':0x6==_0x2de6cc[_0x2a32('0xa')]?_0x2de6cc[0x5]:null};}[_0x2a32('0x6c')](_0x255acf,_0x593f87,_0xb229b7){const _0x793d37=_0x255acf[_0x2a32('0x77')](),_0x409186=_0x793d37[_0x2a32('0x22')],_0x462922=_0x793d37[_0x2a32('0xb6')];this[_0x2a32('0x95')](_0x255acf,this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x409186,_0x593f87));const _0x3835a9=_0x161255(),_0x1e3870=_0x255acf[_0x2a32('0xb9')]['id'],_0x543656=_0x255acf[_0x2a32('0x10e')]+(_0x255acf[_0x2a32('0x113')]?':'+_0x255acf[_0x2a32('0x113')]:'');this['_setSuggestionData']({'id':_0x3835a9,'type':_0x543656,'createdAt':new Date(),'authorId':_0x1e3870,'originalSuggestionId':_0x255acf['id'],'attributes':_0x255acf[_0x2a32('0xbc')],'data':_0x255acf[_0x2a32('0x10f')]}),_0x2a32('0x3c')==_0x255acf[_0x2a32('0x10e')]&&(_0xb229b7=this[_0x2a32('0x97')]['createPositionBefore'](_0xb229b7['parent'])),this[_0x2a32('0x9')](_0x543656,_0x3835a9,_0x1e3870,this[_0x2a32('0x97')]['createRange'](_0xb229b7,_0x462922));}[_0x2a32('0x68')](_0x26a508,_0x43aab1=null){const _0x573efa=[],_0x4f114b=this[_0x2a32('0x97')][_0x2a32('0x12d')],_0xef8b3d=this['editor'][_0x2a32('0x31')][_0x2a32('0x121')]('Users')['me'];for(const _0x38404d of this['getSuggestions']())if(_0x38404d[_0x2a32('0xa9')]&&(!_0x43aab1||_0x38404d[_0x2a32('0x10e')]==_0x43aab1))for(const _0x3f5977 of _0x38404d[_0x2a32('0x8f')]()){const _0x510b91=_0x26a508[_0x2a32('0x22')][_0x2a32('0x96')](_0x3f5977[_0x2a32('0xb6')])||_0x26a508['end'][_0x2a32('0x96')](_0x3f5977[_0x2a32('0x22')]);if(_0x510b91||_0x26a508[_0x2a32('0x71')](_0x3f5977)){const _0x5f038f=_0x26a508[_0x2a32('0x5f')](_0x3f5977)&&Bt(_0x4f114b,_0x3f5977[_0x2a32('0x22')],_0x26a508),_0x43554c=_0x3f5977[_0x2a32('0x5f')](_0x26a508)&&Bt(_0x4f114b,_0x26a508[_0x2a32('0x22')],_0x3f5977);_0x573efa[_0x2a32('0x29')]({'suggestion':_0x38404d,'meta':{'isOwn':_0xef8b3d==_0x38404d[_0x2a32('0x92')],'isNextTo':_0x510b91,'isInsideObject':_0x5f038f,'containsRangeInObject':_0x43554c}});break;}}return _0x573efa;}[_0x2a32('0x9')](_0x261227,_0x49838a,_0x280166,_0x3dc740,_0x2e7b58){this[_0x2a32('0x97')][_0x2a32('0xf7')](_0x10a449=>{let _0x207b49='suggestion:'+_0x261227+':'+_0x49838a+':'+_0x280166;_0x2e7b58&&(_0x207b49=_0x207b49+':'+_0x2e7b58),_0x10a449[_0x2a32('0xbd')](_0x207b49,{'range':_0x3dc740,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2879d6){const _0x4cede0=_0x2879d6[_0x2a32('0xd0')],_0x409277=_0x2879d6[_0x2a32('0xc3')];_0x2879d6[_0x2a32('0xd0')]=null,null!=_0x4cede0&&(_0x4cede0['next']=null),_0x2879d6[_0x2a32('0xc3')]=null,null!=_0x409277&&(_0x409277[_0x2a32('0xd0')]=null),_0x2a32('0xf9')==this[_0x2a32('0x3d')][_0x2a32('0x121')](_0x2879d6)&&(this[_0x2a32('0x3d')][_0x2a32('0xbf')](_0x2879d6,_0x2a32('0x3e')),this[_0x2a32('0x87')](_0x2a32('0x134'),_0x2879d6,_0x4cede0,_0x409277));}[_0x2a32('0x53')](_0x4f0046){const _0x585c59=_0x4f0046['id'],_0x1a8f36=this[_0x2a32('0x4d')](_0x4f0046);if(this[_0x2a32('0x8a')]&&this[_0x2a32('0x8a')]['addSuggestion']){const _0x59640a=this['editor'][_0x2a32('0x31')][_0x2a32('0x121')]('PendingActions'),_0x29088f=_0x1a8f36['hasComments'],_0x5e713c=_0x1a8f36['subType']?_0x1a8f36['type']+':'+_0x1a8f36[_0x2a32('0x113')]:_0x1a8f36[_0x2a32('0x10e')],_0x53f512=this[_0x2a32('0x3b')][_0x2a32('0x125')],_0x395e06=_0x59640a[_0x2a32('0x2e')](_0x4842e8(_0x53f512,'PENDING_ACTION_SUGGESTION')),_0x36de74={'id':_0x585c59,'type':_0x5e713c,'hasComments':_0x29088f,'data':_0x4f0046[_0x2a32('0x10f')]||null,'originalSuggestionId':_0x4f0046['originalSuggestionId']||null,'attributes':_0x1a8f36['attributes']};this['_adapter'][_0x2a32('0x1c')](_0x36de74)[_0x2a32('0x115')](_0x1712cf=>{_0x1a8f36[_0x2a32('0x133')]=!0x0,_0x59640a[_0x2a32('0x5d')](_0x395e06),_0x1712cf&&_0x1712cf[_0x2a32('0xa2')]&&(this[_0x2a32('0x25')][_0x2a32('0x121')](_0x585c59)[_0x2a32('0xa2')]=_0x1712cf[_0x2a32('0xa2')]);})[_0x2a32('0x107')](_0x336e22=>{throw _0x2e9bb2('error-saving-suggestion-data-suggestion-discarded'),this[_0x2a32('0x3b')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1a8f36[_0x2a32('0xc1')]();}),_0x1a8f36[_0x2a32('0x81')](),this[_0x2a32('0x25')]['delete'](_0x1a8f36['id']),this['_suggestionState'][_0x2a32('0xd2')](_0x1a8f36),_0x336e22;});}return _0x1a8f36;}[_0x2a32('0xc6')](_0x1d5d38,_0xebac58){const _0x3b2b71=this[_0x2a32('0x3b')][_0x2a32('0x31')][_0x2a32('0x121')]('PendingActions'),_0x4b4f84=this['getSuggestion'](_0x1d5d38);if(this[_0x2a32('0x8a')]&&this[_0x2a32('0x8a')][_0x2a32('0xdf')]){if(_0x4b4f84[_0x2a32('0x133')]){const _0x345dac=_0x3b2b71['add'](_0x4842e8(this[_0x2a32('0x3b')][_0x2a32('0x125')],'PENDING_ACTION_SUGGESTION'));this[_0x2a32('0x8a')][_0x2a32('0xdf')](_0x1d5d38,_0xebac58)[_0x2a32('0x115')](()=>{_0x3b2b71['remove'](_0x345dac);});}else _0x4b4f84['on'](_0x2a32('0xda'),()=>{this[_0x2a32('0xc6')](_0x1d5d38,_0xebac58);});}}[_0x2a32('0x76')](_0x1bee80){if(!this[_0x2a32('0x8a')]||!this[_0x2a32('0x8a')]['getSuggestion'])throw new _0x5368fe(_0x2a32('0x6d'),this);return this[_0x2a32('0x8a')][_0x2a32('0x9d')](_0x1bee80);}[_0x2a32('0x8b')](_0x2e01f9){const {id:_0x2cba68,type:_0x4c2c7f,subType:_0x39b801,authorId:_0x3a2826}=this[_0x2a32('0x93')](_0x2e01f9),_0x184cdb=this[_0x2a32('0x25')]['get'](_0x2cba68)||this['_createSuggestion'](_0x4c2c7f,_0x39b801,_0x2cba68,_0x3a2826,{});switch(this['_checkSuggestionCorrectness'](_0x184cdb,_0x4c2c7f,_0x39b801,_0x3a2826),this[_0x2a32('0x3d')][_0x2a32('0x121')](_0x184cdb)){case _0x2a32('0xfb'):this[_0x2a32('0x76')](_0x2cba68)[_0x2a32('0x115')](_0xc112ac=>{let _0x339da6=Promise[_0x2a32('0x132')]();_0xc112ac['hasComments']&&(_0x339da6=this[_0x2a32('0x67')][_0x2a32('0xde')]({'channelId':this[_0x2a32('0x3b')][_0x2a32('0xb2')][_0x2a32('0x121')]('collaboration.channelId'),'threadId':_0x2cba68})),_0x339da6[_0x2a32('0x115')](()=>{this['addSuggestionData'](_0xc112ac)[_0x2a32('0x133')]=!0x0;});}),this['_suggestionState']['set'](_0x184cdb,_0x2a32('0xfa'));break;case _0x2a32('0x3e'):this[_0x2a32('0xc6')](_0x2cba68,{'state':_0x2a32('0x21')});case _0x2a32('0x83'):this[_0x2a32('0x3d')]['set'](_0x184cdb,_0x2a32('0xf9')),this[_0x2a32('0x87')](_0x2a32('0xa5'),_0x184cdb);break;case _0x2a32('0xf9'):this[_0x2a32('0x87')](_0x2a32('0x82'),_0x184cdb);}return _0x184cdb[_0x2a32('0x60')](_0x2e01f9),_0x184cdb;}[_0x2a32('0x24')](_0x28e373){const _0x397087=Array[_0x2a32('0x105')](_0x28e373)[_0x2a32('0x57')](_0x4bdf55=>!_0x4bdf55[_0x2a32('0xac')]),_0x14a11f=this[_0x2a32('0x7a')]({'skipNotAttached':!0x0})[_0x2a32('0x57')](_0x1832e8=>!_0x1832e8['isMultiRange']),_0x2e041d=_0x14a11f[_0x2a32('0x57')](_0x101a69=>!_0x28e373[_0x2a32('0xab')](_0x101a69)),_0x4bce31=new Map(_0x14a11f[_0x2a32('0xfe')](_0x19eb30=>[_0x19eb30,this['_suggestionFactory'][_0x2a32('0x12f')](_0x19eb30['type'],_0x19eb30[_0x2a32('0x113')],_0x2a32('0x110'))])),_0x4bd69e=new Map(_0x14a11f[_0x2a32('0xfe')](_0x11abb3=>[_0x11abb3,_0x11abb3[_0x2a32('0x77')]()])),_0x3c36b4=new Set(),_0x44610f=new Set();for(let _0x504d19=0x0;_0x504d19<_0x397087[_0x2a32('0xa')];_0x504d19++)_0x52af12(_0x397087[_0x504d19],_0x397087,_0x504d19+0x1);for(let _0x5900b8=0x0;_0x5900b8<_0x397087[_0x2a32('0xa')];_0x5900b8++)_0x52af12(_0x397087[_0x5900b8],_0x2e041d,0x0);for(let _0x27dcb1=0x0;_0x27dcb1<_0x397087['length'];_0x27dcb1++){const _0x35db0f=_0x397087[_0x27dcb1];!_0x44610f[_0x2a32('0xab')](_0x35db0f)&&_0x35db0f[_0x2a32('0xd0')]&&(_0x35db0f[_0x2a32('0xd0')]['next']===_0x35db0f&&(_0x35db0f[_0x2a32('0xd0')][_0x2a32('0xc3')]=null),_0x35db0f['previous']=null),!_0x3c36b4['has'](_0x35db0f)&&_0x35db0f[_0x2a32('0xc3')]&&(_0x35db0f[_0x2a32('0xc3')][_0x2a32('0xd0')]===_0x35db0f&&(_0x35db0f[_0x2a32('0xc3')][_0x2a32('0xd0')]=null),_0x35db0f[_0x2a32('0xc3')]=null);}function _0x52af12(_0x13afd0,_0x56c5db,_0x16d221){for(let _0x3dfdbb=_0x16d221;_0x3dfdbb<_0x56c5db[_0x2a32('0xa')];_0x3dfdbb++){const _0x10d9f1=_0x3435f2(_0x13afd0,_0x56c5db[_0x3dfdbb]);_0x10d9f1&&(_0x10d9f1[0x0][_0x2a32('0xc3')]=_0x10d9f1[0x1],_0x10d9f1[0x1][_0x2a32('0xd0')]=_0x10d9f1[0x0],_0x3c36b4[_0x2a32('0x2e')](_0x10d9f1[0x0]),_0x44610f[_0x2a32('0x2e')](_0x10d9f1[0x1]));}}function _0x3435f2(_0x4abc01,_0x39099b){if(_0x4abc01[_0x2a32('0x92')]['id']!==_0x39099b[_0x2a32('0x92')]['id'])return null;const _0x4ed443=_0x4bce31['get'](_0x4abc01)(_0x4abc01,_0x39099b,_0x4bd69e['get'](_0x4abc01),_0x4bd69e[_0x2a32('0x121')](_0x39099b));if(!_0x4ed443)return null;return _0x4bce31['get'](_0x39099b)(_0x4abc01,_0x39099b,_0x4bd69e[_0x2a32('0x121')](_0x4abc01),_0x4bd69e['get'](_0x39099b))?_0x4ed443[0x1][_0x2a32('0xb3')]&&_0x4ed443[0x1][_0x2a32('0xb3')]['length']?null:_0x4ed443:null;}}[_0x2a32('0x131')](_0xf9dc12){const _0x587e28=Array['from'](_0xf9dc12),_0x2aa335=this[_0x2a32('0x7a')]({'skipNotAttached':!0x0}),_0x4a0e86=_0x2aa335[_0x2a32('0x57')](_0x331902=>!_0xf9dc12[_0x2a32('0xab')](_0x331902)),_0x5afe2d=new Map(_0x587e28[_0x2a32('0xfe')](_0x4568e2=>[_0x4568e2,this[_0x2a32('0xf4')][_0x2a32('0x12f')](_0x4568e2[_0x2a32('0x10e')],_0x4568e2['subType'],_0x2a32('0x103'))])),_0x4a153c=new Map(_0x2aa335['map'](_0x552627=>[_0x552627,_0x552627[_0x2a32('0x8f')]()]));for(let _0x626830=0x0;_0x626830<_0x587e28[_0x2a32('0xa')];_0x626830++){if(_0x1a6ae7(this,_0x587e28[_0x626830],_0x587e28,_0x626830+0x1))return!0x0;}for(let _0x33f64f=0x0;_0x33f64f<_0x587e28[_0x2a32('0xa')];_0x33f64f++){if(_0x1a6ae7(this,_0x587e28[_0x33f64f],_0x4a0e86,0x0))return!0x0;}return!0x1;function _0x1a6ae7(_0x4c0f53,_0xd8f894,_0x3ce35c,_0x34fb2d){for(let _0x5700cf=_0x34fb2d;_0x5700cf<_0x3ce35c['length'];_0x5700cf++){const _0x574a27=_0x3ce35c[_0x5700cf];if(_0x574a27[_0x2a32('0x10e')]!==_0xd8f894[_0x2a32('0x10e')]||_0x574a27['author']['id']!==_0xd8f894['author']['id']||_0x574a27[_0x2a32('0x113')]!==_0xd8f894['subType'])continue;const _0x198b57=_0x5afe2d['get'](_0xd8f894),_0x279df1=_0x4a153c['get'](_0xd8f894),_0x2f92f7=_0x4a153c['get'](_0x574a27),_0x3b5024=_0xd8f894[_0x2a32('0xb3')]&&_0xd8f894['commentThread'][_0x2a32('0xa')],_0x8154c5=_0x574a27[_0x2a32('0xb3')]&&_0x574a27[_0x2a32('0xb3')][_0x2a32('0xa')];if(!_0x3b5024&&_0x198b57(_0x2f92f7,_0x279df1))return _0x4c0f53[_0x2a32('0x33')](_0x574a27,_0xd8f894),_0x4a153c['delete'](_0xd8f894),!0x0;if(!_0x8154c5&&_0x198b57(_0x279df1,_0x2f92f7))return _0x4c0f53[_0x2a32('0x33')](_0xd8f894,_0x574a27),_0x4a153c[_0x2a32('0xd2')](_0x574a27),!0x0;}return!0x1;}}[_0x2a32('0x33')](_0x49603,_0x1d3d47){if(_0x49603[_0x2a32('0xac')])for(const _0x437a26 of _0x1d3d47[_0x2a32('0x8f')]())_0x49603[_0x2a32('0xd9')](_0x437a26);else{const _0x4884c9=_0x1d3d47[_0x2a32('0x77')]()[_0x2a32('0xb6')];this[_0x2a32('0x95')](_0x49603,this[_0x2a32('0x97')]['createRange'](_0x49603['getFirstRange']()['start'],_0x4884c9));}_0x1d3d47[_0x2a32('0xe7')]();}}class Dt{constructor(_0x4362a4){this[_0x2a32('0x3')]=_0x4362a4,this['_model']=_0x4362a4[_0x2a32('0xc')],this[_0x2a32('0x47')]=new Map(),this[_0x2a32('0xf8')]=new Map(),this['_registerDefaultCallbacks']();}[_0x2a32('0x2b')](_0x314fac,_0x4977bb,_0x33571b,_0x5abaa9,_0x252a46,_0x16b4be){return new _0x115070(this[_0x2a32('0x97')],{'type':_0x314fac,'subType':_0x4977bb,'id':_0x33571b,'author':_0x5abaa9,'creator':_0x5abaa9,'attributes':_0x252a46,'onAttributesChange':_0x16b4be,'onAccept':(..._0xaa1753)=>this[_0x2a32('0x12f')](_0x314fac,_0x4977bb,'accept')(..._0xaa1753),'onDiscard':(..._0x550d5a)=>this[_0x2a32('0x12f')](_0x314fac,_0x4977bb,_0x2a32('0xc1'))(..._0x550d5a)});}[_0x2a32('0x38')](_0x58ccf4,_0x3b51a7,_0x16fbd5,_0x24c866){const _0x51b0e2=_0x58ccf4+':'+_0x3b51a7+':'+_0x16fbd5;this[_0x2a32('0x47')][_0x2a32('0xbf')](_0x51b0e2,_0x24c866);}['getSuggestionCallback'](_0x11778f,_0x5267f1,_0x5e8906){const _0x423343=_0x11778f+':'+_0x5267f1+':'+_0x5e8906;return this[_0x2a32('0x47')][_0x2a32('0x121')](_0x423343)||this[_0x2a32('0xf8')][_0x2a32('0x121')](_0x11778f+':'+_0x5e8906);}[_0x2a32('0x7')](){const _0x401526=()=>{},_0x37c5e4=_0x423548=>{_0x423548[_0x2a32('0x2')]((_0x223a48,_0x29d6a8)=>_0x223a48[_0x2a32('0x22')][_0x2a32('0x72')](_0x29d6a8[_0x2a32('0x22')])?0x1:-0x1),this[_0x2a32('0x97')][_0x2a32('0xf7')](_0x1fcec7=>{for(const _0xaf5a55 of _0x423548){let _0x33492c;_0x33492c=_0xaf5a55[_0x2a32('0xb6')][_0x2a32('0xf3')]&&_0xaf5a55['end']['parent']==_0xaf5a55['start'][_0x2a32('0xcf')]?_0x1fcec7['createSelection'](_0xaf5a55['start'][_0x2a32('0xcf')],'on'):_0x1fcec7[_0x2a32('0xe5')](_0xaf5a55),this['_model']['deleteContent'](_0x33492c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x783220=(_0x2a3820,_0x29e790)=>{this['_model'][_0x2a32('0xf7')](_0xb52b8=>{const {commandName:_0x32cd97,commandParams:_0x3110b2=[]}=_0x29e790,_0x193e29=_0x2a3820[_0x2a32('0xfe')](_0x4317dd=>(_t(_0x4317dd)&&(_0x4317dd=this[_0x2a32('0x97')][_0x2a32('0x10c')](_0x4317dd[_0x2a32('0xb6')])),_0x4317dd))['filter'](_0x4a5b7f=>_0x2a32('0xdd')!==_0x4a5b7f['root'][_0x2a32('0xe9')]);if(_0x193e29['length']<0x1)return;const _0x189275=Array[_0x2a32('0x105')](this[_0x2a32('0x97')][_0x2a32('0xd8')][_0x2a32('0xe6')][_0x2a32('0x8f')]())[_0x2a32('0xfe')](_0x567b59=>_0x5ba02d['fromRange'](_0x567b59));_0xb52b8[_0x2a32('0xf0')](_0x193e29);for(const _0x69289f of this[_0x2a32('0x3')][_0x2a32('0x90')]['commands']())_0x69289f[_0x2a32('0xcc')]();_0x3110b2[_0x2a32('0x29')]({'forceDefaultExecution':!0x0}),this[_0x2a32('0x3')]['execute'](_0x32cd97,..._0x3110b2);const _0x9a4b28=_0x189275[_0x2a32('0x57')](_0x24774e=>_0x2a32('0xdd')!=_0x24774e[_0x2a32('0x12e')]['rootName']);_0x9a4b28[_0x2a32('0xa')]>0x0&&_0xb52b8['setSelection'](_0x9a4b28);for(const _0x2d96d2 of _0x189275)_0x2d96d2[_0x2a32('0x74')]();});},_0x2f33b2=(_0x41157c,_0x5c877b)=>0x1==_0x41157c[_0x2a32('0xa')]&&0x1==_0x5c877b['length']&&_0x41157c[0x0]['end'][_0x2a32('0x96')](_0x5c877b[0x0][_0x2a32('0x22')]),_0x55a8ad=(_0x4795d2,_0x2ce67f,_0x199a68,_0x201708)=>xt(_0x4795d2,_0x2ce67f,_0x199a68,_0x201708,this[_0x2a32('0x97')])?[_0x4795d2,_0x2ce67f]:xt(_0x2ce67f,_0x4795d2,_0x201708,_0x199a68,this[_0x2a32('0x97')])?[_0x2ce67f,_0x4795d2]:null;this[_0x2a32('0xf8')][_0x2a32('0xbf')](_0x2a32('0x89'),_0x401526),this['_defaultCallbacks'][_0x2a32('0xbf')]('insertion:discard',_0x37c5e4),this[_0x2a32('0xf8')][_0x2a32('0xbf')]('insertion:join',_0x2f33b2),this['_defaultCallbacks']['set'](_0x2a32('0xb8'),_0x55a8ad),this[_0x2a32('0xf8')][_0x2a32('0xbf')]('deletion:accept',_0x37c5e4),this[_0x2a32('0xf8')][_0x2a32('0xbf')](_0x2a32('0xee'),_0x401526),this[_0x2a32('0xf8')][_0x2a32('0xbf')](_0x2a32('0x12c'),_0x2f33b2),this['_defaultCallbacks'][_0x2a32('0xbf')]('deletion:chain',_0x55a8ad),this['_defaultCallbacks'][_0x2a32('0xbf')](_0x2a32('0x91'),_0x783220),this[_0x2a32('0xf8')]['set']('formatInline:discard',_0x401526),this[_0x2a32('0xf8')][_0x2a32('0xbf')]('formatInline:join',_0x2f33b2),this['_defaultCallbacks'][_0x2a32('0xbf')]('formatInline:chain',_0x401526),this['_defaultCallbacks'][_0x2a32('0xbf')](_0x2a32('0x101'),_0x783220),this['_defaultCallbacks'][_0x2a32('0xbf')]('formatBlock:discard',_0x401526),this[_0x2a32('0xf8')][_0x2a32('0xbf')](_0x2a32('0x6'),_0x2f33b2),this[_0x2a32('0xf8')][_0x2a32('0xbf')](_0x2a32('0x6b'),_0x401526);}}function Bt(_0x4ddf8c,_0x204fc4,_0x368ea2){for(const _0x157cf6 of _0x204fc4[_0x2a32('0x75')][_0x2a32('0x112')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x157cf6['root']==_0x157cf6)return!0x1;if(!_0x368ea2[_0x2a32('0x114')](_0x157cf6))return!0x1;if(_0x4ddf8c[_0x2a32('0x7d')](_0x157cf6)||_0x4ddf8c[_0x2a32('0x70')](_0x157cf6))return!0x0;}return!0x1;}function _t(_0x3e41d0){return _0x3e41d0[_0x2a32('0xb6')][_0x2a32('0x75')]==_0x3e41d0['start']['nodeAfter']&&_0x3e41d0[_0x2a32('0xb6')][_0x2a32('0x28')];}function Mt(_0x180fa3,_0x6f7ae4,_0x5ca492,_0x43b754){const _0x1421e6=_0x3e39ae=>!_0x3e39ae[_0x2a32('0xaa')]['is'](_0x2a32('0x15'))&&!_0x43b754[_0x2a32('0x7d')](_0x3e39ae[_0x2a32('0xaa')]),_0x14874f=_0x180fa3[_0x2a32('0x22')][_0x2a32('0x130')](_0x1421e6),_0x5b557b=_0x180fa3[_0x2a32('0xb6')][_0x2a32('0x130')](_0x1421e6,{'direction':_0x2a32('0x69')});return(!_0x180fa3[_0x2a32('0x22')][_0x2a32('0x96')](_0x14874f)||!_0x180fa3['end'][_0x2a32('0x96')](_0x5b557b))&&(_0x14874f[_0x2a32('0x72')](_0x5b557b)?_0x5ca492['updateMarker'](_0x6f7ae4,{'range':_0x5ca492[_0x2a32('0x10c')](_0x14874f,_0x5b557b)}):_0x5ca492[_0x2a32('0x5c')](_0x6f7ae4),!0x0);}function $t(_0x3fcc73){return _0x234eab(_0x3fcc73);}function Nt(_0x3fd1ec){const _0x43aec7=_0x3fd1ec['start']['nodeAfter'];return _0x43aec7&&_0x43aec7['is'](_0x2a32('0x129'));}function Rt(_0x533441,_0x69ce3d){const _0x1368fc=_0x69ce3d[_0x2a32('0x12d')][_0x2a32('0x7d')](_0x533441)||_0x69ce3d[_0x2a32('0x12d')][_0x2a32('0x36')](_0x533441);return _0x69ce3d[_0x2a32('0x10c')](_0x69ce3d[_0x2a32('0x1b')](_0x533441,_0x2a32('0xbb')),_0x1368fc?_0x69ce3d[_0x2a32('0x43')](_0x533441):_0x69ce3d[_0x2a32('0x1b')](_0x533441,_0x2a32('0xb6')));}function xt(_0x3e5eef,_0x5968a1,_0x2e8053,_0x25ed90,_0x11cac7){if(_0x2e8053[_0x2a32('0xb6')][_0x2a32('0x96')](_0x25ed90[_0x2a32('0x22')]))return!0x0;if(_0x3e5eef[_0x2a32('0x10e')]!=_0x5968a1[_0x2a32('0x10e')])return!0x1;if(!_0x2e8053[_0x2a32('0xb6')]['isTouching'](_0x25ed90['start']))return!0x1;const _0x58e626=_0x11cac7['createRange'](_0x2e8053[_0x2a32('0xb6')],_0x25ed90[_0x2a32('0x22')])[_0x2a32('0x2a')]();for(const _0x3bde19 of _0x58e626)if([_0x2a32('0xca'),_0x2a32('0xce')]['includes'](_0x3bde19[_0x2a32('0x10e')])&&_0x11cac7[_0x2a32('0x12d')][_0x2a32('0x70')](_0x3bde19[_0x2a32('0xaa')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xefea=['separator','unbind','isInContent','execute','length','getByInnerView','_destroyController','createAnnotationView','_viewToController','trackChanges','size','getDescriptions','CommentsRepository','EditorAnnotations','commands','remove','discardButton','button','discardSelectedSuggestions','type','define','editing','suggestion-','getMarkerNames','Discard\x20all\x20suggestions','filter','change:activeAnnotations','mainView','_bindAnnotationToEditors','listenTo','acceptSelectedSuggestions','some','add','buttonView','set','TrackChangesUI','Discard\x20all\x20selected\x20suggestions','TrackChangesEditing','map','init','suggestionChanged','acceptAllSuggestions','destroy','comments.maxCommentsWhenCollapsed','_initializeController','innerView','comments.editorConfig','descriptionParts','head','commentThread','reduce','config','hasSuggestion','CommentView','has','suggestionLoaded','previous','focus','_disableComments','value','_refreshActiveMarkers','trackChanges.SuggestionThreadView','_updateController','comments','view','arrowView','plugins','bind','componentFactory','keys','_handleSuggestionControllerDelayed','pluginName','model','_descriptionFactory','activeMarkers','Annotations','getSuggestion','isOn','CommentsUI','isDirty','change:previous','SuggestionThreadView','from','addComment','addSourceCollector','editor','_handleControllerBuffer','_suggestionToController','_annotationViews','discardAllSuggestions','acceptButton','trackChanges.disableComments','getAllAdjacentSuggestions','delete','comments.maxCommentCharsWhenCollapsed','get','getFirstRange','getRanges','createCommentThreadController','actionView','isEnabled','switchbutton','push','activeAnnotations','refreshSelectedViews','Accept\x20all\x20selected\x20suggestions','locale','toMany','commandName'];(function(_0x2b159c,_0xefea5e){const _0x5ee5ed=function(_0x337632){while(--_0x337632){_0x2b159c['push'](_0x2b159c['shift']());}};_0x5ee5ed(++_0xefea5e);}(_0xefea,0x119));const _0x5ee5=function(_0x2b159c,_0xefea5e){_0x2b159c=_0x2b159c-0x0;let _0x5ee5ed=_0xefea[_0x2b159c];return _0x5ee5ed;};import{Plugin as _0x4a00b1}from'ckeditor5/src/core';import{Collection as _0xb0859c}from'ckeditor5/src/utils';import{Model as _0x35e809,SplitButtonView as _0x390442,createDropdown as _0x5ecbce,addListToDropdown as _0x38c074}from'ckeditor5/src/ui';import{Users as _0x368dc9,getDateTimeFormatter as _0x5785a0,getAllMarkersDomElementsSorted as _0x444aff}from'ckeditor5-collaboration/src/collaboration-core';import _0xc3ade1 from'./trackchangesediting';import _0x1d5b55 from'./ui/suggestioncontroller';import _0x310e7c from'./ui/view/suggestionthreadview';import{getTranslation as _0x4692cd}from'./utils/common-translations';import _0x4252f4 from'../theme/icons/track-changes.svg';export default class d extends _0x4a00b1{static get['requires'](){return[_0xc3ade1,_0x368dc9,'CommentsRepository',_0x5ee5('0xc'),_0x5ee5('0x3b')];}static get[_0x5ee5('0x8')](){return _0x5ee5('0x51');}constructor(_0x485eae){super(_0x485eae),this[_0x5ee5('0x18')]=new Map(),this[_0x5ee5('0x36')]=new Map(),this['_annotationViews']=new Map(),this[_0x5ee5('0x17')]=new Map();const _0x46af4e=this['editor'][_0x5ee5('0x61')];_0x46af4e[_0x5ee5('0x42')](_0x5ee5('0x6b'),_0x310e7c),_0x46af4e['define'](_0x5ee5('0x1c'),!0x1),this[_0x5ee5('0x68')]=_0x46af4e[_0x5ee5('0x20')]('trackChanges.disableComments');}[_0x5ee5('0x7')](_0x2387d8,_0x505cdb){0x0===this[_0x5ee5('0x17')][_0x5ee5('0x38')]&&setTimeout(()=>{for(const [_0x509ff1,_0x4f3783]of this[_0x5ee5('0x17')]){const _0x864d80=this['_suggestionToController']['has'](_0x509ff1);_0x864d80||_0x4f3783?_0x864d80&&_0x4f3783&&this[_0x5ee5('0x34')](_0x509ff1):this[_0x5ee5('0x5a')](_0x509ff1);}this['editor']['plugins']['get'](_0x5ee5('0x3b'))[_0x5ee5('0x29')](),this[_0x5ee5('0x6a')](),this[_0x5ee5('0x17')]['clear']();},0xa),this[_0x5ee5('0x17')][_0x5ee5('0x50')](_0x2387d8,_0x505cdb);}[_0x5ee5('0x55')](){const _0x4e6f4c=this['editor'],_0x24f54d=_0x4e6f4c['plugins'][_0x5ee5('0x20')]('TrackChangesEditing'),_0x12c695=_0x4e6f4c[_0x5ee5('0x3')]['get']('Annotations'),_0x4a277f=_0x4e6f4c[_0x5ee5('0x3')][_0x5ee5('0x20')]('EditorAnnotations'),_0x45697c=_0x4e6f4c[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x3a'));_0x4e6f4c['ui'][_0x5ee5('0x5')]['add']('trackChanges',_0x13bf5f=>this['_createUIButton'](_0x13bf5f)),_0x4a277f[_0x5ee5('0x15')](()=>{const _0x320c88=[];for(const [_0x3a765b,_0x33ec87]of Array[_0x5ee5('0x13')](this[_0x5ee5('0x18')])){const _0x346b39=_0x3a765b['getAllAdjacentSuggestions'](),_0x4d119e=[];for(const _0x44c8c9 of _0x346b39){if(!_0x44c8c9[_0x5ee5('0x30')])continue;if(_0x44c8c9['isMultiRange']){_0x4d119e[_0x5ee5('0x27')](..._0x44c8c9[_0x5ee5('0x22')]());continue;}const _0xb49f81=_0x44c8c9[_0x5ee5('0x21')]();if(_0x4d119e[_0x5ee5('0x32')]>0x0){const _0x56232c=_0x4d119e[0x0]['getJoined'](_0xb49f81);if(_0x56232c){_0x4d119e[0x0]=_0x56232c;continue;}}_0x4d119e['push'](_0xb49f81);}_0x320c88['push']([_0x33ec87[_0x5ee5('0x1')],_0x4d119e]);}return _0x320c88;}),this[_0x5ee5('0x4b')](_0x24f54d,_0x5ee5('0x65'),(_0x4e63a7,_0x11bf33)=>{this['listenTo'](_0x11bf33,_0x5ee5('0x11'),(_0x48ebb1,_0x35cf12,_0x3e0b83,_0x568eb4)=>{_0x11bf33['isInContent']&&(null==_0x3e0b83?(this['_updateController'](_0x568eb4[_0x5ee5('0x5e')]),this[_0x5ee5('0x7')](_0x11bf33,!0x1)):(this[_0x5ee5('0x6c')](_0x3e0b83[_0x5ee5('0x5e')]),this[_0x5ee5('0x7')](_0x11bf33,!0x0)));}),null===_0x11bf33[_0x5ee5('0x66')]?this[_0x5ee5('0x7')](_0x11bf33,!0x1):this[_0x5ee5('0x6c')](_0x11bf33[_0x5ee5('0x5e')]);}),this[_0x5ee5('0x4b')](_0x24f54d,'suggestionUnloaded',(_0x870f28,_0x27797b,_0x252b71)=>{this['stopListening'](_0x27797b,'change:previous'),this[_0x5ee5('0x17')][_0x5ee5('0x1e')](_0x27797b);const _0x2b4c85=_0x252b71?_0x252b71['head']:_0x27797b,_0x3e5920=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2b4c85);null!==_0x252b71&&this[_0x5ee5('0x6c')](_0x2b4c85),null===_0x252b71&&_0x3e5920&&this[_0x5ee5('0x34')](_0x27797b);}),this[_0x5ee5('0x4b')](_0x24f54d,_0x5ee5('0x56'),(_0x550b72,_0x3423e2)=>{this['_updateController'](_0x3423e2);}),this[_0x5ee5('0x4b')](_0x12c695,_0x5ee5('0x48'),()=>{this[_0x5ee5('0x6a')]();}),this[_0x5ee5('0x4b')](_0x45697c,_0x5ee5('0x14'),(_0x146596,{threadId:_0x46d6c8,isFromAdapter:_0xb08a27})=>{if(_0xb08a27||!_0x24f54d[_0x5ee5('0x62')](_0x46d6c8))return;const _0x2d8dcf=_0x24f54d[_0x5ee5('0xd')](_0x46d6c8);this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2d8dcf)[_0x5ee5('0x1')][_0x5ee5('0x67')]();},{'priority':'lowest'});}[_0x5ee5('0x6a')](){const _0x266067=this[_0x5ee5('0x16')][_0x5ee5('0x3')][_0x5ee5('0x20')]('Annotations'),_0x4ef8e0=this[_0x5ee5('0x16')]['plugins']['get'](_0x5ee5('0x53')),_0x5c0f51=Array['from'](_0x266067[_0x5ee5('0x28')],_0x4f7275=>_0x4f7275[_0x5ee5('0x5b')])[_0x5ee5('0x47')](_0x5344cf=>this[_0x5ee5('0x36')][_0x5ee5('0x64')](_0x5344cf)),_0x39e57c=[];for(const _0x507490 of _0x5c0f51){const _0x3af8f4=this[_0x5ee5('0x36')]['get'](_0x507490)[_0x5ee5('0x9')][_0x5ee5('0x1d')]();_0x39e57c[_0x5ee5('0x27')](..._0x3af8f4[_0x5ee5('0x60')]((_0x4043a9,_0x351244)=>[..._0x4043a9,..._0x351244[_0x5ee5('0x45')]()],[]));}_0x4ef8e0[_0x5ee5('0xb')]=_0x39e57c;}['_createUIButton'](_0x253fd7){const _0x471934=_0x5ecbce(_0x253fd7,_0x390442),_0x17ac0e=this[_0x5ee5('0x16')][_0x5ee5('0x3c')][_0x5ee5('0x20')]('trackChanges'),_0x428eb8=_0x4692cd(_0x253fd7,'Track\x20changes');_0x471934['buttonView']['set']({'tooltip':_0x428eb8,'label':_0x428eb8,'icon':_0x4252f4}),_0x471934[_0x5ee5('0x4f')][_0x5ee5('0x4')](_0x5ee5('0xe'))['to'](_0x17ac0e,_0x5ee5('0x69')),_0x471934[_0x5ee5('0x4f')]['on']('execute',()=>{_0x17ac0e[_0x5ee5('0x31')](),this[_0x5ee5('0x16')][_0x5ee5('0x43')][_0x5ee5('0x1')][_0x5ee5('0x67')]();});const _0x3cc075=new _0xb0859c(),_0x1dfc9b=[{'type':_0x5ee5('0x26'),'model':{'withText':!0x0,'label':_0x428eb8,'commandName':_0x5ee5('0x37')}},{'type':_0x5ee5('0x2e')},{'type':_0x5ee5('0x3f'),'model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,'Accept\x20all\x20suggestions'),'commandName':_0x5ee5('0x57')}},{'type':'button','model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x2a')),'commandName':_0x5ee5('0x4c')}},{'type':'button','model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x46')),'commandName':_0x5ee5('0x1a')}},{'type':_0x5ee5('0x3f'),'model':{'withText':!0x0,'label':_0x4692cd(_0x253fd7,_0x5ee5('0x52')),'commandName':_0x5ee5('0x40')}}];for(const _0x1ee228 of _0x1dfc9b){let _0x2cb19d={'type':_0x5ee5('0x2e')};if(_0x1ee228['model']){const _0x55925a=new _0x35e809(_0x1ee228[_0x5ee5('0x9')]),_0x334427=this['editor'][_0x5ee5('0x3c')][_0x5ee5('0x20')](_0x55925a[_0x5ee5('0x2d')]);_0x55925a[_0x5ee5('0x4')](_0x5ee5('0xe'),_0x5ee5('0x25'))['to'](_0x334427,_0x5ee5('0x69'),_0x5ee5('0x25')),_0x2cb19d={'type':_0x1ee228['type'],'model':_0x55925a};}_0x3cc075[_0x5ee5('0x4e')](_0x2cb19d);}_0x38c074(_0x471934,_0x3cc075);const _0x4dc0f9=_0x1dfc9b[_0x5ee5('0x47')](_0x32077d=>null!=_0x32077d['model'])[_0x5ee5('0x54')](_0x2931f6=>this[_0x5ee5('0x16')][_0x5ee5('0x3c')]['get'](_0x2931f6[_0x5ee5('0x9')]['commandName'])),_0x29e2e9=_0x471934[_0x5ee5('0x4f')];return _0x29e2e9[_0x5ee5('0x24')][_0x5ee5('0x2f')](_0x5ee5('0x25')),_0x29e2e9['arrowView']['unbind'](_0x5ee5('0x25')),_0x29e2e9[_0x5ee5('0x24')][_0x5ee5('0x4')](_0x5ee5('0x25'))['to'](_0x17ac0e,_0x5ee5('0x25')),_0x29e2e9[_0x5ee5('0x2')][_0x5ee5('0x4')](_0x5ee5('0x25'))[_0x5ee5('0x2c')](_0x4dc0f9,_0x5ee5('0x25'),(..._0x3570a4)=>_0x3570a4[_0x5ee5('0x4d')](_0x3c5022=>_0x3c5022)),_0x471934['on']('execute',_0x68c00a=>{this[_0x5ee5('0x16')][_0x5ee5('0x31')](_0x68c00a['source']['commandName']),this[_0x5ee5('0x16')]['editing'][_0x5ee5('0x1')][_0x5ee5('0x67')]();}),_0x471934;}[_0x5ee5('0x5a')](_0x4edd9d){const _0xee818d=this['editor'],_0x334d01=_0xee818d[_0x5ee5('0x61')],_0x5d5a4e=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xc')),_0xf0eec9=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x3a')),_0x264889=_0xee818d['plugins']['get'](_0x5ee5('0x3b')),_0x27cbb8=_0xee818d[_0x5ee5('0x3')]['get'](_0x368dc9)['me'],_0x22b969=_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x37'))[_0x5ee5('0x12')],{CommentsListView:_0x505f6a,CommentThreadInputView:_0x296bbb}=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xf'));let _0x188b11,_0x16a607;this['_annotationViews'][_0x5ee5('0x64')](_0x4edd9d['id'])?(_0x16a607=this[_0x5ee5('0x19')][_0x5ee5('0x20')](_0x4edd9d['id']),_0x188b11=_0x16a607[_0x5ee5('0x49')]):(_0x188b11=new _0x22b969(_0xee818d['locale'],_0x4edd9d,_0x27cbb8,{'disableComments':this[_0x5ee5('0x68')],'editorConfig':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x5c')),'maxCommentsWhenCollapsed':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x59')),'maxThreadTotalWeight':_0x334d01[_0x5ee5('0x20')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x1f')),'formatDateTime':_0x5785a0(_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x2b'))),'CommentView':_0x334d01[_0x5ee5('0x20')](_0x5ee5('0x0'))[_0x5ee5('0x63')],'CommentsListView':_0x505f6a,'CommentThreadInputView':_0x296bbb}),_0x188b11[_0x5ee5('0x1b')]['on'](_0x5ee5('0x31'),()=>{_0xee818d[_0x5ee5('0x43')]['view'][_0x5ee5('0x67')]();}),_0x188b11[_0x5ee5('0x3e')]['on']('execute',()=>{_0xee818d[_0x5ee5('0x43')]['view'][_0x5ee5('0x67')]();}),_0x16a607=_0x5d5a4e[_0x5ee5('0x35')](this['editor'][_0x5ee5('0x2b')],_0x188b11),_0x16a607['bind'](_0x5ee5('0x10'))['to'](_0x188b11,_0x5ee5('0x10')),_0x16a607[_0x5ee5('0x4')](_0x5ee5('0x32'))['to'](_0x188b11),_0x16a607[_0x5ee5('0x4')](_0x5ee5('0x41'))['to'](_0x188b11,_0x5ee5('0x41'),_0x2dc0aa=>'suggestion-'+_0x2dc0aa),this[_0x5ee5('0x19')][_0x5ee5('0x50')](_0x4edd9d['id'],_0x16a607));const _0x37e70f=_0xf0eec9[_0x5ee5('0x23')](_0x4edd9d[_0x5ee5('0x5f')],_0x188b11),_0x58f1a6=new _0x1d5b55(_0xee818d,_0x4edd9d,_0x188b11,_0x37e70f),_0x355140=_0x4edd9d[_0x5ee5('0x1d')]()[_0x5ee5('0x47')](_0x472375=>_0x472375[_0x5ee5('0x30')]);_0x188b11['descriptionParts']=_0xee818d[_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x53'))[_0x5ee5('0xa')]['getDescriptions'](_0x355140),this[_0x5ee5('0x18')][_0x5ee5('0x50')](_0x4edd9d,_0x58f1a6),this[_0x5ee5('0x36')][_0x5ee5('0x50')](_0x188b11,_0x58f1a6);const _0x53bdd4=_0x5d5a4e['createAnnotation']({'view':_0x16a607,'target':()=>{const _0x2adbb8=[],_0x310a92=_0x4edd9d[_0x5ee5('0x1d')]()[_0x5ee5('0x47')](_0x593142=>_0x593142[_0x5ee5('0x30')]);for(const _0x3b53a2 of _0x310a92)_0x2adbb8[_0x5ee5('0x27')](..._0x3b53a2['getMarkers']());return _0x444aff(_0xee818d['editing'],_0x2adbb8);},'type':()=>_0x5ee5('0x44')+_0x58f1a6[_0x5ee5('0x1')][_0x5ee5('0x41')]});_0xf0eec9[_0x5ee5('0x4a')](_0x188b11,_0x53bdd4),_0x5d5a4e[_0x5ee5('0x4e')](_0x53bdd4),_0x264889['registerAnnotation'](_0x53bdd4);}[_0x5ee5('0x34')](_0x2c1523){const _0x5630b4=this['editor'][_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0xc')),_0x535214=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x2c1523),_0x529396=_0x535214['view'],_0x5499a7=_0x5630b4[_0x5ee5('0x33')](_0x529396);_0x5499a7&&_0x5630b4[_0x5ee5('0x3d')](_0x5499a7),this[_0x5ee5('0x18')]['delete'](_0x2c1523),this[_0x5ee5('0x36')][_0x5ee5('0x1e')](_0x529396),_0x535214[_0x5ee5('0x58')]();}[_0x5ee5('0x6c')](_0x148a38){if(!_0x148a38[_0x5ee5('0x30')]||!this[_0x5ee5('0x18')][_0x5ee5('0x64')](_0x148a38))return;const _0x4f4e70=this[_0x5ee5('0x16')][_0x5ee5('0x3')][_0x5ee5('0x20')](_0x5ee5('0x53')),_0x2037b4=this[_0x5ee5('0x18')][_0x5ee5('0x20')](_0x148a38),_0x2aca1b=_0x148a38['getAllAdjacentSuggestions']();_0x2037b4[_0x5ee5('0x1')][_0x5ee5('0x5d')]=_0x4f4e70[_0x5ee5('0xa')][_0x5ee5('0x39')](_0x2aca1b);}[_0x5ee5('0x58')](){for(const _0x103b51 of this['_suggestionToController'][_0x5ee5('0x6')]())this[_0x5ee5('0x34')](_0x103b51);for(const _0x40a70a of this[_0x5ee5('0x19')]['values']())_0x40a70a[_0x5ee5('0x49')][_0x5ee5('0x58')]();super[_0x5ee5('0x58')]();}}
|
|
23
|
+
const _0x3960=['activeMarkers','filter','Annotations','locale','pluginName','switchbutton','TrackChangesUI','suggestion-','acceptSelectedSuggestions','reduce','_createUIButton','commands','comments','isEnabled','createAnnotation','isDirty','commandName','Discard\x20all\x20suggestions','refreshSelectedViews','remove','delete','lowest','value','arrowView','set','getDescriptions','_handleSuggestionControllerDelayed','editing','_disableComments','activeAnnotations','length','getAllAdjacentSuggestions','model','addComment','isMultiRange','_bindAnnotationToEditors','SuggestionThreadView','destroy','_initializeController','discardAllSuggestions','view','CommentsUI','_suggestionToController','define','add','Discard\x20all\x20selected\x20suggestions','isInContent','descriptionParts','separator','acceptAllSuggestions','source','plugins','_destroyController','CommentView','suggestionChanged','actionView','comments.maxThreadTotalWeight','registerAnnotation','has','execute','unbind','_updateController','button','isOn','change:activeAnnotations','map','size','listenTo','get','_handleControllerBuffer','createCommentThreadController','comments.editorConfig','type','focus','editor','_viewToController','trackChanges.SuggestionThreadView','createAnnotationView','values','hasSuggestion','getFirstRange','push','config','change:previous','innerView','_annotationViews','Accept\x20all\x20suggestions','mainView','comments.maxCommentsWhenCollapsed','buttonView','trackChanges.disableComments','previous','Accept\x20all\x20selected\x20suggestions','CommentsRepository','some','trackChanges','init','_refreshActiveMarkers','bind','clear','head','requires','EditorAnnotations','TrackChangesEditing'];(function(_0x45ae91,_0x396012){const _0x1582ea=function(_0x4d62a2){while(--_0x4d62a2){_0x45ae91['push'](_0x45ae91['shift']());}};_0x1582ea(++_0x396012);}(_0x3960,0x188));const _0x1582=function(_0x45ae91,_0x396012){_0x45ae91=_0x45ae91-0x0;let _0x1582ea=_0x3960[_0x45ae91];return _0x1582ea;};import{Plugin as _0x51493f}from'ckeditor5/src/core';import{Collection as _0x42bff6}from'ckeditor5/src/utils';import{Model as _0x4e287f,SplitButtonView as _0x5433e9,createDropdown as _0x2bde0f,addListToDropdown as _0x30e453}from'ckeditor5/src/ui';import{Users as _0x2f4eb4,getDateTimeFormatter as _0x35ece5,getAllMarkersDomElementsSorted as _0x360589}from'ckeditor5-collaboration/src/collaboration-core';import _0x10a4bf from'./trackchangesediting';import _0x33334d from'./ui/suggestioncontroller';import _0x31d097 from'./ui/view/suggestionthreadview';import{getTranslation as _0x5f3121}from'./utils/common-translations';import _0x1ca586 from'../theme/icons/track-changes.svg';export default class d extends _0x51493f{static get[_0x1582('0x15')](){return[_0x10a4bf,_0x2f4eb4,_0x1582('0xd'),_0x1582('0x1a'),_0x1582('0x16')];}static get[_0x1582('0x1c')](){return _0x1582('0x1e');}constructor(_0x5d6a8f){super(_0x5d6a8f),this[_0x1582('0x42')]=new Map(),this[_0x1582('0x63')]=new Map(),this[_0x1582('0x5')]=new Map(),this[_0x1582('0x5d')]=new Map();const _0x3d6b75=this[_0x1582('0x62')][_0x1582('0x2')];_0x3d6b75[_0x1582('0x43')](_0x1582('0x64'),_0x31d097),_0x3d6b75['define'](_0x1582('0xa'),!0x1),this['_disableComments']=_0x3d6b75[_0x1582('0x5c')]('trackChanges.disableComments');}[_0x1582('0x32')](_0x357f23,_0x5a47b1){0x0===this[_0x1582('0x5d')][_0x1582('0x5a')]&&setTimeout(()=>{for(const [_0x35c234,_0x34c164]of this[_0x1582('0x5d')]){const _0x49af00=this[_0x1582('0x42')][_0x1582('0x52')](_0x35c234);_0x49af00||_0x34c164?_0x49af00&&_0x34c164&&this['_destroyController'](_0x35c234):this[_0x1582('0x3e')](_0x35c234);}this['editor'][_0x1582('0x4b')][_0x1582('0x5c')](_0x1582('0x16'))[_0x1582('0x2a')](),this[_0x1582('0x11')](),this[_0x1582('0x5d')][_0x1582('0x13')]();},0xa),this[_0x1582('0x5d')][_0x1582('0x30')](_0x357f23,_0x5a47b1);}[_0x1582('0x10')](){const _0x43d8d8=this[_0x1582('0x62')],_0x1b5456=_0x43d8d8['plugins'][_0x1582('0x5c')](_0x1582('0x17')),_0x3b857c=_0x43d8d8[_0x1582('0x4b')][_0x1582('0x5c')]('Annotations'),_0x5bc30b=_0x43d8d8['plugins'][_0x1582('0x5c')]('EditorAnnotations'),_0x418306=_0x43d8d8[_0x1582('0x4b')][_0x1582('0x5c')]('CommentsRepository');_0x43d8d8['ui']['componentFactory'][_0x1582('0x44')](_0x1582('0xf'),_0x2dba45=>this[_0x1582('0x22')](_0x2dba45)),_0x5bc30b['addSourceCollector'](()=>{const _0x2c0797=[];for(const [_0x3d5b77,_0xe60ac4]of Array['from'](this[_0x1582('0x42')])){const _0x2936ac=_0x3d5b77[_0x1582('0x37')](),_0x27b5c8=[];for(const _0x7840c7 of _0x2936ac){if(!_0x7840c7[_0x1582('0x46')])continue;if(_0x7840c7[_0x1582('0x3a')]){_0x27b5c8['push'](..._0x7840c7['getRanges']());continue;}const _0x2702f4=_0x7840c7[_0x1582('0x0')]();if(_0x27b5c8[_0x1582('0x36')]>0x0){const _0x52d1a1=_0x27b5c8[0x0]['getJoined'](_0x2702f4);if(_0x52d1a1){_0x27b5c8[0x0]=_0x52d1a1;continue;}}_0x27b5c8[_0x1582('0x1')](_0x2702f4);}_0x2c0797[_0x1582('0x1')]([_0xe60ac4[_0x1582('0x40')],_0x27b5c8]);}return _0x2c0797;}),this[_0x1582('0x5b')](_0x1b5456,'suggestionLoaded',(_0x1a7808,_0x58dbe0)=>{this['listenTo'](_0x58dbe0,_0x1582('0x3'),(_0x5945e9,_0x356573,_0x27ce0e,_0x5db3c7)=>{_0x58dbe0[_0x1582('0x46')]&&(null==_0x27ce0e?(this[_0x1582('0x55')](_0x5db3c7[_0x1582('0x14')]),this[_0x1582('0x32')](_0x58dbe0,!0x1)):(this['_updateController'](_0x27ce0e[_0x1582('0x14')]),this['_handleSuggestionControllerDelayed'](_0x58dbe0,!0x0)));}),null===_0x58dbe0[_0x1582('0xb')]?this[_0x1582('0x32')](_0x58dbe0,!0x1):this[_0x1582('0x55')](_0x58dbe0[_0x1582('0x14')]);}),this['listenTo'](_0x1b5456,'suggestionUnloaded',(_0x3c5fe9,_0x36f304,_0x301f75)=>{this['stopListening'](_0x36f304,'change:previous'),this['_handleControllerBuffer']['delete'](_0x36f304);const _0x52dd58=_0x301f75?_0x301f75[_0x1582('0x14')]:_0x36f304,_0x112c5c=this['_suggestionToController']['get'](_0x52dd58);null!==_0x301f75&&this[_0x1582('0x55')](_0x52dd58),null===_0x301f75&&_0x112c5c&&this['_destroyController'](_0x36f304);}),this[_0x1582('0x5b')](_0x1b5456,_0x1582('0x4e'),(_0x2cfab9,_0x2ba224)=>{this[_0x1582('0x55')](_0x2ba224);}),this['listenTo'](_0x3b857c,_0x1582('0x58'),()=>{this[_0x1582('0x11')]();}),this[_0x1582('0x5b')](_0x418306,_0x1582('0x39'),(_0x477343,{threadId:_0x31fd94,isFromAdapter:_0x4d5bfd})=>{if(_0x4d5bfd||!_0x1b5456[_0x1582('0x67')](_0x31fd94))return;const _0x59e4fa=_0x1b5456['getSuggestion'](_0x31fd94);this['_suggestionToController'][_0x1582('0x5c')](_0x59e4fa)['view'][_0x1582('0x61')]();},{'priority':_0x1582('0x2d')});}[_0x1582('0x11')](){const _0x20a9e0=this[_0x1582('0x62')]['plugins'][_0x1582('0x5c')](_0x1582('0x1a')),_0x504a7a=this[_0x1582('0x62')]['plugins']['get'](_0x1582('0x17')),_0x5e939e=Array['from'](_0x20a9e0[_0x1582('0x35')],_0x17a0ec=>_0x17a0ec[_0x1582('0x4')])[_0x1582('0x19')](_0x39d5fd=>this[_0x1582('0x63')][_0x1582('0x52')](_0x39d5fd)),_0x379010=[];for(const _0x4887a9 of _0x5e939e){const _0x55cdcb=this[_0x1582('0x63')]['get'](_0x4887a9)[_0x1582('0x38')][_0x1582('0x37')]();_0x379010[_0x1582('0x1')](..._0x55cdcb[_0x1582('0x21')]((_0x280e75,_0x4d5f97)=>[..._0x280e75,..._0x4d5f97['getMarkerNames']()],[]));}_0x504a7a[_0x1582('0x18')]=_0x379010;}[_0x1582('0x22')](_0x16e485){const _0x6afeea=_0x2bde0f(_0x16e485,_0x5433e9),_0x20ea0b=this[_0x1582('0x62')][_0x1582('0x23')][_0x1582('0x5c')]('trackChanges'),_0x4f521f=_0x5f3121(_0x16e485,'Track\x20changes');_0x6afeea[_0x1582('0x9')]['set']({'tooltip':_0x4f521f,'label':_0x4f521f,'icon':_0x1ca586}),_0x6afeea[_0x1582('0x9')][_0x1582('0x12')](_0x1582('0x57'))['to'](_0x20ea0b,'value'),_0x6afeea[_0x1582('0x9')]['on'](_0x1582('0x53'),()=>{_0x20ea0b[_0x1582('0x53')](),this['editor'][_0x1582('0x33')][_0x1582('0x40')][_0x1582('0x61')]();});const _0x13dc46=new _0x42bff6(),_0x2f3229=[{'type':_0x1582('0x1d'),'model':{'withText':!0x0,'label':_0x4f521f,'commandName':_0x1582('0xf')}},{'type':_0x1582('0x48')},{'type':_0x1582('0x56'),'model':{'withText':!0x0,'label':_0x5f3121(_0x16e485,_0x1582('0x6')),'commandName':_0x1582('0x49')}},{'type':_0x1582('0x56'),'model':{'withText':!0x0,'label':_0x5f3121(_0x16e485,_0x1582('0xc')),'commandName':_0x1582('0x20')}},{'type':_0x1582('0x56'),'model':{'withText':!0x0,'label':_0x5f3121(_0x16e485,_0x1582('0x29')),'commandName':_0x1582('0x3f')}},{'type':_0x1582('0x56'),'model':{'withText':!0x0,'label':_0x5f3121(_0x16e485,_0x1582('0x45')),'commandName':'discardSelectedSuggestions'}}];for(const _0xe0fea3 of _0x2f3229){let _0x547717={'type':_0x1582('0x48')};if(_0xe0fea3[_0x1582('0x38')]){const _0x4a5f36=new _0x4e287f(_0xe0fea3[_0x1582('0x38')]),_0x1183cc=this[_0x1582('0x62')][_0x1582('0x23')][_0x1582('0x5c')](_0x4a5f36[_0x1582('0x28')]);_0x4a5f36[_0x1582('0x12')](_0x1582('0x57'),'isEnabled')['to'](_0x1183cc,_0x1582('0x2e'),_0x1582('0x25')),_0x547717={'type':_0xe0fea3[_0x1582('0x60')],'model':_0x4a5f36};}_0x13dc46[_0x1582('0x44')](_0x547717);}_0x30e453(_0x6afeea,_0x13dc46);const _0xfe291d=_0x2f3229['filter'](_0x18dcda=>null!=_0x18dcda[_0x1582('0x38')])[_0x1582('0x59')](_0x34fb01=>this['editor']['commands'][_0x1582('0x5c')](_0x34fb01[_0x1582('0x38')]['commandName'])),_0x1811c7=_0x6afeea[_0x1582('0x9')];return _0x1811c7[_0x1582('0x4f')][_0x1582('0x54')]('isEnabled'),_0x1811c7[_0x1582('0x2f')]['unbind'](_0x1582('0x25')),_0x1811c7['actionView'][_0x1582('0x12')]('isEnabled')['to'](_0x20ea0b,_0x1582('0x25')),_0x1811c7[_0x1582('0x2f')][_0x1582('0x12')](_0x1582('0x25'))['toMany'](_0xfe291d,_0x1582('0x25'),(..._0xc08020)=>_0xc08020[_0x1582('0xe')](_0x62a1e0=>_0x62a1e0)),_0x6afeea['on'](_0x1582('0x53'),_0x2a2e2b=>{this[_0x1582('0x62')]['execute'](_0x2a2e2b[_0x1582('0x4a')][_0x1582('0x28')]),this['editor'][_0x1582('0x33')][_0x1582('0x40')][_0x1582('0x61')]();}),_0x6afeea;}[_0x1582('0x3e')](_0x2a2346){const _0x505562=this[_0x1582('0x62')],_0x2e2731=_0x505562[_0x1582('0x2')],_0x435217=_0x505562[_0x1582('0x4b')][_0x1582('0x5c')](_0x1582('0x1a')),_0x515045=_0x505562[_0x1582('0x4b')][_0x1582('0x5c')](_0x1582('0xd')),_0x1099b9=_0x505562['plugins'][_0x1582('0x5c')]('EditorAnnotations'),_0xe902c2=_0x505562['plugins'][_0x1582('0x5c')](_0x2f4eb4)['me'],_0x4de296=_0x2e2731[_0x1582('0x5c')]('trackChanges')[_0x1582('0x3c')],{CommentsListView:_0x11a717,CommentThreadInputView:_0x4ed63c}=_0x505562[_0x1582('0x4b')][_0x1582('0x5c')](_0x1582('0x41'));let _0x315ceb,_0x57337d;this[_0x1582('0x5')][_0x1582('0x52')](_0x2a2346['id'])?(_0x57337d=this[_0x1582('0x5')][_0x1582('0x5c')](_0x2a2346['id']),_0x315ceb=_0x57337d['mainView']):(_0x315ceb=new _0x4de296(_0x505562[_0x1582('0x1b')],_0x2a2346,_0xe902c2,{'disableComments':this[_0x1582('0x34')],'editorConfig':_0x2e2731['get'](_0x1582('0x5f')),'maxCommentsWhenCollapsed':_0x2e2731[_0x1582('0x5c')](_0x1582('0x8')),'maxThreadTotalWeight':_0x2e2731['get'](_0x1582('0x50')),'maxCommentCharsWhenCollapsed':_0x2e2731[_0x1582('0x5c')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x35ece5(_0x2e2731[_0x1582('0x5c')](_0x1582('0x1b'))),'CommentView':_0x2e2731[_0x1582('0x5c')](_0x1582('0x24'))[_0x1582('0x4d')],'CommentsListView':_0x11a717,'CommentThreadInputView':_0x4ed63c}),_0x315ceb['acceptButton']['on'](_0x1582('0x53'),()=>{_0x505562['editing'][_0x1582('0x40')][_0x1582('0x61')]();}),_0x315ceb['discardButton']['on'](_0x1582('0x53'),()=>{_0x505562[_0x1582('0x33')][_0x1582('0x40')][_0x1582('0x61')]();}),_0x57337d=_0x435217[_0x1582('0x65')](this['editor'][_0x1582('0x1b')],_0x315ceb),_0x57337d['bind']('isDirty')['to'](_0x315ceb,_0x1582('0x27')),_0x57337d[_0x1582('0x12')]('length')['to'](_0x315ceb),_0x57337d['bind'](_0x1582('0x60'))['to'](_0x315ceb,_0x1582('0x60'),_0x4f821d=>_0x1582('0x1f')+_0x4f821d),this[_0x1582('0x5')]['set'](_0x2a2346['id'],_0x57337d));const _0x1edcbe=_0x515045[_0x1582('0x5e')](_0x2a2346['commentThread'],_0x315ceb),_0x284028=new _0x33334d(_0x505562,_0x2a2346,_0x315ceb,_0x1edcbe),_0x73c43f=_0x2a2346['getAllAdjacentSuggestions']()['filter'](_0x22c4e5=>_0x22c4e5['isInContent']);_0x315ceb[_0x1582('0x47')]=_0x505562[_0x1582('0x4b')]['get'](_0x1582('0x17'))['_descriptionFactory'][_0x1582('0x31')](_0x73c43f),this[_0x1582('0x42')]['set'](_0x2a2346,_0x284028),this[_0x1582('0x63')]['set'](_0x315ceb,_0x284028);const _0x8dbfb9=_0x435217[_0x1582('0x26')]({'view':_0x57337d,'target':()=>{const _0xab21c0=[],_0x21888b=_0x2a2346[_0x1582('0x37')]()[_0x1582('0x19')](_0x4aa310=>_0x4aa310[_0x1582('0x46')]);for(const _0x34d175 of _0x21888b)_0xab21c0['push'](..._0x34d175['getMarkers']());return _0x360589(_0x505562[_0x1582('0x33')],_0xab21c0);},'type':()=>_0x1582('0x1f')+_0x284028['view'][_0x1582('0x60')]});_0x515045[_0x1582('0x3b')](_0x315ceb,_0x8dbfb9),_0x435217[_0x1582('0x44')](_0x8dbfb9),_0x1099b9[_0x1582('0x51')](_0x8dbfb9);}[_0x1582('0x4c')](_0x2d978a){const _0x216758=this[_0x1582('0x62')]['plugins'][_0x1582('0x5c')]('Annotations'),_0x41482e=this[_0x1582('0x42')]['get'](_0x2d978a),_0x3dca00=_0x41482e[_0x1582('0x40')],_0x5b8ad0=_0x216758['getByInnerView'](_0x3dca00);_0x5b8ad0&&_0x216758[_0x1582('0x2b')](_0x5b8ad0),this[_0x1582('0x42')][_0x1582('0x2c')](_0x2d978a),this[_0x1582('0x63')][_0x1582('0x2c')](_0x3dca00),_0x41482e['destroy']();}['_updateController'](_0x4ea2e7){if(!_0x4ea2e7[_0x1582('0x46')]||!this['_suggestionToController'][_0x1582('0x52')](_0x4ea2e7))return;const _0x16d9be=this['editor'][_0x1582('0x4b')][_0x1582('0x5c')](_0x1582('0x17')),_0x5cdece=this[_0x1582('0x42')][_0x1582('0x5c')](_0x4ea2e7),_0x45d8fb=_0x4ea2e7['getAllAdjacentSuggestions']();_0x5cdece[_0x1582('0x40')]['descriptionParts']=_0x16d9be['_descriptionFactory'][_0x1582('0x31')](_0x45d8fb);}[_0x1582('0x3d')](){for(const _0x1b8a91 of this[_0x1582('0x42')]['keys']())this[_0x1582('0x4c')](_0x1b8a91);for(const _0x3889a5 of this[_0x1582('0x5')][_0x1582('0x66')]())_0x3889a5[_0x1582('0x7')][_0x1582('0x3d')]();super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1428=['_pendingAction','execute','plugins','view','getRanges','commands','canEditAt','unbind','listenTo','locale','add','destroy','isDirty','remove','discardSuggestion','canAccept','get','commentThreadController','bind','stopListening','_setPendingAction','_discardCommand','_acceptCommand','isEnabled','_editor','PendingActions','acceptSuggestion','change:isDirty','model','_removePendingAction'];(function(_0x58c12e,_0x1428a0){const _0xe51742=function(_0x54e18e){while(--_0x54e18e){_0x58c12e['push'](_0x58c12e['shift']());}};_0xe51742(++_0x1428a0);}(_0x1428,0x1d9));const _0xe517=function(_0x58c12e,_0x1428a0){_0x58c12e=_0x58c12e-0x0;let _0xe51742=_0x1428[_0x58c12e];return _0xe51742;};import{ObservableMixin as _0x2d0cfb}from'ckeditor5/src/utils';import{getTranslation as _0x3ed540}from'../utils/common-translations';export default class qt extends _0x2d0cfb(){constructor(_0x26b9f2,_0x8fbd8,_0x3b1b9b,_0x100709){super(),this['model']=_0x8fbd8,this[_0xe517('0xa')]=_0x3b1b9b,this[_0xe517('0x18')]=_0x100709,this[_0xe517('0x1')]=_0x26b9f2,this['_acceptCommand']=_0x26b9f2[_0xe517('0xc')][_0xe517('0x17')](_0xe517('0x3')),this['_discardCommand']=_0x26b9f2['commands'][_0xe517('0x17')](_0xe517('0x15')),this[_0xe517('0xa')][_0xe517('0x19')](_0xe517('0x0'))['to'](this['_acceptCommand'],this[_0xe517('0x1c')],(_0x438d8c,_0x238546)=>_0x438d8c||_0x238546),this[_0xe517('0xa')][_0xe517('0x19')]('canAccept')['to'](this[_0xe517('0x1d')],_0xe517('0x0'),_0x345eae=>_0x345eae&&this[_0xe517('0x1')][_0xe517('0x5')][_0xe517('0xd')](_0x8fbd8[_0xe517('0xb')]())),this[_0xe517('0xa')][_0xe517('0x19')]('canDiscard')['to'](this[_0xe517('0x1c')],_0xe517('0x0'),_0x39d9e3=>_0x39d9e3&&this[_0xe517('0x1')][_0xe517('0x5')]['canEditAt'](_0x8fbd8[_0xe517('0xb')]())),this[_0xe517('0x7')]=null,_0x3b1b9b[_0xe517('0x13')]&&this[_0xe517('0x1b')](),this[_0xe517('0xf')](_0x3b1b9b,'acceptSuggestion',()=>this[_0xe517('0x3')]()),this[_0xe517('0xf')](_0x3b1b9b,_0xe517('0x15'),()=>this[_0xe517('0x15')]()),this['listenTo'](_0x3b1b9b,_0xe517('0x4'),()=>{_0x3b1b9b[_0xe517('0x13')]?this[_0xe517('0x1b')]():this['_removePendingAction']();});}[_0xe517('0x3')](){this['_acceptCommand'][_0xe517('0x8')](this[_0xe517('0x5')]['id']);}[_0xe517('0x15')](){this[_0xe517('0x1c')]['execute'](this[_0xe517('0x5')]['id']);}[_0xe517('0x12')](){this[_0xe517('0xa')]['unbind'](_0xe517('0x0')),this['view'][_0xe517('0xe')](_0xe517('0x16')),this['view'][_0xe517('0xe')]('canDiscard'),this[_0xe517('0x1a')](),this[_0xe517('0x18')][_0xe517('0x12')](),this[_0xe517('0x7')]&&this[_0xe517('0x6')]();}['_setPendingAction'](){const _0x35a326=_0x3ed540(this[_0xe517('0x1')][_0xe517('0x10')],'PENDING_ACTION_SUGGESTION');this[_0xe517('0x7')]=this[_0xe517('0x1')][_0xe517('0x9')][_0xe517('0x17')](_0xe517('0x2'))[_0xe517('0x11')](_0x35a326);}[_0xe517('0x6')](){null!==this[_0xe517('0x7')]&&this['_editor'][_0xe517('0x9')][_0xe517('0x17')](_0xe517('0x2'))[_0xe517('0x14')](this[_0xe517('0x7')]),this[_0xe517('0x7')]=null;}}
|