@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231023.0 → 0.0.0-nightly-20231025.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x17ef=['nodeAfter','for','open','Users','consume','formatBlock','enableCommand','isAfter','after','locale','markDeletion','size','markerNameToElements','createPositionBefore','highest','removeAttribute','editor','addMarkerName','_findSuggestions','_updateSuggestionData','addComment','discardSelectedSuggestions','name','formatInline:chain','change','setAttribute','change:activeMarkers','formatBlock:discard','suggestion:','next','acceptSelectedSuggestions','_addThreadToSuggestion','isBlock','_handleNewSuggestionMarker','getRange','$textProxy','containsRange','createPositionAt','markMultiRangeDeletion','creator','_saved','_refreshSuggestionsChain','isSelectable','isCollapsed','containerElement','updateMarker','writer','targetPosition','join','suggestionChanged','isAtEnd','keys','_isDataLoaded','previous','deletion','pluginName','_setSuggestionRange','setTo','removeMarkers','isMultiRange','reconvertMarker','getCommentThread','getAttribute','document','createSelection','getMultiRangeId','commentThread','conversion','plugins','ck-suggestion-marker--active','enqueueChange','type','addMarker:suggestion:formatBlock','value','_rangeIsInLocalUserInsertion','_cutOutSuggestionMarker','_getAuthorFromId','_adapter','set','insertion:','external:','from','track-changes-suggestion-data-mismatch','_isForcedDefaultExecutionBlock','change:data','TrackChangesEditing','consumable','markMultiRangeBlockFormat','ck-suggestion-marker-','PENDING_ACTION_SUGGESTION','length','root','accept','isRemovable','formatBlock:','dataReady','position','getIntersection','track-changes-user-not-found','addSuggestionData','has','ready','get','registerPostFixer','_joinSuggestions','_editor','_removeSuggestion','unbindElementFromMarkerName','commandName','suggestion','isInContent','formatInline:accept','splitPosition','getLastMatchingPosition','_joinWithAdjacentSuggestions','detach','execute','normal','markerReady','requires','addMarker:suggestion','_enabledCommands','formatInline:join','insert','element','updateSuggestion','_descriptionFactory','insertion','getAncestors','formatInline:','getAllAdjacentSuggestions','split','getChangedMarkers','_mergeNestedSuggestions','createPositionAfter','$graveyard','isInsideObject','removeClass','model','deletion:join','some','markers','hasCommentThread','_model','elementToElement','deletion:','multi','substr','forceDefaultExecution','addCommentThread','author','collaboration.channelId','ck-suggestion-marker-formatBlock','markerToHighlight','isExternal','discard','batch','_registerDefaultCallbacks','applyOperation','setSelection','isBefore','move','assign','define','_commentsRepository','trackChanges.mergeNestedSuggestions','chain','parent','sort','getNearestSelectionRange','getFirstMarker','delete','formatBlock:chain','unbind','removeMarker','values','subType','start','commands','range','editingDowncast','high','clear','discardAllSuggestions','schema','track-changes-suggestion-not-found','resolve','isIntersectingWithRange','suggestionUnloaded','nodeBefore','_createSuggestion','getSuggestion','widget','update:suggestion','_checkSuggestionCorrectness','getRanges','splice','_onDiscard','differ','documentSelection','createdAt','insertion:chain','_breakSuggestionMarker','acceptAllSuggestions','removed','deletion:chain','trackChangesCommand','_suggestionFactory','then','fire','fromCharCode','markInlineFormat','_defaultCallbacks','markerName','never','authoredAt','add','accepted','buildSuggestion','config','filter','discardSuggestion','trackChanges','enableReadOnlyMode','data-suggestion','rootName','isOwn','containsPosition','error-saving-suggestion-data-suggestion-discarded','_trackFormatChanges','before','addRange','getUser','trackChanges.trackFormatChanges','marker-count','addUser','getSuggestionCallback','getFirstRange','ck-suggestion-marker','PendingActions','upcast','deletion:discard','always','toJSON','options','data','every','default','addSuggestion','formatGroupId','markInsertion','activeMarkers','listenTo','getCustomProperty','markerToData','mapper','newRange','notReady','deleteContent','hasComments','_splitMarkerName','_customCallbacks','return','lowest','showSuggestionHighlights','_getExternalAuthor','skipNestingCheck','head','editing','elementStart','createRange','bindElementToMarker','backward','includes','CommentsRepository','push','oldRange','containsRangeInObject','fromRange','_suggestionState','acceptSuggestion','catch','_setSuggestionData','insertion:accept','group','toViewElement','_getSuggestionData','end','rejected','multipleBlocks','formatInline','getSuggestions','isLimit','getDifference','suggestion-type','getItems','addMarker','isUndo','insertContent','adapter','dataToMarker','attributes','item','addHighlight','originalSuggestionId','_suggestions','isEqual','isNextTo','_addSuggestionMarker','map','addClass','selection','clone','moveTargetPosition','isObject','createRangeIn','stop'];(function(_0x32532c,_0x17ef96){const _0x5a4883=function(_0x110c51){while(--_0x110c51){_0x32532c['push'](_0x32532c['shift']());}};_0x5a4883(++_0x17ef96);}(_0x17ef,0x137));const _0x5a48=function(_0x32532c,_0x17ef96){_0x32532c=_0x32532c-0x0;let _0x5a4883=_0x17ef[_0x32532c];return _0x5a4883;};import{Plugin as _0x504f26,PendingActions as _0x49ee35}from'ckeditor5/src/core';import{LiveRange as _0x5e64e8}from'ckeditor5/src/engine';import{CKEditorError as _0x5c539a,uid as _0x31bd95,priorities as _0x378540,logWarning as _0x11dcbb}from'ckeditor5/src/utils';import{toWidget as _0x1eb6a8}from'ckeditor5/src/widget';import{Users as _0xe8ccfe,hashObject as _0x295668}from'ckeditor5-collaboration/src/collaboration-core';import _0x3aba37 from'./commands/trackchangescommand';import _0x12c8df from'./commands/acceptsuggestioncommand';import _0x9d033d from'./commands/discardsuggestioncommand';import _0x49a461 from'./commands/executeonallsuggestionscommand';import _0x129bce from'./commands/executeonselectedsuggestionscommand';import _0x37847a from'./suggestion';import _0x4eb6e0 from'./suggestiondescriptionfactory';import _0x36ab08 from'./integrations/aiassistant';import _0x3fef86 from'./integrations/alignment';import _0x42fca0 from'./integrations/basicstyles';import _0x4497fa from'./integrations/blockquote';import _0x5c8325 from'./integrations/ckbox';import _0x9496c from'./integrations/codeblock';import _0xecf40c from'./integrations/comments';import _0x1d5828 from'./integrations/deletecommand';import _0x2a98b2 from'./integrations/documentlist';import _0x4ae6cd from'./integrations/entercommand';import _0x1cbfbe from'./integrations/findandreplace';import _0x5c99c4 from'./integrations/font';import _0x6278eb from'./integrations/formatpainter';import _0x4ec177 from'./integrations/heading';import _0x44b3ac from'./integrations/highlight';import _0x29322f from'./integrations/horizontalline';import _0x50b797 from'./integrations/htmlembed';import _0x3913cf from'./integrations/image';import _0x275a48 from'./integrations/imagereplace';import _0x3da159 from'./integrations/importword';import _0x3b317e from'./integrations/indent';import _0x4de56b from'./integrations/inputcommand';import _0x4c451f from'./integrations/link';import _0x3608d5 from'./integrations/list';import _0x6edbf from'./integrations/listproperties';import _0x19238b from'./integrations/mediaembed';import _0x2ae4ac from'./integrations/mention';import _0x1425f4 from'./integrations/pagebreak';import _0x1b185c from'./integrations/paragraph';import _0xda6317 from'./integrations/removeformat';import _0x500530 from'./integrations/restrictededitingmode';import _0x1dd429 from'./integrations/shiftentercommand';import _0x5e9708 from'./integrations/standardeditingmode';import _0x53cab4 from'./integrations/style';import _0xb4de4 from'./integrations/table';import _0x5beefe from'./integrations/tablemergesplit';import _0x254c38 from'./integrations/tableheadings';import _0x38593e from'./integrations/tableclipboard';import _0xba6c3b from'./integrations/tablecolumnresize';import _0x344dd5 from'./integrations/template';import _0x559a31 from'./integrations/tableofcontents';import _0x5d77e5 from'./integrations/title';import _0x356766 from'./integrations/undo';import{getTranslation as _0x7186cc}from'./utils/common-translations';import _0x4b0305 from'./integrations/tablecaption';import _0x833af7 from'./integrations/documentlistproperties';import _0x2ffd8c from'./integrations/tableproperties';import{isEqual as _0x5c3132}from'lodash-es';export default class p extends _0x504f26{static get[_0x5a48('0x7d')](){return['CommentsRepository',_0xe8ccfe,_0x49ee35,_0x36ab08,_0x3fef86,_0x42fca0,_0x4497fa,_0x5c8325,_0x9496c,_0xecf40c,_0x1d5828,_0x2a98b2,_0x833af7,_0x4ae6cd,_0x1cbfbe,_0x5c99c4,_0x6278eb,_0x4ec177,_0x44b3ac,_0x29322f,_0x50b797,_0x3913cf,_0x275a48,_0x3da159,_0x3b317e,_0x4de56b,_0x4c451f,_0x3608d5,_0x6edbf,_0x19238b,_0x2ae4ac,_0x1425f4,_0x1b185c,_0xda6317,_0x500530,_0x1dd429,_0x5e9708,_0x53cab4,_0xb4de4,_0x5beefe,_0x254c38,_0x4b0305,_0x38593e,_0xba6c3b,_0x559a31,_0x2ffd8c,_0x344dd5,_0x5d77e5,_0x356766];}static get[_0x5a48('0x3d')](){return _0x5a48('0x5b');}constructor(_0x280382){function _0x2a67f8(_0x5b9190){return _0x5b9190['map'](_0x48c357=>String[_0x5a48('0xd8')](_0x48c357))[_0x5a48('0x36')]('');}super(_0x280382),this[_0x5a48('0x54')]('activeMarkers',[]),this['on'](_0x5a48('0x20'),(_0x28a572,_0x143de6,_0x579178,_0x4887f7)=>{this[_0x5a48('0x95')][_0x5a48('0x1e')](()=>{for(const _0x5734ed of[..._0x4887f7,..._0x579178])this[_0x5a48('0x95')][_0x5a48('0x93')]['has'](_0x5734ed)&&_0x280382[_0x5a48('0x112')][_0x5a48('0x42')](_0x5734ed);});}),this[_0x5a48('0x84')]=new _0x4eb6e0(this[_0x5a48('0x16')][_0x5a48('0x90')][_0x5a48('0xbe')],this[_0x5a48('0x16')][_0x5a48('0xf')]),this['_adapter']=null,this[_0x5a48('0xd5')]=new Bt(this['editor']),this[_0x5a48('0x137')]=new Map(),this[_0x5a48('0xaa')]=_0x280382[_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x118')),this[_0x5a48('0x7f')]=new Set(),this[_0x5a48('0x95')]=this[_0x5a48('0x16')][_0x5a48('0x90')],this['_suggestionState']=new WeakMap(),this[_0x5a48('0x59')]=!0x1,_0x280382[_0x5a48('0xe1')][_0x5a48('0xa9')](_0x5a48('0xef'),_0x5a48('0xfd')),this[_0x5a48('0xeb')]=_0x280382[_0x5a48('0xe1')][_0x5a48('0x6c')](_0x5a48('0xef')),_0x280382['config']['define'](_0x5a48('0xab'),!0x0),this['_mergeNestedSuggestions']=_0x280382[_0x5a48('0xe1')][_0x5a48('0x6c')](_0x5a48('0xab')),this['trackChangesCommand']=new _0x3aba37(_0x280382,this['_enabledCommands']),this[_0x2a67f8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2a67f8([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x36]);}['init'](){const _0x10d3d3=this[_0x5a48('0x16')];_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')](_0x5a48('0xba'))[_0x5a48('0x9f')]({'model':_0x5a48('0x73'),'view':_0x5bb0d0=>{const {id:_0x424342,type:_0x22ca16}=this[_0x5a48('0x10a')](_0x5bb0d0[_0x5a48('0xdb')]),_0x1be485=[_0x5a48('0xf4'),_0x5a48('0x5e')+_0x22ca16];let _0xb5f7c8=0xbb8;return this['activeMarkers'][_0x5a48('0x117')](_0x5bb0d0['markerName'])&&(_0x1be485['push']('ck-suggestion-marker--active'),_0xb5f7c8=0xbc2),_0x5a48('0x3c')==_0x22ca16&&(_0xb5f7c8+=0x5),{'classes':_0x1be485,'attributes':{'data-suggestion':_0x424342},'priority':_0xb5f7c8};}}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('dataDowncast')[_0x5a48('0xde')](_0xb1f99f=>{_0xb1f99f['on'](_0x5a48('0x7e'),(_0x51db48,_0x5d7331,_0x164ddc)=>{if(!_0x164ddc['options'][_0x5a48('0x10e')])return;const _0x48d62e=_0x5d7331[_0x5a48('0x134')];if(!_0x48d62e)return;const _0x4d39f7=_0x164ddc['mapper'][_0x5a48('0x123')](_0x48d62e);_0x10d3d3[_0x5a48('0x90')][_0x5a48('0xbe')]['isObject'](_0x48d62e)&&_0x4d39f7&&!_0x4d39f7[_0x5a48('0x103')](_0x5a48('0xc6'))&&_0x4d39f7['is'](_0x5a48('0x32'))&&_0x1eb6a8(_0x4d39f7,_0x164ddc[_0x5a48('0x34')]);},{'priority':_0x5a48('0xbb')});}),_0x10d3d3[_0x5a48('0x49')]['for']('dataDowncast')[_0x5a48('0x9f')]({'model':'suggestion','view':(_0x23e2cf,_0x34b10b)=>{if(!_0x34b10b[_0x5a48('0xfa')][_0x5a48('0x10e')])return null;const {type:_0xbba47}=this[_0x5a48('0x10a')](_0x23e2cf['markerName']);return{'classes':[_0x5a48('0xf4'),_0x5a48('0x5e')+_0xbba47],'priority':0xbb8};}});const _0x2685ef=({showActiveMarkers:_0x27b3d3=!0x0}={})=>(_0x3c1de1,_0x567307,_0x201b11)=>{if(!_0x567307[_0x5a48('0x134')])return;if(_0x567307[_0x5a48('0x134')]['is']('selection'))return void _0x201b11[_0x5a48('0x5c')][_0x5a48('0xa')](_0x567307['item'],_0x3c1de1[_0x5a48('0x1c')]);const _0x1661a3=_0x201b11['mapper'][_0x5a48('0x123')](_0x567307[_0x5a48('0x134')]);if(!(_0x567307[_0x5a48('0x134')]['is'](_0x5a48('0x82'))&&_0x10d3d3[_0x5a48('0x90')][_0x5a48('0xbe')][_0x5a48('0x26')](_0x567307[_0x5a48('0x134')])&&!_0x1661a3[_0x5a48('0x103')]('addHighlight')))return;const {id:_0x1ea636}=this[_0x5a48('0x10a')](_0x567307[_0x5a48('0xdb')]);_0x201b11['writer'][_0x5a48('0x13c')]([_0x5a48('0xf4'),_0x5a48('0x9e')],_0x1661a3),_0x201b11[_0x5a48('0x34')][_0x5a48('0x1f')](_0x5a48('0xe6'),_0x1ea636,_0x1661a3),_0x201b11[_0x5a48('0x105')][_0x5a48('0x115')](_0x1661a3,_0x567307[_0x5a48('0xdb')]),_0x27b3d3&&(this[_0x5a48('0x101')][_0x5a48('0x117')](_0x567307[_0x5a48('0xdb')])?_0x201b11[_0x5a48('0x34')][_0x5a48('0x13c')](_0x5a48('0x4b'),_0x1661a3):_0x201b11[_0x5a48('0x34')][_0x5a48('0x8f')](_0x5a48('0x4b'),_0x1661a3));for(const _0x5b9bf9 of _0x10d3d3[_0x5a48('0x90')][_0x5a48('0x4')](_0x567307['item'])[_0x5a48('0x12d')]())_0x201b11[_0x5a48('0x5c')][_0x5a48('0xa')](_0x5b9bf9,_0x3c1de1[_0x5a48('0x1c')]);_0x201b11[_0x5a48('0x5c')][_0x5a48('0xa')](_0x567307[_0x5a48('0x134')],_0x3c1de1[_0x5a48('0x1c')]);};_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('dataDowncast')['add'](_0x16e874=>{_0x16e874['on']('addMarker:suggestion:formatBlock',(_0x2b34c3,_0x557e65,_0x3a29e7)=>{_0x3a29e7[_0x5a48('0xfa')][_0x5a48('0x10e')]&&_0x2685ef({'showActiveMarkers':!0x1})(_0x2b34c3,_0x557e65,_0x3a29e7);},{'priority':_0x5a48('0x14')});}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('dataDowncast')[_0x5a48('0x104')]({'model':_0x5a48('0x73'),'view':(_0x16e469,_0x3225ea)=>_0x3225ea[_0x5a48('0xfa')][_0x5a48('0x10e')]?null:{'group':_0x5a48('0x73'),'name':_0x16e469[_0x5a48('0x99')](0xb)}}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')](_0x5a48('0xf6'))[_0x5a48('0x96')]({'view':{'name':_0x5a48('0x73'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xfadfaa,{writer:_0x4beab7})=>{let _0x571740=_0x5a48('0x22')+_0xfadfaa[_0x5a48('0x44')](_0x5a48('0x12c'))+':'+_0xfadfaa[_0x5a48('0x44')]('id');return _0xfadfaa[_0x5a48('0x44')](_0x5a48('0xf0'))&&(_0x571740+=':'+_0xfadfaa['getAttribute'](_0x5a48('0xf0'))),_0x4beab7['createElement']('$marker',{'data-name':_0x571740});}}),_0x10d3d3[_0x5a48('0x49')]['for']('upcast')[_0x5a48('0x132')]({'view':'suggestion'}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')](_0x5a48('0xba'))[_0x5a48('0xde')](_0x5c1abd=>{_0x5c1abd['on'](_0x5a48('0x4e'),_0x2685ef(),{'priority':'high'});}),_0x10d3d3[_0x5a48('0x49')][_0x5a48('0x7')]('editingDowncast')[_0x5a48('0xde')](_0x3ebc99=>{_0x3ebc99['on']('removeMarker:suggestion:formatBlock',(_0x59b26e,_0x462f49,_0x27ac9d)=>{const _0x172633=_0x27ac9d[_0x5a48('0x105')][_0x5a48('0x12')](_0x462f49['markerName']);if(_0x172633)for(const _0x543550 of _0x172633)_0x543550[_0x5a48('0x103')](_0x5a48('0x135'))||(_0x27ac9d[_0x5a48('0x34')][_0x5a48('0x8f')]([_0x5a48('0xf4'),_0x5a48('0x9e'),_0x5a48('0x4b')],_0x543550),_0x27ac9d[_0x5a48('0x34')][_0x5a48('0x15')](_0x5a48('0xe6'),_0x543550),_0x27ac9d[_0x5a48('0x105')][_0x5a48('0x71')](_0x543550,_0x462f49[_0x5a48('0xdb')]));},{'priority':'high'});}),_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x45')][_0x5a48('0x6d')](_0x194a31=>{let _0x39883f=!0x1;const _0x5455e0=Array[_0x5a48('0x57')](_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x45')][_0x5a48('0xcc')][_0x5a48('0x8a')]()),_0x5bdae9=new Set();for(const {name:_0xdf826b,data:_0x2cf670}of _0x5455e0){const {group:_0x2d6756,type:_0x1f6754,id:_0x54cc5c}=this[_0x5a48('0x10a')](_0xdf826b);if('suggestion'!==_0x2d6756)continue;const _0x4e6b9d=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x54cc5c);if(null!=_0x2cf670[_0x5a48('0x106')]){_0x5a48('0x128')==_0x1f6754&&(_0x39883f=_0x39883f||$t(_0x2cf670['newRange'],_0xdf826b,_0x194a31,_0x10d3d3[_0x5a48('0x90')]['schema']));if(_0x2cf670[_0x5a48('0x106')][_0x5a48('0x31')]||_0x5a48('0x8d')==_0x2cf670['newRange'][_0x5a48('0x61')]['rootName']||_0x5a48('0xb')==_0x1f6754&&!Rt(_0x2cf670[_0x5a48('0x106')])||'deletion'==_0x1f6754&&!(!Mt(_0x5c32fd=_0x2cf670[_0x5a48('0x106')])&&!function(_0x2bc0c9){return _0x2bc0c9[_0x5a48('0xb7')][_0x5a48('0xad')]==_0x2bc0c9[_0x5a48('0x125')][_0x5a48('0xc3')]&&_0x2bc0c9[_0x5a48('0xb7')][_0x5a48('0x38')];}(_0x5c32fd)))_0x194a31[_0x5a48('0xb4')](_0xdf826b),_0x39883f=!0x0;else{if(!_0x4e6b9d||!_0x4e6b9d['isInContent'])continue;_0x5bdae9['add'](_0x4e6b9d);}}}var _0x5c32fd;return _0x5bdae9['size']>0x0&&(_0x39883f=!!this[_0x5a48('0x78')](_0x5bdae9)||_0x39883f),_0x39883f;}),_0x10d3d3['model'][_0x5a48('0x45')]['registerPostFixer'](_0x42ab03=>{let _0x5d551e=!0x1;for(const _0x5cd128 of _0x10d3d3['model'][_0x5a48('0x45')][_0x5a48('0xcc')]['getChanges']()){if(_0x5a48('0x81')!=_0x5cd128[_0x5a48('0x4d')])continue;const _0x23a025=_0x5cd128[_0x5a48('0x66')]['getShiftedBy'](_0x5cd128[_0x5a48('0x60')]);if(_0x23a025['isAtEnd'])for(const _0x176e38 of this[_0x5a48('0x137')][_0x5a48('0xb5')]()){if(_0x176e38[_0x5a48('0x41')]||!_0x176e38[_0x5a48('0x74')])continue;if(_0x5a48('0xb')!=_0x176e38[_0x5a48('0x4d')])continue;const _0x1325ea=_0x176e38[_0x5a48('0xf3')]();if(_0x1325ea[_0x5a48('0xb7')]['parent']!=_0x1325ea[_0x5a48('0x125')][_0x5a48('0xad')]&&_0x1325ea[_0x5a48('0x125')][_0x5a48('0x138')](_0x5cd128[_0x5a48('0x66')])){const _0x4c0e41=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x114')](_0x1325ea[_0x5a48('0xb7')],_0x23a025);_0x42ab03[_0x5a48('0x33')](_0x176e38['getFirstMarker'](),{'range':_0x4c0e41}),_0x5d551e=!0x0;}}}return _0x5d551e;}),_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x93')]['on'](_0x5a48('0xc7'),(_0x490ea9,_0x489bac,_0x3bedeb)=>{if(null==_0x3bedeb){const {id:_0x8e587a}=this[_0x5a48('0x10a')](_0x489bac[_0x5a48('0x1c')]),_0x201b2c=this[_0x5a48('0x137')]['get'](_0x8e587a);_0x201b2c&&_0x201b2c[_0x5a48('0x17')](_0x489bac[_0x5a48('0x1c')]);}}),_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x45')]['on'](_0x5a48('0x5a'),()=>{const _0x3c071d=Array['from'](_0x10d3d3['model'][_0x5a48('0x45')][_0x5a48('0xcc')]['getChangedMarkers']())['filter'](_0x586820=>_0x5a48('0x73')===this[_0x5a48('0x10a')](_0x586820['name'])[_0x5a48('0x122')]);if(0x0===_0x3c071d[_0x5a48('0x60')])return;_0x3c071d[_0x5a48('0xae')]((_0x2fcc73,_0x2d62e4)=>{const _0x309244=_0x2fcc73[_0x5a48('0xfb')][_0x5a48('0x11a')],_0xec2a54=_0x2d62e4[_0x5a48('0xfb')][_0x5a48('0x11a')];return null===_0x309244&&null===_0xec2a54?0x0:null===_0x309244&&null!==_0xec2a54?-0x1:null!==_0x309244&&null===_0xec2a54?0x1:_0x309244[_0x5a48('0xb7')][_0x5a48('0xa6')](_0xec2a54[_0x5a48('0xb7')])?-0x1:0x1;});const _0x6fad4b=new Set(),_0x386dce=new Set();for(const {name:_0x303b44,data:_0x47c0b7}of _0x3c071d){const {id:_0x1e834f}=this[_0x5a48('0x10a')](_0x303b44);if(null===_0x47c0b7[_0x5a48('0x11a')]){const _0x397d90=this[_0x5a48('0x27')](_0x303b44);_0x386dce['add'](_0x397d90);}else{const _0x5065c4=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x1e834f);null!==_0x47c0b7['newRange']||_0x5065c4[_0x5a48('0x74')]?(_0x6fad4b[_0x5a48('0xde')](_0x5065c4[_0x5a48('0x111')]),_0x386dce[_0x5a48('0xde')](_0x5065c4)):this[_0x5a48('0x70')](_0x5065c4);}}_0x386dce[_0x5a48('0x11')]>0x0&&this[_0x5a48('0x2f')](_0x386dce);for(const _0x5111fa of _0x6fad4b)this['fire'](_0x5a48('0x37'),_0x5111fa);}),_0x10d3d3[_0x5a48('0x90')]['on'](_0x5a48('0xa4'),(_0x1c9c5f,_0xa9c7c9)=>{const _0x1722b9=_0xa9c7c9[0x0];if(!this[_0x5a48('0x137')]['size'])return;if(!_0x1722b9['isDocumentOperation'])return;if(_0x1722b9[_0x5a48('0xa2')][_0x5a48('0x12f')]||!_0x1722b9[_0x5a48('0xa2')]['isLocal'])return;let _0x565523,_0x25b031;switch(_0x1722b9[_0x5a48('0x4d')]){case _0x5a48('0x81'):_0x565523=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x2b')](_0x1722b9[_0x5a48('0x66')]),_0x25b031=_0x565523['getShiftedBy'](_0x1722b9['howMany']);break;case _0x5a48('0x89'):_0x565523=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x2b')](_0x1722b9[_0x5a48('0x76')]),_0x25b031=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x2b')](_0x1722b9[_0x5a48('0x2')]);break;case _0x5a48('0xa7'):_0x565523=_0x10d3d3[_0x5a48('0x90')]['createPositionAt'](_0x1722b9[_0x5a48('0x35')]),_0x25b031=_0x565523['getShiftedBy'](_0x1722b9['howMany']);break;default:return;}const _0x4d1a66=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x114')](_0x565523,_0x25b031);_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x1e')](()=>{for(const {suggestion:_0x1969e3,meta:_0x53ad43}of this['_findSuggestions'](_0x4d1a66)){if(_0x1969e3[_0x5a48('0x41')])continue;if('formatInline'==_0x1969e3[_0x5a48('0x4d')])continue;const _0x37baca=_0x1969e3[_0x5a48('0xfb')]&&_0x1969e3['data'][_0x5a48('0x127')];(_0x5a48('0xb')!=_0x1969e3[_0x5a48('0x4d')]||'split'==_0x1722b9[_0x5a48('0x4d')]&&!_0x37baca)&&(_0x53ad43[_0x5a48('0x11b')]||_0x5a48('0x85')==_0x1969e3[_0x5a48('0x4d')]&&_0x53ad43[_0x5a48('0xe8')]||_0x1969e3[_0x5a48('0xf3')]()[_0x5a48('0x2a')](_0x4d1a66)&&this[_0x5a48('0xd0')](_0x1969e3,_0x565523,_0x25b031));}});},{'priority':_0x5a48('0x10d')}),_0x10d3d3[_0x5a48('0x90')]['on'](_0x5a48('0x108'),(_0x23f106,_0x570d58)=>{const _0x572661=_0x570d58[0x0],_0x2a42c1=_0x570d58[0x1];if(_0x2a42c1&&_0x2a42c1[_0x5a48('0x9a')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x5a48('0xd4')][_0x5a48('0x4f')])return;if(_0x572661[_0x5a48('0x31')])return;const _0x4a36bf=_0x10d3d3['model'][_0x5a48('0xbe')],{start:_0x5cc586,end:_0x25b777}=_0x572661['getFirstRange'](),_0x492b7c=_0x5cc586[_0x5a48('0x6')]&&_0x4a36bf[_0x5a48('0x12a')](_0x5cc586['nodeAfter'])?null:_0x4a36bf[_0x5a48('0xaf')](_0x5cc586,'forward'),_0x23cd1=_0x25b777[_0x5a48('0xc3')]&&_0x4a36bf['isLimit'](_0x25b777[_0x5a48('0xc3')])?null:_0x4a36bf[_0x5a48('0xaf')](_0x25b777,_0x5a48('0x116')),_0x29453b=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x114')](_0x492b7c?_0x492b7c[_0x5a48('0xb7')]:_0x5cc586,_0x23cd1?_0x23cd1['end']:_0x25b777);_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x1e')](_0x4d0858=>{this[_0x5a48('0x10')](_0x29453b);const _0x3dfaf1=_0x10d3d3['model'][_0x5a48('0xbe')][_0x5a48('0xaf')](_0x29453b['start']);_0x572661['is'](_0x5a48('0xcd'))?_0x4d0858[_0x5a48('0xa5')](_0x3dfaf1):_0x572661[_0x5a48('0x3f')](_0x3dfaf1);}),_0x23f106[_0x5a48('0x5')]();},{'priority':_0x378540[_0x5a48('0x7b')]+0xa}),_0x10d3d3[_0x5a48('0x90')]['on'](_0x5a48('0x130'),(_0x410c27,_0x5c05d0)=>{const _0x13eec5=_0x5c05d0[_0x5c05d0['length']-0x1];_0x13eec5&&_0x13eec5['forceDefaultExecution']||this[_0x5a48('0x59')]||this[_0x5a48('0xd4')]['value']&&(_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x1e')](()=>{let _0x3ce1fc=_0x10d3d3[_0x5a48('0x90')][_0x5a48('0x130')](_0x5c05d0[0x0],_0x5c05d0[0x1],_0x5c05d0[0x2],{'forceDefaultExecution':!0x0});if(!_0x3ce1fc)return;_0x410c27[_0x5a48('0x10c')]=_0x3ce1fc[_0x5a48('0x1')]();const _0x32428e=_0x3ce1fc[_0x5a48('0x125')][_0x5a48('0xc3')],_0x48b30f=_0x10d3d3['model'][_0x5a48('0xbe')];_0x32428e&&_0x48b30f[_0x5a48('0x26')](_0x32428e)&&!_0x48b30f['isObject'](_0x32428e)&&(_0x3ce1fc=_0x10d3d3['model'][_0x5a48('0x114')](_0x3ce1fc[_0x5a48('0xb7')],_0x10d3d3[_0x5a48('0x90')]['createPositionAt'](_0x32428e,'end'))),this[_0x5a48('0x100')](_0x3ce1fc);}),_0x410c27[_0x5a48('0x5')]());},{'priority':_0x5a48('0xbb')}),this[_0x5a48('0x16')]['commands'][_0x5a48('0xde')](_0x5a48('0xe4'),this['trackChangesCommand']),this[_0x5a48('0xc')](_0x5a48('0xe4'));const _0x353190=new _0x12c8df(_0x10d3d3,this[_0x5a48('0x137')]);_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')](_0x5a48('0x11e'),_0x353190),this['enableCommand'](_0x5a48('0x11e'));const _0x29030e=new _0x9d033d(_0x10d3d3,this[_0x5a48('0x137')]);_0x10d3d3[_0x5a48('0xb8')]['add'](_0x5a48('0xe3'),_0x29030e),this[_0x5a48('0xc')](_0x5a48('0xe3')),_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')]('acceptAllSuggestions',new _0x49a461(_0x10d3d3,_0x353190,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0xd1')),_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')](_0x5a48('0xbd'),new _0x49a461(_0x10d3d3,_0x29030e,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0xbd')),_0x10d3d3['commands'][_0x5a48('0xde')](_0x5a48('0x24'),new _0x129bce(_0x10d3d3,_0x353190,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0x24')),_0x10d3d3[_0x5a48('0xb8')][_0x5a48('0xde')](_0x5a48('0x1b'),new _0x129bce(_0x10d3d3,_0x29030e,this[_0x5a48('0x137')])),this[_0x5a48('0xc')](_0x5a48('0x1b'));const _0x2ff9eb=_0x10d3d3['plugins']['get'](_0x5a48('0x118'));this[_0x5a48('0x102')](_0x2ff9eb,_0x5a48('0x1a'),(_0x512008,{threadId:_0x3a99df})=>{const _0x250dbd=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x3a99df);_0x250dbd&&_0x250dbd[_0x5a48('0x48')]&&0x1===_0x250dbd[_0x5a48('0x48')][_0x5a48('0x60')]&&this[_0x5a48('0x19')](_0x3a99df,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2ff9eb,'removeComment',(_0x3123d1,{threadId:_0x5c7de4})=>{const _0x17003b=this[_0x5a48('0x137')]['get'](_0x5c7de4);_0x17003b&&_0x17003b['commentThread']&&!_0x17003b[_0x5a48('0x48')][_0x5a48('0x60')]&&this[_0x5a48('0x19')](_0x5c7de4,{'hasComments':!0x1});},{'priority':'low'});}set[_0x5a48('0x131')](_0x273f98){if(this['_adapter'])throw new _0x5c539a('track-changes-adapter-already-set',this);this[_0x5a48('0x53')]=_0x273f98;}get[_0x5a48('0x131')](){return this[_0x5a48('0x53')];}['getSuggestions']({skipNotAttached:_0x43ec57=!0x1,toJSON:_0x40b909=!0x1}={}){const _0x19624e=[];for(const _0xd8db6f of this['_suggestions'][_0x5a48('0xb5')]())_0x43ec57&&!_0xd8db6f['isInContent']||_0x19624e['push'](_0xd8db6f);return _0x40b909?_0x19624e[_0x5a48('0x13b')](_0x2a71ac=>_0x2a71ac[_0x5a48('0xf9')]()):_0x19624e;}[_0x5a48('0xc5')](_0x14463a){const _0x19ba74=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x14463a);if(!_0x19ba74)throw new _0x5c539a(_0x5a48('0xbf'),this);return _0x19ba74;}['hasSuggestion'](_0x22b098){return this[_0x5a48('0x137')][_0x5a48('0x6a')](_0x22b098);}['addSuggestionData'](_0x49635f){const {authorId:_0x47684a,id:_0x3aefe4,attributes:_0x383406}=_0x49635f,[_0x427389,_0x5ce12a]=_0x49635f[_0x5a48('0x4d')][_0x5a48('0x89')](':'),_0x42373b=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x3aefe4)||this[_0x5a48('0xc4')](_0x427389,_0x5ce12a,_0x3aefe4,_0x47684a,_0x383406);if(this[_0x5a48('0x25')](_0x42373b),this[_0x5a48('0xc8')](_0x42373b,_0x427389,_0x5ce12a||null,_0x47684a),_0x42373b['createdAt']=_0x49635f[_0x5a48('0xce')],_0x42373b[_0x5a48('0x3a')]=!0x0,_0x383406&&_0x383406['@external']){const _0x10bd06=_0x383406['@external'],_0x1cb979=this['_getExternalAuthor'](_0x10bd06['authorName']);_0x42373b[_0x5a48('0xdd')]=_0x10bd06['createdAt'],_0x42373b[_0x5a48('0x9c')]=_0x1cb979,_0x42373b[_0x5a48('0xa0')]=!0x0;}else _0x42373b[_0x5a48('0xdd')]=_0x49635f[_0x5a48('0xce')];switch(_0x49635f[_0x5a48('0xfb')]&&(_0x42373b[_0x5a48('0xfb')]=_0x49635f[_0x5a48('0xfb')]),_0x49635f[_0x5a48('0x133')]&&(_0x42373b[_0x5a48('0x133')]=_0x49635f[_0x5a48('0x133')]),this[_0x5a48('0x53')]&&this['_adapter']['addSuggestion']||(_0x42373b['_saved']=!0x0),this['_suggestionState'][_0x5a48('0x6c')](_0x42373b)){case _0x5a48('0x107'):this[_0x5a48('0x11d')]['set'](_0x42373b,'dataReady');break;case _0x5a48('0x7c'):_0x42373b[_0x5a48('0x74')]?(this['_refreshSuggestionsChain'](new Set([_0x42373b])),this['_joinWithAdjacentSuggestions'](new Set([_0x42373b])),this['_suggestionState'][_0x5a48('0x54')](_0x42373b,_0x5a48('0x6b')),this[_0x5a48('0xd7')]('suggestionLoaded',_0x42373b)):this[_0x5a48('0x11d')][_0x5a48('0x54')](_0x42373b,_0x5a48('0xd2'));}return _0x42373b;}['acceptSuggestion'](_0x464aa1){this[_0x5a48('0x9a')](()=>{this[_0x5a48('0x16')]['model']['change'](()=>{for(const _0x984e0f of _0x464aa1['getAllAdjacentSuggestions']())_0x984e0f[_0x5a48('0x62')]();});});}[_0x5a48('0xe3')](_0x3c9a82){this[_0x5a48('0x9a')](()=>{this['editor']['model'][_0x5a48('0x1e')](()=>{for(const _0x1c2c8b of _0x3c9a82[_0x5a48('0x88')]())_0x1c2c8b[_0x5a48('0xa1')]();});});}['enableCommand'](_0x55944b,_0x13365f){const _0x1734cb=this[_0x5a48('0x16')][_0x5a48('0xb8')][_0x5a48('0x6c')](_0x55944b);if(!_0x1734cb)throw new _0x5c539a('track-changes-command-not-found',this,{'commandName':_0x55944b});this[_0x5a48('0x7f')][_0x5a48('0xde')](_0x1734cb),_0x13365f&&_0x1734cb['on'](_0x5a48('0x7a'),(_0x45fe88,_0x470a71)=>{this['trackChangesCommand'][_0x5a48('0x4f')]&&(this[_0x5a48('0x59')]||_0x470a71[_0x5a48('0x60')]>0x0&&_0x470a71[_0x470a71[_0x5a48('0x60')]-0x1]&&_0x470a71[_0x470a71[_0x5a48('0x60')]-0x1][_0x5a48('0x9a')]||(_0x45fe88[_0x5a48('0x10c')]=_0x13365f((..._0x937404)=>_0x1734cb[_0x5a48('0x7a')](..._0x937404,{'forceDefaultExecution':!0x0}),..._0x470a71),_0x45fe88[_0x5a48('0x5')]()));},{'priority':_0x5a48('0xbb')});}[_0x5a48('0x9a')](_0x765874){let _0x28ab38,_0x3bb980;const _0x4260dd=this[_0x5a48('0x59')];this[_0x5a48('0x59')]=!0x0;try{_0x28ab38=_0x765874();}catch(_0x321372){_0x3bb980=_0x321372;}return _0x4260dd||(this[_0x5a48('0x59')]=!0x1),_0x3bb980&&_0x5c539a['rethrowUnexpectedError'](_0x3bb980,this),_0x28ab38;}[_0x5a48('0x100')](_0x2e5593,_0x3f956b=null,_0x33f64d={}){if(_0x2e5593[_0x5a48('0x31')])return null;const _0x195b7e=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'];for(const {suggestion:_0x53fb9a,meta:_0x55304f}of this[_0x5a48('0x18')](_0x2e5593,_0x5a48('0x85')))if(_0x55304f[_0x5a48('0xe8')]){if(!_0x55304f[_0x5a48('0x139')]){if(_0x55304f['containsRangeInObject']){if(!this[_0x5a48('0x8b')]||!Ot(_0x53fb9a,_0x33f64d))continue;return _0x53fb9a;}if(Ot(_0x53fb9a,_0x33f64d))return _0x53fb9a;this[_0x5a48('0xd0')](_0x53fb9a,_0x2e5593[_0x5a48('0xb7')],_0x2e5593['end']);break;}if(_0x3f956b==_0x53fb9a['subType']&&Ot(_0x53fb9a,_0x33f64d)){const _0x353edf=_0x53fb9a['getFirstRange']();return _0x353edf[_0x5a48('0xb7')]['isEqual'](_0x2e5593[_0x5a48('0x125')])?this['_setSuggestionRange'](_0x53fb9a,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x2e5593[_0x5a48('0xb7')],_0x353edf[_0x5a48('0x125')])):this['_setSuggestionRange'](_0x53fb9a,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x353edf['start'],_0x2e5593[_0x5a48('0x125')])),_0x53fb9a;}}const _0x5daf0a=_0x31bd95(),_0xf3ab16=_0x195b7e['id'],_0x3d39c1=_0x3f956b?'insertion:'+_0x3f956b:_0x5a48('0x85'),_0x5d6909=this[_0x5a48('0x120')]({'id':_0x5daf0a,'type':_0x3d39c1,'createdAt':new Date(),'authorId':_0xf3ab16,'attributes':_0x33f64d});return this[_0x5a48('0x13a')](_0x3d39c1,_0x5daf0a,_0xf3ab16,_0x2e5593),_0x5d6909;}['markMultiRangeInsertion'](_0x49d99c,_0x52a711=_0x5a48('0x98'),_0x4ce54e={}){const _0x165320=this['editor'][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'],_0x2712a1=this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x5a48('0x85'),_0x52a711,_0x5a48('0x36'));for(const _0xc0845f of this[_0x5a48('0x129')]())if(_0xc0845f[_0x5a48('0x9c')]['id']==_0x165320['id']&&_0x5a48('0x85')==_0xc0845f['type']&&_0xc0845f['subType']==_0x52a711&&Ot(_0xc0845f,_0x4ce54e)&&(_0x2712a1(_0xc0845f[_0x5a48('0xc9')](),_0x49d99c)||_0x2712a1(_0x49d99c,_0xc0845f[_0x5a48('0xc9')]()))){for(const _0x20cf1f of _0x49d99c)_0xc0845f['addRange'](_0x20cf1f);return _0xc0845f;}for(const {suggestion:_0x80e9ec,meta:_0x2f1797}of this[_0x5a48('0x18')](_0x49d99c,_0x5a48('0x85'))){if(!_0x2f1797['isOwn'])continue;if(!this[_0x5a48('0x8b')]&&_0x2f1797[_0x5a48('0x11b')])continue;if(!Ot(_0x80e9ec,_0x4ce54e))continue;let _0x2eab8c=!0x0;for(const _0x41b4aa of _0x80e9ec[_0x5a48('0xc9')]())for(const _0x26182b of _0x49d99c)if(!_0x41b4aa['containsRange'](_0x26182b)){_0x2eab8c=!0x1;break;}if(_0x2eab8c)return _0x80e9ec;}const _0x454c1b=_0x31bd95(),_0x4b265a=_0x165320['id'],_0x27ac66=_0x5a48('0x55')+_0x52a711,_0x437f60=this[_0x5a48('0x120')]({'id':_0x454c1b,'type':_0x27ac66,'createdAt':new Date(),'authorId':_0x4b265a,'attributes':_0x4ce54e});for(const _0x3f465b of _0x49d99c)this[_0x5a48('0x13a')](_0x27ac66,_0x454c1b,_0x4b265a,_0x3f465b,_0x37847a['getMultiRangeId']());return _0x437f60;}[_0x5a48('0xd9')](_0x310322,_0x3080ac,_0x334bcb=null,_0xc53460={}){if(_0x334bcb=_0x334bcb||Nt(_0x3080ac),_0x310322[_0x5a48('0x31')])return null;if(_0x5a48('0xdc')===this[_0x5a48('0xeb')]){const _0x411cfd=this['_suggestionFactory'][_0x5a48('0xf2')](_0x5a48('0x128'),_0x334bcb,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x411cfd([_0x310322],_0x3080ac,_0xc53460)),null;}const _0x99351d=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'],_0x3ffd9a=[];if(_0x5a48('0xf8')!==this[_0x5a48('0xeb')])for(const {suggestion:_0x4b27d8,meta:_0x423a94}of this[_0x5a48('0x18')](_0x310322,'insertion'))_0x423a94[_0x5a48('0xe8')]&&!_0x423a94[_0x5a48('0x8e')]&&_0x3ffd9a[_0x5a48('0x119')](..._0x4b27d8[_0x5a48('0xc9')]());const _0x31b1d1=function(_0x8e389f,_0x25f4e0){const _0x2c248b=[];for(const _0x48a696 of _0x25f4e0){const _0x2cdfec=_0x8e389f[_0x5a48('0x67')](_0x48a696);_0x2cdfec&&_0x2c248b[_0x5a48('0x119')](_0x2cdfec);}return _0x2c248b;}(_0x310322,_0x3ffd9a),_0x4eb45d=function(_0x85ee3d,_0x2fa159){const _0x55d039=[_0x85ee3d];for(const _0x593679 of _0x2fa159){let _0x46405f=0x0;for(;_0x46405f<_0x55d039['length'];){const _0x30ff58=_0x55d039[_0x46405f][_0x5a48('0x12b')](_0x593679);_0x55d039['splice'](_0x46405f,0x1,..._0x30ff58),_0x46405f+=_0x30ff58['length'];}}return _0x55d039;}(_0x310322,_0x3ffd9a);_0x31b1d1[_0x5a48('0x60')]&&this[_0x5a48('0x95')][_0x5a48('0x1e')](()=>{for(const _0x2be760 of _0x31b1d1){const _0x29614e=this[_0x5a48('0xd5')][_0x5a48('0xf2')]('formatInline',_0x334bcb,_0x5a48('0x62'));this[_0x5a48('0x9a')](()=>_0x29614e([_0x2be760],_0x3080ac,_0xc53460));}});for(const _0xf3e67d of _0x4eb45d){let _0xfb36c4=null,_0x55881b=_0xf3e67d['start'],_0x1b9335=_0xf3e67d[_0x5a48('0x125')];for(const {suggestion:_0x17a9ed,meta:_0x195439}of this[_0x5a48('0x18')](_0xf3e67d,_0x5a48('0x128'))){if(!_0x195439[_0x5a48('0xe8')])continue;if(_0x17a9ed[_0x5a48('0xb6')]!=_0x334bcb)continue;if(!Ot(_0x17a9ed,_0xc53460))continue;const _0x5cb513=_0x17a9ed[_0x5a48('0xf3')]();if(_0x5cb513[_0x5a48('0x2a')](_0xf3e67d,!0x0))return null;_0x55881b=_0x55881b[_0x5a48('0xa6')](_0x5cb513[_0x5a48('0xb7')])?_0x55881b:_0x5cb513['start'],_0x1b9335=_0x1b9335[_0x5a48('0xd')](_0x5cb513[_0x5a48('0x125')])?_0x1b9335:_0x5cb513['end'],_0xfb36c4?_0x5cb513[_0x5a48('0xb7')][_0x5a48('0xa6')](_0xfb36c4[_0x5a48('0xf3')]()[_0x5a48('0xb7')])?(_0xfb36c4[_0x5a48('0x40')](),_0xfb36c4=_0x17a9ed):_0x17a9ed['removeMarkers']():_0xfb36c4=_0x17a9ed;}const _0x3cc7fa=this[_0x5a48('0x95')][_0x5a48('0x114')](_0x55881b,_0x1b9335);if(_0xfb36c4)this[_0x5a48('0x3e')](_0xfb36c4,_0x3cc7fa);else{const _0x1b01ac=_0x31bd95(),_0xc23f37=_0x99351d['id'];this[_0x5a48('0x120')]({'id':_0x1b01ac,'type':_0x5a48('0x87')+_0x334bcb,'data':_0x3080ac,'createdAt':new Date(),'authorId':_0xc23f37,'attributes':_0xc53460}),this['_addSuggestionMarker'](_0x5a48('0x87')+_0x334bcb,_0x1b01ac,_0xc23f37,_0x3cc7fa);}}return null;}['markBlockFormat'](_0x1e2133,_0x4f97c3,_0x3e0ee7=[],_0x1bf6d6=null,_0x1f5aac={}){_0x4f97c3[_0x5a48('0xff')]||(_0x4f97c3[_0x5a48('0xff')]=_0x4f97c3[_0x5a48('0x72')]),_0x4f97c3[_0x5a48('0x127')]=_0x1e2133['is'](_0x5a48('0xb9')),_0x1bf6d6=_0x1bf6d6||Nt(_0x4f97c3);const _0x51b58a=_0x3e0ee7[_0x5a48('0x13b')](_0x1734ab=>jt(_0x1734ab,this[_0x5a48('0x95')])),_0x242d0b=_0x1e2133['is']('range')?_0x1e2133:jt(_0x1e2133,this[_0x5a48('0x95')]);if(_0x5a48('0xdc')===this[_0x5a48('0xeb')]){const _0x331661=this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x5a48('0xb'),_0x1bf6d6,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x331661([_0x242d0b],_0x4f97c3,_0x1f5aac)),null;}_0x51b58a[_0x5a48('0x119')](_0x242d0b);let _0x102a19=!0x0;for(const _0x29fbd4 of _0x51b58a)if(!this['_rangeIsInLocalUserInsertion'](_0x29fbd4)){_0x102a19=!0x1;break;}if(_0x102a19&&_0x5a48('0xf8')!==this[_0x5a48('0xeb')]){const _0x16eb5f=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0xb'),_0x1bf6d6,'accept');return this[_0x5a48('0x9a')](()=>_0x16eb5f([_0x242d0b],_0x4f97c3,_0x1f5aac)),null;}let _0x3bcdbe=null,_0x48f85c=_0x242d0b[_0x5a48('0xb7')],_0x39c9dc=_0x242d0b[_0x5a48('0x125')];for(const {suggestion:_0x2fb427,meta:_0x50c486}of this[_0x5a48('0x18')](_0x242d0b,_0x5a48('0xb'))){if(!_0x50c486[_0x5a48('0xe8')])continue;if(_0x50c486[_0x5a48('0x139')]||_0x50c486[_0x5a48('0x11b')]||_0x50c486['isInsideObject'])continue;if(_0x2fb427[_0x5a48('0xfb')][_0x5a48('0xff')]!=_0x4f97c3['formatGroupId'])continue;if(!Ot(_0x2fb427,_0x1f5aac))continue;const _0x286eff=_0x2fb427['getFirstRange']();if(_0x2fb427[_0x5a48('0xb6')]==_0x1bf6d6){if(_0x286eff[_0x5a48('0x2a')](_0x242d0b,!0x0))return null;_0x48f85c=_0x48f85c['isBefore'](_0x286eff[_0x5a48('0xb7')])?_0x48f85c:_0x286eff[_0x5a48('0xb7')],_0x39c9dc=_0x39c9dc[_0x5a48('0xd')](_0x286eff[_0x5a48('0x125')])?_0x39c9dc:_0x286eff[_0x5a48('0x125')],_0x3bcdbe?_0x286eff[_0x5a48('0xb7')][_0x5a48('0xa6')](_0x3bcdbe[_0x5a48('0xf3')]()[_0x5a48('0xb7')])?(_0x3bcdbe[_0x5a48('0x40')](),_0x3bcdbe=_0x2fb427):_0x2fb427[_0x5a48('0x40')]():_0x3bcdbe=_0x2fb427;}else{const _0x33c8d7=_0x242d0b[_0x5a48('0x67')](_0x286eff);this[_0x5a48('0x51')](_0x2fb427,_0x33c8d7);}}const _0x5a8b13=this['editor'][_0x5a48('0x4a')]['get'](_0x5a48('0x9'))['me'],_0x4eb378=_0x31bd95(),_0x4f39ce=_0x5a8b13['id'];if(_0x3bcdbe)return this[_0x5a48('0x3e')](_0x3bcdbe,this[_0x5a48('0x95')]['createRange'](_0x48f85c,_0x39c9dc)),_0x3bcdbe;{const _0x2398b1=this[_0x5a48('0x120')]({'id':_0x4eb378,'type':_0x5a48('0x64')+_0x1bf6d6,'data':_0x4f97c3,'createdAt':new Date(),'authorId':_0x4f39ce,'attributes':_0x1f5aac});return this[_0x5a48('0x13a')]('formatBlock:'+_0x1bf6d6,_0x4eb378,_0x4f39ce,this['_model'][_0x5a48('0x114')](_0x48f85c,_0x39c9dc)),_0x2398b1;}}[_0x5a48('0x5d')](_0x3114bb,_0x442d8e,_0x5a8d1b=[],_0x5c26d2=null,_0x26cdbf={}){_0x442d8e[_0x5a48('0xff')]||(_0x442d8e[_0x5a48('0xff')]=_0x442d8e['commandName']);const _0x28a940=_0x3114bb[0x0];_0x442d8e[_0x5a48('0x127')]=_0x28a940['is']('range'),_0x5c26d2=_0x5c26d2||Nt(_0x442d8e);const _0x24584b=_0x5a8d1b['map'](_0x21ad3c=>jt(_0x21ad3c,this[_0x5a48('0x95')])),_0x1832ea=_0x28a940['is'](_0x5a48('0xb9'))?_0x3114bb:_0x3114bb[_0x5a48('0x13b')](_0x2d0c07=>jt(_0x2d0c07,this[_0x5a48('0x95')]));if('never'===this[_0x5a48('0xeb')]){const _0x4c9d87=this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x5a48('0xb'),_0x5c26d2,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x4c9d87(_0x1832ea,_0x442d8e,_0x26cdbf)),null;}_0x24584b[_0x5a48('0x119')](..._0x1832ea);let _0x47f568=!0x0;for(const _0x24ef14 of _0x24584b)if(!this['_rangeIsInLocalUserInsertion'](_0x24ef14)){_0x47f568=!0x1;break;}if(_0x47f568&&_0x5a48('0xf8')!==this[_0x5a48('0xeb')]){const _0x417604=this[_0x5a48('0xd5')][_0x5a48('0xf2')]('formatBlock',_0x5c26d2,'accept');return this[_0x5a48('0x9a')](()=>_0x417604(_0x1832ea,_0x442d8e,_0x26cdbf)),null;}const _0x317099=this['editor'][_0x5a48('0x4a')][_0x5a48('0x6c')]('Users')['me'];for(const _0xe4075d of this[_0x5a48('0x129')]()){if(_0xe4075d[_0x5a48('0x9c')]['id']!=_0x317099['id'])continue;if(_0x5a48('0xb')!=_0xe4075d[_0x5a48('0x4d')]||_0xe4075d[_0x5a48('0xfb')][_0x5a48('0xff')]!=_0x442d8e[_0x5a48('0xff')])continue;if(!Ot(_0xe4075d,_0x26cdbf))continue;const _0x14f724=_0xe4075d[_0x5a48('0xb6')]==_0x5c26d2;for(let _0x371f83=0x0;_0x371f83<_0x1832ea['length'];_0x371f83++){const _0x19c24c=_0x1832ea[_0x371f83];for(const _0x1f2ae5 of _0xe4075d['getMarkers']()){const _0x581640=_0x1f2ae5[_0x5a48('0x28')]();if(_0x19c24c[_0x5a48('0x138')](_0x581640)){_0x14f724?(_0x1832ea[_0x5a48('0xca')](_0x371f83,0x1),_0x371f83--):_0xe4075d[_0x5a48('0xb4')](_0x1f2ae5[_0x5a48('0x1c')]);break;}}}}if(0x0==_0x1832ea[_0x5a48('0x60')])return null;const _0x439e10=this[_0x5a48('0xd5')][_0x5a48('0xf2')]('formatBlock',_0x5c26d2,'join');for(const _0x2f803e of this[_0x5a48('0x129')]())if(_0x2f803e[_0x5a48('0x9c')]['id']==_0x317099['id']&&_0x5a48('0xb')==_0x2f803e['type']&&_0x2f803e['data'][_0x5a48('0xff')]==_0x442d8e[_0x5a48('0xff')]&&_0x2f803e['subType']==_0x5c26d2&&Ot(_0x2f803e,_0x26cdbf)&&(_0x439e10(_0x2f803e[_0x5a48('0xc9')](),_0x1832ea)||_0x439e10(_0x1832ea,_0x2f803e[_0x5a48('0xc9')]()))){for(const _0x36457e of _0x1832ea)_0x2f803e[_0x5a48('0xed')](_0x36457e);return _0x2f803e;}const _0x53048f=_0x31bd95(),_0x471a35=_0x317099['id'],_0x3ac526=_0x5a48('0x64')+_0x5c26d2,_0x146fa6=this[_0x5a48('0x120')]({'id':_0x53048f,'type':_0x3ac526,'data':_0x442d8e,'createdAt':new Date(),'authorId':_0x471a35,'attributes':_0x26cdbf});for(const _0x178445 of _0x1832ea)this[_0x5a48('0x13a')](_0x3ac526,_0x53048f,_0x471a35,_0x178445,_0x37847a[_0x5a48('0x47')]());return _0x146fa6;}['markDeletion'](_0x58490a,_0x5799c6=null,_0x55db09={}){if(_0x58490a[_0x5a48('0x31')])return null;const _0x550d5b=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')]('Users')['me'],_0x5b6f3f=new _0x5e64e8(_0x58490a[_0x5a48('0xb7')],_0x58490a[_0x5a48('0x125')]);for(const {suggestion:_0x161976,meta:_0x443890}of this[_0x5a48('0x18')](_0x5b6f3f,_0x5a48('0x85')))if(_0x443890[_0x5a48('0xe8')]&&!_0x443890['isNextTo']){if(_0x161976['isMultiRange']){const _0x295c26=_0x161976[_0x5a48('0xc9')]()['filter'](_0xff8111=>_0x5a48('0x8d')!=_0xff8111['root']['rootName']);_0x295c26['every'](_0x2f224f=>_0x5b6f3f['containsRange'](_0x2f224f,!0x0))&&_0x161976[_0x5a48('0xa1')]();if(_0x295c26[_0x5a48('0x92')](_0x3a98a2=>_0x3a98a2[_0x5a48('0x2a')](_0x5b6f3f,!0x0))){const _0x7f7a82=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0x3c'),_0x5799c6,'accept');return this[_0x5a48('0x9a')](()=>_0x7f7a82([_0x5b6f3f],null,_0x55db09)),null;}}else{const _0x198da3=_0x5b6f3f[_0x5a48('0x67')](_0x161976[_0x5a48('0xf3')]());null!==_0x198da3&&_0x161976[_0x5a48('0xcb')]([_0x198da3],null,_0x55db09);}}if(_0x5b6f3f[_0x5a48('0x79')](),_0x5b6f3f[_0x5a48('0x31')]||_0x5a48('0x8d')==_0x5b6f3f[_0x5a48('0x61')][_0x5a48('0xe7')])return null;let _0x4eec85=null,_0x50d2f9=_0x5b6f3f[_0x5a48('0xb7')],_0x2eb16a=_0x5b6f3f[_0x5a48('0x125')];const _0x289223=this['_findSuggestions'](_0x5b6f3f,_0x5a48('0x3c'));for(const {suggestion:_0x1f9608,meta:_0xda7a4d}of _0x289223){const _0x44d1bc=this[_0x5a48('0x95')]['createRange'](_0x50d2f9,_0x2eb16a);if(_0xda7a4d['isOwn']&&(this['_mergeNestedSuggestions']||!_0xda7a4d[_0x5a48('0x11b')]&&!_0xda7a4d['isInsideObject'])){if(_0x1f9608[_0x5a48('0x41')]){if(!Ot(_0x1f9608,_0x55db09))continue;let _0x397270=!0x0;for(const _0x2b797a of _0x1f9608[_0x5a48('0xc9')]()){if(_0x2b797a['containsRange'](_0x44d1bc,!0x0))return _0x1f9608;_0x44d1bc[_0x5a48('0x2a')](_0x2b797a)||(_0x397270=!0x1);}_0x397270&&_0x1f9608[_0x5a48('0xa1')]();}else{const _0x52b3cb=_0x1f9608['getFirstRange']();if(_0x52b3cb[_0x5a48('0x2a')](_0x44d1bc,!0x0))return _0x1f9608;if(!Ot(_0x1f9608,_0x55db09)){_0x44d1bc[_0x5a48('0x2a')](_0x52b3cb)?_0x1f9608[_0x5a48('0x40')]():_0x52b3cb[_0x5a48('0xe9')](_0x50d2f9)?_0x50d2f9=_0x52b3cb[_0x5a48('0x125')]:_0x52b3cb[_0x5a48('0xe9')](_0x2eb16a)&&(_0x2eb16a=_0x52b3cb[_0x5a48('0xb7')]);continue;}_0x50d2f9=_0x50d2f9[_0x5a48('0xa6')](_0x52b3cb[_0x5a48('0xb7')])?_0x50d2f9:_0x52b3cb[_0x5a48('0xb7')],_0x2eb16a=_0x2eb16a[_0x5a48('0xd')](_0x52b3cb['end'])?_0x2eb16a:_0x52b3cb[_0x5a48('0x125')],_0x55db09=Object[_0x5a48('0xa8')]({},_0x1f9608[_0x5a48('0x133')]),_0x4eec85?_0x52b3cb[_0x5a48('0xb7')]['isBefore'](_0x4eec85['getFirstRange']()[_0x5a48('0xb7')])?(_0x4eec85[_0x5a48('0x40')](),_0x4eec85=_0x1f9608):_0x1f9608[_0x5a48('0x40')]():_0x4eec85=_0x1f9608;}}}if(_0x4eec85)return this[_0x5a48('0x3e')](_0x4eec85,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x50d2f9,_0x2eb16a)),_0x4eec85;{const _0x4cbcc9=_0x31bd95(),_0x157eef=this[_0x5a48('0x95')]['createRange'](_0x50d2f9,_0x2eb16a),_0x3c2e31=_0x550d5b['id'],_0x33cf82=_0x5799c6?_0x5a48('0x97')+_0x5799c6:_0x5a48('0x3c'),_0x500d90=this[_0x5a48('0x120')]({'id':_0x4cbcc9,'type':_0x33cf82,'createdAt':new Date(),'authorId':_0x3c2e31,'attributes':_0x55db09});return this[_0x5a48('0x13a')](_0x33cf82,_0x4cbcc9,_0x3c2e31,_0x157eef),_0x500d90;}}[_0x5a48('0x2c')](_0x5b98cf,_0x3d8e52=_0x5a48('0x98'),_0x312537={}){const _0x151a1e=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')](_0x5a48('0x9'))['me'],_0x3f2c0e=_0x5b98cf['map'](_0xb09e96=>new _0x5e64e8(_0xb09e96[_0x5a48('0xb7')],_0xb09e96[_0x5a48('0x125')])),_0x504106=new Set();for(const {suggestion:_0x565fae,meta:_0x3ecc9e}of this[_0x5a48('0x18')](_0x3f2c0e,'insertion'))_0x3ecc9e['isOwn']&&!_0x3ecc9e[_0x5a48('0x139')]&&_0x504106['add'](_0x565fae);for(const _0x452114 of _0x504106)if(_0x452114[_0x5a48('0x41')]){const _0x421436=_0x452114['getRanges']();(!_0x452114[_0x5a48('0x133')]||!_0x452114[_0x5a48('0x133')][_0x5a48('0x110')])&&(_0x421436[_0x5a48('0xfc')](_0x380878=>_0x3f2c0e[_0x5a48('0x92')](_0x51eb65=>_0x51eb65[_0x5a48('0x2a')](_0x380878,!0x0)))&&_0x452114['discard']());if(_0x3f2c0e[_0x5a48('0xfc')](_0xc3aa95=>_0x421436[_0x5a48('0x92')](_0x32b1fb=>_0x32b1fb[_0x5a48('0x2a')](_0xc3aa95,!0x0)))){const _0xcef951=this[_0x5a48('0xd5')]['getSuggestionCallback']('deletion',_0x3d8e52,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0xcef951(_0x5b98cf,null,_0x312537)),null;}}else{const _0x53902b=_0x452114[_0x5a48('0xf3')]();_0x3f2c0e[_0x5a48('0x92')](_0x5a3445=>_0x5a3445['containsRange'](_0x53902b,!0x0))&&_0x452114[_0x5a48('0xa1')]();if(_0x3f2c0e['every'](_0x2d7080=>_0x53902b[_0x5a48('0x2a')](_0x2d7080,!0x0))){const _0x1c33d1=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0x3c'),_0x3d8e52,_0x5a48('0x62'));return this[_0x5a48('0x9a')](()=>_0x1c33d1(_0x3f2c0e,null,_0x312537)),null;}}const _0x4cb373=this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5a48('0x3c'),_0x3d8e52,_0x5a48('0x36'));let _0x55fd10=null;for(const _0x47d59b of this['getSuggestions']())if(_0x47d59b[_0x5a48('0x9c')]['id']==_0x151a1e['id']&&_0x47d59b[_0x5a48('0x74')]&&'deletion'==_0x47d59b[_0x5a48('0x4d')]&&_0x47d59b[_0x5a48('0xb6')]==_0x3d8e52&&Ot(_0x47d59b,_0x312537)&&(_0x4cb373(_0x47d59b[_0x5a48('0xc9')](),_0x3f2c0e)||_0x4cb373(_0x3f2c0e,_0x47d59b[_0x5a48('0xc9')]()))){if(_0x55fd10){if(_0x47d59b[_0x5a48('0x48')]&&_0x47d59b[_0x5a48('0x48')]['length'])continue;for(const _0x1a21cb of _0x47d59b[_0x5a48('0xc9')]())_0x55fd10['isIntersectingWithRange'](_0x1a21cb)||_0x55fd10[_0x5a48('0xed')](_0x1a21cb);_0x47d59b[_0x5a48('0x40')]();}else{_0x55fd10=_0x47d59b;for(const _0x3e49dd of _0x3f2c0e)_0x47d59b[_0x5a48('0xc1')](_0x3e49dd)||_0x47d59b[_0x5a48('0xed')](_0x3e49dd);}}if(_0x55fd10)return _0x55fd10;_0x504106[_0x5a48('0xbc')]();for(const {suggestion:_0x2faf8f,meta:_0x203d87}of this[_0x5a48('0x18')](_0x3f2c0e,_0x5a48('0x3c')))_0x203d87['isOwn']&&(this[_0x5a48('0x8b')]||!_0x203d87[_0x5a48('0x11b')]&&!_0x203d87[_0x5a48('0x8e')])&&Ot(_0x2faf8f,_0x312537)&&_0x504106['add'](_0x2faf8f);for(const _0x12e6b1 of _0x504106){const _0xc73c89=_0x12e6b1[_0x5a48('0xc9')]();if(!_0x312537||!_0x312537[_0x5a48('0x110')]){if(_0x3f2c0e[_0x5a48('0xfc')](_0xde35f5=>_0xc73c89[_0x5a48('0x92')](_0x3cc209=>_0x3cc209['containsRange'](_0xde35f5,!0x0))))return _0x12e6b1;}(!_0x12e6b1[_0x5a48('0x133')]||!_0x12e6b1[_0x5a48('0x133')]['skipNestingCheck'])&&(_0xc73c89[_0x5a48('0xfc')](_0x109918=>_0x3f2c0e[_0x5a48('0x92')](_0x90450d=>_0x90450d[_0x5a48('0x2a')](_0x109918,!0x0)))&&_0x12e6b1[_0x5a48('0xa1')]());}const _0x114155=_0x31bd95(),_0x1673fe=_0x151a1e['id'],_0xd037e6=_0x5a48('0x97')+_0x3d8e52,_0x53adfd=this[_0x5a48('0x120')]({'id':_0x114155,'type':_0xd037e6,'createdAt':new Date(),'authorId':_0x1673fe,'attributes':_0x312537});for(const _0x28d230 of _0x3f2c0e)_0x28d230['detach'](),_0x28d230[_0x5a48('0x31')]||_0x5a48('0x8d')==_0x28d230[_0x5a48('0x61')][_0x5a48('0xe7')]||this[_0x5a48('0x13a')](_0xd037e6,_0x114155,_0x1673fe,_0x28d230,_0x37847a[_0x5a48('0x47')]());return _0x53adfd;}[_0x5a48('0x3e')](_0x1aa8eb,_0x5474c7){const _0x11b441=_0x1aa8eb[_0x5a48('0xb0')]();this[_0x5a48('0x95')][_0x5a48('0x1e')](_0x4da1fa=>{_0x4da1fa[_0x5a48('0x33')](_0x11b441,{'range':_0x5474c7});});}[_0x5a48('0x25')](_0x58162d){const _0x52c7a6=_0x58162d['id'],_0x3f9aa8=this['editor']['config'][_0x5a48('0x6c')](_0x5a48('0x9d'));this[_0x5a48('0xaa')][_0x5a48('0x94')](_0x52c7a6)||this[_0x5a48('0xaa')][_0x5a48('0x9b')]({'channelId':_0x3f9aa8,'threadId':_0x52c7a6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1d5633=this[_0x5a48('0xaa')][_0x5a48('0x43')](_0x52c7a6);_0x1d5633[_0x5a48('0xb3')]('isRemovable'),_0x1d5633[_0x5a48('0x63')]=!0x1,_0x58162d[_0x5a48('0x48')]=_0x1d5633;}[_0x5a48('0xc8')](_0x10d763,_0x14d8f0,_0x4ed7fd,_0x55f45f){if(_0x10d763[_0x5a48('0x4d')]!=_0x14d8f0||_0x10d763[_0x5a48('0xb6')]!=_0x4ed7fd||_0x10d763['creator']['id']!=_0x55f45f)throw this[_0x5a48('0x16')][_0x5a48('0xe5')](_0x5a48('0x58')),new _0x5c539a(_0x5a48('0x58'),this);}[_0x5a48('0x51')](_0x167753,_0xe2f077){const _0x5a5556=_0x167753[_0x5a48('0xf3')]();if(_0xe2f077[_0x5a48('0x138')](_0x5a5556))_0x167753['removeMarkers']();else{if(_0x5a5556[_0x5a48('0x2a')](_0xe2f077)){const _0x3aef97=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077[_0x5a48('0xb7')][_0x5a48('0xc3')],'end');this[_0x5a48('0x3e')](_0x167753,this['_model'][_0x5a48('0x114')](_0x5a5556[_0x5a48('0xb7')],_0x3aef97));const _0x464a09=_0x31bd95(),_0x4b819c=_0x167753[_0x5a48('0x2d')]['id'],_0x2a35d8=_0x167753[_0x5a48('0x4d')]+':'+_0x167753[_0x5a48('0xb6')];this[_0x5a48('0x120')]({'id':_0x464a09,'type':_0x2a35d8,'createdAt':new Date(),'authorId':_0x4b819c,'data':_0x167753[_0x5a48('0xfb')],'attributes':_0x167753['attributes']});const _0x78e34e=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077['end'][_0x5a48('0xad')],_0x5a48('0xe')),_0x1bd46c=this[_0x5a48('0x95')]['createRange'](_0x78e34e,_0x5a5556[_0x5a48('0x125')]);this['_addSuggestionMarker'](_0x2a35d8,_0x464a09,_0x4b819c,_0x1bd46c);}else{if(_0x5a5556['containsPosition'](_0xe2f077[_0x5a48('0xb7')])){const _0x2e2e8f=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077[_0x5a48('0xb7')][_0x5a48('0xc3')],_0x5a48('0x125'));this[_0x5a48('0x3e')](_0x167753,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x5a5556[_0x5a48('0xb7')],_0x2e2e8f));}else{const _0x2be70d=this[_0x5a48('0x95')][_0x5a48('0x2b')](_0xe2f077[_0x5a48('0x125')][_0x5a48('0xad')],_0x5a48('0xe'));this['_setSuggestionRange'](_0x167753,this[_0x5a48('0x95')]['createRange'](_0x2be70d,_0x5a5556['end']));}}}}[_0x5a48('0x50')](_0x26b3b9){for(const {suggestion:_0xa9f3ff,meta:_0x20d7f9}of this[_0x5a48('0x18')](_0x26b3b9,_0x5a48('0x85'))){if(!_0x20d7f9['isOwn'])continue;const _0x31c004=_0xa9f3ff[_0x5a48('0xc9')]();for(const _0xbda023 of _0x31c004)if(!_0x26b3b9['getDifference'](_0xbda023)['length'])return!0x0;}return!0x1;}[_0x5a48('0x52')](_0x6d6148){const _0x38ee37=this[_0x5a48('0x16')]['plugins'][_0x5a48('0x6c')](_0x5a48('0x9'))[_0x5a48('0xee')](_0x6d6148);if(!_0x38ee37)throw new _0x5c539a(_0x5a48('0x68'),this);return _0x38ee37;}[_0x5a48('0x10f')](_0x3dad67){const _0xf32741=this[_0x5a48('0x16')][_0x5a48('0x4a')][_0x5a48('0x6c')]('Users'),_0x197dad=_0x295668(_0x5a48('0x56')+_0x3dad67),_0xc372ab=_0xf32741[_0x5a48('0xee')](_0x197dad);return _0xc372ab||_0xf32741[_0x5a48('0xf1')]({'id':_0x197dad,'name':_0x3dad67});}[_0x5a48('0xc4')](_0x29fcc3,_0x1e9984,_0x172c33,_0xf5ebc6,_0x5a5bf3){const _0x394d84=this['_getAuthorFromId'](_0xf5ebc6),_0x4340be=this[_0x5a48('0xd5')][_0x5a48('0xe0')](_0x29fcc3,_0x1e9984,_0x172c33,_0x394d84,_0x5a5bf3,_0x4858c7=>this['_updateSuggestionData'](_0x172c33,{'attributes':_0x4858c7}));return this['listenTo'](_0x4340be,'accept',()=>{this[_0x5a48('0x19')](_0x172c33,{'state':_0x5a48('0xdf')});},{'priority':_0x5a48('0xbb')}),this[_0x5a48('0x102')](_0x4340be,_0x5a48('0xa1'),()=>{this[_0x5a48('0x19')](_0x172c33,{'state':_0x5a48('0x126')});},{'priority':_0x5a48('0xbb')}),this['_suggestions']['set'](_0x172c33,_0x4340be),this[_0x5a48('0x11d')][_0x5a48('0x54')](_0x4340be,_0x5a48('0x107')),_0x4340be;}[_0x5a48('0x10a')](_0x2141cd){const _0x3c777c=_0x2141cd['split'](':');return{'group':_0x3c777c[0x0],'type':_0x3c777c[0x1],'subType':_0x3c777c[_0x5a48('0x60')]>=0x5?_0x3c777c[0x2]:null,'id':_0x3c777c[_0x5a48('0x60')]<0x5?_0x3c777c[0x2]:_0x3c777c[0x3],'authorId':_0x3c777c[_0x5a48('0x60')]<0x5?_0x3c777c[0x3]:_0x3c777c[0x4],'markerCount':0x6==_0x3c777c[_0x5a48('0x60')]?_0x3c777c[0x5]:null};}[_0x5a48('0xd0')](_0x4d5636,_0x5bb1b2,_0x480911){const _0x2977f5=_0x4d5636[_0x5a48('0xf3')](),_0x1ab70f=_0x2977f5[_0x5a48('0xb7')],_0x55f4e0=_0x2977f5[_0x5a48('0x125')];this['_setSuggestionRange'](_0x4d5636,this[_0x5a48('0x95')][_0x5a48('0x114')](_0x1ab70f,_0x5bb1b2));const _0x34f80b=_0x31bd95(),_0xf917e6=_0x4d5636['creator']['id'],_0x462cd0=_0x4d5636[_0x5a48('0x4d')]+(_0x4d5636[_0x5a48('0xb6')]?':'+_0x4d5636[_0x5a48('0xb6')]:'');this[_0x5a48('0x120')]({'id':_0x34f80b,'type':_0x462cd0,'createdAt':new Date(),'authorId':_0xf917e6,'originalSuggestionId':_0x4d5636['id'],'attributes':_0x4d5636[_0x5a48('0x133')],'data':_0x4d5636[_0x5a48('0xfb')]}),_0x5a48('0xb')==_0x4d5636['type']&&(_0x480911=this[_0x5a48('0x95')][_0x5a48('0x13')](_0x480911['parent'])),this[_0x5a48('0x13a')](_0x462cd0,_0x34f80b,_0xf917e6,this['_model']['createRange'](_0x480911,_0x55f4e0));}[_0x5a48('0x18')](_0x18069d,_0x1f388d=null){const _0x2cff4c=[],_0x453696=this['editor']['plugins'][_0x5a48('0x6c')](_0x5a48('0x9'))['me'];Array['isArray'](_0x18069d)||(_0x18069d=[_0x18069d]);for(const _0x149b83 of this[_0x5a48('0x129')]()){if(!_0x149b83[_0x5a48('0x74')])continue;if(_0x1f388d&&_0x149b83[_0x5a48('0x4d')]!=_0x1f388d)continue;let _0x56d467=!0x1;for(const _0x365627 of _0x149b83['getRanges']()){for(const _0x54f622 of _0x18069d){const _0x1fbdea=_0x54f622[_0x5a48('0xb7')]['isEqual'](_0x365627['end'])||_0x54f622[_0x5a48('0x125')][_0x5a48('0x138')](_0x365627[_0x5a48('0xb7')]);if(_0x1fbdea||_0x54f622[_0x5a48('0x67')](_0x365627)){const _0x4378a9=_0x54f622[_0x5a48('0x2a')](_0x365627)&&_t(this[_0x5a48('0x95')]['schema'],_0x365627['start'],_0x54f622),_0x30927b=_0x365627[_0x5a48('0x2a')](_0x54f622)&&_t(this['_model'][_0x5a48('0xbe')],_0x54f622[_0x5a48('0xb7')],_0x365627);_0x2cff4c[_0x5a48('0x119')]({'suggestion':_0x149b83,'meta':{'isOwn':_0x453696==_0x149b83[_0x5a48('0x9c')],'isNextTo':_0x1fbdea,'isInsideObject':_0x4378a9,'containsRangeInObject':_0x30927b}}),_0x56d467=!0x0;break;}}if(_0x56d467)break;}}return _0x2cff4c;}[_0x5a48('0x13a')](_0x537a1e,_0x4c2bd9,_0x454a77,_0x36d080,_0x550891){this['_model'][_0x5a48('0x1e')](_0x3c8bd6=>{let _0x54b3fe='suggestion:'+_0x537a1e+':'+_0x4c2bd9+':'+_0x454a77;_0x550891&&(_0x54b3fe=_0x54b3fe+':'+_0x550891),_0x3c8bd6[_0x5a48('0x12e')](_0x54b3fe,{'range':_0x36d080,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x5a48('0x70')](_0x5596df){const _0x52b638=_0x5596df[_0x5a48('0x3b')],_0x45eece=_0x5596df['next'];_0x5596df[_0x5a48('0x3b')]=null,null!=_0x52b638&&(_0x52b638[_0x5a48('0x23')]=null),_0x5596df[_0x5a48('0x23')]=null,null!=_0x45eece&&(_0x45eece[_0x5a48('0x3b')]=null),_0x5a48('0x6b')==this['_suggestionState'][_0x5a48('0x6c')](_0x5596df)&&(this['_suggestionState'][_0x5a48('0x54')](_0x5596df,_0x5a48('0xd2')),this[_0x5a48('0xd7')](_0x5a48('0xc2'),_0x5596df,_0x52b638,_0x45eece));}[_0x5a48('0x120')](_0x44adf9){const _0x4ecef9=_0x44adf9['id'],_0x3ebc37=this[_0x5a48('0x69')](_0x44adf9);if(this[_0x5a48('0x53')]&&this['_adapter'][_0x5a48('0xfe')]){const _0x1095f0=this[_0x5a48('0x16')][_0x5a48('0x4a')]['get']('PendingActions'),_0xf95c9a=_0x3ebc37[_0x5a48('0x109')],_0x43a007=_0x3ebc37[_0x5a48('0xb6')]?_0x3ebc37[_0x5a48('0x4d')]+':'+_0x3ebc37[_0x5a48('0xb6')]:_0x3ebc37[_0x5a48('0x4d')],_0x430497=this['editor']['locale'],_0x632ba6=_0x1095f0[_0x5a48('0xde')](_0x7186cc(_0x430497,_0x5a48('0x5f'))),_0x4cd66e={'id':_0x4ecef9,'type':_0x43a007,'hasComments':_0xf95c9a,'data':_0x44adf9[_0x5a48('0xfb')]||null,'originalSuggestionId':_0x44adf9[_0x5a48('0x136')]||null,'attributes':_0x3ebc37[_0x5a48('0x133')]};this[_0x5a48('0x53')][_0x5a48('0xfe')](_0x4cd66e)[_0x5a48('0xd6')](_0xb544a0=>{_0x3ebc37['_saved']=!0x0,_0x1095f0['remove'](_0x632ba6),_0xb544a0&&_0xb544a0[_0x5a48('0xce')]&&(this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x4ecef9)[_0x5a48('0xce')]=_0xb544a0[_0x5a48('0xce')]);})[_0x5a48('0x11f')](_0x56728c=>{throw _0x11dcbb(_0x5a48('0xea')),this['editor'][_0x5a48('0x90')][_0x5a48('0x4c')]({'isUndoable':!0x1},()=>{_0x3ebc37[_0x5a48('0xa1')]();}),_0x3ebc37['stopListening'](),this['_suggestions'][_0x5a48('0xb1')](_0x3ebc37['id']),this['_suggestionState'][_0x5a48('0xb1')](_0x3ebc37),_0x56728c;});}return _0x3ebc37;}['_updateSuggestionData'](_0x11a604,_0x519de6){const _0x44085c=this[_0x5a48('0x16')][_0x5a48('0x4a')]['get'](_0x5a48('0xf5')),_0x31d818=this[_0x5a48('0xc5')](_0x11a604);if(this['_adapter']&&this[_0x5a48('0x53')][_0x5a48('0x83')]){if(_0x31d818[_0x5a48('0x2e')]){const _0x1fbe6f=_0x44085c[_0x5a48('0xde')](_0x7186cc(this['editor'][_0x5a48('0xf')],_0x5a48('0x5f')));this[_0x5a48('0x53')][_0x5a48('0x83')](_0x11a604,_0x519de6)[_0x5a48('0xd6')](()=>{_0x44085c['remove'](_0x1fbe6f);});}else _0x31d818['on']('change:_saved',()=>{this[_0x5a48('0x19')](_0x11a604,_0x519de6);});}}[_0x5a48('0x124')](_0x26b712){if(!this['_adapter']||!this[_0x5a48('0x53')][_0x5a48('0xc5')])throw new _0x5c539a('track-changes-adapter-missing-getsuggestion',this);return this[_0x5a48('0x53')][_0x5a48('0xc5')](_0x26b712);}[_0x5a48('0x27')](_0x324a26){const {id:_0x367105,type:_0x9a8a07,subType:_0x226076,authorId:_0x3cc78c}=this[_0x5a48('0x10a')](_0x324a26),_0x316ccd=this[_0x5a48('0x137')][_0x5a48('0x6c')](_0x367105)||this[_0x5a48('0xc4')](_0x9a8a07,_0x226076,_0x367105,_0x3cc78c,{});switch(this[_0x5a48('0xc8')](_0x316ccd,_0x9a8a07,_0x226076,_0x3cc78c),this[_0x5a48('0x11d')]['get'](_0x316ccd)){case _0x5a48('0x107'):this[_0x5a48('0x124')](_0x367105)[_0x5a48('0xd6')](_0x43059a=>{let _0x11f4e5=Promise[_0x5a48('0xc0')]();_0x43059a[_0x5a48('0x109')]&&(_0x11f4e5=this[_0x5a48('0xaa')]['fetchCommentThread']({'channelId':this[_0x5a48('0x16')][_0x5a48('0xe1')][_0x5a48('0x6c')](_0x5a48('0x9d')),'threadId':_0x367105})),_0x11f4e5[_0x5a48('0xd6')](()=>{this[_0x5a48('0x69')](_0x43059a)[_0x5a48('0x2e')]=!0x0;});}),this['_suggestionState'][_0x5a48('0x54')](_0x316ccd,_0x5a48('0x7c'));break;case'removed':this['_updateSuggestionData'](_0x367105,{'state':_0x5a48('0x8')});case _0x5a48('0x65'):this[_0x5a48('0x11d')][_0x5a48('0x54')](_0x316ccd,_0x5a48('0x6b')),this['fire']('suggestionLoaded',_0x316ccd);break;case _0x5a48('0x6b'):this[_0x5a48('0xd7')](_0x5a48('0x37'),_0x316ccd);}return _0x316ccd[_0x5a48('0x17')](_0x324a26),_0x316ccd;}[_0x5a48('0x2f')](_0x28d00f){const _0x4ccfce=Array[_0x5a48('0x57')](_0x28d00f)[_0x5a48('0xe2')](_0x456fa8=>!_0x456fa8[_0x5a48('0x41')]),_0x334e65=this[_0x5a48('0x129')]({'skipNotAttached':!0x0})[_0x5a48('0xe2')](_0x2838d4=>!_0x2838d4['isMultiRange']),_0x25ccba=_0x334e65[_0x5a48('0xe2')](_0x5149d2=>!_0x28d00f[_0x5a48('0x6a')](_0x5149d2)),_0x30dc07=new Map(_0x334e65['map'](_0x5979d6=>[_0x5979d6,this[_0x5a48('0xd5')][_0x5a48('0xf2')](_0x5979d6[_0x5a48('0x4d')],_0x5979d6[_0x5a48('0xb6')],_0x5a48('0xac'))])),_0x225c05=new Map(_0x334e65[_0x5a48('0x13b')](_0x246e0b=>[_0x246e0b,_0x246e0b[_0x5a48('0xf3')]()])),_0x499759=new Set(),_0x9dab2a=new Set();for(let _0x1caee4=0x0;_0x1caee4<_0x4ccfce['length'];_0x1caee4++)_0x473d8f(_0x4ccfce[_0x1caee4],_0x4ccfce,_0x1caee4+0x1);for(let _0x45b441=0x0;_0x45b441<_0x4ccfce[_0x5a48('0x60')];_0x45b441++)_0x473d8f(_0x4ccfce[_0x45b441],_0x25ccba,0x0);for(let _0x3ebe26=0x0;_0x3ebe26<_0x4ccfce[_0x5a48('0x60')];_0x3ebe26++){const _0x50a2b3=_0x4ccfce[_0x3ebe26];!_0x9dab2a[_0x5a48('0x6a')](_0x50a2b3)&&_0x50a2b3[_0x5a48('0x3b')]&&(_0x50a2b3['previous']['next']===_0x50a2b3&&(_0x50a2b3['previous'][_0x5a48('0x23')]=null),_0x50a2b3[_0x5a48('0x3b')]=null),!_0x499759[_0x5a48('0x6a')](_0x50a2b3)&&_0x50a2b3[_0x5a48('0x23')]&&(_0x50a2b3[_0x5a48('0x23')][_0x5a48('0x3b')]===_0x50a2b3&&(_0x50a2b3[_0x5a48('0x23')][_0x5a48('0x3b')]=null),_0x50a2b3[_0x5a48('0x23')]=null);}function _0x473d8f(_0x78153,_0x1041ff,_0x597d64){for(let _0x1a870c=_0x597d64;_0x1a870c<_0x1041ff[_0x5a48('0x60')];_0x1a870c++){const _0x49a14b=_0x2085d1(_0x78153,_0x1041ff[_0x1a870c]);_0x49a14b&&(_0x49a14b[0x0][_0x5a48('0x23')]=_0x49a14b[0x1],_0x49a14b[0x1][_0x5a48('0x3b')]=_0x49a14b[0x0],_0x499759[_0x5a48('0xde')](_0x49a14b[0x0]),_0x9dab2a['add'](_0x49a14b[0x1]));}}function _0x2085d1(_0x164a25,_0x549331){if(_0x164a25['author']['id']!==_0x549331['author']['id'])return null;const _0x36f740=_0x30dc07[_0x5a48('0x6c')](_0x164a25)(_0x164a25,_0x549331,_0x225c05[_0x5a48('0x6c')](_0x164a25),_0x225c05['get'](_0x549331));if(!_0x36f740)return null;return _0x30dc07[_0x5a48('0x6c')](_0x549331)(_0x164a25,_0x549331,_0x225c05['get'](_0x164a25),_0x225c05['get'](_0x549331))?_0x36f740[0x1]['commentThread']&&_0x36f740[0x1][_0x5a48('0x48')][_0x5a48('0x60')]?null:_0x36f740:null;}}[_0x5a48('0x78')](_0x353a81){const _0x1416c0=Array[_0x5a48('0x57')](_0x353a81),_0x5ee5f3=this[_0x5a48('0x129')]({'skipNotAttached':!0x0}),_0x1d6d28=_0x5ee5f3[_0x5a48('0xe2')](_0x1e3de4=>!_0x353a81[_0x5a48('0x6a')](_0x1e3de4)),_0x14f5e5=new Map(_0x1416c0[_0x5a48('0x13b')](_0x2388aa=>[_0x2388aa,this[_0x5a48('0xd5')]['getSuggestionCallback'](_0x2388aa[_0x5a48('0x4d')],_0x2388aa[_0x5a48('0xb6')],_0x5a48('0x36'))])),_0xc5fe50=new Map(_0x5ee5f3[_0x5a48('0x13b')](_0x5d6303=>[_0x5d6303,_0x5d6303[_0x5a48('0xc9')]()]));for(let _0x73ed90=0x0;_0x73ed90<_0x1416c0[_0x5a48('0x60')];_0x73ed90++){if(_0x38c3db(this,_0x1416c0[_0x73ed90],_0x1416c0,_0x73ed90+0x1))return!0x0;}for(let _0x4fa56f=0x0;_0x4fa56f<_0x1416c0[_0x5a48('0x60')];_0x4fa56f++){if(_0x38c3db(this,_0x1416c0[_0x4fa56f],_0x1d6d28,0x0))return!0x0;}return!0x1;function _0x38c3db(_0x2e7f44,_0xebde32,_0x361d41,_0x7bcae7){for(let _0x2035ce=_0x7bcae7;_0x2035ce<_0x361d41[_0x5a48('0x60')];_0x2035ce++){const _0x307533=_0x361d41[_0x2035ce];if(_0x307533[_0x5a48('0x4d')]!==_0xebde32[_0x5a48('0x4d')]||_0x307533[_0x5a48('0x9c')]['id']!==_0xebde32[_0x5a48('0x9c')]['id']||_0x307533[_0x5a48('0xb6')]!==_0xebde32[_0x5a48('0xb6')])continue;if(!Ut(_0xebde32,_0x307533))continue;const _0x3ecebf=_0x14f5e5[_0x5a48('0x6c')](_0xebde32),_0x2c1ceb=_0xc5fe50['get'](_0xebde32),_0x2118f7=_0xc5fe50[_0x5a48('0x6c')](_0x307533),_0x29aaeb=_0xebde32[_0x5a48('0x48')]&&_0xebde32['commentThread'][_0x5a48('0x60')],_0x1921de=_0x307533[_0x5a48('0x48')]&&_0x307533[_0x5a48('0x48')]['length'];if(!_0x29aaeb&&_0x3ecebf(_0x2118f7,_0x2c1ceb))return _0x2e7f44[_0x5a48('0x6e')](_0x307533,_0xebde32),_0xc5fe50[_0x5a48('0xb1')](_0xebde32),!0x0;if(!_0x1921de&&_0x3ecebf(_0x2c1ceb,_0x2118f7))return _0x2e7f44[_0x5a48('0x6e')](_0xebde32,_0x307533),_0xc5fe50['delete'](_0x307533),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d110e,_0x58e803){if(_0x5d110e[_0x5a48('0x41')])for(const _0x9774c2 of _0x58e803[_0x5a48('0xc9')]())_0x5d110e[_0x5a48('0xed')](_0x9774c2);else{const _0x40830f=_0x58e803[_0x5a48('0xf3')]()['end'];this[_0x5a48('0x3e')](_0x5d110e,this[_0x5a48('0x95')]['createRange'](_0x5d110e[_0x5a48('0xf3')]()[_0x5a48('0xb7')],_0x40830f));}_0x58e803[_0x5a48('0x40')]();}}class Bt{constructor(_0x1b093f){this['_editor']=_0x1b093f,this[_0x5a48('0x95')]=_0x1b093f['model'],this['_customCallbacks']=new Map(),this[_0x5a48('0xda')]=new Map(),this[_0x5a48('0xa3')]();}[_0x5a48('0xe0')](_0x4c92d3,_0x27a5d4,_0xacab48,_0x2f0391,_0x1683e4,_0x559936){return new _0x37847a(this[_0x5a48('0x95')],{'type':_0x4c92d3,'subType':_0x27a5d4,'id':_0xacab48,'author':_0x2f0391,'creator':_0x2f0391,'attributes':_0x1683e4,'onAttributesChange':_0x559936,'onAccept':(..._0x4b472a)=>this[_0x5a48('0xf2')](_0x4c92d3,_0x27a5d4,_0x5a48('0x62'))(..._0x4b472a),'onDiscard':(..._0x1827ef)=>this[_0x5a48('0xf2')](_0x4c92d3,_0x27a5d4,_0x5a48('0xa1'))(..._0x1827ef)});}['registerCustomCallback'](_0x2745a3,_0x3fed4b,_0x5c37ff,_0x4beedd){const _0x51c2b5=_0x2745a3+':'+_0x3fed4b+':'+_0x5c37ff;this[_0x5a48('0x10b')][_0x5a48('0x54')](_0x51c2b5,_0x4beedd);}[_0x5a48('0xf2')](_0x396877,_0x266b21,_0x41a1b5){const _0x20a576=_0x396877+':'+_0x266b21+':'+_0x41a1b5;return this[_0x5a48('0x10b')][_0x5a48('0x6c')](_0x20a576)||this[_0x5a48('0xda')][_0x5a48('0x6c')](_0x396877+':'+_0x41a1b5);}['_registerDefaultCallbacks'](){const _0x2950ef=()=>!0x1,_0x56a4ea=_0xc57481=>{_0xc57481[_0x5a48('0xae')]((_0x13240e,_0x39ddf0)=>_0x13240e[_0x5a48('0xb7')][_0x5a48('0xa6')](_0x39ddf0[_0x5a48('0xb7')])?0x1:-0x1),this[_0x5a48('0x95')][_0x5a48('0x1e')](_0x37ec9d=>{for(const _0x3b9d74 of _0xc57481){let _0x51957a;_0x51957a=_0x3b9d74[_0x5a48('0x125')]['isAtEnd']&&_0x3b9d74[_0x5a48('0x125')][_0x5a48('0xad')]==_0x3b9d74[_0x5a48('0xb7')][_0x5a48('0x6')]?_0x37ec9d[_0x5a48('0x46')](_0x3b9d74[_0x5a48('0xb7')][_0x5a48('0x6')],'on'):_0x37ec9d[_0x5a48('0x46')](_0x3b9d74),this[_0x5a48('0x95')]['deleteContent'](_0x51957a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5f22d6=(_0x49ab9c,_0x458ef0)=>{this['_model'][_0x5a48('0x1e')](_0x1b81d5=>{const {commandName:_0x2c8f77,commandParams:_0x4cc329=[]}=_0x458ef0,_0x4b652d=_0x49ab9c[_0x5a48('0x13b')](_0x1f9a87=>(Mt(_0x1f9a87)&&(_0x1f9a87=this[_0x5a48('0x95')]['createRange'](_0x1f9a87['end'])),_0x1f9a87))[_0x5a48('0xe2')](_0x11caf6=>_0x5a48('0x8d')!==_0x11caf6[_0x5a48('0x61')][_0x5a48('0xe7')]);if(_0x4b652d['length']<0x1)return;const _0x508f68=Array[_0x5a48('0x57')](this[_0x5a48('0x95')][_0x5a48('0x45')][_0x5a48('0x0')]['getRanges']())[_0x5a48('0x13b')](_0x16d1eb=>_0x5e64e8[_0x5a48('0x11c')](_0x16d1eb));_0x1b81d5[_0x5a48('0xa5')](_0x4b652d);for(const _0x52ab96 of this[_0x5a48('0x6f')][_0x5a48('0xb8')]['commands']())_0x52ab96['refresh']();_0x4cc329[_0x5a48('0x119')]({'forceDefaultExecution':!0x0}),this[_0x5a48('0x6f')][_0x5a48('0x7a')](_0x2c8f77,..._0x4cc329);const _0x2fc65e=_0x508f68[_0x5a48('0xe2')](_0xc51c2a=>_0x5a48('0x8d')!=_0xc51c2a[_0x5a48('0x61')]['rootName']);_0x2fc65e[_0x5a48('0x60')]>0x0&&_0x1b81d5[_0x5a48('0xa5')](_0x2fc65e);for(const _0x4007ec of _0x508f68)_0x4007ec['detach']();});},_0x2310fd=(_0xaab4fc,_0x162027)=>0x1==_0xaab4fc['length']&&0x1==_0x162027[_0x5a48('0x60')]&&_0xaab4fc[0x0][_0x5a48('0x125')]['isEqual'](_0x162027[0x0][_0x5a48('0xb7')]),_0x458f4d=(_0x16de6a,_0x43ba56,_0x32cf25,_0xfa8cd1)=>xt(_0x16de6a,_0x43ba56,_0x32cf25,_0xfa8cd1,this[_0x5a48('0x95')])?[_0x16de6a,_0x43ba56]:xt(_0x43ba56,_0x16de6a,_0xfa8cd1,_0x32cf25,this[_0x5a48('0x95')])?[_0x43ba56,_0x16de6a]:null;this[_0x5a48('0xda')]['set'](_0x5a48('0x121'),_0x2950ef),this[_0x5a48('0xda')]['set']('insertion:discard',_0x56a4ea),this[_0x5a48('0xda')]['set']('insertion:join',_0x2310fd),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0xcf'),_0x458f4d),this[_0x5a48('0xda')]['set']('deletion:accept',_0x56a4ea),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0xf7'),_0x2950ef),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x91'),_0x2310fd),this[_0x5a48('0xda')][_0x5a48('0x54')](_0x5a48('0xd3'),_0x458f4d),this[_0x5a48('0xda')]['set'](_0x5a48('0x75'),_0x5f22d6),this[_0x5a48('0xda')][_0x5a48('0x54')]('formatInline:discard',_0x2950ef),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x80'),_0x2310fd),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x1d'),_0x2950ef),this[_0x5a48('0xda')][_0x5a48('0x54')]('formatBlock:accept',_0x5f22d6),this['_defaultCallbacks'][_0x5a48('0x54')](_0x5a48('0x21'),_0x2950ef),this[_0x5a48('0xda')][_0x5a48('0x54')]('formatBlock:join',_0x2310fd),this[_0x5a48('0xda')][_0x5a48('0x54')](_0x5a48('0xb2'),_0x2950ef);}}function _t(_0x48ba1f,_0x4be0c7,_0xd68c51){for(const _0x588a77 of _0x4be0c7[_0x5a48('0xad')][_0x5a48('0x86')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x588a77[_0x5a48('0x61')]==_0x588a77)return!0x1;if(!_0xd68c51['containsItem'](_0x588a77))return!0x1;if(_0x48ba1f[_0x5a48('0x3')](_0x588a77)||_0x48ba1f[_0x5a48('0x12a')](_0x588a77))return!0x0;}return!0x1;}function Mt(_0x4df4c4){return _0x4df4c4[_0x5a48('0x125')][_0x5a48('0xad')]==_0x4df4c4[_0x5a48('0xb7')][_0x5a48('0x6')]&&_0x4df4c4[_0x5a48('0x125')]['isAtStart'];}function $t(_0x273e21,_0x3386a6,_0x3cc157,_0x24bb0c){const _0x5a35ad=_0x27163e=>!_0x27163e[_0x5a48('0x134')]['is'](_0x5a48('0x29'))&&!_0x24bb0c[_0x5a48('0x3')](_0x27163e[_0x5a48('0x134')]),_0x45b8bb=_0x273e21[_0x5a48('0xb7')][_0x5a48('0x77')](_0x5a35ad),_0x181c07=_0x273e21[_0x5a48('0x125')][_0x5a48('0x77')](_0x5a35ad,{'direction':_0x5a48('0x116')});return(!_0x273e21[_0x5a48('0xb7')][_0x5a48('0x138')](_0x45b8bb)||!_0x273e21[_0x5a48('0x125')]['isEqual'](_0x181c07))&&(_0x45b8bb[_0x5a48('0xa6')](_0x181c07)?_0x3cc157[_0x5a48('0x33')](_0x3386a6,{'range':_0x3cc157['createRange'](_0x45b8bb,_0x181c07)}):_0x3cc157[_0x5a48('0xb4')](_0x3386a6),!0x0);}function Nt(_0x2beb0e){return _0x295668(_0x2beb0e);}function Rt(_0xc113f3){const _0x4002d5=_0xc113f3[_0x5a48('0xb7')][_0x5a48('0x6')];return _0x4002d5&&_0x4002d5['is'](_0x5a48('0x82'));}function jt(_0x4bba7a,_0x9ac5b4){const _0xae1644=_0x9ac5b4[_0x5a48('0xbe')][_0x5a48('0x3')](_0x4bba7a)||_0x9ac5b4[_0x5a48('0xbe')][_0x5a48('0x30')](_0x4bba7a);return _0x9ac5b4[_0x5a48('0x114')](_0x9ac5b4[_0x5a48('0x2b')](_0x4bba7a,_0x5a48('0xec')),_0xae1644?_0x9ac5b4[_0x5a48('0x8c')](_0x4bba7a):_0x9ac5b4[_0x5a48('0x2b')](_0x4bba7a,'end'));}function xt(_0x331998,_0x5a983a,_0x18d671,_0xb1efb1,_0x226024){if(!Ut(_0x331998,_0x5a983a))return!0x1;if(_0x18d671[_0x5a48('0x125')][_0x5a48('0x138')](_0xb1efb1[_0x5a48('0xb7')]))return!0x0;if(_0x331998[_0x5a48('0x4d')]!=_0x5a983a[_0x5a48('0x4d')])return!0x1;if(!_0x18d671['end']['isTouching'](_0xb1efb1[_0x5a48('0xb7')]))return!0x1;const _0x72dafc=_0x226024[_0x5a48('0x114')](_0x18d671[_0x5a48('0x125')],_0xb1efb1['start'])['getWalker']();for(const _0xd8dfea of _0x72dafc)if([_0x5a48('0x113'),'elementEnd'][_0x5a48('0x117')](_0xd8dfea[_0x5a48('0x4d')])&&_0x226024['schema'][_0x5a48('0x12a')](_0xd8dfea[_0x5a48('0x134')]))return!0x1;return!0x0;}function Ut(_0x43ae75,_0x41e2d7){return!(!_0x43ae75[_0x5a48('0x3a')]||!_0x41e2d7[_0x5a48('0x3a')])&&_0x5c3132(_0x43ae75[_0x5a48('0x133')],_0x41e2d7[_0x5a48('0x133')]);}function Ot(_0x12e262,_0x39c61f){const _0x183d4e=Et(_0x12e262[_0x5a48('0x133')]),_0x22fe49=Et(_0x39c61f);if(!_0x12e262[_0x5a48('0x3a')])return!0x1;for(const _0x545c47 of Object[_0x5a48('0x39')](_0x22fe49))if(!_0x5c3132(_0x183d4e[_0x545c47],_0x22fe49[_0x545c47]))return!0x1;return!0x0;}function Et(_0x84ee76){const _0x1e9a31=Object[_0x5a48('0xa8')]({},_0x84ee76);return delete _0x1e9a31[_0x5a48('0x110')],delete _0x1e9a31['tablePasteChainId'],_0x1e9a31;}
|
|
23
|
+
const _0x40e3=['_suggestionState','elementToElement','track-changes-adapter-missing-getsuggestion','markMultiRangeDeletion','_saved','updateMarker','next','_joinWithAdjacentSuggestions','_removeSuggestion','isArray','high','suggestionChanged','createRange','data','getMultiRangeId','filter','authoredAt','isBefore','nodeBefore','deletion:','end','addSuggestionData','formatInline:','getCustomProperty','createPositionBefore','isSelectable','low','_registerDefaultCallbacks','isIntersectingWithRange','notReady','isNextTo','values','_splitMarkerName','change:activeMarkers','_breakSuggestionMarker','enableReadOnlyMode','normal','formatInline:chain','detach','formatBlock:','getChanges','stopListening','markerToHighlight','get','getWalker','splice','group','value','formatBlock:join','insertion:discard','isLocal','trackChangesCommand','parent','hasCommentThread','removeAttribute','suggestionUnloaded','_updateSuggestionData','authorName','addUser','addMarker:suggestion:formatBlock','delete','add','_checkSuggestionCorrectness','createPositionAfter','stop','getAttribute','author','init','formatInline:accept','subType','markInsertion','_setSuggestionData','removeMarker:suggestion:formatBlock','removeClass','getShiftedBy','commands','markBlockFormat','type','insert','_createSuggestion','commandName','marker-count','rethrowUnexpectedError','getRange','always','item','ck-suggestion-marker-','sort','collaboration.channelId','options','has','deletion','setTo','never','formatInline:discard','markers','clear','nodeAfter','removeMarkers','getIntersection','getFirstMarker','trackChanges.trackFormatChanges','ck-suggestion-marker','_adapter','plugins','oldRange','hasSuggestion','ck-suggestion-marker-formatBlock','config','insertion:chain','forceDefaultExecution','acceptSuggestion','consumable','change','getUser','markDeletion','_descriptionFactory','getChangedMarkers','addClass','addRange','insertion:accept','bindElementToMarker','assign','before','markerName','getSuggestion','createElement','_commentsRepository','model','_cutOutSuggestionMarker','_suggestionFactory','adapter','schema','previous','differ','markerToData','PendingActions','creator','isMultiRange','insertion:','external:','map','data-suggestion','_addSuggestionMarker','isUndo','track-changes-user-not-found','_isForcedDefaultExecutionBlock','getDifference','addMarker:suggestion','accept','resolve','change:_saved','multipleBlocks','PENDING_ACTION_SUGGESTION','isAtEnd','howMany','suggestionLoaded','execute','isRemovable','toJSON','containsRange','suggestion:','range','size','track-changes-suggestion-data-mismatch','addSuggestion','containsPosition','_handleNewSuggestionMarker','_getExternalAuthor','unbind','position','insertion','return','_enabledCommands','keys','selection','length','formatBlock','acceptSelectedSuggestions','_rangeIsInLocalUserInsertion','getAllAdjacentSuggestions','activeMarkers','rootName','isExternal','some','fire','setSelection','setAttribute','markMultiRangeInsertion','@external','_joinSuggestions','catch','backward','trackChanges.mergeNestedSuggestions','_getSuggestionData','containsRangeInObject','discard','Users','createdAt','batch','markerReady','$marker','_customCallbacks','editing','markerNameToElements','consume','discardSuggestion','root','fromRange','getAncestors','suggestion','markMultiRangeBlockFormat','splitPosition','_findSuggestions','every','isInContent','refresh','conversion','attributes','ck-suggestion-marker--active','clone','_addThreadToSuggestion','isBlock','createSelection','containsItem','trackChanges','isCollapsed','_getAuthorFromId','isObject','updateSuggestion','ready','_onDiscard','removeComment','getItems','isEqual','elementStart','_editor','_isDataLoaded','_refreshSuggestionsChain','$graveyard','getNearestSelectionRange','removed','editingDowncast','_setSuggestionRange','open','formatInline:join','insertion:join','error-saving-suggestion-data-suggestion-discarded','enableCommand','for','insertContent','multi','_trackFormatChanges','_mergeNestedSuggestions','addCommentThread','markInlineFormat','deletion:chain','newRange','then','head','lowest','CommentsRepository','removeMarker','getRanges','isLimit','listenTo','rejected','getSuggestions','join','reconvertMarker','formatInline','addMarkerName','moveTargetPosition','locale','addHighlight','getFirstRange','commentThread','after','_model','define','isAfter','dataDowncast','upcast','isTouching','acceptAllSuggestions','set','formatBlock:accept','formatGroupId','track-changes-command-not-found','mapper','targetPosition','toViewElement','dataReady','containerElement','_defaultCallbacks','buildSuggestion','start','discardSelectedSuggestions','createPositionAt','hasComments','addComment','document','track-changes-adapter-already-set','isInsideObject','editor','deletion:accept','getSuggestionCallback','push','name','skipNestingCheck','pluginName','includes','update:suggestion','discardAllSuggestions','remove','showSuggestionHighlights','chain','element','split','registerPostFixer','writer','_suggestions','$textProxy','from','isDocumentOperation','suggestion-type','addMarker','isOwn','createRangeIn'];(function(_0x5431de,_0x40e34e){const _0x17ec90=function(_0x59afba){while(--_0x59afba){_0x5431de['push'](_0x5431de['shift']());}};_0x17ec90(++_0x40e34e);}(_0x40e3,0x1c6));const _0x17ec=function(_0x5431de,_0x40e34e){_0x5431de=_0x5431de-0x0;let _0x17ec90=_0x40e3[_0x5431de];return _0x17ec90;};import{Plugin as _0x3940dc,PendingActions as _0x454d28}from'ckeditor5/src/core';import{LiveRange as _0x5b7c0c}from'ckeditor5/src/engine';import{CKEditorError as _0x2a3dc7,uid as _0x30e77c,priorities as _0x2f4fde,logWarning as _0x5c4f63}from'ckeditor5/src/utils';import{toWidget as _0x38e897}from'ckeditor5/src/widget';import{Users as _0xe69bb,hashObject as _0x478159}from'ckeditor5-collaboration/src/collaboration-core';import _0x210453 from'./commands/trackchangescommand';import _0x453538 from'./commands/acceptsuggestioncommand';import _0x3bd816 from'./commands/discardsuggestioncommand';import _0x573948 from'./commands/executeonallsuggestionscommand';import _0x5cc8f8 from'./commands/executeonselectedsuggestionscommand';import _0x3509b3 from'./suggestion';import _0x1fe19c from'./suggestiondescriptionfactory';import _0x28a59e from'./integrations/aiassistant';import _0x2a49b6 from'./integrations/alignment';import _0x4e4fa1 from'./integrations/basicstyles';import _0x4cfd1f from'./integrations/blockquote';import _0x32a3b0 from'./integrations/ckbox';import _0x13da7c from'./integrations/codeblock';import _0x556a3b from'./integrations/comments';import _0x2661a3 from'./integrations/deletecommand';import _0x2cc07d from'./integrations/documentlist';import _0x8ac22d from'./integrations/entercommand';import _0xa53c66 from'./integrations/findandreplace';import _0x88f470 from'./integrations/font';import _0x48d6eb from'./integrations/formatpainter';import _0x4ea11c from'./integrations/heading';import _0x3933ec from'./integrations/highlight';import _0x4c50bc from'./integrations/horizontalline';import _0x22d53b from'./integrations/htmlembed';import _0x8c45d0 from'./integrations/image';import _0x10f401 from'./integrations/imagereplace';import _0x32f7ed from'./integrations/importword';import _0x2c8107 from'./integrations/indent';import _0x48b0bc from'./integrations/inputcommand';import _0x303410 from'./integrations/link';import _0xa107c9 from'./integrations/list';import _0x8942f4 from'./integrations/listproperties';import _0x12d58e from'./integrations/mediaembed';import _0x1f7340 from'./integrations/mention';import _0x55d8df from'./integrations/pagebreak';import _0x352d70 from'./integrations/paragraph';import _0x2a9568 from'./integrations/removeformat';import _0x26090f from'./integrations/restrictededitingmode';import _0x587a87 from'./integrations/shiftentercommand';import _0x3c7737 from'./integrations/standardeditingmode';import _0x580d04 from'./integrations/style';import _0x350d65 from'./integrations/table';import _0x310ecb from'./integrations/tablemergesplit';import _0x3086da from'./integrations/tableheadings';import _0xed993 from'./integrations/tableclipboard';import _0x16f65b from'./integrations/tablecolumnresize';import _0x5c2cb4 from'./integrations/template';import _0x42601d from'./integrations/tableofcontents';import _0x40189f from'./integrations/title';import _0x4eee3f from'./integrations/undo';import{getTranslation as _0x4d4de8}from'./utils/common-translations';import _0x3c9912 from'./integrations/tablecaption';import _0x2a5b49 from'./integrations/documentlistproperties';import _0x186f5c from'./integrations/tableproperties';import{isEqual as _0x4d409c}from'lodash-es';export default class p extends _0x3940dc{static get['requires'](){return[_0x17ec('0x88'),_0xe69bb,_0x454d28,_0x28a59e,_0x2a49b6,_0x4e4fa1,_0x4cfd1f,_0x32a3b0,_0x13da7c,_0x556a3b,_0x2661a3,_0x2cc07d,_0x2a5b49,_0x8ac22d,_0xa53c66,_0x88f470,_0x48d6eb,_0x4ea11c,_0x3933ec,_0x4c50bc,_0x22d53b,_0x8c45d0,_0x10f401,_0x32f7ed,_0x2c8107,_0x48b0bc,_0x303410,_0xa107c9,_0x8942f4,_0x12d58e,_0x1f7340,_0x55d8df,_0x352d70,_0x2a9568,_0x26090f,_0x587a87,_0x3c7737,_0x580d04,_0x350d65,_0x310ecb,_0x3086da,_0x3c9912,_0xed993,_0x16f65b,_0x42601d,_0x186f5c,_0x5c2cb4,_0x40189f,_0x4eee3f];}static get[_0x17ec('0xb9')](){return'TrackChangesEditing';}constructor(_0x140d06){function _0x37693b(_0x492d54){return _0x492d54[_0x17ec('0x10')](_0xbcd73a=>String['fromCharCode'](_0xbcd73a))[_0x17ec('0x8f')]('');}super(_0x140d06),this[_0x17ec('0xa0')](_0x17ec('0x38'),[]),this['on'](_0x17ec('0xed'),(_0x324810,_0xdc31ef,_0x4523bb,_0x11deae)=>{this[_0x17ec('0x99')]['change'](()=>{for(const _0x528203 of[..._0x11deae,..._0x4523bb])this['_model'][_0x17ec('0x12b')][_0x17ec('0x126')](_0x528203)&&_0x140d06[_0x17ec('0x4e')][_0x17ec('0x90')](_0x528203);});}),this[_0x17ec('0x140')]=new _0x1fe19c(this[_0x17ec('0xb3')][_0x17ec('0x3')][_0x17ec('0x7')],this['editor'][_0x17ec('0x94')]),this[_0x17ec('0x133')]=null,this[_0x17ec('0x5')]=new Bt(this[_0x17ec('0xb3')]),this[_0x17ec('0xc4')]=new Map(),this[_0x17ec('0x2')]=_0x140d06['plugins'][_0x17ec('0xf7')](_0x17ec('0x88')),this[_0x17ec('0x30')]=new Set(),this[_0x17ec('0x99')]=this['editor'][_0x17ec('0x3')],this['_suggestionState']=new WeakMap(),this[_0x17ec('0x15')]=!0x1,_0x140d06[_0x17ec('0x138')]['define'](_0x17ec('0x131'),'default'),this[_0x17ec('0x7f')]=_0x140d06['config'][_0x17ec('0xf7')](_0x17ec('0x131')),_0x140d06[_0x17ec('0x138')][_0x17ec('0x9a')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x17ec('0x80')]=_0x140d06[_0x17ec('0x138')][_0x17ec('0xf7')](_0x17ec('0x44')),this[_0x17ec('0xff')]=new _0x210453(_0x140d06,this[_0x17ec('0x30')]),this[_0x37693b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x37693b([0x34,0x30,0x34,0x36,0x32,0x30,0x35,0x30]);}[_0x17ec('0x10f')](){const _0x28710f=this[_0x17ec('0xb3')];_0x28710f[_0x17ec('0x5c')][_0x17ec('0x7c')](_0x17ec('0x75'))[_0x17ec('0xf6')]({'model':_0x17ec('0x55'),'view':_0x50302d=>{const {id:_0x43c0a5,type:_0x2f8498}=this[_0x17ec('0xec')](_0x50302d[_0x17ec('0x148')]),_0x39867d=[_0x17ec('0x132'),'ck-suggestion-marker-'+_0x2f8498];let _0x379ba1=0xbb8;return this[_0x17ec('0x38')][_0x17ec('0xba')](_0x50302d[_0x17ec('0x148')])&&(_0x39867d['push'](_0x17ec('0x5e')),_0x379ba1=0xbc2),_0x17ec('0x127')==_0x2f8498&&(_0x379ba1+=0x5),{'classes':_0x39867d,'attributes':{'data-suggestion':_0x43c0a5},'priority':_0x379ba1};}}),_0x28710f[_0x17ec('0x5c')][_0x17ec('0x7c')](_0x17ec('0x9c'))[_0x17ec('0x109')](_0x45d979=>{_0x45d979['on'](_0x17ec('0x17'),(_0x440774,_0x1fdd86,_0xf8a039)=>{if(!_0xf8a039['options'][_0x17ec('0xbe')])return;const _0x88f1cb=_0x1fdd86[_0x17ec('0x121')];if(!_0x88f1cb)return;const _0x1cfc3a=_0xf8a039[_0x17ec('0xa4')][_0x17ec('0xa6')](_0x88f1cb);_0x28710f['model'][_0x17ec('0x7')][_0x17ec('0x67')](_0x88f1cb)&&_0x1cfc3a&&!_0x1cfc3a[_0x17ec('0xe3')]('widget')&&_0x1cfc3a['is'](_0x17ec('0xa8'))&&_0x38e897(_0x1cfc3a,_0xf8a039[_0x17ec('0xc3')]);},{'priority':_0x17ec('0xd6')});}),_0x28710f[_0x17ec('0x5c')][_0x17ec('0x7c')]('dataDowncast')[_0x17ec('0xf6')]({'model':_0x17ec('0x55'),'view':(_0x281e84,_0x254392)=>{if(!_0x254392[_0x17ec('0x125')]['showSuggestionHighlights'])return null;const {type:_0x3dec29}=this['_splitMarkerName'](_0x281e84[_0x17ec('0x148')]);return{'classes':['ck-suggestion-marker',_0x17ec('0x122')+_0x3dec29],'priority':0xbb8};}});const _0x6afba7=({showActiveMarkers:_0x5545a3=!0x0}={})=>(_0x2b342b,_0x2b05b9,_0x4bd9bf)=>{if(!_0x2b05b9[_0x17ec('0x121')])return;if(_0x2b05b9[_0x17ec('0x121')]['is'](_0x17ec('0x32')))return void _0x4bd9bf[_0x17ec('0x13c')][_0x17ec('0x50')](_0x2b05b9[_0x17ec('0x121')],_0x2b342b['name']);const _0x825125=_0x4bd9bf[_0x17ec('0xa4')][_0x17ec('0xa6')](_0x2b05b9[_0x17ec('0x121')]);if(!(_0x2b05b9[_0x17ec('0x121')]['is'](_0x17ec('0xc0'))&&_0x28710f[_0x17ec('0x3')][_0x17ec('0x7')][_0x17ec('0x61')](_0x2b05b9[_0x17ec('0x121')])&&!_0x825125[_0x17ec('0xe3')](_0x17ec('0x95'))))return;const {id:_0x3ccf84}=this['_splitMarkerName'](_0x2b05b9[_0x17ec('0x148')]);_0x4bd9bf['writer'][_0x17ec('0x142')]([_0x17ec('0x132'),_0x17ec('0x137')],_0x825125),_0x4bd9bf['writer'][_0x17ec('0x3e')](_0x17ec('0x11'),_0x3ccf84,_0x825125),_0x4bd9bf[_0x17ec('0xa4')][_0x17ec('0x145')](_0x825125,_0x2b05b9[_0x17ec('0x148')]),_0x5545a3&&(this[_0x17ec('0x38')]['includes'](_0x2b05b9['markerName'])?_0x4bd9bf['writer'][_0x17ec('0x142')]('ck-suggestion-marker--active',_0x825125):_0x4bd9bf['writer']['removeClass']('ck-suggestion-marker--active',_0x825125));for(const _0x24fe0e of _0x28710f[_0x17ec('0x3')][_0x17ec('0xcb')](_0x2b05b9[_0x17ec('0x121')])[_0x17ec('0x6c')]())_0x4bd9bf['consumable'][_0x17ec('0x50')](_0x24fe0e,_0x2b342b[_0x17ec('0xb7')]);_0x4bd9bf[_0x17ec('0x13c')]['consume'](_0x2b05b9[_0x17ec('0x121')],_0x2b342b[_0x17ec('0xb7')]);};_0x28710f[_0x17ec('0x5c')][_0x17ec('0x7c')](_0x17ec('0x9c'))[_0x17ec('0x109')](_0x4ca035=>{_0x4ca035['on'](_0x17ec('0x107'),(_0x125510,_0x128e2c,_0x547239)=>{_0x547239[_0x17ec('0x125')][_0x17ec('0xbe')]&&_0x6afba7({'showActiveMarkers':!0x1})(_0x125510,_0x128e2c,_0x547239);},{'priority':'highest'});}),_0x28710f['conversion'][_0x17ec('0x7c')](_0x17ec('0x9c'))[_0x17ec('0xa')]({'model':'suggestion','view':(_0x351a97,_0x42b179)=>_0x42b179[_0x17ec('0x125')][_0x17ec('0xbe')]?null:{'group':'suggestion','name':_0x351a97['substr'](0xb)}}),_0x28710f['conversion'][_0x17ec('0x7c')]('upcast')[_0x17ec('0xcd')]({'view':{'name':_0x17ec('0x55'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a68c9,{writer:_0x123205})=>{let _0x492851=_0x17ec('0x24')+_0x4a68c9[_0x17ec('0x10d')](_0x17ec('0xc8'))+':'+_0x4a68c9[_0x17ec('0x10d')]('id');return _0x4a68c9[_0x17ec('0x10d')](_0x17ec('0x11d'))&&(_0x492851+=':'+_0x4a68c9[_0x17ec('0x10d')](_0x17ec('0x11d'))),_0x123205[_0x17ec('0x1')](_0x17ec('0x4c'),{'data-name':_0x492851});}}),_0x28710f['conversion'][_0x17ec('0x7c')](_0x17ec('0x9d'))['dataToMarker']({'view':_0x17ec('0x55')}),_0x28710f[_0x17ec('0x5c')][_0x17ec('0x7c')](_0x17ec('0x75'))['add'](_0x5bf9a1=>{_0x5bf9a1['on'](_0x17ec('0x107'),_0x6afba7(),{'priority':'high'});}),_0x28710f[_0x17ec('0x5c')]['for'](_0x17ec('0x75'))[_0x17ec('0x109')](_0x3fdd01=>{_0x3fdd01['on'](_0x17ec('0x114'),(_0x2f58ab,_0x53426a,_0x4fa3b0)=>{const _0x97b7ac=_0x4fa3b0[_0x17ec('0xa4')][_0x17ec('0x4f')](_0x53426a[_0x17ec('0x148')]);if(_0x97b7ac)for(const _0x1d6853 of _0x97b7ac)_0x1d6853[_0x17ec('0xe3')](_0x17ec('0x95'))||(_0x4fa3b0[_0x17ec('0xc3')][_0x17ec('0x115')]([_0x17ec('0x132'),_0x17ec('0x137'),_0x17ec('0x5e')],_0x1d6853),_0x4fa3b0[_0x17ec('0xc3')][_0x17ec('0x102')](_0x17ec('0x11'),_0x1d6853),_0x4fa3b0[_0x17ec('0xa4')]['unbindElementFromMarkerName'](_0x1d6853,_0x53426a[_0x17ec('0x148')]));},{'priority':_0x17ec('0xd6')});}),_0x28710f[_0x17ec('0x3')][_0x17ec('0xb0')][_0x17ec('0xc2')](_0x23df78=>{let _0x1f13a4=!0x1;const _0xc99de8=Array[_0x17ec('0xc6')](_0x28710f[_0x17ec('0x3')][_0x17ec('0xb0')]['differ'][_0x17ec('0x141')]()),_0xb8f5=new Set();for(const {name:_0x13d7ff,data:_0x95a5f}of _0xc99de8){const {group:_0x543046,type:_0x2775a2,id:_0x153d2d}=this[_0x17ec('0xec')](_0x13d7ff);if(_0x17ec('0x55')!==_0x543046)continue;const _0x622770=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x153d2d);if(null!=_0x95a5f[_0x17ec('0x84')]){_0x17ec('0x91')==_0x2775a2&&(_0x1f13a4=_0x1f13a4||$t(_0x95a5f[_0x17ec('0x84')],_0x13d7ff,_0x23df78,_0x28710f[_0x17ec('0x3')][_0x17ec('0x7')]));if(_0x95a5f['newRange']['isCollapsed']||_0x17ec('0x72')==_0x95a5f[_0x17ec('0x84')][_0x17ec('0x52')][_0x17ec('0x39')]||_0x17ec('0x34')==_0x2775a2&&!Rt(_0x95a5f[_0x17ec('0x84')])||_0x17ec('0x127')==_0x2775a2&&!(!Mt(_0x24dc4b=_0x95a5f[_0x17ec('0x84')])&&!function(_0x4c2a39){return _0x4c2a39['start'][_0x17ec('0x100')]==_0x4c2a39[_0x17ec('0xe0')]['nodeBefore']&&_0x4c2a39[_0x17ec('0xab')][_0x17ec('0x1d')];}(_0x24dc4b)))_0x23df78['removeMarker'](_0x13d7ff),_0x1f13a4=!0x0;else{if(!_0x622770||!_0x622770['isInContent'])continue;_0xb8f5['add'](_0x622770);}}}var _0x24dc4b;return _0xb8f5[_0x17ec('0x26')]>0x0&&(_0x1f13a4=!!this[_0x17ec('0xd3')](_0xb8f5)||_0x1f13a4),_0x1f13a4;}),_0x28710f['model'][_0x17ec('0xb0')][_0x17ec('0xc2')](_0x5c4ec0=>{let _0x50f5fe=!0x1;for(const _0x36220e of _0x28710f['model']['document'][_0x17ec('0x9')][_0x17ec('0xf4')]()){if(_0x17ec('0x11a')!=_0x36220e['type'])continue;const _0x1ccd26=_0x36220e[_0x17ec('0x2d')][_0x17ec('0x116')](_0x36220e[_0x17ec('0x33')]);if(_0x1ccd26[_0x17ec('0x1d')])for(const _0x29c1ca of this[_0x17ec('0xc4')][_0x17ec('0xeb')]()){if(_0x29c1ca[_0x17ec('0xd')]||!_0x29c1ca[_0x17ec('0x5a')])continue;if(_0x17ec('0x34')!=_0x29c1ca['type'])continue;const _0x5d2b3f=_0x29c1ca['getFirstRange']();if(_0x5d2b3f[_0x17ec('0xab')]['parent']!=_0x5d2b3f[_0x17ec('0xe0')]['parent']&&_0x5d2b3f[_0x17ec('0xe0')][_0x17ec('0x6d')](_0x36220e[_0x17ec('0x2d')])){const _0x2aba42=_0x28710f[_0x17ec('0x3')][_0x17ec('0xd8')](_0x5d2b3f[_0x17ec('0xab')],_0x1ccd26);_0x5c4ec0[_0x17ec('0xd1')](_0x29c1ca[_0x17ec('0x130')](),{'range':_0x2aba42}),_0x50f5fe=!0x0;}}}return _0x50f5fe;}),_0x28710f['model'][_0x17ec('0x12b')]['on'](_0x17ec('0xbb'),(_0x447cf7,_0x5e422a,_0x46e21b)=>{if(null==_0x46e21b){const {id:_0x3b8be8}=this[_0x17ec('0xec')](_0x5e422a[_0x17ec('0xb7')]),_0x47daed=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x3b8be8);_0x47daed&&_0x47daed[_0x17ec('0x92')](_0x5e422a[_0x17ec('0xb7')]);}}),_0x28710f[_0x17ec('0x3')]['document']['on']('change:data',()=>{const _0x22906d=Array['from'](_0x28710f['model']['document'][_0x17ec('0x9')][_0x17ec('0x141')]())[_0x17ec('0xdb')](_0x440c41=>_0x17ec('0x55')===this['_splitMarkerName'](_0x440c41[_0x17ec('0xb7')])[_0x17ec('0xfa')]);if(0x0===_0x22906d[_0x17ec('0x33')])return;_0x22906d[_0x17ec('0x123')]((_0x28818d,_0x1282a6)=>{const _0x3f7ce9=_0x28818d[_0x17ec('0xd9')][_0x17ec('0x135')],_0x4f37e9=_0x1282a6[_0x17ec('0xd9')][_0x17ec('0x135')];return null===_0x3f7ce9&&null===_0x4f37e9?0x0:null===_0x3f7ce9&&null!==_0x4f37e9?-0x1:null!==_0x3f7ce9&&null===_0x4f37e9?0x1:_0x3f7ce9['start']['isBefore'](_0x4f37e9[_0x17ec('0xab')])?-0x1:0x1;});const _0x383d75=new Set(),_0xb4e117=new Set();for(const {name:_0xedc651,data:_0x46fde0}of _0x22906d){const {id:_0x149e13}=this['_splitMarkerName'](_0xedc651);if(null===_0x46fde0['oldRange']){const _0x4783ef=this[_0x17ec('0x2a')](_0xedc651);_0xb4e117[_0x17ec('0x109')](_0x4783ef);}else{const _0x4ff056=this['_suggestions'][_0x17ec('0xf7')](_0x149e13);null!==_0x46fde0[_0x17ec('0x84')]||_0x4ff056[_0x17ec('0x5a')]?(_0x383d75[_0x17ec('0x109')](_0x4ff056[_0x17ec('0x86')]),_0xb4e117[_0x17ec('0x109')](_0x4ff056)):this[_0x17ec('0xd4')](_0x4ff056);}}_0xb4e117[_0x17ec('0x26')]>0x0&&this[_0x17ec('0x71')](_0xb4e117);for(const _0x272f87 of _0x383d75)this[_0x17ec('0x3c')](_0x17ec('0xd7'),_0x272f87);}),_0x28710f['model']['on']('applyOperation',(_0xe6004a,_0xd398a3)=>{const _0x1f1062=_0xd398a3[0x0];if(!this[_0x17ec('0xc4')][_0x17ec('0x26')])return;if(!_0x1f1062[_0x17ec('0xc7')])return;if(_0x1f1062['batch'][_0x17ec('0x13')]||!_0x1f1062[_0x17ec('0x4a')][_0x17ec('0xfe')])return;let _0x3e3602,_0x229ba9;switch(_0x1f1062[_0x17ec('0x119')]){case'insert':_0x3e3602=_0x28710f[_0x17ec('0x3')][_0x17ec('0xad')](_0x1f1062[_0x17ec('0x2d')]),_0x229ba9=_0x3e3602[_0x17ec('0x116')](_0x1f1062[_0x17ec('0x1e')]);break;case'split':_0x3e3602=_0x28710f[_0x17ec('0x3')][_0x17ec('0xad')](_0x1f1062[_0x17ec('0x57')]),_0x229ba9=_0x28710f[_0x17ec('0x3')]['createPositionAt'](_0x1f1062[_0x17ec('0x93')]);break;case'move':_0x3e3602=_0x28710f['model'][_0x17ec('0xad')](_0x1f1062[_0x17ec('0xa5')]),_0x229ba9=_0x3e3602[_0x17ec('0x116')](_0x1f1062[_0x17ec('0x1e')]);break;default:return;}const _0x5d36f7=_0x28710f[_0x17ec('0x3')][_0x17ec('0xd8')](_0x3e3602,_0x229ba9);_0x28710f[_0x17ec('0x3')][_0x17ec('0x13d')](()=>{for(const {suggestion:_0x1978cf,meta:_0x3d9f9b}of this[_0x17ec('0x58')](_0x5d36f7)){if(_0x1978cf[_0x17ec('0xd')])continue;if(_0x17ec('0x91')==_0x1978cf[_0x17ec('0x119')])continue;const _0x38280b=_0x1978cf[_0x17ec('0xd9')]&&_0x1978cf['data']['multipleBlocks'];(_0x17ec('0x34')!=_0x1978cf[_0x17ec('0x119')]||_0x17ec('0xc1')==_0x1f1062['type']&&!_0x38280b)&&(_0x3d9f9b[_0x17ec('0x46')]||_0x17ec('0x2e')==_0x1978cf[_0x17ec('0x119')]&&_0x3d9f9b[_0x17ec('0xca')]||_0x1978cf[_0x17ec('0x96')]()[_0x17ec('0x23')](_0x5d36f7)&&this[_0x17ec('0xee')](_0x1978cf,_0x3e3602,_0x229ba9));}});},{'priority':_0x17ec('0x87')}),_0x28710f[_0x17ec('0x3')]['on']('deleteContent',(_0x34e060,_0xa88f24)=>{const _0xe1c912=_0xa88f24[0x0],_0x34737c=_0xa88f24[0x1];if(_0x34737c&&_0x34737c[_0x17ec('0x13a')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x17ec('0xff')][_0x17ec('0xfb')])return;if(_0xe1c912[_0x17ec('0x65')])return;const _0x5b2abc=_0x28710f['model'][_0x17ec('0x7')],{start:_0x1d8aa4,end:_0x120049}=_0xe1c912['getFirstRange'](),_0x356e5f=_0x1d8aa4[_0x17ec('0x12d')]&&_0x5b2abc[_0x17ec('0x8b')](_0x1d8aa4[_0x17ec('0x12d')])?null:_0x5b2abc[_0x17ec('0x73')](_0x1d8aa4,'forward'),_0x2bed12=_0x120049[_0x17ec('0xde')]&&_0x5b2abc['isLimit'](_0x120049[_0x17ec('0xde')])?null:_0x5b2abc[_0x17ec('0x73')](_0x120049,'backward'),_0x5c0fdc=_0x28710f[_0x17ec('0x3')][_0x17ec('0xd8')](_0x356e5f?_0x356e5f[_0x17ec('0xab')]:_0x1d8aa4,_0x2bed12?_0x2bed12[_0x17ec('0xe0')]:_0x120049);_0x28710f[_0x17ec('0x3')][_0x17ec('0x13d')](_0xe31352=>{this['markDeletion'](_0x5c0fdc);const _0x4f374f=_0x28710f[_0x17ec('0x3')][_0x17ec('0x7')][_0x17ec('0x73')](_0x5c0fdc[_0x17ec('0xab')]);_0xe1c912['is']('documentSelection')?_0xe31352[_0x17ec('0x3d')](_0x4f374f):_0xe1c912[_0x17ec('0x128')](_0x4f374f);}),_0x34e060[_0x17ec('0x10c')]();},{'priority':_0x2f4fde[_0x17ec('0xf0')]+0xa}),_0x28710f[_0x17ec('0x3')]['on'](_0x17ec('0x7d'),(_0x3c2cdc,_0x47222a)=>{const _0x5539bb=_0x47222a[_0x47222a['length']-0x1];_0x5539bb&&_0x5539bb['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this[_0x17ec('0xff')]['value']&&(_0x28710f[_0x17ec('0x3')][_0x17ec('0x13d')](()=>{let _0x169026=_0x28710f[_0x17ec('0x3')][_0x17ec('0x7d')](_0x47222a[0x0],_0x47222a[0x1],_0x47222a[0x2],{'forceDefaultExecution':!0x0});if(!_0x169026)return;_0x3c2cdc[_0x17ec('0x2f')]=_0x169026[_0x17ec('0x5f')]();const _0x45a867=_0x169026[_0x17ec('0xe0')][_0x17ec('0xde')],_0x2fac78=_0x28710f['model']['schema'];_0x45a867&&_0x2fac78[_0x17ec('0x61')](_0x45a867)&&!_0x2fac78[_0x17ec('0x67')](_0x45a867)&&(_0x169026=_0x28710f[_0x17ec('0x3')][_0x17ec('0xd8')](_0x169026['start'],_0x28710f[_0x17ec('0x3')][_0x17ec('0xad')](_0x45a867,_0x17ec('0xe0')))),this[_0x17ec('0x112')](_0x169026);}),_0x3c2cdc[_0x17ec('0x10c')]());},{'priority':_0x17ec('0xd6')}),this['editor'][_0x17ec('0x117')][_0x17ec('0x109')]('trackChanges',this[_0x17ec('0xff')]),this['enableCommand'](_0x17ec('0x64'));const _0x1bd62a=new _0x453538(_0x28710f,this[_0x17ec('0xc4')]);_0x28710f[_0x17ec('0x117')]['add'](_0x17ec('0x13b'),_0x1bd62a),this['enableCommand'](_0x17ec('0x13b'));const _0x24381a=new _0x3bd816(_0x28710f,this[_0x17ec('0xc4')]);_0x28710f[_0x17ec('0x117')][_0x17ec('0x109')](_0x17ec('0x51'),_0x24381a),this[_0x17ec('0x7b')](_0x17ec('0x51')),_0x28710f[_0x17ec('0x117')][_0x17ec('0x109')](_0x17ec('0x9f'),new _0x573948(_0x28710f,_0x1bd62a,this['_suggestions'])),this[_0x17ec('0x7b')]('acceptAllSuggestions'),_0x28710f['commands'][_0x17ec('0x109')](_0x17ec('0xbc'),new _0x573948(_0x28710f,_0x24381a,this[_0x17ec('0xc4')])),this['enableCommand'](_0x17ec('0xbc')),_0x28710f['commands'][_0x17ec('0x109')]('acceptSelectedSuggestions',new _0x5cc8f8(_0x28710f,_0x1bd62a,this[_0x17ec('0xc4')])),this['enableCommand'](_0x17ec('0x35')),_0x28710f[_0x17ec('0x117')][_0x17ec('0x109')](_0x17ec('0xac'),new _0x5cc8f8(_0x28710f,_0x24381a,this[_0x17ec('0xc4')])),this['enableCommand'](_0x17ec('0xac'));const _0x508877=_0x28710f['plugins']['get'](_0x17ec('0x88'));this['listenTo'](_0x508877,_0x17ec('0xaf'),(_0x5c96f1,{threadId:_0x1b1e9b})=>{const _0x1fe0f2=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x1b1e9b);_0x1fe0f2&&_0x1fe0f2['commentThread']&&0x1===_0x1fe0f2[_0x17ec('0x97')][_0x17ec('0x33')]&&this[_0x17ec('0x104')](_0x1b1e9b,{'hasComments':!0x0});},{'priority':_0x17ec('0xe6')}),this[_0x17ec('0x8c')](_0x508877,_0x17ec('0x6b'),(_0x1b8bcf,{threadId:_0x1fa24b})=>{const _0x17b049=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x1fa24b);_0x17b049&&_0x17b049['commentThread']&&!_0x17b049[_0x17ec('0x97')][_0x17ec('0x33')]&&this[_0x17ec('0x104')](_0x1fa24b,{'hasComments':!0x1});},{'priority':_0x17ec('0xe6')});}set[_0x17ec('0x6')](_0x1ae810){if(this['_adapter'])throw new _0x2a3dc7(_0x17ec('0xb1'),this);this[_0x17ec('0x133')]=_0x1ae810;}get['adapter'](){return this[_0x17ec('0x133')];}['getSuggestions']({skipNotAttached:_0x10555c=!0x1,toJSON:_0x7aafa2=!0x1}={}){const _0x4ceaf1=[];for(const _0x154b95 of this[_0x17ec('0xc4')][_0x17ec('0xeb')]())_0x10555c&&!_0x154b95[_0x17ec('0x5a')]||_0x4ceaf1['push'](_0x154b95);return _0x7aafa2?_0x4ceaf1[_0x17ec('0x10')](_0x372e7c=>_0x372e7c[_0x17ec('0x22')]()):_0x4ceaf1;}['getSuggestion'](_0x1be364){const _0xd94140=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x1be364);if(!_0xd94140)throw new _0x2a3dc7('track-changes-suggestion-not-found',this);return _0xd94140;}[_0x17ec('0x136')](_0x519120){return this[_0x17ec('0xc4')][_0x17ec('0x126')](_0x519120);}[_0x17ec('0xe1')](_0x3eb1bf){const {authorId:_0x2ff1c6,id:_0x1edb45,attributes:_0x16abc0}=_0x3eb1bf,[_0x4142ad,_0x3bd492]=_0x3eb1bf[_0x17ec('0x119')][_0x17ec('0xc1')](':'),_0x3a8784=this[_0x17ec('0xc4')]['get'](_0x1edb45)||this['_createSuggestion'](_0x4142ad,_0x3bd492,_0x1edb45,_0x2ff1c6,_0x16abc0);if(this[_0x17ec('0x60')](_0x3a8784),this[_0x17ec('0x10a')](_0x3a8784,_0x4142ad,_0x3bd492||null,_0x2ff1c6),_0x3a8784[_0x17ec('0x49')]=_0x3eb1bf[_0x17ec('0x49')],_0x3a8784[_0x17ec('0x70')]=!0x0,_0x16abc0&&_0x16abc0[_0x17ec('0x40')]){const _0x57915b=_0x16abc0[_0x17ec('0x40')],_0x31eafb=this[_0x17ec('0x2b')](_0x57915b[_0x17ec('0x105')]);_0x3a8784[_0x17ec('0xdc')]=_0x57915b['createdAt'],_0x3a8784[_0x17ec('0x10e')]=_0x31eafb,_0x3a8784[_0x17ec('0x3a')]=!0x0;}else _0x3a8784[_0x17ec('0xdc')]=_0x3eb1bf['createdAt'];switch(_0x3eb1bf[_0x17ec('0xd9')]&&(_0x3a8784['data']=_0x3eb1bf[_0x17ec('0xd9')]),_0x3eb1bf[_0x17ec('0x5d')]&&(_0x3a8784['attributes']=_0x3eb1bf[_0x17ec('0x5d')]),this['_adapter']&&this[_0x17ec('0x133')][_0x17ec('0x28')]||(_0x3a8784['_saved']=!0x0),this[_0x17ec('0xcc')][_0x17ec('0xf7')](_0x3a8784)){case'notReady':this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x3a8784,_0x17ec('0xa7'));break;case _0x17ec('0x4b'):_0x3a8784[_0x17ec('0x5a')]?(this['_refreshSuggestionsChain'](new Set([_0x3a8784])),this[_0x17ec('0xd3')](new Set([_0x3a8784])),this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x3a8784,_0x17ec('0x69')),this[_0x17ec('0x3c')]('suggestionLoaded',_0x3a8784)):this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x3a8784,_0x17ec('0x74'));}return _0x3a8784;}['acceptSuggestion'](_0x32f343){this[_0x17ec('0x13a')](()=>{this[_0x17ec('0xb3')][_0x17ec('0x3')][_0x17ec('0x13d')](()=>{for(const _0xce8528 of _0x32f343[_0x17ec('0x37')]())_0xce8528[_0x17ec('0x18')]();});});}[_0x17ec('0x51')](_0x1dadd2){this['forceDefaultExecution'](()=>{this[_0x17ec('0xb3')][_0x17ec('0x3')][_0x17ec('0x13d')](()=>{for(const _0x171e7f of _0x1dadd2[_0x17ec('0x37')]())_0x171e7f[_0x17ec('0x47')]();});});}['enableCommand'](_0x215242,_0x220756){const _0x5b86e4=this['editor'][_0x17ec('0x117')][_0x17ec('0xf7')](_0x215242);if(!_0x5b86e4)throw new _0x2a3dc7(_0x17ec('0xa3'),this,{'commandName':_0x215242});this[_0x17ec('0x30')][_0x17ec('0x109')](_0x5b86e4),_0x220756&&_0x5b86e4['on'](_0x17ec('0x20'),(_0x112ecb,_0x1bca2b)=>{this[_0x17ec('0xff')][_0x17ec('0xfb')]&&(this[_0x17ec('0x15')]||_0x1bca2b[_0x17ec('0x33')]>0x0&&_0x1bca2b[_0x1bca2b[_0x17ec('0x33')]-0x1]&&_0x1bca2b[_0x1bca2b[_0x17ec('0x33')]-0x1]['forceDefaultExecution']||(_0x112ecb[_0x17ec('0x2f')]=_0x220756((..._0x132b63)=>_0x5b86e4[_0x17ec('0x20')](..._0x132b63,{'forceDefaultExecution':!0x0}),..._0x1bca2b),_0x112ecb[_0x17ec('0x10c')]()));},{'priority':_0x17ec('0xd6')});}[_0x17ec('0x13a')](_0x214596){let _0xf4c19f,_0x492021;const _0x14a297=this[_0x17ec('0x15')];this[_0x17ec('0x15')]=!0x0;try{_0xf4c19f=_0x214596();}catch(_0x553aac){_0x492021=_0x553aac;}return _0x14a297||(this[_0x17ec('0x15')]=!0x1),_0x492021&&_0x2a3dc7[_0x17ec('0x11e')](_0x492021,this),_0xf4c19f;}['markInsertion'](_0x54409f,_0x2e0c24=null,_0x4c6ea8={}){if(_0x54409f[_0x17ec('0x65')])return null;const _0x2afd94=this[_0x17ec('0xb3')][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48'))['me'];for(const {suggestion:_0x5ee505,meta:_0xe9197}of this[_0x17ec('0x58')](_0x54409f,_0x17ec('0x2e')))if(_0xe9197[_0x17ec('0xca')]){if(!_0xe9197[_0x17ec('0xea')]){if(_0xe9197[_0x17ec('0x46')]){if(!this[_0x17ec('0x80')]||!Ot(_0x5ee505,_0x4c6ea8))continue;return _0x5ee505;}if(Ot(_0x5ee505,_0x4c6ea8))return _0x5ee505;this[_0x17ec('0xee')](_0x5ee505,_0x54409f[_0x17ec('0xab')],_0x54409f[_0x17ec('0xe0')]);break;}if(_0x2e0c24==_0x5ee505['subType']&&Ot(_0x5ee505,_0x4c6ea8)){const _0x36aaf7=_0x5ee505[_0x17ec('0x96')]();return _0x36aaf7[_0x17ec('0xab')][_0x17ec('0x6d')](_0x54409f[_0x17ec('0xe0')])?this[_0x17ec('0x76')](_0x5ee505,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x54409f[_0x17ec('0xab')],_0x36aaf7[_0x17ec('0xe0')])):this[_0x17ec('0x76')](_0x5ee505,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x36aaf7[_0x17ec('0xab')],_0x54409f[_0x17ec('0xe0')])),_0x5ee505;}}const _0x3a8cff=_0x30e77c(),_0x299da7=_0x2afd94['id'],_0x26376e=_0x2e0c24?_0x17ec('0xe')+_0x2e0c24:_0x17ec('0x2e'),_0x1828c1=this[_0x17ec('0x113')]({'id':_0x3a8cff,'type':_0x26376e,'createdAt':new Date(),'authorId':_0x299da7,'attributes':_0x4c6ea8});return this['_addSuggestionMarker'](_0x26376e,_0x3a8cff,_0x299da7,_0x54409f),_0x1828c1;}[_0x17ec('0x3f')](_0x1f730d,_0x242760=_0x17ec('0x7e'),_0x15f8c7={}){const _0x576db2=this['editor'][_0x17ec('0x134')]['get'](_0x17ec('0x48'))['me'],_0x116e1c=this[_0x17ec('0x5')]['getSuggestionCallback']('insertion',_0x242760,_0x17ec('0x8f'));for(const _0x233bca of this[_0x17ec('0x8e')]())if(_0x233bca[_0x17ec('0x10e')]['id']==_0x576db2['id']&&_0x17ec('0x2e')==_0x233bca[_0x17ec('0x119')]&&_0x233bca[_0x17ec('0x111')]==_0x242760&&Ot(_0x233bca,_0x15f8c7)&&(_0x116e1c(_0x233bca[_0x17ec('0x8a')](),_0x1f730d)||_0x116e1c(_0x1f730d,_0x233bca[_0x17ec('0x8a')]()))){for(const _0x49ecc8 of _0x1f730d)_0x233bca[_0x17ec('0x143')](_0x49ecc8);return _0x233bca;}for(const {suggestion:_0x188b22,meta:_0x44c860}of this['_findSuggestions'](_0x1f730d,_0x17ec('0x2e'))){if(!_0x44c860[_0x17ec('0xca')])continue;if(!this[_0x17ec('0x80')]&&_0x44c860[_0x17ec('0x46')])continue;if(!Ot(_0x188b22,_0x15f8c7))continue;let _0x277179=!0x0;for(const _0x2bb8f2 of _0x188b22[_0x17ec('0x8a')]())for(const _0x3c3230 of _0x1f730d)if(!_0x2bb8f2[_0x17ec('0x23')](_0x3c3230)){_0x277179=!0x1;break;}if(_0x277179)return _0x188b22;}const _0x155599=_0x30e77c(),_0x1ea045=_0x576db2['id'],_0x49b003=_0x17ec('0xe')+_0x242760,_0x45647d=this[_0x17ec('0x113')]({'id':_0x155599,'type':_0x49b003,'createdAt':new Date(),'authorId':_0x1ea045,'attributes':_0x15f8c7});for(const _0x5546b5 of _0x1f730d)this['_addSuggestionMarker'](_0x49b003,_0x155599,_0x1ea045,_0x5546b5,_0x3509b3[_0x17ec('0xda')]());return _0x45647d;}[_0x17ec('0x82')](_0x5c983a,_0x4bf390,_0x213e8e=null,_0x92910b={}){if(_0x213e8e=_0x213e8e||Nt(_0x4bf390),_0x5c983a['isCollapsed'])return null;if(_0x17ec('0x129')===this[_0x17ec('0x7f')]){const _0x1e7d90=this[_0x17ec('0x5')]['getSuggestionCallback']('formatInline',_0x213e8e,'accept');return this[_0x17ec('0x13a')](()=>_0x1e7d90([_0x5c983a],_0x4bf390,_0x92910b)),null;}const _0x427ee6=this[_0x17ec('0xb3')][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48'))['me'],_0x2d779f=[];if('always'!==this[_0x17ec('0x7f')])for(const {suggestion:_0x4ceb35,meta:_0x41269c}of this[_0x17ec('0x58')](_0x5c983a,_0x17ec('0x2e')))_0x41269c[_0x17ec('0xca')]&&!_0x41269c[_0x17ec('0xb2')]&&_0x2d779f[_0x17ec('0xb6')](..._0x4ceb35[_0x17ec('0x8a')]());const _0x58fdf5=function(_0x4fa149,_0x4ded9c){const _0x6ff0d7=[];for(const _0x1b5648 of _0x4ded9c){const _0xb4bc49=_0x4fa149[_0x17ec('0x12f')](_0x1b5648);_0xb4bc49&&_0x6ff0d7['push'](_0xb4bc49);}return _0x6ff0d7;}(_0x5c983a,_0x2d779f),_0x254959=function(_0x4b1968,_0x3ec9bd){const _0x51a0af=[_0x4b1968];for(const _0x5ec39a of _0x3ec9bd){let _0x47e79c=0x0;for(;_0x47e79c<_0x51a0af[_0x17ec('0x33')];){const _0x268e1b=_0x51a0af[_0x47e79c][_0x17ec('0x16')](_0x5ec39a);_0x51a0af[_0x17ec('0xf9')](_0x47e79c,0x1,..._0x268e1b),_0x47e79c+=_0x268e1b['length'];}}return _0x51a0af;}(_0x5c983a,_0x2d779f);_0x58fdf5['length']&&this[_0x17ec('0x99')][_0x17ec('0x13d')](()=>{for(const _0x4c044b of _0x58fdf5){const _0x1f29fc=this['_suggestionFactory'][_0x17ec('0xb5')](_0x17ec('0x91'),_0x213e8e,_0x17ec('0x18'));this[_0x17ec('0x13a')](()=>_0x1f29fc([_0x4c044b],_0x4bf390,_0x92910b));}});for(const _0x65d3f0 of _0x254959){let _0x450192=null,_0x4abd14=_0x65d3f0[_0x17ec('0xab')],_0x37716b=_0x65d3f0['end'];for(const {suggestion:_0x26033f,meta:_0x4117d9}of this[_0x17ec('0x58')](_0x65d3f0,'formatInline')){if(!_0x4117d9[_0x17ec('0xca')])continue;if(_0x26033f[_0x17ec('0x111')]!=_0x213e8e)continue;if(!Ot(_0x26033f,_0x92910b))continue;const _0x17f5a7=_0x26033f[_0x17ec('0x96')]();if(_0x17f5a7['containsRange'](_0x65d3f0,!0x0))return null;_0x4abd14=_0x4abd14[_0x17ec('0xdd')](_0x17f5a7['start'])?_0x4abd14:_0x17f5a7[_0x17ec('0xab')],_0x37716b=_0x37716b[_0x17ec('0x9b')](_0x17f5a7[_0x17ec('0xe0')])?_0x37716b:_0x17f5a7[_0x17ec('0xe0')],_0x450192?_0x17f5a7[_0x17ec('0xab')][_0x17ec('0xdd')](_0x450192[_0x17ec('0x96')]()[_0x17ec('0xab')])?(_0x450192[_0x17ec('0x12e')](),_0x450192=_0x26033f):_0x26033f[_0x17ec('0x12e')]():_0x450192=_0x26033f;}const _0x3bcb53=this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x4abd14,_0x37716b);if(_0x450192)this[_0x17ec('0x76')](_0x450192,_0x3bcb53);else{const _0x14b7cb=_0x30e77c(),_0x275aaf=_0x427ee6['id'];this[_0x17ec('0x113')]({'id':_0x14b7cb,'type':'formatInline:'+_0x213e8e,'data':_0x4bf390,'createdAt':new Date(),'authorId':_0x275aaf,'attributes':_0x92910b}),this[_0x17ec('0x12')](_0x17ec('0xe2')+_0x213e8e,_0x14b7cb,_0x275aaf,_0x3bcb53);}}return null;}[_0x17ec('0x118')](_0x456aba,_0x5916e1,_0x50c5ec=[],_0x336319=null,_0x3b6f6f={}){_0x5916e1[_0x17ec('0xa2')]||(_0x5916e1[_0x17ec('0xa2')]=_0x5916e1['commandName']),_0x5916e1[_0x17ec('0x1b')]=_0x456aba['is'](_0x17ec('0x25')),_0x336319=_0x336319||Nt(_0x5916e1);const _0x445389=_0x50c5ec[_0x17ec('0x10')](_0x316d07=>jt(_0x316d07,this[_0x17ec('0x99')])),_0x205dae=_0x456aba['is'](_0x17ec('0x25'))?_0x456aba:jt(_0x456aba,this[_0x17ec('0x99')]);if('never'===this[_0x17ec('0x7f')]){const _0x3188b0=this['_suggestionFactory'][_0x17ec('0xb5')](_0x17ec('0x34'),_0x336319,_0x17ec('0x18'));return this[_0x17ec('0x13a')](()=>_0x3188b0([_0x205dae],_0x5916e1,_0x3b6f6f)),null;}_0x445389[_0x17ec('0xb6')](_0x205dae);let _0xb5eca=!0x0;for(const _0x525373 of _0x445389)if(!this[_0x17ec('0x36')](_0x525373)){_0xb5eca=!0x1;break;}if(_0xb5eca&&_0x17ec('0x120')!==this[_0x17ec('0x7f')]){const _0x1cc2ca=this[_0x17ec('0x5')][_0x17ec('0xb5')](_0x17ec('0x34'),_0x336319,_0x17ec('0x18'));return this[_0x17ec('0x13a')](()=>_0x1cc2ca([_0x205dae],_0x5916e1,_0x3b6f6f)),null;}let _0x505945=null,_0x52456e=_0x205dae[_0x17ec('0xab')],_0xf5d5a4=_0x205dae[_0x17ec('0xe0')];for(const {suggestion:_0x2b6416,meta:_0x3d06c5}of this[_0x17ec('0x58')](_0x205dae,_0x17ec('0x34'))){if(!_0x3d06c5[_0x17ec('0xca')])continue;if(_0x3d06c5[_0x17ec('0xea')]||_0x3d06c5[_0x17ec('0x46')]||_0x3d06c5[_0x17ec('0xb2')])continue;if(_0x2b6416[_0x17ec('0xd9')]['formatGroupId']!=_0x5916e1[_0x17ec('0xa2')])continue;if(!Ot(_0x2b6416,_0x3b6f6f))continue;const _0x446b86=_0x2b6416[_0x17ec('0x96')]();if(_0x2b6416[_0x17ec('0x111')]==_0x336319){if(_0x446b86['containsRange'](_0x205dae,!0x0))return null;_0x52456e=_0x52456e['isBefore'](_0x446b86['start'])?_0x52456e:_0x446b86[_0x17ec('0xab')],_0xf5d5a4=_0xf5d5a4['isAfter'](_0x446b86[_0x17ec('0xe0')])?_0xf5d5a4:_0x446b86[_0x17ec('0xe0')],_0x505945?_0x446b86['start']['isBefore'](_0x505945[_0x17ec('0x96')]()['start'])?(_0x505945['removeMarkers'](),_0x505945=_0x2b6416):_0x2b6416[_0x17ec('0x12e')]():_0x505945=_0x2b6416;}else{const _0x15a9ae=_0x205dae[_0x17ec('0x12f')](_0x446b86);this[_0x17ec('0x4')](_0x2b6416,_0x15a9ae);}}const _0x31001d=this['editor']['plugins'][_0x17ec('0xf7')](_0x17ec('0x48'))['me'],_0x3e4284=_0x30e77c(),_0x10059a=_0x31001d['id'];if(_0x505945)return this[_0x17ec('0x76')](_0x505945,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x52456e,_0xf5d5a4)),_0x505945;{const _0x2a7871=this[_0x17ec('0x113')]({'id':_0x3e4284,'type':_0x17ec('0xf3')+_0x336319,'data':_0x5916e1,'createdAt':new Date(),'authorId':_0x10059a,'attributes':_0x3b6f6f});return this['_addSuggestionMarker'](_0x17ec('0xf3')+_0x336319,_0x3e4284,_0x10059a,this['_model'][_0x17ec('0xd8')](_0x52456e,_0xf5d5a4)),_0x2a7871;}}[_0x17ec('0x56')](_0x39259b,_0x3d7ab8,_0x374245=[],_0x5c13a3=null,_0xd8b187={}){_0x3d7ab8['formatGroupId']||(_0x3d7ab8[_0x17ec('0xa2')]=_0x3d7ab8[_0x17ec('0x11c')]);const _0x10cf75=_0x39259b[0x0];_0x3d7ab8['multipleBlocks']=_0x10cf75['is']('range'),_0x5c13a3=_0x5c13a3||Nt(_0x3d7ab8);const _0x3ea5d2=_0x374245['map'](_0x12cf35=>jt(_0x12cf35,this[_0x17ec('0x99')])),_0x255335=_0x10cf75['is']('range')?_0x39259b:_0x39259b['map'](_0x5667b3=>jt(_0x5667b3,this[_0x17ec('0x99')]));if('never'===this[_0x17ec('0x7f')]){const _0x5e6d9f=this[_0x17ec('0x5')]['getSuggestionCallback'](_0x17ec('0x34'),_0x5c13a3,'accept');return this[_0x17ec('0x13a')](()=>_0x5e6d9f(_0x255335,_0x3d7ab8,_0xd8b187)),null;}_0x3ea5d2[_0x17ec('0xb6')](..._0x255335);let _0x135631=!0x0;for(const _0x308d01 of _0x3ea5d2)if(!this[_0x17ec('0x36')](_0x308d01)){_0x135631=!0x1;break;}if(_0x135631&&_0x17ec('0x120')!==this[_0x17ec('0x7f')]){const _0x69f6ad=this['_suggestionFactory'][_0x17ec('0xb5')]('formatBlock',_0x5c13a3,_0x17ec('0x18'));return this[_0x17ec('0x13a')](()=>_0x69f6ad(_0x255335,_0x3d7ab8,_0xd8b187)),null;}const _0x227cc0=this[_0x17ec('0xb3')][_0x17ec('0x134')]['get']('Users')['me'];for(const _0x5d1cee of this[_0x17ec('0x8e')]()){if(_0x5d1cee[_0x17ec('0x10e')]['id']!=_0x227cc0['id'])continue;if('formatBlock'!=_0x5d1cee[_0x17ec('0x119')]||_0x5d1cee[_0x17ec('0xd9')][_0x17ec('0xa2')]!=_0x3d7ab8[_0x17ec('0xa2')])continue;if(!Ot(_0x5d1cee,_0xd8b187))continue;const _0x4290fc=_0x5d1cee[_0x17ec('0x111')]==_0x5c13a3;for(let _0xa5074b=0x0;_0xa5074b<_0x255335[_0x17ec('0x33')];_0xa5074b++){const _0x528794=_0x255335[_0xa5074b];for(const _0x569fc3 of _0x5d1cee['getMarkers']()){const _0x582053=_0x569fc3[_0x17ec('0x11f')]();if(_0x528794[_0x17ec('0x6d')](_0x582053)){_0x4290fc?(_0x255335['splice'](_0xa5074b,0x1),_0xa5074b--):_0x5d1cee[_0x17ec('0x89')](_0x569fc3[_0x17ec('0xb7')]);break;}}}}if(0x0==_0x255335[_0x17ec('0x33')])return null;const _0x52da2f=this[_0x17ec('0x5')][_0x17ec('0xb5')]('formatBlock',_0x5c13a3,_0x17ec('0x8f'));for(const _0x5d4c53 of this[_0x17ec('0x8e')]())if(_0x5d4c53[_0x17ec('0x10e')]['id']==_0x227cc0['id']&&_0x17ec('0x34')==_0x5d4c53[_0x17ec('0x119')]&&_0x5d4c53[_0x17ec('0xd9')]['formatGroupId']==_0x3d7ab8[_0x17ec('0xa2')]&&_0x5d4c53['subType']==_0x5c13a3&&Ot(_0x5d4c53,_0xd8b187)&&(_0x52da2f(_0x5d4c53[_0x17ec('0x8a')](),_0x255335)||_0x52da2f(_0x255335,_0x5d4c53[_0x17ec('0x8a')]()))){for(const _0x438387 of _0x255335)_0x5d4c53[_0x17ec('0x143')](_0x438387);return _0x5d4c53;}const _0x52fb60=_0x30e77c(),_0xccd633=_0x227cc0['id'],_0x45fb99='formatBlock:'+_0x5c13a3,_0x5e8840=this[_0x17ec('0x113')]({'id':_0x52fb60,'type':_0x45fb99,'data':_0x3d7ab8,'createdAt':new Date(),'authorId':_0xccd633,'attributes':_0xd8b187});for(const _0x3cf89f of _0x255335)this[_0x17ec('0x12')](_0x45fb99,_0x52fb60,_0xccd633,_0x3cf89f,_0x3509b3['getMultiRangeId']());return _0x5e8840;}[_0x17ec('0x13f')](_0x10e15f,_0x2752f8=null,_0x113030={}){if(_0x10e15f[_0x17ec('0x65')])return null;const _0x13e8b5=this[_0x17ec('0xb3')][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48'))['me'],_0x316333=new _0x5b7c0c(_0x10e15f['start'],_0x10e15f[_0x17ec('0xe0')]);for(const {suggestion:_0x443c6b,meta:_0x3a26f6}of this[_0x17ec('0x58')](_0x316333,_0x17ec('0x2e')))if(_0x3a26f6[_0x17ec('0xca')]&&!_0x3a26f6[_0x17ec('0xea')]){if(_0x443c6b['isMultiRange']){const _0x4680b3=_0x443c6b[_0x17ec('0x8a')]()[_0x17ec('0xdb')](_0x55eb76=>_0x17ec('0x72')!=_0x55eb76['root'][_0x17ec('0x39')]);_0x4680b3[_0x17ec('0x59')](_0x195043=>_0x316333[_0x17ec('0x23')](_0x195043,!0x0))&&_0x443c6b[_0x17ec('0x47')]();if(_0x4680b3[_0x17ec('0x3b')](_0x1ff31b=>_0x1ff31b[_0x17ec('0x23')](_0x316333,!0x0))){const _0x1fca0f=this[_0x17ec('0x5')][_0x17ec('0xb5')]('deletion',_0x2752f8,'accept');return this[_0x17ec('0x13a')](()=>_0x1fca0f([_0x316333],null,_0x113030)),null;}}else{const _0x1fc6f7=_0x316333['getIntersection'](_0x443c6b[_0x17ec('0x96')]());null!==_0x1fc6f7&&_0x443c6b[_0x17ec('0x6a')]([_0x1fc6f7],null,_0x113030);}}if(_0x316333['detach'](),_0x316333[_0x17ec('0x65')]||_0x17ec('0x72')==_0x316333[_0x17ec('0x52')][_0x17ec('0x39')])return null;let _0x5787a1=null,_0x2369b8=_0x316333[_0x17ec('0xab')],_0x4dfbc0=_0x316333[_0x17ec('0xe0')];const _0x5ad5b5=this[_0x17ec('0x58')](_0x316333,_0x17ec('0x127'));for(const {suggestion:_0x19672e,meta:_0x1f312e}of _0x5ad5b5){const _0x4e5591=this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x2369b8,_0x4dfbc0);if(_0x1f312e[_0x17ec('0xca')]&&(this[_0x17ec('0x80')]||!_0x1f312e[_0x17ec('0x46')]&&!_0x1f312e[_0x17ec('0xb2')])){if(_0x19672e['isMultiRange']){if(!Ot(_0x19672e,_0x113030))continue;let _0x1ed4da=!0x0;for(const _0x530342 of _0x19672e[_0x17ec('0x8a')]()){if(_0x530342[_0x17ec('0x23')](_0x4e5591,!0x0))return _0x19672e;_0x4e5591[_0x17ec('0x23')](_0x530342)||(_0x1ed4da=!0x1);}_0x1ed4da&&_0x19672e['discard']();}else{const _0x4637ca=_0x19672e[_0x17ec('0x96')]();if(_0x4637ca[_0x17ec('0x23')](_0x4e5591,!0x0))return _0x19672e;if(!Ot(_0x19672e,_0x113030)){_0x4e5591['containsRange'](_0x4637ca)?_0x19672e['removeMarkers']():_0x4637ca[_0x17ec('0x29')](_0x2369b8)?_0x2369b8=_0x4637ca['end']:_0x4637ca['containsPosition'](_0x4dfbc0)&&(_0x4dfbc0=_0x4637ca[_0x17ec('0xab')]);continue;}_0x2369b8=_0x2369b8['isBefore'](_0x4637ca[_0x17ec('0xab')])?_0x2369b8:_0x4637ca[_0x17ec('0xab')],_0x4dfbc0=_0x4dfbc0[_0x17ec('0x9b')](_0x4637ca[_0x17ec('0xe0')])?_0x4dfbc0:_0x4637ca[_0x17ec('0xe0')],_0x113030=Object[_0x17ec('0x146')]({},_0x19672e[_0x17ec('0x5d')]),_0x5787a1?_0x4637ca['start'][_0x17ec('0xdd')](_0x5787a1[_0x17ec('0x96')]()['start'])?(_0x5787a1[_0x17ec('0x12e')](),_0x5787a1=_0x19672e):_0x19672e[_0x17ec('0x12e')]():_0x5787a1=_0x19672e;}}}if(_0x5787a1)return this[_0x17ec('0x76')](_0x5787a1,this['_model'][_0x17ec('0xd8')](_0x2369b8,_0x4dfbc0)),_0x5787a1;{const _0x32b594=_0x30e77c(),_0x31fe30=this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x2369b8,_0x4dfbc0),_0x55dc8e=_0x13e8b5['id'],_0x533569=_0x2752f8?_0x17ec('0xdf')+_0x2752f8:_0x17ec('0x127'),_0x2edc77=this[_0x17ec('0x113')]({'id':_0x32b594,'type':_0x533569,'createdAt':new Date(),'authorId':_0x55dc8e,'attributes':_0x113030});return this[_0x17ec('0x12')](_0x533569,_0x32b594,_0x55dc8e,_0x31fe30),_0x2edc77;}}[_0x17ec('0xcf')](_0x5c0361,_0x2d32f8=_0x17ec('0x7e'),_0x503464={}){const _0x6a1b77=this[_0x17ec('0xb3')][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48'))['me'],_0x4eecc1=_0x5c0361[_0x17ec('0x10')](_0x2f2bdc=>new _0x5b7c0c(_0x2f2bdc['start'],_0x2f2bdc[_0x17ec('0xe0')])),_0x116ff4=new Set();for(const {suggestion:_0x66f2db,meta:_0x18c74c}of this[_0x17ec('0x58')](_0x4eecc1,'insertion'))_0x18c74c[_0x17ec('0xca')]&&!_0x18c74c[_0x17ec('0xea')]&&_0x116ff4[_0x17ec('0x109')](_0x66f2db);for(const _0x377d78 of _0x116ff4)if(_0x377d78[_0x17ec('0xd')]){const _0x2298ad=_0x377d78[_0x17ec('0x8a')]();(!_0x377d78['attributes']||!_0x377d78[_0x17ec('0x5d')][_0x17ec('0xb8')])&&(_0x2298ad['every'](_0x3c799e=>_0x4eecc1[_0x17ec('0x3b')](_0x3dac4f=>_0x3dac4f[_0x17ec('0x23')](_0x3c799e,!0x0)))&&_0x377d78[_0x17ec('0x47')]());if(_0x4eecc1[_0x17ec('0x59')](_0x7f6ad1=>_0x2298ad[_0x17ec('0x3b')](_0x55dcdd=>_0x55dcdd[_0x17ec('0x23')](_0x7f6ad1,!0x0)))){const _0x1c55b4=this[_0x17ec('0x5')][_0x17ec('0xb5')]('deletion',_0x2d32f8,_0x17ec('0x18'));return this[_0x17ec('0x13a')](()=>_0x1c55b4(_0x5c0361,null,_0x503464)),null;}}else{const _0x2c8490=_0x377d78['getFirstRange']();_0x4eecc1[_0x17ec('0x3b')](_0x3d8146=>_0x3d8146[_0x17ec('0x23')](_0x2c8490,!0x0))&&_0x377d78[_0x17ec('0x47')]();if(_0x4eecc1['every'](_0x541a8a=>_0x2c8490['containsRange'](_0x541a8a,!0x0))){const _0x6f4ea5=this['_suggestionFactory'][_0x17ec('0xb5')](_0x17ec('0x127'),_0x2d32f8,_0x17ec('0x18'));return this[_0x17ec('0x13a')](()=>_0x6f4ea5(_0x4eecc1,null,_0x503464)),null;}}const _0xbe09ae=this[_0x17ec('0x5')]['getSuggestionCallback'](_0x17ec('0x127'),_0x2d32f8,_0x17ec('0x8f'));let _0x2ee256=null;for(const _0x1176c1 of this[_0x17ec('0x8e')]())if(_0x1176c1[_0x17ec('0x10e')]['id']==_0x6a1b77['id']&&_0x1176c1[_0x17ec('0x5a')]&&_0x17ec('0x127')==_0x1176c1[_0x17ec('0x119')]&&_0x1176c1[_0x17ec('0x111')]==_0x2d32f8&&Ot(_0x1176c1,_0x503464)&&(_0xbe09ae(_0x1176c1[_0x17ec('0x8a')](),_0x4eecc1)||_0xbe09ae(_0x4eecc1,_0x1176c1[_0x17ec('0x8a')]()))){if(_0x2ee256){if(_0x1176c1[_0x17ec('0x97')]&&_0x1176c1[_0x17ec('0x97')][_0x17ec('0x33')])continue;for(const _0x773ef1 of _0x1176c1[_0x17ec('0x8a')]())_0x2ee256[_0x17ec('0xe8')](_0x773ef1)||_0x2ee256[_0x17ec('0x143')](_0x773ef1);_0x1176c1[_0x17ec('0x12e')]();}else{_0x2ee256=_0x1176c1;for(const _0x1ee377 of _0x4eecc1)_0x1176c1['isIntersectingWithRange'](_0x1ee377)||_0x1176c1[_0x17ec('0x143')](_0x1ee377);}}if(_0x2ee256)return _0x2ee256;_0x116ff4[_0x17ec('0x12c')]();for(const {suggestion:_0x41813e,meta:_0x44d835}of this['_findSuggestions'](_0x4eecc1,_0x17ec('0x127')))_0x44d835['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44d835[_0x17ec('0x46')]&&!_0x44d835[_0x17ec('0xb2')])&&Ot(_0x41813e,_0x503464)&&_0x116ff4[_0x17ec('0x109')](_0x41813e);for(const _0x6bf616 of _0x116ff4){const _0x2a7bfa=_0x6bf616[_0x17ec('0x8a')]();if(!_0x503464||!_0x503464[_0x17ec('0xb8')]){if(_0x4eecc1[_0x17ec('0x59')](_0x4456ea=>_0x2a7bfa[_0x17ec('0x3b')](_0x52c480=>_0x52c480[_0x17ec('0x23')](_0x4456ea,!0x0))))return _0x6bf616;}(!_0x6bf616[_0x17ec('0x5d')]||!_0x6bf616[_0x17ec('0x5d')][_0x17ec('0xb8')])&&(_0x2a7bfa['every'](_0x140c05=>_0x4eecc1[_0x17ec('0x3b')](_0x4043e9=>_0x4043e9['containsRange'](_0x140c05,!0x0)))&&_0x6bf616[_0x17ec('0x47')]());}const _0x3d09b2=_0x30e77c(),_0x42c685=_0x6a1b77['id'],_0x12e1fb='deletion:'+_0x2d32f8,_0x55b7a1=this[_0x17ec('0x113')]({'id':_0x3d09b2,'type':_0x12e1fb,'createdAt':new Date(),'authorId':_0x42c685,'attributes':_0x503464});for(const _0x475ff1 of _0x4eecc1)_0x475ff1[_0x17ec('0xf2')](),_0x475ff1[_0x17ec('0x65')]||'$graveyard'==_0x475ff1[_0x17ec('0x52')][_0x17ec('0x39')]||this['_addSuggestionMarker'](_0x12e1fb,_0x3d09b2,_0x42c685,_0x475ff1,_0x3509b3[_0x17ec('0xda')]());return _0x55b7a1;}[_0x17ec('0x76')](_0x568e55,_0x3f214d){const _0x227bf8=_0x568e55[_0x17ec('0x130')]();this[_0x17ec('0x99')][_0x17ec('0x13d')](_0xa1c146=>{_0xa1c146[_0x17ec('0xd1')](_0x227bf8,{'range':_0x3f214d});});}[_0x17ec('0x60')](_0x57c43c){const _0x533551=_0x57c43c['id'],_0x53ef4f=this[_0x17ec('0xb3')]['config']['get'](_0x17ec('0x124'));this['_commentsRepository'][_0x17ec('0x101')](_0x533551)||this['_commentsRepository'][_0x17ec('0x81')]({'channelId':_0x53ef4f,'threadId':_0x533551,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5e7181=this['_commentsRepository']['getCommentThread'](_0x533551);_0x5e7181[_0x17ec('0x2c')](_0x17ec('0x21')),_0x5e7181[_0x17ec('0x21')]=!0x1,_0x57c43c['commentThread']=_0x5e7181;}['_checkSuggestionCorrectness'](_0x23f02c,_0x12c615,_0x42a5a5,_0x37cfe3){if(_0x23f02c['type']!=_0x12c615||_0x23f02c[_0x17ec('0x111')]!=_0x42a5a5||_0x23f02c[_0x17ec('0xc')]['id']!=_0x37cfe3)throw this[_0x17ec('0xb3')][_0x17ec('0xef')](_0x17ec('0x27')),new _0x2a3dc7('track-changes-suggestion-data-mismatch',this);}[_0x17ec('0x4')](_0x10df6b,_0x31467b){const _0x296bee=_0x10df6b['getFirstRange']();if(_0x31467b['isEqual'](_0x296bee))_0x10df6b[_0x17ec('0x12e')]();else{if(_0x296bee[_0x17ec('0x23')](_0x31467b)){const _0x255445=this[_0x17ec('0x99')]['createPositionAt'](_0x31467b['start'][_0x17ec('0xde')],'end');this[_0x17ec('0x76')](_0x10df6b,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x296bee[_0x17ec('0xab')],_0x255445));const _0x25999e=_0x30e77c(),_0x5dbfef=_0x10df6b[_0x17ec('0xc')]['id'],_0x280cfe=_0x10df6b[_0x17ec('0x119')]+':'+_0x10df6b[_0x17ec('0x111')];this[_0x17ec('0x113')]({'id':_0x25999e,'type':_0x280cfe,'createdAt':new Date(),'authorId':_0x5dbfef,'data':_0x10df6b['data'],'attributes':_0x10df6b['attributes']});const _0x4d8966=this[_0x17ec('0x99')][_0x17ec('0xad')](_0x31467b[_0x17ec('0xe0')][_0x17ec('0x100')],_0x17ec('0x98')),_0x24dd0d=this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x4d8966,_0x296bee[_0x17ec('0xe0')]);this[_0x17ec('0x12')](_0x280cfe,_0x25999e,_0x5dbfef,_0x24dd0d);}else{if(_0x296bee['containsPosition'](_0x31467b[_0x17ec('0xab')])){const _0x590298=this[_0x17ec('0x99')][_0x17ec('0xad')](_0x31467b['start'][_0x17ec('0xde')],_0x17ec('0xe0'));this['_setSuggestionRange'](_0x10df6b,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x296bee[_0x17ec('0xab')],_0x590298));}else{const _0x28acc8=this[_0x17ec('0x99')]['createPositionAt'](_0x31467b[_0x17ec('0xe0')][_0x17ec('0x100')],_0x17ec('0x98'));this[_0x17ec('0x76')](_0x10df6b,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x28acc8,_0x296bee[_0x17ec('0xe0')]));}}}}[_0x17ec('0x36')](_0x3ce2be){for(const {suggestion:_0x24a45f,meta:_0x5461a8}of this[_0x17ec('0x58')](_0x3ce2be,_0x17ec('0x2e'))){if(!_0x5461a8[_0x17ec('0xca')])continue;const _0x2bd0e=_0x24a45f[_0x17ec('0x8a')]();for(const _0x1f9cbb of _0x2bd0e)if(!_0x3ce2be[_0x17ec('0x16')](_0x1f9cbb)[_0x17ec('0x33')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x494fde){const _0x8a04ac=this['editor'][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48'))[_0x17ec('0x13e')](_0x494fde);if(!_0x8a04ac)throw new _0x2a3dc7(_0x17ec('0x14'),this);return _0x8a04ac;}[_0x17ec('0x2b')](_0x3ddd0c){const _0x4f95bf=this['editor'][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0x48')),_0x4f48fc=_0x478159(_0x17ec('0xf')+_0x3ddd0c),_0xeb6ad8=_0x4f95bf[_0x17ec('0x13e')](_0x4f48fc);return _0xeb6ad8||_0x4f95bf[_0x17ec('0x106')]({'id':_0x4f48fc,'name':_0x3ddd0c});}[_0x17ec('0x11b')](_0x116f9a,_0x52ae21,_0xf423df,_0xe59586,_0x28469c){const _0x2fce5c=this[_0x17ec('0x66')](_0xe59586),_0x1221b3=this[_0x17ec('0x5')]['buildSuggestion'](_0x116f9a,_0x52ae21,_0xf423df,_0x2fce5c,_0x28469c,_0x19b5e7=>this[_0x17ec('0x104')](_0xf423df,{'attributes':_0x19b5e7}));return this[_0x17ec('0x8c')](_0x1221b3,'accept',()=>{this[_0x17ec('0x104')](_0xf423df,{'state':'accepted'});},{'priority':_0x17ec('0xd6')}),this[_0x17ec('0x8c')](_0x1221b3,_0x17ec('0x47'),()=>{this['_updateSuggestionData'](_0xf423df,{'state':_0x17ec('0x8d')});},{'priority':_0x17ec('0xd6')}),this[_0x17ec('0xc4')][_0x17ec('0xa0')](_0xf423df,_0x1221b3),this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x1221b3,_0x17ec('0xe9')),_0x1221b3;}['_splitMarkerName'](_0x2c0c11){const _0x439913=_0x2c0c11[_0x17ec('0xc1')](':');return{'group':_0x439913[0x0],'type':_0x439913[0x1],'subType':_0x439913[_0x17ec('0x33')]>=0x5?_0x439913[0x2]:null,'id':_0x439913['length']<0x5?_0x439913[0x2]:_0x439913[0x3],'authorId':_0x439913[_0x17ec('0x33')]<0x5?_0x439913[0x3]:_0x439913[0x4],'markerCount':0x6==_0x439913[_0x17ec('0x33')]?_0x439913[0x5]:null};}[_0x17ec('0xee')](_0x1cd200,_0xcf720a,_0x36d05a){const _0x90d955=_0x1cd200['getFirstRange'](),_0x9dfc28=_0x90d955['start'],_0x43e5e0=_0x90d955[_0x17ec('0xe0')];this[_0x17ec('0x76')](_0x1cd200,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x9dfc28,_0xcf720a));const _0x35a6ac=_0x30e77c(),_0x4a97a9=_0x1cd200[_0x17ec('0xc')]['id'],_0x485615=_0x1cd200[_0x17ec('0x119')]+(_0x1cd200['subType']?':'+_0x1cd200['subType']:'');this['_setSuggestionData']({'id':_0x35a6ac,'type':_0x485615,'createdAt':new Date(),'authorId':_0x4a97a9,'originalSuggestionId':_0x1cd200['id'],'attributes':_0x1cd200['attributes'],'data':_0x1cd200['data']}),_0x17ec('0x34')==_0x1cd200[_0x17ec('0x119')]&&(_0x36d05a=this[_0x17ec('0x99')][_0x17ec('0xe4')](_0x36d05a['parent'])),this[_0x17ec('0x12')](_0x485615,_0x35a6ac,_0x4a97a9,this[_0x17ec('0x99')][_0x17ec('0xd8')](_0x36d05a,_0x43e5e0));}[_0x17ec('0x58')](_0x4e0e51,_0x4edc8a=null){const _0x1a4665=[],_0x3dc074=this[_0x17ec('0xb3')]['plugins'][_0x17ec('0xf7')](_0x17ec('0x48'))['me'];Array[_0x17ec('0xd5')](_0x4e0e51)||(_0x4e0e51=[_0x4e0e51]);for(const _0x181c44 of this[_0x17ec('0x8e')]()){if(!_0x181c44[_0x17ec('0x5a')])continue;if(_0x4edc8a&&_0x181c44['type']!=_0x4edc8a)continue;let _0xfcc84f=!0x1;for(const _0x557586 of _0x181c44['getRanges']()){for(const _0x652ad0 of _0x4e0e51){const _0x44cb4e=_0x652ad0['start'][_0x17ec('0x6d')](_0x557586[_0x17ec('0xe0')])||_0x652ad0['end'][_0x17ec('0x6d')](_0x557586['start']);if(_0x44cb4e||_0x652ad0[_0x17ec('0x12f')](_0x557586)){const _0x4a0857=_0x652ad0[_0x17ec('0x23')](_0x557586)&&_t(this[_0x17ec('0x99')]['schema'],_0x557586[_0x17ec('0xab')],_0x652ad0),_0x5dc170=_0x557586[_0x17ec('0x23')](_0x652ad0)&&_t(this[_0x17ec('0x99')]['schema'],_0x652ad0['start'],_0x557586);_0x1a4665[_0x17ec('0xb6')]({'suggestion':_0x181c44,'meta':{'isOwn':_0x3dc074==_0x181c44[_0x17ec('0x10e')],'isNextTo':_0x44cb4e,'isInsideObject':_0x4a0857,'containsRangeInObject':_0x5dc170}}),_0xfcc84f=!0x0;break;}}if(_0xfcc84f)break;}}return _0x1a4665;}[_0x17ec('0x12')](_0x586d47,_0x1df0a9,_0x103b9c,_0x3b67c0,_0x477b13){this[_0x17ec('0x99')]['change'](_0x29665c=>{let _0x10915a='suggestion:'+_0x586d47+':'+_0x1df0a9+':'+_0x103b9c;_0x477b13&&(_0x10915a=_0x10915a+':'+_0x477b13),_0x29665c[_0x17ec('0xc9')](_0x10915a,{'range':_0x3b67c0,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x17ec('0xd4')](_0x789a5f){const _0x3590b8=_0x789a5f[_0x17ec('0x8')],_0x2b39f7=_0x789a5f[_0x17ec('0xd2')];_0x789a5f[_0x17ec('0x8')]=null,null!=_0x3590b8&&(_0x3590b8['next']=null),_0x789a5f[_0x17ec('0xd2')]=null,null!=_0x2b39f7&&(_0x2b39f7[_0x17ec('0x8')]=null),_0x17ec('0x69')==this[_0x17ec('0xcc')]['get'](_0x789a5f)&&(this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x789a5f,_0x17ec('0x74')),this[_0x17ec('0x3c')](_0x17ec('0x103'),_0x789a5f,_0x3590b8,_0x2b39f7));}[_0x17ec('0x113')](_0x4faace){const _0x314b89=_0x4faace['id'],_0x3ac3a4=this[_0x17ec('0xe1')](_0x4faace);if(this['_adapter']&&this[_0x17ec('0x133')][_0x17ec('0x28')]){const _0x2598eb=this['editor'][_0x17ec('0x134')][_0x17ec('0xf7')]('PendingActions'),_0x27b50c=_0x3ac3a4[_0x17ec('0xae')],_0x416fc9=_0x3ac3a4[_0x17ec('0x111')]?_0x3ac3a4['type']+':'+_0x3ac3a4['subType']:_0x3ac3a4[_0x17ec('0x119')],_0x479959=this[_0x17ec('0xb3')][_0x17ec('0x94')],_0x561c0d=_0x2598eb[_0x17ec('0x109')](_0x4d4de8(_0x479959,_0x17ec('0x1c'))),_0x49a145={'id':_0x314b89,'type':_0x416fc9,'hasComments':_0x27b50c,'data':_0x4faace[_0x17ec('0xd9')]||null,'originalSuggestionId':_0x4faace['originalSuggestionId']||null,'attributes':_0x3ac3a4[_0x17ec('0x5d')]};this[_0x17ec('0x133')][_0x17ec('0x28')](_0x49a145)[_0x17ec('0x85')](_0x53f451=>{_0x3ac3a4['_saved']=!0x0,_0x2598eb[_0x17ec('0xbd')](_0x561c0d),_0x53f451&&_0x53f451[_0x17ec('0x49')]&&(this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x314b89)[_0x17ec('0x49')]=_0x53f451[_0x17ec('0x49')]);})[_0x17ec('0x42')](_0x47f53a=>{throw _0x5c4f63(_0x17ec('0x7a')),this[_0x17ec('0xb3')][_0x17ec('0x3')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x3ac3a4['discard']();}),_0x3ac3a4[_0x17ec('0xf5')](),this[_0x17ec('0xc4')][_0x17ec('0x108')](_0x3ac3a4['id']),this[_0x17ec('0xcc')][_0x17ec('0x108')](_0x3ac3a4),_0x47f53a;});}return _0x3ac3a4;}['_updateSuggestionData'](_0x18504b,_0x11d9c5){const _0x16bfb1=this[_0x17ec('0xb3')][_0x17ec('0x134')][_0x17ec('0xf7')](_0x17ec('0xb')),_0x3a82ef=this[_0x17ec('0x0')](_0x18504b);if(this[_0x17ec('0x133')]&&this[_0x17ec('0x133')][_0x17ec('0x68')]){if(_0x3a82ef['_saved']){const _0x56de0a=_0x16bfb1[_0x17ec('0x109')](_0x4d4de8(this['editor'][_0x17ec('0x94')],_0x17ec('0x1c')));this[_0x17ec('0x133')][_0x17ec('0x68')](_0x18504b,_0x11d9c5)[_0x17ec('0x85')](()=>{_0x16bfb1[_0x17ec('0xbd')](_0x56de0a);});}else _0x3a82ef['on'](_0x17ec('0x1a'),()=>{this[_0x17ec('0x104')](_0x18504b,_0x11d9c5);});}}[_0x17ec('0x45')](_0x108b99){if(!this['_adapter']||!this[_0x17ec('0x133')][_0x17ec('0x0')])throw new _0x2a3dc7(_0x17ec('0xce'),this);return this[_0x17ec('0x133')][_0x17ec('0x0')](_0x108b99);}[_0x17ec('0x2a')](_0x2b1754){const {id:_0x44d9fa,type:_0x2c16a0,subType:_0x4976e1,authorId:_0x3c453f}=this[_0x17ec('0xec')](_0x2b1754),_0x1f7ea8=this[_0x17ec('0xc4')][_0x17ec('0xf7')](_0x44d9fa)||this[_0x17ec('0x11b')](_0x2c16a0,_0x4976e1,_0x44d9fa,_0x3c453f,{});switch(this[_0x17ec('0x10a')](_0x1f7ea8,_0x2c16a0,_0x4976e1,_0x3c453f),this[_0x17ec('0xcc')][_0x17ec('0xf7')](_0x1f7ea8)){case'notReady':this[_0x17ec('0x45')](_0x44d9fa)[_0x17ec('0x85')](_0x3116ea=>{let _0x482d22=Promise[_0x17ec('0x19')]();_0x3116ea[_0x17ec('0xae')]&&(_0x482d22=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config'][_0x17ec('0xf7')](_0x17ec('0x124')),'threadId':_0x44d9fa})),_0x482d22[_0x17ec('0x85')](()=>{this[_0x17ec('0xe1')](_0x3116ea)[_0x17ec('0xd0')]=!0x0;});}),this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x1f7ea8,_0x17ec('0x4b'));break;case'removed':this[_0x17ec('0x104')](_0x44d9fa,{'state':_0x17ec('0x77')});case'dataReady':this[_0x17ec('0xcc')][_0x17ec('0xa0')](_0x1f7ea8,'ready'),this[_0x17ec('0x3c')](_0x17ec('0x1f'),_0x1f7ea8);break;case'ready':this[_0x17ec('0x3c')]('suggestionChanged',_0x1f7ea8);}return _0x1f7ea8['addMarkerName'](_0x2b1754),_0x1f7ea8;}[_0x17ec('0x71')](_0x3de4c0){const _0x3fc9b9=Array[_0x17ec('0xc6')](_0x3de4c0)[_0x17ec('0xdb')](_0xf9ee26=>!_0xf9ee26[_0x17ec('0xd')]),_0x570d24=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x75dd60=>!_0x75dd60['isMultiRange']),_0x26e0cb=_0x570d24[_0x17ec('0xdb')](_0x596e49=>!_0x3de4c0[_0x17ec('0x126')](_0x596e49)),_0x52b82f=new Map(_0x570d24[_0x17ec('0x10')](_0x36cd40=>[_0x36cd40,this['_suggestionFactory'][_0x17ec('0xb5')](_0x36cd40[_0x17ec('0x119')],_0x36cd40['subType'],_0x17ec('0xbf'))])),_0x22e57a=new Map(_0x570d24[_0x17ec('0x10')](_0x12121a=>[_0x12121a,_0x12121a['getFirstRange']()])),_0x862d72=new Set(),_0x65564c=new Set();for(let _0x451a79=0x0;_0x451a79<_0x3fc9b9[_0x17ec('0x33')];_0x451a79++)_0x53f0a1(_0x3fc9b9[_0x451a79],_0x3fc9b9,_0x451a79+0x1);for(let _0x564570=0x0;_0x564570<_0x3fc9b9[_0x17ec('0x33')];_0x564570++)_0x53f0a1(_0x3fc9b9[_0x564570],_0x26e0cb,0x0);for(let _0x112d7b=0x0;_0x112d7b<_0x3fc9b9['length'];_0x112d7b++){const _0x5e2e7b=_0x3fc9b9[_0x112d7b];!_0x65564c[_0x17ec('0x126')](_0x5e2e7b)&&_0x5e2e7b[_0x17ec('0x8')]&&(_0x5e2e7b[_0x17ec('0x8')][_0x17ec('0xd2')]===_0x5e2e7b&&(_0x5e2e7b[_0x17ec('0x8')][_0x17ec('0xd2')]=null),_0x5e2e7b[_0x17ec('0x8')]=null),!_0x862d72[_0x17ec('0x126')](_0x5e2e7b)&&_0x5e2e7b[_0x17ec('0xd2')]&&(_0x5e2e7b['next'][_0x17ec('0x8')]===_0x5e2e7b&&(_0x5e2e7b[_0x17ec('0xd2')][_0x17ec('0x8')]=null),_0x5e2e7b[_0x17ec('0xd2')]=null);}function _0x53f0a1(_0x31013b,_0x38bfba,_0x38be39){for(let _0xf89ed1=_0x38be39;_0xf89ed1<_0x38bfba[_0x17ec('0x33')];_0xf89ed1++){const _0x514c48=_0x249007(_0x31013b,_0x38bfba[_0xf89ed1]);_0x514c48&&(_0x514c48[0x0]['next']=_0x514c48[0x1],_0x514c48[0x1][_0x17ec('0x8')]=_0x514c48[0x0],_0x862d72[_0x17ec('0x109')](_0x514c48[0x0]),_0x65564c[_0x17ec('0x109')](_0x514c48[0x1]));}}function _0x249007(_0xf9b36e,_0x4f7db3){if(_0xf9b36e[_0x17ec('0x10e')]['id']!==_0x4f7db3[_0x17ec('0x10e')]['id'])return null;const _0x25e027=_0x52b82f[_0x17ec('0xf7')](_0xf9b36e)(_0xf9b36e,_0x4f7db3,_0x22e57a['get'](_0xf9b36e),_0x22e57a[_0x17ec('0xf7')](_0x4f7db3));if(!_0x25e027)return null;return _0x52b82f[_0x17ec('0xf7')](_0x4f7db3)(_0xf9b36e,_0x4f7db3,_0x22e57a[_0x17ec('0xf7')](_0xf9b36e),_0x22e57a[_0x17ec('0xf7')](_0x4f7db3))?_0x25e027[0x1]['commentThread']&&_0x25e027[0x1][_0x17ec('0x97')]['length']?null:_0x25e027:null;}}['_joinWithAdjacentSuggestions'](_0x581687){const _0x20c0f7=Array[_0x17ec('0xc6')](_0x581687),_0x5a10c8=this[_0x17ec('0x8e')]({'skipNotAttached':!0x0}),_0x51dd25=_0x5a10c8['filter'](_0x483311=>!_0x581687[_0x17ec('0x126')](_0x483311)),_0x3fac20=new Map(_0x20c0f7[_0x17ec('0x10')](_0x131ac1=>[_0x131ac1,this['_suggestionFactory'][_0x17ec('0xb5')](_0x131ac1[_0x17ec('0x119')],_0x131ac1['subType'],'join')])),_0x37539d=new Map(_0x5a10c8[_0x17ec('0x10')](_0x42e038=>[_0x42e038,_0x42e038[_0x17ec('0x8a')]()]));for(let _0x110c99=0x0;_0x110c99<_0x20c0f7[_0x17ec('0x33')];_0x110c99++){if(_0x2dfa52(this,_0x20c0f7[_0x110c99],_0x20c0f7,_0x110c99+0x1))return!0x0;}for(let _0x4bfe12=0x0;_0x4bfe12<_0x20c0f7['length'];_0x4bfe12++){if(_0x2dfa52(this,_0x20c0f7[_0x4bfe12],_0x51dd25,0x0))return!0x0;}return!0x1;function _0x2dfa52(_0x1f18f3,_0x59b783,_0x32cd54,_0x339163){for(let _0x489b5e=_0x339163;_0x489b5e<_0x32cd54[_0x17ec('0x33')];_0x489b5e++){const _0x185cf5=_0x32cd54[_0x489b5e];if(_0x185cf5[_0x17ec('0x119')]!==_0x59b783[_0x17ec('0x119')]||_0x185cf5[_0x17ec('0x10e')]['id']!==_0x59b783['author']['id']||_0x185cf5[_0x17ec('0x111')]!==_0x59b783[_0x17ec('0x111')])continue;if(!Ut(_0x59b783,_0x185cf5))continue;const _0x14d620=_0x3fac20[_0x17ec('0xf7')](_0x59b783),_0x24b5c5=_0x37539d['get'](_0x59b783),_0x52cc1e=_0x37539d[_0x17ec('0xf7')](_0x185cf5),_0x37997a=_0x59b783[_0x17ec('0x97')]&&_0x59b783[_0x17ec('0x97')][_0x17ec('0x33')],_0x11db83=_0x185cf5['commentThread']&&_0x185cf5['commentThread'][_0x17ec('0x33')];if(!_0x37997a&&_0x14d620(_0x52cc1e,_0x24b5c5))return _0x1f18f3[_0x17ec('0x41')](_0x185cf5,_0x59b783),_0x37539d[_0x17ec('0x108')](_0x59b783),!0x0;if(!_0x11db83&&_0x14d620(_0x24b5c5,_0x52cc1e))return _0x1f18f3[_0x17ec('0x41')](_0x59b783,_0x185cf5),_0x37539d[_0x17ec('0x108')](_0x185cf5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x132ea1,_0x2a69f7){if(_0x132ea1[_0x17ec('0xd')])for(const _0x33abb7 of _0x2a69f7[_0x17ec('0x8a')]())_0x132ea1[_0x17ec('0x143')](_0x33abb7);else{const _0x116e49=_0x2a69f7[_0x17ec('0x96')]()[_0x17ec('0xe0')];this['_setSuggestionRange'](_0x132ea1,this['_model'][_0x17ec('0xd8')](_0x132ea1[_0x17ec('0x96')]()[_0x17ec('0xab')],_0x116e49));}_0x2a69f7[_0x17ec('0x12e')]();}}class Bt{constructor(_0xdb3a19){this[_0x17ec('0x6f')]=_0xdb3a19,this[_0x17ec('0x99')]=_0xdb3a19['model'],this[_0x17ec('0x4d')]=new Map(),this[_0x17ec('0xa9')]=new Map(),this['_registerDefaultCallbacks']();}[_0x17ec('0xaa')](_0x43f491,_0x31fcb5,_0x58ae68,_0x101dee,_0x5df4d2,_0x182737){return new _0x3509b3(this[_0x17ec('0x99')],{'type':_0x43f491,'subType':_0x31fcb5,'id':_0x58ae68,'author':_0x101dee,'creator':_0x101dee,'attributes':_0x5df4d2,'onAttributesChange':_0x182737,'onAccept':(..._0x1ef74e)=>this[_0x17ec('0xb5')](_0x43f491,_0x31fcb5,_0x17ec('0x18'))(..._0x1ef74e),'onDiscard':(..._0x1eecc2)=>this[_0x17ec('0xb5')](_0x43f491,_0x31fcb5,_0x17ec('0x47'))(..._0x1eecc2)});}['registerCustomCallback'](_0x25b3d6,_0x5edfa7,_0x9d985,_0x475849){const _0x365598=_0x25b3d6+':'+_0x5edfa7+':'+_0x9d985;this['_customCallbacks'][_0x17ec('0xa0')](_0x365598,_0x475849);}['getSuggestionCallback'](_0x9620a9,_0x2a985c,_0xa2a03f){const _0x2587de=_0x9620a9+':'+_0x2a985c+':'+_0xa2a03f;return this['_customCallbacks'][_0x17ec('0xf7')](_0x2587de)||this['_defaultCallbacks'][_0x17ec('0xf7')](_0x9620a9+':'+_0xa2a03f);}[_0x17ec('0xe7')](){const _0x4f7f9f=()=>!0x1,_0x23326d=_0x1415ee=>{_0x1415ee[_0x17ec('0x123')]((_0x2679b1,_0x24ecdc)=>_0x2679b1[_0x17ec('0xab')][_0x17ec('0xdd')](_0x24ecdc[_0x17ec('0xab')])?0x1:-0x1),this['_model'][_0x17ec('0x13d')](_0x513988=>{for(const _0x510cc2 of _0x1415ee){let _0x5d72b2;_0x5d72b2=_0x510cc2[_0x17ec('0xe0')]['isAtEnd']&&_0x510cc2['end'][_0x17ec('0x100')]==_0x510cc2[_0x17ec('0xab')][_0x17ec('0x12d')]?_0x513988[_0x17ec('0x62')](_0x510cc2[_0x17ec('0xab')][_0x17ec('0x12d')],'on'):_0x513988['createSelection'](_0x510cc2),this[_0x17ec('0x99')]['deleteContent'](_0x5d72b2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1dcbf0=(_0x50b76c,_0x48b3f7)=>{this[_0x17ec('0x99')][_0x17ec('0x13d')](_0x4487fc=>{const {commandName:_0x238003,commandParams:_0x9ddf17=[]}=_0x48b3f7,_0x5833fd=_0x50b76c['map'](_0x31e672=>(Mt(_0x31e672)&&(_0x31e672=this['_model'][_0x17ec('0xd8')](_0x31e672[_0x17ec('0xe0')])),_0x31e672))[_0x17ec('0xdb')](_0x1961ee=>_0x17ec('0x72')!==_0x1961ee[_0x17ec('0x52')]['rootName']);if(_0x5833fd[_0x17ec('0x33')]<0x1)return;const _0x5bf3e2=Array[_0x17ec('0xc6')](this[_0x17ec('0x99')][_0x17ec('0xb0')]['selection']['getRanges']())[_0x17ec('0x10')](_0x199391=>_0x5b7c0c[_0x17ec('0x53')](_0x199391));_0x4487fc[_0x17ec('0x3d')](_0x5833fd);for(const _0x1c18e9 of this['_editor'][_0x17ec('0x117')][_0x17ec('0x117')]())_0x1c18e9[_0x17ec('0x5b')]();_0x9ddf17[_0x17ec('0xb6')]({'forceDefaultExecution':!0x0}),this[_0x17ec('0x6f')][_0x17ec('0x20')](_0x238003,..._0x9ddf17);const _0x125ede=_0x5bf3e2[_0x17ec('0xdb')](_0x38ca72=>'$graveyard'!=_0x38ca72[_0x17ec('0x52')][_0x17ec('0x39')]);_0x125ede[_0x17ec('0x33')]>0x0&&_0x4487fc[_0x17ec('0x3d')](_0x125ede);for(const _0x408a91 of _0x5bf3e2)_0x408a91[_0x17ec('0xf2')]();});},_0x542830=(_0x32f7d5,_0x5d3dab)=>0x1==_0x32f7d5[_0x17ec('0x33')]&&0x1==_0x5d3dab[_0x17ec('0x33')]&&_0x32f7d5[0x0]['end'][_0x17ec('0x6d')](_0x5d3dab[0x0][_0x17ec('0xab')]),_0x4d7c57=(_0x131334,_0x4613f4,_0x1775a6,_0x528b2e)=>xt(_0x131334,_0x4613f4,_0x1775a6,_0x528b2e,this['_model'])?[_0x131334,_0x4613f4]:xt(_0x4613f4,_0x131334,_0x528b2e,_0x1775a6,this[_0x17ec('0x99')])?[_0x4613f4,_0x131334]:null;this[_0x17ec('0xa9')][_0x17ec('0xa0')](_0x17ec('0x144'),_0x4f7f9f),this[_0x17ec('0xa9')]['set'](_0x17ec('0xfd'),_0x23326d),this['_defaultCallbacks'][_0x17ec('0xa0')](_0x17ec('0x79'),_0x542830),this[_0x17ec('0xa9')][_0x17ec('0xa0')](_0x17ec('0x139'),_0x4d7c57),this[_0x17ec('0xa9')][_0x17ec('0xa0')](_0x17ec('0xb4'),_0x23326d),this[_0x17ec('0xa9')][_0x17ec('0xa0')]('deletion:discard',_0x4f7f9f),this[_0x17ec('0xa9')][_0x17ec('0xa0')]('deletion:join',_0x542830),this[_0x17ec('0xa9')][_0x17ec('0xa0')](_0x17ec('0x83'),_0x4d7c57),this['_defaultCallbacks'][_0x17ec('0xa0')](_0x17ec('0x110'),_0x1dcbf0),this[_0x17ec('0xa9')][_0x17ec('0xa0')](_0x17ec('0x12a'),_0x4f7f9f),this[_0x17ec('0xa9')]['set'](_0x17ec('0x78'),_0x542830),this['_defaultCallbacks']['set'](_0x17ec('0xf1'),_0x4f7f9f),this['_defaultCallbacks'][_0x17ec('0xa0')](_0x17ec('0xa1'),_0x1dcbf0),this[_0x17ec('0xa9')][_0x17ec('0xa0')]('formatBlock:discard',_0x4f7f9f),this[_0x17ec('0xa9')]['set'](_0x17ec('0xfc'),_0x542830),this[_0x17ec('0xa9')][_0x17ec('0xa0')]('formatBlock:chain',_0x4f7f9f);}}function _t(_0x2fe131,_0x52de2b,_0x81698b){for(const _0x45bd3f of _0x52de2b[_0x17ec('0x100')][_0x17ec('0x54')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x45bd3f['root']==_0x45bd3f)return!0x1;if(!_0x81698b[_0x17ec('0x63')](_0x45bd3f))return!0x1;if(_0x2fe131[_0x17ec('0x67')](_0x45bd3f)||_0x2fe131['isLimit'](_0x45bd3f))return!0x0;}return!0x1;}function Mt(_0x2f78d2){return _0x2f78d2[_0x17ec('0xe0')]['parent']==_0x2f78d2[_0x17ec('0xab')][_0x17ec('0x12d')]&&_0x2f78d2[_0x17ec('0xe0')]['isAtStart'];}function $t(_0x2ea48c,_0xcd7d07,_0xe190ac,_0x4916dd){const _0x2943ce=_0x218e36=>!_0x218e36[_0x17ec('0x121')]['is'](_0x17ec('0xc5'))&&!_0x4916dd[_0x17ec('0x67')](_0x218e36[_0x17ec('0x121')]),_0xcadfea=_0x2ea48c[_0x17ec('0xab')]['getLastMatchingPosition'](_0x2943ce),_0x2c4144=_0x2ea48c[_0x17ec('0xe0')]['getLastMatchingPosition'](_0x2943ce,{'direction':_0x17ec('0x43')});return(!_0x2ea48c[_0x17ec('0xab')][_0x17ec('0x6d')](_0xcadfea)||!_0x2ea48c[_0x17ec('0xe0')][_0x17ec('0x6d')](_0x2c4144))&&(_0xcadfea[_0x17ec('0xdd')](_0x2c4144)?_0xe190ac['updateMarker'](_0xcd7d07,{'range':_0xe190ac['createRange'](_0xcadfea,_0x2c4144)}):_0xe190ac[_0x17ec('0x89')](_0xcd7d07),!0x0);}function Nt(_0x1a9ae1){return _0x478159(_0x1a9ae1);}function Rt(_0x19206f){const _0x371249=_0x19206f['start'][_0x17ec('0x12d')];return _0x371249&&_0x371249['is'](_0x17ec('0xc0'));}function jt(_0x167e6d,_0x2f6297){const _0x2d82c4=_0x2f6297[_0x17ec('0x7')]['isObject'](_0x167e6d)||_0x2f6297[_0x17ec('0x7')][_0x17ec('0xe5')](_0x167e6d);return _0x2f6297[_0x17ec('0xd8')](_0x2f6297[_0x17ec('0xad')](_0x167e6d,_0x17ec('0x147')),_0x2d82c4?_0x2f6297[_0x17ec('0x10b')](_0x167e6d):_0x2f6297[_0x17ec('0xad')](_0x167e6d,_0x17ec('0xe0')));}function xt(_0x457413,_0x42f576,_0x5415ca,_0x1dc8a0,_0x1c193b){if(!Ut(_0x457413,_0x42f576))return!0x1;if(_0x5415ca['end'][_0x17ec('0x6d')](_0x1dc8a0[_0x17ec('0xab')]))return!0x0;if(_0x457413['type']!=_0x42f576['type'])return!0x1;if(!_0x5415ca[_0x17ec('0xe0')][_0x17ec('0x9e')](_0x1dc8a0['start']))return!0x1;const _0x592f56=_0x1c193b[_0x17ec('0xd8')](_0x5415ca['end'],_0x1dc8a0[_0x17ec('0xab')])[_0x17ec('0xf8')]();for(const _0x4296af of _0x592f56)if([_0x17ec('0x6e'),'elementEnd'][_0x17ec('0xba')](_0x4296af[_0x17ec('0x119')])&&_0x1c193b[_0x17ec('0x7')][_0x17ec('0x8b')](_0x4296af[_0x17ec('0x121')]))return!0x1;return!0x0;}function Ut(_0x29651f,_0x1b6155){return!(!_0x29651f[_0x17ec('0x70')]||!_0x1b6155[_0x17ec('0x70')])&&_0x4d409c(_0x29651f[_0x17ec('0x5d')],_0x1b6155[_0x17ec('0x5d')]);}function Ot(_0x11298c,_0x1bf34e){const _0x15ccbc=Et(_0x11298c[_0x17ec('0x5d')]),_0x31e4e0=Et(_0x1bf34e);if(!_0x11298c[_0x17ec('0x70')])return!0x1;for(const _0x2c650b of Object[_0x17ec('0x31')](_0x31e4e0))if(!_0x4d409c(_0x15ccbc[_0x2c650b],_0x31e4e0[_0x2c650b]))return!0x1;return!0x0;}function Et(_0x40fc6d){const _0x41f1e4=Object[_0x17ec('0x146')]({},_0x40fc6d);return delete _0x41f1e4[_0x17ec('0xb8')],delete _0x41f1e4['tablePasteChainId'],_0x41f1e4;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x44c8=['length','isMultiRange','_refreshActiveMarkers','remove','registerAnnotation','trackChanges.disableComments','requires','source','acceptButton','acceptSelectedSuggestions','head','filter','reduce','_updateController','isInContent','suggestion-','componentFactory','model','getDescriptions','value','push','listenTo','getAllAdjacentSuggestions','commentThread','_handleSuggestionControllerDelayed','_annotationViews','comments.editorConfig','buttonView','getFirstRange','trackChanges.SuggestionThreadView','keys','Discard\x20all\x20selected\x20suggestions','addSourceCollector','button','_handleControllerBuffer','Discard\x20all\x20suggestions','type','getJoined','getByInnerView','trackChanges','addComment','define','_descriptionFactory','getMarkers','_destroyController','arrowView','createAnnotationView','previous','SuggestionThreadView','TrackChangesEditing','Accept\x20all\x20selected\x20suggestions','Accept\x20all\x20suggestions','change:previous','editing','_createUIButton','discardSelectedSuggestions','CommentsRepository','suggestionLoaded','suggestionUnloaded','values','descriptionParts','add','stopListening','from','change:activeAnnotations','bind','some','CommentsUI','innerView','map','size','_initializeController','hasSuggestion','get','discardAllSuggestions','commands','isOn','createAnnotation','refreshSelectedViews','switchbutton','_disableComments','view','Annotations','destroy','comments.maxCommentCharsWhenCollapsed','EditorAnnotations','mainView','set','comments.maxThreadTotalWeight','config','has','separator','init','_viewToController','discardButton','focus','_suggestionToController','_unbindEditors','isEnabled','execute','unbind','lowest','clear','commandName','locale','CommentView','getMarkerNames','editor','delete','_bindAnnotationToEditors','plugins'];(function(_0x3b9540,_0x44c83d){const _0x210ec5=function(_0x28fc6f){while(--_0x28fc6f){_0x3b9540['push'](_0x3b9540['shift']());}};_0x210ec5(++_0x44c83d);}(_0x44c8,0x15e));const _0x210e=function(_0x3b9540,_0x44c83d){_0x3b9540=_0x3b9540-0x0;let _0x210ec5=_0x44c8[_0x3b9540];return _0x210ec5;};import{Plugin as _0x2b84c5}from'ckeditor5/src/core';import{Collection as _0x3ab21}from'ckeditor5/src/utils';import{Model as _0x3c9e72,SplitButtonView as _0x51b32c,createDropdown as _0x11d8aa,addListToDropdown as _0xa10dc1}from'ckeditor5/src/ui';import{Users as _0x4d894e,getDateTimeFormatter as _0x1391a2,getAllMarkersDomElementsSorted as _0x2c19d5}from'ckeditor5-collaboration/src/collaboration-core';import _0x46037e from'./trackchangesediting';import _0x2c3360 from'./ui/suggestioncontroller';import _0x2045d6 from'./ui/view/suggestionthreadview';import{getTranslation as _0x18c610}from'./utils/common-translations';import _0x5ce200 from'../theme/icons/track-changes.svg';export default class d extends _0x2b84c5{static get[_0x210e('0x64')](){return[_0x46037e,_0x4d894e,_0x210e('0x27'),_0x210e('0x41'),_0x210e('0x44')];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xdf301e){super(_0xdf301e),this[_0x210e('0x4f')]=new Map(),this[_0x210e('0x4c')]=new Map(),this['_annotationViews']=new Map(),this[_0x210e('0x11')]=new Map();const _0x54d96b=this[_0x210e('0x5a')][_0x210e('0x48')];_0x54d96b[_0x210e('0x18')](_0x210e('0xc'),_0x2045d6),_0x54d96b[_0x210e('0x18')](_0x210e('0x63'),!0x1),this[_0x210e('0x3f')]=_0x54d96b[_0x210e('0x38')](_0x210e('0x63'));}[_0x210e('0x7')](_0x1dabfc,_0xdab296){0x0===this[_0x210e('0x11')][_0x210e('0x35')]&&setTimeout(()=>{for(const [_0x2a42ff,_0x3f87ee]of this['_handleControllerBuffer']){const _0x357bd0=this[_0x210e('0x4f')]['has'](_0x2a42ff);_0x357bd0||_0x3f87ee?_0x357bd0&&_0x3f87ee&&this[_0x210e('0x1b')](_0x2a42ff):this['_initializeController'](_0x2a42ff);}this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')](_0x210e('0x44'))[_0x210e('0x3d')](),this[_0x210e('0x60')](),this[_0x210e('0x11')][_0x210e('0x55')]();},0xa),this[_0x210e('0x11')][_0x210e('0x46')](_0x1dabfc,_0xdab296);}[_0x210e('0x4b')](){const _0xea8596=this[_0x210e('0x5a')],_0x559f76=_0xea8596['plugins'][_0x210e('0x38')]('TrackChangesEditing'),_0x35c7ea=_0xea8596[_0x210e('0x5d')][_0x210e('0x38')]('Annotations'),_0x418430=_0xea8596['plugins'][_0x210e('0x38')](_0x210e('0x44')),_0x5c8c6b=_0xea8596[_0x210e('0x5d')]['get'](_0x210e('0x27'));_0xea8596['ui'][_0x210e('0x6e')][_0x210e('0x2c')]('trackChanges',_0x24d963=>this[_0x210e('0x25')](_0x24d963)),_0x418430[_0x210e('0xf')](()=>{const _0x2950a9=[];for(const [_0x466690,_0x3fea9f]of Array[_0x210e('0x2e')](this['_suggestionToController'])){const _0xeaa9c6=_0x466690['getAllAdjacentSuggestions'](),_0x3158d7=[];for(const _0x4e1369 of _0xeaa9c6){if(!_0x4e1369[_0x210e('0x6c')])continue;if(_0x4e1369[_0x210e('0x5f')]){_0x3158d7[_0x210e('0x3')](..._0x4e1369['getRanges']());continue;}const _0x2b5519=_0x4e1369[_0x210e('0xb')]();if(_0x3158d7[_0x210e('0x5e')]>0x0){const _0x383160=_0x3158d7[0x0][_0x210e('0x14')](_0x2b5519);if(_0x383160){_0x3158d7[0x0]=_0x383160;continue;}}_0x3158d7[_0x210e('0x3')](_0x2b5519);}_0x2950a9[_0x210e('0x3')]([_0x3fea9f[_0x210e('0x40')],_0x3158d7]);}return _0x2950a9;}),this[_0x210e('0x4')](_0x559f76,_0x210e('0x28'),(_0xc0ea11,_0x153c56)=>{this['listenTo'](_0x153c56,'change:previous',(_0x3d592d,_0x555360,_0x2f09b5,_0x496304)=>{_0x153c56['isInContent']&&(null==_0x2f09b5?(this[_0x210e('0x6b')](_0x496304['head']),this[_0x210e('0x7')](_0x153c56,!0x1)):(this['_updateController'](_0x2f09b5[_0x210e('0x68')]),this[_0x210e('0x7')](_0x153c56,!0x0)));}),null===_0x153c56[_0x210e('0x1e')]?this[_0x210e('0x7')](_0x153c56,!0x1):this[_0x210e('0x6b')](_0x153c56[_0x210e('0x68')]);}),this['listenTo'](_0x559f76,_0x210e('0x29'),(_0x33806a,_0x2a8cd8,_0x33f709)=>{this[_0x210e('0x2d')](_0x2a8cd8,_0x210e('0x23')),this['_handleControllerBuffer'][_0x210e('0x5b')](_0x2a8cd8);const _0x1a9d18=_0x33f709?_0x33f709['head']:_0x2a8cd8,_0x2815b1=this[_0x210e('0x4f')][_0x210e('0x38')](_0x1a9d18);null!==_0x33f709&&this[_0x210e('0x6b')](_0x1a9d18),null===_0x33f709&&_0x2815b1&&this[_0x210e('0x1b')](_0x2a8cd8);}),this[_0x210e('0x4')](_0x559f76,'suggestionChanged',(_0x14c7f7,_0x4304e2)=>{this[_0x210e('0x6b')](_0x4304e2);}),this['listenTo'](_0x35c7ea,_0x210e('0x2f'),()=>{this[_0x210e('0x60')]();}),this['listenTo'](_0x5c8c6b,_0x210e('0x17'),(_0x49738b,{threadId:_0x13f6e4,isFromAdapter:_0x393991})=>{if(_0x393991||!_0x559f76[_0x210e('0x37')](_0x13f6e4))return;const _0x3b3571=_0x559f76['getSuggestion'](_0x13f6e4);this[_0x210e('0x4f')][_0x210e('0x38')](_0x3b3571)[_0x210e('0x40')][_0x210e('0x4e')]();},{'priority':_0x210e('0x54')});}[_0x210e('0x60')](){const _0x569724=this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')]('Annotations'),_0x81f082=this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')]('TrackChangesEditing'),_0x18f4c6=Array['from'](_0x569724['activeAnnotations'],_0x1a1538=>_0x1a1538[_0x210e('0x33')])['filter'](_0x1d45bf=>this[_0x210e('0x4c')][_0x210e('0x49')](_0x1d45bf)),_0x3c4666=[];for(const _0x501acb of _0x18f4c6){const _0x1d4299=this[_0x210e('0x4c')][_0x210e('0x38')](_0x501acb)[_0x210e('0x0')][_0x210e('0x5')]();_0x3c4666['push'](..._0x1d4299[_0x210e('0x6a')]((_0x23990d,_0x4b675c)=>[..._0x23990d,..._0x4b675c[_0x210e('0x59')]()],[]));}_0x81f082['activeMarkers']=_0x3c4666;}[_0x210e('0x25')](_0x23e9fd){const _0x2dec52=_0x11d8aa(_0x23e9fd,_0x51b32c),_0x4fe715=this['editor'][_0x210e('0x3a')]['get'](_0x210e('0x16')),_0x416f6f=_0x18c610(_0x23e9fd,'Track\x20changes');_0x2dec52[_0x210e('0xa')][_0x210e('0x46')]({'tooltip':_0x416f6f,'label':_0x416f6f,'icon':_0x5ce200}),_0x2dec52[_0x210e('0xa')]['bind'](_0x210e('0x3b'))['to'](_0x4fe715,_0x210e('0x2')),_0x2dec52[_0x210e('0xa')]['on'](_0x210e('0x52'),()=>{_0x4fe715[_0x210e('0x52')](),this[_0x210e('0x5a')]['editing']['view'][_0x210e('0x4e')]();});const _0x2d0775=new _0x3ab21(),_0x110d13=[{'type':_0x210e('0x3e'),'model':{'withText':!0x0,'label':_0x416f6f,'commandName':_0x210e('0x16')}},{'type':_0x210e('0x4a')},{'type':'button','model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0x22')),'commandName':'acceptAllSuggestions'}},{'type':_0x210e('0x10'),'model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0x21')),'commandName':_0x210e('0x67')}},{'type':_0x210e('0x10'),'model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0x12')),'commandName':_0x210e('0x39')}},{'type':_0x210e('0x10'),'model':{'withText':!0x0,'label':_0x18c610(_0x23e9fd,_0x210e('0xe')),'commandName':_0x210e('0x26')}}];for(const _0x249d89 of _0x110d13){let _0x312694={'type':_0x210e('0x4a')};if(_0x249d89[_0x210e('0x0')]){const _0x5e9a74=new _0x3c9e72(_0x249d89[_0x210e('0x0')]),_0x3ead32=this['editor'][_0x210e('0x3a')][_0x210e('0x38')](_0x5e9a74[_0x210e('0x56')]);_0x5e9a74[_0x210e('0x30')](_0x210e('0x3b'),'isEnabled')['to'](_0x3ead32,_0x210e('0x2'),_0x210e('0x51')),_0x312694={'type':_0x249d89['type'],'model':_0x5e9a74};}_0x2d0775['add'](_0x312694);}_0xa10dc1(_0x2dec52,_0x2d0775);const _0x3e0c71=_0x110d13[_0x210e('0x69')](_0x30c8f9=>null!=_0x30c8f9['model'])[_0x210e('0x34')](_0x1b2da6=>this[_0x210e('0x5a')][_0x210e('0x3a')][_0x210e('0x38')](_0x1b2da6['model']['commandName'])),_0x4ad074=_0x2dec52['buttonView'];return _0x4ad074['actionView'][_0x210e('0x53')]('isEnabled'),_0x4ad074[_0x210e('0x1c')][_0x210e('0x53')](_0x210e('0x51')),_0x4ad074['actionView'][_0x210e('0x30')]('isEnabled')['to'](_0x4fe715,_0x210e('0x51')),_0x4ad074[_0x210e('0x1c')][_0x210e('0x30')]('isEnabled')['toMany'](_0x3e0c71,_0x210e('0x51'),(..._0x10e2bf)=>_0x10e2bf[_0x210e('0x31')](_0x59d7fe=>_0x59d7fe)),_0x2dec52['on'](_0x210e('0x52'),_0x6c5151=>{this[_0x210e('0x5a')][_0x210e('0x52')](_0x6c5151[_0x210e('0x65')][_0x210e('0x56')]),this[_0x210e('0x5a')][_0x210e('0x24')][_0x210e('0x40')]['focus']();}),_0x2dec52;}[_0x210e('0x36')](_0x4e8cdd){const _0x98c989=this[_0x210e('0x5a')],_0x4b1587=_0x98c989[_0x210e('0x48')],_0x2e714c=_0x98c989[_0x210e('0x5d')][_0x210e('0x38')]('Annotations'),_0x212e04=_0x98c989[_0x210e('0x5d')][_0x210e('0x38')]('CommentsRepository'),_0x353d5e=_0x98c989[_0x210e('0x5d')]['get']('EditorAnnotations'),_0x9e214d=_0x98c989[_0x210e('0x5d')]['get'](_0x4d894e)['me'],_0x49be24=_0x4b1587[_0x210e('0x38')](_0x210e('0x16'))[_0x210e('0x1f')],{CommentsListView:_0x483411,CommentThreadInputView:_0x44382a}=_0x98c989[_0x210e('0x5d')][_0x210e('0x38')](_0x210e('0x32'));let _0x15b392,_0x321004;this[_0x210e('0x8')][_0x210e('0x49')](_0x4e8cdd['id'])?(_0x321004=this['_annotationViews']['get'](_0x4e8cdd['id']),_0x15b392=_0x321004[_0x210e('0x45')]):(_0x15b392=new _0x49be24(_0x98c989[_0x210e('0x57')],_0x4e8cdd,_0x9e214d,{'disableComments':this['_disableComments'],'editorConfig':_0x4b1587[_0x210e('0x38')](_0x210e('0x9')),'maxCommentsWhenCollapsed':_0x4b1587[_0x210e('0x38')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4b1587[_0x210e('0x38')](_0x210e('0x47')),'maxCommentCharsWhenCollapsed':_0x4b1587[_0x210e('0x38')](_0x210e('0x43')),'formatDateTime':_0x1391a2(_0x4b1587[_0x210e('0x38')](_0x210e('0x57'))),'CommentView':_0x4b1587['get']('comments')[_0x210e('0x58')],'CommentsListView':_0x483411,'CommentThreadInputView':_0x44382a}),_0x15b392[_0x210e('0x66')]['on'](_0x210e('0x52'),()=>{_0x98c989[_0x210e('0x24')][_0x210e('0x40')]['focus']();}),_0x15b392[_0x210e('0x4d')]['on']('execute',()=>{_0x98c989[_0x210e('0x24')][_0x210e('0x40')][_0x210e('0x4e')]();}),_0x321004=_0x2e714c[_0x210e('0x1d')](this[_0x210e('0x5a')][_0x210e('0x57')],_0x15b392),_0x321004[_0x210e('0x30')]('isDirty')['to'](_0x15b392,'isDirty'),_0x321004['bind'](_0x210e('0x5e'))['to'](_0x15b392),_0x321004['bind'](_0x210e('0x13'))['to'](_0x15b392,_0x210e('0x13'),_0xa070e2=>'suggestion-'+_0xa070e2),this[_0x210e('0x8')][_0x210e('0x46')](_0x4e8cdd['id'],_0x321004));const _0x589064=_0x212e04['createCommentThreadController'](_0x4e8cdd[_0x210e('0x6')],_0x15b392),_0x5dc20e=new _0x2c3360(_0x98c989,_0x4e8cdd,_0x15b392,_0x589064),_0x50506a=_0x4e8cdd[_0x210e('0x5')]()['filter'](_0x57f999=>_0x57f999['isInContent']);_0x15b392['descriptionParts']=_0x98c989['plugins'][_0x210e('0x38')](_0x210e('0x20'))[_0x210e('0x19')][_0x210e('0x1')](_0x50506a),this[_0x210e('0x4f')][_0x210e('0x46')](_0x4e8cdd,_0x5dc20e),this[_0x210e('0x4c')]['set'](_0x15b392,_0x5dc20e);const _0x2e9797=_0x2e714c[_0x210e('0x3c')]({'view':_0x321004,'target':()=>{const _0x1f0dee=[],_0x4377cd=_0x4e8cdd[_0x210e('0x5')]()[_0x210e('0x69')](_0xd42791=>_0xd42791[_0x210e('0x6c')]);for(const _0x4e861a of _0x4377cd)_0x1f0dee[_0x210e('0x3')](..._0x4e861a[_0x210e('0x1a')]());return _0x2c19d5(_0x98c989[_0x210e('0x24')],_0x1f0dee);},'type':()=>_0x210e('0x6d')+_0x5dc20e['view'][_0x210e('0x13')]});_0x212e04[_0x210e('0x5c')](_0x15b392,_0x2e9797),_0x2e714c[_0x210e('0x2c')](_0x2e9797),_0x353d5e[_0x210e('0x62')](_0x2e9797);}[_0x210e('0x1b')](_0x5698ea){const _0x39d477=this['editor'][_0x210e('0x5d')][_0x210e('0x38')]('CommentsRepository'),_0x3df7a5=this[_0x210e('0x5a')][_0x210e('0x5d')][_0x210e('0x38')](_0x210e('0x41')),_0x1c8e99=this[_0x210e('0x4f')][_0x210e('0x38')](_0x5698ea),_0x549921=_0x1c8e99[_0x210e('0x40')],_0x15cd76=_0x3df7a5[_0x210e('0x15')](_0x549921);_0x39d477[_0x210e('0x50')](_0x549921),_0x15cd76&&_0x3df7a5[_0x210e('0x61')](_0x15cd76),this['_suggestionToController'][_0x210e('0x5b')](_0x5698ea),this['_viewToController'][_0x210e('0x5b')](_0x549921),_0x1c8e99['destroy']();}[_0x210e('0x6b')](_0xb5f4fa){if(!_0xb5f4fa[_0x210e('0x6c')]||!this[_0x210e('0x4f')][_0x210e('0x49')](_0xb5f4fa))return;const _0x49d964=this[_0x210e('0x5a')]['plugins'][_0x210e('0x38')](_0x210e('0x20')),_0x52816c=this[_0x210e('0x4f')][_0x210e('0x38')](_0xb5f4fa),_0x341ea8=_0xb5f4fa[_0x210e('0x5')]();_0x52816c['view'][_0x210e('0x2b')]=_0x49d964[_0x210e('0x19')][_0x210e('0x1')](_0x341ea8);}[_0x210e('0x42')](){for(const _0x278931 of this[_0x210e('0x4f')][_0x210e('0xd')]())this['_destroyController'](_0x278931);for(const _0x3cc8a0 of this[_0x210e('0x8')][_0x210e('0x2a')]())_0x3cc8a0['mainView'][_0x210e('0x42')]();super[_0x210e('0x42')]();}}
|
|
23
|
+
const _0x3f49=['clear','innerView','getMarkerNames','_viewToController','switchbutton','getAllAdjacentSuggestions','set','from','commandName','getMarkers','destroy','_bindAnnotationToEditors','execute','SuggestionThreadView','push','trackChanges.SuggestionThreadView','createAnnotationView','Accept\x20all\x20selected\x20suggestions','requires','pluginName','bind','suggestionChanged','_destroyController','head','buttonView','_disableComments','acceptButton','plugins','discardButton','getByInnerView','type','separator','hasSuggestion','_initializeController','filter','_descriptionFactory','suggestion-','descriptionParts','_suggestionToController','some','TrackChangesEditing','config','createCommentThreadController','value','comments','TrackChangesUI','unbind','get','commands','isMultiRange','activeMarkers','getJoined','toMany','locale','editor','isInContent','Track\x20changes','_unbindEditors','createAnnotation','_createUIButton','EditorAnnotations','mainView','isOn','isEnabled','comments.maxCommentCharsWhenCollapsed','change:previous','trackChanges','acceptAllSuggestions','getDescriptions','change:activeAnnotations','suggestionUnloaded','editing','discardAllSuggestions','view','add','activeAnnotations','_annotationViews','comments.maxThreadTotalWeight','comments.maxCommentsWhenCollapsed','CommentsRepository','commentThread','button','define','CommentView','refreshSelectedViews','_handleControllerBuffer','map','values','comments.editorConfig','_updateController','init','focus','delete','discardSelectedSuggestions','listenTo','length','_handleSuggestionControllerDelayed','keys','isDirty','CommentsUI','Annotations','lowest','trackChanges.disableComments','model','Discard\x20all\x20suggestions','stopListening','arrowView','_refreshActiveMarkers','has','reduce','source'];(function(_0x38ec1e,_0x3f4956){const _0x5772b1=function(_0x371660){while(--_0x371660){_0x38ec1e['push'](_0x38ec1e['shift']());}};_0x5772b1(++_0x3f4956);}(_0x3f49,0x153));const _0x5772=function(_0x38ec1e,_0x3f4956){_0x38ec1e=_0x38ec1e-0x0;let _0x5772b1=_0x3f49[_0x38ec1e];return _0x5772b1;};import{Plugin as _0x4fea31}from'ckeditor5/src/core';import{Collection as _0x36adad}from'ckeditor5/src/utils';import{Model as _0xf139fd,SplitButtonView as _0x810782,createDropdown as _0x4bb6ae,addListToDropdown as _0x51d19}from'ckeditor5/src/ui';import{Users as _0x26b0d0,getDateTimeFormatter as _0x559090,getAllMarkersDomElementsSorted as _0x378b62}from'ckeditor5-collaboration/src/collaboration-core';import _0x3e4b7e from'./trackchangesediting';import _0xcae3bd from'./ui/suggestioncontroller';import _0xf23068 from'./ui/view/suggestionthreadview';import{getTranslation as _0xc255f4}from'./utils/common-translations';import _0x28248a from'../theme/icons/track-changes.svg';export default class d extends _0x4fea31{static get[_0x5772('0xc')](){return[_0x3e4b7e,_0x26b0d0,_0x5772('0x49'),'Annotations',_0x5772('0x36')];}static get[_0x5772('0xd')](){return _0x5772('0x27');}constructor(_0x4658b3){super(_0x4658b3),this['_suggestionToController']=new Map(),this[_0x5772('0x6c')]=new Map(),this[_0x5772('0x46')]=new Map(),this[_0x5772('0x4f')]=new Map();const _0x36a6bd=this[_0x5772('0x30')][_0x5772('0x23')];_0x36a6bd[_0x5772('0x4c')](_0x5772('0x9'),_0xf23068),_0x36a6bd[_0x5772('0x4c')](_0x5772('0x60'),!0x1),this[_0x5772('0x13')]=_0x36a6bd[_0x5772('0x29')](_0x5772('0x60'));}[_0x5772('0x5a')](_0x2c6a2c,_0x5c467c){0x0===this[_0x5772('0x4f')]['size']&&setTimeout(()=>{for(const [_0x2a454c,_0x1e7417]of this[_0x5772('0x4f')]){const _0x3f8f5f=this['_suggestionToController'][_0x5772('0x66')](_0x2a454c);_0x3f8f5f||_0x1e7417?_0x3f8f5f&&_0x1e7417&&this['_destroyController'](_0x2a454c):this[_0x5772('0x1b')](_0x2a454c);}this[_0x5772('0x30')][_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x36'))[_0x5772('0x4e')](),this['_refreshActiveMarkers'](),this[_0x5772('0x4f')][_0x5772('0x69')]();},0xa),this[_0x5772('0x4f')][_0x5772('0x0')](_0x2c6a2c,_0x5c467c);}[_0x5772('0x54')](){const _0x4ffa25=this[_0x5772('0x30')],_0x340242=_0x4ffa25[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x22')),_0x376237=_0x4ffa25[_0x5772('0x15')]['get'](_0x5772('0x5e')),_0x7f5ebe=_0x4ffa25[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x36')),_0x5a4ef6=_0x4ffa25[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x49'));_0x4ffa25['ui']['componentFactory'][_0x5772('0x44')]('trackChanges',_0x262064=>this['_createUIButton'](_0x262064)),_0x7f5ebe['addSourceCollector'](()=>{const _0x34728b=[];for(const [_0x2fd615,_0x318a0f]of Array['from'](this[_0x5772('0x20')])){const _0xaa9336=_0x2fd615[_0x5772('0x6e')](),_0x5e8a90=[];for(const _0x1452a2 of _0xaa9336){if(!_0x1452a2[_0x5772('0x31')])continue;if(_0x1452a2[_0x5772('0x2b')]){_0x5e8a90[_0x5772('0x8')](..._0x1452a2['getRanges']());continue;}const _0x328de1=_0x1452a2['getFirstRange']();if(_0x5e8a90[_0x5772('0x59')]>0x0){const _0x1980bd=_0x5e8a90[0x0][_0x5772('0x2d')](_0x328de1);if(_0x1980bd){_0x5e8a90[0x0]=_0x1980bd;continue;}}_0x5e8a90[_0x5772('0x8')](_0x328de1);}_0x34728b[_0x5772('0x8')]([_0x318a0f[_0x5772('0x43')],_0x5e8a90]);}return _0x34728b;}),this['listenTo'](_0x340242,'suggestionLoaded',(_0x5490f4,_0x411077)=>{this[_0x5772('0x58')](_0x411077,_0x5772('0x3b'),(_0xe37e15,_0x552435,_0x1459a6,_0x2bbdb1)=>{_0x411077[_0x5772('0x31')]&&(null==_0x1459a6?(this[_0x5772('0x53')](_0x2bbdb1[_0x5772('0x11')]),this[_0x5772('0x5a')](_0x411077,!0x1)):(this[_0x5772('0x53')](_0x1459a6[_0x5772('0x11')]),this[_0x5772('0x5a')](_0x411077,!0x0)));}),null===_0x411077['previous']?this[_0x5772('0x5a')](_0x411077,!0x1):this[_0x5772('0x53')](_0x411077[_0x5772('0x11')]);}),this[_0x5772('0x58')](_0x340242,_0x5772('0x40'),(_0x6ccbfc,_0x550a96,_0x17deb5)=>{this[_0x5772('0x63')](_0x550a96,_0x5772('0x3b')),this[_0x5772('0x4f')][_0x5772('0x56')](_0x550a96);const _0x42f8db=_0x17deb5?_0x17deb5['head']:_0x550a96,_0x22b38c=this['_suggestionToController'][_0x5772('0x29')](_0x42f8db);null!==_0x17deb5&&this[_0x5772('0x53')](_0x42f8db),null===_0x17deb5&&_0x22b38c&&this['_destroyController'](_0x550a96);}),this['listenTo'](_0x340242,_0x5772('0xf'),(_0x35d4b2,_0x242c1e)=>{this['_updateController'](_0x242c1e);}),this[_0x5772('0x58')](_0x376237,_0x5772('0x3f'),()=>{this[_0x5772('0x65')]();}),this[_0x5772('0x58')](_0x5a4ef6,'addComment',(_0x26632b,{threadId:_0x192f81,isFromAdapter:_0x6faf6})=>{if(_0x6faf6||!_0x340242[_0x5772('0x1a')](_0x192f81))return;const _0x30d660=_0x340242['getSuggestion'](_0x192f81);this[_0x5772('0x20')][_0x5772('0x29')](_0x30d660)['view']['focus']();},{'priority':_0x5772('0x5f')});}[_0x5772('0x65')](){const _0x1b8831=this[_0x5772('0x30')][_0x5772('0x15')][_0x5772('0x29')]('Annotations'),_0x40c491=this[_0x5772('0x30')][_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x22')),_0x5ccc65=Array[_0x5772('0x1')](_0x1b8831[_0x5772('0x45')],_0x2eaa0d=>_0x2eaa0d[_0x5772('0x6a')])[_0x5772('0x1c')](_0xe6d8c9=>this[_0x5772('0x6c')][_0x5772('0x66')](_0xe6d8c9)),_0x93e2ae=[];for(const _0x164aed of _0x5ccc65){const _0x54b284=this['_viewToController']['get'](_0x164aed)[_0x5772('0x61')][_0x5772('0x6e')]();_0x93e2ae[_0x5772('0x8')](..._0x54b284[_0x5772('0x67')]((_0x1882ce,_0xc228fc)=>[..._0x1882ce,..._0xc228fc[_0x5772('0x6b')]()],[]));}_0x40c491[_0x5772('0x2c')]=_0x93e2ae;}[_0x5772('0x35')](_0x311467){const _0x4b2a4f=_0x4bb6ae(_0x311467,_0x810782),_0x55b1e6=this['editor'][_0x5772('0x2a')][_0x5772('0x29')]('trackChanges'),_0xd9a5b1=_0xc255f4(_0x311467,_0x5772('0x32'));_0x4b2a4f[_0x5772('0x12')][_0x5772('0x0')]({'tooltip':_0xd9a5b1,'label':_0xd9a5b1,'icon':_0x28248a}),_0x4b2a4f['buttonView'][_0x5772('0xe')](_0x5772('0x38'))['to'](_0x55b1e6,_0x5772('0x25')),_0x4b2a4f[_0x5772('0x12')]['on'](_0x5772('0x6'),()=>{_0x55b1e6[_0x5772('0x6')](),this[_0x5772('0x30')][_0x5772('0x41')][_0x5772('0x43')][_0x5772('0x55')]();});const _0x11363c=new _0x36adad(),_0x170c95=[{'type':_0x5772('0x6d'),'model':{'withText':!0x0,'label':_0xd9a5b1,'commandName':_0x5772('0x3c')}},{'type':_0x5772('0x19')},{'type':_0x5772('0x4b'),'model':{'withText':!0x0,'label':_0xc255f4(_0x311467,'Accept\x20all\x20suggestions'),'commandName':_0x5772('0x3d')}},{'type':_0x5772('0x4b'),'model':{'withText':!0x0,'label':_0xc255f4(_0x311467,_0x5772('0xb')),'commandName':'acceptSelectedSuggestions'}},{'type':_0x5772('0x4b'),'model':{'withText':!0x0,'label':_0xc255f4(_0x311467,_0x5772('0x62')),'commandName':_0x5772('0x42')}},{'type':_0x5772('0x4b'),'model':{'withText':!0x0,'label':_0xc255f4(_0x311467,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x5772('0x57')}}];for(const _0x98df40 of _0x170c95){let _0x5873b0={'type':_0x5772('0x19')};if(_0x98df40[_0x5772('0x61')]){const _0x1ecd96=new _0xf139fd(_0x98df40[_0x5772('0x61')]),_0x3d1e38=this[_0x5772('0x30')]['commands'][_0x5772('0x29')](_0x1ecd96['commandName']);_0x1ecd96['bind'](_0x5772('0x38'),_0x5772('0x39'))['to'](_0x3d1e38,'value',_0x5772('0x39')),_0x5873b0={'type':_0x98df40[_0x5772('0x18')],'model':_0x1ecd96};}_0x11363c[_0x5772('0x44')](_0x5873b0);}_0x51d19(_0x4b2a4f,_0x11363c);const _0x31009c=_0x170c95[_0x5772('0x1c')](_0x2e8165=>null!=_0x2e8165[_0x5772('0x61')])[_0x5772('0x50')](_0x3bc657=>this['editor'][_0x5772('0x2a')][_0x5772('0x29')](_0x3bc657[_0x5772('0x61')][_0x5772('0x2')])),_0xc1e4a=_0x4b2a4f[_0x5772('0x12')];return _0xc1e4a['actionView'][_0x5772('0x28')](_0x5772('0x39')),_0xc1e4a[_0x5772('0x64')][_0x5772('0x28')]('isEnabled'),_0xc1e4a['actionView'][_0x5772('0xe')]('isEnabled')['to'](_0x55b1e6,_0x5772('0x39')),_0xc1e4a['arrowView'][_0x5772('0xe')]('isEnabled')[_0x5772('0x2e')](_0x31009c,'isEnabled',(..._0x672c47)=>_0x672c47[_0x5772('0x21')](_0x1f762a=>_0x1f762a)),_0x4b2a4f['on']('execute',_0x525ba2=>{this[_0x5772('0x30')][_0x5772('0x6')](_0x525ba2[_0x5772('0x68')][_0x5772('0x2')]),this[_0x5772('0x30')][_0x5772('0x41')][_0x5772('0x43')][_0x5772('0x55')]();}),_0x4b2a4f;}[_0x5772('0x1b')](_0x59d13e){const _0x3cdc0a=this[_0x5772('0x30')],_0x56d13a=_0x3cdc0a[_0x5772('0x23')],_0x2b27dc=_0x3cdc0a[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x5e')),_0x5235c5=_0x3cdc0a[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x49')),_0x507842=_0x3cdc0a[_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x36')),_0x444fa4=_0x3cdc0a[_0x5772('0x15')][_0x5772('0x29')](_0x26b0d0)['me'],_0x153f9f=_0x56d13a[_0x5772('0x29')](_0x5772('0x3c'))[_0x5772('0x7')],{CommentsListView:_0x3c7dbf,CommentThreadInputView:_0x4b0405}=_0x3cdc0a[_0x5772('0x15')]['get'](_0x5772('0x5d'));let _0x271d43,_0x4beb7c;this[_0x5772('0x46')][_0x5772('0x66')](_0x59d13e['id'])?(_0x4beb7c=this['_annotationViews'][_0x5772('0x29')](_0x59d13e['id']),_0x271d43=_0x4beb7c[_0x5772('0x37')]):(_0x271d43=new _0x153f9f(_0x3cdc0a[_0x5772('0x2f')],_0x59d13e,_0x444fa4,{'disableComments':this[_0x5772('0x13')],'editorConfig':_0x56d13a[_0x5772('0x29')](_0x5772('0x52')),'maxCommentsWhenCollapsed':_0x56d13a[_0x5772('0x29')](_0x5772('0x48')),'maxThreadTotalWeight':_0x56d13a[_0x5772('0x29')](_0x5772('0x47')),'maxCommentCharsWhenCollapsed':_0x56d13a[_0x5772('0x29')](_0x5772('0x3a')),'formatDateTime':_0x559090(_0x56d13a[_0x5772('0x29')](_0x5772('0x2f'))),'CommentView':_0x56d13a[_0x5772('0x29')](_0x5772('0x26'))[_0x5772('0x4d')],'CommentsListView':_0x3c7dbf,'CommentThreadInputView':_0x4b0405}),_0x271d43[_0x5772('0x14')]['on']('execute',()=>{_0x3cdc0a[_0x5772('0x41')][_0x5772('0x43')][_0x5772('0x55')]();}),_0x271d43[_0x5772('0x16')]['on'](_0x5772('0x6'),()=>{_0x3cdc0a[_0x5772('0x41')]['view'][_0x5772('0x55')]();}),_0x4beb7c=_0x2b27dc[_0x5772('0xa')](this[_0x5772('0x30')]['locale'],_0x271d43),_0x4beb7c[_0x5772('0xe')]('isDirty')['to'](_0x271d43,_0x5772('0x5c')),_0x4beb7c[_0x5772('0xe')](_0x5772('0x59'))['to'](_0x271d43),_0x4beb7c['bind'](_0x5772('0x18'))['to'](_0x271d43,_0x5772('0x18'),_0x41c45c=>_0x5772('0x1e')+_0x41c45c),this[_0x5772('0x46')][_0x5772('0x0')](_0x59d13e['id'],_0x4beb7c));const _0x5d6809=_0x5235c5[_0x5772('0x24')](_0x59d13e[_0x5772('0x4a')],_0x271d43),_0x575431=new _0xcae3bd(_0x3cdc0a,_0x59d13e,_0x271d43,_0x5d6809),_0x28372d=_0x59d13e[_0x5772('0x6e')]()[_0x5772('0x1c')](_0x194601=>_0x194601[_0x5772('0x31')]);_0x271d43[_0x5772('0x1f')]=_0x3cdc0a['plugins'][_0x5772('0x29')]('TrackChangesEditing')['_descriptionFactory'][_0x5772('0x3e')](_0x28372d),this[_0x5772('0x20')][_0x5772('0x0')](_0x59d13e,_0x575431),this[_0x5772('0x6c')][_0x5772('0x0')](_0x271d43,_0x575431);const _0x2a1980=_0x2b27dc[_0x5772('0x34')]({'view':_0x4beb7c,'target':()=>{const _0x4f37f5=[],_0x1a804e=_0x59d13e[_0x5772('0x6e')]()[_0x5772('0x1c')](_0xb75447=>_0xb75447[_0x5772('0x31')]);for(const _0x4b89eb of _0x1a804e)_0x4f37f5[_0x5772('0x8')](..._0x4b89eb[_0x5772('0x3')]());return _0x378b62(_0x3cdc0a[_0x5772('0x41')],_0x4f37f5);},'type':()=>_0x5772('0x1e')+_0x575431[_0x5772('0x43')][_0x5772('0x18')]});_0x5235c5[_0x5772('0x5')](_0x271d43,_0x2a1980),_0x2b27dc['add'](_0x2a1980),_0x507842['registerAnnotation'](_0x2a1980);}[_0x5772('0x10')](_0xce2688){const _0x2da2ee=this[_0x5772('0x30')][_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x49')),_0x31508d=this['editor'][_0x5772('0x15')]['get'](_0x5772('0x5e')),_0x8c4148=this[_0x5772('0x20')]['get'](_0xce2688),_0x452a08=_0x8c4148[_0x5772('0x43')],_0x3d4606=_0x31508d[_0x5772('0x17')](_0x452a08);_0x2da2ee[_0x5772('0x33')](_0x452a08),_0x3d4606&&_0x31508d['remove'](_0x3d4606),this['_suggestionToController']['delete'](_0xce2688),this[_0x5772('0x6c')][_0x5772('0x56')](_0x452a08),_0x8c4148[_0x5772('0x4')]();}[_0x5772('0x53')](_0x477584){if(!_0x477584[_0x5772('0x31')]||!this[_0x5772('0x20')]['has'](_0x477584))return;const _0x39e6ca=this['editor'][_0x5772('0x15')][_0x5772('0x29')](_0x5772('0x22')),_0x4323f8=this[_0x5772('0x20')][_0x5772('0x29')](_0x477584),_0x1ea9c0=_0x477584[_0x5772('0x6e')]();_0x4323f8[_0x5772('0x43')][_0x5772('0x1f')]=_0x39e6ca[_0x5772('0x1d')]['getDescriptions'](_0x1ea9c0);}['destroy'](){for(const _0x16cc36 of this[_0x5772('0x20')][_0x5772('0x5b')]())this[_0x5772('0x10')](_0x16cc36);for(const _0x126ee6 of this[_0x5772('0x46')][_0x5772('0x51')]())_0x126ee6[_0x5772('0x37')][_0x5772('0x4')]();super[_0x5772('0x4')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x40fd=['PendingActions','isDirty','listenTo','locale','view','canDiscard','_editor','_acceptCommand','remove','_pendingAction','_discardCommand','add','_setPendingAction','acceptSuggestion','canEditAt','commentThreadController','_removePendingAction','stopListening','get','change:isDirty','model','unbind','getRanges','discardSuggestion','isEnabled','bind','execute','commands','destroy','canAccept','plugins'];(function(_0x55b198,_0x40fd36){const _0x7d5a46=function(_0x2b8b2e){while(--_0x2b8b2e){_0x55b198['push'](_0x55b198['shift']());}};_0x7d5a46(++_0x40fd36);}(_0x40fd,0x1cc));const _0x7d5a=function(_0x55b198,_0x40fd36){_0x55b198=_0x55b198-0x0;let _0x7d5a46=_0x40fd[_0x55b198];return _0x7d5a46;};import{ObservableMixin as _0x2d5dee}from'ckeditor5/src/utils';import{getTranslation as _0x1721f8}from'../utils/common-translations';export default class Gt extends _0x2d5dee(){constructor(_0x49ae23,_0x3be441,_0x17580a,_0x3f720e){super(),this['model']=_0x3be441,this[_0x7d5a('0x9')]=_0x17580a,this[_0x7d5a('0x14')]=_0x3f720e,this['_editor']=_0x49ae23,this[_0x7d5a('0xc')]=_0x49ae23[_0x7d5a('0x1')]['get'](_0x7d5a('0x12')),this[_0x7d5a('0xf')]=_0x49ae23['commands']['get'](_0x7d5a('0x1c')),this[_0x7d5a('0x9')][_0x7d5a('0x1e')](_0x7d5a('0x1d'))['to'](this['_acceptCommand'],this[_0x7d5a('0xf')],(_0x1bb734,_0x24969b)=>_0x1bb734||_0x24969b),this[_0x7d5a('0x9')][_0x7d5a('0x1e')](_0x7d5a('0x3'))['to'](this[_0x7d5a('0xc')],_0x7d5a('0x1d'),_0x2c4373=>_0x2c4373&&this[_0x7d5a('0xb')][_0x7d5a('0x19')][_0x7d5a('0x13')](_0x3be441[_0x7d5a('0x1b')]())),this[_0x7d5a('0x9')][_0x7d5a('0x1e')](_0x7d5a('0xa'))['to'](this['_discardCommand'],_0x7d5a('0x1d'),_0x328559=>_0x328559&&this[_0x7d5a('0xb')][_0x7d5a('0x19')][_0x7d5a('0x13')](_0x3be441[_0x7d5a('0x1b')]())),this[_0x7d5a('0xe')]=null,_0x17580a[_0x7d5a('0x6')]&&this[_0x7d5a('0x11')](),this['listenTo'](_0x17580a,_0x7d5a('0x12'),()=>this[_0x7d5a('0x12')]()),this[_0x7d5a('0x7')](_0x17580a,_0x7d5a('0x1c'),()=>this[_0x7d5a('0x1c')]()),this['listenTo'](_0x17580a,_0x7d5a('0x18'),()=>{_0x17580a['isDirty']?this[_0x7d5a('0x11')]():this[_0x7d5a('0x15')]();});}[_0x7d5a('0x12')](){this[_0x7d5a('0xc')]['execute'](this[_0x7d5a('0x19')]['id']);}[_0x7d5a('0x1c')](){this[_0x7d5a('0xf')][_0x7d5a('0x0')](this[_0x7d5a('0x19')]['id']);}[_0x7d5a('0x2')](){this[_0x7d5a('0x9')][_0x7d5a('0x1a')]('isEnabled'),this['view']['unbind'](_0x7d5a('0x3')),this[_0x7d5a('0x9')][_0x7d5a('0x1a')](_0x7d5a('0xa')),this[_0x7d5a('0x16')](),this[_0x7d5a('0x14')][_0x7d5a('0x2')](),this[_0x7d5a('0xe')]&&this[_0x7d5a('0x15')]();}[_0x7d5a('0x11')](){const _0x4e5708=_0x1721f8(this['_editor'][_0x7d5a('0x8')],'PENDING_ACTION_SUGGESTION');this[_0x7d5a('0xe')]=this[_0x7d5a('0xb')][_0x7d5a('0x4')][_0x7d5a('0x17')]('PendingActions')[_0x7d5a('0x10')](_0x4e5708);}[_0x7d5a('0x15')](){null!==this[_0x7d5a('0xe')]&&this['_editor'][_0x7d5a('0x4')][_0x7d5a('0x17')](_0x7d5a('0x5'))[_0x7d5a('0xd')](this[_0x7d5a('0xe')]),this[_0x7d5a('0xe')]=null;}}
|