@ckeditor/ckeditor5-track-changes 34.1.0 → 35.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/build/translations/ar.js +1 -0
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/ca.js +1 -0
- 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 -0
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- 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 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/contexts.json +2 -0
- package/lang/translations/ar.po +469 -0
- package/lang/translations/az.po +10 -0
- package/lang/translations/bg.po +397 -0
- package/lang/translations/bn.po +423 -0
- package/lang/translations/ca.po +397 -0
- package/lang/translations/cs.po +39 -27
- package/lang/translations/da.po +41 -31
- package/lang/translations/de.po +12 -2
- package/lang/translations/el.po +10 -0
- package/lang/translations/en-au.po +10 -0
- package/lang/translations/en.po +10 -0
- package/lang/translations/es.po +72 -44
- package/lang/translations/et.po +107 -97
- package/lang/translations/fi.po +397 -0
- package/lang/translations/fr.po +34 -6
- package/lang/translations/gl.po +10 -0
- package/lang/translations/he.po +433 -0
- package/lang/translations/hi.po +21 -11
- package/lang/translations/hr.po +11 -0
- package/lang/translations/hu.po +397 -0
- package/lang/translations/id.po +84 -75
- package/lang/translations/it.po +29 -1
- package/lang/translations/ja.po +379 -0
- package/lang/translations/ko.po +379 -0
- package/lang/translations/lt.po +433 -0
- package/lang/translations/lv.po +415 -0
- package/lang/translations/ms.po +379 -0
- package/lang/translations/nl.po +39 -29
- package/lang/translations/no.po +397 -0
- package/lang/translations/pl.po +25 -13
- package/lang/translations/pt-br.po +29 -1
- package/lang/translations/pt.po +415 -0
- package/lang/translations/ro.po +415 -0
- package/lang/translations/ru.po +435 -0
- package/lang/translations/sk.po +12 -0
- package/lang/translations/sr-latn.po +11 -0
- package/lang/translations/sr.po +62 -51
- package/lang/translations/sv.po +397 -0
- package/lang/translations/th.po +379 -0
- package/lang/translations/tk.po +10 -0
- package/lang/translations/tr.po +21 -11
- package/lang/translations/tt.po +379 -0
- package/lang/translations/uk.po +433 -0
- package/lang/translations/ur.po +397 -0
- package/lang/translations/vi.po +379 -0
- package/lang/translations/zh-cn.po +9 -0
- package/lang/translations/zh.po +73 -64
- package/package.json +5 -4
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- 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 +23 -0
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- 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 +23 -0
- package/src/integrations/image.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 +23 -0
- package/src/integrations/table.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/getrangesofblockgroups.js +23 -0
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x5ca0=['_updateSuggestionData','_joinWithAdjacentSuggestions','_addSuggestionMarker','insertContent','marker-count','getAllAdjacentSuggestions','formatBlock','isSelectable','fire','registerCustomCallback','hasComments','dataReady','isNextTo','execute','addSuggestion','editing','model','_joinSuggestions','getRanges','isObject','removeClass','data','filter','change:data','isLocal','notReady','addClass','originalSuggestionId','isCollapsed','markInlineFormat','getCustomProperty','skipNestingCheck','forceDefaultExecution','normal','stop','fetchCommentThread','detach','isInContent','elementToElement','isUndo','markDeletion','collaboration.channelId','_suggestionState','set','getWalker','toViewElement','splitPosition','newRange','containsRangeInObject','_createSuggestion','createPositionAt','listenTo','_setSuggestionRange','map','updateMarker','targetPosition','markBlockFormat','every','_defaultCallbacks','clear','deletion:discard','join','createdAt','_rangeIsInLocalUserInsertion','elementStart','suggestion:','isBefore','markers','getShiftedBy','createRangeIn','fromCharCode','ck-suggestion-marker','getUser','getSuggestion','some','getMultiRangeId','getSuggestionCallback','acceptSuggestion','commentThread','$graveyard','_suggestions','getNearestSelectionRange','add','schema','push','includes','track-changes-suggestion-data-mismatch','differ','return','pluginName','formatInline','reconvertMarker','formatBlock:chain','isInsideObject','markerReady','locale','removeAttribute','rootName','rejected','getAttribute','containsPosition','consumable','setSelection','values','_enabledCommands','formatInline:','elementEnd','containerElement','multi','formatBlock:','end','getFirstRange','createPositionBefore','config','formatInline:discard','removeComment','getIntersection','parent','deletion:join','track-changes-suggestion-not-found','suggestion','addHighlight','PENDING_ACTION_SUGGESTION','markMultiRangeInsertion','getFirstMarker','value','_registerDefaultCallbacks','insertion:accept','suggestionUnloaded','before','discard','for','remove','discardAllSuggestions','addMarkerName','selection','containsRange','isBlock','consume','_getSuggestionData','formatInline:join','requires','change:activeMarkers','nodeAfter','_model','plugins','conversion','size','_refreshSuggestionsChain','_editor','getAncestors','accept','getCommentThread','trackChanges','deletion','removeMarker','accepted','isIntersectingWithRange','element','CommentsRepository','createSelection','after','has','_cutOutSuggestionMarker','buildSuggestion','next','createPositionAfter','attributes','writer','low','isAfter','splice','item','addSuggestionData','addMarker:suggestion','hasSuggestion','insertion','ck-suggestion-marker-','deleteContent','insertion:','addMarker:suggestion:formatBlock','change:_saved','start','clone','suggestionChanged','_findSuggestions','fromRange','get','getChanges','textProxy','PendingActions','discardSelectedSuggestions','name','getSuggestions','then','getRange','type','lowest','commands','resolve','mapper','removeMarkers','Users','commandName','_setSuggestionData','_adapter','$marker','getDifference','range','insertion:chain','high','track-changes-adapter-already-set','rethrowUnexpectedError','chain','enableCommand','head','track-changes-command-not-found','unbind','suggestionLoaded','_customCallbacks','editingDowncast','howMany','TrackChangesEditing','isLimit','document','batch','insert','multipleBlocks','formatGroupId','deletion:accept','author','addMarker','length','isEqual','trackChangesCommand','_isForcedDefaultExecutionBlock','isDocumentOperation','_removeSuggestion','previous','track-changes-user-not-found','ready','nodeBefore','removed','markMultiRangeDeletion','_addThreadToSuggestion','formatBlock:join','root','addComment','position','removeMarker:suggestion:formatBlock','getItems','acceptSelectedSuggestions','upcast','markerToData','track-changes-adapter-missing-getsuggestion','_suggestionFactory','deletion:','_saved','adapter','init','enableReadOnlyMode','sort','markInsertion','subType','bindElementToMarker','activeMarkers','open','_checkSuggestionCorrectness','registerPostFixer','options','split','_commentsRepository','_breakSuggestionMarker','ck-suggestion-marker--active','createRange','isMultiRange','acceptAllSuggestions','markerToHighlight','updateSuggestion','addRange','markerName','isOwn','showSuggestionHighlights','getChangedMarkers','dataDowncast','from','oldRange','moveTargetPosition','backward','_handleNewSuggestionMarker','editor','change','isAtEnd','getLastMatchingPosition','deletion:chain','dataToMarker','formatBlock:discard','toJSON','_splitMarkerName'];(function(_0x180524,_0x5ca07d){const _0x6ec6bf=function(_0x18354e){while(--_0x18354e){_0x180524['push'](_0x180524['shift']());}};_0x6ec6bf(++_0x5ca07d);}(_0x5ca0,0xc8));const _0x6ec6=function(_0x180524,_0x5ca07d){_0x180524=_0x180524-0x0;let _0x6ec6bf=_0x5ca0[_0x180524];return _0x6ec6bf;};import{Plugin as _0x11b456,PendingActions as _0x19eaa9}from'ckeditor5/src/core';import{LiveRange as _0x341c07}from'ckeditor5/src/engine';import{CKEditorError as _0x251ff9,uid as _0x54747c,priorities as _0x3ec018,EmitterMixin as _0x3858ac,mix as _0x550c42}from'ckeditor5/src/utils';import{toWidget as _0x57d1bc}from'ckeditor5/src/widget';import{Users as _0x12dd51}from'ckeditor5-collaboration/src/collaboration-core';import _0x4f27bd from'./commands/trackchangescommand';import _0x5ae1f3 from'./commands/acceptsuggestioncommand';import _0x27c8de from'./commands/discardsuggestioncommand';import _0x10712a from'./commands/acceptallsuggestionscommand';import _0x2718be from'./commands/acceptselectedsuggestionscommand';import _0xb99a9e from'./commands/discardallsuggestionscommand';import _0x2654de from'./commands/discardselectedsuggestionscommand';import _0x32d0a2 from'./suggestion';import _0x4149fa from'./suggestiondescriptionfactory';import _0x5cd68a from'./integrations/alignment';import _0x9bba3f from'./integrations/basicstyles';import _0x586287 from'./integrations/blockquote';import _0x1711f5 from'./integrations/codeblock';import _0x1d8c1 from'./integrations/comments';import _0x2dbf85 from'./integrations/deletecommand';import _0x3d2c14 from'./integrations/entercommand';import _0x423b09 from'./integrations/font';import _0x1167e8 from'./integrations/heading';import _0x736708 from'./integrations/highlight';import _0x22ba7b from'./integrations/horizontalline';import _0x319c4f from'./integrations/image';import _0x363667 from'./integrations/indent';import _0x3d2ef0 from'./integrations/inputcommand';import _0x95cda3 from'./integrations/link';import _0x577430 from'./integrations/list';import _0x51e219 from'./integrations/mediaembed';import _0x9a13e from'./integrations/mention';import _0x16989c from'./integrations/pagebreak';import _0x3dc08b from'./integrations/paragraph';import _0xe602ab from'./integrations/removeformat';import _0x18d0f7 from'./integrations/restrictededitingmode';import _0x27a58e from'./integrations/shiftentercommand';import _0x7db0bb from'./integrations/standardeditingmode';import _0x1e20a7 from'./integrations/table';import _0x15aaae from'./integrations/tablemergesplit';import _0x1f3f01 from'./integrations/tableheadings';import _0x3cfa9c from'./integrations/tableclipboard';import _0x2c7d7f from'./integrations/title';import _0x5132c4 from'./integrations/undo';import _0x1d81a6 from'./utils/hashobject.js';import{getTranslation as _0x5d766b}from'./utils/common-translations';export default class d extends _0x11b456{static get[_0x6ec6('0xf0')](){return[_0x6ec6('0x102'),_0x12dd51,_0x19eaa9,_0x5cd68a,_0x9bba3f,_0x586287,_0x1711f5,_0x1d8c1,_0x2dbf85,_0x3d2c14,_0x423b09,_0x1167e8,_0x736708,_0x22ba7b,_0x319c4f,_0x363667,_0x3d2ef0,_0x95cda3,_0x577430,_0x51e219,_0x9a13e,_0x16989c,_0x3dc08b,_0xe602ab,_0x18d0f7,_0x27a58e,_0x7db0bb,_0x1e20a7,_0x15aaae,_0x1f3f01,_0x3cfa9c,_0x2c7d7f,_0x5132c4];}static get[_0x6ec6('0xbc')](){return _0x6ec6('0x16');}constructor(_0x209850){function _0x1c5bd7(_0x4d8a60){return _0x4d8a60[_0x6ec6('0x98')](_0x45ceaa=>String[_0x6ec6('0xa9')](_0x45ceaa))[_0x6ec6('0xa0')]('');}super(_0x209850),this['set'](_0x6ec6('0x41'),[]),this['on'](_0x6ec6('0xf1'),(_0x5df85b,_0x128c90,_0x117942,_0x2f1d24)=>{this[_0x6ec6('0xf3')]['change'](()=>{for(const _0x54b084 of[..._0x2f1d24,..._0x117942])this[_0x6ec6('0xf3')][_0x6ec6('0xa6')][_0x6ec6('0x105')](_0x54b084)&&_0x209850[_0x6ec6('0x72')][_0x6ec6('0xbe')](_0x54b084);});}),this['_descriptionFactory']=new _0x4149fa(this[_0x6ec6('0x5a')]['model'][_0x6ec6('0xb6')],this[_0x6ec6('0x5a')][_0x6ec6('0xc2')]),this['_adapter']=null,this[_0x6ec6('0x37')]=new lt(this['editor']),this[_0x6ec6('0xb3')]=new Map(),this['_commentsRepository']=_0x209850[_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x102')),this[_0x6ec6('0xcb')]=new Set(),this[_0x6ec6('0xf3')]=this[_0x6ec6('0x5a')]['model'],this[_0x6ec6('0x8d')]=new WeakMap(),this[_0x6ec6('0x23')]=!0x1,this[_0x1c5bd7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1c5bd7([0x34,0x30,0x34,0x34,0x31,0x30,0x35,0x30]);}[_0x6ec6('0x3b')](){const _0x3e0ffe=this[_0x6ec6('0x5a')];_0x3e0ffe['conversion']['for'](_0x6ec6('0x14'))[_0x6ec6('0x4d')]({'model':_0x6ec6('0xdb'),'view':_0x80ac7a=>{const {id:_0x274eda,type:_0x590709}=this[_0x6ec6('0x62')](_0x80ac7a[_0x6ec6('0x50')]),_0x42f40b=[_0x6ec6('0xaa'),_0x6ec6('0x114')+_0x590709];let _0xff4a0c=0xbb8;return this['activeMarkers']['includes'](_0x80ac7a['markerName'])&&(_0x42f40b[_0x6ec6('0xb7')]('ck-suggestion-marker--active'),_0xff4a0c=0xbc2),'deletion'==_0x590709&&(_0xff4a0c+=0x5),{'classes':_0x42f40b,'attributes':{'data-suggestion':_0x274eda},'priority':_0xff4a0c};}}),_0x3e0ffe[_0x6ec6('0xf5')]['for']('dataDowncast')['add'](_0x592e57=>{_0x592e57['on'](_0x6ec6('0x111'),(_0x39a31f,_0x27353e,_0x304578)=>{if(!_0x304578['options'][_0x6ec6('0x52')])return;const _0x5578f5=_0x27353e[_0x6ec6('0x10f')];if(!_0x5578f5)return;const _0x46e9bd=_0x304578['mapper'][_0x6ec6('0x90')](_0x5578f5);_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xb6')][_0x6ec6('0x76')](_0x5578f5)&&_0x46e9bd&&!_0x46e9bd['getCustomProperty']('widget')&&_0x46e9bd['is'](_0x6ec6('0xce'))&&_0x57d1bc(_0x46e9bd,_0x304578['writer']);},{'priority':_0x6ec6('0xa')});}),_0x3e0ffe[_0x6ec6('0xf5')]['for'](_0x6ec6('0x54'))[_0x6ec6('0x4d')]({'model':_0x6ec6('0xdb'),'view':(_0x2708d6,_0x38a75a)=>{if(!_0x38a75a[_0x6ec6('0x45')][_0x6ec6('0x52')])return null;const {type:_0x2e5db7}=this[_0x6ec6('0x62')](_0x2708d6[_0x6ec6('0x50')]);return{'classes':['ck-suggestion-marker',_0x6ec6('0x114')+_0x2e5db7],'priority':0xbb8};}});const _0x2fecf1=({showActiveMarkers:_0x3447ac=!0x0}={})=>(_0x1781a0,_0x2c28f4,_0x5e3e2f)=>{if(!_0x2c28f4[_0x6ec6('0x10f')])return;if(_0x2c28f4['item']['is'](_0x6ec6('0xea')))return void _0x5e3e2f[_0x6ec6('0xc8')][_0x6ec6('0xed')](_0x2c28f4[_0x6ec6('0x10f')],_0x1781a0[_0x6ec6('0x123')]);const _0x40dd87=_0x5e3e2f[_0x6ec6('0x0')][_0x6ec6('0x90')](_0x2c28f4['item']);if(!(_0x2c28f4['item']['is'](_0x6ec6('0x101'))&&_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xb6')][_0x6ec6('0xec')](_0x2c28f4[_0x6ec6('0x10f')])&&!_0x40dd87[_0x6ec6('0x81')](_0x6ec6('0xdc'))))return;const {id:_0xdc53ff}=this['_splitMarkerName'](_0x2c28f4[_0x6ec6('0x50')]);_0x5e3e2f['writer'][_0x6ec6('0x7d')]([_0x6ec6('0xaa'),'ck-suggestion-marker-formatBlock'],_0x40dd87),_0x5e3e2f['writer']['setAttribute']('data-suggestion',_0xdc53ff,_0x40dd87),_0x5e3e2f['mapper'][_0x6ec6('0x40')](_0x40dd87,_0x2c28f4[_0x6ec6('0x50')]),_0x3447ac&&(this['activeMarkers']['includes'](_0x2c28f4['markerName'])?_0x5e3e2f[_0x6ec6('0x10b')]['addClass']('ck-suggestion-marker--active',_0x40dd87):_0x5e3e2f[_0x6ec6('0x10b')]['removeClass'](_0x6ec6('0x49'),_0x40dd87));for(const _0x59f910 of _0x3e0ffe['model'][_0x6ec6('0xa8')](_0x2c28f4[_0x6ec6('0x10f')])[_0x6ec6('0x32')]())_0x5e3e2f[_0x6ec6('0xc8')][_0x6ec6('0xed')](_0x59f910,_0x1781a0[_0x6ec6('0x123')]);_0x5e3e2f['consumable']['consume'](_0x2c28f4[_0x6ec6('0x10f')],_0x1781a0[_0x6ec6('0x123')]);};_0x3e0ffe[_0x6ec6('0xf5')][_0x6ec6('0xe6')]('dataDowncast')['add'](_0x315fcf=>{_0x315fcf['on'](_0x6ec6('0x117'),(_0x486a27,_0x476b13,_0x154ddd)=>{_0x154ddd[_0x6ec6('0x45')]['showSuggestionHighlights']&&_0x2fecf1({'showActiveMarkers':!0x1})(_0x486a27,_0x476b13,_0x154ddd);},{'priority':'highest'});}),_0x3e0ffe['conversion'][_0x6ec6('0xe6')](_0x6ec6('0x54'))[_0x6ec6('0x35')]({'model':'suggestion','view':(_0x4fd679,_0x526781)=>_0x526781[_0x6ec6('0x45')][_0x6ec6('0x52')]?null:{'group':_0x6ec6('0xdb'),'name':_0x4fd679['substr']('suggestion'[_0x6ec6('0x20')]+0x1)}}),_0x3e0ffe[_0x6ec6('0xf5')][_0x6ec6('0xe6')](_0x6ec6('0x34'))[_0x6ec6('0x89')]({'view':{'name':_0x6ec6('0xdb'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x267220,{writer:_0x4d5e73})=>{let _0xf936fb=_0x6ec6('0xa4')+_0x267220[_0x6ec6('0xc6')]('suggestion-type')+':'+_0x267220['getAttribute']('id');return _0x267220[_0x6ec6('0xc6')]('marker-count')&&(_0xf936fb+=':'+_0x267220['getAttribute'](_0x6ec6('0x67'))),_0x4d5e73['createElement'](_0x6ec6('0x6'),{'data-name':_0xf936fb});}}),_0x3e0ffe[_0x6ec6('0xf5')][_0x6ec6('0xe6')]('upcast')[_0x6ec6('0x5f')]({'view':_0x6ec6('0xdb')}),_0x3e0ffe[_0x6ec6('0xf5')][_0x6ec6('0xe6')](_0x6ec6('0x14'))['add'](_0xd9fcb0=>{_0xd9fcb0['on'](_0x6ec6('0x117'),_0x2fecf1(),{'priority':_0x6ec6('0xa')});}),_0x3e0ffe[_0x6ec6('0xf5')]['for'](_0x6ec6('0x14'))[_0x6ec6('0xb5')](_0x162ff1=>{_0x162ff1['on'](_0x6ec6('0x31'),(_0x2220a7,_0x2f5801,_0x15c328)=>{const _0x43c396=_0x15c328['mapper']['markerNameToElements'](_0x2f5801['markerName']);if(_0x43c396)for(const _0x11689b of _0x43c396)_0x11689b[_0x6ec6('0x81')](_0x6ec6('0xdc'))||(_0x15c328[_0x6ec6('0x10b')][_0x6ec6('0x77')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x6ec6('0x49')],_0x11689b),_0x15c328[_0x6ec6('0x10b')][_0x6ec6('0xc3')]('data-suggestion',_0x11689b),_0x15c328[_0x6ec6('0x0')]['unbindElementFromMarkerName'](_0x11689b,_0x2f5801[_0x6ec6('0x50')]));},{'priority':_0x6ec6('0xa')});}),_0x3e0ffe['model']['document'][_0x6ec6('0x44')](_0x36f6ae=>{let _0x3b5a02=!0x1;const _0x3fcf41=Array['from'](_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x18')][_0x6ec6('0xba')][_0x6ec6('0x53')]());for(const {name:_0x3a95f7,data:_0x1a5785}of _0x3fcf41){const {group:_0x31fb96,type:_0x3c4349,id:_0x19b333}=this[_0x6ec6('0x62')](_0x3a95f7);if(_0x6ec6('0xdb')!==_0x31fb96)continue;const _0x47677c=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x19b333);if(null!=_0x1a5785[_0x6ec6('0x92')]){_0x6ec6('0xbd')==_0x3c4349&&(_0x3b5a02=_0x3b5a02||pt(_0x1a5785['newRange'],_0x3a95f7,_0x36f6ae,_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xb6')]));if(_0x1a5785[_0x6ec6('0x92')][_0x6ec6('0x7f')]||_0x6ec6('0xb2')==_0x1a5785[_0x6ec6('0x92')][_0x6ec6('0x2e')][_0x6ec6('0xc4')]||_0x6ec6('0x69')==_0x3c4349&&!wt(_0x1a5785['newRange'])||_0x6ec6('0xfd')==_0x3c4349&&!(!dt(_0x3afd92=_0x1a5785[_0x6ec6('0x92')])&&!function(_0x5c351f){return _0x5c351f[_0x6ec6('0x119')]['parent']==_0x5c351f[_0x6ec6('0xd1')][_0x6ec6('0x29')]&&_0x5c351f[_0x6ec6('0x119')][_0x6ec6('0x5c')];}(_0x3afd92)))_0x36f6ae['removeMarker'](_0x3a95f7),_0x3b5a02=!0x0;else{if(!_0x47677c||!_0x47677c[_0x6ec6('0x88')])continue;_0x3b5a02=!!this['_joinWithAdjacentSuggestions'](_0x47677c)||_0x3b5a02;}}}var _0x3afd92;return _0x3b5a02;}),_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x18')][_0x6ec6('0x44')](_0x3e5149=>{let _0x3e504=!0x1;for(const _0x11b967 of _0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x18')]['differ'][_0x6ec6('0x11f')]()){if(_0x6ec6('0x1a')!=_0x11b967[_0x6ec6('0x127')])continue;const _0x465cd4=_0x11b967[_0x6ec6('0x30')]['getShiftedBy'](_0x11b967[_0x6ec6('0x20')]);if(_0x465cd4[_0x6ec6('0x5c')])for(const _0x468368 of this[_0x6ec6('0xb3')][_0x6ec6('0xca')]()){if(_0x468368[_0x6ec6('0x4b')]||!_0x468368[_0x6ec6('0x88')])continue;if('formatBlock'!=_0x468368['type'])continue;const _0x1abaa1=_0x468368[_0x6ec6('0xd2')]();if(_0x1abaa1['start'][_0x6ec6('0xd8')]!=_0x1abaa1[_0x6ec6('0xd1')][_0x6ec6('0xd8')]&&_0x1abaa1[_0x6ec6('0xd1')][_0x6ec6('0x21')](_0x11b967[_0x6ec6('0x30')])){const _0x48aa2f=_0x3e0ffe[_0x6ec6('0x73')]['createRange'](_0x1abaa1[_0x6ec6('0x119')],_0x465cd4);_0x3e5149[_0x6ec6('0x99')](_0x468368[_0x6ec6('0xdf')](),{'range':_0x48aa2f}),_0x3e504=!0x0;}}}return _0x3e504;}),_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xa6')]['on']('update:suggestion',(_0x33a060,_0x13d728,_0x31ed2a)=>{if(null==_0x31ed2a){const {id:_0x1d7473}=this['_splitMarkerName'](_0x13d728[_0x6ec6('0x123')]),_0x3c7d96=this['_suggestions'][_0x6ec6('0x11e')](_0x1d7473);_0x3c7d96&&_0x3c7d96[_0x6ec6('0xe9')](_0x13d728['name']);}}),_0x3e0ffe['model'][_0x6ec6('0x18')]['on'](_0x6ec6('0x7a'),()=>{const _0x571163=Array[_0x6ec6('0x55')](_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x18')][_0x6ec6('0xba')][_0x6ec6('0x53')]());_0x571163[_0x6ec6('0x3d')]((_0x228e98,_0x28a912)=>{const _0x531452=_0x228e98[_0x6ec6('0x78')]['oldRange'],_0x2af145=_0x28a912[_0x6ec6('0x78')][_0x6ec6('0x56')];return null===_0x531452&&null===_0x2af145?0x0:null===_0x531452&&null!==_0x2af145?-0x1:null!==_0x531452&&null===_0x2af145?0x1:_0x531452[_0x6ec6('0x119')]['isBefore'](_0x2af145[_0x6ec6('0x119')])?-0x1:0x1;});const _0x5e7609=new Set();for(const {name:_0x396e30,data:_0x5dfc34}of _0x571163){const {group:_0x272473,id:_0x30e207}=this[_0x6ec6('0x62')](_0x396e30);if(_0x6ec6('0xdb')===_0x272473&&(null===_0x5dfc34[_0x6ec6('0x56')]&&this[_0x6ec6('0x59')](_0x396e30),null===_0x5dfc34[_0x6ec6('0x92')])){const _0x3e22f7=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x30e207);_0x3e22f7['isInContent']?_0x5e7609[_0x6ec6('0xb5')](_0x3e22f7):this[_0x6ec6('0x25')](_0x3e22f7);}}for(const {name:_0xd4dbe5,data:_0x2bcfce}of _0x571163){const {group:_0xb50124,id:_0x13c076}=this[_0x6ec6('0x62')](_0xd4dbe5);if(_0x6ec6('0xdb')!==_0xb50124)continue;const _0x4e5146=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x13c076);null!=_0x2bcfce[_0x6ec6('0x92')]&&null!=_0x2bcfce[_0x6ec6('0x56')]&&(this[_0x6ec6('0xf7')](_0x4e5146),_0x5e7609[_0x6ec6('0xb5')](_0x4e5146[_0x6ec6('0xf')]));}for(const _0x2af524 of _0x5e7609)this[_0x6ec6('0x6b')](_0x6ec6('0x11b'),_0x2af524);_0x5e7609[_0x6ec6('0x9e')]();}),_0x3e0ffe[_0x6ec6('0x73')]['on']('applyOperation',(_0x1aacf9,_0x29b9e4)=>{const _0x2976f1=_0x29b9e4[0x0];if(!this['_suggestions'][_0x6ec6('0xf6')])return;if(!_0x2976f1[_0x6ec6('0x24')])return;if(_0x2976f1[_0x6ec6('0x19')][_0x6ec6('0x8a')]||!_0x2976f1[_0x6ec6('0x19')][_0x6ec6('0x7b')])return;let _0x2301c0,_0x6f8e5;switch(_0x2976f1[_0x6ec6('0x127')]){case _0x6ec6('0x1a'):_0x2301c0=_0x3e0ffe['model'][_0x6ec6('0x95')](_0x2976f1[_0x6ec6('0x30')]),_0x6f8e5=_0x2301c0[_0x6ec6('0xa7')](_0x2976f1[_0x6ec6('0x15')]);break;case'split':_0x2301c0=_0x3e0ffe['model'][_0x6ec6('0x95')](_0x2976f1[_0x6ec6('0x91')]),_0x6f8e5=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x95')](_0x2976f1[_0x6ec6('0x57')]);break;case'move':_0x2301c0=_0x3e0ffe[_0x6ec6('0x73')]['createPositionAt'](_0x2976f1[_0x6ec6('0x9a')]),_0x6f8e5=_0x2301c0[_0x6ec6('0xa7')](_0x2976f1[_0x6ec6('0x15')]);break;default:return;}const _0x10c285=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x4a')](_0x2301c0,_0x6f8e5);_0x3e0ffe['model'][_0x6ec6('0x5b')](()=>{for(const {suggestion:_0x58a0d1,meta:_0x24cc2d}of this[_0x6ec6('0x11c')](_0x10c285)){if(_0x58a0d1[_0x6ec6('0x4b')])continue;if(_0x6ec6('0xbd')==_0x58a0d1[_0x6ec6('0x127')])continue;const _0x170ce9=_0x58a0d1['data']&&_0x58a0d1[_0x6ec6('0x78')][_0x6ec6('0x1b')];(_0x6ec6('0x69')!=_0x58a0d1[_0x6ec6('0x127')]||'split'==_0x2976f1[_0x6ec6('0x127')]&&!_0x170ce9)&&(_0x24cc2d[_0x6ec6('0x93')]||_0x6ec6('0x113')==_0x58a0d1['type']&&_0x24cc2d[_0x6ec6('0x51')]||_0x58a0d1[_0x6ec6('0xd2')]()[_0x6ec6('0xeb')](_0x10c285)&&this[_0x6ec6('0x48')](_0x58a0d1,_0x2301c0,_0x6f8e5));}});},{'priority':_0x6ec6('0x128')}),_0x3e0ffe[_0x6ec6('0x73')]['on'](_0x6ec6('0x115'),(_0x747b73,_0x3db201)=>{const _0x483dbc=_0x3db201[0x0],_0x3a3ae5=_0x3db201[0x1];if(_0x3a3ae5&&_0x3a3ae5[_0x6ec6('0x83')])return;if(this[_0x6ec6('0x23')])return;if(!this[_0x6ec6('0x22')][_0x6ec6('0xe0')])return;if(_0x483dbc[_0x6ec6('0x7f')])return;const _0xd25352=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xb6')],{start:_0x1af091,end:_0x5441d2}=_0x483dbc[_0x6ec6('0xd2')](),_0x3e0a31=_0x1af091[_0x6ec6('0xf2')]&&_0xd25352[_0x6ec6('0x76')](_0x1af091[_0x6ec6('0xf2')])?null:_0xd25352[_0x6ec6('0xb4')](_0x1af091,'forward'),_0x24c3d3=_0x5441d2[_0x6ec6('0x29')]&&_0xd25352['isObject'](_0x5441d2[_0x6ec6('0x29')])?null:_0xd25352[_0x6ec6('0xb4')](_0x5441d2,_0x6ec6('0x58')),_0x3ea462=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x4a')](_0x3e0a31?_0x3e0a31['start']:_0x1af091,_0x24c3d3?_0x24c3d3[_0x6ec6('0xd1')]:_0x5441d2);_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x5b')](_0x55ff75=>{this[_0x6ec6('0x8b')](_0x3ea462);const _0x16893e=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0xb6')]['getNearestSelectionRange'](_0x3ea462[_0x6ec6('0x119')]);_0x483dbc['is']('documentSelection')?_0x55ff75['setSelection'](_0x16893e):_0x483dbc['setTo'](_0x16893e);}),_0x747b73['stop']();},{'priority':_0x3ec018[_0x6ec6('0x84')]+0xa}),_0x3e0ffe[_0x6ec6('0x73')]['on'](_0x6ec6('0x66'),(_0x1e60ad,_0x376925)=>{const _0x469c9f=_0x376925[_0x376925['length']-0x1];_0x469c9f&&_0x469c9f[_0x6ec6('0x83')]||this['_isForcedDefaultExecutionBlock']||this[_0x6ec6('0x22')][_0x6ec6('0xe0')]&&(_0x3e0ffe['model'][_0x6ec6('0x5b')](()=>{let _0x383afc=_0x3e0ffe[_0x6ec6('0x73')][_0x6ec6('0x66')](_0x376925[0x0],_0x376925[0x1],_0x376925[0x2],_0x376925[0x3],{'forceDefaultExecution':!0x0});if(!_0x383afc)return;_0x1e60ad[_0x6ec6('0xbb')]=_0x383afc[_0x6ec6('0x11a')]();const _0x320c49=_0x383afc[_0x6ec6('0xd1')]['nodeBefore'],_0x3f8016=_0x3e0ffe[_0x6ec6('0x73')]['schema'];_0x320c49&&_0x3f8016['isBlock'](_0x320c49)&&!_0x3f8016[_0x6ec6('0x76')](_0x320c49)&&(_0x383afc=_0x3e0ffe[_0x6ec6('0x73')]['createRange'](_0x383afc[_0x6ec6('0x119')],_0x3e0ffe[_0x6ec6('0x73')]['createPositionAt'](_0x320c49,'end'))),this[_0x6ec6('0x3e')](_0x383afc);}),_0x1e60ad[_0x6ec6('0x85')]());},{'priority':_0x6ec6('0xa')}),this[_0x6ec6('0x22')]=new _0x4f27bd(_0x3e0ffe,this[_0x6ec6('0xcb')]),this[_0x6ec6('0x5a')]['commands']['add']('trackChanges',this[_0x6ec6('0x22')]),this[_0x6ec6('0xe')](_0x6ec6('0xfc'));const _0x587696=new _0x5ae1f3(_0x3e0ffe,this[_0x6ec6('0xb3')]);_0x3e0ffe['commands'][_0x6ec6('0xb5')](_0x6ec6('0xb0'),_0x587696),this[_0x6ec6('0xe')](_0x6ec6('0xb0'));const _0x34c683=new _0x27c8de(_0x3e0ffe,this[_0x6ec6('0xb3')]);_0x3e0ffe[_0x6ec6('0x129')][_0x6ec6('0xb5')]('discardSuggestion',_0x34c683),this[_0x6ec6('0xe')]('discardSuggestion'),_0x3e0ffe[_0x6ec6('0x129')][_0x6ec6('0xb5')]('acceptAllSuggestions',new _0x10712a(_0x3e0ffe,_0x587696,this['_suggestions'])),this['enableCommand'](_0x6ec6('0x4c')),_0x3e0ffe[_0x6ec6('0x129')]['add'](_0x6ec6('0xe8'),new _0xb99a9e(_0x3e0ffe,_0x34c683,this[_0x6ec6('0xb3')])),this['enableCommand'](_0x6ec6('0xe8')),_0x3e0ffe[_0x6ec6('0x129')][_0x6ec6('0xb5')](_0x6ec6('0x33'),new _0x2718be(_0x3e0ffe,_0x587696,this['_suggestions'])),this[_0x6ec6('0xe')]('acceptSelectedSuggestions'),_0x3e0ffe[_0x6ec6('0x129')][_0x6ec6('0xb5')](_0x6ec6('0x122'),new _0x2654de(_0x3e0ffe,_0x34c683,this[_0x6ec6('0xb3')])),this[_0x6ec6('0xe')](_0x6ec6('0x122'));const _0x4e3ab4=_0x3e0ffe[_0x6ec6('0xf4')][_0x6ec6('0x11e')]('CommentsRepository');this[_0x6ec6('0x96')](_0x4e3ab4,_0x6ec6('0x2f'),(_0x14618f,{threadId:_0x31d129})=>{const _0x510e20=this['_suggestions'][_0x6ec6('0x11e')](_0x31d129);_0x510e20&&_0x510e20[_0x6ec6('0xb1')]&&0x1===_0x510e20[_0x6ec6('0xb1')][_0x6ec6('0x20')]&&this['_updateSuggestionData'](_0x31d129,{'hasComments':!0x0});},{'priority':_0x6ec6('0x10c')}),this[_0x6ec6('0x96')](_0x4e3ab4,_0x6ec6('0xd6'),(_0x220f78,{threadId:_0x35974d})=>{const _0x1f2d2b=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x35974d);_0x1f2d2b&&_0x1f2d2b[_0x6ec6('0xb1')]&&!_0x1f2d2b[_0x6ec6('0xb1')]['length']&&this[_0x6ec6('0x63')](_0x35974d,{'hasComments':!0x1});},{'priority':_0x6ec6('0x10c')});}set[_0x6ec6('0x3a')](_0xa6b33){if(this['_adapter'])throw new _0x251ff9(_0x6ec6('0xb'),this);this[_0x6ec6('0x5')]=_0xa6b33;}get[_0x6ec6('0x3a')](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2a587d=!0x1,toJSON:_0x53a153=!0x1}={}){const _0x3ba510=[];for(const _0x3da265 of this[_0x6ec6('0xb3')][_0x6ec6('0xca')]())_0x2a587d&&!_0x3da265[_0x6ec6('0x88')]||_0x3ba510['push'](_0x3da265);return _0x53a153?_0x3ba510[_0x6ec6('0x98')](_0x179af3=>_0x179af3[_0x6ec6('0x61')]()):_0x3ba510;}[_0x6ec6('0xac')](_0x1a6cc6){const _0x1414ef=this[_0x6ec6('0xb3')]['get'](_0x1a6cc6);if(!_0x1414ef)throw new _0x251ff9(_0x6ec6('0xda'),this);return _0x1414ef;}[_0x6ec6('0x112')](_0x5a61ba){return this['_suggestions']['has'](_0x5a61ba);}[_0x6ec6('0x110')](_0x223ac0){const {id:_0x3297ea,authorId:_0x45c99d}=_0x223ac0,[_0x440a27,_0x51d204]=_0x223ac0[_0x6ec6('0x127')][_0x6ec6('0x46')](':'),_0x1ad0ea=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x3297ea)||this[_0x6ec6('0x94')](_0x440a27,_0x51d204,_0x3297ea,_0x45c99d);switch(this[_0x6ec6('0x2c')](_0x1ad0ea),this['_checkSuggestionCorrectness'](_0x1ad0ea,_0x440a27,_0x51d204||null,_0x45c99d),_0x1ad0ea[_0x6ec6('0xa1')]=_0x223ac0[_0x6ec6('0xa1')],_0x223ac0['data']&&(_0x1ad0ea['data']=_0x223ac0[_0x6ec6('0x78')]),_0x223ac0['attributes']&&(_0x1ad0ea['attributes']=_0x223ac0[_0x6ec6('0x10a')]),this['_adapter']&&this[_0x6ec6('0x5')]['addSuggestion']||(_0x1ad0ea[_0x6ec6('0x39')]=!0x0),this[_0x6ec6('0x8d')][_0x6ec6('0x11e')](_0x1ad0ea)){case _0x6ec6('0x7c'):this['_suggestionState'][_0x6ec6('0x8e')](_0x1ad0ea,_0x6ec6('0x6e'));break;case _0x6ec6('0xc1'):_0x1ad0ea['isInContent']?(this[_0x6ec6('0x8d')]['set'](_0x1ad0ea,_0x6ec6('0x28')),this[_0x6ec6('0x6b')](_0x6ec6('0x12'),_0x1ad0ea)):this[_0x6ec6('0x8d')][_0x6ec6('0x8e')](_0x1ad0ea,'removed');}return _0x1ad0ea;}[_0x6ec6('0xb0')](_0x1b3b36){this[_0x6ec6('0x83')](()=>{this[_0x6ec6('0x5a')]['model']['change'](()=>{for(const _0x498368 of _0x1b3b36['getAllAdjacentSuggestions']())_0x498368[_0x6ec6('0xfa')]();});});}['discardSuggestion'](_0x5202e2){this['forceDefaultExecution'](()=>{this[_0x6ec6('0x5a')]['model'][_0x6ec6('0x5b')](()=>{for(const _0x14305f of _0x5202e2[_0x6ec6('0x68')]())_0x14305f['discard']();});});}[_0x6ec6('0xe')](_0x1b5ded,_0x15d084){const _0x2d5107=this[_0x6ec6('0x5a')][_0x6ec6('0x129')][_0x6ec6('0x11e')](_0x1b5ded);if(!_0x2d5107)throw new _0x251ff9(_0x6ec6('0x10'),this,{'commandName':_0x1b5ded});this[_0x6ec6('0xcb')]['add'](_0x2d5107),_0x15d084&&_0x2d5107['on'](_0x6ec6('0x70'),(_0x5c963c,_0x2b8166)=>{this['trackChangesCommand'][_0x6ec6('0xe0')]&&(this[_0x6ec6('0x23')]||_0x2b8166[_0x6ec6('0x20')]>0x0&&_0x2b8166[_0x2b8166[_0x6ec6('0x20')]-0x1]&&_0x2b8166[_0x2b8166['length']-0x1][_0x6ec6('0x83')]||(_0x15d084((..._0xcf7b3c)=>_0x2d5107[_0x6ec6('0x70')](..._0xcf7b3c,{'forceDefaultExecution':!0x0}),..._0x2b8166),_0x5c963c[_0x6ec6('0x85')]()));},{'priority':_0x6ec6('0xa')});}['forceDefaultExecution'](_0x5ed645){let _0x5f07a1,_0x1cc2e5;const _0x38026c=this[_0x6ec6('0x23')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5f07a1=_0x5ed645();}catch(_0x57bbaf){_0x1cc2e5=_0x57bbaf;}return _0x38026c||(this[_0x6ec6('0x23')]=!0x1),_0x1cc2e5&&_0x251ff9[_0x6ec6('0xc')](_0x1cc2e5,this),_0x5f07a1;}[_0x6ec6('0x3e')](_0x1a87f3,_0x3735e7=null,_0x41a193={}){if(_0x1a87f3[_0x6ec6('0x7f')])return null;const _0x514f61=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))['me'];for(const {suggestion:_0x40c7f9,meta:_0x17a769}of this[_0x6ec6('0x11c')](_0x1a87f3,_0x6ec6('0x113')))if(_0x17a769[_0x6ec6('0x51')]){if(!_0x17a769[_0x6ec6('0x6f')])return _0x40c7f9;if(_0x3735e7==_0x40c7f9['subType']){const _0xb865e0=_0x40c7f9[_0x6ec6('0xd2')]();return _0xb865e0[_0x6ec6('0x119')][_0x6ec6('0x21')](_0x1a87f3[_0x6ec6('0xd1')])?this[_0x6ec6('0x97')](_0x40c7f9,this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x1a87f3[_0x6ec6('0x119')],_0xb865e0[_0x6ec6('0xd1')])):this[_0x6ec6('0x97')](_0x40c7f9,this[_0x6ec6('0xf3')]['createRange'](_0xb865e0[_0x6ec6('0x119')],_0x1a87f3[_0x6ec6('0xd1')])),_0x40c7f9;}}const _0x555c5e=_0x54747c(),_0xf1dbf=_0x514f61['id'],_0x35e5ec=_0x3735e7?_0x6ec6('0x116')+_0x3735e7:_0x6ec6('0x113'),_0x1d4b68=this[_0x6ec6('0x4')]({'id':_0x555c5e,'type':_0x35e5ec,'createdAt':new Date(),'authorId':_0xf1dbf,'attributes':_0x41a193});return this[_0x6ec6('0x65')](_0x35e5ec,_0x555c5e,_0xf1dbf,_0x1a87f3),_0x1d4b68;}[_0x6ec6('0xde')](_0x1f5792,_0x13ea3d=_0x6ec6('0xcf'),_0xf8a76={}){const _0x1d77af=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')]['get'](_0x6ec6('0x2'))['me'],_0x40b228=this['_suggestionFactory'][_0x6ec6('0xaf')](_0x6ec6('0x113'),_0x13ea3d,_0x6ec6('0xa0'));for(const _0x20da14 of this[_0x6ec6('0x124')]())if(_0x20da14[_0x6ec6('0x1e')]['id']==_0x1d77af['id']&&_0x6ec6('0x113')==_0x20da14['type']&&_0x20da14[_0x6ec6('0x3f')]==_0x13ea3d&&(_0x40b228(_0x20da14[_0x6ec6('0x75')](),_0x1f5792)||_0x40b228(_0x1f5792,_0x20da14[_0x6ec6('0x75')]()))){for(const _0x4fcfa4 of _0x1f5792)_0x20da14[_0x6ec6('0x4f')](_0x4fcfa4);return _0x20da14;}for(const _0x10b42a of _0x1f5792)for(const {suggestion:_0x2aa843,meta:_0x156d07}of this['_findSuggestions'](_0x10b42a,_0x6ec6('0x113'))){if(!_0x156d07[_0x6ec6('0x51')])continue;let _0x31b815=!0x0;for(const _0x2059b9 of _0x2aa843[_0x6ec6('0x75')]())for(const _0x14cca1 of _0x1f5792)if(!_0x2059b9[_0x6ec6('0xeb')](_0x14cca1)){_0x31b815=!0x1;break;}if(_0x31b815)return _0x2aa843;}const _0x1a6bf7=_0x54747c(),_0x838533=_0x1d77af['id'],_0x546018=_0x6ec6('0x116')+_0x13ea3d,_0x2e69ac=this[_0x6ec6('0x4')]({'id':_0x1a6bf7,'type':_0x546018,'createdAt':new Date(),'authorId':_0x838533,'attributes':_0xf8a76});for(const _0x3e5c7a of _0x1f5792)this[_0x6ec6('0x65')](_0x546018,_0x1a6bf7,_0x838533,_0x3e5c7a,_0x32d0a2[_0x6ec6('0xae')]());return _0x2e69ac;}[_0x6ec6('0x80')](_0x53e4c4,_0x5d0fa9,_0x2f1914=null,_0x2b7255={}){if(_0x2f1914=_0x2f1914||kt(_0x5d0fa9),_0x53e4c4[_0x6ec6('0x7f')])return;const _0x5b11fd=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))['me'],_0x2a2c56=[];for(const {suggestion:_0xd3bf3,meta:_0x360a48}of this[_0x6ec6('0x11c')](_0x53e4c4,_0x6ec6('0x113')))_0x360a48[_0x6ec6('0x51')]&&!_0x360a48['isInsideObject']&&_0x2a2c56['push'](..._0xd3bf3[_0x6ec6('0x75')]());const _0x1aadb4=function(_0x5373db,_0x506cd1){const _0x73ab61=[];for(const _0x278d58 of _0x506cd1){const _0x578b7a=_0x5373db[_0x6ec6('0xd7')](_0x278d58);_0x578b7a&&_0x73ab61[_0x6ec6('0xb7')](_0x578b7a);}return _0x73ab61;}(_0x53e4c4,_0x2a2c56),_0x5e8f71=function(_0x4c7aea,_0x527c23){const _0x550211=[_0x4c7aea];for(const _0x3e311a of _0x527c23){let _0x3db139=0x0;for(;_0x3db139<_0x550211[_0x6ec6('0x20')];){const _0x5736b7=_0x550211[_0x3db139]['getDifference'](_0x3e311a);_0x550211[_0x6ec6('0x10e')](_0x3db139,0x1,..._0x5736b7),_0x3db139+=_0x5736b7[_0x6ec6('0x20')];}}return _0x550211;}(_0x53e4c4,_0x2a2c56);_0x1aadb4[_0x6ec6('0x20')]&&this[_0x6ec6('0xf3')][_0x6ec6('0x5b')](()=>{for(const _0x30f6bb of _0x1aadb4){const _0x489d10=this['_suggestionFactory'][_0x6ec6('0xaf')](_0x6ec6('0xbd'),_0x2f1914,_0x6ec6('0xfa'));this['forceDefaultExecution'](()=>_0x489d10([_0x30f6bb],_0x5d0fa9,_0x2b7255));}});for(const _0x1d9523 of _0x5e8f71){let _0x3aaa85=null,_0x57fbe6=_0x1d9523[_0x6ec6('0x119')],_0x275592=_0x1d9523['end'];for(const {suggestion:_0x324689,meta:_0x5559f7}of this[_0x6ec6('0x11c')](_0x1d9523,_0x6ec6('0xbd'))){if(!_0x5559f7[_0x6ec6('0x51')])continue;if(_0x324689[_0x6ec6('0x3f')]!=_0x2f1914)continue;const _0x33547f=_0x324689[_0x6ec6('0xd2')]();if(_0x33547f[_0x6ec6('0xeb')](_0x1d9523,!0x0))return;_0x57fbe6=_0x57fbe6[_0x6ec6('0xa5')](_0x33547f[_0x6ec6('0x119')])?_0x57fbe6:_0x33547f[_0x6ec6('0x119')],_0x275592=_0x275592[_0x6ec6('0x10d')](_0x33547f[_0x6ec6('0xd1')])?_0x275592:_0x33547f[_0x6ec6('0xd1')],_0x3aaa85?_0x33547f['start']['isBefore'](_0x3aaa85[_0x6ec6('0xd2')]()['start'])?(_0x3aaa85[_0x6ec6('0x1')](),_0x3aaa85=_0x324689):_0x324689[_0x6ec6('0x1')]():_0x3aaa85=_0x324689;}const _0x2d3b22=this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x57fbe6,_0x275592);if(_0x3aaa85)this[_0x6ec6('0x97')](_0x3aaa85,_0x2d3b22);else{const _0x3c3246=_0x54747c(),_0x1c053f=_0x5b11fd['id'];this['_setSuggestionData']({'id':_0x3c3246,'type':'formatInline:'+_0x2f1914,'data':_0x5d0fa9,'createdAt':new Date(),'authorId':_0x1c053f,'attributes':_0x2b7255}),this['_addSuggestionMarker'](_0x6ec6('0xcc')+_0x2f1914,_0x3c3246,_0x1c053f,_0x2d3b22);}}}[_0x6ec6('0x9b')](_0x46de37,_0x44d6eb,_0x352b7a=[],_0x3a4e80=null,_0xc20d36={}){_0x44d6eb[_0x6ec6('0x1c')]||(_0x44d6eb['formatGroupId']=_0x44d6eb[_0x6ec6('0x3')]),_0x44d6eb[_0x6ec6('0x1b')]=_0x46de37['is'](_0x6ec6('0x8')),_0x3a4e80=_0x3a4e80||kt(_0x44d6eb);const _0x342051=_0x352b7a[_0x6ec6('0x98')](_0x400109=>yt(_0x400109,this[_0x6ec6('0xf3')])),_0x4c0d76=_0x46de37['is'](_0x6ec6('0x8'))?_0x46de37:yt(_0x46de37,this[_0x6ec6('0xf3')]);_0x342051['push'](_0x4c0d76);let _0x454ecd=!0x0;for(const _0x8a323d of _0x342051)if(!this[_0x6ec6('0xa2')](_0x8a323d)){_0x454ecd=!0x1;break;}if(_0x454ecd){const _0x2306d6=this[_0x6ec6('0x37')][_0x6ec6('0xaf')](_0x6ec6('0x69'),_0x3a4e80,_0x6ec6('0xfa'));return void this[_0x6ec6('0x83')](()=>_0x2306d6([_0x4c0d76],_0x44d6eb,_0xc20d36));}let _0x5a3e3d=null,_0x21f1f9=_0x4c0d76[_0x6ec6('0x119')],_0xb03d9a=_0x4c0d76[_0x6ec6('0xd1')];for(const {suggestion:_0x204772,meta:_0x55da59}of this[_0x6ec6('0x11c')](_0x4c0d76,_0x6ec6('0x69'))){if(!_0x55da59[_0x6ec6('0x51')]||_0x55da59[_0x6ec6('0x6f')]||_0x55da59[_0x6ec6('0x93')]||_0x55da59[_0x6ec6('0xc0')])continue;if(_0x204772[_0x6ec6('0x78')]['formatGroupId']!=_0x44d6eb['formatGroupId'])continue;const _0xbbcb89=_0x204772[_0x6ec6('0xd2')]();if(_0x204772[_0x6ec6('0x3f')]==_0x3a4e80){if(_0xbbcb89[_0x6ec6('0xeb')](_0x4c0d76,!0x0))return;_0x21f1f9=_0x21f1f9['isBefore'](_0xbbcb89['start'])?_0x21f1f9:_0xbbcb89[_0x6ec6('0x119')],_0xb03d9a=_0xb03d9a[_0x6ec6('0x10d')](_0xbbcb89[_0x6ec6('0xd1')])?_0xb03d9a:_0xbbcb89[_0x6ec6('0xd1')],_0x5a3e3d?_0xbbcb89[_0x6ec6('0x119')][_0x6ec6('0xa5')](_0x5a3e3d[_0x6ec6('0xd2')]()[_0x6ec6('0x119')])?(_0x5a3e3d['removeMarkers'](),_0x5a3e3d=_0x204772):_0x204772['removeMarkers']():_0x5a3e3d=_0x204772;}else{const _0x24058d=_0x4c0d76[_0x6ec6('0xd7')](_0xbbcb89);this['_cutOutSuggestionMarker'](_0x204772,_0x24058d);}}const _0x86859a=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))['me'],_0x2c7fdb=_0x54747c(),_0x5dfcd4=_0x86859a['id'];_0x5a3e3d?this['_setSuggestionRange'](_0x5a3e3d,this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x21f1f9,_0xb03d9a)):(this[_0x6ec6('0x4')]({'id':_0x2c7fdb,'type':_0x6ec6('0xd0')+_0x3a4e80,'data':_0x44d6eb,'createdAt':new Date(),'authorId':_0x5dfcd4,'attributes':_0xc20d36}),this['_addSuggestionMarker'](_0x6ec6('0xd0')+_0x3a4e80,_0x2c7fdb,_0x5dfcd4,this['_model'][_0x6ec6('0x4a')](_0x21f1f9,_0xb03d9a)));}['markMultiRangeBlockFormat'](_0x8505ca,_0x4e03af,_0x2ed29a=[],_0x567a43=null,_0x2561f8={}){_0x4e03af[_0x6ec6('0x1c')]||(_0x4e03af['formatGroupId']=_0x4e03af[_0x6ec6('0x3')]),_0x4e03af[_0x6ec6('0x1b')]=!0x1,_0x567a43=_0x567a43||kt(_0x4e03af);const _0x4cc6e8=_0x2ed29a[_0x6ec6('0x98')](_0x2be10d=>yt(_0x2be10d,this[_0x6ec6('0xf3')])),_0xcdd258=_0x8505ca['map'](_0x31f593=>yt(_0x31f593,this['_model']));_0x4cc6e8[_0x6ec6('0xb7')](..._0xcdd258);let _0x1d194e=!0x0;for(const _0x154a11 of _0x4cc6e8)if(!this['_rangeIsInLocalUserInsertion'](_0x154a11)){_0x1d194e=!0x1;break;}if(_0x1d194e){const _0x242696=this[_0x6ec6('0x37')][_0x6ec6('0xaf')](_0x6ec6('0x69'),_0x567a43,_0x6ec6('0xfa'));return void this[_0x6ec6('0x83')](()=>_0x242696(_0xcdd258,_0x4e03af,_0x2561f8));}const _0x534847=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')]('Users')['me'];for(const _0x111383 of this[_0x6ec6('0x124')]()){if(_0x111383[_0x6ec6('0x1e')]['id']!=_0x534847['id'])continue;if(_0x6ec6('0x69')!=_0x111383[_0x6ec6('0x127')]||_0x111383[_0x6ec6('0x78')]['formatGroupId']!=_0x4e03af[_0x6ec6('0x1c')])continue;const _0xc7ca20=_0x111383['subType']==_0x567a43;for(let _0x8057a8=0x0;_0x8057a8<_0xcdd258[_0x6ec6('0x20')];_0x8057a8++){const _0x5f3f0c=_0xcdd258[_0x8057a8];for(const _0x3aafd6 of _0x111383['getMarkers']()){const _0x1bf881=_0x3aafd6[_0x6ec6('0x126')]();if(_0x5f3f0c[_0x6ec6('0x21')](_0x1bf881)){_0xc7ca20?(_0xcdd258[_0x6ec6('0x10e')](_0x8057a8,0x1),_0x8057a8--):_0x111383[_0x6ec6('0xfe')](_0x3aafd6[_0x6ec6('0x123')]);break;}}}}if(0x0==_0xcdd258[_0x6ec6('0x20')])return;const _0x55850f=this[_0x6ec6('0x37')][_0x6ec6('0xaf')]('formatBlock',_0x567a43,_0x6ec6('0xa0'));for(const _0x4cca0 of this['getSuggestions']())if(_0x4cca0[_0x6ec6('0x1e')]['id']==_0x534847['id']&&_0x6ec6('0x69')==_0x4cca0[_0x6ec6('0x127')]&&_0x4cca0['data'][_0x6ec6('0x1c')]==_0x4e03af[_0x6ec6('0x1c')]&&_0x4cca0[_0x6ec6('0x3f')]==_0x567a43&&(_0x55850f(_0x4cca0['getRanges'](),_0xcdd258)||_0x55850f(_0xcdd258,_0x4cca0[_0x6ec6('0x75')]()))){for(const _0x4f4df1 of _0xcdd258)_0x4cca0[_0x6ec6('0x4f')](_0x4f4df1);return _0x4cca0;}const _0x4ca9b8=_0x54747c(),_0x39d778=_0x534847['id'],_0x3df73c=_0x6ec6('0xd0')+_0x567a43,_0x177005=this[_0x6ec6('0x4')]({'id':_0x4ca9b8,'type':_0x3df73c,'data':_0x4e03af,'createdAt':new Date(),'authorId':_0x39d778,'attributes':_0x2561f8});for(const _0x4fb72e of _0xcdd258)this['_addSuggestionMarker'](_0x3df73c,_0x4ca9b8,_0x39d778,_0x4fb72e,_0x32d0a2[_0x6ec6('0xae')]());return _0x177005;}[_0x6ec6('0x8b')](_0x11eb9e,_0x3d2983=null,_0x1667f9={}){if(_0x11eb9e[_0x6ec6('0x7f')])return null;const _0x4ee388=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))['me'],_0x12bd9e=new _0x341c07(_0x11eb9e[_0x6ec6('0x119')],_0x11eb9e[_0x6ec6('0xd1')]);for(const {suggestion:_0x2b38cc,meta:_0x3d1613}of this[_0x6ec6('0x11c')](_0x12bd9e,_0x6ec6('0x113')))if(_0x3d1613[_0x6ec6('0x51')]&&!_0x3d1613[_0x6ec6('0x6f')]){if(_0x2b38cc[_0x6ec6('0x4b')]){const _0x1d9fa5=_0x2b38cc[_0x6ec6('0x75')]()[_0x6ec6('0x79')](_0x4b6d41=>_0x6ec6('0xb2')!=_0x4b6d41[_0x6ec6('0x2e')]['rootName']);_0x1d9fa5[_0x6ec6('0x9c')](_0x42b03b=>_0x12bd9e[_0x6ec6('0xeb')](_0x42b03b,!0x0))&&_0x2b38cc[_0x6ec6('0xe5')]();if(_0x1d9fa5[_0x6ec6('0xad')](_0x4b08f4=>_0x4b08f4[_0x6ec6('0xeb')](_0x12bd9e,!0x0))){const _0xd69b48=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d2983,_0x6ec6('0xfa'));return this[_0x6ec6('0x83')](()=>_0xd69b48([_0x12bd9e],null,_0x1667f9)),null;}}else{const _0xd8e29c=_0x12bd9e[_0x6ec6('0xd7')](_0x2b38cc[_0x6ec6('0xd2')]());_0x2b38cc['_onDiscard']([_0xd8e29c],null,_0x1667f9);}}if(_0x12bd9e[_0x6ec6('0x87')](),_0x12bd9e[_0x6ec6('0x7f')]||_0x6ec6('0xb2')==_0x12bd9e[_0x6ec6('0x2e')]['rootName'])return null;let _0x4f7911=null,_0x39ff04=_0x12bd9e[_0x6ec6('0x119')],_0x54f77c=_0x12bd9e[_0x6ec6('0xd1')];for(const {suggestion:_0x308e82,meta:_0x928758}of this[_0x6ec6('0x11c')](_0x12bd9e,_0x6ec6('0xfd')))if(_0x928758[_0x6ec6('0x51')]){if(_0x308e82[_0x6ec6('0x4b')]){let _0x395606=!0x0;for(const _0x4049a1 of _0x308e82[_0x6ec6('0x75')]()){if(_0x4049a1['containsRange'](_0x12bd9e,!0x0))return _0x308e82;_0x12bd9e[_0x6ec6('0xeb')](_0x4049a1)||(_0x395606=!0x1);}_0x395606&&_0x308e82[_0x6ec6('0xe5')]();}else{const _0x5ceb38=_0x308e82['getFirstRange']();if(_0x5ceb38[_0x6ec6('0xeb')](_0x12bd9e,!0x0))return _0x308e82;_0x39ff04=_0x39ff04[_0x6ec6('0xa5')](_0x5ceb38['start'])?_0x39ff04:_0x5ceb38['start'],_0x54f77c=_0x54f77c[_0x6ec6('0x10d')](_0x5ceb38['end'])?_0x54f77c:_0x5ceb38[_0x6ec6('0xd1')],_0x4f7911?_0x5ceb38[_0x6ec6('0x119')][_0x6ec6('0xa5')](_0x4f7911[_0x6ec6('0xd2')]()[_0x6ec6('0x119')])?(_0x4f7911[_0x6ec6('0x1')](),_0x4f7911=_0x308e82):_0x308e82[_0x6ec6('0x1')]():_0x4f7911=_0x308e82;}}if(_0x4f7911)return this[_0x6ec6('0x97')](_0x4f7911,this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x39ff04,_0x54f77c)),_0x4f7911;{const _0x59d83d=_0x54747c(),_0x4932a3=this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x39ff04,_0x54f77c),_0x410d88=_0x4ee388['id'],_0x2192f3=_0x3d2983?_0x6ec6('0x38')+_0x3d2983:_0x6ec6('0xfd'),_0x6c129d=this['_setSuggestionData']({'id':_0x59d83d,'type':_0x2192f3,'createdAt':new Date(),'authorId':_0x410d88,'attributes':_0x1667f9});return this[_0x6ec6('0x65')](_0x2192f3,_0x59d83d,_0x410d88,_0x4932a3),_0x6c129d;}}[_0x6ec6('0x2b')](_0xca2825,_0x3f1839=_0x6ec6('0xcf'),_0x210c1f={}){const _0x4214d8=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')]['get']('Users')['me'],_0x384efc=_0xca2825[_0x6ec6('0x98')](_0x450d19=>new _0x341c07(_0x450d19[_0x6ec6('0x119')],_0x450d19[_0x6ec6('0xd1')])),_0x58014f=new Set();for(const _0x2ee19c of _0x384efc)for(const {suggestion:_0x326799,meta:_0x2404dc}of this[_0x6ec6('0x11c')](_0x2ee19c,_0x6ec6('0x113')))_0x2404dc[_0x6ec6('0x51')]&&!_0x2404dc['isNextTo']&&_0x58014f[_0x6ec6('0xb5')](_0x326799);for(const _0x5a910f of _0x58014f)if(_0x5a910f[_0x6ec6('0x4b')]){const _0x47ab08=_0x5a910f[_0x6ec6('0x75')]();(!_0x5a910f[_0x6ec6('0x10a')]||!_0x5a910f[_0x6ec6('0x10a')][_0x6ec6('0x82')])&&(_0x47ab08['every'](_0x58a656=>_0x384efc[_0x6ec6('0xad')](_0x2e0fe8=>_0x2e0fe8[_0x6ec6('0xeb')](_0x58a656,!0x0)))&&_0x5a910f['discard']());if(_0x384efc['every'](_0xaaceb8=>_0x47ab08['some'](_0xa2ae63=>_0xa2ae63[_0x6ec6('0xeb')](_0xaaceb8,!0x0)))){const _0x238e05=this[_0x6ec6('0x37')]['getSuggestionCallback'](_0x6ec6('0xfd'),_0x3f1839,_0x6ec6('0xfa'));return this[_0x6ec6('0x83')](()=>_0x238e05(_0xca2825,null,_0x210c1f)),null;}}else{const _0x2c8096=_0x5a910f[_0x6ec6('0xd2')]();_0x384efc['some'](_0xb5851f=>_0xb5851f[_0x6ec6('0xeb')](_0x2c8096,!0x0))&&_0x5a910f[_0x6ec6('0xe5')]();if(_0x384efc['every'](_0x2e3d72=>_0x2c8096[_0x6ec6('0xeb')](_0x2e3d72,!0x0))){const _0x56be23=this[_0x6ec6('0x37')]['getSuggestionCallback']('deletion',_0x3f1839,_0x6ec6('0xfa'));return this[_0x6ec6('0x83')](()=>_0x56be23(_0x384efc,null,_0x210c1f)),null;}}const _0x2b9dfe=this[_0x6ec6('0x37')][_0x6ec6('0xaf')](_0x6ec6('0xfd'),_0x3f1839,_0x6ec6('0xa0'));let _0x71e5a4=null;for(const _0x359c80 of this[_0x6ec6('0x124')]())if(_0x359c80['author']['id']==_0x4214d8['id']&&_0x359c80['isInContent']&&_0x6ec6('0xfd')==_0x359c80[_0x6ec6('0x127')]&&_0x359c80['subType']==_0x3f1839&&(_0x2b9dfe(_0x359c80[_0x6ec6('0x75')](),_0x384efc)||_0x2b9dfe(_0x384efc,_0x359c80[_0x6ec6('0x75')]()))){if(_0x71e5a4){if(_0x359c80['commentThread']&&_0x359c80[_0x6ec6('0xb1')][_0x6ec6('0x20')])continue;for(const _0x50afc2 of _0x359c80[_0x6ec6('0x75')]())_0x71e5a4[_0x6ec6('0x100')](_0x50afc2)||_0x71e5a4[_0x6ec6('0x4f')](_0x50afc2);_0x359c80['removeMarkers']();}else{_0x71e5a4=_0x359c80;for(const _0x5d873e of _0x384efc)_0x359c80[_0x6ec6('0x100')](_0x5d873e)||_0x359c80[_0x6ec6('0x4f')](_0x5d873e);}}if(_0x71e5a4)return _0x71e5a4;_0x58014f[_0x6ec6('0x9e')]();for(const _0x101d21 of _0x384efc)for(const {suggestion:_0x78337a,meta:_0x2c3cc4}of this['_findSuggestions'](_0x101d21,_0x6ec6('0xfd')))_0x2c3cc4['isOwn']&&_0x58014f[_0x6ec6('0xb5')](_0x78337a);for(const _0x2c0a7e of _0x58014f){const _0x568b47=_0x2c0a7e[_0x6ec6('0x75')]();if(!_0x210c1f||!_0x210c1f[_0x6ec6('0x82')]){if(_0x384efc[_0x6ec6('0x9c')](_0x1c35f3=>_0x568b47[_0x6ec6('0xad')](_0x13c8ab=>_0x13c8ab[_0x6ec6('0xeb')](_0x1c35f3,!0x0))))return _0x2c0a7e;}(!_0x2c0a7e[_0x6ec6('0x10a')]||!_0x2c0a7e[_0x6ec6('0x10a')][_0x6ec6('0x82')])&&(_0x568b47[_0x6ec6('0x9c')](_0x236398=>_0x384efc[_0x6ec6('0xad')](_0x3ca3d3=>_0x3ca3d3[_0x6ec6('0xeb')](_0x236398,!0x0)))&&_0x2c0a7e[_0x6ec6('0xe5')]());}const _0x55a5d0=_0x54747c(),_0x5bf536=_0x4214d8['id'],_0x398d94=_0x6ec6('0x38')+_0x3f1839,_0x4f8ae9=this[_0x6ec6('0x4')]({'id':_0x55a5d0,'type':_0x398d94,'createdAt':new Date(),'authorId':_0x5bf536,'attributes':_0x210c1f});for(const _0x42bf42 of _0x384efc)_0x42bf42[_0x6ec6('0x87')](),_0x42bf42[_0x6ec6('0x7f')]||_0x6ec6('0xb2')==_0x42bf42[_0x6ec6('0x2e')][_0x6ec6('0xc4')]||this[_0x6ec6('0x65')](_0x398d94,_0x55a5d0,_0x5bf536,_0x42bf42,_0x32d0a2[_0x6ec6('0xae')]());return _0x4f8ae9;}[_0x6ec6('0x97')](_0x510dea,_0x5c7c16){const _0x57ec2e=_0x510dea['getFirstMarker']();this[_0x6ec6('0xf3')][_0x6ec6('0x5b')](_0x4153eb=>{_0x4153eb[_0x6ec6('0x99')](_0x57ec2e,{'range':_0x5c7c16});});}[_0x6ec6('0x2c')](_0x16eb06){const _0xdae454=_0x16eb06['id'],_0x5d090d=this[_0x6ec6('0x5a')][_0x6ec6('0xd4')][_0x6ec6('0x11e')]('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xdae454)||this[_0x6ec6('0x47')]['addCommentThread']({'channelId':_0x5d090d,'threadId':_0xdae454});const _0x29ee9b=this['_commentsRepository'][_0x6ec6('0xfb')](_0xdae454);_0x29ee9b[_0x6ec6('0x11')]('isRemovable'),_0x29ee9b['isRemovable']=!0x1,_0x16eb06[_0x6ec6('0xb1')]=_0x29ee9b;}['_checkSuggestionCorrectness'](_0x44e546,_0x2b8e8b,_0x184931,_0x22b2a4){if(_0x44e546[_0x6ec6('0x127')]!=_0x2b8e8b||_0x44e546['subType']!=_0x184931||_0x44e546[_0x6ec6('0x1e')]['id']!=_0x22b2a4)throw this[_0x6ec6('0x5a')][_0x6ec6('0x3c')](_0x6ec6('0xb9')),new _0x251ff9('track-changes-suggestion-data-mismatch',this);}[_0x6ec6('0x106')](_0x1f858a,_0x2a6d1d){const _0xbef23a=_0x1f858a['getFirstRange']();if(_0x2a6d1d['isEqual'](_0xbef23a))_0x1f858a[_0x6ec6('0x1')]();else{if(_0xbef23a[_0x6ec6('0xeb')](_0x2a6d1d)){const _0x39e45a=this[_0x6ec6('0xf3')][_0x6ec6('0x95')](_0x2a6d1d[_0x6ec6('0x119')][_0x6ec6('0x29')],_0x6ec6('0xd1'));this[_0x6ec6('0x97')](_0x1f858a,this[_0x6ec6('0xf3')]['createRange'](_0xbef23a[_0x6ec6('0x119')],_0x39e45a));const _0x2d7448=_0x54747c(),_0x19d1f2=_0x1f858a[_0x6ec6('0x1e')]['id'],_0x2e0f2f=_0x1f858a[_0x6ec6('0x127')]+':'+_0x1f858a[_0x6ec6('0x3f')];this['_setSuggestionData']({'id':_0x2d7448,'type':_0x2e0f2f,'createdAt':new Date(),'authorId':_0x19d1f2,'data':_0x1f858a[_0x6ec6('0x78')],'attributes':_0x1f858a[_0x6ec6('0x10a')]});const _0x4042b6=this[_0x6ec6('0xf3')]['createPositionAt'](_0x2a6d1d['end']['parent'],_0x6ec6('0x104')),_0x18356c=this[_0x6ec6('0xf3')]['createRange'](_0x4042b6,_0xbef23a[_0x6ec6('0xd1')]);this[_0x6ec6('0x65')](_0x2e0f2f,_0x2d7448,_0x19d1f2,_0x18356c);}else{if(_0xbef23a[_0x6ec6('0xc7')](_0x2a6d1d[_0x6ec6('0x119')])){const _0x5e1838=this[_0x6ec6('0xf3')]['createPositionAt'](_0x2a6d1d[_0x6ec6('0x119')][_0x6ec6('0x29')],_0x6ec6('0xd1'));this[_0x6ec6('0x97')](_0x1f858a,this['_model'][_0x6ec6('0x4a')](_0xbef23a[_0x6ec6('0x119')],_0x5e1838));}else{const _0x134abb=this['_model'][_0x6ec6('0x95')](_0x2a6d1d[_0x6ec6('0xd1')][_0x6ec6('0xd8')],_0x6ec6('0x104'));this[_0x6ec6('0x97')](_0x1f858a,this['_model']['createRange'](_0x134abb,_0xbef23a[_0x6ec6('0xd1')]));}}}}[_0x6ec6('0xa2')](_0x22be7d){for(const {suggestion:_0xc534bc,meta:_0x1ad7b1}of this[_0x6ec6('0x11c')](_0x22be7d,_0x6ec6('0x113'))){if(!_0x1ad7b1[_0x6ec6('0x51')])continue;const _0x5c752e=_0xc534bc[_0x6ec6('0x75')]();for(const _0x12ae48 of _0x5c752e)if(!_0x22be7d[_0x6ec6('0x7')](_0x12ae48)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x490f43){const _0x8c0c6c=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))[_0x6ec6('0xab')](_0x490f43);if(!_0x8c0c6c)throw new _0x251ff9(_0x6ec6('0x27'),this);return _0x8c0c6c;}[_0x6ec6('0x94')](_0x252d84,_0x4971b3,_0x5baee2,_0x52afe1){const _0x2c0919=this['_getAuthorFromId'](_0x52afe1),_0x610224=this[_0x6ec6('0x37')][_0x6ec6('0x107')](_0x252d84,_0x4971b3,_0x5baee2,_0x2c0919,_0x3d44cd=>this['_updateSuggestionData'](_0x5baee2,{'attributes':_0x3d44cd}));return this[_0x6ec6('0x96')](_0x610224,_0x6ec6('0xfa'),()=>{this[_0x6ec6('0x63')](_0x5baee2,{'state':_0x6ec6('0xff')});},{'priority':_0x6ec6('0xa')}),this[_0x6ec6('0x96')](_0x610224,_0x6ec6('0xe5'),()=>{this[_0x6ec6('0x63')](_0x5baee2,{'state':_0x6ec6('0xc5')});},{'priority':'high'}),this[_0x6ec6('0xb3')][_0x6ec6('0x8e')](_0x5baee2,_0x610224),this[_0x6ec6('0x8d')][_0x6ec6('0x8e')](_0x610224,_0x6ec6('0x7c')),_0x610224;}['_splitMarkerName'](_0x36f574){const _0x2a167b=_0x36f574[_0x6ec6('0x46')](':');return{'group':_0x2a167b[0x0],'type':_0x2a167b[0x1],'subType':_0x2a167b[_0x6ec6('0x20')]>=0x5?_0x2a167b[0x2]:null,'id':_0x2a167b[_0x6ec6('0x20')]<0x5?_0x2a167b[0x2]:_0x2a167b[0x3],'authorId':_0x2a167b[_0x6ec6('0x20')]<0x5?_0x2a167b[0x3]:_0x2a167b[0x4],'markerCount':0x6==_0x2a167b[_0x6ec6('0x20')]?_0x2a167b[0x5]:null};}[_0x6ec6('0x48')](_0x577f4f,_0x3c0ce4,_0x4ea745){const _0x32db21=_0x577f4f[_0x6ec6('0xd2')](),_0x1044bd=_0x32db21[_0x6ec6('0x119')],_0x145286=_0x32db21[_0x6ec6('0xd1')];this['_setSuggestionRange'](_0x577f4f,this[_0x6ec6('0xf3')]['createRange'](_0x1044bd,_0x3c0ce4));const _0x2c25ff=_0x54747c(),_0x4aa417=_0x577f4f[_0x6ec6('0x1e')]['id'],_0x1ae23f=_0x577f4f[_0x6ec6('0x127')]+(_0x577f4f[_0x6ec6('0x3f')]?':'+_0x577f4f[_0x6ec6('0x3f')]:'');this[_0x6ec6('0x4')]({'id':_0x2c25ff,'type':_0x1ae23f,'createdAt':new Date(),'authorId':_0x4aa417,'originalSuggestionId':_0x577f4f['id'],'data':_0x577f4f[_0x6ec6('0x78')]}),'formatBlock'==_0x577f4f[_0x6ec6('0x127')]&&(_0x4ea745=this[_0x6ec6('0xf3')][_0x6ec6('0xd3')](_0x4ea745[_0x6ec6('0xd8')])),this[_0x6ec6('0x65')](_0x1ae23f,_0x2c25ff,_0x4aa417,this[_0x6ec6('0xf3')]['createRange'](_0x4ea745,_0x145286));}[_0x6ec6('0x11c')](_0x674162,_0x165e9c=null){const _0x4bcff5=[],_0x163942=this[_0x6ec6('0xf3')]['schema'],_0x57c136=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')](_0x6ec6('0x2'))['me'];for(const _0x45e843 of this[_0x6ec6('0x124')]())if(_0x45e843['isInContent']&&(!_0x165e9c||_0x45e843[_0x6ec6('0x127')]==_0x165e9c))for(const _0x30fa39 of _0x45e843[_0x6ec6('0x75')]()){const _0x388b77=_0x674162[_0x6ec6('0x119')][_0x6ec6('0x21')](_0x30fa39[_0x6ec6('0xd1')])||_0x674162[_0x6ec6('0xd1')]['isEqual'](_0x30fa39[_0x6ec6('0x119')]);if(_0x388b77||_0x674162[_0x6ec6('0xd7')](_0x30fa39)){const _0x35be76=_0x674162[_0x6ec6('0xeb')](_0x30fa39)&&mt(_0x163942,_0x30fa39['start'],_0x674162),_0x1afb4b=_0x30fa39[_0x6ec6('0xeb')](_0x674162)&&mt(_0x163942,_0x674162[_0x6ec6('0x119')],_0x30fa39);_0x4bcff5[_0x6ec6('0xb7')]({'suggestion':_0x45e843,'meta':{'isOwn':_0x57c136==_0x45e843[_0x6ec6('0x1e')],'isNextTo':_0x388b77,'isInsideObject':_0x35be76,'containsRangeInObject':_0x1afb4b}});break;}}return _0x4bcff5;}[_0x6ec6('0x65')](_0x52de4d,_0x4a51e4,_0x398ea9,_0x24bc3b,_0x52952c=null){this[_0x6ec6('0xf3')][_0x6ec6('0x5b')](_0x129ca3=>{let _0x5bb413=_0x6ec6('0xa4')+_0x52de4d+':'+_0x4a51e4+':'+_0x398ea9;_0x52952c&&(_0x5bb413=_0x5bb413+':'+_0x52952c),_0x129ca3[_0x6ec6('0x1f')](_0x5bb413,{'range':_0x24bc3b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x16617e){const _0x4dc654=_0x16617e['previous'],_0x245294=_0x16617e[_0x6ec6('0x108')];_0x16617e[_0x6ec6('0x26')]=null,null!=_0x4dc654&&(_0x4dc654[_0x6ec6('0x108')]=null),_0x16617e[_0x6ec6('0x108')]=null,null!=_0x245294&&(_0x245294[_0x6ec6('0x26')]=null),_0x6ec6('0x28')==this[_0x6ec6('0x8d')][_0x6ec6('0x11e')](_0x16617e)&&(this[_0x6ec6('0x8d')][_0x6ec6('0x8e')](_0x16617e,'removed'),this[_0x6ec6('0x6b')](_0x6ec6('0xe3'),_0x16617e,_0x4dc654,_0x245294));}[_0x6ec6('0x4')](_0xdc55ab){const _0xda38b3=_0xdc55ab['id'],_0x1661ed=this[_0x6ec6('0x110')](_0xdc55ab);if(this[_0x6ec6('0x5')]&&this[_0x6ec6('0x5')][_0x6ec6('0x71')]){const _0x6558a8=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')]['get'](_0x6ec6('0x121')),_0x4ee9ac=_0x1661ed[_0x6ec6('0x6d')],_0x48d06e=_0x1661ed[_0x6ec6('0x3f')]?_0x1661ed['type']+':'+_0x1661ed[_0x6ec6('0x3f')]:_0x1661ed['type'],_0x2306d7=this['editor'][_0x6ec6('0xc2')],_0x42222f=_0x6558a8[_0x6ec6('0xb5')](_0x5d766b(_0x2306d7,_0x6ec6('0xdd'))),_0x3921bb={'id':_0xda38b3,'type':_0x48d06e,'hasComments':_0x4ee9ac,'data':_0xdc55ab[_0x6ec6('0x78')]||null,'originalSuggestionId':_0xdc55ab[_0x6ec6('0x7e')]||null,'attributes':_0x1661ed[_0x6ec6('0x10a')]};this['_adapter'][_0x6ec6('0x71')](_0x3921bb)[_0x6ec6('0x125')](_0x244c61=>{_0x1661ed['_saved']=!0x0,_0x6558a8[_0x6ec6('0xe7')](_0x42222f),_0x244c61&&_0x244c61[_0x6ec6('0xa1')]&&(this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0xda38b3)[_0x6ec6('0xa1')]=_0x244c61['createdAt']);});}return _0x1661ed;}[_0x6ec6('0x63')](_0x2270c7,_0x550dc6){const _0x24ecfe=this[_0x6ec6('0x5a')][_0x6ec6('0xf4')][_0x6ec6('0x11e')]('PendingActions'),_0x262fde=this[_0x6ec6('0xb3')][_0x6ec6('0x11e')](_0x2270c7);if(this[_0x6ec6('0x5')]&&this[_0x6ec6('0x5')]['updateSuggestion']){if(_0x262fde[_0x6ec6('0x39')]){const _0x48e688=_0x24ecfe[_0x6ec6('0xb5')](_0x5d766b(this['editor'][_0x6ec6('0xc2')],'PENDING_ACTION_SUGGESTION'));this[_0x6ec6('0x5')][_0x6ec6('0x4e')](_0x2270c7,_0x550dc6)['then'](()=>{_0x24ecfe['remove'](_0x48e688);});}else _0x262fde['on'](_0x6ec6('0x118'),()=>{this[_0x6ec6('0x63')](_0x2270c7,_0x550dc6);});}}['_getSuggestionData'](_0x100a77){if(!this[_0x6ec6('0x5')]||!this[_0x6ec6('0x5')][_0x6ec6('0xac')])throw new _0x251ff9(_0x6ec6('0x36'),this);return this['_adapter']['getSuggestion'](_0x100a77);}[_0x6ec6('0x59')](_0x22a36f){const {id:_0xa5b6f4,type:_0x318991,subType:_0x44eb1f,authorId:_0x172c8a}=this[_0x6ec6('0x62')](_0x22a36f),_0x7a4755=this['_suggestions']['get'](_0xa5b6f4)||this[_0x6ec6('0x94')](_0x318991,_0x44eb1f,_0xa5b6f4,_0x172c8a);switch(this[_0x6ec6('0x43')](_0x7a4755,_0x318991,_0x44eb1f,_0x172c8a),this[_0x6ec6('0x8d')][_0x6ec6('0x11e')](_0x7a4755)){case _0x6ec6('0x7c'):this[_0x6ec6('0xee')](_0xa5b6f4)['then'](_0x4b4797=>{let _0x22df70=Promise[_0x6ec6('0x12a')]();_0x4b4797[_0x6ec6('0x6d')]&&(_0x22df70=this[_0x6ec6('0x47')][_0x6ec6('0x86')]({'channelId':this[_0x6ec6('0x5a')][_0x6ec6('0xd4')][_0x6ec6('0x11e')](_0x6ec6('0x8c')),'threadId':_0xa5b6f4})),_0x22df70[_0x6ec6('0x125')](()=>{this[_0x6ec6('0x110')](_0x4b4797)[_0x6ec6('0x39')]=!0x0;});}),this[_0x6ec6('0x8d')]['set'](_0x7a4755,_0x6ec6('0xc1'));break;case _0x6ec6('0x2a'):this[_0x6ec6('0x63')](_0xa5b6f4,{'state':_0x6ec6('0x42')});case _0x6ec6('0x6e'):this[_0x6ec6('0x8d')]['set'](_0x7a4755,_0x6ec6('0x28')),this['fire']('suggestionLoaded',_0x7a4755);break;case _0x6ec6('0x28'):this['fire'](_0x6ec6('0x11b'),_0x7a4755);}_0x7a4755[_0x6ec6('0xe9')](_0x22a36f),this[_0x6ec6('0xf7')](_0x7a4755);}['_refreshSuggestionsChain'](_0xbbb1e3){if(_0xbbb1e3[_0x6ec6('0x4b')])return;let _0x10d81c=!0x0,_0x3a9427=!0x0;for(const _0x969ccd of this['getSuggestions']()){if(_0x969ccd[_0x6ec6('0x4b')])continue;if(_0x969ccd==_0xbbb1e3||!_0x969ccd['isInContent'])continue;if(_0x969ccd[_0x6ec6('0x1e')]['id']!=_0xbbb1e3[_0x6ec6('0x1e')]['id'])continue;const _0x4cd6f0=this[_0x6ec6('0x37')]['getSuggestionCallback'](_0xbbb1e3[_0x6ec6('0x127')],_0xbbb1e3[_0x6ec6('0x3f')],_0x6ec6('0xd')),_0x3ad68a=this['_suggestionFactory'][_0x6ec6('0xaf')](_0x969ccd[_0x6ec6('0x127')],_0x969ccd[_0x6ec6('0x3f')],_0x6ec6('0xd')),_0x676dfe=_0x4cd6f0(_0xbbb1e3,_0x969ccd),_0x56fb23=_0x3ad68a(_0xbbb1e3,_0x969ccd);_0x676dfe&&_0x56fb23&&(_0x676dfe[0x1][_0x6ec6('0xb1')]&&_0x676dfe[0x1]['commentThread'][_0x6ec6('0x20')]||(_0x676dfe[0x0][_0x6ec6('0x108')]=_0x676dfe[0x1],_0x676dfe[0x1][_0x6ec6('0x26')]=_0x676dfe[0x0],_0x676dfe[0x0]==_0xbbb1e3?_0x3a9427=!0x1:_0x10d81c=!0x1));}_0xbbb1e3[_0x6ec6('0x26')]&&_0x10d81c&&(_0xbbb1e3[_0x6ec6('0x26')]['next']=null,_0xbbb1e3[_0x6ec6('0x26')]=null),_0xbbb1e3[_0x6ec6('0x108')]&&_0x3a9427&&(_0xbbb1e3[_0x6ec6('0x108')][_0x6ec6('0x26')]=null,_0xbbb1e3[_0x6ec6('0x108')]=null);}[_0x6ec6('0x64')](_0x323540){for(const _0x481dba of this['_suggestions'][_0x6ec6('0xca')]()){if(_0x481dba==_0x323540||!_0x481dba['isInContent'])continue;if(_0x481dba[_0x6ec6('0x127')]!=_0x323540[_0x6ec6('0x127')]||_0x481dba[_0x6ec6('0x1e')]['id']!=_0x323540[_0x6ec6('0x1e')]['id']||_0x481dba[_0x6ec6('0x3f')]!=_0x323540[_0x6ec6('0x3f')])continue;const _0x474197=this[_0x6ec6('0x37')][_0x6ec6('0xaf')](_0x323540['type'],_0x323540[_0x6ec6('0x3f')],'join');if(_0x474197(_0x481dba[_0x6ec6('0x75')](),_0x323540[_0x6ec6('0x75')]())){if(_0x323540[_0x6ec6('0xb1')]&&_0x323540['commentThread'][_0x6ec6('0x20')])continue;return this['_joinSuggestions'](_0x481dba,_0x323540),!0x0;}if(_0x474197(_0x323540[_0x6ec6('0x75')](),_0x481dba['getRanges']())){if(_0x481dba[_0x6ec6('0xb1')]&&_0x481dba['commentThread'][_0x6ec6('0x20')])continue;return this['_joinSuggestions'](_0x323540,_0x481dba),!0x0;}}return!0x1;}[_0x6ec6('0x74')](_0x24049d,_0xd47f19){if(_0x24049d['isMultiRange'])for(const _0x1d484e of _0xd47f19[_0x6ec6('0x75')]())_0x24049d[_0x6ec6('0x4f')](_0x1d484e);else{const _0x252509=_0xd47f19[_0x6ec6('0xd2')]()[_0x6ec6('0xd1')];this['_setSuggestionRange'](_0x24049d,this[_0x6ec6('0xf3')][_0x6ec6('0x4a')](_0x24049d[_0x6ec6('0xd2')]()[_0x6ec6('0x119')],_0x252509));}_0xd47f19[_0x6ec6('0x1')]();}}_0x550c42(d,_0x3858ac);class lt{constructor(_0xb16d0c){this['_editor']=_0xb16d0c,this['_model']=_0xb16d0c[_0x6ec6('0x73')],this[_0x6ec6('0x13')]=new Map(),this['_defaultCallbacks']=new Map(),this[_0x6ec6('0xe1')]();}[_0x6ec6('0x107')](_0x55a28c,_0x38f8be,_0x27114f,_0x3dd301,_0x1de7bc){return new _0x32d0a2(this[_0x6ec6('0xf3')],{'type':_0x55a28c,'subType':_0x38f8be,'id':_0x27114f,'author':_0x3dd301,'onAttributesChange':_0x1de7bc,'onAccept':(..._0x4f715e)=>this[_0x6ec6('0xaf')](_0x55a28c,_0x38f8be,_0x6ec6('0xfa'))(..._0x4f715e),'onDiscard':(..._0x1ee37a)=>this['getSuggestionCallback'](_0x55a28c,_0x38f8be,_0x6ec6('0xe5'))(..._0x1ee37a)});}[_0x6ec6('0x6c')](_0x3079a4,_0x3c5b3b,_0x453ec9,_0x79b7e2){const _0xa73223=_0x3079a4+':'+_0x3c5b3b+':'+_0x453ec9;this[_0x6ec6('0x13')][_0x6ec6('0x8e')](_0xa73223,_0x79b7e2);}[_0x6ec6('0xaf')](_0x5dbc5d,_0xa59df4,_0xc19574){const _0x5055f6=_0x5dbc5d+':'+_0xa59df4+':'+_0xc19574;return this['_customCallbacks'][_0x6ec6('0x11e')](_0x5055f6)||this['_defaultCallbacks'][_0x6ec6('0x11e')](_0x5dbc5d+':'+_0xc19574);}[_0x6ec6('0xe1')](){const _0x31f552=()=>{},_0x39459c=_0x493fe8=>{_0x493fe8[_0x6ec6('0x3d')]((_0x5bcd3b,_0x441663)=>_0x5bcd3b[_0x6ec6('0x119')][_0x6ec6('0xa5')](_0x441663[_0x6ec6('0x119')])?0x1:-0x1),this[_0x6ec6('0xf3')]['change'](_0x435df7=>{for(const _0x403105 of _0x493fe8){let _0x37c533;_0x37c533=_0x403105['end'][_0x6ec6('0x5c')]&&_0x403105[_0x6ec6('0xd1')][_0x6ec6('0xd8')]==_0x403105[_0x6ec6('0x119')]['nodeAfter']?_0x435df7[_0x6ec6('0x103')](_0x403105[_0x6ec6('0x119')][_0x6ec6('0xf2')],'on'):_0x435df7[_0x6ec6('0x103')](_0x403105),this[_0x6ec6('0xf3')][_0x6ec6('0x115')](_0x37c533,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x28c90b=(_0x255e3e,_0x55e47d)=>{this[_0x6ec6('0xf3')][_0x6ec6('0x5b')](_0x5d74dd=>{const {commandName:_0x210ce5,commandParams:_0x7025ba=[]}=_0x55e47d,_0x2d953f=_0x255e3e[0x0];if(_0x6ec6('0xb2')==_0x2d953f[_0x6ec6('0x2e')]['rootName'])return;const _0x4dcb6f=Array[_0x6ec6('0x55')](this['_model'][_0x6ec6('0x18')][_0x6ec6('0xea')][_0x6ec6('0x75')]())[_0x6ec6('0x98')](_0x50e959=>_0x341c07[_0x6ec6('0x11d')](_0x50e959));dt(_0x2d953f)?_0x5d74dd[_0x6ec6('0xc9')](this[_0x6ec6('0xf3')]['createRange'](_0x2d953f[_0x6ec6('0xd1')])):_0x5d74dd[_0x6ec6('0xc9')](_0x2d953f);for(const _0x3578e2 of this[_0x6ec6('0xf8')][_0x6ec6('0x129')][_0x6ec6('0x129')]())_0x3578e2['refresh']();_0x7025ba[_0x6ec6('0xb7')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x6ec6('0x70')](_0x210ce5,..._0x7025ba);const _0x1021b0=_0x4dcb6f[_0x6ec6('0x79')](_0x3475e3=>_0x6ec6('0xb2')!=_0x3475e3[_0x6ec6('0x2e')][_0x6ec6('0xc4')]);_0x1021b0[_0x6ec6('0x20')]>0x0&&_0x5d74dd['setSelection'](_0x1021b0);for(const _0x25e1ac of _0x4dcb6f)_0x25e1ac[_0x6ec6('0x87')]();});},_0x5c5392=(_0x16144f,_0x36c5b9)=>0x1==_0x16144f['length']&&0x1==_0x36c5b9[_0x6ec6('0x20')]&&_0x16144f[0x0]['end'][_0x6ec6('0x21')](_0x36c5b9[0x0][_0x6ec6('0x119')]),_0x446141=(_0x1737ec,_0x556e7c)=>bt(_0x1737ec,_0x556e7c,this[_0x6ec6('0xf3')])?[_0x1737ec,_0x556e7c]:bt(_0x556e7c,_0x1737ec,this['_model'])?[_0x556e7c,_0x1737ec]:null;this['_defaultCallbacks']['set'](_0x6ec6('0xe2'),_0x31f552),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')]('insertion:discard',_0x39459c),this[_0x6ec6('0x9d')]['set']('insertion:join',_0x5c5392),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0x9'),_0x446141),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0x1d'),_0x39459c),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0x9f'),_0x31f552),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0xd9'),_0x5c5392),this[_0x6ec6('0x9d')]['set'](_0x6ec6('0x5e'),_0x446141),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')]('formatInline:accept',_0x28c90b),this['_defaultCallbacks'][_0x6ec6('0x8e')](_0x6ec6('0xd5'),_0x31f552),this[_0x6ec6('0x9d')]['set'](_0x6ec6('0xef'),_0x5c5392),this['_defaultCallbacks']['set']('formatInline:chain',_0x31f552),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')]('formatBlock:accept',_0x28c90b),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0x60'),_0x31f552),this[_0x6ec6('0x9d')][_0x6ec6('0x8e')](_0x6ec6('0x2d'),_0x5c5392),this['_defaultCallbacks'][_0x6ec6('0x8e')](_0x6ec6('0xbf'),_0x31f552);}}function mt(_0x1bcb2a,_0x4ea6d1,_0xd4725){for(const _0x39a146 of _0x4ea6d1['parent'][_0x6ec6('0xf9')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x39a146[_0x6ec6('0x2e')]==_0x39a146)return!0x1;if(!_0xd4725['containsItem'](_0x39a146))return!0x1;if(_0x1bcb2a[_0x6ec6('0x76')](_0x39a146)||_0x1bcb2a['isLimit'](_0x39a146))return!0x0;}}function dt(_0x42653a){return _0x42653a['end'][_0x6ec6('0xd8')]==_0x42653a[_0x6ec6('0x119')][_0x6ec6('0xf2')]&&_0x42653a[_0x6ec6('0xd1')]['isAtStart'];}function pt(_0x437e62,_0x557c9d,_0x3b11d8,_0xe1c3fc){const _0x343709=_0x454544=>!_0x454544[_0x6ec6('0x10f')]['is'](_0x6ec6('0x120'))&&!_0xe1c3fc[_0x6ec6('0x76')](_0x454544[_0x6ec6('0x10f')]),_0x2e8617=_0x437e62['start'][_0x6ec6('0x5d')](_0x343709),_0x538d8b=_0x437e62[_0x6ec6('0xd1')]['getLastMatchingPosition'](_0x343709,{'direction':_0x6ec6('0x58')});return(!_0x437e62[_0x6ec6('0x119')]['isEqual'](_0x2e8617)||!_0x437e62[_0x6ec6('0xd1')][_0x6ec6('0x21')](_0x538d8b))&&(_0x2e8617[_0x6ec6('0xa5')](_0x538d8b)?_0x3b11d8[_0x6ec6('0x99')](_0x557c9d,{'range':_0x3b11d8['createRange'](_0x2e8617,_0x538d8b)}):_0x3b11d8[_0x6ec6('0xfe')](_0x557c9d),!0x0);}function kt(_0x37d6b2){return _0x1d81a6(_0x37d6b2);}function wt(_0x1f6dd7){const _0x2b9a79=_0x1f6dd7[_0x6ec6('0x119')][_0x6ec6('0xf2')];return _0x2b9a79&&_0x2b9a79['is']('element');}function yt(_0x318867,_0x2fd75a){const _0x387b64=_0x2fd75a['schema'][_0x6ec6('0x76')](_0x318867)||_0x2fd75a['schema'][_0x6ec6('0x6a')](_0x318867);return _0x2fd75a[_0x6ec6('0x4a')](_0x2fd75a[_0x6ec6('0x95')](_0x318867,_0x6ec6('0xe4')),_0x387b64?_0x2fd75a[_0x6ec6('0x109')](_0x318867):_0x2fd75a['createPositionAt'](_0x318867,'end'));}function bt(_0x598f7a,_0x2d89fe,_0x2b68e0){const _0x94f5b7=_0x598f7a[_0x6ec6('0xd2')](),_0x19f376=_0x2d89fe[_0x6ec6('0xd2')]();if(_0x94f5b7[_0x6ec6('0xd1')]['isEqual'](_0x19f376['start']))return!0x0;if(_0x598f7a[_0x6ec6('0x127')]!=_0x2d89fe[_0x6ec6('0x127')])return!0x1;if(!_0x94f5b7[_0x6ec6('0xd1')]['isTouching'](_0x19f376[_0x6ec6('0x119')]))return!0x1;const _0x1d0c8a=_0x2b68e0[_0x6ec6('0x4a')](_0x94f5b7[_0x6ec6('0xd1')],_0x19f376[_0x6ec6('0x119')])[_0x6ec6('0x8f')]();for(const _0x1b9cf7 of _0x1d0c8a)if([_0x6ec6('0xa3'),_0x6ec6('0xcd')][_0x6ec6('0xb8')](_0x1b9cf7[_0x6ec6('0x127')])&&_0x2b68e0[_0x6ec6('0xb6')][_0x6ec6('0x17')](_0x1b9cf7[_0x6ec6('0x10f')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x4089=['start','_onDiscard','push','head','isEqual','skipNestingCheck','removed','isInContent','splitPosition','getFirstRange','buildSuggestion','_isForcedDefaultExecutionBlock','getFirstMarker','newRange','insert','enableReadOnlyMode','markInsertion','addSuggestion','end','track-changes-suggestion-data-mismatch','rootName','notReady','document','markerToData','containsRangeInObject','addMarker','addMarkerName','getSuggestionCallback','_saved','some','getDifference','hasSuggestion','author','markerName','commandName','length','set','low','addClass','createElement','deletion:accept','bindElementToMarker','formatInline','removeMarkers','mapper','_suggestionFactory','oldRange','_getSuggestionData','remove','fetchCommentThread','dataToMarker','getLastMatchingPosition','markerReady','lowest','selection','deletion:discard','$graveyard','editing','schema','getUser','error-saving-suggestion-data-suggestion-discarded','suggestionLoaded','markMultiRangeInsertion','insertion:join','track-changes-adapter-already-set','isLimit','root','_setSuggestionRange','isAtStart','_descriptionFactory','ready','commands','howMany','removeMarker:suggestion:formatBlock','writer','return','createPositionAt','isIntersectingWithRange','_addThreadToSuggestion','consume','addMarker:suggestion:formatBlock','_cutOutSuggestionMarker','execute','rejected','targetPosition','clone','getItems','markDeletion','addCommentThread','accept','_breakSuggestionMarker','hasCommentThread','has','PendingActions','position','discardAllSuggestions','getMarkers','textProxy','updateSuggestion','getIntersection','getMultiRangeId','locale','join','_customCallbacks','getShiftedBy','editor','size','subType','_setSuggestionData','removeClass','createdAt','showSuggestionHighlights','suggestion','_suggestionState','addHighlight','addMarker:suggestion','updateMarker','insertion:discard','registerPostFixer','dataReady','before','split','high','_rangeIsInLocalUserInsertion','formatInline:accept','fromCharCode','moveTargetPosition','previous','markers','fire','commentThread','value','_removeSuggestion','setTo','insertion','parent','elementToElement','isNextTo','detach','registerCustomCallback','_editor','createPositionAfter','createRangeIn','_addSuggestionMarker','attributes','model','nodeBefore','marker-count','requires','elementStart','getChanges','element','insertion:','splice','_getAuthorFromId','isCollapsed','_commentsRepository','isOwn','_defaultCallbacks','getRanges','TrackChangesEditing','activeMarkers','Users','getSuggestion','filter','_handleNewSuggestionMarker','isObject','getChangedMarkers','conversion','data-suggestion','adapter','containerElement','markerNameToElements','_refreshSuggestionsChain','insertion:chain','discard','toViewElement','insertContent','init','isAfter','batch','trackChanges','suggestionUnloaded','delete','get','_model','options','isBlock','dataDowncast','collaboration.channelId','_joinWithAdjacentSuggestions','getAncestors','suggestionChanged','rethrowUnexpectedError','isBefore','isAtEnd','refresh','after','setAttribute','_findSuggestions','ck-suggestion-marker','getAttribute','enableCommand','_updateSuggestionData','deletion','getNearestSelectionRange','isUndo','multipleBlocks','change','formatInline:','containsPosition','deletion:','ck-suggestion-marker-formatBlock','isLocal','editingDowncast','formatInline:discard','plugins','elementEnd','deletion:chain','createSelection','name','containsRange','reconvertMarker','formatInline:join','stop','clear','values','pluginName','createRange','suggestion-type','createPositionBefore','removeMarker','isMultiRange','sort','update:suggestion','formatInline:chain','getAllAdjacentSuggestions','_suggestions','isInsideObject','map','setSelection','nodeAfter','track-changes-suggestion-not-found','acceptSuggestion','suggestion:','_splitMarkerName','ck-suggestion-marker-','stopListening','enqueueChange','isRemovable','config','PENDING_ACTION_SUGGESTION','differ','originalSuggestionId','change:activeMarkers','listenTo','multi','range','_registerDefaultCallbacks','_joinSuggestions','deleteContent','add','applyOperation','addSuggestionData','track-changes-command-not-found','unbind','markerToHighlight','unbindElementFromMarkerName','trackChangesCommand','acceptSelectedSuggestions','acceptAllSuggestions','includes','CommentsRepository','chain','_adapter','data','formatBlock','fromRange','formatGroupId','change:_saved','item','open','formatBlock:join','forceDefaultExecution','removeComment','markInlineFormat','hasComments','formatBlock:','next','then','_enabledCommands','getCustomProperty','for','discardSuggestion','type','getSuggestions','ck-suggestion-marker--active','_checkSuggestionCorrectness','addRange','track-changes-adapter-missing-getsuggestion','getCommentThread','accepted','backward','every','from','toJSON','consumable'];(function(_0x4aea98,_0x408935){const _0x8bed06=function(_0x3a6c32){while(--_0x3a6c32){_0x4aea98['push'](_0x4aea98['shift']());}};_0x8bed06(++_0x408935);}(_0x4089,0x19e));const _0x8bed=function(_0x4aea98,_0x408935){_0x4aea98=_0x4aea98-0x0;let _0x8bed06=_0x4089[_0x4aea98];return _0x8bed06;};import{Plugin as _0x307784,PendingActions as _0x505e89}from'ckeditor5/src/core';import{LiveRange as _0x533e76}from'ckeditor5/src/engine';import{CKEditorError as _0x210547,uid as _0x91d85,priorities as _0x2475cb,EmitterMixin as _0x199b9c,mix as _0xf3e8ef,logWarning as _0x5aa693}from'ckeditor5/src/utils';import{toWidget as _0x2db298}from'ckeditor5/src/widget';import{Users as _0x23dace}from'ckeditor5-collaboration/src/collaboration-core';import _0x2936c1 from'./commands/trackchangescommand';import _0x2ab529 from'./commands/acceptsuggestioncommand';import _0x386037 from'./commands/discardsuggestioncommand';import _0x4825ed from'./commands/acceptallsuggestionscommand';import _0x5a2bfa from'./commands/acceptselectedsuggestionscommand';import _0x1fade7 from'./commands/discardallsuggestionscommand';import _0x4c6e2a from'./commands/discardselectedsuggestionscommand';import _0x428f40 from'./suggestion';import _0x595e7c from'./suggestiondescriptionfactory';import _0x551678 from'./integrations/alignment';import _0x327e99 from'./integrations/basicstyles';import _0x1a6dce from'./integrations/blockquote';import _0x14a691 from'./integrations/ckbox';import _0xbbf70e from'./integrations/codeblock';import _0x38e71 from'./integrations/comments';import _0x720762 from'./integrations/deletecommand';import _0x2d6633 from'./integrations/entercommand';import _0x4b3971 from'./integrations/font';import _0x2b8380 from'./integrations/heading';import _0x257272 from'./integrations/highlight';import _0x4c2615 from'./integrations/horizontalline';import _0x3b6a19 from'./integrations/htmlembed';import _0x13f7f5 from'./integrations/image';import _0xf686e0 from'./integrations/indent';import _0x5d7337 from'./integrations/inputcommand';import _0x1a8e22 from'./integrations/link';import _0x39eaa7 from'./integrations/list';import _0x1c4360 from'./integrations/mediaembed';import _0x1af6ca from'./integrations/mention';import _0x897dff from'./integrations/pagebreak';import _0x2939f2 from'./integrations/paragraph';import _0x1545fb from'./integrations/removeformat';import _0x1d3af2 from'./integrations/restrictededitingmode';import _0x49f92f from'./integrations/shiftentercommand';import _0x4a0185 from'./integrations/standardeditingmode';import _0x3e8bbd from'./integrations/style';import _0x38f193 from'./integrations/table';import _0x36cbc0 from'./integrations/tablemergesplit';import _0x10e396 from'./integrations/tableheadings';import _0x3810d0 from'./integrations/tableclipboard';import _0x3bdb64 from'./integrations/title';import _0xa9c21f from'./integrations/undo';import _0x36dc3a from'./utils/hashobject.js';import{getTranslation as _0xf0b42e}from'./utils/common-translations';export default class d extends _0x307784{static get[_0x8bed('0x29')](){return[_0x8bed('0xa5'),_0x23dace,_0x505e89,_0x551678,_0x327e99,_0x1a6dce,_0x14a691,_0xbbf70e,_0x38e71,_0x720762,_0x2d6633,_0x4b3971,_0x2b8380,_0x257272,_0x4c2615,_0x3b6a19,_0x13f7f5,_0xf686e0,_0x5d7337,_0x1a8e22,_0x39eaa7,_0x1c4360,_0x1af6ca,_0x897dff,_0x2939f2,_0x1545fb,_0x1d3af2,_0x49f92f,_0x4a0185,_0x3e8bbd,_0x38f193,_0x36cbc0,_0x10e396,_0x3810d0,_0x3bdb64,_0xa9c21f];}static get[_0x8bed('0x78')](){return _0x8bed('0x35');}constructor(_0x13ca0d){function _0x57ab3f(_0x54d4e1){return _0x54d4e1[_0x8bed('0x84')](_0x233614=>String[_0x8bed('0x12')](_0x233614))[_0x8bed('0x12e')]('');}super(_0x13ca0d),this['set'](_0x8bed('0x36'),[]),this['on'](_0x8bed('0x93'),(_0x502c4d,_0x256823,_0x18bf33,_0x10bc72)=>{this[_0x8bed('0x4e')][_0x8bed('0x65')](()=>{for(const _0x4841c5 of[..._0x10bc72,..._0x18bf33])this[_0x8bed('0x4e')][_0x8bed('0x15')][_0x8bed('0x124')](_0x4841c5)&&_0x13ca0d[_0x8bed('0x101')][_0x8bed('0x73')](_0x4841c5);});}),this[_0x8bed('0x10d')]=new _0x595e7c(this[_0x8bed('0x131')][_0x8bed('0x26')][_0x8bed('0x102')],this[_0x8bed('0x131')][_0x8bed('0x12d')]),this[_0x8bed('0xa7')]=null,this['_suggestionFactory']=new kt(this['editor']),this[_0x8bed('0x82')]=new Map(),this[_0x8bed('0x31')]=_0x13ca0d[_0x8bed('0x6d')][_0x8bed('0x4d')]('CommentsRepository'),this[_0x8bed('0xb7')]=new Set(),this['_model']=this[_0x8bed('0x131')]['model'],this[_0x8bed('0x6')]=new WeakMap(),this[_0x8bed('0xd3')]=!0x1,this[_0x57ab3f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57ab3f([0x34,0x30,0x34,0x34,0x31,0x36,0x36,0x32]);}[_0x8bed('0x47')](){const _0x3f6ddd=this[_0x8bed('0x131')];_0x3f6ddd['conversion'][_0x8bed('0xb9')]('editingDowncast')[_0x8bed('0x9f')]({'model':_0x8bed('0x5'),'view':_0x4a7707=>{const {id:_0x413f99,type:_0x314d0b}=this[_0x8bed('0x8a')](_0x4a7707[_0x8bed('0xe9')]),_0x45d78b=['ck-suggestion-marker',_0x8bed('0x8b')+_0x314d0b];let _0x25944a=0xbb8;return this[_0x8bed('0x36')][_0x8bed('0xa4')](_0x4a7707[_0x8bed('0xe9')])&&(_0x45d78b[_0x8bed('0xca')](_0x8bed('0xbd')),_0x25944a=0xbc2),_0x8bed('0x61')==_0x314d0b&&(_0x25944a+=0x5),{'classes':_0x45d78b,'attributes':{'data-suggestion':_0x413f99},'priority':_0x25944a};}}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')](_0x8bed('0x51'))[_0x8bed('0x9a')](_0xb55e44=>{_0xb55e44['on'](_0x8bed('0x8'),(_0x57048f,_0x5e273c,_0x73904b)=>{if(!_0x73904b[_0x8bed('0x4f')][_0x8bed('0x4')])return;const _0x1e6232=_0x5e273c[_0x8bed('0xad')];if(!_0x1e6232)return;const _0x40ccfe=_0x73904b[_0x8bed('0xf4')][_0x8bed('0x45')](_0x1e6232);_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')][_0x8bed('0x3b')](_0x1e6232)&&_0x40ccfe&&!_0x40ccfe[_0x8bed('0xb8')]('widget')&&_0x40ccfe['is'](_0x8bed('0x40'))&&_0x2db298(_0x40ccfe,_0x73904b['writer']);},{'priority':_0x8bed('0xf')});}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')]('dataDowncast')[_0x8bed('0x9f')]({'model':_0x8bed('0x5'),'view':(_0x42ee8d,_0x2ee1c7)=>{if(!_0x2ee1c7[_0x8bed('0x4f')][_0x8bed('0x4')])return null;const {type:_0xba0c7a}=this[_0x8bed('0x8a')](_0x42ee8d[_0x8bed('0xe9')]);return{'classes':[_0x8bed('0x5d'),_0x8bed('0x8b')+_0xba0c7a],'priority':0xbb8};}});const _0x44197d=({showActiveMarkers:_0x16c58c=!0x0}={})=>(_0xc620d3,_0x48b436,_0x53bd0f)=>{if(!_0x48b436['item'])return;if(_0x48b436[_0x8bed('0xad')]['is'](_0x8bed('0xfe')))return void _0x53bd0f[_0x8bed('0xc7')]['consume'](_0x48b436[_0x8bed('0xad')],_0xc620d3[_0x8bed('0x71')]);const _0x10d3c2=_0x53bd0f[_0x8bed('0xf4')][_0x8bed('0x45')](_0x48b436[_0x8bed('0xad')]);if(!(_0x48b436[_0x8bed('0xad')]['is'](_0x8bed('0x2c'))&&_0x3f6ddd[_0x8bed('0x26')]['schema']['isBlock'](_0x48b436[_0x8bed('0xad')])&&!_0x10d3c2[_0x8bed('0xb8')](_0x8bed('0x7'))))return;const {id:_0x25925f}=this[_0x8bed('0x8a')](_0x48b436['markerName']);_0x53bd0f['writer'][_0x8bed('0xee')]([_0x8bed('0x5d'),'ck-suggestion-marker-formatBlock'],_0x10d3c2),_0x53bd0f[_0x8bed('0x112')][_0x8bed('0x5b')](_0x8bed('0x3e'),_0x25925f,_0x10d3c2),_0x53bd0f[_0x8bed('0xf4')][_0x8bed('0xf1')](_0x10d3c2,_0x48b436[_0x8bed('0xe9')]),_0x16c58c&&(this[_0x8bed('0x36')][_0x8bed('0xa4')](_0x48b436[_0x8bed('0xe9')])?_0x53bd0f[_0x8bed('0x112')][_0x8bed('0xee')]('ck-suggestion-marker--active',_0x10d3c2):_0x53bd0f[_0x8bed('0x112')][_0x8bed('0x2')](_0x8bed('0xbd'),_0x10d3c2));for(const _0x169d5c of _0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x23')](_0x48b436[_0x8bed('0xad')])[_0x8bed('0x11e')]())_0x53bd0f['consumable'][_0x8bed('0x117')](_0x169d5c,_0xc620d3[_0x8bed('0x71')]);_0x53bd0f[_0x8bed('0xc7')]['consume'](_0x48b436[_0x8bed('0xad')],_0xc620d3['name']);};_0x3f6ddd['conversion'][_0x8bed('0xb9')]('dataDowncast')[_0x8bed('0x9a')](_0x34099e=>{_0x34099e['on'](_0x8bed('0x118'),(_0x2c35ec,_0xfa06e8,_0x3d6bb4)=>{_0x3d6bb4['options'][_0x8bed('0x4')]&&_0x44197d({'showActiveMarkers':!0x1})(_0x2c35ec,_0xfa06e8,_0x3d6bb4);},{'priority':'highest'});}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')](_0x8bed('0x51'))[_0x8bed('0xdf')]({'model':_0x8bed('0x5'),'view':(_0x29407c,_0x3ba83c)=>_0x3ba83c['options'][_0x8bed('0x4')]?null:{'group':_0x8bed('0x5'),'name':_0x29407c['substr'](_0x8bed('0x5')[_0x8bed('0xeb')]+0x1)}}),_0x3f6ddd[_0x8bed('0x3d')]['for']('upcast')[_0x8bed('0x1d')]({'view':{'name':_0x8bed('0x5'),'attribute':{'id':/^\w/,'suggestionType':/^\w/}},'model':(_0x471656,{writer:_0x2cbc5d})=>{let _0x1a3a4b=_0x8bed('0x89')+_0x471656[_0x8bed('0x5e')](_0x8bed('0x7a'))+':'+_0x471656['getAttribute']('id');return _0x471656[_0x8bed('0x5e')](_0x8bed('0x28'))&&(_0x1a3a4b+=':'+_0x471656['getAttribute'](_0x8bed('0x28'))),_0x2cbc5d[_0x8bed('0xef')]('$marker',{'data-name':_0x1a3a4b});}}),_0x3f6ddd['conversion']['for']('upcast')[_0x8bed('0xfa')]({'view':_0x8bed('0x5')}),_0x3f6ddd['conversion'][_0x8bed('0xb9')](_0x8bed('0x6b'))[_0x8bed('0x9a')](_0x5cf310=>{_0x5cf310['on'](_0x8bed('0x118'),_0x44197d(),{'priority':'high'});}),_0x3f6ddd[_0x8bed('0x3d')][_0x8bed('0xb9')](_0x8bed('0x6b'))[_0x8bed('0x9a')](_0x3b299d=>{_0x3b299d['on'](_0x8bed('0x111'),(_0x349b33,_0x445ea1,_0x20395e)=>{const _0xe4ac3d=_0x20395e['mapper'][_0x8bed('0x41')](_0x445ea1[_0x8bed('0xe9')]);if(_0xe4ac3d)for(const _0x8ce3b7 of _0xe4ac3d)_0x8ce3b7[_0x8bed('0xb8')](_0x8bed('0x7'))||(_0x20395e[_0x8bed('0x112')]['removeClass']([_0x8bed('0x5d'),_0x8bed('0x69'),_0x8bed('0xbd')],_0x8ce3b7),_0x20395e[_0x8bed('0x112')]['removeAttribute'](_0x8bed('0x3e'),_0x8ce3b7),_0x20395e[_0x8bed('0xf4')][_0x8bed('0xa0')](_0x8ce3b7,_0x445ea1[_0x8bed('0xe9')]));},{'priority':_0x8bed('0xf')});}),_0x3f6ddd[_0x8bed('0x26')]['document'][_0x8bed('0xb')](_0xf98ca9=>{let _0x221584=!0x1;const _0x2e473a=Array['from'](_0x3f6ddd[_0x8bed('0x26')]['document']['differ'][_0x8bed('0x3c')]());for(const {name:_0x4e3a02,data:_0x28cb1c}of _0x2e473a){const {group:_0x15b63e,type:_0x235507,id:_0x7446d0}=this[_0x8bed('0x8a')](_0x4e3a02);if(_0x8bed('0x5')!==_0x15b63e)continue;const _0x3880e7=this['_suggestions'][_0x8bed('0x4d')](_0x7446d0);if(null!=_0x28cb1c[_0x8bed('0xd5')]){_0x8bed('0xf2')==_0x235507&&(_0x221584=_0x221584||bt(_0x28cb1c[_0x8bed('0xd5')],_0x4e3a02,_0xf98ca9,_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')]));if(_0x28cb1c[_0x8bed('0xd5')][_0x8bed('0x30')]||_0x8bed('0x100')==_0x28cb1c[_0x8bed('0xd5')]['root'][_0x8bed('0xdc')]||_0x8bed('0xa9')==_0x235507&&!It(_0x28cb1c['newRange'])||_0x8bed('0x61')==_0x235507&&!(!yt(_0x519b65=_0x28cb1c[_0x8bed('0xd5')])&&!function(_0x2bfa8f){return _0x2bfa8f[_0x8bed('0xc8')][_0x8bed('0x1c')]==_0x2bfa8f[_0x8bed('0xda')][_0x8bed('0x27')]&&_0x2bfa8f[_0x8bed('0xc8')]['isAtEnd'];}(_0x519b65)))_0xf98ca9[_0x8bed('0x7c')](_0x4e3a02),_0x221584=!0x0;else{if(!_0x3880e7||!_0x3880e7[_0x8bed('0xcf')])continue;_0x221584=!!this[_0x8bed('0x53')](_0x3880e7)||_0x221584;}}}var _0x519b65;return _0x221584;}),_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0xde')][_0x8bed('0xb')](_0x22fa3a=>{let _0x325275=!0x1;for(const _0x4288e8 of _0x3f6ddd['model'][_0x8bed('0xde')][_0x8bed('0x91')][_0x8bed('0x2b')]()){if(_0x8bed('0xd6')!=_0x4288e8[_0x8bed('0xbb')])continue;const _0x3435ca=_0x4288e8['position']['getShiftedBy'](_0x4288e8['length']);if(_0x3435ca['isAtEnd'])for(const _0x233892 of this[_0x8bed('0x82')]['values']()){if(_0x233892[_0x8bed('0x7d')]||!_0x233892[_0x8bed('0xcf')])continue;if(_0x8bed('0xa9')!=_0x233892[_0x8bed('0xbb')])continue;const _0x70a77=_0x233892['getFirstRange']();if(_0x70a77['start']['parent']!=_0x70a77[_0x8bed('0xda')][_0x8bed('0x1c')]&&_0x70a77[_0x8bed('0xda')][_0x8bed('0xcc')](_0x4288e8[_0x8bed('0x126')])){const _0x498f96=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x70a77['start'],_0x3435ca);_0x22fa3a[_0x8bed('0x9')](_0x233892['getFirstMarker'](),{'range':_0x498f96}),_0x325275=!0x0;}}}return _0x325275;}),_0x3f6ddd[_0x8bed('0x26')]['markers']['on'](_0x8bed('0x7f'),(_0x1baeeb,_0x5724af,_0x3df302)=>{if(null==_0x3df302){const {id:_0x288da8}=this['_splitMarkerName'](_0x5724af[_0x8bed('0x71')]),_0x4b6e48=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x288da8);_0x4b6e48&&_0x4b6e48[_0x8bed('0xe2')](_0x5724af[_0x8bed('0x71')]);}}),_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0xde')]['on']('change:data',()=>{const _0x34fe0c=Array[_0x8bed('0xc5')](_0x3f6ddd['model'][_0x8bed('0xde')][_0x8bed('0x91')]['getChangedMarkers']());_0x34fe0c[_0x8bed('0x7e')]((_0x9a8dd0,_0x1a70ee)=>{const _0x2ac1d1=_0x9a8dd0['data'][_0x8bed('0xf6')],_0x556a48=_0x1a70ee[_0x8bed('0xa8')]['oldRange'];return null===_0x2ac1d1&&null===_0x556a48?0x0:null===_0x2ac1d1&&null!==_0x556a48?-0x1:null!==_0x2ac1d1&&null===_0x556a48?0x1:_0x2ac1d1[_0x8bed('0xc8')][_0x8bed('0x57')](_0x556a48[_0x8bed('0xc8')])?-0x1:0x1;});const _0x3ac469=new Set();for(const {name:_0x3dcb66,data:_0xcb097b}of _0x34fe0c){const {group:_0x1ca02c,id:_0x4d0984}=this[_0x8bed('0x8a')](_0x3dcb66);if(_0x8bed('0x5')===_0x1ca02c&&(null===_0xcb097b[_0x8bed('0xf6')]&&this[_0x8bed('0x3a')](_0x3dcb66),null===_0xcb097b[_0x8bed('0xd5')])){const _0x53d7d7=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x4d0984);_0x53d7d7[_0x8bed('0xcf')]?_0x3ac469['add'](_0x53d7d7):this[_0x8bed('0x19')](_0x53d7d7);}}for(const {name:_0x239de2,data:_0x513401}of _0x34fe0c){const {group:_0x2fbc10,id:_0x4765e7}=this[_0x8bed('0x8a')](_0x239de2);if('suggestion'!==_0x2fbc10)continue;const _0x3e355=this[_0x8bed('0x82')]['get'](_0x4765e7);null!=_0x513401[_0x8bed('0xd5')]&&null!=_0x513401[_0x8bed('0xf6')]&&(this[_0x8bed('0x42')](_0x3e355),_0x3ac469[_0x8bed('0x9a')](_0x3e355[_0x8bed('0xcb')]));}for(const _0x2c7e87 of _0x3ac469)this['fire'](_0x8bed('0x55'),_0x2c7e87);_0x3ac469['clear']();}),_0x3f6ddd[_0x8bed('0x26')]['on'](_0x8bed('0x9b'),(_0x46c39c,_0x2a3d5b)=>{const _0x19e94a=_0x2a3d5b[0x0];if(!this[_0x8bed('0x82')][_0x8bed('0x132')])return;if(!_0x19e94a['isDocumentOperation'])return;if(_0x19e94a[_0x8bed('0x49')][_0x8bed('0x63')]||!_0x19e94a['batch'][_0x8bed('0x6a')])return;let _0x229fae,_0x588332;switch(_0x19e94a[_0x8bed('0xbb')]){case _0x8bed('0xd6'):_0x229fae=_0x3f6ddd[_0x8bed('0x26')]['createPositionAt'](_0x19e94a[_0x8bed('0x126')]),_0x588332=_0x229fae[_0x8bed('0x130')](_0x19e94a[_0x8bed('0x110')]);break;case _0x8bed('0xe'):_0x229fae=_0x3f6ddd[_0x8bed('0x26')]['createPositionAt'](_0x19e94a[_0x8bed('0xd0')]),_0x588332=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x114')](_0x19e94a[_0x8bed('0x13')]);break;case'move':_0x229fae=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x114')](_0x19e94a[_0x8bed('0x11c')]),_0x588332=_0x229fae['getShiftedBy'](_0x19e94a[_0x8bed('0x110')]);break;default:return;}const _0x36601e=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x229fae,_0x588332);_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x65')](()=>{for(const {suggestion:_0x1e6e96,meta:_0xa44735}of this[_0x8bed('0x5c')](_0x36601e)){if(_0x1e6e96[_0x8bed('0x7d')])continue;if('formatInline'==_0x1e6e96['type'])continue;const _0x54a897=_0x1e6e96[_0x8bed('0xa8')]&&_0x1e6e96['data'][_0x8bed('0x64')];(_0x8bed('0xa9')!=_0x1e6e96[_0x8bed('0xbb')]||_0x8bed('0xe')==_0x19e94a[_0x8bed('0xbb')]&&!_0x54a897)&&(_0xa44735[_0x8bed('0xe0')]||_0x8bed('0x1b')==_0x1e6e96[_0x8bed('0xbb')]&&_0xa44735[_0x8bed('0x32')]||_0x1e6e96[_0x8bed('0xd1')]()[_0x8bed('0x72')](_0x36601e)&&this[_0x8bed('0x122')](_0x1e6e96,_0x229fae,_0x588332));}});},{'priority':_0x8bed('0xfd')}),_0x3f6ddd[_0x8bed('0x26')]['on'](_0x8bed('0x99'),(_0x579c8f,_0x4f3c7f)=>{const _0x5ea6a3=_0x4f3c7f[0x0],_0xde8c85=_0x4f3c7f[0x1];if(_0xde8c85&&_0xde8c85[_0x8bed('0xb0')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x8bed('0xa1')][_0x8bed('0x18')])return;if(_0x5ea6a3['isCollapsed'])return;const _0x175e84=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')],{start:_0x19aa2c,end:_0x391059}=_0x5ea6a3[_0x8bed('0xd1')](),_0x1651ba=_0x19aa2c[_0x8bed('0x86')]&&_0x175e84[_0x8bed('0x3b')](_0x19aa2c[_0x8bed('0x86')])?null:_0x175e84['getNearestSelectionRange'](_0x19aa2c,'forward'),_0xfb8096=_0x391059[_0x8bed('0x27')]&&_0x175e84[_0x8bed('0x3b')](_0x391059[_0x8bed('0x27')])?null:_0x175e84[_0x8bed('0x62')](_0x391059,_0x8bed('0xc3')),_0x110b52=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x1651ba?_0x1651ba[_0x8bed('0xc8')]:_0x19aa2c,_0xfb8096?_0xfb8096[_0x8bed('0xda')]:_0x391059);_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x65')](_0x350f22=>{this[_0x8bed('0x11f')](_0x110b52);const _0x1bedcd=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x102')][_0x8bed('0x62')](_0x110b52['start']);_0x5ea6a3['is']('documentSelection')?_0x350f22[_0x8bed('0x85')](_0x1bedcd):_0x5ea6a3[_0x8bed('0x1a')](_0x1bedcd);}),_0x579c8f[_0x8bed('0x75')]();},{'priority':_0x2475cb['normal']+0xa}),_0x3f6ddd['model']['on'](_0x8bed('0x46'),(_0x138b6a,_0x58cfaa)=>{const _0x4b2a3c=_0x58cfaa[_0x58cfaa[_0x8bed('0xeb')]-0x1];_0x4b2a3c&&_0x4b2a3c[_0x8bed('0xb0')]||this[_0x8bed('0xd3')]||this[_0x8bed('0xa1')][_0x8bed('0x18')]&&(_0x3f6ddd[_0x8bed('0x26')]['change'](()=>{let _0x13f3da=_0x3f6ddd[_0x8bed('0x26')]['insertContent'](_0x58cfaa[0x0],_0x58cfaa[0x1],_0x58cfaa[0x2],_0x58cfaa[0x3],{'forceDefaultExecution':!0x0});if(!_0x13f3da)return;_0x138b6a[_0x8bed('0x113')]=_0x13f3da[_0x8bed('0x11d')]();const _0x395065=_0x13f3da[_0x8bed('0xda')][_0x8bed('0x27')],_0x53e3ea=_0x3f6ddd['model'][_0x8bed('0x102')];_0x395065&&_0x53e3ea[_0x8bed('0x50')](_0x395065)&&!_0x53e3ea[_0x8bed('0x3b')](_0x395065)&&(_0x13f3da=_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x79')](_0x13f3da[_0x8bed('0xc8')],_0x3f6ddd[_0x8bed('0x26')][_0x8bed('0x114')](_0x395065,'end'))),this[_0x8bed('0xd8')](_0x13f3da);}),_0x138b6a[_0x8bed('0x75')]());},{'priority':'high'}),this[_0x8bed('0xa1')]=new _0x2936c1(_0x3f6ddd,this['_enabledCommands']),this['editor']['commands'][_0x8bed('0x9a')](_0x8bed('0x4a'),this[_0x8bed('0xa1')]),this[_0x8bed('0x5f')](_0x8bed('0x4a'));const _0x421c9e=new _0x2ab529(_0x3f6ddd,this[_0x8bed('0x82')]);_0x3f6ddd[_0x8bed('0x10f')][_0x8bed('0x9a')](_0x8bed('0x88'),_0x421c9e),this[_0x8bed('0x5f')](_0x8bed('0x88'));const _0x1d439d=new _0x386037(_0x3f6ddd,this[_0x8bed('0x82')]);_0x3f6ddd[_0x8bed('0x10f')][_0x8bed('0x9a')](_0x8bed('0xba'),_0x1d439d),this[_0x8bed('0x5f')](_0x8bed('0xba')),_0x3f6ddd[_0x8bed('0x10f')]['add'](_0x8bed('0xa3'),new _0x4825ed(_0x3f6ddd,_0x421c9e,this[_0x8bed('0x82')])),this[_0x8bed('0x5f')](_0x8bed('0xa3')),_0x3f6ddd[_0x8bed('0x10f')]['add'](_0x8bed('0x127'),new _0x1fade7(_0x3f6ddd,_0x1d439d,this[_0x8bed('0x82')])),this[_0x8bed('0x5f')](_0x8bed('0x127')),_0x3f6ddd['commands'][_0x8bed('0x9a')](_0x8bed('0xa2'),new _0x5a2bfa(_0x3f6ddd,_0x421c9e,this[_0x8bed('0x82')])),this['enableCommand']('acceptSelectedSuggestions'),_0x3f6ddd[_0x8bed('0x10f')][_0x8bed('0x9a')]('discardSelectedSuggestions',new _0x4c6e2a(_0x3f6ddd,_0x1d439d,this[_0x8bed('0x82')])),this[_0x8bed('0x5f')]('discardSelectedSuggestions');const _0x4bb869=_0x3f6ddd[_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0xa5'));this['listenTo'](_0x4bb869,'addComment',(_0x3fe6bf,{threadId:_0x11b541})=>{const _0x23c817=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x11b541);_0x23c817&&_0x23c817[_0x8bed('0x17')]&&0x1===_0x23c817[_0x8bed('0x17')][_0x8bed('0xeb')]&&this[_0x8bed('0x60')](_0x11b541,{'hasComments':!0x0});},{'priority':_0x8bed('0xed')}),this[_0x8bed('0x94')](_0x4bb869,_0x8bed('0xb1'),(_0x1ba089,{threadId:_0x3314bb})=>{const _0x325f59=this[_0x8bed('0x82')]['get'](_0x3314bb);_0x325f59&&_0x325f59['commentThread']&&!_0x325f59[_0x8bed('0x17')][_0x8bed('0xeb')]&&this[_0x8bed('0x60')](_0x3314bb,{'hasComments':!0x1});},{'priority':'low'});}set[_0x8bed('0x3f')](_0x1aabe7){if(this['_adapter'])throw new _0x210547(_0x8bed('0x108'),this);this[_0x8bed('0xa7')]=_0x1aabe7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xa32523=!0x1,toJSON:_0x519e41=!0x1}={}){const _0x5e5f7b=[];for(const _0x165d87 of this[_0x8bed('0x82')][_0x8bed('0x77')]())_0xa32523&&!_0x165d87[_0x8bed('0xcf')]||_0x5e5f7b['push'](_0x165d87);return _0x519e41?_0x5e5f7b[_0x8bed('0x84')](_0x38785f=>_0x38785f[_0x8bed('0xc6')]()):_0x5e5f7b;}[_0x8bed('0x38')](_0x1b4367){const _0x573619=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x1b4367);if(!_0x573619)throw new _0x210547(_0x8bed('0x87'),this);return _0x573619;}[_0x8bed('0xe7')](_0x4f789b){return this[_0x8bed('0x82')][_0x8bed('0x124')](_0x4f789b);}[_0x8bed('0x9c')](_0x49ab44){const {id:_0x7d355a,authorId:_0x58906d}=_0x49ab44,[_0x35d26b,_0x598649]=_0x49ab44['type']['split'](':'),_0x450635=this['_suggestions'][_0x8bed('0x4d')](_0x7d355a)||this['_createSuggestion'](_0x35d26b,_0x598649,_0x7d355a,_0x58906d);switch(this['_addThreadToSuggestion'](_0x450635),this['_checkSuggestionCorrectness'](_0x450635,_0x35d26b,_0x598649||null,_0x58906d),_0x450635[_0x8bed('0x3')]=_0x49ab44['createdAt'],_0x49ab44[_0x8bed('0xa8')]&&(_0x450635[_0x8bed('0xa8')]=_0x49ab44[_0x8bed('0xa8')]),_0x49ab44[_0x8bed('0x25')]&&(_0x450635[_0x8bed('0x25')]=_0x49ab44[_0x8bed('0x25')]),this['_adapter']&&this[_0x8bed('0xa7')][_0x8bed('0xd9')]||(_0x450635[_0x8bed('0xe4')]=!0x0),this[_0x8bed('0x6')]['get'](_0x450635)){case _0x8bed('0xdd'):this[_0x8bed('0x6')][_0x8bed('0xec')](_0x450635,_0x8bed('0xc'));break;case'markerReady':_0x450635[_0x8bed('0xcf')]?(this['_suggestionState'][_0x8bed('0xec')](_0x450635,_0x8bed('0x10e')),this['fire'](_0x8bed('0x105'),_0x450635)):this[_0x8bed('0x6')][_0x8bed('0xec')](_0x450635,_0x8bed('0xce'));}return _0x450635;}[_0x8bed('0x88')](_0x2d8136){this[_0x8bed('0xb0')](()=>{this[_0x8bed('0x131')][_0x8bed('0x26')][_0x8bed('0x65')](()=>{for(const _0x29af92 of _0x2d8136[_0x8bed('0x81')]())_0x29af92['accept']();});});}[_0x8bed('0xba')](_0x39f03c){this[_0x8bed('0xb0')](()=>{this[_0x8bed('0x131')][_0x8bed('0x26')]['change'](()=>{for(const _0x1c86b6 of _0x39f03c[_0x8bed('0x81')]())_0x1c86b6['discard']();});});}['enableCommand'](_0x46923e,_0xf75c28){const _0x1cd662=this['editor']['commands'][_0x8bed('0x4d')](_0x46923e);if(!_0x1cd662)throw new _0x210547(_0x8bed('0x9d'),this,{'commandName':_0x46923e});this[_0x8bed('0xb7')]['add'](_0x1cd662),_0xf75c28&&_0x1cd662['on'](_0x8bed('0x11a'),(_0x296368,_0x4f41ed)=>{this[_0x8bed('0xa1')][_0x8bed('0x18')]&&(this[_0x8bed('0xd3')]||_0x4f41ed[_0x8bed('0xeb')]>0x0&&_0x4f41ed[_0x4f41ed[_0x8bed('0xeb')]-0x1]&&_0x4f41ed[_0x4f41ed[_0x8bed('0xeb')]-0x1][_0x8bed('0xb0')]||(_0xf75c28((..._0x4ed528)=>_0x1cd662[_0x8bed('0x11a')](..._0x4ed528,{'forceDefaultExecution':!0x0}),..._0x4f41ed),_0x296368['stop']()));},{'priority':_0x8bed('0xf')});}['forceDefaultExecution'](_0x42a6e9){let _0x36d504,_0x26eae0;const _0x212d63=this['_isForcedDefaultExecutionBlock'];this[_0x8bed('0xd3')]=!0x0;try{_0x36d504=_0x42a6e9();}catch(_0xddc9cd){_0x26eae0=_0xddc9cd;}return _0x212d63||(this[_0x8bed('0xd3')]=!0x1),_0x26eae0&&_0x210547[_0x8bed('0x56')](_0x26eae0,this),_0x36d504;}[_0x8bed('0xd8')](_0x267645,_0x1765cc=null,_0x3308f5={}){if(_0x267645[_0x8bed('0x30')])return null;const _0x342346=this['editor']['plugins'][_0x8bed('0x4d')](_0x8bed('0x37'))['me'];for(const {suggestion:_0x56233c,meta:_0x1b8f44}of this['_findSuggestions'](_0x267645,_0x8bed('0x1b')))if(_0x1b8f44[_0x8bed('0x32')]){if(!_0x1b8f44[_0x8bed('0x1e')])return _0x56233c;if(_0x1765cc==_0x56233c[_0x8bed('0x0')]){const _0x1cf5c9=_0x56233c[_0x8bed('0xd1')]();return _0x1cf5c9[_0x8bed('0xc8')][_0x8bed('0xcc')](_0x267645[_0x8bed('0xda')])?this[_0x8bed('0x10b')](_0x56233c,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x267645[_0x8bed('0xc8')],_0x1cf5c9['end'])):this[_0x8bed('0x10b')](_0x56233c,this['_model'][_0x8bed('0x79')](_0x1cf5c9['start'],_0x267645[_0x8bed('0xda')])),_0x56233c;}}const _0x4ea99f=_0x91d85(),_0x5526cf=_0x342346['id'],_0x5b043b=_0x1765cc?_0x8bed('0x2d')+_0x1765cc:_0x8bed('0x1b'),_0x34bbfe=this['_setSuggestionData']({'id':_0x4ea99f,'type':_0x5b043b,'createdAt':new Date(),'authorId':_0x5526cf,'attributes':_0x3308f5});return this[_0x8bed('0x24')](_0x5b043b,_0x4ea99f,_0x5526cf,_0x267645),_0x34bbfe;}[_0x8bed('0x106')](_0x2d7d90,_0x1d8350='multi',_0x2c7374={}){const _0x1fc514=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'],_0x3557d8=this['_suggestionFactory'][_0x8bed('0xe3')](_0x8bed('0x1b'),_0x1d8350,_0x8bed('0x12e'));for(const _0x1deefd of this[_0x8bed('0xbc')]())if(_0x1deefd['author']['id']==_0x1fc514['id']&&_0x8bed('0x1b')==_0x1deefd[_0x8bed('0xbb')]&&_0x1deefd[_0x8bed('0x0')]==_0x1d8350&&(_0x3557d8(_0x1deefd[_0x8bed('0x34')](),_0x2d7d90)||_0x3557d8(_0x2d7d90,_0x1deefd['getRanges']()))){for(const _0x5e6936 of _0x2d7d90)_0x1deefd[_0x8bed('0xbf')](_0x5e6936);return _0x1deefd;}for(const _0x5ad5f2 of _0x2d7d90)for(const {suggestion:_0x3aea45,meta:_0x329911}of this['_findSuggestions'](_0x5ad5f2,'insertion')){if(!_0x329911['isOwn'])continue;let _0x4f244b=!0x0;for(const _0x4d7cea of _0x3aea45[_0x8bed('0x34')]())for(const _0x5566ff of _0x2d7d90)if(!_0x4d7cea[_0x8bed('0x72')](_0x5566ff)){_0x4f244b=!0x1;break;}if(_0x4f244b)return _0x3aea45;}const _0x2a698f=_0x91d85(),_0x4c9cf8=_0x1fc514['id'],_0x4c3f24=_0x8bed('0x2d')+_0x1d8350,_0x3c13f5=this[_0x8bed('0x1')]({'id':_0x2a698f,'type':_0x4c3f24,'createdAt':new Date(),'authorId':_0x4c9cf8,'attributes':_0x2c7374});for(const _0x1c463b of _0x2d7d90)this[_0x8bed('0x24')](_0x4c3f24,_0x2a698f,_0x4c9cf8,_0x1c463b,_0x428f40[_0x8bed('0x12c')]());return _0x3c13f5;}[_0x8bed('0xb2')](_0x4bd4b1,_0x496c31,_0x1024f5=null,_0x17c508={}){if(_0x1024f5=_0x1024f5||St(_0x496c31),_0x4bd4b1[_0x8bed('0x30')])return;const _0x5115e8=this[_0x8bed('0x131')][_0x8bed('0x6d')]['get'](_0x8bed('0x37'))['me'],_0x2f6476=[];for(const {suggestion:_0x4bfde3,meta:_0x1bde9f}of this['_findSuggestions'](_0x4bd4b1,_0x8bed('0x1b')))_0x1bde9f['isOwn']&&!_0x1bde9f[_0x8bed('0x83')]&&_0x2f6476[_0x8bed('0xca')](..._0x4bfde3[_0x8bed('0x34')]());const _0x4c7637=function(_0x390d39,_0x18fb39){const _0x11ff17=[];for(const _0x385cdc of _0x18fb39){const _0x2ec533=_0x390d39[_0x8bed('0x12b')](_0x385cdc);_0x2ec533&&_0x11ff17[_0x8bed('0xca')](_0x2ec533);}return _0x11ff17;}(_0x4bd4b1,_0x2f6476),_0x554eb4=function(_0x588dba,_0x31c345){const _0x51b0f5=[_0x588dba];for(const _0x237e6f of _0x31c345){let _0x37571c=0x0;for(;_0x37571c<_0x51b0f5['length'];){const _0x81ced=_0x51b0f5[_0x37571c]['getDifference'](_0x237e6f);_0x51b0f5[_0x8bed('0x2e')](_0x37571c,0x1,..._0x81ced),_0x37571c+=_0x81ced[_0x8bed('0xeb')];}}return _0x51b0f5;}(_0x4bd4b1,_0x2f6476);_0x4c7637[_0x8bed('0xeb')]&&this[_0x8bed('0x4e')][_0x8bed('0x65')](()=>{for(const _0x15de5b of _0x4c7637){const _0x2665ea=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0xf2'),_0x1024f5,_0x8bed('0x121'));this[_0x8bed('0xb0')](()=>_0x2665ea([_0x15de5b],_0x496c31,_0x17c508));}});for(const _0x284fff of _0x554eb4){let _0x583c8d=null,_0x24e352=_0x284fff[_0x8bed('0xc8')],_0x4cd269=_0x284fff[_0x8bed('0xda')];for(const {suggestion:_0x47d872,meta:_0x20102c}of this[_0x8bed('0x5c')](_0x284fff,_0x8bed('0xf2'))){if(!_0x20102c[_0x8bed('0x32')])continue;if(_0x47d872['subType']!=_0x1024f5)continue;const _0x51357d=_0x47d872[_0x8bed('0xd1')]();if(_0x51357d['containsRange'](_0x284fff,!0x0))return;_0x24e352=_0x24e352['isBefore'](_0x51357d['start'])?_0x24e352:_0x51357d['start'],_0x4cd269=_0x4cd269[_0x8bed('0x48')](_0x51357d[_0x8bed('0xda')])?_0x4cd269:_0x51357d[_0x8bed('0xda')],_0x583c8d?_0x51357d['start']['isBefore'](_0x583c8d[_0x8bed('0xd1')]()[_0x8bed('0xc8')])?(_0x583c8d[_0x8bed('0xf3')](),_0x583c8d=_0x47d872):_0x47d872[_0x8bed('0xf3')]():_0x583c8d=_0x47d872;}const _0x1cbfaa=this['_model'][_0x8bed('0x79')](_0x24e352,_0x4cd269);if(_0x583c8d)this['_setSuggestionRange'](_0x583c8d,_0x1cbfaa);else{const _0xaeda90=_0x91d85(),_0x3ae031=_0x5115e8['id'];this[_0x8bed('0x1')]({'id':_0xaeda90,'type':_0x8bed('0x66')+_0x1024f5,'data':_0x496c31,'createdAt':new Date(),'authorId':_0x3ae031,'attributes':_0x17c508}),this[_0x8bed('0x24')](_0x8bed('0x66')+_0x1024f5,_0xaeda90,_0x3ae031,_0x1cbfaa);}}}['markBlockFormat'](_0x115765,_0x240ba0,_0x245987=[],_0x3ffce7=null,_0x2a5a2b={}){_0x240ba0['formatGroupId']||(_0x240ba0[_0x8bed('0xab')]=_0x240ba0[_0x8bed('0xea')]),_0x240ba0['multipleBlocks']=_0x115765['is'](_0x8bed('0x96')),_0x3ffce7=_0x3ffce7||St(_0x240ba0);const _0x3bfcd1=_0x245987['map'](_0x46a0b1=>vt(_0x46a0b1,this['_model'])),_0x2783c1=_0x115765['is']('range')?_0x115765:vt(_0x115765,this[_0x8bed('0x4e')]);_0x3bfcd1[_0x8bed('0xca')](_0x2783c1);let _0x5ac88d=!0x0;for(const _0x59c70e of _0x3bfcd1)if(!this[_0x8bed('0x10')](_0x59c70e)){_0x5ac88d=!0x1;break;}if(_0x5ac88d){const _0x515875=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0xa9'),_0x3ffce7,'accept');return void this['forceDefaultExecution'](()=>_0x515875([_0x2783c1],_0x240ba0,_0x2a5a2b));}let _0x35eecf=null,_0x277149=_0x2783c1['start'],_0x62c14=_0x2783c1['end'];for(const {suggestion:_0x16d65a,meta:_0x143d01}of this[_0x8bed('0x5c')](_0x2783c1,_0x8bed('0xa9'))){if(!_0x143d01[_0x8bed('0x32')]||_0x143d01[_0x8bed('0x1e')]||_0x143d01['containsRangeInObject']||_0x143d01['isInsideObject'])continue;if(_0x16d65a[_0x8bed('0xa8')][_0x8bed('0xab')]!=_0x240ba0[_0x8bed('0xab')])continue;const _0x2ae013=_0x16d65a[_0x8bed('0xd1')]();if(_0x16d65a[_0x8bed('0x0')]==_0x3ffce7){if(_0x2ae013[_0x8bed('0x72')](_0x2783c1,!0x0))return;_0x277149=_0x277149['isBefore'](_0x2ae013[_0x8bed('0xc8')])?_0x277149:_0x2ae013[_0x8bed('0xc8')],_0x62c14=_0x62c14[_0x8bed('0x48')](_0x2ae013[_0x8bed('0xda')])?_0x62c14:_0x2ae013[_0x8bed('0xda')],_0x35eecf?_0x2ae013['start']['isBefore'](_0x35eecf['getFirstRange']()['start'])?(_0x35eecf[_0x8bed('0xf3')](),_0x35eecf=_0x16d65a):_0x16d65a[_0x8bed('0xf3')]():_0x35eecf=_0x16d65a;}else{const _0x532671=_0x2783c1[_0x8bed('0x12b')](_0x2ae013);this[_0x8bed('0x119')](_0x16d65a,_0x532671);}}const _0x288a8e=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'],_0x3ea002=_0x91d85(),_0x361aa3=_0x288a8e['id'];_0x35eecf?this[_0x8bed('0x10b')](_0x35eecf,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x277149,_0x62c14)):(this[_0x8bed('0x1')]({'id':_0x3ea002,'type':_0x8bed('0xb4')+_0x3ffce7,'data':_0x240ba0,'createdAt':new Date(),'authorId':_0x361aa3,'attributes':_0x2a5a2b}),this['_addSuggestionMarker']('formatBlock:'+_0x3ffce7,_0x3ea002,_0x361aa3,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x277149,_0x62c14)));}['markMultiRangeBlockFormat'](_0x1694d3,_0x50d644,_0x535708=[],_0x13f7ec=null,_0xdf36ab={}){_0x50d644[_0x8bed('0xab')]||(_0x50d644[_0x8bed('0xab')]=_0x50d644[_0x8bed('0xea')]),_0x50d644[_0x8bed('0x64')]=!0x1,_0x13f7ec=_0x13f7ec||St(_0x50d644);const _0x4a61fc=_0x535708[_0x8bed('0x84')](_0x1c3749=>vt(_0x1c3749,this[_0x8bed('0x4e')])),_0x2eff0f=_0x1694d3[_0x8bed('0x84')](_0x2da0dd=>vt(_0x2da0dd,this[_0x8bed('0x4e')]));_0x4a61fc[_0x8bed('0xca')](..._0x2eff0f);let _0x3f0321=!0x0;for(const _0x3c471d of _0x4a61fc)if(!this['_rangeIsInLocalUserInsertion'](_0x3c471d)){_0x3f0321=!0x1;break;}if(_0x3f0321){const _0x1860f9=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0xa9'),_0x13f7ec,'accept');return void this[_0x8bed('0xb0')](()=>_0x1860f9(_0x2eff0f,_0x50d644,_0xdf36ab));}const _0x369644=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'];for(const _0x314ddf of this['getSuggestions']()){if(_0x314ddf[_0x8bed('0xe8')]['id']!=_0x369644['id'])continue;if(_0x8bed('0xa9')!=_0x314ddf[_0x8bed('0xbb')]||_0x314ddf['data'][_0x8bed('0xab')]!=_0x50d644[_0x8bed('0xab')])continue;const _0x97804f=_0x314ddf[_0x8bed('0x0')]==_0x13f7ec;for(let _0x279bee=0x0;_0x279bee<_0x2eff0f[_0x8bed('0xeb')];_0x279bee++){const _0x595e75=_0x2eff0f[_0x279bee];for(const _0x458a5c of _0x314ddf[_0x8bed('0x128')]()){const _0x58f419=_0x458a5c['getRange']();if(_0x595e75['isEqual'](_0x58f419)){_0x97804f?(_0x2eff0f[_0x8bed('0x2e')](_0x279bee,0x1),_0x279bee--):_0x314ddf[_0x8bed('0x7c')](_0x458a5c['name']);break;}}}}if(0x0==_0x2eff0f[_0x8bed('0xeb')])return;const _0x23752c=this['_suggestionFactory'][_0x8bed('0xe3')]('formatBlock',_0x13f7ec,'join');for(const _0x191182 of this[_0x8bed('0xbc')]())if(_0x191182['author']['id']==_0x369644['id']&&_0x8bed('0xa9')==_0x191182['type']&&_0x191182[_0x8bed('0xa8')][_0x8bed('0xab')]==_0x50d644[_0x8bed('0xab')]&&_0x191182[_0x8bed('0x0')]==_0x13f7ec&&(_0x23752c(_0x191182[_0x8bed('0x34')](),_0x2eff0f)||_0x23752c(_0x2eff0f,_0x191182[_0x8bed('0x34')]()))){for(const _0x98dccc of _0x2eff0f)_0x191182[_0x8bed('0xbf')](_0x98dccc);return _0x191182;}const _0x5ab4f7=_0x91d85(),_0x58fcd7=_0x369644['id'],_0x1c6c44=_0x8bed('0xb4')+_0x13f7ec,_0x3c833f=this[_0x8bed('0x1')]({'id':_0x5ab4f7,'type':_0x1c6c44,'data':_0x50d644,'createdAt':new Date(),'authorId':_0x58fcd7,'attributes':_0xdf36ab});for(const _0x3de3d0 of _0x2eff0f)this[_0x8bed('0x24')](_0x1c6c44,_0x5ab4f7,_0x58fcd7,_0x3de3d0,_0x428f40['getMultiRangeId']());return _0x3c833f;}['markDeletion'](_0x44ef3e,_0x2c245f=null,_0x3f72a2={}){if(_0x44ef3e[_0x8bed('0x30')])return null;const _0x611d4=this[_0x8bed('0x131')][_0x8bed('0x6d')]['get'](_0x8bed('0x37'))['me'],_0xb80f98=new _0x533e76(_0x44ef3e[_0x8bed('0xc8')],_0x44ef3e[_0x8bed('0xda')]);for(const {suggestion:_0x49b068,meta:_0xb6276}of this[_0x8bed('0x5c')](_0xb80f98,_0x8bed('0x1b')))if(_0xb6276['isOwn']&&!_0xb6276[_0x8bed('0x1e')]){if(_0x49b068[_0x8bed('0x7d')]){const _0x4aaa86=_0x49b068[_0x8bed('0x34')]()[_0x8bed('0x39')](_0x4ee052=>_0x8bed('0x100')!=_0x4ee052[_0x8bed('0x10a')]['rootName']);_0x4aaa86[_0x8bed('0xc4')](_0xa0f6e3=>_0xb80f98[_0x8bed('0x72')](_0xa0f6e3,!0x0))&&_0x49b068['discard']();if(_0x4aaa86[_0x8bed('0xe5')](_0xa9829f=>_0xa9829f[_0x8bed('0x72')](_0xb80f98,!0x0))){const _0x147385=this['_suggestionFactory']['getSuggestionCallback'](_0x8bed('0x61'),_0x2c245f,'accept');return this[_0x8bed('0xb0')](()=>_0x147385([_0xb80f98],null,_0x3f72a2)),null;}}else{const _0x2ee5a7=_0xb80f98[_0x8bed('0x12b')](_0x49b068[_0x8bed('0xd1')]());_0x49b068[_0x8bed('0xc9')]([_0x2ee5a7],null,_0x3f72a2);}}if(_0xb80f98[_0x8bed('0x1f')](),_0xb80f98[_0x8bed('0x30')]||_0x8bed('0x100')==_0xb80f98[_0x8bed('0x10a')][_0x8bed('0xdc')])return null;let _0x31ee3a=null,_0x5caa1b=_0xb80f98[_0x8bed('0xc8')],_0x4dcfe4=_0xb80f98[_0x8bed('0xda')];for(const {suggestion:_0x28a1f5,meta:_0x1ad560}of this[_0x8bed('0x5c')](_0xb80f98,_0x8bed('0x61')))if(_0x1ad560[_0x8bed('0x32')]){if(_0x28a1f5['isMultiRange']){let _0x1a7702=!0x0;for(const _0x1a61f0 of _0x28a1f5['getRanges']()){if(_0x1a61f0['containsRange'](_0xb80f98,!0x0))return _0x28a1f5;_0xb80f98[_0x8bed('0x72')](_0x1a61f0)||(_0x1a7702=!0x1);}_0x1a7702&&_0x28a1f5['discard']();}else{const _0x4bcdc3=_0x28a1f5[_0x8bed('0xd1')]();if(_0x4bcdc3[_0x8bed('0x72')](_0xb80f98,!0x0))return _0x28a1f5;_0x5caa1b=_0x5caa1b[_0x8bed('0x57')](_0x4bcdc3[_0x8bed('0xc8')])?_0x5caa1b:_0x4bcdc3[_0x8bed('0xc8')],_0x4dcfe4=_0x4dcfe4[_0x8bed('0x48')](_0x4bcdc3['end'])?_0x4dcfe4:_0x4bcdc3[_0x8bed('0xda')],_0x31ee3a?_0x4bcdc3['start'][_0x8bed('0x57')](_0x31ee3a[_0x8bed('0xd1')]()['start'])?(_0x31ee3a[_0x8bed('0xf3')](),_0x31ee3a=_0x28a1f5):_0x28a1f5[_0x8bed('0xf3')]():_0x31ee3a=_0x28a1f5;}}if(_0x31ee3a)return this[_0x8bed('0x10b')](_0x31ee3a,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x5caa1b,_0x4dcfe4)),_0x31ee3a;{const _0xd69e7f=_0x91d85(),_0x18f06b=this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x5caa1b,_0x4dcfe4),_0x16eada=_0x611d4['id'],_0x5b99e4=_0x2c245f?_0x8bed('0x68')+_0x2c245f:_0x8bed('0x61'),_0x4aa9ea=this['_setSuggestionData']({'id':_0xd69e7f,'type':_0x5b99e4,'createdAt':new Date(),'authorId':_0x16eada,'attributes':_0x3f72a2});return this[_0x8bed('0x24')](_0x5b99e4,_0xd69e7f,_0x16eada,_0x18f06b),_0x4aa9ea;}}['markMultiRangeDeletion'](_0xaaada4,_0x1b4bb3=_0x8bed('0x95'),_0x5a84dc={}){const _0x30dfea=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'],_0x212c87=_0xaaada4['map'](_0xb3c975=>new _0x533e76(_0xb3c975[_0x8bed('0xc8')],_0xb3c975['end'])),_0x367fdf=new Set();for(const _0x4ae54f of _0x212c87)for(const {suggestion:_0x4807cb,meta:_0x4f5221}of this[_0x8bed('0x5c')](_0x4ae54f,_0x8bed('0x1b')))_0x4f5221[_0x8bed('0x32')]&&!_0x4f5221[_0x8bed('0x1e')]&&_0x367fdf[_0x8bed('0x9a')](_0x4807cb);for(const _0x1a3764 of _0x367fdf)if(_0x1a3764['isMultiRange']){const _0x434949=_0x1a3764[_0x8bed('0x34')]();(!_0x1a3764[_0x8bed('0x25')]||!_0x1a3764[_0x8bed('0x25')][_0x8bed('0xcd')])&&(_0x434949[_0x8bed('0xc4')](_0x16497e=>_0x212c87[_0x8bed('0xe5')](_0x520a23=>_0x520a23[_0x8bed('0x72')](_0x16497e,!0x0)))&&_0x1a3764['discard']());if(_0x212c87['every'](_0x4373cd=>_0x434949[_0x8bed('0xe5')](_0x420c=>_0x420c[_0x8bed('0x72')](_0x4373cd,!0x0)))){const _0x318935=this[_0x8bed('0xf5')][_0x8bed('0xe3')]('deletion',_0x1b4bb3,_0x8bed('0x121'));return this['forceDefaultExecution'](()=>_0x318935(_0xaaada4,null,_0x5a84dc)),null;}}else{const _0x3bf636=_0x1a3764['getFirstRange']();_0x212c87[_0x8bed('0xe5')](_0xfefb58=>_0xfefb58[_0x8bed('0x72')](_0x3bf636,!0x0))&&_0x1a3764[_0x8bed('0x44')]();if(_0x212c87[_0x8bed('0xc4')](_0x36fa03=>_0x3bf636[_0x8bed('0x72')](_0x36fa03,!0x0))){const _0x4739a9=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0x61'),_0x1b4bb3,_0x8bed('0x121'));return this[_0x8bed('0xb0')](()=>_0x4739a9(_0x212c87,null,_0x5a84dc)),null;}}const _0x4482eb=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0x8bed('0x61'),_0x1b4bb3,_0x8bed('0x12e'));let _0x177095=null;for(const _0xdb21bd of this[_0x8bed('0xbc')]())if(_0xdb21bd[_0x8bed('0xe8')]['id']==_0x30dfea['id']&&_0xdb21bd[_0x8bed('0xcf')]&&'deletion'==_0xdb21bd[_0x8bed('0xbb')]&&_0xdb21bd[_0x8bed('0x0')]==_0x1b4bb3&&(_0x4482eb(_0xdb21bd[_0x8bed('0x34')](),_0x212c87)||_0x4482eb(_0x212c87,_0xdb21bd[_0x8bed('0x34')]()))){if(_0x177095){if(_0xdb21bd[_0x8bed('0x17')]&&_0xdb21bd[_0x8bed('0x17')]['length'])continue;for(const _0x1fb40a of _0xdb21bd[_0x8bed('0x34')]())_0x177095[_0x8bed('0x115')](_0x1fb40a)||_0x177095['addRange'](_0x1fb40a);_0xdb21bd[_0x8bed('0xf3')]();}else{_0x177095=_0xdb21bd;for(const _0x12c199 of _0x212c87)_0xdb21bd['isIntersectingWithRange'](_0x12c199)||_0xdb21bd[_0x8bed('0xbf')](_0x12c199);}}if(_0x177095)return _0x177095;_0x367fdf[_0x8bed('0x76')]();for(const _0x50a234 of _0x212c87)for(const {suggestion:_0x5c74e8,meta:_0x2f68ee}of this[_0x8bed('0x5c')](_0x50a234,_0x8bed('0x61')))_0x2f68ee['isOwn']&&_0x367fdf[_0x8bed('0x9a')](_0x5c74e8);for(const _0x4810c2 of _0x367fdf){const _0x5dee3e=_0x4810c2[_0x8bed('0x34')]();if(!_0x5a84dc||!_0x5a84dc['skipNestingCheck']){if(_0x212c87[_0x8bed('0xc4')](_0x517157=>_0x5dee3e[_0x8bed('0xe5')](_0x3a39ba=>_0x3a39ba[_0x8bed('0x72')](_0x517157,!0x0))))return _0x4810c2;}(!_0x4810c2[_0x8bed('0x25')]||!_0x4810c2[_0x8bed('0x25')][_0x8bed('0xcd')])&&(_0x5dee3e['every'](_0x44229a=>_0x212c87[_0x8bed('0xe5')](_0x231cde=>_0x231cde[_0x8bed('0x72')](_0x44229a,!0x0)))&&_0x4810c2['discard']());}const _0x4ec783=_0x91d85(),_0x326f7c=_0x30dfea['id'],_0xaec05c=_0x8bed('0x68')+_0x1b4bb3,_0x182042=this[_0x8bed('0x1')]({'id':_0x4ec783,'type':_0xaec05c,'createdAt':new Date(),'authorId':_0x326f7c,'attributes':_0x5a84dc});for(const _0x36327a of _0x212c87)_0x36327a[_0x8bed('0x1f')](),_0x36327a[_0x8bed('0x30')]||_0x8bed('0x100')==_0x36327a[_0x8bed('0x10a')][_0x8bed('0xdc')]||this['_addSuggestionMarker'](_0xaec05c,_0x4ec783,_0x326f7c,_0x36327a,_0x428f40[_0x8bed('0x12c')]());return _0x182042;}[_0x8bed('0x10b')](_0x4bc6b8,_0x154160){const _0x47b37d=_0x4bc6b8[_0x8bed('0xd4')]();this['_model']['change'](_0x2bcfab=>{_0x2bcfab[_0x8bed('0x9')](_0x47b37d,{'range':_0x154160});});}[_0x8bed('0x116')](_0x26c7cd){const _0x1b3a76=_0x26c7cd['id'],_0x1f9cce=this[_0x8bed('0x131')][_0x8bed('0x8f')][_0x8bed('0x4d')](_0x8bed('0x52'));this[_0x8bed('0x31')][_0x8bed('0x123')](_0x1b3a76)||this[_0x8bed('0x31')][_0x8bed('0x120')]({'channelId':_0x1f9cce,'threadId':_0x1b3a76});const _0x21a0df=this[_0x8bed('0x31')][_0x8bed('0xc1')](_0x1b3a76);_0x21a0df[_0x8bed('0x9e')](_0x8bed('0x8e')),_0x21a0df['isRemovable']=!0x1,_0x26c7cd['commentThread']=_0x21a0df;}[_0x8bed('0xbe')](_0x1dc3d6,_0x24ecd5,_0xa2dd84,_0x1da732){if(_0x1dc3d6[_0x8bed('0xbb')]!=_0x24ecd5||_0x1dc3d6[_0x8bed('0x0')]!=_0xa2dd84||_0x1dc3d6['author']['id']!=_0x1da732)throw this['editor'][_0x8bed('0xd7')]('track-changes-suggestion-data-mismatch'),new _0x210547(_0x8bed('0xdb'),this);}['_cutOutSuggestionMarker'](_0x4a6618,_0x399f09){const _0x50f564=_0x4a6618['getFirstRange']();if(_0x399f09['isEqual'](_0x50f564))_0x4a6618[_0x8bed('0xf3')]();else{if(_0x50f564[_0x8bed('0x72')](_0x399f09)){const _0x490ac3=this['_model'][_0x8bed('0x114')](_0x399f09['start'][_0x8bed('0x27')],'end');this['_setSuggestionRange'](_0x4a6618,this[_0x8bed('0x4e')]['createRange'](_0x50f564[_0x8bed('0xc8')],_0x490ac3));const _0x306a4a=_0x91d85(),_0x1c8b16=_0x4a6618[_0x8bed('0xe8')]['id'],_0x5f0ec6=_0x4a6618[_0x8bed('0xbb')]+':'+_0x4a6618[_0x8bed('0x0')];this['_setSuggestionData']({'id':_0x306a4a,'type':_0x5f0ec6,'createdAt':new Date(),'authorId':_0x1c8b16,'data':_0x4a6618[_0x8bed('0xa8')],'attributes':_0x4a6618[_0x8bed('0x25')]});const _0x2a0791=this[_0x8bed('0x4e')][_0x8bed('0x114')](_0x399f09[_0x8bed('0xda')]['parent'],'after'),_0xa18d92=this['_model'][_0x8bed('0x79')](_0x2a0791,_0x50f564[_0x8bed('0xda')]);this['_addSuggestionMarker'](_0x5f0ec6,_0x306a4a,_0x1c8b16,_0xa18d92);}else{if(_0x50f564[_0x8bed('0x67')](_0x399f09['start'])){const _0x79e34c=this[_0x8bed('0x4e')][_0x8bed('0x114')](_0x399f09[_0x8bed('0xc8')]['nodeBefore'],_0x8bed('0xda'));this['_setSuggestionRange'](_0x4a6618,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x50f564[_0x8bed('0xc8')],_0x79e34c));}else{const _0x3c63d3=this[_0x8bed('0x4e')][_0x8bed('0x114')](_0x399f09[_0x8bed('0xda')][_0x8bed('0x1c')],_0x8bed('0x5a'));this[_0x8bed('0x10b')](_0x4a6618,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x3c63d3,_0x50f564['end']));}}}}[_0x8bed('0x10')](_0x4e08a7){for(const {suggestion:_0x37a4f1,meta:_0x4f2740}of this['_findSuggestions'](_0x4e08a7,_0x8bed('0x1b'))){if(!_0x4f2740[_0x8bed('0x32')])continue;const _0x338f35=_0x37a4f1[_0x8bed('0x34')]();for(const _0x1e1674 of _0x338f35)if(!_0x4e08a7[_0x8bed('0xe6')](_0x1e1674)[_0x8bed('0xeb')])return!0x0;}return!0x1;}[_0x8bed('0x2f')](_0xeb9c95){const _0x39e9f5=this[_0x8bed('0x131')][_0x8bed('0x6d')][_0x8bed('0x4d')]('Users')[_0x8bed('0x103')](_0xeb9c95);if(!_0x39e9f5)throw new _0x210547('track-changes-user-not-found',this);return _0x39e9f5;}['_createSuggestion'](_0x4caa79,_0x284ba6,_0x4615da,_0x3d7866){const _0x16ce90=this[_0x8bed('0x2f')](_0x3d7866),_0x4fcb6a=this['_suggestionFactory']['buildSuggestion'](_0x4caa79,_0x284ba6,_0x4615da,_0x16ce90,_0x101ae2=>this[_0x8bed('0x60')](_0x4615da,{'attributes':_0x101ae2}));return this[_0x8bed('0x94')](_0x4fcb6a,_0x8bed('0x121'),()=>{this[_0x8bed('0x60')](_0x4615da,{'state':_0x8bed('0xc2')});},{'priority':_0x8bed('0xf')}),this[_0x8bed('0x94')](_0x4fcb6a,_0x8bed('0x44'),()=>{this[_0x8bed('0x60')](_0x4615da,{'state':_0x8bed('0x11b')});},{'priority':'high'}),this[_0x8bed('0x82')][_0x8bed('0xec')](_0x4615da,_0x4fcb6a),this[_0x8bed('0x6')][_0x8bed('0xec')](_0x4fcb6a,_0x8bed('0xdd')),_0x4fcb6a;}[_0x8bed('0x8a')](_0x7dce81){const _0x99dbda=_0x7dce81[_0x8bed('0xe')](':');return{'group':_0x99dbda[0x0],'type':_0x99dbda[0x1],'subType':_0x99dbda[_0x8bed('0xeb')]>=0x5?_0x99dbda[0x2]:null,'id':_0x99dbda['length']<0x5?_0x99dbda[0x2]:_0x99dbda[0x3],'authorId':_0x99dbda[_0x8bed('0xeb')]<0x5?_0x99dbda[0x3]:_0x99dbda[0x4],'markerCount':0x6==_0x99dbda[_0x8bed('0xeb')]?_0x99dbda[0x5]:null};}[_0x8bed('0x122')](_0x34f29d,_0x36daa9,_0x156333){const _0x4770ef=_0x34f29d[_0x8bed('0xd1')](),_0x5a2c59=_0x4770ef['start'],_0x7b7bd7=_0x4770ef[_0x8bed('0xda')];this['_setSuggestionRange'](_0x34f29d,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x5a2c59,_0x36daa9));const _0x10d867=_0x91d85(),_0x3060b2=_0x34f29d[_0x8bed('0xe8')]['id'],_0xa30eda=_0x34f29d[_0x8bed('0xbb')]+(_0x34f29d[_0x8bed('0x0')]?':'+_0x34f29d['subType']:'');this[_0x8bed('0x1')]({'id':_0x10d867,'type':_0xa30eda,'createdAt':new Date(),'authorId':_0x3060b2,'originalSuggestionId':_0x34f29d['id'],'data':_0x34f29d[_0x8bed('0xa8')]}),'formatBlock'==_0x34f29d[_0x8bed('0xbb')]&&(_0x156333=this['_model'][_0x8bed('0x7b')](_0x156333[_0x8bed('0x1c')])),this[_0x8bed('0x24')](_0xa30eda,_0x10d867,_0x3060b2,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x156333,_0x7b7bd7));}[_0x8bed('0x5c')](_0x249cab,_0x9f50f1=null){const _0x2fd260=[],_0x1152f7=this[_0x8bed('0x4e')][_0x8bed('0x102')],_0xfe57f8=this['editor'][_0x8bed('0x6d')][_0x8bed('0x4d')](_0x8bed('0x37'))['me'];for(const _0x3c2479 of this['getSuggestions']())if(_0x3c2479[_0x8bed('0xcf')]&&(!_0x9f50f1||_0x3c2479['type']==_0x9f50f1))for(const _0xfdbc52 of _0x3c2479['getRanges']()){const _0x39e202=_0x249cab[_0x8bed('0xc8')]['isEqual'](_0xfdbc52['end'])||_0x249cab[_0x8bed('0xda')]['isEqual'](_0xfdbc52[_0x8bed('0xc8')]);if(_0x39e202||_0x249cab[_0x8bed('0x12b')](_0xfdbc52)){const _0x3dfe1d=_0x249cab[_0x8bed('0x72')](_0xfdbc52)&&wt(_0x1152f7,_0xfdbc52[_0x8bed('0xc8')],_0x249cab),_0x330fb4=_0xfdbc52[_0x8bed('0x72')](_0x249cab)&&wt(_0x1152f7,_0x249cab[_0x8bed('0xc8')],_0xfdbc52);_0x2fd260[_0x8bed('0xca')]({'suggestion':_0x3c2479,'meta':{'isOwn':_0xfe57f8==_0x3c2479[_0x8bed('0xe8')],'isNextTo':_0x39e202,'isInsideObject':_0x3dfe1d,'containsRangeInObject':_0x330fb4}});break;}}return _0x2fd260;}['_addSuggestionMarker'](_0x451602,_0x56db1a,_0x548015,_0x3861ae,_0x49d8f8=null){this[_0x8bed('0x4e')][_0x8bed('0x65')](_0x43613f=>{let _0x5853db=_0x8bed('0x89')+_0x451602+':'+_0x56db1a+':'+_0x548015;_0x49d8f8&&(_0x5853db=_0x5853db+':'+_0x49d8f8),_0x43613f[_0x8bed('0xe1')](_0x5853db,{'range':_0x3861ae,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x282458){const _0x52d8be=_0x282458['previous'],_0x4c8fbb=_0x282458[_0x8bed('0xb5')];_0x282458['previous']=null,null!=_0x52d8be&&(_0x52d8be[_0x8bed('0xb5')]=null),_0x282458[_0x8bed('0xb5')]=null,null!=_0x4c8fbb&&(_0x4c8fbb[_0x8bed('0x14')]=null),_0x8bed('0x10e')==this['_suggestionState']['get'](_0x282458)&&(this['_suggestionState'][_0x8bed('0xec')](_0x282458,_0x8bed('0xce')),this['fire'](_0x8bed('0x4b'),_0x282458,_0x52d8be,_0x4c8fbb));}[_0x8bed('0x1')](_0x524e62){const _0x439537=_0x524e62['id'],_0x16c396=this[_0x8bed('0x9c')](_0x524e62);if(this[_0x8bed('0xa7')]&&this[_0x8bed('0xa7')][_0x8bed('0xd9')]){const _0x27b100=this[_0x8bed('0x131')]['plugins'][_0x8bed('0x4d')](_0x8bed('0x125')),_0x28d869=_0x16c396[_0x8bed('0xb3')],_0x3c39d6=_0x16c396[_0x8bed('0x0')]?_0x16c396['type']+':'+_0x16c396[_0x8bed('0x0')]:_0x16c396['type'],_0x499258=this[_0x8bed('0x131')]['locale'],_0x54eed8=_0x27b100['add'](_0xf0b42e(_0x499258,_0x8bed('0x90'))),_0x2e61d4={'id':_0x439537,'type':_0x3c39d6,'hasComments':_0x28d869,'data':_0x524e62[_0x8bed('0xa8')]||null,'originalSuggestionId':_0x524e62[_0x8bed('0x92')]||null,'attributes':_0x16c396[_0x8bed('0x25')]};this[_0x8bed('0xa7')][_0x8bed('0xd9')](_0x2e61d4)[_0x8bed('0xb6')](_0xdb5c65=>{_0x16c396['_saved']=!0x0,_0x27b100[_0x8bed('0xf8')](_0x54eed8),_0xdb5c65&&_0xdb5c65[_0x8bed('0x3')]&&(this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x439537)['createdAt']=_0xdb5c65[_0x8bed('0x3')]);})['catch'](_0x25a9dc=>{throw _0x5aa693(_0x8bed('0x104')),this[_0x8bed('0x131')][_0x8bed('0x26')][_0x8bed('0x8d')]({'isUndoable':!0x1},()=>{_0x16c396[_0x8bed('0x44')]();}),_0x16c396[_0x8bed('0x8c')](),this[_0x8bed('0x82')][_0x8bed('0x4c')](_0x16c396['id']),this[_0x8bed('0x6')][_0x8bed('0x4c')](_0x16c396),_0x25a9dc;});}return _0x16c396;}[_0x8bed('0x60')](_0x15425a,_0x2a6eaa){const _0xfff615=this['editor']['plugins'][_0x8bed('0x4d')](_0x8bed('0x125')),_0x549839=this[_0x8bed('0x82')]['get'](_0x15425a);if(this[_0x8bed('0xa7')]&&this[_0x8bed('0xa7')]['updateSuggestion']){if(_0x549839[_0x8bed('0xe4')]){const _0x1e1854=_0xfff615['add'](_0xf0b42e(this[_0x8bed('0x131')][_0x8bed('0x12d')],'PENDING_ACTION_SUGGESTION'));this[_0x8bed('0xa7')][_0x8bed('0x12a')](_0x15425a,_0x2a6eaa)['then'](()=>{_0xfff615['remove'](_0x1e1854);});}else _0x549839['on'](_0x8bed('0xac'),()=>{this[_0x8bed('0x60')](_0x15425a,_0x2a6eaa);});}}['_getSuggestionData'](_0x5d17c1){if(!this[_0x8bed('0xa7')]||!this[_0x8bed('0xa7')][_0x8bed('0x38')])throw new _0x210547(_0x8bed('0xc0'),this);return this[_0x8bed('0xa7')][_0x8bed('0x38')](_0x5d17c1);}[_0x8bed('0x3a')](_0x56d1c6){const {id:_0x27c6e9,type:_0x506f1f,subType:_0xdcfb4b,authorId:_0x33b237}=this[_0x8bed('0x8a')](_0x56d1c6),_0x4b5050=this[_0x8bed('0x82')][_0x8bed('0x4d')](_0x27c6e9)||this['_createSuggestion'](_0x506f1f,_0xdcfb4b,_0x27c6e9,_0x33b237);switch(this[_0x8bed('0xbe')](_0x4b5050,_0x506f1f,_0xdcfb4b,_0x33b237),this[_0x8bed('0x6')][_0x8bed('0x4d')](_0x4b5050)){case _0x8bed('0xdd'):this[_0x8bed('0xf7')](_0x27c6e9)[_0x8bed('0xb6')](_0x1b06b9=>{let _0x412896=Promise['resolve']();_0x1b06b9['hasComments']&&(_0x412896=this[_0x8bed('0x31')][_0x8bed('0xf9')]({'channelId':this[_0x8bed('0x131')][_0x8bed('0x8f')][_0x8bed('0x4d')]('collaboration.channelId'),'threadId':_0x27c6e9})),_0x412896[_0x8bed('0xb6')](()=>{this[_0x8bed('0x9c')](_0x1b06b9)[_0x8bed('0xe4')]=!0x0;});}),this['_suggestionState'][_0x8bed('0xec')](_0x4b5050,_0x8bed('0xfc'));break;case'removed':this[_0x8bed('0x60')](_0x27c6e9,{'state':_0x8bed('0xae')});case'dataReady':this[_0x8bed('0x6')][_0x8bed('0xec')](_0x4b5050,'ready'),this[_0x8bed('0x16')](_0x8bed('0x105'),_0x4b5050);break;case'ready':this[_0x8bed('0x16')](_0x8bed('0x55'),_0x4b5050);}_0x4b5050['addMarkerName'](_0x56d1c6),this[_0x8bed('0x42')](_0x4b5050);}[_0x8bed('0x42')](_0xaf86ef){if(_0xaf86ef[_0x8bed('0x7d')])return;let _0x4dd9e8=!0x0,_0x146c31=!0x0;for(const _0x501270 of this[_0x8bed('0xbc')]()){if(_0x501270['isMultiRange'])continue;if(_0x501270==_0xaf86ef||!_0x501270[_0x8bed('0xcf')])continue;if(_0x501270['author']['id']!=_0xaf86ef[_0x8bed('0xe8')]['id'])continue;const _0x11334f=this[_0x8bed('0xf5')][_0x8bed('0xe3')](_0xaf86ef[_0x8bed('0xbb')],_0xaf86ef[_0x8bed('0x0')],_0x8bed('0xa6')),_0x34c5ef=this[_0x8bed('0xf5')]['getSuggestionCallback'](_0x501270[_0x8bed('0xbb')],_0x501270[_0x8bed('0x0')],'chain'),_0xeed1a6=_0x11334f(_0xaf86ef,_0x501270),_0x3d583f=_0x34c5ef(_0xaf86ef,_0x501270);_0xeed1a6&&_0x3d583f&&(_0xeed1a6[0x1][_0x8bed('0x17')]&&_0xeed1a6[0x1]['commentThread']['length']||(_0xeed1a6[0x0][_0x8bed('0xb5')]=_0xeed1a6[0x1],_0xeed1a6[0x1][_0x8bed('0x14')]=_0xeed1a6[0x0],_0xeed1a6[0x0]==_0xaf86ef?_0x146c31=!0x1:_0x4dd9e8=!0x1));}_0xaf86ef[_0x8bed('0x14')]&&_0x4dd9e8&&(_0xaf86ef[_0x8bed('0x14')][_0x8bed('0xb5')]=null,_0xaf86ef['previous']=null),_0xaf86ef[_0x8bed('0xb5')]&&_0x146c31&&(_0xaf86ef[_0x8bed('0xb5')][_0x8bed('0x14')]=null,_0xaf86ef[_0x8bed('0xb5')]=null);}[_0x8bed('0x53')](_0x172fed){for(const _0x1303ee of this[_0x8bed('0x82')][_0x8bed('0x77')]()){if(_0x1303ee==_0x172fed||!_0x1303ee[_0x8bed('0xcf')])continue;if(_0x1303ee[_0x8bed('0xbb')]!=_0x172fed[_0x8bed('0xbb')]||_0x1303ee[_0x8bed('0xe8')]['id']!=_0x172fed[_0x8bed('0xe8')]['id']||_0x1303ee[_0x8bed('0x0')]!=_0x172fed[_0x8bed('0x0')])continue;const _0x599c7b=this['_suggestionFactory'][_0x8bed('0xe3')](_0x172fed['type'],_0x172fed[_0x8bed('0x0')],_0x8bed('0x12e'));if(_0x599c7b(_0x1303ee['getRanges'](),_0x172fed[_0x8bed('0x34')]())){if(_0x172fed['commentThread']&&_0x172fed[_0x8bed('0x17')]['length'])continue;return this['_joinSuggestions'](_0x1303ee,_0x172fed),!0x0;}if(_0x599c7b(_0x172fed[_0x8bed('0x34')](),_0x1303ee[_0x8bed('0x34')]())){if(_0x1303ee[_0x8bed('0x17')]&&_0x1303ee['commentThread']['length'])continue;return this[_0x8bed('0x98')](_0x172fed,_0x1303ee),!0x0;}}return!0x1;}[_0x8bed('0x98')](_0x3b737a,_0xf3a7a0){if(_0x3b737a[_0x8bed('0x7d')])for(const _0x11263c of _0xf3a7a0['getRanges']())_0x3b737a[_0x8bed('0xbf')](_0x11263c);else{const _0x2cdee9=_0xf3a7a0[_0x8bed('0xd1')]()['end'];this[_0x8bed('0x10b')](_0x3b737a,this[_0x8bed('0x4e')][_0x8bed('0x79')](_0x3b737a[_0x8bed('0xd1')]()['start'],_0x2cdee9));}_0xf3a7a0[_0x8bed('0xf3')]();}}_0xf3e8ef(d,_0x199b9c);class kt{constructor(_0xe0f5b3){this[_0x8bed('0x21')]=_0xe0f5b3,this[_0x8bed('0x4e')]=_0xe0f5b3['model'],this[_0x8bed('0x12f')]=new Map(),this[_0x8bed('0x33')]=new Map(),this['_registerDefaultCallbacks']();}[_0x8bed('0xd2')](_0x44ef0d,_0x315516,_0x260aca,_0x4d9ed7,_0x329ef9){return new _0x428f40(this[_0x8bed('0x4e')],{'type':_0x44ef0d,'subType':_0x315516,'id':_0x260aca,'author':_0x4d9ed7,'onAttributesChange':_0x329ef9,'onAccept':(..._0xee789a)=>this[_0x8bed('0xe3')](_0x44ef0d,_0x315516,'accept')(..._0xee789a),'onDiscard':(..._0x24fcf5)=>this[_0x8bed('0xe3')](_0x44ef0d,_0x315516,_0x8bed('0x44'))(..._0x24fcf5)});}[_0x8bed('0x20')](_0x692feb,_0x366915,_0x3e949e,_0x1cf14a){const _0x1f16d7=_0x692feb+':'+_0x366915+':'+_0x3e949e;this['_customCallbacks'][_0x8bed('0xec')](_0x1f16d7,_0x1cf14a);}[_0x8bed('0xe3')](_0x1b1db6,_0x16668c,_0xe38cb0){const _0x3d7ffc=_0x1b1db6+':'+_0x16668c+':'+_0xe38cb0;return this[_0x8bed('0x12f')][_0x8bed('0x4d')](_0x3d7ffc)||this[_0x8bed('0x33')][_0x8bed('0x4d')](_0x1b1db6+':'+_0xe38cb0);}[_0x8bed('0x97')](){const _0x68ef13=()=>{},_0x3e1e95=_0x331747=>{_0x331747[_0x8bed('0x7e')]((_0x1cc5d9,_0x159e8e)=>_0x1cc5d9['start'][_0x8bed('0x57')](_0x159e8e['start'])?0x1:-0x1),this[_0x8bed('0x4e')][_0x8bed('0x65')](_0x937a6c=>{for(const _0x82d1fd of _0x331747){let _0x5c462a;_0x5c462a=_0x82d1fd[_0x8bed('0xda')][_0x8bed('0x58')]&&_0x82d1fd[_0x8bed('0xda')][_0x8bed('0x1c')]==_0x82d1fd['start']['nodeAfter']?_0x937a6c[_0x8bed('0x70')](_0x82d1fd[_0x8bed('0xc8')][_0x8bed('0x86')],'on'):_0x937a6c[_0x8bed('0x70')](_0x82d1fd),this[_0x8bed('0x4e')][_0x8bed('0x99')](_0x5c462a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1a11a9=(_0x10e3c5,_0x12c340)=>{this[_0x8bed('0x4e')][_0x8bed('0x65')](_0x4b428b=>{const {commandName:_0x3520d3,commandParams:_0x4dea19=[]}=_0x12c340,_0xebf3a0=_0x10e3c5[0x0];if(_0x8bed('0x100')==_0xebf3a0[_0x8bed('0x10a')][_0x8bed('0xdc')])return;const _0x4840a2=Array['from'](this[_0x8bed('0x4e')][_0x8bed('0xde')][_0x8bed('0xfe')][_0x8bed('0x34')]())[_0x8bed('0x84')](_0x445d41=>_0x533e76[_0x8bed('0xaa')](_0x445d41));yt(_0xebf3a0)?_0x4b428b[_0x8bed('0x85')](this[_0x8bed('0x4e')][_0x8bed('0x79')](_0xebf3a0[_0x8bed('0xda')])):_0x4b428b['setSelection'](_0xebf3a0);for(const _0x1d0ed1 of this['_editor'][_0x8bed('0x10f')][_0x8bed('0x10f')]())_0x1d0ed1[_0x8bed('0x59')]();_0x4dea19['push']({'forceDefaultExecution':!0x0}),this[_0x8bed('0x21')][_0x8bed('0x11a')](_0x3520d3,..._0x4dea19);const _0x44b02a=_0x4840a2[_0x8bed('0x39')](_0x287fdb=>_0x8bed('0x100')!=_0x287fdb[_0x8bed('0x10a')][_0x8bed('0xdc')]);_0x44b02a[_0x8bed('0xeb')]>0x0&&_0x4b428b[_0x8bed('0x85')](_0x44b02a);for(const _0x16664f of _0x4840a2)_0x16664f['detach']();});},_0x5ac0b5=(_0x247a29,_0x5b58c6)=>0x1==_0x247a29[_0x8bed('0xeb')]&&0x1==_0x5b58c6['length']&&_0x247a29[0x0][_0x8bed('0xda')][_0x8bed('0xcc')](_0x5b58c6[0x0]['start']),_0xcca1c9=(_0x3823d3,_0x653eb2)=>Dt(_0x3823d3,_0x653eb2,this[_0x8bed('0x4e')])?[_0x3823d3,_0x653eb2]:Dt(_0x653eb2,_0x3823d3,this[_0x8bed('0x4e')])?[_0x653eb2,_0x3823d3]:null;this['_defaultCallbacks'][_0x8bed('0xec')]('insertion:accept',_0x68ef13),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0xa'),_0x3e1e95),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x107'),_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x43'),_0xcca1c9),this[_0x8bed('0x33')]['set'](_0x8bed('0xf0'),_0x3e1e95),this[_0x8bed('0x33')]['set'](_0x8bed('0xff'),_0x68ef13),this['_defaultCallbacks']['set']('deletion:join',_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x6f'),_0xcca1c9),this['_defaultCallbacks'][_0x8bed('0xec')](_0x8bed('0x11'),_0x1a11a9),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x6c'),_0x68ef13),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x74'),_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')](_0x8bed('0x80'),_0x68ef13),this[_0x8bed('0x33')][_0x8bed('0xec')]('formatBlock:accept',_0x1a11a9),this['_defaultCallbacks'][_0x8bed('0xec')]('formatBlock:discard',_0x68ef13),this['_defaultCallbacks'][_0x8bed('0xec')](_0x8bed('0xaf'),_0x5ac0b5),this[_0x8bed('0x33')][_0x8bed('0xec')]('formatBlock:chain',_0x68ef13);}}function wt(_0x3f4adc,_0x3cf058,_0x1c81c6){for(const _0x23903f of _0x3cf058[_0x8bed('0x1c')][_0x8bed('0x54')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x23903f[_0x8bed('0x10a')]==_0x23903f)return!0x1;if(!_0x1c81c6['containsItem'](_0x23903f))return!0x1;if(_0x3f4adc[_0x8bed('0x3b')](_0x23903f)||_0x3f4adc['isLimit'](_0x23903f))return!0x0;}}function yt(_0x397269){return _0x397269[_0x8bed('0xda')][_0x8bed('0x1c')]==_0x397269[_0x8bed('0xc8')][_0x8bed('0x86')]&&_0x397269[_0x8bed('0xda')][_0x8bed('0x10c')];}function bt(_0x21ed2d,_0x319a8b,_0x263ff7,_0x1f6314){const _0x548a86=_0x292364=>!_0x292364[_0x8bed('0xad')]['is'](_0x8bed('0x129'))&&!_0x1f6314[_0x8bed('0x3b')](_0x292364[_0x8bed('0xad')]),_0x3742b3=_0x21ed2d[_0x8bed('0xc8')]['getLastMatchingPosition'](_0x548a86),_0x49bdb2=_0x21ed2d[_0x8bed('0xda')][_0x8bed('0xfb')](_0x548a86,{'direction':_0x8bed('0xc3')});return(!_0x21ed2d[_0x8bed('0xc8')]['isEqual'](_0x3742b3)||!_0x21ed2d['end']['isEqual'](_0x49bdb2))&&(_0x3742b3['isBefore'](_0x49bdb2)?_0x263ff7[_0x8bed('0x9')](_0x319a8b,{'range':_0x263ff7[_0x8bed('0x79')](_0x3742b3,_0x49bdb2)}):_0x263ff7[_0x8bed('0x7c')](_0x319a8b),!0x0);}function St(_0x234ecc){return _0x36dc3a(_0x234ecc);}function It(_0x2a322f){const _0x223460=_0x2a322f[_0x8bed('0xc8')][_0x8bed('0x86')];return _0x223460&&_0x223460['is']('element');}function vt(_0xee5a68,_0xf56a4a){const _0x455eb8=_0xf56a4a[_0x8bed('0x102')][_0x8bed('0x3b')](_0xee5a68)||_0xf56a4a[_0x8bed('0x102')]['isSelectable'](_0xee5a68);return _0xf56a4a['createRange'](_0xf56a4a[_0x8bed('0x114')](_0xee5a68,_0x8bed('0xd')),_0x455eb8?_0xf56a4a[_0x8bed('0x22')](_0xee5a68):_0xf56a4a[_0x8bed('0x114')](_0xee5a68,_0x8bed('0xda')));}function Dt(_0x2a4c3f,_0x35543d,_0x479c2a){const _0x3a61b5=_0x2a4c3f[_0x8bed('0xd1')](),_0x34f54f=_0x35543d[_0x8bed('0xd1')]();if(_0x3a61b5[_0x8bed('0xda')][_0x8bed('0xcc')](_0x34f54f[_0x8bed('0xc8')]))return!0x0;if(_0x2a4c3f[_0x8bed('0xbb')]!=_0x35543d['type'])return!0x1;if(!_0x3a61b5['end']['isTouching'](_0x34f54f[_0x8bed('0xc8')]))return!0x1;const _0x35b530=_0x479c2a['createRange'](_0x3a61b5[_0x8bed('0xda')],_0x34f54f[_0x8bed('0xc8')])['getWalker']();for(const _0x1da44a of _0x35b530)if([_0x8bed('0x2a'),_0x8bed('0x6e')][_0x8bed('0xa4')](_0x1da44a[_0x8bed('0xbb')])&&_0x479c2a['schema'][_0x8bed('0x109')](_0x1da44a[_0x8bed('0xad')]))return!0x1;return!0x0;}
|
package/src/trackchangesui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1625=['remove','commands','execute','trackChanges','PendingActions','view','suggestionUnloaded','values','value','getAllAdjacentSuggestions','has','discardAllSuggestions','buttonView','trackChanges.SuggestionThreadView','switchbutton','type','comments.maxCommentCharsWhenCollapsed','CommentsUI','from','delete','define','commandName','source','unbind','actionView','filter','focus','cancel','listenTo','getMarkerNames','get','change:activeAnnotations','activeMarkers','innerView','change:previous','getJoined','_descriptionFactory','TrackChangesEditing','keys','locale','isOn','getDescriptions','discardSelectedSuggestions','_disableComments','_destroyController','separator','length','refreshSelectedViews','clear','destroy','model','Track\x20changes','bind','plugins','push','some','Annotations','comments.maxCommentsWhenCollapsed','getFirstMarker','head','_debouncedHandlers','descriptionParts','Accept\x20all\x20suggestions','isEnabled','isMultiRange','isDirty','getRanges','suggestion-','getContainedElement','getRange','arrowView','config','EditorAnnotations','SuggestionThreadView','set','getSuggestion','pluginName','CommentsRepository','_suggestionToController','editing','add','trackChanges.disableComments','editor','comments.editorConfig','init','button','toMany','stopListening','previous','commentThread','acceptSelectedSuggestions','addSourceCollector','_viewToController','_createUIButton','map','PENDING_ACTION_SUGGESTION','getFirstRange','getByInnerView','_initializeController','_updateController','createAnnotationView','requires','reduce','toViewElement','Discard\x20all\x20selected\x20suggestions','isInContent','discardSuggestion','comments'];(function(_0x1ad1ea,_0x162572){const _0x417dcf=function(_0x2b8930){while(--_0x2b8930){_0x1ad1ea['push'](_0x1ad1ea['shift']());}};_0x417dcf(++_0x162572);}(_0x1625,0xd4));const _0x417d=function(_0x1ad1ea,_0x162572){_0x1ad1ea=_0x1ad1ea-0x0;let _0x417dcf=_0x1625[_0x1ad1ea];return _0x417dcf;};import{Plugin as _0x4d458a}from'ckeditor5/src/core';import{Collection as _0x2840d4}from'ckeditor5/src/utils';import{Model as _0x284193,SplitButtonView as _0x432863,createDropdown as _0x315563,addListToDropdown as _0x1976bc}from'ckeditor5/src/ui';import{Users as _0x40a97a,getDateTimeFormatter as _0x3c583d,getMarkerDomElement as _0x5af7e0}from'ckeditor5-collaboration/src/collaboration-core';import{debounce as _0x2624f1}from'lodash-es';import _0x52d57c from'./trackchangesediting';import _0x50e52b from'./ui/suggestioncontroller';import _0x46029d from'./ui/view/suggestionthreadview';import{getTranslation as _0x32166e}from'./utils/common-translations';import _0x196f67 from'../theme/icons/track-changes.svg';export default class m extends _0x4d458a{static get[_0x417d('0x69')](){return[_0x52d57c,_0x40a97a,_0x417d('0x51'),_0x417d('0x3c'),_0x417d('0x4c')];}static get[_0x417d('0x50')](){return'TrackChangesUI';}constructor(_0x21e426){super(_0x21e426),this['_suggestionToController']=new Map(),this[_0x417d('0x60')]=new Map(),this[_0x417d('0x40')]=new Map();const _0x761910=this[_0x417d('0x56')][_0x417d('0x4b')];_0x761910[_0x417d('0x18')](_0x417d('0x11'),_0x46029d),_0x761910['define'](_0x417d('0x55'),!0x1),this['_disableComments']=_0x761910['get']('trackChanges.disableComments');}[_0x417d('0x58')](){const _0x3a60ee=this['editor'],_0x4ed02b=_0x3a60ee[_0x417d('0x39')][_0x417d('0x22')](_0x52d57c),_0x32dfeb=_0x3a60ee[_0x417d('0x39')][_0x417d('0x22')](_0x417d('0x3c')),_0xba56f9=_0x3a60ee[_0x417d('0x39')]['get'](_0x417d('0x4c')),_0x2acf77=_0x3a60ee[_0x417d('0x39')]['get'](_0x417d('0x51'));_0x3a60ee['ui']['componentFactory'][_0x417d('0x54')](_0x417d('0x7'),_0x27f5c4=>this['_createUIButton'](_0x27f5c4)),_0xba56f9[_0x417d('0x5f')](()=>{const _0x22ec11=[];for(const [_0x32fa6f,_0x1c0631]of Array[_0x417d('0x16')](this[_0x417d('0x52')])){const _0xe1ee07=_0x32fa6f[_0x417d('0xd')](),_0x55bceb=[];for(const _0x3212d1 of _0xe1ee07){if(!_0x3212d1['isInContent'])continue;if(_0x3212d1[_0x417d('0x44')]){_0x55bceb[_0x417d('0x3a')](..._0x3212d1[_0x417d('0x46')]());continue;}const _0x1255f3=_0x3212d1[_0x417d('0x64')]();if(_0x55bceb[_0x417d('0x32')]>0x0){const _0x49c6ad=_0x55bceb[0x0][_0x417d('0x27')](_0x1255f3);if(_0x49c6ad){_0x55bceb[0x0]=_0x49c6ad;continue;}}_0x55bceb[_0x417d('0x3a')](_0x1255f3);}_0x22ec11[_0x417d('0x3a')]([_0x1c0631[_0x417d('0x9')],_0x55bceb]);}return _0x22ec11;}),this[_0x417d('0x20')](_0x4ed02b,'suggestionLoaded',(_0x4adb60,_0x2b21d5)=>{let _0x2dda3d=!0x1;const _0x18c9bb=_0x2624f1(_0x4859cf=>{_0x2dda3d||_0x4859cf?_0x2dda3d&&_0x4859cf&&(this[_0x417d('0x30')](_0x2b21d5),_0xba56f9[_0x417d('0x33')](),_0x2dda3d=!0x1):(this[_0x417d('0x66')](_0x2b21d5),_0xba56f9[_0x417d('0x33')](),_0x2dda3d=!0x0);},0xa);this[_0x417d('0x40')][_0x417d('0x4e')](_0x2b21d5,_0x18c9bb),this['listenTo'](_0x2b21d5,_0x417d('0x26'),(_0x595a09,_0x3ddc33,_0xce2ac4,_0x2d2b50)=>{_0x2b21d5[_0x417d('0x1')]&&(null==_0xce2ac4?(this[_0x417d('0x67')](_0x2d2b50[_0x417d('0x3f')]),_0x18c9bb(!0x1)):(this[_0x417d('0x67')](_0xce2ac4[_0x417d('0x3f')]),_0x18c9bb(!0x0)));}),null===_0x2b21d5[_0x417d('0x5c')]?_0x18c9bb(!0x1):this[_0x417d('0x67')](_0x2b21d5[_0x417d('0x3f')]);}),this[_0x417d('0x20')](_0x4ed02b,_0x417d('0xa'),(_0x5d1546,_0x2c9316,_0x27acbc)=>{this[_0x417d('0x5b')](_0x2c9316,_0x417d('0x26')),this['_debouncedHandlers']['get'](_0x2c9316)[_0x417d('0x1f')](),this[_0x417d('0x40')][_0x417d('0x17')](_0x2c9316);const _0x11f23b=_0x27acbc?_0x27acbc[_0x417d('0x3f')]:_0x2c9316,_0x4e175f=this[_0x417d('0x52')][_0x417d('0x22')](_0x11f23b);null!==_0x27acbc&&this[_0x417d('0x67')](_0x11f23b),null===_0x27acbc&&_0x4e175f&&this['_destroyController'](_0x2c9316);}),this[_0x417d('0x20')](_0x4ed02b,'suggestionChanged',(_0x1c4f6e,_0x5a7428)=>{this[_0x417d('0x67')](_0x5a7428);}),this[_0x417d('0x20')](_0x32dfeb,_0x417d('0x23'),(_0x35cf49,_0xbebe75,_0x3d55d0)=>{const _0x436939=Array[_0x417d('0x16')](_0x3d55d0,_0x40b4d3=>_0x40b4d3[_0x417d('0x25')])[_0x417d('0x1d')](_0x541197=>this[_0x417d('0x60')][_0x417d('0xe')](_0x541197)),_0x442bfa=[];for(const _0xc82691 of _0x436939){const _0x39bb39=this[_0x417d('0x60')][_0x417d('0x22')](_0xc82691)[_0x417d('0x36')][_0x417d('0xd')]();_0x442bfa['push'](..._0x39bb39[_0x417d('0x6a')]((_0xab00f1,_0x69c40d)=>[..._0xab00f1,..._0x69c40d[_0x417d('0x21')]()],[]));}_0x4ed02b[_0x417d('0x24')]=_0x442bfa;}),this[_0x417d('0x20')](_0x2acf77,'addComment',(_0x31ad55,{threadId:_0x1abd7b,isFromAdapter:_0x1ae6f2})=>{if(_0x1ae6f2||!_0x4ed02b['hasSuggestion'](_0x1abd7b))return;const _0x3fde5f=_0x4ed02b[_0x417d('0x4f')](_0x1abd7b);this[_0x417d('0x52')][_0x417d('0x22')](_0x3fde5f)['view'][_0x417d('0x1e')]();},{'priority':'lowest'});}[_0x417d('0x61')](_0x1dfbab){const _0x55e494=_0x315563(_0x1dfbab,_0x432863),_0x4f52ae=this[_0x417d('0x56')]['commands'][_0x417d('0x22')]('trackChanges'),_0x14d4d9=_0x32166e(_0x1dfbab,_0x417d('0x37'));_0x55e494[_0x417d('0x10')][_0x417d('0x4e')]({'tooltip':_0x14d4d9,'label':_0x14d4d9,'icon':_0x196f67}),_0x55e494[_0x417d('0x10')][_0x417d('0x38')]('isOn')['to'](_0x4f52ae,_0x417d('0xc')),_0x55e494[_0x417d('0x10')]['on']('execute',()=>_0x4f52ae[_0x417d('0x6')]());const _0x16daa4=new _0x2840d4(),_0x200f54=[{'type':_0x417d('0x12'),'model':{'withText':!0x0,'label':_0x14d4d9,'commandName':'trackChanges'}},{'type':_0x417d('0x31')},{'type':_0x417d('0x59'),'model':{'withText':!0x0,'label':_0x32166e(_0x1dfbab,_0x417d('0x42')),'commandName':'acceptAllSuggestions'}},{'type':_0x417d('0x59'),'model':{'withText':!0x0,'label':_0x32166e(_0x1dfbab,'Accept\x20all\x20selected\x20suggestions'),'commandName':_0x417d('0x5e')}},{'type':_0x417d('0x59'),'model':{'withText':!0x0,'label':_0x32166e(_0x1dfbab,'Discard\x20all\x20suggestions'),'commandName':_0x417d('0xf')}},{'type':'button','model':{'withText':!0x0,'label':_0x32166e(_0x1dfbab,_0x417d('0x0')),'commandName':_0x417d('0x2e')}}];for(const _0x2e4dcd of _0x200f54){const _0x1a72b9={'type':_0x2e4dcd[_0x417d('0x13')]};if(_0x2e4dcd[_0x417d('0x36')]){const _0x4098bd=new _0x284193(_0x2e4dcd['model']),_0x4ab166=this[_0x417d('0x56')][_0x417d('0x5')][_0x417d('0x22')](_0x4098bd[_0x417d('0x19')]);_0x4098bd['bind'](_0x417d('0x2c'),'isEnabled')['to'](_0x4ab166,_0x417d('0xc'),_0x417d('0x43')),_0x1a72b9['model']=_0x4098bd;}_0x16daa4['add'](_0x1a72b9);}_0x1976bc(_0x55e494,_0x16daa4);const _0x5e4e6f=_0x200f54[_0x417d('0x1d')](_0x46a3a8=>null!=_0x46a3a8[_0x417d('0x36')])[_0x417d('0x62')](_0x59dd3c=>this[_0x417d('0x56')][_0x417d('0x5')][_0x417d('0x22')](_0x59dd3c[_0x417d('0x36')][_0x417d('0x19')]));return _0x55e494[_0x417d('0x10')]['actionView'][_0x417d('0x1b')](_0x417d('0x43')),_0x55e494[_0x417d('0x10')][_0x417d('0x4a')][_0x417d('0x1b')](_0x417d('0x43')),_0x55e494[_0x417d('0x10')][_0x417d('0x1c')][_0x417d('0x38')](_0x417d('0x43'))['to'](_0x4f52ae,_0x417d('0x43')),_0x55e494[_0x417d('0x10')][_0x417d('0x4a')][_0x417d('0x38')](_0x417d('0x43'))[_0x417d('0x5a')](_0x5e4e6f,_0x417d('0x43'),(..._0x982d3a)=>_0x982d3a[_0x417d('0x3b')](_0x4fb4ea=>_0x4fb4ea)),_0x55e494['on'](_0x417d('0x6'),_0x364222=>this['editor']['execute'](_0x364222[_0x417d('0x1a')][_0x417d('0x19')])),_0x55e494;}[_0x417d('0x66')](_0x4ccd5f){const _0x4bd0c6=this[_0x417d('0x56')],_0x125137=_0x4bd0c6[_0x417d('0x4b')],_0x5b1e9f=_0x4bd0c6[_0x417d('0x39')][_0x417d('0x22')]('Annotations'),_0xb600e4=_0x4bd0c6[_0x417d('0x39')][_0x417d('0x22')](_0x417d('0x51')),_0x799c6c=_0x4ccd5f[_0x417d('0xd')]()[_0x417d('0x1d')](_0x148ed1=>_0x148ed1[_0x417d('0x1')]),_0xd9c777=_0x4bd0c6[_0x417d('0x39')][_0x417d('0x22')](_0x40a97a)['me'],_0x1371b6=_0x4bd0c6[_0x417d('0x5')]['get']('acceptSuggestion'),_0x32eb31=_0x4bd0c6['commands']['get'](_0x417d('0x2')),_0x264836=_0x125137[_0x417d('0x22')](_0x417d('0x7'))[_0x417d('0x4d')],{CommentsListView:_0x4d1d8f,CommentThreadInputView:_0x450141}=_0x4bd0c6[_0x417d('0x39')]['get'](_0x417d('0x15')),_0x592953=new _0x264836(_0x4bd0c6[_0x417d('0x2b')],_0x4ccd5f,_0xd9c777,{'disableComments':this[_0x417d('0x2f')],'editorConfig':_0x125137[_0x417d('0x22')](_0x417d('0x57')),'maxCommentsWhenCollapsed':_0x125137['get'](_0x417d('0x3d')),'maxThreadTotalWeight':_0x125137[_0x417d('0x22')]('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x125137[_0x417d('0x22')](_0x417d('0x14')),'formatDateTime':_0x3c583d(_0x125137[_0x417d('0x22')](_0x417d('0x2b'))),'CommentView':_0x125137['get'](_0x417d('0x3'))['CommentView'],'CommentsListView':_0x4d1d8f,'CommentThreadInputView':_0x450141}),_0x5d0307=_0xb600e4['createCommentThreadController'](_0x4ccd5f[_0x417d('0x5d')],_0x592953),_0x5b5daa=new _0x50e52b(_0x4ccd5f,_0x592953,_0x1371b6,_0x32eb31,_0x5d0307);_0x592953[_0x417d('0x41')]=_0x4bd0c6['plugins'][_0x417d('0x22')](_0x417d('0x29'))[_0x417d('0x28')][_0x417d('0x2d')](_0x799c6c),this[_0x417d('0x52')][_0x417d('0x4e')](_0x4ccd5f,_0x5b5daa),this[_0x417d('0x60')]['set'](_0x592953,_0x5b5daa);const _0x4f7891=_0x5b1e9f[_0x417d('0x68')](this[_0x417d('0x56')][_0x417d('0x2b')],_0x592953);_0x4f7891[_0x417d('0x38')](_0x417d('0x45'))['to'](_0x592953,_0x417d('0x45')),_0x4f7891[_0x417d('0x38')](_0x417d('0x32'))['to'](_0x592953),_0x4f7891['bind'](_0x417d('0x13'))['to'](_0x592953,_0x417d('0x13'),_0x8caaca=>_0x417d('0x47')+_0x8caaca);const _0x2978fa=_0x5b1e9f['createAnnotation']({'view':_0x4f7891,'target':()=>{const _0x3adef9=_0x799c6c[0x0][_0x417d('0x3e')]();if(!_0x3adef9)return null;const _0x4d25c7=_0x3adef9[_0x417d('0x49')]()[_0x417d('0x48')]();return _0x4d25c7&&!_0x4bd0c6[_0x417d('0x53')]['mapper'][_0x417d('0x6b')](_0x4d25c7)?null:_0x5af7e0(_0x4bd0c6[_0x417d('0x53')],_0x3adef9)||null;},'type':()=>_0x417d('0x47')+_0x5b5daa[_0x417d('0x9')][_0x417d('0x13')]});_0x5b1e9f[_0x417d('0x54')](_0x2978fa);const _0x79b56a=_0x4bd0c6[_0x417d('0x39')][_0x417d('0x22')](_0x417d('0x8'));let _0x5b54cf;_0x592953['on']('change:isDirty',(_0x26dcf3,_0x2387d9,_0x124381)=>{_0x124381?_0x5b54cf=_0x79b56a['add'](_0x32166e(this[_0x417d('0x56')][_0x417d('0x2b')],_0x417d('0x63'))):(_0x79b56a[_0x417d('0x4')](_0x5b54cf),_0x5b54cf=null);});}[_0x417d('0x30')](_0x3341fd){const _0x1fe397=this[_0x417d('0x56')][_0x417d('0x39')][_0x417d('0x22')]('Annotations'),_0x2ca666=this[_0x417d('0x52')]['get'](_0x3341fd),_0x2704a2=_0x2ca666['view'],_0x532165=_0x1fe397[_0x417d('0x65')](_0x2704a2);_0x532165&&_0x1fe397[_0x417d('0x4')](_0x532165),this[_0x417d('0x52')][_0x417d('0x17')](_0x3341fd),this[_0x417d('0x60')][_0x417d('0x17')](_0x2704a2),_0x2ca666['destroy'](),_0x2704a2[_0x417d('0x35')]();}['_updateController'](_0x1b84a6){if(!_0x1b84a6[_0x417d('0x1')]||!this[_0x417d('0x52')][_0x417d('0xe')](_0x1b84a6))return;const _0x56af9b=this[_0x417d('0x56')][_0x417d('0x39')][_0x417d('0x22')](_0x417d('0x29')),_0x43e94e=this['_suggestionToController']['get'](_0x1b84a6),_0x39cb03=_0x1b84a6[_0x417d('0xd')]();_0x43e94e[_0x417d('0x9')][_0x417d('0x41')]=_0x56af9b[_0x417d('0x28')]['getDescriptions'](_0x39cb03);}['destroy'](){super['destroy']();for(const _0x4c4e65 of this[_0x417d('0x52')][_0x417d('0x2a')]())this[_0x417d('0x30')](_0x4c4e65);for(const _0x4e9ad5 of this['_debouncedHandlers'][_0x417d('0xb')]())_0x4e9ad5[_0x417d('0x1f')]();this[_0x417d('0x40')][_0x417d('0x34')]();}}
|
|
23
|
+
const _0x4f07=['getAllAdjacentSuggestions','listenTo','CommentsUI','isDirty','values','Track\x20changes','set','addSourceCollector','Accept\x20all\x20selected\x20suggestions','get','destroy','innerView','discardSelectedSuggestions','filter','change:isDirty','focus','getMarkerNames','_updateController','commentThread','length','separator','suggestion-','editing','_disableComments','getContainedElement','model','getByInnerView','previous','define','CommentView','TrackChangesUI','push','hasSuggestion','unbind','config','PendingActions','_suggestionToController','CommentsRepository','switchbutton','editor','plugins','view','buttonView','SuggestionThreadView','commandName','from','trackChanges','EditorAnnotations','suggestionChanged','change:previous','commands','discardButton','toMany','stopListening','init','TrackChangesEditing','toViewElement','getFirstMarker','getDescriptions','Discard\x20all\x20suggestions','acceptSelectedSuggestions','_createUIButton','head','createAnnotationView','cancel','actionView','comments.maxCommentsWhenCollapsed','mapper','comments.maxCommentCharsWhenCollapsed','activeMarkers','arrowView','_descriptionFactory','discardSuggestion','_viewToController','isMultiRange','add','button','_destroyController','PENDING_ACTION_SUGGESTION','reduce','keys','Accept\x20all\x20suggestions','Annotations','addComment','has','remove','source','value','isEnabled','lowest','map','_debouncedHandlers','getJoined','delete','change:activeAnnotations','bind','comments','execute','clear','trackChanges.disableComments','refreshSelectedViews','componentFactory','comments.editorConfig','suggestionUnloaded','descriptionParts','type','locale','getFirstRange','_initializeController','acceptSuggestion','createCommentThreadController','comments.maxThreadTotalWeight','getRange'];(function(_0x466a3b,_0x4f07a8){const _0x386238=function(_0x1b7d03){while(--_0x1b7d03){_0x466a3b['push'](_0x466a3b['shift']());}};_0x386238(++_0x4f07a8);}(_0x4f07,0x18c));const _0x3862=function(_0x466a3b,_0x4f07a8){_0x466a3b=_0x466a3b-0x0;let _0x386238=_0x4f07[_0x466a3b];return _0x386238;};import{Plugin as _0x4913b3}from'ckeditor5/src/core';import{Collection as _0x3935c1}from'ckeditor5/src/utils';import{Model as _0x11b74a,SplitButtonView as _0x4b2ba4,createDropdown as _0x2667b4,addListToDropdown as _0x2a2150}from'ckeditor5/src/ui';import{Users as _0x2ec6c0,getDateTimeFormatter as _0x13cade,getMarkerDomElement as _0x267b4a}from'ckeditor5-collaboration/src/collaboration-core';import{debounce as _0x355cda}from'lodash-es';import _0x1b5c3f from'./trackchangesediting';import _0x24047e from'./ui/suggestioncontroller';import _0x42747c from'./ui/view/suggestionthreadview';import{getTranslation as _0x2c72c5}from'./utils/common-translations';import _0x27dca3 from'../theme/icons/track-changes.svg';export default class m extends _0x4913b3{static get['requires'](){return[_0x1b5c3f,_0x2ec6c0,_0x3862('0x5d'),_0x3862('0x19'),_0x3862('0x67')];}static get['pluginName'](){return _0x3862('0x56');}constructor(_0x2e4a52){super(_0x2e4a52),this[_0x3862('0x5c')]=new Map(),this['_viewToController']=new Map(),this[_0x3862('0x22')]=new Map();const _0x5e819c=this['editor'][_0x3862('0x5a')];_0x5e819c[_0x3862('0x54')]('trackChanges.SuggestionThreadView',_0x42747c),_0x5e819c[_0x3862('0x54')](_0x3862('0x2a'),!0x1),this['_disableComments']=_0x5e819c[_0x3862('0x41')](_0x3862('0x2a'));}[_0x3862('0x6e')](){const _0x48eca3=this[_0x3862('0x5f')],_0x49b96b=_0x48eca3[_0x3862('0x60')]['get'](_0x1b5c3f),_0x49428f=_0x48eca3[_0x3862('0x60')][_0x3862('0x41')](_0x3862('0x19')),_0x38d99c=_0x48eca3['plugins']['get'](_0x3862('0x67')),_0x5e5624=_0x48eca3[_0x3862('0x60')][_0x3862('0x41')](_0x3862('0x5d'));_0x48eca3['ui'][_0x3862('0x2c')][_0x3862('0x12')](_0x3862('0x66'),_0x1a5c81=>this[_0x3862('0x4')](_0x1a5c81)),_0x38d99c[_0x3862('0x3f')](()=>{const _0x14a9d9=[];for(const [_0x3a521e,_0x2e28e4]of Array[_0x3862('0x65')](this[_0x3862('0x5c')])){const _0x26e5ec=_0x3a521e[_0x3862('0x38')](),_0xf1c252=[];for(const _0x3b4fd2 of _0x26e5ec){if(!_0x3b4fd2['isInContent'])continue;if(_0x3b4fd2[_0x3862('0x11')]){_0xf1c252[_0x3862('0x57')](..._0x3b4fd2['getRanges']());continue;}const _0x5b63fc=_0x3b4fd2[_0x3862('0x32')]();if(_0xf1c252[_0x3862('0x4b')]>0x0){const _0x3d7627=_0xf1c252[0x0][_0x3862('0x23')](_0x5b63fc);if(_0x3d7627){_0xf1c252[0x0]=_0x3d7627;continue;}}_0xf1c252[_0x3862('0x57')](_0x5b63fc);}_0x14a9d9[_0x3862('0x57')]([_0x2e28e4['view'],_0xf1c252]);}return _0x14a9d9;}),this['listenTo'](_0x49b96b,'suggestionLoaded',(_0x3ea595,_0x425e0c)=>{let _0x4520a9=!0x1;const _0x204665=_0x355cda(_0x4d0dbd=>{_0x4520a9||_0x4d0dbd?_0x4520a9&&_0x4d0dbd&&(this[_0x3862('0x14')](_0x425e0c),_0x38d99c[_0x3862('0x2b')](),_0x4520a9=!0x1):(this[_0x3862('0x33')](_0x425e0c),_0x38d99c['refreshSelectedViews'](),_0x4520a9=!0x0);},0xa);this[_0x3862('0x22')]['set'](_0x425e0c,_0x204665),this[_0x3862('0x39')](_0x425e0c,_0x3862('0x69'),(_0x95c9ec,_0x3741a2,_0x575719,_0x425b91)=>{_0x425e0c['isInContent']&&(null==_0x575719?(this[_0x3862('0x49')](_0x425b91[_0x3862('0x5')]),_0x204665(!0x1)):(this[_0x3862('0x49')](_0x575719[_0x3862('0x5')]),_0x204665(!0x0)));}),null===_0x425e0c[_0x3862('0x53')]?_0x204665(!0x1):this[_0x3862('0x49')](_0x425e0c[_0x3862('0x5')]);}),this[_0x3862('0x39')](_0x49b96b,_0x3862('0x2e'),(_0x5a684e,_0x2c6902,_0xdb2713)=>{this[_0x3862('0x6d')](_0x2c6902,_0x3862('0x69')),this['_debouncedHandlers'][_0x3862('0x41')](_0x2c6902)['cancel'](),this[_0x3862('0x22')]['delete'](_0x2c6902);const _0x4ea4aa=_0xdb2713?_0xdb2713[_0x3862('0x5')]:_0x2c6902,_0x415f15=this[_0x3862('0x5c')][_0x3862('0x41')](_0x4ea4aa);null!==_0xdb2713&&this['_updateController'](_0x4ea4aa),null===_0xdb2713&&_0x415f15&&this[_0x3862('0x14')](_0x2c6902);}),this['listenTo'](_0x49b96b,_0x3862('0x68'),(_0x211ae8,_0x1012de)=>{this['_updateController'](_0x1012de);}),this[_0x3862('0x39')](_0x49428f,_0x3862('0x25'),(_0x92525e,_0x5c32f6,_0xbbe2fc)=>{const _0x43cb2a=Array[_0x3862('0x65')](_0xbbe2fc,_0x22a926=>_0x22a926[_0x3862('0x43')])[_0x3862('0x45')](_0x46f076=>this[_0x3862('0x10')]['has'](_0x46f076)),_0x49d47b=[];for(const _0x374448 of _0x43cb2a){const _0x16817d=this[_0x3862('0x10')]['get'](_0x374448)[_0x3862('0x51')][_0x3862('0x38')]();_0x49d47b[_0x3862('0x57')](..._0x16817d[_0x3862('0x16')]((_0x3dc517,_0x420bb9)=>[..._0x3dc517,..._0x420bb9[_0x3862('0x48')]()],[]));}_0x49b96b[_0x3862('0xc')]=_0x49d47b;}),this[_0x3862('0x39')](_0x5e5624,_0x3862('0x1a'),(_0x18aa38,{threadId:_0x1f6c9c,isFromAdapter:_0x85c46})=>{if(_0x85c46||!_0x49b96b[_0x3862('0x58')](_0x1f6c9c))return;const _0x1d2737=_0x49b96b['getSuggestion'](_0x1f6c9c);this[_0x3862('0x5c')][_0x3862('0x41')](_0x1d2737)['view'][_0x3862('0x47')]();},{'priority':_0x3862('0x20')});}[_0x3862('0x4')](_0x457f9b){const _0xa61239=_0x2667b4(_0x457f9b,_0x4b2ba4),_0x4ea7c1=this[_0x3862('0x5f')]['commands']['get'](_0x3862('0x66')),_0x1c6051=_0x2c72c5(_0x457f9b,_0x3862('0x3d'));_0xa61239[_0x3862('0x62')][_0x3862('0x3e')]({'tooltip':_0x1c6051,'label':_0x1c6051,'icon':_0x27dca3}),_0xa61239['buttonView']['bind']('isOn')['to'](_0x4ea7c1,_0x3862('0x1e')),_0xa61239[_0x3862('0x62')]['on']('execute',()=>{_0x4ea7c1[_0x3862('0x28')](),this[_0x3862('0x5f')][_0x3862('0x4e')]['view'][_0x3862('0x47')]();});const _0x387128=new _0x3935c1(),_0x587024=[{'type':_0x3862('0x5e'),'model':{'withText':!0x0,'label':_0x1c6051,'commandName':_0x3862('0x66')}},{'type':_0x3862('0x4c')},{'type':_0x3862('0x13'),'model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,_0x3862('0x18')),'commandName':'acceptAllSuggestions'}},{'type':_0x3862('0x13'),'model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,_0x3862('0x40')),'commandName':_0x3862('0x3')}},{'type':_0x3862('0x13'),'model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,_0x3862('0x2')),'commandName':'discardAllSuggestions'}},{'type':'button','model':{'withText':!0x0,'label':_0x2c72c5(_0x457f9b,'Discard\x20all\x20selected\x20suggestions'),'commandName':_0x3862('0x44')}}];for(const _0x367eb5 of _0x587024){const _0x7e42fc={'type':_0x367eb5[_0x3862('0x30')]};if(_0x367eb5[_0x3862('0x51')]){const _0x52aa34=new _0x11b74a(_0x367eb5['model']),_0xa3e331=this['editor']['commands'][_0x3862('0x41')](_0x52aa34['commandName']);_0x52aa34[_0x3862('0x26')]('isOn',_0x3862('0x1f'))['to'](_0xa3e331,_0x3862('0x1e'),_0x3862('0x1f')),_0x7e42fc[_0x3862('0x51')]=_0x52aa34;}_0x387128[_0x3862('0x12')](_0x7e42fc);}_0x2a2150(_0xa61239,_0x387128);const _0x433a1b=_0x587024['filter'](_0x904fcb=>null!=_0x904fcb['model'])[_0x3862('0x21')](_0x30a702=>this['editor'][_0x3862('0x6a')][_0x3862('0x41')](_0x30a702[_0x3862('0x51')][_0x3862('0x64')]));return _0xa61239[_0x3862('0x62')][_0x3862('0x8')][_0x3862('0x59')](_0x3862('0x1f')),_0xa61239['buttonView'][_0x3862('0xd')][_0x3862('0x59')]('isEnabled'),_0xa61239[_0x3862('0x62')][_0x3862('0x8')][_0x3862('0x26')]('isEnabled')['to'](_0x4ea7c1,_0x3862('0x1f')),_0xa61239[_0x3862('0x62')][_0x3862('0xd')][_0x3862('0x26')]('isEnabled')[_0x3862('0x6c')](_0x433a1b,_0x3862('0x1f'),(..._0x5862ba)=>_0x5862ba['some'](_0x227cf9=>_0x227cf9)),_0xa61239['on'](_0x3862('0x28'),_0x2ee122=>{this[_0x3862('0x5f')][_0x3862('0x28')](_0x2ee122[_0x3862('0x1d')][_0x3862('0x64')]),this[_0x3862('0x5f')][_0x3862('0x4e')]['view'][_0x3862('0x47')]();}),_0xa61239;}[_0x3862('0x33')](_0x5e599d){const _0x56df1f=this[_0x3862('0x5f')],_0x201ac0=_0x56df1f[_0x3862('0x5a')],_0x572695=_0x56df1f['plugins'][_0x3862('0x41')](_0x3862('0x19')),_0x597caf=_0x56df1f['plugins'][_0x3862('0x41')](_0x3862('0x5d')),_0x57d930=_0x5e599d[_0x3862('0x38')]()[_0x3862('0x45')](_0x1f989d=>_0x1f989d['isInContent']),_0x50a6a8=_0x56df1f['plugins'][_0x3862('0x41')](_0x2ec6c0)['me'],_0x1d6a2a=_0x56df1f[_0x3862('0x6a')][_0x3862('0x41')](_0x3862('0x34')),_0x4388ab=_0x56df1f[_0x3862('0x6a')][_0x3862('0x41')](_0x3862('0xf')),_0x19bc56=_0x201ac0[_0x3862('0x41')](_0x3862('0x66'))[_0x3862('0x63')],{CommentsListView:_0x1e5f5c,CommentThreadInputView:_0xb67ceb}=_0x56df1f['plugins'][_0x3862('0x41')](_0x3862('0x3a')),_0x43b36d=new _0x19bc56(_0x56df1f[_0x3862('0x31')],_0x5e599d,_0x50a6a8,{'disableComments':this[_0x3862('0x4f')],'editorConfig':_0x201ac0[_0x3862('0x41')](_0x3862('0x2d')),'maxCommentsWhenCollapsed':_0x201ac0['get'](_0x3862('0x9')),'maxThreadTotalWeight':_0x201ac0[_0x3862('0x41')](_0x3862('0x36')),'maxCommentCharsWhenCollapsed':_0x201ac0['get'](_0x3862('0xb')),'formatDateTime':_0x13cade(_0x201ac0[_0x3862('0x41')](_0x3862('0x31'))),'CommentView':_0x201ac0['get'](_0x3862('0x27'))[_0x3862('0x55')],'CommentsListView':_0x1e5f5c,'CommentThreadInputView':_0xb67ceb}),_0x402637=_0x597caf[_0x3862('0x35')](_0x5e599d[_0x3862('0x4a')],_0x43b36d),_0x536484=new _0x24047e(_0x5e599d,_0x43b36d,_0x1d6a2a,_0x4388ab,_0x402637);_0x43b36d[_0x3862('0x2f')]=_0x56df1f[_0x3862('0x60')]['get'](_0x3862('0x6f'))['_descriptionFactory'][_0x3862('0x1')](_0x57d930),this['_suggestionToController'][_0x3862('0x3e')](_0x5e599d,_0x536484),this[_0x3862('0x10')]['set'](_0x43b36d,_0x536484);const _0x5a637c=_0x572695[_0x3862('0x6')](this[_0x3862('0x5f')][_0x3862('0x31')],_0x43b36d);_0x5a637c['bind']('isDirty')['to'](_0x43b36d,_0x3862('0x3b')),_0x5a637c[_0x3862('0x26')]('length')['to'](_0x43b36d),_0x5a637c[_0x3862('0x26')](_0x3862('0x30'))['to'](_0x43b36d,'type',_0x25e573=>_0x3862('0x4d')+_0x25e573);const _0x3ad4c4=_0x572695['createAnnotation']({'view':_0x5a637c,'target':()=>{const _0x9c89e7=_0x57d930[0x0][_0x3862('0x0')]();if(!_0x9c89e7)return null;const _0x30cc7b=_0x9c89e7[_0x3862('0x37')]()[_0x3862('0x50')]();return _0x30cc7b&&!_0x56df1f[_0x3862('0x4e')][_0x3862('0xa')][_0x3862('0x70')](_0x30cc7b)?null:_0x267b4a(_0x56df1f['editing'],_0x9c89e7)||null;},'type':()=>_0x3862('0x4d')+_0x536484[_0x3862('0x61')]['type']});_0x572695[_0x3862('0x12')](_0x3ad4c4);const _0x274bca=_0x56df1f[_0x3862('0x60')][_0x3862('0x41')](_0x3862('0x5b'));let _0x53fce0;_0x43b36d['on'](_0x3862('0x46'),(_0x3f4b40,_0x27a04c,_0x19c1f6)=>{_0x19c1f6?_0x53fce0=_0x274bca['add'](_0x2c72c5(this[_0x3862('0x5f')][_0x3862('0x31')],_0x3862('0x15'))):(_0x274bca[_0x3862('0x1c')](_0x53fce0),_0x53fce0=null);}),_0x43b36d['acceptButton']['on'](_0x3862('0x28'),()=>{_0x56df1f['editing'][_0x3862('0x61')][_0x3862('0x47')]();}),_0x43b36d[_0x3862('0x6b')]['on']('execute',()=>{_0x56df1f[_0x3862('0x4e')][_0x3862('0x61')]['focus']();});}['_destroyController'](_0xf4f354){const _0x1ebc90=this['editor']['plugins'][_0x3862('0x41')](_0x3862('0x19')),_0x36e91c=this['_suggestionToController']['get'](_0xf4f354),_0x4a0575=_0x36e91c[_0x3862('0x61')],_0xf2135b=_0x1ebc90[_0x3862('0x52')](_0x4a0575);_0xf2135b&&_0x1ebc90['remove'](_0xf2135b),this['_suggestionToController'][_0x3862('0x24')](_0xf4f354),this[_0x3862('0x10')][_0x3862('0x24')](_0x4a0575),_0x36e91c[_0x3862('0x42')](),_0x4a0575[_0x3862('0x42')]();}[_0x3862('0x49')](_0x1141ed){if(!_0x1141ed['isInContent']||!this[_0x3862('0x5c')][_0x3862('0x1b')](_0x1141ed))return;const _0x1eadec=this['editor'][_0x3862('0x60')]['get'](_0x3862('0x6f')),_0x54fd8b=this[_0x3862('0x5c')][_0x3862('0x41')](_0x1141ed),_0x372868=_0x1141ed[_0x3862('0x38')]();_0x54fd8b[_0x3862('0x61')][_0x3862('0x2f')]=_0x1eadec[_0x3862('0xe')][_0x3862('0x1')](_0x372868);}['destroy'](){super[_0x3862('0x42')]();for(const _0x47f45c of this[_0x3862('0x5c')][_0x3862('0x17')]())this[_0x3862('0x14')](_0x47f45c);for(const _0x2b70df of this[_0x3862('0x22')][_0x3862('0x3c')]())_0x2b70df[_0x3862('0x7')]();this[_0x3862('0x22')][_0x3862('0x29')]();}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x50f2=['acceptSuggestion','stopListening','bind','_acceptCommand','unbind','discardSuggestion','listenTo','commentThreadController','destroy','model','_discardCommand','view','isEnabled'];(function(_0xf2605c,_0x50f27c){var _0x1ff7f2=function(_0x12cea5){while(--_0x12cea5){_0xf2605c['push'](_0xf2605c['shift']());}};_0x1ff7f2(++_0x50f27c);}(_0x50f2,0xa3));var _0x1ff7=function(_0xf2605c,_0x50f27c){_0xf2605c=_0xf2605c-0x0;var _0x1ff7f2=_0x50f2[_0xf2605c];return _0x1ff7f2;};import{ObservableMixin as _0x3efdb8,mix as _0x4f753a}from'ckeditor5/src/utils';export default class _t{constructor(_0x4062ad,_0x29ff80,_0x2e78a3,_0x48610f,_0x128e53){this[_0x1ff7('0x2')]=_0x4062ad,this[_0x1ff7('0x4')]=_0x29ff80,this[_0x1ff7('0x0')]=_0x128e53,this[_0x1ff7('0x9')]=_0x2e78a3,this[_0x1ff7('0x3')]=_0x48610f,this[_0x1ff7('0x4')][_0x1ff7('0x8')](_0x1ff7('0x5'))['to'](this['_acceptCommand']),this[_0x1ff7('0xc')](_0x29ff80,_0x1ff7('0x6'),()=>this[_0x1ff7('0x6')]()),this[_0x1ff7('0xc')](_0x29ff80,_0x1ff7('0xb'),()=>this[_0x1ff7('0xb')]());}[_0x1ff7('0x6')](){this[_0x1ff7('0x9')]['execute'](this[_0x1ff7('0x2')]['id']);}[_0x1ff7('0xb')](){this['_discardCommand']['execute'](this[_0x1ff7('0x2')]['id']);}['destroy'](){this[_0x1ff7('0x4')][_0x1ff7('0xa')](_0x1ff7('0x5')),this[_0x1ff7('0x7')](),this[_0x1ff7('0x0')][_0x1ff7('0x1')]();}}_0x4f753a(_t,_0x3efdb8);
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39a6=['commentInputView','value','CommentView','editorConfig','length','disableComments','_createCommentViews','_config','delegate','isActive','setData','_localUser','_createCommentThreadInputView','locale','bind','isDirty','_model','descriptionParts','commentThreadInputView','commentThread','assign','removeComment','set','fire','updateComment','focus','showInput','disabledSubmit','isEnabled','commentsListView','destroy'];(function(_0x33c929,_0x39a600){const _0x24e69f=function(_0xef1460){while(--_0xef1460){_0x33c929['push'](_0x33c929['shift']());}};_0x24e69f(++_0x39a600);}(_0x39a6,0x13d));const _0x24e6=function(_0x33c929,_0x39a600){_0x33c929=_0x33c929-0x0;let _0x24e69f=_0x39a6[_0x33c929];return _0x24e69f;};import{View as _0x49f18f}from'ckeditor5/src/ui';export default class Kt extends _0x49f18f{constructor(_0x26b492,_0x175ab4,_0x5c055b,_0x1cac27){super(_0x26b492),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this[_0x24e6('0xf')]('createdAt',_0x175ab4['createdAt']),this[_0x24e6('0x7')]('createdAt')['to'](_0x175ab4),this['set'](_0x24e6('0xa'),[]),this[_0x24e6('0xf')](_0x24e6('0x8'),!0x1),this[_0x24e6('0xf')](_0x24e6('0x15'),!0x1),this[_0x24e6('0x9')]=_0x175ab4,this[_0x24e6('0x4')]=_0x5c055b,this[_0x24e6('0x0')]=_0x1cac27,_0x1cac27[_0x24e6('0x1d')]?this[_0x24e6('0xf')](_0x24e6('0x1c'),0x1):this['_createCommentViews']();}[_0x24e6('0x12')](){this['element']['focus']();}[_0x24e6('0x17')](){this[_0x24e6('0x8')]=!0x1,this['commentsListView']&&this['commentsListView'][_0x24e6('0x17')](),this['commentThreadInputView']&&this[_0x24e6('0xb')][_0x24e6('0x17')](),super[_0x24e6('0x17')]();}[_0x24e6('0x1e')](){const {CommentsListView:_0x1047f9}=this[_0x24e6('0x0')];this[_0x24e6('0x16')]=new _0x1047f9(this[_0x24e6('0x6')],this['_model']['commentThread'],Object[_0x24e6('0xd')]({'CommentView':this[_0x24e6('0x0')][_0x24e6('0x1a')]},this['_config'])),this[_0x24e6('0x16')][_0x24e6('0x1')](_0x24e6('0xe'))['to'](this),this[_0x24e6('0x16')]['delegate'](_0x24e6('0x11'))['to'](this),this[_0x24e6('0x16')]['bind'](_0x24e6('0x2'))['to'](this),this[_0x24e6('0xf')]('length',this[_0x24e6('0x16')][_0x24e6('0x1c')]+0x1),this[_0x24e6('0x7')]('length')['to'](this[_0x24e6('0x16')],_0x24e6('0x1c'),_0x550c0b=>_0x550c0b+0x1),this[_0x24e6('0xb')]=this['_createCommentThreadInputView'](),this['on'](_0x24e6('0xe'),()=>this[_0x24e6('0x12')]()),this[_0x24e6('0x7')](_0x24e6('0x8'))['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView'][_0x24e6('0x18')],_0x24e6('0x19'),(_0x408542,_0x319410)=>_0x408542||!!_0x319410);}[_0x24e6('0x5')](){const {CommentThreadInputView:_0x3fa4b7}=this[_0x24e6('0x0')],_0x2dc7c2=new _0x3fa4b7(this['locale'],this[_0x24e6('0x4')],this[_0x24e6('0x0')][_0x24e6('0x1b')]),_0x94187c=_0x2dc7c2[_0x24e6('0x18')];return _0x2dc7c2['bind'](_0x24e6('0x13'))['to'](this,_0x24e6('0x2'),this['_model'][_0x24e6('0xc')],'isReadOnly',_0x94187c,_0x24e6('0x19'),(_0x4197d8,_0x2d7f3d,_0x55ec82)=>!!_0x55ec82||_0x4197d8&&!_0x2d7f3d),_0x94187c['on']('submit',(_0x11368f,_0x7d5d8)=>{this[_0x24e6('0x10')]('addComment',_0x7d5d8),_0x94187c['editor'][_0x24e6('0x3')]('');}),_0x94187c['on']('cancel',()=>this[_0x24e6('0x12')]()),_0x94187c[_0x24e6('0x7')](_0x24e6('0x14'))['to'](this[_0x24e6('0x9')][_0x24e6('0xc')],'isReadOnly'),_0x2dc7c2;}}
|