@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231103.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 _0xffcc=['containsRange','_breakSuggestionMarker','getAncestors','change:data','$textProxy','editingDowncast','formatInline:accept','nodeAfter','isIntersectingWithRange','markerToData','_getAuthorFromId','parent','insertion:chain','creator','move','skipNestingCheck','getFirstMarker','getUser','addRange','rootName','addUser','authorName','fromRange','trackChanges','adapter','update:suggestion','formatBlock:discard','every','_addThreadToSuggestion','consume','rejected','catch','track-changes-command-not-found','editing','fetchCommentThread','moveTargetPosition','createSelection','markMultiRangeBlockFormat','commands','hasCommentThread','buildSuggestion','_customCallbacks','high','start','isMultiRange','push','_checkSuggestionCorrectness','ck-suggestion-marker-','toViewElement','removeClass','marker-count','formatInline','updateMarker','_model','_joinSuggestions','_suggestions','containsRangeInObject','return','registerPostFixer','differ','plugins','getAllAdjacentSuggestions','sort','getItems','markInlineFormat','getIntersection','deletion:chain','_trackFormatChanges','formatInline:','enableCommand','isLocal','track-changes-user-not-found','filter','map','insertion:join','has','forward','batch','isAtStart','markBlockFormat','splice','_createSuggestion','suggestion-type','getAttribute','targetPosition','get','trackChangesCommand','elementStart','createElement','_suggestionState','formatInline:chain','insertion','isNextTo','join','ready','never','commentThread','documentSelection','conversion','applyOperation','authoredAt','keys','createPositionAt','change:activeMarkers','getCustomProperty','_joinWithAdjacentSuggestions','accepted','_registerDefaultCallbacks','getRange','group','CommentsRepository','updateSuggestion','_mergeNestedSuggestions','listenTo','showSuggestionHighlights','containerElement','split','getDifference','before','insertion:','_rangeIsInLocalUserInsertion','_getExternalAuthor','createPositionBefore','name','getRanges','isInsideObject','isUndo','accept','refresh','isAtEnd','addSuggestionData','deletion:join','removeMarkers','formatBlock:chain','isLimit','rethrowUnexpectedError','length','deletion','getSuggestionCallback','fromCharCode','_saved','_isDataLoaded','deleteContent','model','addMarker','writer','getNearestSelectionRange','editor','markerReady','size','containsItem','activeMarkers','substr','oldRange','hasSuggestion','discardSelectedSuggestions','$graveyard','forceDefaultExecution','value','multi','detach','from','_onDiscard','_getSuggestionData','toJSON','getShiftedBy','previous','position','removed','add','subType','markInsertion','mapper','stop','resolve','insertion:accept','createdAt','multipleBlocks','markMultiRangeDeletion','Users','addClass','includes','formatBlock:','removeMarker:suggestion:formatBlock','execute','discardAllSuggestions','formatGroupId','then','howMany','unbind','_refreshSuggestionsChain','ck-suggestion-marker-formatBlock','getCommentThread','discardSuggestion','for','type','addMarkerName','insertContent','formatBlock:join','suggestionLoaded','enqueueChange','getLastMatchingPosition','author','notReady','markers','$marker','ck-suggestion-marker','root','suggestion:','trackChanges.mergeNestedSuggestions','track-changes-suggestion-data-mismatch','discard','_isForcedDefaultExecutionBlock','options','deletion:discard','widget','unbindElementFromMarkerName','change','_findSuggestions','document','attributes','hasComments','containsPosition','formatBlock:accept','set','after','removeMarker','locale','TrackChangesEditing','enableReadOnlyMode','_updateSuggestionData','external:','selection','getWalker','formatInline:join','fire','_cutOutSuggestionMarker','newRange','acceptSelectedSuggestions','isObject','next','dataToMarker','getMultiRangeId','createRangeIn','elementToElement','stopListening','suggestionChanged','getFirstRange','removeAttribute','addComment','clone','upcast','commandName','isBefore','init','deletion:','define','getSuggestion','isInContent','getSuggestions','addMarker:suggestion:formatBlock','isBlock','suggestion','registerCustomCallback','remove','item','setSelection','trackChanges.trackFormatChanges','collaboration.channelId','isArray','markerNameToElements','some','data','_setSuggestionData','isRemovable','formatInline:discard','_commentsRepository','PENDING_ACTION_SUGGESTION','tablePasteChainId','isAfter','@external','acceptAllSuggestions','assign','config','deletion:accept','markerToHighlight','error-saving-suggestion-data-suggestion-discarded','markerName','nodeBefore','_defaultCallbacks','backward','always','delete','splitPosition','values','default','dataDowncast','_removeSuggestion','acceptSuggestion','setAttribute','addCommentThread','_suggestionFactory','isCollapsed','createRange','markDeletion','addSuggestion','open','data-suggestion','formatBlock','getMarkers','end','_editor','setTo','requires','createPositionAfter','isEqual','addHighlight','isOwn','_splitMarkerName','_adapter','dataReady','_enabledCommands','track-changes-adapter-already-set','_addSuggestionMarker','ck-suggestion-marker--active','getChangedMarkers','range','schema','_handleNewSuggestionMarker','insert','consumable','elementEnd','getChanges','_setSuggestionRange'];(function(_0x194e0b,_0xffcca9){const _0x321b28=function(_0x55609b){while(--_0x55609b){_0x194e0b['push'](_0x194e0b['shift']());}};_0x321b28(++_0xffcca9);}(_0xffcc,0xce));const _0x321b=function(_0x194e0b,_0xffcca9){_0x194e0b=_0x194e0b-0x0;let _0x321b28=_0xffcc[_0x194e0b];return _0x321b28;};import{Plugin as _0x2cd239,PendingActions as _0x2055bb}from'ckeditor5/src/core';import{LiveRange as _0x236dbf}from'ckeditor5/src/engine';import{CKEditorError as _0x5e6c46,uid as _0xb98dc5,priorities as _0xf44b92,logWarning as _0x3f53b3}from'ckeditor5/src/utils';import{toWidget as _0x543618}from'ckeditor5/src/widget';import{Users as _0x3f1302,hashObject as _0x487437}from'ckeditor5-collaboration/src/collaboration-core';import _0x42ceef from'./commands/trackchangescommand';import _0x370df1 from'./commands/acceptsuggestioncommand';import _0xa5d566 from'./commands/discardsuggestioncommand';import _0xe34cb9 from'./commands/executeonallsuggestionscommand';import _0x19ada6 from'./commands/executeonselectedsuggestionscommand';import _0x33435c from'./suggestion';import _0x185919 from'./suggestiondescriptionfactory';import _0x92d1c6 from'./integrations/aiassistant';import _0x48b6a5 from'./integrations/alignment';import _0x29a793 from'./integrations/basicstyles';import _0x4575c2 from'./integrations/blockquote';import _0x3e82eb from'./integrations/ckbox';import _0x507b88 from'./integrations/codeblock';import _0x171059 from'./integrations/comments';import _0x30f92e from'./integrations/deletecommand';import _0x590c18 from'./integrations/documentlist';import _0x3857ee from'./integrations/entercommand';import _0x46c679 from'./integrations/findandreplace';import _0x10c004 from'./integrations/font';import _0x27c2a9 from'./integrations/formatpainter';import _0x4fe678 from'./integrations/heading';import _0x55a08f from'./integrations/highlight';import _0x5b7654 from'./integrations/horizontalline';import _0x3c1dc1 from'./integrations/htmlembed';import _0x2a1b9e from'./integrations/image';import _0x5a2511 from'./integrations/imagereplace';import _0x16e924 from'./integrations/importword';import _0x793ebb from'./integrations/indent';import _0x76141c from'./integrations/inputcommand';import _0x4fb0af from'./integrations/link';import _0xb29adc from'./integrations/list';import _0x5f22dc from'./integrations/listproperties';import _0x100e77 from'./integrations/mediaembed';import _0x25e199 from'./integrations/mention';import _0x125de4 from'./integrations/pagebreak';import _0x25cb85 from'./integrations/paragraph';import _0x185f9c from'./integrations/removeformat';import _0x31f282 from'./integrations/restrictededitingmode';import _0x4f797f from'./integrations/shiftentercommand';import _0x16e9f6 from'./integrations/standardeditingmode';import _0x1e8959 from'./integrations/style';import _0xd9aee from'./integrations/table';import _0x241b11 from'./integrations/tablemergesplit';import _0x3e0ff5 from'./integrations/tableheadings';import _0x1286d7 from'./integrations/tableclipboard';import _0x339950 from'./integrations/tablecolumnresize';import _0x3cc567 from'./integrations/template';import _0x12f9e6 from'./integrations/tableofcontents';import _0xa0adc6 from'./integrations/title';import _0x5b7a43 from'./integrations/undo';import{getTranslation as _0x7e15ee}from'./utils/common-translations';import _0x7432d9 from'./integrations/tablecaption';import _0x15d513 from'./integrations/documentlistproperties';import _0xf0527e from'./integrations/tableproperties';import{isEqual as _0x49a32e}from'lodash-es';export default class p extends _0x2cd239{static get[_0x321b('0x6b')](){return[_0x321b('0xee'),_0x3f1302,_0x2055bb,_0x92d1c6,_0x48b6a5,_0x29a793,_0x4575c2,_0x3e82eb,_0x507b88,_0x171059,_0x30f92e,_0x590c18,_0x15d513,_0x3857ee,_0x46c679,_0x10c004,_0x27c2a9,_0x4fe678,_0x55a08f,_0x5b7654,_0x3c1dc1,_0x2a1b9e,_0x5a2511,_0x16e924,_0x793ebb,_0x76141c,_0x4fb0af,_0xb29adc,_0x5f22dc,_0x100e77,_0x25e199,_0x125de4,_0x25cb85,_0x185f9c,_0x31f282,_0x4f797f,_0x16e9f6,_0x1e8959,_0xd9aee,_0x241b11,_0x3e0ff5,_0x7432d9,_0x1286d7,_0x339950,_0x12f9e6,_0xf0527e,_0x3cc567,_0xa0adc6,_0x5b7a43];}static get['pluginName'](){return _0x321b('0x16');}constructor(_0x4ba8f5){function _0x3cbbfb(_0x5110be){return _0x5110be[_0x321b('0xc9')](_0x45959a=>String[_0x321b('0x10b')](_0x45959a))[_0x321b('0xdd')]('');}super(_0x4ba8f5),this[_0x321b('0x12')](_0x321b('0x117'),[]),this['on'](_0x321b('0xe7'),(_0x27d693,_0x36d1ee,_0x4b20e2,_0x136ae5)=>{this[_0x321b('0xb5')]['change'](()=>{for(const _0xb3d981 of[..._0x136ae5,..._0x4b20e2])this[_0x321b('0xb5')][_0x321b('0x14c')][_0x321b('0xcb')](_0xb3d981)&&_0x4ba8f5[_0x321b('0xa1')]['reconvertMarker'](_0xb3d981);});}),this['_descriptionFactory']=new _0x185919(this[_0x321b('0x113')][_0x321b('0x10f')]['schema'],this['editor'][_0x321b('0x15')]),this['_adapter']=null,this[_0x321b('0x5f')]=new Bt(this['editor']),this['_suggestions']=new Map(),this[_0x321b('0x46')]=_0x4ba8f5[_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0xee')),this['_enabledCommands']=new Set(),this[_0x321b('0xb5')]=this['editor']['model'],this[_0x321b('0xd9')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4ba8f5['config'][_0x321b('0x32')](_0x321b('0x3d'),_0x321b('0x59')),this[_0x321b('0xc3')]=_0x4ba8f5[_0x321b('0x4d')]['get'](_0x321b('0x3d')),_0x4ba8f5[_0x321b('0x4d')][_0x321b('0x32')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4ba8f5[_0x321b('0x4d')][_0x321b('0xd5')](_0x321b('0x3')),this[_0x321b('0xd6')]=new _0x42ceef(_0x4ba8f5,this[_0x321b('0x73')]),this[_0x3cbbfb([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3cbbfb([0x34,0x30,0x34,0x36,0x32,0x32,0x30,0x36]);}[_0x321b('0x30')](){const _0x12c880=this[_0x321b('0x113')];_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x85'))[_0x321b('0x4f')]({'model':_0x321b('0x38'),'view':_0xb1f4e7=>{const {id:_0x1af2a1,type:_0x842b14}=this[_0x321b('0x70')](_0xb1f4e7[_0x321b('0x51')]),_0x48a631=[_0x321b('0x0'),_0x321b('0xaf')+_0x842b14];let _0x24d429=0xbb8;return this[_0x321b('0x117')][_0x321b('0x135')](_0xb1f4e7[_0x321b('0x51')])&&(_0x48a631[_0x321b('0xad')]('ck-suggestion-marker--active'),_0x24d429=0xbc2),_0x321b('0x109')==_0x842b14&&(_0x24d429+=0x5),{'classes':_0x48a631,'attributes':{'data-suggestion':_0x1af2a1},'priority':_0x24d429};}}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x5a'))[_0x321b('0x129')](_0x54df98=>{_0x54df98['on']('addMarker:suggestion',(_0x215342,_0x3dc4d7,_0x334ca0)=>{if(!_0x334ca0[_0x321b('0x7')][_0x321b('0xf2')])return;const _0x4da399=_0x3dc4d7[_0x321b('0x3b')];if(!_0x4da399)return;const _0x10c9a7=_0x334ca0['mapper'][_0x321b('0xb0')](_0x4da399);_0x12c880['model'][_0x321b('0x79')][_0x321b('0x21')](_0x4da399)&&_0x10c9a7&&!_0x10c9a7['getCustomProperty'](_0x321b('0x9'))&&_0x10c9a7['is'](_0x321b('0xf3'))&&_0x543618(_0x10c9a7,_0x334ca0[_0x321b('0x111')]);},{'priority':_0x321b('0xaa')});}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x5a'))[_0x321b('0x4f')]({'model':_0x321b('0x38'),'view':(_0x349e84,_0x19a1a0)=>{if(!_0x19a1a0['options'][_0x321b('0xf2')])return null;const {type:_0x7dc83e}=this[_0x321b('0x70')](_0x349e84[_0x321b('0x51')]);return{'classes':[_0x321b('0x0'),_0x321b('0xaf')+_0x7dc83e],'priority':0xbb8};}});const _0x4dfd08=({showActiveMarkers:_0x4c0347=!0x0}={})=>(_0x293539,_0x41a7a0,_0x348aef)=>{if(!_0x41a7a0[_0x321b('0x3b')])return;if(_0x41a7a0['item']['is'](_0x321b('0x1a')))return void _0x348aef['consumable'][_0x321b('0x9d')](_0x41a7a0[_0x321b('0x3b')],_0x293539[_0x321b('0xfb')]);const _0x544560=_0x348aef[_0x321b('0x12c')][_0x321b('0xb0')](_0x41a7a0[_0x321b('0x3b')]);if(!(_0x41a7a0[_0x321b('0x3b')]['is']('element')&&_0x12c880['model'][_0x321b('0x79')][_0x321b('0x37')](_0x41a7a0[_0x321b('0x3b')])&&!_0x544560[_0x321b('0xe8')](_0x321b('0x6e'))))return;const {id:_0x35764d}=this['_splitMarkerName'](_0x41a7a0['markerName']);_0x348aef[_0x321b('0x111')][_0x321b('0x134')]([_0x321b('0x0'),_0x321b('0x13f')],_0x544560),_0x348aef[_0x321b('0x111')][_0x321b('0x5d')](_0x321b('0x65'),_0x35764d,_0x544560),_0x348aef['mapper']['bindElementToMarker'](_0x544560,_0x41a7a0[_0x321b('0x51')]),_0x4c0347&&(this[_0x321b('0x117')][_0x321b('0x135')](_0x41a7a0[_0x321b('0x51')])?_0x348aef[_0x321b('0x111')][_0x321b('0x134')]('ck-suggestion-marker--active',_0x544560):_0x348aef[_0x321b('0x111')][_0x321b('0xb1')](_0x321b('0x76'),_0x544560));for(const _0x2c179d of _0x12c880['model'][_0x321b('0x25')](_0x41a7a0[_0x321b('0x3b')])[_0x321b('0xbf')]())_0x348aef[_0x321b('0x7c')][_0x321b('0x9d')](_0x2c179d,_0x293539[_0x321b('0xfb')]);_0x348aef['consumable'][_0x321b('0x9d')](_0x41a7a0[_0x321b('0x3b')],_0x293539[_0x321b('0xfb')]);};_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x5a'))[_0x321b('0x129')](_0x33ba2a=>{_0x33ba2a['on'](_0x321b('0x36'),(_0x4e43d6,_0x4d63f1,_0x38bf9d)=>{_0x38bf9d[_0x321b('0x7')]['showSuggestionHighlights']&&_0x4dfd08({'showActiveMarkers':!0x1})(_0x4e43d6,_0x4d63f1,_0x38bf9d);},{'priority':'highest'});}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')]('dataDowncast')[_0x321b('0x89')]({'model':'suggestion','view':(_0x1cd11e,_0x1eca44)=>_0x1eca44[_0x321b('0x7')][_0x321b('0xf2')]?null:{'group':_0x321b('0x38'),'name':_0x1cd11e[_0x321b('0x118')](0xb)}}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x2d'))[_0x321b('0x26')]({'view':{'name':_0x321b('0x38'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5289c0,{writer:_0x26f6f8})=>{let _0x108ec8='suggestion:'+_0x5289c0[_0x321b('0xd3')](_0x321b('0xd2'))+':'+_0x5289c0[_0x321b('0xd3')]('id');return _0x5289c0['getAttribute']('marker-count')&&(_0x108ec8+=':'+_0x5289c0['getAttribute'](_0x321b('0xb2'))),_0x26f6f8[_0x321b('0xd8')](_0x321b('0x14d'),{'data-name':_0x108ec8});}}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x2d'))[_0x321b('0x23')]({'view':'suggestion'}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')](_0x321b('0x85'))['add'](_0x4c6f6d=>{_0x4c6f6d['on']('addMarker:suggestion:formatBlock',_0x4dfd08(),{'priority':_0x321b('0xaa')});}),_0x12c880[_0x321b('0xe2')][_0x321b('0x142')]('editingDowncast')[_0x321b('0x129')](_0x237742=>{_0x237742['on'](_0x321b('0x137'),(_0x152dbd,_0x362871,_0x397339)=>{const _0x339ad1=_0x397339[_0x321b('0x12c')][_0x321b('0x40')](_0x362871[_0x321b('0x51')]);if(_0x339ad1)for(const _0x31f2dd of _0x339ad1)_0x31f2dd[_0x321b('0xe8')](_0x321b('0x6e'))||(_0x397339[_0x321b('0x111')]['removeClass']([_0x321b('0x0'),_0x321b('0x13f'),'ck-suggestion-marker--active'],_0x31f2dd),_0x397339[_0x321b('0x111')][_0x321b('0x2a')](_0x321b('0x65'),_0x31f2dd),_0x397339[_0x321b('0x12c')][_0x321b('0xa')](_0x31f2dd,_0x362871['markerName']));},{'priority':'high'});}),_0x12c880[_0x321b('0x10f')][_0x321b('0xd')][_0x321b('0xba')](_0x4d1685=>{let _0x461285=!0x1;const _0x35ebce=Array[_0x321b('0x121')](_0x12c880[_0x321b('0x10f')][_0x321b('0xd')][_0x321b('0xbb')]['getChangedMarkers']()),_0x3c8c45=new Set();for(const {name:_0x2b207f,data:_0x237520}of _0x35ebce){const {group:_0x5b8635,type:_0x5e770f,id:_0x41f17e}=this['_splitMarkerName'](_0x2b207f);if('suggestion'!==_0x5b8635)continue;const _0x3801c5=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x41f17e);if(null!=_0x237520[_0x321b('0x1f')]){_0x321b('0xb3')==_0x5e770f&&(_0x461285=_0x461285||$t(_0x237520[_0x321b('0x1f')],_0x2b207f,_0x4d1685,_0x12c880[_0x321b('0x10f')][_0x321b('0x79')]));if(_0x237520[_0x321b('0x1f')]['isCollapsed']||_0x321b('0x11c')==_0x237520[_0x321b('0x1f')][_0x321b('0x1')][_0x321b('0x93')]||_0x321b('0x66')==_0x5e770f&&!Rt(_0x237520['newRange'])||'deletion'==_0x5e770f&&!(!Mt(_0x4450bb=_0x237520[_0x321b('0x1f')])&&!function(_0x43c168){return _0x43c168[_0x321b('0xab')][_0x321b('0x8b')]==_0x43c168[_0x321b('0x68')][_0x321b('0x52')]&&_0x43c168['start'][_0x321b('0x101')];}(_0x4450bb)))_0x4d1685[_0x321b('0x14')](_0x2b207f),_0x461285=!0x0;else{if(!_0x3801c5||!_0x3801c5[_0x321b('0x34')])continue;_0x3c8c45[_0x321b('0x129')](_0x3801c5);}}}var _0x4450bb;return _0x3c8c45['size']>0x0&&(_0x461285=!!this[_0x321b('0xe9')](_0x3c8c45)||_0x461285),_0x461285;}),_0x12c880[_0x321b('0x10f')][_0x321b('0xd')]['registerPostFixer'](_0x3be2ca=>{let _0x9d8a43=!0x1;for(const _0x20f262 of _0x12c880[_0x321b('0x10f')][_0x321b('0xd')]['differ'][_0x321b('0x7e')]()){if(_0x321b('0x7b')!=_0x20f262[_0x321b('0x143')])continue;const _0x520b0a=_0x20f262['position']['getShiftedBy'](_0x20f262['length']);if(_0x520b0a[_0x321b('0x101')])for(const _0x3196fc of this[_0x321b('0xb7')][_0x321b('0x58')]()){if(_0x3196fc[_0x321b('0xac')]||!_0x3196fc['isInContent'])continue;if(_0x321b('0x66')!=_0x3196fc['type'])continue;const _0x33600b=_0x3196fc['getFirstRange']();if(_0x33600b['start'][_0x321b('0x8b')]!=_0x33600b[_0x321b('0x68')][_0x321b('0x8b')]&&_0x33600b[_0x321b('0x68')][_0x321b('0x6d')](_0x20f262['position'])){const _0x487857=_0x12c880['model'][_0x321b('0x61')](_0x33600b[_0x321b('0xab')],_0x520b0a);_0x3be2ca['updateMarker'](_0x3196fc[_0x321b('0x90')](),{'range':_0x487857}),_0x9d8a43=!0x0;}}}return _0x9d8a43;}),_0x12c880['model'][_0x321b('0x14c')]['on'](_0x321b('0x99'),(_0xe4988f,_0x156ce1,_0x4ae3ea)=>{if(null==_0x4ae3ea){const {id:_0x1ce47c}=this['_splitMarkerName'](_0x156ce1[_0x321b('0xfb')]),_0x3809ea=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x1ce47c);_0x3809ea&&_0x3809ea[_0x321b('0x144')](_0x156ce1[_0x321b('0xfb')]);}}),_0x12c880[_0x321b('0x10f')][_0x321b('0xd')]['on'](_0x321b('0x83'),()=>{const _0x51a909=Array[_0x321b('0x121')](_0x12c880[_0x321b('0x10f')]['document'][_0x321b('0xbb')][_0x321b('0x77')]())['filter'](_0x12d979=>_0x321b('0x38')===this[_0x321b('0x70')](_0x12d979[_0x321b('0xfb')])[_0x321b('0xed')]);if(0x0===_0x51a909[_0x321b('0x108')])return;_0x51a909[_0x321b('0xbe')]((_0x4aa0bf,_0x3bebc2)=>{const _0x5067c1=_0x4aa0bf['data'][_0x321b('0x119')],_0x2eaef7=_0x3bebc2['data']['oldRange'];return null===_0x5067c1&&null===_0x2eaef7?0x0:null===_0x5067c1&&null!==_0x2eaef7?-0x1:null!==_0x5067c1&&null===_0x2eaef7?0x1:_0x5067c1[_0x321b('0xab')]['isBefore'](_0x2eaef7['start'])?-0x1:0x1;});const _0x5c5fa0=new Set(),_0x52a605=new Set();for(const {name:_0x2b761c,data:_0x2e74b2}of _0x51a909){const {id:_0x144958}=this['_splitMarkerName'](_0x2b761c);if(null===_0x2e74b2[_0x321b('0x119')]){const _0x535497=this['_handleNewSuggestionMarker'](_0x2b761c);_0x52a605[_0x321b('0x129')](_0x535497);}else{const _0x5229c7=this[_0x321b('0xb7')]['get'](_0x144958);null!==_0x2e74b2['newRange']||_0x5229c7[_0x321b('0x34')]?(_0x5c5fa0[_0x321b('0x129')](_0x5229c7['head']),_0x52a605[_0x321b('0x129')](_0x5229c7)):this[_0x321b('0x5b')](_0x5229c7);}}_0x52a605[_0x321b('0x115')]>0x0&&this[_0x321b('0x13e')](_0x52a605);for(const _0x17c3a2 of _0x5c5fa0)this[_0x321b('0x1d')](_0x321b('0x28'),_0x17c3a2);}),_0x12c880['model']['on'](_0x321b('0xe3'),(_0x12822b,_0x1f661f)=>{const _0x389e75=_0x1f661f[0x0];if(!this[_0x321b('0xb7')][_0x321b('0x115')])return;if(!_0x389e75['isDocumentOperation'])return;if(_0x389e75[_0x321b('0xcd')][_0x321b('0xfe')]||!_0x389e75[_0x321b('0xcd')][_0x321b('0xc6')])return;let _0x5a22b6,_0x5c41ed;switch(_0x389e75['type']){case _0x321b('0x7b'):_0x5a22b6=_0x12c880[_0x321b('0x10f')][_0x321b('0xe6')](_0x389e75[_0x321b('0x127')]),_0x5c41ed=_0x5a22b6[_0x321b('0x125')](_0x389e75[_0x321b('0x13c')]);break;case _0x321b('0xf4'):_0x5a22b6=_0x12c880['model'][_0x321b('0xe6')](_0x389e75[_0x321b('0x57')]),_0x5c41ed=_0x12c880[_0x321b('0x10f')][_0x321b('0xe6')](_0x389e75[_0x321b('0xa3')]);break;case _0x321b('0x8e'):_0x5a22b6=_0x12c880[_0x321b('0x10f')][_0x321b('0xe6')](_0x389e75[_0x321b('0xd4')]),_0x5c41ed=_0x5a22b6[_0x321b('0x125')](_0x389e75[_0x321b('0x13c')]);break;default:return;}const _0x18dd55=_0x12c880[_0x321b('0x10f')][_0x321b('0x61')](_0x5a22b6,_0x5c41ed);_0x12c880[_0x321b('0x10f')][_0x321b('0xb')](()=>{for(const {suggestion:_0x4c59b0,meta:_0x48d2c5}of this['_findSuggestions'](_0x18dd55)){if(_0x4c59b0['isMultiRange'])continue;if(_0x321b('0xb3')==_0x4c59b0[_0x321b('0x143')])continue;const _0x4de206=_0x4c59b0[_0x321b('0x42')]&&_0x4c59b0['data'][_0x321b('0x131')];('formatBlock'!=_0x4c59b0[_0x321b('0x143')]||_0x321b('0xf4')==_0x389e75['type']&&!_0x4de206)&&(_0x48d2c5[_0x321b('0xb8')]||_0x321b('0xdb')==_0x4c59b0[_0x321b('0x143')]&&_0x48d2c5[_0x321b('0x6f')]||_0x4c59b0[_0x321b('0x29')]()[_0x321b('0x80')](_0x18dd55)&&this[_0x321b('0x81')](_0x4c59b0,_0x5a22b6,_0x5c41ed));}});},{'priority':'lowest'}),_0x12c880[_0x321b('0x10f')]['on'](_0x321b('0x10e'),(_0x17f46e,_0x4ebf7e)=>{const _0x56ce1a=_0x4ebf7e[0x0],_0x56e4cc=_0x4ebf7e[0x1];if(_0x56e4cc&&_0x56e4cc['forceDefaultExecution'])return;if(this[_0x321b('0x6')])return;if(!this[_0x321b('0xd6')][_0x321b('0x11e')])return;if(_0x56ce1a[_0x321b('0x60')])return;const _0x3d1ed0=_0x12c880['model'][_0x321b('0x79')],{start:_0x4cf7c0,end:_0x2a0601}=_0x56ce1a[_0x321b('0x29')](),_0x54fb61=_0x4cf7c0['nodeAfter']&&_0x3d1ed0[_0x321b('0x106')](_0x4cf7c0['nodeAfter'])?null:_0x3d1ed0[_0x321b('0x112')](_0x4cf7c0,_0x321b('0xcc')),_0x18258f=_0x2a0601[_0x321b('0x52')]&&_0x3d1ed0['isLimit'](_0x2a0601[_0x321b('0x52')])?null:_0x3d1ed0[_0x321b('0x112')](_0x2a0601,_0x321b('0x54')),_0x31253e=_0x12c880['model'][_0x321b('0x61')](_0x54fb61?_0x54fb61[_0x321b('0xab')]:_0x4cf7c0,_0x18258f?_0x18258f[_0x321b('0x68')]:_0x2a0601);_0x12c880['model'][_0x321b('0xb')](_0x388d57=>{this[_0x321b('0x62')](_0x31253e);const _0x4edcce=_0x12c880['model'][_0x321b('0x79')]['getNearestSelectionRange'](_0x31253e[_0x321b('0xab')]);_0x56ce1a['is'](_0x321b('0xe1'))?_0x388d57[_0x321b('0x3c')](_0x4edcce):_0x56ce1a[_0x321b('0x6a')](_0x4edcce);}),_0x17f46e[_0x321b('0x12d')]();},{'priority':_0xf44b92['normal']+0xa}),_0x12c880[_0x321b('0x10f')]['on'](_0x321b('0x145'),(_0x3999ab,_0x519037)=>{const _0x296c00=_0x519037[_0x519037[_0x321b('0x108')]-0x1];_0x296c00&&_0x296c00[_0x321b('0x11d')]||this[_0x321b('0x6')]||this[_0x321b('0xd6')][_0x321b('0x11e')]&&(_0x12c880['model']['change'](()=>{let _0x2d2448=_0x12c880['model']['insertContent'](_0x519037[0x0],_0x519037[0x1],_0x519037[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d2448)return;_0x3999ab[_0x321b('0xb9')]=_0x2d2448[_0x321b('0x2c')]();const _0x376a3b=_0x2d2448['end'][_0x321b('0x52')],_0x1b198d=_0x12c880[_0x321b('0x10f')][_0x321b('0x79')];_0x376a3b&&_0x1b198d[_0x321b('0x37')](_0x376a3b)&&!_0x1b198d[_0x321b('0x21')](_0x376a3b)&&(_0x2d2448=_0x12c880['model'][_0x321b('0x61')](_0x2d2448[_0x321b('0xab')],_0x12c880['model'][_0x321b('0xe6')](_0x376a3b,_0x321b('0x68')))),this[_0x321b('0x12b')](_0x2d2448);}),_0x3999ab[_0x321b('0x12d')]());},{'priority':'high'}),this[_0x321b('0x113')][_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x97'),this[_0x321b('0xd6')]),this['enableCommand'](_0x321b('0x97'));const _0x694a20=new _0x370df1(_0x12c880,this[_0x321b('0xb7')]);_0x12c880[_0x321b('0xa6')][_0x321b('0x129')]('acceptSuggestion',_0x694a20),this[_0x321b('0xc5')]('acceptSuggestion');const _0x2c68e0=new _0xa5d566(_0x12c880,this[_0x321b('0xb7')]);_0x12c880[_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x141'),_0x2c68e0),this['enableCommand'](_0x321b('0x141')),_0x12c880[_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x4b'),new _0xe34cb9(_0x12c880,_0x694a20,this[_0x321b('0xb7')])),this['enableCommand']('acceptAllSuggestions'),_0x12c880['commands'][_0x321b('0x129')](_0x321b('0x139'),new _0xe34cb9(_0x12c880,_0x2c68e0,this[_0x321b('0xb7')])),this['enableCommand'](_0x321b('0x139')),_0x12c880[_0x321b('0xa6')][_0x321b('0x129')](_0x321b('0x20'),new _0x19ada6(_0x12c880,_0x694a20,this['_suggestions'])),this[_0x321b('0xc5')](_0x321b('0x20')),_0x12c880[_0x321b('0xa6')][_0x321b('0x129')]('discardSelectedSuggestions',new _0x19ada6(_0x12c880,_0x2c68e0,this['_suggestions'])),this[_0x321b('0xc5')](_0x321b('0x11b'));const _0xf8ca85=_0x12c880[_0x321b('0xbc')][_0x321b('0xd5')]('CommentsRepository');this[_0x321b('0xf1')](_0xf8ca85,_0x321b('0x2b'),(_0x49d399,{threadId:_0x399feb})=>{const _0xe1cf48=this['_suggestions'][_0x321b('0xd5')](_0x399feb);_0xe1cf48&&_0xe1cf48['commentThread']&&0x1===_0xe1cf48['commentThread'][_0x321b('0x108')]&&this['_updateSuggestionData'](_0x399feb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xf8ca85,'removeComment',(_0x23196d,{threadId:_0x58a73a})=>{const _0x502ae5=this[_0x321b('0xb7')]['get'](_0x58a73a);_0x502ae5&&_0x502ae5[_0x321b('0xe0')]&&!_0x502ae5['commentThread']['length']&&this[_0x321b('0x18')](_0x58a73a,{'hasComments':!0x1});},{'priority':'low'});}set[_0x321b('0x98')](_0x289486){if(this[_0x321b('0x71')])throw new _0x5e6c46(_0x321b('0x74'),this);this[_0x321b('0x71')]=_0x289486;}get[_0x321b('0x98')](){return this[_0x321b('0x71')];}[_0x321b('0x35')]({skipNotAttached:_0x4cd955=!0x1,toJSON:_0x5d6ee1=!0x1}={}){const _0x41eb91=[];for(const _0x3759f7 of this[_0x321b('0xb7')]['values']())_0x4cd955&&!_0x3759f7[_0x321b('0x34')]||_0x41eb91[_0x321b('0xad')](_0x3759f7);return _0x5d6ee1?_0x41eb91['map'](_0x45e36a=>_0x45e36a[_0x321b('0x124')]()):_0x41eb91;}[_0x321b('0x33')](_0x4ea26e){const _0x46c275=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x4ea26e);if(!_0x46c275)throw new _0x5e6c46('track-changes-suggestion-not-found',this);return _0x46c275;}[_0x321b('0x11a')](_0x7fccb){return this[_0x321b('0xb7')]['has'](_0x7fccb);}[_0x321b('0x102')](_0x1c2eec){const {authorId:_0x5b66bb,id:_0x301655,attributes:_0x4ecded}=_0x1c2eec,[_0x3272cd,_0x510d25]=_0x1c2eec['type']['split'](':'),_0x5e24d1=this[_0x321b('0xb7')][_0x321b('0xd5')](_0x301655)||this['_createSuggestion'](_0x3272cd,_0x510d25,_0x301655,_0x5b66bb,_0x4ecded);if(this[_0x321b('0x9c')](_0x5e24d1),this[_0x321b('0xae')](_0x5e24d1,_0x3272cd,_0x510d25||null,_0x5b66bb),_0x5e24d1[_0x321b('0x130')]=_0x1c2eec['createdAt'],_0x5e24d1[_0x321b('0x10d')]=!0x0,_0x4ecded&&_0x4ecded['@external']){const _0x519b4=_0x4ecded[_0x321b('0x4a')],_0x53385f=this[_0x321b('0xf9')](_0x519b4[_0x321b('0x95')]);_0x5e24d1[_0x321b('0xe4')]=_0x519b4['createdAt'],_0x5e24d1[_0x321b('0x14a')]=_0x53385f,_0x5e24d1['isExternal']=!0x0;}else _0x5e24d1[_0x321b('0xe4')]=_0x1c2eec[_0x321b('0x130')];switch(_0x1c2eec[_0x321b('0x42')]&&(_0x5e24d1[_0x321b('0x42')]=_0x1c2eec['data']),_0x1c2eec[_0x321b('0xe')]&&(_0x5e24d1[_0x321b('0xe')]=_0x1c2eec['attributes']),this[_0x321b('0x71')]&&this[_0x321b('0x71')]['addSuggestion']||(_0x5e24d1[_0x321b('0x10c')]=!0x0),this[_0x321b('0xd9')]['get'](_0x5e24d1)){case _0x321b('0x14b'):this[_0x321b('0xd9')][_0x321b('0x12')](_0x5e24d1,_0x321b('0x72'));break;case _0x321b('0x114'):_0x5e24d1[_0x321b('0x34')]?(this[_0x321b('0x13e')](new Set([_0x5e24d1])),this['_joinWithAdjacentSuggestions'](new Set([_0x5e24d1])),this[_0x321b('0xd9')][_0x321b('0x12')](_0x5e24d1,_0x321b('0xde')),this['fire']('suggestionLoaded',_0x5e24d1)):this[_0x321b('0xd9')][_0x321b('0x12')](_0x5e24d1,'removed');}return _0x5e24d1;}[_0x321b('0x5c')](_0x3599a7){this[_0x321b('0x11d')](()=>{this[_0x321b('0x113')][_0x321b('0x10f')]['change'](()=>{for(const _0x439d74 of _0x3599a7[_0x321b('0xbd')]())_0x439d74[_0x321b('0xff')]();});});}['discardSuggestion'](_0x3ebc8f){this['forceDefaultExecution'](()=>{this[_0x321b('0x113')][_0x321b('0x10f')][_0x321b('0xb')](()=>{for(const _0x1ab2a6 of _0x3ebc8f['getAllAdjacentSuggestions']())_0x1ab2a6['discard']();});});}[_0x321b('0xc5')](_0x1c7db5,_0x2ef838){const _0x36411e=this[_0x321b('0x113')]['commands'][_0x321b('0xd5')](_0x1c7db5);if(!_0x36411e)throw new _0x5e6c46(_0x321b('0xa0'),this,{'commandName':_0x1c7db5});this['_enabledCommands']['add'](_0x36411e),_0x2ef838&&_0x36411e['on'](_0x321b('0x138'),(_0x1d96f6,_0xce073a)=>{this[_0x321b('0xd6')]['value']&&(this[_0x321b('0x6')]||_0xce073a['length']>0x0&&_0xce073a[_0xce073a[_0x321b('0x108')]-0x1]&&_0xce073a[_0xce073a[_0x321b('0x108')]-0x1][_0x321b('0x11d')]||(_0x1d96f6[_0x321b('0xb9')]=_0x2ef838((..._0x4cbabb)=>_0x36411e[_0x321b('0x138')](..._0x4cbabb,{'forceDefaultExecution':!0x0}),..._0xce073a),_0x1d96f6[_0x321b('0x12d')]()));},{'priority':_0x321b('0xaa')});}[_0x321b('0x11d')](_0x5ef69b){let _0x3f29df,_0x1d6c3d;const _0x33b785=this[_0x321b('0x6')];this[_0x321b('0x6')]=!0x0;try{_0x3f29df=_0x5ef69b();}catch(_0x4f541e){_0x1d6c3d=_0x4f541e;}return _0x33b785||(this[_0x321b('0x6')]=!0x1),_0x1d6c3d&&_0x5e6c46[_0x321b('0x107')](_0x1d6c3d,this),_0x3f29df;}[_0x321b('0x12b')](_0x3127be,_0x26c23d=null,_0x5728f1={}){if(_0x3127be['isCollapsed'])return null;const _0xd484b7=this[_0x321b('0x113')]['plugins'][_0x321b('0xd5')](_0x321b('0x133'))['me'];for(const {suggestion:_0x4b5483,meta:_0x180efc}of this[_0x321b('0xc')](_0x3127be,_0x321b('0xdb')))if(_0x180efc[_0x321b('0x6f')]){if(!_0x180efc[_0x321b('0xdc')]){if(_0x180efc[_0x321b('0xb8')]){if(!this[_0x321b('0xf0')]||!Ot(_0x4b5483,_0x5728f1))continue;return _0x4b5483;}if(Ot(_0x4b5483,_0x5728f1))return _0x4b5483;this[_0x321b('0x81')](_0x4b5483,_0x3127be[_0x321b('0xab')],_0x3127be[_0x321b('0x68')]);break;}if(_0x26c23d==_0x4b5483[_0x321b('0x12a')]&&Ot(_0x4b5483,_0x5728f1)){const _0x275b2c=_0x4b5483[_0x321b('0x29')]();return _0x275b2c[_0x321b('0xab')][_0x321b('0x6d')](_0x3127be[_0x321b('0x68')])?this['_setSuggestionRange'](_0x4b5483,this[_0x321b('0xb5')]['createRange'](_0x3127be[_0x321b('0xab')],_0x275b2c[_0x321b('0x68')])):this[_0x321b('0x7f')](_0x4b5483,this['_model'][_0x321b('0x61')](_0x275b2c[_0x321b('0xab')],_0x3127be[_0x321b('0x68')])),_0x4b5483;}}const _0x2d251b=_0xb98dc5(),_0x34ccee=_0xd484b7['id'],_0x43870a=_0x26c23d?_0x321b('0xf7')+_0x26c23d:_0x321b('0xdb'),_0x45dbda=this[_0x321b('0x43')]({'id':_0x2d251b,'type':_0x43870a,'createdAt':new Date(),'authorId':_0x34ccee,'attributes':_0x5728f1});return this[_0x321b('0x75')](_0x43870a,_0x2d251b,_0x34ccee,_0x3127be),_0x45dbda;}['markMultiRangeInsertion'](_0x4961fc,_0x1a7e74=_0x321b('0x11f'),_0x5e3c75={}){const _0x297e10=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133'))['me'],_0x2b4e5a=this[_0x321b('0x5f')][_0x321b('0x10a')]('insertion',_0x1a7e74,_0x321b('0xdd'));for(const _0x559b44 of this[_0x321b('0x35')]())if(_0x559b44[_0x321b('0x14a')]['id']==_0x297e10['id']&&_0x321b('0xdb')==_0x559b44[_0x321b('0x143')]&&_0x559b44[_0x321b('0x12a')]==_0x1a7e74&&Ot(_0x559b44,_0x5e3c75)&&(_0x2b4e5a(_0x559b44[_0x321b('0xfc')](),_0x4961fc)||_0x2b4e5a(_0x4961fc,_0x559b44['getRanges']()))){for(const _0x1da16c of _0x4961fc)_0x559b44[_0x321b('0x92')](_0x1da16c);return _0x559b44;}for(const {suggestion:_0x3da43c,meta:_0xb0a542}of this[_0x321b('0xc')](_0x4961fc,_0x321b('0xdb'))){if(!_0xb0a542[_0x321b('0x6f')])continue;if(!this[_0x321b('0xf0')]&&_0xb0a542[_0x321b('0xb8')])continue;if(!Ot(_0x3da43c,_0x5e3c75))continue;let _0x369958=!0x0;for(const _0x556bce of _0x3da43c[_0x321b('0xfc')]())for(const _0xbe1b89 of _0x4961fc)if(!_0x556bce['containsRange'](_0xbe1b89)){_0x369958=!0x1;break;}if(_0x369958)return _0x3da43c;}const _0x53f180=_0xb98dc5(),_0x1de3b7=_0x297e10['id'],_0x3d5865=_0x321b('0xf7')+_0x1a7e74,_0x10badd=this[_0x321b('0x43')]({'id':_0x53f180,'type':_0x3d5865,'createdAt':new Date(),'authorId':_0x1de3b7,'attributes':_0x5e3c75});for(const _0x2d7e7a of _0x4961fc)this['_addSuggestionMarker'](_0x3d5865,_0x53f180,_0x1de3b7,_0x2d7e7a,_0x33435c[_0x321b('0x24')]());return _0x10badd;}[_0x321b('0xc0')](_0x310286,_0x4b6ee1,_0x2a3ed6=null,_0x2f31d6={}){if(_0x2a3ed6=_0x2a3ed6||Nt(_0x4b6ee1),_0x310286[_0x321b('0x60')])return null;if(_0x321b('0xdf')===this['_trackFormatChanges']){const _0x27a221=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0xb3'),_0x2a3ed6,_0x321b('0xff'));return this['forceDefaultExecution'](()=>_0x27a221([_0x310286],_0x4b6ee1,_0x2f31d6)),null;}const _0x4c0c77=this[_0x321b('0x113')]['plugins'][_0x321b('0xd5')](_0x321b('0x133'))['me'],_0x4c6ce4=[];if(_0x321b('0x55')!==this[_0x321b('0xc3')])for(const {suggestion:_0x387463,meta:_0x28b859}of this['_findSuggestions'](_0x310286,_0x321b('0xdb')))_0x28b859[_0x321b('0x6f')]&&!_0x28b859['isInsideObject']&&_0x4c6ce4[_0x321b('0xad')](..._0x387463['getRanges']());const _0x31df50=function(_0x4ca75a,_0x5d4aba){const _0x3dae9a=[];for(const _0x180d1b of _0x5d4aba){const _0x2059f6=_0x4ca75a[_0x321b('0xc1')](_0x180d1b);_0x2059f6&&_0x3dae9a[_0x321b('0xad')](_0x2059f6);}return _0x3dae9a;}(_0x310286,_0x4c6ce4),_0x24512d=function(_0x177d6c,_0x3f3128){const _0x490546=[_0x177d6c];for(const _0x47878d of _0x3f3128){let _0x3cff14=0x0;for(;_0x3cff14<_0x490546[_0x321b('0x108')];){const _0x132271=_0x490546[_0x3cff14][_0x321b('0xf5')](_0x47878d);_0x490546['splice'](_0x3cff14,0x1,..._0x132271),_0x3cff14+=_0x132271[_0x321b('0x108')];}}return _0x490546;}(_0x310286,_0x4c6ce4);_0x31df50[_0x321b('0x108')]&&this[_0x321b('0xb5')][_0x321b('0xb')](()=>{for(const _0x49483a of _0x31df50){const _0x26c9c8=this[_0x321b('0x5f')][_0x321b('0x10a')]('formatInline',_0x2a3ed6,_0x321b('0xff'));this[_0x321b('0x11d')](()=>_0x26c9c8([_0x49483a],_0x4b6ee1,_0x2f31d6));}});for(const _0x2ea0e7 of _0x24512d){let _0x2c13ff=null,_0x5d11c6=_0x2ea0e7[_0x321b('0xab')],_0x50c97e=_0x2ea0e7['end'];for(const {suggestion:_0x3d073c,meta:_0x54984b}of this[_0x321b('0xc')](_0x2ea0e7,_0x321b('0xb3'))){if(!_0x54984b[_0x321b('0x6f')])continue;if(_0x3d073c['subType']!=_0x2a3ed6)continue;if(!Ot(_0x3d073c,_0x2f31d6))continue;const _0x29db7d=_0x3d073c[_0x321b('0x29')]();if(_0x29db7d['containsRange'](_0x2ea0e7,!0x0))return null;_0x5d11c6=_0x5d11c6[_0x321b('0x2f')](_0x29db7d[_0x321b('0xab')])?_0x5d11c6:_0x29db7d[_0x321b('0xab')],_0x50c97e=_0x50c97e[_0x321b('0x49')](_0x29db7d[_0x321b('0x68')])?_0x50c97e:_0x29db7d[_0x321b('0x68')],_0x2c13ff?_0x29db7d[_0x321b('0xab')]['isBefore'](_0x2c13ff[_0x321b('0x29')]()[_0x321b('0xab')])?(_0x2c13ff['removeMarkers'](),_0x2c13ff=_0x3d073c):_0x3d073c[_0x321b('0x104')]():_0x2c13ff=_0x3d073c;}const _0x4e096e=this[_0x321b('0xb5')][_0x321b('0x61')](_0x5d11c6,_0x50c97e);if(_0x2c13ff)this[_0x321b('0x7f')](_0x2c13ff,_0x4e096e);else{const _0x522470=_0xb98dc5(),_0x8a133e=_0x4c0c77['id'];this[_0x321b('0x43')]({'id':_0x522470,'type':_0x321b('0xc4')+_0x2a3ed6,'data':_0x4b6ee1,'createdAt':new Date(),'authorId':_0x8a133e,'attributes':_0x2f31d6}),this['_addSuggestionMarker'](_0x321b('0xc4')+_0x2a3ed6,_0x522470,_0x8a133e,_0x4e096e);}}return null;}[_0x321b('0xcf')](_0x555bc0,_0x56ced0,_0x11087e=[],_0x4b7cdf=null,_0x6ca28a={}){_0x56ced0[_0x321b('0x13a')]||(_0x56ced0[_0x321b('0x13a')]=_0x56ced0[_0x321b('0x2e')]),_0x56ced0[_0x321b('0x131')]=_0x555bc0['is'](_0x321b('0x78')),_0x4b7cdf=_0x4b7cdf||Nt(_0x56ced0);const _0x4808e2=_0x11087e[_0x321b('0xc9')](_0x5c201c=>jt(_0x5c201c,this[_0x321b('0xb5')])),_0x16f7a0=_0x555bc0['is'](_0x321b('0x78'))?_0x555bc0:jt(_0x555bc0,this[_0x321b('0xb5')]);if(_0x321b('0xdf')===this[_0x321b('0xc3')]){const _0x14bebf=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x66'),_0x4b7cdf,_0x321b('0xff'));return this['forceDefaultExecution'](()=>_0x14bebf([_0x16f7a0],_0x56ced0,_0x6ca28a)),null;}_0x4808e2[_0x321b('0xad')](_0x16f7a0);let _0x2bd18b=!0x0;for(const _0xb2c402 of _0x4808e2)if(!this['_rangeIsInLocalUserInsertion'](_0xb2c402)){_0x2bd18b=!0x1;break;}if(_0x2bd18b&&_0x321b('0x55')!==this[_0x321b('0xc3')]){const _0x372859=this[_0x321b('0x5f')][_0x321b('0x10a')]('formatBlock',_0x4b7cdf,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0x372859([_0x16f7a0],_0x56ced0,_0x6ca28a)),null;}let _0x4a6de3=null,_0x1f0b8f=_0x16f7a0[_0x321b('0xab')],_0x385921=_0x16f7a0[_0x321b('0x68')];for(const {suggestion:_0x488f36,meta:_0x29cc27}of this['_findSuggestions'](_0x16f7a0,_0x321b('0x66'))){if(!_0x29cc27['isOwn'])continue;if(_0x29cc27['isNextTo']||_0x29cc27[_0x321b('0xb8')]||_0x29cc27[_0x321b('0xfd')])continue;if(_0x488f36[_0x321b('0x42')][_0x321b('0x13a')]!=_0x56ced0['formatGroupId'])continue;if(!Ot(_0x488f36,_0x6ca28a))continue;const _0x2e2247=_0x488f36[_0x321b('0x29')]();if(_0x488f36[_0x321b('0x12a')]==_0x4b7cdf){if(_0x2e2247['containsRange'](_0x16f7a0,!0x0))return null;_0x1f0b8f=_0x1f0b8f[_0x321b('0x2f')](_0x2e2247[_0x321b('0xab')])?_0x1f0b8f:_0x2e2247['start'],_0x385921=_0x385921[_0x321b('0x49')](_0x2e2247[_0x321b('0x68')])?_0x385921:_0x2e2247[_0x321b('0x68')],_0x4a6de3?_0x2e2247[_0x321b('0xab')]['isBefore'](_0x4a6de3[_0x321b('0x29')]()[_0x321b('0xab')])?(_0x4a6de3['removeMarkers'](),_0x4a6de3=_0x488f36):_0x488f36['removeMarkers']():_0x4a6de3=_0x488f36;}else{const _0x3e73af=_0x16f7a0[_0x321b('0xc1')](_0x2e2247);this[_0x321b('0x1e')](_0x488f36,_0x3e73af);}}const _0x5501fc=this[_0x321b('0x113')][_0x321b('0xbc')][_0x321b('0xd5')]('Users')['me'],_0x20ba8c=_0xb98dc5(),_0x42746c=_0x5501fc['id'];if(_0x4a6de3)return this[_0x321b('0x7f')](_0x4a6de3,this[_0x321b('0xb5')][_0x321b('0x61')](_0x1f0b8f,_0x385921)),_0x4a6de3;{const _0x5d8ef4=this[_0x321b('0x43')]({'id':_0x20ba8c,'type':_0x321b('0x136')+_0x4b7cdf,'data':_0x56ced0,'createdAt':new Date(),'authorId':_0x42746c,'attributes':_0x6ca28a});return this[_0x321b('0x75')](_0x321b('0x136')+_0x4b7cdf,_0x20ba8c,_0x42746c,this[_0x321b('0xb5')]['createRange'](_0x1f0b8f,_0x385921)),_0x5d8ef4;}}[_0x321b('0xa5')](_0x5d18c5,_0x18cf81,_0x38ae6e=[],_0x57461d=null,_0x1612f0={}){_0x18cf81[_0x321b('0x13a')]||(_0x18cf81[_0x321b('0x13a')]=_0x18cf81[_0x321b('0x2e')]);const _0x1034d4=_0x5d18c5[0x0];_0x18cf81[_0x321b('0x131')]=_0x1034d4['is'](_0x321b('0x78')),_0x57461d=_0x57461d||Nt(_0x18cf81);const _0x29f1a2=_0x38ae6e[_0x321b('0xc9')](_0xc29970=>jt(_0xc29970,this['_model'])),_0x2424f2=_0x1034d4['is'](_0x321b('0x78'))?_0x5d18c5:_0x5d18c5[_0x321b('0xc9')](_0x2a7d7e=>jt(_0x2a7d7e,this['_model']));if(_0x321b('0xdf')===this[_0x321b('0xc3')]){const _0xea790b=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x66'),_0x57461d,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0xea790b(_0x2424f2,_0x18cf81,_0x1612f0)),null;}_0x29f1a2['push'](..._0x2424f2);let _0x102118=!0x0;for(const _0x5733de of _0x29f1a2)if(!this[_0x321b('0xf8')](_0x5733de)){_0x102118=!0x1;break;}if(_0x102118&&_0x321b('0x55')!==this['_trackFormatChanges']){const _0x597efe=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x66'),_0x57461d,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0x597efe(_0x2424f2,_0x18cf81,_0x1612f0)),null;}const _0x353fe3=this['editor'][_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0x133'))['me'];for(const _0x290041 of this['getSuggestions']()){if(_0x290041[_0x321b('0x14a')]['id']!=_0x353fe3['id'])continue;if(_0x321b('0x66')!=_0x290041[_0x321b('0x143')]||_0x290041['data'][_0x321b('0x13a')]!=_0x18cf81[_0x321b('0x13a')])continue;if(!Ot(_0x290041,_0x1612f0))continue;const _0x5b945b=_0x290041[_0x321b('0x12a')]==_0x57461d;for(let _0x2fb82d=0x0;_0x2fb82d<_0x2424f2[_0x321b('0x108')];_0x2fb82d++){const _0x372330=_0x2424f2[_0x2fb82d];for(const _0xcf7ee7 of _0x290041[_0x321b('0x67')]()){const _0x446cc7=_0xcf7ee7[_0x321b('0xec')]();if(_0x372330['isEqual'](_0x446cc7)){_0x5b945b?(_0x2424f2[_0x321b('0xd0')](_0x2fb82d,0x1),_0x2fb82d--):_0x290041[_0x321b('0x14')](_0xcf7ee7[_0x321b('0xfb')]);break;}}}}if(0x0==_0x2424f2[_0x321b('0x108')])return null;const _0x211774=this['_suggestionFactory'][_0x321b('0x10a')](_0x321b('0x66'),_0x57461d,_0x321b('0xdd'));for(const _0x11ccf7 of this[_0x321b('0x35')]())if(_0x11ccf7['author']['id']==_0x353fe3['id']&&_0x321b('0x66')==_0x11ccf7['type']&&_0x11ccf7['data'][_0x321b('0x13a')]==_0x18cf81['formatGroupId']&&_0x11ccf7[_0x321b('0x12a')]==_0x57461d&&Ot(_0x11ccf7,_0x1612f0)&&(_0x211774(_0x11ccf7[_0x321b('0xfc')](),_0x2424f2)||_0x211774(_0x2424f2,_0x11ccf7['getRanges']()))){for(const _0x11e043 of _0x2424f2)_0x11ccf7[_0x321b('0x92')](_0x11e043);return _0x11ccf7;}const _0xa7ac84=_0xb98dc5(),_0x1662b8=_0x353fe3['id'],_0x1b0d6c=_0x321b('0x136')+_0x57461d,_0x2737a3=this[_0x321b('0x43')]({'id':_0xa7ac84,'type':_0x1b0d6c,'data':_0x18cf81,'createdAt':new Date(),'authorId':_0x1662b8,'attributes':_0x1612f0});for(const _0x38959f of _0x2424f2)this['_addSuggestionMarker'](_0x1b0d6c,_0xa7ac84,_0x1662b8,_0x38959f,_0x33435c[_0x321b('0x24')]());return _0x2737a3;}[_0x321b('0x62')](_0x1029ec,_0x395991=null,_0x46b03a={}){if(_0x1029ec[_0x321b('0x60')])return null;const _0x56b9ed=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133'))['me'],_0x1abdff=new _0x236dbf(_0x1029ec['start'],_0x1029ec[_0x321b('0x68')]);for(const {suggestion:_0x45cddd,meta:_0x5f3d80}of this[_0x321b('0xc')](_0x1abdff,_0x321b('0xdb')))if(_0x5f3d80[_0x321b('0x6f')]&&!_0x5f3d80['isNextTo']){if(_0x45cddd['isMultiRange']){const _0x2d6516=_0x45cddd[_0x321b('0xfc')]()[_0x321b('0xc8')](_0x332483=>_0x321b('0x11c')!=_0x332483[_0x321b('0x1')][_0x321b('0x93')]);_0x2d6516[_0x321b('0x9b')](_0x2331c8=>_0x1abdff['containsRange'](_0x2331c8,!0x0))&&_0x45cddd[_0x321b('0x5')]();if(_0x2d6516[_0x321b('0x41')](_0x38bb8a=>_0x38bb8a[_0x321b('0x80')](_0x1abdff,!0x0))){const _0x598ead=this['_suggestionFactory'][_0x321b('0x10a')](_0x321b('0x109'),_0x395991,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0x598ead([_0x1abdff],null,_0x46b03a)),null;}}else{const _0x49b331=_0x1abdff[_0x321b('0xc1')](_0x45cddd[_0x321b('0x29')]());null!==_0x49b331&&_0x45cddd[_0x321b('0x122')]([_0x49b331],null,_0x46b03a);}}if(_0x1abdff['detach'](),_0x1abdff['isCollapsed']||_0x321b('0x11c')==_0x1abdff['root'][_0x321b('0x93')])return null;let _0x32433e=null,_0x23fcaf=_0x1abdff[_0x321b('0xab')],_0x23ce3d=_0x1abdff[_0x321b('0x68')];const _0x1d25d2=this[_0x321b('0xc')](_0x1abdff,_0x321b('0x109'));for(const {suggestion:_0x15c6fd,meta:_0x3b8bde}of _0x1d25d2){const _0x61b470=this[_0x321b('0xb5')]['createRange'](_0x23fcaf,_0x23ce3d);if(_0x3b8bde[_0x321b('0x6f')]&&(this[_0x321b('0xf0')]||!_0x3b8bde[_0x321b('0xb8')]&&!_0x3b8bde[_0x321b('0xfd')])){if(_0x15c6fd[_0x321b('0xac')]){if(!Ot(_0x15c6fd,_0x46b03a))continue;let _0x1a251f=!0x0;for(const _0x3d3af9 of _0x15c6fd[_0x321b('0xfc')]()){if(_0x3d3af9['containsRange'](_0x61b470,!0x0))return _0x15c6fd;_0x61b470['containsRange'](_0x3d3af9)||(_0x1a251f=!0x1);}_0x1a251f&&_0x15c6fd[_0x321b('0x5')]();}else{const _0x5b2ef6=_0x15c6fd[_0x321b('0x29')]();if(_0x5b2ef6[_0x321b('0x80')](_0x61b470,!0x0))return _0x15c6fd;if(!Ot(_0x15c6fd,_0x46b03a)){_0x61b470[_0x321b('0x80')](_0x5b2ef6)?_0x15c6fd[_0x321b('0x104')]():_0x5b2ef6[_0x321b('0x10')](_0x23fcaf)?_0x23fcaf=_0x5b2ef6[_0x321b('0x68')]:_0x5b2ef6[_0x321b('0x10')](_0x23ce3d)&&(_0x23ce3d=_0x5b2ef6['start']);continue;}_0x23fcaf=_0x23fcaf[_0x321b('0x2f')](_0x5b2ef6['start'])?_0x23fcaf:_0x5b2ef6['start'],_0x23ce3d=_0x23ce3d['isAfter'](_0x5b2ef6[_0x321b('0x68')])?_0x23ce3d:_0x5b2ef6['end'],_0x46b03a=Object[_0x321b('0x4c')]({},_0x15c6fd[_0x321b('0xe')]),_0x32433e?_0x5b2ef6[_0x321b('0xab')][_0x321b('0x2f')](_0x32433e[_0x321b('0x29')]()['start'])?(_0x32433e[_0x321b('0x104')](),_0x32433e=_0x15c6fd):_0x15c6fd['removeMarkers']():_0x32433e=_0x15c6fd;}}}if(_0x32433e)return this[_0x321b('0x7f')](_0x32433e,this[_0x321b('0xb5')]['createRange'](_0x23fcaf,_0x23ce3d)),_0x32433e;{const _0x3f4b57=_0xb98dc5(),_0x23e7e7=this[_0x321b('0xb5')][_0x321b('0x61')](_0x23fcaf,_0x23ce3d),_0x2be176=_0x56b9ed['id'],_0x2aa436=_0x395991?_0x321b('0x31')+_0x395991:_0x321b('0x109'),_0x492812=this[_0x321b('0x43')]({'id':_0x3f4b57,'type':_0x2aa436,'createdAt':new Date(),'authorId':_0x2be176,'attributes':_0x46b03a});return this['_addSuggestionMarker'](_0x2aa436,_0x3f4b57,_0x2be176,_0x23e7e7),_0x492812;}}[_0x321b('0x132')](_0x4d6684,_0x3e3e12=_0x321b('0x11f'),_0xddbe0f={}){const _0x257e44=this[_0x321b('0x113')][_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0x133'))['me'],_0x4c6588=_0x4d6684[_0x321b('0xc9')](_0x30421c=>new _0x236dbf(_0x30421c[_0x321b('0xab')],_0x30421c[_0x321b('0x68')])),_0x533360=new Set();for(const {suggestion:_0x42a219,meta:_0x5b4fda}of this[_0x321b('0xc')](_0x4c6588,_0x321b('0xdb')))_0x5b4fda['isOwn']&&!_0x5b4fda[_0x321b('0xdc')]&&_0x533360['add'](_0x42a219);for(const _0x302565 of _0x533360)if(_0x302565['isMultiRange']){const _0x127962=_0x302565[_0x321b('0xfc')]();(!_0x302565['attributes']||!_0x302565[_0x321b('0xe')][_0x321b('0x8f')])&&(_0x127962['every'](_0x13965b=>_0x4c6588[_0x321b('0x41')](_0x364582=>_0x364582[_0x321b('0x80')](_0x13965b,!0x0)))&&_0x302565[_0x321b('0x5')]());if(_0x4c6588[_0x321b('0x9b')](_0x59ed5d=>_0x127962[_0x321b('0x41')](_0x317654=>_0x317654[_0x321b('0x80')](_0x59ed5d,!0x0)))){const _0x5b3a31=this[_0x321b('0x5f')]['getSuggestionCallback'](_0x321b('0x109'),_0x3e3e12,_0x321b('0xff'));return this['forceDefaultExecution'](()=>_0x5b3a31(_0x4d6684,null,_0xddbe0f)),null;}}else{const _0x1da255=_0x302565[_0x321b('0x29')]();_0x4c6588[_0x321b('0x41')](_0x4de98a=>_0x4de98a[_0x321b('0x80')](_0x1da255,!0x0))&&_0x302565[_0x321b('0x5')]();if(_0x4c6588[_0x321b('0x9b')](_0x3e647f=>_0x1da255['containsRange'](_0x3e647f,!0x0))){const _0xe04808=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x109'),_0x3e3e12,_0x321b('0xff'));return this[_0x321b('0x11d')](()=>_0xe04808(_0x4c6588,null,_0xddbe0f)),null;}}const _0x504ce7=this[_0x321b('0x5f')][_0x321b('0x10a')](_0x321b('0x109'),_0x3e3e12,_0x321b('0xdd'));let _0x27611a=null;for(const _0x12cf91 of this[_0x321b('0x35')]())if(_0x12cf91[_0x321b('0x14a')]['id']==_0x257e44['id']&&_0x12cf91[_0x321b('0x34')]&&_0x321b('0x109')==_0x12cf91['type']&&_0x12cf91[_0x321b('0x12a')]==_0x3e3e12&&Ot(_0x12cf91,_0xddbe0f)&&(_0x504ce7(_0x12cf91[_0x321b('0xfc')](),_0x4c6588)||_0x504ce7(_0x4c6588,_0x12cf91['getRanges']()))){if(_0x27611a){if(_0x12cf91[_0x321b('0xe0')]&&_0x12cf91['commentThread'][_0x321b('0x108')])continue;for(const _0x54518a of _0x12cf91[_0x321b('0xfc')]())_0x27611a['isIntersectingWithRange'](_0x54518a)||_0x27611a[_0x321b('0x92')](_0x54518a);_0x12cf91[_0x321b('0x104')]();}else{_0x27611a=_0x12cf91;for(const _0x4c7eb7 of _0x4c6588)_0x12cf91[_0x321b('0x88')](_0x4c7eb7)||_0x12cf91[_0x321b('0x92')](_0x4c7eb7);}}if(_0x27611a)return _0x27611a;_0x533360['clear']();for(const {suggestion:_0x382f84,meta:_0x3c0552}of this['_findSuggestions'](_0x4c6588,_0x321b('0x109')))_0x3c0552['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c0552['containsRangeInObject']&&!_0x3c0552[_0x321b('0xfd')])&&Ot(_0x382f84,_0xddbe0f)&&_0x533360[_0x321b('0x129')](_0x382f84);for(const _0x1978fd of _0x533360){const _0x484553=_0x1978fd[_0x321b('0xfc')]();if(!_0xddbe0f||!_0xddbe0f['skipNestingCheck']){if(_0x4c6588[_0x321b('0x9b')](_0x307787=>_0x484553[_0x321b('0x41')](_0x1a76e4=>_0x1a76e4[_0x321b('0x80')](_0x307787,!0x0))))return _0x1978fd;}(!_0x1978fd['attributes']||!_0x1978fd[_0x321b('0xe')][_0x321b('0x8f')])&&(_0x484553[_0x321b('0x9b')](_0x1040bc=>_0x4c6588[_0x321b('0x41')](_0x3f4390=>_0x3f4390[_0x321b('0x80')](_0x1040bc,!0x0)))&&_0x1978fd[_0x321b('0x5')]());}const _0x256117=_0xb98dc5(),_0x5a527f=_0x257e44['id'],_0x51ee98=_0x321b('0x31')+_0x3e3e12,_0xe685b2=this['_setSuggestionData']({'id':_0x256117,'type':_0x51ee98,'createdAt':new Date(),'authorId':_0x5a527f,'attributes':_0xddbe0f});for(const _0x2256f5 of _0x4c6588)_0x2256f5['detach'](),_0x2256f5[_0x321b('0x60')]||_0x321b('0x11c')==_0x2256f5['root'][_0x321b('0x93')]||this[_0x321b('0x75')](_0x51ee98,_0x256117,_0x5a527f,_0x2256f5,_0x33435c[_0x321b('0x24')]());return _0xe685b2;}[_0x321b('0x7f')](_0x12967f,_0x45fc6e){const _0x23b6f3=_0x12967f[_0x321b('0x90')]();this[_0x321b('0xb5')][_0x321b('0xb')](_0x5e2426=>{_0x5e2426[_0x321b('0xb4')](_0x23b6f3,{'range':_0x45fc6e});});}[_0x321b('0x9c')](_0x53b48e){const _0x2eb982=_0x53b48e['id'],_0x24a1e2=this[_0x321b('0x113')][_0x321b('0x4d')][_0x321b('0xd5')](_0x321b('0x3e'));this['_commentsRepository'][_0x321b('0xa7')](_0x2eb982)||this[_0x321b('0x46')][_0x321b('0x5e')]({'channelId':_0x24a1e2,'threadId':_0x2eb982,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x71a6d4=this[_0x321b('0x46')][_0x321b('0x140')](_0x2eb982);_0x71a6d4[_0x321b('0x13d')]('isRemovable'),_0x71a6d4[_0x321b('0x44')]=!0x1,_0x53b48e[_0x321b('0xe0')]=_0x71a6d4;}['_checkSuggestionCorrectness'](_0x3d85aa,_0x7001a4,_0x28dd31,_0x218563){if(_0x3d85aa[_0x321b('0x143')]!=_0x7001a4||_0x3d85aa['subType']!=_0x28dd31||_0x3d85aa['creator']['id']!=_0x218563)throw this[_0x321b('0x113')][_0x321b('0x17')](_0x321b('0x4')),new _0x5e6c46('track-changes-suggestion-data-mismatch',this);}[_0x321b('0x1e')](_0x34fb89,_0x1975be){const _0x504b26=_0x34fb89['getFirstRange']();if(_0x1975be[_0x321b('0x6d')](_0x504b26))_0x34fb89[_0x321b('0x104')]();else{if(_0x504b26['containsRange'](_0x1975be)){const _0x114f63=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0xab')]['nodeBefore'],_0x321b('0x68'));this['_setSuggestionRange'](_0x34fb89,this[_0x321b('0xb5')][_0x321b('0x61')](_0x504b26['start'],_0x114f63));const _0x34c4e9=_0xb98dc5(),_0x1fd7df=_0x34fb89[_0x321b('0x8d')]['id'],_0x47c5b0=_0x34fb89[_0x321b('0x143')]+':'+_0x34fb89['subType'];this[_0x321b('0x43')]({'id':_0x34c4e9,'type':_0x47c5b0,'createdAt':new Date(),'authorId':_0x1fd7df,'data':_0x34fb89[_0x321b('0x42')],'attributes':_0x34fb89[_0x321b('0xe')]});const _0x4d0e31=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0x68')]['parent'],_0x321b('0x13')),_0x27124e=this['_model'][_0x321b('0x61')](_0x4d0e31,_0x504b26[_0x321b('0x68')]);this[_0x321b('0x75')](_0x47c5b0,_0x34c4e9,_0x1fd7df,_0x27124e);}else{if(_0x504b26['containsPosition'](_0x1975be[_0x321b('0xab')])){const _0x2835d1=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0xab')][_0x321b('0x52')],_0x321b('0x68'));this[_0x321b('0x7f')](_0x34fb89,this['_model'][_0x321b('0x61')](_0x504b26['start'],_0x2835d1));}else{const _0x1587dc=this[_0x321b('0xb5')][_0x321b('0xe6')](_0x1975be[_0x321b('0x68')]['parent'],_0x321b('0x13'));this[_0x321b('0x7f')](_0x34fb89,this['_model'][_0x321b('0x61')](_0x1587dc,_0x504b26[_0x321b('0x68')]));}}}}[_0x321b('0xf8')](_0x2acac6){for(const {suggestion:_0x185f63,meta:_0x42bb0a}of this[_0x321b('0xc')](_0x2acac6,_0x321b('0xdb'))){if(!_0x42bb0a[_0x321b('0x6f')])continue;const _0x5a7ff5=_0x185f63[_0x321b('0xfc')]();for(const _0x147023 of _0x5a7ff5)if(!_0x2acac6[_0x321b('0xf5')](_0x147023)['length'])return!0x0;}return!0x1;}[_0x321b('0x8a')](_0xfc1ede){const _0x25747f=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133'))[_0x321b('0x91')](_0xfc1ede);if(!_0x25747f)throw new _0x5e6c46(_0x321b('0xc7'),this);return _0x25747f;}['_getExternalAuthor'](_0x2b326f){const _0x46066d=this[_0x321b('0x113')][_0x321b('0xbc')]['get'](_0x321b('0x133')),_0x37cb79=_0x487437(_0x321b('0x19')+_0x2b326f),_0x5c592f=_0x46066d[_0x321b('0x91')](_0x37cb79);return _0x5c592f||_0x46066d[_0x321b('0x94')]({'id':_0x37cb79,'name':_0x2b326f});}[_0x321b('0xd1')](_0x40c7fb,_0x3342ec,_0x3d843d,_0x4b4dd8,_0x5ab4b9){const _0x107ca3=this[_0x321b('0x8a')](_0x4b4dd8),_0x5222ca=this['_suggestionFactory']['buildSuggestion'](_0x40c7fb,_0x3342ec,_0x3d843d,_0x107ca3,_0x5ab4b9,_0x2baa09=>this[_0x321b('0x18')](_0x3d843d,{'attributes':_0x2baa09}));return this[_0x321b('0xf1')](_0x5222ca,_0x321b('0xff'),()=>{this[_0x321b('0x18')](_0x3d843d,{'state':_0x321b('0xea')});},{'priority':_0x321b('0xaa')}),this['listenTo'](_0x5222ca,_0x321b('0x5'),()=>{this[_0x321b('0x18')](_0x3d843d,{'state':_0x321b('0x9e')});},{'priority':'high'}),this[_0x321b('0xb7')][_0x321b('0x12')](_0x3d843d,_0x5222ca),this[_0x321b('0xd9')][_0x321b('0x12')](_0x5222ca,_0x321b('0x14b')),_0x5222ca;}[_0x321b('0x70')](_0x3298bc){const _0x250c30=_0x3298bc[_0x321b('0xf4')](':');return{'group':_0x250c30[0x0],'type':_0x250c30[0x1],'subType':_0x250c30[_0x321b('0x108')]>=0x5?_0x250c30[0x2]:null,'id':_0x250c30[_0x321b('0x108')]<0x5?_0x250c30[0x2]:_0x250c30[0x3],'authorId':_0x250c30[_0x321b('0x108')]<0x5?_0x250c30[0x3]:_0x250c30[0x4],'markerCount':0x6==_0x250c30[_0x321b('0x108')]?_0x250c30[0x5]:null};}[_0x321b('0x81')](_0x56823e,_0x30c64d,_0x4c550d){const _0x4c8410=_0x56823e[_0x321b('0x29')](),_0x155b0d=_0x4c8410[_0x321b('0xab')],_0x10ee49=_0x4c8410[_0x321b('0x68')];this[_0x321b('0x7f')](_0x56823e,this[_0x321b('0xb5')]['createRange'](_0x155b0d,_0x30c64d));const _0x44df37=_0xb98dc5(),_0x2a6266=_0x56823e['creator']['id'],_0x43ce7c=_0x56823e['type']+(_0x56823e['subType']?':'+_0x56823e['subType']:'');this[_0x321b('0x43')]({'id':_0x44df37,'type':_0x43ce7c,'createdAt':new Date(),'authorId':_0x2a6266,'originalSuggestionId':_0x56823e['id'],'attributes':_0x56823e['attributes'],'data':_0x56823e[_0x321b('0x42')]}),_0x321b('0x66')==_0x56823e[_0x321b('0x143')]&&(_0x4c550d=this[_0x321b('0xb5')][_0x321b('0xfa')](_0x4c550d[_0x321b('0x8b')])),this[_0x321b('0x75')](_0x43ce7c,_0x44df37,_0x2a6266,this[_0x321b('0xb5')][_0x321b('0x61')](_0x4c550d,_0x10ee49));}[_0x321b('0xc')](_0x518264,_0x5eb1c4=null){const _0x5b27ca=[],_0x2bc4c9=this[_0x321b('0x113')][_0x321b('0xbc')][_0x321b('0xd5')](_0x321b('0x133'))['me'];Array[_0x321b('0x3f')](_0x518264)||(_0x518264=[_0x518264]);for(const _0x29e18b of this[_0x321b('0x35')]()){if(!_0x29e18b[_0x321b('0x34')])continue;if(_0x5eb1c4&&_0x29e18b['type']!=_0x5eb1c4)continue;let _0x1cea67=!0x1;for(const _0x4e5ceb of _0x29e18b[_0x321b('0xfc')]()){for(const _0x159285 of _0x518264){const _0x597960=_0x159285[_0x321b('0xab')][_0x321b('0x6d')](_0x4e5ceb[_0x321b('0x68')])||_0x159285[_0x321b('0x68')][_0x321b('0x6d')](_0x4e5ceb[_0x321b('0xab')]);if(_0x597960||_0x159285[_0x321b('0xc1')](_0x4e5ceb)){const _0x34ff63=_0x159285[_0x321b('0x80')](_0x4e5ceb)&&_t(this[_0x321b('0xb5')][_0x321b('0x79')],_0x4e5ceb[_0x321b('0xab')],_0x159285),_0x25f2d9=_0x4e5ceb[_0x321b('0x80')](_0x159285)&&_t(this['_model']['schema'],_0x159285[_0x321b('0xab')],_0x4e5ceb);_0x5b27ca[_0x321b('0xad')]({'suggestion':_0x29e18b,'meta':{'isOwn':_0x2bc4c9==_0x29e18b[_0x321b('0x14a')],'isNextTo':_0x597960,'isInsideObject':_0x34ff63,'containsRangeInObject':_0x25f2d9}}),_0x1cea67=!0x0;break;}}if(_0x1cea67)break;}}return _0x5b27ca;}[_0x321b('0x75')](_0x49927a,_0x515fe3,_0x13934a,_0x3f21d4,_0x120c0c){this['_model'][_0x321b('0xb')](_0x2aaebb=>{let _0x344a43=_0x321b('0x2')+_0x49927a+':'+_0x515fe3+':'+_0x13934a;_0x120c0c&&(_0x344a43=_0x344a43+':'+_0x120c0c),_0x2aaebb[_0x321b('0x110')](_0x344a43,{'range':_0x3f21d4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x321b('0x5b')](_0x3b70eb){const _0x54573e=_0x3b70eb['previous'],_0x5c0a6b=_0x3b70eb[_0x321b('0x22')];_0x3b70eb[_0x321b('0x126')]=null,null!=_0x54573e&&(_0x54573e[_0x321b('0x22')]=null),_0x3b70eb[_0x321b('0x22')]=null,null!=_0x5c0a6b&&(_0x5c0a6b[_0x321b('0x126')]=null),'ready'==this[_0x321b('0xd9')][_0x321b('0xd5')](_0x3b70eb)&&(this[_0x321b('0xd9')][_0x321b('0x12')](_0x3b70eb,_0x321b('0x128')),this[_0x321b('0x1d')]('suggestionUnloaded',_0x3b70eb,_0x54573e,_0x5c0a6b));}['_setSuggestionData'](_0x3f683f){const _0x4a693e=_0x3f683f['id'],_0x39bbd8=this[_0x321b('0x102')](_0x3f683f);if(this[_0x321b('0x71')]&&this[_0x321b('0x71')][_0x321b('0x63')]){const _0xb68a44=this[_0x321b('0x113')][_0x321b('0xbc')]['get']('PendingActions'),_0x2ec882=_0x39bbd8[_0x321b('0xf')],_0x1adde4=_0x39bbd8[_0x321b('0x12a')]?_0x39bbd8['type']+':'+_0x39bbd8[_0x321b('0x12a')]:_0x39bbd8[_0x321b('0x143')],_0x3d9ed6=this['editor'][_0x321b('0x15')],_0xfd133d=_0xb68a44[_0x321b('0x129')](_0x7e15ee(_0x3d9ed6,_0x321b('0x47'))),_0x5afb66={'id':_0x4a693e,'type':_0x1adde4,'hasComments':_0x2ec882,'data':_0x3f683f[_0x321b('0x42')]||null,'originalSuggestionId':_0x3f683f['originalSuggestionId']||null,'attributes':_0x39bbd8[_0x321b('0xe')]};this[_0x321b('0x71')][_0x321b('0x63')](_0x5afb66)[_0x321b('0x13b')](_0xaa09b1=>{_0x39bbd8[_0x321b('0x10c')]=!0x0,_0xb68a44['remove'](_0xfd133d),_0xaa09b1&&_0xaa09b1[_0x321b('0x130')]&&(this[_0x321b('0xb7')]['get'](_0x4a693e)['createdAt']=_0xaa09b1['createdAt']);})[_0x321b('0x9f')](_0x3980ef=>{throw _0x3f53b3(_0x321b('0x50')),this[_0x321b('0x113')][_0x321b('0x10f')][_0x321b('0x148')]({'isUndoable':!0x1},()=>{_0x39bbd8[_0x321b('0x5')]();}),_0x39bbd8[_0x321b('0x27')](),this['_suggestions'][_0x321b('0x56')](_0x39bbd8['id']),this[_0x321b('0xd9')][_0x321b('0x56')](_0x39bbd8),_0x3980ef;});}return _0x39bbd8;}[_0x321b('0x18')](_0x570907,_0x4ec627){const _0x5297ee=this[_0x321b('0x113')]['plugins'][_0x321b('0xd5')]('PendingActions'),_0xeeb20f=this[_0x321b('0x33')](_0x570907);if(this[_0x321b('0x71')]&&this['_adapter'][_0x321b('0xef')]){if(_0xeeb20f['_saved']){const _0x5efcce=_0x5297ee[_0x321b('0x129')](_0x7e15ee(this[_0x321b('0x113')][_0x321b('0x15')],_0x321b('0x47')));this[_0x321b('0x71')]['updateSuggestion'](_0x570907,_0x4ec627)['then'](()=>{_0x5297ee[_0x321b('0x3a')](_0x5efcce);});}else _0xeeb20f['on']('change:_saved',()=>{this[_0x321b('0x18')](_0x570907,_0x4ec627);});}}[_0x321b('0x123')](_0x42eefa){if(!this[_0x321b('0x71')]||!this['_adapter'][_0x321b('0x33')])throw new _0x5e6c46('track-changes-adapter-missing-getsuggestion',this);return this[_0x321b('0x71')][_0x321b('0x33')](_0x42eefa);}[_0x321b('0x7a')](_0x584829){const {id:_0x5b8ec3,type:_0x50c098,subType:_0x5884d3,authorId:_0x107b08}=this['_splitMarkerName'](_0x584829),_0x95e370=this[_0x321b('0xb7')]['get'](_0x5b8ec3)||this[_0x321b('0xd1')](_0x50c098,_0x5884d3,_0x5b8ec3,_0x107b08,{});switch(this[_0x321b('0xae')](_0x95e370,_0x50c098,_0x5884d3,_0x107b08),this[_0x321b('0xd9')][_0x321b('0xd5')](_0x95e370)){case'notReady':this[_0x321b('0x123')](_0x5b8ec3)['then'](_0x24aa13=>{let _0x18630a=Promise[_0x321b('0x12e')]();_0x24aa13['hasComments']&&(_0x18630a=this['_commentsRepository'][_0x321b('0xa2')]({'channelId':this[_0x321b('0x113')]['config'][_0x321b('0xd5')](_0x321b('0x3e')),'threadId':_0x5b8ec3})),_0x18630a[_0x321b('0x13b')](()=>{this[_0x321b('0x102')](_0x24aa13)[_0x321b('0x10c')]=!0x0;});}),this[_0x321b('0xd9')][_0x321b('0x12')](_0x95e370,_0x321b('0x114'));break;case _0x321b('0x128'):this[_0x321b('0x18')](_0x5b8ec3,{'state':_0x321b('0x64')});case _0x321b('0x72'):this[_0x321b('0xd9')][_0x321b('0x12')](_0x95e370,_0x321b('0xde')),this['fire'](_0x321b('0x147'),_0x95e370);break;case'ready':this[_0x321b('0x1d')](_0x321b('0x28'),_0x95e370);}return _0x95e370[_0x321b('0x144')](_0x584829),_0x95e370;}[_0x321b('0x13e')](_0x1ac5c4){const _0x223635=Array[_0x321b('0x121')](_0x1ac5c4)[_0x321b('0xc8')](_0x4324e2=>!_0x4324e2[_0x321b('0xac')]),_0x186ecc=this[_0x321b('0x35')]({'skipNotAttached':!0x0})['filter'](_0x53ca10=>!_0x53ca10[_0x321b('0xac')]),_0x5e1f5e=_0x186ecc['filter'](_0x2b732d=>!_0x1ac5c4[_0x321b('0xcb')](_0x2b732d)),_0x175bfb=new Map(_0x186ecc['map'](_0x55851d=>[_0x55851d,this[_0x321b('0x5f')][_0x321b('0x10a')](_0x55851d[_0x321b('0x143')],_0x55851d[_0x321b('0x12a')],'chain')])),_0x194a92=new Map(_0x186ecc[_0x321b('0xc9')](_0x56d841=>[_0x56d841,_0x56d841[_0x321b('0x29')]()])),_0x1dbf61=new Set(),_0x3fd80f=new Set();for(let _0x19a116=0x0;_0x19a116<_0x223635['length'];_0x19a116++)_0x22ccef(_0x223635[_0x19a116],_0x223635,_0x19a116+0x1);for(let _0x53c5ec=0x0;_0x53c5ec<_0x223635[_0x321b('0x108')];_0x53c5ec++)_0x22ccef(_0x223635[_0x53c5ec],_0x5e1f5e,0x0);for(let _0x5b95b0=0x0;_0x5b95b0<_0x223635[_0x321b('0x108')];_0x5b95b0++){const _0x38f8c6=_0x223635[_0x5b95b0];!_0x3fd80f[_0x321b('0xcb')](_0x38f8c6)&&_0x38f8c6['previous']&&(_0x38f8c6[_0x321b('0x126')][_0x321b('0x22')]===_0x38f8c6&&(_0x38f8c6[_0x321b('0x126')][_0x321b('0x22')]=null),_0x38f8c6[_0x321b('0x126')]=null),!_0x1dbf61[_0x321b('0xcb')](_0x38f8c6)&&_0x38f8c6[_0x321b('0x22')]&&(_0x38f8c6[_0x321b('0x22')][_0x321b('0x126')]===_0x38f8c6&&(_0x38f8c6[_0x321b('0x22')][_0x321b('0x126')]=null),_0x38f8c6['next']=null);}function _0x22ccef(_0x700805,_0x174a5f,_0x2de987){for(let _0x112f3d=_0x2de987;_0x112f3d<_0x174a5f[_0x321b('0x108')];_0x112f3d++){const _0x1b0e5c=_0x134c0d(_0x700805,_0x174a5f[_0x112f3d]);_0x1b0e5c&&(_0x1b0e5c[0x0][_0x321b('0x22')]=_0x1b0e5c[0x1],_0x1b0e5c[0x1][_0x321b('0x126')]=_0x1b0e5c[0x0],_0x1dbf61[_0x321b('0x129')](_0x1b0e5c[0x0]),_0x3fd80f['add'](_0x1b0e5c[0x1]));}}function _0x134c0d(_0x5b673d,_0x2c7712){if(_0x5b673d[_0x321b('0x14a')]['id']!==_0x2c7712[_0x321b('0x14a')]['id'])return null;const _0x5d65e4=_0x175bfb[_0x321b('0xd5')](_0x5b673d)(_0x5b673d,_0x2c7712,_0x194a92[_0x321b('0xd5')](_0x5b673d),_0x194a92[_0x321b('0xd5')](_0x2c7712));if(!_0x5d65e4)return null;return _0x175bfb['get'](_0x2c7712)(_0x5b673d,_0x2c7712,_0x194a92[_0x321b('0xd5')](_0x5b673d),_0x194a92[_0x321b('0xd5')](_0x2c7712))?_0x5d65e4[0x1]['commentThread']&&_0x5d65e4[0x1]['commentThread']['length']?null:_0x5d65e4:null;}}[_0x321b('0xe9')](_0x275845){const _0x4505a9=Array[_0x321b('0x121')](_0x275845),_0xcf4e19=this['getSuggestions']({'skipNotAttached':!0x0}),_0x36e415=_0xcf4e19[_0x321b('0xc8')](_0x3c2f7d=>!_0x275845['has'](_0x3c2f7d)),_0x4778a0=new Map(_0x4505a9['map'](_0x406738=>[_0x406738,this[_0x321b('0x5f')][_0x321b('0x10a')](_0x406738[_0x321b('0x143')],_0x406738[_0x321b('0x12a')],_0x321b('0xdd'))])),_0x2c2126=new Map(_0xcf4e19[_0x321b('0xc9')](_0x287879=>[_0x287879,_0x287879[_0x321b('0xfc')]()]));for(let _0x4aa469=0x0;_0x4aa469<_0x4505a9[_0x321b('0x108')];_0x4aa469++){if(_0x3df4cd(this,_0x4505a9[_0x4aa469],_0x4505a9,_0x4aa469+0x1))return!0x0;}for(let _0x32664e=0x0;_0x32664e<_0x4505a9['length'];_0x32664e++){if(_0x3df4cd(this,_0x4505a9[_0x32664e],_0x36e415,0x0))return!0x0;}return!0x1;function _0x3df4cd(_0x7bf89,_0x335d00,_0x4856ab,_0x530fae){for(let _0x4b9d95=_0x530fae;_0x4b9d95<_0x4856ab[_0x321b('0x108')];_0x4b9d95++){const _0x3852fa=_0x4856ab[_0x4b9d95];if(_0x3852fa[_0x321b('0x143')]!==_0x335d00[_0x321b('0x143')]||_0x3852fa[_0x321b('0x14a')]['id']!==_0x335d00[_0x321b('0x14a')]['id']||_0x3852fa['subType']!==_0x335d00[_0x321b('0x12a')])continue;if(!Ut(_0x335d00,_0x3852fa))continue;const _0x49d622=_0x4778a0[_0x321b('0xd5')](_0x335d00),_0x4b7ae1=_0x2c2126[_0x321b('0xd5')](_0x335d00),_0x149270=_0x2c2126[_0x321b('0xd5')](_0x3852fa),_0x4fb6c1=_0x335d00[_0x321b('0xe0')]&&_0x335d00[_0x321b('0xe0')][_0x321b('0x108')],_0x4eafe2=_0x3852fa[_0x321b('0xe0')]&&_0x3852fa['commentThread'][_0x321b('0x108')];if(!_0x4fb6c1&&_0x49d622(_0x149270,_0x4b7ae1))return _0x7bf89[_0x321b('0xb6')](_0x3852fa,_0x335d00),_0x2c2126[_0x321b('0x56')](_0x335d00),!0x0;if(!_0x4eafe2&&_0x49d622(_0x4b7ae1,_0x149270))return _0x7bf89[_0x321b('0xb6')](_0x335d00,_0x3852fa),_0x2c2126[_0x321b('0x56')](_0x3852fa),!0x0;}return!0x1;}}[_0x321b('0xb6')](_0x50b471,_0x2ec12e){if(_0x50b471[_0x321b('0xac')])for(const _0x10ccc4 of _0x2ec12e['getRanges']())_0x50b471['addRange'](_0x10ccc4);else{const _0x580aca=_0x2ec12e[_0x321b('0x29')]()[_0x321b('0x68')];this[_0x321b('0x7f')](_0x50b471,this[_0x321b('0xb5')]['createRange'](_0x50b471[_0x321b('0x29')]()['start'],_0x580aca));}_0x2ec12e['removeMarkers']();}}class Bt{constructor(_0x1cc07e){this['_editor']=_0x1cc07e,this[_0x321b('0xb5')]=_0x1cc07e[_0x321b('0x10f')],this['_customCallbacks']=new Map(),this[_0x321b('0x53')]=new Map(),this[_0x321b('0xeb')]();}[_0x321b('0xa8')](_0x3892d8,_0xce5b06,_0x5b75d7,_0x260ac4,_0x11bd57,_0x573b7a){return new _0x33435c(this[_0x321b('0xb5')],{'type':_0x3892d8,'subType':_0xce5b06,'id':_0x5b75d7,'author':_0x260ac4,'creator':_0x260ac4,'attributes':_0x11bd57,'onAttributesChange':_0x573b7a,'onAccept':(..._0x283b92)=>this[_0x321b('0x10a')](_0x3892d8,_0xce5b06,_0x321b('0xff'))(..._0x283b92),'onDiscard':(..._0x4942c9)=>this[_0x321b('0x10a')](_0x3892d8,_0xce5b06,'discard')(..._0x4942c9)});}[_0x321b('0x39')](_0xb633c7,_0x2e6b33,_0x2ef2aa,_0x11461e){const _0x2301c2=_0xb633c7+':'+_0x2e6b33+':'+_0x2ef2aa;this['_customCallbacks'][_0x321b('0x12')](_0x2301c2,_0x11461e);}[_0x321b('0x10a')](_0x9189da,_0x5b9ea7,_0x1cfe81){const _0x3ba4bf=_0x9189da+':'+_0x5b9ea7+':'+_0x1cfe81;return this[_0x321b('0xa9')][_0x321b('0xd5')](_0x3ba4bf)||this['_defaultCallbacks'][_0x321b('0xd5')](_0x9189da+':'+_0x1cfe81);}[_0x321b('0xeb')](){const _0xfcf486=()=>!0x1,_0x11498b=_0x26a31f=>{_0x26a31f['sort']((_0x586620,_0x636366)=>_0x586620[_0x321b('0xab')]['isBefore'](_0x636366[_0x321b('0xab')])?0x1:-0x1),this['_model'][_0x321b('0xb')](_0x34eaae=>{for(const _0x191b1f of _0x26a31f){let _0x1c5ea7;_0x1c5ea7=_0x191b1f[_0x321b('0x68')][_0x321b('0x101')]&&_0x191b1f[_0x321b('0x68')][_0x321b('0x8b')]==_0x191b1f[_0x321b('0xab')]['nodeAfter']?_0x34eaae[_0x321b('0xa4')](_0x191b1f[_0x321b('0xab')][_0x321b('0x87')],'on'):_0x34eaae[_0x321b('0xa4')](_0x191b1f),this[_0x321b('0xb5')][_0x321b('0x10e')](_0x1c5ea7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5eb918=(_0x4e79c9,_0x8e2124)=>{this[_0x321b('0xb5')][_0x321b('0xb')](_0x45d5a3=>{const {commandName:_0x1cd4dc,commandParams:_0x4c4579=[]}=_0x8e2124,_0x4d0da0=_0x4e79c9[_0x321b('0xc9')](_0x403a06=>(Mt(_0x403a06)&&(_0x403a06=this[_0x321b('0xb5')][_0x321b('0x61')](_0x403a06['end'])),_0x403a06))[_0x321b('0xc8')](_0x3dc2de=>_0x321b('0x11c')!==_0x3dc2de[_0x321b('0x1')]['rootName']);if(_0x4d0da0[_0x321b('0x108')]<0x1)return;const _0x43be94=Array['from'](this[_0x321b('0xb5')][_0x321b('0xd')]['selection'][_0x321b('0xfc')]())[_0x321b('0xc9')](_0x4fd7c6=>_0x236dbf[_0x321b('0x96')](_0x4fd7c6));_0x45d5a3[_0x321b('0x3c')](_0x4d0da0);for(const _0x33fc5e of this[_0x321b('0x69')]['commands']['commands']())_0x33fc5e[_0x321b('0x100')]();_0x4c4579[_0x321b('0xad')]({'forceDefaultExecution':!0x0}),this[_0x321b('0x69')][_0x321b('0x138')](_0x1cd4dc,..._0x4c4579);const _0x2f9cbe=_0x43be94['filter'](_0x5e776b=>_0x321b('0x11c')!=_0x5e776b['root'][_0x321b('0x93')]);_0x2f9cbe[_0x321b('0x108')]>0x0&&_0x45d5a3['setSelection'](_0x2f9cbe);for(const _0x45a5c6 of _0x43be94)_0x45a5c6[_0x321b('0x120')]();});},_0xdfec37=(_0x10b74a,_0x4aaab0)=>0x1==_0x10b74a[_0x321b('0x108')]&&0x1==_0x4aaab0[_0x321b('0x108')]&&_0x10b74a[0x0]['end'][_0x321b('0x6d')](_0x4aaab0[0x0][_0x321b('0xab')]),_0x10cf8a=(_0x59f181,_0x204a12,_0x2fbe0a,_0x2308b9)=>xt(_0x59f181,_0x204a12,_0x2fbe0a,_0x2308b9,this[_0x321b('0xb5')])?[_0x59f181,_0x204a12]:xt(_0x204a12,_0x59f181,_0x2308b9,_0x2fbe0a,this['_model'])?[_0x204a12,_0x59f181]:null;this[_0x321b('0x53')]['set'](_0x321b('0x12f'),_0xfcf486),this[_0x321b('0x53')]['set']('insertion:discard',_0x11498b),this['_defaultCallbacks'][_0x321b('0x12')](_0x321b('0xca'),_0xdfec37),this[_0x321b('0x53')]['set'](_0x321b('0x8c'),_0x10cf8a),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x4e'),_0x11498b),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x8'),_0xfcf486),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x103'),_0xdfec37),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0xc2'),_0x10cf8a),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x86'),_0x5eb918),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x45'),_0xfcf486),this[_0x321b('0x53')]['set'](_0x321b('0x1c'),_0xdfec37),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0xda'),_0xfcf486),this[_0x321b('0x53')]['set'](_0x321b('0x11'),_0x5eb918),this[_0x321b('0x53')][_0x321b('0x12')](_0x321b('0x9a'),_0xfcf486),this['_defaultCallbacks'][_0x321b('0x12')](_0x321b('0x146'),_0xdfec37),this['_defaultCallbacks'][_0x321b('0x12')](_0x321b('0x105'),_0xfcf486);}}function _t(_0x36ee35,_0x5b912c,_0x33b634){for(const _0x30ff29 of _0x5b912c['parent'][_0x321b('0x82')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x30ff29[_0x321b('0x1')]==_0x30ff29)return!0x1;if(!_0x33b634[_0x321b('0x116')](_0x30ff29))return!0x1;if(_0x36ee35['isObject'](_0x30ff29)||_0x36ee35[_0x321b('0x106')](_0x30ff29))return!0x0;}return!0x1;}function Mt(_0x45674f){return _0x45674f['end'][_0x321b('0x8b')]==_0x45674f[_0x321b('0xab')][_0x321b('0x87')]&&_0x45674f[_0x321b('0x68')][_0x321b('0xce')];}function $t(_0x3e2b87,_0x4fd034,_0x2d271c,_0x2201ad){const _0x470ce9=_0x58da4d=>!_0x58da4d[_0x321b('0x3b')]['is'](_0x321b('0x84'))&&!_0x2201ad[_0x321b('0x21')](_0x58da4d[_0x321b('0x3b')]),_0x174b21=_0x3e2b87[_0x321b('0xab')][_0x321b('0x149')](_0x470ce9),_0x4f7a66=_0x3e2b87['end'][_0x321b('0x149')](_0x470ce9,{'direction':_0x321b('0x54')});return(!_0x3e2b87[_0x321b('0xab')][_0x321b('0x6d')](_0x174b21)||!_0x3e2b87['end']['isEqual'](_0x4f7a66))&&(_0x174b21[_0x321b('0x2f')](_0x4f7a66)?_0x2d271c[_0x321b('0xb4')](_0x4fd034,{'range':_0x2d271c['createRange'](_0x174b21,_0x4f7a66)}):_0x2d271c[_0x321b('0x14')](_0x4fd034),!0x0);}function Nt(_0x3fe3ef){return _0x487437(_0x3fe3ef);}function Rt(_0x434dd1){const _0x11277c=_0x434dd1[_0x321b('0xab')]['nodeAfter'];return _0x11277c&&_0x11277c['is']('element');}function jt(_0x60e410,_0x4bfd18){const _0xdf0b36=_0x4bfd18[_0x321b('0x79')][_0x321b('0x21')](_0x60e410)||_0x4bfd18[_0x321b('0x79')]['isSelectable'](_0x60e410);return _0x4bfd18['createRange'](_0x4bfd18[_0x321b('0xe6')](_0x60e410,_0x321b('0xf6')),_0xdf0b36?_0x4bfd18[_0x321b('0x6c')](_0x60e410):_0x4bfd18[_0x321b('0xe6')](_0x60e410,_0x321b('0x68')));}function xt(_0x922478,_0x39fbc9,_0x3005a1,_0xda2e92,_0x4b85ca){if(!Ut(_0x922478,_0x39fbc9))return!0x1;if(_0x3005a1[_0x321b('0x68')]['isEqual'](_0xda2e92[_0x321b('0xab')]))return!0x0;if(_0x922478[_0x321b('0x143')]!=_0x39fbc9[_0x321b('0x143')])return!0x1;if(!_0x3005a1[_0x321b('0x68')]['isTouching'](_0xda2e92[_0x321b('0xab')]))return!0x1;const _0x593af3=_0x4b85ca[_0x321b('0x61')](_0x3005a1[_0x321b('0x68')],_0xda2e92['start'])[_0x321b('0x1b')]();for(const _0x42e0b6 of _0x593af3)if([_0x321b('0xd7'),_0x321b('0x7d')][_0x321b('0x135')](_0x42e0b6['type'])&&_0x4b85ca[_0x321b('0x79')]['isLimit'](_0x42e0b6[_0x321b('0x3b')]))return!0x1;return!0x0;}function Ut(_0x30b66d,_0x2fb977){return!(!_0x30b66d[_0x321b('0x10d')]||!_0x2fb977['_isDataLoaded'])&&_0x49a32e(_0x30b66d['attributes'],_0x2fb977[_0x321b('0xe')]);}function Ot(_0x1b2866,_0x31db03){const _0x5515f6=Et(_0x1b2866[_0x321b('0xe')]),_0x5173d9=Et(_0x31db03);if(!_0x1b2866[_0x321b('0x10d')])return!0x1;for(const _0x2ea665 of Object[_0x321b('0xe5')](_0x5173d9))if(!_0x49a32e(_0x5515f6[_0x2ea665],_0x5173d9[_0x2ea665]))return!0x1;return!0x0;}function Et(_0x569fc3){const _0x4d47c9=Object[_0x321b('0x4c')]({},_0x569fc3);return delete _0x4d47c9[_0x321b('0x8f')],delete _0x4d47c9[_0x321b('0x48')],_0x4d47c9;}
|
|
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;}}
|