@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231030.0 → 0.0.0-nightly-20231101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.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 _0x45a7=['every','consume','_addThreadToSuggestion','_breakSuggestionMarker','isAtEnd','acceptSelectedSuggestions','authorName','type','isArray','setAttribute','isExternal','getLastMatchingPosition','editingDowncast','external:','isMultiRange','_createSuggestion','consumable','buildSuggestion','fromRange','track-changes-suggestion-not-found','PENDING_ACTION_SUGGESTION','element','set','assign','setSelection','createdAt','splice','root','suggestionLoaded','open','then','dataReady','unbindElementFromMarkerName','getChangedMarkers','isInContent','$graveyard','nodeBefore','enableReadOnlyMode','createPositionAt','substr','ck-suggestion-marker--active','creator','containerElement','markBlockFormat','filter','_editor','addCommentThread','_trackFormatChanges','getFirstMarker','createRangeIn','after','getSuggestionCallback','howMany','values','define','editing','discardSuggestion','lowest','oldRange','getSuggestion','insertion:accept','range','toViewElement','_suggestionFactory','_suggestionState','insert','createElement','formatBlock:','skipNestingCheck','commands','markerName','getAncestors','formatBlock:join','from','attributes','isIntersectingWithRange','_onDiscard','marker-count','some','removeAttribute','markInlineFormat','removeClass','model','get','toJSON','originalSuggestionId','CommentsRepository','trackChangesCommand','has','start','resolve','isSelectable','applyOperation','updateMarker','isBlock','includes','always','backward','formatBlock','registerPostFixer','getSuggestions','getRange','getWalker','getAllAdjacentSuggestions','insertion:','listenTo','trackChanges.trackFormatChanges','$marker','value','parent','unbind','_isForcedDefaultExecutionBlock','normal','addSuggestionData','low','_splitMarkerName','editor','removeMarkers','adapter','elementEnd','createPositionAfter','_findSuggestions','_enabledCommands','getAttribute','hasSuggestion','commandName','plugins','addRange','reconvertMarker','markerNameToElements','_setSuggestionData','getCommentThread','accept','markInsertion','showSuggestionHighlights','addUser','formatInline','data','PendingActions','@external','createSelection','_rangeIsInLocalUserInsertion','_setSuggestionRange','markMultiRangeInsertion','rethrowUnexpectedError','addHighlight','multipleBlocks','_mergeNestedSuggestions','targetPosition','mapper','move','clear','suggestion-type','rejected','item','suggestionUnloaded','track-changes-adapter-missing-getsuggestion','suggestion:','isEqual','isOwn','formatGroupId','init','batch','tablePasteChainId','deletion:','change:data','_commentsRepository','collaboration.channelId','delete','addSuggestion','requires','nodeAfter','clone','_adapter','updateSuggestion','rootName','getMultiRangeId','_getSuggestionData','getNearestSelectionRange','formatInline:accept','getUser','insertion:discard','trackChanges.mergeNestedSuggestions','next','ck-suggestion-marker-','containsRangeInObject','getShiftedBy','stop','writer','enableCommand','formatInline:','change:activeMarkers','markerReady','high','head','notReady','getMarkers','deletion:join','insertContent','_getAuthorFromId','_joinSuggestions','_removeSuggestion','previous','splitPosition','isCollapsed','end','options','removeComment','track-changes-command-not-found','accepted','upcast','track-changes-suggestion-data-mismatch','default','getIntersection','suggestionChanged','containsRange','remove','TrackChangesEditing','elementToElement','_cutOutSuggestionMarker','getChanges','isNextTo','containsPosition','schema','addClass','return','addMarker:suggestion:formatBlock','_joinWithAdjacentSuggestions','_updateSuggestionData','removeMarker','split','markers','keys','acceptSuggestion','ck-suggestion-marker','document','position','_suggestions','size','deletion:accept','isRemovable','formatBlock:accept','_model','isLimit','execute','forceDefaultExecution','map','markDeletion','discardAllSuggestions','subType','isAfter','stopListening','detach','markMultiRangeDeletion','getFirstRange','never','insertion:chain','deleteContent','fire','hasComments','ready','insertion','Users','data-suggestion','name','_handleNewSuggestionMarker','sort','addComment','setTo','differ','deletion','getRanges','author','addMarkerName','removed','_registerDefaultCallbacks','getCustomProperty','push','bindElementToMarker','markerToHighlight','discardSelectedSuggestions','_getExternalAuthor','_saved','_isDataLoaded','newRange','moveTargetPosition','isUndo','elementStart','$textProxy','acceptAllSuggestions','_customCallbacks','length','for','_refreshSuggestionsChain','createRange','fetchCommentThread','chain','removeMarker:suggestion:formatBlock','authoredAt','isBefore','commentThread','dataDowncast','ck-suggestion-marker-formatBlock','createPositionBefore','config','_checkSuggestionCorrectness','_addSuggestionMarker','conversion','_defaultCallbacks','change','formatInline:discard','update:suggestion','discard','before','activeMarkers','add','isObject','trackChanges','locale','join','suggestion'];(function(_0x1f7048,_0x45a766){const _0x44db5f=function(_0x561c8a){while(--_0x561c8a){_0x1f7048['push'](_0x1f7048['shift']());}};_0x44db5f(++_0x45a766);}(_0x45a7,0xe8));const _0x44db=function(_0x1f7048,_0x45a766){_0x1f7048=_0x1f7048-0x0;let _0x44db5f=_0x45a7[_0x1f7048];return _0x44db5f;};import{Plugin as _0x174a5d,PendingActions as _0x357630}from'ckeditor5/src/core';import{LiveRange as _0x408c9a}from'ckeditor5/src/engine';import{CKEditorError as _0x3aca7c,uid as _0x2ee776,priorities as _0x49f909,logWarning as _0x10c94e}from'ckeditor5/src/utils';import{toWidget as _0x241972}from'ckeditor5/src/widget';import{Users as _0x546345,hashObject as _0x5d6662}from'ckeditor5-collaboration/src/collaboration-core';import _0x2dedd6 from'./commands/trackchangescommand';import _0x3e11d3 from'./commands/acceptsuggestioncommand';import _0x1f02c5 from'./commands/discardsuggestioncommand';import _0x3f0f47 from'./commands/executeonallsuggestionscommand';import _0x43143f from'./commands/executeonselectedsuggestionscommand';import _0x30870e from'./suggestion';import _0x63b8be from'./suggestiondescriptionfactory';import _0xd75241 from'./integrations/aiassistant';import _0x197338 from'./integrations/alignment';import _0x5234cc from'./integrations/basicstyles';import _0x304747 from'./integrations/blockquote';import _0x5ed4d1 from'./integrations/ckbox';import _0x3b28de from'./integrations/codeblock';import _0x3085f0 from'./integrations/comments';import _0x3217cc from'./integrations/deletecommand';import _0x4eb8a3 from'./integrations/documentlist';import _0xec6304 from'./integrations/entercommand';import _0x422221 from'./integrations/findandreplace';import _0x79eeec from'./integrations/font';import _0x20b188 from'./integrations/formatpainter';import _0x90187e from'./integrations/heading';import _0x1f49d7 from'./integrations/highlight';import _0x2c22c2 from'./integrations/horizontalline';import _0x5ef466 from'./integrations/htmlembed';import _0x3fe144 from'./integrations/image';import _0x3d2e8d from'./integrations/imagereplace';import _0x452f6f from'./integrations/importword';import _0xa23e24 from'./integrations/indent';import _0x110d34 from'./integrations/inputcommand';import _0x1d03b2 from'./integrations/link';import _0x4ddef0 from'./integrations/list';import _0x51433e from'./integrations/listproperties';import _0x405ce7 from'./integrations/mediaembed';import _0x3562fd from'./integrations/mention';import _0x50c069 from'./integrations/pagebreak';import _0xa310c3 from'./integrations/paragraph';import _0x438dd1 from'./integrations/removeformat';import _0x19b923 from'./integrations/restrictededitingmode';import _0x55246b from'./integrations/shiftentercommand';import _0x378e48 from'./integrations/standardeditingmode';import _0x236074 from'./integrations/style';import _0x57ab3f from'./integrations/table';import _0x52d5db from'./integrations/tablemergesplit';import _0x1a47d5 from'./integrations/tableheadings';import _0x216d32 from'./integrations/tableclipboard';import _0x4f8383 from'./integrations/tablecolumnresize';import _0x3eba9e from'./integrations/template';import _0x181c5f from'./integrations/tableofcontents';import _0x3ebd0a from'./integrations/title';import _0x158d6c from'./integrations/undo';import{getTranslation as _0x1e3427}from'./utils/common-translations';import _0x4d5fac from'./integrations/tablecaption';import _0x1855bc from'./integrations/documentlistproperties';import _0x47de4d from'./integrations/tableproperties';import{isEqual as _0x570e25}from'lodash-es';export default class p extends _0x174a5d{static get[_0x44db('0x103')](){return[_0x44db('0xaf'),_0x546345,_0x357630,_0xd75241,_0x197338,_0x5234cc,_0x304747,_0x5ed4d1,_0x3b28de,_0x3085f0,_0x3217cc,_0x4eb8a3,_0x1855bc,_0xec6304,_0x422221,_0x79eeec,_0x20b188,_0x90187e,_0x1f49d7,_0x2c22c2,_0x5ef466,_0x3fe144,_0x3d2e8d,_0x452f6f,_0xa23e24,_0x110d34,_0x1d03b2,_0x4ddef0,_0x51433e,_0x405ce7,_0x3562fd,_0x50c069,_0xa310c3,_0x438dd1,_0x19b923,_0x55246b,_0x378e48,_0x236074,_0x57ab3f,_0x52d5db,_0x1a47d5,_0x4d5fac,_0x216d32,_0x4f8383,_0x181c5f,_0x47de4d,_0x3eba9e,_0x3ebd0a,_0x158d6c];}static get['pluginName'](){return _0x44db('0x132');}constructor(_0xd78352){function _0x55065f(_0x446574){return _0x446574[_0x44db('0xe')](_0x3cbf28=>String['fromCharCode'](_0x3cbf28))[_0x44db('0x57')]('');}super(_0xd78352),this[_0x44db('0x6f')](_0x44db('0x52'),[]),this['on'](_0x44db('0x118'),(_0x8d9817,_0x146d3f,_0x35fbd6,_0x5bad3b)=>{this['_model'][_0x44db('0x4d')](()=>{for(const _0x1d4c47 of[..._0x5bad3b,..._0x35fbd6])this[_0x44db('0xa')][_0x44db('0x140')][_0x44db('0xb1')](_0x1d4c47)&&_0xd78352[_0x44db('0x90')][_0x44db('0xd9')](_0x1d4c47);});}),this['_descriptionFactory']=new _0x63b8be(this['editor'][_0x44db('0xab')]['schema'],this[_0x44db('0xcd')][_0x44db('0x56')]),this[_0x44db('0x106')]=null,this[_0x44db('0x98')]=new Bt(this[_0x44db('0xcd')]),this[_0x44db('0x5')]=new Map(),this[_0x44db('0xff')]=_0xd78352['plugins'][_0x44db('0xac')]('CommentsRepository'),this[_0x44db('0xd3')]=new Set(),this[_0x44db('0xa')]=this[_0x44db('0xcd')]['model'],this['_suggestionState']=new WeakMap(),this[_0x44db('0xc8')]=!0x1,_0xd78352[_0x44db('0x48')][_0x44db('0x8f')](_0x44db('0xc3'),_0x44db('0x12d')),this[_0x44db('0x88')]=_0xd78352[_0x44db('0x48')]['get'](_0x44db('0xc3')),_0xd78352[_0x44db('0x48')][_0x44db('0x8f')](_0x44db('0x10f'),!0x0),this[_0x44db('0xec')]=_0xd78352[_0x44db('0x48')]['get'](_0x44db('0x10f')),this[_0x44db('0xb0')]=new _0x2dedd6(_0xd78352,this['_enabledCommands']),this[_0x55065f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x55065f([0x34,0x30,0x34,0x36,0x32,0x30,0x36,0x30]);}[_0x44db('0xfa')](){const _0x13bc1e=this[_0x44db('0xcd')];_0x13bc1e[_0x44db('0x4b')]['for']('editingDowncast')[_0x44db('0x2f')]({'model':_0x44db('0x58'),'view':_0x3afd98=>{const {id:_0x32fc8e,type:_0x12d6a1}=this[_0x44db('0xcc')](_0x3afd98['markerName']),_0x3fccce=[_0x44db('0x2'),_0x44db('0x111')+_0x12d6a1];let _0x7c6629=0xbb8;return this[_0x44db('0x52')][_0x44db('0xb8')](_0x3afd98[_0x44db('0x9f')])&&(_0x3fccce[_0x44db('0x2d')](_0x44db('0x81')),_0x7c6629=0xbc2),_0x44db('0x26')==_0x12d6a1&&(_0x7c6629+=0x5),{'classes':_0x3fccce,'attributes':{'data-suggestion':_0x32fc8e},'priority':_0x7c6629};}}),_0x13bc1e[_0x44db('0x4b')][_0x44db('0x3c')]('dataDowncast')[_0x44db('0x53')](_0x4ebe7f=>{_0x4ebe7f['on']('addMarker:suggestion',(_0x539991,_0x23a032,_0x3948cd)=>{if(!_0x3948cd['options'][_0x44db('0xdf')])return;const _0x4ee82d=_0x23a032['item'];if(!_0x4ee82d)return;const _0x58deec=_0x3948cd['mapper'][_0x44db('0x97')](_0x4ee82d);_0x13bc1e['model'][_0x44db('0x138')][_0x44db('0x54')](_0x4ee82d)&&_0x58deec&&!_0x58deec['getCustomProperty']('widget')&&_0x58deec['is'](_0x44db('0x83'))&&_0x241972(_0x58deec,_0x3948cd[_0x44db('0x115')]);},{'priority':_0x44db('0x11a')});}),_0x13bc1e[_0x44db('0x4b')][_0x44db('0x3c')](_0x44db('0x45'))[_0x44db('0x2f')]({'model':'suggestion','view':(_0x19d4e1,_0x236e3d)=>{if(!_0x236e3d[_0x44db('0x127')]['showSuggestionHighlights'])return null;const {type:_0x1a45ce}=this[_0x44db('0xcc')](_0x19d4e1[_0x44db('0x9f')]);return{'classes':[_0x44db('0x2'),_0x44db('0x111')+_0x1a45ce],'priority':0xbb8};}});const _0x311a25=({showActiveMarkers:_0x227e11=!0x0}={})=>(_0x3817fc,_0x4f9076,_0x48456e)=>{if(!_0x4f9076[_0x44db('0xf3')])return;if(_0x4f9076[_0x44db('0xf3')]['is']('selection'))return void _0x48456e[_0x44db('0x69')][_0x44db('0x5a')](_0x4f9076[_0x44db('0xf3')],_0x3817fc[_0x44db('0x20')]);const _0x2bad37=_0x48456e['mapper'][_0x44db('0x97')](_0x4f9076[_0x44db('0xf3')]);if(!(_0x4f9076[_0x44db('0xf3')]['is']('element')&&_0x13bc1e['model'][_0x44db('0x138')]['isBlock'](_0x4f9076[_0x44db('0xf3')])&&!_0x2bad37[_0x44db('0x2c')](_0x44db('0xea'))))return;const {id:_0x180abe}=this['_splitMarkerName'](_0x4f9076[_0x44db('0x9f')]);_0x48456e[_0x44db('0x115')][_0x44db('0x139')]([_0x44db('0x2'),_0x44db('0x46')],_0x2bad37),_0x48456e[_0x44db('0x115')][_0x44db('0x62')](_0x44db('0x1f'),_0x180abe,_0x2bad37),_0x48456e[_0x44db('0xee')][_0x44db('0x2e')](_0x2bad37,_0x4f9076['markerName']),_0x227e11&&(this[_0x44db('0x52')][_0x44db('0xb8')](_0x4f9076[_0x44db('0x9f')])?_0x48456e[_0x44db('0x115')][_0x44db('0x139')]('ck-suggestion-marker--active',_0x2bad37):_0x48456e['writer'][_0x44db('0xaa')]('ck-suggestion-marker--active',_0x2bad37));for(const _0x4af994 of _0x13bc1e[_0x44db('0xab')][_0x44db('0x8a')](_0x4f9076[_0x44db('0xf3')])['getItems']())_0x48456e[_0x44db('0x69')][_0x44db('0x5a')](_0x4af994,_0x3817fc[_0x44db('0x20')]);_0x48456e[_0x44db('0x69')][_0x44db('0x5a')](_0x4f9076['item'],_0x3817fc[_0x44db('0x20')]);};_0x13bc1e['conversion'][_0x44db('0x3c')](_0x44db('0x45'))[_0x44db('0x53')](_0xa35221=>{_0xa35221['on']('addMarker:suggestion:formatBlock',(_0x319131,_0x1c5705,_0x5e7d31)=>{_0x5e7d31[_0x44db('0x127')][_0x44db('0xdf')]&&_0x311a25({'showActiveMarkers':!0x1})(_0x319131,_0x1c5705,_0x5e7d31);},{'priority':'highest'});}),_0x13bc1e[_0x44db('0x4b')][_0x44db('0x3c')](_0x44db('0x45'))['markerToData']({'model':_0x44db('0x58'),'view':(_0x439d54,_0x5aef9a)=>_0x5aef9a[_0x44db('0x127')]['showSuggestionHighlights']?null:{'group':_0x44db('0x58'),'name':_0x439d54[_0x44db('0x80')](0xb)}}),_0x13bc1e['conversion'][_0x44db('0x3c')](_0x44db('0x12b'))[_0x44db('0x133')]({'view':{'name':_0x44db('0x58'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e2f00,{writer:_0xa0631c})=>{let _0x1d3c53=_0x44db('0xf6')+_0x4e2f00[_0x44db('0xd4')](_0x44db('0xf1'))+':'+_0x4e2f00['getAttribute']('id');return _0x4e2f00[_0x44db('0xd4')](_0x44db('0xa6'))&&(_0x1d3c53+=':'+_0x4e2f00[_0x44db('0xd4')](_0x44db('0xa6'))),_0xa0631c[_0x44db('0x9b')](_0x44db('0xc4'),{'data-name':_0x1d3c53});}}),_0x13bc1e[_0x44db('0x4b')][_0x44db('0x3c')](_0x44db('0x12b'))['dataToMarker']({'view':'suggestion'}),_0x13bc1e[_0x44db('0x4b')][_0x44db('0x3c')](_0x44db('0x65'))['add'](_0x548eac=>{_0x548eac['on'](_0x44db('0x13b'),_0x311a25(),{'priority':_0x44db('0x11a')});}),_0x13bc1e[_0x44db('0x4b')][_0x44db('0x3c')](_0x44db('0x65'))[_0x44db('0x53')](_0x5c680f=>{_0x5c680f['on'](_0x44db('0x41'),(_0x491a0a,_0x4917a4,_0x52adb6)=>{const _0x489931=_0x52adb6[_0x44db('0xee')][_0x44db('0xda')](_0x4917a4['markerName']);if(_0x489931)for(const _0x2840ad of _0x489931)_0x2840ad[_0x44db('0x2c')](_0x44db('0xea'))||(_0x52adb6[_0x44db('0x115')][_0x44db('0xaa')]([_0x44db('0x2'),_0x44db('0x46'),_0x44db('0x81')],_0x2840ad),_0x52adb6[_0x44db('0x115')][_0x44db('0xa8')](_0x44db('0x1f'),_0x2840ad),_0x52adb6[_0x44db('0xee')][_0x44db('0x79')](_0x2840ad,_0x4917a4['markerName']));},{'priority':_0x44db('0x11a')});}),_0x13bc1e[_0x44db('0xab')][_0x44db('0x3')][_0x44db('0xbc')](_0x10d46e=>{let _0x550b27=!0x1;const _0x36c558=Array[_0x44db('0xa2')](_0x13bc1e[_0x44db('0xab')][_0x44db('0x3')]['differ']['getChangedMarkers']()),_0x4b3440=new Set();for(const {name:_0x3d8326,data:_0x5ec2d5}of _0x36c558){const {group:_0x49005a,type:_0x4b2516,id:_0x3e0c21}=this[_0x44db('0xcc')](_0x3d8326);if(_0x44db('0x58')!==_0x49005a)continue;const _0x36d417=this[_0x44db('0x5')][_0x44db('0xac')](_0x3e0c21);if(null!=_0x5ec2d5[_0x44db('0x34')]){_0x44db('0xe1')==_0x4b2516&&(_0x550b27=_0x550b27||$t(_0x5ec2d5[_0x44db('0x34')],_0x3d8326,_0x10d46e,_0x13bc1e['model'][_0x44db('0x138')]));if(_0x5ec2d5[_0x44db('0x34')][_0x44db('0x125')]||_0x44db('0x7c')==_0x5ec2d5[_0x44db('0x34')][_0x44db('0x74')][_0x44db('0x108')]||_0x44db('0xbb')==_0x4b2516&&!Rt(_0x5ec2d5[_0x44db('0x34')])||'deletion'==_0x4b2516&&!(!Mt(_0x32fe27=_0x5ec2d5['newRange'])&&!function(_0x3d615f){return _0x3d615f[_0x44db('0xb2')][_0x44db('0xc6')]==_0x3d615f[_0x44db('0x126')][_0x44db('0x7d')]&&_0x3d615f[_0x44db('0xb2')][_0x44db('0x5d')];}(_0x32fe27)))_0x10d46e[_0x44db('0x13e')](_0x3d8326),_0x550b27=!0x0;else{if(!_0x36d417||!_0x36d417[_0x44db('0x7b')])continue;_0x4b3440['add'](_0x36d417);}}}var _0x32fe27;return _0x4b3440[_0x44db('0x6')]>0x0&&(_0x550b27=!!this[_0x44db('0x13c')](_0x4b3440)||_0x550b27),_0x550b27;}),_0x13bc1e[_0x44db('0xab')][_0x44db('0x3')][_0x44db('0xbc')](_0x1ec368=>{let _0x2858a7=!0x1;for(const _0x76963e of _0x13bc1e[_0x44db('0xab')]['document'][_0x44db('0x25')][_0x44db('0x135')]()){if(_0x44db('0x9a')!=_0x76963e[_0x44db('0x60')])continue;const _0x4e9709=_0x76963e[_0x44db('0x4')][_0x44db('0x113')](_0x76963e[_0x44db('0x3b')]);if(_0x4e9709['isAtEnd'])for(const _0x385757 of this[_0x44db('0x5')][_0x44db('0x8e')]()){if(_0x385757[_0x44db('0x67')]||!_0x385757[_0x44db('0x7b')])continue;if('formatBlock'!=_0x385757[_0x44db('0x60')])continue;const _0x4f6f4c=_0x385757['getFirstRange']();if(_0x4f6f4c[_0x44db('0xb2')][_0x44db('0xc6')]!=_0x4f6f4c[_0x44db('0x126')][_0x44db('0xc6')]&&_0x4f6f4c[_0x44db('0x126')][_0x44db('0xf7')](_0x76963e['position'])){const _0x15e8fd=_0x13bc1e['model']['createRange'](_0x4f6f4c[_0x44db('0xb2')],_0x4e9709);_0x1ec368['updateMarker'](_0x385757[_0x44db('0x89')](),{'range':_0x15e8fd}),_0x2858a7=!0x0;}}}return _0x2858a7;}),_0x13bc1e['model'][_0x44db('0x140')]['on'](_0x44db('0x4f'),(_0x3f2021,_0x25dd02,_0x5be9e3)=>{if(null==_0x5be9e3){const {id:_0x52b9df}=this['_splitMarkerName'](_0x25dd02[_0x44db('0x20')]),_0x1d3c0f=this[_0x44db('0x5')][_0x44db('0xac')](_0x52b9df);_0x1d3c0f&&_0x1d3c0f['addMarkerName'](_0x25dd02[_0x44db('0x20')]);}}),_0x13bc1e[_0x44db('0xab')]['document']['on'](_0x44db('0xfe'),()=>{const _0x2f3bd3=Array[_0x44db('0xa2')](_0x13bc1e['model'][_0x44db('0x3')][_0x44db('0x25')][_0x44db('0x7a')]())[_0x44db('0x85')](_0x4204bc=>_0x44db('0x58')===this[_0x44db('0xcc')](_0x4204bc[_0x44db('0x20')])['group']);if(0x0===_0x2f3bd3['length'])return;_0x2f3bd3[_0x44db('0x22')]((_0x7e49ae,_0x18e4c9)=>{const _0x30b962=_0x7e49ae[_0x44db('0xe2')][_0x44db('0x93')],_0xf554c9=_0x18e4c9[_0x44db('0xe2')][_0x44db('0x93')];return null===_0x30b962&&null===_0xf554c9?0x0:null===_0x30b962&&null!==_0xf554c9?-0x1:null!==_0x30b962&&null===_0xf554c9?0x1:_0x30b962[_0x44db('0xb2')][_0x44db('0x43')](_0xf554c9[_0x44db('0xb2')])?-0x1:0x1;});const _0x532b93=new Set(),_0x3d7fd2=new Set();for(const {name:_0x108509,data:_0x1b4d7b}of _0x2f3bd3){const {id:_0x54eb68}=this[_0x44db('0xcc')](_0x108509);if(null===_0x1b4d7b[_0x44db('0x93')]){const _0xae6fcf=this[_0x44db('0x21')](_0x108509);_0x3d7fd2[_0x44db('0x53')](_0xae6fcf);}else{const _0x2ae0f3=this[_0x44db('0x5')]['get'](_0x54eb68);null!==_0x1b4d7b[_0x44db('0x34')]||_0x2ae0f3[_0x44db('0x7b')]?(_0x532b93[_0x44db('0x53')](_0x2ae0f3[_0x44db('0x11b')]),_0x3d7fd2['add'](_0x2ae0f3)):this['_removeSuggestion'](_0x2ae0f3);}}_0x3d7fd2[_0x44db('0x6')]>0x0&&this[_0x44db('0x3d')](_0x3d7fd2);for(const _0x3cdcd0 of _0x532b93)this[_0x44db('0x1a')](_0x44db('0x12f'),_0x3cdcd0);}),_0x13bc1e['model']['on'](_0x44db('0xb5'),(_0x3b40a3,_0x1cf861)=>{const _0x32599f=_0x1cf861[0x0];if(!this['_suggestions']['size'])return;if(!_0x32599f['isDocumentOperation'])return;if(_0x32599f['batch'][_0x44db('0x36')]||!_0x32599f[_0x44db('0xfb')]['isLocal'])return;let _0x40d6b9,_0x3d9d1f;switch(_0x32599f[_0x44db('0x60')]){case _0x44db('0x9a'):_0x40d6b9=_0x13bc1e[_0x44db('0xab')][_0x44db('0x7f')](_0x32599f[_0x44db('0x4')]),_0x3d9d1f=_0x40d6b9['getShiftedBy'](_0x32599f[_0x44db('0x8d')]);break;case'split':_0x40d6b9=_0x13bc1e[_0x44db('0xab')][_0x44db('0x7f')](_0x32599f[_0x44db('0x124')]),_0x3d9d1f=_0x13bc1e['model'][_0x44db('0x7f')](_0x32599f[_0x44db('0x35')]);break;case _0x44db('0xef'):_0x40d6b9=_0x13bc1e['model'][_0x44db('0x7f')](_0x32599f[_0x44db('0xed')]),_0x3d9d1f=_0x40d6b9[_0x44db('0x113')](_0x32599f['howMany']);break;default:return;}const _0x880693=_0x13bc1e[_0x44db('0xab')][_0x44db('0x3e')](_0x40d6b9,_0x3d9d1f);_0x13bc1e[_0x44db('0xab')][_0x44db('0x4d')](()=>{for(const {suggestion:_0x17d952,meta:_0x377fa3}of this['_findSuggestions'](_0x880693)){if(_0x17d952[_0x44db('0x67')])continue;if(_0x44db('0xe1')==_0x17d952[_0x44db('0x60')])continue;const _0x400755=_0x17d952[_0x44db('0xe2')]&&_0x17d952['data']['multipleBlocks'];(_0x44db('0xbb')!=_0x17d952[_0x44db('0x60')]||_0x44db('0x13f')==_0x32599f[_0x44db('0x60')]&&!_0x400755)&&(_0x377fa3[_0x44db('0x112')]||_0x44db('0x1d')==_0x17d952[_0x44db('0x60')]&&_0x377fa3[_0x44db('0xf8')]||_0x17d952['getFirstRange']()[_0x44db('0x130')](_0x880693)&&this[_0x44db('0x5c')](_0x17d952,_0x40d6b9,_0x3d9d1f));}});},{'priority':_0x44db('0x92')}),_0x13bc1e[_0x44db('0xab')]['on']('deleteContent',(_0x5349e1,_0x8a6761)=>{const _0x42e482=_0x8a6761[0x0],_0x1365c5=_0x8a6761[0x1];if(_0x1365c5&&_0x1365c5[_0x44db('0xd')])return;if(this[_0x44db('0xc8')])return;if(!this[_0x44db('0xb0')][_0x44db('0xc5')])return;if(_0x42e482[_0x44db('0x125')])return;const _0x5a0d8b=_0x13bc1e['model']['schema'],{start:_0x3f2ffe,end:_0x59ceed}=_0x42e482[_0x44db('0x16')](),_0x4a2685=_0x3f2ffe['nodeAfter']&&_0x5a0d8b['isLimit'](_0x3f2ffe['nodeAfter'])?null:_0x5a0d8b[_0x44db('0x10b')](_0x3f2ffe,'forward'),_0x5d33d7=_0x59ceed[_0x44db('0x7d')]&&_0x5a0d8b[_0x44db('0xb')](_0x59ceed[_0x44db('0x7d')])?null:_0x5a0d8b[_0x44db('0x10b')](_0x59ceed,_0x44db('0xba')),_0x31b1d8=_0x13bc1e[_0x44db('0xab')]['createRange'](_0x4a2685?_0x4a2685['start']:_0x3f2ffe,_0x5d33d7?_0x5d33d7[_0x44db('0x126')]:_0x59ceed);_0x13bc1e['model'][_0x44db('0x4d')](_0x1102c6=>{this[_0x44db('0xf')](_0x31b1d8);const _0x175c42=_0x13bc1e[_0x44db('0xab')]['schema']['getNearestSelectionRange'](_0x31b1d8[_0x44db('0xb2')]);_0x42e482['is']('documentSelection')?_0x1102c6[_0x44db('0x71')](_0x175c42):_0x42e482[_0x44db('0x24')](_0x175c42);}),_0x5349e1['stop']();},{'priority':_0x49f909[_0x44db('0xc9')]+0xa}),_0x13bc1e[_0x44db('0xab')]['on'](_0x44db('0x11f'),(_0x21ef77,_0x443af3)=>{const _0x3b9ed1=_0x443af3[_0x443af3[_0x44db('0x3b')]-0x1];_0x3b9ed1&&_0x3b9ed1[_0x44db('0xd')]||this[_0x44db('0xc8')]||this[_0x44db('0xb0')]['value']&&(_0x13bc1e[_0x44db('0xab')][_0x44db('0x4d')](()=>{let _0x3319e5=_0x13bc1e[_0x44db('0xab')][_0x44db('0x11f')](_0x443af3[0x0],_0x443af3[0x1],_0x443af3[0x2],{'forceDefaultExecution':!0x0});if(!_0x3319e5)return;_0x21ef77[_0x44db('0x13a')]=_0x3319e5[_0x44db('0x105')]();const _0x246905=_0x3319e5['end'][_0x44db('0x7d')],_0x40f0fd=_0x13bc1e[_0x44db('0xab')][_0x44db('0x138')];_0x246905&&_0x40f0fd[_0x44db('0xb7')](_0x246905)&&!_0x40f0fd[_0x44db('0x54')](_0x246905)&&(_0x3319e5=_0x13bc1e[_0x44db('0xab')][_0x44db('0x3e')](_0x3319e5[_0x44db('0xb2')],_0x13bc1e[_0x44db('0xab')][_0x44db('0x7f')](_0x246905,_0x44db('0x126')))),this[_0x44db('0xde')](_0x3319e5);}),_0x21ef77[_0x44db('0x114')]());},{'priority':_0x44db('0x11a')}),this[_0x44db('0xcd')][_0x44db('0x9e')][_0x44db('0x53')](_0x44db('0x55'),this['trackChangesCommand']),this[_0x44db('0x116')]('trackChanges');const _0x10e14a=new _0x3e11d3(_0x13bc1e,this[_0x44db('0x5')]);_0x13bc1e[_0x44db('0x9e')][_0x44db('0x53')](_0x44db('0x1'),_0x10e14a),this[_0x44db('0x116')](_0x44db('0x1'));const _0xdd82d4=new _0x1f02c5(_0x13bc1e,this[_0x44db('0x5')]);_0x13bc1e['commands']['add'](_0x44db('0x91'),_0xdd82d4),this[_0x44db('0x116')](_0x44db('0x91')),_0x13bc1e[_0x44db('0x9e')][_0x44db('0x53')](_0x44db('0x39'),new _0x3f0f47(_0x13bc1e,_0x10e14a,this[_0x44db('0x5')])),this[_0x44db('0x116')](_0x44db('0x39')),_0x13bc1e[_0x44db('0x9e')][_0x44db('0x53')](_0x44db('0x10'),new _0x3f0f47(_0x13bc1e,_0xdd82d4,this[_0x44db('0x5')])),this['enableCommand'](_0x44db('0x10')),_0x13bc1e[_0x44db('0x9e')][_0x44db('0x53')](_0x44db('0x5e'),new _0x43143f(_0x13bc1e,_0x10e14a,this['_suggestions'])),this['enableCommand'](_0x44db('0x5e')),_0x13bc1e[_0x44db('0x9e')][_0x44db('0x53')](_0x44db('0x30'),new _0x43143f(_0x13bc1e,_0xdd82d4,this[_0x44db('0x5')])),this[_0x44db('0x116')](_0x44db('0x30'));const _0xf353da=_0x13bc1e[_0x44db('0xd7')][_0x44db('0xac')](_0x44db('0xaf'));this['listenTo'](_0xf353da,_0x44db('0x23'),(_0x591e9c,{threadId:_0x17b6ef})=>{const _0x59e266=this[_0x44db('0x5')][_0x44db('0xac')](_0x17b6ef);_0x59e266&&_0x59e266[_0x44db('0x44')]&&0x1===_0x59e266[_0x44db('0x44')][_0x44db('0x3b')]&&this[_0x44db('0x13d')](_0x17b6ef,{'hasComments':!0x0});},{'priority':'low'}),this[_0x44db('0xc2')](_0xf353da,_0x44db('0x128'),(_0x58d664,{threadId:_0xd62ac1})=>{const _0x93ea54=this[_0x44db('0x5')]['get'](_0xd62ac1);_0x93ea54&&_0x93ea54[_0x44db('0x44')]&&!_0x93ea54['commentThread']['length']&&this[_0x44db('0x13d')](_0xd62ac1,{'hasComments':!0x1});},{'priority':_0x44db('0xcb')});}set[_0x44db('0xcf')](_0x3290d1){if(this['_adapter'])throw new _0x3aca7c('track-changes-adapter-already-set',this);this[_0x44db('0x106')]=_0x3290d1;}get[_0x44db('0xcf')](){return this['_adapter'];}[_0x44db('0xbd')]({skipNotAttached:_0x50f716=!0x1,toJSON:_0x3b02d6=!0x1}={}){const _0x248b5d=[];for(const _0x2d992f of this[_0x44db('0x5')]['values']())_0x50f716&&!_0x2d992f[_0x44db('0x7b')]||_0x248b5d[_0x44db('0x2d')](_0x2d992f);return _0x3b02d6?_0x248b5d['map'](_0x2895ce=>_0x2895ce[_0x44db('0xad')]()):_0x248b5d;}[_0x44db('0x94')](_0x5174ca){const _0x29193f=this['_suggestions']['get'](_0x5174ca);if(!_0x29193f)throw new _0x3aca7c(_0x44db('0x6c'),this);return _0x29193f;}[_0x44db('0xd5')](_0x3bc2cd){return this[_0x44db('0x5')][_0x44db('0xb1')](_0x3bc2cd);}[_0x44db('0xca')](_0x147880){const {authorId:_0x34d07e,id:_0x584d79,attributes:_0x161db9}=_0x147880,[_0x1da478,_0x29f67d]=_0x147880[_0x44db('0x60')][_0x44db('0x13f')](':'),_0x5ee7ef=this[_0x44db('0x5')]['get'](_0x584d79)||this[_0x44db('0x68')](_0x1da478,_0x29f67d,_0x584d79,_0x34d07e,_0x161db9);if(this[_0x44db('0x5b')](_0x5ee7ef),this[_0x44db('0x49')](_0x5ee7ef,_0x1da478,_0x29f67d||null,_0x34d07e),_0x5ee7ef['createdAt']=_0x147880['createdAt'],_0x5ee7ef['_isDataLoaded']=!0x0,_0x161db9&&_0x161db9[_0x44db('0xe4')]){const _0xd79aa1=_0x161db9['@external'],_0x1d78bb=this[_0x44db('0x31')](_0xd79aa1[_0x44db('0x5f')]);_0x5ee7ef[_0x44db('0x42')]=_0xd79aa1[_0x44db('0x72')],_0x5ee7ef[_0x44db('0x28')]=_0x1d78bb,_0x5ee7ef[_0x44db('0x63')]=!0x0;}else _0x5ee7ef[_0x44db('0x42')]=_0x147880[_0x44db('0x72')];switch(_0x147880[_0x44db('0xe2')]&&(_0x5ee7ef[_0x44db('0xe2')]=_0x147880[_0x44db('0xe2')]),_0x147880[_0x44db('0xa3')]&&(_0x5ee7ef[_0x44db('0xa3')]=_0x147880[_0x44db('0xa3')]),this[_0x44db('0x106')]&&this['_adapter'][_0x44db('0x102')]||(_0x5ee7ef[_0x44db('0x32')]=!0x0),this['_suggestionState']['get'](_0x5ee7ef)){case _0x44db('0x11c'):this['_suggestionState'][_0x44db('0x6f')](_0x5ee7ef,_0x44db('0x78'));break;case _0x44db('0x119'):_0x5ee7ef['isInContent']?(this[_0x44db('0x3d')](new Set([_0x5ee7ef])),this[_0x44db('0x13c')](new Set([_0x5ee7ef])),this[_0x44db('0x99')][_0x44db('0x6f')](_0x5ee7ef,_0x44db('0x1c')),this[_0x44db('0x1a')](_0x44db('0x75'),_0x5ee7ef)):this['_suggestionState']['set'](_0x5ee7ef,_0x44db('0x2a'));}return _0x5ee7ef;}['acceptSuggestion'](_0x36bd50){this[_0x44db('0xd')](()=>{this[_0x44db('0xcd')][_0x44db('0xab')][_0x44db('0x4d')](()=>{for(const _0x5b3f72 of _0x36bd50[_0x44db('0xc0')]())_0x5b3f72[_0x44db('0xdd')]();});});}[_0x44db('0x91')](_0x3054c7){this['forceDefaultExecution'](()=>{this[_0x44db('0xcd')]['model'][_0x44db('0x4d')](()=>{for(const _0x2a316e of _0x3054c7[_0x44db('0xc0')]())_0x2a316e[_0x44db('0x50')]();});});}[_0x44db('0x116')](_0x38baad,_0x391cee){const _0xd26c5f=this[_0x44db('0xcd')][_0x44db('0x9e')]['get'](_0x38baad);if(!_0xd26c5f)throw new _0x3aca7c(_0x44db('0x129'),this,{'commandName':_0x38baad});this[_0x44db('0xd3')][_0x44db('0x53')](_0xd26c5f),_0x391cee&&_0xd26c5f['on'](_0x44db('0xc'),(_0x388d03,_0x468a45)=>{this[_0x44db('0xb0')][_0x44db('0xc5')]&&(this[_0x44db('0xc8')]||_0x468a45['length']>0x0&&_0x468a45[_0x468a45[_0x44db('0x3b')]-0x1]&&_0x468a45[_0x468a45[_0x44db('0x3b')]-0x1][_0x44db('0xd')]||(_0x388d03[_0x44db('0x13a')]=_0x391cee((..._0x574608)=>_0xd26c5f['execute'](..._0x574608,{'forceDefaultExecution':!0x0}),..._0x468a45),_0x388d03[_0x44db('0x114')]()));},{'priority':_0x44db('0x11a')});}[_0x44db('0xd')](_0x1fca5f){let _0x285143,_0x2de626;const _0x370181=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x285143=_0x1fca5f();}catch(_0xefd4c9){_0x2de626=_0xefd4c9;}return _0x370181||(this[_0x44db('0xc8')]=!0x1),_0x2de626&&_0x3aca7c[_0x44db('0xe9')](_0x2de626,this),_0x285143;}[_0x44db('0xde')](_0x6da0b6,_0x250ab9=null,_0x2d625f={}){if(_0x6da0b6[_0x44db('0x125')])return null;const _0xaec1e=this[_0x44db('0xcd')][_0x44db('0xd7')][_0x44db('0xac')](_0x44db('0x1e'))['me'];for(const {suggestion:_0x12eaf8,meta:_0x38e296}of this[_0x44db('0xd2')](_0x6da0b6,_0x44db('0x1d')))if(_0x38e296[_0x44db('0xf8')]){if(!_0x38e296[_0x44db('0x136')]){if(_0x38e296['containsRangeInObject']){if(!this[_0x44db('0xec')]||!Ot(_0x12eaf8,_0x2d625f))continue;return _0x12eaf8;}if(Ot(_0x12eaf8,_0x2d625f))return _0x12eaf8;this[_0x44db('0x5c')](_0x12eaf8,_0x6da0b6['start'],_0x6da0b6['end']);break;}if(_0x250ab9==_0x12eaf8[_0x44db('0x11')]&&Ot(_0x12eaf8,_0x2d625f)){const _0x209adb=_0x12eaf8[_0x44db('0x16')]();return _0x209adb[_0x44db('0xb2')][_0x44db('0xf7')](_0x6da0b6[_0x44db('0x126')])?this[_0x44db('0xe7')](_0x12eaf8,this['_model']['createRange'](_0x6da0b6['start'],_0x209adb['end'])):this['_setSuggestionRange'](_0x12eaf8,this['_model'][_0x44db('0x3e')](_0x209adb[_0x44db('0xb2')],_0x6da0b6[_0x44db('0x126')])),_0x12eaf8;}}const _0x534fe1=_0x2ee776(),_0x14e165=_0xaec1e['id'],_0x1b8fd6=_0x250ab9?_0x44db('0xc1')+_0x250ab9:_0x44db('0x1d'),_0x207003=this[_0x44db('0xdb')]({'id':_0x534fe1,'type':_0x1b8fd6,'createdAt':new Date(),'authorId':_0x14e165,'attributes':_0x2d625f});return this[_0x44db('0x4a')](_0x1b8fd6,_0x534fe1,_0x14e165,_0x6da0b6),_0x207003;}[_0x44db('0xe8')](_0x44737a,_0x4593dd='multi',_0x1bbe37={}){const _0x786cf3=this[_0x44db('0xcd')][_0x44db('0xd7')][_0x44db('0xac')]('Users')['me'],_0x2c8178=this['_suggestionFactory'][_0x44db('0x8c')]('insertion',_0x4593dd,_0x44db('0x57'));for(const _0x514871 of this[_0x44db('0xbd')]())if(_0x514871[_0x44db('0x28')]['id']==_0x786cf3['id']&&'insertion'==_0x514871['type']&&_0x514871[_0x44db('0x11')]==_0x4593dd&&Ot(_0x514871,_0x1bbe37)&&(_0x2c8178(_0x514871[_0x44db('0x27')](),_0x44737a)||_0x2c8178(_0x44737a,_0x514871[_0x44db('0x27')]()))){for(const _0x47554d of _0x44737a)_0x514871[_0x44db('0xd8')](_0x47554d);return _0x514871;}for(const {suggestion:_0x2d2846,meta:_0x1543eb}of this[_0x44db('0xd2')](_0x44737a,_0x44db('0x1d'))){if(!_0x1543eb[_0x44db('0xf8')])continue;if(!this[_0x44db('0xec')]&&_0x1543eb[_0x44db('0x112')])continue;if(!Ot(_0x2d2846,_0x1bbe37))continue;let _0x2ecbad=!0x0;for(const _0x37e4b3 of _0x2d2846[_0x44db('0x27')]())for(const _0x443d1d of _0x44737a)if(!_0x37e4b3[_0x44db('0x130')](_0x443d1d)){_0x2ecbad=!0x1;break;}if(_0x2ecbad)return _0x2d2846;}const _0x392e0d=_0x2ee776(),_0x5aa97c=_0x786cf3['id'],_0x2a2dd9=_0x44db('0xc1')+_0x4593dd,_0x4daee3=this['_setSuggestionData']({'id':_0x392e0d,'type':_0x2a2dd9,'createdAt':new Date(),'authorId':_0x5aa97c,'attributes':_0x1bbe37});for(const _0xf63f5d of _0x44737a)this[_0x44db('0x4a')](_0x2a2dd9,_0x392e0d,_0x5aa97c,_0xf63f5d,_0x30870e[_0x44db('0x109')]());return _0x4daee3;}[_0x44db('0xa9')](_0x23fa3b,_0x5a6b15,_0xa62d38=null,_0x9f409c={}){if(_0xa62d38=_0xa62d38||Nt(_0x5a6b15),_0x23fa3b[_0x44db('0x125')])return null;if(_0x44db('0x17')===this[_0x44db('0x88')]){const _0x59b6f5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa62d38,_0x44db('0xdd'));return this[_0x44db('0xd')](()=>_0x59b6f5([_0x23fa3b],_0x5a6b15,_0x9f409c)),null;}const _0x51a0c1=this['editor'][_0x44db('0xd7')][_0x44db('0xac')](_0x44db('0x1e'))['me'],_0x990b92=[];if('always'!==this[_0x44db('0x88')])for(const {suggestion:_0x438e24,meta:_0x20c516}of this[_0x44db('0xd2')](_0x23fa3b,_0x44db('0x1d')))_0x20c516[_0x44db('0xf8')]&&!_0x20c516['isInsideObject']&&_0x990b92[_0x44db('0x2d')](..._0x438e24[_0x44db('0x27')]());const _0x4f35f7=function(_0x2a66f4,_0xc6f7a8){const _0x5396e7=[];for(const _0x261212 of _0xc6f7a8){const _0xe2a621=_0x2a66f4['getIntersection'](_0x261212);_0xe2a621&&_0x5396e7[_0x44db('0x2d')](_0xe2a621);}return _0x5396e7;}(_0x23fa3b,_0x990b92),_0x2139fa=function(_0x3dcdfe,_0x2e87be){const _0x4c1308=[_0x3dcdfe];for(const _0x3a0919 of _0x2e87be){let _0xcfb145=0x0;for(;_0xcfb145<_0x4c1308[_0x44db('0x3b')];){const _0x1be630=_0x4c1308[_0xcfb145]['getDifference'](_0x3a0919);_0x4c1308[_0x44db('0x73')](_0xcfb145,0x1,..._0x1be630),_0xcfb145+=_0x1be630['length'];}}return _0x4c1308;}(_0x23fa3b,_0x990b92);_0x4f35f7[_0x44db('0x3b')]&&this[_0x44db('0xa')][_0x44db('0x4d')](()=>{for(const _0x18136e of _0x4f35f7){const _0x515ad7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa62d38,'accept');this[_0x44db('0xd')](()=>_0x515ad7([_0x18136e],_0x5a6b15,_0x9f409c));}});for(const _0xa91bd6 of _0x2139fa){let _0x39f594=null,_0x26292c=_0xa91bd6['start'],_0x395834=_0xa91bd6['end'];for(const {suggestion:_0x5451c5,meta:_0x4184cf}of this['_findSuggestions'](_0xa91bd6,_0x44db('0xe1'))){if(!_0x4184cf[_0x44db('0xf8')])continue;if(_0x5451c5[_0x44db('0x11')]!=_0xa62d38)continue;if(!Ot(_0x5451c5,_0x9f409c))continue;const _0x256ffa=_0x5451c5[_0x44db('0x16')]();if(_0x256ffa['containsRange'](_0xa91bd6,!0x0))return null;_0x26292c=_0x26292c[_0x44db('0x43')](_0x256ffa['start'])?_0x26292c:_0x256ffa[_0x44db('0xb2')],_0x395834=_0x395834[_0x44db('0x12')](_0x256ffa[_0x44db('0x126')])?_0x395834:_0x256ffa[_0x44db('0x126')],_0x39f594?_0x256ffa[_0x44db('0xb2')][_0x44db('0x43')](_0x39f594[_0x44db('0x16')]()['start'])?(_0x39f594[_0x44db('0xce')](),_0x39f594=_0x5451c5):_0x5451c5['removeMarkers']():_0x39f594=_0x5451c5;}const _0x389152=this[_0x44db('0xa')][_0x44db('0x3e')](_0x26292c,_0x395834);if(_0x39f594)this['_setSuggestionRange'](_0x39f594,_0x389152);else{const _0x970170=_0x2ee776(),_0x1de81e=_0x51a0c1['id'];this[_0x44db('0xdb')]({'id':_0x970170,'type':_0x44db('0x117')+_0xa62d38,'data':_0x5a6b15,'createdAt':new Date(),'authorId':_0x1de81e,'attributes':_0x9f409c}),this[_0x44db('0x4a')](_0x44db('0x117')+_0xa62d38,_0x970170,_0x1de81e,_0x389152);}}return null;}[_0x44db('0x84')](_0x13776f,_0x4dc30d,_0x197a1f=[],_0xc42da6=null,_0x10ffb6={}){_0x4dc30d['formatGroupId']||(_0x4dc30d[_0x44db('0xf9')]=_0x4dc30d[_0x44db('0xd6')]),_0x4dc30d[_0x44db('0xeb')]=_0x13776f['is'](_0x44db('0x96')),_0xc42da6=_0xc42da6||Nt(_0x4dc30d);const _0x518567=_0x197a1f['map'](_0x52b2c0=>jt(_0x52b2c0,this[_0x44db('0xa')])),_0x16af2c=_0x13776f['is'](_0x44db('0x96'))?_0x13776f:jt(_0x13776f,this[_0x44db('0xa')]);if(_0x44db('0x17')===this[_0x44db('0x88')]){const _0x3a37e7=this[_0x44db('0x98')][_0x44db('0x8c')](_0x44db('0xbb'),_0xc42da6,_0x44db('0xdd'));return this[_0x44db('0xd')](()=>_0x3a37e7([_0x16af2c],_0x4dc30d,_0x10ffb6)),null;}_0x518567[_0x44db('0x2d')](_0x16af2c);let _0xbe3046=!0x0;for(const _0x504df0 of _0x518567)if(!this[_0x44db('0xe6')](_0x504df0)){_0xbe3046=!0x1;break;}if(_0xbe3046&&_0x44db('0xb9')!==this[_0x44db('0x88')]){const _0x2bcdc5=this['_suggestionFactory']['getSuggestionCallback'](_0x44db('0xbb'),_0xc42da6,_0x44db('0xdd'));return this[_0x44db('0xd')](()=>_0x2bcdc5([_0x16af2c],_0x4dc30d,_0x10ffb6)),null;}let _0x26d737=null,_0x1134fe=_0x16af2c[_0x44db('0xb2')],_0x534c2e=_0x16af2c['end'];for(const {suggestion:_0x12cd1c,meta:_0x40aeb0}of this[_0x44db('0xd2')](_0x16af2c,'formatBlock')){if(!_0x40aeb0[_0x44db('0xf8')])continue;if(_0x40aeb0[_0x44db('0x136')]||_0x40aeb0[_0x44db('0x112')]||_0x40aeb0['isInsideObject'])continue;if(_0x12cd1c[_0x44db('0xe2')][_0x44db('0xf9')]!=_0x4dc30d['formatGroupId'])continue;if(!Ot(_0x12cd1c,_0x10ffb6))continue;const _0x3eccce=_0x12cd1c[_0x44db('0x16')]();if(_0x12cd1c[_0x44db('0x11')]==_0xc42da6){if(_0x3eccce[_0x44db('0x130')](_0x16af2c,!0x0))return null;_0x1134fe=_0x1134fe[_0x44db('0x43')](_0x3eccce[_0x44db('0xb2')])?_0x1134fe:_0x3eccce['start'],_0x534c2e=_0x534c2e[_0x44db('0x12')](_0x3eccce[_0x44db('0x126')])?_0x534c2e:_0x3eccce['end'],_0x26d737?_0x3eccce[_0x44db('0xb2')]['isBefore'](_0x26d737[_0x44db('0x16')]()[_0x44db('0xb2')])?(_0x26d737[_0x44db('0xce')](),_0x26d737=_0x12cd1c):_0x12cd1c['removeMarkers']():_0x26d737=_0x12cd1c;}else{const _0x18809b=_0x16af2c[_0x44db('0x12e')](_0x3eccce);this[_0x44db('0x134')](_0x12cd1c,_0x18809b);}}const _0x1c1337=this[_0x44db('0xcd')][_0x44db('0xd7')][_0x44db('0xac')](_0x44db('0x1e'))['me'],_0x18353b=_0x2ee776(),_0x3bc218=_0x1c1337['id'];if(_0x26d737)return this['_setSuggestionRange'](_0x26d737,this[_0x44db('0xa')]['createRange'](_0x1134fe,_0x534c2e)),_0x26d737;{const _0x16c4ee=this[_0x44db('0xdb')]({'id':_0x18353b,'type':_0x44db('0x9c')+_0xc42da6,'data':_0x4dc30d,'createdAt':new Date(),'authorId':_0x3bc218,'attributes':_0x10ffb6});return this[_0x44db('0x4a')](_0x44db('0x9c')+_0xc42da6,_0x18353b,_0x3bc218,this[_0x44db('0xa')]['createRange'](_0x1134fe,_0x534c2e)),_0x16c4ee;}}['markMultiRangeBlockFormat'](_0x531271,_0x174b80,_0x5d101a=[],_0x14c950=null,_0x469e04={}){_0x174b80[_0x44db('0xf9')]||(_0x174b80['formatGroupId']=_0x174b80[_0x44db('0xd6')]);const _0x3b8d5d=_0x531271[0x0];_0x174b80[_0x44db('0xeb')]=_0x3b8d5d['is'](_0x44db('0x96')),_0x14c950=_0x14c950||Nt(_0x174b80);const _0x1510e9=_0x5d101a[_0x44db('0xe')](_0x58210b=>jt(_0x58210b,this[_0x44db('0xa')])),_0x2c2920=_0x3b8d5d['is']('range')?_0x531271:_0x531271['map'](_0x424b61=>jt(_0x424b61,this['_model']));if(_0x44db('0x17')===this[_0x44db('0x88')]){const _0x41f8fc=this[_0x44db('0x98')][_0x44db('0x8c')](_0x44db('0xbb'),_0x14c950,'accept');return this[_0x44db('0xd')](()=>_0x41f8fc(_0x2c2920,_0x174b80,_0x469e04)),null;}_0x1510e9['push'](..._0x2c2920);let _0x187c13=!0x0;for(const _0x421b6a of _0x1510e9)if(!this[_0x44db('0xe6')](_0x421b6a)){_0x187c13=!0x1;break;}if(_0x187c13&&_0x44db('0xb9')!==this[_0x44db('0x88')]){const _0x52093a=this[_0x44db('0x98')]['getSuggestionCallback'](_0x44db('0xbb'),_0x14c950,_0x44db('0xdd'));return this[_0x44db('0xd')](()=>_0x52093a(_0x2c2920,_0x174b80,_0x469e04)),null;}const _0x3a3869=this[_0x44db('0xcd')][_0x44db('0xd7')]['get'](_0x44db('0x1e'))['me'];for(const _0x29eac2 of this[_0x44db('0xbd')]()){if(_0x29eac2[_0x44db('0x28')]['id']!=_0x3a3869['id'])continue;if('formatBlock'!=_0x29eac2[_0x44db('0x60')]||_0x29eac2['data']['formatGroupId']!=_0x174b80[_0x44db('0xf9')])continue;if(!Ot(_0x29eac2,_0x469e04))continue;const _0x4d828c=_0x29eac2[_0x44db('0x11')]==_0x14c950;for(let _0x3108fe=0x0;_0x3108fe<_0x2c2920['length'];_0x3108fe++){const _0x2f95ad=_0x2c2920[_0x3108fe];for(const _0xe52512 of _0x29eac2[_0x44db('0x11d')]()){const _0x178d83=_0xe52512[_0x44db('0xbe')]();if(_0x2f95ad[_0x44db('0xf7')](_0x178d83)){_0x4d828c?(_0x2c2920[_0x44db('0x73')](_0x3108fe,0x1),_0x3108fe--):_0x29eac2[_0x44db('0x13e')](_0xe52512[_0x44db('0x20')]);break;}}}}if(0x0==_0x2c2920['length'])return null;const _0xa9c079=this[_0x44db('0x98')][_0x44db('0x8c')](_0x44db('0xbb'),_0x14c950,_0x44db('0x57'));for(const _0x10d077 of this[_0x44db('0xbd')]())if(_0x10d077[_0x44db('0x28')]['id']==_0x3a3869['id']&&_0x44db('0xbb')==_0x10d077[_0x44db('0x60')]&&_0x10d077[_0x44db('0xe2')][_0x44db('0xf9')]==_0x174b80[_0x44db('0xf9')]&&_0x10d077['subType']==_0x14c950&&Ot(_0x10d077,_0x469e04)&&(_0xa9c079(_0x10d077[_0x44db('0x27')](),_0x2c2920)||_0xa9c079(_0x2c2920,_0x10d077[_0x44db('0x27')]()))){for(const _0x916c10 of _0x2c2920)_0x10d077[_0x44db('0xd8')](_0x916c10);return _0x10d077;}const _0x4ef278=_0x2ee776(),_0x4bdc26=_0x3a3869['id'],_0x15038f='formatBlock:'+_0x14c950,_0x12b5b6=this[_0x44db('0xdb')]({'id':_0x4ef278,'type':_0x15038f,'data':_0x174b80,'createdAt':new Date(),'authorId':_0x4bdc26,'attributes':_0x469e04});for(const _0x32c57b of _0x2c2920)this[_0x44db('0x4a')](_0x15038f,_0x4ef278,_0x4bdc26,_0x32c57b,_0x30870e[_0x44db('0x109')]());return _0x12b5b6;}[_0x44db('0xf')](_0x498bd2,_0x3f1fe8=null,_0x5e0f17={}){if(_0x498bd2[_0x44db('0x125')])return null;const _0x1ab9d6=this[_0x44db('0xcd')]['plugins'][_0x44db('0xac')](_0x44db('0x1e'))['me'],_0x1d07c8=new _0x408c9a(_0x498bd2['start'],_0x498bd2[_0x44db('0x126')]);for(const {suggestion:_0x289137,meta:_0x426388}of this['_findSuggestions'](_0x1d07c8,_0x44db('0x1d')))if(_0x426388[_0x44db('0xf8')]&&!_0x426388['isNextTo']){if(_0x289137[_0x44db('0x67')]){const _0x32004e=_0x289137[_0x44db('0x27')]()[_0x44db('0x85')](_0x5d59bb=>_0x44db('0x7c')!=_0x5d59bb[_0x44db('0x74')][_0x44db('0x108')]);_0x32004e['every'](_0x1470bd=>_0x1d07c8[_0x44db('0x130')](_0x1470bd,!0x0))&&_0x289137['discard']();if(_0x32004e[_0x44db('0xa7')](_0x2196e8=>_0x2196e8[_0x44db('0x130')](_0x1d07c8,!0x0))){const _0x10361f=this[_0x44db('0x98')][_0x44db('0x8c')]('deletion',_0x3f1fe8,_0x44db('0xdd'));return this[_0x44db('0xd')](()=>_0x10361f([_0x1d07c8],null,_0x5e0f17)),null;}}else{const _0xf9fa59=_0x1d07c8['getIntersection'](_0x289137[_0x44db('0x16')]());null!==_0xf9fa59&&_0x289137[_0x44db('0xa5')]([_0xf9fa59],null,_0x5e0f17);}}if(_0x1d07c8[_0x44db('0x14')](),_0x1d07c8['isCollapsed']||_0x44db('0x7c')==_0x1d07c8[_0x44db('0x74')][_0x44db('0x108')])return null;let _0xb80bbf=null,_0x254c11=_0x1d07c8[_0x44db('0xb2')],_0x1434b8=_0x1d07c8[_0x44db('0x126')];const _0x4166bf=this['_findSuggestions'](_0x1d07c8,_0x44db('0x26'));for(const {suggestion:_0x46ee07,meta:_0x19a5f2}of _0x4166bf){const _0xb239a6=this[_0x44db('0xa')][_0x44db('0x3e')](_0x254c11,_0x1434b8);if(_0x19a5f2['isOwn']&&(this[_0x44db('0xec')]||!_0x19a5f2[_0x44db('0x112')]&&!_0x19a5f2['isInsideObject'])){if(_0x46ee07[_0x44db('0x67')]){if(!Ot(_0x46ee07,_0x5e0f17))continue;let _0x3f11ae=!0x0;for(const _0x15e988 of _0x46ee07[_0x44db('0x27')]()){if(_0x15e988['containsRange'](_0xb239a6,!0x0))return _0x46ee07;_0xb239a6[_0x44db('0x130')](_0x15e988)||(_0x3f11ae=!0x1);}_0x3f11ae&&_0x46ee07[_0x44db('0x50')]();}else{const _0xc64426=_0x46ee07[_0x44db('0x16')]();if(_0xc64426[_0x44db('0x130')](_0xb239a6,!0x0))return _0x46ee07;if(!Ot(_0x46ee07,_0x5e0f17)){_0xb239a6[_0x44db('0x130')](_0xc64426)?_0x46ee07[_0x44db('0xce')]():_0xc64426[_0x44db('0x137')](_0x254c11)?_0x254c11=_0xc64426['end']:_0xc64426[_0x44db('0x137')](_0x1434b8)&&(_0x1434b8=_0xc64426[_0x44db('0xb2')]);continue;}_0x254c11=_0x254c11['isBefore'](_0xc64426[_0x44db('0xb2')])?_0x254c11:_0xc64426[_0x44db('0xb2')],_0x1434b8=_0x1434b8[_0x44db('0x12')](_0xc64426[_0x44db('0x126')])?_0x1434b8:_0xc64426[_0x44db('0x126')],_0x5e0f17=Object[_0x44db('0x70')]({},_0x46ee07[_0x44db('0xa3')]),_0xb80bbf?_0xc64426[_0x44db('0xb2')][_0x44db('0x43')](_0xb80bbf[_0x44db('0x16')]()[_0x44db('0xb2')])?(_0xb80bbf[_0x44db('0xce')](),_0xb80bbf=_0x46ee07):_0x46ee07[_0x44db('0xce')]():_0xb80bbf=_0x46ee07;}}}if(_0xb80bbf)return this['_setSuggestionRange'](_0xb80bbf,this['_model'][_0x44db('0x3e')](_0x254c11,_0x1434b8)),_0xb80bbf;{const _0x1841e=_0x2ee776(),_0x58be39=this[_0x44db('0xa')]['createRange'](_0x254c11,_0x1434b8),_0x399af5=_0x1ab9d6['id'],_0x58c9c3=_0x3f1fe8?_0x44db('0xfd')+_0x3f1fe8:'deletion',_0x3b7fa1=this[_0x44db('0xdb')]({'id':_0x1841e,'type':_0x58c9c3,'createdAt':new Date(),'authorId':_0x399af5,'attributes':_0x5e0f17});return this['_addSuggestionMarker'](_0x58c9c3,_0x1841e,_0x399af5,_0x58be39),_0x3b7fa1;}}[_0x44db('0x15')](_0x5470b6,_0x193157='multi',_0x430851={}){const _0x1aae6a=this[_0x44db('0xcd')][_0x44db('0xd7')]['get']('Users')['me'],_0xef4b2f=_0x5470b6['map'](_0x44e210=>new _0x408c9a(_0x44e210[_0x44db('0xb2')],_0x44e210['end'])),_0x596b81=new Set();for(const {suggestion:_0x3293d6,meta:_0x4dd75c}of this[_0x44db('0xd2')](_0xef4b2f,'insertion'))_0x4dd75c[_0x44db('0xf8')]&&!_0x4dd75c['isNextTo']&&_0x596b81[_0x44db('0x53')](_0x3293d6);for(const _0x586b6f of _0x596b81)if(_0x586b6f[_0x44db('0x67')]){const _0x494048=_0x586b6f[_0x44db('0x27')]();(!_0x586b6f[_0x44db('0xa3')]||!_0x586b6f[_0x44db('0xa3')]['skipNestingCheck'])&&(_0x494048['every'](_0x148e19=>_0xef4b2f[_0x44db('0xa7')](_0x46317b=>_0x46317b['containsRange'](_0x148e19,!0x0)))&&_0x586b6f[_0x44db('0x50')]());if(_0xef4b2f[_0x44db('0x59')](_0x421e1=>_0x494048['some'](_0x2b1617=>_0x2b1617[_0x44db('0x130')](_0x421e1,!0x0)))){const _0x200044=this[_0x44db('0x98')]['getSuggestionCallback'](_0x44db('0x26'),_0x193157,_0x44db('0xdd'));return this[_0x44db('0xd')](()=>_0x200044(_0x5470b6,null,_0x430851)),null;}}else{const _0x52a28e=_0x586b6f[_0x44db('0x16')]();_0xef4b2f['some'](_0x464958=>_0x464958[_0x44db('0x130')](_0x52a28e,!0x0))&&_0x586b6f[_0x44db('0x50')]();if(_0xef4b2f[_0x44db('0x59')](_0x11e023=>_0x52a28e[_0x44db('0x130')](_0x11e023,!0x0))){const _0x264946=this[_0x44db('0x98')]['getSuggestionCallback']('deletion',_0x193157,_0x44db('0xdd'));return this['forceDefaultExecution'](()=>_0x264946(_0xef4b2f,null,_0x430851)),null;}}const _0x1613db=this['_suggestionFactory'][_0x44db('0x8c')](_0x44db('0x26'),_0x193157,_0x44db('0x57'));let _0x464fdd=null;for(const _0x4858df of this[_0x44db('0xbd')]())if(_0x4858df[_0x44db('0x28')]['id']==_0x1aae6a['id']&&_0x4858df[_0x44db('0x7b')]&&_0x44db('0x26')==_0x4858df[_0x44db('0x60')]&&_0x4858df[_0x44db('0x11')]==_0x193157&&Ot(_0x4858df,_0x430851)&&(_0x1613db(_0x4858df['getRanges'](),_0xef4b2f)||_0x1613db(_0xef4b2f,_0x4858df['getRanges']()))){if(_0x464fdd){if(_0x4858df[_0x44db('0x44')]&&_0x4858df[_0x44db('0x44')][_0x44db('0x3b')])continue;for(const _0xf66bbb of _0x4858df[_0x44db('0x27')]())_0x464fdd['isIntersectingWithRange'](_0xf66bbb)||_0x464fdd[_0x44db('0xd8')](_0xf66bbb);_0x4858df['removeMarkers']();}else{_0x464fdd=_0x4858df;for(const _0x53a52e of _0xef4b2f)_0x4858df[_0x44db('0xa4')](_0x53a52e)||_0x4858df[_0x44db('0xd8')](_0x53a52e);}}if(_0x464fdd)return _0x464fdd;_0x596b81[_0x44db('0xf0')]();for(const {suggestion:_0x9600a0,meta:_0x1c10e3}of this[_0x44db('0xd2')](_0xef4b2f,_0x44db('0x26')))_0x1c10e3[_0x44db('0xf8')]&&(this[_0x44db('0xec')]||!_0x1c10e3[_0x44db('0x112')]&&!_0x1c10e3['isInsideObject'])&&Ot(_0x9600a0,_0x430851)&&_0x596b81['add'](_0x9600a0);for(const _0x3c7fea of _0x596b81){const _0x3ef47d=_0x3c7fea['getRanges']();if(!_0x430851||!_0x430851[_0x44db('0x9d')]){if(_0xef4b2f[_0x44db('0x59')](_0x1d7503=>_0x3ef47d[_0x44db('0xa7')](_0x32da1a=>_0x32da1a[_0x44db('0x130')](_0x1d7503,!0x0))))return _0x3c7fea;}(!_0x3c7fea['attributes']||!_0x3c7fea[_0x44db('0xa3')][_0x44db('0x9d')])&&(_0x3ef47d[_0x44db('0x59')](_0x4876ef=>_0xef4b2f[_0x44db('0xa7')](_0x4d663c=>_0x4d663c[_0x44db('0x130')](_0x4876ef,!0x0)))&&_0x3c7fea[_0x44db('0x50')]());}const _0x45882c=_0x2ee776(),_0xc783ba=_0x1aae6a['id'],_0x5d5072=_0x44db('0xfd')+_0x193157,_0x503980=this[_0x44db('0xdb')]({'id':_0x45882c,'type':_0x5d5072,'createdAt':new Date(),'authorId':_0xc783ba,'attributes':_0x430851});for(const _0x2bafbe of _0xef4b2f)_0x2bafbe[_0x44db('0x14')](),_0x2bafbe['isCollapsed']||_0x44db('0x7c')==_0x2bafbe['root'][_0x44db('0x108')]||this[_0x44db('0x4a')](_0x5d5072,_0x45882c,_0xc783ba,_0x2bafbe,_0x30870e['getMultiRangeId']());return _0x503980;}[_0x44db('0xe7')](_0x1553bf,_0x3ce28c){const _0x53610c=_0x1553bf[_0x44db('0x89')]();this[_0x44db('0xa')][_0x44db('0x4d')](_0x5b5de6=>{_0x5b5de6[_0x44db('0xb6')](_0x53610c,{'range':_0x3ce28c});});}['_addThreadToSuggestion'](_0x1d64e7){const _0x45aef3=_0x1d64e7['id'],_0x1fda8b=this[_0x44db('0xcd')][_0x44db('0x48')]['get'](_0x44db('0x100'));this[_0x44db('0xff')]['hasCommentThread'](_0x45aef3)||this[_0x44db('0xff')][_0x44db('0x87')]({'channelId':_0x1fda8b,'threadId':_0x45aef3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x118b3b=this[_0x44db('0xff')][_0x44db('0xdc')](_0x45aef3);_0x118b3b[_0x44db('0xc7')](_0x44db('0x8')),_0x118b3b[_0x44db('0x8')]=!0x1,_0x1d64e7[_0x44db('0x44')]=_0x118b3b;}['_checkSuggestionCorrectness'](_0x1ad658,_0x5567b4,_0x1c7d8d,_0x3ac30c){if(_0x1ad658[_0x44db('0x60')]!=_0x5567b4||_0x1ad658[_0x44db('0x11')]!=_0x1c7d8d||_0x1ad658['creator']['id']!=_0x3ac30c)throw this[_0x44db('0xcd')][_0x44db('0x7e')](_0x44db('0x12c')),new _0x3aca7c(_0x44db('0x12c'),this);}[_0x44db('0x134')](_0x34fa6b,_0xf23e89){const _0x3f1393=_0x34fa6b['getFirstRange']();if(_0xf23e89[_0x44db('0xf7')](_0x3f1393))_0x34fa6b[_0x44db('0xce')]();else{if(_0x3f1393[_0x44db('0x130')](_0xf23e89)){const _0x2f4ce2=this[_0x44db('0xa')]['createPositionAt'](_0xf23e89[_0x44db('0xb2')][_0x44db('0x7d')],_0x44db('0x126'));this[_0x44db('0xe7')](_0x34fa6b,this[_0x44db('0xa')]['createRange'](_0x3f1393[_0x44db('0xb2')],_0x2f4ce2));const _0x564928=_0x2ee776(),_0x2c66ae=_0x34fa6b['creator']['id'],_0x5d83bc=_0x34fa6b[_0x44db('0x60')]+':'+_0x34fa6b['subType'];this[_0x44db('0xdb')]({'id':_0x564928,'type':_0x5d83bc,'createdAt':new Date(),'authorId':_0x2c66ae,'data':_0x34fa6b[_0x44db('0xe2')],'attributes':_0x34fa6b['attributes']});const _0x5f29bd=this[_0x44db('0xa')][_0x44db('0x7f')](_0xf23e89['end'][_0x44db('0xc6')],_0x44db('0x8b')),_0x2f5f7f=this[_0x44db('0xa')]['createRange'](_0x5f29bd,_0x3f1393[_0x44db('0x126')]);this[_0x44db('0x4a')](_0x5d83bc,_0x564928,_0x2c66ae,_0x2f5f7f);}else{if(_0x3f1393[_0x44db('0x137')](_0xf23e89[_0x44db('0xb2')])){const _0x5f2df4=this['_model'][_0x44db('0x7f')](_0xf23e89[_0x44db('0xb2')]['nodeBefore'],_0x44db('0x126'));this['_setSuggestionRange'](_0x34fa6b,this['_model'][_0x44db('0x3e')](_0x3f1393[_0x44db('0xb2')],_0x5f2df4));}else{const _0x2ed960=this[_0x44db('0xa')]['createPositionAt'](_0xf23e89[_0x44db('0x126')][_0x44db('0xc6')],_0x44db('0x8b'));this[_0x44db('0xe7')](_0x34fa6b,this[_0x44db('0xa')][_0x44db('0x3e')](_0x2ed960,_0x3f1393[_0x44db('0x126')]));}}}}[_0x44db('0xe6')](_0x5f1780){for(const {suggestion:_0x14c137,meta:_0x335886}of this[_0x44db('0xd2')](_0x5f1780,_0x44db('0x1d'))){if(!_0x335886[_0x44db('0xf8')])continue;const _0x2324bc=_0x14c137[_0x44db('0x27')]();for(const _0x8cd0b8 of _0x2324bc)if(!_0x5f1780['getDifference'](_0x8cd0b8)[_0x44db('0x3b')])return!0x0;}return!0x1;}[_0x44db('0x120')](_0x1f9600){const _0xb15425=this[_0x44db('0xcd')][_0x44db('0xd7')][_0x44db('0xac')](_0x44db('0x1e'))[_0x44db('0x10d')](_0x1f9600);if(!_0xb15425)throw new _0x3aca7c('track-changes-user-not-found',this);return _0xb15425;}[_0x44db('0x31')](_0x30abde){const _0x7204a9=this[_0x44db('0xcd')][_0x44db('0xd7')][_0x44db('0xac')](_0x44db('0x1e')),_0x499a3a=_0x5d6662(_0x44db('0x66')+_0x30abde),_0x2a6fc5=_0x7204a9[_0x44db('0x10d')](_0x499a3a);return _0x2a6fc5||_0x7204a9[_0x44db('0xe0')]({'id':_0x499a3a,'name':_0x30abde});}[_0x44db('0x68')](_0x4661d5,_0x1e7340,_0x3354bb,_0xd30760,_0x2c6df0){const _0x5361af=this[_0x44db('0x120')](_0xd30760),_0x20ea10=this[_0x44db('0x98')]['buildSuggestion'](_0x4661d5,_0x1e7340,_0x3354bb,_0x5361af,_0x2c6df0,_0x340377=>this[_0x44db('0x13d')](_0x3354bb,{'attributes':_0x340377}));return this[_0x44db('0xc2')](_0x20ea10,_0x44db('0xdd'),()=>{this[_0x44db('0x13d')](_0x3354bb,{'state':_0x44db('0x12a')});},{'priority':_0x44db('0x11a')}),this[_0x44db('0xc2')](_0x20ea10,_0x44db('0x50'),()=>{this[_0x44db('0x13d')](_0x3354bb,{'state':_0x44db('0xf2')});},{'priority':'high'}),this[_0x44db('0x5')][_0x44db('0x6f')](_0x3354bb,_0x20ea10),this[_0x44db('0x99')]['set'](_0x20ea10,_0x44db('0x11c')),_0x20ea10;}['_splitMarkerName'](_0x34dcad){const _0x40e9bd=_0x34dcad['split'](':');return{'group':_0x40e9bd[0x0],'type':_0x40e9bd[0x1],'subType':_0x40e9bd[_0x44db('0x3b')]>=0x5?_0x40e9bd[0x2]:null,'id':_0x40e9bd[_0x44db('0x3b')]<0x5?_0x40e9bd[0x2]:_0x40e9bd[0x3],'authorId':_0x40e9bd[_0x44db('0x3b')]<0x5?_0x40e9bd[0x3]:_0x40e9bd[0x4],'markerCount':0x6==_0x40e9bd[_0x44db('0x3b')]?_0x40e9bd[0x5]:null};}[_0x44db('0x5c')](_0xf3de5e,_0x55121b,_0x5ba971){const _0x42f42d=_0xf3de5e[_0x44db('0x16')](),_0x5bd867=_0x42f42d[_0x44db('0xb2')],_0x2d13e2=_0x42f42d[_0x44db('0x126')];this['_setSuggestionRange'](_0xf3de5e,this[_0x44db('0xa')][_0x44db('0x3e')](_0x5bd867,_0x55121b));const _0x3c0f17=_0x2ee776(),_0x138723=_0xf3de5e[_0x44db('0x82')]['id'],_0x3e5823=_0xf3de5e['type']+(_0xf3de5e[_0x44db('0x11')]?':'+_0xf3de5e[_0x44db('0x11')]:'');this['_setSuggestionData']({'id':_0x3c0f17,'type':_0x3e5823,'createdAt':new Date(),'authorId':_0x138723,'originalSuggestionId':_0xf3de5e['id'],'attributes':_0xf3de5e[_0x44db('0xa3')],'data':_0xf3de5e[_0x44db('0xe2')]}),_0x44db('0xbb')==_0xf3de5e[_0x44db('0x60')]&&(_0x5ba971=this['_model'][_0x44db('0x47')](_0x5ba971[_0x44db('0xc6')])),this[_0x44db('0x4a')](_0x3e5823,_0x3c0f17,_0x138723,this[_0x44db('0xa')]['createRange'](_0x5ba971,_0x2d13e2));}['_findSuggestions'](_0x5b0890,_0x41fa4f=null){const _0x4eb55b=[],_0x3a099c=this['editor']['plugins']['get'](_0x44db('0x1e'))['me'];Array[_0x44db('0x61')](_0x5b0890)||(_0x5b0890=[_0x5b0890]);for(const _0x32b7de of this['getSuggestions']()){if(!_0x32b7de[_0x44db('0x7b')])continue;if(_0x41fa4f&&_0x32b7de[_0x44db('0x60')]!=_0x41fa4f)continue;let _0x2006bb=!0x1;for(const _0x3930bc of _0x32b7de['getRanges']()){for(const _0x50150d of _0x5b0890){const _0x22f9f1=_0x50150d['start'][_0x44db('0xf7')](_0x3930bc[_0x44db('0x126')])||_0x50150d[_0x44db('0x126')][_0x44db('0xf7')](_0x3930bc['start']);if(_0x22f9f1||_0x50150d[_0x44db('0x12e')](_0x3930bc)){const _0x351a59=_0x50150d['containsRange'](_0x3930bc)&&_t(this['_model'][_0x44db('0x138')],_0x3930bc['start'],_0x50150d),_0x3ae147=_0x3930bc['containsRange'](_0x50150d)&&_t(this[_0x44db('0xa')]['schema'],_0x50150d[_0x44db('0xb2')],_0x3930bc);_0x4eb55b[_0x44db('0x2d')]({'suggestion':_0x32b7de,'meta':{'isOwn':_0x3a099c==_0x32b7de[_0x44db('0x28')],'isNextTo':_0x22f9f1,'isInsideObject':_0x351a59,'containsRangeInObject':_0x3ae147}}),_0x2006bb=!0x0;break;}}if(_0x2006bb)break;}}return _0x4eb55b;}[_0x44db('0x4a')](_0x2aeb42,_0x4769c5,_0x14ac62,_0xc0a84f,_0x190ec5){this['_model'][_0x44db('0x4d')](_0x17b615=>{let _0x508b9d='suggestion:'+_0x2aeb42+':'+_0x4769c5+':'+_0x14ac62;_0x190ec5&&(_0x508b9d=_0x508b9d+':'+_0x190ec5),_0x17b615['addMarker'](_0x508b9d,{'range':_0xc0a84f,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x44db('0x122')](_0x3f7bbf){const _0x43ed4e=_0x3f7bbf['previous'],_0x1608f6=_0x3f7bbf[_0x44db('0x110')];_0x3f7bbf[_0x44db('0x123')]=null,null!=_0x43ed4e&&(_0x43ed4e[_0x44db('0x110')]=null),_0x3f7bbf[_0x44db('0x110')]=null,null!=_0x1608f6&&(_0x1608f6[_0x44db('0x123')]=null),_0x44db('0x1c')==this[_0x44db('0x99')][_0x44db('0xac')](_0x3f7bbf)&&(this[_0x44db('0x99')][_0x44db('0x6f')](_0x3f7bbf,_0x44db('0x2a')),this[_0x44db('0x1a')](_0x44db('0xf4'),_0x3f7bbf,_0x43ed4e,_0x1608f6));}[_0x44db('0xdb')](_0x11c180){const _0x1a5665=_0x11c180['id'],_0x22da8d=this[_0x44db('0xca')](_0x11c180);if(this['_adapter']&&this['_adapter'][_0x44db('0x102')]){const _0x45d280=this['editor']['plugins'][_0x44db('0xac')](_0x44db('0xe3')),_0x27baf9=_0x22da8d[_0x44db('0x1b')],_0x4c24dc=_0x22da8d['subType']?_0x22da8d['type']+':'+_0x22da8d[_0x44db('0x11')]:_0x22da8d['type'],_0x2e8372=this[_0x44db('0xcd')][_0x44db('0x56')],_0x3f2170=_0x45d280[_0x44db('0x53')](_0x1e3427(_0x2e8372,_0x44db('0x6d'))),_0x4a148b={'id':_0x1a5665,'type':_0x4c24dc,'hasComments':_0x27baf9,'data':_0x11c180[_0x44db('0xe2')]||null,'originalSuggestionId':_0x11c180[_0x44db('0xae')]||null,'attributes':_0x22da8d[_0x44db('0xa3')]};this[_0x44db('0x106')]['addSuggestion'](_0x4a148b)[_0x44db('0x77')](_0x26f778=>{_0x22da8d[_0x44db('0x32')]=!0x0,_0x45d280['remove'](_0x3f2170),_0x26f778&&_0x26f778['createdAt']&&(this[_0x44db('0x5')][_0x44db('0xac')](_0x1a5665)[_0x44db('0x72')]=_0x26f778[_0x44db('0x72')]);})['catch'](_0x1ab675=>{throw _0x10c94e('error-saving-suggestion-data-suggestion-discarded'),this[_0x44db('0xcd')][_0x44db('0xab')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x22da8d['discard']();}),_0x22da8d[_0x44db('0x13')](),this[_0x44db('0x5')][_0x44db('0x101')](_0x22da8d['id']),this[_0x44db('0x99')][_0x44db('0x101')](_0x22da8d),_0x1ab675;});}return _0x22da8d;}[_0x44db('0x13d')](_0xa7fd0a,_0x5d87ac){const _0x34db55=this[_0x44db('0xcd')][_0x44db('0xd7')][_0x44db('0xac')](_0x44db('0xe3')),_0x4d5ffd=this[_0x44db('0x94')](_0xa7fd0a);if(this[_0x44db('0x106')]&&this[_0x44db('0x106')]['updateSuggestion']){if(_0x4d5ffd['_saved']){const _0x1328fd=_0x34db55[_0x44db('0x53')](_0x1e3427(this[_0x44db('0xcd')][_0x44db('0x56')],_0x44db('0x6d')));this[_0x44db('0x106')][_0x44db('0x107')](_0xa7fd0a,_0x5d87ac)[_0x44db('0x77')](()=>{_0x34db55[_0x44db('0x131')](_0x1328fd);});}else _0x4d5ffd['on']('change:_saved',()=>{this[_0x44db('0x13d')](_0xa7fd0a,_0x5d87ac);});}}[_0x44db('0x10a')](_0x3e24e0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3aca7c(_0x44db('0xf5'),this);return this[_0x44db('0x106')]['getSuggestion'](_0x3e24e0);}['_handleNewSuggestionMarker'](_0x45ca3b){const {id:_0x2bbe15,type:_0x101c39,subType:_0x12f8c3,authorId:_0x48b7d1}=this['_splitMarkerName'](_0x45ca3b),_0x36f441=this[_0x44db('0x5')][_0x44db('0xac')](_0x2bbe15)||this['_createSuggestion'](_0x101c39,_0x12f8c3,_0x2bbe15,_0x48b7d1,{});switch(this['_checkSuggestionCorrectness'](_0x36f441,_0x101c39,_0x12f8c3,_0x48b7d1),this[_0x44db('0x99')][_0x44db('0xac')](_0x36f441)){case _0x44db('0x11c'):this['_getSuggestionData'](_0x2bbe15)[_0x44db('0x77')](_0x26fe77=>{let _0xda9780=Promise[_0x44db('0xb3')]();_0x26fe77[_0x44db('0x1b')]&&(_0xda9780=this['_commentsRepository'][_0x44db('0x3f')]({'channelId':this[_0x44db('0xcd')][_0x44db('0x48')][_0x44db('0xac')]('collaboration.channelId'),'threadId':_0x2bbe15})),_0xda9780[_0x44db('0x77')](()=>{this['addSuggestionData'](_0x26fe77)['_saved']=!0x0;});}),this[_0x44db('0x99')][_0x44db('0x6f')](_0x36f441,_0x44db('0x119'));break;case _0x44db('0x2a'):this[_0x44db('0x13d')](_0x2bbe15,{'state':_0x44db('0x76')});case _0x44db('0x78'):this[_0x44db('0x99')][_0x44db('0x6f')](_0x36f441,_0x44db('0x1c')),this[_0x44db('0x1a')](_0x44db('0x75'),_0x36f441);break;case _0x44db('0x1c'):this[_0x44db('0x1a')]('suggestionChanged',_0x36f441);}return _0x36f441[_0x44db('0x29')](_0x45ca3b),_0x36f441;}['_refreshSuggestionsChain'](_0x5d7d3c){const _0x176827=Array[_0x44db('0xa2')](_0x5d7d3c)['filter'](_0x39ea56=>!_0x39ea56['isMultiRange']),_0x3cf615=this[_0x44db('0xbd')]({'skipNotAttached':!0x0})[_0x44db('0x85')](_0x57feae=>!_0x57feae['isMultiRange']),_0x464846=_0x3cf615[_0x44db('0x85')](_0x10a15d=>!_0x5d7d3c[_0x44db('0xb1')](_0x10a15d)),_0x1d7e54=new Map(_0x3cf615[_0x44db('0xe')](_0x16eb7a=>[_0x16eb7a,this[_0x44db('0x98')][_0x44db('0x8c')](_0x16eb7a['type'],_0x16eb7a[_0x44db('0x11')],_0x44db('0x40'))])),_0x4a4fd5=new Map(_0x3cf615[_0x44db('0xe')](_0x3d586b=>[_0x3d586b,_0x3d586b['getFirstRange']()])),_0x1a3853=new Set(),_0x56c0f0=new Set();for(let _0x54699e=0x0;_0x54699e<_0x176827[_0x44db('0x3b')];_0x54699e++)_0x3a8c19(_0x176827[_0x54699e],_0x176827,_0x54699e+0x1);for(let _0x7922c1=0x0;_0x7922c1<_0x176827['length'];_0x7922c1++)_0x3a8c19(_0x176827[_0x7922c1],_0x464846,0x0);for(let _0x4b07b5=0x0;_0x4b07b5<_0x176827[_0x44db('0x3b')];_0x4b07b5++){const _0x1ccb4e=_0x176827[_0x4b07b5];!_0x56c0f0[_0x44db('0xb1')](_0x1ccb4e)&&_0x1ccb4e[_0x44db('0x123')]&&(_0x1ccb4e['previous']['next']===_0x1ccb4e&&(_0x1ccb4e[_0x44db('0x123')]['next']=null),_0x1ccb4e[_0x44db('0x123')]=null),!_0x1a3853[_0x44db('0xb1')](_0x1ccb4e)&&_0x1ccb4e['next']&&(_0x1ccb4e[_0x44db('0x110')][_0x44db('0x123')]===_0x1ccb4e&&(_0x1ccb4e['next']['previous']=null),_0x1ccb4e['next']=null);}function _0x3a8c19(_0x3f86ca,_0x44f615,_0x13236e){for(let _0xdee1db=_0x13236e;_0xdee1db<_0x44f615[_0x44db('0x3b')];_0xdee1db++){const _0x6aeaaf=_0x2fd2d9(_0x3f86ca,_0x44f615[_0xdee1db]);_0x6aeaaf&&(_0x6aeaaf[0x0][_0x44db('0x110')]=_0x6aeaaf[0x1],_0x6aeaaf[0x1][_0x44db('0x123')]=_0x6aeaaf[0x0],_0x1a3853[_0x44db('0x53')](_0x6aeaaf[0x0]),_0x56c0f0[_0x44db('0x53')](_0x6aeaaf[0x1]));}}function _0x2fd2d9(_0x5c84bd,_0x4c0c5a){if(_0x5c84bd[_0x44db('0x28')]['id']!==_0x4c0c5a[_0x44db('0x28')]['id'])return null;const _0xca5ee8=_0x1d7e54[_0x44db('0xac')](_0x5c84bd)(_0x5c84bd,_0x4c0c5a,_0x4a4fd5[_0x44db('0xac')](_0x5c84bd),_0x4a4fd5[_0x44db('0xac')](_0x4c0c5a));if(!_0xca5ee8)return null;return _0x1d7e54[_0x44db('0xac')](_0x4c0c5a)(_0x5c84bd,_0x4c0c5a,_0x4a4fd5[_0x44db('0xac')](_0x5c84bd),_0x4a4fd5['get'](_0x4c0c5a))?_0xca5ee8[0x1][_0x44db('0x44')]&&_0xca5ee8[0x1][_0x44db('0x44')][_0x44db('0x3b')]?null:_0xca5ee8:null;}}[_0x44db('0x13c')](_0x47fb8d){const _0x241bd8=Array['from'](_0x47fb8d),_0xbbed5=this[_0x44db('0xbd')]({'skipNotAttached':!0x0}),_0xccb407=_0xbbed5['filter'](_0x208ac1=>!_0x47fb8d[_0x44db('0xb1')](_0x208ac1)),_0x434f12=new Map(_0x241bd8['map'](_0x2a6f9f=>[_0x2a6f9f,this[_0x44db('0x98')]['getSuggestionCallback'](_0x2a6f9f[_0x44db('0x60')],_0x2a6f9f['subType'],_0x44db('0x57'))])),_0x28f47b=new Map(_0xbbed5[_0x44db('0xe')](_0x41d655=>[_0x41d655,_0x41d655['getRanges']()]));for(let _0x68b98d=0x0;_0x68b98d<_0x241bd8[_0x44db('0x3b')];_0x68b98d++){if(_0x406b58(this,_0x241bd8[_0x68b98d],_0x241bd8,_0x68b98d+0x1))return!0x0;}for(let _0x33ee9a=0x0;_0x33ee9a<_0x241bd8[_0x44db('0x3b')];_0x33ee9a++){if(_0x406b58(this,_0x241bd8[_0x33ee9a],_0xccb407,0x0))return!0x0;}return!0x1;function _0x406b58(_0x192325,_0x2a51d8,_0x2d2e88,_0x2c64fd){for(let _0x43cc9f=_0x2c64fd;_0x43cc9f<_0x2d2e88[_0x44db('0x3b')];_0x43cc9f++){const _0x2d8fb6=_0x2d2e88[_0x43cc9f];if(_0x2d8fb6[_0x44db('0x60')]!==_0x2a51d8['type']||_0x2d8fb6[_0x44db('0x28')]['id']!==_0x2a51d8[_0x44db('0x28')]['id']||_0x2d8fb6[_0x44db('0x11')]!==_0x2a51d8[_0x44db('0x11')])continue;if(!Ut(_0x2a51d8,_0x2d8fb6))continue;const _0x285de5=_0x434f12['get'](_0x2a51d8),_0x54ccd2=_0x28f47b['get'](_0x2a51d8),_0xaf52a5=_0x28f47b[_0x44db('0xac')](_0x2d8fb6),_0x5a4616=_0x2a51d8['commentThread']&&_0x2a51d8['commentThread']['length'],_0x4a8ae0=_0x2d8fb6[_0x44db('0x44')]&&_0x2d8fb6[_0x44db('0x44')]['length'];if(!_0x5a4616&&_0x285de5(_0xaf52a5,_0x54ccd2))return _0x192325['_joinSuggestions'](_0x2d8fb6,_0x2a51d8),_0x28f47b[_0x44db('0x101')](_0x2a51d8),!0x0;if(!_0x4a8ae0&&_0x285de5(_0x54ccd2,_0xaf52a5))return _0x192325[_0x44db('0x121')](_0x2a51d8,_0x2d8fb6),_0x28f47b['delete'](_0x2d8fb6),!0x0;}return!0x1;}}[_0x44db('0x121')](_0x20c5af,_0x5e603e){if(_0x20c5af['isMultiRange'])for(const _0x3ae81d of _0x5e603e[_0x44db('0x27')]())_0x20c5af['addRange'](_0x3ae81d);else{const _0x46e23b=_0x5e603e['getFirstRange']()[_0x44db('0x126')];this[_0x44db('0xe7')](_0x20c5af,this[_0x44db('0xa')][_0x44db('0x3e')](_0x20c5af[_0x44db('0x16')]()[_0x44db('0xb2')],_0x46e23b));}_0x5e603e[_0x44db('0xce')]();}}class Bt{constructor(_0x372e91){this[_0x44db('0x86')]=_0x372e91,this[_0x44db('0xa')]=_0x372e91[_0x44db('0xab')],this[_0x44db('0x3a')]=new Map(),this[_0x44db('0x4c')]=new Map(),this[_0x44db('0x2b')]();}[_0x44db('0x6a')](_0x1ab553,_0x21a4c5,_0x4c05d5,_0x4afd2d,_0x296c32,_0x463a93){return new _0x30870e(this[_0x44db('0xa')],{'type':_0x1ab553,'subType':_0x21a4c5,'id':_0x4c05d5,'author':_0x4afd2d,'creator':_0x4afd2d,'attributes':_0x296c32,'onAttributesChange':_0x463a93,'onAccept':(..._0x38fe7c)=>this[_0x44db('0x8c')](_0x1ab553,_0x21a4c5,_0x44db('0xdd'))(..._0x38fe7c),'onDiscard':(..._0x53e747)=>this[_0x44db('0x8c')](_0x1ab553,_0x21a4c5,_0x44db('0x50'))(..._0x53e747)});}['registerCustomCallback'](_0x50867d,_0x51e721,_0x2b0b11,_0x581fda){const _0x584bed=_0x50867d+':'+_0x51e721+':'+_0x2b0b11;this['_customCallbacks']['set'](_0x584bed,_0x581fda);}[_0x44db('0x8c')](_0x11b04f,_0x334781,_0x5a663c){const _0x4afc62=_0x11b04f+':'+_0x334781+':'+_0x5a663c;return this[_0x44db('0x3a')][_0x44db('0xac')](_0x4afc62)||this[_0x44db('0x4c')][_0x44db('0xac')](_0x11b04f+':'+_0x5a663c);}['_registerDefaultCallbacks'](){const _0x4a142e=()=>!0x1,_0x246eb3=_0x4deff0=>{_0x4deff0[_0x44db('0x22')]((_0x3a8792,_0x3fb7fa)=>_0x3a8792['start'][_0x44db('0x43')](_0x3fb7fa['start'])?0x1:-0x1),this[_0x44db('0xa')][_0x44db('0x4d')](_0x4890a6=>{for(const _0x1643d6 of _0x4deff0){let _0x3a4bca;_0x3a4bca=_0x1643d6[_0x44db('0x126')][_0x44db('0x5d')]&&_0x1643d6[_0x44db('0x126')]['parent']==_0x1643d6[_0x44db('0xb2')][_0x44db('0x104')]?_0x4890a6[_0x44db('0xe5')](_0x1643d6[_0x44db('0xb2')][_0x44db('0x104')],'on'):_0x4890a6[_0x44db('0xe5')](_0x1643d6),this['_model'][_0x44db('0x19')](_0x3a4bca,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1cca6a=(_0x2a6c55,_0x2ae8cb)=>{this[_0x44db('0xa')][_0x44db('0x4d')](_0x16f01f=>{const {commandName:_0x557304,commandParams:_0x263a8b=[]}=_0x2ae8cb,_0x489e63=_0x2a6c55[_0x44db('0xe')](_0x3581fd=>(Mt(_0x3581fd)&&(_0x3581fd=this['_model'][_0x44db('0x3e')](_0x3581fd['end'])),_0x3581fd))['filter'](_0x40f4c2=>_0x44db('0x7c')!==_0x40f4c2['root'][_0x44db('0x108')]);if(_0x489e63['length']<0x1)return;const _0x37f36e=Array[_0x44db('0xa2')](this['_model'][_0x44db('0x3')]['selection'][_0x44db('0x27')]())[_0x44db('0xe')](_0x3f05d7=>_0x408c9a[_0x44db('0x6b')](_0x3f05d7));_0x16f01f[_0x44db('0x71')](_0x489e63);for(const _0x2695dc of this[_0x44db('0x86')][_0x44db('0x9e')][_0x44db('0x9e')]())_0x2695dc['refresh']();_0x263a8b[_0x44db('0x2d')]({'forceDefaultExecution':!0x0}),this[_0x44db('0x86')][_0x44db('0xc')](_0x557304,..._0x263a8b);const _0x5092bd=_0x37f36e[_0x44db('0x85')](_0x422c9c=>_0x44db('0x7c')!=_0x422c9c['root'][_0x44db('0x108')]);_0x5092bd[_0x44db('0x3b')]>0x0&&_0x16f01f['setSelection'](_0x5092bd);for(const _0x2ea8f0 of _0x37f36e)_0x2ea8f0[_0x44db('0x14')]();});},_0x5e2d44=(_0x243754,_0x23ad51)=>0x1==_0x243754[_0x44db('0x3b')]&&0x1==_0x23ad51[_0x44db('0x3b')]&&_0x243754[0x0][_0x44db('0x126')][_0x44db('0xf7')](_0x23ad51[0x0][_0x44db('0xb2')]),_0x4299f9=(_0x3c224a,_0x21da01,_0x399b61,_0x52ced0)=>xt(_0x3c224a,_0x21da01,_0x399b61,_0x52ced0,this['_model'])?[_0x3c224a,_0x21da01]:xt(_0x21da01,_0x3c224a,_0x52ced0,_0x399b61,this[_0x44db('0xa')])?[_0x21da01,_0x3c224a]:null;this['_defaultCallbacks'][_0x44db('0x6f')](_0x44db('0x95'),_0x4a142e),this[_0x44db('0x4c')][_0x44db('0x6f')](_0x44db('0x10e'),_0x246eb3),this[_0x44db('0x4c')][_0x44db('0x6f')]('insertion:join',_0x5e2d44),this['_defaultCallbacks']['set'](_0x44db('0x18'),_0x4299f9),this['_defaultCallbacks']['set'](_0x44db('0x7'),_0x246eb3),this[_0x44db('0x4c')][_0x44db('0x6f')]('deletion:discard',_0x4a142e),this['_defaultCallbacks'][_0x44db('0x6f')](_0x44db('0x11e'),_0x5e2d44),this[_0x44db('0x4c')][_0x44db('0x6f')]('deletion:chain',_0x4299f9),this[_0x44db('0x4c')][_0x44db('0x6f')](_0x44db('0x10c'),_0x1cca6a),this['_defaultCallbacks'][_0x44db('0x6f')](_0x44db('0x4e'),_0x4a142e),this[_0x44db('0x4c')][_0x44db('0x6f')]('formatInline:join',_0x5e2d44),this[_0x44db('0x4c')][_0x44db('0x6f')]('formatInline:chain',_0x4a142e),this['_defaultCallbacks'][_0x44db('0x6f')](_0x44db('0x9'),_0x1cca6a),this[_0x44db('0x4c')][_0x44db('0x6f')]('formatBlock:discard',_0x4a142e),this[_0x44db('0x4c')][_0x44db('0x6f')](_0x44db('0xa1'),_0x5e2d44),this[_0x44db('0x4c')][_0x44db('0x6f')]('formatBlock:chain',_0x4a142e);}}function _t(_0x58eaa4,_0x3785ed,_0x29c23c){for(const _0x586f46 of _0x3785ed['parent'][_0x44db('0xa0')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x586f46[_0x44db('0x74')]==_0x586f46)return!0x1;if(!_0x29c23c['containsItem'](_0x586f46))return!0x1;if(_0x58eaa4[_0x44db('0x54')](_0x586f46)||_0x58eaa4[_0x44db('0xb')](_0x586f46))return!0x0;}return!0x1;}function Mt(_0x4350d7){return _0x4350d7[_0x44db('0x126')][_0x44db('0xc6')]==_0x4350d7[_0x44db('0xb2')][_0x44db('0x104')]&&_0x4350d7[_0x44db('0x126')]['isAtStart'];}function $t(_0x193096,_0x59ce88,_0x42a000,_0x283173){const _0x5ec86e=_0x4cafa5=>!_0x4cafa5['item']['is'](_0x44db('0x38'))&&!_0x283173[_0x44db('0x54')](_0x4cafa5[_0x44db('0xf3')]),_0x59333b=_0x193096[_0x44db('0xb2')]['getLastMatchingPosition'](_0x5ec86e),_0x2d9f73=_0x193096['end'][_0x44db('0x64')](_0x5ec86e,{'direction':_0x44db('0xba')});return(!_0x193096[_0x44db('0xb2')][_0x44db('0xf7')](_0x59333b)||!_0x193096[_0x44db('0x126')][_0x44db('0xf7')](_0x2d9f73))&&(_0x59333b[_0x44db('0x43')](_0x2d9f73)?_0x42a000[_0x44db('0xb6')](_0x59ce88,{'range':_0x42a000['createRange'](_0x59333b,_0x2d9f73)}):_0x42a000[_0x44db('0x13e')](_0x59ce88),!0x0);}function Nt(_0x1f9eb8){return _0x5d6662(_0x1f9eb8);}function Rt(_0xcca7e5){const _0xd1f187=_0xcca7e5[_0x44db('0xb2')][_0x44db('0x104')];return _0xd1f187&&_0xd1f187['is'](_0x44db('0x6e'));}function jt(_0xfd59a1,_0xc8ba66){const _0x2f1162=_0xc8ba66[_0x44db('0x138')][_0x44db('0x54')](_0xfd59a1)||_0xc8ba66[_0x44db('0x138')][_0x44db('0xb4')](_0xfd59a1);return _0xc8ba66[_0x44db('0x3e')](_0xc8ba66['createPositionAt'](_0xfd59a1,_0x44db('0x51')),_0x2f1162?_0xc8ba66[_0x44db('0xd1')](_0xfd59a1):_0xc8ba66[_0x44db('0x7f')](_0xfd59a1,_0x44db('0x126')));}function xt(_0x5c483f,_0x3a4e1f,_0x3c381f,_0x57682a,_0x4924c7){if(!Ut(_0x5c483f,_0x3a4e1f))return!0x1;if(_0x3c381f[_0x44db('0x126')][_0x44db('0xf7')](_0x57682a[_0x44db('0xb2')]))return!0x0;if(_0x5c483f[_0x44db('0x60')]!=_0x3a4e1f[_0x44db('0x60')])return!0x1;if(!_0x3c381f[_0x44db('0x126')]['isTouching'](_0x57682a[_0x44db('0xb2')]))return!0x1;const _0x48d671=_0x4924c7[_0x44db('0x3e')](_0x3c381f[_0x44db('0x126')],_0x57682a[_0x44db('0xb2')])[_0x44db('0xbf')]();for(const _0x3e7eae of _0x48d671)if([_0x44db('0x37'),_0x44db('0xd0')][_0x44db('0xb8')](_0x3e7eae[_0x44db('0x60')])&&_0x4924c7['schema']['isLimit'](_0x3e7eae[_0x44db('0xf3')]))return!0x1;return!0x0;}function Ut(_0x1c1ced,_0x45f096){return!(!_0x1c1ced[_0x44db('0x33')]||!_0x45f096['_isDataLoaded'])&&_0x570e25(_0x1c1ced[_0x44db('0xa3')],_0x45f096[_0x44db('0xa3')]);}function Ot(_0x4c106d,_0x19c183){const _0x5b887a=Et(_0x4c106d['attributes']),_0x2abc87=Et(_0x19c183);if(!_0x4c106d[_0x44db('0x33')])return!0x1;for(const _0x4be989 of Object[_0x44db('0x0')](_0x2abc87))if(!_0x570e25(_0x5b887a[_0x4be989],_0x2abc87[_0x4be989]))return!0x1;return!0x0;}function Et(_0x5a7079){const _0x42c4af=Object[_0x44db('0x70')]({},_0x5a7079);return delete _0x42c4af['skipNestingCheck'],delete _0x42c4af[_0x44db('0xfc')],_0x42c4af;}
|
|
23
|
+
const _0xd641=['enableReadOnlyMode','value','markBlockFormat','backward','acceptAllSuggestions','discardSelectedSuggestions','_suggestionFactory','_refreshSuggestionsChain','insertContent','never','createPositionAt','map','oldRange','discard','formatBlock:chain','acceptSuggestion','documentSelection','containsRange','_getExternalAuthor','_descriptionFactory','plugins','isCollapsed','_adapter','targetPosition','author','group','containsItem','createRangeIn','fromCharCode','markerNameToElements','position','markers','formatInline:','isTouching','size','_createSuggestion','showSuggestionHighlights','_updateSuggestionData','isEqual','elementEnd','track-changes-suggestion-not-found','every','_suggestions','conversion','nodeAfter','formatGroupId','change:data','rethrowUnexpectedError','markMultiRangeDeletion','containsRangeInObject','upcast','addComment','clear','reconvertMarker','stop','track-changes-user-not-found','getAttribute','splice','_model','root','head','resolve','skipNestingCheck','isDocumentOperation','addHighlight','isBefore','remove','commands','previous','isOwn','trackChanges.mergeNestedSuggestions','data','markInsertion','addMarker','deleteContent','_getAuthorFromId','containerElement','init','ck-suggestion-marker','listenTo','next','getChanges','formatBlock:accept','_suggestionState','filter','low','_findSuggestions','setSelection','set','sort','createPositionAfter','removed','@external','hasSuggestion','PendingActions','addMarkerName','addSuggestionData','buildSuggestion','isAfter','createSelection','trackChanges','length','selection','for','always','getRange','ck-suggestion-marker--active','adapter','attributes','model','config','add','push','mapper','delete','getFirstMarker','deletion:join','before','editor','track-changes-adapter-missing-getsuggestion','writer','moveTargetPosition','dataDowncast','insertion:join','track-changes-suggestion-data-mismatch','collaboration.channelId','range','rootName','_commentsRepository','registerCustomCallback','_registerDefaultCallbacks','_handleNewSuggestionMarker','subType','getUser','requires','_addThreadToSuggestion','define','_onDiscard','editingDowncast','then','rejected','fire','formatBlock:discard','change','insertion:','insertion:discard','_editor','activeMarkers','$marker','addCommentThread','addMarker:suggestion','trackChangesCommand','markDeletion','discardAllSuggestions','formatBlock:','isIntersectingWithRange','discardSuggestion','suggestion-type','_isForcedDefaultExecutionBlock','isAtEnd','creator','values','_setSuggestionData','fetchCommentThread','lowest','_cutOutSuggestionMarker','PENDING_ACTION_SUGGESTION','isInsideObject','_checkSuggestionCorrectness','isMultiRange','insertion','_addSuggestionMarker','_joinWithAdjacentSuggestions','isBlock','containsPosition','from','isObject','getSuggestionCallback','getItems','removeMarkers','pluginName','markInlineFormat','_joinSuggestions','_mergeNestedSuggestions','enableCommand','removeComment','updateSuggestion','_isDataLoaded','isRemovable','split','insert','originalSuggestionId','assign','suggestion:','addSuggestion','getAllAdjacentSuggestions','createRange','insertion:accept','dataToMarker','deletion','markerToData','notReady','TrackChangesEditing','setTo','_enabledCommands','_rangeIsInLocalUserInsertion','multi','isInContent','getShiftedBy','_setSuggestionRange','deletion:accept','marker-count','removeClass','toJSON','chain','ready','suggestion','suggestionLoaded','addMarker:suggestion:formatBlock','name','isLimit','$graveyard','getCustomProperty','formatBlock','getFirstRange','_trackFormatChanges','default','getSuggestion','applyOperation','forceDefaultExecution','Users','createdAt','document','newRange','_breakSuggestionMarker','options','removeAttribute','commentThread','deletion:chain','track-changes-adapter-already-set','isArray','suggestionUnloaded','removeMarker:suggestion:formatBlock','_getSuggestionData','commandName','detach','open','_defaultCallbacks','getNearestSelectionRange','ck-suggestion-marker-formatBlock','consume','_splitMarkerName','getRanges','schema','end','addRange','markerName','getWalker','addClass','differ','markMultiRangeBlockFormat','registerPostFixer','getMultiRangeId','get','execute','consumable','type','getIntersection','unbindElementFromMarkerName','after','external:','deletion:discard','return','accept','$textProxy','howMany','authoredAt','insertion:chain','high','deletion:','removeMarker','hasCommentThread','normal','CommentsRepository','catch','isNextTo','substr','unbind','getLastMatchingPosition','updateMarker','_removeSuggestion','formatInline:discard','has','forward','start','markerReady','getSuggestions','markerToHighlight','acceptSelectedSuggestions','multipleBlocks','isUndo','getDifference','setAttribute','_saved','change:activeMarkers','item','formatInline','parent','dataReady','authorName','toViewElement','_customCallbacks','hasComments','nodeBefore','some','suggestionChanged','join','element','trackChanges.trackFormatChanges','locale'];(function(_0x350de5,_0xd641a4){const _0x114e44=function(_0x2ba1c7){while(--_0x2ba1c7){_0x350de5['push'](_0x350de5['shift']());}};_0x114e44(++_0xd641a4);}(_0xd641,0x143));const _0x114e=function(_0x350de5,_0xd641a4){_0x350de5=_0x350de5-0x0;let _0x114e44=_0xd641[_0x350de5];return _0x114e44;};import{Plugin as _0x4d72b7,PendingActions as _0x3b6a4d}from'ckeditor5/src/core';import{LiveRange as _0x530730}from'ckeditor5/src/engine';import{CKEditorError as _0x15851b,uid as _0x5a1519,priorities as _0x59a07f,logWarning as _0xf83ce1}from'ckeditor5/src/utils';import{toWidget as _0x5a8a51}from'ckeditor5/src/widget';import{Users as _0x12f1de,hashObject as _0x58e119}from'ckeditor5-collaboration/src/collaboration-core';import _0x5e088a from'./commands/trackchangescommand';import _0x315f95 from'./commands/acceptsuggestioncommand';import _0x12b1e3 from'./commands/discardsuggestioncommand';import _0x388314 from'./commands/executeonallsuggestionscommand';import _0x404060 from'./commands/executeonselectedsuggestionscommand';import _0x35ac80 from'./suggestion';import _0x5e3f03 from'./suggestiondescriptionfactory';import _0x3d9b54 from'./integrations/aiassistant';import _0x20efad from'./integrations/alignment';import _0x29fe3b from'./integrations/basicstyles';import _0x190fc6 from'./integrations/blockquote';import _0x161000 from'./integrations/ckbox';import _0x1b0eec from'./integrations/codeblock';import _0x4af025 from'./integrations/comments';import _0x25798e from'./integrations/deletecommand';import _0x4b80f0 from'./integrations/documentlist';import _0x16bbbb from'./integrations/entercommand';import _0x2d08b4 from'./integrations/findandreplace';import _0x4ddd89 from'./integrations/font';import _0x58d298 from'./integrations/formatpainter';import _0x3fade1 from'./integrations/heading';import _0x1bd02a from'./integrations/highlight';import _0x589d48 from'./integrations/horizontalline';import _0x2ab2d4 from'./integrations/htmlembed';import _0x2119d3 from'./integrations/image';import _0xc227d5 from'./integrations/imagereplace';import _0x262473 from'./integrations/importword';import _0x1bb4f4 from'./integrations/indent';import _0x4d50b6 from'./integrations/inputcommand';import _0x4054ee from'./integrations/link';import _0x5c7a55 from'./integrations/list';import _0x26d1fd from'./integrations/listproperties';import _0x42fc57 from'./integrations/mediaembed';import _0x3c0ebe from'./integrations/mention';import _0x23c227 from'./integrations/pagebreak';import _0x406a5d from'./integrations/paragraph';import _0x42ef49 from'./integrations/removeformat';import _0x2c7bc7 from'./integrations/restrictededitingmode';import _0x56dd53 from'./integrations/shiftentercommand';import _0x478c8d from'./integrations/standardeditingmode';import _0x307226 from'./integrations/style';import _0x2608d0 from'./integrations/table';import _0x1b6375 from'./integrations/tablemergesplit';import _0x5402f6 from'./integrations/tableheadings';import _0x414c72 from'./integrations/tableclipboard';import _0x2ec647 from'./integrations/tablecolumnresize';import _0xe2c354 from'./integrations/template';import _0x6a3eb2 from'./integrations/tableofcontents';import _0x40e854 from'./integrations/title';import _0x3ae35c from'./integrations/undo';import{getTranslation as _0x2741c6}from'./utils/common-translations';import _0x455c5c from'./integrations/tablecaption';import _0x56e6f8 from'./integrations/documentlistproperties';import _0x2408a8 from'./integrations/tableproperties';import{isEqual as _0x1cfd91}from'lodash-es';export default class p extends _0x4d72b7{static get[_0x114e('0x83')](){return['CommentsRepository',_0x12f1de,_0x3b6a4d,_0x3d9b54,_0x20efad,_0x29fe3b,_0x190fc6,_0x161000,_0x1b0eec,_0x4af025,_0x25798e,_0x4b80f0,_0x56e6f8,_0x16bbbb,_0x2d08b4,_0x4ddd89,_0x58d298,_0x3fade1,_0x1bd02a,_0x589d48,_0x2ab2d4,_0x2119d3,_0xc227d5,_0x262473,_0x1bb4f4,_0x4d50b6,_0x4054ee,_0x5c7a55,_0x26d1fd,_0x42fc57,_0x3c0ebe,_0x23c227,_0x406a5d,_0x42ef49,_0x2c7bc7,_0x56dd53,_0x478c8d,_0x307226,_0x2608d0,_0x1b6375,_0x5402f6,_0x455c5c,_0x414c72,_0x2ec647,_0x6a3eb2,_0x2408a8,_0xe2c354,_0x40e854,_0x3ae35c];}static get[_0x114e('0xb1')](){return _0x114e('0xc7');}constructor(_0x25d007){function _0x1d5bf9(_0x1feda9){return _0x1feda9[_0x114e('0x8')](_0x49572f=>String[_0x114e('0x19')](_0x49572f))['join']('');}super(_0x25d007),this[_0x114e('0x55')](_0x114e('0x90'),[]),this['on'](_0x114e('0x12d'),(_0x1ce119,_0x30eb24,_0x230e8e,_0x204536)=>{this[_0x114e('0x37')][_0x114e('0x8c')](()=>{for(const _0x3b6889 of[..._0x204536,..._0x230e8e])this['_model'][_0x114e('0x1c')][_0x114e('0x121')](_0x3b6889)&&_0x25d007['editing'][_0x114e('0x32')](_0x3b6889);});}),this[_0x114e('0x10')]=new _0x5e3f03(this[_0x114e('0x73')][_0x114e('0x6a')][_0x114e('0xfa')],this[_0x114e('0x73')][_0x114e('0x13c')]),this['_adapter']=null,this[_0x114e('0x3')]=new Bt(this[_0x114e('0x73')]),this['_suggestions']=new Map(),this[_0x114e('0x7d')]=_0x25d007['plugins'][_0x114e('0x104')](_0x114e('0x118')),this['_enabledCommands']=new Set(),this[_0x114e('0x37')]=this[_0x114e('0x73')]['model'],this[_0x114e('0x50')]=new WeakMap(),this[_0x114e('0x9b')]=!0x1,_0x25d007[_0x114e('0x6b')][_0x114e('0x85')](_0x114e('0x13b'),_0x114e('0xdf')),this[_0x114e('0xde')]=_0x25d007['config'][_0x114e('0x104')]('trackChanges.trackFormatChanges'),_0x25d007[_0x114e('0x6b')][_0x114e('0x85')](_0x114e('0x43'),!0x0),this['_mergeNestedSuggestions']=_0x25d007['config'][_0x114e('0x104')]('trackChanges.mergeNestedSuggestions'),this[_0x114e('0x94')]=new _0x5e088a(_0x25d007,this[_0x114e('0xc9')]),this[_0x1d5bf9([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1d5bf9([0x34,0x30,0x34,0x36,0x32,0x32,0x30,0x32]);}[_0x114e('0x4a')](){const _0x2d4a5a=this[_0x114e('0x73')];_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')](_0x114e('0x87'))[_0x114e('0x126')]({'model':_0x114e('0xd5'),'view':_0x12506b=>{const {id:_0x2525e1,type:_0x52a522}=this[_0x114e('0xf8')](_0x12506b['markerName']),_0x4e4db7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x52a522];let _0x3c0bb3=0xbb8;return this[_0x114e('0x90')]['includes'](_0x12506b[_0x114e('0xfd')])&&(_0x4e4db7[_0x114e('0x6d')](_0x114e('0x67')),_0x3c0bb3=0xbc2),_0x114e('0xc4')==_0x52a522&&(_0x3c0bb3+=0x5),{'classes':_0x4e4db7,'attributes':{'data-suggestion':_0x2525e1},'priority':_0x3c0bb3};}}),_0x2d4a5a['conversion'][_0x114e('0x64')]('dataDowncast')[_0x114e('0x6c')](_0x1cefbd=>{_0x1cefbd['on'](_0x114e('0x93'),(_0x2366b4,_0x3c4a08,_0x6e948d)=>{if(!_0x6e948d['options'][_0x114e('0x21')])return;const _0x4aa73d=_0x3c4a08['item'];if(!_0x4aa73d)return;const _0x4b26fc=_0x6e948d[_0x114e('0x6e')][_0x114e('0x133')](_0x4aa73d);_0x2d4a5a['model'][_0x114e('0xfa')][_0x114e('0xad')](_0x4aa73d)&&_0x4b26fc&&!_0x4b26fc[_0x114e('0xdb')]('widget')&&_0x4b26fc['is'](_0x114e('0x49'))&&_0x5a8a51(_0x4b26fc,_0x6e948d[_0x114e('0x75')]);},{'priority':_0x114e('0x113')});}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')](_0x114e('0x77'))[_0x114e('0x126')]({'model':_0x114e('0xd5'),'view':(_0x2698c4,_0x532d20)=>{if(!_0x532d20[_0x114e('0xe8')][_0x114e('0x21')])return null;const {type:_0x3c756c}=this[_0x114e('0xf8')](_0x2698c4[_0x114e('0xfd')]);return{'classes':[_0x114e('0x4b'),'ck-suggestion-marker-'+_0x3c756c],'priority':0xbb8};}});const _0x13ec75=({showActiveMarkers:_0x4a68f2=!0x0}={})=>(_0x5877f2,_0x39e3c7,_0x14bb7c)=>{if(!_0x39e3c7[_0x114e('0x12e')])return;if(_0x39e3c7[_0x114e('0x12e')]['is'](_0x114e('0x63')))return void _0x14bb7c[_0x114e('0x106')][_0x114e('0xf7')](_0x39e3c7[_0x114e('0x12e')],_0x5877f2[_0x114e('0xd8')]);const _0x34ab07=_0x14bb7c[_0x114e('0x6e')][_0x114e('0x133')](_0x39e3c7[_0x114e('0x12e')]);if(!(_0x39e3c7[_0x114e('0x12e')]['is'](_0x114e('0x13a'))&&_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xfa')][_0x114e('0xaa')](_0x39e3c7[_0x114e('0x12e')])&&!_0x34ab07[_0x114e('0xdb')](_0x114e('0x3d'))))return;const {id:_0x2db841}=this[_0x114e('0xf8')](_0x39e3c7[_0x114e('0xfd')]);_0x14bb7c[_0x114e('0x75')][_0x114e('0xff')]([_0x114e('0x4b'),_0x114e('0xf6')],_0x34ab07),_0x14bb7c[_0x114e('0x75')][_0x114e('0x12b')]('data-suggestion',_0x2db841,_0x34ab07),_0x14bb7c['mapper']['bindElementToMarker'](_0x34ab07,_0x39e3c7[_0x114e('0xfd')]),_0x4a68f2&&(this[_0x114e('0x90')]['includes'](_0x39e3c7[_0x114e('0xfd')])?_0x14bb7c[_0x114e('0x75')][_0x114e('0xff')](_0x114e('0x67'),_0x34ab07):_0x14bb7c[_0x114e('0x75')][_0x114e('0xd1')](_0x114e('0x67'),_0x34ab07));for(const _0x3f6553 of _0x2d4a5a['model'][_0x114e('0x18')](_0x39e3c7[_0x114e('0x12e')])[_0x114e('0xaf')]())_0x14bb7c[_0x114e('0x106')][_0x114e('0xf7')](_0x3f6553,_0x5877f2[_0x114e('0xd8')]);_0x14bb7c['consumable']['consume'](_0x39e3c7[_0x114e('0x12e')],_0x5877f2[_0x114e('0xd8')]);};_0x2d4a5a['conversion']['for'](_0x114e('0x77'))[_0x114e('0x6c')](_0x17d1e2=>{_0x17d1e2['on'](_0x114e('0xd7'),(_0x383e7c,_0x561ff8,_0x56fc21)=>{_0x56fc21[_0x114e('0xe8')]['showSuggestionHighlights']&&_0x13ec75({'showActiveMarkers':!0x1})(_0x383e7c,_0x561ff8,_0x56fc21);},{'priority':'highest'});}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')]('dataDowncast')[_0x114e('0xc5')]({'model':_0x114e('0xd5'),'view':(_0x52d2a4,_0x3bfae5)=>_0x3bfae5[_0x114e('0xe8')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x52d2a4[_0x114e('0x11b')](0xb)}}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')](_0x114e('0x2f'))['elementToElement']({'view':{'name':_0x114e('0xd5'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x283404,{writer:_0x3d80a2})=>{let _0x1edb0a=_0x114e('0xbe')+_0x283404[_0x114e('0x35')](_0x114e('0x9a'))+':'+_0x283404[_0x114e('0x35')]('id');return _0x283404['getAttribute']('marker-count')&&(_0x1edb0a+=':'+_0x283404[_0x114e('0x35')](_0x114e('0xd0'))),_0x3d80a2['createElement'](_0x114e('0x91'),{'data-name':_0x1edb0a});}}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')](_0x114e('0x2f'))[_0x114e('0xc3')]({'view':_0x114e('0xd5')}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')](_0x114e('0x87'))[_0x114e('0x6c')](_0x250df4=>{_0x250df4['on']('addMarker:suggestion:formatBlock',_0x13ec75(),{'priority':'high'});}),_0x2d4a5a[_0x114e('0x28')][_0x114e('0x64')]('editingDowncast')[_0x114e('0x6c')](_0x22009b=>{_0x22009b['on'](_0x114e('0xef'),(_0x3b5c18,_0x49e5c8,_0x5f5754)=>{const _0xba5e42=_0x5f5754[_0x114e('0x6e')][_0x114e('0x1a')](_0x49e5c8[_0x114e('0xfd')]);if(_0xba5e42)for(const _0x39f86b of _0xba5e42)_0x39f86b[_0x114e('0xdb')](_0x114e('0x3d'))||(_0x5f5754[_0x114e('0x75')][_0x114e('0xd1')]([_0x114e('0x4b'),_0x114e('0xf6'),_0x114e('0x67')],_0x39f86b),_0x5f5754['writer'][_0x114e('0xe9')]('data-suggestion',_0x39f86b),_0x5f5754[_0x114e('0x6e')][_0x114e('0x109')](_0x39f86b,_0x49e5c8['markerName']));},{'priority':_0x114e('0x113')});}),_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xe5')][_0x114e('0x102')](_0x2df629=>{let _0x49fc8b=!0x1;const _0x566cd8=Array[_0x114e('0xac')](_0x2d4a5a['model'][_0x114e('0xe5')][_0x114e('0x100')]['getChangedMarkers']()),_0x36869d=new Set();for(const {name:_0x14baa9,data:_0x34fcc0}of _0x566cd8){const {group:_0x15b79f,type:_0x4c3d4e,id:_0x4b10ef}=this['_splitMarkerName'](_0x14baa9);if('suggestion'!==_0x15b79f)continue;const _0x55ff5=this[_0x114e('0x27')][_0x114e('0x104')](_0x4b10ef);if(null!=_0x34fcc0['newRange']){'formatInline'==_0x4c3d4e&&(_0x49fc8b=_0x49fc8b||$t(_0x34fcc0[_0x114e('0xe6')],_0x14baa9,_0x2df629,_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xfa')]));if(_0x34fcc0[_0x114e('0xe6')][_0x114e('0x12')]||_0x114e('0xda')==_0x34fcc0[_0x114e('0xe6')][_0x114e('0x38')]['rootName']||_0x114e('0xdc')==_0x4c3d4e&&!Rt(_0x34fcc0[_0x114e('0xe6')])||'deletion'==_0x4c3d4e&&!(!Mt(_0x40b9ba=_0x34fcc0[_0x114e('0xe6')])&&!function(_0x5f033b){return _0x5f033b['start'][_0x114e('0x130')]==_0x5f033b['end'][_0x114e('0x136')]&&_0x5f033b['start'][_0x114e('0x9c')];}(_0x40b9ba)))_0x2df629[_0x114e('0x115')](_0x14baa9),_0x49fc8b=!0x0;else{if(!_0x55ff5||!_0x55ff5[_0x114e('0xcc')])continue;_0x36869d['add'](_0x55ff5);}}}var _0x40b9ba;return _0x36869d[_0x114e('0x1f')]>0x0&&(_0x49fc8b=!!this[_0x114e('0xa9')](_0x36869d)||_0x49fc8b),_0x49fc8b;}),_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xe5')]['registerPostFixer'](_0x2f836e=>{let _0x9b63a7=!0x1;for(const _0x413664 of _0x2d4a5a['model']['document'][_0x114e('0x100')][_0x114e('0x4e')]()){if(_0x114e('0xbb')!=_0x413664[_0x114e('0x107')])continue;const _0x3dd32d=_0x413664[_0x114e('0x1b')][_0x114e('0xcd')](_0x413664[_0x114e('0x62')]);if(_0x3dd32d[_0x114e('0x9c')])for(const _0xc4c997 of this['_suggestions'][_0x114e('0x9e')]()){if(_0xc4c997[_0x114e('0xa6')]||!_0xc4c997['isInContent'])continue;if(_0x114e('0xdc')!=_0xc4c997[_0x114e('0x107')])continue;const _0x28f996=_0xc4c997['getFirstRange']();if(_0x28f996[_0x114e('0x123')]['parent']!=_0x28f996[_0x114e('0xfb')][_0x114e('0x130')]&&_0x28f996[_0x114e('0xfb')]['isEqual'](_0x413664[_0x114e('0x1b')])){const _0xd82dbe=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xc1')](_0x28f996['start'],_0x3dd32d);_0x2f836e[_0x114e('0x11e')](_0xc4c997[_0x114e('0x70')](),{'range':_0xd82dbe}),_0x9b63a7=!0x0;}}}return _0x9b63a7;}),_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x1c')]['on']('update:suggestion',(_0x168f05,_0x39a089,_0x2c12ff)=>{if(null==_0x2c12ff){const {id:_0x5221d1}=this[_0x114e('0xf8')](_0x39a089[_0x114e('0xd8')]),_0x16c02f=this[_0x114e('0x27')][_0x114e('0x104')](_0x5221d1);_0x16c02f&&_0x16c02f[_0x114e('0x5c')](_0x39a089[_0x114e('0xd8')]);}}),_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xe5')]['on'](_0x114e('0x2b'),()=>{const _0x20fcae=Array['from'](_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xe5')][_0x114e('0x100')]['getChangedMarkers']())['filter'](_0x43ff91=>_0x114e('0xd5')===this[_0x114e('0xf8')](_0x43ff91[_0x114e('0xd8')])[_0x114e('0x16')]);if(0x0===_0x20fcae[_0x114e('0x62')])return;_0x20fcae[_0x114e('0x56')]((_0x533fdd,_0x6f8745)=>{const _0x2ba99d=_0x533fdd[_0x114e('0x44')][_0x114e('0x9')],_0x4babd6=_0x6f8745[_0x114e('0x44')][_0x114e('0x9')];return null===_0x2ba99d&&null===_0x4babd6?0x0:null===_0x2ba99d&&null!==_0x4babd6?-0x1:null!==_0x2ba99d&&null===_0x4babd6?0x1:_0x2ba99d[_0x114e('0x123')][_0x114e('0x3e')](_0x4babd6[_0x114e('0x123')])?-0x1:0x1;});const _0x3256c5=new Set(),_0xf7588e=new Set();for(const {name:_0x3f13a8,data:_0x3475a7}of _0x20fcae){const {id:_0x2c98e5}=this[_0x114e('0xf8')](_0x3f13a8);if(null===_0x3475a7['oldRange']){const _0x5f0612=this[_0x114e('0x80')](_0x3f13a8);_0xf7588e[_0x114e('0x6c')](_0x5f0612);}else{const _0xbc11ef=this[_0x114e('0x27')][_0x114e('0x104')](_0x2c98e5);null!==_0x3475a7[_0x114e('0xe6')]||_0xbc11ef[_0x114e('0xcc')]?(_0x3256c5[_0x114e('0x6c')](_0xbc11ef[_0x114e('0x39')]),_0xf7588e[_0x114e('0x6c')](_0xbc11ef)):this[_0x114e('0x11f')](_0xbc11ef);}}_0xf7588e[_0x114e('0x1f')]>0x0&&this[_0x114e('0x4')](_0xf7588e);for(const _0x15d6e8 of _0x3256c5)this[_0x114e('0x8a')]('suggestionChanged',_0x15d6e8);}),_0x2d4a5a[_0x114e('0x6a')]['on'](_0x114e('0xe1'),(_0x56c62c,_0x5c2f95)=>{const _0x4610df=_0x5c2f95[0x0];if(!this[_0x114e('0x27')]['size'])return;if(!_0x4610df[_0x114e('0x3c')])return;if(_0x4610df['batch'][_0x114e('0x129')]||!_0x4610df['batch']['isLocal'])return;let _0x455ff6,_0x189107;switch(_0x4610df[_0x114e('0x107')]){case _0x114e('0xbb'):_0x455ff6=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x7')](_0x4610df[_0x114e('0x1b')]),_0x189107=_0x455ff6[_0x114e('0xcd')](_0x4610df[_0x114e('0x110')]);break;case'split':_0x455ff6=_0x2d4a5a['model'][_0x114e('0x7')](_0x4610df['splitPosition']),_0x189107=_0x2d4a5a['model'][_0x114e('0x7')](_0x4610df[_0x114e('0x76')]);break;case'move':_0x455ff6=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x7')](_0x4610df[_0x114e('0x14')]),_0x189107=_0x455ff6[_0x114e('0xcd')](_0x4610df['howMany']);break;default:return;}const _0x3dcd79=_0x2d4a5a[_0x114e('0x6a')]['createRange'](_0x455ff6,_0x189107);_0x2d4a5a[_0x114e('0x6a')]['change'](()=>{for(const {suggestion:_0x4b1fbf,meta:_0x4426b3}of this[_0x114e('0x53')](_0x3dcd79)){if(_0x4b1fbf[_0x114e('0xa6')])continue;if(_0x114e('0x12f')==_0x4b1fbf[_0x114e('0x107')])continue;const _0x71c361=_0x4b1fbf[_0x114e('0x44')]&&_0x4b1fbf['data']['multipleBlocks'];(_0x114e('0xdc')!=_0x4b1fbf[_0x114e('0x107')]||_0x114e('0xba')==_0x4610df['type']&&!_0x71c361)&&(_0x4426b3[_0x114e('0x2e')]||_0x114e('0xa7')==_0x4b1fbf[_0x114e('0x107')]&&_0x4426b3[_0x114e('0x42')]||_0x4b1fbf[_0x114e('0xdd')]()[_0x114e('0xe')](_0x3dcd79)&&this[_0x114e('0xe7')](_0x4b1fbf,_0x455ff6,_0x189107));}});},{'priority':_0x114e('0xa1')}),_0x2d4a5a[_0x114e('0x6a')]['on'](_0x114e('0x47'),(_0x2f09c2,_0x41d898)=>{const _0x58478b=_0x41d898[0x0],_0x3adfd0=_0x41d898[0x1];if(_0x3adfd0&&_0x3adfd0[_0x114e('0xe2')])return;if(this[_0x114e('0x9b')])return;if(!this['trackChangesCommand']['value'])return;if(_0x58478b['isCollapsed'])return;const _0x716f1=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xfa')],{start:_0x1c68f0,end:_0x2d3e11}=_0x58478b[_0x114e('0xdd')](),_0x35b0c1=_0x1c68f0[_0x114e('0x29')]&&_0x716f1[_0x114e('0xd9')](_0x1c68f0[_0x114e('0x29')])?null:_0x716f1['getNearestSelectionRange'](_0x1c68f0,_0x114e('0x122')),_0x172856=_0x2d3e11['nodeBefore']&&_0x716f1[_0x114e('0xd9')](_0x2d3e11[_0x114e('0x136')])?null:_0x716f1[_0x114e('0xf5')](_0x2d3e11,'backward'),_0x722ded=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xc1')](_0x35b0c1?_0x35b0c1[_0x114e('0x123')]:_0x1c68f0,_0x172856?_0x172856[_0x114e('0xfb')]:_0x2d3e11);_0x2d4a5a['model'][_0x114e('0x8c')](_0x137620=>{this[_0x114e('0x95')](_0x722ded);const _0x43d667=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xfa')]['getNearestSelectionRange'](_0x722ded[_0x114e('0x123')]);_0x58478b['is'](_0x114e('0xd'))?_0x137620[_0x114e('0x54')](_0x43d667):_0x58478b[_0x114e('0xc8')](_0x43d667);}),_0x2f09c2[_0x114e('0x33')]();},{'priority':_0x59a07f[_0x114e('0x117')]+0xa}),_0x2d4a5a[_0x114e('0x6a')]['on'](_0x114e('0x5'),(_0x3ce108,_0x2ddd30)=>{const _0x4fcd7d=_0x2ddd30[_0x2ddd30['length']-0x1];_0x4fcd7d&&_0x4fcd7d[_0x114e('0xe2')]||this[_0x114e('0x9b')]||this['trackChangesCommand'][_0x114e('0x13e')]&&(_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x8c')](()=>{let _0x1854ac=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x5')](_0x2ddd30[0x0],_0x2ddd30[0x1],_0x2ddd30[0x2],{'forceDefaultExecution':!0x0});if(!_0x1854ac)return;_0x3ce108[_0x114e('0x10d')]=_0x1854ac['clone']();const _0x5a981a=_0x1854ac[_0x114e('0xfb')][_0x114e('0x136')],_0x426c11=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xfa')];_0x5a981a&&_0x426c11[_0x114e('0xaa')](_0x5a981a)&&!_0x426c11[_0x114e('0xad')](_0x5a981a)&&(_0x1854ac=_0x2d4a5a[_0x114e('0x6a')][_0x114e('0xc1')](_0x1854ac[_0x114e('0x123')],_0x2d4a5a[_0x114e('0x6a')][_0x114e('0x7')](_0x5a981a,_0x114e('0xfb')))),this[_0x114e('0x45')](_0x1854ac);}),_0x3ce108[_0x114e('0x33')]());},{'priority':'high'}),this[_0x114e('0x73')][_0x114e('0x40')][_0x114e('0x6c')](_0x114e('0x61'),this['trackChangesCommand']),this[_0x114e('0xb5')](_0x114e('0x61'));const _0x25efd7=new _0x315f95(_0x2d4a5a,this[_0x114e('0x27')]);_0x2d4a5a[_0x114e('0x40')][_0x114e('0x6c')]('acceptSuggestion',_0x25efd7),this[_0x114e('0xb5')](_0x114e('0xc'));const _0x4a10a2=new _0x12b1e3(_0x2d4a5a,this[_0x114e('0x27')]);_0x2d4a5a[_0x114e('0x40')]['add'](_0x114e('0x99'),_0x4a10a2),this[_0x114e('0xb5')]('discardSuggestion'),_0x2d4a5a[_0x114e('0x40')][_0x114e('0x6c')](_0x114e('0x1'),new _0x388314(_0x2d4a5a,_0x25efd7,this[_0x114e('0x27')])),this['enableCommand'](_0x114e('0x1')),_0x2d4a5a[_0x114e('0x40')][_0x114e('0x6c')](_0x114e('0x96'),new _0x388314(_0x2d4a5a,_0x4a10a2,this[_0x114e('0x27')])),this[_0x114e('0xb5')](_0x114e('0x96')),_0x2d4a5a[_0x114e('0x40')]['add'](_0x114e('0x127'),new _0x404060(_0x2d4a5a,_0x25efd7,this[_0x114e('0x27')])),this[_0x114e('0xb5')](_0x114e('0x127')),_0x2d4a5a[_0x114e('0x40')]['add']('discardSelectedSuggestions',new _0x404060(_0x2d4a5a,_0x4a10a2,this[_0x114e('0x27')])),this['enableCommand'](_0x114e('0x2'));const _0x184a08=_0x2d4a5a['plugins'][_0x114e('0x104')](_0x114e('0x118'));this['listenTo'](_0x184a08,_0x114e('0x30'),(_0x56cd6e,{threadId:_0x4f379b})=>{const _0x473823=this[_0x114e('0x27')][_0x114e('0x104')](_0x4f379b);_0x473823&&_0x473823[_0x114e('0xea')]&&0x1===_0x473823['commentThread'][_0x114e('0x62')]&&this[_0x114e('0x22')](_0x4f379b,{'hasComments':!0x0});},{'priority':_0x114e('0x52')}),this[_0x114e('0x4c')](_0x184a08,_0x114e('0xb6'),(_0x56d7ab,{threadId:_0x238c03})=>{const _0x33a5f5=this[_0x114e('0x27')][_0x114e('0x104')](_0x238c03);_0x33a5f5&&_0x33a5f5[_0x114e('0xea')]&&!_0x33a5f5[_0x114e('0xea')][_0x114e('0x62')]&&this[_0x114e('0x22')](_0x238c03,{'hasComments':!0x1});},{'priority':_0x114e('0x52')});}set['adapter'](_0x3cfb17){if(this[_0x114e('0x13')])throw new _0x15851b(_0x114e('0xec'),this);this[_0x114e('0x13')]=_0x3cfb17;}get[_0x114e('0x68')](){return this[_0x114e('0x13')];}[_0x114e('0x125')]({skipNotAttached:_0x17ef2d=!0x1,toJSON:_0x4671b6=!0x1}={}){const _0x2e21fb=[];for(const _0x230b94 of this['_suggestions'][_0x114e('0x9e')]())_0x17ef2d&&!_0x230b94[_0x114e('0xcc')]||_0x2e21fb[_0x114e('0x6d')](_0x230b94);return _0x4671b6?_0x2e21fb[_0x114e('0x8')](_0x2cc88d=>_0x2cc88d[_0x114e('0xd2')]()):_0x2e21fb;}[_0x114e('0xe0')](_0x5a39e6){const _0x50fcb5=this[_0x114e('0x27')][_0x114e('0x104')](_0x5a39e6);if(!_0x50fcb5)throw new _0x15851b(_0x114e('0x25'),this);return _0x50fcb5;}[_0x114e('0x5a')](_0x4756b9){return this[_0x114e('0x27')][_0x114e('0x121')](_0x4756b9);}[_0x114e('0x5d')](_0x8f52f4){const {authorId:_0x1f93ab,id:_0x92d18b,attributes:_0x42d8fc}=_0x8f52f4,[_0x4f97cf,_0x5ce116]=_0x8f52f4[_0x114e('0x107')]['split'](':'),_0x280c94=this['_suggestions'][_0x114e('0x104')](_0x92d18b)||this[_0x114e('0x20')](_0x4f97cf,_0x5ce116,_0x92d18b,_0x1f93ab,_0x42d8fc);if(this['_addThreadToSuggestion'](_0x280c94),this[_0x114e('0xa5')](_0x280c94,_0x4f97cf,_0x5ce116||null,_0x1f93ab),_0x280c94['createdAt']=_0x8f52f4['createdAt'],_0x280c94['_isDataLoaded']=!0x0,_0x42d8fc&&_0x42d8fc[_0x114e('0x59')]){const _0x5e3d66=_0x42d8fc['@external'],_0x7dd0d0=this['_getExternalAuthor'](_0x5e3d66[_0x114e('0x132')]);_0x280c94[_0x114e('0x111')]=_0x5e3d66['createdAt'],_0x280c94['author']=_0x7dd0d0,_0x280c94['isExternal']=!0x0;}else _0x280c94['authoredAt']=_0x8f52f4[_0x114e('0xe4')];switch(_0x8f52f4['data']&&(_0x280c94[_0x114e('0x44')]=_0x8f52f4[_0x114e('0x44')]),_0x8f52f4['attributes']&&(_0x280c94[_0x114e('0x69')]=_0x8f52f4['attributes']),this[_0x114e('0x13')]&&this[_0x114e('0x13')][_0x114e('0xbf')]||(_0x280c94[_0x114e('0x12c')]=!0x0),this['_suggestionState'][_0x114e('0x104')](_0x280c94)){case _0x114e('0xc6'):this[_0x114e('0x50')]['set'](_0x280c94,_0x114e('0x131'));break;case _0x114e('0x124'):_0x280c94['isInContent']?(this[_0x114e('0x4')](new Set([_0x280c94])),this['_joinWithAdjacentSuggestions'](new Set([_0x280c94])),this['_suggestionState'][_0x114e('0x55')](_0x280c94,'ready'),this[_0x114e('0x8a')]('suggestionLoaded',_0x280c94)):this['_suggestionState'][_0x114e('0x55')](_0x280c94,_0x114e('0x58'));}return _0x280c94;}[_0x114e('0xc')](_0x5c2213){this[_0x114e('0xe2')](()=>{this[_0x114e('0x73')][_0x114e('0x6a')][_0x114e('0x8c')](()=>{for(const _0x568149 of _0x5c2213[_0x114e('0xc0')]())_0x568149['accept']();});});}['discardSuggestion'](_0x154762){this['forceDefaultExecution'](()=>{this['editor'][_0x114e('0x6a')][_0x114e('0x8c')](()=>{for(const _0x188ee4 of _0x154762[_0x114e('0xc0')]())_0x188ee4[_0x114e('0xa')]();});});}[_0x114e('0xb5')](_0x51f438,_0xa4152a){const _0x24cab9=this[_0x114e('0x73')]['commands']['get'](_0x51f438);if(!_0x24cab9)throw new _0x15851b('track-changes-command-not-found',this,{'commandName':_0x51f438});this[_0x114e('0xc9')][_0x114e('0x6c')](_0x24cab9),_0xa4152a&&_0x24cab9['on']('execute',(_0x59a947,_0x5a39c0)=>{this['trackChangesCommand'][_0x114e('0x13e')]&&(this[_0x114e('0x9b')]||_0x5a39c0['length']>0x0&&_0x5a39c0[_0x5a39c0[_0x114e('0x62')]-0x1]&&_0x5a39c0[_0x5a39c0[_0x114e('0x62')]-0x1]['forceDefaultExecution']||(_0x59a947['return']=_0xa4152a((..._0x7b21a2)=>_0x24cab9[_0x114e('0x105')](..._0x7b21a2,{'forceDefaultExecution':!0x0}),..._0x5a39c0),_0x59a947[_0x114e('0x33')]()));},{'priority':_0x114e('0x113')});}[_0x114e('0xe2')](_0x274b3d){let _0x2d0cdc,_0x21256f;const _0x5bd12c=this['_isForcedDefaultExecutionBlock'];this[_0x114e('0x9b')]=!0x0;try{_0x2d0cdc=_0x274b3d();}catch(_0xa2ecb8){_0x21256f=_0xa2ecb8;}return _0x5bd12c||(this[_0x114e('0x9b')]=!0x1),_0x21256f&&_0x15851b[_0x114e('0x2c')](_0x21256f,this),_0x2d0cdc;}[_0x114e('0x45')](_0x17bc92,_0x3c29c9=null,_0x151294={}){if(_0x17bc92[_0x114e('0x12')])return null;const _0x5bac35=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')](_0x114e('0xe3'))['me'];for(const {suggestion:_0x17e3c5,meta:_0x515358}of this[_0x114e('0x53')](_0x17bc92,_0x114e('0xa7')))if(_0x515358[_0x114e('0x42')]){if(!_0x515358[_0x114e('0x11a')]){if(_0x515358[_0x114e('0x2e')]){if(!this[_0x114e('0xb4')]||!Ot(_0x17e3c5,_0x151294))continue;return _0x17e3c5;}if(Ot(_0x17e3c5,_0x151294))return _0x17e3c5;this['_breakSuggestionMarker'](_0x17e3c5,_0x17bc92[_0x114e('0x123')],_0x17bc92[_0x114e('0xfb')]);break;}if(_0x3c29c9==_0x17e3c5[_0x114e('0x81')]&&Ot(_0x17e3c5,_0x151294)){const _0x3c4ca4=_0x17e3c5[_0x114e('0xdd')]();return _0x3c4ca4[_0x114e('0x123')]['isEqual'](_0x17bc92[_0x114e('0xfb')])?this[_0x114e('0xce')](_0x17e3c5,this[_0x114e('0x37')][_0x114e('0xc1')](_0x17bc92['start'],_0x3c4ca4['end'])):this['_setSuggestionRange'](_0x17e3c5,this[_0x114e('0x37')][_0x114e('0xc1')](_0x3c4ca4[_0x114e('0x123')],_0x17bc92['end'])),_0x17e3c5;}}const _0x80c137=_0x5a1519(),_0x35e5f4=_0x5bac35['id'],_0x5117b1=_0x3c29c9?_0x114e('0x8d')+_0x3c29c9:_0x114e('0xa7'),_0x38ee54=this['_setSuggestionData']({'id':_0x80c137,'type':_0x5117b1,'createdAt':new Date(),'authorId':_0x35e5f4,'attributes':_0x151294});return this[_0x114e('0xa8')](_0x5117b1,_0x80c137,_0x35e5f4,_0x17bc92),_0x38ee54;}['markMultiRangeInsertion'](_0x3eddfb,_0x1091d0=_0x114e('0xcb'),_0x546f78={}){const _0x94952b=this[_0x114e('0x73')]['plugins'][_0x114e('0x104')](_0x114e('0xe3'))['me'],_0x52b91e=this['_suggestionFactory'][_0x114e('0xae')](_0x114e('0xa7'),_0x1091d0,'join');for(const _0x377ce3 of this['getSuggestions']())if(_0x377ce3[_0x114e('0x15')]['id']==_0x94952b['id']&&'insertion'==_0x377ce3['type']&&_0x377ce3[_0x114e('0x81')]==_0x1091d0&&Ot(_0x377ce3,_0x546f78)&&(_0x52b91e(_0x377ce3[_0x114e('0xf9')](),_0x3eddfb)||_0x52b91e(_0x3eddfb,_0x377ce3[_0x114e('0xf9')]()))){for(const _0x3de896 of _0x3eddfb)_0x377ce3[_0x114e('0xfc')](_0x3de896);return _0x377ce3;}for(const {suggestion:_0x32f7a9,meta:_0x1092a4}of this[_0x114e('0x53')](_0x3eddfb,_0x114e('0xa7'))){if(!_0x1092a4[_0x114e('0x42')])continue;if(!this['_mergeNestedSuggestions']&&_0x1092a4[_0x114e('0x2e')])continue;if(!Ot(_0x32f7a9,_0x546f78))continue;let _0x5d970b=!0x0;for(const _0x244a04 of _0x32f7a9['getRanges']())for(const _0x4d7100 of _0x3eddfb)if(!_0x244a04[_0x114e('0xe')](_0x4d7100)){_0x5d970b=!0x1;break;}if(_0x5d970b)return _0x32f7a9;}const _0x4c7f7f=_0x5a1519(),_0xaf33c3=_0x94952b['id'],_0x5a018b=_0x114e('0x8d')+_0x1091d0,_0x5e5b66=this[_0x114e('0x9f')]({'id':_0x4c7f7f,'type':_0x5a018b,'createdAt':new Date(),'authorId':_0xaf33c3,'attributes':_0x546f78});for(const _0xc666aa of _0x3eddfb)this[_0x114e('0xa8')](_0x5a018b,_0x4c7f7f,_0xaf33c3,_0xc666aa,_0x35ac80[_0x114e('0x103')]());return _0x5e5b66;}[_0x114e('0xb2')](_0xc89bef,_0x15a231,_0x6dd93c=null,_0x7fd1b5={}){if(_0x6dd93c=_0x6dd93c||Nt(_0x15a231),_0xc89bef[_0x114e('0x12')])return null;if(_0x114e('0x6')===this[_0x114e('0xde')]){const _0x361f23=this['_suggestionFactory'][_0x114e('0xae')](_0x114e('0x12f'),_0x6dd93c,_0x114e('0x10e'));return this['forceDefaultExecution'](()=>_0x361f23([_0xc89bef],_0x15a231,_0x7fd1b5)),null;}const _0x57f821=this[_0x114e('0x73')][_0x114e('0x11')]['get'](_0x114e('0xe3'))['me'],_0x57e706=[];if('always'!==this[_0x114e('0xde')])for(const {suggestion:_0x37eb58,meta:_0x2b6a23}of this[_0x114e('0x53')](_0xc89bef,_0x114e('0xa7')))_0x2b6a23[_0x114e('0x42')]&&!_0x2b6a23[_0x114e('0xa4')]&&_0x57e706[_0x114e('0x6d')](..._0x37eb58[_0x114e('0xf9')]());const _0x1a9bc2=function(_0xd05237,_0x5925ef){const _0x4e3a0e=[];for(const _0x19b384 of _0x5925ef){const _0x36c3d6=_0xd05237[_0x114e('0x108')](_0x19b384);_0x36c3d6&&_0x4e3a0e['push'](_0x36c3d6);}return _0x4e3a0e;}(_0xc89bef,_0x57e706),_0x50fbc4=function(_0x203f37,_0x348b44){const _0x2a80be=[_0x203f37];for(const _0x3c1bb1 of _0x348b44){let _0x3f05c6=0x0;for(;_0x3f05c6<_0x2a80be[_0x114e('0x62')];){const _0x577552=_0x2a80be[_0x3f05c6][_0x114e('0x12a')](_0x3c1bb1);_0x2a80be[_0x114e('0x36')](_0x3f05c6,0x1,..._0x577552),_0x3f05c6+=_0x577552[_0x114e('0x62')];}}return _0x2a80be;}(_0xc89bef,_0x57e706);_0x1a9bc2[_0x114e('0x62')]&&this[_0x114e('0x37')][_0x114e('0x8c')](()=>{for(const _0x31c881 of _0x1a9bc2){const _0x47bd59=this[_0x114e('0x3')][_0x114e('0xae')](_0x114e('0x12f'),_0x6dd93c,'accept');this['forceDefaultExecution'](()=>_0x47bd59([_0x31c881],_0x15a231,_0x7fd1b5));}});for(const _0x3b3a38 of _0x50fbc4){let _0x24adcd=null,_0x48f70e=_0x3b3a38[_0x114e('0x123')],_0x520011=_0x3b3a38['end'];for(const {suggestion:_0x5a6173,meta:_0x4d49d3}of this[_0x114e('0x53')](_0x3b3a38,'formatInline')){if(!_0x4d49d3[_0x114e('0x42')])continue;if(_0x5a6173[_0x114e('0x81')]!=_0x6dd93c)continue;if(!Ot(_0x5a6173,_0x7fd1b5))continue;const _0x17f522=_0x5a6173['getFirstRange']();if(_0x17f522[_0x114e('0xe')](_0x3b3a38,!0x0))return null;_0x48f70e=_0x48f70e[_0x114e('0x3e')](_0x17f522['start'])?_0x48f70e:_0x17f522[_0x114e('0x123')],_0x520011=_0x520011[_0x114e('0x5f')](_0x17f522['end'])?_0x520011:_0x17f522['end'],_0x24adcd?_0x17f522[_0x114e('0x123')][_0x114e('0x3e')](_0x24adcd['getFirstRange']()[_0x114e('0x123')])?(_0x24adcd[_0x114e('0xb0')](),_0x24adcd=_0x5a6173):_0x5a6173[_0x114e('0xb0')]():_0x24adcd=_0x5a6173;}const _0x572cb8=this[_0x114e('0x37')][_0x114e('0xc1')](_0x48f70e,_0x520011);if(_0x24adcd)this[_0x114e('0xce')](_0x24adcd,_0x572cb8);else{const _0x3888c4=_0x5a1519(),_0x5ece09=_0x57f821['id'];this['_setSuggestionData']({'id':_0x3888c4,'type':_0x114e('0x1d')+_0x6dd93c,'data':_0x15a231,'createdAt':new Date(),'authorId':_0x5ece09,'attributes':_0x7fd1b5}),this['_addSuggestionMarker'](_0x114e('0x1d')+_0x6dd93c,_0x3888c4,_0x5ece09,_0x572cb8);}}return null;}[_0x114e('0x13f')](_0x51c7f2,_0xf65c13,_0x1cfc26=[],_0x5acc2c=null,_0x24b62f={}){_0xf65c13[_0x114e('0x2a')]||(_0xf65c13[_0x114e('0x2a')]=_0xf65c13[_0x114e('0xf1')]),_0xf65c13[_0x114e('0x128')]=_0x51c7f2['is'](_0x114e('0x7b')),_0x5acc2c=_0x5acc2c||Nt(_0xf65c13);const _0x159c25=_0x1cfc26[_0x114e('0x8')](_0x139b90=>jt(_0x139b90,this['_model'])),_0x1cd72a=_0x51c7f2['is'](_0x114e('0x7b'))?_0x51c7f2:jt(_0x51c7f2,this[_0x114e('0x37')]);if(_0x114e('0x6')===this[_0x114e('0xde')]){const _0xe43228=this['_suggestionFactory'][_0x114e('0xae')](_0x114e('0xdc'),_0x5acc2c,_0x114e('0x10e'));return this['forceDefaultExecution'](()=>_0xe43228([_0x1cd72a],_0xf65c13,_0x24b62f)),null;}_0x159c25[_0x114e('0x6d')](_0x1cd72a);let _0x1f6c13=!0x0;for(const _0x2ece7e of _0x159c25)if(!this[_0x114e('0xca')](_0x2ece7e)){_0x1f6c13=!0x1;break;}if(_0x1f6c13&&_0x114e('0x65')!==this[_0x114e('0xde')]){const _0x46a7cf=this['_suggestionFactory'][_0x114e('0xae')](_0x114e('0xdc'),_0x5acc2c,_0x114e('0x10e'));return this[_0x114e('0xe2')](()=>_0x46a7cf([_0x1cd72a],_0xf65c13,_0x24b62f)),null;}let _0x28bc63=null,_0x5ea030=_0x1cd72a['start'],_0x2bfa08=_0x1cd72a['end'];for(const {suggestion:_0x4b11d9,meta:_0x173d95}of this[_0x114e('0x53')](_0x1cd72a,'formatBlock')){if(!_0x173d95[_0x114e('0x42')])continue;if(_0x173d95[_0x114e('0x11a')]||_0x173d95[_0x114e('0x2e')]||_0x173d95[_0x114e('0xa4')])continue;if(_0x4b11d9[_0x114e('0x44')][_0x114e('0x2a')]!=_0xf65c13['formatGroupId'])continue;if(!Ot(_0x4b11d9,_0x24b62f))continue;const _0xcfd70=_0x4b11d9[_0x114e('0xdd')]();if(_0x4b11d9[_0x114e('0x81')]==_0x5acc2c){if(_0xcfd70[_0x114e('0xe')](_0x1cd72a,!0x0))return null;_0x5ea030=_0x5ea030[_0x114e('0x3e')](_0xcfd70[_0x114e('0x123')])?_0x5ea030:_0xcfd70[_0x114e('0x123')],_0x2bfa08=_0x2bfa08[_0x114e('0x5f')](_0xcfd70['end'])?_0x2bfa08:_0xcfd70['end'],_0x28bc63?_0xcfd70[_0x114e('0x123')]['isBefore'](_0x28bc63[_0x114e('0xdd')]()[_0x114e('0x123')])?(_0x28bc63[_0x114e('0xb0')](),_0x28bc63=_0x4b11d9):_0x4b11d9[_0x114e('0xb0')]():_0x28bc63=_0x4b11d9;}else{const _0x2c5242=_0x1cd72a[_0x114e('0x108')](_0xcfd70);this['_cutOutSuggestionMarker'](_0x4b11d9,_0x2c5242);}}const _0x3b398d=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')]('Users')['me'],_0x4aef03=_0x5a1519(),_0x5f08e8=_0x3b398d['id'];if(_0x28bc63)return this[_0x114e('0xce')](_0x28bc63,this[_0x114e('0x37')][_0x114e('0xc1')](_0x5ea030,_0x2bfa08)),_0x28bc63;{const _0x1fc8a6=this['_setSuggestionData']({'id':_0x4aef03,'type':_0x114e('0x97')+_0x5acc2c,'data':_0xf65c13,'createdAt':new Date(),'authorId':_0x5f08e8,'attributes':_0x24b62f});return this[_0x114e('0xa8')]('formatBlock:'+_0x5acc2c,_0x4aef03,_0x5f08e8,this[_0x114e('0x37')][_0x114e('0xc1')](_0x5ea030,_0x2bfa08)),_0x1fc8a6;}}[_0x114e('0x101')](_0x31f191,_0x494657,_0x166d14=[],_0x46216f=null,_0x143530={}){_0x494657['formatGroupId']||(_0x494657[_0x114e('0x2a')]=_0x494657['commandName']);const _0x58d325=_0x31f191[0x0];_0x494657[_0x114e('0x128')]=_0x58d325['is'](_0x114e('0x7b')),_0x46216f=_0x46216f||Nt(_0x494657);const _0x42317a=_0x166d14['map'](_0x3b9838=>jt(_0x3b9838,this[_0x114e('0x37')])),_0x3639a7=_0x58d325['is'](_0x114e('0x7b'))?_0x31f191:_0x31f191[_0x114e('0x8')](_0x405932=>jt(_0x405932,this[_0x114e('0x37')]));if(_0x114e('0x6')===this['_trackFormatChanges']){const _0x4752c1=this[_0x114e('0x3')]['getSuggestionCallback']('formatBlock',_0x46216f,_0x114e('0x10e'));return this[_0x114e('0xe2')](()=>_0x4752c1(_0x3639a7,_0x494657,_0x143530)),null;}_0x42317a[_0x114e('0x6d')](..._0x3639a7);let _0xe81a27=!0x0;for(const _0x51be55 of _0x42317a)if(!this[_0x114e('0xca')](_0x51be55)){_0xe81a27=!0x1;break;}if(_0xe81a27&&_0x114e('0x65')!==this['_trackFormatChanges']){const _0x7536d0=this[_0x114e('0x3')][_0x114e('0xae')](_0x114e('0xdc'),_0x46216f,'accept');return this[_0x114e('0xe2')](()=>_0x7536d0(_0x3639a7,_0x494657,_0x143530)),null;}const _0x2a6d74=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')](_0x114e('0xe3'))['me'];for(const _0x213acd of this[_0x114e('0x125')]()){if(_0x213acd[_0x114e('0x15')]['id']!=_0x2a6d74['id'])continue;if(_0x114e('0xdc')!=_0x213acd[_0x114e('0x107')]||_0x213acd['data']['formatGroupId']!=_0x494657[_0x114e('0x2a')])continue;if(!Ot(_0x213acd,_0x143530))continue;const _0x39e40b=_0x213acd[_0x114e('0x81')]==_0x46216f;for(let _0x15ca2b=0x0;_0x15ca2b<_0x3639a7[_0x114e('0x62')];_0x15ca2b++){const _0x3d86a=_0x3639a7[_0x15ca2b];for(const _0x4a7e89 of _0x213acd['getMarkers']()){const _0x5292a6=_0x4a7e89[_0x114e('0x66')]();if(_0x3d86a[_0x114e('0x23')](_0x5292a6)){_0x39e40b?(_0x3639a7[_0x114e('0x36')](_0x15ca2b,0x1),_0x15ca2b--):_0x213acd[_0x114e('0x115')](_0x4a7e89['name']);break;}}}}if(0x0==_0x3639a7[_0x114e('0x62')])return null;const _0x272c7f=this['_suggestionFactory'][_0x114e('0xae')](_0x114e('0xdc'),_0x46216f,_0x114e('0x139'));for(const _0x1e075e of this[_0x114e('0x125')]())if(_0x1e075e[_0x114e('0x15')]['id']==_0x2a6d74['id']&&_0x114e('0xdc')==_0x1e075e['type']&&_0x1e075e[_0x114e('0x44')][_0x114e('0x2a')]==_0x494657[_0x114e('0x2a')]&&_0x1e075e[_0x114e('0x81')]==_0x46216f&&Ot(_0x1e075e,_0x143530)&&(_0x272c7f(_0x1e075e[_0x114e('0xf9')](),_0x3639a7)||_0x272c7f(_0x3639a7,_0x1e075e[_0x114e('0xf9')]()))){for(const _0x6aadee of _0x3639a7)_0x1e075e['addRange'](_0x6aadee);return _0x1e075e;}const _0x2f2f47=_0x5a1519(),_0x4d71fc=_0x2a6d74['id'],_0xecbe98=_0x114e('0x97')+_0x46216f,_0x36811b=this['_setSuggestionData']({'id':_0x2f2f47,'type':_0xecbe98,'data':_0x494657,'createdAt':new Date(),'authorId':_0x4d71fc,'attributes':_0x143530});for(const _0x2807fc of _0x3639a7)this['_addSuggestionMarker'](_0xecbe98,_0x2f2f47,_0x4d71fc,_0x2807fc,_0x35ac80[_0x114e('0x103')]());return _0x36811b;}[_0x114e('0x95')](_0x1018cd,_0x54fba7=null,_0x2feb8b={}){if(_0x1018cd[_0x114e('0x12')])return null;const _0x4facae=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')](_0x114e('0xe3'))['me'],_0x1b3571=new _0x530730(_0x1018cd['start'],_0x1018cd['end']);for(const {suggestion:_0x493b2c,meta:_0x445ec6}of this[_0x114e('0x53')](_0x1b3571,_0x114e('0xa7')))if(_0x445ec6[_0x114e('0x42')]&&!_0x445ec6[_0x114e('0x11a')]){if(_0x493b2c[_0x114e('0xa6')]){const _0x1f1a93=_0x493b2c[_0x114e('0xf9')]()['filter'](_0x2dfc1f=>_0x114e('0xda')!=_0x2dfc1f[_0x114e('0x38')][_0x114e('0x7c')]);_0x1f1a93['every'](_0x1f5767=>_0x1b3571[_0x114e('0xe')](_0x1f5767,!0x0))&&_0x493b2c[_0x114e('0xa')]();if(_0x1f1a93[_0x114e('0x137')](_0x27baf0=>_0x27baf0[_0x114e('0xe')](_0x1b3571,!0x0))){const _0x15d93a=this[_0x114e('0x3')][_0x114e('0xae')](_0x114e('0xc4'),_0x54fba7,_0x114e('0x10e'));return this[_0x114e('0xe2')](()=>_0x15d93a([_0x1b3571],null,_0x2feb8b)),null;}}else{const _0x1c2787=_0x1b3571[_0x114e('0x108')](_0x493b2c[_0x114e('0xdd')]());null!==_0x1c2787&&_0x493b2c[_0x114e('0x86')]([_0x1c2787],null,_0x2feb8b);}}if(_0x1b3571[_0x114e('0xf2')](),_0x1b3571['isCollapsed']||_0x114e('0xda')==_0x1b3571[_0x114e('0x38')][_0x114e('0x7c')])return null;let _0x281e8f=null,_0x43edc6=_0x1b3571[_0x114e('0x123')],_0x4cf19d=_0x1b3571[_0x114e('0xfb')];const _0x19c25d=this['_findSuggestions'](_0x1b3571,'deletion');for(const {suggestion:_0xb5bddf,meta:_0x506011}of _0x19c25d){const _0x3e6f8e=this['_model'][_0x114e('0xc1')](_0x43edc6,_0x4cf19d);if(_0x506011[_0x114e('0x42')]&&(this[_0x114e('0xb4')]||!_0x506011[_0x114e('0x2e')]&&!_0x506011['isInsideObject'])){if(_0xb5bddf['isMultiRange']){if(!Ot(_0xb5bddf,_0x2feb8b))continue;let _0x1c2f2f=!0x0;for(const _0x1cb499 of _0xb5bddf[_0x114e('0xf9')]()){if(_0x1cb499[_0x114e('0xe')](_0x3e6f8e,!0x0))return _0xb5bddf;_0x3e6f8e[_0x114e('0xe')](_0x1cb499)||(_0x1c2f2f=!0x1);}_0x1c2f2f&&_0xb5bddf[_0x114e('0xa')]();}else{const _0x47b593=_0xb5bddf[_0x114e('0xdd')]();if(_0x47b593[_0x114e('0xe')](_0x3e6f8e,!0x0))return _0xb5bddf;if(!Ot(_0xb5bddf,_0x2feb8b)){_0x3e6f8e[_0x114e('0xe')](_0x47b593)?_0xb5bddf[_0x114e('0xb0')]():_0x47b593[_0x114e('0xab')](_0x43edc6)?_0x43edc6=_0x47b593[_0x114e('0xfb')]:_0x47b593[_0x114e('0xab')](_0x4cf19d)&&(_0x4cf19d=_0x47b593[_0x114e('0x123')]);continue;}_0x43edc6=_0x43edc6['isBefore'](_0x47b593[_0x114e('0x123')])?_0x43edc6:_0x47b593[_0x114e('0x123')],_0x4cf19d=_0x4cf19d[_0x114e('0x5f')](_0x47b593[_0x114e('0xfb')])?_0x4cf19d:_0x47b593[_0x114e('0xfb')],_0x2feb8b=Object[_0x114e('0xbd')]({},_0xb5bddf[_0x114e('0x69')]),_0x281e8f?_0x47b593[_0x114e('0x123')][_0x114e('0x3e')](_0x281e8f[_0x114e('0xdd')]()[_0x114e('0x123')])?(_0x281e8f[_0x114e('0xb0')](),_0x281e8f=_0xb5bddf):_0xb5bddf['removeMarkers']():_0x281e8f=_0xb5bddf;}}}if(_0x281e8f)return this['_setSuggestionRange'](_0x281e8f,this[_0x114e('0x37')][_0x114e('0xc1')](_0x43edc6,_0x4cf19d)),_0x281e8f;{const _0x26666c=_0x5a1519(),_0x2fef24=this[_0x114e('0x37')][_0x114e('0xc1')](_0x43edc6,_0x4cf19d),_0x17b8fc=_0x4facae['id'],_0x23f0a8=_0x54fba7?_0x114e('0x114')+_0x54fba7:_0x114e('0xc4'),_0x240f86=this[_0x114e('0x9f')]({'id':_0x26666c,'type':_0x23f0a8,'createdAt':new Date(),'authorId':_0x17b8fc,'attributes':_0x2feb8b});return this[_0x114e('0xa8')](_0x23f0a8,_0x26666c,_0x17b8fc,_0x2fef24),_0x240f86;}}[_0x114e('0x2d')](_0x58e0d5,_0x1484ac=_0x114e('0xcb'),_0x156a31={}){const _0x34757c=this['editor'][_0x114e('0x11')][_0x114e('0x104')](_0x114e('0xe3'))['me'],_0x23b651=_0x58e0d5['map'](_0x4b9a74=>new _0x530730(_0x4b9a74[_0x114e('0x123')],_0x4b9a74[_0x114e('0xfb')])),_0x43cabd=new Set();for(const {suggestion:_0x29c8ff,meta:_0x571707}of this[_0x114e('0x53')](_0x23b651,'insertion'))_0x571707[_0x114e('0x42')]&&!_0x571707[_0x114e('0x11a')]&&_0x43cabd[_0x114e('0x6c')](_0x29c8ff);for(const _0x210df6 of _0x43cabd)if(_0x210df6['isMultiRange']){const _0x4c1f2f=_0x210df6[_0x114e('0xf9')]();(!_0x210df6[_0x114e('0x69')]||!_0x210df6[_0x114e('0x69')][_0x114e('0x3b')])&&(_0x4c1f2f[_0x114e('0x26')](_0x5c81b1=>_0x23b651[_0x114e('0x137')](_0x4037a7=>_0x4037a7['containsRange'](_0x5c81b1,!0x0)))&&_0x210df6['discard']());if(_0x23b651['every'](_0x4f66da=>_0x4c1f2f[_0x114e('0x137')](_0x160657=>_0x160657[_0x114e('0xe')](_0x4f66da,!0x0)))){const _0x54a7db=this[_0x114e('0x3')][_0x114e('0xae')](_0x114e('0xc4'),_0x1484ac,_0x114e('0x10e'));return this[_0x114e('0xe2')](()=>_0x54a7db(_0x58e0d5,null,_0x156a31)),null;}}else{const _0x12ec4a=_0x210df6[_0x114e('0xdd')]();_0x23b651[_0x114e('0x137')](_0x3f84ef=>_0x3f84ef['containsRange'](_0x12ec4a,!0x0))&&_0x210df6[_0x114e('0xa')]();if(_0x23b651[_0x114e('0x26')](_0x290d14=>_0x12ec4a[_0x114e('0xe')](_0x290d14,!0x0))){const _0x491cc8=this['_suggestionFactory']['getSuggestionCallback'](_0x114e('0xc4'),_0x1484ac,_0x114e('0x10e'));return this['forceDefaultExecution'](()=>_0x491cc8(_0x23b651,null,_0x156a31)),null;}}const _0x53df48=this[_0x114e('0x3')][_0x114e('0xae')](_0x114e('0xc4'),_0x1484ac,_0x114e('0x139'));let _0xd7adb=null;for(const _0x489e of this[_0x114e('0x125')]())if(_0x489e[_0x114e('0x15')]['id']==_0x34757c['id']&&_0x489e[_0x114e('0xcc')]&&'deletion'==_0x489e[_0x114e('0x107')]&&_0x489e[_0x114e('0x81')]==_0x1484ac&&Ot(_0x489e,_0x156a31)&&(_0x53df48(_0x489e['getRanges'](),_0x23b651)||_0x53df48(_0x23b651,_0x489e['getRanges']()))){if(_0xd7adb){if(_0x489e[_0x114e('0xea')]&&_0x489e[_0x114e('0xea')][_0x114e('0x62')])continue;for(const _0x33fb21 of _0x489e[_0x114e('0xf9')]())_0xd7adb['isIntersectingWithRange'](_0x33fb21)||_0xd7adb['addRange'](_0x33fb21);_0x489e[_0x114e('0xb0')]();}else{_0xd7adb=_0x489e;for(const _0x32290b of _0x23b651)_0x489e[_0x114e('0x98')](_0x32290b)||_0x489e[_0x114e('0xfc')](_0x32290b);}}if(_0xd7adb)return _0xd7adb;_0x43cabd[_0x114e('0x31')]();for(const {suggestion:_0x2d3b2e,meta:_0x2c1998}of this[_0x114e('0x53')](_0x23b651,_0x114e('0xc4')))_0x2c1998['isOwn']&&(this[_0x114e('0xb4')]||!_0x2c1998[_0x114e('0x2e')]&&!_0x2c1998['isInsideObject'])&&Ot(_0x2d3b2e,_0x156a31)&&_0x43cabd[_0x114e('0x6c')](_0x2d3b2e);for(const _0x5168f5 of _0x43cabd){const _0x502258=_0x5168f5[_0x114e('0xf9')]();if(!_0x156a31||!_0x156a31[_0x114e('0x3b')]){if(_0x23b651[_0x114e('0x26')](_0x40ccb9=>_0x502258[_0x114e('0x137')](_0x52462e=>_0x52462e[_0x114e('0xe')](_0x40ccb9,!0x0))))return _0x5168f5;}(!_0x5168f5[_0x114e('0x69')]||!_0x5168f5[_0x114e('0x69')][_0x114e('0x3b')])&&(_0x502258[_0x114e('0x26')](_0x3cf7d0=>_0x23b651['some'](_0x2c4679=>_0x2c4679[_0x114e('0xe')](_0x3cf7d0,!0x0)))&&_0x5168f5[_0x114e('0xa')]());}const _0x12267d=_0x5a1519(),_0x2b887e=_0x34757c['id'],_0x364721=_0x114e('0x114')+_0x1484ac,_0x1a14e9=this['_setSuggestionData']({'id':_0x12267d,'type':_0x364721,'createdAt':new Date(),'authorId':_0x2b887e,'attributes':_0x156a31});for(const _0x201cd8 of _0x23b651)_0x201cd8[_0x114e('0xf2')](),_0x201cd8['isCollapsed']||_0x114e('0xda')==_0x201cd8[_0x114e('0x38')][_0x114e('0x7c')]||this[_0x114e('0xa8')](_0x364721,_0x12267d,_0x2b887e,_0x201cd8,_0x35ac80[_0x114e('0x103')]());return _0x1a14e9;}[_0x114e('0xce')](_0xf10de3,_0x39caed){const _0xb7c7a4=_0xf10de3[_0x114e('0x70')]();this['_model'][_0x114e('0x8c')](_0x4f3b98=>{_0x4f3b98[_0x114e('0x11e')](_0xb7c7a4,{'range':_0x39caed});});}[_0x114e('0x84')](_0x198cd9){const _0x407a95=_0x198cd9['id'],_0xc9664c=this[_0x114e('0x73')][_0x114e('0x6b')][_0x114e('0x104')](_0x114e('0x7a'));this[_0x114e('0x7d')][_0x114e('0x116')](_0x407a95)||this[_0x114e('0x7d')][_0x114e('0x92')]({'channelId':_0xc9664c,'threadId':_0x407a95,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e9092=this[_0x114e('0x7d')]['getCommentThread'](_0x407a95);_0x4e9092[_0x114e('0x11c')](_0x114e('0xb9')),_0x4e9092[_0x114e('0xb9')]=!0x1,_0x198cd9[_0x114e('0xea')]=_0x4e9092;}['_checkSuggestionCorrectness'](_0x444e69,_0x4d70fd,_0x20c655,_0x8b7450){if(_0x444e69[_0x114e('0x107')]!=_0x4d70fd||_0x444e69[_0x114e('0x81')]!=_0x20c655||_0x444e69[_0x114e('0x9d')]['id']!=_0x8b7450)throw this['editor'][_0x114e('0x13d')](_0x114e('0x79')),new _0x15851b('track-changes-suggestion-data-mismatch',this);}[_0x114e('0xa2')](_0x85a31,_0x524de2){const _0x424844=_0x85a31[_0x114e('0xdd')]();if(_0x524de2[_0x114e('0x23')](_0x424844))_0x85a31[_0x114e('0xb0')]();else{if(_0x424844['containsRange'](_0x524de2)){const _0x5ac5f9=this['_model'][_0x114e('0x7')](_0x524de2[_0x114e('0x123')]['nodeBefore'],_0x114e('0xfb'));this['_setSuggestionRange'](_0x85a31,this[_0x114e('0x37')]['createRange'](_0x424844[_0x114e('0x123')],_0x5ac5f9));const _0x54d5a2=_0x5a1519(),_0x22d9c3=_0x85a31[_0x114e('0x9d')]['id'],_0x438278=_0x85a31[_0x114e('0x107')]+':'+_0x85a31[_0x114e('0x81')];this[_0x114e('0x9f')]({'id':_0x54d5a2,'type':_0x438278,'createdAt':new Date(),'authorId':_0x22d9c3,'data':_0x85a31[_0x114e('0x44')],'attributes':_0x85a31[_0x114e('0x69')]});const _0x124c38=this[_0x114e('0x37')]['createPositionAt'](_0x524de2['end'][_0x114e('0x130')],_0x114e('0x10a')),_0x4f8131=this[_0x114e('0x37')][_0x114e('0xc1')](_0x124c38,_0x424844[_0x114e('0xfb')]);this['_addSuggestionMarker'](_0x438278,_0x54d5a2,_0x22d9c3,_0x4f8131);}else{if(_0x424844[_0x114e('0xab')](_0x524de2[_0x114e('0x123')])){const _0x4a3c3e=this[_0x114e('0x37')]['createPositionAt'](_0x524de2[_0x114e('0x123')][_0x114e('0x136')],'end');this[_0x114e('0xce')](_0x85a31,this[_0x114e('0x37')][_0x114e('0xc1')](_0x424844[_0x114e('0x123')],_0x4a3c3e));}else{const _0x305774=this[_0x114e('0x37')][_0x114e('0x7')](_0x524de2[_0x114e('0xfb')][_0x114e('0x130')],'after');this['_setSuggestionRange'](_0x85a31,this['_model'][_0x114e('0xc1')](_0x305774,_0x424844[_0x114e('0xfb')]));}}}}['_rangeIsInLocalUserInsertion'](_0x75667a){for(const {suggestion:_0x2e67b9,meta:_0x2a253b}of this[_0x114e('0x53')](_0x75667a,_0x114e('0xa7'))){if(!_0x2a253b['isOwn'])continue;const _0x223052=_0x2e67b9['getRanges']();for(const _0x49b9bb of _0x223052)if(!_0x75667a[_0x114e('0x12a')](_0x49b9bb)['length'])return!0x0;}return!0x1;}[_0x114e('0x48')](_0x310719){const _0x4694e8=this[_0x114e('0x73')]['plugins'][_0x114e('0x104')](_0x114e('0xe3'))[_0x114e('0x82')](_0x310719);if(!_0x4694e8)throw new _0x15851b(_0x114e('0x34'),this);return _0x4694e8;}[_0x114e('0xf')](_0x53f9f7){const _0x4cd4bb=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')]('Users'),_0x2c299d=_0x58e119(_0x114e('0x10b')+_0x53f9f7),_0x4bcb8f=_0x4cd4bb[_0x114e('0x82')](_0x2c299d);return _0x4bcb8f||_0x4cd4bb['addUser']({'id':_0x2c299d,'name':_0x53f9f7});}[_0x114e('0x20')](_0x59a921,_0x3efd7f,_0x444f29,_0x4ff9bd,_0x130049){const _0xdad9a8=this['_getAuthorFromId'](_0x4ff9bd),_0x4c0648=this[_0x114e('0x3')][_0x114e('0x5e')](_0x59a921,_0x3efd7f,_0x444f29,_0xdad9a8,_0x130049,_0x310a5d=>this[_0x114e('0x22')](_0x444f29,{'attributes':_0x310a5d}));return this['listenTo'](_0x4c0648,'accept',()=>{this['_updateSuggestionData'](_0x444f29,{'state':'accepted'});},{'priority':_0x114e('0x113')}),this['listenTo'](_0x4c0648,_0x114e('0xa'),()=>{this[_0x114e('0x22')](_0x444f29,{'state':_0x114e('0x89')});},{'priority':_0x114e('0x113')}),this[_0x114e('0x27')][_0x114e('0x55')](_0x444f29,_0x4c0648),this['_suggestionState'][_0x114e('0x55')](_0x4c0648,_0x114e('0xc6')),_0x4c0648;}[_0x114e('0xf8')](_0x2c14d4){const _0x29704e=_0x2c14d4['split'](':');return{'group':_0x29704e[0x0],'type':_0x29704e[0x1],'subType':_0x29704e[_0x114e('0x62')]>=0x5?_0x29704e[0x2]:null,'id':_0x29704e[_0x114e('0x62')]<0x5?_0x29704e[0x2]:_0x29704e[0x3],'authorId':_0x29704e[_0x114e('0x62')]<0x5?_0x29704e[0x3]:_0x29704e[0x4],'markerCount':0x6==_0x29704e[_0x114e('0x62')]?_0x29704e[0x5]:null};}[_0x114e('0xe7')](_0x28f6da,_0x13c8fe,_0x1c623b){const _0x391a72=_0x28f6da[_0x114e('0xdd')](),_0x125405=_0x391a72[_0x114e('0x123')],_0x48592e=_0x391a72[_0x114e('0xfb')];this[_0x114e('0xce')](_0x28f6da,this[_0x114e('0x37')]['createRange'](_0x125405,_0x13c8fe));const _0x37ea28=_0x5a1519(),_0x4614ae=_0x28f6da['creator']['id'],_0x34955e=_0x28f6da[_0x114e('0x107')]+(_0x28f6da[_0x114e('0x81')]?':'+_0x28f6da[_0x114e('0x81')]:'');this[_0x114e('0x9f')]({'id':_0x37ea28,'type':_0x34955e,'createdAt':new Date(),'authorId':_0x4614ae,'originalSuggestionId':_0x28f6da['id'],'attributes':_0x28f6da[_0x114e('0x69')],'data':_0x28f6da[_0x114e('0x44')]}),_0x114e('0xdc')==_0x28f6da[_0x114e('0x107')]&&(_0x1c623b=this['_model']['createPositionBefore'](_0x1c623b[_0x114e('0x130')])),this['_addSuggestionMarker'](_0x34955e,_0x37ea28,_0x4614ae,this[_0x114e('0x37')][_0x114e('0xc1')](_0x1c623b,_0x48592e));}[_0x114e('0x53')](_0x26debc,_0x24e69a=null){const _0x228665=[],_0x6b821b=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')]('Users')['me'];Array[_0x114e('0xed')](_0x26debc)||(_0x26debc=[_0x26debc]);for(const _0x28d1e4 of this[_0x114e('0x125')]()){if(!_0x28d1e4[_0x114e('0xcc')])continue;if(_0x24e69a&&_0x28d1e4[_0x114e('0x107')]!=_0x24e69a)continue;let _0x57d8ca=!0x1;for(const _0x1420a1 of _0x28d1e4[_0x114e('0xf9')]()){for(const _0x35ea51 of _0x26debc){const _0x14b4d9=_0x35ea51['start']['isEqual'](_0x1420a1['end'])||_0x35ea51[_0x114e('0xfb')][_0x114e('0x23')](_0x1420a1[_0x114e('0x123')]);if(_0x14b4d9||_0x35ea51[_0x114e('0x108')](_0x1420a1)){const _0x492c7c=_0x35ea51['containsRange'](_0x1420a1)&&_t(this[_0x114e('0x37')][_0x114e('0xfa')],_0x1420a1[_0x114e('0x123')],_0x35ea51),_0x2094de=_0x1420a1[_0x114e('0xe')](_0x35ea51)&&_t(this[_0x114e('0x37')][_0x114e('0xfa')],_0x35ea51[_0x114e('0x123')],_0x1420a1);_0x228665[_0x114e('0x6d')]({'suggestion':_0x28d1e4,'meta':{'isOwn':_0x6b821b==_0x28d1e4[_0x114e('0x15')],'isNextTo':_0x14b4d9,'isInsideObject':_0x492c7c,'containsRangeInObject':_0x2094de}}),_0x57d8ca=!0x0;break;}}if(_0x57d8ca)break;}}return _0x228665;}[_0x114e('0xa8')](_0x272cc0,_0x10b4e1,_0x164087,_0x26062a,_0x3927df){this[_0x114e('0x37')][_0x114e('0x8c')](_0x5b3829=>{let _0x3d09ee=_0x114e('0xbe')+_0x272cc0+':'+_0x10b4e1+':'+_0x164087;_0x3927df&&(_0x3d09ee=_0x3d09ee+':'+_0x3927df),_0x5b3829[_0x114e('0x46')](_0x3d09ee,{'range':_0x26062a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1cde1e){const _0x1228e2=_0x1cde1e[_0x114e('0x41')],_0x45232c=_0x1cde1e[_0x114e('0x4d')];_0x1cde1e[_0x114e('0x41')]=null,null!=_0x1228e2&&(_0x1228e2['next']=null),_0x1cde1e[_0x114e('0x4d')]=null,null!=_0x45232c&&(_0x45232c[_0x114e('0x41')]=null),'ready'==this[_0x114e('0x50')][_0x114e('0x104')](_0x1cde1e)&&(this[_0x114e('0x50')]['set'](_0x1cde1e,_0x114e('0x58')),this[_0x114e('0x8a')](_0x114e('0xee'),_0x1cde1e,_0x1228e2,_0x45232c));}[_0x114e('0x9f')](_0x3a3499){const _0x2426a6=_0x3a3499['id'],_0x1d2278=this[_0x114e('0x5d')](_0x3a3499);if(this[_0x114e('0x13')]&&this['_adapter']['addSuggestion']){const _0xc2242a=this[_0x114e('0x73')][_0x114e('0x11')][_0x114e('0x104')](_0x114e('0x5b')),_0x5085ac=_0x1d2278[_0x114e('0x135')],_0x2aa9f7=_0x1d2278[_0x114e('0x81')]?_0x1d2278[_0x114e('0x107')]+':'+_0x1d2278[_0x114e('0x81')]:_0x1d2278['type'],_0x2df7a9=this[_0x114e('0x73')][_0x114e('0x13c')],_0x3c0011=_0xc2242a[_0x114e('0x6c')](_0x2741c6(_0x2df7a9,_0x114e('0xa3'))),_0x42862b={'id':_0x2426a6,'type':_0x2aa9f7,'hasComments':_0x5085ac,'data':_0x3a3499['data']||null,'originalSuggestionId':_0x3a3499[_0x114e('0xbc')]||null,'attributes':_0x1d2278[_0x114e('0x69')]};this['_adapter'][_0x114e('0xbf')](_0x42862b)[_0x114e('0x88')](_0xeca93a=>{_0x1d2278['_saved']=!0x0,_0xc2242a[_0x114e('0x3f')](_0x3c0011),_0xeca93a&&_0xeca93a[_0x114e('0xe4')]&&(this[_0x114e('0x27')]['get'](_0x2426a6)['createdAt']=_0xeca93a['createdAt']);})[_0x114e('0x119')](_0x30fa1f=>{throw _0xf83ce1('error-saving-suggestion-data-suggestion-discarded'),this[_0x114e('0x73')]['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1d2278['discard']();}),_0x1d2278['stopListening'](),this[_0x114e('0x27')]['delete'](_0x1d2278['id']),this[_0x114e('0x50')][_0x114e('0x6f')](_0x1d2278),_0x30fa1f;});}return _0x1d2278;}['_updateSuggestionData'](_0x49fd40,_0x403666){const _0x2e45bc=this[_0x114e('0x73')]['plugins'][_0x114e('0x104')](_0x114e('0x5b')),_0x1d5c46=this[_0x114e('0xe0')](_0x49fd40);if(this['_adapter']&&this[_0x114e('0x13')]['updateSuggestion']){if(_0x1d5c46[_0x114e('0x12c')]){const _0x4b107a=_0x2e45bc[_0x114e('0x6c')](_0x2741c6(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this[_0x114e('0x13')][_0x114e('0xb7')](_0x49fd40,_0x403666)[_0x114e('0x88')](()=>{_0x2e45bc[_0x114e('0x3f')](_0x4b107a);});}else _0x1d5c46['on']('change:_saved',()=>{this[_0x114e('0x22')](_0x49fd40,_0x403666);});}}[_0x114e('0xf0')](_0x254730){if(!this[_0x114e('0x13')]||!this[_0x114e('0x13')][_0x114e('0xe0')])throw new _0x15851b(_0x114e('0x74'),this);return this[_0x114e('0x13')]['getSuggestion'](_0x254730);}['_handleNewSuggestionMarker'](_0x5223bc){const {id:_0x4acd4c,type:_0x31f90b,subType:_0xc94c47,authorId:_0xb2727e}=this[_0x114e('0xf8')](_0x5223bc),_0x441469=this[_0x114e('0x27')][_0x114e('0x104')](_0x4acd4c)||this[_0x114e('0x20')](_0x31f90b,_0xc94c47,_0x4acd4c,_0xb2727e,{});switch(this['_checkSuggestionCorrectness'](_0x441469,_0x31f90b,_0xc94c47,_0xb2727e),this[_0x114e('0x50')]['get'](_0x441469)){case _0x114e('0xc6'):this[_0x114e('0xf0')](_0x4acd4c)[_0x114e('0x88')](_0x546493=>{let _0x343a92=Promise[_0x114e('0x3a')]();_0x546493[_0x114e('0x135')]&&(_0x343a92=this[_0x114e('0x7d')][_0x114e('0xa0')]({'channelId':this['editor'][_0x114e('0x6b')][_0x114e('0x104')](_0x114e('0x7a')),'threadId':_0x4acd4c})),_0x343a92['then'](()=>{this[_0x114e('0x5d')](_0x546493)[_0x114e('0x12c')]=!0x0;});}),this[_0x114e('0x50')][_0x114e('0x55')](_0x441469,'markerReady');break;case _0x114e('0x58'):this[_0x114e('0x22')](_0x4acd4c,{'state':_0x114e('0xf3')});case _0x114e('0x131'):this[_0x114e('0x50')][_0x114e('0x55')](_0x441469,_0x114e('0xd4')),this[_0x114e('0x8a')](_0x114e('0xd6'),_0x441469);break;case _0x114e('0xd4'):this['fire'](_0x114e('0x138'),_0x441469);}return _0x441469[_0x114e('0x5c')](_0x5223bc),_0x441469;}['_refreshSuggestionsChain'](_0x160c55){const _0x125711=Array[_0x114e('0xac')](_0x160c55)['filter'](_0x5f58fe=>!_0x5f58fe[_0x114e('0xa6')]),_0x2ce3dd=this[_0x114e('0x125')]({'skipNotAttached':!0x0})[_0x114e('0x51')](_0x3c08c6=>!_0x3c08c6['isMultiRange']),_0x1c7f7a=_0x2ce3dd[_0x114e('0x51')](_0x4c139=>!_0x160c55[_0x114e('0x121')](_0x4c139)),_0x108091=new Map(_0x2ce3dd['map'](_0x12a087=>[_0x12a087,this['_suggestionFactory'][_0x114e('0xae')](_0x12a087[_0x114e('0x107')],_0x12a087['subType'],_0x114e('0xd3'))])),_0x5bf09d=new Map(_0x2ce3dd[_0x114e('0x8')](_0x4791d7=>[_0x4791d7,_0x4791d7[_0x114e('0xdd')]()])),_0x1a4935=new Set(),_0xc5ab6d=new Set();for(let _0x26c90a=0x0;_0x26c90a<_0x125711[_0x114e('0x62')];_0x26c90a++)_0x182ed0(_0x125711[_0x26c90a],_0x125711,_0x26c90a+0x1);for(let _0x2d40b8=0x0;_0x2d40b8<_0x125711[_0x114e('0x62')];_0x2d40b8++)_0x182ed0(_0x125711[_0x2d40b8],_0x1c7f7a,0x0);for(let _0x1c6014=0x0;_0x1c6014<_0x125711[_0x114e('0x62')];_0x1c6014++){const _0x2cab20=_0x125711[_0x1c6014];!_0xc5ab6d[_0x114e('0x121')](_0x2cab20)&&_0x2cab20['previous']&&(_0x2cab20[_0x114e('0x41')][_0x114e('0x4d')]===_0x2cab20&&(_0x2cab20[_0x114e('0x41')][_0x114e('0x4d')]=null),_0x2cab20[_0x114e('0x41')]=null),!_0x1a4935[_0x114e('0x121')](_0x2cab20)&&_0x2cab20[_0x114e('0x4d')]&&(_0x2cab20[_0x114e('0x4d')][_0x114e('0x41')]===_0x2cab20&&(_0x2cab20[_0x114e('0x4d')]['previous']=null),_0x2cab20[_0x114e('0x4d')]=null);}function _0x182ed0(_0x58e7a8,_0x3120e4,_0x2fb086){for(let _0x5d320a=_0x2fb086;_0x5d320a<_0x3120e4[_0x114e('0x62')];_0x5d320a++){const _0x597b8d=_0x1f79dc(_0x58e7a8,_0x3120e4[_0x5d320a]);_0x597b8d&&(_0x597b8d[0x0]['next']=_0x597b8d[0x1],_0x597b8d[0x1][_0x114e('0x41')]=_0x597b8d[0x0],_0x1a4935[_0x114e('0x6c')](_0x597b8d[0x0]),_0xc5ab6d[_0x114e('0x6c')](_0x597b8d[0x1]));}}function _0x1f79dc(_0x513228,_0x363b11){if(_0x513228[_0x114e('0x15')]['id']!==_0x363b11[_0x114e('0x15')]['id'])return null;const _0x343d37=_0x108091[_0x114e('0x104')](_0x513228)(_0x513228,_0x363b11,_0x5bf09d[_0x114e('0x104')](_0x513228),_0x5bf09d['get'](_0x363b11));if(!_0x343d37)return null;return _0x108091['get'](_0x363b11)(_0x513228,_0x363b11,_0x5bf09d[_0x114e('0x104')](_0x513228),_0x5bf09d[_0x114e('0x104')](_0x363b11))?_0x343d37[0x1][_0x114e('0xea')]&&_0x343d37[0x1][_0x114e('0xea')]['length']?null:_0x343d37:null;}}['_joinWithAdjacentSuggestions'](_0x345326){const _0x3d2a7a=Array[_0x114e('0xac')](_0x345326),_0x46f9ee=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5bbd3c=_0x46f9ee[_0x114e('0x51')](_0x2a7b16=>!_0x345326[_0x114e('0x121')](_0x2a7b16)),_0x190d7d=new Map(_0x3d2a7a[_0x114e('0x8')](_0x3a4938=>[_0x3a4938,this[_0x114e('0x3')][_0x114e('0xae')](_0x3a4938[_0x114e('0x107')],_0x3a4938[_0x114e('0x81')],_0x114e('0x139'))])),_0x3cb367=new Map(_0x46f9ee[_0x114e('0x8')](_0x1627a0=>[_0x1627a0,_0x1627a0[_0x114e('0xf9')]()]));for(let _0x5412e4=0x0;_0x5412e4<_0x3d2a7a[_0x114e('0x62')];_0x5412e4++){if(_0xa38312(this,_0x3d2a7a[_0x5412e4],_0x3d2a7a,_0x5412e4+0x1))return!0x0;}for(let _0x1d8a8a=0x0;_0x1d8a8a<_0x3d2a7a[_0x114e('0x62')];_0x1d8a8a++){if(_0xa38312(this,_0x3d2a7a[_0x1d8a8a],_0x5bbd3c,0x0))return!0x0;}return!0x1;function _0xa38312(_0x1cfd3b,_0x81ab64,_0x5507a6,_0x50bfc6){for(let _0x29fe48=_0x50bfc6;_0x29fe48<_0x5507a6[_0x114e('0x62')];_0x29fe48++){const _0x59470e=_0x5507a6[_0x29fe48];if(_0x59470e['type']!==_0x81ab64['type']||_0x59470e[_0x114e('0x15')]['id']!==_0x81ab64[_0x114e('0x15')]['id']||_0x59470e[_0x114e('0x81')]!==_0x81ab64[_0x114e('0x81')])continue;if(!Ut(_0x81ab64,_0x59470e))continue;const _0x940e2=_0x190d7d[_0x114e('0x104')](_0x81ab64),_0x3eac2c=_0x3cb367[_0x114e('0x104')](_0x81ab64),_0x39a879=_0x3cb367['get'](_0x59470e),_0x40724d=_0x81ab64[_0x114e('0xea')]&&_0x81ab64[_0x114e('0xea')][_0x114e('0x62')],_0x646235=_0x59470e[_0x114e('0xea')]&&_0x59470e['commentThread']['length'];if(!_0x40724d&&_0x940e2(_0x39a879,_0x3eac2c))return _0x1cfd3b[_0x114e('0xb3')](_0x59470e,_0x81ab64),_0x3cb367['delete'](_0x81ab64),!0x0;if(!_0x646235&&_0x940e2(_0x3eac2c,_0x39a879))return _0x1cfd3b[_0x114e('0xb3')](_0x81ab64,_0x59470e),_0x3cb367[_0x114e('0x6f')](_0x59470e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5ea17b,_0x111d1){if(_0x5ea17b[_0x114e('0xa6')])for(const _0x4600c7 of _0x111d1[_0x114e('0xf9')]())_0x5ea17b['addRange'](_0x4600c7);else{const _0x43ffea=_0x111d1[_0x114e('0xdd')]()[_0x114e('0xfb')];this[_0x114e('0xce')](_0x5ea17b,this[_0x114e('0x37')][_0x114e('0xc1')](_0x5ea17b[_0x114e('0xdd')]()['start'],_0x43ffea));}_0x111d1[_0x114e('0xb0')]();}}class Bt{constructor(_0x23e41c){this[_0x114e('0x8f')]=_0x23e41c,this['_model']=_0x23e41c[_0x114e('0x6a')],this[_0x114e('0x134')]=new Map(),this[_0x114e('0xf4')]=new Map(),this[_0x114e('0x7f')]();}['buildSuggestion'](_0x5b371f,_0x542dba,_0x1d13a4,_0x307bcd,_0x1cd3f1,_0x57cb5f){return new _0x35ac80(this[_0x114e('0x37')],{'type':_0x5b371f,'subType':_0x542dba,'id':_0x1d13a4,'author':_0x307bcd,'creator':_0x307bcd,'attributes':_0x1cd3f1,'onAttributesChange':_0x57cb5f,'onAccept':(..._0x358282)=>this[_0x114e('0xae')](_0x5b371f,_0x542dba,_0x114e('0x10e'))(..._0x358282),'onDiscard':(..._0x28d214)=>this[_0x114e('0xae')](_0x5b371f,_0x542dba,_0x114e('0xa'))(..._0x28d214)});}[_0x114e('0x7e')](_0x430442,_0x2a8502,_0x487d9f,_0x2c639b){const _0x48b5cb=_0x430442+':'+_0x2a8502+':'+_0x487d9f;this[_0x114e('0x134')][_0x114e('0x55')](_0x48b5cb,_0x2c639b);}[_0x114e('0xae')](_0x7b0015,_0x4036ab,_0xd1949a){const _0x51501e=_0x7b0015+':'+_0x4036ab+':'+_0xd1949a;return this['_customCallbacks'][_0x114e('0x104')](_0x51501e)||this[_0x114e('0xf4')]['get'](_0x7b0015+':'+_0xd1949a);}[_0x114e('0x7f')](){const _0x2b37d8=()=>!0x1,_0x45e1c4=_0x6a40ba=>{_0x6a40ba[_0x114e('0x56')]((_0x5b9406,_0x3cada2)=>_0x5b9406['start']['isBefore'](_0x3cada2[_0x114e('0x123')])?0x1:-0x1),this[_0x114e('0x37')][_0x114e('0x8c')](_0x17874f=>{for(const _0x178911 of _0x6a40ba){let _0x2b70a2;_0x2b70a2=_0x178911[_0x114e('0xfb')][_0x114e('0x9c')]&&_0x178911[_0x114e('0xfb')]['parent']==_0x178911[_0x114e('0x123')][_0x114e('0x29')]?_0x17874f[_0x114e('0x60')](_0x178911[_0x114e('0x123')]['nodeAfter'],'on'):_0x17874f['createSelection'](_0x178911),this[_0x114e('0x37')]['deleteContent'](_0x2b70a2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x58a0ce=(_0x39805a,_0x302eec)=>{this[_0x114e('0x37')][_0x114e('0x8c')](_0x595658=>{const {commandName:_0x4baf6f,commandParams:_0x2caf98=[]}=_0x302eec,_0x156620=_0x39805a[_0x114e('0x8')](_0x1cae31=>(Mt(_0x1cae31)&&(_0x1cae31=this[_0x114e('0x37')][_0x114e('0xc1')](_0x1cae31['end'])),_0x1cae31))[_0x114e('0x51')](_0x268a93=>_0x114e('0xda')!==_0x268a93[_0x114e('0x38')][_0x114e('0x7c')]);if(_0x156620[_0x114e('0x62')]<0x1)return;const _0x2e216d=Array[_0x114e('0xac')](this[_0x114e('0x37')][_0x114e('0xe5')]['selection'][_0x114e('0xf9')]())['map'](_0x3f4436=>_0x530730['fromRange'](_0x3f4436));_0x595658[_0x114e('0x54')](_0x156620);for(const _0x5571e3 of this[_0x114e('0x8f')][_0x114e('0x40')][_0x114e('0x40')]())_0x5571e3['refresh']();_0x2caf98['push']({'forceDefaultExecution':!0x0}),this[_0x114e('0x8f')][_0x114e('0x105')](_0x4baf6f,..._0x2caf98);const _0x42f1ed=_0x2e216d[_0x114e('0x51')](_0x5df764=>'$graveyard'!=_0x5df764[_0x114e('0x38')]['rootName']);_0x42f1ed[_0x114e('0x62')]>0x0&&_0x595658[_0x114e('0x54')](_0x42f1ed);for(const _0x44449e of _0x2e216d)_0x44449e['detach']();});},_0x35bf10=(_0x455b21,_0x2ae547)=>0x1==_0x455b21[_0x114e('0x62')]&&0x1==_0x2ae547[_0x114e('0x62')]&&_0x455b21[0x0][_0x114e('0xfb')]['isEqual'](_0x2ae547[0x0][_0x114e('0x123')]),_0x45eb93=(_0x56cacb,_0x2a0d09,_0x590682,_0x5d1dc1)=>xt(_0x56cacb,_0x2a0d09,_0x590682,_0x5d1dc1,this[_0x114e('0x37')])?[_0x56cacb,_0x2a0d09]:xt(_0x2a0d09,_0x56cacb,_0x5d1dc1,_0x590682,this[_0x114e('0x37')])?[_0x2a0d09,_0x56cacb]:null;this['_defaultCallbacks']['set'](_0x114e('0xc2'),_0x2b37d8),this['_defaultCallbacks']['set'](_0x114e('0x8e'),_0x45e1c4),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0x78'),_0x35bf10),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0x112'),_0x45eb93),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0xcf'),_0x45e1c4),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0x10c'),_0x2b37d8),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0x71'),_0x35bf10),this['_defaultCallbacks'][_0x114e('0x55')](_0x114e('0xeb'),_0x45eb93),this[_0x114e('0xf4')][_0x114e('0x55')]('formatInline:accept',_0x58a0ce),this[_0x114e('0xf4')]['set'](_0x114e('0x120'),_0x2b37d8),this[_0x114e('0xf4')][_0x114e('0x55')]('formatInline:join',_0x35bf10),this[_0x114e('0xf4')]['set']('formatInline:chain',_0x2b37d8),this[_0x114e('0xf4')][_0x114e('0x55')](_0x114e('0x4f'),_0x58a0ce),this[_0x114e('0xf4')]['set'](_0x114e('0x8b'),_0x2b37d8),this[_0x114e('0xf4')][_0x114e('0x55')]('formatBlock:join',_0x35bf10),this[_0x114e('0xf4')]['set'](_0x114e('0xb'),_0x2b37d8);}}function _t(_0x29c4bf,_0x29c759,_0x2c1c1d){for(const _0x202521 of _0x29c759[_0x114e('0x130')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x202521[_0x114e('0x38')]==_0x202521)return!0x1;if(!_0x2c1c1d[_0x114e('0x17')](_0x202521))return!0x1;if(_0x29c4bf['isObject'](_0x202521)||_0x29c4bf['isLimit'](_0x202521))return!0x0;}return!0x1;}function Mt(_0x5286ad){return _0x5286ad[_0x114e('0xfb')][_0x114e('0x130')]==_0x5286ad['start']['nodeAfter']&&_0x5286ad[_0x114e('0xfb')]['isAtStart'];}function $t(_0x44168d,_0x31e457,_0x101452,_0x114ffe){const _0x4d87ba=_0x2ec96b=>!_0x2ec96b[_0x114e('0x12e')]['is'](_0x114e('0x10f'))&&!_0x114ffe['isObject'](_0x2ec96b[_0x114e('0x12e')]),_0x156b28=_0x44168d[_0x114e('0x123')][_0x114e('0x11d')](_0x4d87ba),_0x200998=_0x44168d['end'][_0x114e('0x11d')](_0x4d87ba,{'direction':_0x114e('0x0')});return(!_0x44168d['start'][_0x114e('0x23')](_0x156b28)||!_0x44168d['end'][_0x114e('0x23')](_0x200998))&&(_0x156b28[_0x114e('0x3e')](_0x200998)?_0x101452[_0x114e('0x11e')](_0x31e457,{'range':_0x101452[_0x114e('0xc1')](_0x156b28,_0x200998)}):_0x101452[_0x114e('0x115')](_0x31e457),!0x0);}function Nt(_0x38baa9){return _0x58e119(_0x38baa9);}function Rt(_0x188407){const _0x4f47cf=_0x188407['start'][_0x114e('0x29')];return _0x4f47cf&&_0x4f47cf['is'](_0x114e('0x13a'));}function jt(_0x5875fe,_0x533b06){const _0x5d5322=_0x533b06[_0x114e('0xfa')][_0x114e('0xad')](_0x5875fe)||_0x533b06[_0x114e('0xfa')]['isSelectable'](_0x5875fe);return _0x533b06['createRange'](_0x533b06[_0x114e('0x7')](_0x5875fe,_0x114e('0x72')),_0x5d5322?_0x533b06[_0x114e('0x57')](_0x5875fe):_0x533b06[_0x114e('0x7')](_0x5875fe,_0x114e('0xfb')));}function xt(_0x32fb9d,_0x73e681,_0x28de39,_0x4e8958,_0x2dc4f9){if(!Ut(_0x32fb9d,_0x73e681))return!0x1;if(_0x28de39[_0x114e('0xfb')][_0x114e('0x23')](_0x4e8958[_0x114e('0x123')]))return!0x0;if(_0x32fb9d[_0x114e('0x107')]!=_0x73e681[_0x114e('0x107')])return!0x1;if(!_0x28de39[_0x114e('0xfb')][_0x114e('0x1e')](_0x4e8958[_0x114e('0x123')]))return!0x1;const _0x59301c=_0x2dc4f9[_0x114e('0xc1')](_0x28de39[_0x114e('0xfb')],_0x4e8958[_0x114e('0x123')])[_0x114e('0xfe')]();for(const _0x275bf0 of _0x59301c)if(['elementStart',_0x114e('0x24')]['includes'](_0x275bf0[_0x114e('0x107')])&&_0x2dc4f9[_0x114e('0xfa')]['isLimit'](_0x275bf0[_0x114e('0x12e')]))return!0x1;return!0x0;}function Ut(_0x373049,_0x4fe599){return!(!_0x373049[_0x114e('0xb8')]||!_0x4fe599[_0x114e('0xb8')])&&_0x1cfd91(_0x373049[_0x114e('0x69')],_0x4fe599[_0x114e('0x69')]);}function Ot(_0x1cd0e3,_0x5bc677){const _0xfd562c=Et(_0x1cd0e3[_0x114e('0x69')]),_0x453099=Et(_0x5bc677);if(!_0x1cd0e3[_0x114e('0xb8')])return!0x1;for(const _0x32a2c4 of Object['keys'](_0x453099))if(!_0x1cfd91(_0xfd562c[_0x32a2c4],_0x453099[_0x32a2c4]))return!0x1;return!0x0;}function Et(_0x50f208){const _0x18825a=Object[_0x114e('0xbd')]({},_0x50f208);return delete _0x18825a[_0x114e('0x3b')],delete _0x18825a['tablePasteChainId'],_0x18825a;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2d50=['change:activeAnnotations','acceptSelectedSuggestions','getSuggestion','trackChanges.SuggestionThreadView','_destroyController','filter','suggestionLoaded','get','view','createAnnotationView','getDescriptions','editor','from','source','_disableComments','actionView','activeMarkers','push','innerView','EditorAnnotations','define','acceptButton','isEnabled','Annotations','switchbutton','plugins','listenTo','discardSelectedSuggestions','editing','_annotationViews','trackChanges','discardAllSuggestions','head','bind','getRanges','delete','add','mainView','getAllAdjacentSuggestions','type','pluginName','init','CommentsRepository','suggestion-','hasSuggestion','stopListening','execute','_updateController','SuggestionThreadView','value','locale','config','Accept\x20all\x20selected\x20suggestions','model','_handleSuggestionControllerDelayed','commentThread','isOn','change:previous','trackChanges.disableComments','set','buttonView','TrackChangesEditing','some','createCommentThreadController','registerAnnotation','toMany','length','comments.maxCommentsWhenCollapsed','CommentView','_descriptionFactory','size','Accept\x20all\x20suggestions','separator','_viewToController','getFirstRange','commands','refreshSelectedViews','_refreshActiveMarkers','clear','getMarkerNames','_suggestionToController','_initializeController','focus','unbind','commandName','CommentsUI','has','suggestionChanged','lowest','button','discardButton','arrowView','_bindAnnotationToEditors','isInContent','_handleControllerBuffer','previous','values','map','keys','_unbindEditors','isMultiRange','isDirty','addComment','descriptionParts','suggestionUnloaded','activeAnnotations','Discard\x20all\x20selected\x20suggestions','destroy'];(function(_0x321b11,_0x2d5096){const _0x4dacf3=function(_0x2b7e3a){while(--_0x2b7e3a){_0x321b11['push'](_0x321b11['shift']());}};_0x4dacf3(++_0x2d5096);}(_0x2d50,0x136));const _0x4dac=function(_0x321b11,_0x2d5096){_0x321b11=_0x321b11-0x0;let _0x4dacf3=_0x2d50[_0x321b11];return _0x4dacf3;};import{Plugin as _0x48f751}from'ckeditor5/src/core';import{Collection as _0x4a6c16}from'ckeditor5/src/utils';import{Model as _0xe92ad8,SplitButtonView as _0x498fe2,createDropdown as _0x3d99f8,addListToDropdown as _0x4c9974}from'ckeditor5/src/ui';import{Users as _0x44677c,getDateTimeFormatter as _0x51cf53,getAllMarkersDomElementsSorted as _0x51d2ec}from'ckeditor5-collaboration/src/collaboration-core';import _0x38a339 from'./trackchangesediting';import _0x11e26f from'./ui/suggestioncontroller';import _0x48365f from'./ui/view/suggestionthreadview';import{getTranslation as _0x2a4b97}from'./utils/common-translations';import _0x352211 from'../theme/icons/track-changes.svg';export default class d extends _0x48f751{static get['requires'](){return[_0x38a339,_0x44677c,_0x4dac('0x38'),'Annotations','EditorAnnotations'];}static get[_0x4dac('0x36')](){return'TrackChangesUI';}constructor(_0x4401f6){super(_0x4401f6),this[_0x4dac('0x5e')]=new Map(),this['_viewToController']=new Map(),this[_0x4dac('0x2b')]=new Map(),this[_0x4dac('0x0')]=new Map();const _0x4225aa=this[_0x4dac('0x19')]['config'];_0x4225aa[_0x4dac('0x22')](_0x4dac('0x11'),_0x48365f),_0x4225aa[_0x4dac('0x22')](_0x4dac('0x48'),!0x1),this[_0x4dac('0x1c')]=_0x4225aa['get'](_0x4dac('0x48'));}['_handleSuggestionControllerDelayed'](_0x470d0e,_0x449b80){0x0===this['_handleControllerBuffer'][_0x4dac('0x54')]&&setTimeout(()=>{for(const [_0x1b22c2,_0x512fb5]of this['_handleControllerBuffer']){const _0x5cd3e7=this[_0x4dac('0x5e')][_0x4dac('0x64')](_0x1b22c2);_0x5cd3e7||_0x512fb5?_0x5cd3e7&&_0x512fb5&&this[_0x4dac('0x12')](_0x1b22c2):this[_0x4dac('0x5f')](_0x1b22c2);}this[_0x4dac('0x19')][_0x4dac('0x27')][_0x4dac('0x15')]('EditorAnnotations')[_0x4dac('0x5a')](),this[_0x4dac('0x5b')](),this[_0x4dac('0x0')][_0x4dac('0x5c')]();},0xa),this['_handleControllerBuffer'][_0x4dac('0x49')](_0x470d0e,_0x449b80);}[_0x4dac('0x37')](){const _0x457a13=this[_0x4dac('0x19')],_0x4d660f=_0x457a13[_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x4b')),_0x2d00aa=_0x457a13[_0x4dac('0x27')][_0x4dac('0x15')]('Annotations'),_0x14c244=_0x457a13[_0x4dac('0x27')]['get'](_0x4dac('0x21')),_0x5ae5ec=_0x457a13['plugins'][_0x4dac('0x15')]('CommentsRepository');_0x457a13['ui']['componentFactory']['add'](_0x4dac('0x2c'),_0x274d81=>this['_createUIButton'](_0x274d81)),_0x14c244['addSourceCollector'](()=>{const _0x24cf90=[];for(const [_0x8ae4de,_0x290c02]of Array['from'](this[_0x4dac('0x5e')])){const _0x13df2c=_0x8ae4de[_0x4dac('0x34')](),_0x4fb67e=[];for(const _0x516c18 of _0x13df2c){if(!_0x516c18['isInContent'])continue;if(_0x516c18[_0x4dac('0x6')]){_0x4fb67e[_0x4dac('0x1f')](..._0x516c18[_0x4dac('0x30')]());continue;}const _0x389572=_0x516c18[_0x4dac('0x58')]();if(_0x4fb67e[_0x4dac('0x50')]>0x0){const _0x544815=_0x4fb67e[0x0]['getJoined'](_0x389572);if(_0x544815){_0x4fb67e[0x0]=_0x544815;continue;}}_0x4fb67e[_0x4dac('0x1f')](_0x389572);}_0x24cf90[_0x4dac('0x1f')]([_0x290c02[_0x4dac('0x16')],_0x4fb67e]);}return _0x24cf90;}),this[_0x4dac('0x28')](_0x4d660f,_0x4dac('0x14'),(_0x30f473,_0x5c38b8)=>{this[_0x4dac('0x28')](_0x5c38b8,_0x4dac('0x47'),(_0x4c7b53,_0x546a3f,_0x476f70,_0x2eea5b)=>{_0x5c38b8['isInContent']&&(null==_0x476f70?(this['_updateController'](_0x2eea5b['head']),this[_0x4dac('0x44')](_0x5c38b8,!0x1)):(this['_updateController'](_0x476f70[_0x4dac('0x2e')]),this['_handleSuggestionControllerDelayed'](_0x5c38b8,!0x0)));}),null===_0x5c38b8[_0x4dac('0x1')]?this[_0x4dac('0x44')](_0x5c38b8,!0x1):this[_0x4dac('0x3d')](_0x5c38b8['head']);}),this['listenTo'](_0x4d660f,_0x4dac('0xa'),(_0x168d6c,_0x5961a2,_0x3b0267)=>{this[_0x4dac('0x3b')](_0x5961a2,'change:previous'),this[_0x4dac('0x0')][_0x4dac('0x31')](_0x5961a2);const _0x2092c1=_0x3b0267?_0x3b0267[_0x4dac('0x2e')]:_0x5961a2,_0x502b44=this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x2092c1);null!==_0x3b0267&&this[_0x4dac('0x3d')](_0x2092c1),null===_0x3b0267&&_0x502b44&&this[_0x4dac('0x12')](_0x5961a2);}),this[_0x4dac('0x28')](_0x4d660f,_0x4dac('0x65'),(_0x3f2bd6,_0x8d6b03)=>{this[_0x4dac('0x3d')](_0x8d6b03);}),this[_0x4dac('0x28')](_0x2d00aa,_0x4dac('0xe'),()=>{this[_0x4dac('0x5b')]();}),this[_0x4dac('0x28')](_0x5ae5ec,_0x4dac('0x8'),(_0x1eda2f,{threadId:_0x11abd4,isFromAdapter:_0x3be6c4})=>{if(_0x3be6c4||!_0x4d660f[_0x4dac('0x3a')](_0x11abd4))return;const _0x4d6124=_0x4d660f[_0x4dac('0x10')](_0x11abd4);this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x4d6124)['view'][_0x4dac('0x60')]();},{'priority':_0x4dac('0x66')});}[_0x4dac('0x5b')](){const _0xe9948f=this[_0x4dac('0x19')][_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x25')),_0x4f6b5b=this['editor']['plugins']['get'](_0x4dac('0x4b')),_0x53c08e=Array[_0x4dac('0x1a')](_0xe9948f[_0x4dac('0xb')],_0x3b3ff8=>_0x3b3ff8[_0x4dac('0x20')])[_0x4dac('0x13')](_0x10d88a=>this[_0x4dac('0x57')][_0x4dac('0x64')](_0x10d88a)),_0x16b26a=[];for(const _0x12763a of _0x53c08e){const _0x481f07=this[_0x4dac('0x57')][_0x4dac('0x15')](_0x12763a)[_0x4dac('0x43')][_0x4dac('0x34')]();_0x16b26a['push'](..._0x481f07['reduce']((_0x26d68f,_0x315547)=>[..._0x26d68f,..._0x315547[_0x4dac('0x5d')]()],[]));}_0x4f6b5b[_0x4dac('0x1e')]=_0x16b26a;}['_createUIButton'](_0x4ac718){const _0x3a7b2e=_0x3d99f8(_0x4ac718,_0x498fe2),_0x439812=this[_0x4dac('0x19')][_0x4dac('0x59')][_0x4dac('0x15')](_0x4dac('0x2c')),_0x4bfed2=_0x2a4b97(_0x4ac718,'Track\x20changes');_0x3a7b2e[_0x4dac('0x4a')][_0x4dac('0x49')]({'tooltip':_0x4bfed2,'label':_0x4bfed2,'icon':_0x352211}),_0x3a7b2e[_0x4dac('0x4a')][_0x4dac('0x2f')](_0x4dac('0x46'))['to'](_0x439812,_0x4dac('0x3f')),_0x3a7b2e[_0x4dac('0x4a')]['on'](_0x4dac('0x3c'),()=>{_0x439812[_0x4dac('0x3c')](),this['editor']['editing']['view']['focus']();});const _0x2979fa=new _0x4a6c16(),_0x419e50=[{'type':_0x4dac('0x26'),'model':{'withText':!0x0,'label':_0x4bfed2,'commandName':_0x4dac('0x2c')}},{'type':_0x4dac('0x56')},{'type':_0x4dac('0x67'),'model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,_0x4dac('0x55')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,_0x4dac('0x42')),'commandName':_0x4dac('0xf')}},{'type':'button','model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,'Discard\x20all\x20suggestions'),'commandName':_0x4dac('0x2d')}},{'type':_0x4dac('0x67'),'model':{'withText':!0x0,'label':_0x2a4b97(_0x4ac718,_0x4dac('0xc')),'commandName':_0x4dac('0x29')}}];for(const _0x193af7 of _0x419e50){let _0x3c8e97={'type':_0x4dac('0x56')};if(_0x193af7[_0x4dac('0x43')]){const _0x7c4e0c=new _0xe92ad8(_0x193af7[_0x4dac('0x43')]),_0x1e1183=this[_0x4dac('0x19')][_0x4dac('0x59')][_0x4dac('0x15')](_0x7c4e0c[_0x4dac('0x62')]);_0x7c4e0c[_0x4dac('0x2f')](_0x4dac('0x46'),_0x4dac('0x24'))['to'](_0x1e1183,_0x4dac('0x3f'),_0x4dac('0x24')),_0x3c8e97={'type':_0x193af7[_0x4dac('0x35')],'model':_0x7c4e0c};}_0x2979fa[_0x4dac('0x32')](_0x3c8e97);}_0x4c9974(_0x3a7b2e,_0x2979fa);const _0x2a1e3c=_0x419e50[_0x4dac('0x13')](_0x4e8d75=>null!=_0x4e8d75[_0x4dac('0x43')])[_0x4dac('0x3')](_0x144ac3=>this[_0x4dac('0x19')][_0x4dac('0x59')][_0x4dac('0x15')](_0x144ac3['model'][_0x4dac('0x62')])),_0x3f9e00=_0x3a7b2e['buttonView'];return _0x3f9e00[_0x4dac('0x1d')][_0x4dac('0x61')](_0x4dac('0x24')),_0x3f9e00[_0x4dac('0x69')][_0x4dac('0x61')](_0x4dac('0x24')),_0x3f9e00[_0x4dac('0x1d')][_0x4dac('0x2f')]('isEnabled')['to'](_0x439812,_0x4dac('0x24')),_0x3f9e00[_0x4dac('0x69')][_0x4dac('0x2f')](_0x4dac('0x24'))[_0x4dac('0x4f')](_0x2a1e3c,'isEnabled',(..._0x535416)=>_0x535416[_0x4dac('0x4c')](_0x476498=>_0x476498)),_0x3a7b2e['on'](_0x4dac('0x3c'),_0x18f6b8=>{this['editor'][_0x4dac('0x3c')](_0x18f6b8[_0x4dac('0x1b')][_0x4dac('0x62')]),this[_0x4dac('0x19')][_0x4dac('0x2a')]['view'][_0x4dac('0x60')]();}),_0x3a7b2e;}[_0x4dac('0x5f')](_0x242254){const _0x9bd6d7=this[_0x4dac('0x19')],_0x42478c=_0x9bd6d7[_0x4dac('0x41')],_0x5003e5=_0x9bd6d7['plugins'][_0x4dac('0x15')](_0x4dac('0x25')),_0xb50545=_0x9bd6d7['plugins']['get'](_0x4dac('0x38')),_0x3ca772=_0x9bd6d7['plugins'][_0x4dac('0x15')](_0x4dac('0x21')),_0xa29788=_0x9bd6d7[_0x4dac('0x27')][_0x4dac('0x15')](_0x44677c)['me'],_0x3d9630=_0x42478c['get']('trackChanges')[_0x4dac('0x3e')],{CommentsListView:_0x1022a9,CommentThreadInputView:_0xc42279}=_0x9bd6d7[_0x4dac('0x27')]['get'](_0x4dac('0x63'));let _0x575d3b,_0x1b8f89;this[_0x4dac('0x2b')][_0x4dac('0x64')](_0x242254['id'])?(_0x1b8f89=this[_0x4dac('0x2b')]['get'](_0x242254['id']),_0x575d3b=_0x1b8f89['mainView']):(_0x575d3b=new _0x3d9630(_0x9bd6d7[_0x4dac('0x40')],_0x242254,_0xa29788,{'disableComments':this[_0x4dac('0x1c')],'editorConfig':_0x42478c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x42478c['get'](_0x4dac('0x51')),'maxThreadTotalWeight':_0x42478c[_0x4dac('0x15')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x42478c[_0x4dac('0x15')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x51cf53(_0x42478c[_0x4dac('0x15')](_0x4dac('0x40'))),'CommentView':_0x42478c[_0x4dac('0x15')]('comments')[_0x4dac('0x52')],'CommentsListView':_0x1022a9,'CommentThreadInputView':_0xc42279}),_0x575d3b[_0x4dac('0x23')]['on'](_0x4dac('0x3c'),()=>{_0x9bd6d7['editing'][_0x4dac('0x16')][_0x4dac('0x60')]();}),_0x575d3b[_0x4dac('0x68')]['on'](_0x4dac('0x3c'),()=>{_0x9bd6d7[_0x4dac('0x2a')][_0x4dac('0x16')]['focus']();}),_0x1b8f89=_0x5003e5[_0x4dac('0x17')](this['editor'][_0x4dac('0x40')],_0x575d3b),_0x1b8f89[_0x4dac('0x2f')]('isDirty')['to'](_0x575d3b,_0x4dac('0x7')),_0x1b8f89[_0x4dac('0x2f')](_0x4dac('0x50'))['to'](_0x575d3b),_0x1b8f89[_0x4dac('0x2f')](_0x4dac('0x35'))['to'](_0x575d3b,_0x4dac('0x35'),_0x3378b3=>'suggestion-'+_0x3378b3),this[_0x4dac('0x2b')]['set'](_0x242254['id'],_0x1b8f89));const _0x248e61=_0xb50545[_0x4dac('0x4d')](_0x242254[_0x4dac('0x45')],_0x575d3b),_0x576099=new _0x11e26f(_0x9bd6d7,_0x242254,_0x575d3b,_0x248e61),_0x3bff30=_0x242254['getAllAdjacentSuggestions']()[_0x4dac('0x13')](_0x5eff01=>_0x5eff01[_0x4dac('0x6b')]);_0x575d3b[_0x4dac('0x9')]=_0x9bd6d7[_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x4b'))[_0x4dac('0x53')][_0x4dac('0x18')](_0x3bff30),this[_0x4dac('0x5e')][_0x4dac('0x49')](_0x242254,_0x576099),this[_0x4dac('0x57')][_0x4dac('0x49')](_0x575d3b,_0x576099);const _0x24548f=_0x5003e5['createAnnotation']({'view':_0x1b8f89,'target':()=>{const _0x1f2d9d=[],_0x488d87=_0x242254[_0x4dac('0x34')]()[_0x4dac('0x13')](_0x479327=>_0x479327[_0x4dac('0x6b')]);for(const _0x2d5443 of _0x488d87)_0x1f2d9d['push'](..._0x2d5443['getMarkers']());return _0x51d2ec(_0x9bd6d7[_0x4dac('0x2a')],_0x1f2d9d);},'type':()=>_0x4dac('0x39')+_0x576099[_0x4dac('0x16')][_0x4dac('0x35')]});_0xb50545[_0x4dac('0x6a')](_0x575d3b,_0x24548f),_0x5003e5['add'](_0x24548f),_0x3ca772[_0x4dac('0x4e')](_0x24548f);}['_destroyController'](_0x1a9993){const _0x1b4d43=this[_0x4dac('0x19')][_0x4dac('0x27')][_0x4dac('0x15')](_0x4dac('0x38')),_0x1bcd38=this[_0x4dac('0x19')][_0x4dac('0x27')]['get'](_0x4dac('0x25')),_0x32d85b=this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x1a9993),_0x402099=_0x32d85b[_0x4dac('0x16')],_0x21e9e4=_0x1bcd38['getByInnerView'](_0x402099);_0x1b4d43[_0x4dac('0x5')](_0x402099),_0x21e9e4&&_0x1bcd38['remove'](_0x21e9e4),this[_0x4dac('0x5e')][_0x4dac('0x31')](_0x1a9993),this[_0x4dac('0x57')][_0x4dac('0x31')](_0x402099),_0x32d85b[_0x4dac('0xd')]();}[_0x4dac('0x3d')](_0x5ccaed){if(!_0x5ccaed['isInContent']||!this[_0x4dac('0x5e')][_0x4dac('0x64')](_0x5ccaed))return;const _0x4da20c=this[_0x4dac('0x19')]['plugins'][_0x4dac('0x15')]('TrackChangesEditing'),_0x3c88c1=this[_0x4dac('0x5e')][_0x4dac('0x15')](_0x5ccaed),_0x44d4cc=_0x5ccaed[_0x4dac('0x34')]();_0x3c88c1[_0x4dac('0x16')][_0x4dac('0x9')]=_0x4da20c[_0x4dac('0x53')][_0x4dac('0x18')](_0x44d4cc);}[_0x4dac('0xd')](){for(const _0x13ce43 of this[_0x4dac('0x5e')][_0x4dac('0x4')]())this['_destroyController'](_0x13ce43);for(const _0x1d95fe of this[_0x4dac('0x2b')][_0x4dac('0x2')]())_0x1d95fe[_0x4dac('0x33')]['destroy']();super[_0x4dac('0xd')]();}}
|
|
23
|
+
const _0x5417=['add','_handleSuggestionControllerDelayed','button','Accept\x20all\x20suggestions','listenTo','isDirty','_initializeController','_disableComments','isMultiRange','get','define','CommentsUI','_bindAnnotationToEditors','Discard\x20all\x20selected\x20suggestions','Annotations','CommentView','suggestion-','some','arrowView','plugins','delete','activeMarkers','toMany','lowest','acceptSelectedSuggestions','has','_annotationViews','actionView','getByInnerView','acceptButton','change:previous','isEnabled','trackChanges.SuggestionThreadView','suggestionUnloaded','addSourceCollector','_createUIButton','requires','acceptAllSuggestions','comments.maxThreadTotalWeight','TrackChangesEditing','createAnnotationView','config','_handleControllerBuffer','getFirstRange','push','editing','set','trackChanges.disableComments','bind','addComment','size','registerAnnotation','suggestionLoaded','view','getSuggestion','commandName','head','isOn','remove','_suggestionToController','Discard\x20all\x20suggestions','isInContent','discardButton','_updateController','comments.maxCommentsWhenCollapsed','_viewToController','comments','getMarkers','filter','commands','descriptionParts','mainView','previous','unbind','getDescriptions','createCommentThreadController','TrackChangesUI','_refreshActiveMarkers','_destroyController','editor','buttonView','getRanges','getMarkerNames','locale','switchbutton','activeAnnotations','type','source','refreshSelectedViews','discardSelectedSuggestions','destroy','CommentsRepository','suggestionChanged','getAllAdjacentSuggestions','innerView','model','execute','clear','focus','trackChanges','value','EditorAnnotations','_unbindEditors','separator','createAnnotation','discardAllSuggestions','comments.editorConfig','length','SuggestionThreadView'];(function(_0x56ef22,_0x541737){const _0x12f541=function(_0x223480){while(--_0x223480){_0x56ef22['push'](_0x56ef22['shift']());}};_0x12f541(++_0x541737);}(_0x5417,0x1d1));const _0x12f5=function(_0x56ef22,_0x541737){_0x56ef22=_0x56ef22-0x0;let _0x12f541=_0x5417[_0x56ef22];return _0x12f541;};import{Plugin as _0x20bf52}from'ckeditor5/src/core';import{Collection as _0x593432}from'ckeditor5/src/utils';import{Model as _0x237f9f,SplitButtonView as _0x485ca9,createDropdown as _0x105156,addListToDropdown as _0x379a6a}from'ckeditor5/src/ui';import{Users as _0xe6b23c,getDateTimeFormatter as _0x24ca19,getAllMarkersDomElementsSorted as _0x2b11ca}from'ckeditor5-collaboration/src/collaboration-core';import _0x518333 from'./trackchangesediting';import _0x29140d from'./ui/suggestioncontroller';import _0x419c6d from'./ui/view/suggestionthreadview';import{getTranslation as _0x812c14}from'./utils/common-translations';import _0x5a89de from'../theme/icons/track-changes.svg';export default class d extends _0x20bf52{static get[_0x12f5('0x7')](){return[_0x518333,_0xe6b23c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return _0x12f5('0x2f');}constructor(_0xadee3e){super(_0xadee3e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0x12f5('0x6a')]=new Map(),this[_0x12f5('0xd')]=new Map();const _0x551071=this['editor']['config'];_0x551071[_0x12f5('0x5a')](_0x12f5('0x3'),_0x419c6d),_0x551071[_0x12f5('0x5a')](_0x12f5('0x12'),!0x1),this[_0x12f5('0x57')]=_0x551071['get'](_0x12f5('0x12'));}['_handleSuggestionControllerDelayed'](_0x2d38ca,_0x3a8f32){0x0===this[_0x12f5('0xd')][_0x12f5('0x15')]&&setTimeout(()=>{for(const [_0x414f1c,_0x3f4148]of this[_0x12f5('0xd')]){const _0xa69a74=this[_0x12f5('0x1e')][_0x12f5('0x69')](_0x414f1c);_0xa69a74||_0x3f4148?_0xa69a74&&_0x3f4148&&this['_destroyController'](_0x414f1c):this[_0x12f5('0x56')](_0x414f1c);}this['editor'][_0x12f5('0x63')][_0x12f5('0x59')]('EditorAnnotations')[_0x12f5('0x3b')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x12f5('0x44')]();},0xa),this['_handleControllerBuffer'][_0x12f5('0x11')](_0x2d38ca,_0x3a8f32);}['init'](){const _0x12efcf=this[_0x12f5('0x32')],_0xbbcd33=_0x12efcf[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0xa')),_0x4085f7=_0x12efcf['plugins'][_0x12f5('0x59')](_0x12f5('0x5e')),_0xf7b040=_0x12efcf[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0x48')),_0x40dfb6=_0x12efcf['plugins'][_0x12f5('0x59')](_0x12f5('0x3e'));_0x12efcf['ui']['componentFactory']['add'](_0x12f5('0x46'),_0x501563=>this[_0x12f5('0x6')](_0x501563)),_0xf7b040[_0x12f5('0x5')](()=>{const _0x38f43e=[];for(const [_0x16745d,_0x55bc3b]of Array['from'](this[_0x12f5('0x1e')])){const _0x3dc6c6=_0x16745d['getAllAdjacentSuggestions'](),_0x12670e=[];for(const _0x2eba61 of _0x3dc6c6){if(!_0x2eba61[_0x12f5('0x20')])continue;if(_0x2eba61[_0x12f5('0x58')]){_0x12670e[_0x12f5('0xf')](..._0x2eba61[_0x12f5('0x34')]());continue;}const _0x5443e8=_0x2eba61[_0x12f5('0xe')]();if(_0x12670e[_0x12f5('0x4e')]>0x0){const _0x45a5de=_0x12670e[0x0]['getJoined'](_0x5443e8);if(_0x45a5de){_0x12670e[0x0]=_0x45a5de;continue;}}_0x12670e[_0x12f5('0xf')](_0x5443e8);}_0x38f43e[_0x12f5('0xf')]([_0x55bc3b[_0x12f5('0x18')],_0x12670e]);}return _0x38f43e;}),this[_0x12f5('0x54')](_0xbbcd33,_0x12f5('0x17'),(_0x1ae047,_0x2b6c2d)=>{this[_0x12f5('0x54')](_0x2b6c2d,'change:previous',(_0x1bc5cd,_0x23df62,_0x18759f,_0x2ee8a8)=>{_0x2b6c2d['isInContent']&&(null==_0x18759f?(this[_0x12f5('0x22')](_0x2ee8a8[_0x12f5('0x1b')]),this[_0x12f5('0x51')](_0x2b6c2d,!0x1)):(this['_updateController'](_0x18759f['head']),this['_handleSuggestionControllerDelayed'](_0x2b6c2d,!0x0)));}),null===_0x2b6c2d[_0x12f5('0x2b')]?this[_0x12f5('0x51')](_0x2b6c2d,!0x1):this[_0x12f5('0x22')](_0x2b6c2d[_0x12f5('0x1b')]);}),this['listenTo'](_0xbbcd33,_0x12f5('0x4'),(_0x4270e3,_0x5385e9,_0x50cf40)=>{this['stopListening'](_0x5385e9,_0x12f5('0x1')),this[_0x12f5('0xd')][_0x12f5('0x64')](_0x5385e9);const _0x9982c7=_0x50cf40?_0x50cf40[_0x12f5('0x1b')]:_0x5385e9,_0x53485e=this[_0x12f5('0x1e')]['get'](_0x9982c7);null!==_0x50cf40&&this[_0x12f5('0x22')](_0x9982c7),null===_0x50cf40&&_0x53485e&&this[_0x12f5('0x31')](_0x5385e9);}),this['listenTo'](_0xbbcd33,_0x12f5('0x3f'),(_0x784ab0,_0x3de807)=>{this[_0x12f5('0x22')](_0x3de807);}),this[_0x12f5('0x54')](_0x4085f7,'change:activeAnnotations',()=>{this[_0x12f5('0x30')]();}),this[_0x12f5('0x54')](_0x40dfb6,_0x12f5('0x14'),(_0xcb6d02,{threadId:_0x40764e,isFromAdapter:_0x284e87})=>{if(_0x284e87||!_0xbbcd33['hasSuggestion'](_0x40764e))return;const _0x5e1ecf=_0xbbcd33[_0x12f5('0x19')](_0x40764e);this[_0x12f5('0x1e')][_0x12f5('0x59')](_0x5e1ecf)[_0x12f5('0x18')]['focus']();},{'priority':_0x12f5('0x67')});}['_refreshActiveMarkers'](){const _0x21923c=this[_0x12f5('0x32')][_0x12f5('0x63')][_0x12f5('0x59')]('Annotations'),_0x4ba024=this[_0x12f5('0x32')]['plugins']['get'](_0x12f5('0xa')),_0x314c40=Array['from'](_0x21923c[_0x12f5('0x38')],_0x207bf5=>_0x207bf5[_0x12f5('0x41')])[_0x12f5('0x27')](_0x2694af=>this[_0x12f5('0x24')][_0x12f5('0x69')](_0x2694af)),_0x2e7dd8=[];for(const _0x5dde0f of _0x314c40){const _0x3d36a7=this[_0x12f5('0x24')][_0x12f5('0x59')](_0x5dde0f)[_0x12f5('0x42')][_0x12f5('0x40')]();_0x2e7dd8[_0x12f5('0xf')](..._0x3d36a7['reduce']((_0x128cbd,_0x20d609)=>[..._0x128cbd,..._0x20d609[_0x12f5('0x35')]()],[]));}_0x4ba024[_0x12f5('0x65')]=_0x2e7dd8;}[_0x12f5('0x6')](_0x1c1a5f){const _0x340a5c=_0x105156(_0x1c1a5f,_0x485ca9),_0x5ca8e1=this[_0x12f5('0x32')][_0x12f5('0x28')][_0x12f5('0x59')](_0x12f5('0x46')),_0x23757c=_0x812c14(_0x1c1a5f,'Track\x20changes');_0x340a5c['buttonView'][_0x12f5('0x11')]({'tooltip':_0x23757c,'label':_0x23757c,'icon':_0x5a89de}),_0x340a5c[_0x12f5('0x33')][_0x12f5('0x13')](_0x12f5('0x1c'))['to'](_0x5ca8e1,_0x12f5('0x47')),_0x340a5c[_0x12f5('0x33')]['on'](_0x12f5('0x43'),()=>{_0x5ca8e1['execute'](),this[_0x12f5('0x32')]['editing'][_0x12f5('0x18')][_0x12f5('0x45')]();});const _0x36e91e=new _0x593432(),_0x5bfb5b=[{'type':_0x12f5('0x37'),'model':{'withText':!0x0,'label':_0x23757c,'commandName':_0x12f5('0x46')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,_0x12f5('0x53')),'commandName':_0x12f5('0x8')}},{'type':_0x12f5('0x52'),'model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x12f5('0x68')}},{'type':'button','model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,_0x12f5('0x1f')),'commandName':_0x12f5('0x4c')}},{'type':'button','model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,_0x12f5('0x5d')),'commandName':_0x12f5('0x3c')}}];for(const _0x48c119 of _0x5bfb5b){let _0x36a001={'type':_0x12f5('0x4a')};if(_0x48c119[_0x12f5('0x42')]){const _0xcb0c17=new _0x237f9f(_0x48c119[_0x12f5('0x42')]),_0x4fdda3=this['editor'][_0x12f5('0x28')][_0x12f5('0x59')](_0xcb0c17[_0x12f5('0x1a')]);_0xcb0c17[_0x12f5('0x13')](_0x12f5('0x1c'),'isEnabled')['to'](_0x4fdda3,_0x12f5('0x47'),'isEnabled'),_0x36a001={'type':_0x48c119[_0x12f5('0x39')],'model':_0xcb0c17};}_0x36e91e[_0x12f5('0x50')](_0x36a001);}_0x379a6a(_0x340a5c,_0x36e91e);const _0x141419=_0x5bfb5b[_0x12f5('0x27')](_0x376fcb=>null!=_0x376fcb[_0x12f5('0x42')])['map'](_0x23043c=>this[_0x12f5('0x32')]['commands'][_0x12f5('0x59')](_0x23043c[_0x12f5('0x42')][_0x12f5('0x1a')])),_0x23ee20=_0x340a5c['buttonView'];return _0x23ee20[_0x12f5('0x6b')][_0x12f5('0x2c')](_0x12f5('0x2')),_0x23ee20[_0x12f5('0x62')][_0x12f5('0x2c')]('isEnabled'),_0x23ee20['actionView'][_0x12f5('0x13')]('isEnabled')['to'](_0x5ca8e1,_0x12f5('0x2')),_0x23ee20[_0x12f5('0x62')]['bind']('isEnabled')[_0x12f5('0x66')](_0x141419,_0x12f5('0x2'),(..._0x4a70f7)=>_0x4a70f7[_0x12f5('0x61')](_0xf6b785=>_0xf6b785)),_0x340a5c['on']('execute',_0x28385b=>{this[_0x12f5('0x32')][_0x12f5('0x43')](_0x28385b[_0x12f5('0x3a')]['commandName']),this[_0x12f5('0x32')][_0x12f5('0x10')][_0x12f5('0x18')]['focus']();}),_0x340a5c;}[_0x12f5('0x56')](_0x4fde8a){const _0x39cfd7=this['editor'],_0x42df67=_0x39cfd7[_0x12f5('0xc')],_0x1bf86b=_0x39cfd7[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0x5e')),_0x3a025c=_0x39cfd7[_0x12f5('0x63')]['get']('CommentsRepository'),_0x2112c1=_0x39cfd7[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0x48')),_0x2c0d75=_0x39cfd7['plugins']['get'](_0xe6b23c)['me'],_0x43508c=_0x42df67[_0x12f5('0x59')]('trackChanges')[_0x12f5('0x4f')],{CommentsListView:_0x47c29f,CommentThreadInputView:_0x4da8f0}=_0x39cfd7[_0x12f5('0x63')]['get'](_0x12f5('0x5b'));let _0x12d622,_0x565228;this[_0x12f5('0x6a')][_0x12f5('0x69')](_0x4fde8a['id'])?(_0x565228=this[_0x12f5('0x6a')][_0x12f5('0x59')](_0x4fde8a['id']),_0x12d622=_0x565228['mainView']):(_0x12d622=new _0x43508c(_0x39cfd7[_0x12f5('0x36')],_0x4fde8a,_0x2c0d75,{'disableComments':this[_0x12f5('0x57')],'editorConfig':_0x42df67[_0x12f5('0x59')](_0x12f5('0x4d')),'maxCommentsWhenCollapsed':_0x42df67[_0x12f5('0x59')](_0x12f5('0x23')),'maxThreadTotalWeight':_0x42df67[_0x12f5('0x59')](_0x12f5('0x9')),'maxCommentCharsWhenCollapsed':_0x42df67[_0x12f5('0x59')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x24ca19(_0x42df67['get']('locale')),'CommentView':_0x42df67['get'](_0x12f5('0x25'))[_0x12f5('0x5f')],'CommentsListView':_0x47c29f,'CommentThreadInputView':_0x4da8f0}),_0x12d622[_0x12f5('0x0')]['on'](_0x12f5('0x43'),()=>{_0x39cfd7['editing'][_0x12f5('0x18')][_0x12f5('0x45')]();}),_0x12d622[_0x12f5('0x21')]['on'](_0x12f5('0x43'),()=>{_0x39cfd7['editing'][_0x12f5('0x18')][_0x12f5('0x45')]();}),_0x565228=_0x1bf86b[_0x12f5('0xb')](this[_0x12f5('0x32')]['locale'],_0x12d622),_0x565228[_0x12f5('0x13')](_0x12f5('0x55'))['to'](_0x12d622,_0x12f5('0x55')),_0x565228[_0x12f5('0x13')](_0x12f5('0x4e'))['to'](_0x12d622),_0x565228[_0x12f5('0x13')]('type')['to'](_0x12d622,'type',_0x12279f=>_0x12f5('0x60')+_0x12279f),this['_annotationViews'][_0x12f5('0x11')](_0x4fde8a['id'],_0x565228));const _0x1dbe0e=_0x3a025c[_0x12f5('0x2e')](_0x4fde8a['commentThread'],_0x12d622),_0x56924e=new _0x29140d(_0x39cfd7,_0x4fde8a,_0x12d622,_0x1dbe0e),_0xd6a6a6=_0x4fde8a[_0x12f5('0x40')]()[_0x12f5('0x27')](_0x532097=>_0x532097[_0x12f5('0x20')]);_0x12d622[_0x12f5('0x29')]=_0x39cfd7[_0x12f5('0x63')][_0x12f5('0x59')]('TrackChangesEditing')['_descriptionFactory'][_0x12f5('0x2d')](_0xd6a6a6),this[_0x12f5('0x1e')][_0x12f5('0x11')](_0x4fde8a,_0x56924e),this[_0x12f5('0x24')][_0x12f5('0x11')](_0x12d622,_0x56924e);const _0x37f7e0=_0x1bf86b[_0x12f5('0x4b')]({'view':_0x565228,'target':()=>{const _0x1a3fab=[],_0x1f2a5c=_0x4fde8a[_0x12f5('0x40')]()['filter'](_0x414823=>_0x414823[_0x12f5('0x20')]);for(const _0x243612 of _0x1f2a5c)_0x1a3fab[_0x12f5('0xf')](..._0x243612[_0x12f5('0x26')]());return _0x2b11ca(_0x39cfd7[_0x12f5('0x10')],_0x1a3fab);},'type':()=>_0x12f5('0x60')+_0x56924e[_0x12f5('0x18')][_0x12f5('0x39')]});_0x3a025c[_0x12f5('0x5c')](_0x12d622,_0x37f7e0),_0x1bf86b[_0x12f5('0x50')](_0x37f7e0),_0x2112c1[_0x12f5('0x16')](_0x37f7e0);}[_0x12f5('0x31')](_0x37487c){const _0x4171de=this[_0x12f5('0x32')][_0x12f5('0x63')]['get']('CommentsRepository'),_0x1e0f6f=this[_0x12f5('0x32')][_0x12f5('0x63')][_0x12f5('0x59')]('Annotations'),_0x878656=this[_0x12f5('0x1e')]['get'](_0x37487c),_0x3e7c1a=_0x878656['view'],_0x481a2c=_0x1e0f6f[_0x12f5('0x6c')](_0x3e7c1a);_0x4171de[_0x12f5('0x49')](_0x3e7c1a),_0x481a2c&&_0x1e0f6f[_0x12f5('0x1d')](_0x481a2c),this['_suggestionToController'][_0x12f5('0x64')](_0x37487c),this['_viewToController'][_0x12f5('0x64')](_0x3e7c1a),_0x878656[_0x12f5('0x3d')]();}['_updateController'](_0x5f342d){if(!_0x5f342d[_0x12f5('0x20')]||!this[_0x12f5('0x1e')][_0x12f5('0x69')](_0x5f342d))return;const _0x448bc8=this[_0x12f5('0x32')][_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0xa')),_0x181655=this[_0x12f5('0x1e')]['get'](_0x5f342d),_0xba38b=_0x5f342d[_0x12f5('0x40')]();_0x181655[_0x12f5('0x18')][_0x12f5('0x29')]=_0x448bc8['_descriptionFactory'][_0x12f5('0x2d')](_0xba38b);}[_0x12f5('0x3d')](){for(const _0x251de5 of this[_0x12f5('0x1e')]['keys']())this[_0x12f5('0x31')](_0x251de5);for(const _0x2ad5a7 of this[_0x12f5('0x6a')]['values']())_0x2ad5a7[_0x12f5('0x2a')]['destroy']();super['destroy']();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17dc=['commentThreadController','_discardCommand','acceptSuggestion','plugins','_removePendingAction','_acceptCommand','canEditAt','_setPendingAction','bind','canDiscard','isDirty','_pendingAction','get','view','canAccept','locale','PendingActions','model','commands','change:isDirty','isEnabled','destroy','listenTo','add','getRanges','unbind','_editor','discardSuggestion'];(function(_0x455b80,_0x17dcf9){const _0x5da577=function(_0x9c9518){while(--_0x9c9518){_0x455b80['push'](_0x455b80['shift']());}};_0x5da577(++_0x17dcf9);}(_0x17dc,0x76));const _0x5da5=function(_0x455b80,_0x17dcf9){_0x455b80=_0x455b80-0x0;let _0x5da577=_0x17dc[_0x455b80];return _0x5da577;};import{ObservableMixin as _0x1ec266}from'ckeditor5/src/utils';import{getTranslation as _0x1f3797}from'../utils/common-translations';export default class Gt extends _0x1ec266(){constructor(_0x40eb0f,_0x3f9c0d,_0x44c9c9,_0x34476e){super(),this[_0x5da5('0xb')]=_0x3f9c0d,this['view']=_0x44c9c9,this[_0x5da5('0x16')]=_0x34476e,this['_editor']=_0x40eb0f,this[_0x5da5('0x1b')]=_0x40eb0f[_0x5da5('0xc')][_0x5da5('0x6')](_0x5da5('0x18')),this[_0x5da5('0x17')]=_0x40eb0f[_0x5da5('0xc')]['get'](_0x5da5('0x15')),this[_0x5da5('0x7')][_0x5da5('0x2')]('isEnabled')['to'](this[_0x5da5('0x1b')],this[_0x5da5('0x17')],(_0x58af45,_0x2d63aa)=>_0x58af45||_0x2d63aa),this[_0x5da5('0x7')][_0x5da5('0x2')](_0x5da5('0x8'))['to'](this[_0x5da5('0x1b')],_0x5da5('0xe'),_0x159e73=>_0x159e73&&this['_editor'][_0x5da5('0xb')][_0x5da5('0x0')](_0x3f9c0d[_0x5da5('0x12')]())),this[_0x5da5('0x7')][_0x5da5('0x2')](_0x5da5('0x3'))['to'](this[_0x5da5('0x17')],_0x5da5('0xe'),_0x5a2b09=>_0x5a2b09&&this['_editor'][_0x5da5('0xb')][_0x5da5('0x0')](_0x3f9c0d['getRanges']())),this['_pendingAction']=null,_0x44c9c9['isDirty']&&this[_0x5da5('0x1')](),this[_0x5da5('0x10')](_0x44c9c9,_0x5da5('0x18'),()=>this[_0x5da5('0x18')]()),this['listenTo'](_0x44c9c9,_0x5da5('0x15'),()=>this[_0x5da5('0x15')]()),this[_0x5da5('0x10')](_0x44c9c9,_0x5da5('0xd'),()=>{_0x44c9c9[_0x5da5('0x4')]?this[_0x5da5('0x1')]():this[_0x5da5('0x1a')]();});}[_0x5da5('0x18')](){this[_0x5da5('0x1b')]['execute'](this[_0x5da5('0xb')]['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}[_0x5da5('0xf')](){this[_0x5da5('0x7')][_0x5da5('0x13')](_0x5da5('0xe')),this[_0x5da5('0x7')][_0x5da5('0x13')]('canAccept'),this[_0x5da5('0x7')][_0x5da5('0x13')](_0x5da5('0x3')),this['stopListening'](),this[_0x5da5('0x16')][_0x5da5('0xf')](),this[_0x5da5('0x5')]&&this[_0x5da5('0x1a')]();}['_setPendingAction'](){const _0x401f6c=_0x1f3797(this[_0x5da5('0x14')][_0x5da5('0x9')],'PENDING_ACTION_SUGGESTION');this[_0x5da5('0x5')]=this[_0x5da5('0x14')]['plugins']['get'](_0x5da5('0xa'))[_0x5da5('0x11')](_0x401f6c);}[_0x5da5('0x1a')](){null!==this[_0x5da5('0x5')]&&this[_0x5da5('0x14')][_0x5da5('0x19')][_0x5da5('0x6')](_0x5da5('0xa'))['remove'](this['_pendingAction']),this[_0x5da5('0x5')]=null;}}
|