@ckeditor/ckeditor5-track-changes 37.0.1 → 38.0.0-rc.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 +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/ar.po +15 -1
- package/lang/translations/az.po +11 -1
- package/lang/translations/bg.po +11 -1
- package/lang/translations/bn.po +11 -1
- package/lang/translations/ca.po +11 -1
- package/lang/translations/cs.po +13 -1
- package/lang/translations/da.po +11 -1
- package/lang/translations/de.po +11 -1
- package/lang/translations/el.po +11 -1
- package/lang/translations/en-au.po +31 -21
- package/lang/translations/en.po +10 -0
- package/lang/translations/es.po +12 -1
- package/lang/translations/et.po +11 -1
- package/lang/translations/fi.po +11 -1
- package/lang/translations/fr.po +12 -1
- package/lang/translations/gl.po +11 -1
- package/lang/translations/he.po +13 -1
- package/lang/translations/hi.po +11 -1
- package/lang/translations/hr.po +34 -23
- package/lang/translations/hu.po +11 -1
- package/lang/translations/id.po +10 -1
- package/lang/translations/it.po +12 -1
- package/lang/translations/ja.po +10 -1
- package/lang/translations/ko.po +10 -1
- package/lang/translations/lt.po +13 -1
- package/lang/translations/lv.po +12 -1
- package/lang/translations/ms.po +10 -1
- package/lang/translations/nl.po +11 -1
- package/lang/translations/no.po +11 -1
- package/lang/translations/pl.po +13 -1
- package/lang/translations/pt-br.po +12 -1
- package/lang/translations/pt.po +12 -1
- package/lang/translations/ro.po +12 -1
- package/lang/translations/ru.po +13 -1
- package/lang/translations/sk.po +13 -1
- package/lang/translations/sr-latn.po +15 -4
- package/lang/translations/sr.po +33 -22
- package/lang/translations/sv.po +11 -1
- package/lang/translations/th.po +10 -1
- package/lang/translations/tk.po +11 -1
- package/lang/translations/tr.po +11 -1
- package/lang/translations/tt.po +10 -1
- package/lang/translations/uk.po +13 -1
- package/lang/translations/ur.po +11 -1
- package/lang/translations/vi.po +10 -1
- package/lang/translations/zh-cn.po +10 -1
- package/lang/translations/zh.po +10 -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/index.d.ts +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.d.ts +13 -0
- package/src/integrations/formatpainter.js +23 -0
- 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.d.ts +13 -0
- package/src/integrations/tableofcontents.js +23 -0
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.d.ts +13 -0
- package/src/integrations/template.js +23 -0
- 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.d.ts +23 -5
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +23 -5
- 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 _0x3bd5=['PENDING_ACTION_SUGGESTION','getAncestors','_enabledCommands','options','data-suggestion','update:suggestion','applyOperation','commandName','return','isEqual','selection','activeMarkers','suggestion:','addRange','discard','normal','_customCallbacks','dataToMarker','detach','getMultiRangeId','change:activeMarkers','markerReady','isDocumentOperation','_findSuggestions','elementStart','_handleNewSuggestionMarker','_checkSuggestionCorrectness','values','isObject','insert','has','parent','updateSuggestion','filter','containerElement','subType','_rangeIsInLocalUserInsertion','containsRange','_getExternalAuthor','size','formatInline:chain','isNextTo','refresh','elementToElement','_trackFormatChanges','$graveyard','removeComment','_getAuthorFromId','isMultiRange','_breakSuggestionMarker','howMany','hasCommentThread','createRange','attributes','getChangedMarkers','deletion:discard','insertion:','_defaultCallbacks','createPositionAt','getAttribute','getLastMatchingPosition','@external','registerCustomCallback','marker-count','name','PendingActions','isOwn','accepted','isCollapsed','deletion:join','trackChangesCommand','isAtEnd','isBefore','ck-suggestion-marker--active','_getSuggestionData','external:','deletion','ready','adapter','_setSuggestionData','push','bindElementToMarker','createPositionBefore','enableCommand','formatInline:discard','CommentsRepository','isInContent','acceptSuggestion','isSelectable','next','_adapter','length','commands','deletion:chain','track-changes-suggestion-data-mismatch','formatInline:accept','createRangeIn','_createSuggestion','commentThread','getAllAdjacentSuggestions','delete','suggestionChanged','createPositionAfter','formatInline','pluginName','ck-suggestion-marker-','track-changes-adapter-missing-getsuggestion','markDeletion','root','getShiftedBy','differ','isRemovable','acceptAllSuggestions','conversion','type','formatGroupId','formatInline:','addMarker:suggestion:formatBlock','clone','isUndo','createdAt','setSelection','markInsertion','removed','_registerDefaultCallbacks','split','author','model','suggestionLoaded','splice','every','getChanges','join','addComment','isLimit','splitPosition','high','removeMarkers','nodeAfter','hasSuggestion','markerToData','before','getMarkers','group','getFirstMarker','_commentsRepository','dataDowncast','isIntersectingWithRange','_addSuggestionMarker','locale','_saved','getSuggestionCallback','value','Users','forceDefaultExecution','getWalker','get','move','consumable','previous','getUser','remove','_model','getFirstRange','map','ck-suggestion-marker-formatBlock','isInsideObject','$textProxy','end','addSuggestion','addMarker','schema','plugins','setAttribute','isBlock','getSuggestions','editor','newRange','_suggestionFactory','stop','_setSuggestionRange','_joinWithAdjacentSuggestions','multipleBlocks','track-changes-command-not-found','head','authoredAt','ck-suggestion-marker','formatBlock:accept','sort','range','containsRangeInObject','track-changes-suggestion-not-found','documentSelection','mapper','position','init','define','markerNameToElements','getIntersection','config','trackChanges.trackFormatChanges','getDifference','removeMarker','trackChanges','_isForcedDefaultExecutionBlock','insertion:chain','toViewElement','_editor','enableReadOnlyMode','rootName','discardAllSuggestions','isAfter','fire','consume','data','addClass','nodeBefore','getRanges','formatBlock:chain','rejected','markBlockFormat','execute','deletion:','_cutOutSuggestionMarker','createElement','item','removeMarker:suggestion:formatBlock','insertContent','addSuggestionData','addMarker:suggestion','updateMarker','registerPostFixer','formatBlock:discard','lowest','listenTo','markers','_refreshSuggestionsChain','acceptSelectedSuggestions','markInlineFormat','start','formatInline:join','change','getNearestSelectionRange','writer','editingDowncast','track-changes-adapter-already-set','createSelection','batch','getCustomProperty','resolve','_addThreadToSuggestion','add','fromCharCode','chain','forward','creator','upcast','includes','markerToHighlight','buildSuggestion','_descriptionFactory','_suggestionState','multi','suggestion','markerName','hasComments','for','containsItem','toJSON','_suggestions','catch','set','then','deleteContent','isAtStart','formatBlock:','_joinSuggestions','getItems','showSuggestionHighlights','removeClass','_splitMarkerName','reconvertMarker','insertion','some','unbindElementFromMarkerName','getCommentThread','_onDiscard','containsPosition','suggestion-type','moveTargetPosition','discardSuggestion','getSuggestion','addHighlight','addMarkerName','collaboration.channelId','_removeSuggestion','change:data','_updateSuggestionData','deletion:accept','setTo','widget','element','discardSelectedSuggestions','notReady','dataReady','insertion:join','oldRange','stopListening','formatBlock','document','from','accept','after','low'];(function(_0xe5ab4,_0x3bd5fa){const _0x350f9c=function(_0x48e97a){while(--_0x48e97a){_0xe5ab4['push'](_0xe5ab4['shift']());}};_0x350f9c(++_0x3bd5fa);}(_0x3bd5,0x67));const _0x350f=function(_0xe5ab4,_0x3bd5fa){_0xe5ab4=_0xe5ab4-0x0;let _0x350f9c=_0x3bd5[_0xe5ab4];return _0x350f9c;};import{Plugin as _0x1517c8,PendingActions as _0x3fa6ea}from'ckeditor5/src/core';import{LiveRange as _0x319865}from'ckeditor5/src/engine';import{CKEditorError as _0x119d3e,uid as _0x4cb20a,priorities as _0x59dfda,logWarning as _0xd5393f}from'ckeditor5/src/utils';import{toWidget as _0x466ac4}from'ckeditor5/src/widget';import{Users as _0x4a58c5,hashObject as _0x394310}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d34bb from'./commands/trackchangescommand';import _0x4bcffe from'./commands/acceptsuggestioncommand';import _0x4186d0 from'./commands/discardsuggestioncommand';import _0x4a8fef from'./commands/executeonallsuggestionscommand';import _0xea949b from'./commands/executeonselectedsuggestionscommand';import _0x14b365 from'./suggestion';import _0x516da3 from'./suggestiondescriptionfactory';import _0x4c9d57 from'./integrations/alignment';import _0x154435 from'./integrations/basicstyles';import _0x804368 from'./integrations/blockquote';import _0x4458eb from'./integrations/ckbox';import _0x3ce1d3 from'./integrations/codeblock';import _0x23536b from'./integrations/comments';import _0x38c2a4 from'./integrations/deletecommand';import _0x3d7022 from'./integrations/documentlist';import _0x4792cd from'./integrations/entercommand';import _0x5e9ee8 from'./integrations/findandreplace';import _0x30e073 from'./integrations/font';import _0x5d7a9c from'./integrations/heading';import _0x1b625b from'./integrations/highlight';import _0x4c6b3f from'./integrations/horizontalline';import _0x338ebb from'./integrations/htmlembed';import _0x2b50d8 from'./integrations/image';import _0x4bdbfa from'./integrations/imagereplace';import _0x18c38f from'./integrations/importword';import _0x122ffd from'./integrations/indent';import _0x32252c from'./integrations/inputcommand';import _0x3f10e3 from'./integrations/link';import _0x59088e from'./integrations/list';import _0x14ba1f from'./integrations/listproperties';import _0x5ccc88 from'./integrations/mediaembed';import _0x49aa95 from'./integrations/mention';import _0x2e4b54 from'./integrations/pagebreak';import _0x4eddb9 from'./integrations/paragraph';import _0x381ea0 from'./integrations/removeformat';import _0xd1bac0 from'./integrations/restrictededitingmode';import _0x5502af from'./integrations/shiftentercommand';import _0x303eca from'./integrations/standardeditingmode';import _0x1e6178 from'./integrations/style';import _0x4486aa from'./integrations/table';import _0x12e456 from'./integrations/tablemergesplit';import _0x42bfb1 from'./integrations/tableheadings';import _0x42bf29 from'./integrations/tableclipboard';import _0x3dca8f from'./integrations/tablecolumnresize';import _0x4921df from'./integrations/title';import _0x4cf8d3 from'./integrations/undo';import{getTranslation as _0x3436c0}from'./utils/common-translations';import _0x34d931 from'./integrations/tablecaption';import _0x2c73a6 from'./integrations/documentlistproperties';import _0x27d865 from'./integrations/tableproperties';export default class p extends _0x1517c8{static get['requires'](){return['CommentsRepository',_0x4a58c5,_0x3fa6ea,_0x4c9d57,_0x154435,_0x804368,_0x4458eb,_0x3ce1d3,_0x23536b,_0x38c2a4,_0x3d7022,_0x2c73a6,_0x4792cd,_0x5e9ee8,_0x30e073,_0x5d7a9c,_0x1b625b,_0x4c6b3f,_0x338ebb,_0x2b50d8,_0x4bdbfa,_0x18c38f,_0x122ffd,_0x32252c,_0x3f10e3,_0x59088e,_0x14ba1f,_0x5ccc88,_0x49aa95,_0x2e4b54,_0x4eddb9,_0x381ea0,_0xd1bac0,_0x5502af,_0x303eca,_0x1e6178,_0x4486aa,_0x12e456,_0x42bfb1,_0x34d931,_0x42bf29,_0x3dca8f,_0x27d865,_0x4921df,_0x4cf8d3];}static get[_0x350f('0x1')](){return'TrackChangesEditing';}constructor(_0x2e4011){function _0x314b1f(_0x2f6356){return _0x2f6356[_0x350f('0x3d')](_0x23f325=>String[_0x350f('0x95')](_0x23f325))['join']('');}super(_0x2e4011),this[_0x350f('0xa8')](_0x350f('0xde'),[]),this['on'](_0x350f('0xe7'),(_0x1c79c7,_0x98370,_0x5c388f,_0x2281fa)=>{this[_0x350f('0x3b')][_0x350f('0x8a')](()=>{for(const _0x15ee7e of[..._0x2281fa,..._0x5c388f])this[_0x350f('0x3b')][_0x350f('0x84')][_0x350f('0xf1')](_0x15ee7e)&&_0x2e4011['editing'][_0x350f('0xb2')](_0x15ee7e);});}),this[_0x350f('0x9d')]=new _0x516da3(this[_0x350f('0x49')]['model'][_0x350f('0x44')],this[_0x350f('0x49')][_0x350f('0x2e')]),this[_0x350f('0x12d')]=null,this[_0x350f('0x4b')]=new vt(this['editor']),this[_0x350f('0xa6')]=new Map(),this[_0x350f('0x2a')]=_0x2e4011[_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x128')),this[_0x350f('0xd5')]=new Set(),this[_0x350f('0x3b')]=this[_0x350f('0x49')]['model'],this[_0x350f('0x9e')]=new WeakMap(),this[_0x350f('0x65')]=!0x1,_0x2e4011[_0x350f('0x60')][_0x350f('0x5d')]('trackChanges.trackFormatChanges',!0x0),this['_trackFormatChanges']=_0x2e4011[_0x350f('0x60')]['get'](_0x350f('0x61')),this[_0x350f('0x119')]=new _0x2d34bb(_0x2e4011,this[_0x350f('0xd5')]),this[_0x314b1f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x314b1f([0x34,0x30,0x34,0x36,0x30,0x38,0x31,0x30]);}[_0x350f('0x5c')](){const _0x5a8c0c=this[_0x350f('0x49')];_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))['markerToHighlight']({'model':_0x350f('0xa0'),'view':_0x4aad6a=>{const {id:_0x55a5bf,type:_0x1c382e}=this['_splitMarkerName'](_0x4aad6a[_0x350f('0xa1')]),_0xd7c253=[_0x350f('0x53'),_0x350f('0x2')+_0x1c382e];let _0x5cfb01=0xbb8;return this['activeMarkers']['includes'](_0x4aad6a[_0x350f('0xa1')])&&(_0xd7c253[_0x350f('0x123')](_0x350f('0x11c')),_0x5cfb01=0xbc2),_0x350f('0x11f')==_0x1c382e&&(_0x5cfb01+=0x5),{'classes':_0xd7c253,'attributes':{'data-suggestion':_0x55a5bf},'priority':_0x5cfb01};}}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x2b'))[_0x350f('0x94')](_0x4f6648=>{_0x4f6648['on'](_0x350f('0x7e'),(_0xc113d5,_0x368f7f,_0x4f97eb)=>{if(!_0x4f97eb[_0x350f('0xd6')][_0x350f('0xaf')])return;const _0xefff09=_0x368f7f['item'];if(!_0xefff09)return;const _0x3eaf8c=_0x4f97eb['mapper'][_0x350f('0x67')](_0xefff09);_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')][_0x350f('0xef')](_0xefff09)&&_0x3eaf8c&&!_0x3eaf8c[_0x350f('0x91')](_0x350f('0xc5'))&&_0x3eaf8c['is'](_0x350f('0xf5'))&&_0x466ac4(_0x3eaf8c,_0x4f97eb[_0x350f('0x8c')]);},{'priority':_0x350f('0x21')});}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')]('dataDowncast')[_0x350f('0x9b')]({'model':_0x350f('0xa0'),'view':(_0x50be73,_0x277a65)=>{if(!_0x277a65['options'][_0x350f('0xaf')])return null;const {type:_0x120c5c}=this[_0x350f('0xb1')](_0x50be73[_0x350f('0xa1')]);return{'classes':[_0x350f('0x53'),_0x350f('0x2')+_0x120c5c],'priority':0xbb8};}});const _0x188385=({showActiveMarkers:_0x109e2b=!0x0}={})=>(_0x527657,_0x17a984,_0x3e0de1)=>{if(!_0x17a984[_0x350f('0x7a')])return;if(_0x17a984['item']['is'](_0x350f('0xdd')))return void _0x3e0de1[_0x350f('0x37')][_0x350f('0x6e')](_0x17a984['item'],_0x527657[_0x350f('0x113')]);const _0x5556f2=_0x3e0de1[_0x350f('0x5a')]['toViewElement'](_0x17a984[_0x350f('0x7a')]);if(!(_0x17a984[_0x350f('0x7a')]['is'](_0x350f('0xc6'))&&_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')][_0x350f('0x47')](_0x17a984[_0x350f('0x7a')])&&!_0x5556f2[_0x350f('0x91')](_0x350f('0xbd'))))return;const {id:_0x23fc5c}=this[_0x350f('0xb1')](_0x17a984[_0x350f('0xa1')]);_0x3e0de1['writer'][_0x350f('0x70')]([_0x350f('0x53'),'ck-suggestion-marker-formatBlock'],_0x5556f2),_0x3e0de1[_0x350f('0x8c')][_0x350f('0x46')](_0x350f('0xd7'),_0x23fc5c,_0x5556f2),_0x3e0de1[_0x350f('0x5a')][_0x350f('0x124')](_0x5556f2,_0x17a984[_0x350f('0xa1')]),_0x109e2b&&(this[_0x350f('0xde')][_0x350f('0x9a')](_0x17a984[_0x350f('0xa1')])?_0x3e0de1[_0x350f('0x8c')]['addClass']('ck-suggestion-marker--active',_0x5556f2):_0x3e0de1[_0x350f('0x8c')][_0x350f('0xb0')](_0x350f('0x11c'),_0x5556f2));for(const _0x49467d of _0x5a8c0c[_0x350f('0x18')][_0x350f('0x133')](_0x17a984[_0x350f('0x7a')])[_0x350f('0xae')]())_0x3e0de1[_0x350f('0x37')][_0x350f('0x6e')](_0x49467d,_0x527657['name']);_0x3e0de1['consumable'][_0x350f('0x6e')](_0x17a984[_0x350f('0x7a')],_0x527657['name']);};_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x2b'))['add'](_0x9dc56a=>{_0x9dc56a['on']('addMarker:suggestion:formatBlock',(_0x383272,_0xb4a754,_0x448c18)=>{_0x448c18[_0x350f('0xd6')]['showSuggestionHighlights']&&_0x188385({'showActiveMarkers':!0x1})(_0x383272,_0xb4a754,_0x448c18);},{'priority':'highest'});}),_0x5a8c0c[_0x350f('0xa')]['for'](_0x350f('0x2b'))[_0x350f('0x25')]({'model':_0x350f('0xa0'),'view':(_0x3ef126,_0xb33579)=>_0xb33579[_0x350f('0xd6')][_0x350f('0xaf')]?null:{'group':_0x350f('0xa0'),'name':_0x3ef126['substr'](_0x350f('0xa0')[_0x350f('0x12e')]+0x1)}}),_0x5a8c0c['conversion'][_0x350f('0xa3')](_0x350f('0x99'))[_0x350f('0xfe')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3bff05,{writer:_0x2ef49e})=>{let _0x1e7a97=_0x350f('0xdf')+_0x3bff05['getAttribute'](_0x350f('0xb9'))+':'+_0x3bff05['getAttribute']('id');return _0x3bff05[_0x350f('0x10e')]('marker-count')&&(_0x1e7a97+=':'+_0x3bff05[_0x350f('0x10e')](_0x350f('0x112'))),_0x2ef49e[_0x350f('0x79')]('$marker',{'data-name':_0x1e7a97});}}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')]('upcast')[_0x350f('0xe4')]({'view':_0x350f('0xa0')}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))[_0x350f('0x94')](_0x93735e=>{_0x93735e['on'](_0x350f('0xe'),_0x188385(),{'priority':_0x350f('0x21')});}),_0x5a8c0c[_0x350f('0xa')][_0x350f('0xa3')](_0x350f('0x8d'))[_0x350f('0x94')](_0x40423f=>{_0x40423f['on'](_0x350f('0x7b'),(_0x19f6a9,_0x1c5eeb,_0x3637df)=>{const _0x3c36b5=_0x3637df[_0x350f('0x5a')][_0x350f('0x5e')](_0x1c5eeb[_0x350f('0xa1')]);if(_0x3c36b5)for(const _0x3f360b of _0x3c36b5)_0x3f360b[_0x350f('0x91')]('addHighlight')||(_0x3637df['writer']['removeClass']([_0x350f('0x53'),_0x350f('0x3e'),'ck-suggestion-marker--active'],_0x3f360b),_0x3637df[_0x350f('0x8c')]['removeAttribute'](_0x350f('0xd7'),_0x3f360b),_0x3637df['mapper'][_0x350f('0xb5')](_0x3f360b,_0x1c5eeb['markerName']));},{'priority':'high'});}),_0x5a8c0c[_0x350f('0x18')]['document'][_0x350f('0x80')](_0x577f5d=>{let _0x2d7fc4=!0x1;const _0x20a2da=Array[_0x350f('0xcf')](_0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')]['differ'][_0x350f('0x109')]()),_0x67ae9e=new Set();for(const {name:_0x1f8221,data:_0x5d06fd}of _0x20a2da){const {group:_0x15a9b2,type:_0x503f85,id:_0x56ce1e}=this[_0x350f('0xb1')](_0x1f8221);if(_0x350f('0xa0')!==_0x15a9b2)continue;const _0x1e99cc=this[_0x350f('0xa6')][_0x350f('0x35')](_0x56ce1e);if(null!=_0x5d06fd[_0x350f('0x4a')]){'formatInline'==_0x503f85&&(_0x2d7fc4=_0x2d7fc4||Ct(_0x5d06fd[_0x350f('0x4a')],_0x1f8221,_0x577f5d,_0x5a8c0c[_0x350f('0x18')][_0x350f('0x44')]));if(_0x5d06fd[_0x350f('0x4a')]['isCollapsed']||_0x350f('0x100')==_0x5d06fd[_0x350f('0x4a')][_0x350f('0x5')][_0x350f('0x6a')]||_0x350f('0xcd')==_0x503f85&&!_t(_0x5d06fd[_0x350f('0x4a')])||'deletion'==_0x503f85&&!(!Dt(_0x35ffa0=_0x5d06fd['newRange'])&&!function(_0x5e39f8){return _0x5e39f8[_0x350f('0x88')][_0x350f('0xf2')]==_0x5e39f8[_0x350f('0x41')][_0x350f('0x71')]&&_0x5e39f8['start'][_0x350f('0x11a')];}(_0x35ffa0)))_0x577f5d[_0x350f('0x63')](_0x1f8221),_0x2d7fc4=!0x0;else{if(!_0x1e99cc||!_0x1e99cc[_0x350f('0x129')])continue;_0x67ae9e[_0x350f('0x94')](_0x1e99cc);}}}var _0x35ffa0;return _0x67ae9e[_0x350f('0xfa')]>0x0&&(_0x2d7fc4=!!this[_0x350f('0x4e')](_0x67ae9e)||_0x2d7fc4),_0x2d7fc4;}),_0x5a8c0c['model'][_0x350f('0xce')][_0x350f('0x80')](_0x35889b=>{let _0x128166=!0x1;for(const _0x3d438e of _0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')][_0x350f('0x7')][_0x350f('0x1c')]()){if('insert'!=_0x3d438e[_0x350f('0xb')])continue;const _0x4b1c0f=_0x3d438e[_0x350f('0x5b')][_0x350f('0x6')](_0x3d438e[_0x350f('0x12e')]);if(_0x4b1c0f[_0x350f('0x11a')])for(const _0x4b4f69 of this[_0x350f('0xa6')][_0x350f('0xee')]()){if(_0x4b4f69[_0x350f('0x103')]||!_0x4b4f69[_0x350f('0x129')])continue;if(_0x350f('0xcd')!=_0x4b4f69[_0x350f('0xb')])continue;const _0x596185=_0x4b4f69['getFirstRange']();if(_0x596185['start']['parent']!=_0x596185[_0x350f('0x41')]['parent']&&_0x596185[_0x350f('0x41')][_0x350f('0xdc')](_0x3d438e['position'])){const _0x4e045b=_0x5a8c0c['model'][_0x350f('0x107')](_0x596185[_0x350f('0x88')],_0x4b1c0f);_0x35889b[_0x350f('0x7f')](_0x4b4f69[_0x350f('0x29')](),{'range':_0x4e045b}),_0x128166=!0x0;}}}return _0x128166;}),_0x5a8c0c[_0x350f('0x18')][_0x350f('0x84')]['on'](_0x350f('0xd8'),(_0x17d0da,_0x365487,_0x3b96ad)=>{if(null==_0x3b96ad){const {id:_0x4d9ef9}=this[_0x350f('0xb1')](_0x365487[_0x350f('0x113')]),_0x4ac7e4=this['_suggestions'][_0x350f('0x35')](_0x4d9ef9);_0x4ac7e4&&_0x4ac7e4[_0x350f('0xbe')](_0x365487[_0x350f('0x113')]);}}),_0x5a8c0c['model']['document']['on'](_0x350f('0xc1'),()=>{const _0x324523=Array[_0x350f('0xcf')](_0x5a8c0c[_0x350f('0x18')][_0x350f('0xce')][_0x350f('0x7')]['getChangedMarkers']())[_0x350f('0xf4')](_0x389dd6=>_0x350f('0xa0')===this[_0x350f('0xb1')](_0x389dd6['name'])[_0x350f('0x28')]);if(0x0===_0x324523[_0x350f('0x12e')])return;_0x324523[_0x350f('0x55')]((_0x3ad3df,_0x15da92)=>{const _0x4a5883=_0x3ad3df[_0x350f('0x6f')][_0x350f('0xcb')],_0x2901b6=_0x15da92['data'][_0x350f('0xcb')];return null===_0x4a5883&&null===_0x2901b6?0x0:null===_0x4a5883&&null!==_0x2901b6?-0x1:null!==_0x4a5883&&null===_0x2901b6?0x1:_0x4a5883[_0x350f('0x88')][_0x350f('0x11b')](_0x2901b6[_0x350f('0x88')])?-0x1:0x1;});const _0x67deaf=new Set(),_0x20b4a6=new Set();for(const {name:_0x55bf57,data:_0x48dff8}of _0x324523){const {id:_0x495590}=this[_0x350f('0xb1')](_0x55bf57);if(null===_0x48dff8['oldRange']){const _0x121478=this[_0x350f('0xec')](_0x55bf57);_0x20b4a6[_0x350f('0x94')](_0x121478);}else{const _0x289638=this[_0x350f('0xa6')][_0x350f('0x35')](_0x495590);null!==_0x48dff8[_0x350f('0x4a')]||_0x289638['isInContent']?(_0x67deaf['add'](_0x289638[_0x350f('0x51')]),_0x20b4a6[_0x350f('0x94')](_0x289638)):this[_0x350f('0xc0')](_0x289638);}}_0x20b4a6[_0x350f('0xfa')]>0x0&&this['_refreshSuggestionsChain'](_0x20b4a6);for(const _0x117667 of _0x67deaf)this[_0x350f('0x6d')]('suggestionChanged',_0x117667);}),_0x5a8c0c[_0x350f('0x18')]['on'](_0x350f('0xd9'),(_0x4ce38b,_0x489155)=>{const _0x45a442=_0x489155[0x0];if(!this[_0x350f('0xa6')][_0x350f('0xfa')])return;if(!_0x45a442[_0x350f('0xe9')])return;if(_0x45a442[_0x350f('0x90')][_0x350f('0x10')]||!_0x45a442[_0x350f('0x90')]['isLocal'])return;let _0x4d64ac,_0x297439;switch(_0x45a442[_0x350f('0xb')]){case _0x350f('0xf0'):_0x4d64ac=_0x5a8c0c['model']['createPositionAt'](_0x45a442[_0x350f('0x5b')]),_0x297439=_0x4d64ac[_0x350f('0x6')](_0x45a442[_0x350f('0x105')]);break;case _0x350f('0x16'):_0x4d64ac=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x10d')](_0x45a442[_0x350f('0x20')]),_0x297439=_0x5a8c0c[_0x350f('0x18')]['createPositionAt'](_0x45a442[_0x350f('0xba')]);break;case _0x350f('0x36'):_0x4d64ac=_0x5a8c0c[_0x350f('0x18')]['createPositionAt'](_0x45a442['targetPosition']),_0x297439=_0x4d64ac['getShiftedBy'](_0x45a442[_0x350f('0x105')]);break;default:return;}const _0x219649=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x107')](_0x4d64ac,_0x297439);_0x5a8c0c[_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const {suggestion:_0x75fd13,meta:_0x47cfc9}of this['_findSuggestions'](_0x219649)){if(_0x75fd13['isMultiRange'])continue;if(_0x350f('0x0')==_0x75fd13[_0x350f('0xb')])continue;const _0x2a3467=_0x75fd13[_0x350f('0x6f')]&&_0x75fd13['data'][_0x350f('0x4f')];(_0x350f('0xcd')!=_0x75fd13['type']||_0x350f('0x16')==_0x45a442['type']&&!_0x2a3467)&&(_0x47cfc9[_0x350f('0x57')]||_0x350f('0xb3')==_0x75fd13[_0x350f('0xb')]&&_0x47cfc9['isOwn']||_0x75fd13[_0x350f('0x3c')]()[_0x350f('0xf8')](_0x219649)&&this[_0x350f('0x104')](_0x75fd13,_0x4d64ac,_0x297439));}});},{'priority':_0x350f('0x82')}),_0x5a8c0c[_0x350f('0x18')]['on'](_0x350f('0xaa'),(_0x1fa3e0,_0x5c57c7)=>{const _0x60f1da=_0x5c57c7[0x0],_0x3298d3=_0x5c57c7[0x1];if(_0x3298d3&&_0x3298d3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x350f('0x119')][_0x350f('0x31')])return;if(_0x60f1da[_0x350f('0x117')])return;const _0x5ae90c=_0x5a8c0c[_0x350f('0x18')]['schema'],{start:_0x345400,end:_0x281790}=_0x60f1da[_0x350f('0x3c')](),_0x4cd966=_0x345400[_0x350f('0x23')]&&_0x5ae90c[_0x350f('0x1f')](_0x345400[_0x350f('0x23')])?null:_0x5ae90c['getNearestSelectionRange'](_0x345400,_0x350f('0x97')),_0x48c5c5=_0x281790[_0x350f('0x71')]&&_0x5ae90c[_0x350f('0x1f')](_0x281790[_0x350f('0x71')])?null:_0x5ae90c[_0x350f('0x8b')](_0x281790,'backward'),_0x4deb99=_0x5a8c0c['model'][_0x350f('0x107')](_0x4cd966?_0x4cd966[_0x350f('0x88')]:_0x345400,_0x48c5c5?_0x48c5c5['end']:_0x281790);_0x5a8c0c['model'][_0x350f('0x8a')](_0x3a1e15=>{this[_0x350f('0x4')](_0x4deb99);const _0x3dd609=_0x5a8c0c[_0x350f('0x18')]['schema']['getNearestSelectionRange'](_0x4deb99[_0x350f('0x88')]);_0x60f1da['is'](_0x350f('0x59'))?_0x3a1e15['setSelection'](_0x3dd609):_0x60f1da[_0x350f('0xc4')](_0x3dd609);}),_0x1fa3e0[_0x350f('0x4c')]();},{'priority':_0x59dfda[_0x350f('0xe2')]+0xa}),_0x5a8c0c['model']['on'](_0x350f('0x7c'),(_0x42087f,_0x4ee43c)=>{const _0x451212=_0x4ee43c[_0x4ee43c[_0x350f('0x12e')]-0x1];_0x451212&&_0x451212[_0x350f('0x33')]||this[_0x350f('0x65')]||this['trackChangesCommand']['value']&&(_0x5a8c0c[_0x350f('0x18')][_0x350f('0x8a')](()=>{let _0x44b51a=_0x5a8c0c[_0x350f('0x18')][_0x350f('0x7c')](_0x4ee43c[0x0],_0x4ee43c[0x1],_0x4ee43c[0x2],{'forceDefaultExecution':!0x0});if(!_0x44b51a)return;_0x42087f[_0x350f('0xdb')]=_0x44b51a[_0x350f('0xf')]();const _0x1f245a=_0x44b51a[_0x350f('0x41')][_0x350f('0x71')],_0x33d792=_0x5a8c0c['model'][_0x350f('0x44')];_0x1f245a&&_0x33d792[_0x350f('0x47')](_0x1f245a)&&!_0x33d792[_0x350f('0xef')](_0x1f245a)&&(_0x44b51a=_0x5a8c0c['model']['createRange'](_0x44b51a[_0x350f('0x88')],_0x5a8c0c[_0x350f('0x18')][_0x350f('0x10d')](_0x1f245a,_0x350f('0x41')))),this[_0x350f('0x13')](_0x44b51a);}),_0x42087f['stop']());},{'priority':_0x350f('0x21')}),this[_0x350f('0x49')][_0x350f('0x12f')]['add'](_0x350f('0x64'),this[_0x350f('0x119')]),this['enableCommand'](_0x350f('0x64'));const _0x4a0e01=new _0x4bcffe(_0x5a8c0c,this[_0x350f('0xa6')]);_0x5a8c0c[_0x350f('0x12f')][_0x350f('0x94')](_0x350f('0x12a'),_0x4a0e01),this['enableCommand'](_0x350f('0x12a'));const _0x1fda72=new _0x4186d0(_0x5a8c0c,this['_suggestions']);_0x5a8c0c['commands'][_0x350f('0x94')](_0x350f('0xbb'),_0x1fda72),this[_0x350f('0x126')](_0x350f('0xbb')),_0x5a8c0c['commands']['add'](_0x350f('0x9'),new _0x4a8fef(_0x5a8c0c,_0x4a0e01,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0x9')),_0x5a8c0c[_0x350f('0x12f')]['add'](_0x350f('0x6b'),new _0x4a8fef(_0x5a8c0c,_0x1fda72,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0x6b')),_0x5a8c0c['commands'][_0x350f('0x94')](_0x350f('0x86'),new _0xea949b(_0x5a8c0c,_0x4a0e01,this[_0x350f('0xa6')])),this[_0x350f('0x126')]('acceptSelectedSuggestions'),_0x5a8c0c[_0x350f('0x12f')][_0x350f('0x94')]('discardSelectedSuggestions',new _0xea949b(_0x5a8c0c,_0x1fda72,this[_0x350f('0xa6')])),this[_0x350f('0x126')](_0x350f('0xc7'));const _0x34df29=_0x5a8c0c[_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x128'));this[_0x350f('0x83')](_0x34df29,_0x350f('0x1e'),(_0x29c5f9,{threadId:_0x5f0f7c})=>{const _0x4f5ca2=this['_suggestions'][_0x350f('0x35')](_0x5f0f7c);_0x4f5ca2&&_0x4f5ca2[_0x350f('0x135')]&&0x1===_0x4f5ca2[_0x350f('0x135')][_0x350f('0x12e')]&&this[_0x350f('0xc2')](_0x5f0f7c,{'hasComments':!0x0});},{'priority':_0x350f('0xd2')}),this['listenTo'](_0x34df29,_0x350f('0x101'),(_0x105ce3,{threadId:_0x286176})=>{const _0x153c0e=this[_0x350f('0xa6')][_0x350f('0x35')](_0x286176);_0x153c0e&&_0x153c0e[_0x350f('0x135')]&&!_0x153c0e[_0x350f('0x135')][_0x350f('0x12e')]&&this[_0x350f('0xc2')](_0x286176,{'hasComments':!0x1});},{'priority':'low'});}set[_0x350f('0x121')](_0x24fae5){if(this['_adapter'])throw new _0x119d3e(_0x350f('0x8e'),this);this[_0x350f('0x12d')]=_0x24fae5;}get[_0x350f('0x121')](){return this[_0x350f('0x12d')];}[_0x350f('0x48')]({skipNotAttached:_0x15e49c=!0x1,toJSON:_0x35b3a2=!0x1}={}){const _0x1fcd1a=[];for(const _0x4124ab of this[_0x350f('0xa6')][_0x350f('0xee')]())_0x15e49c&&!_0x4124ab[_0x350f('0x129')]||_0x1fcd1a[_0x350f('0x123')](_0x4124ab);return _0x35b3a2?_0x1fcd1a['map'](_0x28cd60=>_0x28cd60[_0x350f('0xa5')]()):_0x1fcd1a;}[_0x350f('0xbc')](_0x4bbff7){const _0x46194d=this['_suggestions'][_0x350f('0x35')](_0x4bbff7);if(!_0x46194d)throw new _0x119d3e(_0x350f('0x58'),this);return _0x46194d;}[_0x350f('0x24')](_0x16aa5f){return this['_suggestions'][_0x350f('0xf1')](_0x16aa5f);}[_0x350f('0x7d')](_0x83ef1c){const {authorId:_0x4f6825,id:_0x32ef33,attributes:_0x48f0d8}=_0x83ef1c,[_0x1a7b61,_0x454c3a]=_0x83ef1c['type'][_0x350f('0x16')](':'),_0x5a7369=this['_suggestions'][_0x350f('0x35')](_0x32ef33)||this[_0x350f('0x134')](_0x1a7b61,_0x454c3a,_0x32ef33,_0x4f6825,_0x48f0d8);if(this[_0x350f('0x93')](_0x5a7369),this['_checkSuggestionCorrectness'](_0x5a7369,_0x1a7b61,_0x454c3a||null,_0x4f6825),_0x5a7369[_0x350f('0x11')]=_0x83ef1c['createdAt'],_0x48f0d8&&_0x48f0d8[_0x350f('0x110')]){const _0x5ba79c=_0x48f0d8[_0x350f('0x110')],_0x29df94=this[_0x350f('0xf9')](_0x5ba79c['authorName']);_0x5a7369[_0x350f('0x52')]=_0x5ba79c[_0x350f('0x11')],_0x5a7369[_0x350f('0x17')]=_0x29df94,_0x5a7369['isExternal']=!0x0;}else _0x5a7369[_0x350f('0x52')]=_0x83ef1c[_0x350f('0x11')];switch(_0x83ef1c[_0x350f('0x6f')]&&(_0x5a7369[_0x350f('0x6f')]=_0x83ef1c['data']),_0x83ef1c['attributes']&&(_0x5a7369[_0x350f('0x108')]=_0x83ef1c[_0x350f('0x108')]),this[_0x350f('0x12d')]&&this[_0x350f('0x12d')][_0x350f('0x42')]||(_0x5a7369[_0x350f('0x2f')]=!0x0),this[_0x350f('0x9e')][_0x350f('0x35')](_0x5a7369)){case _0x350f('0xc8'):this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'dataReady');break;case _0x350f('0xe8'):_0x5a7369[_0x350f('0x129')]?(this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'ready'),this[_0x350f('0x6d')]('suggestionLoaded',_0x5a7369)):this[_0x350f('0x9e')][_0x350f('0xa8')](_0x5a7369,'removed');}return _0x5a7369;}[_0x350f('0x12a')](_0x598410){this[_0x350f('0x33')](()=>{this[_0x350f('0x49')][_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const _0x3ba021 of _0x598410[_0x350f('0x136')]())_0x3ba021[_0x350f('0xd0')]();});});}[_0x350f('0xbb')](_0x306bc3){this[_0x350f('0x33')](()=>{this[_0x350f('0x49')][_0x350f('0x18')][_0x350f('0x8a')](()=>{for(const _0x220c02 of _0x306bc3[_0x350f('0x136')]())_0x220c02['discard']();});});}[_0x350f('0x126')](_0x2ac6a6,_0x459c7d){const _0x5d6cfe=this[_0x350f('0x49')][_0x350f('0x12f')][_0x350f('0x35')](_0x2ac6a6);if(!_0x5d6cfe)throw new _0x119d3e(_0x350f('0x50'),this,{'commandName':_0x2ac6a6});this['_enabledCommands'][_0x350f('0x94')](_0x5d6cfe),_0x459c7d&&_0x5d6cfe['on'](_0x350f('0x76'),(_0x238f81,_0x277cc0)=>{this[_0x350f('0x119')][_0x350f('0x31')]&&(this[_0x350f('0x65')]||_0x277cc0['length']>0x0&&_0x277cc0[_0x277cc0[_0x350f('0x12e')]-0x1]&&_0x277cc0[_0x277cc0[_0x350f('0x12e')]-0x1]['forceDefaultExecution']||(_0x459c7d((..._0xec9968)=>_0x5d6cfe[_0x350f('0x76')](..._0xec9968,{'forceDefaultExecution':!0x0}),..._0x277cc0),_0x238f81[_0x350f('0x4c')]()));},{'priority':'high'});}['forceDefaultExecution'](_0x51d7a4){let _0x40f02b,_0x4225a9;const _0x3c3bb3=this[_0x350f('0x65')];this[_0x350f('0x65')]=!0x0;try{_0x40f02b=_0x51d7a4();}catch(_0x2ce40c){_0x4225a9=_0x2ce40c;}return _0x3c3bb3||(this[_0x350f('0x65')]=!0x1),_0x4225a9&&_0x119d3e['rethrowUnexpectedError'](_0x4225a9,this),_0x40f02b;}['markInsertion'](_0x5cc0a3,_0x58df4c=null,_0x507b25={}){if(_0x5cc0a3[_0x350f('0x117')])return null;const _0x1109cf=this[_0x350f('0x49')][_0x350f('0x45')]['get'](_0x350f('0x32'))['me'];for(const {suggestion:_0x457c26,meta:_0x2da8cd}of this[_0x350f('0xea')](_0x5cc0a3,_0x350f('0xb3')))if(_0x2da8cd['isOwn']){if(!_0x2da8cd[_0x350f('0xfc')])return _0x457c26;if(_0x58df4c==_0x457c26[_0x350f('0xf6')]){const _0x531f2e=_0x457c26[_0x350f('0x3c')]();return _0x531f2e[_0x350f('0x88')][_0x350f('0xdc')](_0x5cc0a3[_0x350f('0x41')])?this[_0x350f('0x4d')](_0x457c26,this[_0x350f('0x3b')][_0x350f('0x107')](_0x5cc0a3[_0x350f('0x88')],_0x531f2e[_0x350f('0x41')])):this[_0x350f('0x4d')](_0x457c26,this[_0x350f('0x3b')][_0x350f('0x107')](_0x531f2e[_0x350f('0x88')],_0x5cc0a3[_0x350f('0x41')])),_0x457c26;}}const _0x53dc7e=_0x4cb20a(),_0x25df07=_0x1109cf['id'],_0x2a57a5=_0x58df4c?_0x350f('0x10b')+_0x58df4c:_0x350f('0xb3'),_0xaee594=this[_0x350f('0x122')]({'id':_0x53dc7e,'type':_0x2a57a5,'createdAt':new Date(),'authorId':_0x25df07,'attributes':_0x507b25});return this['_addSuggestionMarker'](_0x2a57a5,_0x53dc7e,_0x25df07,_0x5cc0a3),_0xaee594;}['markMultiRangeInsertion'](_0x50d360,_0x23c15c=_0x350f('0x9f'),_0x535aea={}){const _0x2d7036=this[_0x350f('0x49')]['plugins']['get']('Users')['me'],_0x460172=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xb3'),_0x23c15c,_0x350f('0x1d'));for(const _0x14bbde of this[_0x350f('0x48')]())if(_0x14bbde[_0x350f('0x17')]['id']==_0x2d7036['id']&&_0x350f('0xb3')==_0x14bbde['type']&&_0x14bbde['subType']==_0x23c15c&&(_0x460172(_0x14bbde[_0x350f('0x72')](),_0x50d360)||_0x460172(_0x50d360,_0x14bbde['getRanges']()))){for(const _0x30263f of _0x50d360)_0x14bbde[_0x350f('0xe0')](_0x30263f);return _0x14bbde;}for(const _0x274191 of _0x50d360)for(const {suggestion:_0x36de1b,meta:_0x256895}of this['_findSuggestions'](_0x274191,_0x350f('0xb3'))){if(!_0x256895['isOwn'])continue;let _0x3149ae=!0x0;for(const _0x2b98fd of _0x36de1b[_0x350f('0x72')]())for(const _0x319757 of _0x50d360)if(!_0x2b98fd['containsRange'](_0x319757)){_0x3149ae=!0x1;break;}if(_0x3149ae)return _0x36de1b;}const _0x3cbfa6=_0x4cb20a(),_0x4b5629=_0x2d7036['id'],_0x1885ae=_0x350f('0x10b')+_0x23c15c,_0x4732eb=this['_setSuggestionData']({'id':_0x3cbfa6,'type':_0x1885ae,'createdAt':new Date(),'authorId':_0x4b5629,'attributes':_0x535aea});for(const _0x1a6804 of _0x50d360)this['_addSuggestionMarker'](_0x1885ae,_0x3cbfa6,_0x4b5629,_0x1a6804,_0x14b365[_0x350f('0xe6')]());return _0x4732eb;}[_0x350f('0x87')](_0x2f0a18,_0x2d2c5b,_0x34f3c4=null,_0x4c3fd3={}){if(_0x34f3c4=_0x34f3c4||Bt(_0x2d2c5b),_0x2f0a18[_0x350f('0x117')])return null;if(!0x1===this[_0x350f('0xff')]){const _0x3e9ba3=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x0'),_0x34f3c4,'accept');return this['forceDefaultExecution'](()=>_0x3e9ba3([_0x2f0a18],_0x2d2c5b,_0x4c3fd3)),null;}const _0x28eb0f=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x45cdb4=[];for(const {suggestion:_0x364019,meta:_0x453951}of this[_0x350f('0xea')](_0x2f0a18,_0x350f('0xb3')))_0x453951[_0x350f('0x115')]&&!_0x453951[_0x350f('0x3f')]&&_0x45cdb4[_0x350f('0x123')](..._0x364019[_0x350f('0x72')]());const _0x5188f7=function(_0x5b0d76,_0x40f1d8){const _0x45cb64=[];for(const _0x25963f of _0x40f1d8){const _0x57cf8c=_0x5b0d76[_0x350f('0x5f')](_0x25963f);_0x57cf8c&&_0x45cb64[_0x350f('0x123')](_0x57cf8c);}return _0x45cb64;}(_0x2f0a18,_0x45cdb4),_0x77388=function(_0x42b57c,_0x4a6b40){const _0x2c31ee=[_0x42b57c];for(const _0x4798e8 of _0x4a6b40){let _0x17ec16=0x0;for(;_0x17ec16<_0x2c31ee[_0x350f('0x12e')];){const _0x4832b7=_0x2c31ee[_0x17ec16][_0x350f('0x62')](_0x4798e8);_0x2c31ee[_0x350f('0x1a')](_0x17ec16,0x1,..._0x4832b7),_0x17ec16+=_0x4832b7[_0x350f('0x12e')];}}return _0x2c31ee;}(_0x2f0a18,_0x45cdb4);_0x5188f7[_0x350f('0x12e')]&&this[_0x350f('0x3b')]['change'](()=>{for(const _0x202df2 of _0x5188f7){const _0x53b0e1=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x0'),_0x34f3c4,'accept');this[_0x350f('0x33')](()=>_0x53b0e1([_0x202df2],_0x2d2c5b,_0x4c3fd3));}});for(const _0x40a706 of _0x77388){let _0x1ca11f=null,_0x4e2b90=_0x40a706[_0x350f('0x88')],_0x4af164=_0x40a706['end'];for(const {suggestion:_0x296ef9,meta:_0x2b535f}of this[_0x350f('0xea')](_0x40a706,_0x350f('0x0'))){if(!_0x2b535f[_0x350f('0x115')])continue;if(_0x296ef9[_0x350f('0xf6')]!=_0x34f3c4)continue;const _0xda85a=_0x296ef9[_0x350f('0x3c')]();if(_0xda85a[_0x350f('0xf8')](_0x40a706,!0x0))return null;_0x4e2b90=_0x4e2b90[_0x350f('0x11b')](_0xda85a['start'])?_0x4e2b90:_0xda85a[_0x350f('0x88')],_0x4af164=_0x4af164[_0x350f('0x6c')](_0xda85a[_0x350f('0x41')])?_0x4af164:_0xda85a[_0x350f('0x41')],_0x1ca11f?_0xda85a[_0x350f('0x88')][_0x350f('0x11b')](_0x1ca11f[_0x350f('0x3c')]()['start'])?(_0x1ca11f[_0x350f('0x22')](),_0x1ca11f=_0x296ef9):_0x296ef9[_0x350f('0x22')]():_0x1ca11f=_0x296ef9;}const _0x5b8126=this['_model'][_0x350f('0x107')](_0x4e2b90,_0x4af164);if(_0x1ca11f)this[_0x350f('0x4d')](_0x1ca11f,_0x5b8126);else{const _0x4b46e0=_0x4cb20a(),_0x3cc1bd=_0x28eb0f['id'];this[_0x350f('0x122')]({'id':_0x4b46e0,'type':_0x350f('0xd')+_0x34f3c4,'data':_0x2d2c5b,'createdAt':new Date(),'authorId':_0x3cc1bd,'attributes':_0x4c3fd3}),this[_0x350f('0x2d')](_0x350f('0xd')+_0x34f3c4,_0x4b46e0,_0x3cc1bd,_0x5b8126);}}return null;}[_0x350f('0x75')](_0x2001fc,_0x16bf22,_0x3ed712=[],_0x1b5d23=null,_0x5f841c={}){_0x16bf22[_0x350f('0xc')]||(_0x16bf22['formatGroupId']=_0x16bf22[_0x350f('0xda')]),_0x16bf22['multipleBlocks']=_0x2001fc['is'](_0x350f('0x56')),_0x1b5d23=_0x1b5d23||Bt(_0x16bf22);const _0x5dedba=_0x3ed712[_0x350f('0x3d')](_0x57b896=>Mt(_0x57b896,this[_0x350f('0x3b')])),_0x47d47b=_0x2001fc['is'](_0x350f('0x56'))?_0x2001fc:Mt(_0x2001fc,this['_model']);if(!0x1===this[_0x350f('0xff')]){const _0x1437dd=this[_0x350f('0x4b')]['getSuggestionCallback']('formatBlock',_0x1b5d23,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x1437dd([_0x47d47b],_0x16bf22,_0x5f841c)),null;}_0x5dedba['push'](_0x47d47b);let _0x1a94db=!0x0;for(const _0x48f433 of _0x5dedba)if(!this['_rangeIsInLocalUserInsertion'](_0x48f433)){_0x1a94db=!0x1;break;}if(_0x1a94db){const _0x19591d=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xcd'),_0x1b5d23,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x19591d([_0x47d47b],_0x16bf22,_0x5f841c)),null;}let _0x16ace9=null,_0x50f6ae=_0x47d47b[_0x350f('0x88')],_0x2c2edf=_0x47d47b[_0x350f('0x41')];for(const {suggestion:_0x162bc7,meta:_0x3c28ed}of this['_findSuggestions'](_0x47d47b,_0x350f('0xcd'))){if(!_0x3c28ed[_0x350f('0x115')]||_0x3c28ed['isNextTo']||_0x3c28ed[_0x350f('0x57')]||_0x3c28ed[_0x350f('0x3f')])continue;if(_0x162bc7[_0x350f('0x6f')]['formatGroupId']!=_0x16bf22[_0x350f('0xc')])continue;const _0xee1340=_0x162bc7[_0x350f('0x3c')]();if(_0x162bc7[_0x350f('0xf6')]==_0x1b5d23){if(_0xee1340[_0x350f('0xf8')](_0x47d47b,!0x0))return null;_0x50f6ae=_0x50f6ae[_0x350f('0x11b')](_0xee1340['start'])?_0x50f6ae:_0xee1340[_0x350f('0x88')],_0x2c2edf=_0x2c2edf[_0x350f('0x6c')](_0xee1340[_0x350f('0x41')])?_0x2c2edf:_0xee1340[_0x350f('0x41')],_0x16ace9?_0xee1340[_0x350f('0x88')]['isBefore'](_0x16ace9['getFirstRange']()[_0x350f('0x88')])?(_0x16ace9[_0x350f('0x22')](),_0x16ace9=_0x162bc7):_0x162bc7[_0x350f('0x22')]():_0x16ace9=_0x162bc7;}else{const _0x236d7c=_0x47d47b[_0x350f('0x5f')](_0xee1340);this[_0x350f('0x78')](_0x162bc7,_0x236d7c);}}const _0x49db2c=this[_0x350f('0x49')][_0x350f('0x45')]['get'](_0x350f('0x32'))['me'],_0x5d6d11=_0x4cb20a(),_0x43b5bd=_0x49db2c['id'];if(_0x16ace9)return this[_0x350f('0x4d')](_0x16ace9,this[_0x350f('0x3b')][_0x350f('0x107')](_0x50f6ae,_0x2c2edf)),_0x16ace9;{const _0x4b6a28=this[_0x350f('0x122')]({'id':_0x5d6d11,'type':'formatBlock:'+_0x1b5d23,'data':_0x16bf22,'createdAt':new Date(),'authorId':_0x43b5bd,'attributes':_0x5f841c});return this[_0x350f('0x2d')](_0x350f('0xac')+_0x1b5d23,_0x5d6d11,_0x43b5bd,this[_0x350f('0x3b')][_0x350f('0x107')](_0x50f6ae,_0x2c2edf)),_0x4b6a28;}}['markMultiRangeBlockFormat'](_0x4d2ead,_0x309c8f,_0x2b9809=[],_0x3699ae=null,_0x31bf53={}){_0x309c8f[_0x350f('0xc')]||(_0x309c8f[_0x350f('0xc')]=_0x309c8f['commandName']);const _0xc21016=_0x4d2ead[0x0];_0x309c8f[_0x350f('0x4f')]=_0xc21016['is'](_0x350f('0x56')),_0x3699ae=_0x3699ae||Bt(_0x309c8f);const _0x3bbc3d=_0x2b9809[_0x350f('0x3d')](_0x357af4=>Mt(_0x357af4,this[_0x350f('0x3b')])),_0xd02e20=_0xc21016['is'](_0x350f('0x56'))?_0x4d2ead:_0x4d2ead['map'](_0x156977=>Mt(_0x156977,this[_0x350f('0x3b')]));if(!0x1===this['_trackFormatChanges']){const _0x5c0fa9=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0xcd'),_0x3699ae,_0x350f('0xd0'));return this['forceDefaultExecution'](()=>_0x5c0fa9(_0xd02e20,_0x309c8f,_0x31bf53)),null;}_0x3bbc3d[_0x350f('0x123')](..._0xd02e20);let _0x3eb3bf=!0x0;for(const _0x3dcd15 of _0x3bbc3d)if(!this[_0x350f('0xf7')](_0x3dcd15)){_0x3eb3bf=!0x1;break;}if(_0x3eb3bf){const _0x51ebd8=this[_0x350f('0x4b')]['getSuggestionCallback'](_0x350f('0xcd'),_0x3699ae,'accept');return this[_0x350f('0x33')](()=>_0x51ebd8(_0xd02e20,_0x309c8f,_0x31bf53)),null;}const _0x5beaeb=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')]('Users')['me'];for(const _0x5946bf of this['getSuggestions']()){if(_0x5946bf[_0x350f('0x17')]['id']!=_0x5beaeb['id'])continue;if(_0x350f('0xcd')!=_0x5946bf[_0x350f('0xb')]||_0x5946bf[_0x350f('0x6f')][_0x350f('0xc')]!=_0x309c8f[_0x350f('0xc')])continue;const _0x303dcc=_0x5946bf[_0x350f('0xf6')]==_0x3699ae;for(let _0x3320c2=0x0;_0x3320c2<_0xd02e20['length'];_0x3320c2++){const _0x25e1af=_0xd02e20[_0x3320c2];for(const _0x1858ae of _0x5946bf[_0x350f('0x27')]()){const _0x2cb58d=_0x1858ae['getRange']();if(_0x25e1af[_0x350f('0xdc')](_0x2cb58d)){_0x303dcc?(_0xd02e20[_0x350f('0x1a')](_0x3320c2,0x1),_0x3320c2--):_0x5946bf[_0x350f('0x63')](_0x1858ae['name']);break;}}}}if(0x0==_0xd02e20[_0x350f('0x12e')])return null;const _0x3c235c=this['_suggestionFactory'][_0x350f('0x30')]('formatBlock',_0x3699ae,_0x350f('0x1d'));for(const _0x5bfc15 of this[_0x350f('0x48')]())if(_0x5bfc15[_0x350f('0x17')]['id']==_0x5beaeb['id']&&_0x350f('0xcd')==_0x5bfc15[_0x350f('0xb')]&&_0x5bfc15[_0x350f('0x6f')][_0x350f('0xc')]==_0x309c8f[_0x350f('0xc')]&&_0x5bfc15[_0x350f('0xf6')]==_0x3699ae&&(_0x3c235c(_0x5bfc15[_0x350f('0x72')](),_0xd02e20)||_0x3c235c(_0xd02e20,_0x5bfc15[_0x350f('0x72')]()))){for(const _0x4a9a56 of _0xd02e20)_0x5bfc15[_0x350f('0xe0')](_0x4a9a56);return _0x5bfc15;}const _0x116125=_0x4cb20a(),_0x47e80f=_0x5beaeb['id'],_0x570891=_0x350f('0xac')+_0x3699ae,_0xb9e47b=this['_setSuggestionData']({'id':_0x116125,'type':_0x570891,'data':_0x309c8f,'createdAt':new Date(),'authorId':_0x47e80f,'attributes':_0x31bf53});for(const _0x37445f of _0xd02e20)this[_0x350f('0x2d')](_0x570891,_0x116125,_0x47e80f,_0x37445f,_0x14b365[_0x350f('0xe6')]());return _0xb9e47b;}[_0x350f('0x4')](_0x2b0f55,_0x50f2dd=null,_0x4178ea={}){if(_0x2b0f55[_0x350f('0x117')])return null;const _0x4f2238=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x5cc337=new _0x319865(_0x2b0f55['start'],_0x2b0f55['end']);for(const {suggestion:_0x4e090b,meta:_0x77d797}of this[_0x350f('0xea')](_0x5cc337,_0x350f('0xb3')))if(_0x77d797[_0x350f('0x115')]&&!_0x77d797[_0x350f('0xfc')]){if(_0x4e090b[_0x350f('0x103')]){const _0x418ff5=_0x4e090b[_0x350f('0x72')]()[_0x350f('0xf4')](_0x1eed0f=>'$graveyard'!=_0x1eed0f[_0x350f('0x5')][_0x350f('0x6a')]);_0x418ff5[_0x350f('0x1b')](_0xa6b7a4=>_0x5cc337[_0x350f('0xf8')](_0xa6b7a4,!0x0))&&_0x4e090b[_0x350f('0xe1')]();if(_0x418ff5['some'](_0x2c658e=>_0x2c658e[_0x350f('0xf8')](_0x5cc337,!0x0))){const _0x9a3a06=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x11f'),_0x50f2dd,_0x350f('0xd0'));return this['forceDefaultExecution'](()=>_0x9a3a06([_0x5cc337],null,_0x4178ea)),null;}}else{const _0x4dcd2f=_0x5cc337[_0x350f('0x5f')](_0x4e090b[_0x350f('0x3c')]());_0x4e090b[_0x350f('0xb7')]([_0x4dcd2f],null,_0x4178ea);}}if(_0x5cc337[_0x350f('0xe5')](),_0x5cc337[_0x350f('0x117')]||_0x350f('0x100')==_0x5cc337[_0x350f('0x5')][_0x350f('0x6a')])return null;let _0x2c3c05=null,_0x455d5f=_0x5cc337['start'],_0x580d8c=_0x5cc337['end'];for(const {suggestion:_0x330c54,meta:_0x25e1e0}of this[_0x350f('0xea')](_0x5cc337,_0x350f('0x11f')))if(_0x25e1e0['isOwn']){if(_0x330c54[_0x350f('0x103')]){let _0xcc8b33=!0x0;for(const _0x260969 of _0x330c54['getRanges']()){if(_0x260969[_0x350f('0xf8')](_0x5cc337,!0x0))return _0x330c54;_0x5cc337['containsRange'](_0x260969)||(_0xcc8b33=!0x1);}_0xcc8b33&&_0x330c54[_0x350f('0xe1')]();}else{const _0x296dbd=_0x330c54['getFirstRange']();if(_0x296dbd[_0x350f('0xf8')](_0x5cc337,!0x0))return _0x330c54;_0x455d5f=_0x455d5f[_0x350f('0x11b')](_0x296dbd[_0x350f('0x88')])?_0x455d5f:_0x296dbd[_0x350f('0x88')],_0x580d8c=_0x580d8c[_0x350f('0x6c')](_0x296dbd['end'])?_0x580d8c:_0x296dbd[_0x350f('0x41')],_0x2c3c05?_0x296dbd[_0x350f('0x88')][_0x350f('0x11b')](_0x2c3c05['getFirstRange']()[_0x350f('0x88')])?(_0x2c3c05[_0x350f('0x22')](),_0x2c3c05=_0x330c54):_0x330c54[_0x350f('0x22')]():_0x2c3c05=_0x330c54;}}if(_0x2c3c05)return this[_0x350f('0x4d')](_0x2c3c05,this[_0x350f('0x3b')]['createRange'](_0x455d5f,_0x580d8c)),_0x2c3c05;{const _0x4105bc=_0x4cb20a(),_0x221136=this[_0x350f('0x3b')][_0x350f('0x107')](_0x455d5f,_0x580d8c),_0x336022=_0x4f2238['id'],_0x16893c=_0x50f2dd?'deletion:'+_0x50f2dd:_0x350f('0x11f'),_0x20db8d=this[_0x350f('0x122')]({'id':_0x4105bc,'type':_0x16893c,'createdAt':new Date(),'authorId':_0x336022,'attributes':_0x4178ea});return this[_0x350f('0x2d')](_0x16893c,_0x4105bc,_0x336022,_0x221136),_0x20db8d;}}['markMultiRangeDeletion'](_0x5557c6,_0x4c53ed=_0x350f('0x9f'),_0x5ad3c9={}){const _0x1e06b3=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))['me'],_0x3c8ef5=_0x5557c6[_0x350f('0x3d')](_0x10d70f=>new _0x319865(_0x10d70f[_0x350f('0x88')],_0x10d70f[_0x350f('0x41')])),_0x3340bb=new Set();for(const _0x43be22 of _0x3c8ef5)for(const {suggestion:_0x43f35c,meta:_0xfe976}of this[_0x350f('0xea')](_0x43be22,_0x350f('0xb3')))_0xfe976['isOwn']&&!_0xfe976['isNextTo']&&_0x3340bb[_0x350f('0x94')](_0x43f35c);for(const _0x123f7c of _0x3340bb)if(_0x123f7c[_0x350f('0x103')]){const _0x32e386=_0x123f7c['getRanges']();(!_0x123f7c[_0x350f('0x108')]||!_0x123f7c[_0x350f('0x108')]['skipNestingCheck'])&&(_0x32e386[_0x350f('0x1b')](_0x4aaab2=>_0x3c8ef5[_0x350f('0xb4')](_0x1ebf26=>_0x1ebf26[_0x350f('0xf8')](_0x4aaab2,!0x0)))&&_0x123f7c['discard']());if(_0x3c8ef5['every'](_0x240368=>_0x32e386[_0x350f('0xb4')](_0x569f0f=>_0x569f0f[_0x350f('0xf8')](_0x240368,!0x0)))){const _0x589e15=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,'accept');return this['forceDefaultExecution'](()=>_0x589e15(_0x5557c6,null,_0x5ad3c9)),null;}}else{const _0x18d71f=_0x123f7c[_0x350f('0x3c')]();_0x3c8ef5['some'](_0x54e99f=>_0x54e99f[_0x350f('0xf8')](_0x18d71f,!0x0))&&_0x123f7c[_0x350f('0xe1')]();if(_0x3c8ef5['every'](_0x2ba696=>_0x18d71f[_0x350f('0xf8')](_0x2ba696,!0x0))){const _0x54a358=this[_0x350f('0x4b')][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,_0x350f('0xd0'));return this[_0x350f('0x33')](()=>_0x54a358(_0x3c8ef5,null,_0x5ad3c9)),null;}}const _0x56f480=this['_suggestionFactory'][_0x350f('0x30')](_0x350f('0x11f'),_0x4c53ed,_0x350f('0x1d'));let _0x1f0c34=null;for(const _0x1ffa00 of this[_0x350f('0x48')]())if(_0x1ffa00[_0x350f('0x17')]['id']==_0x1e06b3['id']&&_0x1ffa00[_0x350f('0x129')]&&_0x350f('0x11f')==_0x1ffa00[_0x350f('0xb')]&&_0x1ffa00[_0x350f('0xf6')]==_0x4c53ed&&(_0x56f480(_0x1ffa00[_0x350f('0x72')](),_0x3c8ef5)||_0x56f480(_0x3c8ef5,_0x1ffa00['getRanges']()))){if(_0x1f0c34){if(_0x1ffa00[_0x350f('0x135')]&&_0x1ffa00[_0x350f('0x135')][_0x350f('0x12e')])continue;for(const _0x23ac9e of _0x1ffa00[_0x350f('0x72')]())_0x1f0c34[_0x350f('0x2c')](_0x23ac9e)||_0x1f0c34[_0x350f('0xe0')](_0x23ac9e);_0x1ffa00[_0x350f('0x22')]();}else{_0x1f0c34=_0x1ffa00;for(const _0x3f4f7d of _0x3c8ef5)_0x1ffa00[_0x350f('0x2c')](_0x3f4f7d)||_0x1ffa00[_0x350f('0xe0')](_0x3f4f7d);}}if(_0x1f0c34)return _0x1f0c34;_0x3340bb['clear']();for(const _0x29d19e of _0x3c8ef5)for(const {suggestion:_0x18b89a,meta:_0x49c7b4}of this['_findSuggestions'](_0x29d19e,'deletion'))_0x49c7b4[_0x350f('0x115')]&&_0x3340bb[_0x350f('0x94')](_0x18b89a);for(const _0x1dcb4d of _0x3340bb){const _0x50d4fc=_0x1dcb4d[_0x350f('0x72')]();if(!_0x5ad3c9||!_0x5ad3c9['skipNestingCheck']){if(_0x3c8ef5['every'](_0x4c2df8=>_0x50d4fc[_0x350f('0xb4')](_0x32a57a=>_0x32a57a[_0x350f('0xf8')](_0x4c2df8,!0x0))))return _0x1dcb4d;}(!_0x1dcb4d['attributes']||!_0x1dcb4d[_0x350f('0x108')]['skipNestingCheck'])&&(_0x50d4fc['every'](_0xb67221=>_0x3c8ef5[_0x350f('0xb4')](_0xd43dac=>_0xd43dac[_0x350f('0xf8')](_0xb67221,!0x0)))&&_0x1dcb4d['discard']());}const _0x25d11c=_0x4cb20a(),_0x3930b7=_0x1e06b3['id'],_0x4d363f=_0x350f('0x77')+_0x4c53ed,_0x48e581=this['_setSuggestionData']({'id':_0x25d11c,'type':_0x4d363f,'createdAt':new Date(),'authorId':_0x3930b7,'attributes':_0x5ad3c9});for(const _0x34f24e of _0x3c8ef5)_0x34f24e[_0x350f('0xe5')](),_0x34f24e[_0x350f('0x117')]||_0x350f('0x100')==_0x34f24e[_0x350f('0x5')][_0x350f('0x6a')]||this[_0x350f('0x2d')](_0x4d363f,_0x25d11c,_0x3930b7,_0x34f24e,_0x14b365[_0x350f('0xe6')]());return _0x48e581;}[_0x350f('0x4d')](_0x55b05d,_0x58e01a){const _0x320b52=_0x55b05d[_0x350f('0x29')]();this[_0x350f('0x3b')][_0x350f('0x8a')](_0x7c6247=>{_0x7c6247[_0x350f('0x7f')](_0x320b52,{'range':_0x58e01a});});}[_0x350f('0x93')](_0x360fc0){const _0x4f8995=_0x360fc0['id'],_0x5add5d=this['editor']['config'][_0x350f('0x35')](_0x350f('0xbf'));this[_0x350f('0x2a')][_0x350f('0x106')](_0x4f8995)||this[_0x350f('0x2a')]['addCommentThread']({'channelId':_0x5add5d,'threadId':_0x4f8995,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5700dd=this[_0x350f('0x2a')][_0x350f('0xb6')](_0x4f8995);_0x5700dd['unbind'](_0x350f('0x8')),_0x5700dd[_0x350f('0x8')]=!0x1,_0x360fc0[_0x350f('0x135')]=_0x5700dd;}['_checkSuggestionCorrectness'](_0x3c121e,_0x273c95,_0x4c6634,_0x52b89e){if(_0x3c121e[_0x350f('0xb')]!=_0x273c95||_0x3c121e[_0x350f('0xf6')]!=_0x4c6634||_0x3c121e[_0x350f('0x98')]['id']!=_0x52b89e)throw this[_0x350f('0x49')][_0x350f('0x69')](_0x350f('0x131')),new _0x119d3e(_0x350f('0x131'),this);}[_0x350f('0x78')](_0x24cc4d,_0x3438bc){const _0x52112f=_0x24cc4d[_0x350f('0x3c')]();if(_0x3438bc[_0x350f('0xdc')](_0x52112f))_0x24cc4d[_0x350f('0x22')]();else{if(_0x52112f['containsRange'](_0x3438bc)){const _0x15b1e5=this[_0x350f('0x3b')][_0x350f('0x10d')](_0x3438bc['start'][_0x350f('0x71')],_0x350f('0x41'));this[_0x350f('0x4d')](_0x24cc4d,this['_model'][_0x350f('0x107')](_0x52112f[_0x350f('0x88')],_0x15b1e5));const _0x4a996=_0x4cb20a(),_0x1f6f9f=_0x24cc4d[_0x350f('0x98')]['id'],_0xe2d367=_0x24cc4d[_0x350f('0xb')]+':'+_0x24cc4d[_0x350f('0xf6')];this['_setSuggestionData']({'id':_0x4a996,'type':_0xe2d367,'createdAt':new Date(),'authorId':_0x1f6f9f,'data':_0x24cc4d[_0x350f('0x6f')],'attributes':_0x24cc4d[_0x350f('0x108')]});const _0x3e48c5=this['_model'][_0x350f('0x10d')](_0x3438bc[_0x350f('0x41')][_0x350f('0xf2')],'after'),_0x5026b7=this[_0x350f('0x3b')][_0x350f('0x107')](_0x3e48c5,_0x52112f[_0x350f('0x41')]);this[_0x350f('0x2d')](_0xe2d367,_0x4a996,_0x1f6f9f,_0x5026b7);}else{if(_0x52112f[_0x350f('0xb8')](_0x3438bc[_0x350f('0x88')])){const _0x3fd59=this['_model'][_0x350f('0x10d')](_0x3438bc['start']['nodeBefore'],_0x350f('0x41'));this['_setSuggestionRange'](_0x24cc4d,this[_0x350f('0x3b')][_0x350f('0x107')](_0x52112f[_0x350f('0x88')],_0x3fd59));}else{const _0x2c0457=this['_model'][_0x350f('0x10d')](_0x3438bc[_0x350f('0x41')][_0x350f('0xf2')],_0x350f('0xd1'));this['_setSuggestionRange'](_0x24cc4d,this[_0x350f('0x3b')][_0x350f('0x107')](_0x2c0457,_0x52112f[_0x350f('0x41')]));}}}}[_0x350f('0xf7')](_0x56ceba){for(const {suggestion:_0x14c4ab,meta:_0x337721}of this['_findSuggestions'](_0x56ceba,_0x350f('0xb3'))){if(!_0x337721[_0x350f('0x115')])continue;const _0x23648a=_0x14c4ab[_0x350f('0x72')]();for(const _0x4ba9e6 of _0x23648a)if(!_0x56ceba['getDifference'](_0x4ba9e6)['length'])return!0x0;}return!0x1;}[_0x350f('0x102')](_0x45589f){const _0xacc214=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32'))[_0x350f('0x39')](_0x45589f);if(!_0xacc214)throw new _0x119d3e('track-changes-user-not-found',this);return _0xacc214;}['_getExternalAuthor'](_0x33eb99){const _0x5a1d5c=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x32')),_0x45df3d=_0x394310(_0x350f('0x11e')+_0x33eb99),_0x128e57=_0x5a1d5c[_0x350f('0x39')](_0x45df3d);return _0x128e57||_0x5a1d5c['addUser']({'id':_0x45df3d,'name':_0x33eb99});}['_createSuggestion'](_0x5bc6d1,_0x1fd812,_0x2f26d3,_0x41ed03,_0x2d4210){const _0x35b21e=this[_0x350f('0x102')](_0x41ed03),_0x41e5e7=this[_0x350f('0x4b')][_0x350f('0x9c')](_0x5bc6d1,_0x1fd812,_0x2f26d3,_0x35b21e,_0x2d4210,_0x156556=>this[_0x350f('0xc2')](_0x2f26d3,{'attributes':_0x156556}));return this[_0x350f('0x83')](_0x41e5e7,'accept',()=>{this[_0x350f('0xc2')](_0x2f26d3,{'state':_0x350f('0x116')});},{'priority':_0x350f('0x21')}),this[_0x350f('0x83')](_0x41e5e7,_0x350f('0xe1'),()=>{this[_0x350f('0xc2')](_0x2f26d3,{'state':_0x350f('0x74')});},{'priority':_0x350f('0x21')}),this[_0x350f('0xa6')][_0x350f('0xa8')](_0x2f26d3,_0x41e5e7),this[_0x350f('0x9e')]['set'](_0x41e5e7,_0x350f('0xc8')),_0x41e5e7;}['_splitMarkerName'](_0x2393e3){const _0x39385e=_0x2393e3[_0x350f('0x16')](':');return{'group':_0x39385e[0x0],'type':_0x39385e[0x1],'subType':_0x39385e['length']>=0x5?_0x39385e[0x2]:null,'id':_0x39385e['length']<0x5?_0x39385e[0x2]:_0x39385e[0x3],'authorId':_0x39385e[_0x350f('0x12e')]<0x5?_0x39385e[0x3]:_0x39385e[0x4],'markerCount':0x6==_0x39385e[_0x350f('0x12e')]?_0x39385e[0x5]:null};}[_0x350f('0x104')](_0x37c199,_0x3f2260,_0x830434){const _0x429b70=_0x37c199[_0x350f('0x3c')](),_0x21edc5=_0x429b70[_0x350f('0x88')],_0x51da37=_0x429b70[_0x350f('0x41')];this['_setSuggestionRange'](_0x37c199,this[_0x350f('0x3b')][_0x350f('0x107')](_0x21edc5,_0x3f2260));const _0x19ff2e=_0x4cb20a(),_0x447afd=_0x37c199[_0x350f('0x98')]['id'],_0x4dff0e=_0x37c199[_0x350f('0xb')]+(_0x37c199[_0x350f('0xf6')]?':'+_0x37c199[_0x350f('0xf6')]:'');this[_0x350f('0x122')]({'id':_0x19ff2e,'type':_0x4dff0e,'createdAt':new Date(),'authorId':_0x447afd,'originalSuggestionId':_0x37c199['id'],'attributes':_0x37c199['attributes'],'data':_0x37c199[_0x350f('0x6f')]}),'formatBlock'==_0x37c199[_0x350f('0xb')]&&(_0x830434=this[_0x350f('0x3b')][_0x350f('0x125')](_0x830434[_0x350f('0xf2')])),this['_addSuggestionMarker'](_0x4dff0e,_0x19ff2e,_0x447afd,this[_0x350f('0x3b')]['createRange'](_0x830434,_0x51da37));}[_0x350f('0xea')](_0x3d3fd7,_0x5dceae=null){const _0x4ced67=[],_0xb654d6=this[_0x350f('0x3b')]['schema'],_0x33cee7=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')]('Users')['me'];for(const _0x279b36 of this['getSuggestions']())if(_0x279b36['isInContent']&&(!_0x5dceae||_0x279b36[_0x350f('0xb')]==_0x5dceae))for(const _0x2090ec of _0x279b36[_0x350f('0x72')]()){const _0x1e94e6=_0x3d3fd7['start'][_0x350f('0xdc')](_0x2090ec[_0x350f('0x41')])||_0x3d3fd7['end'][_0x350f('0xdc')](_0x2090ec[_0x350f('0x88')]);if(_0x1e94e6||_0x3d3fd7[_0x350f('0x5f')](_0x2090ec)){const _0x266d2e=_0x3d3fd7['containsRange'](_0x2090ec)&&At(_0xb654d6,_0x2090ec['start'],_0x3d3fd7),_0x3346b0=_0x2090ec[_0x350f('0xf8')](_0x3d3fd7)&&At(_0xb654d6,_0x3d3fd7[_0x350f('0x88')],_0x2090ec);_0x4ced67[_0x350f('0x123')]({'suggestion':_0x279b36,'meta':{'isOwn':_0x33cee7==_0x279b36['author'],'isNextTo':_0x1e94e6,'isInsideObject':_0x266d2e,'containsRangeInObject':_0x3346b0}});break;}}return _0x4ced67;}[_0x350f('0x2d')](_0x1599ad,_0x3e9583,_0x3ddd4c,_0x2411a4,_0x382e11){this[_0x350f('0x3b')][_0x350f('0x8a')](_0xdd9af3=>{let _0x33e3f1=_0x350f('0xdf')+_0x1599ad+':'+_0x3e9583+':'+_0x3ddd4c;_0x382e11&&(_0x33e3f1=_0x33e3f1+':'+_0x382e11),_0xdd9af3[_0x350f('0x43')](_0x33e3f1,{'range':_0x2411a4,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x350f('0xc0')](_0x432b01){const _0x425df5=_0x432b01[_0x350f('0x38')],_0xe9c7c=_0x432b01[_0x350f('0x12c')];_0x432b01[_0x350f('0x38')]=null,null!=_0x425df5&&(_0x425df5[_0x350f('0x12c')]=null),_0x432b01[_0x350f('0x12c')]=null,null!=_0xe9c7c&&(_0xe9c7c[_0x350f('0x38')]=null),_0x350f('0x120')==this[_0x350f('0x9e')][_0x350f('0x35')](_0x432b01)&&(this['_suggestionState'][_0x350f('0xa8')](_0x432b01,_0x350f('0x14')),this[_0x350f('0x6d')]('suggestionUnloaded',_0x432b01,_0x425df5,_0xe9c7c));}[_0x350f('0x122')](_0x3a8819){const _0x81c7ea=_0x3a8819['id'],_0x1e3c05=this[_0x350f('0x7d')](_0x3a8819);if(this[_0x350f('0x12d')]&&this[_0x350f('0x12d')][_0x350f('0x42')]){const _0x4341ea=this[_0x350f('0x49')][_0x350f('0x45')][_0x350f('0x35')](_0x350f('0x114')),_0x5b6fb7=_0x1e3c05[_0x350f('0xa2')],_0x4deea5=_0x1e3c05['subType']?_0x1e3c05[_0x350f('0xb')]+':'+_0x1e3c05[_0x350f('0xf6')]:_0x1e3c05['type'],_0x3886db=this[_0x350f('0x49')]['locale'],_0x556b38=_0x4341ea[_0x350f('0x94')](_0x3436c0(_0x3886db,_0x350f('0xd3'))),_0x56b856={'id':_0x81c7ea,'type':_0x4deea5,'hasComments':_0x5b6fb7,'data':_0x3a8819[_0x350f('0x6f')]||null,'originalSuggestionId':_0x3a8819['originalSuggestionId']||null,'attributes':_0x1e3c05[_0x350f('0x108')]};this[_0x350f('0x12d')][_0x350f('0x42')](_0x56b856)[_0x350f('0xa9')](_0x14251c=>{_0x1e3c05['_saved']=!0x0,_0x4341ea['remove'](_0x556b38),_0x14251c&&_0x14251c['createdAt']&&(this[_0x350f('0xa6')][_0x350f('0x35')](_0x81c7ea)['createdAt']=_0x14251c[_0x350f('0x11')]);})[_0x350f('0xa7')](_0x2c3247=>{throw _0xd5393f('error-saving-suggestion-data-suggestion-discarded'),this[_0x350f('0x49')][_0x350f('0x18')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x1e3c05[_0x350f('0xe1')]();}),_0x1e3c05[_0x350f('0xcc')](),this['_suggestions'][_0x350f('0x137')](_0x1e3c05['id']),this['_suggestionState']['delete'](_0x1e3c05),_0x2c3247;});}return _0x1e3c05;}[_0x350f('0xc2')](_0x341f17,_0x544195){const _0x2e4755=this['editor'][_0x350f('0x45')]['get'](_0x350f('0x114')),_0x45e0fe=this['getSuggestion'](_0x341f17);if(this[_0x350f('0x12d')]&&this['_adapter'][_0x350f('0xf3')]){if(_0x45e0fe['_saved']){const _0x1c19ee=_0x2e4755[_0x350f('0x94')](_0x3436c0(this[_0x350f('0x49')][_0x350f('0x2e')],_0x350f('0xd3')));this['_adapter'][_0x350f('0xf3')](_0x341f17,_0x544195)[_0x350f('0xa9')](()=>{_0x2e4755[_0x350f('0x3a')](_0x1c19ee);});}else _0x45e0fe['on']('change:_saved',()=>{this[_0x350f('0xc2')](_0x341f17,_0x544195);});}}['_getSuggestionData'](_0x4bb2f9){if(!this[_0x350f('0x12d')]||!this[_0x350f('0x12d')]['getSuggestion'])throw new _0x119d3e(_0x350f('0x3'),this);return this[_0x350f('0x12d')]['getSuggestion'](_0x4bb2f9);}[_0x350f('0xec')](_0x3977b9){const {id:_0xac369e,type:_0x3555d8,subType:_0x5d0bc7,authorId:_0x3e4c5a}=this[_0x350f('0xb1')](_0x3977b9),_0x309c8d=this[_0x350f('0xa6')][_0x350f('0x35')](_0xac369e)||this[_0x350f('0x134')](_0x3555d8,_0x5d0bc7,_0xac369e,_0x3e4c5a,{});switch(this[_0x350f('0xed')](_0x309c8d,_0x3555d8,_0x5d0bc7,_0x3e4c5a),this['_suggestionState']['get'](_0x309c8d)){case _0x350f('0xc8'):this[_0x350f('0x11d')](_0xac369e)[_0x350f('0xa9')](_0x1b8b03=>{let _0x532577=Promise[_0x350f('0x92')]();_0x1b8b03[_0x350f('0xa2')]&&(_0x532577=this[_0x350f('0x2a')]['fetchCommentThread']({'channelId':this['editor'][_0x350f('0x60')][_0x350f('0x35')](_0x350f('0xbf')),'threadId':_0xac369e})),_0x532577['then'](()=>{this[_0x350f('0x7d')](_0x1b8b03)['_saved']=!0x0;});}),this[_0x350f('0x9e')][_0x350f('0xa8')](_0x309c8d,_0x350f('0xe8'));break;case'removed':this[_0x350f('0xc2')](_0xac369e,{'state':'open'});case _0x350f('0xc9'):this[_0x350f('0x9e')]['set'](_0x309c8d,'ready'),this[_0x350f('0x6d')](_0x350f('0x19'),_0x309c8d);break;case _0x350f('0x120'):this[_0x350f('0x6d')](_0x350f('0x138'),_0x309c8d);}return _0x309c8d['addMarkerName'](_0x3977b9),_0x309c8d;}[_0x350f('0x85')](_0x3fb5d6){const _0x2c9d67=Array['from'](_0x3fb5d6)[_0x350f('0xf4')](_0x3c3e12=>!_0x3c3e12[_0x350f('0x103')]),_0x2503d5=this[_0x350f('0x48')]({'skipNotAttached':!0x0})[_0x350f('0xf4')](_0x2fcc25=>!_0x2fcc25[_0x350f('0x103')]),_0x5456dc=_0x2503d5[_0x350f('0xf4')](_0x277d1a=>!_0x3fb5d6[_0x350f('0xf1')](_0x277d1a)),_0x59619b=new Map(_0x2503d5['map'](_0x1dc7c7=>[_0x1dc7c7,this[_0x350f('0x4b')][_0x350f('0x30')](_0x1dc7c7[_0x350f('0xb')],_0x1dc7c7[_0x350f('0xf6')],_0x350f('0x96'))])),_0x59d069=new Map(_0x2503d5[_0x350f('0x3d')](_0x3438f1=>[_0x3438f1,_0x3438f1[_0x350f('0x3c')]()])),_0x54e50a=new Set(),_0x3d535a=new Set();for(let _0x3c56cf=0x0;_0x3c56cf<_0x2c9d67['length'];_0x3c56cf++)_0x44dbfa(_0x2c9d67[_0x3c56cf],_0x2c9d67,_0x3c56cf+0x1);for(let _0x4ab20f=0x0;_0x4ab20f<_0x2c9d67[_0x350f('0x12e')];_0x4ab20f++)_0x44dbfa(_0x2c9d67[_0x4ab20f],_0x5456dc,0x0);for(let _0x181f22=0x0;_0x181f22<_0x2c9d67['length'];_0x181f22++){const _0x211eda=_0x2c9d67[_0x181f22];!_0x3d535a[_0x350f('0xf1')](_0x211eda)&&_0x211eda['previous']&&(_0x211eda[_0x350f('0x38')]['next']===_0x211eda&&(_0x211eda['previous'][_0x350f('0x12c')]=null),_0x211eda['previous']=null),!_0x54e50a[_0x350f('0xf1')](_0x211eda)&&_0x211eda[_0x350f('0x12c')]&&(_0x211eda[_0x350f('0x12c')][_0x350f('0x38')]===_0x211eda&&(_0x211eda['next'][_0x350f('0x38')]=null),_0x211eda[_0x350f('0x12c')]=null);}function _0x44dbfa(_0x5c1715,_0x4f0e12,_0x46926b){for(let _0x598ef6=_0x46926b;_0x598ef6<_0x4f0e12[_0x350f('0x12e')];_0x598ef6++){const _0x36ef25=_0xfe5c5b(_0x5c1715,_0x4f0e12[_0x598ef6]);_0x36ef25&&(_0x36ef25[0x0][_0x350f('0x12c')]=_0x36ef25[0x1],_0x36ef25[0x1][_0x350f('0x38')]=_0x36ef25[0x0],_0x54e50a[_0x350f('0x94')](_0x36ef25[0x0]),_0x3d535a[_0x350f('0x94')](_0x36ef25[0x1]));}}function _0xfe5c5b(_0x24daea,_0x244094){if(_0x24daea[_0x350f('0x17')]['id']!==_0x244094[_0x350f('0x17')]['id'])return null;const _0x2c5077=_0x59619b[_0x350f('0x35')](_0x24daea)(_0x24daea,_0x244094,_0x59d069[_0x350f('0x35')](_0x24daea),_0x59d069['get'](_0x244094));if(!_0x2c5077)return null;return _0x59619b['get'](_0x244094)(_0x24daea,_0x244094,_0x59d069['get'](_0x24daea),_0x59d069[_0x350f('0x35')](_0x244094))?_0x2c5077[0x1]['commentThread']&&_0x2c5077[0x1][_0x350f('0x135')][_0x350f('0x12e')]?null:_0x2c5077:null;}}['_joinWithAdjacentSuggestions'](_0x120aa4){const _0xea9554=Array[_0x350f('0xcf')](_0x120aa4),_0x620af2=this[_0x350f('0x48')]({'skipNotAttached':!0x0}),_0x5a5973=_0x620af2['filter'](_0xf5e509=>!_0x120aa4[_0x350f('0xf1')](_0xf5e509)),_0x458a98=new Map(_0xea9554[_0x350f('0x3d')](_0x5f1416=>[_0x5f1416,this[_0x350f('0x4b')][_0x350f('0x30')](_0x5f1416[_0x350f('0xb')],_0x5f1416[_0x350f('0xf6')],_0x350f('0x1d'))])),_0x9fabf0=new Map(_0x620af2[_0x350f('0x3d')](_0x1baaf7=>[_0x1baaf7,_0x1baaf7[_0x350f('0x72')]()]));for(let _0x3394ab=0x0;_0x3394ab<_0xea9554[_0x350f('0x12e')];_0x3394ab++){if(_0x3a216e(this,_0xea9554[_0x3394ab],_0xea9554,_0x3394ab+0x1))return!0x0;}for(let _0x5e9297=0x0;_0x5e9297<_0xea9554[_0x350f('0x12e')];_0x5e9297++){if(_0x3a216e(this,_0xea9554[_0x5e9297],_0x5a5973,0x0))return!0x0;}return!0x1;function _0x3a216e(_0x3ba5ac,_0x5b1594,_0x2de71e,_0x4da04c){for(let _0x4493dc=_0x4da04c;_0x4493dc<_0x2de71e[_0x350f('0x12e')];_0x4493dc++){const _0x2c3b87=_0x2de71e[_0x4493dc];if(_0x2c3b87['type']!==_0x5b1594[_0x350f('0xb')]||_0x2c3b87['author']['id']!==_0x5b1594['author']['id']||_0x2c3b87['subType']!==_0x5b1594['subType'])continue;const _0x5e8acf=_0x458a98[_0x350f('0x35')](_0x5b1594),_0xd3a727=_0x9fabf0[_0x350f('0x35')](_0x5b1594),_0x3f782d=_0x9fabf0[_0x350f('0x35')](_0x2c3b87),_0x233345=_0x5b1594['commentThread']&&_0x5b1594[_0x350f('0x135')][_0x350f('0x12e')],_0x180b00=_0x2c3b87['commentThread']&&_0x2c3b87[_0x350f('0x135')]['length'];if(!_0x233345&&_0x5e8acf(_0x3f782d,_0xd3a727))return _0x3ba5ac[_0x350f('0xad')](_0x2c3b87,_0x5b1594),_0x9fabf0[_0x350f('0x137')](_0x5b1594),!0x0;if(!_0x180b00&&_0x5e8acf(_0xd3a727,_0x3f782d))return _0x3ba5ac['_joinSuggestions'](_0x5b1594,_0x2c3b87),_0x9fabf0[_0x350f('0x137')](_0x2c3b87),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4dbd18,_0x704343){if(_0x4dbd18[_0x350f('0x103')])for(const _0x17b908 of _0x704343[_0x350f('0x72')]())_0x4dbd18[_0x350f('0xe0')](_0x17b908);else{const _0x35c325=_0x704343[_0x350f('0x3c')]()['end'];this[_0x350f('0x4d')](_0x4dbd18,this[_0x350f('0x3b')][_0x350f('0x107')](_0x4dbd18['getFirstRange']()[_0x350f('0x88')],_0x35c325));}_0x704343[_0x350f('0x22')]();}}class vt{constructor(_0x591476){this['_editor']=_0x591476,this[_0x350f('0x3b')]=_0x591476[_0x350f('0x18')],this[_0x350f('0xe3')]=new Map(),this[_0x350f('0x10c')]=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10420b,_0x2c812c,_0x4fc6b4,_0x2869dc,_0xe81114,_0x8192eb){return new _0x14b365(this[_0x350f('0x3b')],{'type':_0x10420b,'subType':_0x2c812c,'id':_0x4fc6b4,'author':_0x2869dc,'creator':_0x2869dc,'attributes':_0xe81114,'onAttributesChange':_0x8192eb,'onAccept':(..._0x1161a9)=>this['getSuggestionCallback'](_0x10420b,_0x2c812c,_0x350f('0xd0'))(..._0x1161a9),'onDiscard':(..._0x49f437)=>this['getSuggestionCallback'](_0x10420b,_0x2c812c,_0x350f('0xe1'))(..._0x49f437)});}[_0x350f('0x111')](_0x432336,_0x4d0e6d,_0x3b6b00,_0x398ea5){const _0x8fb2b3=_0x432336+':'+_0x4d0e6d+':'+_0x3b6b00;this[_0x350f('0xe3')][_0x350f('0xa8')](_0x8fb2b3,_0x398ea5);}[_0x350f('0x30')](_0x49ab91,_0x498789,_0xcd4630){const _0x2635f4=_0x49ab91+':'+_0x498789+':'+_0xcd4630;return this[_0x350f('0xe3')][_0x350f('0x35')](_0x2635f4)||this['_defaultCallbacks'][_0x350f('0x35')](_0x49ab91+':'+_0xcd4630);}[_0x350f('0x15')](){const _0x2e96a7=()=>{},_0x33bcc8=_0x5dadfa=>{_0x5dadfa[_0x350f('0x55')]((_0x275e67,_0x79da03)=>_0x275e67['start']['isBefore'](_0x79da03[_0x350f('0x88')])?0x1:-0x1),this['_model']['change'](_0xd9215a=>{for(const _0x936924 of _0x5dadfa){let _0x455a1d;_0x455a1d=_0x936924['end'][_0x350f('0x11a')]&&_0x936924[_0x350f('0x41')][_0x350f('0xf2')]==_0x936924['start'][_0x350f('0x23')]?_0xd9215a[_0x350f('0x8f')](_0x936924[_0x350f('0x88')][_0x350f('0x23')],'on'):_0xd9215a['createSelection'](_0x936924),this[_0x350f('0x3b')][_0x350f('0xaa')](_0x455a1d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1889ef=(_0x31c220,_0x493297)=>{this[_0x350f('0x3b')][_0x350f('0x8a')](_0x24525f=>{const {commandName:_0x46d901,commandParams:_0x1091f2=[]}=_0x493297,_0x5db87a=_0x31c220['map'](_0x3d265a=>(Dt(_0x3d265a)&&(_0x3d265a=this[_0x350f('0x3b')][_0x350f('0x107')](_0x3d265a[_0x350f('0x41')])),_0x3d265a))[_0x350f('0xf4')](_0x2b51b8=>_0x350f('0x100')!==_0x2b51b8[_0x350f('0x5')][_0x350f('0x6a')]);if(_0x5db87a[_0x350f('0x12e')]<0x1)return;const _0x2521d5=Array[_0x350f('0xcf')](this['_model'][_0x350f('0xce')][_0x350f('0xdd')][_0x350f('0x72')]())['map'](_0x21a8fb=>_0x319865['fromRange'](_0x21a8fb));_0x24525f[_0x350f('0x12')](_0x5db87a);for(const _0x1ab088 of this[_0x350f('0x68')]['commands']['commands']())_0x1ab088[_0x350f('0xfd')]();_0x1091f2[_0x350f('0x123')]({'forceDefaultExecution':!0x0}),this[_0x350f('0x68')][_0x350f('0x76')](_0x46d901,..._0x1091f2);const _0x67de0c=_0x2521d5['filter'](_0xb9117f=>'$graveyard'!=_0xb9117f[_0x350f('0x5')][_0x350f('0x6a')]);_0x67de0c[_0x350f('0x12e')]>0x0&&_0x24525f[_0x350f('0x12')](_0x67de0c);for(const _0x7e6c86 of _0x2521d5)_0x7e6c86['detach']();});},_0x47bf7c=(_0x59547c,_0x4c37c1)=>0x1==_0x59547c[_0x350f('0x12e')]&&0x1==_0x4c37c1['length']&&_0x59547c[0x0][_0x350f('0x41')]['isEqual'](_0x4c37c1[0x0][_0x350f('0x88')]),_0x104e99=(_0x59d387,_0x217d69,_0x3946cb,_0x27af16)=>$t(_0x59d387,_0x217d69,_0x3946cb,_0x27af16,this[_0x350f('0x3b')])?[_0x59d387,_0x217d69]:$t(_0x217d69,_0x59d387,_0x27af16,_0x3946cb,this[_0x350f('0x3b')])?[_0x217d69,_0x59d387]:null;this[_0x350f('0x10c')][_0x350f('0xa8')]('insertion:accept',_0x2e96a7),this[_0x350f('0x10c')]['set']('insertion:discard',_0x33bcc8),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0xca'),_0x47bf7c),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0x66'),_0x104e99),this['_defaultCallbacks'][_0x350f('0xa8')](_0x350f('0xc3'),_0x33bcc8),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x10a'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x118'),_0x47bf7c),this[_0x350f('0x10c')]['set'](_0x350f('0x130'),_0x104e99),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x132'),_0x1889ef),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x127'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x89'),_0x47bf7c),this[_0x350f('0x10c')]['set'](_0x350f('0xfb'),_0x2e96a7),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x54'),_0x1889ef),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x81'),_0x2e96a7),this['_defaultCallbacks'][_0x350f('0xa8')]('formatBlock:join',_0x47bf7c),this[_0x350f('0x10c')][_0x350f('0xa8')](_0x350f('0x73'),_0x2e96a7);}}function At(_0x2b1223,_0x18c51b,_0x2c8f4e){for(const _0x52b6a4 of _0x18c51b[_0x350f('0xf2')][_0x350f('0xd4')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52b6a4[_0x350f('0x5')]==_0x52b6a4)return!0x1;if(!_0x2c8f4e[_0x350f('0xa4')](_0x52b6a4))return!0x1;if(_0x2b1223[_0x350f('0xef')](_0x52b6a4)||_0x2b1223[_0x350f('0x1f')](_0x52b6a4))return!0x0;}return!0x1;}function Dt(_0x16f261){return _0x16f261[_0x350f('0x41')][_0x350f('0xf2')]==_0x16f261[_0x350f('0x88')][_0x350f('0x23')]&&_0x16f261['end'][_0x350f('0xab')];}function Ct(_0x1ece1e,_0x1a9432,_0x173547,_0x4c5885){const _0x78739b=_0x5f5c5a=>!_0x5f5c5a[_0x350f('0x7a')]['is'](_0x350f('0x40'))&&!_0x4c5885[_0x350f('0xef')](_0x5f5c5a[_0x350f('0x7a')]),_0x253313=_0x1ece1e[_0x350f('0x88')][_0x350f('0x10f')](_0x78739b),_0x21e8c1=_0x1ece1e[_0x350f('0x41')]['getLastMatchingPosition'](_0x78739b,{'direction':'backward'});return(!_0x1ece1e['start'][_0x350f('0xdc')](_0x253313)||!_0x1ece1e[_0x350f('0x41')][_0x350f('0xdc')](_0x21e8c1))&&(_0x253313['isBefore'](_0x21e8c1)?_0x173547[_0x350f('0x7f')](_0x1a9432,{'range':_0x173547[_0x350f('0x107')](_0x253313,_0x21e8c1)}):_0x173547['removeMarker'](_0x1a9432),!0x0);}function Bt(_0x346bff){return _0x394310(_0x346bff);}function _t(_0x1d0156){const _0x4c1aee=_0x1d0156[_0x350f('0x88')][_0x350f('0x23')];return _0x4c1aee&&_0x4c1aee['is']('element');}function Mt(_0x311239,_0xd5f1b5){const _0x16ec73=_0xd5f1b5[_0x350f('0x44')][_0x350f('0xef')](_0x311239)||_0xd5f1b5[_0x350f('0x44')][_0x350f('0x12b')](_0x311239);return _0xd5f1b5['createRange'](_0xd5f1b5[_0x350f('0x10d')](_0x311239,_0x350f('0x26')),_0x16ec73?_0xd5f1b5[_0x350f('0x139')](_0x311239):_0xd5f1b5['createPositionAt'](_0x311239,'end'));}function $t(_0x13db3c,_0x2d7557,_0x5aa4d2,_0x52fc57,_0x579125){if(_0x5aa4d2[_0x350f('0x41')]['isEqual'](_0x52fc57[_0x350f('0x88')]))return!0x0;if(_0x13db3c[_0x350f('0xb')]!=_0x2d7557[_0x350f('0xb')])return!0x1;if(!_0x5aa4d2['end']['isTouching'](_0x52fc57['start']))return!0x1;const _0x1cc686=_0x579125[_0x350f('0x107')](_0x5aa4d2[_0x350f('0x41')],_0x52fc57[_0x350f('0x88')])[_0x350f('0x34')]();for(const _0x3f8a00 of _0x1cc686)if([_0x350f('0xeb'),'elementEnd'][_0x350f('0x9a')](_0x3f8a00[_0x350f('0xb')])&&_0x579125[_0x350f('0x44')][_0x350f('0x1f')](_0x3f8a00['item']))return!0x1;return!0x0;}
|
|
23
|
+
const _0x856b=['_checkSuggestionCorrectness','createElement','isTouching','_trackFormatChanges','trackChangesCommand','reconvertMarker','getNearestSelectionRange','markerToData','schema','rootName','trackChanges.trackFormatChanges','getWalker','some','getMultiRangeId','insert','formatGroupId','$textProxy','addUser','data','end','isAtEnd','ready','setSelection','ck-suggestion-marker--active','_addThreadToSuggestion','_model','init','createPositionAt','clear','add','formatBlock:chain','deletion:chain','formatInline:chain','filter','hasComments','insertion:','commentThread','creator','stop','delete','Users','markerReady','length','deletion:','isBefore','createSelection','rethrowUnexpectedError','selection','getRanges','locale','requires','authoredAt','updateSuggestion','addMarkerName','registerCustomCallback','_isForcedDefaultExecutionBlock','includes','insertion:join','low','set','acceptSuggestion','map','accepted','_enabledCommands','fire','isRemovable','dataDowncast','isLimit','editing','buildSuggestion','consumable','_breakSuggestionMarker','isBlock','_commentsRepository','removeMarkers','showSuggestionHighlights','high','options','split','suggestion','backward','track-changes-user-not-found','_getSuggestionData','author','getAllAdjacentSuggestions','ck-suggestion-marker-','createRange','_joinSuggestions','_getAuthorFromId','_editor','deleteContent','accept','removeMarker:suggestion:formatBlock','@external','track-changes-adapter-already-set','enqueueChange','type','writer','_saved','updateMarker','clone','forceDefaultExecution','trackChanges.mergeNestedSuggestions','deletion','moveTargetPosition','change:data','getSuggestions','differ','containerElement','define','enableReadOnlyMode','suggestionLoaded','_findSuggestions','_customCallbacks','_removeSuggestion','getSuggestion','addClass','$marker','getUser','track-changes-suggestion-data-mismatch','rejected','unbindElementFromMarkerName','editingDowncast','document','error-saving-suggestion-data-suggestion-discarded','getChangedMarkers','addCommentThread','removeMarker','$graveyard','_addSuggestionMarker','execute','isEqual','isObject','markDeletion','nodeBefore','_setSuggestionRange','addMarker:suggestion:formatBlock','_suggestionState','attributes','lowest','activeMarkers','conversion','_splitMarkerName','consume','CommentsRepository','isOwn','catch','isAfter','commands','createPositionAfter','resolve','insertContent','ck-suggestion-marker','suggestion-type','_getExternalAuthor','markInsertion','_refreshSuggestionsChain','return','multi','always','formatBlock:','chain','_handleNewSuggestionMarker','getCustomProperty','documentSelection','range','multipleBlocks','removeClass','discard','hasSuggestion','hasCommentThread','createdAt','addRange','formatBlock','removeComment','oldRange','isExternal','notReady','_suggestions','fetchCommentThread','insertion:chain','widget','markers','getShiftedBy','nodeAfter','position','formatBlock:discard','never','isDocumentOperation','registerPostFixer','elementStart','after','enableCommand','markMultiRangeBlockFormat','containsRangeInObject','newRange','then','from','_createSuggestion','for','targetPosition','applyOperation','getAttribute','getFirstMarker','insertion','removeAttribute','markBlockFormat','removed','isCollapsed','splice','PendingActions','change:_saved','isMultiRange','dataToMarker','change','change:activeMarkers','remove','formatInline:','every','refresh','getRange','root','formatInline:accept','item','ck-suggestion-marker-formatBlock','normal','name','open','formatInline:discard','isLocal','acceptSelectedSuggestions','_cutOutSuggestionMarker','group','_adapter','formatInline','isNextTo','getChanges','push','containsPosition','formatBlock:join','subType','setAttribute','suggestionUnloaded','getMarkers','trackChanges','isInContent','deletion:discard','model','previous','editor','containsRange','suggestion:','fromRange','upcast','addMarker:suggestion','_setSuggestionData','getCommentThread','addComment','getSuggestionCallback','toJSON','_defaultCallbacks','isInsideObject','_descriptionFactory','track-changes-command-not-found','discardSuggestion','getDifference','listenTo','markerName','mapper','toViewElement','plugins','markerNameToElements','getFirstRange','_mergeNestedSuggestions','_suggestionFactory','deletion:accept','move','acceptAllSuggestions','addSuggestion','_rangeIsInLocalUserInsertion','batch','data-suggestion','bindElementToMarker','skipNestingCheck','commandName','isIntersectingWithRange','join','adapter','dataReady','marker-count','next','getIntersection','value','discardSelectedSuggestions','createRangeIn','default','sort','head','start','forward','collaboration.channelId','_registerDefaultCallbacks','_updateSuggestionData','howMany','config','getLastMatchingPosition','parent','has','detach','get','discardAllSuggestions','markMultiRangeInsertion','PENDING_ACTION_SUGGESTION'];(function(_0x52c365,_0x856bdc){const _0x4fe5ec=function(_0x11984c){while(--_0x11984c){_0x52c365['push'](_0x52c365['shift']());}};_0x4fe5ec(++_0x856bdc);}(_0x856b,0x1bf));const _0x4fe5=function(_0x52c365,_0x856bdc){_0x52c365=_0x52c365-0x0;let _0x4fe5ec=_0x856b[_0x52c365];return _0x4fe5ec;};import{Plugin as _0x11ec97,PendingActions as _0x2cb6d5}from'ckeditor5/src/core';import{LiveRange as _0x4d5536}from'ckeditor5/src/engine';import{CKEditorError as _0x20fda3,uid as _0x5ea692,priorities as _0x27ba5d,logWarning as _0x2b96e1}from'ckeditor5/src/utils';import{toWidget as _0x5f3fac}from'ckeditor5/src/widget';import{Users as _0x5b41c7,hashObject as _0x1a08a4}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e7372 from'./commands/trackchangescommand';import _0x29e2c6 from'./commands/acceptsuggestioncommand';import _0x2d96ec from'./commands/discardsuggestioncommand';import _0x590da6 from'./commands/executeonallsuggestionscommand';import _0x3b34ef from'./commands/executeonselectedsuggestionscommand';import _0x5ae5fb from'./suggestion';import _0x386064 from'./suggestiondescriptionfactory';import _0x440fb1 from'./integrations/alignment';import _0x307d99 from'./integrations/basicstyles';import _0x3d8828 from'./integrations/blockquote';import _0x3c694d from'./integrations/ckbox';import _0x1be1b5 from'./integrations/codeblock';import _0x30a05b from'./integrations/comments';import _0x482a70 from'./integrations/deletecommand';import _0x30b9e1 from'./integrations/documentlist';import _0x2f662a from'./integrations/entercommand';import _0x5c461f from'./integrations/findandreplace';import _0x4e7334 from'./integrations/font';import _0xa21330 from'./integrations/formatpainter';import _0x528652 from'./integrations/heading';import _0x19773f from'./integrations/highlight';import _0x23a83b from'./integrations/horizontalline';import _0x25d2df from'./integrations/htmlembed';import _0x374660 from'./integrations/image';import _0x430da2 from'./integrations/imagereplace';import _0x1c0ad5 from'./integrations/importword';import _0x136789 from'./integrations/indent';import _0x284d6c from'./integrations/inputcommand';import _0x4f83f5 from'./integrations/link';import _0x584411 from'./integrations/list';import _0x52efdb from'./integrations/listproperties';import _0x2e4ac1 from'./integrations/mediaembed';import _0x4c30f0 from'./integrations/mention';import _0xd911ca from'./integrations/pagebreak';import _0x502d0d from'./integrations/paragraph';import _0x4b5a2d from'./integrations/removeformat';import _0x4c2e6f from'./integrations/restrictededitingmode';import _0x412561 from'./integrations/shiftentercommand';import _0x1734b6 from'./integrations/standardeditingmode';import _0x27fe21 from'./integrations/style';import _0x4b54db from'./integrations/table';import _0x490fa5 from'./integrations/tablemergesplit';import _0x17fb7e from'./integrations/tableheadings';import _0x5b8ab5 from'./integrations/tableclipboard';import _0x477944 from'./integrations/tablecolumnresize';import _0x5104f5 from'./integrations/template';import _0x252d88 from'./integrations/tableofcontents';import _0x25f503 from'./integrations/title';import _0x3014e8 from'./integrations/undo';import{getTranslation as _0x1803e5}from'./utils/common-translations';import _0x2e8fb9 from'./integrations/tablecaption';import _0x5c703b from'./integrations/documentlistproperties';import _0x167eeb from'./integrations/tableproperties';export default class p extends _0x11ec97{static get[_0x4fe5('0xe5')](){return['CommentsRepository',_0x5b41c7,_0x2cb6d5,_0x440fb1,_0x307d99,_0x3d8828,_0x3c694d,_0x1be1b5,_0x30a05b,_0x482a70,_0x30b9e1,_0x5c703b,_0x2f662a,_0x5c461f,_0x4e7334,_0xa21330,_0x528652,_0x19773f,_0x23a83b,_0x25d2df,_0x374660,_0x430da2,_0x1c0ad5,_0x136789,_0x284d6c,_0x4f83f5,_0x584411,_0x52efdb,_0x2e4ac1,_0x4c30f0,_0xd911ca,_0x502d0d,_0x4b5a2d,_0x4c2e6f,_0x412561,_0x1734b6,_0x27fe21,_0x4b54db,_0x490fa5,_0x17fb7e,_0x2e8fb9,_0x5b8ab5,_0x477944,_0x252d88,_0x167eeb,_0x5104f5,_0x25f503,_0x3014e8];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x266972){function _0x2bea77(_0x33dd33){return _0x33dd33[_0x4fe5('0xf0')](_0x4dcb1d=>String['fromCharCode'](_0x4dcb1d))['join']('');}super(_0x266972),this[_0x4fe5('0xee')]('activeMarkers',[]),this['on'](_0x4fe5('0x51'),(_0x445bf7,_0x11b8ad,_0x580459,_0x4ab545)=>{this[_0x4fe5('0xcc')]['change'](()=>{for(const _0x2bd426 of[..._0x4ab545,..._0x580459])this[_0x4fe5('0xcc')][_0x4fe5('0x30')][_0x4fe5('0xad')](_0x2bd426)&&_0x266972[_0x4fe5('0xf7')][_0x4fe5('0xb8')](_0x2bd426);});}),this[_0x4fe5('0x80')]=new _0x386064(this['editor'][_0x4fe5('0x71')][_0x4fe5('0xbb')],this['editor'][_0x4fe5('0xe4')]),this['_adapter']=null,this[_0x4fe5('0x8c')]=new Dt(this['editor']),this[_0x4fe5('0x2c')]=new Map(),this[_0x4fe5('0xfc')]=_0x266972[_0x4fe5('0x88')][_0x4fe5('0xaf')](_0x4fe5('0xa')),this[_0x4fe5('0xf2')]=new Set(),this[_0x4fe5('0xcc')]=this['editor'][_0x4fe5('0x71')],this['_suggestionState']=new WeakMap(),this[_0x4fe5('0xea')]=!0x1,_0x266972[_0x4fe5('0xaa')][_0x4fe5('0x120')](_0x4fe5('0xbd'),_0x4fe5('0xa1')),this['_trackFormatChanges']=_0x266972[_0x4fe5('0xaa')][_0x4fe5('0xaf')](_0x4fe5('0xbd')),_0x266972[_0x4fe5('0xaa')][_0x4fe5('0x120')](_0x4fe5('0x119'),!0x0),this[_0x4fe5('0x8b')]=_0x266972[_0x4fe5('0xaa')]['get'](_0x4fe5('0x119')),this[_0x4fe5('0xb7')]=new _0x2e7372(_0x266972,this[_0x4fe5('0xf2')]),this[_0x2bea77([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2bea77([0x34,0x30,0x34,0x36,0x31,0x30,0x33,0x32]);}[_0x4fe5('0xcd')](){const _0x5cf217=this[_0x4fe5('0x73')];_0x5cf217[_0x4fe5('0x7')][_0x4fe5('0x41')]('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x53fe93=>{const {id:_0x22ef16,type:_0x4e3f10}=this[_0x4fe5('0x8')](_0x53fe93['markerName']),_0x59c9cb=[_0x4fe5('0x12'),_0x4fe5('0x108')+_0x4e3f10];let _0x2a8fe6=0xbb8;return this[_0x4fe5('0x6')][_0x4fe5('0xeb')](_0x53fe93['markerName'])&&(_0x59c9cb['push']('ck-suggestion-marker--active'),_0x2a8fe6=0xbc2),_0x4fe5('0x11a')==_0x4e3f10&&(_0x2a8fe6+=0x5),{'classes':_0x59c9cb,'attributes':{'data-suggestion':_0x22ef16},'priority':_0x2a8fe6};}}),_0x5cf217[_0x4fe5('0x7')][_0x4fe5('0x41')]('dataDowncast')[_0x4fe5('0xd0')](_0x6ee2cc=>{_0x6ee2cc['on'](_0x4fe5('0x78'),(_0x15dd05,_0x352205,_0x3f7fb7)=>{if(!_0x3f7fb7[_0x4fe5('0x100')][_0x4fe5('0xfe')])return;const _0x25d8bb=_0x352205[_0x4fe5('0x59')];if(!_0x25d8bb)return;const _0x1034bf=_0x3f7fb7[_0x4fe5('0x86')][_0x4fe5('0x87')](_0x25d8bb);_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0xbb')][_0x4fe5('0x137')](_0x25d8bb)&&_0x1034bf&&!_0x1034bf[_0x4fe5('0x1d')](_0x4fe5('0x2f'))&&_0x1034bf['is'](_0x4fe5('0x11f'))&&_0x5f3fac(_0x1034bf,_0x3f7fb7['writer']);},{'priority':'high'});}),_0x5cf217[_0x4fe5('0x7')][_0x4fe5('0x41')](_0x4fe5('0xf5'))['markerToHighlight']({'model':_0x4fe5('0x102'),'view':(_0x12bc8d,_0x23c93b)=>{if(!_0x23c93b['options'][_0x4fe5('0xfe')])return null;const {type:_0x1c279e}=this['_splitMarkerName'](_0x12bc8d['markerName']);return{'classes':[_0x4fe5('0x12'),_0x4fe5('0x108')+_0x1c279e],'priority':0xbb8};}});const _0x2be4a6=({showActiveMarkers:_0x5be9f4=!0x0}={})=>(_0x41dc58,_0x489032,_0x17ead3)=>{if(!_0x489032[_0x4fe5('0x59')])return;if(_0x489032[_0x4fe5('0x59')]['is']('selection'))return void _0x17ead3[_0x4fe5('0xf9')][_0x4fe5('0x9')](_0x489032[_0x4fe5('0x59')],_0x41dc58[_0x4fe5('0x5c')]);const _0x7a91e6=_0x17ead3[_0x4fe5('0x86')][_0x4fe5('0x87')](_0x489032['item']);if(!(_0x489032['item']['is']('element')&&_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0xbb')][_0x4fe5('0xfb')](_0x489032['item'])&&!_0x7a91e6[_0x4fe5('0x1d')]('addHighlight')))return;const {id:_0x1d02ce}=this[_0x4fe5('0x8')](_0x489032['markerName']);_0x17ead3[_0x4fe5('0x114')][_0x4fe5('0x127')]([_0x4fe5('0x12'),'ck-suggestion-marker-formatBlock'],_0x7a91e6),_0x17ead3[_0x4fe5('0x114')][_0x4fe5('0x6b')](_0x4fe5('0x93'),_0x1d02ce,_0x7a91e6),_0x17ead3[_0x4fe5('0x86')][_0x4fe5('0x94')](_0x7a91e6,_0x489032[_0x4fe5('0x85')]),_0x5be9f4&&(this[_0x4fe5('0x6')][_0x4fe5('0xeb')](_0x489032['markerName'])?_0x17ead3[_0x4fe5('0x114')]['addClass'](_0x4fe5('0xca'),_0x7a91e6):_0x17ead3['writer'][_0x4fe5('0x21')](_0x4fe5('0xca'),_0x7a91e6));for(const _0x36bf1a of _0x5cf217['model'][_0x4fe5('0xa0')](_0x489032[_0x4fe5('0x59')])['getItems']())_0x17ead3[_0x4fe5('0xf9')][_0x4fe5('0x9')](_0x36bf1a,_0x41dc58[_0x4fe5('0x5c')]);_0x17ead3[_0x4fe5('0xf9')]['consume'](_0x489032[_0x4fe5('0x59')],_0x41dc58['name']);};_0x5cf217[_0x4fe5('0x7')]['for']('dataDowncast')[_0x4fe5('0xd0')](_0x171c65=>{_0x171c65['on'](_0x4fe5('0x2'),(_0x3bb0cc,_0x18bfd6,_0x10d74f)=>{_0x10d74f['options'][_0x4fe5('0xfe')]&&_0x2be4a6({'showActiveMarkers':!0x1})(_0x3bb0cc,_0x18bfd6,_0x10d74f);},{'priority':'highest'});}),_0x5cf217['conversion'][_0x4fe5('0x41')](_0x4fe5('0xf5'))[_0x4fe5('0xba')]({'model':_0x4fe5('0x102'),'view':(_0x35cb44,_0x174b69)=>_0x174b69['options'][_0x4fe5('0xfe')]?null:{'group':'suggestion','name':_0x35cb44['substr'](0xb)}}),_0x5cf217[_0x4fe5('0x7')][_0x4fe5('0x41')](_0x4fe5('0x77'))['elementToElement']({'view':{'name':_0x4fe5('0x102'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3b9254,{writer:_0x461060})=>{let _0xf1dfdb='suggestion:'+_0x3b9254['getAttribute'](_0x4fe5('0x13'))+':'+_0x3b9254[_0x4fe5('0x44')]('id');return _0x3b9254['getAttribute'](_0x4fe5('0x9b'))&&(_0xf1dfdb+=':'+_0x3b9254[_0x4fe5('0x44')](_0x4fe5('0x9b'))),_0x461060[_0x4fe5('0xb4')](_0x4fe5('0x128'),{'data-name':_0xf1dfdb});}}),_0x5cf217[_0x4fe5('0x7')][_0x4fe5('0x41')](_0x4fe5('0x77'))[_0x4fe5('0x4f')]({'view':_0x4fe5('0x102')}),_0x5cf217[_0x4fe5('0x7')][_0x4fe5('0x41')](_0x4fe5('0x12d'))[_0x4fe5('0xd0')](_0x1c6175=>{_0x1c6175['on'](_0x4fe5('0x2'),_0x2be4a6(),{'priority':_0x4fe5('0xff')});}),_0x5cf217[_0x4fe5('0x7')][_0x4fe5('0x41')](_0x4fe5('0x12d'))[_0x4fe5('0xd0')](_0x425abd=>{_0x425abd['on'](_0x4fe5('0x10f'),(_0x249b97,_0x3e278d,_0xdbb951)=>{const _0x39dc07=_0xdbb951[_0x4fe5('0x86')][_0x4fe5('0x89')](_0x3e278d['markerName']);if(_0x39dc07)for(const _0x30ff68 of _0x39dc07)_0x30ff68[_0x4fe5('0x1d')]('addHighlight')||(_0xdbb951[_0x4fe5('0x114')][_0x4fe5('0x21')]([_0x4fe5('0x12'),_0x4fe5('0x5a'),_0x4fe5('0xca')],_0x30ff68),_0xdbb951[_0x4fe5('0x114')][_0x4fe5('0x47')](_0x4fe5('0x93'),_0x30ff68),_0xdbb951[_0x4fe5('0x86')][_0x4fe5('0x12c')](_0x30ff68,_0x3e278d[_0x4fe5('0x85')]));},{'priority':'high'});}),_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0x12e')][_0x4fe5('0x37')](_0x297429=>{let _0x11da51=!0x1;const _0x2287ad=Array[_0x4fe5('0x3f')](_0x5cf217['model'][_0x4fe5('0x12e')][_0x4fe5('0x11e')][_0x4fe5('0x130')]()),_0x482028=new Set();for(const {name:_0x7798a4,data:_0x12886c}of _0x2287ad){const {group:_0x344ff1,type:_0x382ee6,id:_0x3d9a55}=this[_0x4fe5('0x8')](_0x7798a4);if(_0x4fe5('0x102')!==_0x344ff1)continue;const _0x477abc=this[_0x4fe5('0x2c')][_0x4fe5('0xaf')](_0x3d9a55);if(null!=_0x12886c[_0x4fe5('0x3d')]){_0x4fe5('0x64')==_0x382ee6&&(_0x11da51=_0x11da51||Mt(_0x12886c['newRange'],_0x7798a4,_0x297429,_0x5cf217['model'][_0x4fe5('0xbb')]));if(_0x12886c['newRange']['isCollapsed']||_0x4fe5('0x133')==_0x12886c['newRange'][_0x4fe5('0x57')]['rootName']||_0x4fe5('0x27')==_0x382ee6&&!Nt(_0x12886c['newRange'])||_0x4fe5('0x11a')==_0x382ee6&&!(!_t(_0x517a26=_0x12886c[_0x4fe5('0x3d')])&&!function(_0x161fc2){return _0x161fc2[_0x4fe5('0xa4')][_0x4fe5('0xac')]==_0x161fc2['end'][_0x4fe5('0x0')]&&_0x161fc2[_0x4fe5('0xa4')][_0x4fe5('0xc7')];}(_0x517a26)))_0x297429[_0x4fe5('0x132')](_0x7798a4),_0x11da51=!0x0;else{if(!_0x477abc||!_0x477abc[_0x4fe5('0x6f')])continue;_0x482028[_0x4fe5('0xd0')](_0x477abc);}}}var _0x517a26;return _0x482028['size']>0x0&&(_0x11da51=!!this['_joinWithAdjacentSuggestions'](_0x482028)||_0x11da51),_0x11da51;}),_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0x12e')][_0x4fe5('0x37')](_0x11dae4=>{let _0x3e0e29=!0x1;for(const _0x5c2035 of _0x5cf217['model'][_0x4fe5('0x12e')][_0x4fe5('0x11e')][_0x4fe5('0x66')]()){if(_0x4fe5('0xc1')!=_0x5c2035[_0x4fe5('0x113')])continue;const _0x502df7=_0x5c2035[_0x4fe5('0x33')][_0x4fe5('0x31')](_0x5c2035[_0x4fe5('0xdd')]);if(_0x502df7[_0x4fe5('0xc7')])for(const _0x4c6d8a of this[_0x4fe5('0x2c')]['values']()){if(_0x4c6d8a[_0x4fe5('0x4e')]||!_0x4c6d8a['isInContent'])continue;if(_0x4fe5('0x27')!=_0x4c6d8a[_0x4fe5('0x113')])continue;const _0x112c14=_0x4c6d8a['getFirstRange']();if(_0x112c14[_0x4fe5('0xa4')][_0x4fe5('0xac')]!=_0x112c14[_0x4fe5('0xc6')][_0x4fe5('0xac')]&&_0x112c14[_0x4fe5('0xc6')][_0x4fe5('0x136')](_0x5c2035[_0x4fe5('0x33')])){const _0x1a828f=_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0x109')](_0x112c14[_0x4fe5('0xa4')],_0x502df7);_0x11dae4['updateMarker'](_0x4c6d8a['getFirstMarker'](),{'range':_0x1a828f}),_0x3e0e29=!0x0;}}}return _0x3e0e29;}),_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0x30')]['on']('update:suggestion',(_0x38a14a,_0x5f4acf,_0x18cee9)=>{if(null==_0x18cee9){const {id:_0x2ee941}=this[_0x4fe5('0x8')](_0x5f4acf[_0x4fe5('0x5c')]),_0x12b81e=this[_0x4fe5('0x2c')][_0x4fe5('0xaf')](_0x2ee941);_0x12b81e&&_0x12b81e[_0x4fe5('0xe8')](_0x5f4acf['name']);}}),_0x5cf217['model'][_0x4fe5('0x12e')]['on'](_0x4fe5('0x11c'),()=>{const _0x5edf94=Array['from'](_0x5cf217[_0x4fe5('0x71')]['document'][_0x4fe5('0x11e')][_0x4fe5('0x130')]())[_0x4fe5('0xd4')](_0x23d709=>_0x4fe5('0x102')===this[_0x4fe5('0x8')](_0x23d709['name'])[_0x4fe5('0x62')]);if(0x0===_0x5edf94[_0x4fe5('0xdd')])return;_0x5edf94[_0x4fe5('0xa2')]((_0x2b2e18,_0x9de8a6)=>{const _0x3fad5a=_0x2b2e18[_0x4fe5('0xc5')]['oldRange'],_0x85e4f8=_0x9de8a6['data'][_0x4fe5('0x29')];return null===_0x3fad5a&&null===_0x85e4f8?0x0:null===_0x3fad5a&&null!==_0x85e4f8?-0x1:null!==_0x3fad5a&&null===_0x85e4f8?0x1:_0x3fad5a[_0x4fe5('0xa4')]['isBefore'](_0x85e4f8[_0x4fe5('0xa4')])?-0x1:0x1;});const _0xb42bf8=new Set(),_0x3392a4=new Set();for(const {name:_0x459c9c,data:_0x500e14}of _0x5edf94){const {id:_0x3e31c2}=this[_0x4fe5('0x8')](_0x459c9c);if(null===_0x500e14[_0x4fe5('0x29')]){const _0x54cf8a=this['_handleNewSuggestionMarker'](_0x459c9c);_0x3392a4[_0x4fe5('0xd0')](_0x54cf8a);}else{const _0x45e004=this[_0x4fe5('0x2c')][_0x4fe5('0xaf')](_0x3e31c2);null!==_0x500e14[_0x4fe5('0x3d')]||_0x45e004[_0x4fe5('0x6f')]?(_0xb42bf8[_0x4fe5('0xd0')](_0x45e004[_0x4fe5('0xa3')]),_0x3392a4[_0x4fe5('0xd0')](_0x45e004)):this['_removeSuggestion'](_0x45e004);}}_0x3392a4['size']>0x0&&this[_0x4fe5('0x16')](_0x3392a4);for(const _0x4d84d1 of _0xb42bf8)this[_0x4fe5('0xf3')]('suggestionChanged',_0x4d84d1);}),_0x5cf217[_0x4fe5('0x71')]['on'](_0x4fe5('0x43'),(_0x30509a,_0x465c83)=>{const _0x177c73=_0x465c83[0x0];if(!this['_suggestions']['size'])return;if(!_0x177c73[_0x4fe5('0x36')])return;if(_0x177c73[_0x4fe5('0x92')]['isUndo']||!_0x177c73[_0x4fe5('0x92')][_0x4fe5('0x5f')])return;let _0x3999ed,_0x5ef53f;switch(_0x177c73[_0x4fe5('0x113')]){case'insert':_0x3999ed=_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0xce')](_0x177c73[_0x4fe5('0x33')]),_0x5ef53f=_0x3999ed[_0x4fe5('0x31')](_0x177c73[_0x4fe5('0xa9')]);break;case _0x4fe5('0x101'):_0x3999ed=_0x5cf217[_0x4fe5('0x71')]['createPositionAt'](_0x177c73['splitPosition']),_0x5ef53f=_0x5cf217['model'][_0x4fe5('0xce')](_0x177c73[_0x4fe5('0x11b')]);break;case _0x4fe5('0x8e'):_0x3999ed=_0x5cf217[_0x4fe5('0x71')]['createPositionAt'](_0x177c73[_0x4fe5('0x42')]),_0x5ef53f=_0x3999ed['getShiftedBy'](_0x177c73[_0x4fe5('0xa9')]);break;default:return;}const _0x4f88eb=_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0x109')](_0x3999ed,_0x5ef53f);_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0x50')](()=>{for(const {suggestion:_0x4069fe,meta:_0x5cea0a}of this[_0x4fe5('0x123')](_0x4f88eb)){if(_0x4069fe[_0x4fe5('0x4e')])continue;if(_0x4fe5('0x64')==_0x4069fe[_0x4fe5('0x113')])continue;const _0x7e39e5=_0x4069fe[_0x4fe5('0xc5')]&&_0x4069fe[_0x4fe5('0xc5')][_0x4fe5('0x20')];(_0x4fe5('0x27')!=_0x4069fe[_0x4fe5('0x113')]||_0x4fe5('0x101')==_0x177c73[_0x4fe5('0x113')]&&!_0x7e39e5)&&(_0x5cea0a[_0x4fe5('0x3c')]||_0x4fe5('0x46')==_0x4069fe[_0x4fe5('0x113')]&&_0x5cea0a[_0x4fe5('0xb')]||_0x4069fe[_0x4fe5('0x8a')]()[_0x4fe5('0x74')](_0x4f88eb)&&this[_0x4fe5('0xfa')](_0x4069fe,_0x3999ed,_0x5ef53f));}});},{'priority':_0x4fe5('0x5')}),_0x5cf217[_0x4fe5('0x71')]['on']('deleteContent',(_0x299629,_0x244e7a)=>{const _0x24a55d=_0x244e7a[0x0],_0x3cd494=_0x244e7a[0x1];if(_0x3cd494&&_0x3cd494[_0x4fe5('0x118')])return;if(this[_0x4fe5('0xea')])return;if(!this[_0x4fe5('0xb7')][_0x4fe5('0x9e')])return;if(_0x24a55d[_0x4fe5('0x4a')])return;const _0x401518=_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0xbb')],{start:_0x4f85f4,end:_0x5b1674}=_0x24a55d[_0x4fe5('0x8a')](),_0x278418=_0x4f85f4['nodeAfter']&&_0x401518['isLimit'](_0x4f85f4[_0x4fe5('0x32')])?null:_0x401518[_0x4fe5('0xb9')](_0x4f85f4,_0x4fe5('0xa5')),_0x5efeda=_0x5b1674['nodeBefore']&&_0x401518[_0x4fe5('0xf6')](_0x5b1674[_0x4fe5('0x0')])?null:_0x401518[_0x4fe5('0xb9')](_0x5b1674,_0x4fe5('0x103')),_0x460ef7=_0x5cf217[_0x4fe5('0x71')]['createRange'](_0x278418?_0x278418[_0x4fe5('0xa4')]:_0x4f85f4,_0x5efeda?_0x5efeda[_0x4fe5('0xc6')]:_0x5b1674);_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0x50')](_0x452e30=>{this['markDeletion'](_0x460ef7);const _0x5c3640=_0x5cf217['model'][_0x4fe5('0xbb')][_0x4fe5('0xb9')](_0x460ef7[_0x4fe5('0xa4')]);_0x24a55d['is'](_0x4fe5('0x1e'))?_0x452e30['setSelection'](_0x5c3640):_0x24a55d['setTo'](_0x5c3640);}),_0x299629[_0x4fe5('0xd9')]();},{'priority':_0x27ba5d[_0x4fe5('0x5b')]+0xa}),_0x5cf217[_0x4fe5('0x71')]['on'](_0x4fe5('0x11'),(_0x24aad4,_0x2b6ccb)=>{const _0x220baa=_0x2b6ccb[_0x2b6ccb[_0x4fe5('0xdd')]-0x1];_0x220baa&&_0x220baa['forceDefaultExecution']||this[_0x4fe5('0xea')]||this['trackChangesCommand']['value']&&(_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0x50')](()=>{let _0x2f9b03=_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0x11')](_0x2b6ccb[0x0],_0x2b6ccb[0x1],_0x2b6ccb[0x2],{'forceDefaultExecution':!0x0});if(!_0x2f9b03)return;_0x24aad4[_0x4fe5('0x17')]=_0x2f9b03[_0x4fe5('0x117')]();const _0x1cc442=_0x2f9b03[_0x4fe5('0xc6')][_0x4fe5('0x0')],_0x5b474f=_0x5cf217['model'][_0x4fe5('0xbb')];_0x1cc442&&_0x5b474f['isBlock'](_0x1cc442)&&!_0x5b474f[_0x4fe5('0x137')](_0x1cc442)&&(_0x2f9b03=_0x5cf217['model'][_0x4fe5('0x109')](_0x2f9b03[_0x4fe5('0xa4')],_0x5cf217[_0x4fe5('0x71')][_0x4fe5('0xce')](_0x1cc442,'end'))),this['markInsertion'](_0x2f9b03);}),_0x24aad4['stop']());},{'priority':_0x4fe5('0xff')}),this[_0x4fe5('0x73')][_0x4fe5('0xe')][_0x4fe5('0xd0')]('trackChanges',this[_0x4fe5('0xb7')]),this[_0x4fe5('0x3a')](_0x4fe5('0x6e'));const _0x49be14=new _0x29e2c6(_0x5cf217,this[_0x4fe5('0x2c')]);_0x5cf217['commands'][_0x4fe5('0xd0')](_0x4fe5('0xef'),_0x49be14),this[_0x4fe5('0x3a')](_0x4fe5('0xef'));const _0x4af749=new _0x2d96ec(_0x5cf217,this[_0x4fe5('0x2c')]);_0x5cf217['commands'][_0x4fe5('0xd0')](_0x4fe5('0x82'),_0x4af749),this[_0x4fe5('0x3a')](_0x4fe5('0x82')),_0x5cf217['commands'][_0x4fe5('0xd0')](_0x4fe5('0x8f'),new _0x590da6(_0x5cf217,_0x49be14,this[_0x4fe5('0x2c')])),this['enableCommand'](_0x4fe5('0x8f')),_0x5cf217['commands']['add'](_0x4fe5('0xb0'),new _0x590da6(_0x5cf217,_0x4af749,this[_0x4fe5('0x2c')])),this[_0x4fe5('0x3a')](_0x4fe5('0xb0')),_0x5cf217[_0x4fe5('0xe')][_0x4fe5('0xd0')]('acceptSelectedSuggestions',new _0x3b34ef(_0x5cf217,_0x49be14,this[_0x4fe5('0x2c')])),this['enableCommand'](_0x4fe5('0x60')),_0x5cf217[_0x4fe5('0xe')][_0x4fe5('0xd0')]('discardSelectedSuggestions',new _0x3b34ef(_0x5cf217,_0x4af749,this[_0x4fe5('0x2c')])),this[_0x4fe5('0x3a')](_0x4fe5('0x9f'));const _0xbe047c=_0x5cf217[_0x4fe5('0x88')][_0x4fe5('0xaf')](_0x4fe5('0xa'));this[_0x4fe5('0x84')](_0xbe047c,_0x4fe5('0x7b'),(_0x380aeb,{threadId:_0x2eb03a})=>{const _0x3c9d50=this[_0x4fe5('0x2c')][_0x4fe5('0xaf')](_0x2eb03a);_0x3c9d50&&_0x3c9d50[_0x4fe5('0xd7')]&&0x1===_0x3c9d50[_0x4fe5('0xd7')][_0x4fe5('0xdd')]&&this[_0x4fe5('0xa8')](_0x2eb03a,{'hasComments':!0x0});},{'priority':_0x4fe5('0xed')}),this['listenTo'](_0xbe047c,_0x4fe5('0x28'),(_0xb03df3,{threadId:_0x5294b3})=>{const _0x41bc0e=this['_suggestions'][_0x4fe5('0xaf')](_0x5294b3);_0x41bc0e&&_0x41bc0e[_0x4fe5('0xd7')]&&!_0x41bc0e[_0x4fe5('0xd7')]['length']&&this[_0x4fe5('0xa8')](_0x5294b3,{'hasComments':!0x1});},{'priority':_0x4fe5('0xed')});}set['adapter'](_0x574f42){if(this['_adapter'])throw new _0x20fda3(_0x4fe5('0x111'),this);this[_0x4fe5('0x63')]=_0x574f42;}get[_0x4fe5('0x99')](){return this[_0x4fe5('0x63')];}['getSuggestions']({skipNotAttached:_0xc36952=!0x1,toJSON:_0x3f7764=!0x1}={}){const _0x5a3262=[];for(const _0x49e37b of this[_0x4fe5('0x2c')]['values']())_0xc36952&&!_0x49e37b[_0x4fe5('0x6f')]||_0x5a3262[_0x4fe5('0x67')](_0x49e37b);return _0x3f7764?_0x5a3262['map'](_0x4c2c06=>_0x4c2c06[_0x4fe5('0x7d')]()):_0x5a3262;}[_0x4fe5('0x126')](_0x21afa3){const _0x5eb9ba=this['_suggestions']['get'](_0x21afa3);if(!_0x5eb9ba)throw new _0x20fda3('track-changes-suggestion-not-found',this);return _0x5eb9ba;}[_0x4fe5('0x23')](_0x206e61){return this[_0x4fe5('0x2c')][_0x4fe5('0xad')](_0x206e61);}['addSuggestionData'](_0x5406bf){const {authorId:_0xa4319c,id:_0xb086c2,attributes:_0x26ee38}=_0x5406bf,[_0x41c46c,_0x4d2a17]=_0x5406bf[_0x4fe5('0x113')]['split'](':'),_0x472c05=this['_suggestions'][_0x4fe5('0xaf')](_0xb086c2)||this[_0x4fe5('0x40')](_0x41c46c,_0x4d2a17,_0xb086c2,_0xa4319c,_0x26ee38);if(this[_0x4fe5('0xcb')](_0x472c05),this[_0x4fe5('0xb3')](_0x472c05,_0x41c46c,_0x4d2a17||null,_0xa4319c),_0x472c05[_0x4fe5('0x25')]=_0x5406bf[_0x4fe5('0x25')],_0x26ee38&&_0x26ee38[_0x4fe5('0x110')]){const _0x2d33f6=_0x26ee38[_0x4fe5('0x110')],_0x37ab40=this['_getExternalAuthor'](_0x2d33f6['authorName']);_0x472c05[_0x4fe5('0xe6')]=_0x2d33f6[_0x4fe5('0x25')],_0x472c05['author']=_0x37ab40,_0x472c05[_0x4fe5('0x2a')]=!0x0;}else _0x472c05[_0x4fe5('0xe6')]=_0x5406bf[_0x4fe5('0x25')];switch(_0x5406bf[_0x4fe5('0xc5')]&&(_0x472c05[_0x4fe5('0xc5')]=_0x5406bf['data']),_0x5406bf[_0x4fe5('0x4')]&&(_0x472c05[_0x4fe5('0x4')]=_0x5406bf[_0x4fe5('0x4')]),this[_0x4fe5('0x63')]&&this[_0x4fe5('0x63')][_0x4fe5('0x90')]||(_0x472c05[_0x4fe5('0x115')]=!0x0),this[_0x4fe5('0x3')][_0x4fe5('0xaf')](_0x472c05)){case _0x4fe5('0x2b'):this[_0x4fe5('0x3')][_0x4fe5('0xee')](_0x472c05,_0x4fe5('0x9a'));break;case _0x4fe5('0xdc'):_0x472c05[_0x4fe5('0x6f')]?(this[_0x4fe5('0x3')][_0x4fe5('0xee')](_0x472c05,'ready'),this[_0x4fe5('0xf3')](_0x4fe5('0x122'),_0x472c05)):this[_0x4fe5('0x3')][_0x4fe5('0xee')](_0x472c05,_0x4fe5('0x49'));}return _0x472c05;}[_0x4fe5('0xef')](_0x3bca85){this[_0x4fe5('0x118')](()=>{this[_0x4fe5('0x73')][_0x4fe5('0x71')][_0x4fe5('0x50')](()=>{for(const _0x5e86aa of _0x3bca85['getAllAdjacentSuggestions']())_0x5e86aa['accept']();});});}[_0x4fe5('0x82')](_0x4e6b28){this[_0x4fe5('0x118')](()=>{this['editor'][_0x4fe5('0x71')][_0x4fe5('0x50')](()=>{for(const _0x3f24fe of _0x4e6b28[_0x4fe5('0x107')]())_0x3f24fe[_0x4fe5('0x22')]();});});}['enableCommand'](_0x2b9200,_0x590dfc){const _0x67b594=this[_0x4fe5('0x73')][_0x4fe5('0xe')][_0x4fe5('0xaf')](_0x2b9200);if(!_0x67b594)throw new _0x20fda3(_0x4fe5('0x81'),this,{'commandName':_0x2b9200});this[_0x4fe5('0xf2')][_0x4fe5('0xd0')](_0x67b594),_0x590dfc&&_0x67b594['on']('execute',(_0x19ba77,_0xd8ec8)=>{this['trackChangesCommand'][_0x4fe5('0x9e')]&&(this[_0x4fe5('0xea')]||_0xd8ec8['length']>0x0&&_0xd8ec8[_0xd8ec8[_0x4fe5('0xdd')]-0x1]&&_0xd8ec8[_0xd8ec8[_0x4fe5('0xdd')]-0x1][_0x4fe5('0x118')]||(_0x590dfc((..._0x45d1b2)=>_0x67b594[_0x4fe5('0x135')](..._0x45d1b2,{'forceDefaultExecution':!0x0}),..._0xd8ec8),_0x19ba77[_0x4fe5('0xd9')]()));},{'priority':_0x4fe5('0xff')});}['forceDefaultExecution'](_0x168ffe){let _0x6086f3,_0x483b3e;const _0x59b451=this[_0x4fe5('0xea')];this[_0x4fe5('0xea')]=!0x0;try{_0x6086f3=_0x168ffe();}catch(_0x5e80e7){_0x483b3e=_0x5e80e7;}return _0x59b451||(this[_0x4fe5('0xea')]=!0x1),_0x483b3e&&_0x20fda3[_0x4fe5('0xe1')](_0x483b3e,this),_0x6086f3;}[_0x4fe5('0x15')](_0x4be062,_0x2ebd10=null,_0xea8889={}){if(_0x4be062[_0x4fe5('0x4a')])return null;const _0x4b9888=this[_0x4fe5('0x73')]['plugins'][_0x4fe5('0xaf')](_0x4fe5('0xdb'))['me'];for(const {suggestion:_0x519170,meta:_0x79116d}of this['_findSuggestions'](_0x4be062,'insertion'))if(_0x79116d[_0x4fe5('0xb')]){if(!_0x79116d[_0x4fe5('0x65')]){if(!this[_0x4fe5('0x8b')]&&_0x79116d['containsRangeInObject'])continue;return _0x519170;}if(_0x2ebd10==_0x519170[_0x4fe5('0x6a')]){const _0x57f5af=_0x519170[_0x4fe5('0x8a')]();return _0x57f5af['start'][_0x4fe5('0x136')](_0x4be062[_0x4fe5('0xc6')])?this[_0x4fe5('0x1')](_0x519170,this[_0x4fe5('0xcc')][_0x4fe5('0x109')](_0x4be062[_0x4fe5('0xa4')],_0x57f5af['end'])):this['_setSuggestionRange'](_0x519170,this[_0x4fe5('0xcc')][_0x4fe5('0x109')](_0x57f5af[_0x4fe5('0xa4')],_0x4be062[_0x4fe5('0xc6')])),_0x519170;}}const _0x564f46=_0x5ea692(),_0x41bcd3=_0x4b9888['id'],_0x19c1b3=_0x2ebd10?_0x4fe5('0xd6')+_0x2ebd10:_0x4fe5('0x46'),_0xbe1c31=this[_0x4fe5('0x79')]({'id':_0x564f46,'type':_0x19c1b3,'createdAt':new Date(),'authorId':_0x41bcd3,'attributes':_0xea8889});return this[_0x4fe5('0x134')](_0x19c1b3,_0x564f46,_0x41bcd3,_0x4be062),_0xbe1c31;}[_0x4fe5('0xb1')](_0x27e8b9,_0x4b19b7=_0x4fe5('0x18'),_0x29997b={}){const _0x426359=this[_0x4fe5('0x73')][_0x4fe5('0x88')][_0x4fe5('0xaf')](_0x4fe5('0xdb'))['me'],_0x36afab=this[_0x4fe5('0x8c')]['getSuggestionCallback'](_0x4fe5('0x46'),_0x4b19b7,_0x4fe5('0x98'));for(const _0x22a8de of this['getSuggestions']())if(_0x22a8de[_0x4fe5('0x106')]['id']==_0x426359['id']&&_0x4fe5('0x46')==_0x22a8de[_0x4fe5('0x113')]&&_0x22a8de[_0x4fe5('0x6a')]==_0x4b19b7&&(_0x36afab(_0x22a8de[_0x4fe5('0xe3')](),_0x27e8b9)||_0x36afab(_0x27e8b9,_0x22a8de[_0x4fe5('0xe3')]()))){for(const _0x17322c of _0x27e8b9)_0x22a8de[_0x4fe5('0x26')](_0x17322c);return _0x22a8de;}if(this[_0x4fe5('0x8b')])for(const _0x4efb7e of _0x27e8b9)for(const {suggestion:_0x1c56eb,meta:_0x235c12}of this[_0x4fe5('0x123')](_0x4efb7e,_0x4fe5('0x46'))){if(!_0x235c12['isOwn'])continue;let _0x2d90dd=!0x0;for(const _0x1d8bc7 of _0x1c56eb[_0x4fe5('0xe3')]())for(const _0x12afa2 of _0x27e8b9)if(!_0x1d8bc7['containsRange'](_0x12afa2)){_0x2d90dd=!0x1;break;}if(_0x2d90dd)return _0x1c56eb;}const _0x171ea7=_0x5ea692(),_0xb6055e=_0x426359['id'],_0x4c9bb2=_0x4fe5('0xd6')+_0x4b19b7,_0x382d6a=this['_setSuggestionData']({'id':_0x171ea7,'type':_0x4c9bb2,'createdAt':new Date(),'authorId':_0xb6055e,'attributes':_0x29997b});for(const _0x379a05 of _0x27e8b9)this[_0x4fe5('0x134')](_0x4c9bb2,_0x171ea7,_0xb6055e,_0x379a05,_0x5ae5fb[_0x4fe5('0xc0')]());return _0x382d6a;}['markInlineFormat'](_0x177d94,_0x16e5b8,_0x3ca952=null,_0x41992e={}){if(_0x3ca952=_0x3ca952||$t(_0x16e5b8),_0x177d94[_0x4fe5('0x4a')])return null;if(_0x4fe5('0x35')===this[_0x4fe5('0xb6')]){const _0x5742e2=this[_0x4fe5('0x8c')][_0x4fe5('0x7c')](_0x4fe5('0x64'),_0x3ca952,_0x4fe5('0x10e'));return this['forceDefaultExecution'](()=>_0x5742e2([_0x177d94],_0x16e5b8,_0x41992e)),null;}const _0x2b16ed=this[_0x4fe5('0x73')][_0x4fe5('0x88')]['get'](_0x4fe5('0xdb'))['me'],_0x17fe9a=[];if('always'!==this[_0x4fe5('0xb6')])for(const {suggestion:_0x564605,meta:_0x7f3519}of this[_0x4fe5('0x123')](_0x177d94,'insertion'))_0x7f3519[_0x4fe5('0xb')]&&!_0x7f3519[_0x4fe5('0x7f')]&&_0x17fe9a['push'](..._0x564605[_0x4fe5('0xe3')]());const _0x399169=function(_0x204945,_0x3dc2eb){const _0x390305=[];for(const _0xb97e22 of _0x3dc2eb){const _0x55cda6=_0x204945[_0x4fe5('0x9d')](_0xb97e22);_0x55cda6&&_0x390305[_0x4fe5('0x67')](_0x55cda6);}return _0x390305;}(_0x177d94,_0x17fe9a),_0xcac96c=function(_0x87544b,_0x5e32b3){const _0xe69ac1=[_0x87544b];for(const _0x2867bc of _0x5e32b3){let _0xae9c32=0x0;for(;_0xae9c32<_0xe69ac1[_0x4fe5('0xdd')];){const _0x3f7ebc=_0xe69ac1[_0xae9c32][_0x4fe5('0x83')](_0x2867bc);_0xe69ac1[_0x4fe5('0x4b')](_0xae9c32,0x1,..._0x3f7ebc),_0xae9c32+=_0x3f7ebc[_0x4fe5('0xdd')];}}return _0xe69ac1;}(_0x177d94,_0x17fe9a);_0x399169[_0x4fe5('0xdd')]&&this[_0x4fe5('0xcc')]['change'](()=>{for(const _0x18f8da of _0x399169){const _0x9c870d=this[_0x4fe5('0x8c')][_0x4fe5('0x7c')](_0x4fe5('0x64'),_0x3ca952,'accept');this['forceDefaultExecution'](()=>_0x9c870d([_0x18f8da],_0x16e5b8,_0x41992e));}});for(const _0x439c28 of _0xcac96c){let _0x20e18f=null,_0x400020=_0x439c28[_0x4fe5('0xa4')],_0x482585=_0x439c28[_0x4fe5('0xc6')];for(const {suggestion:_0x3e8f88,meta:_0x354c07}of this[_0x4fe5('0x123')](_0x439c28,'formatInline')){if(!_0x354c07[_0x4fe5('0xb')])continue;if(_0x3e8f88[_0x4fe5('0x6a')]!=_0x3ca952)continue;const _0x1e61af=_0x3e8f88[_0x4fe5('0x8a')]();if(_0x1e61af['containsRange'](_0x439c28,!0x0))return null;_0x400020=_0x400020[_0x4fe5('0xdf')](_0x1e61af[_0x4fe5('0xa4')])?_0x400020:_0x1e61af[_0x4fe5('0xa4')],_0x482585=_0x482585[_0x4fe5('0xd')](_0x1e61af[_0x4fe5('0xc6')])?_0x482585:_0x1e61af[_0x4fe5('0xc6')],_0x20e18f?_0x1e61af[_0x4fe5('0xa4')][_0x4fe5('0xdf')](_0x20e18f[_0x4fe5('0x8a')]()[_0x4fe5('0xa4')])?(_0x20e18f[_0x4fe5('0xfd')](),_0x20e18f=_0x3e8f88):_0x3e8f88['removeMarkers']():_0x20e18f=_0x3e8f88;}const _0x1e38b3=this[_0x4fe5('0xcc')][_0x4fe5('0x109')](_0x400020,_0x482585);if(_0x20e18f)this[_0x4fe5('0x1')](_0x20e18f,_0x1e38b3);else{const _0x20b8f3=_0x5ea692(),_0x421269=_0x2b16ed['id'];this[_0x4fe5('0x79')]({'id':_0x20b8f3,'type':'formatInline:'+_0x3ca952,'data':_0x16e5b8,'createdAt':new Date(),'authorId':_0x421269,'attributes':_0x41992e}),this[_0x4fe5('0x134')](_0x4fe5('0x53')+_0x3ca952,_0x20b8f3,_0x421269,_0x1e38b3);}}return null;}[_0x4fe5('0x48')](_0x48eca9,_0x62947c,_0xa5c5c0=[],_0x10f427=null,_0x1be74e={}){_0x62947c[_0x4fe5('0xc2')]||(_0x62947c[_0x4fe5('0xc2')]=_0x62947c['commandName']),_0x62947c[_0x4fe5('0x20')]=_0x48eca9['is'](_0x4fe5('0x1f')),_0x10f427=_0x10f427||$t(_0x62947c);const _0x316acc=_0xa5c5c0[_0x4fe5('0xf0')](_0x3911c4=>Rt(_0x3911c4,this[_0x4fe5('0xcc')])),_0x20ffe4=_0x48eca9['is'](_0x4fe5('0x1f'))?_0x48eca9:Rt(_0x48eca9,this[_0x4fe5('0xcc')]);if(_0x4fe5('0x35')===this['_trackFormatChanges']){const _0x4059bf=this[_0x4fe5('0x8c')][_0x4fe5('0x7c')]('formatBlock',_0x10f427,_0x4fe5('0x10e'));return this['forceDefaultExecution'](()=>_0x4059bf([_0x20ffe4],_0x62947c,_0x1be74e)),null;}_0x316acc[_0x4fe5('0x67')](_0x20ffe4);let _0x38fa6f=!0x0;for(const _0xef2078 of _0x316acc)if(!this['_rangeIsInLocalUserInsertion'](_0xef2078)){_0x38fa6f=!0x1;break;}if(_0x38fa6f&&_0x4fe5('0x19')!==this[_0x4fe5('0xb6')]){const _0x2a81b5=this[_0x4fe5('0x8c')][_0x4fe5('0x7c')](_0x4fe5('0x27'),_0x10f427,_0x4fe5('0x10e'));return this[_0x4fe5('0x118')](()=>_0x2a81b5([_0x20ffe4],_0x62947c,_0x1be74e)),null;}let _0x4f7799=null,_0x472958=_0x20ffe4[_0x4fe5('0xa4')],_0x553d13=_0x20ffe4[_0x4fe5('0xc6')];for(const {suggestion:_0x298099,meta:_0xfcd804}of this[_0x4fe5('0x123')](_0x20ffe4,'formatBlock')){if(!_0xfcd804[_0x4fe5('0xb')]||_0xfcd804['isNextTo']||_0xfcd804[_0x4fe5('0x3c')]||_0xfcd804[_0x4fe5('0x7f')])continue;if(_0x298099[_0x4fe5('0xc5')][_0x4fe5('0xc2')]!=_0x62947c[_0x4fe5('0xc2')])continue;const _0x4226fe=_0x298099[_0x4fe5('0x8a')]();if(_0x298099[_0x4fe5('0x6a')]==_0x10f427){if(_0x4226fe['containsRange'](_0x20ffe4,!0x0))return null;_0x472958=_0x472958[_0x4fe5('0xdf')](_0x4226fe['start'])?_0x472958:_0x4226fe[_0x4fe5('0xa4')],_0x553d13=_0x553d13[_0x4fe5('0xd')](_0x4226fe['end'])?_0x553d13:_0x4226fe[_0x4fe5('0xc6')],_0x4f7799?_0x4226fe[_0x4fe5('0xa4')][_0x4fe5('0xdf')](_0x4f7799[_0x4fe5('0x8a')]()[_0x4fe5('0xa4')])?(_0x4f7799[_0x4fe5('0xfd')](),_0x4f7799=_0x298099):_0x298099[_0x4fe5('0xfd')]():_0x4f7799=_0x298099;}else{const _0xf0db62=_0x20ffe4[_0x4fe5('0x9d')](_0x4226fe);this['_cutOutSuggestionMarker'](_0x298099,_0xf0db62);}}const _0x2f09d7=this[_0x4fe5('0x73')][_0x4fe5('0x88')][_0x4fe5('0xaf')](_0x4fe5('0xdb'))['me'],_0x2fd64d=_0x5ea692(),_0x34367c=_0x2f09d7['id'];if(_0x4f7799)return this[_0x4fe5('0x1')](_0x4f7799,this[_0x4fe5('0xcc')][_0x4fe5('0x109')](_0x472958,_0x553d13)),_0x4f7799;{const _0x3aa341=this[_0x4fe5('0x79')]({'id':_0x2fd64d,'type':_0x4fe5('0x1a')+_0x10f427,'data':_0x62947c,'createdAt':new Date(),'authorId':_0x34367c,'attributes':_0x1be74e});return this[_0x4fe5('0x134')](_0x4fe5('0x1a')+_0x10f427,_0x2fd64d,_0x34367c,this[_0x4fe5('0xcc')][_0x4fe5('0x109')](_0x472958,_0x553d13)),_0x3aa341;}}[_0x4fe5('0x3b')](_0x80be01,_0x2bbe24,_0xf575df=[],_0x3da06e=null,_0x50970e={}){_0x2bbe24['formatGroupId']||(_0x2bbe24[_0x4fe5('0xc2')]=_0x2bbe24[_0x4fe5('0x96')]);const _0x32763a=_0x80be01[0x0];_0x2bbe24[_0x4fe5('0x20')]=_0x32763a['is']('range'),_0x3da06e=_0x3da06e||$t(_0x2bbe24);const _0x39be88=_0xf575df[_0x4fe5('0xf0')](_0x19ccf2=>Rt(_0x19ccf2,this[_0x4fe5('0xcc')])),_0x25c8ac=_0x32763a['is']('range')?_0x80be01:_0x80be01['map'](_0x921f73=>Rt(_0x921f73,this[_0x4fe5('0xcc')]));if(_0x4fe5('0x35')===this[_0x4fe5('0xb6')]){const _0x407f62=this[_0x4fe5('0x8c')][_0x4fe5('0x7c')]('formatBlock',_0x3da06e,'accept');return this[_0x4fe5('0x118')](()=>_0x407f62(_0x25c8ac,_0x2bbe24,_0x50970e)),null;}_0x39be88[_0x4fe5('0x67')](..._0x25c8ac);let _0x393d20=!0x0;for(const _0x3dcc72 of _0x39be88)if(!this[_0x4fe5('0x91')](_0x3dcc72)){_0x393d20=!0x1;break;}if(_0x393d20&&_0x4fe5('0x19')!==this['_trackFormatChanges']){const _0x57b083=this[_0x4fe5('0x8c')][_0x4fe5('0x7c')]('formatBlock',_0x3da06e,_0x4fe5('0x10e'));return this[_0x4fe5('0x118')](()=>_0x57b083(_0x25c8ac,_0x2bbe24,_0x50970e)),null;}const _0x4d3983=this['editor'][_0x4fe5('0x88')][_0x4fe5('0xaf')](_0x4fe5('0xdb'))['me'];for(const _0x5e7a5f of this[_0x4fe5('0x11d')]()){if(_0x5e7a5f['author']['id']!=_0x4d3983['id'])continue;if(_0x4fe5('0x27')!=_0x5e7a5f['type']||_0x5e7a5f[_0x4fe5('0xc5')][_0x4fe5('0xc2')]!=_0x2bbe24[_0x4fe5('0xc2')])continue;const _0x335b19=_0x5e7a5f[_0x4fe5('0x6a')]==_0x3da06e;for(let _0x3d081a=0x0;_0x3d081a<_0x25c8ac[_0x4fe5('0xdd')];_0x3d081a++){const _0x1bbc14=_0x25c8ac[_0x3d081a];for(const _0x4146e1 of _0x5e7a5f[_0x4fe5('0x6d')]()){const _0x350824=_0x4146e1[_0x4fe5('0x56')]();if(_0x1bbc14[_0x4fe5('0x136')](_0x350824)){_0x335b19?(_0x25c8ac[_0x4fe5('0x4b')](_0x3d081a,0x1),_0x3d081a--):_0x5e7a5f[_0x4fe5('0x132')](_0x4146e1[_0x4fe5('0x5c')]);break;}}}}if(0x0==_0x25c8ac[_0x4fe5('0xdd')])return null;const _0xc41c2c=this['_suggestionFactory'][_0x4fe5('0x7c')]('formatBlock',_0x3da06e,_0x4fe5('0x98'));for(const _0x8014ec of this[_0x4fe5('0x11d')]())if(_0x8014ec['author']['id']==_0x4d3983['id']&&'formatBlock'==_0x8014ec[_0x4fe5('0x113')]&&_0x8014ec[_0x4fe5('0xc5')][_0x4fe5('0xc2')]==_0x2bbe24[_0x4fe5('0xc2')]&&_0x8014ec['subType']==_0x3da06e&&(_0xc41c2c(_0x8014ec[_0x4fe5('0xe3')](),_0x25c8ac)||_0xc41c2c(_0x25c8ac,_0x8014ec['getRanges']()))){for(const _0x2fd7a4 of _0x25c8ac)_0x8014ec[_0x4fe5('0x26')](_0x2fd7a4);return _0x8014ec;}const _0x2bfdab=_0x5ea692(),_0x3e7749=_0x4d3983['id'],_0x25dc3f=_0x4fe5('0x1a')+_0x3da06e,_0x2a67ba=this['_setSuggestionData']({'id':_0x2bfdab,'type':_0x25dc3f,'data':_0x2bbe24,'createdAt':new Date(),'authorId':_0x3e7749,'attributes':_0x50970e});for(const _0x2f99cc of _0x25c8ac)this['_addSuggestionMarker'](_0x25dc3f,_0x2bfdab,_0x3e7749,_0x2f99cc,_0x5ae5fb['getMultiRangeId']());return _0x2a67ba;}[_0x4fe5('0x138')](_0x2a7b1e,_0x16b38f=null,_0x4741a6={}){if(_0x2a7b1e[_0x4fe5('0x4a')])return null;const _0x54b414=this[_0x4fe5('0x73')][_0x4fe5('0x88')][_0x4fe5('0xaf')](_0x4fe5('0xdb'))['me'],_0x4fd201=new _0x4d5536(_0x2a7b1e['start'],_0x2a7b1e[_0x4fe5('0xc6')]);for(const {suggestion:_0x478c81,meta:_0x357a12}of this['_findSuggestions'](_0x4fd201,'insertion'))if(_0x357a12[_0x4fe5('0xb')]&&!_0x357a12[_0x4fe5('0x65')]){if(_0x478c81[_0x4fe5('0x4e')]){const _0x362034=_0x478c81[_0x4fe5('0xe3')]()[_0x4fe5('0xd4')](_0x3cd032=>_0x4fe5('0x133')!=_0x3cd032[_0x4fe5('0x57')][_0x4fe5('0xbc')]);_0x362034[_0x4fe5('0x54')](_0x211659=>_0x4fd201['containsRange'](_0x211659,!0x0))&&_0x478c81[_0x4fe5('0x22')]();if(_0x362034[_0x4fe5('0xbf')](_0x490034=>_0x490034[_0x4fe5('0x74')](_0x4fd201,!0x0))){const _0x2d21ec=this[_0x4fe5('0x8c')][_0x4fe5('0x7c')]('deletion',_0x16b38f,'accept');return this[_0x4fe5('0x118')](()=>_0x2d21ec([_0x4fd201],null,_0x4741a6)),null;}}else{const _0x5c66da=_0x4fd201['getIntersection'](_0x478c81[_0x4fe5('0x8a')]());null!==_0x5c66da&&_0x478c81['_onDiscard']([_0x5c66da],null,_0x4741a6);}}if(_0x4fd201[_0x4fe5('0xae')](),_0x4fd201[_0x4fe5('0x4a')]||_0x4fe5('0x133')==_0x4fd201[_0x4fe5('0x57')]['rootName'])return null;let _0x34d1b0=null,_0x8df197=_0x4fd201[_0x4fe5('0xa4')],_0x531a46=_0x4fd201[_0x4fe5('0xc6')];for(const {suggestion:_0x2fa59d,meta:_0x54f50c}of this['_findSuggestions'](_0x4fd201,'deletion'))if(_0x54f50c[_0x4fe5('0xb')]){if(_0x2fa59d[_0x4fe5('0x4e')]&&this[_0x4fe5('0x8b')]){let _0x73fff5=!0x0;for(const _0x1e3d77 of _0x2fa59d[_0x4fe5('0xe3')]()){if(_0x1e3d77['containsRange'](_0x4fd201,!0x0))return _0x2fa59d;_0x4fd201[_0x4fe5('0x74')](_0x1e3d77)||(_0x73fff5=!0x1);}_0x73fff5&&_0x2fa59d[_0x4fe5('0x22')]();}else{const _0x11d68a=_0x2fa59d[_0x4fe5('0x8a')]();if(_0x11d68a[_0x4fe5('0x74')](_0x4fd201,!0x0)){if(!this[_0x4fe5('0x8b')]&&_0x54f50c[_0x4fe5('0x3c')])continue;return _0x2fa59d;}_0x8df197=_0x8df197[_0x4fe5('0xdf')](_0x11d68a[_0x4fe5('0xa4')])?_0x8df197:_0x11d68a[_0x4fe5('0xa4')],_0x531a46=_0x531a46['isAfter'](_0x11d68a[_0x4fe5('0xc6')])?_0x531a46:_0x11d68a['end'],_0x34d1b0?_0x11d68a['start'][_0x4fe5('0xdf')](_0x34d1b0[_0x4fe5('0x8a')]()['start'])?(_0x34d1b0[_0x4fe5('0xfd')](),_0x34d1b0=_0x2fa59d):_0x2fa59d[_0x4fe5('0xfd')]():_0x34d1b0=_0x2fa59d;}}if(_0x34d1b0)return this[_0x4fe5('0x1')](_0x34d1b0,this['_model'][_0x4fe5('0x109')](_0x8df197,_0x531a46)),_0x34d1b0;{const _0x469bcc=_0x5ea692(),_0x56d23d=this[_0x4fe5('0xcc')][_0x4fe5('0x109')](_0x8df197,_0x531a46),_0xc3fd22=_0x54b414['id'],_0x1606a5=_0x16b38f?_0x4fe5('0xde')+_0x16b38f:_0x4fe5('0x11a'),_0x1aacdd=this[_0x4fe5('0x79')]({'id':_0x469bcc,'type':_0x1606a5,'createdAt':new Date(),'authorId':_0xc3fd22,'attributes':_0x4741a6});return this[_0x4fe5('0x134')](_0x1606a5,_0x469bcc,_0xc3fd22,_0x56d23d),_0x1aacdd;}}['markMultiRangeDeletion'](_0x446a14,_0x45ef7e=_0x4fe5('0x18'),_0x24a844={}){const _0x33c97b=this[_0x4fe5('0x73')][_0x4fe5('0x88')]['get'](_0x4fe5('0xdb'))['me'],_0x404feb=_0x446a14['map'](_0x39207e=>new _0x4d5536(_0x39207e[_0x4fe5('0xa4')],_0x39207e[_0x4fe5('0xc6')])),_0x31b740=new Set();for(const _0x88f5f6 of _0x404feb)for(const {suggestion:_0x2835f5,meta:_0x207b5c}of this['_findSuggestions'](_0x88f5f6,_0x4fe5('0x46')))_0x207b5c[_0x4fe5('0xb')]&&!_0x207b5c[_0x4fe5('0x65')]&&_0x31b740[_0x4fe5('0xd0')](_0x2835f5);for(const _0x53cd6b of _0x31b740)if(_0x53cd6b['isMultiRange']){const _0x5e4d08=_0x53cd6b[_0x4fe5('0xe3')]();(!_0x53cd6b[_0x4fe5('0x4')]||!_0x53cd6b[_0x4fe5('0x4')]['skipNestingCheck'])&&(_0x5e4d08[_0x4fe5('0x54')](_0x129571=>_0x404feb[_0x4fe5('0xbf')](_0x4f6210=>_0x4f6210[_0x4fe5('0x74')](_0x129571,!0x0)))&&_0x53cd6b[_0x4fe5('0x22')]());if(_0x404feb['every'](_0x1a807a=>_0x5e4d08[_0x4fe5('0xbf')](_0x41303f=>_0x41303f['containsRange'](_0x1a807a,!0x0)))){const _0x1cdc69=this['_suggestionFactory'][_0x4fe5('0x7c')](_0x4fe5('0x11a'),_0x45ef7e,_0x4fe5('0x10e'));return this['forceDefaultExecution'](()=>_0x1cdc69(_0x446a14,null,_0x24a844)),null;}}else{const _0x44d883=_0x53cd6b[_0x4fe5('0x8a')]();_0x404feb[_0x4fe5('0xbf')](_0x1432b9=>_0x1432b9[_0x4fe5('0x74')](_0x44d883,!0x0))&&_0x53cd6b[_0x4fe5('0x22')]();if(_0x404feb['every'](_0x31c5a1=>_0x44d883[_0x4fe5('0x74')](_0x31c5a1,!0x0))){const _0x16e42f=this[_0x4fe5('0x8c')][_0x4fe5('0x7c')](_0x4fe5('0x11a'),_0x45ef7e,_0x4fe5('0x10e'));return this[_0x4fe5('0x118')](()=>_0x16e42f(_0x404feb,null,_0x24a844)),null;}}const _0x2811a6=this[_0x4fe5('0x8c')][_0x4fe5('0x7c')]('deletion',_0x45ef7e,_0x4fe5('0x98'));let _0x33daa8=null;for(const _0x3f5a6c of this[_0x4fe5('0x11d')]())if(_0x3f5a6c[_0x4fe5('0x106')]['id']==_0x33c97b['id']&&_0x3f5a6c[_0x4fe5('0x6f')]&&_0x4fe5('0x11a')==_0x3f5a6c['type']&&_0x3f5a6c[_0x4fe5('0x6a')]==_0x45ef7e&&(_0x2811a6(_0x3f5a6c[_0x4fe5('0xe3')](),_0x404feb)||_0x2811a6(_0x404feb,_0x3f5a6c[_0x4fe5('0xe3')]()))){if(_0x33daa8){if(_0x3f5a6c[_0x4fe5('0xd7')]&&_0x3f5a6c[_0x4fe5('0xd7')][_0x4fe5('0xdd')])continue;for(const _0x113c98 of _0x3f5a6c[_0x4fe5('0xe3')]())_0x33daa8[_0x4fe5('0x97')](_0x113c98)||_0x33daa8['addRange'](_0x113c98);_0x3f5a6c['removeMarkers']();}else{_0x33daa8=_0x3f5a6c;for(const _0x46b26e of _0x404feb)_0x3f5a6c[_0x4fe5('0x97')](_0x46b26e)||_0x3f5a6c['addRange'](_0x46b26e);}}if(_0x33daa8)return _0x33daa8;_0x31b740[_0x4fe5('0xcf')]();for(const _0x14e055 of _0x404feb)for(const {suggestion:_0x16b4d3,meta:_0xc4e139}of this[_0x4fe5('0x123')](_0x14e055,'deletion'))_0xc4e139[_0x4fe5('0xb')]&&_0x31b740[_0x4fe5('0xd0')](_0x16b4d3);for(const _0x14ce08 of _0x31b740){const _0xc9a55d=_0x14ce08[_0x4fe5('0xe3')]();if(!_0x24a844||!_0x24a844['skipNestingCheck']){if(_0x404feb[_0x4fe5('0x54')](_0x394b19=>_0xc9a55d[_0x4fe5('0xbf')](_0x568fb3=>_0x568fb3[_0x4fe5('0x74')](_0x394b19,!0x0))))return _0x14ce08;}(!_0x14ce08['attributes']||!_0x14ce08['attributes'][_0x4fe5('0x95')])&&(_0xc9a55d[_0x4fe5('0x54')](_0xd71116=>_0x404feb[_0x4fe5('0xbf')](_0x38ed58=>_0x38ed58[_0x4fe5('0x74')](_0xd71116,!0x0)))&&_0x14ce08[_0x4fe5('0x22')]());}const _0x16f8de=_0x5ea692(),_0x484654=_0x33c97b['id'],_0x131ec5=_0x4fe5('0xde')+_0x45ef7e,_0x1ca604=this['_setSuggestionData']({'id':_0x16f8de,'type':_0x131ec5,'createdAt':new Date(),'authorId':_0x484654,'attributes':_0x24a844});for(const _0x3e8814 of _0x404feb)_0x3e8814['detach'](),_0x3e8814[_0x4fe5('0x4a')]||_0x4fe5('0x133')==_0x3e8814['root'][_0x4fe5('0xbc')]||this[_0x4fe5('0x134')](_0x131ec5,_0x16f8de,_0x484654,_0x3e8814,_0x5ae5fb[_0x4fe5('0xc0')]());return _0x1ca604;}[_0x4fe5('0x1')](_0x40f086,_0x4edc3e){const _0x524771=_0x40f086[_0x4fe5('0x45')]();this['_model'][_0x4fe5('0x50')](_0x28af00=>{_0x28af00[_0x4fe5('0x116')](_0x524771,{'range':_0x4edc3e});});}[_0x4fe5('0xcb')](_0x5d7d22){const _0x24732a=_0x5d7d22['id'],_0x3c4568=this[_0x4fe5('0x73')]['config'][_0x4fe5('0xaf')](_0x4fe5('0xa6'));this[_0x4fe5('0xfc')][_0x4fe5('0x24')](_0x24732a)||this[_0x4fe5('0xfc')][_0x4fe5('0x131')]({'channelId':_0x3c4568,'threadId':_0x24732a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x21d330=this['_commentsRepository'][_0x4fe5('0x7a')](_0x24732a);_0x21d330['unbind'](_0x4fe5('0xf4')),_0x21d330[_0x4fe5('0xf4')]=!0x1,_0x5d7d22['commentThread']=_0x21d330;}[_0x4fe5('0xb3')](_0x18ad01,_0x278115,_0x5f3662,_0x2ac4f4){if(_0x18ad01[_0x4fe5('0x113')]!=_0x278115||_0x18ad01['subType']!=_0x5f3662||_0x18ad01[_0x4fe5('0xd8')]['id']!=_0x2ac4f4)throw this[_0x4fe5('0x73')][_0x4fe5('0x121')](_0x4fe5('0x12a')),new _0x20fda3(_0x4fe5('0x12a'),this);}[_0x4fe5('0x61')](_0x3b6cb5,_0x520a9a){const _0x225c29=_0x3b6cb5[_0x4fe5('0x8a')]();if(_0x520a9a[_0x4fe5('0x136')](_0x225c29))_0x3b6cb5['removeMarkers']();else{if(_0x225c29[_0x4fe5('0x74')](_0x520a9a)){const _0x1954aa=this[_0x4fe5('0xcc')][_0x4fe5('0xce')](_0x520a9a[_0x4fe5('0xa4')][_0x4fe5('0x0')],_0x4fe5('0xc6'));this['_setSuggestionRange'](_0x3b6cb5,this['_model']['createRange'](_0x225c29[_0x4fe5('0xa4')],_0x1954aa));const _0x5dbe7d=_0x5ea692(),_0x18ee1e=_0x3b6cb5['creator']['id'],_0x3c0684=_0x3b6cb5['type']+':'+_0x3b6cb5['subType'];this[_0x4fe5('0x79')]({'id':_0x5dbe7d,'type':_0x3c0684,'createdAt':new Date(),'authorId':_0x18ee1e,'data':_0x3b6cb5[_0x4fe5('0xc5')],'attributes':_0x3b6cb5[_0x4fe5('0x4')]});const _0x5772d1=this[_0x4fe5('0xcc')][_0x4fe5('0xce')](_0x520a9a['end'][_0x4fe5('0xac')],_0x4fe5('0x39')),_0x1f7112=this['_model']['createRange'](_0x5772d1,_0x225c29['end']);this['_addSuggestionMarker'](_0x3c0684,_0x5dbe7d,_0x18ee1e,_0x1f7112);}else{if(_0x225c29[_0x4fe5('0x68')](_0x520a9a[_0x4fe5('0xa4')])){const _0xe069e2=this[_0x4fe5('0xcc')][_0x4fe5('0xce')](_0x520a9a[_0x4fe5('0xa4')][_0x4fe5('0x0')],'end');this[_0x4fe5('0x1')](_0x3b6cb5,this[_0x4fe5('0xcc')][_0x4fe5('0x109')](_0x225c29['start'],_0xe069e2));}else{const _0xac755a=this['_model']['createPositionAt'](_0x520a9a['end']['parent'],'after');this[_0x4fe5('0x1')](_0x3b6cb5,this[_0x4fe5('0xcc')][_0x4fe5('0x109')](_0xac755a,_0x225c29[_0x4fe5('0xc6')]));}}}}[_0x4fe5('0x91')](_0x1bcc47){for(const {suggestion:_0x22da2e,meta:_0x4be21b}of this[_0x4fe5('0x123')](_0x1bcc47,'insertion')){if(!_0x4be21b[_0x4fe5('0xb')])continue;const _0x4fc0d9=_0x22da2e[_0x4fe5('0xe3')]();for(const _0x6b7cc5 of _0x4fc0d9)if(!_0x1bcc47[_0x4fe5('0x83')](_0x6b7cc5)[_0x4fe5('0xdd')])return!0x0;}return!0x1;}[_0x4fe5('0x10b')](_0x2017c0){const _0x43d138=this[_0x4fe5('0x73')][_0x4fe5('0x88')][_0x4fe5('0xaf')](_0x4fe5('0xdb'))[_0x4fe5('0x129')](_0x2017c0);if(!_0x43d138)throw new _0x20fda3(_0x4fe5('0x104'),this);return _0x43d138;}[_0x4fe5('0x14')](_0xcd4727){const _0x3d18b0=this[_0x4fe5('0x73')][_0x4fe5('0x88')][_0x4fe5('0xaf')](_0x4fe5('0xdb')),_0x573605=_0x1a08a4('external:'+_0xcd4727),_0x1345ab=_0x3d18b0['getUser'](_0x573605);return _0x1345ab||_0x3d18b0[_0x4fe5('0xc4')]({'id':_0x573605,'name':_0xcd4727});}[_0x4fe5('0x40')](_0x2607cd,_0x1e51dd,_0xed55e6,_0x5bccee,_0x44b76f){const _0x3986a8=this['_getAuthorFromId'](_0x5bccee),_0xba4b55=this[_0x4fe5('0x8c')][_0x4fe5('0xf8')](_0x2607cd,_0x1e51dd,_0xed55e6,_0x3986a8,_0x44b76f,_0xb6ca42=>this[_0x4fe5('0xa8')](_0xed55e6,{'attributes':_0xb6ca42}));return this[_0x4fe5('0x84')](_0xba4b55,_0x4fe5('0x10e'),()=>{this[_0x4fe5('0xa8')](_0xed55e6,{'state':_0x4fe5('0xf1')});},{'priority':_0x4fe5('0xff')}),this['listenTo'](_0xba4b55,_0x4fe5('0x22'),()=>{this[_0x4fe5('0xa8')](_0xed55e6,{'state':_0x4fe5('0x12b')});},{'priority':_0x4fe5('0xff')}),this[_0x4fe5('0x2c')][_0x4fe5('0xee')](_0xed55e6,_0xba4b55),this[_0x4fe5('0x3')][_0x4fe5('0xee')](_0xba4b55,_0x4fe5('0x2b')),_0xba4b55;}[_0x4fe5('0x8')](_0x94a730){const _0x200b3d=_0x94a730['split'](':');return{'group':_0x200b3d[0x0],'type':_0x200b3d[0x1],'subType':_0x200b3d['length']>=0x5?_0x200b3d[0x2]:null,'id':_0x200b3d[_0x4fe5('0xdd')]<0x5?_0x200b3d[0x2]:_0x200b3d[0x3],'authorId':_0x200b3d[_0x4fe5('0xdd')]<0x5?_0x200b3d[0x3]:_0x200b3d[0x4],'markerCount':0x6==_0x200b3d[_0x4fe5('0xdd')]?_0x200b3d[0x5]:null};}['_breakSuggestionMarker'](_0x1d7c5a,_0x10f95e,_0x159522){const _0x18f0e0=_0x1d7c5a[_0x4fe5('0x8a')](),_0x3f7594=_0x18f0e0[_0x4fe5('0xa4')],_0x2b8b81=_0x18f0e0['end'];this[_0x4fe5('0x1')](_0x1d7c5a,this[_0x4fe5('0xcc')][_0x4fe5('0x109')](_0x3f7594,_0x10f95e));const _0x27739f=_0x5ea692(),_0x1940f4=_0x1d7c5a[_0x4fe5('0xd8')]['id'],_0x2545b5=_0x1d7c5a['type']+(_0x1d7c5a[_0x4fe5('0x6a')]?':'+_0x1d7c5a['subType']:'');this[_0x4fe5('0x79')]({'id':_0x27739f,'type':_0x2545b5,'createdAt':new Date(),'authorId':_0x1940f4,'originalSuggestionId':_0x1d7c5a['id'],'attributes':_0x1d7c5a[_0x4fe5('0x4')],'data':_0x1d7c5a['data']}),_0x4fe5('0x27')==_0x1d7c5a[_0x4fe5('0x113')]&&(_0x159522=this[_0x4fe5('0xcc')]['createPositionBefore'](_0x159522[_0x4fe5('0xac')])),this[_0x4fe5('0x134')](_0x2545b5,_0x27739f,_0x1940f4,this[_0x4fe5('0xcc')]['createRange'](_0x159522,_0x2b8b81));}['_findSuggestions'](_0xc2266,_0x58c4ba=null){const _0x1a65e3=[],_0x43ebe1=this[_0x4fe5('0xcc')][_0x4fe5('0xbb')],_0x4396b8=this['editor'][_0x4fe5('0x88')][_0x4fe5('0xaf')](_0x4fe5('0xdb'))['me'];for(const _0x20f9e3 of this['getSuggestions']())if(_0x20f9e3['isInContent']&&(!_0x58c4ba||_0x20f9e3[_0x4fe5('0x113')]==_0x58c4ba))for(const _0x54b438 of _0x20f9e3[_0x4fe5('0xe3')]()){const _0xf21046=_0xc2266[_0x4fe5('0xa4')][_0x4fe5('0x136')](_0x54b438[_0x4fe5('0xc6')])||_0xc2266[_0x4fe5('0xc6')]['isEqual'](_0x54b438[_0x4fe5('0xa4')]);if(_0xf21046||_0xc2266[_0x4fe5('0x9d')](_0x54b438)){const _0x390652=_0xc2266[_0x4fe5('0x74')](_0x54b438)&&Bt(_0x43ebe1,_0x54b438[_0x4fe5('0xa4')],_0xc2266),_0x38b203=_0x54b438[_0x4fe5('0x74')](_0xc2266)&&Bt(_0x43ebe1,_0xc2266['start'],_0x54b438);_0x1a65e3[_0x4fe5('0x67')]({'suggestion':_0x20f9e3,'meta':{'isOwn':_0x4396b8==_0x20f9e3['author'],'isNextTo':_0xf21046,'isInsideObject':_0x390652,'containsRangeInObject':_0x38b203}});break;}}return _0x1a65e3;}[_0x4fe5('0x134')](_0xd401dd,_0x2e8cd8,_0xb39808,_0x1dd7fb,_0x21cdfa){this[_0x4fe5('0xcc')][_0x4fe5('0x50')](_0x324d75=>{let _0x258caa=_0x4fe5('0x75')+_0xd401dd+':'+_0x2e8cd8+':'+_0xb39808;_0x21cdfa&&(_0x258caa=_0x258caa+':'+_0x21cdfa),_0x324d75['addMarker'](_0x258caa,{'range':_0x1dd7fb,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4fe5('0x125')](_0x4a2a69){const _0x464fff=_0x4a2a69['previous'],_0x5e77a6=_0x4a2a69[_0x4fe5('0x9c')];_0x4a2a69[_0x4fe5('0x72')]=null,null!=_0x464fff&&(_0x464fff[_0x4fe5('0x9c')]=null),_0x4a2a69[_0x4fe5('0x9c')]=null,null!=_0x5e77a6&&(_0x5e77a6[_0x4fe5('0x72')]=null),_0x4fe5('0xc8')==this[_0x4fe5('0x3')][_0x4fe5('0xaf')](_0x4a2a69)&&(this[_0x4fe5('0x3')]['set'](_0x4a2a69,_0x4fe5('0x49')),this['fire'](_0x4fe5('0x6c'),_0x4a2a69,_0x464fff,_0x5e77a6));}[_0x4fe5('0x79')](_0x5a5969){const _0x387902=_0x5a5969['id'],_0xba221d=this['addSuggestionData'](_0x5a5969);if(this[_0x4fe5('0x63')]&&this['_adapter']['addSuggestion']){const _0x1643bc=this['editor'][_0x4fe5('0x88')][_0x4fe5('0xaf')](_0x4fe5('0x4c')),_0x524693=_0xba221d[_0x4fe5('0xd5')],_0x387ed6=_0xba221d[_0x4fe5('0x6a')]?_0xba221d[_0x4fe5('0x113')]+':'+_0xba221d[_0x4fe5('0x6a')]:_0xba221d[_0x4fe5('0x113')],_0x205dad=this['editor'][_0x4fe5('0xe4')],_0x156de5=_0x1643bc['add'](_0x1803e5(_0x205dad,_0x4fe5('0xb2'))),_0x566650={'id':_0x387902,'type':_0x387ed6,'hasComments':_0x524693,'data':_0x5a5969['data']||null,'originalSuggestionId':_0x5a5969['originalSuggestionId']||null,'attributes':_0xba221d['attributes']};this[_0x4fe5('0x63')][_0x4fe5('0x90')](_0x566650)[_0x4fe5('0x3e')](_0x514458=>{_0xba221d['_saved']=!0x0,_0x1643bc[_0x4fe5('0x52')](_0x156de5),_0x514458&&_0x514458['createdAt']&&(this[_0x4fe5('0x2c')][_0x4fe5('0xaf')](_0x387902)['createdAt']=_0x514458[_0x4fe5('0x25')]);})[_0x4fe5('0xc')](_0x58ccb4=>{throw _0x2b96e1(_0x4fe5('0x12f')),this[_0x4fe5('0x73')][_0x4fe5('0x71')][_0x4fe5('0x112')]({'isUndoable':!0x1},()=>{_0xba221d['discard']();}),_0xba221d['stopListening'](),this[_0x4fe5('0x2c')]['delete'](_0xba221d['id']),this[_0x4fe5('0x3')][_0x4fe5('0xda')](_0xba221d),_0x58ccb4;});}return _0xba221d;}[_0x4fe5('0xa8')](_0x404a47,_0x5ea625){const _0x299482=this['editor']['plugins'][_0x4fe5('0xaf')](_0x4fe5('0x4c')),_0x21ab44=this[_0x4fe5('0x126')](_0x404a47);if(this[_0x4fe5('0x63')]&&this['_adapter'][_0x4fe5('0xe7')]){if(_0x21ab44[_0x4fe5('0x115')]){const _0x431b1e=_0x299482['add'](_0x1803e5(this[_0x4fe5('0x73')]['locale'],_0x4fe5('0xb2')));this[_0x4fe5('0x63')]['updateSuggestion'](_0x404a47,_0x5ea625)[_0x4fe5('0x3e')](()=>{_0x299482[_0x4fe5('0x52')](_0x431b1e);});}else _0x21ab44['on'](_0x4fe5('0x4d'),()=>{this[_0x4fe5('0xa8')](_0x404a47,_0x5ea625);});}}[_0x4fe5('0x105')](_0x373355){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x20fda3('track-changes-adapter-missing-getsuggestion',this);return this[_0x4fe5('0x63')][_0x4fe5('0x126')](_0x373355);}[_0x4fe5('0x1c')](_0x322d82){const {id:_0x4a8c92,type:_0x25e17c,subType:_0x27b04d,authorId:_0x59d4d2}=this[_0x4fe5('0x8')](_0x322d82),_0x564dce=this[_0x4fe5('0x2c')][_0x4fe5('0xaf')](_0x4a8c92)||this['_createSuggestion'](_0x25e17c,_0x27b04d,_0x4a8c92,_0x59d4d2,{});switch(this[_0x4fe5('0xb3')](_0x564dce,_0x25e17c,_0x27b04d,_0x59d4d2),this[_0x4fe5('0x3')][_0x4fe5('0xaf')](_0x564dce)){case'notReady':this[_0x4fe5('0x105')](_0x4a8c92)[_0x4fe5('0x3e')](_0x3fd66a=>{let _0x533abc=Promise[_0x4fe5('0x10')]();_0x3fd66a[_0x4fe5('0xd5')]&&(_0x533abc=this['_commentsRepository'][_0x4fe5('0x2d')]({'channelId':this['editor'][_0x4fe5('0xaa')][_0x4fe5('0xaf')](_0x4fe5('0xa6')),'threadId':_0x4a8c92})),_0x533abc[_0x4fe5('0x3e')](()=>{this['addSuggestionData'](_0x3fd66a)[_0x4fe5('0x115')]=!0x0;});}),this[_0x4fe5('0x3')][_0x4fe5('0xee')](_0x564dce,_0x4fe5('0xdc'));break;case _0x4fe5('0x49'):this[_0x4fe5('0xa8')](_0x4a8c92,{'state':_0x4fe5('0x5d')});case _0x4fe5('0x9a'):this[_0x4fe5('0x3')][_0x4fe5('0xee')](_0x564dce,_0x4fe5('0xc8')),this['fire'](_0x4fe5('0x122'),_0x564dce);break;case _0x4fe5('0xc8'):this[_0x4fe5('0xf3')]('suggestionChanged',_0x564dce);}return _0x564dce[_0x4fe5('0xe8')](_0x322d82),_0x564dce;}[_0x4fe5('0x16')](_0x181f10){const _0x1df0f9=Array['from'](_0x181f10)[_0x4fe5('0xd4')](_0x1b9672=>!_0x1b9672[_0x4fe5('0x4e')]),_0x5d88e3=this['getSuggestions']({'skipNotAttached':!0x0})[_0x4fe5('0xd4')](_0x4d5efb=>!_0x4d5efb[_0x4fe5('0x4e')]),_0x17c370=_0x5d88e3[_0x4fe5('0xd4')](_0x1639b5=>!_0x181f10[_0x4fe5('0xad')](_0x1639b5)),_0x7aff5c=new Map(_0x5d88e3[_0x4fe5('0xf0')](_0x2437cf=>[_0x2437cf,this['_suggestionFactory'][_0x4fe5('0x7c')](_0x2437cf[_0x4fe5('0x113')],_0x2437cf['subType'],_0x4fe5('0x1b'))])),_0x4abc3e=new Map(_0x5d88e3[_0x4fe5('0xf0')](_0x1a661c=>[_0x1a661c,_0x1a661c[_0x4fe5('0x8a')]()])),_0x15a16b=new Set(),_0x4fb113=new Set();for(let _0x41b1ff=0x0;_0x41b1ff<_0x1df0f9[_0x4fe5('0xdd')];_0x41b1ff++)_0x11759c(_0x1df0f9[_0x41b1ff],_0x1df0f9,_0x41b1ff+0x1);for(let _0x5756a7=0x0;_0x5756a7<_0x1df0f9['length'];_0x5756a7++)_0x11759c(_0x1df0f9[_0x5756a7],_0x17c370,0x0);for(let _0x402a9d=0x0;_0x402a9d<_0x1df0f9[_0x4fe5('0xdd')];_0x402a9d++){const _0x266158=_0x1df0f9[_0x402a9d];!_0x4fb113[_0x4fe5('0xad')](_0x266158)&&_0x266158[_0x4fe5('0x72')]&&(_0x266158[_0x4fe5('0x72')][_0x4fe5('0x9c')]===_0x266158&&(_0x266158[_0x4fe5('0x72')][_0x4fe5('0x9c')]=null),_0x266158[_0x4fe5('0x72')]=null),!_0x15a16b[_0x4fe5('0xad')](_0x266158)&&_0x266158[_0x4fe5('0x9c')]&&(_0x266158['next'][_0x4fe5('0x72')]===_0x266158&&(_0x266158[_0x4fe5('0x9c')][_0x4fe5('0x72')]=null),_0x266158[_0x4fe5('0x9c')]=null);}function _0x11759c(_0x22e103,_0xd0945e,_0x1f5b32){for(let _0x1932ba=_0x1f5b32;_0x1932ba<_0xd0945e[_0x4fe5('0xdd')];_0x1932ba++){const _0x4a6895=_0x19d8af(_0x22e103,_0xd0945e[_0x1932ba]);_0x4a6895&&(_0x4a6895[0x0]['next']=_0x4a6895[0x1],_0x4a6895[0x1][_0x4fe5('0x72')]=_0x4a6895[0x0],_0x15a16b['add'](_0x4a6895[0x0]),_0x4fb113['add'](_0x4a6895[0x1]));}}function _0x19d8af(_0x286091,_0x2c9ff8){if(_0x286091[_0x4fe5('0x106')]['id']!==_0x2c9ff8[_0x4fe5('0x106')]['id'])return null;const _0x58f4da=_0x7aff5c[_0x4fe5('0xaf')](_0x286091)(_0x286091,_0x2c9ff8,_0x4abc3e[_0x4fe5('0xaf')](_0x286091),_0x4abc3e[_0x4fe5('0xaf')](_0x2c9ff8));if(!_0x58f4da)return null;return _0x7aff5c[_0x4fe5('0xaf')](_0x2c9ff8)(_0x286091,_0x2c9ff8,_0x4abc3e['get'](_0x286091),_0x4abc3e['get'](_0x2c9ff8))?_0x58f4da[0x1][_0x4fe5('0xd7')]&&_0x58f4da[0x1][_0x4fe5('0xd7')][_0x4fe5('0xdd')]?null:_0x58f4da:null;}}['_joinWithAdjacentSuggestions'](_0x420091){const _0x2ce46c=Array[_0x4fe5('0x3f')](_0x420091),_0x551b10=this[_0x4fe5('0x11d')]({'skipNotAttached':!0x0}),_0x4c100e=_0x551b10[_0x4fe5('0xd4')](_0x14db6b=>!_0x420091[_0x4fe5('0xad')](_0x14db6b)),_0xa3cb7a=new Map(_0x2ce46c[_0x4fe5('0xf0')](_0x575f7c=>[_0x575f7c,this['_suggestionFactory'][_0x4fe5('0x7c')](_0x575f7c[_0x4fe5('0x113')],_0x575f7c[_0x4fe5('0x6a')],_0x4fe5('0x98'))])),_0x4dd913=new Map(_0x551b10[_0x4fe5('0xf0')](_0x54d14b=>[_0x54d14b,_0x54d14b['getRanges']()]));for(let _0x5adac9=0x0;_0x5adac9<_0x2ce46c[_0x4fe5('0xdd')];_0x5adac9++){if(_0x4ca00c(this,_0x2ce46c[_0x5adac9],_0x2ce46c,_0x5adac9+0x1))return!0x0;}for(let _0x4b15ce=0x0;_0x4b15ce<_0x2ce46c[_0x4fe5('0xdd')];_0x4b15ce++){if(_0x4ca00c(this,_0x2ce46c[_0x4b15ce],_0x4c100e,0x0))return!0x0;}return!0x1;function _0x4ca00c(_0x3eec41,_0x1d88bc,_0x9fc989,_0x49e79a){for(let _0x176949=_0x49e79a;_0x176949<_0x9fc989[_0x4fe5('0xdd')];_0x176949++){const _0x79ebe8=_0x9fc989[_0x176949];if(_0x79ebe8[_0x4fe5('0x113')]!==_0x1d88bc['type']||_0x79ebe8[_0x4fe5('0x106')]['id']!==_0x1d88bc[_0x4fe5('0x106')]['id']||_0x79ebe8[_0x4fe5('0x6a')]!==_0x1d88bc[_0x4fe5('0x6a')])continue;const _0x2e2aae=_0xa3cb7a['get'](_0x1d88bc),_0x2d6105=_0x4dd913[_0x4fe5('0xaf')](_0x1d88bc),_0x4b4527=_0x4dd913[_0x4fe5('0xaf')](_0x79ebe8),_0x1a0b82=_0x1d88bc[_0x4fe5('0xd7')]&&_0x1d88bc[_0x4fe5('0xd7')]['length'],_0x5c2f6f=_0x79ebe8[_0x4fe5('0xd7')]&&_0x79ebe8[_0x4fe5('0xd7')][_0x4fe5('0xdd')];if(!_0x1a0b82&&_0x2e2aae(_0x4b4527,_0x2d6105))return _0x3eec41[_0x4fe5('0x10a')](_0x79ebe8,_0x1d88bc),_0x4dd913['delete'](_0x1d88bc),!0x0;if(!_0x5c2f6f&&_0x2e2aae(_0x2d6105,_0x4b4527))return _0x3eec41[_0x4fe5('0x10a')](_0x1d88bc,_0x79ebe8),_0x4dd913['delete'](_0x79ebe8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x353fc0,_0x295a58){if(_0x353fc0[_0x4fe5('0x4e')])for(const _0x2f2048 of _0x295a58[_0x4fe5('0xe3')]())_0x353fc0[_0x4fe5('0x26')](_0x2f2048);else{const _0x1ce701=_0x295a58[_0x4fe5('0x8a')]()['end'];this['_setSuggestionRange'](_0x353fc0,this[_0x4fe5('0xcc')]['createRange'](_0x353fc0['getFirstRange']()[_0x4fe5('0xa4')],_0x1ce701));}_0x295a58[_0x4fe5('0xfd')]();}}class Dt{constructor(_0x84ce86){this[_0x4fe5('0x10c')]=_0x84ce86,this[_0x4fe5('0xcc')]=_0x84ce86[_0x4fe5('0x71')],this[_0x4fe5('0x124')]=new Map(),this[_0x4fe5('0x7e')]=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xecd0ec,_0x5abb83,_0x4bb0e5,_0x292f39,_0x508134,_0x3790cc){return new _0x5ae5fb(this[_0x4fe5('0xcc')],{'type':_0xecd0ec,'subType':_0x5abb83,'id':_0x4bb0e5,'author':_0x292f39,'creator':_0x292f39,'attributes':_0x508134,'onAttributesChange':_0x3790cc,'onAccept':(..._0x3f5a0f)=>this[_0x4fe5('0x7c')](_0xecd0ec,_0x5abb83,_0x4fe5('0x10e'))(..._0x3f5a0f),'onDiscard':(..._0x2c2373)=>this[_0x4fe5('0x7c')](_0xecd0ec,_0x5abb83,_0x4fe5('0x22'))(..._0x2c2373)});}[_0x4fe5('0xe9')](_0x4f73ef,_0x31a3ab,_0x58ea6f,_0x5a840b){const _0x19a7a6=_0x4f73ef+':'+_0x31a3ab+':'+_0x58ea6f;this[_0x4fe5('0x124')]['set'](_0x19a7a6,_0x5a840b);}['getSuggestionCallback'](_0x3a5064,_0x224767,_0x4dfe12){const _0x52407d=_0x3a5064+':'+_0x224767+':'+_0x4dfe12;return this[_0x4fe5('0x124')][_0x4fe5('0xaf')](_0x52407d)||this[_0x4fe5('0x7e')][_0x4fe5('0xaf')](_0x3a5064+':'+_0x4dfe12);}[_0x4fe5('0xa7')](){const _0x39127a=()=>{},_0x2ae225=_0x3bd7b5=>{_0x3bd7b5[_0x4fe5('0xa2')]((_0x54a47e,_0x2a0e31)=>_0x54a47e[_0x4fe5('0xa4')]['isBefore'](_0x2a0e31[_0x4fe5('0xa4')])?0x1:-0x1),this[_0x4fe5('0xcc')]['change'](_0x4b1ce5=>{for(const _0x1bb19a of _0x3bd7b5){let _0x3bf5c5;_0x3bf5c5=_0x1bb19a['end'][_0x4fe5('0xc7')]&&_0x1bb19a['end'][_0x4fe5('0xac')]==_0x1bb19a[_0x4fe5('0xa4')][_0x4fe5('0x32')]?_0x4b1ce5['createSelection'](_0x1bb19a[_0x4fe5('0xa4')][_0x4fe5('0x32')],'on'):_0x4b1ce5[_0x4fe5('0xe0')](_0x1bb19a),this['_model'][_0x4fe5('0x10d')](_0x3bf5c5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1b1307=(_0x10cec1,_0x4d82d7)=>{this[_0x4fe5('0xcc')]['change'](_0x422523=>{const {commandName:_0x11c563,commandParams:_0x212e4e=[]}=_0x4d82d7,_0x4c6dee=_0x10cec1[_0x4fe5('0xf0')](_0x37c347=>(_t(_0x37c347)&&(_0x37c347=this[_0x4fe5('0xcc')][_0x4fe5('0x109')](_0x37c347['end'])),_0x37c347))['filter'](_0x4d9ee2=>_0x4fe5('0x133')!==_0x4d9ee2[_0x4fe5('0x57')]['rootName']);if(_0x4c6dee['length']<0x1)return;const _0x3c6b5f=Array[_0x4fe5('0x3f')](this['_model'][_0x4fe5('0x12e')][_0x4fe5('0xe2')][_0x4fe5('0xe3')]())['map'](_0x370fb9=>_0x4d5536[_0x4fe5('0x76')](_0x370fb9));_0x422523[_0x4fe5('0xc9')](_0x4c6dee);for(const _0x238a8e of this[_0x4fe5('0x10c')][_0x4fe5('0xe')][_0x4fe5('0xe')]())_0x238a8e[_0x4fe5('0x55')]();_0x212e4e[_0x4fe5('0x67')]({'forceDefaultExecution':!0x0}),this[_0x4fe5('0x10c')][_0x4fe5('0x135')](_0x11c563,..._0x212e4e);const _0x205bc6=_0x3c6b5f[_0x4fe5('0xd4')](_0x536d27=>_0x4fe5('0x133')!=_0x536d27[_0x4fe5('0x57')][_0x4fe5('0xbc')]);_0x205bc6[_0x4fe5('0xdd')]>0x0&&_0x422523[_0x4fe5('0xc9')](_0x205bc6);for(const _0x1bca4d of _0x3c6b5f)_0x1bca4d[_0x4fe5('0xae')]();});},_0x13fe4d=(_0xd47766,_0x2964c6)=>0x1==_0xd47766[_0x4fe5('0xdd')]&&0x1==_0x2964c6['length']&&_0xd47766[0x0][_0x4fe5('0xc6')][_0x4fe5('0x136')](_0x2964c6[0x0][_0x4fe5('0xa4')]),_0x41ab9a=(_0x580d70,_0x3c5b53,_0x47a6f6,_0x50ad4a)=>xt(_0x580d70,_0x3c5b53,_0x47a6f6,_0x50ad4a,this[_0x4fe5('0xcc')])?[_0x580d70,_0x3c5b53]:xt(_0x3c5b53,_0x580d70,_0x50ad4a,_0x47a6f6,this[_0x4fe5('0xcc')])?[_0x3c5b53,_0x580d70]:null;this['_defaultCallbacks'][_0x4fe5('0xee')]('insertion:accept',_0x39127a),this[_0x4fe5('0x7e')][_0x4fe5('0xee')]('insertion:discard',_0x2ae225),this['_defaultCallbacks'][_0x4fe5('0xee')](_0x4fe5('0xec'),_0x13fe4d),this[_0x4fe5('0x7e')][_0x4fe5('0xee')](_0x4fe5('0x2e'),_0x41ab9a),this[_0x4fe5('0x7e')]['set'](_0x4fe5('0x8d'),_0x2ae225),this['_defaultCallbacks']['set'](_0x4fe5('0x70'),_0x39127a),this['_defaultCallbacks'][_0x4fe5('0xee')]('deletion:join',_0x13fe4d),this[_0x4fe5('0x7e')]['set'](_0x4fe5('0xd2'),_0x41ab9a),this[_0x4fe5('0x7e')][_0x4fe5('0xee')](_0x4fe5('0x58'),_0x1b1307),this['_defaultCallbacks'][_0x4fe5('0xee')](_0x4fe5('0x5e'),_0x39127a),this[_0x4fe5('0x7e')][_0x4fe5('0xee')]('formatInline:join',_0x13fe4d),this['_defaultCallbacks'][_0x4fe5('0xee')](_0x4fe5('0xd3'),_0x39127a),this[_0x4fe5('0x7e')]['set']('formatBlock:accept',_0x1b1307),this[_0x4fe5('0x7e')][_0x4fe5('0xee')](_0x4fe5('0x34'),_0x39127a),this['_defaultCallbacks'][_0x4fe5('0xee')](_0x4fe5('0x69'),_0x13fe4d),this[_0x4fe5('0x7e')][_0x4fe5('0xee')](_0x4fe5('0xd1'),_0x39127a);}}function Bt(_0x559f98,_0x576c95,_0x15c9ef){for(const _0x32d4cd of _0x576c95[_0x4fe5('0xac')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x32d4cd[_0x4fe5('0x57')]==_0x32d4cd)return!0x1;if(!_0x15c9ef['containsItem'](_0x32d4cd))return!0x1;if(_0x559f98['isObject'](_0x32d4cd)||_0x559f98[_0x4fe5('0xf6')](_0x32d4cd))return!0x0;}return!0x1;}function _t(_0x47e88f){return _0x47e88f['end'][_0x4fe5('0xac')]==_0x47e88f[_0x4fe5('0xa4')][_0x4fe5('0x32')]&&_0x47e88f[_0x4fe5('0xc6')]['isAtStart'];}function Mt(_0x26d8d0,_0x18eb60,_0x1dfa9b,_0x3281f4){const _0x73b333=_0x4d0240=>!_0x4d0240[_0x4fe5('0x59')]['is'](_0x4fe5('0xc3'))&&!_0x3281f4['isObject'](_0x4d0240[_0x4fe5('0x59')]),_0x2a1bdd=_0x26d8d0[_0x4fe5('0xa4')][_0x4fe5('0xab')](_0x73b333),_0x150468=_0x26d8d0['end'][_0x4fe5('0xab')](_0x73b333,{'direction':'backward'});return(!_0x26d8d0[_0x4fe5('0xa4')][_0x4fe5('0x136')](_0x2a1bdd)||!_0x26d8d0[_0x4fe5('0xc6')][_0x4fe5('0x136')](_0x150468))&&(_0x2a1bdd[_0x4fe5('0xdf')](_0x150468)?_0x1dfa9b[_0x4fe5('0x116')](_0x18eb60,{'range':_0x1dfa9b[_0x4fe5('0x109')](_0x2a1bdd,_0x150468)}):_0x1dfa9b[_0x4fe5('0x132')](_0x18eb60),!0x0);}function $t(_0x1fbd26){return _0x1a08a4(_0x1fbd26);}function Nt(_0x28becd){const _0x5b8701=_0x28becd[_0x4fe5('0xa4')][_0x4fe5('0x32')];return _0x5b8701&&_0x5b8701['is']('element');}function Rt(_0x5d460b,_0x1796c9){const _0xa9f6ef=_0x1796c9[_0x4fe5('0xbb')][_0x4fe5('0x137')](_0x5d460b)||_0x1796c9[_0x4fe5('0xbb')]['isSelectable'](_0x5d460b);return _0x1796c9[_0x4fe5('0x109')](_0x1796c9[_0x4fe5('0xce')](_0x5d460b,'before'),_0xa9f6ef?_0x1796c9[_0x4fe5('0xf')](_0x5d460b):_0x1796c9[_0x4fe5('0xce')](_0x5d460b,_0x4fe5('0xc6')));}function xt(_0x502e75,_0x9cacfb,_0x2d02c8,_0x44e90a,_0x58d4fe){if(_0x2d02c8[_0x4fe5('0xc6')][_0x4fe5('0x136')](_0x44e90a[_0x4fe5('0xa4')]))return!0x0;if(_0x502e75[_0x4fe5('0x113')]!=_0x9cacfb[_0x4fe5('0x113')])return!0x1;if(!_0x2d02c8[_0x4fe5('0xc6')][_0x4fe5('0xb5')](_0x44e90a[_0x4fe5('0xa4')]))return!0x1;const _0x33141a=_0x58d4fe[_0x4fe5('0x109')](_0x2d02c8[_0x4fe5('0xc6')],_0x44e90a[_0x4fe5('0xa4')])[_0x4fe5('0xbe')]();for(const _0x8fdb4c of _0x33141a)if([_0x4fe5('0x38'),'elementEnd'][_0x4fe5('0xeb')](_0x8fdb4c[_0x4fe5('0x113')])&&_0x58d4fe[_0x4fe5('0xbb')][_0x4fe5('0xf6')](_0x8fdb4c[_0x4fe5('0x59')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x36f4=['has','EditorAnnotations','registerAnnotation','CommentsUI','isOn','_initializeController','commandName','getSuggestion','isMultiRange','pluginName','requires','suggestion-','value','_suggestionToController','editor','stopListening','_updateController','from','isDirty','button','remove','getByInnerView','descriptionParts','isInContent','innerView','comments.editorConfig','size','buttonView','change:activeAnnotations','Discard\x20all\x20suggestions','CommentsRepository','actionView','CommentView','discardButton','getAllAdjacentSuggestions','editing','TrackChangesEditing','destroy','arrowView','delete','Track\x20changes','length','_destroyController','_descriptionFactory','define','comments.maxCommentsWhenCollapsed','createCommentThreadController','listenTo','commentThread','activeMarkers','addSourceCollector','change:previous','_viewToController','Accept\x20all\x20selected\x20suggestions','suggestionLoaded','comments.maxThreadTotalWeight','getDescriptions','addComment','_refreshActiveMarkers','separator','createAnnotation','isEnabled','view','Annotations','add','_handleSuggestionControllerDelayed','_createUIButton','activeAnnotations','TrackChangesUI','get','set','hasSuggestion','_handleControllerBuffer','getJoined','reduce','head','discardSelectedSuggestions','_disableComments','refreshSelectedViews','SuggestionThreadView','previous','map','unbind','init','suggestionChanged','locale','execute','keys','focus','switchbutton','values','suggestionUnloaded','getFirstRange','source','_annotationViews','bind','type','model','acceptSelectedSuggestions','trackChanges.SuggestionThreadView','commands','trackChanges','plugins','createAnnotationView','Accept\x20all\x20suggestions','push','toMany','getMarkers'];(function(_0x313d64,_0x36f45f){const _0x3f751f=function(_0xac24ac){while(--_0xac24ac){_0x313d64['push'](_0x313d64['shift']());}};_0x3f751f(++_0x36f45f);}(_0x36f4,0x133));const _0x3f75=function(_0x313d64,_0x36f45f){_0x313d64=_0x313d64-0x0;let _0x3f751f=_0x36f4[_0x313d64];return _0x3f751f;};import{Plugin as _0x22ce4c}from'ckeditor5/src/core';import{Collection as _0x3b1209}from'ckeditor5/src/utils';import{Model as _0xbc0774,SplitButtonView as _0x4181ce,createDropdown as _0xf6037a,addListToDropdown as _0x29c764}from'ckeditor5/src/ui';import{Users as _0xb86ca7,getDateTimeFormatter as _0x53a538,getAllMarkersDomElementsSorted as _0x53d969}from'ckeditor5-collaboration/src/collaboration-core';import _0x45e6f8 from'./trackchangesediting';import _0x2f353c from'./ui/suggestioncontroller';import _0x12a1da from'./ui/view/suggestionthreadview';import{getTranslation as _0xee3a58}from'./utils/common-translations';import _0x4a014a from'../theme/icons/track-changes.svg';export default class d extends _0x22ce4c{static get[_0x3f75('0x1b')](){return[_0x45e6f8,_0xb86ca7,_0x3f75('0x2f'),_0x3f75('0x50'),_0x3f75('0x12')];}static get[_0x3f75('0x1a')](){return _0x3f75('0x55');}constructor(_0x4126fa){super(_0x4126fa),this[_0x3f75('0x1e')]=new Map(),this[_0x3f75('0x45')]=new Map(),this[_0x3f75('0x3')]=new Map(),this[_0x3f75('0x59')]=new Map();const _0x588324=this['editor']['config'];_0x588324[_0x3f75('0x3d')](_0x3f75('0x8'),_0x12a1da),_0x588324[_0x3f75('0x3d')]('trackChanges.disableComments',!0x1),this[_0x3f75('0x5e')]=_0x588324[_0x3f75('0x56')]('trackChanges.disableComments');}[_0x3f75('0x52')](_0x741916,_0x4d082f){0x0===this[_0x3f75('0x59')][_0x3f75('0x2b')]&&setTimeout(()=>{for(const [_0x414b06,_0x4063eb]of this['_handleControllerBuffer']){const _0x1eb9c5=this[_0x3f75('0x1e')]['has'](_0x414b06);_0x1eb9c5||_0x4063eb?_0x1eb9c5&&_0x4063eb&&this['_destroyController'](_0x414b06):this[_0x3f75('0x16')](_0x414b06);}this[_0x3f75('0x1f')]['plugins'][_0x3f75('0x56')](_0x3f75('0x12'))[_0x3f75('0x5f')](),this['_refreshActiveMarkers'](),this[_0x3f75('0x59')]['clear']();},0xa),this[_0x3f75('0x59')]['set'](_0x741916,_0x4d082f);}[_0x3f75('0x64')](){const _0x49d757=this[_0x3f75('0x1f')],_0x543599=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x35')),_0x2be0a5=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x3d0dc3=_0x49d757[_0x3f75('0xb')][_0x3f75('0x56')]('EditorAnnotations'),_0x56e9f4=_0x49d757['plugins'][_0x3f75('0x56')](_0x3f75('0x2f'));_0x49d757['ui']['componentFactory']['add']('trackChanges',_0x47a898=>this[_0x3f75('0x53')](_0x47a898)),_0x3d0dc3[_0x3f75('0x43')](()=>{const _0x78e04=[];for(const [_0x2f77ba,_0x307b3f]of Array[_0x3f75('0x22')](this[_0x3f75('0x1e')])){const _0x502aa2=_0x2f77ba['getAllAdjacentSuggestions'](),_0x25c7e5=[];for(const _0x5de521 of _0x502aa2){if(!_0x5de521[_0x3f75('0x28')])continue;if(_0x5de521[_0x3f75('0x19')]){_0x25c7e5[_0x3f75('0xe')](..._0x5de521['getRanges']());continue;}const _0x34269e=_0x5de521[_0x3f75('0x1')]();if(_0x25c7e5[_0x3f75('0x3a')]>0x0){const _0x50b19b=_0x25c7e5[0x0][_0x3f75('0x5a')](_0x34269e);if(_0x50b19b){_0x25c7e5[0x0]=_0x50b19b;continue;}}_0x25c7e5[_0x3f75('0xe')](_0x34269e);}_0x78e04[_0x3f75('0xe')]([_0x307b3f[_0x3f75('0x4f')],_0x25c7e5]);}return _0x78e04;}),this[_0x3f75('0x40')](_0x543599,_0x3f75('0x47'),(_0x2615a1,_0x30ea28)=>{this[_0x3f75('0x40')](_0x30ea28,_0x3f75('0x44'),(_0x3eab2a,_0x1971af,_0x4e7247,_0x3fb13a)=>{_0x30ea28[_0x3f75('0x28')]&&(null==_0x4e7247?(this[_0x3f75('0x21')](_0x3fb13a['head']),this[_0x3f75('0x52')](_0x30ea28,!0x1)):(this[_0x3f75('0x21')](_0x4e7247[_0x3f75('0x5c')]),this[_0x3f75('0x52')](_0x30ea28,!0x0)));}),null===_0x30ea28[_0x3f75('0x61')]?this[_0x3f75('0x52')](_0x30ea28,!0x1):this[_0x3f75('0x21')](_0x30ea28[_0x3f75('0x5c')]);}),this[_0x3f75('0x40')](_0x543599,_0x3f75('0x0'),(_0x42e142,_0x195230,_0x150d51)=>{this[_0x3f75('0x20')](_0x195230,'change:previous'),this[_0x3f75('0x59')][_0x3f75('0x38')](_0x195230);const _0x45c745=_0x150d51?_0x150d51[_0x3f75('0x5c')]:_0x195230,_0x1135e0=this['_suggestionToController'][_0x3f75('0x56')](_0x45c745);null!==_0x150d51&&this[_0x3f75('0x21')](_0x45c745),null===_0x150d51&&_0x1135e0&&this[_0x3f75('0x3b')](_0x195230);}),this['listenTo'](_0x543599,_0x3f75('0x65'),(_0xe00b04,_0x50ab48)=>{this[_0x3f75('0x21')](_0x50ab48);}),this['listenTo'](_0x2be0a5,_0x3f75('0x2d'),()=>{this[_0x3f75('0x4b')]();}),this[_0x3f75('0x40')](_0x56e9f4,_0x3f75('0x4a'),(_0xd0f1fd,{threadId:_0x12a07a,isFromAdapter:_0x1f642b})=>{if(_0x1f642b||!_0x543599[_0x3f75('0x58')](_0x12a07a))return;const _0x538ae6=_0x543599[_0x3f75('0x18')](_0x12a07a);this[_0x3f75('0x1e')]['get'](_0x538ae6)[_0x3f75('0x4f')][_0x3f75('0x69')]();},{'priority':'lowest'});}[_0x3f75('0x4b')](){const _0x446d29=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x8fc63=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x35')),_0x43c26c=Array[_0x3f75('0x22')](_0x446d29[_0x3f75('0x54')],_0x1b108e=>_0x1b108e[_0x3f75('0x29')])['filter'](_0xaef36b=>this[_0x3f75('0x45')][_0x3f75('0x11')](_0xaef36b)),_0x260d98=[];for(const _0x1ab33c of _0x43c26c){const _0x58d3e8=this[_0x3f75('0x45')]['get'](_0x1ab33c)[_0x3f75('0x6')]['getAllAdjacentSuggestions']();_0x260d98[_0x3f75('0xe')](..._0x58d3e8[_0x3f75('0x5b')]((_0xbd6249,_0x41254d)=>[..._0xbd6249,..._0x41254d['getMarkerNames']()],[]));}_0x8fc63[_0x3f75('0x42')]=_0x260d98;}['_createUIButton'](_0xdf3e11){const _0x5829bd=_0xf6037a(_0xdf3e11,_0x4181ce),_0x2220cf=this[_0x3f75('0x1f')][_0x3f75('0x9')][_0x3f75('0x56')](_0x3f75('0xa')),_0x456b36=_0xee3a58(_0xdf3e11,_0x3f75('0x39'));_0x5829bd[_0x3f75('0x2c')][_0x3f75('0x57')]({'tooltip':_0x456b36,'label':_0x456b36,'icon':_0x4a014a}),_0x5829bd[_0x3f75('0x2c')][_0x3f75('0x4')](_0x3f75('0x15'))['to'](_0x2220cf,_0x3f75('0x1d')),_0x5829bd[_0x3f75('0x2c')]['on'](_0x3f75('0x67'),()=>{_0x2220cf['execute'](),this[_0x3f75('0x1f')][_0x3f75('0x34')][_0x3f75('0x4f')][_0x3f75('0x69')]();});const _0x46102a=new _0x3b1209(),_0x5508a2=[{'type':_0x3f75('0x6a'),'model':{'withText':!0x0,'label':_0x456b36,'commandName':_0x3f75('0xa')}},{'type':'separator'},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0xd')),'commandName':'acceptAllSuggestions'}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0x46')),'commandName':_0x3f75('0x7')}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,_0x3f75('0x2e')),'commandName':'discardAllSuggestions'}},{'type':_0x3f75('0x24'),'model':{'withText':!0x0,'label':_0xee3a58(_0xdf3e11,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3f75('0x5d')}}];for(const _0x45860c of _0x5508a2){let _0x55f4c1={'type':_0x3f75('0x4c')};if(_0x45860c[_0x3f75('0x6')]){const _0xb49240=new _0xbc0774(_0x45860c['model']),_0xdbe8c1=this[_0x3f75('0x1f')][_0x3f75('0x9')][_0x3f75('0x56')](_0xb49240[_0x3f75('0x17')]);_0xb49240[_0x3f75('0x4')](_0x3f75('0x15'),'isEnabled')['to'](_0xdbe8c1,_0x3f75('0x1d'),_0x3f75('0x4e')),_0x55f4c1={'type':_0x45860c[_0x3f75('0x5')],'model':_0xb49240};}_0x46102a['add'](_0x55f4c1);}_0x29c764(_0x5829bd,_0x46102a);const _0x3058f3=_0x5508a2['filter'](_0xb49c06=>null!=_0xb49c06[_0x3f75('0x6')])[_0x3f75('0x62')](_0x4c13a4=>this[_0x3f75('0x1f')][_0x3f75('0x9')]['get'](_0x4c13a4[_0x3f75('0x6')][_0x3f75('0x17')])),_0x286117=_0x5829bd[_0x3f75('0x2c')];return _0x286117['actionView'][_0x3f75('0x63')](_0x3f75('0x4e')),_0x286117['arrowView'][_0x3f75('0x63')](_0x3f75('0x4e')),_0x286117[_0x3f75('0x30')]['bind']('isEnabled')['to'](_0x2220cf,'isEnabled'),_0x286117[_0x3f75('0x37')][_0x3f75('0x4')](_0x3f75('0x4e'))[_0x3f75('0xf')](_0x3058f3,_0x3f75('0x4e'),(..._0x154681)=>_0x154681['some'](_0x359252=>_0x359252)),_0x5829bd['on']('execute',_0x2267d3=>{this['editor'][_0x3f75('0x67')](_0x2267d3[_0x3f75('0x2')][_0x3f75('0x17')]),this[_0x3f75('0x1f')][_0x3f75('0x34')][_0x3f75('0x4f')][_0x3f75('0x69')]();}),_0x5829bd;}['_initializeController'](_0x21b04a){const _0x2c3732=this[_0x3f75('0x1f')],_0x5e54dd=_0x2c3732['config'],_0x41a6c8=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')]('Annotations'),_0x4bd52a=_0x2c3732['plugins'][_0x3f75('0x56')](_0x3f75('0x2f')),_0x3f4280=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x12')),_0x566809=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0xb86ca7)['me'],_0x1b4d47=_0x5e54dd['get'](_0x3f75('0xa'))[_0x3f75('0x60')],{CommentsListView:_0x5a8c08,CommentThreadInputView:_0x572f5c}=_0x2c3732[_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x14'));let _0x28c234,_0x353264;this[_0x3f75('0x3')][_0x3f75('0x11')](_0x21b04a['id'])?(_0x353264=this[_0x3f75('0x3')][_0x3f75('0x56')](_0x21b04a['id']),_0x28c234=_0x353264['mainView']):(_0x28c234=new _0x1b4d47(_0x2c3732[_0x3f75('0x66')],_0x21b04a,_0x566809,{'disableComments':this['_disableComments'],'editorConfig':_0x5e54dd['get'](_0x3f75('0x2a')),'maxCommentsWhenCollapsed':_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x3e')),'maxThreadTotalWeight':_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x48')),'maxCommentCharsWhenCollapsed':_0x5e54dd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x53a538(_0x5e54dd[_0x3f75('0x56')](_0x3f75('0x66'))),'CommentView':_0x5e54dd['get']('comments')[_0x3f75('0x31')],'CommentsListView':_0x5a8c08,'CommentThreadInputView':_0x572f5c}),_0x28c234['acceptButton']['on'](_0x3f75('0x67'),()=>{_0x2c3732['editing'][_0x3f75('0x4f')]['focus']();}),_0x28c234[_0x3f75('0x32')]['on'](_0x3f75('0x67'),()=>{_0x2c3732[_0x3f75('0x34')]['view'][_0x3f75('0x69')]();}),_0x353264=_0x41a6c8[_0x3f75('0xc')](this[_0x3f75('0x1f')]['locale'],_0x28c234),_0x353264[_0x3f75('0x4')]('isDirty')['to'](_0x28c234,_0x3f75('0x23')),_0x353264[_0x3f75('0x4')](_0x3f75('0x3a'))['to'](_0x28c234),_0x353264['bind'](_0x3f75('0x5'))['to'](_0x28c234,'type',_0xe98f46=>_0x3f75('0x1c')+_0xe98f46),this[_0x3f75('0x3')][_0x3f75('0x57')](_0x21b04a['id'],_0x353264));const _0x4ca5f8=_0x4bd52a[_0x3f75('0x3f')](_0x21b04a[_0x3f75('0x41')],_0x28c234),_0x529ff2=new _0x2f353c(_0x2c3732,_0x21b04a,_0x28c234,_0x4ca5f8),_0x40771c=_0x21b04a[_0x3f75('0x33')]()['filter'](_0x312f75=>_0x312f75[_0x3f75('0x28')]);_0x28c234[_0x3f75('0x27')]=_0x2c3732[_0x3f75('0xb')]['get'](_0x3f75('0x35'))[_0x3f75('0x3c')][_0x3f75('0x49')](_0x40771c),this[_0x3f75('0x1e')][_0x3f75('0x57')](_0x21b04a,_0x529ff2),this[_0x3f75('0x45')][_0x3f75('0x57')](_0x28c234,_0x529ff2);const _0x119c51=_0x41a6c8[_0x3f75('0x4d')]({'view':_0x353264,'target':()=>{const _0x398ce3=[],_0x58462d=_0x21b04a[_0x3f75('0x33')]()['filter'](_0x576716=>_0x576716[_0x3f75('0x28')]);for(const _0x5e7984 of _0x58462d)_0x398ce3[_0x3f75('0xe')](..._0x5e7984[_0x3f75('0x10')]());return _0x53d969(_0x2c3732[_0x3f75('0x34')],_0x398ce3);},'type':()=>_0x3f75('0x1c')+_0x529ff2['view'][_0x3f75('0x5')]});_0x41a6c8[_0x3f75('0x51')](_0x119c51),_0x3f4280[_0x3f75('0x13')](_0x119c51);}['_destroyController'](_0x4cf77e){const _0x448e06=this[_0x3f75('0x1f')][_0x3f75('0xb')][_0x3f75('0x56')](_0x3f75('0x50')),_0x5d81b9=this[_0x3f75('0x1e')][_0x3f75('0x56')](_0x4cf77e),_0x4d7a1d=_0x5d81b9[_0x3f75('0x4f')],_0x56dcb0=_0x448e06[_0x3f75('0x26')](_0x4d7a1d);_0x56dcb0&&_0x448e06[_0x3f75('0x25')](_0x56dcb0),this[_0x3f75('0x1e')]['delete'](_0x4cf77e),this['_viewToController']['delete'](_0x4d7a1d),_0x5d81b9[_0x3f75('0x36')]();}[_0x3f75('0x21')](_0x5ec115){if(!_0x5ec115[_0x3f75('0x28')]||!this[_0x3f75('0x1e')][_0x3f75('0x11')](_0x5ec115))return;const _0x2beba1=this[_0x3f75('0x1f')]['plugins']['get']('TrackChangesEditing'),_0x1f9211=this[_0x3f75('0x1e')][_0x3f75('0x56')](_0x5ec115),_0x1ff358=_0x5ec115[_0x3f75('0x33')]();_0x1f9211[_0x3f75('0x4f')][_0x3f75('0x27')]=_0x2beba1[_0x3f75('0x3c')][_0x3f75('0x49')](_0x1ff358);}[_0x3f75('0x36')](){for(const _0x53bbbd of this[_0x3f75('0x1e')][_0x3f75('0x68')]())this[_0x3f75('0x3b')](_0x53bbbd);for(const _0x1b5636 of this[_0x3f75('0x3')][_0x3f75('0x6b')]())_0x1b5636['mainView']['destroy']();super[_0x3f75('0x36')]();}}
|
|
23
|
+
const _0x4502=['actionView','_viewToController','view','CommentsUI','size','listenTo','value','stopListening','Accept\x20all\x20selected\x20suggestions','_refreshActiveMarkers','refreshSelectedViews','comments','getRanges','commandName','addSourceCollector','trackChanges.SuggestionThreadView','mainView','getMarkerNames','getSuggestion','from','bind','TrackChangesEditing','trackChanges.disableComments','commands','acceptSelectedSuggestions','_suggestionToController','plugins','unbind','model','isDirty','comments.maxCommentCharsWhenCollapsed','discardSelectedSuggestions','getDescriptions','CommentView','arrowView','suggestion-','_destroyController','activeAnnotations','commentThread','_annotationViews','CommentsRepository','change:previous','getAllAdjacentSuggestions','hasSuggestion','change:activeAnnotations','Track\x20changes','editor','trackChanges','descriptionParts','pluginName','_updateController','editing','activeMarkers','set','source','previous','registerAnnotation','clear','isInContent','map','getByInnerView','type','_createUIButton','discardButton','getFirstRange','push','init','_descriptionFactory','length','separator','add','EditorAnnotations','filter','focus','locale','discardAllSuggestions','SuggestionThreadView','buttonView','TrackChangesUI','some','createAnnotation','delete','remove','execute','acceptButton','acceptAllSuggestions','_disableComments','suggestionLoaded','_handleControllerBuffer','has','getMarkers','_handleSuggestionControllerDelayed','head','button','Annotations','Discard\x20all\x20suggestions','createAnnotationView','config','reduce','get','destroy','Discard\x20all\x20selected\x20suggestions','isOn','requires','isEnabled'];(function(_0x255373,_0x4502f7){const _0x32a6a5=function(_0x5344df){while(--_0x5344df){_0x255373['push'](_0x255373['shift']());}};_0x32a6a5(++_0x4502f7);}(_0x4502,0x100));const _0x32a6=function(_0x255373,_0x4502f7){_0x255373=_0x255373-0x0;let _0x32a6a5=_0x4502[_0x255373];return _0x32a6a5;};import{Plugin as _0x13c441}from'ckeditor5/src/core';import{Collection as _0x183a29}from'ckeditor5/src/utils';import{Model as _0x37948f,SplitButtonView as _0x5b0198,createDropdown as _0x4a8cb6,addListToDropdown as _0x16928e}from'ckeditor5/src/ui';import{Users as _0x2c4607,getDateTimeFormatter as _0x16caa2,getAllMarkersDomElementsSorted as _0x5733e2}from'ckeditor5-collaboration/src/collaboration-core';import _0x527497 from'./trackchangesediting';import _0x2467c3 from'./ui/suggestioncontroller';import _0x4e61ed from'./ui/view/suggestionthreadview';import{getTranslation as _0x11ec67}from'./utils/common-translations';import _0x37287c from'../theme/icons/track-changes.svg';export default class d extends _0x13c441{static get[_0x32a6('0x39')](){return[_0x527497,_0x2c4607,'CommentsRepository',_0x32a6('0x30'),_0x32a6('0x19')];}static get[_0x32a6('0x3')](){return _0x32a6('0x20');}constructor(_0x31b728){super(_0x31b728),this[_0x32a6('0x54')]=new Map(),this[_0x32a6('0x3c')]=new Map(),this[_0x32a6('0x62')]=new Map(),this[_0x32a6('0x2a')]=new Map();const _0x92abcc=this[_0x32a6('0x0')]['config'];_0x92abcc['define'](_0x32a6('0x4a'),_0x4e61ed),_0x92abcc['define'](_0x32a6('0x51'),!0x1),this[_0x32a6('0x28')]=_0x92abcc[_0x32a6('0x35')](_0x32a6('0x51'));}['_handleSuggestionControllerDelayed'](_0x15dc2a,_0x3a1522){0x0===this['_handleControllerBuffer'][_0x32a6('0x3f')]&&setTimeout(()=>{for(const [_0x26bd7f,_0x13b8b8]of this[_0x32a6('0x2a')]){const _0x81c740=this[_0x32a6('0x54')][_0x32a6('0x2b')](_0x26bd7f);_0x81c740||_0x13b8b8?_0x81c740&&_0x13b8b8&&this[_0x32a6('0x5f')](_0x26bd7f):this['_initializeController'](_0x26bd7f);}this[_0x32a6('0x0')]['plugins']['get'](_0x32a6('0x19'))[_0x32a6('0x45')](),this[_0x32a6('0x44')](),this[_0x32a6('0x2a')][_0x32a6('0xb')]();},0xa),this[_0x32a6('0x2a')][_0x32a6('0x7')](_0x15dc2a,_0x3a1522);}[_0x32a6('0x14')](){const _0x50774c=this[_0x32a6('0x0')],_0x278bfa=_0x50774c['plugins'][_0x32a6('0x35')]('TrackChangesEditing'),_0x4a00dd=_0x50774c[_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x30')),_0x2c8ceb=_0x50774c[_0x32a6('0x55')][_0x32a6('0x35')]('EditorAnnotations'),_0x4e78ec=_0x50774c[_0x32a6('0x55')]['get'](_0x32a6('0x63'));_0x50774c['ui']['componentFactory'][_0x32a6('0x18')]('trackChanges',_0x331415=>this[_0x32a6('0x10')](_0x331415)),_0x2c8ceb[_0x32a6('0x49')](()=>{const _0x4b50a5=[];for(const [_0x48d725,_0x57c0a3]of Array[_0x32a6('0x4e')](this['_suggestionToController'])){const _0x1d80bc=_0x48d725['getAllAdjacentSuggestions'](),_0x39e7ed=[];for(const _0x155b47 of _0x1d80bc){if(!_0x155b47['isInContent'])continue;if(_0x155b47['isMultiRange']){_0x39e7ed[_0x32a6('0x13')](..._0x155b47[_0x32a6('0x47')]());continue;}const _0x23e92d=_0x155b47[_0x32a6('0x12')]();if(_0x39e7ed[_0x32a6('0x16')]>0x0){const _0x4827c9=_0x39e7ed[0x0]['getJoined'](_0x23e92d);if(_0x4827c9){_0x39e7ed[0x0]=_0x4827c9;continue;}}_0x39e7ed[_0x32a6('0x13')](_0x23e92d);}_0x4b50a5['push']([_0x57c0a3[_0x32a6('0x3d')],_0x39e7ed]);}return _0x4b50a5;}),this[_0x32a6('0x40')](_0x278bfa,_0x32a6('0x29'),(_0x5db185,_0x17cc34)=>{this[_0x32a6('0x40')](_0x17cc34,'change:previous',(_0x30e0d9,_0x4bbdaf,_0x41c727,_0x44c8b4)=>{_0x17cc34[_0x32a6('0xc')]&&(null==_0x41c727?(this[_0x32a6('0x4')](_0x44c8b4[_0x32a6('0x2e')]),this['_handleSuggestionControllerDelayed'](_0x17cc34,!0x1)):(this[_0x32a6('0x4')](_0x41c727[_0x32a6('0x2e')]),this[_0x32a6('0x2d')](_0x17cc34,!0x0)));}),null===_0x17cc34[_0x32a6('0x9')]?this[_0x32a6('0x2d')](_0x17cc34,!0x1):this['_updateController'](_0x17cc34['head']);}),this[_0x32a6('0x40')](_0x278bfa,'suggestionUnloaded',(_0x56bcad,_0x427394,_0x5a09c4)=>{this[_0x32a6('0x42')](_0x427394,_0x32a6('0x64')),this[_0x32a6('0x2a')]['delete'](_0x427394);const _0x5441ea=_0x5a09c4?_0x5a09c4['head']:_0x427394,_0x23ee2f=this[_0x32a6('0x54')]['get'](_0x5441ea);null!==_0x5a09c4&&this['_updateController'](_0x5441ea),null===_0x5a09c4&&_0x23ee2f&&this[_0x32a6('0x5f')](_0x427394);}),this[_0x32a6('0x40')](_0x278bfa,'suggestionChanged',(_0x3d825e,_0x183dfa)=>{this['_updateController'](_0x183dfa);}),this[_0x32a6('0x40')](_0x4a00dd,_0x32a6('0x67'),()=>{this[_0x32a6('0x44')]();}),this[_0x32a6('0x40')](_0x4e78ec,'addComment',(_0x329f5a,{threadId:_0x3e728b,isFromAdapter:_0x30353d})=>{if(_0x30353d||!_0x278bfa[_0x32a6('0x66')](_0x3e728b))return;const _0x2d74b3=_0x278bfa[_0x32a6('0x4d')](_0x3e728b);this[_0x32a6('0x54')][_0x32a6('0x35')](_0x2d74b3)[_0x32a6('0x3d')][_0x32a6('0x1b')]();},{'priority':'lowest'});}[_0x32a6('0x44')](){const _0x30c865=this[_0x32a6('0x0')]['plugins']['get'](_0x32a6('0x30')),_0x37fef9=this['editor'][_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x50')),_0x210528=Array[_0x32a6('0x4e')](_0x30c865[_0x32a6('0x60')],_0x733f41=>_0x733f41['innerView'])[_0x32a6('0x1a')](_0x4488b5=>this[_0x32a6('0x3c')]['has'](_0x4488b5)),_0x510e17=[];for(const _0x5c4419 of _0x210528){const _0xe1115a=this[_0x32a6('0x3c')][_0x32a6('0x35')](_0x5c4419)[_0x32a6('0x57')]['getAllAdjacentSuggestions']();_0x510e17[_0x32a6('0x13')](..._0xe1115a[_0x32a6('0x34')]((_0x24cb4e,_0x3f6921)=>[..._0x24cb4e,..._0x3f6921[_0x32a6('0x4c')]()],[]));}_0x37fef9[_0x32a6('0x6')]=_0x510e17;}[_0x32a6('0x10')](_0x3d30d6){const _0x5c98af=_0x4a8cb6(_0x3d30d6,_0x5b0198),_0x7c4b78=this[_0x32a6('0x0')]['commands']['get'](_0x32a6('0x1')),_0x175542=_0x11ec67(_0x3d30d6,_0x32a6('0x68'));_0x5c98af[_0x32a6('0x1f')]['set']({'tooltip':_0x175542,'label':_0x175542,'icon':_0x37287c}),_0x5c98af[_0x32a6('0x1f')][_0x32a6('0x4f')](_0x32a6('0x38'))['to'](_0x7c4b78,_0x32a6('0x41')),_0x5c98af['buttonView']['on'](_0x32a6('0x25'),()=>{_0x7c4b78['execute'](),this['editor'][_0x32a6('0x5')][_0x32a6('0x3d')][_0x32a6('0x1b')]();});const _0x1465ad=new _0x183a29(),_0x43effe=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x175542,'commandName':_0x32a6('0x1')}},{'type':_0x32a6('0x17')},{'type':_0x32a6('0x2f'),'model':{'withText':!0x0,'label':_0x11ec67(_0x3d30d6,'Accept\x20all\x20suggestions'),'commandName':_0x32a6('0x27')}},{'type':_0x32a6('0x2f'),'model':{'withText':!0x0,'label':_0x11ec67(_0x3d30d6,_0x32a6('0x43')),'commandName':_0x32a6('0x53')}},{'type':_0x32a6('0x2f'),'model':{'withText':!0x0,'label':_0x11ec67(_0x3d30d6,_0x32a6('0x31')),'commandName':_0x32a6('0x1d')}},{'type':_0x32a6('0x2f'),'model':{'withText':!0x0,'label':_0x11ec67(_0x3d30d6,_0x32a6('0x37')),'commandName':_0x32a6('0x5a')}}];for(const _0x537cf8 of _0x43effe){let _0x63ad92={'type':_0x32a6('0x17')};if(_0x537cf8['model']){const _0x100425=new _0x37948f(_0x537cf8[_0x32a6('0x57')]),_0x2dbc75=this['editor'][_0x32a6('0x52')]['get'](_0x100425[_0x32a6('0x48')]);_0x100425[_0x32a6('0x4f')](_0x32a6('0x38'),'isEnabled')['to'](_0x2dbc75,'value',_0x32a6('0x3a')),_0x63ad92={'type':_0x537cf8['type'],'model':_0x100425};}_0x1465ad['add'](_0x63ad92);}_0x16928e(_0x5c98af,_0x1465ad);const _0x49ffcc=_0x43effe[_0x32a6('0x1a')](_0x47332d=>null!=_0x47332d[_0x32a6('0x57')])[_0x32a6('0xd')](_0x2584aa=>this[_0x32a6('0x0')]['commands'][_0x32a6('0x35')](_0x2584aa[_0x32a6('0x57')][_0x32a6('0x48')])),_0x4dae76=_0x5c98af['buttonView'];return _0x4dae76[_0x32a6('0x3b')][_0x32a6('0x56')](_0x32a6('0x3a')),_0x4dae76[_0x32a6('0x5d')][_0x32a6('0x56')]('isEnabled'),_0x4dae76['actionView'][_0x32a6('0x4f')]('isEnabled')['to'](_0x7c4b78,_0x32a6('0x3a')),_0x4dae76[_0x32a6('0x5d')][_0x32a6('0x4f')]('isEnabled')['toMany'](_0x49ffcc,_0x32a6('0x3a'),(..._0x416cf7)=>_0x416cf7[_0x32a6('0x21')](_0x3d7042=>_0x3d7042)),_0x5c98af['on'](_0x32a6('0x25'),_0x4b58ab=>{this[_0x32a6('0x0')][_0x32a6('0x25')](_0x4b58ab[_0x32a6('0x8')]['commandName']),this[_0x32a6('0x0')][_0x32a6('0x5')][_0x32a6('0x3d')][_0x32a6('0x1b')]();}),_0x5c98af;}['_initializeController'](_0x338ab6){const _0x524191=this[_0x32a6('0x0')],_0xf49b10=_0x524191[_0x32a6('0x33')],_0x37126f=_0x524191[_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x30')),_0x4d7005=_0x524191['plugins'][_0x32a6('0x35')]('CommentsRepository'),_0x3156b2=_0x524191[_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x19')),_0x3ce164=_0x524191[_0x32a6('0x55')][_0x32a6('0x35')](_0x2c4607)['me'],_0x48e170=_0xf49b10[_0x32a6('0x35')](_0x32a6('0x1'))[_0x32a6('0x1e')],{CommentsListView:_0x2eab5a,CommentThreadInputView:_0x86a00b}=_0x524191[_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x3e'));let _0x5ad982,_0x2d1151;this['_annotationViews'][_0x32a6('0x2b')](_0x338ab6['id'])?(_0x2d1151=this['_annotationViews'][_0x32a6('0x35')](_0x338ab6['id']),_0x5ad982=_0x2d1151[_0x32a6('0x4b')]):(_0x5ad982=new _0x48e170(_0x524191[_0x32a6('0x1c')],_0x338ab6,_0x3ce164,{'disableComments':this['_disableComments'],'editorConfig':_0xf49b10['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xf49b10[_0x32a6('0x35')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xf49b10[_0x32a6('0x35')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf49b10[_0x32a6('0x35')](_0x32a6('0x59')),'formatDateTime':_0x16caa2(_0xf49b10[_0x32a6('0x35')](_0x32a6('0x1c'))),'CommentView':_0xf49b10['get'](_0x32a6('0x46'))[_0x32a6('0x5c')],'CommentsListView':_0x2eab5a,'CommentThreadInputView':_0x86a00b}),_0x5ad982[_0x32a6('0x26')]['on'](_0x32a6('0x25'),()=>{_0x524191[_0x32a6('0x5')][_0x32a6('0x3d')][_0x32a6('0x1b')]();}),_0x5ad982[_0x32a6('0x11')]['on']('execute',()=>{_0x524191[_0x32a6('0x5')][_0x32a6('0x3d')][_0x32a6('0x1b')]();}),_0x2d1151=_0x37126f[_0x32a6('0x32')](this['editor'][_0x32a6('0x1c')],_0x5ad982),_0x2d1151[_0x32a6('0x4f')]('isDirty')['to'](_0x5ad982,_0x32a6('0x58')),_0x2d1151[_0x32a6('0x4f')]('length')['to'](_0x5ad982),_0x2d1151[_0x32a6('0x4f')](_0x32a6('0xf'))['to'](_0x5ad982,_0x32a6('0xf'),_0x249f9e=>'suggestion-'+_0x249f9e),this[_0x32a6('0x62')]['set'](_0x338ab6['id'],_0x2d1151));const _0x178b10=_0x4d7005['createCommentThreadController'](_0x338ab6[_0x32a6('0x61')],_0x5ad982),_0x424ebb=new _0x2467c3(_0x524191,_0x338ab6,_0x5ad982,_0x178b10),_0xd35b04=_0x338ab6[_0x32a6('0x65')]()['filter'](_0x5906cf=>_0x5906cf[_0x32a6('0xc')]);_0x5ad982['descriptionParts']=_0x524191[_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x50'))[_0x32a6('0x15')]['getDescriptions'](_0xd35b04),this[_0x32a6('0x54')]['set'](_0x338ab6,_0x424ebb),this[_0x32a6('0x3c')][_0x32a6('0x7')](_0x5ad982,_0x424ebb);const _0x518531=_0x37126f[_0x32a6('0x22')]({'view':_0x2d1151,'target':()=>{const _0x3dd843=[],_0x1eb39b=_0x338ab6[_0x32a6('0x65')]()[_0x32a6('0x1a')](_0xf5a886=>_0xf5a886[_0x32a6('0xc')]);for(const _0x4f4ba4 of _0x1eb39b)_0x3dd843[_0x32a6('0x13')](..._0x4f4ba4[_0x32a6('0x2c')]());return _0x5733e2(_0x524191[_0x32a6('0x5')],_0x3dd843);},'type':()=>_0x32a6('0x5e')+_0x424ebb['view'][_0x32a6('0xf')]});_0x37126f['add'](_0x518531),_0x3156b2[_0x32a6('0xa')](_0x518531);}[_0x32a6('0x5f')](_0x5e79e1){const _0x229cd2=this[_0x32a6('0x0')][_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x30')),_0x5d7cf7=this[_0x32a6('0x54')][_0x32a6('0x35')](_0x5e79e1),_0x482841=_0x5d7cf7[_0x32a6('0x3d')],_0x37cbd7=_0x229cd2[_0x32a6('0xe')](_0x482841);_0x37cbd7&&_0x229cd2[_0x32a6('0x24')](_0x37cbd7),this[_0x32a6('0x54')][_0x32a6('0x23')](_0x5e79e1),this['_viewToController']['delete'](_0x482841),_0x5d7cf7[_0x32a6('0x36')]();}[_0x32a6('0x4')](_0x3c7971){if(!_0x3c7971[_0x32a6('0xc')]||!this['_suggestionToController'][_0x32a6('0x2b')](_0x3c7971))return;const _0x9bccb7=this[_0x32a6('0x0')][_0x32a6('0x55')][_0x32a6('0x35')](_0x32a6('0x50')),_0x16cc37=this[_0x32a6('0x54')][_0x32a6('0x35')](_0x3c7971),_0x339d5b=_0x3c7971[_0x32a6('0x65')]();_0x16cc37[_0x32a6('0x3d')][_0x32a6('0x2')]=_0x9bccb7[_0x32a6('0x15')][_0x32a6('0x5b')](_0x339d5b);}[_0x32a6('0x36')](){for(const _0x5e7807 of this[_0x32a6('0x54')]['keys']())this['_destroyController'](_0x5e7807);for(const _0x32e08b of this['_annotationViews']['values']())_0x32e08b[_0x32a6('0x4b')][_0x32a6('0x36')]();super[_0x32a6('0x36')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4725=['execute','destroy','view','_setPendingAction','get','stopListening','acceptSuggestion','_pendingAction','plugins','discardSuggestion','commands','PendingActions','_removePendingAction','canDiscard','bind','_editor','unbind','isDirty','_discardCommand','isEnabled','change:isDirty','canAccept','PENDING_ACTION_SUGGESTION','model','commentThreadController','canEditAt','listenTo','_acceptCommand','getRanges','remove','add','locale'];(function(_0x1f7aa0,_0x4725af){const _0x1fad2a=function(_0x82e83a){while(--_0x82e83a){_0x1f7aa0['push'](_0x1f7aa0['shift']());}};_0x1fad2a(++_0x4725af);}(_0x4725,0xe8));const _0x1fad=function(_0x1f7aa0,_0x4725af){_0x1f7aa0=_0x1f7aa0-0x0;let _0x1fad2a=_0x4725[_0x1f7aa0];return _0x1fad2a;};import{ObservableMixin as _0x5bbbab}from'ckeditor5/src/utils';import{getTranslation as _0x1ff2ab}from'../utils/common-translations';export default class qt extends _0x5bbbab(){constructor(_0x5475c0,_0x2028ac,_0x571a31,_0x4e7aa4){super(),this['model']=_0x2028ac,this['view']=_0x571a31,this[_0x1fad('0x10')]=_0x4e7aa4,this[_0x1fad('0x7')]=_0x5475c0,this['_acceptCommand']=_0x5475c0[_0x1fad('0x2')]['get'](_0x1fad('0x1e')),this[_0x1fad('0xa')]=_0x5475c0[_0x1fad('0x2')][_0x1fad('0x1c')](_0x1fad('0x1')),this[_0x1fad('0x1a')]['bind'](_0x1fad('0xb'))['to'](this[_0x1fad('0x13')],this['_discardCommand'],(_0x21020e,_0x4c9475)=>_0x21020e||_0x4c9475),this[_0x1fad('0x1a')][_0x1fad('0x6')](_0x1fad('0xd'))['to'](this[_0x1fad('0x13')],_0x1fad('0xb'),_0x306761=>_0x306761&&this[_0x1fad('0x7')][_0x1fad('0xf')]['canEditAt'](_0x2028ac['getRanges']())),this[_0x1fad('0x1a')][_0x1fad('0x6')](_0x1fad('0x5'))['to'](this['_discardCommand'],_0x1fad('0xb'),_0x1e2ad1=>_0x1e2ad1&&this['_editor']['model'][_0x1fad('0x11')](_0x2028ac[_0x1fad('0x14')]())),this[_0x1fad('0x1f')]=null,_0x571a31[_0x1fad('0x9')]&&this[_0x1fad('0x1b')](),this[_0x1fad('0x12')](_0x571a31,_0x1fad('0x1e'),()=>this[_0x1fad('0x1e')]()),this[_0x1fad('0x12')](_0x571a31,_0x1fad('0x1'),()=>this[_0x1fad('0x1')]()),this[_0x1fad('0x12')](_0x571a31,_0x1fad('0xc'),()=>{_0x571a31[_0x1fad('0x9')]?this[_0x1fad('0x1b')]():this['_removePendingAction']();});}[_0x1fad('0x1e')](){this[_0x1fad('0x13')][_0x1fad('0x18')](this[_0x1fad('0xf')]['id']);}[_0x1fad('0x1')](){this[_0x1fad('0xa')]['execute'](this[_0x1fad('0xf')]['id']);}[_0x1fad('0x19')](){this[_0x1fad('0x1a')][_0x1fad('0x8')]('isEnabled'),this[_0x1fad('0x1a')][_0x1fad('0x8')](_0x1fad('0xd')),this['view'][_0x1fad('0x8')](_0x1fad('0x5')),this[_0x1fad('0x1d')](),this[_0x1fad('0x10')][_0x1fad('0x19')](),this['_pendingAction']&&this['_removePendingAction']();}[_0x1fad('0x1b')](){const _0x44eb68=_0x1ff2ab(this[_0x1fad('0x7')][_0x1fad('0x17')],_0x1fad('0xe'));this['_pendingAction']=this[_0x1fad('0x7')][_0x1fad('0x0')][_0x1fad('0x1c')](_0x1fad('0x3'))[_0x1fad('0x16')](_0x44eb68);}[_0x1fad('0x4')](){null!==this[_0x1fad('0x1f')]&&this['_editor']['plugins']['get'](_0x1fad('0x3'))[_0x1fad('0x15')](this[_0x1fad('0x1f')]),this['_pendingAction']=null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5722=['length','destroy','submit','authoredAt','descriptionParts','editor','disabledSubmit','canDiscard','updateComment','CommentView','isEnabled','value','isDirty','_createCommentThreadInputView','commentThreadInputView','isActive','fire','cancel','commentThread','_model','set','addComment','delegate','focus','locale','canAccept','bind','commentsListView','isReadOnly','_localUser','showInput','_config','commentInputView','removeComment'];(function(_0x5b3f6a,_0x57227b){const _0x499cb2=function(_0x3eef53){while(--_0x3eef53){_0x5b3f6a['push'](_0x5b3f6a['shift']());}};_0x499cb2(++_0x57227b);}(_0x5722,0x1e3));const _0x499c=function(_0x5b3f6a,_0x57227b){_0x5b3f6a=_0x5b3f6a-0x0;let _0x499cb2=_0x5722[_0x5b3f6a];return _0x499cb2;};import{View as _0x2215c4}from'ckeditor5/src/ui';export default class ii extends _0x2215c4{constructor(_0x5a7c05,_0x4a5f2e,_0x12cbf8,_0x1bc43c){super(_0x5a7c05),this[_0x499c('0x14')]=null,this[_0x499c('0x7')]=null,this['set'](_0x499c('0x8'),!0x1),this[_0x499c('0xd')](_0x499c('0x1e'),_0x4a5f2e[_0x499c('0x1e')]),this[_0x499c('0x13')]('authoredAt')['to'](_0x4a5f2e),this[_0x499c('0xd')](_0x499c('0x1f'),[]),this[_0x499c('0xd')](_0x499c('0x5'),!0x1),this[_0x499c('0xd')](_0x499c('0x3'),!0x1),this[_0x499c('0xd')](_0x499c('0x12'),!0x1),this[_0x499c('0xd')](_0x499c('0x0'),!0x1),this['_model']=_0x4a5f2e,this[_0x499c('0x16')]=_0x12cbf8,this[_0x499c('0x18')]=_0x1bc43c,_0x1bc43c['disableComments']?this[_0x499c('0xd')](_0x499c('0x1b'),0x1):this['_createCommentViews']();}[_0x499c('0x10')](){this['element']['focus']();}['destroy'](){this[_0x499c('0x14')]&&this['commentsListView'][_0x499c('0x1c')](),this['commentThreadInputView']&&this[_0x499c('0x7')][_0x499c('0x1c')](),super[_0x499c('0x1c')]();}['_createCommentViews'](){const {CommentsListView:_0x5f2c0d}=this[_0x499c('0x18')];this[_0x499c('0x14')]=new _0x5f2c0d(this[_0x499c('0x11')],this[_0x499c('0xc')][_0x499c('0xb')],Object['assign']({'CommentView':this[_0x499c('0x18')][_0x499c('0x2')]},this[_0x499c('0x18')])),this[_0x499c('0x14')]['delegate'](_0x499c('0x1a'))['to'](this),this['commentsListView'][_0x499c('0xf')](_0x499c('0x1'))['to'](this),this[_0x499c('0x14')][_0x499c('0x13')](_0x499c('0x8'))['to'](this),this[_0x499c('0xd')](_0x499c('0x1b'),this['commentsListView'][_0x499c('0x1b')]+0x1),this[_0x499c('0x13')](_0x499c('0x1b'))['to'](this[_0x499c('0x14')],_0x499c('0x1b'),_0x2f440c=>_0x2f440c+0x1),this[_0x499c('0x7')]=this[_0x499c('0x6')](),this['on']('removeComment',()=>this[_0x499c('0x10')]()),this['bind'](_0x499c('0x5'))['to'](this[_0x499c('0x14')],'hasDirtyComment',this[_0x499c('0x7')][_0x499c('0x19')],_0x499c('0x4'),(_0x1c0ebf,_0x3e4869)=>_0x1c0ebf||!!_0x3e4869);}[_0x499c('0x6')](){const {CommentThreadInputView:_0x5b8055}=this[_0x499c('0x18')],_0x595926=new _0x5b8055(this[_0x499c('0x11')],this[_0x499c('0x16')],this[_0x499c('0x18')]['editorConfig']),_0x1ef65e=_0x595926[_0x499c('0x19')];return _0x595926[_0x499c('0x13')](_0x499c('0x17'))['to'](this,'isActive',this['_model'][_0x499c('0xb')],_0x499c('0x15'),_0x1ef65e,'value',(_0x287c8f,_0x267ea8,_0x5910d3)=>!!_0x5910d3||_0x287c8f&&!_0x267ea8),_0x1ef65e['on'](_0x499c('0x1d'),(_0x56ab12,_0x300ca3)=>{this[_0x499c('0x9')](_0x499c('0xe'),_0x300ca3),_0x1ef65e[_0x499c('0x20')]['setData']('');}),_0x1ef65e['on'](_0x499c('0xa'),()=>this[_0x499c('0x10')]()),_0x1ef65e['bind'](_0x499c('0x21'))['to'](this[_0x499c('0xc')]['commentThread'],_0x499c('0x15')),_0x595926;}}
|