@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231102.0 → 0.0.0-nightly-20231104.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/LICENSE.md +3 -3
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3ccf=['_defaultCallbacks','from','_createSuggestion','getChanges','external:','registerPostFixer','multipleBlocks','_trackFormatChanges','has','marker-count','collaboration.channelId','containsRangeInObject','remove','detach','_registerDefaultCallbacks','resolve','schema','removeClass','$graveyard','setSelection','unbind','_setSuggestionRange','get','enqueueChange','ck-suggestion-marker-','multi','showSuggestionHighlights','getChangedMarkers','dataToMarker','_saved','hasComments','getAncestors','insertion:accept','stopListening','suggestion:','discard','isEqual','getNearestSelectionRange','subType','removed','suggestionUnloaded','trackChangesCommand','getCommentThread','differ','newRange','chain','containsPosition','enableCommand','_breakSuggestionMarker','always','markerToData','accepted','data','_onDiscard','deletion','nodeBefore','element','_suggestionFactory','_mergeNestedSuggestions','formatBlock:discard','parent','formatInline','forceDefaultExecution','removeComment','setAttribute','upcast','enableReadOnlyMode','fire','getRanges','addComment','_suggestions','unbindElementFromMarkerName','acceptAllSuggestions','addClass','insertion','removeAttribute','markMultiRangeDeletion','deleteContent','track-changes-adapter-already-set','deletion:discard','suggestion','_suggestionState','keys','change:_saved','isInContent','authorName','markerNameToElements','addMarker:suggestion:formatBlock','createRange','getSuggestions','_findSuggestions','update:suggestion','_addSuggestionMarker','fromCharCode','getShiftedBy','editing','isBefore','rethrowUnexpectedError','map','isArray','add','sort','isOwn','position','nodeAfter','start','high','PENDING_ACTION_SUGGESTION','stop','oldRange','item','push','formatInline:join','normal','execute','author','low','backward','editingDowncast','originalSuggestionId','getRange','insertion:discard','markers','_cutOutSuggestionMarker','CommentsRepository','buildSuggestion','bindElementToMarker','markInlineFormat','createSelection','type','every','getItems','track-changes-adapter-missing-getsuggestion','formatBlock','_getSuggestionData','_model','formatGroupId','formatBlock:chain','getWalker','root','change:data','isTouching','insertContent','addMarkerName','markInsertion','formatInline:chain','createdAt','_isForcedDefaultExecutionBlock','includes','forward','createPositionBefore','insertion:join','clear','_getAuthorFromId','Users','set','commandName','isMultiRange','addRange','addUser','suggestion-type','createPositionAt','getSuggestion','insertion:','_commentsRepository','isNextTo','accept','previous','deletion:','insert','isDocumentOperation','isLimit','filter','_rangeIsInLocalUserInsertion','_addThreadToSuggestion','range','_getExternalAuthor','skipNestingCheck','containsRange','reconvertMarker','formatInline:','_isDataLoaded','elementToElement','getFirstRange','markerName','removeMarker','_adapter','splice','isLocal','conversion','_refreshSuggestionsChain','head','writer','never','authoredAt','_editor','locale','toViewElement','_updateSuggestionData','isSelectable','ck-suggestion-marker-formatBlock','_joinSuggestions','discardSuggestion','some','getCustomProperty','track-changes-suggestion-not-found','deletion:chain','getAttribute','widget','hasCommentThread','return','markerToHighlight','_customCallbacks','getDifference','formatBlock:','document','discardSelectedSuggestions','addHighlight','acceptSelectedSuggestions','updateMarker','change','name','$textProxy','_descriptionFactory','for','_joinWithAdjacentSuggestions','_handleNewSuggestionMarker','_removeSuggestion','removeMarker:suggestion:formatBlock','getMarkers','PendingActions','isBlock','registerCustomCallback','isCollapsed','@external','getSuggestionCallback','containsItem','data-suggestion','ck-suggestion-marker','isInsideObject','_splitMarkerName','ck-suggestion-marker--active','batch','lowest','applyOperation','discardAllSuggestions','trackChanges','activeMarkers','ready','markBlockFormat','creator','isAtEnd','join','formatInline:accept','define','setTo','end','isObject','createPositionAfter','getAllAdjacentSuggestions','commands','addSuggestion','dataDowncast','moveTargetPosition','values','getFirstMarker','listenTo','formatBlock:accept','elementStart','createRangeIn','isAfter','acceptSuggestion','_setSuggestionData','assign','updateSuggestion','documentSelection','options','delete','model','removeMarkers','after','suggestionChanged','value','addMarker','substr','adapter','hasSuggestion','commentThread','track-changes-suggestion-data-mismatch','plugins','addSuggestionData','markerReady','then','suggestionLoaded','getMultiRangeId','isAtStart','isUndo','length','size','deletion:accept','pluginName','rootName','isRemovable','elementEnd','getLastMatchingPosition','toJSON','mapper','consumable','getIntersection','targetPosition','refresh','selection','editor','insertion:chain','_enabledCommands','split','markMultiRangeInsertion','catch','track-changes-user-not-found','config','notReady','_checkSuggestionCorrectness','markDeletion','next','consume','clone','trackChanges.mergeNestedSuggestions','attributes','trackChanges.trackFormatChanges','requires'];(function(_0x4d3111,_0x3ccfe6){const _0x5dafb8=function(_0x8b0289){while(--_0x8b0289){_0x4d3111['push'](_0x4d3111['shift']());}};_0x5dafb8(++_0x3ccfe6);}(_0x3ccf,0x1a8));const _0x5daf=function(_0x4d3111,_0x3ccfe6){_0x4d3111=_0x4d3111-0x0;let _0x5dafb8=_0x3ccf[_0x4d3111];return _0x5dafb8;};import{Plugin as _0x1caa21,PendingActions as _0x1f37c4}from'ckeditor5/src/core';import{LiveRange as _0x4ff719}from'ckeditor5/src/engine';import{CKEditorError as _0x1f6c19,uid as _0x439ef2,priorities as _0x68002c,logWarning as _0x469995}from'ckeditor5/src/utils';import{toWidget as _0x34dcb6}from'ckeditor5/src/widget';import{Users as _0x4a79f9,hashObject as _0x46dd8b}from'ckeditor5-collaboration/src/collaboration-core';import _0x3b284e from'./commands/trackchangescommand';import _0x38f420 from'./commands/acceptsuggestioncommand';import _0x2493eb from'./commands/discardsuggestioncommand';import _0x21d141 from'./commands/executeonallsuggestionscommand';import _0x2a08f8 from'./commands/executeonselectedsuggestionscommand';import _0x5eb74b from'./suggestion';import _0x56d066 from'./suggestiondescriptionfactory';import _0x4196fb from'./integrations/aiassistant';import _0x37d3dd from'./integrations/alignment';import _0x4bf707 from'./integrations/basicstyles';import _0x8dbcf7 from'./integrations/blockquote';import _0x4b7281 from'./integrations/ckbox';import _0x49b5d2 from'./integrations/codeblock';import _0x2acd8d from'./integrations/comments';import _0x5351fd from'./integrations/deletecommand';import _0x3d8d3a from'./integrations/documentlist';import _0x5283d5 from'./integrations/entercommand';import _0x359045 from'./integrations/findandreplace';import _0x45ee68 from'./integrations/font';import _0x4c2423 from'./integrations/formatpainter';import _0x32a3b2 from'./integrations/heading';import _0x3918ea from'./integrations/highlight';import _0x525ec2 from'./integrations/horizontalline';import _0x58ce7c from'./integrations/htmlembed';import _0x426c43 from'./integrations/image';import _0x6fd4bf from'./integrations/imagereplace';import _0x4a6f6b from'./integrations/importword';import _0x492175 from'./integrations/indent';import _0xf8ea22 from'./integrations/inputcommand';import _0x45c206 from'./integrations/link';import _0x2ba23d from'./integrations/list';import _0xc1a420 from'./integrations/listproperties';import _0x2d8e60 from'./integrations/mediaembed';import _0x189e05 from'./integrations/mention';import _0xc977a0 from'./integrations/pagebreak';import _0x5a66d1 from'./integrations/paragraph';import _0x45308b from'./integrations/removeformat';import _0x411b06 from'./integrations/restrictededitingmode';import _0xfc5c56 from'./integrations/shiftentercommand';import _0x549cf7 from'./integrations/standardeditingmode';import _0x1a79ec from'./integrations/style';import _0x4b48f9 from'./integrations/table';import _0x23da43 from'./integrations/tablemergesplit';import _0x217063 from'./integrations/tableheadings';import _0x2eac5d from'./integrations/tableclipboard';import _0x281adb from'./integrations/tablecolumnresize';import _0x19e693 from'./integrations/template';import _0x53cf47 from'./integrations/tableofcontents';import _0x483615 from'./integrations/title';import _0x34ac39 from'./integrations/undo';import{getTranslation as _0x27cd4f}from'./utils/common-translations';import _0x582e5b from'./integrations/tablecaption';import _0x371346 from'./integrations/documentlistproperties';import _0x1731d4 from'./integrations/tableproperties';import{isEqual as _0x2f22df}from'lodash-es';export default class p extends _0x1caa21{static get[_0x5daf('0xeb')](){return[_0x5daf('0x1e'),_0x4a79f9,_0x1f37c4,_0x4196fb,_0x37d3dd,_0x4bf707,_0x8dbcf7,_0x4b7281,_0x49b5d2,_0x2acd8d,_0x5351fd,_0x3d8d3a,_0x371346,_0x5283d5,_0x359045,_0x45ee68,_0x4c2423,_0x32a3b2,_0x3918ea,_0x525ec2,_0x58ce7c,_0x426c43,_0x6fd4bf,_0x4a6f6b,_0x492175,_0xf8ea22,_0x45c206,_0x2ba23d,_0xc1a420,_0x2d8e60,_0x189e05,_0xc977a0,_0x5a66d1,_0x45308b,_0x411b06,_0xfc5c56,_0x549cf7,_0x1a79ec,_0x4b48f9,_0x23da43,_0x217063,_0x582e5b,_0x2eac5d,_0x281adb,_0x53cf47,_0x1731d4,_0x19e693,_0x483615,_0x34ac39];}static get[_0x5daf('0xce')](){return'TrackChangesEditing';}constructor(_0x4dc44a){function _0x8582a4(_0x527ca7){return _0x527ca7[_0x5daf('0x4')](_0x14d88e=>String[_0x5daf('0x149')](_0x14d88e))['join']('');}super(_0x4dc44a),this[_0x5daf('0x3d')](_0x5daf('0x99'),[]),this['on']('change:activeMarkers',(_0x2f33d5,_0x5cdd76,_0x56fb43,_0x8df9e8)=>{this[_0x5daf('0x29')][_0x5daf('0x7e')](()=>{for(const _0x240a1f of[..._0x8df9e8,..._0x56fb43])this[_0x5daf('0x29')][_0x5daf('0x1c')][_0x5daf('0xf4')](_0x240a1f)&&_0x4dc44a[_0x5daf('0x1')][_0x5daf('0x55')](_0x240a1f);});}),this[_0x5daf('0x81')]=new _0x56d066(this['editor'][_0x5daf('0xb8')][_0x5daf('0xfc')],this[_0x5daf('0xda')]['locale']),this[_0x5daf('0x5c')]=null,this[_0x5daf('0x125')]=new Bt(this['editor']),this['_suggestions']=new Map(),this[_0x5daf('0x46')]=_0x4dc44a['plugins']['get'](_0x5daf('0x1e')),this[_0x5daf('0xdc')]=new Set(),this['_model']=this[_0x5daf('0xda')]['model'],this[_0x5daf('0x13d')]=new WeakMap(),this[_0x5daf('0x35')]=!0x1,_0x4dc44a['config'][_0x5daf('0xa0')](_0x5daf('0xea'),'default'),this[_0x5daf('0xf3')]=_0x4dc44a[_0x5daf('0xe1')][_0x5daf('0x102')](_0x5daf('0xea')),_0x4dc44a[_0x5daf('0xe1')][_0x5daf('0xa0')](_0x5daf('0xe8'),!0x0),this[_0x5daf('0x126')]=_0x4dc44a[_0x5daf('0xe1')][_0x5daf('0x102')](_0x5daf('0xe8')),this[_0x5daf('0x115')]=new _0x3b284e(_0x4dc44a,this['_enabledCommands']),this[_0x8582a4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x8582a4([0x34,0x30,0x34,0x36,0x32,0x32,0x30,0x34]);}['init'](){const _0x2340ae=this[_0x5daf('0xda')];_0x2340ae['conversion'][_0x5daf('0x82')]('editingDowncast')[_0x5daf('0x75')]({'model':_0x5daf('0x13c'),'view':_0x452dec=>{const {id:_0x543f09,type:_0x1023d2}=this[_0x5daf('0x92')](_0x452dec['markerName']),_0x3b0a30=[_0x5daf('0x90'),_0x5daf('0x104')+_0x1023d2];let _0x20c2a4=0xbb8;return this[_0x5daf('0x99')][_0x5daf('0x36')](_0x452dec['markerName'])&&(_0x3b0a30['push']('ck-suggestion-marker--active'),_0x20c2a4=0xbc2),'deletion'==_0x1023d2&&(_0x20c2a4+=0x5),{'classes':_0x3b0a30,'attributes':{'data-suggestion':_0x543f09},'priority':_0x20c2a4};}}),_0x2340ae[_0x5daf('0x5f')]['for'](_0x5daf('0xa8'))[_0x5daf('0x6')](_0x161b87=>{_0x161b87['on']('addMarker:suggestion',(_0x43ec76,_0x23d2d7,_0x50127a)=>{if(!_0x50127a[_0x5daf('0xb6')][_0x5daf('0x106')])return;const _0x5ccddc=_0x23d2d7[_0x5daf('0x10')];if(!_0x5ccddc)return;const _0x2b078c=_0x50127a[_0x5daf('0xd4')]['toViewElement'](_0x5ccddc);_0x2340ae[_0x5daf('0xb8')][_0x5daf('0xfc')][_0x5daf('0xa3')](_0x5ccddc)&&_0x2b078c&&!_0x2b078c['getCustomProperty'](_0x5daf('0x72'))&&_0x2b078c['is']('containerElement')&&_0x34dcb6(_0x2b078c,_0x50127a[_0x5daf('0x62')]);},{'priority':'high'});}),_0x2340ae[_0x5daf('0x5f')]['for'](_0x5daf('0xa8'))[_0x5daf('0x75')]({'model':_0x5daf('0x13c'),'view':(_0x2ffe28,_0x56d53b)=>{if(!_0x56d53b['options'][_0x5daf('0x106')])return null;const {type:_0x5d813a}=this['_splitMarkerName'](_0x2ffe28[_0x5daf('0x5a')]);return{'classes':[_0x5daf('0x90'),'ck-suggestion-marker-'+_0x5d813a],'priority':0xbb8};}});const _0xe89320=({showActiveMarkers:_0x385ad7=!0x0}={})=>(_0x183a2b,_0x114c09,_0x1ade87)=>{if(!_0x114c09[_0x5daf('0x10')])return;if(_0x114c09[_0x5daf('0x10')]['is']('selection'))return void _0x1ade87['consumable'][_0x5daf('0xe6')](_0x114c09[_0x5daf('0x10')],_0x183a2b[_0x5daf('0x7f')]);const _0x5d603b=_0x1ade87[_0x5daf('0xd4')][_0x5daf('0x67')](_0x114c09[_0x5daf('0x10')]);if(!(_0x114c09['item']['is'](_0x5daf('0x124'))&&_0x2340ae[_0x5daf('0xb8')]['schema'][_0x5daf('0x89')](_0x114c09[_0x5daf('0x10')])&&!_0x5d603b[_0x5daf('0x6e')](_0x5daf('0x7b'))))return;const {id:_0x36841c}=this['_splitMarkerName'](_0x114c09[_0x5daf('0x5a')]);_0x1ade87[_0x5daf('0x62')][_0x5daf('0x135')]([_0x5daf('0x90'),_0x5daf('0x6a')],_0x5d603b),_0x1ade87[_0x5daf('0x62')][_0x5daf('0x12c')](_0x5daf('0x8f'),_0x36841c,_0x5d603b),_0x1ade87[_0x5daf('0xd4')][_0x5daf('0x20')](_0x5d603b,_0x114c09[_0x5daf('0x5a')]),_0x385ad7&&(this[_0x5daf('0x99')][_0x5daf('0x36')](_0x114c09[_0x5daf('0x5a')])?_0x1ade87[_0x5daf('0x62')][_0x5daf('0x135')](_0x5daf('0x93'),_0x5d603b):_0x1ade87[_0x5daf('0x62')]['removeClass'](_0x5daf('0x93'),_0x5d603b));for(const _0x302b57 of _0x2340ae[_0x5daf('0xb8')][_0x5daf('0xaf')](_0x114c09[_0x5daf('0x10')])[_0x5daf('0x25')]())_0x1ade87[_0x5daf('0xd5')][_0x5daf('0xe6')](_0x302b57,_0x183a2b['name']);_0x1ade87[_0x5daf('0xd5')][_0x5daf('0xe6')](_0x114c09['item'],_0x183a2b[_0x5daf('0x7f')]);};_0x2340ae['conversion'][_0x5daf('0x82')](_0x5daf('0xa8'))[_0x5daf('0x6')](_0x490efe=>{_0x490efe['on'](_0x5daf('0x143'),(_0x1fecef,_0x4ebb2a,_0x1a470b)=>{_0x1a470b[_0x5daf('0xb6')][_0x5daf('0x106')]&&_0xe89320({'showActiveMarkers':!0x1})(_0x1fecef,_0x4ebb2a,_0x1a470b);},{'priority':'highest'});}),_0x2340ae['conversion'][_0x5daf('0x82')](_0x5daf('0xa8'))[_0x5daf('0x11e')]({'model':_0x5daf('0x13c'),'view':(_0x3eb8ed,_0x1c7a4b)=>_0x1c7a4b[_0x5daf('0xb6')][_0x5daf('0x106')]?null:{'group':_0x5daf('0x13c'),'name':_0x3eb8ed[_0x5daf('0xbe')](0xb)}}),_0x2340ae['conversion'][_0x5daf('0x82')]('upcast')[_0x5daf('0x58')]({'view':{'name':_0x5daf('0x13c'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x43d750,{writer:_0x53976a})=>{let _0x45ca12='suggestion:'+_0x43d750[_0x5daf('0x71')](_0x5daf('0x42'))+':'+_0x43d750[_0x5daf('0x71')]('id');return _0x43d750['getAttribute'](_0x5daf('0xf5'))&&(_0x45ca12+=':'+_0x43d750[_0x5daf('0x71')](_0x5daf('0xf5'))),_0x53976a['createElement']('$marker',{'data-name':_0x45ca12});}}),_0x2340ae['conversion'][_0x5daf('0x82')](_0x5daf('0x12d'))[_0x5daf('0x108')]({'view':'suggestion'}),_0x2340ae[_0x5daf('0x5f')][_0x5daf('0x82')]('editingDowncast')[_0x5daf('0x6')](_0x3cd8a6=>{_0x3cd8a6['on'](_0x5daf('0x143'),_0xe89320(),{'priority':_0x5daf('0xc')});}),_0x2340ae['conversion'][_0x5daf('0x82')](_0x5daf('0x18'))['add'](_0x5d5c17=>{_0x5d5c17['on'](_0x5daf('0x86'),(_0x2dab09,_0x41e0df,_0x457d78)=>{const _0xf4d01=_0x457d78[_0x5daf('0xd4')][_0x5daf('0x142')](_0x41e0df[_0x5daf('0x5a')]);if(_0xf4d01)for(const _0x1b57b2 of _0xf4d01)_0x1b57b2[_0x5daf('0x6e')]('addHighlight')||(_0x457d78[_0x5daf('0x62')][_0x5daf('0xfd')]([_0x5daf('0x90'),_0x5daf('0x6a'),'ck-suggestion-marker--active'],_0x1b57b2),_0x457d78[_0x5daf('0x62')][_0x5daf('0x137')]('data-suggestion',_0x1b57b2),_0x457d78[_0x5daf('0xd4')][_0x5daf('0x133')](_0x1b57b2,_0x41e0df[_0x5daf('0x5a')]));},{'priority':_0x5daf('0xc')});}),_0x2340ae['model']['document'][_0x5daf('0xf1')](_0x5633ea=>{let _0xb36630=!0x1;const _0xf1a31a=Array[_0x5daf('0xed')](_0x2340ae['model'][_0x5daf('0x79')][_0x5daf('0x117')][_0x5daf('0x107')]()),_0x2555b4=new Set();for(const {name:_0xa2408d,data:_0x176bee}of _0xf1a31a){const {group:_0x1e4f46,type:_0x5ba465,id:_0xd6d13c}=this[_0x5daf('0x92')](_0xa2408d);if(_0x5daf('0x13c')!==_0x1e4f46)continue;const _0x27cf9b=this[_0x5daf('0x132')][_0x5daf('0x102')](_0xd6d13c);if(null!=_0x176bee[_0x5daf('0x118')]){'formatInline'==_0x5ba465&&(_0xb36630=_0xb36630||$t(_0x176bee[_0x5daf('0x118')],_0xa2408d,_0x5633ea,_0x2340ae[_0x5daf('0xb8')][_0x5daf('0xfc')]));if(_0x176bee['newRange'][_0x5daf('0x8b')]||'$graveyard'==_0x176bee[_0x5daf('0x118')][_0x5daf('0x2d')][_0x5daf('0xcf')]||_0x5daf('0x27')==_0x5ba465&&!Rt(_0x176bee[_0x5daf('0x118')])||_0x5daf('0x122')==_0x5ba465&&!(!Mt(_0x44f5b4=_0x176bee[_0x5daf('0x118')])&&!function(_0xab3ccb){return _0xab3ccb[_0x5daf('0xb')]['parent']==_0xab3ccb[_0x5daf('0xa2')]['nodeBefore']&&_0xab3ccb[_0x5daf('0xb')]['isAtEnd'];}(_0x44f5b4)))_0x5633ea['removeMarker'](_0xa2408d),_0xb36630=!0x0;else{if(!_0x27cf9b||!_0x27cf9b[_0x5daf('0x140')])continue;_0x2555b4['add'](_0x27cf9b);}}}var _0x44f5b4;return _0x2555b4[_0x5daf('0xcc')]>0x0&&(_0xb36630=!!this[_0x5daf('0x83')](_0x2555b4)||_0xb36630),_0xb36630;}),_0x2340ae[_0x5daf('0xb8')][_0x5daf('0x79')][_0x5daf('0xf1')](_0x4c2ee8=>{let _0x1ae192=!0x1;for(const _0xd8f318 of _0x2340ae[_0x5daf('0xb8')][_0x5daf('0x79')][_0x5daf('0x117')][_0x5daf('0xef')]()){if(_0x5daf('0x4b')!=_0xd8f318[_0x5daf('0x23')])continue;const _0x5c7643=_0xd8f318[_0x5daf('0x9')][_0x5daf('0x0')](_0xd8f318[_0x5daf('0xcb')]);if(_0x5c7643['isAtEnd'])for(const _0x4261ce of this['_suggestions'][_0x5daf('0xaa')]()){if(_0x4261ce[_0x5daf('0x3f')]||!_0x4261ce[_0x5daf('0x140')])continue;if(_0x5daf('0x27')!=_0x4261ce[_0x5daf('0x23')])continue;const _0x4df291=_0x4261ce[_0x5daf('0x59')]();if(_0x4df291[_0x5daf('0xb')]['parent']!=_0x4df291['end'][_0x5daf('0x128')]&&_0x4df291['end']['isEqual'](_0xd8f318['position'])){const _0x4ac102=_0x2340ae[_0x5daf('0xb8')]['createRange'](_0x4df291['start'],_0x5c7643);_0x4c2ee8['updateMarker'](_0x4261ce[_0x5daf('0xab')](),{'range':_0x4ac102}),_0x1ae192=!0x0;}}}return _0x1ae192;}),_0x2340ae[_0x5daf('0xb8')]['markers']['on'](_0x5daf('0x147'),(_0x5316d6,_0x3800f9,_0x5f58d7)=>{if(null==_0x5f58d7){const {id:_0x4276ca}=this['_splitMarkerName'](_0x3800f9['name']),_0x468051=this[_0x5daf('0x132')][_0x5daf('0x102')](_0x4276ca);_0x468051&&_0x468051['addMarkerName'](_0x3800f9['name']);}}),_0x2340ae['model']['document']['on'](_0x5daf('0x2e'),()=>{const _0x56aff2=Array['from'](_0x2340ae[_0x5daf('0xb8')][_0x5daf('0x79')]['differ'][_0x5daf('0x107')]())[_0x5daf('0x4e')](_0x13cd30=>_0x5daf('0x13c')===this[_0x5daf('0x92')](_0x13cd30[_0x5daf('0x7f')])['group']);if(0x0===_0x56aff2[_0x5daf('0xcb')])return;_0x56aff2[_0x5daf('0x7')]((_0x140bc2,_0x38264a)=>{const _0x4a4c43=_0x140bc2[_0x5daf('0x120')][_0x5daf('0xf')],_0x2e52ac=_0x38264a['data']['oldRange'];return null===_0x4a4c43&&null===_0x2e52ac?0x0:null===_0x4a4c43&&null!==_0x2e52ac?-0x1:null!==_0x4a4c43&&null===_0x2e52ac?0x1:_0x4a4c43[_0x5daf('0xb')][_0x5daf('0x2')](_0x2e52ac[_0x5daf('0xb')])?-0x1:0x1;});const _0x3f23d7=new Set(),_0x5200c4=new Set();for(const {name:_0x4a655b,data:_0xb59732}of _0x56aff2){const {id:_0x4cf930}=this[_0x5daf('0x92')](_0x4a655b);if(null===_0xb59732[_0x5daf('0xf')]){const _0x17b069=this[_0x5daf('0x84')](_0x4a655b);_0x5200c4[_0x5daf('0x6')](_0x17b069);}else{const _0x2c2919=this[_0x5daf('0x132')][_0x5daf('0x102')](_0x4cf930);null!==_0xb59732['newRange']||_0x2c2919[_0x5daf('0x140')]?(_0x3f23d7[_0x5daf('0x6')](_0x2c2919[_0x5daf('0x61')]),_0x5200c4[_0x5daf('0x6')](_0x2c2919)):this[_0x5daf('0x85')](_0x2c2919);}}_0x5200c4[_0x5daf('0xcc')]>0x0&&this[_0x5daf('0x60')](_0x5200c4);for(const _0x357c80 of _0x3f23d7)this[_0x5daf('0x12f')]('suggestionChanged',_0x357c80);}),_0x2340ae['model']['on'](_0x5daf('0x96'),(_0x1a827a,_0x3fc561)=>{const _0x35a694=_0x3fc561[0x0];if(!this[_0x5daf('0x132')]['size'])return;if(!_0x35a694[_0x5daf('0x4c')])return;if(_0x35a694[_0x5daf('0x94')][_0x5daf('0xca')]||!_0x35a694[_0x5daf('0x94')][_0x5daf('0x5e')])return;let _0x274dc8,_0x806f74;switch(_0x35a694[_0x5daf('0x23')]){case _0x5daf('0x4b'):_0x274dc8=_0x2340ae['model'][_0x5daf('0x43')](_0x35a694['position']),_0x806f74=_0x274dc8['getShiftedBy'](_0x35a694['howMany']);break;case _0x5daf('0xdd'):_0x274dc8=_0x2340ae[_0x5daf('0xb8')][_0x5daf('0x43')](_0x35a694['splitPosition']),_0x806f74=_0x2340ae[_0x5daf('0xb8')][_0x5daf('0x43')](_0x35a694[_0x5daf('0xa9')]);break;case'move':_0x274dc8=_0x2340ae[_0x5daf('0xb8')]['createPositionAt'](_0x35a694[_0x5daf('0xd7')]),_0x806f74=_0x274dc8[_0x5daf('0x0')](_0x35a694['howMany']);break;default:return;}const _0x1d971a=_0x2340ae[_0x5daf('0xb8')]['createRange'](_0x274dc8,_0x806f74);_0x2340ae[_0x5daf('0xb8')]['change'](()=>{for(const {suggestion:_0x4e653f,meta:_0x230d78}of this['_findSuggestions'](_0x1d971a)){if(_0x4e653f[_0x5daf('0x3f')])continue;if('formatInline'==_0x4e653f['type'])continue;const _0x35114a=_0x4e653f[_0x5daf('0x120')]&&_0x4e653f[_0x5daf('0x120')][_0x5daf('0xf2')];('formatBlock'!=_0x4e653f[_0x5daf('0x23')]||'split'==_0x35a694[_0x5daf('0x23')]&&!_0x35114a)&&(_0x230d78[_0x5daf('0xf7')]||_0x5daf('0x136')==_0x4e653f[_0x5daf('0x23')]&&_0x230d78[_0x5daf('0x8')]||_0x4e653f['getFirstRange']()['containsRange'](_0x1d971a)&&this[_0x5daf('0x11c')](_0x4e653f,_0x274dc8,_0x806f74));}});},{'priority':_0x5daf('0x95')}),_0x2340ae[_0x5daf('0xb8')]['on']('deleteContent',(_0x2d1db9,_0x580bc0)=>{const _0x272867=_0x580bc0[0x0],_0x32b38a=_0x580bc0[0x1];if(_0x32b38a&&_0x32b38a[_0x5daf('0x12a')])return;if(this[_0x5daf('0x35')])return;if(!this[_0x5daf('0x115')]['value'])return;if(_0x272867[_0x5daf('0x8b')])return;const _0x3c478c=_0x2340ae[_0x5daf('0xb8')][_0x5daf('0xfc')],{start:_0x37fafa,end:_0x16cd61}=_0x272867[_0x5daf('0x59')](),_0x403d9e=_0x37fafa[_0x5daf('0xa')]&&_0x3c478c[_0x5daf('0x4d')](_0x37fafa[_0x5daf('0xa')])?null:_0x3c478c['getNearestSelectionRange'](_0x37fafa,_0x5daf('0x37')),_0x3b9ee5=_0x16cd61[_0x5daf('0x123')]&&_0x3c478c['isLimit'](_0x16cd61['nodeBefore'])?null:_0x3c478c[_0x5daf('0x111')](_0x16cd61,_0x5daf('0x17')),_0x5794ff=_0x2340ae[_0x5daf('0xb8')]['createRange'](_0x403d9e?_0x403d9e[_0x5daf('0xb')]:_0x37fafa,_0x3b9ee5?_0x3b9ee5[_0x5daf('0xa2')]:_0x16cd61);_0x2340ae[_0x5daf('0xb8')][_0x5daf('0x7e')](_0x3d2a2d=>{this[_0x5daf('0xe4')](_0x5794ff);const _0x418b74=_0x2340ae[_0x5daf('0xb8')]['schema'][_0x5daf('0x111')](_0x5794ff[_0x5daf('0xb')]);_0x272867['is'](_0x5daf('0xb5'))?_0x3d2a2d[_0x5daf('0xff')](_0x418b74):_0x272867[_0x5daf('0xa1')](_0x418b74);}),_0x2d1db9[_0x5daf('0xe')]();},{'priority':_0x68002c[_0x5daf('0x13')]+0xa}),_0x2340ae[_0x5daf('0xb8')]['on']('insertContent',(_0x11062a,_0x3cd99d)=>{const _0x230a24=_0x3cd99d[_0x3cd99d[_0x5daf('0xcb')]-0x1];_0x230a24&&_0x230a24['forceDefaultExecution']||this[_0x5daf('0x35')]||this[_0x5daf('0x115')][_0x5daf('0xbc')]&&(_0x2340ae[_0x5daf('0xb8')][_0x5daf('0x7e')](()=>{let _0x1eb884=_0x2340ae[_0x5daf('0xb8')][_0x5daf('0x30')](_0x3cd99d[0x0],_0x3cd99d[0x1],_0x3cd99d[0x2],{'forceDefaultExecution':!0x0});if(!_0x1eb884)return;_0x11062a[_0x5daf('0x74')]=_0x1eb884[_0x5daf('0xe7')]();const _0x36ee74=_0x1eb884[_0x5daf('0xa2')][_0x5daf('0x123')],_0x1c5edf=_0x2340ae[_0x5daf('0xb8')]['schema'];_0x36ee74&&_0x1c5edf[_0x5daf('0x89')](_0x36ee74)&&!_0x1c5edf[_0x5daf('0xa3')](_0x36ee74)&&(_0x1eb884=_0x2340ae['model'][_0x5daf('0x144')](_0x1eb884[_0x5daf('0xb')],_0x2340ae[_0x5daf('0xb8')][_0x5daf('0x43')](_0x36ee74,'end'))),this[_0x5daf('0x32')](_0x1eb884);}),_0x11062a['stop']());},{'priority':_0x5daf('0xc')}),this['editor'][_0x5daf('0xa6')][_0x5daf('0x6')](_0x5daf('0x98'),this['trackChangesCommand']),this[_0x5daf('0x11b')](_0x5daf('0x98'));const _0x1d97a8=new _0x38f420(_0x2340ae,this[_0x5daf('0x132')]);_0x2340ae['commands'][_0x5daf('0x6')](_0x5daf('0xb1'),_0x1d97a8),this['enableCommand'](_0x5daf('0xb1'));const _0xaab2ce=new _0x2493eb(_0x2340ae,this['_suggestions']);_0x2340ae[_0x5daf('0xa6')]['add'](_0x5daf('0x6c'),_0xaab2ce),this['enableCommand']('discardSuggestion'),_0x2340ae[_0x5daf('0xa6')][_0x5daf('0x6')](_0x5daf('0x134'),new _0x21d141(_0x2340ae,_0x1d97a8,this[_0x5daf('0x132')])),this['enableCommand'](_0x5daf('0x134')),_0x2340ae[_0x5daf('0xa6')][_0x5daf('0x6')](_0x5daf('0x97'),new _0x21d141(_0x2340ae,_0xaab2ce,this[_0x5daf('0x132')])),this[_0x5daf('0x11b')]('discardAllSuggestions'),_0x2340ae[_0x5daf('0xa6')][_0x5daf('0x6')](_0x5daf('0x7c'),new _0x2a08f8(_0x2340ae,_0x1d97a8,this[_0x5daf('0x132')])),this[_0x5daf('0x11b')](_0x5daf('0x7c')),_0x2340ae['commands']['add'](_0x5daf('0x7a'),new _0x2a08f8(_0x2340ae,_0xaab2ce,this[_0x5daf('0x132')])),this[_0x5daf('0x11b')](_0x5daf('0x7a'));const _0x5de0cb=_0x2340ae[_0x5daf('0xc3')]['get'](_0x5daf('0x1e'));this['listenTo'](_0x5de0cb,_0x5daf('0x131'),(_0x3730a1,{threadId:_0x55f48c})=>{const _0x587eec=this['_suggestions'][_0x5daf('0x102')](_0x55f48c);_0x587eec&&_0x587eec[_0x5daf('0xc1')]&&0x1===_0x587eec['commentThread'][_0x5daf('0xcb')]&&this[_0x5daf('0x68')](_0x55f48c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5de0cb,_0x5daf('0x12b'),(_0x460dea,{threadId:_0x361c46})=>{const _0x201a76=this[_0x5daf('0x132')][_0x5daf('0x102')](_0x361c46);_0x201a76&&_0x201a76[_0x5daf('0xc1')]&&!_0x201a76['commentThread'][_0x5daf('0xcb')]&&this['_updateSuggestionData'](_0x361c46,{'hasComments':!0x1});},{'priority':_0x5daf('0x16')});}set[_0x5daf('0xbf')](_0x1096a7){if(this['_adapter'])throw new _0x1f6c19(_0x5daf('0x13a'),this);this[_0x5daf('0x5c')]=_0x1096a7;}get[_0x5daf('0xbf')](){return this[_0x5daf('0x5c')];}[_0x5daf('0x145')]({skipNotAttached:_0x5849c9=!0x1,toJSON:_0x21f14c=!0x1}={}){const _0x51adc7=[];for(const _0x318a7b of this[_0x5daf('0x132')]['values']())_0x5849c9&&!_0x318a7b[_0x5daf('0x140')]||_0x51adc7[_0x5daf('0x11')](_0x318a7b);return _0x21f14c?_0x51adc7[_0x5daf('0x4')](_0x2616c3=>_0x2616c3[_0x5daf('0xd3')]()):_0x51adc7;}['getSuggestion'](_0x8fd666){const _0x39c701=this[_0x5daf('0x132')][_0x5daf('0x102')](_0x8fd666);if(!_0x39c701)throw new _0x1f6c19(_0x5daf('0x6f'),this);return _0x39c701;}[_0x5daf('0xc0')](_0x45a60c){return this[_0x5daf('0x132')]['has'](_0x45a60c);}[_0x5daf('0xc4')](_0x42a20f){const {authorId:_0x2b0779,id:_0x6b1ade,attributes:_0x3a1a78}=_0x42a20f,[_0x55dc14,_0x55ef77]=_0x42a20f[_0x5daf('0x23')]['split'](':'),_0x1872b9=this[_0x5daf('0x132')][_0x5daf('0x102')](_0x6b1ade)||this[_0x5daf('0xee')](_0x55dc14,_0x55ef77,_0x6b1ade,_0x2b0779,_0x3a1a78);if(this['_addThreadToSuggestion'](_0x1872b9),this[_0x5daf('0xe3')](_0x1872b9,_0x55dc14,_0x55ef77||null,_0x2b0779),_0x1872b9[_0x5daf('0x34')]=_0x42a20f['createdAt'],_0x1872b9[_0x5daf('0x57')]=!0x0,_0x3a1a78&&_0x3a1a78[_0x5daf('0x8c')]){const _0x21f4aa=_0x3a1a78[_0x5daf('0x8c')],_0x2dfbf7=this[_0x5daf('0x52')](_0x21f4aa[_0x5daf('0x141')]);_0x1872b9['authoredAt']=_0x21f4aa[_0x5daf('0x34')],_0x1872b9[_0x5daf('0x15')]=_0x2dfbf7,_0x1872b9['isExternal']=!0x0;}else _0x1872b9[_0x5daf('0x64')]=_0x42a20f['createdAt'];switch(_0x42a20f['data']&&(_0x1872b9[_0x5daf('0x120')]=_0x42a20f[_0x5daf('0x120')]),_0x42a20f[_0x5daf('0xe9')]&&(_0x1872b9[_0x5daf('0xe9')]=_0x42a20f[_0x5daf('0xe9')]),this[_0x5daf('0x5c')]&&this['_adapter'][_0x5daf('0xa7')]||(_0x1872b9[_0x5daf('0x109')]=!0x0),this[_0x5daf('0x13d')][_0x5daf('0x102')](_0x1872b9)){case _0x5daf('0xe2'):this[_0x5daf('0x13d')][_0x5daf('0x3d')](_0x1872b9,'dataReady');break;case _0x5daf('0xc5'):_0x1872b9['isInContent']?(this['_refreshSuggestionsChain'](new Set([_0x1872b9])),this['_joinWithAdjacentSuggestions'](new Set([_0x1872b9])),this['_suggestionState'][_0x5daf('0x3d')](_0x1872b9,_0x5daf('0x9a')),this[_0x5daf('0x12f')](_0x5daf('0xc7'),_0x1872b9)):this[_0x5daf('0x13d')][_0x5daf('0x3d')](_0x1872b9,_0x5daf('0x113'));}return _0x1872b9;}['acceptSuggestion'](_0x59befe){this[_0x5daf('0x12a')](()=>{this['editor'][_0x5daf('0xb8')][_0x5daf('0x7e')](()=>{for(const _0x1bad74 of _0x59befe[_0x5daf('0xa5')]())_0x1bad74[_0x5daf('0x48')]();});});}[_0x5daf('0x6c')](_0x30afe5){this[_0x5daf('0x12a')](()=>{this[_0x5daf('0xda')][_0x5daf('0xb8')][_0x5daf('0x7e')](()=>{for(const _0x40f879 of _0x30afe5[_0x5daf('0xa5')]())_0x40f879[_0x5daf('0x10f')]();});});}['enableCommand'](_0x4afe04,_0x25384a){const _0xd82a8=this['editor']['commands'][_0x5daf('0x102')](_0x4afe04);if(!_0xd82a8)throw new _0x1f6c19('track-changes-command-not-found',this,{'commandName':_0x4afe04});this[_0x5daf('0xdc')]['add'](_0xd82a8),_0x25384a&&_0xd82a8['on'](_0x5daf('0x14'),(_0x24a163,_0x4b892f)=>{this[_0x5daf('0x115')]['value']&&(this[_0x5daf('0x35')]||_0x4b892f[_0x5daf('0xcb')]>0x0&&_0x4b892f[_0x4b892f[_0x5daf('0xcb')]-0x1]&&_0x4b892f[_0x4b892f['length']-0x1][_0x5daf('0x12a')]||(_0x24a163[_0x5daf('0x74')]=_0x25384a((..._0x1d5330)=>_0xd82a8[_0x5daf('0x14')](..._0x1d5330,{'forceDefaultExecution':!0x0}),..._0x4b892f),_0x24a163[_0x5daf('0xe')]()));},{'priority':_0x5daf('0xc')});}[_0x5daf('0x12a')](_0x53d78a){let _0x2087b2,_0x231e3a;const _0x239f6e=this[_0x5daf('0x35')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2087b2=_0x53d78a();}catch(_0x46dc32){_0x231e3a=_0x46dc32;}return _0x239f6e||(this[_0x5daf('0x35')]=!0x1),_0x231e3a&&_0x1f6c19[_0x5daf('0x3')](_0x231e3a,this),_0x2087b2;}[_0x5daf('0x32')](_0x291eab,_0xf59424=null,_0x53a8a6={}){if(_0x291eab[_0x5daf('0x8b')])return null;const _0x1a2124=this[_0x5daf('0xda')]['plugins'][_0x5daf('0x102')](_0x5daf('0x3c'))['me'];for(const {suggestion:_0x2a770d,meta:_0x2e0aa2}of this['_findSuggestions'](_0x291eab,'insertion'))if(_0x2e0aa2[_0x5daf('0x8')]){if(!_0x2e0aa2[_0x5daf('0x47')]){if(_0x2e0aa2[_0x5daf('0xf7')]){if(!this[_0x5daf('0x126')]||!Ot(_0x2a770d,_0x53a8a6))continue;return _0x2a770d;}if(Ot(_0x2a770d,_0x53a8a6))return _0x2a770d;this[_0x5daf('0x11c')](_0x2a770d,_0x291eab[_0x5daf('0xb')],_0x291eab[_0x5daf('0xa2')]);break;}if(_0xf59424==_0x2a770d[_0x5daf('0x112')]&&Ot(_0x2a770d,_0x53a8a6)){const _0x4e6d11=_0x2a770d[_0x5daf('0x59')]();return _0x4e6d11['start']['isEqual'](_0x291eab[_0x5daf('0xa2')])?this['_setSuggestionRange'](_0x2a770d,this['_model'][_0x5daf('0x144')](_0x291eab[_0x5daf('0xb')],_0x4e6d11[_0x5daf('0xa2')])):this[_0x5daf('0x101')](_0x2a770d,this[_0x5daf('0x29')][_0x5daf('0x144')](_0x4e6d11[_0x5daf('0xb')],_0x291eab[_0x5daf('0xa2')])),_0x2a770d;}}const _0x54dd07=_0x439ef2(),_0x37f44f=_0x1a2124['id'],_0x5a2d47=_0xf59424?'insertion:'+_0xf59424:_0x5daf('0x136'),_0x2396ea=this[_0x5daf('0xb2')]({'id':_0x54dd07,'type':_0x5a2d47,'createdAt':new Date(),'authorId':_0x37f44f,'attributes':_0x53a8a6});return this['_addSuggestionMarker'](_0x5a2d47,_0x54dd07,_0x37f44f,_0x291eab),_0x2396ea;}[_0x5daf('0xde')](_0x37a42e,_0x3788aa=_0x5daf('0x105'),_0x3e7d60={}){const _0x4438d0=this[_0x5daf('0xda')][_0x5daf('0xc3')]['get'](_0x5daf('0x3c'))['me'],_0x39088d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3788aa,_0x5daf('0x9e'));for(const _0x549caa of this['getSuggestions']())if(_0x549caa[_0x5daf('0x15')]['id']==_0x4438d0['id']&&_0x5daf('0x136')==_0x549caa[_0x5daf('0x23')]&&_0x549caa['subType']==_0x3788aa&&Ot(_0x549caa,_0x3e7d60)&&(_0x39088d(_0x549caa[_0x5daf('0x130')](),_0x37a42e)||_0x39088d(_0x37a42e,_0x549caa[_0x5daf('0x130')]()))){for(const _0x3d6ca9 of _0x37a42e)_0x549caa[_0x5daf('0x40')](_0x3d6ca9);return _0x549caa;}for(const {suggestion:_0x1d31cc,meta:_0x444fec}of this[_0x5daf('0x146')](_0x37a42e,_0x5daf('0x136'))){if(!_0x444fec[_0x5daf('0x8')])continue;if(!this[_0x5daf('0x126')]&&_0x444fec[_0x5daf('0xf7')])continue;if(!Ot(_0x1d31cc,_0x3e7d60))continue;let _0x2746e4=!0x0;for(const _0x89caf4 of _0x1d31cc[_0x5daf('0x130')]())for(const _0x136dcf of _0x37a42e)if(!_0x89caf4['containsRange'](_0x136dcf)){_0x2746e4=!0x1;break;}if(_0x2746e4)return _0x1d31cc;}const _0x3998c6=_0x439ef2(),_0x1cec06=_0x4438d0['id'],_0x26e82=_0x5daf('0x45')+_0x3788aa,_0x5927bb=this['_setSuggestionData']({'id':_0x3998c6,'type':_0x26e82,'createdAt':new Date(),'authorId':_0x1cec06,'attributes':_0x3e7d60});for(const _0x3a72c9 of _0x37a42e)this[_0x5daf('0x148')](_0x26e82,_0x3998c6,_0x1cec06,_0x3a72c9,_0x5eb74b[_0x5daf('0xc8')]());return _0x5927bb;}[_0x5daf('0x21')](_0xb24f92,_0x33c3a9,_0x1a5d49=null,_0x311846={}){if(_0x1a5d49=_0x1a5d49||Nt(_0x33c3a9),_0xb24f92[_0x5daf('0x8b')])return null;if('never'===this[_0x5daf('0xf3')]){const _0x379835=this['_suggestionFactory'][_0x5daf('0x8d')](_0x5daf('0x129'),_0x1a5d49,_0x5daf('0x48'));return this[_0x5daf('0x12a')](()=>_0x379835([_0xb24f92],_0x33c3a9,_0x311846)),null;}const _0x547ebc=this[_0x5daf('0xda')][_0x5daf('0xc3')][_0x5daf('0x102')](_0x5daf('0x3c'))['me'],_0x20613b=[];if(_0x5daf('0x11d')!==this[_0x5daf('0xf3')])for(const {suggestion:_0x788e54,meta:_0x123a58}of this[_0x5daf('0x146')](_0xb24f92,'insertion'))_0x123a58[_0x5daf('0x8')]&&!_0x123a58[_0x5daf('0x91')]&&_0x20613b[_0x5daf('0x11')](..._0x788e54['getRanges']());const _0x2da71f=function(_0x24ade4,_0x1f5739){const _0x54fbff=[];for(const _0x33f38e of _0x1f5739){const _0x597a8b=_0x24ade4['getIntersection'](_0x33f38e);_0x597a8b&&_0x54fbff[_0x5daf('0x11')](_0x597a8b);}return _0x54fbff;}(_0xb24f92,_0x20613b),_0x669bf9=function(_0x588f08,_0x45d65d){const _0x45fd20=[_0x588f08];for(const _0x6c3abd of _0x45d65d){let _0x415a95=0x0;for(;_0x415a95<_0x45fd20['length'];){const _0x1c0da2=_0x45fd20[_0x415a95][_0x5daf('0x77')](_0x6c3abd);_0x45fd20[_0x5daf('0x5d')](_0x415a95,0x1,..._0x1c0da2),_0x415a95+=_0x1c0da2[_0x5daf('0xcb')];}}return _0x45fd20;}(_0xb24f92,_0x20613b);_0x2da71f['length']&&this[_0x5daf('0x29')][_0x5daf('0x7e')](()=>{for(const _0x59f73b of _0x2da71f){const _0xbe86db=this[_0x5daf('0x125')][_0x5daf('0x8d')](_0x5daf('0x129'),_0x1a5d49,_0x5daf('0x48'));this[_0x5daf('0x12a')](()=>_0xbe86db([_0x59f73b],_0x33c3a9,_0x311846));}});for(const _0x2edeed of _0x669bf9){let _0x2102af=null,_0x54eb58=_0x2edeed['start'],_0x22abca=_0x2edeed['end'];for(const {suggestion:_0x4103b6,meta:_0x5361fe}of this[_0x5daf('0x146')](_0x2edeed,_0x5daf('0x129'))){if(!_0x5361fe[_0x5daf('0x8')])continue;if(_0x4103b6['subType']!=_0x1a5d49)continue;if(!Ot(_0x4103b6,_0x311846))continue;const _0x150cdf=_0x4103b6['getFirstRange']();if(_0x150cdf[_0x5daf('0x54')](_0x2edeed,!0x0))return null;_0x54eb58=_0x54eb58[_0x5daf('0x2')](_0x150cdf[_0x5daf('0xb')])?_0x54eb58:_0x150cdf[_0x5daf('0xb')],_0x22abca=_0x22abca[_0x5daf('0xb0')](_0x150cdf['end'])?_0x22abca:_0x150cdf['end'],_0x2102af?_0x150cdf[_0x5daf('0xb')][_0x5daf('0x2')](_0x2102af[_0x5daf('0x59')]()['start'])?(_0x2102af['removeMarkers'](),_0x2102af=_0x4103b6):_0x4103b6['removeMarkers']():_0x2102af=_0x4103b6;}const _0x594f9f=this[_0x5daf('0x29')][_0x5daf('0x144')](_0x54eb58,_0x22abca);if(_0x2102af)this[_0x5daf('0x101')](_0x2102af,_0x594f9f);else{const _0x1f5bce=_0x439ef2(),_0x2bae94=_0x547ebc['id'];this[_0x5daf('0xb2')]({'id':_0x1f5bce,'type':'formatInline:'+_0x1a5d49,'data':_0x33c3a9,'createdAt':new Date(),'authorId':_0x2bae94,'attributes':_0x311846}),this[_0x5daf('0x148')](_0x5daf('0x56')+_0x1a5d49,_0x1f5bce,_0x2bae94,_0x594f9f);}}return null;}[_0x5daf('0x9b')](_0x187b2f,_0xd87e65,_0xddd868=[],_0x3e75f8=null,_0x321b67={}){_0xd87e65['formatGroupId']||(_0xd87e65[_0x5daf('0x2a')]=_0xd87e65[_0x5daf('0x3e')]),_0xd87e65[_0x5daf('0xf2')]=_0x187b2f['is']('range'),_0x3e75f8=_0x3e75f8||Nt(_0xd87e65);const _0x17106b=_0xddd868[_0x5daf('0x4')](_0x1354dc=>jt(_0x1354dc,this[_0x5daf('0x29')])),_0x3c866d=_0x187b2f['is'](_0x5daf('0x51'))?_0x187b2f:jt(_0x187b2f,this[_0x5daf('0x29')]);if('never'===this[_0x5daf('0xf3')]){const _0x1a37d0=this[_0x5daf('0x125')]['getSuggestionCallback'](_0x5daf('0x27'),_0x3e75f8,_0x5daf('0x48'));return this[_0x5daf('0x12a')](()=>_0x1a37d0([_0x3c866d],_0xd87e65,_0x321b67)),null;}_0x17106b['push'](_0x3c866d);let _0x145f9f=!0x0;for(const _0x17a293 of _0x17106b)if(!this[_0x5daf('0x4f')](_0x17a293)){_0x145f9f=!0x1;break;}if(_0x145f9f&&_0x5daf('0x11d')!==this[_0x5daf('0xf3')]){const _0x2d832a=this['_suggestionFactory'][_0x5daf('0x8d')]('formatBlock',_0x3e75f8,'accept');return this[_0x5daf('0x12a')](()=>_0x2d832a([_0x3c866d],_0xd87e65,_0x321b67)),null;}let _0x18e23a=null,_0x2e2547=_0x3c866d[_0x5daf('0xb')],_0x427e03=_0x3c866d[_0x5daf('0xa2')];for(const {suggestion:_0x8230db,meta:_0x1c8bbf}of this[_0x5daf('0x146')](_0x3c866d,'formatBlock')){if(!_0x1c8bbf[_0x5daf('0x8')])continue;if(_0x1c8bbf['isNextTo']||_0x1c8bbf['containsRangeInObject']||_0x1c8bbf['isInsideObject'])continue;if(_0x8230db[_0x5daf('0x120')][_0x5daf('0x2a')]!=_0xd87e65[_0x5daf('0x2a')])continue;if(!Ot(_0x8230db,_0x321b67))continue;const _0x13863d=_0x8230db[_0x5daf('0x59')]();if(_0x8230db[_0x5daf('0x112')]==_0x3e75f8){if(_0x13863d['containsRange'](_0x3c866d,!0x0))return null;_0x2e2547=_0x2e2547['isBefore'](_0x13863d[_0x5daf('0xb')])?_0x2e2547:_0x13863d['start'],_0x427e03=_0x427e03[_0x5daf('0xb0')](_0x13863d[_0x5daf('0xa2')])?_0x427e03:_0x13863d[_0x5daf('0xa2')],_0x18e23a?_0x13863d[_0x5daf('0xb')]['isBefore'](_0x18e23a[_0x5daf('0x59')]()['start'])?(_0x18e23a[_0x5daf('0xb9')](),_0x18e23a=_0x8230db):_0x8230db[_0x5daf('0xb9')]():_0x18e23a=_0x8230db;}else{const _0x6ca60a=_0x3c866d[_0x5daf('0xd6')](_0x13863d);this[_0x5daf('0x1d')](_0x8230db,_0x6ca60a);}}const _0x323fc7=this[_0x5daf('0xda')][_0x5daf('0xc3')]['get'](_0x5daf('0x3c'))['me'],_0x56dc8f=_0x439ef2(),_0xfdeecf=_0x323fc7['id'];if(_0x18e23a)return this[_0x5daf('0x101')](_0x18e23a,this[_0x5daf('0x29')][_0x5daf('0x144')](_0x2e2547,_0x427e03)),_0x18e23a;{const _0x4f46be=this['_setSuggestionData']({'id':_0x56dc8f,'type':'formatBlock:'+_0x3e75f8,'data':_0xd87e65,'createdAt':new Date(),'authorId':_0xfdeecf,'attributes':_0x321b67});return this['_addSuggestionMarker']('formatBlock:'+_0x3e75f8,_0x56dc8f,_0xfdeecf,this['_model'][_0x5daf('0x144')](_0x2e2547,_0x427e03)),_0x4f46be;}}['markMultiRangeBlockFormat'](_0x4c796d,_0x1a40e4,_0x3d385c=[],_0x5aa132=null,_0x3555a0={}){_0x1a40e4[_0x5daf('0x2a')]||(_0x1a40e4[_0x5daf('0x2a')]=_0x1a40e4[_0x5daf('0x3e')]);const _0x1917d4=_0x4c796d[0x0];_0x1a40e4[_0x5daf('0xf2')]=_0x1917d4['is']('range'),_0x5aa132=_0x5aa132||Nt(_0x1a40e4);const _0x3b95f0=_0x3d385c[_0x5daf('0x4')](_0x1b0335=>jt(_0x1b0335,this['_model'])),_0x281108=_0x1917d4['is'](_0x5daf('0x51'))?_0x4c796d:_0x4c796d['map'](_0xa5d247=>jt(_0xa5d247,this[_0x5daf('0x29')]));if(_0x5daf('0x63')===this[_0x5daf('0xf3')]){const _0x55c3d9=this[_0x5daf('0x125')][_0x5daf('0x8d')](_0x5daf('0x27'),_0x5aa132,_0x5daf('0x48'));return this[_0x5daf('0x12a')](()=>_0x55c3d9(_0x281108,_0x1a40e4,_0x3555a0)),null;}_0x3b95f0['push'](..._0x281108);let _0x47d98f=!0x0;for(const _0x5e00b4 of _0x3b95f0)if(!this[_0x5daf('0x4f')](_0x5e00b4)){_0x47d98f=!0x1;break;}if(_0x47d98f&&_0x5daf('0x11d')!==this[_0x5daf('0xf3')]){const _0x42a358=this[_0x5daf('0x125')]['getSuggestionCallback'](_0x5daf('0x27'),_0x5aa132,_0x5daf('0x48'));return this[_0x5daf('0x12a')](()=>_0x42a358(_0x281108,_0x1a40e4,_0x3555a0)),null;}const _0x3bc07e=this[_0x5daf('0xda')]['plugins']['get'](_0x5daf('0x3c'))['me'];for(const _0x4f59a3 of this[_0x5daf('0x145')]()){if(_0x4f59a3[_0x5daf('0x15')]['id']!=_0x3bc07e['id'])continue;if('formatBlock'!=_0x4f59a3[_0x5daf('0x23')]||_0x4f59a3[_0x5daf('0x120')][_0x5daf('0x2a')]!=_0x1a40e4[_0x5daf('0x2a')])continue;if(!Ot(_0x4f59a3,_0x3555a0))continue;const _0x356978=_0x4f59a3[_0x5daf('0x112')]==_0x5aa132;for(let _0x415f8c=0x0;_0x415f8c<_0x281108['length'];_0x415f8c++){const _0x13acb4=_0x281108[_0x415f8c];for(const _0x2a24c6 of _0x4f59a3[_0x5daf('0x87')]()){const _0x24cef9=_0x2a24c6[_0x5daf('0x1a')]();if(_0x13acb4['isEqual'](_0x24cef9)){_0x356978?(_0x281108[_0x5daf('0x5d')](_0x415f8c,0x1),_0x415f8c--):_0x4f59a3[_0x5daf('0x5b')](_0x2a24c6[_0x5daf('0x7f')]);break;}}}}if(0x0==_0x281108['length'])return null;const _0x46ac5f=this['_suggestionFactory'][_0x5daf('0x8d')](_0x5daf('0x27'),_0x5aa132,_0x5daf('0x9e'));for(const _0x5a00be of this[_0x5daf('0x145')]())if(_0x5a00be[_0x5daf('0x15')]['id']==_0x3bc07e['id']&&_0x5daf('0x27')==_0x5a00be[_0x5daf('0x23')]&&_0x5a00be[_0x5daf('0x120')][_0x5daf('0x2a')]==_0x1a40e4['formatGroupId']&&_0x5a00be[_0x5daf('0x112')]==_0x5aa132&&Ot(_0x5a00be,_0x3555a0)&&(_0x46ac5f(_0x5a00be[_0x5daf('0x130')](),_0x281108)||_0x46ac5f(_0x281108,_0x5a00be['getRanges']()))){for(const _0x48b1ab of _0x281108)_0x5a00be['addRange'](_0x48b1ab);return _0x5a00be;}const _0x3b8802=_0x439ef2(),_0x3afc52=_0x3bc07e['id'],_0x4cd0a5=_0x5daf('0x78')+_0x5aa132,_0x10c846=this[_0x5daf('0xb2')]({'id':_0x3b8802,'type':_0x4cd0a5,'data':_0x1a40e4,'createdAt':new Date(),'authorId':_0x3afc52,'attributes':_0x3555a0});for(const _0xb379ea of _0x281108)this[_0x5daf('0x148')](_0x4cd0a5,_0x3b8802,_0x3afc52,_0xb379ea,_0x5eb74b[_0x5daf('0xc8')]());return _0x10c846;}['markDeletion'](_0x134ed5,_0x50d3b1=null,_0x5494d5={}){if(_0x134ed5[_0x5daf('0x8b')])return null;const _0x46273f=this[_0x5daf('0xda')]['plugins'][_0x5daf('0x102')](_0x5daf('0x3c'))['me'],_0x40d419=new _0x4ff719(_0x134ed5[_0x5daf('0xb')],_0x134ed5[_0x5daf('0xa2')]);for(const {suggestion:_0x39d01c,meta:_0x497699}of this[_0x5daf('0x146')](_0x40d419,_0x5daf('0x136')))if(_0x497699[_0x5daf('0x8')]&&!_0x497699['isNextTo']){if(_0x39d01c[_0x5daf('0x3f')]){const _0x418b88=_0x39d01c['getRanges']()['filter'](_0x5a0f7c=>_0x5daf('0xfe')!=_0x5a0f7c[_0x5daf('0x2d')]['rootName']);_0x418b88[_0x5daf('0x24')](_0x2a46aa=>_0x40d419['containsRange'](_0x2a46aa,!0x0))&&_0x39d01c[_0x5daf('0x10f')]();if(_0x418b88[_0x5daf('0x6d')](_0x4b53b0=>_0x4b53b0[_0x5daf('0x54')](_0x40d419,!0x0))){const _0x18a903=this['_suggestionFactory'][_0x5daf('0x8d')](_0x5daf('0x122'),_0x50d3b1,'accept');return this['forceDefaultExecution'](()=>_0x18a903([_0x40d419],null,_0x5494d5)),null;}}else{const _0x9192df=_0x40d419[_0x5daf('0xd6')](_0x39d01c[_0x5daf('0x59')]());null!==_0x9192df&&_0x39d01c[_0x5daf('0x121')]([_0x9192df],null,_0x5494d5);}}if(_0x40d419[_0x5daf('0xf9')](),_0x40d419[_0x5daf('0x8b')]||_0x5daf('0xfe')==_0x40d419['root'][_0x5daf('0xcf')])return null;let _0x3b1fd5=null,_0x5c625c=_0x40d419[_0x5daf('0xb')],_0x502f79=_0x40d419[_0x5daf('0xa2')];const _0x344258=this['_findSuggestions'](_0x40d419,_0x5daf('0x122'));for(const {suggestion:_0x4647f7,meta:_0xab4f82}of _0x344258){const _0x3b0187=this[_0x5daf('0x29')][_0x5daf('0x144')](_0x5c625c,_0x502f79);if(_0xab4f82['isOwn']&&(this['_mergeNestedSuggestions']||!_0xab4f82['containsRangeInObject']&&!_0xab4f82[_0x5daf('0x91')])){if(_0x4647f7[_0x5daf('0x3f')]){if(!Ot(_0x4647f7,_0x5494d5))continue;let _0x2a093b=!0x0;for(const _0x347472 of _0x4647f7[_0x5daf('0x130')]()){if(_0x347472['containsRange'](_0x3b0187,!0x0))return _0x4647f7;_0x3b0187['containsRange'](_0x347472)||(_0x2a093b=!0x1);}_0x2a093b&&_0x4647f7[_0x5daf('0x10f')]();}else{const _0x252ffb=_0x4647f7[_0x5daf('0x59')]();if(_0x252ffb[_0x5daf('0x54')](_0x3b0187,!0x0))return _0x4647f7;if(!Ot(_0x4647f7,_0x5494d5)){_0x3b0187['containsRange'](_0x252ffb)?_0x4647f7[_0x5daf('0xb9')]():_0x252ffb[_0x5daf('0x11a')](_0x5c625c)?_0x5c625c=_0x252ffb[_0x5daf('0xa2')]:_0x252ffb[_0x5daf('0x11a')](_0x502f79)&&(_0x502f79=_0x252ffb[_0x5daf('0xb')]);continue;}_0x5c625c=_0x5c625c[_0x5daf('0x2')](_0x252ffb['start'])?_0x5c625c:_0x252ffb[_0x5daf('0xb')],_0x502f79=_0x502f79[_0x5daf('0xb0')](_0x252ffb[_0x5daf('0xa2')])?_0x502f79:_0x252ffb[_0x5daf('0xa2')],_0x5494d5=Object[_0x5daf('0xb3')]({},_0x4647f7['attributes']),_0x3b1fd5?_0x252ffb[_0x5daf('0xb')][_0x5daf('0x2')](_0x3b1fd5[_0x5daf('0x59')]()[_0x5daf('0xb')])?(_0x3b1fd5[_0x5daf('0xb9')](),_0x3b1fd5=_0x4647f7):_0x4647f7[_0x5daf('0xb9')]():_0x3b1fd5=_0x4647f7;}}}if(_0x3b1fd5)return this[_0x5daf('0x101')](_0x3b1fd5,this['_model']['createRange'](_0x5c625c,_0x502f79)),_0x3b1fd5;{const _0x36c4cc=_0x439ef2(),_0x5943f6=this[_0x5daf('0x29')][_0x5daf('0x144')](_0x5c625c,_0x502f79),_0x3b03a6=_0x46273f['id'],_0x231bc6=_0x50d3b1?_0x5daf('0x4a')+_0x50d3b1:_0x5daf('0x122'),_0x4ac574=this[_0x5daf('0xb2')]({'id':_0x36c4cc,'type':_0x231bc6,'createdAt':new Date(),'authorId':_0x3b03a6,'attributes':_0x5494d5});return this[_0x5daf('0x148')](_0x231bc6,_0x36c4cc,_0x3b03a6,_0x5943f6),_0x4ac574;}}[_0x5daf('0x138')](_0x2c6206,_0xe81a68=_0x5daf('0x105'),_0x5bea38={}){const _0x3b7e5f=this[_0x5daf('0xda')]['plugins'][_0x5daf('0x102')](_0x5daf('0x3c'))['me'],_0x2d2a93=_0x2c6206[_0x5daf('0x4')](_0x17e93a=>new _0x4ff719(_0x17e93a[_0x5daf('0xb')],_0x17e93a['end'])),_0x5296d1=new Set();for(const {suggestion:_0x2f58fd,meta:_0xbb5b7b}of this[_0x5daf('0x146')](_0x2d2a93,'insertion'))_0xbb5b7b['isOwn']&&!_0xbb5b7b[_0x5daf('0x47')]&&_0x5296d1['add'](_0x2f58fd);for(const _0x15e5e0 of _0x5296d1)if(_0x15e5e0[_0x5daf('0x3f')]){const _0x28cb7c=_0x15e5e0['getRanges']();(!_0x15e5e0[_0x5daf('0xe9')]||!_0x15e5e0[_0x5daf('0xe9')]['skipNestingCheck'])&&(_0x28cb7c['every'](_0xdd22cf=>_0x2d2a93[_0x5daf('0x6d')](_0xe44827=>_0xe44827[_0x5daf('0x54')](_0xdd22cf,!0x0)))&&_0x15e5e0[_0x5daf('0x10f')]());if(_0x2d2a93[_0x5daf('0x24')](_0x1880dc=>_0x28cb7c[_0x5daf('0x6d')](_0x5683d1=>_0x5683d1[_0x5daf('0x54')](_0x1880dc,!0x0)))){const _0x26578d=this[_0x5daf('0x125')]['getSuggestionCallback'](_0x5daf('0x122'),_0xe81a68,_0x5daf('0x48'));return this[_0x5daf('0x12a')](()=>_0x26578d(_0x2c6206,null,_0x5bea38)),null;}}else{const _0x2768f6=_0x15e5e0[_0x5daf('0x59')]();_0x2d2a93[_0x5daf('0x6d')](_0x1d77ff=>_0x1d77ff[_0x5daf('0x54')](_0x2768f6,!0x0))&&_0x15e5e0[_0x5daf('0x10f')]();if(_0x2d2a93[_0x5daf('0x24')](_0x2f5521=>_0x2768f6[_0x5daf('0x54')](_0x2f5521,!0x0))){const _0x30c854=this[_0x5daf('0x125')][_0x5daf('0x8d')](_0x5daf('0x122'),_0xe81a68,_0x5daf('0x48'));return this[_0x5daf('0x12a')](()=>_0x30c854(_0x2d2a93,null,_0x5bea38)),null;}}const _0x229b7c=this[_0x5daf('0x125')][_0x5daf('0x8d')](_0x5daf('0x122'),_0xe81a68,_0x5daf('0x9e'));let _0xc04f61=null;for(const _0x35a5f1 of this[_0x5daf('0x145')]())if(_0x35a5f1[_0x5daf('0x15')]['id']==_0x3b7e5f['id']&&_0x35a5f1[_0x5daf('0x140')]&&_0x5daf('0x122')==_0x35a5f1[_0x5daf('0x23')]&&_0x35a5f1['subType']==_0xe81a68&&Ot(_0x35a5f1,_0x5bea38)&&(_0x229b7c(_0x35a5f1[_0x5daf('0x130')](),_0x2d2a93)||_0x229b7c(_0x2d2a93,_0x35a5f1[_0x5daf('0x130')]()))){if(_0xc04f61){if(_0x35a5f1[_0x5daf('0xc1')]&&_0x35a5f1[_0x5daf('0xc1')][_0x5daf('0xcb')])continue;for(const _0x2a565a of _0x35a5f1['getRanges']())_0xc04f61['isIntersectingWithRange'](_0x2a565a)||_0xc04f61[_0x5daf('0x40')](_0x2a565a);_0x35a5f1[_0x5daf('0xb9')]();}else{_0xc04f61=_0x35a5f1;for(const _0x26b860 of _0x2d2a93)_0x35a5f1['isIntersectingWithRange'](_0x26b860)||_0x35a5f1['addRange'](_0x26b860);}}if(_0xc04f61)return _0xc04f61;_0x5296d1[_0x5daf('0x3a')]();for(const {suggestion:_0x1537b3,meta:_0x1cc8e8}of this['_findSuggestions'](_0x2d2a93,_0x5daf('0x122')))_0x1cc8e8[_0x5daf('0x8')]&&(this[_0x5daf('0x126')]||!_0x1cc8e8['containsRangeInObject']&&!_0x1cc8e8['isInsideObject'])&&Ot(_0x1537b3,_0x5bea38)&&_0x5296d1['add'](_0x1537b3);for(const _0x2d2475 of _0x5296d1){const _0x27ef10=_0x2d2475[_0x5daf('0x130')]();if(!_0x5bea38||!_0x5bea38[_0x5daf('0x53')]){if(_0x2d2a93[_0x5daf('0x24')](_0x24b4c5=>_0x27ef10[_0x5daf('0x6d')](_0x543286=>_0x543286[_0x5daf('0x54')](_0x24b4c5,!0x0))))return _0x2d2475;}(!_0x2d2475[_0x5daf('0xe9')]||!_0x2d2475[_0x5daf('0xe9')][_0x5daf('0x53')])&&(_0x27ef10[_0x5daf('0x24')](_0x24605c=>_0x2d2a93['some'](_0x34caeb=>_0x34caeb[_0x5daf('0x54')](_0x24605c,!0x0)))&&_0x2d2475[_0x5daf('0x10f')]());}const _0x2d3443=_0x439ef2(),_0x8fc2d7=_0x3b7e5f['id'],_0x2b4a7d=_0x5daf('0x4a')+_0xe81a68,_0x429fd5=this['_setSuggestionData']({'id':_0x2d3443,'type':_0x2b4a7d,'createdAt':new Date(),'authorId':_0x8fc2d7,'attributes':_0x5bea38});for(const _0x34c3ec of _0x2d2a93)_0x34c3ec[_0x5daf('0xf9')](),_0x34c3ec[_0x5daf('0x8b')]||_0x5daf('0xfe')==_0x34c3ec['root'][_0x5daf('0xcf')]||this[_0x5daf('0x148')](_0x2b4a7d,_0x2d3443,_0x8fc2d7,_0x34c3ec,_0x5eb74b['getMultiRangeId']());return _0x429fd5;}[_0x5daf('0x101')](_0xe6e24f,_0x200436){const _0x16d719=_0xe6e24f[_0x5daf('0xab')]();this[_0x5daf('0x29')]['change'](_0x1046ed=>{_0x1046ed['updateMarker'](_0x16d719,{'range':_0x200436});});}[_0x5daf('0x50')](_0x3a8fed){const _0xe1c863=_0x3a8fed['id'],_0x148a95=this[_0x5daf('0xda')][_0x5daf('0xe1')][_0x5daf('0x102')](_0x5daf('0xf6'));this[_0x5daf('0x46')][_0x5daf('0x73')](_0xe1c863)||this[_0x5daf('0x46')]['addCommentThread']({'channelId':_0x148a95,'threadId':_0xe1c863,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4c5b2f=this[_0x5daf('0x46')][_0x5daf('0x116')](_0xe1c863);_0x4c5b2f[_0x5daf('0x100')]('isRemovable'),_0x4c5b2f[_0x5daf('0xd0')]=!0x1,_0x3a8fed[_0x5daf('0xc1')]=_0x4c5b2f;}[_0x5daf('0xe3')](_0x26aa51,_0x2f2db0,_0x4d6d46,_0x22d2f3){if(_0x26aa51[_0x5daf('0x23')]!=_0x2f2db0||_0x26aa51[_0x5daf('0x112')]!=_0x4d6d46||_0x26aa51[_0x5daf('0x9c')]['id']!=_0x22d2f3)throw this['editor'][_0x5daf('0x12e')](_0x5daf('0xc2')),new _0x1f6c19('track-changes-suggestion-data-mismatch',this);}[_0x5daf('0x1d')](_0x4d0156,_0x3fe9da){const _0x490dfb=_0x4d0156[_0x5daf('0x59')]();if(_0x3fe9da['isEqual'](_0x490dfb))_0x4d0156[_0x5daf('0xb9')]();else{if(_0x490dfb['containsRange'](_0x3fe9da)){const _0x50c741=this[_0x5daf('0x29')][_0x5daf('0x43')](_0x3fe9da[_0x5daf('0xb')][_0x5daf('0x123')],_0x5daf('0xa2'));this[_0x5daf('0x101')](_0x4d0156,this[_0x5daf('0x29')][_0x5daf('0x144')](_0x490dfb['start'],_0x50c741));const _0x310ae9=_0x439ef2(),_0x34b609=_0x4d0156['creator']['id'],_0x5a539a=_0x4d0156[_0x5daf('0x23')]+':'+_0x4d0156[_0x5daf('0x112')];this[_0x5daf('0xb2')]({'id':_0x310ae9,'type':_0x5a539a,'createdAt':new Date(),'authorId':_0x34b609,'data':_0x4d0156[_0x5daf('0x120')],'attributes':_0x4d0156[_0x5daf('0xe9')]});const _0x5c2725=this[_0x5daf('0x29')][_0x5daf('0x43')](_0x3fe9da[_0x5daf('0xa2')][_0x5daf('0x128')],_0x5daf('0xba')),_0x3fcda1=this[_0x5daf('0x29')][_0x5daf('0x144')](_0x5c2725,_0x490dfb[_0x5daf('0xa2')]);this[_0x5daf('0x148')](_0x5a539a,_0x310ae9,_0x34b609,_0x3fcda1);}else{if(_0x490dfb[_0x5daf('0x11a')](_0x3fe9da[_0x5daf('0xb')])){const _0x4e6058=this[_0x5daf('0x29')][_0x5daf('0x43')](_0x3fe9da[_0x5daf('0xb')][_0x5daf('0x123')],'end');this[_0x5daf('0x101')](_0x4d0156,this[_0x5daf('0x29')]['createRange'](_0x490dfb[_0x5daf('0xb')],_0x4e6058));}else{const _0x11a939=this[_0x5daf('0x29')][_0x5daf('0x43')](_0x3fe9da[_0x5daf('0xa2')][_0x5daf('0x128')],'after');this['_setSuggestionRange'](_0x4d0156,this['_model'][_0x5daf('0x144')](_0x11a939,_0x490dfb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x14c92d){for(const {suggestion:_0x35d4ea,meta:_0x3955be}of this[_0x5daf('0x146')](_0x14c92d,_0x5daf('0x136'))){if(!_0x3955be[_0x5daf('0x8')])continue;const _0x5ca412=_0x35d4ea['getRanges']();for(const _0x2f3a4e of _0x5ca412)if(!_0x14c92d[_0x5daf('0x77')](_0x2f3a4e)[_0x5daf('0xcb')])return!0x0;}return!0x1;}[_0x5daf('0x3b')](_0x52fda2){const _0x1051d4=this[_0x5daf('0xda')][_0x5daf('0xc3')][_0x5daf('0x102')](_0x5daf('0x3c'))['getUser'](_0x52fda2);if(!_0x1051d4)throw new _0x1f6c19(_0x5daf('0xe0'),this);return _0x1051d4;}[_0x5daf('0x52')](_0x340132){const _0x78149f=this[_0x5daf('0xda')][_0x5daf('0xc3')]['get'](_0x5daf('0x3c')),_0x2cd449=_0x46dd8b(_0x5daf('0xf0')+_0x340132),_0x5a49e3=_0x78149f['getUser'](_0x2cd449);return _0x5a49e3||_0x78149f[_0x5daf('0x41')]({'id':_0x2cd449,'name':_0x340132});}[_0x5daf('0xee')](_0x572274,_0x235f5b,_0xcc9ed0,_0x2978e8,_0x42d5d4){const _0x432d51=this[_0x5daf('0x3b')](_0x2978e8),_0x2cf295=this[_0x5daf('0x125')]['buildSuggestion'](_0x572274,_0x235f5b,_0xcc9ed0,_0x432d51,_0x42d5d4,_0x41da74=>this['_updateSuggestionData'](_0xcc9ed0,{'attributes':_0x41da74}));return this[_0x5daf('0xac')](_0x2cf295,_0x5daf('0x48'),()=>{this[_0x5daf('0x68')](_0xcc9ed0,{'state':_0x5daf('0x11f')});},{'priority':_0x5daf('0xc')}),this['listenTo'](_0x2cf295,_0x5daf('0x10f'),()=>{this[_0x5daf('0x68')](_0xcc9ed0,{'state':'rejected'});},{'priority':'high'}),this[_0x5daf('0x132')]['set'](_0xcc9ed0,_0x2cf295),this[_0x5daf('0x13d')][_0x5daf('0x3d')](_0x2cf295,_0x5daf('0xe2')),_0x2cf295;}['_splitMarkerName'](_0x2498e3){const _0x15d9f9=_0x2498e3[_0x5daf('0xdd')](':');return{'group':_0x15d9f9[0x0],'type':_0x15d9f9[0x1],'subType':_0x15d9f9[_0x5daf('0xcb')]>=0x5?_0x15d9f9[0x2]:null,'id':_0x15d9f9[_0x5daf('0xcb')]<0x5?_0x15d9f9[0x2]:_0x15d9f9[0x3],'authorId':_0x15d9f9[_0x5daf('0xcb')]<0x5?_0x15d9f9[0x3]:_0x15d9f9[0x4],'markerCount':0x6==_0x15d9f9[_0x5daf('0xcb')]?_0x15d9f9[0x5]:null};}[_0x5daf('0x11c')](_0x249b3f,_0x123ad2,_0x1a8cd7){const _0x1f3ae2=_0x249b3f[_0x5daf('0x59')](),_0x22d393=_0x1f3ae2[_0x5daf('0xb')],_0x574cc9=_0x1f3ae2['end'];this[_0x5daf('0x101')](_0x249b3f,this[_0x5daf('0x29')]['createRange'](_0x22d393,_0x123ad2));const _0x1848bb=_0x439ef2(),_0x45062e=_0x249b3f['creator']['id'],_0x13ee5d=_0x249b3f[_0x5daf('0x23')]+(_0x249b3f['subType']?':'+_0x249b3f['subType']:'');this['_setSuggestionData']({'id':_0x1848bb,'type':_0x13ee5d,'createdAt':new Date(),'authorId':_0x45062e,'originalSuggestionId':_0x249b3f['id'],'attributes':_0x249b3f['attributes'],'data':_0x249b3f[_0x5daf('0x120')]}),_0x5daf('0x27')==_0x249b3f[_0x5daf('0x23')]&&(_0x1a8cd7=this['_model'][_0x5daf('0x38')](_0x1a8cd7[_0x5daf('0x128')])),this[_0x5daf('0x148')](_0x13ee5d,_0x1848bb,_0x45062e,this[_0x5daf('0x29')][_0x5daf('0x144')](_0x1a8cd7,_0x574cc9));}[_0x5daf('0x146')](_0x3bf584,_0xa11fff=null){const _0x5f1e78=[],_0x2ccb55=this['editor']['plugins']['get']('Users')['me'];Array[_0x5daf('0x5')](_0x3bf584)||(_0x3bf584=[_0x3bf584]);for(const _0x277fef of this[_0x5daf('0x145')]()){if(!_0x277fef[_0x5daf('0x140')])continue;if(_0xa11fff&&_0x277fef[_0x5daf('0x23')]!=_0xa11fff)continue;let _0xffd9ff=!0x1;for(const _0x19d01f of _0x277fef[_0x5daf('0x130')]()){for(const _0x42a904 of _0x3bf584){const _0x12cdae=_0x42a904[_0x5daf('0xb')][_0x5daf('0x110')](_0x19d01f[_0x5daf('0xa2')])||_0x42a904[_0x5daf('0xa2')][_0x5daf('0x110')](_0x19d01f[_0x5daf('0xb')]);if(_0x12cdae||_0x42a904[_0x5daf('0xd6')](_0x19d01f)){const _0x5f2f7e=_0x42a904[_0x5daf('0x54')](_0x19d01f)&&_t(this['_model'][_0x5daf('0xfc')],_0x19d01f[_0x5daf('0xb')],_0x42a904),_0x121c57=_0x19d01f[_0x5daf('0x54')](_0x42a904)&&_t(this[_0x5daf('0x29')]['schema'],_0x42a904['start'],_0x19d01f);_0x5f1e78['push']({'suggestion':_0x277fef,'meta':{'isOwn':_0x2ccb55==_0x277fef[_0x5daf('0x15')],'isNextTo':_0x12cdae,'isInsideObject':_0x5f2f7e,'containsRangeInObject':_0x121c57}}),_0xffd9ff=!0x0;break;}}if(_0xffd9ff)break;}}return _0x5f1e78;}[_0x5daf('0x148')](_0x398bd0,_0x138e80,_0x4b652b,_0xc0c63e,_0xd03925){this['_model'][_0x5daf('0x7e')](_0x47b052=>{let _0x3fc08d=_0x5daf('0x10e')+_0x398bd0+':'+_0x138e80+':'+_0x4b652b;_0xd03925&&(_0x3fc08d=_0x3fc08d+':'+_0xd03925),_0x47b052[_0x5daf('0xbd')](_0x3fc08d,{'range':_0xc0c63e,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5daf('0x85')](_0x12fbac){const _0x10d275=_0x12fbac[_0x5daf('0x49')],_0x4c66e5=_0x12fbac['next'];_0x12fbac[_0x5daf('0x49')]=null,null!=_0x10d275&&(_0x10d275[_0x5daf('0xe5')]=null),_0x12fbac['next']=null,null!=_0x4c66e5&&(_0x4c66e5[_0x5daf('0x49')]=null),_0x5daf('0x9a')==this['_suggestionState'][_0x5daf('0x102')](_0x12fbac)&&(this[_0x5daf('0x13d')][_0x5daf('0x3d')](_0x12fbac,'removed'),this['fire'](_0x5daf('0x114'),_0x12fbac,_0x10d275,_0x4c66e5));}[_0x5daf('0xb2')](_0x4f5179){const _0x51bcf5=_0x4f5179['id'],_0x3ad452=this[_0x5daf('0xc4')](_0x4f5179);if(this[_0x5daf('0x5c')]&&this[_0x5daf('0x5c')]['addSuggestion']){const _0x3d7a04=this[_0x5daf('0xda')]['plugins'][_0x5daf('0x102')](_0x5daf('0x88')),_0x30f68c=_0x3ad452[_0x5daf('0x10a')],_0x3b2509=_0x3ad452['subType']?_0x3ad452[_0x5daf('0x23')]+':'+_0x3ad452[_0x5daf('0x112')]:_0x3ad452[_0x5daf('0x23')],_0x57d7cd=this[_0x5daf('0xda')]['locale'],_0x342354=_0x3d7a04[_0x5daf('0x6')](_0x27cd4f(_0x57d7cd,_0x5daf('0xd'))),_0x1c4ceb={'id':_0x51bcf5,'type':_0x3b2509,'hasComments':_0x30f68c,'data':_0x4f5179[_0x5daf('0x120')]||null,'originalSuggestionId':_0x4f5179[_0x5daf('0x19')]||null,'attributes':_0x3ad452[_0x5daf('0xe9')]};this[_0x5daf('0x5c')][_0x5daf('0xa7')](_0x1c4ceb)['then'](_0x54df68=>{_0x3ad452['_saved']=!0x0,_0x3d7a04['remove'](_0x342354),_0x54df68&&_0x54df68['createdAt']&&(this[_0x5daf('0x132')]['get'](_0x51bcf5)['createdAt']=_0x54df68[_0x5daf('0x34')]);})[_0x5daf('0xdf')](_0x5a7375=>{throw _0x469995('error-saving-suggestion-data-suggestion-discarded'),this[_0x5daf('0xda')]['model'][_0x5daf('0x103')]({'isUndoable':!0x1},()=>{_0x3ad452[_0x5daf('0x10f')]();}),_0x3ad452[_0x5daf('0x10d')](),this[_0x5daf('0x132')]['delete'](_0x3ad452['id']),this['_suggestionState'][_0x5daf('0xb7')](_0x3ad452),_0x5a7375;});}return _0x3ad452;}[_0x5daf('0x68')](_0x2d4136,_0x200b01){const _0x2944d5=this[_0x5daf('0xda')]['plugins'][_0x5daf('0x102')]('PendingActions'),_0x1d509e=this[_0x5daf('0x44')](_0x2d4136);if(this[_0x5daf('0x5c')]&&this[_0x5daf('0x5c')][_0x5daf('0xb4')]){if(_0x1d509e[_0x5daf('0x109')]){const _0x28584c=_0x2944d5[_0x5daf('0x6')](_0x27cd4f(this[_0x5daf('0xda')][_0x5daf('0x66')],'PENDING_ACTION_SUGGESTION'));this[_0x5daf('0x5c')][_0x5daf('0xb4')](_0x2d4136,_0x200b01)[_0x5daf('0xc6')](()=>{_0x2944d5[_0x5daf('0xf8')](_0x28584c);});}else _0x1d509e['on'](_0x5daf('0x13f'),()=>{this[_0x5daf('0x68')](_0x2d4136,_0x200b01);});}}[_0x5daf('0x28')](_0x2f3c13){if(!this[_0x5daf('0x5c')]||!this[_0x5daf('0x5c')]['getSuggestion'])throw new _0x1f6c19(_0x5daf('0x26'),this);return this[_0x5daf('0x5c')][_0x5daf('0x44')](_0x2f3c13);}[_0x5daf('0x84')](_0x1f6bce){const {id:_0x12b7d1,type:_0x39c384,subType:_0xc200a0,authorId:_0x332832}=this[_0x5daf('0x92')](_0x1f6bce),_0x59ae32=this[_0x5daf('0x132')][_0x5daf('0x102')](_0x12b7d1)||this[_0x5daf('0xee')](_0x39c384,_0xc200a0,_0x12b7d1,_0x332832,{});switch(this[_0x5daf('0xe3')](_0x59ae32,_0x39c384,_0xc200a0,_0x332832),this['_suggestionState'][_0x5daf('0x102')](_0x59ae32)){case'notReady':this[_0x5daf('0x28')](_0x12b7d1)['then'](_0x15f244=>{let _0x35d859=Promise[_0x5daf('0xfb')]();_0x15f244['hasComments']&&(_0x35d859=this[_0x5daf('0x46')]['fetchCommentThread']({'channelId':this[_0x5daf('0xda')]['config'][_0x5daf('0x102')](_0x5daf('0xf6')),'threadId':_0x12b7d1})),_0x35d859[_0x5daf('0xc6')](()=>{this['addSuggestionData'](_0x15f244)['_saved']=!0x0;});}),this[_0x5daf('0x13d')][_0x5daf('0x3d')](_0x59ae32,_0x5daf('0xc5'));break;case _0x5daf('0x113'):this[_0x5daf('0x68')](_0x12b7d1,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x59ae32,_0x5daf('0x9a')),this[_0x5daf('0x12f')](_0x5daf('0xc7'),_0x59ae32);break;case'ready':this['fire'](_0x5daf('0xbb'),_0x59ae32);}return _0x59ae32[_0x5daf('0x31')](_0x1f6bce),_0x59ae32;}['_refreshSuggestionsChain'](_0x8c3023){const _0x4c6ef3=Array[_0x5daf('0xed')](_0x8c3023)[_0x5daf('0x4e')](_0x272965=>!_0x272965[_0x5daf('0x3f')]),_0x519159=this['getSuggestions']({'skipNotAttached':!0x0})[_0x5daf('0x4e')](_0x23d8c4=>!_0x23d8c4[_0x5daf('0x3f')]),_0xbe2c30=_0x519159[_0x5daf('0x4e')](_0xa11bb2=>!_0x8c3023[_0x5daf('0xf4')](_0xa11bb2)),_0x137bef=new Map(_0x519159['map'](_0x5b19e3=>[_0x5b19e3,this['_suggestionFactory'][_0x5daf('0x8d')](_0x5b19e3['type'],_0x5b19e3[_0x5daf('0x112')],_0x5daf('0x119'))])),_0x2d5acb=new Map(_0x519159[_0x5daf('0x4')](_0x16277f=>[_0x16277f,_0x16277f[_0x5daf('0x59')]()])),_0x18abb3=new Set(),_0x55a4f8=new Set();for(let _0xdb48c9=0x0;_0xdb48c9<_0x4c6ef3[_0x5daf('0xcb')];_0xdb48c9++)_0x554e0d(_0x4c6ef3[_0xdb48c9],_0x4c6ef3,_0xdb48c9+0x1);for(let _0x4de4bc=0x0;_0x4de4bc<_0x4c6ef3[_0x5daf('0xcb')];_0x4de4bc++)_0x554e0d(_0x4c6ef3[_0x4de4bc],_0xbe2c30,0x0);for(let _0x240a12=0x0;_0x240a12<_0x4c6ef3[_0x5daf('0xcb')];_0x240a12++){const _0x1d4734=_0x4c6ef3[_0x240a12];!_0x55a4f8[_0x5daf('0xf4')](_0x1d4734)&&_0x1d4734[_0x5daf('0x49')]&&(_0x1d4734[_0x5daf('0x49')]['next']===_0x1d4734&&(_0x1d4734['previous']['next']=null),_0x1d4734[_0x5daf('0x49')]=null),!_0x18abb3[_0x5daf('0xf4')](_0x1d4734)&&_0x1d4734[_0x5daf('0xe5')]&&(_0x1d4734['next'][_0x5daf('0x49')]===_0x1d4734&&(_0x1d4734['next']['previous']=null),_0x1d4734[_0x5daf('0xe5')]=null);}function _0x554e0d(_0x230f3c,_0x1c9f9b,_0x245c91){for(let _0x3829e5=_0x245c91;_0x3829e5<_0x1c9f9b['length'];_0x3829e5++){const _0xa81241=_0x4d51c6(_0x230f3c,_0x1c9f9b[_0x3829e5]);_0xa81241&&(_0xa81241[0x0][_0x5daf('0xe5')]=_0xa81241[0x1],_0xa81241[0x1][_0x5daf('0x49')]=_0xa81241[0x0],_0x18abb3[_0x5daf('0x6')](_0xa81241[0x0]),_0x55a4f8[_0x5daf('0x6')](_0xa81241[0x1]));}}function _0x4d51c6(_0x4f7496,_0x57b290){if(_0x4f7496[_0x5daf('0x15')]['id']!==_0x57b290[_0x5daf('0x15')]['id'])return null;const _0x2144f4=_0x137bef['get'](_0x4f7496)(_0x4f7496,_0x57b290,_0x2d5acb[_0x5daf('0x102')](_0x4f7496),_0x2d5acb[_0x5daf('0x102')](_0x57b290));if(!_0x2144f4)return null;return _0x137bef[_0x5daf('0x102')](_0x57b290)(_0x4f7496,_0x57b290,_0x2d5acb[_0x5daf('0x102')](_0x4f7496),_0x2d5acb['get'](_0x57b290))?_0x2144f4[0x1][_0x5daf('0xc1')]&&_0x2144f4[0x1][_0x5daf('0xc1')][_0x5daf('0xcb')]?null:_0x2144f4:null;}}[_0x5daf('0x83')](_0x4ffb26){const _0x54520d=Array[_0x5daf('0xed')](_0x4ffb26),_0x414299=this['getSuggestions']({'skipNotAttached':!0x0}),_0x8536e6=_0x414299[_0x5daf('0x4e')](_0x326c50=>!_0x4ffb26[_0x5daf('0xf4')](_0x326c50)),_0x534d98=new Map(_0x54520d[_0x5daf('0x4')](_0x5cdcf0=>[_0x5cdcf0,this['_suggestionFactory']['getSuggestionCallback'](_0x5cdcf0[_0x5daf('0x23')],_0x5cdcf0[_0x5daf('0x112')],_0x5daf('0x9e'))])),_0x5efa48=new Map(_0x414299[_0x5daf('0x4')](_0x3bc58e=>[_0x3bc58e,_0x3bc58e[_0x5daf('0x130')]()]));for(let _0x4f1269=0x0;_0x4f1269<_0x54520d['length'];_0x4f1269++){if(_0x4a8fc0(this,_0x54520d[_0x4f1269],_0x54520d,_0x4f1269+0x1))return!0x0;}for(let _0x22df5f=0x0;_0x22df5f<_0x54520d[_0x5daf('0xcb')];_0x22df5f++){if(_0x4a8fc0(this,_0x54520d[_0x22df5f],_0x8536e6,0x0))return!0x0;}return!0x1;function _0x4a8fc0(_0x1f8638,_0x35a677,_0x5116cb,_0x2f3e39){for(let _0x519d25=_0x2f3e39;_0x519d25<_0x5116cb[_0x5daf('0xcb')];_0x519d25++){const _0x6cc01=_0x5116cb[_0x519d25];if(_0x6cc01[_0x5daf('0x23')]!==_0x35a677[_0x5daf('0x23')]||_0x6cc01[_0x5daf('0x15')]['id']!==_0x35a677[_0x5daf('0x15')]['id']||_0x6cc01[_0x5daf('0x112')]!==_0x35a677[_0x5daf('0x112')])continue;if(!Ut(_0x35a677,_0x6cc01))continue;const _0x195982=_0x534d98['get'](_0x35a677),_0x3bda83=_0x5efa48['get'](_0x35a677),_0x3d83da=_0x5efa48[_0x5daf('0x102')](_0x6cc01),_0x1b6e93=_0x35a677[_0x5daf('0xc1')]&&_0x35a677[_0x5daf('0xc1')][_0x5daf('0xcb')],_0x50a75a=_0x6cc01[_0x5daf('0xc1')]&&_0x6cc01[_0x5daf('0xc1')][_0x5daf('0xcb')];if(!_0x1b6e93&&_0x195982(_0x3d83da,_0x3bda83))return _0x1f8638[_0x5daf('0x6b')](_0x6cc01,_0x35a677),_0x5efa48['delete'](_0x35a677),!0x0;if(!_0x50a75a&&_0x195982(_0x3bda83,_0x3d83da))return _0x1f8638[_0x5daf('0x6b')](_0x35a677,_0x6cc01),_0x5efa48[_0x5daf('0xb7')](_0x6cc01),!0x0;}return!0x1;}}['_joinSuggestions'](_0x438981,_0x5ac56e){if(_0x438981[_0x5daf('0x3f')])for(const _0x21c296 of _0x5ac56e['getRanges']())_0x438981[_0x5daf('0x40')](_0x21c296);else{const _0x292693=_0x5ac56e['getFirstRange']()[_0x5daf('0xa2')];this[_0x5daf('0x101')](_0x438981,this[_0x5daf('0x29')][_0x5daf('0x144')](_0x438981[_0x5daf('0x59')]()['start'],_0x292693));}_0x5ac56e['removeMarkers']();}}class Bt{constructor(_0x294183){this[_0x5daf('0x65')]=_0x294183,this[_0x5daf('0x29')]=_0x294183[_0x5daf('0xb8')],this[_0x5daf('0x76')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x5daf('0xfa')]();}[_0x5daf('0x1f')](_0x14f4f9,_0x71abe6,_0x33656f,_0x5eb67e,_0x440016,_0x2cc8be){return new _0x5eb74b(this[_0x5daf('0x29')],{'type':_0x14f4f9,'subType':_0x71abe6,'id':_0x33656f,'author':_0x5eb67e,'creator':_0x5eb67e,'attributes':_0x440016,'onAttributesChange':_0x2cc8be,'onAccept':(..._0xe37db4)=>this[_0x5daf('0x8d')](_0x14f4f9,_0x71abe6,_0x5daf('0x48'))(..._0xe37db4),'onDiscard':(..._0xc0417b)=>this[_0x5daf('0x8d')](_0x14f4f9,_0x71abe6,_0x5daf('0x10f'))(..._0xc0417b)});}[_0x5daf('0x8a')](_0x20bf89,_0xe76d49,_0x3dfc13,_0x48e6b9){const _0x551e94=_0x20bf89+':'+_0xe76d49+':'+_0x3dfc13;this[_0x5daf('0x76')][_0x5daf('0x3d')](_0x551e94,_0x48e6b9);}[_0x5daf('0x8d')](_0x5b4867,_0x557b78,_0x141c43){const _0x36d75a=_0x5b4867+':'+_0x557b78+':'+_0x141c43;return this[_0x5daf('0x76')][_0x5daf('0x102')](_0x36d75a)||this['_defaultCallbacks'][_0x5daf('0x102')](_0x5b4867+':'+_0x141c43);}[_0x5daf('0xfa')](){const _0x3926f6=()=>!0x1,_0x76720d=_0x2ecd4c=>{_0x2ecd4c['sort']((_0x3ceed9,_0x16c92a)=>_0x3ceed9[_0x5daf('0xb')][_0x5daf('0x2')](_0x16c92a[_0x5daf('0xb')])?0x1:-0x1),this[_0x5daf('0x29')][_0x5daf('0x7e')](_0x29e1b2=>{for(const _0x4b5e0e of _0x2ecd4c){let _0x261464;_0x261464=_0x4b5e0e[_0x5daf('0xa2')][_0x5daf('0x9d')]&&_0x4b5e0e[_0x5daf('0xa2')]['parent']==_0x4b5e0e[_0x5daf('0xb')][_0x5daf('0xa')]?_0x29e1b2['createSelection'](_0x4b5e0e[_0x5daf('0xb')][_0x5daf('0xa')],'on'):_0x29e1b2[_0x5daf('0x22')](_0x4b5e0e),this['_model'][_0x5daf('0x139')](_0x261464,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3c6f8f=(_0x5e12a5,_0x4425e8)=>{this[_0x5daf('0x29')][_0x5daf('0x7e')](_0x29d969=>{const {commandName:_0x1a8cdc,commandParams:_0xfabecc=[]}=_0x4425e8,_0x9861b8=_0x5e12a5[_0x5daf('0x4')](_0xdf97bf=>(Mt(_0xdf97bf)&&(_0xdf97bf=this['_model'][_0x5daf('0x144')](_0xdf97bf[_0x5daf('0xa2')])),_0xdf97bf))[_0x5daf('0x4e')](_0x31352d=>'$graveyard'!==_0x31352d[_0x5daf('0x2d')][_0x5daf('0xcf')]);if(_0x9861b8['length']<0x1)return;const _0x4f1a3b=Array[_0x5daf('0xed')](this[_0x5daf('0x29')][_0x5daf('0x79')][_0x5daf('0xd9')]['getRanges']())[_0x5daf('0x4')](_0x140240=>_0x4ff719['fromRange'](_0x140240));_0x29d969['setSelection'](_0x9861b8);for(const _0xd57b8a of this[_0x5daf('0x65')][_0x5daf('0xa6')]['commands']())_0xd57b8a[_0x5daf('0xd8')]();_0xfabecc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1a8cdc,..._0xfabecc);const _0x228527=_0x4f1a3b[_0x5daf('0x4e')](_0x3910cb=>_0x5daf('0xfe')!=_0x3910cb['root'][_0x5daf('0xcf')]);_0x228527['length']>0x0&&_0x29d969[_0x5daf('0xff')](_0x228527);for(const _0x10ab9c of _0x4f1a3b)_0x10ab9c[_0x5daf('0xf9')]();});},_0x2d75f0=(_0x4223d5,_0x26ef95)=>0x1==_0x4223d5[_0x5daf('0xcb')]&&0x1==_0x26ef95['length']&&_0x4223d5[0x0]['end'][_0x5daf('0x110')](_0x26ef95[0x0][_0x5daf('0xb')]),_0x11b530=(_0x4b0113,_0x338d8d,_0x67e83,_0x4b188c)=>xt(_0x4b0113,_0x338d8d,_0x67e83,_0x4b188c,this[_0x5daf('0x29')])?[_0x4b0113,_0x338d8d]:xt(_0x338d8d,_0x4b0113,_0x4b188c,_0x67e83,this['_model'])?[_0x338d8d,_0x4b0113]:null;this[_0x5daf('0xec')]['set'](_0x5daf('0x10c'),_0x3926f6),this['_defaultCallbacks']['set'](_0x5daf('0x1b'),_0x76720d),this['_defaultCallbacks'][_0x5daf('0x3d')](_0x5daf('0x39'),_0x2d75f0),this['_defaultCallbacks'][_0x5daf('0x3d')](_0x5daf('0xdb'),_0x11b530),this[_0x5daf('0xec')][_0x5daf('0x3d')](_0x5daf('0xcd'),_0x76720d),this[_0x5daf('0xec')][_0x5daf('0x3d')](_0x5daf('0x13b'),_0x3926f6),this['_defaultCallbacks']['set']('deletion:join',_0x2d75f0),this[_0x5daf('0xec')][_0x5daf('0x3d')](_0x5daf('0x70'),_0x11b530),this['_defaultCallbacks'][_0x5daf('0x3d')](_0x5daf('0x9f'),_0x3c6f8f),this[_0x5daf('0xec')][_0x5daf('0x3d')]('formatInline:discard',_0x3926f6),this[_0x5daf('0xec')][_0x5daf('0x3d')](_0x5daf('0x12'),_0x2d75f0),this[_0x5daf('0xec')][_0x5daf('0x3d')](_0x5daf('0x33'),_0x3926f6),this[_0x5daf('0xec')][_0x5daf('0x3d')](_0x5daf('0xad'),_0x3c6f8f),this[_0x5daf('0xec')][_0x5daf('0x3d')](_0x5daf('0x127'),_0x3926f6),this['_defaultCallbacks'][_0x5daf('0x3d')]('formatBlock:join',_0x2d75f0),this[_0x5daf('0xec')][_0x5daf('0x3d')](_0x5daf('0x2b'),_0x3926f6);}}function _t(_0x4b093d,_0x2d68bc,_0x41bf51){for(const _0x5c1425 of _0x2d68bc[_0x5daf('0x128')][_0x5daf('0x10b')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5c1425['root']==_0x5c1425)return!0x1;if(!_0x41bf51[_0x5daf('0x8e')](_0x5c1425))return!0x1;if(_0x4b093d[_0x5daf('0xa3')](_0x5c1425)||_0x4b093d[_0x5daf('0x4d')](_0x5c1425))return!0x0;}return!0x1;}function Mt(_0xe890c9){return _0xe890c9['end']['parent']==_0xe890c9[_0x5daf('0xb')][_0x5daf('0xa')]&&_0xe890c9[_0x5daf('0xa2')][_0x5daf('0xc9')];}function $t(_0x582101,_0x22e9de,_0x53de64,_0x47bdcb){const _0x1bd3d4=_0x320e6d=>!_0x320e6d['item']['is'](_0x5daf('0x80'))&&!_0x47bdcb['isObject'](_0x320e6d[_0x5daf('0x10')]),_0x1e54e9=_0x582101[_0x5daf('0xb')][_0x5daf('0xd2')](_0x1bd3d4),_0x32a87b=_0x582101[_0x5daf('0xa2')][_0x5daf('0xd2')](_0x1bd3d4,{'direction':_0x5daf('0x17')});return(!_0x582101[_0x5daf('0xb')]['isEqual'](_0x1e54e9)||!_0x582101[_0x5daf('0xa2')]['isEqual'](_0x32a87b))&&(_0x1e54e9[_0x5daf('0x2')](_0x32a87b)?_0x53de64[_0x5daf('0x7d')](_0x22e9de,{'range':_0x53de64[_0x5daf('0x144')](_0x1e54e9,_0x32a87b)}):_0x53de64['removeMarker'](_0x22e9de),!0x0);}function Nt(_0x410fda){return _0x46dd8b(_0x410fda);}function Rt(_0x1f3add){const _0x2d4193=_0x1f3add['start'][_0x5daf('0xa')];return _0x2d4193&&_0x2d4193['is']('element');}function jt(_0x4a577e,_0x3d3bde){const _0x477ed4=_0x3d3bde[_0x5daf('0xfc')]['isObject'](_0x4a577e)||_0x3d3bde[_0x5daf('0xfc')][_0x5daf('0x69')](_0x4a577e);return _0x3d3bde['createRange'](_0x3d3bde[_0x5daf('0x43')](_0x4a577e,'before'),_0x477ed4?_0x3d3bde[_0x5daf('0xa4')](_0x4a577e):_0x3d3bde[_0x5daf('0x43')](_0x4a577e,_0x5daf('0xa2')));}function xt(_0x57752a,_0x5a5438,_0x46122d,_0xa123f,_0x21d392){if(!Ut(_0x57752a,_0x5a5438))return!0x1;if(_0x46122d[_0x5daf('0xa2')][_0x5daf('0x110')](_0xa123f[_0x5daf('0xb')]))return!0x0;if(_0x57752a['type']!=_0x5a5438['type'])return!0x1;if(!_0x46122d['end'][_0x5daf('0x2f')](_0xa123f[_0x5daf('0xb')]))return!0x1;const _0xc6a478=_0x21d392[_0x5daf('0x144')](_0x46122d[_0x5daf('0xa2')],_0xa123f[_0x5daf('0xb')])[_0x5daf('0x2c')]();for(const _0x43ef1b of _0xc6a478)if([_0x5daf('0xae'),_0x5daf('0xd1')]['includes'](_0x43ef1b[_0x5daf('0x23')])&&_0x21d392['schema'][_0x5daf('0x4d')](_0x43ef1b['item']))return!0x1;return!0x0;}function Ut(_0x356d23,_0x1b9da8){return!(!_0x356d23[_0x5daf('0x57')]||!_0x1b9da8[_0x5daf('0x57')])&&_0x2f22df(_0x356d23[_0x5daf('0xe9')],_0x1b9da8[_0x5daf('0xe9')]);}function Ot(_0x2e9ba6,_0x28655f){const _0x35fd56=Et(_0x2e9ba6[_0x5daf('0xe9')]),_0x1e7a48=Et(_0x28655f);if(!_0x2e9ba6['_isDataLoaded'])return!0x1;for(const _0x2eb81f of Object[_0x5daf('0x13e')](_0x1e7a48))if(!_0x2f22df(_0x35fd56[_0x2eb81f],_0x1e7a48[_0x2eb81f]))return!0x1;return!0x0;}function Et(_0x2baa70){const _0x3f179f=Object[_0x5daf('0xb3')]({},_0x2baa70);return delete _0x3f179f[_0x5daf('0x53')],delete _0x3f179f['tablePasteChainId'],_0x3f179f;}
|
|
23
|
+
const _0x368b=['update:suggestion','addSuggestion','formatBlock','addClass','deletion:','upcast','split','some','isIntersectingWithRange','_registerDefaultCallbacks','markerToData','data','differ','getDifference','_handleNewSuggestionMarker','delete','markMultiRangeDeletion','documentSelection','trackChanges.mergeNestedSuggestions','isAfter','includes','keys','position','$marker','selection','_suggestionFactory','formatInline:accept','stopListening','_updateSuggestionData','isLimit','addMarker:suggestion','writer','isTouching','insertion:join','options','isBefore','updateMarker','howMany','parent','commands','formatBlock:accept','getRange','hasComments','markers','_rangeIsInLocalUserInsertion','_model','ck-suggestion-marker','add','fromRange','insertion','getChanges','data-suggestion','fire','clear','trackChangesCommand','splitPosition','getIntersection','formatInline:join','push','CommentsRepository','insertion:accept','low','locale','_mergeNestedSuggestions','pluginName','acceptAllSuggestions','discardAllSuggestions','removeAttribute','_cutOutSuggestionMarker','addCommentThread','reconvertMarker','name','editor','suggestion','forward','fromCharCode','_checkSuggestionCorrectness','markerReady','isNextTo','toViewElement','define','isUndo','authoredAt','newRange','createdAt','createPositionAfter','dataToMarker','dataReady','targetPosition','containerElement','requires','enableCommand','markMultiRangeInsertion','refresh','ck-suggestion-marker--active','elementStart','widget','markInlineFormat','getFirstRange','addMarkerName','getSuggestionCallback','markerToHighlight','next','nodeBefore','insertion:','rootName','getChangedMarkers','set','element','applyOperation','multi','marker-count','isLocal','consumable','acceptSelectedSuggestions','attributes','_addThreadToSuggestion','_getAuthorFromId','external:','getAttribute','consume','deletion','Users','high','track-changes-command-not-found','detach','dataDowncast','_adapter','config','remove','_commentsRepository','_isForcedDefaultExecutionBlock','removed','containsRange','plugins','removeMarker','start','_onDiscard','for','discardSuggestion','markMultiRangeBlockFormat','getMarkers','markInsertion','schema','unbindElementFromMarkerName','track-changes-adapter-already-set','addComment','values','_suggestionState','change:activeMarkers','suggestionLoaded','length','then','_createSuggestion','deletion:join','catch','getShiftedBy','containsRangeInObject','unbind','never','before','isBlock','isAtStart','$graveyard','elementEnd','_saved','insertion:discard','after','head','model','addRange','has','setTo','getAllAdjacentSuggestions','_descriptionFactory','insertContent','_joinSuggestions','removeMarker:suggestion:formatBlock','_getSuggestionData','range','createSelection','formatInline','adapter','insert','elementToElement','getUser','notReady','change:_saved','updateSuggestion','getMultiRangeId','get','_joinWithAdjacentSuggestions','PENDING_ACTION_SUGGESTION','isCollapsed','execute','@external','enableReadOnlyMode','skipNestingCheck','insertion:chain','discardSelectedSuggestions','filter','open','backward','formatInline:chain','clone','isInContent','setSelection','acceptSuggestion','_setSuggestionRange','getItems','_defaultCallbacks','showSuggestionHighlights','formatBlock:chain','addHighlight','_setSuggestionData','listenTo','suggestion-type','PendingActions','multipleBlocks','collaboration.channelId','_breakSuggestionMarker','trackChanges','size','rethrowUnexpectedError','end','setAttribute','_refreshSuggestionsChain','forceDefaultExecution','getLastMatchingPosition','oldRange','sort','assign','subType','formatBlock:discard','_isDataLoaded','_findSuggestions','group','error-saving-suggestion-data-suggestion-discarded','creator','accept','track-changes-suggestion-data-mismatch','value','isAtEnd','item','move','formatInline:','_splitMarkerName','ck-suggestion-marker-formatBlock','isObject','removeComment','_enabledCommands','_removeSuggestion','change','commandName','removeClass','document','isInsideObject','addMarker:suggestion:formatBlock','addSuggestionData','isMultiRange','_customCallbacks','formatGroupId','getSuggestion','join','getCommentThread','_trackFormatChanges','init','discard','from','conversion','ready','markerName','resolve','getNearestSelectionRange','isDocumentOperation','removeMarkers','originalSuggestionId','suggestionChanged','isOwn','markDeletion','_suggestions','fetchCommentThread','track-changes-adapter-missing-getsuggestion','previous','activeMarkers','getRanges','accepted','formatBlock:','buildSuggestion','_editor','isEqual','bindElementToMarker','ck-suggestion-marker-','createPositionAt','stop','_addSuggestionMarker','commentThread','formatInline:discard','editingDowncast','track-changes-suggestion-not-found','createRange','_getExternalAuthor','editing','containsPosition','getSuggestions','createRangeIn','return','getCustomProperty','every','tablePasteChainId','nodeAfter','map','suggestion:','track-changes-user-not-found','mapper','root','author','type','getFirstMarker','isRemovable'];(function(_0x3ef984,_0x368b24){const _0x5a9d87=function(_0x570b49){while(--_0x570b49){_0x3ef984['push'](_0x3ef984['shift']());}};_0x5a9d87(++_0x368b24);}(_0x368b,0x16c));const _0x5a9d=function(_0x3ef984,_0x368b24){_0x3ef984=_0x3ef984-0x0;let _0x5a9d87=_0x368b[_0x3ef984];return _0x5a9d87;};import{Plugin as _0xc8ab82,PendingActions as _0x1d50ed}from'ckeditor5/src/core';import{LiveRange as _0x20f427}from'ckeditor5/src/engine';import{CKEditorError as _0x22f0ea,uid as _0x131c85,priorities as _0x55ae06,logWarning as _0x1e536e}from'ckeditor5/src/utils';import{toWidget as _0x284161}from'ckeditor5/src/widget';import{Users as _0x2a2dad,hashObject as _0x16fb8f}from'ckeditor5-collaboration/src/collaboration-core';import _0x5574e5 from'./commands/trackchangescommand';import _0xc188ac from'./commands/acceptsuggestioncommand';import _0x17afe3 from'./commands/discardsuggestioncommand';import _0x35613c from'./commands/executeonallsuggestionscommand';import _0x3477e7 from'./commands/executeonselectedsuggestionscommand';import _0x2757c5 from'./suggestion';import _0x120e2b from'./suggestiondescriptionfactory';import _0x36a4f4 from'./integrations/aiassistant';import _0x2edf40 from'./integrations/alignment';import _0x4973d6 from'./integrations/basicstyles';import _0x1acfda from'./integrations/blockquote';import _0x17920c from'./integrations/ckbox';import _0x279574 from'./integrations/codeblock';import _0x499b87 from'./integrations/comments';import _0xae08e3 from'./integrations/deletecommand';import _0x4bb5e6 from'./integrations/documentlist';import _0x58bc2d from'./integrations/entercommand';import _0x59a2ec from'./integrations/findandreplace';import _0x34689c from'./integrations/font';import _0x495dbe from'./integrations/formatpainter';import _0x3bee7c from'./integrations/heading';import _0x1dd40d from'./integrations/highlight';import _0x156df3 from'./integrations/horizontalline';import _0x3bc22c from'./integrations/htmlembed';import _0xb3dd6 from'./integrations/image';import _0x413314 from'./integrations/imagereplace';import _0x1297d6 from'./integrations/importword';import _0x5d9a9d from'./integrations/indent';import _0x3c4720 from'./integrations/inputcommand';import _0x5c0288 from'./integrations/link';import _0x4f7f00 from'./integrations/list';import _0x2877d7 from'./integrations/listproperties';import _0xe4d69f from'./integrations/mediaembed';import _0x55c7e2 from'./integrations/mention';import _0x21b1fe from'./integrations/pagebreak';import _0x147c53 from'./integrations/paragraph';import _0x46738c from'./integrations/removeformat';import _0x136565 from'./integrations/restrictededitingmode';import _0x4592b6 from'./integrations/shiftentercommand';import _0x419da3 from'./integrations/standardeditingmode';import _0x24382b from'./integrations/style';import _0x3d2736 from'./integrations/table';import _0x1837ee from'./integrations/tablemergesplit';import _0x58b6ac from'./integrations/tableheadings';import _0xd873aa from'./integrations/tableclipboard';import _0x4cd029 from'./integrations/tablecolumnresize';import _0x545f0a from'./integrations/template';import _0x1ed083 from'./integrations/tableofcontents';import _0x1c6941 from'./integrations/title';import _0x17fd7c from'./integrations/undo';import{getTranslation as _0x200c81}from'./utils/common-translations';import _0x47c36b from'./integrations/tablecaption';import _0x4d01f9 from'./integrations/documentlistproperties';import _0x591dcb from'./integrations/tableproperties';import{isEqual as _0x53d308}from'lodash-es';export default class p extends _0xc8ab82{static get[_0x5a9d('0x2e')](){return[_0x5a9d('0xf'),_0x2a2dad,_0x1d50ed,_0x36a4f4,_0x2edf40,_0x4973d6,_0x1acfda,_0x17920c,_0x279574,_0x499b87,_0xae08e3,_0x4bb5e6,_0x4d01f9,_0x58bc2d,_0x59a2ec,_0x34689c,_0x495dbe,_0x3bee7c,_0x1dd40d,_0x156df3,_0x3bc22c,_0xb3dd6,_0x413314,_0x1297d6,_0x5d9a9d,_0x3c4720,_0x5c0288,_0x4f7f00,_0x2877d7,_0xe4d69f,_0x55c7e2,_0x21b1fe,_0x147c53,_0x46738c,_0x136565,_0x4592b6,_0x419da3,_0x24382b,_0x3d2736,_0x1837ee,_0x58b6ac,_0x47c36b,_0xd873aa,_0x4cd029,_0x1ed083,_0x591dcb,_0x545f0a,_0x1c6941,_0x17fd7c];}static get[_0x5a9d('0x14')](){return'TrackChangesEditing';}constructor(_0x3318ca){function _0x2ad2cf(_0x48047c){return _0x48047c['map'](_0xe54cf=>String[_0x5a9d('0x1f')](_0xe54cf))[_0x5a9d('0xdb')]('');}super(_0x3318ca),this[_0x5a9d('0x3f')](_0x5a9d('0xf0'),[]),this['on'](_0x5a9d('0x69'),(_0x18609f,_0xae3755,_0x298faa,_0x4e4789)=>{this[_0x5a9d('0x1')][_0x5a9d('0xd0')](()=>{for(const _0x10b872 of[..._0x4e4789,..._0x298faa])this[_0x5a9d('0x1')][_0x5a9d('0x13f')][_0x5a9d('0x7f')](_0x10b872)&&_0x3318ca[_0x5a9d('0x102')][_0x5a9d('0x1a')](_0x10b872);});}),this[_0x5a9d('0x82')]=new _0x120e2b(this[_0x5a9d('0x1c')][_0x5a9d('0x7d')][_0x5a9d('0x63')],this[_0x5a9d('0x1c')][_0x5a9d('0x12')]),this[_0x5a9d('0x53')]=null,this[_0x5a9d('0x12d')]=new Bt(this[_0x5a9d('0x1c')]),this[_0x5a9d('0xec')]=new Map(),this[_0x5a9d('0x56')]=_0x3318ca[_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0xf')),this[_0x5a9d('0xce')]=new Set(),this['_model']=this[_0x5a9d('0x1c')][_0x5a9d('0x7d')],this[_0x5a9d('0x68')]=new WeakMap(),this[_0x5a9d('0x57')]=!0x1,_0x3318ca[_0x5a9d('0x54')]['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3318ca[_0x5a9d('0x54')][_0x5a9d('0x92')]('trackChanges.trackFormatChanges'),_0x3318ca[_0x5a9d('0x54')][_0x5a9d('0x24')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x5a9d('0x13')]=_0x3318ca[_0x5a9d('0x54')][_0x5a9d('0x92')](_0x5a9d('0x126')),this['trackChangesCommand']=new _0x5574e5(_0x3318ca,this[_0x5a9d('0xce')]),this[_0x2ad2cf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2ad2cf([0x34,0x30,0x34,0x36,0x32,0x32,0x30,0x38]);}[_0x5a9d('0xde')](){const _0x3f05c8=this[_0x5a9d('0x1c')];_0x3f05c8['conversion'][_0x5a9d('0x5e')]('editingDowncast')[_0x5a9d('0x39')]({'model':_0x5a9d('0x1d'),'view':_0x26fce6=>{const {id:_0x31bb1e,type:_0x5c17c2}=this[_0x5a9d('0xca')](_0x26fce6['markerName']),_0x399f10=['ck-suggestion-marker',_0x5a9d('0xf8')+_0x5c17c2];let _0x1851b4=0xbb8;return this[_0x5a9d('0xf0')][_0x5a9d('0x128')](_0x26fce6[_0x5a9d('0xe3')])&&(_0x399f10[_0x5a9d('0xe')]('ck-suggestion-marker--active'),_0x1851b4=0xbc2),'deletion'==_0x5c17c2&&(_0x1851b4+=0x5),{'classes':_0x399f10,'attributes':{'data-suggestion':_0x31bb1e},'priority':_0x1851b4};}}),_0x3f05c8[_0x5a9d('0xe1')][_0x5a9d('0x5e')](_0x5a9d('0x52'))['add'](_0x2f4bfb=>{_0x2f4bfb['on'](_0x5a9d('0x132'),(_0x8cfdc5,_0x392eeb,_0x3b831f)=>{if(!_0x3b831f[_0x5a9d('0x136')][_0x5a9d('0xa7')])return;const _0x42b2ba=_0x392eeb[_0x5a9d('0xc7')];if(!_0x42b2ba)return;const _0x15a4a8=_0x3b831f[_0x5a9d('0x10e')][_0x5a9d('0x23')](_0x42b2ba);_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')]['isObject'](_0x42b2ba)&&_0x15a4a8&&!_0x15a4a8[_0x5a9d('0x107')](_0x5a9d('0x34'))&&_0x15a4a8['is'](_0x5a9d('0x2d'))&&_0x284161(_0x15a4a8,_0x3b831f[_0x5a9d('0x133')]);},{'priority':_0x5a9d('0x4f')});}),_0x3f05c8[_0x5a9d('0xe1')]['for'](_0x5a9d('0x52'))[_0x5a9d('0x39')]({'model':_0x5a9d('0x1d'),'view':(_0x255c89,_0x22eb95)=>{if(!_0x22eb95[_0x5a9d('0x136')][_0x5a9d('0xa7')])return null;const {type:_0x315f22}=this[_0x5a9d('0xca')](_0x255c89[_0x5a9d('0xe3')]);return{'classes':['ck-suggestion-marker',_0x5a9d('0xf8')+_0x315f22],'priority':0xbb8};}});const _0x3dfc51=({showActiveMarkers:_0x2704ed=!0x0}={})=>(_0x298c57,_0x8722fe,_0x35f7aa)=>{if(!_0x8722fe[_0x5a9d('0xc7')])return;if(_0x8722fe[_0x5a9d('0xc7')]['is'](_0x5a9d('0x12c')))return void _0x35f7aa[_0x5a9d('0x45')]['consume'](_0x8722fe[_0x5a9d('0xc7')],_0x298c57[_0x5a9d('0x1b')]);const _0x262e52=_0x35f7aa[_0x5a9d('0x10e')]['toViewElement'](_0x8722fe[_0x5a9d('0xc7')]);if(!(_0x8722fe['item']['is'](_0x5a9d('0x40'))&&_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')][_0x5a9d('0x75')](_0x8722fe[_0x5a9d('0xc7')])&&!_0x262e52[_0x5a9d('0x107')](_0x5a9d('0xa9'))))return;const {id:_0x502677}=this[_0x5a9d('0xca')](_0x8722fe[_0x5a9d('0xe3')]);_0x35f7aa[_0x5a9d('0x133')][_0x5a9d('0x117')](['ck-suggestion-marker',_0x5a9d('0xcb')],_0x262e52),_0x35f7aa[_0x5a9d('0x133')][_0x5a9d('0xb5')](_0x5a9d('0x7'),_0x502677,_0x262e52),_0x35f7aa[_0x5a9d('0x10e')][_0x5a9d('0xf7')](_0x262e52,_0x8722fe[_0x5a9d('0xe3')]),_0x2704ed&&(this[_0x5a9d('0xf0')][_0x5a9d('0x128')](_0x8722fe[_0x5a9d('0xe3')])?_0x35f7aa[_0x5a9d('0x133')][_0x5a9d('0x117')](_0x5a9d('0x32'),_0x262e52):_0x35f7aa[_0x5a9d('0x133')][_0x5a9d('0xd2')]('ck-suggestion-marker--active',_0x262e52));for(const _0x347845 of _0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x105')](_0x8722fe[_0x5a9d('0xc7')])[_0x5a9d('0xa5')]())_0x35f7aa[_0x5a9d('0x45')]['consume'](_0x347845,_0x298c57[_0x5a9d('0x1b')]);_0x35f7aa[_0x5a9d('0x45')][_0x5a9d('0x4c')](_0x8722fe[_0x5a9d('0xc7')],_0x298c57['name']);};_0x3f05c8[_0x5a9d('0xe1')]['for']('dataDowncast')[_0x5a9d('0x3')](_0x449a72=>{_0x449a72['on']('addMarker:suggestion:formatBlock',(_0xeae057,_0x2fbde7,_0xc7c6dd)=>{_0xc7c6dd['options']['showSuggestionHighlights']&&_0x3dfc51({'showActiveMarkers':!0x1})(_0xeae057,_0x2fbde7,_0xc7c6dd);},{'priority':'highest'});}),_0x3f05c8['conversion']['for']('dataDowncast')[_0x5a9d('0x11e')]({'model':_0x5a9d('0x1d'),'view':(_0x15b977,_0x4a9375)=>_0x4a9375['options'][_0x5a9d('0xa7')]?null:{'group':_0x5a9d('0x1d'),'name':_0x15b977['substr'](0xb)}}),_0x3f05c8['conversion'][_0x5a9d('0x5e')](_0x5a9d('0x119'))[_0x5a9d('0x8c')]({'view':{'name':_0x5a9d('0x1d'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4fd580,{writer:_0x3aa1de})=>{let _0x232ca8=_0x5a9d('0x10c')+_0x4fd580['getAttribute'](_0x5a9d('0xac'))+':'+_0x4fd580['getAttribute']('id');return _0x4fd580[_0x5a9d('0x4b')]('marker-count')&&(_0x232ca8+=':'+_0x4fd580[_0x5a9d('0x4b')](_0x5a9d('0x43'))),_0x3aa1de['createElement'](_0x5a9d('0x12b'),{'data-name':_0x232ca8});}}),_0x3f05c8['conversion'][_0x5a9d('0x5e')](_0x5a9d('0x119'))[_0x5a9d('0x2a')]({'view':_0x5a9d('0x1d')}),_0x3f05c8['conversion'][_0x5a9d('0x5e')](_0x5a9d('0xfe'))[_0x5a9d('0x3')](_0x4a9e2f=>{_0x4a9e2f['on'](_0x5a9d('0xd5'),_0x3dfc51(),{'priority':_0x5a9d('0x4f')});}),_0x3f05c8['conversion']['for'](_0x5a9d('0xfe'))[_0x5a9d('0x3')](_0x113dc2=>{_0x113dc2['on'](_0x5a9d('0x85'),(_0x21dece,_0x1e3adc,_0x23b47a)=>{const _0x269e48=_0x23b47a[_0x5a9d('0x10e')]['markerNameToElements'](_0x1e3adc['markerName']);if(_0x269e48)for(const _0x295338 of _0x269e48)_0x295338['getCustomProperty']('addHighlight')||(_0x23b47a[_0x5a9d('0x133')][_0x5a9d('0xd2')]([_0x5a9d('0x2'),'ck-suggestion-marker-formatBlock',_0x5a9d('0x32')],_0x295338),_0x23b47a[_0x5a9d('0x133')][_0x5a9d('0x17')](_0x5a9d('0x7'),_0x295338),_0x23b47a['mapper'][_0x5a9d('0x64')](_0x295338,_0x1e3adc[_0x5a9d('0xe3')]));},{'priority':'high'});}),_0x3f05c8['model'][_0x5a9d('0xd3')]['registerPostFixer'](_0x491a93=>{let _0x35b83d=!0x1;const _0x1e2396=Array['from'](_0x3f05c8[_0x5a9d('0x7d')]['document']['differ'][_0x5a9d('0x3e')]()),_0x31e60f=new Set();for(const {name:_0x11abce,data:_0x5e0f1e}of _0x1e2396){const {group:_0x43d578,type:_0x59a9f2,id:_0x12b86f}=this['_splitMarkerName'](_0x11abce);if(_0x5a9d('0x1d')!==_0x43d578)continue;const _0x3fe74a=this[_0x5a9d('0xec')][_0x5a9d('0x92')](_0x12b86f);if(null!=_0x5e0f1e[_0x5a9d('0x27')]){_0x5a9d('0x89')==_0x59a9f2&&(_0x35b83d=_0x35b83d||$t(_0x5e0f1e['newRange'],_0x11abce,_0x491a93,_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')]));if(_0x5e0f1e['newRange'][_0x5a9d('0x95')]||_0x5a9d('0x77')==_0x5e0f1e['newRange']['root']['rootName']||'formatBlock'==_0x59a9f2&&!Rt(_0x5e0f1e['newRange'])||_0x5a9d('0x4d')==_0x59a9f2&&!(!Mt(_0xcefc05=_0x5e0f1e[_0x5a9d('0x27')])&&!function(_0x1473e8){return _0x1473e8[_0x5a9d('0x5c')][_0x5a9d('0x13a')]==_0x1473e8[_0x5a9d('0xb4')][_0x5a9d('0x3b')]&&_0x1473e8['start']['isAtEnd'];}(_0xcefc05)))_0x491a93[_0x5a9d('0x5b')](_0x11abce),_0x35b83d=!0x0;else{if(!_0x3fe74a||!_0x3fe74a['isInContent'])continue;_0x31e60f[_0x5a9d('0x3')](_0x3fe74a);}}}var _0xcefc05;return _0x31e60f[_0x5a9d('0xb2')]>0x0&&(_0x35b83d=!!this['_joinWithAdjacentSuggestions'](_0x31e60f)||_0x35b83d),_0x35b83d;}),_0x3f05c8[_0x5a9d('0x7d')]['document']['registerPostFixer'](_0x441ccd=>{let _0x235c32=!0x1;for(const _0x18c5b4 of _0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0xd3')][_0x5a9d('0x120')][_0x5a9d('0x6')]()){if(_0x5a9d('0x8b')!=_0x18c5b4[_0x5a9d('0x111')])continue;const _0x391d97=_0x18c5b4['position'][_0x5a9d('0x70')](_0x18c5b4[_0x5a9d('0x6b')]);if(_0x391d97[_0x5a9d('0xc6')])for(const _0x43030e of this[_0x5a9d('0xec')][_0x5a9d('0x67')]()){if(_0x43030e[_0x5a9d('0xd7')]||!_0x43030e[_0x5a9d('0xa1')])continue;if('formatBlock'!=_0x43030e[_0x5a9d('0x111')])continue;const _0x41f107=_0x43030e[_0x5a9d('0x36')]();if(_0x41f107[_0x5a9d('0x5c')][_0x5a9d('0x13a')]!=_0x41f107[_0x5a9d('0xb4')][_0x5a9d('0x13a')]&&_0x41f107['end'][_0x5a9d('0xf6')](_0x18c5b4[_0x5a9d('0x12a')])){const _0x495d51=_0x3f05c8[_0x5a9d('0x7d')]['createRange'](_0x41f107[_0x5a9d('0x5c')],_0x391d97);_0x441ccd['updateMarker'](_0x43030e[_0x5a9d('0x112')](),{'range':_0x495d51}),_0x235c32=!0x0;}}}return _0x235c32;}),_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x13f')]['on'](_0x5a9d('0x114'),(_0x480937,_0x1bb2b5,_0x1b0028)=>{if(null==_0x1b0028){const {id:_0x1eeb74}=this[_0x5a9d('0xca')](_0x1bb2b5['name']),_0x3e020e=this[_0x5a9d('0xec')][_0x5a9d('0x92')](_0x1eeb74);_0x3e020e&&_0x3e020e[_0x5a9d('0x37')](_0x1bb2b5[_0x5a9d('0x1b')]);}}),_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0xd3')]['on']('change:data',()=>{const _0x5689dc=Array[_0x5a9d('0xe0')](_0x3f05c8['model'][_0x5a9d('0xd3')][_0x5a9d('0x120')][_0x5a9d('0x3e')]())[_0x5a9d('0x9c')](_0x10a856=>_0x5a9d('0x1d')===this[_0x5a9d('0xca')](_0x10a856[_0x5a9d('0x1b')])[_0x5a9d('0xc0')]);if(0x0===_0x5689dc[_0x5a9d('0x6b')])return;_0x5689dc[_0x5a9d('0xba')]((_0x381cef,_0x325e1e)=>{const _0x22a122=_0x381cef[_0x5a9d('0x11f')][_0x5a9d('0xb9')],_0x210c2b=_0x325e1e['data'][_0x5a9d('0xb9')];return null===_0x22a122&&null===_0x210c2b?0x0:null===_0x22a122&&null!==_0x210c2b?-0x1:null!==_0x22a122&&null===_0x210c2b?0x1:_0x22a122[_0x5a9d('0x5c')][_0x5a9d('0x137')](_0x210c2b[_0x5a9d('0x5c')])?-0x1:0x1;});const _0x3e864c=new Set(),_0x4fa506=new Set();for(const {name:_0x41e24d,data:_0x18fa45}of _0x5689dc){const {id:_0x2435b4}=this[_0x5a9d('0xca')](_0x41e24d);if(null===_0x18fa45[_0x5a9d('0xb9')]){const _0x4f0503=this[_0x5a9d('0x122')](_0x41e24d);_0x4fa506[_0x5a9d('0x3')](_0x4f0503);}else{const _0x5fef63=this[_0x5a9d('0xec')][_0x5a9d('0x92')](_0x2435b4);null!==_0x18fa45['newRange']||_0x5fef63[_0x5a9d('0xa1')]?(_0x3e864c[_0x5a9d('0x3')](_0x5fef63[_0x5a9d('0x7c')]),_0x4fa506[_0x5a9d('0x3')](_0x5fef63)):this[_0x5a9d('0xcf')](_0x5fef63);}}_0x4fa506[_0x5a9d('0xb2')]>0x0&&this[_0x5a9d('0xb6')](_0x4fa506);for(const _0x63ea9a of _0x3e864c)this[_0x5a9d('0x8')](_0x5a9d('0xe9'),_0x63ea9a);}),_0x3f05c8[_0x5a9d('0x7d')]['on'](_0x5a9d('0x41'),(_0x17a2f0,_0x5c7582)=>{const _0x3136b6=_0x5c7582[0x0];if(!this[_0x5a9d('0xec')][_0x5a9d('0xb2')])return;if(!_0x3136b6[_0x5a9d('0xe6')])return;if(_0x3136b6['batch'][_0x5a9d('0x25')]||!_0x3136b6['batch'][_0x5a9d('0x44')])return;let _0x467bcd,_0x1a70e2;switch(_0x3136b6[_0x5a9d('0x111')]){case'insert':_0x467bcd=_0x3f05c8[_0x5a9d('0x7d')]['createPositionAt'](_0x3136b6[_0x5a9d('0x12a')]),_0x1a70e2=_0x467bcd[_0x5a9d('0x70')](_0x3136b6[_0x5a9d('0x139')]);break;case _0x5a9d('0x11a'):_0x467bcd=_0x3f05c8[_0x5a9d('0x7d')]['createPositionAt'](_0x3136b6[_0x5a9d('0xb')]),_0x1a70e2=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0xf9')](_0x3136b6['moveTargetPosition']);break;case _0x5a9d('0xc8'):_0x467bcd=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0xf9')](_0x3136b6[_0x5a9d('0x2c')]),_0x1a70e2=_0x467bcd[_0x5a9d('0x70')](_0x3136b6[_0x5a9d('0x139')]);break;default:return;}const _0x49ff73=_0x3f05c8[_0x5a9d('0x7d')]['createRange'](_0x467bcd,_0x1a70e2);_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0xd0')](()=>{for(const {suggestion:_0x28520e,meta:_0xd1955f}of this['_findSuggestions'](_0x49ff73)){if(_0x28520e[_0x5a9d('0xd7')])continue;if(_0x5a9d('0x89')==_0x28520e[_0x5a9d('0x111')])continue;const _0x2ca422=_0x28520e[_0x5a9d('0x11f')]&&_0x28520e['data'][_0x5a9d('0xae')];(_0x5a9d('0x116')!=_0x28520e[_0x5a9d('0x111')]||_0x5a9d('0x11a')==_0x3136b6[_0x5a9d('0x111')]&&!_0x2ca422)&&(_0xd1955f['containsRangeInObject']||_0x5a9d('0x5')==_0x28520e['type']&&_0xd1955f['isOwn']||_0x28520e['getFirstRange']()['containsRange'](_0x49ff73)&&this[_0x5a9d('0xb0')](_0x28520e,_0x467bcd,_0x1a70e2));}});},{'priority':'lowest'}),_0x3f05c8[_0x5a9d('0x7d')]['on']('deleteContent',(_0x57f5db,_0x305ef9)=>{const _0x349bc3=_0x305ef9[0x0],_0x535bf7=_0x305ef9[0x1];if(_0x535bf7&&_0x535bf7[_0x5a9d('0xb7')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x349bc3[_0x5a9d('0x95')])return;const _0x2b5e08=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')],{start:_0xa99891,end:_0x2b77ed}=_0x349bc3[_0x5a9d('0x36')](),_0x42bfc8=_0xa99891[_0x5a9d('0x10a')]&&_0x2b5e08[_0x5a9d('0x131')](_0xa99891[_0x5a9d('0x10a')])?null:_0x2b5e08['getNearestSelectionRange'](_0xa99891,_0x5a9d('0x1e')),_0x178377=_0x2b77ed[_0x5a9d('0x3b')]&&_0x2b5e08[_0x5a9d('0x131')](_0x2b77ed[_0x5a9d('0x3b')])?null:_0x2b5e08[_0x5a9d('0xe5')](_0x2b77ed,_0x5a9d('0x9e')),_0x579f02=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x100')](_0x42bfc8?_0x42bfc8[_0x5a9d('0x5c')]:_0xa99891,_0x178377?_0x178377[_0x5a9d('0xb4')]:_0x2b77ed);_0x3f05c8['model'][_0x5a9d('0xd0')](_0x4088d9=>{this[_0x5a9d('0xeb')](_0x579f02);const _0x587a57=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')]['getNearestSelectionRange'](_0x579f02[_0x5a9d('0x5c')]);_0x349bc3['is'](_0x5a9d('0x125'))?_0x4088d9['setSelection'](_0x587a57):_0x349bc3[_0x5a9d('0x80')](_0x587a57);}),_0x57f5db[_0x5a9d('0xfa')]();},{'priority':_0x55ae06['normal']+0xa}),_0x3f05c8[_0x5a9d('0x7d')]['on'](_0x5a9d('0x83'),(_0x644103,_0x1e98f8)=>{const _0x4db4de=_0x1e98f8[_0x1e98f8[_0x5a9d('0x6b')]-0x1];_0x4db4de&&_0x4db4de[_0x5a9d('0xb7')]||this['_isForcedDefaultExecutionBlock']||this[_0x5a9d('0xa')][_0x5a9d('0xc5')]&&(_0x3f05c8['model'][_0x5a9d('0xd0')](()=>{let _0x25cb47=_0x3f05c8['model'][_0x5a9d('0x83')](_0x1e98f8[0x0],_0x1e98f8[0x1],_0x1e98f8[0x2],{'forceDefaultExecution':!0x0});if(!_0x25cb47)return;_0x644103[_0x5a9d('0x106')]=_0x25cb47[_0x5a9d('0xa0')]();const _0x5533a1=_0x25cb47['end'][_0x5a9d('0x3b')],_0x41317b=_0x3f05c8[_0x5a9d('0x7d')][_0x5a9d('0x63')];_0x5533a1&&_0x41317b[_0x5a9d('0x75')](_0x5533a1)&&!_0x41317b[_0x5a9d('0xcc')](_0x5533a1)&&(_0x25cb47=_0x3f05c8['model'][_0x5a9d('0x100')](_0x25cb47[_0x5a9d('0x5c')],_0x3f05c8['model'][_0x5a9d('0xf9')](_0x5533a1,_0x5a9d('0xb4')))),this[_0x5a9d('0x62')](_0x25cb47);}),_0x644103[_0x5a9d('0xfa')]());},{'priority':_0x5a9d('0x4f')}),this['editor'][_0x5a9d('0x13b')][_0x5a9d('0x3')](_0x5a9d('0xb1'),this['trackChangesCommand']),this[_0x5a9d('0x2f')]('trackChanges');const _0x51b17c=new _0xc188ac(_0x3f05c8,this[_0x5a9d('0xec')]);_0x3f05c8[_0x5a9d('0x13b')][_0x5a9d('0x3')](_0x5a9d('0xa3'),_0x51b17c),this[_0x5a9d('0x2f')](_0x5a9d('0xa3'));const _0x4187af=new _0x17afe3(_0x3f05c8,this[_0x5a9d('0xec')]);_0x3f05c8[_0x5a9d('0x13b')][_0x5a9d('0x3')](_0x5a9d('0x5f'),_0x4187af),this[_0x5a9d('0x2f')](_0x5a9d('0x5f')),_0x3f05c8['commands'][_0x5a9d('0x3')](_0x5a9d('0x15'),new _0x35613c(_0x3f05c8,_0x51b17c,this[_0x5a9d('0xec')])),this[_0x5a9d('0x2f')]('acceptAllSuggestions'),_0x3f05c8['commands'][_0x5a9d('0x3')](_0x5a9d('0x16'),new _0x35613c(_0x3f05c8,_0x4187af,this[_0x5a9d('0xec')])),this[_0x5a9d('0x2f')]('discardAllSuggestions'),_0x3f05c8[_0x5a9d('0x13b')][_0x5a9d('0x3')](_0x5a9d('0x46'),new _0x3477e7(_0x3f05c8,_0x51b17c,this['_suggestions'])),this[_0x5a9d('0x2f')](_0x5a9d('0x46')),_0x3f05c8[_0x5a9d('0x13b')][_0x5a9d('0x3')]('discardSelectedSuggestions',new _0x3477e7(_0x3f05c8,_0x4187af,this[_0x5a9d('0xec')])),this[_0x5a9d('0x2f')](_0x5a9d('0x9b'));const _0x33bab9=_0x3f05c8[_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0xf'));this[_0x5a9d('0xab')](_0x33bab9,_0x5a9d('0x66'),(_0x1c3cc9,{threadId:_0x3051db})=>{const _0x326940=this[_0x5a9d('0xec')][_0x5a9d('0x92')](_0x3051db);_0x326940&&_0x326940['commentThread']&&0x1===_0x326940[_0x5a9d('0xfc')][_0x5a9d('0x6b')]&&this[_0x5a9d('0x130')](_0x3051db,{'hasComments':!0x0});},{'priority':_0x5a9d('0x11')}),this[_0x5a9d('0xab')](_0x33bab9,_0x5a9d('0xcd'),(_0x54e4b5,{threadId:_0x3aaa7d})=>{const _0x4c6396=this[_0x5a9d('0xec')]['get'](_0x3aaa7d);_0x4c6396&&_0x4c6396['commentThread']&&!_0x4c6396[_0x5a9d('0xfc')][_0x5a9d('0x6b')]&&this[_0x5a9d('0x130')](_0x3aaa7d,{'hasComments':!0x1});},{'priority':_0x5a9d('0x11')});}set[_0x5a9d('0x8a')](_0x3c2fd6){if(this['_adapter'])throw new _0x22f0ea(_0x5a9d('0x65'),this);this['_adapter']=_0x3c2fd6;}get[_0x5a9d('0x8a')](){return this[_0x5a9d('0x53')];}['getSuggestions']({skipNotAttached:_0x1e7af8=!0x1,toJSON:_0x2c3073=!0x1}={}){const _0x5dccde=[];for(const _0x3847ea of this['_suggestions']['values']())_0x1e7af8&&!_0x3847ea['isInContent']||_0x5dccde[_0x5a9d('0xe')](_0x3847ea);return _0x2c3073?_0x5dccde[_0x5a9d('0x10b')](_0x5022d9=>_0x5022d9['toJSON']()):_0x5dccde;}['getSuggestion'](_0x4703fa){const _0x1f5078=this[_0x5a9d('0xec')]['get'](_0x4703fa);if(!_0x1f5078)throw new _0x22f0ea(_0x5a9d('0xff'),this);return _0x1f5078;}['hasSuggestion'](_0x1a87a3){return this[_0x5a9d('0xec')]['has'](_0x1a87a3);}[_0x5a9d('0xd6')](_0x4f5129){const {authorId:_0x1bbd50,id:_0x48c9ec,attributes:_0x3aa60b}=_0x4f5129,[_0x4bb311,_0x5f1497]=_0x4f5129[_0x5a9d('0x111')][_0x5a9d('0x11a')](':'),_0x6d8fe=this[_0x5a9d('0xec')]['get'](_0x48c9ec)||this['_createSuggestion'](_0x4bb311,_0x5f1497,_0x48c9ec,_0x1bbd50,_0x3aa60b);if(this[_0x5a9d('0x48')](_0x6d8fe),this['_checkSuggestionCorrectness'](_0x6d8fe,_0x4bb311,_0x5f1497||null,_0x1bbd50),_0x6d8fe[_0x5a9d('0x28')]=_0x4f5129[_0x5a9d('0x28')],_0x6d8fe['_isDataLoaded']=!0x0,_0x3aa60b&&_0x3aa60b[_0x5a9d('0x97')]){const _0x697df3=_0x3aa60b['@external'],_0x322e28=this[_0x5a9d('0x101')](_0x697df3['authorName']);_0x6d8fe['authoredAt']=_0x697df3[_0x5a9d('0x28')],_0x6d8fe[_0x5a9d('0x110')]=_0x322e28,_0x6d8fe['isExternal']=!0x0;}else _0x6d8fe[_0x5a9d('0x26')]=_0x4f5129[_0x5a9d('0x28')];switch(_0x4f5129[_0x5a9d('0x11f')]&&(_0x6d8fe['data']=_0x4f5129[_0x5a9d('0x11f')]),_0x4f5129[_0x5a9d('0x47')]&&(_0x6d8fe[_0x5a9d('0x47')]=_0x4f5129[_0x5a9d('0x47')]),this[_0x5a9d('0x53')]&&this[_0x5a9d('0x53')][_0x5a9d('0x115')]||(_0x6d8fe[_0x5a9d('0x79')]=!0x0),this[_0x5a9d('0x68')][_0x5a9d('0x92')](_0x6d8fe)){case _0x5a9d('0x8e'):this[_0x5a9d('0x68')]['set'](_0x6d8fe,_0x5a9d('0x2b'));break;case _0x5a9d('0x21'):_0x6d8fe[_0x5a9d('0xa1')]?(this[_0x5a9d('0xb6')](new Set([_0x6d8fe])),this[_0x5a9d('0x93')](new Set([_0x6d8fe])),this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x6d8fe,_0x5a9d('0xe2')),this['fire'](_0x5a9d('0x6a'),_0x6d8fe)):this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x6d8fe,'removed');}return _0x6d8fe;}['acceptSuggestion'](_0x2ad3dc){this[_0x5a9d('0xb7')](()=>{this[_0x5a9d('0x1c')][_0x5a9d('0x7d')][_0x5a9d('0xd0')](()=>{for(const _0xaff99 of _0x2ad3dc[_0x5a9d('0x81')]())_0xaff99[_0x5a9d('0xc3')]();});});}[_0x5a9d('0x5f')](_0x355a20){this[_0x5a9d('0xb7')](()=>{this[_0x5a9d('0x1c')][_0x5a9d('0x7d')][_0x5a9d('0xd0')](()=>{for(const _0x1ae2f3 of _0x355a20['getAllAdjacentSuggestions']())_0x1ae2f3['discard']();});});}[_0x5a9d('0x2f')](_0x5668be,_0x4a5d80){const _0x5e11ac=this[_0x5a9d('0x1c')]['commands']['get'](_0x5668be);if(!_0x5e11ac)throw new _0x22f0ea(_0x5a9d('0x50'),this,{'commandName':_0x5668be});this['_enabledCommands'][_0x5a9d('0x3')](_0x5e11ac),_0x4a5d80&&_0x5e11ac['on'](_0x5a9d('0x96'),(_0x15e024,_0x47eb89)=>{this[_0x5a9d('0xa')][_0x5a9d('0xc5')]&&(this[_0x5a9d('0x57')]||_0x47eb89[_0x5a9d('0x6b')]>0x0&&_0x47eb89[_0x47eb89[_0x5a9d('0x6b')]-0x1]&&_0x47eb89[_0x47eb89[_0x5a9d('0x6b')]-0x1][_0x5a9d('0xb7')]||(_0x15e024[_0x5a9d('0x106')]=_0x4a5d80((..._0x51f8e5)=>_0x5e11ac[_0x5a9d('0x96')](..._0x51f8e5,{'forceDefaultExecution':!0x0}),..._0x47eb89),_0x15e024[_0x5a9d('0xfa')]()));},{'priority':'high'});}[_0x5a9d('0xb7')](_0x511e61){let _0x1b9436,_0x5803b6;const _0x430dae=this[_0x5a9d('0x57')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1b9436=_0x511e61();}catch(_0x24bda9){_0x5803b6=_0x24bda9;}return _0x430dae||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5803b6&&_0x22f0ea[_0x5a9d('0xb3')](_0x5803b6,this),_0x1b9436;}[_0x5a9d('0x62')](_0x548c27,_0x58dde3=null,_0x3bb962={}){if(_0x548c27[_0x5a9d('0x95')])return null;const _0x818de1=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0x4e'))['me'];for(const {suggestion:_0x4d64f8,meta:_0x42990b}of this[_0x5a9d('0xbf')](_0x548c27,_0x5a9d('0x5')))if(_0x42990b[_0x5a9d('0xea')]){if(!_0x42990b[_0x5a9d('0x22')]){if(_0x42990b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ot(_0x4d64f8,_0x3bb962))continue;return _0x4d64f8;}if(Ot(_0x4d64f8,_0x3bb962))return _0x4d64f8;this[_0x5a9d('0xb0')](_0x4d64f8,_0x548c27['start'],_0x548c27[_0x5a9d('0xb4')]);break;}if(_0x58dde3==_0x4d64f8[_0x5a9d('0xbc')]&&Ot(_0x4d64f8,_0x3bb962)){const _0x3d5de8=_0x4d64f8[_0x5a9d('0x36')]();return _0x3d5de8[_0x5a9d('0x5c')][_0x5a9d('0xf6')](_0x548c27['end'])?this[_0x5a9d('0xa4')](_0x4d64f8,this[_0x5a9d('0x1')]['createRange'](_0x548c27[_0x5a9d('0x5c')],_0x3d5de8[_0x5a9d('0xb4')])):this[_0x5a9d('0xa4')](_0x4d64f8,this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x3d5de8['start'],_0x548c27[_0x5a9d('0xb4')])),_0x4d64f8;}}const _0x19ed39=_0x131c85(),_0x26bee2=_0x818de1['id'],_0x5be768=_0x58dde3?'insertion:'+_0x58dde3:_0x5a9d('0x5'),_0x56eae9=this[_0x5a9d('0xaa')]({'id':_0x19ed39,'type':_0x5be768,'createdAt':new Date(),'authorId':_0x26bee2,'attributes':_0x3bb962});return this['_addSuggestionMarker'](_0x5be768,_0x19ed39,_0x26bee2,_0x548c27),_0x56eae9;}[_0x5a9d('0x30')](_0x1798c9,_0x50f0c5=_0x5a9d('0x42'),_0x709828={}){const _0x4f5639=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0x4e'))['me'],_0x402ece=this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x5a9d('0x5'),_0x50f0c5,_0x5a9d('0xdb'));for(const _0x228541 of this[_0x5a9d('0x104')]())if(_0x228541[_0x5a9d('0x110')]['id']==_0x4f5639['id']&&_0x5a9d('0x5')==_0x228541['type']&&_0x228541['subType']==_0x50f0c5&&Ot(_0x228541,_0x709828)&&(_0x402ece(_0x228541[_0x5a9d('0xf1')](),_0x1798c9)||_0x402ece(_0x1798c9,_0x228541[_0x5a9d('0xf1')]()))){for(const _0x2030e4 of _0x1798c9)_0x228541[_0x5a9d('0x7e')](_0x2030e4);return _0x228541;}for(const {suggestion:_0x48ccb3,meta:_0x164980}of this[_0x5a9d('0xbf')](_0x1798c9,_0x5a9d('0x5'))){if(!_0x164980[_0x5a9d('0xea')])continue;if(!this[_0x5a9d('0x13')]&&_0x164980[_0x5a9d('0x71')])continue;if(!Ot(_0x48ccb3,_0x709828))continue;let _0xa1abd0=!0x0;for(const _0x1951e3 of _0x48ccb3[_0x5a9d('0xf1')]())for(const _0x8c70ff of _0x1798c9)if(!_0x1951e3['containsRange'](_0x8c70ff)){_0xa1abd0=!0x1;break;}if(_0xa1abd0)return _0x48ccb3;}const _0x247fd8=_0x131c85(),_0x6a32ca=_0x4f5639['id'],_0x1046ac=_0x5a9d('0x3c')+_0x50f0c5,_0x2f055c=this['_setSuggestionData']({'id':_0x247fd8,'type':_0x1046ac,'createdAt':new Date(),'authorId':_0x6a32ca,'attributes':_0x709828});for(const _0x5a223c of _0x1798c9)this[_0x5a9d('0xfb')](_0x1046ac,_0x247fd8,_0x6a32ca,_0x5a223c,_0x2757c5[_0x5a9d('0x91')]());return _0x2f055c;}[_0x5a9d('0x35')](_0x504499,_0x529d4d,_0x5497a6=null,_0x2b6144={}){if(_0x5497a6=_0x5497a6||Nt(_0x529d4d),_0x504499[_0x5a9d('0x95')])return null;if(_0x5a9d('0x73')===this[_0x5a9d('0xdd')]){const _0x2e5da5=this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x5a9d('0x89'),_0x5497a6,_0x5a9d('0xc3'));return this[_0x5a9d('0xb7')](()=>_0x2e5da5([_0x504499],_0x529d4d,_0x2b6144)),null;}const _0x390deb=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0x4e'))['me'],_0x36687d=[];if('always'!==this['_trackFormatChanges'])for(const {suggestion:_0x466a81,meta:_0x4b4b40}of this[_0x5a9d('0xbf')](_0x504499,'insertion'))_0x4b4b40['isOwn']&&!_0x4b4b40[_0x5a9d('0xd4')]&&_0x36687d[_0x5a9d('0xe')](..._0x466a81[_0x5a9d('0xf1')]());const _0xa1db22=function(_0x5d6487,_0x5cc697){const _0x55b3b2=[];for(const _0x49f299 of _0x5cc697){const _0x3c2e0d=_0x5d6487['getIntersection'](_0x49f299);_0x3c2e0d&&_0x55b3b2['push'](_0x3c2e0d);}return _0x55b3b2;}(_0x504499,_0x36687d),_0x40c0f4=function(_0x415442,_0x3ad909){const _0xb595a8=[_0x415442];for(const _0x28ddd3 of _0x3ad909){let _0xf266b8=0x0;for(;_0xf266b8<_0xb595a8[_0x5a9d('0x6b')];){const _0x2c8a29=_0xb595a8[_0xf266b8]['getDifference'](_0x28ddd3);_0xb595a8['splice'](_0xf266b8,0x1,..._0x2c8a29),_0xf266b8+=_0x2c8a29[_0x5a9d('0x6b')];}}return _0xb595a8;}(_0x504499,_0x36687d);_0xa1db22[_0x5a9d('0x6b')]&&this[_0x5a9d('0x1')][_0x5a9d('0xd0')](()=>{for(const _0x2aa7f5 of _0xa1db22){const _0x2d273d=this['_suggestionFactory'][_0x5a9d('0x38')](_0x5a9d('0x89'),_0x5497a6,'accept');this[_0x5a9d('0xb7')](()=>_0x2d273d([_0x2aa7f5],_0x529d4d,_0x2b6144));}});for(const _0x22982f of _0x40c0f4){let _0x40d740=null,_0x6f8d73=_0x22982f[_0x5a9d('0x5c')],_0x3e1f69=_0x22982f['end'];for(const {suggestion:_0x4276a8,meta:_0x234e24}of this[_0x5a9d('0xbf')](_0x22982f,_0x5a9d('0x89'))){if(!_0x234e24[_0x5a9d('0xea')])continue;if(_0x4276a8[_0x5a9d('0xbc')]!=_0x5497a6)continue;if(!Ot(_0x4276a8,_0x2b6144))continue;const _0xd2a006=_0x4276a8[_0x5a9d('0x36')]();if(_0xd2a006['containsRange'](_0x22982f,!0x0))return null;_0x6f8d73=_0x6f8d73[_0x5a9d('0x137')](_0xd2a006[_0x5a9d('0x5c')])?_0x6f8d73:_0xd2a006[_0x5a9d('0x5c')],_0x3e1f69=_0x3e1f69[_0x5a9d('0x127')](_0xd2a006[_0x5a9d('0xb4')])?_0x3e1f69:_0xd2a006[_0x5a9d('0xb4')],_0x40d740?_0xd2a006[_0x5a9d('0x5c')][_0x5a9d('0x137')](_0x40d740[_0x5a9d('0x36')]()[_0x5a9d('0x5c')])?(_0x40d740[_0x5a9d('0xe7')](),_0x40d740=_0x4276a8):_0x4276a8[_0x5a9d('0xe7')]():_0x40d740=_0x4276a8;}const _0x5c188c=this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x6f8d73,_0x3e1f69);if(_0x40d740)this['_setSuggestionRange'](_0x40d740,_0x5c188c);else{const _0x36b013=_0x131c85(),_0x37787a=_0x390deb['id'];this[_0x5a9d('0xaa')]({'id':_0x36b013,'type':_0x5a9d('0xc9')+_0x5497a6,'data':_0x529d4d,'createdAt':new Date(),'authorId':_0x37787a,'attributes':_0x2b6144}),this[_0x5a9d('0xfb')](_0x5a9d('0xc9')+_0x5497a6,_0x36b013,_0x37787a,_0x5c188c);}}return null;}['markBlockFormat'](_0x1a2de,_0x48ea4e,_0x350e8a=[],_0x585437=null,_0x42683c={}){_0x48ea4e[_0x5a9d('0xd9')]||(_0x48ea4e[_0x5a9d('0xd9')]=_0x48ea4e[_0x5a9d('0xd1')]),_0x48ea4e[_0x5a9d('0xae')]=_0x1a2de['is'](_0x5a9d('0x87')),_0x585437=_0x585437||Nt(_0x48ea4e);const _0x47e99e=_0x350e8a[_0x5a9d('0x10b')](_0x170aa4=>jt(_0x170aa4,this[_0x5a9d('0x1')])),_0x1f7402=_0x1a2de['is'](_0x5a9d('0x87'))?_0x1a2de:jt(_0x1a2de,this[_0x5a9d('0x1')]);if(_0x5a9d('0x73')===this[_0x5a9d('0xdd')]){const _0x14df44=this['_suggestionFactory']['getSuggestionCallback'](_0x5a9d('0x116'),_0x585437,'accept');return this[_0x5a9d('0xb7')](()=>_0x14df44([_0x1f7402],_0x48ea4e,_0x42683c)),null;}_0x47e99e[_0x5a9d('0xe')](_0x1f7402);let _0x39c390=!0x0;for(const _0x20b890 of _0x47e99e)if(!this[_0x5a9d('0x0')](_0x20b890)){_0x39c390=!0x1;break;}if(_0x39c390&&'always'!==this[_0x5a9d('0xdd')]){const _0xededbd=this['_suggestionFactory']['getSuggestionCallback'](_0x5a9d('0x116'),_0x585437,_0x5a9d('0xc3'));return this[_0x5a9d('0xb7')](()=>_0xededbd([_0x1f7402],_0x48ea4e,_0x42683c)),null;}let _0x24d078=null,_0x28ef7e=_0x1f7402[_0x5a9d('0x5c')],_0x27b61e=_0x1f7402[_0x5a9d('0xb4')];for(const {suggestion:_0x21f880,meta:_0x55c60d}of this['_findSuggestions'](_0x1f7402,'formatBlock')){if(!_0x55c60d[_0x5a9d('0xea')])continue;if(_0x55c60d[_0x5a9d('0x22')]||_0x55c60d['containsRangeInObject']||_0x55c60d[_0x5a9d('0xd4')])continue;if(_0x21f880[_0x5a9d('0x11f')]['formatGroupId']!=_0x48ea4e[_0x5a9d('0xd9')])continue;if(!Ot(_0x21f880,_0x42683c))continue;const _0x5be530=_0x21f880[_0x5a9d('0x36')]();if(_0x21f880['subType']==_0x585437){if(_0x5be530[_0x5a9d('0x59')](_0x1f7402,!0x0))return null;_0x28ef7e=_0x28ef7e[_0x5a9d('0x137')](_0x5be530[_0x5a9d('0x5c')])?_0x28ef7e:_0x5be530[_0x5a9d('0x5c')],_0x27b61e=_0x27b61e[_0x5a9d('0x127')](_0x5be530[_0x5a9d('0xb4')])?_0x27b61e:_0x5be530[_0x5a9d('0xb4')],_0x24d078?_0x5be530[_0x5a9d('0x5c')]['isBefore'](_0x24d078['getFirstRange']()[_0x5a9d('0x5c')])?(_0x24d078['removeMarkers'](),_0x24d078=_0x21f880):_0x21f880[_0x5a9d('0xe7')]():_0x24d078=_0x21f880;}else{const _0xc08913=_0x1f7402['getIntersection'](_0x5be530);this[_0x5a9d('0x18')](_0x21f880,_0xc08913);}}const _0x850cc3=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')]('Users')['me'],_0xec67b8=_0x131c85(),_0x52d401=_0x850cc3['id'];if(_0x24d078)return this['_setSuggestionRange'](_0x24d078,this['_model'][_0x5a9d('0x100')](_0x28ef7e,_0x27b61e)),_0x24d078;{const _0x2d9690=this[_0x5a9d('0xaa')]({'id':_0xec67b8,'type':_0x5a9d('0xf3')+_0x585437,'data':_0x48ea4e,'createdAt':new Date(),'authorId':_0x52d401,'attributes':_0x42683c});return this[_0x5a9d('0xfb')](_0x5a9d('0xf3')+_0x585437,_0xec67b8,_0x52d401,this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x28ef7e,_0x27b61e)),_0x2d9690;}}[_0x5a9d('0x60')](_0x55b596,_0x3a77ec,_0x239b28=[],_0x1e5d8b=null,_0x52b831={}){_0x3a77ec[_0x5a9d('0xd9')]||(_0x3a77ec[_0x5a9d('0xd9')]=_0x3a77ec[_0x5a9d('0xd1')]);const _0x2feff6=_0x55b596[0x0];_0x3a77ec['multipleBlocks']=_0x2feff6['is'](_0x5a9d('0x87')),_0x1e5d8b=_0x1e5d8b||Nt(_0x3a77ec);const _0x9af42c=_0x239b28[_0x5a9d('0x10b')](_0x41687a=>jt(_0x41687a,this[_0x5a9d('0x1')])),_0x5baa4b=_0x2feff6['is'](_0x5a9d('0x87'))?_0x55b596:_0x55b596[_0x5a9d('0x10b')](_0x1902b9=>jt(_0x1902b9,this[_0x5a9d('0x1')]));if(_0x5a9d('0x73')===this[_0x5a9d('0xdd')]){const _0x2d403c=this['_suggestionFactory'][_0x5a9d('0x38')](_0x5a9d('0x116'),_0x1e5d8b,_0x5a9d('0xc3'));return this['forceDefaultExecution'](()=>_0x2d403c(_0x5baa4b,_0x3a77ec,_0x52b831)),null;}_0x9af42c[_0x5a9d('0xe')](..._0x5baa4b);let _0x3822c0=!0x0;for(const _0x144d39 of _0x9af42c)if(!this[_0x5a9d('0x0')](_0x144d39)){_0x3822c0=!0x1;break;}if(_0x3822c0&&'always'!==this[_0x5a9d('0xdd')]){const _0x5af949=this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x5a9d('0x116'),_0x1e5d8b,_0x5a9d('0xc3'));return this[_0x5a9d('0xb7')](()=>_0x5af949(_0x5baa4b,_0x3a77ec,_0x52b831)),null;}const _0x2aa514=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0x4e'))['me'];for(const _0x3a8b35 of this['getSuggestions']()){if(_0x3a8b35['author']['id']!=_0x2aa514['id'])continue;if('formatBlock'!=_0x3a8b35[_0x5a9d('0x111')]||_0x3a8b35[_0x5a9d('0x11f')]['formatGroupId']!=_0x3a77ec[_0x5a9d('0xd9')])continue;if(!Ot(_0x3a8b35,_0x52b831))continue;const _0x3ef840=_0x3a8b35[_0x5a9d('0xbc')]==_0x1e5d8b;for(let _0x2e512f=0x0;_0x2e512f<_0x5baa4b[_0x5a9d('0x6b')];_0x2e512f++){const _0x46bdc9=_0x5baa4b[_0x2e512f];for(const _0x1dfeb8 of _0x3a8b35[_0x5a9d('0x61')]()){const _0x51cb0b=_0x1dfeb8[_0x5a9d('0x13d')]();if(_0x46bdc9['isEqual'](_0x51cb0b)){_0x3ef840?(_0x5baa4b['splice'](_0x2e512f,0x1),_0x2e512f--):_0x3a8b35[_0x5a9d('0x5b')](_0x1dfeb8[_0x5a9d('0x1b')]);break;}}}}if(0x0==_0x5baa4b['length'])return null;const _0xfc14aa=this[_0x5a9d('0x12d')]['getSuggestionCallback'](_0x5a9d('0x116'),_0x1e5d8b,'join');for(const _0x189546 of this[_0x5a9d('0x104')]())if(_0x189546[_0x5a9d('0x110')]['id']==_0x2aa514['id']&&'formatBlock'==_0x189546[_0x5a9d('0x111')]&&_0x189546[_0x5a9d('0x11f')][_0x5a9d('0xd9')]==_0x3a77ec['formatGroupId']&&_0x189546['subType']==_0x1e5d8b&&Ot(_0x189546,_0x52b831)&&(_0xfc14aa(_0x189546['getRanges'](),_0x5baa4b)||_0xfc14aa(_0x5baa4b,_0x189546[_0x5a9d('0xf1')]()))){for(const _0x345ab7 of _0x5baa4b)_0x189546[_0x5a9d('0x7e')](_0x345ab7);return _0x189546;}const _0x1dbba9=_0x131c85(),_0x5879b9=_0x2aa514['id'],_0x4e2a53=_0x5a9d('0xf3')+_0x1e5d8b,_0x590a99=this[_0x5a9d('0xaa')]({'id':_0x1dbba9,'type':_0x4e2a53,'data':_0x3a77ec,'createdAt':new Date(),'authorId':_0x5879b9,'attributes':_0x52b831});for(const _0x5e0fdd of _0x5baa4b)this[_0x5a9d('0xfb')](_0x4e2a53,_0x1dbba9,_0x5879b9,_0x5e0fdd,_0x2757c5[_0x5a9d('0x91')]());return _0x590a99;}[_0x5a9d('0xeb')](_0x568574,_0x2fd73e=null,_0x4aa893={}){if(_0x568574[_0x5a9d('0x95')])return null;const _0x56a281=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')]('Users')['me'],_0x1e9198=new _0x20f427(_0x568574[_0x5a9d('0x5c')],_0x568574[_0x5a9d('0xb4')]);for(const {suggestion:_0x1e5151,meta:_0x4cf745}of this[_0x5a9d('0xbf')](_0x1e9198,'insertion'))if(_0x4cf745[_0x5a9d('0xea')]&&!_0x4cf745[_0x5a9d('0x22')]){if(_0x1e5151[_0x5a9d('0xd7')]){const _0x4a4c60=_0x1e5151[_0x5a9d('0xf1')]()[_0x5a9d('0x9c')](_0x1c73fa=>_0x5a9d('0x77')!=_0x1c73fa[_0x5a9d('0x10f')][_0x5a9d('0x3d')]);_0x4a4c60[_0x5a9d('0x108')](_0x40f52d=>_0x1e9198[_0x5a9d('0x59')](_0x40f52d,!0x0))&&_0x1e5151[_0x5a9d('0xdf')]();if(_0x4a4c60['some'](_0x30486c=>_0x30486c[_0x5a9d('0x59')](_0x1e9198,!0x0))){const _0x355cdc=this['_suggestionFactory']['getSuggestionCallback'](_0x5a9d('0x4d'),_0x2fd73e,_0x5a9d('0xc3'));return this[_0x5a9d('0xb7')](()=>_0x355cdc([_0x1e9198],null,_0x4aa893)),null;}}else{const _0x17f646=_0x1e9198[_0x5a9d('0xc')](_0x1e5151['getFirstRange']());null!==_0x17f646&&_0x1e5151[_0x5a9d('0x5d')]([_0x17f646],null,_0x4aa893);}}if(_0x1e9198[_0x5a9d('0x51')](),_0x1e9198[_0x5a9d('0x95')]||_0x5a9d('0x77')==_0x1e9198[_0x5a9d('0x10f')]['rootName'])return null;let _0x1d0b9c=null,_0x1e8b7b=_0x1e9198[_0x5a9d('0x5c')],_0x2fe4df=_0x1e9198[_0x5a9d('0xb4')];const _0x3f4131=this[_0x5a9d('0xbf')](_0x1e9198,_0x5a9d('0x4d'));for(const {suggestion:_0x538914,meta:_0x4b92a0}of _0x3f4131){const _0x23c486=this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x1e8b7b,_0x2fe4df);if(_0x4b92a0[_0x5a9d('0xea')]&&(this[_0x5a9d('0x13')]||!_0x4b92a0['containsRangeInObject']&&!_0x4b92a0[_0x5a9d('0xd4')])){if(_0x538914[_0x5a9d('0xd7')]){if(!Ot(_0x538914,_0x4aa893))continue;let _0x4bfc07=!0x0;for(const _0x4fb841 of _0x538914['getRanges']()){if(_0x4fb841[_0x5a9d('0x59')](_0x23c486,!0x0))return _0x538914;_0x23c486[_0x5a9d('0x59')](_0x4fb841)||(_0x4bfc07=!0x1);}_0x4bfc07&&_0x538914[_0x5a9d('0xdf')]();}else{const _0x4a3086=_0x538914['getFirstRange']();if(_0x4a3086[_0x5a9d('0x59')](_0x23c486,!0x0))return _0x538914;if(!Ot(_0x538914,_0x4aa893)){_0x23c486[_0x5a9d('0x59')](_0x4a3086)?_0x538914[_0x5a9d('0xe7')]():_0x4a3086[_0x5a9d('0x103')](_0x1e8b7b)?_0x1e8b7b=_0x4a3086['end']:_0x4a3086[_0x5a9d('0x103')](_0x2fe4df)&&(_0x2fe4df=_0x4a3086['start']);continue;}_0x1e8b7b=_0x1e8b7b[_0x5a9d('0x137')](_0x4a3086['start'])?_0x1e8b7b:_0x4a3086[_0x5a9d('0x5c')],_0x2fe4df=_0x2fe4df[_0x5a9d('0x127')](_0x4a3086[_0x5a9d('0xb4')])?_0x2fe4df:_0x4a3086[_0x5a9d('0xb4')],_0x4aa893=Object['assign']({},_0x538914[_0x5a9d('0x47')]),_0x1d0b9c?_0x4a3086[_0x5a9d('0x5c')]['isBefore'](_0x1d0b9c['getFirstRange']()[_0x5a9d('0x5c')])?(_0x1d0b9c['removeMarkers'](),_0x1d0b9c=_0x538914):_0x538914['removeMarkers']():_0x1d0b9c=_0x538914;}}}if(_0x1d0b9c)return this[_0x5a9d('0xa4')](_0x1d0b9c,this['_model'][_0x5a9d('0x100')](_0x1e8b7b,_0x2fe4df)),_0x1d0b9c;{const _0x4a3668=_0x131c85(),_0x3d75e3=this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x1e8b7b,_0x2fe4df),_0x24c7be=_0x56a281['id'],_0x42e74e=_0x2fd73e?_0x5a9d('0x118')+_0x2fd73e:_0x5a9d('0x4d'),_0x3f0641=this['_setSuggestionData']({'id':_0x4a3668,'type':_0x42e74e,'createdAt':new Date(),'authorId':_0x24c7be,'attributes':_0x4aa893});return this[_0x5a9d('0xfb')](_0x42e74e,_0x4a3668,_0x24c7be,_0x3d75e3),_0x3f0641;}}[_0x5a9d('0x124')](_0x239f9f,_0x2dedc9=_0x5a9d('0x42'),_0xcc06bd={}){const _0x2eceb6=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')]['get'](_0x5a9d('0x4e'))['me'],_0x2eeb77=_0x239f9f[_0x5a9d('0x10b')](_0x5f2ec0=>new _0x20f427(_0x5f2ec0[_0x5a9d('0x5c')],_0x5f2ec0[_0x5a9d('0xb4')])),_0x100d21=new Set();for(const {suggestion:_0x3e3147,meta:_0x4f2728}of this[_0x5a9d('0xbf')](_0x2eeb77,'insertion'))_0x4f2728['isOwn']&&!_0x4f2728[_0x5a9d('0x22')]&&_0x100d21['add'](_0x3e3147);for(const _0x446669 of _0x100d21)if(_0x446669[_0x5a9d('0xd7')]){const _0xdf12e7=_0x446669[_0x5a9d('0xf1')]();(!_0x446669['attributes']||!_0x446669[_0x5a9d('0x47')][_0x5a9d('0x99')])&&(_0xdf12e7[_0x5a9d('0x108')](_0x498be1=>_0x2eeb77[_0x5a9d('0x11b')](_0x2f2508=>_0x2f2508['containsRange'](_0x498be1,!0x0)))&&_0x446669[_0x5a9d('0xdf')]());if(_0x2eeb77['every'](_0x49e55c=>_0xdf12e7['some'](_0x29579f=>_0x29579f[_0x5a9d('0x59')](_0x49e55c,!0x0)))){const _0xcf6be6=this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x5a9d('0x4d'),_0x2dedc9,_0x5a9d('0xc3'));return this[_0x5a9d('0xb7')](()=>_0xcf6be6(_0x239f9f,null,_0xcc06bd)),null;}}else{const _0x2236ce=_0x446669[_0x5a9d('0x36')]();_0x2eeb77[_0x5a9d('0x11b')](_0x4b03cd=>_0x4b03cd['containsRange'](_0x2236ce,!0x0))&&_0x446669[_0x5a9d('0xdf')]();if(_0x2eeb77['every'](_0x19ee57=>_0x2236ce[_0x5a9d('0x59')](_0x19ee57,!0x0))){const _0xcc28ca=this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x5a9d('0x4d'),_0x2dedc9,_0x5a9d('0xc3'));return this['forceDefaultExecution'](()=>_0xcc28ca(_0x2eeb77,null,_0xcc06bd)),null;}}const _0x59fb91=this[_0x5a9d('0x12d')]['getSuggestionCallback'](_0x5a9d('0x4d'),_0x2dedc9,_0x5a9d('0xdb'));let _0x58a624=null;for(const _0x34d515 of this[_0x5a9d('0x104')]())if(_0x34d515[_0x5a9d('0x110')]['id']==_0x2eceb6['id']&&_0x34d515[_0x5a9d('0xa1')]&&_0x5a9d('0x4d')==_0x34d515[_0x5a9d('0x111')]&&_0x34d515[_0x5a9d('0xbc')]==_0x2dedc9&&Ot(_0x34d515,_0xcc06bd)&&(_0x59fb91(_0x34d515[_0x5a9d('0xf1')](),_0x2eeb77)||_0x59fb91(_0x2eeb77,_0x34d515[_0x5a9d('0xf1')]()))){if(_0x58a624){if(_0x34d515[_0x5a9d('0xfc')]&&_0x34d515[_0x5a9d('0xfc')]['length'])continue;for(const _0x214075 of _0x34d515['getRanges']())_0x58a624[_0x5a9d('0x11c')](_0x214075)||_0x58a624[_0x5a9d('0x7e')](_0x214075);_0x34d515[_0x5a9d('0xe7')]();}else{_0x58a624=_0x34d515;for(const _0x2491c8 of _0x2eeb77)_0x34d515[_0x5a9d('0x11c')](_0x2491c8)||_0x34d515['addRange'](_0x2491c8);}}if(_0x58a624)return _0x58a624;_0x100d21[_0x5a9d('0x9')]();for(const {suggestion:_0x3b49b5,meta:_0x1751ba}of this['_findSuggestions'](_0x2eeb77,_0x5a9d('0x4d')))_0x1751ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1751ba['containsRangeInObject']&&!_0x1751ba[_0x5a9d('0xd4')])&&Ot(_0x3b49b5,_0xcc06bd)&&_0x100d21[_0x5a9d('0x3')](_0x3b49b5);for(const _0x3f0f68 of _0x100d21){const _0x2290d3=_0x3f0f68[_0x5a9d('0xf1')]();if(!_0xcc06bd||!_0xcc06bd[_0x5a9d('0x99')]){if(_0x2eeb77['every'](_0x38829d=>_0x2290d3[_0x5a9d('0x11b')](_0x22d00d=>_0x22d00d['containsRange'](_0x38829d,!0x0))))return _0x3f0f68;}(!_0x3f0f68[_0x5a9d('0x47')]||!_0x3f0f68[_0x5a9d('0x47')][_0x5a9d('0x99')])&&(_0x2290d3['every'](_0x5289a4=>_0x2eeb77['some'](_0x2f2b77=>_0x2f2b77[_0x5a9d('0x59')](_0x5289a4,!0x0)))&&_0x3f0f68[_0x5a9d('0xdf')]());}const _0x6bca8d=_0x131c85(),_0x2e55ae=_0x2eceb6['id'],_0xab2d64=_0x5a9d('0x118')+_0x2dedc9,_0x253df1=this[_0x5a9d('0xaa')]({'id':_0x6bca8d,'type':_0xab2d64,'createdAt':new Date(),'authorId':_0x2e55ae,'attributes':_0xcc06bd});for(const _0x377dcb of _0x2eeb77)_0x377dcb[_0x5a9d('0x51')](),_0x377dcb[_0x5a9d('0x95')]||'$graveyard'==_0x377dcb[_0x5a9d('0x10f')][_0x5a9d('0x3d')]||this[_0x5a9d('0xfb')](_0xab2d64,_0x6bca8d,_0x2e55ae,_0x377dcb,_0x2757c5[_0x5a9d('0x91')]());return _0x253df1;}[_0x5a9d('0xa4')](_0x331bfc,_0xf8dc64){const _0x4fc003=_0x331bfc[_0x5a9d('0x112')]();this[_0x5a9d('0x1')][_0x5a9d('0xd0')](_0x5438ec=>{_0x5438ec[_0x5a9d('0x138')](_0x4fc003,{'range':_0xf8dc64});});}['_addThreadToSuggestion'](_0x59b507){const _0x131d49=_0x59b507['id'],_0x93c343=this[_0x5a9d('0x1c')]['config'][_0x5a9d('0x92')](_0x5a9d('0xaf'));this[_0x5a9d('0x56')]['hasCommentThread'](_0x131d49)||this['_commentsRepository'][_0x5a9d('0x19')]({'channelId':_0x93c343,'threadId':_0x131d49,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x151f95=this[_0x5a9d('0x56')][_0x5a9d('0xdc')](_0x131d49);_0x151f95[_0x5a9d('0x72')]('isRemovable'),_0x151f95[_0x5a9d('0x113')]=!0x1,_0x59b507[_0x5a9d('0xfc')]=_0x151f95;}[_0x5a9d('0x20')](_0xb7a931,_0x370700,_0x31dfa2,_0x5d54d6){if(_0xb7a931[_0x5a9d('0x111')]!=_0x370700||_0xb7a931[_0x5a9d('0xbc')]!=_0x31dfa2||_0xb7a931[_0x5a9d('0xc2')]['id']!=_0x5d54d6)throw this['editor'][_0x5a9d('0x98')](_0x5a9d('0xc4')),new _0x22f0ea(_0x5a9d('0xc4'),this);}[_0x5a9d('0x18')](_0xb0053c,_0x6dc350){const _0x4a709f=_0xb0053c[_0x5a9d('0x36')]();if(_0x6dc350[_0x5a9d('0xf6')](_0x4a709f))_0xb0053c[_0x5a9d('0xe7')]();else{if(_0x4a709f[_0x5a9d('0x59')](_0x6dc350)){const _0x59d09d=this['_model']['createPositionAt'](_0x6dc350['start'][_0x5a9d('0x3b')],_0x5a9d('0xb4'));this[_0x5a9d('0xa4')](_0xb0053c,this['_model'][_0x5a9d('0x100')](_0x4a709f['start'],_0x59d09d));const _0x5359ea=_0x131c85(),_0x574da4=_0xb0053c[_0x5a9d('0xc2')]['id'],_0x545c5a=_0xb0053c[_0x5a9d('0x111')]+':'+_0xb0053c[_0x5a9d('0xbc')];this['_setSuggestionData']({'id':_0x5359ea,'type':_0x545c5a,'createdAt':new Date(),'authorId':_0x574da4,'data':_0xb0053c[_0x5a9d('0x11f')],'attributes':_0xb0053c[_0x5a9d('0x47')]});const _0x4469c6=this[_0x5a9d('0x1')][_0x5a9d('0xf9')](_0x6dc350[_0x5a9d('0xb4')][_0x5a9d('0x13a')],_0x5a9d('0x7b')),_0x2ecaee=this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x4469c6,_0x4a709f['end']);this[_0x5a9d('0xfb')](_0x545c5a,_0x5359ea,_0x574da4,_0x2ecaee);}else{if(_0x4a709f[_0x5a9d('0x103')](_0x6dc350['start'])){const _0x399a44=this[_0x5a9d('0x1')]['createPositionAt'](_0x6dc350[_0x5a9d('0x5c')][_0x5a9d('0x3b')],_0x5a9d('0xb4'));this[_0x5a9d('0xa4')](_0xb0053c,this['_model']['createRange'](_0x4a709f[_0x5a9d('0x5c')],_0x399a44));}else{const _0x3dae63=this[_0x5a9d('0x1')][_0x5a9d('0xf9')](_0x6dc350['end']['parent'],_0x5a9d('0x7b'));this[_0x5a9d('0xa4')](_0xb0053c,this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x3dae63,_0x4a709f[_0x5a9d('0xb4')]));}}}}[_0x5a9d('0x0')](_0x49822f){for(const {suggestion:_0x5f0aee,meta:_0x19d5f3}of this[_0x5a9d('0xbf')](_0x49822f,_0x5a9d('0x5'))){if(!_0x19d5f3[_0x5a9d('0xea')])continue;const _0x2edb0b=_0x5f0aee[_0x5a9d('0xf1')]();for(const _0x474e18 of _0x2edb0b)if(!_0x49822f[_0x5a9d('0x121')](_0x474e18)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x177a66){const _0x2023cd=this[_0x5a9d('0x1c')]['plugins'][_0x5a9d('0x92')](_0x5a9d('0x4e'))[_0x5a9d('0x8d')](_0x177a66);if(!_0x2023cd)throw new _0x22f0ea(_0x5a9d('0x10d'),this);return _0x2023cd;}[_0x5a9d('0x101')](_0x3bb229){const _0x572665=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')]['get'](_0x5a9d('0x4e')),_0x26659b=_0x16fb8f(_0x5a9d('0x4a')+_0x3bb229),_0x188c68=_0x572665[_0x5a9d('0x8d')](_0x26659b);return _0x188c68||_0x572665['addUser']({'id':_0x26659b,'name':_0x3bb229});}[_0x5a9d('0x6d')](_0x111145,_0x3d4749,_0x35af0d,_0x297572,_0x6176a6){const _0x204289=this[_0x5a9d('0x49')](_0x297572),_0x481ab0=this[_0x5a9d('0x12d')]['buildSuggestion'](_0x111145,_0x3d4749,_0x35af0d,_0x204289,_0x6176a6,_0x3bfe5a=>this['_updateSuggestionData'](_0x35af0d,{'attributes':_0x3bfe5a}));return this[_0x5a9d('0xab')](_0x481ab0,'accept',()=>{this[_0x5a9d('0x130')](_0x35af0d,{'state':_0x5a9d('0xf2')});},{'priority':_0x5a9d('0x4f')}),this[_0x5a9d('0xab')](_0x481ab0,_0x5a9d('0xdf'),()=>{this[_0x5a9d('0x130')](_0x35af0d,{'state':'rejected'});},{'priority':_0x5a9d('0x4f')}),this['_suggestions']['set'](_0x35af0d,_0x481ab0),this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x481ab0,_0x5a9d('0x8e')),_0x481ab0;}['_splitMarkerName'](_0x247ed0){const _0x18b506=_0x247ed0[_0x5a9d('0x11a')](':');return{'group':_0x18b506[0x0],'type':_0x18b506[0x1],'subType':_0x18b506[_0x5a9d('0x6b')]>=0x5?_0x18b506[0x2]:null,'id':_0x18b506[_0x5a9d('0x6b')]<0x5?_0x18b506[0x2]:_0x18b506[0x3],'authorId':_0x18b506[_0x5a9d('0x6b')]<0x5?_0x18b506[0x3]:_0x18b506[0x4],'markerCount':0x6==_0x18b506[_0x5a9d('0x6b')]?_0x18b506[0x5]:null};}[_0x5a9d('0xb0')](_0xb8fabf,_0x107fb1,_0x40450f){const _0x11a185=_0xb8fabf[_0x5a9d('0x36')](),_0x534ac0=_0x11a185[_0x5a9d('0x5c')],_0x10ac10=_0x11a185['end'];this[_0x5a9d('0xa4')](_0xb8fabf,this[_0x5a9d('0x1')]['createRange'](_0x534ac0,_0x107fb1));const _0x1af4d4=_0x131c85(),_0x4642c2=_0xb8fabf['creator']['id'],_0x290a50=_0xb8fabf[_0x5a9d('0x111')]+(_0xb8fabf['subType']?':'+_0xb8fabf[_0x5a9d('0xbc')]:'');this[_0x5a9d('0xaa')]({'id':_0x1af4d4,'type':_0x290a50,'createdAt':new Date(),'authorId':_0x4642c2,'originalSuggestionId':_0xb8fabf['id'],'attributes':_0xb8fabf[_0x5a9d('0x47')],'data':_0xb8fabf[_0x5a9d('0x11f')]}),'formatBlock'==_0xb8fabf[_0x5a9d('0x111')]&&(_0x40450f=this['_model']['createPositionBefore'](_0x40450f[_0x5a9d('0x13a')])),this['_addSuggestionMarker'](_0x290a50,_0x1af4d4,_0x4642c2,this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x40450f,_0x10ac10));}[_0x5a9d('0xbf')](_0x28a0ea,_0x31a31b=null){const _0x14096d=[],_0x58217a=this[_0x5a9d('0x1c')]['plugins'][_0x5a9d('0x92')](_0x5a9d('0x4e'))['me'];Array['isArray'](_0x28a0ea)||(_0x28a0ea=[_0x28a0ea]);for(const _0x23e57c of this[_0x5a9d('0x104')]()){if(!_0x23e57c[_0x5a9d('0xa1')])continue;if(_0x31a31b&&_0x23e57c['type']!=_0x31a31b)continue;let _0x3554f2=!0x1;for(const _0x50d8a0 of _0x23e57c[_0x5a9d('0xf1')]()){for(const _0x1bfa63 of _0x28a0ea){const _0x8e3f0a=_0x1bfa63['start'][_0x5a9d('0xf6')](_0x50d8a0[_0x5a9d('0xb4')])||_0x1bfa63[_0x5a9d('0xb4')][_0x5a9d('0xf6')](_0x50d8a0['start']);if(_0x8e3f0a||_0x1bfa63[_0x5a9d('0xc')](_0x50d8a0)){const _0xef897d=_0x1bfa63[_0x5a9d('0x59')](_0x50d8a0)&&_t(this['_model'][_0x5a9d('0x63')],_0x50d8a0[_0x5a9d('0x5c')],_0x1bfa63),_0x5215fc=_0x50d8a0[_0x5a9d('0x59')](_0x1bfa63)&&_t(this[_0x5a9d('0x1')][_0x5a9d('0x63')],_0x1bfa63[_0x5a9d('0x5c')],_0x50d8a0);_0x14096d['push']({'suggestion':_0x23e57c,'meta':{'isOwn':_0x58217a==_0x23e57c[_0x5a9d('0x110')],'isNextTo':_0x8e3f0a,'isInsideObject':_0xef897d,'containsRangeInObject':_0x5215fc}}),_0x3554f2=!0x0;break;}}if(_0x3554f2)break;}}return _0x14096d;}['_addSuggestionMarker'](_0x55504d,_0x3fe9f5,_0x5d498e,_0x5b2d8c,_0x51c37e){this[_0x5a9d('0x1')]['change'](_0x23d269=>{let _0x35bdad=_0x5a9d('0x10c')+_0x55504d+':'+_0x3fe9f5+':'+_0x5d498e;_0x51c37e&&(_0x35bdad=_0x35bdad+':'+_0x51c37e),_0x23d269['addMarker'](_0x35bdad,{'range':_0x5b2d8c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5a9d('0xcf')](_0x2fd7f9){const _0x32111a=_0x2fd7f9[_0x5a9d('0xef')],_0x2fcb37=_0x2fd7f9[_0x5a9d('0x3a')];_0x2fd7f9[_0x5a9d('0xef')]=null,null!=_0x32111a&&(_0x32111a['next']=null),_0x2fd7f9[_0x5a9d('0x3a')]=null,null!=_0x2fcb37&&(_0x2fcb37[_0x5a9d('0xef')]=null),_0x5a9d('0xe2')==this[_0x5a9d('0x68')]['get'](_0x2fd7f9)&&(this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x2fd7f9,_0x5a9d('0x58')),this[_0x5a9d('0x8')]('suggestionUnloaded',_0x2fd7f9,_0x32111a,_0x2fcb37));}[_0x5a9d('0xaa')](_0x293805){const _0x4989a2=_0x293805['id'],_0x2e785c=this[_0x5a9d('0xd6')](_0x293805);if(this[_0x5a9d('0x53')]&&this['_adapter'][_0x5a9d('0x115')]){const _0x1699c3=this[_0x5a9d('0x1c')][_0x5a9d('0x5a')][_0x5a9d('0x92')](_0x5a9d('0xad')),_0x3c9bf3=_0x2e785c[_0x5a9d('0x13e')],_0x2e7977=_0x2e785c[_0x5a9d('0xbc')]?_0x2e785c[_0x5a9d('0x111')]+':'+_0x2e785c[_0x5a9d('0xbc')]:_0x2e785c['type'],_0x20abf8=this[_0x5a9d('0x1c')][_0x5a9d('0x12')],_0x3dc997=_0x1699c3[_0x5a9d('0x3')](_0x200c81(_0x20abf8,_0x5a9d('0x94'))),_0x385ad3={'id':_0x4989a2,'type':_0x2e7977,'hasComments':_0x3c9bf3,'data':_0x293805[_0x5a9d('0x11f')]||null,'originalSuggestionId':_0x293805[_0x5a9d('0xe8')]||null,'attributes':_0x2e785c[_0x5a9d('0x47')]};this['_adapter']['addSuggestion'](_0x385ad3)[_0x5a9d('0x6c')](_0x124bb3=>{_0x2e785c[_0x5a9d('0x79')]=!0x0,_0x1699c3[_0x5a9d('0x55')](_0x3dc997),_0x124bb3&&_0x124bb3[_0x5a9d('0x28')]&&(this[_0x5a9d('0xec')][_0x5a9d('0x92')](_0x4989a2)[_0x5a9d('0x28')]=_0x124bb3[_0x5a9d('0x28')]);})[_0x5a9d('0x6f')](_0x4ae337=>{throw _0x1e536e(_0x5a9d('0xc1')),this[_0x5a9d('0x1c')][_0x5a9d('0x7d')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x2e785c[_0x5a9d('0xdf')]();}),_0x2e785c[_0x5a9d('0x12f')](),this[_0x5a9d('0xec')][_0x5a9d('0x123')](_0x2e785c['id']),this[_0x5a9d('0x68')][_0x5a9d('0x123')](_0x2e785c),_0x4ae337;});}return _0x2e785c;}[_0x5a9d('0x130')](_0x5ceee7,_0x5a350f){const _0x4011b5=this[_0x5a9d('0x1c')]['plugins'][_0x5a9d('0x92')](_0x5a9d('0xad')),_0x1c6d7c=this[_0x5a9d('0xda')](_0x5ceee7);if(this['_adapter']&&this[_0x5a9d('0x53')][_0x5a9d('0x90')]){if(_0x1c6d7c[_0x5a9d('0x79')]){const _0x12b399=_0x4011b5[_0x5a9d('0x3')](_0x200c81(this[_0x5a9d('0x1c')][_0x5a9d('0x12')],_0x5a9d('0x94')));this[_0x5a9d('0x53')][_0x5a9d('0x90')](_0x5ceee7,_0x5a350f)['then'](()=>{_0x4011b5[_0x5a9d('0x55')](_0x12b399);});}else _0x1c6d7c['on'](_0x5a9d('0x8f'),()=>{this[_0x5a9d('0x130')](_0x5ceee7,_0x5a350f);});}}[_0x5a9d('0x86')](_0x298dd6){if(!this[_0x5a9d('0x53')]||!this[_0x5a9d('0x53')][_0x5a9d('0xda')])throw new _0x22f0ea(_0x5a9d('0xee'),this);return this[_0x5a9d('0x53')][_0x5a9d('0xda')](_0x298dd6);}[_0x5a9d('0x122')](_0x38d0b4){const {id:_0x107905,type:_0x21bb09,subType:_0x4645b8,authorId:_0x515686}=this['_splitMarkerName'](_0x38d0b4),_0x1c33f7=this['_suggestions'][_0x5a9d('0x92')](_0x107905)||this['_createSuggestion'](_0x21bb09,_0x4645b8,_0x107905,_0x515686,{});switch(this[_0x5a9d('0x20')](_0x1c33f7,_0x21bb09,_0x4645b8,_0x515686),this['_suggestionState'][_0x5a9d('0x92')](_0x1c33f7)){case'notReady':this[_0x5a9d('0x86')](_0x107905)[_0x5a9d('0x6c')](_0x803313=>{let _0x28589e=Promise[_0x5a9d('0xe4')]();_0x803313[_0x5a9d('0x13e')]&&(_0x28589e=this['_commentsRepository'][_0x5a9d('0xed')]({'channelId':this[_0x5a9d('0x1c')][_0x5a9d('0x54')][_0x5a9d('0x92')](_0x5a9d('0xaf')),'threadId':_0x107905})),_0x28589e[_0x5a9d('0x6c')](()=>{this[_0x5a9d('0xd6')](_0x803313)[_0x5a9d('0x79')]=!0x0;});}),this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x1c33f7,_0x5a9d('0x21'));break;case'removed':this['_updateSuggestionData'](_0x107905,{'state':_0x5a9d('0x9d')});case _0x5a9d('0x2b'):this[_0x5a9d('0x68')][_0x5a9d('0x3f')](_0x1c33f7,_0x5a9d('0xe2')),this['fire'](_0x5a9d('0x6a'),_0x1c33f7);break;case _0x5a9d('0xe2'):this[_0x5a9d('0x8')](_0x5a9d('0xe9'),_0x1c33f7);}return _0x1c33f7[_0x5a9d('0x37')](_0x38d0b4),_0x1c33f7;}[_0x5a9d('0xb6')](_0x5b3b20){const _0x4c64f2=Array['from'](_0x5b3b20)[_0x5a9d('0x9c')](_0x2e73d5=>!_0x2e73d5[_0x5a9d('0xd7')]),_0x3a915d=this[_0x5a9d('0x104')]({'skipNotAttached':!0x0})[_0x5a9d('0x9c')](_0x36580e=>!_0x36580e[_0x5a9d('0xd7')]),_0x48f680=_0x3a915d[_0x5a9d('0x9c')](_0x5096d6=>!_0x5b3b20[_0x5a9d('0x7f')](_0x5096d6)),_0x545b2a=new Map(_0x3a915d[_0x5a9d('0x10b')](_0x181db7=>[_0x181db7,this[_0x5a9d('0x12d')][_0x5a9d('0x38')](_0x181db7[_0x5a9d('0x111')],_0x181db7[_0x5a9d('0xbc')],'chain')])),_0x55af2e=new Map(_0x3a915d['map'](_0x5acb4e=>[_0x5acb4e,_0x5acb4e[_0x5a9d('0x36')]()])),_0xa11cb9=new Set(),_0x1908d7=new Set();for(let _0x580186=0x0;_0x580186<_0x4c64f2[_0x5a9d('0x6b')];_0x580186++)_0x32f2fa(_0x4c64f2[_0x580186],_0x4c64f2,_0x580186+0x1);for(let _0x168b89=0x0;_0x168b89<_0x4c64f2[_0x5a9d('0x6b')];_0x168b89++)_0x32f2fa(_0x4c64f2[_0x168b89],_0x48f680,0x0);for(let _0x37c033=0x0;_0x37c033<_0x4c64f2[_0x5a9d('0x6b')];_0x37c033++){const _0x523fc3=_0x4c64f2[_0x37c033];!_0x1908d7['has'](_0x523fc3)&&_0x523fc3[_0x5a9d('0xef')]&&(_0x523fc3[_0x5a9d('0xef')]['next']===_0x523fc3&&(_0x523fc3[_0x5a9d('0xef')][_0x5a9d('0x3a')]=null),_0x523fc3[_0x5a9d('0xef')]=null),!_0xa11cb9[_0x5a9d('0x7f')](_0x523fc3)&&_0x523fc3[_0x5a9d('0x3a')]&&(_0x523fc3['next'][_0x5a9d('0xef')]===_0x523fc3&&(_0x523fc3[_0x5a9d('0x3a')][_0x5a9d('0xef')]=null),_0x523fc3['next']=null);}function _0x32f2fa(_0x1bdb17,_0x148165,_0x23f40f){for(let _0x69e6ff=_0x23f40f;_0x69e6ff<_0x148165[_0x5a9d('0x6b')];_0x69e6ff++){const _0x1e1d7a=_0x267df1(_0x1bdb17,_0x148165[_0x69e6ff]);_0x1e1d7a&&(_0x1e1d7a[0x0][_0x5a9d('0x3a')]=_0x1e1d7a[0x1],_0x1e1d7a[0x1][_0x5a9d('0xef')]=_0x1e1d7a[0x0],_0xa11cb9[_0x5a9d('0x3')](_0x1e1d7a[0x0]),_0x1908d7['add'](_0x1e1d7a[0x1]));}}function _0x267df1(_0x3d7381,_0x3d42c5){if(_0x3d7381[_0x5a9d('0x110')]['id']!==_0x3d42c5[_0x5a9d('0x110')]['id'])return null;const _0x4a2b2a=_0x545b2a[_0x5a9d('0x92')](_0x3d7381)(_0x3d7381,_0x3d42c5,_0x55af2e['get'](_0x3d7381),_0x55af2e[_0x5a9d('0x92')](_0x3d42c5));if(!_0x4a2b2a)return null;return _0x545b2a[_0x5a9d('0x92')](_0x3d42c5)(_0x3d7381,_0x3d42c5,_0x55af2e['get'](_0x3d7381),_0x55af2e[_0x5a9d('0x92')](_0x3d42c5))?_0x4a2b2a[0x1]['commentThread']&&_0x4a2b2a[0x1][_0x5a9d('0xfc')][_0x5a9d('0x6b')]?null:_0x4a2b2a:null;}}[_0x5a9d('0x93')](_0x3030d9){const _0x232fef=Array['from'](_0x3030d9),_0x5b175d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4193fd=_0x5b175d['filter'](_0x241e3a=>!_0x3030d9[_0x5a9d('0x7f')](_0x241e3a)),_0x3428dd=new Map(_0x232fef[_0x5a9d('0x10b')](_0x66a5c3=>[_0x66a5c3,this['_suggestionFactory']['getSuggestionCallback'](_0x66a5c3[_0x5a9d('0x111')],_0x66a5c3[_0x5a9d('0xbc')],_0x5a9d('0xdb'))])),_0x3cc207=new Map(_0x5b175d['map'](_0x5be5ba=>[_0x5be5ba,_0x5be5ba[_0x5a9d('0xf1')]()]));for(let _0x2bddb6=0x0;_0x2bddb6<_0x232fef[_0x5a9d('0x6b')];_0x2bddb6++){if(_0x5b334e(this,_0x232fef[_0x2bddb6],_0x232fef,_0x2bddb6+0x1))return!0x0;}for(let _0x5b8780=0x0;_0x5b8780<_0x232fef[_0x5a9d('0x6b')];_0x5b8780++){if(_0x5b334e(this,_0x232fef[_0x5b8780],_0x4193fd,0x0))return!0x0;}return!0x1;function _0x5b334e(_0x4eca87,_0x5c6ef2,_0x29a9b9,_0xeff52a){for(let _0x59e5b0=_0xeff52a;_0x59e5b0<_0x29a9b9[_0x5a9d('0x6b')];_0x59e5b0++){const _0x245967=_0x29a9b9[_0x59e5b0];if(_0x245967[_0x5a9d('0x111')]!==_0x5c6ef2[_0x5a9d('0x111')]||_0x245967[_0x5a9d('0x110')]['id']!==_0x5c6ef2['author']['id']||_0x245967[_0x5a9d('0xbc')]!==_0x5c6ef2[_0x5a9d('0xbc')])continue;if(!Ut(_0x5c6ef2,_0x245967))continue;const _0x310e24=_0x3428dd[_0x5a9d('0x92')](_0x5c6ef2),_0x3f105c=_0x3cc207[_0x5a9d('0x92')](_0x5c6ef2),_0x256756=_0x3cc207[_0x5a9d('0x92')](_0x245967),_0x5cd00a=_0x5c6ef2[_0x5a9d('0xfc')]&&_0x5c6ef2[_0x5a9d('0xfc')][_0x5a9d('0x6b')],_0x3c0a46=_0x245967[_0x5a9d('0xfc')]&&_0x245967[_0x5a9d('0xfc')][_0x5a9d('0x6b')];if(!_0x5cd00a&&_0x310e24(_0x256756,_0x3f105c))return _0x4eca87[_0x5a9d('0x84')](_0x245967,_0x5c6ef2),_0x3cc207[_0x5a9d('0x123')](_0x5c6ef2),!0x0;if(!_0x3c0a46&&_0x310e24(_0x3f105c,_0x256756))return _0x4eca87['_joinSuggestions'](_0x5c6ef2,_0x245967),_0x3cc207[_0x5a9d('0x123')](_0x245967),!0x0;}return!0x1;}}['_joinSuggestions'](_0x42f2e1,_0x1ba02a){if(_0x42f2e1[_0x5a9d('0xd7')])for(const _0x40875d of _0x1ba02a['getRanges']())_0x42f2e1[_0x5a9d('0x7e')](_0x40875d);else{const _0x16acf0=_0x1ba02a[_0x5a9d('0x36')]()[_0x5a9d('0xb4')];this[_0x5a9d('0xa4')](_0x42f2e1,this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x42f2e1[_0x5a9d('0x36')]()[_0x5a9d('0x5c')],_0x16acf0));}_0x1ba02a[_0x5a9d('0xe7')]();}}class Bt{constructor(_0x2dad55){this[_0x5a9d('0xf5')]=_0x2dad55,this[_0x5a9d('0x1')]=_0x2dad55[_0x5a9d('0x7d')],this[_0x5a9d('0xd8')]=new Map(),this[_0x5a9d('0xa6')]=new Map(),this[_0x5a9d('0x11d')]();}[_0x5a9d('0xf4')](_0x37845f,_0xf75034,_0x502af9,_0x5c9885,_0xe67a73,_0x28a642){return new _0x2757c5(this['_model'],{'type':_0x37845f,'subType':_0xf75034,'id':_0x502af9,'author':_0x5c9885,'creator':_0x5c9885,'attributes':_0xe67a73,'onAttributesChange':_0x28a642,'onAccept':(..._0x529a28)=>this['getSuggestionCallback'](_0x37845f,_0xf75034,_0x5a9d('0xc3'))(..._0x529a28),'onDiscard':(..._0x4095ef)=>this[_0x5a9d('0x38')](_0x37845f,_0xf75034,_0x5a9d('0xdf'))(..._0x4095ef)});}['registerCustomCallback'](_0x33ab58,_0x8b456c,_0xf4404,_0x16f7c7){const _0x13cbcf=_0x33ab58+':'+_0x8b456c+':'+_0xf4404;this['_customCallbacks'][_0x5a9d('0x3f')](_0x13cbcf,_0x16f7c7);}[_0x5a9d('0x38')](_0xed516,_0x425d28,_0x413273){const _0x2ab664=_0xed516+':'+_0x425d28+':'+_0x413273;return this['_customCallbacks']['get'](_0x2ab664)||this[_0x5a9d('0xa6')][_0x5a9d('0x92')](_0xed516+':'+_0x413273);}[_0x5a9d('0x11d')](){const _0x1c13bf=()=>!0x1,_0x4da8b8=_0x48c6f9=>{_0x48c6f9[_0x5a9d('0xba')]((_0x215e7f,_0x373a2a)=>_0x215e7f['start']['isBefore'](_0x373a2a[_0x5a9d('0x5c')])?0x1:-0x1),this[_0x5a9d('0x1')]['change'](_0x1b953a=>{for(const _0x288170 of _0x48c6f9){let _0x1a1d44;_0x1a1d44=_0x288170[_0x5a9d('0xb4')][_0x5a9d('0xc6')]&&_0x288170[_0x5a9d('0xb4')]['parent']==_0x288170[_0x5a9d('0x5c')][_0x5a9d('0x10a')]?_0x1b953a[_0x5a9d('0x88')](_0x288170[_0x5a9d('0x5c')][_0x5a9d('0x10a')],'on'):_0x1b953a['createSelection'](_0x288170),this[_0x5a9d('0x1')]['deleteContent'](_0x1a1d44,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1da4c7=(_0x42092b,_0x166299)=>{this[_0x5a9d('0x1')][_0x5a9d('0xd0')](_0x273442=>{const {commandName:_0x795c5b,commandParams:_0x44b578=[]}=_0x166299,_0x584ae6=_0x42092b[_0x5a9d('0x10b')](_0x3696e9=>(Mt(_0x3696e9)&&(_0x3696e9=this[_0x5a9d('0x1')][_0x5a9d('0x100')](_0x3696e9['end'])),_0x3696e9))['filter'](_0xd358a2=>_0x5a9d('0x77')!==_0xd358a2[_0x5a9d('0x10f')][_0x5a9d('0x3d')]);if(_0x584ae6[_0x5a9d('0x6b')]<0x1)return;const _0x28da85=Array['from'](this[_0x5a9d('0x1')][_0x5a9d('0xd3')]['selection'][_0x5a9d('0xf1')]())['map'](_0x19aafe=>_0x20f427[_0x5a9d('0x4')](_0x19aafe));_0x273442['setSelection'](_0x584ae6);for(const _0x447b33 of this[_0x5a9d('0xf5')][_0x5a9d('0x13b')][_0x5a9d('0x13b')]())_0x447b33[_0x5a9d('0x31')]();_0x44b578[_0x5a9d('0xe')]({'forceDefaultExecution':!0x0}),this[_0x5a9d('0xf5')][_0x5a9d('0x96')](_0x795c5b,..._0x44b578);const _0x165fe3=_0x28da85[_0x5a9d('0x9c')](_0x5bdb98=>_0x5a9d('0x77')!=_0x5bdb98['root'][_0x5a9d('0x3d')]);_0x165fe3[_0x5a9d('0x6b')]>0x0&&_0x273442[_0x5a9d('0xa2')](_0x165fe3);for(const _0x148c83 of _0x28da85)_0x148c83[_0x5a9d('0x51')]();});},_0x5dbe79=(_0x5866da,_0x147b4c)=>0x1==_0x5866da[_0x5a9d('0x6b')]&&0x1==_0x147b4c[_0x5a9d('0x6b')]&&_0x5866da[0x0][_0x5a9d('0xb4')]['isEqual'](_0x147b4c[0x0][_0x5a9d('0x5c')]),_0x4860ca=(_0x2229dc,_0x3fe2eb,_0x214b1c,_0x3eb9b6)=>xt(_0x2229dc,_0x3fe2eb,_0x214b1c,_0x3eb9b6,this[_0x5a9d('0x1')])?[_0x2229dc,_0x3fe2eb]:xt(_0x3fe2eb,_0x2229dc,_0x3eb9b6,_0x214b1c,this[_0x5a9d('0x1')])?[_0x3fe2eb,_0x2229dc]:null;this[_0x5a9d('0xa6')][_0x5a9d('0x3f')](_0x5a9d('0x10'),_0x1c13bf),this['_defaultCallbacks'][_0x5a9d('0x3f')](_0x5a9d('0x7a'),_0x4da8b8),this['_defaultCallbacks'][_0x5a9d('0x3f')](_0x5a9d('0x135'),_0x5dbe79),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')](_0x5a9d('0x9a'),_0x4860ca),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')]('deletion:accept',_0x4da8b8),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')]('deletion:discard',_0x1c13bf),this['_defaultCallbacks'][_0x5a9d('0x3f')](_0x5a9d('0x6e'),_0x5dbe79),this['_defaultCallbacks'][_0x5a9d('0x3f')]('deletion:chain',_0x4860ca),this['_defaultCallbacks'][_0x5a9d('0x3f')](_0x5a9d('0x12e'),_0x1da4c7),this[_0x5a9d('0xa6')]['set'](_0x5a9d('0xfd'),_0x1c13bf),this[_0x5a9d('0xa6')]['set'](_0x5a9d('0xd'),_0x5dbe79),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')](_0x5a9d('0x9f'),_0x1c13bf),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')](_0x5a9d('0x13c'),_0x1da4c7),this['_defaultCallbacks']['set'](_0x5a9d('0xbd'),_0x1c13bf),this[_0x5a9d('0xa6')][_0x5a9d('0x3f')]('formatBlock:join',_0x5dbe79),this[_0x5a9d('0xa6')]['set'](_0x5a9d('0xa8'),_0x1c13bf);}}function _t(_0x54bca1,_0x2c19c5,_0x3fc715){for(const _0x27d3c6 of _0x2c19c5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x27d3c6[_0x5a9d('0x10f')]==_0x27d3c6)return!0x1;if(!_0x3fc715['containsItem'](_0x27d3c6))return!0x1;if(_0x54bca1[_0x5a9d('0xcc')](_0x27d3c6)||_0x54bca1['isLimit'](_0x27d3c6))return!0x0;}return!0x1;}function Mt(_0x40bbec){return _0x40bbec[_0x5a9d('0xb4')][_0x5a9d('0x13a')]==_0x40bbec[_0x5a9d('0x5c')][_0x5a9d('0x10a')]&&_0x40bbec[_0x5a9d('0xb4')][_0x5a9d('0x76')];}function $t(_0x51d776,_0x45a56f,_0x500f0d,_0x594ea7){const _0x42b969=_0x2172ca=>!_0x2172ca['item']['is']('$textProxy')&&!_0x594ea7[_0x5a9d('0xcc')](_0x2172ca[_0x5a9d('0xc7')]),_0x394a0f=_0x51d776[_0x5a9d('0x5c')][_0x5a9d('0xb8')](_0x42b969),_0x4bd0a3=_0x51d776[_0x5a9d('0xb4')][_0x5a9d('0xb8')](_0x42b969,{'direction':_0x5a9d('0x9e')});return(!_0x51d776[_0x5a9d('0x5c')][_0x5a9d('0xf6')](_0x394a0f)||!_0x51d776[_0x5a9d('0xb4')][_0x5a9d('0xf6')](_0x4bd0a3))&&(_0x394a0f['isBefore'](_0x4bd0a3)?_0x500f0d['updateMarker'](_0x45a56f,{'range':_0x500f0d[_0x5a9d('0x100')](_0x394a0f,_0x4bd0a3)}):_0x500f0d[_0x5a9d('0x5b')](_0x45a56f),!0x0);}function Nt(_0x5a00c9){return _0x16fb8f(_0x5a00c9);}function Rt(_0x12618f){const _0x4b32fb=_0x12618f[_0x5a9d('0x5c')]['nodeAfter'];return _0x4b32fb&&_0x4b32fb['is'](_0x5a9d('0x40'));}function jt(_0x1e77bb,_0x5026fd){const _0x564876=_0x5026fd[_0x5a9d('0x63')]['isObject'](_0x1e77bb)||_0x5026fd[_0x5a9d('0x63')]['isSelectable'](_0x1e77bb);return _0x5026fd[_0x5a9d('0x100')](_0x5026fd[_0x5a9d('0xf9')](_0x1e77bb,_0x5a9d('0x74')),_0x564876?_0x5026fd[_0x5a9d('0x29')](_0x1e77bb):_0x5026fd[_0x5a9d('0xf9')](_0x1e77bb,'end'));}function xt(_0x1f087e,_0x149054,_0x5a34a7,_0x28738f,_0x513829){if(!Ut(_0x1f087e,_0x149054))return!0x1;if(_0x5a34a7[_0x5a9d('0xb4')]['isEqual'](_0x28738f[_0x5a9d('0x5c')]))return!0x0;if(_0x1f087e['type']!=_0x149054[_0x5a9d('0x111')])return!0x1;if(!_0x5a34a7[_0x5a9d('0xb4')][_0x5a9d('0x134')](_0x28738f[_0x5a9d('0x5c')]))return!0x1;const _0x5c008b=_0x513829[_0x5a9d('0x100')](_0x5a34a7['end'],_0x28738f[_0x5a9d('0x5c')])['getWalker']();for(const _0x5e7d31 of _0x5c008b)if([_0x5a9d('0x33'),_0x5a9d('0x78')]['includes'](_0x5e7d31['type'])&&_0x513829[_0x5a9d('0x63')][_0x5a9d('0x131')](_0x5e7d31['item']))return!0x1;return!0x0;}function Ut(_0x815cf5,_0x14f02d){return!(!_0x815cf5['_isDataLoaded']||!_0x14f02d[_0x5a9d('0xbe')])&&_0x53d308(_0x815cf5[_0x5a9d('0x47')],_0x14f02d['attributes']);}function Ot(_0xd19e33,_0x584aa7){const _0x2affa8=Et(_0xd19e33[_0x5a9d('0x47')]),_0x298b15=Et(_0x584aa7);if(!_0xd19e33[_0x5a9d('0xbe')])return!0x1;for(const _0x3fbbae of Object[_0x5a9d('0x129')](_0x298b15))if(!_0x53d308(_0x2affa8[_0x3fbbae],_0x298b15[_0x3fbbae]))return!0x1;return!0x0;}function Et(_0x476dc7){const _0x39983b=Object[_0x5a9d('0xbb')]({},_0x476dc7);return delete _0x39983b[_0x5a9d('0x99')],delete _0x39983b[_0x5a9d('0x109')],_0x39983b;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5417=['add','_handleSuggestionControllerDelayed','button','Accept\x20all\x20suggestions','listenTo','isDirty','_initializeController','_disableComments','isMultiRange','get','define','CommentsUI','_bindAnnotationToEditors','Discard\x20all\x20selected\x20suggestions','Annotations','CommentView','suggestion-','some','arrowView','plugins','delete','activeMarkers','toMany','lowest','acceptSelectedSuggestions','has','_annotationViews','actionView','getByInnerView','acceptButton','change:previous','isEnabled','trackChanges.SuggestionThreadView','suggestionUnloaded','addSourceCollector','_createUIButton','requires','acceptAllSuggestions','comments.maxThreadTotalWeight','TrackChangesEditing','createAnnotationView','config','_handleControllerBuffer','getFirstRange','push','editing','set','trackChanges.disableComments','bind','addComment','size','registerAnnotation','suggestionLoaded','view','getSuggestion','commandName','head','isOn','remove','_suggestionToController','Discard\x20all\x20suggestions','isInContent','discardButton','_updateController','comments.maxCommentsWhenCollapsed','_viewToController','comments','getMarkers','filter','commands','descriptionParts','mainView','previous','unbind','getDescriptions','createCommentThreadController','TrackChangesUI','_refreshActiveMarkers','_destroyController','editor','buttonView','getRanges','getMarkerNames','locale','switchbutton','activeAnnotations','type','source','refreshSelectedViews','discardSelectedSuggestions','destroy','CommentsRepository','suggestionChanged','getAllAdjacentSuggestions','innerView','model','execute','clear','focus','trackChanges','value','EditorAnnotations','_unbindEditors','separator','createAnnotation','discardAllSuggestions','comments.editorConfig','length','SuggestionThreadView'];(function(_0x56ef22,_0x541737){const _0x12f541=function(_0x223480){while(--_0x223480){_0x56ef22['push'](_0x56ef22['shift']());}};_0x12f541(++_0x541737);}(_0x5417,0x1d1));const _0x12f5=function(_0x56ef22,_0x541737){_0x56ef22=_0x56ef22-0x0;let _0x12f541=_0x5417[_0x56ef22];return _0x12f541;};import{Plugin as _0x20bf52}from'ckeditor5/src/core';import{Collection as _0x593432}from'ckeditor5/src/utils';import{Model as _0x237f9f,SplitButtonView as _0x485ca9,createDropdown as _0x105156,addListToDropdown as _0x379a6a}from'ckeditor5/src/ui';import{Users as _0xe6b23c,getDateTimeFormatter as _0x24ca19,getAllMarkersDomElementsSorted as _0x2b11ca}from'ckeditor5-collaboration/src/collaboration-core';import _0x518333 from'./trackchangesediting';import _0x29140d from'./ui/suggestioncontroller';import _0x419c6d from'./ui/view/suggestionthreadview';import{getTranslation as _0x812c14}from'./utils/common-translations';import _0x5a89de from'../theme/icons/track-changes.svg';export default class d extends _0x20bf52{static get[_0x12f5('0x7')](){return[_0x518333,_0xe6b23c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return _0x12f5('0x2f');}constructor(_0xadee3e){super(_0xadee3e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this[_0x12f5('0x6a')]=new Map(),this[_0x12f5('0xd')]=new Map();const _0x551071=this['editor']['config'];_0x551071[_0x12f5('0x5a')](_0x12f5('0x3'),_0x419c6d),_0x551071[_0x12f5('0x5a')](_0x12f5('0x12'),!0x1),this[_0x12f5('0x57')]=_0x551071['get'](_0x12f5('0x12'));}['_handleSuggestionControllerDelayed'](_0x2d38ca,_0x3a8f32){0x0===this[_0x12f5('0xd')][_0x12f5('0x15')]&&setTimeout(()=>{for(const [_0x414f1c,_0x3f4148]of this[_0x12f5('0xd')]){const _0xa69a74=this[_0x12f5('0x1e')][_0x12f5('0x69')](_0x414f1c);_0xa69a74||_0x3f4148?_0xa69a74&&_0x3f4148&&this['_destroyController'](_0x414f1c):this[_0x12f5('0x56')](_0x414f1c);}this['editor'][_0x12f5('0x63')][_0x12f5('0x59')]('EditorAnnotations')[_0x12f5('0x3b')](),this['_refreshActiveMarkers'](),this['_handleControllerBuffer'][_0x12f5('0x44')]();},0xa),this['_handleControllerBuffer'][_0x12f5('0x11')](_0x2d38ca,_0x3a8f32);}['init'](){const _0x12efcf=this[_0x12f5('0x32')],_0xbbcd33=_0x12efcf[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0xa')),_0x4085f7=_0x12efcf['plugins'][_0x12f5('0x59')](_0x12f5('0x5e')),_0xf7b040=_0x12efcf[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0x48')),_0x40dfb6=_0x12efcf['plugins'][_0x12f5('0x59')](_0x12f5('0x3e'));_0x12efcf['ui']['componentFactory']['add'](_0x12f5('0x46'),_0x501563=>this[_0x12f5('0x6')](_0x501563)),_0xf7b040[_0x12f5('0x5')](()=>{const _0x38f43e=[];for(const [_0x16745d,_0x55bc3b]of Array['from'](this[_0x12f5('0x1e')])){const _0x3dc6c6=_0x16745d['getAllAdjacentSuggestions'](),_0x12670e=[];for(const _0x2eba61 of _0x3dc6c6){if(!_0x2eba61[_0x12f5('0x20')])continue;if(_0x2eba61[_0x12f5('0x58')]){_0x12670e[_0x12f5('0xf')](..._0x2eba61[_0x12f5('0x34')]());continue;}const _0x5443e8=_0x2eba61[_0x12f5('0xe')]();if(_0x12670e[_0x12f5('0x4e')]>0x0){const _0x45a5de=_0x12670e[0x0]['getJoined'](_0x5443e8);if(_0x45a5de){_0x12670e[0x0]=_0x45a5de;continue;}}_0x12670e[_0x12f5('0xf')](_0x5443e8);}_0x38f43e[_0x12f5('0xf')]([_0x55bc3b[_0x12f5('0x18')],_0x12670e]);}return _0x38f43e;}),this[_0x12f5('0x54')](_0xbbcd33,_0x12f5('0x17'),(_0x1ae047,_0x2b6c2d)=>{this[_0x12f5('0x54')](_0x2b6c2d,'change:previous',(_0x1bc5cd,_0x23df62,_0x18759f,_0x2ee8a8)=>{_0x2b6c2d['isInContent']&&(null==_0x18759f?(this[_0x12f5('0x22')](_0x2ee8a8[_0x12f5('0x1b')]),this[_0x12f5('0x51')](_0x2b6c2d,!0x1)):(this['_updateController'](_0x18759f['head']),this['_handleSuggestionControllerDelayed'](_0x2b6c2d,!0x0)));}),null===_0x2b6c2d[_0x12f5('0x2b')]?this[_0x12f5('0x51')](_0x2b6c2d,!0x1):this[_0x12f5('0x22')](_0x2b6c2d[_0x12f5('0x1b')]);}),this['listenTo'](_0xbbcd33,_0x12f5('0x4'),(_0x4270e3,_0x5385e9,_0x50cf40)=>{this['stopListening'](_0x5385e9,_0x12f5('0x1')),this[_0x12f5('0xd')][_0x12f5('0x64')](_0x5385e9);const _0x9982c7=_0x50cf40?_0x50cf40[_0x12f5('0x1b')]:_0x5385e9,_0x53485e=this[_0x12f5('0x1e')]['get'](_0x9982c7);null!==_0x50cf40&&this[_0x12f5('0x22')](_0x9982c7),null===_0x50cf40&&_0x53485e&&this[_0x12f5('0x31')](_0x5385e9);}),this['listenTo'](_0xbbcd33,_0x12f5('0x3f'),(_0x784ab0,_0x3de807)=>{this[_0x12f5('0x22')](_0x3de807);}),this[_0x12f5('0x54')](_0x4085f7,'change:activeAnnotations',()=>{this[_0x12f5('0x30')]();}),this[_0x12f5('0x54')](_0x40dfb6,_0x12f5('0x14'),(_0xcb6d02,{threadId:_0x40764e,isFromAdapter:_0x284e87})=>{if(_0x284e87||!_0xbbcd33['hasSuggestion'](_0x40764e))return;const _0x5e1ecf=_0xbbcd33[_0x12f5('0x19')](_0x40764e);this[_0x12f5('0x1e')][_0x12f5('0x59')](_0x5e1ecf)[_0x12f5('0x18')]['focus']();},{'priority':_0x12f5('0x67')});}['_refreshActiveMarkers'](){const _0x21923c=this[_0x12f5('0x32')][_0x12f5('0x63')][_0x12f5('0x59')]('Annotations'),_0x4ba024=this[_0x12f5('0x32')]['plugins']['get'](_0x12f5('0xa')),_0x314c40=Array['from'](_0x21923c[_0x12f5('0x38')],_0x207bf5=>_0x207bf5[_0x12f5('0x41')])[_0x12f5('0x27')](_0x2694af=>this[_0x12f5('0x24')][_0x12f5('0x69')](_0x2694af)),_0x2e7dd8=[];for(const _0x5dde0f of _0x314c40){const _0x3d36a7=this[_0x12f5('0x24')][_0x12f5('0x59')](_0x5dde0f)[_0x12f5('0x42')][_0x12f5('0x40')]();_0x2e7dd8[_0x12f5('0xf')](..._0x3d36a7['reduce']((_0x128cbd,_0x20d609)=>[..._0x128cbd,..._0x20d609[_0x12f5('0x35')]()],[]));}_0x4ba024[_0x12f5('0x65')]=_0x2e7dd8;}[_0x12f5('0x6')](_0x1c1a5f){const _0x340a5c=_0x105156(_0x1c1a5f,_0x485ca9),_0x5ca8e1=this[_0x12f5('0x32')][_0x12f5('0x28')][_0x12f5('0x59')](_0x12f5('0x46')),_0x23757c=_0x812c14(_0x1c1a5f,'Track\x20changes');_0x340a5c['buttonView'][_0x12f5('0x11')]({'tooltip':_0x23757c,'label':_0x23757c,'icon':_0x5a89de}),_0x340a5c[_0x12f5('0x33')][_0x12f5('0x13')](_0x12f5('0x1c'))['to'](_0x5ca8e1,_0x12f5('0x47')),_0x340a5c[_0x12f5('0x33')]['on'](_0x12f5('0x43'),()=>{_0x5ca8e1['execute'](),this[_0x12f5('0x32')]['editing'][_0x12f5('0x18')][_0x12f5('0x45')]();});const _0x36e91e=new _0x593432(),_0x5bfb5b=[{'type':_0x12f5('0x37'),'model':{'withText':!0x0,'label':_0x23757c,'commandName':_0x12f5('0x46')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,_0x12f5('0x53')),'commandName':_0x12f5('0x8')}},{'type':_0x12f5('0x52'),'model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x12f5('0x68')}},{'type':'button','model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,_0x12f5('0x1f')),'commandName':_0x12f5('0x4c')}},{'type':'button','model':{'withText':!0x0,'label':_0x812c14(_0x1c1a5f,_0x12f5('0x5d')),'commandName':_0x12f5('0x3c')}}];for(const _0x48c119 of _0x5bfb5b){let _0x36a001={'type':_0x12f5('0x4a')};if(_0x48c119[_0x12f5('0x42')]){const _0xcb0c17=new _0x237f9f(_0x48c119[_0x12f5('0x42')]),_0x4fdda3=this['editor'][_0x12f5('0x28')][_0x12f5('0x59')](_0xcb0c17[_0x12f5('0x1a')]);_0xcb0c17[_0x12f5('0x13')](_0x12f5('0x1c'),'isEnabled')['to'](_0x4fdda3,_0x12f5('0x47'),'isEnabled'),_0x36a001={'type':_0x48c119[_0x12f5('0x39')],'model':_0xcb0c17};}_0x36e91e[_0x12f5('0x50')](_0x36a001);}_0x379a6a(_0x340a5c,_0x36e91e);const _0x141419=_0x5bfb5b[_0x12f5('0x27')](_0x376fcb=>null!=_0x376fcb[_0x12f5('0x42')])['map'](_0x23043c=>this[_0x12f5('0x32')]['commands'][_0x12f5('0x59')](_0x23043c[_0x12f5('0x42')][_0x12f5('0x1a')])),_0x23ee20=_0x340a5c['buttonView'];return _0x23ee20[_0x12f5('0x6b')][_0x12f5('0x2c')](_0x12f5('0x2')),_0x23ee20[_0x12f5('0x62')][_0x12f5('0x2c')]('isEnabled'),_0x23ee20['actionView'][_0x12f5('0x13')]('isEnabled')['to'](_0x5ca8e1,_0x12f5('0x2')),_0x23ee20[_0x12f5('0x62')]['bind']('isEnabled')[_0x12f5('0x66')](_0x141419,_0x12f5('0x2'),(..._0x4a70f7)=>_0x4a70f7[_0x12f5('0x61')](_0xf6b785=>_0xf6b785)),_0x340a5c['on']('execute',_0x28385b=>{this[_0x12f5('0x32')][_0x12f5('0x43')](_0x28385b[_0x12f5('0x3a')]['commandName']),this[_0x12f5('0x32')][_0x12f5('0x10')][_0x12f5('0x18')]['focus']();}),_0x340a5c;}[_0x12f5('0x56')](_0x4fde8a){const _0x39cfd7=this['editor'],_0x42df67=_0x39cfd7[_0x12f5('0xc')],_0x1bf86b=_0x39cfd7[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0x5e')),_0x3a025c=_0x39cfd7[_0x12f5('0x63')]['get']('CommentsRepository'),_0x2112c1=_0x39cfd7[_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0x48')),_0x2c0d75=_0x39cfd7['plugins']['get'](_0xe6b23c)['me'],_0x43508c=_0x42df67[_0x12f5('0x59')]('trackChanges')[_0x12f5('0x4f')],{CommentsListView:_0x47c29f,CommentThreadInputView:_0x4da8f0}=_0x39cfd7[_0x12f5('0x63')]['get'](_0x12f5('0x5b'));let _0x12d622,_0x565228;this[_0x12f5('0x6a')][_0x12f5('0x69')](_0x4fde8a['id'])?(_0x565228=this[_0x12f5('0x6a')][_0x12f5('0x59')](_0x4fde8a['id']),_0x12d622=_0x565228['mainView']):(_0x12d622=new _0x43508c(_0x39cfd7[_0x12f5('0x36')],_0x4fde8a,_0x2c0d75,{'disableComments':this[_0x12f5('0x57')],'editorConfig':_0x42df67[_0x12f5('0x59')](_0x12f5('0x4d')),'maxCommentsWhenCollapsed':_0x42df67[_0x12f5('0x59')](_0x12f5('0x23')),'maxThreadTotalWeight':_0x42df67[_0x12f5('0x59')](_0x12f5('0x9')),'maxCommentCharsWhenCollapsed':_0x42df67[_0x12f5('0x59')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x24ca19(_0x42df67['get']('locale')),'CommentView':_0x42df67['get'](_0x12f5('0x25'))[_0x12f5('0x5f')],'CommentsListView':_0x47c29f,'CommentThreadInputView':_0x4da8f0}),_0x12d622[_0x12f5('0x0')]['on'](_0x12f5('0x43'),()=>{_0x39cfd7['editing'][_0x12f5('0x18')][_0x12f5('0x45')]();}),_0x12d622[_0x12f5('0x21')]['on'](_0x12f5('0x43'),()=>{_0x39cfd7['editing'][_0x12f5('0x18')][_0x12f5('0x45')]();}),_0x565228=_0x1bf86b[_0x12f5('0xb')](this[_0x12f5('0x32')]['locale'],_0x12d622),_0x565228[_0x12f5('0x13')](_0x12f5('0x55'))['to'](_0x12d622,_0x12f5('0x55')),_0x565228[_0x12f5('0x13')](_0x12f5('0x4e'))['to'](_0x12d622),_0x565228[_0x12f5('0x13')]('type')['to'](_0x12d622,'type',_0x12279f=>_0x12f5('0x60')+_0x12279f),this['_annotationViews'][_0x12f5('0x11')](_0x4fde8a['id'],_0x565228));const _0x1dbe0e=_0x3a025c[_0x12f5('0x2e')](_0x4fde8a['commentThread'],_0x12d622),_0x56924e=new _0x29140d(_0x39cfd7,_0x4fde8a,_0x12d622,_0x1dbe0e),_0xd6a6a6=_0x4fde8a[_0x12f5('0x40')]()[_0x12f5('0x27')](_0x532097=>_0x532097[_0x12f5('0x20')]);_0x12d622[_0x12f5('0x29')]=_0x39cfd7[_0x12f5('0x63')][_0x12f5('0x59')]('TrackChangesEditing')['_descriptionFactory'][_0x12f5('0x2d')](_0xd6a6a6),this[_0x12f5('0x1e')][_0x12f5('0x11')](_0x4fde8a,_0x56924e),this[_0x12f5('0x24')][_0x12f5('0x11')](_0x12d622,_0x56924e);const _0x37f7e0=_0x1bf86b[_0x12f5('0x4b')]({'view':_0x565228,'target':()=>{const _0x1a3fab=[],_0x1f2a5c=_0x4fde8a[_0x12f5('0x40')]()['filter'](_0x414823=>_0x414823[_0x12f5('0x20')]);for(const _0x243612 of _0x1f2a5c)_0x1a3fab[_0x12f5('0xf')](..._0x243612[_0x12f5('0x26')]());return _0x2b11ca(_0x39cfd7[_0x12f5('0x10')],_0x1a3fab);},'type':()=>_0x12f5('0x60')+_0x56924e[_0x12f5('0x18')][_0x12f5('0x39')]});_0x3a025c[_0x12f5('0x5c')](_0x12d622,_0x37f7e0),_0x1bf86b[_0x12f5('0x50')](_0x37f7e0),_0x2112c1[_0x12f5('0x16')](_0x37f7e0);}[_0x12f5('0x31')](_0x37487c){const _0x4171de=this[_0x12f5('0x32')][_0x12f5('0x63')]['get']('CommentsRepository'),_0x1e0f6f=this[_0x12f5('0x32')][_0x12f5('0x63')][_0x12f5('0x59')]('Annotations'),_0x878656=this[_0x12f5('0x1e')]['get'](_0x37487c),_0x3e7c1a=_0x878656['view'],_0x481a2c=_0x1e0f6f[_0x12f5('0x6c')](_0x3e7c1a);_0x4171de[_0x12f5('0x49')](_0x3e7c1a),_0x481a2c&&_0x1e0f6f[_0x12f5('0x1d')](_0x481a2c),this['_suggestionToController'][_0x12f5('0x64')](_0x37487c),this['_viewToController'][_0x12f5('0x64')](_0x3e7c1a),_0x878656[_0x12f5('0x3d')]();}['_updateController'](_0x5f342d){if(!_0x5f342d[_0x12f5('0x20')]||!this[_0x12f5('0x1e')][_0x12f5('0x69')](_0x5f342d))return;const _0x448bc8=this[_0x12f5('0x32')][_0x12f5('0x63')][_0x12f5('0x59')](_0x12f5('0xa')),_0x181655=this[_0x12f5('0x1e')]['get'](_0x5f342d),_0xba38b=_0x5f342d[_0x12f5('0x40')]();_0x181655[_0x12f5('0x18')][_0x12f5('0x29')]=_0x448bc8['_descriptionFactory'][_0x12f5('0x2d')](_0xba38b);}[_0x12f5('0x3d')](){for(const _0x251de5 of this[_0x12f5('0x1e')]['keys']())this[_0x12f5('0x31')](_0x251de5);for(const _0x2ad5a7 of this[_0x12f5('0x6a')]['values']())_0x2ad5a7[_0x12f5('0x2a')]['destroy']();super['destroy']();}}
|
|
23
|
+
const _0x37d6=['type','head','buttonView','separator','_viewToController','button','acceptSelectedSuggestions','isEnabled','_annotationViews','Annotations','isMultiRange','change:activeAnnotations','_updateController','suggestionChanged','some','from','createAnnotation','refreshSelectedViews','define','trackChanges','stopListening','editor','Discard\x20all\x20suggestions','previous','listenTo','_refreshActiveMarkers','trackChanges.SuggestionThreadView','EditorAnnotations','descriptionParts','getByInnerView','arrowView','Accept\x20all\x20suggestions','_destroyController','editing','comments.maxCommentsWhenCollapsed','commentThread','_initializeController','SuggestionThreadView','_handleControllerBuffer','bind','actionView','activeAnnotations','innerView','comments','set','isOn','createAnnotationView','_disableComments','getAllAdjacentSuggestions','push','componentFactory','commandName','value','Track\x20changes','addComment','locale','_handleSuggestionControllerDelayed','hasSuggestion','focus','suggestionLoaded','map','lowest','view','destroy','change:previous','Accept\x20all\x20selected\x20suggestions','suggestion-','discardSelectedSuggestions','acceptAllSuggestions','comments.maxThreadTotalWeight','createCommentThreadController','_bindAnnotationToEditors','suggestionUnloaded','clear','discardAllSuggestions','commands','reduce','filter','remove','getMarkerNames','_unbindEditors','CommentsUI','comments.editorConfig','isDirty','plugins','keys','_descriptionFactory','getJoined','_createUIButton','CommentsRepository','_suggestionToController','mainView','unbind','get','execute','addSourceCollector','CommentView','delete','has','init','length','add','getFirstRange','TrackChangesUI','TrackChangesEditing','getDescriptions','model','getSuggestion','isInContent'];(function(_0xafbc68,_0x37d600){const _0xa96bae=function(_0x29330d){while(--_0x29330d){_0xafbc68['push'](_0xafbc68['shift']());}};_0xa96bae(++_0x37d600);}(_0x37d6,0x92));const _0xa96b=function(_0xafbc68,_0x37d600){_0xafbc68=_0xafbc68-0x0;let _0xa96bae=_0x37d6[_0xafbc68];return _0xa96bae;};import{Plugin as _0x5a5201}from'ckeditor5/src/core';import{Collection as _0x516d6b}from'ckeditor5/src/utils';import{Model as _0x20d09c,SplitButtonView as _0x1dbb08,createDropdown as _0x5a4d7b,addListToDropdown as _0xeec309}from'ckeditor5/src/ui';import{Users as _0x21ee88,getDateTimeFormatter as _0x248e88,getAllMarkersDomElementsSorted as _0x51b260}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f42c8 from'./trackchangesediting';import _0x2a14b3 from'./ui/suggestioncontroller';import _0x196b5a from'./ui/view/suggestionthreadview';import{getTranslation as _0x175062}from'./utils/common-translations';import _0x43a935 from'../theme/icons/track-changes.svg';export default class d extends _0x5a5201{static get['requires'](){return[_0x2f42c8,_0x21ee88,_0xa96b('0x34'),_0xa96b('0x51'),_0xa96b('0x63')];}static get['pluginName'](){return _0xa96b('0x42');}constructor(_0x25e765){super(_0x25e765),this[_0xa96b('0x35')]=new Map(),this[_0xa96b('0x4c')]=new Map(),this[_0xa96b('0x50')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x185cd7=this['editor']['config'];_0x185cd7[_0xa96b('0x5a')](_0xa96b('0x62'),_0x196b5a),_0x185cd7[_0xa96b('0x5a')]('trackChanges.disableComments',!0x1),this['_disableComments']=_0x185cd7[_0xa96b('0x38')]('trackChanges.disableComments');}[_0xa96b('0x13')](_0x559aab,_0x490028){0x0===this[_0xa96b('0x1')]['size']&&setTimeout(()=>{for(const [_0x284ff2,_0x5ba82a]of this['_handleControllerBuffer']){const _0x1c65e8=this[_0xa96b('0x35')]['has'](_0x284ff2);_0x1c65e8||_0x5ba82a?_0x1c65e8&&_0x5ba82a&&this[_0xa96b('0x68')](_0x284ff2):this['_initializeController'](_0x284ff2);}this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63'))[_0xa96b('0x59')](),this[_0xa96b('0x61')](),this[_0xa96b('0x1')][_0xa96b('0x24')]();},0xa),this[_0xa96b('0x1')]['set'](_0x559aab,_0x490028);}[_0xa96b('0x3e')](){const _0x5eb1f1=this[_0xa96b('0x5d')],_0x34e6a4=_0x5eb1f1['plugins'][_0xa96b('0x38')](_0xa96b('0x43')),_0x4658c9=_0x5eb1f1[_0xa96b('0x2f')][_0xa96b('0x38')]('Annotations'),_0x2fbde3=_0x5eb1f1[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63')),_0x3595aa=_0x5eb1f1['plugins'][_0xa96b('0x38')]('CommentsRepository');_0x5eb1f1['ui'][_0xa96b('0xd')][_0xa96b('0x40')](_0xa96b('0x5b'),_0x13ae6e=>this[_0xa96b('0x33')](_0x13ae6e)),_0x2fbde3[_0xa96b('0x3a')](()=>{const _0xb338fa=[];for(const [_0x120bde,_0x5926ba]of Array[_0xa96b('0x57')](this[_0xa96b('0x35')])){const _0x474d50=_0x120bde[_0xa96b('0xb')](),_0x1e0447=[];for(const _0x3464fc of _0x474d50){if(!_0x3464fc[_0xa96b('0x47')])continue;if(_0x3464fc[_0xa96b('0x52')]){_0x1e0447['push'](..._0x3464fc['getRanges']());continue;}const _0x4fdc05=_0x3464fc[_0xa96b('0x41')]();if(_0x1e0447[_0xa96b('0x3f')]>0x0){const _0x4dd5eb=_0x1e0447[0x0][_0xa96b('0x32')](_0x4fdc05);if(_0x4dd5eb){_0x1e0447[0x0]=_0x4dd5eb;continue;}}_0x1e0447['push'](_0x4fdc05);}_0xb338fa[_0xa96b('0xc')]([_0x5926ba[_0xa96b('0x19')],_0x1e0447]);}return _0xb338fa;}),this['listenTo'](_0x34e6a4,_0xa96b('0x16'),(_0x573d91,_0x4cafc4)=>{this[_0xa96b('0x60')](_0x4cafc4,_0xa96b('0x1b'),(_0x40fe23,_0x2f20e1,_0x1ca593,_0xd2e45a)=>{_0x4cafc4[_0xa96b('0x47')]&&(null==_0x1ca593?(this[_0xa96b('0x54')](_0xd2e45a[_0xa96b('0x49')]),this['_handleSuggestionControllerDelayed'](_0x4cafc4,!0x1)):(this[_0xa96b('0x54')](_0x1ca593['head']),this[_0xa96b('0x13')](_0x4cafc4,!0x0)));}),null===_0x4cafc4[_0xa96b('0x5f')]?this['_handleSuggestionControllerDelayed'](_0x4cafc4,!0x1):this['_updateController'](_0x4cafc4[_0xa96b('0x49')]);}),this[_0xa96b('0x60')](_0x34e6a4,_0xa96b('0x23'),(_0x3de2cb,_0x2bc4c2,_0x7890a6)=>{this[_0xa96b('0x5c')](_0x2bc4c2,_0xa96b('0x1b')),this['_handleControllerBuffer'][_0xa96b('0x3c')](_0x2bc4c2);const _0x36dc26=_0x7890a6?_0x7890a6[_0xa96b('0x49')]:_0x2bc4c2,_0x190576=this['_suggestionToController'][_0xa96b('0x38')](_0x36dc26);null!==_0x7890a6&&this['_updateController'](_0x36dc26),null===_0x7890a6&&_0x190576&&this[_0xa96b('0x68')](_0x2bc4c2);}),this[_0xa96b('0x60')](_0x34e6a4,_0xa96b('0x55'),(_0x176ed7,_0xe46826)=>{this[_0xa96b('0x54')](_0xe46826);}),this[_0xa96b('0x60')](_0x4658c9,_0xa96b('0x53'),()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3595aa,_0xa96b('0x11'),(_0x3f1264,{threadId:_0x461c68,isFromAdapter:_0x5bc1b4})=>{if(_0x5bc1b4||!_0x34e6a4[_0xa96b('0x14')](_0x461c68))return;const _0x3dbeaf=_0x34e6a4[_0xa96b('0x46')](_0x461c68);this[_0xa96b('0x35')][_0xa96b('0x38')](_0x3dbeaf)[_0xa96b('0x19')][_0xa96b('0x15')]();},{'priority':_0xa96b('0x18')});}['_refreshActiveMarkers'](){const _0xbff0f9=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')]('Annotations'),_0x3dacd5=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')]('TrackChangesEditing'),_0x4ae98f=Array[_0xa96b('0x57')](_0xbff0f9[_0xa96b('0x4')],_0x29d89c=>_0x29d89c[_0xa96b('0x5')])[_0xa96b('0x28')](_0x11f828=>this[_0xa96b('0x4c')]['has'](_0x11f828)),_0x99248=[];for(const _0x1a1ad9 of _0x4ae98f){const _0x257bea=this[_0xa96b('0x4c')][_0xa96b('0x38')](_0x1a1ad9)[_0xa96b('0x45')][_0xa96b('0xb')]();_0x99248['push'](..._0x257bea[_0xa96b('0x27')]((_0x193cfc,_0x12b0d0)=>[..._0x193cfc,..._0x12b0d0[_0xa96b('0x2a')]()],[]));}_0x3dacd5['activeMarkers']=_0x99248;}['_createUIButton'](_0x3de84a){const _0x4919ea=_0x5a4d7b(_0x3de84a,_0x1dbb08),_0x18e909=this[_0xa96b('0x5d')][_0xa96b('0x26')]['get'](_0xa96b('0x5b')),_0x401176=_0x175062(_0x3de84a,_0xa96b('0x10'));_0x4919ea[_0xa96b('0x4a')][_0xa96b('0x7')]({'tooltip':_0x401176,'label':_0x401176,'icon':_0x43a935}),_0x4919ea[_0xa96b('0x4a')][_0xa96b('0x2')](_0xa96b('0x8'))['to'](_0x18e909,_0xa96b('0xf')),_0x4919ea[_0xa96b('0x4a')]['on']('execute',()=>{_0x18e909[_0xa96b('0x39')](),this[_0xa96b('0x5d')][_0xa96b('0x69')][_0xa96b('0x19')]['focus']();});const _0x5be39e=new _0x516d6b(),_0x346245=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x401176,'commandName':'trackChanges'}},{'type':_0xa96b('0x4b')},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x67')),'commandName':_0xa96b('0x1f')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x1c')),'commandName':_0xa96b('0x4e')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,_0xa96b('0x5e')),'commandName':_0xa96b('0x25')}},{'type':_0xa96b('0x4d'),'model':{'withText':!0x0,'label':_0x175062(_0x3de84a,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0xa96b('0x1e')}}];for(const _0x269c01 of _0x346245){let _0xd3b487={'type':_0xa96b('0x4b')};if(_0x269c01['model']){const _0x33c2d8=new _0x20d09c(_0x269c01[_0xa96b('0x45')]),_0x38ad0e=this['editor']['commands'][_0xa96b('0x38')](_0x33c2d8[_0xa96b('0xe')]);_0x33c2d8['bind']('isOn','isEnabled')['to'](_0x38ad0e,_0xa96b('0xf'),_0xa96b('0x4f')),_0xd3b487={'type':_0x269c01[_0xa96b('0x48')],'model':_0x33c2d8};}_0x5be39e[_0xa96b('0x40')](_0xd3b487);}_0xeec309(_0x4919ea,_0x5be39e);const _0x492e18=_0x346245['filter'](_0x452875=>null!=_0x452875['model'])[_0xa96b('0x17')](_0x2e7b4f=>this[_0xa96b('0x5d')][_0xa96b('0x26')][_0xa96b('0x38')](_0x2e7b4f['model']['commandName'])),_0x867004=_0x4919ea[_0xa96b('0x4a')];return _0x867004[_0xa96b('0x3')][_0xa96b('0x37')](_0xa96b('0x4f')),_0x867004['arrowView'][_0xa96b('0x37')]('isEnabled'),_0x867004[_0xa96b('0x3')][_0xa96b('0x2')](_0xa96b('0x4f'))['to'](_0x18e909,_0xa96b('0x4f')),_0x867004[_0xa96b('0x66')][_0xa96b('0x2')](_0xa96b('0x4f'))['toMany'](_0x492e18,_0xa96b('0x4f'),(..._0x32fe97)=>_0x32fe97[_0xa96b('0x56')](_0x4eda6a=>_0x4eda6a)),_0x4919ea['on'](_0xa96b('0x39'),_0x25b826=>{this[_0xa96b('0x5d')][_0xa96b('0x39')](_0x25b826['source'][_0xa96b('0xe')]),this['editor']['editing'][_0xa96b('0x19')][_0xa96b('0x15')]();}),_0x4919ea;}[_0xa96b('0x6c')](_0x286e1e){const _0x2b5554=this['editor'],_0x8a2ab8=_0x2b5554['config'],_0x410816=_0x2b5554[_0xa96b('0x2f')]['get'](_0xa96b('0x51')),_0x26ba5b=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x34')),_0x5b8ed0=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x63')),_0x1117af=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0x21ee88)['me'],_0xd4fd3=_0x8a2ab8[_0xa96b('0x38')]('trackChanges')[_0xa96b('0x0')],{CommentsListView:_0x30d8ed,CommentThreadInputView:_0x2f079a}=_0x2b5554[_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x2c'));let _0x3373ce,_0x413d96;this[_0xa96b('0x50')][_0xa96b('0x3d')](_0x286e1e['id'])?(_0x413d96=this[_0xa96b('0x50')][_0xa96b('0x38')](_0x286e1e['id']),_0x3373ce=_0x413d96[_0xa96b('0x36')]):(_0x3373ce=new _0xd4fd3(_0x2b5554['locale'],_0x286e1e,_0x1117af,{'disableComments':this[_0xa96b('0xa')],'editorConfig':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x2d')),'maxCommentsWhenCollapsed':_0x8a2ab8['get'](_0xa96b('0x6a')),'maxThreadTotalWeight':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x20')),'maxCommentCharsWhenCollapsed':_0x8a2ab8[_0xa96b('0x38')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x248e88(_0x8a2ab8[_0xa96b('0x38')]('locale')),'CommentView':_0x8a2ab8[_0xa96b('0x38')](_0xa96b('0x6'))[_0xa96b('0x3b')],'CommentsListView':_0x30d8ed,'CommentThreadInputView':_0x2f079a}),_0x3373ce['acceptButton']['on'](_0xa96b('0x39'),()=>{_0x2b5554[_0xa96b('0x69')][_0xa96b('0x19')]['focus']();}),_0x3373ce['discardButton']['on']('execute',()=>{_0x2b5554[_0xa96b('0x69')][_0xa96b('0x19')]['focus']();}),_0x413d96=_0x410816[_0xa96b('0x9')](this[_0xa96b('0x5d')][_0xa96b('0x12')],_0x3373ce),_0x413d96[_0xa96b('0x2')]('isDirty')['to'](_0x3373ce,_0xa96b('0x2e')),_0x413d96[_0xa96b('0x2')](_0xa96b('0x3f'))['to'](_0x3373ce),_0x413d96[_0xa96b('0x2')](_0xa96b('0x48'))['to'](_0x3373ce,'type',_0x5e8d00=>'suggestion-'+_0x5e8d00),this[_0xa96b('0x50')][_0xa96b('0x7')](_0x286e1e['id'],_0x413d96));const _0x350af8=_0x26ba5b[_0xa96b('0x21')](_0x286e1e[_0xa96b('0x6b')],_0x3373ce),_0x52f445=new _0x2a14b3(_0x2b5554,_0x286e1e,_0x3373ce,_0x350af8),_0x10512d=_0x286e1e[_0xa96b('0xb')]()[_0xa96b('0x28')](_0xe6bc69=>_0xe6bc69[_0xa96b('0x47')]);_0x3373ce[_0xa96b('0x64')]=_0x2b5554['plugins'][_0xa96b('0x38')](_0xa96b('0x43'))[_0xa96b('0x31')][_0xa96b('0x44')](_0x10512d),this[_0xa96b('0x35')][_0xa96b('0x7')](_0x286e1e,_0x52f445),this[_0xa96b('0x4c')]['set'](_0x3373ce,_0x52f445);const _0x260532=_0x410816[_0xa96b('0x58')]({'view':_0x413d96,'target':()=>{const _0x433210=[],_0x3be3ec=_0x286e1e['getAllAdjacentSuggestions']()[_0xa96b('0x28')](_0x1d7982=>_0x1d7982['isInContent']);for(const _0x252d5c of _0x3be3ec)_0x433210[_0xa96b('0xc')](..._0x252d5c['getMarkers']());return _0x51b260(_0x2b5554['editing'],_0x433210);},'type':()=>_0xa96b('0x1d')+_0x52f445['view'][_0xa96b('0x48')]});_0x26ba5b[_0xa96b('0x22')](_0x3373ce,_0x260532),_0x410816[_0xa96b('0x40')](_0x260532),_0x5b8ed0['registerAnnotation'](_0x260532);}['_destroyController'](_0x9759c){const _0x97335a=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x34')),_0x3703fc=this[_0xa96b('0x5d')][_0xa96b('0x2f')][_0xa96b('0x38')](_0xa96b('0x51')),_0xd9898=this[_0xa96b('0x35')]['get'](_0x9759c),_0x138fb0=_0xd9898[_0xa96b('0x19')],_0x4be608=_0x3703fc[_0xa96b('0x65')](_0x138fb0);_0x97335a[_0xa96b('0x2b')](_0x138fb0),_0x4be608&&_0x3703fc[_0xa96b('0x29')](_0x4be608),this['_suggestionToController'][_0xa96b('0x3c')](_0x9759c),this['_viewToController'][_0xa96b('0x3c')](_0x138fb0),_0xd9898['destroy']();}[_0xa96b('0x54')](_0x51119f){if(!_0x51119f[_0xa96b('0x47')]||!this[_0xa96b('0x35')][_0xa96b('0x3d')](_0x51119f))return;const _0x18a295=this['editor']['plugins'][_0xa96b('0x38')](_0xa96b('0x43')),_0x22a1bc=this[_0xa96b('0x35')]['get'](_0x51119f),_0x297ef8=_0x51119f[_0xa96b('0xb')]();_0x22a1bc[_0xa96b('0x19')][_0xa96b('0x64')]=_0x18a295[_0xa96b('0x31')][_0xa96b('0x44')](_0x297ef8);}[_0xa96b('0x1a')](){for(const _0x295e62 of this[_0xa96b('0x35')][_0xa96b('0x30')]())this['_destroyController'](_0x295e62);for(const _0x981537 of this[_0xa96b('0x50')]['values']())_0x981537['mainView']['destroy']();super[_0xa96b('0x1a')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4edb=['commentThreadController','listenTo','isEnabled','plugins','getRanges','execute','get','_acceptCommand','commands','model','stopListening','bind','_discardCommand','discardSuggestion','add','change:isDirty','_setPendingAction','canDiscard','acceptSuggestion','view','_removePendingAction','canAccept','_editor','PENDING_ACTION_SUGGESTION','_pendingAction','isDirty','PendingActions','canEditAt','unbind','destroy'];(function(_0x287669,_0x4edbff){const _0xd67789=function(_0x34e55d){while(--_0x34e55d){_0x287669['push'](_0x287669['shift']());}};_0xd67789(++_0x4edbff);}(_0x4edb,0x10e));const _0xd677=function(_0x287669,_0x4edbff){_0x287669=_0x287669-0x0;let _0xd67789=_0x4edb[_0x287669];return _0xd67789;};import{ObservableMixin as _0x15476d}from'ckeditor5/src/utils';import{getTranslation as _0x4cfe5d}from'../utils/common-translations';export default class Gt extends _0x15476d(){constructor(_0x137dfa,_0x2244af,_0x31fa3a,_0x376740){super(),this[_0xd677('0x9')]=_0x2244af,this[_0xd677('0x13')]=_0x31fa3a,this[_0xd677('0x0')]=_0x376740,this[_0xd677('0x16')]=_0x137dfa,this[_0xd677('0x7')]=_0x137dfa[_0xd677('0x8')][_0xd677('0x6')](_0xd677('0x12')),this[_0xd677('0xc')]=_0x137dfa[_0xd677('0x8')][_0xd677('0x6')](_0xd677('0xd')),this[_0xd677('0x13')][_0xd677('0xb')](_0xd677('0x2'))['to'](this['_acceptCommand'],this[_0xd677('0xc')],(_0x28a790,_0x1fe98f)=>_0x28a790||_0x1fe98f),this[_0xd677('0x13')][_0xd677('0xb')](_0xd677('0x15'))['to'](this[_0xd677('0x7')],_0xd677('0x2'),_0x285951=>_0x285951&&this[_0xd677('0x16')][_0xd677('0x9')]['canEditAt'](_0x2244af[_0xd677('0x4')]())),this[_0xd677('0x13')][_0xd677('0xb')]('canDiscard')['to'](this[_0xd677('0xc')],_0xd677('0x2'),_0x3d173b=>_0x3d173b&&this[_0xd677('0x16')][_0xd677('0x9')][_0xd677('0x1b')](_0x2244af[_0xd677('0x4')]())),this[_0xd677('0x18')]=null,_0x31fa3a['isDirty']&&this[_0xd677('0x10')](),this['listenTo'](_0x31fa3a,_0xd677('0x12'),()=>this[_0xd677('0x12')]()),this[_0xd677('0x1')](_0x31fa3a,_0xd677('0xd'),()=>this['discardSuggestion']()),this[_0xd677('0x1')](_0x31fa3a,_0xd677('0xf'),()=>{_0x31fa3a[_0xd677('0x19')]?this['_setPendingAction']():this[_0xd677('0x14')]();});}['acceptSuggestion'](){this['_acceptCommand'][_0xd677('0x5')](this[_0xd677('0x9')]['id']);}[_0xd677('0xd')](){this[_0xd677('0xc')][_0xd677('0x5')](this[_0xd677('0x9')]['id']);}[_0xd677('0x1d')](){this[_0xd677('0x13')][_0xd677('0x1c')](_0xd677('0x2')),this[_0xd677('0x13')][_0xd677('0x1c')](_0xd677('0x15')),this['view'][_0xd677('0x1c')](_0xd677('0x11')),this[_0xd677('0xa')](),this[_0xd677('0x0')]['destroy'](),this['_pendingAction']&&this[_0xd677('0x14')]();}[_0xd677('0x10')](){const _0x23846f=_0x4cfe5d(this[_0xd677('0x16')]['locale'],_0xd677('0x17'));this[_0xd677('0x18')]=this[_0xd677('0x16')][_0xd677('0x3')][_0xd677('0x6')](_0xd677('0x1a'))[_0xd677('0xe')](_0x23846f);}[_0xd677('0x14')](){null!==this[_0xd677('0x18')]&&this[_0xd677('0x16')][_0xd677('0x3')][_0xd677('0x6')](_0xd677('0x1a'))['remove'](this[_0xd677('0x18')]),this[_0xd677('0x18')]=null;}}
|