@ckeditor/ckeditor5-track-changes 38.2.0-alpha.0 → 39.0.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/README.md +0 -1
- package/build/track-changes.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/sq.js +1 -0
- package/lang/translations/gl.po +23 -23
- package/lang/translations/sq.po +487 -0
- package/package.json +4 -5
- package/src/augmentation.d.ts +4 -0
- package/src/augmentation.js +1 -1
- package/src/commands/acceptsuggestioncommand.d.ts +4 -0
- package/src/commands/acceptsuggestioncommand.js +2 -2
- package/src/commands/discardsuggestioncommand.d.ts +4 -0
- package/src/commands/discardsuggestioncommand.js +2 -2
- package/src/commands/executeonallsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonallsuggestionscommand.js +2 -2
- package/src/commands/executeonselectedsuggestionscommand.d.ts +4 -0
- package/src/commands/executeonselectedsuggestionscommand.js +2 -2
- package/src/commands/trackchangescommand.d.ts +4 -0
- package/src/commands/trackchangescommand.js +2 -2
- package/src/index.d.ts +4 -0
- package/src/index.js +1 -1
- package/src/integrations/alignment.d.ts +4 -0
- package/src/integrations/alignment.js +2 -2
- package/src/integrations/basicstyles.d.ts +4 -0
- package/src/integrations/basicstyles.js +2 -2
- package/src/integrations/blockquote.d.ts +4 -0
- package/src/integrations/blockquote.js +2 -2
- package/src/integrations/ckbox.d.ts +4 -0
- package/src/integrations/ckbox.js +2 -2
- package/src/integrations/codeblock.d.ts +4 -0
- package/src/integrations/codeblock.js +2 -2
- package/src/integrations/comments.d.ts +4 -0
- package/src/integrations/comments.js +2 -2
- package/src/integrations/deletecommand.d.ts +4 -0
- package/src/integrations/deletecommand.js +2 -2
- package/src/integrations/documentlist.d.ts +4 -0
- package/src/integrations/documentlist.js +2 -2
- package/src/integrations/documentlistproperties.d.ts +4 -0
- package/src/integrations/documentlistproperties.js +2 -2
- package/src/integrations/entercommand.d.ts +4 -0
- package/src/integrations/entercommand.js +2 -2
- package/src/integrations/findandreplace.d.ts +4 -0
- package/src/integrations/findandreplace.js +2 -2
- package/src/integrations/font.d.ts +4 -0
- package/src/integrations/font.js +2 -2
- package/src/integrations/formatpainter.d.ts +4 -0
- package/src/integrations/formatpainter.js +2 -2
- package/src/integrations/heading.d.ts +4 -0
- package/src/integrations/heading.js +2 -2
- package/src/integrations/highlight.d.ts +4 -0
- package/src/integrations/highlight.js +2 -2
- package/src/integrations/horizontalline.d.ts +4 -0
- package/src/integrations/horizontalline.js +2 -2
- package/src/integrations/htmlembed.d.ts +4 -0
- package/src/integrations/htmlembed.js +2 -2
- package/src/integrations/image.d.ts +4 -0
- package/src/integrations/image.js +2 -2
- package/src/integrations/imagereplace.d.ts +4 -0
- package/src/integrations/imagereplace.js +2 -2
- package/src/integrations/importword.d.ts +4 -0
- package/src/integrations/importword.js +2 -2
- package/src/integrations/indent.d.ts +4 -0
- package/src/integrations/indent.js +2 -2
- package/src/integrations/inputcommand.d.ts +4 -0
- package/src/integrations/inputcommand.js +2 -2
- package/src/integrations/link.d.ts +4 -0
- package/src/integrations/link.js +2 -2
- package/src/integrations/list.d.ts +4 -0
- package/src/integrations/list.js +2 -2
- package/src/integrations/listproperties.d.ts +4 -0
- package/src/integrations/listproperties.js +2 -2
- package/src/integrations/mediaembed.d.ts +4 -0
- package/src/integrations/mediaembed.js +2 -2
- package/src/integrations/mention.d.ts +4 -0
- package/src/integrations/mention.js +2 -2
- package/src/integrations/pagebreak.d.ts +4 -0
- package/src/integrations/pagebreak.js +2 -2
- package/src/integrations/paragraph.d.ts +4 -0
- package/src/integrations/paragraph.js +2 -2
- package/src/integrations/removeformat.d.ts +4 -0
- package/src/integrations/removeformat.js +2 -2
- package/src/integrations/restrictededitingmode.d.ts +4 -0
- package/src/integrations/restrictededitingmode.js +2 -2
- package/src/integrations/shiftentercommand.d.ts +4 -0
- package/src/integrations/shiftentercommand.js +2 -2
- package/src/integrations/standardeditingmode.d.ts +4 -0
- package/src/integrations/standardeditingmode.js +2 -2
- package/src/integrations/style.d.ts +4 -0
- package/src/integrations/style.js +2 -2
- package/src/integrations/table.d.ts +4 -0
- package/src/integrations/table.js +2 -2
- package/src/integrations/tablecaption.d.ts +4 -0
- package/src/integrations/tablecaption.js +2 -2
- package/src/integrations/tableclipboard.d.ts +2 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.d.ts +4 -0
- package/src/integrations/tablecolumnresize.js +2 -2
- package/src/integrations/tableheadings.d.ts +4 -0
- package/src/integrations/tableheadings.js +2 -2
- package/src/integrations/tablemergesplit.d.ts +4 -0
- package/src/integrations/tablemergesplit.js +2 -2
- package/src/integrations/tableofcontents.d.ts +4 -0
- package/src/integrations/tableofcontents.js +2 -2
- package/src/integrations/tableproperties.d.ts +4 -0
- package/src/integrations/tableproperties.js +2 -2
- package/src/integrations/template.d.ts +4 -0
- package/src/integrations/template.js +2 -2
- package/src/integrations/title.d.ts +4 -0
- package/src/integrations/title.js +2 -2
- package/src/integrations/undo.d.ts +4 -0
- package/src/integrations/undo.js +2 -2
- package/src/integrations/utils.d.ts +4 -0
- package/src/integrations/utils.js +2 -2
- package/src/suggestion.d.ts +11 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.d.ts +14 -2
- package/src/suggestiondescriptionfactory.js +2 -2
- package/src/trackchanges.d.ts +4 -0
- package/src/trackchanges.js +2 -2
- package/src/trackchangesconfig.d.ts +4 -0
- package/src/trackchangesconfig.js +1 -1
- package/src/trackchangesdata.d.ts +6 -2
- package/src/trackchangesdata.js +2 -2
- package/src/trackchangesediting.d.ts +4 -0
- package/src/trackchangesediting.js +2 -2
- package/src/trackchangesui.d.ts +4 -0
- package/src/trackchangesui.js +2 -2
- package/src/ui/suggestioncontroller.d.ts +2 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +4 -0
- package/src/ui/view/basesuggestionthreadview.js +2 -2
- package/src/ui/view/suggestionthreadview.d.ts +2 -2
- package/src/ui/view/suggestionthreadview.js +2 -2
- package/src/utils/common-translations.d.ts +4 -0
- package/src/utils/common-translations.js +2 -2
- package/src/utils/utils.d.ts +4 -0
- package/src/utils/utils.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x55ff=['removeAttribute','has','applyOperation','nodeBefore','getCustomProperty','authorName','requires','addComment','isInContent','accept','formatBlock:join','deletion:accept','join','insertion:accept','createPositionAt','next','mapper','acceptAllSuggestions','_findSuggestions','notReady','discard','createdAt','element','fetchCommentThread','document','TrackChangesEditing','buildSuggestion','dataDowncast','ck-suggestion-marker-formatBlock','addSuggestionData','rootName','addMarker','includes','track-changes-command-not-found','markerName','isOwn','getChanges','_model','conversion','model','add','always','getRanges','refresh','ck-suggestion-marker-','createRange','clear','PENDING_ACTION_SUGGESTION','listenTo','bindElementToMarker','createSelection','PendingActions','locale','toViewElement','_joinSuggestions','high','map','Users','head','_setSuggestionData','hasCommentThread','getFirstRange','differ','parent','formatGroupId','every','consume','substr','adapter','createRangeIn','setAttribute','fire','showSuggestionHighlights','_joinWithAdjacentSuggestions','elementStart','reconvertMarker','addMarkerName','suggestion','updateMarker','deletion','commentThread','markers','_splitMarkerName','formatInline:chain','_editor','size','backward','batch','marker-count','getUser','execute','_addThreadToSuggestion','ck-suggestion-marker','formatBlock:discard','delete','trackChangesCommand','before','discardAllSuggestions','discardSuggestion','insertion:chain','data','markMultiRangeBlockFormat','markBlockFormat','nodeAfter','isMultiRange','acceptSuggestion','isExternal','_rangeIsInLocalUserInsertion','markerToData','markerNameToElements','init','containsRangeInObject','formatInline','start','_saved','track-changes-suggestion-not-found','values','external:','addSuggestion','isBlock','insertion','removeMarkers','stop','_breakSuggestionMarker','containsRange','newRange','_adapter','position','change:data','isAtStart','CommentsRepository','addClass','ready','documentSelection','subType','isIntersectingWithRange','markerReady','default','_refreshSuggestionsChain','_isForcedDefaultExecutionBlock','getWalker','name','selection','formatBlock','_descriptionFactory','upcast','enableCommand','_registerDefaultCallbacks','end','change','open','getMarkers','rethrowUnexpectedError','value','sort','isDocumentOperation','getMultiRangeId','enqueueChange','suggestion-type','config','_addSuggestionMarker','containerElement','containsItem','hasSuggestion','setTo','normal','previous','createPositionAfter','isEqual','originalSuggestionId','isLimit','activeMarkers','_checkSuggestionCorrectness','range','define','removeMarker:suggestion:formatBlock','authoredAt','multi','trackChanges.trackFormatChanges','filter','removed','consumable','markInlineFormat','markDeletion','deletion:join','markerToHighlight','getSuggestion','author','after','isObject','insert','detach','addUser','rejected','for','lowest','splice','trackChanges.mergeNestedSuggestions','accepted','from','type','_setSuggestionRange','schema','getSuggestions','get','_removeSuggestion','editor','root','track-changes-suggestion-data-mismatch','length','formatBlock:chain','commandName','attributes','_cutOutSuggestionMarker','fromRange','track-changes-adapter-missing-getsuggestion','_suggestionState','$textProxy','_handleNewSuggestionMarker','change:activeMarkers','deletion:discard','registerCustomCallback','suggestionChanged','isBefore','deleteContent','ck-suggestion-marker--active','_updateSuggestionData','addRange','registerPostFixer','unbindElementFromMarkerName','isRemovable','removeClass','isInsideObject','acceptSelectedSuggestions','_enabledCommands','_mergeNestedSuggestions','getIntersection','creator','writer','getCommentThread','hasComments','_getSuggestionData','addMarker:suggestion:formatBlock','elementToElement','suggestionUnloaded','return','isAfter','track-changes-user-not-found','unbind','formatBlock:','commands','_getExternalAuthor','plugins','createElement','change:_saved','howMany','deletion:chain','insertion:join','isTouching','split','options','getItems','collaboration.channelId','formatInline:','markMultiRangeInsertion','addMarker:suggestion','_suggestionFactory','getDifference','formatBlock:accept','some','never','editingDowncast','insertContent','remove','splitPosition','push','getAllAdjacentSuggestions','dataToMarker','formatInline:discard','markInsertion','getChangedMarkers','isUndo','_suggestions','removeMarker','suggestion:','isCollapsed','addHighlight','multipleBlocks','_commentsRepository','discardSelectedSuggestions','update:suggestion','formatInline:accept','markMultiRangeDeletion','isNextTo','formatInline:join','item','setSelection','getSuggestionCallback','suggestionLoaded','@external','elementEnd','getNearestSelectionRange','getShiftedBy','skipNestingCheck','forceDefaultExecution','move','_createSuggestion','_customCallbacks','low','_defaultCallbacks','$graveyard','getLastMatchingPosition','enableReadOnlyMode','catch','dataReady','then','updateSuggestion','_trackFormatChanges','isAtEnd','getAttribute','targetPosition','trackChanges','set','clone'];(function(_0x2cc75f,_0x55ffd7){const _0x2bf605=function(_0x493c51){while(--_0x493c51){_0x2cc75f['push'](_0x2cc75f['shift']());}};_0x2bf605(++_0x55ffd7);}(_0x55ff,0x120));const _0x2bf6=function(_0x2cc75f,_0x55ffd7){_0x2cc75f=_0x2cc75f-0x0;let _0x2bf605=_0x55ff[_0x2cc75f];return _0x2bf605;};import{Plugin as _0x4c5301,PendingActions as _0x3e3ca8}from'ckeditor5/src/core';import{LiveRange as _0x4f1a19}from'ckeditor5/src/engine';import{CKEditorError as _0x1237ef,uid as _0x14cdfd,priorities as _0x44e3be,logWarning as _0x1d61a2}from'ckeditor5/src/utils';import{toWidget as _0x433c4a}from'ckeditor5/src/widget';import{Users as _0x5da766,hashObject as _0x3b862a}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d456f from'./commands/trackchangescommand';import _0xe6062a from'./commands/acceptsuggestioncommand';import _0x59483e from'./commands/discardsuggestioncommand';import _0x38ad56 from'./commands/executeonallsuggestionscommand';import _0x595cbe from'./commands/executeonselectedsuggestionscommand';import _0x3dcbb7 from'./suggestion';import _0x5bf8ae from'./suggestiondescriptionfactory';import _0x393e78 from'./integrations/alignment';import _0x5526bb from'./integrations/basicstyles';import _0x3bf1b0 from'./integrations/blockquote';import _0x1dcf57 from'./integrations/ckbox';import _0x16a5cd from'./integrations/codeblock';import _0xf580f2 from'./integrations/comments';import _0x3f5eaf from'./integrations/deletecommand';import _0x31539c from'./integrations/documentlist';import _0x2747f1 from'./integrations/entercommand';import _0x29cfc8 from'./integrations/findandreplace';import _0x11cdd4 from'./integrations/font';import _0xb60705 from'./integrations/formatpainter';import _0x4567d8 from'./integrations/heading';import _0x2d4340 from'./integrations/highlight';import _0x26104f from'./integrations/horizontalline';import _0x194436 from'./integrations/htmlembed';import _0x2ef9e9 from'./integrations/image';import _0x474071 from'./integrations/imagereplace';import _0x326c7d from'./integrations/importword';import _0x382a3e from'./integrations/indent';import _0x3c13b6 from'./integrations/inputcommand';import _0x129e07 from'./integrations/link';import _0x2da4a5 from'./integrations/list';import _0x52aaf6 from'./integrations/listproperties';import _0x3889ec from'./integrations/mediaembed';import _0x2babae from'./integrations/mention';import _0x11549f from'./integrations/pagebreak';import _0x11761e from'./integrations/paragraph';import _0x2a1320 from'./integrations/removeformat';import _0x51ecd1 from'./integrations/restrictededitingmode';import _0xc362c7 from'./integrations/shiftentercommand';import _0x97acbe from'./integrations/standardeditingmode';import _0x16ba7c from'./integrations/style';import _0x1b77f2 from'./integrations/table';import _0x4a9b05 from'./integrations/tablemergesplit';import _0x5dc308 from'./integrations/tableheadings';import _0x452763 from'./integrations/tableclipboard';import _0x4516a7 from'./integrations/tablecolumnresize';import _0x4c5e7b from'./integrations/template';import _0xa86465 from'./integrations/tableofcontents';import _0x1bac2e from'./integrations/title';import _0x425a72 from'./integrations/undo';import{getTranslation as _0x4ce5de}from'./utils/common-translations';import _0x26fc59 from'./integrations/tablecaption';import _0x49e537 from'./integrations/documentlistproperties';import _0x1dd1f2 from'./integrations/tableproperties';export default class p extends _0x4c5301{static get[_0x2bf6('0x2a')](){return[_0x2bf6('0xa6'),_0x5da766,_0x3e3ca8,_0x393e78,_0x5526bb,_0x3bf1b0,_0x1dcf57,_0x16a5cd,_0xf580f2,_0x3f5eaf,_0x31539c,_0x49e537,_0x2747f1,_0x29cfc8,_0x11cdd4,_0xb60705,_0x4567d8,_0x2d4340,_0x26104f,_0x194436,_0x2ef9e9,_0x474071,_0x326c7d,_0x382a3e,_0x3c13b6,_0x129e07,_0x2da4a5,_0x52aaf6,_0x3889ec,_0x2babae,_0x11549f,_0x11761e,_0x2a1320,_0x51ecd1,_0xc362c7,_0x97acbe,_0x16ba7c,_0x1b77f2,_0x4a9b05,_0x5dc308,_0x26fc59,_0x452763,_0x4516a7,_0xa86465,_0x1dd1f2,_0x4c5e7b,_0x1bac2e,_0x425a72];}static get['pluginName'](){return _0x2bf6('0x3d');}constructor(_0x1b74ca){function _0x1c4d58(_0x332bb1){return _0x332bb1['map'](_0x3530ad=>String['fromCharCode'](_0x3530ad))['join']('');}super(_0x1b74ca),this[_0x2bf6('0x22')](_0x2bf6('0xcf'),[]),this['on'](_0x2bf6('0xff'),(_0x26b4fa,_0x3e248b,_0x3e40bf,_0x1f2403)=>{this[_0x2bf6('0x49')][_0x2bf6('0xb9')](()=>{for(const _0x510bb8 of[..._0x1f2403,..._0x3e40bf])this[_0x2bf6('0x49')][_0x2bf6('0x75')][_0x2bf6('0x25')](_0x510bb8)&&_0x1b74ca['editing'][_0x2bf6('0x6f')](_0x510bb8);});}),this[_0x2bf6('0xb4')]=new _0x5bf8ae(this['editor'][_0x2bf6('0x4b')][_0x2bf6('0xee')],this[_0x2bf6('0xf2')][_0x2bf6('0x58')]),this[_0x2bf6('0xa2')]=null,this[_0x2bf6('0x12e')]=new Dt(this['editor']),this[_0x2bf6('0x13e')]=new Map(),this[_0x2bf6('0x0')]=_0x1b74ca[_0x2bf6('0x120')]['get'](_0x2bf6('0xa6')),this[_0x2bf6('0x10e')]=new Set(),this['_model']=this[_0x2bf6('0xf2')][_0x2bf6('0x4b')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1b74ca[_0x2bf6('0xc3')]['define'](_0x2bf6('0xd6'),_0x2bf6('0xad')),this['_trackFormatChanges']=_0x1b74ca[_0x2bf6('0xc3')][_0x2bf6('0xf0')](_0x2bf6('0xd6')),_0x1b74ca[_0x2bf6('0xc3')][_0x2bf6('0xd2')](_0x2bf6('0xe9'),!0x0),this[_0x2bf6('0x10f')]=_0x1b74ca[_0x2bf6('0xc3')]['get'](_0x2bf6('0xe9')),this['trackChangesCommand']=new _0x2d456f(_0x1b74ca,this['_enabledCommands']),this[_0x1c4d58([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1c4d58([0x34,0x30,0x34,0x36,0x31,0x32,0x35,0x38]);}[_0x2bf6('0x92')](){const _0x50007d=this[_0x2bf6('0xf2')];_0x50007d[_0x2bf6('0x4a')][_0x2bf6('0xe6')](_0x2bf6('0x133'))[_0x2bf6('0xdd')]({'model':'suggestion','view':_0x5a29a1=>{const {id:_0x71fc43,type:_0x10afc0}=this[_0x2bf6('0x76')](_0x5a29a1['markerName']),_0x27f745=[_0x2bf6('0x80'),_0x2bf6('0x50')+_0x10afc0];let _0x27cc5a=0xbb8;return this[_0x2bf6('0xcf')][_0x2bf6('0x44')](_0x5a29a1[_0x2bf6('0x46')])&&(_0x27f745[_0x2bf6('0x137')](_0x2bf6('0x105')),_0x27cc5a=0xbc2),_0x2bf6('0x73')==_0x10afc0&&(_0x27cc5a+=0x5),{'classes':_0x27f745,'attributes':{'data-suggestion':_0x71fc43},'priority':_0x27cc5a};}}),_0x50007d[_0x2bf6('0x4a')][_0x2bf6('0xe6')](_0x2bf6('0x3f'))['add'](_0x2517ca=>{_0x2517ca['on'](_0x2bf6('0x12d'),(_0x49a873,_0x356aca,_0x1607d9)=>{if(!_0x1607d9['options'][_0x2bf6('0x6c')])return;const _0x1900fa=_0x356aca[_0x2bf6('0x7')];if(!_0x1900fa)return;const _0x284363=_0x1607d9[_0x2bf6('0x34')][_0x2bf6('0x59')](_0x1900fa);_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xee')]['isObject'](_0x1900fa)&&_0x284363&&!_0x284363[_0x2bf6('0x28')]('widget')&&_0x284363['is'](_0x2bf6('0xc5'))&&_0x433c4a(_0x284363,_0x1607d9['writer']);},{'priority':_0x2bf6('0x5b')});}),_0x50007d[_0x2bf6('0x4a')]['for']('dataDowncast')[_0x2bf6('0xdd')]({'model':_0x2bf6('0x71'),'view':(_0x378107,_0x1b71c)=>{if(!_0x1b71c[_0x2bf6('0x128')]['showSuggestionHighlights'])return null;const {type:_0x479661}=this[_0x2bf6('0x76')](_0x378107['markerName']);return{'classes':[_0x2bf6('0x80'),_0x2bf6('0x50')+_0x479661],'priority':0xbb8};}});const _0xa28000=({showActiveMarkers:_0x44ab94=!0x0}={})=>(_0x383bf1,_0x3ebdcf,_0x3a7951)=>{if(!_0x3ebdcf['item'])return;if(_0x3ebdcf['item']['is'](_0x2bf6('0xb2')))return void _0x3a7951['consumable'][_0x2bf6('0x66')](_0x3ebdcf[_0x2bf6('0x7')],_0x383bf1[_0x2bf6('0xb1')]);const _0x35d8de=_0x3a7951[_0x2bf6('0x34')][_0x2bf6('0x59')](_0x3ebdcf['item']);if(!(_0x3ebdcf[_0x2bf6('0x7')]['is'](_0x2bf6('0x3a'))&&_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xee')][_0x2bf6('0x9b')](_0x3ebdcf[_0x2bf6('0x7')])&&!_0x35d8de[_0x2bf6('0x28')](_0x2bf6('0x142'))))return;const {id:_0x385821}=this['_splitMarkerName'](_0x3ebdcf[_0x2bf6('0x46')]);_0x3a7951[_0x2bf6('0x112')][_0x2bf6('0xa7')]([_0x2bf6('0x80'),_0x2bf6('0x40')],_0x35d8de),_0x3a7951['writer'][_0x2bf6('0x6a')]('data-suggestion',_0x385821,_0x35d8de),_0x3a7951['mapper'][_0x2bf6('0x55')](_0x35d8de,_0x3ebdcf[_0x2bf6('0x46')]),_0x44ab94&&(this['activeMarkers'][_0x2bf6('0x44')](_0x3ebdcf['markerName'])?_0x3a7951[_0x2bf6('0x112')]['addClass']('ck-suggestion-marker--active',_0x35d8de):_0x3a7951[_0x2bf6('0x112')]['removeClass']('ck-suggestion-marker--active',_0x35d8de));for(const _0x984440 of _0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x69')](_0x3ebdcf[_0x2bf6('0x7')])[_0x2bf6('0x129')]())_0x3a7951[_0x2bf6('0xd9')][_0x2bf6('0x66')](_0x984440,_0x383bf1[_0x2bf6('0xb1')]);_0x3a7951[_0x2bf6('0xd9')]['consume'](_0x3ebdcf[_0x2bf6('0x7')],_0x383bf1[_0x2bf6('0xb1')]);};_0x50007d[_0x2bf6('0x4a')]['for']('dataDowncast')[_0x2bf6('0x4c')](_0x31b73e=>{_0x31b73e['on'](_0x2bf6('0x116'),(_0x20b59e,_0x2f68c2,_0x4ddbf8)=>{_0x4ddbf8[_0x2bf6('0x128')][_0x2bf6('0x6c')]&&_0xa28000({'showActiveMarkers':!0x1})(_0x20b59e,_0x2f68c2,_0x4ddbf8);},{'priority':'highest'});}),_0x50007d[_0x2bf6('0x4a')][_0x2bf6('0xe6')](_0x2bf6('0x3f'))[_0x2bf6('0x90')]({'model':'suggestion','view':(_0x14ee60,_0x294c20)=>_0x294c20[_0x2bf6('0x128')][_0x2bf6('0x6c')]?null:{'group':'suggestion','name':_0x14ee60[_0x2bf6('0x67')](0xb)}}),_0x50007d[_0x2bf6('0x4a')][_0x2bf6('0xe6')](_0x2bf6('0xb5'))[_0x2bf6('0x117')]({'view':{'name':_0x2bf6('0x71'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x14db4c,{writer:_0x43f6bd})=>{let _0x7e3a75=_0x2bf6('0x140')+_0x14db4c[_0x2bf6('0x1f')](_0x2bf6('0xc2'))+':'+_0x14db4c[_0x2bf6('0x1f')]('id');return _0x14db4c[_0x2bf6('0x1f')]('marker-count')&&(_0x7e3a75+=':'+_0x14db4c[_0x2bf6('0x1f')](_0x2bf6('0x7c'))),_0x43f6bd[_0x2bf6('0x121')]('$marker',{'data-name':_0x7e3a75});}}),_0x50007d['conversion'][_0x2bf6('0xe6')](_0x2bf6('0xb5'))[_0x2bf6('0x139')]({'view':'suggestion'}),_0x50007d['conversion'][_0x2bf6('0xe6')](_0x2bf6('0x133'))['add'](_0x1b8c7a=>{_0x1b8c7a['on'](_0x2bf6('0x116'),_0xa28000(),{'priority':_0x2bf6('0x5b')});}),_0x50007d['conversion'][_0x2bf6('0xe6')](_0x2bf6('0x133'))[_0x2bf6('0x4c')](_0x28ce89=>{_0x28ce89['on'](_0x2bf6('0xd3'),(_0xa0f7cb,_0xd22ce1,_0x5d57ea)=>{const _0x17db84=_0x5d57ea[_0x2bf6('0x34')][_0x2bf6('0x91')](_0xd22ce1[_0x2bf6('0x46')]);if(_0x17db84)for(const _0x18167a of _0x17db84)_0x18167a[_0x2bf6('0x28')]('addHighlight')||(_0x5d57ea[_0x2bf6('0x112')][_0x2bf6('0x10b')]([_0x2bf6('0x80'),_0x2bf6('0x40'),_0x2bf6('0x105')],_0x18167a),_0x5d57ea[_0x2bf6('0x112')][_0x2bf6('0x24')]('data-suggestion',_0x18167a),_0x5d57ea[_0x2bf6('0x34')][_0x2bf6('0x109')](_0x18167a,_0xd22ce1[_0x2bf6('0x46')]));},{'priority':_0x2bf6('0x5b')});}),_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x3c')][_0x2bf6('0x108')](_0xac406b=>{let _0x503644=!0x1;const _0x5f0b53=Array[_0x2bf6('0xeb')](_0x50007d[_0x2bf6('0x4b')]['document'][_0x2bf6('0x62')][_0x2bf6('0x13c')]()),_0x5c0578=new Set();for(const {name:_0x37909b,data:_0x119530}of _0x5f0b53){const {group:_0x3a423a,type:_0x443912,id:_0x22c595}=this['_splitMarkerName'](_0x37909b);if(_0x2bf6('0x71')!==_0x3a423a)continue;const _0x242bf0=this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x22c595);if(null!=_0x119530[_0x2bf6('0xa1')]){_0x2bf6('0x94')==_0x443912&&(_0x503644=_0x503644||Mt(_0x119530['newRange'],_0x37909b,_0xac406b,_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xee')]));if(_0x119530[_0x2bf6('0xa1')][_0x2bf6('0x141')]||_0x2bf6('0x16')==_0x119530[_0x2bf6('0xa1')][_0x2bf6('0xf3')][_0x2bf6('0x42')]||_0x2bf6('0xb3')==_0x443912&&!Nt(_0x119530[_0x2bf6('0xa1')])||'deletion'==_0x443912&&!(!_t(_0x4af07d=_0x119530[_0x2bf6('0xa1')])&&!function(_0x4f9a1e){return _0x4f9a1e[_0x2bf6('0x95')][_0x2bf6('0x63')]==_0x4f9a1e['end'][_0x2bf6('0x27')]&&_0x4f9a1e[_0x2bf6('0x95')][_0x2bf6('0x1e')];}(_0x4af07d)))_0xac406b[_0x2bf6('0x13f')](_0x37909b),_0x503644=!0x0;else{if(!_0x242bf0||!_0x242bf0[_0x2bf6('0x2c')])continue;_0x5c0578[_0x2bf6('0x4c')](_0x242bf0);}}}var _0x4af07d;return _0x5c0578[_0x2bf6('0x79')]>0x0&&(_0x503644=!!this[_0x2bf6('0x6d')](_0x5c0578)||_0x503644),_0x503644;}),_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x3c')][_0x2bf6('0x108')](_0x21517c=>{let _0x3e407a=!0x1;for(const _0x47d9a8 of _0x50007d[_0x2bf6('0x4b')]['document']['differ'][_0x2bf6('0x48')]()){if('insert'!=_0x47d9a8['type'])continue;const _0x40fbe6=_0x47d9a8['position']['getShiftedBy'](_0x47d9a8[_0x2bf6('0xf5')]);if(_0x40fbe6[_0x2bf6('0x1e')])for(const _0x148cd6 of this['_suggestions'][_0x2bf6('0x98')]()){if(_0x148cd6['isMultiRange']||!_0x148cd6['isInContent'])continue;if(_0x2bf6('0xb3')!=_0x148cd6['type'])continue;const _0x328e3b=_0x148cd6['getFirstRange']();if(_0x328e3b['start'][_0x2bf6('0x63')]!=_0x328e3b['end']['parent']&&_0x328e3b[_0x2bf6('0xb8')][_0x2bf6('0xcc')](_0x47d9a8[_0x2bf6('0xa3')])){const _0x579f46=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x51')](_0x328e3b['start'],_0x40fbe6);_0x21517c[_0x2bf6('0x72')](_0x148cd6['getFirstMarker'](),{'range':_0x579f46}),_0x3e407a=!0x0;}}}return _0x3e407a;}),_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x75')]['on'](_0x2bf6('0x2'),(_0x5b9055,_0x159dfb,_0x26cd69)=>{if(null==_0x26cd69){const {id:_0x37ba03}=this[_0x2bf6('0x76')](_0x159dfb['name']),_0x317dc5=this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x37ba03);_0x317dc5&&_0x317dc5[_0x2bf6('0x70')](_0x159dfb['name']);}}),_0x50007d[_0x2bf6('0x4b')]['document']['on'](_0x2bf6('0xa4'),()=>{const _0xea9889=Array[_0x2bf6('0xeb')](_0x50007d['model']['document'][_0x2bf6('0x62')]['getChangedMarkers']())['filter'](_0x10b6eb=>_0x2bf6('0x71')===this[_0x2bf6('0x76')](_0x10b6eb[_0x2bf6('0xb1')])['group']);if(0x0===_0xea9889['length'])return;_0xea9889[_0x2bf6('0xbe')]((_0x4fcfe7,_0x21ef11)=>{const _0x30be23=_0x4fcfe7['data']['oldRange'],_0x54f725=_0x21ef11[_0x2bf6('0x88')]['oldRange'];return null===_0x30be23&&null===_0x54f725?0x0:null===_0x30be23&&null!==_0x54f725?-0x1:null!==_0x30be23&&null===_0x54f725?0x1:_0x30be23[_0x2bf6('0x95')]['isBefore'](_0x54f725['start'])?-0x1:0x1;});const _0x48aca3=new Set(),_0x12a286=new Set();for(const {name:_0x3d81f2,data:_0x275e1c}of _0xea9889){const {id:_0x1e743c}=this['_splitMarkerName'](_0x3d81f2);if(null===_0x275e1c['oldRange']){const _0x2fe728=this[_0x2bf6('0xfe')](_0x3d81f2);_0x12a286[_0x2bf6('0x4c')](_0x2fe728);}else{const _0x2c867e=this['_suggestions'][_0x2bf6('0xf0')](_0x1e743c);null!==_0x275e1c[_0x2bf6('0xa1')]||_0x2c867e[_0x2bf6('0x2c')]?(_0x48aca3['add'](_0x2c867e[_0x2bf6('0x5e')]),_0x12a286['add'](_0x2c867e)):this[_0x2bf6('0xf1')](_0x2c867e);}}_0x12a286['size']>0x0&&this[_0x2bf6('0xae')](_0x12a286);for(const _0x3822f8 of _0x48aca3)this['fire'](_0x2bf6('0x102'),_0x3822f8);}),_0x50007d[_0x2bf6('0x4b')]['on'](_0x2bf6('0x26'),(_0x39e4ab,_0x3a5d0b)=>{const _0x8fdd64=_0x3a5d0b[0x0];if(!this[_0x2bf6('0x13e')][_0x2bf6('0x79')])return;if(!_0x8fdd64[_0x2bf6('0xbf')])return;if(_0x8fdd64[_0x2bf6('0x7b')][_0x2bf6('0x13d')]||!_0x8fdd64[_0x2bf6('0x7b')]['isLocal'])return;let _0x37f9b5,_0x3df6d3;switch(_0x8fdd64[_0x2bf6('0xec')]){case _0x2bf6('0xe2'):_0x37f9b5=_0x50007d['model'][_0x2bf6('0x32')](_0x8fdd64[_0x2bf6('0xa3')]),_0x3df6d3=_0x37f9b5[_0x2bf6('0xe')](_0x8fdd64[_0x2bf6('0x123')]);break;case _0x2bf6('0x127'):_0x37f9b5=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x32')](_0x8fdd64[_0x2bf6('0x136')]),_0x3df6d3=_0x50007d[_0x2bf6('0x4b')]['createPositionAt'](_0x8fdd64['moveTargetPosition']);break;case _0x2bf6('0x11'):_0x37f9b5=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x32')](_0x8fdd64[_0x2bf6('0x20')]),_0x3df6d3=_0x37f9b5[_0x2bf6('0xe')](_0x8fdd64[_0x2bf6('0x123')]);break;default:return;}const _0x5404af=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x51')](_0x37f9b5,_0x3df6d3);_0x50007d[_0x2bf6('0x4b')]['change'](()=>{for(const {suggestion:_0x1976ce,meta:_0x4665e4}of this[_0x2bf6('0x36')](_0x5404af)){if(_0x1976ce[_0x2bf6('0x8c')])continue;if(_0x2bf6('0x94')==_0x1976ce[_0x2bf6('0xec')])continue;const _0x3c6e74=_0x1976ce['data']&&_0x1976ce[_0x2bf6('0x88')][_0x2bf6('0x143')];(_0x2bf6('0xb3')!=_0x1976ce['type']||_0x2bf6('0x127')==_0x8fdd64['type']&&!_0x3c6e74)&&(_0x4665e4[_0x2bf6('0x93')]||_0x2bf6('0x9c')==_0x1976ce[_0x2bf6('0xec')]&&_0x4665e4['isOwn']||_0x1976ce[_0x2bf6('0x61')]()[_0x2bf6('0xa0')](_0x5404af)&&this[_0x2bf6('0x9f')](_0x1976ce,_0x37f9b5,_0x3df6d3));}});},{'priority':_0x2bf6('0xe7')}),_0x50007d[_0x2bf6('0x4b')]['on'](_0x2bf6('0x104'),(_0x48655e,_0x4f775d)=>{const _0x280332=_0x4f775d[0x0],_0x169b98=_0x4f775d[0x1];if(_0x169b98&&_0x169b98[_0x2bf6('0x10')])return;if(this[_0x2bf6('0xaf')])return;if(!this[_0x2bf6('0x83')][_0x2bf6('0xbd')])return;if(_0x280332[_0x2bf6('0x141')])return;const _0x50db71=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xee')],{start:_0x3a0c69,end:_0x52c41f}=_0x280332[_0x2bf6('0x61')](),_0x3b259f=_0x3a0c69[_0x2bf6('0x8b')]&&_0x50db71[_0x2bf6('0xce')](_0x3a0c69[_0x2bf6('0x8b')])?null:_0x50db71['getNearestSelectionRange'](_0x3a0c69,'forward'),_0x4697af=_0x52c41f['nodeBefore']&&_0x50db71[_0x2bf6('0xce')](_0x52c41f[_0x2bf6('0x27')])?null:_0x50db71[_0x2bf6('0xd')](_0x52c41f,_0x2bf6('0x7a')),_0x3dfcdc=_0x50007d[_0x2bf6('0x4b')]['createRange'](_0x3b259f?_0x3b259f[_0x2bf6('0x95')]:_0x3a0c69,_0x4697af?_0x4697af['end']:_0x52c41f);_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xb9')](_0x47621d=>{this[_0x2bf6('0xdb')](_0x3dfcdc);const _0x3ae496=_0x50007d[_0x2bf6('0x4b')]['schema']['getNearestSelectionRange'](_0x3dfcdc[_0x2bf6('0x95')]);_0x280332['is'](_0x2bf6('0xa9'))?_0x47621d[_0x2bf6('0x8')](_0x3ae496):_0x280332[_0x2bf6('0xc8')](_0x3ae496);}),_0x48655e['stop']();},{'priority':_0x44e3be[_0x2bf6('0xc9')]+0xa}),_0x50007d[_0x2bf6('0x4b')]['on'](_0x2bf6('0x134'),(_0xc7d3c,_0x1d5721)=>{const _0xe82f14=_0x1d5721[_0x1d5721[_0x2bf6('0xf5')]-0x1];_0xe82f14&&_0xe82f14[_0x2bf6('0x10')]||this[_0x2bf6('0xaf')]||this[_0x2bf6('0x83')][_0x2bf6('0xbd')]&&(_0x50007d['model'][_0x2bf6('0xb9')](()=>{let _0x2801c8=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x134')](_0x1d5721[0x0],_0x1d5721[0x1],_0x1d5721[0x2],{'forceDefaultExecution':!0x0});if(!_0x2801c8)return;_0xc7d3c[_0x2bf6('0x119')]=_0x2801c8[_0x2bf6('0x23')]();const _0x30bebc=_0x2801c8['end'][_0x2bf6('0x27')],_0x3efb7e=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0xee')];_0x30bebc&&_0x3efb7e[_0x2bf6('0x9b')](_0x30bebc)&&!_0x3efb7e[_0x2bf6('0xe1')](_0x30bebc)&&(_0x2801c8=_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x51')](_0x2801c8[_0x2bf6('0x95')],_0x50007d[_0x2bf6('0x4b')][_0x2bf6('0x32')](_0x30bebc,_0x2bf6('0xb8')))),this[_0x2bf6('0x13b')](_0x2801c8);}),_0xc7d3c[_0x2bf6('0x9e')]());},{'priority':'high'}),this[_0x2bf6('0xf2')][_0x2bf6('0x11e')][_0x2bf6('0x4c')]('trackChanges',this[_0x2bf6('0x83')]),this[_0x2bf6('0xb6')](_0x2bf6('0x21'));const _0x54b02b=new _0xe6062a(_0x50007d,this[_0x2bf6('0x13e')]);_0x50007d[_0x2bf6('0x11e')][_0x2bf6('0x4c')](_0x2bf6('0x8d'),_0x54b02b),this[_0x2bf6('0xb6')](_0x2bf6('0x8d'));const _0x409cd6=new _0x59483e(_0x50007d,this[_0x2bf6('0x13e')]);_0x50007d[_0x2bf6('0x11e')][_0x2bf6('0x4c')](_0x2bf6('0x86'),_0x409cd6),this[_0x2bf6('0xb6')]('discardSuggestion'),_0x50007d[_0x2bf6('0x11e')][_0x2bf6('0x4c')](_0x2bf6('0x35'),new _0x38ad56(_0x50007d,_0x54b02b,this[_0x2bf6('0x13e')])),this['enableCommand'](_0x2bf6('0x35')),_0x50007d['commands'][_0x2bf6('0x4c')](_0x2bf6('0x85'),new _0x38ad56(_0x50007d,_0x409cd6,this[_0x2bf6('0x13e')])),this['enableCommand'](_0x2bf6('0x85')),_0x50007d[_0x2bf6('0x11e')][_0x2bf6('0x4c')](_0x2bf6('0x10d'),new _0x595cbe(_0x50007d,_0x54b02b,this['_suggestions'])),this[_0x2bf6('0xb6')](_0x2bf6('0x10d')),_0x50007d[_0x2bf6('0x11e')]['add'](_0x2bf6('0x1'),new _0x595cbe(_0x50007d,_0x409cd6,this['_suggestions'])),this[_0x2bf6('0xb6')]('discardSelectedSuggestions');const _0x3e7dc0=_0x50007d[_0x2bf6('0x120')][_0x2bf6('0xf0')]('CommentsRepository');this[_0x2bf6('0x54')](_0x3e7dc0,_0x2bf6('0x2b'),(_0x1fa9db,{threadId:_0x517585})=>{const _0x2ef9fa=this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x517585);_0x2ef9fa&&_0x2ef9fa[_0x2bf6('0x74')]&&0x1===_0x2ef9fa[_0x2bf6('0x74')][_0x2bf6('0xf5')]&&this[_0x2bf6('0x106')](_0x517585,{'hasComments':!0x0});},{'priority':'low'}),this[_0x2bf6('0x54')](_0x3e7dc0,'removeComment',(_0x5f1a50,{threadId:_0x2d27d6})=>{const _0x4fc07d=this['_suggestions']['get'](_0x2d27d6);_0x4fc07d&&_0x4fc07d[_0x2bf6('0x74')]&&!_0x4fc07d['commentThread']['length']&&this['_updateSuggestionData'](_0x2d27d6,{'hasComments':!0x1});},{'priority':_0x2bf6('0x14')});}set['adapter'](_0x12d19b){if(this[_0x2bf6('0xa2')])throw new _0x1237ef('track-changes-adapter-already-set',this);this['_adapter']=_0x12d19b;}get[_0x2bf6('0x68')](){return this[_0x2bf6('0xa2')];}['getSuggestions']({skipNotAttached:_0x1a11df=!0x1,toJSON:_0x2031f0=!0x1}={}){const _0x42078c=[];for(const _0x5efc7a of this[_0x2bf6('0x13e')][_0x2bf6('0x98')]())_0x1a11df&&!_0x5efc7a[_0x2bf6('0x2c')]||_0x42078c['push'](_0x5efc7a);return _0x2031f0?_0x42078c[_0x2bf6('0x5c')](_0x34c987=>_0x34c987['toJSON']()):_0x42078c;}[_0x2bf6('0xde')](_0x3e2657){const _0x2ca009=this['_suggestions'][_0x2bf6('0xf0')](_0x3e2657);if(!_0x2ca009)throw new _0x1237ef(_0x2bf6('0x97'),this);return _0x2ca009;}[_0x2bf6('0xc7')](_0x5778dc){return this[_0x2bf6('0x13e')]['has'](_0x5778dc);}[_0x2bf6('0x41')](_0x3c3a6a){const {authorId:_0x4062c6,id:_0x1b48b4,attributes:_0x2d8401}=_0x3c3a6a,[_0x3d4450,_0x76341b]=_0x3c3a6a[_0x2bf6('0xec')]['split'](':'),_0x43bd03=this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x1b48b4)||this['_createSuggestion'](_0x3d4450,_0x76341b,_0x1b48b4,_0x4062c6,_0x2d8401);if(this[_0x2bf6('0x7f')](_0x43bd03),this['_checkSuggestionCorrectness'](_0x43bd03,_0x3d4450,_0x76341b||null,_0x4062c6),_0x43bd03['createdAt']=_0x3c3a6a['createdAt'],_0x2d8401&&_0x2d8401['@external']){const _0x2e7644=_0x2d8401[_0x2bf6('0xb')],_0x13efd6=this[_0x2bf6('0x11f')](_0x2e7644[_0x2bf6('0x29')]);_0x43bd03[_0x2bf6('0xd4')]=_0x2e7644['createdAt'],_0x43bd03[_0x2bf6('0xdf')]=_0x13efd6,_0x43bd03[_0x2bf6('0x8e')]=!0x0;}else _0x43bd03[_0x2bf6('0xd4')]=_0x3c3a6a['createdAt'];switch(_0x3c3a6a['data']&&(_0x43bd03[_0x2bf6('0x88')]=_0x3c3a6a['data']),_0x3c3a6a[_0x2bf6('0xf8')]&&(_0x43bd03[_0x2bf6('0xf8')]=_0x3c3a6a[_0x2bf6('0xf8')]),this[_0x2bf6('0xa2')]&&this[_0x2bf6('0xa2')][_0x2bf6('0x9a')]||(_0x43bd03[_0x2bf6('0x96')]=!0x0),this[_0x2bf6('0xfc')]['get'](_0x43bd03)){case _0x2bf6('0x37'):this['_suggestionState'][_0x2bf6('0x22')](_0x43bd03,_0x2bf6('0x1a'));break;case _0x2bf6('0xac'):_0x43bd03[_0x2bf6('0x2c')]?(this['_suggestionState'][_0x2bf6('0x22')](_0x43bd03,_0x2bf6('0xa8')),this['fire'](_0x2bf6('0xa'),_0x43bd03)):this[_0x2bf6('0xfc')][_0x2bf6('0x22')](_0x43bd03,_0x2bf6('0xd8'));}return _0x43bd03;}[_0x2bf6('0x8d')](_0x2f89fc){this[_0x2bf6('0x10')](()=>{this['editor'][_0x2bf6('0x4b')]['change'](()=>{for(const _0x34de96 of _0x2f89fc['getAllAdjacentSuggestions']())_0x34de96[_0x2bf6('0x2d')]();});});}[_0x2bf6('0x86')](_0x2dfb4f){this[_0x2bf6('0x10')](()=>{this['editor'][_0x2bf6('0x4b')][_0x2bf6('0xb9')](()=>{for(const _0x58d655 of _0x2dfb4f[_0x2bf6('0x138')]())_0x58d655[_0x2bf6('0x38')]();});});}[_0x2bf6('0xb6')](_0x25f991,_0x453ade){const _0x59dfb2=this[_0x2bf6('0xf2')][_0x2bf6('0x11e')][_0x2bf6('0xf0')](_0x25f991);if(!_0x59dfb2)throw new _0x1237ef(_0x2bf6('0x45'),this,{'commandName':_0x25f991});this['_enabledCommands'][_0x2bf6('0x4c')](_0x59dfb2),_0x453ade&&_0x59dfb2['on']('execute',(_0x461f77,_0x4e05cc)=>{this[_0x2bf6('0x83')][_0x2bf6('0xbd')]&&(this[_0x2bf6('0xaf')]||_0x4e05cc[_0x2bf6('0xf5')]>0x0&&_0x4e05cc[_0x4e05cc[_0x2bf6('0xf5')]-0x1]&&_0x4e05cc[_0x4e05cc['length']-0x1]['forceDefaultExecution']||(_0x453ade((..._0x11c0e6)=>_0x59dfb2[_0x2bf6('0x7e')](..._0x11c0e6,{'forceDefaultExecution':!0x0}),..._0x4e05cc),_0x461f77[_0x2bf6('0x9e')]()));},{'priority':_0x2bf6('0x5b')});}['forceDefaultExecution'](_0x337497){let _0x4bd51a,_0x1b1e42;const _0x53978b=this[_0x2bf6('0xaf')];this[_0x2bf6('0xaf')]=!0x0;try{_0x4bd51a=_0x337497();}catch(_0x428492){_0x1b1e42=_0x428492;}return _0x53978b||(this[_0x2bf6('0xaf')]=!0x1),_0x1b1e42&&_0x1237ef[_0x2bf6('0xbc')](_0x1b1e42,this),_0x4bd51a;}[_0x2bf6('0x13b')](_0x27e4d2,_0x39df7c=null,_0x16036a={}){if(_0x27e4d2[_0x2bf6('0x141')])return null;const _0x4a15c5=this[_0x2bf6('0xf2')]['plugins'][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'];for(const {suggestion:_0xc4cd60,meta:_0x593a2a}of this[_0x2bf6('0x36')](_0x27e4d2,_0x2bf6('0x9c')))if(_0x593a2a['isOwn']){if(!_0x593a2a[_0x2bf6('0x5')]){if(!this[_0x2bf6('0x10f')]&&_0x593a2a['containsRangeInObject'])continue;return _0xc4cd60;}if(_0x39df7c==_0xc4cd60[_0x2bf6('0xaa')]){const _0xa3e700=_0xc4cd60[_0x2bf6('0x61')]();return _0xa3e700['start'][_0x2bf6('0xcc')](_0x27e4d2[_0x2bf6('0xb8')])?this['_setSuggestionRange'](_0xc4cd60,this['_model']['createRange'](_0x27e4d2['start'],_0xa3e700['end'])):this[_0x2bf6('0xed')](_0xc4cd60,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0xa3e700[_0x2bf6('0x95')],_0x27e4d2[_0x2bf6('0xb8')])),_0xc4cd60;}}const _0x4f1ff6=_0x14cdfd(),_0xb77fdb=_0x4a15c5['id'],_0x37ecc1=_0x39df7c?'insertion:'+_0x39df7c:'insertion',_0x53eb4=this[_0x2bf6('0x5f')]({'id':_0x4f1ff6,'type':_0x37ecc1,'createdAt':new Date(),'authorId':_0xb77fdb,'attributes':_0x16036a});return this[_0x2bf6('0xc4')](_0x37ecc1,_0x4f1ff6,_0xb77fdb,_0x27e4d2),_0x53eb4;}[_0x2bf6('0x12c')](_0x1b6a5f,_0x1a654d='multi',_0x2c1cc4={}){const _0x12706a=this[_0x2bf6('0xf2')]['plugins'][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'],_0x13c186=this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x2bf6('0x9c'),_0x1a654d,_0x2bf6('0x30'));for(const _0x21aece of this[_0x2bf6('0xef')]())if(_0x21aece[_0x2bf6('0xdf')]['id']==_0x12706a['id']&&_0x2bf6('0x9c')==_0x21aece[_0x2bf6('0xec')]&&_0x21aece[_0x2bf6('0xaa')]==_0x1a654d&&(_0x13c186(_0x21aece['getRanges'](),_0x1b6a5f)||_0x13c186(_0x1b6a5f,_0x21aece[_0x2bf6('0x4e')]()))){for(const _0x5b1aa9 of _0x1b6a5f)_0x21aece['addRange'](_0x5b1aa9);return _0x21aece;}if(this['_mergeNestedSuggestions'])for(const _0xac36e0 of _0x1b6a5f)for(const {suggestion:_0x3d2552,meta:_0x5e9db}of this[_0x2bf6('0x36')](_0xac36e0,_0x2bf6('0x9c'))){if(!_0x5e9db[_0x2bf6('0x47')])continue;let _0x252b9b=!0x0;for(const _0x5be27c of _0x3d2552[_0x2bf6('0x4e')]())for(const _0x529874 of _0x1b6a5f)if(!_0x5be27c[_0x2bf6('0xa0')](_0x529874)){_0x252b9b=!0x1;break;}if(_0x252b9b)return _0x3d2552;}const _0x2cf122=_0x14cdfd(),_0x2884a5=_0x12706a['id'],_0x5d2310='insertion:'+_0x1a654d,_0x1ab704=this[_0x2bf6('0x5f')]({'id':_0x2cf122,'type':_0x5d2310,'createdAt':new Date(),'authorId':_0x2884a5,'attributes':_0x2c1cc4});for(const _0x3b9e60 of _0x1b6a5f)this[_0x2bf6('0xc4')](_0x5d2310,_0x2cf122,_0x2884a5,_0x3b9e60,_0x3dcbb7[_0x2bf6('0xc0')]());return _0x1ab704;}[_0x2bf6('0xda')](_0x5693bf,_0x57eb7b,_0x27e157=null,_0x222bf4={}){if(_0x27e157=_0x27e157||$t(_0x57eb7b),_0x5693bf[_0x2bf6('0x141')])return null;if(_0x2bf6('0x132')===this[_0x2bf6('0x1d')]){const _0x278037=this['_suggestionFactory'][_0x2bf6('0x9')](_0x2bf6('0x94'),_0x27e157,_0x2bf6('0x2d'));return this[_0x2bf6('0x10')](()=>_0x278037([_0x5693bf],_0x57eb7b,_0x222bf4)),null;}const _0x4e50f2=this['editor'][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'],_0x1e6e49=[];if(_0x2bf6('0x4d')!==this[_0x2bf6('0x1d')])for(const {suggestion:_0x10054d,meta:_0x366265}of this['_findSuggestions'](_0x5693bf,_0x2bf6('0x9c')))_0x366265[_0x2bf6('0x47')]&&!_0x366265[_0x2bf6('0x10c')]&&_0x1e6e49[_0x2bf6('0x137')](..._0x10054d[_0x2bf6('0x4e')]());const _0x3f25f3=function(_0x33af38,_0x31b654){const _0x254697=[];for(const _0x25991b of _0x31b654){const _0x20492e=_0x33af38['getIntersection'](_0x25991b);_0x20492e&&_0x254697['push'](_0x20492e);}return _0x254697;}(_0x5693bf,_0x1e6e49),_0x2c8507=function(_0x24b134,_0x8065e9){const _0x300f6c=[_0x24b134];for(const _0x1ba4f0 of _0x8065e9){let _0x248660=0x0;for(;_0x248660<_0x300f6c['length'];){const _0x714f2d=_0x300f6c[_0x248660]['getDifference'](_0x1ba4f0);_0x300f6c[_0x2bf6('0xe8')](_0x248660,0x1,..._0x714f2d),_0x248660+=_0x714f2d[_0x2bf6('0xf5')];}}return _0x300f6c;}(_0x5693bf,_0x1e6e49);_0x3f25f3['length']&&this['_model']['change'](()=>{for(const _0x2c2374 of _0x3f25f3){const _0x41bbc6=this[_0x2bf6('0x12e')][_0x2bf6('0x9')]('formatInline',_0x27e157,_0x2bf6('0x2d'));this[_0x2bf6('0x10')](()=>_0x41bbc6([_0x2c2374],_0x57eb7b,_0x222bf4));}});for(const _0x5ee789 of _0x2c8507){let _0x6f97c2=null,_0x3d5dfd=_0x5ee789[_0x2bf6('0x95')],_0x37911b=_0x5ee789[_0x2bf6('0xb8')];for(const {suggestion:_0x4add99,meta:_0x10b799}of this['_findSuggestions'](_0x5ee789,_0x2bf6('0x94'))){if(!_0x10b799['isOwn'])continue;if(_0x4add99[_0x2bf6('0xaa')]!=_0x27e157)continue;const _0x560d0d=_0x4add99['getFirstRange']();if(_0x560d0d[_0x2bf6('0xa0')](_0x5ee789,!0x0))return null;_0x3d5dfd=_0x3d5dfd['isBefore'](_0x560d0d['start'])?_0x3d5dfd:_0x560d0d['start'],_0x37911b=_0x37911b['isAfter'](_0x560d0d[_0x2bf6('0xb8')])?_0x37911b:_0x560d0d[_0x2bf6('0xb8')],_0x6f97c2?_0x560d0d[_0x2bf6('0x95')][_0x2bf6('0x103')](_0x6f97c2[_0x2bf6('0x61')]()[_0x2bf6('0x95')])?(_0x6f97c2[_0x2bf6('0x9d')](),_0x6f97c2=_0x4add99):_0x4add99['removeMarkers']():_0x6f97c2=_0x4add99;}const _0x1ca09f=this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x3d5dfd,_0x37911b);if(_0x6f97c2)this['_setSuggestionRange'](_0x6f97c2,_0x1ca09f);else{const _0x325c0d=_0x14cdfd(),_0x5a3ce6=_0x4e50f2['id'];this['_setSuggestionData']({'id':_0x325c0d,'type':_0x2bf6('0x12b')+_0x27e157,'data':_0x57eb7b,'createdAt':new Date(),'authorId':_0x5a3ce6,'attributes':_0x222bf4}),this[_0x2bf6('0xc4')](_0x2bf6('0x12b')+_0x27e157,_0x325c0d,_0x5a3ce6,_0x1ca09f);}}return null;}[_0x2bf6('0x8a')](_0x4bcb53,_0x399b69,_0xdc4e68=[],_0x43e424=null,_0x318069={}){_0x399b69[_0x2bf6('0x64')]||(_0x399b69['formatGroupId']=_0x399b69[_0x2bf6('0xf7')]),_0x399b69['multipleBlocks']=_0x4bcb53['is'](_0x2bf6('0xd1')),_0x43e424=_0x43e424||$t(_0x399b69);const _0x5a3667=_0xdc4e68[_0x2bf6('0x5c')](_0x1dd933=>Rt(_0x1dd933,this[_0x2bf6('0x49')])),_0x157d6b=_0x4bcb53['is'](_0x2bf6('0xd1'))?_0x4bcb53:Rt(_0x4bcb53,this[_0x2bf6('0x49')]);if(_0x2bf6('0x132')===this[_0x2bf6('0x1d')]){const _0x216163=this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x2bf6('0xb3'),_0x43e424,_0x2bf6('0x2d'));return this[_0x2bf6('0x10')](()=>_0x216163([_0x157d6b],_0x399b69,_0x318069)),null;}_0x5a3667[_0x2bf6('0x137')](_0x157d6b);let _0x4c9377=!0x0;for(const _0x287561 of _0x5a3667)if(!this[_0x2bf6('0x8f')](_0x287561)){_0x4c9377=!0x1;break;}if(_0x4c9377&&_0x2bf6('0x4d')!==this[_0x2bf6('0x1d')]){const _0x53ed0f=this[_0x2bf6('0x12e')]['getSuggestionCallback'](_0x2bf6('0xb3'),_0x43e424,_0x2bf6('0x2d'));return this['forceDefaultExecution'](()=>_0x53ed0f([_0x157d6b],_0x399b69,_0x318069)),null;}let _0x124895=null,_0x4af135=_0x157d6b[_0x2bf6('0x95')],_0x5a587c=_0x157d6b[_0x2bf6('0xb8')];for(const {suggestion:_0x312089,meta:_0x26df69}of this[_0x2bf6('0x36')](_0x157d6b,'formatBlock')){if(!_0x26df69[_0x2bf6('0x47')]||_0x26df69[_0x2bf6('0x5')]||_0x26df69[_0x2bf6('0x93')]||_0x26df69[_0x2bf6('0x10c')])continue;if(_0x312089[_0x2bf6('0x88')][_0x2bf6('0x64')]!=_0x399b69[_0x2bf6('0x64')])continue;const _0x5c1926=_0x312089[_0x2bf6('0x61')]();if(_0x312089[_0x2bf6('0xaa')]==_0x43e424){if(_0x5c1926[_0x2bf6('0xa0')](_0x157d6b,!0x0))return null;_0x4af135=_0x4af135[_0x2bf6('0x103')](_0x5c1926['start'])?_0x4af135:_0x5c1926[_0x2bf6('0x95')],_0x5a587c=_0x5a587c['isAfter'](_0x5c1926['end'])?_0x5a587c:_0x5c1926[_0x2bf6('0xb8')],_0x124895?_0x5c1926[_0x2bf6('0x95')][_0x2bf6('0x103')](_0x124895['getFirstRange']()['start'])?(_0x124895[_0x2bf6('0x9d')](),_0x124895=_0x312089):_0x312089['removeMarkers']():_0x124895=_0x312089;}else{const _0xdeb5eb=_0x157d6b[_0x2bf6('0x110')](_0x5c1926);this[_0x2bf6('0xf9')](_0x312089,_0xdeb5eb);}}const _0x10e12d=this[_0x2bf6('0xf2')][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'],_0x106aa3=_0x14cdfd(),_0x41e488=_0x10e12d['id'];if(_0x124895)return this['_setSuggestionRange'](_0x124895,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x4af135,_0x5a587c)),_0x124895;{const _0xc40087=this[_0x2bf6('0x5f')]({'id':_0x106aa3,'type':_0x2bf6('0x11d')+_0x43e424,'data':_0x399b69,'createdAt':new Date(),'authorId':_0x41e488,'attributes':_0x318069});return this[_0x2bf6('0xc4')]('formatBlock:'+_0x43e424,_0x106aa3,_0x41e488,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x4af135,_0x5a587c)),_0xc40087;}}[_0x2bf6('0x89')](_0x568ca1,_0xcd0fc,_0x1d4759=[],_0x2cb1c1=null,_0x47eb5b={}){_0xcd0fc[_0x2bf6('0x64')]||(_0xcd0fc[_0x2bf6('0x64')]=_0xcd0fc['commandName']);const _0x4a3b9b=_0x568ca1[0x0];_0xcd0fc[_0x2bf6('0x143')]=_0x4a3b9b['is'](_0x2bf6('0xd1')),_0x2cb1c1=_0x2cb1c1||$t(_0xcd0fc);const _0x7b0dfd=_0x1d4759[_0x2bf6('0x5c')](_0x16922d=>Rt(_0x16922d,this[_0x2bf6('0x49')])),_0x15ea62=_0x4a3b9b['is'](_0x2bf6('0xd1'))?_0x568ca1:_0x568ca1[_0x2bf6('0x5c')](_0xea0a0e=>Rt(_0xea0a0e,this['_model']));if(_0x2bf6('0x132')===this[_0x2bf6('0x1d')]){const _0x349779=this[_0x2bf6('0x12e')]['getSuggestionCallback']('formatBlock',_0x2cb1c1,_0x2bf6('0x2d'));return this['forceDefaultExecution'](()=>_0x349779(_0x15ea62,_0xcd0fc,_0x47eb5b)),null;}_0x7b0dfd[_0x2bf6('0x137')](..._0x15ea62);let _0x5eeb5f=!0x0;for(const _0x4d4bc6 of _0x7b0dfd)if(!this[_0x2bf6('0x8f')](_0x4d4bc6)){_0x5eeb5f=!0x1;break;}if(_0x5eeb5f&&_0x2bf6('0x4d')!==this[_0x2bf6('0x1d')]){const _0x56767b=this[_0x2bf6('0x12e')]['getSuggestionCallback'](_0x2bf6('0xb3'),_0x2cb1c1,'accept');return this[_0x2bf6('0x10')](()=>_0x56767b(_0x15ea62,_0xcd0fc,_0x47eb5b)),null;}const _0x257723=this[_0x2bf6('0xf2')][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'];for(const _0x216092 of this[_0x2bf6('0xef')]()){if(_0x216092[_0x2bf6('0xdf')]['id']!=_0x257723['id'])continue;if(_0x2bf6('0xb3')!=_0x216092[_0x2bf6('0xec')]||_0x216092[_0x2bf6('0x88')][_0x2bf6('0x64')]!=_0xcd0fc[_0x2bf6('0x64')])continue;const _0x22fed9=_0x216092[_0x2bf6('0xaa')]==_0x2cb1c1;for(let _0x4efda5=0x0;_0x4efda5<_0x15ea62[_0x2bf6('0xf5')];_0x4efda5++){const _0x497591=_0x15ea62[_0x4efda5];for(const _0x54624a of _0x216092[_0x2bf6('0xbb')]()){const _0x13f658=_0x54624a['getRange']();if(_0x497591[_0x2bf6('0xcc')](_0x13f658)){_0x22fed9?(_0x15ea62[_0x2bf6('0xe8')](_0x4efda5,0x1),_0x4efda5--):_0x216092[_0x2bf6('0x13f')](_0x54624a[_0x2bf6('0xb1')]);break;}}}}if(0x0==_0x15ea62['length'])return null;const _0x4086b2=this[_0x2bf6('0x12e')][_0x2bf6('0x9')]('formatBlock',_0x2cb1c1,_0x2bf6('0x30'));for(const _0x33b3ee of this[_0x2bf6('0xef')]())if(_0x33b3ee[_0x2bf6('0xdf')]['id']==_0x257723['id']&&'formatBlock'==_0x33b3ee[_0x2bf6('0xec')]&&_0x33b3ee[_0x2bf6('0x88')][_0x2bf6('0x64')]==_0xcd0fc[_0x2bf6('0x64')]&&_0x33b3ee[_0x2bf6('0xaa')]==_0x2cb1c1&&(_0x4086b2(_0x33b3ee[_0x2bf6('0x4e')](),_0x15ea62)||_0x4086b2(_0x15ea62,_0x33b3ee[_0x2bf6('0x4e')]()))){for(const _0x140d6a of _0x15ea62)_0x33b3ee[_0x2bf6('0x107')](_0x140d6a);return _0x33b3ee;}const _0x3d3ffc=_0x14cdfd(),_0xa9a253=_0x257723['id'],_0x2dfc33=_0x2bf6('0x11d')+_0x2cb1c1,_0x3e6a2b=this[_0x2bf6('0x5f')]({'id':_0x3d3ffc,'type':_0x2dfc33,'data':_0xcd0fc,'createdAt':new Date(),'authorId':_0xa9a253,'attributes':_0x47eb5b});for(const _0xaed4a3 of _0x15ea62)this[_0x2bf6('0xc4')](_0x2dfc33,_0x3d3ffc,_0xa9a253,_0xaed4a3,_0x3dcbb7[_0x2bf6('0xc0')]());return _0x3e6a2b;}[_0x2bf6('0xdb')](_0x59b9d3,_0x35df43=null,_0x5870d9={}){if(_0x59b9d3[_0x2bf6('0x141')])return null;const _0x45a95e=this[_0x2bf6('0xf2')][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'],_0x131faa=new _0x4f1a19(_0x59b9d3[_0x2bf6('0x95')],_0x59b9d3[_0x2bf6('0xb8')]);for(const {suggestion:_0x562a07,meta:_0x33554f}of this[_0x2bf6('0x36')](_0x131faa,_0x2bf6('0x9c')))if(_0x33554f[_0x2bf6('0x47')]&&!_0x33554f[_0x2bf6('0x5')]){if(_0x562a07['isMultiRange']){const _0x480232=_0x562a07[_0x2bf6('0x4e')]()[_0x2bf6('0xd7')](_0x5b9535=>'$graveyard'!=_0x5b9535['root'][_0x2bf6('0x42')]);_0x480232['every'](_0x55deb3=>_0x131faa[_0x2bf6('0xa0')](_0x55deb3,!0x0))&&_0x562a07[_0x2bf6('0x38')]();if(_0x480232[_0x2bf6('0x131')](_0x43d0b1=>_0x43d0b1[_0x2bf6('0xa0')](_0x131faa,!0x0))){const _0x2e7f2d=this['_suggestionFactory'][_0x2bf6('0x9')](_0x2bf6('0x73'),_0x35df43,'accept');return this['forceDefaultExecution'](()=>_0x2e7f2d([_0x131faa],null,_0x5870d9)),null;}}else{const _0x2771ad=_0x131faa[_0x2bf6('0x110')](_0x562a07[_0x2bf6('0x61')]());null!==_0x2771ad&&_0x562a07['_onDiscard']([_0x2771ad],null,_0x5870d9);}}if(_0x131faa[_0x2bf6('0xe3')](),_0x131faa['isCollapsed']||'$graveyard'==_0x131faa[_0x2bf6('0xf3')][_0x2bf6('0x42')])return null;let _0x47defa=null,_0x372f9b=_0x131faa[_0x2bf6('0x95')],_0x12699c=_0x131faa[_0x2bf6('0xb8')];for(const {suggestion:_0xf18def,meta:_0xb87701}of this['_findSuggestions'](_0x131faa,_0x2bf6('0x73')))if(_0xb87701[_0x2bf6('0x47')]){if(_0xf18def[_0x2bf6('0x8c')]&&this[_0x2bf6('0x10f')]){let _0x33fcdc=!0x0;for(const _0x21e266 of _0xf18def[_0x2bf6('0x4e')]()){if(_0x21e266[_0x2bf6('0xa0')](_0x131faa,!0x0))return _0xf18def;_0x131faa[_0x2bf6('0xa0')](_0x21e266)||(_0x33fcdc=!0x1);}_0x33fcdc&&_0xf18def['discard']();}else{const _0x4c9c48=_0xf18def[_0x2bf6('0x61')]();if(_0x4c9c48[_0x2bf6('0xa0')](_0x131faa,!0x0)){if(!this[_0x2bf6('0x10f')]&&_0xb87701['containsRangeInObject'])continue;return _0xf18def;}_0x372f9b=_0x372f9b[_0x2bf6('0x103')](_0x4c9c48[_0x2bf6('0x95')])?_0x372f9b:_0x4c9c48[_0x2bf6('0x95')],_0x12699c=_0x12699c[_0x2bf6('0x11a')](_0x4c9c48['end'])?_0x12699c:_0x4c9c48[_0x2bf6('0xb8')],_0x47defa?_0x4c9c48['start']['isBefore'](_0x47defa[_0x2bf6('0x61')]()[_0x2bf6('0x95')])?(_0x47defa['removeMarkers'](),_0x47defa=_0xf18def):_0xf18def[_0x2bf6('0x9d')]():_0x47defa=_0xf18def;}}if(_0x47defa)return this[_0x2bf6('0xed')](_0x47defa,this[_0x2bf6('0x49')]['createRange'](_0x372f9b,_0x12699c)),_0x47defa;{const _0x8efed9=_0x14cdfd(),_0x5bcea8=this['_model'][_0x2bf6('0x51')](_0x372f9b,_0x12699c),_0x5243ef=_0x45a95e['id'],_0x2565f8=_0x35df43?'deletion:'+_0x35df43:_0x2bf6('0x73'),_0x1cf13f=this[_0x2bf6('0x5f')]({'id':_0x8efed9,'type':_0x2565f8,'createdAt':new Date(),'authorId':_0x5243ef,'attributes':_0x5870d9});return this[_0x2bf6('0xc4')](_0x2565f8,_0x8efed9,_0x5243ef,_0x5bcea8),_0x1cf13f;}}[_0x2bf6('0x4')](_0x211f06,_0x3d45e7=_0x2bf6('0xd5'),_0x407524={}){const _0x40f147=this['editor']['plugins']['get'](_0x2bf6('0x5d'))['me'],_0x56e3ce=_0x211f06['map'](_0x3daa25=>new _0x4f1a19(_0x3daa25['start'],_0x3daa25[_0x2bf6('0xb8')])),_0x3c9bcb=new Set();for(const _0x5f3bbb of _0x56e3ce)for(const {suggestion:_0x13ec18,meta:_0xccdd44}of this[_0x2bf6('0x36')](_0x5f3bbb,'insertion'))_0xccdd44[_0x2bf6('0x47')]&&!_0xccdd44['isNextTo']&&_0x3c9bcb[_0x2bf6('0x4c')](_0x13ec18);for(const _0xdcffed of _0x3c9bcb)if(_0xdcffed[_0x2bf6('0x8c')]){const _0x5ef85=_0xdcffed[_0x2bf6('0x4e')]();(!_0xdcffed[_0x2bf6('0xf8')]||!_0xdcffed[_0x2bf6('0xf8')][_0x2bf6('0xf')])&&(_0x5ef85[_0x2bf6('0x65')](_0x5449a8=>_0x56e3ce['some'](_0x395505=>_0x395505[_0x2bf6('0xa0')](_0x5449a8,!0x0)))&&_0xdcffed['discard']());if(_0x56e3ce[_0x2bf6('0x65')](_0x52755b=>_0x5ef85['some'](_0x504acf=>_0x504acf[_0x2bf6('0xa0')](_0x52755b,!0x0)))){const _0x343205=this[_0x2bf6('0x12e')][_0x2bf6('0x9')]('deletion',_0x3d45e7,'accept');return this['forceDefaultExecution'](()=>_0x343205(_0x211f06,null,_0x407524)),null;}}else{const _0x2990fe=_0xdcffed[_0x2bf6('0x61')]();_0x56e3ce[_0x2bf6('0x131')](_0x4876c8=>_0x4876c8['containsRange'](_0x2990fe,!0x0))&&_0xdcffed[_0x2bf6('0x38')]();if(_0x56e3ce[_0x2bf6('0x65')](_0x5a5ae9=>_0x2990fe[_0x2bf6('0xa0')](_0x5a5ae9,!0x0))){const _0x1bde98=this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x2bf6('0x73'),_0x3d45e7,_0x2bf6('0x2d'));return this[_0x2bf6('0x10')](()=>_0x1bde98(_0x56e3ce,null,_0x407524)),null;}}const _0x412051=this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x2bf6('0x73'),_0x3d45e7,'join');let _0x3396d4=null;for(const _0x4c92e1 of this['getSuggestions']())if(_0x4c92e1[_0x2bf6('0xdf')]['id']==_0x40f147['id']&&_0x4c92e1['isInContent']&&'deletion'==_0x4c92e1[_0x2bf6('0xec')]&&_0x4c92e1[_0x2bf6('0xaa')]==_0x3d45e7&&(_0x412051(_0x4c92e1[_0x2bf6('0x4e')](),_0x56e3ce)||_0x412051(_0x56e3ce,_0x4c92e1[_0x2bf6('0x4e')]()))){if(_0x3396d4){if(_0x4c92e1[_0x2bf6('0x74')]&&_0x4c92e1[_0x2bf6('0x74')][_0x2bf6('0xf5')])continue;for(const _0x36bfda of _0x4c92e1[_0x2bf6('0x4e')]())_0x3396d4[_0x2bf6('0xab')](_0x36bfda)||_0x3396d4[_0x2bf6('0x107')](_0x36bfda);_0x4c92e1[_0x2bf6('0x9d')]();}else{_0x3396d4=_0x4c92e1;for(const _0x2cb07a of _0x56e3ce)_0x4c92e1[_0x2bf6('0xab')](_0x2cb07a)||_0x4c92e1[_0x2bf6('0x107')](_0x2cb07a);}}if(_0x3396d4)return _0x3396d4;_0x3c9bcb[_0x2bf6('0x52')]();for(const _0x11aa94 of _0x56e3ce)for(const {suggestion:_0x7ab101,meta:_0x4c0231}of this[_0x2bf6('0x36')](_0x11aa94,'deletion'))_0x4c0231[_0x2bf6('0x47')]&&_0x3c9bcb[_0x2bf6('0x4c')](_0x7ab101);for(const _0x3b1539 of _0x3c9bcb){const _0xb31708=_0x3b1539[_0x2bf6('0x4e')]();if(!_0x407524||!_0x407524['skipNestingCheck']){if(_0x56e3ce[_0x2bf6('0x65')](_0x4a996d=>_0xb31708[_0x2bf6('0x131')](_0x5d768c=>_0x5d768c['containsRange'](_0x4a996d,!0x0))))return _0x3b1539;}(!_0x3b1539[_0x2bf6('0xf8')]||!_0x3b1539['attributes'][_0x2bf6('0xf')])&&(_0xb31708[_0x2bf6('0x65')](_0x2e1ae2=>_0x56e3ce[_0x2bf6('0x131')](_0x226d7d=>_0x226d7d[_0x2bf6('0xa0')](_0x2e1ae2,!0x0)))&&_0x3b1539['discard']());}const _0x53dc75=_0x14cdfd(),_0xbf1d3d=_0x40f147['id'],_0x32184c='deletion:'+_0x3d45e7,_0x227025=this[_0x2bf6('0x5f')]({'id':_0x53dc75,'type':_0x32184c,'createdAt':new Date(),'authorId':_0xbf1d3d,'attributes':_0x407524});for(const _0x50de15 of _0x56e3ce)_0x50de15[_0x2bf6('0xe3')](),_0x50de15[_0x2bf6('0x141')]||_0x2bf6('0x16')==_0x50de15[_0x2bf6('0xf3')][_0x2bf6('0x42')]||this['_addSuggestionMarker'](_0x32184c,_0x53dc75,_0xbf1d3d,_0x50de15,_0x3dcbb7['getMultiRangeId']());return _0x227025;}['_setSuggestionRange'](_0x53ec95,_0xb3d70d){const _0x492d91=_0x53ec95['getFirstMarker']();this[_0x2bf6('0x49')]['change'](_0x2acc25=>{_0x2acc25[_0x2bf6('0x72')](_0x492d91,{'range':_0xb3d70d});});}[_0x2bf6('0x7f')](_0x1d1c91){const _0x2c425f=_0x1d1c91['id'],_0x426b98=this[_0x2bf6('0xf2')][_0x2bf6('0xc3')][_0x2bf6('0xf0')](_0x2bf6('0x12a'));this['_commentsRepository'][_0x2bf6('0x60')](_0x2c425f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x426b98,'threadId':_0x2c425f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1d9e24=this[_0x2bf6('0x0')][_0x2bf6('0x113')](_0x2c425f);_0x1d9e24[_0x2bf6('0x11c')](_0x2bf6('0x10a')),_0x1d9e24[_0x2bf6('0x10a')]=!0x1,_0x1d1c91[_0x2bf6('0x74')]=_0x1d9e24;}['_checkSuggestionCorrectness'](_0x47407c,_0x456c65,_0x16a3bd,_0x528e03){if(_0x47407c[_0x2bf6('0xec')]!=_0x456c65||_0x47407c[_0x2bf6('0xaa')]!=_0x16a3bd||_0x47407c[_0x2bf6('0x111')]['id']!=_0x528e03)throw this[_0x2bf6('0xf2')][_0x2bf6('0x18')](_0x2bf6('0xf4')),new _0x1237ef('track-changes-suggestion-data-mismatch',this);}[_0x2bf6('0xf9')](_0x3c6402,_0x5b48c2){const _0x582903=_0x3c6402[_0x2bf6('0x61')]();if(_0x5b48c2['isEqual'](_0x582903))_0x3c6402['removeMarkers']();else{if(_0x582903['containsRange'](_0x5b48c2)){const _0x3daaf7=this['_model'][_0x2bf6('0x32')](_0x5b48c2[_0x2bf6('0x95')]['nodeBefore'],_0x2bf6('0xb8'));this['_setSuggestionRange'](_0x3c6402,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x582903[_0x2bf6('0x95')],_0x3daaf7));const _0x4f754b=_0x14cdfd(),_0x400c50=_0x3c6402[_0x2bf6('0x111')]['id'],_0x3a162b=_0x3c6402[_0x2bf6('0xec')]+':'+_0x3c6402['subType'];this['_setSuggestionData']({'id':_0x4f754b,'type':_0x3a162b,'createdAt':new Date(),'authorId':_0x400c50,'data':_0x3c6402[_0x2bf6('0x88')],'attributes':_0x3c6402[_0x2bf6('0xf8')]});const _0x2ce050=this[_0x2bf6('0x49')][_0x2bf6('0x32')](_0x5b48c2['end'][_0x2bf6('0x63')],'after'),_0x53ec5c=this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x2ce050,_0x582903['end']);this['_addSuggestionMarker'](_0x3a162b,_0x4f754b,_0x400c50,_0x53ec5c);}else{if(_0x582903['containsPosition'](_0x5b48c2['start'])){const _0x24f049=this[_0x2bf6('0x49')][_0x2bf6('0x32')](_0x5b48c2[_0x2bf6('0x95')][_0x2bf6('0x27')],_0x2bf6('0xb8'));this['_setSuggestionRange'](_0x3c6402,this[_0x2bf6('0x49')]['createRange'](_0x582903[_0x2bf6('0x95')],_0x24f049));}else{const _0x311a65=this[_0x2bf6('0x49')][_0x2bf6('0x32')](_0x5b48c2['end']['parent'],_0x2bf6('0xe0'));this['_setSuggestionRange'](_0x3c6402,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x311a65,_0x582903[_0x2bf6('0xb8')]));}}}}['_rangeIsInLocalUserInsertion'](_0x26f8e8){for(const {suggestion:_0x5ce19a,meta:_0x65d3c6}of this['_findSuggestions'](_0x26f8e8,_0x2bf6('0x9c'))){if(!_0x65d3c6[_0x2bf6('0x47')])continue;const _0x315b5e=_0x5ce19a[_0x2bf6('0x4e')]();for(const _0x31a4d3 of _0x315b5e)if(!_0x26f8e8[_0x2bf6('0x12f')](_0x31a4d3)[_0x2bf6('0xf5')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x55f80f){const _0x2da9c7=this[_0x2bf6('0xf2')]['plugins'][_0x2bf6('0xf0')](_0x2bf6('0x5d'))[_0x2bf6('0x7d')](_0x55f80f);if(!_0x2da9c7)throw new _0x1237ef(_0x2bf6('0x11b'),this);return _0x2da9c7;}[_0x2bf6('0x11f')](_0x575908){const _0x868324=this[_0x2bf6('0xf2')][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d')),_0x55d81c=_0x3b862a(_0x2bf6('0x99')+_0x575908),_0x4bc892=_0x868324[_0x2bf6('0x7d')](_0x55d81c);return _0x4bc892||_0x868324[_0x2bf6('0xe4')]({'id':_0x55d81c,'name':_0x575908});}[_0x2bf6('0x12')](_0x7938fa,_0x3a7fc0,_0x5ca22d,_0x91b529,_0x2c063d){const _0x188d58=this['_getAuthorFromId'](_0x91b529),_0x14feae=this['_suggestionFactory'][_0x2bf6('0x3e')](_0x7938fa,_0x3a7fc0,_0x5ca22d,_0x188d58,_0x2c063d,_0xb5da14=>this[_0x2bf6('0x106')](_0x5ca22d,{'attributes':_0xb5da14}));return this[_0x2bf6('0x54')](_0x14feae,_0x2bf6('0x2d'),()=>{this[_0x2bf6('0x106')](_0x5ca22d,{'state':_0x2bf6('0xea')});},{'priority':_0x2bf6('0x5b')}),this[_0x2bf6('0x54')](_0x14feae,'discard',()=>{this[_0x2bf6('0x106')](_0x5ca22d,{'state':_0x2bf6('0xe5')});},{'priority':_0x2bf6('0x5b')}),this[_0x2bf6('0x13e')][_0x2bf6('0x22')](_0x5ca22d,_0x14feae),this[_0x2bf6('0xfc')]['set'](_0x14feae,_0x2bf6('0x37')),_0x14feae;}[_0x2bf6('0x76')](_0x428192){const _0x497da1=_0x428192[_0x2bf6('0x127')](':');return{'group':_0x497da1[0x0],'type':_0x497da1[0x1],'subType':_0x497da1[_0x2bf6('0xf5')]>=0x5?_0x497da1[0x2]:null,'id':_0x497da1[_0x2bf6('0xf5')]<0x5?_0x497da1[0x2]:_0x497da1[0x3],'authorId':_0x497da1['length']<0x5?_0x497da1[0x3]:_0x497da1[0x4],'markerCount':0x6==_0x497da1[_0x2bf6('0xf5')]?_0x497da1[0x5]:null};}[_0x2bf6('0x9f')](_0x4b9aaf,_0x5936e4,_0x233100){const _0x2be735=_0x4b9aaf[_0x2bf6('0x61')](),_0x3cad24=_0x2be735['start'],_0x2ca5bc=_0x2be735[_0x2bf6('0xb8')];this['_setSuggestionRange'](_0x4b9aaf,this['_model'][_0x2bf6('0x51')](_0x3cad24,_0x5936e4));const _0x17db1b=_0x14cdfd(),_0x738b93=_0x4b9aaf[_0x2bf6('0x111')]['id'],_0x33dda3=_0x4b9aaf[_0x2bf6('0xec')]+(_0x4b9aaf[_0x2bf6('0xaa')]?':'+_0x4b9aaf[_0x2bf6('0xaa')]:'');this['_setSuggestionData']({'id':_0x17db1b,'type':_0x33dda3,'createdAt':new Date(),'authorId':_0x738b93,'originalSuggestionId':_0x4b9aaf['id'],'attributes':_0x4b9aaf['attributes'],'data':_0x4b9aaf[_0x2bf6('0x88')]}),_0x2bf6('0xb3')==_0x4b9aaf[_0x2bf6('0xec')]&&(_0x233100=this['_model']['createPositionBefore'](_0x233100[_0x2bf6('0x63')])),this[_0x2bf6('0xc4')](_0x33dda3,_0x17db1b,_0x738b93,this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x233100,_0x2ca5bc));}['_findSuggestions'](_0x528398,_0x4d520d=null){const _0xa89d99=[],_0x287cf9=this[_0x2bf6('0x49')]['schema'],_0x3b4c5f=this[_0x2bf6('0xf2')][_0x2bf6('0x120')][_0x2bf6('0xf0')](_0x2bf6('0x5d'))['me'];for(const _0x199625 of this[_0x2bf6('0xef')]())if(_0x199625[_0x2bf6('0x2c')]&&(!_0x4d520d||_0x199625[_0x2bf6('0xec')]==_0x4d520d))for(const _0x186dec of _0x199625[_0x2bf6('0x4e')]()){const _0x547a72=_0x528398[_0x2bf6('0x95')]['isEqual'](_0x186dec[_0x2bf6('0xb8')])||_0x528398[_0x2bf6('0xb8')][_0x2bf6('0xcc')](_0x186dec['start']);if(_0x547a72||_0x528398[_0x2bf6('0x110')](_0x186dec)){const _0x4e9172=_0x528398['containsRange'](_0x186dec)&&Bt(_0x287cf9,_0x186dec[_0x2bf6('0x95')],_0x528398),_0x14c4ba=_0x186dec[_0x2bf6('0xa0')](_0x528398)&&Bt(_0x287cf9,_0x528398['start'],_0x186dec);_0xa89d99['push']({'suggestion':_0x199625,'meta':{'isOwn':_0x3b4c5f==_0x199625['author'],'isNextTo':_0x547a72,'isInsideObject':_0x4e9172,'containsRangeInObject':_0x14c4ba}});break;}}return _0xa89d99;}['_addSuggestionMarker'](_0x512efc,_0x338b8e,_0x350a55,_0x2f456c,_0x53d763){this[_0x2bf6('0x49')][_0x2bf6('0xb9')](_0x425f04=>{let _0x21bf3b=_0x2bf6('0x140')+_0x512efc+':'+_0x338b8e+':'+_0x350a55;_0x53d763&&(_0x21bf3b=_0x21bf3b+':'+_0x53d763),_0x425f04[_0x2bf6('0x43')](_0x21bf3b,{'range':_0x2f456c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2bf6('0xf1')](_0xc98891){const _0x3389f0=_0xc98891[_0x2bf6('0xca')],_0x28a3aa=_0xc98891[_0x2bf6('0x33')];_0xc98891['previous']=null,null!=_0x3389f0&&(_0x3389f0[_0x2bf6('0x33')]=null),_0xc98891['next']=null,null!=_0x28a3aa&&(_0x28a3aa['previous']=null),_0x2bf6('0xa8')==this[_0x2bf6('0xfc')][_0x2bf6('0xf0')](_0xc98891)&&(this[_0x2bf6('0xfc')][_0x2bf6('0x22')](_0xc98891,'removed'),this[_0x2bf6('0x6b')](_0x2bf6('0x118'),_0xc98891,_0x3389f0,_0x28a3aa));}[_0x2bf6('0x5f')](_0x5b17f7){const _0x533107=_0x5b17f7['id'],_0x1c32bf=this['addSuggestionData'](_0x5b17f7);if(this['_adapter']&&this[_0x2bf6('0xa2')][_0x2bf6('0x9a')]){const _0x3ef672=this['editor']['plugins'][_0x2bf6('0xf0')]('PendingActions'),_0x3eb377=_0x1c32bf[_0x2bf6('0x114')],_0x5c5c7e=_0x1c32bf['subType']?_0x1c32bf['type']+':'+_0x1c32bf['subType']:_0x1c32bf[_0x2bf6('0xec')],_0x431296=this[_0x2bf6('0xf2')][_0x2bf6('0x58')],_0x3658ae=_0x3ef672[_0x2bf6('0x4c')](_0x4ce5de(_0x431296,'PENDING_ACTION_SUGGESTION')),_0x111506={'id':_0x533107,'type':_0x5c5c7e,'hasComments':_0x3eb377,'data':_0x5b17f7[_0x2bf6('0x88')]||null,'originalSuggestionId':_0x5b17f7[_0x2bf6('0xcd')]||null,'attributes':_0x1c32bf[_0x2bf6('0xf8')]};this['_adapter'][_0x2bf6('0x9a')](_0x111506)[_0x2bf6('0x1b')](_0x27d0b8=>{_0x1c32bf['_saved']=!0x0,_0x3ef672[_0x2bf6('0x135')](_0x3658ae),_0x27d0b8&&_0x27d0b8[_0x2bf6('0x39')]&&(this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x533107)[_0x2bf6('0x39')]=_0x27d0b8[_0x2bf6('0x39')]);})[_0x2bf6('0x19')](_0x5b7b59=>{throw _0x1d61a2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model'][_0x2bf6('0xc1')]({'isUndoable':!0x1},()=>{_0x1c32bf[_0x2bf6('0x38')]();}),_0x1c32bf['stopListening'](),this[_0x2bf6('0x13e')][_0x2bf6('0x82')](_0x1c32bf['id']),this[_0x2bf6('0xfc')]['delete'](_0x1c32bf),_0x5b7b59;});}return _0x1c32bf;}[_0x2bf6('0x106')](_0x4fa19a,_0x1cc165){const _0x53e011=this[_0x2bf6('0xf2')][_0x2bf6('0x120')]['get'](_0x2bf6('0x57')),_0x535ae5=this['getSuggestion'](_0x4fa19a);if(this[_0x2bf6('0xa2')]&&this[_0x2bf6('0xa2')][_0x2bf6('0x1c')]){if(_0x535ae5[_0x2bf6('0x96')]){const _0x29c67a=_0x53e011[_0x2bf6('0x4c')](_0x4ce5de(this[_0x2bf6('0xf2')]['locale'],_0x2bf6('0x53')));this[_0x2bf6('0xa2')]['updateSuggestion'](_0x4fa19a,_0x1cc165)[_0x2bf6('0x1b')](()=>{_0x53e011[_0x2bf6('0x135')](_0x29c67a);});}else _0x535ae5['on'](_0x2bf6('0x122'),()=>{this['_updateSuggestionData'](_0x4fa19a,_0x1cc165);});}}['_getSuggestionData'](_0x2168c7){if(!this[_0x2bf6('0xa2')]||!this['_adapter'][_0x2bf6('0xde')])throw new _0x1237ef(_0x2bf6('0xfb'),this);return this[_0x2bf6('0xa2')][_0x2bf6('0xde')](_0x2168c7);}[_0x2bf6('0xfe')](_0x5e5fc1){const {id:_0x304484,type:_0x378b1b,subType:_0x5d1086,authorId:_0x4a495c}=this[_0x2bf6('0x76')](_0x5e5fc1),_0x237a48=this[_0x2bf6('0x13e')][_0x2bf6('0xf0')](_0x304484)||this[_0x2bf6('0x12')](_0x378b1b,_0x5d1086,_0x304484,_0x4a495c,{});switch(this[_0x2bf6('0xd0')](_0x237a48,_0x378b1b,_0x5d1086,_0x4a495c),this['_suggestionState']['get'](_0x237a48)){case _0x2bf6('0x37'):this[_0x2bf6('0x115')](_0x304484)[_0x2bf6('0x1b')](_0x374c1d=>{let _0x1e6d43=Promise['resolve']();_0x374c1d[_0x2bf6('0x114')]&&(_0x1e6d43=this[_0x2bf6('0x0')][_0x2bf6('0x3b')]({'channelId':this[_0x2bf6('0xf2')]['config'][_0x2bf6('0xf0')](_0x2bf6('0x12a')),'threadId':_0x304484})),_0x1e6d43[_0x2bf6('0x1b')](()=>{this[_0x2bf6('0x41')](_0x374c1d)[_0x2bf6('0x96')]=!0x0;});}),this[_0x2bf6('0xfc')][_0x2bf6('0x22')](_0x237a48,_0x2bf6('0xac'));break;case'removed':this[_0x2bf6('0x106')](_0x304484,{'state':_0x2bf6('0xba')});case _0x2bf6('0x1a'):this[_0x2bf6('0xfc')]['set'](_0x237a48,_0x2bf6('0xa8')),this[_0x2bf6('0x6b')](_0x2bf6('0xa'),_0x237a48);break;case _0x2bf6('0xa8'):this[_0x2bf6('0x6b')]('suggestionChanged',_0x237a48);}return _0x237a48[_0x2bf6('0x70')](_0x5e5fc1),_0x237a48;}[_0x2bf6('0xae')](_0x4a4526){const _0x5a178d=Array['from'](_0x4a4526)[_0x2bf6('0xd7')](_0x2729d6=>!_0x2729d6[_0x2bf6('0x8c')]),_0x186a02=this[_0x2bf6('0xef')]({'skipNotAttached':!0x0})[_0x2bf6('0xd7')](_0x2c3d17=>!_0x2c3d17[_0x2bf6('0x8c')]),_0x5194ac=_0x186a02[_0x2bf6('0xd7')](_0x5154fa=>!_0x4a4526['has'](_0x5154fa)),_0x2e47da=new Map(_0x186a02[_0x2bf6('0x5c')](_0x55c094=>[_0x55c094,this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x55c094[_0x2bf6('0xec')],_0x55c094[_0x2bf6('0xaa')],'chain')])),_0x14e49c=new Map(_0x186a02[_0x2bf6('0x5c')](_0x105bcd=>[_0x105bcd,_0x105bcd[_0x2bf6('0x61')]()])),_0x1a08b3=new Set(),_0x5266cc=new Set();for(let _0x33cccc=0x0;_0x33cccc<_0x5a178d[_0x2bf6('0xf5')];_0x33cccc++)_0x5e8672(_0x5a178d[_0x33cccc],_0x5a178d,_0x33cccc+0x1);for(let _0x4a578c=0x0;_0x4a578c<_0x5a178d['length'];_0x4a578c++)_0x5e8672(_0x5a178d[_0x4a578c],_0x5194ac,0x0);for(let _0x198f2d=0x0;_0x198f2d<_0x5a178d['length'];_0x198f2d++){const _0x7448d2=_0x5a178d[_0x198f2d];!_0x5266cc[_0x2bf6('0x25')](_0x7448d2)&&_0x7448d2['previous']&&(_0x7448d2[_0x2bf6('0xca')][_0x2bf6('0x33')]===_0x7448d2&&(_0x7448d2[_0x2bf6('0xca')]['next']=null),_0x7448d2[_0x2bf6('0xca')]=null),!_0x1a08b3[_0x2bf6('0x25')](_0x7448d2)&&_0x7448d2[_0x2bf6('0x33')]&&(_0x7448d2[_0x2bf6('0x33')][_0x2bf6('0xca')]===_0x7448d2&&(_0x7448d2[_0x2bf6('0x33')]['previous']=null),_0x7448d2[_0x2bf6('0x33')]=null);}function _0x5e8672(_0x4e14cf,_0x497b2e,_0xdfa17a){for(let _0x35640f=_0xdfa17a;_0x35640f<_0x497b2e[_0x2bf6('0xf5')];_0x35640f++){const _0x183306=_0x2c02a1(_0x4e14cf,_0x497b2e[_0x35640f]);_0x183306&&(_0x183306[0x0][_0x2bf6('0x33')]=_0x183306[0x1],_0x183306[0x1]['previous']=_0x183306[0x0],_0x1a08b3['add'](_0x183306[0x0]),_0x5266cc[_0x2bf6('0x4c')](_0x183306[0x1]));}}function _0x2c02a1(_0x5a00ed,_0x2da4e8){if(_0x5a00ed[_0x2bf6('0xdf')]['id']!==_0x2da4e8['author']['id'])return null;const _0xd21225=_0x2e47da['get'](_0x5a00ed)(_0x5a00ed,_0x2da4e8,_0x14e49c[_0x2bf6('0xf0')](_0x5a00ed),_0x14e49c['get'](_0x2da4e8));if(!_0xd21225)return null;return _0x2e47da[_0x2bf6('0xf0')](_0x2da4e8)(_0x5a00ed,_0x2da4e8,_0x14e49c['get'](_0x5a00ed),_0x14e49c[_0x2bf6('0xf0')](_0x2da4e8))?_0xd21225[0x1]['commentThread']&&_0xd21225[0x1]['commentThread'][_0x2bf6('0xf5')]?null:_0xd21225:null;}}['_joinWithAdjacentSuggestions'](_0x3c6b0b){const _0x193de0=Array[_0x2bf6('0xeb')](_0x3c6b0b),_0xf38187=this[_0x2bf6('0xef')]({'skipNotAttached':!0x0}),_0x2bf09e=_0xf38187[_0x2bf6('0xd7')](_0x15aae5=>!_0x3c6b0b[_0x2bf6('0x25')](_0x15aae5)),_0x1b7a63=new Map(_0x193de0[_0x2bf6('0x5c')](_0x4f6132=>[_0x4f6132,this[_0x2bf6('0x12e')][_0x2bf6('0x9')](_0x4f6132[_0x2bf6('0xec')],_0x4f6132[_0x2bf6('0xaa')],_0x2bf6('0x30'))])),_0x395574=new Map(_0xf38187[_0x2bf6('0x5c')](_0x1b6e4e=>[_0x1b6e4e,_0x1b6e4e['getRanges']()]));for(let _0x4acbd7=0x0;_0x4acbd7<_0x193de0[_0x2bf6('0xf5')];_0x4acbd7++){if(_0x202793(this,_0x193de0[_0x4acbd7],_0x193de0,_0x4acbd7+0x1))return!0x0;}for(let _0x2e5333=0x0;_0x2e5333<_0x193de0[_0x2bf6('0xf5')];_0x2e5333++){if(_0x202793(this,_0x193de0[_0x2e5333],_0x2bf09e,0x0))return!0x0;}return!0x1;function _0x202793(_0x384f6d,_0x44efb8,_0x570704,_0x46a849){for(let _0x49f5ab=_0x46a849;_0x49f5ab<_0x570704[_0x2bf6('0xf5')];_0x49f5ab++){const _0x3ffdf8=_0x570704[_0x49f5ab];if(_0x3ffdf8[_0x2bf6('0xec')]!==_0x44efb8[_0x2bf6('0xec')]||_0x3ffdf8[_0x2bf6('0xdf')]['id']!==_0x44efb8['author']['id']||_0x3ffdf8[_0x2bf6('0xaa')]!==_0x44efb8[_0x2bf6('0xaa')])continue;const _0x3e22ea=_0x1b7a63[_0x2bf6('0xf0')](_0x44efb8),_0x3b862b=_0x395574[_0x2bf6('0xf0')](_0x44efb8),_0x4e96f0=_0x395574['get'](_0x3ffdf8),_0x10641a=_0x44efb8['commentThread']&&_0x44efb8[_0x2bf6('0x74')][_0x2bf6('0xf5')],_0x3b0f9e=_0x3ffdf8['commentThread']&&_0x3ffdf8[_0x2bf6('0x74')][_0x2bf6('0xf5')];if(!_0x10641a&&_0x3e22ea(_0x4e96f0,_0x3b862b))return _0x384f6d[_0x2bf6('0x5a')](_0x3ffdf8,_0x44efb8),_0x395574[_0x2bf6('0x82')](_0x44efb8),!0x0;if(!_0x3b0f9e&&_0x3e22ea(_0x3b862b,_0x4e96f0))return _0x384f6d[_0x2bf6('0x5a')](_0x44efb8,_0x3ffdf8),_0x395574[_0x2bf6('0x82')](_0x3ffdf8),!0x0;}return!0x1;}}[_0x2bf6('0x5a')](_0x151053,_0x23ce51){if(_0x151053['isMultiRange'])for(const _0x14211a of _0x23ce51[_0x2bf6('0x4e')]())_0x151053[_0x2bf6('0x107')](_0x14211a);else{const _0x58a25a=_0x23ce51[_0x2bf6('0x61')]()['end'];this[_0x2bf6('0xed')](_0x151053,this[_0x2bf6('0x49')]['createRange'](_0x151053[_0x2bf6('0x61')]()[_0x2bf6('0x95')],_0x58a25a));}_0x23ce51['removeMarkers']();}}class Dt{constructor(_0x1b4f44){this[_0x2bf6('0x78')]=_0x1b4f44,this[_0x2bf6('0x49')]=_0x1b4f44[_0x2bf6('0x4b')],this[_0x2bf6('0x13')]=new Map(),this[_0x2bf6('0x15')]=new Map(),this[_0x2bf6('0xb7')]();}[_0x2bf6('0x3e')](_0x1fb1af,_0x3dc8e1,_0x33441b,_0x1fc75a,_0x412fa3,_0x5e8dfa){return new _0x3dcbb7(this[_0x2bf6('0x49')],{'type':_0x1fb1af,'subType':_0x3dc8e1,'id':_0x33441b,'author':_0x1fc75a,'creator':_0x1fc75a,'attributes':_0x412fa3,'onAttributesChange':_0x5e8dfa,'onAccept':(..._0x558ebc)=>this[_0x2bf6('0x9')](_0x1fb1af,_0x3dc8e1,'accept')(..._0x558ebc),'onDiscard':(..._0x5906c8)=>this['getSuggestionCallback'](_0x1fb1af,_0x3dc8e1,'discard')(..._0x5906c8)});}[_0x2bf6('0x101')](_0x5e9cad,_0x378343,_0x33c511,_0xf6259){const _0x54a88f=_0x5e9cad+':'+_0x378343+':'+_0x33c511;this['_customCallbacks'][_0x2bf6('0x22')](_0x54a88f,_0xf6259);}['getSuggestionCallback'](_0x4bbee5,_0x2b609c,_0x13c163){const _0x5641b7=_0x4bbee5+':'+_0x2b609c+':'+_0x13c163;return this[_0x2bf6('0x13')][_0x2bf6('0xf0')](_0x5641b7)||this[_0x2bf6('0x15')]['get'](_0x4bbee5+':'+_0x13c163);}[_0x2bf6('0xb7')](){const _0xe2ffc2=()=>{},_0x2ab1b4=_0x4dae44=>{_0x4dae44[_0x2bf6('0xbe')]((_0x521d4e,_0x1dca56)=>_0x521d4e[_0x2bf6('0x95')][_0x2bf6('0x103')](_0x1dca56['start'])?0x1:-0x1),this['_model'][_0x2bf6('0xb9')](_0x169b99=>{for(const _0x107e8d of _0x4dae44){let _0x20d1ea;_0x20d1ea=_0x107e8d[_0x2bf6('0xb8')][_0x2bf6('0x1e')]&&_0x107e8d[_0x2bf6('0xb8')]['parent']==_0x107e8d[_0x2bf6('0x95')][_0x2bf6('0x8b')]?_0x169b99[_0x2bf6('0x56')](_0x107e8d[_0x2bf6('0x95')][_0x2bf6('0x8b')],'on'):_0x169b99[_0x2bf6('0x56')](_0x107e8d),this[_0x2bf6('0x49')][_0x2bf6('0x104')](_0x20d1ea,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4d4e62=(_0x4e0bf9,_0x439387)=>{this[_0x2bf6('0x49')][_0x2bf6('0xb9')](_0xefae3e=>{const {commandName:_0x4979f9,commandParams:_0x19a935=[]}=_0x439387,_0x5ae35d=_0x4e0bf9[_0x2bf6('0x5c')](_0x2b0419=>(_t(_0x2b0419)&&(_0x2b0419=this[_0x2bf6('0x49')][_0x2bf6('0x51')](_0x2b0419[_0x2bf6('0xb8')])),_0x2b0419))[_0x2bf6('0xd7')](_0x4fbe8d=>'$graveyard'!==_0x4fbe8d[_0x2bf6('0xf3')][_0x2bf6('0x42')]);if(_0x5ae35d[_0x2bf6('0xf5')]<0x1)return;const _0x512531=Array[_0x2bf6('0xeb')](this[_0x2bf6('0x49')]['document']['selection'][_0x2bf6('0x4e')]())[_0x2bf6('0x5c')](_0xd39bd7=>_0x4f1a19[_0x2bf6('0xfa')](_0xd39bd7));_0xefae3e[_0x2bf6('0x8')](_0x5ae35d);for(const _0x47468f of this[_0x2bf6('0x78')][_0x2bf6('0x11e')][_0x2bf6('0x11e')]())_0x47468f[_0x2bf6('0x4f')]();_0x19a935[_0x2bf6('0x137')]({'forceDefaultExecution':!0x0}),this[_0x2bf6('0x78')][_0x2bf6('0x7e')](_0x4979f9,..._0x19a935);const _0xd024a=_0x512531[_0x2bf6('0xd7')](_0x11423c=>'$graveyard'!=_0x11423c['root']['rootName']);_0xd024a['length']>0x0&&_0xefae3e[_0x2bf6('0x8')](_0xd024a);for(const _0x5bd88e of _0x512531)_0x5bd88e[_0x2bf6('0xe3')]();});},_0x350ad3=(_0x9ebf79,_0x3f3903)=>0x1==_0x9ebf79['length']&&0x1==_0x3f3903[_0x2bf6('0xf5')]&&_0x9ebf79[0x0][_0x2bf6('0xb8')][_0x2bf6('0xcc')](_0x3f3903[0x0][_0x2bf6('0x95')]),_0xe1fda1=(_0x3eb96b,_0x2e7ab9,_0x13ac0c,_0x530c19)=>xt(_0x3eb96b,_0x2e7ab9,_0x13ac0c,_0x530c19,this['_model'])?[_0x3eb96b,_0x2e7ab9]:xt(_0x2e7ab9,_0x3eb96b,_0x530c19,_0x13ac0c,this[_0x2bf6('0x49')])?[_0x2e7ab9,_0x3eb96b]:null;this['_defaultCallbacks'][_0x2bf6('0x22')](_0x2bf6('0x31'),_0xe2ffc2),this['_defaultCallbacks'][_0x2bf6('0x22')]('insertion:discard',_0x2ab1b4),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x125'),_0x350ad3),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x87'),_0xe1fda1),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x2f'),_0x2ab1b4),this['_defaultCallbacks'][_0x2bf6('0x22')](_0x2bf6('0x100'),_0xe2ffc2),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0xdc'),_0x350ad3),this['_defaultCallbacks']['set'](_0x2bf6('0x124'),_0xe1fda1),this[_0x2bf6('0x15')]['set'](_0x2bf6('0x3'),_0x4d4e62),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x13a'),_0xe2ffc2),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x6'),_0x350ad3),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x77'),_0xe2ffc2),this[_0x2bf6('0x15')]['set'](_0x2bf6('0x130'),_0x4d4e62),this['_defaultCallbacks'][_0x2bf6('0x22')](_0x2bf6('0x81'),_0xe2ffc2),this[_0x2bf6('0x15')][_0x2bf6('0x22')](_0x2bf6('0x2e'),_0x350ad3),this['_defaultCallbacks'][_0x2bf6('0x22')](_0x2bf6('0xf6'),_0xe2ffc2);}}function Bt(_0x50e6c9,_0x1c9354,_0x5b0fec){for(const _0x2b9de7 of _0x1c9354[_0x2bf6('0x63')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2b9de7[_0x2bf6('0xf3')]==_0x2b9de7)return!0x1;if(!_0x5b0fec[_0x2bf6('0xc6')](_0x2b9de7))return!0x1;if(_0x50e6c9['isObject'](_0x2b9de7)||_0x50e6c9['isLimit'](_0x2b9de7))return!0x0;}return!0x1;}function _t(_0x5609e6){return _0x5609e6['end']['parent']==_0x5609e6['start'][_0x2bf6('0x8b')]&&_0x5609e6['end'][_0x2bf6('0xa5')];}function Mt(_0x228a1d,_0xcb9db,_0x52feba,_0x45e79c){const _0x3d401b=_0x50bcd4=>!_0x50bcd4['item']['is'](_0x2bf6('0xfd'))&&!_0x45e79c[_0x2bf6('0xe1')](_0x50bcd4['item']),_0x451f20=_0x228a1d[_0x2bf6('0x95')][_0x2bf6('0x17')](_0x3d401b),_0x26cc72=_0x228a1d[_0x2bf6('0xb8')][_0x2bf6('0x17')](_0x3d401b,{'direction':_0x2bf6('0x7a')});return(!_0x228a1d[_0x2bf6('0x95')][_0x2bf6('0xcc')](_0x451f20)||!_0x228a1d[_0x2bf6('0xb8')][_0x2bf6('0xcc')](_0x26cc72))&&(_0x451f20[_0x2bf6('0x103')](_0x26cc72)?_0x52feba['updateMarker'](_0xcb9db,{'range':_0x52feba[_0x2bf6('0x51')](_0x451f20,_0x26cc72)}):_0x52feba[_0x2bf6('0x13f')](_0xcb9db),!0x0);}function $t(_0xbc39a1){return _0x3b862a(_0xbc39a1);}function Nt(_0x1eaf6f){const _0x52270e=_0x1eaf6f[_0x2bf6('0x95')]['nodeAfter'];return _0x52270e&&_0x52270e['is'](_0x2bf6('0x3a'));}function Rt(_0x5e43ee,_0x1f0b2c){const _0x30e6ae=_0x1f0b2c[_0x2bf6('0xee')][_0x2bf6('0xe1')](_0x5e43ee)||_0x1f0b2c[_0x2bf6('0xee')]['isSelectable'](_0x5e43ee);return _0x1f0b2c[_0x2bf6('0x51')](_0x1f0b2c[_0x2bf6('0x32')](_0x5e43ee,_0x2bf6('0x84')),_0x30e6ae?_0x1f0b2c[_0x2bf6('0xcb')](_0x5e43ee):_0x1f0b2c[_0x2bf6('0x32')](_0x5e43ee,_0x2bf6('0xb8')));}function xt(_0x3ae403,_0x4919ab,_0x393f60,_0x15c07a,_0x25fb44){if(_0x393f60['end'][_0x2bf6('0xcc')](_0x15c07a[_0x2bf6('0x95')]))return!0x0;if(_0x3ae403[_0x2bf6('0xec')]!=_0x4919ab[_0x2bf6('0xec')])return!0x1;if(!_0x393f60[_0x2bf6('0xb8')][_0x2bf6('0x126')](_0x15c07a[_0x2bf6('0x95')]))return!0x1;const _0x1b3db5=_0x25fb44['createRange'](_0x393f60['end'],_0x15c07a[_0x2bf6('0x95')])[_0x2bf6('0xb0')]();for(const _0x306a6a of _0x1b3db5)if([_0x2bf6('0x6e'),_0x2bf6('0xc')][_0x2bf6('0x44')](_0x306a6a[_0x2bf6('0xec')])&&_0x25fb44[_0x2bf6('0xee')][_0x2bf6('0xce')](_0x306a6a[_0x2bf6('0x7')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x5ec0=['applyOperation','upcast','_addThreadToSuggestion','listenTo','addUser','insertion','forceDefaultExecution','for','start','markInlineFormat','createRange','map','insertion:','getAncestors','commands','consume','update:suggestion','markers','backward','stopListening','activeMarkers','addComment','getDifference','track-changes-command-not-found','$marker','commandName','author','_removeSuggestion','subType','clone','hasComments','_refreshSuggestionsChain','then','adapter','_cutOutSuggestionMarker','_trackFormatChanges','ck-suggestion-marker-formatBlock','plugins','commentThread','authorName','getSuggestionCallback','isLocal','discardSelectedSuggestions','isObject','authoredAt','length','define','getRanges','unbind','always','nodeBefore','conversion','discardAllSuggestions','resolve','lowest','isBefore','_customCallbacks','acceptSelectedSuggestions','rootName','suggestion-type','_createSuggestion','getFirstMarker','multi','high','registerPostFixer','markDeletion','return','getAttribute','rethrowUnexpectedError','insertContent','_model','addMarkerName','removeMarker:suggestion:formatBlock','remove','isCollapsed','getCustomProperty','collaboration.channelId','markerName','external:','moveTargetPosition','addSuggestion','elementEnd','trackChanges.mergeNestedSuggestions','howMany','formatBlock:','isIntersectingWithRange','createPositionAt','getIntersection','selection','dataReady','updateMarker','from','deletion:discard','forward','CommentsRepository','containsPosition','add','isUndo','elementToElement','pluginName','insertion:accept','_getAuthorFromId','ck-suggestion-marker','head','change','data','trackChanges','removed','type','setTo','root','isBlock','_enabledCommands','change:_saved','reconvertMarker','oldRange','end','rejected','split','_mergeNestedSuggestions','_splitMarkerName','config','dataDowncast','deletion','toJSON','formatBlock','createdAt','isLimit','highest','writer','createPositionBefore','refresh','deletion:chain','deletion:join','isNextTo','_breakSuggestionMarker','getLastMatchingPosition','addClass','_onDiscard','splitPosition','_editor','registerCustomCallback','error-saving-suggestion-data-suggestion-discarded','model','trackChanges.trackFormatChanges','splice','_adapter','notReady','batch','newRange','_suggestionState','_handleNewSuggestionMarker','value','values','PENDING_ACTION_SUGGESTION','toViewElement','creator','_commentsRepository','markMultiRangeInsertion','TrackChangesEditing','removeClass','createElement','range','getMarkers','addMarker','parent','updateSuggestion','suggestion:','PendingActions','editingDowncast','createRangeIn','widget','_isForcedDefaultExecutionBlock','getUser','_suggestionFactory','isAtStart','before','getChangedMarkers','substr','has','formatBlock:chain','_rangeIsInLocalUserInsertion','hasCommentThread','enableCommand','@external','fire','Users','isInsideObject','element','isInContent','isMultiRange','getFirstRange','differ','documentSelection','detach','markerToData','$textProxy','track-changes-suggestion-not-found','after','item','document','track-changes-user-not-found','_suggestions','every','bindElementToMarker','getNearestSelectionRange','catch','formatBlock:discard','sort','suggestion','getAllAdjacentSuggestions','some','ck-suggestion-marker--active','unbindElementFromMarkerName','_saved','ck-suggestion-marker-','acceptAllSuggestions','previous','_addSuggestionMarker','containerElement','acceptSuggestion','low','suggestionChanged','deleteContent','formatInline:chain','addHighlight','get','formatInline','size','set','setAttribute','getCommentThread','fromRange','ready','getSuggestions','multipleBlocks','removeMarker','default','attributes','markInsertion','addMarker:suggestion','schema','_findSuggestions','marker-count','getSuggestion','elementStart','removeAttribute','_getExternalAuthor','removeMarkers','addSuggestionData','_updateSuggestionData','next','formatGroupId','showSuggestionHighlights','formatInline:join','never','buildSuggestion','isEqual','_checkSuggestionCorrectness','consumable','formatInline:','getShiftedBy','_defaultCallbacks','deletion:','trackChangesCommand','addMarker:suggestion:formatBlock','getWalker','locale','mapper','skipNestingCheck','group','_getSuggestionData','position','_setSuggestionData','_joinSuggestions','chain','isDocumentOperation','$graveyard','hasSuggestion','isSelectable','createPositionAfter','join','nodeAfter','insert','execute','accept','filter','isAtEnd','discardSuggestion','editor','markerToHighlight','move','addRange','markerReady','containsItem','getItems','_registerDefaultCallbacks','push','isOwn','discard','markMultiRangeBlockFormat','suggestionLoaded','deletion:accept','name','createSelection','accepted','clear','containsRangeInObject','delete','stop','formatInline:discard','normal','includes','track-changes-suggestion-data-mismatch','setSelection','markerNameToElements','_setSuggestionRange','containsRange','_descriptionFactory','targetPosition'];(function(_0x4f287f,_0x5ec055){const _0x39af01=function(_0x10af73){while(--_0x10af73){_0x4f287f['push'](_0x4f287f['shift']());}};_0x39af01(++_0x5ec055);}(_0x5ec0,0x1b0));const _0x39af=function(_0x4f287f,_0x5ec055){_0x4f287f=_0x4f287f-0x0;let _0x39af01=_0x5ec0[_0x4f287f];return _0x39af01;};import{Plugin as _0x250295,PendingActions as _0x28ef4b}from'ckeditor5/src/core';import{LiveRange as _0x3b5b82}from'ckeditor5/src/engine';import{CKEditorError as _0x14653c,uid as _0x16cd6a,priorities as _0x511a76,logWarning as _0xd82b5d}from'ckeditor5/src/utils';import{toWidget as _0x11ace6}from'ckeditor5/src/widget';import{Users as _0x200b6e,hashObject as _0x2a29b6}from'ckeditor5-collaboration/src/collaboration-core';import _0xf78113 from'./commands/trackchangescommand';import _0x49f9ee from'./commands/acceptsuggestioncommand';import _0x3899d2 from'./commands/discardsuggestioncommand';import _0x219ed6 from'./commands/executeonallsuggestionscommand';import _0x3a708a from'./commands/executeonselectedsuggestionscommand';import _0x1760a0 from'./suggestion';import _0x3e6b2c from'./suggestiondescriptionfactory';import _0x300cf5 from'./integrations/alignment';import _0x298214 from'./integrations/basicstyles';import _0x4be9e5 from'./integrations/blockquote';import _0x32a3f7 from'./integrations/ckbox';import _0x29e731 from'./integrations/codeblock';import _0x4454ec from'./integrations/comments';import _0x914320 from'./integrations/deletecommand';import _0x1c036a from'./integrations/documentlist';import _0x2a8f12 from'./integrations/entercommand';import _0x91a114 from'./integrations/findandreplace';import _0x33af1a from'./integrations/font';import _0xf205b5 from'./integrations/formatpainter';import _0x15b8d1 from'./integrations/heading';import _0x3b2368 from'./integrations/highlight';import _0x48308 from'./integrations/horizontalline';import _0x8978fc from'./integrations/htmlembed';import _0x1e4fbd from'./integrations/image';import _0x1f6204 from'./integrations/imagereplace';import _0x2eae25 from'./integrations/importword';import _0x5e9226 from'./integrations/indent';import _0x4c2b30 from'./integrations/inputcommand';import _0x17a4e3 from'./integrations/link';import _0x393466 from'./integrations/list';import _0x3362b7 from'./integrations/listproperties';import _0xb17ae7 from'./integrations/mediaembed';import _0x29ef9a from'./integrations/mention';import _0x3472fb from'./integrations/pagebreak';import _0x458c70 from'./integrations/paragraph';import _0x104f5e from'./integrations/removeformat';import _0x973ba6 from'./integrations/restrictededitingmode';import _0x39ca8b from'./integrations/shiftentercommand';import _0x35720a from'./integrations/standardeditingmode';import _0x569738 from'./integrations/style';import _0x33e46f from'./integrations/table';import _0x1c4afa from'./integrations/tablemergesplit';import _0x1bc775 from'./integrations/tableheadings';import _0x3220a4 from'./integrations/tableclipboard';import _0x4e9dbe from'./integrations/tablecolumnresize';import _0x3d64e1 from'./integrations/template';import _0x2aed10 from'./integrations/tableofcontents';import _0x3a9470 from'./integrations/title';import _0x558a18 from'./integrations/undo';import{getTranslation as _0x13674c}from'./utils/common-translations';import _0x516be8 from'./integrations/tablecaption';import _0x4fd767 from'./integrations/documentlistproperties';import _0x736a75 from'./integrations/tableproperties';export default class p extends _0x250295{static get['requires'](){return[_0x39af('0x12e'),_0x200b6e,_0x28ef4b,_0x300cf5,_0x298214,_0x4be9e5,_0x32a3f7,_0x29e731,_0x4454ec,_0x914320,_0x1c036a,_0x4fd767,_0x2a8f12,_0x91a114,_0x33af1a,_0xf205b5,_0x15b8d1,_0x3b2368,_0x48308,_0x8978fc,_0x1e4fbd,_0x1f6204,_0x2eae25,_0x5e9226,_0x4c2b30,_0x17a4e3,_0x393466,_0x3362b7,_0xb17ae7,_0x29ef9a,_0x3472fb,_0x458c70,_0x104f5e,_0x973ba6,_0x39ca8b,_0x35720a,_0x569738,_0x33e46f,_0x1c4afa,_0x1bc775,_0x516be8,_0x3220a4,_0x4e9dbe,_0x2aed10,_0x736a75,_0x3d64e1,_0x3a9470,_0x558a18];}static get[_0x39af('0x133')](){return _0x39af('0x2f');}constructor(_0x66233c){function _0x13fadf(_0x226f76){return _0x226f76[_0x39af('0xdb')](_0x32801c=>String['fromCharCode'](_0x32801c))['join']('');}super(_0x66233c),this['set'](_0x39af('0xe4'),[]),this['on']('change:activeMarkers',(_0x2c9e42,_0x2f0f12,_0x5cda33,_0x14465e)=>{this[_0x39af('0x116')]['change'](()=>{for(const _0x474fd0 of[..._0x14465e,..._0x5cda33])this[_0x39af('0x116')][_0x39af('0xe1')][_0x39af('0x43')](_0x474fd0)&&_0x66233c['editing'][_0x39af('0x2')](_0x474fd0);});}),this[_0x39af('0xce')]=new _0x3e6b2c(this[_0x39af('0xb1')][_0x39af('0x1f')][_0x39af('0x81')],this[_0x39af('0xb1')][_0x39af('0x9b')]),this['_adapter']=null,this[_0x39af('0x3e')]=new Dt(this[_0x39af('0xb1')]),this[_0x39af('0x5a')]=new Map(),this['_commentsRepository']=_0x66233c[_0x39af('0xf5')]['get'](_0x39af('0x12e')),this['_enabledCommands']=new Set(),this[_0x39af('0x116')]=this[_0x39af('0xb1')][_0x39af('0x1f')],this[_0x39af('0x26')]=new WeakMap(),this[_0x39af('0x3c')]=!0x1,_0x66233c['config'][_0x39af('0xfe')]('trackChanges.trackFormatChanges',_0x39af('0x7d')),this['_trackFormatChanges']=_0x66233c['config'][_0x39af('0x72')](_0x39af('0x20')),_0x66233c[_0x39af('0x9')][_0x39af('0xfe')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x39af('0x7')]=_0x66233c[_0x39af('0x9')][_0x39af('0x72')](_0x39af('0x122')),this[_0x39af('0x98')]=new _0xf78113(_0x66233c,this[_0x39af('0x0')]),this[_0x13fadf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x13fadf([0x34,0x30,0x34,0x36,0x31,0x36,0x30,0x34]);}['init'](){const _0x45c449=this[_0x39af('0xb1')];_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0x39'))[_0x39af('0xb2')]({'model':_0x39af('0x61'),'view':_0x325c23=>{const {id:_0x1eb60f,type:_0x34bac9}=this[_0x39af('0x8')](_0x325c23[_0x39af('0x11d')]),_0x72e9a8=[_0x39af('0x136'),_0x39af('0x67')+_0x34bac9];let _0x3cd86c=0xbb8;return this[_0x39af('0xe4')][_0x39af('0xc8')](_0x325c23[_0x39af('0x11d')])&&(_0x72e9a8[_0x39af('0xb9')]('ck-suggestion-marker--active'),_0x3cd86c=0xbc2),_0x39af('0xb')==_0x34bac9&&(_0x3cd86c+=0x5),{'classes':_0x72e9a8,'attributes':{'data-suggestion':_0x1eb60f},'priority':_0x3cd86c};}}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0xa'))[_0x39af('0x130')](_0x4da753=>{_0x4da753['on'](_0x39af('0x80'),(_0x524164,_0x3b3b5a,_0x4bc8a1)=>{if(!_0x4bc8a1['options'][_0x39af('0x8d')])return;const _0x14733f=_0x3b3b5a[_0x39af('0x57')];if(!_0x14733f)return;const _0x2a191c=_0x4bc8a1['mapper'][_0x39af('0x2b')](_0x14733f);_0x45c449[_0x39af('0x1f')][_0x39af('0x81')][_0x39af('0xfb')](_0x14733f)&&_0x2a191c&&!_0x2a191c[_0x39af('0x11b')](_0x39af('0x3b'))&&_0x2a191c['is'](_0x39af('0x6b'))&&_0x11ace6(_0x2a191c,_0x4bc8a1[_0x39af('0x11')]);},{'priority':'high'});}),_0x45c449[_0x39af('0x103')]['for']('dataDowncast')[_0x39af('0xb2')]({'model':_0x39af('0x61'),'view':(_0xed88b3,_0xc5ffdb)=>{if(!_0xc5ffdb['options'][_0x39af('0x8d')])return null;const {type:_0x2fb9a5}=this['_splitMarkerName'](_0xed88b3['markerName']);return{'classes':[_0x39af('0x136'),_0x39af('0x67')+_0x2fb9a5],'priority':0xbb8};}});const _0x3e13d9=({showActiveMarkers:_0x1bbe81=!0x0}={})=>(_0x480b3e,_0x3feb63,_0x205a40)=>{if(!_0x3feb63[_0x39af('0x57')])return;if(_0x3feb63['item']['is'](_0x39af('0x128')))return void _0x205a40[_0x39af('0x93')]['consume'](_0x3feb63[_0x39af('0x57')],_0x480b3e[_0x39af('0xbf')]);const _0x22235f=_0x205a40['mapper'][_0x39af('0x2b')](_0x3feb63[_0x39af('0x57')]);if(!(_0x3feb63[_0x39af('0x57')]['is']('element')&&_0x45c449[_0x39af('0x1f')][_0x39af('0x81')][_0x39af('0x13f')](_0x3feb63['item'])&&!_0x22235f[_0x39af('0x11b')](_0x39af('0x71'))))return;const {id:_0xb2319f}=this[_0x39af('0x8')](_0x3feb63[_0x39af('0x11d')]);_0x205a40[_0x39af('0x11')][_0x39af('0x19')]([_0x39af('0x136'),_0x39af('0xf4')],_0x22235f),_0x205a40[_0x39af('0x11')][_0x39af('0x76')]('data-suggestion',_0xb2319f,_0x22235f),_0x205a40[_0x39af('0x9c')][_0x39af('0x5c')](_0x22235f,_0x3feb63[_0x39af('0x11d')]),_0x1bbe81&&(this[_0x39af('0xe4')][_0x39af('0xc8')](_0x3feb63['markerName'])?_0x205a40[_0x39af('0x11')][_0x39af('0x19')](_0x39af('0x64'),_0x22235f):_0x205a40['writer'][_0x39af('0x30')](_0x39af('0x64'),_0x22235f));for(const _0x4671f6 of _0x45c449[_0x39af('0x1f')][_0x39af('0x3a')](_0x3feb63[_0x39af('0x57')])[_0x39af('0xb7')]())_0x205a40['consumable'][_0x39af('0xdf')](_0x4671f6,_0x480b3e[_0x39af('0xbf')]);_0x205a40[_0x39af('0x93')][_0x39af('0xdf')](_0x3feb63['item'],_0x480b3e['name']);};_0x45c449[_0x39af('0x103')]['for']('dataDowncast')[_0x39af('0x130')](_0x1aa1b4=>{_0x1aa1b4['on'](_0x39af('0x99'),(_0x1e1f22,_0x3e65d4,_0x1a3241)=>{_0x1a3241['options'][_0x39af('0x8d')]&&_0x3e13d9({'showActiveMarkers':!0x1})(_0x1e1f22,_0x3e65d4,_0x1a3241);},{'priority':_0x39af('0x10')});}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0xa'))[_0x39af('0x53')]({'model':_0x39af('0x61'),'view':(_0x2dd97a,_0x55cf72)=>_0x55cf72['options'][_0x39af('0x8d')]?null:{'group':_0x39af('0x61'),'name':_0x2dd97a[_0x39af('0x42')](0xb)}}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')]('upcast')[_0x39af('0x132')]({'view':{'name':_0x39af('0x61'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x48ed38,{writer:_0x312fb0})=>{let _0x2253ff=_0x39af('0x37')+_0x48ed38['getAttribute'](_0x39af('0x10b'))+':'+_0x48ed38['getAttribute']('id');return _0x48ed38['getAttribute'](_0x39af('0x83'))&&(_0x2253ff+=':'+_0x48ed38[_0x39af('0x113')](_0x39af('0x83'))),_0x312fb0[_0x39af('0x31')](_0x39af('0xe8'),{'data-name':_0x2253ff});}}),_0x45c449[_0x39af('0x103')]['for'](_0x39af('0xd1'))['dataToMarker']({'view':_0x39af('0x61')}),_0x45c449['conversion'][_0x39af('0xd7')](_0x39af('0x39'))['add'](_0x54cc84=>{_0x54cc84['on']('addMarker:suggestion:formatBlock',_0x3e13d9(),{'priority':_0x39af('0x10f')});}),_0x45c449[_0x39af('0x103')][_0x39af('0xd7')](_0x39af('0x39'))[_0x39af('0x130')](_0x50a220=>{_0x50a220['on'](_0x39af('0x118'),(_0x57e982,_0x1d29e8,_0x421f67)=>{const _0x4adb17=_0x421f67[_0x39af('0x9c')][_0x39af('0xcb')](_0x1d29e8['markerName']);if(_0x4adb17)for(const _0x5937ab of _0x4adb17)_0x5937ab[_0x39af('0x11b')](_0x39af('0x71'))||(_0x421f67['writer'][_0x39af('0x30')](['ck-suggestion-marker',_0x39af('0xf4'),_0x39af('0x64')],_0x5937ab),_0x421f67[_0x39af('0x11')][_0x39af('0x86')]('data-suggestion',_0x5937ab),_0x421f67[_0x39af('0x9c')][_0x39af('0x65')](_0x5937ab,_0x1d29e8[_0x39af('0x11d')]));},{'priority':_0x39af('0x10f')});}),_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x110')](_0x201e76=>{let _0x61c8a0=!0x1;const _0x45564d=Array[_0x39af('0x12b')](_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x50')][_0x39af('0x41')]()),_0xb50017=new Set();for(const {name:_0x5488da,data:_0x5b452e}of _0x45564d){const {group:_0x2f6380,type:_0x1ca931,id:_0x357044}=this['_splitMarkerName'](_0x5488da);if(_0x39af('0x61')!==_0x2f6380)continue;const _0x31cbca=this['_suggestions']['get'](_0x357044);if(null!=_0x5b452e[_0x39af('0x25')]){_0x39af('0x73')==_0x1ca931&&(_0x61c8a0=_0x61c8a0||Mt(_0x5b452e[_0x39af('0x25')],_0x5488da,_0x201e76,_0x45c449[_0x39af('0x1f')][_0x39af('0x81')]));if(_0x5b452e['newRange'][_0x39af('0x11a')]||_0x39af('0xa5')==_0x5b452e[_0x39af('0x25')][_0x39af('0x13e')][_0x39af('0x10a')]||'formatBlock'==_0x1ca931&&!Nt(_0x5b452e[_0x39af('0x25')])||'deletion'==_0x1ca931&&!(!_t(_0x48b87d=_0x5b452e[_0x39af('0x25')])&&!function(_0x5040d9){return _0x5040d9[_0x39af('0xd8')]['parent']==_0x5040d9[_0x39af('0x4')][_0x39af('0x102')]&&_0x5040d9[_0x39af('0xd8')][_0x39af('0xaf')];}(_0x48b87d)))_0x201e76[_0x39af('0x7c')](_0x5488da),_0x61c8a0=!0x0;else{if(!_0x31cbca||!_0x31cbca[_0x39af('0x4d')])continue;_0xb50017[_0x39af('0x130')](_0x31cbca);}}}var _0x48b87d;return _0xb50017['size']>0x0&&(_0x61c8a0=!!this['_joinWithAdjacentSuggestions'](_0xb50017)||_0x61c8a0),_0x61c8a0;}),_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x110')](_0x39614c=>{let _0x2573a1=!0x1;for(const _0x24dd7f of _0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x50')]['getChanges']()){if(_0x39af('0xab')!=_0x24dd7f[_0x39af('0x13c')])continue;const _0x179117=_0x24dd7f['position'][_0x39af('0x95')](_0x24dd7f['length']);if(_0x179117['isAtEnd'])for(const _0x430c64 of this['_suggestions'][_0x39af('0x29')]()){if(_0x430c64[_0x39af('0x4e')]||!_0x430c64[_0x39af('0x4d')])continue;if(_0x39af('0xd')!=_0x430c64[_0x39af('0x13c')])continue;const _0x4cda21=_0x430c64[_0x39af('0x4f')]();if(_0x4cda21[_0x39af('0xd8')][_0x39af('0x35')]!=_0x4cda21[_0x39af('0x4')][_0x39af('0x35')]&&_0x4cda21['end'][_0x39af('0x91')](_0x24dd7f[_0x39af('0xa0')])){const _0x5b91ed=_0x45c449[_0x39af('0x1f')]['createRange'](_0x4cda21[_0x39af('0xd8')],_0x179117);_0x39614c[_0x39af('0x12a')](_0x430c64[_0x39af('0x10d')](),{'range':_0x5b91ed}),_0x2573a1=!0x0;}}}return _0x2573a1;}),_0x45c449[_0x39af('0x1f')]['markers']['on'](_0x39af('0xe0'),(_0x2e039e,_0x53db32,_0x59dd0d)=>{if(null==_0x59dd0d){const {id:_0x4fa6ba}=this[_0x39af('0x8')](_0x53db32[_0x39af('0xbf')]),_0x3e3503=this[_0x39af('0x5a')][_0x39af('0x72')](_0x4fa6ba);_0x3e3503&&_0x3e3503[_0x39af('0x117')](_0x53db32['name']);}}),_0x45c449[_0x39af('0x1f')][_0x39af('0x58')]['on']('change:data',()=>{const _0x1ff9f8=Array[_0x39af('0x12b')](_0x45c449[_0x39af('0x1f')][_0x39af('0x58')][_0x39af('0x50')]['getChangedMarkers']())[_0x39af('0xae')](_0x1384fa=>'suggestion'===this[_0x39af('0x8')](_0x1384fa[_0x39af('0xbf')])[_0x39af('0x9e')]);if(0x0===_0x1ff9f8[_0x39af('0xfd')])return;_0x1ff9f8[_0x39af('0x60')]((_0x5ed7a8,_0x1495fc)=>{const _0x589d83=_0x5ed7a8[_0x39af('0x139')][_0x39af('0x3')],_0x2b01a6=_0x1495fc[_0x39af('0x139')][_0x39af('0x3')];return null===_0x589d83&&null===_0x2b01a6?0x0:null===_0x589d83&&null!==_0x2b01a6?-0x1:null!==_0x589d83&&null===_0x2b01a6?0x1:_0x589d83[_0x39af('0xd8')][_0x39af('0x107')](_0x2b01a6[_0x39af('0xd8')])?-0x1:0x1;});const _0x27d53b=new Set(),_0x4bc8fa=new Set();for(const {name:_0x16443c,data:_0x1231a0}of _0x1ff9f8){const {id:_0x97be84}=this['_splitMarkerName'](_0x16443c);if(null===_0x1231a0[_0x39af('0x3')]){const _0x418f77=this[_0x39af('0x27')](_0x16443c);_0x4bc8fa[_0x39af('0x130')](_0x418f77);}else{const _0x8e0979=this['_suggestions'][_0x39af('0x72')](_0x97be84);null!==_0x1231a0[_0x39af('0x25')]||_0x8e0979[_0x39af('0x4d')]?(_0x27d53b[_0x39af('0x130')](_0x8e0979[_0x39af('0x137')]),_0x4bc8fa[_0x39af('0x130')](_0x8e0979)):this['_removeSuggestion'](_0x8e0979);}}_0x4bc8fa[_0x39af('0x74')]>0x0&&this[_0x39af('0xef')](_0x4bc8fa);for(const _0x4d179f of _0x27d53b)this[_0x39af('0x49')](_0x39af('0x6e'),_0x4d179f);}),_0x45c449['model']['on'](_0x39af('0xd0'),(_0x17854c,_0x5e39d3)=>{const _0xb088a6=_0x5e39d3[0x0];if(!this[_0x39af('0x5a')][_0x39af('0x74')])return;if(!_0xb088a6[_0x39af('0xa4')])return;if(_0xb088a6[_0x39af('0x24')][_0x39af('0x131')]||!_0xb088a6[_0x39af('0x24')][_0x39af('0xf9')])return;let _0x204ad3,_0x32c212;switch(_0xb088a6[_0x39af('0x13c')]){case _0x39af('0xab'):_0x204ad3=_0x45c449[_0x39af('0x1f')][_0x39af('0x126')](_0xb088a6['position']),_0x32c212=_0x204ad3[_0x39af('0x95')](_0xb088a6[_0x39af('0x123')]);break;case _0x39af('0x6'):_0x204ad3=_0x45c449[_0x39af('0x1f')][_0x39af('0x126')](_0xb088a6[_0x39af('0x1b')]),_0x32c212=_0x45c449['model'][_0x39af('0x126')](_0xb088a6[_0x39af('0x11f')]);break;case _0x39af('0xb3'):_0x204ad3=_0x45c449['model']['createPositionAt'](_0xb088a6[_0x39af('0xcf')]),_0x32c212=_0x204ad3[_0x39af('0x95')](_0xb088a6[_0x39af('0x123')]);break;default:return;}const _0x52965e=_0x45c449[_0x39af('0x1f')]['createRange'](_0x204ad3,_0x32c212);_0x45c449['model']['change'](()=>{for(const {suggestion:_0x59d73d,meta:_0x22d719}of this[_0x39af('0x82')](_0x52965e)){if(_0x59d73d[_0x39af('0x4e')])continue;if(_0x39af('0x73')==_0x59d73d[_0x39af('0x13c')])continue;const _0x1093f8=_0x59d73d['data']&&_0x59d73d['data'][_0x39af('0x7b')];(_0x39af('0xd')!=_0x59d73d['type']||'split'==_0xb088a6[_0x39af('0x13c')]&&!_0x1093f8)&&(_0x22d719[_0x39af('0xc3')]||_0x39af('0xd5')==_0x59d73d['type']&&_0x22d719[_0x39af('0xba')]||_0x59d73d[_0x39af('0x4f')]()[_0x39af('0xcd')](_0x52965e)&&this[_0x39af('0x17')](_0x59d73d,_0x204ad3,_0x32c212));}});},{'priority':_0x39af('0x106')}),_0x45c449[_0x39af('0x1f')]['on'](_0x39af('0x6f'),(_0x547550,_0x3e35a6)=>{const _0x394105=_0x3e35a6[0x0],_0x134f90=_0x3e35a6[0x1];if(_0x134f90&&_0x134f90[_0x39af('0xd6')])return;if(this[_0x39af('0x3c')])return;if(!this['trackChangesCommand'][_0x39af('0x28')])return;if(_0x394105[_0x39af('0x11a')])return;const _0x45f4ee=_0x45c449[_0x39af('0x1f')][_0x39af('0x81')],{start:_0xb100c9,end:_0x317a9e}=_0x394105['getFirstRange'](),_0x49e5cf=_0xb100c9[_0x39af('0xaa')]&&_0x45f4ee[_0x39af('0xf')](_0xb100c9['nodeAfter'])?null:_0x45f4ee['getNearestSelectionRange'](_0xb100c9,_0x39af('0x12d')),_0x53312d=_0x317a9e[_0x39af('0x102')]&&_0x45f4ee[_0x39af('0xf')](_0x317a9e['nodeBefore'])?null:_0x45f4ee['getNearestSelectionRange'](_0x317a9e,_0x39af('0xe2')),_0x2f219e=_0x45c449[_0x39af('0x1f')][_0x39af('0xda')](_0x49e5cf?_0x49e5cf[_0x39af('0xd8')]:_0xb100c9,_0x53312d?_0x53312d[_0x39af('0x4')]:_0x317a9e);_0x45c449[_0x39af('0x1f')][_0x39af('0x138')](_0x403f91=>{this[_0x39af('0x111')](_0x2f219e);const _0x48f656=_0x45c449[_0x39af('0x1f')][_0x39af('0x81')][_0x39af('0x5d')](_0x2f219e[_0x39af('0xd8')]);_0x394105['is'](_0x39af('0x51'))?_0x403f91[_0x39af('0xca')](_0x48f656):_0x394105[_0x39af('0x13d')](_0x48f656);}),_0x547550['stop']();},{'priority':_0x511a76[_0x39af('0xc7')]+0xa}),_0x45c449[_0x39af('0x1f')]['on'](_0x39af('0x115'),(_0x3fe30e,_0x4ff72d)=>{const _0xb3e6d7=_0x4ff72d[_0x4ff72d[_0x39af('0xfd')]-0x1];_0xb3e6d7&&_0xb3e6d7[_0x39af('0xd6')]||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45c449[_0x39af('0x1f')][_0x39af('0x138')](()=>{let _0x27f170=_0x45c449['model'][_0x39af('0x115')](_0x4ff72d[0x0],_0x4ff72d[0x1],_0x4ff72d[0x2],{'forceDefaultExecution':!0x0});if(!_0x27f170)return;_0x3fe30e[_0x39af('0x112')]=_0x27f170[_0x39af('0xed')]();const _0x450c10=_0x27f170[_0x39af('0x4')][_0x39af('0x102')],_0x48be72=_0x45c449[_0x39af('0x1f')][_0x39af('0x81')];_0x450c10&&_0x48be72[_0x39af('0x13f')](_0x450c10)&&!_0x48be72['isObject'](_0x450c10)&&(_0x27f170=_0x45c449[_0x39af('0x1f')]['createRange'](_0x27f170[_0x39af('0xd8')],_0x45c449[_0x39af('0x1f')][_0x39af('0x126')](_0x450c10,_0x39af('0x4')))),this['markInsertion'](_0x27f170);}),_0x3fe30e[_0x39af('0xc5')]());},{'priority':_0x39af('0x10f')}),this[_0x39af('0xb1')][_0x39af('0xde')][_0x39af('0x130')](_0x39af('0x13a'),this[_0x39af('0x98')]),this['enableCommand'](_0x39af('0x13a'));const _0x207109=new _0x49f9ee(_0x45c449,this['_suggestions']);_0x45c449[_0x39af('0xde')][_0x39af('0x130')](_0x39af('0x6c'),_0x207109),this[_0x39af('0x47')]('acceptSuggestion');const _0x20cd01=new _0x3899d2(_0x45c449,this['_suggestions']);_0x45c449[_0x39af('0xde')][_0x39af('0x130')](_0x39af('0xb0'),_0x20cd01),this[_0x39af('0x47')](_0x39af('0xb0')),_0x45c449['commands'][_0x39af('0x130')](_0x39af('0x68'),new _0x219ed6(_0x45c449,_0x207109,this['_suggestions'])),this['enableCommand'](_0x39af('0x68')),_0x45c449[_0x39af('0xde')]['add'](_0x39af('0x104'),new _0x219ed6(_0x45c449,_0x20cd01,this['_suggestions'])),this[_0x39af('0x47')](_0x39af('0x104')),_0x45c449[_0x39af('0xde')]['add'](_0x39af('0x109'),new _0x3a708a(_0x45c449,_0x207109,this['_suggestions'])),this[_0x39af('0x47')](_0x39af('0x109')),_0x45c449[_0x39af('0xde')]['add'](_0x39af('0xfa'),new _0x3a708a(_0x45c449,_0x20cd01,this[_0x39af('0x5a')])),this[_0x39af('0x47')](_0x39af('0xfa'));const _0x1ac2ed=_0x45c449[_0x39af('0xf5')]['get'](_0x39af('0x12e'));this[_0x39af('0xd3')](_0x1ac2ed,_0x39af('0xe5'),(_0x480409,{threadId:_0x32c911})=>{const _0x112196=this[_0x39af('0x5a')][_0x39af('0x72')](_0x32c911);_0x112196&&_0x112196[_0x39af('0xf6')]&&0x1===_0x112196[_0x39af('0xf6')]['length']&&this[_0x39af('0x8a')](_0x32c911,{'hasComments':!0x0});},{'priority':_0x39af('0x6d')}),this[_0x39af('0xd3')](_0x1ac2ed,'removeComment',(_0x1cfb08,{threadId:_0xfd2a7d})=>{const _0x5a9963=this[_0x39af('0x5a')]['get'](_0xfd2a7d);_0x5a9963&&_0x5a9963[_0x39af('0xf6')]&&!_0x5a9963[_0x39af('0xf6')]['length']&&this[_0x39af('0x8a')](_0xfd2a7d,{'hasComments':!0x1});},{'priority':_0x39af('0x6d')});}set[_0x39af('0xf1')](_0x2abc89){if(this[_0x39af('0x22')])throw new _0x14653c('track-changes-adapter-already-set',this);this[_0x39af('0x22')]=_0x2abc89;}get[_0x39af('0xf1')](){return this[_0x39af('0x22')];}['getSuggestions']({skipNotAttached:_0x2f8ad8=!0x1,toJSON:_0x140dbf=!0x1}={}){const _0x28e208=[];for(const _0x41a7ca of this[_0x39af('0x5a')][_0x39af('0x29')]())_0x2f8ad8&&!_0x41a7ca['isInContent']||_0x28e208[_0x39af('0xb9')](_0x41a7ca);return _0x140dbf?_0x28e208[_0x39af('0xdb')](_0x5ee26f=>_0x5ee26f[_0x39af('0xc')]()):_0x28e208;}['getSuggestion'](_0x34a4a6){const _0x42ce4e=this[_0x39af('0x5a')][_0x39af('0x72')](_0x34a4a6);if(!_0x42ce4e)throw new _0x14653c(_0x39af('0x55'),this);return _0x42ce4e;}[_0x39af('0xa6')](_0x5c4f1e){return this[_0x39af('0x5a')][_0x39af('0x43')](_0x5c4f1e);}['addSuggestionData'](_0x53e175){const {authorId:_0x49bf56,id:_0x30b4a4,attributes:_0x24a31d}=_0x53e175,[_0x3bb573,_0x4cc9af]=_0x53e175[_0x39af('0x13c')]['split'](':'),_0x59c211=this[_0x39af('0x5a')][_0x39af('0x72')](_0x30b4a4)||this[_0x39af('0x10c')](_0x3bb573,_0x4cc9af,_0x30b4a4,_0x49bf56,_0x24a31d);if(this[_0x39af('0xd2')](_0x59c211),this[_0x39af('0x92')](_0x59c211,_0x3bb573,_0x4cc9af||null,_0x49bf56),_0x59c211[_0x39af('0xe')]=_0x53e175[_0x39af('0xe')],_0x24a31d&&_0x24a31d[_0x39af('0x48')]){const _0x41726c=_0x24a31d[_0x39af('0x48')],_0x5d83ec=this['_getExternalAuthor'](_0x41726c[_0x39af('0xf7')]);_0x59c211[_0x39af('0xfc')]=_0x41726c[_0x39af('0xe')],_0x59c211['author']=_0x5d83ec,_0x59c211['isExternal']=!0x0;}else _0x59c211[_0x39af('0xfc')]=_0x53e175['createdAt'];switch(_0x53e175[_0x39af('0x139')]&&(_0x59c211[_0x39af('0x139')]=_0x53e175[_0x39af('0x139')]),_0x53e175[_0x39af('0x7e')]&&(_0x59c211[_0x39af('0x7e')]=_0x53e175[_0x39af('0x7e')]),this[_0x39af('0x22')]&&this[_0x39af('0x22')][_0x39af('0x120')]||(_0x59c211[_0x39af('0x66')]=!0x0),this['_suggestionState'][_0x39af('0x72')](_0x59c211)){case _0x39af('0x23'):this[_0x39af('0x26')][_0x39af('0x75')](_0x59c211,_0x39af('0x129'));break;case _0x39af('0xb5'):_0x59c211[_0x39af('0x4d')]?(this[_0x39af('0x26')][_0x39af('0x75')](_0x59c211,_0x39af('0x79')),this[_0x39af('0x49')](_0x39af('0xbd'),_0x59c211)):this[_0x39af('0x26')][_0x39af('0x75')](_0x59c211,_0x39af('0x13b'));}return _0x59c211;}[_0x39af('0x6c')](_0x499152){this[_0x39af('0xd6')](()=>{this['editor'][_0x39af('0x1f')][_0x39af('0x138')](()=>{for(const _0x6cf68a of _0x499152['getAllAdjacentSuggestions']())_0x6cf68a['accept']();});});}['discardSuggestion'](_0x48568d){this[_0x39af('0xd6')](()=>{this[_0x39af('0xb1')][_0x39af('0x1f')][_0x39af('0x138')](()=>{for(const _0x53a816 of _0x48568d[_0x39af('0x62')]())_0x53a816[_0x39af('0xbb')]();});});}[_0x39af('0x47')](_0x505831,_0x5bc3d5){const _0x26035d=this[_0x39af('0xb1')]['commands']['get'](_0x505831);if(!_0x26035d)throw new _0x14653c(_0x39af('0xe7'),this,{'commandName':_0x505831});this[_0x39af('0x0')][_0x39af('0x130')](_0x26035d),_0x5bc3d5&&_0x26035d['on'](_0x39af('0xac'),(_0x405b66,_0x39ecc1)=>{this['trackChangesCommand'][_0x39af('0x28')]&&(this['_isForcedDefaultExecutionBlock']||_0x39ecc1[_0x39af('0xfd')]>0x0&&_0x39ecc1[_0x39ecc1[_0x39af('0xfd')]-0x1]&&_0x39ecc1[_0x39ecc1['length']-0x1][_0x39af('0xd6')]||(_0x5bc3d5((..._0x231b7b)=>_0x26035d[_0x39af('0xac')](..._0x231b7b,{'forceDefaultExecution':!0x0}),..._0x39ecc1),_0x405b66[_0x39af('0xc5')]()));},{'priority':_0x39af('0x10f')});}[_0x39af('0xd6')](_0x21fc89){let _0x43ed0e,_0x3f63d5;const _0x5439eb=this[_0x39af('0x3c')];this[_0x39af('0x3c')]=!0x0;try{_0x43ed0e=_0x21fc89();}catch(_0x429c61){_0x3f63d5=_0x429c61;}return _0x5439eb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3f63d5&&_0x14653c[_0x39af('0x114')](_0x3f63d5,this),_0x43ed0e;}[_0x39af('0x7f')](_0x1498f4,_0x1ed83a=null,_0x115cae={}){if(_0x1498f4['isCollapsed'])return null;const _0x2c95cd=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')]('Users')['me'];for(const {suggestion:_0x553f32,meta:_0x533fb8}of this['_findSuggestions'](_0x1498f4,_0x39af('0xd5')))if(_0x533fb8[_0x39af('0xba')]){if(!_0x533fb8[_0x39af('0x16')]){if(!this[_0x39af('0x7')]&&_0x533fb8[_0x39af('0xc3')])continue;return _0x553f32;}if(_0x1ed83a==_0x553f32[_0x39af('0xec')]){const _0xd8d5dc=_0x553f32[_0x39af('0x4f')]();return _0xd8d5dc[_0x39af('0xd8')][_0x39af('0x91')](_0x1498f4[_0x39af('0x4')])?this[_0x39af('0xcc')](_0x553f32,this[_0x39af('0x116')][_0x39af('0xda')](_0x1498f4[_0x39af('0xd8')],_0xd8d5dc['end'])):this['_setSuggestionRange'](_0x553f32,this[_0x39af('0x116')][_0x39af('0xda')](_0xd8d5dc[_0x39af('0xd8')],_0x1498f4[_0x39af('0x4')])),_0x553f32;}}const _0x2cb1bb=_0x16cd6a(),_0x338953=_0x2c95cd['id'],_0x500887=_0x1ed83a?_0x39af('0xdc')+_0x1ed83a:'insertion',_0x352b32=this[_0x39af('0xa1')]({'id':_0x2cb1bb,'type':_0x500887,'createdAt':new Date(),'authorId':_0x338953,'attributes':_0x115cae});return this[_0x39af('0x6a')](_0x500887,_0x2cb1bb,_0x338953,_0x1498f4),_0x352b32;}[_0x39af('0x2e')](_0x1c5839,_0xfd6dbf=_0x39af('0x10e'),_0x2f32e7={}){const _0x7e99e6=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')](_0x39af('0x4a'))['me'],_0x47c0d9=this[_0x39af('0x3e')][_0x39af('0xf8')]('insertion',_0xfd6dbf,_0x39af('0xa9'));for(const _0x5caaac of this[_0x39af('0x7a')]())if(_0x5caaac[_0x39af('0xea')]['id']==_0x7e99e6['id']&&_0x39af('0xd5')==_0x5caaac[_0x39af('0x13c')]&&_0x5caaac[_0x39af('0xec')]==_0xfd6dbf&&(_0x47c0d9(_0x5caaac[_0x39af('0xff')](),_0x1c5839)||_0x47c0d9(_0x1c5839,_0x5caaac[_0x39af('0xff')]()))){for(const _0x2ff4b1 of _0x1c5839)_0x5caaac['addRange'](_0x2ff4b1);return _0x5caaac;}if(this['_mergeNestedSuggestions'])for(const _0xc380b8 of _0x1c5839)for(const {suggestion:_0x2e91ad,meta:_0x594738}of this[_0x39af('0x82')](_0xc380b8,'insertion')){if(!_0x594738[_0x39af('0xba')])continue;let _0x5925cb=!0x0;for(const _0xdc451f of _0x2e91ad[_0x39af('0xff')]())for(const _0x47f928 of _0x1c5839)if(!_0xdc451f[_0x39af('0xcd')](_0x47f928)){_0x5925cb=!0x1;break;}if(_0x5925cb)return _0x2e91ad;}const _0x177c09=_0x16cd6a(),_0x566d36=_0x7e99e6['id'],_0x293528=_0x39af('0xdc')+_0xfd6dbf,_0x5c8719=this[_0x39af('0xa1')]({'id':_0x177c09,'type':_0x293528,'createdAt':new Date(),'authorId':_0x566d36,'attributes':_0x2f32e7});for(const _0x1d923b of _0x1c5839)this[_0x39af('0x6a')](_0x293528,_0x177c09,_0x566d36,_0x1d923b,_0x1760a0['getMultiRangeId']());return _0x5c8719;}[_0x39af('0xd9')](_0x565bef,_0x4d4df5,_0x299244=null,_0x36019e={}){if(_0x299244=_0x299244||$t(_0x4d4df5),_0x565bef[_0x39af('0x11a')])return null;if(_0x39af('0x8f')===this[_0x39af('0xf3')]){const _0x570f81=this[_0x39af('0x3e')][_0x39af('0xf8')]('formatInline',_0x299244,_0x39af('0xad'));return this['forceDefaultExecution'](()=>_0x570f81([_0x565bef],_0x4d4df5,_0x36019e)),null;}const _0x3d2a34=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')](_0x39af('0x4a'))['me'],_0x14866f=[];if('always'!==this[_0x39af('0xf3')])for(const {suggestion:_0x40b0f7,meta:_0x4bac31}of this[_0x39af('0x82')](_0x565bef,'insertion'))_0x4bac31[_0x39af('0xba')]&&!_0x4bac31[_0x39af('0x4b')]&&_0x14866f[_0x39af('0xb9')](..._0x40b0f7[_0x39af('0xff')]());const _0x2a40c1=function(_0x215b86,_0xfa820a){const _0xc61066=[];for(const _0x5168b7 of _0xfa820a){const _0xb7b946=_0x215b86[_0x39af('0x127')](_0x5168b7);_0xb7b946&&_0xc61066[_0x39af('0xb9')](_0xb7b946);}return _0xc61066;}(_0x565bef,_0x14866f),_0x1c04dc=function(_0x1bbfaa,_0x37076d){const _0x2f99ec=[_0x1bbfaa];for(const _0x1f73fd of _0x37076d){let _0x3c0496=0x0;for(;_0x3c0496<_0x2f99ec[_0x39af('0xfd')];){const _0x46c6c4=_0x2f99ec[_0x3c0496][_0x39af('0xe6')](_0x1f73fd);_0x2f99ec[_0x39af('0x21')](_0x3c0496,0x1,..._0x46c6c4),_0x3c0496+=_0x46c6c4['length'];}}return _0x2f99ec;}(_0x565bef,_0x14866f);_0x2a40c1[_0x39af('0xfd')]&&this[_0x39af('0x116')][_0x39af('0x138')](()=>{for(const _0x1568fc of _0x2a40c1){const _0x48a87b=this[_0x39af('0x3e')]['getSuggestionCallback'](_0x39af('0x73'),_0x299244,_0x39af('0xad'));this[_0x39af('0xd6')](()=>_0x48a87b([_0x1568fc],_0x4d4df5,_0x36019e));}});for(const _0xd1908b of _0x1c04dc){let _0x5b9c6b=null,_0x290a96=_0xd1908b[_0x39af('0xd8')],_0x1db95d=_0xd1908b[_0x39af('0x4')];for(const {suggestion:_0x388d48,meta:_0x1f34cd}of this[_0x39af('0x82')](_0xd1908b,'formatInline')){if(!_0x1f34cd[_0x39af('0xba')])continue;if(_0x388d48[_0x39af('0xec')]!=_0x299244)continue;const _0x2eb0ba=_0x388d48[_0x39af('0x4f')]();if(_0x2eb0ba['containsRange'](_0xd1908b,!0x0))return null;_0x290a96=_0x290a96[_0x39af('0x107')](_0x2eb0ba[_0x39af('0xd8')])?_0x290a96:_0x2eb0ba[_0x39af('0xd8')],_0x1db95d=_0x1db95d['isAfter'](_0x2eb0ba[_0x39af('0x4')])?_0x1db95d:_0x2eb0ba[_0x39af('0x4')],_0x5b9c6b?_0x2eb0ba['start'][_0x39af('0x107')](_0x5b9c6b[_0x39af('0x4f')]()[_0x39af('0xd8')])?(_0x5b9c6b[_0x39af('0x88')](),_0x5b9c6b=_0x388d48):_0x388d48[_0x39af('0x88')]():_0x5b9c6b=_0x388d48;}const _0x155910=this['_model'][_0x39af('0xda')](_0x290a96,_0x1db95d);if(_0x5b9c6b)this[_0x39af('0xcc')](_0x5b9c6b,_0x155910);else{const _0x203224=_0x16cd6a(),_0x2901d9=_0x3d2a34['id'];this[_0x39af('0xa1')]({'id':_0x203224,'type':_0x39af('0x94')+_0x299244,'data':_0x4d4df5,'createdAt':new Date(),'authorId':_0x2901d9,'attributes':_0x36019e}),this[_0x39af('0x6a')](_0x39af('0x94')+_0x299244,_0x203224,_0x2901d9,_0x155910);}}return null;}['markBlockFormat'](_0x888f50,_0x76dab5,_0x1478b7=[],_0x1ddae0=null,_0x309011={}){_0x76dab5['formatGroupId']||(_0x76dab5[_0x39af('0x8c')]=_0x76dab5[_0x39af('0xe9')]),_0x76dab5[_0x39af('0x7b')]=_0x888f50['is'](_0x39af('0x32')),_0x1ddae0=_0x1ddae0||$t(_0x76dab5);const _0x52231b=_0x1478b7[_0x39af('0xdb')](_0x95efd=>Rt(_0x95efd,this[_0x39af('0x116')])),_0x4788b1=_0x888f50['is']('range')?_0x888f50:Rt(_0x888f50,this['_model']);if(_0x39af('0x8f')===this[_0x39af('0xf3')]){const _0x444f6b=this[_0x39af('0x3e')][_0x39af('0xf8')]('formatBlock',_0x1ddae0,'accept');return this[_0x39af('0xd6')](()=>_0x444f6b([_0x4788b1],_0x76dab5,_0x309011)),null;}_0x52231b[_0x39af('0xb9')](_0x4788b1);let _0x419ebb=!0x0;for(const _0x175ae6 of _0x52231b)if(!this['_rangeIsInLocalUserInsertion'](_0x175ae6)){_0x419ebb=!0x1;break;}if(_0x419ebb&&_0x39af('0x101')!==this[_0x39af('0xf3')]){const _0x23c978=this['_suggestionFactory'][_0x39af('0xf8')]('formatBlock',_0x1ddae0,'accept');return this[_0x39af('0xd6')](()=>_0x23c978([_0x4788b1],_0x76dab5,_0x309011)),null;}let _0x39ff98=null,_0x5a5fdd=_0x4788b1['start'],_0x40c628=_0x4788b1['end'];for(const {suggestion:_0x529397,meta:_0x1c3378}of this[_0x39af('0x82')](_0x4788b1,_0x39af('0xd'))){if(!_0x1c3378[_0x39af('0xba')]||_0x1c3378['isNextTo']||_0x1c3378['containsRangeInObject']||_0x1c3378[_0x39af('0x4b')])continue;if(_0x529397[_0x39af('0x139')][_0x39af('0x8c')]!=_0x76dab5[_0x39af('0x8c')])continue;const _0x4629a1=_0x529397[_0x39af('0x4f')]();if(_0x529397[_0x39af('0xec')]==_0x1ddae0){if(_0x4629a1[_0x39af('0xcd')](_0x4788b1,!0x0))return null;_0x5a5fdd=_0x5a5fdd[_0x39af('0x107')](_0x4629a1['start'])?_0x5a5fdd:_0x4629a1[_0x39af('0xd8')],_0x40c628=_0x40c628['isAfter'](_0x4629a1[_0x39af('0x4')])?_0x40c628:_0x4629a1['end'],_0x39ff98?_0x4629a1[_0x39af('0xd8')][_0x39af('0x107')](_0x39ff98['getFirstRange']()[_0x39af('0xd8')])?(_0x39ff98[_0x39af('0x88')](),_0x39ff98=_0x529397):_0x529397['removeMarkers']():_0x39ff98=_0x529397;}else{const _0x8baac6=_0x4788b1[_0x39af('0x127')](_0x4629a1);this[_0x39af('0xf2')](_0x529397,_0x8baac6);}}const _0x17a46a=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')]('Users')['me'],_0x33e61=_0x16cd6a(),_0x29d5a6=_0x17a46a['id'];if(_0x39ff98)return this[_0x39af('0xcc')](_0x39ff98,this['_model'][_0x39af('0xda')](_0x5a5fdd,_0x40c628)),_0x39ff98;{const _0x32dab0=this[_0x39af('0xa1')]({'id':_0x33e61,'type':_0x39af('0x124')+_0x1ddae0,'data':_0x76dab5,'createdAt':new Date(),'authorId':_0x29d5a6,'attributes':_0x309011});return this['_addSuggestionMarker'](_0x39af('0x124')+_0x1ddae0,_0x33e61,_0x29d5a6,this[_0x39af('0x116')][_0x39af('0xda')](_0x5a5fdd,_0x40c628)),_0x32dab0;}}[_0x39af('0xbc')](_0x33af09,_0x3b0855,_0x43f4c3=[],_0x340a7f=null,_0x165948={}){_0x3b0855[_0x39af('0x8c')]||(_0x3b0855[_0x39af('0x8c')]=_0x3b0855[_0x39af('0xe9')]);const _0x17d3ca=_0x33af09[0x0];_0x3b0855[_0x39af('0x7b')]=_0x17d3ca['is']('range'),_0x340a7f=_0x340a7f||$t(_0x3b0855);const _0x5a3af2=_0x43f4c3['map'](_0x253cf7=>Rt(_0x253cf7,this[_0x39af('0x116')])),_0x244871=_0x17d3ca['is'](_0x39af('0x32'))?_0x33af09:_0x33af09[_0x39af('0xdb')](_0x2e277a=>Rt(_0x2e277a,this[_0x39af('0x116')]));if(_0x39af('0x8f')===this[_0x39af('0xf3')]){const _0x33c320=this[_0x39af('0x3e')][_0x39af('0xf8')](_0x39af('0xd'),_0x340a7f,_0x39af('0xad'));return this['forceDefaultExecution'](()=>_0x33c320(_0x244871,_0x3b0855,_0x165948)),null;}_0x5a3af2[_0x39af('0xb9')](..._0x244871);let _0x1e1d3b=!0x0;for(const _0x47a5da of _0x5a3af2)if(!this[_0x39af('0x45')](_0x47a5da)){_0x1e1d3b=!0x1;break;}if(_0x1e1d3b&&_0x39af('0x101')!==this['_trackFormatChanges']){const _0x30ea82=this['_suggestionFactory'][_0x39af('0xf8')](_0x39af('0xd'),_0x340a7f,_0x39af('0xad'));return this[_0x39af('0xd6')](()=>_0x30ea82(_0x244871,_0x3b0855,_0x165948)),null;}const _0x4ab8ab=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')]('Users')['me'];for(const _0x20a05b of this[_0x39af('0x7a')]()){if(_0x20a05b[_0x39af('0xea')]['id']!=_0x4ab8ab['id'])continue;if(_0x39af('0xd')!=_0x20a05b[_0x39af('0x13c')]||_0x20a05b[_0x39af('0x139')]['formatGroupId']!=_0x3b0855['formatGroupId'])continue;const _0x49fba6=_0x20a05b[_0x39af('0xec')]==_0x340a7f;for(let _0x78b1af=0x0;_0x78b1af<_0x244871[_0x39af('0xfd')];_0x78b1af++){const _0x529a67=_0x244871[_0x78b1af];for(const _0x2501c2 of _0x20a05b[_0x39af('0x33')]()){const _0x542462=_0x2501c2['getRange']();if(_0x529a67['isEqual'](_0x542462)){_0x49fba6?(_0x244871['splice'](_0x78b1af,0x1),_0x78b1af--):_0x20a05b[_0x39af('0x7c')](_0x2501c2[_0x39af('0xbf')]);break;}}}}if(0x0==_0x244871[_0x39af('0xfd')])return null;const _0x4865e3=this[_0x39af('0x3e')]['getSuggestionCallback'](_0x39af('0xd'),_0x340a7f,_0x39af('0xa9'));for(const _0x23726d of this['getSuggestions']())if(_0x23726d['author']['id']==_0x4ab8ab['id']&&'formatBlock'==_0x23726d['type']&&_0x23726d[_0x39af('0x139')][_0x39af('0x8c')]==_0x3b0855[_0x39af('0x8c')]&&_0x23726d[_0x39af('0xec')]==_0x340a7f&&(_0x4865e3(_0x23726d[_0x39af('0xff')](),_0x244871)||_0x4865e3(_0x244871,_0x23726d[_0x39af('0xff')]()))){for(const _0x2a1a4b of _0x244871)_0x23726d[_0x39af('0xb4')](_0x2a1a4b);return _0x23726d;}const _0x1ab32c=_0x16cd6a(),_0x5ee2e8=_0x4ab8ab['id'],_0x1059b5=_0x39af('0x124')+_0x340a7f,_0x23330d=this['_setSuggestionData']({'id':_0x1ab32c,'type':_0x1059b5,'data':_0x3b0855,'createdAt':new Date(),'authorId':_0x5ee2e8,'attributes':_0x165948});for(const _0x89ef47 of _0x244871)this[_0x39af('0x6a')](_0x1059b5,_0x1ab32c,_0x5ee2e8,_0x89ef47,_0x1760a0['getMultiRangeId']());return _0x23330d;}[_0x39af('0x111')](_0xb9b4b1,_0x40b275=null,_0x389426={}){if(_0xb9b4b1[_0x39af('0x11a')])return null;const _0x40b773=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')](_0x39af('0x4a'))['me'],_0x1b112e=new _0x3b5b82(_0xb9b4b1[_0x39af('0xd8')],_0xb9b4b1[_0x39af('0x4')]);for(const {suggestion:_0xf32362,meta:_0x24a418}of this['_findSuggestions'](_0x1b112e,'insertion'))if(_0x24a418[_0x39af('0xba')]&&!_0x24a418[_0x39af('0x16')]){if(_0xf32362[_0x39af('0x4e')]){const _0x17f425=_0xf32362[_0x39af('0xff')]()[_0x39af('0xae')](_0x27c1f8=>'$graveyard'!=_0x27c1f8[_0x39af('0x13e')][_0x39af('0x10a')]);_0x17f425['every'](_0x248e80=>_0x1b112e[_0x39af('0xcd')](_0x248e80,!0x0))&&_0xf32362[_0x39af('0xbb')]();if(_0x17f425['some'](_0x33ad19=>_0x33ad19[_0x39af('0xcd')](_0x1b112e,!0x0))){const _0x17bce6=this[_0x39af('0x3e')][_0x39af('0xf8')]('deletion',_0x40b275,_0x39af('0xad'));return this[_0x39af('0xd6')](()=>_0x17bce6([_0x1b112e],null,_0x389426)),null;}}else{const _0x3f626c=_0x1b112e['getIntersection'](_0xf32362[_0x39af('0x4f')]());null!==_0x3f626c&&_0xf32362[_0x39af('0x1a')]([_0x3f626c],null,_0x389426);}}if(_0x1b112e[_0x39af('0x52')](),_0x1b112e['isCollapsed']||_0x39af('0xa5')==_0x1b112e[_0x39af('0x13e')][_0x39af('0x10a')])return null;let _0x39b0a7=null,_0x3a0e98=_0x1b112e[_0x39af('0xd8')],_0x5744a5=_0x1b112e[_0x39af('0x4')];for(const {suggestion:_0x317f55,meta:_0x498647}of this[_0x39af('0x82')](_0x1b112e,'deletion'))if(_0x498647[_0x39af('0xba')]){if(_0x317f55[_0x39af('0x4e')]&&this[_0x39af('0x7')]){let _0x131849=!0x0;for(const _0x3a4f36 of _0x317f55[_0x39af('0xff')]()){if(_0x3a4f36[_0x39af('0xcd')](_0x1b112e,!0x0))return _0x317f55;_0x1b112e['containsRange'](_0x3a4f36)||(_0x131849=!0x1);}_0x131849&&_0x317f55['discard']();}else{const _0x34ad20=_0x317f55[_0x39af('0x4f')]();if(_0x34ad20['containsRange'](_0x1b112e,!0x0)){if(!this[_0x39af('0x7')]&&_0x498647[_0x39af('0xc3')])continue;return _0x317f55;}_0x3a0e98=_0x3a0e98[_0x39af('0x107')](_0x34ad20['start'])?_0x3a0e98:_0x34ad20[_0x39af('0xd8')],_0x5744a5=_0x5744a5['isAfter'](_0x34ad20['end'])?_0x5744a5:_0x34ad20['end'],_0x39b0a7?_0x34ad20[_0x39af('0xd8')][_0x39af('0x107')](_0x39b0a7[_0x39af('0x4f')]()[_0x39af('0xd8')])?(_0x39b0a7[_0x39af('0x88')](),_0x39b0a7=_0x317f55):_0x317f55[_0x39af('0x88')]():_0x39b0a7=_0x317f55;}}if(_0x39b0a7)return this[_0x39af('0xcc')](_0x39b0a7,this[_0x39af('0x116')][_0x39af('0xda')](_0x3a0e98,_0x5744a5)),_0x39b0a7;{const _0x50bd2e=_0x16cd6a(),_0x843a0d=this[_0x39af('0x116')][_0x39af('0xda')](_0x3a0e98,_0x5744a5),_0x114cfd=_0x40b773['id'],_0x2fe41b=_0x40b275?_0x39af('0x97')+_0x40b275:_0x39af('0xb'),_0x54205d=this[_0x39af('0xa1')]({'id':_0x50bd2e,'type':_0x2fe41b,'createdAt':new Date(),'authorId':_0x114cfd,'attributes':_0x389426});return this['_addSuggestionMarker'](_0x2fe41b,_0x50bd2e,_0x114cfd,_0x843a0d),_0x54205d;}}['markMultiRangeDeletion'](_0x513575,_0x2467a7=_0x39af('0x10e'),_0x586470={}){const _0x531c6d=this[_0x39af('0xb1')][_0x39af('0xf5')]['get'](_0x39af('0x4a'))['me'],_0x17c39d=_0x513575[_0x39af('0xdb')](_0x3ad43e=>new _0x3b5b82(_0x3ad43e['start'],_0x3ad43e[_0x39af('0x4')])),_0x5afdd5=new Set();for(const _0x3fbc01 of _0x17c39d)for(const {suggestion:_0x20812e,meta:_0x445e9d}of this[_0x39af('0x82')](_0x3fbc01,_0x39af('0xd5')))_0x445e9d[_0x39af('0xba')]&&!_0x445e9d[_0x39af('0x16')]&&_0x5afdd5[_0x39af('0x130')](_0x20812e);for(const _0x4903a3 of _0x5afdd5)if(_0x4903a3[_0x39af('0x4e')]){const _0x5e386a=_0x4903a3[_0x39af('0xff')]();(!_0x4903a3[_0x39af('0x7e')]||!_0x4903a3[_0x39af('0x7e')][_0x39af('0x9d')])&&(_0x5e386a[_0x39af('0x5b')](_0x1b0516=>_0x17c39d[_0x39af('0x63')](_0x4c7b00=>_0x4c7b00[_0x39af('0xcd')](_0x1b0516,!0x0)))&&_0x4903a3[_0x39af('0xbb')]());if(_0x17c39d[_0x39af('0x5b')](_0x4b240a=>_0x5e386a[_0x39af('0x63')](_0x420869=>_0x420869[_0x39af('0xcd')](_0x4b240a,!0x0)))){const _0x20b129=this[_0x39af('0x3e')][_0x39af('0xf8')]('deletion',_0x2467a7,_0x39af('0xad'));return this['forceDefaultExecution'](()=>_0x20b129(_0x513575,null,_0x586470)),null;}}else{const _0x33a01d=_0x4903a3[_0x39af('0x4f')]();_0x17c39d['some'](_0x436b14=>_0x436b14[_0x39af('0xcd')](_0x33a01d,!0x0))&&_0x4903a3[_0x39af('0xbb')]();if(_0x17c39d[_0x39af('0x5b')](_0x2b07ac=>_0x33a01d[_0x39af('0xcd')](_0x2b07ac,!0x0))){const _0x644014=this['_suggestionFactory'][_0x39af('0xf8')](_0x39af('0xb'),_0x2467a7,_0x39af('0xad'));return this[_0x39af('0xd6')](()=>_0x644014(_0x17c39d,null,_0x586470)),null;}}const _0x303353=this[_0x39af('0x3e')][_0x39af('0xf8')](_0x39af('0xb'),_0x2467a7,_0x39af('0xa9'));let _0x241f18=null;for(const _0x4dd4cf of this[_0x39af('0x7a')]())if(_0x4dd4cf[_0x39af('0xea')]['id']==_0x531c6d['id']&&_0x4dd4cf['isInContent']&&_0x39af('0xb')==_0x4dd4cf[_0x39af('0x13c')]&&_0x4dd4cf['subType']==_0x2467a7&&(_0x303353(_0x4dd4cf[_0x39af('0xff')](),_0x17c39d)||_0x303353(_0x17c39d,_0x4dd4cf[_0x39af('0xff')]()))){if(_0x241f18){if(_0x4dd4cf[_0x39af('0xf6')]&&_0x4dd4cf[_0x39af('0xf6')][_0x39af('0xfd')])continue;for(const _0x49c239 of _0x4dd4cf[_0x39af('0xff')]())_0x241f18[_0x39af('0x125')](_0x49c239)||_0x241f18['addRange'](_0x49c239);_0x4dd4cf[_0x39af('0x88')]();}else{_0x241f18=_0x4dd4cf;for(const _0x133fb2 of _0x17c39d)_0x4dd4cf[_0x39af('0x125')](_0x133fb2)||_0x4dd4cf[_0x39af('0xb4')](_0x133fb2);}}if(_0x241f18)return _0x241f18;_0x5afdd5[_0x39af('0xc2')]();for(const _0x482403 of _0x17c39d)for(const {suggestion:_0x26e2fd,meta:_0x2ca53d}of this[_0x39af('0x82')](_0x482403,'deletion'))_0x2ca53d['isOwn']&&_0x5afdd5[_0x39af('0x130')](_0x26e2fd);for(const _0x330848 of _0x5afdd5){const _0x554f7a=_0x330848[_0x39af('0xff')]();if(!_0x586470||!_0x586470[_0x39af('0x9d')]){if(_0x17c39d[_0x39af('0x5b')](_0x594567=>_0x554f7a[_0x39af('0x63')](_0x4bc584=>_0x4bc584[_0x39af('0xcd')](_0x594567,!0x0))))return _0x330848;}(!_0x330848['attributes']||!_0x330848[_0x39af('0x7e')][_0x39af('0x9d')])&&(_0x554f7a[_0x39af('0x5b')](_0x299744=>_0x17c39d[_0x39af('0x63')](_0x2a5d52=>_0x2a5d52['containsRange'](_0x299744,!0x0)))&&_0x330848['discard']());}const _0x33dd99=_0x16cd6a(),_0x5d4b76=_0x531c6d['id'],_0x1f09cb=_0x39af('0x97')+_0x2467a7,_0x5a1024=this[_0x39af('0xa1')]({'id':_0x33dd99,'type':_0x1f09cb,'createdAt':new Date(),'authorId':_0x5d4b76,'attributes':_0x586470});for(const _0x1cd61a of _0x17c39d)_0x1cd61a[_0x39af('0x52')](),_0x1cd61a['isCollapsed']||_0x39af('0xa5')==_0x1cd61a[_0x39af('0x13e')][_0x39af('0x10a')]||this['_addSuggestionMarker'](_0x1f09cb,_0x33dd99,_0x5d4b76,_0x1cd61a,_0x1760a0['getMultiRangeId']());return _0x5a1024;}['_setSuggestionRange'](_0x2d9f1e,_0x504425){const _0x2becab=_0x2d9f1e['getFirstMarker']();this[_0x39af('0x116')]['change'](_0xb6e2fb=>{_0xb6e2fb[_0x39af('0x12a')](_0x2becab,{'range':_0x504425});});}[_0x39af('0xd2')](_0x4a309b){const _0x2229c0=_0x4a309b['id'],_0x2668ae=this[_0x39af('0xb1')][_0x39af('0x9')][_0x39af('0x72')](_0x39af('0x11c'));this[_0x39af('0x2d')][_0x39af('0x46')](_0x2229c0)||this[_0x39af('0x2d')]['addCommentThread']({'channelId':_0x2668ae,'threadId':_0x2229c0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x192e06=this['_commentsRepository'][_0x39af('0x77')](_0x2229c0);_0x192e06[_0x39af('0x100')]('isRemovable'),_0x192e06['isRemovable']=!0x1,_0x4a309b[_0x39af('0xf6')]=_0x192e06;}[_0x39af('0x92')](_0x41df4d,_0x12428d,_0x446a82,_0xf99a7c){if(_0x41df4d[_0x39af('0x13c')]!=_0x12428d||_0x41df4d[_0x39af('0xec')]!=_0x446a82||_0x41df4d['creator']['id']!=_0xf99a7c)throw this[_0x39af('0xb1')]['enableReadOnlyMode'](_0x39af('0xc9')),new _0x14653c(_0x39af('0xc9'),this);}[_0x39af('0xf2')](_0x4c6cf6,_0x140400){const _0x152a67=_0x4c6cf6[_0x39af('0x4f')]();if(_0x140400[_0x39af('0x91')](_0x152a67))_0x4c6cf6[_0x39af('0x88')]();else{if(_0x152a67[_0x39af('0xcd')](_0x140400)){const _0x14168d=this[_0x39af('0x116')][_0x39af('0x126')](_0x140400[_0x39af('0xd8')][_0x39af('0x102')],_0x39af('0x4'));this[_0x39af('0xcc')](_0x4c6cf6,this[_0x39af('0x116')][_0x39af('0xda')](_0x152a67[_0x39af('0xd8')],_0x14168d));const _0x3bebcc=_0x16cd6a(),_0x5a7e31=_0x4c6cf6[_0x39af('0x2c')]['id'],_0x57cab0=_0x4c6cf6['type']+':'+_0x4c6cf6[_0x39af('0xec')];this[_0x39af('0xa1')]({'id':_0x3bebcc,'type':_0x57cab0,'createdAt':new Date(),'authorId':_0x5a7e31,'data':_0x4c6cf6[_0x39af('0x139')],'attributes':_0x4c6cf6[_0x39af('0x7e')]});const _0x3db828=this['_model']['createPositionAt'](_0x140400[_0x39af('0x4')][_0x39af('0x35')],'after'),_0x46b66f=this[_0x39af('0x116')]['createRange'](_0x3db828,_0x152a67['end']);this[_0x39af('0x6a')](_0x57cab0,_0x3bebcc,_0x5a7e31,_0x46b66f);}else{if(_0x152a67[_0x39af('0x12f')](_0x140400[_0x39af('0xd8')])){const _0x3df039=this[_0x39af('0x116')][_0x39af('0x126')](_0x140400[_0x39af('0xd8')][_0x39af('0x102')],'end');this[_0x39af('0xcc')](_0x4c6cf6,this[_0x39af('0x116')][_0x39af('0xda')](_0x152a67['start'],_0x3df039));}else{const _0x2ff6d3=this[_0x39af('0x116')]['createPositionAt'](_0x140400[_0x39af('0x4')][_0x39af('0x35')],_0x39af('0x56'));this['_setSuggestionRange'](_0x4c6cf6,this[_0x39af('0x116')][_0x39af('0xda')](_0x2ff6d3,_0x152a67[_0x39af('0x4')]));}}}}[_0x39af('0x45')](_0x5941d7){for(const {suggestion:_0x3da60c,meta:_0x5b15f1}of this[_0x39af('0x82')](_0x5941d7,_0x39af('0xd5'))){if(!_0x5b15f1[_0x39af('0xba')])continue;const _0x14f19b=_0x3da60c[_0x39af('0xff')]();for(const _0x165a98 of _0x14f19b)if(!_0x5941d7[_0x39af('0xe6')](_0x165a98)[_0x39af('0xfd')])return!0x0;}return!0x1;}[_0x39af('0x135')](_0x583d45){const _0xa2959b=this['editor']['plugins'][_0x39af('0x72')](_0x39af('0x4a'))[_0x39af('0x3d')](_0x583d45);if(!_0xa2959b)throw new _0x14653c(_0x39af('0x59'),this);return _0xa2959b;}[_0x39af('0x87')](_0x26fcb0){const _0x419ded=this[_0x39af('0xb1')][_0x39af('0xf5')][_0x39af('0x72')](_0x39af('0x4a')),_0x59f84d=_0x2a29b6(_0x39af('0x11e')+_0x26fcb0),_0x382472=_0x419ded['getUser'](_0x59f84d);return _0x382472||_0x419ded[_0x39af('0xd4')]({'id':_0x59f84d,'name':_0x26fcb0});}[_0x39af('0x10c')](_0x52a5e6,_0x5cfd10,_0x59e79d,_0x8a391f,_0x37ac6f){const _0x5bc7bd=this[_0x39af('0x135')](_0x8a391f),_0x23bfa1=this[_0x39af('0x3e')][_0x39af('0x90')](_0x52a5e6,_0x5cfd10,_0x59e79d,_0x5bc7bd,_0x37ac6f,_0x56d5be=>this[_0x39af('0x8a')](_0x59e79d,{'attributes':_0x56d5be}));return this[_0x39af('0xd3')](_0x23bfa1,'accept',()=>{this[_0x39af('0x8a')](_0x59e79d,{'state':_0x39af('0xc1')});},{'priority':_0x39af('0x10f')}),this[_0x39af('0xd3')](_0x23bfa1,'discard',()=>{this['_updateSuggestionData'](_0x59e79d,{'state':_0x39af('0x5')});},{'priority':_0x39af('0x10f')}),this['_suggestions'][_0x39af('0x75')](_0x59e79d,_0x23bfa1),this[_0x39af('0x26')][_0x39af('0x75')](_0x23bfa1,_0x39af('0x23')),_0x23bfa1;}[_0x39af('0x8')](_0x194ab8){const _0x3e958e=_0x194ab8[_0x39af('0x6')](':');return{'group':_0x3e958e[0x0],'type':_0x3e958e[0x1],'subType':_0x3e958e[_0x39af('0xfd')]>=0x5?_0x3e958e[0x2]:null,'id':_0x3e958e[_0x39af('0xfd')]<0x5?_0x3e958e[0x2]:_0x3e958e[0x3],'authorId':_0x3e958e[_0x39af('0xfd')]<0x5?_0x3e958e[0x3]:_0x3e958e[0x4],'markerCount':0x6==_0x3e958e['length']?_0x3e958e[0x5]:null};}[_0x39af('0x17')](_0x384510,_0x4dbd73,_0x371b7c){const _0x2f05ce=_0x384510[_0x39af('0x4f')](),_0x5ce130=_0x2f05ce[_0x39af('0xd8')],_0x42c64e=_0x2f05ce[_0x39af('0x4')];this['_setSuggestionRange'](_0x384510,this[_0x39af('0x116')][_0x39af('0xda')](_0x5ce130,_0x4dbd73));const _0x2af80c=_0x16cd6a(),_0xfd4ba5=_0x384510[_0x39af('0x2c')]['id'],_0x47cc6e=_0x384510[_0x39af('0x13c')]+(_0x384510[_0x39af('0xec')]?':'+_0x384510[_0x39af('0xec')]:'');this[_0x39af('0xa1')]({'id':_0x2af80c,'type':_0x47cc6e,'createdAt':new Date(),'authorId':_0xfd4ba5,'originalSuggestionId':_0x384510['id'],'attributes':_0x384510[_0x39af('0x7e')],'data':_0x384510[_0x39af('0x139')]}),'formatBlock'==_0x384510[_0x39af('0x13c')]&&(_0x371b7c=this[_0x39af('0x116')][_0x39af('0x12')](_0x371b7c[_0x39af('0x35')])),this[_0x39af('0x6a')](_0x47cc6e,_0x2af80c,_0xfd4ba5,this[_0x39af('0x116')][_0x39af('0xda')](_0x371b7c,_0x42c64e));}['_findSuggestions'](_0x57d956,_0x5e449a=null){const _0x4021da=[],_0xb47df1=this['_model']['schema'],_0x2c4890=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')]('Users')['me'];for(const _0x1aa6e2 of this['getSuggestions']())if(_0x1aa6e2['isInContent']&&(!_0x5e449a||_0x1aa6e2[_0x39af('0x13c')]==_0x5e449a))for(const _0x312c48 of _0x1aa6e2['getRanges']()){const _0xe41705=_0x57d956['start']['isEqual'](_0x312c48[_0x39af('0x4')])||_0x57d956[_0x39af('0x4')]['isEqual'](_0x312c48[_0x39af('0xd8')]);if(_0xe41705||_0x57d956[_0x39af('0x127')](_0x312c48)){const _0x388072=_0x57d956['containsRange'](_0x312c48)&&Bt(_0xb47df1,_0x312c48['start'],_0x57d956),_0x1db38e=_0x312c48[_0x39af('0xcd')](_0x57d956)&&Bt(_0xb47df1,_0x57d956[_0x39af('0xd8')],_0x312c48);_0x4021da[_0x39af('0xb9')]({'suggestion':_0x1aa6e2,'meta':{'isOwn':_0x2c4890==_0x1aa6e2[_0x39af('0xea')],'isNextTo':_0xe41705,'isInsideObject':_0x388072,'containsRangeInObject':_0x1db38e}});break;}}return _0x4021da;}['_addSuggestionMarker'](_0x46cf2b,_0x118748,_0x5109a0,_0x5bcab3,_0x59798e){this[_0x39af('0x116')][_0x39af('0x138')](_0x51a14d=>{let _0x5d41f9=_0x39af('0x37')+_0x46cf2b+':'+_0x118748+':'+_0x5109a0;_0x59798e&&(_0x5d41f9=_0x5d41f9+':'+_0x59798e),_0x51a14d[_0x39af('0x34')](_0x5d41f9,{'range':_0x5bcab3,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x39af('0xeb')](_0x2137ba){const _0x132f80=_0x2137ba['previous'],_0x5d764c=_0x2137ba[_0x39af('0x8b')];_0x2137ba[_0x39af('0x69')]=null,null!=_0x132f80&&(_0x132f80[_0x39af('0x8b')]=null),_0x2137ba[_0x39af('0x8b')]=null,null!=_0x5d764c&&(_0x5d764c[_0x39af('0x69')]=null),_0x39af('0x79')==this['_suggestionState']['get'](_0x2137ba)&&(this[_0x39af('0x26')][_0x39af('0x75')](_0x2137ba,'removed'),this[_0x39af('0x49')]('suggestionUnloaded',_0x2137ba,_0x132f80,_0x5d764c));}['_setSuggestionData'](_0x5a4eee){const _0x5b691f=_0x5a4eee['id'],_0x66c997=this[_0x39af('0x89')](_0x5a4eee);if(this[_0x39af('0x22')]&&this['_adapter'][_0x39af('0x120')]){const _0x221c8c=this[_0x39af('0xb1')]['plugins'][_0x39af('0x72')](_0x39af('0x38')),_0x21fc9b=_0x66c997[_0x39af('0xee')],_0x46a835=_0x66c997[_0x39af('0xec')]?_0x66c997[_0x39af('0x13c')]+':'+_0x66c997['subType']:_0x66c997[_0x39af('0x13c')],_0x288d87=this[_0x39af('0xb1')][_0x39af('0x9b')],_0x90a972=_0x221c8c[_0x39af('0x130')](_0x13674c(_0x288d87,'PENDING_ACTION_SUGGESTION')),_0x2a0d23={'id':_0x5b691f,'type':_0x46a835,'hasComments':_0x21fc9b,'data':_0x5a4eee['data']||null,'originalSuggestionId':_0x5a4eee['originalSuggestionId']||null,'attributes':_0x66c997[_0x39af('0x7e')]};this['_adapter'][_0x39af('0x120')](_0x2a0d23)[_0x39af('0xf0')](_0x3af955=>{_0x66c997[_0x39af('0x66')]=!0x0,_0x221c8c[_0x39af('0x119')](_0x90a972),_0x3af955&&_0x3af955[_0x39af('0xe')]&&(this[_0x39af('0x5a')][_0x39af('0x72')](_0x5b691f)[_0x39af('0xe')]=_0x3af955[_0x39af('0xe')]);})[_0x39af('0x5e')](_0x325c5b=>{throw _0xd82b5d(_0x39af('0x1e')),this[_0x39af('0xb1')][_0x39af('0x1f')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x66c997[_0x39af('0xbb')]();}),_0x66c997[_0x39af('0xe3')](),this['_suggestions'][_0x39af('0xc4')](_0x66c997['id']),this[_0x39af('0x26')][_0x39af('0xc4')](_0x66c997),_0x325c5b;});}return _0x66c997;}['_updateSuggestionData'](_0x7aa61a,_0x25548f){const _0x20d0e5=this['editor'][_0x39af('0xf5')][_0x39af('0x72')]('PendingActions'),_0x2c748e=this[_0x39af('0x84')](_0x7aa61a);if(this[_0x39af('0x22')]&&this[_0x39af('0x22')][_0x39af('0x36')]){if(_0x2c748e[_0x39af('0x66')]){const _0x3777f9=_0x20d0e5['add'](_0x13674c(this[_0x39af('0xb1')][_0x39af('0x9b')],_0x39af('0x2a')));this[_0x39af('0x22')]['updateSuggestion'](_0x7aa61a,_0x25548f)['then'](()=>{_0x20d0e5['remove'](_0x3777f9);});}else _0x2c748e['on'](_0x39af('0x1'),()=>{this['_updateSuggestionData'](_0x7aa61a,_0x25548f);});}}[_0x39af('0x9f')](_0x306be4){if(!this['_adapter']||!this[_0x39af('0x22')][_0x39af('0x84')])throw new _0x14653c('track-changes-adapter-missing-getsuggestion',this);return this[_0x39af('0x22')][_0x39af('0x84')](_0x306be4);}[_0x39af('0x27')](_0x23ba44){const {id:_0x30bf97,type:_0x5d8d36,subType:_0x550f90,authorId:_0x262ab0}=this[_0x39af('0x8')](_0x23ba44),_0x36e760=this[_0x39af('0x5a')]['get'](_0x30bf97)||this[_0x39af('0x10c')](_0x5d8d36,_0x550f90,_0x30bf97,_0x262ab0,{});switch(this[_0x39af('0x92')](_0x36e760,_0x5d8d36,_0x550f90,_0x262ab0),this[_0x39af('0x26')][_0x39af('0x72')](_0x36e760)){case _0x39af('0x23'):this[_0x39af('0x9f')](_0x30bf97)['then'](_0xcef32a=>{let _0x56699a=Promise[_0x39af('0x105')]();_0xcef32a[_0x39af('0xee')]&&(_0x56699a=this[_0x39af('0x2d')]['fetchCommentThread']({'channelId':this[_0x39af('0xb1')][_0x39af('0x9')][_0x39af('0x72')](_0x39af('0x11c')),'threadId':_0x30bf97})),_0x56699a[_0x39af('0xf0')](()=>{this[_0x39af('0x89')](_0xcef32a)['_saved']=!0x0;});}),this[_0x39af('0x26')][_0x39af('0x75')](_0x36e760,_0x39af('0xb5'));break;case _0x39af('0x13b'):this[_0x39af('0x8a')](_0x30bf97,{'state':'open'});case _0x39af('0x129'):this[_0x39af('0x26')]['set'](_0x36e760,'ready'),this['fire'](_0x39af('0xbd'),_0x36e760);break;case'ready':this[_0x39af('0x49')](_0x39af('0x6e'),_0x36e760);}return _0x36e760[_0x39af('0x117')](_0x23ba44),_0x36e760;}[_0x39af('0xef')](_0x59f3fd){const _0x46761e=Array[_0x39af('0x12b')](_0x59f3fd)[_0x39af('0xae')](_0x384328=>!_0x384328[_0x39af('0x4e')]),_0x50e69d=this[_0x39af('0x7a')]({'skipNotAttached':!0x0})[_0x39af('0xae')](_0x4a75c0=>!_0x4a75c0[_0x39af('0x4e')]),_0x1691ee=_0x50e69d['filter'](_0x435bdc=>!_0x59f3fd[_0x39af('0x43')](_0x435bdc)),_0x1363f6=new Map(_0x50e69d[_0x39af('0xdb')](_0x5205bc=>[_0x5205bc,this[_0x39af('0x3e')][_0x39af('0xf8')](_0x5205bc[_0x39af('0x13c')],_0x5205bc[_0x39af('0xec')],_0x39af('0xa3'))])),_0x1499e1=new Map(_0x50e69d['map'](_0xf2df87=>[_0xf2df87,_0xf2df87[_0x39af('0x4f')]()])),_0x38523d=new Set(),_0x54a137=new Set();for(let _0x37b59d=0x0;_0x37b59d<_0x46761e[_0x39af('0xfd')];_0x37b59d++)_0x1a10ad(_0x46761e[_0x37b59d],_0x46761e,_0x37b59d+0x1);for(let _0x3a9b66=0x0;_0x3a9b66<_0x46761e[_0x39af('0xfd')];_0x3a9b66++)_0x1a10ad(_0x46761e[_0x3a9b66],_0x1691ee,0x0);for(let _0x1942b0=0x0;_0x1942b0<_0x46761e[_0x39af('0xfd')];_0x1942b0++){const _0xca937=_0x46761e[_0x1942b0];!_0x54a137['has'](_0xca937)&&_0xca937['previous']&&(_0xca937['previous'][_0x39af('0x8b')]===_0xca937&&(_0xca937[_0x39af('0x69')]['next']=null),_0xca937[_0x39af('0x69')]=null),!_0x38523d[_0x39af('0x43')](_0xca937)&&_0xca937[_0x39af('0x8b')]&&(_0xca937['next'][_0x39af('0x69')]===_0xca937&&(_0xca937['next'][_0x39af('0x69')]=null),_0xca937[_0x39af('0x8b')]=null);}function _0x1a10ad(_0x291ed9,_0x10f866,_0x1730da){for(let _0x3c04aa=_0x1730da;_0x3c04aa<_0x10f866[_0x39af('0xfd')];_0x3c04aa++){const _0x8c0a65=_0x1794f8(_0x291ed9,_0x10f866[_0x3c04aa]);_0x8c0a65&&(_0x8c0a65[0x0]['next']=_0x8c0a65[0x1],_0x8c0a65[0x1][_0x39af('0x69')]=_0x8c0a65[0x0],_0x38523d[_0x39af('0x130')](_0x8c0a65[0x0]),_0x54a137[_0x39af('0x130')](_0x8c0a65[0x1]));}}function _0x1794f8(_0x3e9335,_0x14af0c){if(_0x3e9335[_0x39af('0xea')]['id']!==_0x14af0c[_0x39af('0xea')]['id'])return null;const _0x477173=_0x1363f6[_0x39af('0x72')](_0x3e9335)(_0x3e9335,_0x14af0c,_0x1499e1[_0x39af('0x72')](_0x3e9335),_0x1499e1[_0x39af('0x72')](_0x14af0c));if(!_0x477173)return null;return _0x1363f6[_0x39af('0x72')](_0x14af0c)(_0x3e9335,_0x14af0c,_0x1499e1['get'](_0x3e9335),_0x1499e1[_0x39af('0x72')](_0x14af0c))?_0x477173[0x1][_0x39af('0xf6')]&&_0x477173[0x1][_0x39af('0xf6')][_0x39af('0xfd')]?null:_0x477173:null;}}['_joinWithAdjacentSuggestions'](_0x48da46){const _0x107c84=Array['from'](_0x48da46),_0x386027=this[_0x39af('0x7a')]({'skipNotAttached':!0x0}),_0x591482=_0x386027[_0x39af('0xae')](_0x32fa44=>!_0x48da46[_0x39af('0x43')](_0x32fa44)),_0x2aabd5=new Map(_0x107c84['map'](_0x5424f0=>[_0x5424f0,this[_0x39af('0x3e')][_0x39af('0xf8')](_0x5424f0[_0x39af('0x13c')],_0x5424f0[_0x39af('0xec')],_0x39af('0xa9'))])),_0x4eda7c=new Map(_0x386027[_0x39af('0xdb')](_0xb8264f=>[_0xb8264f,_0xb8264f[_0x39af('0xff')]()]));for(let _0x4ac36c=0x0;_0x4ac36c<_0x107c84['length'];_0x4ac36c++){if(_0x54c1ce(this,_0x107c84[_0x4ac36c],_0x107c84,_0x4ac36c+0x1))return!0x0;}for(let _0x1465c5=0x0;_0x1465c5<_0x107c84['length'];_0x1465c5++){if(_0x54c1ce(this,_0x107c84[_0x1465c5],_0x591482,0x0))return!0x0;}return!0x1;function _0x54c1ce(_0x3900e2,_0x31a0b5,_0x1f6e91,_0x335fb7){for(let _0x1fd2a2=_0x335fb7;_0x1fd2a2<_0x1f6e91['length'];_0x1fd2a2++){const _0x1bcbc0=_0x1f6e91[_0x1fd2a2];if(_0x1bcbc0[_0x39af('0x13c')]!==_0x31a0b5['type']||_0x1bcbc0[_0x39af('0xea')]['id']!==_0x31a0b5[_0x39af('0xea')]['id']||_0x1bcbc0[_0x39af('0xec')]!==_0x31a0b5[_0x39af('0xec')])continue;const _0x388610=_0x2aabd5[_0x39af('0x72')](_0x31a0b5),_0x2433e9=_0x4eda7c[_0x39af('0x72')](_0x31a0b5),_0x93077a=_0x4eda7c[_0x39af('0x72')](_0x1bcbc0),_0x33c74a=_0x31a0b5['commentThread']&&_0x31a0b5['commentThread'][_0x39af('0xfd')],_0x3d434d=_0x1bcbc0[_0x39af('0xf6')]&&_0x1bcbc0['commentThread'][_0x39af('0xfd')];if(!_0x33c74a&&_0x388610(_0x93077a,_0x2433e9))return _0x3900e2[_0x39af('0xa2')](_0x1bcbc0,_0x31a0b5),_0x4eda7c['delete'](_0x31a0b5),!0x0;if(!_0x3d434d&&_0x388610(_0x2433e9,_0x93077a))return _0x3900e2[_0x39af('0xa2')](_0x31a0b5,_0x1bcbc0),_0x4eda7c[_0x39af('0xc4')](_0x1bcbc0),!0x0;}return!0x1;}}[_0x39af('0xa2')](_0xdcd91c,_0x522132){if(_0xdcd91c[_0x39af('0x4e')])for(const _0x191e65 of _0x522132[_0x39af('0xff')]())_0xdcd91c[_0x39af('0xb4')](_0x191e65);else{const _0x4a0cd2=_0x522132[_0x39af('0x4f')]()['end'];this[_0x39af('0xcc')](_0xdcd91c,this[_0x39af('0x116')]['createRange'](_0xdcd91c[_0x39af('0x4f')]()['start'],_0x4a0cd2));}_0x522132[_0x39af('0x88')]();}}class Dt{constructor(_0x14c2c8){this[_0x39af('0x1c')]=_0x14c2c8,this[_0x39af('0x116')]=_0x14c2c8['model'],this[_0x39af('0x108')]=new Map(),this[_0x39af('0x96')]=new Map(),this[_0x39af('0xb8')]();}[_0x39af('0x90')](_0x198ae7,_0x642083,_0x33dfdc,_0x56cfbc,_0x1596cd,_0x28f452){return new _0x1760a0(this[_0x39af('0x116')],{'type':_0x198ae7,'subType':_0x642083,'id':_0x33dfdc,'author':_0x56cfbc,'creator':_0x56cfbc,'attributes':_0x1596cd,'onAttributesChange':_0x28f452,'onAccept':(..._0x15a2c6)=>this[_0x39af('0xf8')](_0x198ae7,_0x642083,_0x39af('0xad'))(..._0x15a2c6),'onDiscard':(..._0x485097)=>this[_0x39af('0xf8')](_0x198ae7,_0x642083,_0x39af('0xbb'))(..._0x485097)});}[_0x39af('0x1d')](_0x18c869,_0x57c364,_0x3b057e,_0x5cc587){const _0x4981e6=_0x18c869+':'+_0x57c364+':'+_0x3b057e;this['_customCallbacks']['set'](_0x4981e6,_0x5cc587);}[_0x39af('0xf8')](_0x3163c2,_0x57eade,_0x2b8c0b){const _0x49c5d1=_0x3163c2+':'+_0x57eade+':'+_0x2b8c0b;return this['_customCallbacks'][_0x39af('0x72')](_0x49c5d1)||this[_0x39af('0x96')]['get'](_0x3163c2+':'+_0x2b8c0b);}[_0x39af('0xb8')](){const _0x356b2a=()=>{},_0xb90d94=_0x3a73bd=>{_0x3a73bd['sort']((_0x352083,_0x15805c)=>_0x352083[_0x39af('0xd8')][_0x39af('0x107')](_0x15805c[_0x39af('0xd8')])?0x1:-0x1),this[_0x39af('0x116')][_0x39af('0x138')](_0x58c9b4=>{for(const _0x45dde2 of _0x3a73bd){let _0x303725;_0x303725=_0x45dde2[_0x39af('0x4')][_0x39af('0xaf')]&&_0x45dde2[_0x39af('0x4')][_0x39af('0x35')]==_0x45dde2[_0x39af('0xd8')][_0x39af('0xaa')]?_0x58c9b4[_0x39af('0xc0')](_0x45dde2['start'][_0x39af('0xaa')],'on'):_0x58c9b4[_0x39af('0xc0')](_0x45dde2),this[_0x39af('0x116')][_0x39af('0x6f')](_0x303725,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3214e3=(_0x35b06a,_0x59a4b0)=>{this[_0x39af('0x116')][_0x39af('0x138')](_0x2356d7=>{const {commandName:_0x3340e2,commandParams:_0x39d7b6=[]}=_0x59a4b0,_0x5ce4f0=_0x35b06a[_0x39af('0xdb')](_0x56d0dd=>(_t(_0x56d0dd)&&(_0x56d0dd=this[_0x39af('0x116')]['createRange'](_0x56d0dd[_0x39af('0x4')])),_0x56d0dd))[_0x39af('0xae')](_0x431713=>_0x39af('0xa5')!==_0x431713[_0x39af('0x13e')][_0x39af('0x10a')]);if(_0x5ce4f0[_0x39af('0xfd')]<0x1)return;const _0x32a0bc=Array[_0x39af('0x12b')](this[_0x39af('0x116')][_0x39af('0x58')][_0x39af('0x128')][_0x39af('0xff')]())[_0x39af('0xdb')](_0x5a2bbf=>_0x3b5b82[_0x39af('0x78')](_0x5a2bbf));_0x2356d7[_0x39af('0xca')](_0x5ce4f0);for(const _0xbc9e04 of this[_0x39af('0x1c')][_0x39af('0xde')]['commands']())_0xbc9e04[_0x39af('0x13')]();_0x39d7b6[_0x39af('0xb9')]({'forceDefaultExecution':!0x0}),this[_0x39af('0x1c')][_0x39af('0xac')](_0x3340e2,..._0x39d7b6);const _0x54b049=_0x32a0bc[_0x39af('0xae')](_0x251818=>'$graveyard'!=_0x251818['root'][_0x39af('0x10a')]);_0x54b049[_0x39af('0xfd')]>0x0&&_0x2356d7[_0x39af('0xca')](_0x54b049);for(const _0x22ac7f of _0x32a0bc)_0x22ac7f['detach']();});},_0x489f20=(_0x37353c,_0x1177e3)=>0x1==_0x37353c['length']&&0x1==_0x1177e3[_0x39af('0xfd')]&&_0x37353c[0x0]['end'][_0x39af('0x91')](_0x1177e3[0x0][_0x39af('0xd8')]),_0x290584=(_0x54a0fe,_0x56e241,_0x503023,_0x590a47)=>xt(_0x54a0fe,_0x56e241,_0x503023,_0x590a47,this[_0x39af('0x116')])?[_0x54a0fe,_0x56e241]:xt(_0x56e241,_0x54a0fe,_0x590a47,_0x503023,this['_model'])?[_0x56e241,_0x54a0fe]:null;this[_0x39af('0x96')]['set'](_0x39af('0x134'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')]('insertion:discard',_0xb90d94),this['_defaultCallbacks'][_0x39af('0x75')]('insertion:join',_0x489f20),this['_defaultCallbacks'][_0x39af('0x75')]('insertion:chain',_0x290584),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0xbe'),_0xb90d94),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x12c'),_0x356b2a),this['_defaultCallbacks'][_0x39af('0x75')](_0x39af('0x15'),_0x489f20),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x14'),_0x290584),this[_0x39af('0x96')][_0x39af('0x75')]('formatInline:accept',_0x3214e3),this[_0x39af('0x96')]['set'](_0x39af('0xc6'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x8e'),_0x489f20),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x70'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')]('formatBlock:accept',_0x3214e3),this['_defaultCallbacks'][_0x39af('0x75')](_0x39af('0x5f'),_0x356b2a),this[_0x39af('0x96')][_0x39af('0x75')]('formatBlock:join',_0x489f20),this[_0x39af('0x96')][_0x39af('0x75')](_0x39af('0x44'),_0x356b2a);}}function Bt(_0x1879d8,_0x305886,_0x424c8b){for(const _0x43ed4a of _0x305886[_0x39af('0x35')][_0x39af('0xdd')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x43ed4a[_0x39af('0x13e')]==_0x43ed4a)return!0x1;if(!_0x424c8b[_0x39af('0xb6')](_0x43ed4a))return!0x1;if(_0x1879d8['isObject'](_0x43ed4a)||_0x1879d8[_0x39af('0xf')](_0x43ed4a))return!0x0;}return!0x1;}function _t(_0xcd6760){return _0xcd6760[_0x39af('0x4')][_0x39af('0x35')]==_0xcd6760[_0x39af('0xd8')][_0x39af('0xaa')]&&_0xcd6760['end'][_0x39af('0x3f')];}function Mt(_0x19146f,_0x280b7c,_0x16c2ca,_0x5908ac){const _0x50a390=_0x551309=>!_0x551309[_0x39af('0x57')]['is'](_0x39af('0x54'))&&!_0x5908ac[_0x39af('0xfb')](_0x551309[_0x39af('0x57')]),_0x4b04c3=_0x19146f['start'][_0x39af('0x18')](_0x50a390),_0x2d5534=_0x19146f[_0x39af('0x4')][_0x39af('0x18')](_0x50a390,{'direction':_0x39af('0xe2')});return(!_0x19146f[_0x39af('0xd8')]['isEqual'](_0x4b04c3)||!_0x19146f['end'][_0x39af('0x91')](_0x2d5534))&&(_0x4b04c3[_0x39af('0x107')](_0x2d5534)?_0x16c2ca[_0x39af('0x12a')](_0x280b7c,{'range':_0x16c2ca[_0x39af('0xda')](_0x4b04c3,_0x2d5534)}):_0x16c2ca[_0x39af('0x7c')](_0x280b7c),!0x0);}function $t(_0x5ec63f){return _0x2a29b6(_0x5ec63f);}function Nt(_0x202bd4){const _0x404104=_0x202bd4[_0x39af('0xd8')]['nodeAfter'];return _0x404104&&_0x404104['is'](_0x39af('0x4c'));}function Rt(_0x1c7c2d,_0x4225c4){const _0x52c578=_0x4225c4['schema']['isObject'](_0x1c7c2d)||_0x4225c4['schema'][_0x39af('0xa7')](_0x1c7c2d);return _0x4225c4[_0x39af('0xda')](_0x4225c4[_0x39af('0x126')](_0x1c7c2d,_0x39af('0x40')),_0x52c578?_0x4225c4[_0x39af('0xa8')](_0x1c7c2d):_0x4225c4[_0x39af('0x126')](_0x1c7c2d,'end'));}function xt(_0x5676b6,_0x4c6ef5,_0x58a294,_0x40e005,_0x2f1700){if(_0x58a294['end'][_0x39af('0x91')](_0x40e005[_0x39af('0xd8')]))return!0x0;if(_0x5676b6[_0x39af('0x13c')]!=_0x4c6ef5[_0x39af('0x13c')])return!0x1;if(!_0x58a294[_0x39af('0x4')]['isTouching'](_0x40e005[_0x39af('0xd8')]))return!0x1;const _0xc8899e=_0x2f1700[_0x39af('0xda')](_0x58a294[_0x39af('0x4')],_0x40e005[_0x39af('0xd8')])[_0x39af('0x9a')]();for(const _0x16c915 of _0xc8899e)if([_0x39af('0x85'),_0x39af('0x121')][_0x39af('0xc8')](_0x16c915[_0x39af('0x13c')])&&_0x2f1700['schema'][_0x39af('0xf')](_0x16c915[_0x39af('0x57')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.d.ts
CHANGED
package/src/trackchangesui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x20ce=['_suggestionToController','filter','length','isEnabled','_descriptionFactory','mainView','button','trackChanges.SuggestionThreadView','change:previous','size','SuggestionThreadView','_refreshActiveMarkers','editor','unbind','listenTo','Annotations','type','getMarkers','focus','keys','bind','_createUIButton','model','getMarkerNames','getByInnerView','acceptButton','from','descriptionParts','CommentView','init','execute','locale','map','Discard\x20all\x20suggestions','clear','trackChanges.disableComments','componentFactory','getJoined','_updateController','suggestion-','addSourceCollector','change:activeAnnotations','EditorAnnotations','define','source','_annotationViews','createAnnotation','remove','commentThread','arrowView','TrackChangesUI','buttonView','get','push','Accept\x20all\x20suggestions','getSuggestion','refreshSelectedViews','isMultiRange','commandName','comments.maxThreadTotalWeight','value','delete','getFirstRange','editing','getAllAdjacentSuggestions','activeMarkers','hasSuggestion','values','CommentsUI','_disableComments','comments.editorConfig','Discard\x20all\x20selected\x20suggestions','config','TrackChangesEditing','innerView','_destroyController','discardButton','suggestionChanged','isInContent','registerAnnotation','_viewToController','isDirty','commands','actionView','trackChanges','plugins','_initializeController','Accept\x20all\x20selected\x20suggestions','set','destroy','add','switchbutton','has','isOn','_handleSuggestionControllerDelayed','_handleControllerBuffer','head','view','separator','getDescriptions','CommentsRepository','some','createCommentThreadController','comments.maxCommentsWhenCollapsed'];(function(_0x244005,_0x20cebb){const _0x39d11f=function(_0x10edef){while(--_0x10edef){_0x244005['push'](_0x244005['shift']());}};_0x39d11f(++_0x20cebb);}(_0x20ce,0xfc));const _0x39d1=function(_0x244005,_0x20cebb){_0x244005=_0x244005-0x0;let _0x39d11f=_0x20ce[_0x244005];return _0x39d11f;};import{Plugin as _0x4d4a98}from'ckeditor5/src/core';import{Collection as _0x3f1433}from'ckeditor5/src/utils';import{Model as _0x4d738b,SplitButtonView as _0x4f00a5,createDropdown as _0x78c3cd,addListToDropdown as _0x1bee7f}from'ckeditor5/src/ui';import{Users as _0x44b074,getDateTimeFormatter as _0x5ac588,getAllMarkersDomElementsSorted as _0x23463f}from'ckeditor5-collaboration/src/collaboration-core';import _0x3c7e05 from'./trackchangesediting';import _0x3834f9 from'./ui/suggestioncontroller';import _0x72d802 from'./ui/view/suggestionthreadview';import{getTranslation as _0x4907e3}from'./utils/common-translations';import _0x2678ef from'../theme/icons/track-changes.svg';export default class d extends _0x4d4a98{static get['requires'](){return[_0x3c7e05,_0x44b074,_0x39d1('0x38'),_0x39d1('0x4b'),_0x39d1('0x66')];}static get['pluginName'](){return _0x39d1('0x6');}constructor(_0x3f9e8c){super(_0x3f9e8c),this[_0x39d1('0x3c')]=new Map(),this['_viewToController']=new Map(),this[_0x39d1('0x1')]=new Map(),this[_0x39d1('0x33')]=new Map();const _0xdd5e0=this[_0x39d1('0x48')][_0x39d1('0x1c')];_0xdd5e0[_0x39d1('0x67')](_0x39d1('0x43'),_0x72d802),_0xdd5e0[_0x39d1('0x67')](_0x39d1('0x5f'),!0x1),this[_0x39d1('0x19')]=_0xdd5e0[_0x39d1('0x8')](_0x39d1('0x5f'));}['_handleSuggestionControllerDelayed'](_0x32950a,_0x3baed0){0x0===this['_handleControllerBuffer'][_0x39d1('0x45')]&&setTimeout(()=>{for(const [_0x1fedc7,_0x2e425b]of this['_handleControllerBuffer']){const _0x2dc755=this[_0x39d1('0x3c')][_0x39d1('0x30')](_0x1fedc7);_0x2dc755||_0x2e425b?_0x2dc755&&_0x2e425b&&this[_0x39d1('0x1f')](_0x1fedc7):this[_0x39d1('0x2a')](_0x1fedc7);}this['editor'][_0x39d1('0x29')][_0x39d1('0x8')]('EditorAnnotations')[_0x39d1('0xc')](),this[_0x39d1('0x47')](),this[_0x39d1('0x33')][_0x39d1('0x5e')]();},0xa),this[_0x39d1('0x33')][_0x39d1('0x2c')](_0x32950a,_0x3baed0);}[_0x39d1('0x59')](){const _0x4e4f95=this['editor'],_0x4c07ab=_0x4e4f95[_0x39d1('0x29')][_0x39d1('0x8')](_0x39d1('0x1d')),_0x25321e=_0x4e4f95[_0x39d1('0x29')][_0x39d1('0x8')](_0x39d1('0x4b')),_0x196083=_0x4e4f95[_0x39d1('0x29')]['get'](_0x39d1('0x66')),_0x518bf1=_0x4e4f95[_0x39d1('0x29')][_0x39d1('0x8')]('CommentsRepository');_0x4e4f95['ui'][_0x39d1('0x60')][_0x39d1('0x2e')](_0x39d1('0x28'),_0x2e241c=>this[_0x39d1('0x51')](_0x2e241c)),_0x196083[_0x39d1('0x64')](()=>{const _0x2190ab=[];for(const [_0x35013b,_0x35d49c]of Array[_0x39d1('0x56')](this['_suggestionToController'])){const _0x3d13d5=_0x35013b[_0x39d1('0x14')](),_0x6bfe39=[];for(const _0x38095d of _0x3d13d5){if(!_0x38095d[_0x39d1('0x22')])continue;if(_0x38095d[_0x39d1('0xd')]){_0x6bfe39['push'](..._0x38095d['getRanges']());continue;}const _0x3d958e=_0x38095d[_0x39d1('0x12')]();if(_0x6bfe39['length']>0x0){const _0x233f19=_0x6bfe39[0x0][_0x39d1('0x61')](_0x3d958e);if(_0x233f19){_0x6bfe39[0x0]=_0x233f19;continue;}}_0x6bfe39[_0x39d1('0x9')](_0x3d958e);}_0x2190ab[_0x39d1('0x9')]([_0x35d49c[_0x39d1('0x35')],_0x6bfe39]);}return _0x2190ab;}),this[_0x39d1('0x4a')](_0x4c07ab,'suggestionLoaded',(_0x376f4b,_0x1c8c89)=>{this[_0x39d1('0x4a')](_0x1c8c89,_0x39d1('0x44'),(_0x3d327a,_0x17aaa8,_0x14a617,_0x47960d)=>{_0x1c8c89[_0x39d1('0x22')]&&(null==_0x14a617?(this[_0x39d1('0x62')](_0x47960d[_0x39d1('0x34')]),this[_0x39d1('0x32')](_0x1c8c89,!0x1)):(this[_0x39d1('0x62')](_0x14a617[_0x39d1('0x34')]),this[_0x39d1('0x32')](_0x1c8c89,!0x0)));}),null===_0x1c8c89['previous']?this[_0x39d1('0x32')](_0x1c8c89,!0x1):this['_updateController'](_0x1c8c89[_0x39d1('0x34')]);}),this[_0x39d1('0x4a')](_0x4c07ab,'suggestionUnloaded',(_0x2adf05,_0x23282e,_0x4756f3)=>{this['stopListening'](_0x23282e,_0x39d1('0x44')),this['_handleControllerBuffer'][_0x39d1('0x11')](_0x23282e);const _0x26a81f=_0x4756f3?_0x4756f3['head']:_0x23282e,_0x6b01fb=this['_suggestionToController'][_0x39d1('0x8')](_0x26a81f);null!==_0x4756f3&&this['_updateController'](_0x26a81f),null===_0x4756f3&&_0x6b01fb&&this[_0x39d1('0x1f')](_0x23282e);}),this[_0x39d1('0x4a')](_0x4c07ab,_0x39d1('0x21'),(_0x41c484,_0x4289cb)=>{this[_0x39d1('0x62')](_0x4289cb);}),this[_0x39d1('0x4a')](_0x25321e,_0x39d1('0x65'),()=>{this[_0x39d1('0x47')]();}),this['listenTo'](_0x518bf1,'addComment',(_0x4e8621,{threadId:_0x435672,isFromAdapter:_0x230b76})=>{if(_0x230b76||!_0x4c07ab[_0x39d1('0x16')](_0x435672))return;const _0x10a34e=_0x4c07ab[_0x39d1('0xb')](_0x435672);this['_suggestionToController'][_0x39d1('0x8')](_0x10a34e)['view'][_0x39d1('0x4e')]();},{'priority':'lowest'});}[_0x39d1('0x47')](){const _0x4adb86=this[_0x39d1('0x48')][_0x39d1('0x29')][_0x39d1('0x8')]('Annotations'),_0x460b1b=this[_0x39d1('0x48')]['plugins'][_0x39d1('0x8')](_0x39d1('0x1d')),_0x19c77f=Array[_0x39d1('0x56')](_0x4adb86['activeAnnotations'],_0x6939c1=>_0x6939c1[_0x39d1('0x1e')])['filter'](_0x37a6d0=>this[_0x39d1('0x24')][_0x39d1('0x30')](_0x37a6d0)),_0x4474ad=[];for(const _0x438fa1 of _0x19c77f){const _0x51360d=this[_0x39d1('0x24')]['get'](_0x438fa1)[_0x39d1('0x52')]['getAllAdjacentSuggestions']();_0x4474ad['push'](..._0x51360d['reduce']((_0x3880fa,_0x2d2198)=>[..._0x3880fa,..._0x2d2198[_0x39d1('0x53')]()],[]));}_0x460b1b[_0x39d1('0x15')]=_0x4474ad;}[_0x39d1('0x51')](_0x506ebe){const _0x4ee364=_0x78c3cd(_0x506ebe,_0x4f00a5),_0x469430=this[_0x39d1('0x48')][_0x39d1('0x26')][_0x39d1('0x8')]('trackChanges'),_0x56a4f7=_0x4907e3(_0x506ebe,'Track\x20changes');_0x4ee364['buttonView'][_0x39d1('0x2c')]({'tooltip':_0x56a4f7,'label':_0x56a4f7,'icon':_0x2678ef}),_0x4ee364[_0x39d1('0x7')]['bind'](_0x39d1('0x31'))['to'](_0x469430,_0x39d1('0x10')),_0x4ee364[_0x39d1('0x7')]['on']('execute',()=>{_0x469430[_0x39d1('0x5a')](),this[_0x39d1('0x48')][_0x39d1('0x13')][_0x39d1('0x35')][_0x39d1('0x4e')]();});const _0x2da31a=new _0x3f1433(),_0x14e7bd=[{'type':_0x39d1('0x2f'),'model':{'withText':!0x0,'label':_0x56a4f7,'commandName':_0x39d1('0x28')}},{'type':_0x39d1('0x36')},{'type':_0x39d1('0x42'),'model':{'withText':!0x0,'label':_0x4907e3(_0x506ebe,_0x39d1('0xa')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x4907e3(_0x506ebe,_0x39d1('0x2b')),'commandName':'acceptSelectedSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x4907e3(_0x506ebe,_0x39d1('0x5d')),'commandName':'discardAllSuggestions'}},{'type':_0x39d1('0x42'),'model':{'withText':!0x0,'label':_0x4907e3(_0x506ebe,_0x39d1('0x1b')),'commandName':'discardSelectedSuggestions'}}];for(const _0x6f73b5 of _0x14e7bd){let _0x2cc967={'type':'separator'};if(_0x6f73b5[_0x39d1('0x52')]){const _0x5c6a36=new _0x4d738b(_0x6f73b5[_0x39d1('0x52')]),_0x46ec24=this[_0x39d1('0x48')][_0x39d1('0x26')]['get'](_0x5c6a36[_0x39d1('0xe')]);_0x5c6a36['bind'](_0x39d1('0x31'),_0x39d1('0x3f'))['to'](_0x46ec24,_0x39d1('0x10'),_0x39d1('0x3f')),_0x2cc967={'type':_0x6f73b5[_0x39d1('0x4c')],'model':_0x5c6a36};}_0x2da31a[_0x39d1('0x2e')](_0x2cc967);}_0x1bee7f(_0x4ee364,_0x2da31a);const _0x2bf9e4=_0x14e7bd[_0x39d1('0x3d')](_0x8070cd=>null!=_0x8070cd[_0x39d1('0x52')])[_0x39d1('0x5c')](_0x5aa2df=>this['editor'][_0x39d1('0x26')][_0x39d1('0x8')](_0x5aa2df['model'][_0x39d1('0xe')])),_0xe82256=_0x4ee364[_0x39d1('0x7')];return _0xe82256[_0x39d1('0x27')][_0x39d1('0x49')](_0x39d1('0x3f')),_0xe82256[_0x39d1('0x5')][_0x39d1('0x49')](_0x39d1('0x3f')),_0xe82256[_0x39d1('0x27')][_0x39d1('0x50')](_0x39d1('0x3f'))['to'](_0x469430,_0x39d1('0x3f')),_0xe82256[_0x39d1('0x5')][_0x39d1('0x50')](_0x39d1('0x3f'))['toMany'](_0x2bf9e4,_0x39d1('0x3f'),(..._0x193d42)=>_0x193d42[_0x39d1('0x39')](_0x6345a1=>_0x6345a1)),_0x4ee364['on'](_0x39d1('0x5a'),_0x46bcad=>{this[_0x39d1('0x48')][_0x39d1('0x5a')](_0x46bcad[_0x39d1('0x0')][_0x39d1('0xe')]),this[_0x39d1('0x48')][_0x39d1('0x13')][_0x39d1('0x35')]['focus']();}),_0x4ee364;}[_0x39d1('0x2a')](_0x3ad80b){const _0x20b7e0=this[_0x39d1('0x48')],_0x4df986=_0x20b7e0['config'],_0x5c54cb=_0x20b7e0[_0x39d1('0x29')]['get'](_0x39d1('0x4b')),_0x4d4153=_0x20b7e0['plugins'][_0x39d1('0x8')](_0x39d1('0x38')),_0x60c6c5=_0x20b7e0[_0x39d1('0x29')][_0x39d1('0x8')](_0x39d1('0x66')),_0x24abcd=_0x20b7e0[_0x39d1('0x29')][_0x39d1('0x8')](_0x44b074)['me'],_0x1eed40=_0x4df986['get'](_0x39d1('0x28'))[_0x39d1('0x46')],{CommentsListView:_0x12add9,CommentThreadInputView:_0x5d668f}=_0x20b7e0[_0x39d1('0x29')][_0x39d1('0x8')](_0x39d1('0x18'));let _0x10d2cf,_0x5571fe;this[_0x39d1('0x1')][_0x39d1('0x30')](_0x3ad80b['id'])?(_0x5571fe=this[_0x39d1('0x1')][_0x39d1('0x8')](_0x3ad80b['id']),_0x10d2cf=_0x5571fe[_0x39d1('0x41')]):(_0x10d2cf=new _0x1eed40(_0x20b7e0[_0x39d1('0x5b')],_0x3ad80b,_0x24abcd,{'disableComments':this[_0x39d1('0x19')],'editorConfig':_0x4df986['get'](_0x39d1('0x1a')),'maxCommentsWhenCollapsed':_0x4df986[_0x39d1('0x8')](_0x39d1('0x3b')),'maxThreadTotalWeight':_0x4df986['get'](_0x39d1('0xf')),'maxCommentCharsWhenCollapsed':_0x4df986[_0x39d1('0x8')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ac588(_0x4df986[_0x39d1('0x8')](_0x39d1('0x5b'))),'CommentView':_0x4df986[_0x39d1('0x8')]('comments')[_0x39d1('0x58')],'CommentsListView':_0x12add9,'CommentThreadInputView':_0x5d668f}),_0x10d2cf[_0x39d1('0x55')]['on']('execute',()=>{_0x20b7e0[_0x39d1('0x13')][_0x39d1('0x35')][_0x39d1('0x4e')]();}),_0x10d2cf[_0x39d1('0x20')]['on'](_0x39d1('0x5a'),()=>{_0x20b7e0['editing'][_0x39d1('0x35')]['focus']();}),_0x5571fe=_0x5c54cb['createAnnotationView'](this[_0x39d1('0x48')][_0x39d1('0x5b')],_0x10d2cf),_0x5571fe[_0x39d1('0x50')](_0x39d1('0x25'))['to'](_0x10d2cf,_0x39d1('0x25')),_0x5571fe[_0x39d1('0x50')](_0x39d1('0x3e'))['to'](_0x10d2cf),_0x5571fe['bind'](_0x39d1('0x4c'))['to'](_0x10d2cf,_0x39d1('0x4c'),_0x57f575=>_0x39d1('0x63')+_0x57f575),this[_0x39d1('0x1')][_0x39d1('0x2c')](_0x3ad80b['id'],_0x5571fe));const _0x3a99dc=_0x4d4153[_0x39d1('0x3a')](_0x3ad80b[_0x39d1('0x4')],_0x10d2cf),_0x1fe3cb=new _0x3834f9(_0x20b7e0,_0x3ad80b,_0x10d2cf,_0x3a99dc),_0x269830=_0x3ad80b[_0x39d1('0x14')]()[_0x39d1('0x3d')](_0x1c1740=>_0x1c1740[_0x39d1('0x22')]);_0x10d2cf['descriptionParts']=_0x20b7e0[_0x39d1('0x29')]['get'](_0x39d1('0x1d'))[_0x39d1('0x40')][_0x39d1('0x37')](_0x269830),this[_0x39d1('0x3c')][_0x39d1('0x2c')](_0x3ad80b,_0x1fe3cb),this['_viewToController'][_0x39d1('0x2c')](_0x10d2cf,_0x1fe3cb);const _0x18ac8e=_0x5c54cb[_0x39d1('0x2')]({'view':_0x5571fe,'target':()=>{const _0x3037af=[],_0x1fdfa5=_0x3ad80b[_0x39d1('0x14')]()[_0x39d1('0x3d')](_0x15c5f8=>_0x15c5f8[_0x39d1('0x22')]);for(const _0x28dedc of _0x1fdfa5)_0x3037af['push'](..._0x28dedc[_0x39d1('0x4d')]());return _0x23463f(_0x20b7e0[_0x39d1('0x13')],_0x3037af);},'type':()=>_0x39d1('0x63')+_0x1fe3cb[_0x39d1('0x35')][_0x39d1('0x4c')]});_0x5c54cb[_0x39d1('0x2e')](_0x18ac8e),_0x60c6c5[_0x39d1('0x23')](_0x18ac8e);}['_destroyController'](_0x5ac45b){const _0x46c1ed=this[_0x39d1('0x48')][_0x39d1('0x29')][_0x39d1('0x8')]('Annotations'),_0x503328=this[_0x39d1('0x3c')]['get'](_0x5ac45b),_0x134d3e=_0x503328[_0x39d1('0x35')],_0xce40a=_0x46c1ed[_0x39d1('0x54')](_0x134d3e);_0xce40a&&_0x46c1ed[_0x39d1('0x3')](_0xce40a),this[_0x39d1('0x3c')]['delete'](_0x5ac45b),this['_viewToController'][_0x39d1('0x11')](_0x134d3e),_0x503328[_0x39d1('0x2d')]();}['_updateController'](_0x258d7e){if(!_0x258d7e['isInContent']||!this['_suggestionToController'][_0x39d1('0x30')](_0x258d7e))return;const _0x4dab5a=this[_0x39d1('0x48')]['plugins'][_0x39d1('0x8')](_0x39d1('0x1d')),_0xcc24d2=this[_0x39d1('0x3c')][_0x39d1('0x8')](_0x258d7e),_0x30f529=_0x258d7e[_0x39d1('0x14')]();_0xcc24d2[_0x39d1('0x35')][_0x39d1('0x57')]=_0x4dab5a[_0x39d1('0x40')][_0x39d1('0x37')](_0x30f529);}[_0x39d1('0x2d')](){for(const _0x40d672 of this[_0x39d1('0x3c')][_0x39d1('0x4f')]())this['_destroyController'](_0x40d672);for(const _0x5c8ef0 of this[_0x39d1('0x1')][_0x39d1('0x17')]())_0x5c8ef0[_0x39d1('0x41')][_0x39d1('0x2d')]();super[_0x39d1('0x2d')]();}}
|
|
23
|
+
const _0x52c8=['getSuggestion','CommentsUI','separator','createCommentThreadController','registerAnnotation','getAllAdjacentSuggestions','_bindAnnotationToEditors','clear','commentThread','_descriptionFactory','map','head','plugins','filter','add','comments.maxThreadTotalWeight','comments.editorConfig','value','mainView','suggestion-','activeMarkers','Accept\x20all\x20suggestions','focus','bind','trackChanges','_handleSuggestionControllerDelayed','change:activeAnnotations','addSourceCollector','isEnabled','from','CommentView','_destroyController','size','button','isMultiRange','commands','length','comments.maxCommentCharsWhenCollapsed','execute','_createUIButton','_handleControllerBuffer','previous','isOn','EditorAnnotations','Accept\x20all\x20selected\x20suggestions','componentFactory','Discard\x20all\x20suggestions','discardSelectedSuggestions','_updateController','discardAllSuggestions','Track\x20changes','_refreshActiveMarkers','suggestionChanged','actionView','arrowView','buttonView','_disableComments','getJoined','getDescriptions','isInContent','TrackChangesEditing','editing','Discard\x20all\x20selected\x20suggestions','activeAnnotations','remove','createAnnotationView','push','getMarkerNames','unbind','_viewToController','acceptSelectedSuggestions','destroy','stopListening','lowest','trackChanges.SuggestionThreadView','pluginName','reduce','view','model','refreshSelectedViews','comments.maxCommentsWhenCollapsed','keys','listenTo','descriptionParts','source','createAnnotation','delete','commandName','CommentsRepository','toMany','get','Annotations','hasSuggestion','getRanges','innerView','config','isDirty','has','acceptButton','editor','locale','_suggestionToController','trackChanges.disableComments','_annotationViews','define','getMarkers','_initializeController','type','set','suggestionUnloaded'];(function(_0x41bbad,_0x52c86c){const _0x306685=function(_0x3d795a){while(--_0x3d795a){_0x41bbad['push'](_0x41bbad['shift']());}};_0x306685(++_0x52c86c);}(_0x52c8,0x178));const _0x3066=function(_0x41bbad,_0x52c86c){_0x41bbad=_0x41bbad-0x0;let _0x306685=_0x52c8[_0x41bbad];return _0x306685;};import{Plugin as _0x150f8e}from'ckeditor5/src/core';import{Collection as _0x105231}from'ckeditor5/src/utils';import{Model as _0x57de1c,SplitButtonView as _0x2310fa,createDropdown as _0xc09fa7,addListToDropdown as _0x488754}from'ckeditor5/src/ui';import{Users as _0x58949e,getDateTimeFormatter as _0x5c812c,getAllMarkersDomElementsSorted as _0x21dc61}from'ckeditor5-collaboration/src/collaboration-core';import _0x5eba2c from'./trackchangesediting';import _0x31106f from'./ui/suggestioncontroller';import _0x9b6e8e from'./ui/view/suggestionthreadview';import{getTranslation as _0x222207}from'./utils/common-translations';import _0x2f83d9 from'../theme/icons/track-changes.svg';export default class d extends _0x150f8e{static get['requires'](){return[_0x5eba2c,_0x58949e,'CommentsRepository','Annotations','EditorAnnotations'];}static get[_0x3066('0x1d')](){return'TrackChangesUI';}constructor(_0x42e4d6){super(_0x42e4d6),this[_0x3066('0x37')]=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x3066('0x68')]=new Map();const _0x5cd72e=this['editor'][_0x3066('0x31')];_0x5cd72e[_0x3066('0x3a')](_0x3066('0x1c'),_0x9b6e8e),_0x5cd72e['define']('trackChanges.disableComments',!0x1),this[_0x3066('0xa')]=_0x5cd72e[_0x3066('0x2c')](_0x3066('0x38'));}[_0x3066('0x59')](_0x25c8a5,_0x35505e){0x0===this['_handleControllerBuffer'][_0x3066('0x60')]&&setTimeout(()=>{for(const [_0x3e5db5,_0x1b509d]of this[_0x3066('0x68')]){const _0x32544a=this[_0x3066('0x37')][_0x3066('0x33')](_0x3e5db5);_0x32544a||_0x1b509d?_0x32544a&&_0x1b509d&&this[_0x3066('0x5f')](_0x3e5db5):this[_0x3066('0x3c')](_0x3e5db5);}this[_0x3066('0x35')]['plugins']['get'](_0x3066('0x6b'))[_0x3066('0x21')](),this[_0x3066('0x5')](),this['_handleControllerBuffer'][_0x3066('0x47')]();},0xa),this[_0x3066('0x68')][_0x3066('0x3e')](_0x25c8a5,_0x35505e);}['init'](){const _0x5a21e4=this[_0x3066('0x35')],_0x2831c6=_0x5a21e4['plugins'][_0x3066('0x2c')](_0x3066('0xe')),_0x1042ff=_0x5a21e4[_0x3066('0x4c')]['get']('Annotations'),_0x300203=_0x5a21e4[_0x3066('0x4c')][_0x3066('0x2c')]('EditorAnnotations'),_0x8a483d=_0x5a21e4[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2a'));_0x5a21e4['ui'][_0x3066('0x6d')][_0x3066('0x4e')]('trackChanges',_0x16a0e2=>this['_createUIButton'](_0x16a0e2)),_0x300203[_0x3066('0x5b')](()=>{const _0x471a5a=[];for(const [_0x5cbc80,_0x1db24d]of Array[_0x3066('0x5d')](this['_suggestionToController'])){const _0x4e19da=_0x5cbc80[_0x3066('0x45')](),_0x44b122=[];for(const _0x501800 of _0x4e19da){if(!_0x501800[_0x3066('0xd')])continue;if(_0x501800[_0x3066('0x62')]){_0x44b122[_0x3066('0x14')](..._0x501800[_0x3066('0x2f')]());continue;}const _0xce4225=_0x501800['getFirstRange']();if(_0x44b122['length']>0x0){const _0x3e6235=_0x44b122[0x0][_0x3066('0xb')](_0xce4225);if(_0x3e6235){_0x44b122[0x0]=_0x3e6235;continue;}}_0x44b122['push'](_0xce4225);}_0x471a5a[_0x3066('0x14')]([_0x1db24d[_0x3066('0x1f')],_0x44b122]);}return _0x471a5a;}),this[_0x3066('0x24')](_0x2831c6,'suggestionLoaded',(_0x418bbc,_0x18ee7f)=>{this[_0x3066('0x24')](_0x18ee7f,'change:previous',(_0x1f9327,_0x3c7178,_0x29399c,_0x1b1877)=>{_0x18ee7f[_0x3066('0xd')]&&(null==_0x29399c?(this[_0x3066('0x2')](_0x1b1877['head']),this['_handleSuggestionControllerDelayed'](_0x18ee7f,!0x1)):(this[_0x3066('0x2')](_0x29399c['head']),this[_0x3066('0x59')](_0x18ee7f,!0x0)));}),null===_0x18ee7f[_0x3066('0x69')]?this['_handleSuggestionControllerDelayed'](_0x18ee7f,!0x1):this[_0x3066('0x2')](_0x18ee7f[_0x3066('0x4b')]);}),this['listenTo'](_0x2831c6,_0x3066('0x3f'),(_0x25f1cf,_0x1e2fa4,_0x13cfbb)=>{this[_0x3066('0x1a')](_0x1e2fa4,'change:previous'),this['_handleControllerBuffer'][_0x3066('0x28')](_0x1e2fa4);const _0x69abc7=_0x13cfbb?_0x13cfbb[_0x3066('0x4b')]:_0x1e2fa4,_0x3558f0=this['_suggestionToController'][_0x3066('0x2c')](_0x69abc7);null!==_0x13cfbb&&this[_0x3066('0x2')](_0x69abc7),null===_0x13cfbb&&_0x3558f0&&this[_0x3066('0x5f')](_0x1e2fa4);}),this[_0x3066('0x24')](_0x2831c6,_0x3066('0x6'),(_0x3dba31,_0x4a5c43)=>{this[_0x3066('0x2')](_0x4a5c43);}),this[_0x3066('0x24')](_0x1042ff,_0x3066('0x5a'),()=>{this['_refreshActiveMarkers']();}),this[_0x3066('0x24')](_0x8a483d,'addComment',(_0x13d8a6,{threadId:_0x3a75ce,isFromAdapter:_0x12a120})=>{if(_0x12a120||!_0x2831c6[_0x3066('0x2e')](_0x3a75ce))return;const _0x368224=_0x2831c6[_0x3066('0x40')](_0x3a75ce);this[_0x3066('0x37')]['get'](_0x368224)['view'][_0x3066('0x56')]();},{'priority':_0x3066('0x1b')});}[_0x3066('0x5')](){const _0x3cb2c0=this[_0x3066('0x35')][_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2d')),_0x5da5b1=this['editor']['plugins'][_0x3066('0x2c')]('TrackChangesEditing'),_0x941e10=Array['from'](_0x3cb2c0[_0x3066('0x11')],_0x6a992=>_0x6a992[_0x3066('0x30')])[_0x3066('0x4d')](_0x1d7e9f=>this[_0x3066('0x17')][_0x3066('0x33')](_0x1d7e9f)),_0x430920=[];for(const _0x3856c3 of _0x941e10){const _0x505988=this[_0x3066('0x17')][_0x3066('0x2c')](_0x3856c3)[_0x3066('0x20')][_0x3066('0x45')]();_0x430920[_0x3066('0x14')](..._0x505988[_0x3066('0x1e')]((_0x17680f,_0x132404)=>[..._0x17680f,..._0x132404[_0x3066('0x15')]()],[]));}_0x5da5b1[_0x3066('0x54')]=_0x430920;}[_0x3066('0x67')](_0x4a444f){const _0x19dbec=_0xc09fa7(_0x4a444f,_0x2310fa),_0x13d132=this['editor']['commands'][_0x3066('0x2c')]('trackChanges'),_0x4b4456=_0x222207(_0x4a444f,_0x3066('0x4'));_0x19dbec[_0x3066('0x9')][_0x3066('0x3e')]({'tooltip':_0x4b4456,'label':_0x4b4456,'icon':_0x2f83d9}),_0x19dbec[_0x3066('0x9')][_0x3066('0x57')](_0x3066('0x6a'))['to'](_0x13d132,_0x3066('0x51')),_0x19dbec[_0x3066('0x9')]['on'](_0x3066('0x66'),()=>{_0x13d132[_0x3066('0x66')](),this[_0x3066('0x35')][_0x3066('0xf')][_0x3066('0x1f')]['focus']();});const _0x35edcf=new _0x105231(),_0x26714e=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x4b4456,'commandName':_0x3066('0x58')}},{'type':_0x3066('0x42')},{'type':_0x3066('0x61'),'model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x55')),'commandName':'acceptAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x6c')),'commandName':_0x3066('0x18')}},{'type':'button','model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x0')),'commandName':_0x3066('0x3')}},{'type':_0x3066('0x61'),'model':{'withText':!0x0,'label':_0x222207(_0x4a444f,_0x3066('0x10')),'commandName':_0x3066('0x1')}}];for(const _0x37c8a7 of _0x26714e){let _0x1498ab={'type':'separator'};if(_0x37c8a7[_0x3066('0x20')]){const _0x492cd9=new _0x57de1c(_0x37c8a7['model']),_0x1dccf8=this[_0x3066('0x35')][_0x3066('0x63')][_0x3066('0x2c')](_0x492cd9[_0x3066('0x29')]);_0x492cd9[_0x3066('0x57')](_0x3066('0x6a'),'isEnabled')['to'](_0x1dccf8,_0x3066('0x51'),_0x3066('0x5c')),_0x1498ab={'type':_0x37c8a7[_0x3066('0x3d')],'model':_0x492cd9};}_0x35edcf[_0x3066('0x4e')](_0x1498ab);}_0x488754(_0x19dbec,_0x35edcf);const _0xfb7c45=_0x26714e[_0x3066('0x4d')](_0x2ae6f0=>null!=_0x2ae6f0[_0x3066('0x20')])[_0x3066('0x4a')](_0x35a5f6=>this[_0x3066('0x35')][_0x3066('0x63')][_0x3066('0x2c')](_0x35a5f6[_0x3066('0x20')]['commandName'])),_0x459904=_0x19dbec[_0x3066('0x9')];return _0x459904[_0x3066('0x7')]['unbind']('isEnabled'),_0x459904['arrowView'][_0x3066('0x16')](_0x3066('0x5c')),_0x459904[_0x3066('0x7')][_0x3066('0x57')]('isEnabled')['to'](_0x13d132,_0x3066('0x5c')),_0x459904[_0x3066('0x8')]['bind'](_0x3066('0x5c'))[_0x3066('0x2b')](_0xfb7c45,_0x3066('0x5c'),(..._0x567b44)=>_0x567b44['some'](_0x2ec89f=>_0x2ec89f)),_0x19dbec['on'](_0x3066('0x66'),_0x5d9bdb=>{this[_0x3066('0x35')][_0x3066('0x66')](_0x5d9bdb[_0x3066('0x26')][_0x3066('0x29')]),this[_0x3066('0x35')]['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x19dbec;}[_0x3066('0x3c')](_0x2ca4d9){const _0x3ae8bb=this[_0x3066('0x35')],_0x361edb=_0x3ae8bb[_0x3066('0x31')],_0x99b80a=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2d')),_0x5784a1=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x2a')),_0x56d27a=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x6b')),_0x18556c=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x58949e)['me'],_0x30d073=_0x361edb['get'](_0x3066('0x58'))['SuggestionThreadView'],{CommentsListView:_0x48f4c4,CommentThreadInputView:_0x559f8f}=_0x3ae8bb[_0x3066('0x4c')][_0x3066('0x2c')](_0x3066('0x41'));let _0x72d1a4,_0x4be4fb;this['_annotationViews'][_0x3066('0x33')](_0x2ca4d9['id'])?(_0x4be4fb=this['_annotationViews'][_0x3066('0x2c')](_0x2ca4d9['id']),_0x72d1a4=_0x4be4fb[_0x3066('0x52')]):(_0x72d1a4=new _0x30d073(_0x3ae8bb[_0x3066('0x36')],_0x2ca4d9,_0x18556c,{'disableComments':this[_0x3066('0xa')],'editorConfig':_0x361edb[_0x3066('0x2c')](_0x3066('0x50')),'maxCommentsWhenCollapsed':_0x361edb['get'](_0x3066('0x22')),'maxThreadTotalWeight':_0x361edb[_0x3066('0x2c')](_0x3066('0x4f')),'maxCommentCharsWhenCollapsed':_0x361edb[_0x3066('0x2c')](_0x3066('0x65')),'formatDateTime':_0x5c812c(_0x361edb[_0x3066('0x2c')](_0x3066('0x36'))),'CommentView':_0x361edb[_0x3066('0x2c')]('comments')[_0x3066('0x5e')],'CommentsListView':_0x48f4c4,'CommentThreadInputView':_0x559f8f}),_0x72d1a4[_0x3066('0x34')]['on'](_0x3066('0x66'),()=>{_0x3ae8bb['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x72d1a4['discardButton']['on'](_0x3066('0x66'),()=>{_0x3ae8bb['editing'][_0x3066('0x1f')][_0x3066('0x56')]();}),_0x4be4fb=_0x99b80a[_0x3066('0x13')](this[_0x3066('0x35')][_0x3066('0x36')],_0x72d1a4),_0x4be4fb[_0x3066('0x57')](_0x3066('0x32'))['to'](_0x72d1a4,_0x3066('0x32')),_0x4be4fb[_0x3066('0x57')](_0x3066('0x64'))['to'](_0x72d1a4),_0x4be4fb[_0x3066('0x57')]('type')['to'](_0x72d1a4,'type',_0x2630af=>_0x3066('0x53')+_0x2630af),this[_0x3066('0x39')][_0x3066('0x3e')](_0x2ca4d9['id'],_0x4be4fb));const _0x5dea67=_0x5784a1[_0x3066('0x43')](_0x2ca4d9[_0x3066('0x48')],_0x72d1a4),_0x341dda=new _0x31106f(_0x3ae8bb,_0x2ca4d9,_0x72d1a4,_0x5dea67),_0x3afac1=_0x2ca4d9[_0x3066('0x45')]()[_0x3066('0x4d')](_0x3d5e91=>_0x3d5e91[_0x3066('0xd')]);_0x72d1a4[_0x3066('0x25')]=_0x3ae8bb[_0x3066('0x4c')]['get'](_0x3066('0xe'))[_0x3066('0x49')][_0x3066('0xc')](_0x3afac1),this['_suggestionToController']['set'](_0x2ca4d9,_0x341dda),this[_0x3066('0x17')][_0x3066('0x3e')](_0x72d1a4,_0x341dda);const _0x322422=_0x99b80a[_0x3066('0x27')]({'view':_0x4be4fb,'target':()=>{const _0x2deffa=[],_0x3b3b42=_0x2ca4d9[_0x3066('0x45')]()[_0x3066('0x4d')](_0x5e5b9c=>_0x5e5b9c[_0x3066('0xd')]);for(const _0x2599ff of _0x3b3b42)_0x2deffa[_0x3066('0x14')](..._0x2599ff[_0x3066('0x3b')]());return _0x21dc61(_0x3ae8bb['editing'],_0x2deffa);},'type':()=>'suggestion-'+_0x341dda[_0x3066('0x1f')][_0x3066('0x3d')]});_0x5784a1[_0x3066('0x46')](_0x72d1a4,_0x322422),_0x99b80a[_0x3066('0x4e')](_0x322422),_0x56d27a[_0x3066('0x44')](_0x322422);}[_0x3066('0x5f')](_0x11324b){const _0x33152a=this[_0x3066('0x35')]['plugins'][_0x3066('0x2c')](_0x3066('0x2d')),_0x5652d1=this[_0x3066('0x37')][_0x3066('0x2c')](_0x11324b),_0x5904e9=_0x5652d1[_0x3066('0x1f')],_0xc23a27=_0x33152a['getByInnerView'](_0x5904e9);_0xc23a27&&_0x33152a[_0x3066('0x12')](_0xc23a27),this[_0x3066('0x37')][_0x3066('0x28')](_0x11324b),this[_0x3066('0x17')][_0x3066('0x28')](_0x5904e9),_0x5652d1[_0x3066('0x19')]();}[_0x3066('0x2')](_0x4df611){if(!_0x4df611[_0x3066('0xd')]||!this[_0x3066('0x37')][_0x3066('0x33')](_0x4df611))return;const _0x1cfb40=this['editor'][_0x3066('0x4c')][_0x3066('0x2c')]('TrackChangesEditing'),_0x2b8b4e=this[_0x3066('0x37')]['get'](_0x4df611),_0x22f1f8=_0x4df611[_0x3066('0x45')]();_0x2b8b4e[_0x3066('0x1f')][_0x3066('0x25')]=_0x1cfb40['_descriptionFactory'][_0x3066('0xc')](_0x22f1f8);}[_0x3066('0x19')](){for(const _0x4d06f0 of this[_0x3066('0x37')][_0x3066('0x23')]())this['_destroyController'](_0x4d06f0);for(const _0x430378 of this[_0x3066('0x39')]['values']())_0x430378[_0x3066('0x52')][_0x3066('0x19')]();super[_0x3066('0x19')]();}}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
3
4
|
*/
|
|
4
5
|
import type { Editor } from 'ckeditor5/src/core';
|
|
5
6
|
import type Suggestion from '../suggestion';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3511=['plugins','isDirty','stopListening','canAccept','_acceptCommand','bind','execute','_setPendingAction','model','commands','add','isEnabled','getRanges','discardSuggestion','view','_editor','canDiscard','_removePendingAction','_discardCommand','destroy','acceptSuggestion','get','_pendingAction','unbind','locale','remove','listenTo','PendingActions','commentThreadController'];(function(_0x548194,_0x351137){const _0x3a4daa=function(_0x356ad5){while(--_0x356ad5){_0x548194['push'](_0x548194['shift']());}};_0x3a4daa(++_0x351137);}(_0x3511,0x1c7));const _0x3a4d=function(_0x548194,_0x351137){_0x548194=_0x548194-0x0;let _0x3a4daa=_0x3511[_0x548194];return _0x3a4daa;};import{ObservableMixin as _0x2f5d7a}from'ckeditor5/src/utils';import{getTranslation as _0x14d41d}from'../utils/common-translations';export default class qt extends _0x2f5d7a(){constructor(_0x3f65ff,_0x2fcf73,_0x52fe4c,_0x4195b4){super(),this[_0x3a4d('0x11')]=_0x2fcf73,this[_0x3a4d('0x17')]=_0x52fe4c,this['commentThreadController']=_0x4195b4,this['_editor']=_0x3f65ff,this['_acceptCommand']=_0x3f65ff[_0x3a4d('0x12')]['get'](_0x3a4d('0x0')),this[_0x3a4d('0x1b')]=_0x3f65ff['commands'][_0x3a4d('0x1')](_0x3a4d('0x16')),this[_0x3a4d('0x17')][_0x3a4d('0xe')](_0x3a4d('0x14'))['to'](this[_0x3a4d('0xd')],this[_0x3a4d('0x1b')],(_0x50bff1,_0x2b844b)=>_0x50bff1||_0x2b844b),this[_0x3a4d('0x17')][_0x3a4d('0xe')](_0x3a4d('0xc'))['to'](this[_0x3a4d('0xd')],_0x3a4d('0x14'),_0x4a10f0=>_0x4a10f0&&this[_0x3a4d('0x18')][_0x3a4d('0x11')]['canEditAt'](_0x2fcf73[_0x3a4d('0x15')]())),this[_0x3a4d('0x17')][_0x3a4d('0xe')](_0x3a4d('0x19'))['to'](this[_0x3a4d('0x1b')],_0x3a4d('0x14'),_0x3cf9d9=>_0x3cf9d9&&this[_0x3a4d('0x18')][_0x3a4d('0x11')]['canEditAt'](_0x2fcf73[_0x3a4d('0x15')]())),this['_pendingAction']=null,_0x52fe4c['isDirty']&&this[_0x3a4d('0x10')](),this['listenTo'](_0x52fe4c,_0x3a4d('0x0'),()=>this[_0x3a4d('0x0')]()),this[_0x3a4d('0x6')](_0x52fe4c,_0x3a4d('0x16'),()=>this['discardSuggestion']()),this['listenTo'](_0x52fe4c,'change:isDirty',()=>{_0x52fe4c[_0x3a4d('0xa')]?this[_0x3a4d('0x10')]():this[_0x3a4d('0x1a')]();});}[_0x3a4d('0x0')](){this[_0x3a4d('0xd')][_0x3a4d('0xf')](this[_0x3a4d('0x11')]['id']);}[_0x3a4d('0x16')](){this[_0x3a4d('0x1b')][_0x3a4d('0xf')](this[_0x3a4d('0x11')]['id']);}['destroy'](){this['view'][_0x3a4d('0x3')](_0x3a4d('0x14')),this[_0x3a4d('0x17')][_0x3a4d('0x3')]('canAccept'),this[_0x3a4d('0x17')][_0x3a4d('0x3')](_0x3a4d('0x19')),this[_0x3a4d('0xb')](),this[_0x3a4d('0x8')][_0x3a4d('0x1c')](),this[_0x3a4d('0x2')]&&this['_removePendingAction']();}[_0x3a4d('0x10')](){const _0x17c143=_0x14d41d(this[_0x3a4d('0x18')][_0x3a4d('0x4')],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this[_0x3a4d('0x18')]['plugins'][_0x3a4d('0x1')](_0x3a4d('0x7'))[_0x3a4d('0x13')](_0x17c143);}[_0x3a4d('0x1a')](){null!==this[_0x3a4d('0x2')]&&this['_editor'][_0x3a4d('0x9')][_0x3a4d('0x1')](_0x3a4d('0x7'))[_0x3a4d('0x5')](this[_0x3a4d('0x2')]),this['_pendingAction']=null;}}
|