@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230718.0 → 0.0.0-nightly-20230720.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 +4 -4
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2c36=['_joinSuggestions','_checkSuggestionCorrectness','model','addMarker','isInContent','getFirstRange','enqueueChange','deletion:discard','$marker','value','schema','commentThread','every','_getSuggestionData','newRange','conversion','@external','formatBlock:discard','addComment','trackChanges.trackFormatChanges','rethrowUnexpectedError','getLastMatchingPosition','length','_suggestionFactory','lowest','_isForcedDefaultExecutionBlock','discardSuggestion','toJSON','chain','fromRange','sort','markInlineFormat','acceptAllSuggestions','getCustomProperty','track-changes-suggestion-not-found','unbind','isCollapsed','_cutOutSuggestionMarker','for','collaboration.channelId','deletion:','root','resolve','getShiftedBy','default','values','getIntersection','suggestion-type','isBlock','normal','_getExternalAuthor','fromCharCode','delete','_handleNewSuggestionMarker','hasSuggestion','markMultiRangeInsertion','getSuggestionCallback','low','Users','commandName','parent','consumable','splice','formatBlock','deletion','unbindElementFromMarkerName','fire','markerToHighlight','accept','isOwn','suggestion','trackChanges.mergeNestedSuggestions','addSuggestionData','registerPostFixer','_customCallbacks','markerToData','removeMarkers','_setSuggestionData','insertion','has','getChanges','removeMarker:suggestion:formatBlock','getSuggestion','removeAttribute','acceptSuggestion','execute','getAllAdjacentSuggestions','formatBlock:','getChangedMarkers','add','insertContent','after','isIntersectingWithRange','PendingActions','howMany','PENDING_ACTION_SUGGESTION','formatInline:','_descriptionFactory','getNearestSelectionRange','isSelectable','bindElementToMarker','locale','$graveyard','getAttribute','deleteContent','_defaultCallbacks','setSelection','containsRange','reconvertMarker','_editor','high','isExternal','formatInline:chain','_commentsRepository','elementToElement','forceDefaultExecution','head','elementStart','containsRangeInObject','_getAuthorFromId','insert','addRange','_splitMarkerName','splitPosition','documentSelection','dataToMarker','removeComment','createSelection','element','formatBlock:join','_onDiscard','formatInline','change','editor','removeClass','plugins','start','name','previous','targetPosition','join','updateMarker','writer','deletion:accept','isLimit','getUser','group','document','getWalker','registerCustomCallback','track-changes-adapter-already-set','addSuggestion','suggestionChanged','differ','ck-suggestion-marker-formatBlock','author','multipleBlocks','ck-suggestion-marker-','markers','data','_registerDefaultCallbacks','options','formatInline:join','data-suggestion','dataDowncast','init','insertion:discard','always','acceptSelectedSuggestions','rejected','deletion:chain','insertion:join','addClass','_addThreadToSuggestion','map','mapper','createPositionAfter','item','markerName','_rangeIsInLocalUserInsertion','skipNestingCheck','selection','batch','hasComments','isRemovable','nodeBefore','addMarker:suggestion:formatBlock','isNextTo','editing','open','from','define','trackChangesCommand','_removeSuggestion','ck-suggestion-marker','createRange','enableReadOnlyMode','getSuggestions','createdAt','activeMarkers','ready','addCommentThread','getRanges','isTouching','createRangeIn','enableCommand','_addSuggestionMarker','rootName','CommentsRepository','_saved','isLocal','$textProxy','isAtEnd','track-changes-adapter-missing-getsuggestion','removeMarker','addMarkerName','detach','_updateSuggestionData','dataReady','consume','set','getMultiRangeId','createPositionAt','multi','isObject','backward','change:_saved','attributes','buildSuggestion','size','getRange','TrackChangesEditing','ck-suggestion-marker--active','clone','isEqual','filter','discardSelectedSuggestions','formatInline:discard','containsPosition','listenTo','external:','remove','widget','split','track-changes-suggestion-data-mismatch','config','trackChanges','showSuggestionHighlights','creator','formatGroupId','createElement','discardAllSuggestions','addHighlight','type','isAtStart','containsItem','toViewElement','_model','discard','applyOperation','get','_suggestionState','markDeletion','isUndo','authoredAt','addMarker:suggestion','suggestionLoaded','update:suggestion','refresh','isAfter','markerReady','hasCommentThread','move','moveTargetPosition','commands','push','_enabledCommands','requires','next','_suggestions','editingDowncast','_trackFormatChanges','isMultiRange','_joinWithAdjacentSuggestions','authorName','_findSuggestions','end','nodeAfter','never','isBefore','_adapter','stop','suggestion:','getFirstMarker','_mergeNestedSuggestions','setTo','isInsideObject','markerNameToElements','includes','substr','_setSuggestionRange','updateSuggestion','position','getItems','subType','notReady','then','createPositionBefore','markBlockFormat','accepted','range','marker-count','some','track-changes-user-not-found','upcast','oldRange','fetchCommentThread','_breakSuggestionMarker','_createSuggestion','change:activeMarkers'];(function(_0x4ac4cd,_0x2c36aa){const _0x242a20=function(_0xeb04f0){while(--_0xeb04f0){_0x4ac4cd['push'](_0x4ac4cd['shift']());}};_0x242a20(++_0x2c36aa);}(_0x2c36,0x19e));const _0x242a=function(_0x4ac4cd,_0x2c36aa){_0x4ac4cd=_0x4ac4cd-0x0;let _0x242a20=_0x2c36[_0x4ac4cd];return _0x242a20;};import{Plugin as _0x3572f8,PendingActions as _0x743162}from'ckeditor5/src/core';import{LiveRange as _0x28ee27}from'ckeditor5/src/engine';import{CKEditorError as _0x4b5b77,uid as _0x50270d,priorities as _0x5692fe,logWarning as _0x19115c}from'ckeditor5/src/utils';import{toWidget as _0x2f35e6}from'ckeditor5/src/widget';import{Users as _0x1b5acb,hashObject as _0x100806}from'ckeditor5-collaboration/src/collaboration-core';import _0x23b481 from'./commands/trackchangescommand';import _0x388efd from'./commands/acceptsuggestioncommand';import _0x260ac9 from'./commands/discardsuggestioncommand';import _0x22bf64 from'./commands/executeonallsuggestionscommand';import _0x273d46 from'./commands/executeonselectedsuggestionscommand';import _0x150878 from'./suggestion';import _0x1e3bb2 from'./suggestiondescriptionfactory';import _0x447ac9 from'./integrations/alignment';import _0x203a17 from'./integrations/basicstyles';import _0x324d5c from'./integrations/blockquote';import _0x34ec7b from'./integrations/ckbox';import _0x212553 from'./integrations/codeblock';import _0xdcf797 from'./integrations/comments';import _0x16fda8 from'./integrations/deletecommand';import _0x383918 from'./integrations/documentlist';import _0x4b5a79 from'./integrations/entercommand';import _0x47ebd6 from'./integrations/findandreplace';import _0x4311aa from'./integrations/font';import _0x5727c2 from'./integrations/formatpainter';import _0x39904c from'./integrations/heading';import _0x123cbb from'./integrations/highlight';import _0x3ff62c from'./integrations/horizontalline';import _0x2e8ea0 from'./integrations/htmlembed';import _0x4fbfd2 from'./integrations/image';import _0x2899af from'./integrations/imagereplace';import _0x3fc207 from'./integrations/importword';import _0x23dd4b from'./integrations/indent';import _0x3b9d74 from'./integrations/inputcommand';import _0x224823 from'./integrations/link';import _0x41e8e0 from'./integrations/list';import _0x44b62c from'./integrations/listproperties';import _0x957da2 from'./integrations/mediaembed';import _0xe57a64 from'./integrations/mention';import _0x1be613 from'./integrations/pagebreak';import _0x35b4b0 from'./integrations/paragraph';import _0x24cf04 from'./integrations/removeformat';import _0x2b853e from'./integrations/restrictededitingmode';import _0x4689ef from'./integrations/shiftentercommand';import _0x2f699b from'./integrations/standardeditingmode';import _0x707ada from'./integrations/style';import _0x240122 from'./integrations/table';import _0x1c3d81 from'./integrations/tablemergesplit';import _0x7f489a from'./integrations/tableheadings';import _0x5c08a5 from'./integrations/tableclipboard';import _0x11374a from'./integrations/tablecolumnresize';import _0x1f2a6e from'./integrations/template';import _0x315c92 from'./integrations/tableofcontents';import _0x436ba9 from'./integrations/title';import _0x1bcd31 from'./integrations/undo';import{getTranslation as _0x4293a4}from'./utils/common-translations';import _0x4f3c61 from'./integrations/tablecaption';import _0x8eaebe from'./integrations/documentlistproperties';import _0x24e2cb from'./integrations/tableproperties';export default class p extends _0x3572f8{static get[_0x242a('0xb7')](){return[_0x242a('0x72'),_0x1b5acb,_0x743162,_0x447ac9,_0x203a17,_0x324d5c,_0x34ec7b,_0x212553,_0xdcf797,_0x16fda8,_0x383918,_0x8eaebe,_0x4b5a79,_0x47ebd6,_0x4311aa,_0x5727c2,_0x39904c,_0x123cbb,_0x3ff62c,_0x2e8ea0,_0x4fbfd2,_0x2899af,_0x3fc207,_0x23dd4b,_0x3b9d74,_0x224823,_0x41e8e0,_0x44b62c,_0x957da2,_0xe57a64,_0x1be613,_0x35b4b0,_0x24cf04,_0x2b853e,_0x4689ef,_0x2f699b,_0x707ada,_0x240122,_0x1c3d81,_0x7f489a,_0x4f3c61,_0x5c08a5,_0x11374a,_0x315c92,_0x24e2cb,_0x1f2a6e,_0x436ba9,_0x1bcd31];}static get['pluginName'](){return _0x242a('0x89');}constructor(_0x1faabd){function _0x1168ca(_0x43e3ec){return _0x43e3ec['map'](_0x5974aa=>String[_0x242a('0x115')](_0x5974aa))['join']('');}super(_0x1faabd),this[_0x242a('0x7e')](_0x242a('0x69'),[]),this['on'](_0x242a('0xe1'),(_0x2e5b80,_0x3ffd71,_0x4d18b7,_0x8fae7a)=>{this[_0x242a('0xa3')][_0x242a('0x26')](()=>{for(const _0x25ea9f of[..._0x8fae7a,..._0x4d18b7])this[_0x242a('0xa3')][_0x242a('0x40')][_0x242a('0x131')](_0x25ea9f)&&_0x1faabd[_0x242a('0x5e')][_0x242a('0xe')](_0x25ea9f);});}),this[_0x242a('0x3')]=new _0x1e3bb2(this['editor'][_0x242a('0xe4')][_0x242a('0xec')],this[_0x242a('0x27')][_0x242a('0x7')]),this['_adapter']=null,this[_0x242a('0xf9')]=new Dt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1faabd[_0x242a('0x29')][_0x242a('0xa6')](_0x242a('0x72')),this[_0x242a('0xb6')]=new Set(),this[_0x242a('0xa3')]=this[_0x242a('0x27')][_0x242a('0xe4')],this[_0x242a('0xa7')]=new WeakMap(),this[_0x242a('0xfb')]=!0x1,_0x1faabd[_0x242a('0x97')][_0x242a('0x61')](_0x242a('0xf5'),_0x242a('0x10e')),this[_0x242a('0xbb')]=_0x1faabd['config'][_0x242a('0xa6')](_0x242a('0xf5')),_0x1faabd[_0x242a('0x97')][_0x242a('0x61')](_0x242a('0x129'),!0x0),this[_0x242a('0xc8')]=_0x1faabd[_0x242a('0x97')][_0x242a('0xa6')](_0x242a('0x129')),this[_0x242a('0x62')]=new _0x23b481(_0x1faabd,this[_0x242a('0xb6')]),this[_0x1168ca([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1168ca([0x34,0x30,0x34,0x36,0x31,0x34,0x33,0x36]);}[_0x242a('0x47')](){const _0x41b161=this['editor'];_0x41b161['conversion'][_0x242a('0x108')](_0x242a('0xba'))[_0x242a('0x125')]({'model':_0x242a('0x128'),'view':_0x337b76=>{const {id:_0x391d23,type:_0x4a58e2}=this['_splitMarkerName'](_0x337b76[_0x242a('0x54')]),_0x3f467c=[_0x242a('0x64'),_0x242a('0x3f')+_0x4a58e2];let _0x1f6d34=0xbb8;return this['activeMarkers']['includes'](_0x337b76[_0x242a('0x54')])&&(_0x3f467c[_0x242a('0xb5')](_0x242a('0x8a')),_0x1f6d34=0xbc2),_0x242a('0x122')==_0x4a58e2&&(_0x1f6d34+=0x5),{'classes':_0x3f467c,'attributes':{'data-suggestion':_0x391d23},'priority':_0x1f6d34};}}),_0x41b161['conversion'][_0x242a('0x108')]('dataDowncast')[_0x242a('0x13b')](_0x4d68c2=>{_0x4d68c2['on'](_0x242a('0xab'),(_0x9e9d33,_0x1fa91b,_0x14e279)=>{if(!_0x14e279[_0x242a('0x43')][_0x242a('0x99')])return;const _0x27a9e9=_0x1fa91b[_0x242a('0x53')];if(!_0x27a9e9)return;const _0x1b07c4=_0x14e279[_0x242a('0x51')][_0x242a('0xa2')](_0x27a9e9);_0x41b161[_0x242a('0xe4')][_0x242a('0xec')]['isObject'](_0x27a9e9)&&_0x1b07c4&&!_0x1b07c4[_0x242a('0x103')](_0x242a('0x94'))&&_0x1b07c4['is']('containerElement')&&_0x2f35e6(_0x1b07c4,_0x14e279[_0x242a('0x30')]);},{'priority':'high'});}),_0x41b161[_0x242a('0xf1')]['for']('dataDowncast')[_0x242a('0x125')]({'model':_0x242a('0x128'),'view':(_0x15e6c6,_0x32999e)=>{if(!_0x32999e['options'][_0x242a('0x99')])return null;const {type:_0x52611b}=this[_0x242a('0x1c')](_0x15e6c6[_0x242a('0x54')]);return{'classes':[_0x242a('0x64'),_0x242a('0x3f')+_0x52611b],'priority':0xbb8};}});const _0x41075b=({showActiveMarkers:_0x5239aa=!0x0}={})=>(_0x15c3dd,_0x25e951,_0x576c9b)=>{if(!_0x25e951[_0x242a('0x53')])return;if(_0x25e951[_0x242a('0x53')]['is'](_0x242a('0x57')))return void _0x576c9b[_0x242a('0x11f')][_0x242a('0x7d')](_0x25e951['item'],_0x15c3dd[_0x242a('0x2b')]);const _0xe3ec40=_0x576c9b[_0x242a('0x51')][_0x242a('0xa2')](_0x25e951[_0x242a('0x53')]);if(!(_0x25e951[_0x242a('0x53')]['is'](_0x242a('0x22'))&&_0x41b161[_0x242a('0xe4')][_0x242a('0xec')][_0x242a('0x112')](_0x25e951[_0x242a('0x53')])&&!_0xe3ec40[_0x242a('0x103')](_0x242a('0x9e'))))return;const {id:_0x4bc692}=this[_0x242a('0x1c')](_0x25e951['markerName']);_0x576c9b[_0x242a('0x30')]['addClass']([_0x242a('0x64'),'ck-suggestion-marker-formatBlock'],_0xe3ec40),_0x576c9b[_0x242a('0x30')]['setAttribute'](_0x242a('0x45'),_0x4bc692,_0xe3ec40),_0x576c9b[_0x242a('0x51')][_0x242a('0x6')](_0xe3ec40,_0x25e951[_0x242a('0x54')]),_0x5239aa&&(this['activeMarkers'][_0x242a('0xcc')](_0x25e951['markerName'])?_0x576c9b[_0x242a('0x30')][_0x242a('0x4e')](_0x242a('0x8a'),_0xe3ec40):_0x576c9b[_0x242a('0x30')]['removeClass'](_0x242a('0x8a'),_0xe3ec40));for(const _0x361884 of _0x41b161[_0x242a('0xe4')][_0x242a('0x6e')](_0x25e951[_0x242a('0x53')])[_0x242a('0xd1')]())_0x576c9b[_0x242a('0x11f')][_0x242a('0x7d')](_0x361884,_0x15c3dd[_0x242a('0x2b')]);_0x576c9b['consumable'][_0x242a('0x7d')](_0x25e951['item'],_0x15c3dd[_0x242a('0x2b')]);};_0x41b161['conversion']['for'](_0x242a('0x46'))[_0x242a('0x13b')](_0x51e9d8=>{_0x51e9d8['on'](_0x242a('0x5c'),(_0x17ab11,_0x25d710,_0x587d3a)=>{_0x587d3a['options'][_0x242a('0x99')]&&_0x41075b({'showActiveMarkers':!0x1})(_0x17ab11,_0x25d710,_0x587d3a);},{'priority':'highest'});}),_0x41b161[_0x242a('0xf1')][_0x242a('0x108')]('dataDowncast')[_0x242a('0x12d')]({'model':_0x242a('0x128'),'view':(_0x37fe71,_0xd1314a)=>_0xd1314a[_0x242a('0x43')][_0x242a('0x99')]?null:{'group':_0x242a('0x128'),'name':_0x37fe71[_0x242a('0xcd')](0xb)}}),_0x41b161[_0x242a('0xf1')][_0x242a('0x108')](_0x242a('0xdc'))[_0x242a('0x14')]({'view':{'name':_0x242a('0x128'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x48e88c,{writer:_0x55f18d})=>{let _0x27fcb2=_0x242a('0xc6')+_0x48e88c['getAttribute'](_0x242a('0x111'))+':'+_0x48e88c[_0x242a('0x9')]('id');return _0x48e88c['getAttribute'](_0x242a('0xd9'))&&(_0x27fcb2+=':'+_0x48e88c[_0x242a('0x9')](_0x242a('0xd9'))),_0x55f18d[_0x242a('0x9c')](_0x242a('0xea'),{'data-name':_0x27fcb2});}}),_0x41b161[_0x242a('0xf1')][_0x242a('0x108')]('upcast')[_0x242a('0x1f')]({'view':_0x242a('0x128')}),_0x41b161[_0x242a('0xf1')][_0x242a('0x108')](_0x242a('0xba'))[_0x242a('0x13b')](_0x3134e1=>{_0x3134e1['on'](_0x242a('0x5c'),_0x41075b(),{'priority':_0x242a('0x10')});}),_0x41b161[_0x242a('0xf1')][_0x242a('0x108')](_0x242a('0xba'))['add'](_0x1d2352=>{_0x1d2352['on'](_0x242a('0x133'),(_0x15a489,_0xe96fcd,_0x4aa88a)=>{const _0x54ea45=_0x4aa88a[_0x242a('0x51')][_0x242a('0xcb')](_0xe96fcd[_0x242a('0x54')]);if(_0x54ea45)for(const _0x45d025 of _0x54ea45)_0x45d025[_0x242a('0x103')](_0x242a('0x9e'))||(_0x4aa88a[_0x242a('0x30')][_0x242a('0x28')]([_0x242a('0x64'),_0x242a('0x3c'),_0x242a('0x8a')],_0x45d025),_0x4aa88a[_0x242a('0x30')][_0x242a('0x135')](_0x242a('0x45'),_0x45d025),_0x4aa88a['mapper'][_0x242a('0x123')](_0x45d025,_0xe96fcd[_0x242a('0x54')]));},{'priority':_0x242a('0x10')});}),_0x41b161[_0x242a('0xe4')][_0x242a('0x35')][_0x242a('0x12b')](_0x5657ed=>{let _0x5e9754=!0x1;const _0xb029e4=Array[_0x242a('0x60')](_0x41b161[_0x242a('0xe4')][_0x242a('0x35')][_0x242a('0x3b')]['getChangedMarkers']()),_0x707cb0=new Set();for(const {name:_0x2dcf73,data:_0x3b8559}of _0xb029e4){const {group:_0x322ebe,type:_0x422f29,id:_0x534949}=this[_0x242a('0x1c')](_0x2dcf73);if(_0x242a('0x128')!==_0x322ebe)continue;const _0xb7294f=this['_suggestions']['get'](_0x534949);if(null!=_0x3b8559['newRange']){_0x242a('0x25')==_0x422f29&&(_0x5e9754=_0x5e9754||Mt(_0x3b8559[_0x242a('0xf0')],_0x2dcf73,_0x5657ed,_0x41b161[_0x242a('0xe4')]['schema']));if(_0x3b8559['newRange'][_0x242a('0x106')]||_0x242a('0x8')==_0x3b8559['newRange'][_0x242a('0x10b')][_0x242a('0x71')]||_0x242a('0x121')==_0x422f29&&!Nt(_0x3b8559['newRange'])||_0x242a('0x122')==_0x422f29&&!(!_t(_0x16f5b2=_0x3b8559[_0x242a('0xf0')])&&!function(_0x2dd41b){return _0x2dd41b[_0x242a('0x2a')]['parent']==_0x2dd41b[_0x242a('0xc0')][_0x242a('0x5b')]&&_0x2dd41b[_0x242a('0x2a')]['isAtEnd'];}(_0x16f5b2)))_0x5657ed[_0x242a('0x78')](_0x2dcf73),_0x5e9754=!0x0;else{if(!_0xb7294f||!_0xb7294f[_0x242a('0xe6')])continue;_0x707cb0['add'](_0xb7294f);}}}var _0x16f5b2;return _0x707cb0['size']>0x0&&(_0x5e9754=!!this[_0x242a('0xbd')](_0x707cb0)||_0x5e9754),_0x5e9754;}),_0x41b161[_0x242a('0xe4')]['document']['registerPostFixer'](_0x42fd5e=>{let _0x546fcd=!0x1;for(const _0x2afb69 of _0x41b161[_0x242a('0xe4')][_0x242a('0x35')]['differ'][_0x242a('0x132')]()){if('insert'!=_0x2afb69[_0x242a('0x9f')])continue;const _0x748b89=_0x2afb69[_0x242a('0xd0')][_0x242a('0x10d')](_0x2afb69[_0x242a('0xf8')]);if(_0x748b89[_0x242a('0x76')])for(const _0x5ce589 of this[_0x242a('0xb9')]['values']()){if(_0x5ce589[_0x242a('0xbc')]||!_0x5ce589[_0x242a('0xe6')])continue;if('formatBlock'!=_0x5ce589[_0x242a('0x9f')])continue;const _0xe2ec95=_0x5ce589[_0x242a('0xe7')]();if(_0xe2ec95[_0x242a('0x2a')][_0x242a('0x11e')]!=_0xe2ec95[_0x242a('0xc0')][_0x242a('0x11e')]&&_0xe2ec95[_0x242a('0xc0')][_0x242a('0x8c')](_0x2afb69[_0x242a('0xd0')])){const _0x216db3=_0x41b161['model'][_0x242a('0x65')](_0xe2ec95[_0x242a('0x2a')],_0x748b89);_0x42fd5e['updateMarker'](_0x5ce589[_0x242a('0xc7')](),{'range':_0x216db3}),_0x546fcd=!0x0;}}}return _0x546fcd;}),_0x41b161['model']['markers']['on'](_0x242a('0xad'),(_0x533ddc,_0x56936d,_0x32faa6)=>{if(null==_0x32faa6){const {id:_0xcbcf17}=this['_splitMarkerName'](_0x56936d[_0x242a('0x2b')]),_0x336fb8=this[_0x242a('0xb9')]['get'](_0xcbcf17);_0x336fb8&&_0x336fb8[_0x242a('0x79')](_0x56936d['name']);}}),_0x41b161[_0x242a('0xe4')][_0x242a('0x35')]['on']('change:data',()=>{const _0x3b8cef=Array[_0x242a('0x60')](_0x41b161[_0x242a('0xe4')][_0x242a('0x35')][_0x242a('0x3b')][_0x242a('0x13a')]())[_0x242a('0x8d')](_0xd9f6b7=>'suggestion'===this[_0x242a('0x1c')](_0xd9f6b7[_0x242a('0x2b')])[_0x242a('0x34')]);if(0x0===_0x3b8cef[_0x242a('0xf8')])return;_0x3b8cef[_0x242a('0x100')]((_0xddae65,_0x59e0f8)=>{const _0x480ea4=_0xddae65[_0x242a('0x41')][_0x242a('0xdd')],_0x3c2a0a=_0x59e0f8[_0x242a('0x41')][_0x242a('0xdd')];return null===_0x480ea4&&null===_0x3c2a0a?0x0:null===_0x480ea4&&null!==_0x3c2a0a?-0x1:null!==_0x480ea4&&null===_0x3c2a0a?0x1:_0x480ea4['start'][_0x242a('0xc3')](_0x3c2a0a[_0x242a('0x2a')])?-0x1:0x1;});const _0x4a2f8f=new Set(),_0x1de565=new Set();for(const {name:_0x272938,data:_0xac4c53}of _0x3b8cef){const {id:_0x1b565b}=this[_0x242a('0x1c')](_0x272938);if(null===_0xac4c53[_0x242a('0xdd')]){const _0x1a8b71=this[_0x242a('0x117')](_0x272938);_0x1de565[_0x242a('0x13b')](_0x1a8b71);}else{const _0x5df5b7=this['_suggestions'][_0x242a('0xa6')](_0x1b565b);null!==_0xac4c53['newRange']||_0x5df5b7[_0x242a('0xe6')]?(_0x4a2f8f[_0x242a('0x13b')](_0x5df5b7[_0x242a('0x16')]),_0x1de565['add'](_0x5df5b7)):this['_removeSuggestion'](_0x5df5b7);}}_0x1de565[_0x242a('0x87')]>0x0&&this['_refreshSuggestionsChain'](_0x1de565);for(const _0x5aab22 of _0x4a2f8f)this[_0x242a('0x124')](_0x242a('0x3a'),_0x5aab22);}),_0x41b161[_0x242a('0xe4')]['on'](_0x242a('0xa5'),(_0x192646,_0x49b14b)=>{const _0x453be2=_0x49b14b[0x0];if(!this[_0x242a('0xb9')][_0x242a('0x87')])return;if(!_0x453be2['isDocumentOperation'])return;if(_0x453be2[_0x242a('0x58')][_0x242a('0xa9')]||!_0x453be2[_0x242a('0x58')][_0x242a('0x74')])return;let _0x6c2bd,_0x3c3a7c;switch(_0x453be2['type']){case _0x242a('0x1a'):_0x6c2bd=_0x41b161[_0x242a('0xe4')][_0x242a('0x80')](_0x453be2['position']),_0x3c3a7c=_0x6c2bd['getShiftedBy'](_0x453be2[_0x242a('0x0')]);break;case _0x242a('0x95'):_0x6c2bd=_0x41b161[_0x242a('0xe4')][_0x242a('0x80')](_0x453be2[_0x242a('0x1d')]),_0x3c3a7c=_0x41b161[_0x242a('0xe4')][_0x242a('0x80')](_0x453be2[_0x242a('0xb3')]);break;case _0x242a('0xb2'):_0x6c2bd=_0x41b161[_0x242a('0xe4')][_0x242a('0x80')](_0x453be2[_0x242a('0x2d')]),_0x3c3a7c=_0x6c2bd[_0x242a('0x10d')](_0x453be2[_0x242a('0x0')]);break;default:return;}const _0x5b984a=_0x41b161['model'][_0x242a('0x65')](_0x6c2bd,_0x3c3a7c);_0x41b161[_0x242a('0xe4')][_0x242a('0x26')](()=>{for(const {suggestion:_0x1e54a9,meta:_0x13fcab}of this['_findSuggestions'](_0x5b984a)){if(_0x1e54a9[_0x242a('0xbc')])continue;if(_0x242a('0x25')==_0x1e54a9[_0x242a('0x9f')])continue;const _0xd80f7a=_0x1e54a9[_0x242a('0x41')]&&_0x1e54a9[_0x242a('0x41')][_0x242a('0x3e')];(_0x242a('0x121')!=_0x1e54a9[_0x242a('0x9f')]||_0x242a('0x95')==_0x453be2['type']&&!_0xd80f7a)&&(_0x13fcab[_0x242a('0x18')]||'insertion'==_0x1e54a9[_0x242a('0x9f')]&&_0x13fcab[_0x242a('0x127')]||_0x1e54a9['getFirstRange']()[_0x242a('0xd')](_0x5b984a)&&this[_0x242a('0xdf')](_0x1e54a9,_0x6c2bd,_0x3c3a7c));}});},{'priority':_0x242a('0xfa')}),_0x41b161[_0x242a('0xe4')]['on'](_0x242a('0xa'),(_0x69131e,_0x573f05)=>{const _0xc414dd=_0x573f05[0x0],_0x37e0ba=_0x573f05[0x1];if(_0x37e0ba&&_0x37e0ba[_0x242a('0x15')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand'][_0x242a('0xeb')])return;if(_0xc414dd[_0x242a('0x106')])return;const _0x38756d=_0x41b161[_0x242a('0xe4')][_0x242a('0xec')],{start:_0x513424,end:_0x2a0b48}=_0xc414dd['getFirstRange'](),_0x359153=_0x513424['nodeAfter']&&_0x38756d['isLimit'](_0x513424['nodeAfter'])?null:_0x38756d[_0x242a('0x4')](_0x513424,'forward'),_0x4e3ac=_0x2a0b48['nodeBefore']&&_0x38756d[_0x242a('0x32')](_0x2a0b48[_0x242a('0x5b')])?null:_0x38756d['getNearestSelectionRange'](_0x2a0b48,_0x242a('0x83')),_0x591109=_0x41b161[_0x242a('0xe4')]['createRange'](_0x359153?_0x359153[_0x242a('0x2a')]:_0x513424,_0x4e3ac?_0x4e3ac[_0x242a('0xc0')]:_0x2a0b48);_0x41b161[_0x242a('0xe4')][_0x242a('0x26')](_0x42e6a6=>{this[_0x242a('0xa8')](_0x591109);const _0xd25e12=_0x41b161['model'][_0x242a('0xec')][_0x242a('0x4')](_0x591109[_0x242a('0x2a')]);_0xc414dd['is'](_0x242a('0x1e'))?_0x42e6a6[_0x242a('0xc')](_0xd25e12):_0xc414dd[_0x242a('0xc9')](_0xd25e12);}),_0x69131e[_0x242a('0xc5')]();},{'priority':_0x5692fe[_0x242a('0x113')]+0xa}),_0x41b161['model']['on'](_0x242a('0x13c'),(_0x4e5d9c,_0x32b7a8)=>{const _0x5c9cec=_0x32b7a8[_0x32b7a8[_0x242a('0xf8')]-0x1];_0x5c9cec&&_0x5c9cec[_0x242a('0x15')]||this[_0x242a('0xfb')]||this[_0x242a('0x62')][_0x242a('0xeb')]&&(_0x41b161[_0x242a('0xe4')][_0x242a('0x26')](()=>{let _0x188fcc=_0x41b161[_0x242a('0xe4')][_0x242a('0x13c')](_0x32b7a8[0x0],_0x32b7a8[0x1],_0x32b7a8[0x2],{'forceDefaultExecution':!0x0});if(!_0x188fcc)return;_0x4e5d9c['return']=_0x188fcc[_0x242a('0x8b')]();const _0x30772a=_0x188fcc[_0x242a('0xc0')][_0x242a('0x5b')],_0x1aa6fb=_0x41b161[_0x242a('0xe4')][_0x242a('0xec')];_0x30772a&&_0x1aa6fb['isBlock'](_0x30772a)&&!_0x1aa6fb['isObject'](_0x30772a)&&(_0x188fcc=_0x41b161[_0x242a('0xe4')][_0x242a('0x65')](_0x188fcc[_0x242a('0x2a')],_0x41b161['model'][_0x242a('0x80')](_0x30772a,_0x242a('0xc0')))),this['markInsertion'](_0x188fcc);}),_0x4e5d9c[_0x242a('0xc5')]());},{'priority':_0x242a('0x10')}),this[_0x242a('0x27')]['commands'][_0x242a('0x13b')](_0x242a('0x98'),this[_0x242a('0x62')]),this[_0x242a('0x6f')]('trackChanges');const _0x149f57=new _0x388efd(_0x41b161,this[_0x242a('0xb9')]);_0x41b161['commands'][_0x242a('0x13b')](_0x242a('0x136'),_0x149f57),this['enableCommand']('acceptSuggestion');const _0x3d8c97=new _0x260ac9(_0x41b161,this[_0x242a('0xb9')]);_0x41b161[_0x242a('0xb4')][_0x242a('0x13b')]('discardSuggestion',_0x3d8c97),this[_0x242a('0x6f')](_0x242a('0xfc')),_0x41b161['commands'][_0x242a('0x13b')](_0x242a('0x102'),new _0x22bf64(_0x41b161,_0x149f57,this[_0x242a('0xb9')])),this['enableCommand'](_0x242a('0x102')),_0x41b161[_0x242a('0xb4')][_0x242a('0x13b')](_0x242a('0x9d'),new _0x22bf64(_0x41b161,_0x3d8c97,this[_0x242a('0xb9')])),this[_0x242a('0x6f')](_0x242a('0x9d')),_0x41b161[_0x242a('0xb4')][_0x242a('0x13b')]('acceptSelectedSuggestions',new _0x273d46(_0x41b161,_0x149f57,this[_0x242a('0xb9')])),this[_0x242a('0x6f')](_0x242a('0x4a')),_0x41b161[_0x242a('0xb4')][_0x242a('0x13b')](_0x242a('0x8e'),new _0x273d46(_0x41b161,_0x3d8c97,this[_0x242a('0xb9')])),this[_0x242a('0x6f')]('discardSelectedSuggestions');const _0x50788b=_0x41b161[_0x242a('0x29')][_0x242a('0xa6')](_0x242a('0x72'));this['listenTo'](_0x50788b,_0x242a('0xf4'),(_0x418679,{threadId:_0x577c9e})=>{const _0x15c7da=this[_0x242a('0xb9')][_0x242a('0xa6')](_0x577c9e);_0x15c7da&&_0x15c7da[_0x242a('0xed')]&&0x1===_0x15c7da[_0x242a('0xed')][_0x242a('0xf8')]&&this['_updateSuggestionData'](_0x577c9e,{'hasComments':!0x0});},{'priority':'low'}),this[_0x242a('0x91')](_0x50788b,_0x242a('0x20'),(_0x2812fa,{threadId:_0x5549e2})=>{const _0x5a9574=this[_0x242a('0xb9')][_0x242a('0xa6')](_0x5549e2);_0x5a9574&&_0x5a9574[_0x242a('0xed')]&&!_0x5a9574['commentThread']['length']&&this[_0x242a('0x7b')](_0x5549e2,{'hasComments':!0x1});},{'priority':_0x242a('0x11b')});}set['adapter'](_0x297e37){if(this[_0x242a('0xc4')])throw new _0x4b5b77(_0x242a('0x38'),this);this[_0x242a('0xc4')]=_0x297e37;}get['adapter'](){return this[_0x242a('0xc4')];}['getSuggestions']({skipNotAttached:_0x255364=!0x1,toJSON:_0x1a6103=!0x1}={}){const _0x46a904=[];for(const _0x49997a of this[_0x242a('0xb9')][_0x242a('0x10f')]())_0x255364&&!_0x49997a['isInContent']||_0x46a904['push'](_0x49997a);return _0x1a6103?_0x46a904[_0x242a('0x50')](_0x3c6b12=>_0x3c6b12[_0x242a('0xfd')]()):_0x46a904;}[_0x242a('0x134')](_0x2e4595){const _0x461440=this[_0x242a('0xb9')][_0x242a('0xa6')](_0x2e4595);if(!_0x461440)throw new _0x4b5b77(_0x242a('0x104'),this);return _0x461440;}[_0x242a('0x118')](_0x464d0d){return this[_0x242a('0xb9')][_0x242a('0x131')](_0x464d0d);}['addSuggestionData'](_0x5278d2){const {authorId:_0x1b8886,id:_0x368589,attributes:_0x37b6c7}=_0x5278d2,[_0x5b8830,_0x108ea6]=_0x5278d2[_0x242a('0x9f')][_0x242a('0x95')](':'),_0x29f752=this[_0x242a('0xb9')][_0x242a('0xa6')](_0x368589)||this[_0x242a('0xe0')](_0x5b8830,_0x108ea6,_0x368589,_0x1b8886,_0x37b6c7);if(this[_0x242a('0x4f')](_0x29f752),this[_0x242a('0xe3')](_0x29f752,_0x5b8830,_0x108ea6||null,_0x1b8886),_0x29f752[_0x242a('0x68')]=_0x5278d2[_0x242a('0x68')],_0x37b6c7&&_0x37b6c7[_0x242a('0xf2')]){const _0x566ea6=_0x37b6c7[_0x242a('0xf2')],_0x19c648=this[_0x242a('0x114')](_0x566ea6[_0x242a('0xbe')]);_0x29f752['authoredAt']=_0x566ea6[_0x242a('0x68')],_0x29f752[_0x242a('0x3d')]=_0x19c648,_0x29f752[_0x242a('0x11')]=!0x0;}else _0x29f752[_0x242a('0xaa')]=_0x5278d2['createdAt'];switch(_0x5278d2['data']&&(_0x29f752[_0x242a('0x41')]=_0x5278d2['data']),_0x5278d2[_0x242a('0x85')]&&(_0x29f752['attributes']=_0x5278d2[_0x242a('0x85')]),this[_0x242a('0xc4')]&&this[_0x242a('0xc4')][_0x242a('0x39')]||(_0x29f752[_0x242a('0x73')]=!0x0),this[_0x242a('0xa7')][_0x242a('0xa6')](_0x29f752)){case _0x242a('0xd3'):this['_suggestionState'][_0x242a('0x7e')](_0x29f752,'dataReady');break;case _0x242a('0xb0'):_0x29f752[_0x242a('0xe6')]?(this[_0x242a('0xa7')]['set'](_0x29f752,_0x242a('0x6a')),this[_0x242a('0x124')](_0x242a('0xac'),_0x29f752)):this[_0x242a('0xa7')][_0x242a('0x7e')](_0x29f752,'removed');}return _0x29f752;}[_0x242a('0x136')](_0x19c8cb){this[_0x242a('0x15')](()=>{this['editor']['model'][_0x242a('0x26')](()=>{for(const _0x47499c of _0x19c8cb[_0x242a('0x138')]())_0x47499c[_0x242a('0x126')]();});});}[_0x242a('0xfc')](_0x4b28ad){this[_0x242a('0x15')](()=>{this[_0x242a('0x27')][_0x242a('0xe4')][_0x242a('0x26')](()=>{for(const _0x44bc04 of _0x4b28ad[_0x242a('0x138')]())_0x44bc04[_0x242a('0xa4')]();});});}['enableCommand'](_0x257269,_0x56866c){const _0x1f706e=this[_0x242a('0x27')][_0x242a('0xb4')][_0x242a('0xa6')](_0x257269);if(!_0x1f706e)throw new _0x4b5b77('track-changes-command-not-found',this,{'commandName':_0x257269});this[_0x242a('0xb6')][_0x242a('0x13b')](_0x1f706e),_0x56866c&&_0x1f706e['on'](_0x242a('0x137'),(_0x4f07e6,_0x3dd1b2)=>{this['trackChangesCommand']['value']&&(this[_0x242a('0xfb')]||_0x3dd1b2['length']>0x0&&_0x3dd1b2[_0x3dd1b2[_0x242a('0xf8')]-0x1]&&_0x3dd1b2[_0x3dd1b2[_0x242a('0xf8')]-0x1]['forceDefaultExecution']||(_0x56866c((..._0x3a650c)=>_0x1f706e[_0x242a('0x137')](..._0x3a650c,{'forceDefaultExecution':!0x0}),..._0x3dd1b2),_0x4f07e6[_0x242a('0xc5')]()));},{'priority':_0x242a('0x10')});}[_0x242a('0x15')](_0x574fa8){let _0x4dc8c0,_0x592d21;const _0x2b3662=this[_0x242a('0xfb')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4dc8c0=_0x574fa8();}catch(_0x5726fd){_0x592d21=_0x5726fd;}return _0x2b3662||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x592d21&&_0x4b5b77[_0x242a('0xf6')](_0x592d21,this),_0x4dc8c0;}['markInsertion'](_0x1ba89c,_0x2cb2e5=null,_0x3a23c8={}){if(_0x1ba89c['isCollapsed'])return null;const _0x19cf64=this[_0x242a('0x27')]['plugins']['get'](_0x242a('0x11c'))['me'];for(const {suggestion:_0x31ecf0,meta:_0x5946f1}of this['_findSuggestions'](_0x1ba89c,'insertion'))if(_0x5946f1['isOwn']){if(!_0x5946f1[_0x242a('0x5d')]){if(!this[_0x242a('0xc8')]&&_0x5946f1['containsRangeInObject'])continue;return _0x31ecf0;}if(_0x2cb2e5==_0x31ecf0[_0x242a('0xd2')]){const _0x4976a7=_0x31ecf0[_0x242a('0xe7')]();return _0x4976a7[_0x242a('0x2a')][_0x242a('0x8c')](_0x1ba89c[_0x242a('0xc0')])?this['_setSuggestionRange'](_0x31ecf0,this[_0x242a('0xa3')][_0x242a('0x65')](_0x1ba89c['start'],_0x4976a7[_0x242a('0xc0')])):this[_0x242a('0xce')](_0x31ecf0,this['_model'][_0x242a('0x65')](_0x4976a7['start'],_0x1ba89c[_0x242a('0xc0')])),_0x31ecf0;}}const _0xc56b97=_0x50270d(),_0x1cf2c6=_0x19cf64['id'],_0x5f29dd=_0x2cb2e5?'insertion:'+_0x2cb2e5:_0x242a('0x130'),_0x2a4993=this[_0x242a('0x12f')]({'id':_0xc56b97,'type':_0x5f29dd,'createdAt':new Date(),'authorId':_0x1cf2c6,'attributes':_0x3a23c8});return this[_0x242a('0x70')](_0x5f29dd,_0xc56b97,_0x1cf2c6,_0x1ba89c),_0x2a4993;}[_0x242a('0x119')](_0x14a6e4,_0x29f17d=_0x242a('0x81'),_0x4134ee={}){const _0xdcfcbc=this[_0x242a('0x27')][_0x242a('0x29')][_0x242a('0xa6')]('Users')['me'],_0x3aad3a=this[_0x242a('0xf9')]['getSuggestionCallback'](_0x242a('0x130'),_0x29f17d,_0x242a('0x2e'));for(const _0x296186 of this[_0x242a('0x67')]())if(_0x296186[_0x242a('0x3d')]['id']==_0xdcfcbc['id']&&_0x242a('0x130')==_0x296186[_0x242a('0x9f')]&&_0x296186[_0x242a('0xd2')]==_0x29f17d&&(_0x3aad3a(_0x296186[_0x242a('0x6c')](),_0x14a6e4)||_0x3aad3a(_0x14a6e4,_0x296186[_0x242a('0x6c')]()))){for(const _0x24c8b6 of _0x14a6e4)_0x296186[_0x242a('0x1b')](_0x24c8b6);return _0x296186;}if(this[_0x242a('0xc8')])for(const _0x386819 of _0x14a6e4)for(const {suggestion:_0x234f47,meta:_0x3930cb}of this[_0x242a('0xbf')](_0x386819,'insertion')){if(!_0x3930cb[_0x242a('0x127')])continue;let _0x5a693a=!0x0;for(const _0x218581 of _0x234f47[_0x242a('0x6c')]())for(const _0x1330c1 of _0x14a6e4)if(!_0x218581[_0x242a('0xd')](_0x1330c1)){_0x5a693a=!0x1;break;}if(_0x5a693a)return _0x234f47;}const _0x51337c=_0x50270d(),_0x31307c=_0xdcfcbc['id'],_0x1ba847='insertion:'+_0x29f17d,_0x1f9d9e=this['_setSuggestionData']({'id':_0x51337c,'type':_0x1ba847,'createdAt':new Date(),'authorId':_0x31307c,'attributes':_0x4134ee});for(const _0x2cc748 of _0x14a6e4)this['_addSuggestionMarker'](_0x1ba847,_0x51337c,_0x31307c,_0x2cc748,_0x150878[_0x242a('0x7f')]());return _0x1f9d9e;}[_0x242a('0x101')](_0x5b7d77,_0x52027d,_0x296a0b=null,_0x5f7b18={}){if(_0x296a0b=_0x296a0b||$t(_0x52027d),_0x5b7d77[_0x242a('0x106')])return null;if(_0x242a('0xc2')===this[_0x242a('0xbb')]){const _0x13bf0c=this[_0x242a('0xf9')][_0x242a('0x11a')]('formatInline',_0x296a0b,_0x242a('0x126'));return this[_0x242a('0x15')](()=>_0x13bf0c([_0x5b7d77],_0x52027d,_0x5f7b18)),null;}const _0x3a09a4=this[_0x242a('0x27')][_0x242a('0x29')][_0x242a('0xa6')](_0x242a('0x11c'))['me'],_0x208d98=[];if(_0x242a('0x49')!==this[_0x242a('0xbb')])for(const {suggestion:_0x2fd3c7,meta:_0x28d23a}of this[_0x242a('0xbf')](_0x5b7d77,_0x242a('0x130')))_0x28d23a[_0x242a('0x127')]&&!_0x28d23a['isInsideObject']&&_0x208d98['push'](..._0x2fd3c7[_0x242a('0x6c')]());const _0x57f302=function(_0x574b55,_0x569466){const _0x50c865=[];for(const _0x100664 of _0x569466){const _0x4883a2=_0x574b55['getIntersection'](_0x100664);_0x4883a2&&_0x50c865['push'](_0x4883a2);}return _0x50c865;}(_0x5b7d77,_0x208d98),_0x22a293=function(_0x1b0c9b,_0x1c4dbf){const _0x10ae7a=[_0x1b0c9b];for(const _0x2f14e1 of _0x1c4dbf){let _0x42815e=0x0;for(;_0x42815e<_0x10ae7a[_0x242a('0xf8')];){const _0x5028b9=_0x10ae7a[_0x42815e]['getDifference'](_0x2f14e1);_0x10ae7a[_0x242a('0x120')](_0x42815e,0x1,..._0x5028b9),_0x42815e+=_0x5028b9[_0x242a('0xf8')];}}return _0x10ae7a;}(_0x5b7d77,_0x208d98);_0x57f302[_0x242a('0xf8')]&&this[_0x242a('0xa3')][_0x242a('0x26')](()=>{for(const _0xb51bb1 of _0x57f302){const _0x233ef6=this[_0x242a('0xf9')][_0x242a('0x11a')](_0x242a('0x25'),_0x296a0b,_0x242a('0x126'));this[_0x242a('0x15')](()=>_0x233ef6([_0xb51bb1],_0x52027d,_0x5f7b18));}});for(const _0x188d85 of _0x22a293){let _0x15b5c3=null,_0x17a08f=_0x188d85[_0x242a('0x2a')],_0x2d06a=_0x188d85[_0x242a('0xc0')];for(const {suggestion:_0x2804b1,meta:_0x2b7171}of this[_0x242a('0xbf')](_0x188d85,_0x242a('0x25'))){if(!_0x2b7171[_0x242a('0x127')])continue;if(_0x2804b1['subType']!=_0x296a0b)continue;const _0x591c8e=_0x2804b1[_0x242a('0xe7')]();if(_0x591c8e[_0x242a('0xd')](_0x188d85,!0x0))return null;_0x17a08f=_0x17a08f['isBefore'](_0x591c8e[_0x242a('0x2a')])?_0x17a08f:_0x591c8e[_0x242a('0x2a')],_0x2d06a=_0x2d06a[_0x242a('0xaf')](_0x591c8e['end'])?_0x2d06a:_0x591c8e[_0x242a('0xc0')],_0x15b5c3?_0x591c8e[_0x242a('0x2a')]['isBefore'](_0x15b5c3[_0x242a('0xe7')]()[_0x242a('0x2a')])?(_0x15b5c3[_0x242a('0x12e')](),_0x15b5c3=_0x2804b1):_0x2804b1[_0x242a('0x12e')]():_0x15b5c3=_0x2804b1;}const _0x3679ad=this[_0x242a('0xa3')][_0x242a('0x65')](_0x17a08f,_0x2d06a);if(_0x15b5c3)this[_0x242a('0xce')](_0x15b5c3,_0x3679ad);else{const _0x48949f=_0x50270d(),_0x586c78=_0x3a09a4['id'];this['_setSuggestionData']({'id':_0x48949f,'type':_0x242a('0x2')+_0x296a0b,'data':_0x52027d,'createdAt':new Date(),'authorId':_0x586c78,'attributes':_0x5f7b18}),this[_0x242a('0x70')](_0x242a('0x2')+_0x296a0b,_0x48949f,_0x586c78,_0x3679ad);}}return null;}[_0x242a('0xd6')](_0xd9ccac,_0x2bef51,_0x10eff8=[],_0x2663c1=null,_0x21ecc2={}){_0x2bef51[_0x242a('0x9b')]||(_0x2bef51[_0x242a('0x9b')]=_0x2bef51['commandName']),_0x2bef51[_0x242a('0x3e')]=_0xd9ccac['is'](_0x242a('0xd8')),_0x2663c1=_0x2663c1||$t(_0x2bef51);const _0x54a14d=_0x10eff8[_0x242a('0x50')](_0x2b76e9=>Rt(_0x2b76e9,this[_0x242a('0xa3')])),_0x49d1c5=_0xd9ccac['is'](_0x242a('0xd8'))?_0xd9ccac:Rt(_0xd9ccac,this[_0x242a('0xa3')]);if(_0x242a('0xc2')===this['_trackFormatChanges']){const _0x5ec747=this[_0x242a('0xf9')][_0x242a('0x11a')](_0x242a('0x121'),_0x2663c1,_0x242a('0x126'));return this[_0x242a('0x15')](()=>_0x5ec747([_0x49d1c5],_0x2bef51,_0x21ecc2)),null;}_0x54a14d[_0x242a('0xb5')](_0x49d1c5);let _0x4c1c96=!0x0;for(const _0x34fb88 of _0x54a14d)if(!this['_rangeIsInLocalUserInsertion'](_0x34fb88)){_0x4c1c96=!0x1;break;}if(_0x4c1c96&&_0x242a('0x49')!==this[_0x242a('0xbb')]){const _0x59e403=this[_0x242a('0xf9')][_0x242a('0x11a')](_0x242a('0x121'),_0x2663c1,_0x242a('0x126'));return this[_0x242a('0x15')](()=>_0x59e403([_0x49d1c5],_0x2bef51,_0x21ecc2)),null;}let _0x4ac1f3=null,_0x3bc6bd=_0x49d1c5[_0x242a('0x2a')],_0x5368ff=_0x49d1c5['end'];for(const {suggestion:_0x33c297,meta:_0xe6181f}of this[_0x242a('0xbf')](_0x49d1c5,_0x242a('0x121'))){if(!_0xe6181f['isOwn']||_0xe6181f[_0x242a('0x5d')]||_0xe6181f[_0x242a('0x18')]||_0xe6181f[_0x242a('0xca')])continue;if(_0x33c297[_0x242a('0x41')][_0x242a('0x9b')]!=_0x2bef51[_0x242a('0x9b')])continue;const _0x4164fd=_0x33c297[_0x242a('0xe7')]();if(_0x33c297[_0x242a('0xd2')]==_0x2663c1){if(_0x4164fd[_0x242a('0xd')](_0x49d1c5,!0x0))return null;_0x3bc6bd=_0x3bc6bd[_0x242a('0xc3')](_0x4164fd[_0x242a('0x2a')])?_0x3bc6bd:_0x4164fd[_0x242a('0x2a')],_0x5368ff=_0x5368ff['isAfter'](_0x4164fd[_0x242a('0xc0')])?_0x5368ff:_0x4164fd[_0x242a('0xc0')],_0x4ac1f3?_0x4164fd[_0x242a('0x2a')][_0x242a('0xc3')](_0x4ac1f3[_0x242a('0xe7')]()[_0x242a('0x2a')])?(_0x4ac1f3['removeMarkers'](),_0x4ac1f3=_0x33c297):_0x33c297['removeMarkers']():_0x4ac1f3=_0x33c297;}else{const _0x4daa79=_0x49d1c5[_0x242a('0x110')](_0x4164fd);this[_0x242a('0x107')](_0x33c297,_0x4daa79);}}const _0x5dd10b=this[_0x242a('0x27')][_0x242a('0x29')]['get'](_0x242a('0x11c'))['me'],_0x240683=_0x50270d(),_0x2eea63=_0x5dd10b['id'];if(_0x4ac1f3)return this[_0x242a('0xce')](_0x4ac1f3,this[_0x242a('0xa3')]['createRange'](_0x3bc6bd,_0x5368ff)),_0x4ac1f3;{const _0x599834=this[_0x242a('0x12f')]({'id':_0x240683,'type':_0x242a('0x139')+_0x2663c1,'data':_0x2bef51,'createdAt':new Date(),'authorId':_0x2eea63,'attributes':_0x21ecc2});return this[_0x242a('0x70')](_0x242a('0x139')+_0x2663c1,_0x240683,_0x2eea63,this[_0x242a('0xa3')]['createRange'](_0x3bc6bd,_0x5368ff)),_0x599834;}}['markMultiRangeBlockFormat'](_0x29420e,_0x5bfe40,_0x2f285a=[],_0x251a54=null,_0x257ec6={}){_0x5bfe40[_0x242a('0x9b')]||(_0x5bfe40[_0x242a('0x9b')]=_0x5bfe40[_0x242a('0x11d')]);const _0x1ff268=_0x29420e[0x0];_0x5bfe40[_0x242a('0x3e')]=_0x1ff268['is'](_0x242a('0xd8')),_0x251a54=_0x251a54||$t(_0x5bfe40);const _0x19cc81=_0x2f285a['map'](_0x430ed8=>Rt(_0x430ed8,this[_0x242a('0xa3')])),_0xbb69a8=_0x1ff268['is'](_0x242a('0xd8'))?_0x29420e:_0x29420e[_0x242a('0x50')](_0x14833d=>Rt(_0x14833d,this['_model']));if(_0x242a('0xc2')===this[_0x242a('0xbb')]){const _0x3b4566=this['_suggestionFactory'][_0x242a('0x11a')]('formatBlock',_0x251a54,_0x242a('0x126'));return this[_0x242a('0x15')](()=>_0x3b4566(_0xbb69a8,_0x5bfe40,_0x257ec6)),null;}_0x19cc81['push'](..._0xbb69a8);let _0x2b9326=!0x0;for(const _0x85a3b2 of _0x19cc81)if(!this[_0x242a('0x55')](_0x85a3b2)){_0x2b9326=!0x1;break;}if(_0x2b9326&&_0x242a('0x49')!==this[_0x242a('0xbb')]){const _0x22756e=this['_suggestionFactory'][_0x242a('0x11a')](_0x242a('0x121'),_0x251a54,_0x242a('0x126'));return this[_0x242a('0x15')](()=>_0x22756e(_0xbb69a8,_0x5bfe40,_0x257ec6)),null;}const _0x2d38a5=this['editor'][_0x242a('0x29')][_0x242a('0xa6')](_0x242a('0x11c'))['me'];for(const _0x5ba649 of this[_0x242a('0x67')]()){if(_0x5ba649[_0x242a('0x3d')]['id']!=_0x2d38a5['id'])continue;if(_0x242a('0x121')!=_0x5ba649[_0x242a('0x9f')]||_0x5ba649[_0x242a('0x41')]['formatGroupId']!=_0x5bfe40[_0x242a('0x9b')])continue;const _0x550b8c=_0x5ba649[_0x242a('0xd2')]==_0x251a54;for(let _0x3ad4ae=0x0;_0x3ad4ae<_0xbb69a8[_0x242a('0xf8')];_0x3ad4ae++){const _0x479663=_0xbb69a8[_0x3ad4ae];for(const _0x29b97e of _0x5ba649['getMarkers']()){const _0x281695=_0x29b97e[_0x242a('0x88')]();if(_0x479663[_0x242a('0x8c')](_0x281695)){_0x550b8c?(_0xbb69a8[_0x242a('0x120')](_0x3ad4ae,0x1),_0x3ad4ae--):_0x5ba649[_0x242a('0x78')](_0x29b97e[_0x242a('0x2b')]);break;}}}}if(0x0==_0xbb69a8[_0x242a('0xf8')])return null;const _0x15b323=this[_0x242a('0xf9')]['getSuggestionCallback']('formatBlock',_0x251a54,_0x242a('0x2e'));for(const _0x3a9958 of this[_0x242a('0x67')]())if(_0x3a9958[_0x242a('0x3d')]['id']==_0x2d38a5['id']&&_0x242a('0x121')==_0x3a9958[_0x242a('0x9f')]&&_0x3a9958[_0x242a('0x41')][_0x242a('0x9b')]==_0x5bfe40[_0x242a('0x9b')]&&_0x3a9958[_0x242a('0xd2')]==_0x251a54&&(_0x15b323(_0x3a9958[_0x242a('0x6c')](),_0xbb69a8)||_0x15b323(_0xbb69a8,_0x3a9958['getRanges']()))){for(const _0x4bb4be of _0xbb69a8)_0x3a9958[_0x242a('0x1b')](_0x4bb4be);return _0x3a9958;}const _0x3a2fca=_0x50270d(),_0x5b34b8=_0x2d38a5['id'],_0xd83ee0=_0x242a('0x139')+_0x251a54,_0x2a182f=this[_0x242a('0x12f')]({'id':_0x3a2fca,'type':_0xd83ee0,'data':_0x5bfe40,'createdAt':new Date(),'authorId':_0x5b34b8,'attributes':_0x257ec6});for(const _0x47e3b0 of _0xbb69a8)this['_addSuggestionMarker'](_0xd83ee0,_0x3a2fca,_0x5b34b8,_0x47e3b0,_0x150878[_0x242a('0x7f')]());return _0x2a182f;}[_0x242a('0xa8')](_0x4a6b87,_0x152d64=null,_0x5176ab={}){if(_0x4a6b87[_0x242a('0x106')])return null;const _0x2228f9=this['editor'][_0x242a('0x29')][_0x242a('0xa6')](_0x242a('0x11c'))['me'],_0x3f549d=new _0x28ee27(_0x4a6b87[_0x242a('0x2a')],_0x4a6b87[_0x242a('0xc0')]);for(const {suggestion:_0x6afcdb,meta:_0x55cddb}of this['_findSuggestions'](_0x3f549d,_0x242a('0x130')))if(_0x55cddb[_0x242a('0x127')]&&!_0x55cddb['isNextTo']){if(_0x6afcdb[_0x242a('0xbc')]){const _0x48b8aa=_0x6afcdb['getRanges']()[_0x242a('0x8d')](_0x24a960=>_0x242a('0x8')!=_0x24a960[_0x242a('0x10b')][_0x242a('0x71')]);_0x48b8aa[_0x242a('0xee')](_0x203514=>_0x3f549d[_0x242a('0xd')](_0x203514,!0x0))&&_0x6afcdb[_0x242a('0xa4')]();if(_0x48b8aa[_0x242a('0xda')](_0x42982d=>_0x42982d['containsRange'](_0x3f549d,!0x0))){const _0x586644=this[_0x242a('0xf9')][_0x242a('0x11a')](_0x242a('0x122'),_0x152d64,'accept');return this[_0x242a('0x15')](()=>_0x586644([_0x3f549d],null,_0x5176ab)),null;}}else{const _0x2c2334=_0x3f549d[_0x242a('0x110')](_0x6afcdb[_0x242a('0xe7')]());null!==_0x2c2334&&_0x6afcdb[_0x242a('0x24')]([_0x2c2334],null,_0x5176ab);}}if(_0x3f549d[_0x242a('0x7a')](),_0x3f549d[_0x242a('0x106')]||_0x242a('0x8')==_0x3f549d[_0x242a('0x10b')][_0x242a('0x71')])return null;let _0x4a94aa=null,_0x536541=_0x3f549d[_0x242a('0x2a')],_0x298bbe=_0x3f549d['end'];for(const {suggestion:_0x13f5ef,meta:_0x412d8b}of this['_findSuggestions'](_0x3f549d,_0x242a('0x122')))if(_0x412d8b[_0x242a('0x127')]){if(_0x13f5ef[_0x242a('0xbc')]&&this[_0x242a('0xc8')]){let _0x12c253=!0x0;for(const _0x41d974 of _0x13f5ef['getRanges']()){if(_0x41d974[_0x242a('0xd')](_0x3f549d,!0x0))return _0x13f5ef;_0x3f549d[_0x242a('0xd')](_0x41d974)||(_0x12c253=!0x1);}_0x12c253&&_0x13f5ef[_0x242a('0xa4')]();}else{const _0x56b063=_0x13f5ef[_0x242a('0xe7')]();if(_0x56b063[_0x242a('0xd')](_0x3f549d,!0x0)){if(!this[_0x242a('0xc8')]&&_0x412d8b['containsRangeInObject'])continue;return _0x13f5ef;}_0x536541=_0x536541[_0x242a('0xc3')](_0x56b063[_0x242a('0x2a')])?_0x536541:_0x56b063[_0x242a('0x2a')],_0x298bbe=_0x298bbe[_0x242a('0xaf')](_0x56b063[_0x242a('0xc0')])?_0x298bbe:_0x56b063[_0x242a('0xc0')],_0x4a94aa?_0x56b063[_0x242a('0x2a')]['isBefore'](_0x4a94aa['getFirstRange']()[_0x242a('0x2a')])?(_0x4a94aa[_0x242a('0x12e')](),_0x4a94aa=_0x13f5ef):_0x13f5ef[_0x242a('0x12e')]():_0x4a94aa=_0x13f5ef;}}if(_0x4a94aa)return this[_0x242a('0xce')](_0x4a94aa,this[_0x242a('0xa3')][_0x242a('0x65')](_0x536541,_0x298bbe)),_0x4a94aa;{const _0x4b38c1=_0x50270d(),_0x1d5944=this[_0x242a('0xa3')]['createRange'](_0x536541,_0x298bbe),_0x321121=_0x2228f9['id'],_0xf7461e=_0x152d64?_0x242a('0x10a')+_0x152d64:_0x242a('0x122'),_0x319323=this[_0x242a('0x12f')]({'id':_0x4b38c1,'type':_0xf7461e,'createdAt':new Date(),'authorId':_0x321121,'attributes':_0x5176ab});return this[_0x242a('0x70')](_0xf7461e,_0x4b38c1,_0x321121,_0x1d5944),_0x319323;}}['markMultiRangeDeletion'](_0x1a737e,_0x5a2cb1=_0x242a('0x81'),_0xe2d9b2={}){const _0x346cea=this[_0x242a('0x27')][_0x242a('0x29')][_0x242a('0xa6')](_0x242a('0x11c'))['me'],_0x1dab51=_0x1a737e[_0x242a('0x50')](_0x59c1ed=>new _0x28ee27(_0x59c1ed[_0x242a('0x2a')],_0x59c1ed['end'])),_0x3bc6a4=new Set();for(const _0x8ede66 of _0x1dab51)for(const {suggestion:_0x1f4328,meta:_0x33c13f}of this[_0x242a('0xbf')](_0x8ede66,_0x242a('0x130')))_0x33c13f[_0x242a('0x127')]&&!_0x33c13f[_0x242a('0x5d')]&&_0x3bc6a4['add'](_0x1f4328);for(const _0x34d454 of _0x3bc6a4)if(_0x34d454['isMultiRange']){const _0x35e0f3=_0x34d454['getRanges']();(!_0x34d454[_0x242a('0x85')]||!_0x34d454[_0x242a('0x85')]['skipNestingCheck'])&&(_0x35e0f3['every'](_0x446bae=>_0x1dab51[_0x242a('0xda')](_0x29f0a4=>_0x29f0a4[_0x242a('0xd')](_0x446bae,!0x0)))&&_0x34d454['discard']());if(_0x1dab51[_0x242a('0xee')](_0xf6b6d9=>_0x35e0f3[_0x242a('0xda')](_0x7b4ecb=>_0x7b4ecb[_0x242a('0xd')](_0xf6b6d9,!0x0)))){const _0x41a720=this[_0x242a('0xf9')][_0x242a('0x11a')]('deletion',_0x5a2cb1,_0x242a('0x126'));return this[_0x242a('0x15')](()=>_0x41a720(_0x1a737e,null,_0xe2d9b2)),null;}}else{const _0x3aec73=_0x34d454[_0x242a('0xe7')]();_0x1dab51['some'](_0x486929=>_0x486929[_0x242a('0xd')](_0x3aec73,!0x0))&&_0x34d454[_0x242a('0xa4')]();if(_0x1dab51['every'](_0x4588e0=>_0x3aec73['containsRange'](_0x4588e0,!0x0))){const _0x375d29=this[_0x242a('0xf9')][_0x242a('0x11a')](_0x242a('0x122'),_0x5a2cb1,'accept');return this[_0x242a('0x15')](()=>_0x375d29(_0x1dab51,null,_0xe2d9b2)),null;}}const _0x22d537=this[_0x242a('0xf9')][_0x242a('0x11a')](_0x242a('0x122'),_0x5a2cb1,_0x242a('0x2e'));let _0x3a7477=null;for(const _0x322829 of this[_0x242a('0x67')]())if(_0x322829[_0x242a('0x3d')]['id']==_0x346cea['id']&&_0x322829[_0x242a('0xe6')]&&_0x242a('0x122')==_0x322829['type']&&_0x322829[_0x242a('0xd2')]==_0x5a2cb1&&(_0x22d537(_0x322829[_0x242a('0x6c')](),_0x1dab51)||_0x22d537(_0x1dab51,_0x322829[_0x242a('0x6c')]()))){if(_0x3a7477){if(_0x322829[_0x242a('0xed')]&&_0x322829[_0x242a('0xed')][_0x242a('0xf8')])continue;for(const _0x740504 of _0x322829[_0x242a('0x6c')]())_0x3a7477[_0x242a('0x13e')](_0x740504)||_0x3a7477[_0x242a('0x1b')](_0x740504);_0x322829[_0x242a('0x12e')]();}else{_0x3a7477=_0x322829;for(const _0x4713cb of _0x1dab51)_0x322829[_0x242a('0x13e')](_0x4713cb)||_0x322829['addRange'](_0x4713cb);}}if(_0x3a7477)return _0x3a7477;_0x3bc6a4['clear']();for(const _0x60ad0b of _0x1dab51)for(const {suggestion:_0x389083,meta:_0x25fde8}of this['_findSuggestions'](_0x60ad0b,_0x242a('0x122')))_0x25fde8[_0x242a('0x127')]&&_0x3bc6a4[_0x242a('0x13b')](_0x389083);for(const _0xae6267 of _0x3bc6a4){const _0x507f33=_0xae6267[_0x242a('0x6c')]();if(!_0xe2d9b2||!_0xe2d9b2['skipNestingCheck']){if(_0x1dab51[_0x242a('0xee')](_0x42cb54=>_0x507f33[_0x242a('0xda')](_0x58b6bf=>_0x58b6bf[_0x242a('0xd')](_0x42cb54,!0x0))))return _0xae6267;}(!_0xae6267[_0x242a('0x85')]||!_0xae6267[_0x242a('0x85')][_0x242a('0x56')])&&(_0x507f33['every'](_0xeacc9=>_0x1dab51[_0x242a('0xda')](_0xa139cf=>_0xa139cf[_0x242a('0xd')](_0xeacc9,!0x0)))&&_0xae6267[_0x242a('0xa4')]());}const _0x35ff2f=_0x50270d(),_0x46ee7f=_0x346cea['id'],_0x27e688=_0x242a('0x10a')+_0x5a2cb1,_0x4e56db=this[_0x242a('0x12f')]({'id':_0x35ff2f,'type':_0x27e688,'createdAt':new Date(),'authorId':_0x46ee7f,'attributes':_0xe2d9b2});for(const _0x451e48 of _0x1dab51)_0x451e48[_0x242a('0x7a')](),_0x451e48[_0x242a('0x106')]||_0x242a('0x8')==_0x451e48[_0x242a('0x10b')][_0x242a('0x71')]||this[_0x242a('0x70')](_0x27e688,_0x35ff2f,_0x46ee7f,_0x451e48,_0x150878[_0x242a('0x7f')]());return _0x4e56db;}['_setSuggestionRange'](_0x445840,_0xaa140a){const _0x517c0=_0x445840[_0x242a('0xc7')]();this[_0x242a('0xa3')]['change'](_0x1827d8=>{_0x1827d8[_0x242a('0x2f')](_0x517c0,{'range':_0xaa140a});});}[_0x242a('0x4f')](_0x3b42c2){const _0x5f5c0b=_0x3b42c2['id'],_0x12cae2=this[_0x242a('0x27')]['config']['get'](_0x242a('0x109'));this[_0x242a('0x13')][_0x242a('0xb1')](_0x5f5c0b)||this[_0x242a('0x13')][_0x242a('0x6b')]({'channelId':_0x12cae2,'threadId':_0x5f5c0b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x322879=this[_0x242a('0x13')]['getCommentThread'](_0x5f5c0b);_0x322879[_0x242a('0x105')]('isRemovable'),_0x322879[_0x242a('0x5a')]=!0x1,_0x3b42c2[_0x242a('0xed')]=_0x322879;}[_0x242a('0xe3')](_0x4a8f3c,_0x6929f5,_0x2341ed,_0x1251fc){if(_0x4a8f3c['type']!=_0x6929f5||_0x4a8f3c[_0x242a('0xd2')]!=_0x2341ed||_0x4a8f3c[_0x242a('0x9a')]['id']!=_0x1251fc)throw this['editor'][_0x242a('0x66')]('track-changes-suggestion-data-mismatch'),new _0x4b5b77(_0x242a('0x96'),this);}['_cutOutSuggestionMarker'](_0x436510,_0xb4f800){const _0x380d69=_0x436510[_0x242a('0xe7')]();if(_0xb4f800[_0x242a('0x8c')](_0x380d69))_0x436510[_0x242a('0x12e')]();else{if(_0x380d69[_0x242a('0xd')](_0xb4f800)){const _0x493554=this[_0x242a('0xa3')]['createPositionAt'](_0xb4f800[_0x242a('0x2a')][_0x242a('0x5b')],_0x242a('0xc0'));this[_0x242a('0xce')](_0x436510,this['_model'][_0x242a('0x65')](_0x380d69[_0x242a('0x2a')],_0x493554));const _0x579b62=_0x50270d(),_0x5a889c=_0x436510[_0x242a('0x9a')]['id'],_0x17f696=_0x436510[_0x242a('0x9f')]+':'+_0x436510[_0x242a('0xd2')];this[_0x242a('0x12f')]({'id':_0x579b62,'type':_0x17f696,'createdAt':new Date(),'authorId':_0x5a889c,'data':_0x436510['data'],'attributes':_0x436510[_0x242a('0x85')]});const _0x20f6d5=this['_model']['createPositionAt'](_0xb4f800[_0x242a('0xc0')][_0x242a('0x11e')],_0x242a('0x13d')),_0x1d059c=this[_0x242a('0xa3')][_0x242a('0x65')](_0x20f6d5,_0x380d69[_0x242a('0xc0')]);this['_addSuggestionMarker'](_0x17f696,_0x579b62,_0x5a889c,_0x1d059c);}else{if(_0x380d69[_0x242a('0x90')](_0xb4f800[_0x242a('0x2a')])){const _0x2ea94a=this['_model'][_0x242a('0x80')](_0xb4f800[_0x242a('0x2a')]['nodeBefore'],_0x242a('0xc0'));this[_0x242a('0xce')](_0x436510,this['_model']['createRange'](_0x380d69['start'],_0x2ea94a));}else{const _0x3e72fc=this['_model'][_0x242a('0x80')](_0xb4f800[_0x242a('0xc0')][_0x242a('0x11e')],_0x242a('0x13d'));this[_0x242a('0xce')](_0x436510,this[_0x242a('0xa3')]['createRange'](_0x3e72fc,_0x380d69['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x16b218){for(const {suggestion:_0x4f5de5,meta:_0x59a984}of this['_findSuggestions'](_0x16b218,_0x242a('0x130'))){if(!_0x59a984[_0x242a('0x127')])continue;const _0x11af91=_0x4f5de5[_0x242a('0x6c')]();for(const _0x5ee37a of _0x11af91)if(!_0x16b218['getDifference'](_0x5ee37a)['length'])return!0x0;}return!0x1;}[_0x242a('0x19')](_0x442da2){const _0x4b7cdf=this[_0x242a('0x27')]['plugins'][_0x242a('0xa6')]('Users')[_0x242a('0x33')](_0x442da2);if(!_0x4b7cdf)throw new _0x4b5b77(_0x242a('0xdb'),this);return _0x4b7cdf;}[_0x242a('0x114')](_0x494680){const _0x3bd584=this[_0x242a('0x27')][_0x242a('0x29')][_0x242a('0xa6')](_0x242a('0x11c')),_0x3a98bd=_0x100806(_0x242a('0x92')+_0x494680),_0x25c26d=_0x3bd584[_0x242a('0x33')](_0x3a98bd);return _0x25c26d||_0x3bd584['addUser']({'id':_0x3a98bd,'name':_0x494680});}[_0x242a('0xe0')](_0x3e5939,_0x9dbba,_0x154698,_0x39d48a,_0x9f4095){const _0x490ec3=this[_0x242a('0x19')](_0x39d48a),_0x361efa=this[_0x242a('0xf9')]['buildSuggestion'](_0x3e5939,_0x9dbba,_0x154698,_0x490ec3,_0x9f4095,_0x1dec68=>this[_0x242a('0x7b')](_0x154698,{'attributes':_0x1dec68}));return this[_0x242a('0x91')](_0x361efa,_0x242a('0x126'),()=>{this[_0x242a('0x7b')](_0x154698,{'state':_0x242a('0xd7')});},{'priority':'high'}),this[_0x242a('0x91')](_0x361efa,_0x242a('0xa4'),()=>{this[_0x242a('0x7b')](_0x154698,{'state':_0x242a('0x4b')});},{'priority':_0x242a('0x10')}),this['_suggestions']['set'](_0x154698,_0x361efa),this[_0x242a('0xa7')][_0x242a('0x7e')](_0x361efa,'notReady'),_0x361efa;}[_0x242a('0x1c')](_0x56e014){const _0x160c78=_0x56e014[_0x242a('0x95')](':');return{'group':_0x160c78[0x0],'type':_0x160c78[0x1],'subType':_0x160c78[_0x242a('0xf8')]>=0x5?_0x160c78[0x2]:null,'id':_0x160c78[_0x242a('0xf8')]<0x5?_0x160c78[0x2]:_0x160c78[0x3],'authorId':_0x160c78[_0x242a('0xf8')]<0x5?_0x160c78[0x3]:_0x160c78[0x4],'markerCount':0x6==_0x160c78['length']?_0x160c78[0x5]:null};}[_0x242a('0xdf')](_0x5aa69b,_0x5625cf,_0x13c390){const _0x3c5ed7=_0x5aa69b[_0x242a('0xe7')](),_0xde074b=_0x3c5ed7[_0x242a('0x2a')],_0x52030c=_0x3c5ed7[_0x242a('0xc0')];this[_0x242a('0xce')](_0x5aa69b,this[_0x242a('0xa3')][_0x242a('0x65')](_0xde074b,_0x5625cf));const _0x58c0a2=_0x50270d(),_0x53dd1a=_0x5aa69b[_0x242a('0x9a')]['id'],_0x551d0f=_0x5aa69b[_0x242a('0x9f')]+(_0x5aa69b[_0x242a('0xd2')]?':'+_0x5aa69b[_0x242a('0xd2')]:'');this[_0x242a('0x12f')]({'id':_0x58c0a2,'type':_0x551d0f,'createdAt':new Date(),'authorId':_0x53dd1a,'originalSuggestionId':_0x5aa69b['id'],'attributes':_0x5aa69b[_0x242a('0x85')],'data':_0x5aa69b[_0x242a('0x41')]}),_0x242a('0x121')==_0x5aa69b[_0x242a('0x9f')]&&(_0x13c390=this[_0x242a('0xa3')][_0x242a('0xd5')](_0x13c390[_0x242a('0x11e')])),this[_0x242a('0x70')](_0x551d0f,_0x58c0a2,_0x53dd1a,this[_0x242a('0xa3')][_0x242a('0x65')](_0x13c390,_0x52030c));}[_0x242a('0xbf')](_0x2b8cc2,_0x16ca73=null){const _0x4c5b08=[],_0x1187b9=this[_0x242a('0xa3')]['schema'],_0xa21803=this[_0x242a('0x27')]['plugins']['get'](_0x242a('0x11c'))['me'];for(const _0x32dcb2 of this[_0x242a('0x67')]())if(_0x32dcb2[_0x242a('0xe6')]&&(!_0x16ca73||_0x32dcb2['type']==_0x16ca73))for(const _0x25f40b of _0x32dcb2[_0x242a('0x6c')]()){const _0xba98d8=_0x2b8cc2[_0x242a('0x2a')][_0x242a('0x8c')](_0x25f40b[_0x242a('0xc0')])||_0x2b8cc2[_0x242a('0xc0')][_0x242a('0x8c')](_0x25f40b[_0x242a('0x2a')]);if(_0xba98d8||_0x2b8cc2[_0x242a('0x110')](_0x25f40b)){const _0x3cda17=_0x2b8cc2[_0x242a('0xd')](_0x25f40b)&&Bt(_0x1187b9,_0x25f40b[_0x242a('0x2a')],_0x2b8cc2),_0x337fe3=_0x25f40b[_0x242a('0xd')](_0x2b8cc2)&&Bt(_0x1187b9,_0x2b8cc2[_0x242a('0x2a')],_0x25f40b);_0x4c5b08[_0x242a('0xb5')]({'suggestion':_0x32dcb2,'meta':{'isOwn':_0xa21803==_0x32dcb2[_0x242a('0x3d')],'isNextTo':_0xba98d8,'isInsideObject':_0x3cda17,'containsRangeInObject':_0x337fe3}});break;}}return _0x4c5b08;}[_0x242a('0x70')](_0x410d4c,_0x26f4c8,_0x504732,_0x522b24,_0x3c68df){this['_model'][_0x242a('0x26')](_0xb0e9ab=>{let _0x4a5b29=_0x242a('0xc6')+_0x410d4c+':'+_0x26f4c8+':'+_0x504732;_0x3c68df&&(_0x4a5b29=_0x4a5b29+':'+_0x3c68df),_0xb0e9ab[_0x242a('0xe5')](_0x4a5b29,{'range':_0x522b24,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x242a('0x63')](_0x4116ed){const _0x4e15b2=_0x4116ed[_0x242a('0x2c')],_0x482629=_0x4116ed[_0x242a('0xb8')];_0x4116ed[_0x242a('0x2c')]=null,null!=_0x4e15b2&&(_0x4e15b2['next']=null),_0x4116ed[_0x242a('0xb8')]=null,null!=_0x482629&&(_0x482629['previous']=null),_0x242a('0x6a')==this[_0x242a('0xa7')]['get'](_0x4116ed)&&(this['_suggestionState'][_0x242a('0x7e')](_0x4116ed,'removed'),this[_0x242a('0x124')]('suggestionUnloaded',_0x4116ed,_0x4e15b2,_0x482629));}[_0x242a('0x12f')](_0x95bb48){const _0x228da4=_0x95bb48['id'],_0x1e463=this[_0x242a('0x12a')](_0x95bb48);if(this['_adapter']&&this[_0x242a('0xc4')][_0x242a('0x39')]){const _0x43deda=this[_0x242a('0x27')][_0x242a('0x29')]['get'](_0x242a('0x13f')),_0x116e65=_0x1e463[_0x242a('0x59')],_0x49c208=_0x1e463[_0x242a('0xd2')]?_0x1e463['type']+':'+_0x1e463[_0x242a('0xd2')]:_0x1e463[_0x242a('0x9f')],_0x25386c=this[_0x242a('0x27')][_0x242a('0x7')],_0x69e41c=_0x43deda[_0x242a('0x13b')](_0x4293a4(_0x25386c,_0x242a('0x1'))),_0xd91a36={'id':_0x228da4,'type':_0x49c208,'hasComments':_0x116e65,'data':_0x95bb48[_0x242a('0x41')]||null,'originalSuggestionId':_0x95bb48['originalSuggestionId']||null,'attributes':_0x1e463['attributes']};this[_0x242a('0xc4')]['addSuggestion'](_0xd91a36)['then'](_0x33c2e7=>{_0x1e463['_saved']=!0x0,_0x43deda[_0x242a('0x93')](_0x69e41c),_0x33c2e7&&_0x33c2e7[_0x242a('0x68')]&&(this[_0x242a('0xb9')][_0x242a('0xa6')](_0x228da4)[_0x242a('0x68')]=_0x33c2e7[_0x242a('0x68')]);})['catch'](_0x597046=>{throw _0x19115c('error-saving-suggestion-data-suggestion-discarded'),this['editor'][_0x242a('0xe4')][_0x242a('0xe8')]({'isUndoable':!0x1},()=>{_0x1e463[_0x242a('0xa4')]();}),_0x1e463['stopListening'](),this[_0x242a('0xb9')][_0x242a('0x116')](_0x1e463['id']),this[_0x242a('0xa7')][_0x242a('0x116')](_0x1e463),_0x597046;});}return _0x1e463;}[_0x242a('0x7b')](_0x23987b,_0xd03755){const _0x3bd4bc=this[_0x242a('0x27')]['plugins']['get'](_0x242a('0x13f')),_0x512589=this[_0x242a('0x134')](_0x23987b);if(this[_0x242a('0xc4')]&&this[_0x242a('0xc4')][_0x242a('0xcf')]){if(_0x512589[_0x242a('0x73')]){const _0x1175a4=_0x3bd4bc[_0x242a('0x13b')](_0x4293a4(this[_0x242a('0x27')][_0x242a('0x7')],_0x242a('0x1')));this[_0x242a('0xc4')][_0x242a('0xcf')](_0x23987b,_0xd03755)['then'](()=>{_0x3bd4bc[_0x242a('0x93')](_0x1175a4);});}else _0x512589['on'](_0x242a('0x84'),()=>{this[_0x242a('0x7b')](_0x23987b,_0xd03755);});}}[_0x242a('0xef')](_0x13a26b){if(!this[_0x242a('0xc4')]||!this[_0x242a('0xc4')]['getSuggestion'])throw new _0x4b5b77(_0x242a('0x77'),this);return this['_adapter'][_0x242a('0x134')](_0x13a26b);}[_0x242a('0x117')](_0x29af79){const {id:_0x29a991,type:_0x1e5ea8,subType:_0x5a7933,authorId:_0x3b13f0}=this['_splitMarkerName'](_0x29af79),_0x4860fc=this[_0x242a('0xb9')]['get'](_0x29a991)||this[_0x242a('0xe0')](_0x1e5ea8,_0x5a7933,_0x29a991,_0x3b13f0,{});switch(this['_checkSuggestionCorrectness'](_0x4860fc,_0x1e5ea8,_0x5a7933,_0x3b13f0),this[_0x242a('0xa7')][_0x242a('0xa6')](_0x4860fc)){case _0x242a('0xd3'):this[_0x242a('0xef')](_0x29a991)[_0x242a('0xd4')](_0x5ccce1=>{let _0x35a88f=Promise[_0x242a('0x10c')]();_0x5ccce1[_0x242a('0x59')]&&(_0x35a88f=this[_0x242a('0x13')][_0x242a('0xde')]({'channelId':this[_0x242a('0x27')][_0x242a('0x97')][_0x242a('0xa6')]('collaboration.channelId'),'threadId':_0x29a991})),_0x35a88f[_0x242a('0xd4')](()=>{this[_0x242a('0x12a')](_0x5ccce1)[_0x242a('0x73')]=!0x0;});}),this[_0x242a('0xa7')][_0x242a('0x7e')](_0x4860fc,_0x242a('0xb0'));break;case'removed':this['_updateSuggestionData'](_0x29a991,{'state':_0x242a('0x5f')});case _0x242a('0x7c'):this['_suggestionState'][_0x242a('0x7e')](_0x4860fc,_0x242a('0x6a')),this[_0x242a('0x124')](_0x242a('0xac'),_0x4860fc);break;case _0x242a('0x6a'):this[_0x242a('0x124')]('suggestionChanged',_0x4860fc);}return _0x4860fc[_0x242a('0x79')](_0x29af79),_0x4860fc;}['_refreshSuggestionsChain'](_0x4f6354){const _0x4cc033=Array['from'](_0x4f6354)[_0x242a('0x8d')](_0x3ad373=>!_0x3ad373['isMultiRange']),_0x1b9dd8=this[_0x242a('0x67')]({'skipNotAttached':!0x0})['filter'](_0x780ce7=>!_0x780ce7[_0x242a('0xbc')]),_0x5a4d2=_0x1b9dd8[_0x242a('0x8d')](_0x5498f2=>!_0x4f6354['has'](_0x5498f2)),_0x374aee=new Map(_0x1b9dd8[_0x242a('0x50')](_0x28bce5=>[_0x28bce5,this[_0x242a('0xf9')][_0x242a('0x11a')](_0x28bce5['type'],_0x28bce5[_0x242a('0xd2')],_0x242a('0xfe'))])),_0xb7590e=new Map(_0x1b9dd8[_0x242a('0x50')](_0x36cd97=>[_0x36cd97,_0x36cd97['getFirstRange']()])),_0x2fa34d=new Set(),_0x25661c=new Set();for(let _0x4e3474=0x0;_0x4e3474<_0x4cc033[_0x242a('0xf8')];_0x4e3474++)_0x2287e5(_0x4cc033[_0x4e3474],_0x4cc033,_0x4e3474+0x1);for(let _0xfb52c1=0x0;_0xfb52c1<_0x4cc033[_0x242a('0xf8')];_0xfb52c1++)_0x2287e5(_0x4cc033[_0xfb52c1],_0x5a4d2,0x0);for(let _0x428c9b=0x0;_0x428c9b<_0x4cc033[_0x242a('0xf8')];_0x428c9b++){const _0x239bdf=_0x4cc033[_0x428c9b];!_0x25661c[_0x242a('0x131')](_0x239bdf)&&_0x239bdf[_0x242a('0x2c')]&&(_0x239bdf['previous'][_0x242a('0xb8')]===_0x239bdf&&(_0x239bdf[_0x242a('0x2c')][_0x242a('0xb8')]=null),_0x239bdf[_0x242a('0x2c')]=null),!_0x2fa34d[_0x242a('0x131')](_0x239bdf)&&_0x239bdf[_0x242a('0xb8')]&&(_0x239bdf[_0x242a('0xb8')]['previous']===_0x239bdf&&(_0x239bdf[_0x242a('0xb8')][_0x242a('0x2c')]=null),_0x239bdf[_0x242a('0xb8')]=null);}function _0x2287e5(_0x2cf66e,_0x3f625a,_0x89d6c){for(let _0x2b917c=_0x89d6c;_0x2b917c<_0x3f625a[_0x242a('0xf8')];_0x2b917c++){const _0x2b119f=_0x1ed496(_0x2cf66e,_0x3f625a[_0x2b917c]);_0x2b119f&&(_0x2b119f[0x0][_0x242a('0xb8')]=_0x2b119f[0x1],_0x2b119f[0x1]['previous']=_0x2b119f[0x0],_0x2fa34d[_0x242a('0x13b')](_0x2b119f[0x0]),_0x25661c[_0x242a('0x13b')](_0x2b119f[0x1]));}}function _0x1ed496(_0x8e02ad,_0x4e3926){if(_0x8e02ad[_0x242a('0x3d')]['id']!==_0x4e3926['author']['id'])return null;const _0x2c1122=_0x374aee['get'](_0x8e02ad)(_0x8e02ad,_0x4e3926,_0xb7590e['get'](_0x8e02ad),_0xb7590e[_0x242a('0xa6')](_0x4e3926));if(!_0x2c1122)return null;return _0x374aee[_0x242a('0xa6')](_0x4e3926)(_0x8e02ad,_0x4e3926,_0xb7590e[_0x242a('0xa6')](_0x8e02ad),_0xb7590e[_0x242a('0xa6')](_0x4e3926))?_0x2c1122[0x1][_0x242a('0xed')]&&_0x2c1122[0x1][_0x242a('0xed')][_0x242a('0xf8')]?null:_0x2c1122:null;}}[_0x242a('0xbd')](_0x2cea2b){const _0x1322f0=Array[_0x242a('0x60')](_0x2cea2b),_0x48f5aa=this['getSuggestions']({'skipNotAttached':!0x0}),_0xd6f29=_0x48f5aa[_0x242a('0x8d')](_0x5dd2b5=>!_0x2cea2b['has'](_0x5dd2b5)),_0x53a33f=new Map(_0x1322f0[_0x242a('0x50')](_0x1aeb3c=>[_0x1aeb3c,this[_0x242a('0xf9')]['getSuggestionCallback'](_0x1aeb3c[_0x242a('0x9f')],_0x1aeb3c[_0x242a('0xd2')],_0x242a('0x2e'))])),_0x3749d1=new Map(_0x48f5aa[_0x242a('0x50')](_0x4f5e04=>[_0x4f5e04,_0x4f5e04[_0x242a('0x6c')]()]));for(let _0x42529e=0x0;_0x42529e<_0x1322f0[_0x242a('0xf8')];_0x42529e++){if(_0x2cd91f(this,_0x1322f0[_0x42529e],_0x1322f0,_0x42529e+0x1))return!0x0;}for(let _0x29266e=0x0;_0x29266e<_0x1322f0[_0x242a('0xf8')];_0x29266e++){if(_0x2cd91f(this,_0x1322f0[_0x29266e],_0xd6f29,0x0))return!0x0;}return!0x1;function _0x2cd91f(_0x202f08,_0x114e01,_0x40f9bc,_0x69c990){for(let _0x572928=_0x69c990;_0x572928<_0x40f9bc[_0x242a('0xf8')];_0x572928++){const _0x10ecb3=_0x40f9bc[_0x572928];if(_0x10ecb3['type']!==_0x114e01[_0x242a('0x9f')]||_0x10ecb3[_0x242a('0x3d')]['id']!==_0x114e01[_0x242a('0x3d')]['id']||_0x10ecb3[_0x242a('0xd2')]!==_0x114e01[_0x242a('0xd2')])continue;const _0x302502=_0x53a33f[_0x242a('0xa6')](_0x114e01),_0x100751=_0x3749d1[_0x242a('0xa6')](_0x114e01),_0x239369=_0x3749d1[_0x242a('0xa6')](_0x10ecb3),_0xad194e=_0x114e01[_0x242a('0xed')]&&_0x114e01[_0x242a('0xed')]['length'],_0x2cc053=_0x10ecb3[_0x242a('0xed')]&&_0x10ecb3[_0x242a('0xed')][_0x242a('0xf8')];if(!_0xad194e&&_0x302502(_0x239369,_0x100751))return _0x202f08['_joinSuggestions'](_0x10ecb3,_0x114e01),_0x3749d1[_0x242a('0x116')](_0x114e01),!0x0;if(!_0x2cc053&&_0x302502(_0x100751,_0x239369))return _0x202f08[_0x242a('0xe2')](_0x114e01,_0x10ecb3),_0x3749d1[_0x242a('0x116')](_0x10ecb3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x57ec63,_0x255cc9){if(_0x57ec63['isMultiRange'])for(const _0x4454dd of _0x255cc9['getRanges']())_0x57ec63[_0x242a('0x1b')](_0x4454dd);else{const _0x360f28=_0x255cc9[_0x242a('0xe7')]()[_0x242a('0xc0')];this[_0x242a('0xce')](_0x57ec63,this[_0x242a('0xa3')][_0x242a('0x65')](_0x57ec63[_0x242a('0xe7')]()[_0x242a('0x2a')],_0x360f28));}_0x255cc9[_0x242a('0x12e')]();}}class Dt{constructor(_0x5b540a){this[_0x242a('0xf')]=_0x5b540a,this[_0x242a('0xa3')]=_0x5b540a[_0x242a('0xe4')],this[_0x242a('0x12c')]=new Map(),this[_0x242a('0xb')]=new Map(),this[_0x242a('0x42')]();}[_0x242a('0x86')](_0x53ee08,_0x2e5d4d,_0x42f4b2,_0x3bd57f,_0x167509,_0x1b9335){return new _0x150878(this['_model'],{'type':_0x53ee08,'subType':_0x2e5d4d,'id':_0x42f4b2,'author':_0x3bd57f,'creator':_0x3bd57f,'attributes':_0x167509,'onAttributesChange':_0x1b9335,'onAccept':(..._0x40b844)=>this['getSuggestionCallback'](_0x53ee08,_0x2e5d4d,_0x242a('0x126'))(..._0x40b844),'onDiscard':(..._0x1c781b)=>this['getSuggestionCallback'](_0x53ee08,_0x2e5d4d,_0x242a('0xa4'))(..._0x1c781b)});}[_0x242a('0x37')](_0x97f591,_0x3748c2,_0x5b2aad,_0x5e6605){const _0x5b2298=_0x97f591+':'+_0x3748c2+':'+_0x5b2aad;this[_0x242a('0x12c')][_0x242a('0x7e')](_0x5b2298,_0x5e6605);}['getSuggestionCallback'](_0x3d1827,_0x1e528c,_0x5c132e){const _0x2158ae=_0x3d1827+':'+_0x1e528c+':'+_0x5c132e;return this[_0x242a('0x12c')][_0x242a('0xa6')](_0x2158ae)||this[_0x242a('0xb')][_0x242a('0xa6')](_0x3d1827+':'+_0x5c132e);}['_registerDefaultCallbacks'](){const _0x3173d6=()=>{},_0xbc7ad9=_0x31d144=>{_0x31d144[_0x242a('0x100')]((_0x33b6c9,_0x2d853b)=>_0x33b6c9['start'][_0x242a('0xc3')](_0x2d853b[_0x242a('0x2a')])?0x1:-0x1),this[_0x242a('0xa3')][_0x242a('0x26')](_0x591a8b=>{for(const _0x1eddd5 of _0x31d144){let _0x45c338;_0x45c338=_0x1eddd5[_0x242a('0xc0')][_0x242a('0x76')]&&_0x1eddd5[_0x242a('0xc0')]['parent']==_0x1eddd5[_0x242a('0x2a')][_0x242a('0xc1')]?_0x591a8b[_0x242a('0x21')](_0x1eddd5['start']['nodeAfter'],'on'):_0x591a8b[_0x242a('0x21')](_0x1eddd5),this['_model'][_0x242a('0xa')](_0x45c338,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x32166d=(_0x1380ea,_0x56318d)=>{this[_0x242a('0xa3')][_0x242a('0x26')](_0xbfb596=>{const {commandName:_0x4fd33f,commandParams:_0xc57151=[]}=_0x56318d,_0x13a406=_0x1380ea[_0x242a('0x50')](_0x4515a2=>(_t(_0x4515a2)&&(_0x4515a2=this[_0x242a('0xa3')][_0x242a('0x65')](_0x4515a2[_0x242a('0xc0')])),_0x4515a2))[_0x242a('0x8d')](_0x263730=>_0x242a('0x8')!==_0x263730[_0x242a('0x10b')]['rootName']);if(_0x13a406[_0x242a('0xf8')]<0x1)return;const _0x2517e5=Array[_0x242a('0x60')](this[_0x242a('0xa3')][_0x242a('0x35')][_0x242a('0x57')]['getRanges']())['map'](_0x4ccbac=>_0x28ee27[_0x242a('0xff')](_0x4ccbac));_0xbfb596[_0x242a('0xc')](_0x13a406);for(const _0x87cfdc of this['_editor'][_0x242a('0xb4')][_0x242a('0xb4')]())_0x87cfdc[_0x242a('0xae')]();_0xc57151['push']({'forceDefaultExecution':!0x0}),this[_0x242a('0xf')][_0x242a('0x137')](_0x4fd33f,..._0xc57151);const _0x4ec48b=_0x2517e5[_0x242a('0x8d')](_0x2f37db=>'$graveyard'!=_0x2f37db[_0x242a('0x10b')][_0x242a('0x71')]);_0x4ec48b[_0x242a('0xf8')]>0x0&&_0xbfb596['setSelection'](_0x4ec48b);for(const _0x14dfc0 of _0x2517e5)_0x14dfc0[_0x242a('0x7a')]();});},_0x458c19=(_0x4fca21,_0x574b6e)=>0x1==_0x4fca21['length']&&0x1==_0x574b6e[_0x242a('0xf8')]&&_0x4fca21[0x0]['end'][_0x242a('0x8c')](_0x574b6e[0x0][_0x242a('0x2a')]),_0x526037=(_0x34b550,_0x33e654,_0x704bf3,_0x160f44)=>xt(_0x34b550,_0x33e654,_0x704bf3,_0x160f44,this[_0x242a('0xa3')])?[_0x34b550,_0x33e654]:xt(_0x33e654,_0x34b550,_0x160f44,_0x704bf3,this[_0x242a('0xa3')])?[_0x33e654,_0x34b550]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3173d6),this[_0x242a('0xb')][_0x242a('0x7e')](_0x242a('0x48'),_0xbc7ad9),this[_0x242a('0xb')]['set'](_0x242a('0x4d'),_0x458c19),this[_0x242a('0xb')][_0x242a('0x7e')]('insertion:chain',_0x526037),this[_0x242a('0xb')][_0x242a('0x7e')](_0x242a('0x31'),_0xbc7ad9),this[_0x242a('0xb')][_0x242a('0x7e')](_0x242a('0xe9'),_0x3173d6),this[_0x242a('0xb')][_0x242a('0x7e')]('deletion:join',_0x458c19),this[_0x242a('0xb')][_0x242a('0x7e')](_0x242a('0x4c'),_0x526037),this[_0x242a('0xb')][_0x242a('0x7e')]('formatInline:accept',_0x32166d),this[_0x242a('0xb')]['set'](_0x242a('0x8f'),_0x3173d6),this['_defaultCallbacks']['set'](_0x242a('0x44'),_0x458c19),this[_0x242a('0xb')][_0x242a('0x7e')](_0x242a('0x12'),_0x3173d6),this['_defaultCallbacks'][_0x242a('0x7e')]('formatBlock:accept',_0x32166d),this[_0x242a('0xb')][_0x242a('0x7e')](_0x242a('0xf3'),_0x3173d6),this[_0x242a('0xb')][_0x242a('0x7e')](_0x242a('0x23'),_0x458c19),this['_defaultCallbacks'][_0x242a('0x7e')]('formatBlock:chain',_0x3173d6);}}function Bt(_0x56ec12,_0x28d883,_0x1c36e5){for(const _0x43a534 of _0x28d883[_0x242a('0x11e')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43a534[_0x242a('0x10b')]==_0x43a534)return!0x1;if(!_0x1c36e5[_0x242a('0xa1')](_0x43a534))return!0x1;if(_0x56ec12[_0x242a('0x82')](_0x43a534)||_0x56ec12[_0x242a('0x32')](_0x43a534))return!0x0;}return!0x1;}function _t(_0x4235c2){return _0x4235c2[_0x242a('0xc0')][_0x242a('0x11e')]==_0x4235c2[_0x242a('0x2a')]['nodeAfter']&&_0x4235c2[_0x242a('0xc0')][_0x242a('0xa0')];}function Mt(_0x56b137,_0x4c8918,_0x2cfbb6,_0x14e287){const _0x56226f=_0x2c93fb=>!_0x2c93fb[_0x242a('0x53')]['is'](_0x242a('0x75'))&&!_0x14e287[_0x242a('0x82')](_0x2c93fb['item']),_0x110529=_0x56b137[_0x242a('0x2a')][_0x242a('0xf7')](_0x56226f),_0x156f85=_0x56b137[_0x242a('0xc0')][_0x242a('0xf7')](_0x56226f,{'direction':_0x242a('0x83')});return(!_0x56b137[_0x242a('0x2a')]['isEqual'](_0x110529)||!_0x56b137[_0x242a('0xc0')][_0x242a('0x8c')](_0x156f85))&&(_0x110529[_0x242a('0xc3')](_0x156f85)?_0x2cfbb6[_0x242a('0x2f')](_0x4c8918,{'range':_0x2cfbb6[_0x242a('0x65')](_0x110529,_0x156f85)}):_0x2cfbb6[_0x242a('0x78')](_0x4c8918),!0x0);}function $t(_0x2a8870){return _0x100806(_0x2a8870);}function Nt(_0xf02787){const _0xc088a8=_0xf02787[_0x242a('0x2a')][_0x242a('0xc1')];return _0xc088a8&&_0xc088a8['is']('element');}function Rt(_0x35c487,_0x6cc5f6){const _0x3f26b5=_0x6cc5f6[_0x242a('0xec')]['isObject'](_0x35c487)||_0x6cc5f6[_0x242a('0xec')][_0x242a('0x5')](_0x35c487);return _0x6cc5f6[_0x242a('0x65')](_0x6cc5f6[_0x242a('0x80')](_0x35c487,'before'),_0x3f26b5?_0x6cc5f6[_0x242a('0x52')](_0x35c487):_0x6cc5f6['createPositionAt'](_0x35c487,'end'));}function xt(_0x36cde9,_0x2964bb,_0x2ca836,_0xc87f95,_0x32fe00){if(_0x2ca836[_0x242a('0xc0')][_0x242a('0x8c')](_0xc87f95['start']))return!0x0;if(_0x36cde9['type']!=_0x2964bb[_0x242a('0x9f')])return!0x1;if(!_0x2ca836[_0x242a('0xc0')][_0x242a('0x6d')](_0xc87f95['start']))return!0x1;const _0x280b39=_0x32fe00['createRange'](_0x2ca836[_0x242a('0xc0')],_0xc87f95[_0x242a('0x2a')])[_0x242a('0x36')]();for(const _0x83bc41 of _0x280b39)if([_0x242a('0x17'),'elementEnd'][_0x242a('0xcc')](_0x83bc41[_0x242a('0x9f')])&&_0x32fe00[_0x242a('0xec')][_0x242a('0x32')](_0x83bc41['item']))return!0x1;return!0x0;}
|
|
23
|
+
const _0x5596=['execute','editor','_rangeIsInLocalUserInsertion','markerNameToElements','buildSuggestion','suggestion:','clone','addSuggestionData','acceptSuggestion','formatBlock:accept','change','markers','getItems','_cutOutSuggestionMarker','_createSuggestion','never','formatInline','insertion:accept','containsRangeInObject','markInlineFormat','$graveyard','_model','clear','formatInline:join','registerCustomCallback','removeMarker','delete','isAtStart','attributes','_addSuggestionMarker','Users','high','lowest','@external','targetPosition','deletion:discard','hasComments','substr','rejected','$marker','change:data','toJSON','nodeAfter','createPositionAt','model','trackChanges.mergeNestedSuggestions','setAttribute','commentThread','markerToHighlight','_refreshSuggestionsChain','isLocal','getAttribute','_editor','pluginName','insertion:','getRange','change:activeMarkers','setSelection','data-suggestion','markerName','schema','_addThreadToSuggestion','_suggestionFactory','addSuggestion','removeComment','external:','getShiftedBy','getIntersection','_splitMarkerName','define','track-changes-adapter-already-set','discardAllSuggestions','PENDING_ACTION_SUGGESTION','error-saving-suggestion-data-suggestion-discarded','_adapter','isAfter','isNextTo','isEqual','marker-count','getNearestSelectionRange','document','rethrowUnexpectedError','then','CommentsRepository','_suggestionState','next','consumable','isAtEnd','trackChanges','_breakSuggestionMarker','markInsertion','set','editing','createRangeIn','addMarkerName','deletion','subType','ck-suggestion-marker','isExternal','_suggestions','oldRange','suggestionLoaded','deletion:join','dataDowncast','root','_getSuggestionData','plugins','position','removeMarkers','highest','filter','_findSuggestions','differ','documentSelection','default','batch','end','track-changes-adapter-missing-getsuggestion','change:_saved','formatBlock:discard','join','updateSuggestion','isIntersectingWithRange','getAllAdjacentSuggestions','removed','stopListening','hasCommentThread','trackChangesCommand','acceptAllSuggestions','sort','$textProxy','_checkSuggestionCorrectness','_trackFormatChanges','track-changes-suggestion-not-found','suggestion','removeMarker:suggestion:formatBlock','discard','addMarker:suggestion:formatBlock','insertion:discard','_customCallbacks','head','init','updateMarker','suggestionUnloaded','_setSuggestionData','createdAt','consume','normal','has','containsItem','return','resolve','getWalker','ck-suggestion-marker-','suggestion-type','size','catch','originalSuggestionId','isUndo','addMarker','after','getSuggestionCallback','trackChanges.trackFormatChanges','isMultiRange','track-changes-user-not-found','getChangedMarkers','collaboration.channelId','_registerDefaultCallbacks','activeMarkers','add','createPositionAfter','fetchCommentThread','_setSuggestionRange','discardSuggestion','_joinSuggestions','addClass','mapper','data','editingDowncast','addMarker:suggestion','locale','formatInline:discard','_isForcedDefaultExecutionBlock','_removeSuggestion','markMultiRangeInsertion','skipNestingCheck','elementEnd','setTo','authorName','showSuggestionHighlights','from','track-changes-suggestion-data-mismatch','splitPosition','forward','registerPostFixer','_handleNewSuggestionMarker','multipleBlocks','refresh','for','formatGroupId','previous','options','accept','isObject','discardSelectedSuggestions','backward','fire','_commentsRepository','getRanges','formatBlock:join','addHighlight','low','addUser','listenTo','reconvertMarker','getMultiRangeId','elementStart','formatBlock','markerToData','_saved','_joinWithAdjacentSuggestions','every','deleteContent','requires','isCollapsed','value','isRemovable','track-changes-command-not-found','get','parent','containsRange','length','push','_updateSuggestionData','formatBlock:','isInContent','isLimit','getCommentThread','map','containerElement','newRange','_mergeNestedSuggestions','formatInline:chain','markDeletion','multi','TrackChangesEditing','getFirstRange','type','getUser','howMany','some','item','isOwn','widget','toViewElement','creator','getSuggestions','applyOperation','conversion','config','insertion','enqueueChange','getSuggestion','nodeBefore','split','isBefore','_getAuthorFromId','dataReady','_enabledCommands','formatInline:','isBlock','removeAttribute','acceptSelectedSuggestions','ck-suggestion-marker-formatBlock','adapter','ready','isInsideObject','remove','getLastMatchingPosition','suggestionChanged','ck-suggestion-marker--active','unbindElementFromMarkerName','fromCharCode','detach','getAncestors','getChanges','deletion:','start','writer','splice','includes','formatBlock:chain','hasSuggestion','getDifference','name','upcast','addRange','notReady','stop','range','_getExternalAuthor','bindElementToMarker','element','accepted','author','unbind','isTouching','createSelection','_defaultCallbacks','insertContent','forceDefaultExecution','commands','_descriptionFactory','group','values','always','moveTargetPosition','insert','getCustomProperty','_onDiscard','move','deletion:accept','PendingActions','selection','rootName','fromRange','enableCommand','createRange'];(function(_0x4023d0,_0x55962e){const _0x31cce7=function(_0x276081){while(--_0x276081){_0x4023d0['push'](_0x4023d0['shift']());}};_0x31cce7(++_0x55962e);}(_0x5596,0x171));const _0x31cc=function(_0x4023d0,_0x55962e){_0x4023d0=_0x4023d0-0x0;let _0x31cce7=_0x5596[_0x4023d0];return _0x31cce7;};import{Plugin as _0x2587af,PendingActions as _0x4d9d32}from'ckeditor5/src/core';import{LiveRange as _0x2de0cb}from'ckeditor5/src/engine';import{CKEditorError as _0x168c56,uid as _0x21e5dd,priorities as _0x27c9e4,logWarning as _0x19389f}from'ckeditor5/src/utils';import{toWidget as _0x1c26f6}from'ckeditor5/src/widget';import{Users as _0x4e5fe2,hashObject as _0x6518e1}from'ckeditor5-collaboration/src/collaboration-core';import _0x83c70f from'./commands/trackchangescommand';import _0x209760 from'./commands/acceptsuggestioncommand';import _0x1c4c74 from'./commands/discardsuggestioncommand';import _0x1d1313 from'./commands/executeonallsuggestionscommand';import _0x5846c0 from'./commands/executeonselectedsuggestionscommand';import _0x5ba4b1 from'./suggestion';import _0x57b386 from'./suggestiondescriptionfactory';import _0x2b70ad from'./integrations/alignment';import _0x24d613 from'./integrations/basicstyles';import _0x4b07c0 from'./integrations/blockquote';import _0x13c969 from'./integrations/ckbox';import _0x4dc976 from'./integrations/codeblock';import _0x14e262 from'./integrations/comments';import _0x27411f from'./integrations/deletecommand';import _0x5bca9c from'./integrations/documentlist';import _0x2d5c23 from'./integrations/entercommand';import _0x21352b from'./integrations/findandreplace';import _0x1c3e6e from'./integrations/font';import _0x43c835 from'./integrations/formatpainter';import _0x5ccbe3 from'./integrations/heading';import _0xd6f72 from'./integrations/highlight';import _0x1e5c17 from'./integrations/horizontalline';import _0x488a0e from'./integrations/htmlembed';import _0x1e970d from'./integrations/image';import _0x25d05d from'./integrations/imagereplace';import _0x3a81f9 from'./integrations/importword';import _0x2547a1 from'./integrations/indent';import _0x1a82b7 from'./integrations/inputcommand';import _0x4fb22f from'./integrations/link';import _0x5e8f11 from'./integrations/list';import _0x2153ca from'./integrations/listproperties';import _0xca9aa from'./integrations/mediaembed';import _0x28feda from'./integrations/mention';import _0x5455f7 from'./integrations/pagebreak';import _0x5d4186 from'./integrations/paragraph';import _0x4d4ca1 from'./integrations/removeformat';import _0x303cd3 from'./integrations/restrictededitingmode';import _0x44a8f9 from'./integrations/shiftentercommand';import _0x2ca3f0 from'./integrations/standardeditingmode';import _0x1b56d0 from'./integrations/style';import _0x2c0787 from'./integrations/table';import _0x2ca2e6 from'./integrations/tablemergesplit';import _0x195722 from'./integrations/tableheadings';import _0x7f40c from'./integrations/tableclipboard';import _0x4b6d36 from'./integrations/tablecolumnresize';import _0x20ad55 from'./integrations/template';import _0x5c4683 from'./integrations/tableofcontents';import _0x466baf from'./integrations/title';import _0x4d4d55 from'./integrations/undo';import{getTranslation as _0x4ff402}from'./utils/common-translations';import _0x116bdb from'./integrations/tablecaption';import _0x577751 from'./integrations/documentlistproperties';import _0x1b5710 from'./integrations/tableproperties';export default class p extends _0x2587af{static get[_0x31cc('0xb6')](){return[_0x31cc('0x2a'),_0x4e5fe2,_0x4d9d32,_0x2b70ad,_0x24d613,_0x4b07c0,_0x13c969,_0x4dc976,_0x14e262,_0x27411f,_0x5bca9c,_0x577751,_0x2d5c23,_0x21352b,_0x1c3e6e,_0x43c835,_0x5ccbe3,_0xd6f72,_0x1e5c17,_0x488a0e,_0x1e970d,_0x25d05d,_0x3a81f9,_0x2547a1,_0x1a82b7,_0x4fb22f,_0x5e8f11,_0x2153ca,_0xca9aa,_0x28feda,_0x5455f7,_0x5d4186,_0x4d4ca1,_0x303cd3,_0x44a8f9,_0x2ca3f0,_0x1b56d0,_0x2c0787,_0x2ca2e6,_0x195722,_0x116bdb,_0x7f40c,_0x4b6d36,_0x5c4683,_0x1b5710,_0x20ad55,_0x466baf,_0x4d4d55];}static get[_0x31cc('0xc')](){return _0x31cc('0xcc');}constructor(_0x5a9e54){function _0x2df88f(_0x1751b3){return _0x1751b3[_0x31cc('0xc5')](_0x22f93f=>String[_0x31cc('0xf1')](_0x22f93f))[_0x31cc('0x4f')]('');}super(_0x5a9e54),this[_0x31cc('0x32')]('activeMarkers',[]),this['on'](_0x31cc('0xf'),(_0x55f340,_0x7d821f,_0x1f914e,_0x5a2027)=>{this[_0x31cc('0x134')][_0x31cc('0x129')](()=>{for(const _0x4cfd1a of[..._0x5a2027,..._0x1f914e])this[_0x31cc('0x134')][_0x31cc('0x12a')][_0x31cc('0x6b')](_0x4cfd1a)&&_0x5a9e54[_0x31cc('0x33')][_0x31cc('0xad')](_0x4cfd1a);});}),this[_0x31cc('0x10f')]=new _0x57b386(this['editor'][_0x31cc('0x3')]['schema'],this['editor'][_0x31cc('0x8b')]),this[_0x31cc('0x21')]=null,this[_0x31cc('0x15')]=new Dt(this['editor']),this[_0x31cc('0x3a')]=new Map(),this[_0x31cc('0xa6')]=_0x5a9e54[_0x31cc('0x41')]['get'](_0x31cc('0x2a')),this['_enabledCommands']=new Set(),this[_0x31cc('0x134')]=this[_0x31cc('0x120')][_0x31cc('0x3')],this[_0x31cc('0x2b')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5a9e54[_0x31cc('0xda')][_0x31cc('0x1c')](_0x31cc('0x79'),_0x31cc('0x49')),this[_0x31cc('0x5b')]=_0x5a9e54[_0x31cc('0xda')][_0x31cc('0xbb')](_0x31cc('0x79')),_0x5a9e54['config']['define'](_0x31cc('0x4'),!0x0),this[_0x31cc('0xc8')]=_0x5a9e54[_0x31cc('0xda')][_0x31cc('0xbb')]('trackChanges.mergeNestedSuggestions'),this[_0x31cc('0x56')]=new _0x83c70f(_0x5a9e54,this[_0x31cc('0xe3')]),this[_0x2df88f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2df88f([0x34,0x30,0x34,0x36,0x31,0x34,0x34,0x30]);}[_0x31cc('0x64')](){const _0x43e35c=this[_0x31cc('0x120')];_0x43e35c[_0x31cc('0xd9')][_0x31cc('0x9d')](_0x31cc('0x89'))[_0x31cc('0x7')]({'model':_0x31cc('0x5d'),'view':_0x1969c8=>{const {id:_0x10494a,type:_0x34e65f}=this[_0x31cc('0x1b')](_0x1969c8[_0x31cc('0x12')]),_0x3b02a5=[_0x31cc('0x38'),_0x31cc('0x70')+_0x34e65f];let _0x428477=0xbb8;return this[_0x31cc('0x7f')][_0x31cc('0xf9')](_0x1969c8[_0x31cc('0x12')])&&(_0x3b02a5[_0x31cc('0xbf')](_0x31cc('0xef')),_0x428477=0xbc2),'deletion'==_0x34e65f&&(_0x428477+=0x5),{'classes':_0x3b02a5,'attributes':{'data-suggestion':_0x10494a},'priority':_0x428477};}}),_0x43e35c[_0x31cc('0xd9')][_0x31cc('0x9d')]('dataDowncast')[_0x31cc('0x80')](_0x341d1a=>{_0x341d1a['on'](_0x31cc('0x8a'),(_0x39989b,_0x15c498,_0x43306a)=>{if(!_0x43306a['options']['showSuggestionHighlights'])return;const _0x5098c7=_0x15c498[_0x31cc('0xd2')];if(!_0x5098c7)return;const _0x7074a7=_0x43306a[_0x31cc('0x87')][_0x31cc('0xd5')](_0x5098c7);_0x43e35c[_0x31cc('0x3')][_0x31cc('0x13')][_0x31cc('0xa2')](_0x5098c7)&&_0x7074a7&&!_0x7074a7['getCustomProperty'](_0x31cc('0xd4'))&&_0x7074a7['is'](_0x31cc('0xc6'))&&_0x1c26f6(_0x7074a7,_0x43306a[_0x31cc('0xf7')]);},{'priority':'high'});}),_0x43e35c['conversion'][_0x31cc('0x9d')](_0x31cc('0x3e'))[_0x31cc('0x7')]({'model':_0x31cc('0x5d'),'view':(_0x268f68,_0x5eef5f)=>{if(!_0x5eef5f[_0x31cc('0xa0')][_0x31cc('0x94')])return null;const {type:_0x559956}=this['_splitMarkerName'](_0x268f68[_0x31cc('0x12')]);return{'classes':['ck-suggestion-marker',_0x31cc('0x70')+_0x559956],'priority':0xbb8};}});const _0x301e2f=({showActiveMarkers:_0x386990=!0x0}={})=>(_0x595782,_0x315391,_0x3a83e7)=>{if(!_0x315391[_0x31cc('0xd2')])return;if(_0x315391['item']['is'](_0x31cc('0x11a')))return void _0x3a83e7[_0x31cc('0x2d')][_0x31cc('0x69')](_0x315391['item'],_0x595782[_0x31cc('0xfd')]);const _0x177c6f=_0x3a83e7['mapper'][_0x31cc('0xd5')](_0x315391[_0x31cc('0xd2')]);if(!(_0x315391[_0x31cc('0xd2')]['is'](_0x31cc('0x105'))&&_0x43e35c['model'][_0x31cc('0x13')]['isBlock'](_0x315391[_0x31cc('0xd2')])&&!_0x177c6f[_0x31cc('0x115')]('addHighlight')))return;const {id:_0x155802}=this[_0x31cc('0x1b')](_0x315391[_0x31cc('0x12')]);_0x3a83e7[_0x31cc('0xf7')][_0x31cc('0x86')](['ck-suggestion-marker',_0x31cc('0xe8')],_0x177c6f),_0x3a83e7[_0x31cc('0xf7')][_0x31cc('0x5')](_0x31cc('0x11'),_0x155802,_0x177c6f),_0x3a83e7[_0x31cc('0x87')][_0x31cc('0x104')](_0x177c6f,_0x315391[_0x31cc('0x12')]),_0x386990&&(this[_0x31cc('0x7f')][_0x31cc('0xf9')](_0x315391[_0x31cc('0x12')])?_0x3a83e7[_0x31cc('0xf7')][_0x31cc('0x86')](_0x31cc('0xef'),_0x177c6f):_0x3a83e7['writer']['removeClass'](_0x31cc('0xef'),_0x177c6f));for(const _0x39eb54 of _0x43e35c[_0x31cc('0x3')][_0x31cc('0x34')](_0x315391['item'])[_0x31cc('0x12b')]())_0x3a83e7[_0x31cc('0x2d')][_0x31cc('0x69')](_0x39eb54,_0x595782['name']);_0x3a83e7['consumable'][_0x31cc('0x69')](_0x315391[_0x31cc('0xd2')],_0x595782['name']);};_0x43e35c[_0x31cc('0xd9')][_0x31cc('0x9d')](_0x31cc('0x3e'))['add'](_0x45b6d8=>{_0x45b6d8['on']('addMarker:suggestion:formatBlock',(_0x354a0f,_0x27e113,_0x13a032)=>{_0x13a032[_0x31cc('0xa0')][_0x31cc('0x94')]&&_0x301e2f({'showActiveMarkers':!0x1})(_0x354a0f,_0x27e113,_0x13a032);},{'priority':_0x31cc('0x44')});}),_0x43e35c['conversion'][_0x31cc('0x9d')](_0x31cc('0x3e'))[_0x31cc('0xb1')]({'model':_0x31cc('0x5d'),'view':(_0x198288,_0x40bb7f)=>_0x40bb7f[_0x31cc('0xa0')][_0x31cc('0x94')]?null:{'group':_0x31cc('0x5d'),'name':_0x198288[_0x31cc('0x144')](0xb)}}),_0x43e35c['conversion']['for'](_0x31cc('0xfe'))['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x237565,{writer:_0x69d359})=>{let _0x3f166e=_0x31cc('0x124')+_0x237565[_0x31cc('0xa')](_0x31cc('0x71'))+':'+_0x237565[_0x31cc('0xa')]('id');return _0x237565[_0x31cc('0xa')](_0x31cc('0x25'))&&(_0x3f166e+=':'+_0x237565[_0x31cc('0xa')]('marker-count')),_0x69d359['createElement'](_0x31cc('0x146'),{'data-name':_0x3f166e});}}),_0x43e35c[_0x31cc('0xd9')]['for']('upcast')['dataToMarker']({'view':_0x31cc('0x5d')}),_0x43e35c[_0x31cc('0xd9')][_0x31cc('0x9d')](_0x31cc('0x89'))[_0x31cc('0x80')](_0x273db5=>{_0x273db5['on'](_0x31cc('0x60'),_0x301e2f(),{'priority':_0x31cc('0x13e')});}),_0x43e35c[_0x31cc('0xd9')][_0x31cc('0x9d')](_0x31cc('0x89'))[_0x31cc('0x80')](_0x543109=>{_0x543109['on'](_0x31cc('0x5e'),(_0x509bba,_0x184e66,_0x10377b)=>{const _0x1c616d=_0x10377b['mapper'][_0x31cc('0x122')](_0x184e66[_0x31cc('0x12')]);if(_0x1c616d)for(const _0x34df94 of _0x1c616d)_0x34df94[_0x31cc('0x115')](_0x31cc('0xa9'))||(_0x10377b[_0x31cc('0xf7')]['removeClass']([_0x31cc('0x38'),_0x31cc('0xe8'),_0x31cc('0xef')],_0x34df94),_0x10377b[_0x31cc('0xf7')][_0x31cc('0xe6')](_0x31cc('0x11'),_0x34df94),_0x10377b['mapper'][_0x31cc('0xf0')](_0x34df94,_0x184e66[_0x31cc('0x12')]));},{'priority':_0x31cc('0x13e')});}),_0x43e35c[_0x31cc('0x3')][_0x31cc('0x27')][_0x31cc('0x99')](_0x24c709=>{let _0x21de70=!0x1;const _0x4888e4=Array['from'](_0x43e35c[_0x31cc('0x3')][_0x31cc('0x27')]['differ'][_0x31cc('0x7c')]()),_0x198582=new Set();for(const {name:_0x4010ed,data:_0x31a25a}of _0x4888e4){const {group:_0xe65a0a,type:_0x2c624a,id:_0x380615}=this[_0x31cc('0x1b')](_0x4010ed);if('suggestion'!==_0xe65a0a)continue;const _0x22953=this[_0x31cc('0x3a')][_0x31cc('0xbb')](_0x380615);if(null!=_0x31a25a[_0x31cc('0xc7')]){_0x31cc('0x12f')==_0x2c624a&&(_0x21de70=_0x21de70||Mt(_0x31a25a[_0x31cc('0xc7')],_0x4010ed,_0x24c709,_0x43e35c[_0x31cc('0x3')][_0x31cc('0x13')]));if(_0x31a25a[_0x31cc('0xc7')][_0x31cc('0xb7')]||_0x31cc('0x133')==_0x31a25a[_0x31cc('0xc7')][_0x31cc('0x3f')][_0x31cc('0x11b')]||'formatBlock'==_0x2c624a&&!Nt(_0x31a25a['newRange'])||_0x31cc('0x36')==_0x2c624a&&!(!_t(_0x39609e=_0x31a25a[_0x31cc('0xc7')])&&!function(_0xc1040b){return _0xc1040b[_0x31cc('0xf6')][_0x31cc('0xbc')]==_0xc1040b['end']['nodeBefore']&&_0xc1040b[_0x31cc('0xf6')][_0x31cc('0x2e')];}(_0x39609e)))_0x24c709[_0x31cc('0x138')](_0x4010ed),_0x21de70=!0x0;else{if(!_0x22953||!_0x22953[_0x31cc('0xc2')])continue;_0x198582[_0x31cc('0x80')](_0x22953);}}}var _0x39609e;return _0x198582[_0x31cc('0x72')]>0x0&&(_0x21de70=!!this[_0x31cc('0xb3')](_0x198582)||_0x21de70),_0x21de70;}),_0x43e35c[_0x31cc('0x3')][_0x31cc('0x27')][_0x31cc('0x99')](_0x378d8f=>{let _0x1d9ed2=!0x1;for(const _0x2cf42d of _0x43e35c[_0x31cc('0x3')]['document'][_0x31cc('0x47')][_0x31cc('0xf4')]()){if(_0x31cc('0x114')!=_0x2cf42d[_0x31cc('0xce')])continue;const _0x588116=_0x2cf42d['position'][_0x31cc('0x19')](_0x2cf42d['length']);if(_0x588116['isAtEnd'])for(const _0x4f355d of this[_0x31cc('0x3a')][_0x31cc('0x111')]()){if(_0x4f355d['isMultiRange']||!_0x4f355d[_0x31cc('0xc2')])continue;if(_0x31cc('0xb0')!=_0x4f355d[_0x31cc('0xce')])continue;const _0x1fbb07=_0x4f355d[_0x31cc('0xcd')]();if(_0x1fbb07['start'][_0x31cc('0xbc')]!=_0x1fbb07[_0x31cc('0x4b')][_0x31cc('0xbc')]&&_0x1fbb07[_0x31cc('0x4b')][_0x31cc('0x24')](_0x2cf42d[_0x31cc('0x42')])){const _0x190cfc=_0x43e35c['model']['createRange'](_0x1fbb07[_0x31cc('0xf6')],_0x588116);_0x378d8f[_0x31cc('0x65')](_0x4f355d['getFirstMarker'](),{'range':_0x190cfc}),_0x1d9ed2=!0x0;}}}return _0x1d9ed2;}),_0x43e35c[_0x31cc('0x3')][_0x31cc('0x12a')]['on']('update:suggestion',(_0x2467f9,_0x73640,_0x1ac3fe)=>{if(null==_0x1ac3fe){const {id:_0x11bee0}=this['_splitMarkerName'](_0x73640[_0x31cc('0xfd')]),_0x2d5a03=this[_0x31cc('0x3a')][_0x31cc('0xbb')](_0x11bee0);_0x2d5a03&&_0x2d5a03[_0x31cc('0x35')](_0x73640[_0x31cc('0xfd')]);}}),_0x43e35c['model'][_0x31cc('0x27')]['on'](_0x31cc('0x147'),()=>{const _0x579211=Array['from'](_0x43e35c[_0x31cc('0x3')][_0x31cc('0x27')][_0x31cc('0x47')][_0x31cc('0x7c')]())[_0x31cc('0x45')](_0xf5c246=>_0x31cc('0x5d')===this[_0x31cc('0x1b')](_0xf5c246['name'])[_0x31cc('0x110')]);if(0x0===_0x579211[_0x31cc('0xbe')])return;_0x579211[_0x31cc('0x58')]((_0x214882,_0x35a5e8)=>{const _0x43dbe7=_0x214882[_0x31cc('0x88')]['oldRange'],_0x24928b=_0x35a5e8[_0x31cc('0x88')][_0x31cc('0x3b')];return null===_0x43dbe7&&null===_0x24928b?0x0:null===_0x43dbe7&&null!==_0x24928b?-0x1:null!==_0x43dbe7&&null===_0x24928b?0x1:_0x43dbe7['start']['isBefore'](_0x24928b[_0x31cc('0xf6')])?-0x1:0x1;});const _0x41f8bb=new Set(),_0x4f8910=new Set();for(const {name:_0x1aee41,data:_0x154450}of _0x579211){const {id:_0x10885a}=this[_0x31cc('0x1b')](_0x1aee41);if(null===_0x154450[_0x31cc('0x3b')]){const _0x96f8c=this[_0x31cc('0x9a')](_0x1aee41);_0x4f8910[_0x31cc('0x80')](_0x96f8c);}else{const _0x3d0d97=this[_0x31cc('0x3a')][_0x31cc('0xbb')](_0x10885a);null!==_0x154450[_0x31cc('0xc7')]||_0x3d0d97['isInContent']?(_0x41f8bb[_0x31cc('0x80')](_0x3d0d97[_0x31cc('0x63')]),_0x4f8910[_0x31cc('0x80')](_0x3d0d97)):this['_removeSuggestion'](_0x3d0d97);}}_0x4f8910[_0x31cc('0x72')]>0x0&&this[_0x31cc('0x8')](_0x4f8910);for(const _0x114f1f of _0x41f8bb)this['fire'](_0x31cc('0xee'),_0x114f1f);}),_0x43e35c[_0x31cc('0x3')]['on'](_0x31cc('0xd8'),(_0x3c24ae,_0x3850b8)=>{const _0x1a461c=_0x3850b8[0x0];if(!this[_0x31cc('0x3a')]['size'])return;if(!_0x1a461c['isDocumentOperation'])return;if(_0x1a461c[_0x31cc('0x4a')][_0x31cc('0x75')]||!_0x1a461c[_0x31cc('0x4a')][_0x31cc('0x9')])return;let _0x35f372,_0x2cfa95;switch(_0x1a461c[_0x31cc('0xce')]){case _0x31cc('0x114'):_0x35f372=_0x43e35c[_0x31cc('0x3')]['createPositionAt'](_0x1a461c['position']),_0x2cfa95=_0x35f372[_0x31cc('0x19')](_0x1a461c['howMany']);break;case _0x31cc('0xdf'):_0x35f372=_0x43e35c[_0x31cc('0x3')][_0x31cc('0x2')](_0x1a461c[_0x31cc('0x97')]),_0x2cfa95=_0x43e35c['model']['createPositionAt'](_0x1a461c[_0x31cc('0x113')]);break;case _0x31cc('0x117'):_0x35f372=_0x43e35c[_0x31cc('0x3')][_0x31cc('0x2')](_0x1a461c[_0x31cc('0x141')]),_0x2cfa95=_0x35f372['getShiftedBy'](_0x1a461c[_0x31cc('0xd0')]);break;default:return;}const _0x5a067e=_0x43e35c['model'][_0x31cc('0x11e')](_0x35f372,_0x2cfa95);_0x43e35c[_0x31cc('0x3')]['change'](()=>{for(const {suggestion:_0x7c60e6,meta:_0x497cd8}of this[_0x31cc('0x46')](_0x5a067e)){if(_0x7c60e6[_0x31cc('0x7a')])continue;if(_0x31cc('0x12f')==_0x7c60e6[_0x31cc('0xce')])continue;const _0x22c1c2=_0x7c60e6[_0x31cc('0x88')]&&_0x7c60e6['data'][_0x31cc('0x9b')];('formatBlock'!=_0x7c60e6[_0x31cc('0xce')]||_0x31cc('0xdf')==_0x1a461c['type']&&!_0x22c1c2)&&(_0x497cd8['containsRangeInObject']||'insertion'==_0x7c60e6['type']&&_0x497cd8[_0x31cc('0xd3')]||_0x7c60e6[_0x31cc('0xcd')]()[_0x31cc('0xbd')](_0x5a067e)&&this[_0x31cc('0x30')](_0x7c60e6,_0x35f372,_0x2cfa95));}});},{'priority':_0x31cc('0x13f')}),_0x43e35c['model']['on']('deleteContent',(_0x99f209,_0xd57533)=>{const _0x5e709b=_0xd57533[0x0],_0x2e3861=_0xd57533[0x1];if(_0x2e3861&&_0x2e3861['forceDefaultExecution'])return;if(this[_0x31cc('0x8d')])return;if(!this[_0x31cc('0x56')]['value'])return;if(_0x5e709b[_0x31cc('0xb7')])return;const _0x1ae72e=_0x43e35c[_0x31cc('0x3')]['schema'],{start:_0x3bba4e,end:_0x3ed78e}=_0x5e709b[_0x31cc('0xcd')](),_0x4f0d8d=_0x3bba4e['nodeAfter']&&_0x1ae72e[_0x31cc('0xc3')](_0x3bba4e['nodeAfter'])?null:_0x1ae72e[_0x31cc('0x26')](_0x3bba4e,_0x31cc('0x98')),_0x54cc39=_0x3ed78e[_0x31cc('0xde')]&&_0x1ae72e[_0x31cc('0xc3')](_0x3ed78e[_0x31cc('0xde')])?null:_0x1ae72e['getNearestSelectionRange'](_0x3ed78e,_0x31cc('0xa4')),_0x1fcf24=_0x43e35c['model'][_0x31cc('0x11e')](_0x4f0d8d?_0x4f0d8d[_0x31cc('0xf6')]:_0x3bba4e,_0x54cc39?_0x54cc39[_0x31cc('0x4b')]:_0x3ed78e);_0x43e35c[_0x31cc('0x3')]['change'](_0x36b162=>{this[_0x31cc('0xca')](_0x1fcf24);const _0x57cfed=_0x43e35c[_0x31cc('0x3')]['schema']['getNearestSelectionRange'](_0x1fcf24[_0x31cc('0xf6')]);_0x5e709b['is'](_0x31cc('0x48'))?_0x36b162[_0x31cc('0x10')](_0x57cfed):_0x5e709b[_0x31cc('0x92')](_0x57cfed);}),_0x99f209[_0x31cc('0x101')]();},{'priority':_0x27c9e4[_0x31cc('0x6a')]+0xa}),_0x43e35c[_0x31cc('0x3')]['on'](_0x31cc('0x10c'),(_0x43db4a,_0x2c295a)=>{const _0x105b98=_0x2c295a[_0x2c295a['length']-0x1];_0x105b98&&_0x105b98[_0x31cc('0x10d')]||this['_isForcedDefaultExecutionBlock']||this[_0x31cc('0x56')][_0x31cc('0xb8')]&&(_0x43e35c[_0x31cc('0x3')][_0x31cc('0x129')](()=>{let _0x4d0e51=_0x43e35c[_0x31cc('0x3')][_0x31cc('0x10c')](_0x2c295a[0x0],_0x2c295a[0x1],_0x2c295a[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d0e51)return;_0x43db4a[_0x31cc('0x6d')]=_0x4d0e51[_0x31cc('0x125')]();const _0x189ed5=_0x4d0e51[_0x31cc('0x4b')][_0x31cc('0xde')],_0x182dde=_0x43e35c[_0x31cc('0x3')][_0x31cc('0x13')];_0x189ed5&&_0x182dde[_0x31cc('0xe5')](_0x189ed5)&&!_0x182dde[_0x31cc('0xa2')](_0x189ed5)&&(_0x4d0e51=_0x43e35c[_0x31cc('0x3')][_0x31cc('0x11e')](_0x4d0e51[_0x31cc('0xf6')],_0x43e35c['model']['createPositionAt'](_0x189ed5,'end'))),this[_0x31cc('0x31')](_0x4d0e51);}),_0x43db4a[_0x31cc('0x101')]());},{'priority':_0x31cc('0x13e')}),this[_0x31cc('0x120')][_0x31cc('0x10e')]['add'](_0x31cc('0x2f'),this['trackChangesCommand']),this[_0x31cc('0x11d')]('trackChanges');const _0xa4fed6=new _0x209760(_0x43e35c,this[_0x31cc('0x3a')]);_0x43e35c[_0x31cc('0x10e')][_0x31cc('0x80')](_0x31cc('0x127'),_0xa4fed6),this[_0x31cc('0x11d')](_0x31cc('0x127'));const _0x270667=new _0x1c4c74(_0x43e35c,this[_0x31cc('0x3a')]);_0x43e35c[_0x31cc('0x10e')]['add'](_0x31cc('0x84'),_0x270667),this[_0x31cc('0x11d')](_0x31cc('0x84')),_0x43e35c['commands'][_0x31cc('0x80')](_0x31cc('0x57'),new _0x1d1313(_0x43e35c,_0xa4fed6,this[_0x31cc('0x3a')])),this['enableCommand'](_0x31cc('0x57')),_0x43e35c[_0x31cc('0x10e')][_0x31cc('0x80')](_0x31cc('0x1e'),new _0x1d1313(_0x43e35c,_0x270667,this['_suggestions'])),this[_0x31cc('0x11d')]('discardAllSuggestions'),_0x43e35c[_0x31cc('0x10e')][_0x31cc('0x80')](_0x31cc('0xe7'),new _0x5846c0(_0x43e35c,_0xa4fed6,this[_0x31cc('0x3a')])),this[_0x31cc('0x11d')](_0x31cc('0xe7')),_0x43e35c[_0x31cc('0x10e')]['add'](_0x31cc('0xa3'),new _0x5846c0(_0x43e35c,_0x270667,this[_0x31cc('0x3a')])),this[_0x31cc('0x11d')]('discardSelectedSuggestions');const _0x8b155e=_0x43e35c[_0x31cc('0x41')][_0x31cc('0xbb')]('CommentsRepository');this[_0x31cc('0xac')](_0x8b155e,'addComment',(_0x51cd56,{threadId:_0x702230})=>{const _0x1086dc=this[_0x31cc('0x3a')][_0x31cc('0xbb')](_0x702230);_0x1086dc&&_0x1086dc[_0x31cc('0x6')]&&0x1===_0x1086dc[_0x31cc('0x6')][_0x31cc('0xbe')]&&this['_updateSuggestionData'](_0x702230,{'hasComments':!0x0});},{'priority':'low'}),this[_0x31cc('0xac')](_0x8b155e,_0x31cc('0x17'),(_0x296454,{threadId:_0x2fe1fc})=>{const _0x2dd848=this[_0x31cc('0x3a')][_0x31cc('0xbb')](_0x2fe1fc);_0x2dd848&&_0x2dd848['commentThread']&&!_0x2dd848[_0x31cc('0x6')][_0x31cc('0xbe')]&&this['_updateSuggestionData'](_0x2fe1fc,{'hasComments':!0x1});},{'priority':_0x31cc('0xaa')});}set[_0x31cc('0xe9')](_0x3c8615){if(this[_0x31cc('0x21')])throw new _0x168c56(_0x31cc('0x1d'),this);this[_0x31cc('0x21')]=_0x3c8615;}get[_0x31cc('0xe9')](){return this[_0x31cc('0x21')];}[_0x31cc('0xd7')]({skipNotAttached:_0x5438fe=!0x1,toJSON:_0x4e88d5=!0x1}={}){const _0x5c5a6c=[];for(const _0x1f4905 of this[_0x31cc('0x3a')][_0x31cc('0x111')]())_0x5438fe&&!_0x1f4905[_0x31cc('0xc2')]||_0x5c5a6c[_0x31cc('0xbf')](_0x1f4905);return _0x4e88d5?_0x5c5a6c[_0x31cc('0xc5')](_0x2e8b4e=>_0x2e8b4e[_0x31cc('0x0')]()):_0x5c5a6c;}[_0x31cc('0xdd')](_0x546bb2){const _0x2cbd9d=this[_0x31cc('0x3a')]['get'](_0x546bb2);if(!_0x2cbd9d)throw new _0x168c56(_0x31cc('0x5c'),this);return _0x2cbd9d;}[_0x31cc('0xfb')](_0x4b55a8){return this[_0x31cc('0x3a')][_0x31cc('0x6b')](_0x4b55a8);}['addSuggestionData'](_0xe58e22){const {authorId:_0x27ee6c,id:_0x55b769,attributes:_0x549ffb}=_0xe58e22,[_0x57d8a2,_0x5ee83f]=_0xe58e22[_0x31cc('0xce')][_0x31cc('0xdf')](':'),_0x1c8554=this[_0x31cc('0x3a')][_0x31cc('0xbb')](_0x55b769)||this[_0x31cc('0x12d')](_0x57d8a2,_0x5ee83f,_0x55b769,_0x27ee6c,_0x549ffb);if(this['_addThreadToSuggestion'](_0x1c8554),this['_checkSuggestionCorrectness'](_0x1c8554,_0x57d8a2,_0x5ee83f||null,_0x27ee6c),_0x1c8554[_0x31cc('0x68')]=_0xe58e22[_0x31cc('0x68')],_0x549ffb&&_0x549ffb[_0x31cc('0x140')]){const _0x21273a=_0x549ffb[_0x31cc('0x140')],_0x538043=this['_getExternalAuthor'](_0x21273a[_0x31cc('0x93')]);_0x1c8554['authoredAt']=_0x21273a[_0x31cc('0x68')],_0x1c8554[_0x31cc('0x107')]=_0x538043,_0x1c8554[_0x31cc('0x39')]=!0x0;}else _0x1c8554['authoredAt']=_0xe58e22['createdAt'];switch(_0xe58e22['data']&&(_0x1c8554['data']=_0xe58e22[_0x31cc('0x88')]),_0xe58e22[_0x31cc('0x13b')]&&(_0x1c8554[_0x31cc('0x13b')]=_0xe58e22['attributes']),this[_0x31cc('0x21')]&&this[_0x31cc('0x21')]['addSuggestion']||(_0x1c8554[_0x31cc('0xb2')]=!0x0),this[_0x31cc('0x2b')][_0x31cc('0xbb')](_0x1c8554)){case'notReady':this[_0x31cc('0x2b')][_0x31cc('0x32')](_0x1c8554,_0x31cc('0xe2'));break;case'markerReady':_0x1c8554[_0x31cc('0xc2')]?(this['_suggestionState'][_0x31cc('0x32')](_0x1c8554,_0x31cc('0xea')),this[_0x31cc('0xa5')](_0x31cc('0x3c'),_0x1c8554)):this[_0x31cc('0x2b')][_0x31cc('0x32')](_0x1c8554,_0x31cc('0x53'));}return _0x1c8554;}['acceptSuggestion'](_0x562597){this[_0x31cc('0x10d')](()=>{this[_0x31cc('0x120')]['model']['change'](()=>{for(const _0x24096c of _0x562597[_0x31cc('0x52')]())_0x24096c[_0x31cc('0xa1')]();});});}[_0x31cc('0x84')](_0x16cbc6){this[_0x31cc('0x10d')](()=>{this[_0x31cc('0x120')][_0x31cc('0x3')][_0x31cc('0x129')](()=>{for(const _0xc43ab1 of _0x16cbc6[_0x31cc('0x52')]())_0xc43ab1[_0x31cc('0x5f')]();});});}[_0x31cc('0x11d')](_0x36db84,_0x3720e3){const _0x5690ec=this[_0x31cc('0x120')][_0x31cc('0x10e')][_0x31cc('0xbb')](_0x36db84);if(!_0x5690ec)throw new _0x168c56(_0x31cc('0xba'),this,{'commandName':_0x36db84});this[_0x31cc('0xe3')][_0x31cc('0x80')](_0x5690ec),_0x3720e3&&_0x5690ec['on']('execute',(_0x1af772,_0x4cc7c8)=>{this[_0x31cc('0x56')][_0x31cc('0xb8')]&&(this[_0x31cc('0x8d')]||_0x4cc7c8[_0x31cc('0xbe')]>0x0&&_0x4cc7c8[_0x4cc7c8[_0x31cc('0xbe')]-0x1]&&_0x4cc7c8[_0x4cc7c8['length']-0x1][_0x31cc('0x10d')]||(_0x3720e3((..._0x5a61fc)=>_0x5690ec[_0x31cc('0x11f')](..._0x5a61fc,{'forceDefaultExecution':!0x0}),..._0x4cc7c8),_0x1af772[_0x31cc('0x101')]()));},{'priority':_0x31cc('0x13e')});}['forceDefaultExecution'](_0x5cdf4a){let _0xcf6647,_0x2ad059;const _0x38fa4f=this[_0x31cc('0x8d')];this[_0x31cc('0x8d')]=!0x0;try{_0xcf6647=_0x5cdf4a();}catch(_0x2fccd8){_0x2ad059=_0x2fccd8;}return _0x38fa4f||(this[_0x31cc('0x8d')]=!0x1),_0x2ad059&&_0x168c56[_0x31cc('0x28')](_0x2ad059,this),_0xcf6647;}[_0x31cc('0x31')](_0x44e470,_0x5cf5bf=null,_0x54bd73={}){if(_0x44e470[_0x31cc('0xb7')])return null;const _0x47fefc=this[_0x31cc('0x120')][_0x31cc('0x41')]['get'](_0x31cc('0x13d'))['me'];for(const {suggestion:_0x1bd4dc,meta:_0x13b81f}of this[_0x31cc('0x46')](_0x44e470,'insertion'))if(_0x13b81f['isOwn']){if(!_0x13b81f[_0x31cc('0x23')]){if(!this['_mergeNestedSuggestions']&&_0x13b81f[_0x31cc('0x131')])continue;return _0x1bd4dc;}if(_0x5cf5bf==_0x1bd4dc[_0x31cc('0x37')]){const _0x24d4d4=_0x1bd4dc['getFirstRange']();return _0x24d4d4[_0x31cc('0xf6')]['isEqual'](_0x44e470[_0x31cc('0x4b')])?this[_0x31cc('0x83')](_0x1bd4dc,this[_0x31cc('0x134')]['createRange'](_0x44e470[_0x31cc('0xf6')],_0x24d4d4[_0x31cc('0x4b')])):this[_0x31cc('0x83')](_0x1bd4dc,this['_model'][_0x31cc('0x11e')](_0x24d4d4[_0x31cc('0xf6')],_0x44e470['end'])),_0x1bd4dc;}}const _0x4d999a=_0x21e5dd(),_0x517f35=_0x47fefc['id'],_0x2c149e=_0x5cf5bf?_0x31cc('0xd')+_0x5cf5bf:_0x31cc('0xdb'),_0x808982=this[_0x31cc('0x67')]({'id':_0x4d999a,'type':_0x2c149e,'createdAt':new Date(),'authorId':_0x517f35,'attributes':_0x54bd73});return this[_0x31cc('0x13c')](_0x2c149e,_0x4d999a,_0x517f35,_0x44e470),_0x808982;}[_0x31cc('0x8f')](_0xbdb079,_0x3d76a5=_0x31cc('0xcb'),_0x58b261={}){const _0x1c7d8a=this[_0x31cc('0x120')][_0x31cc('0x41')][_0x31cc('0xbb')](_0x31cc('0x13d'))['me'],_0x2c317a=this[_0x31cc('0x15')][_0x31cc('0x78')](_0x31cc('0xdb'),_0x3d76a5,_0x31cc('0x4f'));for(const _0x4d9d78 of this[_0x31cc('0xd7')]())if(_0x4d9d78[_0x31cc('0x107')]['id']==_0x1c7d8a['id']&&_0x31cc('0xdb')==_0x4d9d78['type']&&_0x4d9d78['subType']==_0x3d76a5&&(_0x2c317a(_0x4d9d78[_0x31cc('0xa7')](),_0xbdb079)||_0x2c317a(_0xbdb079,_0x4d9d78[_0x31cc('0xa7')]()))){for(const _0x59f50d of _0xbdb079)_0x4d9d78['addRange'](_0x59f50d);return _0x4d9d78;}if(this[_0x31cc('0xc8')])for(const _0x23b00b of _0xbdb079)for(const {suggestion:_0x4c8946,meta:_0x5b4f1d}of this[_0x31cc('0x46')](_0x23b00b,'insertion')){if(!_0x5b4f1d['isOwn'])continue;let _0x4105ac=!0x0;for(const _0x180926 of _0x4c8946['getRanges']())for(const _0x246e58 of _0xbdb079)if(!_0x180926[_0x31cc('0xbd')](_0x246e58)){_0x4105ac=!0x1;break;}if(_0x4105ac)return _0x4c8946;}const _0x376c23=_0x21e5dd(),_0x5633df=_0x1c7d8a['id'],_0x34ae1b=_0x31cc('0xd')+_0x3d76a5,_0x427cc2=this[_0x31cc('0x67')]({'id':_0x376c23,'type':_0x34ae1b,'createdAt':new Date(),'authorId':_0x5633df,'attributes':_0x58b261});for(const _0x5afd83 of _0xbdb079)this[_0x31cc('0x13c')](_0x34ae1b,_0x376c23,_0x5633df,_0x5afd83,_0x5ba4b1[_0x31cc('0xae')]());return _0x427cc2;}[_0x31cc('0x132')](_0x2fef21,_0x1cbe95,_0x10f907=null,_0x3e7410={}){if(_0x10f907=_0x10f907||$t(_0x1cbe95),_0x2fef21[_0x31cc('0xb7')])return null;if(_0x31cc('0x12e')===this[_0x31cc('0x5b')]){const _0x11209d=this[_0x31cc('0x15')][_0x31cc('0x78')](_0x31cc('0x12f'),_0x10f907,'accept');return this['forceDefaultExecution'](()=>_0x11209d([_0x2fef21],_0x1cbe95,_0x3e7410)),null;}const _0x10c377=this[_0x31cc('0x120')][_0x31cc('0x41')][_0x31cc('0xbb')](_0x31cc('0x13d'))['me'],_0x3c9ec1=[];if(_0x31cc('0x112')!==this[_0x31cc('0x5b')])for(const {suggestion:_0x11bca7,meta:_0x127a59}of this[_0x31cc('0x46')](_0x2fef21,_0x31cc('0xdb')))_0x127a59[_0x31cc('0xd3')]&&!_0x127a59['isInsideObject']&&_0x3c9ec1[_0x31cc('0xbf')](..._0x11bca7[_0x31cc('0xa7')]());const _0x2d0ac8=function(_0x11c7a2,_0x4585c8){const _0x145bbd=[];for(const _0xacb9f3 of _0x4585c8){const _0x3b1aac=_0x11c7a2['getIntersection'](_0xacb9f3);_0x3b1aac&&_0x145bbd['push'](_0x3b1aac);}return _0x145bbd;}(_0x2fef21,_0x3c9ec1),_0x423e68=function(_0x5330b3,_0x299b08){const _0xe61325=[_0x5330b3];for(const _0x5d4624 of _0x299b08){let _0xb63875=0x0;for(;_0xb63875<_0xe61325[_0x31cc('0xbe')];){const _0x220400=_0xe61325[_0xb63875][_0x31cc('0xfc')](_0x5d4624);_0xe61325[_0x31cc('0xf8')](_0xb63875,0x1,..._0x220400),_0xb63875+=_0x220400[_0x31cc('0xbe')];}}return _0xe61325;}(_0x2fef21,_0x3c9ec1);_0x2d0ac8[_0x31cc('0xbe')]&&this[_0x31cc('0x134')][_0x31cc('0x129')](()=>{for(const _0x5b2302 of _0x2d0ac8){const _0x556ea7=this[_0x31cc('0x15')]['getSuggestionCallback'](_0x31cc('0x12f'),_0x10f907,'accept');this[_0x31cc('0x10d')](()=>_0x556ea7([_0x5b2302],_0x1cbe95,_0x3e7410));}});for(const _0x5bf68b of _0x423e68){let _0x982ecf=null,_0x16d671=_0x5bf68b[_0x31cc('0xf6')],_0x280964=_0x5bf68b[_0x31cc('0x4b')];for(const {suggestion:_0x449968,meta:_0x4b4226}of this[_0x31cc('0x46')](_0x5bf68b,_0x31cc('0x12f'))){if(!_0x4b4226['isOwn'])continue;if(_0x449968['subType']!=_0x10f907)continue;const _0x3d440d=_0x449968[_0x31cc('0xcd')]();if(_0x3d440d[_0x31cc('0xbd')](_0x5bf68b,!0x0))return null;_0x16d671=_0x16d671['isBefore'](_0x3d440d['start'])?_0x16d671:_0x3d440d[_0x31cc('0xf6')],_0x280964=_0x280964[_0x31cc('0x22')](_0x3d440d[_0x31cc('0x4b')])?_0x280964:_0x3d440d['end'],_0x982ecf?_0x3d440d[_0x31cc('0xf6')][_0x31cc('0xe0')](_0x982ecf[_0x31cc('0xcd')]()[_0x31cc('0xf6')])?(_0x982ecf[_0x31cc('0x43')](),_0x982ecf=_0x449968):_0x449968[_0x31cc('0x43')]():_0x982ecf=_0x449968;}const _0x193790=this['_model'][_0x31cc('0x11e')](_0x16d671,_0x280964);if(_0x982ecf)this[_0x31cc('0x83')](_0x982ecf,_0x193790);else{const _0x3b091a=_0x21e5dd(),_0x28ee7c=_0x10c377['id'];this[_0x31cc('0x67')]({'id':_0x3b091a,'type':_0x31cc('0xe4')+_0x10f907,'data':_0x1cbe95,'createdAt':new Date(),'authorId':_0x28ee7c,'attributes':_0x3e7410}),this['_addSuggestionMarker']('formatInline:'+_0x10f907,_0x3b091a,_0x28ee7c,_0x193790);}}return null;}['markBlockFormat'](_0x38c761,_0x591143,_0x3d5739=[],_0x2a9219=null,_0x8a50a3={}){_0x591143[_0x31cc('0x9e')]||(_0x591143[_0x31cc('0x9e')]=_0x591143['commandName']),_0x591143[_0x31cc('0x9b')]=_0x38c761['is'](_0x31cc('0x102')),_0x2a9219=_0x2a9219||$t(_0x591143);const _0x2596c6=_0x3d5739[_0x31cc('0xc5')](_0x588fc5=>Rt(_0x588fc5,this[_0x31cc('0x134')])),_0x11acd4=_0x38c761['is'](_0x31cc('0x102'))?_0x38c761:Rt(_0x38c761,this[_0x31cc('0x134')]);if('never'===this[_0x31cc('0x5b')]){const _0x1bcecb=this[_0x31cc('0x15')][_0x31cc('0x78')]('formatBlock',_0x2a9219,'accept');return this[_0x31cc('0x10d')](()=>_0x1bcecb([_0x11acd4],_0x591143,_0x8a50a3)),null;}_0x2596c6[_0x31cc('0xbf')](_0x11acd4);let _0x359f10=!0x0;for(const _0x4a5bf6 of _0x2596c6)if(!this['_rangeIsInLocalUserInsertion'](_0x4a5bf6)){_0x359f10=!0x1;break;}if(_0x359f10&&'always'!==this[_0x31cc('0x5b')]){const _0x5bca6a=this[_0x31cc('0x15')][_0x31cc('0x78')]('formatBlock',_0x2a9219,_0x31cc('0xa1'));return this['forceDefaultExecution'](()=>_0x5bca6a([_0x11acd4],_0x591143,_0x8a50a3)),null;}let _0x2a4ba8=null,_0x5c9cac=_0x11acd4[_0x31cc('0xf6')],_0x428747=_0x11acd4[_0x31cc('0x4b')];for(const {suggestion:_0x76c689,meta:_0x93550a}of this['_findSuggestions'](_0x11acd4,_0x31cc('0xb0'))){if(!_0x93550a[_0x31cc('0xd3')]||_0x93550a[_0x31cc('0x23')]||_0x93550a[_0x31cc('0x131')]||_0x93550a[_0x31cc('0xeb')])continue;if(_0x76c689[_0x31cc('0x88')][_0x31cc('0x9e')]!=_0x591143[_0x31cc('0x9e')])continue;const _0x4f1ec6=_0x76c689[_0x31cc('0xcd')]();if(_0x76c689[_0x31cc('0x37')]==_0x2a9219){if(_0x4f1ec6[_0x31cc('0xbd')](_0x11acd4,!0x0))return null;_0x5c9cac=_0x5c9cac[_0x31cc('0xe0')](_0x4f1ec6[_0x31cc('0xf6')])?_0x5c9cac:_0x4f1ec6['start'],_0x428747=_0x428747['isAfter'](_0x4f1ec6[_0x31cc('0x4b')])?_0x428747:_0x4f1ec6[_0x31cc('0x4b')],_0x2a4ba8?_0x4f1ec6[_0x31cc('0xf6')][_0x31cc('0xe0')](_0x2a4ba8[_0x31cc('0xcd')]()[_0x31cc('0xf6')])?(_0x2a4ba8['removeMarkers'](),_0x2a4ba8=_0x76c689):_0x76c689[_0x31cc('0x43')]():_0x2a4ba8=_0x76c689;}else{const _0xefb518=_0x11acd4[_0x31cc('0x1a')](_0x4f1ec6);this['_cutOutSuggestionMarker'](_0x76c689,_0xefb518);}}const _0x974169=this[_0x31cc('0x120')][_0x31cc('0x41')][_0x31cc('0xbb')](_0x31cc('0x13d'))['me'],_0x179f81=_0x21e5dd(),_0xf985e2=_0x974169['id'];if(_0x2a4ba8)return this[_0x31cc('0x83')](_0x2a4ba8,this[_0x31cc('0x134')][_0x31cc('0x11e')](_0x5c9cac,_0x428747)),_0x2a4ba8;{const _0x326b86=this[_0x31cc('0x67')]({'id':_0x179f81,'type':_0x31cc('0xc1')+_0x2a9219,'data':_0x591143,'createdAt':new Date(),'authorId':_0xf985e2,'attributes':_0x8a50a3});return this[_0x31cc('0x13c')]('formatBlock:'+_0x2a9219,_0x179f81,_0xf985e2,this[_0x31cc('0x134')][_0x31cc('0x11e')](_0x5c9cac,_0x428747)),_0x326b86;}}['markMultiRangeBlockFormat'](_0x3c7500,_0x273321,_0x22ddcd=[],_0x1cac2d=null,_0x39a5a7={}){_0x273321[_0x31cc('0x9e')]||(_0x273321['formatGroupId']=_0x273321['commandName']);const _0x1b9d50=_0x3c7500[0x0];_0x273321[_0x31cc('0x9b')]=_0x1b9d50['is'](_0x31cc('0x102')),_0x1cac2d=_0x1cac2d||$t(_0x273321);const _0x5399cc=_0x22ddcd[_0x31cc('0xc5')](_0x30e603=>Rt(_0x30e603,this[_0x31cc('0x134')])),_0x434af1=_0x1b9d50['is'](_0x31cc('0x102'))?_0x3c7500:_0x3c7500[_0x31cc('0xc5')](_0x4a76ef=>Rt(_0x4a76ef,this[_0x31cc('0x134')]));if(_0x31cc('0x12e')===this['_trackFormatChanges']){const _0x3af004=this[_0x31cc('0x15')]['getSuggestionCallback']('formatBlock',_0x1cac2d,'accept');return this[_0x31cc('0x10d')](()=>_0x3af004(_0x434af1,_0x273321,_0x39a5a7)),null;}_0x5399cc[_0x31cc('0xbf')](..._0x434af1);let _0x1b4a90=!0x0;for(const _0x1363ef of _0x5399cc)if(!this[_0x31cc('0x121')](_0x1363ef)){_0x1b4a90=!0x1;break;}if(_0x1b4a90&&_0x31cc('0x112')!==this[_0x31cc('0x5b')]){const _0x2b1671=this[_0x31cc('0x15')]['getSuggestionCallback'](_0x31cc('0xb0'),_0x1cac2d,_0x31cc('0xa1'));return this[_0x31cc('0x10d')](()=>_0x2b1671(_0x434af1,_0x273321,_0x39a5a7)),null;}const _0x3ea8f7=this['editor'][_0x31cc('0x41')][_0x31cc('0xbb')](_0x31cc('0x13d'))['me'];for(const _0x9b6a23 of this[_0x31cc('0xd7')]()){if(_0x9b6a23['author']['id']!=_0x3ea8f7['id'])continue;if(_0x31cc('0xb0')!=_0x9b6a23[_0x31cc('0xce')]||_0x9b6a23['data'][_0x31cc('0x9e')]!=_0x273321[_0x31cc('0x9e')])continue;const _0x53cb41=_0x9b6a23['subType']==_0x1cac2d;for(let _0x2a5e2d=0x0;_0x2a5e2d<_0x434af1['length'];_0x2a5e2d++){const _0x2d6b5d=_0x434af1[_0x2a5e2d];for(const _0x379080 of _0x9b6a23['getMarkers']()){const _0x495823=_0x379080[_0x31cc('0xe')]();if(_0x2d6b5d['isEqual'](_0x495823)){_0x53cb41?(_0x434af1['splice'](_0x2a5e2d,0x1),_0x2a5e2d--):_0x9b6a23[_0x31cc('0x138')](_0x379080[_0x31cc('0xfd')]);break;}}}}if(0x0==_0x434af1[_0x31cc('0xbe')])return null;const _0x2d6cc6=this['_suggestionFactory'][_0x31cc('0x78')](_0x31cc('0xb0'),_0x1cac2d,'join');for(const _0x26c2ec of this[_0x31cc('0xd7')]())if(_0x26c2ec[_0x31cc('0x107')]['id']==_0x3ea8f7['id']&&_0x31cc('0xb0')==_0x26c2ec[_0x31cc('0xce')]&&_0x26c2ec['data'][_0x31cc('0x9e')]==_0x273321[_0x31cc('0x9e')]&&_0x26c2ec['subType']==_0x1cac2d&&(_0x2d6cc6(_0x26c2ec['getRanges'](),_0x434af1)||_0x2d6cc6(_0x434af1,_0x26c2ec[_0x31cc('0xa7')]()))){for(const _0x132491 of _0x434af1)_0x26c2ec[_0x31cc('0xff')](_0x132491);return _0x26c2ec;}const _0x6fcb3c=_0x21e5dd(),_0xd5b570=_0x3ea8f7['id'],_0x40f8d8=_0x31cc('0xc1')+_0x1cac2d,_0x101409=this[_0x31cc('0x67')]({'id':_0x6fcb3c,'type':_0x40f8d8,'data':_0x273321,'createdAt':new Date(),'authorId':_0xd5b570,'attributes':_0x39a5a7});for(const _0x330e5e of _0x434af1)this[_0x31cc('0x13c')](_0x40f8d8,_0x6fcb3c,_0xd5b570,_0x330e5e,_0x5ba4b1[_0x31cc('0xae')]());return _0x101409;}[_0x31cc('0xca')](_0x36cf92,_0x17799f=null,_0x35ba90={}){if(_0x36cf92[_0x31cc('0xb7')])return null;const _0x1fb24c=this['editor'][_0x31cc('0x41')][_0x31cc('0xbb')](_0x31cc('0x13d'))['me'],_0x292beb=new _0x2de0cb(_0x36cf92[_0x31cc('0xf6')],_0x36cf92[_0x31cc('0x4b')]);for(const {suggestion:_0x4612be,meta:_0x5a2ade}of this[_0x31cc('0x46')](_0x292beb,_0x31cc('0xdb')))if(_0x5a2ade[_0x31cc('0xd3')]&&!_0x5a2ade[_0x31cc('0x23')]){if(_0x4612be[_0x31cc('0x7a')]){const _0x3aef13=_0x4612be[_0x31cc('0xa7')]()[_0x31cc('0x45')](_0x48b76c=>'$graveyard'!=_0x48b76c['root']['rootName']);_0x3aef13[_0x31cc('0xb4')](_0x486397=>_0x292beb[_0x31cc('0xbd')](_0x486397,!0x0))&&_0x4612be[_0x31cc('0x5f')]();if(_0x3aef13[_0x31cc('0xd1')](_0x2676b7=>_0x2676b7[_0x31cc('0xbd')](_0x292beb,!0x0))){const _0x44e2ec=this[_0x31cc('0x15')][_0x31cc('0x78')]('deletion',_0x17799f,_0x31cc('0xa1'));return this['forceDefaultExecution'](()=>_0x44e2ec([_0x292beb],null,_0x35ba90)),null;}}else{const _0xecc421=_0x292beb['getIntersection'](_0x4612be[_0x31cc('0xcd')]());null!==_0xecc421&&_0x4612be[_0x31cc('0x116')]([_0xecc421],null,_0x35ba90);}}if(_0x292beb[_0x31cc('0xf2')](),_0x292beb[_0x31cc('0xb7')]||'$graveyard'==_0x292beb[_0x31cc('0x3f')][_0x31cc('0x11b')])return null;let _0x3ef8b8=null,_0x2deb61=_0x292beb[_0x31cc('0xf6')],_0x56eedc=_0x292beb[_0x31cc('0x4b')];for(const {suggestion:_0x52d08a,meta:_0x129637}of this[_0x31cc('0x46')](_0x292beb,'deletion'))if(_0x129637[_0x31cc('0xd3')]){if(_0x52d08a[_0x31cc('0x7a')]&&this[_0x31cc('0xc8')]){let _0x3984f3=!0x0;for(const _0x4a7cd9 of _0x52d08a[_0x31cc('0xa7')]()){if(_0x4a7cd9[_0x31cc('0xbd')](_0x292beb,!0x0))return _0x52d08a;_0x292beb['containsRange'](_0x4a7cd9)||(_0x3984f3=!0x1);}_0x3984f3&&_0x52d08a[_0x31cc('0x5f')]();}else{const _0x456bcf=_0x52d08a['getFirstRange']();if(_0x456bcf[_0x31cc('0xbd')](_0x292beb,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x129637['containsRangeInObject'])continue;return _0x52d08a;}_0x2deb61=_0x2deb61[_0x31cc('0xe0')](_0x456bcf[_0x31cc('0xf6')])?_0x2deb61:_0x456bcf['start'],_0x56eedc=_0x56eedc[_0x31cc('0x22')](_0x456bcf[_0x31cc('0x4b')])?_0x56eedc:_0x456bcf[_0x31cc('0x4b')],_0x3ef8b8?_0x456bcf[_0x31cc('0xf6')]['isBefore'](_0x3ef8b8[_0x31cc('0xcd')]()['start'])?(_0x3ef8b8[_0x31cc('0x43')](),_0x3ef8b8=_0x52d08a):_0x52d08a[_0x31cc('0x43')]():_0x3ef8b8=_0x52d08a;}}if(_0x3ef8b8)return this[_0x31cc('0x83')](_0x3ef8b8,this[_0x31cc('0x134')][_0x31cc('0x11e')](_0x2deb61,_0x56eedc)),_0x3ef8b8;{const _0x3bd856=_0x21e5dd(),_0xe97e58=this[_0x31cc('0x134')][_0x31cc('0x11e')](_0x2deb61,_0x56eedc),_0x59c3c0=_0x1fb24c['id'],_0x14c74a=_0x17799f?_0x31cc('0xf5')+_0x17799f:_0x31cc('0x36'),_0x41cc00=this[_0x31cc('0x67')]({'id':_0x3bd856,'type':_0x14c74a,'createdAt':new Date(),'authorId':_0x59c3c0,'attributes':_0x35ba90});return this[_0x31cc('0x13c')](_0x14c74a,_0x3bd856,_0x59c3c0,_0xe97e58),_0x41cc00;}}['markMultiRangeDeletion'](_0x25fe77,_0x11585b='multi',_0x5549b6={}){const _0x186b0e=this[_0x31cc('0x120')][_0x31cc('0x41')][_0x31cc('0xbb')]('Users')['me'],_0x1930f3=_0x25fe77[_0x31cc('0xc5')](_0x2b52d7=>new _0x2de0cb(_0x2b52d7['start'],_0x2b52d7['end'])),_0x2b5b93=new Set();for(const _0x22f3a6 of _0x1930f3)for(const {suggestion:_0x2ef615,meta:_0x155d93}of this[_0x31cc('0x46')](_0x22f3a6,_0x31cc('0xdb')))_0x155d93['isOwn']&&!_0x155d93[_0x31cc('0x23')]&&_0x2b5b93[_0x31cc('0x80')](_0x2ef615);for(const _0x4af9d8 of _0x2b5b93)if(_0x4af9d8['isMultiRange']){const _0x410a70=_0x4af9d8['getRanges']();(!_0x4af9d8[_0x31cc('0x13b')]||!_0x4af9d8['attributes'][_0x31cc('0x90')])&&(_0x410a70[_0x31cc('0xb4')](_0x5c1eba=>_0x1930f3[_0x31cc('0xd1')](_0x36936e=>_0x36936e[_0x31cc('0xbd')](_0x5c1eba,!0x0)))&&_0x4af9d8[_0x31cc('0x5f')]());if(_0x1930f3[_0x31cc('0xb4')](_0x2d7fca=>_0x410a70[_0x31cc('0xd1')](_0x5a38ce=>_0x5a38ce['containsRange'](_0x2d7fca,!0x0)))){const _0x495720=this[_0x31cc('0x15')][_0x31cc('0x78')]('deletion',_0x11585b,_0x31cc('0xa1'));return this[_0x31cc('0x10d')](()=>_0x495720(_0x25fe77,null,_0x5549b6)),null;}}else{const _0x1c69d1=_0x4af9d8['getFirstRange']();_0x1930f3['some'](_0x417770=>_0x417770[_0x31cc('0xbd')](_0x1c69d1,!0x0))&&_0x4af9d8['discard']();if(_0x1930f3[_0x31cc('0xb4')](_0xe09860=>_0x1c69d1[_0x31cc('0xbd')](_0xe09860,!0x0))){const _0x2827c6=this[_0x31cc('0x15')][_0x31cc('0x78')](_0x31cc('0x36'),_0x11585b,_0x31cc('0xa1'));return this[_0x31cc('0x10d')](()=>_0x2827c6(_0x1930f3,null,_0x5549b6)),null;}}const _0xa298a1=this[_0x31cc('0x15')][_0x31cc('0x78')](_0x31cc('0x36'),_0x11585b,_0x31cc('0x4f'));let _0x25bc6e=null;for(const _0x2814c0 of this['getSuggestions']())if(_0x2814c0[_0x31cc('0x107')]['id']==_0x186b0e['id']&&_0x2814c0[_0x31cc('0xc2')]&&_0x31cc('0x36')==_0x2814c0[_0x31cc('0xce')]&&_0x2814c0[_0x31cc('0x37')]==_0x11585b&&(_0xa298a1(_0x2814c0[_0x31cc('0xa7')](),_0x1930f3)||_0xa298a1(_0x1930f3,_0x2814c0[_0x31cc('0xa7')]()))){if(_0x25bc6e){if(_0x2814c0[_0x31cc('0x6')]&&_0x2814c0[_0x31cc('0x6')][_0x31cc('0xbe')])continue;for(const _0x46f805 of _0x2814c0[_0x31cc('0xa7')]())_0x25bc6e[_0x31cc('0x51')](_0x46f805)||_0x25bc6e[_0x31cc('0xff')](_0x46f805);_0x2814c0[_0x31cc('0x43')]();}else{_0x25bc6e=_0x2814c0;for(const _0x18a2f0 of _0x1930f3)_0x2814c0[_0x31cc('0x51')](_0x18a2f0)||_0x2814c0['addRange'](_0x18a2f0);}}if(_0x25bc6e)return _0x25bc6e;_0x2b5b93[_0x31cc('0x135')]();for(const _0x5e7fc5 of _0x1930f3)for(const {suggestion:_0x5e06a9,meta:_0x4cac8f}of this['_findSuggestions'](_0x5e7fc5,'deletion'))_0x4cac8f['isOwn']&&_0x2b5b93[_0x31cc('0x80')](_0x5e06a9);for(const _0x565165 of _0x2b5b93){const _0x3deed3=_0x565165['getRanges']();if(!_0x5549b6||!_0x5549b6[_0x31cc('0x90')]){if(_0x1930f3[_0x31cc('0xb4')](_0x287363=>_0x3deed3[_0x31cc('0xd1')](_0x209d23=>_0x209d23[_0x31cc('0xbd')](_0x287363,!0x0))))return _0x565165;}(!_0x565165[_0x31cc('0x13b')]||!_0x565165[_0x31cc('0x13b')][_0x31cc('0x90')])&&(_0x3deed3[_0x31cc('0xb4')](_0x36e32e=>_0x1930f3[_0x31cc('0xd1')](_0xcc360=>_0xcc360[_0x31cc('0xbd')](_0x36e32e,!0x0)))&&_0x565165['discard']());}const _0x2d04d6=_0x21e5dd(),_0x2435fd=_0x186b0e['id'],_0x28469d='deletion:'+_0x11585b,_0x45cfe5=this[_0x31cc('0x67')]({'id':_0x2d04d6,'type':_0x28469d,'createdAt':new Date(),'authorId':_0x2435fd,'attributes':_0x5549b6});for(const _0x4e8708 of _0x1930f3)_0x4e8708[_0x31cc('0xf2')](),_0x4e8708['isCollapsed']||'$graveyard'==_0x4e8708[_0x31cc('0x3f')][_0x31cc('0x11b')]||this[_0x31cc('0x13c')](_0x28469d,_0x2d04d6,_0x2435fd,_0x4e8708,_0x5ba4b1[_0x31cc('0xae')]());return _0x45cfe5;}['_setSuggestionRange'](_0x6d31cc,_0x23f1ab){const _0x5ad399=_0x6d31cc['getFirstMarker']();this[_0x31cc('0x134')]['change'](_0x1fc312=>{_0x1fc312[_0x31cc('0x65')](_0x5ad399,{'range':_0x23f1ab});});}[_0x31cc('0x14')](_0x5c174c){const _0xbfb830=_0x5c174c['id'],_0x179e91=this['editor'][_0x31cc('0xda')]['get'](_0x31cc('0x7d'));this[_0x31cc('0xa6')][_0x31cc('0x55')](_0xbfb830)||this[_0x31cc('0xa6')]['addCommentThread']({'channelId':_0x179e91,'threadId':_0xbfb830,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xf03fb8=this[_0x31cc('0xa6')][_0x31cc('0xc4')](_0xbfb830);_0xf03fb8[_0x31cc('0x108')]('isRemovable'),_0xf03fb8[_0x31cc('0xb9')]=!0x1,_0x5c174c[_0x31cc('0x6')]=_0xf03fb8;}['_checkSuggestionCorrectness'](_0x27a7b3,_0x34a135,_0x20e505,_0x13b4d1){if(_0x27a7b3[_0x31cc('0xce')]!=_0x34a135||_0x27a7b3[_0x31cc('0x37')]!=_0x20e505||_0x27a7b3[_0x31cc('0xd6')]['id']!=_0x13b4d1)throw this['editor']['enableReadOnlyMode'](_0x31cc('0x96')),new _0x168c56(_0x31cc('0x96'),this);}[_0x31cc('0x12c')](_0x354f85,_0xb1398d){const _0x3960c8=_0x354f85[_0x31cc('0xcd')]();if(_0xb1398d[_0x31cc('0x24')](_0x3960c8))_0x354f85['removeMarkers']();else{if(_0x3960c8['containsRange'](_0xb1398d)){const _0x2e2d7a=this['_model'][_0x31cc('0x2')](_0xb1398d[_0x31cc('0xf6')][_0x31cc('0xde')],_0x31cc('0x4b'));this[_0x31cc('0x83')](_0x354f85,this['_model']['createRange'](_0x3960c8[_0x31cc('0xf6')],_0x2e2d7a));const _0x47fc3b=_0x21e5dd(),_0x55d240=_0x354f85[_0x31cc('0xd6')]['id'],_0x36da8=_0x354f85[_0x31cc('0xce')]+':'+_0x354f85['subType'];this[_0x31cc('0x67')]({'id':_0x47fc3b,'type':_0x36da8,'createdAt':new Date(),'authorId':_0x55d240,'data':_0x354f85[_0x31cc('0x88')],'attributes':_0x354f85[_0x31cc('0x13b')]});const _0x1a930a=this['_model'][_0x31cc('0x2')](_0xb1398d[_0x31cc('0x4b')]['parent'],_0x31cc('0x77')),_0x8db7bf=this[_0x31cc('0x134')][_0x31cc('0x11e')](_0x1a930a,_0x3960c8[_0x31cc('0x4b')]);this[_0x31cc('0x13c')](_0x36da8,_0x47fc3b,_0x55d240,_0x8db7bf);}else{if(_0x3960c8['containsPosition'](_0xb1398d[_0x31cc('0xf6')])){const _0x3bb955=this[_0x31cc('0x134')]['createPositionAt'](_0xb1398d[_0x31cc('0xf6')]['nodeBefore'],_0x31cc('0x4b'));this[_0x31cc('0x83')](_0x354f85,this[_0x31cc('0x134')][_0x31cc('0x11e')](_0x3960c8[_0x31cc('0xf6')],_0x3bb955));}else{const _0x40fa86=this['_model'][_0x31cc('0x2')](_0xb1398d[_0x31cc('0x4b')]['parent'],_0x31cc('0x77'));this[_0x31cc('0x83')](_0x354f85,this['_model'][_0x31cc('0x11e')](_0x40fa86,_0x3960c8[_0x31cc('0x4b')]));}}}}[_0x31cc('0x121')](_0x3db95f){for(const {suggestion:_0x2a287a,meta:_0x242382}of this['_findSuggestions'](_0x3db95f,_0x31cc('0xdb'))){if(!_0x242382[_0x31cc('0xd3')])continue;const _0x23689c=_0x2a287a[_0x31cc('0xa7')]();for(const _0x2a9283 of _0x23689c)if(!_0x3db95f[_0x31cc('0xfc')](_0x2a9283)[_0x31cc('0xbe')])return!0x0;}return!0x1;}[_0x31cc('0xe1')](_0x35d745){const _0x29591c=this[_0x31cc('0x120')][_0x31cc('0x41')][_0x31cc('0xbb')]('Users')[_0x31cc('0xcf')](_0x35d745);if(!_0x29591c)throw new _0x168c56(_0x31cc('0x7b'),this);return _0x29591c;}[_0x31cc('0x103')](_0x409f93){const _0x4d6b29=this[_0x31cc('0x120')][_0x31cc('0x41')][_0x31cc('0xbb')](_0x31cc('0x13d')),_0xb175cf=_0x6518e1(_0x31cc('0x18')+_0x409f93),_0x3022e9=_0x4d6b29['getUser'](_0xb175cf);return _0x3022e9||_0x4d6b29[_0x31cc('0xab')]({'id':_0xb175cf,'name':_0x409f93});}['_createSuggestion'](_0x4611fd,_0x4fc442,_0x25726f,_0x2b4fe6,_0x411385){const _0x57eaae=this[_0x31cc('0xe1')](_0x2b4fe6),_0x15287e=this[_0x31cc('0x15')][_0x31cc('0x123')](_0x4611fd,_0x4fc442,_0x25726f,_0x57eaae,_0x411385,_0x145e29=>this[_0x31cc('0xc0')](_0x25726f,{'attributes':_0x145e29}));return this[_0x31cc('0xac')](_0x15287e,_0x31cc('0xa1'),()=>{this['_updateSuggestionData'](_0x25726f,{'state':_0x31cc('0x106')});},{'priority':_0x31cc('0x13e')}),this[_0x31cc('0xac')](_0x15287e,_0x31cc('0x5f'),()=>{this[_0x31cc('0xc0')](_0x25726f,{'state':_0x31cc('0x145')});},{'priority':_0x31cc('0x13e')}),this[_0x31cc('0x3a')][_0x31cc('0x32')](_0x25726f,_0x15287e),this['_suggestionState']['set'](_0x15287e,'notReady'),_0x15287e;}[_0x31cc('0x1b')](_0x51aa02){const _0x4859bd=_0x51aa02['split'](':');return{'group':_0x4859bd[0x0],'type':_0x4859bd[0x1],'subType':_0x4859bd['length']>=0x5?_0x4859bd[0x2]:null,'id':_0x4859bd[_0x31cc('0xbe')]<0x5?_0x4859bd[0x2]:_0x4859bd[0x3],'authorId':_0x4859bd[_0x31cc('0xbe')]<0x5?_0x4859bd[0x3]:_0x4859bd[0x4],'markerCount':0x6==_0x4859bd[_0x31cc('0xbe')]?_0x4859bd[0x5]:null};}[_0x31cc('0x30')](_0x15ab70,_0x581bba,_0x1c2b79){const _0x49695f=_0x15ab70['getFirstRange'](),_0x3b37e1=_0x49695f[_0x31cc('0xf6')],_0x205cc4=_0x49695f['end'];this[_0x31cc('0x83')](_0x15ab70,this[_0x31cc('0x134')]['createRange'](_0x3b37e1,_0x581bba));const _0x1beb69=_0x21e5dd(),_0x4320b9=_0x15ab70[_0x31cc('0xd6')]['id'],_0xfbf0b1=_0x15ab70[_0x31cc('0xce')]+(_0x15ab70[_0x31cc('0x37')]?':'+_0x15ab70[_0x31cc('0x37')]:'');this[_0x31cc('0x67')]({'id':_0x1beb69,'type':_0xfbf0b1,'createdAt':new Date(),'authorId':_0x4320b9,'originalSuggestionId':_0x15ab70['id'],'attributes':_0x15ab70['attributes'],'data':_0x15ab70['data']}),_0x31cc('0xb0')==_0x15ab70['type']&&(_0x1c2b79=this[_0x31cc('0x134')]['createPositionBefore'](_0x1c2b79[_0x31cc('0xbc')])),this[_0x31cc('0x13c')](_0xfbf0b1,_0x1beb69,_0x4320b9,this[_0x31cc('0x134')]['createRange'](_0x1c2b79,_0x205cc4));}[_0x31cc('0x46')](_0x4079fd,_0x47d6db=null){const _0x385753=[],_0x377db6=this[_0x31cc('0x134')][_0x31cc('0x13')],_0xac2d9e=this[_0x31cc('0x120')][_0x31cc('0x41')][_0x31cc('0xbb')](_0x31cc('0x13d'))['me'];for(const _0x317c76 of this[_0x31cc('0xd7')]())if(_0x317c76[_0x31cc('0xc2')]&&(!_0x47d6db||_0x317c76[_0x31cc('0xce')]==_0x47d6db))for(const _0x2c1ccb of _0x317c76[_0x31cc('0xa7')]()){const _0x5039c0=_0x4079fd[_0x31cc('0xf6')]['isEqual'](_0x2c1ccb[_0x31cc('0x4b')])||_0x4079fd[_0x31cc('0x4b')][_0x31cc('0x24')](_0x2c1ccb['start']);if(_0x5039c0||_0x4079fd[_0x31cc('0x1a')](_0x2c1ccb)){const _0x42d432=_0x4079fd['containsRange'](_0x2c1ccb)&&Bt(_0x377db6,_0x2c1ccb[_0x31cc('0xf6')],_0x4079fd),_0x22ba72=_0x2c1ccb[_0x31cc('0xbd')](_0x4079fd)&&Bt(_0x377db6,_0x4079fd[_0x31cc('0xf6')],_0x2c1ccb);_0x385753['push']({'suggestion':_0x317c76,'meta':{'isOwn':_0xac2d9e==_0x317c76['author'],'isNextTo':_0x5039c0,'isInsideObject':_0x42d432,'containsRangeInObject':_0x22ba72}});break;}}return _0x385753;}[_0x31cc('0x13c')](_0x4407f4,_0x5894af,_0x5d92c0,_0x2853bd,_0x36349e){this[_0x31cc('0x134')]['change'](_0x107bc5=>{let _0x401f12=_0x31cc('0x124')+_0x4407f4+':'+_0x5894af+':'+_0x5d92c0;_0x36349e&&(_0x401f12=_0x401f12+':'+_0x36349e),_0x107bc5[_0x31cc('0x76')](_0x401f12,{'range':_0x2853bd,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x31cc('0x8e')](_0x4b1af3){const _0x3ca4c8=_0x4b1af3[_0x31cc('0x9f')],_0x9d07d4=_0x4b1af3[_0x31cc('0x2c')];_0x4b1af3[_0x31cc('0x9f')]=null,null!=_0x3ca4c8&&(_0x3ca4c8[_0x31cc('0x2c')]=null),_0x4b1af3[_0x31cc('0x2c')]=null,null!=_0x9d07d4&&(_0x9d07d4[_0x31cc('0x9f')]=null),'ready'==this[_0x31cc('0x2b')][_0x31cc('0xbb')](_0x4b1af3)&&(this[_0x31cc('0x2b')][_0x31cc('0x32')](_0x4b1af3,_0x31cc('0x53')),this[_0x31cc('0xa5')](_0x31cc('0x66'),_0x4b1af3,_0x3ca4c8,_0x9d07d4));}[_0x31cc('0x67')](_0x2b31c7){const _0x4ce580=_0x2b31c7['id'],_0xe2357e=this[_0x31cc('0x126')](_0x2b31c7);if(this[_0x31cc('0x21')]&&this[_0x31cc('0x21')]['addSuggestion']){const _0x584dcf=this[_0x31cc('0x120')][_0x31cc('0x41')][_0x31cc('0xbb')]('PendingActions'),_0x4571dc=_0xe2357e['hasComments'],_0x155786=_0xe2357e[_0x31cc('0x37')]?_0xe2357e['type']+':'+_0xe2357e['subType']:_0xe2357e[_0x31cc('0xce')],_0x212c3f=this[_0x31cc('0x120')][_0x31cc('0x8b')],_0x4c22bf=_0x584dcf[_0x31cc('0x80')](_0x4ff402(_0x212c3f,_0x31cc('0x1f'))),_0x4d545d={'id':_0x4ce580,'type':_0x155786,'hasComments':_0x4571dc,'data':_0x2b31c7[_0x31cc('0x88')]||null,'originalSuggestionId':_0x2b31c7[_0x31cc('0x74')]||null,'attributes':_0xe2357e['attributes']};this[_0x31cc('0x21')][_0x31cc('0x16')](_0x4d545d)['then'](_0x326a8e=>{_0xe2357e[_0x31cc('0xb2')]=!0x0,_0x584dcf[_0x31cc('0xec')](_0x4c22bf),_0x326a8e&&_0x326a8e[_0x31cc('0x68')]&&(this[_0x31cc('0x3a')][_0x31cc('0xbb')](_0x4ce580)[_0x31cc('0x68')]=_0x326a8e[_0x31cc('0x68')]);})[_0x31cc('0x73')](_0x590418=>{throw _0x19389f(_0x31cc('0x20')),this['editor'][_0x31cc('0x3')][_0x31cc('0xdc')]({'isUndoable':!0x1},()=>{_0xe2357e[_0x31cc('0x5f')]();}),_0xe2357e[_0x31cc('0x54')](),this['_suggestions'][_0x31cc('0x139')](_0xe2357e['id']),this[_0x31cc('0x2b')][_0x31cc('0x139')](_0xe2357e),_0x590418;});}return _0xe2357e;}['_updateSuggestionData'](_0x40a66e,_0xae2908){const _0x4f41f1=this[_0x31cc('0x120')][_0x31cc('0x41')]['get'](_0x31cc('0x119')),_0x2f46d1=this[_0x31cc('0xdd')](_0x40a66e);if(this['_adapter']&&this[_0x31cc('0x21')][_0x31cc('0x50')]){if(_0x2f46d1[_0x31cc('0xb2')]){const _0x30a32c=_0x4f41f1[_0x31cc('0x80')](_0x4ff402(this['editor']['locale'],_0x31cc('0x1f')));this['_adapter'][_0x31cc('0x50')](_0x40a66e,_0xae2908)['then'](()=>{_0x4f41f1[_0x31cc('0xec')](_0x30a32c);});}else _0x2f46d1['on'](_0x31cc('0x4d'),()=>{this['_updateSuggestionData'](_0x40a66e,_0xae2908);});}}[_0x31cc('0x40')](_0x1571c6){if(!this[_0x31cc('0x21')]||!this[_0x31cc('0x21')][_0x31cc('0xdd')])throw new _0x168c56(_0x31cc('0x4c'),this);return this[_0x31cc('0x21')]['getSuggestion'](_0x1571c6);}[_0x31cc('0x9a')](_0x5c1db9){const {id:_0x4ef164,type:_0x386a77,subType:_0x44056b,authorId:_0x2beca1}=this[_0x31cc('0x1b')](_0x5c1db9),_0x5b7b7b=this[_0x31cc('0x3a')][_0x31cc('0xbb')](_0x4ef164)||this[_0x31cc('0x12d')](_0x386a77,_0x44056b,_0x4ef164,_0x2beca1,{});switch(this[_0x31cc('0x5a')](_0x5b7b7b,_0x386a77,_0x44056b,_0x2beca1),this[_0x31cc('0x2b')][_0x31cc('0xbb')](_0x5b7b7b)){case _0x31cc('0x100'):this[_0x31cc('0x40')](_0x4ef164)[_0x31cc('0x29')](_0x215616=>{let _0x369def=Promise[_0x31cc('0x6e')]();_0x215616[_0x31cc('0x143')]&&(_0x369def=this[_0x31cc('0xa6')][_0x31cc('0x82')]({'channelId':this[_0x31cc('0x120')][_0x31cc('0xda')]['get'](_0x31cc('0x7d')),'threadId':_0x4ef164})),_0x369def['then'](()=>{this[_0x31cc('0x126')](_0x215616)['_saved']=!0x0;});}),this[_0x31cc('0x2b')][_0x31cc('0x32')](_0x5b7b7b,'markerReady');break;case _0x31cc('0x53'):this[_0x31cc('0xc0')](_0x4ef164,{'state':'open'});case'dataReady':this[_0x31cc('0x2b')]['set'](_0x5b7b7b,_0x31cc('0xea')),this['fire'](_0x31cc('0x3c'),_0x5b7b7b);break;case'ready':this[_0x31cc('0xa5')](_0x31cc('0xee'),_0x5b7b7b);}return _0x5b7b7b[_0x31cc('0x35')](_0x5c1db9),_0x5b7b7b;}[_0x31cc('0x8')](_0x357c0c){const _0x27b768=Array[_0x31cc('0x95')](_0x357c0c)[_0x31cc('0x45')](_0x5314dc=>!_0x5314dc['isMultiRange']),_0x5b8705=this[_0x31cc('0xd7')]({'skipNotAttached':!0x0})[_0x31cc('0x45')](_0x46d9a9=>!_0x46d9a9['isMultiRange']),_0x283b66=_0x5b8705[_0x31cc('0x45')](_0x5809a2=>!_0x357c0c[_0x31cc('0x6b')](_0x5809a2)),_0x164aeb=new Map(_0x5b8705[_0x31cc('0xc5')](_0x2a2cb7=>[_0x2a2cb7,this[_0x31cc('0x15')][_0x31cc('0x78')](_0x2a2cb7[_0x31cc('0xce')],_0x2a2cb7[_0x31cc('0x37')],'chain')])),_0x372059=new Map(_0x5b8705['map'](_0x4be102=>[_0x4be102,_0x4be102[_0x31cc('0xcd')]()])),_0x30a2ee=new Set(),_0x3eb1eb=new Set();for(let _0x269c3c=0x0;_0x269c3c<_0x27b768[_0x31cc('0xbe')];_0x269c3c++)_0x48cddf(_0x27b768[_0x269c3c],_0x27b768,_0x269c3c+0x1);for(let _0x1153dc=0x0;_0x1153dc<_0x27b768[_0x31cc('0xbe')];_0x1153dc++)_0x48cddf(_0x27b768[_0x1153dc],_0x283b66,0x0);for(let _0x35c2b2=0x0;_0x35c2b2<_0x27b768[_0x31cc('0xbe')];_0x35c2b2++){const _0x44c011=_0x27b768[_0x35c2b2];!_0x3eb1eb['has'](_0x44c011)&&_0x44c011[_0x31cc('0x9f')]&&(_0x44c011[_0x31cc('0x9f')]['next']===_0x44c011&&(_0x44c011[_0x31cc('0x9f')][_0x31cc('0x2c')]=null),_0x44c011[_0x31cc('0x9f')]=null),!_0x30a2ee[_0x31cc('0x6b')](_0x44c011)&&_0x44c011[_0x31cc('0x2c')]&&(_0x44c011[_0x31cc('0x2c')]['previous']===_0x44c011&&(_0x44c011['next'][_0x31cc('0x9f')]=null),_0x44c011[_0x31cc('0x2c')]=null);}function _0x48cddf(_0x5d697c,_0x39c4b3,_0x2a08c5){for(let _0x4cb126=_0x2a08c5;_0x4cb126<_0x39c4b3[_0x31cc('0xbe')];_0x4cb126++){const _0x42da4c=_0xd364(_0x5d697c,_0x39c4b3[_0x4cb126]);_0x42da4c&&(_0x42da4c[0x0][_0x31cc('0x2c')]=_0x42da4c[0x1],_0x42da4c[0x1]['previous']=_0x42da4c[0x0],_0x30a2ee[_0x31cc('0x80')](_0x42da4c[0x0]),_0x3eb1eb[_0x31cc('0x80')](_0x42da4c[0x1]));}}function _0xd364(_0x39fc12,_0x20fb14){if(_0x39fc12[_0x31cc('0x107')]['id']!==_0x20fb14[_0x31cc('0x107')]['id'])return null;const _0x17e3fb=_0x164aeb[_0x31cc('0xbb')](_0x39fc12)(_0x39fc12,_0x20fb14,_0x372059[_0x31cc('0xbb')](_0x39fc12),_0x372059[_0x31cc('0xbb')](_0x20fb14));if(!_0x17e3fb)return null;return _0x164aeb[_0x31cc('0xbb')](_0x20fb14)(_0x39fc12,_0x20fb14,_0x372059[_0x31cc('0xbb')](_0x39fc12),_0x372059['get'](_0x20fb14))?_0x17e3fb[0x1][_0x31cc('0x6')]&&_0x17e3fb[0x1][_0x31cc('0x6')]['length']?null:_0x17e3fb:null;}}[_0x31cc('0xb3')](_0x383b00){const _0x3b0953=Array['from'](_0x383b00),_0x380ba3=this[_0x31cc('0xd7')]({'skipNotAttached':!0x0}),_0x27520b=_0x380ba3[_0x31cc('0x45')](_0x3372bb=>!_0x383b00[_0x31cc('0x6b')](_0x3372bb)),_0x3f236b=new Map(_0x3b0953[_0x31cc('0xc5')](_0x4ab0a4=>[_0x4ab0a4,this[_0x31cc('0x15')][_0x31cc('0x78')](_0x4ab0a4[_0x31cc('0xce')],_0x4ab0a4[_0x31cc('0x37')],'join')])),_0x358feb=new Map(_0x380ba3[_0x31cc('0xc5')](_0x8a7e5f=>[_0x8a7e5f,_0x8a7e5f[_0x31cc('0xa7')]()]));for(let _0x30e59c=0x0;_0x30e59c<_0x3b0953[_0x31cc('0xbe')];_0x30e59c++){if(_0x5ec354(this,_0x3b0953[_0x30e59c],_0x3b0953,_0x30e59c+0x1))return!0x0;}for(let _0x15224d=0x0;_0x15224d<_0x3b0953['length'];_0x15224d++){if(_0x5ec354(this,_0x3b0953[_0x15224d],_0x27520b,0x0))return!0x0;}return!0x1;function _0x5ec354(_0x2d7313,_0x650c6a,_0x4526ad,_0x4f7cbd){for(let _0x4f0cce=_0x4f7cbd;_0x4f0cce<_0x4526ad[_0x31cc('0xbe')];_0x4f0cce++){const _0x2ff3c1=_0x4526ad[_0x4f0cce];if(_0x2ff3c1['type']!==_0x650c6a[_0x31cc('0xce')]||_0x2ff3c1[_0x31cc('0x107')]['id']!==_0x650c6a[_0x31cc('0x107')]['id']||_0x2ff3c1[_0x31cc('0x37')]!==_0x650c6a[_0x31cc('0x37')])continue;const _0x10536a=_0x3f236b[_0x31cc('0xbb')](_0x650c6a),_0x5ac1b1=_0x358feb[_0x31cc('0xbb')](_0x650c6a),_0xbc9a8=_0x358feb[_0x31cc('0xbb')](_0x2ff3c1),_0x86cad=_0x650c6a[_0x31cc('0x6')]&&_0x650c6a[_0x31cc('0x6')][_0x31cc('0xbe')],_0x18f0f6=_0x2ff3c1[_0x31cc('0x6')]&&_0x2ff3c1[_0x31cc('0x6')][_0x31cc('0xbe')];if(!_0x86cad&&_0x10536a(_0xbc9a8,_0x5ac1b1))return _0x2d7313['_joinSuggestions'](_0x2ff3c1,_0x650c6a),_0x358feb[_0x31cc('0x139')](_0x650c6a),!0x0;if(!_0x18f0f6&&_0x10536a(_0x5ac1b1,_0xbc9a8))return _0x2d7313[_0x31cc('0x85')](_0x650c6a,_0x2ff3c1),_0x358feb[_0x31cc('0x139')](_0x2ff3c1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1a4248,_0xc39d5e){if(_0x1a4248['isMultiRange'])for(const _0x17000b of _0xc39d5e[_0x31cc('0xa7')]())_0x1a4248['addRange'](_0x17000b);else{const _0x471c08=_0xc39d5e['getFirstRange']()[_0x31cc('0x4b')];this[_0x31cc('0x83')](_0x1a4248,this[_0x31cc('0x134')][_0x31cc('0x11e')](_0x1a4248[_0x31cc('0xcd')]()[_0x31cc('0xf6')],_0x471c08));}_0xc39d5e[_0x31cc('0x43')]();}}class Dt{constructor(_0x55c915){this['_editor']=_0x55c915,this[_0x31cc('0x134')]=_0x55c915[_0x31cc('0x3')],this[_0x31cc('0x62')]=new Map(),this[_0x31cc('0x10b')]=new Map(),this[_0x31cc('0x7e')]();}['buildSuggestion'](_0x4d9782,_0x54e9d2,_0xf60fe6,_0x3c528e,_0x71e626,_0x3411a1){return new _0x5ba4b1(this[_0x31cc('0x134')],{'type':_0x4d9782,'subType':_0x54e9d2,'id':_0xf60fe6,'author':_0x3c528e,'creator':_0x3c528e,'attributes':_0x71e626,'onAttributesChange':_0x3411a1,'onAccept':(..._0xe0d47)=>this[_0x31cc('0x78')](_0x4d9782,_0x54e9d2,_0x31cc('0xa1'))(..._0xe0d47),'onDiscard':(..._0x72476d)=>this['getSuggestionCallback'](_0x4d9782,_0x54e9d2,'discard')(..._0x72476d)});}[_0x31cc('0x137')](_0x530c06,_0x25efb2,_0x1503b6,_0x358fd7){const _0x3ea3b3=_0x530c06+':'+_0x25efb2+':'+_0x1503b6;this[_0x31cc('0x62')][_0x31cc('0x32')](_0x3ea3b3,_0x358fd7);}[_0x31cc('0x78')](_0x3081ea,_0x505e1d,_0x49bf72){const _0x32ceec=_0x3081ea+':'+_0x505e1d+':'+_0x49bf72;return this['_customCallbacks'][_0x31cc('0xbb')](_0x32ceec)||this['_defaultCallbacks'][_0x31cc('0xbb')](_0x3081ea+':'+_0x49bf72);}[_0x31cc('0x7e')](){const _0x37b530=()=>{},_0x10dd3e=_0x51416a=>{_0x51416a['sort']((_0x56d182,_0x3b1664)=>_0x56d182[_0x31cc('0xf6')][_0x31cc('0xe0')](_0x3b1664[_0x31cc('0xf6')])?0x1:-0x1),this[_0x31cc('0x134')][_0x31cc('0x129')](_0x536f22=>{for(const _0x38d814 of _0x51416a){let _0x2e7c10;_0x2e7c10=_0x38d814[_0x31cc('0x4b')]['isAtEnd']&&_0x38d814[_0x31cc('0x4b')]['parent']==_0x38d814[_0x31cc('0xf6')]['nodeAfter']?_0x536f22[_0x31cc('0x10a')](_0x38d814[_0x31cc('0xf6')]['nodeAfter'],'on'):_0x536f22['createSelection'](_0x38d814),this[_0x31cc('0x134')][_0x31cc('0xb5')](_0x2e7c10,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x34701b=(_0x1cb1d4,_0x165567)=>{this[_0x31cc('0x134')]['change'](_0x3f2c4b=>{const {commandName:_0x56779d,commandParams:_0x3a6aad=[]}=_0x165567,_0x403e18=_0x1cb1d4[_0x31cc('0xc5')](_0x554dbf=>(_t(_0x554dbf)&&(_0x554dbf=this[_0x31cc('0x134')]['createRange'](_0x554dbf['end'])),_0x554dbf))[_0x31cc('0x45')](_0x2b80b5=>'$graveyard'!==_0x2b80b5[_0x31cc('0x3f')][_0x31cc('0x11b')]);if(_0x403e18[_0x31cc('0xbe')]<0x1)return;const _0x474a7b=Array[_0x31cc('0x95')](this[_0x31cc('0x134')]['document'][_0x31cc('0x11a')]['getRanges']())[_0x31cc('0xc5')](_0x37499f=>_0x2de0cb[_0x31cc('0x11c')](_0x37499f));_0x3f2c4b[_0x31cc('0x10')](_0x403e18);for(const _0x107523 of this[_0x31cc('0xb')]['commands']['commands']())_0x107523[_0x31cc('0x9c')]();_0x3a6aad['push']({'forceDefaultExecution':!0x0}),this[_0x31cc('0xb')]['execute'](_0x56779d,..._0x3a6aad);const _0x155fd5=_0x474a7b['filter'](_0x433f93=>_0x31cc('0x133')!=_0x433f93[_0x31cc('0x3f')][_0x31cc('0x11b')]);_0x155fd5['length']>0x0&&_0x3f2c4b[_0x31cc('0x10')](_0x155fd5);for(const _0x5d532f of _0x474a7b)_0x5d532f[_0x31cc('0xf2')]();});},_0x3f5637=(_0x5be01d,_0x2da861)=>0x1==_0x5be01d[_0x31cc('0xbe')]&&0x1==_0x2da861[_0x31cc('0xbe')]&&_0x5be01d[0x0][_0x31cc('0x4b')][_0x31cc('0x24')](_0x2da861[0x0]['start']),_0x3c729d=(_0x16818c,_0x316a83,_0x712353,_0xd91ae1)=>xt(_0x16818c,_0x316a83,_0x712353,_0xd91ae1,this[_0x31cc('0x134')])?[_0x16818c,_0x316a83]:xt(_0x316a83,_0x16818c,_0xd91ae1,_0x712353,this[_0x31cc('0x134')])?[_0x316a83,_0x16818c]:null;this[_0x31cc('0x10b')][_0x31cc('0x32')](_0x31cc('0x130'),_0x37b530),this['_defaultCallbacks']['set'](_0x31cc('0x61'),_0x10dd3e),this[_0x31cc('0x10b')]['set']('insertion:join',_0x3f5637),this[_0x31cc('0x10b')][_0x31cc('0x32')]('insertion:chain',_0x3c729d),this[_0x31cc('0x10b')]['set'](_0x31cc('0x118'),_0x10dd3e),this[_0x31cc('0x10b')][_0x31cc('0x32')](_0x31cc('0x142'),_0x37b530),this['_defaultCallbacks'][_0x31cc('0x32')](_0x31cc('0x3d'),_0x3f5637),this[_0x31cc('0x10b')][_0x31cc('0x32')]('deletion:chain',_0x3c729d),this[_0x31cc('0x10b')]['set']('formatInline:accept',_0x34701b),this[_0x31cc('0x10b')][_0x31cc('0x32')](_0x31cc('0x8c'),_0x37b530),this[_0x31cc('0x10b')][_0x31cc('0x32')](_0x31cc('0x136'),_0x3f5637),this['_defaultCallbacks'][_0x31cc('0x32')](_0x31cc('0xc9'),_0x37b530),this['_defaultCallbacks'][_0x31cc('0x32')](_0x31cc('0x128'),_0x34701b),this['_defaultCallbacks'][_0x31cc('0x32')](_0x31cc('0x4e'),_0x37b530),this[_0x31cc('0x10b')]['set'](_0x31cc('0xa8'),_0x3f5637),this['_defaultCallbacks'][_0x31cc('0x32')](_0x31cc('0xfa'),_0x37b530);}}function Bt(_0x247d09,_0x241072,_0xab5b31){for(const _0x481ae9 of _0x241072[_0x31cc('0xbc')][_0x31cc('0xf3')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x481ae9[_0x31cc('0x3f')]==_0x481ae9)return!0x1;if(!_0xab5b31[_0x31cc('0x6c')](_0x481ae9))return!0x1;if(_0x247d09[_0x31cc('0xa2')](_0x481ae9)||_0x247d09['isLimit'](_0x481ae9))return!0x0;}return!0x1;}function _t(_0x367f20){return _0x367f20[_0x31cc('0x4b')][_0x31cc('0xbc')]==_0x367f20[_0x31cc('0xf6')][_0x31cc('0x1')]&&_0x367f20['end'][_0x31cc('0x13a')];}function Mt(_0x4ce4c9,_0x553a5e,_0x30621d,_0x2b69e0){const _0x42610d=_0x4cac75=>!_0x4cac75[_0x31cc('0xd2')]['is'](_0x31cc('0x59'))&&!_0x2b69e0['isObject'](_0x4cac75[_0x31cc('0xd2')]),_0x154933=_0x4ce4c9['start']['getLastMatchingPosition'](_0x42610d),_0x55fd21=_0x4ce4c9[_0x31cc('0x4b')][_0x31cc('0xed')](_0x42610d,{'direction':_0x31cc('0xa4')});return(!_0x4ce4c9['start'][_0x31cc('0x24')](_0x154933)||!_0x4ce4c9[_0x31cc('0x4b')][_0x31cc('0x24')](_0x55fd21))&&(_0x154933[_0x31cc('0xe0')](_0x55fd21)?_0x30621d[_0x31cc('0x65')](_0x553a5e,{'range':_0x30621d['createRange'](_0x154933,_0x55fd21)}):_0x30621d[_0x31cc('0x138')](_0x553a5e),!0x0);}function $t(_0x5492e3){return _0x6518e1(_0x5492e3);}function Nt(_0x3e09a2){const _0x2b9556=_0x3e09a2[_0x31cc('0xf6')][_0x31cc('0x1')];return _0x2b9556&&_0x2b9556['is']('element');}function Rt(_0x1be4f,_0x177ea7){const _0x1009bb=_0x177ea7[_0x31cc('0x13')][_0x31cc('0xa2')](_0x1be4f)||_0x177ea7[_0x31cc('0x13')]['isSelectable'](_0x1be4f);return _0x177ea7[_0x31cc('0x11e')](_0x177ea7[_0x31cc('0x2')](_0x1be4f,'before'),_0x1009bb?_0x177ea7[_0x31cc('0x81')](_0x1be4f):_0x177ea7['createPositionAt'](_0x1be4f,_0x31cc('0x4b')));}function xt(_0xa94246,_0x39ed48,_0x2a00c3,_0x41b3a8,_0xe9293b){if(_0x2a00c3['end'][_0x31cc('0x24')](_0x41b3a8[_0x31cc('0xf6')]))return!0x0;if(_0xa94246[_0x31cc('0xce')]!=_0x39ed48['type'])return!0x1;if(!_0x2a00c3['end'][_0x31cc('0x109')](_0x41b3a8[_0x31cc('0xf6')]))return!0x1;const _0x319f60=_0xe9293b[_0x31cc('0x11e')](_0x2a00c3[_0x31cc('0x4b')],_0x41b3a8[_0x31cc('0xf6')])[_0x31cc('0x6f')]();for(const _0xbcb489 of _0x319f60)if([_0x31cc('0xaf'),_0x31cc('0x91')][_0x31cc('0xf9')](_0xbcb489['type'])&&_0xe9293b['schema'][_0x31cc('0xc3')](_0xbcb489[_0x31cc('0xd2')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x14e8=['_updateController','focus','separator','Annotations','stopListening','length','isEnabled','getRanges','registerAnnotation','arrowView','button','_disableComments','acceptSelectedSuggestions','get','suggestionChanged','refreshSelectedViews','config','lowest','acceptAllSuggestions','addSourceCollector','some','value','addComment','trackChanges','_initializeController','hasSuggestion','createAnnotationView','type','TrackChangesUI','getMarkerNames','Accept\x20all\x20selected\x20suggestions','bind','suggestion-','push','isOn','isInContent','keys','discardButton','_viewToController','createAnnotation','values','filter','editor','_suggestionToController','createCommentThreadController','set','getMarkers','execute','actionView','model','discardAllSuggestions','toMany','getSuggestion','getFirstRange','reduce','commands','comments.maxCommentsWhenCollapsed','locale','getAllAdjacentSuggestions','_handleControllerBuffer','has','getJoined','clear','_handleSuggestionControllerDelayed','head','destroy','define','size','pluginName','trackChanges.disableComments','delete','commandName','from','map','_createUIButton','comments','editing','discardSelectedSuggestions','plugins','add','buttonView','commentThread','descriptionParts','suggestionLoaded','_destroyController','_annotationViews','_refreshActiveMarkers','componentFactory','view','init','EditorAnnotations','listenTo','innerView','CommentsRepository','change:previous','isDirty','comments.editorConfig','comments.maxCommentCharsWhenCollapsed','TrackChangesEditing'];(function(_0x6bd01e,_0x14e8de){const _0x3424b3=function(_0x2f1f06){while(--_0x2f1f06){_0x6bd01e['push'](_0x6bd01e['shift']());}};_0x3424b3(++_0x14e8de);}(_0x14e8,0x80));const _0x3424=function(_0x6bd01e,_0x14e8de){_0x6bd01e=_0x6bd01e-0x0;let _0x3424b3=_0x14e8[_0x6bd01e];return _0x3424b3;};import{Plugin as _0x135d0d}from'ckeditor5/src/core';import{Collection as _0x26822a}from'ckeditor5/src/utils';import{Model as _0x163411,SplitButtonView as _0x7929fe,createDropdown as _0x142136,addListToDropdown as _0x90db81}from'ckeditor5/src/ui';import{Users as _0x317938,getDateTimeFormatter as _0x3927a6,getAllMarkersDomElementsSorted as _0x327736}from'ckeditor5-collaboration/src/collaboration-core';import _0x853e17 from'./trackchangesediting';import _0x1e905e from'./ui/suggestioncontroller';import _0x3f334f from'./ui/view/suggestionthreadview';import{getTranslation as _0x4b4eaa}from'./utils/common-translations';import _0x3b95a5 from'../theme/icons/track-changes.svg';export default class d extends _0x135d0d{static get['requires'](){return[_0x853e17,_0x317938,_0x3424('0x40'),'Annotations','EditorAnnotations'];}static get[_0x3424('0x27')](){return _0x3424('0x62');}constructor(_0x982546){super(_0x982546),this['_suggestionToController']=new Map(),this[_0x3424('0x9')]=new Map(),this[_0x3424('0x38')]=new Map(),this[_0x3424('0x1e')]=new Map();const _0x31cd2f=this['editor'][_0x3424('0x56')];_0x31cd2f[_0x3424('0x25')]('trackChanges.SuggestionThreadView',_0x3f334f),_0x31cd2f['define'](_0x3424('0x28'),!0x1),this['_disableComments']=_0x31cd2f[_0x3424('0x53')](_0x3424('0x28'));}[_0x3424('0x22')](_0x210155,_0x17ef4c){0x0===this[_0x3424('0x1e')][_0x3424('0x26')]&&setTimeout(()=>{for(const [_0xeb418b,_0x4a79eb]of this['_handleControllerBuffer']){const _0x4ca37d=this[_0x3424('0xe')][_0x3424('0x1f')](_0xeb418b);_0x4ca37d||_0x4a79eb?_0x4ca37d&&_0x4a79eb&&this[_0x3424('0x37')](_0xeb418b):this['_initializeController'](_0xeb418b);}this[_0x3424('0xd')][_0x3424('0x31')][_0x3424('0x53')](_0x3424('0x3d'))[_0x3424('0x55')](),this[_0x3424('0x39')](),this['_handleControllerBuffer'][_0x3424('0x21')]();},0xa),this[_0x3424('0x1e')][_0x3424('0x10')](_0x210155,_0x17ef4c);}[_0x3424('0x3c')](){const _0x2f4456=this[_0x3424('0xd')],_0x581040=_0x2f4456[_0x3424('0x31')][_0x3424('0x53')](_0x3424('0x45')),_0x140440=_0x2f4456['plugins']['get']('Annotations'),_0x335899=_0x2f4456['plugins']['get'](_0x3424('0x3d')),_0xe2fc3e=_0x2f4456[_0x3424('0x31')][_0x3424('0x53')]('CommentsRepository');_0x2f4456['ui'][_0x3424('0x3a')][_0x3424('0x32')](_0x3424('0x5d'),_0x1a76fb=>this[_0x3424('0x2d')](_0x1a76fb)),_0x335899[_0x3424('0x59')](()=>{const _0x2563ec=[];for(const [_0x482bc6,_0x11b6a5]of Array[_0x3424('0x2b')](this[_0x3424('0xe')])){const _0x3114ef=_0x482bc6[_0x3424('0x1d')](),_0x5ab478=[];for(const _0x19cf83 of _0x3114ef){if(!_0x19cf83['isInContent'])continue;if(_0x19cf83['isMultiRange']){_0x5ab478[_0x3424('0x4')](..._0x19cf83[_0x3424('0x4d')]());continue;}const _0x5afeac=_0x19cf83[_0x3424('0x18')]();if(_0x5ab478[_0x3424('0x4b')]>0x0){const _0x32d275=_0x5ab478[0x0][_0x3424('0x20')](_0x5afeac);if(_0x32d275){_0x5ab478[0x0]=_0x32d275;continue;}}_0x5ab478[_0x3424('0x4')](_0x5afeac);}_0x2563ec[_0x3424('0x4')]([_0x11b6a5[_0x3424('0x3b')],_0x5ab478]);}return _0x2563ec;}),this[_0x3424('0x3e')](_0x581040,_0x3424('0x36'),(_0x30bec9,_0x25d20f)=>{this[_0x3424('0x3e')](_0x25d20f,_0x3424('0x41'),(_0x1ab38c,_0x43a162,_0x12a4ae,_0x365cd0)=>{_0x25d20f[_0x3424('0x6')]&&(null==_0x12a4ae?(this[_0x3424('0x46')](_0x365cd0[_0x3424('0x23')]),this[_0x3424('0x22')](_0x25d20f,!0x1)):(this[_0x3424('0x46')](_0x12a4ae[_0x3424('0x23')]),this[_0x3424('0x22')](_0x25d20f,!0x0)));}),null===_0x25d20f['previous']?this[_0x3424('0x22')](_0x25d20f,!0x1):this['_updateController'](_0x25d20f[_0x3424('0x23')]);}),this[_0x3424('0x3e')](_0x581040,'suggestionUnloaded',(_0x3709e5,_0x1a075e,_0x27e4be)=>{this[_0x3424('0x4a')](_0x1a075e,_0x3424('0x41')),this[_0x3424('0x1e')][_0x3424('0x29')](_0x1a075e);const _0x42562c=_0x27e4be?_0x27e4be[_0x3424('0x23')]:_0x1a075e,_0x4e63bf=this[_0x3424('0xe')][_0x3424('0x53')](_0x42562c);null!==_0x27e4be&&this['_updateController'](_0x42562c),null===_0x27e4be&&_0x4e63bf&&this['_destroyController'](_0x1a075e);}),this[_0x3424('0x3e')](_0x581040,_0x3424('0x54'),(_0xcad35d,_0x1605e0)=>{this[_0x3424('0x46')](_0x1605e0);}),this[_0x3424('0x3e')](_0x140440,'change:activeAnnotations',()=>{this[_0x3424('0x39')]();}),this[_0x3424('0x3e')](_0xe2fc3e,_0x3424('0x5c'),(_0x3c925b,{threadId:_0x5919ae,isFromAdapter:_0x345d8d})=>{if(_0x345d8d||!_0x581040[_0x3424('0x5f')](_0x5919ae))return;const _0x28d8f9=_0x581040[_0x3424('0x17')](_0x5919ae);this[_0x3424('0xe')][_0x3424('0x53')](_0x28d8f9)[_0x3424('0x3b')][_0x3424('0x47')]();},{'priority':_0x3424('0x57')});}['_refreshActiveMarkers'](){const _0x4e1233=this[_0x3424('0xd')][_0x3424('0x31')]['get'](_0x3424('0x49')),_0x5bf09e=this[_0x3424('0xd')][_0x3424('0x31')][_0x3424('0x53')](_0x3424('0x45')),_0x531311=Array[_0x3424('0x2b')](_0x4e1233['activeAnnotations'],_0x4e57ef=>_0x4e57ef[_0x3424('0x3f')])[_0x3424('0xc')](_0x210f0f=>this[_0x3424('0x9')]['has'](_0x210f0f)),_0x253be0=[];for(const _0x48fc18 of _0x531311){const _0x19ff86=this[_0x3424('0x9')][_0x3424('0x53')](_0x48fc18)[_0x3424('0x14')][_0x3424('0x1d')]();_0x253be0[_0x3424('0x4')](..._0x19ff86[_0x3424('0x19')]((_0xfe9801,_0x179580)=>[..._0xfe9801,..._0x179580[_0x3424('0x0')]()],[]));}_0x5bf09e['activeMarkers']=_0x253be0;}[_0x3424('0x2d')](_0x34e68c){const _0x43b6c9=_0x142136(_0x34e68c,_0x7929fe),_0x3587e4=this['editor'][_0x3424('0x1a')][_0x3424('0x53')](_0x3424('0x5d')),_0x2855fa=_0x4b4eaa(_0x34e68c,'Track\x20changes');_0x43b6c9[_0x3424('0x33')][_0x3424('0x10')]({'tooltip':_0x2855fa,'label':_0x2855fa,'icon':_0x3b95a5}),_0x43b6c9[_0x3424('0x33')][_0x3424('0x2')](_0x3424('0x5'))['to'](_0x3587e4,_0x3424('0x5b')),_0x43b6c9[_0x3424('0x33')]['on'](_0x3424('0x12'),()=>{_0x3587e4[_0x3424('0x12')](),this['editor'][_0x3424('0x2f')][_0x3424('0x3b')][_0x3424('0x47')]();});const _0x368367=new _0x26822a(),_0x5ca307=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x2855fa,'commandName':_0x3424('0x5d')}},{'type':_0x3424('0x48')},{'type':_0x3424('0x50'),'model':{'withText':!0x0,'label':_0x4b4eaa(_0x34e68c,'Accept\x20all\x20suggestions'),'commandName':_0x3424('0x58')}},{'type':_0x3424('0x50'),'model':{'withText':!0x0,'label':_0x4b4eaa(_0x34e68c,_0x3424('0x1')),'commandName':_0x3424('0x52')}},{'type':_0x3424('0x50'),'model':{'withText':!0x0,'label':_0x4b4eaa(_0x34e68c,'Discard\x20all\x20suggestions'),'commandName':_0x3424('0x15')}},{'type':_0x3424('0x50'),'model':{'withText':!0x0,'label':_0x4b4eaa(_0x34e68c,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3424('0x30')}}];for(const _0x5598d7 of _0x5ca307){let _0x5ec2b7={'type':_0x3424('0x48')};if(_0x5598d7[_0x3424('0x14')]){const _0x52ab86=new _0x163411(_0x5598d7[_0x3424('0x14')]),_0x343d88=this[_0x3424('0xd')][_0x3424('0x1a')][_0x3424('0x53')](_0x52ab86[_0x3424('0x2a')]);_0x52ab86[_0x3424('0x2')](_0x3424('0x5'),_0x3424('0x4c'))['to'](_0x343d88,'value','isEnabled'),_0x5ec2b7={'type':_0x5598d7[_0x3424('0x61')],'model':_0x52ab86};}_0x368367[_0x3424('0x32')](_0x5ec2b7);}_0x90db81(_0x43b6c9,_0x368367);const _0x10d26a=_0x5ca307[_0x3424('0xc')](_0x22f919=>null!=_0x22f919[_0x3424('0x14')])[_0x3424('0x2c')](_0x104c4b=>this[_0x3424('0xd')]['commands'][_0x3424('0x53')](_0x104c4b[_0x3424('0x14')][_0x3424('0x2a')])),_0x9a9600=_0x43b6c9[_0x3424('0x33')];return _0x9a9600[_0x3424('0x13')]['unbind'](_0x3424('0x4c')),_0x9a9600[_0x3424('0x4f')]['unbind'](_0x3424('0x4c')),_0x9a9600['actionView'][_0x3424('0x2')]('isEnabled')['to'](_0x3587e4,'isEnabled'),_0x9a9600[_0x3424('0x4f')][_0x3424('0x2')](_0x3424('0x4c'))[_0x3424('0x16')](_0x10d26a,_0x3424('0x4c'),(..._0x37514b)=>_0x37514b[_0x3424('0x5a')](_0x5357aa=>_0x5357aa)),_0x43b6c9['on'](_0x3424('0x12'),_0x536b49=>{this['editor'][_0x3424('0x12')](_0x536b49['source']['commandName']),this[_0x3424('0xd')][_0x3424('0x2f')][_0x3424('0x3b')]['focus']();}),_0x43b6c9;}[_0x3424('0x5e')](_0x308dfc){const _0x319f70=this[_0x3424('0xd')],_0x2bc7ac=_0x319f70[_0x3424('0x56')],_0x522512=_0x319f70['plugins'][_0x3424('0x53')](_0x3424('0x49')),_0x360913=_0x319f70[_0x3424('0x31')][_0x3424('0x53')](_0x3424('0x40')),_0x5726a4=_0x319f70[_0x3424('0x31')][_0x3424('0x53')](_0x3424('0x3d')),_0x186b57=_0x319f70[_0x3424('0x31')][_0x3424('0x53')](_0x317938)['me'],_0x31a593=_0x2bc7ac[_0x3424('0x53')](_0x3424('0x5d'))['SuggestionThreadView'],{CommentsListView:_0x5b4e0f,CommentThreadInputView:_0x420841}=_0x319f70[_0x3424('0x31')][_0x3424('0x53')]('CommentsUI');let _0x43087f,_0xf84149;this['_annotationViews']['has'](_0x308dfc['id'])?(_0xf84149=this['_annotationViews'][_0x3424('0x53')](_0x308dfc['id']),_0x43087f=_0xf84149['mainView']):(_0x43087f=new _0x31a593(_0x319f70[_0x3424('0x1c')],_0x308dfc,_0x186b57,{'disableComments':this[_0x3424('0x51')],'editorConfig':_0x2bc7ac[_0x3424('0x53')](_0x3424('0x43')),'maxCommentsWhenCollapsed':_0x2bc7ac['get'](_0x3424('0x1b')),'maxThreadTotalWeight':_0x2bc7ac['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2bc7ac[_0x3424('0x53')](_0x3424('0x44')),'formatDateTime':_0x3927a6(_0x2bc7ac[_0x3424('0x53')](_0x3424('0x1c'))),'CommentView':_0x2bc7ac[_0x3424('0x53')](_0x3424('0x2e'))['CommentView'],'CommentsListView':_0x5b4e0f,'CommentThreadInputView':_0x420841}),_0x43087f['acceptButton']['on']('execute',()=>{_0x319f70[_0x3424('0x2f')][_0x3424('0x3b')][_0x3424('0x47')]();}),_0x43087f[_0x3424('0x8')]['on'](_0x3424('0x12'),()=>{_0x319f70[_0x3424('0x2f')][_0x3424('0x3b')][_0x3424('0x47')]();}),_0xf84149=_0x522512[_0x3424('0x60')](this[_0x3424('0xd')]['locale'],_0x43087f),_0xf84149[_0x3424('0x2')](_0x3424('0x42'))['to'](_0x43087f,'isDirty'),_0xf84149['bind'](_0x3424('0x4b'))['to'](_0x43087f),_0xf84149[_0x3424('0x2')](_0x3424('0x61'))['to'](_0x43087f,_0x3424('0x61'),_0x164349=>_0x3424('0x3')+_0x164349),this[_0x3424('0x38')]['set'](_0x308dfc['id'],_0xf84149));const _0x54b70d=_0x360913[_0x3424('0xf')](_0x308dfc[_0x3424('0x34')],_0x43087f),_0x1229c5=new _0x1e905e(_0x319f70,_0x308dfc,_0x43087f,_0x54b70d),_0x22844a=_0x308dfc[_0x3424('0x1d')]()[_0x3424('0xc')](_0x5c6f43=>_0x5c6f43[_0x3424('0x6')]);_0x43087f[_0x3424('0x35')]=_0x319f70['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x22844a),this[_0x3424('0xe')][_0x3424('0x10')](_0x308dfc,_0x1229c5),this['_viewToController'][_0x3424('0x10')](_0x43087f,_0x1229c5);const _0x23e90a=_0x522512[_0x3424('0xa')]({'view':_0xf84149,'target':()=>{const _0x261408=[],_0xc95a46=_0x308dfc['getAllAdjacentSuggestions']()['filter'](_0x3e1923=>_0x3e1923[_0x3424('0x6')]);for(const _0x180593 of _0xc95a46)_0x261408[_0x3424('0x4')](..._0x180593[_0x3424('0x11')]());return _0x327736(_0x319f70[_0x3424('0x2f')],_0x261408);},'type':()=>_0x3424('0x3')+_0x1229c5[_0x3424('0x3b')]['type']});_0x522512[_0x3424('0x32')](_0x23e90a),_0x5726a4[_0x3424('0x4e')](_0x23e90a);}[_0x3424('0x37')](_0x41002a){const _0x5f2f4e=this[_0x3424('0xd')][_0x3424('0x31')]['get']('Annotations'),_0x4eee62=this[_0x3424('0xe')][_0x3424('0x53')](_0x41002a),_0x2bd461=_0x4eee62[_0x3424('0x3b')],_0x173542=_0x5f2f4e['getByInnerView'](_0x2bd461);_0x173542&&_0x5f2f4e['remove'](_0x173542),this[_0x3424('0xe')]['delete'](_0x41002a),this['_viewToController']['delete'](_0x2bd461),_0x4eee62['destroy']();}[_0x3424('0x46')](_0x16ee4c){if(!_0x16ee4c[_0x3424('0x6')]||!this[_0x3424('0xe')][_0x3424('0x1f')](_0x16ee4c))return;const _0x3fdf76=this[_0x3424('0xd')][_0x3424('0x31')][_0x3424('0x53')](_0x3424('0x45')),_0x59688b=this[_0x3424('0xe')][_0x3424('0x53')](_0x16ee4c),_0x36fc3c=_0x16ee4c[_0x3424('0x1d')]();_0x59688b[_0x3424('0x3b')][_0x3424('0x35')]=_0x3fdf76['_descriptionFactory']['getDescriptions'](_0x36fc3c);}[_0x3424('0x24')](){for(const _0x29603e of this[_0x3424('0xe')][_0x3424('0x7')]())this[_0x3424('0x37')](_0x29603e);for(const _0x2837e6 of this[_0x3424('0x38')][_0x3424('0xb')]())_0x2837e6['mainView']['destroy']();super[_0x3424('0x24')]();}}
|
|
23
|
+
const _0x5ce0=['toMany','some','activeAnnotations','comments.maxCommentCharsWhenCollapsed','set','innerView','isOn','actionView','execute','previous','destroy','addSourceCollector','Discard\x20all\x20selected\x20suggestions','init','type','listenTo','_destroyController','bind','focus','mainView','acceptSelectedSuggestions','getMarkers','isDirty','_suggestionToController','isEnabled','getDescriptions','createCommentThreadController','from','_viewToController','arrowView','lowest','value','suggestion-','EditorAnnotations','editor','unbind','editing','getSuggestion','remove','buttonView','change:previous','_initializeController','commands','getFirstRange','keys','Track\x20changes','requires','_disableComments','CommentsRepository','hasSuggestion','CommentView','getAllAdjacentSuggestions','acceptButton','config','Accept\x20all\x20selected\x20suggestions','createAnnotationView','getRanges','descriptionParts','reduce','isMultiRange','_updateController','registerAnnotation','switchbutton','_handleControllerBuffer','comments.maxCommentsWhenCollapsed','_annotationViews','trackChanges','getJoined','TrackChangesUI','comments.editorConfig','button','createAnnotation','Annotations','Discard\x20all\x20suggestions','locale','_createUIButton','model','trackChanges.disableComments','isInContent','has','view','values','discardButton','activeMarkers','TrackChangesEditing','refreshSelectedViews','suggestionUnloaded','separator','delete','add','suggestionChanged','filter','commandName','CommentsUI','_descriptionFactory','stopListening','getMarkerNames','clear','push','commentThread','_handleSuggestionControllerDelayed','get','head','comments.maxThreadTotalWeight','size','_refreshActiveMarkers','change:activeAnnotations','define','plugins','SuggestionThreadView','length'];(function(_0x533756,_0x5ce046){const _0x5353b9=function(_0x277a6b){while(--_0x277a6b){_0x533756['push'](_0x533756['shift']());}};_0x5353b9(++_0x5ce046);}(_0x5ce0,0x1c1));const _0x5353=function(_0x533756,_0x5ce046){_0x533756=_0x533756-0x0;let _0x5353b9=_0x5ce0[_0x533756];return _0x5353b9;};import{Plugin as _0x2f89fd}from'ckeditor5/src/core';import{Collection as _0x1a5b32}from'ckeditor5/src/utils';import{Model as _0x59630e,SplitButtonView as _0x346bd6,createDropdown as _0x42244a,addListToDropdown as _0x1975bf}from'ckeditor5/src/ui';import{Users as _0x168916,getDateTimeFormatter as _0x15369a,getAllMarkersDomElementsSorted as _0x2b5a90}from'ckeditor5-collaboration/src/collaboration-core';import _0x30010e from'./trackchangesediting';import _0x19ba32 from'./ui/suggestioncontroller';import _0x3c05fe from'./ui/view/suggestionthreadview';import{getTranslation as _0x166f8e}from'./utils/common-translations';import _0x2c8077 from'../theme/icons/track-changes.svg';export default class d extends _0x2f89fd{static get[_0x5353('0x29')](){return[_0x30010e,_0x168916,_0x5353('0x2b'),_0x5353('0x43'),_0x5353('0x1c')];}static get['pluginName'](){return _0x5353('0x3f');}constructor(_0x9ada39){super(_0x9ada39),this[_0x5353('0x12')]=new Map(),this[_0x5353('0x17')]=new Map(),this[_0x5353('0x3c')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x53cc83=this[_0x5353('0x1d')][_0x5353('0x30')];_0x53cc83[_0x5353('0x66')]('trackChanges.SuggestionThreadView',_0x3c05fe),_0x53cc83[_0x5353('0x66')]('trackChanges.disableComments',!0x1),this[_0x5353('0x2a')]=_0x53cc83[_0x5353('0x60')](_0x5353('0x48'));}[_0x5353('0x5f')](_0x186950,_0x2aa558){0x0===this[_0x5353('0x3a')][_0x5353('0x63')]&&setTimeout(()=>{for(const [_0x55500b,_0x23f4ce]of this[_0x5353('0x3a')]){const _0x22a8f2=this[_0x5353('0x12')]['has'](_0x55500b);_0x22a8f2||_0x23f4ce?_0x22a8f2&&_0x23f4ce&&this['_destroyController'](_0x55500b):this['_initializeController'](_0x55500b);}this[_0x5353('0x1d')][_0x5353('0x67')]['get'](_0x5353('0x1c'))[_0x5353('0x50')](),this[_0x5353('0x64')](),this[_0x5353('0x3a')][_0x5353('0x5c')]();},0xa),this[_0x5353('0x3a')]['set'](_0x186950,_0x2aa558);}[_0x5353('0x8')](){const _0x48e3f9=this['editor'],_0x55b4f2=_0x48e3f9[_0x5353('0x67')][_0x5353('0x60')](_0x5353('0x4f')),_0x15b865=_0x48e3f9[_0x5353('0x67')][_0x5353('0x60')](_0x5353('0x43')),_0x3418d2=_0x48e3f9[_0x5353('0x67')][_0x5353('0x60')](_0x5353('0x1c')),_0x505735=_0x48e3f9[_0x5353('0x67')][_0x5353('0x60')]('CommentsRepository');_0x48e3f9['ui']['componentFactory']['add']('trackChanges',_0x4ce65c=>this[_0x5353('0x46')](_0x4ce65c)),_0x3418d2[_0x5353('0x6')](()=>{const _0xb7d91f=[];for(const [_0x36a0e3,_0x4615bb]of Array[_0x5353('0x16')](this[_0x5353('0x12')])){const _0x243143=_0x36a0e3[_0x5353('0x2e')](),_0x21aaae=[];for(const _0x402751 of _0x243143){if(!_0x402751[_0x5353('0x49')])continue;if(_0x402751[_0x5353('0x36')]){_0x21aaae[_0x5353('0x5d')](..._0x402751[_0x5353('0x33')]());continue;}const _0x2bdbe5=_0x402751[_0x5353('0x26')]();if(_0x21aaae[_0x5353('0x69')]>0x0){const _0x24523a=_0x21aaae[0x0][_0x5353('0x3e')](_0x2bdbe5);if(_0x24523a){_0x21aaae[0x0]=_0x24523a;continue;}}_0x21aaae[_0x5353('0x5d')](_0x2bdbe5);}_0xb7d91f[_0x5353('0x5d')]([_0x4615bb[_0x5353('0x4b')],_0x21aaae]);}return _0xb7d91f;}),this['listenTo'](_0x55b4f2,'suggestionLoaded',(_0x462147,_0x5388d1)=>{this['listenTo'](_0x5388d1,'change:previous',(_0x84f221,_0x22f840,_0x4fa727,_0x377b32)=>{_0x5388d1['isInContent']&&(null==_0x4fa727?(this[_0x5353('0x37')](_0x377b32[_0x5353('0x61')]),this[_0x5353('0x5f')](_0x5388d1,!0x1)):(this[_0x5353('0x37')](_0x4fa727[_0x5353('0x61')]),this[_0x5353('0x5f')](_0x5388d1,!0x0)));}),null===_0x5388d1[_0x5353('0x4')]?this[_0x5353('0x5f')](_0x5388d1,!0x1):this[_0x5353('0x37')](_0x5388d1[_0x5353('0x61')]);}),this['listenTo'](_0x55b4f2,_0x5353('0x51'),(_0xee581d,_0x1c2d4f,_0x4cfc6a)=>{this[_0x5353('0x5a')](_0x1c2d4f,_0x5353('0x23')),this['_handleControllerBuffer'][_0x5353('0x53')](_0x1c2d4f);const _0x2f3cae=_0x4cfc6a?_0x4cfc6a[_0x5353('0x61')]:_0x1c2d4f,_0x3e24b0=this[_0x5353('0x12')][_0x5353('0x60')](_0x2f3cae);null!==_0x4cfc6a&&this[_0x5353('0x37')](_0x2f3cae),null===_0x4cfc6a&&_0x3e24b0&&this['_destroyController'](_0x1c2d4f);}),this[_0x5353('0xa')](_0x55b4f2,_0x5353('0x55'),(_0x2845cc,_0x4875bf)=>{this[_0x5353('0x37')](_0x4875bf);}),this['listenTo'](_0x15b865,_0x5353('0x65'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x505735,'addComment',(_0x5abad9,{threadId:_0x1d555e,isFromAdapter:_0x546ef5})=>{if(_0x546ef5||!_0x55b4f2[_0x5353('0x2c')](_0x1d555e))return;const _0x4f6876=_0x55b4f2[_0x5353('0x20')](_0x1d555e);this[_0x5353('0x12')][_0x5353('0x60')](_0x4f6876)[_0x5353('0x4b')][_0x5353('0xd')]();},{'priority':_0x5353('0x19')});}[_0x5353('0x64')](){const _0x410d61=this[_0x5353('0x1d')]['plugins']['get'](_0x5353('0x43')),_0x29cbbd=this['editor'][_0x5353('0x67')]['get'](_0x5353('0x4f')),_0x81a220=Array['from'](_0x410d61[_0x5353('0x6c')],_0x246da1=>_0x246da1[_0x5353('0x0')])['filter'](_0x176278=>this[_0x5353('0x17')][_0x5353('0x4a')](_0x176278)),_0x567f65=[];for(const _0x30b9c2 of _0x81a220){const _0x4d0ce4=this['_viewToController'][_0x5353('0x60')](_0x30b9c2)[_0x5353('0x47')][_0x5353('0x2e')]();_0x567f65[_0x5353('0x5d')](..._0x4d0ce4[_0x5353('0x35')]((_0x46fd0b,_0x4b7f60)=>[..._0x46fd0b,..._0x4b7f60[_0x5353('0x5b')]()],[]));}_0x29cbbd[_0x5353('0x4e')]=_0x567f65;}['_createUIButton'](_0x39e5de){const _0x457ecd=_0x42244a(_0x39e5de,_0x346bd6),_0x327bdc=this[_0x5353('0x1d')][_0x5353('0x25')][_0x5353('0x60')](_0x5353('0x3d')),_0x3fbbec=_0x166f8e(_0x39e5de,_0x5353('0x28'));_0x457ecd[_0x5353('0x22')][_0x5353('0x6e')]({'tooltip':_0x3fbbec,'label':_0x3fbbec,'icon':_0x2c8077}),_0x457ecd[_0x5353('0x22')][_0x5353('0xc')](_0x5353('0x1'))['to'](_0x327bdc,_0x5353('0x1a')),_0x457ecd[_0x5353('0x22')]['on'](_0x5353('0x3'),()=>{_0x327bdc[_0x5353('0x3')](),this['editor']['editing'][_0x5353('0x4b')][_0x5353('0xd')]();});const _0x2a632c=new _0x1a5b32(),_0x186a15=[{'type':_0x5353('0x39'),'model':{'withText':!0x0,'label':_0x3fbbec,'commandName':_0x5353('0x3d')}},{'type':'separator'},{'type':_0x5353('0x41'),'model':{'withText':!0x0,'label':_0x166f8e(_0x39e5de,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x5353('0x41'),'model':{'withText':!0x0,'label':_0x166f8e(_0x39e5de,_0x5353('0x31')),'commandName':_0x5353('0xf')}},{'type':_0x5353('0x41'),'model':{'withText':!0x0,'label':_0x166f8e(_0x39e5de,_0x5353('0x44')),'commandName':'discardAllSuggestions'}},{'type':_0x5353('0x41'),'model':{'withText':!0x0,'label':_0x166f8e(_0x39e5de,_0x5353('0x7')),'commandName':'discardSelectedSuggestions'}}];for(const _0x45dc96 of _0x186a15){let _0x42da8b={'type':_0x5353('0x52')};if(_0x45dc96['model']){const _0x4fce8b=new _0x59630e(_0x45dc96[_0x5353('0x47')]),_0x2aef67=this[_0x5353('0x1d')][_0x5353('0x25')][_0x5353('0x60')](_0x4fce8b[_0x5353('0x57')]);_0x4fce8b['bind'](_0x5353('0x1'),_0x5353('0x13'))['to'](_0x2aef67,_0x5353('0x1a'),_0x5353('0x13')),_0x42da8b={'type':_0x45dc96[_0x5353('0x9')],'model':_0x4fce8b};}_0x2a632c[_0x5353('0x54')](_0x42da8b);}_0x1975bf(_0x457ecd,_0x2a632c);const _0x1d0c90=_0x186a15[_0x5353('0x56')](_0x54e784=>null!=_0x54e784[_0x5353('0x47')])['map'](_0x3d8094=>this[_0x5353('0x1d')][_0x5353('0x25')]['get'](_0x3d8094[_0x5353('0x47')][_0x5353('0x57')])),_0x1e1088=_0x457ecd['buttonView'];return _0x1e1088[_0x5353('0x2')][_0x5353('0x1e')](_0x5353('0x13')),_0x1e1088['arrowView'][_0x5353('0x1e')]('isEnabled'),_0x1e1088['actionView'][_0x5353('0xc')](_0x5353('0x13'))['to'](_0x327bdc,_0x5353('0x13')),_0x1e1088[_0x5353('0x18')][_0x5353('0xc')](_0x5353('0x13'))[_0x5353('0x6a')](_0x1d0c90,_0x5353('0x13'),(..._0x58a879)=>_0x58a879[_0x5353('0x6b')](_0x9ab11d=>_0x9ab11d)),_0x457ecd['on'](_0x5353('0x3'),_0x3cc93c=>{this[_0x5353('0x1d')][_0x5353('0x3')](_0x3cc93c['source'][_0x5353('0x57')]),this[_0x5353('0x1d')][_0x5353('0x1f')][_0x5353('0x4b')]['focus']();}),_0x457ecd;}[_0x5353('0x24')](_0x3fe737){const _0x178c47=this[_0x5353('0x1d')],_0x2259dd=_0x178c47['config'],_0x1d1436=_0x178c47[_0x5353('0x67')][_0x5353('0x60')](_0x5353('0x43')),_0x5225f4=_0x178c47['plugins'][_0x5353('0x60')](_0x5353('0x2b')),_0x338428=_0x178c47[_0x5353('0x67')][_0x5353('0x60')](_0x5353('0x1c')),_0x37638c=_0x178c47[_0x5353('0x67')][_0x5353('0x60')](_0x168916)['me'],_0x3891a5=_0x2259dd[_0x5353('0x60')]('trackChanges')[_0x5353('0x68')],{CommentsListView:_0x478143,CommentThreadInputView:_0x3c0fe6}=_0x178c47[_0x5353('0x67')][_0x5353('0x60')](_0x5353('0x58'));let _0x91c12d,_0x426df6;this[_0x5353('0x3c')][_0x5353('0x4a')](_0x3fe737['id'])?(_0x426df6=this[_0x5353('0x3c')]['get'](_0x3fe737['id']),_0x91c12d=_0x426df6[_0x5353('0xe')]):(_0x91c12d=new _0x3891a5(_0x178c47[_0x5353('0x45')],_0x3fe737,_0x37638c,{'disableComments':this[_0x5353('0x2a')],'editorConfig':_0x2259dd['get'](_0x5353('0x40')),'maxCommentsWhenCollapsed':_0x2259dd['get'](_0x5353('0x3b')),'maxThreadTotalWeight':_0x2259dd[_0x5353('0x60')](_0x5353('0x62')),'maxCommentCharsWhenCollapsed':_0x2259dd[_0x5353('0x60')](_0x5353('0x6d')),'formatDateTime':_0x15369a(_0x2259dd[_0x5353('0x60')](_0x5353('0x45'))),'CommentView':_0x2259dd[_0x5353('0x60')]('comments')[_0x5353('0x2d')],'CommentsListView':_0x478143,'CommentThreadInputView':_0x3c0fe6}),_0x91c12d[_0x5353('0x2f')]['on'](_0x5353('0x3'),()=>{_0x178c47[_0x5353('0x1f')]['view']['focus']();}),_0x91c12d[_0x5353('0x4d')]['on'](_0x5353('0x3'),()=>{_0x178c47[_0x5353('0x1f')]['view'][_0x5353('0xd')]();}),_0x426df6=_0x1d1436[_0x5353('0x32')](this[_0x5353('0x1d')]['locale'],_0x91c12d),_0x426df6[_0x5353('0xc')](_0x5353('0x11'))['to'](_0x91c12d,_0x5353('0x11')),_0x426df6[_0x5353('0xc')](_0x5353('0x69'))['to'](_0x91c12d),_0x426df6[_0x5353('0xc')](_0x5353('0x9'))['to'](_0x91c12d,_0x5353('0x9'),_0x555ca8=>_0x5353('0x1b')+_0x555ca8),this[_0x5353('0x3c')][_0x5353('0x6e')](_0x3fe737['id'],_0x426df6));const _0x5b9ebc=_0x5225f4[_0x5353('0x15')](_0x3fe737[_0x5353('0x5e')],_0x91c12d),_0x36ee8d=new _0x19ba32(_0x178c47,_0x3fe737,_0x91c12d,_0x5b9ebc),_0x255d27=_0x3fe737[_0x5353('0x2e')]()[_0x5353('0x56')](_0x246ffc=>_0x246ffc[_0x5353('0x49')]);_0x91c12d[_0x5353('0x34')]=_0x178c47[_0x5353('0x67')]['get'](_0x5353('0x4f'))['_descriptionFactory']['getDescriptions'](_0x255d27),this['_suggestionToController'][_0x5353('0x6e')](_0x3fe737,_0x36ee8d),this[_0x5353('0x17')]['set'](_0x91c12d,_0x36ee8d);const _0x1f2432=_0x1d1436[_0x5353('0x42')]({'view':_0x426df6,'target':()=>{const _0x2db38d=[],_0x5c0d1d=_0x3fe737[_0x5353('0x2e')]()[_0x5353('0x56')](_0x393344=>_0x393344[_0x5353('0x49')]);for(const _0x1fa0b5 of _0x5c0d1d)_0x2db38d['push'](..._0x1fa0b5[_0x5353('0x10')]());return _0x2b5a90(_0x178c47[_0x5353('0x1f')],_0x2db38d);},'type':()=>_0x5353('0x1b')+_0x36ee8d['view'][_0x5353('0x9')]});_0x1d1436[_0x5353('0x54')](_0x1f2432),_0x338428[_0x5353('0x38')](_0x1f2432);}[_0x5353('0xb')](_0x31d4e4){const _0x50b40d=this[_0x5353('0x1d')]['plugins'][_0x5353('0x60')]('Annotations'),_0x4f2dac=this[_0x5353('0x12')][_0x5353('0x60')](_0x31d4e4),_0x1985c7=_0x4f2dac[_0x5353('0x4b')],_0x3a6fe7=_0x50b40d['getByInnerView'](_0x1985c7);_0x3a6fe7&&_0x50b40d[_0x5353('0x21')](_0x3a6fe7),this[_0x5353('0x12')][_0x5353('0x53')](_0x31d4e4),this[_0x5353('0x17')][_0x5353('0x53')](_0x1985c7),_0x4f2dac['destroy']();}[_0x5353('0x37')](_0x2de4c1){if(!_0x2de4c1[_0x5353('0x49')]||!this['_suggestionToController'][_0x5353('0x4a')](_0x2de4c1))return;const _0x316c37=this['editor'][_0x5353('0x67')][_0x5353('0x60')](_0x5353('0x4f')),_0x8e06fc=this[_0x5353('0x12')][_0x5353('0x60')](_0x2de4c1),_0x4d8ecf=_0x2de4c1[_0x5353('0x2e')]();_0x8e06fc[_0x5353('0x4b')][_0x5353('0x34')]=_0x316c37[_0x5353('0x59')][_0x5353('0x14')](_0x4d8ecf);}[_0x5353('0x5')](){for(const _0x599fac of this[_0x5353('0x12')][_0x5353('0x27')]())this[_0x5353('0xb')](_0x599fac);for(const _0x598173 of this[_0x5353('0x3c')][_0x5353('0x4c')]())_0x598173[_0x5353('0xe')]['destroy']();super[_0x5353('0x5')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3dfa=['model','commands','PendingActions','bind','_removePendingAction','change:isDirty','_editor','_setPendingAction','remove','destroy','listenTo','_pendingAction','canDiscard','getRanges','isEnabled','PENDING_ACTION_SUGGESTION','discardSuggestion','execute','commentThreadController','unbind','_acceptCommand','get','add','acceptSuggestion','_discardCommand','stopListening','plugins','view','canAccept','canEditAt'];(function(_0x250075,_0x3dfad8){const _0x45e7ef=function(_0x411d33){while(--_0x411d33){_0x250075['push'](_0x250075['shift']());}};_0x45e7ef(++_0x3dfad8);}(_0x3dfa,0xff));const _0x45e7=function(_0x250075,_0x3dfad8){_0x250075=_0x250075-0x0;let _0x45e7ef=_0x3dfa[_0x250075];return _0x45e7ef;};import{ObservableMixin as _0x9f16f6}from'ckeditor5/src/utils';import{getTranslation as _0x362a99}from'../utils/common-translations';export default class qt extends _0x9f16f6(){constructor(_0x335106,_0x1348e8,_0x197634,_0x135e4a){super(),this[_0x45e7('0xf')]=_0x1348e8,this[_0x45e7('0xc')]=_0x197634,this[_0x45e7('0x3')]=_0x135e4a,this[_0x45e7('0x15')]=_0x335106,this[_0x45e7('0x5')]=_0x335106[_0x45e7('0x10')][_0x45e7('0x6')](_0x45e7('0x8')),this[_0x45e7('0x9')]=_0x335106[_0x45e7('0x10')]['get'](_0x45e7('0x1')),this[_0x45e7('0xc')][_0x45e7('0x12')]('isEnabled')['to'](this[_0x45e7('0x5')],this['_discardCommand'],(_0x263729,_0x177b46)=>_0x263729||_0x177b46),this['view'][_0x45e7('0x12')]('canAccept')['to'](this[_0x45e7('0x5')],_0x45e7('0x1d'),_0x60597=>_0x60597&&this[_0x45e7('0x15')][_0x45e7('0xf')][_0x45e7('0xe')](_0x1348e8[_0x45e7('0x1c')]())),this['view'][_0x45e7('0x12')](_0x45e7('0x1b'))['to'](this[_0x45e7('0x9')],_0x45e7('0x1d'),_0x43a69d=>_0x43a69d&&this['_editor'][_0x45e7('0xf')][_0x45e7('0xe')](_0x1348e8[_0x45e7('0x1c')]())),this[_0x45e7('0x1a')]=null,_0x197634['isDirty']&&this[_0x45e7('0x16')](),this[_0x45e7('0x19')](_0x197634,_0x45e7('0x8'),()=>this[_0x45e7('0x8')]()),this['listenTo'](_0x197634,_0x45e7('0x1'),()=>this['discardSuggestion']()),this[_0x45e7('0x19')](_0x197634,_0x45e7('0x14'),()=>{_0x197634['isDirty']?this[_0x45e7('0x16')]():this[_0x45e7('0x13')]();});}[_0x45e7('0x8')](){this['_acceptCommand'][_0x45e7('0x2')](this[_0x45e7('0xf')]['id']);}[_0x45e7('0x1')](){this[_0x45e7('0x9')][_0x45e7('0x2')](this[_0x45e7('0xf')]['id']);}['destroy'](){this[_0x45e7('0xc')]['unbind'](_0x45e7('0x1d')),this[_0x45e7('0xc')][_0x45e7('0x4')](_0x45e7('0xd')),this[_0x45e7('0xc')][_0x45e7('0x4')](_0x45e7('0x1b')),this[_0x45e7('0xa')](),this[_0x45e7('0x3')][_0x45e7('0x18')](),this[_0x45e7('0x1a')]&&this[_0x45e7('0x13')]();}['_setPendingAction'](){const _0x47455e=_0x362a99(this[_0x45e7('0x15')]['locale'],_0x45e7('0x0'));this[_0x45e7('0x1a')]=this['_editor'][_0x45e7('0xb')]['get'](_0x45e7('0x11'))[_0x45e7('0x7')](_0x47455e);}[_0x45e7('0x13')](){null!==this[_0x45e7('0x1a')]&&this[_0x45e7('0x15')][_0x45e7('0xb')][_0x45e7('0x6')]('PendingActions')[_0x45e7('0x17')](this[_0x45e7('0x1a')]),this[_0x45e7('0x1a')]=null;}}
|