@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231031.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 _0x4666=['detach','markDeletion','documentSelection','accept','length','_getAuthorFromId','deleteContent','rejected','position','_commentsRepository','collaboration.channelId','isInContent','getAttribute','forceDefaultExecution','execute','_suggestionState','isLocal','insertion','markerToHighlight','_rangeIsInLocalUserInsertion','getCustomProperty','getCommentThread','_customCallbacks','formatBlock:join','track-changes-adapter-missing-getsuggestion','containsRangeInObject','split','discardSelectedSuggestions','isTouching','every','formatBlock:chain','markerToData','isLimit','define','buildSuggestion','getLastMatchingPosition','enableCommand','_createSuggestion','_setSuggestionRange','getFirstMarker','addHighlight','filter','_handleNewSuggestionMarker','update:suggestion','setTo','before','widget','batch','enqueueChange','type','addSuggestion','insertion:discard','registerCustomCallback','push','delete','showSuggestionHighlights','locale','addRange','suggestionLoaded','resolve','trackChanges.trackFormatChanges','getUser','Users','addMarkerName','isMultiRange','splice','markInlineFormat','return','hasComments','notReady','model','isAtStart','track-changes-suggestion-data-mismatch','isOwn','activeMarkers','_addThreadToSuggestion','_isForcedDefaultExecutionBlock','formatInline:','listenTo','accepted','getIntersection','_setSuggestionData','_trackFormatChanges','data','formatGroupId','oldRange','editingDowncast','_splitMarkerName','addCommentThread','markers','then','formatInline','formatBlock:accept','getChanges','removed','addUser','acceptSuggestion','formatBlock:discard','addComment','change:activeMarkers','start','track-changes-command-not-found','ck-suggestion-marker-formatBlock','addMarker:suggestion:formatBlock','values','authoredAt','adapter','forward','trackChanges.mergeNestedSuggestions','dataReady','_defaultCallbacks','formatInline:join','addClass','nodeAfter','never','$textProxy','formatInline:accept','schema','selection','_getSuggestionData','_isDataLoaded','discard','consumable','getSuggestionCallback','toViewElement','attributes','_enabledCommands','commands','getNearestSelectionRange','markerName','markBlockFormat','markInsertion','backward','subType','parent','formatBlock:','isIntersectingWithRange','_removeSuggestion','commandName','error-saving-suggestion-data-suggestion-discarded','_mergeNestedSuggestions','@external','options','_updateSuggestionData','getSuggestion','previous','howMany','ck-suggestion-marker','creator','fire','$marker','_joinWithAdjacentSuggestions','_refreshSuggestionsChain','suggestion','updateMarker','join','PendingActions','_joinSuggestions','_suggestions','suggestionChanged','insert','dataDowncast','getSuggestions','config','deletion:discard','name','getChangedMarkers','editor','mapper','isInsideObject','upcast','_adapter','commentThread','tablePasteChainId','getAllAdjacentSuggestions','_saved','assign','from','moveTargetPosition','discardAllSuggestions','createElement','for','nodeBefore','isAfter','suggestion-type','plugins','includes','$graveyard','formatInline:discard','removeClass','isAtEnd','_descriptionFactory','enableReadOnlyMode','containsRange','removeComment','removeMarkers','after','refresh','isEqual','acceptSelectedSuggestions','getMultiRangeId','suggestionUnloaded','ready','ck-suggestion-marker--active','pluginName','normal','set','insertion:join','highest','createRange','isBefore','value','isNextTo','PENDING_ACTION_SUGGESTION','_checkSuggestionCorrectness','dataToMarker','deletion:','trackChanges','high','createPositionBefore','markerReady','editing','track-changes-adapter-already-set','addSuggestionData','document','root','createRangeIn','createPositionAt','size','_editor','_findSuggestions','author','has','move','isUndo','formatBlock','originalSuggestionId','change:_saved','getShiftedBy','lowest','discardSuggestion','toJSON','end','getMarkers','createSelection','removeMarker','containsPosition','track-changes-user-not-found','createdAt','ck-suggestion-marker-','splitPosition','change','some','element','next','formatInline:chain','elementStart','getDifference','removeAttribute','CommentsRepository','insertion:','elementToElement','multipleBlocks','rootName','isSelectable','TrackChangesEditing','marker-count','item','insertion:chain','skipNestingCheck','markerNameToElements','getWalker','isRemovable','containerElement','stop','trackChangesCommand','acceptAllSuggestions','low','registerPostFixer','getFirstRange','_cutOutSuggestionMarker','rethrowUnexpectedError','get','sort','deletion:chain','isBlock','insertContent','_addSuggestionMarker','external:','stopListening','clone','getRanges','add','_getExternalAuthor','applyOperation','requires','consume','isExternal','map','isObject','getAncestors','_suggestionFactory','isCollapsed','suggestion:','_model','addMarker:suggestion','range','clear','deletion:accept','differ','newRange','deletion','remove','always','elementEnd','data-suggestion','createPositionAfter','_registerDefaultCallbacks','writer','conversion'];(function(_0x41494c,_0x4666a9){const _0x40a5ef=function(_0x455d4b){while(--_0x455d4b){_0x41494c['push'](_0x41494c['shift']());}};_0x40a5ef(++_0x4666a9);}(_0x4666,0x176));const _0x40a5=function(_0x41494c,_0x4666a9){_0x41494c=_0x41494c-0x0;let _0x40a5ef=_0x4666[_0x41494c];return _0x40a5ef;};import{Plugin as _0x3a64bd,PendingActions as _0x5a66ed}from'ckeditor5/src/core';import{LiveRange as _0x3032ac}from'ckeditor5/src/engine';import{CKEditorError as _0xef0e66,uid as _0x2fe5d6,priorities as _0x195edd,logWarning as _0xb21efc}from'ckeditor5/src/utils';import{toWidget as _0x3b1f61}from'ckeditor5/src/widget';import{Users as _0x3bba3e,hashObject as _0x4db06b}from'ckeditor5-collaboration/src/collaboration-core';import _0x50e06a from'./commands/trackchangescommand';import _0x3ac607 from'./commands/acceptsuggestioncommand';import _0xac96c6 from'./commands/discardsuggestioncommand';import _0x2d5877 from'./commands/executeonallsuggestionscommand';import _0x5b9e52 from'./commands/executeonselectedsuggestionscommand';import _0x459923 from'./suggestion';import _0xf4617f from'./suggestiondescriptionfactory';import _0x4934f4 from'./integrations/aiassistant';import _0x3c3b30 from'./integrations/alignment';import _0x5e6028 from'./integrations/basicstyles';import _0x2e50fe from'./integrations/blockquote';import _0x369cf4 from'./integrations/ckbox';import _0x28bd60 from'./integrations/codeblock';import _0x508616 from'./integrations/comments';import _0x52cb73 from'./integrations/deletecommand';import _0x372d6e from'./integrations/documentlist';import _0x32ea89 from'./integrations/entercommand';import _0x22f198 from'./integrations/findandreplace';import _0x231d09 from'./integrations/font';import _0x276342 from'./integrations/formatpainter';import _0x4222be from'./integrations/heading';import _0x326692 from'./integrations/highlight';import _0x3b49aa from'./integrations/horizontalline';import _0x1e23d7 from'./integrations/htmlembed';import _0x3cc7a3 from'./integrations/image';import _0x425684 from'./integrations/imagereplace';import _0x3cd6cb from'./integrations/importword';import _0x229064 from'./integrations/indent';import _0x2da503 from'./integrations/inputcommand';import _0x3c0d2c from'./integrations/link';import _0x4bb53d from'./integrations/list';import _0x49bc14 from'./integrations/listproperties';import _0x5d9504 from'./integrations/mediaembed';import _0x1f5334 from'./integrations/mention';import _0x4057d0 from'./integrations/pagebreak';import _0x90b217 from'./integrations/paragraph';import _0x49dbb7 from'./integrations/removeformat';import _0x5d0923 from'./integrations/restrictededitingmode';import _0x5742dc from'./integrations/shiftentercommand';import _0x57c169 from'./integrations/standardeditingmode';import _0x3ae6bb from'./integrations/style';import _0x251fdf from'./integrations/table';import _0x5dd41f from'./integrations/tablemergesplit';import _0x1b08fa from'./integrations/tableheadings';import _0x3008a0 from'./integrations/tableclipboard';import _0xb64d4c from'./integrations/tablecolumnresize';import _0x4c1edf from'./integrations/template';import _0x58c7de from'./integrations/tableofcontents';import _0x42c759 from'./integrations/title';import _0xf16819 from'./integrations/undo';import{getTranslation as _0x461e5b}from'./utils/common-translations';import _0x400092 from'./integrations/tablecaption';import _0x411d32 from'./integrations/documentlistproperties';import _0x1fe14a from'./integrations/tableproperties';import{isEqual as _0xfb5d18}from'lodash-es';export default class p extends _0x3a64bd{static get[_0x40a5('0xf1')](){return[_0x40a5('0xcd'),_0x3bba3e,_0x5a66ed,_0x4934f4,_0x3c3b30,_0x5e6028,_0x2e50fe,_0x369cf4,_0x28bd60,_0x508616,_0x52cb73,_0x372d6e,_0x411d32,_0x32ea89,_0x22f198,_0x231d09,_0x276342,_0x4222be,_0x326692,_0x3b49aa,_0x1e23d7,_0x3cc7a3,_0x425684,_0x3cd6cb,_0x229064,_0x2da503,_0x3c0d2c,_0x4bb53d,_0x49bc14,_0x5d9504,_0x1f5334,_0x4057d0,_0x90b217,_0x49dbb7,_0x5d0923,_0x5742dc,_0x57c169,_0x3ae6bb,_0x251fdf,_0x5dd41f,_0x1b08fa,_0x400092,_0x3008a0,_0xb64d4c,_0x58c7de,_0x1fe14a,_0x4c1edf,_0x42c759,_0xf16819];}static get[_0x40a5('0x96')](){return _0x40a5('0xd3');}constructor(_0x371bd0){function _0x56f94b(_0x3edf01){return _0x3edf01[_0x40a5('0xf4')](_0x152590=>String['fromCharCode'](_0x152590))[_0x40a5('0x65')]('');}super(_0x371bd0),this[_0x40a5('0x98')](_0x40a5('0x14'),[]),this['on'](_0x40a5('0x2d'),(_0x29fa95,_0x13c63e,_0x2680a3,_0x560f5e)=>{this[_0x40a5('0xfa')][_0x40a5('0xc5')](()=>{for(const _0x2c0ea6 of[..._0x560f5e,..._0x2680a3])this[_0x40a5('0xfa')][_0x40a5('0x23')][_0x40a5('0xb2')](_0x2c0ea6)&&_0x371bd0[_0x40a5('0xa7')]['reconvertMarker'](_0x2c0ea6);});}),this[_0x40a5('0x89')]=new _0xf4617f(this[_0x40a5('0x71')][_0x40a5('0x10')]['schema'],this[_0x40a5('0x71')]['locale']),this['_adapter']=null,this[_0x40a5('0xf7')]=new Bt(this[_0x40a5('0x71')]),this[_0x40a5('0x68')]=new Map(),this[_0x40a5('0x113')]=_0x371bd0['plugins'][_0x40a5('0xe4')](_0x40a5('0xcd')),this[_0x40a5('0x48')]=new Set(),this[_0x40a5('0xfa')]=this['editor'][_0x40a5('0x10')],this[_0x40a5('0x119')]=new WeakMap(),this[_0x40a5('0x16')]=!0x1,_0x371bd0[_0x40a5('0x6d')][_0x40a5('0x12b')](_0x40a5('0x6'),'default'),this[_0x40a5('0x1c')]=_0x371bd0[_0x40a5('0x6d')][_0x40a5('0xe4')](_0x40a5('0x6')),_0x371bd0['config'][_0x40a5('0x12b')](_0x40a5('0x36'),!0x0),this[_0x40a5('0x56')]=_0x371bd0['config']['get'](_0x40a5('0x36')),this[_0x40a5('0xdd')]=new _0x50e06a(_0x371bd0,this[_0x40a5('0x48')]),this[_0x56f94b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x56f94b([0x34,0x30,0x34,0x36,0x32,0x30,0x36,0x32]);}['init'](){const _0x79341b=this[_0x40a5('0x71')];_0x79341b['conversion']['for'](_0x40a5('0x20'))[_0x40a5('0x11c')]({'model':_0x40a5('0x63'),'view':_0x499936=>{const {id:_0x32670f,type:_0x32fce5}=this[_0x40a5('0x21')](_0x499936[_0x40a5('0x4b')]),_0xb58cbe=['ck-suggestion-marker',_0x40a5('0xc3')+_0x32fce5];let _0x59a9f8=0xbb8;return this['activeMarkers'][_0x40a5('0x84')](_0x499936[_0x40a5('0x4b')])&&(_0xb58cbe[_0x40a5('0x13f')](_0x40a5('0x95')),_0x59a9f8=0xbc2),'deletion'==_0x32fce5&&(_0x59a9f8+=0x5),{'classes':_0xb58cbe,'attributes':{'data-suggestion':_0x32670f},'priority':_0x59a9f8};}}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')]('dataDowncast')[_0x40a5('0xee')](_0x30906f=>{_0x30906f['on'](_0x40a5('0xfb'),(_0x2d7d94,_0x2f6864,_0x10f52c)=>{if(!_0x10f52c[_0x40a5('0x58')][_0x40a5('0x1')])return;const _0xee18d8=_0x2f6864[_0x40a5('0xd5')];if(!_0xee18d8)return;const _0x34cae3=_0x10f52c[_0x40a5('0x72')][_0x40a5('0x46')](_0xee18d8);_0x79341b[_0x40a5('0x10')][_0x40a5('0x3f')][_0x40a5('0xf5')](_0xee18d8)&&_0x34cae3&&!_0x34cae3['getCustomProperty'](_0x40a5('0x138'))&&_0x34cae3['is'](_0x40a5('0xdb'))&&_0x3b1f61(_0x34cae3,_0x10f52c[_0x40a5('0x108')]);},{'priority':'high'});}),_0x79341b[_0x40a5('0x109')]['for'](_0x40a5('0x6b'))[_0x40a5('0x11c')]({'model':'suggestion','view':(_0x4aa06b,_0x4395f4)=>{if(!_0x4395f4[_0x40a5('0x58')]['showSuggestionHighlights'])return null;const {type:_0x800511}=this['_splitMarkerName'](_0x4aa06b['markerName']);return{'classes':['ck-suggestion-marker',_0x40a5('0xc3')+_0x800511],'priority':0xbb8};}});const _0x24d478=({showActiveMarkers:_0x1c264b=!0x0}={})=>(_0x40736a,_0xba8367,_0x1915e5)=>{if(!_0xba8367[_0x40a5('0xd5')])return;if(_0xba8367[_0x40a5('0xd5')]['is'](_0x40a5('0x40')))return void _0x1915e5[_0x40a5('0x44')][_0x40a5('0xf2')](_0xba8367[_0x40a5('0xd5')],_0x40736a[_0x40a5('0x6f')]);const _0x4d85cf=_0x1915e5[_0x40a5('0x72')][_0x40a5('0x46')](_0xba8367[_0x40a5('0xd5')]);if(!(_0xba8367['item']['is'](_0x40a5('0xc7'))&&_0x79341b[_0x40a5('0x10')][_0x40a5('0x3f')][_0x40a5('0xe7')](_0xba8367[_0x40a5('0xd5')])&&!_0x4d85cf['getCustomProperty'](_0x40a5('0x132'))))return;const {id:_0x3cf325}=this['_splitMarkerName'](_0xba8367[_0x40a5('0x4b')]);_0x1915e5[_0x40a5('0x108')][_0x40a5('0x3a')]([_0x40a5('0x5d'),_0x40a5('0x30')],_0x4d85cf),_0x1915e5['writer']['setAttribute'](_0x40a5('0x105'),_0x3cf325,_0x4d85cf),_0x1915e5[_0x40a5('0x72')]['bindElementToMarker'](_0x4d85cf,_0xba8367[_0x40a5('0x4b')]),_0x1c264b&&(this[_0x40a5('0x14')]['includes'](_0xba8367[_0x40a5('0x4b')])?_0x1915e5['writer'][_0x40a5('0x3a')](_0x40a5('0x95'),_0x4d85cf):_0x1915e5['writer'][_0x40a5('0x87')](_0x40a5('0x95'),_0x4d85cf));for(const _0x5a84e2 of _0x79341b[_0x40a5('0x10')][_0x40a5('0xac')](_0xba8367['item'])['getItems']())_0x1915e5[_0x40a5('0x44')][_0x40a5('0xf2')](_0x5a84e2,_0x40736a[_0x40a5('0x6f')]);_0x1915e5[_0x40a5('0x44')][_0x40a5('0xf2')](_0xba8367[_0x40a5('0xd5')],_0x40736a[_0x40a5('0x6f')]);};_0x79341b['conversion'][_0x40a5('0x7f')](_0x40a5('0x6b'))['add'](_0x10fd3e=>{_0x10fd3e['on'](_0x40a5('0x31'),(_0xdf24d2,_0x10f637,_0x36dc79)=>{_0x36dc79[_0x40a5('0x58')][_0x40a5('0x1')]&&_0x24d478({'showActiveMarkers':!0x1})(_0xdf24d2,_0x10f637,_0x36dc79);},{'priority':_0x40a5('0x9a')});}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')](_0x40a5('0x6b'))[_0x40a5('0x129')]({'model':_0x40a5('0x63'),'view':(_0x22f19c,_0x430944)=>_0x430944[_0x40a5('0x58')][_0x40a5('0x1')]?null:{'group':_0x40a5('0x63'),'name':_0x22f19c['substr'](0xb)}}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')](_0x40a5('0x74'))[_0x40a5('0xcf')]({'view':{'name':_0x40a5('0x63'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x15ac73,{writer:_0x48f1b1})=>{let _0x314a80=_0x40a5('0xf9')+_0x15ac73[_0x40a5('0x116')](_0x40a5('0x82'))+':'+_0x15ac73[_0x40a5('0x116')]('id');return _0x15ac73[_0x40a5('0x116')]('marker-count')&&(_0x314a80+=':'+_0x15ac73[_0x40a5('0x116')](_0x40a5('0xd4'))),_0x48f1b1[_0x40a5('0x7e')](_0x40a5('0x60'),{'data-name':_0x314a80});}}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')]('upcast')[_0x40a5('0xa1')]({'view':'suggestion'}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')](_0x40a5('0x20'))[_0x40a5('0xee')](_0x1c3304=>{_0x1c3304['on'](_0x40a5('0x31'),_0x24d478(),{'priority':'high'});}),_0x79341b[_0x40a5('0x109')][_0x40a5('0x7f')](_0x40a5('0x20'))[_0x40a5('0xee')](_0x2a0d6b=>{_0x2a0d6b['on']('removeMarker:suggestion:formatBlock',(_0x57f00f,_0x2b9b43,_0x2f4c97)=>{const _0x2c9354=_0x2f4c97[_0x40a5('0x72')][_0x40a5('0xd8')](_0x2b9b43[_0x40a5('0x4b')]);if(_0x2c9354)for(const _0x806eba of _0x2c9354)_0x806eba[_0x40a5('0x11e')](_0x40a5('0x132'))||(_0x2f4c97[_0x40a5('0x108')][_0x40a5('0x87')](['ck-suggestion-marker',_0x40a5('0x30'),_0x40a5('0x95')],_0x806eba),_0x2f4c97['writer'][_0x40a5('0xcc')](_0x40a5('0x105'),_0x806eba),_0x2f4c97[_0x40a5('0x72')]['unbindElementFromMarkerName'](_0x806eba,_0x2b9b43[_0x40a5('0x4b')]));},{'priority':_0x40a5('0xa4')});}),_0x79341b['model'][_0x40a5('0xaa')][_0x40a5('0xe0')](_0x290e45=>{let _0x292a9c=!0x1;const _0x647829=Array[_0x40a5('0x7b')](_0x79341b[_0x40a5('0x10')][_0x40a5('0xaa')][_0x40a5('0xff')][_0x40a5('0x70')]()),_0x2ad800=new Set();for(const {name:_0x1a7ece,data:_0x1f80f7}of _0x647829){const {group:_0x28d0b5,type:_0x4d2d6d,id:_0x2269dd}=this['_splitMarkerName'](_0x1a7ece);if(_0x40a5('0x63')!==_0x28d0b5)continue;const _0x2a43f1=this[_0x40a5('0x68')][_0x40a5('0xe4')](_0x2269dd);if(null!=_0x1f80f7[_0x40a5('0x100')]){_0x40a5('0x25')==_0x4d2d6d&&(_0x292a9c=_0x292a9c||$t(_0x1f80f7[_0x40a5('0x100')],_0x1a7ece,_0x290e45,_0x79341b[_0x40a5('0x10')]['schema']));if(_0x1f80f7[_0x40a5('0x100')][_0x40a5('0xf8')]||_0x40a5('0x85')==_0x1f80f7['newRange']['root'][_0x40a5('0xd1')]||_0x40a5('0xb5')==_0x4d2d6d&&!Rt(_0x1f80f7[_0x40a5('0x100')])||_0x40a5('0x101')==_0x4d2d6d&&!(!Mt(_0x133cc5=_0x1f80f7[_0x40a5('0x100')])&&!function(_0x5ce0db){return _0x5ce0db[_0x40a5('0x2e')]['parent']==_0x5ce0db['end'][_0x40a5('0x80')]&&_0x5ce0db['start'][_0x40a5('0x88')];}(_0x133cc5)))_0x290e45[_0x40a5('0xbf')](_0x1a7ece),_0x292a9c=!0x0;else{if(!_0x2a43f1||!_0x2a43f1[_0x40a5('0x115')])continue;_0x2ad800[_0x40a5('0xee')](_0x2a43f1);}}}var _0x133cc5;return _0x2ad800[_0x40a5('0xae')]>0x0&&(_0x292a9c=!!this[_0x40a5('0x61')](_0x2ad800)||_0x292a9c),_0x292a9c;}),_0x79341b['model'][_0x40a5('0xaa')][_0x40a5('0xe0')](_0x15a2e7=>{let _0x5d9b81=!0x1;for(const _0x3de2a0 of _0x79341b['model'][_0x40a5('0xaa')][_0x40a5('0xff')][_0x40a5('0x27')]()){if(_0x40a5('0x6a')!=_0x3de2a0[_0x40a5('0x13b')])continue;const _0x51b8d3=_0x3de2a0[_0x40a5('0x112')][_0x40a5('0xb8')](_0x3de2a0[_0x40a5('0x10e')]);if(_0x51b8d3['isAtEnd'])for(const _0xae9e27 of this[_0x40a5('0x68')][_0x40a5('0x32')]()){if(_0xae9e27[_0x40a5('0xa')]||!_0xae9e27['isInContent'])continue;if(_0x40a5('0xb5')!=_0xae9e27[_0x40a5('0x13b')])continue;const _0xa7243b=_0xae9e27[_0x40a5('0xe1')]();if(_0xa7243b['start'][_0x40a5('0x50')]!=_0xa7243b[_0x40a5('0xbc')][_0x40a5('0x50')]&&_0xa7243b[_0x40a5('0xbc')]['isEqual'](_0x3de2a0['position'])){const _0x4995b9=_0x79341b['model']['createRange'](_0xa7243b['start'],_0x51b8d3);_0x15a2e7[_0x40a5('0x64')](_0xae9e27[_0x40a5('0x131')](),{'range':_0x4995b9}),_0x5d9b81=!0x0;}}}return _0x5d9b81;}),_0x79341b['model'][_0x40a5('0x23')]['on'](_0x40a5('0x135'),(_0x2ddfaa,_0x375674,_0xd642e)=>{if(null==_0xd642e){const {id:_0x2de053}=this[_0x40a5('0x21')](_0x375674['name']),_0x346b74=this[_0x40a5('0x68')][_0x40a5('0xe4')](_0x2de053);_0x346b74&&_0x346b74['addMarkerName'](_0x375674[_0x40a5('0x6f')]);}}),_0x79341b['model'][_0x40a5('0xaa')]['on']('change:data',()=>{const _0x31b4fb=Array[_0x40a5('0x7b')](_0x79341b[_0x40a5('0x10')][_0x40a5('0xaa')][_0x40a5('0xff')][_0x40a5('0x70')]())[_0x40a5('0x133')](_0x43ad07=>'suggestion'===this['_splitMarkerName'](_0x43ad07['name'])['group']);if(0x0===_0x31b4fb[_0x40a5('0x10e')])return;_0x31b4fb[_0x40a5('0xe5')]((_0x2b4418,_0x28e729)=>{const _0x35bc26=_0x2b4418[_0x40a5('0x1d')][_0x40a5('0x1f')],_0x265240=_0x28e729[_0x40a5('0x1d')][_0x40a5('0x1f')];return null===_0x35bc26&&null===_0x265240?0x0:null===_0x35bc26&&null!==_0x265240?-0x1:null!==_0x35bc26&&null===_0x265240?0x1:_0x35bc26['start'][_0x40a5('0x9c')](_0x265240[_0x40a5('0x2e')])?-0x1:0x1;});const _0x390097=new Set(),_0x3029eb=new Set();for(const {name:_0x1aa597,data:_0x336f3d}of _0x31b4fb){const {id:_0x555d1b}=this['_splitMarkerName'](_0x1aa597);if(null===_0x336f3d[_0x40a5('0x1f')]){const _0x4592f3=this[_0x40a5('0x134')](_0x1aa597);_0x3029eb['add'](_0x4592f3);}else{const _0x33b9a9=this[_0x40a5('0x68')]['get'](_0x555d1b);null!==_0x336f3d[_0x40a5('0x100')]||_0x33b9a9[_0x40a5('0x115')]?(_0x390097[_0x40a5('0xee')](_0x33b9a9['head']),_0x3029eb[_0x40a5('0xee')](_0x33b9a9)):this['_removeSuggestion'](_0x33b9a9);}}_0x3029eb['size']>0x0&&this[_0x40a5('0x62')](_0x3029eb);for(const _0x5ecf98 of _0x390097)this[_0x40a5('0x5f')]('suggestionChanged',_0x5ecf98);}),_0x79341b['model']['on'](_0x40a5('0xf0'),(_0x258ebe,_0x23f45f)=>{const _0x37f761=_0x23f45f[0x0];if(!this[_0x40a5('0x68')][_0x40a5('0xae')])return;if(!_0x37f761['isDocumentOperation'])return;if(_0x37f761[_0x40a5('0x139')][_0x40a5('0xb4')]||!_0x37f761['batch'][_0x40a5('0x11a')])return;let _0x3240d1,_0x4ceadf;switch(_0x37f761['type']){case _0x40a5('0x6a'):_0x3240d1=_0x79341b[_0x40a5('0x10')][_0x40a5('0xad')](_0x37f761[_0x40a5('0x112')]),_0x4ceadf=_0x3240d1['getShiftedBy'](_0x37f761[_0x40a5('0x5c')]);break;case _0x40a5('0x124'):_0x3240d1=_0x79341b[_0x40a5('0x10')][_0x40a5('0xad')](_0x37f761[_0x40a5('0xc4')]),_0x4ceadf=_0x79341b[_0x40a5('0x10')][_0x40a5('0xad')](_0x37f761[_0x40a5('0x7c')]);break;case _0x40a5('0xb3'):_0x3240d1=_0x79341b[_0x40a5('0x10')][_0x40a5('0xad')](_0x37f761['targetPosition']),_0x4ceadf=_0x3240d1[_0x40a5('0xb8')](_0x37f761[_0x40a5('0x5c')]);break;default:return;}const _0x3f7859=_0x79341b[_0x40a5('0x10')][_0x40a5('0x9b')](_0x3240d1,_0x4ceadf);_0x79341b[_0x40a5('0x10')]['change'](()=>{for(const {suggestion:_0x14dbb2,meta:_0x74735e}of this[_0x40a5('0xb0')](_0x3f7859)){if(_0x14dbb2['isMultiRange'])continue;if(_0x40a5('0x25')==_0x14dbb2[_0x40a5('0x13b')])continue;const _0x39b342=_0x14dbb2[_0x40a5('0x1d')]&&_0x14dbb2[_0x40a5('0x1d')][_0x40a5('0xd0')];(_0x40a5('0xb5')!=_0x14dbb2[_0x40a5('0x13b')]||_0x40a5('0x124')==_0x37f761[_0x40a5('0x13b')]&&!_0x39b342)&&(_0x74735e['containsRangeInObject']||_0x40a5('0x11b')==_0x14dbb2['type']&&_0x74735e['isOwn']||_0x14dbb2[_0x40a5('0xe1')]()[_0x40a5('0x8b')](_0x3f7859)&&this['_breakSuggestionMarker'](_0x14dbb2,_0x3240d1,_0x4ceadf));}});},{'priority':_0x40a5('0xb9')}),_0x79341b[_0x40a5('0x10')]['on'](_0x40a5('0x110'),(_0x197d6b,_0x94d064)=>{const _0x302aa6=_0x94d064[0x0],_0x36b1dd=_0x94d064[0x1];if(_0x36b1dd&&_0x36b1dd[_0x40a5('0x117')])return;if(this[_0x40a5('0x16')])return;if(!this[_0x40a5('0xdd')][_0x40a5('0x9d')])return;if(_0x302aa6[_0x40a5('0xf8')])return;const _0x157d1f=_0x79341b['model'][_0x40a5('0x3f')],{start:_0x2fc00e,end:_0x536db2}=_0x302aa6[_0x40a5('0xe1')](),_0x55a9e2=_0x2fc00e[_0x40a5('0x3b')]&&_0x157d1f[_0x40a5('0x12a')](_0x2fc00e['nodeAfter'])?null:_0x157d1f[_0x40a5('0x4a')](_0x2fc00e,_0x40a5('0x35')),_0x3b422c=_0x536db2[_0x40a5('0x80')]&&_0x157d1f['isLimit'](_0x536db2[_0x40a5('0x80')])?null:_0x157d1f[_0x40a5('0x4a')](_0x536db2,_0x40a5('0x4e')),_0x3b39ed=_0x79341b[_0x40a5('0x10')]['createRange'](_0x55a9e2?_0x55a9e2[_0x40a5('0x2e')]:_0x2fc00e,_0x3b422c?_0x3b422c[_0x40a5('0xbc')]:_0x536db2);_0x79341b[_0x40a5('0x10')][_0x40a5('0xc5')](_0xe35f2b=>{this[_0x40a5('0x10b')](_0x3b39ed);const _0x371300=_0x79341b[_0x40a5('0x10')]['schema'][_0x40a5('0x4a')](_0x3b39ed[_0x40a5('0x2e')]);_0x302aa6['is'](_0x40a5('0x10c'))?_0xe35f2b['setSelection'](_0x371300):_0x302aa6[_0x40a5('0x136')](_0x371300);}),_0x197d6b[_0x40a5('0xdc')]();},{'priority':_0x195edd[_0x40a5('0x97')]+0xa}),_0x79341b[_0x40a5('0x10')]['on']('insertContent',(_0x2ae90d,_0x108f0e)=>{const _0x57d995=_0x108f0e[_0x108f0e[_0x40a5('0x10e')]-0x1];_0x57d995&&_0x57d995[_0x40a5('0x117')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand'][_0x40a5('0x9d')]&&(_0x79341b[_0x40a5('0x10')][_0x40a5('0xc5')](()=>{let _0x8ecf00=_0x79341b[_0x40a5('0x10')][_0x40a5('0xe8')](_0x108f0e[0x0],_0x108f0e[0x1],_0x108f0e[0x2],{'forceDefaultExecution':!0x0});if(!_0x8ecf00)return;_0x2ae90d[_0x40a5('0xd')]=_0x8ecf00[_0x40a5('0xec')]();const _0x53fb6e=_0x8ecf00[_0x40a5('0xbc')]['nodeBefore'],_0xfd6c19=_0x79341b['model']['schema'];_0x53fb6e&&_0xfd6c19['isBlock'](_0x53fb6e)&&!_0xfd6c19['isObject'](_0x53fb6e)&&(_0x8ecf00=_0x79341b[_0x40a5('0x10')][_0x40a5('0x9b')](_0x8ecf00[_0x40a5('0x2e')],_0x79341b[_0x40a5('0x10')][_0x40a5('0xad')](_0x53fb6e,'end'))),this[_0x40a5('0x4d')](_0x8ecf00);}),_0x2ae90d[_0x40a5('0xdc')]());},{'priority':_0x40a5('0xa4')}),this[_0x40a5('0x71')][_0x40a5('0x49')]['add']('trackChanges',this[_0x40a5('0xdd')]),this[_0x40a5('0x12e')](_0x40a5('0xa3'));const _0x212e4a=new _0x3ac607(_0x79341b,this[_0x40a5('0x68')]);_0x79341b[_0x40a5('0x49')][_0x40a5('0xee')](_0x40a5('0x2a'),_0x212e4a),this[_0x40a5('0x12e')](_0x40a5('0x2a'));const _0x116627=new _0xac96c6(_0x79341b,this[_0x40a5('0x68')]);_0x79341b[_0x40a5('0x49')][_0x40a5('0xee')](_0x40a5('0xba'),_0x116627),this[_0x40a5('0x12e')]('discardSuggestion'),_0x79341b[_0x40a5('0x49')][_0x40a5('0xee')]('acceptAllSuggestions',new _0x2d5877(_0x79341b,_0x212e4a,this[_0x40a5('0x68')])),this[_0x40a5('0x12e')](_0x40a5('0xde')),_0x79341b[_0x40a5('0x49')]['add'](_0x40a5('0x7d'),new _0x2d5877(_0x79341b,_0x116627,this[_0x40a5('0x68')])),this['enableCommand']('discardAllSuggestions'),_0x79341b[_0x40a5('0x49')][_0x40a5('0xee')](_0x40a5('0x91'),new _0x5b9e52(_0x79341b,_0x212e4a,this[_0x40a5('0x68')])),this[_0x40a5('0x12e')](_0x40a5('0x91')),_0x79341b[_0x40a5('0x49')][_0x40a5('0xee')](_0x40a5('0x125'),new _0x5b9e52(_0x79341b,_0x116627,this['_suggestions'])),this[_0x40a5('0x12e')](_0x40a5('0x125'));const _0x549ad2=_0x79341b[_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0xcd'));this['listenTo'](_0x549ad2,_0x40a5('0x2c'),(_0xf4cfce,{threadId:_0x32a7b6})=>{const _0x5b60e7=this['_suggestions']['get'](_0x32a7b6);_0x5b60e7&&_0x5b60e7[_0x40a5('0x76')]&&0x1===_0x5b60e7[_0x40a5('0x76')][_0x40a5('0x10e')]&&this[_0x40a5('0x59')](_0x32a7b6,{'hasComments':!0x0});},{'priority':_0x40a5('0xdf')}),this[_0x40a5('0x18')](_0x549ad2,_0x40a5('0x8c'),(_0x350a63,{threadId:_0xdbb490})=>{const _0x543ef2=this[_0x40a5('0x68')][_0x40a5('0xe4')](_0xdbb490);_0x543ef2&&_0x543ef2[_0x40a5('0x76')]&&!_0x543ef2[_0x40a5('0x76')][_0x40a5('0x10e')]&&this['_updateSuggestionData'](_0xdbb490,{'hasComments':!0x1});},{'priority':_0x40a5('0xdf')});}set['adapter'](_0x1a32bf){if(this[_0x40a5('0x75')])throw new _0xef0e66(_0x40a5('0xa8'),this);this[_0x40a5('0x75')]=_0x1a32bf;}get[_0x40a5('0x34')](){return this[_0x40a5('0x75')];}['getSuggestions']({skipNotAttached:_0x114147=!0x1,toJSON:_0x238d6a=!0x1}={}){const _0xce4e9d=[];for(const _0x2b8dd8 of this['_suggestions'][_0x40a5('0x32')]())_0x114147&&!_0x2b8dd8[_0x40a5('0x115')]||_0xce4e9d['push'](_0x2b8dd8);return _0x238d6a?_0xce4e9d[_0x40a5('0xf4')](_0x3ddcef=>_0x3ddcef[_0x40a5('0xbb')]()):_0xce4e9d;}[_0x40a5('0x5a')](_0x3b1019){const _0x5a7e76=this[_0x40a5('0x68')][_0x40a5('0xe4')](_0x3b1019);if(!_0x5a7e76)throw new _0xef0e66('track-changes-suggestion-not-found',this);return _0x5a7e76;}['hasSuggestion'](_0x3bbd75){return this['_suggestions'][_0x40a5('0xb2')](_0x3bbd75);}[_0x40a5('0xa9')](_0x3764e1){const {authorId:_0x447508,id:_0xe01ae1,attributes:_0x32fa88}=_0x3764e1,[_0x265937,_0x14db01]=_0x3764e1[_0x40a5('0x13b')]['split'](':'),_0x3aea58=this['_suggestions']['get'](_0xe01ae1)||this['_createSuggestion'](_0x265937,_0x14db01,_0xe01ae1,_0x447508,_0x32fa88);if(this['_addThreadToSuggestion'](_0x3aea58),this[_0x40a5('0xa0')](_0x3aea58,_0x265937,_0x14db01||null,_0x447508),_0x3aea58[_0x40a5('0xc2')]=_0x3764e1['createdAt'],_0x3aea58['_isDataLoaded']=!0x0,_0x32fa88&&_0x32fa88[_0x40a5('0x57')]){const _0x3404eb=_0x32fa88[_0x40a5('0x57')],_0x318c55=this[_0x40a5('0xef')](_0x3404eb['authorName']);_0x3aea58['authoredAt']=_0x3404eb[_0x40a5('0xc2')],_0x3aea58[_0x40a5('0xb1')]=_0x318c55,_0x3aea58[_0x40a5('0xf3')]=!0x0;}else _0x3aea58[_0x40a5('0x33')]=_0x3764e1[_0x40a5('0xc2')];switch(_0x3764e1[_0x40a5('0x1d')]&&(_0x3aea58[_0x40a5('0x1d')]=_0x3764e1[_0x40a5('0x1d')]),_0x3764e1[_0x40a5('0x47')]&&(_0x3aea58[_0x40a5('0x47')]=_0x3764e1[_0x40a5('0x47')]),this[_0x40a5('0x75')]&&this[_0x40a5('0x75')][_0x40a5('0x13c')]||(_0x3aea58['_saved']=!0x0),this[_0x40a5('0x119')][_0x40a5('0xe4')](_0x3aea58)){case _0x40a5('0xf'):this[_0x40a5('0x119')][_0x40a5('0x98')](_0x3aea58,_0x40a5('0x37'));break;case _0x40a5('0xa6'):_0x3aea58[_0x40a5('0x115')]?(this[_0x40a5('0x62')](new Set([_0x3aea58])),this[_0x40a5('0x61')](new Set([_0x3aea58])),this[_0x40a5('0x119')][_0x40a5('0x98')](_0x3aea58,'ready'),this[_0x40a5('0x5f')]('suggestionLoaded',_0x3aea58)):this[_0x40a5('0x119')]['set'](_0x3aea58,_0x40a5('0x28'));}return _0x3aea58;}[_0x40a5('0x2a')](_0x2ee2e2){this[_0x40a5('0x117')](()=>{this[_0x40a5('0x71')][_0x40a5('0x10')][_0x40a5('0xc5')](()=>{for(const _0x4290d8 of _0x2ee2e2[_0x40a5('0x78')]())_0x4290d8[_0x40a5('0x10d')]();});});}[_0x40a5('0xba')](_0x29ab63){this['forceDefaultExecution'](()=>{this[_0x40a5('0x71')][_0x40a5('0x10')][_0x40a5('0xc5')](()=>{for(const _0x4fa22d of _0x29ab63['getAllAdjacentSuggestions']())_0x4fa22d[_0x40a5('0x43')]();});});}[_0x40a5('0x12e')](_0x5c69c9,_0x9588d0){const _0x23771c=this[_0x40a5('0x71')][_0x40a5('0x49')]['get'](_0x5c69c9);if(!_0x23771c)throw new _0xef0e66(_0x40a5('0x2f'),this,{'commandName':_0x5c69c9});this[_0x40a5('0x48')][_0x40a5('0xee')](_0x23771c),_0x9588d0&&_0x23771c['on'](_0x40a5('0x118'),(_0x8bab2,_0x4a8197)=>{this[_0x40a5('0xdd')][_0x40a5('0x9d')]&&(this[_0x40a5('0x16')]||_0x4a8197[_0x40a5('0x10e')]>0x0&&_0x4a8197[_0x4a8197[_0x40a5('0x10e')]-0x1]&&_0x4a8197[_0x4a8197[_0x40a5('0x10e')]-0x1][_0x40a5('0x117')]||(_0x8bab2[_0x40a5('0xd')]=_0x9588d0((..._0x1bee47)=>_0x23771c[_0x40a5('0x118')](..._0x1bee47,{'forceDefaultExecution':!0x0}),..._0x4a8197),_0x8bab2['stop']()));},{'priority':_0x40a5('0xa4')});}['forceDefaultExecution'](_0x5979ca){let _0x4d8085,_0xdef540;const _0x364d8e=this[_0x40a5('0x16')];this[_0x40a5('0x16')]=!0x0;try{_0x4d8085=_0x5979ca();}catch(_0x57cb84){_0xdef540=_0x57cb84;}return _0x364d8e||(this[_0x40a5('0x16')]=!0x1),_0xdef540&&_0xef0e66[_0x40a5('0xe3')](_0xdef540,this),_0x4d8085;}[_0x40a5('0x4d')](_0x36cacc,_0x20baf5=null,_0x2e894d={}){if(_0x36cacc[_0x40a5('0xf8')])return null;const _0x5ade8b=this[_0x40a5('0x71')][_0x40a5('0x83')]['get']('Users')['me'];for(const {suggestion:_0x3be5de,meta:_0x4612a3}of this[_0x40a5('0xb0')](_0x36cacc,'insertion'))if(_0x4612a3['isOwn']){if(!_0x4612a3[_0x40a5('0x9e')]){if(_0x4612a3[_0x40a5('0x123')]){if(!this[_0x40a5('0x56')]||!Ot(_0x3be5de,_0x2e894d))continue;return _0x3be5de;}if(Ot(_0x3be5de,_0x2e894d))return _0x3be5de;this['_breakSuggestionMarker'](_0x3be5de,_0x36cacc['start'],_0x36cacc[_0x40a5('0xbc')]);break;}if(_0x20baf5==_0x3be5de[_0x40a5('0x4f')]&&Ot(_0x3be5de,_0x2e894d)){const _0x46e892=_0x3be5de[_0x40a5('0xe1')]();return _0x46e892[_0x40a5('0x2e')][_0x40a5('0x90')](_0x36cacc[_0x40a5('0xbc')])?this['_setSuggestionRange'](_0x3be5de,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x36cacc[_0x40a5('0x2e')],_0x46e892[_0x40a5('0xbc')])):this[_0x40a5('0x130')](_0x3be5de,this['_model']['createRange'](_0x46e892[_0x40a5('0x2e')],_0x36cacc[_0x40a5('0xbc')])),_0x3be5de;}}const _0x4a6c96=_0x2fe5d6(),_0x16c69a=_0x5ade8b['id'],_0x57d747=_0x20baf5?'insertion:'+_0x20baf5:_0x40a5('0x11b'),_0x2629e7=this[_0x40a5('0x1b')]({'id':_0x4a6c96,'type':_0x57d747,'createdAt':new Date(),'authorId':_0x16c69a,'attributes':_0x2e894d});return this[_0x40a5('0xe9')](_0x57d747,_0x4a6c96,_0x16c69a,_0x36cacc),_0x2629e7;}['markMultiRangeInsertion'](_0x5b1d9e,_0xd4969a='multi',_0x28c090={}){const _0x3ec993=this[_0x40a5('0x71')][_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0x8'))['me'],_0x5b1bf4=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0x11b'),_0xd4969a,_0x40a5('0x65'));for(const _0x5d99fb of this['getSuggestions']())if(_0x5d99fb[_0x40a5('0xb1')]['id']==_0x3ec993['id']&&'insertion'==_0x5d99fb[_0x40a5('0x13b')]&&_0x5d99fb[_0x40a5('0x4f')]==_0xd4969a&&Ot(_0x5d99fb,_0x28c090)&&(_0x5b1bf4(_0x5d99fb[_0x40a5('0xed')](),_0x5b1d9e)||_0x5b1bf4(_0x5b1d9e,_0x5d99fb['getRanges']()))){for(const _0x1fd067 of _0x5b1d9e)_0x5d99fb['addRange'](_0x1fd067);return _0x5d99fb;}for(const {suggestion:_0x9b1e22,meta:_0xa6b3af}of this[_0x40a5('0xb0')](_0x5b1d9e,'insertion')){if(!_0xa6b3af[_0x40a5('0x13')])continue;if(!this[_0x40a5('0x56')]&&_0xa6b3af['containsRangeInObject'])continue;if(!Ot(_0x9b1e22,_0x28c090))continue;let _0x48b392=!0x0;for(const _0x175121 of _0x9b1e22[_0x40a5('0xed')]())for(const _0x140fcf of _0x5b1d9e)if(!_0x175121['containsRange'](_0x140fcf)){_0x48b392=!0x1;break;}if(_0x48b392)return _0x9b1e22;}const _0xc4eba0=_0x2fe5d6(),_0x3821bd=_0x3ec993['id'],_0x4f09dc=_0x40a5('0xce')+_0xd4969a,_0x541a60=this[_0x40a5('0x1b')]({'id':_0xc4eba0,'type':_0x4f09dc,'createdAt':new Date(),'authorId':_0x3821bd,'attributes':_0x28c090});for(const _0x46105c of _0x5b1d9e)this[_0x40a5('0xe9')](_0x4f09dc,_0xc4eba0,_0x3821bd,_0x46105c,_0x459923[_0x40a5('0x92')]());return _0x541a60;}[_0x40a5('0xc')](_0x5541a7,_0x25e957,_0x596b6e=null,_0x3c011b={}){if(_0x596b6e=_0x596b6e||Nt(_0x25e957),_0x5541a7[_0x40a5('0xf8')])return null;if(_0x40a5('0x3c')===this[_0x40a5('0x1c')]){const _0x84f893=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0x25'),_0x596b6e,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x84f893([_0x5541a7],_0x25e957,_0x3c011b)),null;}const _0x6ab8ff=this[_0x40a5('0x71')][_0x40a5('0x83')]['get'](_0x40a5('0x8'))['me'],_0x1113a7=[];if(_0x40a5('0x103')!==this[_0x40a5('0x1c')])for(const {suggestion:_0x42f927,meta:_0x15ff39}of this[_0x40a5('0xb0')](_0x5541a7,_0x40a5('0x11b')))_0x15ff39[_0x40a5('0x13')]&&!_0x15ff39[_0x40a5('0x73')]&&_0x1113a7[_0x40a5('0x13f')](..._0x42f927[_0x40a5('0xed')]());const _0x4854a1=function(_0x154771,_0x42cdb5){const _0x1bab77=[];for(const _0x43120a of _0x42cdb5){const _0x46f736=_0x154771['getIntersection'](_0x43120a);_0x46f736&&_0x1bab77['push'](_0x46f736);}return _0x1bab77;}(_0x5541a7,_0x1113a7),_0x525854=function(_0x5b2376,_0x1ff732){const _0x26b91e=[_0x5b2376];for(const _0xf9a149 of _0x1ff732){let _0x5b692e=0x0;for(;_0x5b692e<_0x26b91e[_0x40a5('0x10e')];){const _0x44d527=_0x26b91e[_0x5b692e][_0x40a5('0xcb')](_0xf9a149);_0x26b91e[_0x40a5('0xb')](_0x5b692e,0x1,..._0x44d527),_0x5b692e+=_0x44d527[_0x40a5('0x10e')];}}return _0x26b91e;}(_0x5541a7,_0x1113a7);_0x4854a1[_0x40a5('0x10e')]&&this[_0x40a5('0xfa')]['change'](()=>{for(const _0x50d982 of _0x4854a1){const _0x2a7cfb=this[_0x40a5('0xf7')]['getSuggestionCallback']('formatInline',_0x596b6e,'accept');this[_0x40a5('0x117')](()=>_0x2a7cfb([_0x50d982],_0x25e957,_0x3c011b));}});for(const _0x485197 of _0x525854){let _0xcf0c68=null,_0x49b5b9=_0x485197[_0x40a5('0x2e')],_0x532a7c=_0x485197[_0x40a5('0xbc')];for(const {suggestion:_0x276e90,meta:_0x2a0187}of this[_0x40a5('0xb0')](_0x485197,_0x40a5('0x25'))){if(!_0x2a0187[_0x40a5('0x13')])continue;if(_0x276e90[_0x40a5('0x4f')]!=_0x596b6e)continue;if(!Ot(_0x276e90,_0x3c011b))continue;const _0x1f9de2=_0x276e90['getFirstRange']();if(_0x1f9de2['containsRange'](_0x485197,!0x0))return null;_0x49b5b9=_0x49b5b9[_0x40a5('0x9c')](_0x1f9de2[_0x40a5('0x2e')])?_0x49b5b9:_0x1f9de2['start'],_0x532a7c=_0x532a7c['isAfter'](_0x1f9de2[_0x40a5('0xbc')])?_0x532a7c:_0x1f9de2['end'],_0xcf0c68?_0x1f9de2[_0x40a5('0x2e')][_0x40a5('0x9c')](_0xcf0c68['getFirstRange']()[_0x40a5('0x2e')])?(_0xcf0c68[_0x40a5('0x8d')](),_0xcf0c68=_0x276e90):_0x276e90[_0x40a5('0x8d')]():_0xcf0c68=_0x276e90;}const _0x3b6ecc=this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x49b5b9,_0x532a7c);if(_0xcf0c68)this['_setSuggestionRange'](_0xcf0c68,_0x3b6ecc);else{const _0xbe3088=_0x2fe5d6(),_0x426206=_0x6ab8ff['id'];this['_setSuggestionData']({'id':_0xbe3088,'type':'formatInline:'+_0x596b6e,'data':_0x25e957,'createdAt':new Date(),'authorId':_0x426206,'attributes':_0x3c011b}),this[_0x40a5('0xe9')](_0x40a5('0x17')+_0x596b6e,_0xbe3088,_0x426206,_0x3b6ecc);}}return null;}[_0x40a5('0x4c')](_0x42946e,_0x438198,_0x293809=[],_0x163962=null,_0x463767={}){_0x438198[_0x40a5('0x1e')]||(_0x438198[_0x40a5('0x1e')]=_0x438198[_0x40a5('0x54')]),_0x438198[_0x40a5('0xd0')]=_0x42946e['is'](_0x40a5('0xfc')),_0x163962=_0x163962||Nt(_0x438198);const _0x384610=_0x293809[_0x40a5('0xf4')](_0x3d0079=>jt(_0x3d0079,this[_0x40a5('0xfa')])),_0x5455d4=_0x42946e['is'](_0x40a5('0xfc'))?_0x42946e:jt(_0x42946e,this[_0x40a5('0xfa')]);if(_0x40a5('0x3c')===this['_trackFormatChanges']){const _0x1f7bd5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x163962,_0x40a5('0x10d'));return this['forceDefaultExecution'](()=>_0x1f7bd5([_0x5455d4],_0x438198,_0x463767)),null;}_0x384610[_0x40a5('0x13f')](_0x5455d4);let _0xec3ba0=!0x0;for(const _0x3dbdb7 of _0x384610)if(!this['_rangeIsInLocalUserInsertion'](_0x3dbdb7)){_0xec3ba0=!0x1;break;}if(_0xec3ba0&&_0x40a5('0x103')!==this[_0x40a5('0x1c')]){const _0x190ca6=this[_0x40a5('0xf7')][_0x40a5('0x45')]('formatBlock',_0x163962,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x190ca6([_0x5455d4],_0x438198,_0x463767)),null;}let _0x1b7392=null,_0x4ed55a=_0x5455d4[_0x40a5('0x2e')],_0x5a3565=_0x5455d4[_0x40a5('0xbc')];for(const {suggestion:_0x4094,meta:_0x11644c}of this[_0x40a5('0xb0')](_0x5455d4,_0x40a5('0xb5'))){if(!_0x11644c['isOwn'])continue;if(_0x11644c[_0x40a5('0x9e')]||_0x11644c['containsRangeInObject']||_0x11644c[_0x40a5('0x73')])continue;if(_0x4094[_0x40a5('0x1d')]['formatGroupId']!=_0x438198[_0x40a5('0x1e')])continue;if(!Ot(_0x4094,_0x463767))continue;const _0x3fda55=_0x4094[_0x40a5('0xe1')]();if(_0x4094[_0x40a5('0x4f')]==_0x163962){if(_0x3fda55[_0x40a5('0x8b')](_0x5455d4,!0x0))return null;_0x4ed55a=_0x4ed55a[_0x40a5('0x9c')](_0x3fda55['start'])?_0x4ed55a:_0x3fda55[_0x40a5('0x2e')],_0x5a3565=_0x5a3565['isAfter'](_0x3fda55['end'])?_0x5a3565:_0x3fda55[_0x40a5('0xbc')],_0x1b7392?_0x3fda55[_0x40a5('0x2e')][_0x40a5('0x9c')](_0x1b7392['getFirstRange']()[_0x40a5('0x2e')])?(_0x1b7392['removeMarkers'](),_0x1b7392=_0x4094):_0x4094[_0x40a5('0x8d')]():_0x1b7392=_0x4094;}else{const _0x1f359c=_0x5455d4[_0x40a5('0x1a')](_0x3fda55);this[_0x40a5('0xe2')](_0x4094,_0x1f359c);}}const _0x154d1d=this['editor'][_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0x8'))['me'],_0x48b0d6=_0x2fe5d6(),_0x29dfc7=_0x154d1d['id'];if(_0x1b7392)return this[_0x40a5('0x130')](_0x1b7392,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x4ed55a,_0x5a3565)),_0x1b7392;{const _0x574c26=this['_setSuggestionData']({'id':_0x48b0d6,'type':_0x40a5('0x51')+_0x163962,'data':_0x438198,'createdAt':new Date(),'authorId':_0x29dfc7,'attributes':_0x463767});return this[_0x40a5('0xe9')](_0x40a5('0x51')+_0x163962,_0x48b0d6,_0x29dfc7,this[_0x40a5('0xfa')]['createRange'](_0x4ed55a,_0x5a3565)),_0x574c26;}}['markMultiRangeBlockFormat'](_0x5d0d2d,_0x89ad6b,_0x4cd8d6=[],_0x410bfb=null,_0x49c587={}){_0x89ad6b[_0x40a5('0x1e')]||(_0x89ad6b[_0x40a5('0x1e')]=_0x89ad6b[_0x40a5('0x54')]);const _0x1b0487=_0x5d0d2d[0x0];_0x89ad6b['multipleBlocks']=_0x1b0487['is'](_0x40a5('0xfc')),_0x410bfb=_0x410bfb||Nt(_0x89ad6b);const _0x2b7e03=_0x4cd8d6[_0x40a5('0xf4')](_0x3ec9dc=>jt(_0x3ec9dc,this['_model'])),_0xbda618=_0x1b0487['is'](_0x40a5('0xfc'))?_0x5d0d2d:_0x5d0d2d[_0x40a5('0xf4')](_0x34d8db=>jt(_0x34d8db,this[_0x40a5('0xfa')]));if('never'===this['_trackFormatChanges']){const _0x318a59=this[_0x40a5('0xf7')]['getSuggestionCallback'](_0x40a5('0xb5'),_0x410bfb,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x318a59(_0xbda618,_0x89ad6b,_0x49c587)),null;}_0x2b7e03['push'](..._0xbda618);let _0x5b673f=!0x0;for(const _0x3a897a of _0x2b7e03)if(!this[_0x40a5('0x11d')](_0x3a897a)){_0x5b673f=!0x1;break;}if(_0x5b673f&&_0x40a5('0x103')!==this[_0x40a5('0x1c')]){const _0x17dd8f=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0xb5'),_0x410bfb,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x17dd8f(_0xbda618,_0x89ad6b,_0x49c587)),null;}const _0x2b5f2d=this[_0x40a5('0x71')]['plugins'][_0x40a5('0xe4')]('Users')['me'];for(const _0x353ba9 of this[_0x40a5('0x6c')]()){if(_0x353ba9[_0x40a5('0xb1')]['id']!=_0x2b5f2d['id'])continue;if('formatBlock'!=_0x353ba9[_0x40a5('0x13b')]||_0x353ba9[_0x40a5('0x1d')][_0x40a5('0x1e')]!=_0x89ad6b[_0x40a5('0x1e')])continue;if(!Ot(_0x353ba9,_0x49c587))continue;const _0x3e84b9=_0x353ba9[_0x40a5('0x4f')]==_0x410bfb;for(let _0x5e3807=0x0;_0x5e3807<_0xbda618[_0x40a5('0x10e')];_0x5e3807++){const _0x352c73=_0xbda618[_0x5e3807];for(const _0x44b664 of _0x353ba9[_0x40a5('0xbd')]()){const _0x307350=_0x44b664['getRange']();if(_0x352c73[_0x40a5('0x90')](_0x307350)){_0x3e84b9?(_0xbda618[_0x40a5('0xb')](_0x5e3807,0x1),_0x5e3807--):_0x353ba9[_0x40a5('0xbf')](_0x44b664[_0x40a5('0x6f')]);break;}}}}if(0x0==_0xbda618[_0x40a5('0x10e')])return null;const _0x137012=this[_0x40a5('0xf7')][_0x40a5('0x45')]('formatBlock',_0x410bfb,_0x40a5('0x65'));for(const _0x333c97 of this[_0x40a5('0x6c')]())if(_0x333c97[_0x40a5('0xb1')]['id']==_0x2b5f2d['id']&&_0x40a5('0xb5')==_0x333c97[_0x40a5('0x13b')]&&_0x333c97[_0x40a5('0x1d')][_0x40a5('0x1e')]==_0x89ad6b[_0x40a5('0x1e')]&&_0x333c97[_0x40a5('0x4f')]==_0x410bfb&&Ot(_0x333c97,_0x49c587)&&(_0x137012(_0x333c97[_0x40a5('0xed')](),_0xbda618)||_0x137012(_0xbda618,_0x333c97[_0x40a5('0xed')]()))){for(const _0x4fd7e8 of _0xbda618)_0x333c97['addRange'](_0x4fd7e8);return _0x333c97;}const _0x2d9adf=_0x2fe5d6(),_0x48372d=_0x2b5f2d['id'],_0x1ea5c7=_0x40a5('0x51')+_0x410bfb,_0xb8853f=this[_0x40a5('0x1b')]({'id':_0x2d9adf,'type':_0x1ea5c7,'data':_0x89ad6b,'createdAt':new Date(),'authorId':_0x48372d,'attributes':_0x49c587});for(const _0x59bc3a of _0xbda618)this[_0x40a5('0xe9')](_0x1ea5c7,_0x2d9adf,_0x48372d,_0x59bc3a,_0x459923[_0x40a5('0x92')]());return _0xb8853f;}[_0x40a5('0x10b')](_0x41b957,_0x5e55d6=null,_0xa49b82={}){if(_0x41b957[_0x40a5('0xf8')])return null;const _0x12b50f=this[_0x40a5('0x71')][_0x40a5('0x83')][_0x40a5('0xe4')]('Users')['me'],_0x1bb6d9=new _0x3032ac(_0x41b957['start'],_0x41b957[_0x40a5('0xbc')]);for(const {suggestion:_0x4f15a7,meta:_0x56a1fd}of this[_0x40a5('0xb0')](_0x1bb6d9,_0x40a5('0x11b')))if(_0x56a1fd[_0x40a5('0x13')]&&!_0x56a1fd[_0x40a5('0x9e')]){if(_0x4f15a7['isMultiRange']){const _0xd89742=_0x4f15a7[_0x40a5('0xed')]()['filter'](_0x6fa373=>_0x40a5('0x85')!=_0x6fa373[_0x40a5('0xab')][_0x40a5('0xd1')]);_0xd89742[_0x40a5('0x127')](_0x17bdad=>_0x1bb6d9[_0x40a5('0x8b')](_0x17bdad,!0x0))&&_0x4f15a7[_0x40a5('0x43')]();if(_0xd89742[_0x40a5('0xc6')](_0x11403a=>_0x11403a[_0x40a5('0x8b')](_0x1bb6d9,!0x0))){const _0x528db6=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0x101'),_0x5e55d6,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x528db6([_0x1bb6d9],null,_0xa49b82)),null;}}else{const _0x19a1de=_0x1bb6d9[_0x40a5('0x1a')](_0x4f15a7['getFirstRange']());null!==_0x19a1de&&_0x4f15a7['_onDiscard']([_0x19a1de],null,_0xa49b82);}}if(_0x1bb6d9[_0x40a5('0x10a')](),_0x1bb6d9[_0x40a5('0xf8')]||_0x40a5('0x85')==_0x1bb6d9[_0x40a5('0xab')]['rootName'])return null;let _0x5c275d=null,_0x279e4f=_0x1bb6d9[_0x40a5('0x2e')],_0x12c2b9=_0x1bb6d9[_0x40a5('0xbc')];const _0x441eb0=this['_findSuggestions'](_0x1bb6d9,_0x40a5('0x101'));for(const {suggestion:_0x52559f,meta:_0x4d687e}of _0x441eb0){const _0x533123=this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x279e4f,_0x12c2b9);if(_0x4d687e[_0x40a5('0x13')]&&(this['_mergeNestedSuggestions']||!_0x4d687e[_0x40a5('0x123')]&&!_0x4d687e[_0x40a5('0x73')])){if(_0x52559f[_0x40a5('0xa')]){if(!Ot(_0x52559f,_0xa49b82))continue;let _0x58425e=!0x0;for(const _0x25c148 of _0x52559f[_0x40a5('0xed')]()){if(_0x25c148['containsRange'](_0x533123,!0x0))return _0x52559f;_0x533123[_0x40a5('0x8b')](_0x25c148)||(_0x58425e=!0x1);}_0x58425e&&_0x52559f[_0x40a5('0x43')]();}else{const _0x43b38e=_0x52559f[_0x40a5('0xe1')]();if(_0x43b38e[_0x40a5('0x8b')](_0x533123,!0x0))return _0x52559f;if(!Ot(_0x52559f,_0xa49b82)){_0x533123['containsRange'](_0x43b38e)?_0x52559f['removeMarkers']():_0x43b38e[_0x40a5('0xc0')](_0x279e4f)?_0x279e4f=_0x43b38e[_0x40a5('0xbc')]:_0x43b38e['containsPosition'](_0x12c2b9)&&(_0x12c2b9=_0x43b38e['start']);continue;}_0x279e4f=_0x279e4f['isBefore'](_0x43b38e[_0x40a5('0x2e')])?_0x279e4f:_0x43b38e['start'],_0x12c2b9=_0x12c2b9[_0x40a5('0x81')](_0x43b38e[_0x40a5('0xbc')])?_0x12c2b9:_0x43b38e[_0x40a5('0xbc')],_0xa49b82=Object[_0x40a5('0x7a')]({},_0x52559f[_0x40a5('0x47')]),_0x5c275d?_0x43b38e[_0x40a5('0x2e')]['isBefore'](_0x5c275d['getFirstRange']()['start'])?(_0x5c275d[_0x40a5('0x8d')](),_0x5c275d=_0x52559f):_0x52559f[_0x40a5('0x8d')]():_0x5c275d=_0x52559f;}}}if(_0x5c275d)return this[_0x40a5('0x130')](_0x5c275d,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x279e4f,_0x12c2b9)),_0x5c275d;{const _0x7195e=_0x2fe5d6(),_0x11fed7=this['_model'][_0x40a5('0x9b')](_0x279e4f,_0x12c2b9),_0x2e23b8=_0x12b50f['id'],_0x1c2da5=_0x5e55d6?_0x40a5('0xa2')+_0x5e55d6:_0x40a5('0x101'),_0x5c2343=this['_setSuggestionData']({'id':_0x7195e,'type':_0x1c2da5,'createdAt':new Date(),'authorId':_0x2e23b8,'attributes':_0xa49b82});return this[_0x40a5('0xe9')](_0x1c2da5,_0x7195e,_0x2e23b8,_0x11fed7),_0x5c2343;}}['markMultiRangeDeletion'](_0x222157,_0x59b4cc='multi',_0x16fc63={}){const _0x196be7=this['editor'][_0x40a5('0x83')][_0x40a5('0xe4')]('Users')['me'],_0x5efa1e=_0x222157['map'](_0x62d363=>new _0x3032ac(_0x62d363[_0x40a5('0x2e')],_0x62d363[_0x40a5('0xbc')])),_0x295619=new Set();for(const {suggestion:_0x4222d8,meta:_0x55658a}of this[_0x40a5('0xb0')](_0x5efa1e,_0x40a5('0x11b')))_0x55658a[_0x40a5('0x13')]&&!_0x55658a[_0x40a5('0x9e')]&&_0x295619[_0x40a5('0xee')](_0x4222d8);for(const _0x13a5d4 of _0x295619)if(_0x13a5d4['isMultiRange']){const _0x145ea5=_0x13a5d4[_0x40a5('0xed')]();(!_0x13a5d4[_0x40a5('0x47')]||!_0x13a5d4['attributes'][_0x40a5('0xd7')])&&(_0x145ea5[_0x40a5('0x127')](_0x3b8125=>_0x5efa1e['some'](_0x144f93=>_0x144f93[_0x40a5('0x8b')](_0x3b8125,!0x0)))&&_0x13a5d4[_0x40a5('0x43')]());if(_0x5efa1e[_0x40a5('0x127')](_0x408d3c=>_0x145ea5[_0x40a5('0xc6')](_0x4e0abe=>_0x4e0abe[_0x40a5('0x8b')](_0x408d3c,!0x0)))){const _0x442f85=this['_suggestionFactory'][_0x40a5('0x45')]('deletion',_0x59b4cc,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x442f85(_0x222157,null,_0x16fc63)),null;}}else{const _0x250384=_0x13a5d4[_0x40a5('0xe1')]();_0x5efa1e['some'](_0x31fc6d=>_0x31fc6d['containsRange'](_0x250384,!0x0))&&_0x13a5d4[_0x40a5('0x43')]();if(_0x5efa1e[_0x40a5('0x127')](_0x4a0a70=>_0x250384[_0x40a5('0x8b')](_0x4a0a70,!0x0))){const _0x71166f=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0x101'),_0x59b4cc,_0x40a5('0x10d'));return this[_0x40a5('0x117')](()=>_0x71166f(_0x5efa1e,null,_0x16fc63)),null;}}const _0x5449b0=this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x40a5('0x101'),_0x59b4cc,_0x40a5('0x65'));let _0x296c05=null;for(const _0xc8e2a8 of this[_0x40a5('0x6c')]())if(_0xc8e2a8['author']['id']==_0x196be7['id']&&_0xc8e2a8[_0x40a5('0x115')]&&_0x40a5('0x101')==_0xc8e2a8['type']&&_0xc8e2a8[_0x40a5('0x4f')]==_0x59b4cc&&Ot(_0xc8e2a8,_0x16fc63)&&(_0x5449b0(_0xc8e2a8[_0x40a5('0xed')](),_0x5efa1e)||_0x5449b0(_0x5efa1e,_0xc8e2a8[_0x40a5('0xed')]()))){if(_0x296c05){if(_0xc8e2a8[_0x40a5('0x76')]&&_0xc8e2a8[_0x40a5('0x76')][_0x40a5('0x10e')])continue;for(const _0x1aefcc of _0xc8e2a8[_0x40a5('0xed')]())_0x296c05[_0x40a5('0x52')](_0x1aefcc)||_0x296c05['addRange'](_0x1aefcc);_0xc8e2a8[_0x40a5('0x8d')]();}else{_0x296c05=_0xc8e2a8;for(const _0x33803a of _0x5efa1e)_0xc8e2a8[_0x40a5('0x52')](_0x33803a)||_0xc8e2a8[_0x40a5('0x3')](_0x33803a);}}if(_0x296c05)return _0x296c05;_0x295619[_0x40a5('0xfd')]();for(const {suggestion:_0x16e52a,meta:_0x25921e}of this[_0x40a5('0xb0')](_0x5efa1e,_0x40a5('0x101')))_0x25921e['isOwn']&&(this[_0x40a5('0x56')]||!_0x25921e[_0x40a5('0x123')]&&!_0x25921e[_0x40a5('0x73')])&&Ot(_0x16e52a,_0x16fc63)&&_0x295619[_0x40a5('0xee')](_0x16e52a);for(const _0x29186b of _0x295619){const _0x269e48=_0x29186b[_0x40a5('0xed')]();if(!_0x16fc63||!_0x16fc63[_0x40a5('0xd7')]){if(_0x5efa1e[_0x40a5('0x127')](_0x593bcc=>_0x269e48[_0x40a5('0xc6')](_0xdb5847=>_0xdb5847[_0x40a5('0x8b')](_0x593bcc,!0x0))))return _0x29186b;}(!_0x29186b[_0x40a5('0x47')]||!_0x29186b[_0x40a5('0x47')][_0x40a5('0xd7')])&&(_0x269e48[_0x40a5('0x127')](_0x590d54=>_0x5efa1e[_0x40a5('0xc6')](_0x58d72b=>_0x58d72b[_0x40a5('0x8b')](_0x590d54,!0x0)))&&_0x29186b[_0x40a5('0x43')]());}const _0x1ef9fb=_0x2fe5d6(),_0x45d990=_0x196be7['id'],_0x3c5e9d=_0x40a5('0xa2')+_0x59b4cc,_0x167eeb=this[_0x40a5('0x1b')]({'id':_0x1ef9fb,'type':_0x3c5e9d,'createdAt':new Date(),'authorId':_0x45d990,'attributes':_0x16fc63});for(const _0x499d28 of _0x5efa1e)_0x499d28[_0x40a5('0x10a')](),_0x499d28[_0x40a5('0xf8')]||_0x40a5('0x85')==_0x499d28[_0x40a5('0xab')][_0x40a5('0xd1')]||this[_0x40a5('0xe9')](_0x3c5e9d,_0x1ef9fb,_0x45d990,_0x499d28,_0x459923[_0x40a5('0x92')]());return _0x167eeb;}[_0x40a5('0x130')](_0x5193f0,_0x1101f7){const _0x3f2c4c=_0x5193f0[_0x40a5('0x131')]();this[_0x40a5('0xfa')][_0x40a5('0xc5')](_0x18636f=>{_0x18636f[_0x40a5('0x64')](_0x3f2c4c,{'range':_0x1101f7});});}[_0x40a5('0x15')](_0x1084d1){const _0x58a02d=_0x1084d1['id'],_0x323a01=this[_0x40a5('0x71')]['config'][_0x40a5('0xe4')](_0x40a5('0x114'));this['_commentsRepository']['hasCommentThread'](_0x58a02d)||this[_0x40a5('0x113')][_0x40a5('0x22')]({'channelId':_0x323a01,'threadId':_0x58a02d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x38ab7c=this[_0x40a5('0x113')][_0x40a5('0x11f')](_0x58a02d);_0x38ab7c['unbind']('isRemovable'),_0x38ab7c[_0x40a5('0xda')]=!0x1,_0x1084d1[_0x40a5('0x76')]=_0x38ab7c;}[_0x40a5('0xa0')](_0x4e8b6b,_0x29f537,_0x51b106,_0x151959){if(_0x4e8b6b[_0x40a5('0x13b')]!=_0x29f537||_0x4e8b6b[_0x40a5('0x4f')]!=_0x51b106||_0x4e8b6b['creator']['id']!=_0x151959)throw this[_0x40a5('0x71')][_0x40a5('0x8a')]('track-changes-suggestion-data-mismatch'),new _0xef0e66(_0x40a5('0x12'),this);}[_0x40a5('0xe2')](_0x3f3b52,_0x3887e0){const _0x2b9d3e=_0x3f3b52[_0x40a5('0xe1')]();if(_0x3887e0[_0x40a5('0x90')](_0x2b9d3e))_0x3f3b52[_0x40a5('0x8d')]();else{if(_0x2b9d3e[_0x40a5('0x8b')](_0x3887e0)){const _0x3abbfc=this[_0x40a5('0xfa')]['createPositionAt'](_0x3887e0[_0x40a5('0x2e')]['nodeBefore'],_0x40a5('0xbc'));this['_setSuggestionRange'](_0x3f3b52,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x2b9d3e[_0x40a5('0x2e')],_0x3abbfc));const _0x51d7cf=_0x2fe5d6(),_0x3235f7=_0x3f3b52[_0x40a5('0x5e')]['id'],_0x2b4b5e=_0x3f3b52[_0x40a5('0x13b')]+':'+_0x3f3b52[_0x40a5('0x4f')];this[_0x40a5('0x1b')]({'id':_0x51d7cf,'type':_0x2b4b5e,'createdAt':new Date(),'authorId':_0x3235f7,'data':_0x3f3b52[_0x40a5('0x1d')],'attributes':_0x3f3b52[_0x40a5('0x47')]});const _0xa537e8=this[_0x40a5('0xfa')][_0x40a5('0xad')](_0x3887e0[_0x40a5('0xbc')][_0x40a5('0x50')],_0x40a5('0x8e')),_0x49a50a=this[_0x40a5('0xfa')]['createRange'](_0xa537e8,_0x2b9d3e[_0x40a5('0xbc')]);this['_addSuggestionMarker'](_0x2b4b5e,_0x51d7cf,_0x3235f7,_0x49a50a);}else{if(_0x2b9d3e['containsPosition'](_0x3887e0['start'])){const _0x2af126=this[_0x40a5('0xfa')][_0x40a5('0xad')](_0x3887e0[_0x40a5('0x2e')][_0x40a5('0x80')],_0x40a5('0xbc'));this[_0x40a5('0x130')](_0x3f3b52,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x2b9d3e[_0x40a5('0x2e')],_0x2af126));}else{const _0x434687=this[_0x40a5('0xfa')][_0x40a5('0xad')](_0x3887e0['end'][_0x40a5('0x50')],_0x40a5('0x8e'));this['_setSuggestionRange'](_0x3f3b52,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x434687,_0x2b9d3e[_0x40a5('0xbc')]));}}}}[_0x40a5('0x11d')](_0xc34502){for(const {suggestion:_0x19bb11,meta:_0x3c22aa}of this[_0x40a5('0xb0')](_0xc34502,_0x40a5('0x11b'))){if(!_0x3c22aa['isOwn'])continue;const _0x4ba03d=_0x19bb11[_0x40a5('0xed')]();for(const _0x4e4d58 of _0x4ba03d)if(!_0xc34502[_0x40a5('0xcb')](_0x4e4d58)[_0x40a5('0x10e')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc97c91){const _0x415a6e=this[_0x40a5('0x71')][_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0x8'))[_0x40a5('0x7')](_0xc97c91);if(!_0x415a6e)throw new _0xef0e66(_0x40a5('0xc1'),this);return _0x415a6e;}['_getExternalAuthor'](_0x57eb37){const _0x5e9598=this['editor']['plugins'][_0x40a5('0xe4')](_0x40a5('0x8')),_0x3d25d4=_0x4db06b(_0x40a5('0xea')+_0x57eb37),_0x1838da=_0x5e9598[_0x40a5('0x7')](_0x3d25d4);return _0x1838da||_0x5e9598[_0x40a5('0x29')]({'id':_0x3d25d4,'name':_0x57eb37});}['_createSuggestion'](_0x440cd3,_0x121131,_0x4860a9,_0x52433d,_0x3516d1){const _0x3d981c=this[_0x40a5('0x10f')](_0x52433d),_0x117c7f=this[_0x40a5('0xf7')][_0x40a5('0x12c')](_0x440cd3,_0x121131,_0x4860a9,_0x3d981c,_0x3516d1,_0x275b6c=>this[_0x40a5('0x59')](_0x4860a9,{'attributes':_0x275b6c}));return this[_0x40a5('0x18')](_0x117c7f,_0x40a5('0x10d'),()=>{this[_0x40a5('0x59')](_0x4860a9,{'state':_0x40a5('0x19')});},{'priority':_0x40a5('0xa4')}),this['listenTo'](_0x117c7f,'discard',()=>{this['_updateSuggestionData'](_0x4860a9,{'state':_0x40a5('0x111')});},{'priority':_0x40a5('0xa4')}),this[_0x40a5('0x68')][_0x40a5('0x98')](_0x4860a9,_0x117c7f),this[_0x40a5('0x119')][_0x40a5('0x98')](_0x117c7f,_0x40a5('0xf')),_0x117c7f;}[_0x40a5('0x21')](_0x21df5e){const _0x4a8e16=_0x21df5e[_0x40a5('0x124')](':');return{'group':_0x4a8e16[0x0],'type':_0x4a8e16[0x1],'subType':_0x4a8e16['length']>=0x5?_0x4a8e16[0x2]:null,'id':_0x4a8e16['length']<0x5?_0x4a8e16[0x2]:_0x4a8e16[0x3],'authorId':_0x4a8e16[_0x40a5('0x10e')]<0x5?_0x4a8e16[0x3]:_0x4a8e16[0x4],'markerCount':0x6==_0x4a8e16['length']?_0x4a8e16[0x5]:null};}['_breakSuggestionMarker'](_0x4e4dc4,_0x50da1d,_0x200d6f){const _0x16c921=_0x4e4dc4[_0x40a5('0xe1')](),_0x1e2d4b=_0x16c921[_0x40a5('0x2e')],_0x5d978d=_0x16c921[_0x40a5('0xbc')];this['_setSuggestionRange'](_0x4e4dc4,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x1e2d4b,_0x50da1d));const _0x3e4484=_0x2fe5d6(),_0xa05273=_0x4e4dc4[_0x40a5('0x5e')]['id'],_0x2edaa6=_0x4e4dc4[_0x40a5('0x13b')]+(_0x4e4dc4[_0x40a5('0x4f')]?':'+_0x4e4dc4['subType']:'');this['_setSuggestionData']({'id':_0x3e4484,'type':_0x2edaa6,'createdAt':new Date(),'authorId':_0xa05273,'originalSuggestionId':_0x4e4dc4['id'],'attributes':_0x4e4dc4['attributes'],'data':_0x4e4dc4[_0x40a5('0x1d')]}),'formatBlock'==_0x4e4dc4[_0x40a5('0x13b')]&&(_0x200d6f=this[_0x40a5('0xfa')][_0x40a5('0xa5')](_0x200d6f['parent'])),this['_addSuggestionMarker'](_0x2edaa6,_0x3e4484,_0xa05273,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x200d6f,_0x5d978d));}[_0x40a5('0xb0')](_0x237fc7,_0xa4607=null){const _0x17248b=[],_0x4e7f30=this[_0x40a5('0x71')][_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0x8'))['me'];Array['isArray'](_0x237fc7)||(_0x237fc7=[_0x237fc7]);for(const _0x387857 of this[_0x40a5('0x6c')]()){if(!_0x387857['isInContent'])continue;if(_0xa4607&&_0x387857['type']!=_0xa4607)continue;let _0x381e2d=!0x1;for(const _0x4579a2 of _0x387857['getRanges']()){for(const _0x54c922 of _0x237fc7){const _0xc956d6=_0x54c922[_0x40a5('0x2e')][_0x40a5('0x90')](_0x4579a2['end'])||_0x54c922[_0x40a5('0xbc')][_0x40a5('0x90')](_0x4579a2['start']);if(_0xc956d6||_0x54c922[_0x40a5('0x1a')](_0x4579a2)){const _0x1af5c6=_0x54c922['containsRange'](_0x4579a2)&&_t(this[_0x40a5('0xfa')][_0x40a5('0x3f')],_0x4579a2[_0x40a5('0x2e')],_0x54c922),_0xf62ff5=_0x4579a2[_0x40a5('0x8b')](_0x54c922)&&_t(this[_0x40a5('0xfa')][_0x40a5('0x3f')],_0x54c922['start'],_0x4579a2);_0x17248b[_0x40a5('0x13f')]({'suggestion':_0x387857,'meta':{'isOwn':_0x4e7f30==_0x387857['author'],'isNextTo':_0xc956d6,'isInsideObject':_0x1af5c6,'containsRangeInObject':_0xf62ff5}}),_0x381e2d=!0x0;break;}}if(_0x381e2d)break;}}return _0x17248b;}[_0x40a5('0xe9')](_0x5e7dc2,_0x4764e3,_0x6dc7a1,_0x9e7203,_0x48583c){this[_0x40a5('0xfa')][_0x40a5('0xc5')](_0x4b4255=>{let _0x2e84bc=_0x40a5('0xf9')+_0x5e7dc2+':'+_0x4764e3+':'+_0x6dc7a1;_0x48583c&&(_0x2e84bc=_0x2e84bc+':'+_0x48583c),_0x4b4255['addMarker'](_0x2e84bc,{'range':_0x9e7203,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x40a5('0x53')](_0x546678){const _0x47f882=_0x546678[_0x40a5('0x5b')],_0xd52f4f=_0x546678[_0x40a5('0xc8')];_0x546678[_0x40a5('0x5b')]=null,null!=_0x47f882&&(_0x47f882[_0x40a5('0xc8')]=null),_0x546678[_0x40a5('0xc8')]=null,null!=_0xd52f4f&&(_0xd52f4f[_0x40a5('0x5b')]=null),'ready'==this[_0x40a5('0x119')][_0x40a5('0xe4')](_0x546678)&&(this[_0x40a5('0x119')]['set'](_0x546678,_0x40a5('0x28')),this[_0x40a5('0x5f')](_0x40a5('0x93'),_0x546678,_0x47f882,_0xd52f4f));}['_setSuggestionData'](_0x4da695){const _0x4b1941=_0x4da695['id'],_0x237c41=this[_0x40a5('0xa9')](_0x4da695);if(this[_0x40a5('0x75')]&&this[_0x40a5('0x75')][_0x40a5('0x13c')]){const _0x901854=this[_0x40a5('0x71')][_0x40a5('0x83')][_0x40a5('0xe4')](_0x40a5('0x66')),_0x2a3a7c=_0x237c41['hasComments'],_0x4606ed=_0x237c41[_0x40a5('0x4f')]?_0x237c41[_0x40a5('0x13b')]+':'+_0x237c41[_0x40a5('0x4f')]:_0x237c41['type'],_0x55b669=this[_0x40a5('0x71')][_0x40a5('0x2')],_0x23944e=_0x901854['add'](_0x461e5b(_0x55b669,_0x40a5('0x9f'))),_0x3aafd2={'id':_0x4b1941,'type':_0x4606ed,'hasComments':_0x2a3a7c,'data':_0x4da695['data']||null,'originalSuggestionId':_0x4da695[_0x40a5('0xb6')]||null,'attributes':_0x237c41[_0x40a5('0x47')]};this[_0x40a5('0x75')][_0x40a5('0x13c')](_0x3aafd2)[_0x40a5('0x24')](_0x1f895c=>{_0x237c41[_0x40a5('0x79')]=!0x0,_0x901854['remove'](_0x23944e),_0x1f895c&&_0x1f895c[_0x40a5('0xc2')]&&(this[_0x40a5('0x68')][_0x40a5('0xe4')](_0x4b1941)[_0x40a5('0xc2')]=_0x1f895c[_0x40a5('0xc2')]);})['catch'](_0x6ba085=>{throw _0xb21efc(_0x40a5('0x55')),this['editor'][_0x40a5('0x10')][_0x40a5('0x13a')]({'isUndoable':!0x1},()=>{_0x237c41[_0x40a5('0x43')]();}),_0x237c41[_0x40a5('0xeb')](),this[_0x40a5('0x68')]['delete'](_0x237c41['id']),this[_0x40a5('0x119')]['delete'](_0x237c41),_0x6ba085;});}return _0x237c41;}['_updateSuggestionData'](_0x2e5cb3,_0x1b16bf){const _0x3ab125=this[_0x40a5('0x71')][_0x40a5('0x83')]['get']('PendingActions'),_0x38719f=this[_0x40a5('0x5a')](_0x2e5cb3);if(this[_0x40a5('0x75')]&&this['_adapter']['updateSuggestion']){if(_0x38719f['_saved']){const _0x10f7df=_0x3ab125[_0x40a5('0xee')](_0x461e5b(this[_0x40a5('0x71')][_0x40a5('0x2')],_0x40a5('0x9f')));this[_0x40a5('0x75')]['updateSuggestion'](_0x2e5cb3,_0x1b16bf)[_0x40a5('0x24')](()=>{_0x3ab125[_0x40a5('0x102')](_0x10f7df);});}else _0x38719f['on'](_0x40a5('0xb7'),()=>{this[_0x40a5('0x59')](_0x2e5cb3,_0x1b16bf);});}}[_0x40a5('0x41')](_0x4184c1){if(!this[_0x40a5('0x75')]||!this[_0x40a5('0x75')]['getSuggestion'])throw new _0xef0e66(_0x40a5('0x122'),this);return this[_0x40a5('0x75')]['getSuggestion'](_0x4184c1);}['_handleNewSuggestionMarker'](_0x547065){const {id:_0x28878f,type:_0x45d235,subType:_0x2115e4,authorId:_0x4c462b}=this[_0x40a5('0x21')](_0x547065),_0xa49afb=this['_suggestions'][_0x40a5('0xe4')](_0x28878f)||this[_0x40a5('0x12f')](_0x45d235,_0x2115e4,_0x28878f,_0x4c462b,{});switch(this[_0x40a5('0xa0')](_0xa49afb,_0x45d235,_0x2115e4,_0x4c462b),this[_0x40a5('0x119')][_0x40a5('0xe4')](_0xa49afb)){case _0x40a5('0xf'):this[_0x40a5('0x41')](_0x28878f)[_0x40a5('0x24')](_0x42786c=>{let _0x49a8e0=Promise[_0x40a5('0x5')]();_0x42786c[_0x40a5('0xe')]&&(_0x49a8e0=this[_0x40a5('0x113')]['fetchCommentThread']({'channelId':this[_0x40a5('0x71')]['config']['get'](_0x40a5('0x114')),'threadId':_0x28878f})),_0x49a8e0[_0x40a5('0x24')](()=>{this['addSuggestionData'](_0x42786c)[_0x40a5('0x79')]=!0x0;});}),this[_0x40a5('0x119')]['set'](_0xa49afb,_0x40a5('0xa6'));break;case _0x40a5('0x28'):this[_0x40a5('0x59')](_0x28878f,{'state':'open'});case _0x40a5('0x37'):this[_0x40a5('0x119')][_0x40a5('0x98')](_0xa49afb,_0x40a5('0x94')),this[_0x40a5('0x5f')](_0x40a5('0x4'),_0xa49afb);break;case _0x40a5('0x94'):this[_0x40a5('0x5f')](_0x40a5('0x69'),_0xa49afb);}return _0xa49afb[_0x40a5('0x9')](_0x547065),_0xa49afb;}[_0x40a5('0x62')](_0x3e3320){const _0x13ba95=Array['from'](_0x3e3320)[_0x40a5('0x133')](_0x1b46c7=>!_0x1b46c7[_0x40a5('0xa')]),_0x49f13c=this[_0x40a5('0x6c')]({'skipNotAttached':!0x0})[_0x40a5('0x133')](_0x15e711=>!_0x15e711[_0x40a5('0xa')]),_0x3e4b8c=_0x49f13c[_0x40a5('0x133')](_0x4a5593=>!_0x3e3320['has'](_0x4a5593)),_0x1b8b54=new Map(_0x49f13c['map'](_0x136089=>[_0x136089,this[_0x40a5('0xf7')][_0x40a5('0x45')](_0x136089['type'],_0x136089[_0x40a5('0x4f')],'chain')])),_0x3c7c2c=new Map(_0x49f13c[_0x40a5('0xf4')](_0x47e50e=>[_0x47e50e,_0x47e50e[_0x40a5('0xe1')]()])),_0x44fe32=new Set(),_0x1973af=new Set();for(let _0x32c5c9=0x0;_0x32c5c9<_0x13ba95[_0x40a5('0x10e')];_0x32c5c9++)_0x1a9b5d(_0x13ba95[_0x32c5c9],_0x13ba95,_0x32c5c9+0x1);for(let _0x5252a8=0x0;_0x5252a8<_0x13ba95['length'];_0x5252a8++)_0x1a9b5d(_0x13ba95[_0x5252a8],_0x3e4b8c,0x0);for(let _0x47c3ec=0x0;_0x47c3ec<_0x13ba95[_0x40a5('0x10e')];_0x47c3ec++){const _0x436979=_0x13ba95[_0x47c3ec];!_0x1973af[_0x40a5('0xb2')](_0x436979)&&_0x436979[_0x40a5('0x5b')]&&(_0x436979[_0x40a5('0x5b')][_0x40a5('0xc8')]===_0x436979&&(_0x436979[_0x40a5('0x5b')][_0x40a5('0xc8')]=null),_0x436979[_0x40a5('0x5b')]=null),!_0x44fe32[_0x40a5('0xb2')](_0x436979)&&_0x436979[_0x40a5('0xc8')]&&(_0x436979[_0x40a5('0xc8')][_0x40a5('0x5b')]===_0x436979&&(_0x436979[_0x40a5('0xc8')]['previous']=null),_0x436979[_0x40a5('0xc8')]=null);}function _0x1a9b5d(_0x1e6467,_0x4faab7,_0x41c392){for(let _0x39ebf8=_0x41c392;_0x39ebf8<_0x4faab7[_0x40a5('0x10e')];_0x39ebf8++){const _0x6fd2bd=_0x2cf6b0(_0x1e6467,_0x4faab7[_0x39ebf8]);_0x6fd2bd&&(_0x6fd2bd[0x0][_0x40a5('0xc8')]=_0x6fd2bd[0x1],_0x6fd2bd[0x1][_0x40a5('0x5b')]=_0x6fd2bd[0x0],_0x44fe32[_0x40a5('0xee')](_0x6fd2bd[0x0]),_0x1973af['add'](_0x6fd2bd[0x1]));}}function _0x2cf6b0(_0x4aa0ed,_0xc164ef){if(_0x4aa0ed[_0x40a5('0xb1')]['id']!==_0xc164ef[_0x40a5('0xb1')]['id'])return null;const _0x1b6529=_0x1b8b54[_0x40a5('0xe4')](_0x4aa0ed)(_0x4aa0ed,_0xc164ef,_0x3c7c2c[_0x40a5('0xe4')](_0x4aa0ed),_0x3c7c2c[_0x40a5('0xe4')](_0xc164ef));if(!_0x1b6529)return null;return _0x1b8b54[_0x40a5('0xe4')](_0xc164ef)(_0x4aa0ed,_0xc164ef,_0x3c7c2c[_0x40a5('0xe4')](_0x4aa0ed),_0x3c7c2c[_0x40a5('0xe4')](_0xc164ef))?_0x1b6529[0x1][_0x40a5('0x76')]&&_0x1b6529[0x1][_0x40a5('0x76')][_0x40a5('0x10e')]?null:_0x1b6529:null;}}[_0x40a5('0x61')](_0x4d4f15){const _0x1a70c1=Array[_0x40a5('0x7b')](_0x4d4f15),_0xdd4374=this[_0x40a5('0x6c')]({'skipNotAttached':!0x0}),_0x493bc5=_0xdd4374[_0x40a5('0x133')](_0x3e6e1e=>!_0x4d4f15[_0x40a5('0xb2')](_0x3e6e1e)),_0x2cced8=new Map(_0x1a70c1[_0x40a5('0xf4')](_0x21fdec=>[_0x21fdec,this[_0x40a5('0xf7')]['getSuggestionCallback'](_0x21fdec['type'],_0x21fdec[_0x40a5('0x4f')],_0x40a5('0x65'))])),_0x52e9d4=new Map(_0xdd4374[_0x40a5('0xf4')](_0x3dd67d=>[_0x3dd67d,_0x3dd67d[_0x40a5('0xed')]()]));for(let _0x1e5176=0x0;_0x1e5176<_0x1a70c1['length'];_0x1e5176++){if(_0x3cce3b(this,_0x1a70c1[_0x1e5176],_0x1a70c1,_0x1e5176+0x1))return!0x0;}for(let _0x3028bc=0x0;_0x3028bc<_0x1a70c1[_0x40a5('0x10e')];_0x3028bc++){if(_0x3cce3b(this,_0x1a70c1[_0x3028bc],_0x493bc5,0x0))return!0x0;}return!0x1;function _0x3cce3b(_0x29b68e,_0x6f8f3e,_0x268c01,_0x13a273){for(let _0x5a0f8f=_0x13a273;_0x5a0f8f<_0x268c01[_0x40a5('0x10e')];_0x5a0f8f++){const _0xd4d56f=_0x268c01[_0x5a0f8f];if(_0xd4d56f[_0x40a5('0x13b')]!==_0x6f8f3e[_0x40a5('0x13b')]||_0xd4d56f[_0x40a5('0xb1')]['id']!==_0x6f8f3e['author']['id']||_0xd4d56f[_0x40a5('0x4f')]!==_0x6f8f3e[_0x40a5('0x4f')])continue;if(!Ut(_0x6f8f3e,_0xd4d56f))continue;const _0x30eb22=_0x2cced8[_0x40a5('0xe4')](_0x6f8f3e),_0xb9c262=_0x52e9d4[_0x40a5('0xe4')](_0x6f8f3e),_0x1f11a1=_0x52e9d4['get'](_0xd4d56f),_0x5407ae=_0x6f8f3e[_0x40a5('0x76')]&&_0x6f8f3e[_0x40a5('0x76')]['length'],_0x45ba31=_0xd4d56f[_0x40a5('0x76')]&&_0xd4d56f[_0x40a5('0x76')][_0x40a5('0x10e')];if(!_0x5407ae&&_0x30eb22(_0x1f11a1,_0xb9c262))return _0x29b68e[_0x40a5('0x67')](_0xd4d56f,_0x6f8f3e),_0x52e9d4[_0x40a5('0x0')](_0x6f8f3e),!0x0;if(!_0x45ba31&&_0x30eb22(_0xb9c262,_0x1f11a1))return _0x29b68e['_joinSuggestions'](_0x6f8f3e,_0xd4d56f),_0x52e9d4['delete'](_0xd4d56f),!0x0;}return!0x1;}}[_0x40a5('0x67')](_0x3bedc7,_0x4b3fcc){if(_0x3bedc7[_0x40a5('0xa')])for(const _0x830a9f of _0x4b3fcc[_0x40a5('0xed')]())_0x3bedc7['addRange'](_0x830a9f);else{const _0x4ba938=_0x4b3fcc[_0x40a5('0xe1')]()[_0x40a5('0xbc')];this[_0x40a5('0x130')](_0x3bedc7,this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x3bedc7[_0x40a5('0xe1')]()[_0x40a5('0x2e')],_0x4ba938));}_0x4b3fcc[_0x40a5('0x8d')]();}}class Bt{constructor(_0x1726f1){this['_editor']=_0x1726f1,this[_0x40a5('0xfa')]=_0x1726f1[_0x40a5('0x10')],this[_0x40a5('0x120')]=new Map(),this[_0x40a5('0x38')]=new Map(),this[_0x40a5('0x107')]();}['buildSuggestion'](_0x2a44e2,_0x38b233,_0x34b702,_0x43d815,_0x3ea855,_0xe42642){return new _0x459923(this[_0x40a5('0xfa')],{'type':_0x2a44e2,'subType':_0x38b233,'id':_0x34b702,'author':_0x43d815,'creator':_0x43d815,'attributes':_0x3ea855,'onAttributesChange':_0xe42642,'onAccept':(..._0x4fd5c0)=>this['getSuggestionCallback'](_0x2a44e2,_0x38b233,_0x40a5('0x10d'))(..._0x4fd5c0),'onDiscard':(..._0x5aa656)=>this[_0x40a5('0x45')](_0x2a44e2,_0x38b233,_0x40a5('0x43'))(..._0x5aa656)});}[_0x40a5('0x13e')](_0x2d43d6,_0x553ea3,_0x44c8b0,_0x2d2c34){const _0x2b31a7=_0x2d43d6+':'+_0x553ea3+':'+_0x44c8b0;this['_customCallbacks'][_0x40a5('0x98')](_0x2b31a7,_0x2d2c34);}[_0x40a5('0x45')](_0x19b68f,_0x586b76,_0x557e73){const _0x390c9d=_0x19b68f+':'+_0x586b76+':'+_0x557e73;return this[_0x40a5('0x120')][_0x40a5('0xe4')](_0x390c9d)||this[_0x40a5('0x38')][_0x40a5('0xe4')](_0x19b68f+':'+_0x557e73);}['_registerDefaultCallbacks'](){const _0x5ac0dd=()=>!0x1,_0x4e0ccc=_0x59b0f7=>{_0x59b0f7[_0x40a5('0xe5')]((_0x2be114,_0x8f4de7)=>_0x2be114[_0x40a5('0x2e')]['isBefore'](_0x8f4de7[_0x40a5('0x2e')])?0x1:-0x1),this[_0x40a5('0xfa')][_0x40a5('0xc5')](_0xc923e9=>{for(const _0x12d6b5 of _0x59b0f7){let _0x5b5582;_0x5b5582=_0x12d6b5[_0x40a5('0xbc')][_0x40a5('0x88')]&&_0x12d6b5[_0x40a5('0xbc')][_0x40a5('0x50')]==_0x12d6b5[_0x40a5('0x2e')][_0x40a5('0x3b')]?_0xc923e9[_0x40a5('0xbe')](_0x12d6b5[_0x40a5('0x2e')][_0x40a5('0x3b')],'on'):_0xc923e9['createSelection'](_0x12d6b5),this[_0x40a5('0xfa')][_0x40a5('0x110')](_0x5b5582,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x435d03=(_0x11e2d1,_0x4c1818)=>{this[_0x40a5('0xfa')][_0x40a5('0xc5')](_0x4f8bea=>{const {commandName:_0x31927b,commandParams:_0x45c295=[]}=_0x4c1818,_0x36175e=_0x11e2d1[_0x40a5('0xf4')](_0x68b222=>(Mt(_0x68b222)&&(_0x68b222=this[_0x40a5('0xfa')][_0x40a5('0x9b')](_0x68b222['end'])),_0x68b222))['filter'](_0xf009b5=>_0x40a5('0x85')!==_0xf009b5[_0x40a5('0xab')][_0x40a5('0xd1')]);if(_0x36175e[_0x40a5('0x10e')]<0x1)return;const _0x5c17dd=Array[_0x40a5('0x7b')](this[_0x40a5('0xfa')]['document']['selection']['getRanges']())[_0x40a5('0xf4')](_0x22be2b=>_0x3032ac['fromRange'](_0x22be2b));_0x4f8bea['setSelection'](_0x36175e);for(const _0x43acb3 of this[_0x40a5('0xaf')]['commands']['commands']())_0x43acb3[_0x40a5('0x8f')]();_0x45c295[_0x40a5('0x13f')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x40a5('0x118')](_0x31927b,..._0x45c295);const _0x3f60a3=_0x5c17dd[_0x40a5('0x133')](_0x133d42=>'$graveyard'!=_0x133d42[_0x40a5('0xab')][_0x40a5('0xd1')]);_0x3f60a3[_0x40a5('0x10e')]>0x0&&_0x4f8bea['setSelection'](_0x3f60a3);for(const _0x77de97 of _0x5c17dd)_0x77de97[_0x40a5('0x10a')]();});},_0x4f7179=(_0xc0b731,_0x281db5)=>0x1==_0xc0b731[_0x40a5('0x10e')]&&0x1==_0x281db5['length']&&_0xc0b731[0x0][_0x40a5('0xbc')][_0x40a5('0x90')](_0x281db5[0x0]['start']),_0xed41d9=(_0x163671,_0x41c383,_0x48b2eb,_0x440c65)=>xt(_0x163671,_0x41c383,_0x48b2eb,_0x440c65,this[_0x40a5('0xfa')])?[_0x163671,_0x41c383]:xt(_0x41c383,_0x163671,_0x440c65,_0x48b2eb,this[_0x40a5('0xfa')])?[_0x41c383,_0x163671]:null;this[_0x40a5('0x38')][_0x40a5('0x98')]('insertion:accept',_0x5ac0dd),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0x13d'),_0x4e0ccc),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0x99'),_0x4f7179),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0xd6'),_0xed41d9),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0xfe'),_0x4e0ccc),this['_defaultCallbacks'][_0x40a5('0x98')](_0x40a5('0x6e'),_0x5ac0dd),this[_0x40a5('0x38')][_0x40a5('0x98')]('deletion:join',_0x4f7179),this['_defaultCallbacks'][_0x40a5('0x98')](_0x40a5('0xe6'),_0xed41d9),this[_0x40a5('0x38')]['set'](_0x40a5('0x3e'),_0x435d03),this[_0x40a5('0x38')]['set'](_0x40a5('0x86'),_0x5ac0dd),this['_defaultCallbacks']['set'](_0x40a5('0x39'),_0x4f7179),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0xc9'),_0x5ac0dd),this[_0x40a5('0x38')]['set'](_0x40a5('0x26'),_0x435d03),this['_defaultCallbacks']['set'](_0x40a5('0x2b'),_0x5ac0dd),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0x121'),_0x4f7179),this[_0x40a5('0x38')][_0x40a5('0x98')](_0x40a5('0x128'),_0x5ac0dd);}}function _t(_0x586b23,_0x6041a1,_0x43aea8){for(const _0x2229c1 of _0x6041a1['parent'][_0x40a5('0xf6')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2229c1[_0x40a5('0xab')]==_0x2229c1)return!0x1;if(!_0x43aea8['containsItem'](_0x2229c1))return!0x1;if(_0x586b23[_0x40a5('0xf5')](_0x2229c1)||_0x586b23[_0x40a5('0x12a')](_0x2229c1))return!0x0;}return!0x1;}function Mt(_0x54d448){return _0x54d448[_0x40a5('0xbc')][_0x40a5('0x50')]==_0x54d448['start'][_0x40a5('0x3b')]&&_0x54d448[_0x40a5('0xbc')][_0x40a5('0x11')];}function $t(_0x1333a7,_0xfdbd69,_0x575062,_0x28a3fe){const _0x26bc42=_0x22fbdb=>!_0x22fbdb[_0x40a5('0xd5')]['is'](_0x40a5('0x3d'))&&!_0x28a3fe[_0x40a5('0xf5')](_0x22fbdb[_0x40a5('0xd5')]),_0x225a5e=_0x1333a7[_0x40a5('0x2e')][_0x40a5('0x12d')](_0x26bc42),_0x4a0eba=_0x1333a7['end'][_0x40a5('0x12d')](_0x26bc42,{'direction':_0x40a5('0x4e')});return(!_0x1333a7[_0x40a5('0x2e')]['isEqual'](_0x225a5e)||!_0x1333a7[_0x40a5('0xbc')][_0x40a5('0x90')](_0x4a0eba))&&(_0x225a5e[_0x40a5('0x9c')](_0x4a0eba)?_0x575062['updateMarker'](_0xfdbd69,{'range':_0x575062['createRange'](_0x225a5e,_0x4a0eba)}):_0x575062[_0x40a5('0xbf')](_0xfdbd69),!0x0);}function Nt(_0x2de585){return _0x4db06b(_0x2de585);}function Rt(_0x4c910c){const _0x594b0c=_0x4c910c['start']['nodeAfter'];return _0x594b0c&&_0x594b0c['is'](_0x40a5('0xc7'));}function jt(_0x3a2d40,_0xa7ca88){const _0x5b2846=_0xa7ca88[_0x40a5('0x3f')][_0x40a5('0xf5')](_0x3a2d40)||_0xa7ca88['schema'][_0x40a5('0xd2')](_0x3a2d40);return _0xa7ca88[_0x40a5('0x9b')](_0xa7ca88[_0x40a5('0xad')](_0x3a2d40,_0x40a5('0x137')),_0x5b2846?_0xa7ca88[_0x40a5('0x106')](_0x3a2d40):_0xa7ca88['createPositionAt'](_0x3a2d40,'end'));}function xt(_0x2c5ebd,_0x18cede,_0x466c15,_0x169ce2,_0x5e405f){if(!Ut(_0x2c5ebd,_0x18cede))return!0x1;if(_0x466c15[_0x40a5('0xbc')]['isEqual'](_0x169ce2['start']))return!0x0;if(_0x2c5ebd['type']!=_0x18cede[_0x40a5('0x13b')])return!0x1;if(!_0x466c15[_0x40a5('0xbc')][_0x40a5('0x126')](_0x169ce2[_0x40a5('0x2e')]))return!0x1;const _0x2ae820=_0x5e405f['createRange'](_0x466c15[_0x40a5('0xbc')],_0x169ce2[_0x40a5('0x2e')])[_0x40a5('0xd9')]();for(const _0x441eb9 of _0x2ae820)if([_0x40a5('0xca'),_0x40a5('0x104')][_0x40a5('0x84')](_0x441eb9[_0x40a5('0x13b')])&&_0x5e405f[_0x40a5('0x3f')][_0x40a5('0x12a')](_0x441eb9[_0x40a5('0xd5')]))return!0x1;return!0x0;}function Ut(_0x47d376,_0x1aeb48){return!(!_0x47d376[_0x40a5('0x42')]||!_0x1aeb48[_0x40a5('0x42')])&&_0xfb5d18(_0x47d376['attributes'],_0x1aeb48[_0x40a5('0x47')]);}function Ot(_0x302fad,_0x414682){const _0x23dfea=Et(_0x302fad[_0x40a5('0x47')]),_0x2919f3=Et(_0x414682);if(!_0x302fad[_0x40a5('0x42')])return!0x1;for(const _0x615c89 of Object['keys'](_0x2919f3))if(!_0xfb5d18(_0x23dfea[_0x615c89],_0x2919f3[_0x615c89]))return!0x1;return!0x0;}function Et(_0x350ce8){const _0x3a6d95=Object[_0x40a5('0x7a')]({},_0x350ce8);return delete _0x3a6d95['skipNestingCheck'],delete _0x3a6d95[_0x40a5('0x77')],_0x3a6d95;}
|
|
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 _0x4db8=['size','acceptButton','innerView','_unbindEditors','focus','add','config','reduce','getAllAdjacentSuggestions','getDescriptions','_handleSuggestionControllerDelayed','editor','values','getSuggestion','button','value','delete','_viewToController','_annotationViews','_updateController','Accept\x20all\x20selected\x20suggestions','set','length','_initializeController','SuggestionThreadView','suggestion-','_suggestionToController','arrowView','_destroyController','stopListening','activeAnnotations','trackChanges','addComment','isOn','trackChanges.SuggestionThreadView','buttonView','commandName','isEnabled','_descriptionFactory','_bindAnnotationToEditors','bind','getFirstRange','init','separator','descriptionParts','componentFactory','has','type','get','plugins','Track\x20changes','pluginName','filter','trackChanges.disableComments','requires','head','commands','suggestionUnloaded','clear','lowest','unbind','listenTo','Discard\x20all\x20selected\x20suggestions','from','createAnnotationView','previous','_handleControllerBuffer','_createUIButton','Accept\x20all\x20suggestions','toMany','editing','EditorAnnotations','isInContent','push','comments','createAnnotation','_refreshActiveMarkers','activeMarkers','some','isDirty','destroy','getJoined','comments.editorConfig','actionView','mainView','keys','switchbutton','view','addSourceCollector','refreshSelectedViews','change:previous','_disableComments','model','createCommentThreadController','Annotations','define','suggestionChanged','discardAllSuggestions','getMarkerNames','TrackChangesEditing','registerAnnotation','commentThread','CommentsRepository','comments.maxCommentsWhenCollapsed','execute','source','discardButton'];(function(_0x58ea1e,_0x4db801){const _0xf39396=function(_0x17098a){while(--_0x17098a){_0x58ea1e['push'](_0x58ea1e['shift']());}};_0xf39396(++_0x4db801);}(_0x4db8,0x1d9));const _0xf393=function(_0x58ea1e,_0x4db801){_0x58ea1e=_0x58ea1e-0x0;let _0xf39396=_0x4db8[_0x58ea1e];return _0xf39396;};import{Plugin as _0x5217c0}from'ckeditor5/src/core';import{Collection as _0x21e323}from'ckeditor5/src/utils';import{Model as _0x3668f2,SplitButtonView as _0x1f460a,createDropdown as _0x17ae0a,addListToDropdown as _0x5f0409}from'ckeditor5/src/ui';import{Users as _0x35e2a0,getDateTimeFormatter as _0x3af19a,getAllMarkersDomElementsSorted as _0x3ae0b3}from'ckeditor5-collaboration/src/collaboration-core';import _0x1fc0f8 from'./trackchangesediting';import _0xcfb3a5 from'./ui/suggestioncontroller';import _0x418ed3 from'./ui/view/suggestionthreadview';import{getTranslation as _0x3b304d}from'./utils/common-translations';import _0x8431b1 from'../theme/icons/track-changes.svg';export default class d extends _0x5217c0{static get[_0xf393('0x9')](){return[_0x1fc0f8,_0x35e2a0,_0xf393('0x39'),_0xf393('0x31'),_0xf393('0x1a')];}static get[_0xf393('0x6')](){return'TrackChangesUI';}constructor(_0x4781a5){super(_0x4781a5),this['_suggestionToController']=new Map(),this[_0xf393('0x4f')]=new Map(),this[_0xf393('0x50')]=new Map(),this[_0xf393('0x15')]=new Map();const _0x52165b=this[_0xf393('0x49')]['config'];_0x52165b[_0xf393('0x32')](_0xf393('0x60'),_0x418ed3),_0x52165b['define']('trackChanges.disableComments',!0x1),this[_0xf393('0x2e')]=_0x52165b[_0xf393('0x3')](_0xf393('0x8'));}[_0xf393('0x48')](_0x5ebd9f,_0x106934){0x0===this['_handleControllerBuffer'][_0xf393('0x3e')]&&setTimeout(()=>{for(const [_0x56aed2,_0xa6ebaf]of this[_0xf393('0x15')]){const _0x26f8ff=this[_0xf393('0x58')][_0xf393('0x1')](_0x56aed2);_0x26f8ff||_0xa6ebaf?_0x26f8ff&&_0xa6ebaf&&this[_0xf393('0x5a')](_0x56aed2):this['_initializeController'](_0x56aed2);}this[_0xf393('0x49')][_0xf393('0x4')][_0xf393('0x3')](_0xf393('0x1a'))[_0xf393('0x2c')](),this['_refreshActiveMarkers'](),this[_0xf393('0x15')][_0xf393('0xd')]();},0xa),this['_handleControllerBuffer'][_0xf393('0x53')](_0x5ebd9f,_0x106934);}[_0xf393('0x68')](){const _0x578d01=this[_0xf393('0x49')],_0x5ee900=_0x578d01[_0xf393('0x4')]['get'](_0xf393('0x36')),_0x1cd5de=_0x578d01['plugins'][_0xf393('0x3')](_0xf393('0x31')),_0x1ce3f4=_0x578d01['plugins'][_0xf393('0x3')](_0xf393('0x1a')),_0xc4c391=_0x578d01['plugins'][_0xf393('0x3')]('CommentsRepository');_0x578d01['ui'][_0xf393('0x0')][_0xf393('0x43')](_0xf393('0x5d'),_0x482ccf=>this[_0xf393('0x16')](_0x482ccf)),_0x1ce3f4[_0xf393('0x2b')](()=>{const _0x3b50f2=[];for(const [_0x57cf83,_0x33b381]of Array[_0xf393('0x12')](this['_suggestionToController'])){const _0x4701dd=_0x57cf83[_0xf393('0x46')](),_0x3c1edb=[];for(const _0x120ac9 of _0x4701dd){if(!_0x120ac9[_0xf393('0x1b')])continue;if(_0x120ac9['isMultiRange']){_0x3c1edb[_0xf393('0x1c')](..._0x120ac9['getRanges']());continue;}const _0x149c46=_0x120ac9[_0xf393('0x67')]();if(_0x3c1edb[_0xf393('0x54')]>0x0){const _0x41be0c=_0x3c1edb[0x0][_0xf393('0x24')](_0x149c46);if(_0x41be0c){_0x3c1edb[0x0]=_0x41be0c;continue;}}_0x3c1edb[_0xf393('0x1c')](_0x149c46);}_0x3b50f2[_0xf393('0x1c')]([_0x33b381[_0xf393('0x2a')],_0x3c1edb]);}return _0x3b50f2;}),this[_0xf393('0x10')](_0x5ee900,'suggestionLoaded',(_0x2ceea5,_0x4704cc)=>{this[_0xf393('0x10')](_0x4704cc,_0xf393('0x2d'),(_0x3e2098,_0x228f36,_0x186110,_0x3d90ac)=>{_0x4704cc[_0xf393('0x1b')]&&(null==_0x186110?(this['_updateController'](_0x3d90ac[_0xf393('0xa')]),this[_0xf393('0x48')](_0x4704cc,!0x1)):(this[_0xf393('0x51')](_0x186110[_0xf393('0xa')]),this[_0xf393('0x48')](_0x4704cc,!0x0)));}),null===_0x4704cc[_0xf393('0x14')]?this[_0xf393('0x48')](_0x4704cc,!0x1):this[_0xf393('0x51')](_0x4704cc[_0xf393('0xa')]);}),this[_0xf393('0x10')](_0x5ee900,_0xf393('0xc'),(_0x5b3b82,_0x18e09f,_0x394155)=>{this[_0xf393('0x5b')](_0x18e09f,_0xf393('0x2d')),this[_0xf393('0x15')][_0xf393('0x4e')](_0x18e09f);const _0x4ca004=_0x394155?_0x394155['head']:_0x18e09f,_0x3a6f86=this[_0xf393('0x58')][_0xf393('0x3')](_0x4ca004);null!==_0x394155&&this[_0xf393('0x51')](_0x4ca004),null===_0x394155&&_0x3a6f86&&this['_destroyController'](_0x18e09f);}),this[_0xf393('0x10')](_0x5ee900,_0xf393('0x33'),(_0x46bdf9,_0x1f6907)=>{this[_0xf393('0x51')](_0x1f6907);}),this['listenTo'](_0x1cd5de,'change:activeAnnotations',()=>{this[_0xf393('0x1f')]();}),this[_0xf393('0x10')](_0xc4c391,_0xf393('0x5e'),(_0x2db349,{threadId:_0x177179,isFromAdapter:_0x455347})=>{if(_0x455347||!_0x5ee900['hasSuggestion'](_0x177179))return;const _0x1857af=_0x5ee900[_0xf393('0x4b')](_0x177179);this[_0xf393('0x58')][_0xf393('0x3')](_0x1857af)[_0xf393('0x2a')][_0xf393('0x42')]();},{'priority':_0xf393('0xe')});}[_0xf393('0x1f')](){const _0x50a314=this['editor'][_0xf393('0x4')][_0xf393('0x3')](_0xf393('0x31')),_0x2627cc=this[_0xf393('0x49')]['plugins'][_0xf393('0x3')](_0xf393('0x36')),_0x55e3d1=Array[_0xf393('0x12')](_0x50a314[_0xf393('0x5c')],_0x316ce7=>_0x316ce7[_0xf393('0x40')])[_0xf393('0x7')](_0x3d6be7=>this[_0xf393('0x4f')][_0xf393('0x1')](_0x3d6be7)),_0x65e27=[];for(const _0x9ace47 of _0x55e3d1){const _0x437554=this['_viewToController'][_0xf393('0x3')](_0x9ace47)['model'][_0xf393('0x46')]();_0x65e27['push'](..._0x437554[_0xf393('0x45')]((_0x20928a,_0x4081f1)=>[..._0x20928a,..._0x4081f1[_0xf393('0x35')]()],[]));}_0x2627cc[_0xf393('0x20')]=_0x65e27;}['_createUIButton'](_0x598efd){const _0x16e01a=_0x17ae0a(_0x598efd,_0x1f460a),_0x12a21f=this['editor'][_0xf393('0xb')][_0xf393('0x3')](_0xf393('0x5d')),_0x152fb1=_0x3b304d(_0x598efd,_0xf393('0x5'));_0x16e01a['buttonView'][_0xf393('0x53')]({'tooltip':_0x152fb1,'label':_0x152fb1,'icon':_0x8431b1}),_0x16e01a[_0xf393('0x61')][_0xf393('0x66')](_0xf393('0x5f'))['to'](_0x12a21f,_0xf393('0x4d')),_0x16e01a[_0xf393('0x61')]['on'](_0xf393('0x3b'),()=>{_0x12a21f[_0xf393('0x3b')](),this[_0xf393('0x49')][_0xf393('0x19')]['view'][_0xf393('0x42')]();});const _0x2a6ee1=new _0x21e323(),_0x4d3664=[{'type':_0xf393('0x29'),'model':{'withText':!0x0,'label':_0x152fb1,'commandName':'trackChanges'}},{'type':_0xf393('0x69')},{'type':_0xf393('0x4c'),'model':{'withText':!0x0,'label':_0x3b304d(_0x598efd,_0xf393('0x17')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x3b304d(_0x598efd,_0xf393('0x52')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x3b304d(_0x598efd,'Discard\x20all\x20suggestions'),'commandName':_0xf393('0x34')}},{'type':'button','model':{'withText':!0x0,'label':_0x3b304d(_0x598efd,_0xf393('0x11')),'commandName':'discardSelectedSuggestions'}}];for(const _0x4b75e3 of _0x4d3664){let _0x566d5a={'type':_0xf393('0x69')};if(_0x4b75e3[_0xf393('0x2f')]){const _0x308c52=new _0x3668f2(_0x4b75e3[_0xf393('0x2f')]),_0x108f5c=this[_0xf393('0x49')][_0xf393('0xb')]['get'](_0x308c52[_0xf393('0x62')]);_0x308c52[_0xf393('0x66')](_0xf393('0x5f'),_0xf393('0x63'))['to'](_0x108f5c,_0xf393('0x4d'),_0xf393('0x63')),_0x566d5a={'type':_0x4b75e3[_0xf393('0x2')],'model':_0x308c52};}_0x2a6ee1[_0xf393('0x43')](_0x566d5a);}_0x5f0409(_0x16e01a,_0x2a6ee1);const _0x1d9825=_0x4d3664[_0xf393('0x7')](_0x1c55ec=>null!=_0x1c55ec['model'])['map'](_0x1eb2ed=>this[_0xf393('0x49')][_0xf393('0xb')][_0xf393('0x3')](_0x1eb2ed['model'][_0xf393('0x62')])),_0x5bf654=_0x16e01a[_0xf393('0x61')];return _0x5bf654[_0xf393('0x26')][_0xf393('0xf')](_0xf393('0x63')),_0x5bf654[_0xf393('0x59')][_0xf393('0xf')]('isEnabled'),_0x5bf654['actionView'][_0xf393('0x66')](_0xf393('0x63'))['to'](_0x12a21f,_0xf393('0x63')),_0x5bf654[_0xf393('0x59')]['bind']('isEnabled')[_0xf393('0x18')](_0x1d9825,_0xf393('0x63'),(..._0x1cfa4e)=>_0x1cfa4e[_0xf393('0x21')](_0x33284e=>_0x33284e)),_0x16e01a['on'](_0xf393('0x3b'),_0x1d2aaf=>{this[_0xf393('0x49')][_0xf393('0x3b')](_0x1d2aaf[_0xf393('0x3c')][_0xf393('0x62')]),this['editor'][_0xf393('0x19')][_0xf393('0x2a')][_0xf393('0x42')]();}),_0x16e01a;}[_0xf393('0x55')](_0x5ee158){const _0xb7ed04=this[_0xf393('0x49')],_0x121484=_0xb7ed04[_0xf393('0x44')],_0x2e4d11=_0xb7ed04['plugins'][_0xf393('0x3')](_0xf393('0x31')),_0x37058d=_0xb7ed04[_0xf393('0x4')]['get'](_0xf393('0x39')),_0x5504a9=_0xb7ed04['plugins']['get'](_0xf393('0x1a')),_0x4612a1=_0xb7ed04['plugins'][_0xf393('0x3')](_0x35e2a0)['me'],_0x5a428b=_0x121484[_0xf393('0x3')]('trackChanges')[_0xf393('0x56')],{CommentsListView:_0x5098b0,CommentThreadInputView:_0x11a39c}=_0xb7ed04['plugins'][_0xf393('0x3')]('CommentsUI');let _0x4be2f2,_0xb34c6c;this[_0xf393('0x50')][_0xf393('0x1')](_0x5ee158['id'])?(_0xb34c6c=this[_0xf393('0x50')][_0xf393('0x3')](_0x5ee158['id']),_0x4be2f2=_0xb34c6c[_0xf393('0x27')]):(_0x4be2f2=new _0x5a428b(_0xb7ed04['locale'],_0x5ee158,_0x4612a1,{'disableComments':this[_0xf393('0x2e')],'editorConfig':_0x121484[_0xf393('0x3')](_0xf393('0x25')),'maxCommentsWhenCollapsed':_0x121484[_0xf393('0x3')](_0xf393('0x3a')),'maxThreadTotalWeight':_0x121484[_0xf393('0x3')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x121484[_0xf393('0x3')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3af19a(_0x121484[_0xf393('0x3')]('locale')),'CommentView':_0x121484[_0xf393('0x3')](_0xf393('0x1d'))['CommentView'],'CommentsListView':_0x5098b0,'CommentThreadInputView':_0x11a39c}),_0x4be2f2[_0xf393('0x3f')]['on'](_0xf393('0x3b'),()=>{_0xb7ed04['editing'][_0xf393('0x2a')][_0xf393('0x42')]();}),_0x4be2f2[_0xf393('0x3d')]['on'](_0xf393('0x3b'),()=>{_0xb7ed04[_0xf393('0x19')][_0xf393('0x2a')]['focus']();}),_0xb34c6c=_0x2e4d11[_0xf393('0x13')](this[_0xf393('0x49')]['locale'],_0x4be2f2),_0xb34c6c[_0xf393('0x66')](_0xf393('0x22'))['to'](_0x4be2f2,_0xf393('0x22')),_0xb34c6c['bind'](_0xf393('0x54'))['to'](_0x4be2f2),_0xb34c6c[_0xf393('0x66')]('type')['to'](_0x4be2f2,_0xf393('0x2'),_0x45afe3=>_0xf393('0x57')+_0x45afe3),this[_0xf393('0x50')]['set'](_0x5ee158['id'],_0xb34c6c));const _0x3853c2=_0x37058d[_0xf393('0x30')](_0x5ee158[_0xf393('0x38')],_0x4be2f2),_0x28761a=new _0xcfb3a5(_0xb7ed04,_0x5ee158,_0x4be2f2,_0x3853c2),_0x10997f=_0x5ee158[_0xf393('0x46')]()['filter'](_0x54d608=>_0x54d608[_0xf393('0x1b')]);_0x4be2f2['descriptionParts']=_0xb7ed04['plugins'][_0xf393('0x3')](_0xf393('0x36'))['_descriptionFactory'][_0xf393('0x47')](_0x10997f),this[_0xf393('0x58')][_0xf393('0x53')](_0x5ee158,_0x28761a),this[_0xf393('0x4f')][_0xf393('0x53')](_0x4be2f2,_0x28761a);const _0x1dd787=_0x2e4d11[_0xf393('0x1e')]({'view':_0xb34c6c,'target':()=>{const _0x40571a=[],_0x5c248a=_0x5ee158[_0xf393('0x46')]()[_0xf393('0x7')](_0x34079a=>_0x34079a[_0xf393('0x1b')]);for(const _0x42841a of _0x5c248a)_0x40571a['push'](..._0x42841a['getMarkers']());return _0x3ae0b3(_0xb7ed04['editing'],_0x40571a);},'type':()=>'suggestion-'+_0x28761a[_0xf393('0x2a')][_0xf393('0x2')]});_0x37058d[_0xf393('0x65')](_0x4be2f2,_0x1dd787),_0x2e4d11[_0xf393('0x43')](_0x1dd787),_0x5504a9[_0xf393('0x37')](_0x1dd787);}[_0xf393('0x5a')](_0x19ca6a){const _0x257073=this[_0xf393('0x49')]['plugins'][_0xf393('0x3')](_0xf393('0x39')),_0xec0721=this[_0xf393('0x49')][_0xf393('0x4')][_0xf393('0x3')]('Annotations'),_0x1f1147=this[_0xf393('0x58')][_0xf393('0x3')](_0x19ca6a),_0x5549a6=_0x1f1147['view'],_0x505beb=_0xec0721['getByInnerView'](_0x5549a6);_0x257073[_0xf393('0x41')](_0x5549a6),_0x505beb&&_0xec0721['remove'](_0x505beb),this[_0xf393('0x58')]['delete'](_0x19ca6a),this[_0xf393('0x4f')][_0xf393('0x4e')](_0x5549a6),_0x1f1147[_0xf393('0x23')]();}[_0xf393('0x51')](_0x3e5a9e){if(!_0x3e5a9e['isInContent']||!this[_0xf393('0x58')][_0xf393('0x1')](_0x3e5a9e))return;const _0x3154fb=this[_0xf393('0x49')][_0xf393('0x4')][_0xf393('0x3')]('TrackChangesEditing'),_0x1ed43c=this[_0xf393('0x58')][_0xf393('0x3')](_0x3e5a9e),_0x6ab54=_0x3e5a9e[_0xf393('0x46')]();_0x1ed43c[_0xf393('0x2a')][_0xf393('0x6a')]=_0x3154fb[_0xf393('0x64')]['getDescriptions'](_0x6ab54);}[_0xf393('0x23')](){for(const _0x4775e9 of this[_0xf393('0x58')][_0xf393('0x28')]())this[_0xf393('0x5a')](_0x4775e9);for(const _0x5060fa of this['_annotationViews'][_0xf393('0x4a')]())_0x5060fa['mainView'][_0xf393('0x23')]();super[_0xf393('0x23')]();}}
|
|
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;}}
|