@ckeditor/ckeditor5-track-changes 35.2.1 → 35.3.1
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/CHANGELOG.md +1 -1
- package/README.md +1 -1
- 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 +4 -1
- package/lang/translations/ar.po +12 -0
- package/lang/translations/az.po +12 -0
- package/lang/translations/bg.po +12 -0
- package/lang/translations/bn.po +12 -0
- package/lang/translations/ca.po +12 -0
- package/lang/translations/cs.po +12 -0
- package/lang/translations/da.po +12 -0
- package/lang/translations/de.po +12 -0
- package/lang/translations/el.po +12 -0
- package/lang/translations/en-au.po +12 -0
- package/lang/translations/en.po +12 -0
- package/lang/translations/es.po +12 -0
- package/lang/translations/et.po +12 -0
- package/lang/translations/fi.po +12 -0
- package/lang/translations/fr.po +12 -0
- package/lang/translations/gl.po +12 -0
- package/lang/translations/he.po +12 -0
- package/lang/translations/hi.po +12 -0
- package/lang/translations/hr.po +12 -0
- package/lang/translations/hu.po +12 -0
- package/lang/translations/id.po +12 -0
- package/lang/translations/it.po +12 -0
- package/lang/translations/ja.po +12 -0
- package/lang/translations/ko.po +12 -0
- package/lang/translations/lt.po +12 -0
- package/lang/translations/lv.po +12 -0
- package/lang/translations/ms.po +12 -0
- package/lang/translations/nl.po +12 -0
- package/lang/translations/no.po +12 -0
- package/lang/translations/pl.po +12 -0
- package/lang/translations/pt-br.po +12 -0
- package/lang/translations/pt.po +12 -0
- package/lang/translations/ro.po +12 -0
- package/lang/translations/ru.po +12 -0
- package/lang/translations/sk.po +12 -0
- package/lang/translations/sr-latn.po +12 -0
- package/lang/translations/sr.po +12 -0
- package/lang/translations/sv.po +12 -0
- package/lang/translations/th.po +12 -0
- package/lang/translations/tk.po +12 -0
- package/lang/translations/tr.po +12 -0
- package/lang/translations/tt.po +12 -0
- package/lang/translations/uk.po +12 -0
- package/lang/translations/ur.po +12 -0
- package/lang/translations/vi.po +12 -0
- package/lang/translations/zh-cn.po +12 -0
- package/lang/translations/zh.po +12 -0
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/{utils/sortsuggestions.js → commands/executeonallsuggestionscommand.js} +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +23 -0
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +23 -0
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/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/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/{utils/normalizedescription.js → integrations/tablecaption.js} +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +23 -0
- package/src/commands/acceptallsuggestionscommand.js +0 -23
- package/src/commands/acceptselectedsuggestionscommand.js +0 -23
- package/src/commands/discardallsuggestionscommand.js +0 -23
- package/src/commands/discardselectedsuggestionscommand.js +0 -23
- package/src/utils/getrangesofblockgroups.js +0 -23
- package/src/utils/getselectedsuggestions.js +0 -23
- package/src/utils/hashobject.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1476=['_getExternalAuthor','start','_cutOutSuggestionMarker','_addThreadToSuggestion','getWalker','move','_defaultCallbacks','resolve','getLastMatchingPosition','formatBlock:chain','track-changes-command-not-found','insertion:discard','for','from','addMarker','_joinSuggestions','addHighlight','_adapter','showSuggestionHighlights','splice','conversion','addClass','mapper','setTo','markMultiRangeInsertion','element','suggestion','formatBlock:discard','addUser','length','name','clear','containerElement','markDeletion','removeComment','catch','commands','remove','_findSuggestions','_registerDefaultCallbacks','_addSuggestionMarker','formatBlock','accept','batch','fire','rethrowUnexpectedError','@external','listenTo','high','getMultiRangeId','highest','map','insertion:','oldRange','updateMarker','acceptAllSuggestions','ready','isRemovable','writer','isMultiRange','dataDowncast','$graveyard','PENDING_ACTION_SUGGESTION','options','suggestionUnloaded','rejected','deletion:join','deleteContent','attributes','change:data','addComment','formatInline:','plugins','getSuggestionCallback','data','add','formatInline:chain','createPositionBefore','open','buildSuggestion','elementToElement','upcast','getShiftedBy','formatInline:discard','discardAllSuggestions','backward','_isForcedDefaultExecutionBlock','getRanges','createdAt','formatBlock:accept','getAttribute','suggestionChanged','range','getUser','acceptSuggestion','then','set','editor','_commentsRepository','markers','_suggestions','isAtEnd','removeMarker','refresh','model','hasSuggestion','activeMarkers','Users','fromCharCode','hasComments','selection','_editor','_enabledCommands','adapter','isInContent','createPositionAt','type','detach','_updateSuggestionData','elementStart','removed','forceDefaultExecution','insertContent','sort','commentThread','ck-suggestion-marker','fetchCommentThread','isNextTo','isEqual','getSuggestions','_splitMarkerName','originalSuggestionId','notReady','CommentsRepository','splitPosition','subType','dataToMarker','differ','enqueueChange','formatInline','hasCommentThread','marker-count','consumable','_getSuggestionData','unbind','_setSuggestionData','every','forward','chain','newRange','containsRangeInObject','isSelectable','author','getItems','group','skipNestingCheck','has','removeMarker:suggestion:formatBlock','insertion','previous','isTouching','includes','error-saving-suggestion-data-suggestion-discarded','_customCallbacks','getAllAdjacentSuggestions','addMarkerName','markMultiRangeBlockFormat','enableCommand','locale','execute','isLimit','getDifference','removeAttribute','_descriptionFactory','updateSuggestion','stopListening','deletion:','multipleBlocks','_setSuggestionRange','multi','createRangeIn','track-changes-suggestion-data-mismatch','markBlockFormat','setSelection','init','fromRange','ck-suggestion-marker-','discardSuggestion','isInsideObject','markerToHighlight','containsPosition','markerReady','toViewElement','isAtStart','getRange','_handleNewSuggestionMarker','createRange','accepted','authorName','isBefore','getFirstRange','nodeAfter','_checkSuggestionCorrectness','addMarker:suggestion:formatBlock','addMarker:suggestion','registerCustomCallback','targetPosition','_suggestionState','stop','return','getSuggestion','document','registerPostFixer','getAncestors','isIntersectingWithRange','size','some','consume','deletion:discard','_suggestionFactory','parent','nodeBefore','_joinWithAdjacentSuggestions','dataReady','bindElementToMarker','PendingActions','data-suggestion','suggestionLoaded','addCommentThread','deletion:chain','isOwn','markInlineFormat','insertion:chain','markerToData','isUndo','formatBlock:join','formatGroupId','formatInline:join','values','setAttribute','_model','isCollapsed','change','_saved','ck-suggestion-marker--active','createSelection','isObject','ck-suggestion-marker-formatBlock','insertion:accept','delete','getChangedMarkers','root','addSuggestion','isAfter','schema','clone','filter','markInsertion','trackChangesCommand','trackChanges','join','markerName','substr','markMultiRangeDeletion','isDocumentOperation','editingDowncast','split','suggestion:','getIntersection','before','createElement','push','acceptSelectedSuggestions','insertion:join','isBlock','deletion:accept','addSuggestionData','discard','item','getCustomProperty','howMany','TrackChangesEditing','discardSelectedSuggestions','get','change:_saved','deletion','_refreshSuggestionsChain','track-changes-user-not-found','_rangeIsInLocalUserInsertion','after','getNearestSelectionRange','end','removeMarkers','commandName','rootName','next','getFirstMarker','insert','config','formatInline:accept','addRange','containsRange','_getAuthorFromId','removeClass'];(function(_0x78654a,_0x147612){const _0x255144=function(_0x26a04f){while(--_0x26a04f){_0x78654a['push'](_0x78654a['shift']());}};_0x255144(++_0x147612);}(_0x1476,0x83));const _0x2551=function(_0x78654a,_0x147612){_0x78654a=_0x78654a-0x0;let _0x255144=_0x1476[_0x78654a];return _0x255144;};import{Plugin as _0x35a535,PendingActions as _0x3a1a3d}from'ckeditor5/src/core';import{LiveRange as _0x59087f}from'ckeditor5/src/engine';import{CKEditorError as _0x1d0d3c,uid as _0x8909f2,priorities as _0x39766d,EmitterMixin as _0x4c0cfe,mix as _0x306206,logWarning as _0x863670}from'ckeditor5/src/utils';import{toWidget as _0x1d8a83}from'ckeditor5/src/widget';import{Users as _0x4a3172}from'ckeditor5-collaboration/src/collaboration-core';import _0x13a8b0 from'./commands/trackchangescommand';import _0x35323c from'./commands/acceptsuggestioncommand';import _0x4d777c from'./commands/discardsuggestioncommand';import _0x5cd782 from'./commands/acceptallsuggestionscommand';import _0x360557 from'./commands/acceptselectedsuggestionscommand';import _0x5acbbe from'./commands/discardallsuggestionscommand';import _0xbd7e9c from'./commands/discardselectedsuggestionscommand';import _0x2600ac from'./suggestion';import _0x32ad79 from'./suggestiondescriptionfactory';import _0x4a7120 from'./integrations/alignment';import _0x10a708 from'./integrations/basicstyles';import _0x2f1a23 from'./integrations/blockquote';import _0x7af8a4 from'./integrations/ckbox';import _0x1f21a9 from'./integrations/codeblock';import _0x320eb9 from'./integrations/comments';import _0xba6841 from'./integrations/deletecommand';import _0x237f2e from'./integrations/entercommand';import _0x4fcda5 from'./integrations/font';import _0x30bcc7 from'./integrations/heading';import _0x38e119 from'./integrations/highlight';import _0x84c390 from'./integrations/horizontalline';import _0x1dfb85 from'./integrations/htmlembed';import _0x9fc0b5 from'./integrations/image';import _0x532b86 from'./integrations/importword';import _0x902bd3 from'./integrations/indent';import _0x3061a1 from'./integrations/inputcommand';import _0x485ca2 from'./integrations/link';import _0x5bc3c6 from'./integrations/list';import _0x1e8b49 from'./integrations/mediaembed';import _0xacca4b from'./integrations/mention';import _0x306227 from'./integrations/pagebreak';import _0x3be5a9 from'./integrations/paragraph';import _0x8d7899 from'./integrations/removeformat';import _0x121575 from'./integrations/restrictededitingmode';import _0x3b4520 from'./integrations/shiftentercommand';import _0x26d63f from'./integrations/standardeditingmode';import _0x47dfa2 from'./integrations/style';import _0x511831 from'./integrations/table';import _0x1830eb from'./integrations/tablemergesplit';import _0x1d9070 from'./integrations/tableheadings';import _0x2d146a from'./integrations/tableclipboard';import _0x21a3d5 from'./integrations/title';import _0x51a7e5 from'./integrations/undo';import _0x3bfa65 from'./utils/hashobject.js';import{getTranslation as _0x49a8a7}from'./utils/common-translations';export default class d extends _0x35a535{static get['requires'](){return[_0x2551('0x2'),_0x4a3172,_0x3a1a3d,_0x4a7120,_0x10a708,_0x2f1a23,_0x7af8a4,_0x1f21a9,_0x320eb9,_0xba6841,_0x237f2e,_0x4fcda5,_0x30bcc7,_0x38e119,_0x84c390,_0x1dfb85,_0x9fc0b5,_0x532b86,_0x902bd3,_0x3061a1,_0x485ca2,_0x5bc3c6,_0x1e8b49,_0xacca4b,_0x306227,_0x3be5a9,_0x8d7899,_0x121575,_0x3b4520,_0x26d63f,_0x47dfa2,_0x511831,_0x1830eb,_0x1d9070,_0x2d146a,_0x21a3d5,_0x51a7e5];}static get['pluginName'](){return _0x2551('0x96');}constructor(_0x23f957){function _0x322b81(_0x21ce85){return _0x21ce85[_0x2551('0xe0')](_0x11e3cf=>String[_0x2551('0x119')](_0x11e3cf))[_0x2551('0x81')]('');}super(_0x23f957),this[_0x2551('0x10d')](_0x2551('0x117'),[]),this['on']('change:activeMarkers',(_0x10cf9d,_0x299dd2,_0x3e1f55,_0xa094f4)=>{this['_model']['change'](()=>{for(const _0x15fa8c of[..._0xa094f4,..._0x3e1f55])this['_model'][_0x2551('0x110')]['has'](_0x15fa8c)&&_0x23f957['editing']['reconvertMarker'](_0x15fa8c);});}),this[_0x2551('0x2a')]=new _0x32ad79(this[_0x2551('0x10e')][_0x2551('0x115')]['schema'],this[_0x2551('0x10e')][_0x2551('0x25')]),this['_adapter']=null,this['_suggestionFactory']=new wt(this['editor']),this[_0x2551('0x111')]=new Map(),this[_0x2551('0x10f')]=_0x23f957['plugins'][_0x2551('0x98')](_0x2551('0x2')),this['_enabledCommands']=new Set(),this['_model']=this[_0x2551('0x10e')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2551('0x103')]=!0x1,this[_0x322b81([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x322b81([0x34,0x30,0x34,0x34,0x32,0x30,0x32,0x32]);}[_0x2551('0x35')](){const _0x19217e=this['editor'];_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0x86'))[_0x2551('0x3a')]({'model':_0x2551('0xc7'),'view':_0x47c46c=>{const {id:_0x1922a8,type:_0x383a67}=this['_splitMarkerName'](_0x47c46c['markerName']),_0x53972d=[_0x2551('0x12a'),'ck-suggestion-marker-'+_0x383a67];let _0x583c92=0xbb8;return this[_0x2551('0x117')]['includes'](_0x47c46c[_0x2551('0x82')])&&(_0x53972d[_0x2551('0x8c')](_0x2551('0x71')),_0x583c92=0xbc2),_0x2551('0x9a')==_0x383a67&&(_0x583c92+=0x5),{'classes':_0x53972d,'attributes':{'data-suggestion':_0x1922a8},'priority':_0x583c92};}}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0xf8')](_0x22b16f=>{_0x22b16f['on'](_0x2551('0x49'),(_0x2d8425,_0x1b4eab,_0x4a632a)=>{if(!_0x4a632a[_0x2551('0xec')][_0x2551('0xbf')])return;const _0x21d97b=_0x1b4eab['item'];if(!_0x21d97b)return;const _0x32dba9=_0x4a632a[_0x2551('0xc3')][_0x2551('0x3d')](_0x21d97b);_0x19217e[_0x2551('0x115')]['schema']['isObject'](_0x21d97b)&&_0x32dba9&&!_0x32dba9[_0x2551('0x94')]('widget')&&_0x32dba9['is'](_0x2551('0xcd'))&&_0x1d8a83(_0x32dba9,_0x4a632a['writer']);},{'priority':_0x2551('0xdd')});}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0x3a')]({'model':_0x2551('0xc7'),'view':(_0xa0dc01,_0x590430)=>{if(!_0x590430[_0x2551('0xec')]['showSuggestionHighlights'])return null;const {type:_0x25b669}=this[_0x2551('0x12f')](_0xa0dc01[_0x2551('0x82')]);return{'classes':['ck-suggestion-marker',_0x2551('0x37')+_0x25b669],'priority':0xbb8};}});const _0xbf5ffe=({showActiveMarkers:_0x14b7fa=!0x0}={})=>(_0x15720f,_0x41cd5d,_0x5e0434)=>{if(!_0x41cd5d[_0x2551('0x93')])return;if(_0x41cd5d[_0x2551('0x93')]['is'](_0x2551('0x11b')))return void _0x5e0434[_0x2551('0xb')][_0x2551('0x56')](_0x41cd5d[_0x2551('0x93')],_0x15720f[_0x2551('0xcb')]);const _0x54d7e3=_0x5e0434[_0x2551('0xc3')][_0x2551('0x3d')](_0x41cd5d[_0x2551('0x93')]);if(!(_0x41cd5d['item']['is']('element')&&_0x19217e[_0x2551('0x115')]['schema'][_0x2551('0x8f')](_0x41cd5d[_0x2551('0x93')])&&!_0x54d7e3['getCustomProperty'](_0x2551('0xbd'))))return;const {id:_0xb8e6f8}=this[_0x2551('0x12f')](_0x41cd5d['markerName']);_0x5e0434['writer'][_0x2551('0xc2')]([_0x2551('0x12a'),_0x2551('0x74')],_0x54d7e3),_0x5e0434[_0x2551('0xe7')][_0x2551('0x6c')]('data-suggestion',_0xb8e6f8,_0x54d7e3),_0x5e0434[_0x2551('0xc3')][_0x2551('0x5d')](_0x54d7e3,_0x41cd5d['markerName']),_0x14b7fa&&(this[_0x2551('0x117')]['includes'](_0x41cd5d[_0x2551('0x82')])?_0x5e0434['writer'][_0x2551('0xc2')](_0x2551('0x71'),_0x54d7e3):_0x5e0434[_0x2551('0xe7')][_0x2551('0xac')](_0x2551('0x71'),_0x54d7e3));for(const _0x2b5fe5 of _0x19217e[_0x2551('0x115')][_0x2551('0x31')](_0x41cd5d['item'])[_0x2551('0x16')]())_0x5e0434[_0x2551('0xb')]['consume'](_0x2b5fe5,_0x15720f[_0x2551('0xcb')]);_0x5e0434['consumable'][_0x2551('0x56')](_0x41cd5d['item'],_0x15720f['name']);};_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0xf8')](_0x2893b7=>{_0x2893b7['on'](_0x2551('0x48'),(_0x35a5e7,_0x5895f5,_0x2d4f20)=>{_0x2d4f20['options']['showSuggestionHighlights']&&_0xbf5ffe({'showActiveMarkers':!0x1})(_0x35a5e7,_0x5895f5,_0x2d4f20);},{'priority':_0x2551('0xdf')});}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xe9'))[_0x2551('0x66')]({'model':_0x2551('0xc7'),'view':(_0x4c6d68,_0x32837d)=>_0x32837d[_0x2551('0xec')][_0x2551('0xbf')]?null:{'group':_0x2551('0xc7'),'name':_0x4c6d68[_0x2551('0x83')](_0x2551('0xc7')[_0x2551('0xca')]+0x1)}}),_0x19217e['conversion'][_0x2551('0xb9')](_0x2551('0xfe'))[_0x2551('0xfd')]({'view':{'name':'suggestion','attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x38526f,{writer:_0x48116e})=>{let _0x541084=_0x2551('0x88')+_0x38526f[_0x2551('0x107')]('suggestion-type')+':'+_0x38526f['getAttribute']('id');return _0x38526f[_0x2551('0x107')](_0x2551('0xa'))&&(_0x541084+=':'+_0x38526f['getAttribute'](_0x2551('0xa'))),_0x48116e[_0x2551('0x8b')]('$marker',{'data-name':_0x541084});}}),_0x19217e[_0x2551('0xc1')][_0x2551('0xb9')](_0x2551('0xfe'))[_0x2551('0x5')]({'view':_0x2551('0xc7')}),_0x19217e['conversion'][_0x2551('0xb9')](_0x2551('0x86'))['add'](_0x3d07c5=>{_0x3d07c5['on'](_0x2551('0x48'),_0xbf5ffe(),{'priority':_0x2551('0xdd')});}),_0x19217e['conversion'][_0x2551('0xb9')](_0x2551('0x86'))[_0x2551('0xf8')](_0x8e4c8=>{_0x8e4c8['on'](_0x2551('0x1a'),(_0x23f2c4,_0x1536e6,_0x2b96e5)=>{const _0x2f61ab=_0x2b96e5[_0x2551('0xc3')]['markerNameToElements'](_0x1536e6[_0x2551('0x82')]);if(_0x2f61ab)for(const _0x10a486 of _0x2f61ab)_0x10a486['getCustomProperty'](_0x2551('0xbd'))||(_0x2b96e5[_0x2551('0xe7')]['removeClass']([_0x2551('0x12a'),_0x2551('0x74'),_0x2551('0x71')],_0x10a486),_0x2b96e5['writer'][_0x2551('0x29')](_0x2551('0x5f'),_0x10a486),_0x2b96e5[_0x2551('0xc3')]['unbindElementFromMarkerName'](_0x10a486,_0x1536e6[_0x2551('0x82')]));},{'priority':_0x2551('0xdd')});}),_0x19217e[_0x2551('0x115')]['document'][_0x2551('0x51')](_0x15fc46=>{let _0x4273e4=!0x1;const _0x2aa9bc=Array['from'](_0x19217e[_0x2551('0x115')][_0x2551('0x50')][_0x2551('0x6')][_0x2551('0x77')]()),_0x3fb7fc=new Set();for(const {name:_0x5250d3,data:_0xfddd8b}of _0x2aa9bc){const {group:_0x59882f,type:_0x40cf3e,id:_0x2d3329}=this['_splitMarkerName'](_0x5250d3);if(_0x2551('0xc7')!==_0x59882f)continue;const _0x3cf1ba=this['_suggestions'][_0x2551('0x98')](_0x2d3329);if(null!=_0xfddd8b[_0x2551('0x12')]){_0x2551('0x8')==_0x40cf3e&&(_0x4273e4=_0x4273e4||St(_0xfddd8b[_0x2551('0x12')],_0x5250d3,_0x15fc46,_0x19217e[_0x2551('0x115')]['schema']));if(_0xfddd8b[_0x2551('0x12')][_0x2551('0x6e')]||_0x2551('0xea')==_0xfddd8b['newRange']['root']['rootName']||'formatBlock'==_0x40cf3e&&!vt(_0xfddd8b['newRange'])||_0x2551('0x9a')==_0x40cf3e&&!(!bt(_0x5497b1=_0xfddd8b[_0x2551('0x12')])&&!function(_0x188f22){return _0x188f22[_0x2551('0xae')][_0x2551('0x59')]==_0x188f22[_0x2551('0xa0')][_0x2551('0x5a')]&&_0x188f22[_0x2551('0xae')][_0x2551('0x112')];}(_0x5497b1)))_0x15fc46[_0x2551('0x113')](_0x5250d3),_0x4273e4=!0x0;else{if(!_0x3cf1ba||!_0x3cf1ba[_0x2551('0x11f')])continue;_0x3fb7fc['add'](_0x3cf1ba);}}}var _0x5497b1;return _0x3fb7fc[_0x2551('0x54')]>0x0&&(_0x4273e4=!!this['_joinWithAdjacentSuggestions'](_0x3fb7fc)||_0x4273e4),_0x4273e4;}),_0x19217e[_0x2551('0x115')][_0x2551('0x50')]['registerPostFixer'](_0x4c1db4=>{let _0x1b2a9f=!0x1;for(const _0x3043c5 of _0x19217e['model'][_0x2551('0x50')][_0x2551('0x6')]['getChanges']()){if(_0x2551('0xa6')!=_0x3043c5[_0x2551('0x121')])continue;const _0x23b9b4=_0x3043c5['position'][_0x2551('0xff')](_0x3043c5[_0x2551('0xca')]);if(_0x23b9b4[_0x2551('0x112')])for(const _0x41604b of this[_0x2551('0x111')][_0x2551('0x6b')]()){if(_0x41604b[_0x2551('0xe8')]||!_0x41604b['isInContent'])continue;if(_0x2551('0xd6')!=_0x41604b['type'])continue;const _0x4eec16=_0x41604b[_0x2551('0x45')]();if(_0x4eec16[_0x2551('0xae')][_0x2551('0x59')]!=_0x4eec16[_0x2551('0xa0')][_0x2551('0x59')]&&_0x4eec16[_0x2551('0xa0')][_0x2551('0x12d')](_0x3043c5['position'])){const _0x4718c8=_0x19217e[_0x2551('0x115')]['createRange'](_0x4eec16[_0x2551('0xae')],_0x23b9b4);_0x4c1db4[_0x2551('0xe3')](_0x41604b[_0x2551('0xa5')](),{'range':_0x4718c8}),_0x1b2a9f=!0x0;}}}return _0x1b2a9f;}),_0x19217e[_0x2551('0x115')][_0x2551('0x110')]['on']('update:suggestion',(_0x16cecf,_0x568641,_0x1b8f8d)=>{if(null==_0x1b8f8d){const {id:_0x3640a5}=this[_0x2551('0x12f')](_0x568641['name']),_0x3ca59b=this[_0x2551('0x111')][_0x2551('0x98')](_0x3640a5);_0x3ca59b&&_0x3ca59b[_0x2551('0x22')](_0x568641[_0x2551('0xcb')]);}}),_0x19217e[_0x2551('0x115')][_0x2551('0x50')]['on'](_0x2551('0xf2'),()=>{const _0x3c7bb4=Array['from'](_0x19217e[_0x2551('0x115')][_0x2551('0x50')][_0x2551('0x6')][_0x2551('0x77')]())[_0x2551('0x7d')](_0x410af5=>_0x2551('0xc7')===this[_0x2551('0x12f')](_0x410af5[_0x2551('0xcb')])[_0x2551('0x17')]);if(0x0===_0x3c7bb4[_0x2551('0xca')])return;_0x3c7bb4[_0x2551('0x128')]((_0x1f6caf,_0x282bf4)=>{const _0x9bdcea=_0x1f6caf[_0x2551('0xf7')][_0x2551('0xe2')],_0x2e7295=_0x282bf4[_0x2551('0xf7')]['oldRange'];return null===_0x9bdcea&&null===_0x2e7295?0x0:null===_0x9bdcea&&null!==_0x2e7295?-0x1:null!==_0x9bdcea&&null===_0x2e7295?0x1:_0x9bdcea[_0x2551('0xae')][_0x2551('0x44')](_0x2e7295[_0x2551('0xae')])?-0x1:0x1;});const _0x448e0b=new Set(),_0x356f2b=new Set();for(const {name:_0x3dfc86,data:_0x451360}of _0x3c7bb4){const {id:_0x89ecb7}=this['_splitMarkerName'](_0x3dfc86);if(null===_0x451360[_0x2551('0xe2')]){const _0x3f51c6=this[_0x2551('0x40')](_0x3dfc86);_0x356f2b[_0x2551('0xf8')](_0x3f51c6);}else{const _0x314f23=this['_suggestions'][_0x2551('0x98')](_0x89ecb7);null!==_0x451360[_0x2551('0x12')]||_0x314f23[_0x2551('0x11f')]?(_0x448e0b[_0x2551('0xf8')](_0x314f23['head']),_0x356f2b[_0x2551('0xf8')](_0x314f23)):this['_removeSuggestion'](_0x314f23);}}_0x356f2b['size']>0x0&&this['_refreshSuggestionsChain'](_0x356f2b);for(const _0x185703 of _0x448e0b)this[_0x2551('0xd9')](_0x2551('0x108'),_0x185703);}),_0x19217e[_0x2551('0x115')]['on']('applyOperation',(_0x1a0066,_0x3aacad)=>{const _0x1b000e=_0x3aacad[0x0];if(!this[_0x2551('0x111')][_0x2551('0x54')])return;if(!_0x1b000e[_0x2551('0x85')])return;if(_0x1b000e['batch'][_0x2551('0x67')]||!_0x1b000e[_0x2551('0xd8')]['isLocal'])return;let _0x1bd134,_0x50bc4a;switch(_0x1b000e[_0x2551('0x121')]){case _0x2551('0xa6'):_0x1bd134=_0x19217e[_0x2551('0x115')][_0x2551('0x120')](_0x1b000e['position']),_0x50bc4a=_0x1bd134[_0x2551('0xff')](_0x1b000e['howMany']);break;case'split':_0x1bd134=_0x19217e['model'][_0x2551('0x120')](_0x1b000e[_0x2551('0x3')]),_0x50bc4a=_0x19217e['model'][_0x2551('0x120')](_0x1b000e['moveTargetPosition']);break;case _0x2551('0xb2'):_0x1bd134=_0x19217e['model'][_0x2551('0x120')](_0x1b000e[_0x2551('0x4b')]),_0x50bc4a=_0x1bd134[_0x2551('0xff')](_0x1b000e[_0x2551('0x95')]);break;default:return;}const _0x57c890=_0x19217e['model']['createRange'](_0x1bd134,_0x50bc4a);_0x19217e[_0x2551('0x115')][_0x2551('0x6f')](()=>{for(const {suggestion:_0x4a4bf6,meta:_0x3deb9a}of this[_0x2551('0xd3')](_0x57c890)){if(_0x4a4bf6[_0x2551('0xe8')])continue;if('formatInline'==_0x4a4bf6[_0x2551('0x121')])continue;const _0x42bc67=_0x4a4bf6[_0x2551('0xf7')]&&_0x4a4bf6[_0x2551('0xf7')][_0x2551('0x2e')];(_0x2551('0xd6')!=_0x4a4bf6[_0x2551('0x121')]||_0x2551('0x87')==_0x1b000e[_0x2551('0x121')]&&!_0x42bc67)&&(_0x3deb9a[_0x2551('0x13')]||_0x2551('0x1b')==_0x4a4bf6[_0x2551('0x121')]&&_0x3deb9a['isOwn']||_0x4a4bf6[_0x2551('0x45')]()[_0x2551('0xaa')](_0x57c890)&&this['_breakSuggestionMarker'](_0x4a4bf6,_0x1bd134,_0x50bc4a));}});},{'priority':'lowest'}),_0x19217e[_0x2551('0x115')]['on'](_0x2551('0xf0'),(_0x499139,_0x164433)=>{const _0x50df4=_0x164433[0x0],_0x4f49b9=_0x164433[0x1];if(_0x4f49b9&&_0x4f49b9['forceDefaultExecution'])return;if(this[_0x2551('0x103')])return;if(!this[_0x2551('0x7f')]['value'])return;if(_0x50df4['isCollapsed'])return;const _0x212693=_0x19217e[_0x2551('0x115')][_0x2551('0x7b')],{start:_0x272438,end:_0x229694}=_0x50df4[_0x2551('0x45')](),_0x3c5978=_0x272438['nodeAfter']&&_0x212693[_0x2551('0x73')](_0x272438['nodeAfter'])?null:_0x212693[_0x2551('0x9f')](_0x272438,_0x2551('0x10')),_0x195032=_0x229694[_0x2551('0x5a')]&&_0x212693[_0x2551('0x73')](_0x229694[_0x2551('0x5a')])?null:_0x212693['getNearestSelectionRange'](_0x229694,_0x2551('0x102')),_0x8e0d65=_0x19217e[_0x2551('0x115')]['createRange'](_0x3c5978?_0x3c5978['start']:_0x272438,_0x195032?_0x195032['end']:_0x229694);_0x19217e['model'][_0x2551('0x6f')](_0x2215a7=>{this[_0x2551('0xce')](_0x8e0d65);const _0x1b73c6=_0x19217e[_0x2551('0x115')]['schema'][_0x2551('0x9f')](_0x8e0d65[_0x2551('0xae')]);_0x50df4['is']('documentSelection')?_0x2215a7['setSelection'](_0x1b73c6):_0x50df4[_0x2551('0xc4')](_0x1b73c6);}),_0x499139[_0x2551('0x4d')]();},{'priority':_0x39766d['normal']+0xa}),_0x19217e[_0x2551('0x115')]['on'](_0x2551('0x127'),(_0x3c65ba,_0x1fc4c1)=>{const _0x565d5e=_0x1fc4c1[_0x1fc4c1['length']-0x1];_0x565d5e&&_0x565d5e[_0x2551('0x126')]||this[_0x2551('0x103')]||this[_0x2551('0x7f')]['value']&&(_0x19217e[_0x2551('0x115')][_0x2551('0x6f')](()=>{let _0x1421fe=_0x19217e[_0x2551('0x115')][_0x2551('0x127')](_0x1fc4c1[0x0],_0x1fc4c1[0x1],_0x1fc4c1[0x2],_0x1fc4c1[0x3],{'forceDefaultExecution':!0x0});if(!_0x1421fe)return;_0x3c65ba[_0x2551('0x4e')]=_0x1421fe[_0x2551('0x7c')]();const _0x1c4fbc=_0x1421fe[_0x2551('0xa0')][_0x2551('0x5a')],_0xe3c7cd=_0x19217e['model']['schema'];_0x1c4fbc&&_0xe3c7cd['isBlock'](_0x1c4fbc)&&!_0xe3c7cd[_0x2551('0x73')](_0x1c4fbc)&&(_0x1421fe=_0x19217e['model'][_0x2551('0x41')](_0x1421fe[_0x2551('0xae')],_0x19217e[_0x2551('0x115')][_0x2551('0x120')](_0x1c4fbc,'end'))),this[_0x2551('0x7e')](_0x1421fe);}),_0x3c65ba[_0x2551('0x4d')]());},{'priority':_0x2551('0xdd')}),this[_0x2551('0x7f')]=new _0x13a8b0(_0x19217e,this['_enabledCommands']),this[_0x2551('0x10e')]['commands'][_0x2551('0xf8')](_0x2551('0x80'),this['trackChangesCommand']),this[_0x2551('0x24')](_0x2551('0x80'));const _0x5d599d=new _0x35323c(_0x19217e,this['_suggestions']);_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0x10b'),_0x5d599d),this[_0x2551('0x24')](_0x2551('0x10b'));const _0x3db3f8=new _0x4d777c(_0x19217e,this[_0x2551('0x111')]);_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0x38'),_0x3db3f8),this['enableCommand'](_0x2551('0x38')),_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0xe4'),new _0x5cd782(_0x19217e,_0x5d599d,this[_0x2551('0x111')])),this[_0x2551('0x24')](_0x2551('0xe4')),_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')](_0x2551('0x101'),new _0x5acbbe(_0x19217e,_0x3db3f8,this[_0x2551('0x111')])),this[_0x2551('0x24')]('discardAllSuggestions'),_0x19217e['commands'][_0x2551('0xf8')](_0x2551('0x8d'),new _0x360557(_0x19217e,_0x5d599d,this[_0x2551('0x111')])),this['enableCommand'](_0x2551('0x8d')),_0x19217e[_0x2551('0xd1')][_0x2551('0xf8')]('discardSelectedSuggestions',new _0xbd7e9c(_0x19217e,_0x3db3f8,this[_0x2551('0x111')])),this[_0x2551('0x24')](_0x2551('0x97'));const _0x5c0023=_0x19217e[_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x2'));this['listenTo'](_0x5c0023,_0x2551('0xf3'),(_0x21a5a5,{threadId:_0x458a0c})=>{const _0x27072c=this[_0x2551('0x111')]['get'](_0x458a0c);_0x27072c&&_0x27072c[_0x2551('0x129')]&&0x1===_0x27072c[_0x2551('0x129')]['length']&&this['_updateSuggestionData'](_0x458a0c,{'hasComments':!0x0});},{'priority':'low'}),this[_0x2551('0xdc')](_0x5c0023,_0x2551('0xcf'),(_0x1e426d,{threadId:_0x1954c7})=>{const _0x565c1c=this['_suggestions'][_0x2551('0x98')](_0x1954c7);_0x565c1c&&_0x565c1c['commentThread']&&!_0x565c1c[_0x2551('0x129')][_0x2551('0xca')]&&this[_0x2551('0x123')](_0x1954c7,{'hasComments':!0x1});},{'priority':'low'});}set[_0x2551('0x11e')](_0x20d1a6){if(this[_0x2551('0xbe')])throw new _0x1d0d3c('track-changes-adapter-already-set',this);this[_0x2551('0xbe')]=_0x20d1a6;}get[_0x2551('0x11e')](){return this[_0x2551('0xbe')];}[_0x2551('0x12e')]({skipNotAttached:_0x34d91=!0x1,toJSON:_0x4a1e4f=!0x1}={}){const _0x59c3df=[];for(const _0x12b6e3 of this['_suggestions'][_0x2551('0x6b')]())_0x34d91&&!_0x12b6e3['isInContent']||_0x59c3df[_0x2551('0x8c')](_0x12b6e3);return _0x4a1e4f?_0x59c3df[_0x2551('0xe0')](_0x120613=>_0x120613['toJSON']()):_0x59c3df;}[_0x2551('0x4f')](_0x2df7ad){const _0x3b63d3=this[_0x2551('0x111')][_0x2551('0x98')](_0x2df7ad);if(!_0x3b63d3)throw new _0x1d0d3c('track-changes-suggestion-not-found',this);return _0x3b63d3;}[_0x2551('0x116')](_0x3221fc){return this['_suggestions'][_0x2551('0x19')](_0x3221fc);}['addSuggestionData'](_0x4a50e7){const {id:_0x481c95,authorId:_0x4633c0,attributes:_0x37a4e0}=_0x4a50e7,[_0x2045c4,_0x42cb22]=_0x4a50e7[_0x2551('0x121')][_0x2551('0x87')](':'),_0x59915a=this[_0x2551('0x111')][_0x2551('0x98')](_0x481c95)||this['_createSuggestion'](_0x2045c4,_0x42cb22,_0x481c95,_0x4633c0,_0x37a4e0);switch(this[_0x2551('0xb0')](_0x59915a),this[_0x2551('0x47')](_0x59915a,_0x2045c4,_0x42cb22||null,_0x4633c0),_0x59915a[_0x2551('0x105')]=_0x4a50e7['createdAt'],_0x4a50e7['data']&&(_0x59915a[_0x2551('0xf7')]=_0x4a50e7[_0x2551('0xf7')]),_0x4a50e7[_0x2551('0xf1')]&&(_0x59915a[_0x2551('0xf1')]=_0x4a50e7[_0x2551('0xf1')]),this[_0x2551('0xbe')]&&this[_0x2551('0xbe')][_0x2551('0x79')]||(_0x59915a[_0x2551('0x70')]=!0x0),this[_0x2551('0x4c')]['get'](_0x59915a)){case'notReady':this['_suggestionState'][_0x2551('0x10d')](_0x59915a,_0x2551('0x5c'));break;case _0x2551('0x3c'):_0x59915a[_0x2551('0x11f')]?(this[_0x2551('0x4c')][_0x2551('0x10d')](_0x59915a,'ready'),this[_0x2551('0xd9')](_0x2551('0x60'),_0x59915a)):this['_suggestionState'][_0x2551('0x10d')](_0x59915a,_0x2551('0x125'));}return _0x59915a;}[_0x2551('0x10b')](_0x41465c){this[_0x2551('0x126')](()=>{this['editor'][_0x2551('0x115')][_0x2551('0x6f')](()=>{for(const _0x1cfc75 of _0x41465c[_0x2551('0x21')]())_0x1cfc75[_0x2551('0xd7')]();});});}[_0x2551('0x38')](_0x2d7dd6){this[_0x2551('0x126')](()=>{this[_0x2551('0x10e')][_0x2551('0x115')][_0x2551('0x6f')](()=>{for(const _0x1199de of _0x2d7dd6[_0x2551('0x21')]())_0x1199de[_0x2551('0x92')]();});});}[_0x2551('0x24')](_0x32cfc5,_0x3d369d){const _0x52cf05=this[_0x2551('0x10e')][_0x2551('0xd1')][_0x2551('0x98')](_0x32cfc5);if(!_0x52cf05)throw new _0x1d0d3c(_0x2551('0xb7'),this,{'commandName':_0x32cfc5});this[_0x2551('0x11d')][_0x2551('0xf8')](_0x52cf05),_0x3d369d&&_0x52cf05['on'](_0x2551('0x26'),(_0x163fbe,_0x4df595)=>{this[_0x2551('0x7f')]['value']&&(this[_0x2551('0x103')]||_0x4df595[_0x2551('0xca')]>0x0&&_0x4df595[_0x4df595['length']-0x1]&&_0x4df595[_0x4df595['length']-0x1][_0x2551('0x126')]||(_0x3d369d((..._0x2d8210)=>_0x52cf05[_0x2551('0x26')](..._0x2d8210,{'forceDefaultExecution':!0x0}),..._0x4df595),_0x163fbe[_0x2551('0x4d')]()));},{'priority':_0x2551('0xdd')});}[_0x2551('0x126')](_0x2b0e72){let _0x26d93a,_0x415835;const _0x522d2f=this[_0x2551('0x103')];this[_0x2551('0x103')]=!0x0;try{_0x26d93a=_0x2b0e72();}catch(_0x5a2f1f){_0x415835=_0x5a2f1f;}return _0x522d2f||(this[_0x2551('0x103')]=!0x1),_0x415835&&_0x1d0d3c[_0x2551('0xda')](_0x415835,this),_0x26d93a;}[_0x2551('0x7e')](_0x16df3b,_0x38d4bd=null,_0xb0bccb={}){if(_0x16df3b['isCollapsed'])return null;const _0x2e0534=this[_0x2551('0x10e')]['plugins']['get']('Users')['me'];for(const {suggestion:_0x5e90ef,meta:_0x4cb365}of this['_findSuggestions'](_0x16df3b,_0x2551('0x1b')))if(_0x4cb365['isOwn']){if(!_0x4cb365[_0x2551('0x12c')])return _0x5e90ef;if(_0x38d4bd==_0x5e90ef['subType']){const _0x74419f=_0x5e90ef[_0x2551('0x45')]();return _0x74419f[_0x2551('0xae')][_0x2551('0x12d')](_0x16df3b[_0x2551('0xa0')])?this[_0x2551('0x2f')](_0x5e90ef,this[_0x2551('0x6d')][_0x2551('0x41')](_0x16df3b[_0x2551('0xae')],_0x74419f[_0x2551('0xa0')])):this['_setSuggestionRange'](_0x5e90ef,this[_0x2551('0x6d')][_0x2551('0x41')](_0x74419f[_0x2551('0xae')],_0x16df3b[_0x2551('0xa0')])),_0x5e90ef;}}const _0x2a3902=_0x8909f2(),_0x12dc0d=_0x2e0534['id'],_0xe972b2=_0x38d4bd?'insertion:'+_0x38d4bd:'insertion',_0x2b50a8=this[_0x2551('0xe')]({'id':_0x2a3902,'type':_0xe972b2,'createdAt':new Date(),'authorId':_0x12dc0d,'attributes':_0xb0bccb});return this['_addSuggestionMarker'](_0xe972b2,_0x2a3902,_0x12dc0d,_0x16df3b),_0x2b50a8;}[_0x2551('0xc5')](_0x33adce,_0x23476f=_0x2551('0x30'),_0x3e17a8={}){const _0x3e0692=this[_0x2551('0x10e')][_0x2551('0xf5')]['get'](_0x2551('0x118'))['me'],_0x3d0a00=this['_suggestionFactory'][_0x2551('0xf6')](_0x2551('0x1b'),_0x23476f,_0x2551('0x81'));for(const _0x3934ac of this[_0x2551('0x12e')]())if(_0x3934ac[_0x2551('0x15')]['id']==_0x3e0692['id']&&_0x2551('0x1b')==_0x3934ac['type']&&_0x3934ac[_0x2551('0x4')]==_0x23476f&&(_0x3d0a00(_0x3934ac[_0x2551('0x104')](),_0x33adce)||_0x3d0a00(_0x33adce,_0x3934ac[_0x2551('0x104')]()))){for(const _0x2f8dbc of _0x33adce)_0x3934ac[_0x2551('0xa9')](_0x2f8dbc);return _0x3934ac;}for(const _0x407765 of _0x33adce)for(const {suggestion:_0xa10a6,meta:_0x514332}of this[_0x2551('0xd3')](_0x407765,_0x2551('0x1b'))){if(!_0x514332[_0x2551('0x63')])continue;let _0x1f89f0=!0x0;for(const _0x403739 of _0xa10a6[_0x2551('0x104')]())for(const _0x17cb35 of _0x33adce)if(!_0x403739[_0x2551('0xaa')](_0x17cb35)){_0x1f89f0=!0x1;break;}if(_0x1f89f0)return _0xa10a6;}const _0x4aebbc=_0x8909f2(),_0x178e90=_0x3e0692['id'],_0x364049=_0x2551('0xe1')+_0x23476f,_0x3605fd=this[_0x2551('0xe')]({'id':_0x4aebbc,'type':_0x364049,'createdAt':new Date(),'authorId':_0x178e90,'attributes':_0x3e17a8});for(const _0x2f56b9 of _0x33adce)this[_0x2551('0xd5')](_0x364049,_0x4aebbc,_0x178e90,_0x2f56b9,_0x2600ac[_0x2551('0xde')]());return _0x3605fd;}[_0x2551('0x64')](_0x5f5b54,_0xb9dfa9,_0x635033=null,_0x33aced={}){if(_0x635033=_0x635033||It(_0xb9dfa9),_0x5f5b54['isCollapsed'])return;const _0x1c2e60=this['editor'][_0x2551('0xf5')][_0x2551('0x98')]('Users')['me'],_0x2dae68=[];for(const {suggestion:_0x2a6e00,meta:_0x3a920a}of this[_0x2551('0xd3')](_0x5f5b54,_0x2551('0x1b')))_0x3a920a[_0x2551('0x63')]&&!_0x3a920a[_0x2551('0x39')]&&_0x2dae68['push'](..._0x2a6e00[_0x2551('0x104')]());const _0x46fdc9=function(_0x328fed,_0x5cb6c9){const _0x2aa472=[];for(const _0x3f04ec of _0x5cb6c9){const _0x330221=_0x328fed[_0x2551('0x89')](_0x3f04ec);_0x330221&&_0x2aa472[_0x2551('0x8c')](_0x330221);}return _0x2aa472;}(_0x5f5b54,_0x2dae68),_0x37a126=function(_0x2ba601,_0x771488){const _0x5ccbe9=[_0x2ba601];for(const _0x27ad43 of _0x771488){let _0x3f649e=0x0;for(;_0x3f649e<_0x5ccbe9[_0x2551('0xca')];){const _0x1f6241=_0x5ccbe9[_0x3f649e][_0x2551('0x28')](_0x27ad43);_0x5ccbe9[_0x2551('0xc0')](_0x3f649e,0x1,..._0x1f6241),_0x3f649e+=_0x1f6241['length'];}}return _0x5ccbe9;}(_0x5f5b54,_0x2dae68);_0x46fdc9[_0x2551('0xca')]&&this[_0x2551('0x6d')][_0x2551('0x6f')](()=>{for(const _0x4ef36b of _0x46fdc9){const _0x5beee2=this[_0x2551('0x58')][_0x2551('0xf6')]('formatInline',_0x635033,'accept');this[_0x2551('0x126')](()=>_0x5beee2([_0x4ef36b],_0xb9dfa9,_0x33aced));}});for(const _0x5cfdaf of _0x37a126){let _0x115376=null,_0x4201df=_0x5cfdaf['start'],_0x5d3b20=_0x5cfdaf[_0x2551('0xa0')];for(const {suggestion:_0x3bd626,meta:_0x1abba8}of this[_0x2551('0xd3')](_0x5cfdaf,_0x2551('0x8'))){if(!_0x1abba8['isOwn'])continue;if(_0x3bd626['subType']!=_0x635033)continue;const _0x50c24a=_0x3bd626[_0x2551('0x45')]();if(_0x50c24a[_0x2551('0xaa')](_0x5cfdaf,!0x0))return;_0x4201df=_0x4201df[_0x2551('0x44')](_0x50c24a[_0x2551('0xae')])?_0x4201df:_0x50c24a['start'],_0x5d3b20=_0x5d3b20[_0x2551('0x7a')](_0x50c24a['end'])?_0x5d3b20:_0x50c24a['end'],_0x115376?_0x50c24a[_0x2551('0xae')][_0x2551('0x44')](_0x115376[_0x2551('0x45')]()[_0x2551('0xae')])?(_0x115376[_0x2551('0xa1')](),_0x115376=_0x3bd626):_0x3bd626[_0x2551('0xa1')]():_0x115376=_0x3bd626;}const _0x24b0ca=this[_0x2551('0x6d')]['createRange'](_0x4201df,_0x5d3b20);if(_0x115376)this[_0x2551('0x2f')](_0x115376,_0x24b0ca);else{const _0x1bb94d=_0x8909f2(),_0x4d2d83=_0x1c2e60['id'];this['_setSuggestionData']({'id':_0x1bb94d,'type':'formatInline:'+_0x635033,'data':_0xb9dfa9,'createdAt':new Date(),'authorId':_0x4d2d83,'attributes':_0x33aced}),this[_0x2551('0xd5')](_0x2551('0xf4')+_0x635033,_0x1bb94d,_0x4d2d83,_0x24b0ca);}}}[_0x2551('0x33')](_0x163aa9,_0x33c42a,_0x17a96d=[],_0x3a97da=null,_0x1c3717={}){_0x33c42a['formatGroupId']||(_0x33c42a['formatGroupId']=_0x33c42a[_0x2551('0xa2')]),_0x33c42a[_0x2551('0x2e')]=_0x163aa9['is']('range'),_0x3a97da=_0x3a97da||It(_0x33c42a);const _0x3ce0da=_0x17a96d[_0x2551('0xe0')](_0x272b64=>At(_0x272b64,this['_model'])),_0x3dc2fe=_0x163aa9['is'](_0x2551('0x109'))?_0x163aa9:At(_0x163aa9,this[_0x2551('0x6d')]);_0x3ce0da[_0x2551('0x8c')](_0x3dc2fe);let _0x4b08c8=!0x0;for(const _0x7dec6b of _0x3ce0da)if(!this[_0x2551('0x9d')](_0x7dec6b)){_0x4b08c8=!0x1;break;}if(_0x4b08c8){const _0x5cea5e=this[_0x2551('0x58')]['getSuggestionCallback']('formatBlock',_0x3a97da,_0x2551('0xd7'));return void this[_0x2551('0x126')](()=>_0x5cea5e([_0x3dc2fe],_0x33c42a,_0x1c3717));}let _0x1c371d=null,_0xe57bcc=_0x3dc2fe['start'],_0x1e48ef=_0x3dc2fe['end'];for(const {suggestion:_0x49530b,meta:_0x4424aa}of this['_findSuggestions'](_0x3dc2fe,_0x2551('0xd6'))){if(!_0x4424aa['isOwn']||_0x4424aa[_0x2551('0x12c')]||_0x4424aa[_0x2551('0x13')]||_0x4424aa[_0x2551('0x39')])continue;if(_0x49530b[_0x2551('0xf7')]['formatGroupId']!=_0x33c42a[_0x2551('0x69')])continue;const _0x2a5cb8=_0x49530b[_0x2551('0x45')]();if(_0x49530b[_0x2551('0x4')]==_0x3a97da){if(_0x2a5cb8['containsRange'](_0x3dc2fe,!0x0))return;_0xe57bcc=_0xe57bcc[_0x2551('0x44')](_0x2a5cb8['start'])?_0xe57bcc:_0x2a5cb8[_0x2551('0xae')],_0x1e48ef=_0x1e48ef[_0x2551('0x7a')](_0x2a5cb8[_0x2551('0xa0')])?_0x1e48ef:_0x2a5cb8['end'],_0x1c371d?_0x2a5cb8[_0x2551('0xae')][_0x2551('0x44')](_0x1c371d[_0x2551('0x45')]()[_0x2551('0xae')])?(_0x1c371d[_0x2551('0xa1')](),_0x1c371d=_0x49530b):_0x49530b[_0x2551('0xa1')]():_0x1c371d=_0x49530b;}else{const _0x436200=_0x3dc2fe[_0x2551('0x89')](_0x2a5cb8);this[_0x2551('0xaf')](_0x49530b,_0x436200);}}const _0x26797f=this[_0x2551('0x10e')][_0x2551('0xf5')]['get'](_0x2551('0x118'))['me'],_0x2d735a=_0x8909f2(),_0x3c3550=_0x26797f['id'];_0x1c371d?this[_0x2551('0x2f')](_0x1c371d,this['_model']['createRange'](_0xe57bcc,_0x1e48ef)):(this['_setSuggestionData']({'id':_0x2d735a,'type':'formatBlock:'+_0x3a97da,'data':_0x33c42a,'createdAt':new Date(),'authorId':_0x3c3550,'attributes':_0x1c3717}),this[_0x2551('0xd5')]('formatBlock:'+_0x3a97da,_0x2d735a,_0x3c3550,this[_0x2551('0x6d')][_0x2551('0x41')](_0xe57bcc,_0x1e48ef)));}[_0x2551('0x23')](_0x76f3dd,_0x1d29ab,_0x43ef67=[],_0x482b72=null,_0x2258c5={}){_0x1d29ab[_0x2551('0x69')]||(_0x1d29ab[_0x2551('0x69')]=_0x1d29ab['commandName']),_0x1d29ab['multipleBlocks']=!0x1,_0x482b72=_0x482b72||It(_0x1d29ab);const _0x4c6673=_0x43ef67[_0x2551('0xe0')](_0x343065=>At(_0x343065,this[_0x2551('0x6d')])),_0x2d29e5=_0x76f3dd[_0x2551('0xe0')](_0x597d03=>At(_0x597d03,this[_0x2551('0x6d')]));_0x4c6673[_0x2551('0x8c')](..._0x2d29e5);let _0x10bfb9=!0x0;for(const _0x239ac3 of _0x4c6673)if(!this[_0x2551('0x9d')](_0x239ac3)){_0x10bfb9=!0x1;break;}if(_0x10bfb9){const _0x4b84d0=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0xd6'),_0x482b72,_0x2551('0xd7'));return void this['forceDefaultExecution'](()=>_0x4b84d0(_0x2d29e5,_0x1d29ab,_0x2258c5));}const _0xc75d47=this[_0x2551('0x10e')][_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x118'))['me'];for(const _0x1835c1 of this[_0x2551('0x12e')]()){if(_0x1835c1[_0x2551('0x15')]['id']!=_0xc75d47['id'])continue;if(_0x2551('0xd6')!=_0x1835c1['type']||_0x1835c1[_0x2551('0xf7')]['formatGroupId']!=_0x1d29ab[_0x2551('0x69')])continue;const _0x5f4ff3=_0x1835c1[_0x2551('0x4')]==_0x482b72;for(let _0x54cb61=0x0;_0x54cb61<_0x2d29e5[_0x2551('0xca')];_0x54cb61++){const _0x2784ed=_0x2d29e5[_0x54cb61];for(const _0x37be31 of _0x1835c1['getMarkers']()){const _0x253b8f=_0x37be31[_0x2551('0x3f')]();if(_0x2784ed[_0x2551('0x12d')](_0x253b8f)){_0x5f4ff3?(_0x2d29e5['splice'](_0x54cb61,0x1),_0x54cb61--):_0x1835c1['removeMarker'](_0x37be31['name']);break;}}}}if(0x0==_0x2d29e5[_0x2551('0xca')])return;const _0x393303=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0xd6'),_0x482b72,'join');for(const _0x56497e of this[_0x2551('0x12e')]())if(_0x56497e['author']['id']==_0xc75d47['id']&&'formatBlock'==_0x56497e['type']&&_0x56497e[_0x2551('0xf7')]['formatGroupId']==_0x1d29ab['formatGroupId']&&_0x56497e['subType']==_0x482b72&&(_0x393303(_0x56497e['getRanges'](),_0x2d29e5)||_0x393303(_0x2d29e5,_0x56497e[_0x2551('0x104')]()))){for(const _0x2018aa of _0x2d29e5)_0x56497e['addRange'](_0x2018aa);return _0x56497e;}const _0x27f8f8=_0x8909f2(),_0x4e345e=_0xc75d47['id'],_0x55cbca='formatBlock:'+_0x482b72,_0xa992eb=this[_0x2551('0xe')]({'id':_0x27f8f8,'type':_0x55cbca,'data':_0x1d29ab,'createdAt':new Date(),'authorId':_0x4e345e,'attributes':_0x2258c5});for(const _0x32eebc of _0x2d29e5)this[_0x2551('0xd5')](_0x55cbca,_0x27f8f8,_0x4e345e,_0x32eebc,_0x2600ac[_0x2551('0xde')]());return _0xa992eb;}['markDeletion'](_0x2acb51,_0x5f576f=null,_0x1f01fb={}){if(_0x2acb51[_0x2551('0x6e')])return null;const _0x8a1d19=this['editor'][_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x118'))['me'],_0x2cce6b=new _0x59087f(_0x2acb51['start'],_0x2acb51[_0x2551('0xa0')]);for(const {suggestion:_0x1feab5,meta:_0x469b4c}of this['_findSuggestions'](_0x2cce6b,_0x2551('0x1b')))if(_0x469b4c[_0x2551('0x63')]&&!_0x469b4c[_0x2551('0x12c')]){if(_0x1feab5[_0x2551('0xe8')]){const _0x32edba=_0x1feab5[_0x2551('0x104')]()[_0x2551('0x7d')](_0x38440b=>_0x2551('0xea')!=_0x38440b[_0x2551('0x78')]['rootName']);_0x32edba['every'](_0x21247b=>_0x2cce6b[_0x2551('0xaa')](_0x21247b,!0x0))&&_0x1feab5['discard']();if(_0x32edba[_0x2551('0x55')](_0x302218=>_0x302218[_0x2551('0xaa')](_0x2cce6b,!0x0))){const _0x5c6697=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0x9a'),_0x5f576f,'accept');return this[_0x2551('0x126')](()=>_0x5c6697([_0x2cce6b],null,_0x1f01fb)),null;}}else{const _0x2f9124=_0x2cce6b[_0x2551('0x89')](_0x1feab5['getFirstRange']());_0x1feab5['_onDiscard']([_0x2f9124],null,_0x1f01fb);}}if(_0x2cce6b[_0x2551('0x122')](),_0x2cce6b[_0x2551('0x6e')]||_0x2551('0xea')==_0x2cce6b[_0x2551('0x78')][_0x2551('0xa3')])return null;let _0xc78841=null,_0xfa7a96=_0x2cce6b['start'],_0xe06bf6=_0x2cce6b[_0x2551('0xa0')];for(const {suggestion:_0x4eebf9,meta:_0x471f0a}of this[_0x2551('0xd3')](_0x2cce6b,'deletion'))if(_0x471f0a[_0x2551('0x63')]){if(_0x4eebf9[_0x2551('0xe8')]){let _0x28dcff=!0x0;for(const _0x14739f of _0x4eebf9[_0x2551('0x104')]()){if(_0x14739f[_0x2551('0xaa')](_0x2cce6b,!0x0))return _0x4eebf9;_0x2cce6b[_0x2551('0xaa')](_0x14739f)||(_0x28dcff=!0x1);}_0x28dcff&&_0x4eebf9['discard']();}else{const _0x2b5d2a=_0x4eebf9['getFirstRange']();if(_0x2b5d2a[_0x2551('0xaa')](_0x2cce6b,!0x0))return _0x4eebf9;_0xfa7a96=_0xfa7a96['isBefore'](_0x2b5d2a[_0x2551('0xae')])?_0xfa7a96:_0x2b5d2a[_0x2551('0xae')],_0xe06bf6=_0xe06bf6[_0x2551('0x7a')](_0x2b5d2a['end'])?_0xe06bf6:_0x2b5d2a[_0x2551('0xa0')],_0xc78841?_0x2b5d2a[_0x2551('0xae')][_0x2551('0x44')](_0xc78841['getFirstRange']()[_0x2551('0xae')])?(_0xc78841['removeMarkers'](),_0xc78841=_0x4eebf9):_0x4eebf9[_0x2551('0xa1')]():_0xc78841=_0x4eebf9;}}if(_0xc78841)return this['_setSuggestionRange'](_0xc78841,this[_0x2551('0x6d')][_0x2551('0x41')](_0xfa7a96,_0xe06bf6)),_0xc78841;{const _0x2359a1=_0x8909f2(),_0x526b73=this[_0x2551('0x6d')][_0x2551('0x41')](_0xfa7a96,_0xe06bf6),_0x7738e5=_0x8a1d19['id'],_0x4fbf5d=_0x5f576f?_0x2551('0x2d')+_0x5f576f:_0x2551('0x9a'),_0x22157e=this['_setSuggestionData']({'id':_0x2359a1,'type':_0x4fbf5d,'createdAt':new Date(),'authorId':_0x7738e5,'attributes':_0x1f01fb});return this[_0x2551('0xd5')](_0x4fbf5d,_0x2359a1,_0x7738e5,_0x526b73),_0x22157e;}}[_0x2551('0x84')](_0x956b5a,_0x9b6725=_0x2551('0x30'),_0xbdbcf7={}){const _0x5582f3=this['editor'][_0x2551('0xf5')]['get'](_0x2551('0x118'))['me'],_0x3b0ec4=_0x956b5a[_0x2551('0xe0')](_0x1f7e61=>new _0x59087f(_0x1f7e61[_0x2551('0xae')],_0x1f7e61['end'])),_0xda35c5=new Set();for(const _0x4ce167 of _0x3b0ec4)for(const {suggestion:_0x32ae26,meta:_0x30a446}of this[_0x2551('0xd3')](_0x4ce167,'insertion'))_0x30a446[_0x2551('0x63')]&&!_0x30a446[_0x2551('0x12c')]&&_0xda35c5['add'](_0x32ae26);for(const _0x1e692d of _0xda35c5)if(_0x1e692d[_0x2551('0xe8')]){const _0x279eb4=_0x1e692d[_0x2551('0x104')]();(!_0x1e692d['attributes']||!_0x1e692d[_0x2551('0xf1')][_0x2551('0x18')])&&(_0x279eb4[_0x2551('0xf')](_0x49622b=>_0x3b0ec4[_0x2551('0x55')](_0x492ae6=>_0x492ae6[_0x2551('0xaa')](_0x49622b,!0x0)))&&_0x1e692d['discard']());if(_0x3b0ec4[_0x2551('0xf')](_0x570d83=>_0x279eb4['some'](_0x1e7c43=>_0x1e7c43[_0x2551('0xaa')](_0x570d83,!0x0)))){const _0x1291e6=this[_0x2551('0x58')][_0x2551('0xf6')](_0x2551('0x9a'),_0x9b6725,'accept');return this[_0x2551('0x126')](()=>_0x1291e6(_0x956b5a,null,_0xbdbcf7)),null;}}else{const _0x4218de=_0x1e692d[_0x2551('0x45')]();_0x3b0ec4['some'](_0x1fd120=>_0x1fd120[_0x2551('0xaa')](_0x4218de,!0x0))&&_0x1e692d[_0x2551('0x92')]();if(_0x3b0ec4[_0x2551('0xf')](_0x104560=>_0x4218de[_0x2551('0xaa')](_0x104560,!0x0))){const _0x186d72=this[_0x2551('0x58')]['getSuggestionCallback'](_0x2551('0x9a'),_0x9b6725,_0x2551('0xd7'));return this[_0x2551('0x126')](()=>_0x186d72(_0x3b0ec4,null,_0xbdbcf7)),null;}}const _0x4fe51d=this[_0x2551('0x58')]['getSuggestionCallback']('deletion',_0x9b6725,_0x2551('0x81'));let _0x30a934=null;for(const _0x1db21e of this[_0x2551('0x12e')]())if(_0x1db21e[_0x2551('0x15')]['id']==_0x5582f3['id']&&_0x1db21e[_0x2551('0x11f')]&&_0x2551('0x9a')==_0x1db21e['type']&&_0x1db21e['subType']==_0x9b6725&&(_0x4fe51d(_0x1db21e[_0x2551('0x104')](),_0x3b0ec4)||_0x4fe51d(_0x3b0ec4,_0x1db21e[_0x2551('0x104')]()))){if(_0x30a934){if(_0x1db21e[_0x2551('0x129')]&&_0x1db21e[_0x2551('0x129')][_0x2551('0xca')])continue;for(const _0x3658e0 of _0x1db21e[_0x2551('0x104')]())_0x30a934[_0x2551('0x53')](_0x3658e0)||_0x30a934[_0x2551('0xa9')](_0x3658e0);_0x1db21e['removeMarkers']();}else{_0x30a934=_0x1db21e;for(const _0x277f44 of _0x3b0ec4)_0x1db21e[_0x2551('0x53')](_0x277f44)||_0x1db21e['addRange'](_0x277f44);}}if(_0x30a934)return _0x30a934;_0xda35c5[_0x2551('0xcc')]();for(const _0x55b67d of _0x3b0ec4)for(const {suggestion:_0x5494f9,meta:_0x168e7f}of this[_0x2551('0xd3')](_0x55b67d,_0x2551('0x9a')))_0x168e7f[_0x2551('0x63')]&&_0xda35c5['add'](_0x5494f9);for(const _0x1e958f of _0xda35c5){const _0x2bfa6d=_0x1e958f['getRanges']();if(!_0xbdbcf7||!_0xbdbcf7[_0x2551('0x18')]){if(_0x3b0ec4['every'](_0x23e36b=>_0x2bfa6d[_0x2551('0x55')](_0x324453=>_0x324453[_0x2551('0xaa')](_0x23e36b,!0x0))))return _0x1e958f;}(!_0x1e958f[_0x2551('0xf1')]||!_0x1e958f[_0x2551('0xf1')][_0x2551('0x18')])&&(_0x2bfa6d[_0x2551('0xf')](_0x14216f=>_0x3b0ec4[_0x2551('0x55')](_0x4235f6=>_0x4235f6[_0x2551('0xaa')](_0x14216f,!0x0)))&&_0x1e958f[_0x2551('0x92')]());}const _0x480b5d=_0x8909f2(),_0xc53366=_0x5582f3['id'],_0x1ba60b=_0x2551('0x2d')+_0x9b6725,_0x32c848=this[_0x2551('0xe')]({'id':_0x480b5d,'type':_0x1ba60b,'createdAt':new Date(),'authorId':_0xc53366,'attributes':_0xbdbcf7});for(const _0x4b1d20 of _0x3b0ec4)_0x4b1d20['detach'](),_0x4b1d20[_0x2551('0x6e')]||_0x2551('0xea')==_0x4b1d20[_0x2551('0x78')][_0x2551('0xa3')]||this[_0x2551('0xd5')](_0x1ba60b,_0x480b5d,_0xc53366,_0x4b1d20,_0x2600ac[_0x2551('0xde')]());return _0x32c848;}['_setSuggestionRange'](_0x4d76e1,_0x458a1c){const _0x1e6be9=_0x4d76e1[_0x2551('0xa5')]();this[_0x2551('0x6d')][_0x2551('0x6f')](_0x1a23e6=>{_0x1a23e6[_0x2551('0xe3')](_0x1e6be9,{'range':_0x458a1c});});}['_addThreadToSuggestion'](_0x22e228){const _0x50123f=_0x22e228['id'],_0x5f18d7=this[_0x2551('0x10e')]['config'][_0x2551('0x98')]('collaboration.channelId');this[_0x2551('0x10f')][_0x2551('0x9')](_0x50123f)||this[_0x2551('0x10f')][_0x2551('0x61')]({'channelId':_0x5f18d7,'threadId':_0x50123f});const _0x3216e8=this[_0x2551('0x10f')]['getCommentThread'](_0x50123f);_0x3216e8[_0x2551('0xd')](_0x2551('0xe6')),_0x3216e8[_0x2551('0xe6')]=!0x1,_0x22e228[_0x2551('0x129')]=_0x3216e8;}[_0x2551('0x47')](_0x34e6ce,_0x3cfe6a,_0x4612de,_0x496faf){if(_0x34e6ce[_0x2551('0x121')]!=_0x3cfe6a||_0x34e6ce[_0x2551('0x4')]!=_0x4612de||_0x34e6ce['author']['id']!=_0x496faf)throw this['editor']['enableReadOnlyMode'](_0x2551('0x32')),new _0x1d0d3c(_0x2551('0x32'),this);}['_cutOutSuggestionMarker'](_0x5546b2,_0xb83957){const _0x571cb7=_0x5546b2[_0x2551('0x45')]();if(_0xb83957[_0x2551('0x12d')](_0x571cb7))_0x5546b2[_0x2551('0xa1')]();else{if(_0x571cb7['containsRange'](_0xb83957)){const _0x362bc3=this[_0x2551('0x6d')][_0x2551('0x120')](_0xb83957['start']['nodeBefore'],_0x2551('0xa0'));this['_setSuggestionRange'](_0x5546b2,this[_0x2551('0x6d')]['createRange'](_0x571cb7[_0x2551('0xae')],_0x362bc3));const _0x4cd8e3=_0x8909f2(),_0x897b7d=_0x5546b2['author']['id'],_0x2ddb6a=_0x5546b2[_0x2551('0x121')]+':'+_0x5546b2[_0x2551('0x4')];this['_setSuggestionData']({'id':_0x4cd8e3,'type':_0x2ddb6a,'createdAt':new Date(),'authorId':_0x897b7d,'data':_0x5546b2[_0x2551('0xf7')],'attributes':_0x5546b2[_0x2551('0xf1')]});const _0x217dd3=this[_0x2551('0x6d')][_0x2551('0x120')](_0xb83957[_0x2551('0xa0')]['parent'],_0x2551('0x9e')),_0x2c906d=this[_0x2551('0x6d')][_0x2551('0x41')](_0x217dd3,_0x571cb7[_0x2551('0xa0')]);this[_0x2551('0xd5')](_0x2ddb6a,_0x4cd8e3,_0x897b7d,_0x2c906d);}else{if(_0x571cb7[_0x2551('0x3b')](_0xb83957['start'])){const _0x2194df=this[_0x2551('0x6d')][_0x2551('0x120')](_0xb83957[_0x2551('0xae')][_0x2551('0x5a')],_0x2551('0xa0'));this[_0x2551('0x2f')](_0x5546b2,this['_model'][_0x2551('0x41')](_0x571cb7['start'],_0x2194df));}else{const _0x294442=this[_0x2551('0x6d')]['createPositionAt'](_0xb83957[_0x2551('0xa0')][_0x2551('0x59')],_0x2551('0x9e'));this[_0x2551('0x2f')](_0x5546b2,this[_0x2551('0x6d')][_0x2551('0x41')](_0x294442,_0x571cb7[_0x2551('0xa0')]));}}}}[_0x2551('0x9d')](_0x27c01f){for(const {suggestion:_0x3d45cc,meta:_0x3f80bb}of this['_findSuggestions'](_0x27c01f,_0x2551('0x1b'))){if(!_0x3f80bb[_0x2551('0x63')])continue;const _0x57cc42=_0x3d45cc['getRanges']();for(const _0x3e328d of _0x57cc42)if(!_0x27c01f['getDifference'](_0x3e328d)[_0x2551('0xca')])return!0x0;}return!0x1;}[_0x2551('0xab')](_0x106d64){const _0x2d5882=this['editor']['plugins'][_0x2551('0x98')](_0x2551('0x118'))['getUser'](_0x106d64);if(!_0x2d5882)throw new _0x1d0d3c(_0x2551('0x9c'),this);return _0x2d5882;}[_0x2551('0xad')](_0x38777e){const _0x594c8a=this[_0x2551('0x10e')][_0x2551('0xf5')][_0x2551('0x98')]('Users'),_0x15407b='external:'+_0x38777e,_0x4aebf6=_0x594c8a[_0x2551('0x10a')](_0x15407b);return _0x4aebf6||_0x594c8a[_0x2551('0xc9')]({'id':_0x15407b,'name':_0x38777e});}['_createSuggestion'](_0x36ee35,_0x5432b1,_0x1a000f,_0x18c6fd,_0x2bf8cd){const _0x17ef1c=this[_0x2551('0xab')](_0x18c6fd);let _0x17d383=null;_0x2bf8cd&&_0x2bf8cd[_0x2551('0xdb')]&&(_0x17d383=this[_0x2551('0xad')](_0x2bf8cd[_0x2551('0xdb')][_0x2551('0x43')]));const _0x1a5317=this[_0x2551('0x58')][_0x2551('0xfc')](_0x36ee35,_0x5432b1,_0x1a000f,_0x17ef1c,_0x17d383,_0xa47273=>this[_0x2551('0x123')](_0x1a000f,{'attributes':_0xa47273}));return this[_0x2551('0xdc')](_0x1a5317,_0x2551('0xd7'),()=>{this[_0x2551('0x123')](_0x1a000f,{'state':_0x2551('0x42')});},{'priority':'high'}),this[_0x2551('0xdc')](_0x1a5317,'discard',()=>{this['_updateSuggestionData'](_0x1a000f,{'state':_0x2551('0xee')});},{'priority':_0x2551('0xdd')}),this['_suggestions']['set'](_0x1a000f,_0x1a5317),this[_0x2551('0x4c')][_0x2551('0x10d')](_0x1a5317,_0x2551('0x1')),_0x1a5317;}[_0x2551('0x12f')](_0x1c62b8){const _0x54134f=_0x1c62b8[_0x2551('0x87')](':');return{'group':_0x54134f[0x0],'type':_0x54134f[0x1],'subType':_0x54134f[_0x2551('0xca')]>=0x5?_0x54134f[0x2]:null,'id':_0x54134f[_0x2551('0xca')]<0x5?_0x54134f[0x2]:_0x54134f[0x3],'authorId':_0x54134f[_0x2551('0xca')]<0x5?_0x54134f[0x3]:_0x54134f[0x4],'markerCount':0x6==_0x54134f[_0x2551('0xca')]?_0x54134f[0x5]:null};}['_breakSuggestionMarker'](_0x483522,_0x169d54,_0x5f18d4){const _0x14e87c=_0x483522[_0x2551('0x45')](),_0xc93b6b=_0x14e87c[_0x2551('0xae')],_0x5bbefd=_0x14e87c[_0x2551('0xa0')];this['_setSuggestionRange'](_0x483522,this[_0x2551('0x6d')][_0x2551('0x41')](_0xc93b6b,_0x169d54));const _0x447a73=_0x8909f2(),_0x8e9210=_0x483522[_0x2551('0x15')]['id'],_0x4c1455=_0x483522[_0x2551('0x121')]+(_0x483522['subType']?':'+_0x483522[_0x2551('0x4')]:'');this[_0x2551('0xe')]({'id':_0x447a73,'type':_0x4c1455,'createdAt':new Date(),'authorId':_0x8e9210,'originalSuggestionId':_0x483522['id'],'attributes':_0x483522[_0x2551('0xf1')],'data':_0x483522[_0x2551('0xf7')]}),_0x2551('0xd6')==_0x483522[_0x2551('0x121')]&&(_0x5f18d4=this['_model'][_0x2551('0xfa')](_0x5f18d4[_0x2551('0x59')])),this[_0x2551('0xd5')](_0x4c1455,_0x447a73,_0x8e9210,this['_model']['createRange'](_0x5f18d4,_0x5bbefd));}[_0x2551('0xd3')](_0x3270ed,_0x5a2293=null){const _0x1332e8=[],_0xe32798=this[_0x2551('0x6d')][_0x2551('0x7b')],_0x2ffabc=this['editor'][_0x2551('0xf5')][_0x2551('0x98')]('Users')['me'];for(const _0x421f2e of this[_0x2551('0x12e')]())if(_0x421f2e[_0x2551('0x11f')]&&(!_0x5a2293||_0x421f2e[_0x2551('0x121')]==_0x5a2293))for(const _0x2c59b2 of _0x421f2e[_0x2551('0x104')]()){const _0x18b3d5=_0x3270ed[_0x2551('0xae')][_0x2551('0x12d')](_0x2c59b2[_0x2551('0xa0')])||_0x3270ed['end']['isEqual'](_0x2c59b2[_0x2551('0xae')]);if(_0x18b3d5||_0x3270ed['getIntersection'](_0x2c59b2)){const _0x5b6dc1=_0x3270ed[_0x2551('0xaa')](_0x2c59b2)&&yt(_0xe32798,_0x2c59b2[_0x2551('0xae')],_0x3270ed),_0x5b4ef3=_0x2c59b2['containsRange'](_0x3270ed)&&yt(_0xe32798,_0x3270ed[_0x2551('0xae')],_0x2c59b2);_0x1332e8['push']({'suggestion':_0x421f2e,'meta':{'isOwn':_0x2ffabc==_0x421f2e[_0x2551('0x15')],'isNextTo':_0x18b3d5,'isInsideObject':_0x5b6dc1,'containsRangeInObject':_0x5b4ef3}});break;}}return _0x1332e8;}[_0x2551('0xd5')](_0x1d6ad3,_0x552340,_0x156634,_0x2ae2c1,_0x1fe644=null){this[_0x2551('0x6d')]['change'](_0x8b054c=>{let _0x4fe269=_0x2551('0x88')+_0x1d6ad3+':'+_0x552340+':'+_0x156634;_0x1fe644&&(_0x4fe269=_0x4fe269+':'+_0x1fe644),_0x8b054c[_0x2551('0xbb')](_0x4fe269,{'range':_0x2ae2c1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x119542){const _0x337344=_0x119542[_0x2551('0x1c')],_0x3e2cdc=_0x119542[_0x2551('0xa4')];_0x119542[_0x2551('0x1c')]=null,null!=_0x337344&&(_0x337344['next']=null),_0x119542['next']=null,null!=_0x3e2cdc&&(_0x3e2cdc[_0x2551('0x1c')]=null),_0x2551('0xe5')==this[_0x2551('0x4c')][_0x2551('0x98')](_0x119542)&&(this[_0x2551('0x4c')][_0x2551('0x10d')](_0x119542,_0x2551('0x125')),this[_0x2551('0xd9')](_0x2551('0xed'),_0x119542,_0x337344,_0x3e2cdc));}[_0x2551('0xe')](_0x3f6c3d){const _0x441acd=_0x3f6c3d['id'],_0x37cf9f=this['addSuggestionData'](_0x3f6c3d);if(this['_adapter']&&this[_0x2551('0xbe')][_0x2551('0x79')]){const _0x2664d7=this[_0x2551('0x10e')]['plugins'][_0x2551('0x98')]('PendingActions'),_0x2501c5=_0x37cf9f[_0x2551('0x11a')],_0x4a71af=_0x37cf9f[_0x2551('0x4')]?_0x37cf9f['type']+':'+_0x37cf9f[_0x2551('0x4')]:_0x37cf9f[_0x2551('0x121')],_0x1870d6=this[_0x2551('0x10e')]['locale'],_0x110e27=_0x2664d7[_0x2551('0xf8')](_0x49a8a7(_0x1870d6,_0x2551('0xeb'))),_0x3b188f={'id':_0x441acd,'type':_0x4a71af,'hasComments':_0x2501c5,'data':_0x3f6c3d[_0x2551('0xf7')]||null,'originalSuggestionId':_0x3f6c3d[_0x2551('0x0')]||null,'attributes':_0x37cf9f[_0x2551('0xf1')]};this[_0x2551('0xbe')][_0x2551('0x79')](_0x3b188f)[_0x2551('0x10c')](_0x268960=>{_0x37cf9f[_0x2551('0x70')]=!0x0,_0x2664d7[_0x2551('0xd2')](_0x110e27),_0x268960&&_0x268960[_0x2551('0x105')]&&(this[_0x2551('0x111')][_0x2551('0x98')](_0x441acd)[_0x2551('0x105')]=_0x268960[_0x2551('0x105')]);})[_0x2551('0xd0')](_0x575821=>{throw _0x863670(_0x2551('0x1f')),this[_0x2551('0x10e')][_0x2551('0x115')][_0x2551('0x7')]({'isUndoable':!0x1},()=>{_0x37cf9f[_0x2551('0x92')]();}),_0x37cf9f[_0x2551('0x2c')](),this[_0x2551('0x111')][_0x2551('0x76')](_0x37cf9f['id']),this['_suggestionState'][_0x2551('0x76')](_0x37cf9f),_0x575821;});}return _0x37cf9f;}[_0x2551('0x123')](_0x234dfb,_0x162d03){const _0x2c3006=this['editor'][_0x2551('0xf5')][_0x2551('0x98')](_0x2551('0x5e')),_0x3480b4=this[_0x2551('0x111')][_0x2551('0x98')](_0x234dfb);if(this['_adapter']&&this[_0x2551('0xbe')][_0x2551('0x2b')]){if(_0x3480b4[_0x2551('0x70')]){const _0xef7110=_0x2c3006[_0x2551('0xf8')](_0x49a8a7(this[_0x2551('0x10e')][_0x2551('0x25')],'PENDING_ACTION_SUGGESTION'));this[_0x2551('0xbe')][_0x2551('0x2b')](_0x234dfb,_0x162d03)['then'](()=>{_0x2c3006['remove'](_0xef7110);});}else _0x3480b4['on'](_0x2551('0x99'),()=>{this['_updateSuggestionData'](_0x234dfb,_0x162d03);});}}[_0x2551('0xc')](_0x18f4f0){if(!this[_0x2551('0xbe')]||!this[_0x2551('0xbe')][_0x2551('0x4f')])throw new _0x1d0d3c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x18f4f0);}[_0x2551('0x40')](_0xb01d0){const {id:_0x131e4d,type:_0x1a2b37,subType:_0x51edc9,authorId:_0x43719e}=this[_0x2551('0x12f')](_0xb01d0),_0x26cd4b=this[_0x2551('0x111')][_0x2551('0x98')](_0x131e4d)||this['_createSuggestion'](_0x1a2b37,_0x51edc9,_0x131e4d,_0x43719e);switch(this[_0x2551('0x47')](_0x26cd4b,_0x1a2b37,_0x51edc9,_0x43719e),this[_0x2551('0x4c')][_0x2551('0x98')](_0x26cd4b)){case _0x2551('0x1'):this[_0x2551('0xc')](_0x131e4d)[_0x2551('0x10c')](_0x10af95=>{let _0x2605af=Promise[_0x2551('0xb4')]();_0x10af95[_0x2551('0x11a')]&&(_0x2605af=this[_0x2551('0x10f')][_0x2551('0x12b')]({'channelId':this[_0x2551('0x10e')][_0x2551('0xa7')][_0x2551('0x98')]('collaboration.channelId'),'threadId':_0x131e4d})),_0x2605af[_0x2551('0x10c')](()=>{this[_0x2551('0x91')](_0x10af95)['_saved']=!0x0;});}),this['_suggestionState'][_0x2551('0x10d')](_0x26cd4b,_0x2551('0x3c'));break;case _0x2551('0x125'):this[_0x2551('0x123')](_0x131e4d,{'state':_0x2551('0xfb')});case _0x2551('0x5c'):this['_suggestionState'][_0x2551('0x10d')](_0x26cd4b,_0x2551('0xe5')),this[_0x2551('0xd9')](_0x2551('0x60'),_0x26cd4b);break;case'ready':this[_0x2551('0xd9')](_0x2551('0x108'),_0x26cd4b);}return _0x26cd4b['addMarkerName'](_0xb01d0),_0x26cd4b;}[_0x2551('0x9b')](_0x17ef8b){const _0x22aa20=Array['from'](_0x17ef8b)[_0x2551('0x7d')](_0xc266e=>!_0xc266e[_0x2551('0xe8')]),_0x35572f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6241=>!_0x6241[_0x2551('0xe8')]),_0x2f2b49=_0x35572f['filter'](_0x407c59=>!_0x17ef8b[_0x2551('0x19')](_0x407c59)),_0x58b137=new Map(_0x35572f['map'](_0x52457f=>[_0x52457f,this['_suggestionFactory']['getSuggestionCallback'](_0x52457f[_0x2551('0x121')],_0x52457f['subType'],_0x2551('0x11'))])),_0x456408=new Map(_0x35572f['map'](_0x21a9f1=>[_0x21a9f1,_0x21a9f1[_0x2551('0x45')]()])),_0x2a180d=new Set(),_0x54273d=new Set();for(let _0x58ba99=0x0;_0x58ba99<_0x22aa20[_0x2551('0xca')];_0x58ba99++)_0x4214d0(_0x22aa20[_0x58ba99],_0x22aa20,_0x58ba99+0x1);for(let _0xfbe597=0x0;_0xfbe597<_0x22aa20[_0x2551('0xca')];_0xfbe597++)_0x4214d0(_0x22aa20[_0xfbe597],_0x2f2b49,0x0);for(let _0x14c6d4=0x0;_0x14c6d4<_0x22aa20[_0x2551('0xca')];_0x14c6d4++){const _0x3d6ac9=_0x22aa20[_0x14c6d4];!_0x54273d[_0x2551('0x19')](_0x3d6ac9)&&_0x3d6ac9[_0x2551('0x1c')]&&(_0x3d6ac9[_0x2551('0x1c')]['next']===_0x3d6ac9&&(_0x3d6ac9[_0x2551('0x1c')][_0x2551('0xa4')]=null),_0x3d6ac9[_0x2551('0x1c')]=null),!_0x2a180d[_0x2551('0x19')](_0x3d6ac9)&&_0x3d6ac9[_0x2551('0xa4')]&&(_0x3d6ac9[_0x2551('0xa4')][_0x2551('0x1c')]===_0x3d6ac9&&(_0x3d6ac9[_0x2551('0xa4')][_0x2551('0x1c')]=null),_0x3d6ac9[_0x2551('0xa4')]=null);}function _0x4214d0(_0x159f08,_0x279616,_0x405d81){for(let _0x1464a1=_0x405d81;_0x1464a1<_0x279616[_0x2551('0xca')];_0x1464a1++){const _0x2d680a=_0x38bab0(_0x159f08,_0x279616[_0x1464a1]);_0x2d680a&&(_0x2d680a[0x0]['next']=_0x2d680a[0x1],_0x2d680a[0x1]['previous']=_0x2d680a[0x0],_0x2a180d[_0x2551('0xf8')](_0x2d680a[0x0]),_0x54273d[_0x2551('0xf8')](_0x2d680a[0x1]));}}function _0x38bab0(_0x2647b0,_0x5da3db){if(_0x2647b0[_0x2551('0x15')]['id']!==_0x5da3db['author']['id'])return null;const _0xde6740=_0x58b137[_0x2551('0x98')](_0x2647b0)(_0x2647b0,_0x5da3db,_0x456408[_0x2551('0x98')](_0x2647b0),_0x456408[_0x2551('0x98')](_0x5da3db));if(!_0xde6740)return null;return _0x58b137[_0x2551('0x98')](_0x5da3db)(_0x2647b0,_0x5da3db,_0x456408[_0x2551('0x98')](_0x2647b0),_0x456408[_0x2551('0x98')](_0x5da3db))?_0xde6740[0x1]['commentThread']&&_0xde6740[0x1][_0x2551('0x129')][_0x2551('0xca')]?null:_0xde6740:null;}}[_0x2551('0x5b')](_0x3f9b7a){const _0x133181=Array[_0x2551('0xba')](_0x3f9b7a),_0x497b81=this['getSuggestions']({'skipNotAttached':!0x0}),_0x273889=_0x497b81[_0x2551('0x7d')](_0x1becfd=>!_0x3f9b7a[_0x2551('0x19')](_0x1becfd)),_0x5460a4=new Map(_0x133181[_0x2551('0xe0')](_0x3255fe=>[_0x3255fe,this[_0x2551('0x58')][_0x2551('0xf6')](_0x3255fe[_0x2551('0x121')],_0x3255fe['subType'],_0x2551('0x81'))])),_0x27c17f=new Map(_0x497b81[_0x2551('0xe0')](_0x52e328=>[_0x52e328,_0x52e328['getRanges']()]));for(let _0xb187d7=0x0;_0xb187d7<_0x133181[_0x2551('0xca')];_0xb187d7++){if(_0x43e9c7(this,_0x133181[_0xb187d7],_0x133181,_0xb187d7+0x1))return!0x0;}for(let _0x8a1414=0x0;_0x8a1414<_0x133181['length'];_0x8a1414++){if(_0x43e9c7(this,_0x133181[_0x8a1414],_0x273889,0x0))return!0x0;}return!0x1;function _0x43e9c7(_0x44d3f3,_0x3470f9,_0x54d120,_0x2f44b3){for(let _0x406441=_0x2f44b3;_0x406441<_0x54d120[_0x2551('0xca')];_0x406441++){const _0x57140d=_0x54d120[_0x406441];if(_0x57140d[_0x2551('0x121')]!==_0x3470f9[_0x2551('0x121')]||_0x57140d[_0x2551('0x15')]['id']!==_0x3470f9['author']['id']||_0x57140d[_0x2551('0x4')]!==_0x3470f9[_0x2551('0x4')])continue;const _0x276357=_0x5460a4[_0x2551('0x98')](_0x3470f9),_0x3716c3=_0x27c17f[_0x2551('0x98')](_0x3470f9),_0x2500ae=_0x27c17f[_0x2551('0x98')](_0x57140d),_0x5af0db=_0x3470f9[_0x2551('0x129')]&&_0x3470f9[_0x2551('0x129')][_0x2551('0xca')],_0x490e46=_0x57140d['commentThread']&&_0x57140d[_0x2551('0x129')][_0x2551('0xca')];if(!_0x5af0db&&_0x276357(_0x2500ae,_0x3716c3))return _0x44d3f3[_0x2551('0xbc')](_0x57140d,_0x3470f9),_0x27c17f[_0x2551('0x76')](_0x3470f9),!0x0;if(!_0x490e46&&_0x276357(_0x3716c3,_0x2500ae))return _0x44d3f3[_0x2551('0xbc')](_0x3470f9,_0x57140d),_0x27c17f[_0x2551('0x76')](_0x57140d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4e1c4d,_0x22f40a){if(_0x4e1c4d[_0x2551('0xe8')])for(const _0x4a567a of _0x22f40a['getRanges']())_0x4e1c4d[_0x2551('0xa9')](_0x4a567a);else{const _0x19c6af=_0x22f40a[_0x2551('0x45')]()[_0x2551('0xa0')];this[_0x2551('0x2f')](_0x4e1c4d,this['_model'][_0x2551('0x41')](_0x4e1c4d['getFirstRange']()['start'],_0x19c6af));}_0x22f40a[_0x2551('0xa1')]();}}_0x306206(d,_0x4c0cfe);class wt{constructor(_0x398dcf){this[_0x2551('0x11c')]=_0x398dcf,this[_0x2551('0x6d')]=_0x398dcf[_0x2551('0x115')],this[_0x2551('0x20')]=new Map(),this[_0x2551('0xb3')]=new Map(),this[_0x2551('0xd4')]();}[_0x2551('0xfc')](_0x5f4ac5,_0x2afafc,_0x3e86d5,_0x37fe91,_0x522de1,_0x23047a){return new _0x2600ac(this['_model'],{'type':_0x5f4ac5,'subType':_0x2afafc,'id':_0x3e86d5,'author':_0x37fe91,'externalAuthor':_0x522de1,'onAttributesChange':_0x23047a,'onAccept':(..._0x2ff57a)=>this['getSuggestionCallback'](_0x5f4ac5,_0x2afafc,'accept')(..._0x2ff57a),'onDiscard':(..._0x5f4c6a)=>this[_0x2551('0xf6')](_0x5f4ac5,_0x2afafc,'discard')(..._0x5f4c6a)});}[_0x2551('0x4a')](_0x385803,_0x4b1070,_0x142bb0,_0x105a09){const _0x449258=_0x385803+':'+_0x4b1070+':'+_0x142bb0;this[_0x2551('0x20')][_0x2551('0x10d')](_0x449258,_0x105a09);}[_0x2551('0xf6')](_0x18fcfe,_0x47c3f7,_0x13c80f){const _0x1c1759=_0x18fcfe+':'+_0x47c3f7+':'+_0x13c80f;return this[_0x2551('0x20')][_0x2551('0x98')](_0x1c1759)||this[_0x2551('0xb3')][_0x2551('0x98')](_0x18fcfe+':'+_0x13c80f);}[_0x2551('0xd4')](){const _0x49b22e=()=>{},_0x463a92=_0x220d9d=>{_0x220d9d['sort']((_0x24b532,_0x42a9f9)=>_0x24b532['start'][_0x2551('0x44')](_0x42a9f9[_0x2551('0xae')])?0x1:-0x1),this[_0x2551('0x6d')][_0x2551('0x6f')](_0x229e20=>{for(const _0x558d92 of _0x220d9d){let _0x4e2828;_0x4e2828=_0x558d92[_0x2551('0xa0')][_0x2551('0x112')]&&_0x558d92[_0x2551('0xa0')][_0x2551('0x59')]==_0x558d92[_0x2551('0xae')]['nodeAfter']?_0x229e20[_0x2551('0x72')](_0x558d92[_0x2551('0xae')][_0x2551('0x46')],'on'):_0x229e20['createSelection'](_0x558d92),this[_0x2551('0x6d')]['deleteContent'](_0x4e2828,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x262191=(_0x5c6b22,_0x50b485)=>{this[_0x2551('0x6d')][_0x2551('0x6f')](_0x100cac=>{const {commandName:_0x5a2e5d,commandParams:_0x54b3d7=[]}=_0x50b485,_0x4391a2=_0x5c6b22[0x0];if(_0x2551('0xea')==_0x4391a2['root'][_0x2551('0xa3')])return;const _0xe3423e=Array[_0x2551('0xba')](this[_0x2551('0x6d')][_0x2551('0x50')][_0x2551('0x11b')][_0x2551('0x104')]())[_0x2551('0xe0')](_0x1c23aa=>_0x59087f[_0x2551('0x36')](_0x1c23aa));bt(_0x4391a2)?_0x100cac[_0x2551('0x34')](this[_0x2551('0x6d')][_0x2551('0x41')](_0x4391a2[_0x2551('0xa0')])):_0x100cac[_0x2551('0x34')](_0x4391a2);for(const _0x2888bc of this[_0x2551('0x11c')]['commands'][_0x2551('0xd1')]())_0x2888bc[_0x2551('0x114')]();_0x54b3d7['push']({'forceDefaultExecution':!0x0}),this[_0x2551('0x11c')][_0x2551('0x26')](_0x5a2e5d,..._0x54b3d7);const _0x545023=_0xe3423e['filter'](_0x4ad0bd=>_0x2551('0xea')!=_0x4ad0bd[_0x2551('0x78')][_0x2551('0xa3')]);_0x545023[_0x2551('0xca')]>0x0&&_0x100cac[_0x2551('0x34')](_0x545023);for(const _0x29ed41 of _0xe3423e)_0x29ed41[_0x2551('0x122')]();});},_0x1aaa9d=(_0xf9b59c,_0x2f829d)=>0x1==_0xf9b59c[_0x2551('0xca')]&&0x1==_0x2f829d['length']&&_0xf9b59c[0x0]['end']['isEqual'](_0x2f829d[0x0][_0x2551('0xae')]),_0x462c56=(_0x3a0b81,_0x32dd3d,_0x1a0f7b,_0x1c3af6)=>Dt(_0x3a0b81,_0x32dd3d,_0x1a0f7b,_0x1c3af6,this[_0x2551('0x6d')])?[_0x3a0b81,_0x32dd3d]:Dt(_0x32dd3d,_0x3a0b81,_0x1c3af6,_0x1a0f7b,this['_model'])?[_0x32dd3d,_0x3a0b81]:null;this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x75'),_0x49b22e),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xb8'),_0x463a92),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x8e'),_0x1aaa9d),this['_defaultCallbacks'][_0x2551('0x10d')](_0x2551('0x65'),_0x462c56),this['_defaultCallbacks']['set'](_0x2551('0x90'),_0x463a92),this['_defaultCallbacks'][_0x2551('0x10d')](_0x2551('0x57'),_0x49b22e),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xef'),_0x1aaa9d),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x62'),_0x462c56),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xa8'),_0x262191),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x100'),_0x49b22e),this[_0x2551('0xb3')]['set'](_0x2551('0x6a'),_0x1aaa9d),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xf9'),_0x49b22e),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0x106'),_0x262191),this[_0x2551('0xb3')]['set'](_0x2551('0xc8'),_0x49b22e),this['_defaultCallbacks']['set'](_0x2551('0x68'),_0x1aaa9d),this[_0x2551('0xb3')][_0x2551('0x10d')](_0x2551('0xb6'),_0x49b22e);}}function yt(_0x2298ac,_0x3f97df,_0x17ff0e){for(const _0x3dc28d of _0x3f97df[_0x2551('0x59')][_0x2551('0x52')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3dc28d[_0x2551('0x78')]==_0x3dc28d)return!0x1;if(!_0x17ff0e['containsItem'](_0x3dc28d))return!0x1;if(_0x2298ac[_0x2551('0x73')](_0x3dc28d)||_0x2298ac[_0x2551('0x27')](_0x3dc28d))return!0x0;}}function bt(_0x5a2094){return _0x5a2094[_0x2551('0xa0')]['parent']==_0x5a2094['start'][_0x2551('0x46')]&&_0x5a2094[_0x2551('0xa0')][_0x2551('0x3e')];}function St(_0x3b6f85,_0x562a12,_0x498c0a,_0x3cf0d4){const _0x189390=_0x5f1960=>!_0x5f1960[_0x2551('0x93')]['is']('textProxy')&&!_0x3cf0d4[_0x2551('0x73')](_0x5f1960['item']),_0x4191fb=_0x3b6f85[_0x2551('0xae')][_0x2551('0xb5')](_0x189390),_0x5f0680=_0x3b6f85[_0x2551('0xa0')][_0x2551('0xb5')](_0x189390,{'direction':'backward'});return(!_0x3b6f85['start'][_0x2551('0x12d')](_0x4191fb)||!_0x3b6f85[_0x2551('0xa0')]['isEqual'](_0x5f0680))&&(_0x4191fb[_0x2551('0x44')](_0x5f0680)?_0x498c0a[_0x2551('0xe3')](_0x562a12,{'range':_0x498c0a[_0x2551('0x41')](_0x4191fb,_0x5f0680)}):_0x498c0a[_0x2551('0x113')](_0x562a12),!0x0);}function It(_0x92b765){return _0x3bfa65(_0x92b765);}function vt(_0x4841ae){const _0x4b3ad5=_0x4841ae[_0x2551('0xae')][_0x2551('0x46')];return _0x4b3ad5&&_0x4b3ad5['is'](_0x2551('0xc6'));}function At(_0x43c8c7,_0x3e5c2b){const _0x1f5f46=_0x3e5c2b[_0x2551('0x7b')][_0x2551('0x73')](_0x43c8c7)||_0x3e5c2b['schema'][_0x2551('0x14')](_0x43c8c7);return _0x3e5c2b[_0x2551('0x41')](_0x3e5c2b[_0x2551('0x120')](_0x43c8c7,_0x2551('0x8a')),_0x1f5f46?_0x3e5c2b['createPositionAfter'](_0x43c8c7):_0x3e5c2b[_0x2551('0x120')](_0x43c8c7,_0x2551('0xa0')));}function Dt(_0x2803dd,_0x44fb1b,_0x4b9f4b,_0x56b920,_0x369598){if(_0x4b9f4b[_0x2551('0xa0')]['isEqual'](_0x56b920['start']))return!0x0;if(_0x2803dd[_0x2551('0x121')]!=_0x44fb1b[_0x2551('0x121')])return!0x1;if(!_0x4b9f4b[_0x2551('0xa0')][_0x2551('0x1d')](_0x56b920['start']))return!0x1;const _0x359c45=_0x369598[_0x2551('0x41')](_0x4b9f4b[_0x2551('0xa0')],_0x56b920[_0x2551('0xae')])[_0x2551('0xb1')]();for(const _0x25753c of _0x359c45)if([_0x2551('0x124'),'elementEnd'][_0x2551('0x1e')](_0x25753c[_0x2551('0x121')])&&_0x369598[_0x2551('0x7b')]['isLimit'](_0x25753c[_0x2551('0x93')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x295c=['change:data','author','addRange','formatInline:accept','addMarker:suggestion:formatBlock','_isForcedDefaultExecutionBlock','values','markerName','split','writer','editingDowncast','listenTo','_enabledCommands','markBlockFormat','filter','_joinSuggestions','_findSuggestions','_removeSuggestion','formatBlock:','differ','root','config','_createSuggestion','_splitMarkerName','buildSuggestion','acceptAllSuggestions','upcast','insertion:chain','_addSuggestionMarker','fire','Users','_onDiscard','detach','isSelectable','discard','getCommentThread','length','_descriptionFactory','containsRange','hasComments','removeMarker:suggestion:formatBlock','deletion:','deletion:accept','insert','isOwn','rootName','addHighlight','deleteContent','widget','showSuggestionHighlights','formatBlock:join','activeMarkers','position','open','every','updateSuggestion','trackChanges','markerToHighlight','isIntersectingWithRange','createPositionAfter','refresh','_suggestions','markerNameToElements','move','group','get','getRange','change','registerPostFixer','_handleNewSuggestionMarker','removed','getWalker','isAfter','has','_checkSuggestionCorrectness','conversion','multipleBlocks','_suggestionState','size','isInsideObject','formatInline','removeClass','isTouching','createSelection','_getSuggestionData','insertion:','from','start','CommentsRepository','isCollapsed','elementStart','formatInline:chain','ready','mapper','addUser','getLastMatchingPosition','addMarker:suggestion','accepted','ck-suggestion-marker-','containsPosition','stopListening','elementToElement','getNearestSelectionRange','isExternal','sort','isObject','some','textProxy','_defaultCallbacks','locale','discardSuggestion','high','getSuggestion','insertion:discard','getCustomProperty','delete','getSuggestions','getAncestors','TrackChangesEditing','formatBlock:chain','after','for','markDeletion','attributes','_cutOutSuggestionMarker','markMultiRangeDeletion','join','track-changes-suggestion-data-mismatch','@external','fromCharCode','getChangedMarkers','oldRange','acceptSelectedSuggestions','addMarkerName','pluginName','addMarker','name','discardAllSuggestions','_refreshSuggestionsChain','insertion:accept','_registerDefaultCallbacks','elementEnd','addSuggestion','remove','add','_setSuggestionRange','ck-suggestion-marker','isBlock','removeComment','setAttribute','isUndo','deletion:discard','getFirstRange','commentThread','getShiftedBy','isBefore','model','normal','multi','suggestion','createRange','_suggestionFactory','lowest','addCommentThread','toJSON','formatInline:discard','removeAttribute','containsRangeInObject','ck-suggestion-marker--active','range','fetchCommentThread','document','_commentsRepository','batch','removeMarker','markInsertion','acceptSuggestion','isNextTo','$marker','track-changes-suggestion-not-found','set','discardSelectedSuggestions','_rangeIsInLocalUserInsertion','newRange','_joinWithAdjacentSuggestions','getUser','execute','selection','element','setSelection','track-changes-adapter-already-set','reconvertMarker','isEqual','enableCommand','_adapter','deletion:join','addSuggestionData','nodeAfter','isDocumentOperation','adapter','data','isAtStart','enableReadOnlyMode','createRangeIn','suggestionLoaded','then','dataDowncast','updateMarker','howMany','formatBlock','push','plugins','deletion:chain','commandName','createPositionAt','isLimit','hasSuggestion','accept','parent','creator','_breakSuggestionMarker','marker-count','item','_editor','isRemovable','substr','getSuggestionCallback','data-suggestion','authoredAt','getIntersection','editor','formatBlock:discard','includes','dataReady','nodeBefore','isInContent','suggestionUnloaded','_getAuthorFromId','skipNestingCheck','toViewElement','createdAt','createElement','suggestion:','next','targetPosition','previous','_setSuggestionData','getFirstMarker','registerCustomCallback','clear','addClass','isMultiRange','PendingActions','isAtEnd','markers','consume','external:','splitPosition','dataToMarker','$graveyard','originalSuggestionId','notReady','getAllAdjacentSuggestions','addComment','_saved','getDifference','formatInline:','_updateSuggestionData','trackChangesCommand','init','end','forceDefaultExecution','_getExternalAuthor','splice','suggestionChanged','map','subType','enqueueChange','collaboration.channelId','consumable','removeMarkers','insertion','getAttribute','deletion','unbindElementFromMarkerName','resolve','backward','_addThreadToSuggestion','getMultiRangeId','type','containsItem','getRanges','_model','containerElement','setTo','editing','insertContent','PENDING_ACTION_SUGGESTION','markerToData','_customCallbacks','commands','value','schema','formatGroupId','forward','ck-suggestion-marker-formatBlock','stop'];(function(_0x25f43d,_0x295c9d){const _0x11ded5=function(_0x15d19d){while(--_0x15d19d){_0x25f43d['push'](_0x25f43d['shift']());}};_0x11ded5(++_0x295c9d);}(_0x295c,0x103));const _0x11de=function(_0x25f43d,_0x295c9d){_0x25f43d=_0x25f43d-0x0;let _0x11ded5=_0x295c[_0x25f43d];return _0x11ded5;};import{Plugin as _0x6e7483,PendingActions as _0x123556}from'ckeditor5/src/core';import{LiveRange as _0x41c412}from'ckeditor5/src/engine';import{CKEditorError as _0x5bad98,uid as _0x3979e6,priorities as _0x2bf86b,EmitterMixin as _0x405ccc,mix as _0x235fb4,logWarning as _0x2f869b}from'ckeditor5/src/utils';import{toWidget as _0x2ff2ae}from'ckeditor5/src/widget';import{Users as _0x5dd2fc}from'ckeditor5-collaboration/src/collaboration-core';import _0xd56392 from'./commands/trackchangescommand';import _0x8836e5 from'./commands/acceptsuggestioncommand';import _0x3d8f6f from'./commands/discardsuggestioncommand';import _0x129bde from'./commands/executeonallsuggestionscommand';import _0x6e4c39 from'./commands/executeonselectedsuggestionscommand';import _0x4b41f2 from'./suggestion';import _0x455a0b from'./suggestiondescriptionfactory';import _0x582043 from'./integrations/alignment';import _0x7d74df from'./integrations/basicstyles';import _0x13fb73 from'./integrations/blockquote';import _0x843860 from'./integrations/ckbox';import _0x3d4aca from'./integrations/codeblock';import _0x4bfbda from'./integrations/comments';import _0x158fe3 from'./integrations/deletecommand';import _0x16d122 from'./integrations/documentlist';import _0x2a53b1 from'./integrations/entercommand';import _0x400819 from'./integrations/font';import _0x16b713 from'./integrations/heading';import _0x52a65c from'./integrations/highlight';import _0x35cb34 from'./integrations/horizontalline';import _0x4afb91 from'./integrations/htmlembed';import _0x4aa2db from'./integrations/image';import _0x2795f2 from'./integrations/importword';import _0x26ff0f from'./integrations/indent';import _0x239c90 from'./integrations/inputcommand';import _0x45baf2 from'./integrations/link';import _0x462e30 from'./integrations/list';import _0x55b386 from'./integrations/mediaembed';import _0x38ae42 from'./integrations/mention';import _0x37e565 from'./integrations/pagebreak';import _0x27826d from'./integrations/paragraph';import _0x19299f from'./integrations/removeformat';import _0x32ab32 from'./integrations/restrictededitingmode';import _0x438214 from'./integrations/shiftentercommand';import _0x562c50 from'./integrations/standardeditingmode';import _0x377414 from'./integrations/style';import _0x112dfb from'./integrations/table';import _0x5e2e0a from'./integrations/tablemergesplit';import _0x4e2906 from'./integrations/tableheadings';import _0x227203 from'./integrations/tableclipboard';import _0x3e7d14 from'./integrations/title';import _0x293841 from'./integrations/undo';import{hashObject as _0x4886f8}from'@ckeditor/ckeditor5-collaboration-core';import{getTranslation as _0x2923a2}from'./utils/common-translations';import _0xfa197c from'./integrations/tablecaption';export default class p extends _0x6e7483{static get['requires'](){return['CommentsRepository',_0x5dd2fc,_0x123556,_0x582043,_0x7d74df,_0x13fb73,_0x843860,_0x3d4aca,_0x4bfbda,_0x158fe3,_0x16d122,_0x2a53b1,_0x400819,_0x16b713,_0x52a65c,_0x35cb34,_0x4afb91,_0x4aa2db,_0x2795f2,_0x26ff0f,_0x239c90,_0x45baf2,_0x462e30,_0x55b386,_0x38ae42,_0x37e565,_0x27826d,_0x19299f,_0x32ab32,_0x438214,_0x562c50,_0x377414,_0x112dfb,_0x5e2e0a,_0x4e2906,_0xfa197c,_0x227203,_0x3e7d14,_0x293841];}static get[_0x11de('0xb6')](){return _0x11de('0xa6');}constructor(_0x38f6e4){function _0x5b06b6(_0x5d08cd){return _0x5d08cd['map'](_0xcc16d9=>String[_0x11de('0xb1')](_0xcc16d9))[_0x11de('0xae')]('');}super(_0x38f6e4),this[_0x11de('0xe4')](_0x11de('0x63'),[]),this['on']('change:activeMarkers',(_0x5859da,_0x580cbf,_0xc2f8,_0x52a23a)=>{this[_0x11de('0x21')][_0x11de('0x73')](()=>{for(const _0xd073a9 of[..._0x52a23a,..._0xc2f8])this['_model'][_0x11de('0x12e')]['has'](_0xd073a9)&&_0x38f6e4[_0x11de('0x24')][_0x11de('0xef')](_0xd073a9);});}),this[_0x11de('0x55')]=new _0x455a0b(this[_0x11de('0x116')]['model'][_0x11de('0x2b')],this[_0x11de('0x116')]['locale']),this[_0x11de('0xf2')]=null,this['_suggestionFactory']=new yt(this['editor']),this[_0x11de('0x6d')]=new Map(),this[_0x11de('0xdc')]=_0x38f6e4[_0x11de('0x103')][_0x11de('0x71')](_0x11de('0x88')),this[_0x11de('0x3c')]=new Set(),this[_0x11de('0x21')]=this[_0x11de('0x116')][_0x11de('0xcc')],this[_0x11de('0x7d')]=new WeakMap(),this[_0x11de('0x35')]=!0x1,this[_0x5b06b6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5b06b6([0x34,0x30,0x34,0x34,0x32,0x32,0x32,0x38]);}[_0x11de('0xa')](){const _0x3e885f=this[_0x11de('0x116')];_0x3e885f[_0x11de('0x7b')][_0x11de('0xa9')](_0x11de('0x3a'))[_0x11de('0x69')]({'model':'suggestion','view':_0x5a4412=>{const {id:_0x5b0b6a,type:_0x45872f}=this[_0x11de('0x47')](_0x5a4412[_0x11de('0x37')]),_0x133c6a=['ck-suggestion-marker',_0x11de('0x92')+_0x45872f];let _0x5bf601=0xbb8;return this['activeMarkers'][_0x11de('0x118')](_0x5a4412[_0x11de('0x37')])&&(_0x133c6a[_0x11de('0x102')]('ck-suggestion-marker--active'),_0x5bf601=0xbc2),_0x11de('0x18')==_0x45872f&&(_0x5bf601+=0x5),{'classes':_0x133c6a,'attributes':{'data-suggestion':_0x5b0b6a},'priority':_0x5bf601};}}),_0x3e885f['conversion'][_0x11de('0xa9')]('dataDowncast')[_0x11de('0xc0')](_0x434249=>{_0x434249['on'](_0x11de('0x90'),(_0x4dec7e,_0x382274,_0x5e4e7c)=>{if(!_0x5e4e7c['options'][_0x11de('0x61')])return;const _0xa8ef6=_0x382274[_0x11de('0x10e')];if(!_0xa8ef6)return;const _0x3f8c7e=_0x5e4e7c[_0x11de('0x8d')]['toViewElement'](_0xa8ef6);_0x3e885f[_0x11de('0xcc')][_0x11de('0x2b')][_0x11de('0x99')](_0xa8ef6)&&_0x3f8c7e&&!_0x3f8c7e[_0x11de('0xa2')](_0x11de('0x60'))&&_0x3f8c7e['is'](_0x11de('0x22'))&&_0x2ff2ae(_0x3f8c7e,_0x5e4e7c[_0x11de('0x39')]);},{'priority':_0x11de('0x9f')});}),_0x3e885f['conversion'][_0x11de('0xa9')](_0x11de('0xfe'))[_0x11de('0x69')]({'model':'suggestion','view':(_0x305fd9,_0x4f338b)=>{if(!_0x4f338b['options'][_0x11de('0x61')])return null;const {type:_0x278b15}=this[_0x11de('0x47')](_0x305fd9['markerName']);return{'classes':['ck-suggestion-marker',_0x11de('0x92')+_0x278b15],'priority':0xbb8};}});const _0x549bd3=({showActiveMarkers:_0x5ed6e3=!0x0}={})=>(_0x153a3e,_0x24faf7,_0xfb65c9)=>{if(!_0x24faf7[_0x11de('0x10e')])return;if(_0x24faf7[_0x11de('0x10e')]['is'](_0x11de('0xeb')))return void _0xfb65c9['consumable'][_0x11de('0x12f')](_0x24faf7['item'],_0x153a3e[_0x11de('0xb8')]);const _0x522b88=_0xfb65c9['mapper'][_0x11de('0x11f')](_0x24faf7[_0x11de('0x10e')]);if(!(_0x24faf7[_0x11de('0x10e')]['is'](_0x11de('0xec'))&&_0x3e885f['model'][_0x11de('0x2b')][_0x11de('0xc3')](_0x24faf7[_0x11de('0x10e')])&&!_0x522b88[_0x11de('0xa2')]('addHighlight')))return;const {id:_0xd1710f}=this[_0x11de('0x47')](_0x24faf7['markerName']);_0xfb65c9[_0x11de('0x39')][_0x11de('0x12a')]([_0x11de('0xc2'),_0x11de('0x2e')],_0x522b88),_0xfb65c9['writer'][_0x11de('0xc5')]('data-suggestion',_0xd1710f,_0x522b88),_0xfb65c9['mapper']['bindElementToMarker'](_0x522b88,_0x24faf7['markerName']),_0x5ed6e3&&(this['activeMarkers'][_0x11de('0x118')](_0x24faf7[_0x11de('0x37')])?_0xfb65c9['writer'][_0x11de('0x12a')](_0x11de('0xd8'),_0x522b88):_0xfb65c9[_0x11de('0x39')][_0x11de('0x81')](_0x11de('0xd8'),_0x522b88));for(const _0x37155f of _0x3e885f[_0x11de('0xcc')][_0x11de('0xfb')](_0x24faf7[_0x11de('0x10e')])['getItems']())_0xfb65c9[_0x11de('0x14')]['consume'](_0x37155f,_0x153a3e[_0x11de('0xb8')]);_0xfb65c9[_0x11de('0x14')][_0x11de('0x12f')](_0x24faf7['item'],_0x153a3e[_0x11de('0xb8')]);};_0x3e885f[_0x11de('0x7b')]['for'](_0x11de('0xfe'))[_0x11de('0xc0')](_0xbc84bd=>{_0xbc84bd['on'](_0x11de('0x34'),(_0x300127,_0x548c87,_0x58d3c3)=>{_0x58d3c3['options'][_0x11de('0x61')]&&_0x549bd3({'showActiveMarkers':!0x1})(_0x300127,_0x548c87,_0x58d3c3);},{'priority':'highest'});}),_0x3e885f[_0x11de('0x7b')]['for'](_0x11de('0xfe'))[_0x11de('0x27')]({'model':_0x11de('0xcf'),'view':(_0x15f72a,_0x19a74d)=>_0x19a74d['options'][_0x11de('0x61')]?null:{'group':_0x11de('0xcf'),'name':_0x15f72a[_0x11de('0x111')](_0x11de('0xcf')[_0x11de('0x54')]+0x1)}}),_0x3e885f[_0x11de('0x7b')][_0x11de('0xa9')](_0x11de('0x4a'))[_0x11de('0x95')]({'view':{'name':_0x11de('0xcf'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x4c537b,{writer:_0x6385bc})=>{let _0x2c50b4=_0x11de('0x122')+_0x4c537b['getAttribute']('suggestion-type')+':'+_0x4c537b[_0x11de('0x17')]('id');return _0x4c537b['getAttribute'](_0x11de('0x10d'))&&(_0x2c50b4+=':'+_0x4c537b[_0x11de('0x17')](_0x11de('0x10d'))),_0x6385bc[_0x11de('0x121')](_0x11de('0xe2'),{'data-name':_0x2c50b4});}}),_0x3e885f['conversion'][_0x11de('0xa9')](_0x11de('0x4a'))[_0x11de('0x132')]({'view':'suggestion'}),_0x3e885f['conversion'][_0x11de('0xa9')]('editingDowncast')[_0x11de('0xc0')](_0xda17b7=>{_0xda17b7['on']('addMarker:suggestion:formatBlock',_0x549bd3(),{'priority':'high'});}),_0x3e885f[_0x11de('0x7b')][_0x11de('0xa9')]('editingDowncast')[_0x11de('0xc0')](_0x2226c0=>{_0x2226c0['on'](_0x11de('0x58'),(_0x366ff1,_0x209c70,_0x4eb27d)=>{const _0x2b8b47=_0x4eb27d[_0x11de('0x8d')][_0x11de('0x6e')](_0x209c70['markerName']);if(_0x2b8b47)for(const _0x509d82 of _0x2b8b47)_0x509d82[_0x11de('0xa2')](_0x11de('0x5e'))||(_0x4eb27d['writer']['removeClass']([_0x11de('0xc2'),'ck-suggestion-marker-formatBlock',_0x11de('0xd8')],_0x509d82),_0x4eb27d[_0x11de('0x39')][_0x11de('0xd6')](_0x11de('0x113'),_0x509d82),_0x4eb27d[_0x11de('0x8d')][_0x11de('0x19')](_0x509d82,_0x209c70[_0x11de('0x37')]));},{'priority':_0x11de('0x9f')});}),_0x3e885f[_0x11de('0xcc')][_0x11de('0xdb')][_0x11de('0x74')](_0x578243=>{let _0x1e461a=!0x1;const _0x435bc8=Array['from'](_0x3e885f[_0x11de('0xcc')][_0x11de('0xdb')][_0x11de('0x43')][_0x11de('0xb2')]()),_0x1d51a4=new Set();for(const {name:_0x30aa10,data:_0x334791}of _0x435bc8){const {group:_0x2d44d7,type:_0x5c2b29,id:_0x2afafb}=this[_0x11de('0x47')](_0x30aa10);if('suggestion'!==_0x2d44d7)continue;const _0x196d3e=this[_0x11de('0x6d')]['get'](_0x2afafb);if(null!=_0x334791[_0x11de('0xe7')]){_0x11de('0x80')==_0x5c2b29&&(_0x1e461a=_0x1e461a||It(_0x334791[_0x11de('0xe7')],_0x30aa10,_0x578243,_0x3e885f[_0x11de('0xcc')][_0x11de('0x2b')]));if(_0x334791[_0x11de('0xe7')][_0x11de('0x89')]||_0x11de('0x0')==_0x334791[_0x11de('0xe7')][_0x11de('0x44')]['rootName']||_0x11de('0x101')==_0x5c2b29&&!At(_0x334791['newRange'])||_0x11de('0x18')==_0x5c2b29&&!(!St(_0x2191c4=_0x334791[_0x11de('0xe7')])&&!function(_0x4c4678){return _0x4c4678[_0x11de('0x87')][_0x11de('0x10a')]==_0x4c4678[_0x11de('0xb')][_0x11de('0x11a')]&&_0x4c4678['start'][_0x11de('0x12d')];}(_0x2191c4)))_0x578243[_0x11de('0xde')](_0x30aa10),_0x1e461a=!0x0;else{if(!_0x196d3e||!_0x196d3e[_0x11de('0x11b')])continue;_0x1d51a4[_0x11de('0xc0')](_0x196d3e);}}}var _0x2191c4;return _0x1d51a4[_0x11de('0x7e')]>0x0&&(_0x1e461a=!!this[_0x11de('0xe8')](_0x1d51a4)||_0x1e461a),_0x1e461a;}),_0x3e885f[_0x11de('0xcc')][_0x11de('0xdb')][_0x11de('0x74')](_0x24b354=>{let _0x4647b2=!0x1;for(const _0x38d224 of _0x3e885f[_0x11de('0xcc')][_0x11de('0xdb')]['differ']['getChanges']()){if(_0x11de('0x5b')!=_0x38d224[_0x11de('0x1e')])continue;const _0x3d5876=_0x38d224[_0x11de('0x64')][_0x11de('0xca')](_0x38d224[_0x11de('0x54')]);if(_0x3d5876['isAtEnd'])for(const _0x5618bd of this['_suggestions'][_0x11de('0x36')]()){if(_0x5618bd[_0x11de('0x12b')]||!_0x5618bd[_0x11de('0x11b')])continue;if(_0x11de('0x101')!=_0x5618bd[_0x11de('0x1e')])continue;const _0x21c80d=_0x5618bd['getFirstRange']();if(_0x21c80d['start'][_0x11de('0x10a')]!=_0x21c80d[_0x11de('0xb')][_0x11de('0x10a')]&&_0x21c80d['end']['isEqual'](_0x38d224[_0x11de('0x64')])){const _0x6323d5=_0x3e885f[_0x11de('0xcc')][_0x11de('0xd0')](_0x21c80d[_0x11de('0x87')],_0x3d5876);_0x24b354[_0x11de('0xff')](_0x5618bd[_0x11de('0x127')](),{'range':_0x6323d5}),_0x4647b2=!0x0;}}}return _0x4647b2;}),_0x3e885f[_0x11de('0xcc')][_0x11de('0x12e')]['on']('update:suggestion',(_0x404d97,_0x37280c,_0x71cc6c)=>{if(null==_0x71cc6c){const {id:_0x25dcc3}=this[_0x11de('0x47')](_0x37280c[_0x11de('0xb8')]),_0x2707e8=this[_0x11de('0x6d')][_0x11de('0x71')](_0x25dcc3);_0x2707e8&&_0x2707e8[_0x11de('0xb5')](_0x37280c[_0x11de('0xb8')]);}}),_0x3e885f[_0x11de('0xcc')][_0x11de('0xdb')]['on'](_0x11de('0x30'),()=>{const _0x4a3c5e=Array[_0x11de('0x86')](_0x3e885f['model'][_0x11de('0xdb')][_0x11de('0x43')]['getChangedMarkers']())[_0x11de('0x3e')](_0x49e544=>_0x11de('0xcf')===this['_splitMarkerName'](_0x49e544['name'])[_0x11de('0x70')]);if(0x0===_0x4a3c5e['length'])return;_0x4a3c5e['sort']((_0x13c57b,_0x42e3c5)=>{const _0x318c65=_0x13c57b['data'][_0x11de('0xb3')],_0x18011c=_0x42e3c5[_0x11de('0xf8')]['oldRange'];return null===_0x318c65&&null===_0x18011c?0x0:null===_0x318c65&&null!==_0x18011c?-0x1:null!==_0x318c65&&null===_0x18011c?0x1:_0x318c65[_0x11de('0x87')][_0x11de('0xcb')](_0x18011c[_0x11de('0x87')])?-0x1:0x1;});const _0x5b3ca2=new Set(),_0x5ed855=new Set();for(const {name:_0x3f3320,data:_0x4d0017}of _0x4a3c5e){const {id:_0xe7bc75}=this['_splitMarkerName'](_0x3f3320);if(null===_0x4d0017[_0x11de('0xb3')]){const _0x4bb1d4=this[_0x11de('0x75')](_0x3f3320);_0x5ed855['add'](_0x4bb1d4);}else{const _0x117d47=this[_0x11de('0x6d')][_0x11de('0x71')](_0xe7bc75);null!==_0x4d0017[_0x11de('0xe7')]||_0x117d47[_0x11de('0x11b')]?(_0x5b3ca2['add'](_0x117d47['head']),_0x5ed855[_0x11de('0xc0')](_0x117d47)):this[_0x11de('0x41')](_0x117d47);}}_0x5ed855[_0x11de('0x7e')]>0x0&&this[_0x11de('0xba')](_0x5ed855);for(const _0x34b164 of _0x5b3ca2)this[_0x11de('0x4d')](_0x11de('0xf'),_0x34b164);}),_0x3e885f[_0x11de('0xcc')]['on']('applyOperation',(_0x2046e5,_0x6ff2b8)=>{const _0x1c0080=_0x6ff2b8[0x0];if(!this[_0x11de('0x6d')][_0x11de('0x7e')])return;if(!_0x1c0080[_0x11de('0xf6')])return;if(_0x1c0080['batch'][_0x11de('0xc6')]||!_0x1c0080[_0x11de('0xdd')]['isLocal'])return;let _0xabba10,_0x32debc;switch(_0x1c0080['type']){case _0x11de('0x5b'):_0xabba10=_0x3e885f[_0x11de('0xcc')][_0x11de('0x106')](_0x1c0080[_0x11de('0x64')]),_0x32debc=_0xabba10[_0x11de('0xca')](_0x1c0080[_0x11de('0x100')]);break;case _0x11de('0x38'):_0xabba10=_0x3e885f[_0x11de('0xcc')]['createPositionAt'](_0x1c0080[_0x11de('0x131')]),_0x32debc=_0x3e885f[_0x11de('0xcc')][_0x11de('0x106')](_0x1c0080['moveTargetPosition']);break;case _0x11de('0x6f'):_0xabba10=_0x3e885f[_0x11de('0xcc')][_0x11de('0x106')](_0x1c0080[_0x11de('0x124')]),_0x32debc=_0xabba10[_0x11de('0xca')](_0x1c0080[_0x11de('0x100')]);break;default:return;}const _0x57547c=_0x3e885f[_0x11de('0xcc')][_0x11de('0xd0')](_0xabba10,_0x32debc);_0x3e885f[_0x11de('0xcc')][_0x11de('0x73')](()=>{for(const {suggestion:_0x354034,meta:_0x2c927d}of this['_findSuggestions'](_0x57547c)){if(_0x354034[_0x11de('0x12b')])continue;if(_0x11de('0x80')==_0x354034[_0x11de('0x1e')])continue;const _0x7ca2f=_0x354034['data']&&_0x354034[_0x11de('0xf8')][_0x11de('0x7c')];(_0x11de('0x101')!=_0x354034['type']||_0x11de('0x38')==_0x1c0080[_0x11de('0x1e')]&&!_0x7ca2f)&&(_0x2c927d[_0x11de('0xd7')]||_0x11de('0x16')==_0x354034[_0x11de('0x1e')]&&_0x2c927d['isOwn']||_0x354034['getFirstRange']()[_0x11de('0x56')](_0x57547c)&&this[_0x11de('0x10c')](_0x354034,_0xabba10,_0x32debc));}});},{'priority':_0x11de('0xd2')}),_0x3e885f[_0x11de('0xcc')]['on'](_0x11de('0x5f'),(_0x19159d,_0x145410)=>{const _0x2b3775=_0x145410[0x0],_0x3f827a=_0x145410[0x1];if(_0x3f827a&&_0x3f827a[_0x11de('0xc')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x11de('0x9')][_0x11de('0x2a')])return;if(_0x2b3775[_0x11de('0x89')])return;const _0x45f389=_0x3e885f[_0x11de('0xcc')][_0x11de('0x2b')],{start:_0xdbf44f,end:_0x258147}=_0x2b3775['getFirstRange'](),_0x15ea79=_0xdbf44f[_0x11de('0xf5')]&&_0x45f389[_0x11de('0x107')](_0xdbf44f[_0x11de('0xf5')])?null:_0x45f389[_0x11de('0x96')](_0xdbf44f,_0x11de('0x2d')),_0x729a8b=_0x258147[_0x11de('0x11a')]&&_0x45f389['isLimit'](_0x258147['nodeBefore'])?null:_0x45f389[_0x11de('0x96')](_0x258147,'backward'),_0x29cec3=_0x3e885f[_0x11de('0xcc')][_0x11de('0xd0')](_0x15ea79?_0x15ea79['start']:_0xdbf44f,_0x729a8b?_0x729a8b['end']:_0x258147);_0x3e885f[_0x11de('0xcc')][_0x11de('0x73')](_0x3c8f76=>{this[_0x11de('0xaa')](_0x29cec3);const _0x43668b=_0x3e885f[_0x11de('0xcc')][_0x11de('0x2b')][_0x11de('0x96')](_0x29cec3[_0x11de('0x87')]);_0x2b3775['is']('documentSelection')?_0x3c8f76[_0x11de('0xed')](_0x43668b):_0x2b3775[_0x11de('0x23')](_0x43668b);}),_0x19159d[_0x11de('0x2f')]();},{'priority':_0x2bf86b[_0x11de('0xcd')]+0xa}),_0x3e885f[_0x11de('0xcc')]['on'](_0x11de('0x25'),(_0x79a2e1,_0x44ef81)=>{const _0x5e9b9e=_0x44ef81[_0x44ef81[_0x11de('0x54')]-0x1];_0x5e9b9e&&_0x5e9b9e[_0x11de('0xc')]||this[_0x11de('0x35')]||this[_0x11de('0x9')][_0x11de('0x2a')]&&(_0x3e885f['model'][_0x11de('0x73')](()=>{let _0x22ca91=_0x3e885f[_0x11de('0xcc')][_0x11de('0x25')](_0x44ef81[0x0],_0x44ef81[0x1],_0x44ef81[0x2],_0x44ef81[0x3],{'forceDefaultExecution':!0x0});if(!_0x22ca91)return;_0x79a2e1['return']=_0x22ca91['clone']();const _0x5bd76c=_0x22ca91['end'][_0x11de('0x11a')],_0x49bd67=_0x3e885f[_0x11de('0xcc')][_0x11de('0x2b')];_0x5bd76c&&_0x49bd67['isBlock'](_0x5bd76c)&&!_0x49bd67[_0x11de('0x99')](_0x5bd76c)&&(_0x22ca91=_0x3e885f[_0x11de('0xcc')]['createRange'](_0x22ca91[_0x11de('0x87')],_0x3e885f['model'][_0x11de('0x106')](_0x5bd76c,_0x11de('0xb')))),this[_0x11de('0xdf')](_0x22ca91);}),_0x79a2e1['stop']());},{'priority':_0x11de('0x9f')}),this[_0x11de('0x9')]=new _0xd56392(_0x3e885f,this[_0x11de('0x3c')]),this['editor'][_0x11de('0x29')]['add'](_0x11de('0x68'),this[_0x11de('0x9')]),this[_0x11de('0xf1')](_0x11de('0x68'));const _0x2bc314=new _0x8836e5(_0x3e885f,this[_0x11de('0x6d')]);_0x3e885f['commands']['add'](_0x11de('0xe0'),_0x2bc314),this[_0x11de('0xf1')](_0x11de('0xe0'));const _0x17b5cf=new _0x3d8f6f(_0x3e885f,this[_0x11de('0x6d')]);_0x3e885f[_0x11de('0x29')][_0x11de('0xc0')](_0x11de('0x9e'),_0x17b5cf),this[_0x11de('0xf1')]('discardSuggestion'),_0x3e885f[_0x11de('0x29')][_0x11de('0xc0')](_0x11de('0x49'),new _0x129bde(_0x3e885f,_0x2bc314,this[_0x11de('0x6d')])),this['enableCommand']('acceptAllSuggestions'),_0x3e885f[_0x11de('0x29')][_0x11de('0xc0')](_0x11de('0xb9'),new _0x129bde(_0x3e885f,_0x17b5cf,this[_0x11de('0x6d')])),this[_0x11de('0xf1')](_0x11de('0xb9')),_0x3e885f[_0x11de('0x29')][_0x11de('0xc0')]('acceptSelectedSuggestions',new _0x6e4c39(_0x3e885f,_0x2bc314,this[_0x11de('0x6d')])),this[_0x11de('0xf1')](_0x11de('0xb4')),_0x3e885f[_0x11de('0x29')][_0x11de('0xc0')](_0x11de('0xe5'),new _0x6e4c39(_0x3e885f,_0x17b5cf,this['_suggestions'])),this[_0x11de('0xf1')]('discardSelectedSuggestions');const _0x26b3da=_0x3e885f[_0x11de('0x103')][_0x11de('0x71')](_0x11de('0x88'));this[_0x11de('0x3b')](_0x26b3da,_0x11de('0x4'),(_0x1fbc09,{threadId:_0x40956f})=>{const _0xd76afe=this[_0x11de('0x6d')][_0x11de('0x71')](_0x40956f);_0xd76afe&&_0xd76afe[_0x11de('0xc9')]&&0x1===_0xd76afe['commentThread'][_0x11de('0x54')]&&this[_0x11de('0x8')](_0x40956f,{'hasComments':!0x0});},{'priority':'low'}),this[_0x11de('0x3b')](_0x26b3da,_0x11de('0xc4'),(_0xab4b2b,{threadId:_0x472711})=>{const _0x338473=this[_0x11de('0x6d')]['get'](_0x472711);_0x338473&&_0x338473[_0x11de('0xc9')]&&!_0x338473[_0x11de('0xc9')][_0x11de('0x54')]&&this[_0x11de('0x8')](_0x472711,{'hasComments':!0x1});},{'priority':'low'});}set[_0x11de('0xf7')](_0x2d5ea2){if(this['_adapter'])throw new _0x5bad98(_0x11de('0xee'),this);this[_0x11de('0xf2')]=_0x2d5ea2;}get[_0x11de('0xf7')](){return this[_0x11de('0xf2')];}[_0x11de('0xa4')]({skipNotAttached:_0x39113=!0x1,toJSON:_0x1e6bbf=!0x1}={}){const _0x3d08fd=[];for(const _0x386c6f of this['_suggestions'][_0x11de('0x36')]())_0x39113&&!_0x386c6f['isInContent']||_0x3d08fd[_0x11de('0x102')](_0x386c6f);return _0x1e6bbf?_0x3d08fd[_0x11de('0x10')](_0x1c0c95=>_0x1c0c95[_0x11de('0xd4')]()):_0x3d08fd;}[_0x11de('0xa0')](_0x14dc33){const _0x1d69d3=this[_0x11de('0x6d')][_0x11de('0x71')](_0x14dc33);if(!_0x1d69d3)throw new _0x5bad98(_0x11de('0xe3'),this);return _0x1d69d3;}[_0x11de('0x108')](_0x5a58f7){return this[_0x11de('0x6d')]['has'](_0x5a58f7);}[_0x11de('0xf4')](_0x166d3d){const {authorId:_0x167498,id:_0x43db6c,attributes:_0x5b8c3c}=_0x166d3d,[_0x2db3dc,_0x447612]=_0x166d3d[_0x11de('0x1e')][_0x11de('0x38')](':'),_0x384b2b=this[_0x11de('0x6d')][_0x11de('0x71')](_0x43db6c)||this[_0x11de('0x46')](_0x2db3dc,_0x447612,_0x43db6c,_0x167498,_0x5b8c3c);if(this['_addThreadToSuggestion'](_0x384b2b),this['_checkSuggestionCorrectness'](_0x384b2b,_0x2db3dc,_0x447612||null,_0x167498),_0x384b2b[_0x11de('0x120')]=_0x166d3d['createdAt'],_0x5b8c3c&&_0x5b8c3c[_0x11de('0xb0')]){const {authorName:_0x4b5583,createdAt:_0x10eff5}=_0x5b8c3c[_0x11de('0xb0')],_0x42bd18=this[_0x11de('0xd')](_0x4b5583);_0x384b2b[_0x11de('0x114')]=_0x10eff5,_0x384b2b[_0x11de('0x31')]=_0x42bd18,_0x384b2b[_0x11de('0x97')]=!0x0;}else _0x384b2b[_0x11de('0x114')]=_0x166d3d['createdAt'];switch(_0x166d3d[_0x11de('0xf8')]&&(_0x384b2b['data']=_0x166d3d[_0x11de('0xf8')]),_0x166d3d[_0x11de('0xab')]&&(_0x384b2b[_0x11de('0xab')]=_0x166d3d[_0x11de('0xab')]),this[_0x11de('0xf2')]&&this['_adapter'][_0x11de('0xbe')]||(_0x384b2b['_saved']=!0x0),this['_suggestionState']['get'](_0x384b2b)){case'notReady':this[_0x11de('0x7d')][_0x11de('0xe4')](_0x384b2b,'dataReady');break;case'markerReady':_0x384b2b['isInContent']?(this['_suggestionState']['set'](_0x384b2b,_0x11de('0x8c')),this['fire'](_0x11de('0xfc'),_0x384b2b)):this['_suggestionState']['set'](_0x384b2b,'removed');}return _0x384b2b;}[_0x11de('0xe0')](_0x3eda9b){this[_0x11de('0xc')](()=>{this[_0x11de('0x116')][_0x11de('0xcc')][_0x11de('0x73')](()=>{for(const _0x504727 of _0x3eda9b[_0x11de('0x3')]())_0x504727['accept']();});});}[_0x11de('0x9e')](_0x5b13a5){this['forceDefaultExecution'](()=>{this[_0x11de('0x116')][_0x11de('0xcc')][_0x11de('0x73')](()=>{for(const _0x467850 of _0x5b13a5[_0x11de('0x3')]())_0x467850[_0x11de('0x52')]();});});}[_0x11de('0xf1')](_0x39c9dc,_0x418239){const _0x4637a1=this[_0x11de('0x116')][_0x11de('0x29')][_0x11de('0x71')](_0x39c9dc);if(!_0x4637a1)throw new _0x5bad98('track-changes-command-not-found',this,{'commandName':_0x39c9dc});this[_0x11de('0x3c')][_0x11de('0xc0')](_0x4637a1),_0x418239&&_0x4637a1['on'](_0x11de('0xea'),(_0x2da78b,_0x4c13f7)=>{this[_0x11de('0x9')][_0x11de('0x2a')]&&(this['_isForcedDefaultExecutionBlock']||_0x4c13f7[_0x11de('0x54')]>0x0&&_0x4c13f7[_0x4c13f7[_0x11de('0x54')]-0x1]&&_0x4c13f7[_0x4c13f7[_0x11de('0x54')]-0x1][_0x11de('0xc')]||(_0x418239((..._0x270cae)=>_0x4637a1[_0x11de('0xea')](..._0x270cae,{'forceDefaultExecution':!0x0}),..._0x4c13f7),_0x2da78b[_0x11de('0x2f')]()));},{'priority':_0x11de('0x9f')});}[_0x11de('0xc')](_0x50c0c7){let _0x1f074e,_0x496c05;const _0x147418=this[_0x11de('0x35')];this[_0x11de('0x35')]=!0x0;try{_0x1f074e=_0x50c0c7();}catch(_0xb3155f){_0x496c05=_0xb3155f;}return _0x147418||(this[_0x11de('0x35')]=!0x1),_0x496c05&&_0x5bad98['rethrowUnexpectedError'](_0x496c05,this),_0x1f074e;}[_0x11de('0xdf')](_0x206613,_0x26529c=null,_0x1b6dc8={}){if(_0x206613[_0x11de('0x89')])return null;const _0x2fc756=this['editor'][_0x11de('0x103')][_0x11de('0x71')]('Users')['me'];for(const {suggestion:_0x2b935a,meta:_0x3bfd0b}of this[_0x11de('0x40')](_0x206613,'insertion'))if(_0x3bfd0b[_0x11de('0x5c')]){if(!_0x3bfd0b[_0x11de('0xe1')])return _0x2b935a;if(_0x26529c==_0x2b935a['subType']){const _0x3e4152=_0x2b935a[_0x11de('0xc8')]();return _0x3e4152[_0x11de('0x87')][_0x11de('0xf0')](_0x206613[_0x11de('0xb')])?this[_0x11de('0xc1')](_0x2b935a,this[_0x11de('0x21')][_0x11de('0xd0')](_0x206613[_0x11de('0x87')],_0x3e4152[_0x11de('0xb')])):this[_0x11de('0xc1')](_0x2b935a,this[_0x11de('0x21')][_0x11de('0xd0')](_0x3e4152[_0x11de('0x87')],_0x206613[_0x11de('0xb')])),_0x2b935a;}}const _0x11af5a=_0x3979e6(),_0x4e2e2b=_0x2fc756['id'],_0x4ae87a=_0x26529c?_0x11de('0x85')+_0x26529c:'insertion',_0x52ecd5=this[_0x11de('0x126')]({'id':_0x11af5a,'type':_0x4ae87a,'createdAt':new Date(),'authorId':_0x4e2e2b,'attributes':_0x1b6dc8});return this['_addSuggestionMarker'](_0x4ae87a,_0x11af5a,_0x4e2e2b,_0x206613),_0x52ecd5;}['markMultiRangeInsertion'](_0x2eae0a,_0x4b0044='multi',_0x553e3c={}){const _0x52a4e8=this[_0x11de('0x116')][_0x11de('0x103')][_0x11de('0x71')](_0x11de('0x4e'))['me'],_0x241251=this[_0x11de('0xd1')][_0x11de('0x112')](_0x11de('0x16'),_0x4b0044,_0x11de('0xae'));for(const _0x237280 of this[_0x11de('0xa4')]())if(_0x237280[_0x11de('0x31')]['id']==_0x52a4e8['id']&&_0x11de('0x16')==_0x237280['type']&&_0x237280[_0x11de('0x11')]==_0x4b0044&&(_0x241251(_0x237280['getRanges'](),_0x2eae0a)||_0x241251(_0x2eae0a,_0x237280['getRanges']()))){for(const _0x1727da of _0x2eae0a)_0x237280[_0x11de('0x32')](_0x1727da);return _0x237280;}for(const _0x223e2d of _0x2eae0a)for(const {suggestion:_0x427468,meta:_0x28b38e}of this[_0x11de('0x40')](_0x223e2d,_0x11de('0x16'))){if(!_0x28b38e['isOwn'])continue;let _0x2339f8=!0x0;for(const _0x375106 of _0x427468[_0x11de('0x20')]())for(const _0x544307 of _0x2eae0a)if(!_0x375106[_0x11de('0x56')](_0x544307)){_0x2339f8=!0x1;break;}if(_0x2339f8)return _0x427468;}const _0x41d32f=_0x3979e6(),_0x5862d9=_0x52a4e8['id'],_0x5d9da6=_0x11de('0x85')+_0x4b0044,_0x470e15=this[_0x11de('0x126')]({'id':_0x41d32f,'type':_0x5d9da6,'createdAt':new Date(),'authorId':_0x5862d9,'attributes':_0x553e3c});for(const _0x3cfcab of _0x2eae0a)this[_0x11de('0x4c')](_0x5d9da6,_0x41d32f,_0x5862d9,_0x3cfcab,_0x4b41f2[_0x11de('0x1d')]());return _0x470e15;}['markInlineFormat'](_0x596c92,_0x16476f,_0x58face=null,_0x496fce={}){if(_0x58face=_0x58face||vt(_0x16476f),_0x596c92[_0x11de('0x89')])return;const _0x542fcf=this[_0x11de('0x116')]['plugins'][_0x11de('0x71')](_0x11de('0x4e'))['me'],_0x460b8f=[];for(const {suggestion:_0x5e42df,meta:_0x38a897}of this['_findSuggestions'](_0x596c92,_0x11de('0x16')))_0x38a897[_0x11de('0x5c')]&&!_0x38a897[_0x11de('0x7f')]&&_0x460b8f[_0x11de('0x102')](..._0x5e42df[_0x11de('0x20')]());const _0x512489=function(_0x3cfe1d,_0x2075de){const _0x1bb4d4=[];for(const _0x5e2a65 of _0x2075de){const _0x496e81=_0x3cfe1d[_0x11de('0x115')](_0x5e2a65);_0x496e81&&_0x1bb4d4['push'](_0x496e81);}return _0x1bb4d4;}(_0x596c92,_0x460b8f),_0x372e7b=function(_0x5ace6,_0x41c8bc){const _0x22dfeb=[_0x5ace6];for(const _0xc2dc8f of _0x41c8bc){let _0x27fa7a=0x0;for(;_0x27fa7a<_0x22dfeb[_0x11de('0x54')];){const _0x5232a1=_0x22dfeb[_0x27fa7a][_0x11de('0x6')](_0xc2dc8f);_0x22dfeb[_0x11de('0xe')](_0x27fa7a,0x1,..._0x5232a1),_0x27fa7a+=_0x5232a1[_0x11de('0x54')];}}return _0x22dfeb;}(_0x596c92,_0x460b8f);_0x512489[_0x11de('0x54')]&&this['_model'][_0x11de('0x73')](()=>{for(const _0x568882 of _0x512489){const _0x355510=this['_suggestionFactory'][_0x11de('0x112')](_0x11de('0x80'),_0x58face,'accept');this[_0x11de('0xc')](()=>_0x355510([_0x568882],_0x16476f,_0x496fce));}});for(const _0x1d200d of _0x372e7b){let _0x5cc176=null,_0x5dddac=_0x1d200d[_0x11de('0x87')],_0x9f67fe=_0x1d200d[_0x11de('0xb')];for(const {suggestion:_0x277aa8,meta:_0xd5f410}of this[_0x11de('0x40')](_0x1d200d,'formatInline')){if(!_0xd5f410[_0x11de('0x5c')])continue;if(_0x277aa8[_0x11de('0x11')]!=_0x58face)continue;const _0x2b5374=_0x277aa8[_0x11de('0xc8')]();if(_0x2b5374[_0x11de('0x56')](_0x1d200d,!0x0))return;_0x5dddac=_0x5dddac['isBefore'](_0x2b5374['start'])?_0x5dddac:_0x2b5374['start'],_0x9f67fe=_0x9f67fe[_0x11de('0x78')](_0x2b5374[_0x11de('0xb')])?_0x9f67fe:_0x2b5374[_0x11de('0xb')],_0x5cc176?_0x2b5374[_0x11de('0x87')]['isBefore'](_0x5cc176[_0x11de('0xc8')]()[_0x11de('0x87')])?(_0x5cc176[_0x11de('0x15')](),_0x5cc176=_0x277aa8):_0x277aa8['removeMarkers']():_0x5cc176=_0x277aa8;}const _0x52adf5=this['_model'][_0x11de('0xd0')](_0x5dddac,_0x9f67fe);if(_0x5cc176)this['_setSuggestionRange'](_0x5cc176,_0x52adf5);else{const _0x1e65b5=_0x3979e6(),_0x21ae57=_0x542fcf['id'];this[_0x11de('0x126')]({'id':_0x1e65b5,'type':_0x11de('0x7')+_0x58face,'data':_0x16476f,'createdAt':new Date(),'authorId':_0x21ae57,'attributes':_0x496fce}),this[_0x11de('0x4c')]('formatInline:'+_0x58face,_0x1e65b5,_0x21ae57,_0x52adf5);}}}[_0x11de('0x3d')](_0x1c2641,_0x334a09,_0x57d461=[],_0x3aab3a=null,_0x335937={}){_0x334a09['formatGroupId']||(_0x334a09['formatGroupId']=_0x334a09[_0x11de('0x105')]),_0x334a09[_0x11de('0x7c')]=_0x1c2641['is'](_0x11de('0xd9')),_0x3aab3a=_0x3aab3a||vt(_0x334a09);const _0x417a77=_0x57d461[_0x11de('0x10')](_0x28adb0=>Dt(_0x28adb0,this['_model'])),_0xed2132=_0x1c2641['is'](_0x11de('0xd9'))?_0x1c2641:Dt(_0x1c2641,this[_0x11de('0x21')]);_0x417a77[_0x11de('0x102')](_0xed2132);let _0x24f2f7=!0x0;for(const _0x467152 of _0x417a77)if(!this['_rangeIsInLocalUserInsertion'](_0x467152)){_0x24f2f7=!0x1;break;}if(_0x24f2f7){const _0x2c61bf=this['_suggestionFactory'][_0x11de('0x112')]('formatBlock',_0x3aab3a,_0x11de('0x109'));return void this['forceDefaultExecution'](()=>_0x2c61bf([_0xed2132],_0x334a09,_0x335937));}let _0x25b50f=null,_0x48c7be=_0xed2132[_0x11de('0x87')],_0x2c464b=_0xed2132[_0x11de('0xb')];for(const {suggestion:_0x3fd4d2,meta:_0x233c7e}of this['_findSuggestions'](_0xed2132,_0x11de('0x101'))){if(!_0x233c7e[_0x11de('0x5c')]||_0x233c7e['isNextTo']||_0x233c7e[_0x11de('0xd7')]||_0x233c7e[_0x11de('0x7f')])continue;if(_0x3fd4d2['data'][_0x11de('0x2c')]!=_0x334a09['formatGroupId'])continue;const _0x11bb15=_0x3fd4d2[_0x11de('0xc8')]();if(_0x3fd4d2['subType']==_0x3aab3a){if(_0x11bb15['containsRange'](_0xed2132,!0x0))return;_0x48c7be=_0x48c7be[_0x11de('0xcb')](_0x11bb15[_0x11de('0x87')])?_0x48c7be:_0x11bb15[_0x11de('0x87')],_0x2c464b=_0x2c464b[_0x11de('0x78')](_0x11bb15[_0x11de('0xb')])?_0x2c464b:_0x11bb15['end'],_0x25b50f?_0x11bb15[_0x11de('0x87')][_0x11de('0xcb')](_0x25b50f[_0x11de('0xc8')]()[_0x11de('0x87')])?(_0x25b50f['removeMarkers'](),_0x25b50f=_0x3fd4d2):_0x3fd4d2[_0x11de('0x15')]():_0x25b50f=_0x3fd4d2;}else{const _0x27ba5a=_0xed2132[_0x11de('0x115')](_0x11bb15);this[_0x11de('0xac')](_0x3fd4d2,_0x27ba5a);}}const _0x399247=this[_0x11de('0x116')][_0x11de('0x103')][_0x11de('0x71')](_0x11de('0x4e'))['me'],_0x548971=_0x3979e6(),_0x427add=_0x399247['id'];_0x25b50f?this[_0x11de('0xc1')](_0x25b50f,this[_0x11de('0x21')]['createRange'](_0x48c7be,_0x2c464b)):(this[_0x11de('0x126')]({'id':_0x548971,'type':_0x11de('0x42')+_0x3aab3a,'data':_0x334a09,'createdAt':new Date(),'authorId':_0x427add,'attributes':_0x335937}),this['_addSuggestionMarker'](_0x11de('0x42')+_0x3aab3a,_0x548971,_0x427add,this[_0x11de('0x21')][_0x11de('0xd0')](_0x48c7be,_0x2c464b)));}['markMultiRangeBlockFormat'](_0x509ffc,_0x4dcd41,_0x441050=[],_0x1d06c6=null,_0x8e23fc={}){_0x4dcd41['formatGroupId']||(_0x4dcd41[_0x11de('0x2c')]=_0x4dcd41['commandName']),_0x4dcd41[_0x11de('0x7c')]=!0x1,_0x1d06c6=_0x1d06c6||vt(_0x4dcd41);const _0x255bb3=_0x441050[_0x11de('0x10')](_0x49a256=>Dt(_0x49a256,this[_0x11de('0x21')])),_0x22dc66=_0x509ffc[_0x11de('0x10')](_0x526374=>Dt(_0x526374,this[_0x11de('0x21')]));_0x255bb3[_0x11de('0x102')](..._0x22dc66);let _0x3dafa4=!0x0;for(const _0x41c7a4 of _0x255bb3)if(!this[_0x11de('0xe6')](_0x41c7a4)){_0x3dafa4=!0x1;break;}if(_0x3dafa4){const _0x15338d=this[_0x11de('0xd1')][_0x11de('0x112')](_0x11de('0x101'),_0x1d06c6,_0x11de('0x109'));return void this[_0x11de('0xc')](()=>_0x15338d(_0x22dc66,_0x4dcd41,_0x8e23fc));}const _0x31ddbb=this[_0x11de('0x116')][_0x11de('0x103')][_0x11de('0x71')](_0x11de('0x4e'))['me'];for(const _0x231601 of this[_0x11de('0xa4')]()){if(_0x231601['author']['id']!=_0x31ddbb['id'])continue;if('formatBlock'!=_0x231601[_0x11de('0x1e')]||_0x231601[_0x11de('0xf8')][_0x11de('0x2c')]!=_0x4dcd41['formatGroupId'])continue;const _0x4910eb=_0x231601[_0x11de('0x11')]==_0x1d06c6;for(let _0x1d7cd2=0x0;_0x1d7cd2<_0x22dc66[_0x11de('0x54')];_0x1d7cd2++){const _0x2beeb5=_0x22dc66[_0x1d7cd2];for(const _0x1ae2e5 of _0x231601['getMarkers']()){const _0x13db87=_0x1ae2e5[_0x11de('0x72')]();if(_0x2beeb5['isEqual'](_0x13db87)){_0x4910eb?(_0x22dc66['splice'](_0x1d7cd2,0x1),_0x1d7cd2--):_0x231601[_0x11de('0xde')](_0x1ae2e5['name']);break;}}}}if(0x0==_0x22dc66[_0x11de('0x54')])return;const _0x5972cd=this[_0x11de('0xd1')][_0x11de('0x112')](_0x11de('0x101'),_0x1d06c6,_0x11de('0xae'));for(const _0x93c021 of this[_0x11de('0xa4')]())if(_0x93c021[_0x11de('0x31')]['id']==_0x31ddbb['id']&&'formatBlock'==_0x93c021[_0x11de('0x1e')]&&_0x93c021[_0x11de('0xf8')][_0x11de('0x2c')]==_0x4dcd41[_0x11de('0x2c')]&&_0x93c021[_0x11de('0x11')]==_0x1d06c6&&(_0x5972cd(_0x93c021[_0x11de('0x20')](),_0x22dc66)||_0x5972cd(_0x22dc66,_0x93c021[_0x11de('0x20')]()))){for(const _0x3d02ed of _0x22dc66)_0x93c021[_0x11de('0x32')](_0x3d02ed);return _0x93c021;}const _0x520e40=_0x3979e6(),_0x2cefca=_0x31ddbb['id'],_0x502e03='formatBlock:'+_0x1d06c6,_0x478cb3=this[_0x11de('0x126')]({'id':_0x520e40,'type':_0x502e03,'data':_0x4dcd41,'createdAt':new Date(),'authorId':_0x2cefca,'attributes':_0x8e23fc});for(const _0x2bb146 of _0x22dc66)this[_0x11de('0x4c')](_0x502e03,_0x520e40,_0x2cefca,_0x2bb146,_0x4b41f2['getMultiRangeId']());return _0x478cb3;}[_0x11de('0xaa')](_0x26cb10,_0x4cf2c5=null,_0x32419f={}){if(_0x26cb10[_0x11de('0x89')])return null;const _0x9325e0=this[_0x11de('0x116')][_0x11de('0x103')][_0x11de('0x71')](_0x11de('0x4e'))['me'],_0x4a0068=new _0x41c412(_0x26cb10[_0x11de('0x87')],_0x26cb10[_0x11de('0xb')]);for(const {suggestion:_0x246e76,meta:_0x2fc477}of this[_0x11de('0x40')](_0x4a0068,_0x11de('0x16')))if(_0x2fc477['isOwn']&&!_0x2fc477[_0x11de('0xe1')]){if(_0x246e76[_0x11de('0x12b')]){const _0x56e060=_0x246e76['getRanges']()['filter'](_0x38cbb1=>'$graveyard'!=_0x38cbb1[_0x11de('0x44')]['rootName']);_0x56e060['every'](_0x440c5d=>_0x4a0068[_0x11de('0x56')](_0x440c5d,!0x0))&&_0x246e76[_0x11de('0x52')]();if(_0x56e060[_0x11de('0x9a')](_0x34c5d9=>_0x34c5d9[_0x11de('0x56')](_0x4a0068,!0x0))){const _0x33a17c=this[_0x11de('0xd1')][_0x11de('0x112')](_0x11de('0x18'),_0x4cf2c5,_0x11de('0x109'));return this[_0x11de('0xc')](()=>_0x33a17c([_0x4a0068],null,_0x32419f)),null;}}else{const _0x354992=_0x4a0068['getIntersection'](_0x246e76[_0x11de('0xc8')]());_0x246e76[_0x11de('0x4f')]([_0x354992],null,_0x32419f);}}if(_0x4a0068[_0x11de('0x50')](),_0x4a0068['isCollapsed']||_0x11de('0x0')==_0x4a0068[_0x11de('0x44')][_0x11de('0x5d')])return null;let _0x17b051=null,_0x22accd=_0x4a0068[_0x11de('0x87')],_0x3b7f7e=_0x4a0068[_0x11de('0xb')];for(const {suggestion:_0x46abb6,meta:_0x16d905}of this[_0x11de('0x40')](_0x4a0068,'deletion'))if(_0x16d905[_0x11de('0x5c')]){if(_0x46abb6[_0x11de('0x12b')]){let _0x56a3a9=!0x0;for(const _0x3611f3 of _0x46abb6['getRanges']()){if(_0x3611f3[_0x11de('0x56')](_0x4a0068,!0x0))return _0x46abb6;_0x4a0068['containsRange'](_0x3611f3)||(_0x56a3a9=!0x1);}_0x56a3a9&&_0x46abb6[_0x11de('0x52')]();}else{const _0xb984b1=_0x46abb6[_0x11de('0xc8')]();if(_0xb984b1[_0x11de('0x56')](_0x4a0068,!0x0))return _0x46abb6;_0x22accd=_0x22accd[_0x11de('0xcb')](_0xb984b1['start'])?_0x22accd:_0xb984b1['start'],_0x3b7f7e=_0x3b7f7e[_0x11de('0x78')](_0xb984b1[_0x11de('0xb')])?_0x3b7f7e:_0xb984b1[_0x11de('0xb')],_0x17b051?_0xb984b1['start'][_0x11de('0xcb')](_0x17b051[_0x11de('0xc8')]()[_0x11de('0x87')])?(_0x17b051['removeMarkers'](),_0x17b051=_0x46abb6):_0x46abb6[_0x11de('0x15')]():_0x17b051=_0x46abb6;}}if(_0x17b051)return this[_0x11de('0xc1')](_0x17b051,this[_0x11de('0x21')][_0x11de('0xd0')](_0x22accd,_0x3b7f7e)),_0x17b051;{const _0x20136f=_0x3979e6(),_0x3eeace=this[_0x11de('0x21')]['createRange'](_0x22accd,_0x3b7f7e),_0x48dbad=_0x9325e0['id'],_0x3a19b5=_0x4cf2c5?'deletion:'+_0x4cf2c5:'deletion',_0x205b22=this[_0x11de('0x126')]({'id':_0x20136f,'type':_0x3a19b5,'createdAt':new Date(),'authorId':_0x48dbad,'attributes':_0x32419f});return this['_addSuggestionMarker'](_0x3a19b5,_0x20136f,_0x48dbad,_0x3eeace),_0x205b22;}}[_0x11de('0xad')](_0x5b6fec,_0x4fc910=_0x11de('0xce'),_0x26bb76={}){const _0x2e1c77=this[_0x11de('0x116')][_0x11de('0x103')]['get'](_0x11de('0x4e'))['me'],_0x257cd2=_0x5b6fec[_0x11de('0x10')](_0x4662a7=>new _0x41c412(_0x4662a7[_0x11de('0x87')],_0x4662a7[_0x11de('0xb')])),_0x44a480=new Set();for(const _0x3a56a5 of _0x257cd2)for(const {suggestion:_0x89dfae,meta:_0x5c5bff}of this[_0x11de('0x40')](_0x3a56a5,_0x11de('0x16')))_0x5c5bff[_0x11de('0x5c')]&&!_0x5c5bff['isNextTo']&&_0x44a480[_0x11de('0xc0')](_0x89dfae);for(const _0x1d917c of _0x44a480)if(_0x1d917c[_0x11de('0x12b')]){const _0x451c1b=_0x1d917c[_0x11de('0x20')]();(!_0x1d917c[_0x11de('0xab')]||!_0x1d917c[_0x11de('0xab')]['skipNestingCheck'])&&(_0x451c1b[_0x11de('0x66')](_0x48d33b=>_0x257cd2['some'](_0x330d29=>_0x330d29[_0x11de('0x56')](_0x48d33b,!0x0)))&&_0x1d917c[_0x11de('0x52')]());if(_0x257cd2['every'](_0x2296ba=>_0x451c1b[_0x11de('0x9a')](_0x1ce138=>_0x1ce138['containsRange'](_0x2296ba,!0x0)))){const _0x539bf1=this[_0x11de('0xd1')][_0x11de('0x112')](_0x11de('0x18'),_0x4fc910,_0x11de('0x109'));return this['forceDefaultExecution'](()=>_0x539bf1(_0x5b6fec,null,_0x26bb76)),null;}}else{const _0x369f78=_0x1d917c[_0x11de('0xc8')]();_0x257cd2[_0x11de('0x9a')](_0x580434=>_0x580434[_0x11de('0x56')](_0x369f78,!0x0))&&_0x1d917c[_0x11de('0x52')]();if(_0x257cd2['every'](_0x404419=>_0x369f78['containsRange'](_0x404419,!0x0))){const _0xcb1aaa=this[_0x11de('0xd1')]['getSuggestionCallback'](_0x11de('0x18'),_0x4fc910,_0x11de('0x109'));return this[_0x11de('0xc')](()=>_0xcb1aaa(_0x257cd2,null,_0x26bb76)),null;}}const _0x2caf2a=this[_0x11de('0xd1')][_0x11de('0x112')](_0x11de('0x18'),_0x4fc910,_0x11de('0xae'));let _0xea8266=null;for(const _0x187755 of this[_0x11de('0xa4')]())if(_0x187755['author']['id']==_0x2e1c77['id']&&_0x187755[_0x11de('0x11b')]&&_0x11de('0x18')==_0x187755[_0x11de('0x1e')]&&_0x187755[_0x11de('0x11')]==_0x4fc910&&(_0x2caf2a(_0x187755['getRanges'](),_0x257cd2)||_0x2caf2a(_0x257cd2,_0x187755['getRanges']()))){if(_0xea8266){if(_0x187755['commentThread']&&_0x187755[_0x11de('0xc9')][_0x11de('0x54')])continue;for(const _0x20ad65 of _0x187755[_0x11de('0x20')]())_0xea8266[_0x11de('0x6a')](_0x20ad65)||_0xea8266['addRange'](_0x20ad65);_0x187755['removeMarkers']();}else{_0xea8266=_0x187755;for(const _0x2ed409 of _0x257cd2)_0x187755[_0x11de('0x6a')](_0x2ed409)||_0x187755[_0x11de('0x32')](_0x2ed409);}}if(_0xea8266)return _0xea8266;_0x44a480[_0x11de('0x129')]();for(const _0x480d0c of _0x257cd2)for(const {suggestion:_0x4984a4,meta:_0xaf0de4}of this[_0x11de('0x40')](_0x480d0c,'deletion'))_0xaf0de4['isOwn']&&_0x44a480[_0x11de('0xc0')](_0x4984a4);for(const _0x2fb0ab of _0x44a480){const _0x106b7c=_0x2fb0ab['getRanges']();if(!_0x26bb76||!_0x26bb76[_0x11de('0x11e')]){if(_0x257cd2[_0x11de('0x66')](_0x335efe=>_0x106b7c[_0x11de('0x9a')](_0x5a0132=>_0x5a0132[_0x11de('0x56')](_0x335efe,!0x0))))return _0x2fb0ab;}(!_0x2fb0ab[_0x11de('0xab')]||!_0x2fb0ab[_0x11de('0xab')]['skipNestingCheck'])&&(_0x106b7c[_0x11de('0x66')](_0x3c7136=>_0x257cd2[_0x11de('0x9a')](_0x16b3a2=>_0x16b3a2[_0x11de('0x56')](_0x3c7136,!0x0)))&&_0x2fb0ab[_0x11de('0x52')]());}const _0x381b5e=_0x3979e6(),_0x7de6a5=_0x2e1c77['id'],_0x1aa044=_0x11de('0x59')+_0x4fc910,_0x469067=this[_0x11de('0x126')]({'id':_0x381b5e,'type':_0x1aa044,'createdAt':new Date(),'authorId':_0x7de6a5,'attributes':_0x26bb76});for(const _0x4fa057 of _0x257cd2)_0x4fa057[_0x11de('0x50')](),_0x4fa057['isCollapsed']||_0x11de('0x0')==_0x4fa057[_0x11de('0x44')][_0x11de('0x5d')]||this['_addSuggestionMarker'](_0x1aa044,_0x381b5e,_0x7de6a5,_0x4fa057,_0x4b41f2[_0x11de('0x1d')]());return _0x469067;}[_0x11de('0xc1')](_0x277f8d,_0x1a037b){const _0xa7bfbb=_0x277f8d[_0x11de('0x127')]();this[_0x11de('0x21')][_0x11de('0x73')](_0xd7b1b7=>{_0xd7b1b7[_0x11de('0xff')](_0xa7bfbb,{'range':_0x1a037b});});}[_0x11de('0x1c')](_0x5396b2){const _0xb64878=_0x5396b2['id'],_0xeaa3bf=this[_0x11de('0x116')][_0x11de('0x45')]['get'](_0x11de('0x13'));this[_0x11de('0xdc')]['hasCommentThread'](_0xb64878)||this[_0x11de('0xdc')][_0x11de('0xd3')]({'channelId':_0xeaa3bf,'threadId':_0xb64878});const _0x17e7d9=this[_0x11de('0xdc')][_0x11de('0x53')](_0xb64878);_0x17e7d9['unbind'](_0x11de('0x110')),_0x17e7d9[_0x11de('0x110')]=!0x1,_0x5396b2[_0x11de('0xc9')]=_0x17e7d9;}[_0x11de('0x7a')](_0x43d878,_0x2cf45a,_0x4ae0ff,_0xcdbbfd){if(_0x43d878['type']!=_0x2cf45a||_0x43d878['subType']!=_0x4ae0ff||_0x43d878[_0x11de('0x10b')]['id']!=_0xcdbbfd)throw this[_0x11de('0x116')][_0x11de('0xfa')](_0x11de('0xaf')),new _0x5bad98(_0x11de('0xaf'),this);}[_0x11de('0xac')](_0x5aed27,_0x41907a){const _0x2583d7=_0x5aed27['getFirstRange']();if(_0x41907a[_0x11de('0xf0')](_0x2583d7))_0x5aed27[_0x11de('0x15')]();else{if(_0x2583d7[_0x11de('0x56')](_0x41907a)){const _0x594a23=this[_0x11de('0x21')][_0x11de('0x106')](_0x41907a[_0x11de('0x87')][_0x11de('0x11a')],_0x11de('0xb'));this[_0x11de('0xc1')](_0x5aed27,this[_0x11de('0x21')][_0x11de('0xd0')](_0x2583d7['start'],_0x594a23));const _0x436502=_0x3979e6(),_0x356c89=_0x5aed27[_0x11de('0x10b')]['id'],_0x2c0f0f=_0x5aed27[_0x11de('0x1e')]+':'+_0x5aed27[_0x11de('0x11')];this[_0x11de('0x126')]({'id':_0x436502,'type':_0x2c0f0f,'createdAt':new Date(),'authorId':_0x356c89,'data':_0x5aed27[_0x11de('0xf8')],'attributes':_0x5aed27[_0x11de('0xab')]});const _0x10dbd9=this[_0x11de('0x21')][_0x11de('0x106')](_0x41907a['end']['parent'],_0x11de('0xa8')),_0x4b77de=this[_0x11de('0x21')]['createRange'](_0x10dbd9,_0x2583d7[_0x11de('0xb')]);this['_addSuggestionMarker'](_0x2c0f0f,_0x436502,_0x356c89,_0x4b77de);}else{if(_0x2583d7[_0x11de('0x93')](_0x41907a['start'])){const _0x52d0a3=this[_0x11de('0x21')][_0x11de('0x106')](_0x41907a[_0x11de('0x87')][_0x11de('0x11a')],_0x11de('0xb'));this[_0x11de('0xc1')](_0x5aed27,this[_0x11de('0x21')][_0x11de('0xd0')](_0x2583d7[_0x11de('0x87')],_0x52d0a3));}else{const _0x59d055=this[_0x11de('0x21')][_0x11de('0x106')](_0x41907a[_0x11de('0xb')][_0x11de('0x10a')],_0x11de('0xa8'));this[_0x11de('0xc1')](_0x5aed27,this[_0x11de('0x21')][_0x11de('0xd0')](_0x59d055,_0x2583d7[_0x11de('0xb')]));}}}}[_0x11de('0xe6')](_0x1a5068){for(const {suggestion:_0x65baa7,meta:_0x17a97b}of this['_findSuggestions'](_0x1a5068,'insertion')){if(!_0x17a97b[_0x11de('0x5c')])continue;const _0x5a093b=_0x65baa7[_0x11de('0x20')]();for(const _0x3404a9 of _0x5a093b)if(!_0x1a5068[_0x11de('0x6')](_0x3404a9)[_0x11de('0x54')])return!0x0;}return!0x1;}[_0x11de('0x11d')](_0x709cc0){const _0x25e337=this[_0x11de('0x116')]['plugins'][_0x11de('0x71')](_0x11de('0x4e'))['getUser'](_0x709cc0);if(!_0x25e337)throw new _0x5bad98('track-changes-user-not-found',this);return _0x25e337;}[_0x11de('0xd')](_0xbc97){const _0x25d17c=this[_0x11de('0x116')][_0x11de('0x103')][_0x11de('0x71')](_0x11de('0x4e')),_0x3b2e44=_0x4886f8(_0x11de('0x130')+_0xbc97),_0x24d790=_0x25d17c[_0x11de('0xe9')](_0x3b2e44);return _0x24d790||_0x25d17c[_0x11de('0x8e')]({'id':_0x3b2e44,'name':_0xbc97});}['_createSuggestion'](_0x6beb82,_0x59d7e2,_0x25eccc,_0x57e279,_0x1614bb){const _0x2af7e5=this[_0x11de('0x11d')](_0x57e279),_0x50405e=this[_0x11de('0xd1')][_0x11de('0x48')](_0x6beb82,_0x59d7e2,_0x25eccc,_0x2af7e5,_0x1614bb,_0x2a6064=>this[_0x11de('0x8')](_0x25eccc,{'attributes':_0x2a6064}));return this[_0x11de('0x3b')](_0x50405e,_0x11de('0x109'),()=>{this['_updateSuggestionData'](_0x25eccc,{'state':_0x11de('0x91')});},{'priority':_0x11de('0x9f')}),this[_0x11de('0x3b')](_0x50405e,'discard',()=>{this[_0x11de('0x8')](_0x25eccc,{'state':'rejected'});},{'priority':_0x11de('0x9f')}),this[_0x11de('0x6d')][_0x11de('0xe4')](_0x25eccc,_0x50405e),this[_0x11de('0x7d')]['set'](_0x50405e,_0x11de('0x2')),_0x50405e;}['_splitMarkerName'](_0x531270){const _0x4dc058=_0x531270['split'](':');return{'group':_0x4dc058[0x0],'type':_0x4dc058[0x1],'subType':_0x4dc058[_0x11de('0x54')]>=0x5?_0x4dc058[0x2]:null,'id':_0x4dc058[_0x11de('0x54')]<0x5?_0x4dc058[0x2]:_0x4dc058[0x3],'authorId':_0x4dc058[_0x11de('0x54')]<0x5?_0x4dc058[0x3]:_0x4dc058[0x4],'markerCount':0x6==_0x4dc058['length']?_0x4dc058[0x5]:null};}['_breakSuggestionMarker'](_0x4f02bb,_0x273243,_0x16a84f){const _0x1a6445=_0x4f02bb['getFirstRange'](),_0x14ac45=_0x1a6445[_0x11de('0x87')],_0x41261f=_0x1a6445[_0x11de('0xb')];this[_0x11de('0xc1')](_0x4f02bb,this[_0x11de('0x21')][_0x11de('0xd0')](_0x14ac45,_0x273243));const _0x5f2bf1=_0x3979e6(),_0x1e6c81=_0x4f02bb[_0x11de('0x10b')]['id'],_0x112218=_0x4f02bb[_0x11de('0x1e')]+(_0x4f02bb[_0x11de('0x11')]?':'+_0x4f02bb['subType']:'');this[_0x11de('0x126')]({'id':_0x5f2bf1,'type':_0x112218,'createdAt':new Date(),'authorId':_0x1e6c81,'originalSuggestionId':_0x4f02bb['id'],'attributes':_0x4f02bb[_0x11de('0xab')],'data':_0x4f02bb['data']}),_0x11de('0x101')==_0x4f02bb[_0x11de('0x1e')]&&(_0x16a84f=this[_0x11de('0x21')]['createPositionBefore'](_0x16a84f['parent'])),this[_0x11de('0x4c')](_0x112218,_0x5f2bf1,_0x1e6c81,this[_0x11de('0x21')]['createRange'](_0x16a84f,_0x41261f));}[_0x11de('0x40')](_0x5da9f7,_0x257e93=null){const _0x2f49c7=[],_0x1387b1=this['_model'][_0x11de('0x2b')],_0x496352=this[_0x11de('0x116')][_0x11de('0x103')]['get'](_0x11de('0x4e'))['me'];for(const _0x10e37b of this[_0x11de('0xa4')]())if(_0x10e37b['isInContent']&&(!_0x257e93||_0x10e37b[_0x11de('0x1e')]==_0x257e93))for(const _0x4145ed of _0x10e37b[_0x11de('0x20')]()){const _0x377b5b=_0x5da9f7[_0x11de('0x87')][_0x11de('0xf0')](_0x4145ed[_0x11de('0xb')])||_0x5da9f7[_0x11de('0xb')][_0x11de('0xf0')](_0x4145ed[_0x11de('0x87')]);if(_0x377b5b||_0x5da9f7[_0x11de('0x115')](_0x4145ed)){const _0x4842a7=_0x5da9f7['containsRange'](_0x4145ed)&&bt(_0x1387b1,_0x4145ed[_0x11de('0x87')],_0x5da9f7),_0xef6aa9=_0x4145ed[_0x11de('0x56')](_0x5da9f7)&&bt(_0x1387b1,_0x5da9f7[_0x11de('0x87')],_0x4145ed);_0x2f49c7[_0x11de('0x102')]({'suggestion':_0x10e37b,'meta':{'isOwn':_0x496352==_0x10e37b[_0x11de('0x31')],'isNextTo':_0x377b5b,'isInsideObject':_0x4842a7,'containsRangeInObject':_0xef6aa9}});break;}}return _0x2f49c7;}[_0x11de('0x4c')](_0x504f76,_0x42afcc,_0x36f9a2,_0x581af7,_0x335425=null){this[_0x11de('0x21')][_0x11de('0x73')](_0x1a9bc5=>{let _0x58145d=_0x11de('0x122')+_0x504f76+':'+_0x42afcc+':'+_0x36f9a2;_0x335425&&(_0x58145d=_0x58145d+':'+_0x335425),_0x1a9bc5[_0x11de('0xb7')](_0x58145d,{'range':_0x581af7,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x11de('0x41')](_0x268824){const _0x3553d4=_0x268824[_0x11de('0x125')],_0x287d32=_0x268824[_0x11de('0x123')];_0x268824[_0x11de('0x125')]=null,null!=_0x3553d4&&(_0x3553d4['next']=null),_0x268824[_0x11de('0x123')]=null,null!=_0x287d32&&(_0x287d32[_0x11de('0x125')]=null),'ready'==this[_0x11de('0x7d')][_0x11de('0x71')](_0x268824)&&(this[_0x11de('0x7d')][_0x11de('0xe4')](_0x268824,'removed'),this[_0x11de('0x4d')](_0x11de('0x11c'),_0x268824,_0x3553d4,_0x287d32));}[_0x11de('0x126')](_0x2acfc4){const _0x546757=_0x2acfc4['id'],_0x1f2014=this[_0x11de('0xf4')](_0x2acfc4);if(this[_0x11de('0xf2')]&&this[_0x11de('0xf2')][_0x11de('0xbe')]){const _0x824b26=this['editor']['plugins'][_0x11de('0x71')]('PendingActions'),_0x2ce14a=_0x1f2014[_0x11de('0x57')],_0x2c4a83=_0x1f2014[_0x11de('0x11')]?_0x1f2014['type']+':'+_0x1f2014[_0x11de('0x11')]:_0x1f2014[_0x11de('0x1e')],_0x1913cc=this[_0x11de('0x116')][_0x11de('0x9d')],_0x4b1dfd=_0x824b26[_0x11de('0xc0')](_0x2923a2(_0x1913cc,'PENDING_ACTION_SUGGESTION')),_0x2e75bf={'id':_0x546757,'type':_0x2c4a83,'hasComments':_0x2ce14a,'data':_0x2acfc4['data']||null,'originalSuggestionId':_0x2acfc4[_0x11de('0x1')]||null,'attributes':_0x1f2014[_0x11de('0xab')]};this[_0x11de('0xf2')]['addSuggestion'](_0x2e75bf)[_0x11de('0xfd')](_0x38a915=>{_0x1f2014[_0x11de('0x5')]=!0x0,_0x824b26[_0x11de('0xbf')](_0x4b1dfd),_0x38a915&&_0x38a915['createdAt']&&(this[_0x11de('0x6d')][_0x11de('0x71')](_0x546757)[_0x11de('0x120')]=_0x38a915[_0x11de('0x120')]);})['catch'](_0x3a7953=>{throw _0x2f869b('error-saving-suggestion-data-suggestion-discarded'),this[_0x11de('0x116')][_0x11de('0xcc')][_0x11de('0x12')]({'isUndoable':!0x1},()=>{_0x1f2014[_0x11de('0x52')]();}),_0x1f2014[_0x11de('0x94')](),this[_0x11de('0x6d')]['delete'](_0x1f2014['id']),this[_0x11de('0x7d')][_0x11de('0xa3')](_0x1f2014),_0x3a7953;});}return _0x1f2014;}[_0x11de('0x8')](_0x1bb85f,_0x139a3c){const _0x5541a5=this['editor'][_0x11de('0x103')][_0x11de('0x71')](_0x11de('0x12c')),_0x33674c=this['_suggestions'][_0x11de('0x71')](_0x1bb85f);if(this[_0x11de('0xf2')]&&this[_0x11de('0xf2')][_0x11de('0x67')]){if(_0x33674c[_0x11de('0x5')]){const _0x380799=_0x5541a5[_0x11de('0xc0')](_0x2923a2(this['editor']['locale'],_0x11de('0x26')));this[_0x11de('0xf2')][_0x11de('0x67')](_0x1bb85f,_0x139a3c)['then'](()=>{_0x5541a5[_0x11de('0xbf')](_0x380799);});}else _0x33674c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1bb85f,_0x139a3c);});}}[_0x11de('0x84')](_0x1c7fb7){if(!this[_0x11de('0xf2')]||!this[_0x11de('0xf2')][_0x11de('0xa0')])throw new _0x5bad98('track-changes-adapter-missing-getsuggestion',this);return this[_0x11de('0xf2')]['getSuggestion'](_0x1c7fb7);}['_handleNewSuggestionMarker'](_0x3d2da8){const {id:_0x4b94fc,type:_0x1baf11,subType:_0x1cdbd5,authorId:_0x199455}=this[_0x11de('0x47')](_0x3d2da8),_0x56e35b=this[_0x11de('0x6d')][_0x11de('0x71')](_0x4b94fc)||this[_0x11de('0x46')](_0x1baf11,_0x1cdbd5,_0x4b94fc,_0x199455);switch(this['_checkSuggestionCorrectness'](_0x56e35b,_0x1baf11,_0x1cdbd5,_0x199455),this[_0x11de('0x7d')][_0x11de('0x71')](_0x56e35b)){case'notReady':this[_0x11de('0x84')](_0x4b94fc)[_0x11de('0xfd')](_0x8a3c0c=>{let _0x50596b=Promise[_0x11de('0x1a')]();_0x8a3c0c['hasComments']&&(_0x50596b=this[_0x11de('0xdc')][_0x11de('0xda')]({'channelId':this[_0x11de('0x116')][_0x11de('0x45')][_0x11de('0x71')]('collaboration.channelId'),'threadId':_0x4b94fc})),_0x50596b[_0x11de('0xfd')](()=>{this[_0x11de('0xf4')](_0x8a3c0c)['_saved']=!0x0;});}),this[_0x11de('0x7d')][_0x11de('0xe4')](_0x56e35b,'markerReady');break;case _0x11de('0x76'):this[_0x11de('0x8')](_0x4b94fc,{'state':_0x11de('0x65')});case _0x11de('0x119'):this[_0x11de('0x7d')][_0x11de('0xe4')](_0x56e35b,'ready'),this[_0x11de('0x4d')](_0x11de('0xfc'),_0x56e35b);break;case'ready':this[_0x11de('0x4d')](_0x11de('0xf'),_0x56e35b);}return _0x56e35b[_0x11de('0xb5')](_0x3d2da8),_0x56e35b;}[_0x11de('0xba')](_0x2fdc0e){const _0x4cf61c=Array[_0x11de('0x86')](_0x2fdc0e)[_0x11de('0x3e')](_0x15a1aa=>!_0x15a1aa['isMultiRange']),_0x108b68=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c98d7=>!_0x4c98d7[_0x11de('0x12b')]),_0x19a7d4=_0x108b68[_0x11de('0x3e')](_0x24c717=>!_0x2fdc0e[_0x11de('0x79')](_0x24c717)),_0x297d27=new Map(_0x108b68[_0x11de('0x10')](_0x448c40=>[_0x448c40,this['_suggestionFactory'][_0x11de('0x112')](_0x448c40[_0x11de('0x1e')],_0x448c40[_0x11de('0x11')],'chain')])),_0xea9403=new Map(_0x108b68[_0x11de('0x10')](_0x49a22b=>[_0x49a22b,_0x49a22b[_0x11de('0xc8')]()])),_0x4d0eef=new Set(),_0xa9e0d1=new Set();for(let _0x41edc2=0x0;_0x41edc2<_0x4cf61c['length'];_0x41edc2++)_0x43d58a(_0x4cf61c[_0x41edc2],_0x4cf61c,_0x41edc2+0x1);for(let _0x1cf2c6=0x0;_0x1cf2c6<_0x4cf61c['length'];_0x1cf2c6++)_0x43d58a(_0x4cf61c[_0x1cf2c6],_0x19a7d4,0x0);for(let _0x35cc02=0x0;_0x35cc02<_0x4cf61c[_0x11de('0x54')];_0x35cc02++){const _0x28a5bd=_0x4cf61c[_0x35cc02];!_0xa9e0d1['has'](_0x28a5bd)&&_0x28a5bd['previous']&&(_0x28a5bd['previous'][_0x11de('0x123')]===_0x28a5bd&&(_0x28a5bd[_0x11de('0x125')][_0x11de('0x123')]=null),_0x28a5bd[_0x11de('0x125')]=null),!_0x4d0eef['has'](_0x28a5bd)&&_0x28a5bd[_0x11de('0x123')]&&(_0x28a5bd[_0x11de('0x123')][_0x11de('0x125')]===_0x28a5bd&&(_0x28a5bd['next']['previous']=null),_0x28a5bd[_0x11de('0x123')]=null);}function _0x43d58a(_0x153d93,_0x5a8a76,_0x66e3ec){for(let _0x11f136=_0x66e3ec;_0x11f136<_0x5a8a76['length'];_0x11f136++){const _0x2c65c4=_0x9faa6c(_0x153d93,_0x5a8a76[_0x11f136]);_0x2c65c4&&(_0x2c65c4[0x0][_0x11de('0x123')]=_0x2c65c4[0x1],_0x2c65c4[0x1]['previous']=_0x2c65c4[0x0],_0x4d0eef[_0x11de('0xc0')](_0x2c65c4[0x0]),_0xa9e0d1[_0x11de('0xc0')](_0x2c65c4[0x1]));}}function _0x9faa6c(_0x554afb,_0x4722b3){if(_0x554afb[_0x11de('0x31')]['id']!==_0x4722b3['author']['id'])return null;const _0x898b3=_0x297d27[_0x11de('0x71')](_0x554afb)(_0x554afb,_0x4722b3,_0xea9403['get'](_0x554afb),_0xea9403[_0x11de('0x71')](_0x4722b3));if(!_0x898b3)return null;return _0x297d27[_0x11de('0x71')](_0x4722b3)(_0x554afb,_0x4722b3,_0xea9403[_0x11de('0x71')](_0x554afb),_0xea9403[_0x11de('0x71')](_0x4722b3))?_0x898b3[0x1]['commentThread']&&_0x898b3[0x1][_0x11de('0xc9')][_0x11de('0x54')]?null:_0x898b3:null;}}['_joinWithAdjacentSuggestions'](_0x59a8f2){const _0x2d52b9=Array[_0x11de('0x86')](_0x59a8f2),_0x102757=this[_0x11de('0xa4')]({'skipNotAttached':!0x0}),_0x45914e=_0x102757[_0x11de('0x3e')](_0x428369=>!_0x59a8f2[_0x11de('0x79')](_0x428369)),_0x3242b0=new Map(_0x2d52b9[_0x11de('0x10')](_0x43b4a8=>[_0x43b4a8,this[_0x11de('0xd1')]['getSuggestionCallback'](_0x43b4a8['type'],_0x43b4a8[_0x11de('0x11')],_0x11de('0xae'))])),_0x33f305=new Map(_0x102757['map'](_0x2f4723=>[_0x2f4723,_0x2f4723[_0x11de('0x20')]()]));for(let _0x5c4fee=0x0;_0x5c4fee<_0x2d52b9[_0x11de('0x54')];_0x5c4fee++){if(_0x5d070c(this,_0x2d52b9[_0x5c4fee],_0x2d52b9,_0x5c4fee+0x1))return!0x0;}for(let _0x3fc72c=0x0;_0x3fc72c<_0x2d52b9[_0x11de('0x54')];_0x3fc72c++){if(_0x5d070c(this,_0x2d52b9[_0x3fc72c],_0x45914e,0x0))return!0x0;}return!0x1;function _0x5d070c(_0x4f82b5,_0x413982,_0x4a739f,_0x46761d){for(let _0x427d42=_0x46761d;_0x427d42<_0x4a739f[_0x11de('0x54')];_0x427d42++){const _0x35968b=_0x4a739f[_0x427d42];if(_0x35968b[_0x11de('0x1e')]!==_0x413982[_0x11de('0x1e')]||_0x35968b['author']['id']!==_0x413982[_0x11de('0x31')]['id']||_0x35968b[_0x11de('0x11')]!==_0x413982[_0x11de('0x11')])continue;const _0x956913=_0x3242b0[_0x11de('0x71')](_0x413982),_0x593852=_0x33f305[_0x11de('0x71')](_0x413982),_0x5748be=_0x33f305[_0x11de('0x71')](_0x35968b),_0x48e340=_0x413982['commentThread']&&_0x413982[_0x11de('0xc9')][_0x11de('0x54')],_0x3569d9=_0x35968b[_0x11de('0xc9')]&&_0x35968b[_0x11de('0xc9')][_0x11de('0x54')];if(!_0x48e340&&_0x956913(_0x5748be,_0x593852))return _0x4f82b5[_0x11de('0x3f')](_0x35968b,_0x413982),_0x33f305[_0x11de('0xa3')](_0x413982),!0x0;if(!_0x3569d9&&_0x956913(_0x593852,_0x5748be))return _0x4f82b5[_0x11de('0x3f')](_0x413982,_0x35968b),_0x33f305[_0x11de('0xa3')](_0x35968b),!0x0;}return!0x1;}}[_0x11de('0x3f')](_0x53476c,_0x3aa0c2){if(_0x53476c['isMultiRange'])for(const _0x1127b of _0x3aa0c2[_0x11de('0x20')]())_0x53476c[_0x11de('0x32')](_0x1127b);else{const _0x37fdf8=_0x3aa0c2[_0x11de('0xc8')]()['end'];this[_0x11de('0xc1')](_0x53476c,this[_0x11de('0x21')]['createRange'](_0x53476c[_0x11de('0xc8')]()[_0x11de('0x87')],_0x37fdf8));}_0x3aa0c2[_0x11de('0x15')]();}}_0x235fb4(p,_0x405ccc);class yt{constructor(_0x213860){this[_0x11de('0x10f')]=_0x213860,this[_0x11de('0x21')]=_0x213860[_0x11de('0xcc')],this[_0x11de('0x28')]=new Map(),this[_0x11de('0x9c')]=new Map(),this[_0x11de('0xbc')]();}[_0x11de('0x48')](_0x2665e7,_0x4abfae,_0x4c42d3,_0x5c1892,_0x54a2da,_0x18d4d2){return new _0x4b41f2(this[_0x11de('0x21')],{'type':_0x2665e7,'subType':_0x4abfae,'id':_0x4c42d3,'author':_0x5c1892,'creator':_0x5c1892,'attributes':_0x54a2da,'onAttributesChange':_0x18d4d2,'onAccept':(..._0x4fda0c)=>this[_0x11de('0x112')](_0x2665e7,_0x4abfae,'accept')(..._0x4fda0c),'onDiscard':(..._0x39b329)=>this['getSuggestionCallback'](_0x2665e7,_0x4abfae,_0x11de('0x52'))(..._0x39b329)});}[_0x11de('0x128')](_0x5ea335,_0x6d9bfa,_0x1cfff5,_0x4c6198){const _0x330c4e=_0x5ea335+':'+_0x6d9bfa+':'+_0x1cfff5;this[_0x11de('0x28')][_0x11de('0xe4')](_0x330c4e,_0x4c6198);}[_0x11de('0x112')](_0x291db8,_0x263ff7,_0x3b6e18){const _0x1ebded=_0x291db8+':'+_0x263ff7+':'+_0x3b6e18;return this[_0x11de('0x28')]['get'](_0x1ebded)||this[_0x11de('0x9c')][_0x11de('0x71')](_0x291db8+':'+_0x3b6e18);}[_0x11de('0xbc')](){const _0xddd5cf=()=>{},_0x3ae01e=_0xf4e2a1=>{_0xf4e2a1[_0x11de('0x98')]((_0xa75c26,_0x2bce1b)=>_0xa75c26['start']['isBefore'](_0x2bce1b['start'])?0x1:-0x1),this[_0x11de('0x21')][_0x11de('0x73')](_0x861bb4=>{for(const _0x3b513f of _0xf4e2a1){let _0x50a553;_0x50a553=_0x3b513f['end'][_0x11de('0x12d')]&&_0x3b513f[_0x11de('0xb')][_0x11de('0x10a')]==_0x3b513f[_0x11de('0x87')]['nodeAfter']?_0x861bb4['createSelection'](_0x3b513f[_0x11de('0x87')]['nodeAfter'],'on'):_0x861bb4[_0x11de('0x83')](_0x3b513f),this[_0x11de('0x21')][_0x11de('0x5f')](_0x50a553,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1eb0d4=(_0x5eaa6d,_0x4a5146)=>{this[_0x11de('0x21')][_0x11de('0x73')](_0x5a334b=>{const {commandName:_0x16f966,commandParams:_0x165899=[]}=_0x4a5146,_0xbe5194=_0x5eaa6d[0x0];if('$graveyard'==_0xbe5194[_0x11de('0x44')][_0x11de('0x5d')])return;const _0x1464cb=Array[_0x11de('0x86')](this[_0x11de('0x21')]['document'][_0x11de('0xeb')][_0x11de('0x20')]())[_0x11de('0x10')](_0x1545e0=>_0x41c412['fromRange'](_0x1545e0));St(_0xbe5194)?_0x5a334b[_0x11de('0xed')](this[_0x11de('0x21')][_0x11de('0xd0')](_0xbe5194[_0x11de('0xb')])):_0x5a334b[_0x11de('0xed')](_0xbe5194);for(const _0x2af47d of this['_editor'][_0x11de('0x29')]['commands']())_0x2af47d[_0x11de('0x6c')]();_0x165899[_0x11de('0x102')]({'forceDefaultExecution':!0x0}),this[_0x11de('0x10f')][_0x11de('0xea')](_0x16f966,..._0x165899);const _0x39cc20=_0x1464cb[_0x11de('0x3e')](_0x18618f=>'$graveyard'!=_0x18618f[_0x11de('0x44')][_0x11de('0x5d')]);_0x39cc20['length']>0x0&&_0x5a334b[_0x11de('0xed')](_0x39cc20);for(const _0x2e19aa of _0x1464cb)_0x2e19aa[_0x11de('0x50')]();});},_0xf4dc18=(_0x69ab13,_0x366cad)=>0x1==_0x69ab13['length']&&0x1==_0x366cad[_0x11de('0x54')]&&_0x69ab13[0x0]['end'][_0x11de('0xf0')](_0x366cad[0x0][_0x11de('0x87')]),_0x577c69=(_0x3d8171,_0x4364bb,_0x1ea93d,_0x4c10f7)=>Ct(_0x3d8171,_0x4364bb,_0x1ea93d,_0x4c10f7,this[_0x11de('0x21')])?[_0x3d8171,_0x4364bb]:Ct(_0x4364bb,_0x3d8171,_0x4c10f7,_0x1ea93d,this[_0x11de('0x21')])?[_0x4364bb,_0x3d8171]:null;this[_0x11de('0x9c')][_0x11de('0xe4')](_0x11de('0xbb'),_0xddd5cf),this['_defaultCallbacks'][_0x11de('0xe4')](_0x11de('0xa1'),_0x3ae01e),this[_0x11de('0x9c')][_0x11de('0xe4')]('insertion:join',_0xf4dc18),this[_0x11de('0x9c')]['set'](_0x11de('0x4b'),_0x577c69),this[_0x11de('0x9c')]['set'](_0x11de('0x5a'),_0x3ae01e),this['_defaultCallbacks'][_0x11de('0xe4')](_0x11de('0xc7'),_0xddd5cf),this[_0x11de('0x9c')]['set'](_0x11de('0xf3'),_0xf4dc18),this[_0x11de('0x9c')]['set'](_0x11de('0x104'),_0x577c69),this[_0x11de('0x9c')][_0x11de('0xe4')](_0x11de('0x33'),_0x1eb0d4),this[_0x11de('0x9c')][_0x11de('0xe4')](_0x11de('0xd5'),_0xddd5cf),this['_defaultCallbacks'][_0x11de('0xe4')]('formatInline:join',_0xf4dc18),this[_0x11de('0x9c')][_0x11de('0xe4')](_0x11de('0x8b'),_0xddd5cf),this[_0x11de('0x9c')][_0x11de('0xe4')]('formatBlock:accept',_0x1eb0d4),this['_defaultCallbacks'][_0x11de('0xe4')](_0x11de('0x117'),_0xddd5cf),this[_0x11de('0x9c')][_0x11de('0xe4')](_0x11de('0x62'),_0xf4dc18),this[_0x11de('0x9c')][_0x11de('0xe4')](_0x11de('0xa7'),_0xddd5cf);}}function bt(_0x3f3998,_0x4ee9f4,_0x522d16){for(const _0x4879e0 of _0x4ee9f4[_0x11de('0x10a')][_0x11de('0xa5')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4879e0[_0x11de('0x44')]==_0x4879e0)return!0x1;if(!_0x522d16[_0x11de('0x1f')](_0x4879e0))return!0x1;if(_0x3f3998[_0x11de('0x99')](_0x4879e0)||_0x3f3998[_0x11de('0x107')](_0x4879e0))return!0x0;}}function St(_0x5ebba6){return _0x5ebba6[_0x11de('0xb')][_0x11de('0x10a')]==_0x5ebba6[_0x11de('0x87')]['nodeAfter']&&_0x5ebba6[_0x11de('0xb')][_0x11de('0xf9')];}function It(_0x1bcd81,_0x2e895c,_0x2939c2,_0x2050ed){const _0x1ec108=_0x1c0d0e=>!_0x1c0d0e[_0x11de('0x10e')]['is'](_0x11de('0x9b'))&&!_0x2050ed[_0x11de('0x99')](_0x1c0d0e[_0x11de('0x10e')]),_0x19df2e=_0x1bcd81[_0x11de('0x87')][_0x11de('0x8f')](_0x1ec108),_0x582f25=_0x1bcd81[_0x11de('0xb')][_0x11de('0x8f')](_0x1ec108,{'direction':_0x11de('0x1b')});return(!_0x1bcd81[_0x11de('0x87')][_0x11de('0xf0')](_0x19df2e)||!_0x1bcd81[_0x11de('0xb')]['isEqual'](_0x582f25))&&(_0x19df2e[_0x11de('0xcb')](_0x582f25)?_0x2939c2['updateMarker'](_0x2e895c,{'range':_0x2939c2[_0x11de('0xd0')](_0x19df2e,_0x582f25)}):_0x2939c2[_0x11de('0xde')](_0x2e895c),!0x0);}function vt(_0x16390a){return _0x4886f8(_0x16390a);}function At(_0xaadef){const _0x21c05a=_0xaadef['start'][_0x11de('0xf5')];return _0x21c05a&&_0x21c05a['is'](_0x11de('0xec'));}function Dt(_0x2644c0,_0x15f1eb){const _0x5eecc1=_0x15f1eb[_0x11de('0x2b')][_0x11de('0x99')](_0x2644c0)||_0x15f1eb[_0x11de('0x2b')][_0x11de('0x51')](_0x2644c0);return _0x15f1eb[_0x11de('0xd0')](_0x15f1eb[_0x11de('0x106')](_0x2644c0,'before'),_0x5eecc1?_0x15f1eb[_0x11de('0x6b')](_0x2644c0):_0x15f1eb['createPositionAt'](_0x2644c0,_0x11de('0xb')));}function Ct(_0x5c4b3f,_0x413182,_0x2be173,_0x3d64ea,_0x12e0a4){if(_0x2be173[_0x11de('0xb')]['isEqual'](_0x3d64ea['start']))return!0x0;if(_0x5c4b3f['type']!=_0x413182[_0x11de('0x1e')])return!0x1;if(!_0x2be173[_0x11de('0xb')][_0x11de('0x82')](_0x3d64ea[_0x11de('0x87')]))return!0x1;const _0xcb5501=_0x12e0a4[_0x11de('0xd0')](_0x2be173['end'],_0x3d64ea[_0x11de('0x87')])[_0x11de('0x77')]();for(const _0xa36a70 of _0xcb5501)if([_0x11de('0x8a'),_0x11de('0xbd')]['includes'](_0xa36a70['type'])&&_0x12e0a4['schema']['isLimit'](_0xa36a70[_0x11de('0x10e')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x26e6=['some','discardAllSuggestions','has','head','trackChanges','unbind','from','separator','button','isEnabled','_handleSuggestionControllerDelayed','define','innerView','Accept\x20all\x20suggestions','reduce','init','discardSuggestion','editor','clear','Track\x20changes','config','CommentsRepository','_handleControllerBuffer','getDescriptions','_suggestionToController','commandName','length','trackChanges.disableComments','mapper','_destroyController','delete','execute','_createUIButton','PENDING_ACTION_SUGGESTION','source','getAllAdjacentSuggestions','EditorAnnotations','discardButton','TrackChangesUI','_initializeController','toMany','get','componentFactory','isDirty','comments','refreshSelectedViews','SuggestionThreadView','focus','getContainedElement','getRange','arrowView','add','set','activeMarkers','Discard\x20all\x20selected\x20suggestions','requires','actionView','getJoined','TrackChangesEditing','view','model','_disableComments','change:isDirty','previous','getByInnerView','createAnnotationView','acceptAllSuggestions','commands','suggestion-','remove','suggestionUnloaded','_viewToController','buttonView','locale','comments.maxCommentsWhenCollapsed','hasSuggestion','switchbutton','suggestionChanged','isOn','destroy','Accept\x20all\x20selected\x20suggestions','change:previous','type','comments.maxThreadTotalWeight','listenTo','stopListening','suggestionLoaded','commentThread','comments.editorConfig','CommentsUI','PendingActions','trackChanges.SuggestionThreadView','acceptSelectedSuggestions','editing','Annotations','createAnnotation','getFirstMarker','toViewElement','Discard\x20all\x20suggestions','push','bind','addSourceCollector','pluginName','map','getMarkerNames','plugins','addComment','filter','size','_updateController','isInContent'];(function(_0x44658a,_0x26e692){const _0xf4a0e=function(_0x18403f){while(--_0x18403f){_0x44658a['push'](_0x44658a['shift']());}};_0xf4a0e(++_0x26e692);}(_0x26e6,0x183));const _0xf4a0=function(_0x44658a,_0x26e692){_0x44658a=_0x44658a-0x0;let _0xf4a0e=_0x26e6[_0x44658a];return _0xf4a0e;};import{Plugin as _0x614bca}from'ckeditor5/src/core';import{Collection as _0x8275fd}from'ckeditor5/src/utils';import{Model as _0xe41dd1,SplitButtonView as _0x4af1ae,createDropdown as _0x53e5ac,addListToDropdown as _0x3daa0e}from'ckeditor5/src/ui';import{Users as _0x3a1f36,getDateTimeFormatter as _0x352671,getMarkerDomElement as _0x59d6ac}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f0e29 from'./trackchangesediting';import _0x11997c from'./ui/suggestioncontroller';import _0x518ae2 from'./ui/view/suggestionthreadview';import{getTranslation as _0x558900}from'./utils/common-translations';import _0x4c66d0 from'../theme/icons/track-changes.svg';export default class m extends _0x614bca{static get[_0xf4a0('0x1')](){return[_0x2f0e29,_0x3a1f36,'CommentsRepository','Annotations',_0xf4a0('0x5d')];}static get[_0xf4a0('0x30')](){return _0xf4a0('0x5f');}constructor(_0x36f9e0){super(_0x36f9e0),this[_0xf4a0('0x51')]=new Map(),this[_0xf4a0('0x11')]=new Map(),this['_handleControllerBuffer']=new Map();const _0x123a58=this[_0xf4a0('0x4a')][_0xf4a0('0x4d')];_0x123a58[_0xf4a0('0x44')](_0xf4a0('0x25'),_0x518ae2),_0x123a58[_0xf4a0('0x44')](_0xf4a0('0x54'),!0x1),this[_0xf4a0('0x7')]=_0x123a58[_0xf4a0('0x62')](_0xf4a0('0x54'));}[_0xf4a0('0x43')](_0x279e2d,_0x34de2e){0x0===this['_handleControllerBuffer'][_0xf4a0('0x36')]&&setTimeout(()=>{for(const [_0x5be56d,_0x349c03]of this[_0xf4a0('0x4f')]){const _0x15288d=this[_0xf4a0('0x51')][_0xf4a0('0x3b')](_0x5be56d);_0x15288d||_0x349c03?_0x15288d&&_0x349c03&&this[_0xf4a0('0x56')](_0x5be56d):this['_initializeController'](_0x5be56d);}this[_0xf4a0('0x4a')][_0xf4a0('0x33')]['get'](_0xf4a0('0x5d'))[_0xf4a0('0x66')](),this[_0xf4a0('0x4f')][_0xf4a0('0x4b')]();},0xa),this['_handleControllerBuffer'][_0xf4a0('0x6d')](_0x279e2d,_0x34de2e);}[_0xf4a0('0x48')](){const _0x5926d4=this[_0xf4a0('0x4a')],_0x10c862=_0x5926d4['plugins'][_0xf4a0('0x62')](_0x2f0e29),_0x20a6fe=_0x5926d4[_0xf4a0('0x33')]['get'](_0xf4a0('0x28')),_0x7afa75=_0x5926d4[_0xf4a0('0x33')]['get'](_0xf4a0('0x5d')),_0x4cbd83=_0x5926d4[_0xf4a0('0x33')]['get'](_0xf4a0('0x4e'));_0x5926d4['ui'][_0xf4a0('0x63')][_0xf4a0('0x6c')](_0xf4a0('0x3d'),_0x205193=>this['_createUIButton'](_0x205193)),_0x7afa75[_0xf4a0('0x2f')](()=>{const _0x41de66=[];for(const [_0x28b1d1,_0x48b31c]of Array[_0xf4a0('0x3f')](this[_0xf4a0('0x51')])){const _0x78ead2=_0x28b1d1['getAllAdjacentSuggestions'](),_0xd1ad7f=[];for(const _0x1c26ee of _0x78ead2){if(!_0x1c26ee[_0xf4a0('0x38')])continue;if(_0x1c26ee['isMultiRange']){_0xd1ad7f['push'](..._0x1c26ee['getRanges']());continue;}const _0x9d2bd8=_0x1c26ee['getFirstRange']();if(_0xd1ad7f[_0xf4a0('0x53')]>0x0){const _0x327846=_0xd1ad7f[0x0][_0xf4a0('0x3')](_0x9d2bd8);if(_0x327846){_0xd1ad7f[0x0]=_0x327846;continue;}}_0xd1ad7f['push'](_0x9d2bd8);}_0x41de66[_0xf4a0('0x2d')]([_0x48b31c['view'],_0xd1ad7f]);}return _0x41de66;}),this[_0xf4a0('0x1e')](_0x10c862,_0xf4a0('0x20'),(_0x4dcf20,_0x36081d)=>{this['listenTo'](_0x36081d,'change:previous',(_0xdab03f,_0x2257be,_0x46f89d,_0x4bf3bf)=>{_0x36081d['isInContent']&&(null==_0x46f89d?(this[_0xf4a0('0x37')](_0x4bf3bf[_0xf4a0('0x3c')]),this[_0xf4a0('0x43')](_0x36081d,!0x1)):(this[_0xf4a0('0x37')](_0x46f89d[_0xf4a0('0x3c')]),this[_0xf4a0('0x43')](_0x36081d,!0x0)));}),null===_0x36081d[_0xf4a0('0x9')]?this[_0xf4a0('0x43')](_0x36081d,!0x1):this[_0xf4a0('0x37')](_0x36081d[_0xf4a0('0x3c')]);}),this[_0xf4a0('0x1e')](_0x10c862,_0xf4a0('0x10'),(_0x4532cb,_0x429e95,_0x1ae809)=>{this[_0xf4a0('0x1f')](_0x429e95,_0xf4a0('0x1b')),this[_0xf4a0('0x4f')][_0xf4a0('0x57')](_0x429e95);const _0x307036=_0x1ae809?_0x1ae809[_0xf4a0('0x3c')]:_0x429e95,_0x564dc8=this['_suggestionToController']['get'](_0x307036);null!==_0x1ae809&&this[_0xf4a0('0x37')](_0x307036),null===_0x1ae809&&_0x564dc8&&this[_0xf4a0('0x56')](_0x429e95);}),this[_0xf4a0('0x1e')](_0x10c862,_0xf4a0('0x17'),(_0x40fe33,_0x29181c)=>{this[_0xf4a0('0x37')](_0x29181c);}),this['listenTo'](_0x20a6fe,'change:activeAnnotations',(_0x3b0fc1,_0x36297c,_0x444c89)=>{const _0x4d687e=Array[_0xf4a0('0x3f')](_0x444c89,_0x4a8a45=>_0x4a8a45[_0xf4a0('0x45')])[_0xf4a0('0x35')](_0x564124=>this['_viewToController'][_0xf4a0('0x3b')](_0x564124)),_0x9700e5=[];for(const _0x26cabb of _0x4d687e){const _0x49f20e=this[_0xf4a0('0x11')][_0xf4a0('0x62')](_0x26cabb)['model'][_0xf4a0('0x5c')]();_0x9700e5[_0xf4a0('0x2d')](..._0x49f20e[_0xf4a0('0x47')]((_0x1296d4,_0x5b1718)=>[..._0x1296d4,..._0x5b1718[_0xf4a0('0x32')]()],[]));}_0x10c862[_0xf4a0('0x6e')]=_0x9700e5;}),this[_0xf4a0('0x1e')](_0x4cbd83,_0xf4a0('0x34'),(_0x515cc3,{threadId:_0x27ff50,isFromAdapter:_0x22755a})=>{if(_0x22755a||!_0x10c862[_0xf4a0('0x15')](_0x27ff50))return;const _0x4fdd99=_0x10c862['getSuggestion'](_0x27ff50);this['_suggestionToController']['get'](_0x4fdd99)[_0xf4a0('0x5')][_0xf4a0('0x68')]();},{'priority':'lowest'});}[_0xf4a0('0x59')](_0x554051){const _0x3a6bd2=_0x53e5ac(_0x554051,_0x4af1ae),_0x16a8d9=this[_0xf4a0('0x4a')]['commands'][_0xf4a0('0x62')](_0xf4a0('0x3d')),_0xa57093=_0x558900(_0x554051,_0xf4a0('0x4c'));_0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x6d')]({'tooltip':_0xa57093,'label':_0xa57093,'icon':_0x4c66d0}),_0x3a6bd2['buttonView'][_0xf4a0('0x2e')]('isOn')['to'](_0x16a8d9,'value'),_0x3a6bd2[_0xf4a0('0x12')]['on'](_0xf4a0('0x58'),()=>{_0x16a8d9[_0xf4a0('0x58')](),this[_0xf4a0('0x4a')][_0xf4a0('0x27')]['view']['focus']();});const _0x5d8e48=new _0x8275fd(),_0x4224f4=[{'type':_0xf4a0('0x16'),'model':{'withText':!0x0,'label':_0xa57093,'commandName':_0xf4a0('0x3d')}},{'type':_0xf4a0('0x40')},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x46')),'commandName':_0xf4a0('0xc')}},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x1a')),'commandName':_0xf4a0('0x26')}},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x2c')),'commandName':_0xf4a0('0x3a')}},{'type':_0xf4a0('0x41'),'model':{'withText':!0x0,'label':_0x558900(_0x554051,_0xf4a0('0x0')),'commandName':'discardSelectedSuggestions'}}];for(const _0x4852ec of _0x4224f4){const _0x309da6={'type':_0x4852ec[_0xf4a0('0x1c')]};if(_0x4852ec['model']){const _0x23ea47=new _0xe41dd1(_0x4852ec[_0xf4a0('0x6')]),_0x235396=this[_0xf4a0('0x4a')][_0xf4a0('0xd')][_0xf4a0('0x62')](_0x23ea47[_0xf4a0('0x52')]);_0x23ea47[_0xf4a0('0x2e')](_0xf4a0('0x18'),'isEnabled')['to'](_0x235396,'value',_0xf4a0('0x42')),_0x309da6['model']=_0x23ea47;}_0x5d8e48[_0xf4a0('0x6c')](_0x309da6);}_0x3daa0e(_0x3a6bd2,_0x5d8e48);const _0x294151=_0x4224f4[_0xf4a0('0x35')](_0x2dccc9=>null!=_0x2dccc9[_0xf4a0('0x6')])[_0xf4a0('0x31')](_0x546907=>this[_0xf4a0('0x4a')][_0xf4a0('0xd')]['get'](_0x546907[_0xf4a0('0x6')]['commandName']));return _0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x2')][_0xf4a0('0x3e')](_0xf4a0('0x42')),_0x3a6bd2['buttonView'][_0xf4a0('0x6b')][_0xf4a0('0x3e')](_0xf4a0('0x42')),_0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x2')][_0xf4a0('0x2e')](_0xf4a0('0x42'))['to'](_0x16a8d9,_0xf4a0('0x42')),_0x3a6bd2[_0xf4a0('0x12')][_0xf4a0('0x6b')][_0xf4a0('0x2e')](_0xf4a0('0x42'))[_0xf4a0('0x61')](_0x294151,'isEnabled',(..._0x1d5782)=>_0x1d5782[_0xf4a0('0x39')](_0x3e9d95=>_0x3e9d95)),_0x3a6bd2['on'](_0xf4a0('0x58'),_0xc4655c=>{this[_0xf4a0('0x4a')]['execute'](_0xc4655c[_0xf4a0('0x5b')][_0xf4a0('0x52')]),this[_0xf4a0('0x4a')][_0xf4a0('0x27')][_0xf4a0('0x5')][_0xf4a0('0x68')]();}),_0x3a6bd2;}[_0xf4a0('0x60')](_0x10aff8){const _0x38f300=this[_0xf4a0('0x4a')],_0x2a471c=_0x38f300[_0xf4a0('0x4d')],_0x42b7a5=_0x38f300[_0xf4a0('0x33')][_0xf4a0('0x62')]('Annotations'),_0x32d81c=_0x38f300[_0xf4a0('0x33')]['get'](_0xf4a0('0x4e')),_0x2209b5=_0x38f300[_0xf4a0('0x33')][_0xf4a0('0x62')](_0xf4a0('0x5d')),_0x479108=_0x10aff8['getAllAdjacentSuggestions']()[_0xf4a0('0x35')](_0x527882=>_0x527882[_0xf4a0('0x38')]),_0x3a91fc=_0x38f300['plugins']['get'](_0x3a1f36)['me'],_0x3995c4=_0x38f300['commands']['get']('acceptSuggestion'),_0x5606b6=_0x38f300[_0xf4a0('0xd')]['get'](_0xf4a0('0x49')),_0x463cd3=_0x2a471c['get'](_0xf4a0('0x3d'))[_0xf4a0('0x67')],{CommentsListView:_0x45b8ba,CommentThreadInputView:_0x2290e6}=_0x38f300[_0xf4a0('0x33')]['get'](_0xf4a0('0x23')),_0x20e127=new _0x463cd3(_0x38f300[_0xf4a0('0x13')],_0x10aff8,_0x3a91fc,{'disableComments':this['_disableComments'],'editorConfig':_0x2a471c[_0xf4a0('0x62')](_0xf4a0('0x22')),'maxCommentsWhenCollapsed':_0x2a471c[_0xf4a0('0x62')](_0xf4a0('0x14')),'maxThreadTotalWeight':_0x2a471c['get'](_0xf4a0('0x1d')),'maxCommentCharsWhenCollapsed':_0x2a471c[_0xf4a0('0x62')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x352671(_0x2a471c[_0xf4a0('0x62')](_0xf4a0('0x13'))),'CommentView':_0x2a471c['get'](_0xf4a0('0x65'))['CommentView'],'CommentsListView':_0x45b8ba,'CommentThreadInputView':_0x2290e6}),_0x1e1fb9=_0x32d81c['createCommentThreadController'](_0x10aff8[_0xf4a0('0x21')],_0x20e127),_0x1213e2=new _0x11997c(_0x10aff8,_0x20e127,_0x3995c4,_0x5606b6,_0x1e1fb9);_0x20e127['descriptionParts']=_0x38f300[_0xf4a0('0x33')]['get']('TrackChangesEditing')['_descriptionFactory'][_0xf4a0('0x50')](_0x479108),this[_0xf4a0('0x51')][_0xf4a0('0x6d')](_0x10aff8,_0x1213e2),this['_viewToController'][_0xf4a0('0x6d')](_0x20e127,_0x1213e2);const _0x4d5a55=_0x42b7a5[_0xf4a0('0xb')](this[_0xf4a0('0x4a')]['locale'],_0x20e127);_0x4d5a55[_0xf4a0('0x2e')](_0xf4a0('0x64'))['to'](_0x20e127,_0xf4a0('0x64')),_0x4d5a55[_0xf4a0('0x2e')](_0xf4a0('0x53'))['to'](_0x20e127),_0x4d5a55[_0xf4a0('0x2e')]('type')['to'](_0x20e127,_0xf4a0('0x1c'),_0x969856=>'suggestion-'+_0x969856);const _0x59afe6=_0x42b7a5[_0xf4a0('0x29')]({'view':_0x4d5a55,'target':()=>{const _0x5353aa=_0x479108[0x0][_0xf4a0('0x2a')]();if(!_0x5353aa)return null;const _0x1d39d1=_0x5353aa[_0xf4a0('0x6a')]()[_0xf4a0('0x69')]();return _0x1d39d1&&!_0x38f300[_0xf4a0('0x27')][_0xf4a0('0x55')][_0xf4a0('0x2b')](_0x1d39d1)?null:_0x59d6ac(_0x38f300[_0xf4a0('0x27')],_0x5353aa)||null;},'type':()=>_0xf4a0('0xe')+_0x1213e2[_0xf4a0('0x5')][_0xf4a0('0x1c')]});_0x42b7a5[_0xf4a0('0x6c')](_0x59afe6),_0x2209b5['registerAnnotation'](_0x59afe6);const _0x5ecde7=_0x38f300[_0xf4a0('0x33')]['get'](_0xf4a0('0x24'));let _0x9de82;_0x20e127['on'](_0xf4a0('0x8'),(_0x1eb8de,_0x404b54,_0x431528)=>{_0x431528?_0x9de82=_0x5ecde7[_0xf4a0('0x6c')](_0x558900(this[_0xf4a0('0x4a')][_0xf4a0('0x13')],_0xf4a0('0x5a'))):(_0x5ecde7[_0xf4a0('0xf')](_0x9de82),_0x9de82=null);}),_0x20e127['acceptButton']['on']('execute',()=>{_0x38f300[_0xf4a0('0x27')][_0xf4a0('0x5')][_0xf4a0('0x68')]();}),_0x20e127[_0xf4a0('0x5e')]['on'](_0xf4a0('0x58'),()=>{_0x38f300[_0xf4a0('0x27')][_0xf4a0('0x5')][_0xf4a0('0x68')]();});}['_destroyController'](_0xa588c9){const _0x1b4dba=this[_0xf4a0('0x4a')][_0xf4a0('0x33')][_0xf4a0('0x62')](_0xf4a0('0x28')),_0x1f124a=this[_0xf4a0('0x51')][_0xf4a0('0x62')](_0xa588c9),_0xb2222e=_0x1f124a[_0xf4a0('0x5')],_0x40e690=_0x1b4dba[_0xf4a0('0xa')](_0xb2222e);_0x40e690&&_0x1b4dba[_0xf4a0('0xf')](_0x40e690),this[_0xf4a0('0x51')][_0xf4a0('0x57')](_0xa588c9),this[_0xf4a0('0x11')][_0xf4a0('0x57')](_0xb2222e),_0x1f124a['destroy'](),_0xb2222e[_0xf4a0('0x19')]();}[_0xf4a0('0x37')](_0x11c650){if(!_0x11c650[_0xf4a0('0x38')]||!this[_0xf4a0('0x51')][_0xf4a0('0x3b')](_0x11c650))return;const _0x1c0132=this[_0xf4a0('0x4a')][_0xf4a0('0x33')]['get'](_0xf4a0('0x4')),_0x5c7b06=this[_0xf4a0('0x51')][_0xf4a0('0x62')](_0x11c650),_0x43c5b8=_0x11c650[_0xf4a0('0x5c')]();_0x5c7b06['view']['descriptionParts']=_0x1c0132['_descriptionFactory'][_0xf4a0('0x50')](_0x43c5b8);}[_0xf4a0('0x19')](){super[_0xf4a0('0x19')]();for(const _0x21bfeb of this['_suggestionToController']['keys']())this[_0xf4a0('0x56')](_0x21bfeb);}}
|
|
23
|
+
const _0x54ba=['discardSelectedSuggestions','addSourceCollector','refreshSelectedViews','TrackChangesEditing','hasSuggestion','getByInnerView','trackChanges.disableComments','createCommentThreadController','add','length','filter','editor','previous','createAnnotationView','listenTo','trackChanges','getRange','change:previous','execute','_handleSuggestionControllerDelayed','getFirstRange','getContainedElement','isInContent','_suggestionToController','_viewToController','Discard\x20all\x20selected\x20suggestions','_handleControllerBuffer','EditorAnnotations','CommentsUI','acceptButton','CommentView','remove','arrowView','config','values','button','mainView','_createUIButton','_disableComments','innerView','_updateController','define','init','unbind','isDirty','stopListening','_annotationViews','getAllAdjacentSuggestions','type','has','commentThread','set','_destroyController','reduce','focus','plugins','suggestionChanged','commands','isMultiRange','discardAllSuggestions','destroy','lowest','discardButton','getMarkerNames','from','isEnabled','size','createAnnotation','comments.maxThreadTotalWeight','requires','acceptSelectedSuggestions','bind','TrackChangesUI','clear','_initializeController','Annotations','locale','head','view','descriptionParts','isOn','keys','editing','CommentsRepository','model','buttonView','getJoined','addComment','suggestionUnloaded','actionView','Track\x20changes','suggestion-','value','_descriptionFactory','pluginName','push','delete','get','separator','activeMarkers','commandName'];(function(_0x5a83da,_0x54ba7d){const _0x3ecfba=function(_0x43d43c){while(--_0x43d43c){_0x5a83da['push'](_0x5a83da['shift']());}};_0x3ecfba(++_0x54ba7d);}(_0x54ba,0x1e0));const _0x3ecf=function(_0x5a83da,_0x54ba7d){_0x5a83da=_0x5a83da-0x0;let _0x3ecfba=_0x54ba[_0x5a83da];return _0x3ecfba;};import{Plugin as _0x150282}from'ckeditor5/src/core';import{Collection as _0x47c24b}from'ckeditor5/src/utils';import{Model as _0x1489bf,SplitButtonView as _0x1b652b,createDropdown as _0x4e1dcb,addListToDropdown as _0x369448}from'ckeditor5/src/ui';import{Users as _0xf9d877,getDateTimeFormatter as _0xcd44e8,getMarkerDomElement as _0x573ad0}from'ckeditor5-collaboration/src/collaboration-core';import _0x13e0ce from'./trackchangesediting';import _0xa55c34 from'./ui/suggestioncontroller';import _0x4c08bb from'./ui/view/suggestionthreadview';import{getTranslation as _0x29b37e}from'./utils/common-translations';import _0x39f5b4 from'../theme/icons/track-changes.svg';export default class d extends _0x150282{static get[_0x3ecf('0x5e')](){return[_0x13e0ce,_0xf9d877,_0x3ecf('0x7'),_0x3ecf('0x64'),'EditorAnnotations'];}static get[_0x3ecf('0x12')](){return _0x3ecf('0x61');}constructor(_0xa6e161){super(_0xa6e161),this[_0x3ecf('0x30')]=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this[_0x3ecf('0x33')]=new Map();const _0xcc06bb=this[_0x3ecf('0x24')][_0x3ecf('0x3a')];_0xcc06bb[_0x3ecf('0x42')]('trackChanges.SuggestionThreadView',_0x4c08bb),_0xcc06bb[_0x3ecf('0x42')]('trackChanges.disableComments',!0x1),this[_0x3ecf('0x3f')]=_0xcc06bb[_0x3ecf('0x15')](_0x3ecf('0x1f'));}['_handleSuggestionControllerDelayed'](_0x57eb84,_0xd6dace){0x0===this[_0x3ecf('0x33')][_0x3ecf('0x5b')]&&setTimeout(()=>{for(const [_0xaa3cf6,_0x21751a]of this[_0x3ecf('0x33')]){const _0x56cc0f=this[_0x3ecf('0x30')][_0x3ecf('0x4a')](_0xaa3cf6);_0x56cc0f||_0x21751a?_0x56cc0f&&_0x21751a&&this[_0x3ecf('0x4d')](_0xaa3cf6):this['_initializeController'](_0xaa3cf6);}this[_0x3ecf('0x24')][_0x3ecf('0x50')][_0x3ecf('0x15')](_0x3ecf('0x34'))[_0x3ecf('0x1b')](),this[_0x3ecf('0x33')][_0x3ecf('0x62')]();},0xa),this[_0x3ecf('0x33')]['set'](_0x57eb84,_0xd6dace);}[_0x3ecf('0x43')](){const _0x380cd7=this[_0x3ecf('0x24')],_0x59abd7=_0x380cd7[_0x3ecf('0x50')][_0x3ecf('0x15')](_0x13e0ce),_0x2a2df7=_0x380cd7[_0x3ecf('0x50')][_0x3ecf('0x15')](_0x3ecf('0x64')),_0x2d8740=_0x380cd7[_0x3ecf('0x50')][_0x3ecf('0x15')]('EditorAnnotations'),_0x254e35=_0x380cd7[_0x3ecf('0x50')][_0x3ecf('0x15')](_0x3ecf('0x7'));_0x380cd7['ui']['componentFactory'][_0x3ecf('0x21')](_0x3ecf('0x28'),_0x48302b=>this[_0x3ecf('0x3e')](_0x48302b)),_0x2d8740[_0x3ecf('0x1a')](()=>{const _0x2342df=[];for(const [_0x2198ed,_0x435ffb]of Array['from'](this[_0x3ecf('0x30')])){const _0x24f8aa=_0x2198ed[_0x3ecf('0x48')](),_0x4bfe70=[];for(const _0xdb10d1 of _0x24f8aa){if(!_0xdb10d1[_0x3ecf('0x2f')])continue;if(_0xdb10d1[_0x3ecf('0x53')]){_0x4bfe70[_0x3ecf('0x13')](..._0xdb10d1['getRanges']());continue;}const _0x5aa0b6=_0xdb10d1[_0x3ecf('0x2d')]();if(_0x4bfe70[_0x3ecf('0x22')]>0x0){const _0x161e61=_0x4bfe70[0x0][_0x3ecf('0xa')](_0x5aa0b6);if(_0x161e61){_0x4bfe70[0x0]=_0x161e61;continue;}}_0x4bfe70['push'](_0x5aa0b6);}_0x2342df[_0x3ecf('0x13')]([_0x435ffb[_0x3ecf('0x2')],_0x4bfe70]);}return _0x2342df;}),this[_0x3ecf('0x27')](_0x59abd7,'suggestionLoaded',(_0x2eb1b7,_0x2de3ae)=>{this[_0x3ecf('0x27')](_0x2de3ae,_0x3ecf('0x2a'),(_0x156058,_0x3efb2a,_0x57c70a,_0xc2c79e)=>{_0x2de3ae[_0x3ecf('0x2f')]&&(null==_0x57c70a?(this[_0x3ecf('0x41')](_0xc2c79e[_0x3ecf('0x1')]),this[_0x3ecf('0x2c')](_0x2de3ae,!0x1)):(this['_updateController'](_0x57c70a[_0x3ecf('0x1')]),this[_0x3ecf('0x2c')](_0x2de3ae,!0x0)));}),null===_0x2de3ae[_0x3ecf('0x25')]?this['_handleSuggestionControllerDelayed'](_0x2de3ae,!0x1):this[_0x3ecf('0x41')](_0x2de3ae['head']);}),this['listenTo'](_0x59abd7,_0x3ecf('0xc'),(_0x5a5876,_0x1d7e5f,_0xe91b13)=>{this[_0x3ecf('0x46')](_0x1d7e5f,_0x3ecf('0x2a')),this['_handleControllerBuffer'][_0x3ecf('0x14')](_0x1d7e5f);const _0xaaa5c=_0xe91b13?_0xe91b13['head']:_0x1d7e5f,_0x138ec1=this[_0x3ecf('0x30')][_0x3ecf('0x15')](_0xaaa5c);null!==_0xe91b13&&this[_0x3ecf('0x41')](_0xaaa5c),null===_0xe91b13&&_0x138ec1&&this[_0x3ecf('0x4d')](_0x1d7e5f);}),this['listenTo'](_0x59abd7,_0x3ecf('0x51'),(_0x358747,_0x571782)=>{this[_0x3ecf('0x41')](_0x571782);}),this[_0x3ecf('0x27')](_0x2a2df7,'change:activeAnnotations',(_0x176062,_0x24856f,_0x273bf3)=>{const _0x5b9227=Array[_0x3ecf('0x59')](_0x273bf3,_0x2d505c=>_0x2d505c[_0x3ecf('0x40')])[_0x3ecf('0x23')](_0x3d86f5=>this['_viewToController'][_0x3ecf('0x4a')](_0x3d86f5)),_0x3cb665=[];for(const _0x73750d of _0x5b9227){const _0x22df10=this['_viewToController'][_0x3ecf('0x15')](_0x73750d)['model'][_0x3ecf('0x48')]();_0x3cb665[_0x3ecf('0x13')](..._0x22df10[_0x3ecf('0x4e')]((_0x51357a,_0x5e5eb1)=>[..._0x51357a,..._0x5e5eb1[_0x3ecf('0x58')]()],[]));}_0x59abd7[_0x3ecf('0x17')]=_0x3cb665;}),this[_0x3ecf('0x27')](_0x254e35,_0x3ecf('0xb'),(_0x9cd8f1,{threadId:_0x1cd61d,isFromAdapter:_0x2c0771})=>{if(_0x2c0771||!_0x59abd7[_0x3ecf('0x1d')](_0x1cd61d))return;const _0x427879=_0x59abd7['getSuggestion'](_0x1cd61d);this[_0x3ecf('0x30')][_0x3ecf('0x15')](_0x427879)[_0x3ecf('0x2')][_0x3ecf('0x4f')]();},{'priority':_0x3ecf('0x56')});}[_0x3ecf('0x3e')](_0x9dd4cc){const _0x2df7e7=_0x4e1dcb(_0x9dd4cc,_0x1b652b),_0x4fc103=this[_0x3ecf('0x24')][_0x3ecf('0x52')][_0x3ecf('0x15')](_0x3ecf('0x28')),_0x258831=_0x29b37e(_0x9dd4cc,_0x3ecf('0xe'));_0x2df7e7['buttonView'][_0x3ecf('0x4c')]({'tooltip':_0x258831,'label':_0x258831,'icon':_0x39f5b4}),_0x2df7e7[_0x3ecf('0x9')][_0x3ecf('0x60')]('isOn')['to'](_0x4fc103,_0x3ecf('0x10')),_0x2df7e7[_0x3ecf('0x9')]['on'](_0x3ecf('0x2b'),()=>{_0x4fc103[_0x3ecf('0x2b')](),this['editor']['editing'][_0x3ecf('0x2')][_0x3ecf('0x4f')]();});const _0x533ad3=new _0x47c24b(),_0x377650=[{'type':'switchbutton','model':{'withText':!0x0,'label':_0x258831,'commandName':_0x3ecf('0x28')}},{'type':_0x3ecf('0x16')},{'type':_0x3ecf('0x3c'),'model':{'withText':!0x0,'label':_0x29b37e(_0x9dd4cc,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'}},{'type':_0x3ecf('0x3c'),'model':{'withText':!0x0,'label':_0x29b37e(_0x9dd4cc,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x3ecf('0x5f')}},{'type':_0x3ecf('0x3c'),'model':{'withText':!0x0,'label':_0x29b37e(_0x9dd4cc,'Discard\x20all\x20suggestions'),'commandName':_0x3ecf('0x54')}},{'type':_0x3ecf('0x3c'),'model':{'withText':!0x0,'label':_0x29b37e(_0x9dd4cc,_0x3ecf('0x32')),'commandName':_0x3ecf('0x19')}}];for(const _0x4f970e of _0x377650){const _0x49c90e={'type':_0x4f970e[_0x3ecf('0x49')]};if(_0x4f970e[_0x3ecf('0x8')]){const _0x36d8f1=new _0x1489bf(_0x4f970e[_0x3ecf('0x8')]),_0x14a445=this[_0x3ecf('0x24')][_0x3ecf('0x52')][_0x3ecf('0x15')](_0x36d8f1[_0x3ecf('0x18')]);_0x36d8f1['bind'](_0x3ecf('0x4'),_0x3ecf('0x5a'))['to'](_0x14a445,_0x3ecf('0x10'),_0x3ecf('0x5a')),_0x49c90e[_0x3ecf('0x8')]=_0x36d8f1;}_0x533ad3[_0x3ecf('0x21')](_0x49c90e);}_0x369448(_0x2df7e7,_0x533ad3);const _0x388fad=_0x377650[_0x3ecf('0x23')](_0x405414=>null!=_0x405414['model'])['map'](_0x52d136=>this[_0x3ecf('0x24')][_0x3ecf('0x52')][_0x3ecf('0x15')](_0x52d136[_0x3ecf('0x8')]['commandName']));return _0x2df7e7['buttonView']['actionView'][_0x3ecf('0x44')](_0x3ecf('0x5a')),_0x2df7e7[_0x3ecf('0x9')][_0x3ecf('0x39')]['unbind'](_0x3ecf('0x5a')),_0x2df7e7[_0x3ecf('0x9')][_0x3ecf('0xd')]['bind']('isEnabled')['to'](_0x4fc103,'isEnabled'),_0x2df7e7[_0x3ecf('0x9')]['arrowView'][_0x3ecf('0x60')]('isEnabled')['toMany'](_0x388fad,_0x3ecf('0x5a'),(..._0x27bf65)=>_0x27bf65['some'](_0xb4e03=>_0xb4e03)),_0x2df7e7['on'](_0x3ecf('0x2b'),_0x4eb9d0=>{this['editor'][_0x3ecf('0x2b')](_0x4eb9d0['source'][_0x3ecf('0x18')]),this[_0x3ecf('0x24')][_0x3ecf('0x6')]['view'][_0x3ecf('0x4f')]();}),_0x2df7e7;}[_0x3ecf('0x63')](_0x3f438c){const _0x3aecd8=this[_0x3ecf('0x24')],_0x2a881d=_0x3aecd8['config'],_0x4725b6=_0x3aecd8[_0x3ecf('0x50')][_0x3ecf('0x15')]('Annotations'),_0x51a615=_0x3aecd8[_0x3ecf('0x50')][_0x3ecf('0x15')](_0x3ecf('0x7')),_0x26d72f=_0x3aecd8[_0x3ecf('0x50')]['get'](_0x3ecf('0x34')),_0x5b9b26=_0x3f438c[_0x3ecf('0x48')]()['filter'](_0x3a6293=>_0x3a6293[_0x3ecf('0x2f')]),_0x6f0aa6=_0x3aecd8[_0x3ecf('0x50')][_0x3ecf('0x15')](_0xf9d877)['me'],_0x3264e4=_0x2a881d[_0x3ecf('0x15')](_0x3ecf('0x28'))['SuggestionThreadView'],{CommentsListView:_0x4494ad,CommentThreadInputView:_0x80672}=_0x3aecd8[_0x3ecf('0x50')][_0x3ecf('0x15')](_0x3ecf('0x35'));let _0x5c95a6,_0x397a0c;this[_0x3ecf('0x47')]['has'](_0x3f438c['id'])?(_0x397a0c=this['_annotationViews'][_0x3ecf('0x15')](_0x3f438c['id']),_0x5c95a6=_0x397a0c[_0x3ecf('0x3d')]):(_0x5c95a6=new _0x3264e4(_0x3aecd8[_0x3ecf('0x0')],_0x3f438c,_0x6f0aa6,{'disableComments':this['_disableComments'],'editorConfig':_0x2a881d[_0x3ecf('0x15')]('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2a881d[_0x3ecf('0x15')]('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2a881d['get'](_0x3ecf('0x5d')),'maxCommentCharsWhenCollapsed':_0x2a881d[_0x3ecf('0x15')]('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xcd44e8(_0x2a881d[_0x3ecf('0x15')](_0x3ecf('0x0'))),'CommentView':_0x2a881d[_0x3ecf('0x15')]('comments')[_0x3ecf('0x37')],'CommentsListView':_0x4494ad,'CommentThreadInputView':_0x80672}),_0x5c95a6[_0x3ecf('0x36')]['on']('execute',()=>{_0x3aecd8['editing'][_0x3ecf('0x2')][_0x3ecf('0x4f')]();}),_0x5c95a6[_0x3ecf('0x57')]['on'](_0x3ecf('0x2b'),()=>{_0x3aecd8[_0x3ecf('0x6')][_0x3ecf('0x2')][_0x3ecf('0x4f')]();}),_0x397a0c=_0x4725b6[_0x3ecf('0x26')](this['editor']['locale'],_0x5c95a6),_0x397a0c[_0x3ecf('0x60')](_0x3ecf('0x45'))['to'](_0x5c95a6,_0x3ecf('0x45')),_0x397a0c[_0x3ecf('0x60')]('length')['to'](_0x5c95a6),_0x397a0c['bind'](_0x3ecf('0x49'))['to'](_0x5c95a6,_0x3ecf('0x49'),_0x275610=>_0x3ecf('0xf')+_0x275610),this['_annotationViews'][_0x3ecf('0x4c')](_0x3f438c['id'],_0x397a0c));const _0x398f98=_0x51a615[_0x3ecf('0x20')](_0x3f438c[_0x3ecf('0x4b')],_0x5c95a6),_0x27c063=new _0xa55c34(_0x3aecd8,_0x3f438c,_0x5c95a6,_0x398f98);_0x5c95a6[_0x3ecf('0x3')]=_0x3aecd8[_0x3ecf('0x50')][_0x3ecf('0x15')](_0x3ecf('0x1c'))[_0x3ecf('0x11')]['getDescriptions'](_0x5b9b26),this[_0x3ecf('0x30')]['set'](_0x3f438c,_0x27c063),this[_0x3ecf('0x31')][_0x3ecf('0x4c')](_0x5c95a6,_0x27c063);const _0x1253cb=_0x4725b6[_0x3ecf('0x5c')]({'view':_0x397a0c,'target':()=>{const _0x8ebbec=_0x5b9b26[0x0]['getFirstMarker']();if(!_0x8ebbec)return null;const _0x52bc90=_0x8ebbec[_0x3ecf('0x29')]()[_0x3ecf('0x2e')]();return _0x52bc90&&!_0x3aecd8['editing']['mapper']['toViewElement'](_0x52bc90)?null:_0x573ad0(_0x3aecd8['editing'],_0x8ebbec)||null;},'type':()=>_0x3ecf('0xf')+_0x27c063[_0x3ecf('0x2')][_0x3ecf('0x49')]});_0x4725b6[_0x3ecf('0x21')](_0x1253cb),_0x26d72f['registerAnnotation'](_0x1253cb);}[_0x3ecf('0x4d')](_0x58091e){const _0x48a8c8=this['editor']['plugins']['get'](_0x3ecf('0x64')),_0x40e673=this['_suggestionToController'][_0x3ecf('0x15')](_0x58091e),_0x5a1a13=_0x40e673[_0x3ecf('0x2')],_0x4218be=_0x48a8c8[_0x3ecf('0x1e')](_0x5a1a13);_0x4218be&&_0x48a8c8[_0x3ecf('0x38')](_0x4218be),this[_0x3ecf('0x30')][_0x3ecf('0x14')](_0x58091e),this[_0x3ecf('0x31')][_0x3ecf('0x14')](_0x5a1a13),_0x40e673['destroy']();}[_0x3ecf('0x41')](_0x166e9c){if(!_0x166e9c[_0x3ecf('0x2f')]||!this[_0x3ecf('0x30')][_0x3ecf('0x4a')](_0x166e9c))return;const _0x52c10c=this[_0x3ecf('0x24')][_0x3ecf('0x50')][_0x3ecf('0x15')](_0x3ecf('0x1c')),_0x9d2e61=this[_0x3ecf('0x30')][_0x3ecf('0x15')](_0x166e9c),_0x380079=_0x166e9c[_0x3ecf('0x48')]();_0x9d2e61[_0x3ecf('0x2')][_0x3ecf('0x3')]=_0x52c10c[_0x3ecf('0x11')]['getDescriptions'](_0x380079);}[_0x3ecf('0x55')](){for(const _0x2e15ba of this[_0x3ecf('0x30')][_0x3ecf('0x5')]())this['_destroyController'](_0x2e15ba);for(const _0x2977eb of this[_0x3ecf('0x47')][_0x3ecf('0x3b')]())_0x2977eb[_0x3ecf('0x3d')][_0x3ecf('0x55')]();super[_0x3ecf('0x55')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0x4b66=['stopListening','_acceptCommand','unbind','model','destroy','PENDING_ACTION_SUGGESTION','listenTo','commentThreadController','_editor','PendingActions','isEnabled','get','add','_removePendingAction','isDirty','_discardCommand','commands','plugins','bind','view','locale','acceptSuggestion','execute','_pendingAction','discardSuggestion','_setPendingAction'];(function(_0x53f5cf,_0x4b667b){const _0x5c0127=function(_0x98920c){while(--_0x98920c){_0x53f5cf['push'](_0x53f5cf['shift']());}};_0x5c0127(++_0x4b667b);}(_0x4b66,0x7a));const _0x5c01=function(_0x53f5cf,_0x4b667b){_0x53f5cf=_0x53f5cf-0x0;let _0x5c0127=_0x4b66[_0x53f5cf];return _0x5c0127;};import{ObservableMixin as _0x4bd1b8,mix as _0x455f92}from'ckeditor5/src/utils';import{getTranslation as _0x270a64}from'../utils/common-translations';export default class Mt{constructor(_0x9fc181,_0xd3b82e,_0x4fcc2c,_0x12f465){this[_0x5c01('0xb')]=_0xd3b82e,this['view']=_0x4fcc2c,this[_0x5c01('0xf')]=_0x12f465,this[_0x5c01('0x10')]=_0x9fc181,this[_0x5c01('0x9')]=_0x9fc181[_0x5c01('0x18')][_0x5c01('0x13')](_0x5c01('0x3')),this['_discardCommand']=_0x9fc181[_0x5c01('0x18')][_0x5c01('0x13')]('discardSuggestion'),this[_0x5c01('0x1')][_0x5c01('0x0')](_0x5c01('0x12'))['to'](this[_0x5c01('0x9')]),this[_0x5c01('0x5')]=null,_0x4fcc2c['isDirty']&&this[_0x5c01('0x7')](),this[_0x5c01('0xe')](_0x4fcc2c,_0x5c01('0x3'),()=>this[_0x5c01('0x3')]()),this[_0x5c01('0xe')](_0x4fcc2c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4fcc2c,'change:isDirty',()=>{_0x4fcc2c[_0x5c01('0x16')]?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand'][_0x5c01('0x4')](this[_0x5c01('0xb')]['id']);}[_0x5c01('0x6')](){this[_0x5c01('0x17')][_0x5c01('0x4')](this['model']['id']);}[_0x5c01('0xc')](){this[_0x5c01('0x1')][_0x5c01('0xa')](_0x5c01('0x12')),this[_0x5c01('0x8')](),this[_0x5c01('0xf')][_0x5c01('0xc')](),this[_0x5c01('0x5')]&&this[_0x5c01('0x15')]();}[_0x5c01('0x7')](){const _0x254062=_0x270a64(this[_0x5c01('0x10')][_0x5c01('0x2')],_0x5c01('0xd'));this['_pendingAction']=this[_0x5c01('0x10')][_0x5c01('0x19')]['get']('PendingActions')[_0x5c01('0x14')](_0x254062);}['_removePendingAction'](){this['_editor'][_0x5c01('0x19')][_0x5c01('0x13')](_0x5c01('0x11'))['remove'](this['_pendingAction']),this['_pendingAction']=null;}}_0x455f92(Mt,_0x4bd1b8);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fa5=['assign','disableComments','hasDirtyComment','set','setData','length','isActive','element','cancel','bind','commentsListView','isReadOnly','removeComment','locale','commentThread','authoredAt','_model','isDirty','commentInputView','isEnabled','value','descriptionParts','_config','_createCommentThreadInputView','delegate','focus','_createCommentViews','_localUser','destroy','commentThreadInputView','CommentView','disabledSubmit','addComment','submit'];(function(_0x5bd8e9,_0x1fa5ef){const _0x306ebb=function(_0x152da7){while(--_0x152da7){_0x5bd8e9['push'](_0x5bd8e9['shift']());}};_0x306ebb(++_0x1fa5ef);}(_0x1fa5,0x1e6));const _0x306e=function(_0x5bd8e9,_0x1fa5ef){_0x5bd8e9=_0x5bd8e9-0x0;let _0x306ebb=_0x1fa5[_0x5bd8e9];return _0x306ebb;};import{View as _0x399b5d}from'ckeditor5/src/ui';export default class ii extends _0x399b5d{constructor(_0x5817c2,_0x5822e0,_0x159f09,_0x5b3242){super(_0x5817c2),this[_0x306e('0x0')]=null,this[_0x306e('0x13')]=null,this[_0x306e('0x1b')]('isActive',!0x1),this[_0x306e('0x1b')](_0x306e('0x5'),_0x5822e0[_0x306e('0x5')]),this['bind'](_0x306e('0x5'))['to'](_0x5822e0),this[_0x306e('0x1b')](_0x306e('0xb'),[]),this[_0x306e('0x1b')](_0x306e('0x7'),!0x1),this[_0x306e('0x1b')](_0x306e('0x9'),!0x1),this[_0x306e('0x6')]=_0x5822e0,this[_0x306e('0x11')]=_0x159f09,this[_0x306e('0xc')]=_0x5b3242,_0x5b3242[_0x306e('0x19')]?this[_0x306e('0x1b')](_0x306e('0x1d'),0x1):this[_0x306e('0x10')]();}[_0x306e('0xf')](){this[_0x306e('0x1f')][_0x306e('0xf')]();}[_0x306e('0x12')](){this[_0x306e('0x0')]&&this[_0x306e('0x0')][_0x306e('0x12')](),this[_0x306e('0x13')]&&this[_0x306e('0x13')]['destroy'](),super[_0x306e('0x12')]();}['_createCommentViews'](){const {CommentsListView:_0x556591}=this[_0x306e('0xc')];this[_0x306e('0x0')]=new _0x556591(this['locale'],this['_model'][_0x306e('0x4')],Object[_0x306e('0x18')]({'CommentView':this[_0x306e('0xc')][_0x306e('0x14')]},this[_0x306e('0xc')])),this[_0x306e('0x0')][_0x306e('0xe')](_0x306e('0x2'))['to'](this),this['commentsListView'][_0x306e('0xe')]('updateComment')['to'](this),this['commentsListView'][_0x306e('0x21')]('isActive')['to'](this),this[_0x306e('0x1b')](_0x306e('0x1d'),this[_0x306e('0x0')]['length']+0x1),this[_0x306e('0x21')](_0x306e('0x1d'))['to'](this['commentsListView'],'length',_0x416045=>_0x416045+0x1),this[_0x306e('0x13')]=this[_0x306e('0xd')](),this['on'](_0x306e('0x2'),()=>this['focus']()),this['bind'](_0x306e('0x7'))['to'](this['commentsListView'],_0x306e('0x1a'),this[_0x306e('0x13')][_0x306e('0x8')],_0x306e('0xa'),(_0xfdb6fe,_0x27dc61)=>_0xfdb6fe||!!_0x27dc61);}[_0x306e('0xd')](){const {CommentThreadInputView:_0x2d59a7}=this[_0x306e('0xc')],_0x2a5876=new _0x2d59a7(this[_0x306e('0x3')],this[_0x306e('0x11')],this[_0x306e('0xc')]['editorConfig']),_0x56a794=_0x2a5876['commentInputView'];return _0x2a5876[_0x306e('0x21')]('showInput')['to'](this,_0x306e('0x1e'),this['_model'][_0x306e('0x4')],_0x306e('0x1'),_0x56a794,_0x306e('0xa'),(_0x1ab281,_0x1007c9,_0x188211)=>!!_0x188211||_0x1ab281&&!_0x1007c9),_0x56a794['on'](_0x306e('0x17'),(_0x5db4a9,_0x539caa)=>{this['fire'](_0x306e('0x16'),_0x539caa),_0x56a794['editor'][_0x306e('0x1c')]('');}),_0x56a794['on'](_0x306e('0x20'),()=>this['focus']()),_0x56a794[_0x306e('0x21')](_0x306e('0x15'))['to'](this['_model']['commentThread'],_0x306e('0x1')),_0x2a5876;}}
|