@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231026.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 _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;}
|
|
23
|
+
const _0x4e44=['getSuggestions','_adapter','_rangeIsInLocalUserInsertion','containerElement','formatInline','addSuggestion','getAttribute','clone','updateSuggestion','selection','pluginName','never','isInContent','substr','acceptSuggestion','always','consumable','_updateSuggestionData','after','_model','markInsertion','markMultiRangeDeletion','isBefore','removeClass','element','getShiftedBy','setTo','plugins','authorName','next','newRange','isObject','get','split','Users','for','_trackFormatChanges','sort','type','addComment','length','_checkSuggestionCorrectness','notReady','_mergeNestedSuggestions','hasCommentThread','size','getFirstRange','_cutOutSuggestionMarker','trackChanges','isInsideObject','writer','elementStart','suggestion','set','_createSuggestion','schema','enqueueChange','assign','isAtEnd','addMarkerName','rejected','commandName','editor','delete','clear','trackChanges.mergeNestedSuggestions','track-changes-user-not-found','_getSuggestionData','lowest','from','markers','isAfter','high','isNextTo','createRange','isExternal','removeMarker:suggestion:formatBlock','removeComment','insert','discardSelectedSuggestions','_suggestionFactory','return','forceDefaultExecution','values','dataDowncast','containsPosition','requires','adapter','highest','setAttribute','attributes','change:data','editing','registerPostFixer','filter','value','ck-suggestion-marker','createSelection','containsRange','change:_saved','insertion:discard','_refreshSuggestionsChain','@external','ck-suggestion-marker-formatBlock','isBlock','insertion:chain','trackChangesCommand','bindElementToMarker','some','track-changes-suggestion-not-found','marker-count','has','differ','discardAllSuggestions','addRange','_defaultCallbacks','_customCallbacks','deletion:join','$graveyard','deletion','before','getRanges','_joinWithAdjacentSuggestions','then','join','formatGroupId','discardSuggestion','addSuggestionData','locale','getAllAdjacentSuggestions','_handleNewSuggestionMarker','markerToHighlight','splice','originalSuggestionId','createPositionAt','getMarkers','suggestionLoaded','insertion','insertContent','isArray','define','author','acceptSelectedSuggestions','deletion:accept','addMarker:suggestion','insertion:accept','insertion:','isUndo','chain','isLimit','fetchCommentThread','showSuggestionHighlights','addUser','$textProxy','formatInline:','_commentsRepository','end','root','item','subType','splitPosition','consume','buildSuggestion','getChanges','accept','_splitMarkerName','listenTo','_removeSuggestion','formatBlock:discard','isAtStart','getChangedMarkers','elementEnd','markBlockFormat','_editor','targetPosition','getWalker','_isForcedDefaultExecutionBlock','conversion','deletion:chain','CommentsRepository','default','move','commentThread','_findSuggestions','activeMarkers','previous','_joinSuggestions','accepted','multipleBlocks','every','document','getAncestors','change','getSuggestionCallback','formatBlock:join','removeMarker','keys','isOwn','removed','discard','markInlineFormat','unbind','getIntersection','_getExternalAuthor','formatBlock:','change:activeMarkers','isRemovable','deletion:discard','track-changes-command-not-found','enableReadOnlyMode','suggestion-type','getDifference','map','external:','_enabledCommands','creator','formatBlock','isIntersectingWithRange','range','formatInline:discard','addMarker:suggestion:formatBlock','_setSuggestionRange','deletion:','stopListening','getUser','position','markerName','tablePasteChainId','PENDING_ACTION_SUGGESTION','authoredAt','push','parent','fire','markerNameToElements','addCommentThread','updateMarker','nodeAfter','markerReady','oldRange','_suggestions','howMany','mapper','_registerDefaultCallbacks','dataToMarker','detach','batch','nodeBefore','acceptAllSuggestions','hasComments','containsRangeInObject','formatInline:chain','multi','add','_descriptionFactory','ck-suggestion-marker-','options','error-saving-suggestion-data-suggestion-discarded','forward','ready','data','trackChanges.trackFormatChanges','isSelectable','config','getItems','getMultiRangeId','update:suggestion','isDocumentOperation','model','execute','_saved','getFirstMarker','reconvertMarker','init','_setSuggestionData','createdAt','getLastMatchingPosition','_addThreadToSuggestion','catch','track-changes-adapter-missing-getsuggestion','toViewElement','PendingActions','data-suggestion','dataReady','remove','isLocal','stop','refresh','suggestionUnloaded','_suggestionState','addHighlight','start','setSelection','_isDataLoaded','_addSuggestionMarker','markerToData','isCollapsed','backward','createElement','getCustomProperty','removeMarkers','isMultiRange','editingDowncast','name','deleteContent','track-changes-suggestion-data-mismatch','widget','_getAuthorFromId','markDeletion','suggestionChanged','rootName','addClass','moveTargetPosition','isEqual','commands','enableCommand','ck-suggestion-marker--active','low','getSuggestion','elementToElement','upcast','getNearestSelectionRange','_breakSuggestionMarker','includes'];(function(_0xee6e9c,_0x4e44ad){const _0x317f63=function(_0x220550){while(--_0x220550){_0xee6e9c['push'](_0xee6e9c['shift']());}};_0x317f63(++_0x4e44ad);}(_0x4e44,0xa2));const _0x317f=function(_0xee6e9c,_0x4e44ad){_0xee6e9c=_0xee6e9c-0x0;let _0x317f63=_0x4e44[_0xee6e9c];return _0x317f63;};import{Plugin as _0x3d0de0,PendingActions as _0x4bd7d7}from'ckeditor5/src/core';import{LiveRange as _0x46e0ca}from'ckeditor5/src/engine';import{CKEditorError as _0x2d48d0,uid as _0x5704fa,priorities as _0x37ab84,logWarning as _0x3a9846}from'ckeditor5/src/utils';import{toWidget as _0x38297a}from'ckeditor5/src/widget';import{Users as _0x4d81c0,hashObject as _0x41a914}from'ckeditor5-collaboration/src/collaboration-core';import _0x487109 from'./commands/trackchangescommand';import _0xff7935 from'./commands/acceptsuggestioncommand';import _0x45c07c from'./commands/discardsuggestioncommand';import _0x12df94 from'./commands/executeonallsuggestionscommand';import _0x156809 from'./commands/executeonselectedsuggestionscommand';import _0x269255 from'./suggestion';import _0x327d2a from'./suggestiondescriptionfactory';import _0x1b0e72 from'./integrations/aiassistant';import _0x2df099 from'./integrations/alignment';import _0x2f2d60 from'./integrations/basicstyles';import _0x22e168 from'./integrations/blockquote';import _0x54adbc from'./integrations/ckbox';import _0x329c61 from'./integrations/codeblock';import _0x517a97 from'./integrations/comments';import _0xfb1b54 from'./integrations/deletecommand';import _0x253c7f from'./integrations/documentlist';import _0x3ec29a from'./integrations/entercommand';import _0x191aae from'./integrations/findandreplace';import _0x814643 from'./integrations/font';import _0x3def04 from'./integrations/formatpainter';import _0x30a93e from'./integrations/heading';import _0x8996ac from'./integrations/highlight';import _0x2bfd86 from'./integrations/horizontalline';import _0x5205c6 from'./integrations/htmlembed';import _0x20286e from'./integrations/image';import _0x39e475 from'./integrations/imagereplace';import _0x1b7142 from'./integrations/importword';import _0x396550 from'./integrations/indent';import _0x25313a from'./integrations/inputcommand';import _0x31dbe7 from'./integrations/link';import _0x5bf237 from'./integrations/list';import _0x57ea87 from'./integrations/listproperties';import _0x55ae2b from'./integrations/mediaembed';import _0xa8ce from'./integrations/mention';import _0x34910f from'./integrations/pagebreak';import _0x14f466 from'./integrations/paragraph';import _0x548b8e from'./integrations/removeformat';import _0x7e635b from'./integrations/restrictededitingmode';import _0x301abc from'./integrations/shiftentercommand';import _0x52f20a from'./integrations/standardeditingmode';import _0x1f3a5e from'./integrations/style';import _0x2652f6 from'./integrations/table';import _0x4db2a0 from'./integrations/tablemergesplit';import _0x26a321 from'./integrations/tableheadings';import _0x5a5322 from'./integrations/tableclipboard';import _0x46b540 from'./integrations/tablecolumnresize';import _0x400ba3 from'./integrations/template';import _0x17a6c7 from'./integrations/tableofcontents';import _0x4121f9 from'./integrations/title';import _0xbe6e9e from'./integrations/undo';import{getTranslation as _0x57a974}from'./utils/common-translations';import _0x496cdd from'./integrations/tablecaption';import _0x13538b from'./integrations/documentlistproperties';import _0x141486 from'./integrations/tableproperties';import{isEqual as _0x1ad3a7}from'lodash-es';export default class p extends _0x3d0de0{static get[_0x317f('0xf7')](){return['CommentsRepository',_0x4d81c0,_0x4bd7d7,_0x1b0e72,_0x2df099,_0x2f2d60,_0x22e168,_0x54adbc,_0x329c61,_0x517a97,_0xfb1b54,_0x253c7f,_0x13538b,_0x3ec29a,_0x191aae,_0x814643,_0x3def04,_0x30a93e,_0x8996ac,_0x2bfd86,_0x5205c6,_0x20286e,_0x39e475,_0x1b7142,_0x396550,_0x25313a,_0x31dbe7,_0x5bf237,_0x57ea87,_0x55ae2b,_0xa8ce,_0x34910f,_0x14f466,_0x548b8e,_0x7e635b,_0x301abc,_0x52f20a,_0x1f3a5e,_0x2652f6,_0x4db2a0,_0x26a321,_0x496cdd,_0x5a5322,_0x46b540,_0x17a6c7,_0x141486,_0x400ba3,_0x4121f9,_0xbe6e9e];}static get[_0x317f('0xab')](){return'TrackChangesEditing';}constructor(_0x10e768){function _0x4950f2(_0x54c4f9){return _0x54c4f9[_0x317f('0x32')](_0xfc0816=>String['fromCharCode'](_0xfc0816))['join']('');}super(_0x10e768),this['set'](_0x317f('0x16'),[]),this['on'](_0x317f('0x2b'),(_0x57355b,_0xdedfbc,_0x52405e,_0x438c97)=>{this['_model']['change'](()=>{for(const _0x77e8 of[..._0x438c97,..._0x52405e])this[_0x317f('0xb4')]['markers'][_0x317f('0x110')](_0x77e8)&&_0x10e768[_0x317f('0xfd')][_0x317f('0x6d')](_0x77e8);});}),this[_0x317f('0x5b')]=new _0x327d2a(this['editor']['model'][_0x317f('0xd8')],this[_0x317f('0xdf')][_0x317f('0x121')]),this[_0x317f('0xa2')]=null,this[_0x317f('0xf1')]=new Bt(this[_0x317f('0xdf')]),this['_suggestions']=new Map(),this['_commentsRepository']=_0x10e768[_0x317f('0xbc')][_0x317f('0xc1')](_0x317f('0x11')),this['_enabledCommands']=new Set(),this['_model']=this[_0x317f('0xdf')][_0x317f('0x69')],this[_0x317f('0x7e')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x10e768[_0x317f('0x64')]['define'](_0x317f('0x62'),_0x317f('0x12')),this[_0x317f('0xc5')]=_0x10e768['config'][_0x317f('0xc1')]('trackChanges.trackFormatChanges'),_0x10e768[_0x317f('0x64')][_0x317f('0x12d')](_0x317f('0xe2'),!0x0),this[_0x317f('0xcc')]=_0x10e768[_0x317f('0x64')][_0x317f('0xc1')](_0x317f('0xe2')),this[_0x317f('0x10b')]=new _0x487109(_0x10e768,this[_0x317f('0x34')]),this[_0x4950f2([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4950f2([0x34,0x30,0x34,0x36,0x32,0x30,0x35,0x32]);}[_0x317f('0x6e')](){const _0x1f2ef7=this[_0x317f('0xdf')];_0x1f2ef7[_0x317f('0xf')][_0x317f('0xc4')]('editingDowncast')[_0x317f('0x124')]({'model':_0x317f('0xd5'),'view':_0x114929=>{const {id:_0x944bbf,type:_0x4795e7}=this[_0x317f('0x3')](_0x114929[_0x317f('0x40')]),_0x3a06a1=[_0x317f('0x101'),'ck-suggestion-marker-'+_0x4795e7];let _0x1eb4b8=0xbb8;return this[_0x317f('0x16')][_0x317f('0xa0')](_0x114929[_0x317f('0x40')])&&(_0x3a06a1[_0x317f('0x44')](_0x317f('0x99')),_0x1eb4b8=0xbc2),'deletion'==_0x4795e7&&(_0x1eb4b8+=0x5),{'classes':_0x3a06a1,'attributes':{'data-suggestion':_0x944bbf},'priority':_0x1eb4b8};}}),_0x1f2ef7['conversion'][_0x317f('0xc4')](_0x317f('0xf5'))[_0x317f('0x5a')](_0x243fa9=>{_0x243fa9['on'](_0x317f('0x131'),(_0x19685e,_0x43d301,_0x471f32)=>{if(!_0x471f32[_0x317f('0x5d')]['showSuggestionHighlights'])return;const _0x44b06c=_0x43d301[_0x317f('0x13f')];if(!_0x44b06c)return;const _0x53a49f=_0x471f32[_0x317f('0x4f')][_0x317f('0x75')](_0x44b06c);_0x1f2ef7[_0x317f('0x69')][_0x317f('0xd8')][_0x317f('0xc0')](_0x44b06c)&&_0x53a49f&&!_0x53a49f[_0x317f('0x88')](_0x317f('0x8f'))&&_0x53a49f['is'](_0x317f('0xa4'))&&_0x38297a(_0x53a49f,_0x471f32[_0x317f('0xd3')]);},{'priority':_0x317f('0xe9')});}),_0x1f2ef7[_0x317f('0xf')][_0x317f('0xc4')]('dataDowncast')[_0x317f('0x124')]({'model':_0x317f('0xd5'),'view':(_0xd8a881,_0x113df5)=>{if(!_0x113df5[_0x317f('0x5d')]['showSuggestionHighlights'])return null;const {type:_0x27921f}=this[_0x317f('0x3')](_0xd8a881['markerName']);return{'classes':[_0x317f('0x101'),_0x317f('0x5c')+_0x27921f],'priority':0xbb8};}});const _0x4b699f=({showActiveMarkers:_0x403957=!0x0}={})=>(_0x1a1b9c,_0x5c44b8,_0x4e8acd)=>{if(!_0x5c44b8['item'])return;if(_0x5c44b8[_0x317f('0x13f')]['is'](_0x317f('0xaa')))return void _0x4e8acd[_0x317f('0xb1')]['consume'](_0x5c44b8[_0x317f('0x13f')],_0x1a1b9c[_0x317f('0x8c')]);const _0x1b881b=_0x4e8acd[_0x317f('0x4f')][_0x317f('0x75')](_0x5c44b8[_0x317f('0x13f')]);if(!(_0x5c44b8['item']['is'](_0x317f('0xb9'))&&_0x1f2ef7[_0x317f('0x69')][_0x317f('0xd8')][_0x317f('0x109')](_0x5c44b8[_0x317f('0x13f')])&&!_0x1b881b[_0x317f('0x88')](_0x317f('0x7f'))))return;const {id:_0x5ddff0}=this[_0x317f('0x3')](_0x5c44b8[_0x317f('0x40')]);_0x4e8acd['writer'][_0x317f('0x94')]([_0x317f('0x101'),_0x317f('0x108')],_0x1b881b),_0x4e8acd['writer'][_0x317f('0xfa')](_0x317f('0x77'),_0x5ddff0,_0x1b881b),_0x4e8acd[_0x317f('0x4f')][_0x317f('0x10c')](_0x1b881b,_0x5c44b8['markerName']),_0x403957&&(this[_0x317f('0x16')][_0x317f('0xa0')](_0x5c44b8[_0x317f('0x40')])?_0x4e8acd[_0x317f('0xd3')][_0x317f('0x94')](_0x317f('0x99'),_0x1b881b):_0x4e8acd[_0x317f('0xd3')][_0x317f('0xb8')](_0x317f('0x99'),_0x1b881b));for(const _0x108c36 of _0x1f2ef7[_0x317f('0x69')]['createRangeIn'](_0x5c44b8[_0x317f('0x13f')])[_0x317f('0x65')]())_0x4e8acd['consumable'][_0x317f('0x142')](_0x108c36,_0x1a1b9c[_0x317f('0x8c')]);_0x4e8acd[_0x317f('0xb1')][_0x317f('0x142')](_0x5c44b8[_0x317f('0x13f')],_0x1a1b9c[_0x317f('0x8c')]);};_0x1f2ef7[_0x317f('0xf')][_0x317f('0xc4')](_0x317f('0xf5'))['add'](_0x41aa4f=>{_0x41aa4f['on'](_0x317f('0x3a'),(_0xdf0984,_0x3aa89b,_0x2ec6d7)=>{_0x2ec6d7[_0x317f('0x5d')][_0x317f('0x138')]&&_0x4b699f({'showActiveMarkers':!0x1})(_0xdf0984,_0x3aa89b,_0x2ec6d7);},{'priority':_0x317f('0xf9')});}),_0x1f2ef7[_0x317f('0xf')][_0x317f('0xc4')](_0x317f('0xf5'))[_0x317f('0x84')]({'model':_0x317f('0xd5'),'view':(_0x38530c,_0x2d3335)=>_0x2d3335[_0x317f('0x5d')]['showSuggestionHighlights']?null:{'group':_0x317f('0xd5'),'name':_0x38530c[_0x317f('0xae')](0xb)}}),_0x1f2ef7['conversion'][_0x317f('0xc4')](_0x317f('0x9d'))[_0x317f('0x9c')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3bb4d9,{writer:_0x4f514a})=>{let _0x4bb0ae='suggestion:'+_0x3bb4d9[_0x317f('0xa7')](_0x317f('0x30'))+':'+_0x3bb4d9['getAttribute']('id');return _0x3bb4d9['getAttribute'](_0x317f('0x10f'))&&(_0x4bb0ae+=':'+_0x3bb4d9[_0x317f('0xa7')](_0x317f('0x10f'))),_0x4f514a[_0x317f('0x87')]('$marker',{'data-name':_0x4bb0ae});}}),_0x1f2ef7[_0x317f('0xf')][_0x317f('0xc4')](_0x317f('0x9d'))[_0x317f('0x51')]({'view':_0x317f('0xd5')}),_0x1f2ef7['conversion'][_0x317f('0xc4')](_0x317f('0x8b'))['add'](_0x4adada=>{_0x4adada['on'](_0x317f('0x3a'),_0x4b699f(),{'priority':_0x317f('0xe9')});}),_0x1f2ef7['conversion'][_0x317f('0xc4')](_0x317f('0x8b'))['add'](_0x350cec=>{_0x350cec['on'](_0x317f('0xed'),(_0x448f0e,_0x34ac86,_0x5dc2e0)=>{const _0x47dd73=_0x5dc2e0['mapper'][_0x317f('0x47')](_0x34ac86[_0x317f('0x40')]);if(_0x47dd73)for(const _0x301546 of _0x47dd73)_0x301546[_0x317f('0x88')](_0x317f('0x7f'))||(_0x5dc2e0[_0x317f('0xd3')][_0x317f('0xb8')]([_0x317f('0x101'),_0x317f('0x108'),_0x317f('0x99')],_0x301546),_0x5dc2e0[_0x317f('0xd3')]['removeAttribute'](_0x317f('0x77'),_0x301546),_0x5dc2e0['mapper']['unbindElementFromMarkerName'](_0x301546,_0x34ac86[_0x317f('0x40')]));},{'priority':'high'});}),_0x1f2ef7[_0x317f('0x69')][_0x317f('0x1c')][_0x317f('0xfe')](_0x39a3ad=>{let _0x4da394=!0x1;const _0x97c3ad=Array[_0x317f('0xe6')](_0x1f2ef7[_0x317f('0x69')]['document']['differ'][_0x317f('0x8')]()),_0x433ec4=new Set();for(const {name:_0x77df6d,data:_0x42dfde}of _0x97c3ad){const {group:_0x4960ba,type:_0x2e58ab,id:_0x112e3d}=this[_0x317f('0x3')](_0x77df6d);if(_0x317f('0xd5')!==_0x4960ba)continue;const _0x3c87f5=this[_0x317f('0x4d')][_0x317f('0xc1')](_0x112e3d);if(null!=_0x42dfde['newRange']){_0x317f('0xa5')==_0x2e58ab&&(_0x4da394=_0x4da394||$t(_0x42dfde[_0x317f('0xbf')],_0x77df6d,_0x39a3ad,_0x1f2ef7[_0x317f('0x69')][_0x317f('0xd8')]));if(_0x42dfde[_0x317f('0xbf')]['isCollapsed']||'$graveyard'==_0x42dfde[_0x317f('0xbf')][_0x317f('0x13e')]['rootName']||_0x317f('0x36')==_0x2e58ab&&!Rt(_0x42dfde[_0x317f('0xbf')])||_0x317f('0x118')==_0x2e58ab&&!(!Mt(_0x4f9e62=_0x42dfde[_0x317f('0xbf')])&&!function(_0x2820ac){return _0x2820ac['start'][_0x317f('0x45')]==_0x2820ac[_0x317f('0x13d')][_0x317f('0x54')]&&_0x2820ac[_0x317f('0x80')][_0x317f('0xdb')];}(_0x4f9e62)))_0x39a3ad[_0x317f('0x21')](_0x77df6d),_0x4da394=!0x0;else{if(!_0x3c87f5||!_0x3c87f5['isInContent'])continue;_0x433ec4[_0x317f('0x5a')](_0x3c87f5);}}}var _0x4f9e62;return _0x433ec4[_0x317f('0xce')]>0x0&&(_0x4da394=!!this[_0x317f('0x11b')](_0x433ec4)||_0x4da394),_0x4da394;}),_0x1f2ef7[_0x317f('0x69')][_0x317f('0x1c')]['registerPostFixer'](_0x24cedd=>{let _0x46c8f4=!0x1;for(const _0x5a639f of _0x1f2ef7[_0x317f('0x69')][_0x317f('0x1c')][_0x317f('0x111')][_0x317f('0x1')]()){if(_0x317f('0xef')!=_0x5a639f[_0x317f('0xc7')])continue;const _0x8684bd=_0x5a639f[_0x317f('0x3f')][_0x317f('0xba')](_0x5a639f[_0x317f('0xc9')]);if(_0x8684bd['isAtEnd'])for(const _0x3c45a6 of this[_0x317f('0x4d')][_0x317f('0xf4')]()){if(_0x3c45a6['isMultiRange']||!_0x3c45a6[_0x317f('0xad')])continue;if(_0x317f('0x36')!=_0x3c45a6['type'])continue;const _0x4ce484=_0x3c45a6[_0x317f('0xcf')]();if(_0x4ce484[_0x317f('0x80')]['parent']!=_0x4ce484['end'][_0x317f('0x45')]&&_0x4ce484[_0x317f('0x13d')]['isEqual'](_0x5a639f[_0x317f('0x3f')])){const _0x451161=_0x1f2ef7[_0x317f('0x69')][_0x317f('0xeb')](_0x4ce484[_0x317f('0x80')],_0x8684bd);_0x24cedd[_0x317f('0x49')](_0x3c45a6[_0x317f('0x6c')](),{'range':_0x451161}),_0x46c8f4=!0x0;}}}return _0x46c8f4;}),_0x1f2ef7['model'][_0x317f('0xe7')]['on'](_0x317f('0x67'),(_0x11df74,_0x485f55,_0xda3969)=>{if(null==_0xda3969){const {id:_0x59daf7}=this[_0x317f('0x3')](_0x485f55[_0x317f('0x8c')]),_0x421e19=this[_0x317f('0x4d')][_0x317f('0xc1')](_0x59daf7);_0x421e19&&_0x421e19[_0x317f('0xdc')](_0x485f55[_0x317f('0x8c')]);}}),_0x1f2ef7[_0x317f('0x69')][_0x317f('0x1c')]['on'](_0x317f('0xfc'),()=>{const _0x42b51b=Array[_0x317f('0xe6')](_0x1f2ef7[_0x317f('0x69')]['document'][_0x317f('0x111')][_0x317f('0x8')]())[_0x317f('0xff')](_0xafe459=>_0x317f('0xd5')===this[_0x317f('0x3')](_0xafe459[_0x317f('0x8c')])['group']);if(0x0===_0x42b51b[_0x317f('0xc9')])return;_0x42b51b[_0x317f('0xc6')]((_0x17bd20,_0x149a1e)=>{const _0x2711cd=_0x17bd20[_0x317f('0x61')][_0x317f('0x4c')],_0x59c321=_0x149a1e[_0x317f('0x61')]['oldRange'];return null===_0x2711cd&&null===_0x59c321?0x0:null===_0x2711cd&&null!==_0x59c321?-0x1:null!==_0x2711cd&&null===_0x59c321?0x1:_0x2711cd[_0x317f('0x80')][_0x317f('0xb7')](_0x59c321[_0x317f('0x80')])?-0x1:0x1;});const _0x416b73=new Set(),_0x3fd8f6=new Set();for(const {name:_0x593a49,data:_0x4b1e2b}of _0x42b51b){const {id:_0x4f40f2}=this[_0x317f('0x3')](_0x593a49);if(null===_0x4b1e2b[_0x317f('0x4c')]){const _0x4d5b01=this[_0x317f('0x123')](_0x593a49);_0x3fd8f6['add'](_0x4d5b01);}else{const _0x524952=this[_0x317f('0x4d')]['get'](_0x4f40f2);null!==_0x4b1e2b[_0x317f('0xbf')]||_0x524952['isInContent']?(_0x416b73[_0x317f('0x5a')](_0x524952['head']),_0x3fd8f6[_0x317f('0x5a')](_0x524952)):this[_0x317f('0x5')](_0x524952);}}_0x3fd8f6[_0x317f('0xce')]>0x0&&this[_0x317f('0x106')](_0x3fd8f6);for(const _0x233f9c of _0x416b73)this[_0x317f('0x46')](_0x317f('0x92'),_0x233f9c);}),_0x1f2ef7['model']['on']('applyOperation',(_0x8e24e5,_0x389996)=>{const _0x19636a=_0x389996[0x0];if(!this[_0x317f('0x4d')][_0x317f('0xce')])return;if(!_0x19636a[_0x317f('0x68')])return;if(_0x19636a['batch'][_0x317f('0x134')]||!_0x19636a[_0x317f('0x53')][_0x317f('0x7a')])return;let _0x54cb48,_0x1cc11d;switch(_0x19636a[_0x317f('0xc7')]){case _0x317f('0xef'):_0x54cb48=_0x1f2ef7['model'][_0x317f('0x127')](_0x19636a[_0x317f('0x3f')]),_0x1cc11d=_0x54cb48[_0x317f('0xba')](_0x19636a[_0x317f('0x4e')]);break;case _0x317f('0xc2'):_0x54cb48=_0x1f2ef7[_0x317f('0x69')][_0x317f('0x127')](_0x19636a[_0x317f('0x141')]),_0x1cc11d=_0x1f2ef7[_0x317f('0x69')][_0x317f('0x127')](_0x19636a[_0x317f('0x95')]);break;case _0x317f('0x13'):_0x54cb48=_0x1f2ef7[_0x317f('0x69')]['createPositionAt'](_0x19636a[_0x317f('0xc')]),_0x1cc11d=_0x54cb48['getShiftedBy'](_0x19636a['howMany']);break;default:return;}const _0x2eb953=_0x1f2ef7[_0x317f('0x69')][_0x317f('0xeb')](_0x54cb48,_0x1cc11d);_0x1f2ef7['model'][_0x317f('0x1e')](()=>{for(const {suggestion:_0x2329a8,meta:_0x21923e}of this[_0x317f('0x15')](_0x2eb953)){if(_0x2329a8['isMultiRange'])continue;if('formatInline'==_0x2329a8[_0x317f('0xc7')])continue;const _0x39c005=_0x2329a8[_0x317f('0x61')]&&_0x2329a8['data'][_0x317f('0x1a')];(_0x317f('0x36')!=_0x2329a8['type']||_0x317f('0xc2')==_0x19636a['type']&&!_0x39c005)&&(_0x21923e['containsRangeInObject']||_0x317f('0x12a')==_0x2329a8[_0x317f('0xc7')]&&_0x21923e[_0x317f('0x23')]||_0x2329a8['getFirstRange']()['containsRange'](_0x2eb953)&&this[_0x317f('0x9f')](_0x2329a8,_0x54cb48,_0x1cc11d));}});},{'priority':_0x317f('0xe5')}),_0x1f2ef7[_0x317f('0x69')]['on']('deleteContent',(_0x5a3fa8,_0x21933b)=>{const _0x3a3aeb=_0x21933b[0x0],_0x2d0ce5=_0x21933b[0x1];if(_0x2d0ce5&&_0x2d0ce5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x317f('0x10b')][_0x317f('0x100')])return;if(_0x3a3aeb[_0x317f('0x85')])return;const _0x1cb4de=_0x1f2ef7['model'][_0x317f('0xd8')],{start:_0x149c26,end:_0x3d2fa9}=_0x3a3aeb[_0x317f('0xcf')](),_0x4f2776=_0x149c26[_0x317f('0x4a')]&&_0x1cb4de[_0x317f('0x136')](_0x149c26[_0x317f('0x4a')])?null:_0x1cb4de['getNearestSelectionRange'](_0x149c26,_0x317f('0x5f')),_0x36d84c=_0x3d2fa9['nodeBefore']&&_0x1cb4de[_0x317f('0x136')](_0x3d2fa9['nodeBefore'])?null:_0x1cb4de[_0x317f('0x9e')](_0x3d2fa9,_0x317f('0x86')),_0x394635=_0x1f2ef7['model'][_0x317f('0xeb')](_0x4f2776?_0x4f2776['start']:_0x149c26,_0x36d84c?_0x36d84c[_0x317f('0x13d')]:_0x3d2fa9);_0x1f2ef7['model'][_0x317f('0x1e')](_0x2dcafa=>{this[_0x317f('0x91')](_0x394635);const _0x332699=_0x1f2ef7[_0x317f('0x69')][_0x317f('0xd8')][_0x317f('0x9e')](_0x394635[_0x317f('0x80')]);_0x3a3aeb['is']('documentSelection')?_0x2dcafa['setSelection'](_0x332699):_0x3a3aeb[_0x317f('0xbb')](_0x332699);}),_0x5a3fa8[_0x317f('0x7b')]();},{'priority':_0x37ab84['normal']+0xa}),_0x1f2ef7[_0x317f('0x69')]['on'](_0x317f('0x12b'),(_0x53a0bf,_0x4017e2)=>{const _0x1dea7d=_0x4017e2[_0x4017e2[_0x317f('0xc9')]-0x1];_0x1dea7d&&_0x1dea7d[_0x317f('0xf3')]||this[_0x317f('0xe')]||this[_0x317f('0x10b')]['value']&&(_0x1f2ef7[_0x317f('0x69')][_0x317f('0x1e')](()=>{let _0x5c7db4=_0x1f2ef7[_0x317f('0x69')][_0x317f('0x12b')](_0x4017e2[0x0],_0x4017e2[0x1],_0x4017e2[0x2],{'forceDefaultExecution':!0x0});if(!_0x5c7db4)return;_0x53a0bf['return']=_0x5c7db4[_0x317f('0xa8')]();const _0x2df812=_0x5c7db4[_0x317f('0x13d')][_0x317f('0x54')],_0x2fde09=_0x1f2ef7[_0x317f('0x69')][_0x317f('0xd8')];_0x2df812&&_0x2fde09['isBlock'](_0x2df812)&&!_0x2fde09[_0x317f('0xc0')](_0x2df812)&&(_0x5c7db4=_0x1f2ef7[_0x317f('0x69')][_0x317f('0xeb')](_0x5c7db4[_0x317f('0x80')],_0x1f2ef7['model'][_0x317f('0x127')](_0x2df812,_0x317f('0x13d')))),this[_0x317f('0xb5')](_0x5c7db4);}),_0x53a0bf[_0x317f('0x7b')]());},{'priority':'high'}),this[_0x317f('0xdf')][_0x317f('0x97')][_0x317f('0x5a')]('trackChanges',this[_0x317f('0x10b')]),this[_0x317f('0x98')](_0x317f('0xd1'));const _0x231b33=new _0xff7935(_0x1f2ef7,this[_0x317f('0x4d')]);_0x1f2ef7[_0x317f('0x97')]['add']('acceptSuggestion',_0x231b33),this[_0x317f('0x98')](_0x317f('0xaf'));const _0x37da61=new _0x45c07c(_0x1f2ef7,this[_0x317f('0x4d')]);_0x1f2ef7[_0x317f('0x97')][_0x317f('0x5a')](_0x317f('0x11f'),_0x37da61),this[_0x317f('0x98')](_0x317f('0x11f')),_0x1f2ef7['commands'][_0x317f('0x5a')](_0x317f('0x55'),new _0x12df94(_0x1f2ef7,_0x231b33,this['_suggestions'])),this[_0x317f('0x98')](_0x317f('0x55')),_0x1f2ef7[_0x317f('0x97')]['add'](_0x317f('0x112'),new _0x12df94(_0x1f2ef7,_0x37da61,this['_suggestions'])),this[_0x317f('0x98')]('discardAllSuggestions'),_0x1f2ef7[_0x317f('0x97')][_0x317f('0x5a')](_0x317f('0x12f'),new _0x156809(_0x1f2ef7,_0x231b33,this[_0x317f('0x4d')])),this[_0x317f('0x98')](_0x317f('0x12f')),_0x1f2ef7['commands'][_0x317f('0x5a')](_0x317f('0xf0'),new _0x156809(_0x1f2ef7,_0x37da61,this[_0x317f('0x4d')])),this[_0x317f('0x98')](_0x317f('0xf0'));const _0x353373=_0x1f2ef7['plugins'][_0x317f('0xc1')](_0x317f('0x11'));this[_0x317f('0x4')](_0x353373,_0x317f('0xc8'),(_0x37956f,{threadId:_0x479cb2})=>{const _0x504524=this[_0x317f('0x4d')][_0x317f('0xc1')](_0x479cb2);_0x504524&&_0x504524[_0x317f('0x14')]&&0x1===_0x504524[_0x317f('0x14')][_0x317f('0xc9')]&&this['_updateSuggestionData'](_0x479cb2,{'hasComments':!0x0});},{'priority':_0x317f('0x9a')}),this['listenTo'](_0x353373,_0x317f('0xee'),(_0x148160,{threadId:_0x39eae5})=>{const _0x3bf881=this[_0x317f('0x4d')]['get'](_0x39eae5);_0x3bf881&&_0x3bf881[_0x317f('0x14')]&&!_0x3bf881[_0x317f('0x14')][_0x317f('0xc9')]&&this[_0x317f('0xb2')](_0x39eae5,{'hasComments':!0x1});},{'priority':'low'});}set[_0x317f('0xf8')](_0x243fe1){if(this[_0x317f('0xa2')])throw new _0x2d48d0('track-changes-adapter-already-set',this);this[_0x317f('0xa2')]=_0x243fe1;}get[_0x317f('0xf8')](){return this[_0x317f('0xa2')];}[_0x317f('0xa1')]({skipNotAttached:_0x16d087=!0x1,toJSON:_0x1ba402=!0x1}={}){const _0x98f735=[];for(const _0x3996e7 of this['_suggestions'][_0x317f('0xf4')]())_0x16d087&&!_0x3996e7[_0x317f('0xad')]||_0x98f735[_0x317f('0x44')](_0x3996e7);return _0x1ba402?_0x98f735[_0x317f('0x32')](_0x388e17=>_0x388e17['toJSON']()):_0x98f735;}[_0x317f('0x9b')](_0x2c9ae5){const _0x455629=this[_0x317f('0x4d')][_0x317f('0xc1')](_0x2c9ae5);if(!_0x455629)throw new _0x2d48d0(_0x317f('0x10e'),this);return _0x455629;}['hasSuggestion'](_0x90a98a){return this[_0x317f('0x4d')]['has'](_0x90a98a);}[_0x317f('0x120')](_0x5c4d98){const {authorId:_0x1e46c3,id:_0x367e7b,attributes:_0x15babb}=_0x5c4d98,[_0x6b2942,_0x254fa0]=_0x5c4d98[_0x317f('0xc7')][_0x317f('0xc2')](':'),_0x3320b2=this[_0x317f('0x4d')][_0x317f('0xc1')](_0x367e7b)||this[_0x317f('0xd7')](_0x6b2942,_0x254fa0,_0x367e7b,_0x1e46c3,_0x15babb);if(this[_0x317f('0x72')](_0x3320b2),this[_0x317f('0xca')](_0x3320b2,_0x6b2942,_0x254fa0||null,_0x1e46c3),_0x3320b2['createdAt']=_0x5c4d98[_0x317f('0x70')],_0x3320b2['_isDataLoaded']=!0x0,_0x15babb&&_0x15babb[_0x317f('0x107')]){const _0x40782a=_0x15babb[_0x317f('0x107')],_0x2d3f98=this[_0x317f('0x29')](_0x40782a[_0x317f('0xbd')]);_0x3320b2[_0x317f('0x43')]=_0x40782a[_0x317f('0x70')],_0x3320b2['author']=_0x2d3f98,_0x3320b2[_0x317f('0xec')]=!0x0;}else _0x3320b2[_0x317f('0x43')]=_0x5c4d98['createdAt'];switch(_0x5c4d98[_0x317f('0x61')]&&(_0x3320b2[_0x317f('0x61')]=_0x5c4d98['data']),_0x5c4d98[_0x317f('0xfb')]&&(_0x3320b2[_0x317f('0xfb')]=_0x5c4d98['attributes']),this[_0x317f('0xa2')]&&this[_0x317f('0xa2')][_0x317f('0xa6')]||(_0x3320b2[_0x317f('0x6b')]=!0x0),this[_0x317f('0x7e')][_0x317f('0xc1')](_0x3320b2)){case _0x317f('0xcb'):this['_suggestionState'][_0x317f('0xd6')](_0x3320b2,'dataReady');break;case'markerReady':_0x3320b2['isInContent']?(this['_refreshSuggestionsChain'](new Set([_0x3320b2])),this['_joinWithAdjacentSuggestions'](new Set([_0x3320b2])),this[_0x317f('0x7e')][_0x317f('0xd6')](_0x3320b2,_0x317f('0x60')),this[_0x317f('0x46')](_0x317f('0x129'),_0x3320b2)):this[_0x317f('0x7e')][_0x317f('0xd6')](_0x3320b2,_0x317f('0x24'));}return _0x3320b2;}[_0x317f('0xaf')](_0x2fc8d6){this[_0x317f('0xf3')](()=>{this[_0x317f('0xdf')]['model'][_0x317f('0x1e')](()=>{for(const _0x567aca of _0x2fc8d6[_0x317f('0x122')]())_0x567aca[_0x317f('0x2')]();});});}[_0x317f('0x11f')](_0x5d2718){this[_0x317f('0xf3')](()=>{this['editor'][_0x317f('0x69')][_0x317f('0x1e')](()=>{for(const _0x13f3b5 of _0x5d2718[_0x317f('0x122')]())_0x13f3b5[_0x317f('0x25')]();});});}[_0x317f('0x98')](_0x2a0a93,_0x1d5fca){const _0x469111=this[_0x317f('0xdf')]['commands'][_0x317f('0xc1')](_0x2a0a93);if(!_0x469111)throw new _0x2d48d0(_0x317f('0x2e'),this,{'commandName':_0x2a0a93});this[_0x317f('0x34')]['add'](_0x469111),_0x1d5fca&&_0x469111['on']('execute',(_0x295558,_0x26ff61)=>{this['trackChangesCommand'][_0x317f('0x100')]&&(this[_0x317f('0xe')]||_0x26ff61['length']>0x0&&_0x26ff61[_0x26ff61['length']-0x1]&&_0x26ff61[_0x26ff61[_0x317f('0xc9')]-0x1][_0x317f('0xf3')]||(_0x295558[_0x317f('0xf2')]=_0x1d5fca((..._0x2ba7a0)=>_0x469111['execute'](..._0x2ba7a0,{'forceDefaultExecution':!0x0}),..._0x26ff61),_0x295558[_0x317f('0x7b')]()));},{'priority':'high'});}[_0x317f('0xf3')](_0x3bbea2){let _0x5753b9,_0x478396;const _0x1334b8=this[_0x317f('0xe')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5753b9=_0x3bbea2();}catch(_0x1f2611){_0x478396=_0x1f2611;}return _0x1334b8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x478396&&_0x2d48d0['rethrowUnexpectedError'](_0x478396,this),_0x5753b9;}[_0x317f('0xb5')](_0x55294f,_0x248ce0=null,_0x187ca5={}){if(_0x55294f[_0x317f('0x85')])return null;const _0xca5dfb=this[_0x317f('0xdf')][_0x317f('0xbc')][_0x317f('0xc1')]('Users')['me'];for(const {suggestion:_0x461d1e,meta:_0x741926}of this['_findSuggestions'](_0x55294f,_0x317f('0x12a')))if(_0x741926['isOwn']){if(!_0x741926[_0x317f('0xea')]){if(_0x741926['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ot(_0x461d1e,_0x187ca5))continue;return _0x461d1e;}if(Ot(_0x461d1e,_0x187ca5))return _0x461d1e;this[_0x317f('0x9f')](_0x461d1e,_0x55294f['start'],_0x55294f[_0x317f('0x13d')]);break;}if(_0x248ce0==_0x461d1e[_0x317f('0x140')]&&Ot(_0x461d1e,_0x187ca5)){const _0x2b6482=_0x461d1e[_0x317f('0xcf')]();return _0x2b6482['start'][_0x317f('0x96')](_0x55294f[_0x317f('0x13d')])?this[_0x317f('0x3b')](_0x461d1e,this[_0x317f('0xb4')][_0x317f('0xeb')](_0x55294f['start'],_0x2b6482[_0x317f('0x13d')])):this['_setSuggestionRange'](_0x461d1e,this[_0x317f('0xb4')][_0x317f('0xeb')](_0x2b6482[_0x317f('0x80')],_0x55294f[_0x317f('0x13d')])),_0x461d1e;}}const _0x2082fb=_0x5704fa(),_0xa452c1=_0xca5dfb['id'],_0x49e3a5=_0x248ce0?_0x317f('0x133')+_0x248ce0:_0x317f('0x12a'),_0x5ac574=this[_0x317f('0x6f')]({'id':_0x2082fb,'type':_0x49e3a5,'createdAt':new Date(),'authorId':_0xa452c1,'attributes':_0x187ca5});return this[_0x317f('0x83')](_0x49e3a5,_0x2082fb,_0xa452c1,_0x55294f),_0x5ac574;}['markMultiRangeInsertion'](_0x6ed20,_0x5a87e1=_0x317f('0x59'),_0x7cf230={}){const _0x4a0ecd=this[_0x317f('0xdf')][_0x317f('0xbc')][_0x317f('0xc1')](_0x317f('0xc3'))['me'],_0x44348f=this['_suggestionFactory'][_0x317f('0x1f')](_0x317f('0x12a'),_0x5a87e1,_0x317f('0x11d'));for(const _0x5b82c0 of this[_0x317f('0xa1')]())if(_0x5b82c0['author']['id']==_0x4a0ecd['id']&&'insertion'==_0x5b82c0[_0x317f('0xc7')]&&_0x5b82c0[_0x317f('0x140')]==_0x5a87e1&&Ot(_0x5b82c0,_0x7cf230)&&(_0x44348f(_0x5b82c0['getRanges'](),_0x6ed20)||_0x44348f(_0x6ed20,_0x5b82c0[_0x317f('0x11a')]()))){for(const _0x93b815 of _0x6ed20)_0x5b82c0[_0x317f('0x113')](_0x93b815);return _0x5b82c0;}for(const {suggestion:_0x1369d4,meta:_0x543759}of this[_0x317f('0x15')](_0x6ed20,'insertion')){if(!_0x543759[_0x317f('0x23')])continue;if(!this[_0x317f('0xcc')]&&_0x543759['containsRangeInObject'])continue;if(!Ot(_0x1369d4,_0x7cf230))continue;let _0x15e3a=!0x0;for(const _0x1b15f0 of _0x1369d4['getRanges']())for(const _0x44d8d5 of _0x6ed20)if(!_0x1b15f0[_0x317f('0x103')](_0x44d8d5)){_0x15e3a=!0x1;break;}if(_0x15e3a)return _0x1369d4;}const _0x5af205=_0x5704fa(),_0xc5a263=_0x4a0ecd['id'],_0x124bf0=_0x317f('0x133')+_0x5a87e1,_0x4d9b5e=this[_0x317f('0x6f')]({'id':_0x5af205,'type':_0x124bf0,'createdAt':new Date(),'authorId':_0xc5a263,'attributes':_0x7cf230});for(const _0x58ad21 of _0x6ed20)this[_0x317f('0x83')](_0x124bf0,_0x5af205,_0xc5a263,_0x58ad21,_0x269255[_0x317f('0x66')]());return _0x4d9b5e;}[_0x317f('0x26')](_0x19daba,_0x4f461a,_0x3e68d5=null,_0x4193e1={}){if(_0x3e68d5=_0x3e68d5||Nt(_0x4f461a),_0x19daba['isCollapsed'])return null;if(_0x317f('0xac')===this[_0x317f('0xc5')]){const _0x263e3c=this['_suggestionFactory'][_0x317f('0x1f')]('formatInline',_0x3e68d5,_0x317f('0x2'));return this[_0x317f('0xf3')](()=>_0x263e3c([_0x19daba],_0x4f461a,_0x4193e1)),null;}const _0x700e2a=this['editor'][_0x317f('0xbc')][_0x317f('0xc1')]('Users')['me'],_0x378534=[];if('always'!==this[_0x317f('0xc5')])for(const {suggestion:_0x561ddf,meta:_0x4d4df8}of this[_0x317f('0x15')](_0x19daba,_0x317f('0x12a')))_0x4d4df8[_0x317f('0x23')]&&!_0x4d4df8['isInsideObject']&&_0x378534[_0x317f('0x44')](..._0x561ddf[_0x317f('0x11a')]());const _0x925bf9=function(_0x2eecd5,_0x141580){const _0x4669fc=[];for(const _0x99a2ad of _0x141580){const _0x27cef7=_0x2eecd5[_0x317f('0x28')](_0x99a2ad);_0x27cef7&&_0x4669fc['push'](_0x27cef7);}return _0x4669fc;}(_0x19daba,_0x378534),_0x46b3f1=function(_0x21937e,_0x403119){const _0x255741=[_0x21937e];for(const _0x1d68a8 of _0x403119){let _0x57b579=0x0;for(;_0x57b579<_0x255741[_0x317f('0xc9')];){const _0x79ded0=_0x255741[_0x57b579][_0x317f('0x31')](_0x1d68a8);_0x255741[_0x317f('0x125')](_0x57b579,0x1,..._0x79ded0),_0x57b579+=_0x79ded0['length'];}}return _0x255741;}(_0x19daba,_0x378534);_0x925bf9[_0x317f('0xc9')]&&this[_0x317f('0xb4')][_0x317f('0x1e')](()=>{for(const _0x576e8b of _0x925bf9){const _0x598dd9=this[_0x317f('0xf1')][_0x317f('0x1f')](_0x317f('0xa5'),_0x3e68d5,_0x317f('0x2'));this[_0x317f('0xf3')](()=>_0x598dd9([_0x576e8b],_0x4f461a,_0x4193e1));}});for(const _0xc85016 of _0x46b3f1){let _0x587e1e=null,_0x2049b5=_0xc85016[_0x317f('0x80')],_0x39bd7f=_0xc85016['end'];for(const {suggestion:_0x73ef8f,meta:_0x42b4cf}of this[_0x317f('0x15')](_0xc85016,_0x317f('0xa5'))){if(!_0x42b4cf[_0x317f('0x23')])continue;if(_0x73ef8f[_0x317f('0x140')]!=_0x3e68d5)continue;if(!Ot(_0x73ef8f,_0x4193e1))continue;const _0x4ee470=_0x73ef8f[_0x317f('0xcf')]();if(_0x4ee470[_0x317f('0x103')](_0xc85016,!0x0))return null;_0x2049b5=_0x2049b5['isBefore'](_0x4ee470[_0x317f('0x80')])?_0x2049b5:_0x4ee470[_0x317f('0x80')],_0x39bd7f=_0x39bd7f['isAfter'](_0x4ee470['end'])?_0x39bd7f:_0x4ee470[_0x317f('0x13d')],_0x587e1e?_0x4ee470[_0x317f('0x80')][_0x317f('0xb7')](_0x587e1e[_0x317f('0xcf')]()[_0x317f('0x80')])?(_0x587e1e[_0x317f('0x89')](),_0x587e1e=_0x73ef8f):_0x73ef8f['removeMarkers']():_0x587e1e=_0x73ef8f;}const _0x5e3787=this[_0x317f('0xb4')][_0x317f('0xeb')](_0x2049b5,_0x39bd7f);if(_0x587e1e)this[_0x317f('0x3b')](_0x587e1e,_0x5e3787);else{const _0x28e688=_0x5704fa(),_0x524fbe=_0x700e2a['id'];this[_0x317f('0x6f')]({'id':_0x28e688,'type':'formatInline:'+_0x3e68d5,'data':_0x4f461a,'createdAt':new Date(),'authorId':_0x524fbe,'attributes':_0x4193e1}),this[_0x317f('0x83')](_0x317f('0x13b')+_0x3e68d5,_0x28e688,_0x524fbe,_0x5e3787);}}return null;}[_0x317f('0xa')](_0x5698f0,_0x528200,_0x2065a8=[],_0x418054=null,_0x13fd36={}){_0x528200['formatGroupId']||(_0x528200[_0x317f('0x11e')]=_0x528200[_0x317f('0xde')]),_0x528200['multipleBlocks']=_0x5698f0['is'](_0x317f('0x38')),_0x418054=_0x418054||Nt(_0x528200);const _0x382055=_0x2065a8['map'](_0x516a94=>jt(_0x516a94,this[_0x317f('0xb4')])),_0x392807=_0x5698f0['is'](_0x317f('0x38'))?_0x5698f0:jt(_0x5698f0,this['_model']);if(_0x317f('0xac')===this['_trackFormatChanges']){const _0xb60920=this['_suggestionFactory']['getSuggestionCallback'](_0x317f('0x36'),_0x418054,'accept');return this[_0x317f('0xf3')](()=>_0xb60920([_0x392807],_0x528200,_0x13fd36)),null;}_0x382055[_0x317f('0x44')](_0x392807);let _0x569b7e=!0x0;for(const _0x3927a9 of _0x382055)if(!this[_0x317f('0xa3')](_0x3927a9)){_0x569b7e=!0x1;break;}if(_0x569b7e&&_0x317f('0xb0')!==this[_0x317f('0xc5')]){const _0x10c3ee=this[_0x317f('0xf1')]['getSuggestionCallback'](_0x317f('0x36'),_0x418054,_0x317f('0x2'));return this['forceDefaultExecution'](()=>_0x10c3ee([_0x392807],_0x528200,_0x13fd36)),null;}let _0x452bc1=null,_0x122d8f=_0x392807[_0x317f('0x80')],_0x1e6c99=_0x392807[_0x317f('0x13d')];for(const {suggestion:_0x35920b,meta:_0x5d6f5f}of this[_0x317f('0x15')](_0x392807,_0x317f('0x36'))){if(!_0x5d6f5f[_0x317f('0x23')])continue;if(_0x5d6f5f['isNextTo']||_0x5d6f5f['containsRangeInObject']||_0x5d6f5f[_0x317f('0xd2')])continue;if(_0x35920b[_0x317f('0x61')][_0x317f('0x11e')]!=_0x528200['formatGroupId'])continue;if(!Ot(_0x35920b,_0x13fd36))continue;const _0x44c61a=_0x35920b[_0x317f('0xcf')]();if(_0x35920b[_0x317f('0x140')]==_0x418054){if(_0x44c61a[_0x317f('0x103')](_0x392807,!0x0))return null;_0x122d8f=_0x122d8f[_0x317f('0xb7')](_0x44c61a[_0x317f('0x80')])?_0x122d8f:_0x44c61a[_0x317f('0x80')],_0x1e6c99=_0x1e6c99['isAfter'](_0x44c61a[_0x317f('0x13d')])?_0x1e6c99:_0x44c61a[_0x317f('0x13d')],_0x452bc1?_0x44c61a['start'][_0x317f('0xb7')](_0x452bc1[_0x317f('0xcf')]()[_0x317f('0x80')])?(_0x452bc1[_0x317f('0x89')](),_0x452bc1=_0x35920b):_0x35920b[_0x317f('0x89')]():_0x452bc1=_0x35920b;}else{const _0x4e403e=_0x392807[_0x317f('0x28')](_0x44c61a);this['_cutOutSuggestionMarker'](_0x35920b,_0x4e403e);}}const _0x219267=this['editor']['plugins'][_0x317f('0xc1')](_0x317f('0xc3'))['me'],_0x105fa=_0x5704fa(),_0x2f584a=_0x219267['id'];if(_0x452bc1)return this[_0x317f('0x3b')](_0x452bc1,this[_0x317f('0xb4')][_0x317f('0xeb')](_0x122d8f,_0x1e6c99)),_0x452bc1;{const _0x5497c0=this['_setSuggestionData']({'id':_0x105fa,'type':_0x317f('0x2a')+_0x418054,'data':_0x528200,'createdAt':new Date(),'authorId':_0x2f584a,'attributes':_0x13fd36});return this[_0x317f('0x83')](_0x317f('0x2a')+_0x418054,_0x105fa,_0x2f584a,this[_0x317f('0xb4')][_0x317f('0xeb')](_0x122d8f,_0x1e6c99)),_0x5497c0;}}['markMultiRangeBlockFormat'](_0x3c681a,_0x29a338,_0x105e57=[],_0x5a9dee=null,_0x4ce329={}){_0x29a338[_0x317f('0x11e')]||(_0x29a338[_0x317f('0x11e')]=_0x29a338['commandName']);const _0x2c992b=_0x3c681a[0x0];_0x29a338['multipleBlocks']=_0x2c992b['is'](_0x317f('0x38')),_0x5a9dee=_0x5a9dee||Nt(_0x29a338);const _0x37cc1a=_0x105e57['map'](_0x3597d1=>jt(_0x3597d1,this['_model'])),_0x2debd7=_0x2c992b['is'](_0x317f('0x38'))?_0x3c681a:_0x3c681a['map'](_0x4e8326=>jt(_0x4e8326,this['_model']));if('never'===this[_0x317f('0xc5')]){const _0x310e05=this[_0x317f('0xf1')]['getSuggestionCallback'](_0x317f('0x36'),_0x5a9dee,_0x317f('0x2'));return this[_0x317f('0xf3')](()=>_0x310e05(_0x2debd7,_0x29a338,_0x4ce329)),null;}_0x37cc1a[_0x317f('0x44')](..._0x2debd7);let _0xfdb148=!0x0;for(const _0x22eee4 of _0x37cc1a)if(!this[_0x317f('0xa3')](_0x22eee4)){_0xfdb148=!0x1;break;}if(_0xfdb148&&_0x317f('0xb0')!==this[_0x317f('0xc5')]){const _0x3d8b18=this['_suggestionFactory'][_0x317f('0x1f')](_0x317f('0x36'),_0x5a9dee,'accept');return this[_0x317f('0xf3')](()=>_0x3d8b18(_0x2debd7,_0x29a338,_0x4ce329)),null;}const _0x312d2c=this[_0x317f('0xdf')][_0x317f('0xbc')][_0x317f('0xc1')]('Users')['me'];for(const _0x27dfad of this['getSuggestions']()){if(_0x27dfad[_0x317f('0x12e')]['id']!=_0x312d2c['id'])continue;if(_0x317f('0x36')!=_0x27dfad['type']||_0x27dfad[_0x317f('0x61')][_0x317f('0x11e')]!=_0x29a338[_0x317f('0x11e')])continue;if(!Ot(_0x27dfad,_0x4ce329))continue;const _0x7d90=_0x27dfad[_0x317f('0x140')]==_0x5a9dee;for(let _0x2c7423=0x0;_0x2c7423<_0x2debd7['length'];_0x2c7423++){const _0x53aca3=_0x2debd7[_0x2c7423];for(const _0xac84cd of _0x27dfad[_0x317f('0x128')]()){const _0x18efb4=_0xac84cd['getRange']();if(_0x53aca3[_0x317f('0x96')](_0x18efb4)){_0x7d90?(_0x2debd7[_0x317f('0x125')](_0x2c7423,0x1),_0x2c7423--):_0x27dfad['removeMarker'](_0xac84cd[_0x317f('0x8c')]);break;}}}}if(0x0==_0x2debd7['length'])return null;const _0x4c0442=this[_0x317f('0xf1')][_0x317f('0x1f')](_0x317f('0x36'),_0x5a9dee,_0x317f('0x11d'));for(const _0xffc8dc of this['getSuggestions']())if(_0xffc8dc[_0x317f('0x12e')]['id']==_0x312d2c['id']&&_0x317f('0x36')==_0xffc8dc[_0x317f('0xc7')]&&_0xffc8dc[_0x317f('0x61')][_0x317f('0x11e')]==_0x29a338['formatGroupId']&&_0xffc8dc['subType']==_0x5a9dee&&Ot(_0xffc8dc,_0x4ce329)&&(_0x4c0442(_0xffc8dc[_0x317f('0x11a')](),_0x2debd7)||_0x4c0442(_0x2debd7,_0xffc8dc[_0x317f('0x11a')]()))){for(const _0xa7a84a of _0x2debd7)_0xffc8dc[_0x317f('0x113')](_0xa7a84a);return _0xffc8dc;}const _0x336344=_0x5704fa(),_0x245374=_0x312d2c['id'],_0x274989=_0x317f('0x2a')+_0x5a9dee,_0xd2c4ea=this[_0x317f('0x6f')]({'id':_0x336344,'type':_0x274989,'data':_0x29a338,'createdAt':new Date(),'authorId':_0x245374,'attributes':_0x4ce329});for(const _0x45fafd of _0x2debd7)this[_0x317f('0x83')](_0x274989,_0x336344,_0x245374,_0x45fafd,_0x269255['getMultiRangeId']());return _0xd2c4ea;}[_0x317f('0x91')](_0x22e617,_0x59ef25=null,_0x4c0c38={}){if(_0x22e617['isCollapsed'])return null;const _0x5507e2=this[_0x317f('0xdf')][_0x317f('0xbc')][_0x317f('0xc1')](_0x317f('0xc3'))['me'],_0x2d9621=new _0x46e0ca(_0x22e617[_0x317f('0x80')],_0x22e617[_0x317f('0x13d')]);for(const {suggestion:_0x34b22d,meta:_0x1c97c8}of this[_0x317f('0x15')](_0x2d9621,'insertion'))if(_0x1c97c8[_0x317f('0x23')]&&!_0x1c97c8[_0x317f('0xea')]){if(_0x34b22d[_0x317f('0x8a')]){const _0x215fc2=_0x34b22d[_0x317f('0x11a')]()[_0x317f('0xff')](_0x135412=>_0x317f('0x117')!=_0x135412[_0x317f('0x13e')][_0x317f('0x93')]);_0x215fc2[_0x317f('0x1b')](_0x37d803=>_0x2d9621[_0x317f('0x103')](_0x37d803,!0x0))&&_0x34b22d[_0x317f('0x25')]();if(_0x215fc2['some'](_0xfb9e59=>_0xfb9e59[_0x317f('0x103')](_0x2d9621,!0x0))){const _0x2c86b9=this['_suggestionFactory'][_0x317f('0x1f')]('deletion',_0x59ef25,_0x317f('0x2'));return this['forceDefaultExecution'](()=>_0x2c86b9([_0x2d9621],null,_0x4c0c38)),null;}}else{const _0xc5a603=_0x2d9621[_0x317f('0x28')](_0x34b22d[_0x317f('0xcf')]());null!==_0xc5a603&&_0x34b22d['_onDiscard']([_0xc5a603],null,_0x4c0c38);}}if(_0x2d9621[_0x317f('0x52')](),_0x2d9621[_0x317f('0x85')]||_0x317f('0x117')==_0x2d9621[_0x317f('0x13e')]['rootName'])return null;let _0x492567=null,_0x17878d=_0x2d9621['start'],_0x953ab5=_0x2d9621[_0x317f('0x13d')];const _0x17d65a=this[_0x317f('0x15')](_0x2d9621,'deletion');for(const {suggestion:_0x23d5d3,meta:_0x46484c}of _0x17d65a){const _0x4cd81e=this['_model'][_0x317f('0xeb')](_0x17878d,_0x953ab5);if(_0x46484c[_0x317f('0x23')]&&(this[_0x317f('0xcc')]||!_0x46484c[_0x317f('0x57')]&&!_0x46484c[_0x317f('0xd2')])){if(_0x23d5d3[_0x317f('0x8a')]){if(!Ot(_0x23d5d3,_0x4c0c38))continue;let _0x372d59=!0x0;for(const _0x45fc00 of _0x23d5d3[_0x317f('0x11a')]()){if(_0x45fc00[_0x317f('0x103')](_0x4cd81e,!0x0))return _0x23d5d3;_0x4cd81e['containsRange'](_0x45fc00)||(_0x372d59=!0x1);}_0x372d59&&_0x23d5d3[_0x317f('0x25')]();}else{const _0x31fdba=_0x23d5d3[_0x317f('0xcf')]();if(_0x31fdba[_0x317f('0x103')](_0x4cd81e,!0x0))return _0x23d5d3;if(!Ot(_0x23d5d3,_0x4c0c38)){_0x4cd81e[_0x317f('0x103')](_0x31fdba)?_0x23d5d3[_0x317f('0x89')]():_0x31fdba['containsPosition'](_0x17878d)?_0x17878d=_0x31fdba[_0x317f('0x13d')]:_0x31fdba['containsPosition'](_0x953ab5)&&(_0x953ab5=_0x31fdba[_0x317f('0x80')]);continue;}_0x17878d=_0x17878d[_0x317f('0xb7')](_0x31fdba['start'])?_0x17878d:_0x31fdba['start'],_0x953ab5=_0x953ab5[_0x317f('0xe8')](_0x31fdba['end'])?_0x953ab5:_0x31fdba[_0x317f('0x13d')],_0x4c0c38=Object[_0x317f('0xda')]({},_0x23d5d3[_0x317f('0xfb')]),_0x492567?_0x31fdba['start'][_0x317f('0xb7')](_0x492567[_0x317f('0xcf')]()[_0x317f('0x80')])?(_0x492567[_0x317f('0x89')](),_0x492567=_0x23d5d3):_0x23d5d3[_0x317f('0x89')]():_0x492567=_0x23d5d3;}}}if(_0x492567)return this['_setSuggestionRange'](_0x492567,this[_0x317f('0xb4')][_0x317f('0xeb')](_0x17878d,_0x953ab5)),_0x492567;{const _0x1ba716=_0x5704fa(),_0x35156d=this['_model']['createRange'](_0x17878d,_0x953ab5),_0x6c457d=_0x5507e2['id'],_0x12b025=_0x59ef25?_0x317f('0x3c')+_0x59ef25:_0x317f('0x118'),_0x4d197c=this[_0x317f('0x6f')]({'id':_0x1ba716,'type':_0x12b025,'createdAt':new Date(),'authorId':_0x6c457d,'attributes':_0x4c0c38});return this['_addSuggestionMarker'](_0x12b025,_0x1ba716,_0x6c457d,_0x35156d),_0x4d197c;}}[_0x317f('0xb6')](_0x49fb40,_0x38df82=_0x317f('0x59'),_0x36d8af={}){const _0x1e37bc=this[_0x317f('0xdf')][_0x317f('0xbc')]['get'](_0x317f('0xc3'))['me'],_0x2c86f6=_0x49fb40[_0x317f('0x32')](_0x11c9d7=>new _0x46e0ca(_0x11c9d7[_0x317f('0x80')],_0x11c9d7[_0x317f('0x13d')])),_0x23f1b3=new Set();for(const {suggestion:_0x238c7e,meta:_0x3f3683}of this[_0x317f('0x15')](_0x2c86f6,_0x317f('0x12a')))_0x3f3683[_0x317f('0x23')]&&!_0x3f3683['isNextTo']&&_0x23f1b3[_0x317f('0x5a')](_0x238c7e);for(const _0x74bc0e of _0x23f1b3)if(_0x74bc0e[_0x317f('0x8a')]){const _0x27389f=_0x74bc0e[_0x317f('0x11a')]();(!_0x74bc0e[_0x317f('0xfb')]||!_0x74bc0e[_0x317f('0xfb')]['skipNestingCheck'])&&(_0x27389f[_0x317f('0x1b')](_0x5a3452=>_0x2c86f6[_0x317f('0x10d')](_0x1ab9f5=>_0x1ab9f5[_0x317f('0x103')](_0x5a3452,!0x0)))&&_0x74bc0e['discard']());if(_0x2c86f6[_0x317f('0x1b')](_0x48dcd0=>_0x27389f[_0x317f('0x10d')](_0x546d55=>_0x546d55['containsRange'](_0x48dcd0,!0x0)))){const _0x36c951=this[_0x317f('0xf1')][_0x317f('0x1f')](_0x317f('0x118'),_0x38df82,'accept');return this[_0x317f('0xf3')](()=>_0x36c951(_0x49fb40,null,_0x36d8af)),null;}}else{const _0x2da072=_0x74bc0e[_0x317f('0xcf')]();_0x2c86f6[_0x317f('0x10d')](_0x3cbe03=>_0x3cbe03['containsRange'](_0x2da072,!0x0))&&_0x74bc0e[_0x317f('0x25')]();if(_0x2c86f6[_0x317f('0x1b')](_0x31efdb=>_0x2da072[_0x317f('0x103')](_0x31efdb,!0x0))){const _0xf04f4a=this[_0x317f('0xf1')][_0x317f('0x1f')](_0x317f('0x118'),_0x38df82,_0x317f('0x2'));return this[_0x317f('0xf3')](()=>_0xf04f4a(_0x2c86f6,null,_0x36d8af)),null;}}const _0x245330=this[_0x317f('0xf1')][_0x317f('0x1f')](_0x317f('0x118'),_0x38df82,_0x317f('0x11d'));let _0x350b1d=null;for(const _0x5510fa of this[_0x317f('0xa1')]())if(_0x5510fa[_0x317f('0x12e')]['id']==_0x1e37bc['id']&&_0x5510fa['isInContent']&&_0x317f('0x118')==_0x5510fa[_0x317f('0xc7')]&&_0x5510fa[_0x317f('0x140')]==_0x38df82&&Ot(_0x5510fa,_0x36d8af)&&(_0x245330(_0x5510fa[_0x317f('0x11a')](),_0x2c86f6)||_0x245330(_0x2c86f6,_0x5510fa[_0x317f('0x11a')]()))){if(_0x350b1d){if(_0x5510fa[_0x317f('0x14')]&&_0x5510fa['commentThread']['length'])continue;for(const _0x46c9c1 of _0x5510fa[_0x317f('0x11a')]())_0x350b1d[_0x317f('0x37')](_0x46c9c1)||_0x350b1d[_0x317f('0x113')](_0x46c9c1);_0x5510fa['removeMarkers']();}else{_0x350b1d=_0x5510fa;for(const _0x44e987 of _0x2c86f6)_0x5510fa[_0x317f('0x37')](_0x44e987)||_0x5510fa[_0x317f('0x113')](_0x44e987);}}if(_0x350b1d)return _0x350b1d;_0x23f1b3[_0x317f('0xe1')]();for(const {suggestion:_0x17c749,meta:_0x2d6ad6}of this['_findSuggestions'](_0x2c86f6,_0x317f('0x118')))_0x2d6ad6[_0x317f('0x23')]&&(this[_0x317f('0xcc')]||!_0x2d6ad6[_0x317f('0x57')]&&!_0x2d6ad6[_0x317f('0xd2')])&&Ot(_0x17c749,_0x36d8af)&&_0x23f1b3[_0x317f('0x5a')](_0x17c749);for(const _0x1b3b55 of _0x23f1b3){const _0x42ea51=_0x1b3b55[_0x317f('0x11a')]();if(!_0x36d8af||!_0x36d8af['skipNestingCheck']){if(_0x2c86f6[_0x317f('0x1b')](_0x560142=>_0x42ea51[_0x317f('0x10d')](_0x4a18c9=>_0x4a18c9[_0x317f('0x103')](_0x560142,!0x0))))return _0x1b3b55;}(!_0x1b3b55[_0x317f('0xfb')]||!_0x1b3b55[_0x317f('0xfb')]['skipNestingCheck'])&&(_0x42ea51['every'](_0x3248cb=>_0x2c86f6['some'](_0xea3275=>_0xea3275[_0x317f('0x103')](_0x3248cb,!0x0)))&&_0x1b3b55[_0x317f('0x25')]());}const _0x56e649=_0x5704fa(),_0x582887=_0x1e37bc['id'],_0x55fe13=_0x317f('0x3c')+_0x38df82,_0x39b812=this[_0x317f('0x6f')]({'id':_0x56e649,'type':_0x55fe13,'createdAt':new Date(),'authorId':_0x582887,'attributes':_0x36d8af});for(const _0x40043e of _0x2c86f6)_0x40043e[_0x317f('0x52')](),_0x40043e[_0x317f('0x85')]||_0x317f('0x117')==_0x40043e[_0x317f('0x13e')][_0x317f('0x93')]||this[_0x317f('0x83')](_0x55fe13,_0x56e649,_0x582887,_0x40043e,_0x269255['getMultiRangeId']());return _0x39b812;}['_setSuggestionRange'](_0x3bfe14,_0x5a886e){const _0xb1fb14=_0x3bfe14[_0x317f('0x6c')]();this[_0x317f('0xb4')][_0x317f('0x1e')](_0x3ccdde=>{_0x3ccdde['updateMarker'](_0xb1fb14,{'range':_0x5a886e});});}['_addThreadToSuggestion'](_0x348030){const _0x540eee=_0x348030['id'],_0x397e3b=this['editor'][_0x317f('0x64')]['get']('collaboration.channelId');this[_0x317f('0x13c')][_0x317f('0xcd')](_0x540eee)||this['_commentsRepository'][_0x317f('0x48')]({'channelId':_0x397e3b,'threadId':_0x540eee,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x362447=this[_0x317f('0x13c')]['getCommentThread'](_0x540eee);_0x362447[_0x317f('0x27')](_0x317f('0x2c')),_0x362447[_0x317f('0x2c')]=!0x1,_0x348030[_0x317f('0x14')]=_0x362447;}[_0x317f('0xca')](_0x33ef20,_0x50ba98,_0x4aadee,_0x1ae8b1){if(_0x33ef20['type']!=_0x50ba98||_0x33ef20[_0x317f('0x140')]!=_0x4aadee||_0x33ef20['creator']['id']!=_0x1ae8b1)throw this[_0x317f('0xdf')][_0x317f('0x2f')](_0x317f('0x8e')),new _0x2d48d0(_0x317f('0x8e'),this);}[_0x317f('0xd0')](_0x94d566,_0x4706bb){const _0x3716ce=_0x94d566[_0x317f('0xcf')]();if(_0x4706bb[_0x317f('0x96')](_0x3716ce))_0x94d566[_0x317f('0x89')]();else{if(_0x3716ce[_0x317f('0x103')](_0x4706bb)){const _0x56529d=this[_0x317f('0xb4')][_0x317f('0x127')](_0x4706bb['start'][_0x317f('0x54')],_0x317f('0x13d'));this['_setSuggestionRange'](_0x94d566,this[_0x317f('0xb4')]['createRange'](_0x3716ce[_0x317f('0x80')],_0x56529d));const _0x7ada1b=_0x5704fa(),_0x47c600=_0x94d566[_0x317f('0x35')]['id'],_0x3ac64a=_0x94d566[_0x317f('0xc7')]+':'+_0x94d566[_0x317f('0x140')];this[_0x317f('0x6f')]({'id':_0x7ada1b,'type':_0x3ac64a,'createdAt':new Date(),'authorId':_0x47c600,'data':_0x94d566['data'],'attributes':_0x94d566[_0x317f('0xfb')]});const _0x256444=this[_0x317f('0xb4')][_0x317f('0x127')](_0x4706bb[_0x317f('0x13d')]['parent'],_0x317f('0xb3')),_0x3894d9=this[_0x317f('0xb4')]['createRange'](_0x256444,_0x3716ce[_0x317f('0x13d')]);this[_0x317f('0x83')](_0x3ac64a,_0x7ada1b,_0x47c600,_0x3894d9);}else{if(_0x3716ce[_0x317f('0xf6')](_0x4706bb[_0x317f('0x80')])){const _0x97f157=this[_0x317f('0xb4')][_0x317f('0x127')](_0x4706bb['start']['nodeBefore'],_0x317f('0x13d'));this[_0x317f('0x3b')](_0x94d566,this[_0x317f('0xb4')][_0x317f('0xeb')](_0x3716ce[_0x317f('0x80')],_0x97f157));}else{const _0x44bf8d=this[_0x317f('0xb4')][_0x317f('0x127')](_0x4706bb['end']['parent'],'after');this[_0x317f('0x3b')](_0x94d566,this['_model']['createRange'](_0x44bf8d,_0x3716ce[_0x317f('0x13d')]));}}}}['_rangeIsInLocalUserInsertion'](_0x3a9d88){for(const {suggestion:_0x4cbd7e,meta:_0x1c8a1c}of this[_0x317f('0x15')](_0x3a9d88,_0x317f('0x12a'))){if(!_0x1c8a1c[_0x317f('0x23')])continue;const _0x4b3bba=_0x4cbd7e[_0x317f('0x11a')]();for(const _0x265f92 of _0x4b3bba)if(!_0x3a9d88[_0x317f('0x31')](_0x265f92)[_0x317f('0xc9')])return!0x0;}return!0x1;}[_0x317f('0x90')](_0x17ce7b){const _0x1be64a=this[_0x317f('0xdf')]['plugins']['get'](_0x317f('0xc3'))[_0x317f('0x3e')](_0x17ce7b);if(!_0x1be64a)throw new _0x2d48d0(_0x317f('0xe3'),this);return _0x1be64a;}['_getExternalAuthor'](_0x5ef51f){const _0x20a188=this['editor']['plugins'][_0x317f('0xc1')](_0x317f('0xc3')),_0x5897e1=_0x41a914(_0x317f('0x33')+_0x5ef51f),_0x1c4c10=_0x20a188[_0x317f('0x3e')](_0x5897e1);return _0x1c4c10||_0x20a188[_0x317f('0x139')]({'id':_0x5897e1,'name':_0x5ef51f});}['_createSuggestion'](_0x4da5e,_0x1f8b1b,_0x575e3b,_0x5ec98a,_0x20942a){const _0x8fb10a=this[_0x317f('0x90')](_0x5ec98a),_0x8d3c98=this[_0x317f('0xf1')][_0x317f('0x0')](_0x4da5e,_0x1f8b1b,_0x575e3b,_0x8fb10a,_0x20942a,_0x259641=>this[_0x317f('0xb2')](_0x575e3b,{'attributes':_0x259641}));return this['listenTo'](_0x8d3c98,_0x317f('0x2'),()=>{this[_0x317f('0xb2')](_0x575e3b,{'state':_0x317f('0x19')});},{'priority':'high'}),this[_0x317f('0x4')](_0x8d3c98,'discard',()=>{this[_0x317f('0xb2')](_0x575e3b,{'state':_0x317f('0xdd')});},{'priority':_0x317f('0xe9')}),this[_0x317f('0x4d')][_0x317f('0xd6')](_0x575e3b,_0x8d3c98),this[_0x317f('0x7e')]['set'](_0x8d3c98,_0x317f('0xcb')),_0x8d3c98;}[_0x317f('0x3')](_0x18dece){const _0xf8ba18=_0x18dece[_0x317f('0xc2')](':');return{'group':_0xf8ba18[0x0],'type':_0xf8ba18[0x1],'subType':_0xf8ba18[_0x317f('0xc9')]>=0x5?_0xf8ba18[0x2]:null,'id':_0xf8ba18[_0x317f('0xc9')]<0x5?_0xf8ba18[0x2]:_0xf8ba18[0x3],'authorId':_0xf8ba18[_0x317f('0xc9')]<0x5?_0xf8ba18[0x3]:_0xf8ba18[0x4],'markerCount':0x6==_0xf8ba18[_0x317f('0xc9')]?_0xf8ba18[0x5]:null};}[_0x317f('0x9f')](_0xdbfafb,_0x10f9bb,_0x10b370){const _0x491922=_0xdbfafb[_0x317f('0xcf')](),_0x417cd9=_0x491922['start'],_0x1297ae=_0x491922[_0x317f('0x13d')];this[_0x317f('0x3b')](_0xdbfafb,this[_0x317f('0xb4')][_0x317f('0xeb')](_0x417cd9,_0x10f9bb));const _0x48793a=_0x5704fa(),_0x46740f=_0xdbfafb[_0x317f('0x35')]['id'],_0x499f8c=_0xdbfafb['type']+(_0xdbfafb[_0x317f('0x140')]?':'+_0xdbfafb[_0x317f('0x140')]:'');this[_0x317f('0x6f')]({'id':_0x48793a,'type':_0x499f8c,'createdAt':new Date(),'authorId':_0x46740f,'originalSuggestionId':_0xdbfafb['id'],'attributes':_0xdbfafb[_0x317f('0xfb')],'data':_0xdbfafb[_0x317f('0x61')]}),'formatBlock'==_0xdbfafb[_0x317f('0xc7')]&&(_0x10b370=this[_0x317f('0xb4')]['createPositionBefore'](_0x10b370[_0x317f('0x45')])),this[_0x317f('0x83')](_0x499f8c,_0x48793a,_0x46740f,this['_model'][_0x317f('0xeb')](_0x10b370,_0x1297ae));}[_0x317f('0x15')](_0x75ddc0,_0x319625=null){const _0x1de274=[],_0x3ce64a=this[_0x317f('0xdf')][_0x317f('0xbc')][_0x317f('0xc1')](_0x317f('0xc3'))['me'];Array[_0x317f('0x12c')](_0x75ddc0)||(_0x75ddc0=[_0x75ddc0]);for(const _0x2ed7a2 of this[_0x317f('0xa1')]()){if(!_0x2ed7a2[_0x317f('0xad')])continue;if(_0x319625&&_0x2ed7a2[_0x317f('0xc7')]!=_0x319625)continue;let _0x4967fc=!0x1;for(const _0x523472 of _0x2ed7a2[_0x317f('0x11a')]()){for(const _0x18f443 of _0x75ddc0){const _0x422065=_0x18f443[_0x317f('0x80')][_0x317f('0x96')](_0x523472[_0x317f('0x13d')])||_0x18f443[_0x317f('0x13d')]['isEqual'](_0x523472[_0x317f('0x80')]);if(_0x422065||_0x18f443[_0x317f('0x28')](_0x523472)){const _0x26f06e=_0x18f443[_0x317f('0x103')](_0x523472)&&_t(this[_0x317f('0xb4')][_0x317f('0xd8')],_0x523472[_0x317f('0x80')],_0x18f443),_0x582df8=_0x523472[_0x317f('0x103')](_0x18f443)&&_t(this['_model'][_0x317f('0xd8')],_0x18f443['start'],_0x523472);_0x1de274[_0x317f('0x44')]({'suggestion':_0x2ed7a2,'meta':{'isOwn':_0x3ce64a==_0x2ed7a2[_0x317f('0x12e')],'isNextTo':_0x422065,'isInsideObject':_0x26f06e,'containsRangeInObject':_0x582df8}}),_0x4967fc=!0x0;break;}}if(_0x4967fc)break;}}return _0x1de274;}[_0x317f('0x83')](_0x447c55,_0x454e5e,_0xe92cf5,_0x42b2e9,_0x17953f){this[_0x317f('0xb4')]['change'](_0xd0b5dc=>{let _0x16ce9c='suggestion:'+_0x447c55+':'+_0x454e5e+':'+_0xe92cf5;_0x17953f&&(_0x16ce9c=_0x16ce9c+':'+_0x17953f),_0xd0b5dc['addMarker'](_0x16ce9c,{'range':_0x42b2e9,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x317f('0x5')](_0x2405ec){const _0x4ef1fe=_0x2405ec[_0x317f('0x17')],_0x771df4=_0x2405ec['next'];_0x2405ec['previous']=null,null!=_0x4ef1fe&&(_0x4ef1fe['next']=null),_0x2405ec[_0x317f('0xbe')]=null,null!=_0x771df4&&(_0x771df4[_0x317f('0x17')]=null),'ready'==this['_suggestionState'][_0x317f('0xc1')](_0x2405ec)&&(this[_0x317f('0x7e')][_0x317f('0xd6')](_0x2405ec,_0x317f('0x24')),this[_0x317f('0x46')](_0x317f('0x7d'),_0x2405ec,_0x4ef1fe,_0x771df4));}[_0x317f('0x6f')](_0xdf5200){const _0x5e4de1=_0xdf5200['id'],_0x3001f6=this[_0x317f('0x120')](_0xdf5200);if(this[_0x317f('0xa2')]&&this['_adapter'][_0x317f('0xa6')]){const _0xece099=this['editor'][_0x317f('0xbc')][_0x317f('0xc1')](_0x317f('0x76')),_0x6e2b63=_0x3001f6[_0x317f('0x56')],_0xb22d0c=_0x3001f6[_0x317f('0x140')]?_0x3001f6['type']+':'+_0x3001f6['subType']:_0x3001f6[_0x317f('0xc7')],_0x215693=this[_0x317f('0xdf')]['locale'],_0x5f359b=_0xece099[_0x317f('0x5a')](_0x57a974(_0x215693,'PENDING_ACTION_SUGGESTION')),_0x18fda0={'id':_0x5e4de1,'type':_0xb22d0c,'hasComments':_0x6e2b63,'data':_0xdf5200[_0x317f('0x61')]||null,'originalSuggestionId':_0xdf5200[_0x317f('0x126')]||null,'attributes':_0x3001f6[_0x317f('0xfb')]};this[_0x317f('0xa2')][_0x317f('0xa6')](_0x18fda0)[_0x317f('0x11c')](_0x5a000c=>{_0x3001f6[_0x317f('0x6b')]=!0x0,_0xece099[_0x317f('0x79')](_0x5f359b),_0x5a000c&&_0x5a000c[_0x317f('0x70')]&&(this[_0x317f('0x4d')][_0x317f('0xc1')](_0x5e4de1)['createdAt']=_0x5a000c[_0x317f('0x70')]);})[_0x317f('0x73')](_0x5b70f7=>{throw _0x3a9846(_0x317f('0x5e')),this['editor'][_0x317f('0x69')][_0x317f('0xd9')]({'isUndoable':!0x1},()=>{_0x3001f6[_0x317f('0x25')]();}),_0x3001f6[_0x317f('0x3d')](),this[_0x317f('0x4d')][_0x317f('0xe0')](_0x3001f6['id']),this['_suggestionState'][_0x317f('0xe0')](_0x3001f6),_0x5b70f7;});}return _0x3001f6;}[_0x317f('0xb2')](_0x36e108,_0x2238df){const _0x432ef9=this[_0x317f('0xdf')][_0x317f('0xbc')][_0x317f('0xc1')](_0x317f('0x76')),_0x482a50=this['getSuggestion'](_0x36e108);if(this[_0x317f('0xa2')]&&this['_adapter'][_0x317f('0xa9')]){if(_0x482a50[_0x317f('0x6b')]){const _0x4ca2a9=_0x432ef9[_0x317f('0x5a')](_0x57a974(this[_0x317f('0xdf')]['locale'],_0x317f('0x42')));this[_0x317f('0xa2')][_0x317f('0xa9')](_0x36e108,_0x2238df)[_0x317f('0x11c')](()=>{_0x432ef9[_0x317f('0x79')](_0x4ca2a9);});}else _0x482a50['on'](_0x317f('0x104'),()=>{this[_0x317f('0xb2')](_0x36e108,_0x2238df);});}}[_0x317f('0xe4')](_0x150549){if(!this['_adapter']||!this[_0x317f('0xa2')][_0x317f('0x9b')])throw new _0x2d48d0(_0x317f('0x74'),this);return this[_0x317f('0xa2')][_0x317f('0x9b')](_0x150549);}['_handleNewSuggestionMarker'](_0x1a8928){const {id:_0xcad7e3,type:_0x58839d,subType:_0x49686f,authorId:_0x41ee27}=this[_0x317f('0x3')](_0x1a8928),_0x487dd7=this[_0x317f('0x4d')]['get'](_0xcad7e3)||this['_createSuggestion'](_0x58839d,_0x49686f,_0xcad7e3,_0x41ee27,{});switch(this[_0x317f('0xca')](_0x487dd7,_0x58839d,_0x49686f,_0x41ee27),this[_0x317f('0x7e')][_0x317f('0xc1')](_0x487dd7)){case _0x317f('0xcb'):this[_0x317f('0xe4')](_0xcad7e3)['then'](_0x2e3426=>{let _0x4c699a=Promise['resolve']();_0x2e3426[_0x317f('0x56')]&&(_0x4c699a=this[_0x317f('0x13c')][_0x317f('0x137')]({'channelId':this[_0x317f('0xdf')][_0x317f('0x64')][_0x317f('0xc1')]('collaboration.channelId'),'threadId':_0xcad7e3})),_0x4c699a[_0x317f('0x11c')](()=>{this[_0x317f('0x120')](_0x2e3426)[_0x317f('0x6b')]=!0x0;});}),this['_suggestionState']['set'](_0x487dd7,_0x317f('0x4b'));break;case _0x317f('0x24'):this[_0x317f('0xb2')](_0xcad7e3,{'state':'open'});case _0x317f('0x78'):this[_0x317f('0x7e')]['set'](_0x487dd7,_0x317f('0x60')),this[_0x317f('0x46')]('suggestionLoaded',_0x487dd7);break;case'ready':this[_0x317f('0x46')](_0x317f('0x92'),_0x487dd7);}return _0x487dd7[_0x317f('0xdc')](_0x1a8928),_0x487dd7;}[_0x317f('0x106')](_0x53b97e){const _0x3a5b96=Array[_0x317f('0xe6')](_0x53b97e)[_0x317f('0xff')](_0x5d84f5=>!_0x5d84f5[_0x317f('0x8a')]),_0x2b4860=this[_0x317f('0xa1')]({'skipNotAttached':!0x0})['filter'](_0x3c8e05=>!_0x3c8e05[_0x317f('0x8a')]),_0x5b018a=_0x2b4860[_0x317f('0xff')](_0x398b38=>!_0x53b97e[_0x317f('0x110')](_0x398b38)),_0x5d5566=new Map(_0x2b4860[_0x317f('0x32')](_0x1efacf=>[_0x1efacf,this[_0x317f('0xf1')][_0x317f('0x1f')](_0x1efacf[_0x317f('0xc7')],_0x1efacf[_0x317f('0x140')],_0x317f('0x135'))])),_0x31b777=new Map(_0x2b4860[_0x317f('0x32')](_0x361b32=>[_0x361b32,_0x361b32[_0x317f('0xcf')]()])),_0x405ab9=new Set(),_0x18f42f=new Set();for(let _0x154f6a=0x0;_0x154f6a<_0x3a5b96['length'];_0x154f6a++)_0x913a1c(_0x3a5b96[_0x154f6a],_0x3a5b96,_0x154f6a+0x1);for(let _0x2a5cc7=0x0;_0x2a5cc7<_0x3a5b96[_0x317f('0xc9')];_0x2a5cc7++)_0x913a1c(_0x3a5b96[_0x2a5cc7],_0x5b018a,0x0);for(let _0xf89766=0x0;_0xf89766<_0x3a5b96[_0x317f('0xc9')];_0xf89766++){const _0x45c58a=_0x3a5b96[_0xf89766];!_0x18f42f['has'](_0x45c58a)&&_0x45c58a['previous']&&(_0x45c58a[_0x317f('0x17')][_0x317f('0xbe')]===_0x45c58a&&(_0x45c58a['previous']['next']=null),_0x45c58a[_0x317f('0x17')]=null),!_0x405ab9['has'](_0x45c58a)&&_0x45c58a['next']&&(_0x45c58a[_0x317f('0xbe')][_0x317f('0x17')]===_0x45c58a&&(_0x45c58a[_0x317f('0xbe')][_0x317f('0x17')]=null),_0x45c58a[_0x317f('0xbe')]=null);}function _0x913a1c(_0x1214ec,_0x5ef00b,_0x2e0144){for(let _0x232eca=_0x2e0144;_0x232eca<_0x5ef00b['length'];_0x232eca++){const _0x1a7805=_0x3d7fec(_0x1214ec,_0x5ef00b[_0x232eca]);_0x1a7805&&(_0x1a7805[0x0][_0x317f('0xbe')]=_0x1a7805[0x1],_0x1a7805[0x1][_0x317f('0x17')]=_0x1a7805[0x0],_0x405ab9[_0x317f('0x5a')](_0x1a7805[0x0]),_0x18f42f['add'](_0x1a7805[0x1]));}}function _0x3d7fec(_0x44bfdb,_0x47007b){if(_0x44bfdb['author']['id']!==_0x47007b[_0x317f('0x12e')]['id'])return null;const _0xff403=_0x5d5566[_0x317f('0xc1')](_0x44bfdb)(_0x44bfdb,_0x47007b,_0x31b777['get'](_0x44bfdb),_0x31b777[_0x317f('0xc1')](_0x47007b));if(!_0xff403)return null;return _0x5d5566[_0x317f('0xc1')](_0x47007b)(_0x44bfdb,_0x47007b,_0x31b777[_0x317f('0xc1')](_0x44bfdb),_0x31b777['get'](_0x47007b))?_0xff403[0x1][_0x317f('0x14')]&&_0xff403[0x1][_0x317f('0x14')]['length']?null:_0xff403:null;}}[_0x317f('0x11b')](_0x443549){const _0x1eb18b=Array[_0x317f('0xe6')](_0x443549),_0x585191=this[_0x317f('0xa1')]({'skipNotAttached':!0x0}),_0xc43f90=_0x585191[_0x317f('0xff')](_0x5ec65c=>!_0x443549['has'](_0x5ec65c)),_0x541fcc=new Map(_0x1eb18b['map'](_0x4c0250=>[_0x4c0250,this[_0x317f('0xf1')][_0x317f('0x1f')](_0x4c0250[_0x317f('0xc7')],_0x4c0250[_0x317f('0x140')],'join')])),_0x2cf771=new Map(_0x585191['map'](_0x508cfa=>[_0x508cfa,_0x508cfa[_0x317f('0x11a')]()]));for(let _0x346e6d=0x0;_0x346e6d<_0x1eb18b[_0x317f('0xc9')];_0x346e6d++){if(_0x433fbe(this,_0x1eb18b[_0x346e6d],_0x1eb18b,_0x346e6d+0x1))return!0x0;}for(let _0x30fe9b=0x0;_0x30fe9b<_0x1eb18b[_0x317f('0xc9')];_0x30fe9b++){if(_0x433fbe(this,_0x1eb18b[_0x30fe9b],_0xc43f90,0x0))return!0x0;}return!0x1;function _0x433fbe(_0x35fc48,_0x1d0f59,_0x30cacf,_0x4271e1){for(let _0x4c0a49=_0x4271e1;_0x4c0a49<_0x30cacf[_0x317f('0xc9')];_0x4c0a49++){const _0x3c4429=_0x30cacf[_0x4c0a49];if(_0x3c4429[_0x317f('0xc7')]!==_0x1d0f59[_0x317f('0xc7')]||_0x3c4429[_0x317f('0x12e')]['id']!==_0x1d0f59[_0x317f('0x12e')]['id']||_0x3c4429['subType']!==_0x1d0f59[_0x317f('0x140')])continue;if(!Ut(_0x1d0f59,_0x3c4429))continue;const _0x2b7142=_0x541fcc['get'](_0x1d0f59),_0x491de7=_0x2cf771[_0x317f('0xc1')](_0x1d0f59),_0x2021f0=_0x2cf771[_0x317f('0xc1')](_0x3c4429),_0x170ac8=_0x1d0f59[_0x317f('0x14')]&&_0x1d0f59['commentThread'][_0x317f('0xc9')],_0xee41a7=_0x3c4429[_0x317f('0x14')]&&_0x3c4429[_0x317f('0x14')][_0x317f('0xc9')];if(!_0x170ac8&&_0x2b7142(_0x2021f0,_0x491de7))return _0x35fc48[_0x317f('0x18')](_0x3c4429,_0x1d0f59),_0x2cf771[_0x317f('0xe0')](_0x1d0f59),!0x0;if(!_0xee41a7&&_0x2b7142(_0x491de7,_0x2021f0))return _0x35fc48[_0x317f('0x18')](_0x1d0f59,_0x3c4429),_0x2cf771[_0x317f('0xe0')](_0x3c4429),!0x0;}return!0x1;}}[_0x317f('0x18')](_0x4f4f14,_0x16e6f3){if(_0x4f4f14[_0x317f('0x8a')])for(const _0x247824 of _0x16e6f3['getRanges']())_0x4f4f14[_0x317f('0x113')](_0x247824);else{const _0x1d0dc1=_0x16e6f3[_0x317f('0xcf')]()['end'];this[_0x317f('0x3b')](_0x4f4f14,this[_0x317f('0xb4')][_0x317f('0xeb')](_0x4f4f14[_0x317f('0xcf')]()['start'],_0x1d0dc1));}_0x16e6f3[_0x317f('0x89')]();}}class Bt{constructor(_0x56a163){this[_0x317f('0xb')]=_0x56a163,this[_0x317f('0xb4')]=_0x56a163['model'],this[_0x317f('0x115')]=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2e8f7a,_0x4e7965,_0x1d07a1,_0x3dd490,_0x1cef0b,_0x557648){return new _0x269255(this['_model'],{'type':_0x2e8f7a,'subType':_0x4e7965,'id':_0x1d07a1,'author':_0x3dd490,'creator':_0x3dd490,'attributes':_0x1cef0b,'onAttributesChange':_0x557648,'onAccept':(..._0x438257)=>this[_0x317f('0x1f')](_0x2e8f7a,_0x4e7965,_0x317f('0x2'))(..._0x438257),'onDiscard':(..._0x206da8)=>this[_0x317f('0x1f')](_0x2e8f7a,_0x4e7965,_0x317f('0x25'))(..._0x206da8)});}['registerCustomCallback'](_0x3501a8,_0x225033,_0x2ebf02,_0x557ef4){const _0x2e6ac7=_0x3501a8+':'+_0x225033+':'+_0x2ebf02;this[_0x317f('0x115')][_0x317f('0xd6')](_0x2e6ac7,_0x557ef4);}['getSuggestionCallback'](_0x388977,_0x1fd2e5,_0x205666){const _0x5dc968=_0x388977+':'+_0x1fd2e5+':'+_0x205666;return this[_0x317f('0x115')][_0x317f('0xc1')](_0x5dc968)||this[_0x317f('0x114')][_0x317f('0xc1')](_0x388977+':'+_0x205666);}[_0x317f('0x50')](){const _0x4949de=()=>!0x1,_0x1e6712=_0x36db89=>{_0x36db89[_0x317f('0xc6')]((_0x2f8396,_0x472c3f)=>_0x2f8396[_0x317f('0x80')][_0x317f('0xb7')](_0x472c3f[_0x317f('0x80')])?0x1:-0x1),this[_0x317f('0xb4')]['change'](_0x6439d9=>{for(const _0x1b79e5 of _0x36db89){let _0x34bf55;_0x34bf55=_0x1b79e5[_0x317f('0x13d')][_0x317f('0xdb')]&&_0x1b79e5['end']['parent']==_0x1b79e5['start'][_0x317f('0x4a')]?_0x6439d9[_0x317f('0x102')](_0x1b79e5[_0x317f('0x80')][_0x317f('0x4a')],'on'):_0x6439d9['createSelection'](_0x1b79e5),this['_model'][_0x317f('0x8d')](_0x34bf55,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xc50fdd=(_0x477665,_0x2936c1)=>{this['_model'][_0x317f('0x1e')](_0x473fc1=>{const {commandName:_0x150d8c,commandParams:_0x5e196d=[]}=_0x2936c1,_0xb98922=_0x477665[_0x317f('0x32')](_0x4c3fa2=>(Mt(_0x4c3fa2)&&(_0x4c3fa2=this[_0x317f('0xb4')]['createRange'](_0x4c3fa2[_0x317f('0x13d')])),_0x4c3fa2))[_0x317f('0xff')](_0x2b6d0b=>_0x317f('0x117')!==_0x2b6d0b[_0x317f('0x13e')][_0x317f('0x93')]);if(_0xb98922['length']<0x1)return;const _0x5d5f0c=Array['from'](this['_model'][_0x317f('0x1c')]['selection'][_0x317f('0x11a')]())['map'](_0x45283e=>_0x46e0ca['fromRange'](_0x45283e));_0x473fc1[_0x317f('0x81')](_0xb98922);for(const _0x4ba82d of this['_editor'][_0x317f('0x97')]['commands']())_0x4ba82d[_0x317f('0x7c')]();_0x5e196d['push']({'forceDefaultExecution':!0x0}),this[_0x317f('0xb')][_0x317f('0x6a')](_0x150d8c,..._0x5e196d);const _0x25f983=_0x5d5f0c[_0x317f('0xff')](_0x45fe7a=>_0x317f('0x117')!=_0x45fe7a['root']['rootName']);_0x25f983[_0x317f('0xc9')]>0x0&&_0x473fc1['setSelection'](_0x25f983);for(const _0x4dd2f1 of _0x5d5f0c)_0x4dd2f1[_0x317f('0x52')]();});},_0x51fdae=(_0x282b0b,_0x5bc340)=>0x1==_0x282b0b['length']&&0x1==_0x5bc340[_0x317f('0xc9')]&&_0x282b0b[0x0]['end'][_0x317f('0x96')](_0x5bc340[0x0][_0x317f('0x80')]),_0x1c2619=(_0x564c0a,_0x7aa2c2,_0x73879b,_0x506ff9)=>xt(_0x564c0a,_0x7aa2c2,_0x73879b,_0x506ff9,this['_model'])?[_0x564c0a,_0x7aa2c2]:xt(_0x7aa2c2,_0x564c0a,_0x506ff9,_0x73879b,this['_model'])?[_0x7aa2c2,_0x564c0a]:null;this['_defaultCallbacks'][_0x317f('0xd6')](_0x317f('0x132'),_0x4949de),this[_0x317f('0x114')][_0x317f('0xd6')](_0x317f('0x105'),_0x1e6712),this['_defaultCallbacks'][_0x317f('0xd6')]('insertion:join',_0x51fdae),this[_0x317f('0x114')]['set'](_0x317f('0x10a'),_0x1c2619),this[_0x317f('0x114')][_0x317f('0xd6')](_0x317f('0x130'),_0x1e6712),this[_0x317f('0x114')][_0x317f('0xd6')](_0x317f('0x2d'),_0x4949de),this[_0x317f('0x114')][_0x317f('0xd6')](_0x317f('0x116'),_0x51fdae),this[_0x317f('0x114')]['set'](_0x317f('0x10'),_0x1c2619),this['_defaultCallbacks']['set']('formatInline:accept',_0xc50fdd),this['_defaultCallbacks']['set'](_0x317f('0x39'),_0x4949de),this[_0x317f('0x114')][_0x317f('0xd6')]('formatInline:join',_0x51fdae),this[_0x317f('0x114')][_0x317f('0xd6')](_0x317f('0x58'),_0x4949de),this[_0x317f('0x114')][_0x317f('0xd6')]('formatBlock:accept',_0xc50fdd),this[_0x317f('0x114')][_0x317f('0xd6')](_0x317f('0x6'),_0x4949de),this[_0x317f('0x114')][_0x317f('0xd6')](_0x317f('0x20'),_0x51fdae),this[_0x317f('0x114')]['set']('formatBlock:chain',_0x4949de);}}function _t(_0x40b6f6,_0x138ac5,_0x444f26){for(const _0x264496 of _0x138ac5[_0x317f('0x45')][_0x317f('0x1d')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x264496[_0x317f('0x13e')]==_0x264496)return!0x1;if(!_0x444f26['containsItem'](_0x264496))return!0x1;if(_0x40b6f6['isObject'](_0x264496)||_0x40b6f6[_0x317f('0x136')](_0x264496))return!0x0;}return!0x1;}function Mt(_0x5c97c8){return _0x5c97c8[_0x317f('0x13d')][_0x317f('0x45')]==_0x5c97c8[_0x317f('0x80')]['nodeAfter']&&_0x5c97c8[_0x317f('0x13d')][_0x317f('0x7')];}function $t(_0x1a838b,_0xdb855e,_0xcf82af,_0x85ccba){const _0x69fd4=_0x146076=>!_0x146076[_0x317f('0x13f')]['is'](_0x317f('0x13a'))&&!_0x85ccba[_0x317f('0xc0')](_0x146076[_0x317f('0x13f')]),_0x468e12=_0x1a838b[_0x317f('0x80')][_0x317f('0x71')](_0x69fd4),_0x561c80=_0x1a838b[_0x317f('0x13d')][_0x317f('0x71')](_0x69fd4,{'direction':_0x317f('0x86')});return(!_0x1a838b[_0x317f('0x80')][_0x317f('0x96')](_0x468e12)||!_0x1a838b[_0x317f('0x13d')][_0x317f('0x96')](_0x561c80))&&(_0x468e12[_0x317f('0xb7')](_0x561c80)?_0xcf82af[_0x317f('0x49')](_0xdb855e,{'range':_0xcf82af['createRange'](_0x468e12,_0x561c80)}):_0xcf82af['removeMarker'](_0xdb855e),!0x0);}function Nt(_0x1ed42b){return _0x41a914(_0x1ed42b);}function Rt(_0x6b89b3){const _0x5c8f1b=_0x6b89b3[_0x317f('0x80')][_0x317f('0x4a')];return _0x5c8f1b&&_0x5c8f1b['is'](_0x317f('0xb9'));}function jt(_0x2f3f73,_0x4ca55a){const _0x299727=_0x4ca55a[_0x317f('0xd8')][_0x317f('0xc0')](_0x2f3f73)||_0x4ca55a[_0x317f('0xd8')][_0x317f('0x63')](_0x2f3f73);return _0x4ca55a[_0x317f('0xeb')](_0x4ca55a[_0x317f('0x127')](_0x2f3f73,_0x317f('0x119')),_0x299727?_0x4ca55a['createPositionAfter'](_0x2f3f73):_0x4ca55a[_0x317f('0x127')](_0x2f3f73,'end'));}function xt(_0x435a83,_0x5235e8,_0x127443,_0x5804f1,_0x2de420){if(!Ut(_0x435a83,_0x5235e8))return!0x1;if(_0x127443['end']['isEqual'](_0x5804f1[_0x317f('0x80')]))return!0x0;if(_0x435a83[_0x317f('0xc7')]!=_0x5235e8['type'])return!0x1;if(!_0x127443[_0x317f('0x13d')]['isTouching'](_0x5804f1[_0x317f('0x80')]))return!0x1;const _0x5e9028=_0x2de420[_0x317f('0xeb')](_0x127443[_0x317f('0x13d')],_0x5804f1['start'])[_0x317f('0xd')]();for(const _0x4b222f of _0x5e9028)if([_0x317f('0xd4'),_0x317f('0x9')][_0x317f('0xa0')](_0x4b222f[_0x317f('0xc7')])&&_0x2de420[_0x317f('0xd8')][_0x317f('0x136')](_0x4b222f[_0x317f('0x13f')]))return!0x1;return!0x0;}function Ut(_0x13c803,_0x4bc7f5){return!(!_0x13c803['_isDataLoaded']||!_0x4bc7f5[_0x317f('0x82')])&&_0x1ad3a7(_0x13c803[_0x317f('0xfb')],_0x4bc7f5[_0x317f('0xfb')]);}function Ot(_0x1a409d,_0x295c66){const _0x4767c0=Et(_0x1a409d[_0x317f('0xfb')]),_0x42fcd1=Et(_0x295c66);if(!_0x1a409d[_0x317f('0x82')])return!0x1;for(const _0x2025b8 of Object[_0x317f('0x22')](_0x42fcd1))if(!_0x1ad3a7(_0x4767c0[_0x2025b8],_0x42fcd1[_0x2025b8]))return!0x1;return!0x0;}function Et(_0x4bcc8d){const _0x2f741b=Object[_0x317f('0xda')]({},_0x4bcc8d);return delete _0x2f741b['skipNestingCheck'],delete _0x2f741b[_0x317f('0x41')],_0x2f741b;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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')]();}}
|
|
23
|
+
const _0x41f1=['lowest','acceptSelectedSuggestions','createCommentThreadController','pluginName','map','buttonView','Discard\x20all\x20selected\x20suggestions','getJoined','Annotations','suggestionChanged','TrackChangesEditing','head','acceptButton','activeAnnotations','_disableComments','_bindAnnotationToEditors','delete','commentThread','has','size','change:previous','init','locale','unbind','getFirstRange','actionView','some','remove','getRanges','plugins','trackChanges.SuggestionThreadView','button','add','getSuggestion','editing','type','listenTo','isInContent','refreshSelectedViews','comments.maxThreadTotalWeight','CommentsRepository','requires','destroy','push','_viewToController','arrowView','filter','Discard\x20all\x20suggestions','bind','isEnabled','_handleControllerBuffer','set','isOn','_descriptionFactory','get','_handleSuggestionControllerDelayed','_unbindEditors','config','getDescriptions','_createUIButton','focus','separator','reduce','commands','change:activeAnnotations','_suggestionToController','getMarkerNames','mainView','addComment','getAllAdjacentSuggestions','CommentsUI','_updateController','comments.editorConfig','discardButton','acceptAllSuggestions','keys','_annotationViews','TrackChangesUI','Accept\x20all\x20selected\x20suggestions','registerAnnotation','define','suggestion-','model','descriptionParts','clear','editor','_initializeController','length','view','execute','comments','commandName','source','isMultiRange','from','isDirty','trackChanges.disableComments','_destroyController','value','suggestionLoaded','_refreshActiveMarkers','addSourceCollector','getByInnerView','Accept\x20all\x20suggestions','createAnnotationView','trackChanges','EditorAnnotations','stopListening','switchbutton'];(function(_0x4463a6,_0x41f10f){const _0x570a1c=function(_0x2ac998){while(--_0x2ac998){_0x4463a6['push'](_0x4463a6['shift']());}};_0x570a1c(++_0x41f10f);}(_0x41f1,0x183));const _0x570a=function(_0x4463a6,_0x41f10f){_0x4463a6=_0x4463a6-0x0;let _0x570a1c=_0x41f1[_0x4463a6];return _0x570a1c;};import{Plugin as _0x13bbe5}from'ckeditor5/src/core';import{Collection as _0x2cd121}from'ckeditor5/src/utils';import{Model as _0x4cc41a,SplitButtonView as _0xe8d008,createDropdown as _0x599df5,addListToDropdown as _0x18e8b0}from'ckeditor5/src/ui';import{Users as _0x8df17e,getDateTimeFormatter as _0x2b3884,getAllMarkersDomElementsSorted as _0x37c734}from'ckeditor5-collaboration/src/collaboration-core';import _0x37ba8 from'./trackchangesediting';import _0x538b79 from'./ui/suggestioncontroller';import _0x4b4fff from'./ui/view/suggestionthreadview';import{getTranslation as _0x4e0625}from'./utils/common-translations';import _0x10f2ac from'../theme/icons/track-changes.svg';export default class d extends _0x13bbe5{static get[_0x570a('0x5a')](){return[_0x37ba8,_0x8df17e,'CommentsRepository',_0x570a('0x39'),'EditorAnnotations'];}static get[_0x570a('0x34')](){return _0x570a('0x11');}constructor(_0x16de0d){super(_0x16de0d),this[_0x570a('0x5')]=new Map(),this[_0x570a('0x5d')]=new Map(),this[_0x570a('0x10')]=new Map(),this[_0x570a('0x63')]=new Map();const _0x24aaf5=this['editor']['config'];_0x24aaf5[_0x570a('0x14')](_0x570a('0x4f'),_0x4b4fff),_0x24aaf5[_0x570a('0x14')](_0x570a('0x24'),!0x1),this[_0x570a('0x3f')]=_0x24aaf5[_0x570a('0x67')]('trackChanges.disableComments');}[_0x570a('0x68')](_0x1f433d,_0x23c7e2){0x0===this[_0x570a('0x63')][_0x570a('0x44')]&&setTimeout(()=>{for(const [_0x49461e,_0x49af22]of this['_handleControllerBuffer']){const _0x1eccc0=this[_0x570a('0x5')][_0x570a('0x43')](_0x49461e);_0x1eccc0||_0x49af22?_0x1eccc0&&_0x49af22&&this['_destroyController'](_0x49461e):this[_0x570a('0x1a')](_0x49461e);}this[_0x570a('0x19')][_0x570a('0x4e')][_0x570a('0x67')]('EditorAnnotations')[_0x570a('0x57')](),this[_0x570a('0x28')](),this[_0x570a('0x63')][_0x570a('0x18')]();},0xa),this[_0x570a('0x63')][_0x570a('0x64')](_0x1f433d,_0x23c7e2);}[_0x570a('0x46')](){const _0x129f72=this['editor'],_0x1def52=_0x129f72[_0x570a('0x4e')][_0x570a('0x67')](_0x570a('0x3b')),_0x54a7cf=_0x129f72['plugins'][_0x570a('0x67')](_0x570a('0x39')),_0xb3a788=_0x129f72['plugins'][_0x570a('0x67')](_0x570a('0x2e')),_0xae62aa=_0x129f72[_0x570a('0x4e')][_0x570a('0x67')](_0x570a('0x59'));_0x129f72['ui']['componentFactory'][_0x570a('0x51')]('trackChanges',_0x440cfb=>this[_0x570a('0x6c')](_0x440cfb)),_0xb3a788[_0x570a('0x29')](()=>{const _0x55a6d3=[];for(const [_0x52e64f,_0x5cc791]of Array[_0x570a('0x22')](this['_suggestionToController'])){const _0x4954b3=_0x52e64f[_0x570a('0x9')](),_0x2c4616=[];for(const _0x5c3239 of _0x4954b3){if(!_0x5c3239[_0x570a('0x56')])continue;if(_0x5c3239[_0x570a('0x21')]){_0x2c4616[_0x570a('0x5c')](..._0x5c3239[_0x570a('0x4d')]());continue;}const _0xf68655=_0x5c3239[_0x570a('0x49')]();if(_0x2c4616[_0x570a('0x1b')]>0x0){const _0xe94767=_0x2c4616[0x0][_0x570a('0x38')](_0xf68655);if(_0xe94767){_0x2c4616[0x0]=_0xe94767;continue;}}_0x2c4616[_0x570a('0x5c')](_0xf68655);}_0x55a6d3[_0x570a('0x5c')]([_0x5cc791[_0x570a('0x1c')],_0x2c4616]);}return _0x55a6d3;}),this[_0x570a('0x55')](_0x1def52,_0x570a('0x27'),(_0x57b3e1,_0x3f7478)=>{this['listenTo'](_0x3f7478,_0x570a('0x45'),(_0x20f266,_0x2996b7,_0x13fb42,_0x37dd39)=>{_0x3f7478[_0x570a('0x56')]&&(null==_0x13fb42?(this[_0x570a('0xb')](_0x37dd39[_0x570a('0x3c')]),this[_0x570a('0x68')](_0x3f7478,!0x1)):(this[_0x570a('0xb')](_0x13fb42[_0x570a('0x3c')]),this[_0x570a('0x68')](_0x3f7478,!0x0)));}),null===_0x3f7478['previous']?this['_handleSuggestionControllerDelayed'](_0x3f7478,!0x1):this[_0x570a('0xb')](_0x3f7478[_0x570a('0x3c')]);}),this[_0x570a('0x55')](_0x1def52,'suggestionUnloaded',(_0x1c315c,_0x43ebc5,_0x5d09b9)=>{this[_0x570a('0x2f')](_0x43ebc5,_0x570a('0x45')),this[_0x570a('0x63')][_0x570a('0x41')](_0x43ebc5);const _0x478c82=_0x5d09b9?_0x5d09b9[_0x570a('0x3c')]:_0x43ebc5,_0x46e557=this[_0x570a('0x5')][_0x570a('0x67')](_0x478c82);null!==_0x5d09b9&&this[_0x570a('0xb')](_0x478c82),null===_0x5d09b9&&_0x46e557&&this[_0x570a('0x25')](_0x43ebc5);}),this[_0x570a('0x55')](_0x1def52,_0x570a('0x3a'),(_0x29d1ae,_0xe222)=>{this[_0x570a('0xb')](_0xe222);}),this[_0x570a('0x55')](_0x54a7cf,_0x570a('0x4'),()=>{this[_0x570a('0x28')]();}),this[_0x570a('0x55')](_0xae62aa,_0x570a('0x8'),(_0x58308e,{threadId:_0x42f739,isFromAdapter:_0x54290f})=>{if(_0x54290f||!_0x1def52['hasSuggestion'](_0x42f739))return;const _0x401886=_0x1def52[_0x570a('0x52')](_0x42f739);this['_suggestionToController'][_0x570a('0x67')](_0x401886)[_0x570a('0x1c')][_0x570a('0x0')]();},{'priority':_0x570a('0x31')});}['_refreshActiveMarkers'](){const _0x32559d=this[_0x570a('0x19')][_0x570a('0x4e')][_0x570a('0x67')](_0x570a('0x39')),_0xd0dedd=this['editor'][_0x570a('0x4e')][_0x570a('0x67')](_0x570a('0x3b')),_0xac70b9=Array['from'](_0x32559d[_0x570a('0x3e')],_0x4d55a4=>_0x4d55a4['innerView'])[_0x570a('0x5f')](_0x242178=>this[_0x570a('0x5d')][_0x570a('0x43')](_0x242178)),_0x2787fe=[];for(const _0x3ce5bb of _0xac70b9){const _0x60be30=this['_viewToController'][_0x570a('0x67')](_0x3ce5bb)[_0x570a('0x16')]['getAllAdjacentSuggestions']();_0x2787fe[_0x570a('0x5c')](..._0x60be30[_0x570a('0x2')]((_0x321eff,_0x3d9cff)=>[..._0x321eff,..._0x3d9cff[_0x570a('0x6')]()],[]));}_0xd0dedd['activeMarkers']=_0x2787fe;}[_0x570a('0x6c')](_0x40df4a){const _0x5d83c2=_0x599df5(_0x40df4a,_0xe8d008),_0x3fb3be=this[_0x570a('0x19')][_0x570a('0x3')][_0x570a('0x67')](_0x570a('0x2d')),_0x228994=_0x4e0625(_0x40df4a,'Track\x20changes');_0x5d83c2[_0x570a('0x36')][_0x570a('0x64')]({'tooltip':_0x228994,'label':_0x228994,'icon':_0x10f2ac}),_0x5d83c2[_0x570a('0x36')][_0x570a('0x61')](_0x570a('0x65'))['to'](_0x3fb3be,_0x570a('0x26')),_0x5d83c2[_0x570a('0x36')]['on'](_0x570a('0x1d'),()=>{_0x3fb3be[_0x570a('0x1d')](),this[_0x570a('0x19')][_0x570a('0x53')][_0x570a('0x1c')]['focus']();});const _0x1aa558=new _0x2cd121(),_0x41c7cc=[{'type':_0x570a('0x30'),'model':{'withText':!0x0,'label':_0x228994,'commandName':_0x570a('0x2d')}},{'type':'separator'},{'type':'button','model':{'withText':!0x0,'label':_0x4e0625(_0x40df4a,_0x570a('0x2b')),'commandName':_0x570a('0xe')}},{'type':'button','model':{'withText':!0x0,'label':_0x4e0625(_0x40df4a,_0x570a('0x12')),'commandName':_0x570a('0x32')}},{'type':_0x570a('0x50'),'model':{'withText':!0x0,'label':_0x4e0625(_0x40df4a,_0x570a('0x60')),'commandName':'discardAllSuggestions'}},{'type':_0x570a('0x50'),'model':{'withText':!0x0,'label':_0x4e0625(_0x40df4a,_0x570a('0x37')),'commandName':'discardSelectedSuggestions'}}];for(const _0x439dc1 of _0x41c7cc){let _0xfc7e91={'type':_0x570a('0x1')};if(_0x439dc1[_0x570a('0x16')]){const _0x5248ca=new _0x4cc41a(_0x439dc1[_0x570a('0x16')]),_0x1f9061=this[_0x570a('0x19')]['commands'][_0x570a('0x67')](_0x5248ca[_0x570a('0x1f')]);_0x5248ca[_0x570a('0x61')](_0x570a('0x65'),_0x570a('0x62'))['to'](_0x1f9061,_0x570a('0x26'),_0x570a('0x62')),_0xfc7e91={'type':_0x439dc1[_0x570a('0x54')],'model':_0x5248ca};}_0x1aa558[_0x570a('0x51')](_0xfc7e91);}_0x18e8b0(_0x5d83c2,_0x1aa558);const _0x4753e8=_0x41c7cc['filter'](_0x6f3a30=>null!=_0x6f3a30[_0x570a('0x16')])[_0x570a('0x35')](_0x24a17e=>this[_0x570a('0x19')][_0x570a('0x3')]['get'](_0x24a17e[_0x570a('0x16')][_0x570a('0x1f')])),_0x545a42=_0x5d83c2[_0x570a('0x36')];return _0x545a42['actionView'][_0x570a('0x48')](_0x570a('0x62')),_0x545a42['arrowView']['unbind']('isEnabled'),_0x545a42[_0x570a('0x4a')][_0x570a('0x61')]('isEnabled')['to'](_0x3fb3be,'isEnabled'),_0x545a42[_0x570a('0x5e')][_0x570a('0x61')]('isEnabled')['toMany'](_0x4753e8,_0x570a('0x62'),(..._0x882c03)=>_0x882c03[_0x570a('0x4b')](_0x3b2c0e=>_0x3b2c0e)),_0x5d83c2['on'](_0x570a('0x1d'),_0x2f3f88=>{this[_0x570a('0x19')][_0x570a('0x1d')](_0x2f3f88[_0x570a('0x20')][_0x570a('0x1f')]),this[_0x570a('0x19')][_0x570a('0x53')][_0x570a('0x1c')][_0x570a('0x0')]();}),_0x5d83c2;}[_0x570a('0x1a')](_0x36c2ab){const _0x49e8f1=this[_0x570a('0x19')],_0x4e6ff7=_0x49e8f1[_0x570a('0x6a')],_0x998853=_0x49e8f1['plugins'][_0x570a('0x67')](_0x570a('0x39')),_0x2c1183=_0x49e8f1[_0x570a('0x4e')][_0x570a('0x67')](_0x570a('0x59')),_0x588fe2=_0x49e8f1[_0x570a('0x4e')][_0x570a('0x67')]('EditorAnnotations'),_0x119eba=_0x49e8f1[_0x570a('0x4e')][_0x570a('0x67')](_0x8df17e)['me'],_0x19dabe=_0x4e6ff7[_0x570a('0x67')](_0x570a('0x2d'))['SuggestionThreadView'],{CommentsListView:_0x4426b5,CommentThreadInputView:_0x2e401a}=_0x49e8f1[_0x570a('0x4e')]['get'](_0x570a('0xa'));let _0x253750,_0xa1c735;this[_0x570a('0x10')][_0x570a('0x43')](_0x36c2ab['id'])?(_0xa1c735=this[_0x570a('0x10')][_0x570a('0x67')](_0x36c2ab['id']),_0x253750=_0xa1c735[_0x570a('0x7')]):(_0x253750=new _0x19dabe(_0x49e8f1[_0x570a('0x47')],_0x36c2ab,_0x119eba,{'disableComments':this[_0x570a('0x3f')],'editorConfig':_0x4e6ff7[_0x570a('0x67')](_0x570a('0xc')),'maxCommentsWhenCollapsed':_0x4e6ff7[_0x570a('0x67')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4e6ff7['get'](_0x570a('0x58')),'maxCommentCharsWhenCollapsed':_0x4e6ff7[_0x570a('0x67')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2b3884(_0x4e6ff7[_0x570a('0x67')]('locale')),'CommentView':_0x4e6ff7[_0x570a('0x67')](_0x570a('0x1e'))['CommentView'],'CommentsListView':_0x4426b5,'CommentThreadInputView':_0x2e401a}),_0x253750[_0x570a('0x3d')]['on'](_0x570a('0x1d'),()=>{_0x49e8f1['editing']['view']['focus']();}),_0x253750[_0x570a('0xd')]['on'](_0x570a('0x1d'),()=>{_0x49e8f1['editing'][_0x570a('0x1c')][_0x570a('0x0')]();}),_0xa1c735=_0x998853[_0x570a('0x2c')](this[_0x570a('0x19')][_0x570a('0x47')],_0x253750),_0xa1c735[_0x570a('0x61')](_0x570a('0x23'))['to'](_0x253750,_0x570a('0x23')),_0xa1c735[_0x570a('0x61')](_0x570a('0x1b'))['to'](_0x253750),_0xa1c735[_0x570a('0x61')](_0x570a('0x54'))['to'](_0x253750,_0x570a('0x54'),_0x41587c=>_0x570a('0x15')+_0x41587c),this[_0x570a('0x10')]['set'](_0x36c2ab['id'],_0xa1c735));const _0xe10490=_0x2c1183[_0x570a('0x33')](_0x36c2ab[_0x570a('0x42')],_0x253750),_0x4fadce=new _0x538b79(_0x49e8f1,_0x36c2ab,_0x253750,_0xe10490),_0x2243fd=_0x36c2ab[_0x570a('0x9')]()[_0x570a('0x5f')](_0x45307e=>_0x45307e['isInContent']);_0x253750[_0x570a('0x17')]=_0x49e8f1[_0x570a('0x4e')][_0x570a('0x67')](_0x570a('0x3b'))['_descriptionFactory'][_0x570a('0x6b')](_0x2243fd),this[_0x570a('0x5')][_0x570a('0x64')](_0x36c2ab,_0x4fadce),this[_0x570a('0x5d')][_0x570a('0x64')](_0x253750,_0x4fadce);const _0xe6c354=_0x998853['createAnnotation']({'view':_0xa1c735,'target':()=>{const _0x5c9118=[],_0x5cca96=_0x36c2ab[_0x570a('0x9')]()[_0x570a('0x5f')](_0x16ce50=>_0x16ce50[_0x570a('0x56')]);for(const _0x2be921 of _0x5cca96)_0x5c9118[_0x570a('0x5c')](..._0x2be921['getMarkers']());return _0x37c734(_0x49e8f1[_0x570a('0x53')],_0x5c9118);},'type':()=>'suggestion-'+_0x4fadce['view']['type']});_0x2c1183[_0x570a('0x40')](_0x253750,_0xe6c354),_0x998853['add'](_0xe6c354),_0x588fe2[_0x570a('0x13')](_0xe6c354);}['_destroyController'](_0x5ece9b){const _0x4b6312=this['editor'][_0x570a('0x4e')]['get'](_0x570a('0x59')),_0x113e0c=this['editor']['plugins'][_0x570a('0x67')](_0x570a('0x39')),_0x1bff30=this[_0x570a('0x5')]['get'](_0x5ece9b),_0x3e3968=_0x1bff30['view'],_0x367d2d=_0x113e0c[_0x570a('0x2a')](_0x3e3968);_0x4b6312[_0x570a('0x69')](_0x3e3968),_0x367d2d&&_0x113e0c[_0x570a('0x4c')](_0x367d2d),this[_0x570a('0x5')]['delete'](_0x5ece9b),this[_0x570a('0x5d')][_0x570a('0x41')](_0x3e3968),_0x1bff30[_0x570a('0x5b')]();}[_0x570a('0xb')](_0x17bd38){if(!_0x17bd38[_0x570a('0x56')]||!this['_suggestionToController'][_0x570a('0x43')](_0x17bd38))return;const _0x2377e8=this[_0x570a('0x19')][_0x570a('0x4e')]['get']('TrackChangesEditing'),_0x547cc1=this[_0x570a('0x5')][_0x570a('0x67')](_0x17bd38),_0x4dc046=_0x17bd38['getAllAdjacentSuggestions']();_0x547cc1['view'][_0x570a('0x17')]=_0x2377e8[_0x570a('0x66')][_0x570a('0x6b')](_0x4dc046);}[_0x570a('0x5b')](){for(const _0x4b2c2c of this[_0x570a('0x5')][_0x570a('0xf')]())this[_0x570a('0x25')](_0x4b2c2c);for(const _0x2e81f3 of this['_annotationViews']['values']())_0x2e81f3[_0x570a('0x7')][_0x570a('0x5b')]();super[_0x570a('0x5b')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a68=['_pendingAction','_discardCommand','discardSuggestion','bind','_setPendingAction','destroy','PendingActions','unbind','commentThreadController','stopListening','canEditAt','execute','add','canAccept','isEnabled','_editor','_acceptCommand','listenTo','commands','change:isDirty','locale','view','remove','model','get','plugins','_removePendingAction','isDirty','canDiscard','acceptSuggestion'];(function(_0x2dca9e,_0x1a680d){const _0x3fe178=function(_0x152802){while(--_0x152802){_0x2dca9e['push'](_0x2dca9e['shift']());}};_0x3fe178(++_0x1a680d);}(_0x1a68,0x124));const _0x3fe1=function(_0x2dca9e,_0x1a680d){_0x2dca9e=_0x2dca9e-0x0;let _0x3fe178=_0x1a68[_0x2dca9e];return _0x3fe178;};import{ObservableMixin as _0x47df54}from'ckeditor5/src/utils';import{getTranslation as _0x4e5b6d}from'../utils/common-translations';export default class Gt extends _0x47df54(){constructor(_0xde48f6,_0x5586ad,_0x15e3fc,_0x1e1b40){super(),this[_0x3fe1('0x1')]=_0x5586ad,this[_0x3fe1('0x1d')]=_0x15e3fc,this[_0x3fe1('0x10')]=_0x1e1b40,this[_0x3fe1('0x17')]=_0xde48f6,this[_0x3fe1('0x18')]=_0xde48f6[_0x3fe1('0x1a')][_0x3fe1('0x2')](_0x3fe1('0x7')),this[_0x3fe1('0x9')]=_0xde48f6[_0x3fe1('0x1a')][_0x3fe1('0x2')](_0x3fe1('0xa')),this['view'][_0x3fe1('0xb')](_0x3fe1('0x16'))['to'](this['_acceptCommand'],this[_0x3fe1('0x9')],(_0x2d73b,_0x54b495)=>_0x2d73b||_0x54b495),this[_0x3fe1('0x1d')][_0x3fe1('0xb')](_0x3fe1('0x15'))['to'](this[_0x3fe1('0x18')],'isEnabled',_0x54c9d8=>_0x54c9d8&&this[_0x3fe1('0x17')]['model'][_0x3fe1('0x12')](_0x5586ad['getRanges']())),this[_0x3fe1('0x1d')]['bind'](_0x3fe1('0x6'))['to'](this[_0x3fe1('0x9')],_0x3fe1('0x16'),_0x1e04cf=>_0x1e04cf&&this[_0x3fe1('0x17')][_0x3fe1('0x1')][_0x3fe1('0x12')](_0x5586ad['getRanges']())),this[_0x3fe1('0x8')]=null,_0x15e3fc[_0x3fe1('0x5')]&&this[_0x3fe1('0xc')](),this[_0x3fe1('0x19')](_0x15e3fc,_0x3fe1('0x7'),()=>this[_0x3fe1('0x7')]()),this[_0x3fe1('0x19')](_0x15e3fc,_0x3fe1('0xa'),()=>this[_0x3fe1('0xa')]()),this[_0x3fe1('0x19')](_0x15e3fc,_0x3fe1('0x1b'),()=>{_0x15e3fc[_0x3fe1('0x5')]?this[_0x3fe1('0xc')]():this['_removePendingAction']();});}[_0x3fe1('0x7')](){this[_0x3fe1('0x18')][_0x3fe1('0x13')](this['model']['id']);}[_0x3fe1('0xa')](){this[_0x3fe1('0x9')][_0x3fe1('0x13')](this['model']['id']);}[_0x3fe1('0xd')](){this[_0x3fe1('0x1d')][_0x3fe1('0xf')](_0x3fe1('0x16')),this[_0x3fe1('0x1d')]['unbind']('canAccept'),this[_0x3fe1('0x1d')]['unbind'](_0x3fe1('0x6')),this[_0x3fe1('0x11')](),this['commentThreadController'][_0x3fe1('0xd')](),this[_0x3fe1('0x8')]&&this[_0x3fe1('0x4')]();}[_0x3fe1('0xc')](){const _0x541802=_0x4e5b6d(this[_0x3fe1('0x17')][_0x3fe1('0x1c')],'PENDING_ACTION_SUGGESTION');this[_0x3fe1('0x8')]=this[_0x3fe1('0x17')][_0x3fe1('0x3')][_0x3fe1('0x2')]('PendingActions')[_0x3fe1('0x14')](_0x541802);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor'][_0x3fe1('0x3')][_0x3fe1('0x2')](_0x3fe1('0xe'))[_0x3fe1('0x0')](this['_pendingAction']),this[_0x3fe1('0x8')]=null;}}
|